From 09f0ba74945d2f5bb0e825c350b7585ae27a02c7 Mon Sep 17 00:00:00 2001 From: Lachlan Donald Date: Tue, 21 Jun 2016 13:19:15 +0200 Subject: [PATCH] Update vendors --- vendor/github.com/alecthomas/template/LICENSE | 27 - .../alecthomas/template/example_test.go | 1 - .../alecthomas/template/examplefiles_test.go | 1 - .../alecthomas/template/examplefunc_test.go | 1 - vendor/github.com/alecthomas/template/exec.go | 1 - .../alecthomas/template/multi_test.go | 1 - .../alecthomas/template/template.go | 1 - vendor/github.com/alecthomas/units | 2 +- vendor/github.com/aws/aws-sdk-go/.gitignore | 11 +- .../github.com/aws/aws-sdk-go/.godoc_config | 14 - vendor/github.com/aws/aws-sdk-go/.travis.yml | 12 +- vendor/github.com/aws/aws-sdk-go/Gemfile | 4 +- vendor/github.com/aws/aws-sdk-go/Makefile | 169 +- vendor/github.com/aws/aws-sdk-go/README.md | 42 +- .../apis/autoscaling/2011-01-01/api-2.json | 907 +- .../apis/autoscaling/2011-01-01/docs-2.json | 230 +- .../autoscaling/2011-01-01/paginators-1.json | 0 .../apis/cloudformation/2010-05-15/api-2.json | 525 +- .../cloudformation/2010-05-15/docs-2.json | 725 + .../2010-05-15/paginators-1.json | 0 .../cloudformation/2010-05-15/waiters-2.json | 70 + .../apis/cloudfront/2015-04-17/api-2.json | 0 .../apis/cloudfront/2015-04-17/docs-2.json | 0 .../cloudfront/2015-04-17/paginators-1.json | 0 .../apis/cloudfront/2015-04-17/waiters-2.json | 0 .../apis/cloudhsm/2014-05-30/api-2.json | 405 +- .../apis/cloudhsm/2014-05-30/docs-2.json | 92 +- .../apis/cloudsearch/2013-01-01/api-2.json | 0 .../apis/cloudsearch/2013-01-01/docs-2.json | 0 .../cloudsearch/2013-01-01/paginators-1.json | 0 .../cloudsearchdomain/2013-01-01/api-2.json | 47 +- .../cloudsearchdomain/2013-01-01/docs-2.json | 38 +- .../apis/cloudtrail/2013-11-01/api-2.json | 824 + .../apis/cloudtrail/2013-11-01/docs-2.json | 328 + .../cloudtrail/2013-11-01/paginators-1.json | 0 .../apis/codecommit/2015-04-13/api-2.json | 886 + .../apis/codecommit/2015-04-13/docs-2.json | 384 + .../apis/codedeploy/2014-10-06/api-2.json | 1030 +- .../apis/codedeploy/2014-10-06/docs-2.json | 377 +- .../codedeploy/2014-10-06/paginators-1.json | 0 .../apis/codepipeline/2015-07-09/api-2.json | 434 +- .../apis/codepipeline/2015-07-09/docs-2.json | 76 +- .../cognito-identity/2014-06-30/api-2.json | 730 +- .../cognito-identity/2014-06-30/docs-2.json | 71 +- .../apis/cognito-sync/2014-06-30/api-2.json | 4 +- .../apis/cognito-sync/2014-06-30/docs-2.json | 0 .../apis/config/2014-11-12/api-2.json | 788 + .../apis/config/2014-11-12/docs-2.json | 596 + .../apis/config/2014-11-12/paginators-1.json | 0 .../apis/datapipeline/2012-10-29/api-2.json | 0 .../apis/datapipeline/2012-10-29/docs-2.json | 0 .../datapipeline/2012-10-29/paginators-1.json | 0 .../apis/devicefarm/2015-06-23/api-2.json | 1037 +- .../apis/devicefarm/2015-06-23/docs-2.json | 340 +- .../devicefarm/2015-06-23/paginators-1.json | 18 +- .../apis/directconnect/2012-10-25/api-2.json | 195 +- .../apis/directconnect/2012-10-25/docs-2.json | 37 +- .../2012-10-25/paginators-1.json | 0 .../apis/ds/2015-04-16/api-2.json | 964 +- .../apis/ds/2015-04-16/docs-2.json | 394 +- .../apis/dynamodb/2012-08-10/api-2.json | 320 +- .../apis/dynamodb/2012-08-10/docs-2.json | 1013 ++ .../dynamodb/2012-08-10}/paginators-1.json | 0 .../dynamodb/2012-08-10}/waiters-2.json | 0 .../apis/ec2/2015-04-15/api-2.json | 19 - .../apis/ec2/2015-04-15/docs-2.json | 128 +- .../apis/ec2/2015-04-15/paginators-1.json | 0 .../apis/ec2/2015-04-15/waiters-2.json | 0 .../apis/ecs/2014-11-13/api-2.json | 688 +- .../apis/ecs/2014-11-13/docs-2.json | 887 + .../apis/ecs/2014-11-13/paginators-1.json | 0 .../apis/ecs/2014-11-13/waiters-2.json | 0 .../apis/elasticache/2015-02-02/api-2.json | 2063 ++- .../apis/elasticache/2015-02-02/docs-2.json | 425 +- .../elasticache/2015-02-02/paginators-1.json | 0 .../elasticache/2015-02-02/waiters-2.json | 143 + .../elasticbeanstalk/2010-12-01/api-2.json | 621 +- .../elasticbeanstalk/2010-12-01/docs-2.json | 392 +- .../2010-12-01/paginators-1.json | 0 .../elasticfilesystem/2015-02-01/api-2.json | 52 +- .../elasticfilesystem/2015-02-01/docs-2.json | 11 +- .../2012-06-01/api-2.json | 0 .../2012-06-01/docs-2.json | 14 +- .../2012-06-01/paginators-1.json | 0 .../2012-06-01/waiters-2.json | 18 - .../elasticmapreduce/2009-03-31/api-2.json | 284 +- .../elasticmapreduce/2009-03-31/docs-2.json | 116 +- .../2009-03-31/paginators-1.json | 0 .../2009-03-31/waiters-2.json | 0 .../elastictranscoder/2012-09-25/api-2.json | 0 .../elastictranscoder/2012-09-25/docs-2.json | 0 .../2012-09-25/paginators-1.json | 0 .../2012-09-25/waiters-2.json | 0 .../apis/email/2010-12-01/api-2.json | 806 + .../apis/email/2010-12-01/docs-2.json | 533 + .../apis/email/2010-12-01/paginators-1.json | 0 .../apis/email/2010-12-01/waiters-2.json | 0 .../apis/glacier/2012-06-01/api-2.json | 0 .../apis/glacier/2012-06-01/docs-2.json | 0 .../apis/glacier/2012-06-01/paginators-1.json | 0 .../apis/glacier/2012-06-01/waiters-2.json | 0 .../apis/iam/2010-05-08/api-2.json | 3652 +++- .../apis/iam/2010-05-08/docs-2.json | 2280 +++ .../apis/iam/2010-05-08/paginators-1.json | 7 - .../apis/iam/2010-05-08/waiters-2.json | 17 - .../apis/importexport/2010-06-01/api-2.json | 34 +- .../apis/importexport/2010-06-01/docs-2.json | 72 +- .../importexport/2010-06-01/paginators-1.json | 0 .../apis/kinesis/2013-12-02/api-2.json | 424 +- .../apis/kinesis/2013-12-02/docs-2.json | 424 + .../apis/kinesis/2013-12-02/paginators-1.json | 0 .../apis/kinesis/2013-12-02/waiters-2.json | 0 .../aws-sdk-go/apis/kms/2014-11-01/api-2.json | 2120 +++ .../apis/kms/2014-11-01/docs-2.json | 628 + .../apis/kms/2014-11-01/paginators-1.json | 0 .../apis/lambda/2014-11-11/api-2.json | 0 .../apis/lambda/2014-11-11/docs-2.json | 0 .../apis/lambda/2014-11-11/paginators-1.json | 0 .../apis/lambda/2015-03-31/api-2.json | 938 +- .../apis/lambda/2015-03-31/docs-2.json | 490 + .../apis/lambda/2015-03-31/paginators-1.json | 0 .../apis/logs/2014-03-28/api-2.json | 619 +- .../apis/logs/2014-03-28/docs-2.json | 152 +- .../apis/logs/2014-03-28/paginators-1.json | 0 .../machinelearning/2014-12-12/api-2.json | 6 +- .../machinelearning/2014-12-12/docs-2.json | 28 +- .../2014-12-12/paginators-1.json | 0 .../mobileanalytics/2014-06-05/api-2.json | 0 .../mobileanalytics/2014-06-05/docs-2.json | 0 .../apis/monitoring/2010-08-01/api-2.json | 241 +- .../apis/monitoring/2010-08-01/docs-2.json | 71 +- .../monitoring/2010-08-01/paginators-1.json | 0 .../apis/opsworks/2013-02-18/api-2.json | 687 +- .../apis/opsworks/2013-02-18/docs-2.json | 53 +- .../opsworks/2013-02-18/paginators-1.json | 0 .../apis/opsworks/2013-02-18/waiters-2.json | 12 - .../apis/rds/2014-10-31/api-2.json | 3556 +++- .../rds/2014-10-31}/docs-2.json | 1157 +- .../rds/2014-10-31}/paginators-1.json | 0 .../rds/2014-10-31}/waiters-2.json | 11 +- .../apis/redshift/2012-12-01/api-2.json | 2737 ++- .../apis/redshift/2012-12-01/docs-2.json | 559 +- .../redshift/2012-12-01/paginators-1.json | 0 .../apis/redshift/2012-12-01/waiters-2.json | 0 .../apis/route53/2013-04-01/api-2.json | 1950 +-- .../apis/route53/2013-04-01/docs-2.json | 1159 ++ .../apis/route53/2013-04-01/paginators-1.json | 0 .../apis/route53domains/2014-05-15/api-2.json | 433 +- .../route53domains/2014-05-15/docs-2.json | 70 +- .../2014-05-15/paginators-1.json | 0 .../apis/s3/2006-03-01/api-2.json | 461 +- .../apis/s3/2006-03-01/docs-2.json | 246 +- .../apis/s3/2006-03-01/paginators-1.json | 0 .../apis/s3/2006-03-01/waiters-2.json | 5 - .../apis/sdb/2009-04-15/api-2.json | 21 +- .../apis/sdb/2009-04-15/docs-2.json | 32 +- .../apis/sdb/2009-04-15/paginators-1.json | 0 .../apis/sns/2010-03-31/api-2.json | 0 .../apis/sns/2010-03-31/docs-2.json | 0 .../apis/sns/2010-03-31/paginators-1.json | 0 .../apis/sqs/2012-11-05/api-2.json | 286 +- .../apis/sqs/2012-11-05/docs-2.json | 115 +- .../apis/sqs/2012-11-05/paginators-1.json | 0 .../aws-sdk-go/apis/ssm/2014-11-06/api-2.json | 1047 ++ .../apis/ssm/2014-11-06/docs-2.json | 440 + .../apis/storagegateway/2013-06-30/api-2.json | 1004 +- .../storagegateway/2013-06-30/docs-2.json | 381 +- .../2013-06-30/paginators-1.json | 0 .../streams.dynamodb/2012-08-10/api-2.json | 0 .../streams.dynamodb/2012-08-10/docs-2.json | 0 .../apis/sts/2011-06-15/api-2.json | 270 +- .../apis/sts/2011-06-15/docs-2.json | 351 + .../apis/support/2013-04-15/api-2.json | 0 .../apis/support/2013-04-15/docs-2.json | 0 .../apis/support/2013-04-15/paginators-1.json | 0 .../apis/swf/2012-01-25/api-2.json | 0 .../apis/swf/2012-01-25/docs-2.json | 0 .../apis/swf/2012-01-25/paginators-1.json | 0 .../apis/workspaces/2015-04-08/api-2.json | 205 +- .../apis/workspaces/2015-04-08/docs-2.json | 99 +- .../workspaces/2015-04-08/paginators-1.json | 0 .../aws/aws-sdk-go/aws/awserr/error.go | 56 +- .../aws/aws-sdk-go/aws/awserr/types.go | 85 +- .../aws/aws-sdk-go/aws/awsutil/copy.go | 11 +- .../aws/aws-sdk-go/aws/awsutil/copy_test.go | 32 - .../aws/aws-sdk-go/aws/awsutil/equal.go | 27 - .../aws/aws-sdk-go/aws/awsutil/equal_test.go | 29 - .../aws/aws-sdk-go/aws/awsutil/path_value.go | 105 +- .../aws-sdk-go/aws/awsutil/path_value_test.go | 116 +- .../aws/aws-sdk-go/aws/awsutil/prettify.go | 4 - .../aws-sdk-go/aws/awsutil/string_value.go | 89 - .../aws/aws-sdk-go/aws/client/client.go | 120 - .../aws-sdk-go/aws/client/default_retryer.go | 90 - .../aws/client/metadata/client_info.go | 12 - .../github.com/aws/aws-sdk-go/aws/config.go | 153 +- .../aws/aws-sdk-go/aws/config_test.go | 10 +- .../aws/aws-sdk-go/aws/convert_types.go | 12 - .../aws-sdk-go/aws/corehandlers/handlers.go | 84 +- .../aws/corehandlers/handlers_test.go | 99 +- .../aws/corehandlers/param_validator.go | 89 +- .../aws/corehandlers/param_validator_test.go | 197 +- .../aws/credentials/chain_provider.go | 31 +- .../aws/credentials/chain_provider_test.go | 89 +- .../aws-sdk-go/aws/credentials/credentials.go | 7 +- .../aws/credentials/credentials_test.go | 11 - .../ec2rolecreds/ec2_role_provider.go | 88 +- .../ec2rolecreds/ec2_role_provider_test.go | 30 +- .../aws/credentials/env_provider.go | 8 +- .../aws-sdk-go/aws/credentials/example.ini | 4 - .../shared_credentials_provider.go | 42 +- .../shared_credentials_provider_test.go | 30 +- .../aws/credentials/static_provider.go | 8 +- .../stscreds/assume_role_provider.go | 118 +- .../stscreds/assume_role_provider_test.go | 11 +- .../aws/aws-sdk-go/aws/defaults/defaults.go | 109 +- .../aws/aws-sdk-go/aws/ec2metadata/api.go | 107 +- .../aws-sdk-go/aws/ec2metadata/api_test.go | 109 +- .../aws/aws-sdk-go/aws/ec2metadata/service.go | 167 +- .../aws/ec2metadata/service_test.go | 79 - .../github.com/aws/aws-sdk-go/aws/errors.go | 4 +- .../github.com/aws/aws-sdk-go/aws/logger.go | 14 - .../aws/aws-sdk-go/aws/request/handlers.go | 81 +- .../aws-sdk-go/aws/request/handlers_test.go | 44 +- .../aws-sdk-go/aws/request/http_request.go | 33 - .../aws/request/http_request_1_4.go | 31 - .../aws/request/http_request_copy_test.go | 34 - .../aws/request/http_request_retry_test.go | 37 - .../aws-sdk-go/aws/request/offset_reader.go | 49 - .../aws/request/offset_reader_test.go | 122 - .../aws/aws-sdk-go/aws/request/request.go | 221 +- .../aws/request/request_1_6_test.go | 33 - .../aws/request/request_pagination.go | 104 - .../aws/request/request_pagination_test.go | 174 +- .../aws-sdk-go/aws/request/request_test.go | 170 +- .../aws/aws-sdk-go/aws/request/retryer.go | 34 +- .../aws-sdk-go/aws/request/retryer_test.go | 16 - .../aws/aws-sdk-go/aws/request/validation.go | 234 - .../aws-sdk-go/aws/service/default_retryer.go | 51 + .../aws/aws-sdk-go/aws/service/service.go | 133 + .../aws/service/serviceinfo/service_info.go | 15 + .../aws/aws-sdk-go/aws/session/session.go | 120 - .../aws-sdk-go/aws/session/session_test.go | 20 - vendor/github.com/aws/aws-sdk-go/aws/types.go | 32 +- .../aws/aws-sdk-go/aws/types_test.go | 19 - .../github.com/aws/aws-sdk-go/aws/version.go | 2 +- .../awsmigrate-renamer/Godeps/Godeps.json | 19 - .../awsmigrate-renamer/Godeps/Readme | 5 - .../awsmigrate/awsmigrate-renamer/gen/gen.go | 7 +- .../awsmigrate-renamer/rename/rename.go | 12 +- .../awsmigrate-renamer/rename/renames.go | 2 - .../awsmigrate/awsmigrate-renamer/renamer.go | 2 - .../vendor/golang.org/x/tools/LICENSE | 27 - .../vendor/golang.org/x/tools/PATENTS | 22 - .../x/tools/go/ast/astutil/enclosing.go | 624 - .../x/tools/go/ast/astutil/imports.go | 400 - .../golang.org/x/tools/go/ast/astutil/util.go | 14 - .../x/tools/go/buildutil/allpackages.go | 195 - .../x/tools/go/buildutil/fakecontext.go | 108 - .../golang.org/x/tools/go/buildutil/tags.go | 75 - .../golang.org/x/tools/go/buildutil/util.go | 167 - .../golang.org/x/tools/go/loader/cgo.go | 209 - .../x/tools/go/loader/cgo_pkgconfig.go | 39 - .../golang.org/x/tools/go/loader/doc.go | 205 - .../golang.org/x/tools/go/loader/go16.go | 13 - .../golang.org/x/tools/go/loader/loader.go | 1059 -- .../golang.org/x/tools/go/loader/util.go | 124 - .../aws/aws-sdk-go/awstesting/assert.go | 130 - .../aws/aws-sdk-go/awstesting/assert_test.go | 64 - .../aws/aws-sdk-go/awstesting/client.go | 42 - .../integration/smoke/acm/acm.feature | 14 - .../integration/smoke/acm/client.go | 14 - .../smoke/apigateway/apigateway.feature | 16 - .../integration/smoke/apigateway/client.go | 14 - .../applicationdiscoveryservice.feature | 8 - .../applicationdiscoveryservice/client.go | 15 - .../integration/smoke/autoscaling/client.go | 14 - .../integration/smoke/cloudfront/client.go | 14 - .../integration/smoke/cloudhsm/client.go | 14 - .../integration/smoke/cloudsearch/client.go | 14 - .../integration/smoke/cloudtrail/client.go | 14 - .../integration/smoke/cloudwatch/client.go | 14 - .../integration/smoke/codecommit/client.go | 14 - .../integration/smoke/codedeploy/client.go | 14 - .../integration/smoke/codepipeline/client.go | 14 - .../integration/smoke/cognitosync/client.go | 14 - .../integration/smoke/datapipeline/client.go | 14 - .../integration/smoke/dynamodb/client.go | 14 - .../integration/smoke/ec2/client.go | 14 - .../integration/smoke/elasticache/client.go | 14 - .../integration/smoke/emr/client.go | 14 - .../awstesting/integration/smoke/es/client.go | 14 - .../integration/smoke/es/es.feature | 16 - .../integration/smoke/glacier/client.go | 14 - .../integration/smoke/iam/client.go | 14 - .../integration/smoke/iotdataplane/client.go | 24 - .../smoke/iotdataplane/iotdataplane.feature | 12 - .../integration/smoke/kinesis/client.go | 14 - .../integration/smoke/kms/client.go | 14 - .../integration/smoke/lambda/client.go | 14 - .../integration/smoke/opsworks/client.go | 14 - .../integration/smoke/rds/client.go | 14 - .../integration/smoke/redshift/client.go | 14 - .../integration/smoke/route53/client.go | 14 - .../integration/smoke/ses/client.go | 14 - .../integration/smoke/simpledb/client.go | 14 - .../smoke/simpledb/simpledb.feature | 24 - .../integration/smoke/sns/client.go | 14 - .../integration/smoke/sqs/client.go | 14 - .../integration/smoke/ssm/client.go | 14 - .../integration/smoke/sts/client.go | 14 - .../integration/smoke/support/client.go | 14 - .../integration/smoke/swf/client.go | 14 - .../integration/smoke/waf/client.go | 14 - .../integration/smoke/waf/waf.feature | 20 - .../integration/smoke/workspaces/client.go | 14 - .../aws/aws-sdk-go/awstesting/mock/server.go | 20 - .../awstesting/performance/benchmarks.go | 120 - .../awstesting/performance/client.go | 11 - .../awstesting/performance/clients.feature | 17 - .../awstesting/performance/clients.go | 135 - .../aws-sdk-go/awstesting/performance/init.go | 91 - .../awstesting/performance/logging.go | 120 - .../awstesting/performance/streaming.feature | 26 - .../awstesting/sandbox/Dockerfile.golang-tip | 42 - .../awstesting/sandbox/Dockerfile.test.go1.4 | 7 - .../awstesting/sandbox/Dockerfile.test.go1.5 | 9 - .../sandbox/Dockerfile.test.go1.5-novendorexp | 7 - .../awstesting/sandbox/Dockerfile.test.go1.6 | 7 - .../awstesting/sandbox/Dockerfile.test.go1.7 | 7 - .../awstesting/sandbox/Dockerfile.test.gotip | 7 - .../aws/aws-sdk-go/awstesting/unit/unit.go | 13 - .../aws/aws-sdk-go/awstesting/util.go | 60 - .../aws/aws-sdk-go/awstesting/util_test.go | 49 - .../aws-godoc/templates/callgraph.html | 15 - .../doc-src/aws-godoc/templates/codewalk.html | 56 - .../aws-godoc/templates/codewalkdir.html | 16 - .../doc-src/aws-godoc/templates/dirlist.html | 31 - .../doc-src/aws-godoc/templates/error.html | 9 - .../doc-src/aws-godoc/templates/example.html | 30 - .../doc-src/aws-godoc/templates/godoc.html | 138 - .../doc-src/aws-godoc/templates/godocs.js | 571 - .../aws-godoc/templates/implements.html | 9 - .../doc-src/aws-godoc/templates/jquery.js | 2 - .../aws-godoc/templates/jquery.treeview.css | 76 - .../templates/jquery.treeview.edit.js | 39 - .../aws-godoc/templates/jquery.treeview.js | 256 - .../aws-godoc/templates/methodset.html | 9 - .../aws-godoc/templates/opensearch.xml | 11 - .../doc-src/aws-godoc/templates/package.txt | 116 - .../aws-godoc/templates/package_default.html | 245 - .../aws-godoc/templates/package_service.html | 263 - .../doc-src/aws-godoc/templates/pkglist.html | 24 - .../doc-src/aws-godoc/templates/search.html | 18 - .../doc-src/aws-godoc/templates/search.txt | 54 - .../aws-godoc/templates/searchcode.html | 64 - .../aws-godoc/templates/searchdoc.html | 24 - .../aws-godoc/templates/searchtxt.html | 42 - .../doc-src/aws-godoc/templates/style.css | 1036 -- .../templates/user_guide_example.html | 82 - .../aws/aws-sdk-go/doc-src/plugin/plugin.rb | 2 +- .../service/cloudfront/signCookies/README.md | 12 - .../cloudfront/signCookies/signCookies.go | 77 - .../example/service/s3/listObjects/README.md | 27 - .../service/s3/listObjects/listObjects.go | 36 - .../s3/listObjectsConcurrently/README.md | 13 - .../listObjectsConcurrently.go | 228 - .../internal/endpoints/endpoints.go | 31 + .../endpoints/endpoints.json | 44 +- .../endpoints/endpoints_map.go | 39 +- .../internal/endpoints/endpoints_test.go | 28 + .../customizations/machinelearning/client.go | 30 + .../machinelearning/machinelearning.feature | 21 + .../features/shared}/shared.go | 49 +- .../smoke/autoscaling/autoscaling.feature | 4 +- .../features/smoke/autoscaling/client.go | 16 + .../features}/smoke/cloudformation/client.go | 8 +- .../cloudformation/cloudformation.feature | 0 .../features/smoke/cloudfront/client.go | 16 + .../smoke/cloudfront/cloudfront.feature | 0 .../features/smoke/cloudhsm/client.go | 16 + .../features}/smoke/cloudhsm/cloudhsm.feature | 0 .../features/smoke/cloudsearch/client.go | 16 + .../smoke/cloudsearch/cloudsearch.feature | 0 .../features/smoke/cloudtrail/client.go | 16 + .../smoke/cloudtrail/cloudtrail.feature | 0 .../features/smoke/cloudwatch/client.go | 16 + .../smoke/cloudwatch/cloudwatch.feature | 0 .../features}/smoke/cloudwatchlogs/client.go | 8 +- .../cloudwatchlogs/cloudwatchlogs.feature | 0 .../features/smoke/codecommit/client.go | 16 + .../smoke/codecommit/codecommit.feature | 0 .../features/smoke/codedeploy/client.go | 16 + .../smoke/codedeploy/codedeploy.feature | 0 .../features/smoke/codepipeline/client.go | 16 + .../smoke/codepipeline/codepipeline.feature | 0 .../features}/smoke/cognitoidentity/client.go | 8 +- .../cognitoidentity/cognitoidentity.feature | 0 .../features/smoke/cognitosync/client.go | 16 + .../smoke/cognitosync/cognitosync.feature | 0 .../features}/smoke/configservice/client.go | 8 +- .../smoke/configservice/configservice.feature | 0 .../features/smoke/datapipeline/client.go | 16 + .../smoke/datapipeline/datapipeline.feature | 0 .../features}/smoke/devicefarm/client.go | 9 +- .../smoke/devicefarm/devicefarm.feature | 0 .../features}/smoke/directconnect/client.go | 8 +- .../smoke/directconnect/directconnect.feature | 0 .../smoke/directoryservice/client.go | 8 +- .../directoryservice/directoryservice.feature | 0 .../features/smoke/dynamodb/client.go | 16 + .../features}/smoke/dynamodb/dynamodb.feature | 0 .../features}/smoke/dynamodbstreams/client.go | 8 +- .../dynamodbstreams/dynamodbstreams.feature | 4 +- .../internal/features/smoke/ec2/client.go | 16 + .../features}/smoke/ec2/ec2.feature | 0 .../features}/smoke/ecs/client.go | 9 +- .../features}/smoke/ecs/ecs.feature | 0 .../features}/smoke/efs/client.go | 9 +- .../features}/smoke/efs/efs.feature | 0 .../features/smoke/elasticache/client.go | 16 + .../smoke/elasticache/elasticache.feature | 0 .../smoke/elasticbeanstalk/client.go | 8 +- .../elasticbeanstalk/elasticbeanstalk.feature | 0 .../smoke/elasticloadbalancing/client.go | 8 +- .../elasticloadbalancing.feature | 0 .../smoke/elastictranscoder/client.go | 8 +- .../elastictranscoder.feature | 0 .../internal/features/smoke/emr/client.go | 16 + .../features}/smoke/emr/emr.feature | 0 .../internal/features/smoke/glacier/client.go | 16 + .../features}/smoke/glacier/glacier.feature | 0 .../internal/features/smoke/iam/client.go | 16 + .../features}/smoke/iam/iam.feature | 0 .../internal/features/smoke/kinesis/client.go | 16 + .../features}/smoke/kinesis/kinesis.feature | 0 .../internal/features/smoke/kms/client.go | 16 + .../features}/smoke/kms/kms.feature | 6 +- .../internal/features/smoke/lambda/client.go | 16 + .../features}/smoke/lambda/lambda.feature | 0 .../features}/smoke/machinelearning/client.go | 8 +- .../machinelearning/machinelearning.feature | 0 .../features/smoke/opsworks/client.go | 16 + .../features}/smoke/opsworks/opsworks.feature | 0 .../internal/features/smoke/rds/client.go | 16 + .../features}/smoke/rds/rds.feature | 0 .../features/smoke/redshift/client.go | 16 + .../features}/smoke/redshift/redshift.feature | 0 .../internal/features/smoke/route53/client.go | 16 + .../features}/smoke/route53/route53.feature | 0 .../features}/smoke/route53domains/client.go | 8 +- .../route53domains/route53domains.feature | 0 .../internal/features/smoke/ses/client.go | 16 + .../features}/smoke/ses/ses.feature | 0 .../internal/features/smoke/sns/client.go | 16 + .../features}/smoke/sns/sns.feature | 5 +- .../internal/features/smoke/sqs/client.go | 16 + .../features}/smoke/sqs/sqs.feature | 0 .../internal/features/smoke/ssm/client.go | 16 + .../features}/smoke/ssm/ssm.feature | 0 .../features}/smoke/storagegateway/client.go | 8 +- .../storagegateway/storagegateway.feature | 4 +- .../internal/features/smoke/sts/client.go | 16 + .../features}/smoke/sts/sts.feature | 4 +- .../internal/features/smoke/support/client.go | 16 + .../features}/smoke/support/support.feature | 0 .../internal/features/smoke/swf/client.go | 16 + .../features}/smoke/swf/swf.feature | 0 .../features/smoke/workspaces/client.go | 16 + .../smoke/workspaces/workspaces.feature | 0 .../fixtures/helpers}/param_filler.go | 28 +- .../fixtures/protocol}/generate.go | 169 +- .../fixtures/protocol}/input/ec2.json | 62 - .../fixtures/protocol}/input/json.json | 64 +- .../fixtures/protocol}/input/query.json | 292 +- .../fixtures/protocol}/input/rest-json.json | 388 +- .../fixtures/protocol}/input/rest-xml.json | 354 +- .../fixtures/protocol}/output/ec2.json | 37 - .../fixtures/protocol}/output/json.json | 46 - .../fixtures/protocol}/output/query.json | 37 - .../fixtures/protocol}/output/rest-json.json | 0 .../fixtures/protocol}/output/rest-xml.json | 37 - .../{private => internal}/model/api/api.go | 232 +- .../model/api/api_test.go | 2 - .../model/api/customization_passes.go | 34 +- .../model/api/docstring.go | 0 .../model/api/exportable_name.go | 0 .../{private => internal}/model/api/load.go | 25 +- .../model/api/load_test.go | 2 - .../model/api/operation.go | 17 +- .../model/api/pagination.go | 0 .../{private => internal}/model/api/passes.go | 25 +- .../aws-sdk-go/internal/model/api/shape.go | 397 + .../model/cli/api-info/api-info.go | 6 +- .../model/cli/gen-api/main.go | 128 +- .../model/cli/gen-endpoints/main.go | 4 +- .../{private => internal}/model/endpoints.go | 2 +- .../protocol/ec2query/build.go | 9 +- .../internal/protocol/ec2query/build_test.go | 880 + .../protocol/ec2query/unmarshal.go | 15 +- .../protocol/ec2query/unmarshal_test.go | 836 + .../protocol/json/jsonutil/build.go | 128 +- .../protocol/json/jsonutil/build_test.go | 2 +- .../protocol/json/jsonutil/unmarshal.go | 7 +- .../protocol/jsonrpc/build_test.go | 806 +- .../protocol/jsonrpc/jsonrpc.go | 30 +- .../protocol/jsonrpc/unmarshal_test.go | 671 + .../protocol/query/build.go | 9 +- .../internal/protocol/query/build_test.go | 1333 ++ .../protocol/query/queryutil/queryutil.go | 17 +- .../protocol/query/unmarshal.go | 12 +- .../protocol/query/unmarshal_error.go | 33 + .../protocol/query/unmarshal_test.go | 1131 +- .../protocol/rest/build.go | 109 +- .../protocol/rest/payload.go | 4 +- .../protocol/rest/unmarshal.go | 17 +- .../internal/protocol/restjson/build_test.go | 1908 +++ .../protocol/restjson/restjson.go | 25 +- .../protocol/restjson/unmarshal_test.go | 827 +- .../internal/protocol/restxml/build_test.go | 2699 +++ .../protocol/restxml/restxml.go | 22 +- .../protocol/restxml/unmarshal_test.go | 922 +- .../protocol/xml/xmlutil/build.go | 18 +- .../protocol/xml/xmlutil/unmarshal.go | 2 +- .../protocol/xml/xmlutil/xml_to_struct.go | 0 .../internal/signer/v4/functional_test.go | 43 + .../{private => internal}/signer/v4/v4.go | 182 +- .../signer/v4/v4_test.go | 111 +- .../test}/integration/integration.go | 21 +- .../test/integration}/s3/integration_test.go | 8 +- .../s3/s3manager/integration_test.go | 22 +- .../test/integration}/s3/s3manager/stub.go | 0 .../test/integration}/s3/stub.go | 0 .../test/perf/dynamodb/dynamodb_live_test.go | 57 + .../test/perf/dynamodb/dynamodb_test.go | 62 + .../internal/test/perf/dynamodb/stub.go | 17 + .../perf/protocol/ec2query_build_test.go} | 10 +- .../test/perf/protocol/jsonrpc_build_test.go} | 14 +- .../perf/protocol/restjson_build_test.go} | 18 +- .../test/perf/protocol/restxml_build_test.go} | 10 +- .../internal/test/perf/protocol/stub.go | 1 + .../aws/aws-sdk-go/internal/test/unit/unit.go | 22 + .../{private => internal}/util/util.go | 2 +- .../internal/util/utilassert/utilassert.go | 76 + .../util/utilsort/utilsort.go} | 3 +- .../models/apis/acm/2015-12-08/api-2.json | 495 - .../models/apis/acm/2015-12-08/docs-2.json | 335 - .../apis/acm/2015-12-08/examples-1.json | 5 - .../apis/acm/2015-12-08/paginators-1.json | 10 - .../apis/apigateway/2015-07-09/api-2.json | 3347 ---- .../apis/apigateway/2015-07-09/docs-2.json | 1315 -- .../apigateway/2015-07-09/examples-1.json | 5 - .../apigateway/2015-07-09/paginators-1.json | 52 - .../2016-02-06/api-2.json | 502 - .../2016-02-06/docs-2.json | 362 - .../2016-02-06/examples-1.json | 5 - .../2016-02-06/paginators-1.json | 22 - .../autoscaling/2011-01-01/examples-1.json | 5 - .../autoscaling/2011-01-01/waiters-2.json | 62 - .../cloudformation/2010-05-15/docs-2.json | 1049 -- .../cloudformation/2010-05-15/examples-1.json | 5 - .../cloudformation/2010-05-15/waiters-2.json | 235 - .../apis/cloudfront/2015-07-27/api-2.json | 2721 --- .../apis/cloudfront/2015-07-27/docs-2.json | 1164 -- .../cloudfront/2015-07-27/paginators-1.json | 32 - .../apis/cloudfront/2015-07-27/waiters-2.json | 47 - .../apis/cloudfront/2015-09-17/api-2.json | 2150 --- .../apis/cloudfront/2015-09-17/docs-2.json | 1173 -- .../cloudfront/2015-09-17/examples-1.json | 5 - .../cloudfront/2015-09-17/paginators-1.json | 32 - .../apis/cloudfront/2015-09-17/waiters-2.json | 47 - .../apis/cloudfront/2016-01-13/api-2.json | 2216 --- .../apis/cloudfront/2016-01-13/docs-2.json | 1219 -- .../cloudfront/2016-01-13/examples-1.json | 5 - .../cloudfront/2016-01-13/paginators-1.json | 32 - .../apis/cloudfront/2016-01-13/waiters-2.json | 47 - .../apis/cloudfront/2016-01-28/api-2.json | 2218 --- .../apis/cloudfront/2016-01-28/docs-2.json | 1220 -- .../cloudfront/2016-01-28/examples-1.json | 5 - .../cloudfront/2016-01-28/paginators-1.json | 32 - .../apis/cloudfront/2016-01-28/waiters-2.json | 47 - .../apis/cloudhsm/2014-05-30/examples-1.json | 5 - .../2013-01-01/examples-1.json | 5 - .../apis/cloudtrail/2013-11-01/api-2.json | 792 - .../apis/cloudtrail/2013-11-01/docs-2.json | 543 - .../cloudtrail/2013-11-01/examples-1.json | 5 - .../apis/codecommit/2015-04-13/api-2.json | 916 - .../apis/codecommit/2015-04-13/docs-2.json | 632 - .../codecommit/2015-04-13/examples-1.json | 5 - .../codecommit/2015-04-13/paginators-1.json | 14 - .../codedeploy/2014-10-06/examples-1.json | 5 - .../codepipeline/2015-07-09/examples-1.json | 902 - .../2014-06-30/examples-1.json | 5 - .../apis/cognito-idp/2016-04-18/api-2.json | 1657 -- .../apis/cognito-idp/2016-04-18/docs-2.json | 980 -- .../cognito-idp/2016-04-18/examples-1.json | 5 - .../models/apis/config/2014-11-12/api-2.json | 1284 -- .../models/apis/config/2014-11-12/docs-2.json | 1050 -- .../apis/config/2014-11-12/examples-1.json | 5 - .../devicefarm/2015-06-23/examples-1.json | 5 - .../directconnect/2012-10-25/examples-1.json | 5 - .../apis/discovery/2015-11-01/api-2.json | 556 - .../apis/discovery/2015-11-01/docs-2.json | 447 - .../apis/discovery/2015-11-01/examples-1.json | 5 - .../models/apis/dms/2016-01-01/api-2.json | 1299 -- .../models/apis/dms/2016-01-01/docs-2.json | 872 - .../apis/dms/2016-01-01/examples-1.json | 5 - .../models/apis/ds/2015-04-16/examples-1.json | 5 - .../apis/dynamodb/2011-12-05/api-2.json | 801 - .../apis/dynamodb/2011-12-05/docs-2.json | 606 - .../apis/dynamodb/2011-12-05/examples-1.json | 5 - .../apis/dynamodb/2012-08-10/docs-2.json | 1028 -- .../apis/dynamodb/2012-08-10/examples-1.json | 5 - .../dynamodb/2012-08-10/paginators-1.json | 26 - .../apis/dynamodb/2012-08-10/waiters-2.json | 35 - .../models/apis/ec2/2015-10-01/api-2.json | 13759 ---------------- .../models/apis/ec2/2015-10-01/docs-2.json | 6382 ------- .../apis/ec2/2015-10-01/examples-1.json | 5 - .../apis/ec2/2015-10-01/paginators-1.json | 132 - .../models/apis/ec2/2015-10-01/waiters-2.json | 576 - .../models/apis/ecr/2015-09-21/api-2.json | 849 - .../models/apis/ecr/2015-09-21/docs-2.json | 620 - .../apis/ecr/2015-09-21/examples-1.json | 5 - .../models/apis/ecs/2014-11-13/docs-2.json | 1002 -- .../apis/ecs/2014-11-13/examples-1.json | 5 - .../elasticache/2015-02-02/examples-1.json | 5 - .../elasticache/2015-02-02/waiters-2.json | 143 - .../2010-12-01/examples-1.json | 1109 -- .../2009-03-31/examples-1.json | 5 - .../models/apis/email/2010-12-01/api-2.json | 1758 -- .../models/apis/email/2010-12-01/docs-2.json | 1195 -- .../apis/email/2010-12-01/examples-1.json | 5 - .../models/apis/es/2015-01-01/api-2.json | 764 - .../models/apis/es/2015-01-01/docs-2.json | 401 - .../models/apis/events/2014-02-03/api-2.json | 643 - .../models/apis/events/2014-02-03/docs-2.json | 411 - .../apis/events/2014-02-03/examples-1.json | 5 - .../models/apis/events/2015-10-07/api-2.json | 643 - .../models/apis/events/2015-10-07/docs-2.json | 411 - .../apis/events/2015-10-07/examples-1.json | 5 - .../apis/firehose/2015-08-04/api-2.json | 719 - .../apis/firehose/2015-08-04/docs-2.json | 576 - .../apis/gamelift/2015-10-01/api-2.json | 2194 --- .../apis/gamelift/2015-10-01/docs-2.json | 1033 -- .../apis/gamelift/2015-10-01/examples-1.json | 5 - .../models/apis/iam/2010-05-08/docs-2.json | 2523 --- .../apis/iam/2010-05-08/examples-1.json | 5 - .../apis/inspector/2015-08-18/api-2.json | 1426 -- .../apis/inspector/2015-08-18/docs-2.json | 1016 -- .../apis/inspector/2015-08-18/examples-1.json | 5 - .../apis/inspector/2016-02-16/api-2.json | 1964 --- .../apis/inspector/2016-02-16/docs-2.json | 1199 -- .../apis/inspector/2016-02-16/examples-1.json | 5 - .../apis/iot-data/2015-05-28/api-2.json | 263 - .../apis/iot-data/2015-05-28/docs-2.json | 152 - .../apis/iot-data/2015-05-28/examples-1.json | 5 - .../models/apis/iot/2015-05-28/api-2.json | 3710 ----- .../models/apis/iot/2015-05-28/docs-2.json | 1392 -- .../apis/iot/2015-05-28/examples-1.json | 5 - .../apis/kinesis/2013-12-02/docs-2.json | 506 - .../apis/kinesis/2013-12-02/examples-1.json | 5 - .../models/apis/kms/2014-11-01/api-2.json | 1209 -- .../models/apis/kms/2014-11-01/docs-2.json | 701 - .../apis/kms/2014-11-01/examples-1.json | 5 - .../models/apis/lambda/2015-03-31/docs-2.json | 716 - .../apis/lambda/2015-03-31/examples-1.json | 5 - .../apis/logs/2014-03-28/examples-1.json | 5 - .../machinelearning/2014-12-12/waiters-2.json | 81 - .../2015-07-01/api-2.json | 120 - .../2015-07-01/docs-2.json | 90 - .../2015-07-01/examples-1.json | 5 - .../meteringmarketplace/2016-01-14/api-2.json | 127 - .../2016-01-14/docs-2.json | 102 - .../2016-01-14/examples-1.json | 5 - .../monitoring/2010-08-01/examples-1.json | 5 - .../apis/opsworks/2013-02-18/examples-1.json | 5 - .../models/apis/rds/2013-01-10/api-2.json | 2901 ---- .../models/apis/rds/2013-01-10/docs-2.json | 1681 -- .../apis/rds/2013-01-10/examples-1.json | 5 - .../apis/rds/2013-01-10/paginators-1.json | 97 - .../models/apis/rds/2013-02-12/api-2.json | 3057 ---- .../models/apis/rds/2013-02-12/docs-2.json | 1796 -- .../apis/rds/2013-02-12/examples-1.json | 5 - .../models/apis/rds/2013-09-09/api-2.json | 3158 ---- .../models/apis/rds/2013-09-09/docs-2.json | 1876 --- .../apis/rds/2013-09-09/examples-1.json | 5 - .../apis/rds/2013-09-09/paginators-1.json | 110 - .../models/apis/rds/2014-09-01/api-2.json | 3271 ---- .../apis/rds/2014-09-01/examples-1.json | 5 - .../models/apis/rds/2014-10-31/docs-2.json | 2734 --- .../apis/rds/2014-10-31/examples-1.json | 5 - .../apis/rds/2014-10-31/paginators-1.json | 110 - .../models/apis/rds/2014-10-31/waiters-2.json | 102 - .../apis/redshift/2012-12-01/examples-1.json | 5 - .../apis/route53/2013-04-01/docs-2.json | 1794 -- .../apis/route53/2013-04-01/examples-1.json | 5 - .../apis/route53/2013-04-01/waiters-2.json | 18 - .../route53domains/2014-05-15/examples-1.json | 5 - .../models/apis/s3/2006-03-01/examples-1.json | 5 - .../apis/sqs/2012-11-05/examples-1.json | 44 - .../models/apis/ssm/2014-11-06/api-2.json | 1323 -- .../models/apis/ssm/2014-11-06/docs-2.json | 960 -- .../apis/ssm/2014-11-06/examples-1.json | 5 - .../apis/ssm/2014-11-06/paginators-1.json | 28 - .../storagegateway/2013-06-30/examples-1.json | 5 - .../models/apis/sts/2011-06-15/docs-2.json | 391 - .../apis/sts/2011-06-15/examples-1.json | 5 - .../models/apis/waf/2015-08-24/api-2.json | 1959 --- .../models/apis/waf/2015-08-24/docs-2.json | 1208 -- .../apis/waf/2015-08-24/examples-1.json | 5 - .../workspaces/2015-04-08/examples-1.json | 5 - .../aws/aws-sdk-go/private/README.md | 4 - .../aws-sdk-go/private/endpoints/endpoints.go | 65 - .../private/endpoints/endpoints_test.go | 51 - .../aws/aws-sdk-go/private/model/api/shape.go | 505 - .../private/model/api/shape_validation.go | 153 - .../private/model/api/shapetag_test.go | 25 - .../aws-sdk-go/private/model/api/waiters.go | 133 - .../private/protocol/ec2query/build_test.go | 1170 -- .../protocol/ec2query/unmarshal_test.go | 1063 -- .../private/protocol/idempotency.go | 75 - .../private/protocol/idempotency_test.go | 106 - .../protocol/jsonrpc/unmarshal_test.go | 820 - .../private/protocol/protocol_test.go | 203 - .../private/protocol/query/build_test.go | 2199 --- .../private/protocol/query/unmarshal_error.go | 66 - .../private/protocol/restjson/build_test.go | 2942 ---- .../private/protocol/restxml/build_test.go | 3666 ---- .../aws-sdk-go/private/protocol/unmarshal.go | 21 - .../private/protocol/unmarshal_test.go | 40 - .../aws/aws-sdk-go/private/signer/v2/v2.go | 174 - .../aws-sdk-go/private/signer/v2/v2_test.go | 195 - .../private/signer/v4/functional_test.go | 77 - .../private/signer/v4/header_rules.go | 82 - .../private/signer/v4/header_rules_test.go | 57 - .../aws/aws-sdk-go/private/waiter/waiter.go | 134 - .../aws-sdk-go/private/waiter/waiter_test.go | 401 - .../service/acm/acmiface/interface.go | 52 - .../aws/aws-sdk-go/service/acm/api.go | 1295 -- .../aws-sdk-go/service/acm/examples_test.go | 220 - .../aws/aws-sdk-go/service/acm/service.go | 95 - .../aws/aws-sdk-go/service/apigateway/api.go | 6855 -------- .../apigateway/apigatewayiface/interface.go | 338 - .../service/apigateway/customization.go | 14 - .../service/apigateway/examples_test.go | 1837 --- .../aws-sdk-go/service/apigateway/service.go | 90 - .../service/applicationautoscaling/api.go | 1252 -- .../applicationautoscalingiface/interface.go | 48 - .../applicationautoscaling/examples_test.go | 196 - .../service/applicationautoscaling/service.go | 112 - .../applicationdiscoveryservice/api.go | 1220 -- .../interface.go | 54 - .../examples_test.go | 267 - .../applicationdiscoveryservice/service.go | 282 - .../aws/aws-sdk-go/service/autoscaling/api.go | 2572 ++- .../autoscaling/autoscalingiface/interface.go | 6 - .../autoscalingiface/interface_test.go | 15 + .../service/autoscaling/examples_test.go | 154 +- .../aws-sdk-go/service/autoscaling/service.go | 75 +- .../aws-sdk-go/service/autoscaling/waiters.go | 94 - .../aws-sdk-go/service/cloudformation/api.go | 2287 +-- .../cloudformationiface/interface.go | 30 - .../cloudformationiface/interface_test.go | 15 + .../service/cloudformation/examples_test.go | 231 +- .../service/cloudformation/service.go | 77 +- .../service/cloudformation/waiters.go | 279 - .../aws/aws-sdk-go/service/cloudfront/api.go | 1972 +-- .../cloudfront/cloudfrontiface/interface.go | 6 - .../cloudfrontiface/interface_test.go | 15 + .../service/cloudfront/examples_test.go | 110 +- .../aws-sdk-go/service/cloudfront/service.go | 77 +- .../service/cloudfront/sign/policy.go | 40 +- .../service/cloudfront/sign/policy_test.go | 2 +- .../service/cloudfront/sign/sign_cookie.go | 241 - .../sign/sign_cookie_example_test.go | 163 - .../cloudfront/sign/sign_cookie_test.go | 83 - .../service/cloudfront/sign/sign_url.go | 18 +- .../service/cloudfront/sign/sign_url_test.go | 4 - .../aws-sdk-go/service/cloudfront/waiters.go | 76 - .../aws/aws-sdk-go/service/cloudhsm/api.go | 753 +- .../cloudhsm/cloudhsmiface/interface.go | 14 - .../cloudhsm/cloudhsmiface/interface_test.go | 15 + .../service/cloudhsm/examples_test.go | 103 +- .../aws-sdk-go/service/cloudhsm/service.go | 79 +- .../aws/aws-sdk-go/service/cloudsearch/api.go | 1325 +- .../cloudsearch/cloudsearchiface/interface.go | 2 - .../cloudsearchiface/interface_test.go | 15 + .../service/cloudsearch/examples_test.go | 49 +- .../aws-sdk-go/service/cloudsearch/service.go | 75 +- .../service/cloudsearchdomain/api.go | 271 +- .../cloudsearchdomainiface/interface.go | 2 - .../cloudsearchdomainiface/interface_test.go | 15 + .../cloudsearchdomain/customizations_test.go | 10 +- .../cloudsearchdomain/examples_test.go | 8 +- .../service/cloudsearchdomain/service.go | 77 +- .../aws/aws-sdk-go/service/cloudtrail/api.go | 1066 +- .../cloudtrail/cloudtrailiface/interface.go | 18 - .../cloudtrailiface/interface_test.go | 15 + .../service/cloudtrail/examples_test.go | 120 +- .../aws-sdk-go/service/cloudtrail/service.go | 96 +- .../aws/aws-sdk-go/service/cloudwatch/api.go | 913 +- .../cloudwatch/cloudwatchiface/interface.go | 2 - .../cloudwatchiface/interface_test.go | 15 + .../service/cloudwatch/examples_test.go | 23 +- .../aws-sdk-go/service/cloudwatch/service.go | 126 +- .../service/cloudwatchevents/api.go | 1370 -- .../cloudwatcheventsiface/interface.go | 62 - .../service/cloudwatchevents/examples_test.go | 281 - .../service/cloudwatchevents/service.go | 101 - .../aws-sdk-go/service/cloudwatchlogs/api.go | 1683 +- .../cloudwatchlogsiface/interface.go | 14 - .../cloudwatchlogsiface/interface_test.go | 15 + .../service/cloudwatchlogs/examples_test.go | 111 +- .../service/cloudwatchlogs/service.go | 132 +- .../aws/aws-sdk-go/service/codecommit/api.go | 932 +- .../codecommit/codecommitiface/interface.go | 22 - .../codecommitiface/interface_test.go | 15 + .../service/codecommit/examples_test.go | 132 +- .../aws-sdk-go/service/codecommit/service.go | 105 +- .../aws/aws-sdk-go/service/codedeploy/api.go | 2061 +-- .../codedeploy/codedeployiface/interface.go | 14 - .../codedeployiface/interface_test.go | 15 + .../service/codedeploy/examples_test.go | 169 +- .../aws-sdk-go/service/codedeploy/service.go | 120 +- .../aws-sdk-go/service/codepipeline/api.go | 1729 +- .../codepipelineiface/interface.go | 2 - .../codepipelineiface/interface_test.go | 15 + .../service/codepipeline/examples_test.go | 53 +- .../service/codepipeline/service.go | 138 +- .../aws-sdk-go/service/cognitoidentity/api.go | 868 +- .../cognitoidentityiface/interface.go | 2 - .../cognitoidentityiface/interface_test.go | 15 + .../cognitoidentity/customizations_test.go | 5 +- .../service/cognitoidentity/examples_test.go | 55 +- .../service/cognitoidentity/service.go | 79 +- .../service/cognitoidentityprovider/api.go | 3832 ----- .../cognitoidentityprovideriface/interface.go | 150 - .../cognitoidentityprovider/examples_test.go | 829 - .../cognitoidentityprovider/service.go | 93 - .../aws/aws-sdk-go/service/cognitosync/api.go | 867 +- .../cognitosync/cognitosynciface/interface.go | 2 - .../cognitosynciface/interface_test.go | 15 + .../service/cognitosync/examples_test.go | 35 +- .../aws-sdk-go/service/cognitosync/service.go | 75 +- .../aws-sdk-go/service/configservice/api.go | 2290 +-- .../configserviceiface/interface.go | 46 - .../configserviceiface/interface_test.go | 15 + .../service/configservice/examples_test.go | 313 +- .../service/configservice/service.go | 79 +- .../service/databasemigrationservice/api.go | 3301 ---- .../interface.go | 130 - .../databasemigrationservice/examples_test.go | 731 - .../databasemigrationservice/service.go | 93 - .../aws-sdk-go/service/datapipeline/api.go | 1062 +- .../datapipelineiface/interface.go | 2 - .../datapipelineiface/interface_test.go | 15 + .../service/datapipeline/examples_test.go | 39 +- .../service/datapipeline/service.go | 79 +- .../aws/aws-sdk-go/service/devicefarm/api.go | 2807 +--- .../devicefarm/devicefarmiface/interface.go | 56 - .../devicefarmiface/interface_test.go | 15 + .../service/devicefarm/examples_test.go | 296 +- .../aws-sdk-go/service/devicefarm/service.go | 79 +- .../aws-sdk-go/service/directconnect/api.go | 1068 +- .../directconnectiface/interface.go | 2 - .../directconnectiface/interface_test.go | 15 + .../service/directconnect/examples_test.go | 39 +- .../service/directconnect/service.go | 108 +- .../service/directoryservice/api.go | 2040 +-- .../directoryserviceiface/interface.go | 50 - .../directoryserviceiface/interface_test.go | 15 + .../service/directoryservice/examples_test.go | 309 +- .../service/directoryservice/service.go | 79 +- .../aws/aws-sdk-go/service/dynamodb/api.go | 3151 ++-- .../service/dynamodb/customizations.go | 35 +- .../service/dynamodb/customizations_test.go | 28 +- .../dynamodb/dynamodbattribute/converter.go | 82 +- .../dynamodbattribute/converter_test.go | 28 +- .../dynamodb/dynamodbattribute/decode.go | 640 - .../dynamodb/dynamodbattribute/decode_test.go | 394 - .../service/dynamodb/dynamodbattribute/doc.go | 60 - .../dynamodb/dynamodbattribute/encode.go | 570 - .../dynamodb/dynamodbattribute/encode_test.go | 126 - ...rter_examples_test.go => examples_test.go} | 3 +- .../dynamodb/dynamodbattribute/field.go | 269 - .../dynamodb/dynamodbattribute/field_test.go | 110 - .../marshaler_examples_test.go | 104 - .../dynamodbattribute/marshaler_test.go | 526 - .../dynamodb/dynamodbattribute/shared_test.go | 294 - .../service/dynamodb/dynamodbattribute/tag.go | 65 - .../dynamodb/dynamodbattribute/tag_test.go | 45 - .../dynamodb/dynamodbiface/interface.go | 6 - .../dynamodb/dynamodbiface/interface_test.go | 15 + .../service/dynamodb/examples_test.go | 44 +- .../aws-sdk-go/service/dynamodb/service.go | 143 +- .../aws-sdk-go/service/dynamodb/waiters.go | 59 - .../aws-sdk-go/service/dynamodbstreams/api.go | 252 +- .../dynamodbstreamsiface/interface.go | 2 - .../dynamodbstreamsiface/interface_test.go | 15 + .../service/dynamodbstreams/examples_test.go | 9 +- .../service/dynamodbstreams/service.go | 81 +- .../aws/aws-sdk-go/service/ec2/api.go | 11060 ++++--------- .../aws-sdk-go/service/ec2/customizations.go | 38 +- .../service/ec2/customizations_test.go | 11 +- .../service/ec2/ec2iface/interface.go | 92 - .../service/ec2/ec2iface/interface_test.go | 15 + .../aws-sdk-go/service/ec2/examples_test.go | 1036 +- .../aws/aws-sdk-go/service/ec2/service.go | 75 +- .../aws/aws-sdk-go/service/ec2/waiters.go | 878 - .../aws/aws-sdk-go/service/ecr/api.go | 1743 -- .../service/ecr/ecriface/interface.go | 78 - .../aws-sdk-go/service/ecr/examples_test.go | 376 - .../aws/aws-sdk-go/service/ecr/service.go | 93 - .../aws/aws-sdk-go/service/ecs/api.go | 2010 +-- .../service/ecs/ecsiface/interface.go | 2 - .../service/ecs/ecsiface/interface_test.go | 15 + .../aws-sdk-go/service/ecs/examples_test.go | 124 +- .../aws/aws-sdk-go/service/ecs/service.go | 88 +- .../aws/aws-sdk-go/service/ecs/waiters.go | 135 - .../aws/aws-sdk-go/service/efs/api.go | 418 +- .../service/efs/efsiface/interface.go | 2 - .../service/efs/efsiface/interface_test.go | 15 + .../aws-sdk-go/service/efs/examples_test.go | 30 +- .../aws/aws-sdk-go/service/efs/service.go | 77 +- .../aws/aws-sdk-go/service/elasticache/api.go | 2246 +-- .../elasticache/elasticacheiface/interface.go | 6 - .../elasticacheiface/interface_test.go | 15 + .../service/elasticache/examples_test.go | 100 +- .../aws-sdk-go/service/elasticache/service.go | 75 +- .../aws-sdk-go/service/elasticache/waiters.go | 183 - .../service/elasticbeanstalk/api.go | 2340 +-- .../elasticbeanstalkiface/interface.go | 22 +- .../elasticbeanstalkiface/interface_test.go | 15 + .../service/elasticbeanstalk/examples_test.go | 160 +- .../service/elasticbeanstalk/service.go | 87 +- .../service/elasticsearchservice/api.go | 1317 -- .../elasticsearchserviceiface/interface.go | 54 - .../elasticsearchservice/examples_test.go | 262 - .../service/elasticsearchservice/service.go | 92 - .../service/elastictranscoder/api.go | 1074 +- .../elastictranscoderiface/interface.go | 2 - .../elastictranscoderiface/interface_test.go | 15 + .../elastictranscoder/examples_test.go | 35 +- .../service/elastictranscoder/service.go | 77 +- .../service/elastictranscoder/waiters.go | 42 - .../aws/aws-sdk-go/service/elb/api.go | 1329 +- .../service/elb/elbiface/interface.go | 2 - .../service/elb/elbiface/interface_test.go | 15 + .../aws-sdk-go/service/elb/examples_test.go | 57 +- .../aws/aws-sdk-go/service/elb/service.go | 75 +- .../aws/aws-sdk-go/service/elb/waiters.go | 82 - .../aws/aws-sdk-go/service/emr/api.go | 1315 +- .../service/emr/emriface/interface.go | 2 - .../service/emr/emriface/interface_test.go | 15 + .../aws-sdk-go/service/emr/examples_test.go | 86 +- .../aws/aws-sdk-go/service/emr/service.go | 79 +- .../aws/aws-sdk-go/service/emr/waiters.go | 89 - .../aws/aws-sdk-go/service/firehose/api.go | 1985 --- .../service/firehose/examples_test.go | 366 - .../firehose/firehoseiface/interface.go | 42 - .../aws-sdk-go/service/firehose/service.go | 90 - .../aws/aws-sdk-go/service/gamelift/api.go | 4552 ----- .../service/gamelift/examples_test.go | 816 - .../gamelift/gameliftiface/interface.go | 154 - .../aws-sdk-go/service/gamelift/service.go | 126 - .../aws/aws-sdk-go/service/generate.go | 2 +- .../aws/aws-sdk-go/service/glacier/api.go | 1063 +- .../service/glacier/customizations.go | 16 +- .../service/glacier/customizations_test.go | 32 +- .../service/glacier/examples_test.go | 63 +- .../service/glacier/glacieriface/interface.go | 2 - .../glacier/glacieriface/interface_test.go | 15 + .../aws/aws-sdk-go/service/glacier/service.go | 75 +- .../aws/aws-sdk-go/service/glacier/waiters.go | 65 - .../aws/aws-sdk-go/service/iam/api.go | 8032 +++------ .../aws-sdk-go/service/iam/examples_test.go | 359 +- .../service/iam/iamiface/interface.go | 20 - .../service/iam/iamiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/iam/service.go | 99 +- .../aws/aws-sdk-go/service/iam/waiters.go | 65 - .../aws/aws-sdk-go/service/inspector/api.go | 4164 ----- .../service/inspector/examples_test.go | 807 - .../inspector/inspectoriface/interface.go | 142 - .../aws-sdk-go/service/inspector/service.go | 90 - .../aws/aws-sdk-go/service/iot/api.go | 5368 ------ .../aws-sdk-go/service/iot/examples_test.go | 1158 -- .../service/iot/iotiface/interface.go | 214 - .../aws/aws-sdk-go/service/iot/service.go | 94 - .../aws-sdk-go/service/iotdataplane/api.go | 346 - .../iotdataplane/customizations_test.go | 52 - .../service/iotdataplane/examples_test.go | 95 - .../iotdataplaneiface/interface.go | 30 - .../service/iotdataplane/service.go | 92 - .../aws/aws-sdk-go/service/kinesis/api.go | 1432 +- .../service/kinesis/examples_test.go | 114 +- .../service/kinesis/kinesisiface/interface.go | 18 - .../kinesis/kinesisiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/kinesis/service.go | 83 +- .../aws/aws-sdk-go/service/kinesis/waiters.go | 30 - .../aws/aws-sdk-go/service/kms/api.go | 2157 +-- .../aws-sdk-go/service/kms/examples_test.go | 132 +- .../service/kms/kmsiface/interface.go | 20 +- .../service/kms/kmsiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/kms/service.go | 166 +- .../aws/aws-sdk-go/service/lambda/api.go | 1835 +-- .../service/lambda/examples_test.go | 226 +- .../service/lambda/lambdaiface/interface.go | 30 - .../lambda/lambdaiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/lambda/service.go | 75 +- .../aws-sdk-go/service/machinelearning/api.go | 1497 +- .../service/machinelearning/customizations.go | 4 +- .../machinelearning/customizations_test.go | 9 +- .../service/machinelearning/examples_test.go | 51 +- .../machinelearningiface/interface.go | 2 - .../machinelearningiface/interface_test.go | 15 + .../service/machinelearning/service.go | 79 +- .../service/machinelearning/waiters.go | 123 - .../marketplacecommerceanalytics/api.go | 220 - .../examples_test.go | 44 - .../interface.go | 18 - .../marketplacecommerceanalytics/service.go | 89 - .../service/marketplacemetering/api.go | 121 - .../marketplacemetering/examples_test.go | 39 - .../marketplacemeteringiface/interface.go | 18 - .../service/marketplacemetering/service.go | 97 - .../aws-sdk-go/service/mobileanalytics/api.go | 106 +- .../service/mobileanalytics/examples_test.go | 3 +- .../mobileanalyticsiface/interface.go | 2 - .../mobileanalyticsiface/interface_test.go | 15 + .../service/mobileanalytics/service.go | 75 +- .../aws/aws-sdk-go/service/opsworks/api.go | 2390 ++- .../service/opsworks/examples_test.go | 146 +- .../opsworks/opsworksiface/interface.go | 2 - .../opsworks/opsworksiface/interface_test.go | 15 + .../aws-sdk-go/service/opsworks/service.go | 89 +- .../aws-sdk-go/service/opsworks/waiters.go | 290 - .../aws/aws-sdk-go/service/rds/api.go | 5998 ++----- .../aws-sdk-go/service/rds/examples_test.go | 309 +- .../service/rds/rdsiface/interface.go | 18 - .../service/rds/rdsiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/rds/service.go | 127 +- .../aws/aws-sdk-go/service/rds/waiters.go | 125 - .../aws/aws-sdk-go/service/redshift/api.go | 2378 ++- .../service/redshift/examples_test.go | 220 +- .../redshift/redshiftiface/interface.go | 14 - .../redshift/redshiftiface/interface_test.go | 15 + .../aws-sdk-go/service/redshift/service.go | 75 +- .../aws-sdk-go/service/redshift/waiters.go | 141 - .../aws/aws-sdk-go/service/route53/api.go | 5161 ++---- .../service/route53/customizations.go | 15 +- .../service/route53/customizations_test.go | 7 +- .../service/route53/examples_test.go | 509 +- .../service/route53/route53iface/interface.go | 74 - .../route53/route53iface/interface_test.go | 15 + .../aws/aws-sdk-go/service/route53/service.go | 77 +- .../service/route53/unmarshal_error.go | 77 - .../route53/unmarshal_error_leak_test.go | 37 - .../service/route53/unmarshal_error_test.go | 111 - .../aws/aws-sdk-go/service/route53/waiters.go | 30 - .../aws-sdk-go/service/route53domains/api.go | 911 +- .../service/route53domains/examples_test.go | 75 +- .../route53domainsiface/interface.go | 10 - .../route53domainsiface/interface_test.go | 15 + .../service/route53domains/service.go | 79 +- .../aws/aws-sdk-go/service/s3/api.go | 3389 ++-- .../aws-sdk-go/service/s3/bucket_location.go | 4 +- .../service/s3/bucket_location_test.go | 20 +- .../aws-sdk-go/service/s3/customizations.go | 57 +- .../service/s3/customizations_test.go | 34 +- .../aws-sdk-go/service/s3/examples_test.go | 276 +- .../service/s3/host_style_bucket.go | 159 +- .../service/s3/host_style_bucket_test.go | 84 +- .../service/s3/platform_handlers.go | 8 - .../service/s3/platform_handlers_go1.6.go | 28 - .../s3/platform_handlers_go1.6_test.go | 68 - .../service/s3/s3iface/interface.go | 22 - .../service/s3/s3iface/interface_test.go | 15 + .../aws-sdk-go/service/s3/s3manager/doc.go | 3 - .../service/s3/s3manager/download.go | 302 +- .../service/s3/s3manager/download_test.go | 198 +- .../s3/s3manager/s3manageriface/interface.go | 23 - .../service/s3/s3manager/shared_test.go | 4 - .../aws-sdk-go/service/s3/s3manager/upload.go | 255 +- .../service/s3/s3manager/upload_test.go | 236 +- .../aws/aws-sdk-go/service/s3/service.go | 77 +- .../aws/aws-sdk-go/service/s3/sse.go | 2 +- .../aws/aws-sdk-go/service/s3/sse_test.go | 12 +- .../aws-sdk-go/service/s3/statusok_error.go | 36 - .../service/s3/statusok_error_test.go | 130 - .../aws-sdk-go/service/s3/unmarshal_error.go | 18 +- .../service/s3/unmarshal_error_leak_test.go | 33 - .../service/s3/unmarshal_error_test.go | 168 +- .../aws/aws-sdk-go/service/s3/waiters.go | 123 - .../aws/aws-sdk-go/service/ses/api.go | 3920 +---- .../aws-sdk-go/service/ses/examples_test.go | 558 +- .../aws/aws-sdk-go/service/ses/service.go | 77 +- .../service/ses/sesiface/interface.go | 78 - .../service/ses/sesiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/ses/waiters.go | 30 - .../aws/aws-sdk-go/service/simpledb/api.go | 1284 -- .../service/simpledb/customizations.go | 11 - .../service/simpledb/examples_test.go | 269 - .../aws-sdk-go/service/simpledb/service.go | 102 - .../simpledb/simpledbiface/interface.go | 58 - .../simpledb/unmarshal_error_leak_test.go | 33 - .../service/simpledb/unmarshall_error.go | 53 - .../service/simpledb/unmarshall_error_test.go | 139 - .../aws/aws-sdk-go/service/sns/api.go | 779 +- .../aws-sdk-go/service/sns/examples_test.go | 51 +- .../aws/aws-sdk-go/service/sns/service.go | 75 +- .../service/sns/snsiface/interface.go | 2 - .../service/sns/snsiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/sqs/api.go | 1029 +- .../aws/aws-sdk-go/service/sqs/api_test.go | 6 +- .../aws/aws-sdk-go/service/sqs/checksums.go | 2 +- .../aws-sdk-go/service/sqs/checksums_test.go | 11 +- .../aws-sdk-go/service/sqs/examples_test.go | 35 +- .../aws/aws-sdk-go/service/sqs/service.go | 100 +- .../service/sqs/sqsiface/interface.go | 2 - .../service/sqs/sqsiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/ssm/api.go | 2002 +-- .../aws-sdk-go/service/ssm/examples_test.go | 237 +- .../aws/aws-sdk-go/service/ssm/service.go | 191 +- .../service/ssm/ssmiface/interface.go | 38 - .../service/ssm/ssmiface/interface_test.go | 15 + .../aws-sdk-go/service/storagegateway/api.go | 3507 ++-- .../service/storagegateway/examples_test.go | 238 +- .../service/storagegateway/service.go | 126 +- .../storagegatewayiface/interface.go | 26 - .../storagegatewayiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/sts/api.go | 862 +- .../service/sts/customizations_test.go | 12 +- .../aws-sdk-go/service/sts/examples_test.go | 40 +- .../aws/aws-sdk-go/service/sts/service.go | 105 +- .../service/sts/stsiface/interface.go | 6 - .../service/sts/stsiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/support/api.go | 509 +- .../service/support/examples_test.go | 29 +- .../aws/aws-sdk-go/service/support/service.go | 79 +- .../service/support/supportiface/interface.go | 2 - .../support/supportiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/swf/api.go | 2600 ++- .../aws-sdk-go/service/swf/examples_test.go | 63 +- .../aws/aws-sdk-go/service/swf/service.go | 79 +- .../service/swf/swfiface/interface.go | 2 - .../service/swf/swfiface/interface_test.go | 15 + .../aws/aws-sdk-go/service/waf/api.go | 5781 ------- .../aws-sdk-go/service/waf/examples_test.go | 868 - .../aws/aws-sdk-go/service/waf/service.go | 91 - .../service/waf/wafiface/interface.go | 166 - .../aws/aws-sdk-go/service/workspaces/api.go | 790 +- .../service/workspaces/examples_test.go | 99 +- .../aws-sdk-go/service/workspaces/service.go | 79 +- .../workspaces/workspacesiface/interface.go | 14 - .../workspacesiface/interface_test.go | 15 + .../vendor/github.com/go-ini/ini/.gitignore | 4 - .../vendor/github.com/go-ini/ini/LICENSE | 191 - .../vendor/github.com/go-ini/ini/README.md | 560 - .../vendor/github.com/go-ini/ini/README_ZH.md | 547 - .../vendor/github.com/go-ini/ini/ini.go | 1226 -- .../vendor/github.com/go-ini/ini/ini_test.go | 512 - .../vendor/github.com/go-ini/ini/struct.go | 350 - .../github.com/go-ini/ini/struct_test.go | 239 - .../github.com/go-ini/ini/testdata/conf.ini | 2 - .../jmespath/go-jmespath/.gitignore | 4 - .../jmespath/go-jmespath/.travis.yml | 9 - .../github.com/jmespath/go-jmespath/LICENSE | 13 - .../github.com/jmespath/go-jmespath/Makefile | 44 - .../github.com/jmespath/go-jmespath/README.md | 7 - .../github.com/jmespath/go-jmespath/api.go | 49 - .../jmespath/go-jmespath/api_test.go | 32 - .../go-jmespath/astnodetype_string.go | 16 - .../go-jmespath/compliance/basic.json | 96 - .../go-jmespath/compliance/boolean.json | 257 - .../go-jmespath/compliance/current.json | 25 - .../go-jmespath/compliance/escape.json | 46 - .../go-jmespath/compliance/filters.json | 468 - .../go-jmespath/compliance/functions.json | 825 - .../go-jmespath/compliance/identifiers.json | 1377 -- .../go-jmespath/compliance/indices.json | 346 - .../go-jmespath/compliance/literal.json | 185 - .../go-jmespath/compliance/multiselect.json | 393 - .../go-jmespath/compliance/ormatch.json | 59 - .../jmespath/go-jmespath/compliance/pipe.json | 131 - .../go-jmespath/compliance/slice.json | 187 - .../go-jmespath/compliance/syntax.json | 616 - .../go-jmespath/compliance/unicode.json | 38 - .../go-jmespath/compliance/wildcard.json | 460 - .../jmespath/go-jmespath/compliance_test.go | 123 - .../jmespath/go-jmespath/functions.go | 842 - .../jmespath/go-jmespath/fuzz/jmespath.go | 13 - .../jmespath/go-jmespath/interpreter.go | 418 - .../jmespath/go-jmespath/interpreter_test.go | 221 - .../github.com/jmespath/go-jmespath/lexer.go | 420 - .../jmespath/go-jmespath/lexer_test.go | 161 - .../github.com/jmespath/go-jmespath/parser.go | 603 - .../jmespath/go-jmespath/parser_test.go | 136 - .../jmespath/go-jmespath/toktype_string.go | 16 - .../github.com/jmespath/go-jmespath/util.go | 185 - .../jmespath/go-jmespath/util_test.go | 73 - .../open-golang/open/exec_windows.go | 2 +- vendor/gopkg.in/alecthomas/kingpin.v2 | 2 +- 1201 files changed, 85693 insertions(+), 328618 deletions(-) delete mode 100644 vendor/github.com/alecthomas/template/LICENSE delete mode 100644 vendor/github.com/aws/aws-sdk-go/.godoc_config rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/autoscaling/2011-01-01/api-2.json (74%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/autoscaling/2011-01-01/docs-2.json (76%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/autoscaling/2011-01-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudformation/2010-05-15/api-2.json (65%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudformation/2010-05-15/paginators-1.json (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/waiters-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudfront/2015-04-17/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudfront/2015-04-17/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudfront/2015-04-17/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudfront/2015-04-17/waiters-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudhsm/2014-05-30/api-2.json (75%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudhsm/2014-05-30/docs-2.json (82%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudsearch/2013-01-01/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudsearch/2013-01-01/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudsearch/2013-01-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudsearchdomain/2013-01-01/api-2.json (89%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudsearchdomain/2013-01-01/docs-2.json (70%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/cloudtrail/2013-11-01/api-2.json create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/cloudtrail/2013-11-01/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cloudtrail/2013-11-01/paginators-1.json (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/codecommit/2015-04-13/api-2.json create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/codecommit/2015-04-13/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/codedeploy/2014-10-06/api-2.json (70%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/codedeploy/2014-10-06/docs-2.json (60%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/codedeploy/2014-10-06/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/codepipeline/2015-07-09/api-2.json (82%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/codepipeline/2015-07-09/docs-2.json (86%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cognito-identity/2014-06-30/api-2.json (54%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cognito-identity/2014-06-30/docs-2.json (87%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cognito-sync/2014-06-30/api-2.json (99%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/cognito-sync/2014-06-30/docs-2.json (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/config/2014-11-12/api-2.json create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/config/2014-11-12/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/config/2014-11-12/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/datapipeline/2012-10-29/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/datapipeline/2012-10-29/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/datapipeline/2012-10-29/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/devicefarm/2015-06-23/api-2.json (62%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/devicefarm/2015-06-23/docs-2.json (59%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/devicefarm/2015-06-23/paginators-1.json (80%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/directconnect/2012-10-25/api-2.json (83%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/directconnect/2012-10-25/docs-2.json (80%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/directconnect/2012-10-25/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/ds/2015-04-16/api-2.json (55%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/ds/2015-04-16/docs-2.json (59%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/dynamodb/2012-08-10/api-2.json (85%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models/apis/dynamodb/2011-12-05 => apis/dynamodb/2012-08-10}/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models/apis/dynamodb/2011-12-05 => apis/dynamodb/2012-08-10}/waiters-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/ec2/2015-04-15/api-2.json (99%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/ec2/2015-04-15/docs-2.json (97%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/ec2/2015-04-15/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/ec2/2015-04-15/waiters-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/ecs/2014-11-13/api-2.json (74%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/ecs/2014-11-13/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/ecs/2014-11-13/waiters-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticache/2015-02-02/api-2.json (57%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticache/2015-02-02/docs-2.json (70%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticache/2015-02-02/paginators-1.json (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/waiters-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticbeanstalk/2010-12-01/api-2.json (81%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticbeanstalk/2010-12-01/docs-2.json (70%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticbeanstalk/2010-12-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticfilesystem/2015-02-01/api-2.json (96%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticfilesystem/2015-02-01/docs-2.json (84%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticloadbalancing/2012-06-01/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticloadbalancing/2012-06-01/docs-2.json (95%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticloadbalancing/2012-06-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticloadbalancing/2012-06-01/waiters-2.json (60%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticmapreduce/2009-03-31/api-2.json (89%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticmapreduce/2009-03-31/docs-2.json (90%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticmapreduce/2009-03-31/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elasticmapreduce/2009-03-31/waiters-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elastictranscoder/2012-09-25/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elastictranscoder/2012-09-25/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elastictranscoder/2012-09-25/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/elastictranscoder/2012-09-25/waiters-2.json (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/api-2.json create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/email/2010-12-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/email/2010-12-01/waiters-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/glacier/2012-06-01/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/glacier/2012-06-01/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/glacier/2012-06-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/glacier/2012-06-01/waiters-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/iam/2010-05-08/api-2.json (57%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/iam/2010-05-08/paginators-1.json (95%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/iam/2010-05-08/waiters-2.json (51%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/importexport/2010-06-01/api-2.json (95%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/importexport/2010-06-01/docs-2.json (88%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/importexport/2010-06-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/kinesis/2013-12-02/api-2.json (67%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/kinesis/2013-12-02/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/kinesis/2013-12-02/waiters-2.json (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/kms/2014-11-01/api-2.json create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/kms/2014-11-01/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/kms/2014-11-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/lambda/2014-11-11/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/lambda/2014-11-11/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/lambda/2014-11-11/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/lambda/2015-03-31/api-2.json (54%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/lambda/2015-03-31/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/lambda/2015-03-31/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/logs/2014-03-28/api-2.json (72%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/logs/2014-03-28/docs-2.json (72%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/logs/2014-03-28/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/machinelearning/2014-12-12/api-2.json (99%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/machinelearning/2014-12-12/docs-2.json (94%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/machinelearning/2014-12-12/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/mobileanalytics/2014-06-05/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/mobileanalytics/2014-06-05/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/monitoring/2010-08-01/api-2.json (80%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/monitoring/2010-08-01/docs-2.json (64%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/monitoring/2010-08-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/opsworks/2013-02-18/api-2.json (83%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/opsworks/2013-02-18/docs-2.json (93%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/opsworks/2013-02-18/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/opsworks/2013-02-18/waiters-2.json (94%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/rds/2014-10-31/api-2.json (62%) rename vendor/github.com/aws/aws-sdk-go/{models/apis/rds/2014-09-01 => apis/rds/2014-10-31}/docs-2.json (58%) rename vendor/github.com/aws/aws-sdk-go/{models/apis/rds/2013-02-12 => apis/rds/2014-10-31}/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models/apis/rds/2013-09-09 => apis/rds/2014-10-31}/waiters-2.json (93%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/redshift/2012-12-01/api-2.json (62%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/redshift/2012-12-01/docs-2.json (90%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/redshift/2012-12-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/redshift/2012-12-01/waiters-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/route53/2013-04-01/api-2.json (53%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/route53/2013-04-01/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/route53/2013-04-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/route53domains/2014-05-15/api-2.json (75%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/route53domains/2014-05-15/docs-2.json (87%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/route53domains/2014-05-15/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/s3/2006-03-01/api-2.json (91%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/s3/2006-03-01/docs-2.json (88%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/s3/2006-03-01/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/s3/2006-03-01/waiters-2.json (92%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/sdb/2009-04-15/api-2.json (97%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/sdb/2009-04-15/docs-2.json (80%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/sdb/2009-04-15/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/sns/2010-03-31/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/sns/2010-03-31/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/sns/2010-03-31/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/sqs/2012-11-05/api-2.json (76%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/sqs/2012-11-05/docs-2.json (65%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/sqs/2012-11-05/paginators-1.json (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/ssm/2014-11-06/api-2.json create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/ssm/2014-11-06/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/storagegateway/2013-06-30/api-2.json (76%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/storagegateway/2013-06-30/docs-2.json (54%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/storagegateway/2013-06-30/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/streams.dynamodb/2012-08-10/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/streams.dynamodb/2012-08-10/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/sts/2011-06-15/api-2.json (72%) create mode 100644 vendor/github.com/aws/aws-sdk-go/apis/sts/2011-06-15/docs-2.json rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/support/2013-04-15/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/support/2013-04-15/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/support/2013-04-15/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/swf/2012-01-25/api-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/swf/2012-01-25/docs-2.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/swf/2012-01-25/paginators-1.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/workspaces/2015-04-08/api-2.json (75%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/workspaces/2015-04-08/docs-2.json (87%) rename vendor/github.com/aws/aws-sdk-go/{models => }/apis/workspaces/2015-04-08/paginators-1.json (100%) delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/awsutil/equal.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/awsutil/equal_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/client/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/client/default_retryer.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/client/metadata/client_info.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/request/http_request.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/request/http_request_1_4.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/request/http_request_copy_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/request/http_request_retry_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/request/request_1_6_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/request/retryer_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/request/validation.go create mode 100644 vendor/github.com/aws/aws-sdk-go/aws/service/default_retryer.go create mode 100644 vendor/github.com/aws/aws-sdk-go/aws/service/service.go create mode 100644 vendor/github.com/aws/aws-sdk-go/aws/service/serviceinfo/service_info.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/session/session.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/Godeps/Godeps.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/Godeps/Readme delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/LICENSE delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/PATENTS delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/imports.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/util.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/allpackages.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/fakecontext.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/tags.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/util.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/cgo.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/cgo_pkgconfig.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/doc.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/go16.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/loader.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/util.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/assert.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/assert_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/acm.feature delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/apigateway.feature delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/applicationdiscoveryservice.feature delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/es.feature delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/iotdataplane.feature delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/simpledb.feature delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/waf.feature delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/mock/server.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/performance/benchmarks.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/performance/client.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.feature delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/performance/init.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/performance/logging.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/performance/streaming.feature delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.golang-tip delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.4 delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5 delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5-novendorexp delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.6 delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.7 delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.gotip delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/unit/unit.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/util.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/awstesting/util_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/callgraph.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/codewalk.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/codewalkdir.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/dirlist.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/error.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/example.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/godoc.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/godocs.js delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/implements.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.js delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.css delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.edit.js delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.js delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/methodset.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/opensearch.xml delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package.txt delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_default.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_service.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/pkglist.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/search.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/search.txt delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchcode.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchdoc.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchtxt.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/style.css delete mode 100644 vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/user_guide_example.html delete mode 100644 vendor/github.com/aws/aws-sdk-go/example/service/cloudfront/signCookies/README.md delete mode 100644 vendor/github.com/aws/aws-sdk-go/example/service/cloudfront/signCookies/signCookies.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/README.md delete mode 100644 vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjectsConcurrently/README.md delete mode 100644 vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjectsConcurrently/listObjectsConcurrently.go create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/endpoints/endpoints.json (71%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/endpoints/endpoints_map.go (79%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/customizations/machinelearning/client.go create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/customizations/machinelearning/machinelearning.feature rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration/smoke => internal/features/shared}/shared.go (80%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/autoscaling/autoscaling.feature (80%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/autoscaling/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cloudformation/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cloudformation/cloudformation.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudfront/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cloudfront/cloudfront.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudhsm/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cloudhsm/cloudhsm.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudsearch/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cloudsearch/cloudsearch.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudtrail/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cloudtrail/cloudtrail.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatch/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cloudwatch/cloudwatch.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cloudwatchlogs/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cloudwatchlogs/cloudwatchlogs.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codecommit/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/codecommit/codecommit.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codedeploy/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/codedeploy/codedeploy.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codepipeline/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/codepipeline/codepipeline.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cognitoidentity/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cognitoidentity/cognitoidentity.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitosync/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/cognitosync/cognitosync.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/configservice/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/configservice/configservice.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/datapipeline/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/datapipeline/datapipeline.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/devicefarm/client.go (50%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/devicefarm/devicefarm.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/directconnect/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/directconnect/directconnect.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/directoryservice/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/directoryservice/directoryservice.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodb/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/dynamodb/dynamodb.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/dynamodbstreams/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/dynamodbstreams/dynamodbstreams.feature (80%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ec2/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/ec2/ec2.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/ecs/client.go (50%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/ecs/ecs.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/efs/client.go (50%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/efs/efs.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticache/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/elasticache/elasticache.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/elasticbeanstalk/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/elasticbeanstalk/elasticbeanstalk.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/elasticloadbalancing/client.go (65%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/elasticloadbalancing/elasticloadbalancing.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/elastictranscoder/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/elastictranscoder/elastictranscoder.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/emr/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/emr/emr.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/glacier/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/glacier/glacier.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/iam/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/iam/iam.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kinesis/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/kinesis/kinesis.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kms/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/kms/kms.feature (74%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/lambda/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/lambda/lambda.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/machinelearning/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/machinelearning/machinelearning.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/opsworks/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/opsworks/opsworks.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/rds/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/rds/rds.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/redshift/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/redshift/redshift.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/route53/route53.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/route53domains/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/route53domains/route53domains.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ses/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/ses/ses.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sns/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/sns/sns.feature (72%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sqs/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/sqs/sqs.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ssm/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/ssm/ssm.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/storagegateway/client.go (64%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/storagegateway/storagegateway.feature (72%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sts/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/sts/sts.feature (75%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/support/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/support/support.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/swf/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/swf/swf.feature (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/features/smoke/workspaces/client.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration => internal/features}/smoke/workspaces/workspaces.feature (100%) rename vendor/github.com/aws/aws-sdk-go/{private/model/api => internal/fixtures/helpers}/param_filler.go (81%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/generate.go (58%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/input/ec2.json (85%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/input/json.json (88%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/input/query.json (65%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/input/rest-json.json (71%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/input/rest-xml.json (80%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/output/ec2.json (92%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/output/json.json (84%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/output/query.json (96%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/output/rest-json.json (100%) rename vendor/github.com/aws/aws-sdk-go/{models/protocol_tests => internal/fixtures/protocol}/output/rest-xml.json (95%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/api/api.go (56%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/api/api_test.go (98%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/api/customization_passes.go (71%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/api/docstring.go (100%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/api/exportable_name.go (100%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/api/load.go (69%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/api/load_test.go (97%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/api/operation.go (90%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/api/pagination.go (100%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/api/passes.go (92%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/model/api/shape.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/cli/api-info/api-info.go (64%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/cli/gen-api/main.go (57%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/cli/gen-endpoints/main.go (88%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/model/endpoints.go (95%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/ec2query/build.go (67%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/build_test.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/ec2query/unmarshal.go (61%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/unmarshal_test.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/json/jsonutil/build.go (60%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/json/jsonutil/build_test.go (95%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/json/jsonutil/unmarshal.go (96%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/jsonrpc/build_test.go (51%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/jsonrpc/jsonrpc.go (62%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/protocol/jsonrpc/unmarshal_test.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/query/build.go (67%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/protocol/query/build_test.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/query/queryutil/queryutil.go (93%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/query/unmarshal.go (50%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/protocol/query/unmarshal_error.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/query/unmarshal_test.go (53%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/rest/build.go (63%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/rest/payload.go (89%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/rest/unmarshal.go (86%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/protocol/restjson/build_test.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/restjson/restjson.go (58%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/restjson/unmarshal_test.go (55%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/protocol/restxml/build_test.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/restxml/restxml.go (53%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/restxml/unmarshal_test.go (53%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/xml/xmlutil/build.go (96%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/xml/xmlutil/unmarshal.go (99%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/protocol/xml/xmlutil/xml_to_struct.go (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/signer/v4/functional_test.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/signer/v4/v4.go (56%) rename vendor/github.com/aws/aws-sdk-go/{private => internal}/signer/v4/v4_test.go (67%) rename vendor/github.com/aws/aws-sdk-go/{awstesting => internal/test}/integration/integration.go (53%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration/customizations => internal/test/integration}/s3/integration_test.go (96%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration/customizations => internal/test/integration}/s3/s3manager/integration_test.go (89%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration/customizations => internal/test/integration}/s3/s3manager/stub.go (100%) rename vendor/github.com/aws/aws-sdk-go/{awstesting/integration/customizations => internal/test/integration}/s3/stub.go (100%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/dynamodb_live_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/dynamodb_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/stub.go rename vendor/github.com/aws/aws-sdk-go/{private/protocol/ec2query/build_bench_test.go => internal/test/perf/protocol/ec2query_build_test.go} (92%) rename vendor/github.com/aws/aws-sdk-go/{private/protocol/jsonrpc/build_bench_test.go => internal/test/perf/protocol/jsonrpc_build_test.go} (85%) rename vendor/github.com/aws/aws-sdk-go/{private/protocol/restjson/build_bench_test.go => internal/test/perf/protocol/restjson_build_test.go} (97%) rename vendor/github.com/aws/aws-sdk-go/{private/protocol/restxml/build_bench_test.go => internal/test/perf/protocol/restxml_build_test.go} (97%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/stub.go create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/test/unit/unit.go rename vendor/github.com/aws/aws-sdk-go/{private => internal}/util/util.go (97%) create mode 100644 vendor/github.com/aws/aws-sdk-go/internal/util/utilassert/utilassert.go rename vendor/github.com/aws/aws-sdk-go/{awstesting/sort_keys.go => internal/util/utilsort/utilsort.go} (77%) delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/waiters-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/paginators-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/examples-1.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/README.md delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/model/api/shape_validation.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/model/api/shapetag_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/model/api/waiters.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/idempotency.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/idempotency_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/unmarshal_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/protocol_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/query/build_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/signer/v2/v2.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/signer/v2/v2_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/signer/v4/functional_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/signer/v4/header_rules.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/signer/v4/header_rules_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/waiter/waiter.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/private/waiter/waiter_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/acm/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/acm/service.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/apigateway/customization.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/apigateway/service.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/autoscaling/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie_example_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudfront/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/service.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/service.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/encode.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/encode_test.go rename vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/{converter_examples_test.go => examples_test.go} (99%) delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/field.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/field_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/shared_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/tag.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/tag_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodb/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/ec2/waiters.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/ecr/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/ecr/service.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/ecs/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/elasticache/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/elb/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/emr/waiters.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/firehose/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/firehose/service.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/glacier/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/iam/waiters.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/inspector/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/inspector/service.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/iot/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/iot/service.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/iotdataplane/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/iotdataplane/customizations_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/iotdataplane/service.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/kinesis/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/machinelearning/waiters.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/service.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/service.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/opsworks/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/rds/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/redshift/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error_leak_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/route53/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/doc.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/s3manageriface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/shared_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error_leak_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/s3/waiters.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/ses/waiters.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/simpledb/customizations.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshal_error_leak_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshall_error.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshall_error_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface_test.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/waf/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/waf/service.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go create mode 100644 vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/.gitignore delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/LICENSE delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README.md delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README_ZH.md delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/conf.ini delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/.gitignore delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/.travis.yml delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/LICENSE delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/Makefile delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/README.md delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/api.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/api_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/astnodetype_string.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/basic.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/boolean.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/current.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/escape.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/filters.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/functions.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/identifiers.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/indices.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/literal.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/multiselect.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/ormatch.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/pipe.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/slice.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/syntax.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/unicode.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/wildcard.json delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/functions.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/fuzz/jmespath.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/interpreter.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/interpreter_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/lexer.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/lexer_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/parser.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/parser_test.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/toktype_string.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/util.go delete mode 100644 vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/util_test.go diff --git a/vendor/github.com/alecthomas/template/LICENSE b/vendor/github.com/alecthomas/template/LICENSE deleted file mode 100644 index 744875676..000000000 --- a/vendor/github.com/alecthomas/template/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2012 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/alecthomas/template/example_test.go b/vendor/github.com/alecthomas/template/example_test.go index 461ec0503..ad6464425 100644 --- a/vendor/github.com/alecthomas/template/example_test.go +++ b/vendor/github.com/alecthomas/template/example_test.go @@ -7,7 +7,6 @@ package template_test import ( "log" "os" - "github.com/alecthomas/template" ) diff --git a/vendor/github.com/alecthomas/template/examplefiles_test.go b/vendor/github.com/alecthomas/template/examplefiles_test.go index 0c7181d2f..c67477406 100644 --- a/vendor/github.com/alecthomas/template/examplefiles_test.go +++ b/vendor/github.com/alecthomas/template/examplefiles_test.go @@ -10,7 +10,6 @@ import ( "log" "os" "path/filepath" - "github.com/alecthomas/template" ) diff --git a/vendor/github.com/alecthomas/template/examplefunc_test.go b/vendor/github.com/alecthomas/template/examplefunc_test.go index 8767cfdcc..98043ba55 100644 --- a/vendor/github.com/alecthomas/template/examplefunc_test.go +++ b/vendor/github.com/alecthomas/template/examplefunc_test.go @@ -8,7 +8,6 @@ import ( "log" "os" "strings" - "github.com/alecthomas/template" ) diff --git a/vendor/github.com/alecthomas/template/exec.go b/vendor/github.com/alecthomas/template/exec.go index c3078e5d0..cc155b0f3 100644 --- a/vendor/github.com/alecthomas/template/exec.go +++ b/vendor/github.com/alecthomas/template/exec.go @@ -12,7 +12,6 @@ import ( "runtime" "sort" "strings" - "github.com/alecthomas/template/parse" ) diff --git a/vendor/github.com/alecthomas/template/multi_test.go b/vendor/github.com/alecthomas/template/multi_test.go index 8d103623c..ba4d5deb7 100644 --- a/vendor/github.com/alecthomas/template/multi_test.go +++ b/vendor/github.com/alecthomas/template/multi_test.go @@ -11,7 +11,6 @@ import ( "fmt" "strings" "testing" - "github.com/alecthomas/template/parse" ) diff --git a/vendor/github.com/alecthomas/template/template.go b/vendor/github.com/alecthomas/template/template.go index 447ed2aba..8632e4170 100644 --- a/vendor/github.com/alecthomas/template/template.go +++ b/vendor/github.com/alecthomas/template/template.go @@ -7,7 +7,6 @@ package template import ( "fmt" "reflect" - "github.com/alecthomas/template/parse" ) diff --git a/vendor/github.com/alecthomas/units b/vendor/github.com/alecthomas/units index 2efee857e..6b4e7dc5e 160000 --- a/vendor/github.com/alecthomas/units +++ b/vendor/github.com/alecthomas/units @@ -1 +1 @@ -Subproject commit 2efee857e7cfd4f3d0138cc3cbb1b4966962b93a +Subproject commit 6b4e7dc5e3143b85ea77909c72caf89416fc2915 diff --git a/vendor/github.com/aws/aws-sdk-go/.gitignore b/vendor/github.com/aws/aws-sdk-go/.gitignore index fb11ceca0..465b860b8 100644 --- a/vendor/github.com/aws/aws-sdk-go/.gitignore +++ b/vendor/github.com/aws/aws-sdk-go/.gitignore @@ -1,11 +1,4 @@ -dist -/doc -/doc-staging +vendor +doc .yardoc Gemfile.lock -awstesting/integration/smoke/**/importmarker__.go -awstesting/integration/smoke/_test/ -/vendor/bin/ -/vendor/pkg/ -/vendor/src/ -/private/model/cli/gen-api/gen-api diff --git a/vendor/github.com/aws/aws-sdk-go/.godoc_config b/vendor/github.com/aws/aws-sdk-go/.godoc_config deleted file mode 100644 index 395878d6c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/.godoc_config +++ /dev/null @@ -1,14 +0,0 @@ -{ - "PkgHandler": { - "Pattern": "/sdk-for-go/api/", - "StripPrefix": "/sdk-for-go/api", - "Include": ["/src/github.com/aws/aws-sdk-go/aws", "/src/github.com/aws/aws-sdk-go/service"], - "Exclude": ["/src/cmd", "/src/github.com/aws/aws-sdk-go/awstesting", "/src/github.com/aws/aws-sdk-go/awsmigrate"], - "IgnoredSuffixes": ["iface"] - }, - "Github": { - "Tag": "master", - "Repo": "/aws/aws-sdk-go", - "UseGithub": true - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/.travis.yml b/vendor/github.com/aws/aws-sdk-go/.travis.yml index 0196798a5..87472b161 100644 --- a/vendor/github.com/aws/aws-sdk-go/.travis.yml +++ b/vendor/github.com/aws/aws-sdk-go/.travis.yml @@ -5,18 +5,10 @@ sudo: false go: - 1.4 - 1.5 - - 1.6 - tip - -# Use Go 1.5's vendoring experiment for 1.5 tests. 1.4 tests will use the tip of the dependencies repo. -env: - - GO15VENDOREXPERIMENT=1 -install: - - make get-deps - -script: - - make unit-with-race-cover +install: "go get -v -t ./... && make deps" +script: make unit matrix: allow_failures: diff --git a/vendor/github.com/aws/aws-sdk-go/Gemfile b/vendor/github.com/aws/aws-sdk-go/Gemfile index 2fb295a1a..4d6529bd2 100644 --- a/vendor/github.com/aws/aws-sdk-go/Gemfile +++ b/vendor/github.com/aws/aws-sdk-go/Gemfile @@ -1,6 +1,6 @@ source 'https://rubygems.org' -gem 'yard', git: 'git://github.com/lsegal/yard', ref: '5025564a491e1b7c6192632cba2802202ca08449' -gem 'yard-go', git: 'git://github.com/jasdel/yard-go', ref: 'e78e1ef7cdf5e0f3266845b26bb4fd64f1dd6f85' +gem 'yard', git: 'git://github.com/lsegal/yard' +gem 'yard-go', git: 'git://github.com/lsegal/yard-go' gem 'rdiscount' diff --git a/vendor/github.com/aws/aws-sdk-go/Makefile b/vendor/github.com/aws/aws-sdk-go/Makefile index a3b89ea5a..75a4c502f 100644 --- a/vendor/github.com/aws/aws-sdk-go/Makefile +++ b/vendor/github.com/aws/aws-sdk-go/Makefile @@ -1,152 +1,61 @@ -LINTIGNOREDOT='awstesting/integration.+should not use dot imports' -LINTIGNOREDOC='service/[^/]+/(api|service|waiters)\.go:.+(comment on exported|should have comment or be unexported)' -LINTIGNORECONST='service/[^/]+/(api|service|waiters)\.go:.+(type|struct field|const|func) ([^ ]+) should be ([^ ]+)' -LINTIGNORESTUTTER='service/[^/]+/(api|service)\.go:.+(and that stutters)' -LINTIGNOREINFLECT='service/[^/]+/(api|service)\.go:.+method .+ should be ' -LINTIGNOREINFLECTS3UPLOAD='service/s3/s3manager/upload\.go:.+struct field SSEKMSKeyId should be ' -LINTIGNOREDEPS='vendor/.+\.go' - -SDK_WITH_VENDOR_PKGS=$(shell go list ./... | grep -v "/vendor/src") -SDK_ONLY_PKGS=$(shell go list ./... | grep -v "/vendor/") -SDK_GO_1_4=$(shell go version | grep "go1.4") -SDK_GO_VERSION=$(shell go version | awk '''{print $$3}''' | tr -d '''\n''') - -all: get-deps generate unit +LINTIGNOREDOT='internal/features.+should not use dot imports' +LINTIGNOREDOC='service/[^/]+/(api|service)\.go:.+(comment on exported|should have comment or be unexported)' +LINTIGNORECONST='service/[^/]+/(api|service)\.go:.+(type|struct field|const|func) ([^ ]+) should be ([^ ]+)' help: @echo "Please use \`make ' where is one of" @echo " api_info to print a list of services and versions" - @echo " docs to build SDK documentation" @echo " build to go build the SDK" - @echo " unit to run unit tests" + @echo " deps to go get the SDK dependencies" + @echo " docs to build SDK documentation" + @echo " generate to go generate and make services" + @echo " generate-protocol-test to generate protocol tests" @echo " integration to run integration tests" - @echo " performance to run performance tests" - @echo " verify to verify tests" @echo " lint to lint the SDK" - @echo " vet to vet the SDK" - @echo " generate to go generate and make services" - @echo " gen-test to generate protocol tests" - @echo " gen-services to generate services" - @echo " get-deps to go get the SDK dependencies" - @echo " get-deps-tests to get the SDK's test dependencies" - @echo " get-deps-verify to get the SDK's verification dependencies" - -generate: gen-test gen-endpoints gen-services - -gen-test: gen-protocol-test - -gen-services: - go generate ./service - -gen-protocol-test: - go generate ./private/protocol/... - -gen-endpoints: - go generate ./private/endpoints - -build: - @echo "go build SDK and vendor packages" - @go build ${SDK_ONLY_PKGS} - -unit: get-deps-tests build verify - @echo "go test SDK and vendor packages" - @go test $(SDK_ONLY_PKGS) - -unit-with-race-cover: get-deps-tests build verify - @echo "go test SDK and vendor packages" - @go test -v -race -cpu=1,2,4 -covermode=atomic $(SDK_ONLY_PKGS) - -integration: get-deps-tests integ-custom smoke-tests performance - -integ-custom: - go test -tags=integration ./awstesting/integration/customizations/... - -smoke-tests: get-deps-tests - gucumber ./awstesting/integration/smoke - -performance: get-deps-tests - AWS_TESTING_LOG_RESULTS=${log-detailed} AWS_TESTING_REGION=$(region) AWS_TESTING_DB_TABLE=$(table) gucumber ./awstesting/performance - -sandbox-tests: sandbox-test-go14 sandbox-test-go15 sandbox-test-go15-novendorexp sandbox-test-go16 sandbox-test-go17 sandbox-test-gotip - -sandbox-test-go14: - docker build -f ./awstesting/sandbox/Dockerfile.test.go1.4 -t "aws-sdk-go-1.4" . - docker run -t aws-sdk-go-1.4 - -sandbox-test-go15: - docker build -f ./awstesting/sandbox/Dockerfile.test.go1.5 -t "aws-sdk-go-1.5" . - docker run -t aws-sdk-go-1.5 + @echo " services to generate services" + @echo " unit to run unit tests" -sandbox-test-go15-novendorexp: - docker build -f ./awstesting/sandbox/Dockerfile.test.go1.5-novendorexp -t "aws-sdk-go-1.5-novendorexp" . - docker run -t aws-sdk-go-1.5-novendorexp +default: generate -sandbox-test-go16: - docker build -f ./awstesting/sandbox/Dockerfile.test.go1.6 -t "aws-sdk-go-1.6" . - docker run -t aws-sdk-go-1.6 +generate-protocol-test: + go generate ./internal/protocol/... -sandbox-test-go17: - docker build -f ./awstesting/sandbox/Dockerfile.test.go1.7 -t "aws-sdk-go-1.7" . - docker run -t aws-sdk-go-1.6 +generate-test: generate-protocol-test -sandbox-test-gotip: - @echo "Run make update-aws-golang-tip, if this test fails because missing aws-golang:tip container" - docker build -f ./awstesting/sandbox/Dockerfile.test.gotip -t "aws-sdk-go-tip" . - docker run -t aws-sdk-go-tip +generate: + go generate ./internal/endpoints + @make services -update-aws-golang-tip: - docker build -f ./awstesting/sandbox/Dockerfile.golang-tip -t "aws-golang:tip" . +services: + go generate ./service -verify: get-deps-verify lint vet +integration: deps + go test ./internal/test/integration/... -tags=integration + gucumber ./internal/features/smoke -lint: - @echo "go lint SDK and vendor packages" - @lint=`if [ -z "${SDK_GO_1_4}" ]; then golint ./...; else echo "skipping golint"; fi`; \ - lint=`echo "$$lint" | grep -E -v -e ${LINTIGNOREDOT} -e ${LINTIGNOREDOC} -e ${LINTIGNORECONST} -e ${LINTIGNORESTUTTER} -e ${LINTIGNOREINFLECT} -e ${LINTIGNOREDEPS} -e ${LINTIGNOREINFLECTS3UPLOAD}`; \ +lint: deps + @echo "golint ./..." + @lint=`golint ./...`; \ + lint=`echo "$$lint" | grep -E -v -e ${LINTIGNOREDOT} -e ${LINTIGNOREDOC} -e ${LINTIGNORECONST}`; \ echo "$$lint"; \ - if [ "$$lint" != "" ] && [ "$$lint" != "skipping golint" ]; then exit 1; fi + if [ "$$lint" != "" ]; then exit 1; fi -SDK_BASE_FOLDERS=$(shell ls -d */ | grep -v vendor | grep -v awsmigrate) -ifneq (,$(findstring go1.5, ${SDK_GO_VERSION})) - GO_VET_CMD=go tool vet --all -shadow -else ifneq (,$(findstring go1.6, ${SDK_GO_VERSION})) - GO_VET_CMD=go tool vet --all -shadow -example=false -else ifneq (,$(findstring devel, ${SDK_GO_VERSION})) - GO_VET_CMD=go tool vet --all -shadow -tests=false -else - GO_VET_CMD=echo skipping go vet, ${SDK_GO_VERSION} -endif +unit: deps build lint + go test ./... -vet: - ${GO_VET_CMD} ${SDK_BASE_FOLDERS} - -get-deps: get-deps-tests get-deps-verify - @echo "go get SDK dependencies" - @go get -v $(SDK_ONLY_PKGS) - -get-deps-tests: - @echo "go get SDK testing dependencies" - go get github.com/lsegal/gucumber/cmd/gucumber - go get github.com/stretchr/testify - go get github.com/smartystreets/goconvey - -get-deps-verify: - @echo "go get SDK verification utilities" - @if [ -z "${SDK_GO_1_4}" ]; then go get github.com/golang/lint/golint; else echo "skipped getting golint"; fi - -bench: - @echo "go bench SDK packages" - @go test -run NONE -bench . -benchmem -tags 'bench' $(SDK_ONLY_PKGS) - -bench-protocol: - @echo "go bench SDK protocol marshallers" - @go test -run NONE -bench . -benchmem -tags 'bench' ./private/protocol/... +build: + go build ./... docs: - @echo "generate SDK docs" rm -rf doc && bundle install && bundle exec yard - @# This env variable, DOCS, is for internal use - @if [ -n "$(AWS_DOC_GEN_TOOL)" ]; then echo "For internal use. Subject to change."; $(AWS_DOC_GEN_TOOL) `pwd`; fi + +deps: + @go get ./... + @go get github.com/lsegal/gucumber/cmd/gucumber + @go get github.com/golang/lint/golint api_info: - @go run private/model/cli/api-info/api-info.go + @go run internal/model/cli/api-info/api-info.go + +perf: + @go test -bench . -benchmem -tags 'perf' ./internal/test/perf/... \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/README.md b/vendor/github.com/aws/aws-sdk-go/README.md index fb0b8e491..dfe3e5865 100644 --- a/vendor/github.com/aws/aws-sdk-go/README.md +++ b/vendor/github.com/aws/aws-sdk-go/README.md @@ -1,35 +1,41 @@ # AWS SDK for Go - [![API Reference](http://img.shields.io/badge/api-reference-blue.svg)](http://docs.aws.amazon.com/sdk-for-go/api) [![Join the chat at https://gitter.im/aws/aws-sdk-go](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aws/aws-sdk-go?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://img.shields.io/travis/aws/aws-sdk-go.svg)](https://travis-ci.org/aws/aws-sdk-go) [![Apache V2 License](http://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/aws/aws-sdk-go/blob/master/LICENSE.txt) - aws-sdk-go is the official AWS SDK for the Go programming language. Checkout our [release notes](https://github.com/aws/aws-sdk-go/releases) for information about the latest bug fixes, updates, and features added to the SDK. -## Installing +**Release [v0.9.0rc1](http://aws.amazon.com/releasenotes/2948141298714307) introduced a breaking change to the SDK. See the release notes for details of the change and instructions to migrate to the latest SDK version.** + +## Caution -If you are using Go 1.5 with the `GO15VENDOREXPERIMENT=1` vendoring flag, or 1.6 and higher you can use the following command to retrieve the SDK. The SDK's non-testing dependencies will be included and are vendored in the `vendor` folder. +The SDK is currently in the process of being developed, and not everything +may be working fully yet. Please be patient and report any bugs or problems +you experience. The APIs may change radically without much warning, so please +vendor your dependencies with Godep or similar. - go get -u github.com/aws/aws-sdk-go +Please do not confuse this for a stable, feature-complete library. -Otherwise if your Go environment does not have vendoring support enabled, or you do not want to include the vendored SDK's dependencies you can use the following command to retrieve the SDK and its non-testing dependencies using `go get`. +Note that while most AWS protocols are currently supported, not all services +available in this package are implemented fully, as some require extra +customizations to work with the SDK. If you've encountered such a scenario, +please open a [GitHub issue](https://github.com/aws/aws-sdk-go/issues) +so we can track work for the service. - go get -u github.com/aws/aws-sdk-go/aws/... - go get -u github.com/aws/aws-sdk-go/service/... +## Installing -If you're looking to retrieve just the SDK without any dependencies use the following command. +Install your specific service package with the following `go get` command. +For example, EC2 support might be installed with: - go get -d github.com/aws/aws-sdk-go/ - -These two processes will still include the `vendor` folder and it should be deleted if its not going to be used by your environment. + $ go get github.com/aws/aws-sdk-go/service/ec2 - rm -rf $GOPATH/src/github.com/aws/aws-sdk-go/vendor +You can also install the entire SDK by installing the root package, including all of the SDK's dependencies: + $ go get -u github.com/aws/aws-sdk-go/... ## Configuring Credentials @@ -53,13 +59,10 @@ AWS_ACCESS_KEY_ID=AKID1234567890 AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY ``` -### AWS CLI config file (`~/.aws/config`) -The AWS SDK for Go does not support the AWS CLI's config file. The SDK will not use any contents from this file. The SDK only supports the shared credentials file (`~/.aws/credentials`). #384 tracks this feature request discussion. - -## Using the Go SDK +## Using To use a service in the SDK, create a service variable by calling the `New()` -function. Once you have a service client, you can call API operations which each +function. Once you have a service, you can call API operations which each return response data and a possible error. To list a set of instance IDs from EC2, you could run: @@ -71,7 +74,6 @@ import ( "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" ) @@ -79,7 +81,7 @@ func main() { // Create an EC2 service object in the "us-west-2" region // Note that you can also configure your region globally by // exporting the AWS_REGION environment variable - svc := ec2.New(session.New(), &aws.Config{Region: aws.String("us-west-2")}) + svc := ec2.New(&aws.Config{Region: aws.String("us-west-2")}) // Call the DescribeInstances Operation resp, err := svc.DescribeInstances(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/autoscaling/2011-01-01/api-2.json similarity index 74% rename from vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/autoscaling/2011-01-01/api-2.json index 378eca7c9..46a2e68bb 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/autoscaling/2011-01-01/api-2.json @@ -3,10 +3,10 @@ "metadata":{ "apiVersion":"2011-01-01", "endpointPrefix":"autoscaling", - "protocol":"query", "serviceFullName":"Auto Scaling", "signatureVersion":"v4", - "xmlNamespace":"http://autoscaling.amazonaws.com/doc/2011-01-01/" + "xmlNamespace":"http://autoscaling.amazonaws.com/doc/2011-01-01/", + "protocol":"query" }, "operations":{ "AttachInstances":{ @@ -17,7 +17,15 @@ }, "input":{"shape":"AttachInstancesQuery"}, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "AttachLoadBalancers":{ @@ -32,7 +40,15 @@ "resultWrapper":"AttachLoadBalancersResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "CompleteLifecycleAction":{ @@ -47,7 +63,15 @@ "resultWrapper":"CompleteLifecycleActionResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "CreateAutoScalingGroup":{ @@ -58,9 +82,33 @@ }, "input":{"shape":"CreateAutoScalingGroupType"}, "errors":[ - {"shape":"AlreadyExistsFault"}, - {"shape":"LimitExceededFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"AlreadyExistsFault", + "error":{ + "code":"AlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "CreateLaunchConfiguration":{ @@ -71,9 +119,33 @@ }, "input":{"shape":"CreateLaunchConfigurationType"}, "errors":[ - {"shape":"AlreadyExistsFault"}, - {"shape":"LimitExceededFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"AlreadyExistsFault", + "error":{ + "code":"AlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "CreateOrUpdateTags":{ @@ -84,9 +156,33 @@ }, "input":{"shape":"CreateOrUpdateTagsType"}, "errors":[ - {"shape":"LimitExceededFault"}, - {"shape":"AlreadyExistsFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AlreadyExistsFault", + "error":{ + "code":"AlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DeleteAutoScalingGroup":{ @@ -97,9 +193,33 @@ }, "input":{"shape":"DeleteAutoScalingGroupType"}, "errors":[ - {"shape":"ScalingActivityInProgressFault"}, - {"shape":"ResourceInUseFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"ScalingActivityInProgressFault", + "error":{ + "code":"ScalingActivityInProgress", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceInUseFault", + "error":{ + "code":"ResourceInUse", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DeleteLaunchConfiguration":{ @@ -110,8 +230,24 @@ }, "input":{"shape":"LaunchConfigurationNameType"}, "errors":[ - {"shape":"ResourceInUseFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceInUseFault", + "error":{ + "code":"ResourceInUse", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DeleteLifecycleHook":{ @@ -126,7 +262,15 @@ "resultWrapper":"DeleteLifecycleHookResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DeleteNotificationConfiguration":{ @@ -137,7 +281,15 @@ }, "input":{"shape":"DeleteNotificationConfigurationType"}, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DeletePolicy":{ @@ -148,7 +300,15 @@ }, "input":{"shape":"DeletePolicyType"}, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DeleteScheduledAction":{ @@ -159,7 +319,15 @@ }, "input":{"shape":"DeleteScheduledActionType"}, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DeleteTags":{ @@ -170,7 +338,15 @@ }, "input":{"shape":"DeleteTagsType"}, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeAccountLimits":{ @@ -184,7 +360,15 @@ "resultWrapper":"DescribeAccountLimitsResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeAdjustmentTypes":{ @@ -198,7 +382,15 @@ "resultWrapper":"DescribeAdjustmentTypesResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeAutoScalingGroups":{ @@ -213,8 +405,24 @@ "resultWrapper":"DescribeAutoScalingGroupsResult" }, "errors":[ - {"shape":"InvalidNextToken"}, - {"shape":"ResourceContentionFault"} + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeAutoScalingInstances":{ @@ -229,8 +437,24 @@ "resultWrapper":"DescribeAutoScalingInstancesResult" }, "errors":[ - {"shape":"InvalidNextToken"}, - {"shape":"ResourceContentionFault"} + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeAutoScalingNotificationTypes":{ @@ -244,7 +468,15 @@ "resultWrapper":"DescribeAutoScalingNotificationTypesResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeLaunchConfigurations":{ @@ -259,8 +491,24 @@ "resultWrapper":"DescribeLaunchConfigurationsResult" }, "errors":[ - {"shape":"InvalidNextToken"}, - {"shape":"ResourceContentionFault"} + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeLifecycleHookTypes":{ @@ -274,7 +522,15 @@ "resultWrapper":"DescribeLifecycleHookTypesResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeLifecycleHooks":{ @@ -289,7 +545,15 @@ "resultWrapper":"DescribeLifecycleHooksResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeLoadBalancers":{ @@ -304,7 +568,15 @@ "resultWrapper":"DescribeLoadBalancersResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeMetricCollectionTypes":{ @@ -318,7 +590,15 @@ "resultWrapper":"DescribeMetricCollectionTypesResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeNotificationConfigurations":{ @@ -333,8 +613,24 @@ "resultWrapper":"DescribeNotificationConfigurationsResult" }, "errors":[ - {"shape":"InvalidNextToken"}, - {"shape":"ResourceContentionFault"} + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribePolicies":{ @@ -349,8 +645,24 @@ "resultWrapper":"DescribePoliciesResult" }, "errors":[ - {"shape":"InvalidNextToken"}, - {"shape":"ResourceContentionFault"} + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeScalingActivities":{ @@ -365,8 +677,24 @@ "resultWrapper":"DescribeScalingActivitiesResult" }, "errors":[ - {"shape":"InvalidNextToken"}, - {"shape":"ResourceContentionFault"} + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeScalingProcessTypes":{ @@ -380,7 +708,15 @@ "resultWrapper":"DescribeScalingProcessTypesResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeScheduledActions":{ @@ -395,8 +731,24 @@ "resultWrapper":"DescribeScheduledActionsResult" }, "errors":[ - {"shape":"InvalidNextToken"}, - {"shape":"ResourceContentionFault"} + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeTags":{ @@ -411,8 +763,24 @@ "resultWrapper":"DescribeTagsResult" }, "errors":[ - {"shape":"InvalidNextToken"}, - {"shape":"ResourceContentionFault"} + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DescribeTerminationPolicyTypes":{ @@ -426,7 +794,15 @@ "resultWrapper":"DescribeTerminationPolicyTypesResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DetachInstances":{ @@ -441,7 +817,15 @@ "resultWrapper":"DetachInstancesResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DetachLoadBalancers":{ @@ -456,7 +840,15 @@ "resultWrapper":"DetachLoadBalancersResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "DisableMetricsCollection":{ @@ -467,7 +859,15 @@ }, "input":{"shape":"DisableMetricsCollectionQuery"}, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "EnableMetricsCollection":{ @@ -478,7 +878,15 @@ }, "input":{"shape":"EnableMetricsCollectionQuery"}, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "EnterStandby":{ @@ -493,7 +901,15 @@ "resultWrapper":"EnterStandbyResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "ExecutePolicy":{ @@ -504,8 +920,24 @@ }, "input":{"shape":"ExecutePolicyType"}, "errors":[ - {"shape":"ScalingActivityInProgressFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"ScalingActivityInProgressFault", + "error":{ + "code":"ScalingActivityInProgress", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "ExitStandby":{ @@ -520,7 +952,15 @@ "resultWrapper":"ExitStandbyResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "PutLifecycleHook":{ @@ -535,8 +975,24 @@ "resultWrapper":"PutLifecycleHookResult" }, "errors":[ - {"shape":"LimitExceededFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "PutNotificationConfiguration":{ @@ -547,8 +1003,24 @@ }, "input":{"shape":"PutNotificationConfigurationType"}, "errors":[ - {"shape":"LimitExceededFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "PutScalingPolicy":{ @@ -563,8 +1035,24 @@ "resultWrapper":"PutScalingPolicyResult" }, "errors":[ - {"shape":"LimitExceededFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "PutScheduledUpdateGroupAction":{ @@ -575,9 +1063,33 @@ }, "input":{"shape":"PutScheduledUpdateGroupActionType"}, "errors":[ - {"shape":"AlreadyExistsFault"}, - {"shape":"LimitExceededFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"AlreadyExistsFault", + "error":{ + "code":"AlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "RecordLifecycleActionHeartbeat":{ @@ -592,7 +1104,15 @@ "resultWrapper":"RecordLifecycleActionHeartbeatResult" }, "errors":[ - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "ResumeProcesses":{ @@ -603,8 +1123,24 @@ }, "input":{"shape":"ScalingProcessQuery"}, "errors":[ - {"shape":"ResourceInUseFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceInUseFault", + "error":{ + "code":"ResourceInUse", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "SetDesiredCapacity":{ @@ -615,8 +1151,24 @@ }, "input":{"shape":"SetDesiredCapacityType"}, "errors":[ - {"shape":"ScalingActivityInProgressFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"ScalingActivityInProgressFault", + "error":{ + "code":"ScalingActivityInProgress", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "SetInstanceHealth":{ @@ -627,23 +1179,15 @@ }, "input":{"shape":"SetInstanceHealthQuery"}, "errors":[ - {"shape":"ResourceContentionFault"} - ] - }, - "SetInstanceProtection":{ - "name":"SetInstanceProtection", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetInstanceProtectionQuery"}, - "output":{ - "shape":"SetInstanceProtectionAnswer", - "resultWrapper":"SetInstanceProtectionResult" - }, - "errors":[ - {"shape":"LimitExceededFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "SuspendProcesses":{ @@ -654,8 +1198,24 @@ }, "input":{"shape":"ScalingProcessQuery"}, "errors":[ - {"shape":"ResourceInUseFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"ResourceInUseFault", + "error":{ + "code":"ResourceInUse", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "TerminateInstanceInAutoScalingGroup":{ @@ -670,8 +1230,24 @@ "resultWrapper":"TerminateInstanceInAutoScalingGroupResult" }, "errors":[ - {"shape":"ScalingActivityInProgressFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"ScalingActivityInProgressFault", + "error":{ + "code":"ScalingActivityInProgress", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] }, "UpdateAutoScalingGroup":{ @@ -682,8 +1258,24 @@ }, "input":{"shape":"UpdateAutoScalingGroupType"}, "errors":[ - {"shape":"ScalingActivityInProgressFault"}, - {"shape":"ResourceContentionFault"} + { + "shape":"ScalingActivityInProgressFault", + "error":{ + "code":"ScalingActivityInProgress", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceContentionFault", + "error":{ + "code":"ResourceContention", + "httpStatusCode":500, + "senderFault":true + }, + "exception":true + } ] } }, @@ -767,8 +1359,8 @@ }, "AsciiStringMaxLen255":{ "type":"string", - "max":255, "min":1, + "max":255, "pattern":"[A-Za-z0-9\\-_\\/]+" }, "AssociatePublicIpAddress":{"type":"boolean"}, @@ -796,6 +1388,7 @@ "type":"structure", "required":[ "AutoScalingGroupName", + "LaunchConfigurationName", "MinSize", "MaxSize", "DesiredCapacity", @@ -824,8 +1417,7 @@ "EnabledMetrics":{"shape":"EnabledMetrics"}, "Status":{"shape":"XmlStringMaxLen255"}, "Tags":{"shape":"TagDescriptionList"}, - "TerminationPolicies":{"shape":"TerminationPolicies"}, - "NewInstancesProtectedFromScaleIn":{"shape":"InstanceProtected"} + "TerminationPolicies":{"shape":"TerminationPolicies"} } }, "AutoScalingGroupDesiredCapacity":{"type":"integer"}, @@ -863,17 +1455,15 @@ "AvailabilityZone", "LifecycleState", "HealthStatus", - "LaunchConfigurationName", - "ProtectedFromScaleIn" + "LaunchConfigurationName" ], "members":{ - "InstanceId":{"shape":"XmlStringMaxLen19"}, + "InstanceId":{"shape":"XmlStringMaxLen16"}, "AutoScalingGroupName":{"shape":"XmlStringMaxLen255"}, "AvailabilityZone":{"shape":"XmlStringMaxLen255"}, "LifecycleState":{"shape":"XmlStringMaxLen32"}, "HealthStatus":{"shape":"XmlStringMaxLen32"}, - "LaunchConfigurationName":{"shape":"XmlStringMaxLen255"}, - "ProtectedFromScaleIn":{"shape":"InstanceProtected"} + "LaunchConfigurationName":{"shape":"XmlStringMaxLen255"} } }, "AutoScalingInstances":{ @@ -897,21 +1487,20 @@ "min":1 }, "BlockDeviceEbsDeleteOnTermination":{"type":"boolean"}, - "BlockDeviceEbsEncrypted":{"type":"boolean"}, "BlockDeviceEbsIops":{ "type":"integer", - "max":20000, - "min":100 + "min":100, + "max":20000 }, "BlockDeviceEbsVolumeSize":{ "type":"integer", - "max":16384, - "min":1 + "min":1, + "max":16384 }, "BlockDeviceEbsVolumeType":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "BlockDeviceMapping":{ "type":"structure", @@ -941,14 +1530,14 @@ "required":[ "LifecycleHookName", "AutoScalingGroupName", + "LifecycleActionToken", "LifecycleActionResult" ], "members":{ "LifecycleHookName":{"shape":"AsciiStringMaxLen255"}, "AutoScalingGroupName":{"shape":"ResourceName"}, "LifecycleActionToken":{"shape":"LifecycleActionToken"}, - "LifecycleActionResult":{"shape":"LifecycleActionResult"}, - "InstanceId":{"shape":"XmlStringMaxLen19"} + "LifecycleActionResult":{"shape":"LifecycleActionResult"} } }, "Cooldown":{"type":"integer"}, @@ -962,7 +1551,7 @@ "members":{ "AutoScalingGroupName":{"shape":"XmlStringMaxLen255"}, "LaunchConfigurationName":{"shape":"ResourceName"}, - "InstanceId":{"shape":"XmlStringMaxLen19"}, + "InstanceId":{"shape":"XmlStringMaxLen16"}, "MinSize":{"shape":"AutoScalingGroupMinSize"}, "MaxSize":{"shape":"AutoScalingGroupMaxSize"}, "DesiredCapacity":{"shape":"AutoScalingGroupDesiredCapacity"}, @@ -974,7 +1563,6 @@ "PlacementGroup":{"shape":"XmlStringMaxLen255"}, "VPCZoneIdentifier":{"shape":"XmlStringMaxLen255"}, "TerminationPolicies":{"shape":"TerminationPolicies"}, - "NewInstancesProtectedFromScaleIn":{"shape":"InstanceProtected"}, "Tags":{"shape":"Tags"} } }, @@ -989,7 +1577,7 @@ "ClassicLinkVPCId":{"shape":"XmlStringMaxLen255"}, "ClassicLinkVPCSecurityGroups":{"shape":"ClassicLinkVPCSecurityGroups"}, "UserData":{"shape":"XmlStringUserData"}, - "InstanceId":{"shape":"XmlStringMaxLen19"}, + "InstanceId":{"shape":"XmlStringMaxLen16"}, "InstanceType":{"shape":"XmlStringMaxLen255"}, "KernelId":{"shape":"XmlStringMaxLen255"}, "RamdiskId":{"shape":"XmlStringMaxLen255"}, @@ -1071,9 +1659,7 @@ "type":"structure", "members":{ "MaxNumberOfAutoScalingGroups":{"shape":"MaxNumberOfAutoScalingGroups"}, - "MaxNumberOfLaunchConfigurations":{"shape":"MaxNumberOfLaunchConfigurations"}, - "NumberOfAutoScalingGroups":{"shape":"NumberOfAutoScalingGroups"}, - "NumberOfLaunchConfigurations":{"shape":"NumberOfLaunchConfigurations"} + "MaxNumberOfLaunchConfigurations":{"shape":"MaxNumberOfLaunchConfigurations"} } }, "DescribeAdjustmentTypesAnswer":{ @@ -1244,8 +1830,7 @@ "VolumeSize":{"shape":"BlockDeviceEbsVolumeSize"}, "VolumeType":{"shape":"BlockDeviceEbsVolumeType"}, "DeleteOnTermination":{"shape":"BlockDeviceEbsDeleteOnTermination"}, - "Iops":{"shape":"BlockDeviceEbsIops"}, - "Encrypted":{"shape":"BlockDeviceEbsEncrypted"} + "Iops":{"shape":"BlockDeviceEbsIops"} } }, "EbsOptimized":{"type":"boolean"}, @@ -1339,21 +1924,19 @@ "AvailabilityZone", "LifecycleState", "HealthStatus", - "LaunchConfigurationName", - "ProtectedFromScaleIn" + "LaunchConfigurationName" ], "members":{ - "InstanceId":{"shape":"XmlStringMaxLen19"}, + "InstanceId":{"shape":"XmlStringMaxLen16"}, "AvailabilityZone":{"shape":"XmlStringMaxLen255"}, "LifecycleState":{"shape":"LifecycleState"}, "HealthStatus":{"shape":"XmlStringMaxLen32"}, - "LaunchConfigurationName":{"shape":"XmlStringMaxLen255"}, - "ProtectedFromScaleIn":{"shape":"InstanceProtected"} + "LaunchConfigurationName":{"shape":"XmlStringMaxLen255"} } }, "InstanceIds":{ "type":"list", - "member":{"shape":"XmlStringMaxLen19"} + "member":{"shape":"XmlStringMaxLen16"} }, "InstanceMonitoring":{ "type":"structure", @@ -1361,7 +1944,6 @@ "Enabled":{"shape":"MonitoringEnabled"} } }, - "InstanceProtected":{"type":"boolean"}, "Instances":{ "type":"list", "member":{"shape":"Instance"} @@ -1442,8 +2024,8 @@ "LifecycleActionResult":{"type":"string"}, "LifecycleActionToken":{ "type":"string", - "max":36, - "min":36 + "min":36, + "max":36 }, "LifecycleHook":{ "type":"structure", @@ -1560,14 +2142,6 @@ "type":"list", "member":{"shape":"NotificationConfiguration"} }, - "NotificationTargetResourceName":{ - "type":"string", - "max":1600, - "min":0, - "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" - }, - "NumberOfAutoScalingGroups":{"type":"integer"}, - "NumberOfLaunchConfigurations":{"type":"integer"}, "PoliciesType":{ "type":"structure", "members":{ @@ -1613,7 +2187,6 @@ }, "Progress":{"type":"integer"}, "PropagateAtLaunch":{"type":"boolean"}, - "ProtectedFromScaleIn":{"type":"boolean"}, "PutLifecycleHookAnswer":{ "type":"structure", "members":{ @@ -1630,7 +2203,7 @@ "AutoScalingGroupName":{"shape":"ResourceName"}, "LifecycleTransition":{"shape":"LifecycleTransition"}, "RoleARN":{"shape":"ResourceName"}, - "NotificationTargetARN":{"shape":"NotificationTargetResourceName"}, + "NotificationTargetARN":{"shape":"ResourceName"}, "NotificationMetadata":{"shape":"XmlStringMaxLen1023"}, "HeartbeatTimeout":{"shape":"HeartbeatTimeout"}, "DefaultResult":{"shape":"LifecycleActionResult"} @@ -1697,13 +2270,13 @@ "type":"structure", "required":[ "LifecycleHookName", - "AutoScalingGroupName" + "AutoScalingGroupName", + "LifecycleActionToken" ], "members":{ "LifecycleHookName":{"shape":"AsciiStringMaxLen255"}, "AutoScalingGroupName":{"shape":"ResourceName"}, - "LifecycleActionToken":{"shape":"LifecycleActionToken"}, - "InstanceId":{"shape":"XmlStringMaxLen19"} + "LifecycleActionToken":{"shape":"LifecycleActionToken"} } }, "ResourceContentionFault":{ @@ -1732,8 +2305,8 @@ }, "ResourceName":{ "type":"string", - "max":1600, "min":1, + "max":1600, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, "ScalingActivityInProgressFault":{ @@ -1751,7 +2324,6 @@ "ScalingActivityStatusCode":{ "type":"string", "enum":[ - "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", @@ -1848,35 +2420,17 @@ "HealthStatus" ], "members":{ - "InstanceId":{"shape":"XmlStringMaxLen19"}, + "InstanceId":{"shape":"XmlStringMaxLen16"}, "HealthStatus":{"shape":"XmlStringMaxLen32"}, "ShouldRespectGracePeriod":{"shape":"ShouldRespectGracePeriod"} } }, - "SetInstanceProtectionAnswer":{ - "type":"structure", - "members":{ - } - }, - "SetInstanceProtectionQuery":{ - "type":"structure", - "required":[ - "InstanceIds", - "AutoScalingGroupName", - "ProtectedFromScaleIn" - ], - "members":{ - "InstanceIds":{"shape":"InstanceIds"}, - "AutoScalingGroupName":{"shape":"ResourceName"}, - "ProtectedFromScaleIn":{"shape":"ProtectedFromScaleIn"} - } - }, "ShouldDecrementDesiredCapacity":{"type":"boolean"}, "ShouldRespectGracePeriod":{"type":"boolean"}, "SpotPrice":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "StepAdjustment":{ "type":"structure", @@ -1929,14 +2483,14 @@ }, "TagKey":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, "TagValue":{ "type":"string", - "max":256, "min":0, + "max":256, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, "Tags":{ @@ -1957,7 +2511,7 @@ "ShouldDecrementDesiredCapacity" ], "members":{ - "InstanceId":{"shape":"XmlStringMaxLen19"}, + "InstanceId":{"shape":"XmlStringMaxLen16"}, "ShouldDecrementDesiredCapacity":{"shape":"ShouldDecrementDesiredCapacity"} } }, @@ -1981,8 +2535,7 @@ "HealthCheckGracePeriod":{"shape":"HealthCheckGracePeriod"}, "PlacementGroup":{"shape":"XmlStringMaxLen255"}, "VPCZoneIdentifier":{"shape":"XmlStringMaxLen255"}, - "TerminationPolicies":{"shape":"TerminationPolicies"}, - "NewInstancesProtectedFromScaleIn":{"shape":"InstanceProtected"} + "TerminationPolicies":{"shape":"TerminationPolicies"} } }, "Values":{ @@ -1995,38 +2548,38 @@ }, "XmlStringMaxLen1023":{ "type":"string", - "max":1023, "min":1, + "max":1023, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, - "XmlStringMaxLen1600":{ + "XmlStringMaxLen16":{ "type":"string", - "max":1600, "min":1, + "max":16, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, - "XmlStringMaxLen19":{ + "XmlStringMaxLen1600":{ "type":"string", - "max":19, "min":1, + "max":1600, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, "XmlStringMaxLen255":{ "type":"string", - "max":255, "min":1, + "max":255, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, "XmlStringMaxLen32":{ "type":"string", - "max":32, "min":1, + "max":32, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, "XmlStringMaxLen64":{ "type":"string", - "max":64, "min":1, + "max":64, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, "XmlStringUserData":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/autoscaling/2011-01-01/docs-2.json similarity index 76% rename from vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/autoscaling/2011-01-01/docs-2.json index 62f4de6bb..dae26d775 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/autoscaling/2011-01-01/docs-2.json @@ -1,18 +1,17 @@ { "version": "2.0", - "service": "Auto Scaling

Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Use this service in conjunction with the Amazon CloudWatch and Elastic Load Balancing services.

", "operations": { - "AttachInstances": "

Attaches one or more EC2 instances to the specified Auto Scaling group.

When you attach instances, Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.

For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling Developer Guide.

", + "AttachInstances": "

Attaches one or more EC2 instances to the specified Auto Scaling group.

For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling Developer Guide.

", "AttachLoadBalancers": "

Attaches one or more load balancers to the specified Auto Scaling group.

To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.

For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling Developer Guide.

", - "CompleteLifecycleAction": "

Completes the lifecycle action for the specified token or instance with the specified result.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.

", + "CompleteLifecycleAction": "

Completes the lifecycle action for the associated token initiated under the given lifecycle hook with the specified result.

This operation is a part of the basic sequence for adding a lifecycle hook to an Auto Scaling group:

  1. Create a notification target. A target can be either an Amazon SQS queue or an Amazon SNS topic.
  2. Create an IAM role. This role allows Auto Scaling to publish lifecycle notifications to the designated SQS queue or SNS topic.
  3. Create the lifecycle hook. You can create a hook that acts when instances launch or when instances terminate.
  4. If necessary, record the lifecycle action heartbeat to keep the instance in a pending state.
  5. Complete the lifecycle action.

For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide.

", "CreateAutoScalingGroup": "

Creates an Auto Scaling group with the specified name and attributes.

If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.

For more information, see Auto Scaling Groups in the Auto Scaling Developer Guide.

", "CreateLaunchConfiguration": "

Creates a launch configuration.

If you exceed your maximum limit of launch configurations, which by default is 100 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.

For more information, see Launch Configurations in the Auto Scaling Developer Guide.

", - "CreateOrUpdateTags": "

Creates or updates tags for the specified Auto Scaling group.

When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.

For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.

", - "DeleteAutoScalingGroup": "

Deletes the specified Auto Scaling group.

If the group has instances or scaling activities in progress, you must specify the option to force the deletion in order for it to succeed.

If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm that no longer has an associated action.

To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity so that Auto Scaling does not launch replacement instances.

To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup and set the minimum size and desired capacity of the Auto Scaling group to zero.

", + "CreateOrUpdateTags": "

Creates or updates tags for the specified Auto Scaling group.

A tag is defined by its resource ID, resource type, key, value, and propagate flag. The value and the propagate flag are optional parameters. The only supported resource type is auto-scaling-group, and the resource ID must be the name of the group. The PropagateAtLaunch flag determines whether the tag is added to instances launched in the group. Valid values are true or false.

When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.

For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.

", + "DeleteAutoScalingGroup": "

Deletes the specified Auto Scaling group.

The group must have no instances and no scaling activities in progress.

To remove all instances before calling DeleteAutoScalingGroup, call UpdateAutoScalingGroup to set the minimum and maximum size of the Auto Scaling group to zero.

", "DeleteLaunchConfiguration": "

Deletes the specified launch configuration.

The launch configuration must not be attached to an Auto Scaling group. When this call completes, the launch configuration is no longer available for use.

", "DeleteLifecycleHook": "

Deletes the specified lifecycle hook.

If there are any outstanding lifecycle actions, they are completed first (ABANDON for launching instances, CONTINUE for terminating instances).

", "DeleteNotificationConfiguration": "

Deletes the specified notification.

", - "DeletePolicy": "

Deletes the specified Auto Scaling policy.

Deleting a policy deletes the underlying alarm action, but does not delete the alarm, even if it no longer has an associated action.

", + "DeletePolicy": "

Deletes the specified Auto Scaling policy.

", "DeleteScheduledAction": "

Deletes the specified scheduled action.

", "DeleteTags": "

Deletes the specified tags.

", "DescribeAccountLimits": "

Describes the current Auto Scaling resource limits for your AWS account.

For information about requesting an increase in these limits, see AWS Service Limits in the Amazon Web Services General Reference.

", @@ -32,26 +31,26 @@ "DescribeScheduledActions": "

Describes the actions scheduled for your Auto Scaling group that haven't run. To describe the actions that have already run, use DescribeScalingActivities.

", "DescribeTags": "

Describes the specified tags.

You can use filters to limit the results. For example, you can query for the tags for a specific Auto Scaling group. You can specify multiple values for a filter. A tag must match at least one of the specified values for it to be included in the results.

You can also specify multiple filters. The result includes information for a particular tag only if it matches all the filters. If there's no match, no special message is returned.

", "DescribeTerminationPolicyTypes": "

Describes the termination policies supported by Auto Scaling.

", - "DetachInstances": "

Removes one or more instances from the specified Auto Scaling group.

After the instances are detached, you can manage them independently from the rest of the Auto Scaling group.

If you do not specify the option to decrement the desired capacity, Auto Scaling launches instances to replace the ones that are detached.

For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling Developer Guide.

", + "DetachInstances": "

Removes one or more instances from the specified Auto Scaling group. After the instances are detached, you can manage them independently from the rest of the Auto Scaling group.

For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling Developer Guide.

", "DetachLoadBalancers": "

Removes one or more load balancers from the specified Auto Scaling group.

When you detach a load balancer, it enters the Removing state while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using DescribeLoadBalancers. Note that the instances remain running.

", "DisableMetricsCollection": "

Disables monitoring of the specified metrics for the specified Auto Scaling group.

", "EnableMetricsCollection": "

Enables monitoring of the specified metrics for the specified Auto Scaling group.

You can only enable metrics collection if InstanceMonitoring in the launch configuration for the group is set to True.

", - "EnterStandby": "

Moves the specified instances into Standby mode.

For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.

", + "EnterStandby": "

Moves the specified instances into Standby mode.

For more information, see Auto Scaling InService State in the Auto Scaling Developer Guide.

", "ExecutePolicy": "

Executes the specified policy.

", - "ExitStandby": "

Moves the specified instances out of Standby mode.

For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.

", - "PutLifecycleHook": "

Creates or updates a lifecycle hook for the specified Auto Scaling Group.

A lifecycle hook tells Auto Scaling that you want to perform an action on an instance that is not actively in service; for example, either when the instance launches or before the instance terminates.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.

If you exceed your maximum limit of lifecycle hooks, which by default is 50 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.

", + "ExitStandby": "

Moves the specified instances out of Standby mode.

For more information, see Auto Scaling InService State in the Auto Scaling Developer Guide.

", + "PutLifecycleHook": "

Creates or updates a lifecycle hook for the specified Auto Scaling Group.

A lifecycle hook tells Auto Scaling that you want to perform an action on an instance that is not actively in service; for example, either when the instance launches or before the instance terminates.

This operation is a part of the basic sequence for adding a lifecycle hook to an Auto Scaling group:

  1. Create a notification target. A target can be either an Amazon SQS queue or an Amazon SNS topic.
  2. Create an IAM role. This role allows Auto Scaling to publish lifecycle notifications to the designated SQS queue or SNS topic.
  3. Create the lifecycle hook. You can create a hook that acts when instances launch or when instances terminate.
  4. If necessary, record the lifecycle action heartbeat to keep the instance in a pending state.
  5. Complete the lifecycle action.

For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide.

If you exceed your maximum limit of lifecycle hooks, which by default is 50 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.

", "PutNotificationConfiguration": "

Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to this topic can have messages for events delivered to an endpoint such as a web server or email address.

For more information see Getting Notifications When Your Auto Scaling Group Changes in the Auto Scaling Developer Guide.

This configuration overwrites an existing configuration.

", "PutScalingPolicy": "

Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.

If you exceed your maximum limit of step adjustments, which by default is 20 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.

", "PutScheduledUpdateGroupAction": "

Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.

For more information, see Scheduled Scaling in the Auto Scaling Developer Guide.

", - "RecordLifecycleActionHeartbeat": "

Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using PutLifecycleHook.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.

", - "ResumeProcesses": "

Resumes the specified suspended Auto Scaling processes, or all suspended process, for the specified Auto Scaling group.

For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling Developer Guide.

", + "RecordLifecycleActionHeartbeat": "

Records a heartbeat for the lifecycle action associated with a specific token. This extends the timeout by the length of time defined by the HeartbeatTimeout parameter of PutLifecycleHook.

This operation is a part of the basic sequence for adding a lifecycle hook to an Auto Scaling group:

  1. Create a notification target. A target can be either an Amazon SQS queue or an Amazon SNS topic.
  2. Create an IAM role. This role allows Auto Scaling to publish lifecycle notifications to the designated SQS queue or SNS topic.
  3. Create the lifecycle hook. You can create a hook that acts when instances launch or when instances terminate.
  4. If necessary, record the lifecycle action heartbeat to keep the instance in a pending state.
  5. Complete the lifecycle action.

For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide.

", + "ResumeProcesses": "

Resumes the specified suspended Auto Scaling processes for the specified Auto Scaling group. To resume specific processes, use the ScalingProcesses parameter. To resume all processes, omit the ScalingProcesses parameter. For more information, see Suspend and Resume Auto Scaling Processes in the Auto Scaling Developer Guide.

", "SetDesiredCapacity": "

Sets the size of the specified Auto Scaling group.

For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling Developer Guide.

", "SetInstanceHealth": "

Sets the health status of the specified instance.

For more information, see Health Checks in the Auto Scaling Developer Guide.

", - "SetInstanceProtection": "

Updates the instance protection settings of the specified instances.

For more information, see Instance Protection in the Auto Scaling Developer Guide.

", - "SuspendProcesses": "

Suspends the specified Auto Scaling processes, or all processes, for the specified Auto Scaling group.

Note that if you suspend either the Launch or Terminate process types, it can prevent other process types from functioning properly.

To resume processes that have been suspended, use ResumeProcesses.

For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling Developer Guide.

", - "TerminateInstanceInAutoScalingGroup": "

Terminates the specified instance and optionally adjusts the desired group size.

This call simply makes a termination request. The instance is not terminated immediately.

", + "SuspendProcesses": "

Suspends the specified Auto Scaling processes for the specified Auto Scaling group. To suspend specific processes, use the ScalingProcesses parameter. To suspend all processes, omit the ScalingProcesses parameter.

Note that if you suspend either the Launch or Terminate process types, it can prevent other process types from functioning properly.

To resume processes that have been suspended, use ResumeProcesses.

For more information, see Suspend and Resume Auto Scaling Processes in the Auto Scaling Developer Guide.

", + "TerminateInstanceInAutoScalingGroup": "

Terminates the specified instance and optionally adjusts the desired group size.

This call simply makes a termination request. The instances is not terminated immediately.

", "UpdateAutoScalingGroup": "

Updates the configuration for the specified Auto Scaling group.

To update an Auto Scaling group with a launch configuration with InstanceMonitoring set to False, you must first disable the collection of group metrics. Otherwise, you will get an error. If you have previously enabled the collection of group metrics, you can disable it using DisableMetricsCollection.

The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Scaling activities that are currently in progress aren't affected.

Note the following:

  • If you specify a new value for MinSize without specifying a value for DesiredCapacity, and the new MinSize is larger than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value of MinSize.

  • If you specify a new value for MaxSize without specifying a value for DesiredCapacity, and the new MaxSize is smaller than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value of MaxSize.

  • All other optional parameters are left unchanged if not specified.

" }, + "service": "Auto Scaling

Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Use this service in conjunction with the Amazon CloudWatch and Elastic Load Balancing services.

", "shapes": { "Activities": { "base": null, @@ -77,7 +76,7 @@ "ActivityIds": { "base": null, "refs": { - "DescribeScalingActivitiesType$ActivityIds": "

The activity IDs of the desired scaling activities. If this list is omitted, all activities are described. If you specify an Auto Scaling group, the results are limited to that group. The list of requested activities cannot contain more than 50 items. If unknown activities are requested, they are ignored with no error.

" + "DescribeScalingActivitiesType$ActivityIds": "

The activity IDs of the desired scaling activities. If this list is omitted, all activities are described. If the AutoScalingGroupName parameter is provided, the results are limited to that group. The list of requested activities cannot contain more than 50 items. If unknown activities are requested, they are ignored with no error.

" } }, "ActivityType": { @@ -128,8 +127,8 @@ "AssociatePublicIpAddress": { "base": null, "refs": { - "CreateLaunchConfigurationType$AssociatePublicIpAddress": "

Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign a public IP address to each instance. For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.

If you specify this parameter, be sure to specify at least one subnet when you create your group.

Default: If the instance is launched into a default subnet, the default is true. If the instance is launched into a nondefault subnet, the default is false. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.

", - "LaunchConfiguration$AssociatePublicIpAddress": "

[EC2-VPC] Indicates whether to assign a public IP address to each instance.

" + "CreateLaunchConfigurationType$AssociatePublicIpAddress": "

Used for groups that launch instances into a virtual private cloud (VPC). Specifies whether to assign a public IP address to each instance. For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.

If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.

Default: If the instance is launched into a default subnet, the default is true. If the instance is launched into a nondefault subnet, the default is false. For more information, see Supported Platforms in the Amazon Elastic Compute Cloud User Guide.

", + "LaunchConfiguration$AssociatePublicIpAddress": "

Specifies whether the instances are associated with a public IP address (true) or not (false).

" } }, "AttachInstancesQuery": { @@ -236,38 +235,32 @@ "base": null, "refs": { "AutoScalingGroup$AvailabilityZones": "

One or more Availability Zones for the group.

", - "CreateAutoScalingGroupType$AvailabilityZones": "

One or more Availability Zones for the group. This parameter is optional if you specify one or more subnets.

", + "CreateAutoScalingGroupType$AvailabilityZones": "

One or more Availability Zones for the group. This parameter is optional if you specify subnets using the VPCZoneIdentifier parameter.

", "UpdateAutoScalingGroupType$AvailabilityZones": "

One or more Availability Zones for the group.

" } }, "BlockDeviceEbsDeleteOnTermination": { "base": null, "refs": { - "Ebs$DeleteOnTermination": "

Indicates whether the volume is deleted on instance termination.

Default: true

" - } - }, - "BlockDeviceEbsEncrypted": { - "base": null, - "refs": { - "Ebs$Encrypted": "

Indicates whether the volume should be encrypted. Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or an unencrypted volume from an encrypted snapshot. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

" + "Ebs$DeleteOnTermination": "

Indicates whether to delete the volume on instance termination.

Default: true

" } }, "BlockDeviceEbsIops": { "base": null, "refs": { - "Ebs$Iops": "

The number of I/O operations per second (IOPS) to provision for the volume.

Constraint: Required when the volume type is io1.

" + "Ebs$Iops": "

For Provisioned IOPS (SSD) volumes only. The number of I/O operations per second (IOPS) to provision for the volume.

Valid values: Range is 100 to 4000.

Default: None

" } }, "BlockDeviceEbsVolumeSize": { "base": null, "refs": { - "Ebs$VolumeSize": "

The volume size, in GiB. For standard volumes, specify a value from 1 to 1,024. For io1 volumes, specify a value from 4 to 16,384. For gp2 volumes, specify a value from 1 to 16,384. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.

Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.

" + "Ebs$VolumeSize": "

The volume size, in gigabytes.

Valid values: If the volume type is io1, the minimum size of the volume is 10 GiB. If you specify SnapshotId and VolumeSize, VolumeSize must be equal to or larger than the size of the snapshot.

Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the size of the snapshot.

Required: Required when the volume type is io1.

" } }, "BlockDeviceEbsVolumeType": { "base": null, "refs": { - "Ebs$VolumeType": "

The volume type. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

Valid values: standard | io1 | gp2

Default: standard

" + "Ebs$VolumeType": "

The volume type.

Valid values: standard | io1 | gp2

Default: standard

" } }, "BlockDeviceMapping": { @@ -286,8 +279,8 @@ "ClassicLinkVPCSecurityGroups": { "base": null, "refs": { - "CreateLaunchConfigurationType$ClassicLinkVPCSecurityGroups": "

The IDs of one or more security groups for the specified ClassicLink-enabled VPC. This parameter is required if you specify a ClassicLink-enabled VPC, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

", - "LaunchConfiguration$ClassicLinkVPCSecurityGroups": "

The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

" + "CreateLaunchConfigurationType$ClassicLinkVPCSecurityGroups": "

The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if ClassicLinkVPCId is specified, and is not supported otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

", + "LaunchConfiguration$ClassicLinkVPCSecurityGroups": "

The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. This parameter is required if ClassicLinkVPCId is specified, and cannot be used otherwise. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

" } }, "CompleteLifecycleActionAnswer": { @@ -303,11 +296,11 @@ "Cooldown": { "base": null, "refs": { - "AutoScalingGroup$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.

", - "CreateAutoScalingGroupType$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.

For more information, see Auto Scaling Cooldowns in the Auto Scaling Developer Guide.

", - "PutScalingPolicyType$Cooldown": "

The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.

This parameter is not supported unless the policy type is SimpleScaling.

For more information, see Auto Scaling Cooldowns in the Auto Scaling Developer Guide.

", + "AutoScalingGroup$DefaultCooldown": "

The number of seconds after a scaling activity completes before any further scaling activities can start.

", + "CreateAutoScalingGroupType$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.

If this parameter is not specified, the default value is 300. For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.

", + "PutScalingPolicyType$Cooldown": "

The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.

This parameter is not supported unless the policy type is SimpleScaling.

For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.

", "ScalingPolicy$Cooldown": "

The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

", - "UpdateAutoScalingGroupType$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. The default is 300.

For more information, see Auto Scaling Cooldowns in the Auto Scaling Developer Guide.

" + "UpdateAutoScalingGroupType$DefaultCooldown": "

The amount of time, in seconds, after a scaling activity completes before another scaling activity can start. For more information, see Understanding Auto Scaling Cooldowns.

" } }, "CreateAutoScalingGroupType": { @@ -346,7 +339,7 @@ } }, "DeletePolicyType": { - "base": "

", + "base": "

", "refs": { } }, @@ -553,28 +546,28 @@ "GlobalTimeout": { "base": null, "refs": { - "LifecycleHook$GlobalTimeout": "

The maximum time, in seconds, that an instance can remain in a Pending:Wait or Terminating:Wait state. The default is 172800 seconds (48 hours).

" + "LifecycleHook$GlobalTimeout": "

The maximum length of time an instance can remain in a Pending:Wait or Terminating:Wait state. Currently, the maximum is set to 48 hours.

" } }, "HealthCheckGracePeriod": { "base": null, "refs": { - "AutoScalingGroup$HealthCheckGracePeriod": "

The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service.

", - "CreateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. During this time, any health check failures for the instance are ignored. The default is 300.

This parameter is required if you are adding an ELB health check.

For more information, see Health Checks in the Auto Scaling Developer Guide.

", - "UpdateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service. The default is 300.

For more information, see Health Checks in the Auto Scaling Developer Guide.

" + "AutoScalingGroup$HealthCheckGracePeriod": "

The amount of time that Auto Scaling waits before checking an instance's health status. The grace period begins when an instance comes into service.

", + "CreateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, after an EC2 instance comes into service that Auto Scaling starts checking its health. During this time, any health check failures for the instance are ignored.

This parameter is required if you are adding an ELB health check. Frequently, new instances need to warm up, briefly, before they can pass a health check. To provide ample warm-up time, set the health check grace period of the group to match the expected startup period of your application.

For more information, see Add an Elastic Load Balancing Health Check to Your Auto Scaling Group in the Auto Scaling Developer Guide.

", + "UpdateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Auto Scaling waits before checking the health status of an instance. The grace period begins when the instance passes the system status and instance status checks from Amazon EC2. For more information, see .

" } }, "HeartbeatTimeout": { "base": null, "refs": { - "LifecycleHook$HeartbeatTimeout": "

The maximum time, in seconds, that can elapse before the lifecycle hook times out. The default is 3600 seconds (1 hour). When the lifecycle hook times out, Auto Scaling performs the default action. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.

", - "PutLifecycleHookType$HeartbeatTimeout": "

The amount of time, in seconds, that can elapse before the lifecycle hook times out. When the lifecycle hook times out, Auto Scaling performs the default action. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat. The default is 3600 seconds (1 hour).

" + "LifecycleHook$HeartbeatTimeout": "

The amount of time that can elapse before the lifecycle hook times out. When the lifecycle hook times out, Auto Scaling performs the action defined in the DefaultResult parameter. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.

", + "PutLifecycleHookType$HeartbeatTimeout": "

Defines the amount of time, in seconds, that can elapse before the lifecycle hook times out. When the lifecycle hook times out, Auto Scaling performs the action defined in the DefaultResult parameter. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat. The default value for this parameter is 3600 seconds (1 hour).

" } }, "HonorCooldown": { "base": null, "refs": { - "ExecutePolicyType$HonorCooldown": "

If this parameter is true, Auto Scaling waits for the cooldown period to complete before executing the policy. Otherwise, Auto Scaling executes the policy without waiting for the cooldown period to complete.

This parameter is not supported if the policy type is StepScaling.

For more information, see Auto Scaling Cooldowns in the Auto Scaling Developer Guide.

", + "ExecutePolicyType$HonorCooldown": "

If this parameter is true, Auto Scaling waits for the cooldown period to complete before executing the policy. Otherwise, Auto Scaling executes the policy without waiting for the cooldown period to complete.

This parameter is not supported if the policy type is StepScaling.

For more information, see Understanding Auto Scaling Cooldowns in the Auto Scaling Developer Guide.

", "SetDesiredCapacityType$HonorCooldown": "

By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Specify True to make Auto Scaling to wait for the cool-down period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity.

" } }, @@ -587,31 +580,20 @@ "InstanceIds": { "base": null, "refs": { - "AttachInstancesQuery$InstanceIds": "

One or more instance IDs.

", - "DescribeAutoScalingInstancesType$InstanceIds": "

The instances to describe; up to 50 instance IDs. If you omit this parameter, all Auto Scaling instances are described. If you specify an ID that does not exist, it is ignored with no error.

", + "AttachInstancesQuery$InstanceIds": "

One or more EC2 instance IDs.

", + "DescribeAutoScalingInstancesType$InstanceIds": "

One or more Auto Scaling instances to describe, up to 50 instances. If you omit this parameter, all Auto Scaling instances are described. If you specify an ID that does not exist, it is ignored with no error.

", "DetachInstancesQuery$InstanceIds": "

One or more instance IDs.

", "EnterStandbyQuery$InstanceIds": "

One or more instances to move into Standby mode. You must specify at least one instance ID.

", - "ExitStandbyQuery$InstanceIds": "

One or more instance IDs. You must specify at least one instance ID.

", - "SetInstanceProtectionQuery$InstanceIds": "

One or more instance IDs.

" + "ExitStandbyQuery$InstanceIds": "

One or more instance IDs. You must specify at least one instance ID.

" } }, "InstanceMonitoring": { "base": "

Describes whether instance monitoring is enabled.

", "refs": { - "CreateLaunchConfigurationType$InstanceMonitoring": "

Enables detailed monitoring if it is disabled. Detailed monitoring is enabled by default.

When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, by specifying False, CloudWatch generates metrics every 5 minutes. For more information, see Monitoring Your Auto Scaling Instances and Groups in the Auto Scaling Developer Guide.

", + "CreateLaunchConfigurationType$InstanceMonitoring": "

Enables detailed monitoring if it is disabled. Detailed monitoring is enabled by default.

When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, by specifying False, CloudWatch generates metrics every 5 minutes. For more information, see Monitor Your Auto Scaling Instances in the Auto Scaling Developer Guide.

", "LaunchConfiguration$InstanceMonitoring": "

Controls whether instances in this group are launched with detailed monitoring.

" } }, - "InstanceProtected": { - "base": null, - "refs": { - "AutoScalingGroup$NewInstancesProtectedFromScaleIn": "

Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.

", - "AutoScalingInstanceDetails$ProtectedFromScaleIn": "

Indicates whether the instance is protected from termination by Auto Scaling when scaling in.

", - "CreateAutoScalingGroupType$NewInstancesProtectedFromScaleIn": "

Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.

", - "Instance$ProtectedFromScaleIn": "

Indicates whether the instance is protected from termination by Auto Scaling when scaling in.

", - "UpdateAutoScalingGroupType$NewInstancesProtectedFromScaleIn": "

Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.

" - } - }, "Instances": { "base": null, "refs": { @@ -661,7 +643,7 @@ "refs": { "CompleteLifecycleActionType$LifecycleActionResult": "

The action for the group to take. This parameter can be either CONTINUE or ABANDON.

", "LifecycleHook$DefaultResult": "

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON. The default value is CONTINUE.

", - "PutLifecycleHookType$DefaultResult": "

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. This parameter can be either CONTINUE or ABANDON. The default value is ABANDON.

" + "PutLifecycleHookType$DefaultResult": "

Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The value for this parameter can be either CONTINUE or ABANDON. The default value for this parameter is ABANDON.

" } }, "LifecycleActionToken": { @@ -672,7 +654,7 @@ } }, "LifecycleHook": { - "base": "

Describes a lifecycle hook, which tells Auto Scaling that you want to perform an action when an instance launches or terminates. When you have a lifecycle hook in place, the Auto Scaling group will either:

  • Pause the instance after it launches, but before it is put into service
  • Pause the instance as it terminates, but before it is fully terminated

For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.

", + "base": "

Describes a lifecycle hook, which tells Auto Scaling that you want to perform an action when an instance launches or terminates. When you have a lifecycle hook in place, the Auto Scaling group will either:

  • Pause the instance after it launches, but before it is put into service
  • Pause the instance as it terminates, but before it is fully terminated

For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide.

", "refs": { "LifecycleHooks$member": null } @@ -712,7 +694,7 @@ "refs": { "AttachLoadBalancersType$LoadBalancerNames": "

One or more load balancer names.

", "AutoScalingGroup$LoadBalancerNames": "

One or more load balancers associated with the group.

", - "CreateAutoScalingGroupType$LoadBalancerNames": "

One or more load balancers.

For more information, see Using a Load Balancer With an Auto Scaling Group in the Auto Scaling Developer Guide.

", + "CreateAutoScalingGroupType$LoadBalancerNames": "

One or more load balancers.

For more information, see Load Balance Your Auto Scaling Group in the Auto Scaling Developer Guide.

", "DetachLoadBalancersType$LoadBalancerNames": "

One or more load balancer names.

" } }, @@ -790,8 +772,8 @@ "Metrics": { "base": null, "refs": { - "DisableMetricsCollectionQuery$Metrics": "

One or more of the following metrics. If you omit this parameter, all metrics are disabled.

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

", - "EnableMetricsCollectionQuery$Metrics": "

One or more of the following metrics. If you omit this parameter, all metrics are enabled.

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

Note that the GroupStandbyInstances metric is not enabled by default. You must explicitly request this metric.

" + "DisableMetricsCollectionQuery$Metrics": "

One or more metrics. If you omit this parameter, all metrics are disabled.

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

", + "EnableMetricsCollectionQuery$Metrics": "

One or more metrics. If you omit this parameter, all metrics are enabled.

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

Note that the GroupStandbyInstances metric is not enabled by default. You must explicitly request this metric.

" } }, "MinAdjustmentMagnitude": { @@ -832,24 +814,6 @@ "DescribeNotificationConfigurationsAnswer$NotificationConfigurations": "

The notification configurations.

" } }, - "NotificationTargetResourceName": { - "base": null, - "refs": { - "PutLifecycleHookType$NotificationTargetARN": "

The ARN of the notification target that Auto Scaling will use to notify you when an instance is in the transition state for the lifecycle hook. This target can be either an SQS queue or an SNS topic. If you specify an empty string, this overrides the current ARN.

The notification messages sent to the target include the following information:

  • AutoScalingGroupName. The name of the Auto Scaling group.
  • AccountId. The AWS account ID.
  • LifecycleTransition. The lifecycle hook type.
  • LifecycleActionToken. The lifecycle action token.
  • EC2InstanceId. The EC2 instance ID.
  • LifecycleHookName. The name of the lifecycle hook.
  • NotificationMetadata. User-defined information.

This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key/value pair format when sending notifications to an Amazon SNS topic.

When you specify a notification target, Auto Scaling sends it a test message. Test messages contains the following additional key/value pair: \"Event\": \"autoscaling:TEST_NOTIFICATION\".

" - } - }, - "NumberOfAutoScalingGroups": { - "base": null, - "refs": { - "DescribeAccountLimitsAnswer$NumberOfAutoScalingGroups": "

The current number of groups for your AWS account.

" - } - }, - "NumberOfLaunchConfigurations": { - "base": null, - "refs": { - "DescribeAccountLimitsAnswer$NumberOfLaunchConfigurations": "

The current number of launch configurations for your AWS account.

" - } - }, "PoliciesType": { "base": null, "refs": { @@ -916,12 +880,6 @@ "TagDescription$PropagateAtLaunch": "

Determines whether the tag is added to new instances as they are launched in the group.

" } }, - "ProtectedFromScaleIn": { - "base": null, - "refs": { - "SetInstanceProtectionQuery$ProtectedFromScaleIn": "

Indicates whether the instance is protected from termination by Auto Scaling when scaling in.

" - } - }, "PutLifecycleHookAnswer": { "base": null, "refs": { @@ -976,7 +934,7 @@ "AutoScalingGroup$AutoScalingGroupARN": "

The Amazon Resource Name (ARN) of the group.

", "AutoScalingGroupNames$member": null, "CompleteLifecycleActionType$AutoScalingGroupName": "

The name of the group for the lifecycle hook.

", - "CreateAutoScalingGroupType$LaunchConfigurationName": "

The name of the launch configuration. Alternatively, specify an EC2 instance instead of a launch configuration.

", + "CreateAutoScalingGroupType$LaunchConfigurationName": "

The name of the launch configuration. Alternatively, use the InstanceId parameter to specify an EC2 instance instead of a launch configuration.

", "DeleteAutoScalingGroupType$AutoScalingGroupName": "

The name of the group to delete.

", "DeleteLifecycleHookType$AutoScalingGroupName": "

The name of the Auto Scaling group for the lifecycle hook.

", "DeleteNotificationConfigurationType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", @@ -1010,6 +968,7 @@ "PolicyNames$member": null, "PutLifecycleHookType$AutoScalingGroupName": "

The name of the Auto Scaling group to which you want to assign the lifecycle hook.

", "PutLifecycleHookType$RoleARN": "

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.

This parameter is required for new lifecycle hooks, but optional when updating existing hooks.

", + "PutLifecycleHookType$NotificationTargetARN": "

The ARN of the notification target that Auto Scaling will use to notify you when an instance is in the transition state for the lifecycle hook. This ARN target can be either an SQS queue or an SNS topic.

This parameter is required for new lifecycle hooks, but optional when updating existing hooks.

The notification message sent to the target will include:

  • LifecycleActionToken. The Lifecycle action token.
  • AccountId. The user account ID.
  • AutoScalingGroupName. The name of the Auto Scaling group.
  • LifecycleHookName. The lifecycle hook name.
  • EC2InstanceId. The EC2 instance ID.
  • LifecycleTransition. The lifecycle transition.
  • NotificationMetadata. The notification metadata.

This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key/value pair format when sending notifications to an Amazon SNS topic.

When you call this operation, a test message is sent to the notification target. This test message contains an additional key/value pair: Event:autoscaling:TEST_NOTIFICATION.

", "PutNotificationConfigurationType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "PutNotificationConfigurationType$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.

", "PutScalingPolicyType$AutoScalingGroupName": "

The name or ARN of the group.

", @@ -1020,7 +979,6 @@ "ScheduledActionNames$member": null, "ScheduledUpdateGroupAction$ScheduledActionARN": "

The Amazon Resource Name (ARN) of the scheduled action.

", "SetDesiredCapacityType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", - "SetInstanceProtectionQuery$AutoScalingGroupName": "

The name of the group.

", "UpdateAutoScalingGroupType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "UpdateAutoScalingGroupType$LaunchConfigurationName": "

The name of the launch configuration.

" } @@ -1056,7 +1014,7 @@ "ScheduledActionNames": { "base": null, "refs": { - "DescribeScheduledActionsType$ScheduledActionNames": "

Describes one or more scheduled actions. If you omit this list, the call describes all scheduled actions. If you specify an unknown scheduled action it is ignored with no error.

You can describe up to a maximum of 50 instances with a single call. If there are more items to return, the call returns a token. To get the next set of items, repeat the call with the returned token.

" + "DescribeScheduledActionsType$ScheduledActionNames": "

Describes one or more scheduled actions. If you omit this list, the call describes all scheduled actions. If you specify an unknown scheduled action it is ignored with no error.

You can describe up to a maximum of 50 instances with a single call. If there are more items to return, the call returns a token. To get the next set of items, repeat the call with the returned token in the NextToken parameter.

" } }, "ScheduledActionsType": { @@ -1093,34 +1051,24 @@ "refs": { } }, - "SetInstanceProtectionAnswer": { - "base": null, - "refs": { - } - }, - "SetInstanceProtectionQuery": { - "base": null, - "refs": { - } - }, "ShouldDecrementDesiredCapacity": { "base": null, "refs": { "DetachInstancesQuery$ShouldDecrementDesiredCapacity": "

If True, the Auto Scaling group decrements the desired capacity value by the number of instances detached.

", "EnterStandbyQuery$ShouldDecrementDesiredCapacity": "

Specifies whether the instances moved to Standby mode count as part of the Auto Scaling group's desired capacity. If set, the desired capacity for the Auto Scaling group decrements by the number of instances moved to Standby mode.

", - "TerminateInstanceInAutoScalingGroupType$ShouldDecrementDesiredCapacity": "

If true, terminating the instance also decrements the size of the Auto Scaling group.

" + "TerminateInstanceInAutoScalingGroupType$ShouldDecrementDesiredCapacity": "

If true, terminating this instance also decrements the size of the Auto Scaling group.

" } }, "ShouldRespectGracePeriod": { "base": null, "refs": { - "SetInstanceHealthQuery$ShouldRespectGracePeriod": "

If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call will respect the grace period. Set this to False, if you do not want the call to respect the grace period associated with the group.

For more information, see the description of the health check grace period for CreateAutoScalingGroup.

" + "SetInstanceHealthQuery$ShouldRespectGracePeriod": "

If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call will respect the grace period. Set this to False, if you do not want the call to respect the grace period associated with the group.

For more information, see the HealthCheckGracePeriod parameter description for CreateAutoScalingGroup.

" } }, "SpotPrice": { "base": null, "refs": { - "CreateLaunchConfigurationType$SpotPrice": "

The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information, see Launching Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.

", + "CreateLaunchConfigurationType$SpotPrice": "

The maximum hourly price to be paid for any Spot Instance launched to fulfill the request. Spot Instances are launched when the price you specify exceeds the current Spot market price. For more information, see Launch Spot Instances in Your Auto Scaling Group in the Auto Scaling Developer Guide.

", "LaunchConfiguration$SpotPrice": "

The price to bid when launching Spot Instances.

" } }, @@ -1165,7 +1113,7 @@ "base": null, "refs": { "AutoScalingGroup$Tags": "

The tags for the group.

", - "TagsType$Tags": "

One or more tags.

" + "TagsType$Tags": "

The tags.

" } }, "TagKey": { @@ -1185,9 +1133,9 @@ "Tags": { "base": null, "refs": { - "CreateAutoScalingGroupType$Tags": "

One or more tags.

For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.

", + "CreateAutoScalingGroupType$Tags": "

The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. Valid values: key=value, value=value, propagate=true or false. Value and propagate are optional parameters.

For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.

", "CreateOrUpdateTagsType$Tags": "

One or more tags.

", - "DeleteTagsType$Tags": "

One or more tags.

" + "DeleteTagsType$Tags": "

Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. Valid values are: Resource type = auto-scaling-group, Resource ID = AutoScalingGroupName, key=value, value=value, propagate=true or false.

" } }, "TagsType": { @@ -1204,9 +1152,9 @@ "base": null, "refs": { "AutoScalingGroup$TerminationPolicies": "

The termination policies for the group.

", - "CreateAutoScalingGroupType$TerminationPolicies": "

One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.

For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.

", + "CreateAutoScalingGroupType$TerminationPolicies": "

One or more termination policies used to select the instance to terminate. These policies are executed in the order that they are listed.

For more information, see Choosing a Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.

", "DescribeTerminationPolicyTypesAnswer$TerminationPolicyTypes": "

The termination policies supported by Auto Scaling (OldestInstance, OldestLaunchConfiguration, NewestInstance, ClosestToNextInstanceHour, and Default).

", - "UpdateAutoScalingGroupType$TerminationPolicies": "

A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information, see Controlling Which Instances Auto Scaling Terminates During Scale In in the Auto Scaling Developer Guide.

" + "UpdateAutoScalingGroupType$TerminationPolicies": "

A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.

For more information, see Choosing a Termination Policy for Your Auto Scaling Group in the Auto Scaling Developer Guide.

" } }, "TimestampType": { @@ -1218,10 +1166,10 @@ "DescribeScheduledActionsType$StartTime": "

The earliest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.

", "DescribeScheduledActionsType$EndTime": "

The latest scheduled start time to return. If scheduled action names are provided, this parameter is ignored.

", "LaunchConfiguration$CreatedTime": "

The creation date and time for the launch configuration.

", - "PutScheduledUpdateGroupActionType$Time": "

This parameter is deprecated.

", + "PutScheduledUpdateGroupActionType$Time": "

This parameter is deprecated; use StartTime instead.

The time for this action to start. If both Time and StartTime are specified, their values must be identical.

", "PutScheduledUpdateGroupActionType$StartTime": "

The time for this action to start, in \"YYYY-MM-DDThh:mm:ssZ\" format in UTC/GMT only (for example, 2014-06-01T00:00:00Z).

If you try to schedule your action in the past, Auto Scaling returns an error message.

When StartTime and EndTime are specified with Recurrence, they form the boundaries of when the recurring action starts and stops.

", "PutScheduledUpdateGroupActionType$EndTime": "

The time for this action to end.

", - "ScheduledUpdateGroupAction$Time": "

This parameter is deprecated.

", + "ScheduledUpdateGroupAction$Time": "

This parameter is deprecated; use StartTime instead.

", "ScheduledUpdateGroupAction$StartTime": "

The date and time that the action is scheduled to begin. This date and time can be up to one month in the future.

When StartTime and EndTime are specified with Recurrence, they form the boundaries of when the recurring action will start and stop.

", "ScheduledUpdateGroupAction$EndTime": "

The date and time that the action is scheduled to end. This date and time can be up to one month in the future.

" } @@ -1279,26 +1227,24 @@ "PutLifecycleHookType$NotificationMetadata": "

Contains additional information that you want to include any time Auto Scaling sends a message to the notification target.

" } }, - "XmlStringMaxLen1600": { + "XmlStringMaxLen16": { "base": null, "refs": { - "CreateLaunchConfigurationType$IamInstanceProfile": "

The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.

EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.

", - "LaunchConfiguration$IamInstanceProfile": "

The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.

", - "TerminationPolicies$member": null + "AutoScalingInstanceDetails$InstanceId": "

The ID of the instance.

", + "CreateAutoScalingGroupType$InstanceId": "

The ID of the EC2 instance used to create a launch configuration for the group. Alternatively, use the LaunchConfigurationName parameter to specify a launch configuration instead of an EC2 instance.

When you specify an ID of an instance, Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, with the exception of the block device mapping.

For more information, see Create an Auto Scaling Group from an EC2 Instance in the Auto Scaling Developer Guide.

", + "CreateLaunchConfigurationType$InstanceId": "

The ID of the EC2 instance to use to create the launch configuration.

The new launch configuration derives attributes from the instance, with the exception of the block device mapping.

To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.

For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.

", + "Instance$InstanceId": "

The ID of the instance.

", + "InstanceIds$member": null, + "SetInstanceHealthQuery$InstanceId": "

The ID of the EC2 instance.

", + "TerminateInstanceInAutoScalingGroupType$InstanceId": "

The ID of the EC2 instance.

" } }, - "XmlStringMaxLen19": { + "XmlStringMaxLen1600": { "base": null, "refs": { - "AutoScalingInstanceDetails$InstanceId": "

The ID of the instance.

", - "CompleteLifecycleActionType$InstanceId": "

The ID of the instance.

", - "CreateAutoScalingGroupType$InstanceId": "

The ID of the instance used to create a launch configuration for the group. Alternatively, specify a launch configuration instead of an EC2 instance.

When you specify an ID of an instance, Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, with the exception of the block device mapping.

For more information, see Create an Auto Scaling Group Using an EC2 Instance in the Auto Scaling Developer Guide.

", - "CreateLaunchConfigurationType$InstanceId": "

The ID of the instance to use to create the launch configuration.

The new launch configuration derives attributes from the instance, with the exception of the block device mapping.

To create a launch configuration with a block device mapping or override any other instance attributes, specify them as part of the same request.

For more information, see Create a Launch Configuration Using an EC2 Instance in the Auto Scaling Developer Guide.

", - "Instance$InstanceId": "

The ID of the instance.

", - "InstanceIds$member": null, - "RecordLifecycleActionHeartbeatType$InstanceId": "

The ID of the instance.

", - "SetInstanceHealthQuery$InstanceId": "

The ID of the instance.

", - "TerminateInstanceInAutoScalingGroupType$InstanceId": "

The ID of the instance.

" + "CreateLaunchConfigurationType$IamInstanceProfile": "

The name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.

EC2 instances launched with an IAM role will automatically have AWS security credentials available. You can use IAM roles with Auto Scaling to automatically enable applications running on your EC2 instances to securely access other AWS resources. For more information, see Launch Auto Scaling Instances with an IAM Role in the Auto Scaling Developer Guide.

", + "LaunchConfiguration$IamInstanceProfile": "

The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.

", + "TerminationPolicies$member": null } }, "XmlStringMaxLen255": { @@ -1311,7 +1257,7 @@ "AlreadyExistsFault$message": null, "AutoScalingGroup$AutoScalingGroupName": "

The name of the group.

", "AutoScalingGroup$LaunchConfigurationName": "

The name of the associated launch configuration.

", - "AutoScalingGroup$PlacementGroup": "

The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.

", + "AutoScalingGroup$PlacementGroup": "

The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups.

", "AutoScalingGroup$VPCZoneIdentifier": "

One or more subnet IDs, if applicable, separated by commas.

If you specify VPCZoneIdentifier and AvailabilityZones, ensure that the Availability Zones of the subnets match the values for AvailabilityZones.

", "AutoScalingGroup$Status": "

The current state of the group when DeleteAutoScalingGroup is in progress.

", "AutoScalingInstanceDetails$AutoScalingGroupName": "

The name of the Auto Scaling group associated with the instance.

", @@ -1319,22 +1265,22 @@ "AutoScalingInstanceDetails$LaunchConfigurationName": "

The launch configuration associated with the instance.

", "AutoScalingNotificationTypes$member": null, "AvailabilityZones$member": null, - "BlockDeviceMapping$VirtualName": "

The name of the virtual device (for example, ephemeral0).

", + "BlockDeviceMapping$VirtualName": "

The name of the virtual device, ephemeral0 to ephemeral3.

", "BlockDeviceMapping$DeviceName": "

The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).

", "ClassicLinkVPCSecurityGroups$member": null, "CreateAutoScalingGroupType$AutoScalingGroupName": "

The name of the group. This name must be unique within the scope of your AWS account.

", "CreateAutoScalingGroupType$PlacementGroup": "

The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.

", - "CreateAutoScalingGroupType$VPCZoneIdentifier": "

A comma-separated list of subnet identifiers for your virtual private cloud (VPC).

If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.

For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.

", + "CreateAutoScalingGroupType$VPCZoneIdentifier": "

A comma-separated list of subnet identifiers for your virtual private cloud (VPC).

If you specify subnets and Availability Zones with this call, ensure that the subnets' Availability Zones match the Availability Zones specified.

For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.

", "CreateLaunchConfigurationType$LaunchConfigurationName": "

The name of the launch configuration. This name must be unique within the scope of your AWS account.

", "CreateLaunchConfigurationType$ImageId": "

The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.

", "CreateLaunchConfigurationType$KeyName": "

The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.

", "CreateLaunchConfigurationType$ClassicLinkVPCId": "

The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter is supported only if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

", - "CreateLaunchConfigurationType$InstanceType": "

The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.

", + "CreateLaunchConfigurationType$InstanceType": "

The instance type of the EC2 instance. For information about available instance types, see Available Instance Types in the Amazon Elastic Cloud Compute User Guide.

", "CreateLaunchConfigurationType$KernelId": "

The ID of the kernel associated with the AMI.

", "CreateLaunchConfigurationType$RamdiskId": "

The ID of the RAM disk associated with the AMI.

", "Ebs$SnapshotId": "

The ID of the snapshot.

", "EnableMetricsCollectionQuery$Granularity": "

The granularity to associate with the metrics to collect. The only valid value is 1Minute.

", - "EnabledMetric$Metric": "

One of the following metrics:

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

", + "EnabledMetric$Metric": "

The name of the metric.

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

", "EnabledMetric$Granularity": "

The granularity of the metric. The only valid value is 1Minute.

", "Instance$AvailabilityZone": "

The Availability Zone in which the instance is running.

", "Instance$LaunchConfigurationName": "

The launch configuration associated with the instance.

", @@ -1349,13 +1295,13 @@ "LimitExceededFault$message": null, "LoadBalancerNames$member": null, "LoadBalancerState$LoadBalancerName": "

The name of the load balancer.

", - "LoadBalancerState$State": "

One of the following load balancer states:

  • Adding - The instances in the group are being registered with the load balancer.

  • Added - All instances in the group are registered with the load balancer.

  • InService - At least one instance in the group passed an ELB health check.

  • Removing - The instances are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.

", - "MetricCollectionType$Metric": "

One of the following metrics:

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

", + "LoadBalancerState$State": "

The state of the load balancer.

  • Adding - The instances in the group are being registered with the load balancer.

  • Added - All instances in the group are registered with the load balancer.

  • InService - At least one instance in the group passed an ELB health check.

  • Removing - The instances are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.

", + "MetricCollectionType$Metric": "

The metric.

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

", "MetricGranularityType$Granularity": "

The granularity. The only valid value is 1Minute.

", "Metrics$member": null, - "NotificationConfiguration$NotificationType": "

One of the following event notification types:

  • autoscaling:EC2_INSTANCE_LAUNCH

  • autoscaling:EC2_INSTANCE_LAUNCH_ERROR

  • autoscaling:EC2_INSTANCE_TERMINATE

  • autoscaling:EC2_INSTANCE_TERMINATE_ERROR

  • autoscaling:TEST_NOTIFICATION

", + "NotificationConfiguration$NotificationType": "

The types of events for an action to start.

  • autoscaling:EC2_INSTANCE_LAUNCH

  • autoscaling:EC2_INSTANCE_LAUNCH_ERROR

  • autoscaling:EC2_INSTANCE_TERMINATE

  • autoscaling:EC2_INSTANCE_TERMINATE_ERROR

  • autoscaling:TEST_NOTIFICATION

", "ProcessNames$member": null, - "ProcessType$ProcessName": "

One of the following processes:

  • Launch

  • Terminate

  • AddToLoadBalancer

  • AlarmNotification

  • AZRebalance

  • HealthCheck

  • ReplaceUnhealthy

  • ScheduledActions

", + "ProcessType$ProcessName": "

The name of the process.

  • Launch

  • Terminate

  • AddToLoadBalancer

  • AlarmNotification

  • AZRebalance

  • HealthCheck

  • ReplaceUnhealthy

  • ScheduledActions

", "PutScalingPolicyType$PolicyName": "

The name of the policy.

", "PutScalingPolicyType$AdjustmentType": "

The adjustment type. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

For more information, see Dynamic Scaling in the Auto Scaling Developer Guide.

", "PutScheduledUpdateGroupActionType$ScheduledActionName": "

The name of this scaling action.

", @@ -1371,28 +1317,28 @@ "ScheduledUpdateGroupAction$Recurrence": "

The recurring schedule for the action.

", "SuspendedProcess$ProcessName": "

The name of the suspended process.

", "SuspendedProcess$SuspensionReason": "

The reason that the process was suspended.

", - "UpdateAutoScalingGroupType$PlacementGroup": "

The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.

", - "UpdateAutoScalingGroupType$VPCZoneIdentifier": "

The ID of the subnet, if you are launching into a VPC. You can specify several subnets in a comma-separated list.

When you specify VPCZoneIdentifier with AvailabilityZones, ensure that the subnets' Availability Zones match the values you specify for AvailabilityZones.

For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.

" + "UpdateAutoScalingGroupType$PlacementGroup": "

The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups.

", + "UpdateAutoScalingGroupType$VPCZoneIdentifier": "

The ID of the subnet, if you are launching into a VPC. You can specify several subnets in a comma-separated list.

When you specify VPCZoneIdentifier with AvailabilityZones, ensure that the subnets' Availability Zones match the values you specify for AvailabilityZones.

For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.

" } }, "XmlStringMaxLen32": { "base": null, "refs": { - "AutoScalingGroup$HealthCheckType": "

The service to use for the health checks. The valid values are EC2 and ELB.

", - "AutoScalingInstanceDetails$LifecycleState": "

The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.

", + "AutoScalingGroup$HealthCheckType": "

The service of interest for the health status check, which can be either EC2 for Amazon EC2 or ELB for Elastic Load Balancing.

", + "AutoScalingInstanceDetails$LifecycleState": "

The lifecycle state for the instance. For more information, see Auto Scaling Instance States in the Auto Scaling Developer Guide.

", "AutoScalingInstanceDetails$HealthStatus": "

The health status of this instance. \"Healthy\" means that the instance is healthy and should remain in service. \"Unhealthy\" means that the instance is unhealthy and Auto Scaling should terminate and replace it.

", - "CreateAutoScalingGroupType$HealthCheckType": "

The service to use for the health checks. The valid values are EC2 and ELB.

By default, health checks use Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Checks in the Auto Scaling Developer Guide.

", - "Instance$HealthStatus": "

The health status of the instance. \"Healthy\" means that the instance is healthy and should remain in service. \"Unhealthy\" means that the instance is unhealthy and Auto Scaling should terminate and replace it.

", + "CreateAutoScalingGroupType$HealthCheckType": "

The service to use for the health checks. The valid values are EC2 and ELB.

By default, health checks use Amazon EC2 instance status checks to determine the health of an instance. For more information, see Health Checks.

", + "Instance$HealthStatus": "

The health status of the instance.

", "PutScalingPolicyType$MetricAggregationType": "

The aggregation type for the CloudWatch metrics. Valid values are Minimum, Maximum, and Average. If the aggregation type is null, the value is treated as Average.

This parameter is not supported if the policy type is SimpleScaling.

", "ScalingPolicy$MetricAggregationType": "

The aggregation type for the CloudWatch metrics. Valid values are Minimum, Maximum, and Average.

", "SetInstanceHealthQuery$HealthStatus": "

The health status of the instance. Set to Healthy if you want the instance to remain in service. Set to Unhealthy if you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.

", - "UpdateAutoScalingGroupType$HealthCheckType": "

The service to use for the health checks. The valid values are EC2 and ELB.

" + "UpdateAutoScalingGroupType$HealthCheckType": "

The type of health check for the instances in the Auto Scaling group. The health check type can either be EC2 for Amazon EC2 or ELB for Elastic Load Balancing.

" } }, "XmlStringMaxLen64": { "base": null, "refs": { - "CreateLaunchConfigurationType$PlacementTenancy": "

The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware and can only be launched into a VPC.

You must set the value of this parameter to dedicated if want to launch Dedicated Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set to default).

If you specify this parameter, be sure to specify at least one subnet when you create your group.

For more information, see Launching Auto Scaling Instances in a VPC in the Auto Scaling Developer Guide.

Valid values: default | dedicated

", + "CreateLaunchConfigurationType$PlacementTenancy": "

The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware and can only be launched into a VPC.

You must set the value of this parameter to dedicated if want to launch Dedicated Instances into a shared tenancy VPC (VPC with instance placement tenancy attribute set to default).

If you specify a value for this parameter, be sure to specify at least one subnet using the VPCZoneIdentifier parameter when you create your group.

For more information, see Auto Scaling and Amazon Virtual Private Cloud in the Auto Scaling Developer Guide.

Valid values: default | dedicated

", "LaunchConfiguration$PlacementTenancy": "

The tenancy of the instance, either default or dedicated. An instance with dedicated tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.

", "PolicyTypes$member": null, "PutScalingPolicyType$PolicyType": "

The policy type. Valid values are SimpleScaling and StepScaling. If the policy type is null, the value is treated as SimpleScaling.

", @@ -1402,7 +1348,7 @@ "XmlStringUserData": { "base": null, "refs": { - "CreateLaunchConfigurationType$UserData": "

The user data to make available to the launched EC2 instances. For more information, see Instance Metadata and User Data in the Amazon Elastic Compute Cloud User Guide.

", + "CreateLaunchConfigurationType$UserData": "

The user data to make available to the launched EC2 instances. For more information, see Instance Metadata and User Data in the Amazon Elastic Compute Cloud User Guide.

At this time, launch configurations don't support compressed (zipped) user data files.

", "LaunchConfiguration$UserData": "

The user data available to the instances.

" } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/autoscaling/2011-01-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/autoscaling/2011-01-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/api-2.json similarity index 65% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/api-2.json index c5d20ffda..e1c6157f6 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/api-2.json @@ -3,10 +3,10 @@ "metadata":{ "apiVersion":"2010-05-15", "endpointPrefix":"cloudformation", - "protocol":"query", "serviceFullName":"AWS CloudFormation", "signatureVersion":"v4", - "xmlNamespace":"http://cloudformation.amazonaws.com/doc/2010-05-15/" + "xmlNamespace":"http://cloudformation.amazonaws.com/doc/2010-05-15/", + "protocol":"query" }, "operations":{ "CancelUpdateStack":{ @@ -17,35 +17,6 @@ }, "input":{"shape":"CancelUpdateStackInput"} }, - "ContinueUpdateRollback":{ - "name":"ContinueUpdateRollback", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ContinueUpdateRollbackInput"}, - "output":{ - "shape":"ContinueUpdateRollbackOutput", - "resultWrapper":"ContinueUpdateRollbackResult" - } - }, - "CreateChangeSet":{ - "name":"CreateChangeSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateChangeSetInput"}, - "output":{ - "shape":"CreateChangeSetOutput", - "resultWrapper":"CreateChangeSetResult" - }, - "errors":[ - {"shape":"AlreadyExistsException"}, - {"shape":"InsufficientCapabilitiesException"}, - {"shape":"LimitExceededException"} - ] - }, "CreateStack":{ "name":"CreateStack", "http":{ @@ -58,24 +29,33 @@ "resultWrapper":"CreateStackResult" }, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"AlreadyExistsException"}, - {"shape":"InsufficientCapabilitiesException"} - ] - }, - "DeleteChangeSet":{ - "name":"DeleteChangeSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteChangeSetInput"}, - "output":{ - "shape":"DeleteChangeSetOutput", - "resultWrapper":"DeleteChangeSetResult" - }, - "errors":[ - {"shape":"InvalidChangeSetStatusException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceededException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AlreadyExistsException", + "error":{ + "code":"AlreadyExistsException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientCapabilitiesException", + "error":{ + "code":"InsufficientCapabilitiesException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteStack":{ @@ -86,33 +66,6 @@ }, "input":{"shape":"DeleteStackInput"} }, - "DescribeAccountLimits":{ - "name":"DescribeAccountLimits", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAccountLimitsInput"}, - "output":{ - "shape":"DescribeAccountLimitsOutput", - "resultWrapper":"DescribeAccountLimitsResult" - } - }, - "DescribeChangeSet":{ - "name":"DescribeChangeSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeChangeSetInput"}, - "output":{ - "shape":"DescribeChangeSetOutput", - "resultWrapper":"DescribeChangeSetResult" - }, - "errors":[ - {"shape":"ChangeSetNotFoundException"} - ] - }, "DescribeStackEvents":{ "name":"DescribeStackEvents", "http":{ @@ -173,22 +126,6 @@ "resultWrapper":"EstimateTemplateCostResult" } }, - "ExecuteChangeSet":{ - "name":"ExecuteChangeSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ExecuteChangeSetInput"}, - "output":{ - "shape":"ExecuteChangeSetOutput", - "resultWrapper":"ExecuteChangeSetResult" - }, - "errors":[ - {"shape":"InvalidChangeSetStatusException"}, - {"shape":"ChangeSetNotFoundException"} - ] - }, "GetStackPolicy":{ "name":"GetStackPolicy", "http":{ @@ -225,18 +162,6 @@ "resultWrapper":"GetTemplateSummaryResult" } }, - "ListChangeSets":{ - "name":"ListChangeSets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListChangeSetsInput"}, - "output":{ - "shape":"ListChangeSetsOutput", - "resultWrapper":"ListChangeSetsResult" - } - }, "ListStackResources":{ "name":"ListStackResources", "http":{ @@ -289,7 +214,15 @@ "resultWrapper":"UpdateStackResult" }, "errors":[ - {"shape":"InsufficientCapabilitiesException"} + { + "shape":"InsufficientCapabilitiesException", + "error":{ + "code":"InsufficientCapabilitiesException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ValidateTemplate":{ @@ -306,17 +239,6 @@ } }, "shapes":{ - "AccountLimit":{ - "type":"structure", - "members":{ - "Name":{"shape":"LimitName"}, - "Value":{"shape":"LimitValue"} - } - }, - "AccountLimitList":{ - "type":"list", - "member":{"shape":"AccountLimit"} - }, "AllowedValue":{"type":"string"}, "AllowedValues":{ "type":"list", @@ -349,141 +271,6 @@ "type":"string", "enum":["CAPABILITY_IAM"] }, - "CausingEntity":{"type":"string"}, - "Change":{ - "type":"structure", - "members":{ - "Type":{"shape":"ChangeType"}, - "ResourceChange":{"shape":"ResourceChange"} - } - }, - "ChangeAction":{ - "type":"string", - "enum":[ - "Add", - "Modify", - "Remove" - ] - }, - "ChangeSetId":{ - "type":"string", - "min":1, - "pattern":"arn:[-a-zA-Z0-9:/]*" - }, - "ChangeSetName":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[a-zA-Z][-a-zA-Z0-9]*" - }, - "ChangeSetNameOrId":{ - "type":"string", - "max":1600, - "min":1, - "pattern":"[a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/]*" - }, - "ChangeSetNotFoundException":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ChangeSetNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ChangeSetStatus":{ - "type":"string", - "enum":[ - "CREATE_PENDING", - "CREATE_IN_PROGRESS", - "CREATE_COMPLETE", - "DELETE_COMPLETE", - "FAILED" - ] - }, - "ChangeSetStatusReason":{"type":"string"}, - "ChangeSetSummaries":{ - "type":"list", - "member":{"shape":"ChangeSetSummary"} - }, - "ChangeSetSummary":{ - "type":"structure", - "members":{ - "StackId":{"shape":"StackId"}, - "StackName":{"shape":"StackName"}, - "ChangeSetId":{"shape":"ChangeSetId"}, - "ChangeSetName":{"shape":"ChangeSetName"}, - "ExecutionStatus":{"shape":"ExecutionStatus"}, - "Status":{"shape":"ChangeSetStatus"}, - "StatusReason":{"shape":"ChangeSetStatusReason"}, - "CreationTime":{"shape":"CreationTime"}, - "Description":{"shape":"Description"} - } - }, - "ChangeSource":{ - "type":"string", - "enum":[ - "ResourceReference", - "ParameterReference", - "ResourceAttribute", - "DirectModification", - "Automatic" - ] - }, - "ChangeType":{ - "type":"string", - "enum":["Resource"] - }, - "Changes":{ - "type":"list", - "member":{"shape":"Change"} - }, - "ClientToken":{ - "type":"string", - "max":128, - "min":1 - }, - "ContinueUpdateRollbackInput":{ - "type":"structure", - "required":["StackName"], - "members":{ - "StackName":{"shape":"StackNameOrId"} - } - }, - "ContinueUpdateRollbackOutput":{ - "type":"structure", - "members":{ - } - }, - "CreateChangeSetInput":{ - "type":"structure", - "required":[ - "StackName", - "ChangeSetName" - ], - "members":{ - "StackName":{"shape":"StackNameOrId"}, - "TemplateBody":{"shape":"TemplateBody"}, - "TemplateURL":{"shape":"TemplateURL"}, - "UsePreviousTemplate":{"shape":"UsePreviousTemplate"}, - "Parameters":{"shape":"Parameters"}, - "Capabilities":{"shape":"Capabilities"}, - "ResourceTypes":{"shape":"ResourceTypes"}, - "NotificationARNs":{"shape":"NotificationARNs"}, - "Tags":{"shape":"Tags"}, - "ChangeSetName":{"shape":"ChangeSetName"}, - "ClientToken":{"shape":"ClientToken"}, - "Description":{"shape":"Description"} - } - }, - "CreateChangeSetOutput":{ - "type":"structure", - "members":{ - "Id":{"shape":"ChangeSetId"} - } - }, "CreateStackInput":{ "type":"structure", "required":["StackName"], @@ -496,7 +283,6 @@ "TimeoutInMinutes":{"shape":"TimeoutMinutes"}, "NotificationARNs":{"shape":"NotificationARNs"}, "Capabilities":{"shape":"Capabilities"}, - "ResourceTypes":{"shape":"ResourceTypes"}, "OnFailure":{"shape":"OnFailure"}, "StackPolicyBody":{"shape":"StackPolicyBody"}, "StackPolicyURL":{"shape":"StackPolicyURL"}, @@ -510,70 +296,14 @@ } }, "CreationTime":{"type":"timestamp"}, - "DeleteChangeSetInput":{ - "type":"structure", - "required":["ChangeSetName"], - "members":{ - "ChangeSetName":{"shape":"ChangeSetNameOrId"}, - "StackName":{"shape":"StackNameOrId"} - } - }, - "DeleteChangeSetOutput":{ - "type":"structure", - "members":{ - } - }, "DeleteStackInput":{ "type":"structure", "required":["StackName"], "members":{ - "StackName":{"shape":"StackName"}, - "RetainResources":{"shape":"RetainResources"} + "StackName":{"shape":"StackName"} } }, "DeletionTime":{"type":"timestamp"}, - "DescribeAccountLimitsInput":{ - "type":"structure", - "members":{ - "NextToken":{"shape":"NextToken"} - } - }, - "DescribeAccountLimitsOutput":{ - "type":"structure", - "members":{ - "AccountLimits":{"shape":"AccountLimitList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "DescribeChangeSetInput":{ - "type":"structure", - "required":["ChangeSetName"], - "members":{ - "ChangeSetName":{"shape":"ChangeSetNameOrId"}, - "StackName":{"shape":"StackNameOrId"}, - "NextToken":{"shape":"NextToken"} - } - }, - "DescribeChangeSetOutput":{ - "type":"structure", - "members":{ - "ChangeSetName":{"shape":"ChangeSetName"}, - "ChangeSetId":{"shape":"ChangeSetId"}, - "StackId":{"shape":"StackId"}, - "StackName":{"shape":"StackName"}, - "Description":{"shape":"Description"}, - "Parameters":{"shape":"Parameters"}, - "CreationTime":{"shape":"CreationTime"}, - "ExecutionStatus":{"shape":"ExecutionStatus"}, - "Status":{"shape":"ChangeSetStatus"}, - "StatusReason":{"shape":"ChangeSetStatusReason"}, - "NotificationARNs":{"shape":"NotificationARNs"}, - "Capabilities":{"shape":"Capabilities"}, - "Tags":{"shape":"Tags"}, - "Changes":{"shape":"Changes"}, - "NextToken":{"shape":"NextToken"} - } - }, "DescribeStackEventsInput":{ "type":"structure", "members":{ @@ -633,11 +363,7 @@ "NextToken":{"shape":"NextToken"} } }, - "Description":{ - "type":"string", - "max":1024, - "min":1 - }, + "Description":{"type":"string"}, "DisableRollback":{"type":"boolean"}, "EstimateTemplateCostInput":{ "type":"structure", @@ -653,38 +379,7 @@ "Url":{"shape":"Url"} } }, - "EvaluationType":{ - "type":"string", - "enum":[ - "Static", - "Dynamic" - ] - }, "EventId":{"type":"string"}, - "ExecuteChangeSetInput":{ - "type":"structure", - "required":["ChangeSetName"], - "members":{ - "ChangeSetName":{"shape":"ChangeSetNameOrId"}, - "StackName":{"shape":"StackNameOrId"} - } - }, - "ExecuteChangeSetOutput":{ - "type":"structure", - "members":{ - } - }, - "ExecutionStatus":{ - "type":"string", - "enum":[ - "UNAVAILABLE", - "AVAILABLE", - "EXECUTE_IN_PROGRESS", - "EXECUTE_COMPLETE", - "EXECUTE_FAILED", - "OBSOLETE" - ] - }, "GetStackPolicyInput":{ "type":"structure", "required":["StackName"], @@ -726,7 +421,6 @@ "Description":{"shape":"Description"}, "Capabilities":{"shape":"Capabilities"}, "CapabilitiesReason":{"shape":"CapabilitiesReason"}, - "ResourceTypes":{"shape":"ResourceTypes"}, "Version":{"shape":"Version"}, "Metadata":{"shape":"Metadata"} } @@ -742,17 +436,6 @@ }, "exception":true }, - "InvalidChangeSetStatusException":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidChangeSetStatus", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, "LastUpdatedTime":{"type":"timestamp"}, "LimitExceededException":{ "type":"structure", @@ -765,23 +448,6 @@ }, "exception":true }, - "LimitName":{"type":"string"}, - "LimitValue":{"type":"integer"}, - "ListChangeSetsInput":{ - "type":"structure", - "required":["StackName"], - "members":{ - "StackName":{"shape":"StackNameOrId"}, - "NextToken":{"shape":"NextToken"} - } - }, - "ListChangeSetsOutput":{ - "type":"structure", - "members":{ - "Summaries":{"shape":"ChangeSetSummaries"}, - "NextToken":{"shape":"NextToken"} - } - }, "ListStackResourcesInput":{ "type":"structure", "required":["StackName"], @@ -815,8 +481,8 @@ "Metadata":{"type":"string"}, "NextToken":{ "type":"string", - "max":1024, - "min":1 + "min":1, + "max":1024 }, "NoEcho":{"type":"boolean"}, "NotificationARN":{"type":"string"}, @@ -884,59 +550,6 @@ "member":{"shape":"Parameter"} }, "PhysicalResourceId":{"type":"string"}, - "PropertyName":{"type":"string"}, - "Replacement":{ - "type":"string", - "enum":[ - "True", - "False", - "Conditional" - ] - }, - "RequiresRecreation":{ - "type":"string", - "enum":[ - "Never", - "Conditionally", - "Always" - ] - }, - "ResourceAttribute":{ - "type":"string", - "enum":[ - "Properties", - "Metadata", - "CreationPolicy", - "UpdatePolicy", - "DeletionPolicy", - "Tags" - ] - }, - "ResourceChange":{ - "type":"structure", - "members":{ - "Action":{"shape":"ChangeAction"}, - "LogicalResourceId":{"shape":"LogicalResourceId"}, - "PhysicalResourceId":{"shape":"PhysicalResourceId"}, - "ResourceType":{"shape":"ResourceType"}, - "Replacement":{"shape":"Replacement"}, - "Scope":{"shape":"Scope"}, - "Details":{"shape":"ResourceChangeDetails"} - } - }, - "ResourceChangeDetail":{ - "type":"structure", - "members":{ - "Target":{"shape":"ResourceTargetDefinition"}, - "Evaluation":{"shape":"EvaluationType"}, - "ChangeSource":{"shape":"ChangeSource"}, - "CausingEntity":{"shape":"CausingEntity"} - } - }, - "ResourceChangeDetails":{ - "type":"list", - "member":{"shape":"ResourceChangeDetail"} - }, "ResourceProperties":{"type":"string"}, "ResourceSignalStatus":{ "type":"string", @@ -947,8 +560,8 @@ }, "ResourceSignalUniqueId":{ "type":"string", - "max":64, - "min":1 + "min":1, + "max":64 }, "ResourceStatus":{ "type":"string", @@ -966,31 +579,7 @@ ] }, "ResourceStatusReason":{"type":"string"}, - "ResourceTargetDefinition":{ - "type":"structure", - "members":{ - "Attribute":{"shape":"ResourceAttribute"}, - "Name":{"shape":"PropertyName"}, - "RequiresRecreation":{"shape":"RequiresRecreation"} - } - }, - "ResourceType":{ - "type":"string", - "max":256, - "min":1 - }, - "ResourceTypes":{ - "type":"list", - "member":{"shape":"ResourceType"} - }, - "RetainResources":{ - "type":"list", - "member":{"shape":"LogicalResourceId"} - }, - "Scope":{ - "type":"list", - "member":{"shape":"ResourceAttribute"} - }, + "ResourceType":{"type":"string"}, "SetStackPolicyInput":{ "type":"structure", "required":["StackName"], @@ -1073,23 +662,23 @@ }, "StackPolicyBody":{ "type":"string", - "max":16384, - "min":1 + "min":1, + "max":16384 }, "StackPolicyDuringUpdateBody":{ "type":"string", - "max":16384, - "min":1 + "min":1, + "max":16384 }, "StackPolicyDuringUpdateURL":{ "type":"string", - "max":1350, - "min":1 + "min":1, + "max":1350 }, "StackPolicyURL":{ "type":"string", - "max":1350, - "min":1 + "min":1, + "max":1350 }, "StackResource":{ "type":"structure", @@ -1242,8 +831,8 @@ }, "TemplateURL":{ "type":"string", - "max":1024, - "min":1 + "min":1, + "max":1024 }, "TimeoutMinutes":{ "type":"integer", @@ -1262,11 +851,9 @@ "StackPolicyDuringUpdateURL":{"shape":"StackPolicyDuringUpdateURL"}, "Parameters":{"shape":"Parameters"}, "Capabilities":{"shape":"Capabilities"}, - "ResourceTypes":{"shape":"ResourceTypes"}, "StackPolicyBody":{"shape":"StackPolicyBody"}, "StackPolicyURL":{"shape":"StackPolicyURL"}, - "NotificationARNs":{"shape":"NotificationARNs"}, - "Tags":{"shape":"Tags"} + "NotificationARNs":{"shape":"NotificationARNs"} } }, "UpdateStackOutput":{ diff --git a/vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/docs-2.json new file mode 100644 index 000000000..507a247c4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/docs-2.json @@ -0,0 +1,725 @@ +{ + "version": "2.0", + "operations": { + "CancelUpdateStack": "

Cancels an update on the specified stack. If the call completes successfully, the stack will roll back the update and revert to the previous stack configuration.

Only stacks that are in the UPDATE_IN_PROGRESS state can be canceled.", + "CreateStack": "

Creates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of the stack via the DescribeStacks API.

", + "DeleteStack": "

Deletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks do not show up in the DescribeStacks API if the deletion has been completed successfully.

", + "DescribeStackEvents": "

Returns all stack related events for a specified stack. For more information about a stack's event history, go to Stacks in the AWS CloudFormation User Guide.

You can list events for stacks that have failed to create or have been deleted by specifying the unique stack identifier (stack ID).", + "DescribeStackResource": "

Returns a description of the specified resource in the specified stack.

For deleted stacks, DescribeStackResource returns resource information for up to 90 days after the stack has been deleted.

", + "DescribeStackResources": "

Returns AWS resource descriptions for running and deleted stacks. If StackName is specified, all the associated resources that are part of the stack are returned. If PhysicalResourceId is specified, the associated resources of the stack that the resource belongs to are returned.

Only the first 100 resources will be returned. If your stack has more resources than this, you should use ListStackResources instead.

For deleted stacks, DescribeStackResources returns resource information for up to 90 days after the stack has been deleted.

You must specify either StackName or PhysicalResourceId, but not both. In addition, you can specify LogicalResourceId to filter the returned result. For more information about resources, the LogicalResourceId and PhysicalResourceId, go to the AWS CloudFormation User Guide.

A ValidationError is returned if you specify both StackName and PhysicalResourceId in the same request.", + "DescribeStacks": "

Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.

", + "EstimateTemplateCost": "

Returns the estimated monthly cost of a template. The return value is an AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.

", + "GetStackPolicy": "

Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.

", + "GetTemplate": "

Returns the template body for a specified stack. You can get the template for running or deleted stacks.

For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted.

If the template does not exist, a ValidationError is returned. ", + "GetTemplateSummary": "

Returns information about a new or existing template. The GetTemplateSummary action is useful for viewing parameter information, such as default parameter values and parameter types, before you create or update a stack.

You can use the GetTemplateSummary action when you submit a template, or you can get template information for a running or deleted stack.

For deleted stacks, GetTemplateSummary returns the template information for up to 90 days after the stack has been deleted. If the template does not exist, a ValidationError is returned.

", + "ListStackResources": "

Returns descriptions of all resources of the specified stack.

For deleted stacks, ListStackResources returns resource information for up to 90 days after the stack has been deleted.

", + "ListStacks": "

Returns the summary information for stacks whose status matches the specified StackStatusFilter. Summary information for stacks that have been deleted is kept for 90 days after the stack is deleted. If no StackStatusFilter is specified, summary information for all stacks is returned (including existing stacks and stacks that have been deleted).

", + "SetStackPolicy": "

Sets a stack policy for a specified stack.

", + "SignalResource": "

Sends a signal to the specified resource with a success or failure status. You can use the SignalResource API in conjunction with a creation policy or update policy. AWS CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource API is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.

", + "UpdateStack": "

Updates a stack as specified in the template. After the call completes successfully, the stack update starts. You can check the status of the stack via the DescribeStacks action.

To get a copy of the template for an existing stack, you can use the GetTemplate action.

Tags that were associated with this stack during creation time will still be associated with the stack after an UpdateStack operation.

For more information about creating an update template, updating a stack, and monitoring the progress of the update, see Updating a Stack.

", + "ValidateTemplate": "

Validates a specified template.

" + }, + "service": "AWS CloudFormation

AWS CloudFormation enables you to create and manage AWS infrastructure deployments predictably and repeatedly. AWS CloudFormation helps you leverage AWS products such as Amazon EC2, EBS, Amazon SNS, ELB, and Auto Scaling to build highly-reliable, highly scalable, cost effective applications without worrying about creating and configuring the underlying AWS infrastructure.

With AWS CloudFormation, you declare all of your resources and dependencies in a template file. The template defines a collection of resources as a single unit called a stack. AWS CloudFormation creates and deletes all member resources of the stack together and manages all dependencies between the resources for you.

For more information about this product, go to the CloudFormation Product Page.

Amazon CloudFormation makes use of other AWS products. If you need additional technical information about a specific AWS product, you can find the product's technical documentation at http://aws.amazon.com/documentation/.

", + "shapes": { + "AllowedValue": { + "base": null, + "refs": { + "AllowedValues$member": null + } + }, + "AllowedValues": { + "base": null, + "refs": { + "ParameterConstraints$AllowedValues": "

A list of values that are permitted for a parameter.

" + } + }, + "AlreadyExistsException": { + "base": "

Resource with the name requested already exists.

", + "refs": { + } + }, + "CancelUpdateStackInput": { + "base": "

The input for CancelUpdateStack action.

", + "refs": { + } + }, + "Capabilities": { + "base": null, + "refs": { + "CreateStackInput$Capabilities": "

A list of capabilities that you must specify before AWS CloudFormation can create or update certain stacks. Some stack templates might include resources that can affect permissions in your AWS account. For those stacks, you must explicitly acknowledge their capabilities by specifying this parameter.

Currently, the only valid value is CAPABILITY_IAM, which is required for the following resources: AWS::IAM::AccessKey, AWS::IAM::Group, AWS::IAM::InstanceProfile, AWS::IAM::Policy, AWS::IAM::Role, AWS::IAM::User, and AWS::IAM::UserToGroupAddition. If your stack template contains these resources, we recommend that you review any permissions associated with them. If you don't specify this parameter, this action returns an InsufficientCapabilities error.

", + "GetTemplateSummaryOutput$Capabilities": "

The capabilities found within the template. Currently, AWS CloudFormation supports only the CAPABILITY_IAM capability. If your template contains IAM resources, you must specify the CAPABILITY_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error.

", + "Stack$Capabilities": "

The capabilities allowed in the stack.

", + "UpdateStackInput$Capabilities": "

A list of capabilities that you must specify before AWS CloudFormation can create or update certain stacks. Some stack templates might include resources that can affect permissions in your AWS account. For those stacks, you must explicitly acknowledge their capabilities by specifying this parameter. Currently, the only valid value is CAPABILITY_IAM, which is required for the following resources: AWS::IAM::AccessKey, AWS::IAM::Group, AWS::IAM::InstanceProfile, AWS::IAM::Policy, AWS::IAM::Role, AWS::IAM::User, and AWS::IAM::UserToGroupAddition. If your stack template contains these resources, we recommend that you review any permissions associated with them. If you don't specify this parameter, this action returns an InsufficientCapabilities error.

", + "ValidateTemplateOutput$Capabilities": "

The capabilities found within the template. Currently, AWS CloudFormation supports only the CAPABILITY_IAM capability. If your template contains IAM resources, you must specify the CAPABILITY_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error.

" + } + }, + "CapabilitiesReason": { + "base": null, + "refs": { + "GetTemplateSummaryOutput$CapabilitiesReason": "

The list of resources that generated the values in the Capabilities response element.

", + "ValidateTemplateOutput$CapabilitiesReason": "

The list of resources that generated the values in the Capabilities response element.

" + } + }, + "Capability": { + "base": null, + "refs": { + "Capabilities$member": null + } + }, + "CreateStackInput": { + "base": "

The input for CreateStack action.

", + "refs": { + } + }, + "CreateStackOutput": { + "base": "

The output for a CreateStack action.

", + "refs": { + } + }, + "CreationTime": { + "base": null, + "refs": { + "Stack$CreationTime": "

Time at which the stack was created.

", + "StackSummary$CreationTime": "

The time the stack was created.

" + } + }, + "DeleteStackInput": { + "base": "

The input for DeleteStack action.

", + "refs": { + } + }, + "DeletionTime": { + "base": null, + "refs": { + "StackSummary$DeletionTime": "

The time the stack was deleted.

" + } + }, + "DescribeStackEventsInput": { + "base": "

The input for DescribeStackEvents action.

", + "refs": { + } + }, + "DescribeStackEventsOutput": { + "base": "

The output for a DescribeStackEvents action.

", + "refs": { + } + }, + "DescribeStackResourceInput": { + "base": "

The input for DescribeStackResource action.

", + "refs": { + } + }, + "DescribeStackResourceOutput": { + "base": "

The output for a DescribeStackResource action.

", + "refs": { + } + }, + "DescribeStackResourcesInput": { + "base": "

The input for DescribeStackResources action.

", + "refs": { + } + }, + "DescribeStackResourcesOutput": { + "base": "

The output for a DescribeStackResources action.

", + "refs": { + } + }, + "DescribeStacksInput": { + "base": "

The input for DescribeStacks action.

", + "refs": { + } + }, + "DescribeStacksOutput": { + "base": "

The output for a DescribeStacks action.

", + "refs": { + } + }, + "Description": { + "base": null, + "refs": { + "GetTemplateSummaryOutput$Description": "

The value that is defined in the Description property of the template.

", + "Output$Description": "

User defined description associated with the output.

", + "ParameterDeclaration$Description": "

The description that is associate with the parameter.

", + "Stack$Description": "

User defined description associated with the stack.

", + "StackResource$Description": "

User defined description associated with the resource.

", + "StackResourceDetail$Description": "

User defined description associated with the resource.

", + "TemplateParameter$Description": "

User defined description associated with the parameter.

", + "ValidateTemplateOutput$Description": "

The description found within the template.

" + } + }, + "DisableRollback": { + "base": null, + "refs": { + "CreateStackInput$DisableRollback": "

Set to true to disable rollback of the stack if stack creation failed. You can specify either DisableRollback or OnFailure, but not both.

Default: false

", + "Stack$DisableRollback": "

Boolean to enable or disable rollback on stack creation failures:

  • true: disable rollback
  • false: enable rollback

" + } + }, + "EstimateTemplateCostInput": { + "base": null, + "refs": { + } + }, + "EstimateTemplateCostOutput": { + "base": "

The output for a EstimateTemplateCost action.

", + "refs": { + } + }, + "EventId": { + "base": null, + "refs": { + "StackEvent$EventId": "

The unique ID of this event.

" + } + }, + "GetStackPolicyInput": { + "base": "

The input for the GetStackPolicy action.

", + "refs": { + } + }, + "GetStackPolicyOutput": { + "base": "

The output for the GetStackPolicy action.

", + "refs": { + } + }, + "GetTemplateInput": { + "base": "

The input for a GetTemplate action.

", + "refs": { + } + }, + "GetTemplateOutput": { + "base": "

The output for GetTemplate action.

", + "refs": { + } + }, + "GetTemplateSummaryInput": { + "base": "

The input for the GetTemplateSummary action.

", + "refs": { + } + }, + "GetTemplateSummaryOutput": { + "base": "

The output for the GetTemplateSummary action.

", + "refs": { + } + }, + "InsufficientCapabilitiesException": { + "base": "

The template contains resources with capabilities that were not specified in the Capabilities parameter.

", + "refs": { + } + }, + "LastUpdatedTime": { + "base": null, + "refs": { + "Stack$LastUpdatedTime": "

The time the stack was last updated. This field will only be returned if the stack has been updated at least once.

", + "StackSummary$LastUpdatedTime": "

The time the stack was last updated. This field will only be returned if the stack has been updated at least once.

" + } + }, + "LimitExceededException": { + "base": "

Quota for the resource has already been reached.

", + "refs": { + } + }, + "ListStackResourcesInput": { + "base": "

The input for the ListStackResource action.

", + "refs": { + } + }, + "ListStackResourcesOutput": { + "base": "

The output for a ListStackResources action.

", + "refs": { + } + }, + "ListStacksInput": { + "base": "

The input for ListStacks action.

", + "refs": { + } + }, + "ListStacksOutput": { + "base": "

The output for ListStacks action.

", + "refs": { + } + }, + "LogicalResourceId": { + "base": null, + "refs": { + "DescribeStackResourceInput$LogicalResourceId": "

The logical name of the resource as specified in the template.

Default: There is no default value.

", + "DescribeStackResourcesInput$LogicalResourceId": "

The logical name of the resource as specified in the template.

Default: There is no default value.

", + "SignalResourceInput$LogicalResourceId": "

The logical ID of the resource that you want to signal. The logical ID is the name of the resource that given in the template.

", + "StackEvent$LogicalResourceId": "

The logical name of the resource specified in the template.

", + "StackResource$LogicalResourceId": "

The logical name of the resource specified in the template.

", + "StackResourceDetail$LogicalResourceId": "

The logical name of the resource specified in the template.

", + "StackResourceSummary$LogicalResourceId": "

The logical name of the resource specified in the template.

" + } + }, + "Metadata": { + "base": null, + "refs": { + "GetTemplateSummaryOutput$Metadata": "

The value that is defined for the Metadata property of the template.

", + "StackResourceDetail$Metadata": "

The JSON format content of the Metadata attribute declared for the resource. For more information, see Metadata Attribute in the AWS CloudFormation User Guide.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "DescribeStackEventsInput$NextToken": "

String that identifies the start of the next list of events, if there is one.

Default: There is no default value.

", + "DescribeStackEventsOutput$NextToken": "

String that identifies the start of the next list of events, if there is one.

", + "DescribeStacksInput$NextToken": "String that identifies the start of the next list of stacks, if there is one.", + "DescribeStacksOutput$NextToken": "String that identifies the start of the next list of stacks, if there is one.", + "ListStackResourcesInput$NextToken": "

String that identifies the start of the next list of stack resource summaries, if there is one.

Default: There is no default value.

", + "ListStackResourcesOutput$NextToken": "

String that identifies the start of the next list of stack resources, if there is one.

", + "ListStacksInput$NextToken": "

String that identifies the start of the next list of stacks, if there is one.

Default: There is no default value.

", + "ListStacksOutput$NextToken": "

String that identifies the start of the next list of stacks, if there is one.

" + } + }, + "NoEcho": { + "base": null, + "refs": { + "ParameterDeclaration$NoEcho": "

Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management Console.

", + "TemplateParameter$NoEcho": "

Flag indicating whether the parameter should be displayed as plain text in logs and UIs.

" + } + }, + "NotificationARN": { + "base": null, + "refs": { + "NotificationARNs$member": null + } + }, + "NotificationARNs": { + "base": null, + "refs": { + "CreateStackInput$NotificationARNs": "

The Simple Notification Service (SNS) topic ARNs to publish stack related events. You can find your SNS topic ARNs using the SNS console or your Command Line Interface (CLI).

", + "Stack$NotificationARNs": "

SNS topic ARNs to which stack related events are published.

", + "UpdateStackInput$NotificationARNs": "

Update the ARNs for the Amazon SNS topics that are associated with the stack.

" + } + }, + "OnFailure": { + "base": null, + "refs": { + "CreateStackInput$OnFailure": "

Determines what action will be taken if stack creation fails. This must be one of: DO_NOTHING, ROLLBACK, or DELETE. You can specify either OnFailure or DisableRollback, but not both.

Default: ROLLBACK

" + } + }, + "Output": { + "base": "

The Output data type.

", + "refs": { + "Outputs$member": null + } + }, + "OutputKey": { + "base": null, + "refs": { + "Output$OutputKey": "

The key associated with the output.

" + } + }, + "OutputValue": { + "base": null, + "refs": { + "Output$OutputValue": "

The value associated with the output.

" + } + }, + "Outputs": { + "base": null, + "refs": { + "Stack$Outputs": "

A list of output structures.

" + } + }, + "Parameter": { + "base": "

The Parameter data type.

", + "refs": { + "Parameters$member": null + } + }, + "ParameterConstraints": { + "base": "

A set of criteria that AWS CloudFormation uses to validate parameter values. Although other constraints might be defined in the stack template, AWS CloudFormation returns only the AllowedValues property.

", + "refs": { + "ParameterDeclaration$ParameterConstraints": "

The criteria that AWS CloudFormation uses to validate parameter values.

" + } + }, + "ParameterDeclaration": { + "base": "

The ParameterDeclaration data type.

", + "refs": { + "ParameterDeclarations$member": null + } + }, + "ParameterDeclarations": { + "base": null, + "refs": { + "GetTemplateSummaryOutput$Parameters": "

A list of parameter declarations that describe various properties for each parameter.

" + } + }, + "ParameterKey": { + "base": null, + "refs": { + "Parameter$ParameterKey": "

The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.

", + "ParameterDeclaration$ParameterKey": "

The name that is associated with the parameter.

", + "TemplateParameter$ParameterKey": "

The name associated with the parameter.

" + } + }, + "ParameterType": { + "base": null, + "refs": { + "ParameterDeclaration$ParameterType": "

The type of parameter.

" + } + }, + "ParameterValue": { + "base": null, + "refs": { + "Parameter$ParameterValue": "

The value associated with the parameter.

", + "ParameterDeclaration$DefaultValue": "

The default value of the parameter.

", + "TemplateParameter$DefaultValue": "

The default value associated with the parameter.

" + } + }, + "Parameters": { + "base": null, + "refs": { + "CreateStackInput$Parameters": "

A list of Parameter structures that specify input parameters for the stack.

", + "EstimateTemplateCostInput$Parameters": "

A list of Parameter structures that specify input parameters.

", + "Stack$Parameters": "

A list of Parameter structures.

", + "UpdateStackInput$Parameters": "

A list of Parameter structures that specify input parameters for the stack. For more information, see the Parameter data type.

" + } + }, + "PhysicalResourceId": { + "base": null, + "refs": { + "DescribeStackResourcesInput$PhysicalResourceId": "

The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

For example, for an Amazon Elastic Compute Cloud (EC2) instance, PhysicalResourceId corresponds to the InstanceId. You can pass the EC2 InstanceId to DescribeStackResources to find which stack the instance belongs to and what other resources are part of the stack.

Required: Conditional. If you do not specify PhysicalResourceId, you must specify StackName.

Default: There is no default value.

", + "StackEvent$PhysicalResourceId": "

The name or unique identifier associated with the physical instance of the resource.

", + "StackResource$PhysicalResourceId": "

The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

", + "StackResourceDetail$PhysicalResourceId": "

The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

", + "StackResourceSummary$PhysicalResourceId": "

The name or unique identifier that corresponds to a physical instance ID of the resource.

" + } + }, + "ResourceProperties": { + "base": null, + "refs": { + "StackEvent$ResourceProperties": "

BLOB of the properties used to create the resource.

" + } + }, + "ResourceSignalStatus": { + "base": null, + "refs": { + "SignalResourceInput$Status": "

The status of the signal, which is either success or failure. A failure signal causes AWS CloudFormation to immediately fail the stack creation or update.

" + } + }, + "ResourceSignalUniqueId": { + "base": null, + "refs": { + "SignalResourceInput$UniqueId": "

A unique ID of the signal. When you signal Amazon EC2 instances or Auto Scaling groups, specify the instance ID that you are signaling as the unique ID. If you send multiple signals to a single resource (such as signaling a wait condition), each signal requires a different unique ID.

" + } + }, + "ResourceStatus": { + "base": null, + "refs": { + "StackEvent$ResourceStatus": "

Current status of the resource.

", + "StackResource$ResourceStatus": "

Current status of the resource.

", + "StackResourceDetail$ResourceStatus": "

Current status of the resource.

", + "StackResourceSummary$ResourceStatus": "

Current status of the resource.

" + } + }, + "ResourceStatusReason": { + "base": null, + "refs": { + "StackEvent$ResourceStatusReason": "

Success/failure message associated with the resource.

", + "StackResource$ResourceStatusReason": "

Success/failure message associated with the resource.

", + "StackResourceDetail$ResourceStatusReason": "

Success/failure message associated with the resource.

", + "StackResourceSummary$ResourceStatusReason": "

Success/failure message associated with the resource.

" + } + }, + "ResourceType": { + "base": null, + "refs": { + "StackEvent$ResourceType": "

Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

", + "StackResource$ResourceType": "

Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

", + "StackResourceDetail$ResourceType": "

Type of resource. ((For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

", + "StackResourceSummary$ResourceType": "

Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

" + } + }, + "SetStackPolicyInput": { + "base": "

The input for the SetStackPolicy action.

", + "refs": { + } + }, + "SignalResourceInput": { + "base": "

The input for the SignalResource action.

", + "refs": { + } + }, + "Stack": { + "base": "

The Stack data type.

", + "refs": { + "Stacks$member": null + } + }, + "StackEvent": { + "base": "

The StackEvent data type.

", + "refs": { + "StackEvents$member": null + } + }, + "StackEvents": { + "base": null, + "refs": { + "DescribeStackEventsOutput$StackEvents": "

A list of StackEvents structures.

" + } + }, + "StackId": { + "base": null, + "refs": { + "CreateStackOutput$StackId": "

Unique identifier of the stack.

", + "Stack$StackId": "

Unique identifier of the stack.

", + "StackEvent$StackId": "

The unique ID name of the instance of the stack.

", + "StackResource$StackId": "

Unique identifier of the stack.

", + "StackResourceDetail$StackId": "

Unique identifier of the stack.

", + "StackSummary$StackId": "

Unique stack identifier.

", + "UpdateStackOutput$StackId": "

Unique identifier of the stack.

" + } + }, + "StackName": { + "base": null, + "refs": { + "CancelUpdateStackInput$StackName": "

The name or the unique stack ID that is associated with the stack.

", + "CreateStackInput$StackName": "

The name that is associated with the stack. The name must be unique in the region in which you are creating the stack.

A stack name can contain only alphanumeric characters (case sensitive) and hyphens. It must start with an alphabetic character and cannot be longer than 255 characters.", + "DeleteStackInput$StackName": "

The name or the unique stack ID that is associated with the stack.

", + "DescribeStackEventsInput$StackName": "

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.
  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

", + "DescribeStackResourceInput$StackName": "

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.
  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

", + "DescribeStackResourcesInput$StackName": "

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.
  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

Required: Conditional. If you do not specify StackName, you must specify PhysicalResourceId.

", + "DescribeStacksInput$StackName": "

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.
  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

", + "GetStackPolicyInput$StackName": "

The name or unique stack ID that is associated with the stack whose policy you want to get.

", + "GetTemplateInput$StackName": "

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.
  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

", + "ListStackResourcesInput$StackName": "

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.
  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

", + "SetStackPolicyInput$StackName": "

The name or unique stack ID that you want to associate a policy with.

", + "Stack$StackName": "

The name associated with the stack.

", + "StackEvent$StackName": "

The name associated with a stack.

", + "StackResource$StackName": "

The name associated with the stack.

", + "StackResourceDetail$StackName": "

The name associated with the stack.

", + "StackSummary$StackName": "

The name associated with the stack.

", + "UpdateStackInput$StackName": "

The name or unique stack ID of the stack to update.

" + } + }, + "StackNameOrId": { + "base": null, + "refs": { + "GetTemplateSummaryInput$StackName": "

The name or the stack ID that is associated with the stack, which are not always interchangeable. For running stacks, you can specify either the stack's name or its unique stack ID. For deleted stack, you must specify the unique stack ID.

Conditional: You must specify only one of the following parameters: StackName, TemplateBody, or TemplateURL.

", + "SignalResourceInput$StackName": "

The stack name or unique stack ID that includes the resource that you want to signal.

" + } + }, + "StackPolicyBody": { + "base": null, + "refs": { + "CreateStackInput$StackPolicyBody": "

Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

", + "GetStackPolicyOutput$StackPolicyBody": "

Structure containing the stack policy body. (For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide.)

", + "SetStackPolicyInput$StackPolicyBody": "

Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

", + "UpdateStackInput$StackPolicyBody": "

Structure containing a new stack policy body. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

You might update the stack policy, for example, in order to protect a new resource that you created during a stack update. If you do not specify a stack policy, the current policy that is associated with the stack is unchanged.

" + } + }, + "StackPolicyDuringUpdateBody": { + "base": null, + "refs": { + "UpdateStackInput$StackPolicyDuringUpdateBody": "

Structure containing the temporary overriding stack policy body. You can specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL parameter, but not both.

If you want to update protected resources, specify a temporary overriding stack policy during this update. If you do not specify a stack policy, the current policy that is associated with the stack will be used.

" + } + }, + "StackPolicyDuringUpdateURL": { + "base": null, + "refs": { + "UpdateStackInput$StackPolicyDuringUpdateURL": "

Location of a file containing the temporary overriding stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same region as the stack. You can specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL parameter, but not both.

If you want to update protected resources, specify a temporary overriding stack policy during this update. If you do not specify a stack policy, the current policy that is associated with the stack will be used.

" + } + }, + "StackPolicyURL": { + "base": null, + "refs": { + "CreateStackInput$StackPolicyURL": "

Location of a file containing the stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same region as the stack. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

", + "SetStackPolicyInput$StackPolicyURL": "

Location of a file containing the stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same region as the stack. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

", + "UpdateStackInput$StackPolicyURL": "

Location of a file containing the updated stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same region as the stack. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

You might update the stack policy, for example, in order to protect a new resource that you created during a stack update. If you do not specify a stack policy, the current policy that is associated with the stack is unchanged.

" + } + }, + "StackResource": { + "base": "

The StackResource data type.

", + "refs": { + "StackResources$member": null + } + }, + "StackResourceDetail": { + "base": "

Contains detailed information about the specified stack resource.

", + "refs": { + "DescribeStackResourceOutput$StackResourceDetail": "

A StackResourceDetail structure containing the description of the specified resource in the specified stack.

" + } + }, + "StackResourceSummaries": { + "base": null, + "refs": { + "ListStackResourcesOutput$StackResourceSummaries": "

A list of StackResourceSummary structures.

" + } + }, + "StackResourceSummary": { + "base": "

Contains high-level information about the specified stack resource.

", + "refs": { + "StackResourceSummaries$member": null + } + }, + "StackResources": { + "base": null, + "refs": { + "DescribeStackResourcesOutput$StackResources": "

A list of StackResource structures.

" + } + }, + "StackStatus": { + "base": null, + "refs": { + "Stack$StackStatus": "

Current status of the stack.

", + "StackStatusFilter$member": null, + "StackSummary$StackStatus": "

The current status of the stack.

" + } + }, + "StackStatusFilter": { + "base": null, + "refs": { + "ListStacksInput$StackStatusFilter": "

Stack status to use as a filter. Specify one or more stack status codes to list only stacks with the specified status codes. For a complete list of stack status codes, see the StackStatus parameter of the Stack data type.

" + } + }, + "StackStatusReason": { + "base": null, + "refs": { + "Stack$StackStatusReason": "

Success/failure message associated with the stack status.

", + "StackSummary$StackStatusReason": "

Success/Failure message associated with the stack status.

" + } + }, + "StackSummaries": { + "base": null, + "refs": { + "ListStacksOutput$StackSummaries": "

A list of StackSummary structures containing information about the specified stacks.

" + } + }, + "StackSummary": { + "base": "

The StackSummary Data Type

", + "refs": { + "StackSummaries$member": null + } + }, + "Stacks": { + "base": null, + "refs": { + "DescribeStacksOutput$Stacks": "

A list of stack structures.

" + } + }, + "Tag": { + "base": "

The Tag type is used by CreateStack in the Tags parameter. It allows you to specify a key/value pair that can be used to store information related to cost allocation for an AWS CloudFormation stack.

", + "refs": { + "Tags$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "

Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: aws:.

" + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

" + } + }, + "Tags": { + "base": null, + "refs": { + "CreateStackInput$Tags": "

A set of user-defined Tags to associate with this stack, represented by key/value pairs. Tags defined for the stack are propagated to EC2 resources that are created as part of the stack. A maximum number of 10 tags can be specified.

", + "Stack$Tags": "

A list of Tags that specify cost allocation information for the stack.

" + } + }, + "TemplateBody": { + "base": null, + "refs": { + "CreateStackInput$TemplateBody": "

Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. For more information, go to Template Anatomy in the AWS CloudFormation User Guide.

Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.

", + "EstimateTemplateCostInput$TemplateBody": "

Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.)

Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.

", + "GetTemplateOutput$TemplateBody": "

Structure containing the template body. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.)

", + "GetTemplateSummaryInput$TemplateBody": "

Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. For more information about templates, see Template Anatomy in the AWS CloudFormation User Guide.

Conditional: You must specify only one of the following parameters: StackName, TemplateBody, or TemplateURL.

", + "UpdateStackInput$TemplateBody": "

Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.)

Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.

", + "ValidateTemplateInput$TemplateBody": "

Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. For more information, go to Template Anatomy in the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

" + } + }, + "TemplateDescription": { + "base": null, + "refs": { + "StackSummary$TemplateDescription": "

The template description of the template used to create the stack.

" + } + }, + "TemplateParameter": { + "base": "

The TemplateParameter data type.

", + "refs": { + "TemplateParameters$member": null + } + }, + "TemplateParameters": { + "base": null, + "refs": { + "ValidateTemplateOutput$Parameters": "

A list of TemplateParameter structures.

" + } + }, + "TemplateURL": { + "base": null, + "refs": { + "CreateStackInput$TemplateURL": "

Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) located in an S3 bucket in the same region as the stack. For more information, go to the Template Anatomy in the AWS CloudFormation User Guide.

Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.

", + "EstimateTemplateCostInput$TemplateURL": "

Location of file containing the template body. The URL must point to a template located in an S3 bucket in the same region as the stack. For more information, go to Template Anatomy in the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

", + "GetTemplateSummaryInput$TemplateURL": "

Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) located in an Amazon S3 bucket. For more information about templates, see Template Anatomy in the AWS CloudFormation User Guide.

Conditional: You must specify only one of the following parameters: StackName, TemplateBody, or TemplateURL.

", + "UpdateStackInput$TemplateURL": "

Location of file containing the template body. The URL must point to a template located in an S3 bucket in the same region as the stack. For more information, go to Template Anatomy in the AWS CloudFormation User Guide.

Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.

", + "ValidateTemplateInput$TemplateURL": "

Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) located in an S3 bucket in the same region as the stack. For more information, go to Template Anatomy in the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

" + } + }, + "TimeoutMinutes": { + "base": null, + "refs": { + "CreateStackInput$TimeoutInMinutes": "

The amount of time that can pass before the stack status becomes CREATE_FAILED; if DisableRollback is not set or is set to false, the stack will be rolled back.

", + "Stack$TimeoutInMinutes": "

The amount of time within which stack creation should complete.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "StackEvent$Timestamp": "

Time the status was updated.

", + "StackResource$Timestamp": "

Time the status was updated.

", + "StackResourceDetail$LastUpdatedTimestamp": "

Time the status was updated.

", + "StackResourceSummary$LastUpdatedTimestamp": "

Time the status was updated.

" + } + }, + "UpdateStackInput": { + "base": "

The input for UpdateStack action.

", + "refs": { + } + }, + "UpdateStackOutput": { + "base": "

The output for a UpdateStack action.

", + "refs": { + } + }, + "Url": { + "base": null, + "refs": { + "EstimateTemplateCostOutput$Url": "

An AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.

" + } + }, + "UsePreviousTemplate": { + "base": null, + "refs": { + "UpdateStackInput$UsePreviousTemplate": "

Reuse the existing template that is associated with the stack that you are updating.

" + } + }, + "UsePreviousValue": { + "base": null, + "refs": { + "Parameter$UsePreviousValue": "

During a stack update, use the existing parameter value that the stack is using for a given parameter key. If you specify true, do not specify a parameter value.

" + } + }, + "ValidateTemplateInput": { + "base": "

The input for ValidateTemplate action.

", + "refs": { + } + }, + "ValidateTemplateOutput": { + "base": "

The output for ValidateTemplate action.

", + "refs": { + } + }, + "Version": { + "base": null, + "refs": { + "GetTemplateSummaryOutput$Version": "

The AWS template format version, which identifies the capabilities of the template.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/waiters-2.json new file mode 100644 index 000000000..8daeb7c76 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/cloudformation/2010-05-15/waiters-2.json @@ -0,0 +1,70 @@ +{ + "version": 2, + "waiters": { + "StackCreateComplete": { + "delay": 30, + "operation": "DescribeStacks", + "maxAttempts": 50, + "description": "Wait until stack status is CREATE_COMPLETE.", + "acceptors": [ + { + "expected": "CREATE_COMPLETE", + "matcher": "pathAll", + "state": "success", + "argument": "Stacks[].StackStatus" + }, + { + "expected": "CREATE_FAILED", + "matcher": "pathAny", + "state": "failure", + "argument": "Stacks[].StackStatus" + } + ] + }, + "StackDeleteComplete": { + "delay": 30, + "operation": "DescribeStacks", + "maxAttempts": 25, + "description": "Wait until stack status is DELETE_COMPLETE.", + "acceptors": [ + { + "expected": "DELETE_COMPLETE", + "matcher": "pathAll", + "state": "success", + "argument": "Stacks[].StackStatus" + }, + { + "expected": "ValidationError", + "matcher": "error", + "state": "success" + }, + { + "expected": "DELETE_FAILED", + "matcher": "pathAny", + "state": "failure", + "argument": "Stacks[].StackStatus" + } + ] + }, + "StackUpdateComplete": { + "delay": 30, + "operation": "DescribeStacks", + "maxAttempts": 5, + "description": "Wait until stack status is UPDATE_COMPLETE.", + "acceptors": [ + { + "expected": "UPDATE_COMPLETE", + "matcher": "pathAll", + "state": "success", + "argument": "Stacks[].StackStatus" + }, + { + "expected": "UPDATE_FAILED", + "matcher": "pathAny", + "state": "failure", + "argument": "Stacks[].StackStatus" + } + ] + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-04-17/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudfront/2015-04-17/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-04-17/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudfront/2015-04-17/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-04-17/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudfront/2015-04-17/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-04-17/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudfront/2015-04-17/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-04-17/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudfront/2015-04-17/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-04-17/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudfront/2015-04-17/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-04-17/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudfront/2015-04-17/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-04-17/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudfront/2015-04-17/waiters-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudhsm/2014-05-30/api-2.json similarity index 75% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudhsm/2014-05-30/api-2.json index d4cfcbaf6..3df5d7656 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/cloudhsm/2014-05-30/api-2.json @@ -4,27 +4,13 @@ "apiVersion":"2014-05-30", "endpointPrefix":"cloudhsm", "jsonVersion":"1.1", - "protocol":"json", "serviceAbbreviation":"CloudHSM", "serviceFullName":"Amazon CloudHSM", "signatureVersion":"v4", - "targetPrefix":"CloudHsmFrontendService" + "targetPrefix":"CloudHsmFrontendService", + "protocol":"json" }, "operations":{ - "AddTagsToResource":{ - "name":"AddTagsToResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddTagsToResourceRequest"}, - "output":{"shape":"AddTagsToResourceResponse"}, - "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} - ] - }, "CreateHapg":{ "name":"CreateHapg", "http":{ @@ -34,9 +20,19 @@ "input":{"shape":"CreateHapgRequest"}, "output":{"shape":"CreateHapgResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "CreateHsm":{ @@ -45,12 +41,25 @@ "method":"POST", "requestUri":"/" }, - "input":{"shape":"CreateHsmRequest"}, + "input":{ + "shape":"CreateHsmRequest", + "locationName":"CreateHsmRequest" + }, "output":{"shape":"CreateHsmResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "CreateLunaClient":{ @@ -62,9 +71,19 @@ "input":{"shape":"CreateLunaClientRequest"}, "output":{"shape":"CreateLunaClientResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "DeleteHapg":{ @@ -76,9 +95,19 @@ "input":{"shape":"DeleteHapgRequest"}, "output":{"shape":"DeleteHapgResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "DeleteHsm":{ @@ -87,12 +116,25 @@ "method":"POST", "requestUri":"/" }, - "input":{"shape":"DeleteHsmRequest"}, + "input":{ + "shape":"DeleteHsmRequest", + "locationName":"DeleteHsmRequest" + }, "output":{"shape":"DeleteHsmResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "DeleteLunaClient":{ @@ -104,9 +146,19 @@ "input":{"shape":"DeleteLunaClientRequest"}, "output":{"shape":"DeleteLunaClientResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "DescribeHapg":{ @@ -118,9 +170,19 @@ "input":{"shape":"DescribeHapgRequest"}, "output":{"shape":"DescribeHapgResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "DescribeHsm":{ @@ -132,9 +194,19 @@ "input":{"shape":"DescribeHsmRequest"}, "output":{"shape":"DescribeHsmResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "DescribeLunaClient":{ @@ -146,9 +218,19 @@ "input":{"shape":"DescribeLunaClientRequest"}, "output":{"shape":"DescribeLunaClientResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "GetConfig":{ @@ -160,9 +242,19 @@ "input":{"shape":"GetConfigRequest"}, "output":{"shape":"GetConfigResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ListAvailableZones":{ @@ -174,9 +266,19 @@ "input":{"shape":"ListAvailableZonesRequest"}, "output":{"shape":"ListAvailableZonesResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ListHapgs":{ @@ -188,9 +290,19 @@ "input":{"shape":"ListHapgsRequest"}, "output":{"shape":"ListHapgsResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ListHsms":{ @@ -202,9 +314,19 @@ "input":{"shape":"ListHsmsRequest"}, "output":{"shape":"ListHsmsResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ListLunaClients":{ @@ -216,23 +338,19 @@ "input":{"shape":"ListLunaClientsRequest"}, "output":{"shape":"ListLunaClientsResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceRequest"}, - "output":{"shape":"ListTagsForResourceResponse"}, - "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ModifyHapg":{ @@ -244,9 +362,19 @@ "input":{"shape":"ModifyHapgRequest"}, "output":{"shape":"ModifyHapgResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ModifyHsm":{ @@ -255,12 +383,25 @@ "method":"POST", "requestUri":"/" }, - "input":{"shape":"ModifyHsmRequest"}, + "input":{ + "shape":"ModifyHsmRequest", + "locationName":"ModifyHsmRequest" + }, "output":{"shape":"ModifyHsmResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + }, + { + "shape":"CloudHsmInternalException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ModifyLunaClient":{ @@ -272,21 +413,10 @@ "input":{"shape":"ModifyLunaClientRequest"}, "output":{"shape":"ModifyLunaClientResponse"}, "errors":[ - {"shape":"CloudHsmServiceException"} - ] - }, - "RemoveTagsFromResource":{ - "name":"RemoveTagsFromResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTagsFromResourceRequest"}, - "output":{"shape":"RemoveTagsFromResourceResponse"}, - "errors":[ - {"shape":"CloudHsmServiceException"}, - {"shape":"CloudHsmInternalException"}, - {"shape":"InvalidRequestException"} + { + "shape":"CloudHsmServiceException", + "exception":true + } ] } }, @@ -299,29 +429,11 @@ "type":"list", "member":{"shape":"AZ"} }, - "AddTagsToResourceRequest":{ - "type":"structure", - "required":[ - "ResourceArn", - "TagList" - ], - "members":{ - "ResourceArn":{"shape":"String"}, - "TagList":{"shape":"TagList"} - } - }, - "AddTagsToResourceResponse":{ - "type":"structure", - "required":["Status"], - "members":{ - "Status":{"shape":"String"} - } - }, "Boolean":{"type":"boolean"}, "Certificate":{ "type":"string", - "max":2400, "min":600, + "max":2400, "pattern":"[\\w :+=./\\n-]*" }, "CertificateFingerprint":{ @@ -699,20 +811,6 @@ "NextToken":{"shape":"PaginationToken"} } }, - "ListTagsForResourceRequest":{ - "type":"structure", - "required":["ResourceArn"], - "members":{ - "ResourceArn":{"shape":"String"} - } - }, - "ListTagsForResourceResponse":{ - "type":"structure", - "required":["TagList"], - "members":{ - "TagList":{"shape":"TagList"} - } - }, "ModifyHapgRequest":{ "type":"structure", "required":["HapgArn"], @@ -796,30 +894,12 @@ }, "PartitionSerial":{ "type":"string", - "pattern":"\\d{6,12}" + "pattern":"\\d{9}" }, "PartitionSerialList":{ "type":"list", "member":{"shape":"PartitionSerial"} }, - "RemoveTagsFromResourceRequest":{ - "type":"structure", - "required":[ - "ResourceArn", - "TagKeyList" - ], - "members":{ - "ResourceArn":{"shape":"String"}, - "TagKeyList":{"shape":"TagKeyList"} - } - }, - "RemoveTagsFromResourceResponse":{ - "type":"structure", - "required":["Status"], - "members":{ - "Status":{"shape":"String"} - } - }, "SshKey":{ "type":"string", "pattern":"[a-zA-Z0-9+/= ._:\\\\@-]*" @@ -836,35 +916,6 @@ "type":"string", "enum":["PRODUCTION"] }, - "Tag":{ - "type":"structure", - "required":[ - "Key", - "Value" - ], - "members":{ - "Key":{"shape":"TagKey"}, - "Value":{"shape":"TagValue"} - } - }, - "TagKey":{ - "type":"string", - "max":128, - "min":1 - }, - "TagKeyList":{ - "type":"list", - "member":{"shape":"TagKey"} - }, - "TagList":{ - "type":"list", - "member":{"shape":"Tag"} - }, - "TagValue":{ - "type":"string", - "max":256, - "min":0 - }, "Timestamp":{ "type":"string", "pattern":"\\d*" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudhsm/2014-05-30/docs-2.json similarity index 82% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudhsm/2014-05-30/docs-2.json index 2a4f88482..05d3b5f45 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/cloudhsm/2014-05-30/docs-2.json @@ -1,10 +1,8 @@ { "version": "2.0", - "service": "AWS CloudHSM Service", "operations": { - "AddTagsToResource": "

Adds or overwrites one or more tags for the specified AWS CloudHSM resource.

Each tag consists of a key and a value. Tag keys must be unique to each resource.

", "CreateHapg": "

Creates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.

", - "CreateHsm": "

Creates an uninitialized HSM instance.

There is an upfront fee charged for each HSM instance that you create with the CreateHsm operation. If you accidentally provision an HSM and want to request a refund, delete the instance using the DeleteHsm operation, go to the AWS Support Center, create a new case, and select Account and Billing Support.

It can take up to 20 minutes to create and provision an HSM. You can monitor the status of the HSM with the DescribeHsm operation. The HSM is ready to be initialized when the status changes to RUNNING.

", + "CreateHsm": "

Creates an uninitialized HSM instance.

There is an upfront fee charged for each HSM instance that you create with the CreateHsm operation. If you accidentally provision an HSM and want to request a refund, delete the instance using the DeleteHsm operation, go to the AWS Support Center, create a new case, and select Account and Billing Support.

It can take up to 20 minutes to create and provision an HSM. You can monitor the status of the HSM with the DescribeHsm operation. The HSM is ready to be initialized when the status changes to RUNNING.

", "CreateLunaClient": "

Creates an HSM client.

", "DeleteHapg": "

Deletes a high-availability partition group.

", "DeleteHsm": "

Deletes an HSM. After completion, this operation cannot be undone and your key material cannot be recovered.

", @@ -17,12 +15,11 @@ "ListHapgs": "

Lists the high-availability partition groups for the account.

This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHapgs to retrieve the next set of items.

", "ListHsms": "

Retrieves the identifiers of all of the HSMs provisioned for the current customer.

This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHsms to retrieve the next set of items.

", "ListLunaClients": "

Lists all of the clients.

This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListLunaClients to retrieve the next set of items.

", - "ListTagsForResource": "

Returns a list of all tags for the specified AWS CloudHSM resource.

", "ModifyHapg": "

Modifies an existing high-availability partition group.

", - "ModifyHsm": "

Modifies an HSM.

This operation can result in the HSM being offline for up to 15 minutes while the AWS CloudHSM service is reconfigured. If you are modifying a production HSM, you should ensure that your AWS CloudHSM service is configured for high availability, and consider executing this operation during a maintenance window.

", - "ModifyLunaClient": "

Modifies the certificate used by the client.

This action can potentially start a workflow to install the new certificate on the client's HSMs.

", - "RemoveTagsFromResource": "

Removes one or more tags from the specified AWS CloudHSM resource.

To remove a tag, specify only the tag key to remove (not the value). To overwrite the value for an existing tag, use AddTagsToResource.

" + "ModifyHsm": "

Modifies an HSM.

This operation can result in the HSM being offline for up to 15 minutes while the AWS CloudHSM service is reconfigured. If you are modifying a production HSM, you should ensure that your AWS CloudHSM service is configured for high availability, and consider executing this operation during a maintenance window.

", + "ModifyLunaClient": "

Modifies the certificate used by the client.

This action can potentially start a workflow to install the new certificate on the client's HSMs.

" }, + "service": "AWS CloudHSM Service", "shapes": { "AZ": { "base": null, @@ -37,16 +34,6 @@ "ListAvailableZonesResponse$AZList": "

The list of Availability Zones that have available AWS CloudHSM capacity.

" } }, - "AddTagsToResourceRequest": { - "base": null, - "refs": { - } - }, - "AddTagsToResourceResponse": { - "base": null, - "refs": { - } - }, "Boolean": { "base": null, "refs": { @@ -58,7 +45,7 @@ "refs": { "CreateLunaClientRequest$Certificate": "

The contents of a Base64-Encoded X.509 v3 certificate to be installed on the HSMs used by this client.

", "DescribeLunaClientResponse$Certificate": "

The certificate installed on the HSMs used by this client.

", - "ModifyLunaClientRequest$Certificate": "

The new certificate for the client.

" + "ModifyLunaClientRequest$Certificate": "

The new certificate for the client.

" } }, "CertificateFingerprint": { @@ -132,7 +119,7 @@ } }, "CreateHsmRequest": { - "base": "

Contains the inputs for the CreateHsm operation.

", + "base": "

Contains the inputs for the CreateHsm operation.

", "refs": { } }, @@ -162,7 +149,7 @@ } }, "DeleteHsmRequest": { - "base": "

Contains the inputs for the DeleteHsm operation.

", + "base": "

Contains the inputs for the DeleteHsm operation.

", "refs": { } }, @@ -320,7 +307,7 @@ } }, "ListAvailableZonesRequest": { - "base": "

Contains the inputs for the ListAvailableZones action.

", + "base": "

Contains the inputs for the ListAvailableZones action.

", "refs": { } }, @@ -359,16 +346,6 @@ "refs": { } }, - "ListTagsForResourceRequest": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceResponse": { - "base": null, - "refs": { - } - }, "ModifyHapgRequest": { "base": null, "refs": { @@ -380,7 +357,7 @@ } }, "ModifyHsmRequest": { - "base": "

Contains the inputs for the ModifyHsm operation.

", + "base": "

Contains the inputs for the ModifyHsm operation.

", "refs": { } }, @@ -435,16 +412,6 @@ "ModifyHapgRequest$PartitionSerialList": "

The list of partition serial numbers to make members of the high-availability partition group.

" } }, - "RemoveTagsFromResourceRequest": { - "base": null, - "refs": { - } - }, - "RemoveTagsFromResourceResponse": { - "base": null, - "refs": { - } - }, "SshKey": { "base": null, "refs": { @@ -455,8 +422,6 @@ "String": { "base": null, "refs": { - "AddTagsToResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.

", - "AddTagsToResourceResponse$Status": "

The status of the operation.

", "CloudHsmServiceException$message": "

Additional information about the error.

", "DeleteHapgResponse$Status": "

The status of the action.

", "DeleteHsmResponse$Status": "

The status of the operation.

", @@ -469,10 +434,7 @@ "DescribeHsmResponse$ServerCertUri": "

The URI of the certificate server.

", "GetConfigResponse$ConfigType": "

The type of credentials.

", "GetConfigResponse$ConfigFile": "

The chrystoki.conf configuration file.

", - "GetConfigResponse$ConfigCred": "

The certificate file containing the server.pem files of the HSMs.

", - "ListTagsForResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the AWS CloudHSM resource.

", - "RemoveTagsFromResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the AWS CloudHSM resource.

", - "RemoveTagsFromResourceResponse$Status": "

The status of the operation.

" + "GetConfigResponse$ConfigCred": "

The certificate file containing the server.pem files of the HSMs.

" } }, "SubnetId": { @@ -484,44 +446,12 @@ } }, "SubscriptionType": { - "base": "

Specifies the type of subscription for the HSM.

  • PRODUCTION - The HSM is being used in a production environment.
  • TRIAL - The HSM is being used in a product trial.
", + "base": "

Specifies the type of subscription for the HSM.

  • PRODUCTION - The HSM is being used in a production environment.
  • TRIAL - The HSM is being used in a product trial.
", "refs": { "CreateHsmRequest$SubscriptionType": null, "DescribeHsmResponse$SubscriptionType": null } }, - "Tag": { - "base": "

A key-value pair that identifies or specifies metadata about an AWS CloudHSM resource.

", - "refs": { - "TagList$member": null - } - }, - "TagKey": { - "base": null, - "refs": { - "Tag$Key": "

The key of the tag.

", - "TagKeyList$member": null - } - }, - "TagKeyList": { - "base": null, - "refs": { - "RemoveTagsFromResourceRequest$TagKeyList": "

The tag key or keys to remove.

Specify only the tag key to remove (not the value). To overwrite the value for an existing tag, use AddTagsToResource.

" - } - }, - "TagList": { - "base": null, - "refs": { - "AddTagsToResourceRequest$TagList": "

One or more tags.

", - "ListTagsForResourceResponse$TagList": "

One or more tags.

" - } - }, - "TagValue": { - "base": null, - "refs": { - "Tag$Value": "

The value of the tag.

" - } - }, "Timestamp": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudsearch/2013-01-01/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudsearch/2013-01-01/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudsearch/2013-01-01/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudsearch/2013-01-01/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudsearch/2013-01-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudsearch/2013-01-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudsearchdomain/2013-01-01/api-2.json similarity index 89% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudsearchdomain/2013-01-01/api-2.json index 3d36fc2b3..b6f262b04 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/cloudsearchdomain/2013-01-01/api-2.json @@ -4,10 +4,10 @@ "apiVersion":"2013-01-01", "endpointPrefix":"cloudsearchdomain", "jsonVersion":"1.1", - "protocol":"rest-json", "serviceFullName":"Amazon CloudSearch Domain", "signatureVersion":"v4", - "signingName":"cloudsearch" + "signingName":"cloudsearch", + "protocol":"rest-json" }, "operations":{ "Search":{ @@ -19,7 +19,10 @@ "input":{"shape":"SearchRequest"}, "output":{"shape":"SearchResponse"}, "errors":[ - {"shape":"SearchException"} + { + "shape":"SearchException", + "exception":true + } ] }, "Suggest":{ @@ -31,7 +34,10 @@ "input":{"shape":"SuggestRequest"}, "output":{"shape":"SuggestResponse"}, "errors":[ - {"shape":"SearchException"} + { + "shape":"SearchException", + "exception":true + } ] }, "UploadDocuments":{ @@ -43,7 +49,10 @@ "input":{"shape":"UploadDocumentsRequest"}, "output":{"shape":"UploadDocumentsResponse"}, "errors":[ - {"shape":"DocumentServiceException"} + { + "shape":"DocumentServiceException", + "exception":true + } ] } }, @@ -97,7 +106,6 @@ "type":"list", "member":{"shape":"DocumentServiceWarning"} }, - "Double":{"type":"double"}, "Expr":{"type":"string"}, "Exprs":{ "type":"map", @@ -110,19 +118,6 @@ "key":{"shape":"String"}, "value":{"shape":"BucketInfo"} }, - "FieldStats":{ - "type":"structure", - "members":{ - "min":{"shape":"String"}, - "max":{"shape":"String"}, - "count":{"shape":"Long"}, - "missing":{"shape":"Long"}, - "sum":{"shape":"Double"}, - "sumOfSquares":{"shape":"Double"}, - "mean":{"shape":"String"}, - "stddev":{"shape":"Double"} - } - }, "FieldValue":{ "type":"list", "member":{"shape":"String"} @@ -250,11 +245,6 @@ "shape":"Start", "location":"querystring", "locationName":"start" - }, - "stats":{ - "shape":"Stat", - "location":"querystring", - "locationName":"stats" } } }, @@ -263,8 +253,7 @@ "members":{ "status":{"shape":"SearchStatus"}, "hits":{"shape":"Hits"}, - "facets":{"shape":"Facets"}, - "stats":{"shape":"Stats"} + "facets":{"shape":"Facets"} } }, "SearchStatus":{ @@ -277,12 +266,6 @@ "Size":{"type":"long"}, "Sort":{"type":"string"}, "Start":{"type":"long"}, - "Stat":{"type":"string"}, - "Stats":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"FieldStats"} - }, "String":{"type":"string"}, "SuggestModel":{ "type":"structure", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudsearchdomain/2013-01-01/docs-2.json similarity index 70% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudsearchdomain/2013-01-01/docs-2.json index 4c30ea45c..25b27928e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/cloudsearchdomain/2013-01-01/docs-2.json @@ -1,11 +1,11 @@ { "version": "2.0", - "service": "

You use the AmazonCloudSearch2013 API to upload documents to a search domain and search those documents.

The endpoints for submitting UploadDocuments, Search, and Suggest requests are domain-specific. To get the endpoints for your domain, use the Amazon CloudSearch configuration service DescribeDomains action. The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. You submit suggest requests to the search endpoint.

For more information, see the Amazon CloudSearch Developer Guide.

", "operations": { - "Search": "

Retrieves a list of documents that match the specified search criteria. How you specify the search criteria depends on which query parser you use. Amazon CloudSearch supports four query parsers:

  • simple: search all text and text-array fields for the specified string. Search for phrases, individual terms, and prefixes.
  • structured: search specific fields, construct compound queries using Boolean operators, and use advanced features such as term boosting and proximity searching.
  • lucene: specify search criteria using the Apache Lucene query parser syntax.
  • dismax: specify search criteria using the simplified subset of the Apache Lucene query parser syntax defined by the DisMax query parser.

For more information, see Searching Your Data in the Amazon CloudSearch Developer Guide.

The endpoint for submitting Search requests is domain-specific. You submit search requests to a domain's search endpoint. To get the search endpoint for your domain, use the Amazon CloudSearch configuration service DescribeDomains action. A domain's endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console.

", + "Search": "

Retrieves a list of documents that match the specified search criteria. How you specify the search criteria depends on which query parser you use. Amazon CloudSearch supports four query parsers:

  • simple: search all text and text-array fields for the specified string. Search for phrases, individual terms, and prefixes.
  • structured: search specific fields, construct compound queries using Boolean operators, and use advanced features such as term boosting and proximity searching.
  • lucene: specify search criteria using the Apache Lucene query parser syntax.
  • dismax: specify search criteria using the simplified subset of the Apache Lucene query parser syntax defined by the DisMax query parser.

For more information, see Searching Your Data in the Amazon CloudSearch Developer Guide.

The endpoint for submitting Search requests is domain-specific. You submit search requests to a domain's search endpoint. To get the search endpoint for your domain, use the Amazon CloudSearch configuration service DescribeDomains action. A domain's endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console.

", "Suggest": "

Retrieves autocomplete suggestions for a partial query string. You can use suggestions enable you to display likely matches before users finish typing. In Amazon CloudSearch, suggestions are based on the contents of a particular text field. When you request suggestions, Amazon CloudSearch finds all of the documents whose values in the suggester field start with the specified query string. The beginning of the field must match the query string to be considered a match.

For more information about configuring suggesters and retrieving suggestions, see Getting Suggestions in the Amazon CloudSearch Developer Guide.

The endpoint for submitting Suggest requests is domain-specific. You submit suggest requests to a domain's search endpoint. To get the search endpoint for your domain, use the Amazon CloudSearch configuration service DescribeDomains action. A domain's endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console.

", "UploadDocuments": "

Posts a batch of documents to a search domain for indexing. A document batch is a collection of add and delete operations that represent the documents you want to add, update, or delete from your domain. Batches can be described in either JSON or XML. Each item that you want Amazon CloudSearch to return as a search result (such as a product) is represented as a document. Every document has a unique ID and one or more fields that contain the data that you want to search and return in results. Individual documents cannot contain more than 1 MB of data. The entire batch cannot exceed 5 MB. To get the best possible upload performance, group add and delete operations in batches that are close the 5 MB limit. Submitting a large volume of single-document batches can overload a domain's document service.

The endpoint for submitting UploadDocuments requests is domain-specific. To get the document endpoint for your domain, use the Amazon CloudSearch configuration service DescribeDomains action. A domain's endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console.

For more information about formatting your data for Amazon CloudSearch, see Preparing Your Data in the Amazon CloudSearch Developer Guide. For more information about uploading data for indexing, see Uploading Data in the Amazon CloudSearch Developer Guide.

" }, + "service": "

You use the AmazonCloudSearch2013 API to upload documents to a search domain and search those documents.

The endpoints for submitting UploadDocuments, Search, and Suggest requests are domain-specific. To get the endpoints for your domain, use the Amazon CloudSearch configuration service DescribeDomains action. The domain endpoints are also displayed on the domain dashboard in the Amazon CloudSearch console. You submit suggest requests to the search endpoint.

For more information, see the Amazon CloudSearch Developer Guide.

", "shapes": { "Adds": { "base": null, @@ -72,14 +72,6 @@ "UploadDocumentsResponse$warnings": "

Any warnings returned by the document service about the documents being uploaded.

" } }, - "Double": { - "base": null, - "refs": { - "FieldStats$sum": "

The sum of the field values across the documents in the result set. null for date fields.

", - "FieldStats$sumOfSquares": "

The sum of all field values in the result set squared.

", - "FieldStats$stddev": "

The standard deviation of the values in the specified field in the result set.

" - } - }, "Expr": { "base": null, "refs": { @@ -104,12 +96,6 @@ "SearchResponse$facets": "

The requested facet information.

" } }, - "FieldStats": { - "base": "

The statistics for a field calculated in the request.

", - "refs": { - "Stats$value": null - } - }, "FieldValue": { "base": null, "refs": { @@ -162,8 +148,6 @@ "base": null, "refs": { "Bucket$count": "

The number of hits that contain the facet value in the specified facet field.

", - "FieldStats$count": "

The number of documents that contain a value in the specified field in the result set.

", - "FieldStats$missing": "

The number of documents that do not contain a value in the specified field in the result set.

", "Hits$found": "

The total number of documents that match the search request.

", "Hits$start": "

The index of the first matching document.

", "SearchStatus$timems": "

How long it took to process the request, in milliseconds.

", @@ -188,7 +172,7 @@ "QueryOptions": { "base": null, "refs": { - "SearchRequest$queryOptions": "

Configures options for the query parser specified in the queryParser parameter. You specify the options in JSON using the following form {\"OPTION1\":\"VALUE1\",\"OPTION2\":VALUE2\"...\"OPTIONN\":\"VALUEN\"}.

The options you can configure vary according to which parser you use:

  • defaultOperator: The default operator used to combine individual terms in the search string. For example: defaultOperator: 'or'. For the dismax parser, you specify a percentage that represents the percentage of terms in the search string (rounded down) that must match, rather than a default operator. A value of 0% is the equivalent to OR, and a value of 100% is equivalent to AND. The percentage must be specified as a value in the range 0-100 followed by the percent (%) symbol. For example, defaultOperator: 50%. Valid values: and, or, a percentage in the range 0%-100% (dismax). Default: and (simple, structured, lucene) or 100 (dismax). Valid for: simple, structured, lucene, and dismax.
  • fields: An array of the fields to search when no fields are specified in a search. If no fields are specified in a search and this option is not specified, all text and text-array fields are searched. You can specify a weight for each field to control the relative importance of each field when Amazon CloudSearch calculates relevance scores. To specify a field weight, append a caret (^) symbol and the weight to the field name. For example, to boost the importance of the title field over the description field you could specify: \"fields\":[\"title^5\",\"description\"]. Valid values: The name of any configured field and an optional numeric value greater than zero. Default: All text and text-array fields. Valid for: simple, structured, lucene, and dismax.
  • operators: An array of the operators or special characters you want to disable for the simple query parser. If you disable the and, or, or not operators, the corresponding operators (+, |, -) have no special meaning and are dropped from the search string. Similarly, disabling prefix disables the wildcard operator (*) and disabling phrase disables the ability to search for phrases by enclosing phrases in double quotes. Disabling precedence disables the ability to control order of precedence using parentheses. Disabling near disables the ability to use the ~ operator to perform a sloppy phrase search. Disabling the fuzzy operator disables the ability to use the ~ operator to perform a fuzzy search. escape disables the ability to use a backslash (\\) to escape special characters within the search string. Disabling whitespace is an advanced option that prevents the parser from tokenizing on whitespace, which can be useful for Vietnamese. (It prevents Vietnamese words from being split incorrectly.) For example, you could disable all operators other than the phrase operator to support just simple term and phrase queries: \"operators\":[\"and\",\"not\",\"or\", \"prefix\"]. Valid values: and, escape, fuzzy, near, not, or, phrase, precedence, prefix, whitespace. Default: All operators and special characters are enabled. Valid for: simple.
  • phraseFields: An array of the text or text-array fields you want to use for phrase searches. When the terms in the search string appear in close proximity within a field, the field scores higher. You can specify a weight for each field to boost that score. The phraseSlop option controls how much the matches can deviate from the search string and still be boosted. To specify a field weight, append a caret (^) symbol and the weight to the field name. For example, to boost phrase matches in the title field over the abstract field, you could specify: \"phraseFields\":[\"title^3\", \"plot\"] Valid values: The name of any text or text-array field and an optional numeric value greater than zero. Default: No fields. If you don't specify any fields with phraseFields, proximity scoring is disabled even if phraseSlop is specified. Valid for: dismax.
  • phraseSlop: An integer value that specifies how much matches can deviate from the search phrase and still be boosted according to the weights specified in the phraseFields option; for example, phraseSlop: 2. You must also specify phraseFields to enable proximity scoring. Valid values: positive integers. Default: 0. Valid for: dismax.
  • explicitPhraseSlop: An integer value that specifies how much a match can deviate from the search phrase when the phrase is enclosed in double quotes in the search string. (Phrases that exceed this proximity distance are not considered a match.) For example, to specify a slop of three for dismax phrase queries, you would specify \"explicitPhraseSlop\":3. Valid values: positive integers. Default: 0. Valid for: dismax.
  • tieBreaker: When a term in the search string is found in a document's field, a score is calculated for that field based on how common the word is in that field compared to other documents. If the term occurs in multiple fields within a document, by default only the highest scoring field contributes to the document's overall score. You can specify a tieBreaker value to enable the matches in lower-scoring fields to contribute to the document's score. That way, if two documents have the same max field score for a particular term, the score for the document that has matches in more fields will be higher. The formula for calculating the score with a tieBreaker is (max field score) + (tieBreaker) * (sum of the scores for the rest of the matching fields). Set tieBreaker to 0 to disregard all but the highest scoring field (pure max): \"tieBreaker\":0. Set to 1 to sum the scores from all fields (pure sum): \"tieBreaker\":1. Valid values: 0.0 to 1.0. Default: 0.0. Valid for: dismax.
" + "SearchRequest$queryOptions": "

Configures options for the query parser specified in the queryParser parameter. You specify the options in JSON using the following form {\"OPTION1\":\"VALUE1\",\"OPTION2\":VALUE2\"...\"OPTIONN\":\"VALUEN\"}.

The options you can configure vary according to which parser you use:

  • defaultOperator: The default operator used to combine individual terms in the search string. For example: defaultOperator: 'or'. For the dismax parser, you specify a percentage that represents the percentage of terms in the search string (rounded down) that must match, rather than a default operator. A value of 0% is the equivalent to OR, and a value of 100% is equivalent to AND. The percentage must be specified as a value in the range 0-100 followed by the percent (%) symbol. For example, defaultOperator: 50%. Valid values: and, or, a percentage in the range 0%-100% (dismax). Default: and (simple, structured, lucene) or 100 (dismax). Valid for: simple, structured, lucene, and dismax.
  • fields: An array of the fields to search when no fields are specified in a search. If no fields are specified in a search and this option is not specified, all text and text-array fields are searched. You can specify a weight for each field to control the relative importance of each field when Amazon CloudSearch calculates relevance scores. To specify a field weight, append a caret (^) symbol and the weight to the field name. For example, to boost the importance of the title field over the description field you could specify: \"fields\":[\"title^5\",\"description\"]. Valid values: The name of any configured field and an optional numeric value greater than zero. Default: All text and text-array fields. Valid for: simple, structured, lucene, and dismax.
  • operators: An array of the operators or special characters you want to disable for the simple query parser. If you disable the and, or, or not operators, the corresponding operators (+, |, -) have no special meaning and are dropped from the search string. Similarly, disabling prefix disables the wildcard operator (*) and disabling phrase disables the ability to search for phrases by enclosing phrases in double quotes. Disabling precedence disables the ability to control order of precedence using parentheses. Disabling near disables the ability to use the ~ operator to perform a sloppy phrase search. Disabling the fuzzy operator disables the ability to use the ~ operator to perform a fuzzy search. escape disables the ability to use a backslash (\\) to escape special characters within the search string. Disabling whitespace is an advanced option that prevents the parser from tokenizing on whitespace, which can be useful for Vietnamese. (It prevents Vietnamese words from being split incorrectly.) For example, you could disable all operators other than the phrase operator to support just simple term and phrase queries: \"operators\":[\"and\",\"not\",\"or\", \"prefix\"]. Valid values: and, escape, fuzzy, near, not, or, phrase, precedence, prefix, whitespace. Default: All operators and special characters are enabled. Valid for: simple.
  • phraseFields: An array of the text or text-array fields you want to use for phrase searches. When the terms in the search string appear in close proximity within a field, the field scores higher. You can specify a weight for each field to boost that score. The phraseSlop option controls how much the matches can deviate from the search string and still be boosted. To specify a field weight, append a caret (^) symbol and the weight to the field name. For example, to boost phrase matches in the title field over the abstract field, you could specify: \"phraseFields\":[\"title^3\", \"plot\"] Valid values: The name of any text or text-array field and an optional numeric value greater than zero. Default: No fields. If you don't specify any fields with phraseFields, proximity scoring is disabled even if phraseSlop is specified. Valid for: dismax.
  • phraseSlop: An integer value that specifies how much matches can deviate from the search phrase and still be boosted according to the weights specified in the phraseFields option; for example, phraseSlop: 2. You must also specify phraseFields to enable proximity scoring. Valid values: positive integers. Default: 0. Valid for: dismax.
  • explicitPhraseSlop: An integer value that specifies how much a match can deviate from the search phrase when the phrase is enclosed in double quotes in the search string. (Phrases that exceed this proximity distance are not considered a match.) For example, to specify a slop of three for dismax phrase queries, you would specify \"explicitPhraseSlop\":3. Valid values: positive integers. Default: 0. Valid for: dismax.
  • tieBreaker: When a term in the search string is found in a document's field, a score is calculated for that field based on how common the word is in that field compared to other documents. If the term occurs in multiple fields within a document, by default only the highest scoring field contributes to the document's overall score. You can specify a tieBreaker value to enable the matches in lower-scoring fields to contribute to the document's score. That way, if two documents have the same max field score for a particular term, the score for the document that has matches in more fields will be higher. The formula for calculating the score with a tieBreaker is (max field score) + (tieBreaker) * (sum of the scores for the rest of the matching fields). Set tieBreaker to 0 to disregard all but the highest scoring field (pure max): \"tieBreaker\":0. Set to 1 to sum the scores from all fields (pure sum): \"tieBreaker\":1. Valid values: 0.0 to 1.0. Default: 0.0. Valid for: dismax.
" } }, "QueryParser": { @@ -242,18 +226,6 @@ "SearchRequest$start": "

Specifies the offset of the first search hit you want to return. Note that the result set is zero-based; the first result is at index 0. You can specify either the start or cursor parameter in a request, they are mutually exclusive.

For more information, see Paginating Results in the Amazon CloudSearch Developer Guide.

" } }, - "Stat": { - "base": null, - "refs": { - "SearchRequest$stats": "

Specifies one or more fields for which to get statistics information. Each specified field must be facet-enabled in the domain configuration. The fields are specified in JSON using the form:

{\"FIELD-A\":{},\"FIELD-B\":{}}

There are currently no options supported for statistics.

" - } - }, - "Stats": { - "base": "

The statistics calculated in the request.

", - "refs": { - "SearchResponse$stats": "

The requested field statistics information.

" - } - }, "String": { "base": null, "refs": { @@ -264,9 +236,6 @@ "Exprs$key": null, "Exprs$value": null, "Facets$key": null, - "FieldStats$min": "

The minimum value found in the specified field in the result set.

If the field is numeric (int, int-array, double, or double-array), min is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, min is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

", - "FieldStats$max": "

The maximum value found in the specified field in the result set.

If the field is numeric (int, int-array, double, or double-array), max is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, max is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

", - "FieldStats$mean": "

The average of the values found in the specified field in the result set.

If the field is numeric (int, int-array, double, or double-array), mean is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, mean is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

", "FieldValue$member": null, "Fields$key": null, "Highlights$key": null, @@ -275,7 +244,6 @@ "Hits$cursor": "

A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.

", "SearchException$message": "

A description of the error returned by the search service.

", "SearchStatus$rid": "

The encrypted resource ID for the request.

", - "Stats$key": null, "SuggestModel$query": "

The query string specified in the suggest request.

", "SuggestStatus$rid": "

The encrypted resource ID for the request.

", "SuggestionMatch$suggestion": "

The string that matches the query string specified in the SuggestRequest.

", diff --git a/vendor/github.com/aws/aws-sdk-go/apis/cloudtrail/2013-11-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudtrail/2013-11-01/api-2.json new file mode 100644 index 000000000..90f54a344 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/cloudtrail/2013-11-01/api-2.json @@ -0,0 +1,824 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2013-11-01", + "endpointPrefix":"cloudtrail", + "jsonVersion":"1.1", + "serviceAbbreviation":"CloudTrail", + "serviceFullName":"AWS CloudTrail", + "signatureVersion":"v4", + "targetPrefix":"com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101", + "protocol":"json" + }, + "operations":{ + "CreateTrail":{ + "name":"CreateTrail", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTrailRequest"}, + "output":{"shape":"CreateTrailResponse"}, + "errors":[ + { + "shape":"MaximumNumberOfTrailsExceededException", + "error":{ + "code":"MaximumNumberOfTrailsExceeded", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TrailAlreadyExistsException", + "error":{ + "code":"TrailAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"S3BucketDoesNotExistException", + "error":{ + "code":"S3BucketDoesNotExist", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientS3BucketPolicyException", + "error":{ + "code":"InsufficientS3BucketPolicy", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientSnsTopicPolicyException", + "error":{ + "code":"InsufficientSnsTopicPolicy", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidS3BucketNameException", + "error":{ + "code":"InvalidS3BucketName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidS3PrefixException", + "error":{ + "code":"InvalidS3Prefix", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSnsTopicNameException", + "error":{ + "code":"InvalidSnsTopicName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTrailNameException", + "error":{ + "code":"InvalidTrailName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCloudWatchLogsLogGroupArnException", + "error":{ + "code":"InvalidCloudWatchLogsLogGroupArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCloudWatchLogsRoleArnException", + "error":{ + "code":"InvalidCloudWatchLogsRoleArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CloudWatchLogsDeliveryUnavailableException", + "error":{ + "code":"CloudWatchLogsDeliveryUnavailable", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "DeleteTrail":{ + "name":"DeleteTrail", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTrailRequest"}, + "output":{"shape":"DeleteTrailResponse"}, + "errors":[ + { + "shape":"TrailNotFoundException", + "error":{ + "code":"TrailNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTrailNameException", + "error":{ + "code":"InvalidTrailName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "DescribeTrails":{ + "name":"DescribeTrails", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTrailsRequest"}, + "output":{"shape":"DescribeTrailsResponse"} + }, + "GetTrailStatus":{ + "name":"GetTrailStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTrailStatusRequest"}, + "output":{"shape":"GetTrailStatusResponse"}, + "errors":[ + { + "shape":"TrailNotFoundException", + "error":{ + "code":"TrailNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTrailNameException", + "error":{ + "code":"InvalidTrailName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "LookupEvents":{ + "name":"LookupEvents", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"LookupEventsRequest"}, + "output":{"shape":"LookupEventsResponse"}, + "errors":[ + { + "shape":"InvalidLookupAttributesException", + "error":{ + "code":"InvalidLookupAttributes", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTimeRangeException", + "error":{ + "code":"InvalidTimeRange", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidMaxResultsException", + "error":{ + "code":"InvalidMaxResults", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "StartLogging":{ + "name":"StartLogging", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartLoggingRequest"}, + "output":{"shape":"StartLoggingResponse"}, + "errors":[ + { + "shape":"TrailNotFoundException", + "error":{ + "code":"TrailNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTrailNameException", + "error":{ + "code":"InvalidTrailName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "StopLogging":{ + "name":"StopLogging", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopLoggingRequest"}, + "output":{"shape":"StopLoggingResponse"}, + "errors":[ + { + "shape":"TrailNotFoundException", + "error":{ + "code":"TrailNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTrailNameException", + "error":{ + "code":"InvalidTrailName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "UpdateTrail":{ + "name":"UpdateTrail", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateTrailRequest"}, + "output":{"shape":"UpdateTrailResponse"}, + "errors":[ + { + "shape":"S3BucketDoesNotExistException", + "error":{ + "code":"S3BucketDoesNotExist", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientS3BucketPolicyException", + "error":{ + "code":"InsufficientS3BucketPolicy", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientSnsTopicPolicyException", + "error":{ + "code":"InsufficientSnsTopicPolicy", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TrailNotFoundException", + "error":{ + "code":"TrailNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidS3BucketNameException", + "error":{ + "code":"InvalidS3BucketName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidS3PrefixException", + "error":{ + "code":"InvalidS3Prefix", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSnsTopicNameException", + "error":{ + "code":"InvalidSnsTopicName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTrailNameException", + "error":{ + "code":"InvalidTrailName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCloudWatchLogsLogGroupArnException", + "error":{ + "code":"InvalidCloudWatchLogsLogGroupArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCloudWatchLogsRoleArnException", + "error":{ + "code":"InvalidCloudWatchLogsRoleArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CloudWatchLogsDeliveryUnavailableException", + "error":{ + "code":"CloudWatchLogsDeliveryUnavailable", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + } + }, + "shapes":{ + "Boolean":{"type":"boolean"}, + "CloudWatchLogsDeliveryUnavailableException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"CloudWatchLogsDeliveryUnavailable", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "CreateTrailRequest":{ + "type":"structure", + "required":[ + "Name", + "S3BucketName" + ], + "members":{ + "Name":{"shape":"String"}, + "S3BucketName":{"shape":"String"}, + "S3KeyPrefix":{"shape":"String"}, + "SnsTopicName":{"shape":"String"}, + "IncludeGlobalServiceEvents":{"shape":"Boolean"}, + "CloudWatchLogsLogGroupArn":{"shape":"String"}, + "CloudWatchLogsRoleArn":{"shape":"String"} + } + }, + "CreateTrailResponse":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "S3BucketName":{"shape":"String"}, + "S3KeyPrefix":{"shape":"String"}, + "SnsTopicName":{"shape":"String"}, + "IncludeGlobalServiceEvents":{"shape":"Boolean"}, + "CloudWatchLogsLogGroupArn":{"shape":"String"}, + "CloudWatchLogsRoleArn":{"shape":"String"} + } + }, + "Date":{"type":"timestamp"}, + "DeleteTrailRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"} + } + }, + "DeleteTrailResponse":{ + "type":"structure", + "members":{ + } + }, + "DescribeTrailsRequest":{ + "type":"structure", + "members":{ + "trailNameList":{"shape":"TrailNameList"} + } + }, + "DescribeTrailsResponse":{ + "type":"structure", + "members":{ + "trailList":{"shape":"TrailList"} + } + }, + "Event":{ + "type":"structure", + "members":{ + "EventId":{"shape":"String"}, + "EventName":{"shape":"String"}, + "EventTime":{"shape":"Date"}, + "Username":{"shape":"String"}, + "Resources":{"shape":"ResourceList"}, + "CloudTrailEvent":{"shape":"String"} + } + }, + "EventsList":{ + "type":"list", + "member":{"shape":"Event"} + }, + "GetTrailStatusRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"} + } + }, + "GetTrailStatusResponse":{ + "type":"structure", + "members":{ + "IsLogging":{"shape":"Boolean"}, + "LatestDeliveryError":{"shape":"String"}, + "LatestNotificationError":{"shape":"String"}, + "LatestDeliveryTime":{"shape":"Date"}, + "LatestNotificationTime":{"shape":"Date"}, + "StartLoggingTime":{"shape":"Date"}, + "StopLoggingTime":{"shape":"Date"}, + "LatestCloudWatchLogsDeliveryError":{"shape":"String"}, + "LatestCloudWatchLogsDeliveryTime":{"shape":"Date"} + } + }, + "InsufficientS3BucketPolicyException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InsufficientS3BucketPolicy", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "InsufficientSnsTopicPolicyException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InsufficientSnsTopicPolicy", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "InvalidCloudWatchLogsLogGroupArnException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidCloudWatchLogsLogGroupArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidCloudWatchLogsRoleArnException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidCloudWatchLogsRoleArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidLookupAttributesException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidLookupAttributes", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidMaxResultsException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidMaxResults", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidS3BucketNameException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidS3BucketName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidS3PrefixException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidS3Prefix", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidSnsTopicNameException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidSnsTopicName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidTimeRangeException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidTimeRange", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidTrailNameException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidTrailName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "LookupAttribute":{ + "type":"structure", + "required":[ + "AttributeKey", + "AttributeValue" + ], + "members":{ + "AttributeKey":{"shape":"LookupAttributeKey"}, + "AttributeValue":{"shape":"String"} + } + }, + "LookupAttributeKey":{ + "type":"string", + "enum":[ + "EventId", + "EventName", + "Username", + "ResourceType", + "ResourceName" + ] + }, + "LookupAttributesList":{ + "type":"list", + "member":{"shape":"LookupAttribute"} + }, + "LookupEventsRequest":{ + "type":"structure", + "members":{ + "LookupAttributes":{"shape":"LookupAttributesList"}, + "StartTime":{"shape":"Date"}, + "EndTime":{"shape":"Date"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "LookupEventsResponse":{ + "type":"structure", + "members":{ + "Events":{"shape":"EventsList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "MaxResults":{ + "type":"integer", + "min":1, + "max":50 + }, + "MaximumNumberOfTrailsExceededException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"MaximumNumberOfTrailsExceeded", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "NextToken":{"type":"string"}, + "Resource":{ + "type":"structure", + "members":{ + "ResourceType":{"shape":"String"}, + "ResourceName":{"shape":"String"} + } + }, + "ResourceList":{ + "type":"list", + "member":{"shape":"Resource"} + }, + "S3BucketDoesNotExistException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"S3BucketDoesNotExist", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "StartLoggingRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"} + } + }, + "StartLoggingResponse":{ + "type":"structure", + "members":{ + } + }, + "StopLoggingRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"} + } + }, + "StopLoggingResponse":{ + "type":"structure", + "members":{ + } + }, + "String":{"type":"string"}, + "Trail":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "S3BucketName":{"shape":"String"}, + "S3KeyPrefix":{"shape":"String"}, + "SnsTopicName":{"shape":"String"}, + "IncludeGlobalServiceEvents":{"shape":"Boolean"}, + "CloudWatchLogsLogGroupArn":{"shape":"String"}, + "CloudWatchLogsRoleArn":{"shape":"String"} + } + }, + "TrailAlreadyExistsException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"TrailAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "TrailList":{ + "type":"list", + "member":{"shape":"Trail"} + }, + "TrailNameList":{ + "type":"list", + "member":{"shape":"String"} + }, + "TrailNotFoundException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"TrailNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "UpdateTrailRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"String"}, + "S3BucketName":{"shape":"String"}, + "S3KeyPrefix":{"shape":"String"}, + "SnsTopicName":{"shape":"String"}, + "IncludeGlobalServiceEvents":{"shape":"Boolean"}, + "CloudWatchLogsLogGroupArn":{"shape":"String"}, + "CloudWatchLogsRoleArn":{"shape":"String"} + } + }, + "UpdateTrailResponse":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "S3BucketName":{"shape":"String"}, + "S3KeyPrefix":{"shape":"String"}, + "SnsTopicName":{"shape":"String"}, + "IncludeGlobalServiceEvents":{"shape":"Boolean"}, + "CloudWatchLogsLogGroupArn":{"shape":"String"}, + "CloudWatchLogsRoleArn":{"shape":"String"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/apis/cloudtrail/2013-11-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudtrail/2013-11-01/docs-2.json new file mode 100644 index 000000000..1d22c809b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/cloudtrail/2013-11-01/docs-2.json @@ -0,0 +1,328 @@ +{ + "version": "2.0", + "operations": { + "CreateTrail": "

From the command line, use create-subscription.

Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.

", + "DeleteTrail": "

Deletes a trail.

", + "DescribeTrails": "

Retrieves settings for the trail associated with the current region for your account.

", + "GetTrailStatus": "

Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail.

", + "LookupEvents": "

Looks up API activity events captured by CloudTrail that create, update, or delete resources in your account. Events for a region can be looked up for the times in which you had CloudTrail turned on in that region during the last seven days. Lookup supports five different attributes: time range (defined by a start time and end time), user name, event name, resource type, and resource name. All attributes are optional. The maximum number of attributes that can be specified in any one lookup request are time range and one other attribute. The default number of results returned is 10, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results. The rate of lookup requests is limited to one per second per account.

Events that occurred during the selected time range will not be available for lookup if CloudTrail logging was not enabled when the events occurred.", + "StartLogging": "

Starts the recording of AWS API calls and log file delivery for a trail.

", + "StopLogging": "

Suspends the recording of AWS API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording.

", + "UpdateTrail": "

From the command line, use update-subscription.

Updates the settings that specify delivery of log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket.

" + }, + "service": "AWS CloudTrail

This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.

CloudTrail is a web service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the AWS API call, the source IP address, the request parameters, and the response elements returned by the service.

As an alternative to using the API, you can use one of the AWS SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWSCloudTrail. For example, the SDKs take care of cryptographically signing requests, managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page.

See the CloudTrail User Guide for information about the data that is included with each AWS API call listed in the log files.

", + "shapes": { + "Boolean": { + "base": null, + "refs": { + "CreateTrailRequest$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", + "CreateTrailResponse$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", + "GetTrailStatusResponse$IsLogging": "

Whether the CloudTrail is currently logging AWS API calls.

", + "Trail$IncludeGlobalServiceEvents": "

Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False.

", + "UpdateTrailRequest$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", + "UpdateTrailResponse$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

" + } + }, + "CloudWatchLogsDeliveryUnavailableException": { + "base": "

Cannot set a CloudWatch Logs delivery for this region.

", + "refs": { + } + }, + "CreateTrailRequest": { + "base": "

Specifies the settings for each trail.

", + "refs": { + } + }, + "CreateTrailResponse": { + "base": "Returns the objects or data listed below if successful. Otherwise, returns an error.", + "refs": { + } + }, + "Date": { + "base": null, + "refs": { + "Event$EventTime": "

The date and time of the event returned.

", + "GetTrailStatusResponse$LatestDeliveryTime": "

Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.

", + "GetTrailStatusResponse$LatestNotificationTime": "

Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file to an account's Amazon S3 bucket.

", + "GetTrailStatusResponse$StartLoggingTime": "

Specifies the most recent date and time when CloudTrail started recording API calls for an AWS account.

", + "GetTrailStatusResponse$StopLoggingTime": "

Specifies the most recent date and time when CloudTrail stopped recording API calls for an AWS account.

", + "GetTrailStatusResponse$LatestCloudWatchLogsDeliveryTime": "

Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.

", + "LookupEventsRequest$StartTime": "

Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.

", + "LookupEventsRequest$EndTime": "

Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.

" + } + }, + "DeleteTrailRequest": { + "base": "The request that specifies the name of a trail to delete.", + "refs": { + } + }, + "DeleteTrailResponse": { + "base": "

Returns the objects or data listed below if successful. Otherwise, returns an error.

", + "refs": { + } + }, + "DescribeTrailsRequest": { + "base": "

Returns information about the trail.

", + "refs": { + } + }, + "DescribeTrailsResponse": { + "base": "

Returns the objects or data listed below if successful. Otherwise, returns an error.

", + "refs": { + } + }, + "Event": { + "base": "

Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.

", + "refs": { + "EventsList$member": null + } + }, + "EventsList": { + "base": null, + "refs": { + "LookupEventsResponse$Events": "

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.

" + } + }, + "GetTrailStatusRequest": { + "base": "

The name of a trail about which you want the current status.

", + "refs": { + } + }, + "GetTrailStatusResponse": { + "base": "

Returns the objects or data listed below if successful. Otherwise, returns an error.

", + "refs": { + } + }, + "InsufficientS3BucketPolicyException": { + "base": "

This exception is thrown when the policy on the S3 bucket is not sufficient.

", + "refs": { + } + }, + "InsufficientSnsTopicPolicyException": { + "base": "

This exception is thrown when the policy on the SNS topic is not sufficient.

", + "refs": { + } + }, + "InvalidCloudWatchLogsLogGroupArnException": { + "base": "

This exception is thrown when the provided CloudWatch log group is not valid.

", + "refs": { + } + }, + "InvalidCloudWatchLogsRoleArnException": { + "base": "

This exception is thrown when the provided role is not valid.

", + "refs": { + } + }, + "InvalidLookupAttributesException": { + "base": "

Occurs when an invalid lookup attribute is specified.

", + "refs": { + } + }, + "InvalidMaxResultsException": { + "base": "

This exception is thrown if the limit specified is invalid.

", + "refs": { + } + }, + "InvalidNextTokenException": { + "base": "

Invalid token or token that was previously used in a request with different parameters. This exception is thrown if the token is invalid.

", + "refs": { + } + }, + "InvalidS3BucketNameException": { + "base": "

This exception is thrown when the provided S3 bucket name is not valid.

", + "refs": { + } + }, + "InvalidS3PrefixException": { + "base": "

This exception is thrown when the provided S3 prefix is not valid.

", + "refs": { + } + }, + "InvalidSnsTopicNameException": { + "base": "

This exception is thrown when the provided SNS topic name is not valid.

", + "refs": { + } + }, + "InvalidTimeRangeException": { + "base": "

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.

", + "refs": { + } + }, + "InvalidTrailNameException": { + "base": "

This exception is thrown when the provided trail name is not valid.

", + "refs": { + } + }, + "LookupAttribute": { + "base": "

Specifies an attribute and value that filter the events returned.

", + "refs": { + "LookupAttributesList$member": null + } + }, + "LookupAttributeKey": { + "base": null, + "refs": { + "LookupAttribute$AttributeKey": "

Specifies an attribute on which to filter the events returned.

" + } + }, + "LookupAttributesList": { + "base": null, + "refs": { + "LookupEventsRequest$LookupAttributes": "

Contains a list of lookup attributes. Currently the list can contain only one item.

" + } + }, + "LookupEventsRequest": { + "base": "

Contains a request for LookupEvents.

", + "refs": { + } + }, + "LookupEventsResponse": { + "base": "

Contains a response to a LookupEvents action.

", + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "LookupEventsRequest$MaxResults": "

The number of events to return. Possible values are 1 through 50. The default is 10.

" + } + }, + "MaximumNumberOfTrailsExceededException": { + "base": "

This exception is thrown when the maximum number of trails is reached.

", + "refs": { + } + }, + "NextToken": { + "base": null, + "refs": { + "LookupEventsRequest$NextToken": "

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.

", + "LookupEventsResponse$NextToken": "

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.

" + } + }, + "Resource": { + "base": "

Specifies the type and name of a resource referenced by an event.

", + "refs": { + "ResourceList$member": null + } + }, + "ResourceList": { + "base": "

A list of resources referenced by the event returned.

", + "refs": { + "Event$Resources": "

A list of resources referenced by the event returned.

" + } + }, + "S3BucketDoesNotExistException": { + "base": "

This exception is thrown when the specified S3 bucket does not exist.

", + "refs": { + } + }, + "StartLoggingRequest": { + "base": "

The request to CloudTrail to start logging AWS API calls for an account.

", + "refs": { + } + }, + "StartLoggingResponse": { + "base": "

Returns the objects or data listed below if successful. Otherwise, returns an error.

", + "refs": { + } + }, + "StopLoggingRequest": { + "base": "

Passes the request to CloudTrail to stop logging AWS API calls for the specified account.

", + "refs": { + } + }, + "StopLoggingResponse": { + "base": "

Returns the objects or data listed below if successful. Otherwise, returns an error.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "CreateTrailRequest$Name": "

Specifies the name of the trail.

", + "CreateTrailRequest$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files.

", + "CreateTrailRequest$S3KeyPrefix": "

Specifies the Amazon S3 key prefix that precedes the name of the bucket you have designated for log file delivery.

", + "CreateTrailRequest$SnsTopicName": "

Specifies the name of the Amazon SNS topic defined for notification of log file delivery.

", + "CreateTrailRequest$CloudWatchLogsLogGroupArn": "

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.

", + "CreateTrailRequest$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group.

", + "CreateTrailResponse$Name": "

Specifies the name of the trail.

", + "CreateTrailResponse$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files.

", + "CreateTrailResponse$S3KeyPrefix": "

Specifies the Amazon S3 key prefix that precedes the name of the bucket you have designated for log file delivery.

", + "CreateTrailResponse$SnsTopicName": "

Specifies the name of the Amazon SNS topic defined for notification of log file delivery.

", + "CreateTrailResponse$CloudWatchLogsLogGroupArn": "

Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.

", + "CreateTrailResponse$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group.

", + "DeleteTrailRequest$Name": "

The name of a trail to be deleted.

", + "Event$EventId": "

The CloudTrail ID of the event returned.

", + "Event$EventName": "

The name of the event returned.

", + "Event$Username": "

A user name or role name of the requester that called the API in the event returned.

", + "Event$CloudTrailEvent": "

A JSON string that contains a representation of the event returned.

", + "GetTrailStatusRequest$Name": "

The name of the trail for which you are requesting the current status.

", + "GetTrailStatusResponse$LatestDeliveryError": "

Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files to the designated bucket. For more information see the topic Error Responses in the Amazon S3 API Reference.

", + "GetTrailStatusResponse$LatestNotificationError": "

Displays any Amazon SNS error that CloudTrail encountered when attempting to send a notification. For more information about Amazon SNS errors, see the Amazon SNS Developer Guide.

", + "GetTrailStatusResponse$LatestCloudWatchLogsDeliveryError": "

Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.

", + "LookupAttribute$AttributeValue": "

Specifies a value for the specified AttributeKey.

", + "Resource$ResourceType": "

The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup.

", + "Resource$ResourceName": "

The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be \"auto-scaling-test-group\" for an Auto Scaling Group or \"i-1234567\" for an EC2 Instance.

", + "StartLoggingRequest$Name": "

The name of the trail for which CloudTrail logs AWS API calls.

", + "StopLoggingRequest$Name": "

Communicates to CloudTrail the name of the trail for which to stop logging AWS API calls.

", + "Trail$Name": "

Name of the trail set by calling CreateTrail.

", + "Trail$S3BucketName": "

Name of the Amazon S3 bucket into which CloudTrail delivers your trail files.

", + "Trail$S3KeyPrefix": "

Value of the Amazon S3 prefix.

", + "Trail$SnsTopicName": "

Name of the existing Amazon SNS topic that CloudTrail uses to notify the account owner when new CloudTrail log files have been delivered.

", + "Trail$CloudWatchLogsLogGroupArn": "

Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.

", + "Trail$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group.

", + "TrailNameList$member": null, + "UpdateTrailRequest$Name": "

Specifies the name of the trail.

", + "UpdateTrailRequest$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files.

", + "UpdateTrailRequest$S3KeyPrefix": "

Specifies the Amazon S3 key prefix that precedes the name of the bucket you have designated for log file delivery.

", + "UpdateTrailRequest$SnsTopicName": "

Specifies the name of the Amazon SNS topic defined for notification of log file delivery.

", + "UpdateTrailRequest$CloudWatchLogsLogGroupArn": "

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.

", + "UpdateTrailRequest$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group.

", + "UpdateTrailResponse$Name": "

Specifies the name of the trail.

", + "UpdateTrailResponse$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files.

", + "UpdateTrailResponse$S3KeyPrefix": "

Specifies the Amazon S3 key prefix that precedes the name of the bucket you have designated for log file delivery.

", + "UpdateTrailResponse$SnsTopicName": "

Specifies the name of the Amazon SNS topic defined for notification of log file delivery.

", + "UpdateTrailResponse$CloudWatchLogsLogGroupArn": "

Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.

", + "UpdateTrailResponse$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group.

" + } + }, + "Trail": { + "base": "

The settings for a trail.

", + "refs": { + "TrailList$member": null + } + }, + "TrailAlreadyExistsException": { + "base": "

This exception is thrown when the specified trail already exists.

", + "refs": { + } + }, + "TrailList": { + "base": null, + "refs": { + "DescribeTrailsResponse$trailList": "

The list of trails.

" + } + }, + "TrailNameList": { + "base": null, + "refs": { + "DescribeTrailsRequest$trailNameList": "

The trail returned.

" + } + }, + "TrailNotFoundException": { + "base": "

This exception is thrown when the trail with the given name is not found.

", + "refs": { + } + }, + "UpdateTrailRequest": { + "base": "

Specifies settings to update for the trail.

", + "refs": { + } + }, + "UpdateTrailResponse": { + "base": "Returns the objects or data listed below if successful. Otherwise, returns an error.", + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/cloudtrail/2013-11-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/cloudtrail/2013-11-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/apis/codecommit/2015-04-13/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/codecommit/2015-04-13/api-2.json new file mode 100644 index 000000000..7d924af78 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/codecommit/2015-04-13/api-2.json @@ -0,0 +1,886 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2015-04-13", + "endpointPrefix":"codecommit", + "jsonVersion":"1.1", + "serviceAbbreviation":"CodeCommit", + "serviceFullName":"AWS CodeCommit", + "signatureVersion":"v4", + "targetPrefix":"CodeCommit_20150413", + "timestampFormat":"unixTimestamp", + "protocol":"json" + }, + "operations":{ + "BatchGetRepositories":{ + "name":"BatchGetRepositories", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchGetRepositoriesInput"}, + "output":{"shape":"BatchGetRepositoriesOutput"}, + "errors":[ + { + "shape":"RepositoryNamesRequiredException", + "exception":true + }, + { + "shape":"MaximumRepositoryNamesExceededException", + "exception":true + }, + { + "shape":"InvalidRepositoryNameException", + "exception":true + }, + { + "shape":"EncryptionIntegrityChecksFailedException", + "exception":true, + "fault":true + }, + { + "shape":"EncryptionKeyAccessDeniedException", + "exception":true + }, + { + "shape":"EncryptionKeyDisabledException", + "exception":true + }, + { + "shape":"EncryptionKeyNotFoundException", + "exception":true + }, + { + "shape":"EncryptionKeyUnavailableException", + "exception":true + } + ] + }, + "CreateBranch":{ + "name":"CreateBranch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateBranchInput"}, + "errors":[ + { + "shape":"RepositoryNameRequiredException", + "exception":true + }, + { + "shape":"InvalidRepositoryNameException", + "exception":true + }, + { + "shape":"RepositoryDoesNotExistException", + "exception":true + }, + { + "shape":"BranchNameRequiredException", + "exception":true + }, + { + "shape":"BranchNameExistsException", + "exception":true + }, + { + "shape":"InvalidBranchNameException", + "exception":true + }, + { + "shape":"CommitIdRequiredException", + "exception":true + }, + { + "shape":"CommitDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidCommitIdException", + "exception":true + }, + { + "shape":"EncryptionIntegrityChecksFailedException", + "exception":true, + "fault":true + }, + { + "shape":"EncryptionKeyAccessDeniedException", + "exception":true + }, + { + "shape":"EncryptionKeyDisabledException", + "exception":true + }, + { + "shape":"EncryptionKeyNotFoundException", + "exception":true + }, + { + "shape":"EncryptionKeyUnavailableException", + "exception":true + } + ] + }, + "CreateRepository":{ + "name":"CreateRepository", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRepositoryInput"}, + "output":{"shape":"CreateRepositoryOutput"}, + "errors":[ + { + "shape":"RepositoryNameExistsException", + "exception":true + }, + { + "shape":"RepositoryNameRequiredException", + "exception":true + }, + { + "shape":"InvalidRepositoryNameException", + "exception":true + }, + { + "shape":"InvalidRepositoryDescriptionException", + "exception":true + }, + { + "shape":"RepositoryLimitExceededException", + "exception":true + }, + { + "shape":"EncryptionIntegrityChecksFailedException", + "exception":true, + "fault":true + }, + { + "shape":"EncryptionKeyAccessDeniedException", + "exception":true + }, + { + "shape":"EncryptionKeyDisabledException", + "exception":true + }, + { + "shape":"EncryptionKeyNotFoundException", + "exception":true + }, + { + "shape":"EncryptionKeyUnavailableException", + "exception":true + } + ] + }, + "DeleteRepository":{ + "name":"DeleteRepository", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRepositoryInput"}, + "output":{"shape":"DeleteRepositoryOutput"}, + "errors":[ + { + "shape":"RepositoryNameRequiredException", + "exception":true + }, + { + "shape":"InvalidRepositoryNameException", + "exception":true + }, + { + "shape":"EncryptionIntegrityChecksFailedException", + "exception":true, + "fault":true + }, + { + "shape":"EncryptionKeyAccessDeniedException", + "exception":true + }, + { + "shape":"EncryptionKeyDisabledException", + "exception":true + }, + { + "shape":"EncryptionKeyNotFoundException", + "exception":true + }, + { + "shape":"EncryptionKeyUnavailableException", + "exception":true + } + ] + }, + "GetBranch":{ + "name":"GetBranch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetBranchInput"}, + "output":{"shape":"GetBranchOutput"}, + "errors":[ + { + "shape":"RepositoryNameRequiredException", + "exception":true + }, + { + "shape":"RepositoryDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidRepositoryNameException", + "exception":true + }, + { + "shape":"BranchNameRequiredException", + "exception":true + }, + { + "shape":"InvalidBranchNameException", + "exception":true + }, + { + "shape":"BranchDoesNotExistException", + "exception":true + }, + { + "shape":"EncryptionIntegrityChecksFailedException", + "exception":true, + "fault":true + }, + { + "shape":"EncryptionKeyAccessDeniedException", + "exception":true + }, + { + "shape":"EncryptionKeyDisabledException", + "exception":true + }, + { + "shape":"EncryptionKeyNotFoundException", + "exception":true + }, + { + "shape":"EncryptionKeyUnavailableException", + "exception":true + } + ] + }, + "GetRepository":{ + "name":"GetRepository", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRepositoryInput"}, + "output":{"shape":"GetRepositoryOutput"}, + "errors":[ + { + "shape":"RepositoryNameRequiredException", + "exception":true + }, + { + "shape":"RepositoryDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidRepositoryNameException", + "exception":true + }, + { + "shape":"EncryptionIntegrityChecksFailedException", + "exception":true, + "fault":true + }, + { + "shape":"EncryptionKeyAccessDeniedException", + "exception":true + }, + { + "shape":"EncryptionKeyDisabledException", + "exception":true + }, + { + "shape":"EncryptionKeyNotFoundException", + "exception":true + }, + { + "shape":"EncryptionKeyUnavailableException", + "exception":true + } + ] + }, + "ListBranches":{ + "name":"ListBranches", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListBranchesInput"}, + "output":{"shape":"ListBranchesOutput"}, + "errors":[ + { + "shape":"RepositoryNameRequiredException", + "exception":true + }, + { + "shape":"RepositoryDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidRepositoryNameException", + "exception":true + }, + { + "shape":"EncryptionIntegrityChecksFailedException", + "exception":true, + "fault":true + }, + { + "shape":"EncryptionKeyAccessDeniedException", + "exception":true + }, + { + "shape":"EncryptionKeyDisabledException", + "exception":true + }, + { + "shape":"EncryptionKeyNotFoundException", + "exception":true + }, + { + "shape":"EncryptionKeyUnavailableException", + "exception":true + }, + { + "shape":"InvalidContinuationTokenException", + "exception":true + } + ] + }, + "ListRepositories":{ + "name":"ListRepositories", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRepositoriesInput"}, + "output":{"shape":"ListRepositoriesOutput"}, + "errors":[ + { + "shape":"InvalidSortByException", + "exception":true + }, + { + "shape":"InvalidOrderException", + "exception":true + }, + { + "shape":"InvalidContinuationTokenException", + "exception":true + } + ] + }, + "UpdateDefaultBranch":{ + "name":"UpdateDefaultBranch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateDefaultBranchInput"}, + "errors":[ + { + "shape":"RepositoryNameRequiredException", + "exception":true + }, + { + "shape":"RepositoryDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidRepositoryNameException", + "exception":true + }, + { + "shape":"BranchNameRequiredException", + "exception":true + }, + { + "shape":"InvalidBranchNameException", + "exception":true + }, + { + "shape":"BranchDoesNotExistException", + "exception":true + }, + { + "shape":"EncryptionIntegrityChecksFailedException", + "exception":true, + "fault":true + }, + { + "shape":"EncryptionKeyAccessDeniedException", + "exception":true + }, + { + "shape":"EncryptionKeyDisabledException", + "exception":true + }, + { + "shape":"EncryptionKeyNotFoundException", + "exception":true + }, + { + "shape":"EncryptionKeyUnavailableException", + "exception":true + } + ] + }, + "UpdateRepositoryDescription":{ + "name":"UpdateRepositoryDescription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRepositoryDescriptionInput"}, + "errors":[ + { + "shape":"RepositoryNameRequiredException", + "exception":true + }, + { + "shape":"RepositoryDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidRepositoryNameException", + "exception":true + }, + { + "shape":"InvalidRepositoryDescriptionException", + "exception":true + }, + { + "shape":"EncryptionIntegrityChecksFailedException", + "exception":true, + "fault":true + }, + { + "shape":"EncryptionKeyAccessDeniedException", + "exception":true + }, + { + "shape":"EncryptionKeyDisabledException", + "exception":true + }, + { + "shape":"EncryptionKeyNotFoundException", + "exception":true + }, + { + "shape":"EncryptionKeyUnavailableException", + "exception":true + } + ] + }, + "UpdateRepositoryName":{ + "name":"UpdateRepositoryName", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRepositoryNameInput"}, + "errors":[ + { + "shape":"RepositoryDoesNotExistException", + "exception":true + }, + { + "shape":"RepositoryNameExistsException", + "exception":true + }, + { + "shape":"RepositoryNameRequiredException", + "exception":true + }, + { + "shape":"InvalidRepositoryNameException", + "exception":true + } + ] + } + }, + "shapes":{ + "AccountId":{"type":"string"}, + "Arn":{"type":"string"}, + "BatchGetRepositoriesInput":{ + "type":"structure", + "required":["repositoryNames"], + "members":{ + "repositoryNames":{"shape":"RepositoryNameList"} + } + }, + "BatchGetRepositoriesOutput":{ + "type":"structure", + "members":{ + "repositories":{"shape":"RepositoryMetadataList"}, + "repositoriesNotFound":{"shape":"RepositoryNotFoundList"} + } + }, + "BranchDoesNotExistException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "BranchInfo":{ + "type":"structure", + "members":{ + "branchName":{"shape":"BranchName"}, + "commitId":{"shape":"CommitId"} + } + }, + "BranchName":{ + "type":"string", + "min":1, + "max":100 + }, + "BranchNameExistsException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "BranchNameList":{ + "type":"list", + "member":{"shape":"BranchName"} + }, + "BranchNameRequiredException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "CloneUrlHttp":{"type":"string"}, + "CloneUrlSsh":{"type":"string"}, + "CommitDoesNotExistException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "CommitId":{"type":"string"}, + "CommitIdRequiredException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "CreateBranchInput":{ + "type":"structure", + "required":[ + "repositoryName", + "branchName", + "commitId" + ], + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "branchName":{"shape":"BranchName"}, + "commitId":{"shape":"CommitId"} + } + }, + "CreateRepositoryInput":{ + "type":"structure", + "required":["repositoryName"], + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "repositoryDescription":{"shape":"RepositoryDescription"} + } + }, + "CreateRepositoryOutput":{ + "type":"structure", + "members":{ + "repositoryMetadata":{"shape":"RepositoryMetadata"} + } + }, + "CreationDate":{"type":"timestamp"}, + "DeleteRepositoryInput":{ + "type":"structure", + "required":["repositoryName"], + "members":{ + "repositoryName":{"shape":"RepositoryName"} + } + }, + "DeleteRepositoryOutput":{ + "type":"structure", + "members":{ + "repositoryId":{"shape":"RepositoryId"} + } + }, + "EncryptionIntegrityChecksFailedException":{ + "type":"structure", + "members":{ + }, + "exception":true, + "fault":true + }, + "EncryptionKeyAccessDeniedException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "EncryptionKeyDisabledException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "EncryptionKeyNotFoundException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "EncryptionKeyUnavailableException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "GetBranchInput":{ + "type":"structure", + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "branchName":{"shape":"BranchName"} + } + }, + "GetBranchOutput":{ + "type":"structure", + "members":{ + "branch":{"shape":"BranchInfo"} + } + }, + "GetRepositoryInput":{ + "type":"structure", + "required":["repositoryName"], + "members":{ + "repositoryName":{"shape":"RepositoryName"} + } + }, + "GetRepositoryOutput":{ + "type":"structure", + "members":{ + "repositoryMetadata":{"shape":"RepositoryMetadata"} + } + }, + "InvalidBranchNameException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidCommitIdException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidContinuationTokenException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidOrderException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidRepositoryDescriptionException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidRepositoryNameException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidSortByException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "LastModifiedDate":{"type":"timestamp"}, + "ListBranchesInput":{ + "type":"structure", + "required":["repositoryName"], + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListBranchesOutput":{ + "type":"structure", + "members":{ + "branches":{"shape":"BranchNameList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListRepositoriesInput":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"NextToken"}, + "sortBy":{"shape":"SortByEnum"}, + "order":{"shape":"OrderEnum"} + } + }, + "ListRepositoriesOutput":{ + "type":"structure", + "members":{ + "repositories":{"shape":"RepositoryNameIdPairList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "MaximumRepositoryNamesExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "NextToken":{"type":"string"}, + "OrderEnum":{ + "type":"string", + "enum":[ + "ascending", + "descending" + ] + }, + "RepositoryDescription":{ + "type":"string", + "max":1000 + }, + "RepositoryDoesNotExistException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "RepositoryId":{"type":"string"}, + "RepositoryLimitExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "RepositoryMetadata":{ + "type":"structure", + "members":{ + "accountId":{"shape":"AccountId"}, + "repositoryId":{"shape":"RepositoryId"}, + "repositoryName":{"shape":"RepositoryName"}, + "repositoryDescription":{"shape":"RepositoryDescription"}, + "defaultBranch":{"shape":"BranchName"}, + "lastModifiedDate":{"shape":"LastModifiedDate"}, + "creationDate":{"shape":"CreationDate"}, + "cloneUrlHttp":{"shape":"CloneUrlHttp"}, + "cloneUrlSsh":{"shape":"CloneUrlSsh"}, + "Arn":{"shape":"Arn"} + } + }, + "RepositoryMetadataList":{ + "type":"list", + "member":{"shape":"RepositoryMetadata"} + }, + "RepositoryName":{ + "type":"string", + "min":1, + "max":100, + "pattern":"[\\\\w\\\\.-]+" + }, + "RepositoryNameExistsException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "RepositoryNameIdPair":{ + "type":"structure", + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "repositoryId":{"shape":"RepositoryId"} + } + }, + "RepositoryNameIdPairList":{ + "type":"list", + "member":{"shape":"RepositoryNameIdPair"} + }, + "RepositoryNameList":{ + "type":"list", + "member":{"shape":"RepositoryName"} + }, + "RepositoryNameRequiredException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "RepositoryNamesRequiredException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "RepositoryNotFoundList":{ + "type":"list", + "member":{"shape":"RepositoryName"} + }, + "SortByEnum":{ + "type":"string", + "enum":[ + "repositoryName", + "lastModifiedDate" + ] + }, + "UpdateDefaultBranchInput":{ + "type":"structure", + "required":[ + "repositoryName", + "defaultBranchName" + ], + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "defaultBranchName":{"shape":"BranchName"} + } + }, + "UpdateRepositoryDescriptionInput":{ + "type":"structure", + "required":["repositoryName"], + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "repositoryDescription":{"shape":"RepositoryDescription"} + } + }, + "UpdateRepositoryNameInput":{ + "type":"structure", + "required":[ + "oldName", + "newName" + ], + "members":{ + "oldName":{"shape":"RepositoryName"}, + "newName":{"shape":"RepositoryName"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/apis/codecommit/2015-04-13/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/codecommit/2015-04-13/docs-2.json new file mode 100644 index 000000000..c2607eee9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/codecommit/2015-04-13/docs-2.json @@ -0,0 +1,384 @@ +{ + "version": "2.0", + "operations": { + "BatchGetRepositories": "

Gets information about one or more repositories.

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 web page could 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 web page.

", + "CreateBranch": "

Creates a new branch in a repository and points the branch to a commit.

Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.", + "CreateRepository": "

Creates a new, empty repository.

", + "DeleteRepository": "

Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.

Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.", + "GetBranch": "

Retrieves information about a repository branch, including its name and the last commit ID.

", + "GetRepository": "

Gets information about a 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 web page could 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 web page.

", + "ListBranches": "

Gets information about one or more branches in a repository.

", + "ListRepositories": "

Gets information about one or more repositories.

", + "UpdateDefaultBranch": "

Sets or changes the default branch name for the specified repository.

If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.", + "UpdateRepositoryDescription": "

Sets or changes the comment or description for a 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 web page could 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 web page.

", + "UpdateRepositoryName": "

Renames a repository.

" + }, + "service": "AWS CodeCommit

This is the AWS CodeCommit API Reference. This reference provides descriptions of the AWS CodeCommit API.

You can use the AWS CodeCommit API to work with the following objects:

  • Repositories
  • Branches
  • Commits

For information about how to use AWS CodeCommit, see the AWS CodeCommit User Guide.

", + "shapes": { + "AccountId": { + "base": null, + "refs": { + "RepositoryMetadata$accountId": "

The ID of the AWS account associated with the repository.

" + } + }, + "Arn": { + "base": null, + "refs": { + "RepositoryMetadata$Arn": "

The Amazon Resource Name (ARN) of the repository.

" + } + }, + "BatchGetRepositoriesInput": { + "base": "

Represents the input of a batch get repositories operation.

", + "refs": { + } + }, + "BatchGetRepositoriesOutput": { + "base": "

Represents the output of a batch get repositories operation.

", + "refs": { + } + }, + "BranchDoesNotExistException": { + "base": "

The specified branch does not exist.

", + "refs": { + } + }, + "BranchInfo": { + "base": "

Returns information about a branch.

", + "refs": { + "GetBranchOutput$branch": "

The name of the branch.

" + } + }, + "BranchName": { + "base": null, + "refs": { + "BranchInfo$branchName": "

The name of the branch.

", + "BranchNameList$member": null, + "CreateBranchInput$branchName": "

The name of the new branch to create.

", + "GetBranchInput$branchName": "

The name of the branch for which you want to retrieve information.

", + "RepositoryMetadata$defaultBranch": "

The repository's default branch name.

", + "UpdateDefaultBranchInput$defaultBranchName": "

The name of the branch to set as the default.

" + } + }, + "BranchNameExistsException": { + "base": "

The specified branch name already exists.

", + "refs": { + } + }, + "BranchNameList": { + "base": null, + "refs": { + "ListBranchesOutput$branches": "

The list of branch names.

" + } + }, + "BranchNameRequiredException": { + "base": "

A branch name is required but was not specified.

", + "refs": { + } + }, + "CloneUrlHttp": { + "base": null, + "refs": { + "RepositoryMetadata$cloneUrlHttp": "

The URL to use for cloning the repository over HTTPS.

" + } + }, + "CloneUrlSsh": { + "base": null, + "refs": { + "RepositoryMetadata$cloneUrlSsh": "

The URL to use for cloning the repository over SSH.

" + } + }, + "CommitDoesNotExistException": { + "base": "

The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

", + "refs": { + } + }, + "CommitId": { + "base": null, + "refs": { + "BranchInfo$commitId": "

The ID of the last commit made to the branch.

", + "CreateBranchInput$commitId": "

The ID of the commit to point the new branch to.

If this commit ID is not specified, the new branch will point to the commit that is pointed to by the repository's default branch." + } + }, + "CommitIdRequiredException": { + "base": "

A commit ID was not specified.

", + "refs": { + } + }, + "CreateBranchInput": { + "base": "

Represents the input of a create branch operation.

", + "refs": { + } + }, + "CreateRepositoryInput": { + "base": "

Represents the input of a create repository operation.

", + "refs": { + } + }, + "CreateRepositoryOutput": { + "base": "

Represents the output of a create repository operation.

", + "refs": { + } + }, + "CreationDate": { + "base": null, + "refs": { + "RepositoryMetadata$creationDate": "

The date and time the repository was created, in timestamp format.

" + } + }, + "DeleteRepositoryInput": { + "base": "

Represents the input of a delete repository operation.

", + "refs": { + } + }, + "DeleteRepositoryOutput": { + "base": "

Represents the output of a delete repository operation.

", + "refs": { + } + }, + "EncryptionIntegrityChecksFailedException": { + "base": "

An encryption integrity check failed.

", + "refs": { + } + }, + "EncryptionKeyAccessDeniedException": { + "base": "

An encryption key could not be accessed.

", + "refs": { + } + }, + "EncryptionKeyDisabledException": { + "base": "

The encryption key is disabled.

", + "refs": { + } + }, + "EncryptionKeyNotFoundException": { + "base": "

No encryption key was found.

", + "refs": { + } + }, + "EncryptionKeyUnavailableException": { + "base": "

The encryption key is not available.

", + "refs": { + } + }, + "GetBranchInput": { + "base": "

Represents the input of a get branch operation.

", + "refs": { + } + }, + "GetBranchOutput": { + "base": "

Represents the output of a get branch operation.

", + "refs": { + } + }, + "GetRepositoryInput": { + "base": "

Represents the input of a get repository operation.

", + "refs": { + } + }, + "GetRepositoryOutput": { + "base": "

Represents the output of a get repository operation.

", + "refs": { + } + }, + "InvalidBranchNameException": { + "base": "

The specified branch name is not valid.

", + "refs": { + } + }, + "InvalidCommitIdException": { + "base": "

The specified commit ID is not valid.

", + "refs": { + } + }, + "InvalidContinuationTokenException": { + "base": "

The specified continuation token is not valid.

", + "refs": { + } + }, + "InvalidOrderException": { + "base": "

The specified sort order is not valid.

", + "refs": { + } + }, + "InvalidRepositoryDescriptionException": { + "base": "

The specified repository description is not valid.

", + "refs": { + } + }, + "InvalidRepositoryNameException": { + "base": "

At least one specified repository name is not valid.

This exception only occurs 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.", + "refs": { + } + }, + "InvalidSortByException": { + "base": "

The specified sort by value is not valid.

", + "refs": { + } + }, + "LastModifiedDate": { + "base": null, + "refs": { + "RepositoryMetadata$lastModifiedDate": "

The date and time the repository was last modified, in timestamp format.

" + } + }, + "ListBranchesInput": { + "base": "

Represents the input of a list branches operation.

", + "refs": { + } + }, + "ListBranchesOutput": { + "base": "

Represents the output of a list branches operation.

", + "refs": { + } + }, + "ListRepositoriesInput": { + "base": "

Represents the input of a list repositories operation.

", + "refs": { + } + }, + "ListRepositoriesOutput": { + "base": "

Represents the output of a list repositories operation.

", + "refs": { + } + }, + "MaximumRepositoryNamesExceededException": { + "base": "

The maximum number of allowed repository names was exceeded. Currently, this number is 25.

", + "refs": { + } + }, + "NextToken": { + "base": null, + "refs": { + "ListBranchesInput$nextToken": "

An enumeration token that allows the operation to batch the results.

", + "ListBranchesOutput$nextToken": "

An enumeration token that returns the batch of the results.

", + "ListRepositoriesInput$nextToken": "

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.

", + "ListRepositoriesOutput$nextToken": "

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.

" + } + }, + "OrderEnum": { + "base": null, + "refs": { + "ListRepositoriesInput$order": "

The order in which to sort the results of a list repositories operation.

" + } + }, + "RepositoryDescription": { + "base": null, + "refs": { + "CreateRepositoryInput$repositoryDescription": "

A comment or description about the new repository.

", + "RepositoryMetadata$repositoryDescription": "

A comment or description about the repository.

", + "UpdateRepositoryDescriptionInput$repositoryDescription": "

The new comment or description for the specified repository.

" + } + }, + "RepositoryDoesNotExistException": { + "base": "

The specified repository does not exist.

", + "refs": { + } + }, + "RepositoryId": { + "base": null, + "refs": { + "DeleteRepositoryOutput$repositoryId": "

The ID of the repository that was deleted.

", + "RepositoryMetadata$repositoryId": "

The ID of the repository.

", + "RepositoryNameIdPair$repositoryId": "

The ID associated with the repository name.

" + } + }, + "RepositoryLimitExceededException": { + "base": "

A repository resource limit was exceeded.

", + "refs": { + } + }, + "RepositoryMetadata": { + "base": "

Information about a repository.

", + "refs": { + "CreateRepositoryOutput$repositoryMetadata": "

Information about the newly created repository.

", + "GetRepositoryOutput$repositoryMetadata": "

Information about the repository.

", + "RepositoryMetadataList$member": null + } + }, + "RepositoryMetadataList": { + "base": null, + "refs": { + "BatchGetRepositoriesOutput$repositories": "

A list of repositories returned by the batch get repositories operation.

" + } + }, + "RepositoryName": { + "base": "Repository name is restricted to alphanumeric characters (a-z, A-Z, 0-9), \".\", \"_\", and \"-\". Additionally, the suffix \".git\" is prohibited in a repository name.", + "refs": { + "CreateBranchInput$repositoryName": "

The name of the repository in which you want to create the new branch.

", + "CreateRepositoryInput$repositoryName": "

The name of the new repository to be created.

The repository name must be unique across the calling AWS account. In addition, repository names are restricted to alphanumeric characters. The suffix \".git\" is prohibited.", + "DeleteRepositoryInput$repositoryName": "

The name of the repository to delete.

", + "GetBranchInput$repositoryName": null, + "GetRepositoryInput$repositoryName": "

The name of the repository to get information about.

", + "ListBranchesInput$repositoryName": "

The name of the repository that contains the branches.

", + "RepositoryMetadata$repositoryName": "

The repository's name.

", + "RepositoryNameIdPair$repositoryName": null, + "RepositoryNameList$member": null, + "RepositoryNotFoundList$member": null, + "UpdateDefaultBranchInput$repositoryName": "

The name of the repository to set or change the default branch for.

", + "UpdateRepositoryDescriptionInput$repositoryName": "

The name of the repository to set or change the comment or description for.

", + "UpdateRepositoryNameInput$oldName": null, + "UpdateRepositoryNameInput$newName": null + } + }, + "RepositoryNameExistsException": { + "base": "

The specified repository name already exists.

", + "refs": { + } + }, + "RepositoryNameIdPair": { + "base": "

Information about a repository name and ID.

", + "refs": { + "RepositoryNameIdPairList$member": null + } + }, + "RepositoryNameIdPairList": { + "base": null, + "refs": { + "ListRepositoriesOutput$repositories": "

Lists the repositories called by the list repositories operation.

" + } + }, + "RepositoryNameList": { + "base": null, + "refs": { + "BatchGetRepositoriesInput$repositoryNames": "

The names of the repositories to get information about.

" + } + }, + "RepositoryNameRequiredException": { + "base": "

A repository name is required but was not specified.

", + "refs": { + } + }, + "RepositoryNamesRequiredException": { + "base": "

A repository names object is required but was not specified.

", + "refs": { + } + }, + "RepositoryNotFoundList": { + "base": null, + "refs": { + "BatchGetRepositoriesOutput$repositoriesNotFound": "

Returns a list of repository names for which information could not be found.

" + } + }, + "SortByEnum": { + "base": null, + "refs": { + "ListRepositoriesInput$sortBy": "

The criteria used to sort the results of a list repositories operation.

" + } + }, + "UpdateDefaultBranchInput": { + "base": "

Represents the input of an update default branch operation.

", + "refs": { + } + }, + "UpdateRepositoryDescriptionInput": { + "base": "

Represents the input of an update repository description operation.

", + "refs": { + } + }, + "UpdateRepositoryNameInput": { + "base": "

Represents the input of an update repository description operation.

", + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/codedeploy/2014-10-06/api-2.json similarity index 70% rename from vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/codedeploy/2014-10-06/api-2.json index fa8e09d0a..7c6dd3d2e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/codedeploy/2014-10-06/api-2.json @@ -4,12 +4,11 @@ "apiVersion":"2014-10-06", "endpointPrefix":"codedeploy", "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"CodeDeploy", "serviceFullName":"AWS CodeDeploy", "signatureVersion":"v4", "targetPrefix":"CodeDeploy_20141006", - "timestampFormat":"unixTimestamp" + "timestampFormat":"unixTimestamp", + "protocol":"json" }, "operations":{ "AddTagsToOnPremisesInstances":{ @@ -20,29 +19,30 @@ }, "input":{"shape":"AddTagsToOnPremisesInstancesInput"}, "errors":[ - {"shape":"InstanceNameRequiredException"}, - {"shape":"TagRequiredException"}, - {"shape":"InvalidTagException"}, - {"shape":"TagLimitExceededException"}, - {"shape":"InstanceLimitExceededException"}, - {"shape":"InstanceNotRegisteredException"} - ] - }, - "BatchGetApplicationRevisions":{ - "name":"BatchGetApplicationRevisions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"BatchGetApplicationRevisionsInput"}, - "output":{"shape":"BatchGetApplicationRevisionsOutput"}, - "errors":[ - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"RevisionRequiredException"}, - {"shape":"InvalidRevisionException"}, - {"shape":"BatchLimitExceededException"} + { + "shape":"InstanceNameRequiredException", + "exception":true + }, + { + "shape":"TagRequiredException", + "exception":true + }, + { + "shape":"InvalidTagException", + "exception":true + }, + { + "shape":"TagLimitExceededException", + "exception":true + }, + { + "shape":"InstanceLimitExceededException", + "exception":true + }, + { + "shape":"InstanceNotRegisteredException", + "exception":true + } ] }, "BatchGetApplications":{ @@ -54,44 +54,18 @@ "input":{"shape":"BatchGetApplicationsInput"}, "output":{"shape":"BatchGetApplicationsOutput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"BatchLimitExceededException"} - ] - }, - "BatchGetDeploymentGroups":{ - "name":"BatchGetDeploymentGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"BatchGetDeploymentGroupsInput"}, - "output":{"shape":"BatchGetDeploymentGroupsOutput"}, - "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"DeploymentGroupNameRequiredException"}, - {"shape":"InvalidDeploymentGroupNameException"}, - {"shape":"BatchLimitExceededException"} - ] - }, - "BatchGetDeploymentInstances":{ - "name":"BatchGetDeploymentInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"BatchGetDeploymentInstancesInput"}, - "output":{"shape":"BatchGetDeploymentInstancesOutput"}, - "errors":[ - {"shape":"DeploymentIdRequiredException"}, - {"shape":"DeploymentDoesNotExistException"}, - {"shape":"InstanceIdRequiredException"}, - {"shape":"InvalidDeploymentIdException"}, - {"shape":"InvalidInstanceNameException"}, - {"shape":"BatchLimitExceededException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"ApplicationDoesNotExistException", + "exception":true + } ] }, "BatchGetDeployments":{ @@ -103,9 +77,14 @@ "input":{"shape":"BatchGetDeploymentsInput"}, "output":{"shape":"BatchGetDeploymentsOutput"}, "errors":[ - {"shape":"DeploymentIdRequiredException"}, - {"shape":"InvalidDeploymentIdException"}, - {"shape":"BatchLimitExceededException"} + { + "shape":"DeploymentIdRequiredException", + "exception":true + }, + { + "shape":"InvalidDeploymentIdException", + "exception":true + } ] }, "BatchGetOnPremisesInstances":{ @@ -117,9 +96,14 @@ "input":{"shape":"BatchGetOnPremisesInstancesInput"}, "output":{"shape":"BatchGetOnPremisesInstancesOutput"}, "errors":[ - {"shape":"InstanceNameRequiredException"}, - {"shape":"InvalidInstanceNameException"}, - {"shape":"BatchLimitExceededException"} + { + "shape":"InstanceNameRequiredException", + "exception":true + }, + { + "shape":"InvalidInstanceNameException", + "exception":true + } ] }, "CreateApplication":{ @@ -131,10 +115,22 @@ "input":{"shape":"CreateApplicationInput"}, "output":{"shape":"CreateApplicationOutput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationAlreadyExistsException"}, - {"shape":"ApplicationLimitExceededException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"ApplicationAlreadyExistsException", + "exception":true + }, + { + "shape":"ApplicationLimitExceededException", + "exception":true + } ] }, "CreateDeployment":{ @@ -146,18 +142,54 @@ "input":{"shape":"CreateDeploymentInput"}, "output":{"shape":"CreateDeploymentOutput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"DeploymentGroupNameRequiredException"}, - {"shape":"InvalidDeploymentGroupNameException"}, - {"shape":"DeploymentGroupDoesNotExistException"}, - {"shape":"RevisionRequiredException"}, - {"shape":"InvalidRevisionException"}, - {"shape":"InvalidDeploymentConfigNameException"}, - {"shape":"DeploymentConfigDoesNotExistException"}, - {"shape":"DescriptionTooLongException"}, - {"shape":"DeploymentLimitExceededException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"ApplicationDoesNotExistException", + "exception":true + }, + { + "shape":"DeploymentGroupNameRequiredException", + "exception":true + }, + { + "shape":"InvalidDeploymentGroupNameException", + "exception":true + }, + { + "shape":"DeploymentGroupDoesNotExistException", + "exception":true + }, + { + "shape":"RevisionRequiredException", + "exception":true + }, + { + "shape":"InvalidRevisionException", + "exception":true + }, + { + "shape":"InvalidDeploymentConfigNameException", + "exception":true + }, + { + "shape":"DeploymentConfigDoesNotExistException", + "exception":true + }, + { + "shape":"DescriptionTooLongException", + "exception":true + }, + { + "shape":"DeploymentLimitExceededException", + "exception":true + } ] }, "CreateDeploymentConfig":{ @@ -169,11 +201,26 @@ "input":{"shape":"CreateDeploymentConfigInput"}, "output":{"shape":"CreateDeploymentConfigOutput"}, "errors":[ - {"shape":"InvalidDeploymentConfigNameException"}, - {"shape":"DeploymentConfigNameRequiredException"}, - {"shape":"DeploymentConfigAlreadyExistsException"}, - {"shape":"InvalidMinimumHealthyHostValueException"}, - {"shape":"DeploymentConfigLimitExceededException"} + { + "shape":"InvalidDeploymentConfigNameException", + "exception":true + }, + { + "shape":"DeploymentConfigNameRequiredException", + "exception":true + }, + { + "shape":"DeploymentConfigAlreadyExistsException", + "exception":true + }, + { + "shape":"InvalidMinimumHealthyHostValueException", + "exception":true + }, + { + "shape":"DeploymentConfigLimitExceededException", + "exception":true + } ] }, "CreateDeploymentGroup":{ @@ -185,23 +232,62 @@ "input":{"shape":"CreateDeploymentGroupInput"}, "output":{"shape":"CreateDeploymentGroupOutput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"DeploymentGroupNameRequiredException"}, - {"shape":"InvalidDeploymentGroupNameException"}, - {"shape":"DeploymentGroupAlreadyExistsException"}, - {"shape":"InvalidEC2TagException"}, - {"shape":"InvalidTagException"}, - {"shape":"InvalidAutoScalingGroupException"}, - {"shape":"InvalidDeploymentConfigNameException"}, - {"shape":"DeploymentConfigDoesNotExistException"}, - {"shape":"RoleRequiredException"}, - {"shape":"InvalidRoleException"}, - {"shape":"DeploymentGroupLimitExceededException"}, - {"shape":"LifecycleHookLimitExceededException"}, - {"shape":"InvalidTriggerConfigException"}, - {"shape":"TriggerTargetsLimitExceededException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"ApplicationDoesNotExistException", + "exception":true + }, + { + "shape":"DeploymentGroupNameRequiredException", + "exception":true + }, + { + "shape":"InvalidDeploymentGroupNameException", + "exception":true + }, + { + "shape":"DeploymentGroupAlreadyExistsException", + "exception":true + }, + { + "shape":"InvalidEC2TagException", + "exception":true + }, + { + "shape":"InvalidTagException", + "exception":true + }, + { + "shape":"InvalidAutoScalingGroupException", + "exception":true + }, + { + "shape":"InvalidDeploymentConfigNameException", + "exception":true + }, + { + "shape":"DeploymentConfigDoesNotExistException", + "exception":true + }, + { + "shape":"RoleRequiredException", + "exception":true + }, + { + "shape":"InvalidRoleException", + "exception":true + }, + { + "shape":"DeploymentGroupLimitExceededException", + "exception":true + } ] }, "DeleteApplication":{ @@ -212,8 +298,14 @@ }, "input":{"shape":"DeleteApplicationInput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + } ] }, "DeleteDeploymentConfig":{ @@ -224,10 +316,22 @@ }, "input":{"shape":"DeleteDeploymentConfigInput"}, "errors":[ - {"shape":"InvalidDeploymentConfigNameException"}, - {"shape":"DeploymentConfigNameRequiredException"}, - {"shape":"DeploymentConfigInUseException"}, - {"shape":"InvalidOperationException"} + { + "shape":"InvalidDeploymentConfigNameException", + "exception":true + }, + { + "shape":"DeploymentConfigNameRequiredException", + "exception":true + }, + { + "shape":"DeploymentConfigInUseException", + "exception":true + }, + { + "shape":"InvalidOperationException", + "exception":true + } ] }, "DeleteDeploymentGroup":{ @@ -239,11 +343,26 @@ "input":{"shape":"DeleteDeploymentGroupInput"}, "output":{"shape":"DeleteDeploymentGroupOutput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"DeploymentGroupNameRequiredException"}, - {"shape":"InvalidDeploymentGroupNameException"}, - {"shape":"InvalidRoleException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"DeploymentGroupNameRequiredException", + "exception":true + }, + { + "shape":"InvalidDeploymentGroupNameException", + "exception":true + }, + { + "shape":"InvalidRoleException", + "exception":true + } ] }, "DeregisterOnPremisesInstance":{ @@ -254,8 +373,14 @@ }, "input":{"shape":"DeregisterOnPremisesInstanceInput"}, "errors":[ - {"shape":"InstanceNameRequiredException"}, - {"shape":"InvalidInstanceNameException"} + { + "shape":"InstanceNameRequiredException", + "exception":true + }, + { + "shape":"InvalidInstanceNameException", + "exception":true + } ] }, "GetApplication":{ @@ -267,9 +392,18 @@ "input":{"shape":"GetApplicationInput"}, "output":{"shape":"GetApplicationOutput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationDoesNotExistException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"ApplicationDoesNotExistException", + "exception":true + } ] }, "GetApplicationRevision":{ @@ -281,12 +415,30 @@ "input":{"shape":"GetApplicationRevisionInput"}, "output":{"shape":"GetApplicationRevisionOutput"}, "errors":[ - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"RevisionDoesNotExistException"}, - {"shape":"RevisionRequiredException"}, - {"shape":"InvalidRevisionException"} + { + "shape":"ApplicationDoesNotExistException", + "exception":true + }, + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"RevisionDoesNotExistException", + "exception":true + }, + { + "shape":"RevisionRequiredException", + "exception":true + }, + { + "shape":"InvalidRevisionException", + "exception":true + } ] }, "GetDeployment":{ @@ -298,9 +450,18 @@ "input":{"shape":"GetDeploymentInput"}, "output":{"shape":"GetDeploymentOutput"}, "errors":[ - {"shape":"DeploymentIdRequiredException"}, - {"shape":"InvalidDeploymentIdException"}, - {"shape":"DeploymentDoesNotExistException"} + { + "shape":"DeploymentIdRequiredException", + "exception":true + }, + { + "shape":"InvalidDeploymentIdException", + "exception":true + }, + { + "shape":"DeploymentDoesNotExistException", + "exception":true + } ] }, "GetDeploymentConfig":{ @@ -312,9 +473,18 @@ "input":{"shape":"GetDeploymentConfigInput"}, "output":{"shape":"GetDeploymentConfigOutput"}, "errors":[ - {"shape":"InvalidDeploymentConfigNameException"}, - {"shape":"DeploymentConfigNameRequiredException"}, - {"shape":"DeploymentConfigDoesNotExistException"} + { + "shape":"InvalidDeploymentConfigNameException", + "exception":true + }, + { + "shape":"DeploymentConfigNameRequiredException", + "exception":true + }, + { + "shape":"DeploymentConfigDoesNotExistException", + "exception":true + } ] }, "GetDeploymentGroup":{ @@ -326,12 +496,30 @@ "input":{"shape":"GetDeploymentGroupInput"}, "output":{"shape":"GetDeploymentGroupOutput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"DeploymentGroupNameRequiredException"}, - {"shape":"InvalidDeploymentGroupNameException"}, - {"shape":"DeploymentGroupDoesNotExistException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"ApplicationDoesNotExistException", + "exception":true + }, + { + "shape":"DeploymentGroupNameRequiredException", + "exception":true + }, + { + "shape":"InvalidDeploymentGroupNameException", + "exception":true + }, + { + "shape":"DeploymentGroupDoesNotExistException", + "exception":true + } ] }, "GetDeploymentInstance":{ @@ -343,12 +531,26 @@ "input":{"shape":"GetDeploymentInstanceInput"}, "output":{"shape":"GetDeploymentInstanceOutput"}, "errors":[ - {"shape":"DeploymentIdRequiredException"}, - {"shape":"DeploymentDoesNotExistException"}, - {"shape":"InstanceIdRequiredException"}, - {"shape":"InvalidDeploymentIdException"}, - {"shape":"InstanceDoesNotExistException"}, - {"shape":"InvalidInstanceNameException"} + { + "shape":"DeploymentIdRequiredException", + "exception":true + }, + { + "shape":"DeploymentDoesNotExistException", + "exception":true + }, + { + "shape":"InstanceIdRequiredException", + "exception":true + }, + { + "shape":"InvalidDeploymentIdException", + "exception":true + }, + { + "shape":"InstanceDoesNotExistException", + "exception":true + } ] }, "GetOnPremisesInstance":{ @@ -360,9 +562,18 @@ "input":{"shape":"GetOnPremisesInstanceInput"}, "output":{"shape":"GetOnPremisesInstanceOutput"}, "errors":[ - {"shape":"InstanceNameRequiredException"}, - {"shape":"InstanceNotRegisteredException"}, - {"shape":"InvalidInstanceNameException"} + { + "shape":"InstanceNameRequiredException", + "exception":true + }, + { + "shape":"InstanceNotRegisteredException", + "exception":true + }, + { + "shape":"InvalidInstanceNameException", + "exception":true + } ] }, "ListApplicationRevisions":{ @@ -374,16 +585,46 @@ "input":{"shape":"ListApplicationRevisionsInput"}, "output":{"shape":"ListApplicationRevisionsOutput"}, "errors":[ - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"InvalidSortByException"}, - {"shape":"InvalidSortOrderException"}, - {"shape":"InvalidBucketNameFilterException"}, - {"shape":"InvalidKeyPrefixFilterException"}, - {"shape":"BucketNameFilterRequiredException"}, - {"shape":"InvalidDeployedStateFilterException"}, - {"shape":"InvalidNextTokenException"} + { + "shape":"ApplicationDoesNotExistException", + "exception":true + }, + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"InvalidSortByException", + "exception":true + }, + { + "shape":"InvalidSortOrderException", + "exception":true + }, + { + "shape":"InvalidBucketNameFilterException", + "exception":true + }, + { + "shape":"InvalidKeyPrefixFilterException", + "exception":true + }, + { + "shape":"BucketNameFilterRequiredException", + "exception":true + }, + { + "shape":"InvalidDeployedStateFilterException", + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "exception":true + } ] }, "ListApplications":{ @@ -395,7 +636,10 @@ "input":{"shape":"ListApplicationsInput"}, "output":{"shape":"ListApplicationsOutput"}, "errors":[ - {"shape":"InvalidNextTokenException"} + { + "shape":"InvalidNextTokenException", + "exception":true + } ] }, "ListDeploymentConfigs":{ @@ -407,7 +651,10 @@ "input":{"shape":"ListDeploymentConfigsInput"}, "output":{"shape":"ListDeploymentConfigsOutput"}, "errors":[ - {"shape":"InvalidNextTokenException"} + { + "shape":"InvalidNextTokenException", + "exception":true + } ] }, "ListDeploymentGroups":{ @@ -419,10 +666,22 @@ "input":{"shape":"ListDeploymentGroupsInput"}, "output":{"shape":"ListDeploymentGroupsOutput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"InvalidNextTokenException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"ApplicationDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "exception":true + } ] }, "ListDeploymentInstances":{ @@ -434,12 +693,30 @@ "input":{"shape":"ListDeploymentInstancesInput"}, "output":{"shape":"ListDeploymentInstancesOutput"}, "errors":[ - {"shape":"DeploymentIdRequiredException"}, - {"shape":"DeploymentDoesNotExistException"}, - {"shape":"DeploymentNotStartedException"}, - {"shape":"InvalidNextTokenException"}, - {"shape":"InvalidDeploymentIdException"}, - {"shape":"InvalidInstanceStatusException"} + { + "shape":"DeploymentIdRequiredException", + "exception":true + }, + { + "shape":"DeploymentDoesNotExistException", + "exception":true + }, + { + "shape":"DeploymentNotStartedException", + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "exception":true + }, + { + "shape":"InvalidDeploymentIdException", + "exception":true + }, + { + "shape":"InvalidInstanceStatusException", + "exception":true + } ] }, "ListDeployments":{ @@ -451,15 +728,42 @@ "input":{"shape":"ListDeploymentsInput"}, "output":{"shape":"ListDeploymentsOutput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"InvalidDeploymentGroupNameException"}, - {"shape":"DeploymentGroupDoesNotExistException"}, - {"shape":"DeploymentGroupNameRequiredException"}, - {"shape":"InvalidTimeRangeException"}, - {"shape":"InvalidDeploymentStatusException"}, - {"shape":"InvalidNextTokenException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"ApplicationDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidDeploymentGroupNameException", + "exception":true + }, + { + "shape":"DeploymentGroupDoesNotExistException", + "exception":true + }, + { + "shape":"DeploymentGroupNameRequiredException", + "exception":true + }, + { + "shape":"InvalidTimeRangeException", + "exception":true + }, + { + "shape":"InvalidDeploymentStatusException", + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "exception":true + } ] }, "ListOnPremisesInstances":{ @@ -471,9 +775,18 @@ "input":{"shape":"ListOnPremisesInstancesInput"}, "output":{"shape":"ListOnPremisesInstancesOutput"}, "errors":[ - {"shape":"InvalidRegistrationStatusException"}, - {"shape":"InvalidTagFilterException"}, - {"shape":"InvalidNextTokenException"} + { + "shape":"InvalidRegistrationStatusException", + "exception":true + }, + { + "shape":"InvalidTagFilterException", + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "exception":true + } ] }, "RegisterApplicationRevision":{ @@ -484,12 +797,30 @@ }, "input":{"shape":"RegisterApplicationRevisionInput"}, "errors":[ - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"DescriptionTooLongException"}, - {"shape":"RevisionRequiredException"}, - {"shape":"InvalidRevisionException"} + { + "shape":"ApplicationDoesNotExistException", + "exception":true + }, + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"DescriptionTooLongException", + "exception":true + }, + { + "shape":"RevisionRequiredException", + "exception":true + }, + { + "shape":"InvalidRevisionException", + "exception":true + } ] }, "RegisterOnPremisesInstance":{ @@ -500,12 +831,30 @@ }, "input":{"shape":"RegisterOnPremisesInstanceInput"}, "errors":[ - {"shape":"InstanceNameAlreadyRegisteredException"}, - {"shape":"IamUserArnAlreadyRegisteredException"}, - {"shape":"InstanceNameRequiredException"}, - {"shape":"IamUserArnRequiredException"}, - {"shape":"InvalidInstanceNameException"}, - {"shape":"InvalidIamUserArnException"} + { + "shape":"InstanceNameAlreadyRegisteredException", + "exception":true + }, + { + "shape":"IamUserArnAlreadyRegisteredException", + "exception":true + }, + { + "shape":"InstanceNameRequiredException", + "exception":true + }, + { + "shape":"IamUserArnRequiredException", + "exception":true + }, + { + "shape":"InvalidInstanceNameException", + "exception":true + }, + { + "shape":"InvalidIamUserArnException", + "exception":true + } ] }, "RemoveTagsFromOnPremisesInstances":{ @@ -516,12 +865,30 @@ }, "input":{"shape":"RemoveTagsFromOnPremisesInstancesInput"}, "errors":[ - {"shape":"InstanceNameRequiredException"}, - {"shape":"TagRequiredException"}, - {"shape":"InvalidTagException"}, - {"shape":"TagLimitExceededException"}, - {"shape":"InstanceLimitExceededException"}, - {"shape":"InstanceNotRegisteredException"} + { + "shape":"InstanceNameRequiredException", + "exception":true + }, + { + "shape":"TagRequiredException", + "exception":true + }, + { + "shape":"InvalidTagException", + "exception":true + }, + { + "shape":"TagLimitExceededException", + "exception":true + }, + { + "shape":"InstanceLimitExceededException", + "exception":true + }, + { + "shape":"InstanceNotRegisteredException", + "exception":true + } ] }, "StopDeployment":{ @@ -533,10 +900,22 @@ "input":{"shape":"StopDeploymentInput"}, "output":{"shape":"StopDeploymentOutput"}, "errors":[ - {"shape":"DeploymentIdRequiredException"}, - {"shape":"DeploymentDoesNotExistException"}, - {"shape":"DeploymentAlreadyCompletedException"}, - {"shape":"InvalidDeploymentIdException"} + { + "shape":"DeploymentIdRequiredException", + "exception":true + }, + { + "shape":"DeploymentDoesNotExistException", + "exception":true + }, + { + "shape":"DeploymentAlreadyCompletedException", + "exception":true + }, + { + "shape":"InvalidDeploymentIdException", + "exception":true + } ] }, "UpdateApplication":{ @@ -547,10 +926,22 @@ }, "input":{"shape":"UpdateApplicationInput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationAlreadyExistsException"}, - {"shape":"ApplicationDoesNotExistException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"ApplicationAlreadyExistsException", + "exception":true + }, + { + "shape":"ApplicationDoesNotExistException", + "exception":true + } ] }, "UpdateDeploymentGroup":{ @@ -562,22 +953,58 @@ "input":{"shape":"UpdateDeploymentGroupInput"}, "output":{"shape":"UpdateDeploymentGroupOutput"}, "errors":[ - {"shape":"ApplicationNameRequiredException"}, - {"shape":"InvalidApplicationNameException"}, - {"shape":"ApplicationDoesNotExistException"}, - {"shape":"InvalidDeploymentGroupNameException"}, - {"shape":"DeploymentGroupAlreadyExistsException"}, - {"shape":"DeploymentGroupNameRequiredException"}, - {"shape":"DeploymentGroupDoesNotExistException"}, - {"shape":"InvalidEC2TagException"}, - {"shape":"InvalidTagException"}, - {"shape":"InvalidAutoScalingGroupException"}, - {"shape":"InvalidDeploymentConfigNameException"}, - {"shape":"DeploymentConfigDoesNotExistException"}, - {"shape":"InvalidRoleException"}, - {"shape":"LifecycleHookLimitExceededException"}, - {"shape":"InvalidTriggerConfigException"}, - {"shape":"TriggerTargetsLimitExceededException"} + { + "shape":"ApplicationNameRequiredException", + "exception":true + }, + { + "shape":"InvalidApplicationNameException", + "exception":true + }, + { + "shape":"ApplicationDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidDeploymentGroupNameException", + "exception":true + }, + { + "shape":"DeploymentGroupAlreadyExistsException", + "exception":true + }, + { + "shape":"DeploymentGroupNameRequiredException", + "exception":true + }, + { + "shape":"DeploymentGroupDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidEC2TagException", + "exception":true + }, + { + "shape":"InvalidTagException", + "exception":true + }, + { + "shape":"InvalidAutoScalingGroupException", + "exception":true + }, + { + "shape":"InvalidDeploymentConfigNameException", + "exception":true + }, + { + "shape":"DeploymentConfigDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidRoleException", + "exception":true + } ] } }, @@ -623,8 +1050,8 @@ }, "ApplicationName":{ "type":"string", - "max":100, - "min":1 + "min":1, + "max":100 }, "ApplicationNameRequiredException":{ "type":"structure", @@ -665,25 +1092,6 @@ "type":"list", "member":{"shape":"AutoScalingGroupName"} }, - "BatchGetApplicationRevisionsInput":{ - "type":"structure", - "required":[ - "applicationName", - "revisions" - ], - "members":{ - "applicationName":{"shape":"ApplicationName"}, - "revisions":{"shape":"RevisionLocationList"} - } - }, - "BatchGetApplicationRevisionsOutput":{ - "type":"structure", - "members":{ - "applicationName":{"shape":"ApplicationName"}, - "errorMessage":{"shape":"ErrorMessage"}, - "revisions":{"shape":"RevisionInfoList"} - } - }, "BatchGetApplicationsInput":{ "type":"structure", "members":{ @@ -696,42 +1104,6 @@ "applicationsInfo":{"shape":"ApplicationsInfoList"} } }, - "BatchGetDeploymentGroupsInput":{ - "type":"structure", - "required":[ - "applicationName", - "deploymentGroupNames" - ], - "members":{ - "applicationName":{"shape":"ApplicationName"}, - "deploymentGroupNames":{"shape":"DeploymentGroupsList"} - } - }, - "BatchGetDeploymentGroupsOutput":{ - "type":"structure", - "members":{ - "deploymentGroupsInfo":{"shape":"DeploymentGroupInfoList"}, - "errorMessage":{"shape":"ErrorMessage"} - } - }, - "BatchGetDeploymentInstancesInput":{ - "type":"structure", - "required":[ - "deploymentId", - "instanceIds" - ], - "members":{ - "deploymentId":{"shape":"DeploymentId"}, - "instanceIds":{"shape":"InstancesList"} - } - }, - "BatchGetDeploymentInstancesOutput":{ - "type":"structure", - "members":{ - "instancesSummary":{"shape":"InstanceSummaryList"}, - "errorMessage":{"shape":"ErrorMessage"} - } - }, "BatchGetDeploymentsInput":{ "type":"structure", "members":{ @@ -756,12 +1128,6 @@ "instanceInfos":{"shape":"InstanceInfoList"} } }, - "BatchLimitExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, "Boolean":{"type":"boolean"}, "BucketNameFilterRequiredException":{ "type":"structure", @@ -819,8 +1185,7 @@ "ec2TagFilters":{"shape":"EC2TagFilterList"}, "onPremisesInstanceTagFilters":{"shape":"TagFilterList"}, "autoScalingGroups":{"shape":"AutoScalingGroupNameList"}, - "serviceRoleArn":{"shape":"Role"}, - "triggerConfigurations":{"shape":"TriggerConfigList"} + "serviceRoleArn":{"shape":"Role"} } }, "CreateDeploymentGroupOutput":{ @@ -920,8 +1285,8 @@ }, "DeploymentConfigName":{ "type":"string", - "max":100, - "min":1 + "min":1, + "max":100 }, "DeploymentConfigNameRequiredException":{ "type":"structure", @@ -970,14 +1335,9 @@ "onPremisesInstanceTagFilters":{"shape":"TagFilterList"}, "autoScalingGroups":{"shape":"AutoScalingGroupList"}, "serviceRoleArn":{"shape":"Role"}, - "targetRevision":{"shape":"RevisionLocation"}, - "triggerConfigurations":{"shape":"TriggerConfigList"} + "targetRevision":{"shape":"RevisionLocation"} } }, - "DeploymentGroupInfoList":{ - "type":"list", - "member":{"shape":"DeploymentGroupInfo"} - }, "DeploymentGroupLimitExceededException":{ "type":"structure", "members":{ @@ -986,8 +1346,8 @@ }, "DeploymentGroupName":{ "type":"string", - "max":100, - "min":1 + "min":1, + "max":100 }, "DeploymentGroupNameRequiredException":{ "type":"structure", @@ -1359,10 +1719,6 @@ "lifecycleEvents":{"shape":"LifecycleEventList"} } }, - "InstanceSummaryList":{ - "type":"list", - "member":{"shape":"InstanceSummary"} - }, "InstancesList":{ "type":"list", "member":{"shape":"InstanceId"} @@ -1511,12 +1867,6 @@ }, "exception":true }, - "InvalidTriggerConfigException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, "Key":{"type":"string"}, "LifecycleErrorCode":{ "type":"string", @@ -1555,12 +1905,6 @@ "Unknown" ] }, - "LifecycleHookLimitExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, "LifecycleMessage":{"type":"string"}, "ListApplicationRevisionsInput":{ "type":"structure", @@ -1746,17 +2090,6 @@ }, "exception":true }, - "RevisionInfo":{ - "type":"structure", - "members":{ - "revisionLocation":{"shape":"RevisionLocation"}, - "genericRevisionInfo":{"shape":"GenericRevisionInfo"} - } - }, - "RevisionInfoList":{ - "type":"list", - "member":{"shape":"RevisionInfo"} - }, "RevisionLocation":{ "type":"structure", "members":{ @@ -1881,42 +2214,6 @@ } }, "Timestamp":{"type":"timestamp"}, - "TriggerConfig":{ - "type":"structure", - "members":{ - "triggerName":{"shape":"TriggerName"}, - "triggerTargetArn":{"shape":"TriggerTargetArn"}, - "triggerEvents":{"shape":"TriggerEventTypeList"} - } - }, - "TriggerConfigList":{ - "type":"list", - "member":{"shape":"TriggerConfig"} - }, - "TriggerEventType":{ - "type":"string", - "enum":[ - "DeploymentStart", - "DeploymentSuccess", - "DeploymentFailure", - "DeploymentStop", - "InstanceStart", - "InstanceSuccess", - "InstanceFailure" - ] - }, - "TriggerEventTypeList":{ - "type":"list", - "member":{"shape":"TriggerEventType"} - }, - "TriggerName":{"type":"string"}, - "TriggerTargetArn":{"type":"string"}, - "TriggerTargetsLimitExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, "UpdateApplicationInput":{ "type":"structure", "members":{ @@ -1938,8 +2235,7 @@ "ec2TagFilters":{"shape":"EC2TagFilterList"}, "onPremisesInstanceTagFilters":{"shape":"TagFilterList"}, "autoScalingGroups":{"shape":"AutoScalingGroupNameList"}, - "serviceRoleArn":{"shape":"Role"}, - "triggerConfigurations":{"shape":"TriggerConfigList"} + "serviceRoleArn":{"shape":"Role"} } }, "UpdateDeploymentGroupOutput":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/codedeploy/2014-10-06/docs-2.json similarity index 60% rename from vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/codedeploy/2014-10-06/docs-2.json index 578da08bd..f3f5fd6d0 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/codedeploy/2014-10-06/docs-2.json @@ -1,20 +1,16 @@ { "version": "2.0", - "service": "AWS CodeDeploy Overview

This reference guide provides descriptions of the AWS CodeDeploy APIs. For more information about AWS CodeDeploy, see the AWS CodeDeploy User Guide.

Using the APIs

You can use the AWS CodeDeploy APIs to work with the following:

  • Applications are unique identifiers used by AWS CodeDeploy to ensure the correct combinations of revisions, deployment configurations, and deployment groups are being referenced during deployments.

    You can use the AWS CodeDeploy APIs to create, delete, get, list, and update applications.

  • Deployment configurations are sets of deployment rules and success and failure conditions used by AWS CodeDeploy during deployments.

    You can use the AWS CodeDeploy APIs to create, delete, get, and list deployment configurations.

  • Deployment groups are groups of instances to which application revisions can be deployed.

    You can use the AWS CodeDeploy APIs to create, delete, get, list, and update deployment groups.

  • Instances represent Amazon EC2 instances to which application revisions are deployed. Instances are identified by their Amazon EC2 tags or Auto Scaling group names. Instances belong to deployment groups.

    You can use the AWS CodeDeploy APIs to get and list instance.

  • Deployments represent the process of deploying revisions to instances.

    You can use the AWS CodeDeploy APIs to create, get, list, and stop deployments.

  • Application revisions are archive files stored in Amazon S3 buckets or GitHub repositories. These revisions contain source content (such as source code, web pages, executable files, and deployment scripts) along with an application specification (AppSpec) file. (The AppSpec file is unique to AWS CodeDeploy; it defines the deployment actions you want AWS CodeDeploy to execute.) Ffor application revisions stored in Amazon S3 buckets, an application revision is uniquely identified by its Amazon S3 object key and its ETag, version, or both. For application revisions stored in GitHub repositories, an application revision is uniquely identified by its repository name and commit ID. Application revisions are deployed through deployment groups.

    You can use the AWS CodeDeploy APIs to get, list, and register application revisions.

", "operations": { "AddTagsToOnPremisesInstances": "

Adds tags to on-premises instances.

", - "BatchGetApplicationRevisions": "

Gets information about one or more application revisions.

", "BatchGetApplications": "

Gets information about one or more applications.

", - "BatchGetDeploymentGroups": "

Get information about one or more deployment groups.

", - "BatchGetDeploymentInstances": "

Gets information about one or more instance that are part of a deployment group.

", "BatchGetDeployments": "

Gets information about one or more deployments.

", "BatchGetOnPremisesInstances": "

Gets information about one or more on-premises instances.

", - "CreateApplication": "

Creates an application.

", + "CreateApplication": "

Creates a new application.

", "CreateDeployment": "

Deploys an application revision through the specified deployment group.

", - "CreateDeploymentConfig": "

Creates a deployment configuration.

", - "CreateDeploymentGroup": "

Creates a deployment group to which application revisions will be deployed.

", + "CreateDeploymentConfig": "

Creates a new deployment configuration.

", + "CreateDeploymentGroup": "

Creates a new deployment group for application revisions to be deployed to.

", "DeleteApplication": "

Deletes an application.

", - "DeleteDeploymentConfig": "

Deletes a deployment configuration.

A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.", + "DeleteDeploymentConfig": "

Deletes a deployment configuration.

A deployment configuration cannot be deleted if it is currently in use. Also, predefined configurations cannot be deleted.", "DeleteDeploymentGroup": "

Deletes a deployment group.

", "DeregisterOnPremisesInstance": "

Deregisters an on-premises instance.

", "GetApplication": "

Gets information about an application.

", @@ -28,19 +24,20 @@ "ListApplications": "

Lists the applications registered with the applicable IAM user or AWS account.

", "ListDeploymentConfigs": "

Lists the deployment configurations with the applicable IAM user or AWS account.

", "ListDeploymentGroups": "

Lists the deployment groups for an application registered with the applicable IAM user or AWS account.

", - "ListDeploymentInstances": "

Lists the instance for a deployment associated with the applicable IAM user or AWS account.

", - "ListDeployments": "

Lists the deployments in a deployment group for an application registered with the applicable IAM user or AWS account.

", - "ListOnPremisesInstances": "

Gets a list of names for one or more on-premises instances.

Unless otherwise specified, both registered and deregistered on-premises instance names will be listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.

", + "ListDeploymentInstances": "

Lists the instances for a deployment associated with the applicable IAM user or AWS account.

", + "ListDeployments": "

Lists the deployments within a deployment group for an application registered with the applicable IAM user or AWS account.

", + "ListOnPremisesInstances": "

Gets a list of one or more on-premises instance names.

Unless otherwise specified, both registered and deregistered on-premises instance names will be listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.

", "RegisterApplicationRevision": "

Registers with AWS CodeDeploy a revision for the specified application.

", "RegisterOnPremisesInstance": "

Registers an on-premises instance.

", "RemoveTagsFromOnPremisesInstances": "

Removes one or more tags from one or more on-premises instances.

", "StopDeployment": "

Attempts to stop an ongoing deployment.

", - "UpdateApplication": "

Changes the name of an application.

", - "UpdateDeploymentGroup": "

Changes information about a deployment group.

" + "UpdateApplication": "

Changes an existing application's name.

", + "UpdateDeploymentGroup": "

Changes information about an existing deployment group.

" }, + "service": "AWS CodeDeploy Overview

This is the AWS CodeDeploy API Reference. This guide provides descriptions of the AWS CodeDeploy APIs. For additional information, see the AWS CodeDeploy User Guide.

Using the APIs

You can use the AWS CodeDeploy APIs to work with the following items:

  • Applications are unique identifiers that AWS CodeDeploy uses to ensure that the correct combinations of revisions, deployment configurations, and deployment groups are being referenced during deployments.

    You can use the AWS CodeDeploy APIs to create, delete, get, list, and update applications.

  • Deployment configurations are sets of deployment rules and deployment success and failure conditions that AWS CodeDeploy uses during deployments.

    You can use the AWS CodeDeploy APIs to create, delete, get, and list deployment configurations.

  • Deployment groups are groups of instances to which application revisions can be deployed.

    You can use the AWS CodeDeploy APIs to create, delete, get, list, and update deployment groups.

  • Instances represent Amazon EC2 instances to which application revisions are deployed. Instances are identified by their Amazon EC2 tags or Auto Scaling group names. Instances belong to deployment groups.

    You can use the AWS CodeDeploy APIs to get and list instances.

  • Deployments represent the process of deploying revisions to instances.

    You can use the AWS CodeDeploy APIs to create, get, list, and stop deployments.

  • Application revisions are archive files that are stored in Amazon S3 buckets or GitHub repositories. These revisions contain source content (such as source code, web pages, executable files, any deployment scripts, and similar) along with an Application Specification file (AppSpec file). (The AppSpec file is unique to AWS CodeDeploy; it defines a series of deployment actions that you want AWS CodeDeploy to execute.) An application revision is uniquely identified by its Amazon S3 object key and its ETag, version, or both (for application revisions that are stored in Amazon S3 buckets) or by its repository name and commit ID (for applications revisions that are stored in GitHub repositories). Application revisions are deployed through deployment groups.

    You can use the AWS CodeDeploy APIs to get, list, and register application revisions.

", "shapes": { "AddTagsToOnPremisesInstancesInput": { - "base": "

Represents the input of, and adds tags to, an on-premises instance operation.

", + "base": "

Represents the input of an adds tags to on-premises instance operation.

", "refs": { } }, @@ -69,7 +66,7 @@ } }, "ApplicationLimitExceededException": { - "base": "

More applications were attempted to be created than are allowed.

", + "base": "

More applications were attempted to be created than were allowed.

", "refs": { } }, @@ -78,27 +75,24 @@ "refs": { "ApplicationInfo$applicationName": "

The application name.

", "ApplicationsList$member": null, - "BatchGetApplicationRevisionsInput$applicationName": "

The name of an AWS CodeDeploy application about which to get revision information.

", - "BatchGetApplicationRevisionsOutput$applicationName": "

The name of the application that corresponds to the revisions.

", - "BatchGetDeploymentGroupsInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", "CreateApplicationInput$applicationName": "

The name of the application. This name must be unique with the applicable IAM user or AWS account.

", - "CreateDeploymentGroupInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", - "CreateDeploymentInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", - "DeleteApplicationInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", - "DeleteDeploymentGroupInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "CreateDeploymentGroupInput$applicationName": "

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "CreateDeploymentInput$applicationName": "

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "DeleteApplicationInput$applicationName": "

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "DeleteDeploymentGroupInput$applicationName": "

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", "DeploymentGroupInfo$applicationName": "

The application name.

", "DeploymentInfo$applicationName": "

The application name.

", - "GetApplicationInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "GetApplicationInput$applicationName": "

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", "GetApplicationRevisionInput$applicationName": "

The name of the application that corresponds to the revision.

", "GetApplicationRevisionOutput$applicationName": "

The name of the application that corresponds to the revision.

", - "GetDeploymentGroupInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", - "ListApplicationRevisionsInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", - "ListDeploymentGroupsInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "GetDeploymentGroupInput$applicationName": "

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "ListApplicationRevisionsInput$applicationName": "

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "ListDeploymentGroupsInput$applicationName": "

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", "ListDeploymentGroupsOutput$applicationName": "

The application name.

", - "ListDeploymentsInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", - "RegisterApplicationRevisionInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", - "UpdateApplicationInput$applicationName": "

The current name of the application you want to change.

", - "UpdateApplicationInput$newApplicationName": "

The new name to give the application.

", + "ListDeploymentsInput$applicationName": "

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "RegisterApplicationRevisionInput$applicationName": "

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "UpdateApplicationInput$applicationName": "

The current name of the application that you want to change.

", + "UpdateApplicationInput$newApplicationName": "

The new name that you want to change the application to.

", "UpdateDeploymentGroupInput$applicationName": "

The application name corresponding to the deployment group to update.

" } }, @@ -110,7 +104,7 @@ "ApplicationRevisionSortBy": { "base": null, "refs": { - "ListApplicationRevisionsInput$sortBy": "

The column name to use to sort the list results:

  • registerTime: Sort by the time the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort by the time the revisions were first used in a deployment.
  • lastUsedTime: Sort by the time the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

" + "ListApplicationRevisionsInput$sortBy": "

The column name to sort the list results by:

  • registerTime: Sort the list results by when the revisions were registered with AWS CodeDeploy.
  • firstUsedTime: Sort the list results by when the revisions were first used by in a deployment.
  • lastUsedTime: Sort the list results by when the revisions were last used in a deployment.

If not specified or set to null, the results will be returned in an arbitrary order.

" } }, "ApplicationsInfoList": { @@ -122,7 +116,7 @@ "ApplicationsList": { "base": null, "refs": { - "BatchGetApplicationsInput$applicationNames": "

A list of application names separated by spaces.

", + "BatchGetApplicationsInput$applicationNames": "

A list of application names, with multiple application names separated by spaces.

", "ListApplicationsOutput$applications": "

A list of application names.

" } }, @@ -141,9 +135,9 @@ "AutoScalingGroupList": { "base": null, "refs": { - "DeleteDeploymentGroupOutput$hooksNotCleanedUp": "

If the output contains no data, and the corresponding deployment group contained at least one Auto Scaling group, AWS CodeDeploy successfully removed all corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances in the Auto Scaling group. If the output contains data, AWS CodeDeploy could not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances in the Auto Scaling group.

", + "DeleteDeploymentGroupOutput$hooksNotCleanedUp": "

If the output contains no data, and the corresponding deployment group contained at least one Auto Scaling group, AWS CodeDeploy successfully removed all corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances in the Auto Scaling. If the output does contain data, AWS CodeDeploy could not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances in the Auto Scaling group.

", "DeploymentGroupInfo$autoScalingGroups": "

A list of associated Auto Scaling groups.

", - "UpdateDeploymentGroupOutput$hooksNotCleanedUp": "

If the output contains no data, and the corresponding deployment group contained at least one Auto Scaling group, AWS CodeDeploy successfully removed all corresponding Auto Scaling lifecycle event hooks from the AWS account. If the output contains data, AWS CodeDeploy could not remove some Auto Scaling lifecycle event hooks from the AWS account.

" + "UpdateDeploymentGroupOutput$hooksNotCleanedUp": "

If the output contains no data, and the corresponding deployment group contained at least one Auto Scaling group, AWS CodeDeploy successfully removed all corresponding Auto Scaling lifecycle event hooks from the AWS account. If the output does contain data, AWS CodeDeploy could not remove some Auto Scaling lifecycle event hooks from the AWS account.

" } }, "AutoScalingGroupName": { @@ -157,17 +151,7 @@ "base": null, "refs": { "CreateDeploymentGroupInput$autoScalingGroups": "

A list of associated Auto Scaling groups.

", - "UpdateDeploymentGroupInput$autoScalingGroups": "

The replacement list of Auto Scaling groups to be included in the deployment group, if you want to change them. To keep the Auto Scaling groups, enter their names. To remove Auto Scaling groups, do not enter any Auto Scaling group names.

" - } - }, - "BatchGetApplicationRevisionsInput": { - "base": "

Represents the input of a batch get application revisions operation.

", - "refs": { - } - }, - "BatchGetApplicationRevisionsOutput": { - "base": "

Represents the output of a batch get application revisions operation.

", - "refs": { + "UpdateDeploymentGroupInput$autoScalingGroups": "

The replacement list of Auto Scaling groups to be included in the deployment group, if you want to change them.

" } }, "BatchGetApplicationsInput": { @@ -180,26 +164,6 @@ "refs": { } }, - "BatchGetDeploymentGroupsInput": { - "base": "

Represents the input of a batch get deployment groups operation.

", - "refs": { - } - }, - "BatchGetDeploymentGroupsOutput": { - "base": "

Represents the output of a batch get deployment groups operation.

", - "refs": { - } - }, - "BatchGetDeploymentInstancesInput": { - "base": "

Represents the input of a batch get deployment instances operation.

", - "refs": { - } - }, - "BatchGetDeploymentInstancesOutput": { - "base": "

Represents the output of a batch get deployment instance operation.

", - "refs": { - } - }, "BatchGetDeploymentsInput": { "base": "

Represents the input of a batch get deployments operation.

", "refs": { @@ -220,21 +184,16 @@ "refs": { } }, - "BatchLimitExceededException": { - "base": "

The maximum number of names or IDs allowed for this request (100) was exceeded.

", - "refs": { - } - }, "Boolean": { "base": null, "refs": { "ApplicationInfo$linkedToGitHub": "

True if the user has authenticated with GitHub for the specified application; otherwise, false.

", - "CreateDeploymentInput$ignoreApplicationStopFailures": "

If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to an instance to fail, the deployment to that instance will not be considered to have failed at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to an instance, the deployment to that instance will stop, and the deployment to that instance will be considered to have failed.

", - "DeploymentInfo$ignoreApplicationStopFailures": "

If true, then if the deployment causes the ApplicationStop deployment lifecycle event to an instance to fail, the deployment to that instance will not be considered to have failed at that point and will continue on to the BeforeInstall deployment lifecycle event.

If false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to an instance to fail, the deployment to that instance will stop, and the deployment to that instance will be considered to have failed.

" + "CreateDeploymentInput$ignoreApplicationStopFailures": "

If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

", + "DeploymentInfo$ignoreApplicationStopFailures": "

If true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

If false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

" } }, "BucketNameFilterRequiredException": { - "base": "

A bucket name is required, but was not provided.

", + "base": "

A bucket name is required but was not provided.

", "refs": { } }, @@ -247,7 +206,7 @@ "CommitId": { "base": null, "refs": { - "GitHubLocation$commitId": "

The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision.

" + "GitHubLocation$commitId": "

The SHA1 commit ID of the GitHub commit that references the that represents the bundled artifacts for the application revision.

" } }, "CreateApplicationInput": { @@ -311,7 +270,7 @@ } }, "DeploymentAlreadyCompletedException": { - "base": "

The deployment is already complete.

", + "base": "

The deployment is already completed.

", "refs": { } }, @@ -352,14 +311,14 @@ "base": null, "refs": { "CreateDeploymentConfigInput$deploymentConfigName": "

The name of the deployment configuration to create.

", - "CreateDeploymentGroupInput$deploymentConfigName": "

If specified, the deployment configuration name can be either one of the predefined configurations provided with AWS CodeDeploy or a custom deployment configuration that you create by calling the create deployment configuration operation.

CodeDeployDefault.OneAtATime is the default deployment configuration. It is used if a configuration isn't specified for the deployment or the deployment group.

The predefined deployment configurations include the following:

  • CodeDeployDefault.AllAtOnce attempts to deploy an application revision to as many instance as possible at once. The status of the overall deployment will be displayed as Succeeded if the application revision is deployed to one or more of the instances. The status of the overall deployment will be displayed as Failed if the application revision is not deployed to any of the instances. Using an example of nine instance, CodeDeployDefault.AllAtOnce will attempt to deploy to all nine instance at once. The overall deployment will succeed if deployment to even a single instance is successful; it will fail only if deployments to all nine instance fail.

  • CodeDeployDefault.HalfAtATime deploys to up to half of the instances at a time (with fractions rounded down). The overall deployment succeeds if the application revision is deployed to at least half of the instances (with fractions rounded up); otherwise, the deployment fails. In the example of nine instances, it will deploy to up to four instance at a time. The overall deployment succeeds if deployment to five or more instances succeed; otherwise, the deployment fails. The deployment may be successfully deployed to some instances even if the overall deployment fails.

  • CodeDeployDefault.OneAtATime deploys the application revision to only one instance at a time.

    For deployment groups that contain more than one instance:

    • The overall deployment succeeds if the application revision is deployed to all of the instances. The exception to this rule is if deployment to the last instance fails, the overall deployment still succeeds. This is because AWS CodeDeploy allows only one instance at a time to be taken offline with the CodeDeployDefault.OneAtATime configuration.

    • The overall deployment fails as soon as the application revision fails to be deployed to any but the last instance. The deployment may be successfully deployed to some instances even if the overall deployment fails.

    • In an example using nine instance, it will deploy to one instance at a time. The overall deployment succeeds if deployment to the first eight instance is successful; the overall deployment fails if deployment to any of the first eight instance fails.

    For deployment groups that contain only one instance, the overall deployment is successful only if deployment to the single instance is successful

", - "CreateDeploymentInput$deploymentConfigName": "

The name of a deployment configuration associated with the applicable IAM user or AWS account.

If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

", - "DeleteDeploymentConfigInput$deploymentConfigName": "

The name of a deployment configuration associated with the applicable IAM user or AWS account.

", + "CreateDeploymentGroupInput$deploymentConfigName": "

If specified, the deployment configuration name must be one of the predefined values, or it can be a custom deployment configuration:

  • CodeDeployDefault.AllAtOnce deploys an application revision to up to all of the instances at once. The overall deployment succeeds if the application revision deploys to at least one of the instances. The overall deployment fails after the application revision fails to deploy to all of the instances. For example, for 9 instances, deploy to up to all 9 instances at once. The overall deployment succeeds if any of the 9 instances is successfully deployed to, and it fails if all 9 instances fail to be deployed to.
  • CodeDeployDefault.HalfAtATime deploys to up to half of the instances at a time (with fractions rounded down). The overall deployment succeeds if the application revision deploys to at least half of the instances (with fractions rounded up); otherwise, the deployment fails. For example, for 9 instances, deploy to up to 4 instances at a time. The overall deployment succeeds if 5 or more instances are successfully deployed to; otherwise, the deployment fails. Note that the deployment may successfully deploy to some instances, even if the overall deployment fails.
  • CodeDeployDefault.OneAtATime deploys the application revision to only one of the instances at a time. The overall deployment succeeds if the application revision deploys to all of the instances. The overall deployment fails after the application revision first fails to deploy to any one instances. For example, for 9 instances, deploy to one instance at a time. The overall deployment succeeds if all 9 instances are successfully deployed to, and it fails if any of one of the 9 instances fail to be deployed to. Note that the deployment may successfully deploy to some instances, even if the overall deployment fails. This is the default deployment configuration if a configuration isn't specified for either the deployment or the deployment group.

To create a custom deployment configuration, call the create deployment configuration operation.

", + "CreateDeploymentInput$deploymentConfigName": "

The name of an existing deployment configuration associated with the applicable IAM user or AWS account.

If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

", + "DeleteDeploymentConfigInput$deploymentConfigName": "

The name of an existing deployment configuration associated with the applicable IAM user or AWS account.

", "DeploymentConfigInfo$deploymentConfigName": "

The deployment configuration name.

", "DeploymentConfigsList$member": null, "DeploymentGroupInfo$deploymentConfigName": "

The deployment configuration name.

", "DeploymentInfo$deploymentConfigName": "

The deployment configuration name.

", - "GetDeploymentConfigInput$deploymentConfigName": "

The name of a deployment configuration associated with the applicable IAM user or AWS account.

", + "GetDeploymentConfigInput$deploymentConfigName": "

The name of an existing deployment configuration associated with the applicable IAM user or AWS account.

", "UpdateDeploymentGroupInput$deploymentConfigName": "

The replacement deployment configuration name to use, if you want to change it.

" } }, @@ -371,13 +330,13 @@ "DeploymentConfigsList": { "base": null, "refs": { - "ListDeploymentConfigsOutput$deploymentConfigsList": "

A list of deployment configurations, including built-in configurations such as CodeDeployDefault.OneAtATime.

" + "ListDeploymentConfigsOutput$deploymentConfigsList": "

A list of deployment configurations, including the built-in configurations such as CodeDeployDefault.OneAtATime.

" } }, "DeploymentCreator": { "base": null, "refs": { - "DeploymentInfo$creator": "

The means by which the deployment was created:

  • user: A user created the deployment.
  • autoscaling: Auto Scaling created the deployment.
" + "DeploymentInfo$creator": "

How the deployment was created:

  • user: A user created the deployment.
  • autoscaling: Auto Scaling created the deployment.
" } }, "DeploymentDoesNotExistException": { @@ -405,16 +364,9 @@ "DeploymentGroupInfo": { "base": "

Information about a deployment group.

", "refs": { - "DeploymentGroupInfoList$member": null, "GetDeploymentGroupOutput$deploymentGroupInfo": "

Information about the deployment group.

" } }, - "DeploymentGroupInfoList": { - "base": null, - "refs": { - "BatchGetDeploymentGroupsOutput$deploymentGroupsInfo": "

Information about the deployment groups.

" - } - }, "DeploymentGroupLimitExceededException": { "base": "

The deployment groups limit was exceeded.

", "refs": { @@ -423,15 +375,15 @@ "DeploymentGroupName": { "base": null, "refs": { - "CreateDeploymentGroupInput$deploymentGroupName": "

The name of a new deployment group for the specified application.

", - "CreateDeploymentInput$deploymentGroupName": "

The name of the deployment group.

", + "CreateDeploymentGroupInput$deploymentGroupName": "

The name of an existing deployment group for the specified application.

", + "CreateDeploymentInput$deploymentGroupName": "

The deployment group's name.

", "DeleteDeploymentGroupInput$deploymentGroupName": "

The name of an existing deployment group for the specified application.

", "DeploymentGroupInfo$deploymentGroupName": "

The deployment group name.

", "DeploymentGroupsList$member": null, "DeploymentInfo$deploymentGroupName": "

The deployment group name.

", "GetDeploymentGroupInput$deploymentGroupName": "

The name of an existing deployment group for the specified application.

", "ListDeploymentsInput$deploymentGroupName": "

The name of an existing deployment group for the specified application.

", - "UpdateDeploymentGroupInput$currentDeploymentGroupName": "

The current name of the deployment group.

", + "UpdateDeploymentGroupInput$currentDeploymentGroupName": "

The current name of the existing deployment group.

", "UpdateDeploymentGroupInput$newDeploymentGroupName": "

The new name of the deployment group, if you want to change it.

" } }, @@ -443,19 +395,17 @@ "DeploymentGroupsList": { "base": null, "refs": { - "BatchGetDeploymentGroupsInput$deploymentGroupNames": "

The deployment groups' names.

", - "GenericRevisionInfo$deploymentGroups": "

The deployment groups for which this is the current target revision.

", + "GenericRevisionInfo$deploymentGroups": "

A list of deployment groups that use this revision.

", "ListDeploymentGroupsOutput$deploymentGroups": "

A list of corresponding deployment group names.

" } }, "DeploymentId": { "base": null, "refs": { - "BatchGetDeploymentInstancesInput$deploymentId": "

The unique ID of a deployment.

", "CreateDeploymentOutput$deploymentId": "

A unique deployment ID.

", "DeploymentInfo$deploymentId": "

The deployment ID.

", "DeploymentsList$member": null, - "GetDeploymentInput$deploymentId": "

A deployment ID associated with the applicable IAM user or AWS account.

", + "GetDeploymentInput$deploymentId": "

An existing deployment ID associated with the applicable IAM user or AWS account.

", "GetDeploymentInstanceInput$deploymentId": "

The unique ID of a deployment.

", "InstanceSummary$deploymentId": "

The deployment ID.

", "ListDeploymentInstancesInput$deploymentId": "

The unique ID of a deployment.

", @@ -500,7 +450,7 @@ "DeploymentStatusList": { "base": null, "refs": { - "ListDeploymentsInput$includeOnlyStatuses": "

A subset of deployments to list by status:

  • Created: Include created deployments in the resulting list.
  • Queued: Include queued deployments in the resulting list.
  • In Progress: Include in-progress deployments in the resulting list.
  • Succeeded: Include successful deployments in the resulting list.
  • Failed: Include failed deployments in the resulting list.
  • Stopped: Include stopped deployments in the resulting list.
" + "ListDeploymentsInput$includeOnlyStatuses": "

A subset of deployments to list, by status:

  • Created: Include in the resulting list created deployments.
  • Queued: Include in the resulting list queued deployments.
  • In Progress: Include in the resulting list in-progress deployments.
  • Succeeded: Include in the resulting list succeeded deployments.
  • Failed: Include in the resulting list failed deployments.
  • Aborted: Include in the resulting list aborted deployments.
" } }, "DeploymentsInfoList": { @@ -512,7 +462,7 @@ "DeploymentsList": { "base": null, "refs": { - "BatchGetDeploymentsInput$deploymentIds": "

A list of deployment IDs, separated by spaces.

", + "BatchGetDeploymentsInput$deploymentIds": "

A list of deployment IDs, with multiple deployment IDs separated by spaces.

", "ListDeploymentsOutput$deployments": "

A list of deployment IDs.

" } }, @@ -531,7 +481,7 @@ } }, "DescriptionTooLongException": { - "base": "

The description is too long.

", + "base": "

The description that was provided is too long.

", "refs": { } }, @@ -550,9 +500,9 @@ "EC2TagFilterList": { "base": null, "refs": { - "CreateDeploymentGroupInput$ec2TagFilters": "

The Amazon EC2 tags on which to filter.

", - "DeploymentGroupInfo$ec2TagFilters": "

The Amazon EC2 tags on which to filter.

", - "UpdateDeploymentGroupInput$ec2TagFilters": "

The replacement set of Amazon EC2 tags on which to filter, if you want to change them. To keep the existing tags, enter their names. To remove tags, do not enter any tag names.

" + "CreateDeploymentGroupInput$ec2TagFilters": "

The Amazon EC2 tags to filter on.

", + "DeploymentGroupInfo$ec2TagFilters": "

The Amazon EC2 tags to filter on.

", + "UpdateDeploymentGroupInput$ec2TagFilters": "

The replacement set of Amazon EC2 tags to filter on, if you want to change them.

" } }, "EC2TagFilterType": { @@ -570,7 +520,7 @@ "ErrorCode": { "base": null, "refs": { - "ErrorInformation$code": "

The error code:

  • APPLICATION_MISSING: The application was missing. This error code will most likely be 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 will most likely be 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 the Amazon EC2 service.
  • NO_INSTANCES: No instance were specified, or no instance can be found.
  • OVER_MAX_INSTANCES: The maximum number of instance 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 will most likely be raised if the revision is deleted after the deployment is created but before it is started.
" + "ErrorInformation$code": "

The error code:

  • APPLICATION_MISSING: The application was missing. Note that this error code will most likely be raised if the application is deleted after the deployment is created but before it starts.
  • DEPLOYMENT_GROUP_MISSING: The deployment group was missing. Note that this error code will most likely be raised if the deployment group is deleted after the deployment is created but before it starts.
  • HEALTH_CONSTRAINTS: The deployment failed on too many instances to be able to successfully deploy within the specified instance health constraints.
  • HEALTH_CONSTRAINTS_INVALID: The revision can never successfully deploy within the instance health constraints as 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 the Amazon EC2 service.
  • 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. Note that this error code will most likely be raised if the revision is deleted after the deployment is created but before it starts.
" } }, "ErrorInformation": { @@ -582,17 +532,13 @@ "ErrorMessage": { "base": null, "refs": { - "BatchGetApplicationRevisionsOutput$errorMessage": "

Information about errors that may have occurred during the API call.

", - "BatchGetDeploymentGroupsOutput$errorMessage": "

Information about errors that may have occurred during the API call.

", - "BatchGetDeploymentInstancesOutput$errorMessage": "

Information about errors that may have occurred during the API call.

", "ErrorInformation$message": "

An accompanying error message.

" } }, "GenericRevisionInfo": { "base": "

Information about an application revision.

", "refs": { - "GetApplicationRevisionOutput$revisionInfo": "

General information about the revision.

", - "RevisionInfo$genericRevisionInfo": null + "GetApplicationRevisionOutput$revisionInfo": "

General information about the revision.

" } }, "GetApplicationInput": { @@ -666,7 +612,7 @@ } }, "GitHubLocation": { - "base": "

Information about the location of application artifacts stored in GitHub.

", + "base": "

Information about the location of application artifacts that are stored in GitHub.

", "refs": { "RevisionLocation$gitHubLocation": null } @@ -697,11 +643,11 @@ "InstanceCount": { "base": null, "refs": { - "DeploymentOverview$Pending": "

The number of instances in the deployment in a pending state.

", - "DeploymentOverview$InProgress": "

The number of instances in which the deployment is in progress.

", - "DeploymentOverview$Succeeded": "

The number of instances in the deployment to which revisions have been successfully deployed.

", - "DeploymentOverview$Failed": "

The number of instances in the deployment in a failed state.

", - "DeploymentOverview$Skipped": "

The number of instances in the deployment in a skipped state.

" + "DeploymentOverview$Pending": "

The number of instances that are pending in the deployment.

", + "DeploymentOverview$InProgress": "

The number of instances that are in progress in the deployment.

", + "DeploymentOverview$Succeeded": "

The number of instances that have succeeded in the deployment.

", + "DeploymentOverview$Failed": "

The number of instances that have failed in the deployment.

", + "DeploymentOverview$Skipped": "

The number of instances that have been skipped in the deployment.

" } }, "InstanceDoesNotExistException": { @@ -712,7 +658,7 @@ "InstanceId": { "base": null, "refs": { - "GetDeploymentInstanceInput$instanceId": "

The unique ID of an instance in the deployment group.

", + "GetDeploymentInstanceInput$instanceId": "

The unique ID of an instance in the deployment's deployment group.

", "InstanceSummary$instanceId": "

The instance ID.

", "InstancesList$member": null } @@ -744,7 +690,7 @@ "base": null, "refs": { "DeregisterOnPremisesInstanceInput$instanceName": "

The name of the on-premises instance to deregister.

", - "GetOnPremisesInstanceInput$instanceName": "

The name of the on-premises instance about which to get information.

", + "GetOnPremisesInstanceInput$instanceName": "

The name of the on-premises instance to get information about

", "InstanceInfo$instanceName": "

The name of the on-premises instance.

", "InstanceNameList$member": null, "RegisterOnPremisesInstanceInput$instanceName": "

The name of the on-premises instance to register.

" @@ -758,10 +704,10 @@ "InstanceNameList": { "base": null, "refs": { - "AddTagsToOnPremisesInstancesInput$instanceNames": "

The names of the on-premises instances to which to add tags.

", - "BatchGetOnPremisesInstancesInput$instanceNames": "

The names of the on-premises instances about which to get information.

", + "AddTagsToOnPremisesInstancesInput$instanceNames": "

The names of the on-premises instances to add tags to.

", + "BatchGetOnPremisesInstancesInput$instanceNames": "

The names of the on-premises instances to get information about.

", "ListOnPremisesInstancesOutput$instanceNames": "

The list of matching on-premises instance names.

", - "RemoveTagsFromOnPremisesInstancesInput$instanceNames": "

The names of the on-premises instances from which to remove tags.

" + "RemoveTagsFromOnPremisesInstancesInput$instanceNames": "

The names of the on-premises instances to remove tags from.

" } }, "InstanceNameRequiredException": { @@ -784,27 +730,19 @@ "InstanceStatusList": { "base": null, "refs": { - "ListDeploymentInstancesInput$instanceStatusFilter": "

A subset of instances to list by status:

  • Pending: Include those instance with pending deployments.
  • InProgress: Include those instance where deployments are still in progress.
  • Succeeded: Include those instances with successful deployments.
  • Failed: Include those instance with failed deployments.
  • Skipped: Include those instance with skipped deployments.
  • Unknown: Include those instance with deployments in an unknown state.
" + "ListDeploymentInstancesInput$instanceStatusFilter": "

A subset of instances to list, by status:

  • Pending: Include in the resulting list those instances with pending deployments.
  • InProgress: Include in the resulting list those instances with in-progress deployments.
  • Succeeded: Include in the resulting list those instances with succeeded deployments.
  • Failed: Include in the resulting list those instances with failed deployments.
  • Skipped: Include in the resulting list those instances with skipped deployments.
  • Unknown: Include in the resulting list those instances with deployments in an unknown state.
" } }, "InstanceSummary": { "base": "

Information about an instance in a deployment.

", "refs": { - "GetDeploymentInstanceOutput$instanceSummary": "

Information about the instance.

", - "InstanceSummaryList$member": null - } - }, - "InstanceSummaryList": { - "base": null, - "refs": { - "BatchGetDeploymentInstancesOutput$instancesSummary": "

Information about the instance.

" + "GetDeploymentInstanceOutput$instanceSummary": "

Information about the instance.

" } }, "InstancesList": { "base": null, "refs": { - "BatchGetDeploymentInstancesInput$instanceIds": "

The unique IDs of instances in the deployment group.

", - "ListDeploymentInstancesOutput$instancesList": "

A list of instance IDs.

" + "ListDeploymentInstancesOutput$instancesList": "

A list of instances IDs.

" } }, "InvalidApplicationNameException": { @@ -873,7 +811,7 @@ } }, "InvalidMinimumHealthyHostValueException": { - "base": "

The minimum healthy instance value was specified in an invalid format.

", + "base": "

The minimum healthy instances value was specified in an invalid format.

", "refs": { } }, @@ -927,11 +865,6 @@ "refs": { } }, - "InvalidTriggerConfigException": { - "base": "

The trigger was specified in an invalid format.

", - "refs": { - } - }, "Key": { "base": null, "refs": { @@ -967,12 +900,7 @@ "LifecycleEventStatus": { "base": null, "refs": { - "LifecycleEvent$status": "

The deployment lifecycle event status:

  • Pending: The deployment lifecycle event is pending.
  • InProgress: The deployment lifecycle event is in progress.
  • Succeeded: The deployment lifecycle event ran successfully.
  • Failed: The deployment lifecycle event has failed.
  • Skipped: The deployment lifecycle event has been skipped.
  • Unknown: The deployment lifecycle event is unknown.
" - } - }, - "LifecycleHookLimitExceededException": { - "base": "

The limit for lifecycle hooks was exceeded.

", - "refs": { + "LifecycleEvent$status": "

The deployment lifecycle event status:

  • Pending: The deployment lifecycle event is pending.
  • InProgress: The deployment lifecycle event is in progress.
  • Succeeded: The deployment lifecycle event has succeeded.
  • Failed: The deployment lifecycle event has failed.
  • Skipped: The deployment lifecycle event has been skipped.
  • Unknown: The deployment lifecycle event is unknown.
" } }, "LifecycleMessage": { @@ -1054,13 +982,13 @@ "ListStateFilterAction": { "base": null, "refs": { - "ListApplicationRevisionsInput$deployed": "

Whether to list revisions based on whether the revision is the target revision of an deployment group:

  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions.
" + "ListApplicationRevisionsInput$deployed": "

Whether to list revisions based on whether the revision is the target revision of an deployment group:

  • include: List revisions that are target revisions of a deployment group.
  • exclude: Do not list revisions that are target revisions of a deployment group.
  • ignore: List all revisions, regardless of whether they are target revisions of a deployment group.
" } }, "LogTail": { "base": null, "refs": { - "Diagnostics$logTail": "

The last portion of the diagnostic log.

If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.

" + "Diagnostics$logTail": "

The last portion of the associated diagnostic log.

" } }, "Message": { @@ -1070,41 +998,41 @@ } }, "MinimumHealthyHosts": { - "base": "

Information about minimum healthy instance.

", + "base": "

Information about minimum healthy instances.

", "refs": { - "CreateDeploymentConfigInput$minimumHealthyHosts": "

The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value.

The type parameter takes either of the following values:

  • HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
  • FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances.

The value parameter takes an integer.

For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.

", - "DeploymentConfigInfo$minimumHealthyHosts": "

Information about the number or percentage of minimum healthy instance.

" + "CreateDeploymentConfigInput$minimumHealthyHosts": "

The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value.

The type parameter takes either of the following values:

  • HOST_COUNT: The value parameter represents the minimum number of healthy instances, as an absolute value.
  • FLEET_PERCENT: The value parameter represents the minimum number of healthy instances, as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, then at the start of the deployment AWS CodeDeploy converts the percentage to the equivalent number of instances and rounds fractional instances up.

The value parameter takes an integer.

For example, to set a minimum of 95% healthy instances, specify a type of FLEET_PERCENT and a value of 95.

", + "DeploymentConfigInfo$minimumHealthyHosts": "

Information about the number or percentage of minimum healthy instances.

" } }, "MinimumHealthyHostsType": { "base": null, "refs": { - "MinimumHealthyHosts$type": "

The minimum healthy instance type:

  • HOST_COUNT: The minimum number of healthy instance as an absolute value.
  • FLEET_PERCENT: The minimum number of healthy instance as a percentage of the total number of instance in the deployment.

In an example of nine instance, if a HOST_COUNT of six is specified, deploy to up to three instances at a time. The deployment will be successful if six or more instances are deployed to successfully; otherwise, the deployment fails. If a FLEET_PERCENT of 40 is specified, deploy to up to five instance at a time. The deployment will be successful if four or more instance are deployed to successfully; otherwise, the deployment fails.

In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime will return a minimum healthy instance type of MOST_CONCURRENCY and a value of 1. This means a deployment to only one instance at a time. (You cannot set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In addition, with CodeDeployDefault.OneAtATime, AWS CodeDeploy will try to ensure that all instances but one are kept in a healthy state during the deployment. Although this allows one instance at a time to be taken offline for a new deployment, it also means that if the deployment to the last instance fails, the overall deployment still succeeds." + "MinimumHealthyHosts$type": "

The minimum healthy instances type:

  • HOST_COUNT: The minimum number of healthy instances, as an absolute value.
  • FLEET_PERCENT: The minimum number of healthy instances, as a percentage of the total number of instances in the deployment.

For example, for 9 instances, if a HOST_COUNT of 6 is specified, deploy to up to 3 instances at a time. The deployment succeeds if 6 or more instances are successfully deployed to; otherwise, the deployment fails. If a FLEET_PERCENT of 40 is specified, deploy to up to 5 instances at a time. The deployment succeeds if 4 or more instances are successfully deployed to; otherwise, the deployment fails.

In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime will return a minimum healthy instances type of MOST_CONCURRENCY and a value of 1. This means a deployment to only one instances at a time. (You cannot set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.)" } }, "MinimumHealthyHostsValue": { "base": null, "refs": { - "MinimumHealthyHosts$value": "

The minimum healthy instance value.

" + "MinimumHealthyHosts$value": "

The minimum healthy instances value.

" } }, "NextToken": { "base": null, "refs": { - "ListApplicationRevisionsInput$nextToken": "

An identifier returned from the previous list application revisions call. It can be used to return the next set of applications in the list.

", - "ListApplicationRevisionsOutput$nextToken": "

If a large amount of information is returned, an identifier will also be returned. It can be used in a subsequent list application revisions call to return the next set of application revisions in the list.

", - "ListApplicationsInput$nextToken": "

An identifier returned from the previous list applications call. It can be used to return the next set of applications in the list.

", - "ListApplicationsOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list applications call to return the next set of applications, will also be returned. in the list.

", - "ListDeploymentConfigsInput$nextToken": "

An identifier returned from the previous list deployment configurations call. It can be used to return the next set of deployment configurations in the list.

", - "ListDeploymentConfigsOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployment configurations call to return the next set of deployment configurations in the list.

", - "ListDeploymentGroupsInput$nextToken": "

An identifier returned from the previous list deployment groups call. It can be used to return the next set of deployment groups in the list.

", - "ListDeploymentGroupsOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployment groups call to return the next set of deployment groups in the list.

", - "ListDeploymentInstancesInput$nextToken": "

An identifier returned from the previous list deployment instances call. It can be used to return the next set of deployment instances in the list.

", - "ListDeploymentInstancesOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployment instances call to return the next set of deployment instances in the list.

", - "ListDeploymentsInput$nextToken": "

An identifier returned from the previous list deployments call. It can be used to return the next set of deployments in the list.

", - "ListDeploymentsOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.

", - "ListOnPremisesInstancesInput$nextToken": "

An identifier returned from the previous list on-premises instances call. It can be used to return the next set of on-premises instances in the list.

", - "ListOnPremisesInstancesOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list on-premises instances call to return the next set of on-premises instances in the list.

" + "ListApplicationRevisionsInput$nextToken": "

An identifier that was returned from the previous list application revisions call, which can be used to return the next set of applications in the list.

", + "ListApplicationRevisionsOutput$nextToken": "

If the amount of information that is returned is significantly large, an identifier will also be returned, which can be used in a subsequent list application revisions call to return the next set of application revisions in the list.

", + "ListApplicationsInput$nextToken": "

An identifier that was returned from the previous list applications call, which can be used to return the next set of applications in the list.

", + "ListApplicationsOutput$nextToken": "

If the amount of information that is returned is significantly large, an identifier will also be returned, which can be used in a subsequent list applications call to return the next set of applications in the list.

", + "ListDeploymentConfigsInput$nextToken": "

An identifier that was returned from the previous list deployment configurations call, which can be used to return the next set of deployment configurations in the list.

", + "ListDeploymentConfigsOutput$nextToken": "

If the amount of information that is returned is significantly large, an identifier will also be returned, which can be used in a subsequent list deployment configurations call to return the next set of deployment configurations in the list.

", + "ListDeploymentGroupsInput$nextToken": "

An identifier that was returned from the previous list deployment groups call, which can be used to return the next set of deployment groups in the list.

", + "ListDeploymentGroupsOutput$nextToken": "

If the amount of information that is returned is significantly large, an identifier will also be returned, which can be used in a subsequent list deployment groups call to return the next set of deployment groups in the list.

", + "ListDeploymentInstancesInput$nextToken": "

An identifier that was returned from the previous list deployment instances call, which can be used to return the next set of deployment instances in the list.

", + "ListDeploymentInstancesOutput$nextToken": "

If the amount of information that is returned is significantly large, an identifier will also be returned, which can be used in a subsequent list deployment instances call to return the next set of deployment instances in the list.

", + "ListDeploymentsInput$nextToken": "

An identifier that was returned from the previous list deployments call, which can be used to return the next set of deployments in the list.

", + "ListDeploymentsOutput$nextToken": "

If the amount of information that is returned is significantly large, an identifier will also be returned, which can be used in a subsequent list deployments call to return the next set of deployments in the list.

", + "ListOnPremisesInstancesInput$nextToken": "

An identifier that was returned from the previous list on-premises instances call, which can be used to return the next set of on-premises instances in the list.

", + "ListOnPremisesInstancesOutput$nextToken": "

If the amount of information that is returned is significantly large, an identifier will also be returned, which can be used in a subsequent list on-premises instances call to return the next set of on-premises instances in the list.

" } }, "RegisterApplicationRevisionInput": { @@ -1113,14 +1041,14 @@ } }, "RegisterOnPremisesInstanceInput": { - "base": "

Represents the input of the register on-premises instance operation.

", + "base": "

Represents the input of register on-premises instance operation.

", "refs": { } }, "RegistrationStatus": { "base": null, "refs": { - "ListOnPremisesInstancesInput$registrationStatus": "

The registration status of the on-premises instances:

  • Deregistered: Include deregistered on-premises instances in the resulting list.
  • Registered: Include registered on-premises instances in the resulting list.
" + "ListOnPremisesInstancesInput$registrationStatus": "

The on-premises instances registration status:

  • Deregistered: Include in the resulting list deregistered on-premises instances.
  • Registered: Include in the resulting list registered on-premises instances.
" } }, "RemoveTagsFromOnPremisesInstancesInput": { @@ -1131,7 +1059,7 @@ "Repository": { "base": null, "refs": { - "GitHubLocation$repository": "

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.

" + "GitHubLocation$repository": "

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.

" } }, "RevisionDoesNotExistException": { @@ -1139,42 +1067,28 @@ "refs": { } }, - "RevisionInfo": { - "base": "

Information about an application revision.

", - "refs": { - "RevisionInfoList$member": null - } - }, - "RevisionInfoList": { - "base": null, - "refs": { - "BatchGetApplicationRevisionsOutput$revisions": "

Additional information about the revisions, including the type and location.

" - } - }, "RevisionLocation": { - "base": "

Information about the location of an application revision.

", - "refs": { - "CreateDeploymentInput$revision": "

The type and location of the revision to deploy.

", - "DeploymentGroupInfo$targetRevision": "

Information about the deployment group's target revision, including type and location.

", - "DeploymentInfo$revision": "

Information about the location of stored application artifacts and the service from which to retrieve them.

", - "GetApplicationRevisionInput$revision": "

Information about the application revision to get, including type and location.

", - "GetApplicationRevisionOutput$revision": "

Additional information about the revision, including type and location.

", - "RegisterApplicationRevisionInput$revision": "

Information about the application revision to register, including type and location.

", - "RevisionInfo$revisionLocation": null, + "base": "

Information about an application revision's location.

", + "refs": { + "CreateDeploymentInput$revision": "

The type of revision to deploy, along with information about the revision's location.

", + "DeploymentGroupInfo$targetRevision": "

Information about the deployment group's target revision, including the revision's type and its location.

", + "DeploymentInfo$revision": "

Information about the location of application artifacts that are stored and the service to retrieve them from.

", + "GetApplicationRevisionInput$revision": "

Information about the application revision to get, including the revision's type and its location.

", + "GetApplicationRevisionOutput$revision": "

Additional information about the revision, including the revision's type and its location.

", + "RegisterApplicationRevisionInput$revision": "

Information about the application revision to register, including the revision's type and its location.

", "RevisionLocationList$member": null } }, "RevisionLocationList": { "base": null, "refs": { - "BatchGetApplicationRevisionsInput$revisions": "

Information to get about the application revisions, including type and location.

", - "ListApplicationRevisionsOutput$revisions": "

A list of locations that contain the matching revisions.

" + "ListApplicationRevisionsOutput$revisions": "

A list of revision locations that contain the matching revisions.

" } }, "RevisionLocationType": { "base": null, "refs": { - "RevisionLocation$revisionType": "

The type of application revision:

  • S3: An application revision stored in Amazon S3.
  • GitHub: An application revision stored in GitHub.
" + "RevisionLocation$revisionType": "

The application revision's type:

  • S3: An application revision stored in Amazon S3.
  • GitHub: An application revision stored in GitHub.
" } }, "RevisionRequiredException": { @@ -1187,7 +1101,7 @@ "refs": { "CreateDeploymentGroupInput$serviceRoleArn": "

A service role ARN that allows AWS CodeDeploy to act on the user's behalf when interacting with AWS services.

", "DeploymentGroupInfo$serviceRoleArn": "

A service role ARN.

", - "UpdateDeploymentGroupInput$serviceRoleArn": "

A replacement ARN for the service role, if you want to change it.

" + "UpdateDeploymentGroupInput$serviceRoleArn": "

A replacement service role's ARN, if you want to change it.

" } }, "RoleRequiredException": { @@ -1198,19 +1112,19 @@ "S3Bucket": { "base": null, "refs": { - "ListApplicationRevisionsInput$s3Bucket": "

An Amazon S3 bucket name to limit the search for revisions.

If set to null, all of the user's buckets will be searched.

", + "ListApplicationRevisionsInput$s3Bucket": "

A specific Amazon S3 bucket name to limit the search for revisions.

If set to null, then all of the user's buckets will be searched.

", "S3Location$bucket": "

The name of the Amazon S3 bucket where the application revision is stored.

" } }, "S3Key": { "base": null, "refs": { - "ListApplicationRevisionsInput$s3KeyPrefix": "

A key prefix for the set of Amazon S3 objects to limit the search for revisions.

", + "ListApplicationRevisionsInput$s3KeyPrefix": "

A specific key prefix for the set of Amazon S3 objects to limit the search for revisions.

", "S3Location$key": "

The name of the Amazon S3 object that represents the bundled artifacts for the application revision.

" } }, "S3Location": { - "base": "

Information about the location of application artifacts stored in Amazon S3.

", + "base": "

Information about the location of application artifacts that are stored in Amazon S3.

", "refs": { "RevisionLocation$s3Location": null } @@ -1224,7 +1138,7 @@ "SortOrder": { "base": null, "refs": { - "ListApplicationRevisionsInput$sortOrder": "

The order in which to sort the list results:

  • ascending: ascending order.
  • descending: descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

" + "ListApplicationRevisionsInput$sortOrder": "

The order to sort the list results by:

  • ascending: Sort the list of results in ascending order.
  • descending: Sort the list of results in descending order.

If not specified, the results will be sorted in ascending order.

If set to null, the results will be sorted in an arbitrary order.

" } }, "StopDeploymentInput": { @@ -1240,7 +1154,7 @@ "StopStatus": { "base": null, "refs": { - "StopDeploymentOutput$status": "

The status of the stop deployment operation:

  • Pending: The stop operation is pending.
  • Succeeded: The stop operation was successful.
" + "StopDeploymentOutput$status": "

The status of the stop deployment operation:

  • Pending: The stop operation is pending.
  • Succeeded: The stop operation succeeded.
" } }, "Tag": { @@ -1258,10 +1172,10 @@ "TagFilterList": { "base": null, "refs": { - "CreateDeploymentGroupInput$onPremisesInstanceTagFilters": "

The on-premises instance tags on which to filter.

", - "DeploymentGroupInfo$onPremisesInstanceTagFilters": "

The on-premises instance tags on which to filter.

", - "ListOnPremisesInstancesInput$tagFilters": "

The on-premises instance tags that will be used to restrict the corresponding on-premises instance names returned.

", - "UpdateDeploymentGroupInput$onPremisesInstanceTagFilters": "

The replacement set of on-premises instance tags on which to filter, if you want to change them. To keep the existing tags, enter their names. To remove tags, do not enter any tag names.

" + "CreateDeploymentGroupInput$onPremisesInstanceTagFilters": "

The on-premises instance tags to filter on.

", + "DeploymentGroupInfo$onPremisesInstanceTagFilters": "

The on-premises instance tags to filter on.

", + "ListOnPremisesInstancesInput$tagFilters": "

The on-premises instance tags that will be used to restrict the corresponding on-premises instance names that are returned.

", + "UpdateDeploymentGroupInput$onPremisesInstanceTagFilters": "

The replacement set of on-premises instance tags for filter on, if you want to change them.

" } }, "TagFilterType": { @@ -1278,8 +1192,8 @@ "TagList": { "base": null, "refs": { - "AddTagsToOnPremisesInstancesInput$tags": "

The tag key-value pairs to add to the on-premises instances.

Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.

", - "InstanceInfo$tags": "

The tags currently associated with the on-premises instance.

", + "AddTagsToOnPremisesInstancesInput$tags": "

The tag key-value pairs to add to the on-premises instances.

Keys and values are both required. Keys cannot be nulls or empty strings. Value-only tags are not allowed.

", + "InstanceInfo$tags": "

The tags that are currently associated with the on-premises instance.

", "RemoveTagsFromOnPremisesInstancesInput$tags": "

The tag key-value pairs to remove from the on-premises instances.

" } }, @@ -1291,70 +1205,27 @@ "TimeRange": { "base": "

Information about a time range.

", "refs": { - "ListDeploymentsInput$createTimeRange": "

A time range (start and end) for returning a subset of the list of deployments.

" + "ListDeploymentsInput$createTimeRange": "

A deployment creation start- and end-time range for returning a subset of the list of deployments.

" } }, "Timestamp": { "base": null, "refs": { - "ApplicationInfo$createTime": "

The time at which the application was created.

", - "DeploymentConfigInfo$createTime": "

The time at which the deployment configuration was created.

", + "ApplicationInfo$createTime": "

The time that the application was created.

", + "DeploymentConfigInfo$createTime": "

The time that the deployment configuration was created.

", "DeploymentInfo$createTime": "

A timestamp indicating when the deployment was created.

", - "DeploymentInfo$startTime": "

A timestamp indicating when the deployment was deployed to the deployment group.

In some cases, the reported value of the start time may be later than the complete time. This is due to differences in the clock settings of back-end servers that participate in the deployment process.

", - "DeploymentInfo$completeTime": "

A timestamp indicating when the deployment was complete.

", + "DeploymentInfo$startTime": "

A timestamp indicating when the deployment began deploying to the deployment group.

Note that in some cases, the reported value of the start time may be later than the complete time. This is due to differences in the clock settings of various back-end servers that participate in the overall deployment process.

", + "DeploymentInfo$completeTime": "

A timestamp indicating when the deployment was completed.

", "GenericRevisionInfo$firstUsedTime": "

When the revision was first used by AWS CodeDeploy.

", "GenericRevisionInfo$lastUsedTime": "

When the revision was last used by AWS CodeDeploy.

", "GenericRevisionInfo$registerTime": "

When the revision was registered with AWS CodeDeploy.

", - "InstanceInfo$registerTime": "

The time at which the on-premises instance was registered.

", - "InstanceInfo$deregisterTime": "

If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.

", + "InstanceInfo$registerTime": "

The time that the on-premises instance was registered.

", + "InstanceInfo$deregisterTime": "

If the on-premises instance was deregistered, the time that the on-premises instance was deregistered.

", "InstanceSummary$lastUpdatedAt": "

A timestamp indicating when the instance information was last updated.

", "LifecycleEvent$startTime": "

A timestamp indicating when the deployment lifecycle event started.

", "LifecycleEvent$endTime": "

A timestamp indicating when the deployment lifecycle event ended.

", - "TimeRange$start": "

The start time of the time range.

Specify null to leave the start time open-ended.", - "TimeRange$end": "

The end time of the time range.

Specify null to leave the end time open-ended." - } - }, - "TriggerConfig": { - "base": "

Information about notification triggers for the deployment group.

", - "refs": { - "TriggerConfigList$member": null - } - }, - "TriggerConfigList": { - "base": null, - "refs": { - "CreateDeploymentGroupInput$triggerConfigurations": "

Information about triggers to create when the deployment group is created.

", - "DeploymentGroupInfo$triggerConfigurations": "

A list of associated triggers.

", - "UpdateDeploymentGroupInput$triggerConfigurations": "

Information about triggers to change when the deployment group is updated.

" - } - }, - "TriggerEventType": { - "base": null, - "refs": { - "TriggerEventTypeList$member": null - } - }, - "TriggerEventTypeList": { - "base": null, - "refs": { - "TriggerConfig$triggerEvents": "

The event type or types for which notifications are triggered.

The following event type values are supported:

  • DEPLOYMENT_START
  • DEPLOYMENT_SUCCESS
  • DEPLOYMENT_FAILURE
  • DEPLOYMENT_STOP
  • INSTANCE_START
  • INSTANCE_SUCCESS
  • INSTANCE_FAILURE
" - } - }, - "TriggerName": { - "base": null, - "refs": { - "TriggerConfig$triggerName": "

The name of the notification trigger.

" - } - }, - "TriggerTargetArn": { - "base": null, - "refs": { - "TriggerConfig$triggerTargetArn": "

The ARN of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.

" - } - }, - "TriggerTargetsLimitExceededException": { - "base": "

The maximum allowed number of triggers was exceeded.

", - "refs": { + "TimeRange$start": "

The time range's start time.

Specify null to leave the time range's start time open-ended.", + "TimeRange$end": "

The time range's end time.

Specify null to leave the time range's end time open-ended." } }, "UpdateApplicationInput": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/codedeploy/2014-10-06/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/codedeploy/2014-10-06/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/codepipeline/2015-07-09/api-2.json similarity index 82% rename from vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/codepipeline/2015-07-09/api-2.json index febdffc8f..935903a9b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/codepipeline/2015-07-09/api-2.json @@ -4,11 +4,11 @@ "apiVersion":"2015-07-09", "endpointPrefix":"codepipeline", "jsonVersion":"1.1", - "protocol":"json", "serviceAbbreviation":"CodePipeline", "serviceFullName":"AWS CodePipeline", "signatureVersion":"v4", - "targetPrefix":"CodePipeline_20150709" + "targetPrefix":"CodePipeline_20150709", + "protocol":"json" }, "operations":{ "AcknowledgeJob":{ @@ -20,9 +20,18 @@ "input":{"shape":"AcknowledgeJobInput"}, "output":{"shape":"AcknowledgeJobOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"InvalidNonceException"}, - {"shape":"JobNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"InvalidNonceException", + "exception":true + }, + { + "shape":"JobNotFoundException", + "exception":true + } ] }, "AcknowledgeThirdPartyJob":{ @@ -34,10 +43,22 @@ "input":{"shape":"AcknowledgeThirdPartyJobInput"}, "output":{"shape":"AcknowledgeThirdPartyJobOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"InvalidNonceException"}, - {"shape":"JobNotFoundException"}, - {"shape":"InvalidClientTokenException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"InvalidNonceException", + "exception":true + }, + { + "shape":"JobNotFoundException", + "exception":true + }, + { + "shape":"InvalidClientTokenException", + "exception":true + } ] }, "CreateCustomActionType":{ @@ -49,8 +70,14 @@ "input":{"shape":"CreateCustomActionTypeInput"}, "output":{"shape":"CreateCustomActionTypeOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"LimitExceededException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + } ] }, "CreatePipeline":{ @@ -62,13 +89,34 @@ "input":{"shape":"CreatePipelineInput"}, "output":{"shape":"CreatePipelineOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"PipelineNameInUseException"}, - {"shape":"InvalidStageDeclarationException"}, - {"shape":"InvalidActionDeclarationException"}, - {"shape":"InvalidBlockerDeclarationException"}, - {"shape":"InvalidStructureException"}, - {"shape":"LimitExceededException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"PipelineNameInUseException", + "exception":true + }, + { + "shape":"InvalidStageDeclarationException", + "exception":true + }, + { + "shape":"InvalidActionDeclarationException", + "exception":true + }, + { + "shape":"InvalidBlockerDeclarationException", + "exception":true + }, + { + "shape":"InvalidStructureException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + } ] }, "DeleteCustomActionType":{ @@ -79,7 +127,10 @@ }, "input":{"shape":"DeleteCustomActionTypeInput"}, "errors":[ - {"shape":"ValidationException"} + { + "shape":"ValidationException", + "exception":true + } ] }, "DeletePipeline":{ @@ -90,7 +141,10 @@ }, "input":{"shape":"DeletePipelineInput"}, "errors":[ - {"shape":"ValidationException"} + { + "shape":"ValidationException", + "exception":true + } ] }, "DisableStageTransition":{ @@ -101,9 +155,18 @@ }, "input":{"shape":"DisableStageTransitionInput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"PipelineNotFoundException"}, - {"shape":"StageNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"PipelineNotFoundException", + "exception":true + }, + { + "shape":"StageNotFoundException", + "exception":true + } ] }, "EnableStageTransition":{ @@ -114,9 +177,18 @@ }, "input":{"shape":"EnableStageTransitionInput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"PipelineNotFoundException"}, - {"shape":"StageNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"PipelineNotFoundException", + "exception":true + }, + { + "shape":"StageNotFoundException", + "exception":true + } ] }, "GetJobDetails":{ @@ -128,8 +200,14 @@ "input":{"shape":"GetJobDetailsInput"}, "output":{"shape":"GetJobDetailsOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"JobNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"JobNotFoundException", + "exception":true + } ] }, "GetPipeline":{ @@ -141,9 +219,18 @@ "input":{"shape":"GetPipelineInput"}, "output":{"shape":"GetPipelineOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"PipelineNotFoundException"}, - {"shape":"PipelineVersionNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"PipelineNotFoundException", + "exception":true + }, + { + "shape":"PipelineVersionNotFoundException", + "exception":true + } ] }, "GetPipelineState":{ @@ -155,8 +242,14 @@ "input":{"shape":"GetPipelineStateInput"}, "output":{"shape":"GetPipelineStateOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"PipelineNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"PipelineNotFoundException", + "exception":true + } ] }, "GetThirdPartyJobDetails":{ @@ -168,10 +261,22 @@ "input":{"shape":"GetThirdPartyJobDetailsInput"}, "output":{"shape":"GetThirdPartyJobDetailsOutput"}, "errors":[ - {"shape":"JobNotFoundException"}, - {"shape":"ValidationException"}, - {"shape":"InvalidClientTokenException"}, - {"shape":"InvalidJobException"} + { + "shape":"JobNotFoundException", + "exception":true + }, + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"InvalidClientTokenException", + "exception":true + }, + { + "shape":"InvalidJobException", + "exception":true + } ] }, "ListActionTypes":{ @@ -183,8 +288,14 @@ "input":{"shape":"ListActionTypesInput"}, "output":{"shape":"ListActionTypesOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"InvalidNextTokenException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "exception":true + } ] }, "ListPipelines":{ @@ -196,7 +307,10 @@ "input":{"shape":"ListPipelinesInput"}, "output":{"shape":"ListPipelinesOutput"}, "errors":[ - {"shape":"InvalidNextTokenException"} + { + "shape":"InvalidNextTokenException", + "exception":true + } ] }, "PollForJobs":{ @@ -208,8 +322,14 @@ "input":{"shape":"PollForJobsInput"}, "output":{"shape":"PollForJobsOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ActionTypeNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ActionTypeNotFoundException", + "exception":true + } ] }, "PollForThirdPartyJobs":{ @@ -221,8 +341,14 @@ "input":{"shape":"PollForThirdPartyJobsInput"}, "output":{"shape":"PollForThirdPartyJobsOutput"}, "errors":[ - {"shape":"ActionTypeNotFoundException"}, - {"shape":"ValidationException"} + { + "shape":"ActionTypeNotFoundException", + "exception":true + }, + { + "shape":"ValidationException", + "exception":true + } ] }, "PutActionRevision":{ @@ -234,10 +360,22 @@ "input":{"shape":"PutActionRevisionInput"}, "output":{"shape":"PutActionRevisionOutput"}, "errors":[ - {"shape":"PipelineNotFoundException"}, - {"shape":"StageNotFoundException"}, - {"shape":"ActionNotFoundException"}, - {"shape":"ValidationException"} + { + "shape":"PipelineNotFoundException", + "exception":true + }, + { + "shape":"StageNotFoundException", + "exception":true + }, + { + "shape":"ActionNotFoundException", + "exception":true + }, + { + "shape":"ValidationException", + "exception":true + } ] }, "PutJobFailureResult":{ @@ -248,9 +386,18 @@ }, "input":{"shape":"PutJobFailureResultInput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"JobNotFoundException"}, - {"shape":"InvalidJobStateException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"JobNotFoundException", + "exception":true + }, + { + "shape":"InvalidJobStateException", + "exception":true + } ] }, "PutJobSuccessResult":{ @@ -261,9 +408,18 @@ }, "input":{"shape":"PutJobSuccessResultInput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"JobNotFoundException"}, - {"shape":"InvalidJobStateException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"JobNotFoundException", + "exception":true + }, + { + "shape":"InvalidJobStateException", + "exception":true + } ] }, "PutThirdPartyJobFailureResult":{ @@ -274,10 +430,22 @@ }, "input":{"shape":"PutThirdPartyJobFailureResultInput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"JobNotFoundException"}, - {"shape":"InvalidJobStateException"}, - {"shape":"InvalidClientTokenException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"JobNotFoundException", + "exception":true + }, + { + "shape":"InvalidJobStateException", + "exception":true + }, + { + "shape":"InvalidClientTokenException", + "exception":true + } ] }, "PutThirdPartyJobSuccessResult":{ @@ -288,10 +456,22 @@ }, "input":{"shape":"PutThirdPartyJobSuccessResultInput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"JobNotFoundException"}, - {"shape":"InvalidJobStateException"}, - {"shape":"InvalidClientTokenException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"JobNotFoundException", + "exception":true + }, + { + "shape":"InvalidJobStateException", + "exception":true + }, + { + "shape":"InvalidClientTokenException", + "exception":true + } ] }, "StartPipelineExecution":{ @@ -303,8 +483,14 @@ "input":{"shape":"StartPipelineExecutionInput"}, "output":{"shape":"StartPipelineExecutionOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"PipelineNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"PipelineNotFoundException", + "exception":true + } ] }, "UpdatePipeline":{ @@ -316,11 +502,26 @@ "input":{"shape":"UpdatePipelineInput"}, "output":{"shape":"UpdatePipelineOutput"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"InvalidStageDeclarationException"}, - {"shape":"InvalidActionDeclarationException"}, - {"shape":"InvalidBlockerDeclarationException"}, - {"shape":"InvalidStructureException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"InvalidStageDeclarationException", + "exception":true + }, + { + "shape":"InvalidActionDeclarationException", + "exception":true + }, + { + "shape":"InvalidBlockerDeclarationException", + "exception":true + }, + { + "shape":"InvalidStructureException", + "exception":true + } ] } }, @@ -398,8 +599,8 @@ }, "ActionConfigurationKey":{ "type":"string", - "max":50, - "min":1 + "min":1, + "max":50 }, "ActionConfigurationMap":{ "type":"map", @@ -439,14 +640,14 @@ }, "ActionConfigurationQueryableValue":{ "type":"string", - "max":20, "min":1, + "max":20, "pattern":"[a-zA-Z0-9_-]+" }, "ActionConfigurationValue":{ "type":"string", - "max":250, - "min":1 + "min":1, + "max":250 }, "ActionContext":{ "type":"structure", @@ -492,8 +693,8 @@ }, "ActionName":{ "type":"string", - "max":100, "min":1, + "max":100, "pattern":"[A-Za-z0-9.@\\-_]+" }, "ActionNotFoundException":{ @@ -512,27 +713,26 @@ }, "ActionProvider":{ "type":"string", - "max":25, "min":1, + "max":25, "pattern":"[0-9A-Za-z_-]+" }, "ActionRevision":{ "type":"structure", "required":[ "revisionId", - "revisionChangeId", "created" ], "members":{ - "revisionId":{"shape":"Revision"}, - "revisionChangeId":{"shape":"RevisionChangeIdentifier"}, + "revisionId":{"shape":"RevisionId"}, + "revisionChangeId":{"shape":"RevisionChangeId"}, "created":{"shape":"Timestamp"} } }, "ActionRunOrder":{ "type":"integer", - "max":999, - "min":1 + "min":1, + "max":999 }, "ActionState":{ "type":"structure", @@ -633,8 +833,8 @@ }, "ArtifactName":{ "type":"string", - "max":100, "min":1, + "max":100, "pattern":"[a-zA-Z0-9_\\-]+" }, "ArtifactStore":{ @@ -651,8 +851,8 @@ }, "ArtifactStoreLocation":{ "type":"string", - "max":63, "min":3, + "max":63, "pattern":"[a-zA-Z0-9\\-\\.]+" }, "ArtifactStoreType":{ @@ -672,8 +872,8 @@ }, "BlockerName":{ "type":"string", - "max":100, - "min":1 + "min":1, + "max":100 }, "BlockerType":{ "type":"string", @@ -759,8 +959,8 @@ }, "Description":{ "type":"string", - "max":2048, - "min":1 + "min":1, + "max":2048 }, "DisableStageTransitionInput":{ "type":"structure", @@ -779,8 +979,8 @@ }, "DisabledReason":{ "type":"string", - "max":300, "min":1, + "max":300, "pattern":"[a-zA-Z0-9!@ \\(\\)\\.\\*\\?\\-]+" }, "EnableStageTransitionInput":{ @@ -810,8 +1010,8 @@ }, "EncryptionKeyId":{ "type":"string", - "max":100, - "min":1 + "min":1, + "max":100 }, "EncryptionKeyType":{ "type":"string", @@ -832,11 +1032,7 @@ "percentComplete":{"shape":"Percentage"} } }, - "ExecutionId":{ - "type":"string", - "max":1500, - "min":1 - }, + "ExecutionId":{"type":"string"}, "ExecutionSummary":{"type":"string"}, "FailureDetails":{ "type":"structure", @@ -1085,14 +1281,14 @@ }, "MaximumArtifactCount":{ "type":"integer", - "max":5, - "min":0 + "min":0, + "max":5 }, "Message":{"type":"string"}, "MinimumArtifactCount":{ "type":"integer", - "max":5, - "min":0 + "min":0, + "max":5 }, "NextToken":{"type":"string"}, "Nonce":{"type":"string"}, @@ -1109,8 +1305,8 @@ }, "Percentage":{ "type":"integer", - "max":100, - "min":0 + "min":0, + "max":100 }, "PipelineContext":{ "type":"structure", @@ -1146,8 +1342,8 @@ }, "PipelineName":{ "type":"string", - "max":100, "min":1, + "max":100, "pattern":"[A-Za-z0-9.@\\-_]+" }, "PipelineNameInUseException":{ @@ -1288,19 +1484,13 @@ "type":"map", "key":{"shape":"ActionConfigurationKey"}, "value":{"shape":"ActionConfigurationQueryableValue"}, - "max":1, - "min":0 - }, - "Revision":{ - "type":"string", - "max":1500, - "min":1 - }, - "RevisionChangeIdentifier":{ - "type":"string", - "max":100, - "min":1 + "min":0, + "max":1 }, + "Revision":{"type":"string"}, + "RevisionChangeId":{"type":"string"}, + "RevisionChangeIdentifier":{"type":"string"}, + "RevisionId":{"type":"string"}, "RoleArn":{ "type":"string", "pattern":"arn:[^:]+:iam::[0-9]{12}:role/.*" @@ -1348,8 +1538,8 @@ }, "StageName":{ "type":"string", - "max":100, "min":1, + "max":100, "pattern":"[A-Za-z0-9.@\\-_]+" }, "StageNotFoundException":{ @@ -1420,8 +1610,8 @@ }, "ThirdPartyJobId":{ "type":"string", - "max":512, - "min":1 + "min":1, + "max":512 }, "ThirdPartyJobList":{ "type":"list", @@ -1452,13 +1642,13 @@ }, "Url":{ "type":"string", - "max":2048, - "min":1 + "min":1, + "max":2048 }, "UrlTemplate":{ "type":"string", - "max":2048, - "min":1 + "min":1, + "max":2048 }, "ValidationException":{ "type":"structure", @@ -1468,8 +1658,8 @@ }, "Version":{ "type":"string", - "max":9, "min":1, + "max":9, "pattern":"[0-9A-Za-z_-]+" } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/codepipeline/2015-07-09/docs-2.json similarity index 86% rename from vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/codepipeline/2015-07-09/docs-2.json index c69365186..b137e4994 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/codepipeline/2015-07-09/docs-2.json @@ -1,31 +1,31 @@ { "version": "2.0", - "service": "AWS CodePipeline Overview

This is the AWS CodePipeline API Reference. This guide provides descriptions of the actions and data types for AWS CodePipeline. Some functionality for your pipeline is only configurable through the API. For additional information, see the AWS CodePipeline User Guide.

You can use the AWS CodePipeline API to work with pipelines, stages, actions, gates, and transitions, as described below.

Pipelines are models of automated release processes. Each pipeline is uniquely named, and consists of actions, gates, and stages.

You can work with pipelines by calling:

  • CreatePipeline, which creates a uniquely-named pipeline.
  • DeletePipeline, which deletes the specified pipeline.
  • GetPipeline, which returns information about a pipeline structure.
  • GetPipelineState, which returns information about the current state of the stages and actions of a pipeline.
  • ListPipelines, which gets a summary of all of the pipelines associated with your account.
  • StartPipelineExecution, which runs the the most recent revision of an artifact through the pipeline.
  • UpdatePipeline, which updates a pipeline with edits or changes to the structure of the pipeline.

Pipelines include stages, which are which are logical groupings of gates and actions. Each stage contains one or more actions that must complete before the next stage begins. A stage will result in success or failure. If a stage fails, then the pipeline stops at that stage and will remain stopped until either a new version of an artifact appears in the source location, or a user takes action to re-run the most recent artifact through the pipeline. You can call GetPipelineState, which displays the status of a pipeline, including the status of stages in the pipeline, or GetPipeline, which returns the entire structure of the pipeline, including the stages of that pipeline. For more information about the structure of stages and actions, also refer to the AWS CodePipeline Pipeline Structure Reference.

Pipeline stages include actions, which are categorized into categories such as source or build actions performed within a stage of a pipeline. For example, you can use a source action to import artifacts into a pipeline from a source such as Amazon S3. Like stages, you do not work with actions directly in most cases, but you do define and interact with actions when working with pipeline operations such as CreatePipeline and GetPipelineState.

Pipelines also include transitions, which allow the transition of artifacts from one stage to the next in a pipeline after the actions in one stage complete.

You can work with transitions by calling:

Using the API to integrate with AWS CodePipeline

For third-party integrators or developers who want to create their own integrations with AWS CodePipeline, the expected sequence varies from the standard API user. In order to integrate with AWS CodePipeline, developers will need to work with the following items:

  • Jobs, which are instances of an action. For example, a job for a source action might import a revision of an artifact from a source.

    You can work with jobs by calling:

  • Third party jobs, which are instances of an action created by a partner action and integrated into AWS CodePipeline. Partner actions are created by members of the AWS Partner Network.

    You can work with third party jobs by calling:

", "operations": { - "AcknowledgeJob": "

Returns information about a specified job and whether that job has been received by the job worker. Only used for custom actions.

", + "AcknowledgeJob": "

Returns information about a specified job and whether that job has been received by the job worker. Only used for custom actions.

", "AcknowledgeThirdPartyJob": "

Confirms a job worker has received the specified job. Only used for partner actions.

", - "CreateCustomActionType": "

Creates a new custom action that can be used in all pipelines associated with the AWS account. Only used for custom actions.

", - "CreatePipeline": "

Creates a pipeline.

", - "DeleteCustomActionType": "

Marks a custom action as deleted. PollForJobs for the custom action will fail after the action is marked for deletion. Only used for custom actions.

You cannot recreate a custom action after it has been deleted unless you increase the version number of the action.

", - "DeletePipeline": "

Deletes the specified pipeline.

", - "DisableStageTransition": "

Prevents artifacts in a pipeline from transitioning to the next stage in the pipeline.

", - "EnableStageTransition": "

Enables artifacts in a pipeline to transition to a stage in a pipeline.

", - "GetJobDetails": "

Returns information about a job. Only used for custom actions.

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns any secret values defined for the action.

", - "GetPipeline": "

Returns the metadata, structure, stages, and actions of a pipeline. Can be used to return the entire structure of a pipeline in JSON format, which can then be modified and used to update the pipeline structure with UpdatePipeline.

", - "GetPipelineState": "

Returns information about the state of a pipeline, including the stages, actions, and details about the last run of the pipeline.

", + "CreateCustomActionType": "

Creates a new custom action that can be used in all pipelines associated with the AWS account. Only used for custom actions.

", + "CreatePipeline": "

Creates a pipeline.

", + "DeleteCustomActionType": "

Marks a custom action as deleted. PollForJobs for the custom action will fail after the action is marked for deletion. Only used for custom actions.

You cannot recreate a custom action after it has been deleted unless you increase the version number of the action.

", + "DeletePipeline": "

Deletes the specified pipeline.

", + "DisableStageTransition": "

Prevents artifacts in a pipeline from transitioning to the next stage in the pipeline.

", + "EnableStageTransition": "

Enables artifacts in a pipeline to transition to a stage in a pipeline.

", + "GetJobDetails": "

Returns information about a job. Only used for custom actions.

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns any secret values defined for the action.

", + "GetPipeline": "

Returns the metadata, structure, stages, and actions of a pipeline. Can be used to return the entire structure of a pipeline in JSON format, which can then be modified and used to update the pipeline structure with UpdatePipeline.

", + "GetPipelineState": "

Returns information about the state of a pipeline, including the stages, actions, and details about the last run of the pipeline.

", "GetThirdPartyJobDetails": "

Requests the details of a job for a third party action. Only used for partner actions.

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns any secret values defined for the action.

", "ListActionTypes": "

Gets a summary of all AWS CodePipeline action types associated with your account.

", - "ListPipelines": "

Gets a summary of all of the pipelines associated with your account.

", - "PollForJobs": "

Returns information about any jobs for AWS CodePipeline to act upon.

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns any secret values defined for the action.

", + "ListPipelines": "

Gets a summary of all of the pipelines associated with your account.

", + "PollForJobs": "

Returns information about any jobs for AWS CodePipeline to act upon.

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns any secret values defined for the action.

", "PollForThirdPartyJobs": "

Determines whether there are any third party jobs for a job worker to act on. Only used for partner actions.

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts.

", "PutActionRevision": "

Provides information to AWS CodePipeline about new revisions to a source.

", "PutJobFailureResult": "

Represents the failure of a job as returned to the pipeline by a job worker. Only used for custom actions.

", "PutJobSuccessResult": "

Represents the success of a job as returned to the pipeline by a job worker. Only used for custom actions.

", "PutThirdPartyJobFailureResult": "

Represents the failure of a third party job as returned to the pipeline by a job worker. Only used for partner actions.

", "PutThirdPartyJobSuccessResult": "

Represents the success of a third party job as returned to the pipeline by a job worker. Only used for partner actions.

", - "StartPipelineExecution": "

Starts the specified pipeline. Specifically, it begins processing the latest commit to the source location specified as part of the pipeline.

", - "UpdatePipeline": "

Updates a specified pipeline with edits or changes to its structure. Use a JSON file with the pipeline structure in conjunction with UpdatePipeline to provide the full structure of the pipeline. Updating the pipeline increases the version number of the pipeline by 1.

" + "StartPipelineExecution": "

Starts the specified pipeline. Specifically, it begins processing the latest commit to the source location specified as part of the pipeline.

", + "UpdatePipeline": "

Updates a specified pipeline with edits or changes to its structure. Use a JSON file with the pipeline structure in conjunction with UpdatePipeline to provide the full structure of the pipeline. Updating the pipeline increases the version number of the pipeline by 1.

" }, + "service": "AWS CodePipeline Overview

This is the AWS CodePipeline API Reference. This guide provides descriptions of the actions and data types for AWS CodePipeline. Some functionality for your pipeline is only configurable through the API. For additional information, see the AWS CodePipeline User Guide.

You can use the AWS CodePipeline API to work with pipelines, stages, actions, gates, and transitions, as described below.

Pipelines are models of automated release processes. Each pipeline is uniquely named, and consists of actions, gates, and stages.

You can work with pipelines by calling:

  • CreatePipeline, which creates a uniquely-named pipeline.
  • DeletePipeline, which deletes the specified pipeline.
  • GetPipeline, which returns information about a pipeline structure.
  • GetPipelineState, which returns information about the current state of the stages and actions of a pipeline.
  • ListPipelines, which gets a summary of all of the pipelines associated with your account.
  • StartPipelineExecution, which runs the the most recent revision of an artifact through the pipeline.
  • UpdatePipeline, which updates a pipeline with edits or changes to the structure of the pipeline.

Pipelines include stages, which are which are logical groupings of gates and actions. Each stage contains one or more actions that must complete before the next stage begins. A stage will result in success or failure. If a stage fails, then the pipeline stops at that stage and will remain stopped until either a new version of an artifact appears in the source location, or a user takes action to re-run the most recent artifact through the pipeline. You can call GetPipelineState, which displays the status of a pipeline, including the status of stages in the pipeline, or GetPipeline, which returns the entire structure of the pipeline, including the stages of that pipeline. For more information about the structure of stages and actions, also refer to the AWS CodePipeline Pipeline Structure Reference.

Pipeline stages include actions, which are categorized into categories such as source or build actions performed within a stage of a pipeline. For example, you can use a source action to import artifacts into a pipeline from a source such as Amazon S3. Like stages, you do not work with actions directly in most cases, but you do define and interact with actions when working with pipeline operations such as CreatePipeline and GetPipelineState.

Pipelines also include transitions, which allow the transition of artifacts from one stage to the next in a pipeline after the actions in one stage complete.

You can work with transitions by calling:

Using the API to integrate with AWS CodePipeline

For third-party integrators or developers who want to create their own integrations with AWS CodePipeline, the expected sequence varies from the standard API user. In order to integrate with AWS CodePipeline, developers will need to work with the following items:

  • Jobs, which are instances of an action. For example, a job for a source action might import a revision of an artifact from a source.

    You can work with jobs by calling:

  • Third party jobs, which are instances of an action created by a partner action and integrated into AWS CodePipeline. Partner actions are created by members of the AWS Partner Network.

    You can work with third party jobs by calling:

", "shapes": { "AWSSessionCredentials": { "base": "

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 artifact for the pipeline in AWS CodePipeline.

", @@ -71,7 +71,7 @@ "base": null, "refs": { "ActionTypeId$category": "

A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

", - "CreateCustomActionTypeInput$category": "

The category of the custom action, such as a source action or a build action.

Although Source is listed as a valid value, it is not currently functional. This value is reserved for future use.", + "CreateCustomActionTypeInput$category": "

The category of the custom action, such as a source action or a build action.

", "DeleteCustomActionTypeInput$category": "

The category of the custom action that you want to delete, such as source or deploy.

" } }, @@ -107,7 +107,7 @@ "base": null, "refs": { "ActionType$actionConfigurationProperties": "

The configuration properties for the action type.

", - "CreateCustomActionTypeInput$configurationProperties": "

The configuration properties for the custom action.

You can refer to a name in the configuration properties of the custom action within the URL templates by following the format of {Config:name}, as long as the configuration property is both required and not secret. For more information, see Create a Custom Action for a Pipeline." + "CreateCustomActionTypeInput$configurationProperties": "

The configuration properties for the custom action.

" } }, "ActionConfigurationPropertyType": { @@ -287,7 +287,7 @@ } }, "ArtifactStore": { - "base": "

The Amazon S3 location where artifacts are stored for the pipeline. If this Amazon S3 bucket is created manually, it must meet the requirements for AWS CodePipeline. For more information, see the Concepts.

", + "base": "

The Amazon S3 location where artifacts are stored for the pipeline. If this Amazon S3 bucket is created manually, it must meet the requirements for AWS CodePipeline. For more information, see the Concepts.

", "refs": { "PipelineDeclaration$artifactStore": null } @@ -305,7 +305,7 @@ } }, "BlockerDeclaration": { - "base": "

Reserved for future use.

", + "base": "

Represents information about a gate declaration.

", "refs": { "StageBlockerDeclarationList$member": null } @@ -313,13 +313,13 @@ "BlockerName": { "base": null, "refs": { - "BlockerDeclaration$name": "

Reserved for future use.

" + "BlockerDeclaration$name": "

The name of the gate declaration.

" } }, "BlockerType": { "base": null, "refs": { - "BlockerDeclaration$type": "

Reserved for future use.

" + "BlockerDeclaration$type": "

The type of the gate declaration.

" } }, "Boolean": { @@ -357,8 +357,8 @@ "base": null, "refs": { "JobData$continuationToken": "

A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.

", - "PutJobSuccessResultInput$continuationToken": "

A token generated by a job worker, such as an AWS CodeDeploy deployment ID, that a successful job provides to identify a custom action in progress. Future jobs will use this token in order to identify the running instance of the action. It can be reused to return additional information about the progress of the custom action. When the action is complete, no continuation token should be supplied.

", - "PutThirdPartyJobSuccessResultInput$continuationToken": "

A token generated by a job worker, such as an AWS CodeDeploy deployment ID, that a successful job provides to identify a partner action in progress. Future jobs will use this token in order to identify the running instance of the action. It can be reused to return additional information about the progress of the partner action. When the action is complete, no continuation token should be supplied.

", + "PutJobSuccessResultInput$continuationToken": "

A system-generated token, such as a AWS CodeDeploy deployment ID, that the successful job used to complete a job asynchronously.

", + "PutThirdPartyJobSuccessResultInput$continuationToken": "

A system-generated token, such as a AWS CodeDeploy deployment ID, that a job uses in order to continue the job asynchronously.

", "ThirdPartyJobData$continuationToken": "

A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.

" } }, @@ -429,23 +429,23 @@ } }, "EncryptionKey": { - "base": "

Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key.

", + "base": "

Represents information about the AWS Key Management Service (AWS KMS) key used to encrypt data in the artifact store.

", "refs": { - "ArtifactStore$encryptionKey": "

The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.

", + "ArtifactStore$encryptionKey": "

The AWS Key Management Service (AWS KMS) key used to encrypt the data in the artifact store. If this is undefined, the default key for Amazon S3 is used.

", "JobData$encryptionKey": null, - "ThirdPartyJobData$encryptionKey": "

The encryption key used to encrypt and decrypt data in the artifact store for the pipeline, such as an AWS Key Management Service (AWS KMS) key. This is optional and might not be present.

" + "ThirdPartyJobData$encryptionKey": "

The AWS Key Management Service (AWS KMS) key used to encrypt and decrypt data in the artifact store for the pipeline.

" } }, "EncryptionKeyId": { "base": null, "refs": { - "EncryptionKey$id": "

The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.

" + "EncryptionKey$id": "

The ID of the AWS KMS key.

" } }, "EncryptionKeyType": { "base": null, "refs": { - "EncryptionKey$type": "

The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.

" + "EncryptionKey$type": "

The type of AWS KMS key, such as a customer master key.

" } }, "ErrorDetails": { @@ -547,7 +547,7 @@ } }, "InvalidBlockerDeclarationException": { - "base": "

Reserved for future use.

", + "base": "

The specified gate declaration was specified in an invalid format.

", "refs": { } }, @@ -876,18 +876,28 @@ "Revision": { "base": null, "refs": { - "ActionRevision$revisionId": "

The system-generated unique ID that identifies the revision number of the action.

", "Artifact$revision": "

The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).

", "CurrentRevision$revision": "

The revision ID of the current version of an artifact.

" } }, + "RevisionChangeId": { + "base": null, + "refs": { + "ActionRevision$revisionChangeId": "

The unique identifier of the change that set the state to this revision, for example a deployment ID or timestamp.

" + } + }, "RevisionChangeIdentifier": { "base": null, "refs": { - "ActionRevision$revisionChangeId": "

The unique identifier of the change that set the state to this revision, for example a deployment ID or timestamp.

", "CurrentRevision$changeIdentifier": "

The change identifier for the current revision.

" } }, + "RevisionId": { + "base": null, + "refs": { + "ActionRevision$revisionId": "

The system-generated unique ID that identifies the revision number of the action.

" + } + }, "RoleArn": { "base": null, "refs": { @@ -934,7 +944,7 @@ "StageBlockerDeclarationList": { "base": null, "refs": { - "StageDeclaration$blockers": "

Reserved for future use.

" + "StageDeclaration$blockers": "

The gates included in a stage.

" } }, "StageContext": { @@ -1081,7 +1091,7 @@ "base": null, "refs": { "ActionTypeId$version": "

A string that identifies the action type.

", - "CreateCustomActionTypeInput$version": "

The version number of the custom action.

", + "CreateCustomActionTypeInput$version": "

The version number of the custom action.

A newly-created custom action is always assigned a version number of 1. This is required.", "DeleteCustomActionTypeInput$version": "

The version of the custom action to delete.

" } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cognito-identity/2014-06-30/api-2.json similarity index 54% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cognito-identity/2014-06-30/api-2.json index de6659665..d5745ae1c 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/cognito-identity/2014-06-30/api-2.json @@ -4,10 +4,10 @@ "apiVersion":"2014-06-30", "endpointPrefix":"cognito-identity", "jsonVersion":"1.1", - "protocol":"json", "serviceFullName":"Amazon Cognito Identity", "signatureVersion":"v4", - "targetPrefix":"AWSCognitoIdentityService" + "targetPrefix":"AWSCognitoIdentityService", + "protocol":"json" }, "operations":{ "CreateIdentityPool":{ @@ -19,12 +19,36 @@ "input":{"shape":"CreateIdentityPoolInput"}, "output":{"shape":"IdentityPool"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"}, - {"shape":"LimitExceededException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + }, + { + "shape":"LimitExceededException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "DeleteIdentities":{ @@ -36,9 +60,21 @@ "input":{"shape":"DeleteIdentitiesInput"}, "output":{"shape":"DeleteIdentitiesResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + } ] }, "DeleteIdentityPool":{ @@ -49,11 +85,31 @@ }, "input":{"shape":"DeleteIdentityPoolInput"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + } ] }, "DescribeIdentity":{ @@ -65,11 +121,31 @@ "input":{"shape":"DescribeIdentityInput"}, "output":{"shape":"IdentityDescription"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + } ] }, "DescribeIdentityPool":{ @@ -81,11 +157,31 @@ "input":{"shape":"DescribeIdentityPoolInput"}, "output":{"shape":"IdentityPool"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + } ] }, "GetCredentialsForIdentity":{ @@ -97,14 +193,46 @@ "input":{"shape":"GetCredentialsForIdentityInput"}, "output":{"shape":"GetCredentialsForIdentityResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InvalidIdentityPoolConfigurationException"}, - {"shape":"InternalErrorException"}, - {"shape":"ExternalServiceException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InvalidIdentityPoolConfigurationException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + }, + { + "shape":"ExternalServiceException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "GetId":{ @@ -116,14 +244,46 @@ "input":{"shape":"GetIdInput"}, "output":{"shape":"GetIdResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"}, - {"shape":"LimitExceededException"}, - {"shape":"ExternalServiceException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + }, + { + "shape":"LimitExceededException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ExternalServiceException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "GetIdentityPoolRoles":{ @@ -135,12 +295,36 @@ "input":{"shape":"GetIdentityPoolRolesInput"}, "output":{"shape":"GetIdentityPoolRolesResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + } ] }, "GetOpenIdToken":{ @@ -152,13 +336,41 @@ "input":{"shape":"GetOpenIdTokenInput"}, "output":{"shape":"GetOpenIdTokenResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"}, - {"shape":"ExternalServiceException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + }, + { + "shape":"ExternalServiceException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "GetOpenIdTokenForDeveloperIdentity":{ @@ -170,13 +382,41 @@ "input":{"shape":"GetOpenIdTokenForDeveloperIdentityInput"}, "output":{"shape":"GetOpenIdTokenForDeveloperIdentityResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"}, - {"shape":"DeveloperUserAlreadyRegisteredException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + }, + { + "shape":"DeveloperUserAlreadyRegisteredException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ListIdentities":{ @@ -188,11 +428,31 @@ "input":{"shape":"ListIdentitiesInput"}, "output":{"shape":"ListIdentitiesResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + } ] }, "ListIdentityPools":{ @@ -204,10 +464,26 @@ "input":{"shape":"ListIdentityPoolsInput"}, "output":{"shape":"ListIdentityPoolsResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + } ] }, "LookupDeveloperIdentity":{ @@ -219,12 +495,36 @@ "input":{"shape":"LookupDeveloperIdentityInput"}, "output":{"shape":"LookupDeveloperIdentityResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + } ] }, "MergeDeveloperIdentities":{ @@ -236,12 +536,36 @@ "input":{"shape":"MergeDeveloperIdentitiesInput"}, "output":{"shape":"MergeDeveloperIdentitiesResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + } ] }, "SetIdentityPoolRoles":{ @@ -252,13 +576,41 @@ }, "input":{"shape":"SetIdentityPoolRolesInput"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"}, - {"shape":"ConcurrentModificationException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + }, + { + "shape":"ConcurrentModificationException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "UnlinkDeveloperIdentity":{ @@ -269,12 +621,36 @@ }, "input":{"shape":"UnlinkDeveloperIdentityInput"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + } ] }, "UnlinkIdentity":{ @@ -285,13 +661,41 @@ }, "input":{"shape":"UnlinkIdentityInput"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"}, - {"shape":"ExternalServiceException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + }, + { + "shape":"ExternalServiceException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "UpdateIdentityPool":{ @@ -303,58 +707,63 @@ "input":{"shape":"IdentityPool"}, "output":{"shape":"IdentityPool"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"}, - {"shape":"ConcurrentModificationException"}, - {"shape":"LimitExceededException"} + { + "shape":"InvalidParameterException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NotAuthorizedException", + "error":{"httpStatusCode":403}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"InternalErrorException", + "exception":true, + "fault":true + }, + { + "shape":"ConcurrentModificationException", + "error":{"httpStatusCode":400}, + "exception":true + } ] } }, "shapes":{ "ARNString":{ "type":"string", - "max":2048, - "min":20 + "min":20, + "max":2048 }, "AccessKeyString":{"type":"string"}, "AccountId":{ "type":"string", - "max":15, "min":1, + "max":15, "pattern":"\\d+" }, - "CognitoIdentityProvider":{ - "type":"structure", - "members":{ - "ProviderName":{"shape":"CognitoIdentityProviderName"}, - "ClientId":{"shape":"CognitoIdentityProviderClientId"} - } - }, - "CognitoIdentityProviderClientId":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[\\w_]+" - }, - "CognitoIdentityProviderList":{ - "type":"list", - "member":{"shape":"CognitoIdentityProvider"} - }, - "CognitoIdentityProviderName":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[\\w._:/-]+" - }, "ConcurrentModificationException":{ "type":"structure", "members":{ "message":{"shape":"String"} }, + "error":{"httpStatusCode":400}, "exception":true }, "CreateIdentityPoolInput":{ @@ -368,8 +777,7 @@ "AllowUnauthenticatedIdentities":{"shape":"IdentityPoolUnauthenticated"}, "SupportedLoginProviders":{"shape":"IdentityProviders"}, "DeveloperProviderName":{"shape":"DeveloperProviderName"}, - "OpenIdConnectProviderARNs":{"shape":"OIDCProviderList"}, - "CognitoIdentityProviders":{"shape":"CognitoIdentityProviderList"} + "OpenIdConnectProviderARNs":{"shape":"OIDCProviderList"} } }, "Credentials":{ @@ -418,8 +826,8 @@ }, "DeveloperProviderName":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[\\w._-]+" }, "DeveloperUserAlreadyRegisteredException":{ @@ -427,12 +835,13 @@ "members":{ "message":{"shape":"String"} }, + "error":{"httpStatusCode":400}, "exception":true }, "DeveloperUserIdentifier":{ "type":"string", - "max":1024, "min":1, + "max":1024, "pattern":"[\\w.@_-]+" }, "DeveloperUserIdentifierList":{ @@ -451,6 +860,7 @@ "members":{ "message":{"shape":"String"} }, + "error":{"httpStatusCode":400}, "exception":true }, "GetCredentialsForIdentityInput":{ @@ -548,15 +958,15 @@ }, "IdentityId":{ "type":"string", - "max":55, "min":1, + "max":50, "pattern":"[\\w-]+:[0-9a-f-]+" }, "IdentityIdList":{ "type":"list", "member":{"shape":"IdentityId"}, - "max":60, - "min":1 + "min":1, + "max":60 }, "IdentityPool":{ "type":"structure", @@ -571,20 +981,19 @@ "AllowUnauthenticatedIdentities":{"shape":"IdentityPoolUnauthenticated"}, "SupportedLoginProviders":{"shape":"IdentityProviders"}, "DeveloperProviderName":{"shape":"DeveloperProviderName"}, - "OpenIdConnectProviderARNs":{"shape":"OIDCProviderList"}, - "CognitoIdentityProviders":{"shape":"CognitoIdentityProviderList"} + "OpenIdConnectProviderARNs":{"shape":"OIDCProviderList"} } }, "IdentityPoolId":{ "type":"string", - "max":55, "min":1, + "max":50, "pattern":"[\\w-]+:[0-9a-f-]+" }, "IdentityPoolName":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[\\w ]+" }, "IdentityPoolShortDescription":{ @@ -601,20 +1010,20 @@ }, "IdentityProviderId":{ "type":"string", - "max":128, "min":1, - "pattern":"[\\w.;_/-]+" + "max":128, + "pattern":"[\\w.;_-]+" }, "IdentityProviderName":{ "type":"string", - "max":128, "min":1, - "pattern":"[\\w._/:-]+" + "max":128, + "pattern":"[\\w._/-]+" }, "IdentityProviderToken":{ "type":"string", - "max":2048, "min":1, + "max":2048, "pattern":"[\\S]+" }, "IdentityProviders":{ @@ -636,6 +1045,7 @@ "members":{ "message":{"shape":"String"} }, + "error":{"httpStatusCode":400}, "exception":true }, "InvalidParameterException":{ @@ -643,6 +1053,7 @@ "members":{ "message":{"shape":"String"} }, + "error":{"httpStatusCode":400}, "exception":true }, "LimitExceededException":{ @@ -650,6 +1061,7 @@ "members":{ "message":{"shape":"String"} }, + "error":{"httpStatusCode":400}, "exception":true }, "ListIdentitiesInput":{ @@ -743,6 +1155,7 @@ "members":{ "message":{"shape":"String"} }, + "error":{"httpStatusCode":403}, "exception":true }, "OIDCProviderList":{ @@ -757,14 +1170,15 @@ }, "QueryLimit":{ "type":"integer", - "max":60, - "min":1 + "min":1, + "max":60 }, "ResourceConflictException":{ "type":"structure", "members":{ "message":{"shape":"String"} }, + "error":{"httpStatusCode":409}, "exception":true }, "ResourceNotFoundException":{ @@ -772,6 +1186,7 @@ "members":{ "message":{"shape":"String"} }, + "error":{"httpStatusCode":404}, "exception":true }, "RoleType":{ @@ -800,14 +1215,15 @@ "String":{"type":"string"}, "TokenDuration":{ "type":"long", - "max":86400, - "min":1 + "min":1, + "max":86400 }, "TooManyRequestsException":{ "type":"structure", "members":{ "message":{"shape":"String"} }, + "error":{"httpStatusCode":429}, "exception":true }, "UnlinkDeveloperIdentityInput":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cognito-identity/2014-06-30/docs-2.json similarity index 87% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cognito-identity/2014-06-30/docs-2.json index d3054c43a..66651c315 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/cognito-identity/2014-06-30/docs-2.json @@ -1,26 +1,26 @@ { "version": "2.0", - "service": "Amazon Cognito

Amazon Cognito is a web service that delivers scoped temporary credentials to mobile devices and other untrusted environments. Amazon Cognito uniquely identifies a device and supplies the user with a consistent identity over the lifetime of an application.

Using Amazon Cognito, you can enable authentication with one or more third-party identity providers (Facebook, Google, or Login with Amazon), and you can also choose to support unauthenticated access from your app. Cognito delivers a unique identifier for each user and acts as an OpenID token provider trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS credentials.

To provide end-user credentials, first make an unsigned call to GetId. If the end user is authenticated with one of the supported identity providers, set the Logins map with the identity provider token. GetId returns a unique identifier for the user.

Next, make an unsigned call to GetCredentialsForIdentity. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId. Assuming your identity pool has been configured via the SetIdentityPoolRoles operation, GetCredentialsForIdentity will return AWS credentials for your use. If your pool has not been configured with SetIdentityPoolRoles, or if you want to follow legacy flow, make an unsigned call to GetOpenIdToken, which returns the OpenID token necessary to call STS and retrieve AWS credentials. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId. The token returned by GetOpenIdToken can be passed to the STS operation AssumeRoleWithWebIdentity to retrieve AWS credentials.

If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably want to make API calls via the AWS Mobile SDK. To learn more, see the AWS Mobile SDK Developer Guide.

", "operations": { - "CreateIdentityPool": "

Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account. The limit on identity pools is 60 per account. The keys for SupportedLoginProviders are as follows:

  • Facebook: graph.facebook.com
  • Google: accounts.google.com
  • Amazon: www.amazon.com
  • Twitter: api.twitter.com
  • Digits: www.digits.com
You must use AWS Developer credentials to call this API.

", - "DeleteIdentities": "

Deletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete.

You must use AWS Developer credentials to call this API.

", - "DeleteIdentityPool": "

Deletes a user pool. Once a pool is deleted, users will not be able to authenticate with the pool.

You must use AWS Developer credentials to call this API.

", - "DescribeIdentity": "

Returns metadata related to the given identity, including when the identity was created and any associated linked logins.

You must use AWS Developer credentials to call this API.

", - "DescribeIdentityPool": "

Gets details about a particular identity pool, including the pool name, ID description, creation date, and current number of users.

You must use AWS Developer credentials to call this API.

", - "GetCredentialsForIdentity": "

Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.

This is a public API. You do not need any credentials to call this API.

", - "GetId": "

Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.

This is a public API. You do not need any credentials to call this API.

", - "GetIdentityPoolRoles": "

Gets the roles for an identity pool.

You must use AWS Developer credentials to call this API.

", - "GetOpenIdToken": "

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.

The OpenId token is valid for 15 minutes.

This is a public API. You do not need any credentials to call this API.

", - "GetOpenIdTokenForDeveloperIdentity": "

Registers (or retrieves) a Cognito IdentityId and an OpenID Connect token for a user authenticated by your backend authentication process. Supplying multiple logins will create an implicit linked account. You can only specify one developer provider as part of the Logins map, which is linked to the identity pool. The developer provider is the \"domain\" by which Cognito will refer to your users.

You can use GetOpenIdTokenForDeveloperIdentity to create a new identity and to link new logins (that is, user credentials issued by a public provider or developer provider) to an existing identity. When you want to create a new identity, the IdentityId should be null. When you want to associate a new login with an existing authenticated/unauthenticated identity, you can do so by providing the existing IdentityId. This API will create the identity in the specified IdentityPoolId.

You must use AWS Developer credentials to call this API.

", - "ListIdentities": "

Lists the identities in a pool.

You must use AWS Developer credentials to call this API.

", - "ListIdentityPools": "

Lists all of the Cognito identity pools registered for your account.

You must use AWS Developer credentials to call this API.

", - "LookupDeveloperIdentity": "

Retrieves the IdentityID associated with a DeveloperUserIdentifier or the list of DeveloperUserIdentifiers associated with an IdentityId for an existing identity. Either IdentityID or DeveloperUserIdentifier must not be null. If you supply only one of these values, the other value will be searched in the database and returned as a part of the response. If you supply both, DeveloperUserIdentifier will be matched against IdentityID. If the values are verified against the database, the response returns both values and is the same as the request. Otherwise a ResourceConflictException is thrown.

You must use AWS Developer credentials to call this API.

", - "MergeDeveloperIdentities": "

Merges two users having different IdentityIds, existing in the same identity pool, and identified by the same developer provider. You can use this action to request that discrete users be merged and identified as a single user in the Cognito environment. Cognito associates the given source user (SourceUserIdentifier) with the IdentityId of the DestinationUserIdentifier. Only developer-authenticated users can be merged. If the users to be merged are associated with the same public provider, but as two different users, an exception will be thrown.

You must use AWS Developer credentials to call this API.

", - "SetIdentityPoolRoles": "

Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action.

You must use AWS Developer credentials to call this API.

", - "UnlinkDeveloperIdentity": "

Unlinks a DeveloperUserIdentifier from an existing identity. Unlinked developer users will be considered new identities next time they are seen. If, for a given Cognito identity, you remove all federated identities as well as the developer user identifier, the Cognito identity becomes inaccessible.

You must use AWS Developer credentials to call this API.

", - "UnlinkIdentity": "

Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.

This is a public API. You do not need any credentials to call this API.

", - "UpdateIdentityPool": "

Updates a user pool.

You must use AWS Developer credentials to call this API.

" + "CreateIdentityPool": "

Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account. The limit on identity pools is 60 per account. You must use AWS Developer credentials to call this API.

", + "DeleteIdentities": "

Deletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete.

You must use AWS Developer credentials to call this API.

", + "DeleteIdentityPool": "

Deletes a user pool. Once a pool is deleted, users will not be able to authenticate with the pool.

You must use AWS Developer credentials to call this API.

", + "DescribeIdentity": "

Returns metadata related to the given identity, including when the identity was created and any associated linked logins.

You must use AWS Developer credentials to call this API.

", + "DescribeIdentityPool": "

Gets details about a particular identity pool, including the pool name, ID description, creation date, and current number of users.

You must use AWS Developer credentials to call this API.

", + "GetCredentialsForIdentity": "

Returns credentials for the the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.

This is a public API. You do not need any credentials to call this API.

", + "GetId": "

Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.

token+\";\"+tokenSecret.

This is a public API. You do not need any credentials to call this API.

", + "GetIdentityPoolRoles": "

Gets the roles for an identity pool.

You must use AWS Developer credentials to call this API.

", + "GetOpenIdToken": "

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.

The OpenId token is valid for 15 minutes.

This is a public API. You do not need any credentials to call this API.

", + "GetOpenIdTokenForDeveloperIdentity": "

Registers (or retrieves) a Cognito IdentityId and an OpenID Connect token for a user authenticated by your backend authentication process. Supplying multiple logins will create an implicit linked account. You can only specify one developer provider as part of the Logins map, which is linked to the identity pool. The developer provider is the \"domain\" by which Cognito will refer to your users.

You can use GetOpenIdTokenForDeveloperIdentity to create a new identity and to link new logins (that is, user credentials issued by a public provider or developer provider) to an existing identity. When you want to create a new identity, the IdentityId should be null. When you want to associate a new login with an existing authenticated/unauthenticated identity, you can do so by providing the existing IdentityId. This API will create the identity in the specified IdentityPoolId.

You must use AWS Developer credentials to call this API.

", + "ListIdentities": "

Lists the identities in a pool.

You must use AWS Developer credentials to call this API.

", + "ListIdentityPools": "

Lists all of the Cognito identity pools registered for your account.

This is a public API. You do not need any credentials to call this API.

", + "LookupDeveloperIdentity": "

Retrieves the IdentityID associated with a DeveloperUserIdentifier or the list of DeveloperUserIdentifiers associated with an IdentityId for an existing identity. Either IdentityID or DeveloperUserIdentifier must not be null. If you supply only one of these values, the other value will be searched in the database and returned as a part of the response. If you supply both, DeveloperUserIdentifier will be matched against IdentityID. If the values are verified against the database, the response returns both values and is the same as the request. Otherwise a ResourceConflictException is thrown.

You must use AWS Developer credentials to call this API.

", + "MergeDeveloperIdentities": "

Merges two users having different IdentityIds, existing in the same identity pool, and identified by the same developer provider. You can use this action to request that discrete users be merged and identified as a single user in the Cognito environment. Cognito associates the given source user (SourceUserIdentifier) with the IdentityId of the DestinationUserIdentifier. Only developer-authenticated users can be merged. If the users to be merged are associated with the same public provider, but as two different users, an exception will be thrown.

You must use AWS Developer credentials to call this API.

", + "SetIdentityPoolRoles": "

Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action.

You must use AWS Developer credentials to call this API.

", + "UnlinkDeveloperIdentity": "

Unlinks a DeveloperUserIdentifier from an existing identity. Unlinked developer users will be considered new identities next time they are seen. If, for a given Cognito identity, you remove all federated identities as well as the developer user identifier, the Cognito identity becomes inaccessible.

This is a public API. You do not need any credentials to call this API.

", + "UnlinkIdentity": "

Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.

This is a public API. You do not need any credentials to call this API.

", + "UpdateIdentityPool": "

Updates a user pool.

You must use AWS Developer credentials to call this API.

" }, + "service": "Amazon Cognito

Amazon Cognito is a web service that delivers scoped temporary credentials to mobile devices and other untrusted environments. Amazon Cognito uniquely identifies a device and supplies the user with a consistent identity over the lifetime of an application.

Using Amazon Cognito, you can enable authentication with one or more third-party identity providers (Facebook, Google, or Login with Amazon), and you can also choose to support unauthenticated access from your app. Cognito delivers a unique identifier for each user and acts as an OpenID token provider trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS credentials.

To provide end-user credentials, first make an unsigned call to GetId. If the end user is authenticated with one of the supported identity providers, set the Logins map with the identity provider token. GetId returns a unique identifier for the user.

Next, make an unsigned call to GetCredentialsForIdentity. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId. Assuming your identity pool has been configured via the SetIdentityPoolRoles operation, GetCredentialsForIdentity will return AWS credentials for your use. If your pool has not been configured with SetIdentityPoolRoles, or if you want to follow legacy flow, make an unsigned call to GetOpenIdToken, which returns the OpenID token necessary to call STS and retrieve AWS credentials. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId. The token returned by GetOpenIdToken can be passed to the STS operation AssumeRoleWithWebIdentity to retrieve AWS credentials.

If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably want to make API calls via the AWS Mobile SDK. To learn more, see the AWS Mobile SDK Developer Guide.

", "shapes": { "ARNString": { "base": null, @@ -41,31 +41,6 @@ "GetIdInput$AccountId": "A standard AWS account ID (9+ digits)." } }, - "CognitoIdentityProvider": { - "base": "

A provider representing a Cognito User Identity Pool and its client ID.

", - "refs": { - "CognitoIdentityProviderList$member": null - } - }, - "CognitoIdentityProviderClientId": { - "base": null, - "refs": { - "CognitoIdentityProvider$ClientId": "

The client ID for the Cognito User Identity Pool.

" - } - }, - "CognitoIdentityProviderList": { - "base": null, - "refs": { - "CreateIdentityPoolInput$CognitoIdentityProviders": "

A list representing a Cognito User Identity Pool and its client ID.

", - "IdentityPool$CognitoIdentityProviders": "

A list representing a Cognito User Identity Pool and its client ID.

" - } - }, - "CognitoIdentityProviderName": { - "base": null, - "refs": { - "CognitoIdentityProvider$ProviderName": "

The provider name for a Cognito User Identity Pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789.

" - } - }, "ConcurrentModificationException": { "base": "

Thrown if there are parallel requests to modify a resource.

", "refs": { @@ -77,9 +52,9 @@ } }, "Credentials": { - "base": "

Credentials for the provided identity ID.

", + "base": "

Credentials for the the provided identity ID.

", "refs": { - "GetCredentialsForIdentityResponse$Credentials": "

Credentials for the provided identity ID.

" + "GetCredentialsForIdentityResponse$Credentials": "

Credentials for the the provided identity ID.

" } }, "DateType": { @@ -380,9 +355,9 @@ "base": null, "refs": { "GetCredentialsForIdentityInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens.

", - "GetIdInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens.

The available provider names for Logins are as follows:

  • Facebook: graph.facebook.com
  • Amazon Cognito Identity Provider: cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
  • Google: accounts.google.com
  • Amazon: www.amazon.com
  • Twitter: api.twitter.com
  • Digits: www.digits.com

", + "GetIdInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens.

The available provider names for Logins are as follows:

  • Facebook: graph.facebook.com
  • Google: accounts.google.com
  • Amazon: www.amazon.com
  • Twitter: www.twitter.com
  • Digits: www.digits.com

", "GetOpenIdTokenForDeveloperIdentityInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens. Each name-value pair represents a user from a public provider or developer provider. If the user is from a developer provider, the name-value pair will follow the syntax \"developer_provider_name\": \"developer_user_identifier\". The developer provider is the \"domain\" by which Cognito will refer to your users; you provided this domain while creating/updating the identity pool. The developer user identifier is an identifier from your backend that uniquely identifies a user. When you create an identity pool, you can specify the supported logins.

", - "GetOpenIdTokenInput$Logins": "

A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon Cognito Identity Provider, or any other OpenId Connect provider, always include the id_token.

", + "GetOpenIdTokenInput$Logins": "A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com or any other OpenId Connect provider, always include the id_token.", "UnlinkIdentityInput$Logins": "A set of optional name-value pairs that map provider names to provider tokens." } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-sync/2014-06-30/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cognito-sync/2014-06-30/api-2.json similarity index 99% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cognito-sync/2014-06-30/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cognito-sync/2014-06-30/api-2.json index 3f1b7122d..96dc61cfd 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-sync/2014-06-30/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/cognito-sync/2014-06-30/api-2.json @@ -1322,13 +1322,13 @@ "IdentityId":{ "type":"string", "min":1, - "max":55, + "max":50, "pattern":"[\\w-]+:[0-9a-f-]+" }, "IdentityPoolId":{ "type":"string", "min":1, - "max":55, + "max":50, "pattern":"[\\w-]+:[0-9a-f-]+" }, "IdentityPoolUsage":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-sync/2014-06-30/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/cognito-sync/2014-06-30/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cognito-sync/2014-06-30/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/cognito-sync/2014-06-30/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/apis/config/2014-11-12/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/config/2014-11-12/api-2.json new file mode 100644 index 000000000..3d0a81b11 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/config/2014-11-12/api-2.json @@ -0,0 +1,788 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2014-11-12", + "endpointPrefix":"config", + "jsonVersion":"1.1", + "serviceAbbreviation":"Config Service", + "serviceFullName":"AWS Config", + "signatureVersion":"v4", + "targetPrefix":"StarlingDoveService", + "protocol":"json" + }, + "operations":{ + "DeleteDeliveryChannel":{ + "name":"DeleteDeliveryChannel", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteDeliveryChannelRequest"}, + "errors":[ + { + "shape":"NoSuchDeliveryChannelException", + "exception":true + }, + { + "shape":"LastDeliveryChannelDeleteFailedException", + "exception":true + } + ] + }, + "DeliverConfigSnapshot":{ + "name":"DeliverConfigSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeliverConfigSnapshotRequest"}, + "output":{"shape":"DeliverConfigSnapshotResponse"}, + "errors":[ + { + "shape":"NoSuchDeliveryChannelException", + "exception":true + }, + { + "shape":"NoAvailableConfigurationRecorderException", + "exception":true + }, + { + "shape":"NoRunningConfigurationRecorderException", + "exception":true + } + ] + }, + "DescribeConfigurationRecorderStatus":{ + "name":"DescribeConfigurationRecorderStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeConfigurationRecorderStatusRequest"}, + "output":{"shape":"DescribeConfigurationRecorderStatusResponse"}, + "errors":[ + { + "shape":"NoSuchConfigurationRecorderException", + "exception":true + } + ] + }, + "DescribeConfigurationRecorders":{ + "name":"DescribeConfigurationRecorders", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeConfigurationRecordersRequest"}, + "output":{"shape":"DescribeConfigurationRecordersResponse"}, + "errors":[ + { + "shape":"NoSuchConfigurationRecorderException", + "exception":true + } + ] + }, + "DescribeDeliveryChannelStatus":{ + "name":"DescribeDeliveryChannelStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeDeliveryChannelStatusRequest"}, + "output":{"shape":"DescribeDeliveryChannelStatusResponse"}, + "errors":[ + { + "shape":"NoSuchDeliveryChannelException", + "exception":true + } + ] + }, + "DescribeDeliveryChannels":{ + "name":"DescribeDeliveryChannels", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeDeliveryChannelsRequest"}, + "output":{"shape":"DescribeDeliveryChannelsResponse"}, + "errors":[ + { + "shape":"NoSuchDeliveryChannelException", + "exception":true + } + ] + }, + "GetResourceConfigHistory":{ + "name":"GetResourceConfigHistory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetResourceConfigHistoryRequest"}, + "output":{"shape":"GetResourceConfigHistoryResponse"}, + "errors":[ + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"InvalidTimeRangeException", + "exception":true + }, + { + "shape":"InvalidLimitException", + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "exception":true + }, + { + "shape":"NoAvailableConfigurationRecorderException", + "exception":true + }, + { + "shape":"ResourceNotDiscoveredException", + "exception":true + } + ] + }, + "ListDiscoveredResources":{ + "name":"ListDiscoveredResources", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDiscoveredResourcesRequest"}, + "output":{"shape":"ListDiscoveredResourcesResponse"}, + "errors":[ + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"InvalidLimitException", + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "exception":true + }, + { + "shape":"NoAvailableConfigurationRecorderException", + "exception":true + } + ] + }, + "PutConfigurationRecorder":{ + "name":"PutConfigurationRecorder", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutConfigurationRecorderRequest"}, + "errors":[ + { + "shape":"MaxNumberOfConfigurationRecordersExceededException", + "exception":true + }, + { + "shape":"InvalidConfigurationRecorderNameException", + "exception":true + }, + { + "shape":"InvalidRoleException", + "exception":true + }, + { + "shape":"InvalidRecordingGroupException", + "exception":true + } + ] + }, + "PutDeliveryChannel":{ + "name":"PutDeliveryChannel", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutDeliveryChannelRequest"}, + "errors":[ + { + "shape":"MaxNumberOfDeliveryChannelsExceededException", + "exception":true + }, + { + "shape":"NoAvailableConfigurationRecorderException", + "exception":true + }, + { + "shape":"InvalidDeliveryChannelNameException", + "exception":true + }, + { + "shape":"NoSuchBucketException", + "exception":true + }, + { + "shape":"InvalidS3KeyPrefixException", + "exception":true + }, + { + "shape":"InvalidSNSTopicARNException", + "exception":true + }, + { + "shape":"InsufficientDeliveryPolicyException", + "exception":true + } + ] + }, + "StartConfigurationRecorder":{ + "name":"StartConfigurationRecorder", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartConfigurationRecorderRequest"}, + "errors":[ + { + "shape":"NoSuchConfigurationRecorderException", + "exception":true + }, + { + "shape":"NoAvailableDeliveryChannelException", + "exception":true + } + ] + }, + "StopConfigurationRecorder":{ + "name":"StopConfigurationRecorder", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopConfigurationRecorderRequest"}, + "errors":[ + { + "shape":"NoSuchConfigurationRecorderException", + "exception":true + } + ] + } + }, + "shapes":{ + "ARN":{"type":"string"}, + "AccountId":{"type":"string"}, + "AllSupported":{"type":"boolean"}, + "AvailabilityZone":{"type":"string"}, + "AwsRegion":{"type":"string"}, + "Boolean":{"type":"boolean"}, + "ChannelName":{ + "type":"string", + "min":1, + "max":256 + }, + "ChronologicalOrder":{ + "type":"string", + "enum":[ + "Reverse", + "Forward" + ] + }, + "ConfigExportDeliveryInfo":{ + "type":"structure", + "members":{ + "lastStatus":{"shape":"DeliveryStatus"}, + "lastErrorCode":{"shape":"String"}, + "lastErrorMessage":{"shape":"String"}, + "lastAttemptTime":{"shape":"Date"}, + "lastSuccessfulTime":{"shape":"Date"} + } + }, + "ConfigStreamDeliveryInfo":{ + "type":"structure", + "members":{ + "lastStatus":{"shape":"DeliveryStatus"}, + "lastErrorCode":{"shape":"String"}, + "lastErrorMessage":{"shape":"String"}, + "lastStatusChangeTime":{"shape":"Date"} + } + }, + "Configuration":{"type":"string"}, + "ConfigurationItem":{ + "type":"structure", + "members":{ + "version":{"shape":"Version"}, + "accountId":{"shape":"AccountId"}, + "configurationItemCaptureTime":{"shape":"ConfigurationItemCaptureTime"}, + "configurationItemStatus":{"shape":"ConfigurationItemStatus"}, + "configurationStateId":{"shape":"ConfigurationStateId"}, + "configurationItemMD5Hash":{"shape":"ConfigurationItemMD5Hash"}, + "arn":{"shape":"ARN"}, + "resourceType":{"shape":"ResourceType"}, + "resourceId":{"shape":"ResourceId"}, + "resourceName":{"shape":"ResourceName"}, + "awsRegion":{"shape":"AwsRegion"}, + "availabilityZone":{"shape":"AvailabilityZone"}, + "resourceCreationTime":{"shape":"ResourceCreationTime"}, + "tags":{"shape":"Tags"}, + "relatedEvents":{"shape":"RelatedEventList"}, + "relationships":{"shape":"RelationshipList"}, + "configuration":{"shape":"Configuration"} + } + }, + "ConfigurationItemCaptureTime":{"type":"timestamp"}, + "ConfigurationItemList":{ + "type":"list", + "member":{"shape":"ConfigurationItem"} + }, + "ConfigurationItemMD5Hash":{"type":"string"}, + "ConfigurationItemStatus":{ + "type":"string", + "enum":[ + "Ok", + "Failed", + "Discovered", + "Deleted" + ] + }, + "ConfigurationRecorder":{ + "type":"structure", + "members":{ + "name":{"shape":"RecorderName"}, + "roleARN":{"shape":"String"}, + "recordingGroup":{"shape":"RecordingGroup"} + } + }, + "ConfigurationRecorderList":{ + "type":"list", + "member":{"shape":"ConfigurationRecorder"} + }, + "ConfigurationRecorderNameList":{ + "type":"list", + "member":{"shape":"RecorderName"} + }, + "ConfigurationRecorderStatus":{ + "type":"structure", + "members":{ + "name":{"shape":"String"}, + "lastStartTime":{"shape":"Date"}, + "lastStopTime":{"shape":"Date"}, + "recording":{"shape":"Boolean"}, + "lastStatus":{"shape":"RecorderStatus"}, + "lastErrorCode":{"shape":"String"}, + "lastErrorMessage":{"shape":"String"}, + "lastStatusChangeTime":{"shape":"Date"} + } + }, + "ConfigurationRecorderStatusList":{ + "type":"list", + "member":{"shape":"ConfigurationRecorderStatus"} + }, + "ConfigurationStateId":{"type":"string"}, + "Date":{"type":"timestamp"}, + "DeleteDeliveryChannelRequest":{ + "type":"structure", + "required":["DeliveryChannelName"], + "members":{ + "DeliveryChannelName":{"shape":"ChannelName"} + } + }, + "DeliverConfigSnapshotRequest":{ + "type":"structure", + "required":["deliveryChannelName"], + "members":{ + "deliveryChannelName":{"shape":"ChannelName"} + } + }, + "DeliverConfigSnapshotResponse":{ + "type":"structure", + "members":{ + "configSnapshotId":{"shape":"String"} + } + }, + "DeliveryChannel":{ + "type":"structure", + "members":{ + "name":{"shape":"ChannelName"}, + "s3BucketName":{"shape":"String"}, + "s3KeyPrefix":{"shape":"String"}, + "snsTopicARN":{"shape":"String"} + } + }, + "DeliveryChannelList":{ + "type":"list", + "member":{"shape":"DeliveryChannel"} + }, + "DeliveryChannelNameList":{ + "type":"list", + "member":{"shape":"ChannelName"} + }, + "DeliveryChannelStatus":{ + "type":"structure", + "members":{ + "name":{"shape":"String"}, + "configSnapshotDeliveryInfo":{"shape":"ConfigExportDeliveryInfo"}, + "configHistoryDeliveryInfo":{"shape":"ConfigExportDeliveryInfo"}, + "configStreamDeliveryInfo":{"shape":"ConfigStreamDeliveryInfo"} + } + }, + "DeliveryChannelStatusList":{ + "type":"list", + "member":{"shape":"DeliveryChannelStatus"} + }, + "DeliveryStatus":{ + "type":"string", + "enum":[ + "Success", + "Failure", + "Not_Applicable" + ] + }, + "DescribeConfigurationRecorderStatusRequest":{ + "type":"structure", + "members":{ + "ConfigurationRecorderNames":{"shape":"ConfigurationRecorderNameList"} + } + }, + "DescribeConfigurationRecorderStatusResponse":{ + "type":"structure", + "members":{ + "ConfigurationRecordersStatus":{"shape":"ConfigurationRecorderStatusList"} + } + }, + "DescribeConfigurationRecordersRequest":{ + "type":"structure", + "members":{ + "ConfigurationRecorderNames":{"shape":"ConfigurationRecorderNameList"} + } + }, + "DescribeConfigurationRecordersResponse":{ + "type":"structure", + "members":{ + "ConfigurationRecorders":{"shape":"ConfigurationRecorderList"} + } + }, + "DescribeDeliveryChannelStatusRequest":{ + "type":"structure", + "members":{ + "DeliveryChannelNames":{"shape":"DeliveryChannelNameList"} + } + }, + "DescribeDeliveryChannelStatusResponse":{ + "type":"structure", + "members":{ + "DeliveryChannelsStatus":{"shape":"DeliveryChannelStatusList"} + } + }, + "DescribeDeliveryChannelsRequest":{ + "type":"structure", + "members":{ + "DeliveryChannelNames":{"shape":"DeliveryChannelNameList"} + } + }, + "DescribeDeliveryChannelsResponse":{ + "type":"structure", + "members":{ + "DeliveryChannels":{"shape":"DeliveryChannelList"} + } + }, + "EarlierTime":{"type":"timestamp"}, + "GetResourceConfigHistoryRequest":{ + "type":"structure", + "required":[ + "resourceType", + "resourceId" + ], + "members":{ + "resourceType":{"shape":"ResourceType"}, + "resourceId":{"shape":"ResourceId"}, + "laterTime":{"shape":"LaterTime"}, + "earlierTime":{"shape":"EarlierTime"}, + "chronologicalOrder":{"shape":"ChronologicalOrder"}, + "limit":{"shape":"Limit"}, + "nextToken":{"shape":"NextToken"} + } + }, + "GetResourceConfigHistoryResponse":{ + "type":"structure", + "members":{ + "configurationItems":{"shape":"ConfigurationItemList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "InsufficientDeliveryPolicyException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidConfigurationRecorderNameException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidDeliveryChannelNameException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidLimitException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidRecordingGroupException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidRoleException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidS3KeyPrefixException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidSNSTopicARNException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidTimeRangeException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "LastDeliveryChannelDeleteFailedException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "LaterTime":{"type":"timestamp"}, + "Limit":{ + "type":"integer", + "min":0, + "max":100 + }, + "ListDiscoveredResourcesRequest":{ + "type":"structure", + "required":["resourceType"], + "members":{ + "resourceType":{"shape":"ResourceType"}, + "resourceIds":{"shape":"ResourceIdList"}, + "resourceName":{"shape":"ResourceName"}, + "limit":{"shape":"Limit"}, + "includeDeletedResources":{"shape":"Boolean"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListDiscoveredResourcesResponse":{ + "type":"structure", + "members":{ + "resourceIdentifiers":{"shape":"ResourceIdentifierList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "MaxNumberOfConfigurationRecordersExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "MaxNumberOfDeliveryChannelsExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "Name":{"type":"string"}, + "NextToken":{"type":"string"}, + "NoAvailableConfigurationRecorderException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "NoAvailableDeliveryChannelException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "NoRunningConfigurationRecorderException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "NoSuchBucketException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "NoSuchConfigurationRecorderException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "NoSuchDeliveryChannelException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "PutConfigurationRecorderRequest":{ + "type":"structure", + "required":["ConfigurationRecorder"], + "members":{ + "ConfigurationRecorder":{"shape":"ConfigurationRecorder"} + } + }, + "PutDeliveryChannelRequest":{ + "type":"structure", + "required":["DeliveryChannel"], + "members":{ + "DeliveryChannel":{"shape":"DeliveryChannel"} + } + }, + "RecorderName":{ + "type":"string", + "min":1, + "max":256 + }, + "RecorderStatus":{ + "type":"string", + "enum":[ + "Pending", + "Success", + "Failure" + ] + }, + "RecordingGroup":{ + "type":"structure", + "members":{ + "allSupported":{"shape":"AllSupported"}, + "resourceTypes":{"shape":"ResourceTypeList"} + } + }, + "RelatedEvent":{"type":"string"}, + "RelatedEventList":{ + "type":"list", + "member":{"shape":"RelatedEvent"} + }, + "Relationship":{ + "type":"structure", + "members":{ + "resourceType":{"shape":"ResourceType"}, + "resourceId":{"shape":"ResourceId"}, + "resourceName":{"shape":"ResourceName"}, + "relationshipName":{"shape":"RelationshipName"} + } + }, + "RelationshipList":{ + "type":"list", + "member":{"shape":"Relationship"} + }, + "RelationshipName":{"type":"string"}, + "ResourceCreationTime":{"type":"timestamp"}, + "ResourceDeletionTime":{"type":"timestamp"}, + "ResourceId":{"type":"string"}, + "ResourceIdList":{ + "type":"list", + "member":{"shape":"ResourceId"} + }, + "ResourceIdentifier":{ + "type":"structure", + "members":{ + "resourceType":{"shape":"ResourceType"}, + "resourceId":{"shape":"ResourceId"}, + "resourceName":{"shape":"ResourceName"}, + "resourceDeletionTime":{"shape":"ResourceDeletionTime"} + } + }, + "ResourceIdentifierList":{ + "type":"list", + "member":{"shape":"ResourceIdentifier"} + }, + "ResourceName":{"type":"string"}, + "ResourceNotDiscoveredException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ResourceType":{ + "type":"string", + "enum":[ + "AWS::EC2::CustomerGateway", + "AWS::EC2::EIP", + "AWS::EC2::Instance", + "AWS::EC2::InternetGateway", + "AWS::EC2::NetworkAcl", + "AWS::EC2::NetworkInterface", + "AWS::EC2::RouteTable", + "AWS::EC2::SecurityGroup", + "AWS::EC2::Subnet", + "AWS::CloudTrail::Trail", + "AWS::EC2::Volume", + "AWS::EC2::VPC", + "AWS::EC2::VPNConnection", + "AWS::EC2::VPNGateway" + ] + }, + "ResourceTypeList":{ + "type":"list", + "member":{"shape":"ResourceType"} + }, + "StartConfigurationRecorderRequest":{ + "type":"structure", + "required":["ConfigurationRecorderName"], + "members":{ + "ConfigurationRecorderName":{"shape":"RecorderName"} + } + }, + "StopConfigurationRecorderRequest":{ + "type":"structure", + "required":["ConfigurationRecorderName"], + "members":{ + "ConfigurationRecorderName":{"shape":"RecorderName"} + } + }, + "String":{"type":"string"}, + "Tags":{ + "type":"map", + "key":{"shape":"Name"}, + "value":{"shape":"Value"} + }, + "ValidationException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "Value":{"type":"string"}, + "Version":{"type":"string"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/apis/config/2014-11-12/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/config/2014-11-12/docs-2.json new file mode 100644 index 000000000..ae2ae1a1c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/config/2014-11-12/docs-2.json @@ -0,0 +1,596 @@ +{ + "version": "2.0", + "operations": { + "DeleteDeliveryChannel": "

Deletes the specified delivery channel.

The delivery channel cannot be deleted if it is the only delivery channel and the configuration recorder is still running. To delete the delivery channel, stop the running configuration recorder using the StopConfigurationRecorder action.

", + "DeliverConfigSnapshot": "

Schedules delivery of a configuration snapshot to the Amazon S3 bucket in the specified delivery channel. After the delivery has started, AWS Config sends following notifications using an Amazon SNS topic that you have specified.

  • Notification of starting the delivery.
  • Notification of delivery completed, if the delivery was successfully completed.
  • Notification of delivery failure, if the delivery failed to complete.
", + "DescribeConfigurationRecorderStatus": "

Returns the current status of the specified configuration recorder. If a configuration recorder is not specified, this action returns the status of all configuration recorder associated with the account.

Currently, you can specify only one configuration recorder per account.", + "DescribeConfigurationRecorders": "

Returns the name of one or more specified configuration recorders. If the recorder name is not specified, this action returns the names of all the configuration recorders associated with the account.

Currently, you can specify only one configuration recorder per account.

", + "DescribeDeliveryChannelStatus": "

Returns the current status of the specified delivery channel. If a delivery channel is not specified, this action returns the current status of all delivery channels associated with the account.

Currently, you can specify only one delivery channel per account.", + "DescribeDeliveryChannels": "

Returns details about the specified delivery channel. If a delivery channel is not specified, this action returns the details of all delivery channels associated with the account.

Currently, you can specify only one delivery channel per account.

", + "GetResourceConfigHistory": "

Returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval.

The response is paginated, and by default, AWS Config returns a limit of 10 configuration items per page. You can customize this number with the limit parameter. The response includes a nextToken string, and to get the next page of results, run the request again and enter this string for the nextToken parameter.

Each call to the API is limited to span a duration of seven days. It is likely that the number of records returned is smaller than the specified limit. In such cases, you can make another call, using the nextToken.

", + "ListDiscoveredResources": "

Accepts a resource type and returns a list of resource identifiers for the resources of that type. A resource identifier includes the resource type, ID, and (if available) the custom resource name. The results consist of resources that AWS Config has discovered, including those that AWS Config is not currently recording. You can narrow the results to include only resources that have specific resource IDs or a resource name.

You can specify either resource IDs or a resource name but not both in the same request.

The response is paginated, and by default AWS Config lists 100 resource identifiers on each page. You can customize this number with the limit parameter. The response includes a nextToken string, and to get the next page of results, run the request again and enter this string for the nextToken parameter.

", + "PutConfigurationRecorder": "

Creates a new configuration recorder to record the selected resource configurations.

You can use this action to change the role roleARN and/or the recordingGroup of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role.

Currently, you can specify only one configuration recorder per account.

If ConfigurationRecorder does not have the recordingGroup parameter specified, the default is to record all supported resource types.

", + "PutDeliveryChannel": "

Creates a new delivery channel object to deliver the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic.

You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed.

Currently, you can specify only one delivery channel per account.

", + "StartConfigurationRecorder": "

Starts recording configurations of the AWS resources you have selected to record in your AWS account.

You must have created at least one delivery channel to successfully start the configuration recorder.

", + "StopConfigurationRecorder": "

Stops recording configurations of the AWS resources you have selected to record in your AWS account.

" + }, + "service": "AWS Config

AWS Config provides a way to keep track of the configurations of all the AWS resources associated with your AWS account. You can use AWS Config to get the current and historical configurations of each AWS resource and also to get information about the relationship between the resources. An AWS resource can be an Amazon Compute Cloud (Amazon EC2) instance, an Elastic Block Store (EBS) volume, an Elastic network Interface (ENI), or a security group. For a complete list of resources currently supported by AWS Config, see Supported AWS Resources.

You can access and manage AWS Config through the AWS Management Console, the AWS Command Line Interface (AWS CLI), the AWS Config API, or the AWS SDKs for AWS Config

This reference guide contains documentation for the AWS Config API and the AWS CLI commands that you can use to manage AWS Config.

The AWS Config API uses the Signature Version 4 protocol for signing requests. For more information about how to sign a request with this protocol, see Signature Version 4 Signing Process.

For detailed information about AWS Config features and their associated actions or commands, as well as how to work with AWS Management Console, see What Is AWS Config? in the AWS Config Developer Guide.

", + "shapes": { + "ARN": { + "base": null, + "refs": { + "ConfigurationItem$arn": "

The Amazon Resource Name (ARN) of the resource.

" + } + }, + "AccountId": { + "base": null, + "refs": { + "ConfigurationItem$accountId": "

The 12 digit AWS account ID associated with the resource.

" + } + }, + "AllSupported": { + "base": null, + "refs": { + "RecordingGroup$allSupported": "

Records all supported resource types in the recording group. For a list of supported resource types, see Supported resource types. If you specify allSupported, you cannot enumerate a list of resourceTypes.

" + } + }, + "AvailabilityZone": { + "base": null, + "refs": { + "ConfigurationItem$availabilityZone": "

The Availability Zone associated with the resource.

" + } + }, + "AwsRegion": { + "base": null, + "refs": { + "ConfigurationItem$awsRegion": "

The region where the resource resides.

" + } + }, + "Boolean": { + "base": null, + "refs": { + "ConfigurationRecorderStatus$recording": "

Specifies whether the recorder is currently recording or not.

", + "ListDiscoveredResourcesRequest$includeDeletedResources": "

Specifies whether AWS Config includes deleted resources in the results. By default, deleted resources are not included.

" + } + }, + "ChannelName": { + "base": null, + "refs": { + "DeleteDeliveryChannelRequest$DeliveryChannelName": "

The name of the delivery channel to delete.

", + "DeliverConfigSnapshotRequest$deliveryChannelName": "

The name of the delivery channel through which the snapshot is delivered.

", + "DeliveryChannel$name": "

The name of the delivery channel. By default, AWS Config automatically assigns the name \"default\" when creating the delivery channel. You cannot change the assigned name.

", + "DeliveryChannelNameList$member": null + } + }, + "ChronologicalOrder": { + "base": null, + "refs": { + "GetResourceConfigHistoryRequest$chronologicalOrder": "

The chronological order for configuration items listed. By default the results are listed in reverse chronological order.

" + } + }, + "ConfigExportDeliveryInfo": { + "base": "

A list that contains the status of the delivery of either the snapshot or the configuration history to the specified Amazon S3 bucket.

", + "refs": { + "DeliveryChannelStatus$configSnapshotDeliveryInfo": "

A list containing the status of the delivery of the snapshot to the specified Amazon S3 bucket.

", + "DeliveryChannelStatus$configHistoryDeliveryInfo": "

A list that contains the status of the delivery of the configuration history to the specified Amazon S3 bucket.

" + } + }, + "ConfigStreamDeliveryInfo": { + "base": "

A list that contains the status of the delivery of the configuration stream notification to the Amazon SNS topic.

", + "refs": { + "DeliveryChannelStatus$configStreamDeliveryInfo": "

A list containing the status of the delivery of the configuration stream notification to the specified Amazon SNS topic.

" + } + }, + "Configuration": { + "base": null, + "refs": { + "ConfigurationItem$configuration": "

The description of the resource configuration.

" + } + }, + "ConfigurationItem": { + "base": "

A list that contains detailed configurations of a specified resource.

Currently, the list does not contain information about non-AWS components (for example, applications on your Amazon EC2 instances).

", + "refs": { + "ConfigurationItemList$member": null + } + }, + "ConfigurationItemCaptureTime": { + "base": null, + "refs": { + "ConfigurationItem$configurationItemCaptureTime": "

The time when the configuration recording was initiated.

" + } + }, + "ConfigurationItemList": { + "base": null, + "refs": { + "GetResourceConfigHistoryResponse$configurationItems": "

A list that contains the configuration history of one or more resources.

" + } + }, + "ConfigurationItemMD5Hash": { + "base": null, + "refs": { + "ConfigurationItem$configurationItemMD5Hash": "

Unique MD5 hash that represents the configuration item's state.

You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

" + } + }, + "ConfigurationItemStatus": { + "base": null, + "refs": { + "ConfigurationItem$configurationItemStatus": "

The configuration item status.

" + } + }, + "ConfigurationRecorder": { + "base": "

An object that represents the recording of configuration changes of an AWS resource.

", + "refs": { + "ConfigurationRecorderList$member": null, + "PutConfigurationRecorderRequest$ConfigurationRecorder": "

The configuration recorder object that records each configuration change made to the resources.

" + } + }, + "ConfigurationRecorderList": { + "base": null, + "refs": { + "DescribeConfigurationRecordersResponse$ConfigurationRecorders": "

A list that contains the descriptions of the specified configuration recorders.

" + } + }, + "ConfigurationRecorderNameList": { + "base": null, + "refs": { + "DescribeConfigurationRecorderStatusRequest$ConfigurationRecorderNames": "

The name(s) of the configuration recorder. If the name is not specified, the action returns the current status of all the configuration recorders associated with the account.

", + "DescribeConfigurationRecordersRequest$ConfigurationRecorderNames": "

A list of configuration recorder names.

" + } + }, + "ConfigurationRecorderStatus": { + "base": "

The current status of the configuration recorder.

", + "refs": { + "ConfigurationRecorderStatusList$member": null + } + }, + "ConfigurationRecorderStatusList": { + "base": null, + "refs": { + "DescribeConfigurationRecorderStatusResponse$ConfigurationRecordersStatus": "

A list that contains status of the specified recorders.

" + } + }, + "ConfigurationStateId": { + "base": null, + "refs": { + "ConfigurationItem$configurationStateId": "

An identifier that indicates the ordering of the configuration items of a resource.

" + } + }, + "Date": { + "base": null, + "refs": { + "ConfigExportDeliveryInfo$lastAttemptTime": "

The time of the last attempted delivery.

", + "ConfigExportDeliveryInfo$lastSuccessfulTime": "

The time of the last successful delivery.

", + "ConfigStreamDeliveryInfo$lastStatusChangeTime": "

The time from the last status change.

", + "ConfigurationRecorderStatus$lastStartTime": "

The time the recorder was last started.

", + "ConfigurationRecorderStatus$lastStopTime": "

The time the recorder was last stopped.

", + "ConfigurationRecorderStatus$lastStatusChangeTime": "

The time when the status was last changed.

" + } + }, + "DeleteDeliveryChannelRequest": { + "base": "

The input for the DeleteDeliveryChannel action. The action accepts the following data in JSON format.

", + "refs": { + } + }, + "DeliverConfigSnapshotRequest": { + "base": "

The input for the DeliverConfigSnapshot action.

", + "refs": { + } + }, + "DeliverConfigSnapshotResponse": { + "base": "

The output for the DeliverConfigSnapshot action in JSON format.

", + "refs": { + } + }, + "DeliveryChannel": { + "base": "

A logical container used for storing the configuration changes of an AWS resource.

", + "refs": { + "DeliveryChannelList$member": null, + "PutDeliveryChannelRequest$DeliveryChannel": "

The configuration delivery channel object that delivers the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic.

" + } + }, + "DeliveryChannelList": { + "base": null, + "refs": { + "DescribeDeliveryChannelsResponse$DeliveryChannels": "

A list that contains the descriptions of the specified delivery channel.

" + } + }, + "DeliveryChannelNameList": { + "base": null, + "refs": { + "DescribeDeliveryChannelStatusRequest$DeliveryChannelNames": "

A list of delivery channel names.

", + "DescribeDeliveryChannelsRequest$DeliveryChannelNames": "

A list of delivery channel names.

" + } + }, + "DeliveryChannelStatus": { + "base": "

The status of a specified delivery channel.

Valid values: Success | Failure

", + "refs": { + "DeliveryChannelStatusList$member": null + } + }, + "DeliveryChannelStatusList": { + "base": null, + "refs": { + "DescribeDeliveryChannelStatusResponse$DeliveryChannelsStatus": "

A list that contains the status of a specified delivery channel.

" + } + }, + "DeliveryStatus": { + "base": null, + "refs": { + "ConfigExportDeliveryInfo$lastStatus": "

Status of the last attempted delivery.

", + "ConfigStreamDeliveryInfo$lastStatus": "

Status of the last attempted delivery.

Note Providing an SNS topic on a DeliveryChannel for AWS Config is optional. If the SNS delivery is turned off, the last status will be Not_Applicable.

" + } + }, + "DescribeConfigurationRecorderStatusRequest": { + "base": "

The input for the DescribeConfigurationRecorderStatus action.

", + "refs": { + } + }, + "DescribeConfigurationRecorderStatusResponse": { + "base": "

The output for the DescribeConfigurationRecorderStatus action in JSON format.

", + "refs": { + } + }, + "DescribeConfigurationRecordersRequest": { + "base": "

The input for the DescribeConfigurationRecorders action.

", + "refs": { + } + }, + "DescribeConfigurationRecordersResponse": { + "base": "

The output for the DescribeConfigurationRecorders action.

", + "refs": { + } + }, + "DescribeDeliveryChannelStatusRequest": { + "base": "

The input for the DeliveryChannelStatus action.

", + "refs": { + } + }, + "DescribeDeliveryChannelStatusResponse": { + "base": "

The output for the DescribeDeliveryChannelStatus action.

", + "refs": { + } + }, + "DescribeDeliveryChannelsRequest": { + "base": "

The input for the DescribeDeliveryChannels action.

", + "refs": { + } + }, + "DescribeDeliveryChannelsResponse": { + "base": "

The output for the DescribeDeliveryChannels action.

", + "refs": { + } + }, + "EarlierTime": { + "base": null, + "refs": { + "GetResourceConfigHistoryRequest$earlierTime": "

The time stamp that indicates an earlier time. If not specified, the action returns paginated results that contain configuration items that start from when the first configuration item was recorded.

" + } + }, + "GetResourceConfigHistoryRequest": { + "base": "

The input for the GetResourceConfigHistory action.

", + "refs": { + } + }, + "GetResourceConfigHistoryResponse": { + "base": "

The output for the GetResourceConfigHistory action.

", + "refs": { + } + }, + "InsufficientDeliveryPolicyException": { + "base": "

Your Amazon S3 bucket policy does not permit AWS Config to write to it.

", + "refs": { + } + }, + "InvalidConfigurationRecorderNameException": { + "base": "

You have provided a configuration recorder name that is not valid.

", + "refs": { + } + }, + "InvalidDeliveryChannelNameException": { + "base": "

The specified delivery channel name is not valid.

", + "refs": { + } + }, + "InvalidLimitException": { + "base": "

The specified limit is outside the allowable range.

", + "refs": { + } + }, + "InvalidNextTokenException": { + "base": "

The specified next token is invalid. Specify the nextToken string that was returned in the previous response to get the next page of results.

", + "refs": { + } + }, + "InvalidRecordingGroupException": { + "base": "

AWS Config throws an exception if the recording group does not contain a valid list of resource types. Invalid values could also be incorrectly formatted.

", + "refs": { + } + }, + "InvalidRoleException": { + "base": "

You have provided a null or empty role ARN.

", + "refs": { + } + }, + "InvalidS3KeyPrefixException": { + "base": "

The specified Amazon S3 key prefix is not valid.

", + "refs": { + } + }, + "InvalidSNSTopicARNException": { + "base": "

The specified Amazon SNS topic does not exist.

", + "refs": { + } + }, + "InvalidTimeRangeException": { + "base": "

The specified time range is not valid. The earlier time is not chronologically before the later time.

", + "refs": { + } + }, + "LastDeliveryChannelDeleteFailedException": { + "base": "

You cannot delete the delivery channel you specified because the configuration recorder is running.

", + "refs": { + } + }, + "LaterTime": { + "base": null, + "refs": { + "GetResourceConfigHistoryRequest$laterTime": "

The time stamp that indicates a later time. If not specified, current time is taken.

" + } + }, + "Limit": { + "base": null, + "refs": { + "GetResourceConfigHistoryRequest$limit": "

The maximum number of configuration items returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.

", + "ListDiscoveredResourcesRequest$limit": "

The maximum number of resource identifiers returned on each page. The default is 100. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.

" + } + }, + "ListDiscoveredResourcesRequest": { + "base": null, + "refs": { + } + }, + "ListDiscoveredResourcesResponse": { + "base": null, + "refs": { + } + }, + "MaxNumberOfConfigurationRecordersExceededException": { + "base": "

You have reached the limit on the number of recorders you can create.

", + "refs": { + } + }, + "MaxNumberOfDeliveryChannelsExceededException": { + "base": "

You have reached the limit on the number of delivery channels you can create.

", + "refs": { + } + }, + "Name": { + "base": null, + "refs": { + "Tags$key": null + } + }, + "NextToken": { + "base": null, + "refs": { + "GetResourceConfigHistoryRequest$nextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "GetResourceConfigHistoryResponse$nextToken": "

The string that you use in a subsequent request to get the next page of results in a paginated response.

", + "ListDiscoveredResourcesRequest$nextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "ListDiscoveredResourcesResponse$nextToken": "

The string that you use in a subsequent request to get the next page of results in a paginated response.

" + } + }, + "NoAvailableConfigurationRecorderException": { + "base": "

There are no configuration recorders available to provide the role needed to describe your resources. Create a configuration recorder.

", + "refs": { + } + }, + "NoAvailableDeliveryChannelException": { + "base": "

There is no delivery channel available to record configurations.

", + "refs": { + } + }, + "NoRunningConfigurationRecorderException": { + "base": "

There is no configuration recorder running.

", + "refs": { + } + }, + "NoSuchBucketException": { + "base": "

The specified Amazon S3 bucket does not exist.

", + "refs": { + } + }, + "NoSuchConfigurationRecorderException": { + "base": "

You have specified a configuration recorder that does not exist.

", + "refs": { + } + }, + "NoSuchDeliveryChannelException": { + "base": "

You have specified a delivery channel that does not exist.

", + "refs": { + } + }, + "PutConfigurationRecorderRequest": { + "base": "

The input for the PutConfigurationRecorder action.

", + "refs": { + } + }, + "PutDeliveryChannelRequest": { + "base": "

The input for the PutDeliveryChannel action.

", + "refs": { + } + }, + "RecorderName": { + "base": null, + "refs": { + "ConfigurationRecorder$name": "

The name of the recorder. By default, AWS Config automatically assigns the name \"default\" when creating the configuration recorder. You cannot change the assigned name.

", + "ConfigurationRecorderNameList$member": null, + "StartConfigurationRecorderRequest$ConfigurationRecorderName": "

The name of the recorder object that records each configuration change made to the resources.

", + "StopConfigurationRecorderRequest$ConfigurationRecorderName": "

The name of the recorder object that records each configuration change made to the resources.

" + } + }, + "RecorderStatus": { + "base": null, + "refs": { + "ConfigurationRecorderStatus$lastStatus": "

The last (previous) status of the recorder.

" + } + }, + "RecordingGroup": { + "base": "

The group of AWS resource types that AWS Config records when starting the configuration recorder.

recordingGroup can have one and only one parameter. Choose either allSupported or resourceTypes.

", + "refs": { + "ConfigurationRecorder$recordingGroup": "

The recording group specifies either to record configurations for all supported resources or to provide a list of resource types to record. The list of resource types must be a subset of supported resource types.

" + } + }, + "RelatedEvent": { + "base": null, + "refs": { + "RelatedEventList$member": null + } + }, + "RelatedEventList": { + "base": null, + "refs": { + "ConfigurationItem$relatedEvents": "

A list of CloudTrail event IDs.

A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

An empty field indicates that the current configuration was not initiated by any event.

" + } + }, + "Relationship": { + "base": "

The relationship of the related resource to the main resource.

", + "refs": { + "RelationshipList$member": null + } + }, + "RelationshipList": { + "base": null, + "refs": { + "ConfigurationItem$relationships": "

A list of related AWS resources.

" + } + }, + "RelationshipName": { + "base": null, + "refs": { + "Relationship$relationshipName": "

The type of relationship with the related resource.

" + } + }, + "ResourceCreationTime": { + "base": null, + "refs": { + "ConfigurationItem$resourceCreationTime": "

The time stamp when the resource was created.

" + } + }, + "ResourceDeletionTime": { + "base": null, + "refs": { + "ResourceIdentifier$resourceDeletionTime": "

The time that the resource was deleted.

" + } + }, + "ResourceId": { + "base": null, + "refs": { + "ConfigurationItem$resourceId": "

The ID of the resource (for example., sg-xxxxxx).

", + "GetResourceConfigHistoryRequest$resourceId": "

The ID of the resource (for example., sg-xxxxxx).

", + "Relationship$resourceId": "

The ID of the related resource (for example, sg-xxxxxx).

", + "ResourceIdList$member": null, + "ResourceIdentifier$resourceId": "

The ID of the resource (for example., sg-xxxxxx).

" + } + }, + "ResourceIdList": { + "base": null, + "refs": { + "ListDiscoveredResourcesRequest$resourceIds": "

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.

" + } + }, + "ResourceIdentifier": { + "base": "

The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.

", + "refs": { + "ResourceIdentifierList$member": null + } + }, + "ResourceIdentifierList": { + "base": null, + "refs": { + "ListDiscoveredResourcesResponse$resourceIdentifiers": "

The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.

" + } + }, + "ResourceName": { + "base": null, + "refs": { + "ConfigurationItem$resourceName": "

The custom name of the resource, if available.

", + "ListDiscoveredResourcesRequest$resourceName": "

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.

", + "Relationship$resourceName": "

The custom name of the related resource, if available.

", + "ResourceIdentifier$resourceName": "

The custom name of the resource (if available).

" + } + }, + "ResourceNotDiscoveredException": { + "base": "

You have specified a resource that is either unknown or has not been discovered.

", + "refs": { + } + }, + "ResourceType": { + "base": null, + "refs": { + "ConfigurationItem$resourceType": "

The type of AWS resource.

", + "GetResourceConfigHistoryRequest$resourceType": "

The resource type.

", + "ListDiscoveredResourcesRequest$resourceType": "

The type of resources that you want AWS Config to list in the response.

", + "Relationship$resourceType": "

The resource type of the related resource.

", + "ResourceIdentifier$resourceType": "

The type of resource.

", + "ResourceTypeList$member": null + } + }, + "ResourceTypeList": { + "base": null, + "refs": { + "RecordingGroup$resourceTypes": "

A comma-separated list of strings representing valid AWS resource types (for example, AWS::EC2::Instance or AWS::CloudTrail::Trail). resourceTypes is only valid if you have chosen not to select allSupported. For a list of valid resourceTypes values, see the resourceType Value column in the following topic: Supported AWS Resource Types.

" + } + }, + "StartConfigurationRecorderRequest": { + "base": "

The input for the StartConfigurationRecorder action.

", + "refs": { + } + }, + "StopConfigurationRecorderRequest": { + "base": "

The input for the StopConfigurationRecorder action.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "ConfigExportDeliveryInfo$lastErrorCode": "

The error code from the last attempted delivery.

", + "ConfigExportDeliveryInfo$lastErrorMessage": "

The error message from the last attempted delivery.

", + "ConfigStreamDeliveryInfo$lastErrorCode": "

The error code from the last attempted delivery.

", + "ConfigStreamDeliveryInfo$lastErrorMessage": "

The error message from the last attempted delivery.

", + "ConfigurationRecorder$roleARN": "

Amazon Resource Name (ARN) of the IAM role used to describe the AWS resources associated with the account.

", + "ConfigurationRecorderStatus$name": "

The name of the configuration recorder.

", + "ConfigurationRecorderStatus$lastErrorCode": "

The error code indicating that the recording failed.

", + "ConfigurationRecorderStatus$lastErrorMessage": "

The message indicating that the recording failed due to an error.

", + "DeliverConfigSnapshotResponse$configSnapshotId": "

The ID of the snapshot that is being created.

", + "DeliveryChannel$s3BucketName": "

The name of the Amazon S3 bucket used to store configuration history for the delivery channel.

", + "DeliveryChannel$s3KeyPrefix": "

The prefix for the specified Amazon S3 bucket.

", + "DeliveryChannel$snsTopicARN": "

The Amazon Resource Name (ARN) of the SNS topic that AWS Config delivers notifications to.

", + "DeliveryChannelStatus$name": "

The name of the delivery channel.

" + } + }, + "Tags": { + "base": null, + "refs": { + "ConfigurationItem$tags": "

A mapping of key value tags associated with the resource.

" + } + }, + "ValidationException": { + "base": "

The requested action is not valid.

", + "refs": { + } + }, + "Value": { + "base": null, + "refs": { + "Tags$value": null + } + }, + "Version": { + "base": null, + "refs": { + "ConfigurationItem$version": "

The version number of the resource configuration.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/config/2014-11-12/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/config/2014-11-12/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/datapipeline/2012-10-29/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/datapipeline/2012-10-29/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/datapipeline/2012-10-29/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/datapipeline/2012-10-29/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/datapipeline/2012-10-29/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/datapipeline/2012-10-29/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/devicefarm/2015-06-23/api-2.json similarity index 62% rename from vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/devicefarm/2015-06-23/api-2.json index 0c3eeedca..0f45a664c 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/devicefarm/2015-06-23/api-2.json @@ -4,10 +4,10 @@ "apiVersion":"2015-06-23", "endpointPrefix":"devicefarm", "jsonVersion":"1.1", - "protocol":"json", "serviceFullName":"AWS Device Farm", "signatureVersion":"v4", - "targetPrefix":"DeviceFarm_20150623" + "targetPrefix":"DeviceFarm_20150623", + "protocol":"json" }, "operations":{ "CreateDevicePool":{ @@ -19,10 +19,22 @@ "input":{"shape":"CreateDevicePoolRequest"}, "output":{"shape":"CreateDevicePoolResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "CreateProject":{ @@ -34,10 +46,22 @@ "input":{"shape":"CreateProjectRequest"}, "output":{"shape":"CreateProjectResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "CreateUpload":{ @@ -49,70 +73,22 @@ "input":{"shape":"CreateUploadRequest"}, "output":{"shape":"CreateUploadResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "DeleteDevicePool":{ - "name":"DeleteDevicePool", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDevicePoolRequest"}, - "output":{"shape":"DeleteDevicePoolResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "DeleteProject":{ - "name":"DeleteProject", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteProjectRequest"}, - "output":{"shape":"DeleteProjectResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "DeleteRun":{ - "name":"DeleteRun", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRunRequest"}, - "output":{"shape":"DeleteRunResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "DeleteUpload":{ - "name":"DeleteUpload", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteUploadRequest"}, - "output":{"shape":"DeleteUploadResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "GetAccountSettings":{ @@ -124,10 +100,22 @@ "input":{"shape":"GetAccountSettingsRequest"}, "output":{"shape":"GetAccountSettingsResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "GetDevice":{ @@ -139,10 +127,22 @@ "input":{"shape":"GetDeviceRequest"}, "output":{"shape":"GetDeviceResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "GetDevicePool":{ @@ -154,10 +154,22 @@ "input":{"shape":"GetDevicePoolRequest"}, "output":{"shape":"GetDevicePoolResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "GetDevicePoolCompatibility":{ @@ -169,10 +181,22 @@ "input":{"shape":"GetDevicePoolCompatibilityRequest"}, "output":{"shape":"GetDevicePoolCompatibilityResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "GetJob":{ @@ -184,26 +208,22 @@ "input":{"shape":"GetJobRequest"}, "output":{"shape":"GetJobResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "GetOfferingStatus":{ - "name":"GetOfferingStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetOfferingStatusRequest"}, - "output":{"shape":"GetOfferingStatusResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"NotEligibleException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "GetProject":{ @@ -215,10 +235,22 @@ "input":{"shape":"GetProjectRequest"}, "output":{"shape":"GetProjectResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "GetRun":{ @@ -230,10 +262,22 @@ "input":{"shape":"GetRunRequest"}, "output":{"shape":"GetRunResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "GetSuite":{ @@ -245,10 +289,22 @@ "input":{"shape":"GetSuiteRequest"}, "output":{"shape":"GetSuiteResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "GetTest":{ @@ -260,10 +316,22 @@ "input":{"shape":"GetTestRequest"}, "output":{"shape":"GetTestResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "GetUpload":{ @@ -275,10 +343,22 @@ "input":{"shape":"GetUploadRequest"}, "output":{"shape":"GetUploadResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListArtifacts":{ @@ -290,10 +370,22 @@ "input":{"shape":"ListArtifactsRequest"}, "output":{"shape":"ListArtifactsResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListDevicePools":{ @@ -305,10 +397,22 @@ "input":{"shape":"ListDevicePoolsRequest"}, "output":{"shape":"ListDevicePoolsResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListDevices":{ @@ -320,10 +424,22 @@ "input":{"shape":"ListDevicesRequest"}, "output":{"shape":"ListDevicesResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListJobs":{ @@ -335,42 +451,22 @@ "input":{"shape":"ListJobsRequest"}, "output":{"shape":"ListJobsResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "ListOfferingTransactions":{ - "name":"ListOfferingTransactions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListOfferingTransactionsRequest"}, - "output":{"shape":"ListOfferingTransactionsResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"NotEligibleException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "ListOfferings":{ - "name":"ListOfferings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListOfferingsRequest"}, - "output":{"shape":"ListOfferingsResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"NotEligibleException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListProjects":{ @@ -382,10 +478,22 @@ "input":{"shape":"ListProjectsRequest"}, "output":{"shape":"ListProjectsResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListRuns":{ @@ -397,10 +505,22 @@ "input":{"shape":"ListRunsRequest"}, "output":{"shape":"ListRunsResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListSamples":{ @@ -412,10 +532,22 @@ "input":{"shape":"ListSamplesRequest"}, "output":{"shape":"ListSamplesResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListSuites":{ @@ -427,10 +559,22 @@ "input":{"shape":"ListSuitesRequest"}, "output":{"shape":"ListSuitesResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListTests":{ @@ -442,10 +586,22 @@ "input":{"shape":"ListTestsRequest"}, "output":{"shape":"ListTestsResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListUniqueProblems":{ @@ -457,10 +613,22 @@ "input":{"shape":"ListUniqueProblemsRequest"}, "output":{"shape":"ListUniqueProblemsResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ListUploads":{ @@ -472,42 +640,22 @@ "input":{"shape":"ListUploadsRequest"}, "output":{"shape":"ListUploadsResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "PurchaseOffering":{ - "name":"PurchaseOffering", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PurchaseOfferingRequest"}, - "output":{"shape":"PurchaseOfferingResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"NotEligibleException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "RenewOffering":{ - "name":"RenewOffering", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RenewOfferingRequest"}, - "output":{"shape":"RenewOfferingResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"NotEligibleException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] }, "ScheduleRun":{ @@ -519,71 +667,40 @@ "input":{"shape":"ScheduleRunRequest"}, "output":{"shape":"ScheduleRunResult"}, "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"IdempotencyException"}, - {"shape":"ServiceAccountException"} - ] - }, - "StopRun":{ - "name":"StopRun", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StopRunRequest"}, - "output":{"shape":"StopRunResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "UpdateDevicePool":{ - "name":"UpdateDevicePool", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateDevicePoolRequest"}, - "output":{"shape":"UpdateDevicePoolResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} - ] - }, - "UpdateProject":{ - "name":"UpdateProject", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateProjectRequest"}, - "output":{"shape":"UpdateProjectResult"}, - "errors":[ - {"shape":"ArgumentException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceAccountException"} + { + "shape":"ArgumentException", + "exception":true + }, + { + "shape":"NotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"IdempotencyException", + "exception":true + }, + { + "shape":"ServiceAccountException", + "exception":true + } ] } }, "shapes":{ "AWSAccountNumber":{ "type":"string", - "max":16, - "min":2 + "min":2, + "max":16 }, "AccountSettings":{ "type":"structure", "members":{ "awsAccountNumber":{"shape":"AWSAccountNumber"}, - "unmeteredDevices":{"shape":"PurchasedDevicesMap"}, - "unmeteredRemoteAccessDevices":{"shape":"PurchasedDevicesMap"} + "unmeteredDevices":{"shape":"PurchasedDevicesMap"} } }, "AmazonResourceName":{ @@ -628,7 +745,6 @@ "MESSAGE_LOG", "RESULT_LOG", "SERVICE_LOG", - "WEBKIT_LOG", "INSTRUMENTATION_OUTPUT", "EXERCISER_MONKEY_OUTPUT", "CALABASH_JSON_OUTPUT", @@ -638,14 +754,7 @@ "AUTOMATION_OUTPUT", "APPIUM_SERVER_OUTPUT", "APPIUM_JAVA_OUTPUT", - "APPIUM_JAVA_XML_OUTPUT", - "APPIUM_PYTHON_OUTPUT", - "APPIUM_PYTHON_XML_OUTPUT", - "EXPLORER_EVENT_LOG", - "EXPLORER_SUMMARY_LOG", - "APPLICATION_CRASH_REPORT", - "XCTEST_LOG", - "VIDEO" + "APPIUM_JAVA_XML_OUTPUT" ] }, "Artifacts":{ @@ -670,8 +779,8 @@ }, "ContentType":{ "type":"string", - "max":64, - "min":0 + "min":0, + "max":64 }, "Counters":{ "type":"structure", @@ -738,59 +847,7 @@ "upload":{"shape":"Upload"} } }, - "CurrencyCode":{ - "type":"string", - "enum":["USD"] - }, "DateTime":{"type":"timestamp"}, - "DeleteDevicePoolRequest":{ - "type":"structure", - "required":["arn"], - "members":{ - "arn":{"shape":"AmazonResourceName"} - } - }, - "DeleteDevicePoolResult":{ - "type":"structure", - "members":{ - } - }, - "DeleteProjectRequest":{ - "type":"structure", - "required":["arn"], - "members":{ - "arn":{"shape":"AmazonResourceName"} - } - }, - "DeleteProjectResult":{ - "type":"structure", - "members":{ - } - }, - "DeleteRunRequest":{ - "type":"structure", - "required":["arn"], - "members":{ - "arn":{"shape":"AmazonResourceName"} - } - }, - "DeleteRunResult":{ - "type":"structure", - "members":{ - } - }, - "DeleteUploadRequest":{ - "type":"structure", - "required":["arn"], - "members":{ - "arn":{"shape":"AmazonResourceName"} - } - }, - "DeleteUploadResult":{ - "type":"structure", - "members":{ - } - }, "Device":{ "type":"structure", "members":{ @@ -826,14 +883,6 @@ "TABLET" ] }, - "DeviceMinutes":{ - "type":"structure", - "members":{ - "total":{"shape":"Double"}, - "metered":{"shape":"Double"}, - "unmetered":{"shape":"Double"} - } - }, "DevicePlatform":{ "type":"string", "enum":[ @@ -895,20 +944,16 @@ "type":"string", "enum":[ "PENDING", - "PENDING_CONCURRENCY", - "PENDING_DEVICE", "PROCESSING", "SCHEDULING", - "PREPARING", "RUNNING", - "COMPLETED", - "STOPPING" + "COMPLETED" ] }, "Filter":{ "type":"string", - "max":8192, - "min":0 + "min":0, + "max":1024 }, "GetAccountSettingsRequest":{ "type":"structure", @@ -923,7 +968,10 @@ }, "GetDevicePoolCompatibilityRequest":{ "type":"structure", - "required":["devicePoolArn"], + "required":[ + "devicePoolArn", + "appArn" + ], "members":{ "devicePoolArn":{"shape":"AmazonResourceName"}, "appArn":{"shape":"AmazonResourceName"}, @@ -976,20 +1024,6 @@ "job":{"shape":"Job"} } }, - "GetOfferingStatusRequest":{ - "type":"structure", - "members":{ - "nextToken":{"shape":"PaginationToken"} - } - }, - "GetOfferingStatusResult":{ - "type":"structure", - "members":{ - "current":{"shape":"OfferingStatusMap"}, - "nextPeriod":{"shape":"OfferingStatusMap"}, - "nextToken":{"shape":"PaginationToken"} - } - }, "GetProjectRequest":{ "type":"structure", "required":["arn"], @@ -1087,8 +1121,7 @@ "stopped":{"shape":"DateTime"}, "counters":{"shape":"Counters"}, "message":{"shape":"Message"}, - "device":{"shape":"Device"}, - "deviceMinutes":{"shape":"DeviceMinutes"} + "device":{"shape":"Device"} } }, "Jobs":{ @@ -1166,32 +1199,6 @@ "nextToken":{"shape":"PaginationToken"} } }, - "ListOfferingTransactionsRequest":{ - "type":"structure", - "members":{ - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListOfferingTransactionsResult":{ - "type":"structure", - "members":{ - "offeringTransactions":{"shape":"OfferingTransactions"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListOfferingsRequest":{ - "type":"structure", - "members":{ - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListOfferingsResult":{ - "type":"structure", - "members":{ - "offerings":{"shape":"Offerings"}, - "nextToken":{"shape":"PaginationToken"} - } - }, "ListProjectsRequest":{ "type":"structure", "members":{ @@ -1310,32 +1317,18 @@ "Long":{"type":"long"}, "Message":{ "type":"string", - "max":16384, - "min":0 + "min":0, + "max":8192 }, "Metadata":{ "type":"string", - "max":8192, - "min":0 - }, - "MonetaryAmount":{ - "type":"structure", - "members":{ - "amount":{"shape":"Double"}, - "currencyCode":{"shape":"CurrencyCode"} - } + "min":0, + "max":1024 }, "Name":{ "type":"string", - "max":256, - "min":0 - }, - "NotEligibleException":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - }, - "exception":true + "min":0, + "max":256 }, "NotFoundException":{ "type":"structure", @@ -1344,67 +1337,10 @@ }, "exception":true }, - "Offering":{ - "type":"structure", - "members":{ - "id":{"shape":"OfferingIdentifier"}, - "description":{"shape":"Message"}, - "type":{"shape":"OfferingType"}, - "platform":{"shape":"DevicePlatform"}, - "recurringCharges":{"shape":"RecurringCharges"} - } - }, - "OfferingIdentifier":{ - "type":"string", - "min":32 - }, - "OfferingStatus":{ - "type":"structure", - "members":{ - "type":{"shape":"OfferingTransactionType"}, - "offering":{"shape":"Offering"}, - "quantity":{"shape":"Integer"}, - "effectiveOn":{"shape":"DateTime"} - } - }, - "OfferingStatusMap":{ - "type":"map", - "key":{"shape":"OfferingIdentifier"}, - "value":{"shape":"OfferingStatus"} - }, - "OfferingTransaction":{ - "type":"structure", - "members":{ - "offeringStatus":{"shape":"OfferingStatus"}, - "transactionId":{"shape":"TransactionIdentifier"}, - "createdOn":{"shape":"DateTime"}, - "cost":{"shape":"MonetaryAmount"} - } - }, - "OfferingTransactionType":{ - "type":"string", - "enum":[ - "PURCHASE", - "RENEW", - "SYSTEM" - ] - }, - "OfferingTransactions":{ - "type":"list", - "member":{"shape":"OfferingTransaction"} - }, - "OfferingType":{ - "type":"string", - "enum":["RECURRING"] - }, - "Offerings":{ - "type":"list", - "member":{"shape":"Offering"} - }, "PaginationToken":{ "type":"string", - "max":1024, - "min":4 + "min":4, + "max":1024 }, "Problem":{ "type":"structure", @@ -1441,19 +1377,6 @@ "type":"list", "member":{"shape":"Project"} }, - "PurchaseOfferingRequest":{ - "type":"structure", - "members":{ - "offeringId":{"shape":"OfferingIdentifier"}, - "quantity":{"shape":"Integer"} - } - }, - "PurchaseOfferingResult":{ - "type":"structure", - "members":{ - "offeringTransaction":{"shape":"OfferingTransaction"} - } - }, "PurchasedDevicesMap":{ "type":"map", "key":{"shape":"DevicePlatform"}, @@ -1468,34 +1391,6 @@ "gps":{"shape":"Boolean"} } }, - "RecurringCharge":{ - "type":"structure", - "members":{ - "cost":{"shape":"MonetaryAmount"}, - "frequency":{"shape":"RecurringChargeFrequency"} - } - }, - "RecurringChargeFrequency":{ - "type":"string", - "enum":["MONTHLY"] - }, - "RecurringCharges":{ - "type":"list", - "member":{"shape":"RecurringCharge"} - }, - "RenewOfferingRequest":{ - "type":"structure", - "members":{ - "offeringId":{"shape":"OfferingIdentifier"}, - "quantity":{"shape":"Integer"} - } - }, - "RenewOfferingResult":{ - "type":"structure", - "members":{ - "offeringTransaction":{"shape":"OfferingTransaction"} - } - }, "Resolution":{ "type":"structure", "members":{ @@ -1541,8 +1436,7 @@ "message":{"shape":"Message"}, "totalJobs":{"shape":"Integer"}, "completedJobs":{"shape":"Integer"}, - "billingMethod":{"shape":"BillingMethod"}, - "deviceMinutes":{"shape":"DeviceMinutes"} + "billingMethod":{"shape":"BillingMethod"} } }, "Runs":{ @@ -1599,6 +1493,7 @@ "type":"structure", "required":[ "projectArn", + "appArn", "devicePoolArn", "test" ], @@ -1634,19 +1529,6 @@ }, "exception":true }, - "StopRunRequest":{ - "type":"structure", - "required":["arn"], - "members":{ - "arn":{"shape":"AmazonResourceName"} - } - }, - "StopRunResult":{ - "type":"structure", - "members":{ - "run":{"shape":"Run"} - } - }, "String":{"type":"string"}, "Suite":{ "type":"structure", @@ -1660,8 +1542,7 @@ "started":{"shape":"DateTime"}, "stopped":{"shape":"DateTime"}, "counters":{"shape":"Counters"}, - "message":{"shape":"Message"}, - "deviceMinutes":{"shape":"DeviceMinutes"} + "message":{"shape":"Message"} } }, "Suites":{ @@ -1680,8 +1561,7 @@ "started":{"shape":"DateTime"}, "stopped":{"shape":"DateTime"}, "counters":{"shape":"Counters"}, - "message":{"shape":"Message"}, - "deviceMinutes":{"shape":"DeviceMinutes"} + "message":{"shape":"Message"} } }, "TestParameters":{ @@ -1696,30 +1576,21 @@ "BUILTIN_EXPLORER", "APPIUM_JAVA_JUNIT", "APPIUM_JAVA_TESTNG", - "APPIUM_PYTHON", - "APPIUM_WEB_JAVA_JUNIT", - "APPIUM_WEB_JAVA_TESTNG", - "APPIUM_WEB_PYTHON", "CALABASH", "INSTRUMENTATION", "UIAUTOMATION", "UIAUTOMATOR", - "XCTEST", - "XCTEST_UI" + "XCTEST" ] }, "Tests":{ "type":"list", "member":{"shape":"Test"} }, - "TransactionIdentifier":{ - "type":"string", - "min":32 - }, "URL":{ "type":"string", - "max":2048, - "min":0 + "min":0, + "max":2048 }, "UniqueProblem":{ "type":"structure", @@ -1737,36 +1608,6 @@ "key":{"shape":"ExecutionResult"}, "value":{"shape":"UniqueProblems"} }, - "UpdateDevicePoolRequest":{ - "type":"structure", - "required":["arn"], - "members":{ - "arn":{"shape":"AmazonResourceName"}, - "name":{"shape":"Name"}, - "description":{"shape":"Message"}, - "rules":{"shape":"Rules"} - } - }, - "UpdateDevicePoolResult":{ - "type":"structure", - "members":{ - "devicePool":{"shape":"DevicePool"} - } - }, - "UpdateProjectRequest":{ - "type":"structure", - "required":["arn"], - "members":{ - "arn":{"shape":"AmazonResourceName"}, - "name":{"shape":"Name"} - } - }, - "UpdateProjectResult":{ - "type":"structure", - "members":{ - "project":{"shape":"Project"} - } - }, "Upload":{ "type":"structure", "members":{ @@ -1795,20 +1636,14 @@ "enum":[ "ANDROID_APP", "IOS_APP", - "WEB_APP", "EXTERNAL_DATA", "APPIUM_JAVA_JUNIT_TEST_PACKAGE", "APPIUM_JAVA_TESTNG_TEST_PACKAGE", - "APPIUM_PYTHON_TEST_PACKAGE", - "APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE", - "APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE", - "APPIUM_WEB_PYTHON_TEST_PACKAGE", "CALABASH_TEST_PACKAGE", "INSTRUMENTATION_TEST_PACKAGE", "UIAUTOMATION_TEST_PACKAGE", "UIAUTOMATOR_TEST_PACKAGE", - "XCTEST_TEST_PACKAGE", - "XCTEST_UI_TEST_PACKAGE" + "XCTEST_TEST_PACKAGE" ] }, "Uploads":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/devicefarm/2015-06-23/docs-2.json similarity index 59% rename from vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/devicefarm/2015-06-23/docs-2.json index 9abff6e6b..e046a74f2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/devicefarm/2015-06-23/docs-2.json @@ -1,20 +1,14 @@ { "version": "2.0", - "service": "

AWS Device Farm is a service that enables mobile app developers to test Android, iOS, and Fire OS apps on physical phones, tablets, and other devices in the cloud.

", "operations": { "CreateDevicePool": "

Creates a device pool.

", "CreateProject": "

Creates a new project.

", "CreateUpload": "

Uploads an app or test scripts.

", - "DeleteDevicePool": "

Deletes a device pool given the pool ARN. Does not allow deletion of curated pools owned by the system.

", - "DeleteProject": "

Deletes an AWS Device Farm project, given the project ARN.

Note Deleting this resource does not stop an in-progress run.

", - "DeleteRun": "

Deletes the run, given the run ARN.

Note Deleting this resource does not stop an in-progress run.

", - "DeleteUpload": "

Deletes an upload given the upload ARN.

", "GetAccountSettings": "

Returns the number of unmetered iOS and/or unmetered Android devices that have been purchased by the account.

", "GetDevice": "

Gets information about a unique device type.

", "GetDevicePool": "

Gets information about a device pool.

", "GetDevicePoolCompatibility": "

Gets information about compatibility with a device pool.

", "GetJob": "

Gets information about a job.

", - "GetOfferingStatus": "

Gets the current status and future status of all offerings purchased by an AWS account. The response indicates how many offerings are currently available and the offerings that will be available in the next period. The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.

", "GetProject": "

Gets information about a project.

", "GetRun": "

Gets information about a run.

", "GetSuite": "

Gets information about a suite.

", @@ -24,8 +18,6 @@ "ListDevicePools": "

Gets information about device pools.

", "ListDevices": "

Gets information about unique device types.

", "ListJobs": "

Gets information about jobs.

", - "ListOfferingTransactions": "

Returns a list of all historical purchases, renewals, and system renewal transactions for an AWS account. The list is paginated and ordered by a descending timestamp (most recent transactions are first). The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.

", - "ListOfferings": "

Returns a list of products or offerings that the user can manage through the API. Each offering record indicates the recurring price per unit and the frequency for that offering. The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.

", "ListProjects": "

Gets information about projects.

", "ListRuns": "

Gets information about runs.

", "ListSamples": "

Gets information about samples.

", @@ -33,13 +25,9 @@ "ListTests": "

Gets information about tests.

", "ListUniqueProblems": "

Gets information about unique problems.

", "ListUploads": "

Gets information about uploads.

", - "PurchaseOffering": "

Immediately purchases offerings for an AWS account. Offerings renew with the latest total purchased quantity for an offering, unless the renewal was overridden. The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.

", - "RenewOffering": "

Explicitly sets the quantity of devices to renew for an offering, starting from the effectiveDate of the next period. The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.

", - "ScheduleRun": "

Schedules a run.

", - "StopRun": "

Initiates a stop request for the current test run. AWS Device Farm will immediately stop the run on devices where tests have not started executing, and you will not be billed for these devices. On devices where tests have started executing, Setup Suite and Teardown Suite tests will run to completion before stopping execution on those devices. You will be billed for Setup, Teardown, and any tests that were in progress or already completed.

", - "UpdateDevicePool": "

Modifies the name, description, and rules in a device pool given the attributes and the pool ARN. Rule updates are all-or-nothing, meaning they can only be updated as a whole (or not at all).

", - "UpdateProject": "

Modifies the specified project name, given the project ARN and a new name.

" + "ScheduleRun": "

Schedules a run.

" }, + "service": "

AWS Device Farm is a service that enables mobile app developers to test Android, iOS, and Fire OS apps on physical phones, tablets, and other devices in the cloud.

", "shapes": { "AWSAccountNumber": { "base": null, @@ -60,10 +48,6 @@ "Artifact$arn": "

The artifact's ARN.

", "CreateDevicePoolRequest$projectArn": "

The ARN of the project for the device pool.

", "CreateUploadRequest$projectArn": "

The ARN of the project for the upload.

", - "DeleteDevicePoolRequest$arn": "

Represents the Amazon Resource Name (ARN) of the Device Farm device pool you wish to delete.

", - "DeleteProjectRequest$arn": "

Represents the Amazon Resource Name (ARN) of the Device Farm project you wish to delete.

", - "DeleteRunRequest$arn": "

The Amazon Resource Name (ARN) for the run you wish to delete.

", - "DeleteUploadRequest$arn": "

Represents the Amazon Resource Name (ARN) of the Device Farm upload you wish to delete.

", "Device$arn": "

The device's ARN.

", "DevicePool$arn": "

The device pool's ARN.

", "GetDevicePoolCompatibilityRequest$devicePoolArn": "

The device pool's ARN.

", @@ -77,7 +61,7 @@ "GetTestRequest$arn": "

The test's ARN.

", "GetUploadRequest$arn": "

The upload's ARN.

", "Job$arn": "

The job's ARN.

", - "ListArtifactsRequest$arn": "

The Run, Job, Suite, or Test ARN.

", + "ListArtifactsRequest$arn": "

The artifacts' ARNs.

", "ListDevicePoolsRequest$arn": "

The project ARN.

", "ListDevicesRequest$arn": "

The device types' ARNs.

", "ListJobsRequest$arn": "

The jobs' ARNs.

", @@ -98,11 +82,8 @@ "ScheduleRunRequest$appArn": "

The ARN of the app to schedule a run.

", "ScheduleRunRequest$devicePoolArn": "

The ARN of the device pool for the run to be scheduled.

", "ScheduleRunTest$testPackageArn": "

The ARN of the uploaded test that will be run.

", - "StopRunRequest$arn": "

Represents the Amazon Resource Name (ARN) of the Device Farm run you wish to stop.

", "Suite$arn": "

The suite's ARN.

", "Test$arn": "

The test's ARN.

", - "UpdateDevicePoolRequest$arn": "

The Amazon Resourc Name (ARN) of the Device Farm device pool you wish to update.

", - "UpdateProjectRequest$arn": "

The Amazon Resource Name (ARN) of the project whose name you wish to update.

", "Upload$arn": "

The upload's ARN.

" } }, @@ -132,7 +113,7 @@ "ArtifactType": { "base": null, "refs": { - "Artifact$type": "

The artifact's type.

Allowed values include the following:

  • UNKNOWN: An unknown type.

  • SCREENSHOT: The screenshot type.

  • DEVICE_LOG: The device log type.

  • MESSAGE_LOG: The message log type.

  • RESULT_LOG: The result log type.

  • SERVICE_LOG: The service log type.

  • WEBKIT_LOG: The web kit log type.

  • INSTRUMENTATION_OUTPUT: The instrumentation type.

  • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

  • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

  • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

  • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

  • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

  • AUTOMATION_OUTPUT: The automation output type.

  • APPIUM_SERVER_OUTPUT: The Appium server output type.

  • APPIUM_JAVA_OUTPUT: The Appium Java output type.

  • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

  • APPIUM_PYTHON_OUTPUT: The Appium Python output type.

  • APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.

  • EXPLORER_EVENT_LOG: The Explorer event log output type.

  • EXPLORER_SUMMARY_LOG: The Explorer summary log output type.

  • APPLICATION_CRASH_REPORT: The application crash report output type.

  • XCTEST_LOG: The XCode test output type.

" + "Artifact$type": "

The artifact's type.

Allowed values include the following:

  • APPIUM_JAVA_OUTPUT: The Appium Java output type.

  • APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.

  • APPIUM_SERVER_OUTPUT: The Appium server output type.

  • AUTOMATION_OUTPUT: The automation output type.

  • CALABASH_JSON_OUTPUT: The Calabash JSON output type.

  • CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.

  • CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.

  • CALABASH_STANDARD_OUTPUT: The Calabash standard output type.

  • DEVICE_LOG: The device log type.

  • EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.

  • INSTRUMENTATION_OUTPUT: The instrumentation type.

  • MESSAGE_LOG: The message log type.

  • RESULT_LOG: The result log type.

  • SCREENSHOT: The screenshot type.

  • SERVICE_LOG: The service log type.

  • UNKNOWN: An unknown type.

" } }, "Artifacts": { @@ -210,20 +191,12 @@ "refs": { } }, - "CurrencyCode": { - "base": null, - "refs": { - "MonetaryAmount$currencyCode": "

The currency code of a monetary amount. For example, USD means \"U.S. dollars.\"

" - } - }, "DateTime": { "base": null, "refs": { "Job$created": "

When the job was created.

", "Job$started": "

The job's start time.

", "Job$stopped": "

The job's stop time.

", - "OfferingStatus$effectiveOn": "

The date on which the offering is effective.

", - "OfferingTransaction$createdOn": "

The date on which an offering transaction was created.

", "Project$created": "

When the project was created.

", "Run$created": "

When the run was created.

", "Run$started": "

The run's start time.

", @@ -237,46 +210,6 @@ "Upload$created": "

When the upload was created.

" } }, - "DeleteDevicePoolRequest": { - "base": "

Represents a request to the delete device pool operation.

", - "refs": { - } - }, - "DeleteDevicePoolResult": { - "base": "

Represents the result of a delete device pool request.

", - "refs": { - } - }, - "DeleteProjectRequest": { - "base": "

Represents a request to the delete project operation.

", - "refs": { - } - }, - "DeleteProjectResult": { - "base": "

Represents the result of a delete project request.

", - "refs": { - } - }, - "DeleteRunRequest": { - "base": "

Represents a request to the delete run operation.

", - "refs": { - } - }, - "DeleteRunResult": { - "base": "

Represents the result of a delete run request.

", - "refs": { - } - }, - "DeleteUploadRequest": { - "base": "

Represents a request to the delete upload operation.

", - "refs": { - } - }, - "DeleteUploadResult": { - "base": "

Represents the result of a delete upload request.

", - "refs": { - } - }, "Device": { "base": "

Represents a device type that an app is tested against.

", "refs": { @@ -291,7 +224,7 @@ "base": null, "refs": { "IncompatibilityMessage$type": "

The type of incompatibility.

Allowed values include:

  • ARN: The ARN.

  • FORM_FACTOR: The form factor (for example, phone or tablet).

  • MANUFACTURER: The manufacturer.

  • PLATFORM: The platform (for example, Android or iOS).

", - "Rule$attribute": "

The rule's stringified attribute. For example, specify the value as \"\\\"abc\\\"\".

Allowed values include:

  • ARN: The ARN.

  • FORM_FACTOR: The form factor (for example, phone or tablet).

  • MANUFACTURER: The manufacturer.

  • PLATFORM: The platform (for example, Android or iOS).

" + "Rule$attribute": "

The rule's attribute.

Allowed values include:

  • ARN: The ARN.

  • FORM_FACTOR: The form factor (for example, phone or tablet).

  • MANUFACTURER: The manufacturer.

  • PLATFORM: The platform (for example, Android or iOS).

" } }, "DeviceFormFactor": { @@ -300,20 +233,10 @@ "Device$formFactor": "

The device's form factor.

Allowed values include:

  • PHONE: The phone form factor.

  • TABLET: The tablet form factor.

" } }, - "DeviceMinutes": { - "base": "

Represents the total (metered or unmetered) minutes used by the resource to run tests. Contains the sum of minutes consumed by all children.

", - "refs": { - "Job$deviceMinutes": "

Represents the total (metered or unmetered) minutes used by the job.

", - "Run$deviceMinutes": "

Represents the total (metered or unmetered) minutes used by the test run.

", - "Suite$deviceMinutes": "

Represents the total (metered or unmetered) minutes used by the test suite.

", - "Test$deviceMinutes": "

Represents the total (metered or unmetered) minutes used by the test.

" - } - }, "DevicePlatform": { "base": null, "refs": { "Device$platform": "

The device's platform.

Allowed values include:

  • ANDROID: The Android platform.

  • IOS: The iOS platform.

", - "Offering$platform": "

The platform of the device (e.g., ANDROID or IOS).

", "PurchasedDevicesMap$key": null, "Run$platform": "

The run's platform.

Allowed values include:

  • ANDROID: The Android platform.

  • IOS: The iOS platform.

" } @@ -323,8 +246,7 @@ "refs": { "CreateDevicePoolResult$devicePool": "

The newly created device pool.

", "DevicePools$member": null, - "GetDevicePoolResult$devicePool": null, - "UpdateDevicePoolResult$devicePool": null + "GetDevicePoolResult$devicePool": null } }, "DevicePoolCompatibilityResult": { @@ -363,32 +285,28 @@ "base": null, "refs": { "CPU$clock": "

The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.

", - "DeviceMinutes$total": "

When specified, represents the total minutes used by the resource to run tests.

", - "DeviceMinutes$metered": "

When specified, represents only the sum of metered minutes used by the resource to run tests.

", - "DeviceMinutes$unmetered": "

When specified, represents only the sum of unmetered minutes used by the resource to run tests.

", "Location$latitude": "

The latitude.

", - "Location$longitude": "

The longitude.

", - "MonetaryAmount$amount": "

The numerical amount of an offering or transaction.

" + "Location$longitude": "

The longitude.

" } }, "ExecutionResult": { "base": null, "refs": { - "Job$result": "

The job's result.

Allowed values include:

  • PENDING: A pending condition.

  • PASSED: A passing condition.

  • WARNED: A warning condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • ERRORED: An error condition.

  • STOPPED: A stopped condition.

", - "Problem$result": "

The problem's result.

Allowed values include:

  • PENDING: A pending condition.

  • PASSED: A passing condition.

  • WARNED: A warning condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • ERRORED: An error condition.

  • STOPPED: A stopped condition.

", - "Run$result": "

The run's result.

Allowed values include:

  • PENDING: A pending condition.

  • PASSED: A passing condition.

  • WARNED: A warning condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • ERRORED: An error condition.

  • STOPPED: A stopped condition.

", - "Suite$result": "

The suite's result.

Allowed values include:

  • PENDING: A pending condition.

  • PASSED: A passing condition.

  • WARNED: A warning condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • ERRORED: An error condition.

  • STOPPED: A stopped condition.

", - "Test$result": "

The test's result.

Allowed values include:

  • PENDING: A pending condition.

  • PASSED: A passing condition.

  • WARNED: A warning condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • ERRORED: An error condition.

  • STOPPED: A stopped condition.

", + "Job$result": "

The job's result.

Allowed values include:

  • ERRORED: An error condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • STOPPED: A stopped condition.

  • PASSED: A passing condition.

  • PENDING: A pending condition.

  • WARNED: A warning condition.

", + "Problem$result": "

The problem's result.

Allowed values include:

  • ERRORED: An error condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • STOPPED: A stopped condition.

  • PASSED: A passing condition.

  • PENDING: A pending condition.

  • WARNED: A warning condition.

", + "Run$result": "

The run's result.

Allowed values include:

  • ERRORED: An error condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • STOPPED: A stopped condition.

  • PASSED: A passing condition.

  • PENDING: A pending condition.

  • WARNED: A warning condition.

", + "Suite$result": "

The suite's result.

Allowed values include:

  • ERRORED: An error condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • STOPPED: A stopped condition.

  • PASSED: A passing condition.

  • PENDING: A pending condition.

  • WARNED: A warning condition.

", + "Test$result": "

The test's result.

Allowed values include:

  • ERRORED: An error condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • STOPPED: A stopped condition.

  • PASSED: A passing condition.

  • PENDING: A pending condition.

  • WARNED: A warning condition.

", "UniqueProblemsByExecutionResultMap$key": null } }, "ExecutionStatus": { "base": null, "refs": { - "Job$status": "

The job's status.

Allowed values include:

  • PENDING: A pending status.

  • PENDING_CONCURRENCY: A pending concurrency status.

  • PENDING_DEVICE: A pending device status.

  • PROCESSING: A processing status.

  • SCHEDULING: A scheduling status.

  • PREPARING: A preparing status.

  • RUNNING: A running status.

  • COMPLETED: A completed status.

  • STOPPING: A stopping status.

", - "Run$status": "

The run's status.

Allowed values include:

  • PENDING: A pending status.

  • PENDING_CONCURRENCY: A pending concurrency status.

  • PENDING_DEVICE: A pending device status.

  • PROCESSING: A processing status.

  • SCHEDULING: A scheduling status.

  • PREPARING: A preparing status.

  • RUNNING: A running status.

  • COMPLETED: A completed status.

  • STOPPING: A stopping status.

", - "Suite$status": "

The suite's status.

Allowed values include:

  • PENDING: A pending status.

  • PENDING_CONCURRENCY: A pending concurrency status.

  • PENDING_DEVICE: A pending device status.

  • PROCESSING: A processing status.

  • SCHEDULING: A scheduling status.

  • PREPARING: A preparing status.

  • RUNNING: A running status.

  • COMPLETED: A completed status.

  • STOPPING: A stopping status.

", - "Test$status": "

The test's status.

Allowed values include:

  • PENDING: A pending status.

  • PENDING_CONCURRENCY: A pending concurrency status.

  • PENDING_DEVICE: A pending device status.

  • PROCESSING: A processing status.

  • SCHEDULING: A scheduling status.

  • PREPARING: A preparing status.

  • RUNNING: A running status.

  • COMPLETED: A completed status.

  • STOPPING: A stopping status.

" + "Job$status": "

The job's status.

Allowed values include:

  • COMPLETED: A completed status.

  • PENDING: A pending status.

  • PROCESSING: A processing status.

  • RUNNING: A running status.

  • SCHEDULING: A scheduling status.

", + "Run$status": "

The run's status.

Allowed values include:

  • COMPLETED: A completed status.

  • PENDING: A pending status.

  • PROCESSING: A processing status.

  • RUNNING: A running status.

  • SCHEDULING: A scheduling status.

", + "Suite$status": "

The suite's status.

Allowed values include:

  • COMPLETED: A completed status.

  • PENDING: A pending status.

  • PROCESSING: A processing status.

  • RUNNING: A running status.

  • SCHEDULING: A scheduling status.

", + "Test$status": "

The test's status.

Allowed values include:

  • COMPLETED: A completed status.

  • PENDING: A pending status.

  • PROCESSING: A processing status.

  • RUNNING: A running status.

  • SCHEDULING: A scheduling status.

" } }, "Filter": { @@ -398,12 +316,12 @@ } }, "GetAccountSettingsRequest": { - "base": "

Represents the request sent to retrieve the account settings.

", + "base": null, "refs": { } }, "GetAccountSettingsResult": { - "base": "

Represents the account settings return values from the GetAccountSettings request.

", + "base": null, "refs": { } }, @@ -447,16 +365,6 @@ "refs": { } }, - "GetOfferingStatusRequest": { - "base": "

Represents the request to retrieve the offering status for the specified customer or account.

", - "refs": { - } - }, - "GetOfferingStatusResult": { - "base": "

Returns the status result for a device offering.

", - "refs": { - } - }, "GetProjectRequest": { "base": "

Represents a request to the get project operation.

", "refs": { @@ -534,10 +442,7 @@ "Counters$errored": "

The number of errored entities.

", "Counters$stopped": "

The number of stopped entities.

", "Counters$skipped": "

The number of skipped entities.

", - "OfferingStatus$quantity": "

The number of available devices in the offering.

", - "PurchaseOfferingRequest$quantity": "

The number of device slots you wish to purchase in an offering request.

", "PurchasedDevicesMap$value": null, - "RenewOfferingRequest$quantity": "

The quantity requested in an offering renewal.

", "Resolution$width": "

The screen resolution's width, expressed in pixels.

", "Resolution$height": "

The screen resolution's height, expressed in pixels.

", "Run$totalJobs": "

The total number of jobs for the run.

", @@ -602,26 +507,6 @@ "refs": { } }, - "ListOfferingTransactionsRequest": { - "base": "

Represents the request to list the offering transaction history.

", - "refs": { - } - }, - "ListOfferingTransactionsResult": { - "base": "

Returns the transaction log of the specified offerings.

", - "refs": { - } - }, - "ListOfferingsRequest": { - "base": "

Represents the request to list all offerings.

", - "refs": { - } - }, - "ListOfferingsResult": { - "base": "

Represents the return values of the list of offerings.

", - "refs": { - } - }, "ListProjectsRequest": { "base": "

Represents a request to the list projects operation.

", "refs": { @@ -715,16 +600,13 @@ "IncompatibilityMessage$message": "

A message about the incompatibility.

", "Job$message": "

A message about the job's result.

", "LimitExceededException$message": "

Any additional information about the exception.

", - "NotEligibleException$message": "

The HTTP response code of a Not Eligible exception.

", "NotFoundException$message": "

Any additional information about the exception.

", - "Offering$description": "

A string describing the offering.

", "Problem$message": "

A message about the problem's result.

", "Run$message": "

A message about the run's result.

", "ServiceAccountException$message": "

Any additional information about the exception.

", "Suite$message": "

A message about the suite's result.

", "Test$message": "

A message about the test's result.

", "UniqueProblem$message": "

A message about the unique problems' result.

", - "UpdateDevicePoolRequest$description": "

A description of the device pool you wish to update.

", "Upload$message": "

A message about the upload's result.

" } }, @@ -734,13 +616,6 @@ "Upload$metadata": "

The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded.

" } }, - "MonetaryAmount": { - "base": "

A number representing the monetary amount for an offering or transaction.

", - "refs": { - "OfferingTransaction$cost": "

The cost of an offering transaction.

", - "RecurringCharge$cost": "

The cost of the recurring charge.

" - } - }, "Name": { "base": null, "refs": { @@ -757,88 +632,17 @@ "ScheduleRunRequest$name": "

The name for the run to be scheduled.

", "Suite$name": "

The suite's name.

", "Test$name": "

The test's name.

", - "UpdateDevicePoolRequest$name": "

A string representing the name of the device pool you wish to update.

", - "UpdateProjectRequest$name": "

A string representing the new name of the project that you are updating.

", "Upload$name": "

The upload's file name.

" } }, - "NotEligibleException": { - "base": "

Exception gets thrown when a user is not eligible to perform the specified transaction.

", - "refs": { - } - }, "NotFoundException": { "base": "

The specified entity was not found.

", "refs": { } }, - "Offering": { - "base": "

Represents the metadata of a device offering.

", - "refs": { - "OfferingStatus$offering": "

Represents the metadata of an offering status.

", - "Offerings$member": null - } - }, - "OfferingIdentifier": { - "base": null, - "refs": { - "Offering$id": "

The ID that corresponds to a device offering.

", - "OfferingStatusMap$key": null, - "PurchaseOfferingRequest$offeringId": "

The ID of the offering.

", - "RenewOfferingRequest$offeringId": "

The ID of a request to renew an offering.

" - } - }, - "OfferingStatus": { - "base": "

The status of the offering.

", - "refs": { - "OfferingStatusMap$value": null, - "OfferingTransaction$offeringStatus": "

The status of an offering transaction.

" - } - }, - "OfferingStatusMap": { - "base": null, - "refs": { - "GetOfferingStatusResult$current": "

When specified, gets the offering status for the current period.

", - "GetOfferingStatusResult$nextPeriod": "

When specified, gets the offering status for the next period.

" - } - }, - "OfferingTransaction": { - "base": "

Represents the metadata of an offering transaction.

", - "refs": { - "OfferingTransactions$member": null, - "PurchaseOfferingResult$offeringTransaction": "

Represents the offering transaction for the purchase result.

", - "RenewOfferingResult$offeringTransaction": "

Represents the status of the offering transaction for the renewal.

" - } - }, - "OfferingTransactionType": { - "base": null, - "refs": { - "OfferingStatus$type": "

The type specified for the offering status.

" - } - }, - "OfferingTransactions": { - "base": null, - "refs": { - "ListOfferingTransactionsResult$offeringTransactions": "

The audit log of subscriptions you have purchased and modified through AWS Device Farm.

" - } - }, - "OfferingType": { - "base": null, - "refs": { - "Offering$type": "

The type of offering (e.g., \"RECURRING\") for a device.

" - } - }, - "Offerings": { - "base": null, - "refs": { - "ListOfferingsResult$offerings": "

A value representing the list offering results.

" - } - }, "PaginationToken": { "base": null, "refs": { - "GetOfferingStatusRequest$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", - "GetOfferingStatusResult$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", "ListArtifactsRequest$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", "ListArtifactsResult$nextToken": "

If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.

", "ListDevicePoolsRequest$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", @@ -847,10 +651,6 @@ "ListDevicesResult$nextToken": "

If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.

", "ListJobsRequest$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", "ListJobsResult$nextToken": "

If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.

", - "ListOfferingTransactionsRequest$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", - "ListOfferingTransactionsResult$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", - "ListOfferingsRequest$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", - "ListOfferingsResult$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", "ListProjectsRequest$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", "ListProjectsResult$nextToken": "

If the number of items that are returned is significantly large, this is an identifier that is also returned, which can be used in a subsequent call to this operation to return the next set of items in the list.

", "ListRunsRequest$nextToken": "

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

", @@ -893,8 +693,7 @@ "refs": { "CreateProjectResult$project": "

The newly created project.

", "GetProjectResult$project": null, - "Projects$member": null, - "UpdateProjectResult$project": null + "Projects$member": null } }, "Projects": { @@ -903,21 +702,10 @@ "ListProjectsResult$projects": "

Information about the projects.

" } }, - "PurchaseOfferingRequest": { - "base": "

Represents a request for a purchase offering.

", - "refs": { - } - }, - "PurchaseOfferingResult": { - "base": "

The result of the purchase offering (e.g., success or failure).

", - "refs": { - } - }, "PurchasedDevicesMap": { "base": null, "refs": { - "AccountSettings$unmeteredDevices": "

Returns the unmetered devices you have purchased or want to purchase.

", - "AccountSettings$unmeteredRemoteAccessDevices": "

Returns the unmetered remote access devices you have purchased or want to purchase.

" + "AccountSettings$unmeteredDevices": "

Returns the unmetered devices you have purchased.

" } }, "Radios": { @@ -926,34 +714,6 @@ "ScheduleRunConfiguration$radios": "

Information about the radio states for the run.

" } }, - "RecurringCharge": { - "base": "

Specifies whether charges for devices will be recurring.

", - "refs": { - "RecurringCharges$member": null - } - }, - "RecurringChargeFrequency": { - "base": null, - "refs": { - "RecurringCharge$frequency": "

The frequency in which charges will recur.

" - } - }, - "RecurringCharges": { - "base": null, - "refs": { - "Offering$recurringCharges": "

Specifies whether there are recurring charges for the offering.

" - } - }, - "RenewOfferingRequest": { - "base": "

A request representing an offering renewal.

", - "refs": { - } - }, - "RenewOfferingResult": { - "base": "

The result of a renewal offering.

", - "refs": { - } - }, "Resolution": { "base": "

Represents the screen resolution of a device in height and width, expressed in pixels.

", "refs": { @@ -976,8 +736,7 @@ "base": null, "refs": { "CreateDevicePoolRequest$rules": "

The device pool's rules.

", - "DevicePool$rules": "

Information about the device pool's rules.

", - "UpdateDevicePoolRequest$rules": "

Represents the rules you wish to modify for the device pool. Updating rules is optional; however, if you choose to update rules for your request, the update will replace the existing rules.

" + "DevicePool$rules": "

Information about the device pool's rules.

" } }, "Run": { @@ -985,8 +744,7 @@ "refs": { "GetRunResult$run": null, "Runs$member": null, - "ScheduleRunResult$run": "

Information about the scheduled run.

", - "StopRunResult$run": null + "ScheduleRunResult$run": "

Information about the scheduled run.

" } }, "Runs": { @@ -1040,16 +798,6 @@ "refs": { } }, - "StopRunRequest": { - "base": "

Represents the request to stop a specific run.

", - "refs": { - } - }, - "StopRunResult": { - "base": "

Represents the results of your stop run attempt.

", - "refs": { - } - }, "String": { "base": null, "refs": { @@ -1097,12 +845,12 @@ "TestType": { "base": null, "refs": { - "GetDevicePoolCompatibilityRequest$testType": "

The test type for the specified device pool.

Allowed values include the following:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • APPIUM_PYTHON: The Appium Python type.

  • APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.

  • APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.

  • APPIUM_WEB_PYTHON: The Appium Python type for Web apps.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

  • XCTEST_UI: The XCode UI test type.

", - "Job$type": "

The job's type.

Allowed values include the following:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • APPIUM_PYTHON: The Appium Python type.

  • APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.

  • APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.

  • APPIUM_WEB_PYTHON: The Appium Python type for Web apps.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

  • XCTEST_UI: The XCode UI test type.

", - "Run$type": "

The run's type.

Must be one of the following values:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • APPIUM_PYTHON: The Appium Python type.

  • APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.

  • APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.

  • APPIUM_WEB_PYTHON: The Appium Python type for Web apps.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

  • XCTEST_UI: The XCode UI test type.

", - "ScheduleRunTest$type": "

The test's type.

Must be one of the following values:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • APPIUM_PYTHON: The Appium Python type.

  • APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.

  • APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.

  • APPIUM_WEB_PYTHON: The Appium Python type for Web apps.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

  • XCTEST_UI: The XCode UI test type.

", - "Suite$type": "

The suite's type.

Must be one of the following values:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • APPIUM_PYTHON: The Appium Python type.

  • APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.

  • APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.

  • APPIUM_WEB_PYTHON: The Appium Python type for Web apps.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

  • XCTEST_UI: The XCode UI test type.

", - "Test$type": "

The test's type.

Must be one of the following values:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • APPIUM_PYTHON: The Appium Python type.

  • APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.

  • APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.

  • APPIUM_WEB_PYTHON: The Appium Python type for Web apps.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

  • XCTEST_UI: The XCode UI test type.

" + "GetDevicePoolCompatibilityRequest$testType": "

The test type for the specified device pool.

Allowed values include the following:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

", + "Job$type": "

The job's type.

Allowed values include the following:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

", + "Run$type": "

The run's type.

Must be one of the following values:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

", + "ScheduleRunTest$type": "

The test's type.

Must be one of the following values:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

", + "Suite$type": "

The suite's type.

Must be one of the following values:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

", + "Test$type": "

The test's type.

Must be one of the following values:

  • BUILTIN_FUZZ: The built-in fuzz type.

  • BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.

  • APPIUM_JAVA_JUNIT: The Appium Java JUnit type.

  • APPIUM_JAVA_TESTNG: The Appium Java TestNG type.

  • CALABASH: The Calabash type.

  • INSTRUMENTATION: The Instrumentation type.

  • UIAUTOMATION: The uiautomation type.

  • UIAUTOMATOR: The uiautomator type.

  • XCTEST: The XCode test type.

" } }, "Tests": { @@ -1111,12 +859,6 @@ "ListTestsResult$tests": "

Information about the tests.

" } }, - "TransactionIdentifier": { - "base": null, - "refs": { - "OfferingTransaction$transactionId": "

The transaction ID of the offering transaction.

" - } - }, "URL": { "base": null, "refs": { @@ -1140,27 +882,7 @@ "UniqueProblemsByExecutionResultMap": { "base": null, "refs": { - "ListUniqueProblemsResult$uniqueProblems": "

Information about the unique problems.

Allowed values include:

  • PENDING: A pending condition.

  • PASSED: A passing condition.

  • WARNED: A warning condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • ERRORED: An error condition.

  • STOPPED: A stopped condition.

" - } - }, - "UpdateDevicePoolRequest": { - "base": "

Represents a request to the update device pool operation.

", - "refs": { - } - }, - "UpdateDevicePoolResult": { - "base": "

Represents the result of an update device pool request.

", - "refs": { - } - }, - "UpdateProjectRequest": { - "base": "

Represents a request to the update project operation.

", - "refs": { - } - }, - "UpdateProjectResult": { - "base": "

Represents the result of an update project request.

", - "refs": { + "ListUniqueProblemsResult$uniqueProblems": "

Information about the unique problems.

Allowed values include:

  • ERRORED: An error condition.

  • FAILED: A failed condition.

  • SKIPPED: A skipped condition.

  • STOPPED: A stopped condition.

  • PASSED: A passing condition.

  • PENDING: A pending condition.

  • WARNED: A warning condition.

" } }, "Upload": { @@ -1180,8 +902,8 @@ "UploadType": { "base": null, "refs": { - "CreateUploadRequest$type": "

The upload's upload type.

Must be one of the following values:

  • ANDROID_APP: An Android upload.

  • IOS_APP: An iOS upload.

  • WEB_APP: A web appliction upload.

  • EXTERNAL_DATA: An external data upload.

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

  • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

  • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • CALABASH_TEST_PACKAGE: A Calabash test package upload.

  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

  • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

  • XCTEST_TEST_PACKAGE: An XCode test package upload.

  • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

", - "Upload$type": "

The upload's type.

Must be one of the following values:

  • ANDROID_APP: An Android upload.

  • IOS_APP: An iOS upload.

  • WEB_APP: A web appliction upload.

  • EXTERNAL_DATA: An external data upload.

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

  • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

  • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • CALABASH_TEST_PACKAGE: A Calabash test package upload.

  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

  • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

  • XCTEST_TEST_PACKAGE: An XCode test package upload.

  • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

" + "CreateUploadRequest$type": "

The upload's upload type.

Must be one of the following values:

  • ANDROID_APP: An Android upload.

  • IOS_APP: An iOS upload.

  • EXTERNAL_DATA: An external data upload.

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

  • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • CALABASH_TEST_PACKAGE: A Calabash test package upload.

  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

  • XCTEST_TEST_PACKAGE: An XCode test package upload.

", + "Upload$type": "

The upload's type.

Must be one of the following values:

  • ANDROID_APP: An Android upload.

  • IOS_APP: An iOS upload.

  • EXTERNAL_DATA: An external data upload.

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

  • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • CALABASH_TEST_PACKAGE: A Calabash test package upload.

  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

  • XCTEST_TEST_PACKAGE: An XCode test package upload.

" } }, "Uploads": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/devicefarm/2015-06-23/paginators-1.json similarity index 80% rename from vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/devicefarm/2015-06-23/paginators-1.json index ce5f8d790..dd41ad1ff 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/devicefarm/2015-06-23/paginators-1.json @@ -1,10 +1,5 @@ { "pagination": { - "GetOfferingStatus": { - "input_token": "nextToken", - "output_token": "nextToken", - "result_key": ["current","nextPeriod"] - }, "ListArtifacts": { "input_token": "nextToken", "output_token": "nextToken", @@ -20,20 +15,15 @@ "output_token": "nextToken", "result_key": "devices" }, - "ListJobs": { - "input_token": "nextToken", - "output_token": "nextToken", - "result_key": "jobs" - }, - "ListOfferingTransactions": { + "ListDevices": { "input_token": "nextToken", "output_token": "nextToken", - "result_key": "offeringTransactions" + "result_key": "devices" }, - "ListOfferings": { + "ListJobs": { "input_token": "nextToken", "output_token": "nextToken", - "result_key": "offerings" + "result_key": "jobs" }, "ListProjects": { "input_token": "nextToken", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/directconnect/2012-10-25/api-2.json similarity index 83% rename from vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/directconnect/2012-10-25/api-2.json index b49f35052..2710f7d86 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/directconnect/2012-10-25/api-2.json @@ -1,13 +1,12 @@ { - "version":"2.0", "metadata":{ "apiVersion":"2012-10-25", "endpointPrefix":"directconnect", "jsonVersion":"1.1", - "protocol":"json", "serviceFullName":"AWS Direct Connect", "signatureVersion":"v4", - "targetPrefix":"OvertureService" + "targetPrefix":"OvertureService", + "protocol":"json" }, "operations":{ "AllocateConnectionOnInterconnect":{ @@ -19,8 +18,14 @@ "input":{"shape":"AllocateConnectionOnInterconnectRequest"}, "output":{"shape":"Connection"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "AllocatePrivateVirtualInterface":{ @@ -32,8 +37,14 @@ "input":{"shape":"AllocatePrivateVirtualInterfaceRequest"}, "output":{"shape":"VirtualInterface"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "AllocatePublicVirtualInterface":{ @@ -45,8 +56,14 @@ "input":{"shape":"AllocatePublicVirtualInterfaceRequest"}, "output":{"shape":"VirtualInterface"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "ConfirmConnection":{ @@ -58,8 +75,14 @@ "input":{"shape":"ConfirmConnectionRequest"}, "output":{"shape":"ConfirmConnectionResponse"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "ConfirmPrivateVirtualInterface":{ @@ -71,8 +94,14 @@ "input":{"shape":"ConfirmPrivateVirtualInterfaceRequest"}, "output":{"shape":"ConfirmPrivateVirtualInterfaceResponse"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "ConfirmPublicVirtualInterface":{ @@ -84,8 +113,14 @@ "input":{"shape":"ConfirmPublicVirtualInterfaceRequest"}, "output":{"shape":"ConfirmPublicVirtualInterfaceResponse"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "CreateConnection":{ @@ -97,8 +132,14 @@ "input":{"shape":"CreateConnectionRequest"}, "output":{"shape":"Connection"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "CreateInterconnect":{ @@ -110,8 +151,14 @@ "input":{"shape":"CreateInterconnectRequest"}, "output":{"shape":"Interconnect"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "CreatePrivateVirtualInterface":{ @@ -123,8 +170,14 @@ "input":{"shape":"CreatePrivateVirtualInterfaceRequest"}, "output":{"shape":"VirtualInterface"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "CreatePublicVirtualInterface":{ @@ -136,8 +189,14 @@ "input":{"shape":"CreatePublicVirtualInterfaceRequest"}, "output":{"shape":"VirtualInterface"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "DeleteConnection":{ @@ -149,8 +208,14 @@ "input":{"shape":"DeleteConnectionRequest"}, "output":{"shape":"Connection"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "DeleteInterconnect":{ @@ -162,8 +227,14 @@ "input":{"shape":"DeleteInterconnectRequest"}, "output":{"shape":"DeleteInterconnectResponse"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "DeleteVirtualInterface":{ @@ -175,8 +246,14 @@ "input":{"shape":"DeleteVirtualInterfaceRequest"}, "output":{"shape":"DeleteVirtualInterfaceResponse"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "DescribeConnections":{ @@ -188,8 +265,14 @@ "input":{"shape":"DescribeConnectionsRequest"}, "output":{"shape":"Connections"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "DescribeConnectionsOnInterconnect":{ @@ -201,8 +284,14 @@ "input":{"shape":"DescribeConnectionsOnInterconnectRequest"}, "output":{"shape":"Connections"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "DescribeInterconnects":{ @@ -214,8 +303,14 @@ "input":{"shape":"DescribeInterconnectsRequest"}, "output":{"shape":"Interconnects"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "DescribeLocations":{ @@ -226,8 +321,14 @@ }, "output":{"shape":"Locations"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "DescribeVirtualGateways":{ @@ -238,8 +339,14 @@ }, "output":{"shape":"VirtualGateways"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] }, "DescribeVirtualInterfaces":{ @@ -251,8 +358,14 @@ "input":{"shape":"DescribeVirtualInterfacesRequest"}, "output":{"shape":"VirtualInterfaces"}, "errors":[ - {"shape":"DirectConnectServerException"}, - {"shape":"DirectConnectClientException"} + { + "shape":"DirectConnectServerException", + "exception":true + }, + { + "shape":"DirectConnectClientException", + "exception":true + } ] } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/directconnect/2012-10-25/docs-2.json similarity index 80% rename from vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/directconnect/2012-10-25/docs-2.json index 01ff8239a..818ca24da 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/directconnect/2012-10-25/docs-2.json @@ -1,27 +1,26 @@ { - "version": "2.0", - "service": "

AWS Direct Connect links your internal network to an AWS Direct Connect location over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an AWS Direct Connect router. With this connection in place, you can create virtual interfaces directly to the AWS cloud (for example, to Amazon Elastic Compute Cloud (Amazon EC2) and Amazon Simple Storage Service (Amazon S3)) and to Amazon Virtual Private Cloud (Amazon VPC), bypassing Internet service providers in your network path. An AWS Direct Connect location provides access to AWS in the region it is associated with, as well as access to other US regions. For example, you can provision a single connection to any AWS Direct Connect location in the US and use it to access public AWS services in all US Regions and AWS GovCloud (US).

", "operations": { - "AllocateConnectionOnInterconnect": "

Creates a hosted connection on an interconnect.

Allocates a VLAN number and a specified amount of bandwidth for use by a hosted connection on the given interconnect.

This is intended for use by AWS Direct Connect partners only.

", + "AllocateConnectionOnInterconnect": "

Creates a hosted connection on an interconnect.

Allocates a VLAN number and a specified amount of bandwidth for use by a hosted connection on the given interconnect.

", "AllocatePrivateVirtualInterface": "

Provisions a private virtual interface to be owned by a different customer.

The owner of a connection calls this function to provision a private virtual interface which will be owned by another AWS customer.

Virtual interfaces created using this function must be confirmed by the virtual interface owner by calling ConfirmPrivateVirtualInterface. Until this step has been completed, the virtual interface will be in 'Confirming' state, and will not be available for handling traffic.

", "AllocatePublicVirtualInterface": "

Provisions a public virtual interface to be owned by a different customer.

The owner of a connection calls this function to provision a public virtual interface which will be owned by another AWS customer.

Virtual interfaces created using this function must be confirmed by the virtual interface owner by calling ConfirmPublicVirtualInterface. Until this step has been completed, the virtual interface will be in 'Confirming' state, and will not be available for handling traffic.

", "ConfirmConnection": "

Confirm the creation of a hosted connection on an interconnect.

Upon creation, the hosted connection is initially in the 'Ordering' state, and will remain in this state until the owner calls ConfirmConnection to confirm creation of the hosted connection.

", "ConfirmPrivateVirtualInterface": "

Accept ownership of a private virtual interface created by another customer.

After the virtual interface owner calls this function, the virtual interface will be created and attached to the given virtual private gateway, and will be available for handling traffic.

", "ConfirmPublicVirtualInterface": "

Accept ownership of a public virtual interface created by another customer.

After the virtual interface owner calls this function, the specified virtual interface will be created and made available for handling traffic.

", "CreateConnection": "

Creates a new connection between the customer network and a specific AWS Direct Connect location.

A connection links your internal network to an AWS Direct Connect location over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an AWS Direct Connect router. An AWS Direct Connect location provides access to Amazon Web Services in the region it is associated with. You can establish connections with AWS Direct Connect locations in multiple regions, but a connection in one region does not provide connectivity to other regions.

", - "CreateInterconnect": "

Creates a new interconnect between a AWS Direct Connect partner's network and a specific AWS Direct Connect location.

An interconnect is a connection which is capable of hosting other connections. The AWS Direct Connect partner can use an interconnect to provide sub-1Gbps AWS Direct Connect service to tier 2 customers who do not have their own connections. Like a standard connection, an interconnect links the AWS Direct Connect partner's network to an AWS Direct Connect location over a standard 1 Gbps or 10 Gbps Ethernet fiber-optic cable. One end is connected to the partner's router, the other to an AWS Direct Connect router.

For each end customer, the AWS Direct Connect partner provisions a connection on their interconnect by calling AllocateConnectionOnInterconnect. The end customer can then connect to AWS resources by creating a virtual interface on their connection, using the VLAN assigned to them by the AWS Direct Connect partner.

This is intended for use by AWS Direct Connect partners only.

", + "CreateInterconnect": "

Creates a new interconnect between a AWS Direct Connect partner's network and a specific AWS Direct Connect location.

An interconnect is a connection which is capable of hosting other connections. The AWS Direct Connect partner can use an interconnect to provide sub-1Gbps AWS Direct Connect service to tier 2 customers who do not have their own connections. Like a standard connection, an interconnect links the AWS Direct Connect partner's network to an AWS Direct Connect location over a standard 1 Gbps or 10 Gbps Ethernet fiber-optic cable. One end is connected to the partner's router, the other to an AWS Direct Connect router.

For each end customer, the AWS Direct Connect partner provisions a connection on their interconnect by calling AllocateConnectionOnInterconnect. The end customer can then connect to AWS resources by creating a virtual interface on their connection, using the VLAN assigned to them by the AWS Direct Connect partner.

", "CreatePrivateVirtualInterface": "

Creates a new private virtual interface. A virtual interface is the VLAN that transports AWS Direct Connect traffic. A private virtual interface supports sending traffic to a single virtual private cloud (VPC).

", "CreatePublicVirtualInterface": "

Creates a new public virtual interface. A virtual interface is the VLAN that transports AWS Direct Connect traffic. A public virtual interface supports sending traffic to public services of AWS such as Amazon Simple Storage Service (Amazon S3).

", "DeleteConnection": "

Deletes the connection.

Deleting a connection only stops the AWS Direct Connect port hour and data transfer charges. You need to cancel separately with the providers any services or charges for cross-connects or network circuits that connect you to the AWS Direct Connect location.

", - "DeleteInterconnect": "

Deletes the specified interconnect.

This is intended for use by AWS Direct Connect partners only.

", + "DeleteInterconnect": "

Deletes the specified interconnect.

", "DeleteVirtualInterface": "

Deletes a virtual interface.

", "DescribeConnections": "

Displays all connections in this region.

If a connection ID is provided, the call returns only that particular connection.

", - "DescribeConnectionsOnInterconnect": "

Return a list of connections that have been provisioned on the given interconnect.

This is intended for use by AWS Direct Connect partners only.

", + "DescribeConnectionsOnInterconnect": "

Return a list of connections that have been provisioned on the given interconnect.

", "DescribeInterconnects": "

Returns a list of interconnects owned by the AWS account.

If an interconnect ID is provided, it will only return this particular interconnect.

", "DescribeLocations": "

Returns the list of AWS Direct Connect locations in the current AWS region. These are the locations that may be selected when calling CreateConnection or CreateInterconnect.

", "DescribeVirtualGateways": "

Returns a list of virtual private gateways owned by the AWS account.

You can create one or more AWS Direct Connect private virtual interfaces linking to a virtual private gateway. A virtual private gateway can be managed via Amazon Virtual Private Cloud (VPC) console or the EC2 CreateVpnGateway action.

", "DescribeVirtualInterfaces": "

Displays all virtual interfaces for an AWS account. Virtual interfaces deleted fewer than 15 minutes before DescribeVirtualInterfaces is called are also returned. If a connection ID is included then only virtual interfaces associated with this connection will be returned. If a virtual interface ID is included then only a single virtual interface will be returned.

A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect location and the customer.

If a connection ID is provided, only virtual interfaces provisioned on the specified connection will be returned. If a virtual interface ID is provided, only this particular virtual interface will be returned.

" }, + "service": "

AWS Direct Connect makes it easy to establish a dedicated network connection from your premises to Amazon Web Services (AWS). Using AWS Direct Connect, you can establish private connectivity between AWS and your data center, office, or colocation environment, which in many cases can reduce your network costs, increase bandwidth throughput, and provide a more consistent network experience than Internet-based connections.

The AWS Direct Connect API Reference provides descriptions, syntax, and usage examples for each of the actions and data types for AWS Direct Connect. Use the following links to get started using the AWS Direct Connect API Reference:

  • Actions: An alphabetical list of all AWS Direct Connect actions.
  • Data Types: An alphabetical list of all AWS Direct Connect data types.
  • Common Query Parameters: Parameters that all Query actions can use.
  • Common Errors: Client and server errors that all actions can return.
", "shapes": { "ASN": { "base": "

Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

", @@ -71,7 +70,7 @@ "Bandwidth": { "base": "

Bandwidth of the connection.

Example: 1Gbps

Default: None

", "refs": { - "AllocateConnectionOnInterconnectRequest$bandwidth": "

Bandwidth of the connection.

Example: \"500Mbps\"

Default: None

Values: 50M, 100M, 200M, 300M, 400M, or 500M

", + "AllocateConnectionOnInterconnectRequest$bandwidth": "

Bandwidth of the connection.

Example: \"500Mbps\"

Default: None

", "Connection$bandwidth": "

Bandwidth of the connection.

Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections)

Default: None

", "CreateConnectionRequest$bandwidth": null, "CreateInterconnectRequest$bandwidth": "

The port bandwidth

Example: 1Gbps

Default: None

Available values: 1Gbps,10Gbps

", @@ -150,7 +149,7 @@ } }, "ConnectionState": { - "base": "

State of the connection.

  • Ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.

  • Requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.

  • Pending: The connection has been approved, and is being initialized.

  • Available: The network link is up, and the connection is ready for use.

  • Down: The network link is down.

  • Deleting: The connection is in the process of being deleted.

  • Deleted: The connection has been deleted.

  • Rejected: A hosted connection in the 'Ordering' state will enter the 'Rejected' state if it is deleted by the end customer.

", + "base": "State of the connection.
  • Ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
  • Requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The connection has been approved, and is being initialized.
  • Available: The network link is up, and the connection is ready for use.
  • Down: The network link is down.
  • Deleted: The connection has been deleted.
  • Rejected: A hosted connection in the 'Ordering' state will enter the 'Rejected' state if it is deleted by the end customer.
", "refs": { "ConfirmConnectionResponse$connectionState": null, "Connection$connectionState": null @@ -249,8 +248,8 @@ "ErrorMessage": { "base": null, "refs": { - "DirectConnectClientException$message": "

This is an exception thrown when there is an issue with the input provided by the API call. For example, the name provided for a connection contains a pound sign (#). This can also occur when a valid value is provided, but is otherwise constrained. For example, the valid VLAN tag range is 1-4096 but each can only be used once per connection.

", - "DirectConnectServerException$message": "

This is an exception thrown when there is a backend issue on the server side.

" + "DirectConnectClientException$message": null, + "DirectConnectServerException$message": null } }, "Interconnect": { @@ -283,7 +282,7 @@ } }, "InterconnectState": { - "base": "

State of the interconnect.

  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.

  • Pending>: The interconnect has been approved, and is being initialized.

  • Available: The network link is up, and the interconnect is ready for use.

  • Down: The network link is down.

  • Deleting: The interconnect is in the process of being deleted.

  • Deleted: The interconnect has been deleted.

", + "base": "State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.
", "refs": { "DeleteInterconnectResponse$interconnectState": null, "Interconnect$interconnectState": null @@ -314,7 +313,7 @@ "LocationList": { "base": null, "refs": { - "Locations$locations": "

A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.

" + "Locations$locations": null } }, "LocationName": { @@ -324,7 +323,7 @@ } }, "Locations": { - "base": "

A location is a network facility where AWS Direct Connect routers are available to be connected. Generally, these are colocation hubs where many network providers have equipment, and where cross connects can be delivered. Locations include a name and facility code, and must be provided when creating a connection.

", + "base": null, "refs": { } }, @@ -358,14 +357,14 @@ "AllocateConnectionOnInterconnectRequest$ownerAccount": "

Numeric account Id of the customer for whom the connection will be provisioned.

Example: 123443215678

Default: None

", "AllocatePrivateVirtualInterfaceRequest$ownerAccount": "

The AWS account that will own the new private virtual interface.

Default: None

", "AllocatePublicVirtualInterfaceRequest$ownerAccount": "

The AWS account that will own the new public virtual interface.

Default: None

", - "Connection$ownerAccount": "

The AWS account that will own the new connection.

", - "VirtualInterface$ownerAccount": "

The AWS account that will own the new virtual interface.

" + "Connection$ownerAccount": null, + "VirtualInterface$ownerAccount": null } }, "PartnerName": { "base": null, "refs": { - "Connection$partnerName": "

The name of the AWS Direct Connect service provider associated with the connection.

" + "Connection$partnerName": null } }, "Region": { @@ -382,7 +381,7 @@ } }, "RouteFilterPrefixList": { - "base": "

A list of routes to be advertised to the AWS network in this region (public virtual interface).

", + "base": "

A list of routes to be advertised to the AWS network in this region (public virtual interface) or your VPC (private virtual interface).

", "refs": { "NewPublicVirtualInterface$routeFilterPrefixes": null, "NewPublicVirtualInterfaceAllocation$routeFilterPrefixes": null, @@ -429,7 +428,7 @@ } }, "VirtualGatewayState": { - "base": "

State of the virtual private gateway.

  • Pending: This is the initial state after calling CreateVpnGateway.

  • Available: Ready for use by a private virtual interface.

  • Deleting: This is the initial state after calling DeleteVpnGateway.

  • Deleted: In this state, a private virtual interface is unable to send traffic over this gateway.

", + "base": "State of the virtual private gateway.
  • Pending: This is the initial state after calling CreateVpnGateway.
  • Available: Ready for use by a private virtual interface.
  • Deleting: This is the initial state after calling DeleteVpnGateway.
  • Deleted: In this state, a private virtual interface is unable to send traffic over this gateway.
", "refs": { "VirtualGateway$virtualGatewayState": null } @@ -472,7 +471,7 @@ } }, "VirtualInterfaceState": { - "base": "

State of the virtual interface.

  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.

  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.

  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.

  • Available: A virtual interface that is able to forward traffic.

  • Down: A virtual interface that is BGP down.

  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.

  • Deleted: A virtual interface that cannot forward traffic.

  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.

", + "base": "State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.
", "refs": { "ConfirmPrivateVirtualInterfaceResponse$virtualInterfaceState": null, "ConfirmPublicVirtualInterfaceResponse$virtualInterfaceState": null, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/directconnect/2012-10-25/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/directconnect/2012-10-25/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/ds/2015-04-16/api-2.json similarity index 55% rename from vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/ds/2015-04-16/api-2.json index 10dbc7f64..ee7759fb4 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/ds/2015-04-16/api-2.json @@ -4,11 +4,11 @@ "apiVersion":"2015-04-16", "endpointPrefix":"ds", "jsonVersion":"1.1", - "protocol":"json", "serviceAbbreviation":"Directory Service", "serviceFullName":"AWS Directory Service", "signatureVersion":"v4", - "targetPrefix":"DirectoryService_20150416" + "targetPrefix":"DirectoryService_20150416", + "protocol":"json" }, "operations":{ "ConnectDirectory":{ @@ -20,10 +20,23 @@ "input":{"shape":"ConnectDirectoryRequest"}, "output":{"shape":"ConnectDirectoryResult"}, "errors":[ - {"shape":"DirectoryLimitExceededException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"DirectoryLimitExceededException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "CreateAlias":{ @@ -35,11 +48,27 @@ "input":{"shape":"CreateAliasRequest"}, "output":{"shape":"CreateAliasResult"}, "errors":[ - {"shape":"EntityAlreadyExistsException"}, - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityAlreadyExistsException", + "exception":true + }, + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "CreateComputer":{ @@ -51,32 +80,39 @@ "input":{"shape":"CreateComputerRequest"}, "output":{"shape":"CreateComputerResult"}, "errors":[ - {"shape":"AuthenticationFailedException"}, - {"shape":"DirectoryUnavailableException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} - ] - }, - "CreateConditionalForwarder":{ - "name":"CreateConditionalForwarder", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateConditionalForwarderRequest"}, - "output":{"shape":"CreateConditionalForwarderResult"}, - "errors":[ - {"shape":"EntityAlreadyExistsException"}, - {"shape":"EntityDoesNotExistException"}, - {"shape":"DirectoryUnavailableException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"AuthenticationFailedException", + "exception":true + }, + { + "shape":"DirectoryUnavailableException", + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "exception":true + }, + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"UnsupportedOperationException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "CreateDirectory":{ @@ -88,26 +124,23 @@ "input":{"shape":"CreateDirectoryRequest"}, "output":{"shape":"CreateDirectoryResult"}, "errors":[ - {"shape":"DirectoryLimitExceededException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} - ] - }, - "CreateMicrosoftAD":{ - "name":"CreateMicrosoftAD", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateMicrosoftADRequest"}, - "output":{"shape":"CreateMicrosoftADResult"}, - "errors":[ - {"shape":"DirectoryLimitExceededException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"}, - {"shape":"UnsupportedOperationException"} + { + "shape":"DirectoryLimitExceededException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "CreateSnapshot":{ @@ -119,45 +152,27 @@ "input":{"shape":"CreateSnapshotRequest"}, "output":{"shape":"CreateSnapshotResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"SnapshotLimitExceededException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} - ] - }, - "CreateTrust":{ - "name":"CreateTrust", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateTrustRequest"}, - "output":{"shape":"CreateTrustResult"}, - "errors":[ - {"shape":"EntityAlreadyExistsException"}, - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"}, - {"shape":"UnsupportedOperationException"} - ] - }, - "DeleteConditionalForwarder":{ - "name":"DeleteConditionalForwarder", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteConditionalForwarderRequest"}, - "output":{"shape":"DeleteConditionalForwarderResult"}, - "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"DirectoryUnavailableException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"SnapshotLimitExceededException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "DeleteDirectory":{ @@ -169,9 +184,19 @@ "input":{"shape":"DeleteDirectoryRequest"}, "output":{"shape":"DeleteDirectoryResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "DeleteSnapshot":{ @@ -183,58 +208,23 @@ "input":{"shape":"DeleteSnapshotRequest"}, "output":{"shape":"DeleteSnapshotResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} - ] - }, - "DeleteTrust":{ - "name":"DeleteTrust", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteTrustRequest"}, - "output":{"shape":"DeleteTrustResult"}, - "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"}, - {"shape":"UnsupportedOperationException"} - ] - }, - "DeregisterEventTopic":{ - "name":"DeregisterEventTopic", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeregisterEventTopicRequest"}, - "output":{"shape":"DeregisterEventTopicResult"}, - "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} - ] - }, - "DescribeConditionalForwarders":{ - "name":"DescribeConditionalForwarders", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeConditionalForwardersRequest"}, - "output":{"shape":"DescribeConditionalForwardersResult"}, - "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"DirectoryUnavailableException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "DescribeDirectories":{ @@ -246,26 +236,27 @@ "input":{"shape":"DescribeDirectoriesRequest"}, "output":{"shape":"DescribeDirectoriesResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidNextTokenException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} - ] - }, - "DescribeEventTopics":{ - "name":"DescribeEventTopics", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventTopicsRequest"}, - "output":{"shape":"DescribeEventTopicsResult"}, - "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "DescribeSnapshots":{ @@ -277,28 +268,27 @@ "input":{"shape":"DescribeSnapshotsRequest"}, "output":{"shape":"DescribeSnapshotsResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidNextTokenException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} - ] - }, - "DescribeTrusts":{ - "name":"DescribeTrusts", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeTrustsRequest"}, - "output":{"shape":"DescribeTrustsResult"}, - "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidNextTokenException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"}, - {"shape":"UnsupportedOperationException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"InvalidNextTokenException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "DisableRadius":{ @@ -310,9 +300,19 @@ "input":{"shape":"DisableRadiusRequest"}, "output":{"shape":"DisableRadiusResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "DisableSso":{ @@ -324,11 +324,27 @@ "input":{"shape":"DisableSsoRequest"}, "output":{"shape":"DisableSsoResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InsufficientPermissionsException"}, - {"shape":"AuthenticationFailedException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"InsufficientPermissionsException", + "exception":true + }, + { + "shape":"AuthenticationFailedException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "EnableRadius":{ @@ -340,11 +356,27 @@ "input":{"shape":"EnableRadiusRequest"}, "output":{"shape":"EnableRadiusResult"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"EntityDoesNotExistException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "exception":true + }, + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "EnableSso":{ @@ -356,11 +388,27 @@ "input":{"shape":"EnableSsoRequest"}, "output":{"shape":"EnableSsoResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InsufficientPermissionsException"}, - {"shape":"AuthenticationFailedException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"InsufficientPermissionsException", + "exception":true + }, + { + "shape":"AuthenticationFailedException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "GetDirectoryLimits":{ @@ -372,9 +420,19 @@ "input":{"shape":"GetDirectoryLimitsRequest"}, "output":{"shape":"GetDirectoryLimitsResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "GetSnapshotLimits":{ @@ -386,24 +444,19 @@ "input":{"shape":"GetSnapshotLimitsRequest"}, "output":{"shape":"GetSnapshotLimitsResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} - ] - }, - "RegisterEventTopic":{ - "name":"RegisterEventTopic", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RegisterEventTopicRequest"}, - "output":{"shape":"RegisterEventTopicResult"}, - "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "RestoreFromSnapshot":{ @@ -415,27 +468,23 @@ "input":{"shape":"RestoreFromSnapshotRequest"}, "output":{"shape":"RestoreFromSnapshotResult"}, "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} - ] - }, - "UpdateConditionalForwarder":{ - "name":"UpdateConditionalForwarder", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateConditionalForwarderRequest"}, - "output":{"shape":"UpdateConditionalForwarderResult"}, - "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"DirectoryUnavailableException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] }, "UpdateRadius":{ @@ -447,39 +496,36 @@ "input":{"shape":"UpdateRadiusRequest"}, "output":{"shape":"UpdateRadiusResult"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"EntityDoesNotExistException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"} - ] - }, - "VerifyTrust":{ - "name":"VerifyTrust", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"VerifyTrustRequest"}, - "output":{"shape":"VerifyTrustResult"}, - "errors":[ - {"shape":"EntityDoesNotExistException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClientException"}, - {"shape":"ServiceException"}, - {"shape":"UnsupportedOperationException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"EntityDoesNotExistException", + "exception":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"ServiceException", + "exception":true, + "fault":true + } ] } }, "shapes":{ "AccessUrl":{ "type":"string", - "max":128, - "min":1 + "min":1, + "max":128 }, "AliasName":{ "type":"string", - "max":62, "min":1, + "max":62, "pattern":"^(?!d-)([\\da-zA-Z]+)([-]*[\\da-zA-Z])*" }, "Attribute":{ @@ -530,28 +576,16 @@ }, "ComputerName":{ "type":"string", - "max":15, - "min":1 + "min":1, + "max":15 }, "ComputerPassword":{ "type":"string", - "max":64, "min":8, + "max":64, "pattern":"[\\u0020-\\u00FF]+", "sensitive":true }, - "ConditionalForwarder":{ - "type":"structure", - "members":{ - "RemoteDomainName":{"shape":"RemoteDomainName"}, - "DnsIpAddrs":{"shape":"DnsIpAddrs"}, - "ReplicationScope":{"shape":"ReplicationScope"} - } - }, - "ConditionalForwarders":{ - "type":"list", - "member":{"shape":"ConditionalForwarder"} - }, "ConnectDirectoryRequest":{ "type":"structure", "required":[ @@ -577,8 +611,8 @@ }, "ConnectPassword":{ "type":"string", - "max":128, "min":1, + "max":128, "sensitive":true }, "ConnectedDirectoriesLimitReached":{"type":"boolean"}, @@ -621,24 +655,6 @@ "Computer":{"shape":"Computer"} } }, - "CreateConditionalForwarderRequest":{ - "type":"structure", - "required":[ - "DirectoryId", - "RemoteDomainName", - "DnsIpAddrs" - ], - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "RemoteDomainName":{"shape":"RemoteDomainName"}, - "DnsIpAddrs":{"shape":"DnsIpAddrs"} - } - }, - "CreateConditionalForwarderResult":{ - "type":"structure", - "members":{ - } - }, "CreateDirectoryRequest":{ "type":"structure", "required":[ @@ -661,27 +677,6 @@ "DirectoryId":{"shape":"DirectoryId"} } }, - "CreateMicrosoftADRequest":{ - "type":"structure", - "required":[ - "Name", - "Password", - "VpcSettings" - ], - "members":{ - "Name":{"shape":"DirectoryName"}, - "ShortName":{"shape":"DirectoryShortName"}, - "Password":{"shape":"Password"}, - "Description":{"shape":"Description"}, - "VpcSettings":{"shape":"DirectoryVpcSettings"} - } - }, - "CreateMicrosoftADResult":{ - "type":"structure", - "members":{ - "DirectoryId":{"shape":"DirectoryId"} - } - }, "CreateSnapshotRequest":{ "type":"structure", "required":["DirectoryId"], @@ -696,47 +691,6 @@ "SnapshotId":{"shape":"SnapshotId"} } }, - "CreateTrustRequest":{ - "type":"structure", - "required":[ - "DirectoryId", - "RemoteDomainName", - "TrustPassword", - "TrustDirection" - ], - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "RemoteDomainName":{"shape":"RemoteDomainName"}, - "TrustPassword":{"shape":"TrustPassword"}, - "TrustDirection":{"shape":"TrustDirection"}, - "TrustType":{"shape":"TrustType"}, - "ConditionalForwarderIpAddrs":{"shape":"DnsIpAddrs"} - } - }, - "CreateTrustResult":{ - "type":"structure", - "members":{ - "TrustId":{"shape":"TrustId"} - } - }, - "CreatedDateTime":{"type":"timestamp"}, - "DeleteAssociatedConditionalForwarder":{"type":"boolean"}, - "DeleteConditionalForwarderRequest":{ - "type":"structure", - "required":[ - "DirectoryId", - "RemoteDomainName" - ], - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "RemoteDomainName":{"shape":"RemoteDomainName"} - } - }, - "DeleteConditionalForwarderResult":{ - "type":"structure", - "members":{ - } - }, "DeleteDirectoryRequest":{ "type":"structure", "required":["DirectoryId"], @@ -763,50 +717,6 @@ "SnapshotId":{"shape":"SnapshotId"} } }, - "DeleteTrustRequest":{ - "type":"structure", - "required":["TrustId"], - "members":{ - "TrustId":{"shape":"TrustId"}, - "DeleteAssociatedConditionalForwarder":{"shape":"DeleteAssociatedConditionalForwarder"} - } - }, - "DeleteTrustResult":{ - "type":"structure", - "members":{ - "TrustId":{"shape":"TrustId"} - } - }, - "DeregisterEventTopicRequest":{ - "type":"structure", - "required":[ - "DirectoryId", - "TopicName" - ], - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "TopicName":{"shape":"TopicName"} - } - }, - "DeregisterEventTopicResult":{ - "type":"structure", - "members":{ - } - }, - "DescribeConditionalForwardersRequest":{ - "type":"structure", - "required":["DirectoryId"], - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "RemoteDomainNames":{"shape":"RemoteDomainNames"} - } - }, - "DescribeConditionalForwardersResult":{ - "type":"structure", - "members":{ - "ConditionalForwarders":{"shape":"ConditionalForwarders"} - } - }, "DescribeDirectoriesRequest":{ "type":"structure", "members":{ @@ -822,19 +732,6 @@ "NextToken":{"shape":"NextToken"} } }, - "DescribeEventTopicsRequest":{ - "type":"structure", - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "TopicNames":{"shape":"TopicNames"} - } - }, - "DescribeEventTopicsResult":{ - "type":"structure", - "members":{ - "EventTopics":{"shape":"EventTopics"} - } - }, "DescribeSnapshotsRequest":{ "type":"structure", "members":{ @@ -851,26 +748,10 @@ "NextToken":{"shape":"NextToken"} } }, - "DescribeTrustsRequest":{ - "type":"structure", - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "TrustIds":{"shape":"TrustIds"}, - "NextToken":{"shape":"NextToken"}, - "Limit":{"shape":"Limit"} - } - }, - "DescribeTrustsResult":{ - "type":"structure", - "members":{ - "Trusts":{"shape":"Trusts"}, - "NextToken":{"shape":"NextToken"} - } - }, "Description":{ "type":"string", - "max":128, "min":0, + "max":128, "pattern":"^([a-zA-Z0-9_])[\\\\a-zA-Z0-9_@#%*+=:?./!\\s-]*$" }, "DirectoryConnectSettings":{ @@ -948,9 +829,6 @@ "CloudOnlyDirectoriesLimit":{"shape":"Limit"}, "CloudOnlyDirectoriesCurrentCount":{"shape":"Limit"}, "CloudOnlyDirectoriesLimitReached":{"shape":"CloudOnlyDirectoriesLimitReached"}, - "CloudOnlyMicrosoftADLimit":{"shape":"Limit"}, - "CloudOnlyMicrosoftADCurrentCount":{"shape":"Limit"}, - "CloudOnlyMicrosoftADLimitReached":{"shape":"CloudOnlyDirectoriesLimitReached"}, "ConnectedDirectoriesLimit":{"shape":"Limit"}, "ConnectedDirectoriesCurrentCount":{"shape":"Limit"}, "ConnectedDirectoriesLimitReached":{"shape":"ConnectedDirectoriesLimitReached"} @@ -991,8 +869,7 @@ "type":"string", "enum":[ "SimpleAD", - "ADConnector", - "MicrosoftAD" + "ADConnector" ] }, "DirectoryUnavailableException":{ @@ -1099,20 +976,6 @@ }, "exception":true }, - "EventTopic":{ - "type":"structure", - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "TopicName":{"shape":"TopicName"}, - "TopicArn":{"shape":"TopicArn"}, - "CreatedDateTime":{"shape":"CreatedDateTime"}, - "Status":{"shape":"TopicStatus"} - } - }, - "EventTopics":{ - "type":"list", - "member":{"shape":"EventTopic"} - }, "ExceptionMessage":{"type":"string"}, "GetDirectoryLimitsRequest":{ "type":"structure", @@ -1180,18 +1043,18 @@ "NextToken":{"type":"string"}, "OrganizationalUnitDN":{ "type":"string", - "max":2000, - "min":1 + "min":1, + "max":2000 }, "Password":{ "type":"string", - "pattern":"(?=^.{8,64}$)((?=.*\\d)(?=.*[A-Z])(?=.*[a-z])|(?=.*\\d)(?=.*[^A-Za-z0-9\\s])(?=.*[a-z])|(?=.*[^A-Za-z0-9\\s])(?=.*[A-Z])(?=.*[a-z])|(?=.*\\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\\s]))^.*", + "pattern":"(?=^.{8,64}$)((?=.*\\d)(?=.*[A-Z])(?=.*[a-z])|(?=.*\\d)(?=.*[^A-Za-z0-9])(?=.*[a-z])|(?=.*[^A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z])|(?=.*\\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9]))^.*", "sensitive":true }, "PortNumber":{ "type":"integer", - "max":65535, - "min":1025 + "min":1025, + "max":65535 }, "RadiusAuthenticationProtocol":{ "type":"string", @@ -1204,13 +1067,13 @@ }, "RadiusDisplayLabel":{ "type":"string", - "max":64, - "min":1 + "min":1, + "max":64 }, "RadiusRetries":{ "type":"integer", - "max":10, - "min":0 + "min":0, + "max":10 }, "RadiusSettings":{ "type":"structure", @@ -1227,8 +1090,8 @@ }, "RadiusSharedSecret":{ "type":"string", - "max":512, "min":8, + "max":512, "sensitive":true }, "RadiusStatus":{ @@ -1241,36 +1104,8 @@ }, "RadiusTimeout":{ "type":"integer", - "max":20, - "min":1 - }, - "RegisterEventTopicRequest":{ - "type":"structure", - "required":[ - "DirectoryId", - "TopicName" - ], - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "TopicName":{"shape":"TopicName"} - } - }, - "RegisterEventTopicResult":{ - "type":"structure", - "members":{ - } - }, - "RemoteDomainName":{ - "type":"string", - "pattern":"^([a-zA-Z0-9]+[\\\\.-])+([a-zA-Z0-9])+[.]?$" - }, - "RemoteDomainNames":{ - "type":"list", - "member":{"shape":"RemoteDomainName"} - }, - "ReplicationScope":{ - "type":"string", - "enum":["Domain"] + "min":1, + "max":20 }, "RequestId":{ "type":"string", @@ -1290,8 +1125,8 @@ }, "SID":{ "type":"string", - "max":256, "min":1, + "max":256, "pattern":"[&\\w+-.@]+" }, "SecurityGroupId":{ @@ -1300,8 +1135,8 @@ }, "Server":{ "type":"string", - "max":256, - "min":1 + "min":1, + "max":256 }, "Servers":{ "type":"list", @@ -1353,8 +1188,8 @@ }, "SnapshotName":{ "type":"string", - "max":128, "min":0, + "max":128, "pattern":"^([a-zA-Z0-9_])[\\\\a-zA-Z0-9_@#%*+=:?./!\\s-]*$" }, "SnapshotStatus":{ @@ -1379,7 +1214,6 @@ "SsoEnabled":{"type":"boolean"}, "StageReason":{"type":"string"}, "StartTime":{"type":"timestamp"}, - "StateLastUpdatedDateTime":{"type":"timestamp"}, "SubnetId":{ "type":"string", "pattern":"^(subnet-[0-9a-f]{8})$" @@ -1388,85 +1222,6 @@ "type":"list", "member":{"shape":"SubnetId"} }, - "TopicArn":{"type":"string"}, - "TopicName":{ - "type":"string", - "max":256, - "min":1, - "pattern":"[a-zA-Z0-9_-]+" - }, - "TopicNames":{ - "type":"list", - "member":{"shape":"TopicName"} - }, - "TopicStatus":{ - "type":"string", - "enum":[ - "Registered", - "Topic not found", - "Failed", - "Deleted" - ] - }, - "Trust":{ - "type":"structure", - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "TrustId":{"shape":"TrustId"}, - "RemoteDomainName":{"shape":"RemoteDomainName"}, - "TrustType":{"shape":"TrustType"}, - "TrustDirection":{"shape":"TrustDirection"}, - "TrustState":{"shape":"TrustState"}, - "CreatedDateTime":{"shape":"CreatedDateTime"}, - "LastUpdatedDateTime":{"shape":"LastUpdatedDateTime"}, - "StateLastUpdatedDateTime":{"shape":"StateLastUpdatedDateTime"}, - "TrustStateReason":{"shape":"TrustStateReason"} - } - }, - "TrustDirection":{ - "type":"string", - "enum":[ - "One-Way: Outgoing", - "One-Way: Incoming", - "Two-Way" - ] - }, - "TrustId":{ - "type":"string", - "pattern":"^t-[0-9a-f]{10}$" - }, - "TrustIds":{ - "type":"list", - "member":{"shape":"TrustId"} - }, - "TrustPassword":{ - "type":"string", - "max":128, - "min":1, - "sensitive":true - }, - "TrustState":{ - "type":"string", - "enum":[ - "Creating", - "Created", - "Verifying", - "VerifyFailed", - "Verified", - "Deleting", - "Deleted", - "Failed" - ] - }, - "TrustStateReason":{"type":"string"}, - "TrustType":{ - "type":"string", - "enum":["Forest"] - }, - "Trusts":{ - "type":"list", - "member":{"shape":"Trust"} - }, "UnsupportedOperationException":{ "type":"structure", "members":{ @@ -1475,24 +1230,6 @@ }, "exception":true }, - "UpdateConditionalForwarderRequest":{ - "type":"structure", - "required":[ - "DirectoryId", - "RemoteDomainName", - "DnsIpAddrs" - ], - "members":{ - "DirectoryId":{"shape":"DirectoryId"}, - "RemoteDomainName":{"shape":"RemoteDomainName"}, - "DnsIpAddrs":{"shape":"DnsIpAddrs"} - } - }, - "UpdateConditionalForwarderResult":{ - "type":"structure", - "members":{ - } - }, "UpdateRadiusRequest":{ "type":"structure", "required":[ @@ -1515,19 +1252,6 @@ "min":1, "pattern":"[a-zA-Z0-9._-]+" }, - "VerifyTrustRequest":{ - "type":"structure", - "required":["TrustId"], - "members":{ - "TrustId":{"shape":"TrustId"} - } - }, - "VerifyTrustResult":{ - "type":"structure", - "members":{ - "TrustId":{"shape":"TrustId"} - } - }, "VpcId":{ "type":"string", "pattern":"^(vpc-[0-9a-f]{8})$" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/ds/2015-04-16/docs-2.json similarity index 59% rename from vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/ds/2015-04-16/docs-2.json index c4dd071b7..37b696808 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/ds/2015-04-16/docs-2.json @@ -1,50 +1,38 @@ { "version": "2.0", - "service": "AWS Directory Service

This is the AWS Directory Service API Reference. This guide provides detailed information about AWS Directory Service operations, data types, parameters, and errors.

", "operations": { - "ConnectDirectory": "

Creates an AD Connector to connect to an on-premises directory.

", - "CreateAlias": "

Creates an alias for a directory and assigns the alias to the directory. The alias is used to construct the access URL for the directory, such as http://alias.awsapps.com.

After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.

", + "ConnectDirectory": "

Creates an AD Connector to connect an on-premises directory.

", + "CreateAlias": "

Creates an alias for a directory and assigns the alias to the directory. The alias is used to construct the access URL for the directory, such as http://<alias>.awsapps.com.

After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.

", "CreateComputer": "

Creates a computer account in the specified directory, and joins the computer to the directory.

", - "CreateConditionalForwarder": "

Creates a conditional forwarder associated with your AWS directory. Conditional forwarders are required in order to set up a trust relationship with another domain. The conditional forwarder points to the trusted domain.

", "CreateDirectory": "

Creates a Simple AD directory.

", - "CreateMicrosoftAD": "Creates a Microsoft AD in the AWS cloud.", - "CreateSnapshot": "

Creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud.

You cannot take snapshots of AD Connector directories.

", - "CreateTrust": "

AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.

This action initiates the creation of the AWS side of a trust relationship between a Microsoft AD in the AWS cloud and an external domain.

", - "DeleteConditionalForwarder": "

Deletes a conditional forwarder that has been set up for your AWS directory.

", + "CreateSnapshot": "

Creates a snapshot of an existing directory.

You cannot take snapshots of extended or connected directories.

", "DeleteDirectory": "

Deletes an AWS Directory Service directory.

", "DeleteSnapshot": "

Deletes a directory snapshot.

", - "DeleteTrust": "Deletes an existing trust relationship between your Microsoft AD in the AWS cloud and an external domain.", - "DeregisterEventTopic": "

Removes the specified directory as a publisher to the specified SNS topic.

", - "DescribeConditionalForwarders": "

Obtains information about the conditional forwarders for this account.

If no input parameters are provided for RemoteDomainNames, this request describes all conditional forwarders for the specified directory ID.

", "DescribeDirectories": "

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

", - "DescribeEventTopics": "

Obtains information about which SNS topics receive status messages from the specified directory.

If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.

", "DescribeSnapshots": "

Obtains information about the directory snapshots that belong to this account.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeSnapshots.NextToken member contains a token that you pass in the next call to DescribeSnapshots to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

", - "DescribeTrusts": "

Obtains information about the trust relationships for this account.

If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.

", - "DisableRadius": "

Disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.

", + "DisableRadius": "

Disables multi-factor authentication (MFA) with Remote Authentication Dial In User Service (RADIUS) for an AD Connector directory.

", "DisableSso": "

Disables single-sign on for a directory.

", - "EnableRadius": "

Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.

", + "EnableRadius": "

Enables multi-factor authentication (MFA) with Remote Authentication Dial In User Service (RADIUS) for an AD Connector directory.

", "EnableSso": "

Enables single-sign on for a directory.

", "GetDirectoryLimits": "

Obtains directory limit information for the current region.

", "GetSnapshotLimits": "

Obtains the manual snapshot limits for a directory.

", - "RegisterEventTopic": "

Associates a directory with an SNS topic. This establishes the directory as a publisher to the specified SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.

", "RestoreFromSnapshot": "

Restores a directory using an existing directory snapshot.

When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.

This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the DescribeDirectories operation with the directory identifier. When the DirectoryDescription.Stage value changes to Active, the restore operation is complete.

", - "UpdateConditionalForwarder": "

Updates a conditional forwarder that has been set up for your AWS directory.

", - "UpdateRadius": "

Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector directory.

", - "VerifyTrust": "

AWS Directory Service for Microsoft Active Directory allows you to configure and verify trust relationships.

This action verifies a trust relationship between your Microsoft AD in the AWS cloud and an external domain.

" + "UpdateRadius": "

Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector directory.

" }, + "service": "AWS Directory Service

This is the AWS Directory Service API Reference. This guide provides detailed information about AWS Directory Service operations, data types, parameters, and errors.

", "shapes": { "AccessUrl": { "base": null, "refs": { - "DirectoryDescription$AccessUrl": "

The access URL for the directory, such as http://alias.awsapps.com. If no alias has been created for the directory, alias is the directory identifier, such as d-XXXXXXXXXX.

" + "DirectoryDescription$AccessUrl": "

The access URL for the directory, such as http://<alias>.awsapps.com.

" } }, "AliasName": { "base": null, "refs": { - "CreateAliasRequest$Alias": "

The requested alias.

The alias must be unique amongst all aliases in AWS. This operation throws an EntityAlreadyExistsException error if the alias already exists.

", + "CreateAliasRequest$Alias": "

The requested alias.

The alias must be unique amongst all aliases in AWS. This operation will throw an EntityAlreadyExistsException if this alias already exists.

", "CreateAliasResult$Alias": "

The alias for the directory.

", - "DirectoryDescription$Alias": "

The alias for the directory. If no alias has been created for the directory, the alias is the directory identifier, such as d-XXXXXXXXXX.

" + "DirectoryDescription$Alias": "

The alias for the directory.

" } }, "Attribute": { @@ -68,7 +56,7 @@ "Attributes": { "base": null, "refs": { - "Computer$ComputerAttributes": "

An array of Attribute objects containing the LDAP attributes that belong to the computer account.

", + "Computer$ComputerAttributes": "

An array of Attribute objects that contain the LDAP attributes that belong to the computer account.

", "CreateComputerRequest$ComputerAttributes": "

An array of Attribute objects that contain any LDAP attributes to apply to the computer account.

" } }, @@ -98,14 +86,13 @@ "CloudOnlyDirectoriesLimitReached": { "base": null, "refs": { - "DirectoryLimits$CloudOnlyDirectoriesLimitReached": "

Indicates if the cloud directory limit has been reached.

", - "DirectoryLimits$CloudOnlyMicrosoftADLimitReached": "Indicates if the Microsoft AD directory limit has been reached." + "DirectoryLimits$CloudOnlyDirectoriesLimitReached": "

Indicates if the cloud directory limit has been reached.

" } }, "Computer": { "base": "

Contains information about a computer account in a directory.

", "refs": { - "CreateComputerResult$Computer": "

A Computer object that represents the computer account.

" + "CreateComputerResult$Computer": "

A Computer object the represents the computer account.

" } }, "ComputerName": { @@ -121,18 +108,6 @@ "CreateComputerRequest$Password": "

A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.

" } }, - "ConditionalForwarder": { - "base": "

Points to a remote domain with which you are setting up a trust relationship. Conditional forwarders are required in order to set up a trust relationship with another domain.

", - "refs": { - "ConditionalForwarders$member": null - } - }, - "ConditionalForwarders": { - "base": null, - "refs": { - "DescribeConditionalForwardersResult$ConditionalForwarders": "

The list of conditional forwarders that have been created.

" - } - }, "ConnectDirectoryRequest": { "base": "

Contains the inputs for the ConnectDirectory operation.

", "refs": { @@ -147,8 +122,8 @@ "base": null, "refs": { "ConnectDirectoryRequest$Password": "

The password for the on-premises user account.

", - "DisableSsoRequest$Password": "

The password of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. For more information, see the UserName parameter.

", - "EnableSsoRequest$Password": "

The password of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. For more information, see the UserName parameter.

" + "DisableSsoRequest$Password": "

The password of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. See the UserName parameter for more information.

", + "EnableSsoRequest$Password": "

The password of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. See the UserName parameter for more information.

" } }, "ConnectedDirectoriesLimitReached": { @@ -177,16 +152,6 @@ "refs": { } }, - "CreateConditionalForwarderRequest": { - "base": "

Initiates the creation of a conditional forwarder for your AWS Directory Service for Microsoft Active Directory. Conditional forwarders are required in order to set up a trust relationship with another domain.

", - "refs": { - } - }, - "CreateConditionalForwarderResult": { - "base": null, - "refs": { - } - }, "CreateDirectoryRequest": { "base": "

Contains the inputs for the CreateDirectory operation.

", "refs": { @@ -197,16 +162,6 @@ "refs": { } }, - "CreateMicrosoftADRequest": { - "base": "Creates a Microsoft AD in the AWS cloud.", - "refs": { - } - }, - "CreateMicrosoftADResult": { - "base": null, - "refs": { - } - }, "CreateSnapshotRequest": { "base": "

Contains the inputs for the CreateSnapshot operation.

", "refs": { @@ -217,39 +172,6 @@ "refs": { } }, - "CreateTrustRequest": { - "base": "

AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.

This action initiates the creation of the AWS side of a trust relationship between a Microsoft AD in the AWS cloud and an external domain.

", - "refs": { - } - }, - "CreateTrustResult": { - "base": null, - "refs": { - } - }, - "CreatedDateTime": { - "base": null, - "refs": { - "EventTopic$CreatedDateTime": "

The date and time of when you associated your directory with the SNS topic.

", - "Trust$CreatedDateTime": "The date and time that the trust relationship was created." - } - }, - "DeleteAssociatedConditionalForwarder": { - "base": null, - "refs": { - "DeleteTrustRequest$DeleteAssociatedConditionalForwarder": null - } - }, - "DeleteConditionalForwarderRequest": { - "base": null, - "refs": { - } - }, - "DeleteConditionalForwarderResult": { - "base": null, - "refs": { - } - }, "DeleteDirectoryRequest": { "base": "

Contains the inputs for the DeleteDirectory operation.

", "refs": { @@ -270,36 +192,6 @@ "refs": { } }, - "DeleteTrustRequest": { - "base": "Deletes the local side of an existing trust relationship between the Microsoft AD in the AWS cloud and the external domain.", - "refs": { - } - }, - "DeleteTrustResult": { - "base": null, - "refs": { - } - }, - "DeregisterEventTopicRequest": { - "base": "

Removes the specified directory as a publisher to the specified SNS topic.

", - "refs": { - } - }, - "DeregisterEventTopicResult": { - "base": null, - "refs": { - } - }, - "DescribeConditionalForwardersRequest": { - "base": null, - "refs": { - } - }, - "DescribeConditionalForwardersResult": { - "base": null, - "refs": { - } - }, "DescribeDirectoriesRequest": { "base": "

Contains the inputs for the DescribeDirectories operation.

", "refs": { @@ -310,16 +202,6 @@ "refs": { } }, - "DescribeEventTopicsRequest": { - "base": null, - "refs": { - } - }, - "DescribeEventTopicsResult": { - "base": null, - "refs": { - } - }, "DescribeSnapshotsRequest": { "base": "

Contains the inputs for the DescribeSnapshots operation.

", "refs": { @@ -330,22 +212,11 @@ "refs": { } }, - "DescribeTrustsRequest": { - "base": "Describes the trust relationships for a particular Microsoft AD in the AWS cloud. If no input parameters are are provided, such as directory ID or trust ID, this request describes all the trust relationships.", - "refs": { - } - }, - "DescribeTrustsResult": { - "base": null, - "refs": { - } - }, "Description": { "base": null, "refs": { "ConnectDirectoryRequest$Description": "

A textual description for the directory.

", "CreateDirectoryRequest$Description": "

A textual description for the directory.

", - "CreateMicrosoftADRequest$Description": "

A textual description for the directory. This label will appear on the AWS console Directory Details page after the directory is created.

", "DirectoryDescription$Description": "

The textual description for the directory.

" } }, @@ -377,41 +248,29 @@ "base": null, "refs": { "ConnectDirectoryResult$DirectoryId": "

The identifier of the new directory.

", - "CreateAliasRequest$DirectoryId": "

The identifier of the directory for which to create the alias.

", + "CreateAliasRequest$DirectoryId": "

The identifier of the directory to create the alias for.

", "CreateAliasResult$DirectoryId": "

The identifier of the directory.

", - "CreateComputerRequest$DirectoryId": "

The identifier of the directory in which to create the computer account.

", - "CreateConditionalForwarderRequest$DirectoryId": "

The directory ID of the AWS directory for which you are creating the conditional forwarder.

", + "CreateComputerRequest$DirectoryId": "

The identifier of the directory to create the computer account in.

", "CreateDirectoryResult$DirectoryId": "

The identifier of the directory that was created.

", - "CreateMicrosoftADResult$DirectoryId": "The identifier of the directory that was created.", - "CreateSnapshotRequest$DirectoryId": "

The identifier of the directory of which to take a snapshot.

", - "CreateTrustRequest$DirectoryId": "The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.", - "DeleteConditionalForwarderRequest$DirectoryId": "

The directory ID for which you are deleting the conditional forwarder.

", + "CreateSnapshotRequest$DirectoryId": "

The identifier of the directory to take a snapshot of.

", "DeleteDirectoryRequest$DirectoryId": "

The identifier of the directory to delete.

", "DeleteDirectoryResult$DirectoryId": "

The directory identifier.

", - "DeregisterEventTopicRequest$DirectoryId": "

The Directory ID to remove as a publisher. This directory will no longer send messages to the specified SNS topic.

", - "DescribeConditionalForwardersRequest$DirectoryId": "

The directory ID for which to get the list of associated conditional forwarders.

", - "DescribeEventTopicsRequest$DirectoryId": "

The Directory ID for which to get the list of associated SNS topics. If this member is null, associations for all Directory IDs are returned.

", - "DescribeSnapshotsRequest$DirectoryId": "

The identifier of the directory for which to retrieve snapshot information.

", - "DescribeTrustsRequest$DirectoryId": "The Directory ID of the AWS directory that is a part of the requested trust relationship.", + "DescribeSnapshotsRequest$DirectoryId": "

The identifier of the directory to retrieve snapshot information for.

", "DirectoryDescription$DirectoryId": "

The directory identifier.

", "DirectoryIds$member": null, - "DisableRadiusRequest$DirectoryId": "

The identifier of the directory for which to disable MFA.

", - "DisableSsoRequest$DirectoryId": "

The identifier of the directory for which to disable single-sign on.

", - "EnableRadiusRequest$DirectoryId": "

The identifier of the directory for which to enable MFA.

", - "EnableSsoRequest$DirectoryId": "

The identifier of the directory for which to enable single-sign on.

", - "EventTopic$DirectoryId": "

The Directory ID of an AWS Directory Service directory that will publish status messages to an SNS topic.

", + "DisableRadiusRequest$DirectoryId": "

The identifier of the directory to disable MFA for.

", + "DisableSsoRequest$DirectoryId": "

The identifier of the directory to disable single-sign on for.

", + "EnableRadiusRequest$DirectoryId": "

The identifier of the directory to enable MFA for.

", + "EnableSsoRequest$DirectoryId": "

The identifier of the directory to enable single-sign on for.

", "GetSnapshotLimitsRequest$DirectoryId": "

Contains the identifier of the directory to obtain the limits for.

", - "RegisterEventTopicRequest$DirectoryId": "

The Directory ID that will publish status messages to the SNS topic.

", "Snapshot$DirectoryId": "

The directory identifier.

", - "Trust$DirectoryId": "The Directory ID of the AWS directory involved in the trust relationship.", - "UpdateConditionalForwarderRequest$DirectoryId": "

The directory ID of the AWS directory for which to update the conditional forwarder.

", - "UpdateRadiusRequest$DirectoryId": "

The identifier of the directory for which to update the RADIUS server information.

" + "UpdateRadiusRequest$DirectoryId": "

The identifier of the directory to update the RADIUS server information for.

" } }, "DirectoryIds": { "base": "

A list of directory identifiers.

", "refs": { - "DescribeDirectoriesRequest$DirectoryIds": "

A list of identifiers of the directories for which to obtain the information. If this member is null, all directories that belong to the current account are returned.

An empty list results in an InvalidParameterException being thrown.

" + "DescribeDirectoriesRequest$DirectoryIds": "

A list of identifiers of the directories to obtain the information for. If this member is null, all directories that belong to the current account are returned.

An empty list results in an InvalidParameterException being thrown.

" } }, "DirectoryLimitExceededException": { @@ -430,7 +289,6 @@ "refs": { "ConnectDirectoryRequest$Name": "

The fully-qualified name of the on-premises directory, such as corp.example.com.

", "CreateDirectoryRequest$Name": "

The fully qualified name for the directory, such as corp.example.com.

", - "CreateMicrosoftADRequest$Name": "

The fully qualified domain name for the directory, such as corp.example.com. This name will resolve inside your VPC only. It does not need to be publicly resolvable.

", "DirectoryDescription$Name": "

The fully-qualified name of the directory.

" } }, @@ -439,7 +297,6 @@ "refs": { "ConnectDirectoryRequest$ShortName": "

The NetBIOS name of the on-premises directory, such as CORP.

", "CreateDirectoryRequest$ShortName": "

The short name of the directory, such as CORP.

", - "CreateMicrosoftADRequest$ShortName": "

The NetBIOS name for your domain. A short identifier for your domain, such as CORP. If you don't specify a NetBIOS name, it will default to the first part of your directory DNS. For example, CORP for the directory DNS corp.example.com.

", "DirectoryDescription$ShortName": "

The short name of the directory.

" } }, @@ -469,16 +326,15 @@ } }, "DirectoryVpcSettings": { - "base": "

Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.

", + "base": "

Contains information for the CreateDirectory operation when a Simple AD directory is being created.

", "refs": { - "CreateDirectoryRequest$VpcSettings": "

A DirectoryVpcSettings object that contains additional information for the operation.

", - "CreateMicrosoftADRequest$VpcSettings": null + "CreateDirectoryRequest$VpcSettings": "

A DirectoryVpcSettings object that contains additional information for the operation.

" } }, "DirectoryVpcSettingsDescription": { - "base": "

Contains information about the directory.

", + "base": "

Contains information about a Simple AD directory.

", "refs": { - "DirectoryDescription$VpcSettings": "

A DirectoryVpcSettingsDescription object that contains additional information about a directory. This member is only present if the directory is a Simple AD or Managed AD directory.

" + "DirectoryDescription$VpcSettings": "

A DirectoryVpcSettingsDescription object that contains additional information about a Simple AD directory. This member is only present if the directory is a Simple AD directory.

" } }, "DisableRadiusRequest": { @@ -504,12 +360,8 @@ "DnsIpAddrs": { "base": null, "refs": { - "ConditionalForwarder$DnsIpAddrs": "

The IP addresses of the remote DNS server associated with RemoteDomainName. This is the IP address of the DNS server that your conditional forwarder points to.

", - "CreateConditionalForwarderRequest$DnsIpAddrs": "

The IP addresses of the remote DNS server associated with RemoteDomainName.

", - "CreateTrustRequest$ConditionalForwarderIpAddrs": null, "DirectoryConnectSettings$CustomerDnsIps": "

A list of one or more IP addresses of DNS servers or domain controllers in the on-premises directory.

", - "DirectoryDescription$DnsIpAddrs": "

The IP addresses of the DNS servers for the directory. For a Simple AD or Microsoft AD directory, these are the IP addresses of the Simple AD or Microsoft AD directory servers. For an AD Connector directory, these are the IP addresses of the DNS servers or domain controllers in the on-premises directory to which the AD Connector is connected.

", - "UpdateConditionalForwarderRequest$DnsIpAddrs": "

The updated IP addresses of the remote DNS server associated with the conditional forwarder.

" + "DirectoryDescription$DnsIpAddrs": "

The IP addresses of the DNS servers for the directory. For a Simple AD directory, these are the IP addresses of the Simple AD directory servers. For an AD Connector directory, these are the IP addresses of the DNS servers or domain controllers in the on-premises directory that the AD Connector is connected to.

" } }, "EnableRadiusRequest": { @@ -542,18 +394,6 @@ "refs": { } }, - "EventTopic": { - "base": "

Information about SNS topic and AWS Directory Service directory associations.

", - "refs": { - "EventTopics$member": null - } - }, - "EventTopics": { - "base": null, - "refs": { - "DescribeEventTopicsResult$EventTopics": "

A list of SNS topic names that receive status messages from the specified Directory ID.

" - } - }, "ExceptionMessage": { "base": "

The descriptive message for the exception.

", "refs": { @@ -622,8 +462,7 @@ "LastUpdatedDateTime": { "base": null, "refs": { - "DirectoryDescription$StageLastUpdatedDateTime": "

The date and time that the stage was last updated.

", - "Trust$LastUpdatedDateTime": "The date and time that the trust relationship was last updated." + "DirectoryDescription$StageLastUpdatedDateTime": "

The date and time that the stage was last updated.

" } }, "LaunchTime": { @@ -637,11 +476,8 @@ "refs": { "DescribeDirectoriesRequest$Limit": "

The maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.

", "DescribeSnapshotsRequest$Limit": "

The maximum number of objects to return.

", - "DescribeTrustsRequest$Limit": "The maximum number of objects to return.", "DirectoryLimits$CloudOnlyDirectoriesLimit": "

The maximum number of cloud directories allowed in the region.

", "DirectoryLimits$CloudOnlyDirectoriesCurrentCount": "

The current number of cloud directories in the region.

", - "DirectoryLimits$CloudOnlyMicrosoftADLimit": "The maximum number of Microsoft AD directories allowed in the region.", - "DirectoryLimits$CloudOnlyMicrosoftADCurrentCount": "The current number of Microsoft AD directories in the region.", "DirectoryLimits$ConnectedDirectoriesLimit": "

The maximum number of connected directories allowed in the region.

", "DirectoryLimits$ConnectedDirectoriesCurrentCount": "

The current number of connected directories in the region.

", "SnapshotLimits$ManualSnapshotsLimit": "

The maximum number of manual snapshots allowed.

", @@ -660,9 +496,7 @@ "DescribeDirectoriesRequest$NextToken": "

The DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories. Pass null if this is the first call.

", "DescribeDirectoriesResult$NextToken": "

If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.

", "DescribeSnapshotsRequest$NextToken": "

The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.

", - "DescribeSnapshotsResult$NextToken": "

If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.

", - "DescribeTrustsRequest$NextToken": "

The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.

", - "DescribeTrustsResult$NextToken": "

If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeTrusts to retrieve the next set of items.

" + "DescribeSnapshotsResult$NextToken": "

If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.

" } }, "OrganizationalUnitDN": { @@ -674,8 +508,7 @@ "Password": { "base": null, "refs": { - "CreateDirectoryRequest$Password": "

The password for the directory administrator. The directory creation process creates a directory administrator account with the username Administrator and this password.

", - "CreateMicrosoftADRequest$Password": "

The password for the default administrative user named Admin.

" + "CreateDirectoryRequest$Password": "

The password for the directory administrator. The directory creation process creates a directory administrator account with the username Administrator and this password.

" } }, "PortNumber": { @@ -728,40 +561,6 @@ "RadiusSettings$RadiusTimeout": "

The amount of time, in seconds, to wait for the RADIUS server to respond.

" } }, - "RegisterEventTopicRequest": { - "base": null, - "refs": { - } - }, - "RegisterEventTopicResult": { - "base": null, - "refs": { - } - }, - "RemoteDomainName": { - "base": null, - "refs": { - "ConditionalForwarder$RemoteDomainName": "

The fully qualified domain name (FQDN) of the remote domains pointed to by the conditional forwarder.

", - "CreateConditionalForwarderRequest$RemoteDomainName": "

The fully qualified domain name (FQDN) of the remote domain with which you will set up a trust relationship.

", - "CreateTrustRequest$RemoteDomainName": "The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.", - "DeleteConditionalForwarderRequest$RemoteDomainName": "

The fully qualified domain name (FQDN) of the remote domain with which you are deleting the conditional forwarder.

", - "RemoteDomainNames$member": null, - "Trust$RemoteDomainName": "The Fully Qualified Domain Name (FQDN) of the external domain involved in the trust relationship.", - "UpdateConditionalForwarderRequest$RemoteDomainName": "

The fully qualified domain name (FQDN) of the remote domain with which you will set up a trust relationship.

" - } - }, - "RemoteDomainNames": { - "base": null, - "refs": { - "DescribeConditionalForwardersRequest$RemoteDomainNames": "

The fully qualified domain names (FQDN) of the remote domains for which to get the list of associated conditional forwarders. If this member is null, all conditional forwarders are returned.

" - } - }, - "ReplicationScope": { - "base": null, - "refs": { - "ConditionalForwarder$ReplicationScope": "

The replication scope of the conditional forwarder. The only allowed value is Domain, which will replicate the conditional forwarder to all of the domain controllers for your AWS directory.

" - } - }, "RequestId": { "base": "

The AWS request identifier.

", "refs": { @@ -799,7 +598,7 @@ "base": null, "refs": { "DirectoryConnectSettingsDescription$SecurityGroupId": "

The security group identifier for the AD Connector directory.

", - "DirectoryVpcSettingsDescription$SecurityGroupId": "

The security group identifier for the directory. If the directory was created before 8/1/2014, this is the identifier of the directory members security group that was created when the directory was created. If the directory was created after this date, this value is null.

" + "DirectoryVpcSettingsDescription$SecurityGroupId": "

The security group identifier for the directory.

" } }, "Server": { @@ -896,12 +695,6 @@ "Snapshot$StartTime": "

The date and time that the snapshot was taken.

" } }, - "StateLastUpdatedDateTime": { - "base": null, - "refs": { - "Trust$StateLastUpdatedDateTime": "The date and time that the TrustState was last updated." - } - }, "SubnetId": { "base": null, "refs": { @@ -911,116 +704,17 @@ "SubnetIds": { "base": null, "refs": { - "DirectoryConnectSettings$SubnetIds": "

A list of subnet identifiers in the VPC in which the AD Connector is created.

", + "DirectoryConnectSettings$SubnetIds": "

A list of subnet identifiers in the VPC that the AD Connector is created in.

", "DirectoryConnectSettingsDescription$SubnetIds": "

A list of subnet identifiers in the VPC that the AD connector is in.

", "DirectoryVpcSettings$SubnetIds": "

The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.

", "DirectoryVpcSettingsDescription$SubnetIds": "

The identifiers of the subnets for the directory servers.

" } }, - "TopicArn": { - "base": null, - "refs": { - "EventTopic$TopicArn": "

The SNS topic ARN (Amazon Resource Name).

" - } - }, - "TopicName": { - "base": null, - "refs": { - "DeregisterEventTopicRequest$TopicName": "

The name of the SNS topic from which to remove the directory as a publisher.

", - "EventTopic$TopicName": "

The name of an AWS SNS topic the receives status messages from the directory.

", - "RegisterEventTopicRequest$TopicName": "

The SNS topic name to which the directory will publish status messages. This SNS topic must be in the same region as the specified Directory ID.

", - "TopicNames$member": null - } - }, - "TopicNames": { - "base": null, - "refs": { - "DescribeEventTopicsRequest$TopicNames": "

A list of SNS topic names for which to obtain the information. If this member is null, all associations for the specified Directory ID are returned.

An empty list results in an InvalidParameterException being thrown.

" - } - }, - "TopicStatus": { - "base": null, - "refs": { - "EventTopic$Status": "

The topic registration status.

" - } - }, - "Trust": { - "base": "Describes a trust relationship between an Microsoft AD in the AWS cloud and an external domain.", - "refs": { - "Trusts$member": null - } - }, - "TrustDirection": { - "base": null, - "refs": { - "CreateTrustRequest$TrustDirection": "The direction of the trust relationship.", - "Trust$TrustDirection": "The trust relationship direction." - } - }, - "TrustId": { - "base": null, - "refs": { - "CreateTrustResult$TrustId": "A unique identifier for the trust relationship that was created.", - "DeleteTrustRequest$TrustId": "The Trust ID of the trust relationship to be deleted.", - "DeleteTrustResult$TrustId": "The Trust ID of the trust relationship that was deleted.", - "Trust$TrustId": "The unique ID of the trust relationship.", - "TrustIds$member": null, - "VerifyTrustRequest$TrustId": "The unique Trust ID of the trust relationship to verify.", - "VerifyTrustResult$TrustId": "The unique Trust ID of the trust relationship that was verified." - } - }, - "TrustIds": { - "base": null, - "refs": { - "DescribeTrustsRequest$TrustIds": "

A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.

An empty list results in an InvalidParameterException being thrown.

" - } - }, - "TrustPassword": { - "base": null, - "refs": { - "CreateTrustRequest$TrustPassword": "The trust password. The must be the same password that was used when creating the trust relationship on the external domain." - } - }, - "TrustState": { - "base": null, - "refs": { - "Trust$TrustState": "The trust relationship state." - } - }, - "TrustStateReason": { - "base": null, - "refs": { - "Trust$TrustStateReason": "

The reason for the TrustState.

" - } - }, - "TrustType": { - "base": null, - "refs": { - "CreateTrustRequest$TrustType": "The trust relationship type.", - "Trust$TrustType": "The trust relationship type." - } - }, - "Trusts": { - "base": null, - "refs": { - "DescribeTrustsResult$Trusts": "

The list of Trust objects that were retrieved.

It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

" - } - }, "UnsupportedOperationException": { "base": "

The operation is not supported.

", "refs": { } }, - "UpdateConditionalForwarderRequest": { - "base": null, - "refs": { - } - }, - "UpdateConditionalForwarderResult": { - "base": null, - "refs": { - } - }, "UpdateRadiusRequest": { "base": "

Contains the inputs for the UpdateRadius operation.

", "refs": { @@ -1042,26 +736,16 @@ "refs": { "DirectoryConnectSettings$CustomerUserName": "

The username of an account in the on-premises directory that is used to connect to the directory. This account must have the following privileges:

  • Read users and groups
  • Create computer objects
  • Join computers to the domain
", "DirectoryConnectSettingsDescription$CustomerUserName": "

The username of the service account in the on-premises directory.

", - "DisableSsoRequest$UserName": "

The username of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. This account must have privileges to remove a service principal name.

If the AD Connector service account does not have privileges to remove a service principal name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to disable single sign-on and are not stored by the service. The AD Connector service account is not changed.

", - "EnableSsoRequest$UserName": "

The username of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. This account must have privileges to add a service principal name.

If the AD Connector service account does not have privileges to add a service principal name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to enable single sign-on and are not stored by the service. The AD Connector service account is not changed.

" - } - }, - "VerifyTrustRequest": { - "base": "Initiates the verification of an existing trust relationship between a Microsoft AD in the AWS cloud and an external domain.", - "refs": { - } - }, - "VerifyTrustResult": { - "base": null, - "refs": { + "DisableSsoRequest$UserName": "

The username of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. This account must have privileges to remove a service principle name.

If the AD Connector service account does not have privileges to remove a service principle name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to disable single sign-on and are not stored by the service. The AD Connector service account is not changed.

", + "EnableSsoRequest$UserName": "

The username of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. This account must have privileges to add a service principle name.

If the AD Connector service account does not have privileges to add a service principle name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to enable single sign-on and are not stored by the service. The AD Connector service account is not changed.

" } }, "VpcId": { "base": null, "refs": { - "DirectoryConnectSettings$VpcId": "

The identifier of the VPC in which the AD Connector is created.

", + "DirectoryConnectSettings$VpcId": "

The identifier of the VPC that the AD Connector is created in.

", "DirectoryConnectSettingsDescription$VpcId": "

The identifier of the VPC that the AD Connector is in.

", - "DirectoryVpcSettings$VpcId": "

The identifier of the VPC in which to create the directory.

", + "DirectoryVpcSettings$VpcId": "

The identifier of the VPC to create the Simple AD directory in.

", "DirectoryVpcSettingsDescription$VpcId": "

The identifier of the VPC that the directory is in.

" } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/api-2.json similarity index 85% rename from vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/api-2.json index a72e8da65..4de3546af 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/api-2.json @@ -4,11 +4,11 @@ "apiVersion":"2012-08-10", "endpointPrefix":"dynamodb", "jsonVersion":"1.0", - "protocol":"json", "serviceAbbreviation":"DynamoDB", "serviceFullName":"Amazon DynamoDB", "signatureVersion":"v4", - "targetPrefix":"DynamoDB_20120810" + "targetPrefix":"DynamoDB_20120810", + "protocol":"json" }, "operations":{ "BatchGetItem":{ @@ -20,9 +20,19 @@ "input":{"shape":"BatchGetItemInput"}, "output":{"shape":"BatchGetItemOutput"}, "errors":[ - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServerError"} + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "BatchWriteItem":{ @@ -34,10 +44,23 @@ "input":{"shape":"BatchWriteItemInput"}, "output":{"shape":"BatchWriteItemOutput"}, "errors":[ - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ItemCollectionSizeLimitExceededException"}, - {"shape":"InternalServerError"} + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ItemCollectionSizeLimitExceededException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "CreateTable":{ @@ -49,9 +72,19 @@ "input":{"shape":"CreateTableInput"}, "output":{"shape":"CreateTableOutput"}, "errors":[ - {"shape":"ResourceInUseException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalServerError"} + { + "shape":"ResourceInUseException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "DeleteItem":{ @@ -63,11 +96,27 @@ "input":{"shape":"DeleteItemInput"}, "output":{"shape":"DeleteItemOutput"}, "errors":[ - {"shape":"ConditionalCheckFailedException"}, - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ItemCollectionSizeLimitExceededException"}, - {"shape":"InternalServerError"} + { + "shape":"ConditionalCheckFailedException", + "exception":true + }, + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ItemCollectionSizeLimitExceededException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "DeleteTable":{ @@ -79,22 +128,23 @@ "input":{"shape":"DeleteTableInput"}, "output":{"shape":"DeleteTableOutput"}, "errors":[ - {"shape":"ResourceInUseException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalServerError"} - ] - }, - "DescribeLimits":{ - "name":"DescribeLimits", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeLimitsInput"}, - "output":{"shape":"DescribeLimitsOutput"}, - "errors":[ - {"shape":"InternalServerError"} + { + "shape":"ResourceInUseException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "DescribeTable":{ @@ -106,8 +156,15 @@ "input":{"shape":"DescribeTableInput"}, "output":{"shape":"DescribeTableOutput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServerError"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "GetItem":{ @@ -119,9 +176,19 @@ "input":{"shape":"GetItemInput"}, "output":{"shape":"GetItemOutput"}, "errors":[ - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServerError"} + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "ListTables":{ @@ -133,7 +200,11 @@ "input":{"shape":"ListTablesInput"}, "output":{"shape":"ListTablesOutput"}, "errors":[ - {"shape":"InternalServerError"} + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "PutItem":{ @@ -145,11 +216,27 @@ "input":{"shape":"PutItemInput"}, "output":{"shape":"PutItemOutput"}, "errors":[ - {"shape":"ConditionalCheckFailedException"}, - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ItemCollectionSizeLimitExceededException"}, - {"shape":"InternalServerError"} + { + "shape":"ConditionalCheckFailedException", + "exception":true + }, + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ItemCollectionSizeLimitExceededException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "Query":{ @@ -161,9 +248,19 @@ "input":{"shape":"QueryInput"}, "output":{"shape":"QueryOutput"}, "errors":[ - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServerError"} + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "Scan":{ @@ -175,9 +272,19 @@ "input":{"shape":"ScanInput"}, "output":{"shape":"ScanOutput"}, "errors":[ - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServerError"} + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "UpdateItem":{ @@ -189,11 +296,27 @@ "input":{"shape":"UpdateItemInput"}, "output":{"shape":"UpdateItemOutput"}, "errors":[ - {"shape":"ConditionalCheckFailedException"}, - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ItemCollectionSizeLimitExceededException"}, - {"shape":"InternalServerError"} + { + "shape":"ConditionalCheckFailedException", + "exception":true + }, + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ItemCollectionSizeLimitExceededException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] }, "UpdateTable":{ @@ -205,10 +328,23 @@ "input":{"shape":"UpdateTableInput"}, "output":{"shape":"UpdateTableOutput"}, "errors":[ - {"shape":"ResourceInUseException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalServerError"} + { + "shape":"ResourceInUseException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"InternalServerError", + "exception":true, + "fault":true + } ] } }, @@ -302,8 +438,8 @@ "type":"map", "key":{"shape":"TableName"}, "value":{"shape":"KeysAndAttributes"}, - "max":100, - "min":1 + "min":1, + "max":100 }, "BatchGetResponseMap":{ "type":"map", @@ -331,8 +467,8 @@ "type":"map", "key":{"shape":"TableName"}, "value":{"shape":"WriteRequests"}, - "max":25, - "min":1 + "min":1, + "max":25 }, "BinaryAttributeValue":{"type":"blob"}, "BinarySetAttributeValue":{ @@ -498,20 +634,6 @@ "TableDescription":{"shape":"TableDescription"} } }, - "DescribeLimitsInput":{ - "type":"structure", - "members":{ - } - }, - "DescribeLimitsOutput":{ - "type":"structure", - "members":{ - "AccountMaxReadCapacityUnits":{"shape":"PositiveLongObject"}, - "AccountMaxWriteCapacityUnits":{"shape":"PositiveLongObject"}, - "TableMaxReadCapacityUnits":{"shape":"PositiveLongObject"}, - "TableMaxWriteCapacityUnits":{"shape":"PositiveLongObject"} - } - }, "DescribeTableInput":{ "type":"structure", "required":["TableName"], @@ -631,8 +753,8 @@ }, "IndexName":{ "type":"string", - "max":255, "min":3, + "max":255, "pattern":"[a-zA-Z0-9_.-]+" }, "IndexStatus":{ @@ -704,19 +826,19 @@ "KeyList":{ "type":"list", "member":{"shape":"Key"}, - "max":100, - "min":1 + "min":1, + "max":100 }, "KeySchema":{ "type":"list", "member":{"shape":"KeySchemaElement"}, - "max":2, - "min":1 + "min":1, + "max":2 }, "KeySchemaAttributeName":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "KeySchemaElement":{ "type":"structure", @@ -767,8 +889,8 @@ }, "ListTablesInputLimit":{ "type":"integer", - "max":100, - "min":1 + "min":1, + "max":100 }, "ListTablesOutput":{ "type":"structure", @@ -817,14 +939,14 @@ }, "NonKeyAttributeName":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "NonKeyAttributeNameList":{ "type":"list", "member":{"shape":"NonKeyAttributeName"}, - "max":20, - "min":1 + "min":1, + "max":20 }, "NullAttributeValue":{"type":"boolean"}, "NumberAttributeValue":{"type":"string"}, @@ -1037,13 +1159,13 @@ }, "ScanSegment":{ "type":"integer", - "max":999999, - "min":0 + "min":0, + "max":999999 }, "ScanTotalSegments":{ "type":"integer", - "max":1000000, - "min":1 + "min":1, + "max":1000000 }, "SecondaryIndexesCapacityMap":{ "type":"map", @@ -1061,8 +1183,8 @@ }, "StreamArn":{ "type":"string", - "max":1024, - "min":37 + "min":37, + "max":1024 }, "StreamEnabled":{"type":"boolean"}, "StreamSpecification":{ @@ -1108,8 +1230,8 @@ }, "TableName":{ "type":"string", - "max":255, "min":3, + "max":255, "pattern":"[a-zA-Z0-9_.-]+" }, "TableNameList":{ @@ -1193,8 +1315,8 @@ "WriteRequests":{ "type":"list", "member":{"shape":"WriteRequest"}, - "max":25, - "min":1 + "min":1, + "max":25 } } } diff --git a/vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/docs-2.json new file mode 100644 index 000000000..400d81635 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/docs-2.json @@ -0,0 +1,1013 @@ +{ + "version": "2.0", + "operations": { + "BatchGetItem": "

The BatchGetItem operation returns the attributes of one or more items from one or more tables. You identify requested items by primary key.

A single operation can retrieve up to 16 MB of data, which can contain as many as 100 items. BatchGetItem will return a partial result if the response size limit is exceeded, the table's provisioned throughput is exceeded, or an internal processing failure occurs. If a partial result is returned, the operation returns a value for UnprocessedKeys. You can use this value to retry the operation starting with the next item to get.

If you request more than 100 items BatchGetItem will return a ValidationException with the message \"Too many items requested for the BatchGetItem call\".

For example, if you ask to retrieve 100 items, but each individual item is 300 KB in size, the system returns 52 items (so as not to exceed the 16 MB limit). It also returns an appropriate UnprocessedKeys value so you can get the next page of results. If desired, your application can include its own logic to assemble the pages of results into one data set.

If none of the items can be processed due to insufficient provisioned throughput on all of the tables in the request, then BatchGetItem will return a ProvisionedThroughputExceededException. If at least one of the items is successfully processed, then BatchGetItem completes successfully, while returning the keys of the unread items in UnprocessedKeys.

If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm. If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you delay the batch operation using exponential backoff, the individual requests in the batch are much more likely to succeed.

For more information, see Batch Operations and Error Handling in the Amazon DynamoDB Developer Guide.

By default, BatchGetItem performs eventually consistent reads on every table in the request. If you want strongly consistent reads instead, you can set ConsistentRead to true for any or all tables.

In order to minimize response latency, BatchGetItem retrieves items in parallel.

When designing your application, keep in mind that DynamoDB does not return attributes in any particular order. To help parse the response by item, include the primary key values for the items in your request in the AttributesToGet parameter.

If a requested item does not exist, it is not returned in the result. Requests for nonexistent items consume the minimum read capacity units according to the type of read. For more information, see Capacity Units Calculations in the Amazon DynamoDB Developer Guide.

", + "BatchWriteItem": "

The BatchWriteItem operation puts or deletes multiple items in one or more tables. A single call to BatchWriteItem can write up to 16 MB of data, which can comprise as many as 25 put or delete requests. Individual items to be written can be as large as 400 KB.

BatchWriteItem cannot update items. To update items, use the UpdateItem API.

The individual PutItem and DeleteItem operations specified in BatchWriteItem are atomic; however BatchWriteItem as a whole is not. If any requested operations fail because the table's provisioned throughput is exceeded or an internal processing failure occurs, the failed operations are returned in the UnprocessedItems response parameter. You can investigate and optionally resend the requests. Typically, you would call BatchWriteItem in a loop. Each iteration would check for unprocessed items and submit a new BatchWriteItem request with those unprocessed items until all items have been processed.

Note that if none of the items can be processed due to insufficient provisioned throughput on all of the tables in the request, then BatchWriteItem will return a ProvisionedThroughputExceededException.

If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm. If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you delay the batch operation using exponential backoff, the individual requests in the batch are much more likely to succeed.

For more information, see Batch Operations and Error Handling in the Amazon DynamoDB Developer Guide.

With BatchWriteItem, you can efficiently write or delete large amounts of data, such as from Amazon Elastic MapReduce (EMR), or copy data from another database into DynamoDB. In order to improve performance with these large-scale operations, BatchWriteItem does not behave in the same way as individual PutItem and DeleteItem calls would. For example, you cannot specify conditions on individual put and delete requests, and BatchWriteItem does not return deleted items in the response.

If you use a programming language that supports concurrency, you can use threads to write items in parallel. Your application must include the necessary logic to manage the threads. With languages that don't support threading, you must update or delete the specified items one at a time. In both situations, BatchWriteItem provides an alternative where the API performs the specified put and delete operations in parallel, giving you the power of the thread pool approach without having to introduce complexity into your application.

Parallel processing reduces latency, but each specified put and delete request consumes the same number of write capacity units whether it is processed in parallel or not. Delete operations on nonexistent items consume one write capacity unit.

If one or more of the following is true, DynamoDB rejects the entire batch write operation:

  • One or more tables specified in the BatchWriteItem request does not exist.

  • Primary key attributes specified on an item in the request do not match those in the corresponding table's primary key schema.

  • You try to perform multiple operations on the same item in the same BatchWriteItem request. For example, you cannot put and delete the same item in the same BatchWriteItem request.

  • There are more than 25 requests in the batch.

  • Any individual item in a batch exceeds 400 KB.

  • The total request size exceeds 16 MB.

", + "CreateTable": "

The CreateTable operation adds a new table to your account. In an AWS account, table names must be unique within each region. That is, you can have two tables with same name if you create the tables in different regions.

CreateTable is an asynchronous operation. Upon receiving a CreateTable request, DynamoDB immediately returns a response with a TableStatus of CREATING. After the table is created, DynamoDB sets the TableStatus to ACTIVE. You can perform read and write operations only on an ACTIVE table.

You can optionally define secondary indexes on the new table, as part of the CreateTable operation. If you want to create multiple tables with secondary indexes on them, you must create the tables sequentially. Only one table with secondary indexes can be in the CREATING state at any given time.

You can use the DescribeTable API to check the table status.

", + "DeleteItem": "

Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.

In addition to deleting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter.

Unless you specify conditions, the DeleteItem is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response.

Conditional deletes are useful for deleting items only if specific conditions are met. If those conditions are met, DynamoDB performs the delete. Otherwise, the item is not deleted.

", + "DeleteTable": "

The DeleteTable operation deletes a table and all of its items. After a DeleteTable request, the specified table is in the DELETING state until DynamoDB completes the deletion. If the table is in the ACTIVE state, you can delete it. If a table is in CREATING or UPDATING states, then DynamoDB returns a ResourceInUseException. If the specified table does not exist, DynamoDB returns a ResourceNotFoundException. If table is already in the DELETING state, no error is returned.

DynamoDB might continue to accept data read and write operations, such as GetItem and PutItem, on a table in the DELETING state until the table deletion is complete.

When you delete a table, any indexes on that table are also deleted.

If you have DynamoDB Streams enabled on the table, then the corresponding stream on that table goes into the DISABLED state, and the stream is automatically deleted after 24 hours.

Use the DescribeTable API to check the status of the table.

", + "DescribeTable": "

Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table.

If you issue a DescribeTable request immediately after a CreateTable request, DynamoDB might return a ResourceNotFoundException. This is because DescribeTable uses an eventually consistent query, and the metadata for your table might not be available at that moment. Wait for a few seconds, and then try the DescribeTable request again.

", + "GetItem": "

The GetItem operation returns a set of attributes for the item with the given primary key. If there is no matching item, GetItem does not return any data.

GetItem provides an eventually consistent read by default. If your application requires a strongly consistent read, set ConsistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.

", + "ListTables": "

Returns an array of table names associated with the current account and endpoint. The output from ListTables is paginated, with each page returning a maximum of 100 table names.

", + "PutItem": "

Creates a new item, or replaces an old item with a new item. If an item that has the same primary key as the new item already exists in the specified table, the new item completely replaces the existing item. You can perform a conditional put operation (add a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values.

In addition to putting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter.

When you add an item, the primary key attribute(s) are the only required attributes. Attribute values cannot be null. String and Binary type attributes must have lengths greater than zero. Set type attributes cannot be empty. Requests with empty values will be rejected with a ValidationException exception.

You can request that PutItem return either a copy of the original item (before the update) or a copy of the updated item (after the update). For more information, see the ReturnValues description below.

To prevent a new item from replacing an existing item, use a conditional put operation with ComparisonOperator set to NULL for the primary key attribute, or attributes.

For more information about using this API, see Working with Items in the Amazon DynamoDB Developer Guide.

", + "Query": "

A Query operation uses the primary key of a table or a secondary index to directly access items from that table or index.

Use the KeyConditionExpression parameter to provide a specific hash key value. The Query operation will return all of the items from the table or index with that hash key value. You can optionally narrow the scope of the Query operation by specifying a range key value and a comparison operator in KeyConditionExpression. You can use the ScanIndexForward parameter to get results in forward or reverse order, by range key or by index key.

Queries that do not return results consume the minimum number of read capacity units for that type of read operation.

If the total number of items meeting the query criteria exceeds the result set size limit of 1 MB, the query stops and results are returned to the user with the LastEvaluatedKey element to continue the query in a subsequent operation. Unlike a Scan operation, a Query operation never returns both an empty result set and a LastEvaluatedKey value. LastEvaluatedKey is only provided if the results exceed 1 MB, or if you have used the Limit parameter.

You can query a table, a local secondary index, or a global secondary index. For a query on a table or on a local secondary index, you can set the ConsistentRead parameter to true and obtain a strongly consistent result. Global secondary indexes support eventually consistent reads only, so do not specify ConsistentRead when querying a global secondary index.

", + "Scan": "

The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index. To have DynamoDB return fewer items, you can provide a ScanFilter operation.

If the total number of scanned items exceeds the maximum data set size limit of 1 MB, the scan stops and results are returned to the user as a LastEvaluatedKey value to continue the scan in a subsequent operation. The results also include the number of items exceeding the limit. A scan can result in no table data meeting the filter criteria.

By default, Scan operations proceed sequentially; however, for faster performance on a large table or secondary index, applications can request a parallel Scan operation by providing the Segment and TotalSegments parameters. For more information, see Parallel Scan in the Amazon DynamoDB Developer Guide.

By default, Scan uses eventually consistent reads when acessing the data in the table or local secondary index. However, you can use strongly consistent reads instead by setting the ConsistentRead parameter to true.

", + "UpdateItem": "

Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values). If conditions are specified and the item does not exist, then the operation fails and a new item is not created.

You can also return the item's attribute values in the same UpdateItem operation using the ReturnValues parameter.

", + "UpdateTable": "

Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.

You can only perform one of the following operations at once:

  • Modify the provisioned throughput settings of the table.

  • Enable or disable Streams on the table.

  • Remove a global secondary index from the table.

  • Create a new global secondary index on the table. Once the index begins backfilling, you can use UpdateTable to perform other operations.

UpdateTable is an asynchronous operation; while it is executing, the table status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot issue another UpdateTable request. When the table returns to the ACTIVE state, the UpdateTable operation is complete.

" + }, + "service": "Amazon DynamoDB

Overview

This is the Amazon DynamoDB API Reference. This guide provides descriptions and samples of the low-level DynamoDB API. For information about DynamoDB application development, see the Amazon DynamoDB Developer Guide.

Instead of making the requests to the low-level DynamoDB API directly from your application, we recommend that you use the AWS Software Development Kits (SDKs). The easy-to-use libraries in the AWS SDKs make it unnecessary to call the low-level DynamoDB API directly from your application. The libraries take care of request authentication, serialization, and connection management. For more information, see Using the AWS SDKs with DynamoDB in the Amazon DynamoDB Developer Guide.

If you decide to code against the low-level DynamoDB API directly, you will need to write the necessary code to authenticate your requests. For more information on signing your requests, see Using the DynamoDB API in the Amazon DynamoDB Developer Guide.

The following are short descriptions of each low-level API action, organized by function.

Managing Tables

  • CreateTable - Creates a table with user-specified provisioned throughput settings. You must designate one attribute as the hash primary key for the table; you can optionally designate a second attribute as the range primary key. DynamoDB creates indexes on these key attributes for fast data access. Optionally, you can create one or more secondary indexes, which provide fast data access using non-key attributes.

  • DescribeTable - Returns metadata for a table, such as table size, status, and index information.

  • UpdateTable - Modifies the provisioned throughput settings for a table. Optionally, you can modify the provisioned throughput settings for global secondary indexes on the table.

  • ListTables - Returns a list of all tables associated with the current AWS account and endpoint.

  • DeleteTable - Deletes a table and all of its indexes.

For conceptual information about managing tables, see Working with Tables in the Amazon DynamoDB Developer Guide.

Reading Data

  • GetItem - Returns a set of attributes for the item that has a given primary key. By default, GetItem performs an eventually consistent read; however, applications can request a strongly consistent read instead.

  • BatchGetItem - Performs multiple GetItem requests for data items using their primary keys, from one table or multiple tables. The response from BatchGetItem has a size limit of 16 MB and returns a maximum of 100 items. Both eventually consistent and strongly consistent reads can be used.

  • Query - Returns one or more items from a table or a secondary index. You must provide a specific hash key value. You can narrow the scope of the query using comparison operators against a range key value, or on the index key. Query supports either eventual or strong consistency. A single response has a size limit of 1 MB.

  • Scan - Reads every item in a table; the result set is eventually consistent. You can limit the number of items returned by filtering the data attributes, using conditional expressions. Scan can be used to enable ad-hoc querying of a table against non-key attributes; however, since this is a full table scan without using an index, Scan should not be used for any application query use case that requires predictable performance.

For conceptual information about reading data, see Working with Items and Query and Scan Operations in the Amazon DynamoDB Developer Guide.

Modifying Data

  • PutItem - Creates a new item, or replaces an existing item with a new item (including all the attributes). By default, if an item in the table already exists with the same primary key, the new item completely replaces the existing item. You can use conditional operators to replace an item only if its attribute values match certain conditions, or to insert a new item only if that item doesn't already exist.

  • UpdateItem - Modifies the attributes of an existing item. You can also use conditional operators to perform an update only if the item's attribute values match certain conditions.

  • DeleteItem - Deletes an item in a table by primary key. You can use conditional operators to perform a delete an item only if the item's attribute values match certain conditions.

  • BatchWriteItem - Performs multiple PutItem and DeleteItem requests across multiple tables in a single request. A failure of any request(s) in the batch will not cause the entire BatchWriteItem operation to fail. Supports batches of up to 25 items to put or delete, with a maximum total request size of 16 MB.

For conceptual information about modifying data, see Working with Items and Query and Scan Operations in the Amazon DynamoDB Developer Guide.

", + "shapes": { + "AttributeAction": { + "base": null, + "refs": { + "AttributeValueUpdate$Action": "

Specifies how to perform the update. Valid values are PUT (default), DELETE, and ADD. The behavior depends on whether the specified primary key already exists in the table.

If an item with the specified Key is found in the table:

  • PUT - Adds the specified attribute to the item. If the attribute already exists, it is replaced by the new value.

  • DELETE - If no value is specified, the attribute and its value are removed from the item. The data type of the specified value must match the existing value's data type.

    If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specified [a,c], then the final attribute value would be [b]. Specifying an empty set is an error.

  • ADD - If the attribute does not already exist, then the attribute and its values are added to the item. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

    • If the existing attribute is a number, and if Value is also a number, then the Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

      If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

      In addition, if you use ADD to update an existing item, and intend to increment or decrement an attribute value which does not yet exist, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update does not yet have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway, even though it currently does not exist. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3.

    • If the existing data type is a set, and if the Value is also a set, then the Value is added to the existing set. (This is a set operation, not mathematical addition.) For example, if the attribute value was the set [1,2], and the ADD action specified [3], then the final attribute value would be [1,2,3]. An error occurs if an Add action is specified for a set attribute and the attribute type specified does not match the existing set type.

      Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings. The same holds true for number sets and binary sets.

    This action is only valid for an existing attribute whose data type is number or is a set. Do not use ADD for any other data types.

If no item with the specified Key is found:

  • PUT - DynamoDB creates a new item with the specified primary key, and then adds the attribute.

  • DELETE - Nothing happens; there is no attribute to delete.

  • ADD - DynamoDB creates an item with the supplied primary key and number (or set of numbers) for the attribute value. The only data types allowed are number and number set; no other data types can be specified.

" + } + }, + "AttributeDefinition": { + "base": "

Represents an attribute for describing the key schema for the table and indexes.

", + "refs": { + "AttributeDefinitions$member": null + } + }, + "AttributeDefinitions": { + "base": null, + "refs": { + "CreateTableInput$AttributeDefinitions": "

An array of attributes that describe the key schema for the table and indexes.

", + "TableDescription$AttributeDefinitions": "

An array of AttributeDefinition objects. Each of these objects describes one attribute in the table and index key schema.

Each AttributeDefinition object in this array is composed of:

  • AttributeName - The name of the attribute.

  • AttributeType - The data type for the attribute.

", + "UpdateTableInput$AttributeDefinitions": "

An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions must include the key element(s) of the new index.

" + } + }, + "AttributeMap": { + "base": null, + "refs": { + "DeleteItemOutput$Attributes": "

A map of attribute names to AttributeValue objects, representing the item as it appeared before the DeleteItem operation. This map appears in the response only if ReturnValues was specified as ALL_OLD in the request.

", + "GetItemOutput$Item": "

A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

", + "ItemList$member": null, + "PutItemOutput$Attributes": "

The attribute values as they appeared before the PutItem operation, but only if ReturnValues is specified as ALL_OLD in the request. Each element consists of an attribute name and an attribute value.

", + "UpdateItemOutput$Attributes": "

A map of attribute values as they appeared before the UpdateItem operation. This map only appears if ReturnValues was specified as something other than NONE in the request. Each element represents one attribute.

" + } + }, + "AttributeName": { + "base": null, + "refs": { + "AttributeMap$key": null, + "AttributeNameList$member": null, + "AttributeUpdates$key": null, + "ExpectedAttributeMap$key": null, + "ExpressionAttributeNameMap$value": null, + "FilterConditionMap$key": null, + "ItemCollectionKeyAttributeMap$key": null, + "Key$key": null, + "KeyConditions$key": null, + "MapAttributeValue$key": null, + "PutItemInputAttributeMap$key": null + } + }, + "AttributeNameList": { + "base": null, + "refs": { + "GetItemInput$AttributesToGet": "

This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

", + "KeysAndAttributes$AttributesToGet": "

One or more attributes to retrieve from the table or index. If no attribute names are specified then all attributes will be returned. If any of the specified attributes are not found, they will not appear in the result.

", + "QueryInput$AttributesToGet": "

This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

You cannot use both AttributesToGet and Select together in a Query request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

If you query a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB will fetch each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.

If you query a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.

", + "ScanInput$AttributesToGet": "

This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

" + } + }, + "AttributeUpdates": { + "base": null, + "refs": { + "UpdateItemInput$AttributeUpdates": "

This is a legacy parameter, for backward compatibility. New applications should use UpdateExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

This parameter can be used for modifying top-level attributes; however, it does not support individual list or map elements.

The names of attributes to be modified, the action to perform on each, and the new value for each. If you are updating an attribute that is an index key attribute for any indexes on that table, the attribute type must match the index key type defined in the AttributesDefinition of the table description. You can use UpdateItem to update any nonkey attributes.

Attribute values cannot be null. String and Binary type attributes must have lengths greater than zero. Set type attributes must not be empty. Requests with empty values will be rejected with a ValidationException exception.

Each AttributeUpdates element consists of an attribute name to modify, along with the following:

  • Value - The new value, if applicable, for this attribute.

  • Action - A value that specifies how to perform the update. This action is only valid for an existing attribute whose data type is Number or is a set; do not use ADD for other data types.

    If an item with the specified primary key is found in the table, the following values perform the following actions:

    • PUT - Adds the specified attribute to the item. If the attribute already exists, it is replaced by the new value.

    • DELETE - Removes the attribute and its value, if no value is specified for DELETE. The data type of the specified value must match the existing value's data type.

      If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specifies [a,c], then the final attribute value is [b]. Specifying an empty set is an error.

    • ADD - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

      • If the existing attribute is a number, and if Value is also a number, then Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

        If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

        Similarly, if you use ADD for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update doesn't have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute, with a value of 3.

      • If the existing data type is a set, and if Value is also a set, then Value is appended to the existing set. For example, if the attribute value is the set [1,2], and the ADD action specified [3], then the final attribute value is [1,2,3]. An error occurs if an ADD action is specified for a set attribute and the attribute type specified does not match the existing set type.

        Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, Value must also be a set of strings.

    If no item with the specified key is found in the table, the following values perform the following actions:

    • PUT - Causes DynamoDB to create a new item with the specified primary key, and then adds the attribute.

    • DELETE - Nothing happens, because attributes cannot be deleted from a nonexistent item. The operation succeeds, but DynamoDB does not create a new item.

    • ADD - Causes DynamoDB to create an item with the supplied primary key and number (or set of numbers) for the attribute value. The only data types allowed are Number and Number Set.

If you provide any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

" + } + }, + "AttributeValue": { + "base": "

Represents the data for an attribute. You can set one, and only one, of the elements.

Each attribute in an item is a name-value pair. An attribute can be single-valued or multi-valued set. For example, a book item can have title and authors attributes. Each book has one title but can have many authors. The multi-valued attribute is a set; duplicate values are not allowed.

", + "refs": { + "AttributeMap$value": null, + "AttributeValueList$member": null, + "AttributeValueUpdate$Value": null, + "ExpectedAttributeValue$Value": null, + "ExpressionAttributeValueMap$value": null, + "ItemCollectionKeyAttributeMap$value": null, + "Key$value": null, + "ListAttributeValue$member": null, + "MapAttributeValue$value": null, + "PutItemInputAttributeMap$value": null + } + }, + "AttributeValueList": { + "base": null, + "refs": { + "Condition$AttributeValueList": "

One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

For type Number, value comparisons are numeric.

String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

", + "ExpectedAttributeValue$AttributeValueList": "

One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

For type Number, value comparisons are numeric.

String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

" + } + }, + "AttributeValueUpdate": { + "base": "

For the UpdateItem operation, represents the attributes to be modified, the action to perform on each, and the new value for each.

You cannot use UpdateItem to update any primary key attributes. Instead, you will need to delete the item, and then use PutItem to create a new item with new attributes.

Attribute values cannot be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests with empty values will be rejected with a ValidationException exception.

", + "refs": { + "AttributeUpdates$value": null + } + }, + "Backfilling": { + "base": null, + "refs": { + "GlobalSecondaryIndexDescription$Backfilling": "

Indicates whether the index is currently backfilling. Backfilling is the process of reading items from the table and determining whether they can be added to the index. (Not all items will qualify: For example, a hash key attribute cannot have any duplicates.) If an item can be added to the index, DynamoDB will do so. After all items have been processed, the backfilling operation is complete and Backfilling is false.

For indexes that were created during a CreateTable operation, the Backfilling attribute does not appear in the DescribeTable output.

" + } + }, + "BatchGetItemInput": { + "base": "

Represents the input of a BatchGetItem operation.

", + "refs": { + } + }, + "BatchGetItemOutput": { + "base": "

Represents the output of a BatchGetItem operation.

", + "refs": { + } + }, + "BatchGetRequestMap": { + "base": null, + "refs": { + "BatchGetItemInput$RequestItems": "

A map of one or more table names and, for each table, a map that describes one or more items to retrieve from that table. Each table name can be used only once per BatchGetItem request.

Each element in the map of items to retrieve consists of the following:

  • ConsistentRead - If true, a strongly consistent read is used; if false (the default), an eventually consistent read is used.

  • ExpressionAttributeNames - One or more substitution tokens for attribute names in the ProjectionExpression parameter. The following are some use cases for using ExpressionAttributeNames:

    • To access an attribute whose name conflicts with a DynamoDB reserved word.

    • To create a placeholder for repeating occurrences of an attribute name in an expression.

    • To prevent special characters in an attribute name from being misinterpreted in an expression.

    Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

    • Percentile

    The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

    • {\"#P\":\"Percentile\"}

    You could then use this substitution in an expression, as in this example:

    • #P = :val

    Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

    For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

  • Keys - An array of primary key attribute values that define specific items in the table. For each primary key, you must provide all of the key attributes. For example, with a hash type primary key, you only need to provide the hash attribute. For a hash-and-range type primary key, you must provide both the hash attribute and the range attribute.

  • ProjectionExpression - A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

    If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

  • AttributesToGet -

    This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

    The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

", + "BatchGetItemOutput$UnprocessedKeys": "

A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.

Each element consists of:

  • Keys - An array of primary key attribute values that define specific items in the table.

  • AttributesToGet - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.

  • ConsistentRead - The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.

If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.

" + } + }, + "BatchGetResponseMap": { + "base": null, + "refs": { + "BatchGetItemOutput$Responses": "

A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.

" + } + }, + "BatchWriteItemInput": { + "base": "

Represents the input of a BatchWriteItem operation.

", + "refs": { + } + }, + "BatchWriteItemOutput": { + "base": "

Represents the output of a BatchWriteItem operation.

", + "refs": { + } + }, + "BatchWriteItemRequestMap": { + "base": null, + "refs": { + "BatchWriteItemInput$RequestItems": "

A map of one or more table names and, for each table, a list of operations to be performed (DeleteRequest or PutRequest). Each element in the map consists of the following:

  • DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement:

    • Key - A map of primary key attribute values that uniquely identify the ! item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a hash type primary key, you only need to provide the hash attribute. For a hash-and-range type primary key, you must provide both the hash attribute and the range attribute.

  • PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement:

    • Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception.

      If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

", + "BatchWriteItemOutput$UnprocessedItems": "

A map of tables and requests against those tables that were not processed. The UnprocessedItems value is in the same form as RequestItems, so you can provide this value directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.

Each UnprocessedItems entry consists of a table name and, for that table, a list of operations to perform (DeleteRequest or PutRequest).

  • DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement:

    • Key - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value.

  • PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement:

    • Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception.

      If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

If there are no unprocessed items remaining, the response contains an empty UnprocessedItems map.

" + } + }, + "BinaryAttributeValue": { + "base": null, + "refs": { + "AttributeValue$B": "

A Binary data type.

", + "BinarySetAttributeValue$member": null + } + }, + "BinarySetAttributeValue": { + "base": null, + "refs": { + "AttributeValue$BS": "

A Binary Set data type.

" + } + }, + "BooleanAttributeValue": { + "base": null, + "refs": { + "AttributeValue$BOOL": "

A Boolean data type.

" + } + }, + "BooleanObject": { + "base": null, + "refs": { + "ExpectedAttributeValue$Exists": "

Causes DynamoDB to evaluate the value before attempting a conditional operation:

  • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the operation succeeds. If it is not found, the operation fails with a ConditionalCheckFailedException.

  • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the operation succeeds. If the value is found, despite the assumption that it does not exist, the operation fails with a ConditionalCheckFailedException.

The default setting for Exists is true. If you supply a Value all by itself, DynamoDB assumes the attribute exists: You don't have to set Exists to true, because it is implied.

DynamoDB returns a ValidationException if:

  • Exists is true but there is no Value to check. (You expect a value to exist, but don't specify what that value is.)

  • Exists is false but you also provide a Value. (You cannot expect an attribute to have a value, while also expecting it not to exist.)

", + "QueryInput$ScanIndexForward": "

Specifies the order in which to return the query results - either ascending (true) or descending (false).

Items with the same hash key are stored in sorted order by range key .If the range key data type is Number, the results are stored in numeric order. For type String, the results are returned in order of ASCII character code values. For type Binary, DynamoDB treats each byte of the binary data as unsigned.

If ScanIndexForward is true, DynamoDB returns the results in order, by range key. This is the default behavior.

If ScanIndexForward is false, DynamoDB sorts the results in descending order by range key, and then returns the results to the client.

" + } + }, + "Capacity": { + "base": "

Represents the amount of provisioned throughput capacity consumed on a table or an index.

", + "refs": { + "ConsumedCapacity$Table": "

The amount of throughput consumed on the table affected by the operation.

", + "SecondaryIndexesCapacityMap$value": null + } + }, + "ComparisonOperator": { + "base": null, + "refs": { + "Condition$ComparisonOperator": "

A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

The following comparison operators are available:

EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

The following are descriptions of each comparison operator.

  • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

    AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NE : Not equal. NE is supported for all datatypes, including lists and maps.

    AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LE : Less than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LT : Less than.

    AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GE : Greater than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GT : Greater than.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

    This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

  • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

    This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

  • CONTAINS : Checks for a subsequence, or value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

    CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

    NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • BEGINS_WITH : Checks for a prefix.

    AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

  • IN : Checks for matching elements within two sets.

    AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

  • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

    AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

", + "ExpectedAttributeValue$ComparisonOperator": "

A comparator for evaluating attributes in the AttributeValueList. For example, equals, greater than, less than, etc.

The following comparison operators are available:

EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

The following are descriptions of each comparison operator.

  • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

    AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NE : Not equal. NE is supported for all datatypes, including lists and maps.

    AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LE : Less than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • LT : Less than.

    AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GE : Greater than or equal.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • GT : Greater than.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

  • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

    This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

  • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

    This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

  • CONTAINS : Checks for a subsequence, or value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

    CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

    AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

    NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

  • BEGINS_WITH : Checks for a prefix.

    AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

  • IN : Checks for matching elements within two sets.

    AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

  • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

    AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

" + } + }, + "Condition": { + "base": "

Represents the selection criteria for a Query or Scan operation:

  • For a Query operation, Condition is used for specifying the KeyConditions to use when querying a table or an index. For KeyConditions, only the following comparison operators are supported:

    EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN

    Condition is also used in a QueryFilter, which evaluates the query results and returns only the desired values.

  • For a Scan operation, Condition is used in a ScanFilter, which evaluates the scan results and returns only the desired values.

", + "refs": { + "FilterConditionMap$value": null, + "KeyConditions$value": null + } + }, + "ConditionExpression": { + "base": null, + "refs": { + "DeleteItemInput$ConditionExpression": "

A condition that must be satisfied in order for a conditional DeleteItem to succeed.

An expression can contain any of the following:

  • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

    These function names are case-sensitive.

  • Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN

  • Logical operators: AND | OR | NOT

For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

ConditionExpression replaces the legacy ConditionalOperator and Expected parameters.

", + "PutItemInput$ConditionExpression": "

A condition that must be satisfied in order for a conditional PutItem operation to succeed.

An expression can contain any of the following:

  • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

    These function names are case-sensitive.

  • Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN

  • Logical operators: AND | OR | NOT

For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

ConditionExpression replaces the legacy ConditionalOperator and Expected parameters.

", + "QueryInput$FilterExpression": "

A string that contains conditions that DynamoDB applies after the Query operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.

A FilterExpression is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

For more information, see Filter Expressions in the Amazon DynamoDB Developer Guide.

FilterExpression replaces the legacy QueryFilter and ConditionalOperator parameters.

", + "ScanInput$FilterExpression": "

A string that contains conditions that DynamoDB applies after the Scan operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.

A FilterExpression is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

For more information, see Filter Expressions in the Amazon DynamoDB Developer Guide.

FilterExpression replaces the legacy ScanFilter and ConditionalOperator parameters.

", + "UpdateItemInput$ConditionExpression": "

A condition that must be satisfied in order for a conditional update to succeed.

An expression can contain any of the following:

  • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

    These function names are case-sensitive.

  • Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN

  • Logical operators: AND | OR | NOT

For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

ConditionExpression replaces the legacy ConditionalOperator and Expected parameters.

" + } + }, + "ConditionalCheckFailedException": { + "base": "

A condition specified in the operation could not be evaluated.

", + "refs": { + } + }, + "ConditionalOperator": { + "base": null, + "refs": { + "DeleteItemInput$ConditionalOperator": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A logical operator to apply to the conditions in the Expected map:

  • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

  • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

If you omit ConditionalOperator, then AND is the default.

The operation will succeed only if the entire map evaluates to true.

This parameter does not support attributes of type List or Map.

", + "PutItemInput$ConditionalOperator": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A logical operator to apply to the conditions in the Expected map:

  • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

  • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

If you omit ConditionalOperator, then AND is the default.

The operation will succeed only if the entire map evaluates to true.

This parameter does not support attributes of type List or Map.

", + "QueryInput$ConditionalOperator": "

This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A logical operator to apply to the conditions in a QueryFilter map:

  • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

  • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

If you omit ConditionalOperator, then AND is the default.

The operation will succeed only if the entire map evaluates to true.

This parameter does not support attributes of type List or Map.

", + "ScanInput$ConditionalOperator": "

This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A logical operator to apply to the conditions in a ScanFilter map:

  • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

  • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

If you omit ConditionalOperator, then AND is the default.

The operation will succeed only if the entire map evaluates to true.

This parameter does not support attributes of type List or Map.

", + "UpdateItemInput$ConditionalOperator": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A logical operator to apply to the conditions in the Expected map:

  • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

  • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

If you omit ConditionalOperator, then AND is the default.

The operation will succeed only if the entire map evaluates to true.

This parameter does not support attributes of type List or Map.

" + } + }, + "ConsistentRead": { + "base": null, + "refs": { + "GetItemInput$ConsistentRead": "

Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

", + "KeysAndAttributes$ConsistentRead": "

The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.

", + "QueryInput$ConsistentRead": "

Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

Strongly consistent reads are not supported on global secondary indexes. If you query a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

", + "ScanInput$ConsistentRead": "

A Boolean value that determines the read consistency model during the scan:

  • If ConsistentRead is false, then Scan will use eventually consistent reads. The data returned from Scan might not contain the results of other recently completed write operations (PutItem, UpdateItem or DeleteItem). The Scan response might include some stale data.

  • If ConsistentRead is true, then Scan will use strongly consistent reads. All of the write operations that completed before the Scan began are guaranteed to be contained in the Scan response.

The default setting for ConsistentRead is false, meaning that eventually consistent reads will be used.

Strongly consistent reads are not supported on global secondary indexes. If you scan a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

" + } + }, + "ConsumedCapacity": { + "base": "

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 if the request asked for it. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

", + "refs": { + "ConsumedCapacityMultiple$member": null, + "DeleteItemOutput$ConsumedCapacity": null, + "GetItemOutput$ConsumedCapacity": null, + "PutItemOutput$ConsumedCapacity": null, + "QueryOutput$ConsumedCapacity": null, + "ScanOutput$ConsumedCapacity": null, + "UpdateItemOutput$ConsumedCapacity": null + } + }, + "ConsumedCapacityMultiple": { + "base": null, + "refs": { + "BatchGetItemOutput$ConsumedCapacity": "

The read capacity units consumed by the operation.

Each element consists of:

  • TableName - The table that consumed the provisioned throughput.

  • CapacityUnits - The total number of capacity units consumed.

", + "BatchWriteItemOutput$ConsumedCapacity": "

The capacity units consumed by the operation.

Each element consists of:

  • TableName - The table that consumed the provisioned throughput.

  • CapacityUnits - The total number of capacity units consumed.

" + } + }, + "ConsumedCapacityUnits": { + "base": null, + "refs": { + "Capacity$CapacityUnits": "

The total number of capacity units consumed on a table or an index.

", + "ConsumedCapacity$CapacityUnits": "

The total number of capacity units consumed by the operation.

" + } + }, + "CreateGlobalSecondaryIndexAction": { + "base": "

Represents a new global secondary index to be added to an existing table.

", + "refs": { + "GlobalSecondaryIndexUpdate$Create": "

The parameters required for creating a global secondary index on an existing table:

  • IndexName

  • KeySchema

  • AttributeDefinitions

  • Projection

  • ProvisionedThroughput

" + } + }, + "CreateTableInput": { + "base": "

Represents the input of a CreateTable operation.

", + "refs": { + } + }, + "CreateTableOutput": { + "base": "

Represents the output of a CreateTable operation.

", + "refs": { + } + }, + "Date": { + "base": null, + "refs": { + "ProvisionedThroughputDescription$LastIncreaseDateTime": "

The date and time of the last provisioned throughput increase for this table.

", + "ProvisionedThroughputDescription$LastDecreaseDateTime": "

The date and time of the last provisioned throughput decrease for this table.

", + "TableDescription$CreationDateTime": "

The date and time when the table was created, in UNIX epoch time format.

" + } + }, + "DeleteGlobalSecondaryIndexAction": { + "base": "

Represents a global secondary index to be deleted from an existing table.

", + "refs": { + "GlobalSecondaryIndexUpdate$Delete": "

The name of an existing global secondary index to be removed.

" + } + }, + "DeleteItemInput": { + "base": "

Represents the input of a DeleteItem operation.

", + "refs": { + } + }, + "DeleteItemOutput": { + "base": "

Represents the output of a DeleteItem operation.

", + "refs": { + } + }, + "DeleteRequest": { + "base": "

Represents a request to perform a DeleteItem operation on an item.

", + "refs": { + "WriteRequest$DeleteRequest": "

A request to perform a DeleteItem operation.

" + } + }, + "DeleteTableInput": { + "base": "

Represents the input of a DeleteTable operation.

", + "refs": { + } + }, + "DeleteTableOutput": { + "base": "

Represents the output of a DeleteTable operation.

", + "refs": { + } + }, + "DescribeTableInput": { + "base": "

Represents the input of a DescribeTable operation.

", + "refs": { + } + }, + "DescribeTableOutput": { + "base": "

Represents the output of a DescribeTable operation.

", + "refs": { + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "ConditionalCheckFailedException$message": "

The conditional request failed.

", + "InternalServerError$message": "

The server encountered an internal error trying to fulfill the request.

", + "ItemCollectionSizeLimitExceededException$message": "

The total size of an item collection has exceeded the maximum limit of 10 gigabytes.

", + "LimitExceededException$message": "

Too many operations for a given subscriber.

", + "ProvisionedThroughputExceededException$message": "

You exceeded your maximum allowed provisioned throughput.

", + "ResourceInUseException$message": "

The resource which is being attempted to be changed is in use.

", + "ResourceNotFoundException$message": "

The resource which is being requested does not exist.

" + } + }, + "ExpectedAttributeMap": { + "base": null, + "refs": { + "DeleteItemInput$Expected": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A map of attribute/condition pairs. Expected provides a conditional block for the DeleteItem operation.

Each element of Expected consists of an attribute name, a comparison operator, and one or more values. DynamoDB compares the attribute with the value(s) you supplied, using the comparison operator. For each Expected element, the result of the evaluation is either true or false.

If you specify more than one element in the Expected map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

If the Expected map evaluates to true, then the conditional operation succeeds; otherwise, it fails.

Expected contains the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

  • ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. When performing the comparison, DynamoDB uses strongly consistent reads.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    The following are descriptions of each comparison operator.

    • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NE : Not equal. NE is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LE : Less than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LT : Less than.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GE : Greater than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GT : Greater than.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

      This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

    • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

      This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

    • CONTAINS : Checks for a subsequence, or value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

      CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

      NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • BEGINS_WITH : Checks for a prefix.

      AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

    • IN : Checks for matching elements within two sets.

      AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

    • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

      AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

For backward compatibility with previous DynamoDB releases, the following parameters can be used instead of AttributeValueList and ComparisonOperator:

  • Value - A value for DynamoDB to compare with an attribute.

  • Exists - A Boolean value that causes DynamoDB to evaluate the value before attempting the conditional operation:

    • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the condition evaluates to true; otherwise the condition evaluate to false.

    • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the condition evaluates to true. If the value is found, despite the assumption that it does not exist, the condition evaluates to false.

    Note that the default value for Exists is true.

The Value and Exists parameters are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

This parameter does not support attributes of type List or Map.

", + "PutItemInput$Expected": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A map of attribute/condition pairs. Expected provides a conditional block for the PutItem operation.

This parameter does not support attributes of type List or Map.

Each element of Expected consists of an attribute name, a comparison operator, and one or more values. DynamoDB compares the attribute with the value(s) you supplied, using the comparison operator. For each Expected element, the result of the evaluation is either true or false.

If you specify more than one element in the Expected map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

If the Expected map evaluates to true, then the conditional operation succeeds; otherwise, it fails.

Expected contains the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

  • ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. When performing the comparison, DynamoDB uses strongly consistent reads.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    The following are descriptions of each comparison operator.

    • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NE : Not equal. NE is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LE : Less than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LT : Less than.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GE : Greater than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GT : Greater than.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

      This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

    • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

      This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

    • CONTAINS : Checks for a subsequence, or value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

      CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

      NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • BEGINS_WITH : Checks for a prefix.

      AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

    • IN : Checks for matching elements within two sets.

      AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

    • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

      AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

For backward compatibility with previous DynamoDB releases, the following parameters can be used instead of AttributeValueList and ComparisonOperator:

  • Value - A value for DynamoDB to compare with an attribute.

  • Exists - A Boolean value that causes DynamoDB to evaluate the value before attempting the conditional operation:

    • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the condition evaluates to true; otherwise the condition evaluate to false.

    • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the condition evaluates to true. If the value is found, despite the assumption that it does not exist, the condition evaluates to false.

    Note that the default value for Exists is true.

The Value and Exists parameters are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

", + "UpdateItemInput$Expected": "

This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A map of attribute/condition pairs. Expected provides a conditional block for the UpdateItem operation.

Each element of Expected consists of an attribute name, a comparison operator, and one or more values. DynamoDB compares the attribute with the value(s) you supplied, using the comparison operator. For each Expected element, the result of the evaluation is either true or false.

If you specify more than one element in the Expected map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

If the Expected map evaluates to true, then the conditional operation succeeds; otherwise, it fails.

Expected contains the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

  • ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. When performing the comparison, DynamoDB uses strongly consistent reads.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    The following are descriptions of each comparison operator.

    • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NE : Not equal. NE is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LE : Less than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LT : Less than.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GE : Greater than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GT : Greater than.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

      This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

    • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

      This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

    • CONTAINS : Checks for a subsequence, or value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

      CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

      NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • BEGINS_WITH : Checks for a prefix.

      AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

    • IN : Checks for matching elements within two sets.

      AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

    • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

      AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

For backward compatibility with previous DynamoDB releases, the following parameters can be used instead of AttributeValueList and ComparisonOperator:

  • Value - A value for DynamoDB to compare with an attribute.

  • Exists - A Boolean value that causes DynamoDB to evaluate the value before attempting the conditional operation:

    • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the condition evaluates to true; otherwise the condition evaluate to false.

    • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the condition evaluates to true. If the value is found, despite the assumption that it does not exist, the condition evaluates to false.

    Note that the default value for Exists is true.

The Value and Exists parameters are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

This parameter does not support attributes of type List or Map.

" + } + }, + "ExpectedAttributeValue": { + "base": "

Represents a condition to be compared with an attribute value. This condition can be used with DeleteItem, PutItem or UpdateItem operations; if the comparison evaluates to true, the operation succeeds; if not, the operation fails. You can use ExpectedAttributeValue in one of two different ways:

  • Use AttributeValueList to specify one or more values to compare against an attribute. Use ComparisonOperator to specify how you want to perform the comparison. If the comparison evaluates to true, then the conditional operation succeeds.

  • Use Value to specify a value that DynamoDB will compare against an attribute. If the values match, then ExpectedAttributeValue evaluates to true and the conditional operation succeeds. Optionally, you can also set Exists to false, indicating that you do not expect to find the attribute value in the table. In this case, the conditional operation succeeds only if the comparison evaluates to false.

Value and Exists are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

", + "refs": { + "ExpectedAttributeMap$value": null + } + }, + "ExpressionAttributeNameMap": { + "base": null, + "refs": { + "DeleteItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "GetItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "KeysAndAttributes$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "PutItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "QueryInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "ScanInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

", + "UpdateItemInput$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

  • To access an attribute whose name conflicts with a DynamoDB reserved word.

  • To create a placeholder for repeating occurrences of an attribute name in an expression.

  • To prevent special characters in an attribute name from being misinterpreted in an expression.

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

  • Percentile

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

  • {\"#P\":\"Percentile\"}

You could then use this substitution in an expression, as in this example:

  • #P = :val

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

" + } + }, + "ExpressionAttributeNameVariable": { + "base": null, + "refs": { + "ExpressionAttributeNameMap$key": null + } + }, + "ExpressionAttributeValueMap": { + "base": null, + "refs": { + "DeleteItemInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", + "PutItemInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", + "QueryInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", + "ScanInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

", + "UpdateItemInput$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

Available | Backordered | Discontinued

You would first need to specify ExpressionAttributeValues as follows:

{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

You could then use these values in an expression, such as this:

ProductStatus IN (:avail, :back, :disc)

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

" + } + }, + "ExpressionAttributeValueVariable": { + "base": null, + "refs": { + "ExpressionAttributeValueMap$key": null + } + }, + "FilterConditionMap": { + "base": null, + "refs": { + "QueryInput$QueryFilter": "

This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A condition that evaluates the query results after the items are read and returns only the desired values.

This parameter does not support attributes of type List or Map.

A QueryFilter is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

If you provide more than one condition in the QueryFilter map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

Note that QueryFilter does not allow key attributes. You cannot define a filter condition on a hash key or range key.

Each QueryFilter element consists of an attribute name to compare, along with the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the operator specified in ComparisonOperator.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

  • ComparisonOperator - A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    For complete descriptions of all comparison operators, see the Condition data type.

", + "ScanInput$ScanFilter": "

This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

A condition that evaluates the scan results and returns only the desired values.

This parameter does not support attributes of type List or Map.

If you specify more than one condition in the ScanFilter map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

Each ScanFilter element consists of an attribute name to compare, along with the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the operator specified in ComparisonOperator .

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

  • ComparisonOperator - A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    For complete descriptions of all comparison operators, see Condition.

" + } + }, + "GetItemInput": { + "base": "

Represents the input of a GetItem operation.

", + "refs": { + } + }, + "GetItemOutput": { + "base": "

Represents the output of a GetItem operation.

", + "refs": { + } + }, + "GlobalSecondaryIndex": { + "base": "

Represents the properties of a global secondary index.

", + "refs": { + "GlobalSecondaryIndexList$member": null + } + }, + "GlobalSecondaryIndexDescription": { + "base": "

Represents the properties of a global secondary index.

", + "refs": { + "GlobalSecondaryIndexDescriptionList$member": null + } + }, + "GlobalSecondaryIndexDescriptionList": { + "base": null, + "refs": { + "TableDescription$GlobalSecondaryIndexes": "

The global secondary indexes, if any, on the table. Each index is scoped to a given hash key value. Each element is composed of:

  • Backfilling - If true, then the index is currently in the backfilling phase. Backfilling occurs only when a new global secondary index is added to the table; it is the process by which DynamoDB populates the new index with data from the table. (This attribute does not appear for indexes that were created during a CreateTable operation.)

  • IndexName - The name of the global secondary index.

  • IndexSizeBytes - The total size of the global secondary index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • IndexStatus - The current status of the global secondary index:

    • CREATING - The index is being created.

    • UPDATING - The index is being updated.

    • DELETING - The index is being deleted.

    • ACTIVE - The index is ready for use.

  • ItemCount - The number of items in the global secondary index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • KeySchema - Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same hash key attribute as the table.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

  • ProvisionedThroughput - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units, along with data about increases and decreases.

If the table is in the DELETING state, no information about indexes will be returned.

" + } + }, + "GlobalSecondaryIndexList": { + "base": null, + "refs": { + "CreateTableInput$GlobalSecondaryIndexes": "

One or more global secondary indexes (the maximum is five) to be created on the table. Each global secondary index in the array includes the following:

  • IndexName - The name of the global secondary index. Must be unique only for this table.

  • KeySchema - Specifies the key schema for the global secondary index.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

  • ProvisionedThroughput - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units.

" + } + }, + "GlobalSecondaryIndexUpdate": { + "base": "

Represents one of the following:

  • A new global secondary index to be added to an existing table.

  • New provisioned throughput parameters for an existing global secondary index.

  • An existing global secondary index to be removed from an existing table.

", + "refs": { + "GlobalSecondaryIndexUpdateList$member": null + } + }, + "GlobalSecondaryIndexUpdateList": { + "base": null, + "refs": { + "UpdateTableInput$GlobalSecondaryIndexUpdates": "

An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:

  • Create - add a new global secondary index to the table.

  • Update - modify the provisioned throughput settings of an existing global secondary index.

  • Delete - remove a global secondary index from the table.

For more information, see Managing Global Secondary Indexes in the Amazon DynamoDB Developer Guide.

" + } + }, + "IndexName": { + "base": null, + "refs": { + "CreateGlobalSecondaryIndexAction$IndexName": "

The name of the global secondary index to be created.

", + "DeleteGlobalSecondaryIndexAction$IndexName": "

The name of the global secondary index to be deleted.

", + "GlobalSecondaryIndex$IndexName": "

The name of the global secondary index. The name must be unique among all other indexes on this table.

", + "GlobalSecondaryIndexDescription$IndexName": "

The name of the global secondary index.

", + "LocalSecondaryIndex$IndexName": "

The name of the local secondary index. The name must be unique among all other indexes on this table.

", + "LocalSecondaryIndexDescription$IndexName": "

Represents the name of the local secondary index.

", + "QueryInput$IndexName": "

The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the IndexName parameter, you must also provide TableName.

", + "ScanInput$IndexName": "

The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the IndexName parameter, you must also provide TableName.

", + "SecondaryIndexesCapacityMap$key": null, + "UpdateGlobalSecondaryIndexAction$IndexName": "

The name of the global secondary index to be updated.

" + } + }, + "IndexStatus": { + "base": null, + "refs": { + "GlobalSecondaryIndexDescription$IndexStatus": "

The current state of the global secondary index:

  • CREATING - The index is being created.

  • UPDATING - The index is being updated.

  • DELETING - The index is being deleted.

  • ACTIVE - The index is ready for use.

" + } + }, + "Integer": { + "base": null, + "refs": { + "QueryOutput$Count": "

The number of items in the response.

If you used a QueryFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before> the filter was applied.

If you did not use a filter in the request, then Count and ScannedCount are the same.

", + "QueryOutput$ScannedCount": "

The number of items evaluated, before any QueryFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Query operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.

If you did not use a filter in the request, then ScannedCount is the same as Count.

", + "ScanOutput$Count": "

The number of items in the response.

If you set ScanFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied.

If you did not use a filter in the request, then Count is the same as ScannedCount.

", + "ScanOutput$ScannedCount": "

The number of items evaluated, before any ScanFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Scan operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.

If you did not use a filter in the request, then ScannedCount is the same as Count.

" + } + }, + "InternalServerError": { + "base": "

An error occurred on the server side.

", + "refs": { + } + }, + "ItemCollectionKeyAttributeMap": { + "base": null, + "refs": { + "ItemCollectionMetrics$ItemCollectionKey": "

The hash key value of the item collection. This value is the same as the hash key of the item.

" + } + }, + "ItemCollectionMetrics": { + "base": "

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.

", + "refs": { + "DeleteItemOutput$ItemCollectionMetrics": "

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.

Each ItemCollectionMetrics element consists of:

  • ItemCollectionKey - The hash key value of the item collection. This is the same as the hash key of the item.

  • SizeEstimateRange - 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.

", + "ItemCollectionMetricsMultiple$member": null, + "PutItemOutput$ItemCollectionMetrics": "

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.

Each ItemCollectionMetrics element consists of:

  • ItemCollectionKey - The hash key value of the item collection. This is the same as the hash key of the item.

  • SizeEstimateRange - 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.

", + "UpdateItemOutput$ItemCollectionMetrics": null + } + }, + "ItemCollectionMetricsMultiple": { + "base": null, + "refs": { + "ItemCollectionMetricsPerTable$value": null + } + }, + "ItemCollectionMetricsPerTable": { + "base": null, + "refs": { + "BatchWriteItemOutput$ItemCollectionMetrics": "

A list of tables that were processed by BatchWriteItem and, for each table, information about any item collections that were affected by individual DeleteItem or PutItem operations.

Each entry consists of the following subelements:

  • ItemCollectionKey - The hash key value of the item collection. This is the same as the hash key of the item.

  • SizeEstimateRange - An estimate of item collection size, expressed in GB. This 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 the 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.

" + } + }, + "ItemCollectionSizeEstimateBound": { + "base": null, + "refs": { + "ItemCollectionSizeEstimateRange$member": null + } + }, + "ItemCollectionSizeEstimateRange": { + "base": null, + "refs": { + "ItemCollectionMetrics$SizeEstimateRangeGB": "

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.

" + } + }, + "ItemCollectionSizeLimitExceededException": { + "base": "

An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.

", + "refs": { + } + }, + "ItemList": { + "base": null, + "refs": { + "BatchGetResponseMap$value": null, + "QueryOutput$Items": "

An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.

", + "ScanOutput$Items": "

An array of item attributes that match the scan criteria. Each element in this array consists of an attribute name and the value for that attribute.

" + } + }, + "Key": { + "base": null, + "refs": { + "DeleteItemInput$Key": "

A map of attribute names to AttributeValue objects, representing the primary key of the item to delete.

For the primary key, you must provide all of the attributes. For example, with a hash type primary key, you only need to provide the hash attribute. For a hash-and-range type primary key, you must provide both the hash attribute and the range attribute.

", + "DeleteRequest$Key": "

A map of attribute name to attribute values, representing the primary key of the item to delete. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema.

", + "GetItemInput$Key": "

A map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve.

For the primary key, you must provide all of the attributes. For example, with a hash type primary key, you only need to provide the hash attribute. For a hash-and-range type primary key, you must provide both the hash attribute and the range attribute.

", + "KeyList$member": null, + "QueryInput$ExclusiveStartKey": "

The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

", + "QueryOutput$LastEvaluatedKey": "

The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

If LastEvaluatedKey is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved.

If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

", + "ScanInput$ExclusiveStartKey": "

The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

In a parallel scan, a Scan request that includes ExclusiveStartKey must specify the same segment whose previous Scan returned the corresponding value of LastEvaluatedKey.

", + "ScanOutput$LastEvaluatedKey": "

The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

If LastEvaluatedKey is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved.

If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

", + "UpdateItemInput$Key": "

The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.

For the primary key, you must provide all of the attributes. For example, with a hash type primary key, you only need to provide the hash attribute. For a hash-and-range type primary key, you must provide both the hash attribute and the range attribute.

" + } + }, + "KeyConditions": { + "base": null, + "refs": { + "QueryInput$KeyConditions": "

This is a legacy parameter, for backward compatibility. New applications should use KeyConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

The selection criteria for the query. For a query on a table, you can have conditions only on the table primary key attributes. You must provide the hash key attribute name and value as an EQ condition. You can optionally provide a second condition, referring to the range key attribute.

If you don't provide a range key condition, all of the items that match the hash key will be retrieved. If a FilterExpression or QueryFilter is present, it will be applied after the items are retrieved.

For a query on an index, you can have conditions only on the index key attributes. You must provide the index hash attribute name and value as an EQ condition. You can optionally provide a second condition, referring to the index key range attribute.

Each KeyConditions element consists of an attribute name to compare, along with the following:

  • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

  • ComparisonOperator - A comparator for evaluating attributes, for example, equals, greater than, less than, and so on.

    For KeyConditions, only the following comparison operators are supported:

    EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN

    The following are descriptions of these comparison operators.

    • EQ : Equal.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one specified in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LE : Less than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LT : Less than.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GE : Greater than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GT : Greater than.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • BEGINS_WITH : Checks for a prefix.

      AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

    • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

      AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

" + } + }, + "KeyExpression": { + "base": null, + "refs": { + "QueryInput$KeyConditionExpression": "

The condition that specifies the key value(s) for items to be retrieved by the Query action.

The condition must perform an equality test on a single hash key value. The condition can also perform one of several comparison tests on a single range key value. Query can use KeyConditionExpression to retrieve one item with a given hash and range key value, or several items that have the same hash key value but different range key values.

The hash key equality test is required, and must be specified in the following format:

hashAttributeName = :hashval

If you also want to provide a range key condition, it must be combined using AND with the hash key condition. Following is an example, using the = comparison operator for the range key:

hashAttributeName = :hashval AND rangeAttributeName = :rangeval

Valid comparisons for the range key condition are as follows:

  • rangeAttributeName = :rangeval - true if the range key is equal to :rangeval.

  • rangeAttributeName < :rangeval - true if the range key is less than :rangeval.

  • rangeAttributeName <= :rangeval - true if the range key is less than or equal to :rangeval.

  • rangeAttributeName > :rangeval - true if the range key is greater than :rangeval.

  • rangeAttributeName >= :rangeval - true if the range key is greater than or equal to :rangeval.

  • rangeAttributeName BETWEEN :rangeval1 AND :rangeval2 - true if the range key is greater than or equal to :rangeval1, and less than or equal to :rangeval2.

  • begins_with (rangeAttributeName, :rangeval) - true if the range key begins with a particular operand. (You cannot use this function with a range key that is of type Number.) Note that the function name begins_with is case-sensitive.

Use the ExpressionAttributeValues parameter to replace tokens such as :hashval and :rangeval with actual values at runtime.

You can optionally use the ExpressionAttributeNames parameter to replace the names of the hash and range attributes with placeholder tokens. This option might be necessary if an attribute name conflicts with a DynamoDB reserved word. For example, the following KeyConditionExpression parameter causes an error because Size is a reserved word:

  • Size = :myval

To work around this, define a placeholder (such a #S) to represent the attribute name Size. KeyConditionExpression then is as follows:

  • #S = :myval

For a list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide.

For more information on ExpressionAttributeNames and ExpressionAttributeValues, see Using Placeholders for Attribute Names and Values in the Amazon DynamoDB Developer Guide.

KeyConditionExpression replaces the legacy KeyConditions parameter.

" + } + }, + "KeyList": { + "base": null, + "refs": { + "KeysAndAttributes$Keys": "

The primary key attribute values that define the items and the attributes associated with the items.

" + } + }, + "KeySchema": { + "base": null, + "refs": { + "CreateGlobalSecondaryIndexAction$KeySchema": "

The key schema for the global secondary index.

", + "CreateTableInput$KeySchema": "

Specifies the attributes that make up the primary key for a table or an index. The attributes in KeySchema must also be defined in the AttributeDefinitions array. For more information, see Data Model in the Amazon DynamoDB Developer Guide.

Each KeySchemaElement in the array is composed of:

  • AttributeName - The name of this key attribute.

  • KeyType - Determines whether the key attribute is HASH or RANGE.

For a primary key that consists of a hash attribute, you must provide exactly one element with a KeyType of HASH.

For a primary key that consists of hash and range attributes, you must provide exactly two elements, in this order: The first element must have a KeyType of HASH, and the second element must have a KeyType of RANGE.

For more information, see Specifying the Primary Key in the Amazon DynamoDB Developer Guide.

", + "GlobalSecondaryIndex$KeySchema": "

The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types (HASH or RANGE).

", + "GlobalSecondaryIndexDescription$KeySchema": "

The complete key schema for the global secondary index, consisting of one or more pairs of attribute names and key types (HASH or RANGE).

", + "LocalSecondaryIndex$KeySchema": "

The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types (HASH or RANGE).

", + "LocalSecondaryIndexDescription$KeySchema": "

The complete index key schema, which consists of one or more pairs of attribute names and key types (HASH or RANGE).

", + "TableDescription$KeySchema": "

The primary key structure for the table. Each KeySchemaElement consists of:

  • AttributeName - The name of the attribute.

  • KeyType - The key type for the attribute. Can be either HASH or RANGE.

For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.

" + } + }, + "KeySchemaAttributeName": { + "base": null, + "refs": { + "AttributeDefinition$AttributeName": "

A name for the attribute.

", + "KeySchemaElement$AttributeName": "

The name of a key attribute.

" + } + }, + "KeySchemaElement": { + "base": "

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 hash type primary key would be represented by one KeySchemaElement. A hash-and-range type primary key would require one KeySchemaElement for the hash attribute, and another KeySchemaElement for the range attribute.

", + "refs": { + "KeySchema$member": null + } + }, + "KeyType": { + "base": null, + "refs": { + "KeySchemaElement$KeyType": "

The attribute data, consisting of the data type and the attribute value itself.

" + } + }, + "KeysAndAttributes": { + "base": "

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 hash type primary key, you only need to provide the hash attribute. For a hash-and-range type primary key, you must provide both the hash attribute and the range attribute.

", + "refs": { + "BatchGetRequestMap$value": null + } + }, + "LimitExceededException": { + "base": "

The number of concurrent table requests (cumulative number of tables in the CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10.

Also, for tables with secondary indexes, only one of those tables can be in the CREATING state at any point in time. Do not attempt to create more than one such table simultaneously.

The total limit of tables in the ACTIVE state is 250.

", + "refs": { + } + }, + "ListAttributeValue": { + "base": null, + "refs": { + "AttributeValue$L": "

A List of attribute values.

" + } + }, + "ListTablesInput": { + "base": "

Represents the input of a ListTables operation.

", + "refs": { + } + }, + "ListTablesInputLimit": { + "base": null, + "refs": { + "ListTablesInput$Limit": "

A maximum number of table names to return. If this parameter is not specified, the limit is 100.

" + } + }, + "ListTablesOutput": { + "base": "

Represents the output of a ListTables operation.

", + "refs": { + } + }, + "LocalSecondaryIndex": { + "base": "

Represents the properties of a local secondary index.

", + "refs": { + "LocalSecondaryIndexList$member": null + } + }, + "LocalSecondaryIndexDescription": { + "base": "

Represents the properties of a local secondary index.

", + "refs": { + "LocalSecondaryIndexDescriptionList$member": null + } + }, + "LocalSecondaryIndexDescriptionList": { + "base": null, + "refs": { + "TableDescription$LocalSecondaryIndexes": "

Represents one or more local secondary indexes on the table. Each index is scoped to a given hash key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of:

  • IndexName - The name of the local secondary index.

  • KeySchema - Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same hash key attribute as the table.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

  • IndexSizeBytes - Represents the total size of the index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • ItemCount - Represents the number of items in the index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

If the table is in the DELETING state, no information about indexes will be returned.

" + } + }, + "LocalSecondaryIndexList": { + "base": null, + "refs": { + "CreateTableInput$LocalSecondaryIndexes": "

One or more local secondary indexes (the maximum is five) to be created on the table. Each index is scoped to a given hash key value. There is a 10 GB size limit per hash key; otherwise, the size of a local secondary index is unconstrained.

Each local secondary index in the array includes the following:

  • IndexName - The name of the local secondary index. Must be unique only for this table.

  • KeySchema - Specifies the key schema for the local secondary index. The key schema must begin with the same hash key attribute as the table.

  • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

    • ProjectionType - One of the following:

      • KEYS_ONLY - Only the index and primary keys are projected into the index.

      • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

      • ALL - All of the table attributes are projected into the index.

    • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

" + } + }, + "Long": { + "base": null, + "refs": { + "GlobalSecondaryIndexDescription$IndexSizeBytes": "

The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

", + "GlobalSecondaryIndexDescription$ItemCount": "

The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

", + "LocalSecondaryIndexDescription$IndexSizeBytes": "

The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

", + "LocalSecondaryIndexDescription$ItemCount": "

The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

", + "TableDescription$TableSizeBytes": "

The total size of the specified table, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

", + "TableDescription$ItemCount": "

The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" + } + }, + "MapAttributeValue": { + "base": null, + "refs": { + "AttributeValue$M": "

A Map of attribute values.

" + } + }, + "NonKeyAttributeName": { + "base": null, + "refs": { + "NonKeyAttributeNameList$member": null + } + }, + "NonKeyAttributeNameList": { + "base": null, + "refs": { + "Projection$NonKeyAttributes": "

Represents the non-key attribute names which will be projected into the index.

For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

" + } + }, + "NullAttributeValue": { + "base": null, + "refs": { + "AttributeValue$NULL": "

A Null data type.

" + } + }, + "NumberAttributeValue": { + "base": null, + "refs": { + "AttributeValue$N": "

A Number data type.

", + "NumberSetAttributeValue$member": null + } + }, + "NumberSetAttributeValue": { + "base": null, + "refs": { + "AttributeValue$NS": "

A Number Set data type.

" + } + }, + "PositiveIntegerObject": { + "base": null, + "refs": { + "QueryInput$Limit": "

The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed data set size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer Guide.

", + "ScanInput$Limit": "

The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed data set size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer Guide.

" + } + }, + "PositiveLongObject": { + "base": null, + "refs": { + "ProvisionedThroughput$ReadCapacityUnits": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

", + "ProvisionedThroughput$WriteCapacityUnits": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

", + "ProvisionedThroughputDescription$NumberOfDecreasesToday": "

The number of provisioned throughput decreases for this table during this UTC calendar day. For current maximums on provisioned throughput decreases, see Limits in the Amazon DynamoDB Developer Guide.

", + "ProvisionedThroughputDescription$ReadCapacityUnits": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.

", + "ProvisionedThroughputDescription$WriteCapacityUnits": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

" + } + }, + "Projection": { + "base": "

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.

", + "refs": { + "CreateGlobalSecondaryIndexAction$Projection": null, + "GlobalSecondaryIndex$Projection": null, + "GlobalSecondaryIndexDescription$Projection": null, + "LocalSecondaryIndex$Projection": null, + "LocalSecondaryIndexDescription$Projection": null + } + }, + "ProjectionExpression": { + "base": null, + "refs": { + "GetItemInput$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

ProjectionExpression replaces the legacy AttributesToGet parameter.

", + "KeysAndAttributes$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the ProjectionExpression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

ProjectionExpression replaces the legacy AttributesToGet parameter.

", + "QueryInput$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

ProjectionExpression replaces the legacy AttributesToGet parameter.

", + "ScanInput$ProjectionExpression": "

A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

ProjectionExpression replaces the legacy AttributesToGet parameter.

" + } + }, + "ProjectionType": { + "base": null, + "refs": { + "Projection$ProjectionType": "

The set of attributes that are projected into the index:

  • KEYS_ONLY - Only the index and primary keys are projected into the index.

  • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

  • ALL - All of the table attributes are projected into the index.

" + } + }, + "ProvisionedThroughput": { + "base": "

Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the UpdateTable operation.

For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.

", + "refs": { + "CreateGlobalSecondaryIndexAction$ProvisionedThroughput": null, + "CreateTableInput$ProvisionedThroughput": null, + "GlobalSecondaryIndex$ProvisionedThroughput": null, + "UpdateGlobalSecondaryIndexAction$ProvisionedThroughput": null, + "UpdateTableInput$ProvisionedThroughput": null + } + }, + "ProvisionedThroughputDescription": { + "base": "

Represents the provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

", + "refs": { + "GlobalSecondaryIndexDescription$ProvisionedThroughput": null, + "TableDescription$ProvisionedThroughput": "

The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

" + } + }, + "ProvisionedThroughputExceededException": { + "base": "

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 in the Amazon DynamoDB Developer Guide.

", + "refs": { + } + }, + "PutItemInput": { + "base": "

Represents the input of a PutItem operation.

", + "refs": { + } + }, + "PutItemInputAttributeMap": { + "base": null, + "refs": { + "PutItemInput$Item": "

A map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.

You must provide all of the attributes for the primary key. For example, with a hash type primary key, you only need to provide the hash attribute. For a hash-and-range type primary key, you must provide both the hash attribute and the range attribute.

If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.

Each element in the Item map is an AttributeValue object.

", + "PutRequest$Item": "

A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.

" + } + }, + "PutItemOutput": { + "base": "

Represents the output of a PutItem operation.

", + "refs": { + } + }, + "PutRequest": { + "base": "

Represents a request to perform a PutItem operation on an item.

", + "refs": { + "WriteRequest$PutRequest": "

A request to perform a PutItem operation.

" + } + }, + "QueryInput": { + "base": "

Represents the input of a Query operation.

", + "refs": { + } + }, + "QueryOutput": { + "base": "

Represents the output of a Query operation.

", + "refs": { + } + }, + "ResourceInUseException": { + "base": "

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.

", + "refs": { + } + }, + "ResourceNotFoundException": { + "base": "

The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be ACTIVE.

", + "refs": { + } + }, + "ReturnConsumedCapacity": { + "base": "

Determines the level of detail about provisioned throughput consumption that is returned in the response:

  • INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

    Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

  • TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

  • NONE - No ConsumedCapacity details are included in the response.

", + "refs": { + "BatchGetItemInput$ReturnConsumedCapacity": null, + "BatchWriteItemInput$ReturnConsumedCapacity": null, + "DeleteItemInput$ReturnConsumedCapacity": null, + "GetItemInput$ReturnConsumedCapacity": null, + "PutItemInput$ReturnConsumedCapacity": null, + "QueryInput$ReturnConsumedCapacity": null, + "ScanInput$ReturnConsumedCapacity": null, + "UpdateItemInput$ReturnConsumedCapacity": null + } + }, + "ReturnItemCollectionMetrics": { + "base": null, + "refs": { + "BatchWriteItemInput$ReturnItemCollectionMetrics": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

", + "DeleteItemInput$ReturnItemCollectionMetrics": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

", + "PutItemInput$ReturnItemCollectionMetrics": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

", + "UpdateItemInput$ReturnItemCollectionMetrics": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

" + } + }, + "ReturnValue": { + "base": null, + "refs": { + "DeleteItemInput$ReturnValues": "

Use ReturnValues if you want to get the item attributes as they appeared before they were deleted. For DeleteItem, the valid values are:

  • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

  • ALL_OLD - The content of the old item is returned.

", + "PutItemInput$ReturnValues": "

Use ReturnValues if you want to get the item attributes as they appeared before they were updated with the PutItem request. For PutItem, the valid values are:

  • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

  • ALL_OLD - If PutItem overwrote an attribute name-value pair, then the content of the old item is returned.

Other \"Valid Values\" are not relevant to PutItem.

", + "UpdateItemInput$ReturnValues": "

Use ReturnValues if you want to get the item attributes as they appeared either before or after they were updated. For UpdateItem, the valid values are:

  • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

  • ALL_OLD - If UpdateItem overwrote an attribute name-value pair, then the content of the old item is returned.

  • UPDATED_OLD - The old versions of only the updated attributes are returned.

  • ALL_NEW - All of the attributes of the new version of the item are returned.

  • UPDATED_NEW - The new versions of only the updated attributes are returned.

" + } + }, + "ScalarAttributeType": { + "base": null, + "refs": { + "AttributeDefinition$AttributeType": "

The data type for the attribute.

" + } + }, + "ScanInput": { + "base": "

Represents the input of a Scan operation.

", + "refs": { + } + }, + "ScanOutput": { + "base": "

Represents the output of a Scan operation.

", + "refs": { + } + }, + "ScanSegment": { + "base": null, + "refs": { + "ScanInput$Segment": "

For a parallel Scan request, Segment identifies an individual segment to be scanned by an application worker.

Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to scan a table or an index, then the first thread specifies a Segment value of 0, the second thread specifies 1, and so on.

The value of LastEvaluatedKey returned from a parallel Scan request must be used as ExclusiveStartKey with the same segment ID in a subsequent Scan operation.

The value for Segment must be greater than or equal to 0, and less than the value provided for TotalSegments.

If you provide Segment, you must also provide TotalSegments.

" + } + }, + "ScanTotalSegments": { + "base": null, + "refs": { + "ScanInput$TotalSegments": "

For a parallel Scan request, TotalSegments represents the total number of segments into which the Scan operation will be divided. The value of TotalSegments corresponds to the number of application workers that will perform the parallel scan. For example, if you want to use four application threads to scan a table or an index, specify a TotalSegments value of 4.

The value for TotalSegments must be greater than or equal to 1, and less than or equal to 1000000. If you specify a TotalSegments value of 1, the Scan operation will be sequential rather than parallel.

If you specify TotalSegments, you must also specify Segment.

" + } + }, + "SecondaryIndexesCapacityMap": { + "base": null, + "refs": { + "ConsumedCapacity$LocalSecondaryIndexes": "

The amount of throughput consumed on each local index affected by the operation.

", + "ConsumedCapacity$GlobalSecondaryIndexes": "

The amount of throughput consumed on each global index affected by the operation.

" + } + }, + "Select": { + "base": null, + "refs": { + "QueryInput$Select": "

The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.

  • ALL_ATTRIBUTES - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index DynamoDB will fetch the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.

  • ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ALL_ATTRIBUTES.

  • COUNT - Returns the number of matching items, rather than the matching items themselves.

  • SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. This return value is equivalent to specifying AttributesToGet without specifying any value for Select.

    If you query a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB will fetch each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.

    If you query a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.

If neither Select nor AttributesToGet are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot use both Select and AttributesToGet together in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

If you use the ProjectionExpression parameter, then the value for Select can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an error.

", + "ScanInput$Select": "

The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, or the count of matching items.

  • ALL_ATTRIBUTES - Returns all of the item attributes.

  • COUNT - Returns the number of matching items, rather than the matching items themselves.

  • SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. This return value is equivalent to specifying AttributesToGet without specifying any value for Select.

If neither Select nor AttributesToGet are specified, DynamoDB defaults to ALL_ATTRIBUTES. You cannot use both AttributesToGet and Select together in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

" + } + }, + "StreamArn": { + "base": null, + "refs": { + "TableDescription$LatestStreamArn": "

The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.

" + } + }, + "StreamEnabled": { + "base": null, + "refs": { + "StreamSpecification$StreamEnabled": "

Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.

" + } + }, + "StreamSpecification": { + "base": "

Represents the DynamoDB Streams configuration for a table in DynamoDB.

", + "refs": { + "CreateTableInput$StreamSpecification": "

The settings for DynamoDB Streams on the table. These settings consist of:

  • StreamEnabled - Indicates whether Streams is to be enabled (true) or disabled (false).

  • StreamViewType - When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values for StreamViewType are:

    • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.

    • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.

    • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.

    • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

", + "TableDescription$StreamSpecification": "

The current DynamoDB Streams configuration for the table.

", + "UpdateTableInput$StreamSpecification": "

Represents the DynamoDB Streams configuration for the table.

You will receive a ResourceInUseException if you attempt to enable a stream on a table that already has a stream, or if you attempt to disable a stream on a table which does not have a stream.

" + } + }, + "StreamViewType": { + "base": null, + "refs": { + "StreamSpecification$StreamViewType": "

The DynamoDB Streams settings for the table. These settings consist of:

  • StreamEnabled - Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.

  • StreamViewType - When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. Valid values for StreamViewType are:

    • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.

    • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.

    • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.

    • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

" + } + }, + "String": { + "base": null, + "refs": { + "GlobalSecondaryIndexDescription$IndexArn": "

The Amazon Resource Name (ARN) that uniquely identifies the index.

", + "LocalSecondaryIndexDescription$IndexArn": "

The Amazon Resource Name (ARN) that uniquely identifies the index.

", + "TableDescription$TableArn": "

The Amazon Resource Name (ARN) that uniquely identifies the table.

", + "TableDescription$LatestStreamLabel": "

A timestamp, in ISO 8601 format, for this stream.

Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:

  • the AWS customer ID.

  • the table name.

  • the StreamLabel.

" + } + }, + "StringAttributeValue": { + "base": null, + "refs": { + "AttributeValue$S": "

A String data type.

", + "StringSetAttributeValue$member": null + } + }, + "StringSetAttributeValue": { + "base": null, + "refs": { + "AttributeValue$SS": "

A String Set data type.

" + } + }, + "TableDescription": { + "base": "

Represents the properties of a table.

", + "refs": { + "CreateTableOutput$TableDescription": null, + "DeleteTableOutput$TableDescription": null, + "DescribeTableOutput$Table": null, + "UpdateTableOutput$TableDescription": null + } + }, + "TableName": { + "base": null, + "refs": { + "BatchGetRequestMap$key": null, + "BatchGetResponseMap$key": null, + "BatchWriteItemRequestMap$key": null, + "ConsumedCapacity$TableName": "

The name of the table that was affected by the operation.

", + "CreateTableInput$TableName": "

The name of the table to create.

", + "DeleteItemInput$TableName": "

The name of the table from which to delete the item.

", + "DeleteTableInput$TableName": "

The name of the table to delete.

", + "DescribeTableInput$TableName": "

The name of the table to describe.

", + "GetItemInput$TableName": "

The name of the table containing the requested item.

", + "ItemCollectionMetricsPerTable$key": null, + "ListTablesInput$ExclusiveStartTableName": "

The first table name that this operation will evaluate. Use the value that was returned for LastEvaluatedTableName in a previous operation, so that you can obtain the next page of results.

", + "ListTablesOutput$LastEvaluatedTableName": "

The name of the last table in the current page of results. Use this value as the ExclusiveStartTableName in a new request to obtain the next page of results, until all the table names are returned.

If you do not receive a LastEvaluatedTableName value in the response, this means that there are no more table names to be retrieved.

", + "PutItemInput$TableName": "

The name of the table to contain the item.

", + "QueryInput$TableName": "

The name of the table containing the requested items.

", + "ScanInput$TableName": "

The name of the table containing the requested items; or, if you provide IndexName, the name of the table to which that index belongs.

", + "TableDescription$TableName": "

The name of the table.

", + "TableNameList$member": null, + "UpdateItemInput$TableName": "

The name of the table containing the item to update.

", + "UpdateTableInput$TableName": "

The name of the table to be updated.

" + } + }, + "TableNameList": { + "base": null, + "refs": { + "ListTablesOutput$TableNames": "

The names of the tables associated with the current account at the current endpoint. The maximum size of this array is 100.

If LastEvaluatedTableName also appears in the output, you can use this value as the ExclusiveStartTableName parameter in a subsequent ListTables request and obtain the next page of results.

" + } + }, + "TableStatus": { + "base": null, + "refs": { + "TableDescription$TableStatus": "

The current state of the table:

  • CREATING - The table is being created.

  • UPDATING - The table is being updated.

  • DELETING - The table is being deleted.

  • ACTIVE - The table is ready for use.

" + } + }, + "UpdateExpression": { + "base": null, + "refs": { + "UpdateItemInput$UpdateExpression": "

An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.

The following action values are available for UpdateExpression.

  • SET - Adds one or more attributes and values to an item. If any of these attribute already exist, they are replaced by the new values. You can also use SET to add or subtract from an attribute that is of type Number. For example: SET myNum = myNum + :val

    SET supports the following functions:

    • if_not_exists (path, operand) - if the item does not contain an attribute at the specified path, then if_not_exists evaluates to operand; otherwise, it evaluates to path. You can use this function to avoid overwriting an attribute that may already be present in the item.

    • list_append (operand, operand) - evaluates to a list with a new element added to it. You can append the new element to the start or the end of the list by reversing the order of the operands.

    These function names are case-sensitive.

  • REMOVE - Removes one or more attributes from an item.

  • ADD - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

    • If the existing attribute is a number, and if Value is also a number, then Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

      If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

      Similarly, if you use ADD for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update doesn't have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3.

    • If the existing data type is a set and if Value is also a set, then Value is added to the existing set. For example, if the attribute value is the set [1,2], and the ADD action specified [3], then the final attribute value is [1,2,3]. An error occurs if an ADD action is specified for a set attribute and the attribute type specified does not match the existing set type.

      Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings.

    The ADD action only supports Number and set data types. In addition, ADD can only be used on top-level attributes, not nested attributes.

  • DELETE - Deletes an element from a set.

    If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specifies [a,c], then the final attribute value is [b]. Specifying an empty set is an error.

    The DELETE action only supports set data types. In addition, DELETE can only be used on top-level attributes, not nested attributes.

You can have many actions in a single expression, such as the following: SET a=:value1, b=:value2 DELETE :value3, :value4, :value5

For more information on update expressions, see Modifying Items and Attributes in the Amazon DynamoDB Developer Guide.

UpdateExpression replaces the legacy AttributeUpdates parameter.

" + } + }, + "UpdateGlobalSecondaryIndexAction": { + "base": "

Represents the new provisioned throughput settings to be applied to a global secondary index.

", + "refs": { + "GlobalSecondaryIndexUpdate$Update": "

The name of an existing global secondary index, along with new provisioned throughput settings to be applied to that index.

" + } + }, + "UpdateItemInput": { + "base": "

Represents the input of an UpdateItem operation.

", + "refs": { + } + }, + "UpdateItemOutput": { + "base": "

Represents the output of an UpdateItem operation.

", + "refs": { + } + }, + "UpdateTableInput": { + "base": "

Represents the input of an UpdateTable operation.

", + "refs": { + } + }, + "UpdateTableOutput": { + "base": "

Represents the output of an UpdateTable operation.

", + "refs": { + } + }, + "WriteRequest": { + "base": "

Represents an operation to perform - either DeleteItem or PutItem. You can only request one of these operations, not both, in a single WriteRequest. If you do need to perform both of these operations, you will need to provide two separate WriteRequest objects.

", + "refs": { + "WriteRequests$member": null + } + }, + "WriteRequests": { + "base": null, + "refs": { + "BatchWriteItemRequestMap$value": null + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/dynamodb/2012-08-10/waiters-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-04-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/ec2/2015-04-15/api-2.json similarity index 99% rename from vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-04-15/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/ec2/2015-04-15/api-2.json index 3281d2ea0..d2f0d15c6 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-04-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/ec2/2015-04-15/api-2.json @@ -1786,13 +1786,6 @@ "locationName":"AllocationId" } }, - "AllocationStrategy":{ - "type":"string", - "enum":[ - "lowestPrice", - "diversified" - ] - }, "ArchitectureValues":{ "type":"string", "enum":[ @@ -10260,10 +10253,6 @@ "shape":"SnapshotState", "locationName":"status" }, - "StateMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, "StartTime":{ "shape":"DateTime", "locationName":"startTime" @@ -10299,10 +10288,6 @@ "KmsKeyId":{ "shape":"String", "locationName":"kmsKeyId" - }, - "DataEncryptionKeyId":{ - "shape":"String", - "locationName":"dataEncryptionKeyId" } } }, @@ -10606,10 +10591,6 @@ "LaunchSpecifications":{ "shape":"LaunchSpecsList", "locationName":"launchSpecifications" - }, - "AllocationStrategy":{ - "shape":"AllocationStrategy", - "locationName":"allocationStrategy" } } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-04-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/ec2/2015-04-15/docs-2.json similarity index 97% rename from vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-04-15/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/ec2/2015-04-15/docs-2.json index a970264b7..6502d74d2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-04-15/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/ec2/2015-04-15/docs-2.json @@ -21,7 +21,7 @@ "CancelImportTask": "

Cancels an in-process import virtual machine or import snapshot task.

", "CancelReservedInstancesListing": "

Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

", "CancelSpotFleetRequests": "

Cancels the specified Spot fleet requests.

", - "CancelSpotInstanceRequests": "

Cancels one or more Spot instance requests. Spot instances are instances that Amazon EC2 starts on your behalf when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

Canceling a Spot instance request does not terminate running Spot instances associated with the request.

", + "CancelSpotInstanceRequests": "

Cancels one or more Spot Instance requests. Spot Instances are instances that Amazon EC2 starts on your behalf when the bid price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current Spot Instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.

", "ConfirmProductInstance": "

Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner needs to verify whether another user's instance is eligible for support.

", "CopyImage": "

Initiates the copy of an AMI from the specified source region to the current region. You specify the destination region by using its endpoint when making the request. AMIs that use encrypted EBS snapshots cannot be copied with this method.

For more information, see Copying AMIs in the Amazon Elastic Compute Cloud User Guide.

", "CopySnapshot": "

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy the snapshot within the same region or from one region to another. You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs). The snapshot is copied to the regional endpoint that you send the HTTP request to.

Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless the Encrypted flag is specified during the snapshot copy operation. By default, encrypted snapshot copies use the default AWS Key Management Service (AWS KMS) customer master key (CMK); however, you can specify a non-default CMK with the KmsKeyId parameter.

For more information, see Copying an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

", @@ -41,7 +41,7 @@ "CreateRouteTable": "

Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

", "CreateSecurityGroup": "

Creates a security group.

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

EC2-Classic: You can have up to 500 security groups.

EC2-VPC: You can create up to 100 security groups per VPC.

When you create a security group, you specify a friendly name of your choice. You can have a security group for use in EC2-Classic with the same name as a security group for use in a VPC. However, you can't have two security groups for use in EC2-Classic with the same name or two security groups for use in a VPC with the same name.

You have a default security group for use in EC2-Classic and a default security group for use in your VPC. If you don't specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.

You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.

", "CreateSnapshot": "

Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.

When a snapshot is created, any AWS Marketplace product codes that are associated with the source volume are propagated to the snapshot.

You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your EBS volume at the time the snapshot command is issued; this may exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is pending.

To create a snapshot for EBS volumes that serve as root devices, you should stop the instance before taking the snapshot.

Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected.

For more information, see Amazon Elastic Block Store and Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

", - "CreateSpotDatafeedSubscription": "

Creates a data feed for Spot instances, enabling you to view Spot instance usage logs. You can create one data feed per AWS account. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.

", + "CreateSpotDatafeedSubscription": "

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per AWS account. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.

", "CreateSubnet": "

Creates a subnet in an existing VPC.

When you create each subnet, you provide the VPC ID and the CIDR block you want for the subnet. After you create a subnet, you can't change its CIDR block. The subnet's CIDR block can be the same as the VPC's CIDR block (assuming you want only a single subnet in the VPC), or a subset of the VPC's CIDR block. If you create more than one subnet in a VPC, the subnets' CIDR blocks must not overlap. The smallest subnet (and VPC) you can create uses a /28 netmask (16 IP addresses), and the largest uses a /16 netmask (65,536 IP addresses).

AWS reserves both the first four and the last IP address in each subnet's CIDR block. They're not available for use.

If you add more than one subnet to a VPC, they're set up in a star topology with a logical router in the middle.

If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP address doesn't change if you stop and restart the instance (unlike a similar instance launched outside a VPC, which gets a new IP address when restarted). It's therefore possible to have a subnet with no running instances (they're all stopped), but no remaining IP addresses available.

For more information about subnets, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

", "CreateTags": "

Adds or overwrites one or more tags for the specified Amazon EC2 resource or resources. Each resource can have a maximum of 10 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.

For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

", "CreateVolume": "

Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints.

You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

You can create encrypted volumes with the Encrypted parameter. Encrypted volumes may only be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

For more information, see Creating or Restoring an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

", @@ -64,7 +64,7 @@ "DeleteRouteTable": "

Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table.

", "DeleteSecurityGroup": "

Deletes a security group.

If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.

", "DeleteSnapshot": "

Deletes the specified snapshot.

When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

For more information, see Deleting an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

", - "DeleteSpotDatafeedSubscription": "

Deletes the data feed for Spot instances.

", + "DeleteSpotDatafeedSubscription": "

Deletes the data feed for Spot Instances. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.

", "DeleteSubnet": "

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

", "DeleteTags": "

Deletes the specified set of tags from the specified set of resources. This call is designed to follow a DescribeTags request.

For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

", "DeleteVolume": "

Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

The volume may remain in the deleting state for several minutes.

For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

", @@ -109,12 +109,12 @@ "DescribeSecurityGroups": "

Describes one or more of your security groups.

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

", "DescribeSnapshotAttribute": "

Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

", "DescribeSnapshots": "

Describes one or more of the EBS snapshots available to you. Available snapshots include public snapshots available for any AWS account to launch, private snapshots that you own, and private snapshots owned by another AWS account but for which you've been given explicit create volume permissions.

The create volume permissions fall into the following categories:

  • public: The owner of the snapshot granted create volume permissions for the snapshot to the all group. All AWS accounts have create volume permissions for these snapshots.
  • explicit: The owner of the snapshot granted create volume permissions to a specific AWS account.
  • implicit: An AWS account has implicit create volume permissions for all snapshots it owns.

The list of snapshots returned can be modified by specifying snapshot IDs, snapshot owners, or AWS accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.

If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.

If you specify one or more snapshot owners, only snapshots from the specified owners and for which you have access are returned. The results can include the AWS account IDs of the specified owners, amazon for snapshots owned by Amazon, or self for snapshots that you own.

If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify AWS account IDs (if you own the snapshots), self for snapshots for which you own or have explicit permissions, or all for public snapshots.

If you are describing a long list of snapshots, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSnapshots request to retrieve the remaining results.

For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

", - "DescribeSpotDatafeedSubscription": "

Describes the data feed for Spot instances. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeSpotDatafeedSubscription": "

Describes the data feed for Spot Instances. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.

", "DescribeSpotFleetInstances": "

Describes the running instances for the specified Spot fleet.

", "DescribeSpotFleetRequestHistory": "

Describes the events for the specified Spot fleet request during the specified time.

Spot fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event.

", "DescribeSpotFleetRequests": "

Describes your Spot fleet requests.

", - "DescribeSpotInstanceRequests": "

Describes the Spot instance requests that belong to your account. Spot instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

You can use DescribeSpotInstanceRequests to find a running Spot instance by examining the response. If the status of the Spot instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

", - "DescribeSpotPriceHistory": "

Describes the Spot price history. The prices returned are listed in chronological order, from the oldest to the most recent, for up to the past 90 days. For more information, see Spot Instance Pricing History in the Amazon Elastic Compute Cloud User Guide.

When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.

", + "DescribeSpotInstanceRequests": "

Describes the Spot Instance requests that belong to your account. Spot Instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current Spot Instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

You can use DescribeSpotInstanceRequests to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

", + "DescribeSpotPriceHistory": "

Describes the Spot Price history. The prices returned are listed in chronological order, from the oldest to the most recent, for up to the past 90 days. For more information, see Spot Instance Pricing History in the Amazon Elastic Compute Cloud User Guide.

When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.

", "DescribeSubnets": "

Describes one or more of your subnets.

For more information about subnets, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

", "DescribeTags": "

Describes one or more of the tags for your EC2 resources.

For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

", "DescribeVolumeAttribute": "

Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

", @@ -168,8 +168,8 @@ "ReplaceRoute": "

Replaces an existing route within a route table in a VPC. You must provide only one of the following: Internet gateway or virtual private gateway, NAT instance, VPC peering connection, or network interface.

For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

", "ReplaceRouteTableAssociation": "

Changes the route table associated with a given subnet in a VPC. After the operation completes, the subnet uses the routes in the new route table it's associated with. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

You can also use ReplaceRouteTableAssociation to change which table is the main route table in the VPC. You just specify the main route table's association ID and the route table to be the new main route table.

", "ReportInstanceStatus": "

Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

Use of this action does not change the value returned by DescribeInstanceStatus.

", - "RequestSpotFleet": "

Creates a Spot fleet request.

You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

By default, the Spot fleet requests Spot instances in the Spot pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

Alternatively, you can specify that the Spot fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot instances in your Spot fleet are in different Spot pools, you can improve the availability of your fleet.

For more information, see Spot Fleet Requests in the Amazon Elastic Compute Cloud User Guide.

", - "RequestSpotInstances": "

Creates a Spot instance request. Spot instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot Instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

", + "RequestSpotFleet": "

Creates a Spot fleet request.

You can submit a single request that specifies multiple instance types, each with its own instance weighting that reflects its value to your application workload. Amazon EC2 computes the bid price for each launch specification and requests Spot Instances in the Spot pool where the price per unit is the lowest. For more information, see Spot Fleets in the Amazon Elastic Compute Cloud User Guide.

", + "RequestSpotInstances": "

Creates a Spot Instance request. Spot Instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current Spot Instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

", "ResetImageAttribute": "

Resets an attribute of an AMI to its default value.

The productCodes attribute can't be reset.

", "ResetInstanceAttribute": "

Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the SourceDestCheck, the instance can be either running or stopped.

The SourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

", "ResetNetworkInterfaceAttribute": "

Resets a network interface attribute. You can specify only one attribute at a time.

", @@ -272,12 +272,6 @@ "DescribeAddressesRequest$AllocationIds": "

[EC2-VPC] One or more allocation IDs.

Default: Describes all your Elastic IP addresses.

" } }, - "AllocationStrategy": { - "base": null, - "refs": { - "SpotFleetRequestConfigData$AllocationStrategy": "

Determines how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

" - } - }, "ArchitectureValues": { "base": null, "refs": { @@ -702,7 +696,7 @@ "Snapshot$Encrypted": "

Indicates whether the snapshot is encrypted.

", "SpotFleetLaunchSpecification$EbsOptimized": "

Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

Default: false

", "SpotFleetMonitoring$Enabled": "

Enables monitoring for the instance.

Default: false

", - "SpotFleetRequestConfigData$TerminateInstancesWithExpiration": "

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

", + "SpotFleetRequestConfigData$TerminateInstancesWithExpiration": "

Indicates whether running instances should be terminated when the Spot fleet request expires.

", "StartInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "StopInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "StopInstancesRequest$Force": "

Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.

Default: false

", @@ -850,7 +844,7 @@ "CancelSpotInstanceRequestState": { "base": null, "refs": { - "CancelledSpotInstanceRequest$State": "

The state of the Spot instance request.

" + "CancelledSpotInstanceRequest$State": "

The state of the Spot Instance request.

" } }, "CancelSpotInstanceRequestsRequest": { @@ -864,7 +858,7 @@ } }, "CancelledSpotInstanceRequest": { - "base": "

Describes a request to cancel a Spot instance.

", + "base": "

Describes a request to cancel a Spot Instance.

", "refs": { "CancelledSpotInstanceRequestList$member": null } @@ -872,7 +866,7 @@ "CancelledSpotInstanceRequestList": { "base": null, "refs": { - "CancelSpotInstanceRequestsResult$CancelledSpotInstanceRequests": "

One or more Spot instance requests.

" + "CancelSpotInstanceRequestsResult$CancelledSpotInstanceRequests": "

One or more Spot Instance requests.

" } }, "ClassicLinkInstance": { @@ -1228,7 +1222,7 @@ "DatafeedSubscriptionState": { "base": null, "refs": { - "SpotDatafeedSubscription$State": "

The state of the Spot instance data feed subscription.

" + "SpotDatafeedSubscription$State": "

The state of the Spot Instance data feed subscription.

" } }, "DateTime": { @@ -1267,10 +1261,10 @@ "ReservedInstancesModification$EffectiveDate": "

The time for the modification to become effective.

", "Snapshot$StartTime": "

The time stamp when the snapshot was initiated.

", "SpotFleetRequestConfigData$ValidFrom": "

The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

", - "SpotFleetRequestConfigData$ValidUntil": "

The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.

", + "SpotFleetRequestConfigData$ValidUntil": "

The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot Instance requests are placed or enabled to fulfill the request.

", "SpotInstanceRequest$ValidFrom": "

The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.

", "SpotInstanceRequest$ValidUntil": "

The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.

", - "SpotInstanceRequest$CreateTime": "

The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", + "SpotInstanceRequest$CreateTime": "

The date and time when the Spot Instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", "SpotInstanceStatus$UpdateTime": "

The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", "SpotPrice$Timestamp": "

The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", "VgwTelemetry$LastStatusChange": "

The date and time of the last change in status.

", @@ -2242,10 +2236,10 @@ "DescribeReservedInstancesOfferingsRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone where the Reserved Instance can be used.

  • duration - The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000 | 94608000).

  • fixed-price - The purchase price of the Reserved Instance (for example, 9800.0).

  • instance-type - The instance type on which the Reserved Instance can be used.

  • marketplace - Set to true to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from AWS and Reserved Instance Marketplace are listed.

  • product-description - The Reserved Instance product platform description. Instances that include (Amazon VPC) in the product platform description will only be displayed to EC2-Classic account holders and are for use with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC))

  • reserved-instances-offering-id - The Reserved Instances offering ID.

  • usage-price - The usage price of the Reserved Instance, per hour (for example, 0.84).

", "DescribeReservedInstancesRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone where the Reserved Instance can be used.

  • duration - The duration of the Reserved Instance (one year or three years), in seconds (31536000 | 94608000).

  • end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).

  • fixed-price - The purchase price of the Reserved Instance (for example, 9800.0).

  • instance-type - The instance type on which the Reserved Instance can be used.

  • product-description - The Reserved Instance product platform description. Instances that include (Amazon VPC) in the product platform description will only be displayed to EC2-Classic account holders and are for use with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)).

  • reserved-instances-id - The ID of the Reserved Instance.

  • start - The time at which the Reserved Instance purchase request was placed (for example, 2014-08-07T11:54:42.000Z).

  • state - The state of the Reserved Instance (payment-pending | active | payment-failed | retired).

  • tag:key=value - The key/value combination of a tag assigned to the resource.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • usage-price - The usage price of the Reserved Instance, per hour (for example, 0.84).

", "DescribeRouteTablesRequest$Filters": "

One or more filters.

  • association.route-table-association-id - The ID of an association ID for the route table.

  • association.route-table-id - The ID of the route table involved in the association.

  • association.subnet-id - The ID of the subnet involved in the association.

  • association.main - Indicates whether the route table is the main route table for the VPC.

  • route-table-id - The ID of the route table.

  • route.destination-cidr-block - The CIDR range specified in a route in the table.

  • route.destination-prefix-list-id - The ID (prefix) of the AWS service specified in a route in the table.

  • route.gateway-id - The ID of a gateway specified in a route in the table.

  • route.instance-id - The ID of an instance specified in a route in the table.

  • route.origin - Describes how the route was created. CreateRouteTable indicates that the route was automatically created when the route table was created; CreateRoute indicates that the route was manually added to the route table; EnableVgwRoutePropagation indicates that the route was propagated by route propagation.

  • route.state - The state of a route in the route table (active | blackhole). The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, the specified NAT instance has been terminated, and so on).

  • route.vpc-peering-connection-id - The ID of a VPC peering connection specified in a route in the table.

  • tag:key=value - The key/value combination of a tag assigned to the resource.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • vpc-id - The ID of the VPC for the route table.

", - "DescribeSecurityGroupsRequest$Filters": "

One or more filters. If using multiple filters for rules, the results include security groups for which any combination of rules - not necessarily a single rule - match all filters.

  • description - The description of the security group.

  • egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service to which the security group allows access.

  • group-id - The ID of the security group.

  • group-name - The name of the security group.

  • ip-permission.cidr - A CIDR range that has been granted permission.

  • ip-permission.from-port - The start of port range for the TCP and UDP protocols, or an ICMP type number.

  • ip-permission.group-id - The ID of a security group that has been granted permission.

  • ip-permission.group-name - The name of a security group that has been granted permission.

  • ip-permission.protocol - The IP protocol for the permission (tcp | udp | icmp or a protocol number).

  • ip-permission.to-port - The end of port range for the TCP and UDP protocols, or an ICMP code.

  • ip-permission.user-id - The ID of an AWS account that has been granted permission.

  • owner-id - The AWS account ID of the owner of the security group.

  • tag-key - The key of a tag assigned to the security group.

  • tag-value - The value of a tag assigned to the security group.

  • vpc-id - The ID of the VPC specified when the security group was created.

", + "DescribeSecurityGroupsRequest$Filters": "

One or more filters.

  • description - The description of the security group.

  • egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service to which the security group allows access.

  • group-id - The ID of the security group.

  • group-name - The name of the security group.

  • ip-permission.cidr - A CIDR range that has been granted permission.

  • ip-permission.from-port - The start of port range for the TCP and UDP protocols, or an ICMP type number.

  • ip-permission.group-id - The ID of a security group that has been granted permission.

  • ip-permission.group-name - The name of a security group that has been granted permission.

  • ip-permission.protocol - The IP protocol for the permission (tcp | udp | icmp or a protocol number).

  • ip-permission.to-port - The end of port range for the TCP and UDP protocols, or an ICMP code.

  • ip-permission.user-id - The ID of an AWS account that has been granted permission.

  • owner-id - The AWS account ID of the owner of the security group.

  • tag-key - The key of a tag assigned to the security group.

  • tag-value - The value of a tag assigned to the security group.

  • vpc-id - The ID of the VPC specified when the security group was created.

", "DescribeSnapshotsRequest$Filters": "

One or more filters.

  • description - A description of the snapshot.

  • owner-alias - The AWS account alias (for example, amazon) that owns the snapshot.

  • owner-id - The ID of the AWS account that owns the snapshot.

  • progress - The progress of the snapshot, as a percentage (for example, 80%).

  • snapshot-id - The snapshot ID.

  • start-time - The time stamp when the snapshot was initiated.

  • status - The status of the snapshot (pending | completed | error).

  • tag:key=value - The key/value combination of a tag assigned to the resource.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • volume-id - The ID of the volume the snapshot is for.

  • volume-size - The size of the volume, in GiB.

", - "DescribeSpotInstanceRequestsRequest$Filters": "

One or more filters.

  • availability-zone-group - The Availability Zone group.

  • create-time - The time stamp when the Spot instance request was created.

  • fault-code - The fault code related to the request.

  • fault-message - The fault message related to the request.

  • instance-id - The ID of the instance that fulfilled the request.

  • launch-group - The Spot instance launch group.

  • launch.block-device-mapping.delete-on-termination - Indicates whether the Amazon EBS volume is deleted on instance termination.

  • launch.block-device-mapping.device-name - The device name for the Amazon EBS volume (for example, /dev/sdh).

  • launch.block-device-mapping.snapshot-id - The ID of the snapshot used for the Amazon EBS volume.

  • launch.block-device-mapping.volume-size - The size of the Amazon EBS volume, in GiB.

  • launch.block-device-mapping.volume-type - The type of the Amazon EBS volume (gp2 | standard | io1).

  • launch.group-id - The security group for the instance.

  • launch.image-id - The ID of the AMI.

  • launch.instance-type - The type of instance (for example, m1.small).

  • launch.kernel-id - The kernel ID.

  • launch.key-name - The name of the key pair the instance launched with.

  • launch.monitoring-enabled - Whether monitoring is enabled for the Spot instance.

  • launch.ramdisk-id - The RAM disk ID.

  • network-interface.network-interface-id - The ID of the network interface.

  • network-interface.device-index - The index of the device for the network interface attachment on the instance.

  • network-interface.subnet-id - The ID of the subnet for the instance.

  • network-interface.description - A description of the network interface.

  • network-interface.private-ip-address - The primary private IP address of the network interface.

  • network-interface.delete-on-termination - Indicates whether the network interface is deleted when the instance is terminated.

  • network-interface.group-id - The ID of the security group associated with the network interface.

  • network-interface.group-name - The name of the security group associated with the network interface.

  • network-interface.addresses.primary - Indicates whether the IP address is the primary private IP address.

  • product-description - The product description associated with the instance (Linux/UNIX | Windows).

  • spot-instance-request-id - The Spot instance request ID.

  • spot-price - The maximum hourly price for any Spot instance launched to fulfill the request.

  • state - The state of the Spot instance request (open | active | closed | cancelled | failed). Spot bid status information can help you track your Amazon EC2 Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.

  • status-code - The short code describing the most recent evaluation of your Spot instance request.

  • status-message - The message explaining the status of the Spot instance request.

  • tag:key=value - The key/value combination of a tag assigned to the resource.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • type - The type of Spot instance request (one-time | persistent).

  • launched-availability-zone - The Availability Zone in which the bid is launched.

  • valid-from - The start date of the request.

  • valid-until - The end date of the request.

", - "DescribeSpotPriceHistoryRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone for which prices should be returned.

  • instance-type - The type of instance (for example, m1.small).

  • product-description - The product description for the Spot price (Linux/UNIX | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

  • spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

  • timestamp - The timestamp of the Spot price history, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

", + "DescribeSpotInstanceRequestsRequest$Filters": "

One or more filters.

  • availability-zone-group - The Availability Zone group.

  • create-time - The time stamp when the Spot Instance request was created.

  • fault-code - The fault code related to the request.

  • fault-message - The fault message related to the request.

  • instance-id - The ID of the instance that fulfilled the request.

  • launch-group - The Spot Instance launch group.

  • launch.block-device-mapping.delete-on-termination - Indicates whether the Amazon EBS volume is deleted on instance termination.

  • launch.block-device-mapping.device-name - The device name for the Amazon EBS volume (for example, /dev/sdh).

  • launch.block-device-mapping.snapshot-id - The ID of the snapshot used for the Amazon EBS volume.

  • launch.block-device-mapping.volume-size - The size of the Amazon EBS volume, in GiB.

  • launch.block-device-mapping.volume-type - The type of the Amazon EBS volume (gp2 | standard | io1).

  • launch.group-id - The security group for the instance.

  • launch.image-id - The ID of the AMI.

  • launch.instance-type - The type of instance (for example, m1.small).

  • launch.kernel-id - The kernel ID.

  • launch.key-name - The name of the key pair the instance launched with.

  • launch.monitoring-enabled - Whether monitoring is enabled for the Spot Instance.

  • launch.ramdisk-id - The RAM disk ID.

  • network-interface.network-interface-id - The ID of the network interface.

  • network-interface.device-index - The index of the device for the network interface attachment on the instance.

  • network-interface.subnet-id - The ID of the subnet for the instance.

  • network-interface.description - A description of the network interface.

  • network-interface.private-ip-address - The primary private IP address of the network interface.

  • network-interface.delete-on-termination - Indicates whether the network interface is deleted when the instance is terminated.

  • network-interface.group-id - The ID of the security group associated with the network interface.

  • network-interface.group-name - The name of the security group associated with the network interface.

  • network-interface.addresses.primary - Indicates whether the IP address is the primary private IP address.

  • product-description - The product description associated with the instance (Linux/UNIX | Windows).

  • spot-instance-request-id - The Spot Instance request ID.

  • spot-price - The maximum hourly price for any Spot Instance launched to fulfill the request.

  • state - The state of the Spot Instance request (open | active | closed | cancelled | failed). Spot bid status information can help you track your Amazon EC2 Spot Instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.

  • status-code - The short code describing the most recent evaluation of your Spot Instance request.

  • status-message - The message explaining the status of the Spot Instance request.

  • tag:key=value - The key/value combination of a tag assigned to the resource.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • type - The type of Spot Instance request (one-time | persistent).

  • launched-availability-zone - The Availability Zone in which the bid is launched.

  • valid-from - The start date of the request.

  • valid-until - The end date of the request.

", + "DescribeSpotPriceHistoryRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone for which prices should be returned.

  • instance-type - The type of instance (for example, m1.small).

  • product-description - The product description for the Spot Price (Linux/UNIX | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

  • spot-price - The Spot Price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

  • timestamp - The timestamp of the Spot Price history, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

", "DescribeSubnetsRequest$Filters": "

One or more filters.

  • availabilityZone - The Availability Zone for the subnet. You can also use availability-zone as the filter name.

  • available-ip-address-count - The number of IP addresses in the subnet that are available.

  • cidrBlock - The CIDR block of the subnet. The CIDR block you specify must exactly match the subnet's CIDR block for information to be returned for the subnet. You can also use cidr or cidr-block as the filter names.

  • defaultForAz - Indicates whether this is the default subnet for the Availability Zone. You can also use default-for-az as the filter name.

  • state - The state of the subnet (pending | available).

  • subnet-id - The ID of the subnet.

  • tag:key=value - The key/value combination of a tag assigned to the resource.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • vpc-id - The ID of the VPC for the subnet.

", "DescribeTagsRequest$Filters": "

One or more filters.

  • key - The tag key.

  • resource-id - The resource ID.

  • resource-type - The resource type (customer-gateway | dhcp-options | image | instance | internet-gateway | network-acl | network-interface | reserved-instances | route-table | security-group | snapshot | spot-instances-request | subnet | volume | vpc | vpn-connection | vpn-gateway).

  • value - The tag value.

", "DescribeVolumeStatusRequest$Filters": "

One or more filters.

  • action.code - The action code for the event (for example, enable-volume-io).

  • action.description - A description of the action.

  • action.event-id - The event ID associated with the action.

  • availability-zone - The Availability Zone of the instance.

  • event.description - A description of the event.

  • event.event-id - The event ID.

  • event.event-type - The event type (for io-enabled: passed | failed; for io-performance: io-performance:degraded | io-performance:severely-degraded | io-performance:stalled).

  • event.not-after - The latest end time for the event.

  • event.not-before - The earliest start time for the event.

  • volume-status.details-name - The cause for volume-status.status (io-enabled | io-performance).

  • volume-status.details-status - The status of volume-status.details-name (for io-enabled: passed | failed; for io-performance: normal | degraded | severely-degraded | stalled).

  • volume-status.status - The status of the volume (ok | impaired | warning | insufficient-data).

", @@ -2859,7 +2853,7 @@ "PricingDetail$Count": "

The number of instances available for the price.

", "PurchaseReservedInstancesOfferingRequest$InstanceCount": "

The number of Reserved Instances to purchase.

", "ReplaceNetworkAclEntryRequest$RuleNumber": "

The rule number of the entry to replace.

", - "RequestSpotInstancesRequest$InstanceCount": "

The maximum number of Spot instances to launch.

Default: 1

", + "RequestSpotInstancesRequest$InstanceCount": "

The maximum number of Spot Instances to launch.

Default: 1

", "ReservedInstances$InstanceCount": "

The number of Reserved Instances purchased.

", "ReservedInstancesConfiguration$InstanceCount": "

The number of modified Reserved Instances.

", "RevokeSecurityGroupEgressRequest$FromPort": "

The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all ICMP types.

", @@ -2982,7 +2976,7 @@ "LaunchSpecsList": { "base": null, "refs": { - "SpotFleetRequestConfigData$LaunchSpecifications": "

Information about the launch specifications for the Spot fleet request.

" + "SpotFleetRequestConfigData$LaunchSpecifications": "

Information about the launch specifications for the instances.

" } }, "ListingState": { @@ -3456,7 +3450,7 @@ "DescribeReservedInstancesOfferingsRequest$ProductDescription": "

The Reserved Instance product platform description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.

", "ReservedInstances$ProductDescription": "

The Reserved Instance product platform description.

", "ReservedInstancesOffering$ProductDescription": "

The Reserved Instance product platform description.

", - "SpotInstanceRequest$ProductDescription": "

The product description associated with the Spot instance.

", + "SpotInstanceRequest$ProductDescription": "

The product description associated with the Spot Instance.

", "SpotPrice$ProductDescription": "

A general description of the AMI.

" } }, @@ -3966,14 +3960,14 @@ } }, "SpotDatafeedSubscription": { - "base": "

Describes the data feed for a Spot instance.

", + "base": "

Describes the data feed for a Spot Instance.

", "refs": { - "CreateSpotDatafeedSubscriptionResult$SpotDatafeedSubscription": "

The Spot instance data feed subscription.

", - "DescribeSpotDatafeedSubscriptionResult$SpotDatafeedSubscription": "

The Spot instance data feed subscription.

" + "CreateSpotDatafeedSubscriptionResult$SpotDatafeedSubscription": "

The Spot Instance data feed subscription.

", + "DescribeSpotDatafeedSubscriptionResult$SpotDatafeedSubscription": "

The Spot Instance data feed subscription.

" } }, "SpotFleetLaunchSpecification": { - "base": "

Describes the launch specification for one or more Spot instances.

", + "base": "

Describes the launch specification for one or more Spot Instances.

", "refs": { "LaunchSpecsList$member": null } @@ -4004,7 +3998,7 @@ } }, "SpotInstanceRequest": { - "base": "

Describe a Spot instance request.

", + "base": "

Describe a Spot Instance request.

", "refs": { "SpotInstanceRequestList$member": null } @@ -4012,45 +4006,45 @@ "SpotInstanceRequestIdList": { "base": null, "refs": { - "CancelSpotInstanceRequestsRequest$SpotInstanceRequestIds": "

One or more Spot instance request IDs.

", - "DescribeSpotInstanceRequestsRequest$SpotInstanceRequestIds": "

One or more Spot instance request IDs.

" + "CancelSpotInstanceRequestsRequest$SpotInstanceRequestIds": "

One or more Spot Instance request IDs.

", + "DescribeSpotInstanceRequestsRequest$SpotInstanceRequestIds": "

One or more Spot Instance request IDs.

" } }, "SpotInstanceRequestList": { "base": null, "refs": { - "DescribeSpotInstanceRequestsResult$SpotInstanceRequests": "

One or more Spot instance requests.

", - "RequestSpotInstancesResult$SpotInstanceRequests": "

One or more Spot instance requests.

" + "DescribeSpotInstanceRequestsResult$SpotInstanceRequests": "

One or more Spot Instance requests.

", + "RequestSpotInstancesResult$SpotInstanceRequests": "

One or more Spot Instance requests.

" } }, "SpotInstanceState": { "base": null, "refs": { - "SpotInstanceRequest$State": "

The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.

" + "SpotInstanceRequest$State": "

The state of the Spot Instance request. Spot bid status information can help you track your Spot Instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.

" } }, "SpotInstanceStateFault": { - "base": "

Describes a Spot instance state change.

", + "base": "

Describes a Spot Instance state change.

", "refs": { - "SpotDatafeedSubscription$Fault": "

The fault codes for the Spot instance request, if any.

", - "SpotInstanceRequest$Fault": "

The fault codes for the Spot instance request, if any.

" + "SpotDatafeedSubscription$Fault": "

The fault codes for the Spot Instance request, if any.

", + "SpotInstanceRequest$Fault": "

The fault codes for the Spot Instance request, if any.

" } }, "SpotInstanceStatus": { - "base": "

Describes the status of a Spot instance request.

", + "base": "

Describes the status of a Spot Instance request.

", "refs": { - "SpotInstanceRequest$Status": "

The status code and status message describing the Spot instance request.

" + "SpotInstanceRequest$Status": "

The status code and status message describing the Spot Instance request.

" } }, "SpotInstanceType": { "base": null, "refs": { - "RequestSpotInstancesRequest$Type": "

The Spot instance request type.

Default: one-time

", - "SpotInstanceRequest$Type": "

The Spot instance request type.

" + "RequestSpotInstancesRequest$Type": "

The Spot Instance request type.

Default: one-time

", + "SpotInstanceRequest$Type": "

The Spot Instance request type.

" } }, "SpotPlacement": { - "base": "

Describes Spot instance placement.

", + "base": "

Describes Spot Instance placement.

", "refs": { "LaunchSpecification$Placement": "

The placement information for the instance.

", "SpotFleetLaunchSpecification$Placement": "

The placement information.

", @@ -4058,7 +4052,7 @@ } }, "SpotPrice": { - "base": "

Describes the maximum hourly price (bid) for any Spot instance launched to fulfill the request.

", + "base": "

Describes the maximum hourly price (bid) for any Spot Instance launched to fulfill the request.

", "refs": { "SpotPriceHistoryList$member": null } @@ -4066,7 +4060,7 @@ "SpotPriceHistoryList": { "base": null, "refs": { - "DescribeSpotPriceHistoryResult$SpotPriceHistory": "

The historical Spot prices.

" + "DescribeSpotPriceHistoryResult$SpotPriceHistory": "

The historical Spot Prices.

" } }, "StartInstancesRequest": { @@ -4136,7 +4130,7 @@ "AccountAttributeValue$AttributeValue": "

The value of the attribute.

", "ActiveInstance$InstanceType": "

The instance type.

", "ActiveInstance$InstanceId": "

The ID of the instance.

", - "ActiveInstance$SpotInstanceRequestId": "

The ID of the Spot instance request.

", + "ActiveInstance$SpotInstanceRequestId": "

The ID of the Spot Instance request.

", "Address$InstanceId": "

The ID of the instance that the address is associated with (if any).

", "Address$PublicIp": "

The Elastic IP address.

", "Address$AllocationId": "

The ID representing the allocation of the address for use with EC2-VPC.

", @@ -4209,7 +4203,7 @@ "CancelSpotFleetRequestsError$Message": "

The description for the error code.

", "CancelSpotFleetRequestsErrorItem$SpotFleetRequestId": "

The ID of the Spot fleet request.

", "CancelSpotFleetRequestsSuccessItem$SpotFleetRequestId": "

The ID of the Spot fleet request.

", - "CancelledSpotInstanceRequest$SpotInstanceRequestId": "

The ID of the Spot instance request.

", + "CancelledSpotInstanceRequest$SpotInstanceRequestId": "

The ID of the Spot Instance request.

", "ClassicLinkInstance$InstanceId": "

The ID of the instance.

", "ClassicLinkInstance$VpcId": "

The ID of the VPC.

", "ClientData$Comment": "

A user-defined comment about the disk upload.

", @@ -4268,7 +4262,7 @@ "CreateSecurityGroupResult$GroupId": "

The ID of the security group.

", "CreateSnapshotRequest$VolumeId": "

The ID of the EBS volume.

", "CreateSnapshotRequest$Description": "

A description for the snapshot.

", - "CreateSpotDatafeedSubscriptionRequest$Bucket": "

The Amazon S3 bucket in which to store the Spot instance data feed.

", + "CreateSpotDatafeedSubscriptionRequest$Bucket": "

The Amazon S3 bucket in which to store the Spot Instance data feed.

", "CreateSpotDatafeedSubscriptionRequest$Prefix": "

A prefix for the data feed file names.

", "CreateSubnetRequest$VpcId": "

The ID of the VPC.

", "CreateSubnetRequest$CidrBlock": "

The network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.

", @@ -4411,7 +4405,7 @@ "EnableVolumeIORequest$VolumeId": "

The ID of the volume.

", "EnableVpcClassicLinkRequest$VpcId": "

The ID of the VPC.

", "EventInformation$InstanceId": "

The ID of the instance. This information is available only for instanceChange events.

", - "EventInformation$EventSubType": "

The event.

The following are the error events.

  • iamFleetRoleInvalid - Spot fleet did not have the required permissions either to launch or terminate an instance.

  • spotFleetRequestConfigurationInvalid - The configuration is not valid. For more information, see the description.

  • spotInstanceCountLimitExceeded - You've reached the limit on the number of Spot instances that you can launch.

The following are the fleetRequestChange events.

  • active - The Spot fleet has been validated and Amazon EC2 is attempting to maintain the target number of running Spot instances.

  • cancelled - The Spot fleet is canceled and has no running Spot instances. The Spot fleet will be deleted two days after its instances were terminated.

  • cancelled_running - The Spot fleet is canceled and will not launch additional Spot instances, but its existing Spot instances continue to run until they are interrupted or terminated.

  • cancelled_terminating - The Spot fleet is canceled and its Spot instances are terminating.

  • expired - The Spot fleet request has expired. A subsequent event indicates that the instances were terminated, if the request was created with TerminateInstancesWithExpiration set.

  • price_update - The bid price for a launch configuration was adjusted because it was too high. This change is permanent.

  • submitted - The Spot fleet request is being evaluated and Amazon EC2 is preparing to launch the target number of Spot instances.

The following are the instanceChange events.

  • launched - A bid was fulfilled and a new instance was launched.

  • terminated - An instance was terminated by the user.

", + "EventInformation$EventSubType": "

The event.

The following are the error events.

  • iamFleetRoleInvalid - Spot fleet did not have the required permissions either to launch or terminate an instance.

  • spotFleetRequestConfigurationInvalid - The configuration is not valid. For more information, see the description.

  • spotInstanceCountLimitExceeded - You've reached the limit on the number of Spot Instances that you can launch.

The following are the fleetRequestChange events.

  • active - The Spot fleet has been validated and Amazon EC2 is attempting to maintain the target number of running Spot Instances.

  • cancelled - The Spot fleet is canceled and has no running Spot Instances. The Spot fleet will be deleted two days after its instances were terminated.

  • cancelled_running - The Spot fleet is canceled and will not launch additional Spot Instances, but its existing Spot Instances will continue to run until they are interrupted or terminated.

  • cancelled_terminating - The Spot fleet is canceled and its Spot Instances are terminating.

  • expired - The Spot fleet request has expired. A subsequent event indicates that the instances were terminated, if the request was created with TerminateInstancesWithExpiration set.

  • price_update - The bid price for a launch configuration was adjusted because it was too high. This change is permanent.

  • submitted - The Spot fleet request is being evaluated and Amazon EC2 is preparing to launch the target number of Spot Instances.

The following are the instanceChange events.

  • launched - A bid was fulfilled and a new instance was launched.

  • terminated - An instance was terminated by the user.

", "EventInformation$EventDescription": "

The description of the event.

", "ExecutableByStringList$member": null, "ExportTask$ExportTaskId": "

The ID of the export task.

", @@ -4673,10 +4667,10 @@ "ReplaceRouteTableAssociationResult$NewAssociationId": "

The ID of the new association.

", "ReportInstanceStatusRequest$Description": "

Descriptive text about the health state of your instance.

", "RequestSpotFleetResponse$SpotFleetRequestId": "

The ID of the Spot fleet request.

", - "RequestSpotInstancesRequest$SpotPrice": "

The maximum hourly price (bid) for any Spot instance launched to fulfill the request.

", + "RequestSpotInstancesRequest$SpotPrice": "

The maximum hourly price (bid) for any Spot Instance launched to fulfill the request.

", "RequestSpotInstancesRequest$ClientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

", - "RequestSpotInstancesRequest$LaunchGroup": "

The instance launch group. Launch groups are Spot instances that launch together and terminate together.

Default: Instances are launched and terminated individually

", - "RequestSpotInstancesRequest$AvailabilityZoneGroup": "

The user-specified name for a logical grouping of bids.

When you specify an Availability Zone group in a Spot Instance request, all Spot instances in the request are launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of Availability Zone is not. The group applies only to bids for Spot Instances of the same instance type. Any additional Spot instance requests that are specified with the same Availability Zone group name are launched in that same Availability Zone, as long as at least one instance from the group is still active.

If there is no active instance running in the Availability Zone group that you specify for a new Spot instance request (all instances are terminated, the bid is expired, or the bid falls below current market), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be met. Consequently, the subsequent set of Spot instances could be placed in a different zone from the original request, even if you specified the same Availability Zone group.

Default: Instances are launched in any available Availability Zone.

", + "RequestSpotInstancesRequest$LaunchGroup": "

The instance launch group. Launch groups are Spot Instances that launch together and terminate together.

Default: Instances are launched and terminated individually

", + "RequestSpotInstancesRequest$AvailabilityZoneGroup": "

The user-specified name for a logical grouping of bids.

When you specify an Availability Zone group in a Spot Instance request, all Spot Instances in the request are launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of Availability Zone is not. The group applies only to bids for Spot Instances of the same instance type. Any additional Spot Instance requests that are specified with the same Availability Zone group name are launched in that same Availability Zone, as long as at least one instance from the group is still active.

If there is no active instance running in the Availability Zone group that you specify for a new Spot Instance request (all instances are terminated, the bid is expired, or the bid falls below current market), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be met. Consequently, the subsequent set of Spot Instances could be placed in a different zone from the original request, even if you specified the same Availability Zone group.

Default: Instances are launched in any available Availability Zone.

", "Reservation$ReservationId": "

The ID of the reservation.

", "Reservation$OwnerId": "

The ID of the AWS account that owns the reservation.

", "Reservation$RequesterId": "

The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).

", @@ -4751,15 +4745,13 @@ "SecurityGroup$VpcId": "

[EC2-VPC] The ID of the VPC for the security group.

", "SecurityGroupIdStringList$member": null, "SecurityGroupStringList$member": null, - "Snapshot$SnapshotId": "

The ID of the snapshot. Each snapshot receives a unique identifier when it is created.

", - "Snapshot$VolumeId": "

The ID of the volume that was used to create the snapshot.

", - "Snapshot$StateMessage": "

Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the error occurred. This parameter is only returned by the DescribeSnapshots API operation.

", + "Snapshot$SnapshotId": "

The ID of the snapshot.

", + "Snapshot$VolumeId": "

The ID of the volume.

", "Snapshot$Progress": "

The progress of the snapshot, as a percentage.

", "Snapshot$OwnerId": "

The AWS account ID of the EBS snapshot owner.

", "Snapshot$Description": "

The description for the snapshot.

", "Snapshot$OwnerAlias": "

The AWS account alias (for example, amazon, self) or AWS account ID that owns the snapshot.

", "Snapshot$KmsKeyId": "

The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the parent volume.

", - "Snapshot$DataEncryptionKeyId": "

The data encryption key identifier for the snapshot. This value is a unique identifier that corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. Because data encryption keys are inherited by volumes created from snapshots, and vice versa, if snapshots share the same data encryption key identifier, then they belong to the same volume/snapshot lineage. This parameter is only returned by the DescribeSnapshots API operation.

", "SnapshotDetail$Description": "

A description for the snapshot.

", "SnapshotDetail$Format": "

The format of the disk image from which the snapshot is created.

", "SnapshotDetail$Url": "

The URL used to access the disk image.

", @@ -4780,7 +4772,7 @@ "SnapshotTaskDetail$StatusMessage": "

A detailed status message for the import snapshot task.

", "SnapshotTaskDetail$Status": "

A brief status for the import snapshot task.

", "SpotDatafeedSubscription$OwnerId": "

The AWS account ID of the account.

", - "SpotDatafeedSubscription$Bucket": "

The Amazon S3 bucket where the Spot instance data feed is located.

", + "SpotDatafeedSubscription$Bucket": "

The Amazon S3 bucket where the Spot Instance data feed is located.

", "SpotDatafeedSubscription$Prefix": "

The prefix that is prepended to data feed files.

", "SpotFleetLaunchSpecification$ImageId": "

The ID of the AMI.

", "SpotFleetLaunchSpecification$KeyName": "

The name of the key pair.

", @@ -4793,21 +4785,21 @@ "SpotFleetRequestConfig$SpotFleetRequestId": "

The ID of the Spot fleet request.

", "SpotFleetRequestConfigData$ClientToken": "

A unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.

", "SpotFleetRequestConfigData$SpotPrice": "

The bid price per unit hour.

", - "SpotFleetRequestConfigData$IamFleetRole": "

Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set terminateInstancesWithExpiration.

", - "SpotInstanceRequest$SpotInstanceRequestId": "

The ID of the Spot instance request.

", - "SpotInstanceRequest$SpotPrice": "

The maximum hourly price (bid) for any Spot instance launched to fulfill the request.

", - "SpotInstanceRequest$LaunchGroup": "

The instance launch group. Launch groups are Spot instances that launch together and terminate together.

", - "SpotInstanceRequest$AvailabilityZoneGroup": "

The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.

", - "SpotInstanceRequest$InstanceId": "

The instance ID, if an instance has been launched to fulfill the Spot instance request.

", + "SpotFleetRequestConfigData$IamFleetRole": "

Grants the Spot fleet service permission to terminate instances on your behalf when you cancel a Spot fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set terminateInstancesWithExpiration.

", + "SpotInstanceRequest$SpotInstanceRequestId": "

The ID of the Spot Instance request.

", + "SpotInstanceRequest$SpotPrice": "

The maximum hourly price (bid) for any Spot Instance launched to fulfill the request.

", + "SpotInstanceRequest$LaunchGroup": "

The instance launch group. Launch groups are Spot Instances that launch together and terminate together.

", + "SpotInstanceRequest$AvailabilityZoneGroup": "

The Availability Zone group. If you specify the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.

", + "SpotInstanceRequest$InstanceId": "

The instance ID, if an instance has been launched to fulfill the Spot Instance request.

", "SpotInstanceRequest$LaunchedAvailabilityZone": "

The Availability Zone in which the bid is launched.

", "SpotInstanceRequestIdList$member": null, - "SpotInstanceStateFault$Code": "

The reason code for the Spot instance state change.

", - "SpotInstanceStateFault$Message": "

The message for the Spot instance state change.

", + "SpotInstanceStateFault$Code": "

The reason code for the Spot Instance state change.

", + "SpotInstanceStateFault$Message": "

The message for the Spot Instance state change.

", "SpotInstanceStatus$Code": "

The status code.

", "SpotInstanceStatus$Message": "

The description for the status code.

", "SpotPlacement$AvailabilityZone": "

The Availability Zone.

", "SpotPlacement$GroupName": "

The name of the placement group (for cluster instances).

", - "SpotPrice$SpotPrice": "

The maximum price (bid) that you are willing to pay for a Spot instance.

", + "SpotPrice$SpotPrice": "

The maximum price (bid) that you are willing to pay for a Spot Instance.

", "SpotPrice$AvailabilityZone": "

The Availability Zone.

", "StartInstancesRequest$AdditionalInfo": "

Reserved.

", "StateReason$Code": "

The reason code for the state change.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-04-15/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/ec2/2015-04-15/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-04-15/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/ec2/2015-04-15/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-04-15/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/ec2/2015-04-15/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-04-15/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/ec2/2015-04-15/waiters-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/api-2.json similarity index 74% rename from vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/api-2.json index b556c0577..3cefdcc02 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/api-2.json @@ -4,11 +4,11 @@ "apiVersion":"2014-11-13", "endpointPrefix":"ecs", "jsonVersion":"1.1", - "protocol":"json", "serviceAbbreviation":"Amazon ECS", "serviceFullName":"Amazon EC2 Container Service", "signatureVersion":"v4", - "targetPrefix":"AmazonEC2ContainerServiceV20141113" + "targetPrefix":"AmazonEC2ContainerServiceV20141113", + "protocol":"json" }, "operations":{ "CreateCluster":{ @@ -20,9 +20,19 @@ "input":{"shape":"CreateClusterRequest"}, "output":{"shape":"CreateClusterResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + } ] }, "CreateService":{ @@ -34,10 +44,23 @@ "input":{"shape":"CreateServiceRequest"}, "output":{"shape":"CreateServiceResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "DeleteCluster":{ @@ -49,12 +72,31 @@ "input":{"shape":"DeleteClusterRequest"}, "output":{"shape":"DeleteClusterResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"}, - {"shape":"ClusterContainsContainerInstancesException"}, - {"shape":"ClusterContainsServicesException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + }, + { + "shape":"ClusterContainsContainerInstancesException", + "exception":true + }, + { + "shape":"ClusterContainsServicesException", + "exception":true + } ] }, "DeleteService":{ @@ -66,11 +108,27 @@ "input":{"shape":"DeleteServiceRequest"}, "output":{"shape":"DeleteServiceResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"}, - {"shape":"ServiceNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + }, + { + "shape":"ServiceNotFoundException", + "exception":true + } ] }, "DeregisterContainerInstance":{ @@ -82,10 +140,23 @@ "input":{"shape":"DeregisterContainerInstanceRequest"}, "output":{"shape":"DeregisterContainerInstanceResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "DeregisterTaskDefinition":{ @@ -97,9 +168,19 @@ "input":{"shape":"DeregisterTaskDefinitionRequest"}, "output":{"shape":"DeregisterTaskDefinitionResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + } ] }, "DescribeClusters":{ @@ -111,9 +192,19 @@ "input":{"shape":"DescribeClustersRequest"}, "output":{"shape":"DescribeClustersResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + } ] }, "DescribeContainerInstances":{ @@ -125,10 +216,23 @@ "input":{"shape":"DescribeContainerInstancesRequest"}, "output":{"shape":"DescribeContainerInstancesResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "DescribeServices":{ @@ -140,10 +244,23 @@ "input":{"shape":"DescribeServicesRequest"}, "output":{"shape":"DescribeServicesResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "DescribeTaskDefinition":{ @@ -155,9 +272,19 @@ "input":{"shape":"DescribeTaskDefinitionRequest"}, "output":{"shape":"DescribeTaskDefinitionResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + } ] }, "DescribeTasks":{ @@ -169,10 +296,23 @@ "input":{"shape":"DescribeTasksRequest"}, "output":{"shape":"DescribeTasksResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "DiscoverPollEndpoint":{ @@ -184,8 +324,15 @@ "input":{"shape":"DiscoverPollEndpointRequest"}, "output":{"shape":"DiscoverPollEndpointResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + } ] }, "ListClusters":{ @@ -197,9 +344,19 @@ "input":{"shape":"ListClustersRequest"}, "output":{"shape":"ListClustersResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + } ] }, "ListContainerInstances":{ @@ -211,10 +368,23 @@ "input":{"shape":"ListContainerInstancesRequest"}, "output":{"shape":"ListContainerInstancesResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "ListServices":{ @@ -226,10 +396,23 @@ "input":{"shape":"ListServicesRequest"}, "output":{"shape":"ListServicesResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "ListTaskDefinitionFamilies":{ @@ -241,9 +424,19 @@ "input":{"shape":"ListTaskDefinitionFamiliesRequest"}, "output":{"shape":"ListTaskDefinitionFamiliesResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + } ] }, "ListTaskDefinitions":{ @@ -255,9 +448,19 @@ "input":{"shape":"ListTaskDefinitionsRequest"}, "output":{"shape":"ListTaskDefinitionsResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + } ] }, "ListTasks":{ @@ -269,11 +472,23 @@ "input":{"shape":"ListTasksRequest"}, "output":{"shape":"ListTasksResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"}, - {"shape":"ServiceNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "RegisterContainerInstance":{ @@ -285,8 +500,15 @@ "input":{"shape":"RegisterContainerInstanceRequest"}, "output":{"shape":"RegisterContainerInstanceResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + } ] }, "RegisterTaskDefinition":{ @@ -298,9 +520,19 @@ "input":{"shape":"RegisterTaskDefinitionRequest"}, "output":{"shape":"RegisterTaskDefinitionResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + } ] }, "RunTask":{ @@ -312,10 +544,23 @@ "input":{"shape":"RunTaskRequest"}, "output":{"shape":"RunTaskResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "StartTask":{ @@ -327,10 +572,23 @@ "input":{"shape":"StartTaskRequest"}, "output":{"shape":"StartTaskResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "StopTask":{ @@ -342,10 +600,23 @@ "input":{"shape":"StopTaskRequest"}, "output":{"shape":"StopTaskResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + } ] }, "SubmitContainerStateChange":{ @@ -357,8 +628,15 @@ "input":{"shape":"SubmitContainerStateChangeRequest"}, "output":{"shape":"SubmitContainerStateChangeResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + } ] }, "SubmitTaskStateChange":{ @@ -370,8 +648,15 @@ "input":{"shape":"SubmitTaskStateChangeRequest"}, "output":{"shape":"SubmitTaskStateChangeResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + } ] }, "UpdateContainerAgent":{ @@ -383,13 +668,35 @@ "input":{"shape":"UpdateContainerAgentRequest"}, "output":{"shape":"UpdateContainerAgentResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"}, - {"shape":"UpdateInProgressException"}, - {"shape":"NoUpdateAvailableException"}, - {"shape":"MissingVersionException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + }, + { + "shape":"UpdateInProgressException", + "exception":true + }, + { + "shape":"NoUpdateAvailableException", + "exception":true + }, + { + "shape":"MissingVersionException", + "exception":true + } ] }, "UpdateService":{ @@ -401,12 +708,31 @@ "input":{"shape":"UpdateServiceRequest"}, "output":{"shape":"UpdateServiceResponse"}, "errors":[ - {"shape":"ServerException"}, - {"shape":"ClientException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ClusterNotFoundException"}, - {"shape":"ServiceNotFoundException"}, - {"shape":"ServiceNotActiveException"} + { + "shape":"ServerException", + "exception":true, + "fault":true + }, + { + "shape":"ClientException", + "exception":true + }, + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ClusterNotFoundException", + "exception":true + }, + { + "shape":"ServiceNotFoundException", + "exception":true + }, + { + "shape":"ServiceNotActiveException", + "exception":true + } ] } }, @@ -422,18 +748,6 @@ "FAILED" ] }, - "Attribute":{ - "type":"structure", - "required":["name"], - "members":{ - "name":{"shape":"String"}, - "value":{"shape":"String"} - } - }, - "Attributes":{ - "type":"list", - "member":{"shape":"Attribute"} - }, "Boolean":{"type":"boolean"}, "BoxedBoolean":{ "type":"boolean", @@ -510,20 +824,7 @@ "command":{"shape":"StringList"}, "environment":{"shape":"EnvironmentVariables"}, "mountPoints":{"shape":"MountPointList"}, - "volumesFrom":{"shape":"VolumeFromList"}, - "hostname":{"shape":"String"}, - "user":{"shape":"String"}, - "workingDirectory":{"shape":"String"}, - "disableNetworking":{"shape":"BoxedBoolean"}, - "privileged":{"shape":"BoxedBoolean"}, - "readonlyRootFilesystem":{"shape":"BoxedBoolean"}, - "dnsServers":{"shape":"StringList"}, - "dnsSearchDomains":{"shape":"StringList"}, - "extraHosts":{"shape":"HostEntryList"}, - "dockerSecurityOptions":{"shape":"StringList"}, - "dockerLabels":{"shape":"DockerLabelsMap"}, - "ulimits":{"shape":"UlimitList"}, - "logConfiguration":{"shape":"LogConfiguration"} + "volumesFrom":{"shape":"VolumeFromList"} } }, "ContainerDefinitions":{ @@ -542,8 +843,7 @@ "agentConnected":{"shape":"Boolean"}, "runningTasksCount":{"shape":"Integer"}, "pendingTasksCount":{"shape":"Integer"}, - "agentUpdateStatus":{"shape":"AgentUpdateStatus"}, - "attributes":{"shape":"Attributes"} + "agentUpdateStatus":{"shape":"AgentUpdateStatus"} } }, "ContainerInstances":{ @@ -592,8 +892,7 @@ "loadBalancers":{"shape":"LoadBalancers"}, "desiredCount":{"shape":"BoxedInteger"}, "clientToken":{"shape":"String"}, - "role":{"shape":"String"}, - "deploymentConfiguration":{"shape":"DeploymentConfiguration"} + "role":{"shape":"String"} } }, "CreateServiceResponse":{ @@ -642,13 +941,6 @@ "updatedAt":{"shape":"Timestamp"} } }, - "DeploymentConfiguration":{ - "type":"structure", - "members":{ - "maximumPercent":{"shape":"BoxedInteger"}, - "minimumHealthyPercent":{"shape":"BoxedInteger"} - } - }, "Deployments":{ "type":"list", "member":{"shape":"Deployment"} @@ -774,11 +1066,6 @@ "telemetryEndpoint":{"shape":"String"} } }, - "DockerLabelsMap":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"} - }, "Double":{"type":"double"}, "EnvironmentVariables":{ "type":"list", @@ -795,21 +1082,6 @@ "type":"list", "member":{"shape":"Failure"} }, - "HostEntry":{ - "type":"structure", - "required":[ - "hostname", - "ipAddress" - ], - "members":{ - "hostname":{"shape":"String"}, - "ipAddress":{"shape":"String"} - } - }, - "HostEntryList":{ - "type":"list", - "member":{"shape":"HostEntry"} - }, "HostVolumeProperties":{ "type":"structure", "members":{ @@ -878,7 +1150,6 @@ "type":"structure", "members":{ "familyPrefix":{"shape":"String"}, - "status":{"shape":"TaskDefinitionFamilyStatus"}, "nextToken":{"shape":"String"}, "maxResults":{"shape":"BoxedInteger"} } @@ -939,30 +1210,6 @@ "type":"list", "member":{"shape":"LoadBalancer"} }, - "LogConfiguration":{ - "type":"structure", - "required":["logDriver"], - "members":{ - "logDriver":{"shape":"LogDriver"}, - "options":{"shape":"LogConfigurationOptionsMap"} - } - }, - "LogConfigurationOptionsMap":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"} - }, - "LogDriver":{ - "type":"string", - "enum":[ - "json-file", - "syslog", - "journald", - "gelf", - "fluentd", - "awslogs" - ] - }, "Long":{"type":"long"}, "MissingVersionException":{ "type":"structure", @@ -1021,8 +1268,7 @@ "instanceIdentityDocumentSignature":{"shape":"String"}, "totalResources":{"shape":"Resources"}, "versionInfo":{"shape":"VersionInfo"}, - "containerInstanceArn":{"shape":"String"}, - "attributes":{"shape":"Attributes"} + "containerInstanceArn":{"shape":"String"} } }, "RegisterContainerInstanceResponse":{ @@ -1049,10 +1295,6 @@ "taskDefinition":{"shape":"TaskDefinition"} } }, - "RequiresAttributes":{ - "type":"list", - "member":{"shape":"Attribute"} - }, "Resource":{ "type":"structure", "members":{ @@ -1106,11 +1348,9 @@ "runningCount":{"shape":"Integer"}, "pendingCount":{"shape":"Integer"}, "taskDefinition":{"shape":"String"}, - "deploymentConfiguration":{"shape":"DeploymentConfiguration"}, "deployments":{"shape":"Deployments"}, "roleArn":{"shape":"String"}, - "events":{"shape":"ServiceEvents"}, - "createdAt":{"shape":"Timestamp"} + "events":{"shape":"ServiceEvents"} } }, "ServiceEvent":{ @@ -1174,8 +1414,7 @@ "required":["task"], "members":{ "cluster":{"shape":"String"}, - "task":{"shape":"String"}, - "reason":{"shape":"String"} + "task":{"shape":"String"} } }, "StopTaskResponse":{ @@ -1233,11 +1472,7 @@ "lastStatus":{"shape":"String"}, "desiredStatus":{"shape":"String"}, "containers":{"shape":"Containers"}, - "startedBy":{"shape":"String"}, - "stoppedReason":{"shape":"String"}, - "createdAt":{"shape":"Timestamp"}, - "startedAt":{"shape":"Timestamp"}, - "stoppedAt":{"shape":"Timestamp"} + "startedBy":{"shape":"String"} } }, "TaskDefinition":{ @@ -1248,18 +1483,9 @@ "family":{"shape":"String"}, "revision":{"shape":"Integer"}, "volumes":{"shape":"VolumeList"}, - "status":{"shape":"TaskDefinitionStatus"}, - "requiresAttributes":{"shape":"RequiresAttributes"} + "status":{"shape":"TaskDefinitionStatus"} } }, - "TaskDefinitionFamilyStatus":{ - "type":"string", - "enum":[ - "ACTIVE", - "INACTIVE", - "ALL" - ] - }, "TaskDefinitionStatus":{ "type":"string", "enum":[ @@ -1285,43 +1511,6 @@ "udp" ] }, - "Ulimit":{ - "type":"structure", - "required":[ - "name", - "softLimit", - "hardLimit" - ], - "members":{ - "name":{"shape":"UlimitName"}, - "softLimit":{"shape":"Integer"}, - "hardLimit":{"shape":"Integer"} - } - }, - "UlimitList":{ - "type":"list", - "member":{"shape":"Ulimit"} - }, - "UlimitName":{ - "type":"string", - "enum":[ - "core", - "cpu", - "data", - "fsize", - "locks", - "memlock", - "msgqueue", - "nice", - "nofile", - "nproc", - "rss", - "rtprio", - "rttime", - "sigpending", - "stack" - ] - }, "UpdateContainerAgentRequest":{ "type":"structure", "required":["containerInstance"], @@ -1349,8 +1538,7 @@ "cluster":{"shape":"String"}, "service":{"shape":"String"}, "desiredCount":{"shape":"BoxedInteger"}, - "taskDefinition":{"shape":"String"}, - "deploymentConfiguration":{"shape":"DeploymentConfiguration"} + "taskDefinition":{"shape":"String"} } }, "UpdateServiceResponse":{ diff --git a/vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/docs-2.json new file mode 100644 index 000000000..e10446721 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/docs-2.json @@ -0,0 +1,887 @@ +{ + "version": "2.0", + "operations": { + "CreateCluster": "

Creates a new Amazon ECS cluster. By default, your account will receive a default cluster when you launch your first container instance. However, you can create your own cluster with a unique name with the CreateCluster action.

", + "CreateService": "

Runs and maintains a desired number of tasks from a specified task definition. If the number of tasks running in a service drops below desiredCount, Amazon ECS will spawn another instantiation of the task in the specified cluster.

", + "DeleteCluster": "

Deletes the specified cluster. You must deregister all container instances from this cluster before you may delete it. You can list the container instances in a cluster with ListContainerInstances and deregister them with DeregisterContainerInstance.

", + "DeleteService": "

Deletes a specified service within a cluster.

", + "DeregisterContainerInstance": "

Deregisters an Amazon ECS container instance from the specified cluster. This instance will no longer be available to run tasks.

If you intend to use the container instance for some other purpose after deregistration, you should stop all of the tasks running on the container instance before deregistration to avoid any orphaned tasks from consuming resources.

Deregistering a container instance removes the instance from a cluster, but it does not terminate the EC2 instance; if you are finished using the instance, be sure to terminate it in the Amazon EC2 console to stop billing.

When you terminate a container instance, it is automatically deregistered from your cluster.

", + "DeregisterTaskDefinition": "

Deregisters the specified task definition by family and revision. Upon deregistration, the task definition is marked as INACTIVE. Existing tasks and services that reference an INACTIVE task definition continue to run without disruption. Existing services that reference an INACTIVE task definition can still scale up or down by modifying the service's desired count.

You cannot use an INACTIVE task definition to run new tasks or create new services, and you cannot update an existing service to reference an INACTIVE task definition (although there may be up to a 10 minute window following deregistration where these restrictions have not yet taken effect).

", + "DescribeClusters": "

Describes one or more of your clusters.

", + "DescribeContainerInstances": "

Describes Amazon EC2 Container Service container instances. Returns metadata about registered and remaining resources on each container instance requested.

", + "DescribeServices": "

Describes the specified services running in your cluster.

", + "DescribeTaskDefinition": "

Describes a task definition. You can specify a family and revision to find information on a specific task definition, or you can simply specify the family to find the latest ACTIVE revision in that family.

You can only describe INACTIVE task definitions while an active task or service references them.

", + "DescribeTasks": "

Describes a specified task or tasks.

", + "DiscoverPollEndpoint": "

This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

Returns an endpoint for the Amazon EC2 Container Service agent to poll for updates.

", + "ListClusters": "

Returns a list of existing clusters.

", + "ListContainerInstances": "

Returns a list of container instances in a specified cluster.

", + "ListServices": "

Lists the services that are running in a specified cluster.

", + "ListTaskDefinitionFamilies": "

Returns a list of task definition families that are registered to your account (which may include task definition families that no longer have any ACTIVE task definitions). You can filter the results with the familyPrefix parameter.

", + "ListTaskDefinitions": "

Returns a list of task definitions that are registered to your account. You can filter the results by family name with the familyPrefix parameter or by status with the status parameter.

", + "ListTasks": "

Returns a list of tasks for a specified cluster. You can filter the results by family name, by a particular container instance, or by the desired status of the task with the family, containerInstance, and desiredStatus parameters.

", + "RegisterContainerInstance": "

This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

Registers an Amazon EC2 instance into the specified cluster. This instance will become available to place containers on.

", + "RegisterTaskDefinition": "

Registers a new task definition from the supplied family and containerDefinitions. Optionally, you can add data volumes to your containers with the volumes parameter. For more information on task definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

", + "RunTask": "

Start a task using random placement and the default Amazon ECS scheduler. If you want to use your own scheduler or place a task on a specific container instance, use StartTask instead.

The count parameter is limited to 10 tasks per call.

", + "StartTask": "

Starts a new task from the specified task definition on the specified container instance or instances. If you want to use the default Amazon ECS scheduler to place your task, use RunTask instead.

The list of container instances to start tasks on is limited to 10.

", + "StopTask": "

Stops a running task.

", + "SubmitContainerStateChange": "

This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

Sent to acknowledge that a container changed states.

", + "SubmitTaskStateChange": "

This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

Sent to acknowledge that a task changed states.

", + "UpdateContainerAgent": "

Updates the Amazon ECS container agent on a specified container instance. Updating the Amazon ECS container agent does not interrupt running tasks or services on the container instance. The process for updating the agent differs depending on whether your container instance was launched with the Amazon ECS-optimized AMI or another operating system.

UpdateContainerAgent requires the Amazon ECS-optimized AMI or Amazon Linux with the ecs-init service installed and running. For help updating the Amazon ECS container agent on other operating systems, see Manually Updating the Amazon ECS Container Agent in the Amazon EC2 Container Service Developer Guide.

", + "UpdateService": "

Modify the desired count or task definition used in a service.

You can add to or subtract from the number of instantiations of a task definition in a service by specifying the cluster that the service is running in and a new desiredCount parameter.

You can use UpdateService to modify your task definition and deploy a new version of your service, one task at a time. If you modify the task definition with UpdateService, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running. Because UpdateService starts a new version of the task before stopping an old version, your cluster must have capacity to support one more instantiation of the task when UpdateService is run. If your cluster cannot support another instantiation of the task used in your service, you can reduce the desired count of your service by one before modifying the task definition.

" + }, + "service": "

Amazon EC2 Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes it easy to run, stop, and manage Docker containers on a cluster of Amazon EC2 instances. Amazon ECS lets you launch and stop container-enabled applications with simple API calls, allows you to get the state of your cluster from a centralized service, and gives you access to many familiar Amazon EC2 features like security groups, Amazon EBS volumes, and IAM roles.

You can use Amazon ECS to schedule the placement of containers across your cluster based on your resource needs, isolation policies, and availability requirements. Amazon EC2 Container Service eliminates the need for you to operate your own cluster management and configuration management systems or worry about scaling your management infrastructure.

", + "shapes": { + "AgentUpdateStatus": { + "base": null, + "refs": { + "ContainerInstance$agentUpdateStatus": "

The status of the most recent agent update. If an update has never been requested, this value is NULL.

" + } + }, + "Boolean": { + "base": null, + "refs": { + "ContainerInstance$agentConnected": "

This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped will return false, and instances without a connected agent cannot accept placement request.

" + } + }, + "BoxedBoolean": { + "base": null, + "refs": { + "ContainerDefinition$essential": "

If the essential parameter of a container is marked as true, the failure of that container will stop the task. If the essential parameter of a container is marked as false, then its failure will not affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential.

All tasks must have at least one essential container.

", + "DeregisterContainerInstanceRequest$force": "

Force the deregistration of the container instance. If you have tasks running on the container instance when you deregister it with the force option, these tasks remain running and they will continue to pass Elastic Load Balancing load balancer health checks until you terminate the instance or the tasks stop through some other means, but they are orphaned (no longer monitored or accounted for by Amazon ECS). If an orphaned task on your container instance is part of an Amazon ECS service, then the service scheduler will start another copy of that task on a different container instance if possible.

", + "MountPoint$readOnly": "

If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.

", + "VolumeFrom$readOnly": "

If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.

" + } + }, + "BoxedInteger": { + "base": null, + "refs": { + "Container$exitCode": "

The exit code returned from the container.

", + "CreateServiceRequest$desiredCount": "

The number of instantiations of the specified task definition that you would like to place and keep running on your cluster.

", + "ListClustersRequest$maxResults": "

The maximum number of cluster results returned by ListClusters in paginated output. When this parameter is used, ListClusters only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListClusters request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListClusters returns up to 100 results and a nextToken value if applicable.

", + "ListContainerInstancesRequest$maxResults": "

The maximum number of container instance results returned by ListContainerInstances in paginated output. When this parameter is used, ListContainerInstances only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListContainerInstances request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListContainerInstances returns up to 100 results and a nextToken value if applicable.

", + "ListServicesRequest$maxResults": "

The maximum number of container instance results returned by ListServices in paginated output. When this parameter is used, ListServices only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListServices request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListServices returns up to 100 results and a nextToken value if applicable.

", + "ListTaskDefinitionFamiliesRequest$maxResults": "

The maximum number of task definition family results returned by ListTaskDefinitionFamilies in paginated output. When this parameter is used, ListTaskDefinitions only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListTaskDefinitionFamilies request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListTaskDefinitionFamilies returns up to 100 results and a nextToken value if applicable.

", + "ListTaskDefinitionsRequest$maxResults": "

The maximum number of task definition results returned by ListTaskDefinitions in paginated output. When this parameter is used, ListTaskDefinitions only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListTaskDefinitions request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListTaskDefinitions returns up to 100 results and a nextToken value if applicable.

", + "ListTasksRequest$maxResults": "

The maximum number of task results returned by ListTasks in paginated output. When this parameter is used, ListTasks only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListTasks request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListTasks returns up to 100 results and a nextToken value if applicable.

", + "LoadBalancer$containerPort": "

The port on the container to associate with the load balancer. This port must correspond to a containerPort in the service's task definition. Your container instances must allow ingress traffic on the hostPort of the port mapping.

", + "NetworkBinding$containerPort": "

The port number on the container that is be used with the network binding.

", + "NetworkBinding$hostPort": "

The port number on the host that is used with the network binding.

", + "RunTaskRequest$count": "

The number of instantiations of the specified task that you would like to place on your cluster.

The count parameter is limited to 10 tasks per call.

", + "SubmitContainerStateChangeRequest$exitCode": "

The exit code returned for the state change request.

", + "UpdateServiceRequest$desiredCount": "

The number of instantiations of the task that you would like to place and keep running in your service.

" + } + }, + "ClientException": { + "base": "

These errors are usually caused by something the client did, such as use an action or resource on behalf of a user that doesn't have permission to use the action or resource, or specify an identifier that is not valid.

", + "refs": { + } + }, + "Cluster": { + "base": "

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 may contain more than one instance type simultaneously.

", + "refs": { + "Clusters$member": null, + "CreateClusterResponse$cluster": "

The full description of your new cluster.

", + "DeleteClusterResponse$cluster": "

The full description of the deleted cluster.

" + } + }, + "ClusterContainsContainerInstancesException": { + "base": "

You cannot delete a cluster that has registered container instances. You must first deregister the container instances before you can delete the cluster. For more information, see DeregisterContainerInstance.

", + "refs": { + } + }, + "ClusterContainsServicesException": { + "base": "

You cannot delete a cluster that contains services. You must first update the service to reduce its desired task count to 0 and then delete the service. For more information, see UpdateService and DeleteService.

", + "refs": { + } + }, + "ClusterNotFoundException": { + "base": "

The specified cluster could not be found. You can view your available clusters with ListClusters. Amazon ECS clusters are region-specific.

", + "refs": { + } + }, + "Clusters": { + "base": null, + "refs": { + "DescribeClustersResponse$clusters": "

The list of clusters.

" + } + }, + "Container": { + "base": "

A docker container that is part of a task.

", + "refs": { + "Containers$member": null + } + }, + "ContainerDefinition": { + "base": "

Container definitions are used in task definitions to describe the different containers that are launched as part of a task.

", + "refs": { + "ContainerDefinitions$member": null + } + }, + "ContainerDefinitions": { + "base": null, + "refs": { + "RegisterTaskDefinitionRequest$containerDefinitions": "

A list of container definitions in JSON format that describe the different containers that make up your task.

", + "TaskDefinition$containerDefinitions": "

A list of container definitions in JSON format that describe the different containers that make up your task. For more information on container definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

" + } + }, + "ContainerInstance": { + "base": "

An Amazon EC2 instance that is running the Amazon ECS agent and has been registered with a cluster.

", + "refs": { + "ContainerInstances$member": null, + "DeregisterContainerInstanceResponse$containerInstance": null, + "RegisterContainerInstanceResponse$containerInstance": null, + "UpdateContainerAgentResponse$containerInstance": null + } + }, + "ContainerInstances": { + "base": null, + "refs": { + "DescribeContainerInstancesResponse$containerInstances": "

The list of container instances.

" + } + }, + "ContainerOverride": { + "base": "

The overrides that should be sent to a container.

", + "refs": { + "ContainerOverrides$member": null + } + }, + "ContainerOverrides": { + "base": null, + "refs": { + "TaskOverride$containerOverrides": "

One or more container overrides sent to a task.

" + } + }, + "Containers": { + "base": null, + "refs": { + "Task$containers": "

The containers associated with the task.

" + } + }, + "CreateClusterRequest": { + "base": null, + "refs": { + } + }, + "CreateClusterResponse": { + "base": null, + "refs": { + } + }, + "CreateServiceRequest": { + "base": null, + "refs": { + } + }, + "CreateServiceResponse": { + "base": null, + "refs": { + } + }, + "DeleteClusterRequest": { + "base": null, + "refs": { + } + }, + "DeleteClusterResponse": { + "base": null, + "refs": { + } + }, + "DeleteServiceRequest": { + "base": null, + "refs": { + } + }, + "DeleteServiceResponse": { + "base": null, + "refs": { + } + }, + "Deployment": { + "base": "

The details of an Amazon ECS service deployment.

", + "refs": { + "Deployments$member": null + } + }, + "Deployments": { + "base": null, + "refs": { + "Service$deployments": "

The current state of deployments for the service.

" + } + }, + "DeregisterContainerInstanceRequest": { + "base": null, + "refs": { + } + }, + "DeregisterContainerInstanceResponse": { + "base": null, + "refs": { + } + }, + "DeregisterTaskDefinitionRequest": { + "base": null, + "refs": { + } + }, + "DeregisterTaskDefinitionResponse": { + "base": null, + "refs": { + } + }, + "DescribeClustersRequest": { + "base": null, + "refs": { + } + }, + "DescribeClustersResponse": { + "base": null, + "refs": { + } + }, + "DescribeContainerInstancesRequest": { + "base": null, + "refs": { + } + }, + "DescribeContainerInstancesResponse": { + "base": null, + "refs": { + } + }, + "DescribeServicesRequest": { + "base": null, + "refs": { + } + }, + "DescribeServicesResponse": { + "base": null, + "refs": { + } + }, + "DescribeTaskDefinitionRequest": { + "base": null, + "refs": { + } + }, + "DescribeTaskDefinitionResponse": { + "base": null, + "refs": { + } + }, + "DescribeTasksRequest": { + "base": null, + "refs": { + } + }, + "DescribeTasksResponse": { + "base": null, + "refs": { + } + }, + "DesiredStatus": { + "base": null, + "refs": { + "ListTasksRequest$desiredStatus": "

The task status that you want to filter the ListTasks results with. Specifying a desiredStatus of STOPPED will limit the results to tasks that are in the STOPPED status, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter is RUNNING.

" + } + }, + "DiscoverPollEndpointRequest": { + "base": null, + "refs": { + } + }, + "DiscoverPollEndpointResponse": { + "base": null, + "refs": { + } + }, + "Double": { + "base": null, + "refs": { + "Resource$doubleValue": "

When the doubleValue type is set, the value of the resource must be a double precision floating-point type.

" + } + }, + "EnvironmentVariables": { + "base": null, + "refs": { + "ContainerDefinition$environment": "

The environment variables to pass to a container.

", + "ContainerOverride$environment": "

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

" + } + }, + "Failure": { + "base": "

A failed resource.

", + "refs": { + "Failures$member": null + } + }, + "Failures": { + "base": null, + "refs": { + "DescribeClustersResponse$failures": null, + "DescribeContainerInstancesResponse$failures": null, + "DescribeServicesResponse$failures": "

Any failures associated with the call.

", + "DescribeTasksResponse$failures": null, + "RunTaskResponse$failures": "

Any failed tasks from your RunTask action are listed here.

", + "StartTaskResponse$failures": "

Any failed tasks from your StartTask action are listed here.

" + } + }, + "HostVolumeProperties": { + "base": "

Details on a container instance host volume.

", + "refs": { + "Volume$host": "

The path on the host container instance that is presented to the containers which access the volume. If this parameter is empty, then the Docker daemon assigns a host path for you.

" + } + }, + "Integer": { + "base": null, + "refs": { + "Cluster$registeredContainerInstancesCount": "

The number of container instances registered into the cluster.

", + "Cluster$runningTasksCount": "

The number of tasks in the cluster that are in the RUNNING state.

", + "Cluster$pendingTasksCount": "

The number of tasks in the cluster that are in the PENDING state.

", + "Cluster$activeServicesCount": "

The number of services that are running on the cluster in an ACTIVE state. You can view these services with ListServices.

", + "ContainerDefinition$cpu": "

The number of cpu units reserved for the container. A container instance has 1,024 cpu units for every CPU core. This parameter specifies the minimum amount of CPU to reserve for a container, and containers share unallocated CPU units with other containers on the instance with the same ratio as their allocated amount.

For example, if you run a single-container task on a single-core instance type with 512 CPU units specified for that container, and that is the only task running on the container instance, that container could use the full 1,024 CPU unit share at any given time. However, if you launched another copy of the same task on that container instance, each task would be guaranteed a minimum of 512 CPU units when needed, and each container could float to higher CPU usage if the other container was not using it, but if both tasks were 100% active all of the time, they would be limited to 512 CPU units.

The Docker daemon on the container instance uses the CPU value to calculate the relative CPU share ratios for running containers. For more information, see CPU share constraint in the Docker documentation. The minimum valid CPU share value that the Linux kernel will allow is 2; however, the CPU parameter is not required, and you can use CPU values below 2 in your container definitions. For CPU values below 2 (including null), the behavior varies based on your Amazon ECS container agent version:

  • Agent versions less than or equal to 1.1.0: Null and zero CPU values are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to Docker as 1, which the Linux kernel converts to 2 CPU shares.
  • Agent versions greater than or equal to 1.2.0: Null, zero, and CPU values of 1 are passed to Docker as 2.
", + "ContainerDefinition$memory": "

The number of MiB of memory reserved for the container. If your container attempts to exceed the memory allocated here, the container is killed.

", + "ContainerInstance$runningTasksCount": "

The number of tasks on the container instance that are in the RUNNING status.

", + "ContainerInstance$pendingTasksCount": "

The number of tasks on the container instance that are in the PENDING status.

", + "Deployment$desiredCount": "

The most recent desired count of tasks that was specified for the service to deploy and/or maintain.

", + "Deployment$pendingCount": "

The number of tasks in the deployment that are in the PENDING status.

", + "Deployment$runningCount": "

The number of tasks in the deployment that are in the RUNNING status.

", + "PortMapping$containerPort": "

The port number on the container that is bound to the user-specified or automatically assigned host port. If you specify a container port and not a host port, your container will automatically receive a host port in the ephemeral port range (for more information, see hostPort).

", + "PortMapping$hostPort": "

The port number on the container instance to reserve for your container. You can specify a non-reserved host port for your container port mapping, or you can omit the hostPort (or set it to 0) while specifying a containerPort and your container will automatically receive a port in the ephemeral port range for your container instance operating system and Docker version.

The default ephemeral port range is 49153 to 65535, and this range is used for Docker versions prior to 1.6.0. For Docker version 1.6.0 and later, the Docker daemon tries to read the ephemeral port range from /proc/sys/net/ipv4/ip_local_port_range; if this kernel parameter is unavailable, the default ephemeral port range is used. You should not attempt to specify a host port in the ephemeral port range, since these are reserved for automatic assignment. In general, ports below 32768 are outside of the ephemeral port range.

The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, and the Amazon ECS Container Agent port 51678. Any host port that was previously specified in a running task is also reserved while the task is running (once a task stops, the host port is released).The current reserved ports are displayed in the remainingResources of DescribeContainerInstances output, and a container instance may have up to 50 reserved ports at a time, including the default reserved ports (automatically assigned ports do not count toward this limit).

", + "Resource$integerValue": "

When the integerValue type is set, the value of the resource must be an integer.

", + "Service$desiredCount": "

The desired number of instantiations of the task definition to keep running on the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.

", + "Service$runningCount": "

The number of tasks in the cluster that are in the RUNNING state.

", + "Service$pendingCount": "

The number of tasks in the cluster that are in the PENDING state.

", + "TaskDefinition$revision": "

The revision of the task in a particular family. You can think of the revision as a version number of a task definition in a family. When you register a task definition for the first time, the revision is 1, and each time you register a new revision of a task definition in the same family, the revision value always increases by one (even if you have deregistered previous revisions in this family).

" + } + }, + "InvalidParameterException": { + "base": "

The specified parameter is invalid. Review the available parameters for the API request.

", + "refs": { + } + }, + "KeyValuePair": { + "base": "

A key and value pair object.

", + "refs": { + "EnvironmentVariables$member": null + } + }, + "ListClustersRequest": { + "base": null, + "refs": { + } + }, + "ListClustersResponse": { + "base": null, + "refs": { + } + }, + "ListContainerInstancesRequest": { + "base": null, + "refs": { + } + }, + "ListContainerInstancesResponse": { + "base": null, + "refs": { + } + }, + "ListServicesRequest": { + "base": null, + "refs": { + } + }, + "ListServicesResponse": { + "base": null, + "refs": { + } + }, + "ListTaskDefinitionFamiliesRequest": { + "base": null, + "refs": { + } + }, + "ListTaskDefinitionFamiliesResponse": { + "base": null, + "refs": { + } + }, + "ListTaskDefinitionsRequest": { + "base": null, + "refs": { + } + }, + "ListTaskDefinitionsResponse": { + "base": null, + "refs": { + } + }, + "ListTasksRequest": { + "base": null, + "refs": { + } + }, + "ListTasksResponse": { + "base": null, + "refs": { + } + }, + "LoadBalancer": { + "base": "

Details on a load balancer that is used with a service.

", + "refs": { + "LoadBalancers$member": null + } + }, + "LoadBalancers": { + "base": null, + "refs": { + "CreateServiceRequest$loadBalancers": "

A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.

", + "Service$loadBalancers": "

A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.

" + } + }, + "Long": { + "base": null, + "refs": { + "Resource$longValue": "

When the longValue type is set, the value of the resource must be an extended precision floating-point type.

" + } + }, + "MissingVersionException": { + "base": "

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.

", + "refs": { + } + }, + "MountPoint": { + "base": "

Details on a volume mount point that is used in a container definition.

", + "refs": { + "MountPointList$member": null + } + }, + "MountPointList": { + "base": null, + "refs": { + "ContainerDefinition$mountPoints": "

The mount points for data volumes in your container.

" + } + }, + "NetworkBinding": { + "base": "

Details on the network bindings between a container and its host container instance.

", + "refs": { + "NetworkBindings$member": null + } + }, + "NetworkBindings": { + "base": null, + "refs": { + "Container$networkBindings": "

The network bindings associated with the container.

", + "SubmitContainerStateChangeRequest$networkBindings": "

The network bindings of the container.

" + } + }, + "NoUpdateAvailableException": { + "base": "

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.

", + "refs": { + } + }, + "PortMapping": { + "base": "

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.

", + "refs": { + "PortMappingList$member": null + } + }, + "PortMappingList": { + "base": null, + "refs": { + "ContainerDefinition$portMappings": "

The list of port mappings for the container.

" + } + }, + "RegisterContainerInstanceRequest": { + "base": null, + "refs": { + } + }, + "RegisterContainerInstanceResponse": { + "base": null, + "refs": { + } + }, + "RegisterTaskDefinitionRequest": { + "base": null, + "refs": { + } + }, + "RegisterTaskDefinitionResponse": { + "base": null, + "refs": { + } + }, + "Resource": { + "base": "

Describes the resources available for a container instance.

", + "refs": { + "Resources$member": null + } + }, + "Resources": { + "base": null, + "refs": { + "ContainerInstance$remainingResources": "

The remaining resources of the container instance that are available for new tasks.

", + "ContainerInstance$registeredResources": "

The registered resources on the container instance that are in use by current tasks.

", + "RegisterContainerInstanceRequest$totalResources": "

The resources available on the instance.

" + } + }, + "RunTaskRequest": { + "base": null, + "refs": { + } + }, + "RunTaskResponse": { + "base": null, + "refs": { + } + }, + "ServerException": { + "base": "

These errors are usually caused by a server-side issue.

", + "refs": { + } + }, + "Service": { + "base": "

Details on a service within a cluster

", + "refs": { + "CreateServiceResponse$service": "

The full description of your service following the create call.

", + "DeleteServiceResponse$service": null, + "Services$member": null, + "UpdateServiceResponse$service": "

The full description of your service following the update call.

" + } + }, + "ServiceEvent": { + "base": "

Details on an event associated with a service.

", + "refs": { + "ServiceEvents$member": null + } + }, + "ServiceEvents": { + "base": null, + "refs": { + "Service$events": "

The event stream for your service. A maximum of 100 of the latest events are displayed.

" + } + }, + "ServiceNotActiveException": { + "base": "

The specified service is not active. You cannot update a service that is not active. If you have previously deleted a service, you can recreate it with CreateService.

", + "refs": { + } + }, + "ServiceNotFoundException": { + "base": "

The specified service could not be found. You can view your available services with ListServices. Amazon ECS services are cluster-specific and region-specific.

", + "refs": { + } + }, + "Services": { + "base": null, + "refs": { + "DescribeServicesResponse$services": "

The list of services described.

" + } + }, + "SortOrder": { + "base": null, + "refs": { + "ListTaskDefinitionsRequest$sort": "

The order in which to sort the results. Valid values are ASC and DESC. By default (ASC), task definitions are listed lexicographically by family name and in ascending numerical order by revision so that the newest task definitions in a family are listed last. Setting this parameter to DESC reverses the sort order on family name and revision so that the newest task definitions in a family are listed first.

" + } + }, + "StartTaskRequest": { + "base": null, + "refs": { + } + }, + "StartTaskResponse": { + "base": null, + "refs": { + } + }, + "StopTaskRequest": { + "base": null, + "refs": { + } + }, + "StopTaskResponse": { + "base": null, + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "ClientException$message": null, + "Cluster$clusterArn": "

The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the cluster namespace, and then the cluster name. For example, arn:aws:ecs:region:012345678910:cluster/test.

", + "Cluster$clusterName": "

A user-generated string that you can use to identify your cluster.

", + "Cluster$status": "

The status of the cluster. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that you can register container instances with the cluster and the associated instances can accept tasks.

", + "Container$containerArn": "

The Amazon Resource Name (ARN) of the container.

", + "Container$taskArn": "

The Amazon Resource Name (ARN) of the task.

", + "Container$name": "

The name of the container.

", + "Container$lastStatus": "

The last known status of the container.

", + "Container$reason": "

A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.

", + "ContainerDefinition$name": "

The name of a container. If you are linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers.

", + "ContainerDefinition$image": "

The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with repository-url/image:tag.

", + "ContainerInstance$containerInstanceArn": "

The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance UUID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_UUID.

", + "ContainerInstance$ec2InstanceId": "

The Amazon EC2 instance ID of the container instance.

", + "ContainerInstance$status": "

The status of the container instance. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that the container instance can accept tasks.

", + "ContainerOverride$name": "

The name of the container that receives the override.

", + "CreateClusterRequest$clusterName": "

The name of your cluster. If you do not specify a name for your cluster, you will create a cluster named default. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

", + "CreateServiceRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that you want to run your service on. If you do not specify a cluster, the default cluster is assumed.

", + "CreateServiceRequest$serviceName": "

The name of your service. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a region or across multiple regions.

", + "CreateServiceRequest$taskDefinition": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition that you want to run in your service. If a revision is not specified, the latest ACTIVE revision is used.

", + "CreateServiceRequest$clientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. Up to 32 ASCII characters are allowed.

", + "CreateServiceRequest$role": "

The name or full Amazon Resource Name (ARN) of the IAM role that allows your Amazon ECS container agent to make calls to your load balancer on your behalf. This parameter is only required if you are using a load balancer with your service.

", + "DeleteClusterRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that you want to delete.

", + "DeleteServiceRequest$cluster": "

The name of the cluster that hosts the service you want to delete.

", + "DeleteServiceRequest$service": "

The name of the service you want to delete.

", + "Deployment$id": "

The ID of the deployment.

", + "Deployment$status": "

The status of the deployment. Valid values are PRIMARY (for the most recent deployment), ACTIVE (for previous deployments that still have tasks running, but are being replaced with the PRIMARY deployment), and INACTIVE (for deployments that have been completely replaced).

", + "Deployment$taskDefinition": "

The most recent task definition that was specified for the service to use.

", + "DeregisterContainerInstanceRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance you want to deregister. If you do not specify a cluster, the default cluster is assumed.

", + "DeregisterContainerInstanceRequest$containerInstance": "

The container instance UUID or full Amazon Resource Name (ARN) of the container instance you want to deregister. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance UUID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_UUID.

", + "DeregisterTaskDefinitionRequest$taskDefinition": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition that you want to deregister. You must specify a revision.

", + "DescribeContainerInstancesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances you want to describe. If you do not specify a cluster, the default cluster is assumed.

", + "DescribeServicesRequest$cluster": "

The name of the cluster that hosts the service you want to describe.

", + "DescribeTaskDefinitionRequest$taskDefinition": "

The family for the latest ACTIVE revision, family and revision (family:revision) for a specific revision in the family, or full Amazon Resource Name (ARN) of the task definition that you want to describe.

", + "DescribeTasksRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task you want to describe. If you do not specify a cluster, the default cluster is assumed.

", + "DiscoverPollEndpointRequest$containerInstance": "

The container instance UUID or full Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance UUID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_UUID.

", + "DiscoverPollEndpointRequest$cluster": "

The cluster that the container instance belongs to.

", + "DiscoverPollEndpointResponse$endpoint": "

The endpoint for the Amazon ECS agent to poll.

", + "DiscoverPollEndpointResponse$telemetryEndpoint": "

The telemetry endpoint for the Amazon ECS agent.

", + "Failure$arn": "

The Amazon Resource Name (ARN) of the failed resource.

", + "Failure$reason": "

The reason for the failure.

", + "HostVolumeProperties$sourcePath": "

The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you.

", + "KeyValuePair$name": "

The name of the key value pair. For environment variables, this is the name of the environment variable.

", + "KeyValuePair$value": "

The value of the key value pair. For environment variables, this is the value of the environment variable.

", + "ListClustersRequest$nextToken": "

The nextToken value returned from a previous paginated ListClusters request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

", + "ListClustersResponse$nextToken": "

The nextToken value to include in a future ListClusters request. When the results of a ListClusters request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "ListContainerInstancesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances you want to list. If you do not specify a cluster, the default cluster is assumed..

", + "ListContainerInstancesRequest$nextToken": "

The nextToken value returned from a previous paginated ListContainerInstances request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

", + "ListContainerInstancesResponse$nextToken": "

The nextToken value to include in a future ListContainerInstances request. When the results of a ListContainerInstances request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "ListServicesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the services you want to list. If you do not specify a cluster, the default cluster is assumed..

", + "ListServicesRequest$nextToken": "

The nextToken value returned from a previous paginated ListServices request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

", + "ListServicesResponse$nextToken": "

The nextToken value to include in a future ListServices request. When the results of a ListServices request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "ListTaskDefinitionFamiliesRequest$familyPrefix": "

The familyPrefix is a string that is used to filter the results of ListTaskDefinitionFamilies. If you specify a familyPrefix, only task definition family names that begin with the familyPrefix string are returned.

", + "ListTaskDefinitionFamiliesRequest$nextToken": "

The nextToken value returned from a previous paginated ListTaskDefinitionFamilies request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

", + "ListTaskDefinitionFamiliesResponse$nextToken": "

The nextToken value to include in a future ListTaskDefinitionFamilies request. When the results of a ListTaskDefinitionFamilies request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "ListTaskDefinitionsRequest$familyPrefix": "

The full family name that you want to filter the ListTaskDefinitions results with. Specifying a familyPrefix will limit the listed task definitions to task definition revisions that belong to that family.

", + "ListTaskDefinitionsRequest$nextToken": "

The nextToken value returned from a previous paginated ListTaskDefinitions request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

", + "ListTaskDefinitionsResponse$nextToken": "

The nextToken value to include in a future ListTaskDefinitions request. When the results of a ListTaskDefinitions request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "ListTasksRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the tasks you want to list. If you do not specify a cluster, the default cluster is assumed..

", + "ListTasksRequest$containerInstance": "

The container instance UUID or full Amazon Resource Name (ARN) of the container instance that you want to filter the ListTasks results with. Specifying a containerInstance will limit the results to tasks that belong to that container instance.

", + "ListTasksRequest$family": "

The name of the family that you want to filter the ListTasks results with. Specifying a family will limit the results to tasks that belong to that family.

", + "ListTasksRequest$nextToken": "

The nextToken value returned from a previous paginated ListTasks request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

", + "ListTasksRequest$startedBy": "

The startedBy value that you want to filter the task results with. Specifying a startedBy value will limit the results to tasks that were started with that value.

", + "ListTasksRequest$serviceName": "

The name of the service that you want to filter the ListTasks results with. Specifying a serviceName will limit the results to tasks that belong to that service.

", + "ListTasksResponse$nextToken": "

The nextToken value to include in a future ListTasks request. When the results of a ListTasks request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

", + "LoadBalancer$loadBalancerName": "

The name of the load balancer.

", + "LoadBalancer$containerName": "

The name of the container to associate with the load balancer.

", + "MountPoint$sourceVolume": "

The name of the volume to mount.

", + "MountPoint$containerPath": "

The path on the container to mount the host volume at.

", + "NetworkBinding$bindIP": "

The IP address that the container is bound to on the container instance.

", + "RegisterContainerInstanceRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that you want to register your container instance with. If you do not specify a cluster, the default cluster is assumed..

", + "RegisterContainerInstanceRequest$instanceIdentityDocument": "

The instance identity document for the Amazon EC2 instance to register. This document can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/document/

", + "RegisterContainerInstanceRequest$instanceIdentityDocumentSignature": "

The instance identity document signature for the Amazon EC2 instance to register. This signature can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/signature/

", + "RegisterContainerInstanceRequest$containerInstanceArn": "

The Amazon Resource Name (ARN) of the container instance (if it was previously registered).

", + "RegisterTaskDefinitionRequest$family": "

You must specify a family for a task definition, which allows you to track multiple versions of the same task definition. You can think of the family as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

", + "Resource$name": "

The name of the resource, such as CPU, MEMORY, PORTS, or a user-defined resource.

", + "Resource$type": "

The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.

", + "RunTaskRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that you want to run your task on. If you do not specify a cluster, the default cluster is assumed..

", + "RunTaskRequest$taskDefinition": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition that you want to run. If a revision is not specified, the latest ACTIVE revision is used.

", + "RunTaskRequest$startedBy": "

An optional tag specified when a task is started. For example if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the startedBy parameter. You can then identify which tasks belong to that job by filtering the results of a ListTasks call with the startedBy value.

If a task is started by an Amazon ECS service, then the startedBy parameter contains the deployment ID of the service that starts it.

", + "ServerException$message": null, + "Service$serviceArn": "

The Amazon Resource Name (ARN) that identifies the service. The ARN contains the arn:aws:ecs namespace, followed by the region of the service, the AWS account ID of the service owner, the service namespace, and then the service name. For example, arn:aws:ecs:region:012345678910:service/my-service.

", + "Service$serviceName": "

A user-generated string that you can use to identify your service.

", + "Service$clusterArn": "

The Amazon Resource Name (ARN) of the of the cluster that hosts the service.

", + "Service$status": "

The status of the service. The valid values are ACTIVE, DRAINING, or INACTIVE.

", + "Service$taskDefinition": "

The task definition to use for tasks in the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.

", + "Service$roleArn": "

The Amazon Resource Name (ARN) of the IAM role associated with the service that allows the Amazon ECS container agent to register container instances with a load balancer.

", + "ServiceEvent$id": "

The ID string of the event.

", + "ServiceEvent$message": "

The event message.

", + "StartTaskRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that you want to start your task on. If you do not specify a cluster, the default cluster is assumed..

", + "StartTaskRequest$taskDefinition": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition that you want to start. If a revision is not specified, the latest ACTIVE revision is used.

", + "StartTaskRequest$startedBy": "

An optional tag specified when a task is started. For example if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the startedBy parameter. You can then identify which tasks belong to that job by filtering the results of a ListTasks call with the startedBy value.

If a task is started by an Amazon ECS service, then the startedBy parameter contains the deployment ID of the service that starts it.

", + "StopTaskRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task you want to stop. If you do not specify a cluster, the default cluster is assumed..

", + "StopTaskRequest$task": "

The task UUIDs or full Amazon Resource Name (ARN) entry of the task you would like to stop.

", + "StringList$member": null, + "SubmitContainerStateChangeRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container.

", + "SubmitContainerStateChangeRequest$task": "

The task UUID or full Amazon Resource Name (ARN) of the task that hosts the container.

", + "SubmitContainerStateChangeRequest$containerName": "

The name of the container.

", + "SubmitContainerStateChangeRequest$status": "

The status of the state change request.

", + "SubmitContainerStateChangeRequest$reason": "

The reason for the state change request.

", + "SubmitContainerStateChangeResponse$acknowledgment": "

Acknowledgement of the state change.

", + "SubmitTaskStateChangeRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.

", + "SubmitTaskStateChangeRequest$task": "

The task UUID or full Amazon Resource Name (ARN) of the task in the state change request.

", + "SubmitTaskStateChangeRequest$status": "

The status of the state change request.

", + "SubmitTaskStateChangeRequest$reason": "

The reason for the state change request.

", + "SubmitTaskStateChangeResponse$acknowledgment": "

Acknowledgement of the state change.

", + "Task$taskArn": "

The Amazon Resource Name (ARN) of the task.

", + "Task$clusterArn": "

The Amazon Resource Name (ARN) of the of the cluster that hosts the task.

", + "Task$taskDefinitionArn": "

The Amazon Resource Name (ARN) of the of the task definition that creates the task.

", + "Task$containerInstanceArn": "

The Amazon Resource Name (ARN) of the container instances that host the task.

", + "Task$lastStatus": "

The last known status of the task.

", + "Task$desiredStatus": "

The desired status of the task.

", + "Task$startedBy": "

The tag specified when a task is started. If the task is started by an Amazon ECS service, then the startedBy parameter contains the deployment ID of the service that starts it.

", + "TaskDefinition$taskDefinitionArn": "

The full Amazon Resource Name (ARN) of the of the task definition.

", + "TaskDefinition$family": "

The family of your task definition. You can think of the family as the name of your task definition.

", + "UpdateContainerAgentRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that your container instance is running on. If you do not specify a cluster, the default cluster is assumed.

", + "UpdateContainerAgentRequest$containerInstance": "

The container instance UUID or full Amazon Resource Name (ARN) entries for the container instance on which you would like to update the Amazon ECS container agent.

", + "UpdateServiceRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.

", + "UpdateServiceRequest$service": "

The name of the service that you want to update.

", + "UpdateServiceRequest$taskDefinition": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition that you want to run in your service. If a revision is not specified, the latest ACTIVE revision is used. If you modify the task definition with UpdateService, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.

", + "VersionInfo$agentVersion": "

The version number of the Amazon ECS container agent.

", + "VersionInfo$agentHash": "

The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent GitHub repository.

", + "VersionInfo$dockerVersion": "

The Docker version running on the container instance.

", + "Volume$name": "

The name of the volume. This name is referenced in the sourceVolume parameter of container definition mountPoints.

", + "VolumeFrom$sourceContainer": "

The name of the container to mount volumes from.

" + } + }, + "StringList": { + "base": null, + "refs": { + "ContainerDefinition$links": "

The link parameter allows containers to communicate with each other without the need for port mappings, using the name parameter. The name:internalName construct is analogous to name:alias in Docker links. For more information on linking Docker containers, see https://docs.docker.com/userguide/dockerlinks/.

Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.

", + "ContainerDefinition$entryPoint": "

Early versions of the Amazon ECS container agent do not properly handle entryPoint parameters. If you have problems using entryPoint, update your container agent or enter your commands and arguments as command array items instead.

The ENTRYPOINT that is passed to the container. For more information on the Docker ENTRYPOINT parameter, see https://docs.docker.com/reference/builder/#entrypoint.

", + "ContainerDefinition$command": "

The CMD that is passed to the container. For more information on the Docker CMD parameter, see https://docs.docker.com/reference/builder/#cmd.

", + "ContainerOverride$command": "

The command to send to the container that overrides the default command from the Docker image or the task definition.

", + "DescribeClustersRequest$clusters": "

A space-separated list of cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a cluster, the default cluster is assumed.

", + "DescribeContainerInstancesRequest$containerInstances": "

A space-separated list of container instance UUIDs or full Amazon Resource Name (ARN) entries.

", + "DescribeServicesRequest$services": "

A list of services you want to describe.

", + "DescribeTasksRequest$tasks": "

A space-separated list of task UUIDs or full Amazon Resource Name (ARN) entries.

", + "ListClustersResponse$clusterArns": "

The list of full Amazon Resource Name (ARN) entries for each cluster associated with your account.

", + "ListContainerInstancesResponse$containerInstanceArns": "

The list of container instance full Amazon Resource Name (ARN) entries for each container instance associated with the specified cluster.

", + "ListServicesResponse$serviceArns": "

The list of full Amazon Resource Name (ARN) entries for each service associated with the specified cluster.

", + "ListTaskDefinitionFamiliesResponse$families": "

The list of task definition family names that match the ListTaskDefinitionFamilies request.

", + "ListTaskDefinitionsResponse$taskDefinitionArns": "

The list of task definition Amazon Resource Name (ARN) entries for the ListTaskDefintions request.

", + "ListTasksResponse$taskArns": "

The list of task Amazon Resource Name (ARN) entries for the ListTasks request.

", + "Resource$stringSetValue": "

When the stringSetValue type is set, the value of the resource must be a string type.

", + "StartTaskRequest$containerInstances": "

The container instance UUIDs or full Amazon Resource Name (ARN) entries for the container instances on which you would like to place your task.

The list of container instances to start tasks on is limited to 10.

" + } + }, + "SubmitContainerStateChangeRequest": { + "base": null, + "refs": { + } + }, + "SubmitContainerStateChangeResponse": { + "base": null, + "refs": { + } + }, + "SubmitTaskStateChangeRequest": { + "base": null, + "refs": { + } + }, + "SubmitTaskStateChangeResponse": { + "base": null, + "refs": { + } + }, + "Task": { + "base": "

Details on a task in a cluster.

", + "refs": { + "StopTaskResponse$task": null, + "Tasks$member": null + } + }, + "TaskDefinition": { + "base": "

Details of a task definition.

", + "refs": { + "DeregisterTaskDefinitionResponse$taskDefinition": "

The full description of the deregistered task.

", + "DescribeTaskDefinitionResponse$taskDefinition": "

The full task definition description.

", + "RegisterTaskDefinitionResponse$taskDefinition": null + } + }, + "TaskDefinitionStatus": { + "base": null, + "refs": { + "ListTaskDefinitionsRequest$status": "

The task definition status that you want to filter the ListTaskDefinitions results with. By default, only ACTIVE task definitions are listed. By setting this parameter to INACTIVE, you can view task definitions that are INACTIVE as long as an active task or service still references them. If you paginate the resulting output, be sure to keep the status value constant in each subsequent request.

", + "TaskDefinition$status": "

The status of the task definition.

" + } + }, + "TaskOverride": { + "base": "

The overrides associated with a task.

", + "refs": { + "RunTaskRequest$overrides": "

A list of container overrides in JSON format that specify the name of a container in the specified task definition and the overrides it should receive. You can override the default command for a container (that is specified in the task definition or Docker image) with a command override. You can also override existing environment variables (that are specified in the task definition or Docker image) on a container or add new environment variables to it with an environment override.

A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting characters of the override structure.

", + "StartTaskRequest$overrides": "

A list of container overrides in JSON format that specify the name of a container in the specified task definition and the overrides it should receive. You can override the default command for a container (that is specified in the task definition or Docker image) with a command override. You can also override existing environment variables (that are specified in the task definition or Docker image) on a container or add new environment variables to it with an environment override.

A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting characters of the override structure.

", + "Task$overrides": "

One or more container overrides.

" + } + }, + "Tasks": { + "base": null, + "refs": { + "DescribeTasksResponse$tasks": "

The list of tasks.

", + "RunTaskResponse$tasks": "

A full description of the tasks that were run. Each task that was successfully placed on your cluster will be described here.

", + "StartTaskResponse$tasks": "

A full description of the tasks that were started. Each task that was successfully placed on your container instances will be described here.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "Deployment$createdAt": "

The Unix time in seconds and milliseconds when the service was created.

", + "Deployment$updatedAt": "

The Unix time in seconds and milliseconds when the service was last updated.

", + "ServiceEvent$createdAt": "

The Unix time in seconds and milliseconds when the event was triggered.

" + } + }, + "TransportProtocol": { + "base": null, + "refs": { + "NetworkBinding$protocol": "

The protocol used for the network binding.

", + "PortMapping$protocol": "

The protocol used for the port mapping. Valid values are tcp and udp. The default is tcp.

" + } + }, + "UpdateContainerAgentRequest": { + "base": null, + "refs": { + } + }, + "UpdateContainerAgentResponse": { + "base": null, + "refs": { + } + }, + "UpdateInProgressException": { + "base": "

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 will resume where it stopped previously.

", + "refs": { + } + }, + "UpdateServiceRequest": { + "base": null, + "refs": { + } + }, + "UpdateServiceResponse": { + "base": null, + "refs": { + } + }, + "VersionInfo": { + "base": "

The Docker and Amazon ECS container agent version information on a container instance.

", + "refs": { + "ContainerInstance$versionInfo": "

The version information for the Amazon ECS container agent and Docker daemon running on the container instance.

", + "RegisterContainerInstanceRequest$versionInfo": "

The version information for the Amazon ECS container agent and Docker daemon running on the container instance.

" + } + }, + "Volume": { + "base": "

A data volume used in a task definition.

", + "refs": { + "VolumeList$member": null + } + }, + "VolumeFrom": { + "base": "

Details on a data volume from another container.

", + "refs": { + "VolumeFromList$member": null + } + }, + "VolumeFromList": { + "base": null, + "refs": { + "ContainerDefinition$volumesFrom": "

Data volumes to mount from another container.

" + } + }, + "VolumeList": { + "base": null, + "refs": { + "RegisterTaskDefinitionRequest$volumes": "

A list of volume definitions in JSON format that containers in your task may use.

", + "TaskDefinition$volumes": "

The list of volumes in a task. For more information on volume definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/ecs/2014-11-13/waiters-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/api-2.json similarity index 57% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/api-2.json index 9039e8a0f..cb6c24b92 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/api-2.json @@ -3,10 +3,10 @@ "metadata":{ "apiVersion":"2015-02-02", "endpointPrefix":"elasticache", - "protocol":"query", "serviceFullName":"Amazon ElastiCache", "signatureVersion":"v4", - "xmlNamespace":"http://elasticache.amazonaws.com/doc/2015-02-02/" + "xmlNamespace":"http://elasticache.amazonaws.com/doc/2015-02-02/", + "protocol":"query" }, "operations":{ "AddTagsToResource":{ @@ -21,10 +21,42 @@ "resultWrapper":"AddTagsToResourceResult" }, "errors":[ - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"SnapshotNotFoundFault"}, - {"shape":"TagQuotaPerResourceExceeded"}, - {"shape":"InvalidARNFault"} + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotNotFoundFault", + "error":{ + "code":"SnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagQuotaPerResourceExceeded", + "error":{ + "code":"TagQuotaPerResourceExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidARNFault", + "error":{ + "code":"InvalidARN", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "AuthorizeCacheSecurityGroupIngress":{ @@ -36,14 +68,55 @@ "input":{"shape":"AuthorizeCacheSecurityGroupIngressMessage"}, "output":{ "shape":"AuthorizeCacheSecurityGroupIngressResult", + "wrapper":true, "resultWrapper":"AuthorizeCacheSecurityGroupIngressResult" }, "errors":[ - {"shape":"CacheSecurityGroupNotFoundFault"}, - {"shape":"InvalidCacheSecurityGroupStateFault"}, - {"shape":"AuthorizationAlreadyExistsFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheSecurityGroupNotFoundFault", + "error":{ + "code":"CacheSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCacheSecurityGroupStateFault", + "error":{ + "code":"InvalidCacheSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationAlreadyExistsFault", + "error":{ + "code":"AuthorizationAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CopySnapshot":{ @@ -55,15 +128,64 @@ "input":{"shape":"CopySnapshotMessage"}, "output":{ "shape":"CopySnapshotResult", + "wrapper":true, "resultWrapper":"CopySnapshotResult" }, "errors":[ - {"shape":"SnapshotAlreadyExistsFault"}, - {"shape":"SnapshotNotFoundFault"}, - {"shape":"SnapshotQuotaExceededFault"}, - {"shape":"InvalidSnapshotStateFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"SnapshotAlreadyExistsFault", + "error":{ + "code":"SnapshotAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotNotFoundFault", + "error":{ + "code":"SnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotQuotaExceededFault", + "error":{ + "code":"SnapshotQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSnapshotStateFault", + "error":{ + "code":"InvalidSnapshotState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateCacheCluster":{ @@ -75,23 +197,136 @@ "input":{"shape":"CreateCacheClusterMessage"}, "output":{ "shape":"CreateCacheClusterResult", + "wrapper":true, "resultWrapper":"CreateCacheClusterResult" }, "errors":[ - {"shape":"ReplicationGroupNotFoundFault"}, - {"shape":"InvalidReplicationGroupStateFault"}, - {"shape":"CacheClusterAlreadyExistsFault"}, - {"shape":"InsufficientCacheClusterCapacityFault"}, - {"shape":"CacheSecurityGroupNotFoundFault"}, - {"shape":"CacheSubnetGroupNotFoundFault"}, - {"shape":"ClusterQuotaForCustomerExceededFault"}, - {"shape":"NodeQuotaForClusterExceededFault"}, - {"shape":"NodeQuotaForCustomerExceededFault"}, - {"shape":"CacheParameterGroupNotFoundFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"TagQuotaPerResourceExceeded"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"ReplicationGroupNotFoundFault", + "error":{ + "code":"ReplicationGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidReplicationGroupStateFault", + "error":{ + "code":"InvalidReplicationGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheClusterAlreadyExistsFault", + "error":{ + "code":"CacheClusterAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientCacheClusterCapacityFault", + "error":{ + "code":"InsufficientCacheClusterCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSecurityGroupNotFoundFault", + "error":{ + "code":"CacheSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSubnetGroupNotFoundFault", + "error":{ + "code":"CacheSubnetGroupNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterQuotaForCustomerExceededFault", + "error":{ + "code":"ClusterQuotaForCustomerExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NodeQuotaForClusterExceededFault", + "error":{ + "code":"NodeQuotaForClusterExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NodeQuotaForCustomerExceededFault", + "error":{ + "code":"NodeQuotaForCustomerExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheParameterGroupNotFoundFault", + "error":{ + "code":"CacheParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagQuotaPerResourceExceeded", + "error":{ + "code":"TagQuotaPerResourceExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateCacheParameterGroup":{ @@ -103,14 +338,55 @@ "input":{"shape":"CreateCacheParameterGroupMessage"}, "output":{ "shape":"CreateCacheParameterGroupResult", + "wrapper":true, "resultWrapper":"CreateCacheParameterGroupResult" }, "errors":[ - {"shape":"CacheParameterGroupQuotaExceededFault"}, - {"shape":"CacheParameterGroupAlreadyExistsFault"}, - {"shape":"InvalidCacheParameterGroupStateFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheParameterGroupQuotaExceededFault", + "error":{ + "code":"CacheParameterGroupQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheParameterGroupAlreadyExistsFault", + "error":{ + "code":"CacheParameterGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCacheParameterGroupStateFault", + "error":{ + "code":"InvalidCacheParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateCacheSecurityGroup":{ @@ -122,13 +398,46 @@ "input":{"shape":"CreateCacheSecurityGroupMessage"}, "output":{ "shape":"CreateCacheSecurityGroupResult", + "wrapper":true, "resultWrapper":"CreateCacheSecurityGroupResult" }, "errors":[ - {"shape":"CacheSecurityGroupAlreadyExistsFault"}, - {"shape":"CacheSecurityGroupQuotaExceededFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheSecurityGroupAlreadyExistsFault", + "error":{ + "code":"CacheSecurityGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSecurityGroupQuotaExceededFault", + "error":{ + "code":"QuotaExceeded.CacheSecurityGroup", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateCacheSubnetGroup":{ @@ -140,13 +449,46 @@ "input":{"shape":"CreateCacheSubnetGroupMessage"}, "output":{ "shape":"CreateCacheSubnetGroupResult", + "wrapper":true, "resultWrapper":"CreateCacheSubnetGroupResult" }, "errors":[ - {"shape":"CacheSubnetGroupAlreadyExistsFault"}, - {"shape":"CacheSubnetGroupQuotaExceededFault"}, - {"shape":"CacheSubnetQuotaExceededFault"}, - {"shape":"InvalidSubnet"} + { + "shape":"CacheSubnetGroupAlreadyExistsFault", + "error":{ + "code":"CacheSubnetGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSubnetGroupQuotaExceededFault", + "error":{ + "code":"CacheSubnetGroupQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSubnetQuotaExceededFault", + "error":{ + "code":"CacheSubnetQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateReplicationGroup":{ @@ -158,23 +500,136 @@ "input":{"shape":"CreateReplicationGroupMessage"}, "output":{ "shape":"CreateReplicationGroupResult", + "wrapper":true, "resultWrapper":"CreateReplicationGroupResult" }, "errors":[ - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"InvalidCacheClusterStateFault"}, - {"shape":"ReplicationGroupAlreadyExistsFault"}, - {"shape":"InsufficientCacheClusterCapacityFault"}, - {"shape":"CacheSecurityGroupNotFoundFault"}, - {"shape":"CacheSubnetGroupNotFoundFault"}, - {"shape":"ClusterQuotaForCustomerExceededFault"}, - {"shape":"NodeQuotaForClusterExceededFault"}, - {"shape":"NodeQuotaForCustomerExceededFault"}, - {"shape":"CacheParameterGroupNotFoundFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"TagQuotaPerResourceExceeded"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCacheClusterStateFault", + "error":{ + "code":"InvalidCacheClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ReplicationGroupAlreadyExistsFault", + "error":{ + "code":"ReplicationGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientCacheClusterCapacityFault", + "error":{ + "code":"InsufficientCacheClusterCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSecurityGroupNotFoundFault", + "error":{ + "code":"CacheSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSubnetGroupNotFoundFault", + "error":{ + "code":"CacheSubnetGroupNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterQuotaForCustomerExceededFault", + "error":{ + "code":"ClusterQuotaForCustomerExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NodeQuotaForClusterExceededFault", + "error":{ + "code":"NodeQuotaForClusterExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NodeQuotaForCustomerExceededFault", + "error":{ + "code":"NodeQuotaForCustomerExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheParameterGroupNotFoundFault", + "error":{ + "code":"CacheParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagQuotaPerResourceExceeded", + "error":{ + "code":"TagQuotaPerResourceExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateSnapshot":{ @@ -186,16 +641,73 @@ "input":{"shape":"CreateSnapshotMessage"}, "output":{ "shape":"CreateSnapshotResult", + "wrapper":true, "resultWrapper":"CreateSnapshotResult" }, "errors":[ - {"shape":"SnapshotAlreadyExistsFault"}, - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"InvalidCacheClusterStateFault"}, - {"shape":"SnapshotQuotaExceededFault"}, - {"shape":"SnapshotFeatureNotSupportedFault"}, - {"shape":"InvalidParameterCombinationException"}, - {"shape":"InvalidParameterValueException"} + { + "shape":"SnapshotAlreadyExistsFault", + "error":{ + "code":"SnapshotAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCacheClusterStateFault", + "error":{ + "code":"InvalidCacheClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotQuotaExceededFault", + "error":{ + "code":"SnapshotQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotFeatureNotSupportedFault", + "error":{ + "code":"SnapshotFeatureNotSupportedFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteCacheCluster":{ @@ -207,16 +719,73 @@ "input":{"shape":"DeleteCacheClusterMessage"}, "output":{ "shape":"DeleteCacheClusterResult", + "wrapper":true, "resultWrapper":"DeleteCacheClusterResult" }, "errors":[ - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"InvalidCacheClusterStateFault"}, - {"shape":"SnapshotAlreadyExistsFault"}, - {"shape":"SnapshotFeatureNotSupportedFault"}, - {"shape":"SnapshotQuotaExceededFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCacheClusterStateFault", + "error":{ + "code":"InvalidCacheClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotAlreadyExistsFault", + "error":{ + "code":"SnapshotAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotFeatureNotSupportedFault", + "error":{ + "code":"SnapshotFeatureNotSupportedFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotQuotaExceededFault", + "error":{ + "code":"SnapshotQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteCacheParameterGroup":{ @@ -227,10 +796,42 @@ }, "input":{"shape":"DeleteCacheParameterGroupMessage"}, "errors":[ - {"shape":"InvalidCacheParameterGroupStateFault"}, - {"shape":"CacheParameterGroupNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"InvalidCacheParameterGroupStateFault", + "error":{ + "code":"InvalidCacheParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheParameterGroupNotFoundFault", + "error":{ + "code":"CacheParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteCacheSecurityGroup":{ @@ -241,10 +842,42 @@ }, "input":{"shape":"DeleteCacheSecurityGroupMessage"}, "errors":[ - {"shape":"InvalidCacheSecurityGroupStateFault"}, - {"shape":"CacheSecurityGroupNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"InvalidCacheSecurityGroupStateFault", + "error":{ + "code":"InvalidCacheSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSecurityGroupNotFoundFault", + "error":{ + "code":"CacheSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteCacheSubnetGroup":{ @@ -255,8 +888,24 @@ }, "input":{"shape":"DeleteCacheSubnetGroupMessage"}, "errors":[ - {"shape":"CacheSubnetGroupInUse"}, - {"shape":"CacheSubnetGroupNotFoundFault"} + { + "shape":"CacheSubnetGroupInUse", + "error":{ + "code":"CacheSubnetGroupInUse", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSubnetGroupNotFoundFault", + "error":{ + "code":"CacheSubnetGroupNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteReplicationGroup":{ @@ -268,16 +917,73 @@ "input":{"shape":"DeleteReplicationGroupMessage"}, "output":{ "shape":"DeleteReplicationGroupResult", + "wrapper":true, "resultWrapper":"DeleteReplicationGroupResult" }, "errors":[ - {"shape":"ReplicationGroupNotFoundFault"}, - {"shape":"InvalidReplicationGroupStateFault"}, - {"shape":"SnapshotAlreadyExistsFault"}, - {"shape":"SnapshotFeatureNotSupportedFault"}, - {"shape":"SnapshotQuotaExceededFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"ReplicationGroupNotFoundFault", + "error":{ + "code":"ReplicationGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidReplicationGroupStateFault", + "error":{ + "code":"InvalidReplicationGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotAlreadyExistsFault", + "error":{ + "code":"SnapshotAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotFeatureNotSupportedFault", + "error":{ + "code":"SnapshotFeatureNotSupportedFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotQuotaExceededFault", + "error":{ + "code":"SnapshotQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteSnapshot":{ @@ -289,13 +995,46 @@ "input":{"shape":"DeleteSnapshotMessage"}, "output":{ "shape":"DeleteSnapshotResult", + "wrapper":true, "resultWrapper":"DeleteSnapshotResult" }, "errors":[ - {"shape":"SnapshotNotFoundFault"}, - {"shape":"InvalidSnapshotStateFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"SnapshotNotFoundFault", + "error":{ + "code":"SnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSnapshotStateFault", + "error":{ + "code":"InvalidSnapshotState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeCacheClusters":{ @@ -310,9 +1049,33 @@ "resultWrapper":"DescribeCacheClustersResult" }, "errors":[ - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeCacheEngineVersions":{ @@ -339,9 +1102,33 @@ "resultWrapper":"DescribeCacheParameterGroupsResult" }, "errors":[ - {"shape":"CacheParameterGroupNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheParameterGroupNotFoundFault", + "error":{ + "code":"CacheParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeCacheParameters":{ @@ -356,9 +1143,33 @@ "resultWrapper":"DescribeCacheParametersResult" }, "errors":[ - {"shape":"CacheParameterGroupNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheParameterGroupNotFoundFault", + "error":{ + "code":"CacheParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeCacheSecurityGroups":{ @@ -373,9 +1184,33 @@ "resultWrapper":"DescribeCacheSecurityGroupsResult" }, "errors":[ - {"shape":"CacheSecurityGroupNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheSecurityGroupNotFoundFault", + "error":{ + "code":"CacheSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeCacheSubnetGroups":{ @@ -390,7 +1225,15 @@ "resultWrapper":"DescribeCacheSubnetGroupsResult" }, "errors":[ - {"shape":"CacheSubnetGroupNotFoundFault"} + { + "shape":"CacheSubnetGroupNotFoundFault", + "error":{ + "code":"CacheSubnetGroupNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeEngineDefaultParameters":{ @@ -402,11 +1245,28 @@ "input":{"shape":"DescribeEngineDefaultParametersMessage"}, "output":{ "shape":"DescribeEngineDefaultParametersResult", + "wrapper":true, "resultWrapper":"DescribeEngineDefaultParametersResult" }, "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeEvents":{ @@ -421,8 +1281,24 @@ "resultWrapper":"DescribeEventsResult" }, "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeReplicationGroups":{ @@ -437,9 +1313,33 @@ "resultWrapper":"DescribeReplicationGroupsResult" }, "errors":[ - {"shape":"ReplicationGroupNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"ReplicationGroupNotFoundFault", + "error":{ + "code":"ReplicationGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeReservedCacheNodes":{ @@ -454,9 +1354,33 @@ "resultWrapper":"DescribeReservedCacheNodesResult" }, "errors":[ - {"shape":"ReservedCacheNodeNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"ReservedCacheNodeNotFoundFault", + "error":{ + "code":"ReservedCacheNodeNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeReservedCacheNodesOfferings":{ @@ -471,9 +1395,33 @@ "resultWrapper":"DescribeReservedCacheNodesOfferingsResult" }, "errors":[ - {"shape":"ReservedCacheNodesOfferingNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"ReservedCacheNodesOfferingNotFoundFault", + "error":{ + "code":"ReservedCacheNodesOfferingNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeSnapshots":{ @@ -488,28 +1436,42 @@ "resultWrapper":"DescribeSnapshotsResult" }, "errors":[ - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"SnapshotNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} - ] - }, - "ListAllowedNodeTypeModifications":{ - "name":"ListAllowedNodeTypeModifications", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAllowedNodeTypeModificationsMessage"}, - "output":{ - "shape":"AllowedNodeTypeModificationsMessage", - "resultWrapper":"ListAllowedNodeTypeModificationsResult" - }, - "errors":[ - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"ReplicationGroupNotFoundFault"}, - {"shape":"InvalidParameterCombinationException"}, - {"shape":"InvalidParameterValueException"} + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotNotFoundFault", + "error":{ + "code":"SnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ListTagsForResource":{ @@ -524,9 +1486,33 @@ "resultWrapper":"ListTagsForResourceResult" }, "errors":[ - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"SnapshotNotFoundFault"}, - {"shape":"InvalidARNFault"} + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotNotFoundFault", + "error":{ + "code":"SnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidARNFault", + "error":{ + "code":"InvalidARN", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyCacheCluster":{ @@ -538,20 +1524,109 @@ "input":{"shape":"ModifyCacheClusterMessage"}, "output":{ "shape":"ModifyCacheClusterResult", + "wrapper":true, "resultWrapper":"ModifyCacheClusterResult" }, "errors":[ - {"shape":"InvalidCacheClusterStateFault"}, - {"shape":"InvalidCacheSecurityGroupStateFault"}, - {"shape":"InsufficientCacheClusterCapacityFault"}, - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"NodeQuotaForClusterExceededFault"}, - {"shape":"NodeQuotaForCustomerExceededFault"}, - {"shape":"CacheSecurityGroupNotFoundFault"}, - {"shape":"CacheParameterGroupNotFoundFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"InvalidCacheClusterStateFault", + "error":{ + "code":"InvalidCacheClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCacheSecurityGroupStateFault", + "error":{ + "code":"InvalidCacheSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientCacheClusterCapacityFault", + "error":{ + "code":"InsufficientCacheClusterCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NodeQuotaForClusterExceededFault", + "error":{ + "code":"NodeQuotaForClusterExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NodeQuotaForCustomerExceededFault", + "error":{ + "code":"NodeQuotaForCustomerExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSecurityGroupNotFoundFault", + "error":{ + "code":"CacheSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheParameterGroupNotFoundFault", + "error":{ + "code":"CacheParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyCacheParameterGroup":{ @@ -566,10 +1641,42 @@ "resultWrapper":"ModifyCacheParameterGroupResult" }, "errors":[ - {"shape":"CacheParameterGroupNotFoundFault"}, - {"shape":"InvalidCacheParameterGroupStateFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheParameterGroupNotFoundFault", + "error":{ + "code":"CacheParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCacheParameterGroupStateFault", + "error":{ + "code":"InvalidCacheParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyCacheSubnetGroup":{ @@ -581,13 +1688,46 @@ "input":{"shape":"ModifyCacheSubnetGroupMessage"}, "output":{ "shape":"ModifyCacheSubnetGroupResult", + "wrapper":true, "resultWrapper":"ModifyCacheSubnetGroupResult" }, "errors":[ - {"shape":"CacheSubnetGroupNotFoundFault"}, - {"shape":"CacheSubnetQuotaExceededFault"}, - {"shape":"SubnetInUse"}, - {"shape":"InvalidSubnet"} + { + "shape":"CacheSubnetGroupNotFoundFault", + "error":{ + "code":"CacheSubnetGroupNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSubnetQuotaExceededFault", + "error":{ + "code":"CacheSubnetQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubnetInUse", + "error":{ + "code":"SubnetInUse", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyReplicationGroup":{ @@ -599,22 +1739,127 @@ "input":{"shape":"ModifyReplicationGroupMessage"}, "output":{ "shape":"ModifyReplicationGroupResult", + "wrapper":true, "resultWrapper":"ModifyReplicationGroupResult" }, "errors":[ - {"shape":"ReplicationGroupNotFoundFault"}, - {"shape":"InvalidReplicationGroupStateFault"}, - {"shape":"InvalidCacheClusterStateFault"}, - {"shape":"InvalidCacheSecurityGroupStateFault"}, - {"shape":"InsufficientCacheClusterCapacityFault"}, - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"NodeQuotaForClusterExceededFault"}, - {"shape":"NodeQuotaForCustomerExceededFault"}, - {"shape":"CacheSecurityGroupNotFoundFault"}, - {"shape":"CacheParameterGroupNotFoundFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"ReplicationGroupNotFoundFault", + "error":{ + "code":"ReplicationGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidReplicationGroupStateFault", + "error":{ + "code":"InvalidReplicationGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCacheClusterStateFault", + "error":{ + "code":"InvalidCacheClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCacheSecurityGroupStateFault", + "error":{ + "code":"InvalidCacheSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientCacheClusterCapacityFault", + "error":{ + "code":"InsufficientCacheClusterCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NodeQuotaForClusterExceededFault", + "error":{ + "code":"NodeQuotaForClusterExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NodeQuotaForCustomerExceededFault", + "error":{ + "code":"NodeQuotaForCustomerExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheSecurityGroupNotFoundFault", + "error":{ + "code":"CacheSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheParameterGroupNotFoundFault", + "error":{ + "code":"CacheParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "PurchaseReservedCacheNodesOffering":{ @@ -626,14 +1871,55 @@ "input":{"shape":"PurchaseReservedCacheNodesOfferingMessage"}, "output":{ "shape":"PurchaseReservedCacheNodesOfferingResult", + "wrapper":true, "resultWrapper":"PurchaseReservedCacheNodesOfferingResult" }, "errors":[ - {"shape":"ReservedCacheNodesOfferingNotFoundFault"}, - {"shape":"ReservedCacheNodeAlreadyExistsFault"}, - {"shape":"ReservedCacheNodeQuotaExceededFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"ReservedCacheNodesOfferingNotFoundFault", + "error":{ + "code":"ReservedCacheNodesOfferingNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ReservedCacheNodeAlreadyExistsFault", + "error":{ + "code":"ReservedCacheNodeAlreadyExists", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ReservedCacheNodeQuotaExceededFault", + "error":{ + "code":"ReservedCacheNodeQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "RebootCacheCluster":{ @@ -645,11 +1931,28 @@ "input":{"shape":"RebootCacheClusterMessage"}, "output":{ "shape":"RebootCacheClusterResult", + "wrapper":true, "resultWrapper":"RebootCacheClusterResult" }, "errors":[ - {"shape":"InvalidCacheClusterStateFault"}, - {"shape":"CacheClusterNotFoundFault"} + { + "shape":"InvalidCacheClusterStateFault", + "error":{ + "code":"InvalidCacheClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "RemoveTagsFromResource":{ @@ -664,10 +1967,42 @@ "resultWrapper":"RemoveTagsFromResourceResult" }, "errors":[ - {"shape":"CacheClusterNotFoundFault"}, - {"shape":"SnapshotNotFoundFault"}, - {"shape":"InvalidARNFault"}, - {"shape":"TagNotFoundFault"} + { + "shape":"CacheClusterNotFoundFault", + "error":{ + "code":"CacheClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotNotFoundFault", + "error":{ + "code":"SnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidARNFault", + "error":{ + "code":"InvalidARN", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagNotFoundFault", + "error":{ + "code":"TagNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "ResetCacheParameterGroup":{ @@ -682,10 +2017,42 @@ "resultWrapper":"ResetCacheParameterGroupResult" }, "errors":[ - {"shape":"InvalidCacheParameterGroupStateFault"}, - {"shape":"CacheParameterGroupNotFoundFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"InvalidCacheParameterGroupStateFault", + "error":{ + "code":"InvalidCacheParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CacheParameterGroupNotFoundFault", + "error":{ + "code":"CacheParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "RevokeCacheSecurityGroupIngress":{ @@ -697,14 +2064,55 @@ "input":{"shape":"RevokeCacheSecurityGroupIngressMessage"}, "output":{ "shape":"RevokeCacheSecurityGroupIngressResult", + "wrapper":true, "resultWrapper":"RevokeCacheSecurityGroupIngressResult" }, "errors":[ - {"shape":"CacheSecurityGroupNotFoundFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"InvalidCacheSecurityGroupStateFault"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidParameterCombinationException"} + { + "shape":"CacheSecurityGroupNotFoundFault", + "error":{ + "code":"CacheSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationNotFoundFault", + "error":{ + "code":"AuthorizationNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCacheSecurityGroupStateFault", + "error":{ + "code":"InvalidCacheSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] } }, @@ -727,12 +2135,6 @@ "Tags":{"shape":"TagList"} } }, - "AllowedNodeTypeModificationsMessage":{ - "type":"structure", - "members":{ - "ScaleUpModifications":{"shape":"NodeTypeList"} - } - }, "AuthorizationAlreadyExistsFault":{ "type":"structure", "members":{ @@ -768,12 +2170,6 @@ "EC2SecurityGroupOwnerId":{"shape":"String"} } }, - "AuthorizeCacheSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "CacheSecurityGroup":{"shape":"CacheSecurityGroup"} - } - }, "AutomaticFailoverStatus":{ "type":"string", "enum":[ @@ -924,8 +2320,7 @@ "AllowedValues":{"shape":"String"}, "IsModifiable":{"shape":"Boolean"}, "MinimumEngineVersion":{"shape":"String"}, - "CacheNodeTypeSpecificValues":{"shape":"CacheNodeTypeSpecificValueList"}, - "ChangeType":{"shape":"ChangeType"} + "CacheNodeTypeSpecificValues":{"shape":"CacheNodeTypeSpecificValueList"} } }, "CacheNodeTypeSpecificParametersList":{ @@ -1184,13 +2579,6 @@ }, "exception":true }, - "ChangeType":{ - "type":"string", - "enum":[ - "immediate", - "requires-reboot" - ] - }, "ClusterIdList":{ "type":"list", "member":{ @@ -1217,14 +2605,7 @@ ], "members":{ "SourceSnapshotName":{"shape":"String"}, - "TargetSnapshotName":{"shape":"String"}, - "TargetBucket":{"shape":"String"} - } - }, - "CopySnapshotResult":{ - "type":"structure", - "members":{ - "Snapshot":{"shape":"Snapshot"} + "TargetSnapshotName":{"shape":"String"} } }, "CreateCacheClusterMessage":{ @@ -1255,12 +2636,6 @@ "SnapshotWindow":{"shape":"String"} } }, - "CreateCacheClusterResult":{ - "type":"structure", - "members":{ - "CacheCluster":{"shape":"CacheCluster"} - } - }, "CreateCacheParameterGroupMessage":{ "type":"structure", "required":[ @@ -1274,12 +2649,6 @@ "Description":{"shape":"String"} } }, - "CreateCacheParameterGroupResult":{ - "type":"structure", - "members":{ - "CacheParameterGroup":{"shape":"CacheParameterGroup"} - } - }, "CreateCacheSecurityGroupMessage":{ "type":"structure", "required":[ @@ -1291,12 +2660,6 @@ "Description":{"shape":"String"} } }, - "CreateCacheSecurityGroupResult":{ - "type":"structure", - "members":{ - "CacheSecurityGroup":{"shape":"CacheSecurityGroup"} - } - }, "CreateCacheSubnetGroupMessage":{ "type":"structure", "required":[ @@ -1310,12 +2673,6 @@ "SubnetIds":{"shape":"SubnetIdentifierList"} } }, - "CreateCacheSubnetGroupResult":{ - "type":"structure", - "members":{ - "CacheSubnetGroup":{"shape":"CacheSubnetGroup"} - } - }, "CreateReplicationGroupMessage":{ "type":"structure", "required":[ @@ -1347,12 +2704,6 @@ "SnapshotWindow":{"shape":"String"} } }, - "CreateReplicationGroupResult":{ - "type":"structure", - "members":{ - "ReplicationGroup":{"shape":"ReplicationGroup"} - } - }, "CreateSnapshotMessage":{ "type":"structure", "required":[ @@ -1364,12 +2715,6 @@ "SnapshotName":{"shape":"String"} } }, - "CreateSnapshotResult":{ - "type":"structure", - "members":{ - "Snapshot":{"shape":"Snapshot"} - } - }, "DeleteCacheClusterMessage":{ "type":"structure", "required":["CacheClusterId"], @@ -1378,12 +2723,6 @@ "FinalSnapshotIdentifier":{"shape":"String"} } }, - "DeleteCacheClusterResult":{ - "type":"structure", - "members":{ - "CacheCluster":{"shape":"CacheCluster"} - } - }, "DeleteCacheParameterGroupMessage":{ "type":"structure", "required":["CacheParameterGroupName"], @@ -1414,12 +2753,6 @@ "FinalSnapshotIdentifier":{"shape":"String"} } }, - "DeleteReplicationGroupResult":{ - "type":"structure", - "members":{ - "ReplicationGroup":{"shape":"ReplicationGroup"} - } - }, "DeleteSnapshotMessage":{ "type":"structure", "required":["SnapshotName"], @@ -1427,12 +2760,6 @@ "SnapshotName":{"shape":"String"} } }, - "DeleteSnapshotResult":{ - "type":"structure", - "members":{ - "Snapshot":{"shape":"Snapshot"} - } - }, "DescribeCacheClustersMessage":{ "type":"structure", "members":{ @@ -1496,12 +2823,6 @@ "Marker":{"shape":"String"} } }, - "DescribeEngineDefaultParametersResult":{ - "type":"structure", - "members":{ - "EngineDefaults":{"shape":"EngineDefaults"} - } - }, "DescribeEventsMessage":{ "type":"structure", "members":{ @@ -1749,13 +3070,6 @@ "type":"list", "member":{"shape":"String"} }, - "ListAllowedNodeTypeModificationsMessage":{ - "type":"structure", - "members":{ - "CacheClusterId":{"shape":"String"}, - "ReplicationGroupId":{"shape":"String"} - } - }, "ListTagsForResourceMessage":{ "type":"structure", "required":["ResourceName"], @@ -1782,14 +3096,7 @@ "EngineVersion":{"shape":"String"}, "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, "SnapshotRetentionLimit":{"shape":"IntegerOptional"}, - "SnapshotWindow":{"shape":"String"}, - "CacheNodeType":{"shape":"String"} - } - }, - "ModifyCacheClusterResult":{ - "type":"structure", - "members":{ - "CacheCluster":{"shape":"CacheCluster"} + "SnapshotWindow":{"shape":"String"} } }, "ModifyCacheParameterGroupMessage":{ @@ -1812,12 +3119,6 @@ "SubnetIds":{"shape":"SubnetIdentifierList"} } }, - "ModifyCacheSubnetGroupResult":{ - "type":"structure", - "members":{ - "CacheSubnetGroup":{"shape":"CacheSubnetGroup"} - } - }, "ModifyReplicationGroupMessage":{ "type":"structure", "required":["ReplicationGroupId"], @@ -1837,14 +3138,7 @@ "EngineVersion":{"shape":"String"}, "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, "SnapshotRetentionLimit":{"shape":"IntegerOptional"}, - "SnapshotWindow":{"shape":"String"}, - "CacheNodeType":{"shape":"String"} - } - }, - "ModifyReplicationGroupResult":{ - "type":"structure", - "members":{ - "ReplicationGroup":{"shape":"ReplicationGroup"} + "SnapshotWindow":{"shape":"String"} } }, "NodeGroup":{ @@ -1919,10 +3213,6 @@ "locationName":"NodeSnapshot" } }, - "NodeTypeList":{ - "type":"list", - "member":{"shape":"String"} - }, "NotificationConfiguration":{ "type":"structure", "members":{ @@ -1940,8 +3230,7 @@ "DataType":{"shape":"String"}, "AllowedValues":{"shape":"String"}, "IsModifiable":{"shape":"Boolean"}, - "MinimumEngineVersion":{"shape":"String"}, - "ChangeType":{"shape":"ChangeType"} + "MinimumEngineVersion":{"shape":"String"} } }, "ParameterNameValue":{ @@ -1977,8 +3266,7 @@ "members":{ "NumCacheNodes":{"shape":"IntegerOptional"}, "CacheNodeIdsToRemove":{"shape":"CacheNodeIdsList"}, - "EngineVersion":{"shape":"String"}, - "CacheNodeType":{"shape":"String"} + "EngineVersion":{"shape":"String"} } }, "PreferredAvailabilityZoneList":{ @@ -1997,12 +3285,6 @@ "CacheNodeCount":{"shape":"IntegerOptional"} } }, - "PurchaseReservedCacheNodesOfferingResult":{ - "type":"structure", - "members":{ - "ReservedCacheNode":{"shape":"ReservedCacheNode"} - } - }, "RebootCacheClusterMessage":{ "type":"structure", "required":[ @@ -2014,12 +3296,6 @@ "CacheNodeIdsToReboot":{"shape":"CacheNodeIdsList"} } }, - "RebootCacheClusterResult":{ - "type":"structure", - "members":{ - "CacheCluster":{"shape":"CacheCluster"} - } - }, "RecurringCharge":{ "type":"structure", "members":{ @@ -2209,7 +3485,10 @@ }, "ResetCacheParameterGroupMessage":{ "type":"structure", - "required":["CacheParameterGroupName"], + "required":[ + "CacheParameterGroupName", + "ParameterNameValues" + ], "members":{ "CacheParameterGroupName":{"shape":"String"}, "ResetAllParameters":{"shape":"Boolean"}, @@ -2229,12 +3508,6 @@ "EC2SecurityGroupOwnerId":{"shape":"String"} } }, - "RevokeCacheSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "CacheSecurityGroup":{"shape":"CacheSecurityGroup"} - } - }, "SecurityGroupIdsList":{ "type":"list", "member":{ @@ -2421,6 +3694,114 @@ "senderFault":true }, "exception":true + }, + "AuthorizeCacheSecurityGroupIngressResult":{ + "type":"structure", + "members":{ + "CacheSecurityGroup":{"shape":"CacheSecurityGroup"} + } + }, + "CopySnapshotResult":{ + "type":"structure", + "members":{ + "Snapshot":{"shape":"Snapshot"} + } + }, + "CreateCacheClusterResult":{ + "type":"structure", + "members":{ + "CacheCluster":{"shape":"CacheCluster"} + } + }, + "CreateCacheParameterGroupResult":{ + "type":"structure", + "members":{ + "CacheParameterGroup":{"shape":"CacheParameterGroup"} + } + }, + "CreateCacheSecurityGroupResult":{ + "type":"structure", + "members":{ + "CacheSecurityGroup":{"shape":"CacheSecurityGroup"} + } + }, + "CreateCacheSubnetGroupResult":{ + "type":"structure", + "members":{ + "CacheSubnetGroup":{"shape":"CacheSubnetGroup"} + } + }, + "CreateReplicationGroupResult":{ + "type":"structure", + "members":{ + "ReplicationGroup":{"shape":"ReplicationGroup"} + } + }, + "CreateSnapshotResult":{ + "type":"structure", + "members":{ + "Snapshot":{"shape":"Snapshot"} + } + }, + "DeleteCacheClusterResult":{ + "type":"structure", + "members":{ + "CacheCluster":{"shape":"CacheCluster"} + } + }, + "DeleteReplicationGroupResult":{ + "type":"structure", + "members":{ + "ReplicationGroup":{"shape":"ReplicationGroup"} + } + }, + "DeleteSnapshotResult":{ + "type":"structure", + "members":{ + "Snapshot":{"shape":"Snapshot"} + } + }, + "DescribeEngineDefaultParametersResult":{ + "type":"structure", + "members":{ + "EngineDefaults":{"shape":"EngineDefaults"} + } + }, + "ModifyCacheClusterResult":{ + "type":"structure", + "members":{ + "CacheCluster":{"shape":"CacheCluster"} + } + }, + "ModifyCacheSubnetGroupResult":{ + "type":"structure", + "members":{ + "CacheSubnetGroup":{"shape":"CacheSubnetGroup"} + } + }, + "ModifyReplicationGroupResult":{ + "type":"structure", + "members":{ + "ReplicationGroup":{"shape":"ReplicationGroup"} + } + }, + "PurchaseReservedCacheNodesOfferingResult":{ + "type":"structure", + "members":{ + "ReservedCacheNode":{"shape":"ReservedCacheNode"} + } + }, + "RebootCacheClusterResult":{ + "type":"structure", + "members":{ + "CacheCluster":{"shape":"CacheCluster"} + } + }, + "RevokeCacheSecurityGroupIngressResult":{ + "type":"structure", + "members":{ + "CacheSecurityGroup":{"shape":"CacheSecurityGroup"} + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/docs-2.json similarity index 70% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/docs-2.json index 6d0a35025..72795d0a6 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/docs-2.json @@ -1,20 +1,19 @@ { "version": "2.0", - "service": "Amazon ElastiCache

Amazon ElastiCache is a web service that makes it easier to set up, operate, and scale a distributed cache in the cloud.

With ElastiCache, customers gain all of the benefits of a high-performance, in-memory cache with far less of the administrative burden of launching and managing a distributed cache. The service makes setup, scaling, and cluster failure handling much simpler than in a self-managed cache deployment.

In addition, through integration with Amazon CloudWatch, customers get enhanced visibility into the key performance statistics associated with their cache and can receive alarms if a part of their cache runs hot.

", "operations": { - "AddTagsToResource": "

The AddTagsToResource action adds up to 10 cost allocation tags to the named resource. A cost allocation tag is a key-value pair where the key and value are case-sensitive. Cost allocation tags can be used to categorize and track your AWS costs.

When you apply tags to your ElastiCache resources, AWS generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services. For more information, see Using Cost Allocation Tags in Amazon ElastiCache in the ElastiCache User Guide.

", - "AuthorizeCacheSecurityGroupIngress": "

The AuthorizeCacheSecurityGroupIngress action allows network ingress to a cache security group. Applications using ElastiCache must be running on Amazon EC2, and Amazon EC2 security groups are used as the authorization mechanism.

You cannot authorize ingress from an Amazon EC2 security group in one region to an ElastiCache cluster in another region.

", - "CopySnapshot": "

The CopySnapshot action makes a copy of an existing snapshot.

Users or groups that have permissions to use the CopySnapshot API can create their own Amazon S3 buckets and copy snapshots to it. To control access to your snapshots, use an IAM policy to control who has the ability to use the CopySnapshot API. For more information about using IAM to control the use of ElastiCache APIs, see Exporting Snapshots and Authentication & Access Control.

Erorr Message:

  • Error Message: The authenticated user does not have sufficient permissions to perform the desired activity.

    Solution: Contact your system administrator to get the needed permissions.

", + "AddTagsToResource": "

The AddTagsToResource action adds up to 10 cost allocation tags to the named resource. A cost allocation tag is a key-value pair where the key and value are case-sensitive. Cost allocation tags can be used to categorize and track your AWS costs.

When you apply tags to your ElastiCache resources, AWS generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services. For more information, see Using Cost Allocation Tags in Amazon ElastiCache.

", + "AuthorizeCacheSecurityGroupIngress": "

The AuthorizeCacheSecurityGroupIngress action allows network ingress to a cache security group. Applications using ElastiCache must be running on Amazon EC2, and Amazon EC2 security groups are used as the authorization mechanism.

You cannot authorize ingress from an Amazon EC2 security group in one region to an ElastiCache cluster in another region. ", + "CopySnapshot": "

The CopySnapshot action makes a copy of an existing snapshot.

", "CreateCacheCluster": "

The CreateCacheCluster action creates a cache cluster. All nodes in the cache cluster run the same protocol-compliant cache engine software, either Memcached or Redis.

", "CreateCacheParameterGroup": "

The CreateCacheParameterGroup action creates a new cache parameter group. A cache parameter group is a collection of parameters that you apply to all of the nodes in a cache cluster.

", "CreateCacheSecurityGroup": "

The CreateCacheSecurityGroup action creates a new cache security group. Use a cache security group to control access to one or more cache clusters.

Cache security groups are only used when you are creating a cache cluster outside of an Amazon Virtual Private Cloud (VPC). If you are creating a cache cluster inside of a VPC, use a cache subnet group instead. For more information, see CreateCacheSubnetGroup.

", "CreateCacheSubnetGroup": "

The CreateCacheSubnetGroup action creates a new cache subnet group.

Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (VPC).

", - "CreateReplicationGroup": "

The CreateReplicationGroup action creates a replication group. A replication group is a collection of cache clusters, where one of the cache clusters is a read/write primary and the others are read-only replicas. Writes to the primary are automatically propagated to the replicas.

When you create a replication group, you must specify an existing cache cluster that is in the primary role. When the replication group has been successfully created, you can add one or more read replica replicas to it, up to a total of five read replicas.

This action is valid only for Redis.

", + "CreateReplicationGroup": "

The CreateReplicationGroup action creates a replication group. A replication group is a collection of cache clusters, where one of the cache clusters is a read/write primary and the others are read-only replicas. Writes to the primary are automatically propagated to the replicas.

When you create a replication group, you must specify an existing cache cluster that is in the primary role. When the replication group has been successfully created, you can add one or more read replica replicas to it, up to a total of five read replicas.

Note: This action is valid only for Redis.

", "CreateSnapshot": "

The CreateSnapshot action creates a copy of an entire cache cluster at a specific moment in time.

", "DeleteCacheCluster": "

The DeleteCacheCluster action deletes a previously provisioned cache cluster. DeleteCacheCluster deletes all associated cache nodes, node endpoints and the cache cluster itself. When you receive a successful response from this action, Amazon ElastiCache immediately begins deleting the cache cluster; you cannot cancel or revert this action.

This API cannot be used to delete a cache cluster that is the last read replica of a replication group that has Multi-AZ mode enabled.

", "DeleteCacheParameterGroup": "

The DeleteCacheParameterGroup action deletes the specified cache parameter group. You cannot delete a cache parameter group if it is associated with any cache clusters.

", - "DeleteCacheSecurityGroup": "

The DeleteCacheSecurityGroup action deletes a cache security group.

You cannot delete a cache security group if it is associated with any cache clusters.

", - "DeleteCacheSubnetGroup": "

The DeleteCacheSubnetGroup action deletes a cache subnet group.

You cannot delete a cache subnet group if it is associated with any cache clusters.

", + "DeleteCacheSecurityGroup": "

The DeleteCacheSecurityGroup action deletes a cache security group.

You cannot delete a cache security group if it is associated with any cache clusters.", + "DeleteCacheSubnetGroup": "

The DeleteCacheSubnetGroup action deletes a cache subnet group.

You cannot delete a cache subnet group if it is associated with any cache clusters.", "DeleteReplicationGroup": "

The DeleteReplicationGroup action deletes an existing replication group. By default, this action deletes the entire replication group, including the primary cluster and all of the read replicas. You can optionally delete only the read replicas, while retaining the primary cluster.

When you receive a successful response from this action, Amazon ElastiCache immediately begins deleting the selected resources; you cannot cancel or revert this action.

", "DeleteSnapshot": "

The DeleteSnapshot action deletes an existing snapshot. When you receive a successful response from this action, ElastiCache immediately begins deleting the snapshot; you cannot cancel or revert this action.

", "DescribeCacheClusters": "

The DescribeCacheClusters action returns information about all provisioned cache clusters if no cache cluster identifier is specified, or about a specific cache cluster if a cache cluster identifier is supplied.

By default, abbreviated information about the cache clusters(s) will be returned. You can use the optional ShowDetails flag to retrieve detailed information about the cache nodes associated with the cache clusters. These details include the DNS address and port for the cache node endpoint.

If the cluster is in the CREATING state, only cluster level information will be displayed until all of the nodes are successfully provisioned.

If the cluster is in the DELETING state, only cluster level information will be displayed.

If cache nodes are currently being added to the cache cluster, node endpoint information and creation time for the additional nodes will not be displayed until they are completely provisioned. When the cache cluster state is available, the cluster is ready for use.

If cache nodes are currently being removed from the cache cluster, no endpoint information for the removed nodes is displayed.

", @@ -29,7 +28,6 @@ "DescribeReservedCacheNodes": "

The DescribeReservedCacheNodes action returns information about reserved cache nodes for this account, or about a specified reserved cache node.

", "DescribeReservedCacheNodesOfferings": "

The DescribeReservedCacheNodesOfferings action lists available reserved cache node offerings.

", "DescribeSnapshots": "

The DescribeSnapshots action returns information about cache cluster snapshots. By default, DescribeSnapshots lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with a particular cache cluster.

", - "ListAllowedNodeTypeModifications": "

The ListAllowedNodeTypeModifications action lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.

When you use the ModifyCacheCluster or ModifyReplicationGroup APIs to scale up your cluster or replication group, the value of the CacheNodeType parameter must be one of the node types returned by this action.

", "ListTagsForResource": "

The ListTagsForResource action lists all cost allocation tags currently on the named resource. A cost allocation tag is a key-value pair where the key is case-sensitive and the value is optional. Cost allocation tags can be used to categorize and track your AWS costs.

You can have a maximum of 10 cost allocation tags on an ElastiCache resource. For more information, see Using Cost Allocation Tags in Amazon ElastiCache.

", "ModifyCacheCluster": "

The ModifyCacheCluster action modifies the settings for a cache cluster. You can use this action to change one or more cluster configuration parameters by specifying the parameters and the new values.

", "ModifyCacheParameterGroup": "

The ModifyCacheParameterGroup action modifies the parameters of a cache parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.

", @@ -41,12 +39,13 @@ "ResetCacheParameterGroup": "

The ResetCacheParameterGroup action modifies the parameters of a cache parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire cache parameter group, specify the ResetAllParameters and CacheParameterGroupName parameters.

", "RevokeCacheSecurityGroupIngress": "

The RevokeCacheSecurityGroupIngress action revokes ingress from a cache security group. Use this action to disallow access from an Amazon EC2 security group that had been previously authorized.

" }, + "service": "Amazon ElastiCache

Amazon ElastiCache is a web service that makes it easier to set up, operate, and scale a distributed cache in the cloud.

With ElastiCache, customers gain all of the benefits of a high-performance, in-memory cache with far less of the administrative burden of launching and managing a distributed cache. The service makes setup, scaling, and cluster failure handling much simpler than in a self-managed cache deployment.

In addition, through integration with Amazon CloudWatch, customers get enhanced visibility into the key performance statistics associated with their cache and can receive alarms if a part of their cache runs hot.

", "shapes": { "AZMode": { "base": null, "refs": { "CreateCacheClusterMessage$AZMode": "

Specifies whether the nodes in this Memcached node group are created in a single Availability Zone or created across multiple Availability Zones in the cluster's region.

This parameter is only supported for Memcached cache clusters.

If the AZMode and PreferredAvailabilityZones are not specified, ElastiCache assumes single-az mode.

", - "ModifyCacheClusterMessage$AZMode": "

Specifies whether the new nodes in this Memcached cache cluster are all created in a single Availability Zone or created across multiple Availability Zones.

Valid values: single-az | cross-az.

This option is only supported for Memcached cache clusters.

You cannot specify single-az if the Memcached cache cluster already has cache nodes in different Availability Zones. If cross-az is specified, existing Memcached nodes remain in their current Availability Zone.

Only newly created nodes will be located in different Availability Zones. For instructions on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.

" + "ModifyCacheClusterMessage$AZMode": "

Specifies whether the new nodes in this Memcached cache cluster are all created in a single Availability Zone or created across multiple Availability Zones.

Valid values: single-az | cross-az.

This option is only supported for Memcached cache clusters.

You cannot specify single-az if the Memcached cache cluster already has cache nodes in different Availability Zones. If cross-az is specified, existing Memcached nodes remain in their current Availability Zone.

Only newly created nodes will be located in different Availability Zones. For instructions on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.

" } }, "AddTagsToResourceMessage": { @@ -54,11 +53,6 @@ "refs": { } }, - "AllowedNodeTypeModificationsMessage": { - "base": "

Represents the allowed node types you can use to modify your cache cluster or replication group.

", - "refs": { - } - }, "AuthorizationAlreadyExistsFault": { "base": "

The specified Amazon EC2 security group is already authorized for the specified cache security group.

", "refs": { @@ -74,15 +68,10 @@ "refs": { } }, - "AuthorizeCacheSecurityGroupIngressResult": { - "base": null, - "refs": { - } - }, "AutomaticFailoverStatus": { "base": null, "refs": { - "ReplicationGroup$AutomaticFailover": "

Indicates the status of Multi-AZ for this replication group.

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.

  • T1 and T2 cache node types.

" + "ReplicationGroup$AutomaticFailover": "

Indicates the status of Multi-AZ for this replication group.

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
" } }, "AvailabilityZone": { @@ -94,7 +83,7 @@ "AvailabilityZonesList": { "base": null, "refs": { - "CreateReplicationGroupMessage$PreferredCacheClusterAZs": "

A list of EC2 availability zones in which the replication group's cache clusters will be created. The order of the availability zones in the list is not important.

If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache clusters in availability zones associated with the subnets in the selected subnet group.

The number of availability zones listed must equal the value of NumCacheClusters.

Default: system chosen availability zones.

Example: One Redis cache cluster in each of three availability zones.

PreferredAvailabilityZones.member.1=us-west-2a PreferredAvailabilityZones.member.2=us-west-2c PreferredAvailabilityZones.member.3=us-west-2c

" + "CreateReplicationGroupMessage$PreferredCacheClusterAZs": "

A list of EC2 availability zones in which the replication group's cache clusters will be created. The order of the availability zones in the list is not important.

If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache clusters in availability zones associated with the subnets in the selected subnet group.

The number of availability zones listed must equal the value of NumCacheClusters.

Default: system chosen availability zones.

Example: One Redis cache cluster in each of three availability zones. PreferredAvailabilityZones.member.1=us-west-2a PreferredAvailabilityZones.member.2=us-west-2c PreferredAvailabilityZones.member.3=us-west-2c

" } }, "AwsQueryErrorMessage": { @@ -110,10 +99,10 @@ "CacheCluster$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

", "CacheNodeTypeSpecificParameter$IsModifiable": "

Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

", "DescribeCacheEngineVersionsMessage$DefaultOnly": "

If true, specifies that only the default version of the specified engine or engine and major version combination is to be returned.

", - "ModifyCacheClusterMessage$ApplyImmediately": "

If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the cache cluster.

If false, then changes to the cache cluster are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

If you perform a ModifyCacheCluster before a pending modification is applied, the pending modification is replaced by the newer modification.

Valid values: true | false

Default: false

", - "ModifyReplicationGroupMessage$ApplyImmediately": "

If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

", + "ModifyCacheClusterMessage$ApplyImmediately": "

If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the cache cluster.

If false, then changes to the cache cluster are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

If you perform a ModifyCacheCluster before a pending modification is applied, the pending modification is replaced by the newer modification.

Valid values: true | false

Default: false

", + "ModifyReplicationGroupMessage$ApplyImmediately": "

If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

", "Parameter$IsModifiable": "

Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

", - "ResetCacheParameterGroupMessage$ResetAllParameters": "

If true, all parameters in the cache parameter group will be reset to their default values. If false, only the parameters listed by ParameterNameValues are reset to their default values.

Valid values: true | false

", + "ResetCacheParameterGroupMessage$ResetAllParameters": "

If true, all parameters in the cache parameter group will be reset to default values. If false, no such action occurs.

Valid values: true | false

", "Snapshot$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

" } }, @@ -121,12 +110,12 @@ "base": null, "refs": { "CreateCacheClusterMessage$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

", - "CreateReplicationGroupMessage$AutomaticFailoverEnabled": "

Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.

If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group.

Default: false

ElastiCache Multi-AZ replication groups is not supported on:

  • Redis versions earlier than 2.8.6.

  • T1 and T2 cache node types.

", + "CreateReplicationGroupMessage$AutomaticFailoverEnabled": "

Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.

If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group.

Default: false

ElastiCache Multi-AZ replication groups is not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
", "CreateReplicationGroupMessage$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

", "DeleteReplicationGroupMessage$RetainPrimaryCluster": "

If set to true, all of the read replicas will be deleted, but the primary node will be retained.

", "DescribeCacheClustersMessage$ShowCacheNodeInfo": "

An optional flag that can be included in the DescribeCacheCluster request to retrieve information about the individual cache nodes.

", "ModifyCacheClusterMessage$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

", - "ModifyReplicationGroupMessage$AutomaticFailoverEnabled": "

Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.

  • T1 and T2 cache node types.

", + "ModifyReplicationGroupMessage$AutomaticFailoverEnabled": "

Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
", "ModifyReplicationGroupMessage$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

" } }, @@ -179,7 +168,7 @@ } }, "CacheNode": { - "base": "

Represents an individual cache node within a cache cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.

Valid node types are as follows:

  • General purpose:

    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized: cache.c1.xlarge

  • Memory optimized:

    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).

  • Redis backup/restore is not supported for t2 instances.

  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "base": "

Represents an individual cache node within a cache cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.

Valid node types are as follows:

  • General purpose:
    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
  • Compute optimized: cache.c1.xlarge
  • Memory optimized
    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
  • Redis backup/restore is not supported for t2 instances.
  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", "refs": { "CacheNodeList$member": null } @@ -248,12 +237,12 @@ } }, "CacheParameterGroupNameMessage": { - "base": "

Represents the output of one of the following actions:

  • ModifyCacheParameterGroup

  • ResetCacheParameterGroup

", + "base": "

Represents the output of one of the following actions:

  • ModifyCacheParameterGroup
  • ResetCacheParameterGroup
", "refs": { } }, "CacheParameterGroupNotFoundFault": { - "base": "

The requested cache parameter group name does not refer to an existing cache parameter group.

", + "base": "

The requested cache parameter group name does not refer to an existing cache parameter group.

", "refs": { } }, @@ -274,10 +263,10 @@ } }, "CacheSecurityGroup": { - "base": "

Represents the output of one of the following actions:

  • AuthorizeCacheSecurityGroupIngress

  • CreateCacheSecurityGroup

  • RevokeCacheSecurityGroupIngress

", + "base": "

Represents the output of one of the following actions:

  • AuthorizeCacheSecurityGroupIngress
  • CreateCacheSecurityGroup
  • RevokeCacheSecurityGroupIngress
", "refs": { - "AuthorizeCacheSecurityGroupIngressResult$CacheSecurityGroup": null, "CacheSecurityGroups$member": null, + "AuthorizeCacheSecurityGroupIngressResult$CacheSecurityGroup": null, "CreateCacheSecurityGroupResult$CacheSecurityGroup": null, "RevokeCacheSecurityGroupIngressResult$CacheSecurityGroup": null } @@ -314,7 +303,7 @@ } }, "CacheSecurityGroupNotFoundFault": { - "base": "

The requested cache security group name does not refer to an existing cache security group.

", + "base": "

The requested cache security group name does not refer to an existing cache security group.

", "refs": { } }, @@ -330,7 +319,7 @@ } }, "CacheSubnetGroup": { - "base": "

Represents the output of one of the following actions:

  • CreateCacheSubnetGroup

  • ModifyCacheSubnetGroup

", + "base": "

Represents the output of one of the following actions:

  • CreateCacheSubnetGroup
  • ModifyCacheSubnetGroup
", "refs": { "CacheSubnetGroups$member": null, "CreateCacheSubnetGroupResult$CacheSubnetGroup": null, @@ -338,7 +327,7 @@ } }, "CacheSubnetGroupAlreadyExistsFault": { - "base": "

The requested cache subnet group name is already in use by an existing cache subnet group.

", + "base": "

The requested cache subnet group name is already in use by an existing cache subnet group.

", "refs": { } }, @@ -373,13 +362,6 @@ "refs": { } }, - "ChangeType": { - "base": null, - "refs": { - "CacheNodeTypeSpecificParameter$ChangeType": "

ChangeType indicates whether a change to the parameter will be applied immediately or requires a reboot for the change to be applied. You can force a reboot or wait until the next maintenance window's reboot. For more information, see Rebooting a Cluster.

", - "Parameter$ChangeType": "

ChangeType indicates whether a change to the parameter will be applied immediately or requires a reboot for the change to be applied. You can force a reboot or wait until the next maintenance window's reboot. For more information, see Rebooting a Cluster.

" - } - }, "ClusterIdList": { "base": null, "refs": { @@ -396,81 +378,41 @@ "refs": { } }, - "CopySnapshotResult": { - "base": null, - "refs": { - } - }, "CreateCacheClusterMessage": { "base": "

Represents the input of a CreateCacheCluster action.

", "refs": { } }, - "CreateCacheClusterResult": { - "base": null, - "refs": { - } - }, "CreateCacheParameterGroupMessage": { "base": "

Represents the input of a CreateCacheParameterGroup action.

", "refs": { } }, - "CreateCacheParameterGroupResult": { - "base": null, - "refs": { - } - }, "CreateCacheSecurityGroupMessage": { "base": "

Represents the input of a CreateCacheSecurityGroup action.

", "refs": { } }, - "CreateCacheSecurityGroupResult": { - "base": null, - "refs": { - } - }, "CreateCacheSubnetGroupMessage": { "base": "

Represents the input of a CreateCacheSubnetGroup action.

", "refs": { } }, - "CreateCacheSubnetGroupResult": { - "base": null, - "refs": { - } - }, "CreateReplicationGroupMessage": { "base": "

Represents the input of a CreateReplicationGroup action.

", "refs": { } }, - "CreateReplicationGroupResult": { - "base": null, - "refs": { - } - }, "CreateSnapshotMessage": { "base": "

Represents the input of a CreateSnapshot action.

", "refs": { } }, - "CreateSnapshotResult": { - "base": null, - "refs": { - } - }, "DeleteCacheClusterMessage": { "base": "

Represents the input of a DeleteCacheCluster action.

", "refs": { } }, - "DeleteCacheClusterResult": { - "base": null, - "refs": { - } - }, "DeleteCacheParameterGroupMessage": { "base": "

Represents the input of a DeleteCacheParameterGroup action.

", "refs": { @@ -491,21 +433,11 @@ "refs": { } }, - "DeleteReplicationGroupResult": { - "base": null, - "refs": { - } - }, "DeleteSnapshotMessage": { "base": "

Represents the input of a DeleteSnapshot action.

", "refs": { } }, - "DeleteSnapshotResult": { - "base": null, - "refs": { - } - }, "DescribeCacheClustersMessage": { "base": "

Represents the input of a DescribeCacheClusters action.

", "refs": { @@ -541,11 +473,6 @@ "refs": { } }, - "DescribeEngineDefaultParametersResult": { - "base": null, - "refs": { - } - }, "DescribeEventsMessage": { "base": "

Represents the input of a DescribeEvents action.

", "refs": { @@ -648,17 +575,17 @@ "base": null, "refs": { "CacheCluster$NumCacheNodes": "

The number of cache nodes in the cache cluster.

For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

", - "CacheCluster$SnapshotRetentionLimit": "

The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

", + "CacheCluster$SnapshotRetentionLimit": "

The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

", "CreateCacheClusterMessage$NumCacheNodes": "

The initial number of cache nodes that the cache cluster will have.

For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

If you need more than 20 nodes for your Memcached cluster, please fill out the ElastiCache Limit Increase Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request/.

", "CreateCacheClusterMessage$Port": "

The port number on which each of the cache nodes will accept connections.

", - "CreateCacheClusterMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache will retain automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

This parameter is only valid if the Engine parameter is redis.

Default: 0 (i.e., automatic backups are disabled for this cache cluster).

", + "CreateCacheClusterMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache will retain automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

Note: This parameter is only valid if the Engine parameter is redis.

Default: 0 (i.e., automatic backups are disabled for this cache cluster).

", "CreateReplicationGroupMessage$NumCacheClusters": "

The number of cache clusters this replication group will initially have.

If Multi-AZ is enabled, the value of this parameter must be at least 2.

The maximum permitted value for NumCacheClusters is 6 (primary plus 5 replicas). If you need to exceed this limit, please fill out the ElastiCache Limit Increase Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request.

", "CreateReplicationGroupMessage$Port": "

The port number on which each member of the replication group will accept connections.

", - "CreateReplicationGroupMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache will retain automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

This parameter is only valid if the Engine parameter is redis.

Default: 0 (i.e., automatic backups are disabled for this cache cluster).

", + "CreateReplicationGroupMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache will retain automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

Note: This parameter is only valid if the Engine parameter is redis.

Default: 0 (i.e., automatic backups are disabled for this cache cluster).

", "DescribeCacheClustersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeCacheEngineVersionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeCacheParameterGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", - "DescribeCacheParametersMessage$MaxRecords": "

The maximum number of brecords to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", + "DescribeCacheParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeCacheSecurityGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeCacheSubnetGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeEngineDefaultParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", @@ -668,14 +595,14 @@ "DescribeReservedCacheNodesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeReservedCacheNodesOfferingsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeSnapshotsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 50

Constraints: minimum 20; maximum 50.

", - "ModifyCacheClusterMessage$NumCacheNodes": "

The number of cache nodes that the cache cluster should have. If the value for NumCacheNodes is greater than the sum of the number of current cache nodes and the number of cache nodes pending creation (which may be zero), then more nodes will be added. If the value is less than the number of existing cache nodes, then nodes will be removed. If the value is equal to the number of current cache nodes, then any pending add or remove requests are canceled.

If you are removing cache nodes, you must use the CacheNodeIdsToRemove parameter to provide the IDs of the specific cache nodes to remove.

For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

Adding or removing Memcached cache nodes can be applied immediately or as a pending action. See ApplyImmediately.

A pending action to modify the number of cache nodes in a cluster during its maintenance window, whether by adding or removing nodes in accordance with the scale out architecture, is not queued. The customer's latest request to add or remove nodes to the cluster overrides any previous pending actions to modify the number of cache nodes in the cluster. For example, a request to remove 2 nodes would override a previous pending action to remove 3 nodes. Similarly, a request to add 2 nodes would override a previous pending action to remove 3 nodes and vice versa. As Memcached cache nodes may now be provisioned in different Availability Zones with flexible cache node placement, a request to add nodes does not automatically override a previous pending action to add nodes. The customer can modify the previous pending action to add more nodes or explicitly cancel the pending request and retry the new request. To cancel pending actions to modify the number of cache nodes in a cluster, use the ModifyCacheCluster request and set NumCacheNodes equal to the number of cache nodes currently in the cache cluster.

", - "ModifyCacheClusterMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

", - "ModifyReplicationGroupMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

", + "ModifyCacheClusterMessage$NumCacheNodes": "

The number of cache nodes that the cache cluster should have. If the value for NumCacheNodes is greater than the sum of the number of current cache nodes and the number of cache nodes pending creation (which may be zero), then more nodes will be added. If the value is less than the number of existing cache nodes, then nodes will be removed. If the value is equal to the number of current cache nodes, then any pending add or remove requests are canceled.

If you are removing cache nodes, you must use the CacheNodeIdsToRemove parameter to provide the IDs of the specific cache nodes to remove.

For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

Note:
Adding or removing Memcached cache nodes can be applied immediately or as a pending action. See ApplyImmediately.
A pending action to modify the number of cache nodes in a cluster during its maintenance window, whether by adding or removing nodes in accordance with the scale out architecture, is not queued. The customer's latest request to add or remove nodes to the cluster overrides any previous pending actions to modify the number of cache nodes in the cluster. For example, a request to remove 2 nodes would override a previous pending action to remove 3 nodes. Similarly, a request to add 2 nodes would override a previous pending action to remove 3 nodes and vice versa. As Memcached cache nodes may now be provisioned in different Availability Zones with flexible cache node placement, a request to add nodes does not automatically override a previous pending action to add nodes. The customer can modify the previous pending action to add more nodes or explicitly cancel the pending request and retry the new request. To cancel pending actions to modify the number of cache nodes in a cluster, use the ModifyCacheCluster request and set NumCacheNodes equal to the number of cache nodes currently in the cache cluster.

", + "ModifyCacheClusterMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

", + "ModifyReplicationGroupMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

", "PendingModifiedValues$NumCacheNodes": "

The new number of cache nodes for the cache cluster.

For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

", - "PurchaseReservedCacheNodesOfferingMessage$CacheNodeCount": "

The number of cache node instances to reserve.

Default: 1

", + "PurchaseReservedCacheNodesOfferingMessage$CacheNodeCount": "

The number of cache node instances to reserve.

Default: 1

", "Snapshot$NumCacheNodes": "

The number of cache nodes in the source cache cluster.

For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.

", "Snapshot$Port": "

The port number used by each cache nodes in the source cache cluster.

", - "Snapshot$SnapshotRetentionLimit": "

For an automatic snapshot, the number of days for which ElastiCache will retain the snapshot before deleting it.

For manual snapshots, this field reflects the SnapshotRetentionLimit for the source cache cluster when the snapshot was created. This field is otherwise ignored: Manual snapshots do not expire, and can only be deleted using the DeleteSnapshot action.

Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

" + "Snapshot$SnapshotRetentionLimit": "

For an automatic snapshot, the number of days for which ElastiCache will retain the snapshot before deleting it.

For manual snapshots, this field reflects the SnapshotRetentionLimit for the source cache cluster when the snapshot was created. This field is otherwise ignored: Manual snapshots do not expire, and can only be deleted using the DeleteSnapshot action.

Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

" } }, "InvalidARNFault": { @@ -689,7 +616,7 @@ } }, "InvalidCacheParameterGroupStateFault": { - "base": "

The current state of the cache parameter group does not allow the requested action to occur.

", + "base": "

The current state of the cache parameter group does not allow the requested action to occur.

", "refs": { } }, @@ -734,11 +661,6 @@ "RemoveTagsFromResourceMessage$TagKeys": "

A list of TagKeys identifying the tags you want removed from the named resource. For example, TagKeys.member.1=Region removes the cost allocation tag with the key name Region from the resource named by the ResourceName parameter.

" } }, - "ListAllowedNodeTypeModificationsMessage": { - "base": "

The input parameters for the ListAllowedNodeTypeModifications action.

", - "refs": { - } - }, "ListTagsForResourceMessage": { "base": "

The input parameters for the ListTagsForResource action.

", "refs": { @@ -749,11 +671,6 @@ "refs": { } }, - "ModifyCacheClusterResult": { - "base": null, - "refs": { - } - }, "ModifyCacheParameterGroupMessage": { "base": "

Represents the input of a ModifyCacheParameterGroup action.

", "refs": { @@ -764,21 +681,11 @@ "refs": { } }, - "ModifyCacheSubnetGroupResult": { - "base": null, - "refs": { - } - }, "ModifyReplicationGroupMessage": { "base": "

Represents the input of a ModifyReplicationGroups action.

", "refs": { } }, - "ModifyReplicationGroupResult": { - "base": null, - "refs": { - } - }, "NodeGroup": { "base": "

Represents a collection of cache nodes in a replication group.

", "refs": { @@ -809,7 +716,7 @@ } }, "NodeQuotaForCustomerExceededFault": { - "base": "

The request cannot be processed because it would exceed the allowed number of cache nodes per customer.

", + "base": "

The request cannot be processed because it would exceed the allowed number of cache nodes per customer.

", "refs": { } }, @@ -825,12 +732,6 @@ "Snapshot$NodeSnapshots": "

A list of the cache nodes in the source cache cluster.

" } }, - "NodeTypeList": { - "base": null, - "refs": { - "AllowedNodeTypeModificationsMessage$ScaleUpModifications": "

A string list, each element of which specifies a cache node type which you can use to scale your cache cluster or replication group.

When scaling up a Redis cluster or replication group using ModifyCacheCluster or ModifyReplicationGroup, use a value from this list for the CacheNodeType parameter.

" - } - }, "NotificationConfiguration": { "base": "

Describes a notification topic and its status. Notification topics are used for publishing ElastiCache events to subscribers using Amazon Simple Notification Service (SNS).

", "refs": { @@ -853,7 +754,7 @@ "base": null, "refs": { "ModifyCacheParameterGroupMessage$ParameterNameValues": "

An array of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request.

", - "ResetCacheParameterGroupMessage$ParameterNameValues": "

An array of parameter names to reset to their default values. If ResetAllParameters is false, you must specify the name of at least one parameter to reset.

" + "ResetCacheParameterGroupMessage$ParameterNameValues": "

An array of parameter names to be reset. If you are not resetting the entire cache parameter group, you must specify at least one parameter name.

" } }, "ParametersList": { @@ -866,7 +767,7 @@ "PendingAutomaticFailoverStatus": { "base": null, "refs": { - "ReplicationGroupPendingModifiedValues$AutomaticFailoverStatus": "

Indicates the status of Multi-AZ for this replication group.

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.

  • T1 and T2 cache node types.

" + "ReplicationGroupPendingModifiedValues$AutomaticFailoverStatus": "

Indicates the status of Multi-AZ for this replication group.

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
" } }, "PendingModifiedValues": { @@ -878,8 +779,8 @@ "PreferredAvailabilityZoneList": { "base": null, "refs": { - "CreateCacheClusterMessage$PreferredAvailabilityZones": "

A list of the Availability Zones in which cache nodes will be created. The order of the zones in the list is not important.

This option is only supported on Memcached.

If you are creating your cache cluster in an Amazon VPC (recommended) you can only locate nodes in Availability Zones that are associated with the subnets in the selected subnet group.

The number of Availability Zones listed must equal the value of NumCacheNodes.

If you want all the nodes in the same Availability Zone, use PreferredAvailabilityZone instead, or repeat the Availability Zone multiple times in the list.

Default: System chosen Availability Zones.

Example: One Memcached node in each of three different Availability Zones: PreferredAvailabilityZones.member.1=us-west-2a&amp;PreferredAvailabilityZones.member.2=us-west-2b&amp;PreferredAvailabilityZones.member.3=us-west-2c

Example: All three Memcached nodes in one Availability Zone: PreferredAvailabilityZones.member.1=us-west-2a&amp;PreferredAvailabilityZones.member.2=us-west-2a&amp;PreferredAvailabilityZones.member.3=us-west-2a

", - "ModifyCacheClusterMessage$NewAvailabilityZones": "

The list of Availability Zones where the new Memcached cache nodes will be created.

This parameter is only valid when NumCacheNodes in the request is greater than the sum of the number of active cache nodes and the number of cache nodes pending creation (which may be zero). The number of Availability Zones supplied in this list must match the cache nodes being added in this request.

This option is only supported on Memcached clusters.

Scenarios:

  • Scenario 1: You have 3 active nodes and wish to add 2 nodes. Specify NumCacheNodes=5 (3 + 2) and optionally specify two Availability Zones for the two new nodes.

  • Scenario 2: You have 3 active nodes and 2 nodes pending creation (from the scenario 1 call) and want to add 1 more node. Specify NumCacheNodes=6 ((3 + 2) + 1) and optionally specify an Availability Zone for the new node.

  • Scenario 3: You want to cancel all pending actions. Specify NumCacheNodes=3 to cancel all pending actions.

The Availability Zone placement of nodes pending creation cannot be modified. If you wish to cancel any nodes pending creation, add 0 nodes by setting NumCacheNodes to the number of current nodes.

If cross-az is specified, existing Memcached nodes remain in their current Availability Zone. Only newly created nodes can be located in different Availability Zones. For guidance on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.

Impact of new add/remove requests upon pending requests

  • Scenario-1

    • Pending Action: Delete

    • New Request: Delete

    • Result: The new delete, pending or immediate, replaces the pending delete.

  • Scenario-2

    • Pending Action: Delete

    • New Request: Create

    • Result: The new create, pending or immediate, replaces the pending delete.

  • Scenario-3

    • Pending Action: Create

    • New Request: Delete

    • Result: The new delete, pending or immediate, replaces the pending create.

  • Scenario-4

    • Pending Action: Create

    • New Request: Create

    • Result: The new create is added to the pending create.

      Important: If the new create request is Apply Immediately - Yes, all creates are performed immediately. If the new create request is Apply Immediately - No, all creates are pending.

Example:

NewAvailabilityZones.member.1=us-west-2a&amp;NewAvailabilityZones.member.2=us-west-2b&amp;NewAvailabilityZones.member.3=us-west-2c

" + "CreateCacheClusterMessage$PreferredAvailabilityZones": "

A list of the Availability Zones in which cache nodes will be created. The order of the zones in the list is not important.

This option is only supported on Memcached.

If you are creating your cache cluster in an Amazon VPC (recommended) you can only locate nodes in Availability Zones that are associated with the subnets in the selected subnet group.

The number of Availability Zones listed must equal the value of NumCacheNodes.

If you want all the nodes in the same Availability Zone, use PreferredAvailabilityZone instead, or repeat the Availability Zone multiple times in the list.

Default: System chosen Availability Zones.

Example: One Memcached node in each of three different Availability Zones: PreferredAvailabilityZones.member.1=us-west-2a&PreferredAvailabilityZones.member.2=us-west-2b&PreferredAvailabilityZones.member.3=us-west-2c

Example: All three Memcached nodes in one Availability Zone: PreferredAvailabilityZones.member.1=us-west-2a&PreferredAvailabilityZones.member.2=us-west-2a&PreferredAvailabilityZones.member.3=us-west-2a

", + "ModifyCacheClusterMessage$NewAvailabilityZones": "

The list of Availability Zones where the new Memcached cache nodes will be created.

This parameter is only valid when NumCacheNodes in the request is greater than the sum of the number of active cache nodes and the number of cache nodes pending creation (which may be zero). The number of Availability Zones supplied in this list must match the cache nodes being added in this request.

This option is only supported on Memcached clusters.

Scenarios:

  • Scenario 1: You have 3 active nodes and wish to add 2 nodes.
    Specify NumCacheNodes=5 (3 + 2) and optionally specify two Availability Zones for the two new nodes.
  • Scenario 2: You have 3 active nodes and 2 nodes pending creation (from the scenario 1 call) and want to add 1 more node.
    Specify NumCacheNodes=6 ((3 + 2) + 1)
  • and optionally specify an Availability Zone for the new node.
  • Scenario 3: You want to cancel all pending actions.
    Specify NumCacheNodes=3 to cancel all pending actions.

The Availability Zone placement of nodes pending creation cannot be modified. If you wish to cancel any nodes pending creation, add 0 nodes by setting NumCacheNodes to the number of current nodes.

If cross-az is specified, existing Memcached nodes remain in their current Availability Zone. Only newly created nodes can be located in different Availability Zones. For guidance on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.

Impact of new add/remove requests upon pending requests

Scenarios Pending action New Request Results
Scenario-1 Delete Delete The new delete, pending or immediate, replaces the pending delete.
Scenario-2 Delete Create The new create, pending or immediate, replaces the pending delete.
Scenario-3 Create Delete The new delete, pending or immediate, replaces the pending create.
Scenario-4 Create Create The new create is added to the pending create.
Important:
If the new create request is Apply Immediately - Yes, all creates are performed immediately. If the new create request is Apply Immediately - No, all creates are pending.

Example: NewAvailabilityZones.member.1=us-west-2a&NewAvailabilityZones.member.2=us-west-2b&NewAvailabilityZones.member.3=us-west-2c

" } }, "PurchaseReservedCacheNodesOfferingMessage": { @@ -887,21 +788,11 @@ "refs": { } }, - "PurchaseReservedCacheNodesOfferingResult": { - "base": null, - "refs": { - } - }, "RebootCacheClusterMessage": { "base": "

Represents the input of a RebootCacheCluster action.

", "refs": { } }, - "RebootCacheClusterResult": { - "base": null, - "refs": { - } - }, "RecurringCharge": { "base": "

Contains the specific price and frequency of a recurring charges for a reserved cache node, or for a reserved cache node offering.

", "refs": { @@ -923,10 +814,10 @@ "ReplicationGroup": { "base": "

Contains all of the attributes of a specific replication group.

", "refs": { + "ReplicationGroupList$member": null, "CreateReplicationGroupResult$ReplicationGroup": null, "DeleteReplicationGroupResult$ReplicationGroup": null, - "ModifyReplicationGroupResult$ReplicationGroup": null, - "ReplicationGroupList$member": null + "ModifyReplicationGroupResult$ReplicationGroup": null } }, "ReplicationGroupAlreadyExistsFault": { @@ -959,8 +850,8 @@ "ReservedCacheNode": { "base": "

Represents the output of a PurchaseReservedCacheNodesOffering action.

", "refs": { - "PurchaseReservedCacheNodesOfferingResult$ReservedCacheNode": null, - "ReservedCacheNodeList$member": null + "ReservedCacheNodeList$member": null, + "PurchaseReservedCacheNodesOfferingResult$ReservedCacheNode": null } }, "ReservedCacheNodeAlreadyExistsFault": { @@ -1021,11 +912,6 @@ "refs": { } }, - "RevokeCacheSecurityGroupIngressResult": { - "base": null, - "refs": { - } - }, "SecurityGroupIdsList": { "base": null, "refs": { @@ -1050,10 +936,10 @@ "Snapshot": { "base": "

Represents a copy of an entire cache cluster as of the time when the snapshot was taken.

", "refs": { + "SnapshotList$member": null, "CopySnapshotResult$Snapshot": null, "CreateSnapshotResult$Snapshot": null, - "DeleteSnapshotResult$Snapshot": null, - "SnapshotList$member": null + "DeleteSnapshotResult$Snapshot": null } }, "SnapshotAlreadyExistsFault": { @@ -1064,8 +950,8 @@ "SnapshotArnsList": { "base": null, "refs": { - "CreateCacheClusterMessage$SnapshotArns": "

A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. The snapshot file will be used to populate the node group. The Amazon S3 object name in the ARN cannot contain any commas.

This parameter is only valid if the Engine parameter is redis.

Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb

", - "CreateReplicationGroupMessage$SnapshotArns": "

A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. The snapshot file will be used to populate the node group. The Amazon S3 object name in the ARN cannot contain any commas.

This parameter is only valid if the Engine parameter is redis.

Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb

" + "CreateCacheClusterMessage$SnapshotArns": "

A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. The snapshot file will be used to populate the node group. The Amazon S3 object name in the ARN cannot contain any commas.

Note: This parameter is only valid if the Engine parameter is redis.

Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb

", + "CreateReplicationGroupMessage$SnapshotArns": "

A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. The snapshot file will be used to populate the node group. The Amazon S3 object name in the ARN cannot contain any commas.

Note: This parameter is only valid if the Engine parameter is redis.

Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb

" } }, "SnapshotFeatureNotSupportedFault": { @@ -1092,14 +978,14 @@ "SourceType": { "base": null, "refs": { - "DescribeEventsMessage$SourceType": "

The event source to retrieve events for. If no value is specified, all events are returned.

Valid values are: cache-cluster | cache-parameter-group | cache-security-group | cache-subnet-group

", + "DescribeEventsMessage$SourceType": "

The event source to retrieve events for. If no value is specified, all events are returned.

Valid values are: cache-cluster | cache-parameter-group | cache-security-group | cache-subnet-group

", "Event$SourceType": "

Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

" } }, "String": { "base": null, "refs": { - "AddTagsToResourceMessage$ResourceName": "

The Amazon Resource Name (ARN) of the resource to which the tags are to be added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot.

For more information on ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces.

", + "AddTagsToResourceMessage$ResourceName": "

The name of the resource to which the tags are to be added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster.

", "AuthorizeCacheSecurityGroupIngressMessage$CacheSecurityGroupName": "

The cache security group which will allow network ingress.

", "AuthorizeCacheSecurityGroupIngressMessage$EC2SecurityGroupName": "

The Amazon EC2 security group to be authorized for ingress to the cache security group.

", "AuthorizeCacheSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

The AWS account number of the Amazon EC2 security group owner. Note that this is not the same thing as an AWS access key ID - you must provide a valid AWS account number for this parameter.

", @@ -1107,15 +993,15 @@ "AvailabilityZonesList$member": null, "CacheCluster$CacheClusterId": "

The user-supplied identifier of the cache cluster. This identifier is a unique key that identifies a cache cluster.

", "CacheCluster$ClientDownloadLandingPage": "

The URL of the web page where you can download the latest ElastiCache client library.

", - "CacheCluster$CacheNodeType": "

The name of the compute and memory capacity node type for the cache cluster.

Valid node types are as follows:

  • General purpose:

    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized: cache.c1.xlarge

  • Memory optimized:

    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).

  • Redis backup/restore is not supported for t2 instances.

  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "CacheCluster$CacheNodeType": "

The name of the compute and memory capacity node type for the cache cluster.

Valid node types are as follows:

  • General purpose:
    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
  • Compute optimized: cache.c1.xlarge
  • Memory optimized
    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
  • Redis backup/restore is not supported for t2 instances.
  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", "CacheCluster$Engine": "

The name of the cache engine (memcached or redis) to be used for this cache cluster.

", - "CacheCluster$EngineVersion": "

The version of the cache engine that is used in this cache cluster.

", + "CacheCluster$EngineVersion": "

The version of the cache engine version that is used in this cache cluster.

", "CacheCluster$CacheClusterStatus": "

The current state of this cache cluster, one of the following values: available, creating, deleted, deleting, incompatible-network, modifying, rebooting cache cluster nodes, restore-failed, or snapshotting.

", "CacheCluster$PreferredAvailabilityZone": "

The name of the Availability Zone in which the cache cluster is located or \"Multiple\" if the cache nodes are located in different Availability Zones.

", - "CacheCluster$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun

  • mon

  • tue

  • wed

  • thu

  • fri

  • sat

Example: sun:05:00-sun:09:00

", + "CacheCluster$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

", "CacheCluster$CacheSubnetGroupName": "

The name of the cache subnet group associated with the cache cluster.

", "CacheCluster$ReplicationGroupId": "

The replication group to which this cache cluster belongs. If this field is empty, the cache cluster is not associated with any replication group.

", - "CacheCluster$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster.

Example: 05:00-09:00

", + "CacheCluster$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster.

Example: 05:00-09:00

", "CacheClusterMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", "CacheEngineVersion$Engine": "

The name of the cache engine.

", "CacheEngineVersion$EngineVersion": "

The version number of the cache engine.

", @@ -1157,66 +1043,65 @@ "CacheSubnetGroup$VpcId": "

The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.

", "CacheSubnetGroupMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", "ClusterIdList$member": null, - "CopySnapshotMessage$SourceSnapshotName": "

The name of an existing snapshot from which to make a copy.

", - "CopySnapshotMessage$TargetSnapshotName": "

A name for the snapshot copy. ElastiCache does not permit overwriting a snapshot, therefore this name must be unique within its context - ElastiCache or an Amazon S3 bucket if exporting.

Error Message

  • Error Message: The S3 bucket %s already contains an object with key %s.

    Solution: Give the TargetSnapshotName a new and unique value. If exporting a snapshot, you could alternatively create a new Amazon S3 bucket and use this same value for TargetSnapshotName.

", - "CopySnapshotMessage$TargetBucket": "

The Amazon S3 bucket to which the snapshot will be exported. This parameter is used only when exporting a snapshot for external access.

When using this parameter to export a snapshot, be sure Amazon ElastiCache has the needed permissions to this S3 bucket. For more information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the Amazon ElastiCache User Guide.

Error Messages:

You could receive one of the following error messages.

Erorr Messages

  • Error Message: ElastiCache has not been granted READ permissions %s on the S3 Bucket.

    Solution: Add List and Read permissions on the bucket.

  • Error Message: ElastiCache has not been granted WRITE permissions %s on the S3 Bucket.

    Solution: Add Upload/Delete permissions on the bucket.

  • Error Message: ElastiCache has not been granted READ_ACP permissions %s on the S3 Bucket.

    Solution: Add View Permissions permissions on the bucket.

  • Error Message: The S3 bucket %s is outside of the region.

    Solution: Before exporting your snapshot, create a new Amazon S3 bucket in the same region as your snapshot. For more information, see Step 1: Create an Amazon S3 Bucket.

  • Error Message: The S3 bucket %s does not exist.

    Solution: Create an Amazon S3 bucket in the same region as your snapshot. For more information, see Step 1: Create an Amazon S3 Bucket.

  • Error Message: The S3 bucket %s is not owned by the authenticated user.

    Solution: Create an Amazon S3 bucket in the same region as your snapshot. For more information, see Step 1: Create an Amazon S3 Bucket.

  • Error Message: The authenticated user does not have sufficient permissions to perform the desired activity.

    Solution: Contact your system administrator to get the needed permissions.

For more information, see Exporting a Snapshot in the Amazon ElastiCache User Guide.

", - "CreateCacheClusterMessage$CacheClusterId": "

The node group identifier. This parameter is stored as a lowercase string.

Constraints:

  • A name must contain from 1 to 20 alphanumeric characters or hyphens.

  • The first character must be a letter.

  • A name cannot end with a hyphen or contain two consecutive hyphens.

", - "CreateCacheClusterMessage$ReplicationGroupId": "

The ID of the replication group to which this cache cluster should belong. If this parameter is specified, the cache cluster will be added to the specified replication group as a read replica; otherwise, the cache cluster will be a standalone primary that is not part of any replication group.

If the specified replication group is Multi-AZ enabled and the availability zone is not specified, the cache cluster will be created in availability zones that provide the best spread of read replicas across availability zones.

This parameter is only valid if the Engine parameter is redis.

", + "CopySnapshotMessage$SourceSnapshotName": "

The name of an existing snapshot from which to copy.

", + "CopySnapshotMessage$TargetSnapshotName": "

A name for the copied snapshot.

", + "CreateCacheClusterMessage$CacheClusterId": "

The node group identifier. This parameter is stored as a lowercase string.

Constraints:

  • A name must contain from 1 to 20 alphanumeric characters or hyphens.
  • The first character must be a letter.
  • A name cannot end with a hyphen or contain two consecutive hyphens.
", + "CreateCacheClusterMessage$ReplicationGroupId": "

The ID of the replication group to which this cache cluster should belong. If this parameter is specified, the cache cluster will be added to the specified replication group as a read replica; otherwise, the cache cluster will be a standalone primary that is not part of any replication group.

If the specified replication group is Multi-AZ enabled and the availability zone is not specified, the cache cluster will be created in availability zones that provide the best spread of read replicas across availability zones.

Note: This parameter is only valid if the Engine parameter is redis.

", "CreateCacheClusterMessage$PreferredAvailabilityZone": "

The EC2 Availability Zone in which the cache cluster will be created.

All nodes belonging to this Memcached cache cluster are placed in the preferred Availability Zone. If you want to create your nodes across multiple Availability Zones, use PreferredAvailabilityZones.

Default: System chosen Availability Zone.

", - "CreateCacheClusterMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group.

Valid node types are as follows:

  • General purpose:

    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized: cache.c1.xlarge

  • Memory optimized:

    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).

  • Redis backup/restore is not supported for t2 instances.

  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", - "CreateCacheClusterMessage$Engine": "

The name of the cache engine to be used for this cache cluster.

Valid values for this parameter are:

memcached | redis

", - "CreateCacheClusterMessage$EngineVersion": "

The version number of the cache engine to be used for this cache cluster. To view the supported cache engine versions, use the DescribeCacheEngineVersions action.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cache cluster or replication group and create it anew with the earlier engine version.

", + "CreateCacheClusterMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group.

Valid node types are as follows:

  • General purpose:
    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
  • Compute optimized: cache.c1.xlarge
  • Memory optimized
    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
  • Redis backup/restore is not supported for t2 instances.
  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "CreateCacheClusterMessage$Engine": "

The name of the cache engine to be used for this cache cluster.

Valid values for this parameter are:

memcached | redis

", + "CreateCacheClusterMessage$EngineVersion": "

The version number of the cache engine to be used for this cache cluster. To view the supported cache engine versions, use the DescribeCacheEngineVersions action.

", "CreateCacheClusterMessage$CacheParameterGroupName": "

The name of the parameter group to associate with this cache cluster. If this argument is omitted, the default parameter group for the specified engine is used.

", "CreateCacheClusterMessage$CacheSubnetGroupName": "

The name of the subnet group to be used for the cache cluster.

Use this parameter only when you are creating a cache cluster in an Amazon Virtual Private Cloud (VPC).

", - "CreateCacheClusterMessage$SnapshotName": "

The name of a snapshot from which to restore data into the new node group. The snapshot status changes to restoring while the new node group is being created.

This parameter is only valid if the Engine parameter is redis.

", - "CreateCacheClusterMessage$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun

  • mon

  • tue

  • wed

  • thu

  • fri

  • sat

Example: sun:05:00-sun:09:00

", - "CreateCacheClusterMessage$NotificationTopicArn": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications will be sent.

The Amazon SNS topic owner must be the same as the cache cluster owner.

", - "CreateCacheClusterMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your node group.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

Note: This parameter is only valid if the Engine parameter is redis.

", + "CreateCacheClusterMessage$SnapshotName": "

The name of a snapshot from which to restore data into the new node group. The snapshot status changes to restoring while the new node group is being created.

Note: This parameter is only valid if the Engine parameter is redis.

", + "CreateCacheClusterMessage$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

", + "CreateCacheClusterMessage$NotificationTopicArn": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications will be sent.

The Amazon SNS topic owner must be the same as the cache cluster owner.", + "CreateCacheClusterMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your node group.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

Note: This parameter is only valid if the Engine parameter is redis.

", "CreateCacheParameterGroupMessage$CacheParameterGroupName": "

A user-specified name for the cache parameter group.

", - "CreateCacheParameterGroupMessage$CacheParameterGroupFamily": "

The name of the cache parameter group family the cache parameter group can be used with.

Valid values are: memcached1.4 | redis2.6 | redis2.8

", + "CreateCacheParameterGroupMessage$CacheParameterGroupFamily": "

The name of the cache parameter group family the cache parameter group can be used with.

Valid values are: memcached1.4 | redis2.6 | redis2.8

", "CreateCacheParameterGroupMessage$Description": "

A user-specified description for the cache parameter group.

", - "CreateCacheSecurityGroupMessage$CacheSecurityGroupName": "

A name for the cache security group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word \"Default\".

Example: mysecuritygroup

", + "CreateCacheSecurityGroupMessage$CacheSecurityGroupName": "

A name for the cache security group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word \"Default\".

Example: mysecuritygroup

", "CreateCacheSecurityGroupMessage$Description": "

A description for the cache security group.

", - "CreateCacheSubnetGroupMessage$CacheSubnetGroupName": "

A name for the cache subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens.

Example: mysubnetgroup

", + "CreateCacheSubnetGroupMessage$CacheSubnetGroupName": "

A name for the cache subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens.

Example: mysubnetgroup

", "CreateCacheSubnetGroupMessage$CacheSubnetGroupDescription": "

A description for the cache subnet group.

", - "CreateReplicationGroupMessage$ReplicationGroupId": "

The replication group identifier. This parameter is stored as a lowercase string.

Constraints:

  • A name must contain from 1 to 20 alphanumeric characters or hyphens.

  • The first character must be a letter.

  • A name cannot end with a hyphen or contain two consecutive hyphens.

", + "CreateReplicationGroupMessage$ReplicationGroupId": "

The replication group identifier. This parameter is stored as a lowercase string.

Constraints:

  • A name must contain from 1 to 20 alphanumeric characters or hyphens.
  • The first character must be a letter.
  • A name cannot end with a hyphen or contain two consecutive hyphens.
", "CreateReplicationGroupMessage$ReplicationGroupDescription": "

A user-created description for the replication group.

", "CreateReplicationGroupMessage$PrimaryClusterId": "

The identifier of the cache cluster that will serve as the primary for this replication group. This cache cluster must already exist and have a status of available.

This parameter is not required if NumCacheClusters is specified.

", - "CreateReplicationGroupMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group.

Valid node types are as follows:

  • General purpose:

    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized: cache.c1.xlarge

  • Memory optimized:

    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).

  • Redis backup/restore is not supported for t2 instances.

  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "CreateReplicationGroupMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group.

Valid node types are as follows:

  • General purpose:
    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
  • Compute optimized: cache.c1.xlarge
  • Memory optimized
    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
  • Redis backup/restore is not supported for t2 instances.
  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", "CreateReplicationGroupMessage$Engine": "

The name of the cache engine to be used for the cache clusters in this replication group.

Default: redis

", - "CreateReplicationGroupMessage$EngineVersion": "

The version number of the cache engine to be used for the cache clusters in this replication group. To view the supported cache engine versions, use the DescribeCacheEngineVersions action.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cache cluster or replication group and create it anew with the earlier engine version.

", + "CreateReplicationGroupMessage$EngineVersion": "

The version number of the cache engine to be used for the cache clusters in this replication group. To view the supported cache engine versions, use the DescribeCacheEngineVersions action.

", "CreateReplicationGroupMessage$CacheParameterGroupName": "

The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used.

", "CreateReplicationGroupMessage$CacheSubnetGroupName": "

The name of the cache subnet group to be used for the replication group.

", - "CreateReplicationGroupMessage$SnapshotName": "

The name of a snapshot from which to restore data into the new node group. The snapshot status changes to restoring while the new node group is being created.

This parameter is only valid if the Engine parameter is redis.

", - "CreateReplicationGroupMessage$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun

  • mon

  • tue

  • wed

  • thu

  • fri

  • sat

Example: sun:05:00-sun:09:00

", - "CreateReplicationGroupMessage$NotificationTopicArn": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications will be sent.

The Amazon SNS topic owner must be the same as the cache cluster owner.

", - "CreateReplicationGroupMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your node group.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

This parameter is only valid if the Engine parameter is redis.

", + "CreateReplicationGroupMessage$SnapshotName": "

The name of a snapshot from which to restore data into the new node group. The snapshot status changes to restoring while the new node group is being created.

Note: This parameter is only valid if the Engine parameter is redis.

", + "CreateReplicationGroupMessage$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

", + "CreateReplicationGroupMessage$NotificationTopicArn": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications will be sent.

The Amazon SNS topic owner must be the same as the cache cluster owner.", + "CreateReplicationGroupMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your node group.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

Note: This parameter is only valid if the Engine parameter is redis.

", "CreateSnapshotMessage$CacheClusterId": "

The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.

", "CreateSnapshotMessage$SnapshotName": "

A name for the snapshot being created.

", "DeleteCacheClusterMessage$CacheClusterId": "

The cache cluster identifier for the cluster to be deleted. This parameter is not case sensitive.

", "DeleteCacheClusterMessage$FinalSnapshotIdentifier": "

The user-supplied name of a final cache cluster snapshot. This is the unique name that identifies the snapshot. ElastiCache creates the snapshot, and then deletes the cache cluster immediately afterward.

", - "DeleteCacheParameterGroupMessage$CacheParameterGroupName": "

The name of the cache parameter group to delete.

The specified cache security group must not be associated with any cache clusters.

", - "DeleteCacheSecurityGroupMessage$CacheSecurityGroupName": "

The name of the cache security group to delete.

You cannot delete the default security group.

", + "DeleteCacheParameterGroupMessage$CacheParameterGroupName": "

The name of the cache parameter group to delete.

The specified cache security group must not be associated with any cache clusters.", + "DeleteCacheSecurityGroupMessage$CacheSecurityGroupName": "

The name of the cache security group to delete.

You cannot delete the default security group.", "DeleteCacheSubnetGroupMessage$CacheSubnetGroupName": "

The name of the cache subnet group to delete.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens.

", "DeleteReplicationGroupMessage$ReplicationGroupId": "

The identifier for the cluster to be deleted. This parameter is not case sensitive.

", "DeleteReplicationGroupMessage$FinalSnapshotIdentifier": "

The name of a final node group snapshot. ElastiCache creates the snapshot from the primary node in the cluster, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the cluster is immediately deleted.

", "DeleteSnapshotMessage$SnapshotName": "

The name of the snapshot to be deleted.

", "DescribeCacheClustersMessage$CacheClusterId": "

The user-supplied cluster identifier. If this parameter is specified, only information about that specific cache cluster is returned. This parameter isn't case sensitive.

", "DescribeCacheClustersMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeCacheEngineVersionsMessage$Engine": "

The cache engine to return. Valid values: memcached | redis

", - "DescribeCacheEngineVersionsMessage$EngineVersion": "

The cache engine version to return.

Example: 1.4.14

", - "DescribeCacheEngineVersionsMessage$CacheParameterGroupFamily": "

The name of a specific cache parameter group family to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

", + "DescribeCacheEngineVersionsMessage$Engine": "

The cache engine to return. Valid values: memcached | redis

", + "DescribeCacheEngineVersionsMessage$EngineVersion": "

The cache engine version to return.

Example: 1.4.14

", + "DescribeCacheEngineVersionsMessage$CacheParameterGroupFamily": "

The name of a specific cache parameter group family to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", "DescribeCacheEngineVersionsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeCacheParameterGroupsMessage$CacheParameterGroupName": "

The name of a specific cache parameter group to return details for.

", "DescribeCacheParameterGroupsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeCacheParametersMessage$CacheParameterGroupName": "

The name of a specific cache parameter group to return details for.

", - "DescribeCacheParametersMessage$Source": "

The parameter types to return.

Valid values: user | system | engine-default

", + "DescribeCacheParametersMessage$Source": "

The parameter types to return.

Valid values: user | system | engine-default

", "DescribeCacheParametersMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeCacheSecurityGroupsMessage$CacheSecurityGroupName": "

The name of the cache security group to return details for.

", "DescribeCacheSecurityGroupsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeCacheSubnetGroupsMessage$CacheSubnetGroupName": "

The name of the cache subnet group to return details for.

", "DescribeCacheSubnetGroupsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeEngineDefaultParametersMessage$CacheParameterGroupFamily": "

The name of the cache parameter group family. Valid values are: memcached1.4 | redis2.6 | redis2.8

", + "DescribeEngineDefaultParametersMessage$CacheParameterGroupFamily": "

The name of the cache parameter group family. Valid values are: memcached1.4 | redis2.6 | redis2.8

", "DescribeEngineDefaultParametersMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeEventsMessage$SourceIdentifier": "

The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.

", "DescribeEventsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", @@ -1224,16 +1109,16 @@ "DescribeReplicationGroupsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeReservedCacheNodesMessage$ReservedCacheNodeId": "

The reserved cache node identifier filter value. Use this parameter to show only the reservation that matches the specified reservation ID.

", "DescribeReservedCacheNodesMessage$ReservedCacheNodesOfferingId": "

The offering identifier filter value. Use this parameter to show only purchased reservations matching the specified offering identifier.

", - "DescribeReservedCacheNodesMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.

Valid node types are as follows:

  • General purpose:

    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized: cache.c1.xlarge

  • Memory optimized:

    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).

  • Redis backup/restore is not supported for t2 instances.

  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", - "DescribeReservedCacheNodesMessage$Duration": "

The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", + "DescribeReservedCacheNodesMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.

Valid node types are as follows:

  • General purpose:
    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
  • Compute optimized: cache.c1.xlarge
  • Memory optimized
    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
  • Redis backup/restore is not supported for t2 instances.
  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "DescribeReservedCacheNodesMessage$Duration": "

The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", "DescribeReservedCacheNodesMessage$ProductDescription": "

The product description filter value. Use this parameter to show only those reservations matching the specified product description.

", - "DescribeReservedCacheNodesMessage$OfferingType": "

The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.

Valid values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\"

", + "DescribeReservedCacheNodesMessage$OfferingType": "

The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.

Valid values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\"

", "DescribeReservedCacheNodesMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeReservedCacheNodesOfferingsMessage$ReservedCacheNodesOfferingId": "

The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "DescribeReservedCacheNodesOfferingsMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.

Valid node types are as follows:

  • General purpose:

    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized: cache.c1.xlarge

  • Memory optimized:

    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).

  • Redis backup/restore is not supported for t2 instances.

  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", - "DescribeReservedCacheNodesOfferingsMessage$Duration": "

Duration filter value, specified in years or seconds. Use this parameter to show only reservations for a given duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", + "DescribeReservedCacheNodesOfferingsMessage$ReservedCacheNodesOfferingId": "

The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", + "DescribeReservedCacheNodesOfferingsMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.

Valid node types are as follows:

  • General purpose:
    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
  • Compute optimized: cache.c1.xlarge
  • Memory optimized
    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
  • Redis backup/restore is not supported for t2 instances.
  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "DescribeReservedCacheNodesOfferingsMessage$Duration": "

Duration filter value, specified in years or seconds. Use this parameter to show only reservations for a given duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", "DescribeReservedCacheNodesOfferingsMessage$ProductDescription": "

The product description filter value. Use this parameter to show only the available offerings matching the specified product description.

", - "DescribeReservedCacheNodesOfferingsMessage$OfferingType": "

The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\"

", + "DescribeReservedCacheNodesOfferingsMessage$OfferingType": "

The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\"

", "DescribeReservedCacheNodesOfferingsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeSnapshotsListMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeSnapshotsMessage$CacheClusterId": "

A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that specific cache cluster will be described.

", @@ -1250,31 +1135,27 @@ "Event$Message": "

The text of the event.

", "EventsMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", "KeyList$member": null, - "ListAllowedNodeTypeModificationsMessage$CacheClusterId": "

The name of the cache cluster you want to scale up to a larger node instanced type. ElastiCache uses the cluster id to identify the current node type of this cluster and from that to to create a list of node types you can scale up to.

You must provide a value for either the CacheClusterId or the ReplicationGroupId.

", - "ListAllowedNodeTypeModificationsMessage$ReplicationGroupId": "

The name of the replication group want to scale up to a larger node type. ElastiCache uses the replication group id to identify the current node type being used by this replication group, and from that to create a list of node types you can scale up to.

You must provide a value for either the CacheClusterId or the ReplicationGroupId.

", - "ListTagsForResourceMessage$ResourceName": "

The Amazon Resource Name (ARN) of the resource for which you want the list of tags, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot.

For more information on ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces.

", + "ListTagsForResourceMessage$ResourceName": "

The name of the resource for which you want the list of tags, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster.

", "ModifyCacheClusterMessage$CacheClusterId": "

The cache cluster identifier. This value is stored as a lowercase string.

", - "ModifyCacheClusterMessage$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun

  • mon

  • tue

  • wed

  • thu

  • fri

  • sat

Example: sun:05:00-sun:09:00

", - "ModifyCacheClusterMessage$NotificationTopicArn": "

The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.

The Amazon SNS topic owner must be same as the cache cluster owner.

", + "ModifyCacheClusterMessage$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

", + "ModifyCacheClusterMessage$NotificationTopicArn": "

The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.

The Amazon SNS topic owner must be same as the cache cluster owner. ", "ModifyCacheClusterMessage$CacheParameterGroupName": "

The name of the cache parameter group to apply to this cache cluster. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.

", - "ModifyCacheClusterMessage$NotificationTopicStatus": "

The status of the Amazon SNS notification topic. Notifications are sent only if the status is active.

Valid values: active | inactive

", - "ModifyCacheClusterMessage$EngineVersion": "

The upgraded version of the cache engine to be run on the cache nodes.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cache cluster and create it anew with the earlier engine version.

", + "ModifyCacheClusterMessage$NotificationTopicStatus": "

The status of the Amazon SNS notification topic. Notifications are sent only if the status is active.

Valid values: active | inactive

", + "ModifyCacheClusterMessage$EngineVersion": "

The upgraded version of the cache engine to be run on the cache nodes.

", "ModifyCacheClusterMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster.

", - "ModifyCacheClusterMessage$CacheNodeType": "

A valid cache node type that you want to scale this cache cluster to. The value of this parameter must be one of the ScaleUpModifications values returned by the ListAllowedCacheNodeTypeModification action.

", "ModifyCacheParameterGroupMessage$CacheParameterGroupName": "

The name of the cache parameter group to modify.

", - "ModifyCacheSubnetGroupMessage$CacheSubnetGroupName": "

The name for the cache subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens.

Example: mysubnetgroup

", + "ModifyCacheSubnetGroupMessage$CacheSubnetGroupName": "

The name for the cache subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens.

Example: mysubnetgroup

", "ModifyCacheSubnetGroupMessage$CacheSubnetGroupDescription": "

A description for the cache subnet group.

", "ModifyReplicationGroupMessage$ReplicationGroupId": "

The identifier of the replication group to modify.

", "ModifyReplicationGroupMessage$ReplicationGroupDescription": "

A description for the replication group. Maximum length is 255 characters.

", - "ModifyReplicationGroupMessage$PrimaryClusterId": "

If this parameter is specified, ElastiCache will promote the specified cluster in the specified replication group to the primary role. The nodes of all other clusters in the replication group will be read replicas.

", + "ModifyReplicationGroupMessage$PrimaryClusterId": "

If this parameter is specified, ElastiCache will promote each of the cache clusters in the specified replication group to the primary role. The nodes of all other cache clusters in the replication group will be read replicas.

", "ModifyReplicationGroupMessage$SnapshottingClusterId": "

The cache cluster ID that will be used as the daily snapshot source for the replication group.

", - "ModifyReplicationGroupMessage$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun

  • mon

  • tue

  • wed

  • thu

  • fri

  • sat

Example: sun:05:00-sun:09:00

", - "ModifyReplicationGroupMessage$NotificationTopicArn": "

The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.

The Amazon SNS topic owner must be same as the replication group owner.

", + "ModifyReplicationGroupMessage$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

", + "ModifyReplicationGroupMessage$NotificationTopicArn": "

The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.

The Amazon SNS topic owner must be same as the replication group owner. ", "ModifyReplicationGroupMessage$CacheParameterGroupName": "

The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.

", - "ModifyReplicationGroupMessage$NotificationTopicStatus": "

The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.

Valid values: active | inactive

", - "ModifyReplicationGroupMessage$EngineVersion": "

The upgraded version of the cache engine to be run on the cache clusters in the replication group.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing replication group and create it anew with the earlier engine version.

", - "ModifyReplicationGroupMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

", - "ModifyReplicationGroupMessage$CacheNodeType": "

A valid cache node type that you want to scale this replication group to. The value of this parameter must be one of the ScaleUpModifications values returned by the ListAllowedCacheNodeTypeModification action.

", + "ModifyReplicationGroupMessage$NotificationTopicStatus": "

The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.

Valid values: active | inactive

", + "ModifyReplicationGroupMessage$EngineVersion": "

The upgraded version of the cache engine to be run on the cache clusters in the replication group.

", + "ModifyReplicationGroupMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

", "NodeGroup$NodeGroupId": "

The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.

", "NodeGroup$Status": "

The current state of this replication group - creating, available, etc.

", "NodeGroupMember$CacheClusterId": "

The ID of the cache cluster to which the node belongs.

", @@ -1283,7 +1164,6 @@ "NodeGroupMember$CurrentRole": "

The role that is currently assigned to the node - primary or replica.

", "NodeSnapshot$CacheNodeId": "

The cache node identifier for the node in the source cache cluster.

", "NodeSnapshot$CacheSize": "

The size of the cache on the source cache node.

", - "NodeTypeList$member": null, "NotificationConfiguration$TopicArn": "

The Amazon Resource Name (ARN) that identifies the topic.

", "NotificationConfiguration$TopicStatus": "

The current state of the topic.

", "Parameter$ParameterName": "

The name of the parameter.

", @@ -1296,13 +1176,12 @@ "ParameterNameValue$ParameterName": "

The name of the parameter.

", "ParameterNameValue$ParameterValue": "

The value of the parameter.

", "PendingModifiedValues$EngineVersion": "

The new cache engine version that the cache cluster will run.

", - "PendingModifiedValues$CacheNodeType": "

The cache node type that this cache cluster or replication group will be scaled to.

", "PreferredAvailabilityZoneList$member": null, - "PurchaseReservedCacheNodesOfferingMessage$ReservedCacheNodesOfferingId": "

The ID of the reserved cache node offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "PurchaseReservedCacheNodesOfferingMessage$ReservedCacheNodeId": "

A customer-specified identifier to track this reservation.

The Reserved Cache Node ID is an unique customer-specified identifier to track this reservation. If this parameter is not specified, ElastiCache automatically generates an identifier for the reservation.

Example: myreservationID

", + "PurchaseReservedCacheNodesOfferingMessage$ReservedCacheNodesOfferingId": "

The ID of the reserved cache node offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", + "PurchaseReservedCacheNodesOfferingMessage$ReservedCacheNodeId": "

A customer-specified identifier to track this reservation.

Example: myreservationID

", "RebootCacheClusterMessage$CacheClusterId": "

The cache cluster identifier. This parameter is stored as a lowercase string.

", "RecurringCharge$RecurringChargeFrequency": "

The frequency of the recurring charge.

", - "RemoveTagsFromResourceMessage$ResourceName": "

The Amazon Resource Name (ARN) of the resource from which you want the tags removed, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot.

For more information on ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces.

", + "RemoveTagsFromResourceMessage$ResourceName": "

The name of the ElastiCache resource from which you want the listed tags removed, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster.

", "ReplicationGroup$ReplicationGroupId": "

The identifier for the replication group.

", "ReplicationGroup$Description": "

The description of the replication group.

", "ReplicationGroup$Status": "

The current state of this replication group - creating, available, etc.

", @@ -1311,13 +1190,13 @@ "ReplicationGroupPendingModifiedValues$PrimaryClusterId": "

The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.

", "ReservedCacheNode$ReservedCacheNodeId": "

The unique identifier for the reservation.

", "ReservedCacheNode$ReservedCacheNodesOfferingId": "

The offering identifier.

", - "ReservedCacheNode$CacheNodeType": "

The cache node type for the reserved cache nodes.

Valid node types are as follows:

  • General purpose:

    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized: cache.c1.xlarge

  • Memory optimized:

    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).

  • Redis backup/restore is not supported for t2 instances.

  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "ReservedCacheNode$CacheNodeType": "

The cache node type for the reserved cache nodes.

Valid node types are as follows:

  • General purpose:
    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
  • Compute optimized: cache.c1.xlarge
  • Memory optimized
    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
  • Redis backup/restore is not supported for t2 instances.
  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", "ReservedCacheNode$ProductDescription": "

The description of the reserved cache node.

", "ReservedCacheNode$OfferingType": "

The offering type of this reserved cache node.

", "ReservedCacheNode$State": "

The state of the reserved cache node.

", "ReservedCacheNodeMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", "ReservedCacheNodesOffering$ReservedCacheNodesOfferingId": "

A unique identifier for the reserved cache node offering.

", - "ReservedCacheNodesOffering$CacheNodeType": "

The cache node type for the reserved cache node.

Valid node types are as follows:

  • General purpose:

    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized: cache.c1.xlarge

  • Memory optimized:

    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).

  • Redis backup/restore is not supported for t2 instances.

  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "ReservedCacheNodesOffering$CacheNodeType": "

The cache node type for the reserved cache node.

Valid node types are as follows:

  • General purpose:
    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
  • Compute optimized: cache.c1.xlarge
  • Memory optimized
    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
  • Redis backup/restore is not supported for t2 instances.
  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", "ReservedCacheNodesOffering$ProductDescription": "

The cache engine used by the offering.

", "ReservedCacheNodesOffering$OfferingType": "

The offering type.

", "ReservedCacheNodesOfferingMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", @@ -1332,11 +1211,11 @@ "Snapshot$CacheClusterId": "

The user-supplied identifier of the source cache cluster.

", "Snapshot$SnapshotStatus": "

The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.

", "Snapshot$SnapshotSource": "

Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).

", - "Snapshot$CacheNodeType": "

The name of the compute and memory capacity node type for the source cache cluster.

Valid node types are as follows:

  • General purpose:

    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized: cache.c1.xlarge

  • Memory optimized:

    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).

  • Redis backup/restore is not supported for t2 instances.

  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "Snapshot$CacheNodeType": "

The name of the compute and memory capacity node type for the source cache cluster.

Valid node types are as follows:

  • General purpose:
    • Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
    • Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
  • Compute optimized: cache.c1.xlarge
  • Memory optimized
    • Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
    • Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
  • Redis backup/restore is not supported for t2 instances.
  • Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.

For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", "Snapshot$Engine": "

The name of the cache engine (memcached or redis) used by the source cache cluster.

", "Snapshot$EngineVersion": "

The version of the cache engine version that is used by the source cache cluster.

", "Snapshot$PreferredAvailabilityZone": "

The name of the Availability Zone in which the source cache cluster is located.

", - "Snapshot$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun

  • mon

  • tue

  • wed

  • thu

  • fri

  • sat

Example: sun:05:00-sun:09:00

", + "Snapshot$PreferredMaintenanceWindow": "

Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

", "Snapshot$TopicArn": "

The Amazon Resource Name (ARN) for the topic used by the source cache cluster for publishing notifications.

", "Snapshot$CacheParameterGroupName": "

The cache parameter group that is associated with the source cache cluster.

", "Snapshot$CacheSubnetGroupName": "

The name of the cache subnet group associated with the source cache cluster.

", @@ -1399,7 +1278,7 @@ "AddTagsToResourceMessage$Tags": "

A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.

", "CreateCacheClusterMessage$Tags": "

A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.

", "CreateReplicationGroupMessage$Tags": "

A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.

", - "TagListMessage$TagList": "

A list of cost allocation tags as key-value pairs.

" + "TagListMessage$TagList": "

A list of cost allocation tags as key-value pairs.

" } }, "TagListMessage": { @@ -1416,6 +1295,96 @@ "base": "

The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 10.

", "refs": { } + }, + "AuthorizeCacheSecurityGroupIngressResult": { + "base": null, + "refs": { + } + }, + "CopySnapshotResult": { + "base": null, + "refs": { + } + }, + "CreateCacheClusterResult": { + "base": null, + "refs": { + } + }, + "CreateCacheParameterGroupResult": { + "base": null, + "refs": { + } + }, + "CreateCacheSecurityGroupResult": { + "base": null, + "refs": { + } + }, + "CreateCacheSubnetGroupResult": { + "base": null, + "refs": { + } + }, + "CreateReplicationGroupResult": { + "base": null, + "refs": { + } + }, + "CreateSnapshotResult": { + "base": null, + "refs": { + } + }, + "DeleteCacheClusterResult": { + "base": null, + "refs": { + } + }, + "DeleteReplicationGroupResult": { + "base": null, + "refs": { + } + }, + "DeleteSnapshotResult": { + "base": null, + "refs": { + } + }, + "DescribeEngineDefaultParametersResult": { + "base": null, + "refs": { + } + }, + "ModifyCacheClusterResult": { + "base": null, + "refs": { + } + }, + "ModifyCacheSubnetGroupResult": { + "base": null, + "refs": { + } + }, + "ModifyReplicationGroupResult": { + "base": null, + "refs": { + } + }, + "PurchaseReservedCacheNodesOfferingResult": { + "base": null, + "refs": { + } + }, + "RebootCacheClusterResult": { + "base": null, + "refs": { + } + }, + "RevokeCacheSecurityGroupIngressResult": { + "base": null, + "refs": { + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/waiters-2.json new file mode 100644 index 000000000..219b3f0e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticache/2015-02-02/waiters-2.json @@ -0,0 +1,143 @@ +{ + "version": 2, + "waiters": { + "CacheClusterAvailable": { + "delay": 15, + "operation": "DescribeCacheClusters", + "maxAttempts": 40, + "description": "Wait until ElastiCache cluster is available.", + "acceptors": [ + { + "expected": "available", + "matcher": "pathAll", + "state": "success", + "argument": "CacheClusters[].CacheClusterStatus" + }, + { + "expected": "deleted", + "matcher": "pathAny", + "state": "failure", + "argument": "CacheClusters[].CacheClusterStatus" + }, + { + "expected": "deleting", + "matcher": "pathAny", + "state": "failure", + "argument": "CacheClusters[].CacheClusterStatus" + }, + { + "expected": "incompatible-network", + "matcher": "pathAny", + "state": "failure", + "argument": "CacheClusters[].CacheClusterStatus" + }, + { + "expected": "restore-failed", + "matcher": "pathAny", + "state": "failure", + "argument": "CacheClusters[].CacheClusterStatus" + } + ] + }, + "CacheClusterDeleted": { + "delay": 15, + "operation": "DescribeCacheClusters", + "maxAttempts": 40, + "description": "Wait until ElastiCache cluster is deleted.", + "acceptors": [ + { + "expected": "deleted", + "matcher": "pathAll", + "state": "success", + "argument": "CacheClusters[].CacheClusterStatus" + }, + { + "expected": "CacheClusterNotFound", + "matcher": "error", + "state": "success" + }, + { + "expected": "available", + "matcher": "pathAny", + "state": "failure", + "argument": "CacheClusters[].CacheClusterStatus" + }, + { + "expected": "creating", + "matcher": "pathAny", + "state": "failure", + "argument": "CacheClusters[].CacheClusterStatus" + }, + { + "expected": "incompatible-network", + "matcher": "pathAny", + "state": "failure", + "argument": "CacheClusters[].CacheClusterStatus" + }, + { + "expected": "modifying", + "matcher": "pathAny", + "state": "failure", + "argument": "CacheClusters[].CacheClusterStatus" + }, + { + "expected": "restore-failed", + "matcher": "pathAny", + "state": "failure", + "argument": "CacheClusters[].CacheClusterStatus" + }, + { + "expected": "snapshotting", + "matcher": "pathAny", + "state": "failure", + "argument": "CacheClusters[].CacheClusterStatus" + } + ] + }, + "ReplicationGroupAvailable": { + "delay": 15, + "operation": "DescribeReplicationGroups", + "maxAttempts": 40, + "description": "Wait until ElastiCache replication group is available.", + "acceptors": [ + { + "expected": "available", + "matcher": "pathAll", + "state": "success", + "argument": "ReplicationGroups[].Status" + }, + { + "expected": "deleted", + "matcher": "pathAny", + "state": "failure", + "argument": "ReplicationGroups[].Status" + } + ] + }, + "ReplicationGroupDeleted": { + "delay": 15, + "operation": "DescribeReplicationGroups", + "maxAttempts": 40, + "description": "Wait until ElastiCache replication group is deleted.", + "acceptors": [ + { + "expected": "deleted", + "matcher": "pathAll", + "state": "success", + "argument": "ReplicationGroups[].Status" + }, + { + "expected": "available", + "matcher": "pathAny", + "state": "failure", + "argument": "ReplicationGroups[].Status" + }, + { + "expected": "ReplicationGroupNotFoundFault", + "matcher": "error", + "state": "success" + } + ] + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticbeanstalk/2010-12-01/api-2.json similarity index 81% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticbeanstalk/2010-12-01/api-2.json index 4a7d2e705..d38108262 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticbeanstalk/2010-12-01/api-2.json @@ -3,11 +3,11 @@ "metadata":{ "apiVersion":"2010-12-01", "endpointPrefix":"elasticbeanstalk", - "protocol":"query", "serviceAbbreviation":"Elastic Beanstalk", "serviceFullName":"AWS Elastic Beanstalk", "signatureVersion":"v4", - "xmlNamespace":"http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/" + "xmlNamespace":"http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/", + "protocol":"query" }, "operations":{ "AbortEnvironmentUpdate":{ @@ -18,23 +18,15 @@ }, "input":{"shape":"AbortEnvironmentUpdateMessage"}, "errors":[ - {"shape":"InsufficientPrivilegesException"} - ] - }, - "ApplyEnvironmentManagedAction":{ - "name":"ApplyEnvironmentManagedAction", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ApplyEnvironmentManagedActionRequest"}, - "output":{ - "shape":"ApplyEnvironmentManagedActionResult", - "resultWrapper":"ApplyEnvironmentManagedActionResult" - }, - "errors":[ - {"shape":"ElasticBeanstalkServiceException"}, - {"shape":"ManagedActionInvalidStateException"} + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "CheckDNSAvailability":{ @@ -49,22 +41,6 @@ "resultWrapper":"CheckDNSAvailabilityResult" } }, - "ComposeEnvironments":{ - "name":"ComposeEnvironments", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ComposeEnvironmentsMessage"}, - "output":{ - "shape":"EnvironmentDescriptionsMessage", - "resultWrapper":"ComposeEnvironmentsResult" - }, - "errors":[ - {"shape":"TooManyEnvironmentsException"}, - {"shape":"InsufficientPrivilegesException"} - ] - }, "CreateApplication":{ "name":"CreateApplication", "http":{ @@ -77,7 +53,15 @@ "resultWrapper":"CreateApplicationResult" }, "errors":[ - {"shape":"TooManyApplicationsException"} + { + "shape":"TooManyApplicationsException", + "error":{ + "code":"TooManyApplicationsException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateApplicationVersion":{ @@ -92,10 +76,37 @@ "resultWrapper":"CreateApplicationVersionResult" }, "errors":[ - {"shape":"TooManyApplicationsException"}, - {"shape":"TooManyApplicationVersionsException"}, - {"shape":"InsufficientPrivilegesException"}, - {"shape":"S3LocationNotInServiceRegionException"} + { + "shape":"TooManyApplicationsException", + "error":{ + "code":"TooManyApplicationsException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TooManyApplicationVersionsException", + "exception":true + }, + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"S3LocationNotInServiceRegionException", + "error":{ + "code":"S3LocationNotInServiceRegionException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateConfigurationTemplate":{ @@ -110,9 +121,24 @@ "resultWrapper":"CreateConfigurationTemplateResult" }, "errors":[ - {"shape":"InsufficientPrivilegesException"}, - {"shape":"TooManyBucketsException"}, - {"shape":"TooManyConfigurationTemplatesException"} + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TooManyConfigurationTemplatesException", + "error":{ + "code":"TooManyConfigurationTemplatesException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateEnvironment":{ @@ -127,8 +153,24 @@ "resultWrapper":"CreateEnvironmentResult" }, "errors":[ - {"shape":"TooManyEnvironmentsException"}, - {"shape":"InsufficientPrivilegesException"} + { + "shape":"TooManyEnvironmentsException", + "error":{ + "code":"TooManyEnvironmentsException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "CreateStorageLocation":{ @@ -142,9 +184,33 @@ "resultWrapper":"CreateStorageLocationResult" }, "errors":[ - {"shape":"TooManyBucketsException"}, - {"shape":"S3SubscriptionRequiredException"}, - {"shape":"InsufficientPrivilegesException"} + { + "shape":"TooManyBucketsException", + "error":{ + "code":"TooManyBucketsException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"S3SubscriptionRequiredException", + "error":{ + "code":"S3SubscriptionRequiredException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "DeleteApplication":{ @@ -155,7 +221,15 @@ }, "input":{"shape":"DeleteApplicationMessage"}, "errors":[ - {"shape":"OperationInProgressException"} + { + "shape":"OperationInProgressException", + "error":{ + "code":"OperationInProgressFailure", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteApplicationVersion":{ @@ -166,10 +240,42 @@ }, "input":{"shape":"DeleteApplicationVersionMessage"}, "errors":[ - {"shape":"SourceBundleDeletionException"}, - {"shape":"InsufficientPrivilegesException"}, - {"shape":"OperationInProgressException"}, - {"shape":"S3LocationNotInServiceRegionException"} + { + "shape":"SourceBundleDeletionException", + "error":{ + "code":"SourceBundleDeletionFailure", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OperationInProgressException", + "error":{ + "code":"OperationInProgressFailure", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"S3LocationNotInServiceRegionException", + "error":{ + "code":"S3LocationNotInServiceRegionException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteConfigurationTemplate":{ @@ -180,7 +286,15 @@ }, "input":{"shape":"DeleteConfigurationTemplateMessage"}, "errors":[ - {"shape":"OperationInProgressException"} + { + "shape":"OperationInProgressException", + "error":{ + "code":"OperationInProgressFailure", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteEnvironmentConfiguration":{ @@ -225,10 +339,7 @@ "output":{ "shape":"ConfigurationOptionsDescription", "resultWrapper":"DescribeConfigurationOptionsResult" - }, - "errors":[ - {"shape":"TooManyBucketsException"} - ] + } }, "DescribeConfigurationSettings":{ "name":"DescribeConfigurationSettings", @@ -240,10 +351,7 @@ "output":{ "shape":"ConfigurationSettingsDescriptions", "resultWrapper":"DescribeConfigurationSettingsResult" - }, - "errors":[ - {"shape":"TooManyBucketsException"} - ] + } }, "DescribeEnvironmentHealth":{ "name":"DescribeEnvironmentHealth", @@ -257,38 +365,19 @@ "resultWrapper":"DescribeEnvironmentHealthResult" }, "errors":[ - {"shape":"InvalidRequestException"}, - {"shape":"ElasticBeanstalkServiceException"} - ] - }, - "DescribeEnvironmentManagedActionHistory":{ - "name":"DescribeEnvironmentManagedActionHistory", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEnvironmentManagedActionHistoryRequest"}, - "output":{ - "shape":"DescribeEnvironmentManagedActionHistoryResult", - "resultWrapper":"DescribeEnvironmentManagedActionHistoryResult" - }, - "errors":[ - {"shape":"ElasticBeanstalkServiceException"} - ] - }, - "DescribeEnvironmentManagedActions":{ - "name":"DescribeEnvironmentManagedActions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEnvironmentManagedActionsRequest"}, - "output":{ - "shape":"DescribeEnvironmentManagedActionsResult", - "resultWrapper":"DescribeEnvironmentManagedActionsResult" - }, - "errors":[ - {"shape":"ElasticBeanstalkServiceException"} + { + "shape":"InvalidRequestException", + "error":{ + "code":"InvalidRequestException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ElasticBeanstalkServiceException", + "exception":true + } ] }, "DescribeEnvironmentResources":{ @@ -303,7 +392,15 @@ "resultWrapper":"DescribeEnvironmentResourcesResult" }, "errors":[ - {"shape":"InsufficientPrivilegesException"} + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "DescribeEnvironments":{ @@ -342,8 +439,19 @@ "resultWrapper":"DescribeInstancesHealthResult" }, "errors":[ - {"shape":"InvalidRequestException"}, - {"shape":"ElasticBeanstalkServiceException"} + { + "shape":"InvalidRequestException", + "error":{ + "code":"InvalidRequestException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ElasticBeanstalkServiceException", + "exception":true + } ] }, "ListAvailableSolutionStacks":{ @@ -365,7 +473,15 @@ }, "input":{"shape":"RebuildEnvironmentMessage"}, "errors":[ - {"shape":"InsufficientPrivilegesException"} + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "RequestEnvironmentInfo":{ @@ -416,7 +532,15 @@ "resultWrapper":"TerminateEnvironmentResult" }, "errors":[ - {"shape":"InsufficientPrivilegesException"} + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "UpdateApplication":{ @@ -455,8 +579,15 @@ "resultWrapper":"UpdateConfigurationTemplateResult" }, "errors":[ - {"shape":"InsufficientPrivilegesException"}, - {"shape":"TooManyBucketsException"} + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "UpdateEnvironment":{ @@ -471,8 +602,15 @@ "resultWrapper":"UpdateEnvironmentResult" }, "errors":[ - {"shape":"InsufficientPrivilegesException"}, - {"shape":"TooManyBucketsException"} + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "ValidateConfigurationSettings":{ @@ -487,8 +625,15 @@ "resultWrapper":"ValidateConfigurationSettingsResult" }, "errors":[ - {"shape":"InsufficientPrivilegesException"}, - {"shape":"TooManyBucketsException"} + { + "shape":"InsufficientPrivilegesException", + "error":{ + "code":"InsufficientPrivilegesException", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] } }, @@ -501,31 +646,6 @@ } }, "AbortableOperationInProgress":{"type":"boolean"}, - "ActionHistoryStatus":{ - "type":"string", - "enum":[ - "Completed", - "Failed", - "Unknown" - ] - }, - "ActionStatus":{ - "type":"string", - "enum":[ - "Scheduled", - "Pending", - "Running", - "Unknown" - ] - }, - "ActionType":{ - "type":"string", - "enum":[ - "InstanceRefresh", - "PlatformUpdate", - "Unknown" - ] - }, "ApplicationDescription":{ "type":"structure", "members":{ @@ -564,8 +684,8 @@ }, "ApplicationName":{ "type":"string", - "max":100, - "min":1 + "min":1, + "max":100 }, "ApplicationNamesList":{ "type":"list", @@ -579,8 +699,7 @@ "VersionLabel":{"shape":"VersionLabel"}, "SourceBundle":{"shape":"S3Location"}, "DateCreated":{"shape":"CreationDate"}, - "DateUpdated":{"shape":"UpdateDate"}, - "Status":{"shape":"ApplicationVersionStatus"} + "DateUpdated":{"shape":"UpdateDate"} } }, "ApplicationVersionDescriptionList":{ @@ -599,34 +718,6 @@ "ApplicationVersions":{"shape":"ApplicationVersionDescriptionList"} } }, - "ApplicationVersionProccess":{"type":"boolean"}, - "ApplicationVersionStatus":{ - "type":"string", - "enum":[ - "Processed", - "Unprocessed", - "Failed", - "Processing" - ] - }, - "ApplyEnvironmentManagedActionRequest":{ - "type":"structure", - "required":["ActionId"], - "members":{ - "EnvironmentName":{"shape":"String"}, - "EnvironmentId":{"shape":"String"}, - "ActionId":{"shape":"String"} - } - }, - "ApplyEnvironmentManagedActionResult":{ - "type":"structure", - "members":{ - "ActionId":{"shape":"String"}, - "ActionDescription":{"shape":"String"}, - "ActionType":{"shape":"ActionType"}, - "Status":{"shape":"String"} - } - }, "AutoCreateApplication":{"type":"boolean"}, "AutoScalingGroup":{ "type":"structure", @@ -660,8 +751,8 @@ }, "Cause":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "Causes":{ "type":"list", @@ -682,14 +773,6 @@ } }, "CnameAvailability":{"type":"boolean"}, - "ComposeEnvironmentsMessage":{ - "type":"structure", - "members":{ - "ApplicationName":{"shape":"ApplicationName"}, - "GroupName":{"shape":"GroupName"}, - "VersionLabels":{"shape":"VersionLabels"} - } - }, "ConfigurationDeploymentStatus":{ "type":"string", "enum":[ @@ -786,8 +869,8 @@ }, "ConfigurationTemplateName":{ "type":"string", - "max":100, - "min":1 + "min":1, + "max":100 }, "ConfigurationTemplateNamesList":{ "type":"list", @@ -812,8 +895,7 @@ "VersionLabel":{"shape":"VersionLabel"}, "Description":{"shape":"Description"}, "SourceBundle":{"shape":"S3Location"}, - "AutoCreateApplication":{"shape":"AutoCreateApplication"}, - "Process":{"shape":"ApplicationVersionProccess"} + "AutoCreateApplication":{"shape":"AutoCreateApplication"} } }, "CreateConfigurationTemplateMessage":{ @@ -834,11 +916,13 @@ }, "CreateEnvironmentMessage":{ "type":"structure", - "required":["ApplicationName"], + "required":[ + "ApplicationName", + "EnvironmentName" + ], "members":{ "ApplicationName":{"shape":"ApplicationName"}, "EnvironmentName":{"shape":"EnvironmentName"}, - "GroupName":{"shape":"GroupName"}, "Description":{"shape":"Description"}, "CNAMEPrefix":{"shape":"DNSCnamePrefix"}, "Tier":{"shape":"EnvironmentTier"}, @@ -859,13 +943,13 @@ "CreationDate":{"type":"timestamp"}, "DNSCname":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "DNSCnamePrefix":{ "type":"string", - "max":63, - "min":4 + "min":4, + "max":63 }, "DeleteApplicationMessage":{ "type":"structure", @@ -910,16 +994,6 @@ } }, "DeleteSourceBundle":{"type":"boolean"}, - "Deployment":{ - "type":"structure", - "members":{ - "VersionLabel":{"shape":"String"}, - "DeploymentId":{"shape":"NullableLong"}, - "Status":{"shape":"String"}, - "DeploymentTime":{"shape":"DeploymentTimestamp"} - } - }, - "DeploymentTimestamp":{"type":"timestamp"}, "DescribeApplicationVersionsMessage":{ "type":"structure", "members":{ @@ -973,36 +1047,6 @@ "RefreshedAt":{"shape":"RefreshedAt"} } }, - "DescribeEnvironmentManagedActionHistoryRequest":{ - "type":"structure", - "members":{ - "EnvironmentId":{"shape":"EnvironmentId"}, - "EnvironmentName":{"shape":"EnvironmentName"}, - "NextToken":{"shape":"String"}, - "MaxItems":{"shape":"Integer"} - } - }, - "DescribeEnvironmentManagedActionHistoryResult":{ - "type":"structure", - "members":{ - "ManagedActionHistoryItems":{"shape":"ManagedActionHistoryItems"}, - "NextToken":{"shape":"String"} - } - }, - "DescribeEnvironmentManagedActionsRequest":{ - "type":"structure", - "members":{ - "EnvironmentName":{"shape":"String"}, - "EnvironmentId":{"shape":"String"}, - "Status":{"shape":"ActionStatus"} - } - }, - "DescribeEnvironmentManagedActionsResult":{ - "type":"structure", - "members":{ - "ManagedActions":{"shape":"ManagedActions"} - } - }, "DescribeEnvironmentResourcesMessage":{ "type":"structure", "members":{ @@ -1086,8 +1130,7 @@ "Health":{"shape":"EnvironmentHealth"}, "HealthStatus":{"shape":"EnvironmentHealthStatus"}, "Resources":{"shape":"EnvironmentResourcesDescription"}, - "Tier":{"shape":"EnvironmentTier"}, - "EnvironmentLinks":{"shape":"EnvironmentLinks"} + "Tier":{"shape":"EnvironmentTier"} } }, "EnvironmentDescriptionsList":{ @@ -1164,21 +1207,10 @@ "bundle" ] }, - "EnvironmentLink":{ - "type":"structure", - "members":{ - "LinkName":{"shape":"String"}, - "EnvironmentName":{"shape":"String"} - } - }, - "EnvironmentLinks":{ - "type":"list", - "member":{"shape":"EnvironmentLink"} - }, "EnvironmentName":{ "type":"string", - "max":40, - "min":4 + "min":4, + "max":23 }, "EnvironmentNamesList":{ "type":"list", @@ -1264,28 +1296,10 @@ ] }, "ExceptionMessage":{"type":"string"}, - "FailureType":{ - "type":"string", - "enum":[ - "UpdateCancelled", - "CancellationFailed", - "RollbackFailed", - "RollbackSuccessful", - "InternalFailure", - "InvalidEnvironmentState", - "PermissionsError" - ] - }, "FileTypeExtension":{ "type":"string", - "max":100, - "min":1 - }, - "ForceTerminate":{"type":"boolean"}, - "GroupName":{ - "type":"string", - "max":19, - "min":1 + "min":1, + "max":100 }, "IncludeDeleted":{"type":"boolean"}, "IncludeDeletedBackTo":{"type":"timestamp"}, @@ -1314,8 +1328,8 @@ }, "InstanceId":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "InstanceList":{ "type":"list", @@ -1331,9 +1345,6 @@ "RefreshedAt", "LaunchedAt", "System", - "Deployment", - "AvailabilityZone", - "InstanceType", "All" ] }, @@ -1429,66 +1440,19 @@ "type":"list", "member":{"shape":"Listener"} }, - "ManagedAction":{ - "type":"structure", - "members":{ - "ActionId":{"shape":"String"}, - "ActionDescription":{"shape":"String"}, - "ActionType":{"shape":"ActionType"}, - "Status":{"shape":"ActionStatus"}, - "WindowStartTime":{"shape":"Timestamp"} - } - }, - "ManagedActionHistoryItem":{ - "type":"structure", - "members":{ - "ActionId":{"shape":"String"}, - "ActionType":{"shape":"ActionType"}, - "ActionDescription":{"shape":"String"}, - "FailureType":{"shape":"FailureType"}, - "Status":{"shape":"ActionHistoryStatus"}, - "FailureDescription":{"shape":"String"}, - "ExecutedTime":{"shape":"Timestamp"}, - "FinishedTime":{"shape":"Timestamp"} - } - }, - "ManagedActionHistoryItems":{ - "type":"list", - "member":{"shape":"ManagedActionHistoryItem"}, - "max":100, - "min":1 - }, - "ManagedActionInvalidStateException":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ManagedActionInvalidStateException", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "ManagedActions":{ - "type":"list", - "member":{"shape":"ManagedAction"}, - "max":100, - "min":1 - }, "MaxRecords":{ "type":"integer", - "max":1000, - "min":1 + "min":1, + "max":1000 }, "Message":{"type":"string"}, "NextToken":{ "type":"string", - "max":100, - "min":1 + "min":1, + "max":100 }, "NullableDouble":{"type":"double"}, "NullableInteger":{"type":"integer"}, - "NullableLong":{"type":"long"}, "OperationInProgressException":{ "type":"structure", "members":{ @@ -1558,8 +1522,8 @@ "ResourceId":{"type":"string"}, "ResourceName":{ "type":"string", - "max":256, - "min":1 + "min":1, + "max":256 }, "RestartAppServerMessage":{ "type":"structure", @@ -1630,10 +1594,7 @@ "Causes":{"shape":"Causes"}, "LaunchedAt":{"shape":"LaunchedAt"}, "ApplicationMetrics":{"shape":"ApplicationMetrics"}, - "System":{"shape":"SystemStatus"}, - "Deployment":{"shape":"Deployment"}, - "AvailabilityZone":{"shape":"String"}, - "InstanceType":{"shape":"String"} + "System":{"shape":"SystemStatus"} } }, "SolutionStackDescription":{ @@ -1704,13 +1665,13 @@ }, "TagKey":{ "type":"string", - "max":128, - "min":1 + "min":1, + "max":128 }, "TagValue":{ "type":"string", - "max":256, - "min":1 + "min":1, + "max":256 }, "Tags":{ "type":"list", @@ -1722,14 +1683,12 @@ "members":{ "EnvironmentId":{"shape":"EnvironmentId"}, "EnvironmentName":{"shape":"EnvironmentName"}, - "TerminateResources":{"shape":"TerminateEnvironmentResources"}, - "ForceTerminate":{"shape":"ForceTerminate"} + "TerminateResources":{"shape":"TerminateEnvironmentResources"} } }, "TerminateEnvironmentResources":{"type":"boolean"}, "TimeFilterEnd":{"type":"timestamp"}, "TimeFilterStart":{"type":"timestamp"}, - "Timestamp":{"type":"timestamp"}, "Token":{"type":"string"}, "TooManyApplicationVersionsException":{ "type":"structure", @@ -1829,10 +1788,8 @@ "UpdateEnvironmentMessage":{ "type":"structure", "members":{ - "ApplicationName":{"shape":"ApplicationName"}, "EnvironmentId":{"shape":"EnvironmentId"}, "EnvironmentName":{"shape":"EnvironmentName"}, - "GroupName":{"shape":"GroupName"}, "Description":{"shape":"Description"}, "Tier":{"shape":"EnvironmentTier"}, "VersionLabel":{"shape":"VersionLabel"}, @@ -1879,12 +1836,8 @@ }, "VersionLabel":{ "type":"string", - "max":100, - "min":1 - }, - "VersionLabels":{ - "type":"list", - "member":{"shape":"VersionLabel"} + "min":1, + "max":100 }, "VersionLabelsList":{ "type":"list", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticbeanstalk/2010-12-01/docs-2.json similarity index 70% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticbeanstalk/2010-12-01/docs-2.json index cf1ac1f8f..5200eceda 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticbeanstalk/2010-12-01/docs-2.json @@ -1,36 +1,31 @@ { "version": "2.0", - "service": "AWS Elastic Beanstalk

AWS Elastic Beanstalk makes it easy for you to create, deploy, and manage scalable, fault-tolerant applications running on the Amazon Web Services cloud.

For more information about this product, go to the AWS Elastic Beanstalk details page. The location of the latest AWS Elastic Beanstalk WSDL is http://elasticbeanstalk.s3.amazonaws.com/doc/2010-12-01/AWSElasticBeanstalk.wsdl. To install the Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools that enable you to access the API, go to Tools for Amazon Web Services.

Endpoints

For a list of region-specific endpoints that AWS Elastic Beanstalk supports, go to Regions and Endpoints in the Amazon Web Services Glossary.

", "operations": { "AbortEnvironmentUpdate": "

Cancels in-progress environment configuration update or application version deployment.

", - "ApplyEnvironmentManagedAction": "

Applies a scheduled managed action immediately. A managed action can be applied only if its status is Scheduled. Get the status and action ID of a managed action with DescribeEnvironmentManagedActions.

", "CheckDNSAvailability": "

Checks if the specified CNAME is available.

", - "ComposeEnvironments": "

Create or update a group of environments that each run a separate component of a single application. Takes a list of version labels that specify application source bundles for each of the environments to create or update. The name of each environment and other required information must be included in the source bundles in an environment manifest named env.yaml. See Compose Environments for details.

", "CreateApplication": "

Creates an application that has one configuration template named default and no application versions.

", "CreateApplicationVersion": "

Creates an application version for the specified application.

Once you create an application version with a specified Amazon S3 bucket and key location, you cannot change that Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an environment from the application version. ", "CreateConfigurationTemplate": "

Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of the application with the same configuration settings.

Related Topics

", - "CreateEnvironment": "

Launches an environment for the specified application using the specified configuration.

", + "CreateEnvironment": "

Launches an environment for the specified application using the specified configuration.

", "CreateStorageLocation": "

Creates the Amazon S3 storage location for the account.

This location is used to store user log files.

", "DeleteApplication": "

Deletes the specified application along with all associated versions and configurations. The application versions will not be deleted from your Amazon S3 bucket.

You cannot delete an application that has a running environment. ", "DeleteApplicationVersion": "

Deletes the specified version from the specified application.

You cannot delete an application version that is associated with a running environment.", "DeleteConfigurationTemplate": "

Deletes the specified configuration template.

When you launch an environment using a configuration template, the environment gets a copy of the template. You can delete or modify the environment's copy of the template without affecting the running environment.", - "DeleteEnvironmentConfiguration": "

Deletes the draft configuration associated with the running environment.

Updating a running environment with any configuration changes creates a draft configuration set. You can get the draft configuration using DescribeConfigurationSettings while the update is in progress or if the update fails. The DeploymentStatus for the draft configuration indicates whether the deployment is in process or has failed. The draft configuration remains in existence until it is deleted with this action.

", - "DescribeApplicationVersions": "

Retrieve a list of application versions stored in your AWS Elastic Beanstalk storage bucket.

", + "DeleteEnvironmentConfiguration": "

Deletes the draft configuration associated with the running environment.

Updating a running environment with any configuration changes creates a draft configuration set. You can get the draft configuration using DescribeConfigurationSettings while the update is in progress or if the update fails. The DeploymentStatus for the draft configuration indicates whether the deployment is in process or has failed. The draft configuration remains in existence until it is deleted with this action.

", + "DescribeApplicationVersions": "

Returns descriptions for existing application versions.

", "DescribeApplications": "

Returns the descriptions of existing applications.

", "DescribeConfigurationOptions": "

Describes the configuration options that are used in a particular configuration template or environment, or that a specified solution stack defines. The description includes the values the options, their default values, and an indication of the required action on a running environment if an option value is changed.

", "DescribeConfigurationSettings": "

Returns a description of the settings for the specified configuration set, that is, either a configuration template or the configuration set associated with a running environment.

When describing the settings for the configuration set associated with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other is a draft configuration of an environment that is either in the process of deployment or that failed to deploy.

Related Topics

", "DescribeEnvironmentHealth": "

Returns information about the overall health of the specified environment. The DescribeEnvironmentHealth operation is only available with AWS Elastic Beanstalk Enhanced Health.

", - "DescribeEnvironmentManagedActionHistory": "

Lists an environment's completed and failed managed actions.

", - "DescribeEnvironmentManagedActions": "

Lists an environment's upcoming and in-progress managed actions.

", "DescribeEnvironmentResources": "

Returns AWS resources for this environment.

", "DescribeEnvironments": "

Returns descriptions for existing environments.

", - "DescribeEvents": "

Returns list of event descriptions matching criteria up to the last 6 weeks.

This action returns the most recent 1,000 events from the specified NextToken.", + "DescribeEvents": "

Returns list of event descriptions matching criteria up to the last 6 weeks.

This action returns the most recent 1,000 events from the specified NextToken. ", "DescribeInstancesHealth": "

Returns more detailed information about the health of the specified instances (for example, CPU utilization, load average, and causes). The DescribeInstancesHealth operation is only available with AWS Elastic Beanstalk Enhanced Health.

", "ListAvailableSolutionStacks": "

Returns a list of the available solution stack names.

", "RebuildEnvironment": "

Deletes and recreates all of the AWS resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart.

", "RequestEnvironmentInfo": "

Initiates a request to compile the specified type of information of the deployed environment.

Setting the InfoType to tail compiles the last lines from the application server log files of every Amazon EC2 instance in your environment.

Setting the InfoType to bundle compresses the application server log files for every Amazon EC2 instance into a .zip file. Legacy and .NET containers do not support bundle logs.

Use RetrieveEnvironmentInfo to obtain the set of logs.

Related Topics

", - "RestartAppServer": "

Causes the environment to restart the application container server running on each Amazon EC2 instance.

", - "RetrieveEnvironmentInfo": "

Retrieves the compiled information from a RequestEnvironmentInfo request.

Related Topics

", + "RestartAppServer": "

Causes the environment to restart the application container server running on each Amazon EC2 instance.

", + "RetrieveEnvironmentInfo": "

Retrieves the compiled information from a RequestEnvironmentInfo request.

Related Topics

", "SwapEnvironmentCNAMEs": "

Swaps the CNAMEs of two environments.

", "TerminateEnvironment": "

Terminates the specified environment.

", "UpdateApplication": "

Updates the specified application to have the specified properties.

If a property (for example, description) is not provided, the value remains unchanged. To clear these properties, specify an empty string. ", @@ -39,9 +34,10 @@ "UpdateEnvironment": "

Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new configuration template, or updates select configuration option values in the running environment.

Attempting to update both the release and configuration is not allowed and AWS Elastic Beanstalk returns an InvalidParameterCombination error.

When updating the configuration settings to a new template or individual settings, a draft configuration is created and DescribeConfigurationSettings for this environment returns two setting descriptions with different DeploymentStatus values.

", "ValidateConfigurationSettings": "

Takes a set of configuration settings and either a configuration template or environment, and determines whether those values are valid.

This action returns a list of messages indicating any errors or warnings associated with the selection of option values.

" }, + "service": "AWS Elastic Beanstalk

This is the AWS Elastic Beanstalk API Reference. This guide provides detailed information about AWS Elastic Beanstalk actions, data types, parameters, and errors.

AWS Elastic Beanstalk is a tool that makes it easy for you to create, deploy, and manage scalable, fault-tolerant applications running on Amazon Web Services cloud resources.

For more information about this product, go to the AWS Elastic Beanstalk details page. The location of the latest AWS Elastic Beanstalk WSDL is http://elasticbeanstalk.s3.amazonaws.com/doc/2010-12-01/AWSElasticBeanstalk.wsdl. To install the Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools that enable you to access the API, go to Tools for Amazon Web Services.

Endpoints

For a list of region-specific endpoints that AWS Elastic Beanstalk supports, go to Regions and Endpoints in the Amazon Web Services Glossary.

", "shapes": { "AbortEnvironmentUpdateMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -51,27 +47,6 @@ "EnvironmentDescription$AbortableOperationInProgress": "

Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

true: There is an update in progress.

false: There are no updates currently in progress.

" } }, - "ActionHistoryStatus": { - "base": null, - "refs": { - "ManagedActionHistoryItem$Status": "

The status of the action.

" - } - }, - "ActionStatus": { - "base": null, - "refs": { - "DescribeEnvironmentManagedActionsRequest$Status": "

To show only actions with a particular status, specify a status.

", - "ManagedAction$Status": "

The status of the managed action. If the action is Scheduled, you can apply it immediately with ApplyEnvironmentManagedAction.

" - } - }, - "ActionType": { - "base": null, - "refs": { - "ApplyEnvironmentManagedActionResult$ActionType": "

The type of managed action.

", - "ManagedAction$ActionType": "

The type of managed action.

", - "ManagedActionHistoryItem$ActionType": "

The type of the managed action.

" - } - }, "ApplicationDescription": { "base": "

Describes the properties of an application.

", "refs": { @@ -82,7 +57,7 @@ "ApplicationDescriptionList": { "base": null, "refs": { - "ApplicationDescriptionsMessage$Applications": "

This parameter contains a list of ApplicationDescription.

" + "ApplicationDescriptionsMessage$Applications": "

This parameter contains a list of ApplicationDescription.

" } }, "ApplicationDescriptionMessage": { @@ -108,35 +83,33 @@ "ApplicationDescription$ApplicationName": "

The name of the application.

", "ApplicationNamesList$member": null, "ApplicationVersionDescription$ApplicationName": "

The name of the application associated with this release.

", - "ComposeEnvironmentsMessage$ApplicationName": "

The name of the application to which the specified source bundles belong.

", "ConfigurationSettingsDescription$ApplicationName": "

The name of the application associated with this configuration set.

", - "CreateApplicationMessage$ApplicationName": "

The name of the application.

Constraint: This name must be unique within your account. If the specified name already exists, the action returns an InvalidParameterValue error.

", + "CreateApplicationMessage$ApplicationName": "

The name of the application.

Constraint: This name must be unique within your account. If the specified name already exists, the action returns an InvalidParameterValue error.

", "CreateApplicationVersionMessage$ApplicationName": "

The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.

", - "CreateConfigurationTemplateMessage$ApplicationName": "

The name of the application to associate with this configuration template. If no application is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

", + "CreateConfigurationTemplateMessage$ApplicationName": "

The name of the application to associate with this configuration template. If no application is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

", "CreateEnvironmentMessage$ApplicationName": "

The name of the application that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

", "DeleteApplicationMessage$ApplicationName": "

The name of the application to delete.

", "DeleteApplicationVersionMessage$ApplicationName": "

The name of the application to delete releases from.

", - "DeleteConfigurationTemplateMessage$ApplicationName": "

The name of the application to delete the configuration template from.

", - "DeleteEnvironmentConfigurationMessage$ApplicationName": "

The name of the application the environment is associated with.

", - "DescribeApplicationVersionsMessage$ApplicationName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include ones that are associated with the specified application.

", + "DeleteConfigurationTemplateMessage$ApplicationName": "

The name of the application to delete the configuration template from.

", + "DeleteEnvironmentConfigurationMessage$ApplicationName": "

The name of the application the environment is associated with.

", + "DescribeApplicationVersionsMessage$ApplicationName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include ones that are associated with the specified application.

", "DescribeConfigurationOptionsMessage$ApplicationName": "

The name of the application associated with the configuration template or environment. Only needed if you want to describe the configuration options associated with either the configuration template or environment.

", "DescribeConfigurationSettingsMessage$ApplicationName": "

The application for the environment or configuration template.

", - "DescribeEnvironmentsMessage$ApplicationName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

", - "DescribeEventsMessage$ApplicationName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those associated with this application.

", + "DescribeEnvironmentsMessage$ApplicationName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

", + "DescribeEventsMessage$ApplicationName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those associated with this application.

", "EnvironmentDescription$ApplicationName": "

The name of the application associated with this environment.

", "EventDescription$ApplicationName": "

The application associated with the event.

", "SourceConfiguration$ApplicationName": "

The name of the application associated with the configuration.

", - "UpdateApplicationMessage$ApplicationName": "

The name of the application to update. If no such application is found, UpdateApplication returns an InvalidParameterValue error.

", + "UpdateApplicationMessage$ApplicationName": "

The name of the application to update. If no such application is found, UpdateApplication returns an InvalidParameterValue error.

", "UpdateApplicationVersionMessage$ApplicationName": "

The name of the application associated with this version.

If no application is found with this name, UpdateApplication returns an InvalidParameterValue error.

", "UpdateConfigurationTemplateMessage$ApplicationName": "

The name of the application associated with the configuration template to update.

If no application is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

", - "UpdateEnvironmentMessage$ApplicationName": "

The name of the application with which the environment is associated.

", "ValidateConfigurationSettingsMessage$ApplicationName": "

The name of the application that the configuration template or environment belongs to.

" } }, "ApplicationNamesList": { "base": null, "refs": { - "DescribeApplicationsMessage$ApplicationNames": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names.

" + "DescribeApplicationsMessage$ApplicationNames": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names.

" } }, "ApplicationVersionDescription": { @@ -149,7 +122,7 @@ "ApplicationVersionDescriptionList": { "base": null, "refs": { - "ApplicationVersionDescriptionsMessage$ApplicationVersions": "

List of ApplicationVersionDescription objects sorted by order of creation.

" + "ApplicationVersionDescriptionsMessage$ApplicationVersions": "

A list of ApplicationVersionDescription .

" } }, "ApplicationVersionDescriptionMessage": { @@ -162,36 +135,14 @@ "refs": { } }, - "ApplicationVersionProccess": { - "base": null, - "refs": { - "CreateApplicationVersionMessage$Process": "

Preprocesses and validates the environment manifest and configuration files in the source bundle. Validating configuration files can identify issues prior to deploying the application version to an environment.

" - } - }, - "ApplicationVersionStatus": { - "base": null, - "refs": { - "ApplicationVersionDescription$Status": "

The processing status of the application version.

" - } - }, - "ApplyEnvironmentManagedActionRequest": { - "base": "

Request to execute a scheduled managed action immediately.

", - "refs": { - } - }, - "ApplyEnvironmentManagedActionResult": { - "base": "

The result message containing information about the managed action.

", - "refs": { - } - }, "AutoCreateApplication": { "base": null, "refs": { - "CreateApplicationVersionMessage$AutoCreateApplication": "

Determines how the system behaves if the specified application for this version does not already exist:

  • true : Automatically creates the specified application for this release if it does not already exist.
  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false

" + "CreateApplicationVersionMessage$AutoCreateApplication": "

Determines how the system behaves if the specified application for this version does not already exist:

true: Automatically creates the specified application for this version if it does not already exist.

false: Returns an InvalidParameterValue if the specified application for this version does not already exist.

  • true : Automatically creates the specified application for this release if it does not already exist.
  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false

" } }, "AutoScalingGroup": { - "base": "

Describes an Auto Scaling launch configuration.

", + "base": "

Describes an Auto Scaling launch configuration.

", "refs": { "AutoScalingGroupList$member": null } @@ -246,18 +197,13 @@ "CnameAvailability": { "base": null, "refs": { - "CheckDNSAvailabilityResultMessage$Available": "

Indicates if the specified CNAME is available:

  • true : The CNAME is available.
  • false : The CNAME is not available.
" - } - }, - "ComposeEnvironmentsMessage": { - "base": "

Request to create or update a group of environments.

", - "refs": { + "CheckDNSAvailabilityResultMessage$Available": "

Indicates if the specified CNAME is available:

true : The CNAME is available.

true : The CNAME is not available.

  • true : The CNAME is available.
  • false : The CNAME is not available.

" } }, "ConfigurationDeploymentStatus": { "base": null, "refs": { - "ConfigurationSettingsDescription$DeploymentStatus": "

If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set:

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.
" + "ConfigurationSettingsDescription$DeploymentStatus": "

If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set:

null: This configuration is not associated with a running environment.

pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.

deployed: This is the configuration that is currently deployed to the associated running environment.

failed: This is a draft configuration, that failed to successfully deploy.

  • null: This configuration is not associated with a running environment.
  • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.
  • deployed: This is the configuration that is currently deployed to the associated running environment.
  • failed: This is a draft configuration that failed to successfully deploy.
" } }, "ConfigurationOptionDefaultValue": { @@ -284,7 +230,7 @@ "ConfigurationOptionDescription$Name": "

The name of the configuration option.

", "ConfigurationOptionSetting$OptionName": "

The name of the configuration option.

", "OptionSpecification$OptionName": "

The name of the configuration option.

", - "ValidationMessage$OptionName": "

" + "ValidationMessage$OptionName": "

" } }, "ConfigurationOptionPossibleValue": { @@ -312,14 +258,14 @@ "CreateConfigurationTemplateMessage$OptionSettings": "

If specified, AWS Elastic Beanstalk sets the specified configuration option to the requested value. The new value overrides the value obtained from the solution stack or the source configuration template.

", "CreateEnvironmentMessage$OptionSettings": "

If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.

", "UpdateConfigurationTemplateMessage$OptionSettings": "

A list of configuration option settings to update with the new specified option value.

", - "UpdateEnvironmentMessage$OptionSettings": "

If specified, AWS Elastic Beanstalk updates the configuration set associated with the running environment and sets the specified configuration options to the requested value.

", + "UpdateEnvironmentMessage$OptionSettings": "

If specified, AWS Elastic Beanstalk updates the configuration set associated with the running environment and sets the specified configuration options to the requested value.

", "ValidateConfigurationSettingsMessage$OptionSettings": "

A list of the options and desired values to evaluate.

" } }, "ConfigurationOptionSeverity": { "base": null, "refs": { - "ConfigurationOptionDescription$ChangeSeverity": "

An indication of which action is required if the value for this configuration option changes:

  • NoInterruption : There is no interruption to the environment or application availability.
  • RestartEnvironment : The environment is entirely restarted, all AWS resources are deleted and recreated, and the environment is unavailable during the process.
  • RestartApplicationServer : The environment is available the entire time. However, a short application outage occurs when the application servers on the running Amazon EC2 instances are restarted.
" + "ConfigurationOptionDescription$ChangeSeverity": "

An indication of which action is required if the value for this configuration option changes:

NoInterruption - There is no interruption to the environment or application availability.

RestartEnvironment - The environment is restarted, all AWS resources are deleted and recreated, and the environment is unavailable during the process.

RestartApplicationServer - The environment is available the entire time. However, a short application outage occurs when the application servers on the running Amazon EC2 instances are restarted.

  • NoInterruption : There is no interruption to the environment or application availability.
  • RestartEnvironment : The environment is entirely restarted, all AWS resources are deleted and recreated, and the environment is unavailable during the process.
  • RestartApplicationServer : The environment is available the entire time. However, a short application outage occurs when the application servers on the running Amazon EC2 instances are restarted.
" } }, "ConfigurationOptionValue": { @@ -331,7 +277,7 @@ "ConfigurationOptionValueType": { "base": null, "refs": { - "ConfigurationOptionDescription$ValueType": "

An indication of which type of values this option has and whether it is allowable to select one or more than one of the possible values:

  • Scalar : Values for this option are a single selection from the possible values, or an unformatted string, or numeric value governed by the MIN/MAX/Regex constraints.
  • List : Values for this option are multiple selections from the possible values.
  • Boolean : Values for this option are either true or false .
  • Json : Values for this option are a JSON representation of a ConfigDocument.
" + "ConfigurationOptionDescription$ValueType": "

An indication of which type of values this option has and whether it is allowable to select one or more than one of the possible values:

Scalar : Values for this option are a single selection from the possible values, or a unformatted string or numeric value governed by the MIN/MAX/Regex constraints:

List : Values for this option are multiple selections of the possible values.

Boolean : Values for this option are either true or false .

Json : Values for this option are a JSON representation of a ConfigDocument.

  • Scalar : Values for this option are a single selection from the possible values, or an unformatted string, or numeric value governed by the MIN/MAX/Regex constraints.
  • List : Values for this option are multiple selections from the possible values.
  • Boolean : Values for this option are either true or false .
  • Json : Values for this option are a JSON representation of a ConfigDocument.

" } }, "ConfigurationOptionsDescription": { @@ -371,12 +317,12 @@ "DeleteConfigurationTemplateMessage$TemplateName": "

The name of the configuration template to delete.

", "DescribeConfigurationOptionsMessage$TemplateName": "

The name of the configuration template whose configuration options you want to describe.

", "DescribeConfigurationSettingsMessage$TemplateName": "

The name of the configuration template to describe.

Conditional: You must specify either this parameter or an EnvironmentName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

", - "DescribeEventsMessage$TemplateName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that are associated with this environment configuration.

", + "DescribeEventsMessage$TemplateName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that are associated with this environment configuration.

", "EnvironmentDescription$TemplateName": "

The name of the configuration template used to originally launch this environment.

", "EventDescription$TemplateName": "

The name of the configuration associated with this event.

", "SourceConfiguration$TemplateName": "

The name of the configuration template.

", "UpdateConfigurationTemplateMessage$TemplateName": "

The name of the configuration template to update.

If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

", - "UpdateEnvironmentMessage$TemplateName": "

If this parameter is specified, AWS Elastic Beanstalk deploys this configuration template to the environment. If no such configuration template is found, AWS Elastic Beanstalk returns an InvalidParameterValue error.

", + "UpdateEnvironmentMessage$TemplateName": "

If this parameter is specified, AWS Elastic Beanstalk deploys this configuration template to the environment. If no such configuration template is found, AWS Elastic Beanstalk returns an InvalidParameterValue error.

", "ValidateConfigurationSettingsMessage$TemplateName": "

The name of the configuration template to validate the settings against.

Condition: You cannot specify both this and an environment name.

" } }, @@ -387,22 +333,22 @@ } }, "CreateApplicationMessage": { - "base": "

Request to create an application.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, "CreateApplicationVersionMessage": { - "base": "

", + "base": "

", "refs": { } }, "CreateConfigurationTemplateMessage": { - "base": "

Request to create a configuration template.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, "CreateEnvironmentMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -435,22 +381,22 @@ } }, "DeleteApplicationMessage": { - "base": "

Request to delete an application.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, "DeleteApplicationVersionMessage": { - "base": "

Request to delete an application version.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, "DeleteConfigurationTemplateMessage": { - "base": "

Request to delete a configuration template.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, "DeleteEnvironmentConfigurationMessage": { - "base": "

Request to delete a draft environment configuration.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, @@ -460,25 +406,13 @@ "DeleteApplicationVersionMessage$DeleteSourceBundle": "

Indicates whether to delete the associated source bundle from Amazon S3:

  • true: An attempt is made to delete the associated Amazon S3 source bundle specified at time of creation.
  • false: No action is taken on the Amazon S3 source bundle specified at time of creation.

Valid Values: true | false

" } }, - "Deployment": { - "base": "

Information about an application version deployment.

", - "refs": { - "SingleInstanceHealth$Deployment": "

Information about the most recent deployment to an instance.

" - } - }, - "DeploymentTimestamp": { - "base": null, - "refs": { - "Deployment$DeploymentTime": "

For in-progress deployments, the time that the deloyment started.

For completed deployments, the time that the deployment ended.

" - } - }, "DescribeApplicationVersionsMessage": { "base": "

Result message containing a list of configuration descriptions.

", "refs": { } }, "DescribeApplicationsMessage": { - "base": "

Request to describe one or more applications.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, @@ -502,38 +436,18 @@ "refs": { } }, - "DescribeEnvironmentManagedActionHistoryRequest": { - "base": "

Request to list completed and failed managed actions.

", - "refs": { - } - }, - "DescribeEnvironmentManagedActionHistoryResult": { - "base": "

A result message containing a list of completed and failed managed actions.

", - "refs": { - } - }, - "DescribeEnvironmentManagedActionsRequest": { - "base": "

Request to list an environment's upcoming and in-progress managed actions.

", - "refs": { - } - }, - "DescribeEnvironmentManagedActionsResult": { - "base": "

The result message containing a list of managed actions.

", - "refs": { - } - }, "DescribeEnvironmentResourcesMessage": { - "base": "

Request to describe the resources in an environment.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, "DescribeEnvironmentsMessage": { - "base": "

Request to describe one or more environments.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, "DescribeEventsMessage": { - "base": "

Request to retrieve a list of events for an environment.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, @@ -561,7 +475,7 @@ "UpdateApplicationMessage$Description": "

A new description for the application.

Default: If not specified, AWS Elastic Beanstalk does not update the description.

", "UpdateApplicationVersionMessage$Description": "

A new description for this release.

", "UpdateConfigurationTemplateMessage$Description": "

A new description for the configuration.

", - "UpdateEnvironmentMessage$Description": "

If this parameter is specified, AWS Elastic Beanstalk updates the description of this environment.

" + "UpdateEnvironmentMessage$Description": "

If this parameter is specified, AWS Elastic Beanstalk updates the description of this environment.

" } }, "Ec2InstanceId": { @@ -571,7 +485,7 @@ } }, "ElasticBeanstalkServiceException": { - "base": "

A generic service exception has occurred.

", + "base": null, "refs": { } }, @@ -602,7 +516,7 @@ "base": null, "refs": { "DescribeEnvironmentHealthResult$Status": "

Returns the health status value of the environment. For more information, see Health Colors and Statuses.

", - "EnvironmentDescription$Health": "

Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: Default health for a new environment. The environment is not fully launched and health checks have not started or health checks are suspended during an UpdateEnvironment or RestartEnvironement request.

Default: Grey

" + "EnvironmentDescription$Health": "

Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:

Red : Indicates the environment is not working.

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running.

Green: Indicates the environment is healthy and fully functional.

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: Default health for a new environment. The environment is not fully launched and health checks have not started or health checks are suspended during an UpdateEnvironment or RestartEnvironement request.

Default: Grey

" } }, "EnvironmentHealthAttribute": { @@ -614,7 +528,7 @@ "EnvironmentHealthAttributes": { "base": null, "refs": { - "DescribeEnvironmentHealthRequest$AttributeNames": "

Specifies the response elements you wish to receive. If no attribute names are specified, AWS Elastic Beanstalk only returns the name of the environment.

" + "DescribeEnvironmentHealthRequest$AttributeNames": "

Specifies the response elements you wish to receive. If no attribute names are specified, AWS Elastic Beanstalk returns all response elements.

" } }, "EnvironmentHealthStatus": { @@ -627,28 +541,27 @@ "base": null, "refs": { "AbortEnvironmentUpdateMessage$EnvironmentId": "

This specifies the ID of the environment with the in-progress update that you want to cancel.

", - "CreateConfigurationTemplateMessage$EnvironmentId": "

The ID of the environment used with this configuration template.

", - "DescribeEnvironmentHealthRequest$EnvironmentId": "

Specifies the AWS Elastic Beanstalk environment ID.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "DescribeEnvironmentManagedActionHistoryRequest$EnvironmentId": "

The environment ID of the target environment.

", + "CreateConfigurationTemplateMessage$EnvironmentId": "

The ID of the environment used with this configuration template.

", + "DescribeEnvironmentHealthRequest$EnvironmentId": "

Specifies the AWS Elastic Beanstalk environment ID.

", "DescribeEnvironmentResourcesMessage$EnvironmentId": "

The ID of the environment to retrieve AWS resource usage data.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "DescribeEventsMessage$EnvironmentId": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.

", + "DescribeEventsMessage$EnvironmentId": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.

", "DescribeInstancesHealthRequest$EnvironmentId": "

Specifies the AWS Elastic Beanstalk environment ID.

", "EnvironmentDescription$EnvironmentId": "

The ID of this environment.

", "EnvironmentIdList$member": null, "RebuildEnvironmentMessage$EnvironmentId": "

The ID of the environment to rebuild.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "RequestEnvironmentInfoMessage$EnvironmentId": "

The ID of the environment of the requested data.

If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", + "RequestEnvironmentInfoMessage$EnvironmentId": "

The ID of the environment of the requested data.

If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", "RestartAppServerMessage$EnvironmentId": "

The ID of the environment to restart the server for.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "RetrieveEnvironmentInfoMessage$EnvironmentId": "

The ID of the data's environment.

If no such environment is found, returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", + "RetrieveEnvironmentInfoMessage$EnvironmentId": "

The ID of the data's environment.

If no such environment is found, returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", "SwapEnvironmentCNAMEsMessage$SourceEnvironmentId": "

The ID of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.

", "SwapEnvironmentCNAMEsMessage$DestinationEnvironmentId": "

The ID of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.

", "TerminateEnvironmentMessage$EnvironmentId": "

The ID of the environment to terminate.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "UpdateEnvironmentMessage$EnvironmentId": "

The ID of the environment to update.

If no environment with this ID exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

" + "UpdateEnvironmentMessage$EnvironmentId": "

The ID of the environment to update.

If no environment with this ID exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

" } }, "EnvironmentIdList": { "base": null, "refs": { - "DescribeEnvironmentsMessage$EnvironmentIds": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.

" + "DescribeEnvironmentsMessage$EnvironmentIds": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.

" } }, "EnvironmentInfoDescription": { @@ -667,56 +580,43 @@ "base": null, "refs": { "EnvironmentInfoDescription$InfoType": "

The type of information retrieved.

", - "RequestEnvironmentInfoMessage$InfoType": "

The type of information to request.

", + "RequestEnvironmentInfoMessage$InfoType": "

The type of information to request.

", "RetrieveEnvironmentInfoMessage$InfoType": "

The type of information to retrieve.

" } }, - "EnvironmentLink": { - "base": "

A link to another environment, defined in the environment's manifest. Links provide connection information in system properties that can be used to connect to another environment in the same group. See Environment Manifest (env.yaml) for details.

", - "refs": { - "EnvironmentLinks$member": null - } - }, - "EnvironmentLinks": { - "base": null, - "refs": { - "EnvironmentDescription$EnvironmentLinks": "

A list of links to other environments in the same group.

" - } - }, "EnvironmentName": { "base": null, "refs": { "AbortEnvironmentUpdateMessage$EnvironmentName": "

This specifies the name of the environment with the in-progress update that you want to cancel.

", "ConfigurationSettingsDescription$EnvironmentName": "

If not null, the name of the environment for this configuration set.

", - "CreateEnvironmentMessage$EnvironmentName": "

A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 40 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

", - "DeleteEnvironmentConfigurationMessage$EnvironmentName": "

The name of the environment to delete the draft configuration from.

", + "CreateEnvironmentMessage$EnvironmentName": "

A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

", + "DeleteEnvironmentConfigurationMessage$EnvironmentName": "

The name of the environment to delete the draft configuration from.

", "DescribeConfigurationOptionsMessage$EnvironmentName": "

The name of the environment whose configuration options you want to describe.

", "DescribeConfigurationSettingsMessage$EnvironmentName": "

The name of the environment to describe.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "DescribeEnvironmentHealthRequest$EnvironmentName": "

Specifies the AWS Elastic Beanstalk environment name.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", + "DescribeEnvironmentHealthRequest$EnvironmentName": "

Specifies the AWS Elastic Beanstalk environment name.

", "DescribeEnvironmentHealthResult$EnvironmentName": "

The AWS Elastic Beanstalk environment name.

", - "DescribeEnvironmentManagedActionHistoryRequest$EnvironmentName": "

The name of the target environment.

", "DescribeEnvironmentResourcesMessage$EnvironmentName": "

The name of the environment to retrieve AWS resource usage data.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "DescribeEventsMessage$EnvironmentName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.

", + "DescribeEventsMessage$EnvironmentName": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.

", "DescribeInstancesHealthRequest$EnvironmentName": "

Specifies the AWS Elastic Beanstalk environment name.

", "EnvironmentDescription$EnvironmentName": "

The name of this environment.

", "EnvironmentNamesList$member": null, "EnvironmentResourceDescription$EnvironmentName": "

The name of the environment.

", "EventDescription$EnvironmentName": "

The name of the environment associated with this event.

", "RebuildEnvironmentMessage$EnvironmentName": "

The name of the environment to rebuild.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "RequestEnvironmentInfoMessage$EnvironmentName": "

The name of the environment of the requested data.

If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", + "RequestEnvironmentInfoMessage$EnvironmentName": "

The name of the environment of the requested data.

If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", "RestartAppServerMessage$EnvironmentName": "

The name of the environment to restart the server for.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", "RetrieveEnvironmentInfoMessage$EnvironmentName": "

The name of the data's environment.

If no such environment is found, returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", "SwapEnvironmentCNAMEsMessage$SourceEnvironmentName": "

The name of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.

", "SwapEnvironmentCNAMEsMessage$DestinationEnvironmentName": "

The name of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.

", "TerminateEnvironmentMessage$EnvironmentName": "

The name of the environment to terminate.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", - "UpdateEnvironmentMessage$EnvironmentName": "

The name of the environment to update. If no environment with this name exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", + "UpdateEnvironmentMessage$EnvironmentName": "

The name of the environment to update. If no environment with this name exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

", "ValidateConfigurationSettingsMessage$EnvironmentName": "

The name of the environment to validate the settings against.

Condition: You cannot specify both this and a configuration template name.

" } }, "EnvironmentNamesList": { "base": null, "refs": { - "DescribeEnvironmentsMessage$EnvironmentNames": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.

" + "DescribeEnvironmentsMessage$EnvironmentNames": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.

" } }, "EnvironmentResourceDescription": { @@ -747,7 +647,7 @@ "refs": { "CreateEnvironmentMessage$Tier": "

This specifies the tier to use for creating this environment.

", "EnvironmentDescription$Tier": "

Describes the current tier of this environment.

", - "UpdateEnvironmentMessage$Tier": "

This specifies the tier to use to update the environment.

Condition: At this time, if you change the tier version, name, or type, AWS Elastic Beanstalk returns InvalidParameterValue error.

" + "UpdateEnvironmentMessage$Tier": "

This specifies the tier to use to update the environment.

Condition: At this time, if you change the tier version, name, or type, AWS Elastic Beanstalk returns InvalidParameterValue error.

" } }, "EventDate": { @@ -789,13 +689,7 @@ "ExceptionMessage": { "base": null, "refs": { - "ElasticBeanstalkServiceException$message": "

The exception error message.

" - } - }, - "FailureType": { - "base": null, - "refs": { - "ManagedActionHistoryItem$FailureType": "

If the action failed, the type of failure.

" + "ElasticBeanstalkServiceException$message": null } }, "FileTypeExtension": { @@ -804,24 +698,10 @@ "SolutionStackFileTypeList$member": null } }, - "ForceTerminate": { - "base": null, - "refs": { - "TerminateEnvironmentMessage$ForceTerminate": "

Terminates the target environment even if another environment in the same group is dependent on it.

" - } - }, - "GroupName": { - "base": null, - "refs": { - "ComposeEnvironmentsMessage$GroupName": "

The name of the group to which the target environments belong. Specify a group name only if the environment name defined in each target environment's manifest ends with a + (plus) character. See Environment Manifest (env.yaml) for details.

", - "CreateEnvironmentMessage$GroupName": "

The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name parameter. See Environment Manifest (env.yaml) for details.

", - "UpdateEnvironmentMessage$GroupName": "

The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name or environment ID parameters. See Environment Manifest (env.yaml) for details.

" - } - }, "IncludeDeleted": { "base": null, "refs": { - "DescribeEnvironmentsMessage$IncludeDeleted": "

Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

" + "DescribeEnvironmentsMessage$IncludeDeleted": "

Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

" } }, "IncludeDeletedBackTo": { @@ -869,23 +749,22 @@ "InstancesHealthAttributes": { "base": null, "refs": { - "DescribeInstancesHealthRequest$AttributeNames": "

Specifies the response elements you wish to receive. If no attribute names are specified, AWS Elastic Beanstalk only returns a list of instances.

" + "DescribeInstancesHealthRequest$AttributeNames": "

Specifies the response elements you wish to receive. If no attribute names are specified, AWS Elastic Beanstalk returns all response elements.

" } }, "InsufficientPrivilegesException": { - "base": "

The specified account does not have sufficient privileges for one of more AWS services.

", + "base": "

Unable to perform the specified operation because the user does not have enough privileges for one of more downstream aws services

", "refs": { } }, "Integer": { "base": null, "refs": { - "DescribeEnvironmentManagedActionHistoryRequest$MaxItems": "

The maximum number of items to return for a single request.

", "Listener$Port": "

The port that is used by the Listener.

" } }, "InvalidRequestException": { - "base": "

One or more input parameters is not valid. Please correct the input parameters and try the operation again.

", + "base": "

The request is invalid, please check parameters and their values

", "refs": { } }, @@ -960,35 +839,6 @@ "LoadBalancerDescription$Listeners": "

A list of Listeners used by the LoadBalancer.

" } }, - "ManagedAction": { - "base": "

The record of an upcoming or in-progress managed action.

", - "refs": { - "ManagedActions$member": null - } - }, - "ManagedActionHistoryItem": { - "base": "

The record of a completed or failed managed action.

", - "refs": { - "ManagedActionHistoryItems$member": null - } - }, - "ManagedActionHistoryItems": { - "base": null, - "refs": { - "DescribeEnvironmentManagedActionHistoryResult$ManagedActionHistoryItems": "

A list of completed and failed managed actions.

" - } - }, - "ManagedActionInvalidStateException": { - "base": "

Cannot modify the managed action in its current state.

", - "refs": { - } - }, - "ManagedActions": { - "base": null, - "refs": { - "DescribeEnvironmentManagedActionsResult$ManagedActions": "

A list of upcoming and in-progress managed actions.

" - } - }, "MaxRecords": { "base": null, "refs": { @@ -1046,14 +896,8 @@ "StatusCodes$Status5xx": "

The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.

" } }, - "NullableLong": { - "base": null, - "refs": { - "Deployment$DeploymentId": "

The ID of the deployment. This number increases by one each time that you deploy source code or change instance configuration settings.

" - } - }, "OperationInProgressException": { - "base": "

Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.

", + "base": "

Unable to perform the specified operation because another operation is already in progress affecting an element in this activity.

", "refs": { } }, @@ -1063,7 +907,7 @@ "ConfigurationOptionDescription$Namespace": "

A unique namespace identifying the option's associated AWS resource.

", "ConfigurationOptionSetting$Namespace": "

A unique namespace identifying the option's associated AWS resource.

", "OptionSpecification$Namespace": "

A unique namespace identifying the option's associated AWS resource.

", - "ValidationMessage$Namespace": "

" + "ValidationMessage$Namespace": "

" } }, "OptionRestrictionMaxLength": { @@ -1102,7 +946,7 @@ "CreateEnvironmentMessage$OptionsToRemove": "

A list of custom user-defined configuration options to remove from the configuration set for this new environment.

", "DescribeConfigurationOptionsMessage$Options": "

If specified, restricts the descriptions to only the specified options.

", "UpdateConfigurationTemplateMessage$OptionsToRemove": "

A list of configuration options to remove from the configuration set.

Constraint: You can remove only UserDefined configuration options.

", - "UpdateEnvironmentMessage$OptionsToRemove": "

A list of custom user-defined configuration options to remove from the configuration set for this environment.

" + "UpdateEnvironmentMessage$OptionsToRemove": "

A list of custom user-defined configuration options to remove from the configuration set for this environment.

" } }, "Queue": { @@ -1114,11 +958,11 @@ "QueueList": { "base": null, "refs": { - "EnvironmentResourceDescription$Queues": "

The queues used by this environment.

" + "EnvironmentResourceDescription$Queues": "

The queues used by this environment.

" } }, "RebuildEnvironmentMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -1148,7 +992,7 @@ } }, "RequestEnvironmentInfoMessage": { - "base": "

Request to retrieve logs from an environment and store them in your Elastic Beanstalk storage bucket.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, @@ -1162,7 +1006,7 @@ "ResourceId": { "base": null, "refs": { - "AutoScalingGroup$Name": "

The name of the AutoScalingGroup .

", + "AutoScalingGroup$Name": "

The name of the AutoScalingGroup .

", "Instance$Id": "

The ID of the Amazon EC2 instance.

", "LaunchConfiguration$Name": "

The name of the launch configuration.

", "LoadBalancer$Name": "

The name of the LoadBalancer.

", @@ -1177,12 +1021,12 @@ } }, "RestartAppServerMessage": { - "base": "

", + "base": "

", "refs": { } }, "RetrieveEnvironmentInfoMessage": { - "base": "

Request to download logs retrieved with RequestEnvironmentInfo.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, @@ -1217,7 +1061,7 @@ } }, "S3SubscriptionRequiredException": { - "base": "

The specified account does not have a subscription to Amazon S3.

", + "base": "

The caller does not have a subscription to Amazon S3.

", "refs": { } }, @@ -1252,15 +1096,15 @@ "ConfigurationOptionsDescription$SolutionStackName": "

The name of the solution stack these configuration options belong to.

", "ConfigurationSettingsDescription$SolutionStackName": "

The name of the solution stack this configuration set uses.

", "CreateConfigurationTemplateMessage$SolutionStackName": "

The name of the solution stack used by this configuration. The solution stack specifies the operating system, architecture, and application server for a configuration template. It determines the set of configuration options as well as the possible and default values.

Use ListAvailableSolutionStacks to obtain a list of available solution stacks.

A solution stack name or a source configuration parameter must be specified, otherwise AWS Elastic Beanstalk returns an InvalidParameterValue error.

If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.

", - "CreateEnvironmentMessage$SolutionStackName": "

This is an alternative to specifying a template name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

", + "CreateEnvironmentMessage$SolutionStackName": "

This is an alternative to specifying a configuration name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

", "DescribeConfigurationOptionsMessage$SolutionStackName": "

The name of the solution stack whose configuration options you want to describe.

", "EnvironmentDescription$SolutionStackName": "

The name of the SolutionStack deployed with this environment.

", "SolutionStackDescription$SolutionStackName": "

The name of the solution stack.

", - "UpdateEnvironmentMessage$SolutionStackName": "

This specifies the platform version that the environment will run after the environment is updated.

" + "UpdateEnvironmentMessage$SolutionStackName": "

This specifies the platform version that the environment will run after the environment is updated.

" } }, "SourceBundleDeletionException": { - "base": "

Unable to delete the Amazon S3 source bundle associated with the application version. The application version was deleted successfully.

", + "base": "

Unable to delete the Amazon S3 source bundle associated with the application version, although the application version deleted successfully.

", "refs": { } }, @@ -1279,39 +1123,18 @@ "String": { "base": null, "refs": { - "ApplyEnvironmentManagedActionRequest$EnvironmentName": "

The name of the target environment.

", - "ApplyEnvironmentManagedActionRequest$EnvironmentId": "

The environment ID of the target environment.

", - "ApplyEnvironmentManagedActionRequest$ActionId": "

The action ID of the scheduled managed action to execute.

", - "ApplyEnvironmentManagedActionResult$ActionId": "

The action ID of the managed action.

", - "ApplyEnvironmentManagedActionResult$ActionDescription": "

A description of the managed action.

", - "ApplyEnvironmentManagedActionResult$Status": "

The status of the managed action.

", - "Deployment$VersionLabel": "

The version label of the application version in the deployment.

", - "Deployment$Status": "

The status of the deployment:

  • In Progress : The deployment is in progress.
  • Deployed : The deployment succeeded.
  • Failed : The deployment failed.
", "DescribeEnvironmentHealthResult$HealthStatus": "

Contains the response body with information about the health of the environment.

", "DescribeEnvironmentHealthResult$Color": "

Returns the color indicator that tells you information about the health of the environment. For more information, see Health Colors and Statuses.

", - "DescribeEnvironmentManagedActionHistoryRequest$NextToken": "

The pagination token returned by a previous request.

", - "DescribeEnvironmentManagedActionHistoryResult$NextToken": "

A pagination token that you pass to DescribeEnvironmentManagedActionHistory to get the next page of results.

", - "DescribeEnvironmentManagedActionsRequest$EnvironmentName": "

The name of the target environment.

", - "DescribeEnvironmentManagedActionsRequest$EnvironmentId": "

The environment ID of the target environment.

", - "EnvironmentLink$LinkName": "

The name of the link.

", - "EnvironmentLink$EnvironmentName": "

The name of the linked environment (the dependency).

", "EnvironmentTier$Name": "

The name of this environment tier.

", "EnvironmentTier$Type": "

The type of this environment tier.

", "EnvironmentTier$Version": "

The version of this environment tier.

", "Listener$Protocol": "

The protocol that is used by the Listener.

", "LoadBalancerDescription$LoadBalancerName": "

The name of the LoadBalancer.

", "LoadBalancerDescription$Domain": "

The domain name of the LoadBalancer.

", - "ManagedAction$ActionId": "

A unique identifier for the managed action.

", - "ManagedAction$ActionDescription": "

A description of the managed action.

", - "ManagedActionHistoryItem$ActionId": "

A unique identifier for the managed action.

", - "ManagedActionHistoryItem$ActionDescription": "

A description of the managed action.

", - "ManagedActionHistoryItem$FailureDescription": "

If the action failed, a description of the failure.

", "Queue$Name": "

The name of the queue.

", "Queue$URL": "

The URL of the queue.

", - "SingleInstanceHealth$HealthStatus": "

Returns the health status of the specified instance. For more information, see Health Colors and Statuses.

", - "SingleInstanceHealth$Color": "

Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.

", - "SingleInstanceHealth$AvailabilityZone": "

The availability zone in which the instance runs.

", - "SingleInstanceHealth$InstanceType": "

The instance's type.

" + "SingleInstanceHealth$HealthStatus": "

Returns the health status of the specified instance. For more information, see .

", + "SingleInstanceHealth$Color": "

Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.

" } }, "SwapEnvironmentCNAMEsMessage": { @@ -1356,14 +1179,14 @@ } }, "TerminateEnvironmentMessage": { - "base": "

Request to terminate an environment.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, "TerminateEnvironmentResources": { "base": null, "refs": { - "TerminateEnvironmentMessage$TerminateResources": "

Indicates whether the associated AWS resources should shut down when the environment is terminated:

  • true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated.
  • false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.

For more information, see the AWS Elastic Beanstalk User Guide.

Default: true

Valid Values: true | false

" + "TerminateEnvironmentMessage$TerminateResources": "

Indicates whether the associated AWS resources should shut down when the environment is terminated:

true: (default) The user AWS resources (for example, the Auto Scaling group, LoadBalancer, etc.) are terminated along with the environment.

false: The environment is removed from the AWS Elastic Beanstalk but the AWS resources continue to operate.

  • true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated.
  • false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.

For more information, see the AWS Elastic Beanstalk User Guide.

Default: true

Valid Values: true | false

" } }, "TimeFilterEnd": { @@ -1375,15 +1198,7 @@ "TimeFilterStart": { "base": null, "refs": { - "DescribeEventsMessage$StartTime": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur on or after this time.

" - } - }, - "Timestamp": { - "base": null, - "refs": { - "ManagedAction$WindowStartTime": "

The start time of the maintenance window in which the managed action will execute.

", - "ManagedActionHistoryItem$ExecutedTime": "

The date and time that the action started executing.

", - "ManagedActionHistoryItem$FinishedTime": "

The date and time that the action finished executing.

" + "DescribeEventsMessage$StartTime": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur on or after this time.

" } }, "Token": { @@ -1394,27 +1209,27 @@ } }, "TooManyApplicationVersionsException": { - "base": "

The specified account has reached its limit of application versions.

", + "base": "

The caller has exceeded the limit on the number of application versions associated with their account.

", "refs": { } }, "TooManyApplicationsException": { - "base": "

The specified account has reached its limit of applications.

", + "base": "

The caller has exceeded the limit on the number of applications associated with their account.

", "refs": { } }, "TooManyBucketsException": { - "base": "

The specified account has reached its limit of Amazon S3 buckets.

", + "base": "

The web service attempted to create a bucket in an Amazon S3 account that already has 100 buckets.

", "refs": { } }, "TooManyConfigurationTemplatesException": { - "base": "

The specified account has reached its limit of configuration templates.

", + "base": "

The caller has exceeded the limit on the number of configuration templates associated with their account.

", "refs": { } }, "TooManyEnvironmentsException": { - "base": "

The specified account has reached its limit of environments.

", + "base": "

The caller has exceeded the limit of allowed environments associated with the account.

", "refs": { } }, @@ -1427,16 +1242,16 @@ "TriggerList": { "base": null, "refs": { - "EnvironmentResourceDescription$Triggers": "

The AutoScaling triggers in use by this environment.

" + "EnvironmentResourceDescription$Triggers": "

The AutoScaling triggers in use by this environment.

" } }, "UpdateApplicationMessage": { - "base": "

Request to update an application.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, "UpdateApplicationVersionMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -1455,14 +1270,14 @@ } }, "UpdateEnvironmentMessage": { - "base": "

Request to update an environment.

", + "base": "

This documentation target is not reported in the API reference.

", "refs": { } }, "UserDefinedOption": { "base": null, "refs": { - "ConfigurationOptionDescription$UserDefined": "

An indication of whether the user defined this configuration option:

  • true : This configuration option was defined by the user. It is a valid choice for specifying if this as an Option to Remove when updating configuration settings.

  • false : This configuration was not defined by the user.

Constraint: You can remove only UserDefined options from a configuration.

Valid Values: true | false

" + "ConfigurationOptionDescription$UserDefined": "

An indication of whether the user defined this configuration option:

true : This configuration option was defined by the user. It is a valid choice for specifying this as an Option to Remove when updating configuration settings.

false : This configuration was not defined by the user.

  • true : This configuration option was defined by the user. It is a valid choice for specifying if this as an Option to Remove when updating configuration settings.

  • false : This configuration was not defined by the user.

Constraint: You can remove only UserDefined options from a configuration.

Valid Values: true | false

" } }, "ValidateConfigurationSettingsMessage": { @@ -1491,7 +1306,7 @@ "ValidationSeverity": { "base": null, "refs": { - "ValidationMessage$Severity": "

An indication of the severity of this message:

  • error: This message indicates that this is not a valid setting for an option.
  • warning: This message is providing information you should take into account.
" + "ValidationMessage$Severity": "

An indication of the severity of this message:

error: This message indicates that this is not a valid setting for an option.

warning: This message is providing information you should take into account.

  • error: This message indicates that this is not a valid setting for an option.
  • warning: This message is providing information you should take into account.
" } }, "VersionLabel": { @@ -1500,28 +1315,21 @@ "ApplicationVersionDescription$VersionLabel": "

A label uniquely identifying the version for the associated application.

", "CreateApplicationVersionMessage$VersionLabel": "

A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.

", "CreateEnvironmentMessage$VersionLabel": "

The name of the application version to deploy.

If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample application in the container.

", - "DeleteApplicationVersionMessage$VersionLabel": "

The label of the version to delete.

", - "DescribeEnvironmentsMessage$VersionLabel": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.

", - "DescribeEventsMessage$VersionLabel": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this application version.

", + "DeleteApplicationVersionMessage$VersionLabel": "

The label of the version to delete.

", + "DescribeEnvironmentsMessage$VersionLabel": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.

", + "DescribeEventsMessage$VersionLabel": "

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this application version.

", "EnvironmentDescription$VersionLabel": "

The application version deployed in this environment.

", "EventDescription$VersionLabel": "

The release label for the application version associated with this event.

", "UpdateApplicationVersionMessage$VersionLabel": "

The name of the version to update.

If no application version is found with this label, UpdateApplication returns an InvalidParameterValue error.

", - "UpdateEnvironmentMessage$VersionLabel": "

If this parameter is specified, AWS Elastic Beanstalk deploys the named application version to the environment. If no such application version is found, returns an InvalidParameterValue error.

", - "VersionLabels$member": null, + "UpdateEnvironmentMessage$VersionLabel": "

If this parameter is specified, AWS Elastic Beanstalk deploys the named application version to the environment. If no such application version is found, returns an InvalidParameterValue error.

", "VersionLabelsList$member": null } }, - "VersionLabels": { - "base": null, - "refs": { - "ComposeEnvironmentsMessage$VersionLabels": "

A list of version labels, specifying one or more application source bundles that belong to the target application. Each source bundle must include an environment manifest that specifies the name of the environment and the name of the solution stack to use, and optionally can specify environment links to create.

" - } - }, "VersionLabelsList": { "base": null, "refs": { "ApplicationDescription$Versions": "

The names of the versions for this application.

", - "DescribeApplicationVersionsMessage$VersionLabels": "

If specified, restricts the returned descriptions to only include ones that have the specified version labels.

" + "DescribeApplicationVersionsMessage$VersionLabels": "

If specified, restricts the returned descriptions to only include ones that have the specified version labels.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticbeanstalk/2010-12-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticbeanstalk/2010-12-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticfilesystem/2015-02-01/api-2.json similarity index 96% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticfilesystem/2015-02-01/api-2.json index 3959e6e4e..e5728b031 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticfilesystem/2015-02-01/api-2.json @@ -310,11 +310,6 @@ "shape":"FileSystemNotFound", "error":{"httpStatusCode":404}, "exception":true - }, - { - "shape":"MountTargetNotFound", - "error":{"httpStatusCode":404}, - "exception":true } ] }, @@ -388,7 +383,10 @@ } }, "shapes":{ - "AwsAccountId":{"type":"string"}, + "AwsAccountId":{ + "type":"string", + "pattern":"[0-9]{12}" + }, "BadRequest":{ "type":"structure", "required":["ErrorCode"], @@ -539,6 +537,7 @@ }, "DescribeMountTargetsRequest":{ "type":"structure", + "required":["FileSystemId"], "members":{ "MaxItems":{ "shape":"MaxItems", @@ -554,11 +553,6 @@ "shape":"FileSystemId", "location":"querystring", "locationName":"FileSystemId" - }, - "MountTargetId":{ - "shape":"MountTargetId", - "location":"querystring", - "locationName":"MountTargetId" } } }, @@ -645,7 +639,10 @@ "type":"list", "member":{"shape":"FileSystemDescription"} }, - "FileSystemId":{"type":"string"}, + "FileSystemId":{ + "type":"string", + "pattern":"fs-[0-9a-f]{8}" + }, "FileSystemInUse":{ "type":"structure", "required":["ErrorCode"], @@ -718,7 +715,10 @@ "error":{"httpStatusCode":500}, "exception":true }, - "IpAddress":{"type":"string"}, + "IpAddress":{ + "type":"string", + "pattern":"[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}" + }, "IpAddressInUse":{ "type":"structure", "required":["ErrorCode"], @@ -791,7 +791,10 @@ "type":"list", "member":{"shape":"MountTargetDescription"} }, - "MountTargetId":{"type":"string"}, + "MountTargetId":{ + "type":"string", + "pattern":"fsmt-[0-9a-f]{8}" + }, "MountTargetNotFound":{ "type":"structure", "required":["ErrorCode"], @@ -802,7 +805,10 @@ "error":{"httpStatusCode":404}, "exception":true }, - "NetworkInterfaceId":{"type":"string"}, + "NetworkInterfaceId":{ + "type":"string", + "pattern":"eni-[0-9a-f]{8}" + }, "NetworkInterfaceLimitExceeded":{ "type":"structure", "required":["ErrorCode"], @@ -823,7 +829,10 @@ "error":{"httpStatusCode":409}, "exception":true }, - "SecurityGroup":{"type":"string"}, + "SecurityGroup":{ + "type":"string", + "pattern":"sg-[0-9a-f]{8}" + }, "SecurityGroupLimitExceeded":{ "type":"structure", "required":["ErrorCode"], @@ -849,7 +858,10 @@ "member":{"shape":"SecurityGroup"}, "max":5 }, - "SubnetId":{"type":"string"}, + "SubnetId":{ + "type":"string", + "pattern":"subnet-[0-9a-f]{8}" + }, "SubnetNotFound":{ "type":"structure", "required":["ErrorCode"], @@ -874,7 +886,8 @@ "TagKey":{ "type":"string", "min":1, - "max":128 + "max":128, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$" }, "TagKeys":{ "type":"list", @@ -882,7 +895,8 @@ }, "TagValue":{ "type":"string", - "max":256 + "max":256, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$" }, "Tags":{ "type":"list", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticfilesystem/2015-02-01/docs-2.json similarity index 84% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticfilesystem/2015-02-01/docs-2.json index 50a6aa64b..2028dc552 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticfilesystem/2015-02-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticfilesystem/2015-02-01/docs-2.json @@ -2,14 +2,14 @@ "version": "2.0", "operations": { "CreateFileSystem": "

Creates a new, empty file system. The operation requires a creation token in the request that Amazon EFS uses to ensure idempotent creation (calling the operation with same creation token has no effect). If a file system does not currently exist that is owned by the caller's AWS account with the specified creation token, this operation does the following:

  • Creates a new, empty file system. The file system will have an Amazon EFS assigned ID, and an initial lifecycle state \"creating\".
  • Returns with the description of the created file system.

Otherwise, this operation returns a FileSystemAlreadyExists error with the ID of the existing file system.

For basic use cases, you can use a randomly generated UUID for the creation token.

The idempotent operation allows you to retry a CreateFileSystem call without risk of creating an extra file system. This can happen when an initial call fails in a way that leaves it uncertain whether or not a file system was actually created. An example might be that a transport level timeout occurred or your connection was reset. As long as you use the same creation token, if the initial call had succeeded in creating a file system, the client can learn of its existence from the FileSystemAlreadyExists error.

The CreateFileSystem call returns while the file system's lifecycle state is still \"creating\". You can check the file system creation status by calling the DescribeFileSystems API, which among other things returns the file system state.

After the file system is fully created, Amazon EFS sets its lifecycle state to \"available\", at which point you can create one or more mount targets for the file system (CreateMountTarget) in your VPC. You mount your Amazon EFS file system on an EC2 instances in your VPC via the mount target. For more information, see Amazon EFS: How it Works

This operation requires permission for the elasticfilesystem:CreateFileSystem action.

", - "CreateMountTarget": "

Creates a mount target for a file system. You can then mount the file system on EC2 instances via the mount target.

You can create one mount target in each Availability Zone in your VPC. All EC2 instances in a VPC within a given Availability Zone share a single mount target for a given file system. If you have multiple subnets in an Availability Zone, you create a mount target in one of the subnets. EC2 instances do not need to be in the same subnet as the mount target in order to access their file system. For more information, see Amazon EFS: How it Works.

In the request, you also specify a file system ID for which you are creating the mount target and the file system's lifecycle state must be \"available\" (see DescribeFileSystems).

In the request, you also provide a subnet ID, which serves several purposes:

  • It determines the VPC in which Amazon EFS creates the mount target.
  • It determines the Availability Zone in which Amazon EFS creates the mount target.
  • It determines the IP address range from which Amazon EFS selects the IP address of the mount target if you don't specify an IP address in the request.

After creating the mount target, Amazon EFS returns a response that includes, a MountTargetId and an IpAddress. You use this IP address when mounting the file system in an EC2 instance. You can also use the mount target's DNS name when mounting the file system. The EC2 instance on which you mount the file system via the mount target can resolve the mount target's DNS name to its IP address. For more information, see How it Works: Implementation Overview.

Note that you can create mount targets for a file system in only one VPC, and there can be only one mount target per Availability Zone. That is, if the file system already has one or more mount targets created for it, the request to add another mount target must meet the following requirements:

  • The subnet specified in the request must belong to the same VPC as the subnets of the existing mount targets.

  • The subnet specified in the request must not be in the same Availability Zone as any of the subnets of the existing mount targets.

If the request satisfies the requirements, Amazon EFS does the following:

  • Creates a new mount target in the specified subnet.
  • Also creates a new network interface in the subnet as follows:
    • If the request provides an IpAddress, Amazon EFS assigns that IP address to the network interface. Otherwise, Amazon EFS assigns a free address in the subnet (in the same way that the Amazon EC2 CreateNetworkInterface call does when a request does not specify a primary private IP address).
    • If the request provides SecurityGroups, this network interface is associated with those security groups. Otherwise, it belongs to the default security group for the subnet's VPC.
    • Assigns the description \"Mount target fsmt-id for file system fs-id\" where fsmt-id is the mount target ID, and fs-id is the FileSystemId.
    • Sets the requesterManaged property of the network interface to \"true\", and the requesterId value to \"EFS\".

    Each Amazon EFS mount target has one corresponding requestor-managed EC2 network interface. After the network interface is created, Amazon EFS sets the NetworkInterfaceId field in the mount target's description to the network interface ID, and the IpAddress field to its address. If network interface creation fails, the entire CreateMountTarget operation fails.

The CreateMountTarget call returns only after creating the network interface, but while the mount target state is still \"creating\". You can check the mount target creation status by calling the DescribeFileSystems API, which among other things returns the mount target state.

We recommend you create a mount target in each of the Availability Zones. There are cost considerations for using a file system in an Availability Zone through a mount target created in another Availability Zone. For more information, go to Amazon EFS product detail page. In addition, by always using a mount target local to the instance's Availability Zone, you eliminate a partial failure scenario; if the Availability Zone in which your mount target is created goes down, then you won't be able to access your file system through that mount target.

This operation requires permission for the following action on the file system:

  • elasticfilesystem:CreateMountTarget

This operation also requires permission for the following Amazon EC2 actions:

  • ec2:DescribeSubnets
  • ec2:DescribeNetworkInterfaces
  • ec2:CreateNetworkInterface
", + "CreateMountTarget": "

Creates a mount target for a file system. You can then mount the file system on EC2 instances via the mount target.

You can create one mount target in each Availability Zone in your VPC. All EC2 instances in a VPC within a given Availability Zone share a single mount target for a given file system. If you have multiple subnets in an Availability Zone, you create a mount target in one of the subnets. EC2 instances do not need to be in the same subnet as the mount target in order to access their file system. For more information, see Amazon EFS: How it Works.

In the request, you also specify a file system ID for which you are creating the mount target and the file system's lifecycle state must be \"available\" (see DescribeFileSystems).

In the request, you also provide a subnet ID, which serves several purposes:

  • It determines the VPC in which Amazon EFS creates the mount target.
  • It determines the Availability Zone in which Amazon EFS creates the mount target.
  • It determines the IP address range from which Amazon EFS selects the IP address of the mount target if you don't specify an IP address in the request.

After creating the mount target, Amazon EFS returns a response that includes, a MountTargetId and an IpAddress. You use this IP address when mounting the file system in an EC2 instance. You can also use the mount target's DNS name when mounting the file system. The EC2 instance on which you mount the file system via the mount target can resolve the mount target's DNS name to its IP address. For more information, see How it Works: Implementation Overview

Note that you can create mount targets for a file system in only one VPC, and there can be only one mount target per Availability Zone. That is, if the file system already has one or more mount targets created for it, the request to add another mount target must meet the following requirements:

  • The subnet specified in the request must belong to the same VPC as the subnets of the existing mount targets.

  • The subnet specified in the request must not be in the same Availability Zone as any of the subnets of the existing mount targets.

If the request satisfies the requirements, Amazon EFS does the following:

  • Creates a new mount target in the specified subnet.
  • Also creates a new network interface in the subnet as follows:
    • If the request provides an IpAddress, Amazon EFS assigns that IP address to the network interface. Otherwise, Amazon EFS assigns a free address in the subnet (in the same way that the Amazon EC2 CreateNetworkInterface call does when a request does not specify a primary private IP address).
    • If the request provides SecurityGroups, this network interface is associated with those security groups. Otherwise, it belongs to the default security group for the subnet's VPC.
    • Assigns the description \"Mount target fsmt-id for file system fs-id\" where fsmt-id is the mount target ID, and fs-id is the FileSystemId.
    • Sets the requesterManaged property of the network interface to \"true\", and the requesterId value to \"EFS\".

    Each Amazon EFS mount target has one corresponding requestor-managed EC2 network interface. After the network interface is created, Amazon EFS sets the NetworkInterfaceId field in the mount target's description to the network interface ID, and the IpAddress field to its address. If network interface creation fails, the entire CreateMountTarget operation fails.

The CreateMountTarget call returns only after creating the network interface, but while the mount target state is still \"creating\". You can check the mount target creation status by calling the DescribeFileSystems API, which among other things returns the mount target state.

We recommend you create a mount target in each of the Availability Zones. There are cost considerations for using a file system in an Availability Zone through a mount target created in another Availability Zone. For more information, go to Amazon EFS product detail page. In addition, by always using a mount target local to the instance's Availability Zone, you eliminate a partial failure scenario; if the Availablity Zone in which your mount target is created goes down, then you won't be able to access your file system through that mount target.

This operation requires permission for the following action on the file system:

  • elasticfilesystem:CreateMountTarget

This operation also requires permission for the following Amazon EC2 actions:

  • ec2:DescribeSubnets
  • ec2:DescribeNetworkInterfaces
  • ec2:CreateNetworkInterface
", "CreateTags": "

Creates or overwrites tags associated with a file system. Each tag is a key-value pair. If a tag key specified in the request already exists on the file system, this operation overwrites its value with the value provided in the request. If you add the \"Name\" tag to your file system, Amazon EFS returns it in the response to the DescribeFileSystems API.

This operation requires permission for the elasticfilesystem:CreateTags action.

", "DeleteFileSystem": "

Deletes a file system, permanently severing access to its contents. Upon return, the file system no longer exists and you will not be able to access any contents of the deleted file system.

You cannot delete a file system that is in use. That is, if the file system has any mount targets, you must first delete them. For more information, see DescribeMountTargets and DeleteMountTarget.

The DeleteFileSystem call returns while the file system state is still \"deleting\". You can check the file system deletion status by calling the DescribeFileSystems API, which returns a list of file systems in your account. If you pass file system ID or creation token for the deleted file system, the DescribeFileSystems will return a 404 \"FileSystemNotFound\" error.

This operation requires permission for the elasticfilesystem:DeleteFileSystem action.

", - "DeleteMountTarget": "

Deletes the specified mount target.

This operation forcibly breaks any mounts of the file system via the mount target being deleted, which might disrupt instances or applications using those mounts. To avoid applications getting cut off abruptly, you might consider unmounting any mounts of the mount target, if feasible. The operation also deletes the associated network interface. Uncommitted writes may be lost, but breaking a mount target using this operation does not corrupt the file system itself. The file system you created remains. You can mount an EC2 instance in your VPC using another mount target.

This operation requires permission for the following action on the file system:

  • elasticfilesystem:DeleteMountTarget
The DeleteMountTarget call returns while the mount target state is still \"deleting\". You can check the mount target deletion by calling the DescribeMountTargets API, which returns a list of mount target descriptions for the given file system.

The operation also requires permission for the following Amazon EC2 action on the mount target's network interface:

  • ec2:DeleteNetworkInterface
", + "DeleteMountTarget": "

Deletes the specified mount target.

This operation forcibly breaks any mounts of the file system via the mount target being deleted, which might disrupt instances or applications using those mounts. To avoid applications getting cut off abruptly, you might consider unmounting any mounts of the mount target, if feasible. The operation also deletes the associated network interface. Uncommitted writes may be lost, but breaking a mount target using this operation does not corrupt the file system itself. The file system you created remains. You can mount an EC2 instance in your VPC using another mount target.

This operation requires permission for the following action on the file system:

  • elasticfilesystem:DeleteMountTarget
The DeleteMountTarget call returns while the mount target state is still \"deleting\". You can check the mount target deletion by calling the DescribeMountTargets API, which returns a list of mount target descriptions for the given file system.

The operation also requires permission for the following Amazon EC2 action on the mount target's network interface:

  • ec2:DeleteNetworkInterface
", "DeleteTags": "

Deletes the specified tags from a file system. If the DeleteTags request includes a tag key that does not exist, Amazon EFS ignores it; it is not an error. For more information about tags and related restrictions, go to Tag Restrictions in the AWS Billing and Cost Management User Guide.

This operation requires permission for the elasticfilesystem:DeleteTags action.

", "DescribeFileSystems": "

Returns the description of a specific Amazon EFS file system if either the file system CreationToken or the FileSystemId is provided; otherwise, returns descriptions of all file systems owned by the caller's AWS account in the AWS region of the endpoint that you're calling.

When retrieving all file system descriptions, you can optionally specify the MaxItems parameter to limit the number of descriptions in a response. If more file system descriptions remain, Amazon EFS returns a NextMarker, an opaque token, in the response. In this case, you should send a subsequent request with the Marker request parameter set to the value of NextMarker.

So to retrieve a list of your file system descriptions, the expected usage of this API is an iterative process of first calling DescribeFileSystems without the Marker and then continuing to call it with the Marker parameter set to the value of the NextMarker from the previous response until the response has no NextMarker.

Note that the implementation may return fewer than MaxItems file system descriptions while still including a NextMarker value.

The order of file systems returned in the response of one DescribeFileSystems call, and the order of file systems returned across the responses of a multi-call iteration, is unspecified.

This operation requires permission for the elasticfilesystem:DescribeFileSystems action.

", "DescribeMountTargetSecurityGroups": "

Returns the security groups currently in effect for a mount target. This operation requires that the network interface of the mount target has been created and the life cycle state of the mount target is not \"deleted\".

This operation requires permissions for the following actions:

  • elasticfilesystem:DescribeMountTargetSecurityGroups action on the mount target's file system.
  • ec2:DescribeNetworkInterfaceAttribute action on the mount target's network interface.
", - "DescribeMountTargets": "

Returns the descriptions of all the current mount targets, or a specific mount target, for a file system. When requesting all of the current mount targets, the order of mount targets returned in the response is unspecified.

This operation requires permission for the elasticfilesystem:DescribeMountTargets action, on either the file system id that you specify in FileSystemId, or on the file system of the mount target that you specify in MountTargetId.

", + "DescribeMountTargets": "

Returns the descriptions of the current mount targets for a file system. The order of mount targets returned in the response is unspecified.

This operation requires permission for the elasticfilesystem:DescribeMountTargets action on the file system FileSystemId.

", "DescribeTags": "

Returns the tags associated with a file system. The order of tags returned in the response of one DescribeTags call, and the order of tags returned across the responses of a multi-call iteration (when using pagination), is unspecified.

This operation requires permission for the elasticfilesystem:DescribeTags action.

", "ModifyMountTargetSecurityGroups": "

Modifies the set of security groups in effect for a mount target.

When you create a mount target, Amazon EFS also creates a new network interface (see CreateMountTarget). This operation replaces the security groups in effect for the network interface associated with a mount target, with the SecurityGroups provided in the request. This operation requires that the network interface of the mount target has been created and the life cycle state of the mount target is not \"deleted\".

The operation requires permissions for the following actions:

  • elasticfilesystem:ModifyMountTargetSecurityGroups action on the mount target's file system.
  • ec2:ModifyNetworkInterfaceAttribute action on the mount target's network interface.
" }, @@ -181,7 +181,7 @@ "DeleteFileSystemRequest$FileSystemId": "

The ID of the file system you want to delete.

", "DeleteTagsRequest$FileSystemId": "

String. The ID of the file system whose tags you want to delete.

", "DescribeFileSystemsRequest$FileSystemId": "

Optional string. File system ID whose description you want to retrieve.

", - "DescribeMountTargetsRequest$FileSystemId": "

Optional. String. The ID of the file system whose mount targets you want to list. It must be included in your request if MountTargetId is not included.

", + "DescribeMountTargetsRequest$FileSystemId": "

String. The ID of the file system whose mount targets you want to list.

", "DescribeTagsRequest$FileSystemId": "

The ID of the file system whose tag set you want to retrieve.

", "FileSystemAlreadyExists$FileSystemId": null, "FileSystemDescription$FileSystemId": "

The file system ID assigned by Amazon EFS.

", @@ -304,13 +304,12 @@ "refs": { "DeleteMountTargetRequest$MountTargetId": "

String. The ID of the mount target to delete.

", "DescribeMountTargetSecurityGroupsRequest$MountTargetId": "

The ID of the mount target whose security groups you want to retrieve.

", - "DescribeMountTargetsRequest$MountTargetId": "

Optional. String. The ID of the mount target that you want to have described. It must be included in your request if FileSystemId is not included.

", "ModifyMountTargetSecurityGroupsRequest$MountTargetId": "

The ID of the mount target whose security groups you want to modify.

", "MountTargetDescription$MountTargetId": "

The system-assigned mount target ID.

" } }, "MountTargetNotFound": { - "base": "

Returned if there is no mount target with the specified ID found in the caller's account.

", + "base": "

Returned if there is no mount target with the specified ID is found in the caller's account.

", "refs": { } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticloadbalancing/2012-06-01/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticloadbalancing/2012-06-01/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticloadbalancing/2012-06-01/docs-2.json similarity index 95% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticloadbalancing/2012-06-01/docs-2.json index 165c0bc0f..e64ef8bb5 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticloadbalancing/2012-06-01/docs-2.json @@ -14,7 +14,7 @@ "DeleteLoadBalancerListeners": "

Deletes the specified listeners from the specified load balancer.

", "DeleteLoadBalancerPolicy": "

Deletes the specified policy from the specified load balancer. This policy must not be enabled for any listeners.

", "DeregisterInstancesFromLoadBalancer": "

Deregisters the specified instances from the specified load balancer. After the instance is deregistered, it no longer receives traffic from the load balancer.

You can use DescribeLoadBalancers to verify that the instance is deregistered from the load balancer.

For more information, see Deregister and Register Amazon EC2 Instances in the Elastic Load Balancing Developer Guide.

", - "DescribeInstanceHealth": "

Describes the state of the specified instances with respect to the specified load balancer. If no instances are specified, the call describes the state of all instances that are currently registered with the load balancer. If instances are specified, their state is returned even if they are no longer registered with the load balancer. The state of terminated instances is not returned.

", + "DescribeInstanceHealth": "

Describes the state of the specified instances registered with the specified load balancer. If no instances are specified, the call describes the state of all instances registered with the load balancer, not including any terminated instances.

", "DescribeLoadBalancerAttributes": "

Describes the attributes for the specified load balancer.

", "DescribeLoadBalancerPolicies": "

Describes the specified policies.

If you specify a load balancer name, the action returns the descriptions of all policies created for the load balancer. If you specify a policy name associated with your load balancer, the action returns the description of that policy. If you don't specify a load balancer name, the action returns descriptions of the specified sample policies, or descriptions of all sample policies. The names of the sample policies have the ELBSample- prefix.

", "DescribeLoadBalancerPolicyTypes": "

Describes the specified load balancer policy types.

You can use these policy types with CreateLoadBalancerPolicy to create policy configurations for a load balancer.

", @@ -24,7 +24,7 @@ "DisableAvailabilityZonesForLoadBalancer": "

Removes the specified Availability Zones from the set of Availability Zones for the specified load balancer.

There must be at least one Availability Zone registered with a load balancer at all times. After an Availability Zone is removed, all instances registered with the load balancer that are in the removed Availability Zone go into the OutOfService state. Then, the load balancer attempts to equally balance the traffic among its remaining Availability Zones.

For more information, see Disable an Availability Zone from a Load-Balanced Application in the Elastic Load Balancing Developer Guide.

", "EnableAvailabilityZonesForLoadBalancer": "

Adds the specified Availability Zones to the set of Availability Zones for the specified load balancer.

The load balancer evenly distributes requests across all its registered Availability Zones that contain instances.

For more information, see Add Availability Zone in the Elastic Load Balancing Developer Guide.

", "ModifyLoadBalancerAttributes": "

Modifies the attributes of the specified load balancer.

You can modify the load balancer attributes, such as AccessLogs, ConnectionDraining, and CrossZoneLoadBalancing by either enabling or disabling them. Or, you can modify the load balancer attribute ConnectionSettings by specifying an idle connection timeout value for your load balancer.

For more information, see the following in the Elastic Load Balancing Developer Guide:

", - "RegisterInstancesWithLoadBalancer": "

Adds the specified instances to the specified load balancer.

The instance must be a running instance in the same network as the load balancer (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic instances to that VPC and then register the linked EC2-Classic instances with the load balancer in the VPC.

Note that RegisterInstanceWithLoadBalancer completes when the request has been registered. Instance registration takes a little time to complete. To check the state of the registered instances, use DescribeLoadBalancers or DescribeInstanceHealth.

After the instance is registered, it starts receiving traffic and requests from the load balancer. Any instance that is not in one of the Availability Zones registered for the load balancer is moved to the OutOfService state. If an Availability Zone is added to the load balancer later, any instances registered with the load balancer move to the InService state.

If you stop an instance registered with a load balancer and then start it, the IP addresses associated with the instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to the instances. We recommend that you use the following sequence: stop the instance, deregister the instance, start the instance, and then register the instance. To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.

For more information, see Deregister and Register EC2 Instances in the Elastic Load Balancing Developer Guide.

", + "RegisterInstancesWithLoadBalancer": "

Adds the specified instances to the specified load balancer.

The instance must be a running instance in the same network as the load balancer (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic instances to that VPC and then register the linked EC2-Classic instances with the load balancer in the VPC.

Note that RegisterInstanceWithLoadBalancer completes when the request has been registered. Instance registration happens shortly afterwards. To check the state of the registered instances, use DescribeLoadBalancers or DescribeInstanceHealth.

After the instance is registered, it starts receiving traffic and requests from the load balancer. Any instance that is not in one of the Availability Zones registered for the load balancer is moved to the OutOfService state. If an Availability Zone is added to the load balancer later, any instances registered with the load balancer move to the InService state.

If you stop an instance registered with a load balancer and then start it, the IP addresses associated with the instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to the instances. We recommend that you use the following sequence: stop the instance, deregister the instance, start the instance, and then register the instance. To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.

For more information, see Deregister and Register EC2 Instances in the Elastic Load Balancing Developer Guide.

", "RemoveTags": "

Removes one or more tags from the specified load balancer.

", "SetLoadBalancerListenerSSLCertificate": "

Sets the certificate that terminates the specified listener's SSL connections. The specified certificate replaces any prior certificate that was used on the same load balancer and port.

For more information about updating your SSL certificate, see Updating an SSL Certificate for a Load Balancer in the Elastic Load Balancing Developer Guide.

", "SetLoadBalancerPoliciesForBackendServer": "

Replaces the set of policies associated with the specified port on which the back-end server is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the back-end ports; this policy type is composed of multiple public key policies.

Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies, use the PolicyNames parameter to list the policies that you want to enable.

You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify that the policy is associated with the back-end server.

", @@ -63,7 +63,7 @@ "ApplySecurityGroupsToLoadBalancerInput$LoadBalancerName": "

The name of the load balancer.

", "AttachLoadBalancerToSubnetsInput$LoadBalancerName": "

The name of the load balancer.

", "ConfigureHealthCheckInput$LoadBalancerName": "

The name of the load balancer.

", - "CreateAccessPointInput$LoadBalancerName": "

The name of the load balancer.

This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

", + "CreateAccessPointInput$LoadBalancerName": "

The name of the load balancer.

This name must be unique within your AWS account, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.

", "CreateAppCookieStickinessPolicyInput$LoadBalancerName": "

The name of the load balancer.

", "CreateLBCookieStickinessPolicyInput$LoadBalancerName": "

The name of the load balancer.

", "CreateLoadBalancerListenerInput$LoadBalancerName": "

The name of the load balancer.

", @@ -97,7 +97,7 @@ "AccessPointPort": { "base": null, "refs": { - "Listener$LoadBalancerPort": "

The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.

", + "Listener$LoadBalancerPort": "

The port on which the load balancer is listening. The supported ports are: 25, 80, 443, 465, 587, and 1024-65535.

", "Ports$member": null, "SetLoadBalancerListenerSSLCertificateInput$LoadBalancerPort": "

The port that uses the specified SSL certificate.

", "SetLoadBalancerPoliciesOfListenerInput$LoadBalancerPort": "

The external port of the load balancer for the policy.

" @@ -241,7 +241,7 @@ "ConnectionDraining": { "base": "

Information about the ConnectionDraining attribute.

", "refs": { - "LoadBalancerAttributes$ConnectionDraining": "

If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy back-end instance.

For more information, see Enable Connection Draining in the Elastic Load Balancing Developer Guide.

" + "LoadBalancerAttributes$ConnectionDraining": "

If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy back-end instance.

For more information, see Enable Connection Draining in the Elastic Load Balancing Developer Guide.

" } }, "ConnectionDrainingEnabled": { @@ -779,8 +779,8 @@ "base": null, "refs": { "AppCookieStickinessPolicy$PolicyName": "

The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.

", - "CreateAppCookieStickinessPolicyInput$PolicyName": "

The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.

", - "CreateLBCookieStickinessPolicyInput$PolicyName": "

The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.

", + "CreateAppCookieStickinessPolicyInput$PolicyName": "

The name of the policy being created. This name must be unique within the set of policies for this load balancer.

", + "CreateLBCookieStickinessPolicyInput$PolicyName": "

The name of the policy being created. This name must be unique within the set of policies for this load balancer.

", "CreateLoadBalancerPolicyInput$PolicyName": "

The name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.

", "DeleteLoadBalancerPolicyInput$PolicyName": "

The name of the policy.

", "LBCookieStickinessPolicy$PolicyName": "

The name for the policy being created. The name must be unique within the set of policies for this load balancer.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticloadbalancing/2012-06-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticloadbalancing/2012-06-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticloadbalancing/2012-06-01/waiters-2.json similarity index 60% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticloadbalancing/2012-06-01/waiters-2.json index b03901a4c..7b2196f51 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/waiters-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticloadbalancing/2012-06-01/waiters-2.json @@ -14,24 +14,6 @@ } ] }, - "InstanceDeregistered": { - "delay": 15, - "operation": "DescribeInstanceHealth", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "OutOfService", - "matcher": "pathAll", - "state": "success", - "argument": "InstanceStates[].State" - }, - { - "matcher": "error", - "expected": "InvalidInstance", - "state": "success" - } - ] - }, "AnyInstanceInService": { "delay": 15, "operation": "DescribeInstanceHealth", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticmapreduce/2009-03-31/api-2.json similarity index 89% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticmapreduce/2009-03-31/api-2.json index 9b0ceff50..bf44e634a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticmapreduce/2009-03-31/api-2.json @@ -4,12 +4,12 @@ "apiVersion":"2009-03-31", "endpointPrefix":"elasticmapreduce", "jsonVersion":"1.1", - "protocol":"json", "serviceAbbreviation":"Amazon EMR", "serviceFullName":"Amazon Elastic MapReduce", "signatureVersion":"v4", "targetPrefix":"ElasticMapReduce", - "timestampFormat":"unixTimestamp" + "timestampFormat":"unixTimestamp", + "protocol":"json" }, "operations":{ "AddInstanceGroups":{ @@ -21,7 +21,14 @@ "input":{"shape":"AddInstanceGroupsInput"}, "output":{"shape":"AddInstanceGroupsOutput"}, "errors":[ - {"shape":"InternalServerError"} + { + "shape":"InternalServerError", + "error":{ + "code":"InternalFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "AddJobFlowSteps":{ @@ -33,7 +40,14 @@ "input":{"shape":"AddJobFlowStepsInput"}, "output":{"shape":"AddJobFlowStepsOutput"}, "errors":[ - {"shape":"InternalServerError"} + { + "shape":"InternalServerError", + "error":{ + "code":"InternalFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "AddTags":{ @@ -45,8 +59,15 @@ "input":{"shape":"AddTagsInput"}, "output":{"shape":"AddTagsOutput"}, "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidRequestException"} + { + "shape":"InternalServerException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "DescribeCluster":{ @@ -58,8 +79,15 @@ "input":{"shape":"DescribeClusterInput"}, "output":{"shape":"DescribeClusterOutput"}, "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidRequestException"} + { + "shape":"InternalServerException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "DescribeJobFlows":{ @@ -71,7 +99,14 @@ "input":{"shape":"DescribeJobFlowsInput"}, "output":{"shape":"DescribeJobFlowsOutput"}, "errors":[ - {"shape":"InternalServerError"} + { + "shape":"InternalServerError", + "error":{ + "code":"InternalFailure", + "httpStatusCode":500 + }, + "exception":true + } ], "deprecated":true }, @@ -84,8 +119,15 @@ "input":{"shape":"DescribeStepInput"}, "output":{"shape":"DescribeStepOutput"}, "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidRequestException"} + { + "shape":"InternalServerException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ListBootstrapActions":{ @@ -97,8 +139,15 @@ "input":{"shape":"ListBootstrapActionsInput"}, "output":{"shape":"ListBootstrapActionsOutput"}, "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidRequestException"} + { + "shape":"InternalServerException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ListClusters":{ @@ -110,8 +159,15 @@ "input":{"shape":"ListClustersInput"}, "output":{"shape":"ListClustersOutput"}, "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidRequestException"} + { + "shape":"InternalServerException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ListInstanceGroups":{ @@ -123,8 +179,15 @@ "input":{"shape":"ListInstanceGroupsInput"}, "output":{"shape":"ListInstanceGroupsOutput"}, "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidRequestException"} + { + "shape":"InternalServerException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ListInstances":{ @@ -136,8 +199,15 @@ "input":{"shape":"ListInstancesInput"}, "output":{"shape":"ListInstancesOutput"}, "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidRequestException"} + { + "shape":"InternalServerException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ListSteps":{ @@ -149,8 +219,15 @@ "input":{"shape":"ListStepsInput"}, "output":{"shape":"ListStepsOutput"}, "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidRequestException"} + { + "shape":"InternalServerException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "ModifyInstanceGroups":{ @@ -161,7 +238,14 @@ }, "input":{"shape":"ModifyInstanceGroupsInput"}, "errors":[ - {"shape":"InternalServerError"} + { + "shape":"InternalServerError", + "error":{ + "code":"InternalFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "RemoveTags":{ @@ -173,8 +257,15 @@ "input":{"shape":"RemoveTagsInput"}, "output":{"shape":"RemoveTagsOutput"}, "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidRequestException"} + { + "shape":"InternalServerException", + "exception":true, + "fault":true + }, + { + "shape":"InvalidRequestException", + "exception":true + } ] }, "RunJobFlow":{ @@ -186,7 +277,14 @@ "input":{"shape":"RunJobFlowInput"}, "output":{"shape":"RunJobFlowOutput"}, "errors":[ - {"shape":"InternalServerError"} + { + "shape":"InternalServerError", + "error":{ + "code":"InternalFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "SetTerminationProtection":{ @@ -197,7 +295,14 @@ }, "input":{"shape":"SetTerminationProtectionInput"}, "errors":[ - {"shape":"InternalServerError"} + { + "shape":"InternalServerError", + "error":{ + "code":"InternalFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "SetVisibleToAllUsers":{ @@ -208,7 +313,14 @@ }, "input":{"shape":"SetVisibleToAllUsersInput"}, "errors":[ - {"shape":"InternalServerError"} + { + "shape":"InternalServerError", + "error":{ + "code":"InternalFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "TerminateJobFlows":{ @@ -219,7 +331,14 @@ }, "input":{"shape":"TerminateJobFlowsInput"}, "errors":[ - {"shape":"InternalServerError"} + { + "shape":"InternalServerError", + "error":{ + "code":"InternalFailure", + "httpStatusCode":500 + }, + "exception":true + } ] } }, @@ -298,7 +417,6 @@ "member":{"shape":"Application"} }, "Boolean":{"type":"boolean"}, - "BooleanObject":{"type":"boolean"}, "BootstrapActionConfig":{ "type":"structure", "required":[ @@ -481,55 +599,10 @@ "Step":{"shape":"Step"} } }, - "EC2InstanceIdsList":{ - "type":"list", - "member":{"shape":"InstanceId"} - }, "EC2InstanceIdsToTerminateList":{ "type":"list", "member":{"shape":"InstanceId"} }, - "EbsBlockDevice":{ - "type":"structure", - "members":{ - "VolumeSpecification":{"shape":"VolumeSpecification"}, - "Device":{"shape":"String"} - } - }, - "EbsBlockDeviceConfig":{ - "type":"structure", - "required":["VolumeSpecification"], - "members":{ - "VolumeSpecification":{"shape":"VolumeSpecification"}, - "VolumesPerInstance":{"shape":"Integer"} - } - }, - "EbsBlockDeviceConfigList":{ - "type":"list", - "member":{"shape":"EbsBlockDeviceConfig"} - }, - "EbsBlockDeviceList":{ - "type":"list", - "member":{"shape":"EbsBlockDevice"} - }, - "EbsConfiguration":{ - "type":"structure", - "members":{ - "EbsBlockDeviceConfigs":{"shape":"EbsBlockDeviceConfigList"}, - "EbsOptimized":{"shape":"BooleanObject"} - } - }, - "EbsVolume":{ - "type":"structure", - "members":{ - "Device":{"shape":"String"}, - "VolumeId":{"shape":"String"} - } - }, - "EbsVolumeList":{ - "type":"list", - "member":{"shape":"EbsVolume"} - }, "Ec2InstanceAttributes":{ "type":"structure", "members":{ @@ -539,15 +612,14 @@ "IamInstanceProfile":{"shape":"String"}, "EmrManagedMasterSecurityGroup":{"shape":"String"}, "EmrManagedSlaveSecurityGroup":{"shape":"String"}, - "ServiceAccessSecurityGroup":{"shape":"String"}, "AdditionalMasterSecurityGroups":{"shape":"StringList"}, "AdditionalSlaveSecurityGroups":{"shape":"StringList"} } }, "ErrorCode":{ "type":"string", - "max":256, - "min":1 + "min":1, + "max":256 }, "ErrorMessage":{"type":"string"}, "HadoopJarStepConfig":{ @@ -578,9 +650,7 @@ "PublicIpAddress":{"shape":"String"}, "PrivateDnsName":{"shape":"String"}, "PrivateIpAddress":{"shape":"String"}, - "Status":{"shape":"InstanceStatus"}, - "InstanceGroupId":{"shape":"String"}, - "EbsVolumes":{"shape":"EbsVolumeList"} + "Status":{"shape":"InstanceStatus"} } }, "InstanceGroup":{ @@ -595,10 +665,7 @@ "RequestedInstanceCount":{"shape":"Integer"}, "RunningInstanceCount":{"shape":"Integer"}, "Status":{"shape":"InstanceGroupStatus"}, - "Configurations":{"shape":"ConfigurationList"}, - "EbsBlockDevices":{"shape":"EbsBlockDeviceList"}, - "EbsOptimized":{"shape":"BooleanObject"}, - "ShrinkPolicy":{"shape":"ShrinkPolicy"} + "Configurations":{"shape":"ConfigurationList"} } }, "InstanceGroupConfig":{ @@ -615,8 +682,7 @@ "BidPrice":{"shape":"XmlStringMaxLen256"}, "InstanceType":{"shape":"InstanceType"}, "InstanceCount":{"shape":"Integer"}, - "Configurations":{"shape":"ConfigurationList"}, - "EbsConfiguration":{"shape":"EbsConfiguration"} + "Configurations":{"shape":"ConfigurationList"} } }, "InstanceGroupConfigList":{ @@ -670,8 +736,7 @@ "members":{ "InstanceGroupId":{"shape":"XmlStringMaxLen256"}, "InstanceCount":{"shape":"Integer"}, - "EC2InstanceIdsToTerminate":{"shape":"EC2InstanceIdsToTerminateList"}, - "ShrinkPolicy":{"shape":"ShrinkPolicy"} + "EC2InstanceIdsToTerminate":{"shape":"EC2InstanceIdsToTerminateList"} } }, "InstanceGroupModifyConfigList":{ @@ -742,14 +807,6 @@ "type":"list", "member":{"shape":"Instance"} }, - "InstanceResizePolicy":{ - "type":"structure", - "members":{ - "InstancesToTerminate":{"shape":"EC2InstanceIdsList"}, - "InstancesToProtect":{"shape":"EC2InstanceIdsList"}, - "InstanceTerminationTimeout":{"shape":"Integer"} - } - }, "InstanceRoleType":{ "type":"string", "enum":[ @@ -785,10 +842,6 @@ "CLUSTER_TERMINATED" ] }, - "InstanceStateList":{ - "type":"list", - "member":{"shape":"InstanceState"} - }, "InstanceStatus":{ "type":"structure", "members":{ @@ -807,8 +860,8 @@ }, "InstanceType":{ "type":"string", - "max":256, "min":1, + "max":256, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, "Integer":{"type":"integer"}, @@ -816,6 +869,10 @@ "type":"structure", "members":{ }, + "error":{ + "code":"InternalFailure", + "httpStatusCode":500 + }, "exception":true }, "InternalServerException":{ @@ -908,7 +965,6 @@ "Ec2SubnetId":{"shape":"XmlStringMaxLen256"}, "EmrManagedMasterSecurityGroup":{"shape":"XmlStringMaxLen256"}, "EmrManagedSlaveSecurityGroup":{"shape":"XmlStringMaxLen256"}, - "ServiceAccessSecurityGroup":{"shape":"XmlStringMaxLen256"}, "AdditionalMasterSecurityGroups":{"shape":"SecurityGroupsList"}, "AdditionalSlaveSecurityGroups":{"shape":"SecurityGroupsList"} } @@ -1000,7 +1056,6 @@ "ClusterId":{"shape":"ClusterId"}, "InstanceGroupId":{"shape":"InstanceGroupId"}, "InstanceGroupTypes":{"shape":"InstanceGroupTypeList"}, - "InstanceStates":{"shape":"InstanceStateList"}, "Marker":{"shape":"Marker"} } }, @@ -1135,13 +1190,6 @@ "VisibleToAllUsers":{"shape":"Boolean"} } }, - "ShrinkPolicy":{ - "type":"structure", - "members":{ - "DecommissionTimeout":{"shape":"Integer"}, - "InstanceResizePolicy":{"shape":"InstanceResizePolicy"} - } - }, "Step":{ "type":"structure", "members":{ @@ -1309,22 +1357,10 @@ "JobFlowIds":{"shape":"XmlStringList"} } }, - "VolumeSpecification":{ - "type":"structure", - "required":[ - "VolumeType", - "SizeInGB" - ], - "members":{ - "VolumeType":{"shape":"String"}, - "Iops":{"shape":"Integer"}, - "SizeInGB":{"shape":"Integer"} - } - }, "XmlString":{ "type":"string", - "max":10280, "min":0, + "max":10280, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, "XmlStringList":{ @@ -1333,8 +1369,8 @@ }, "XmlStringMaxLen256":{ "type":"string", - "max":256, "min":0, + "max":256, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticmapreduce/2009-03-31/docs-2.json similarity index 90% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticmapreduce/2009-03-31/docs-2.json index 6553815ad..5a2f37e89 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/elasticmapreduce/2009-03-31/docs-2.json @@ -1,6 +1,5 @@ { "version": "2.0", - "service": "

Amazon Elastic MapReduce (Amazon EMR) is a web service that makes it easy to process large amounts of data efficiently. Amazon EMR uses Hadoop processing combined with several AWS products to do tasks such as web indexing, data mining, log file analysis, machine learning, scientific simulation, and data warehousing.

", "operations": { "AddInstanceGroups": "

AddInstanceGroups adds an instance group to a running cluster.

", "AddJobFlowSteps": "

AddJobFlowSteps adds new steps to a running job flow. A maximum of 256 steps are allowed in each job flow.

If your job flow is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using the SSH shell to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, go to Add More than 256 Steps to a Job Flow in the Amazon Elastic MapReduce Developer's Guide.

A step specifies the location of a JAR file stored either on the master node of the job flow or in Amazon S3. Each step is performed by the main function of the main class of the JAR file. The main class can be specified either in the manifest of the JAR or by using the MainFunction parameter of the step.

Elastic MapReduce executes each step in the order listed. For a step to be considered complete, the main function must exit with a zero exit code and all Hadoop jobs started while the step was running must have completed and run successfully.

You can only add steps to a job flow that is in one of the following states: STARTING, BOOTSTRAPPING, RUNNING, or WAITING.

", @@ -20,6 +19,7 @@ "SetVisibleToAllUsers": "

Sets whether all AWS Identity and Access Management (IAM) users under your account can access the specified job flows. This action works on running job flows. You can also set the visibility of a job flow when you launch it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers action can be called only by an IAM user who created the job flow or the AWS account that owns the job flow.

", "TerminateJobFlows": "

TerminateJobFlows shuts a list of job flows down. When a job flow is shut down, any step not yet completed is canceled and the EC2 instances on which the job flow is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the job flow was created.

The maximum number of JobFlows allowed is 10. The call to TerminateJobFlows is asynchronous. Depending on the configuration of the job flow, it may take up to 5-20 minutes for the job flow to completely terminate and release allocated resources, such as Amazon EC2 instances.

" }, + "service": "

Amazon Elastic MapReduce (Amazon EMR) is a web service that makes it easy to process large amounts of data efficiently. Amazon EMR uses Hadoop processing combined with several AWS products to do tasks such as web indexing, data mining, log file analysis, machine learning, scientific simulation, and data warehousing.

", "shapes": { "ActionOnFailure": { "base": null, @@ -88,13 +88,6 @@ "SetVisibleToAllUsersInput$VisibleToAllUsers": "

Whether the specified job flows are visible to all IAM users of the AWS account associated with the job flow. If this value is set to True, all IAM users of that AWS account can view and, if they have the proper IAM policy permissions set, manage the job flows. If it is set to False, only the IAM user that created a job flow can view and manage it.

" } }, - "BooleanObject": { - "base": null, - "refs": { - "EbsConfiguration$EbsOptimized": null, - "InstanceGroup$EbsOptimized": "

If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.

" - } - }, "BootstrapActionConfig": { "base": "

Configuration of a bootstrap action.

", "refs": { @@ -279,59 +272,10 @@ "refs": { } }, - "EC2InstanceIdsList": { - "base": null, - "refs": { - "InstanceResizePolicy$InstancesToTerminate": "

Specific list of instances to be terminated when shrinking an instance group.

", - "InstanceResizePolicy$InstancesToProtect": "

Specific list of instances to be protected when shrinking an instance group.

" - } - }, "EC2InstanceIdsToTerminateList": { "base": null, "refs": { - "InstanceGroupModifyConfig$EC2InstanceIdsToTerminate": "

The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.

" - } - }, - "EbsBlockDevice": { - "base": "

Configuration of requested EBS block device associated with the instance group.

", - "refs": { - "EbsBlockDeviceList$member": null - } - }, - "EbsBlockDeviceConfig": { - "base": "

Configuration of requested EBS block device associated with the instance group with count of volumes that will be associated to every instance.

", - "refs": { - "EbsBlockDeviceConfigList$member": null - } - }, - "EbsBlockDeviceConfigList": { - "base": null, - "refs": { - "EbsConfiguration$EbsBlockDeviceConfigs": null - } - }, - "EbsBlockDeviceList": { - "base": null, - "refs": { - "InstanceGroup$EbsBlockDevices": "

The EBS block devices that are mapped to this instance group.

" - } - }, - "EbsConfiguration": { - "base": null, - "refs": { - "InstanceGroupConfig$EbsConfiguration": "

EBS configurations that will be attached to each Amazon EC2 instance in the instance group.

" - } - }, - "EbsVolume": { - "base": "

EBS block device that's attached to an EC2 instance.

", - "refs": { - "EbsVolumeList$member": null - } - }, - "EbsVolumeList": { - "base": null, - "refs": { - "Instance$EbsVolumes": "

The list of EBS volumes that are attached to this instance.

" + "InstanceGroupModifyConfig$EC2InstanceIdsToTerminate": "

The EC2 InstanceIds to terminate. For advanced users only. Once you terminate the instances, the instance group will not return to its original requested size.

" } }, "Ec2InstanceAttributes": { @@ -481,7 +425,6 @@ "InstanceId": { "base": null, "refs": { - "EC2InstanceIdsList$member": null, "EC2InstanceIdsToTerminateList$member": null, "Instance$Id": "

The unique identifier for the instance in Amazon EMR.

", "Instance$Ec2InstanceId": "

The unique identifier of the instance in Amazon EC2.

" @@ -493,12 +436,6 @@ "ListInstancesOutput$Instances": "

The list of instances for the cluster and given filters.

" } }, - "InstanceResizePolicy": { - "base": "

Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.

", - "refs": { - "ShrinkPolicy$InstanceResizePolicy": "

Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.

" - } - }, "InstanceRoleType": { "base": null, "refs": { @@ -509,7 +446,6 @@ "InstanceState": { "base": null, "refs": { - "InstanceStateList$member": null, "InstanceStatus$State": "

The current state of the instance.

" } }, @@ -525,12 +461,6 @@ "InstanceStateChangeReason$Code": "

The programmable code for the state change reason.

" } }, - "InstanceStateList": { - "base": null, - "refs": { - "ListInstancesInput$InstanceStates": "

A list of instance states that will filter the instances returned with this request.

" - } - }, "InstanceStatus": { "base": "

The instance status details.

", "refs": { @@ -560,20 +490,15 @@ "refs": { "Cluster$NormalizedInstanceHours": "

An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented one time for every hour an m1.small instance runs. Larger instances are weighted more, so an EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

", "ClusterSummary$NormalizedInstanceHours": "

An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented one time for every hour an m1.small instance runs. Larger instances are weighted more, so an EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

", - "EbsBlockDeviceConfig$VolumesPerInstance": "

Number of EBS volumes with specific volume configuration, that will be associated with every instance in the instance group

", "InstanceGroup$RequestedInstanceCount": "

The target number of instances for the instance group.

", "InstanceGroup$RunningInstanceCount": "

The number of instances currently running in this instance group.

", "InstanceGroupConfig$InstanceCount": "

Target number of instances for the instance group.

", "InstanceGroupDetail$InstanceRequestCount": "

Target number of instances to run in the instance group.

", "InstanceGroupDetail$InstanceRunningCount": "

Actual count of running instances.

", "InstanceGroupModifyConfig$InstanceCount": "

Target size for the instance group.

", - "InstanceResizePolicy$InstanceTerminationTimeout": "

Decommissioning timeout override for the specific list of instances to be terminated.

", "JobFlowInstancesConfig$InstanceCount": "

The number of Amazon EC2 instances used to execute the job flow.

", "JobFlowInstancesDetail$InstanceCount": "

The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and slave node. If the value is greater than 1, one instance is the master node and all others are slave nodes.

", - "JobFlowInstancesDetail$NormalizedInstanceHours": "

An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented once for every hour an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

", - "ShrinkPolicy$DecommissionTimeout": "

The desired timeout for decommissioning an instance. Overrides the default YARN decommissioning timeout.

", - "VolumeSpecification$Iops": "

The number of I/O operations per second (IOPS) that the volume supports.

", - "VolumeSpecification$SizeInGB": "

The volume size, in gibibytes (GiB). This can be a number from 1 – 1024. If the volume type is EBS-optimized, the minimum value is 10.

" + "JobFlowInstancesDetail$NormalizedInstanceHours": "

An approximation of the cost of the job flow, represented in m1.small/hours. This value is incremented once for every hour an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.

" } }, "InternalServerError": { @@ -692,7 +617,7 @@ } }, "ListStepsOutput": { - "base": "

This output contains the list of steps returned in reverse order. This means that the last step is the first element in the list.

", + "base": "

This output contains the list of steps.

", "refs": { } }, @@ -787,13 +712,6 @@ "refs": { } }, - "ShrinkPolicy": { - "base": "

Policy for customizing shrink operations. Allows configuration of decommissioning timeout and targeted instance shrinking.

", - "refs": { - "InstanceGroup$ShrinkPolicy": "

Policy for customizing shrink operations.

", - "InstanceGroupModifyConfig$ShrinkPolicy": "

Policy for customizing shrink operations.

" - } - }, "Step": { "base": "

This represents a step in a cluster.

", "refs": { @@ -919,23 +837,18 @@ "Command$Name": "

The name of the command.

", "Command$ScriptPath": "

The Amazon S3 location of the command script.

", "Configuration$Classification": "

The classification of a configuration. For more information see, Amazon EMR Configurations.

", - "EbsBlockDevice$Device": "

The device name that is exposed to the instance, such as /dev/sdh.

", - "EbsVolume$Device": "

The device name that is exposed to the instance, such as /dev/sdh.

", - "EbsVolume$VolumeId": "

The volume identifier of the EBS volume.

", "Ec2InstanceAttributes$Ec2KeyName": "

The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named \"hadoop\".

", "Ec2InstanceAttributes$Ec2SubnetId": "

To launch the job flow in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal AWS cloud, outside of a VPC.

Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a VPC.

", "Ec2InstanceAttributes$Ec2AvailabilityZone": "

The Availability Zone in which the cluster will run.

", "Ec2InstanceAttributes$IamInstanceProfile": "

The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.

", - "Ec2InstanceAttributes$EmrManagedMasterSecurityGroup": "

The identifier of the Amazon EC2 security group for the master node.

", - "Ec2InstanceAttributes$EmrManagedSlaveSecurityGroup": "

The identifier of the Amazon EC2 security group for the slave nodes.

", - "Ec2InstanceAttributes$ServiceAccessSecurityGroup": "

The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.

", + "Ec2InstanceAttributes$EmrManagedMasterSecurityGroup": "

The identifier of the Amazon EC2 security group (managed by Amazon Elastic MapReduce) for the master node.

", + "Ec2InstanceAttributes$EmrManagedSlaveSecurityGroup": "

The identifier of the Amazon EC2 security group (managed by Amazon Elastic MapReduce) for the slave nodes.

", "HadoopStepConfig$Jar": "

The path to the JAR file that runs during the step.

", "HadoopStepConfig$MainClass": "

The name of the main class in the specified Java file. If not specified, the JAR file should specify a main class in its manifest file.

", "Instance$PublicDnsName": "

The public DNS name of the instance.

", "Instance$PublicIpAddress": "

The public IP address of the instance.

", "Instance$PrivateDnsName": "

The private DNS name of the instance.

", "Instance$PrivateIpAddress": "

The private IP address of the instance.

", - "Instance$InstanceGroupId": "

The identifier of the instance group to which this instance belongs.

", "InstanceGroup$Name": "

The name of the instance group.

", "InstanceGroup$BidPrice": "

The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

", "InstanceGroupStateChangeReason$Message": "

The status change reason description.

", @@ -947,8 +860,7 @@ "StringMap$key": null, "StringMap$value": null, "Tag$Key": "

A user-defined key, which is the minimum required information for a valid tag. For more information, see Tagging Amazon EMR Resources.

", - "Tag$Value": "

A user-defined value, which is optional in a tag. For more information, see Tagging Amazon EMR Resources.

", - "VolumeSpecification$VolumeType": "

The volume type. Volume types supported are gp2, io1, standard.

" + "Tag$Value": "

A user-defined value, which is optional in a tag. For more information, see Tagging Amazon EMR Resources.

" } }, "StringList": { @@ -1002,13 +914,6 @@ "refs": { } }, - "VolumeSpecification": { - "base": "

EBS volume specifications such as volume type, IOPS, and size(GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

", - "refs": { - "EbsBlockDevice$VolumeSpecification": "

EBS volume specifications such as volume type, IOPS, and size(GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

", - "EbsBlockDeviceConfig$VolumeSpecification": "

EBS volume specifications such as volume type, IOPS, and size(GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

" - } - }, "XmlString": { "base": null, "refs": { @@ -1026,7 +931,7 @@ "PlacementType$AvailabilityZone": "

The Amazon EC2 Availability Zone for the job flow.

", "RunJobFlowInput$LogUri": "

The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.

", "RunJobFlowInput$AdditionalInfo": "

A JSON string for selecting additional features.

", - "RunJobFlowInput$JobFlowRole": "

Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. The default role is EMR_EC2_DefaultRole. In order to use the default role, you must have already created it using the CLI or console.

", + "RunJobFlowInput$JobFlowRole": "

An IAM role for the job flow. The EC2 instances of the job flow assume this role. The default role is EMRJobflowDefault. In order to use the default role, you must have already created it using the CLI.

", "RunJobFlowInput$ServiceRole": "

The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.

", "ScriptBootstrapActionConfig$Path": "

Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.

", "StepExecutionStatusDetail$LastStateChangeReason": "

A description of the step's current state.

", @@ -1066,9 +971,8 @@ "JobFlowInstancesConfig$Ec2KeyName": "

The name of the Amazon EC2 key pair that can be used to ssh to the master node as the user called \"hadoop.\"

", "JobFlowInstancesConfig$HadoopVersion": "

The Hadoop version for the job flow. Valid inputs are \"0.18\" (deprecated), \"0.20\" (deprecated), \"0.20.205\" (deprecated), \"1.0.3\", \"2.2.0\", or \"2.4.0\". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.

", "JobFlowInstancesConfig$Ec2SubnetId": "

To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the job flow to launch. If you do not specify this value, the job flow is launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.

Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for nodes of a job flow launched in a Amazon VPC.

", - "JobFlowInstancesConfig$EmrManagedMasterSecurityGroup": "

The identifier of the Amazon EC2 security group for the master node.

", - "JobFlowInstancesConfig$EmrManagedSlaveSecurityGroup": "

The identifier of the Amazon EC2 security group for the slave nodes.

", - "JobFlowInstancesConfig$ServiceAccessSecurityGroup": "

The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.

", + "JobFlowInstancesConfig$EmrManagedMasterSecurityGroup": "

The identifier of the Amazon EC2 security group (managed by Amazon ElasticMapReduce) for the master node.

", + "JobFlowInstancesConfig$EmrManagedSlaveSecurityGroup": "

The identifier of the Amazon EC2 security group (managed by Amazon ElasticMapReduce) for the slave nodes.

", "JobFlowInstancesDetail$Ec2KeyName": "

The name of an Amazon EC2 key pair that can be used to ssh to the master node of job flow.

", "JobFlowInstancesDetail$Ec2SubnetId": "

For job flows launched within Amazon Virtual Private Cloud, this value specifies the identifier of the subnet where the job flow was launched.

", "JobFlowInstancesDetail$HadoopVersion": "

The Hadoop version for the job flow.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticmapreduce/2009-03-31/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticmapreduce/2009-03-31/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elasticmapreduce/2009-03-31/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elasticmapreduce/2009-03-31/waiters-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elastictranscoder/2012-09-25/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elastictranscoder/2012-09-25/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elastictranscoder/2012-09-25/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elastictranscoder/2012-09-25/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/elastictranscoder/2012-09-25/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/elastictranscoder/2012-09-25/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/elastictranscoder/2012-09-25/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/elastictranscoder/2012-09-25/waiters-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/api-2.json new file mode 100644 index 000000000..534945529 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/api-2.json @@ -0,0 +1,806 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2010-12-01", + "endpointPrefix":"email", + "serviceAbbreviation":"Amazon SES", + "serviceFullName":"Amazon Simple Email Service", + "signatureVersion":"v4", + "signingName":"ses", + "xmlNamespace":"http://ses.amazonaws.com/doc/2010-12-01/", + "protocol":"query" + }, + "operations":{ + "DeleteIdentity":{ + "name":"DeleteIdentity", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteIdentityRequest"}, + "output":{ + "shape":"DeleteIdentityResponse", + "resultWrapper":"DeleteIdentityResult" + } + }, + "DeleteIdentityPolicy":{ + "name":"DeleteIdentityPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteIdentityPolicyRequest"}, + "output":{ + "shape":"DeleteIdentityPolicyResponse", + "resultWrapper":"DeleteIdentityPolicyResult" + } + }, + "DeleteVerifiedEmailAddress":{ + "name":"DeleteVerifiedEmailAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteVerifiedEmailAddressRequest"} + }, + "GetIdentityDkimAttributes":{ + "name":"GetIdentityDkimAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetIdentityDkimAttributesRequest"}, + "output":{ + "shape":"GetIdentityDkimAttributesResponse", + "resultWrapper":"GetIdentityDkimAttributesResult" + } + }, + "GetIdentityNotificationAttributes":{ + "name":"GetIdentityNotificationAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetIdentityNotificationAttributesRequest"}, + "output":{ + "shape":"GetIdentityNotificationAttributesResponse", + "resultWrapper":"GetIdentityNotificationAttributesResult" + } + }, + "GetIdentityPolicies":{ + "name":"GetIdentityPolicies", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetIdentityPoliciesRequest"}, + "output":{ + "shape":"GetIdentityPoliciesResponse", + "resultWrapper":"GetIdentityPoliciesResult" + } + }, + "GetIdentityVerificationAttributes":{ + "name":"GetIdentityVerificationAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetIdentityVerificationAttributesRequest"}, + "output":{ + "shape":"GetIdentityVerificationAttributesResponse", + "resultWrapper":"GetIdentityVerificationAttributesResult" + } + }, + "GetSendQuota":{ + "name":"GetSendQuota", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "output":{ + "shape":"GetSendQuotaResponse", + "resultWrapper":"GetSendQuotaResult" + } + }, + "GetSendStatistics":{ + "name":"GetSendStatistics", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "output":{ + "shape":"GetSendStatisticsResponse", + "resultWrapper":"GetSendStatisticsResult" + } + }, + "ListIdentities":{ + "name":"ListIdentities", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListIdentitiesRequest"}, + "output":{ + "shape":"ListIdentitiesResponse", + "resultWrapper":"ListIdentitiesResult" + } + }, + "ListIdentityPolicies":{ + "name":"ListIdentityPolicies", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListIdentityPoliciesRequest"}, + "output":{ + "shape":"ListIdentityPoliciesResponse", + "resultWrapper":"ListIdentityPoliciesResult" + } + }, + "ListVerifiedEmailAddresses":{ + "name":"ListVerifiedEmailAddresses", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "output":{ + "shape":"ListVerifiedEmailAddressesResponse", + "resultWrapper":"ListVerifiedEmailAddressesResult" + } + }, + "PutIdentityPolicy":{ + "name":"PutIdentityPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutIdentityPolicyRequest"}, + "output":{ + "shape":"PutIdentityPolicyResponse", + "resultWrapper":"PutIdentityPolicyResult" + }, + "errors":[ + { + "shape":"InvalidPolicyException", + "error":{ + "code":"InvalidPolicy", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "SendEmail":{ + "name":"SendEmail", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SendEmailRequest"}, + "output":{ + "shape":"SendEmailResponse", + "resultWrapper":"SendEmailResult" + }, + "errors":[ + { + "shape":"MessageRejected", + "error":{ + "code":"MessageRejected", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "SendRawEmail":{ + "name":"SendRawEmail", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SendRawEmailRequest"}, + "output":{ + "shape":"SendRawEmailResponse", + "resultWrapper":"SendRawEmailResult" + }, + "errors":[ + { + "shape":"MessageRejected", + "error":{ + "code":"MessageRejected", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "SetIdentityDkimEnabled":{ + "name":"SetIdentityDkimEnabled", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SetIdentityDkimEnabledRequest"}, + "output":{ + "shape":"SetIdentityDkimEnabledResponse", + "resultWrapper":"SetIdentityDkimEnabledResult" + } + }, + "SetIdentityFeedbackForwardingEnabled":{ + "name":"SetIdentityFeedbackForwardingEnabled", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SetIdentityFeedbackForwardingEnabledRequest"}, + "output":{ + "shape":"SetIdentityFeedbackForwardingEnabledResponse", + "resultWrapper":"SetIdentityFeedbackForwardingEnabledResult" + } + }, + "SetIdentityNotificationTopic":{ + "name":"SetIdentityNotificationTopic", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SetIdentityNotificationTopicRequest"}, + "output":{ + "shape":"SetIdentityNotificationTopicResponse", + "resultWrapper":"SetIdentityNotificationTopicResult" + } + }, + "VerifyDomainDkim":{ + "name":"VerifyDomainDkim", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"VerifyDomainDkimRequest"}, + "output":{ + "shape":"VerifyDomainDkimResponse", + "resultWrapper":"VerifyDomainDkimResult" + } + }, + "VerifyDomainIdentity":{ + "name":"VerifyDomainIdentity", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"VerifyDomainIdentityRequest"}, + "output":{ + "shape":"VerifyDomainIdentityResponse", + "resultWrapper":"VerifyDomainIdentityResult" + } + }, + "VerifyEmailAddress":{ + "name":"VerifyEmailAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"VerifyEmailAddressRequest"} + }, + "VerifyEmailIdentity":{ + "name":"VerifyEmailIdentity", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"VerifyEmailIdentityRequest"}, + "output":{ + "shape":"VerifyEmailIdentityResponse", + "resultWrapper":"VerifyEmailIdentityResult" + } + } + }, + "shapes":{ + "Address":{"type":"string"}, + "AddressList":{ + "type":"list", + "member":{"shape":"Address"} + }, + "AmazonResourceName":{"type":"string"}, + "Body":{ + "type":"structure", + "members":{ + "Text":{"shape":"Content"}, + "Html":{"shape":"Content"} + } + }, + "Charset":{"type":"string"}, + "Content":{ + "type":"structure", + "required":["Data"], + "members":{ + "Data":{"shape":"MessageData"}, + "Charset":{"shape":"Charset"} + } + }, + "Counter":{"type":"long"}, + "DeleteIdentityPolicyRequest":{ + "type":"structure", + "required":[ + "Identity", + "PolicyName" + ], + "members":{ + "Identity":{"shape":"Identity"}, + "PolicyName":{"shape":"PolicyName"} + } + }, + "DeleteIdentityPolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteIdentityRequest":{ + "type":"structure", + "required":["Identity"], + "members":{ + "Identity":{"shape":"Identity"} + } + }, + "DeleteIdentityResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteVerifiedEmailAddressRequest":{ + "type":"structure", + "required":["EmailAddress"], + "members":{ + "EmailAddress":{"shape":"Address"} + } + }, + "Destination":{ + "type":"structure", + "members":{ + "ToAddresses":{"shape":"AddressList"}, + "CcAddresses":{"shape":"AddressList"}, + "BccAddresses":{"shape":"AddressList"} + } + }, + "DkimAttributes":{ + "type":"map", + "key":{"shape":"Identity"}, + "value":{"shape":"IdentityDkimAttributes"} + }, + "Domain":{"type":"string"}, + "Enabled":{"type":"boolean"}, + "GetIdentityDkimAttributesRequest":{ + "type":"structure", + "required":["Identities"], + "members":{ + "Identities":{"shape":"IdentityList"} + } + }, + "GetIdentityDkimAttributesResponse":{ + "type":"structure", + "required":["DkimAttributes"], + "members":{ + "DkimAttributes":{"shape":"DkimAttributes"} + } + }, + "GetIdentityNotificationAttributesRequest":{ + "type":"structure", + "required":["Identities"], + "members":{ + "Identities":{"shape":"IdentityList"} + } + }, + "GetIdentityNotificationAttributesResponse":{ + "type":"structure", + "required":["NotificationAttributes"], + "members":{ + "NotificationAttributes":{"shape":"NotificationAttributes"} + } + }, + "GetIdentityPoliciesRequest":{ + "type":"structure", + "required":[ + "Identity", + "PolicyNames" + ], + "members":{ + "Identity":{"shape":"Identity"}, + "PolicyNames":{"shape":"PolicyNameList"} + } + }, + "GetIdentityPoliciesResponse":{ + "type":"structure", + "required":["Policies"], + "members":{ + "Policies":{"shape":"PolicyMap"} + } + }, + "GetIdentityVerificationAttributesRequest":{ + "type":"structure", + "required":["Identities"], + "members":{ + "Identities":{"shape":"IdentityList"} + } + }, + "GetIdentityVerificationAttributesResponse":{ + "type":"structure", + "required":["VerificationAttributes"], + "members":{ + "VerificationAttributes":{"shape":"VerificationAttributes"} + } + }, + "GetSendQuotaResponse":{ + "type":"structure", + "members":{ + "Max24HourSend":{"shape":"Max24HourSend"}, + "MaxSendRate":{"shape":"MaxSendRate"}, + "SentLast24Hours":{"shape":"SentLast24Hours"} + } + }, + "GetSendStatisticsResponse":{ + "type":"structure", + "members":{ + "SendDataPoints":{"shape":"SendDataPointList"} + } + }, + "Identity":{"type":"string"}, + "IdentityDkimAttributes":{ + "type":"structure", + "required":[ + "DkimEnabled", + "DkimVerificationStatus" + ], + "members":{ + "DkimEnabled":{"shape":"Enabled"}, + "DkimVerificationStatus":{"shape":"VerificationStatus"}, + "DkimTokens":{"shape":"VerificationTokenList"} + } + }, + "IdentityList":{ + "type":"list", + "member":{"shape":"Identity"} + }, + "IdentityNotificationAttributes":{ + "type":"structure", + "required":[ + "BounceTopic", + "ComplaintTopic", + "DeliveryTopic", + "ForwardingEnabled" + ], + "members":{ + "BounceTopic":{"shape":"NotificationTopic"}, + "ComplaintTopic":{"shape":"NotificationTopic"}, + "DeliveryTopic":{"shape":"NotificationTopic"}, + "ForwardingEnabled":{"shape":"Enabled"} + } + }, + "IdentityType":{ + "type":"string", + "enum":[ + "EmailAddress", + "Domain" + ] + }, + "IdentityVerificationAttributes":{ + "type":"structure", + "required":["VerificationStatus"], + "members":{ + "VerificationStatus":{"shape":"VerificationStatus"}, + "VerificationToken":{"shape":"VerificationToken"} + } + }, + "InvalidPolicyException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidPolicy", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ListIdentitiesRequest":{ + "type":"structure", + "members":{ + "IdentityType":{"shape":"IdentityType"}, + "NextToken":{"shape":"NextToken"}, + "MaxItems":{"shape":"MaxItems"} + } + }, + "ListIdentitiesResponse":{ + "type":"structure", + "required":["Identities"], + "members":{ + "Identities":{"shape":"IdentityList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListIdentityPoliciesRequest":{ + "type":"structure", + "required":["Identity"], + "members":{ + "Identity":{"shape":"Identity"} + } + }, + "ListIdentityPoliciesResponse":{ + "type":"structure", + "required":["PolicyNames"], + "members":{ + "PolicyNames":{"shape":"PolicyNameList"} + } + }, + "ListVerifiedEmailAddressesResponse":{ + "type":"structure", + "members":{ + "VerifiedEmailAddresses":{"shape":"AddressList"} + } + }, + "Max24HourSend":{"type":"double"}, + "MaxItems":{"type":"integer"}, + "MaxSendRate":{"type":"double"}, + "Message":{ + "type":"structure", + "required":[ + "Subject", + "Body" + ], + "members":{ + "Subject":{"shape":"Content"}, + "Body":{"shape":"Body"} + } + }, + "MessageData":{"type":"string"}, + "MessageId":{"type":"string"}, + "MessageRejected":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"MessageRejected", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "NextToken":{"type":"string"}, + "NotificationAttributes":{ + "type":"map", + "key":{"shape":"Identity"}, + "value":{"shape":"IdentityNotificationAttributes"} + }, + "NotificationTopic":{"type":"string"}, + "NotificationType":{ + "type":"string", + "enum":[ + "Bounce", + "Complaint", + "Delivery" + ] + }, + "Policy":{ + "type":"string", + "min":1 + }, + "PolicyMap":{ + "type":"map", + "key":{"shape":"PolicyName"}, + "value":{"shape":"Policy"} + }, + "PolicyName":{ + "type":"string", + "min":1, + "max":64, + "pattern":"[^\\\\/\\?\\*\\s]+" + }, + "PolicyNameList":{ + "type":"list", + "member":{"shape":"PolicyName"} + }, + "PutIdentityPolicyRequest":{ + "type":"structure", + "required":[ + "Identity", + "PolicyName", + "Policy" + ], + "members":{ + "Identity":{"shape":"Identity"}, + "PolicyName":{"shape":"PolicyName"}, + "Policy":{"shape":"Policy"} + } + }, + "PutIdentityPolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "RawMessage":{ + "type":"structure", + "required":["Data"], + "members":{ + "Data":{"shape":"RawMessageData"} + } + }, + "RawMessageData":{"type":"blob"}, + "SendDataPoint":{ + "type":"structure", + "members":{ + "Timestamp":{"shape":"Timestamp"}, + "DeliveryAttempts":{"shape":"Counter"}, + "Bounces":{"shape":"Counter"}, + "Complaints":{"shape":"Counter"}, + "Rejects":{"shape":"Counter"} + } + }, + "SendDataPointList":{ + "type":"list", + "member":{"shape":"SendDataPoint"} + }, + "SendEmailRequest":{ + "type":"structure", + "required":[ + "Source", + "Destination", + "Message" + ], + "members":{ + "Source":{"shape":"Address"}, + "Destination":{"shape":"Destination"}, + "Message":{"shape":"Message"}, + "ReplyToAddresses":{"shape":"AddressList"}, + "ReturnPath":{"shape":"Address"}, + "SourceArn":{"shape":"AmazonResourceName"}, + "ReturnPathArn":{"shape":"AmazonResourceName"} + } + }, + "SendEmailResponse":{ + "type":"structure", + "required":["MessageId"], + "members":{ + "MessageId":{"shape":"MessageId"} + } + }, + "SendRawEmailRequest":{ + "type":"structure", + "required":["RawMessage"], + "members":{ + "Source":{"shape":"Address"}, + "Destinations":{"shape":"AddressList"}, + "RawMessage":{"shape":"RawMessage"}, + "FromArn":{"shape":"AmazonResourceName"}, + "SourceArn":{"shape":"AmazonResourceName"}, + "ReturnPathArn":{"shape":"AmazonResourceName"} + } + }, + "SendRawEmailResponse":{ + "type":"structure", + "required":["MessageId"], + "members":{ + "MessageId":{"shape":"MessageId"} + } + }, + "SentLast24Hours":{"type":"double"}, + "SetIdentityDkimEnabledRequest":{ + "type":"structure", + "required":[ + "Identity", + "DkimEnabled" + ], + "members":{ + "Identity":{"shape":"Identity"}, + "DkimEnabled":{"shape":"Enabled"} + } + }, + "SetIdentityDkimEnabledResponse":{ + "type":"structure", + "members":{ + } + }, + "SetIdentityFeedbackForwardingEnabledRequest":{ + "type":"structure", + "required":[ + "Identity", + "ForwardingEnabled" + ], + "members":{ + "Identity":{"shape":"Identity"}, + "ForwardingEnabled":{"shape":"Enabled"} + } + }, + "SetIdentityFeedbackForwardingEnabledResponse":{ + "type":"structure", + "members":{ + } + }, + "SetIdentityNotificationTopicRequest":{ + "type":"structure", + "required":[ + "Identity", + "NotificationType" + ], + "members":{ + "Identity":{"shape":"Identity"}, + "NotificationType":{"shape":"NotificationType"}, + "SnsTopic":{"shape":"NotificationTopic"} + } + }, + "SetIdentityNotificationTopicResponse":{ + "type":"structure", + "members":{ + } + }, + "Timestamp":{"type":"timestamp"}, + "VerificationAttributes":{ + "type":"map", + "key":{"shape":"Identity"}, + "value":{"shape":"IdentityVerificationAttributes"} + }, + "VerificationStatus":{ + "type":"string", + "enum":[ + "Pending", + "Success", + "Failed", + "TemporaryFailure", + "NotStarted" + ] + }, + "VerificationToken":{"type":"string"}, + "VerificationTokenList":{ + "type":"list", + "member":{"shape":"VerificationToken"} + }, + "VerifyDomainDkimRequest":{ + "type":"structure", + "required":["Domain"], + "members":{ + "Domain":{"shape":"Domain"} + } + }, + "VerifyDomainDkimResponse":{ + "type":"structure", + "required":["DkimTokens"], + "members":{ + "DkimTokens":{"shape":"VerificationTokenList"} + } + }, + "VerifyDomainIdentityRequest":{ + "type":"structure", + "required":["Domain"], + "members":{ + "Domain":{"shape":"Domain"} + } + }, + "VerifyDomainIdentityResponse":{ + "type":"structure", + "required":["VerificationToken"], + "members":{ + "VerificationToken":{"shape":"VerificationToken"} + } + }, + "VerifyEmailAddressRequest":{ + "type":"structure", + "required":["EmailAddress"], + "members":{ + "EmailAddress":{"shape":"Address"} + } + }, + "VerifyEmailIdentityRequest":{ + "type":"structure", + "required":["EmailAddress"], + "members":{ + "EmailAddress":{"shape":"Address"} + } + }, + "VerifyEmailIdentityResponse":{ + "type":"structure", + "members":{ + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/docs-2.json new file mode 100644 index 000000000..3c489efda --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/docs-2.json @@ -0,0 +1,533 @@ +{ + "version": "2.0", + "operations": { + "DeleteIdentity": "

Deletes the specified identity (email address or domain) from the list of verified identities.

This action is throttled at one request per second.

", + "DeleteIdentityPolicy": "

Deletes the specified sending authorization policy for the given identity (email address or domain). This API returns successfully even if a policy with the specified name does not exist.

This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", + "DeleteVerifiedEmailAddress": "

Deletes the specified email address from the list of verified addresses.

The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012 release of Domain Verification. The DeleteIdentity action is now preferred.

This action is throttled at one request per second.

", + "GetIdentityDkimAttributes": "

Returns the current status of Easy DKIM signing for an entity. For domain name identities, this action also returns the DKIM tokens that are required for Easy DKIM signing, and whether Amazon SES has successfully verified that these tokens have been published.

This action takes a list of identities as input and returns the following information for each:

  • Whether Easy DKIM signing is enabled or disabled.
  • A set of DKIM tokens that represent the identity. If the identity is an email address, the tokens represent the domain of that address.
  • Whether Amazon SES has successfully verified the DKIM tokens published in the domain's DNS. This information is only returned for domain name identities, not for email addresses.

This action is throttled at one request per second and can only get DKIM attributes for up to 100 identities at a time.

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

", + "GetIdentityNotificationAttributes": "

Given a list of verified identities (email addresses and/or domains), returns a structure describing identity notification attributes.

This action is throttled at one request per second and can only get notification attributes for up to 100 identities at a time.

For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

", + "GetIdentityPolicies": "

Returns the requested sending authorization policies for the given identity (email address or domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time.

This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", + "GetIdentityVerificationAttributes": "

Given a list of identities (email addresses and/or domains), returns the verification status and (for domain identities) the verification token for each identity.

This action is throttled at one request per second and can only get verification attributes for up to 100 identities at a time.

", + "GetSendQuota": "

Returns the user's current sending limits.

This action is throttled at one request per second.

", + "GetSendStatistics": "

Returns the user's sending statistics. The result is a list of data points, representing the last two weeks of sending activity.

Each data point in the list contains statistics for a 15-minute interval.

This action is throttled at one request per second.

", + "ListIdentities": "

Returns a list containing all of the identities (email addresses and domains) for a specific AWS Account, regardless of verification status.

This action is throttled at one request per second.

", + "ListIdentityPolicies": "

Returns a list of sending authorization policies that are attached to the given identity (email address or domain). This API returns only a list. If you want the actual policy content, you can use GetIdentityPolicies.

This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", + "ListVerifiedEmailAddresses": "

Returns a list containing all of the email addresses that have been verified.

The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 release of Domain Verification. The ListIdentities action is now preferred.

This action is throttled at one request per second.

", + "PutIdentityPolicy": "

Adds or updates a sending authorization policy for the specified identity (email address or domain).

This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

", + "SendEmail": "

Composes an email message based on input data, and then immediately queues the message for sending.

There are several important points to know about SendEmail:

  • You can only send email from verified email addresses and domains; otherwise, you will get an \"Email address not verified\" error. If your account is still in the Amazon SES sandbox, you must also verify every recipient email address except for the recipients provided by the Amazon SES mailbox simulator. For more information, go to the Amazon SES Developer Guide.
  • The total size of the message cannot exceed 10 MB. This includes any attachments that are part of the message.
  • Amazon SES has a limit on the total number of recipients per message. The combined number of To:, CC: and BCC: email addresses cannot exceed 50. If you need to send an email message to a larger audience, you can divide your recipient list into groups of 50 or fewer, and then call Amazon SES repeatedly to send the message to each group.
  • For every message that you send, the total number of recipients (To:, CC: and BCC:) is counted against your sending quota - the maximum number of emails you can send in a 24-hour period. For information about your sending quota, go to the Amazon SES Developer Guide.
", + "SendRawEmail": "

Sends an email message, with header and content specified by the client. The SendRawEmail action is useful for sending multipart MIME emails. The raw text of the message must comply with Internet email standards; otherwise, the message cannot be sent.

There are several important points to know about SendRawEmail:

  • You can only send email from verified email addresses and domains; otherwise, you will get an \"Email address not verified\" error. If your account is still in the Amazon SES sandbox, you must also verify every recipient email address except for the recipients provided by the Amazon SES mailbox simulator. For more information, go to the Amazon SES Developer Guide.
  • The total size of the message cannot exceed 10 MB. This includes any attachments that are part of the message.
  • Amazon SES has a limit on the total number of recipients per message. The combined number of To:, CC: and BCC: email addresses cannot exceed 50. If you need to send an email message to a larger audience, you can divide your recipient list into groups of 50 or fewer, and then call Amazon SES repeatedly to send the message to each group.
  • The To:, CC:, and BCC: headers in the raw message can contain a group list. Note that each recipient in a group list counts towards the 50-recipient limit.
  • For every message that you send, the total number of recipients (To:, CC: and BCC:) is counted against your sending quota - the maximum number of emails you can send in a 24-hour period. For information about your sending quota, go to the Amazon SES Developer Guide.
  • If you are using sending authorization to send on behalf of another user, SendRawEmail enables you to specify the cross-account identity for the email's \"Source,\" \"From,\" and \"Return-Path\" parameters in one of two ways: you can pass optional parameters SourceArn, FromArn, and/or ReturnPathArn to the API, or you can include the following X-headers in the header of your raw email:
    • X-SES-SOURCE-ARN
    • X-SES-FROM-ARN
    • X-SES-RETURN-PATH-ARN
    Do not include these X-headers in the DKIM signature, because they are removed by Amazon SES before sending the email. For the most common sending authorization use case, we recommend that you specify the SourceIdentityArn and do not specify either the FromIdentityArn or ReturnPathIdentityArn. (The same note applies to the corresponding X-headers.) If you only specify the SourceIdentityArn, Amazon SES will simply set the \"From\" address and the \"Return Path\" address to the identity specified in SourceIdentityArn. For more information about sending authorization, see the Amazon SES Developer Guide.
", + "SetIdentityDkimEnabled": "

Enables or disables Easy DKIM signing of email sent from an identity:

  • If Easy DKIM signing is enabled for a domain name identity (e.g., example.com), then Amazon SES will DKIM-sign all email sent by addresses under that domain name (e.g., user@example.com).
  • If Easy DKIM signing is enabled for an email address, then Amazon SES will DKIM-sign all email sent by that email address.

For email addresses (e.g., user@example.com), you can only enable Easy DKIM signing if the corresponding domain (e.g., example.com) has been set up for Easy DKIM using the AWS Console or the VerifyDomainDkim action.

This action is throttled at one request per second.

For more information about Easy DKIM signing, go to the Amazon SES Developer Guide.

", + "SetIdentityFeedbackForwardingEnabled": "

Given an identity (email address or domain), enables or disables whether Amazon SES forwards bounce and complaint notifications as email. Feedback forwarding can only be disabled when Amazon Simple Notification Service (Amazon SNS) topics are specified for both bounces and complaints.

Feedback forwarding does not apply to delivery notifications. Delivery notifications are only available through Amazon SNS.

This action is throttled at one request per second.

For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

", + "SetIdentityNotificationTopic": "

Given an identity (email address or domain), sets the Amazon Simple Notification Service (Amazon SNS) topic to which Amazon SES will publish bounce, complaint, and/or delivery notifications for emails sent with that identity as the Source.

Unless feedback forwarding is enabled, you must specify Amazon SNS topics for bounce and complaint notifications. For more information, see SetIdentityFeedbackForwardingEnabled.

This action is throttled at one request per second.

For more information about feedback notification, see the Amazon SES Developer Guide.

", + "VerifyDomainDkim": "

Returns a set of DKIM tokens for a domain. DKIM tokens are character strings that represent your domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain.

This action is throttled at one request per second.

To enable or disable Easy DKIM signing for a domain, use the SetIdentityDkimEnabled action.

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

", + "VerifyDomainIdentity": "

Verifies a domain.

This action is throttled at one request per second.

", + "VerifyEmailAddress": "

Verifies an email address. This action causes a confirmation email message to be sent to the specified address.

The VerifyEmailAddress action is deprecated as of the May 15, 2012 release of Domain Verification. The VerifyEmailIdentity action is now preferred.

This action is throttled at one request per second.

", + "VerifyEmailIdentity": "

Verifies an email address. This action causes a confirmation email message to be sent to the specified address.

This action is throttled at one request per second.

" + }, + "service": "Amazon Simple Email Service

This is the API Reference for Amazon Simple Email Service (Amazon SES). This documentation is intended to be used in conjunction with the Amazon SES Developer Guide.

For a list of Amazon SES endpoints to use in service requests, see Regions and Amazon SES in the Amazon SES Developer Guide. ", + "shapes": { + "Address": { + "base": null, + "refs": { + "AddressList$member": null, + "DeleteVerifiedEmailAddressRequest$EmailAddress": "

An email address to be removed from the list of verified addresses.

", + "SendEmailRequest$Source": "

The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide.

If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the SourceArn parameter. For more information about sending authorization, see the Amazon SES Developer Guide.

In all cases, the email address must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. For more information, see RFC 2047.

", + "SendEmailRequest$ReturnPath": "

The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the ReturnPath parameter. The ReturnPath parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.

", + "SendRawEmailRequest$Source": "

The identity's email address. If you do not provide a value for this parameter, you must specify a \"From\" address in the raw text of the message. (You can also specify both.)

By default, the string must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. For more information, see RFC 2047.

If you specify the Source parameter and have feedback forwarding enabled, then bounces and complaints will be sent to this email address. This takes precedence over any Return-Path header that you might include in the raw text of the message. ", + "VerifyEmailAddressRequest$EmailAddress": "

The email address to be verified.

", + "VerifyEmailIdentityRequest$EmailAddress": "

The email address to be verified.

" + } + }, + "AddressList": { + "base": null, + "refs": { + "Destination$ToAddresses": "

The To: field(s) of the message.

", + "Destination$CcAddresses": "

The CC: field(s) of the message.

", + "Destination$BccAddresses": "

The BCC: field(s) of the message.

", + "ListVerifiedEmailAddressesResponse$VerifiedEmailAddresses": "

A list of email addresses that have been verified.

", + "SendEmailRequest$ReplyToAddresses": "

The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.

", + "SendRawEmailRequest$Destinations": "

A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.

" + } + }, + "AmazonResourceName": { + "base": null, + "refs": { + "SendEmailRequest$SourceArn": "

This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter.

For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com.

For more information about sending authorization, see the Amazon SES Developer Guide.

", + "SendEmailRequest$ReturnPathArn": "

This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter.

For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com.

For more information about sending authorization, see the Amazon SES Developer Guide.

", + "SendRawEmailRequest$FromArn": "

This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to specify a particular \"From\" address in the header of the raw email.

Instead of using this parameter, you can use the X-header X-SES-FROM-ARN in the raw message of the email. If you use both the FromArn parameter and the corresponding X-header, Amazon SES uses the value of the FromArn parameter.

For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide. ", + "SendRawEmailRequest$SourceArn": "

This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter.

For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com.

Instead of using this parameter, you can use the X-header X-SES-SOURCE-ARN in the raw message of the email. If you use both the SourceArn parameter and the corresponding X-header, Amazon SES uses the value of the SourceArn parameter.

For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide. ", + "SendRawEmailRequest$ReturnPathArn": "

This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter.

For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com.

Instead of using this parameter, you can use the X-header X-SES-RETURN-PATH-ARN in the raw message of the email. If you use both the ReturnPathArn parameter and the corresponding X-header, Amazon SES uses the value of the ReturnPathArn parameter.

For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide. " + } + }, + "Body": { + "base": "

Represents the body of the message. You can specify text, HTML, or both. If you use both, then the message should display correctly in the widest variety of email clients.

", + "refs": { + "Message$Body": "

The message body.

" + } + }, + "Charset": { + "base": null, + "refs": { + "Content$Charset": "

The character set of the content.

" + } + }, + "Content": { + "base": "

Represents textual data, plus an optional character set specification.

By default, the text must be 7-bit ASCII, due to the constraints of the SMTP protocol. If the text must contain any other characters, then you must also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.

", + "refs": { + "Body$Text": "

The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).

", + "Body$Html": "

The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.

", + "Message$Subject": "

The subject of the message: A short summary of the content, which will appear in the recipient's inbox.

" + } + }, + "Counter": { + "base": null, + "refs": { + "SendDataPoint$DeliveryAttempts": "

Number of emails that have been enqueued for sending.

", + "SendDataPoint$Bounces": "

Number of emails that have bounced.

", + "SendDataPoint$Complaints": "

Number of unwanted emails that were rejected by recipients.

", + "SendDataPoint$Rejects": "

Number of emails rejected by Amazon SES.

" + } + }, + "DeleteIdentityPolicyRequest": { + "base": "

Represents a request instructing the service to delete an authorization policy applying to an identity.

This request succeeds regardless of whether the specified policy exists.

", + "refs": { + } + }, + "DeleteIdentityPolicyResponse": { + "base": "

An empty element. Receiving this element indicates that the request completed successfully.

", + "refs": { + } + }, + "DeleteIdentityRequest": { + "base": "

Represents a request instructing the service to delete an identity from the list of identities for the AWS Account.

", + "refs": { + } + }, + "DeleteIdentityResponse": { + "base": "

An empty element. Receiving this element indicates that the request completed successfully.

", + "refs": { + } + }, + "DeleteVerifiedEmailAddressRequest": { + "base": "

Represents a request instructing the service to delete an address from the list of verified email addresses.

", + "refs": { + } + }, + "Destination": { + "base": "

Represents the destination of the message, consisting of To:, CC:, and BCC: fields.

By default, the string must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. For more information, see RFC 2047.

", + "refs": { + "SendEmailRequest$Destination": "

The destination for this email, composed of To:, CC:, and BCC: fields.

" + } + }, + "DkimAttributes": { + "base": null, + "refs": { + "GetIdentityDkimAttributesResponse$DkimAttributes": "

The DKIM attributes for an email address or a domain.

" + } + }, + "Domain": { + "base": null, + "refs": { + "VerifyDomainDkimRequest$Domain": "

The name of the domain to be verified for Easy DKIM signing.

", + "VerifyDomainIdentityRequest$Domain": "

The domain to be verified.

" + } + }, + "Enabled": { + "base": null, + "refs": { + "IdentityDkimAttributes$DkimEnabled": "

True if DKIM signing is enabled for email sent from the identity; false otherwise.

", + "IdentityNotificationAttributes$ForwardingEnabled": "

Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.

", + "SetIdentityDkimEnabledRequest$DkimEnabled": "

Sets whether DKIM signing is enabled for an identity. Set to true to enable DKIM signing for this identity; false to disable it.

", + "SetIdentityFeedbackForwardingEnabledRequest$ForwardingEnabled": "

Sets whether Amazon SES will forward bounce and complaint notifications as email. true specifies that Amazon SES will forward bounce and complaint notifications as email, in addition to any Amazon SNS topic publishing otherwise specified. false specifies that Amazon SES will publish bounce and complaint notifications only through Amazon SNS. This value can only be set to false when Amazon SNS topics are set for both Bounce and Complaint notification types.

" + } + }, + "GetIdentityDkimAttributesRequest": { + "base": "

Given a list of verified identities, describes their DKIM attributes. The DKIM attributes of an email address identity includes whether DKIM signing is individually enabled or disabled for that address. The DKIM attributes of a domain name identity includes whether DKIM signing is enabled, as well as the DNS records (tokens) that must remain published in the domain name's DNS.

", + "refs": { + } + }, + "GetIdentityDkimAttributesResponse": { + "base": "

Represents a list of all the DKIM attributes for the specified identity.

", + "refs": { + } + }, + "GetIdentityNotificationAttributesRequest": { + "base": null, + "refs": { + } + }, + "GetIdentityNotificationAttributesResponse": { + "base": "

Describes whether an identity has Amazon Simple Notification Service (Amazon SNS) topics set for bounce, complaint, and/or delivery notifications, and specifies whether feedback forwarding is enabled for bounce and complaint notifications.

", + "refs": { + } + }, + "GetIdentityPoliciesRequest": { + "base": "

Represents a request instructing the service to retrieve the text of a list of authorization policies applying to an identity.

", + "refs": { + } + }, + "GetIdentityPoliciesResponse": { + "base": "

Represents a map of policy names to policies returned from a successful GetIdentityPolicies request.

", + "refs": { + } + }, + "GetIdentityVerificationAttributesRequest": { + "base": "

Represents a request instructing the service to provide the verification attributes for a list of identities.

", + "refs": { + } + }, + "GetIdentityVerificationAttributesResponse": { + "base": "

Represents the verification attributes for a list of identities.

", + "refs": { + } + }, + "GetSendQuotaResponse": { + "base": "

Represents the user's current activity limits returned from a successful GetSendQuota request.

", + "refs": { + } + }, + "GetSendStatisticsResponse": { + "base": "

Represents a list of SendDataPoint items returned from a successful GetSendStatistics request. This list contains aggregated data from the previous two weeks of sending activity.

", + "refs": { + } + }, + "Identity": { + "base": null, + "refs": { + "DeleteIdentityPolicyRequest$Identity": "

The identity that is associated with the policy that you want to delete. You can specify the identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

To successfully call this API, you must own the identity.

", + "DeleteIdentityRequest$Identity": "

The identity to be removed from the list of identities for the AWS Account.

", + "DkimAttributes$key": null, + "GetIdentityPoliciesRequest$Identity": "

The identity for which the policies will be retrieved. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

To successfully call this API, you must own the identity.

", + "IdentityList$member": null, + "ListIdentityPoliciesRequest$Identity": "

The identity that is associated with the policy for which the policies will be listed. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

To successfully call this API, you must own the identity.

", + "NotificationAttributes$key": null, + "PutIdentityPolicyRequest$Identity": "

The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

To successfully call this API, you must own the identity.

", + "SetIdentityDkimEnabledRequest$Identity": "

The identity for which DKIM signing should be enabled or disabled.

", + "SetIdentityFeedbackForwardingEnabledRequest$Identity": "

The identity for which to set bounce and complaint notification forwarding. Examples: user@example.com, example.com.

", + "SetIdentityNotificationTopicRequest$Identity": "

The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

", + "VerificationAttributes$key": null + } + }, + "IdentityDkimAttributes": { + "base": "

Represents the DKIM attributes of a verified email address or a domain.

", + "refs": { + "DkimAttributes$value": null + } + }, + "IdentityList": { + "base": null, + "refs": { + "GetIdentityDkimAttributesRequest$Identities": "

A list of one or more verified identities - email addresses, domains, or both.

", + "GetIdentityNotificationAttributesRequest$Identities": "

A list of one or more identities. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

", + "GetIdentityVerificationAttributesRequest$Identities": "

A list of identities.

", + "ListIdentitiesResponse$Identities": "

A list of identities.

" + } + }, + "IdentityNotificationAttributes": { + "base": "

Represents the notification attributes of an identity, including whether an identity has Amazon Simple Notification Service (Amazon SNS) topics set for bounce, complaint, and/or delivery notifications, and whether feedback forwarding is enabled for bounce and complaint notifications.

", + "refs": { + "NotificationAttributes$value": null + } + }, + "IdentityType": { + "base": null, + "refs": { + "ListIdentitiesRequest$IdentityType": "

The type of the identities to list. Possible values are \"EmailAddress\" and \"Domain\". If this parameter is omitted, then all identities will be listed.

" + } + }, + "IdentityVerificationAttributes": { + "base": "

Represents the verification attributes of a single identity.

", + "refs": { + "VerificationAttributes$value": null + } + }, + "InvalidPolicyException": { + "base": "Indicates that the provided policy is invalid. Check the error stack for more information about what caused the error.", + "refs": { + } + }, + "ListIdentitiesRequest": { + "base": "

Represents a request instructing the service to list all identities for the AWS Account.

", + "refs": { + } + }, + "ListIdentitiesResponse": { + "base": "

Represents a list of all verified identities for the AWS Account.

", + "refs": { + } + }, + "ListIdentityPoliciesRequest": { + "base": "

Represents a request instructing the service to list all authorization policies, by name, applying to an identity.

", + "refs": { + } + }, + "ListIdentityPoliciesResponse": { + "base": "

Represents a list of policy names returned from a successful ListIdentityPolicies request.

", + "refs": { + } + }, + "ListVerifiedEmailAddressesResponse": { + "base": "

Represents a list of all the email addresses verified for the current user.

", + "refs": { + } + }, + "Max24HourSend": { + "base": null, + "refs": { + "GetSendQuotaResponse$Max24HourSend": "

The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.

" + } + }, + "MaxItems": { + "base": null, + "refs": { + "ListIdentitiesRequest$MaxItems": "

The maximum number of identities per page. Possible values are 1-1000 inclusive.

" + } + }, + "MaxSendRate": { + "base": null, + "refs": { + "GetSendQuotaResponse$MaxSendRate": "

The maximum number of emails that Amazon SES can accept from the user's account per second.

The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate." + } + }, + "Message": { + "base": "

Represents the message to be sent, composed of a subject and a body.

", + "refs": { + "SendEmailRequest$Message": "

The message to be sent.

" + } + }, + "MessageData": { + "base": null, + "refs": { + "Content$Data": "

The textual data of the content.

" + } + }, + "MessageId": { + "base": null, + "refs": { + "SendEmailResponse$MessageId": "

The unique message identifier returned from the SendEmail action.

", + "SendRawEmailResponse$MessageId": "

The unique message identifier returned from the SendRawEmail action.

" + } + }, + "MessageRejected": { + "base": "Indicates that the action failed, and the message could not be sent. Check the error stack for more information about what caused the error.", + "refs": { + } + }, + "NextToken": { + "base": null, + "refs": { + "ListIdentitiesRequest$NextToken": "

The token to use for pagination.

", + "ListIdentitiesResponse$NextToken": "

The token used for pagination.

" + } + }, + "NotificationAttributes": { + "base": null, + "refs": { + "GetIdentityNotificationAttributesResponse$NotificationAttributes": "

A map of Identity to IdentityNotificationAttributes.

" + } + }, + "NotificationTopic": { + "base": null, + "refs": { + "IdentityNotificationAttributes$BounceTopic": "

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish bounce notifications.

", + "IdentityNotificationAttributes$ComplaintTopic": "

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish complaint notifications.

", + "IdentityNotificationAttributes$DeliveryTopic": "

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish delivery notifications.

", + "SetIdentityNotificationTopicRequest$SnsTopic": "

The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, SnsTopic is cleared and publishing is disabled.

" + } + }, + "NotificationType": { + "base": null, + "refs": { + "SetIdentityNotificationTopicRequest$NotificationType": "

The type of notifications that will be published to the specified Amazon SNS topic.

" + } + }, + "Policy": { + "base": "JSON representation of a valid policy.", + "refs": { + "PolicyMap$value": null, + "PutIdentityPolicyRequest$Policy": "

The text of the policy in JSON format. The policy cannot exceed 4 KB.

For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

" + } + }, + "PolicyMap": { + "base": null, + "refs": { + "GetIdentityPoliciesResponse$Policies": "

A map of policy names to policies.

" + } + }, + "PolicyName": { + "base": "name of the policy.", + "refs": { + "DeleteIdentityPolicyRequest$PolicyName": "

The name of the policy to be deleted.

", + "PolicyMap$key": null, + "PolicyNameList$member": null, + "PutIdentityPolicyRequest$PolicyName": "

The name of the policy.

The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

" + } + }, + "PolicyNameList": { + "base": null, + "refs": { + "GetIdentityPoliciesRequest$PolicyNames": "

A list of the names of policies to be retrieved. You can retrieve a maximum of 20 policies at a time. If you do not know the names of the policies that are attached to the identity, you can use ListIdentityPolicies.

", + "ListIdentityPoliciesResponse$PolicyNames": "

A list of names of policies that apply to the specified identity.

" + } + }, + "PutIdentityPolicyRequest": { + "base": "

Represents a request instructing the service to apply an authorization policy to an identity.

", + "refs": { + } + }, + "PutIdentityPolicyResponse": { + "base": "

An empty element. Receiving this element indicates that the request completed successfully.

", + "refs": { + } + }, + "RawMessage": { + "base": "

Represents the raw data of the message.

", + "refs": { + "SendRawEmailRequest$RawMessage": "

The raw text of the message. The client is responsible for ensuring the following:

  • Message must contain a header and a body, separated by a blank line.
  • All required header fields must be present.
  • Each part of a multipart MIME message must be formatted properly.
  • MIME content types must be among those supported by Amazon SES. For more information, go to the Amazon SES Developer Guide.
  • Content must be base64-encoded, if MIME requires it.

" + } + }, + "RawMessageData": { + "base": null, + "refs": { + "RawMessage$Data": "

The raw data of the message. The client must ensure that the message format complies with Internet email standards regarding email header fields, MIME types, MIME encoding, and base64 encoding (if necessary).

The To:, CC:, and BCC: headers in the raw message can contain a group list.

If you are using SendRawEmail with sending authorization, you can include X-headers in the raw message to specify the \"Source,\" \"From,\" and \"Return-Path\" addresses. For more information, see the documentation for SendRawEmail.

Do not include these X-headers in the DKIM signature, because they are removed by Amazon SES before sending the email.

For more information, go to the Amazon SES Developer Guide.

" + } + }, + "SendDataPoint": { + "base": "

Represents sending statistics data. Each SendDataPoint contains statistics for a 15-minute period of sending activity.

", + "refs": { + "SendDataPointList$member": null + } + }, + "SendDataPointList": { + "base": null, + "refs": { + "GetSendStatisticsResponse$SendDataPoints": "

A list of data points, each of which represents 15 minutes of activity.

" + } + }, + "SendEmailRequest": { + "base": "

Represents a request instructing the service to send a single email message.

This datatype can be used in application code to compose a message consisting of source, destination, message, reply-to, and return-path parts. This object can then be sent using the SendEmail action.

", + "refs": { + } + }, + "SendEmailResponse": { + "base": "

Represents a unique message ID returned from a successful SendEmail request.

", + "refs": { + } + }, + "SendRawEmailRequest": { + "base": "

Represents a request instructing the service to send a raw email message.

This datatype can be used in application code to compose a message consisting of source, destination, and raw message text. This object can then be sent using the SendRawEmail action.

", + "refs": { + } + }, + "SendRawEmailResponse": { + "base": "

Represents a unique message ID returned from a successful SendRawEmail request.

", + "refs": { + } + }, + "SentLast24Hours": { + "base": null, + "refs": { + "GetSendQuotaResponse$SentLast24Hours": "

The number of emails sent during the previous 24 hours.

" + } + }, + "SetIdentityDkimEnabledRequest": { + "base": "

Represents a request instructing the service to enable or disable DKIM signing for an identity.

", + "refs": { + } + }, + "SetIdentityDkimEnabledResponse": { + "base": "

An empty element. Receiving this element indicates that the request completed successfully.

", + "refs": { + } + }, + "SetIdentityFeedbackForwardingEnabledRequest": { + "base": null, + "refs": { + } + }, + "SetIdentityFeedbackForwardingEnabledResponse": { + "base": "

An empty element. Receiving this element indicates that the request completed successfully.

", + "refs": { + } + }, + "SetIdentityNotificationTopicRequest": { + "base": "

Represents a request to set or clear an identity's notification topic.

", + "refs": { + } + }, + "SetIdentityNotificationTopicResponse": { + "base": "

An empty element. Receiving this element indicates that the request completed successfully.

", + "refs": { + } + }, + "Timestamp": { + "base": null, + "refs": { + "SendDataPoint$Timestamp": "

Time of the data point.

" + } + }, + "VerificationAttributes": { + "base": null, + "refs": { + "GetIdentityVerificationAttributesResponse$VerificationAttributes": "

A map of Identities to IdentityVerificationAttributes objects.

" + } + }, + "VerificationStatus": { + "base": null, + "refs": { + "IdentityDkimAttributes$DkimVerificationStatus": "

Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)

", + "IdentityVerificationAttributes$VerificationStatus": "

The verification status of the identity: \"Pending\", \"Success\", \"Failed\", or \"TemporaryFailure\".

" + } + }, + "VerificationToken": { + "base": null, + "refs": { + "IdentityVerificationAttributes$VerificationToken": "

The verification token for a domain identity. Null for email address identities.

", + "VerificationTokenList$member": null, + "VerifyDomainIdentityResponse$VerificationToken": "

A TXT record that must be placed in the DNS settings for the domain, in order to complete domain verification.

" + } + }, + "VerificationTokenList": { + "base": null, + "refs": { + "IdentityDkimAttributes$DkimTokens": "

A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

", + "VerifyDomainDkimResponse$DkimTokens": "

A set of character strings that represent the domain's identity. If the identity is an email address, the tokens represent the domain of that address.

Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign emails originating from that domain.

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

" + } + }, + "VerifyDomainDkimRequest": { + "base": "

Represents a request instructing the service to begin DKIM verification for a domain.

", + "refs": { + } + }, + "VerifyDomainDkimResponse": { + "base": "

Represents the DNS records that must be published in the domain name's DNS to complete DKIM setup.

", + "refs": { + } + }, + "VerifyDomainIdentityRequest": { + "base": "

Represents a request instructing the service to begin domain verification.

", + "refs": { + } + }, + "VerifyDomainIdentityResponse": { + "base": "

Represents a token used for domain ownership verification.

", + "refs": { + } + }, + "VerifyEmailAddressRequest": { + "base": "

Represents a request instructing the service to begin email address verification.

", + "refs": { + } + }, + "VerifyEmailIdentityRequest": { + "base": "

Represents a request instructing the service to begin email address verification.

", + "refs": { + } + }, + "VerifyEmailIdentityResponse": { + "base": "

An empty element. Receiving this element indicates that the request completed successfully.

", + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/email/2010-12-01/waiters-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/glacier/2012-06-01/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/glacier/2012-06-01/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/glacier/2012-06-01/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/glacier/2012-06-01/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/glacier/2012-06-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/glacier/2012-06-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/glacier/2012-06-01/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/glacier/2012-06-01/waiters-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/api-2.json similarity index 57% rename from vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/api-2.json index a118fe568..2a565205d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/api-2.json @@ -4,11 +4,11 @@ "apiVersion":"2010-05-08", "endpointPrefix":"iam", "globalEndpoint":"iam.amazonaws.com", - "protocol":"query", "serviceAbbreviation":"IAM", "serviceFullName":"AWS Identity and Access Management", "signatureVersion":"v4", - "xmlNamespace":"https://iam.amazonaws.com/doc/2010-05-08/" + "xmlNamespace":"https://iam.amazonaws.com/doc/2010-05-08/", + "protocol":"query" }, "operations":{ "AddClientIDToOpenIDConnectProvider":{ @@ -19,10 +19,41 @@ }, "input":{"shape":"AddClientIDToOpenIDConnectProviderRequest"}, "errors":[ - {"shape":"InvalidInputException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "AddRoleToInstanceProfile":{ @@ -33,10 +64,41 @@ }, "input":{"shape":"AddRoleToInstanceProfileRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "AddUserToGroup":{ @@ -47,9 +109,32 @@ }, "input":{"shape":"AddUserToGroupRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "AttachGroupPolicy":{ @@ -60,10 +145,41 @@ }, "input":{"shape":"AttachGroupPolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "AttachRolePolicy":{ @@ -74,10 +190,41 @@ }, "input":{"shape":"AttachRolePolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "AttachUserPolicy":{ @@ -88,10 +235,41 @@ }, "input":{"shape":"AttachUserPolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ChangePassword":{ @@ -102,12 +280,59 @@ }, "input":{"shape":"ChangePasswordRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidUserTypeException"}, - {"shape":"LimitExceededException"}, - {"shape":"EntityTemporarilyUnmodifiableException"}, - {"shape":"PasswordPolicyViolationException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidUserTypeException", + "error":{ + "code":"InvalidUserType", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityTemporarilyUnmodifiableException", + "error":{ + "code":"EntityTemporarilyUnmodifiable", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"PasswordPolicyViolationException", + "error":{ + "code":"PasswordPolicyViolation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreateAccessKey":{ @@ -122,9 +347,32 @@ "resultWrapper":"CreateAccessKeyResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreateAccountAlias":{ @@ -135,9 +383,32 @@ }, "input":{"shape":"CreateAccountAliasRequest"}, "errors":[ - {"shape":"EntityAlreadyExistsException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreateGroup":{ @@ -152,10 +423,41 @@ "resultWrapper":"CreateGroupResult" }, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreateInstanceProfile":{ @@ -170,9 +472,32 @@ "resultWrapper":"CreateInstanceProfileResult" }, "errors":[ - {"shape":"EntityAlreadyExistsException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreateLoginProfile":{ @@ -187,11 +512,50 @@ "resultWrapper":"CreateLoginProfileResult" }, "errors":[ - {"shape":"EntityAlreadyExistsException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"PasswordPolicyViolationException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"PasswordPolicyViolationException", + "error":{ + "code":"PasswordPolicyViolation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreateOpenIDConnectProvider":{ @@ -206,10 +570,41 @@ "resultWrapper":"CreateOpenIDConnectProviderResult" }, "errors":[ - {"shape":"InvalidInputException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreatePolicy":{ @@ -224,11 +619,50 @@ "resultWrapper":"CreatePolicyResult" }, "errors":[ - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"ServiceFailureException"} + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreatePolicyVersion":{ @@ -243,11 +677,50 @@ "resultWrapper":"CreatePolicyVersionResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreateRole":{ @@ -262,10 +735,41 @@ "resultWrapper":"CreateRoleResult" }, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreateSAMLProvider":{ @@ -280,10 +784,41 @@ "resultWrapper":"CreateSAMLProviderResult" }, "errors":[ - {"shape":"InvalidInputException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreateUser":{ @@ -298,10 +833,41 @@ "resultWrapper":"CreateUserResult" }, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "CreateVirtualMFADevice":{ @@ -316,9 +882,32 @@ "resultWrapper":"CreateVirtualMFADeviceResult" }, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeactivateMFADevice":{ @@ -329,10 +918,41 @@ }, "input":{"shape":"DeactivateMFADeviceRequest"}, "errors":[ - {"shape":"EntityTemporarilyUnmodifiableException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"EntityTemporarilyUnmodifiableException", + "error":{ + "code":"EntityTemporarilyUnmodifiable", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteAccessKey":{ @@ -343,9 +963,32 @@ }, "input":{"shape":"DeleteAccessKeyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteAccountAlias":{ @@ -356,9 +999,32 @@ }, "input":{"shape":"DeleteAccountAliasRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteAccountPasswordPolicy":{ @@ -368,9 +1034,32 @@ "requestUri":"/" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteGroup":{ @@ -381,10 +1070,41 @@ }, "input":{"shape":"DeleteGroupRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"DeleteConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DeleteConflictException", + "error":{ + "code":"DeleteConflict", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteGroupPolicy":{ @@ -395,9 +1115,32 @@ }, "input":{"shape":"DeleteGroupPolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteInstanceProfile":{ @@ -408,10 +1151,41 @@ }, "input":{"shape":"DeleteInstanceProfileRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"DeleteConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DeleteConflictException", + "error":{ + "code":"DeleteConflict", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteLoginProfile":{ @@ -422,10 +1196,41 @@ }, "input":{"shape":"DeleteLoginProfileRequest"}, "errors":[ - {"shape":"EntityTemporarilyUnmodifiableException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"EntityTemporarilyUnmodifiableException", + "error":{ + "code":"EntityTemporarilyUnmodifiable", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteOpenIDConnectProvider":{ @@ -436,9 +1241,32 @@ }, "input":{"shape":"DeleteOpenIDConnectProviderRequest"}, "errors":[ - {"shape":"InvalidInputException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeletePolicy":{ @@ -449,11 +1277,50 @@ }, "input":{"shape":"DeletePolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidInputException"}, - {"shape":"DeleteConflictException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DeleteConflictException", + "error":{ + "code":"DeleteConflict", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeletePolicyVersion":{ @@ -464,11 +1331,50 @@ }, "input":{"shape":"DeletePolicyVersionRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidInputException"}, - {"shape":"DeleteConflictException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DeleteConflictException", + "error":{ + "code":"DeleteConflict", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteRole":{ @@ -479,10 +1385,41 @@ }, "input":{"shape":"DeleteRoleRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"DeleteConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DeleteConflictException", + "error":{ + "code":"DeleteConflict", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteRolePolicy":{ @@ -493,9 +1430,32 @@ }, "input":{"shape":"DeleteRolePolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteSAMLProvider":{ @@ -506,10 +1466,41 @@ }, "input":{"shape":"DeleteSAMLProviderRequest"}, "errors":[ - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteSSHPublicKey":{ @@ -520,7 +1511,15 @@ }, "input":{"shape":"DeleteSSHPublicKeyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DeleteServerCertificate":{ @@ -531,10 +1530,41 @@ }, "input":{"shape":"DeleteServerCertificateRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"DeleteConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DeleteConflictException", + "error":{ + "code":"DeleteConflict", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteSigningCertificate":{ @@ -545,9 +1575,32 @@ }, "input":{"shape":"DeleteSigningCertificateRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteUser":{ @@ -558,10 +1611,41 @@ }, "input":{"shape":"DeleteUserRequest"}, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"DeleteConflictException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DeleteConflictException", + "error":{ + "code":"DeleteConflict", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteUserPolicy":{ @@ -572,9 +1656,32 @@ }, "input":{"shape":"DeleteUserPolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DeleteVirtualMFADevice":{ @@ -585,10 +1692,41 @@ }, "input":{"shape":"DeleteVirtualMFADeviceRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"DeleteConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DeleteConflictException", + "error":{ + "code":"DeleteConflict", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DetachGroupPolicy":{ @@ -599,10 +1737,41 @@ }, "input":{"shape":"DetachGroupPolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DetachRolePolicy":{ @@ -613,10 +1782,41 @@ }, "input":{"shape":"DetachRolePolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "DetachUserPolicy":{ @@ -627,10 +1827,41 @@ }, "input":{"shape":"DetachUserPolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "EnableMFADevice":{ @@ -641,12 +1872,59 @@ }, "input":{"shape":"EnableMFADeviceRequest"}, "errors":[ - {"shape":"EntityAlreadyExistsException"}, - {"shape":"EntityTemporarilyUnmodifiableException"}, - {"shape":"InvalidAuthenticationCodeException"}, - {"shape":"LimitExceededException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityTemporarilyUnmodifiableException", + "error":{ + "code":"EntityTemporarilyUnmodifiable", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidAuthenticationCodeException", + "error":{ + "code":"InvalidAuthenticationCode", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GenerateCredentialReport":{ @@ -660,8 +1938,23 @@ "resultWrapper":"GenerateCredentialReportResult" }, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetAccessKeyLastUsed":{ @@ -676,7 +1969,15 @@ "resultWrapper":"GetAccessKeyLastUsedResult" }, "errors":[ - {"shape":"NoSuchEntityException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "GetAccountAuthorizationDetails":{ @@ -691,7 +1992,14 @@ "resultWrapper":"GetAccountAuthorizationDetailsResult" }, "errors":[ - {"shape":"ServiceFailureException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetAccountPasswordPolicy":{ @@ -705,8 +2013,23 @@ "resultWrapper":"GetAccountPasswordPolicyResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetAccountSummary":{ @@ -720,38 +2043,14 @@ "resultWrapper":"GetAccountSummaryResult" }, "errors":[ - {"shape":"ServiceFailureException"} - ] - }, - "GetContextKeysForCustomPolicy":{ - "name":"GetContextKeysForCustomPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetContextKeysForCustomPolicyRequest"}, - "output":{ - "shape":"GetContextKeysForPolicyResponse", - "resultWrapper":"GetContextKeysForCustomPolicyResult" - }, - "errors":[ - {"shape":"InvalidInputException"} - ] - }, - "GetContextKeysForPrincipalPolicy":{ - "name":"GetContextKeysForPrincipalPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetContextKeysForPrincipalPolicyRequest"}, - "output":{ - "shape":"GetContextKeysForPolicyResponse", - "resultWrapper":"GetContextKeysForPrincipalPolicyResult" - }, - "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetCredentialReport":{ @@ -765,10 +2064,41 @@ "resultWrapper":"GetCredentialReportResult" }, "errors":[ - {"shape":"CredentialReportNotPresentException"}, - {"shape":"CredentialReportExpiredException"}, - {"shape":"CredentialReportNotReadyException"}, - {"shape":"ServiceFailureException"} + { + "shape":"CredentialReportNotPresentException", + "error":{ + "code":"ReportNotPresent", + "httpStatusCode":410, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CredentialReportExpiredException", + "error":{ + "code":"ReportExpired", + "httpStatusCode":410, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CredentialReportNotReadyException", + "error":{ + "code":"ReportInProgress", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetGroup":{ @@ -783,8 +2113,23 @@ "resultWrapper":"GetGroupResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetGroupPolicy":{ @@ -799,8 +2144,23 @@ "resultWrapper":"GetGroupPolicyResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetInstanceProfile":{ @@ -815,8 +2175,23 @@ "resultWrapper":"GetInstanceProfileResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetLoginProfile":{ @@ -831,8 +2206,23 @@ "resultWrapper":"GetLoginProfileResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetOpenIDConnectProvider":{ @@ -847,9 +2237,32 @@ "resultWrapper":"GetOpenIDConnectProviderResult" }, "errors":[ - {"shape":"InvalidInputException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetPolicy":{ @@ -864,9 +2277,32 @@ "resultWrapper":"GetPolicyResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetPolicyVersion":{ @@ -881,9 +2317,32 @@ "resultWrapper":"GetPolicyVersionResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetRole":{ @@ -898,8 +2357,23 @@ "resultWrapper":"GetRoleResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetRolePolicy":{ @@ -914,8 +2388,23 @@ "resultWrapper":"GetRolePolicyResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetSAMLProvider":{ @@ -930,9 +2419,32 @@ "resultWrapper":"GetSAMLProviderResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetSSHPublicKey":{ @@ -947,8 +2459,24 @@ "resultWrapper":"GetSSHPublicKeyResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"UnrecognizedPublicKeyEncodingException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnrecognizedPublicKeyEncodingException", + "error":{ + "code":"UnrecognizedPublicKeyEncoding", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "GetServerCertificate":{ @@ -963,8 +2491,23 @@ "resultWrapper":"GetServerCertificateResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetUser":{ @@ -979,8 +2522,23 @@ "resultWrapper":"GetUserResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "GetUserPolicy":{ @@ -995,8 +2553,23 @@ "resultWrapper":"GetUserPolicyResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListAccessKeys":{ @@ -1011,8 +2584,23 @@ "resultWrapper":"ListAccessKeysResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListAccountAliases":{ @@ -1027,7 +2615,14 @@ "resultWrapper":"ListAccountAliasesResult" }, "errors":[ - {"shape":"ServiceFailureException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListAttachedGroupPolicies":{ @@ -1042,9 +2637,32 @@ "resultWrapper":"ListAttachedGroupPoliciesResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListAttachedRolePolicies":{ @@ -1059,9 +2677,32 @@ "resultWrapper":"ListAttachedRolePoliciesResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListAttachedUserPolicies":{ @@ -1076,9 +2717,32 @@ "resultWrapper":"ListAttachedUserPoliciesResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListEntitiesForPolicy":{ @@ -1093,9 +2757,32 @@ "resultWrapper":"ListEntitiesForPolicyResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListGroupPolicies":{ @@ -1110,8 +2797,23 @@ "resultWrapper":"ListGroupPoliciesResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListGroups":{ @@ -1126,7 +2828,14 @@ "resultWrapper":"ListGroupsResult" }, "errors":[ - {"shape":"ServiceFailureException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListGroupsForUser":{ @@ -1141,8 +2850,23 @@ "resultWrapper":"ListGroupsForUserResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListInstanceProfiles":{ @@ -1157,7 +2881,14 @@ "resultWrapper":"ListInstanceProfilesResult" }, "errors":[ - {"shape":"ServiceFailureException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListInstanceProfilesForRole":{ @@ -1172,8 +2903,23 @@ "resultWrapper":"ListInstanceProfilesForRoleResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListMFADevices":{ @@ -1188,8 +2934,23 @@ "resultWrapper":"ListMFADevicesResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListOpenIDConnectProviders":{ @@ -1204,7 +2965,14 @@ "resultWrapper":"ListOpenIDConnectProvidersResult" }, "errors":[ - {"shape":"ServiceFailureException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListPolicies":{ @@ -1219,7 +2987,14 @@ "resultWrapper":"ListPoliciesResult" }, "errors":[ - {"shape":"ServiceFailureException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListPolicyVersions":{ @@ -1234,9 +3009,32 @@ "resultWrapper":"ListPolicyVersionsResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListRolePolicies":{ @@ -1251,8 +3049,23 @@ "resultWrapper":"ListRolePoliciesResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListRoles":{ @@ -1267,7 +3080,14 @@ "resultWrapper":"ListRolesResult" }, "errors":[ - {"shape":"ServiceFailureException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListSAMLProviders":{ @@ -1282,7 +3102,14 @@ "resultWrapper":"ListSAMLProvidersResult" }, "errors":[ - {"shape":"ServiceFailureException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListSSHPublicKeys":{ @@ -1297,7 +3124,15 @@ "resultWrapper":"ListSSHPublicKeysResult" }, "errors":[ - {"shape":"NoSuchEntityException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "ListServerCertificates":{ @@ -1312,7 +3147,14 @@ "resultWrapper":"ListServerCertificatesResult" }, "errors":[ - {"shape":"ServiceFailureException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListSigningCertificates":{ @@ -1327,8 +3169,23 @@ "resultWrapper":"ListSigningCertificatesResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListUserPolicies":{ @@ -1343,8 +3200,23 @@ "resultWrapper":"ListUserPoliciesResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListUsers":{ @@ -1359,7 +3231,14 @@ "resultWrapper":"ListUsersResult" }, "errors":[ - {"shape":"ServiceFailureException"} + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ListVirtualMFADevices":{ @@ -1382,10 +3261,41 @@ }, "input":{"shape":"PutGroupPolicyRequest"}, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "PutRolePolicy":{ @@ -1396,10 +3306,41 @@ }, "input":{"shape":"PutRolePolicyRequest"}, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "PutUserPolicy":{ @@ -1410,10 +3351,41 @@ }, "input":{"shape":"PutUserPolicyRequest"}, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "RemoveClientIDFromOpenIDConnectProvider":{ @@ -1424,9 +3396,32 @@ }, "input":{"shape":"RemoveClientIDFromOpenIDConnectProviderRequest"}, "errors":[ - {"shape":"InvalidInputException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "RemoveRoleFromInstanceProfile":{ @@ -1437,9 +3432,32 @@ }, "input":{"shape":"RemoveRoleFromInstanceProfileRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "RemoveUserFromGroup":{ @@ -1450,9 +3468,32 @@ }, "input":{"shape":"RemoveUserFromGroupRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "ResyncMFADevice":{ @@ -1463,10 +3504,41 @@ }, "input":{"shape":"ResyncMFADeviceRequest"}, "errors":[ - {"shape":"InvalidAuthenticationCodeException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"InvalidAuthenticationCodeException", + "error":{ + "code":"InvalidAuthenticationCode", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "SetDefaultPolicyVersion":{ @@ -1477,43 +3549,41 @@ }, "input":{"shape":"SetDefaultPolicyVersionRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} - ] - }, - "SimulateCustomPolicy":{ - "name":"SimulateCustomPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SimulateCustomPolicyRequest"}, - "output":{ - "shape":"SimulatePolicyResponse", - "resultWrapper":"SimulateCustomPolicyResult" - }, - "errors":[ - {"shape":"InvalidInputException"}, - {"shape":"PolicyEvaluationException"} - ] - }, - "SimulatePrincipalPolicy":{ - "name":"SimulatePrincipalPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SimulatePrincipalPolicyRequest"}, - "output":{ - "shape":"SimulatePolicyResponse", - "resultWrapper":"SimulatePrincipalPolicyResult" - }, - "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"PolicyEvaluationException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UpdateAccessKey":{ @@ -1524,9 +3594,32 @@ }, "input":{"shape":"UpdateAccessKeyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UpdateAccountPasswordPolicy":{ @@ -1537,10 +3630,41 @@ }, "input":{"shape":"UpdateAccountPasswordPolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UpdateAssumeRolePolicy":{ @@ -1551,10 +3675,41 @@ }, "input":{"shape":"UpdateAssumeRolePolicyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UpdateGroup":{ @@ -1565,10 +3720,41 @@ }, "input":{"shape":"UpdateGroupRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UpdateLoginProfile":{ @@ -1579,11 +3765,50 @@ }, "input":{"shape":"UpdateLoginProfileRequest"}, "errors":[ - {"shape":"EntityTemporarilyUnmodifiableException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"PasswordPolicyViolationException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"EntityTemporarilyUnmodifiableException", + "error":{ + "code":"EntityTemporarilyUnmodifiable", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"PasswordPolicyViolationException", + "error":{ + "code":"PasswordPolicyViolation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UpdateOpenIDConnectProviderThumbprint":{ @@ -1594,9 +3819,32 @@ }, "input":{"shape":"UpdateOpenIDConnectProviderThumbprintRequest"}, "errors":[ - {"shape":"InvalidInputException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UpdateSAMLProvider":{ @@ -1611,10 +3859,41 @@ "resultWrapper":"UpdateSAMLProviderResult" }, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInputException", + "error":{ + "code":"InvalidInput", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UpdateSSHPublicKey":{ @@ -1625,7 +3904,15 @@ }, "input":{"shape":"UpdateSSHPublicKeyRequest"}, "errors":[ - {"shape":"NoSuchEntityException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "UpdateServerCertificate":{ @@ -1636,10 +3923,41 @@ }, "input":{"shape":"UpdateServerCertificateRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UpdateSigningCertificate":{ @@ -1650,9 +3968,32 @@ }, "input":{"shape":"UpdateSigningCertificateRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UpdateUser":{ @@ -1663,11 +4004,50 @@ }, "input":{"shape":"UpdateUserRequest"}, "errors":[ - {"shape":"NoSuchEntityException"}, - {"shape":"LimitExceededException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"EntityTemporarilyUnmodifiableException"}, - {"shape":"ServiceFailureException"} + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityTemporarilyUnmodifiableException", + "error":{ + "code":"EntityTemporarilyUnmodifiable", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UploadSSHPublicKey":{ @@ -1682,11 +4062,51 @@ "resultWrapper":"UploadSSHPublicKeyResult" }, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidPublicKeyException"}, - {"shape":"DuplicateSSHPublicKeyException"}, - {"shape":"UnrecognizedPublicKeyEncodingException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidPublicKeyException", + "error":{ + "code":"InvalidPublicKey", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DuplicateSSHPublicKeyException", + "error":{ + "code":"DuplicateSSHPublicKey", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnrecognizedPublicKeyEncodingException", + "error":{ + "code":"UnrecognizedPublicKeyEncoding", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "UploadServerCertificate":{ @@ -1701,11 +4121,50 @@ "resultWrapper":"UploadServerCertificateResult" }, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"MalformedCertificateException"}, - {"shape":"KeyPairMismatchException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedCertificateException", + "error":{ + "code":"MalformedCertificate", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KeyPairMismatchException", + "error":{ + "code":"KeyPairMismatch", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] }, "UploadSigningCertificate":{ @@ -1720,13 +4179,68 @@ "resultWrapper":"UploadSigningCertificateResult" }, "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"EntityAlreadyExistsException"}, - {"shape":"MalformedCertificateException"}, - {"shape":"InvalidCertificateException"}, - {"shape":"DuplicateCertificateException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"ServiceFailureException"} + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EntityAlreadyExistsException", + "error":{ + "code":"EntityAlreadyExists", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedCertificateException", + "error":{ + "code":"MalformedCertificate", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCertificateException", + "error":{ + "code":"InvalidCertificate", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DuplicateCertificateException", + "error":{ + "code":"DuplicateCertificate", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NoSuchEntityException", + "error":{ + "code":"NoSuchEntity", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ServiceFailureException", + "error":{ + "code":"ServiceFailure", + "httpStatusCode":500 + }, + "exception":true + } ] } }, @@ -1769,15 +4283,6 @@ "CreateDate":{"shape":"dateType"} } }, - "ActionNameListType":{ - "type":"list", - "member":{"shape":"ActionNameType"} - }, - "ActionNameType":{ - "type":"string", - "max":128, - "min":3 - }, "AddClientIDToOpenIDConnectProviderRequest":{ "type":"structure", "required":[ @@ -1866,50 +4371,6 @@ "NewPassword":{"shape":"passwordType"} } }, - "ColumnNumber":{"type":"integer"}, - "ContextEntry":{ - "type":"structure", - "members":{ - "ContextKeyName":{"shape":"ContextKeyNameType"}, - "ContextKeyValues":{"shape":"ContextKeyValueListType"}, - "ContextKeyType":{"shape":"ContextKeyTypeEnum"} - } - }, - "ContextEntryListType":{ - "type":"list", - "member":{"shape":"ContextEntry"} - }, - "ContextKeyNameType":{ - "type":"string", - "max":256, - "min":5 - }, - "ContextKeyNamesResultListType":{ - "type":"list", - "member":{"shape":"ContextKeyNameType"} - }, - "ContextKeyTypeEnum":{ - "type":"string", - "enum":[ - "string", - "stringList", - "numeric", - "numericList", - "boolean", - "booleanList", - "ip", - "ipList", - "binary", - "binaryList", - "date", - "dateList" - ] - }, - "ContextKeyValueListType":{ - "type":"list", - "member":{"shape":"ContextKeyValueType"} - }, - "ContextKeyValueType":{"type":"string"}, "CreateAccessKeyRequest":{ "type":"structure", "members":{ @@ -2412,36 +4873,6 @@ "AWSManagedPolicy" ] }, - "EvalDecisionDetailsType":{ - "type":"map", - "key":{"shape":"EvalDecisionSourceType"}, - "value":{"shape":"PolicyEvaluationDecisionType"} - }, - "EvalDecisionSourceType":{ - "type":"string", - "max":256, - "min":3 - }, - "EvaluationResult":{ - "type":"structure", - "required":[ - "EvalActionName", - "EvalDecision" - ], - "members":{ - "EvalActionName":{"shape":"ActionNameType"}, - "EvalResourceName":{"shape":"ResourceNameType"}, - "EvalDecision":{"shape":"PolicyEvaluationDecisionType"}, - "MatchedStatements":{"shape":"StatementListType"}, - "MissingContextValues":{"shape":"ContextKeyNamesResultListType"}, - "EvalDecisionDetails":{"shape":"EvalDecisionDetailsType"}, - "ResourceSpecificResults":{"shape":"ResourceSpecificResultListType"} - } - }, - "EvaluationResultsListType":{ - "type":"list", - "member":{"shape":"EvaluationResult"} - }, "GenerateCredentialReportResponse":{ "type":"structure", "members":{ @@ -2495,27 +4926,6 @@ "SummaryMap":{"shape":"summaryMapType"} } }, - "GetContextKeysForCustomPolicyRequest":{ - "type":"structure", - "required":["PolicyInputList"], - "members":{ - "PolicyInputList":{"shape":"SimulationPolicyListType"} - } - }, - "GetContextKeysForPolicyResponse":{ - "type":"structure", - "members":{ - "ContextKeyNames":{"shape":"ContextKeyNamesResultListType"} - } - }, - "GetContextKeysForPrincipalPolicyRequest":{ - "type":"structure", - "required":["PolicySourceArn"], - "members":{ - "PolicySourceArn":{"shape":"arnType"}, - "PolicyInputList":{"shape":"SimulationPolicyListType"} - } - }, "GetCredentialReportResponse":{ "type":"structure", "members":{ @@ -2899,7 +5309,6 @@ }, "exception":true }, - "LineNumber":{"type":"integer"}, "ListAccessKeysRequest":{ "type":"structure", "members":{ @@ -3400,8 +5809,8 @@ }, "OpenIDConnectProviderUrlType":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "PasswordPolicy":{ "type":"structure", @@ -3452,65 +5861,30 @@ "PolicyDocument":{"shape":"policyDocumentType"} } }, - "PolicyEvaluationDecisionType":{ - "type":"string", - "enum":[ - "allowed", - "explicitDeny", - "implicitDeny" - ] - }, - "PolicyEvaluationException":{ - "type":"structure", - "members":{ - "message":{"shape":"policyEvaluationErrorMessage"} - }, - "error":{ - "code":"PolicyEvaluation", - "httpStatusCode":500 - }, - "exception":true - }, "PolicyGroup":{ "type":"structure", "members":{ - "GroupName":{"shape":"groupNameType"}, - "GroupId":{"shape":"idType"} + "GroupName":{"shape":"groupNameType"} } }, "PolicyGroupListType":{ "type":"list", "member":{"shape":"PolicyGroup"} }, - "PolicyIdentifierType":{"type":"string"}, "PolicyRole":{ "type":"structure", "members":{ - "RoleName":{"shape":"roleNameType"}, - "RoleId":{"shape":"idType"} + "RoleName":{"shape":"roleNameType"} } }, "PolicyRoleListType":{ "type":"list", "member":{"shape":"PolicyRole"} }, - "PolicySourceType":{ - "type":"string", - "enum":[ - "user", - "group", - "role", - "aws-managed", - "user-managed", - "resource", - "none" - ] - }, "PolicyUser":{ "type":"structure", "members":{ - "UserName":{"shape":"userNameType"}, - "UserId":{"shape":"idType"} + "UserName":{"shape":"userNameType"} } }, "PolicyUserListType":{ @@ -3526,13 +5900,6 @@ "CreateDate":{"shape":"dateType"} } }, - "Position":{ - "type":"structure", - "members":{ - "Line":{"shape":"LineNumber"}, - "Column":{"shape":"ColumnNumber"} - } - }, "PutGroupPolicyRequest":{ "type":"structure", "required":[ @@ -3619,38 +5986,6 @@ "COMPLETE" ] }, - "ResourceHandlingOptionType":{ - "type":"string", - "max":64, - "min":1 - }, - "ResourceNameListType":{ - "type":"list", - "member":{"shape":"ResourceNameType"} - }, - "ResourceNameType":{ - "type":"string", - "max":2048, - "min":1 - }, - "ResourceSpecificResult":{ - "type":"structure", - "required":[ - "EvalResourceName", - "EvalResourceDecision" - ], - "members":{ - "EvalResourceName":{"shape":"ResourceNameType"}, - "EvalResourceDecision":{"shape":"PolicyEvaluationDecisionType"}, - "MatchedStatements":{"shape":"StatementListType"}, - "MissingContextValues":{"shape":"ContextKeyNamesResultListType"}, - "EvalDecisionDetails":{"shape":"EvalDecisionDetailsType"} - } - }, - "ResourceSpecificResultListType":{ - "type":"list", - "member":{"shape":"ResourceSpecificResult"} - }, "ResyncMFADeviceRequest":{ "type":"structure", "required":[ @@ -3700,8 +6035,8 @@ }, "SAMLMetadataDocumentType":{ "type":"string", - "max":10000000, - "min":1000 + "min":1000, + "max":10000000 }, "SAMLProviderListEntry":{ "type":"structure", @@ -3717,8 +6052,8 @@ }, "SAMLProviderNameType":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[\\w._-]+" }, "SSHPublicKey":{ @@ -3825,70 +6160,6 @@ "UploadDate":{"shape":"dateType"} } }, - "SimulateCustomPolicyRequest":{ - "type":"structure", - "required":[ - "PolicyInputList", - "ActionNames" - ], - "members":{ - "PolicyInputList":{"shape":"SimulationPolicyListType"}, - "ActionNames":{"shape":"ActionNameListType"}, - "ResourceArns":{"shape":"ResourceNameListType"}, - "ResourcePolicy":{"shape":"policyDocumentType"}, - "ResourceOwner":{"shape":"ResourceNameType"}, - "CallerArn":{"shape":"ResourceNameType"}, - "ContextEntries":{"shape":"ContextEntryListType"}, - "ResourceHandlingOption":{"shape":"ResourceHandlingOptionType"}, - "MaxItems":{"shape":"maxItemsType"}, - "Marker":{"shape":"markerType"} - } - }, - "SimulatePolicyResponse":{ - "type":"structure", - "members":{ - "EvaluationResults":{"shape":"EvaluationResultsListType"}, - "IsTruncated":{"shape":"booleanType"}, - "Marker":{"shape":"markerType"} - } - }, - "SimulatePrincipalPolicyRequest":{ - "type":"structure", - "required":[ - "PolicySourceArn", - "ActionNames" - ], - "members":{ - "PolicySourceArn":{"shape":"arnType"}, - "PolicyInputList":{"shape":"SimulationPolicyListType"}, - "ActionNames":{"shape":"ActionNameListType"}, - "ResourceArns":{"shape":"ResourceNameListType"}, - "ResourcePolicy":{"shape":"policyDocumentType"}, - "ResourceOwner":{"shape":"ResourceNameType"}, - "CallerArn":{"shape":"ResourceNameType"}, - "ContextEntries":{"shape":"ContextEntryListType"}, - "ResourceHandlingOption":{"shape":"ResourceHandlingOptionType"}, - "MaxItems":{"shape":"maxItemsType"}, - "Marker":{"shape":"markerType"} - } - }, - "SimulationPolicyListType":{ - "type":"list", - "member":{"shape":"policyDocumentType"} - }, - "Statement":{ - "type":"structure", - "members":{ - "SourcePolicyId":{"shape":"PolicyIdentifierType"}, - "SourcePolicyType":{"shape":"PolicySourceType"}, - "StartPosition":{"shape":"Position"}, - "EndPosition":{"shape":"Position"} - } - }, - "StatementListType":{ - "type":"list", - "member":{"shape":"Statement"} - }, "UnrecognizedPublicKeyEncodingException":{ "type":"structure", "members":{ @@ -4124,8 +6395,8 @@ }, "accessKeyIdType":{ "type":"string", - "max":32, "min":16, + "max":32, "pattern":"[\\w]+" }, "accessKeyMetadataListType":{ @@ -4142,14 +6413,14 @@ }, "accountAliasType":{ "type":"string", - "max":63, "min":3, + "max":63, "pattern":"^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$" }, "arnType":{ "type":"string", - "max":2048, - "min":20 + "min":20, + "max":2048 }, "assignmentStatusType":{ "type":"string", @@ -4166,8 +6437,8 @@ "attachmentCountType":{"type":"integer"}, "authenticationCodeType":{ "type":"string", - "max":6, "min":6, + "max":6, "pattern":"[\\d]+" }, "booleanObjectType":{ @@ -4177,20 +6448,20 @@ "booleanType":{"type":"boolean"}, "certificateBodyType":{ "type":"string", - "max":16384, "min":1, + "max":16384, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" }, "certificateChainType":{ "type":"string", - "max":2097152, "min":1, + "max":2097152, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" }, "certificateIdType":{ "type":"string", - "max":128, "min":24, + "max":128, "pattern":"[\\w]+" }, "certificateListType":{ @@ -4203,8 +6474,8 @@ }, "clientIDType":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "credentialReportExpiredExceptionMessage":{"type":"string"}, "credentialReportNotPresentExceptionMessage":{"type":"string"}, @@ -4228,8 +6499,8 @@ "entityTemporarilyUnmodifiableMessage":{"type":"string"}, "existingUserNameType":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[\\w+=,.@-]+" }, "groupDetailListType":{ @@ -4246,14 +6517,14 @@ }, "groupNameType":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[\\w+=,.@-]+" }, "idType":{ "type":"string", - "max":32, "min":16, + "max":32, "pattern":"[\\w]+" }, "instanceProfileListType":{ @@ -4262,8 +6533,8 @@ }, "instanceProfileNameType":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[\\w+=,.@-]+" }, "invalidAuthenticationCodeMessage":{"type":"string"}, @@ -4277,20 +6548,20 @@ "malformedPolicyDocumentMessage":{"type":"string"}, "markerType":{ "type":"string", - "max":320, "min":1, + "max":320, "pattern":"[\\u0020-\\u00FF]+" }, "maxItemsType":{ "type":"integer", - "max":1000, - "min":1 + "min":1, + "max":1000 }, "maxPasswordAgeType":{ "type":"integer", - "box":true, + "min":1, "max":1095, - "min":1 + "box":true }, "mfaDeviceListType":{ "type":"list", @@ -4298,34 +6569,34 @@ }, "minimumPasswordLengthType":{ "type":"integer", - "max":128, - "min":6 + "min":6, + "max":128 }, "noSuchEntityMessage":{"type":"string"}, "passwordPolicyViolationMessage":{"type":"string"}, "passwordReusePreventionType":{ "type":"integer", - "box":true, + "min":1, "max":24, - "min":1 + "box":true }, "passwordType":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+", "sensitive":true }, "pathPrefixType":{ "type":"string", - "max":512, "min":1, + "max":512, "pattern":"\\u002F[\\u0021-\\u007F]*" }, "pathType":{ "type":"string", - "max":512, "min":1, + "max":512, "pattern":"(\\u002F)|(\\u002F[\\u0021-\\u007F]+\\u002F)" }, "policyDescriptionType":{ @@ -4338,15 +6609,14 @@ }, "policyDocumentType":{ "type":"string", - "max":131072, "min":1, + "max":131072, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" }, "policyDocumentVersionListType":{ "type":"list", "member":{"shape":"PolicyVersion"} }, - "policyEvaluationErrorMessage":{"type":"string"}, "policyListType":{ "type":"list", "member":{"shape":"Policy"} @@ -4357,8 +6627,8 @@ }, "policyNameType":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[\\w+=,.@-]+" }, "policyPathType":{ @@ -4379,27 +6649,27 @@ }, "privateKeyType":{ "type":"string", - "max":16384, "min":1, + "max":16384, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+", "sensitive":true }, "publicKeyFingerprintType":{ "type":"string", - "max":48, "min":48, + "max":48, "pattern":"[:\\w]+" }, "publicKeyIdType":{ "type":"string", - "max":128, "min":20, + "max":128, "pattern":"[\\w]+" }, "publicKeyMaterialType":{ "type":"string", - "max":16384, "min":1, + "max":16384, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" }, "roleDetailListType":{ @@ -4412,14 +6682,14 @@ }, "roleNameType":{ "type":"string", - "max":64, "min":1, + "max":64, "pattern":"[\\w+=,.@-]+" }, "serialNumberType":{ "type":"string", - "max":256, "min":9, + "max":256, "pattern":"[\\w+=/:,.@-]+" }, "serverCertificateMetadataListType":{ @@ -4428,8 +6698,8 @@ }, "serverCertificateNameType":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[\\w+=,.@-]+" }, "serviceFailureExceptionMessage":{"type":"string"}, @@ -4483,8 +6753,8 @@ }, "thumbprintType":{ "type":"string", - "max":40, - "min":40 + "min":40, + "max":40 }, "unrecognizedPublicKeyEncodingMessage":{"type":"string"}, "userDetailListType":{ @@ -4497,8 +6767,8 @@ }, "userNameType":{ "type":"string", - "max":64, "min":1, + "max":64, "pattern":"[\\w+=,.@-]+" }, "virtualMFADeviceListType":{ diff --git a/vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/docs-2.json new file mode 100644 index 000000000..173b0677f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/docs-2.json @@ -0,0 +1,2280 @@ +{ + "version": "2.0", + "operations": { + "AddClientIDToOpenIDConnectProvider": "

Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect provider.

This action is idempotent; it does not fail or return an error if you add an existing client ID to the provider.

", + "AddRoleToInstanceProfile": "

Adds the specified role to the specified instance profile. For more information about roles, go to Working with Roles. For more information about instance profiles, go to About Instance Profiles.

", + "AddUserToGroup": "

Adds the specified user to the specified group.

", + "AttachGroupPolicy": "

Attaches the specified managed policy to the specified group.

You use this API to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy.

For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "AttachRolePolicy": "

Attaches the specified managed policy to the specified role.

When you attach a managed policy to a role, the managed policy is used as the role's access (permissions) policy. You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy.

Use this API to attach a managed policy to a role. To embed an inline policy in a role, use PutRolePolicy. For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "AttachUserPolicy": "

Attaches the specified managed policy to the specified user.

You use this API to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.

For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "ChangePassword": "

Changes the password of the IAM user who is calling this action. The root account password is not affected by this action.

To change the password for a different user, see UpdateLoginProfile. For more information about modifying passwords, see Managing Passwords in the Using IAM guide.

", + "CreateAccessKey": "

Creates a new AWS secret access key and corresponding AWS access key ID for the specified user. The default status for new keys is Active.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

For information about limits on the number of keys you can create, see Limitations on IAM Entities in the Using IAM guide.

To ensure the security of your AWS account, the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys. ", + "CreateAccountAlias": "

Creates an alias for your AWS account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the Using IAM guide.

", + "CreateGroup": "

Creates a new group.

For information about the number of groups you can create, see Limitations on IAM Entities in the Using IAM guide.

", + "CreateInstanceProfile": "

Creates a new instance profile. For information about instance profiles, go to About Instance Profiles.

For information about the number of instance profiles you can create, see Limitations on IAM Entities in the Using IAM guide.

", + "CreateLoginProfile": "

Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console. For more information about managing passwords, see Managing Passwords in the Using IAM guide.

", + "CreateOpenIDConnectProvider": "

Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).

The OIDC provider that you create with this operation can be used as a principal in a role's trust policy to establish a trust relationship between AWS and the OIDC provider.

When you create the IAM OIDC provider, you specify the URL of the OIDC identity provider (IdP) to trust, a list of client IDs (also known as audiences) that identify the application or applications that are allowed to authenticate using the OIDC provider, and a list of thumbprints of the server certificate(s) that the IdP uses. You get all of this information from the OIDC IdP that you want to use for access to AWS.

Because trust for the OIDC provider is ultimately derived from the IAM provider that this action creates, it is a best practice to limit access to the CreateOpenIDConnectProvider action to highly-privileged users. ", + "CreatePolicy": "

Creates a new managed policy for your AWS account.

This operation creates a policy version with a version identifier of v1 and sets v1 as the policy's default version. For more information about policy versions, see Versioning for Managed Policies in the Using IAM guide.

For more information about managed policies in general, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "CreatePolicyVersion": "

Creates a new version of the specified managed policy. To update a managed policy, you create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must delete an existing version using DeletePolicyVersion before you create a new version.

Optionally, you can set the new version as the policy's default version. The default version is the operative version; that is, the version that is in effect for the IAM users, groups, and roles that the policy is attached to.

For more information about managed policy versions, see Versioning for Managed Policies in the Using IAM guide.

", + "CreateRole": "

Creates a new role for your AWS account. For more information about roles, go to Working with Roles. For information about limitations on role names and the number of roles you can create, go to Limitations on IAM Entities in the Using IAM guide.

The policy in the following example grants permission to an EC2 instance to assume the role.

", + "CreateSAMLProvider": "

Creates an IAM entity to describe an identity provider (IdP) that supports SAML 2.0.

The SAML provider that you create with this operation can be used as a principal in a role's trust policy to establish a trust relationship between AWS and a SAML identity provider. You can create an IAM role that supports Web-based single sign-on (SSO) to the AWS Management Console or one that supports API access to AWS.

When you create the SAML provider, you upload an a SAML metadata document that you get from your IdP and that includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.

This operation requires Signature Version 4.

For more information, see Giving Console Access Using SAML and Creating Temporary Security Credentials for SAML Federation in the Using Temporary Credentials guide.

", + "CreateUser": "

Creates a new user for your AWS account.

For information about limitations on the number of users you can create, see Limitations on IAM Entities in the Using IAM guide.

", + "CreateVirtualMFADevice": "

Creates a new virtual MFA device for the AWS account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.

For information about limits on the number of MFA devices you can create, see Limitations on Entities in the Using IAM guide.

The seed information contained in the QR code and the Base32 string should be treated like any other secret access information, such as your AWS access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures. ", + "DeactivateMFADevice": "

Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.

For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.

", + "DeleteAccessKey": "

Deletes the access key associated with the specified user.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

", + "DeleteAccountAlias": "

Deletes the specified AWS account alias. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the Using IAM guide.

", + "DeleteAccountPasswordPolicy": "

Deletes the password policy for the AWS account.

", + "DeleteGroup": "

Deletes the specified group. The group must not contain any users or have any attached policies.

", + "DeleteGroupPolicy": "

Deletes the specified inline policy that is embedded in the specified group.

A group can also have managed policies attached to it. To detach a managed policy from a group, use DetachGroupPolicy. For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "DeleteInstanceProfile": "

Deletes the specified instance profile. The instance profile must not have an associated role.

Make sure you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

For more information about instance profiles, go to About Instance Profiles.

", + "DeleteLoginProfile": "

Deletes the password for the specified user, which terminates the user's ability to access AWS services through the AWS Management Console.

Deleting a user's password does not prevent a user from accessing IAM through the command line interface or the API. To prevent all user access you must also either make the access key inactive or delete it. For more information about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey. ", + "DeleteOpenIDConnectProvider": "

Deletes an IAM OpenID Connect identity provider.

Deleting an OIDC provider does not update any roles that reference the provider as a principal in their trust policies. Any attempt to assume a role that references a provider that has been deleted will fail.

This action is idempotent; it does not fail or return an error if you call the action for a provider that was already deleted.

", + "DeletePolicy": "

Deletes the specified managed policy.

Before you can delete a managed policy, you must detach the policy from all users, groups, and roles that it is attached to, and you must delete all of the policy's versions. The following steps describe the process for deleting a managed policy:

  1. Detach the policy from all users, groups, and roles that the policy is attached to, using the DetachUserPolicy, DetachGroupPolicy, or DetachRolePolicy APIs. To list all the users, groups, and roles that a policy is attached to, use ListEntitiesForPolicy.
  2. Delete all versions of the policy using DeletePolicyVersion. To list the policy's versions, use ListPolicyVersions. You cannot use DeletePolicyVersion to delete the version that is marked as the default version. You delete the policy's default version in the next step of the process.
  3. Delete the policy (this automatically deletes the policy's default version) using this API.

For information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "DeletePolicyVersion": "

Deletes the specified version of the specified managed policy.

You cannot delete the default version of a policy using this API. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.

For information about versions for managed policies, refer to Versioning for Managed Policies in the Using IAM guide.

", + "DeleteRole": "

Deletes the specified role. The role must not have any policies attached. For more information about roles, go to Working with Roles.

Make sure you do not have any Amazon EC2 instances running with the role you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance. ", + "DeleteRolePolicy": "

Deletes the specified inline policy that is embedded in the specified role.

A role can also have managed policies attached to it. To detach a managed policy from a role, use DetachRolePolicy. For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "DeleteSAMLProvider": "

Deletes a SAML provider.

Deleting the provider does not update any roles that reference the SAML provider as a principal in their trust policies. Any attempt to assume a role that references a SAML provider that has been deleted will fail.

This operation requires Signature Version 4. ", + "DeleteSSHPublicKey": "

Deletes the specified SSH public key.

The SSH public key deleted by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

", + "DeleteServerCertificate": "

Deletes the specified server certificate.

If you are using a server certificate with Elastic Load Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn't detect the deletion of bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more information, go to DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference. ", + "DeleteSigningCertificate": "

Deletes the specified signing certificate associated with the specified user.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

", + "DeleteUser": "

Deletes the specified user. The user must not belong to any groups, have any keys or signing certificates, or have any attached policies.

", + "DeleteUserPolicy": "

Deletes the specified inline policy that is embedded in the specified user.

A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy. For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "DeleteVirtualMFADevice": "

Deletes a virtual MFA device.

You must deactivate a user's virtual MFA device before you can delete it. For information about deactivating MFA devices, see DeactivateMFADevice. ", + "DetachGroupPolicy": "

Removes the specified managed policy from the specified group.

A group can also have inline policies embedded with it. To delete an inline policy, use the DeleteGroupPolicy API. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "DetachRolePolicy": "

Removes the specified managed policy from the specified role.

A role can also have inline policies embedded with it. To delete an inline policy, use the DeleteRolePolicy API. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "DetachUserPolicy": "

Removes the specified managed policy from the specified user.

A user can also have inline policies embedded with it. To delete an inline policy, use the DeleteUserPolicy API. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "EnableMFADevice": "

Enables the specified MFA device and associates it with the specified user name. When enabled, the MFA device is required for every subsequent login by the user name associated with the device.

", + "GenerateCredentialReport": "

Generates a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports in the Using IAM guide.

", + "GetAccessKeyLastUsed": "

Retrieves information about when the specified access key was last used. The information includes the date and time of last use, along with the AWS service and region that were specified in the last request made with that key.

", + "GetAccountAuthorizationDetails": "

Retrieves information about all IAM users, groups, roles, and policies in your account, including their relationships to one another. Use this API to obtain a snapshot of the configuration of IAM permissions (users, groups, roles, and policies) in your account.

You can optionally filter the results using the Filter parameter. You can paginate the results using the MaxItems and Marker parameters.

", + "GetAccountPasswordPolicy": "

Retrieves the password policy for the AWS account. For more information about using a password policy, go to Managing an IAM Password Policy.

", + "GetAccountSummary": "

Retrieves information about IAM entity usage and IAM quotas in the AWS account.

For information about limitations on IAM entities, see Limitations on IAM Entities in the Using IAM guide.

", + "GetCredentialReport": "

Retrieves a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports in the Using IAM guide.

", + "GetGroup": "

Returns a list of users that are in the specified group. You can paginate the results using the MaxItems and Marker parameters.

", + "GetGroupPolicy": "

Retrieves the specified inline policy document that is embedded in the specified group.

A group can also have managed policies attached to it. To retrieve a managed policy document that is attached to a group, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.

For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "GetInstanceProfile": "

Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, go to About Instance Profiles. For more information about ARNs, go to ARNs.

", + "GetLoginProfile": "

Retrieves the user name and password-creation date for the specified user. If the user has not been assigned a password, the action returns a 404 (NoSuchEntity) error.

", + "GetOpenIDConnectProvider": "

Returns information about the specified OpenID Connect provider.

", + "GetPolicy": "

Retrieves information about the specified managed policy, including the policy's default version and the total number of users, groups, and roles that the policy is attached to. For a list of the specific users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API. This API returns metadata about the policy. To retrieve the policy document for a specific version of the policy, use GetPolicyVersion.

This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded with a user, group, or role, use the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API.

For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "GetPolicyVersion": "

Retrieves information about the specified version of the specified managed policy, including the policy document.

To list the available versions for a policy, use ListPolicyVersions.

This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded in a user, group, or role, use the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API.

For more information about the types of policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "GetRole": "

Retrieves information about the specified role, including the role's path, GUID, ARN, and the policy granting permission to assume the role. For more information about ARNs, go to ARNs. For more information about roles, go to Working with Roles.

", + "GetRolePolicy": "

Retrieves the specified inline policy document that is embedded with the specified role.

A role can also have managed policies attached to it. To retrieve a managed policy document that is attached to a role, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.

For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities.

", + "GetSAMLProvider": "

Returns the SAML provider metadocument that was uploaded when the provider was created or updated.

This operation requires Signature Version 4. ", + "GetSSHPublicKey": "

Retrieves the specified SSH public key, including metadata about the key.

The SSH public key retrieved by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

", + "GetServerCertificate": "

Retrieves information about the specified server certificate.

", + "GetUser": "

Retrieves information about the specified user, including the user's creation date, path, unique ID, and ARN.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID used to sign the request.

", + "GetUserPolicy": "

Retrieves the specified inline policy document that is embedded in the specified user.

A user can also have managed policies attached to it. To retrieve a managed policy document that is attached to a user, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.

For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "ListAccessKeys": "

Returns information about the access key IDs associated with the specified user. If there are none, the action returns an empty list.

Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.

If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

To ensure the security of your AWS account, the secret access key is accessible only during key and user creation. ", + "ListAccountAliases": "

Lists the account aliases associated with the account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the Using IAM guide.

You can paginate the results using the MaxItems and Marker parameters.

", + "ListAttachedGroupPolicies": "

Lists all managed policies that are attached to the specified group.

A group can also have inline policies embedded with it. To list the inline policies for a group, use the ListGroupPolicies API. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified group (or none that match the specified path prefix), the action returns an empty list.

", + "ListAttachedRolePolicies": "

Lists all managed policies that are attached to the specified role.

A role can also have inline policies embedded with it. To list the inline policies for a role, use the ListRolePolicies API. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified role (or none that match the specified path prefix), the action returns an empty list.

", + "ListAttachedUserPolicies": "

Lists all managed policies that are attached to the specified user.

A user can also have inline policies embedded with it. To list the inline policies for a user, use the ListUserPolicies API. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified group (or none that match the specified path prefix), the action returns an empty list.

", + "ListEntitiesForPolicy": "

Lists all users, groups, and roles that the specified managed policy is attached to.

You can use the optional EntityFilter parameter to limit the results to a particular type of entity (users, groups, or roles). For example, to list only the roles that are attached to the specified policy, set EntityFilter to Role.

You can paginate the results using the MaxItems and Marker parameters.

", + "ListGroupPolicies": "

Lists the names of the inline policies that are embedded in the specified group.

A group can also have managed policies attached to it. To list the managed policies that are attached to a group, use ListAttachedGroupPolicies. For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified group, the action returns an empty list.

", + "ListGroups": "

Lists the groups that have the specified path prefix.

You can paginate the results using the MaxItems and Marker parameters.

", + "ListGroupsForUser": "

Lists the groups the specified user belongs to.

You can paginate the results using the MaxItems and Marker parameters.

", + "ListInstanceProfiles": "

Lists the instance profiles that have the specified path prefix. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles.

You can paginate the results using the MaxItems and Marker parameters.

", + "ListInstanceProfilesForRole": "

Lists the instance profiles that have the specified associated role. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles.

You can paginate the results using the MaxItems and Marker parameters.

", + "ListMFADevices": "

Lists the MFA devices. If the request includes the user name, then this action lists all the MFA devices associated with the specified user name. If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request.

You can paginate the results using the MaxItems and Marker parameters.

", + "ListOpenIDConnectProviders": "

Lists information about the OpenID Connect providers in the AWS account.

", + "ListPolicies": "

Lists all the managed policies that are available to your account, including your own customer managed policies and all AWS managed policies.

You can filter the list of policies that is returned using the optional OnlyAttached, Scope, and PathPrefix parameters. For example, to list only the customer managed policies in your AWS account, set Scope to Local. To list only AWS managed policies, set Scope to AWS.

You can paginate the results using the MaxItems and Marker parameters.

For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "ListPolicyVersions": "

Lists information about the versions of the specified managed policy, including the version that is set as the policy's default version.

For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "ListRolePolicies": "

Lists the names of the inline policies that are embedded in the specified role.

A role can also have managed policies attached to it. To list the managed policies that are attached to a role, use ListAttachedRolePolicies. For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified role, the action returns an empty list.

", + "ListRoles": "

Lists the roles that have the specified path prefix. If there are none, the action returns an empty list. For more information about roles, go to Working with Roles.

You can paginate the results using the MaxItems and Marker parameters.

", + "ListSAMLProviders": "

Lists the SAML providers in the account.

This operation requires Signature Version 4. ", + "ListSSHPublicKeys": "

Returns information about the SSH public keys associated with the specified IAM user. If there are none, the action returns an empty list.

The SSH public keys returned by this action are used only for authenticating the IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.

", + "ListServerCertificates": "

Lists the server certificates that have the specified path prefix. If none exist, the action returns an empty list.

You can paginate the results using the MaxItems and Marker parameters.

", + "ListSigningCertificates": "

Returns information about the signing certificates associated with the specified user. If there are none, the action returns an empty list.

Although each user is limited to a small number of signing certificates, you can still paginate the results using the MaxItems and Marker parameters.

If the UserName field is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

", + "ListUserPolicies": "

Lists the names of the inline policies embedded in the specified user.

A user can also have managed policies attached to it. To list the managed policies that are attached to a user, use ListAttachedUserPolicies. For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified user, the action returns an empty list.

", + "ListUsers": "

Lists the IAM users that have the specified path prefix. If no path prefix is specified, the action returns all users in the AWS account. If there are none, the action returns an empty list.

You can paginate the results using the MaxItems and Marker parameters.

", + "ListVirtualMFADevices": "

Lists the virtual MFA devices under the AWS account by assignment status. If you do not specify an assignment status, the action returns a list of all virtual MFA devices. Assignment status can be Assigned, Unassigned, or Any.

You can paginate the results using the MaxItems and Marker parameters.

", + "PutGroupPolicy": "

Adds (or updates) an inline policy document that is embedded in the specified group.

A user can also have managed policies attached to it. To attach a managed policy to a group, use AttachGroupPolicy. To create a new managed policy, use CreatePolicy. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

For information about limits on the number of inline policies that you can embed in a group, see Limitations on IAM Entities in the Using IAM guide.

Because policy documents can be large, you should use POST rather than GET when calling PutGroupPolicy. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide. ", + "PutRolePolicy": "

Adds (or updates) an inline policy document that is embedded in the specified role.

When you embed an inline policy in a role, the inline policy is used as the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities.

A role can also have a managed policy attached to it. To attach a managed policy to a role, use AttachRolePolicy. To create a new managed policy, use CreatePolicy. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

For information about limits on the number of inline policies that you can embed with a role, see Limitations on IAM Entities in the Using IAM guide.

Because policy documents can be large, you should use POST rather than GET when calling PutRolePolicy. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide. ", + "PutUserPolicy": "

Adds (or updates) an inline policy document that is embedded in the specified user.

A user can also have a managed policy attached to it. To attach a managed policy to a user, use AttachUserPolicy. To create a new managed policy, use CreatePolicy. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

For information about limits on the number of inline policies that you can embed in a user, see Limitations on IAM Entities in the Using IAM guide.

Because policy documents can be large, you should use POST rather than GET when calling PutUserPolicy. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide. ", + "RemoveClientIDFromOpenIDConnectProvider": "

Removes the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect provider.

This action is idempotent; it does not fail or return an error if you try to remove a client ID that was removed previously.

", + "RemoveRoleFromInstanceProfile": "

Removes the specified role from the specified instance profile.

Make sure you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance will break any applications running on the instance.

For more information about roles, go to Working with Roles. For more information about instance profiles, go to About Instance Profiles.

", + "RemoveUserFromGroup": "

Removes the specified user from the specified group.

", + "ResyncMFADevice": "

Synchronizes the specified MFA device with AWS servers.

For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.

", + "SetDefaultPolicyVersion": "

Sets the specified version of the specified policy as the policy's default (operative) version.

This action affects all users, groups, and roles that the policy is attached to. To list the users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API.

For information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "UpdateAccessKey": "

Changes the status of the specified access key from Active to Inactive, or vice versa. This action can be used to disable a user's key as part of a key rotation work flow.

If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

For information about rotating keys, see Managing Keys and Certificates in the Using IAM guide.

", + "UpdateAccountPasswordPolicy": "

Updates the password policy settings for the AWS account.

This action does not support partial updates. No parameters are required, but if you do not specify a parameter, that parameter's value reverts to its default value. See the Request Parameters section for each parameter's default value.

For more information about using a password policy, see Managing an IAM Password Policy in the Using IAM guide.

", + "UpdateAssumeRolePolicy": "

Updates the policy that grants an entity permission to assume a role. For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities.

", + "UpdateGroup": "

Updates the name and/or the path of the specified group.

You should understand the implications of changing a group's path or name. For more information, see Renaming Users and Groups in the Using IAM guide. To change a group name the requester must have appropriate permissions on both the source object and the target object. For example, to change Managers to MGRs, the entity making the request must have permission on Managers and MGRs, or must have permission on all (*). For more information about permissions, see Permissions and Policies. ", + "UpdateLoginProfile": "

Changes the password for the specified user.

Users can change their own passwords by calling ChangePassword. For more information about modifying passwords, see Managing Passwords in the Using IAM guide.

", + "UpdateOpenIDConnectProviderThumbprint": "

Replaces the existing list of server certificate thumbprints with a new list.

The list that you pass with this action completely replaces the existing list of thumbprints. (The lists are not merged.)

Typically, you need to update a thumbprint only when the identity provider's certificate changes, which occurs rarely. However, if the provider's certificate does change, any attempt to assume an IAM role that specifies the OIDC provider as a principal will fail until the certificate thumbprint is updated.

Because trust for the OpenID Connect provider is ultimately derived from the provider's certificate and is validated by the thumbprint, it is a best practice to limit access to the UpdateOpenIDConnectProviderThumbprint action to highly-privileged users. ", + "UpdateSAMLProvider": "

Updates the metadata document for an existing SAML provider.

This operation requires Signature Version 4. ", + "UpdateSSHPublicKey": "

Sets the status of the specified SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This action can be used to disable a user's SSH public key as part of a key rotation work flow.

The SSH public key affected by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

", + "UpdateServerCertificate": "

Updates the name and/or the path of the specified server certificate.

You should understand the implications of changing a server certificate's path or name. For more information, see Managing Server Certificates in the Using IAM guide. To change a server certificate name the requester must have appropriate permissions on both the source object and the target object. For example, to change the name from ProductionCert to ProdCert, the entity making the request must have permission on ProductionCert and ProdCert, or must have permission on all (*). For more information about permissions, see Permissions and Policies. ", + "UpdateSigningCertificate": "

Changes the status of the specified signing certificate from active to disabled, or vice versa. This action can be used to disable a user's signing certificate as part of a certificate rotation work flow.

If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

", + "UpdateUser": "

Updates the name and/or the path of the specified user.

You should understand the implications of changing a user's path or name. For more information, see Renaming Users and Groups in the Using IAM guide. To change a user name the requester must have appropriate permissions on both the source object and the target object. For example, to change Bob to Robert, the entity making the request must have permission on Bob and Robert, or must have permission on all (*). For more information about permissions, see Permissions and Policies. ", + "UploadSSHPublicKey": "

Uploads an SSH public key and associates it with the specified IAM user.

The SSH public key uploaded by this action can be used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

", + "UploadServerCertificate": "

Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.

For information about the number of server certificates you can upload, see Limitations on IAM Entities in the Using IAM guide.

Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling UploadServerCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide. ", + "UploadSigningCertificate": "

Uploads an X.509 signing certificate and associates it with the specified user. Some AWS services use X.509 signing certificates to validate requests that are signed with a corresponding private key. When you upload the certificate, its default status is Active.

If the UserName field is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

Because the body of a X.509 certificate can be large, you should use POST rather than GET when calling UploadSigningCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAMguide. " + }, + "service": "AWS Identity and Access Management

AWS Identity and Access Management (IAM) is a web service that you can use to manage users and user permissions under your AWS account. This guide provides descriptions of IAM actions that you can call programmatically. For general information about IAM, see AWS Identity and Access Management (IAM). For the user guide for IAM, see Using IAM.

AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to IAM and AWS. For example, the SDKs take care of tasks such as cryptographically signing requests (see below), managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page.

We recommend that you use the AWS SDKs to make programmatic API calls to IAM. However, you can also use the IAM Query API to make direct calls to the IAM web service. To learn more about the IAM Query API, see Making Query Requests in the Using IAM guide. IAM supports GET and POST requests for all actions. That is, the API does not require you to use GET for some actions and POST for others. However, GET requests are subject to the limitation size of a URL. Therefore, for operations that require larger sizes, use a POST request.

Signing Requests

Requests must be signed using an access key ID and a secret access key. We strongly recommend that you do not use your AWS account access key ID and secret access key for everyday work with IAM. You can use the access key ID and secret access key for an IAM user or you can use the AWS Security Token Service to generate temporary security credentials and use those to sign requests.

To sign requests, we recommend that you use Signature Version 4. If you have an existing application that uses Signature Version 2, you do not have to update it to use Signature Version 4. However, some operations now require Signature Version 4. The documentation for operations that require version 4 indicate this requirement.

Additional Resources

For more information, see the following:

  • AWS Security Credentials. This topic provides general information about the types of credentials used for accessing AWS.
  • IAM Best Practices. This topic presents a list of suggestions for using the IAM service to help secure your AWS resources.
  • AWS Security Token Service. This guide describes how to create and use temporary security credentials.
  • Signing AWS API Requests. This set of topics walk you through the process of signing a request using an access key ID and secret access key.
", + "shapes": { + "AccessKey": { + "base": "

Contains information about an AWS access key.

This data type is used as a response element in the CreateAccessKey and ListAccessKeys actions.

The SecretAccessKey value is returned only in response to CreateAccessKey. You can get a secret access key only when you first create an access key; you cannot recover the secret access key later. If you lose a secret access key, you must create a new access key. ", + "refs": { + "CreateAccessKeyResponse$AccessKey": "

Information about the access key.

" + } + }, + "AccessKeyLastUsed": { + "base": "

Contains information about the last time an AWS access key was used.

This data type is used as a response element in the GetAccessKeyLastUsed action.

", + "refs": { + "GetAccessKeyLastUsedResponse$AccessKeyLastUsed": "

Contains information about the last time the access key was used.

" + } + }, + "AccessKeyMetadata": { + "base": "

Contains information about an AWS access key, without its secret key.

This data type is used as a response element in the ListAccessKeys action.

", + "refs": { + "accessKeyMetadataListType$member": null + } + }, + "AddClientIDToOpenIDConnectProviderRequest": { + "base": null, + "refs": { + } + }, + "AddRoleToInstanceProfileRequest": { + "base": null, + "refs": { + } + }, + "AddUserToGroupRequest": { + "base": null, + "refs": { + } + }, + "AttachGroupPolicyRequest": { + "base": null, + "refs": { + } + }, + "AttachRolePolicyRequest": { + "base": null, + "refs": { + } + }, + "AttachUserPolicyRequest": { + "base": null, + "refs": { + } + }, + "AttachedPolicy": { + "base": "

Contains information about an attached policy.

An attached policy is a managed policy that has been attached to a user, group, or role. This data type is used as a response element in the ListAttachedGroupPolicies, ListAttachedRolePolicies, ListAttachedUserPolicies, and GetAccountAuthorizationDetails actions.

For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "refs": { + "attachedPoliciesListType$member": null + } + }, + "BootstrapDatum": { + "base": null, + "refs": { + "VirtualMFADevice$Base32StringSeed": "

The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.

", + "VirtualMFADevice$QRCodePNG": "

A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments, AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in Base32 format. The Base32String value is Base64-encoded.

" + } + }, + "ChangePasswordRequest": { + "base": null, + "refs": { + } + }, + "CreateAccessKeyRequest": { + "base": null, + "refs": { + } + }, + "CreateAccessKeyResponse": { + "base": "

Contains the response to a successful CreateAccessKey request.

", + "refs": { + } + }, + "CreateAccountAliasRequest": { + "base": null, + "refs": { + } + }, + "CreateGroupRequest": { + "base": null, + "refs": { + } + }, + "CreateGroupResponse": { + "base": "

Contains the response to a successful CreateGroup request.

", + "refs": { + } + }, + "CreateInstanceProfileRequest": { + "base": null, + "refs": { + } + }, + "CreateInstanceProfileResponse": { + "base": "

Contains the response to a successful CreateInstanceProfile request.

", + "refs": { + } + }, + "CreateLoginProfileRequest": { + "base": null, + "refs": { + } + }, + "CreateLoginProfileResponse": { + "base": "

Contains the response to a successful CreateLoginProfile request.

", + "refs": { + } + }, + "CreateOpenIDConnectProviderRequest": { + "base": null, + "refs": { + } + }, + "CreateOpenIDConnectProviderResponse": { + "base": "

Contains the response to a successful CreateOpenIDConnectProvider request.

", + "refs": { + } + }, + "CreatePolicyRequest": { + "base": null, + "refs": { + } + }, + "CreatePolicyResponse": { + "base": "

Contains the response to a successful CreatePolicy request.

", + "refs": { + } + }, + "CreatePolicyVersionRequest": { + "base": null, + "refs": { + } + }, + "CreatePolicyVersionResponse": { + "base": "

Contains the response to a successful CreatePolicyVersion request.

", + "refs": { + } + }, + "CreateRoleRequest": { + "base": null, + "refs": { + } + }, + "CreateRoleResponse": { + "base": "

Contains the response to a successful CreateRole request.

", + "refs": { + } + }, + "CreateSAMLProviderRequest": { + "base": null, + "refs": { + } + }, + "CreateSAMLProviderResponse": { + "base": "

Contains the response to a successful CreateSAMLProvider request.

", + "refs": { + } + }, + "CreateUserRequest": { + "base": null, + "refs": { + } + }, + "CreateUserResponse": { + "base": "

Contains the response to a successful CreateUser request.

", + "refs": { + } + }, + "CreateVirtualMFADeviceRequest": { + "base": null, + "refs": { + } + }, + "CreateVirtualMFADeviceResponse": { + "base": "

Contains the response to a successful CreateVirtualMFADevice request.

", + "refs": { + } + }, + "CredentialReportExpiredException": { + "base": "

The request was rejected because the most recent credential report has expired. To generate a new credential report, use GenerateCredentialReport. For more information about credential report expiration, see Getting Credential Reports in the Using IAM guide.

", + "refs": { + } + }, + "CredentialReportNotPresentException": { + "base": "

The request was rejected because the credential report does not exist. To generate a credential report, use GenerateCredentialReport.

", + "refs": { + } + }, + "CredentialReportNotReadyException": { + "base": "

The request was rejected because the credential report is still being generated.

", + "refs": { + } + }, + "DeactivateMFADeviceRequest": { + "base": null, + "refs": { + } + }, + "DeleteAccessKeyRequest": { + "base": null, + "refs": { + } + }, + "DeleteAccountAliasRequest": { + "base": null, + "refs": { + } + }, + "DeleteConflictException": { + "base": "

The request was rejected because it attempted to delete a resource that has attached subordinate entities. The error message describes these entities.

", + "refs": { + } + }, + "DeleteGroupPolicyRequest": { + "base": null, + "refs": { + } + }, + "DeleteGroupRequest": { + "base": null, + "refs": { + } + }, + "DeleteInstanceProfileRequest": { + "base": null, + "refs": { + } + }, + "DeleteLoginProfileRequest": { + "base": null, + "refs": { + } + }, + "DeleteOpenIDConnectProviderRequest": { + "base": null, + "refs": { + } + }, + "DeletePolicyRequest": { + "base": null, + "refs": { + } + }, + "DeletePolicyVersionRequest": { + "base": null, + "refs": { + } + }, + "DeleteRolePolicyRequest": { + "base": null, + "refs": { + } + }, + "DeleteRoleRequest": { + "base": null, + "refs": { + } + }, + "DeleteSAMLProviderRequest": { + "base": null, + "refs": { + } + }, + "DeleteSSHPublicKeyRequest": { + "base": null, + "refs": { + } + }, + "DeleteServerCertificateRequest": { + "base": null, + "refs": { + } + }, + "DeleteSigningCertificateRequest": { + "base": null, + "refs": { + } + }, + "DeleteUserPolicyRequest": { + "base": null, + "refs": { + } + }, + "DeleteUserRequest": { + "base": null, + "refs": { + } + }, + "DeleteVirtualMFADeviceRequest": { + "base": null, + "refs": { + } + }, + "DetachGroupPolicyRequest": { + "base": null, + "refs": { + } + }, + "DetachRolePolicyRequest": { + "base": null, + "refs": { + } + }, + "DetachUserPolicyRequest": { + "base": null, + "refs": { + } + }, + "DuplicateCertificateException": { + "base": "

The request was rejected because the same certificate is associated with an IAM user in the account.

", + "refs": { + } + }, + "DuplicateSSHPublicKeyException": { + "base": "

The request was rejected because the SSH public key is already associated with the specified IAM user.

", + "refs": { + } + }, + "EnableMFADeviceRequest": { + "base": null, + "refs": { + } + }, + "EntityAlreadyExistsException": { + "base": "

The request was rejected because it attempted to create a resource that already exists.

", + "refs": { + } + }, + "EntityTemporarilyUnmodifiableException": { + "base": "

The request was rejected because it referenced an entity that is temporarily unmodifiable, such as a user name that was deleted and then recreated. The error indicates that the request is likely to succeed if you try again after waiting several minutes. The error message describes the entity.

", + "refs": { + } + }, + "EntityType": { + "base": null, + "refs": { + "ListEntitiesForPolicyRequest$EntityFilter": "

The entity type to use for filtering the results.

For example, when EntityFilter is Role, only the roles that are attached to the specified policy are returned. This parameter is optional. If it is not included, all attached entities (users, groups, and roles) are returned.

", + "entityListType$member": null + } + }, + "GenerateCredentialReportResponse": { + "base": "

Contains the response to a successful GenerateCredentialReport request.

", + "refs": { + } + }, + "GetAccessKeyLastUsedRequest": { + "base": null, + "refs": { + } + }, + "GetAccessKeyLastUsedResponse": { + "base": "

Contains the response to a successful GetAccessKeyLastUsed request. It is also returned as a member of the AccessKeyMetaData structure returned by the ListAccessKeys action.

", + "refs": { + } + }, + "GetAccountAuthorizationDetailsRequest": { + "base": null, + "refs": { + } + }, + "GetAccountAuthorizationDetailsResponse": { + "base": "

Contains the response to a successful GetAccountAuthorizationDetails request.

", + "refs": { + } + }, + "GetAccountPasswordPolicyResponse": { + "base": "

Contains the response to a successful GetAccountPasswordPolicy request.

", + "refs": { + } + }, + "GetAccountSummaryResponse": { + "base": "

Contains the response to a successful GetAccountSummary request.

", + "refs": { + } + }, + "GetCredentialReportResponse": { + "base": "

Contains the response to a successful GetCredentialReport request.

", + "refs": { + } + }, + "GetGroupPolicyRequest": { + "base": null, + "refs": { + } + }, + "GetGroupPolicyResponse": { + "base": "

Contains the response to a successful GetGroupPolicy request.

", + "refs": { + } + }, + "GetGroupRequest": { + "base": null, + "refs": { + } + }, + "GetGroupResponse": { + "base": "

Contains the response to a successful GetGroup request.

", + "refs": { + } + }, + "GetInstanceProfileRequest": { + "base": null, + "refs": { + } + }, + "GetInstanceProfileResponse": { + "base": "

Contains the response to a successful GetInstanceProfile request.

", + "refs": { + } + }, + "GetLoginProfileRequest": { + "base": null, + "refs": { + } + }, + "GetLoginProfileResponse": { + "base": "

Contains the response to a successful GetLoginProfile request.

", + "refs": { + } + }, + "GetOpenIDConnectProviderRequest": { + "base": null, + "refs": { + } + }, + "GetOpenIDConnectProviderResponse": { + "base": "

Contains the response to a successful GetOpenIDConnectProvider request.

", + "refs": { + } + }, + "GetPolicyRequest": { + "base": null, + "refs": { + } + }, + "GetPolicyResponse": { + "base": "

Contains the response to a successful GetPolicy request.

", + "refs": { + } + }, + "GetPolicyVersionRequest": { + "base": null, + "refs": { + } + }, + "GetPolicyVersionResponse": { + "base": "

Contains the response to a successful GetPolicyVersion request.

", + "refs": { + } + }, + "GetRolePolicyRequest": { + "base": null, + "refs": { + } + }, + "GetRolePolicyResponse": { + "base": "

Contains the response to a successful GetRolePolicy request.

", + "refs": { + } + }, + "GetRoleRequest": { + "base": null, + "refs": { + } + }, + "GetRoleResponse": { + "base": "

Contains the response to a successful GetRole request.

", + "refs": { + } + }, + "GetSAMLProviderRequest": { + "base": null, + "refs": { + } + }, + "GetSAMLProviderResponse": { + "base": "

Contains the response to a successful GetSAMLProvider request.

", + "refs": { + } + }, + "GetSSHPublicKeyRequest": { + "base": null, + "refs": { + } + }, + "GetSSHPublicKeyResponse": { + "base": "

Contains the response to a successful GetSSHPublicKey request.

", + "refs": { + } + }, + "GetServerCertificateRequest": { + "base": null, + "refs": { + } + }, + "GetServerCertificateResponse": { + "base": "

Contains the response to a successful GetServerCertificate request.

", + "refs": { + } + }, + "GetUserPolicyRequest": { + "base": null, + "refs": { + } + }, + "GetUserPolicyResponse": { + "base": "

Contains the response to a successful GetUserPolicy request.

", + "refs": { + } + }, + "GetUserRequest": { + "base": null, + "refs": { + } + }, + "GetUserResponse": { + "base": "

Contains the response to a successful GetUser request.

", + "refs": { + } + }, + "Group": { + "base": "

Contains information about an IAM group entity.

This data type is used as a response element in the following actions:

", + "refs": { + "CreateGroupResponse$Group": "

Information about the group.

", + "GetGroupResponse$Group": "

Information about the group.

", + "groupListType$member": null + } + }, + "GroupDetail": { + "base": "

Contains information about an IAM group, including all of the group's policies.

This data type is used as a response element in the GetAccountAuthorizationDetails action.

", + "refs": { + "groupDetailListType$member": null + } + }, + "InstanceProfile": { + "base": "

Contains information about an instance profile.

This data type is used as a response element in the following actions:

", + "refs": { + "CreateInstanceProfileResponse$InstanceProfile": "

Information about the instance profile.

", + "GetInstanceProfileResponse$InstanceProfile": "

Information about the instance profile.

", + "instanceProfileListType$member": null + } + }, + "InvalidAuthenticationCodeException": { + "base": "

The request was rejected because the authentication code was not recognized. The error message describes the specific error.

", + "refs": { + } + }, + "InvalidCertificateException": { + "base": "

The request was rejected because the certificate is invalid.

", + "refs": { + } + }, + "InvalidInputException": { + "base": "

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

", + "refs": { + } + }, + "InvalidPublicKeyException": { + "base": "

The request was rejected because the public key is malformed or otherwise invalid.

", + "refs": { + } + }, + "InvalidUserTypeException": { + "base": "

The request was rejected because the type of user for the transaction was incorrect.

", + "refs": { + } + }, + "KeyPairMismatchException": { + "base": "

The request was rejected because the public key certificate and the private key do not match.

", + "refs": { + } + }, + "LimitExceededException": { + "base": "

The request was rejected because it attempted to create resources beyond the current AWS account limits. The error message describes the limit exceeded.

", + "refs": { + } + }, + "ListAccessKeysRequest": { + "base": null, + "refs": { + } + }, + "ListAccessKeysResponse": { + "base": "

Contains the response to a successful ListAccessKeys request.

", + "refs": { + } + }, + "ListAccountAliasesRequest": { + "base": null, + "refs": { + } + }, + "ListAccountAliasesResponse": { + "base": "

Contains the response to a successful ListAccountAliases request.

", + "refs": { + } + }, + "ListAttachedGroupPoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListAttachedGroupPoliciesResponse": { + "base": "

Contains the response to a successful ListAttachedGroupPolicies request.

", + "refs": { + } + }, + "ListAttachedRolePoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListAttachedRolePoliciesResponse": { + "base": "

Contains the response to a successful ListAttachedRolePolicies request.

", + "refs": { + } + }, + "ListAttachedUserPoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListAttachedUserPoliciesResponse": { + "base": "

Contains the response to a successful ListAttachedUserPolicies request.

", + "refs": { + } + }, + "ListEntitiesForPolicyRequest": { + "base": null, + "refs": { + } + }, + "ListEntitiesForPolicyResponse": { + "base": "

Contains the response to a successful ListEntitiesForPolicy request.

", + "refs": { + } + }, + "ListGroupPoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListGroupPoliciesResponse": { + "base": "

Contains the response to a successful ListGroupPolicies request.

", + "refs": { + } + }, + "ListGroupsForUserRequest": { + "base": null, + "refs": { + } + }, + "ListGroupsForUserResponse": { + "base": "

Contains the response to a successful ListGroupsForUser request.

", + "refs": { + } + }, + "ListGroupsRequest": { + "base": null, + "refs": { + } + }, + "ListGroupsResponse": { + "base": "

Contains the response to a successful ListGroups request.

", + "refs": { + } + }, + "ListInstanceProfilesForRoleRequest": { + "base": null, + "refs": { + } + }, + "ListInstanceProfilesForRoleResponse": { + "base": "

Contains the response to a successful ListInstanceProfilesForRole request.

", + "refs": { + } + }, + "ListInstanceProfilesRequest": { + "base": null, + "refs": { + } + }, + "ListInstanceProfilesResponse": { + "base": "

Contains the response to a successful ListInstanceProfiles request.

", + "refs": { + } + }, + "ListMFADevicesRequest": { + "base": null, + "refs": { + } + }, + "ListMFADevicesResponse": { + "base": "

Contains the response to a successful ListMFADevices request.

", + "refs": { + } + }, + "ListOpenIDConnectProvidersRequest": { + "base": null, + "refs": { + } + }, + "ListOpenIDConnectProvidersResponse": { + "base": "

Contains the response to a successful ListOpenIDConnectProviders request.

", + "refs": { + } + }, + "ListPoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListPoliciesResponse": { + "base": "

Contains the response to a successful ListPolicies request.

", + "refs": { + } + }, + "ListPolicyVersionsRequest": { + "base": null, + "refs": { + } + }, + "ListPolicyVersionsResponse": { + "base": "

Contains the response to a successful ListPolicyVersions request.

", + "refs": { + } + }, + "ListRolePoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListRolePoliciesResponse": { + "base": "

Contains the response to a successful ListRolePolicies request.

", + "refs": { + } + }, + "ListRolesRequest": { + "base": null, + "refs": { + } + }, + "ListRolesResponse": { + "base": "

Contains the response to a successful ListRoles request.

", + "refs": { + } + }, + "ListSAMLProvidersRequest": { + "base": null, + "refs": { + } + }, + "ListSAMLProvidersResponse": { + "base": "

Contains the response to a successful ListSAMLProviders request.

", + "refs": { + } + }, + "ListSSHPublicKeysRequest": { + "base": null, + "refs": { + } + }, + "ListSSHPublicKeysResponse": { + "base": "

Contains the response to a successful ListSSHPublicKeys request.

", + "refs": { + } + }, + "ListServerCertificatesRequest": { + "base": null, + "refs": { + } + }, + "ListServerCertificatesResponse": { + "base": "

Contains the response to a successful ListServerCertificates request.

", + "refs": { + } + }, + "ListSigningCertificatesRequest": { + "base": null, + "refs": { + } + }, + "ListSigningCertificatesResponse": { + "base": "

Contains the response to a successful ListSigningCertificates request.

", + "refs": { + } + }, + "ListUserPoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListUserPoliciesResponse": { + "base": "

Contains the response to a successful ListUserPolicies request.

", + "refs": { + } + }, + "ListUsersRequest": { + "base": null, + "refs": { + } + }, + "ListUsersResponse": { + "base": "

Contains the response to a successful ListUsers request.

", + "refs": { + } + }, + "ListVirtualMFADevicesRequest": { + "base": null, + "refs": { + } + }, + "ListVirtualMFADevicesResponse": { + "base": "

Contains the response to a successful ListVirtualMFADevices request.

", + "refs": { + } + }, + "LoginProfile": { + "base": "

Contains the user name and password create date for a user.

This data type is used as a response element in the CreateLoginProfile and GetLoginProfile actions.

", + "refs": { + "CreateLoginProfileResponse$LoginProfile": "

The user name and password create date.

", + "GetLoginProfileResponse$LoginProfile": "

The user name and password create date for the user.

" + } + }, + "MFADevice": { + "base": "

Contains information about an MFA device.

This data type is used as a response element in the ListMFADevices action.

", + "refs": { + "mfaDeviceListType$member": null + } + }, + "MalformedCertificateException": { + "base": "

The request was rejected because the certificate was malformed or expired. The error message describes the specific error.

", + "refs": { + } + }, + "MalformedPolicyDocumentException": { + "base": "

The request was rejected because the policy document was malformed. The error message describes the specific error.

", + "refs": { + } + }, + "ManagedPolicyDetail": { + "base": "

Contains information about a managed policy, including the policy's ARN, versions, and the number of principal entities (users, groups, and roles) that the policy is attached to.

This data type is used as a response element in the GetAccountAuthorizationDetails action.

For more information about managed policies, see Managed Policies and Inline Policies in the Using IAM guide.

", + "refs": { + "ManagedPolicyDetailListType$member": null + } + }, + "ManagedPolicyDetailListType": { + "base": null, + "refs": { + "GetAccountAuthorizationDetailsResponse$Policies": "

A list containing information about managed policies.

" + } + }, + "NoSuchEntityException": { + "base": "

The request was rejected because it referenced an entity that does not exist. The error message describes the entity.

", + "refs": { + } + }, + "OpenIDConnectProviderListEntry": { + "base": "

Contains the Amazon Resource Name (ARN) for an IAM OpenID Connect provider.

", + "refs": { + "OpenIDConnectProviderListType$member": null + } + }, + "OpenIDConnectProviderListType": { + "base": "

Contains a list of IAM OpenID Connect providers.

", + "refs": { + "ListOpenIDConnectProvidersResponse$OpenIDConnectProviderList": "

The list of IAM OpenID Connect providers in the AWS account.

" + } + }, + "OpenIDConnectProviderUrlType": { + "base": "

Contains a URL that specifies the endpoint for an OpenID Connect provider.

", + "refs": { + "CreateOpenIDConnectProviderRequest$Url": "

The URL of the identity provider. The URL must begin with \"https://\" and should correspond to the iss claim in the provider's OpenID Connect ID tokens. Per the OIDC standard, path components are allowed but query parameters are not. Typically the URL consists of only a host name, like \"https://server.example.org\" or \"https://example.com\".

You cannot register the same provider multiple times in a single AWS account. If you try to submit a URL that has already been used for an OpenID Connect provider in the AWS account, you will get an error.

", + "GetOpenIDConnectProviderResponse$Url": "

The URL that the IAM OpenID Connect provider is associated with. For more information, see CreateOpenIDConnectProvider.

" + } + }, + "PasswordPolicy": { + "base": "

Contains information about the account password policy.

This data type is used as a response element in the GetAccountPasswordPolicy action.

", + "refs": { + "GetAccountPasswordPolicyResponse$PasswordPolicy": null + } + }, + "PasswordPolicyViolationException": { + "base": "

The request was rejected because the provided password did not meet the requirements imposed by the account password policy.

", + "refs": { + } + }, + "Policy": { + "base": "

Contains information about a managed policy.

This data type is used as a response element in the CreatePolicy, GetPolicy, and ListPolicies actions.

For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "refs": { + "CreatePolicyResponse$Policy": "

Information about the policy.

", + "GetPolicyResponse$Policy": "

Information about the policy.

", + "policyListType$member": null + } + }, + "PolicyDetail": { + "base": "

Contains information about an IAM policy, including the policy document.

This data type is used as a response element in the GetAccountAuthorizationDetails action.

", + "refs": { + "policyDetailListType$member": null + } + }, + "PolicyGroup": { + "base": "

Contains information about a group that a managed policy is attached to.

This data type is used as a response element in the ListEntitiesForPolicy action.

For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "refs": { + "PolicyGroupListType$member": null + } + }, + "PolicyGroupListType": { + "base": null, + "refs": { + "ListEntitiesForPolicyResponse$PolicyGroups": "

A list of groups that the policy is attached to.

" + } + }, + "PolicyRole": { + "base": "

Contains information about a role that a managed policy is attached to.

This data type is used as a response element in the ListEntitiesForPolicy action.

For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "refs": { + "PolicyRoleListType$member": null + } + }, + "PolicyRoleListType": { + "base": null, + "refs": { + "ListEntitiesForPolicyResponse$PolicyRoles": "

A list of roles that the policy is attached to.

" + } + }, + "PolicyUser": { + "base": "

Contains information about a user that a managed policy is attached to.

This data type is used as a response element in the ListEntitiesForPolicy action.

For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "refs": { + "PolicyUserListType$member": null + } + }, + "PolicyUserListType": { + "base": null, + "refs": { + "ListEntitiesForPolicyResponse$PolicyUsers": "

A list of users that the policy is attached to.

" + } + }, + "PolicyVersion": { + "base": "

Contains information about a version of a managed policy.

This data type is used as a response element in the CreatePolicyVersion, GetPolicyVersion, ListPolicyVersions, and GetAccountAuthorizationDetails actions.

For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

", + "refs": { + "CreatePolicyVersionResponse$PolicyVersion": "

Information about the policy version.

", + "GetPolicyVersionResponse$PolicyVersion": "

Information about the policy version.

For more information about managed policy versions, see Versioning for Managed Policies in the Using IAM guide.

", + "policyDocumentVersionListType$member": null + } + }, + "PutGroupPolicyRequest": { + "base": null, + "refs": { + } + }, + "PutRolePolicyRequest": { + "base": null, + "refs": { + } + }, + "PutUserPolicyRequest": { + "base": null, + "refs": { + } + }, + "RemoveClientIDFromOpenIDConnectProviderRequest": { + "base": null, + "refs": { + } + }, + "RemoveRoleFromInstanceProfileRequest": { + "base": null, + "refs": { + } + }, + "RemoveUserFromGroupRequest": { + "base": null, + "refs": { + } + }, + "ReportContentType": { + "base": null, + "refs": { + "GetCredentialReportResponse$Content": "

Contains the credential report. The report is Base64-encoded.

" + } + }, + "ReportFormatType": { + "base": null, + "refs": { + "GetCredentialReportResponse$ReportFormat": "

The format (MIME type) of the credential report.

" + } + }, + "ReportStateDescriptionType": { + "base": null, + "refs": { + "GenerateCredentialReportResponse$Description": "

Information about the credential report.

" + } + }, + "ReportStateType": { + "base": null, + "refs": { + "GenerateCredentialReportResponse$State": "

Information about the state of the credential report.

" + } + }, + "ResyncMFADeviceRequest": { + "base": null, + "refs": { + } + }, + "Role": { + "base": "

Contains information about an IAM role.

This data type is used as a response element in the following actions:

", + "refs": { + "CreateRoleResponse$Role": "

Information about the role.

", + "GetRoleResponse$Role": "

Information about the role.

", + "roleListType$member": null + } + }, + "RoleDetail": { + "base": "

Contains information about an IAM role, including all of the role's policies.

This data type is used as a response element in the GetAccountAuthorizationDetails action.

", + "refs": { + "roleDetailListType$member": null + } + }, + "SAMLMetadataDocumentType": { + "base": null, + "refs": { + "CreateSAMLProviderRequest$SAMLMetadataDocument": "

An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.

For more information, see Creating Temporary Security Credentials for SAML Federation in the Using Temporary Security Credentials guide.

", + "GetSAMLProviderResponse$SAMLMetadataDocument": "

The XML metadata document that includes information about an identity provider.

", + "UpdateSAMLProviderRequest$SAMLMetadataDocument": "

An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.

" + } + }, + "SAMLProviderListEntry": { + "base": "

Contains the list of SAML providers for this account.

", + "refs": { + "SAMLProviderListType$member": null + } + }, + "SAMLProviderListType": { + "base": null, + "refs": { + "ListSAMLProvidersResponse$SAMLProviderList": "

The list of SAML providers for this account.

" + } + }, + "SAMLProviderNameType": { + "base": null, + "refs": { + "CreateSAMLProviderRequest$Name": "

The name of the provider to create.

" + } + }, + "SSHPublicKey": { + "base": "

Contains information about an SSH public key.

This data type is used as a response element in the GetSSHPublicKey and UploadSSHPublicKey actions.

", + "refs": { + "GetSSHPublicKeyResponse$SSHPublicKey": "

Information about the SSH public key.

", + "UploadSSHPublicKeyResponse$SSHPublicKey": "

Contains information about the SSH public key.

" + } + }, + "SSHPublicKeyListType": { + "base": null, + "refs": { + "ListSSHPublicKeysResponse$SSHPublicKeys": "

A list of SSH public keys.

" + } + }, + "SSHPublicKeyMetadata": { + "base": "

Contains information about an SSH public key, without the key's body or fingerprint.

This data type is used as a response element in the ListSSHPublicKeys action.

", + "refs": { + "SSHPublicKeyListType$member": null + } + }, + "ServerCertificate": { + "base": "

Contains information about a server certificate.

This data type is used as a response element in the GetServerCertificate action.

", + "refs": { + "GetServerCertificateResponse$ServerCertificate": "

Information about the server certificate.

" + } + }, + "ServerCertificateMetadata": { + "base": "

Contains information about a server certificate without its certificate body, certificate chain, and private key.

This data type is used as a response element in the UploadServerCertificate and ListServerCertificates actions.

", + "refs": { + "ServerCertificate$ServerCertificateMetadata": "

The meta information of the server certificate, such as its name, path, ID, and ARN.

", + "UploadServerCertificateResponse$ServerCertificateMetadata": "

The meta information of the uploaded server certificate without its certificate body, certificate chain, and private key.

", + "serverCertificateMetadataListType$member": null + } + }, + "ServiceFailureException": { + "base": "

The request processing has failed because of an unknown error, exception or failure.

", + "refs": { + } + }, + "SetDefaultPolicyVersionRequest": { + "base": null, + "refs": { + } + }, + "SigningCertificate": { + "base": "

Contains information about an X.509 signing certificate.

This data type is used as a response element in the UploadSigningCertificate and ListSigningCertificates actions.

", + "refs": { + "UploadSigningCertificateResponse$Certificate": "

Information about the certificate.

", + "certificateListType$member": null + } + }, + "UnrecognizedPublicKeyEncodingException": { + "base": "

The request was rejected because the public key encoding format is unsupported or unrecognized.

", + "refs": { + } + }, + "UpdateAccessKeyRequest": { + "base": null, + "refs": { + } + }, + "UpdateAccountPasswordPolicyRequest": { + "base": null, + "refs": { + } + }, + "UpdateAssumeRolePolicyRequest": { + "base": null, + "refs": { + } + }, + "UpdateGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateLoginProfileRequest": { + "base": null, + "refs": { + } + }, + "UpdateOpenIDConnectProviderThumbprintRequest": { + "base": null, + "refs": { + } + }, + "UpdateSAMLProviderRequest": { + "base": null, + "refs": { + } + }, + "UpdateSAMLProviderResponse": { + "base": "

Contains the response to a successful UpdateSAMLProvider request.

", + "refs": { + } + }, + "UpdateSSHPublicKeyRequest": { + "base": null, + "refs": { + } + }, + "UpdateServerCertificateRequest": { + "base": null, + "refs": { + } + }, + "UpdateSigningCertificateRequest": { + "base": null, + "refs": { + } + }, + "UpdateUserRequest": { + "base": null, + "refs": { + } + }, + "UploadSSHPublicKeyRequest": { + "base": null, + "refs": { + } + }, + "UploadSSHPublicKeyResponse": { + "base": "

Contains the response to a successful UploadSSHPublicKey request.

", + "refs": { + } + }, + "UploadServerCertificateRequest": { + "base": null, + "refs": { + } + }, + "UploadServerCertificateResponse": { + "base": "

Contains the response to a successful UploadServerCertificate request.

", + "refs": { + } + }, + "UploadSigningCertificateRequest": { + "base": null, + "refs": { + } + }, + "UploadSigningCertificateResponse": { + "base": "

Contains the response to a successful UploadSigningCertificate request.

", + "refs": { + } + }, + "User": { + "base": "

Contains information about an IAM user entity.

This data type is used as a response element in the following actions:

", + "refs": { + "CreateUserResponse$User": "

Information about the user.

", + "GetUserResponse$User": "

Information about the user.

", + "VirtualMFADevice$User": null, + "userListType$member": null + } + }, + "UserDetail": { + "base": "

Contains information about an IAM user, including all the user's policies and all the IAM groups the user is in.

This data type is used as a response element in the GetAccountAuthorizationDetails action.

", + "refs": { + "userDetailListType$member": null + } + }, + "VirtualMFADevice": { + "base": "

Contains information about a virtual MFA device.

", + "refs": { + "CreateVirtualMFADeviceResponse$VirtualMFADevice": "

A newly created virtual MFA device.

", + "virtualMFADeviceListType$member": null + } + }, + "accessKeyIdType": { + "base": null, + "refs": { + "AccessKey$AccessKeyId": "

The ID for this access key.

", + "AccessKeyMetadata$AccessKeyId": "

The ID for this access key.

", + "DeleteAccessKeyRequest$AccessKeyId": "

The access key ID for the access key ID and secret access key you want to delete.

", + "GetAccessKeyLastUsedRequest$AccessKeyId": "

The identifier of an access key.

", + "UpdateAccessKeyRequest$AccessKeyId": "

The access key ID of the secret access key you want to update.

" + } + }, + "accessKeyMetadataListType": { + "base": "

Contains a list of access key metadata.

This data type is used as a response element in the ListAccessKeys action.

", + "refs": { + "ListAccessKeysResponse$AccessKeyMetadata": "

A list of access key metadata.

" + } + }, + "accessKeySecretType": { + "base": null, + "refs": { + "AccessKey$SecretAccessKey": "

The secret key used to sign requests.

" + } + }, + "accountAliasListType": { + "base": null, + "refs": { + "ListAccountAliasesResponse$AccountAliases": "

A list of aliases associated with the account.

" + } + }, + "accountAliasType": { + "base": null, + "refs": { + "CreateAccountAliasRequest$AccountAlias": "

The account alias to create.

", + "DeleteAccountAliasRequest$AccountAlias": "

The name of the account alias to delete.

", + "accountAliasListType$member": null + } + }, + "arnType": { + "base": "

The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources.

For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "refs": { + "AddClientIDToOpenIDConnectProviderRequest$OpenIDConnectProviderArn": "

The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider to add the client ID to. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders action.

", + "AttachGroupPolicyRequest$PolicyArn": null, + "AttachRolePolicyRequest$PolicyArn": null, + "AttachUserPolicyRequest$PolicyArn": null, + "AttachedPolicy$PolicyArn": null, + "CreateOpenIDConnectProviderResponse$OpenIDConnectProviderArn": "

The Amazon Resource Name (ARN) of the IAM OpenID Connect provider that was created. For more information, see OpenIDConnectProviderListEntry.

", + "CreatePolicyVersionRequest$PolicyArn": null, + "CreateSAMLProviderResponse$SAMLProviderArn": "

The Amazon Resource Name (ARN) of the SAML provider.

", + "DeleteOpenIDConnectProviderRequest$OpenIDConnectProviderArn": "

The Amazon Resource Name (ARN) of the IAM OpenID Connect provider to delete. You can get a list of OpenID Connect provider ARNs by using the ListOpenIDConnectProviders action.

", + "DeletePolicyRequest$PolicyArn": null, + "DeletePolicyVersionRequest$PolicyArn": null, + "DeleteSAMLProviderRequest$SAMLProviderArn": "

The Amazon Resource Name (ARN) of the SAML provider to delete.

", + "DetachGroupPolicyRequest$PolicyArn": null, + "DetachRolePolicyRequest$PolicyArn": null, + "DetachUserPolicyRequest$PolicyArn": null, + "GetOpenIDConnectProviderRequest$OpenIDConnectProviderArn": "

The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider to get information for. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders action.

", + "GetPolicyRequest$PolicyArn": null, + "GetPolicyVersionRequest$PolicyArn": null, + "GetSAMLProviderRequest$SAMLProviderArn": "

The Amazon Resource Name (ARN) of the SAML provider to get information about.

", + "Group$Arn": "

The Amazon Resource Name (ARN) specifying the group. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.

", + "GroupDetail$Arn": null, + "InstanceProfile$Arn": "

The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.

", + "ListEntitiesForPolicyRequest$PolicyArn": null, + "ListPolicyVersionsRequest$PolicyArn": null, + "ManagedPolicyDetail$Arn": null, + "OpenIDConnectProviderListEntry$Arn": null, + "Policy$Arn": null, + "RemoveClientIDFromOpenIDConnectProviderRequest$OpenIDConnectProviderArn": "

The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider to remove the client ID from. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders action.

", + "Role$Arn": "

The Amazon Resource Name (ARN) specifying the role. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.

", + "RoleDetail$Arn": null, + "SAMLProviderListEntry$Arn": "

The Amazon Resource Name (ARN) of the SAML provider.

", + "ServerCertificateMetadata$Arn": "

The Amazon Resource Name (ARN) specifying the server certificate. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.

", + "SetDefaultPolicyVersionRequest$PolicyArn": null, + "UpdateOpenIDConnectProviderThumbprintRequest$OpenIDConnectProviderArn": "

The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider to update the thumbprint for. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders action.

", + "UpdateSAMLProviderRequest$SAMLProviderArn": "

The Amazon Resource Name (ARN) of the SAML provider to update.

", + "UpdateSAMLProviderResponse$SAMLProviderArn": "

The Amazon Resource Name (ARN) of the SAML provider that was updated.

", + "User$Arn": "

The Amazon Resource Name (ARN) that identifies the user. For more information about ARNs and how to use ARNs in policies, see IAM Identifiers in the Using IAM guide.

", + "UserDetail$Arn": null + } + }, + "assignmentStatusType": { + "base": null, + "refs": { + "ListVirtualMFADevicesRequest$AssignmentStatus": "

The status (unassigned or assigned) of the devices to list. If you do not specify an AssignmentStatus, the action defaults to Any which lists both assigned and unassigned virtual MFA devices.

" + } + }, + "attachedPoliciesListType": { + "base": null, + "refs": { + "GroupDetail$AttachedManagedPolicies": "

A list of the managed policies attached to the group.

", + "ListAttachedGroupPoliciesResponse$AttachedPolicies": "

A list of the attached policies.

", + "ListAttachedRolePoliciesResponse$AttachedPolicies": "

A list of the attached policies.

", + "ListAttachedUserPoliciesResponse$AttachedPolicies": "

A list of the attached policies.

", + "RoleDetail$AttachedManagedPolicies": "

A list of managed policies attached to the role. These policies are the role's access (permissions) policies.

", + "UserDetail$AttachedManagedPolicies": "

A list of the managed policies attached to the user.

" + } + }, + "attachmentCountType": { + "base": null, + "refs": { + "ManagedPolicyDetail$AttachmentCount": "

The number of principal entities (users, groups, and roles) that the policy is attached to.

", + "Policy$AttachmentCount": "

The number of entities (users, groups, and roles) that the policy is attached to.

" + } + }, + "authenticationCodeType": { + "base": null, + "refs": { + "EnableMFADeviceRequest$AuthenticationCode1": "

An authentication code emitted by the device.

", + "EnableMFADeviceRequest$AuthenticationCode2": "

A subsequent authentication code emitted by the device.

", + "ResyncMFADeviceRequest$AuthenticationCode1": "

An authentication code emitted by the device.

", + "ResyncMFADeviceRequest$AuthenticationCode2": "

A subsequent authentication code emitted by the device.

" + } + }, + "booleanObjectType": { + "base": null, + "refs": { + "PasswordPolicy$HardExpiry": "

Specifies whether IAM users are prevented from setting a new password after their password has expired.

", + "UpdateAccountPasswordPolicyRequest$HardExpiry": "

Prevents IAM users from setting a new password after their password has expired.

Default value: false

", + "UpdateLoginProfileRequest$PasswordResetRequired": "

Require the specified user to set a new password on next sign-in.

" + } + }, + "booleanType": { + "base": null, + "refs": { + "CreateLoginProfileRequest$PasswordResetRequired": "

Specifies whether the user is required to set a new password on next sign-in.

", + "CreatePolicyVersionRequest$SetAsDefault": "

Specifies whether to set this version as the policy's default version.

When this parameter is true, the new policy version becomes the operative version; that is, the version that is in effect for the IAM users, groups, and roles that the policy is attached to.

For more information about managed policy versions, see Versioning for Managed Policies in the Using IAM guide.

", + "GetAccountAuthorizationDetailsResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "GetGroupResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListAccessKeysResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListAccountAliasesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListAttachedGroupPoliciesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListAttachedRolePoliciesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListAttachedUserPoliciesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListEntitiesForPolicyResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListGroupPoliciesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListGroupsForUserResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListGroupsResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListInstanceProfilesForRoleResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListInstanceProfilesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListMFADevicesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListPoliciesRequest$OnlyAttached": "

A flag to filter the results to only the attached policies.

When OnlyAttached is true, the returned list contains only the policies that are attached to a user, group, or role. When OnlyAttached is false, or when the parameter is not included, all policies are returned.

", + "ListPoliciesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListPolicyVersionsResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListRolePoliciesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListRolesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListSSHPublicKeysResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListServerCertificatesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListSigningCertificatesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListUserPoliciesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListUsersResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "ListVirtualMFADevicesResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

", + "LoginProfile$PasswordResetRequired": "

Specifies whether the user is required to set a new password on next sign-in.

", + "ManagedPolicyDetail$IsAttachable": "

Specifies whether the policy can be attached to an IAM user, group, or role.

", + "PasswordPolicy$RequireSymbols": "

Specifies whether to require symbols for IAM user passwords.

", + "PasswordPolicy$RequireNumbers": "

Specifies whether to require numbers for IAM user passwords.

", + "PasswordPolicy$RequireUppercaseCharacters": "

Specifies whether to require uppercase characters for IAM user passwords.

", + "PasswordPolicy$RequireLowercaseCharacters": "

Specifies whether to require lowercase characters for IAM user passwords.

", + "PasswordPolicy$AllowUsersToChangePassword": "

Specifies whether IAM users are allowed to change their own password.

", + "PasswordPolicy$ExpirePasswords": "

Specifies whether IAM users are required to change their password after a specified number of days.

", + "Policy$IsAttachable": "

Specifies whether the policy can be attached to an IAM user, group, or role.

", + "PolicyVersion$IsDefaultVersion": "

Specifies whether the policy version is set as the policy's default version.

", + "UpdateAccountPasswordPolicyRequest$RequireSymbols": "

Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters:

! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '

Default value: false

", + "UpdateAccountPasswordPolicyRequest$RequireNumbers": "

Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).

Default value: false

", + "UpdateAccountPasswordPolicyRequest$RequireUppercaseCharacters": "

Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin alphabet (A to Z).

Default value: false

", + "UpdateAccountPasswordPolicyRequest$RequireLowercaseCharacters": "

Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin alphabet (a to z).

Default value: false

", + "UpdateAccountPasswordPolicyRequest$AllowUsersToChangePassword": "

Allows all IAM users in your account to use the AWS Management Console to change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the Using IAM guide.

Default value: false

" + } + }, + "certificateBodyType": { + "base": null, + "refs": { + "ServerCertificate$CertificateBody": "

The contents of the public key certificate.

", + "SigningCertificate$CertificateBody": "

The contents of the signing certificate.

", + "UploadServerCertificateRequest$CertificateBody": "

The contents of the public key certificate in PEM-encoded format.

", + "UploadSigningCertificateRequest$CertificateBody": "

The contents of the signing certificate.

" + } + }, + "certificateChainType": { + "base": null, + "refs": { + "ServerCertificate$CertificateChain": "

The contents of the public key certificate chain.

", + "UploadServerCertificateRequest$CertificateChain": "

The contents of the certificate chain. This is typically a concatenation of the PEM-encoded public key certificates of the chain.

" + } + }, + "certificateIdType": { + "base": null, + "refs": { + "DeleteSigningCertificateRequest$CertificateId": "

The ID of the signing certificate to delete.

", + "SigningCertificate$CertificateId": "

The ID for the signing certificate.

", + "UpdateSigningCertificateRequest$CertificateId": "

The ID of the signing certificate you want to update.

" + } + }, + "certificateListType": { + "base": "

Contains a list of signing certificates.

This data type is used as a response element in the ListSigningCertificates action.

", + "refs": { + "ListSigningCertificatesResponse$Certificates": "

A list of the user's signing certificate information.

" + } + }, + "clientIDListType": { + "base": null, + "refs": { + "CreateOpenIDConnectProviderRequest$ClientIDList": "

A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.)

You can register multiple client IDs with the same provider. For example, you might have multiple applications that use the same OIDC provider. You cannot register more than 100 client IDs with a single IAM OIDC provider.

There is no defined format for a client ID. The CreateOpenIDConnectProviderRequest action accepts client IDs up to 255 characters long.

", + "GetOpenIDConnectProviderResponse$ClientIDList": "

A list of client IDs (also known as audiences) that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

" + } + }, + "clientIDType": { + "base": null, + "refs": { + "AddClientIDToOpenIDConnectProviderRequest$ClientID": "

The client ID (also known as audience) to add to the IAM OpenID Connect provider.

", + "RemoveClientIDFromOpenIDConnectProviderRequest$ClientID": "

The client ID (also known as audience) to remove from the IAM OpenID Connect provider. For more information about client IDs, see CreateOpenIDConnectProvider.

", + "clientIDListType$member": null + } + }, + "credentialReportExpiredExceptionMessage": { + "base": null, + "refs": { + "CredentialReportExpiredException$message": null + } + }, + "credentialReportNotPresentExceptionMessage": { + "base": null, + "refs": { + "CredentialReportNotPresentException$message": null + } + }, + "credentialReportNotReadyExceptionMessage": { + "base": null, + "refs": { + "CredentialReportNotReadyException$message": null + } + }, + "dateType": { + "base": null, + "refs": { + "AccessKey$CreateDate": "

The date when the access key was created.

", + "AccessKeyLastUsed$LastUsedDate": "

The date and time, in ISO 8601 date-time format, when the access key was most recently used. This field is null when:

  • The user does not have an access key.

  • An access key exists but has never been used, at least not since IAM started tracking this information on April 22nd, 2015.

  • There is no sign-in data associated with the user

", + "AccessKeyMetadata$CreateDate": "

The date when the access key was created.

", + "GetCredentialReportResponse$GeneratedTime": "

The date and time when the credential report was created, in ISO 8601 date-time format.

", + "GetOpenIDConnectProviderResponse$CreateDate": "

The date and time when the IAM OpenID Connect provider entity was created in the AWS account.

", + "GetSAMLProviderResponse$CreateDate": "

The date and time when the SAML provider was created.

", + "GetSAMLProviderResponse$ValidUntil": "

The expiration date and time for the SAML provider.

", + "Group$CreateDate": "

The date and time, in ISO 8601 date-time format, when the group was created.

", + "GroupDetail$CreateDate": "

The date and time, in ISO 8601 date-time format, when the group was created.

", + "InstanceProfile$CreateDate": "

The date when the instance profile was created.

", + "LoginProfile$CreateDate": "

The date when the password for the user was created.

", + "MFADevice$EnableDate": "

The date when the MFA device was enabled for the user.

", + "ManagedPolicyDetail$CreateDate": "

The date and time, in ISO 8601 date-time format, when the policy was created.

", + "ManagedPolicyDetail$UpdateDate": "

The date and time, in ISO 8601 date-time format, when the policy was last updated.

When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

", + "Policy$CreateDate": "

The date and time, in ISO 8601 date-time format, when the policy was created.

", + "Policy$UpdateDate": "

The date and time, in ISO 8601 date-time format, when the policy was last updated.

When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

", + "PolicyVersion$CreateDate": "

The date and time, in ISO 8601 date-time format, when the policy version was created.

", + "Role$CreateDate": "

The date and time, in ISO 8601 date-time format, when the role was created.

", + "RoleDetail$CreateDate": "

The date and time, in ISO 8601 date-time format, when the role was created.

", + "SAMLProviderListEntry$ValidUntil": "

The expiration date and time for the SAML provider.

", + "SAMLProviderListEntry$CreateDate": "

The date and time when the SAML provider was created.

", + "SSHPublicKey$UploadDate": "

The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.

", + "SSHPublicKeyMetadata$UploadDate": "

The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.

", + "ServerCertificateMetadata$UploadDate": "

The date when the server certificate was uploaded.

", + "ServerCertificateMetadata$Expiration": "

The date on which the certificate is set to expire.

", + "SigningCertificate$UploadDate": "

The date when the signing certificate was uploaded.

", + "User$CreateDate": "

The date and time, in ISO 8601 date-time format, when the user was created.

", + "User$PasswordLastUsed": "

The date and time, in ISO 8601 date-time format, when the user's password was last used to sign in to an AWS website. For a list of AWS websites that capture a user's last sign-in time, see the Credential Reports topic in the Using IAM guide. If a password is used more than once in a five-minute span, only the first use is returned in this field. This field is null (not present) when:

  • The user does not have a password

  • The password exists but has never been used (at least not since IAM started tracking this information on October 20th, 2014

  • there is no sign-in data associated with the user

This value is returned only in the GetUser and ListUsers actions.

", + "UserDetail$CreateDate": "

The date and time, in ISO 8601 date-time format, when the user was created.

", + "VirtualMFADevice$EnableDate": "

The date and time on which the virtual MFA device was enabled.

" + } + }, + "deleteConflictMessage": { + "base": null, + "refs": { + "DeleteConflictException$message": null + } + }, + "duplicateCertificateMessage": { + "base": null, + "refs": { + "DuplicateCertificateException$message": null + } + }, + "duplicateSSHPublicKeyMessage": { + "base": null, + "refs": { + "DuplicateSSHPublicKeyException$message": null + } + }, + "encodingType": { + "base": null, + "refs": { + "GetSSHPublicKeyRequest$Encoding": "

Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM.

" + } + }, + "entityAlreadyExistsMessage": { + "base": null, + "refs": { + "EntityAlreadyExistsException$message": null + } + }, + "entityListType": { + "base": null, + "refs": { + "GetAccountAuthorizationDetailsRequest$Filter": "

A list of entity types (user, group, role, local managed policy, or AWS managed policy) for filtering the results.

" + } + }, + "entityTemporarilyUnmodifiableMessage": { + "base": null, + "refs": { + "EntityTemporarilyUnmodifiableException$message": null + } + }, + "existingUserNameType": { + "base": null, + "refs": { + "AddUserToGroupRequest$UserName": "

The name of the user to add.

", + "CreateAccessKeyRequest$UserName": "

The user name that the new key will belong to.

", + "DeactivateMFADeviceRequest$UserName": "

The name of the user whose MFA device you want to deactivate.

", + "DeleteAccessKeyRequest$UserName": "

The name of the user whose key you want to delete.

", + "DeleteSigningCertificateRequest$UserName": "

The name of the user the signing certificate belongs to.

", + "DeleteUserPolicyRequest$UserName": "

The name (friendly name, not ARN) identifying the user that the policy is embedded in.

", + "DeleteUserRequest$UserName": "

The name of the user to delete.

", + "EnableMFADeviceRequest$UserName": "

The name of the user for whom you want to enable the MFA device.

", + "GetAccessKeyLastUsedResponse$UserName": "

The name of the AWS IAM user that owns this access key.

", + "GetUserPolicyRequest$UserName": "

The name of the user who the policy is associated with.

", + "GetUserPolicyResponse$UserName": "

The user the policy is associated with.

", + "GetUserRequest$UserName": "

The name of the user to get information about.

This parameter is optional. If it is not included, it defaults to the user making the request.

", + "ListAccessKeysRequest$UserName": "

The name of the user.

", + "ListGroupsForUserRequest$UserName": "

The name of the user to list groups for.

", + "ListMFADevicesRequest$UserName": "

The name of the user whose MFA devices you want to list.

", + "ListSigningCertificatesRequest$UserName": "

The name of the user.

", + "ListUserPoliciesRequest$UserName": "

The name of the user to list policies for.

", + "PutUserPolicyRequest$UserName": "

The name of the user to associate the policy with.

", + "RemoveUserFromGroupRequest$UserName": "

The name of the user to remove.

", + "ResyncMFADeviceRequest$UserName": "

The name of the user whose MFA device you want to resynchronize.

", + "UpdateAccessKeyRequest$UserName": "

The name of the user whose key you want to update.

", + "UpdateSigningCertificateRequest$UserName": "

The name of the user the signing certificate belongs to.

", + "UpdateUserRequest$UserName": "

Name of the user to update. If you're changing the name of the user, this is the original user name.

", + "UploadSigningCertificateRequest$UserName": "

The name of the user the signing certificate is for.

" + } + }, + "groupDetailListType": { + "base": null, + "refs": { + "GetAccountAuthorizationDetailsResponse$GroupDetailList": "

A list containing information about IAM groups.

" + } + }, + "groupListType": { + "base": "

Contains a list of IAM groups.

This data type is used as a response element in the ListGroups action.

", + "refs": { + "ListGroupsForUserResponse$Groups": "

A list of groups.

", + "ListGroupsResponse$Groups": "

A list of groups.

" + } + }, + "groupNameListType": { + "base": null, + "refs": { + "UserDetail$GroupList": "

A list of IAM groups that the user is in.

" + } + }, + "groupNameType": { + "base": null, + "refs": { + "AddUserToGroupRequest$GroupName": "

The name of the group to update.

", + "AttachGroupPolicyRequest$GroupName": "

The name (friendly name, not ARN) of the group to attach the policy to.

", + "CreateGroupRequest$GroupName": "

The name of the group to create. Do not include the path in this value.

", + "DeleteGroupPolicyRequest$GroupName": "

The name (friendly name, not ARN) identifying the group that the policy is embedded in.

", + "DeleteGroupRequest$GroupName": "

The name of the group to delete.

", + "DetachGroupPolicyRequest$GroupName": "

The name (friendly name, not ARN) of the group to detach the policy from.

", + "GetGroupPolicyRequest$GroupName": "

The name of the group the policy is associated with.

", + "GetGroupPolicyResponse$GroupName": "

The group the policy is associated with.

", + "GetGroupRequest$GroupName": "

The name of the group.

", + "Group$GroupName": "

The friendly name that identifies the group.

", + "GroupDetail$GroupName": "

The friendly name that identifies the group.

", + "ListAttachedGroupPoliciesRequest$GroupName": "

The name (friendly name, not ARN) of the group to list attached policies for.

", + "ListGroupPoliciesRequest$GroupName": "

The name of the group to list policies for.

", + "PolicyGroup$GroupName": "

The name (friendly name, not ARN) identifying the group.

", + "PutGroupPolicyRequest$GroupName": "

The name of the group to associate the policy with.

", + "RemoveUserFromGroupRequest$GroupName": "

The name of the group to update.

", + "UpdateGroupRequest$GroupName": "

Name of the group to update. If you're changing the name of the group, this is the original name.

", + "UpdateGroupRequest$NewGroupName": "

New name for the group. Only include this if changing the group's name.

", + "groupNameListType$member": null + } + }, + "idType": { + "base": null, + "refs": { + "Group$GroupId": "

The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.

", + "GroupDetail$GroupId": "

The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.

", + "InstanceProfile$InstanceProfileId": "

The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.

", + "ManagedPolicyDetail$PolicyId": "

The stable and unique string identifying the policy.

For more information about IDs, see IAM Identifiers in the Using IAM guide.

", + "Policy$PolicyId": "

The stable and unique string identifying the policy.

For more information about IDs, see IAM Identifiers in the Using IAM guide.

", + "Role$RoleId": "

The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.

", + "RoleDetail$RoleId": "

The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.

", + "ServerCertificateMetadata$ServerCertificateId": "

The stable and unique string identifying the server certificate. For more information about IDs, see IAM Identifiers in the Using IAM guide.

", + "User$UserId": "

The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.

", + "UserDetail$UserId": "

The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.

" + } + }, + "instanceProfileListType": { + "base": "

Contains a list of instance profiles.

", + "refs": { + "ListInstanceProfilesForRoleResponse$InstanceProfiles": "

A list of instance profiles.

", + "ListInstanceProfilesResponse$InstanceProfiles": "

A list of instance profiles.

", + "RoleDetail$InstanceProfileList": null + } + }, + "instanceProfileNameType": { + "base": null, + "refs": { + "AddRoleToInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to update.

", + "CreateInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to create.

", + "DeleteInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to delete.

", + "GetInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to get information about.

", + "InstanceProfile$InstanceProfileName": "

The name identifying the instance profile.

", + "RemoveRoleFromInstanceProfileRequest$InstanceProfileName": "

The name of the instance profile to update.

" + } + }, + "invalidAuthenticationCodeMessage": { + "base": null, + "refs": { + "InvalidAuthenticationCodeException$message": null + } + }, + "invalidCertificateMessage": { + "base": null, + "refs": { + "InvalidCertificateException$message": null + } + }, + "invalidInputMessage": { + "base": null, + "refs": { + "InvalidInputException$message": null + } + }, + "invalidPublicKeyMessage": { + "base": null, + "refs": { + "InvalidPublicKeyException$message": null + } + }, + "invalidUserTypeMessage": { + "base": null, + "refs": { + "InvalidUserTypeException$message": null + } + }, + "keyPairMismatchMessage": { + "base": null, + "refs": { + "KeyPairMismatchException$message": null + } + }, + "limitExceededMessage": { + "base": null, + "refs": { + "LimitExceededException$message": null + } + }, + "malformedCertificateMessage": { + "base": null, + "refs": { + "MalformedCertificateException$message": null + } + }, + "malformedPolicyDocumentMessage": { + "base": null, + "refs": { + "MalformedPolicyDocumentException$message": null + } + }, + "markerType": { + "base": null, + "refs": { + "GetAccountAuthorizationDetailsRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "GetAccountAuthorizationDetailsResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "GetGroupRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "GetGroupResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListAccessKeysRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListAccessKeysResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListAccountAliasesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListAccountAliasesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListAttachedGroupPoliciesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListAttachedGroupPoliciesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListAttachedRolePoliciesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListAttachedRolePoliciesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListAttachedUserPoliciesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListAttachedUserPoliciesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListEntitiesForPolicyRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListEntitiesForPolicyResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListGroupPoliciesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListGroupPoliciesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListGroupsForUserRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListGroupsForUserResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListGroupsRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListGroupsResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListInstanceProfilesForRoleRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListInstanceProfilesForRoleResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListInstanceProfilesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListInstanceProfilesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListMFADevicesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListMFADevicesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListPoliciesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListPoliciesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListPolicyVersionsRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListPolicyVersionsResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListRolePoliciesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListRolePoliciesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListRolesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListRolesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListSSHPublicKeysRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListSSHPublicKeysResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListServerCertificatesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListServerCertificatesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListSigningCertificatesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListSigningCertificatesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListUserPoliciesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListUserPoliciesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListUsersRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListUsersResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListVirtualMFADevicesRequest$Marker": "

Use this parameter only when paginating results and only after you have received a response where the results are truncated. Set it to the value of the Marker element in the response you just received.

", + "ListVirtualMFADevicesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

" + } + }, + "maxItemsType": { + "base": null, + "refs": { + "GetAccountAuthorizationDetailsRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "GetGroupRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListAccessKeysRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListAccountAliasesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListAttachedGroupPoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListAttachedRolePoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListAttachedUserPoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListEntitiesForPolicyRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListGroupPoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListGroupsForUserRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListGroupsRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListInstanceProfilesForRoleRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListInstanceProfilesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListMFADevicesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListPoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListPolicyVersionsRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListRolePoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListRolesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListSSHPublicKeysRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListServerCertificatesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListSigningCertificatesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListUserPoliciesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListUsersRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

", + "ListVirtualMFADevicesRequest$MaxItems": "

Use this only when paginating results to indicate the maximum number of items you want in the response. If there are additional items beyond the maximum you specify, the IsTruncated response element is true.

This parameter is optional. If you do not include it, it defaults to 100.

" + } + }, + "maxPasswordAgeType": { + "base": null, + "refs": { + "PasswordPolicy$MaxPasswordAge": "

The number of days that an IAM user password is valid.

", + "UpdateAccountPasswordPolicyRequest$MaxPasswordAge": "

The number of days that an IAM user password is valid. The default value of 0 means IAM user passwords never expire.

Default value: 0

" + } + }, + "mfaDeviceListType": { + "base": "

Contains a list of MFA devices.

This data type is used as a response element in the ListMFADevices and ListVirtualMFADevices actions.

", + "refs": { + "ListMFADevicesResponse$MFADevices": "

A list of MFA devices.

" + } + }, + "minimumPasswordLengthType": { + "base": null, + "refs": { + "PasswordPolicy$MinimumPasswordLength": "

Minimum length to require for IAM user passwords.

", + "UpdateAccountPasswordPolicyRequest$MinimumPasswordLength": "

The minimum number of characters allowed in an IAM user password.

Default value: 6

" + } + }, + "noSuchEntityMessage": { + "base": null, + "refs": { + "NoSuchEntityException$message": null + } + }, + "passwordPolicyViolationMessage": { + "base": null, + "refs": { + "PasswordPolicyViolationException$message": null + } + }, + "passwordReusePreventionType": { + "base": null, + "refs": { + "PasswordPolicy$PasswordReusePrevention": "

Specifies the number of previous passwords that IAM users are prevented from reusing.

", + "UpdateAccountPasswordPolicyRequest$PasswordReusePrevention": "

Specifies the number of previous passwords that IAM users are prevented from reusing. The default value of 0 means IAM users are not prevented from reusing previous passwords.

Default value: 0

" + } + }, + "passwordType": { + "base": null, + "refs": { + "ChangePasswordRequest$OldPassword": "

The IAM user's current password.

", + "ChangePasswordRequest$NewPassword": "

The new password. The new password must conform to the AWS account's password policy, if one exists.

", + "CreateLoginProfileRequest$Password": "

The new password for the user.

", + "UpdateLoginProfileRequest$Password": "

The new password for the specified user.

" + } + }, + "pathPrefixType": { + "base": null, + "refs": { + "ListGroupsRequest$PathPrefix": "

The path prefix for filtering the results. For example, the prefix /division_abc/subdivision_xyz/ gets all groups whose path starts with /division_abc/subdivision_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all groups.

", + "ListInstanceProfilesRequest$PathPrefix": "

The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ gets all instance profiles whose path starts with /application_abc/component_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all instance profiles.

", + "ListRolesRequest$PathPrefix": "

The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ gets all roles whose path starts with /application_abc/component_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all roles.

", + "ListServerCertificatesRequest$PathPrefix": "

The path prefix for filtering the results. For example: /company/servercerts would get all server certificates for which the path starts with /company/servercerts.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all server certificates.

", + "ListUsersRequest$PathPrefix": "

The path prefix for filtering the results. For example: /division_abc/subdivision_xyz/, which would get all user names whose path starts with /division_abc/subdivision_xyz/.

This parameter is optional. If it is not included, it defaults to a slash (/), listing all user names.

" + } + }, + "pathType": { + "base": null, + "refs": { + "CreateGroupRequest$Path": "

The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

", + "CreateInstanceProfileRequest$Path": "

The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

", + "CreateRoleRequest$Path": "

The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

", + "CreateUserRequest$Path": "

The path for the user name. For more information about paths, see IAM Identifiers in the Using IAM guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

", + "CreateVirtualMFADeviceRequest$Path": "

The path for the virtual MFA device. For more information about paths, see IAM Identifiers in the Using IAM guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

", + "Group$Path": "

The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.

", + "GroupDetail$Path": "

The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.

", + "InstanceProfile$Path": "

The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.

", + "ListEntitiesForPolicyRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all entities.

", + "Role$Path": "

The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.

", + "RoleDetail$Path": "

The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.

", + "ServerCertificateMetadata$Path": "

The path to the server certificate. For more information about paths, see IAM Identifiers in the Using IAM guide.

", + "UpdateGroupRequest$NewPath": "

New path for the group. Only include this if changing the group's path.

", + "UpdateServerCertificateRequest$NewPath": "

The new path for the server certificate. Include this only if you are updating the server certificate's path.

", + "UpdateUserRequest$NewPath": "

New path for the user. Include this parameter only if you're changing the user's path.

", + "UploadServerCertificateRequest$Path": "

The path for the server certificate. For more information about paths, see IAM Identifiers in the Using IAM guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

If you are uploading a server certificate specifically for use with Amazon CloudFront distributions, you must specify a path using the --path option. The path must begin with /cloudfront and must include a trailing slash (for example, /cloudfront/test/). ", + "User$Path": "

The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.

", + "UserDetail$Path": "

The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.

" + } + }, + "policyDescriptionType": { + "base": null, + "refs": { + "CreatePolicyRequest$Description": "

A friendly description of the policy.

Typically used to store information about the permissions defined in the policy. For example, \"Grants access to production DynamoDB tables.\"

The policy description is immutable. After a value is assigned, it cannot be changed.

", + "ManagedPolicyDetail$Description": "

A friendly description of the policy.

", + "Policy$Description": "

A friendly description of the policy.

This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

" + } + }, + "policyDetailListType": { + "base": null, + "refs": { + "GroupDetail$GroupPolicyList": "

A list of the inline policies embedded in the group.

", + "RoleDetail$RolePolicyList": "

A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.

", + "UserDetail$UserPolicyList": "

A list of the inline policies embedded in the user.

" + } + }, + "policyDocumentType": { + "base": null, + "refs": { + "CreatePolicyRequest$PolicyDocument": "

The policy document.

", + "CreatePolicyVersionRequest$PolicyDocument": "

The policy document.

", + "CreateRoleRequest$AssumeRolePolicyDocument": "

The policy that grants an entity permission to assume the role.

", + "GetGroupPolicyResponse$PolicyDocument": "

The policy document.

", + "GetRolePolicyResponse$PolicyDocument": "

The policy document.

", + "GetUserPolicyResponse$PolicyDocument": "

The policy document.

", + "PolicyDetail$PolicyDocument": "

The policy document.

", + "PolicyVersion$Document": "

The policy document.

The policy document is returned in the response to the GetPolicyVersion and GetAccountAuthorizationDetails operations. It is not returned in the response to the CreatePolicyVersion or ListPolicyVersions operations.

", + "PutGroupPolicyRequest$PolicyDocument": "

The policy document.

", + "PutRolePolicyRequest$PolicyDocument": "

The policy document.

", + "PutUserPolicyRequest$PolicyDocument": "

The policy document.

", + "Role$AssumeRolePolicyDocument": "

The policy that grants an entity permission to assume the role.

", + "RoleDetail$AssumeRolePolicyDocument": "

The trust policy that grants permission to assume the role.

", + "UpdateAssumeRolePolicyRequest$PolicyDocument": "

The policy that grants an entity permission to assume the role.

" + } + }, + "policyDocumentVersionListType": { + "base": null, + "refs": { + "ListPolicyVersionsResponse$Versions": "

A list of policy versions.

For more information about managed policy versions, see Versioning for Managed Policies in the Using IAM guide.

", + "ManagedPolicyDetail$PolicyVersionList": "

A list containing information about the versions of the policy.

" + } + }, + "policyListType": { + "base": null, + "refs": { + "ListPoliciesResponse$Policies": "

A list of policies.

" + } + }, + "policyNameListType": { + "base": "

Contains a list of policy names.

This data type is used as a response element in the ListPolicies action.

", + "refs": { + "ListGroupPoliciesResponse$PolicyNames": "

A list of policy names.

", + "ListRolePoliciesResponse$PolicyNames": "

A list of policy names.

", + "ListUserPoliciesResponse$PolicyNames": "

A list of policy names.

" + } + }, + "policyNameType": { + "base": null, + "refs": { + "AttachedPolicy$PolicyName": "

The friendly name of the attached policy.

", + "CreatePolicyRequest$PolicyName": "

The name of the policy document.

", + "DeleteGroupPolicyRequest$PolicyName": "

The name identifying the policy document to delete.

", + "DeleteRolePolicyRequest$PolicyName": "

The name identifying the policy document to delete.

", + "DeleteUserPolicyRequest$PolicyName": "

The name identifying the policy document to delete.

", + "GetGroupPolicyRequest$PolicyName": "

The name of the policy document to get.

", + "GetGroupPolicyResponse$PolicyName": "

The name of the policy.

", + "GetRolePolicyRequest$PolicyName": "

The name of the policy document to get.

", + "GetRolePolicyResponse$PolicyName": "

The name of the policy.

", + "GetUserPolicyRequest$PolicyName": "

The name of the policy document to get.

", + "GetUserPolicyResponse$PolicyName": "

The name of the policy.

", + "ManagedPolicyDetail$PolicyName": "

The friendly name (not ARN) identifying the policy.

", + "Policy$PolicyName": "

The friendly name (not ARN) identifying the policy.

", + "PolicyDetail$PolicyName": "

The name of the policy.

", + "PutGroupPolicyRequest$PolicyName": "

The name of the policy document.

", + "PutRolePolicyRequest$PolicyName": "

The name of the policy document.

", + "PutUserPolicyRequest$PolicyName": "

The name of the policy document.

", + "policyNameListType$member": null + } + }, + "policyPathType": { + "base": null, + "refs": { + "CreatePolicyRequest$Path": "

The path for the policy.

For more information about paths, see IAM Identifiers in the Using IAM guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

", + "ListAttachedGroupPoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

", + "ListAttachedRolePoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

", + "ListAttachedUserPoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

", + "ListPoliciesRequest$PathPrefix": "

The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

", + "ManagedPolicyDetail$Path": "

The path to the policy.

For more information about paths, see IAM Identifiers in the Using IAM guide.

", + "Policy$Path": "

The path to the policy.

For more information about paths, see IAM Identifiers in the Using IAM guide.

" + } + }, + "policyScopeType": { + "base": null, + "refs": { + "ListPoliciesRequest$Scope": "

The scope to use for filtering the results.

To list only AWS managed policies, set Scope to AWS. To list only the customer managed policies in your AWS account, set Scope to Local.

This parameter is optional. If it is not included, or if it is set to All, all policies are returned.

" + } + }, + "policyVersionIdType": { + "base": null, + "refs": { + "DeletePolicyVersionRequest$VersionId": "

The policy version to delete.

For more information about managed policy versions, see Versioning for Managed Policies in the Using IAM guide.

", + "GetPolicyVersionRequest$VersionId": "

Identifies the policy version to retrieve.

", + "ManagedPolicyDetail$DefaultVersionId": "

The identifier for the version of the policy that is set as the default (operative) version.

For more information about policy versions, see Versioning for Managed Policies in the Using IAM guide.

", + "Policy$DefaultVersionId": "

The identifier for the version of the policy that is set as the default version.

", + "PolicyVersion$VersionId": "

The identifier for the policy version.

Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1.

", + "SetDefaultPolicyVersionRequest$VersionId": "

The version of the policy to set as the default (operative) version.

For more information about managed policy versions, see Versioning for Managed Policies in the Using IAM guide.

" + } + }, + "privateKeyType": { + "base": null, + "refs": { + "UploadServerCertificateRequest$PrivateKey": "

The contents of the private key in PEM-encoded format.

" + } + }, + "publicKeyFingerprintType": { + "base": null, + "refs": { + "SSHPublicKey$Fingerprint": "

The MD5 message digest of the SSH public key.

" + } + }, + "publicKeyIdType": { + "base": null, + "refs": { + "DeleteSSHPublicKeyRequest$SSHPublicKeyId": "

The unique identifier for the SSH public key.

", + "GetSSHPublicKeyRequest$SSHPublicKeyId": "

The unique identifier for the SSH public key.

", + "SSHPublicKey$SSHPublicKeyId": "

The unique identifier for the SSH public key.

", + "SSHPublicKeyMetadata$SSHPublicKeyId": "

The unique identifier for the SSH public key.

", + "UpdateSSHPublicKeyRequest$SSHPublicKeyId": "

The unique identifier for the SSH public key.

" + } + }, + "publicKeyMaterialType": { + "base": null, + "refs": { + "SSHPublicKey$SSHPublicKeyBody": "

The SSH public key.

", + "UploadSSHPublicKeyRequest$SSHPublicKeyBody": "

The SSH public key. The public key must be encoded in ssh-rsa format or PEM format.

" + } + }, + "roleDetailListType": { + "base": null, + "refs": { + "GetAccountAuthorizationDetailsResponse$RoleDetailList": "

A list containing information about IAM roles.

" + } + }, + "roleListType": { + "base": "

Contains a list of IAM roles.

This data type is used as a response element in the ListRoles action.

", + "refs": { + "InstanceProfile$Roles": "

The role associated with the instance profile.

", + "ListRolesResponse$Roles": "

A list of roles.

" + } + }, + "roleNameType": { + "base": null, + "refs": { + "AddRoleToInstanceProfileRequest$RoleName": "

The name of the role to add.

", + "AttachRolePolicyRequest$RoleName": "

The name (friendly name, not ARN) of the role to attach the policy to.

", + "CreateRoleRequest$RoleName": "

The name of the role to create.

", + "DeleteRolePolicyRequest$RoleName": "

The name (friendly name, not ARN) identifying the role that the policy is embedded in.

", + "DeleteRoleRequest$RoleName": "

The name of the role to delete.

", + "DetachRolePolicyRequest$RoleName": "

The name (friendly name, not ARN) of the role to detach the policy from.

", + "GetRolePolicyRequest$RoleName": "

The name of the role associated with the policy.

", + "GetRolePolicyResponse$RoleName": "

The role the policy is associated with.

", + "GetRoleRequest$RoleName": "

The name of the role to get information about.

", + "ListAttachedRolePoliciesRequest$RoleName": "

The name (friendly name, not ARN) of the role to list attached policies for.

", + "ListInstanceProfilesForRoleRequest$RoleName": "

The name of the role to list instance profiles for.

", + "ListRolePoliciesRequest$RoleName": "

The name of the role to list policies for.

", + "PolicyRole$RoleName": "

The name (friendly name, not ARN) identifying the role.

", + "PutRolePolicyRequest$RoleName": "

The name of the role to associate the policy with.

", + "RemoveRoleFromInstanceProfileRequest$RoleName": "

The name of the role to remove.

", + "Role$RoleName": "

The friendly name that identifies the role.

", + "RoleDetail$RoleName": "

The friendly name that identifies the role.

", + "UpdateAssumeRolePolicyRequest$RoleName": "

The name of the role to update.

" + } + }, + "serialNumberType": { + "base": null, + "refs": { + "DeactivateMFADeviceRequest$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

", + "DeleteVirtualMFADeviceRequest$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the same as the ARN.

", + "EnableMFADeviceRequest$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

", + "MFADevice$SerialNumber": "

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

", + "ResyncMFADeviceRequest$SerialNumber": "

Serial number that uniquely identifies the MFA device.

", + "VirtualMFADevice$SerialNumber": "

The serial number associated with VirtualMFADevice.

" + } + }, + "serverCertificateMetadataListType": { + "base": null, + "refs": { + "ListServerCertificatesResponse$ServerCertificateMetadataList": "

A list of server certificates.

" + } + }, + "serverCertificateNameType": { + "base": null, + "refs": { + "DeleteServerCertificateRequest$ServerCertificateName": "

The name of the server certificate you want to delete.

", + "GetServerCertificateRequest$ServerCertificateName": "

The name of the server certificate you want to retrieve information about.

", + "ServerCertificateMetadata$ServerCertificateName": "

The name that identifies the server certificate.

", + "UpdateServerCertificateRequest$ServerCertificateName": "

The name of the server certificate that you want to update.

", + "UpdateServerCertificateRequest$NewServerCertificateName": "

The new name for the server certificate. Include this only if you are updating the server certificate's name. The name of the certificate cannot contain any spaces.

", + "UploadServerCertificateRequest$ServerCertificateName": "

The name for the server certificate. Do not include the path in this value. The name of the certificate cannot contain any spaces.

" + } + }, + "serviceFailureExceptionMessage": { + "base": null, + "refs": { + "ServiceFailureException$message": null + } + }, + "statusType": { + "base": null, + "refs": { + "AccessKey$Status": "

The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.

", + "AccessKeyMetadata$Status": "

The status of the access key. Active means the key is valid for API calls; Inactive means it is not.

", + "SSHPublicKey$Status": "

The status of the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used.

", + "SSHPublicKeyMetadata$Status": "

The status of the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used.

", + "SigningCertificate$Status": "

The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not.

", + "UpdateAccessKeyRequest$Status": "

The status you want to assign to the secret access key. Active means the key can be used for API calls to AWS, while Inactive means the key cannot be used.

", + "UpdateSSHPublicKeyRequest$Status": "

The status to assign to the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used.

", + "UpdateSigningCertificateRequest$Status": "

The status you want to assign to the certificate. Active means the certificate can be used for API calls to AWS, while Inactive means the certificate cannot be used.

" + } + }, + "stringType": { + "base": null, + "refs": { + "AccessKeyLastUsed$ServiceName": "

The name of the AWS service with which this access key was most recently used. This field is null when:

  • The user does not have an access key.

  • An access key exists but has never been used, at least not since IAM started tracking this information on April 22nd, 2015.

  • There is no sign-in data associated with the user

", + "AccessKeyLastUsed$Region": "

The AWS region where this access key was most recently used. This field is null when:

  • The user does not have an access key.

  • An access key exists but has never been used, at least not since IAM started tracking this information on April 22nd, 2015.

  • There is no sign-in data associated with the user

For more information about AWS regions, see Regions and Endpoints in the Amazon Web Services General Reference.

" + } + }, + "summaryKeyType": { + "base": null, + "refs": { + "summaryMapType$key": null + } + }, + "summaryMapType": { + "base": null, + "refs": { + "GetAccountSummaryResponse$SummaryMap": "

A set of key value pairs containing information about IAM entity usage and IAM quotas.

SummaryMap contains the following keys:

  • AccessKeysPerUserQuota

    The maximum number of active access keys allowed for each IAM user.

  • AccountAccessKeysPresent

    This value is 1 if the AWS account (root) has an access key, otherwise it is 0.

  • AccountMFAEnabled

    This value is 1 if the AWS account (root) has an MFA device assigned, otherwise it is 0.

  • AccountSigningCertificatesPresent

    This value is 1 if the AWS account (root) has a signing certificate, otherwise it is 0.

  • AssumeRolePolicySizeQuota

    The maximum allowed size for assume role policy documents (trust policies), in non-whitespace characters.

  • AttachedPoliciesPerGroupQuota

    The maximum number of managed policies that can be attached to an IAM group.

  • AttachedPoliciesPerRoleQuota

    The maximum number of managed policies that can be attached to an IAM role.

  • AttachedPoliciesPerUserQuota

    The maximum number of managed policies that can be attached to an IAM user.

  • GroupPolicySizeQuota

    The maximum allowed size for the aggregate of all inline policies embedded in an IAM group, in non-whitespace characters.

  • Groups

    The number of IAM groups in the AWS account.

  • GroupsPerUserQuota

    The maximum number of IAM groups each IAM user can belong to.

  • GroupsQuota

    The maximum number of IAM groups allowed in the AWS account.

  • InstanceProfiles

    The number of instance profiles in the AWS account.

  • InstanceProfilesQuota

    The maximum number of instance profiles allowed in the AWS account.

  • MFADevices

    The number of MFA devices in the AWS account, including those assigned and unassigned.

  • MFADevicesInUse

    The number of MFA devices that have been assigned to an IAM user or to the AWS account (root).

  • Policies

    The number of customer managed policies in the AWS account.

  • PoliciesQuota

    The maximum number of customer managed policies allowed in the AWS account.

  • PolicySizeQuota

    The maximum allowed size of a customer managed policy, in non-whitespace characters.

  • PolicyVersionsInUse

    The number of managed policies that are attached to IAM users, groups, or roles in the AWS account.

  • PolicyVersionsInUseQuota

    The maximum number of managed policies that can be attached to IAM users, groups, or roles in the AWS account.

  • Providers

    The number of identity providers in the AWS account.

  • RolePolicySizeQuota

    The maximum allowed size for the aggregate of all inline policies (access policies, not the trust policy) embedded in an IAM role, in non-whitespace characters.

  • Roles

    The number of IAM roles in the AWS account.

  • RolesQuota

    The maximum number of IAM roles allowed in the AWS account.

  • ServerCertificates

    The number of server certificates in the AWS account.

  • ServerCertificatesQuota

    The maximum number of server certificates allowed in the AWS account.

  • SigningCertificatesPerUserQuota

    The maximum number of X.509 signing certificates allowed for each IAM user.

  • UserPolicySizeQuota

    The maximum allowed size for the aggregate of all inline policies embedded in an IAM user, in non-whitespace characters.

  • Users

    The number of IAM users in the AWS account.

  • UsersQuota

    The maximum number of IAM users allowed in the AWS account.

  • VersionsPerPolicyQuota

    The maximum number of policy versions allowed for each managed policy.

" + } + }, + "summaryValueType": { + "base": null, + "refs": { + "summaryMapType$value": null + } + }, + "thumbprintListType": { + "base": "

Contains a list of thumbprints of identity provider server certificates.

", + "refs": { + "CreateOpenIDConnectProviderRequest$ThumbprintList": "

A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s). Typically this list includes only one entry. However, IAM lets you have up to five thumbprints for an OIDC provider. This lets you maintain multiple thumbprints if the identity provider is rotating certificates.

The server certificate thumbprint is the hex-encoded SHA-1 hash value of the X.509 certificate used by the domain where the OpenID Connect provider makes its keys available. It is always a 40-character string.

You must provide at least one thumbprint when creating an IAM OIDC provider. For example, if the OIDC provider is server.example.com and the provider stores its keys at \"https://keys.server.example.com/openid-connect\", the thumbprint string would be the hex-encoded SHA-1 hash value of the certificate used by https://keys.server.example.com.

For more information about obtaining the OIDC provider's thumbprint, see Obtaining the Thumbprint for an OpenID Connect Provider in the Using IAM guide.

", + "GetOpenIDConnectProviderResponse$ThumbprintList": "

A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

", + "UpdateOpenIDConnectProviderThumbprintRequest$ThumbprintList": "

A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

" + } + }, + "thumbprintType": { + "base": "

Contains a thumbprint for an identity provider's server certificate.

The identity provider's server certificate thumbprint is the hex-encoded SHA-1 hash value of the self-signed X.509 certificate used by the domain where the OpenID Connect provider makes its keys available. It is always a 40-character string.

", + "refs": { + "thumbprintListType$member": null + } + }, + "unrecognizedPublicKeyEncodingMessage": { + "base": null, + "refs": { + "UnrecognizedPublicKeyEncodingException$message": null + } + }, + "userDetailListType": { + "base": null, + "refs": { + "GetAccountAuthorizationDetailsResponse$UserDetailList": "

A list containing information about IAM users.

" + } + }, + "userListType": { + "base": "

Contains a list of users.

This data type is used as a response element in the GetGroup and ListUsers actions.

", + "refs": { + "GetGroupResponse$Users": "

A list of users in the group.

", + "ListUsersResponse$Users": "

A list of users.

" + } + }, + "userNameType": { + "base": null, + "refs": { + "AccessKey$UserName": "

The name of the IAM user that the access key is associated with.

", + "AccessKeyMetadata$UserName": "

The name of the IAM user that the key is associated with.

", + "AttachUserPolicyRequest$UserName": "

The name (friendly name, not ARN) of the user to attach the policy to.

", + "CreateLoginProfileRequest$UserName": "

The name of the user to create a password for.

", + "CreateUserRequest$UserName": "

The name of the user to create.

", + "DeleteLoginProfileRequest$UserName": "

The name of the user whose password you want to delete.

", + "DeleteSSHPublicKeyRequest$UserName": "

The name of the IAM user associated with the SSH public key.

", + "DetachUserPolicyRequest$UserName": "

The name (friendly name, not ARN) of the user to detach the policy from.

", + "GetLoginProfileRequest$UserName": "

The name of the user whose login profile you want to retrieve.

", + "GetSSHPublicKeyRequest$UserName": "

The name of the IAM user associated with the SSH public key.

", + "ListAttachedUserPoliciesRequest$UserName": "

The name (friendly name, not ARN) of the user to list attached policies for.

", + "ListSSHPublicKeysRequest$UserName": "

The name of the IAM user to list SSH public keys for. If none is specified, the UserName field is determined implicitly based on the AWS access key used to sign the request.

", + "LoginProfile$UserName": "

The name of the user, which can be used for signing in to the AWS Management Console.

", + "MFADevice$UserName": "

The user with whom the MFA device is associated.

", + "PolicyUser$UserName": "

The name (friendly name, not ARN) identifying the user.

", + "SSHPublicKey$UserName": "

The name of the IAM user associated with the SSH public key.

", + "SSHPublicKeyMetadata$UserName": "

The name of the IAM user associated with the SSH public key.

", + "SigningCertificate$UserName": "

The name of the user the signing certificate is associated with.

", + "UpdateLoginProfileRequest$UserName": "

The name of the user whose password you want to update.

", + "UpdateSSHPublicKeyRequest$UserName": "

The name of the IAM user associated with the SSH public key.

", + "UpdateUserRequest$NewUserName": "

New name for the user. Include this parameter only if you're changing the user's name.

", + "UploadSSHPublicKeyRequest$UserName": "

The name of the IAM user to associate the SSH public key with.

", + "User$UserName": "

The friendly name identifying the user.

", + "UserDetail$UserName": "

The friendly name identifying the user.

" + } + }, + "virtualMFADeviceListType": { + "base": null, + "refs": { + "ListVirtualMFADevicesResponse$VirtualMFADevices": "

The list of virtual MFA devices in the current account that match the AssignmentStatus value that was passed in the request.

" + } + }, + "virtualMFADeviceName": { + "base": null, + "refs": { + "CreateVirtualMFADeviceRequest$VirtualMFADeviceName": "

The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/paginators-1.json similarity index 95% rename from vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/paginators-1.json index dba6d1ecb..4ea9de1a9 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/paginators-1.json @@ -102,13 +102,6 @@ "limit_key": "MaxItems", "result_key": "Policies" }, - "ListPolicyVersions": { - "input_token": "Marker", - "output_token": "Marker", - "more_results": "IsTruncated", - "limit_key": "MaxItems", - "result_key": "Versions" - }, "ListRolePolicies": { "input_token": "Marker", "output_token": "Marker", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/waiters-2.json similarity index 51% rename from vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/waiters-2.json index ba4538269..ce834bb69 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/waiters-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/iam/2010-05-08/waiters-2.json @@ -1,23 +1,6 @@ { "version": 2, "waiters": { - "InstanceProfileExists": { - "delay": 1, - "operation": "GetInstanceProfile", - "maxAttempts": 40, - "acceptors": [ - { - "expected": 200, - "matcher": "status", - "state": "success" - }, - { - "state": "retry", - "matcher": "status", - "expected": 404 - } - ] - }, "UserExists": { "delay": 1, "operation": "GetUser", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/importexport/2010-06-01/api-2.json similarity index 95% rename from vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/importexport/2010-06-01/api-2.json index 308dd9eea..b17cf9acb 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/importexport/2010-06-01/api-2.json @@ -408,17 +408,17 @@ "required":["jobIds"], "members":{ "jobIds":{"shape":"JobIdList"}, - "name":{"shape":"name"}, - "company":{"shape":"company"}, - "phoneNumber":{"shape":"phoneNumber"}, - "country":{"shape":"country"}, - "stateOrProvince":{"shape":"stateOrProvince"}, - "city":{"shape":"city"}, - "postalCode":{"shape":"postalCode"}, - "street1":{"shape":"street1"}, - "street2":{"shape":"street2"}, - "street3":{"shape":"street3"}, - "APIVersion":{"shape":"APIVersion"} + "name":{"shape":"GenericString"}, + "company":{"shape":"GenericString"}, + "phoneNumber":{"shape":"GenericString"}, + "country":{"shape":"GenericString"}, + "stateOrProvince":{"shape":"GenericString"}, + "city":{"shape":"GenericString"}, + "postalCode":{"shape":"GenericString"}, + "street1":{"shape":"GenericString"}, + "street2":{"shape":"GenericString"}, + "street3":{"shape":"GenericString"}, + "APIVersion":{"shape":"GenericString"} } }, "GetShippingLabelOutput":{ @@ -651,16 +651,6 @@ } }, "ValidateOnly":{"type":"boolean"}, - "WarningMessage":{"type":"string"}, - "city":{"type":"string"}, - "company":{"type":"string"}, - "country":{"type":"string"}, - "name":{"type":"string"}, - "phoneNumber":{"type":"string"}, - "postalCode":{"type":"string"}, - "stateOrProvince":{"type":"string"}, - "street1":{"type":"string"}, - "street2":{"type":"string"}, - "street3":{"type":"string"} + "WarningMessage":{"type":"string"} } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/importexport/2010-06-01/docs-2.json similarity index 88% rename from vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/importexport/2010-06-01/docs-2.json index 601090e96..c0d81e426 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/importexport/2010-06-01/docs-2.json @@ -15,7 +15,6 @@ "refs": { "CancelJobInput$APIVersion": null, "CreateJobInput$APIVersion": null, - "GetShippingLabelInput$APIVersion": null, "GetStatusInput$APIVersion": null, "ListJobsInput$APIVersion": null, "UpdateJobInput$APIVersion": null @@ -134,6 +133,17 @@ "GenericString": { "base": null, "refs": { + "GetShippingLabelInput$name": null, + "GetShippingLabelInput$company": null, + "GetShippingLabelInput$phoneNumber": null, + "GetShippingLabelInput$country": null, + "GetShippingLabelInput$stateOrProvince": null, + "GetShippingLabelInput$city": null, + "GetShippingLabelInput$postalCode": null, + "GetShippingLabelInput$street1": null, + "GetShippingLabelInput$street2": null, + "GetShippingLabelInput$street3": null, + "GetShippingLabelInput$APIVersion": null, "GetShippingLabelOutput$ShippingLabelURL": null, "GetShippingLabelOutput$Warning": null, "JobIdList$member": null @@ -417,66 +427,6 @@ "CreateJobOutput$WarningMessage": null, "UpdateJobOutput$WarningMessage": null } - }, - "city": { - "base": "Specifies the name of your city for the return address.", - "refs": { - "GetShippingLabelInput$city": null - } - }, - "company": { - "base": "Specifies the name of the company that will ship this package.", - "refs": { - "GetShippingLabelInput$company": null - } - }, - "country": { - "base": "Specifies the name of your country for the return address.", - "refs": { - "GetShippingLabelInput$country": null - } - }, - "name": { - "base": "Specifies the name of the person responsible for shipping this package.", - "refs": { - "GetShippingLabelInput$name": null - } - }, - "phoneNumber": { - "base": "Specifies the phone number of the person responsible for shipping this package.", - "refs": { - "GetShippingLabelInput$phoneNumber": null - } - }, - "postalCode": { - "base": "Specifies the postal code for the return address.", - "refs": { - "GetShippingLabelInput$postalCode": null - } - }, - "stateOrProvince": { - "base": "Specifies the name of your state or your province for the return address.", - "refs": { - "GetShippingLabelInput$stateOrProvince": null - } - }, - "street1": { - "base": "Specifies the first part of the street address for the return address, for example 1234 Main Street.", - "refs": { - "GetShippingLabelInput$street1": null - } - }, - "street2": { - "base": "Specifies the optional second part of the street address for the return address, for example Suite 100.", - "refs": { - "GetShippingLabelInput$street2": null - } - }, - "street3": { - "base": "Specifies the optional third part of the street address for the return address, for example c/o Jane Doe.", - "refs": { - "GetShippingLabelInput$street3": null - } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/importexport/2010-06-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/importexport/2010-06-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/api-2.json similarity index 67% rename from vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/api-2.json index 1f24a5aaf..8d0ad2a1d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/api-2.json @@ -4,11 +4,11 @@ "apiVersion":"2013-12-02", "endpointPrefix":"kinesis", "jsonVersion":"1.1", - "protocol":"json", "serviceAbbreviation":"Kinesis", "serviceFullName":"Amazon Kinesis", "signatureVersion":"v4", - "targetPrefix":"Kinesis_20131202" + "targetPrefix":"Kinesis_20131202", + "protocol":"json" }, "operations":{ "AddTagsToStream":{ @@ -19,10 +19,22 @@ }, "input":{"shape":"AddTagsToStreamInput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceInUseException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"LimitExceededException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ResourceInUseException", + "exception":true + }, + { + "shape":"InvalidArgumentException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + } ] }, "CreateStream":{ @@ -33,23 +45,18 @@ }, "input":{"shape":"CreateStreamInput"}, "errors":[ - {"shape":"ResourceInUseException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidArgumentException"} - ] - }, - "DecreaseStreamRetentionPeriod":{ - "name":"DecreaseStreamRetentionPeriod", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DecreaseStreamRetentionPeriodInput"}, - "errors":[ - {"shape":"ResourceInUseException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidArgumentException"} + { + "shape":"ResourceInUseException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"InvalidArgumentException", + "exception":true + } ] }, "DeleteStream":{ @@ -60,8 +67,14 @@ }, "input":{"shape":"DeleteStreamInput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + } ] }, "DescribeStream":{ @@ -73,38 +86,14 @@ "input":{"shape":"DescribeStreamInput"}, "output":{"shape":"DescribeStreamOutput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"} - ] - }, - "DisableEnhancedMonitoring":{ - "name":"DisableEnhancedMonitoring", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DisableEnhancedMonitoringInput"}, - "output":{"shape":"EnhancedMonitoringOutput"}, - "errors":[ - {"shape":"InvalidArgumentException"}, - {"shape":"LimitExceededException"}, - {"shape":"ResourceInUseException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "EnableEnhancedMonitoring":{ - "name":"EnableEnhancedMonitoring", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"EnableEnhancedMonitoringInput"}, - "output":{"shape":"EnhancedMonitoringOutput"}, - "errors":[ - {"shape":"InvalidArgumentException"}, - {"shape":"LimitExceededException"}, - {"shape":"ResourceInUseException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + } ] }, "GetRecords":{ @@ -116,10 +105,22 @@ "input":{"shape":"GetRecordsInput"}, "output":{"shape":"GetRecordsOutput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ExpiredIteratorException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"InvalidArgumentException", + "exception":true + }, + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + }, + { + "shape":"ExpiredIteratorException", + "exception":true + } ] }, "GetShardIterator":{ @@ -131,23 +132,18 @@ "input":{"shape":"GetShardIteratorInput"}, "output":{"shape":"GetShardIteratorOutput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"ProvisionedThroughputExceededException"} - ] - }, - "IncreaseStreamRetentionPeriod":{ - "name":"IncreaseStreamRetentionPeriod", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"IncreaseStreamRetentionPeriodInput"}, - "errors":[ - {"shape":"ResourceInUseException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"InvalidArgumentException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"InvalidArgumentException", + "exception":true + }, + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + } ] }, "ListStreams":{ @@ -159,7 +155,10 @@ "input":{"shape":"ListStreamsInput"}, "output":{"shape":"ListStreamsOutput"}, "errors":[ - {"shape":"LimitExceededException"} + { + "shape":"LimitExceededException", + "exception":true + } ] }, "ListTagsForStream":{ @@ -171,9 +170,18 @@ "input":{"shape":"ListTagsForStreamInput"}, "output":{"shape":"ListTagsForStreamOutput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"LimitExceededException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"InvalidArgumentException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + } ] }, "MergeShards":{ @@ -184,10 +192,22 @@ }, "input":{"shape":"MergeShardsInput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceInUseException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"LimitExceededException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ResourceInUseException", + "exception":true + }, + { + "shape":"InvalidArgumentException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + } ] }, "PutRecord":{ @@ -199,9 +219,18 @@ "input":{"shape":"PutRecordInput"}, "output":{"shape":"PutRecordOutput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"ProvisionedThroughputExceededException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"InvalidArgumentException", + "exception":true + }, + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + } ] }, "PutRecords":{ @@ -213,9 +242,18 @@ "input":{"shape":"PutRecordsInput"}, "output":{"shape":"PutRecordsOutput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"ProvisionedThroughputExceededException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"InvalidArgumentException", + "exception":true + }, + { + "shape":"ProvisionedThroughputExceededException", + "exception":true + } ] }, "RemoveTagsFromStream":{ @@ -226,10 +264,22 @@ }, "input":{"shape":"RemoveTagsFromStreamInput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceInUseException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"LimitExceededException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ResourceInUseException", + "exception":true + }, + { + "shape":"InvalidArgumentException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + } ] }, "SplitShard":{ @@ -240,10 +290,22 @@ }, "input":{"shape":"SplitShardInput"}, "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceInUseException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"LimitExceededException"} + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ResourceInUseException", + "exception":true + }, + { + "shape":"InvalidArgumentException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + } ] } }, @@ -259,7 +321,6 @@ "Tags":{"shape":"TagMap"} } }, - "ApproximateArrivalTimestamp":{"type":"timestamp"}, "BooleanObject":{"type":"boolean"}, "CreateStreamInput":{ "type":"structure", @@ -274,19 +335,8 @@ }, "Data":{ "type":"blob", - "max":1048576, - "min":0 - }, - "DecreaseStreamRetentionPeriodInput":{ - "type":"structure", - "required":[ - "StreamName", - "RetentionPeriodHours" - ], - "members":{ - "StreamName":{"shape":"StreamName"}, - "RetentionPeriodHours":{"shape":"RetentionPeriodHours"} - } + "min":0, + "max":51200 }, "DeleteStreamInput":{ "type":"structure", @@ -306,8 +356,8 @@ }, "DescribeStreamInputLimit":{ "type":"integer", - "max":10000, - "min":1 + "min":1, + "max":10000 }, "DescribeStreamOutput":{ "type":"structure", @@ -316,46 +366,6 @@ "StreamDescription":{"shape":"StreamDescription"} } }, - "DisableEnhancedMonitoringInput":{ - "type":"structure", - "required":[ - "StreamName", - "ShardLevelMetrics" - ], - "members":{ - "StreamName":{"shape":"StreamName"}, - "ShardLevelMetrics":{"shape":"MetricsNameList"} - } - }, - "EnableEnhancedMonitoringInput":{ - "type":"structure", - "required":[ - "StreamName", - "ShardLevelMetrics" - ], - "members":{ - "StreamName":{"shape":"StreamName"}, - "ShardLevelMetrics":{"shape":"MetricsNameList"} - } - }, - "EnhancedMetrics":{ - "type":"structure", - "members":{ - "ShardLevelMetrics":{"shape":"MetricsNameList"} - } - }, - "EnhancedMonitoringList":{ - "type":"list", - "member":{"shape":"EnhancedMetrics"} - }, - "EnhancedMonitoringOutput":{ - "type":"structure", - "members":{ - "StreamName":{"shape":"StreamName"}, - "CurrentShardLevelMetrics":{"shape":"MetricsNameList"}, - "DesiredShardLevelMetrics":{"shape":"MetricsNameList"} - } - }, "ErrorCode":{"type":"string"}, "ErrorMessage":{"type":"string"}, "ExpiredIteratorException":{ @@ -375,8 +385,8 @@ }, "GetRecordsInputLimit":{ "type":"integer", - "max":10000, - "min":1 + "min":1, + "max":10000 }, "GetRecordsOutput":{ "type":"structure", @@ -398,8 +408,7 @@ "StreamName":{"shape":"StreamName"}, "ShardId":{"shape":"ShardId"}, "ShardIteratorType":{"shape":"ShardIteratorType"}, - "StartingSequenceNumber":{"shape":"SequenceNumber"}, - "Timestamp":{"shape":"Timestamp"} + "StartingSequenceNumber":{"shape":"SequenceNumber"} } }, "GetShardIteratorOutput":{ @@ -423,17 +432,6 @@ "EndingHashKey":{"shape":"HashKey"} } }, - "IncreaseStreamRetentionPeriodInput":{ - "type":"structure", - "required":[ - "StreamName", - "RetentionPeriodHours" - ], - "members":{ - "StreamName":{"shape":"StreamName"}, - "RetentionPeriodHours":{"shape":"RetentionPeriodHours"} - } - }, "InvalidArgumentException":{ "type":"structure", "members":{ @@ -457,8 +455,8 @@ }, "ListStreamsInputLimit":{ "type":"integer", - "max":10000, - "min":1 + "min":1, + "max":10000 }, "ListStreamsOutput":{ "type":"structure", @@ -482,8 +480,8 @@ }, "ListTagsForStreamInputLimit":{ "type":"integer", - "max":10, - "min":1 + "min":1, + "max":10 }, "ListTagsForStreamOutput":{ "type":"structure", @@ -509,37 +507,17 @@ "AdjacentShardToMerge":{"shape":"ShardId"} } }, - "MetricsName":{ - "type":"string", - "enum":[ - "IncomingBytes", - "IncomingRecords", - "OutgoingBytes", - "OutgoingRecords", - "WriteProvisionedThroughputExceeded", - "ReadProvisionedThroughputExceeded", - "IteratorAgeMilliseconds", - "ALL" - ] - }, - "MetricsNameList":{ - "type":"list", - "member":{"shape":"MetricsName"}, - "max":7, - "min":1 - }, "MillisBehindLatest":{ "type":"long", "min":0 }, "PartitionKey":{ "type":"string", - "max":256, - "min":1 + "min":1, + "max":256 }, "PositiveIntegerObject":{ "type":"integer", - "max":100000, "min":1 }, "ProvisionedThroughputExceededException":{ @@ -609,8 +587,8 @@ "PutRecordsRequestEntryList":{ "type":"list", "member":{"shape":"PutRecordsRequestEntry"}, - "max":500, - "min":1 + "min":1, + "max":500 }, "PutRecordsResultEntry":{ "type":"structure", @@ -624,8 +602,8 @@ "PutRecordsResultEntryList":{ "type":"list", "member":{"shape":"PutRecordsResultEntry"}, - "max":500, - "min":1 + "min":1, + "max":500 }, "Record":{ "type":"structure", @@ -636,7 +614,6 @@ ], "members":{ "SequenceNumber":{"shape":"SequenceNumber"}, - "ApproximateArrivalTimestamp":{"shape":"ApproximateArrivalTimestamp"}, "Data":{"shape":"Data"}, "PartitionKey":{"shape":"PartitionKey"} } @@ -670,11 +647,6 @@ }, "exception":true }, - "RetentionPeriodHours":{ - "type":"integer", - "max":168, - "min":24 - }, "SequenceNumber":{ "type":"string", "pattern":"0|([1-9]\\d{0,128})" @@ -704,14 +676,14 @@ }, "ShardId":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[a-zA-Z0-9_.-]+" }, "ShardIterator":{ "type":"string", - "max":512, - "min":1 + "min":1, + "max":512 }, "ShardIteratorType":{ "type":"string", @@ -719,8 +691,7 @@ "AT_SEQUENCE_NUMBER", "AFTER_SEQUENCE_NUMBER", "TRIM_HORIZON", - "LATEST", - "AT_TIMESTAMP" + "LATEST" ] }, "ShardList":{ @@ -748,24 +719,20 @@ "StreamARN", "StreamStatus", "Shards", - "HasMoreShards", - "RetentionPeriodHours", - "EnhancedMonitoring" + "HasMoreShards" ], "members":{ "StreamName":{"shape":"StreamName"}, "StreamARN":{"shape":"StreamARN"}, "StreamStatus":{"shape":"StreamStatus"}, "Shards":{"shape":"ShardList"}, - "HasMoreShards":{"shape":"BooleanObject"}, - "RetentionPeriodHours":{"shape":"RetentionPeriodHours"}, - "EnhancedMonitoring":{"shape":"EnhancedMonitoringList"} + "HasMoreShards":{"shape":"BooleanObject"} } }, "StreamName":{ "type":"string", - "max":128, "min":1, + "max":128, "pattern":"[a-zA-Z0-9_.-]+" }, "StreamNameList":{ @@ -791,14 +758,14 @@ }, "TagKey":{ "type":"string", - "max":128, - "min":1 + "min":1, + "max":128 }, "TagKeyList":{ "type":"list", "member":{"shape":"TagKey"}, - "max":10, - "min":1 + "min":1, + "max":10 }, "TagList":{ "type":"list", @@ -809,14 +776,13 @@ "type":"map", "key":{"shape":"TagKey"}, "value":{"shape":"TagValue"}, - "max":10, - "min":1 + "min":1, + "max":10 }, "TagValue":{ "type":"string", - "max":256, - "min":0 - }, - "Timestamp":{"type":"timestamp"} + "min":0, + "max":256 + } } } diff --git a/vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/docs-2.json new file mode 100644 index 000000000..e6e38f6ba --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/docs-2.json @@ -0,0 +1,424 @@ +{ + "version": "2.0", + "operations": { + "AddTagsToStream": "

Adds or updates tags for the specified Amazon Kinesis stream. Each stream can have up to 10 tags.

If tags have already been assigned to the stream, AddTagsToStream overwrites any existing tags that correspond to the specified tag keys.

", + "CreateStream": "

Creates a Amazon Kinesis stream. A stream captures and transports data records that are continuously emitted from different data sources or producers. Scale-out within an Amazon Kinesis stream is explicitly supported by means of shards, which are uniquely identified groups of data records in an Amazon Kinesis stream.

You specify and control the number of shards that a stream is composed of. Each open shard can support up to 5 read transactions per second, up to a maximum total of 2 MB of data read per second. Each shard can support up to 1000 records written per second, up to a maximum total of 1 MB data written per second. You can add shards to a stream if the amount of data input increases and you can remove shards if the amount of data input decreases.

The stream name identifies the stream. The name is scoped to the AWS account used by the application. It is also scoped by region. That is, two streams in two different accounts can have the same name, and two streams in the same account, but in two different regions, can have the same name.

CreateStream is an asynchronous operation. Upon receiving a CreateStream request, Amazon Kinesis immediately returns and sets the stream status to CREATING. After the stream is created, Amazon Kinesis sets the stream status to ACTIVE. You should perform read and write operations only on an ACTIVE stream.

You receive a LimitExceededException when making a CreateStream request if you try to do one of the following:

  • Have more than five streams in the CREATING state at any point in time.
  • Create more shards than are authorized for your account.

For the default shard limit for an AWS account, see Amazon Kinesis Limits. If you need to increase this limit, contact AWS Support

You can use DescribeStream to check the stream status, which is returned in StreamStatus.

CreateStream has a limit of 5 transactions per second per account.

", + "DeleteStream": "

Deletes a stream and all its shards and data. You must shut down any applications that are operating on the stream before you delete the stream. If an application attempts to operate on a deleted stream, it will receive the exception ResourceNotFoundException.

If the stream is in the ACTIVE state, you can delete it. After a DeleteStream request, the specified stream is in the DELETING state until Amazon Kinesis completes the deletion.

Note: Amazon Kinesis might continue to accept data read and write operations, such as PutRecord, PutRecords, and GetRecords, on a stream in the DELETING state until the stream deletion is complete.

When you delete a stream, any shards in that stream are also deleted, and any tags are dissociated from the stream.

You can use the DescribeStream operation to check the state of the stream, which is returned in StreamStatus.

DeleteStream has a limit of 5 transactions per second per account.

", + "DescribeStream": "

Describes the specified stream.

The information about the stream includes its current status, its Amazon Resource Name (ARN), and an array of shard objects. For each shard object, there is information about the hash key and sequence number ranges that the shard spans, and the IDs of any earlier shards that played in a role in creating the shard. A sequence number is the identifier associated with every record ingested in the Amazon Kinesis stream. The sequence number is assigned when a record is put into the stream.

You can limit the number of returned shards using the Limit parameter. The number of shards in a stream may be too large to return from a single call to DescribeStream. You can detect this by using the HasMoreShards flag in the returned output. HasMoreShards is set to true when there is more data available.

DescribeStream is a paginated operation. If there are more shards available, you can request them using the shard ID of the last shard returned. Specify this ID in the ExclusiveStartShardId parameter in a subsequent request to DescribeStream.

DescribeStream has a limit of 10 transactions per second per account.

", + "GetRecords": "

Gets data records from a shard.

Specify a shard iterator using the ShardIterator parameter. The shard iterator specifies the position in the shard from which you want to start reading data records sequentially. If there are no records available in the portion of the shard that the iterator points to, GetRecords returns an empty list. Note that it might take multiple calls to get to a portion of the shard that contains records.

You can scale by provisioning multiple shards. Your application should have one thread per shard, each reading continuously from its stream. To read from a stream continually, call GetRecords in a loop. Use GetShardIterator to get the shard iterator to specify in the first GetRecords call. GetRecords returns a new shard iterator in NextShardIterator. Specify the shard iterator returned in NextShardIterator in subsequent calls to GetRecords. Note that if the shard has been closed, the shard iterator can't return more data and GetRecords returns null in NextShardIterator. You can terminate the loop when the shard is closed, or when the shard iterator reaches the record with the sequence number or other attribute that marks it as the last record to process.

Each data record can be up to 50 KB in size, and each shard can read up to 2 MB per second. You can ensure that your calls don't exceed the maximum supported size or throughput by using the Limit parameter to specify the maximum number of records that GetRecords can return. Consider your average record size when determining this limit. For example, if your average record size is 40 KB, you can limit the data returned to about 1 MB per call by specifying 25 as the limit.

The size of the data returned by GetRecords will vary depending on the utilization of the shard. The maximum size of data that GetRecords can return is 10 MB. If a call returns this amount of data, subsequent calls made within the next 5 seconds throw ProvisionedThroughputExceededException. If there is insufficient provisioned throughput on the shard, subsequent calls made within the next 1 second throw ProvisionedThroughputExceededException. Note that GetRecords won't return any data when it throws an exception. For this reason, we recommend that you wait one second between calls to GetRecords; however, it's possible that the application will get exceptions for longer than 1 second.

To detect whether the application is falling behind in processing, you can use the MillisBehindLatest response attribute. You can also monitor the amount of data in a stream using the CloudWatch metrics. For more information, see Monitoring Amazon Kinesis with Amazon CloudWatch in the Amazon Kinesis Developer Guide.

", + "GetShardIterator": "

Gets a shard iterator. A shard iterator expires five minutes after it is returned to the requester.

A shard iterator specifies the position in the shard from which to start reading data records sequentially. A shard iterator specifies this position using the sequence number of a data record in a shard. A sequence number is the identifier associated with every record ingested in the Amazon Kinesis stream. The sequence number is assigned when a record is put into the stream.

You must specify the shard iterator type. For example, you can set the ShardIteratorType parameter to read exactly from the position denoted by a specific sequence number by using the AT_SEQUENCE_NUMBER shard iterator type, or right after the sequence number by using the AFTER_SEQUENCE_NUMBER shard iterator type, using sequence numbers returned by earlier calls to PutRecord, PutRecords, GetRecords, or DescribeStream. You can specify the shard iterator type TRIM_HORIZON in the request to cause ShardIterator to point to the last untrimmed record in the shard in the system, which is the oldest data record in the shard. Or you can point to just after the most recent record in the shard, by using the shard iterator type LATEST, so that you always read the most recent data in the shard.

When you repeatedly read from an Amazon Kinesis stream use a GetShardIterator request to get the first shard iterator for use in your first GetRecords request and then use the shard iterator returned by the GetRecords request in NextShardIterator for subsequent reads. A new shard iterator is returned by every GetRecords request in NextShardIterator, which you use in the ShardIterator parameter of the next GetRecords request.

If a GetShardIterator request is made too often, you receive a ProvisionedThroughputExceededException. For more information about throughput limits, see GetRecords.

If the shard is closed, the iterator can't return more data, and GetShardIterator returns null for its ShardIterator. A shard can be closed using SplitShard or MergeShards.

GetShardIterator has a limit of 5 transactions per second per account per open shard.

", + "ListStreams": "

Lists your streams.

The number of streams may be too large to return from a single call to ListStreams. You can limit the number of returned streams using the Limit parameter. If you do not specify a value for the Limit parameter, Amazon Kinesis uses the default limit, which is currently 10.

You can detect if there are more streams available to list by using the HasMoreStreams flag from the returned output. If there are more streams available, you can request more streams by using the name of the last stream returned by the ListStreams request in the ExclusiveStartStreamName parameter in a subsequent request to ListStreams. The group of stream names returned by the subsequent request is then added to the list. You can continue this process until all the stream names have been collected in the list.

ListStreams has a limit of 5 transactions per second per account.

", + "ListTagsForStream": "

Lists the tags for the specified Amazon Kinesis stream.

", + "MergeShards": "

Merges two adjacent shards in a stream and combines them into a single shard to reduce the stream's capacity to ingest and transport data. Two shards are considered adjacent if the union of the hash key ranges for the two shards form a contiguous set with no gaps. For example, if you have two shards, one with a hash key range of 276...381 and the other with a hash key range of 382...454, then you could merge these two shards into a single shard that would have a hash key range of 276...454. After the merge, the single child shard receives data for all hash key values covered by the two parent shards.

MergeShards is called when there is a need to reduce the overall capacity of a stream because of excess capacity that is not being used. You must specify the shard to be merged and the adjacent shard for a stream. For more information about merging shards, see Merge Two Shards in the Amazon Kinesis Developer Guide.

If the stream is in the ACTIVE state, you can call MergeShards. If a stream is in the CREATING, UPDATING, or DELETING state, MergeShards returns a ResourceInUseException. If the specified stream does not exist, MergeShards returns a ResourceNotFoundException.

You can use DescribeStream to check the state of the stream, which is returned in StreamStatus.

MergeShards is an asynchronous operation. Upon receiving a MergeShards request, Amazon Kinesis immediately returns a response and sets the StreamStatus to UPDATING. After the operation is completed, Amazon Kinesis sets the StreamStatus to ACTIVE. Read and write operations continue to work while the stream is in the UPDATING state.

You use DescribeStream to determine the shard IDs that are specified in the MergeShards request.

If you try to operate on too many streams in parallel using CreateStream, DeleteStream, MergeShards or SplitShard, you will receive a LimitExceededException.

MergeShards has limit of 5 transactions per second per account.

", + "PutRecord": "

Puts (writes) a single data record from a producer into an Amazon Kinesis stream. Call PutRecord to send data from the producer into the Amazon Kinesis stream for real-time ingestion and subsequent processing, one record at a time. Each shard can support up to 1000 records written per second, up to a maximum total of 1 MB data written per second.

You must specify the name of the stream that captures, stores, and transports the data; a partition key; and the data blob itself.

The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.

The partition key is used by Amazon Kinesis to distribute data across shards. Amazon Kinesis segregates the data records that belong to a data stream into multiple shards, using the partition key associated with each data record to determine which shard a given data record belongs to.

Partition keys are Unicode strings, with a maximum length limit of 256 characters for each key. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards using the hash key ranges of the shards. You can override hashing the partition key to determine the shard by explicitly specifying a hash value using the ExplicitHashKey parameter. For more information, see Adding Data to a Stream in the Amazon Kinesis Developer Guide.

PutRecord returns the shard ID of where the data record was placed and the sequence number that was assigned to the data record.

Sequence numbers generally increase over time. To guarantee strictly increasing ordering, use the SequenceNumberForOrdering parameter. For more information, see Adding Data to a Stream in the Amazon Kinesis Developer Guide.

If a PutRecord request cannot be processed because of insufficient provisioned throughput on the shard involved in the request, PutRecord throws ProvisionedThroughputExceededException.

Data records are accessible for only 24 hours from the time that they are added to an Amazon Kinesis stream.

", + "PutRecords": "

Puts (writes) multiple data records from a producer into an Amazon Kinesis stream in a single call (also referred to as a PutRecords request). Use this operation to send data from a data producer into the Amazon Kinesis stream for real-time ingestion and processing. Each shard can support up to 1000 records written per second, up to a maximum total of 1 MB data written per second.

You must specify the name of the stream that captures, stores, and transports the data; and an array of request Records, with each record in the array requiring a partition key and data blob.

The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.

The partition key is used by Amazon Kinesis as input to a hash function that maps the partition key and associated data to a specific shard. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream. For more information, see Adding Data to a Stream in the Amazon Kinesis Developer Guide.

Each record in the Records array may include an optional parameter, ExplicitHashKey, which overrides the partition key to shard mapping. This parameter allows a data producer to determine explicitly the shard where the record is stored. For more information, see Adding Multiple Records with PutRecords in the Amazon Kinesis Developer Guide.

The PutRecords response includes an array of response Records. Each record in the response array directly correlates with a record in the request array using natural ordering, from the top to the bottom of the request and response. The response Records array always includes the same number of records as the request array.

The response Records array includes both successfully and unsuccessfully processed records. Amazon Kinesis attempts to process all records in each PutRecords request. A single record failure does not stop the processing of subsequent records.

A successfully-processed record includes ShardId and SequenceNumber values. The ShardId parameter identifies the shard in the stream where the record is stored. The SequenceNumber parameter is an identifier assigned to the put record, unique to all records in the stream.

An unsuccessfully-processed record includes ErrorCode and ErrorMessage values. ErrorCode reflects the type of error and can be one of the following values: ProvisionedThroughputExceededException or InternalFailure. ErrorMessage provides more detailed information about the ProvisionedThroughputExceededException exception including the account ID, stream name, and shard ID of the record that was throttled. For more information about partially successful responses, see Adding Multiple Records with PutRecords in the Amazon Kinesis Developer Guide.

Data records are accessible for only 24 hours from the time that they are added to an Amazon Kinesis stream.

", + "RemoveTagsFromStream": "

Deletes tags from the specified Amazon Kinesis stream.

If you specify a tag that does not exist, it is ignored.

", + "SplitShard": "

Splits a shard into two new shards in the stream, to increase the stream's capacity to ingest and transport data. SplitShard is called when there is a need to increase the overall capacity of stream because of an expected increase in the volume of data records being ingested.

You can also use SplitShard when a shard appears to be approaching its maximum utilization, for example, when the set of producers sending data into the specific shard are suddenly sending more than previously anticipated. You can also call SplitShard to increase stream capacity, so that more Amazon Kinesis applications can simultaneously read data from the stream for real-time processing.

You must specify the shard to be split and the new hash key, which is the position in the shard where the shard gets split in two. In many cases, the new hash key might simply be the average of the beginning and ending hash key, but it can be any hash key value in the range being mapped into the shard. For more information about splitting shards, see Split a Shard in the Amazon Kinesis Developer Guide.

You can use DescribeStream to determine the shard ID and hash key values for the ShardToSplit and NewStartingHashKey parameters that are specified in the SplitShard request.

SplitShard is an asynchronous operation. Upon receiving a SplitShard request, Amazon Kinesis immediately returns a response and sets the stream status to UPDATING. After the operation is completed, Amazon Kinesis sets the stream status to ACTIVE. Read and write operations continue to work while the stream is in the UPDATING state.

You can use DescribeStream to check the status of the stream, which is returned in StreamStatus. If the stream is in the ACTIVE state, you can call SplitShard. If a stream is in CREATING or UPDATING or DELETING states, DescribeStream returns a ResourceInUseException.

If the specified stream does not exist, DescribeStream returns a ResourceNotFoundException. If you try to create more shards than are authorized for your account, you receive a LimitExceededException.

For the default shard limit for an AWS account, see Amazon Kinesis Limits. If you need to increase this limit, contact AWS Support

If you try to operate on too many streams in parallel using CreateStream, DeleteStream, MergeShards or SplitShard, you receive a LimitExceededException.

SplitShard has limit of 5 transactions per second per account.

" + }, + "service": "Amazon Kinesis Service API Reference

Amazon Kinesis is a managed service that scales elastically for real time processing of streaming big data.

", + "shapes": { + "AddTagsToStreamInput": { + "base": "

Represents the input for AddTagsToStream.

", + "refs": { + } + }, + "BooleanObject": { + "base": null, + "refs": { + "ListStreamsOutput$HasMoreStreams": "

If set to true, there are more streams available to list.

", + "ListTagsForStreamOutput$HasMoreTags": "

If set to true, more tags are available. To request additional tags, set ExclusiveStartTagKey to the key of the last tag returned.

", + "StreamDescription$HasMoreShards": "

If set to true, more shards in the stream are available to describe.

" + } + }, + "CreateStreamInput": { + "base": "

Represents the input for CreateStream.

", + "refs": { + } + }, + "Data": { + "base": null, + "refs": { + "PutRecordInput$Data": "

The data blob to put into the record, which is base64-encoded when the blob is serialized. The maximum size of the data blob (the payload before base64-encoding) is 50 kilobytes (KB)

", + "PutRecordsRequestEntry$Data": "

The data blob to put into the record, which is base64-encoded when the blob is serialized. The maximum size of the data blob (the payload before base64-encoding) is 50 kilobytes (KB)

", + "Record$Data": "

The data blob. The data in the blob is both opaque and immutable to the Amazon Kinesis service, which does not inspect, interpret, or change the data in the blob in any way. The maximum size of the data blob (the payload before base64-encoding) is 50 kilobytes (KB)

" + } + }, + "DeleteStreamInput": { + "base": "

Represents the input for DeleteStream.

", + "refs": { + } + }, + "DescribeStreamInput": { + "base": "

Represents the input for DescribeStream.

", + "refs": { + } + }, + "DescribeStreamInputLimit": { + "base": null, + "refs": { + "DescribeStreamInput$Limit": "

The maximum number of shards to return.

" + } + }, + "DescribeStreamOutput": { + "base": "

Represents the output for DescribeStream.

", + "refs": { + } + }, + "ErrorCode": { + "base": null, + "refs": { + "PutRecordsResultEntry$ErrorCode": "

The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "ExpiredIteratorException$message": "

A message that provides information about the error.

", + "InvalidArgumentException$message": "

A message that provides information about the error.

", + "LimitExceededException$message": "

A message that provides information about the error.

", + "ProvisionedThroughputExceededException$message": "

A message that provides information about the error.

", + "PutRecordsResultEntry$ErrorMessage": "

The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message \"Internal Service Failure\".

", + "ResourceInUseException$message": "

A message that provides information about the error.

", + "ResourceNotFoundException$message": "

A message that provides information about the error.

" + } + }, + "ExpiredIteratorException": { + "base": "

The provided iterator exceeds the maximum age allowed.

", + "refs": { + } + }, + "GetRecordsInput": { + "base": "

Represents the input for GetRecords.

", + "refs": { + } + }, + "GetRecordsInputLimit": { + "base": null, + "refs": { + "GetRecordsInput$Limit": "

The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater than 10,000, GetRecords throws InvalidArgumentException.

" + } + }, + "GetRecordsOutput": { + "base": "

Represents the output for GetRecords.

", + "refs": { + } + }, + "GetShardIteratorInput": { + "base": "

Represents the input for GetShardIterator.

", + "refs": { + } + }, + "GetShardIteratorOutput": { + "base": "

Represents the output for GetShardIterator.

", + "refs": { + } + }, + "HashKey": { + "base": null, + "refs": { + "HashKeyRange$StartingHashKey": "

The starting hash key of the hash key range.

", + "HashKeyRange$EndingHashKey": "

The ending hash key of the hash key range.

", + "PutRecordInput$ExplicitHashKey": "

The hash value used to explicitly determine the shard the data record is assigned to by overriding the partition key hash.

", + "PutRecordsRequestEntry$ExplicitHashKey": "

The hash value used to determine explicitly the shard that the data record is assigned to by overriding the partition key hash.

", + "SplitShardInput$NewStartingHashKey": "

A hash key value for the starting hash key of one of the child shards created by the split. The hash key range for a given shard constitutes a set of ordered contiguous positive integers. The value for NewStartingHashKey must be in the range of hash keys being mapped into the shard. The NewStartingHashKey hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard.

" + } + }, + "HashKeyRange": { + "base": "

The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.

", + "refs": { + "Shard$HashKeyRange": "

The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.

" + } + }, + "InvalidArgumentException": { + "base": "

A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.

", + "refs": { + } + }, + "LimitExceededException": { + "base": "

The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed (5).

", + "refs": { + } + }, + "ListStreamsInput": { + "base": "

Represents the input for ListStreams.

", + "refs": { + } + }, + "ListStreamsInputLimit": { + "base": null, + "refs": { + "ListStreamsInput$Limit": "

The maximum number of streams to list.

" + } + }, + "ListStreamsOutput": { + "base": "

Represents the output for ListStreams.

", + "refs": { + } + }, + "ListTagsForStreamInput": { + "base": "

Represents the input for ListTagsForStream.

", + "refs": { + } + }, + "ListTagsForStreamInputLimit": { + "base": null, + "refs": { + "ListTagsForStreamInput$Limit": "

The number of tags to return. If this number is less than the total number of tags associated with the stream, HasMoreTags is set to true. To list additional tags, set ExclusiveStartTagKey to the last key in the response.

" + } + }, + "ListTagsForStreamOutput": { + "base": "

Represents the output for ListTagsForStream.

", + "refs": { + } + }, + "MergeShardsInput": { + "base": "

Represents the input for MergeShards.

", + "refs": { + } + }, + "MillisBehindLatest": { + "base": null, + "refs": { + "GetRecordsOutput$MillisBehindLatest": "

The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates record processing is caught up, and there are no new records to process at this moment.

" + } + }, + "PartitionKey": { + "base": null, + "refs": { + "PutRecordInput$PartitionKey": "

Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key will map to the same shard within the stream.

", + "PutRecordsRequestEntry$PartitionKey": "

Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.

", + "Record$PartitionKey": "

Identifies which shard in the stream the data record is assigned to.

" + } + }, + "PositiveIntegerObject": { + "base": null, + "refs": { + "CreateStreamInput$ShardCount": "

The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput.

DefaultShardLimit;

", + "PutRecordsOutput$FailedRecordCount": "

The number of unsuccessfully processed records in a PutRecords request.

" + } + }, + "ProvisionedThroughputExceededException": { + "base": "

The request rate 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 Error Retries and Exponential Backoff in AWS in the AWS General Reference.

", + "refs": { + } + }, + "PutRecordInput": { + "base": "

Represents the input for PutRecord.

", + "refs": { + } + }, + "PutRecordOutput": { + "base": "

Represents the output for PutRecord.

", + "refs": { + } + }, + "PutRecordsInput": { + "base": "

A PutRecords request.

", + "refs": { + } + }, + "PutRecordsOutput": { + "base": "

PutRecords results.

", + "refs": { + } + }, + "PutRecordsRequestEntry": { + "base": "

Represents the output for PutRecords.

", + "refs": { + "PutRecordsRequestEntryList$member": null + } + }, + "PutRecordsRequestEntryList": { + "base": null, + "refs": { + "PutRecordsInput$Records": "

The records associated with the request.

" + } + }, + "PutRecordsResultEntry": { + "base": "

Represents the result of an individual record from a PutRecords request. A record that is successfully added to your Amazon Kinesis stream includes SequenceNumber and ShardId in the result. A record that fails to be added to your Amazon Kinesis stream includes ErrorCode and ErrorMessage in the result.

", + "refs": { + "PutRecordsResultEntryList$member": null + } + }, + "PutRecordsResultEntryList": { + "base": null, + "refs": { + "PutRecordsOutput$Records": "

An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering. A record that is successfully added to your Amazon Kinesis stream includes SequenceNumber and ShardId in the result. A record that fails to be added to your Amazon Kinesis stream includes ErrorCode and ErrorMessage in the result.

" + } + }, + "Record": { + "base": "

The unit of data of the Amazon Kinesis stream, which is composed of a sequence number, a partition key, and a data blob.

", + "refs": { + "RecordList$member": null + } + }, + "RecordList": { + "base": null, + "refs": { + "GetRecordsOutput$Records": "

The data records retrieved from the shard.

" + } + }, + "RemoveTagsFromStreamInput": { + "base": "

Represents the input for RemoveTagsFromStream.

", + "refs": { + } + }, + "ResourceInUseException": { + "base": "

The resource is not available for this operation. For example, you attempted to split a shard but the stream is not in the ACTIVE state.

", + "refs": { + } + }, + "ResourceNotFoundException": { + "base": "

The requested resource could not be found. It might not be specified correctly, or it might not be in the ACTIVE state.

", + "refs": { + } + }, + "SequenceNumber": { + "base": null, + "refs": { + "GetShardIteratorInput$StartingSequenceNumber": "

The sequence number of the data record in the shard from which to start reading from.

", + "PutRecordInput$SequenceNumberForOrdering": "

Guarantees strictly increasing sequence numbers, for puts from the same client and to the same partition key. Usage: set the SequenceNumberForOrdering of record n to the sequence number of record n-1 (as returned in the result when putting record n-1). If this parameter is not set, records will be coarsely ordered based on arrival time.

", + "PutRecordOutput$SequenceNumber": "

The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.

", + "PutRecordsResultEntry$SequenceNumber": "

The sequence number for an individual record result.

", + "Record$SequenceNumber": "

The unique identifier for the record in the Amazon Kinesis stream.

", + "SequenceNumberRange$StartingSequenceNumber": "

The starting sequence number for the range.

", + "SequenceNumberRange$EndingSequenceNumber": "

The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of null.

" + } + }, + "SequenceNumberRange": { + "base": "

The range of possible sequence numbers for the shard.

", + "refs": { + "Shard$SequenceNumberRange": "

The range of possible sequence numbers for the shard.

" + } + }, + "Shard": { + "base": "

A uniquely identified group of data records in an Amazon Kinesis stream.

", + "refs": { + "ShardList$member": null + } + }, + "ShardId": { + "base": null, + "refs": { + "DescribeStreamInput$ExclusiveStartShardId": "

The shard ID of the shard to start with.

", + "GetShardIteratorInput$ShardId": "

The shard ID of the shard to get the iterator for.

", + "MergeShardsInput$ShardToMerge": "

The shard ID of the shard to combine with the adjacent shard for the merge.

", + "MergeShardsInput$AdjacentShardToMerge": "

The shard ID of the adjacent shard for the merge.

", + "PutRecordOutput$ShardId": "

The shard ID of the shard where the data record was placed.

", + "PutRecordsResultEntry$ShardId": "

The shard ID for an individual record result.

", + "Shard$ShardId": "

The unique identifier of the shard within the Amazon Kinesis stream.

", + "Shard$ParentShardId": "

The shard Id of the shard's parent.

", + "Shard$AdjacentParentShardId": "

The shard Id of the shard adjacent to the shard's parent.

", + "SplitShardInput$ShardToSplit": "

The shard ID of the shard to split.

" + } + }, + "ShardIterator": { + "base": null, + "refs": { + "GetRecordsInput$ShardIterator": "

The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard.

", + "GetRecordsOutput$NextShardIterator": "

The next position in the shard from which to start sequentially reading data records. If set to null, the shard has been closed and the requested iterator will not return any more data.

", + "GetShardIteratorOutput$ShardIterator": "

The position in the shard from which to start reading data records sequentially. A shard iterator specifies this position using the sequence number of a data record in a shard.

" + } + }, + "ShardIteratorType": { + "base": null, + "refs": { + "GetShardIteratorInput$ShardIteratorType": "

Determines how the shard iterator is used to start reading data records from the shard.

The following are the valid shard iterator types:

  • AT_SEQUENCE_NUMBER - Start reading exactly from the position denoted by a specific sequence number.
  • AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number.
  • TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
  • LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
" + } + }, + "ShardList": { + "base": null, + "refs": { + "StreamDescription$Shards": "

The shards that comprise the stream.

" + } + }, + "SplitShardInput": { + "base": "

Represents the input for SplitShard.

", + "refs": { + } + }, + "StreamARN": { + "base": null, + "refs": { + "StreamDescription$StreamARN": "

The Amazon Resource Name (ARN) for the stream being described.

" + } + }, + "StreamDescription": { + "base": "

Represents the output for DescribeStream.

", + "refs": { + "DescribeStreamOutput$StreamDescription": "

The current status of the stream, the stream ARN, an array of shard objects that comprise the stream, and states whether there are more shards available.

" + } + }, + "StreamName": { + "base": null, + "refs": { + "AddTagsToStreamInput$StreamName": "

The name of the stream.

", + "CreateStreamInput$StreamName": "

A name to identify the stream. The stream name is scoped to the AWS account used by the application that creates the stream. It is also scoped by region. That is, two streams in two different AWS accounts can have the same name, and two streams in the same AWS account, but in two different regions, can have the same name.

", + "DeleteStreamInput$StreamName": "

The name of the stream to delete.

", + "DescribeStreamInput$StreamName": "

The name of the stream to describe.

", + "GetShardIteratorInput$StreamName": "

The name of the stream.

", + "ListStreamsInput$ExclusiveStartStreamName": "

The name of the stream to start the list with.

", + "ListTagsForStreamInput$StreamName": "

The name of the stream.

", + "MergeShardsInput$StreamName": "

The name of the stream for the merge.

", + "PutRecordInput$StreamName": "

The name of the stream to put the data record into.

", + "PutRecordsInput$StreamName": "

The stream name associated with the request.

", + "RemoveTagsFromStreamInput$StreamName": "

The name of the stream.

", + "SplitShardInput$StreamName": "

The name of the stream for the shard split.

", + "StreamDescription$StreamName": "

The name of the stream being described.

", + "StreamNameList$member": null + } + }, + "StreamNameList": { + "base": null, + "refs": { + "ListStreamsOutput$StreamNames": "

The names of the streams that are associated with the AWS account making the ListStreams request.

" + } + }, + "StreamStatus": { + "base": null, + "refs": { + "StreamDescription$StreamStatus": "

The current status of the stream being described.

The stream status is one of the following states:

  • CREATING - The stream is being created. Amazon Kinesis immediately returns and sets StreamStatus to CREATING.
  • DELETING - The stream is being deleted. The specified stream is in the DELETING state until Amazon Kinesis completes the deletion.
  • ACTIVE - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an ACTIVE stream.
  • UPDATING - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the UPDATING state.
" + } + }, + "Tag": { + "base": "

Metadata assigned to the stream, consisting of a key-value pair.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "ListTagsForStreamInput$ExclusiveStartTagKey": "

The key to use as the starting point for the list of tags. If this parameter is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey.

", + "Tag$Key": "

A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @

", + "TagKeyList$member": null, + "TagMap$key": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "RemoveTagsFromStreamInput$TagKeys": "

A list of tag keys. Each corresponding tag is removed from the stream.

" + } + }, + "TagList": { + "base": null, + "refs": { + "ListTagsForStreamOutput$Tags": "

A list of tags associated with StreamName, starting with the first tag after ExclusiveStartTagKey and up to the specified Limit.

" + } + }, + "TagMap": { + "base": null, + "refs": { + "AddTagsToStreamInput$Tags": "

The set of key-value pairs to use to create the tags.

" + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @

", + "TagMap$value": null + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/kinesis/2013-12-02/waiters-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/apis/kms/2014-11-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/kms/2014-11-01/api-2.json new file mode 100644 index 000000000..deb77d3aa --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/kms/2014-11-01/api-2.json @@ -0,0 +1,2120 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2014-11-01", + "endpointPrefix":"kms", + "jsonVersion":"1.1", + "serviceAbbreviation":"KMS", + "serviceFullName":"AWS Key Management Service", + "signatureVersion":"v4", + "targetPrefix":"TrentService", + "protocol":"json" + }, + "operations":{ + "CreateAlias":{ + "name":"CreateAlias", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAliasRequest"}, + "errors":[ + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"AlreadyExistsException", + "error":{ + "code":"AlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidAliasNameException", + "error":{ + "code":"InvalidAliasName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "CreateGrant":{ + "name":"CreateGrant", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateGrantRequest"}, + "output":{"shape":"CreateGrantResponse"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DisabledException", + "error":{ + "code":"Disabled", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidGrantTokenException", + "error":{ + "code":"InvalidGrantToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "CreateKey":{ + "name":"CreateKey", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateKeyRequest"}, + "output":{"shape":"CreateKeyResponse"}, + "errors":[ + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnsupportedOperationException", + "error":{ + "code":"UnsupportedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "Decrypt":{ + "name":"Decrypt", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DecryptRequest"}, + "output":{"shape":"DecryptResponse"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DisabledException", + "error":{ + "code":"Disabled", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCiphertextException", + "error":{ + "code":"InvalidCiphertext", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KeyUnavailableException", + "error":{ + "code":"KeyUnavailable", + "httpStatusCode":500 + }, + "exception":true, + "fault":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidGrantTokenException", + "error":{ + "code":"InvalidGrantToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "DeleteAlias":{ + "name":"DeleteAlias", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAliasRequest"}, + "errors":[ + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "DescribeKey":{ + "name":"DescribeKey", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeKeyRequest"}, + "output":{"shape":"DescribeKeyResponse"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "DisableKey":{ + "name":"DisableKey", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisableKeyRequest"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "DisableKeyRotation":{ + "name":"DisableKeyRotation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisableKeyRotationRequest"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DisabledException", + "error":{ + "code":"Disabled", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "EnableKey":{ + "name":"EnableKey", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableKeyRequest"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "EnableKeyRotation":{ + "name":"EnableKeyRotation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableKeyRotationRequest"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DisabledException", + "error":{ + "code":"Disabled", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "Encrypt":{ + "name":"Encrypt", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EncryptRequest"}, + "output":{"shape":"EncryptResponse"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DisabledException", + "error":{ + "code":"Disabled", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KeyUnavailableException", + "error":{ + "code":"KeyUnavailable", + "httpStatusCode":500 + }, + "exception":true, + "fault":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidKeyUsageException", + "error":{ + "code":"InvalidKeyUsage", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidGrantTokenException", + "error":{ + "code":"InvalidGrantToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "GenerateDataKey":{ + "name":"GenerateDataKey", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GenerateDataKeyRequest"}, + "output":{"shape":"GenerateDataKeyResponse"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DisabledException", + "error":{ + "code":"Disabled", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KeyUnavailableException", + "error":{ + "code":"KeyUnavailable", + "httpStatusCode":500 + }, + "exception":true, + "fault":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidKeyUsageException", + "error":{ + "code":"InvalidKeyUsage", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidGrantTokenException", + "error":{ + "code":"InvalidGrantToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "GenerateDataKeyWithoutPlaintext":{ + "name":"GenerateDataKeyWithoutPlaintext", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GenerateDataKeyWithoutPlaintextRequest"}, + "output":{"shape":"GenerateDataKeyWithoutPlaintextResponse"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DisabledException", + "error":{ + "code":"Disabled", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KeyUnavailableException", + "error":{ + "code":"KeyUnavailable", + "httpStatusCode":500 + }, + "exception":true, + "fault":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidKeyUsageException", + "error":{ + "code":"InvalidKeyUsage", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidGrantTokenException", + "error":{ + "code":"InvalidGrantToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "GenerateRandom":{ + "name":"GenerateRandom", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GenerateRandomRequest"}, + "output":{"shape":"GenerateRandomResponse"}, + "errors":[ + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "GetKeyPolicy":{ + "name":"GetKeyPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetKeyPolicyRequest"}, + "output":{"shape":"GetKeyPolicyResponse"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "GetKeyRotationStatus":{ + "name":"GetKeyRotationStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetKeyRotationStatusRequest"}, + "output":{"shape":"GetKeyRotationStatusResponse"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "ListAliases":{ + "name":"ListAliases", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAliasesRequest"}, + "output":{"shape":"ListAliasesResponse"}, + "errors":[ + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidMarkerException", + "error":{ + "code":"InvalidMarker", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "ListGrants":{ + "name":"ListGrants", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListGrantsRequest"}, + "output":{"shape":"ListGrantsResponse"}, + "errors":[ + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidMarkerException", + "error":{ + "code":"InvalidMarker", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "ListKeyPolicies":{ + "name":"ListKeyPolicies", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListKeyPoliciesRequest"}, + "output":{"shape":"ListKeyPoliciesResponse"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "ListKeys":{ + "name":"ListKeys", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListKeysRequest"}, + "output":{"shape":"ListKeysResponse"}, + "errors":[ + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "PutKeyPolicy":{ + "name":"PutKeyPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutKeyPolicyRequest"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnsupportedOperationException", + "error":{ + "code":"UnsupportedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"LimitExceededException", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "ReEncrypt":{ + "name":"ReEncrypt", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReEncryptRequest"}, + "output":{"shape":"ReEncryptResponse"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DisabledException", + "error":{ + "code":"Disabled", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidCiphertextException", + "error":{ + "code":"InvalidCiphertext", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KeyUnavailableException", + "error":{ + "code":"KeyUnavailable", + "httpStatusCode":500 + }, + "exception":true, + "fault":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidKeyUsageException", + "error":{ + "code":"InvalidKeyUsage", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidGrantTokenException", + "error":{ + "code":"InvalidGrantToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "RetireGrant":{ + "name":"RetireGrant", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RetireGrantRequest"}, + "errors":[ + { + "shape":"InvalidGrantTokenException", + "error":{ + "code":"InvalidGrantToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "RevokeGrant":{ + "name":"RevokeGrant", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RevokeGrantRequest"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "UpdateAlias":{ + "name":"UpdateAlias", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateAliasRequest"}, + "errors":[ + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + }, + "UpdateKeyDescription":{ + "name":"UpdateKeyDescription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateKeyDescriptionRequest"}, + "errors":[ + { + "shape":"NotFoundException", + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidArnException", + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DependencyTimeoutException", + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + { + "shape":"KMSInternalException", + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + } + ] + } + }, + "shapes":{ + "AWSAccountIdType":{"type":"string"}, + "AliasList":{ + "type":"list", + "member":{"shape":"AliasListEntry"} + }, + "AliasListEntry":{ + "type":"structure", + "members":{ + "AliasName":{"shape":"AliasNameType"}, + "AliasArn":{"shape":"ArnType"}, + "TargetKeyId":{"shape":"KeyIdType"} + } + }, + "AliasNameType":{ + "type":"string", + "min":1, + "max":256, + "pattern":"^[a-zA-Z0-9:/_-]+$" + }, + "AlreadyExistsException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"AlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ArnType":{ + "type":"string", + "min":20, + "max":2048 + }, + "BooleanType":{"type":"boolean"}, + "CiphertextType":{ + "type":"blob", + "min":1, + "max":6144 + }, + "CreateAliasRequest":{ + "type":"structure", + "required":[ + "AliasName", + "TargetKeyId" + ], + "members":{ + "AliasName":{"shape":"AliasNameType"}, + "TargetKeyId":{"shape":"KeyIdType"} + } + }, + "CreateGrantRequest":{ + "type":"structure", + "required":[ + "KeyId", + "GranteePrincipal" + ], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "GranteePrincipal":{"shape":"PrincipalIdType"}, + "RetiringPrincipal":{"shape":"PrincipalIdType"}, + "Operations":{"shape":"GrantOperationList"}, + "Constraints":{"shape":"GrantConstraints"}, + "GrantTokens":{"shape":"GrantTokenList"} + } + }, + "CreateGrantResponse":{ + "type":"structure", + "members":{ + "GrantToken":{"shape":"GrantTokenType"}, + "GrantId":{"shape":"GrantIdType"} + } + }, + "CreateKeyRequest":{ + "type":"structure", + "members":{ + "Policy":{"shape":"PolicyType"}, + "Description":{"shape":"DescriptionType"}, + "KeyUsage":{"shape":"KeyUsageType"} + } + }, + "CreateKeyResponse":{ + "type":"structure", + "members":{ + "KeyMetadata":{"shape":"KeyMetadata"} + } + }, + "DataKeySpec":{ + "type":"string", + "enum":[ + "AES_256", + "AES_128" + ] + }, + "DateType":{"type":"timestamp"}, + "DecryptRequest":{ + "type":"structure", + "required":["CiphertextBlob"], + "members":{ + "CiphertextBlob":{"shape":"CiphertextType"}, + "EncryptionContext":{"shape":"EncryptionContextType"}, + "GrantTokens":{"shape":"GrantTokenList"} + } + }, + "DecryptResponse":{ + "type":"structure", + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "Plaintext":{"shape":"PlaintextType"} + } + }, + "DeleteAliasRequest":{ + "type":"structure", + "required":["AliasName"], + "members":{ + "AliasName":{"shape":"AliasNameType"} + } + }, + "DependencyTimeoutException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"DependencyTimeout", + "httpStatusCode":503 + }, + "exception":true, + "fault":true + }, + "DescribeKeyRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"} + } + }, + "DescribeKeyResponse":{ + "type":"structure", + "members":{ + "KeyMetadata":{"shape":"KeyMetadata"} + } + }, + "DescriptionType":{ + "type":"string", + "min":0, + "max":8192 + }, + "DisableKeyRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"} + } + }, + "DisableKeyRotationRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"} + } + }, + "DisabledException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"Disabled", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "EnableKeyRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"} + } + }, + "EnableKeyRotationRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"} + } + }, + "EncryptRequest":{ + "type":"structure", + "required":[ + "KeyId", + "Plaintext" + ], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "Plaintext":{"shape":"PlaintextType"}, + "EncryptionContext":{"shape":"EncryptionContextType"}, + "GrantTokens":{"shape":"GrantTokenList"} + } + }, + "EncryptResponse":{ + "type":"structure", + "members":{ + "CiphertextBlob":{"shape":"CiphertextType"}, + "KeyId":{"shape":"KeyIdType"} + } + }, + "EncryptionContextKey":{"type":"string"}, + "EncryptionContextType":{ + "type":"map", + "key":{"shape":"EncryptionContextKey"}, + "value":{"shape":"EncryptionContextValue"} + }, + "EncryptionContextValue":{"type":"string"}, + "ErrorMessageType":{"type":"string"}, + "GenerateDataKeyRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "EncryptionContext":{"shape":"EncryptionContextType"}, + "NumberOfBytes":{"shape":"NumberOfBytesType"}, + "KeySpec":{"shape":"DataKeySpec"}, + "GrantTokens":{"shape":"GrantTokenList"} + } + }, + "GenerateDataKeyResponse":{ + "type":"structure", + "members":{ + "CiphertextBlob":{"shape":"CiphertextType"}, + "Plaintext":{"shape":"PlaintextType"}, + "KeyId":{"shape":"KeyIdType"} + } + }, + "GenerateDataKeyWithoutPlaintextRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "EncryptionContext":{"shape":"EncryptionContextType"}, + "KeySpec":{"shape":"DataKeySpec"}, + "NumberOfBytes":{"shape":"NumberOfBytesType"}, + "GrantTokens":{"shape":"GrantTokenList"} + } + }, + "GenerateDataKeyWithoutPlaintextResponse":{ + "type":"structure", + "members":{ + "CiphertextBlob":{"shape":"CiphertextType"}, + "KeyId":{"shape":"KeyIdType"} + } + }, + "GenerateRandomRequest":{ + "type":"structure", + "members":{ + "NumberOfBytes":{"shape":"NumberOfBytesType"} + } + }, + "GenerateRandomResponse":{ + "type":"structure", + "members":{ + "Plaintext":{"shape":"PlaintextType"} + } + }, + "GetKeyPolicyRequest":{ + "type":"structure", + "required":[ + "KeyId", + "PolicyName" + ], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "PolicyName":{"shape":"PolicyNameType"} + } + }, + "GetKeyPolicyResponse":{ + "type":"structure", + "members":{ + "Policy":{"shape":"PolicyType"} + } + }, + "GetKeyRotationStatusRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"} + } + }, + "GetKeyRotationStatusResponse":{ + "type":"structure", + "members":{ + "KeyRotationEnabled":{"shape":"BooleanType"} + } + }, + "GrantConstraints":{ + "type":"structure", + "members":{ + "EncryptionContextSubset":{"shape":"EncryptionContextType"}, + "EncryptionContextEquals":{"shape":"EncryptionContextType"} + } + }, + "GrantIdType":{ + "type":"string", + "min":1, + "max":128 + }, + "GrantList":{ + "type":"list", + "member":{"shape":"GrantListEntry"} + }, + "GrantListEntry":{ + "type":"structure", + "members":{ + "GrantId":{"shape":"GrantIdType"}, + "GranteePrincipal":{"shape":"PrincipalIdType"}, + "RetiringPrincipal":{"shape":"PrincipalIdType"}, + "IssuingAccount":{"shape":"PrincipalIdType"}, + "Operations":{"shape":"GrantOperationList"}, + "Constraints":{"shape":"GrantConstraints"} + } + }, + "GrantOperation":{ + "type":"string", + "enum":[ + "Decrypt", + "Encrypt", + "GenerateDataKey", + "GenerateDataKeyWithoutPlaintext", + "ReEncryptFrom", + "ReEncryptTo", + "CreateGrant", + "RetireGrant" + ] + }, + "GrantOperationList":{ + "type":"list", + "member":{"shape":"GrantOperation"} + }, + "GrantTokenList":{ + "type":"list", + "member":{"shape":"GrantTokenType"}, + "min":0, + "max":10 + }, + "GrantTokenType":{ + "type":"string", + "min":1, + "max":8192 + }, + "InvalidAliasNameException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"InvalidAliasName", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidArnException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"InvalidArn", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidCiphertextException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"InvalidCiphertext", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidGrantTokenException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"InvalidGrantToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidKeyUsageException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"InvalidKeyUsage", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidMarkerException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"InvalidMarker", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "KMSInternalException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"KMSInternal", + "httpStatusCode":500 + }, + "exception":true + }, + "KeyIdType":{ + "type":"string", + "min":1, + "max":256 + }, + "KeyList":{ + "type":"list", + "member":{"shape":"KeyListEntry"} + }, + "KeyListEntry":{ + "type":"structure", + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "KeyArn":{"shape":"ArnType"} + } + }, + "KeyMetadata":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "AWSAccountId":{"shape":"AWSAccountIdType"}, + "KeyId":{"shape":"KeyIdType"}, + "Arn":{"shape":"ArnType"}, + "CreationDate":{"shape":"DateType"}, + "Enabled":{"shape":"BooleanType"}, + "Description":{"shape":"DescriptionType"}, + "KeyUsage":{"shape":"KeyUsageType"} + } + }, + "KeyUnavailableException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"KeyUnavailable", + "httpStatusCode":500 + }, + "exception":true, + "fault":true + }, + "KeyUsageType":{ + "type":"string", + "enum":["ENCRYPT_DECRYPT"] + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "LimitType":{ + "type":"integer", + "min":1, + "max":1000 + }, + "ListAliasesRequest":{ + "type":"structure", + "members":{ + "Limit":{"shape":"LimitType"}, + "Marker":{"shape":"MarkerType"} + } + }, + "ListAliasesResponse":{ + "type":"structure", + "members":{ + "Aliases":{"shape":"AliasList"}, + "NextMarker":{"shape":"MarkerType"}, + "Truncated":{"shape":"BooleanType"} + } + }, + "ListGrantsRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "Limit":{"shape":"LimitType"}, + "Marker":{"shape":"MarkerType"} + } + }, + "ListGrantsResponse":{ + "type":"structure", + "members":{ + "Grants":{"shape":"GrantList"}, + "NextMarker":{"shape":"MarkerType"}, + "Truncated":{"shape":"BooleanType"} + } + }, + "ListKeyPoliciesRequest":{ + "type":"structure", + "required":["KeyId"], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "Limit":{"shape":"LimitType"}, + "Marker":{"shape":"MarkerType"} + } + }, + "ListKeyPoliciesResponse":{ + "type":"structure", + "members":{ + "PolicyNames":{"shape":"PolicyNameList"}, + "NextMarker":{"shape":"MarkerType"}, + "Truncated":{"shape":"BooleanType"} + } + }, + "ListKeysRequest":{ + "type":"structure", + "members":{ + "Limit":{"shape":"LimitType"}, + "Marker":{"shape":"MarkerType"} + } + }, + "ListKeysResponse":{ + "type":"structure", + "members":{ + "Keys":{"shape":"KeyList"}, + "NextMarker":{"shape":"MarkerType"}, + "Truncated":{"shape":"BooleanType"} + } + }, + "MalformedPolicyDocumentException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "MarkerType":{ + "type":"string", + "min":1, + "max":320, + "pattern":"[\\u0020-\\u00FF]*" + }, + "NotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"NotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "NumberOfBytesType":{ + "type":"integer", + "min":1, + "max":1024 + }, + "PlaintextType":{ + "type":"blob", + "min":1, + "max":4096, + "sensitive":true + }, + "PolicyNameList":{ + "type":"list", + "member":{"shape":"PolicyNameType"} + }, + "PolicyNameType":{ + "type":"string", + "min":1, + "max":128, + "pattern":"[\\w]+" + }, + "PolicyType":{ + "type":"string", + "min":1, + "max":131072, + "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" + }, + "PrincipalIdType":{ + "type":"string", + "min":1, + "max":256 + }, + "PutKeyPolicyRequest":{ + "type":"structure", + "required":[ + "KeyId", + "PolicyName", + "Policy" + ], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "PolicyName":{"shape":"PolicyNameType"}, + "Policy":{"shape":"PolicyType"} + } + }, + "ReEncryptRequest":{ + "type":"structure", + "required":[ + "CiphertextBlob", + "DestinationKeyId" + ], + "members":{ + "CiphertextBlob":{"shape":"CiphertextType"}, + "SourceEncryptionContext":{"shape":"EncryptionContextType"}, + "DestinationKeyId":{"shape":"KeyIdType"}, + "DestinationEncryptionContext":{"shape":"EncryptionContextType"}, + "GrantTokens":{"shape":"GrantTokenList"} + } + }, + "ReEncryptResponse":{ + "type":"structure", + "members":{ + "CiphertextBlob":{"shape":"CiphertextType"}, + "SourceKeyId":{"shape":"KeyIdType"}, + "KeyId":{"shape":"KeyIdType"} + } + }, + "RetireGrantRequest":{ + "type":"structure", + "members":{ + "GrantToken":{"shape":"GrantTokenType"}, + "KeyId":{"shape":"KeyIdType"}, + "GrantId":{"shape":"GrantIdType"} + } + }, + "RevokeGrantRequest":{ + "type":"structure", + "required":[ + "KeyId", + "GrantId" + ], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "GrantId":{"shape":"GrantIdType"} + } + }, + "UnsupportedOperationException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "error":{ + "code":"UnsupportedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "UpdateAliasRequest":{ + "type":"structure", + "required":[ + "AliasName", + "TargetKeyId" + ], + "members":{ + "AliasName":{"shape":"AliasNameType"}, + "TargetKeyId":{"shape":"KeyIdType"} + } + }, + "UpdateKeyDescriptionRequest":{ + "type":"structure", + "required":[ + "KeyId", + "Description" + ], + "members":{ + "KeyId":{"shape":"KeyIdType"}, + "Description":{"shape":"DescriptionType"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/apis/kms/2014-11-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/kms/2014-11-01/docs-2.json new file mode 100644 index 000000000..591d0ee45 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/kms/2014-11-01/docs-2.json @@ -0,0 +1,628 @@ +{ + "version": "2.0", + "operations": { + "CreateAlias": "

Creates a display name for a customer master key. An alias can be used to identify a key and should be unique. The console enforces a one-to-one mapping between the alias and a key. An alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). An alias must start with the word \"alias\" followed by a forward slash (alias/). An alias that begins with \"aws\" after the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS).

To associate an alias with a different key, call UpdateAlias.

Note that you cannot create or update an alias that represents a key in another account.

", + "CreateGrant": "

Adds a grant to a key to specify who can access the key and under what conditions. Grants are alternate permission mechanisms to key policies. For more information about grants, see Grants in the developer guide. If a grant is absent, access to the key is evaluated based on IAM policies attached to the user.

  1. ListGrants
  2. RetireGrant
  3. RevokeGrant

", + "CreateKey": "

Creates a customer master key. Customer master keys can be used to encrypt small amounts of data (less than 4K) directly, but they are most commonly used to encrypt or envelope data keys that are then used to encrypt customer data. For more information about data keys, see GenerateDataKey and GenerateDataKeyWithoutPlaintext.

", + "Decrypt": "

Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted by using any of the following functions:

Note that if a caller has been granted access permissions to all keys (through, for example, IAM user policies that grant Decrypt permission on all resources), then ciphertext encrypted by using keys in other accounts where the key grants access to the caller can be decrypted. To remedy this, we recommend that you do not grant Decrypt access in an IAM user policy. Instead grant Decrypt access only in key policies. If you must grant Decrypt access in an IAM user policy, you should scope the resource to specific keys or to specific trusted accounts.

", + "DeleteAlias": "

Deletes the specified alias. To associate an alias with a different key, call UpdateAlias.

", + "DescribeKey": "

Provides detailed information about the specified customer master key.

", + "DisableKey": "

Marks a key as disabled, thereby preventing its use.

", + "DisableKeyRotation": "Disables rotation of the specified key.", + "EnableKey": "Marks a key as enabled, thereby permitting its use. You can have up to 25 enabled keys at one time.", + "EnableKeyRotation": "Enables rotation of the specified customer master key.", + "Encrypt": "

Encrypts plaintext into ciphertext by using a customer master key. The Encrypt function has two primary use cases:

  • You can encrypt up to 4 KB of arbitrary data such as an RSA key, a database password, or other sensitive customer information.
  • If you are moving encrypted data from one region to another, you can use this API to encrypt in the new region the plaintext data key that was used to encrypt the data in the original region. This provides you with an encrypted copy of the data key that can be decrypted in the new region and used there to decrypt the encrypted data.

Unless you are moving encrypted data from one region to another, you don't use this function to encrypt a generated data key within a region. You retrieve data keys already encrypted by calling the GenerateDataKey or GenerateDataKeyWithoutPlaintext function. Data keys don't need to be encrypted again by calling Encrypt.

If you want to encrypt data locally in your application, you can use the GenerateDataKey function to return a plaintext data encryption key and a copy of the key encrypted under the customer master key (CMK) of your choosing.

", + "GenerateDataKey": "

Generates a data key that you can use in your application to locally encrypt data. This call returns a plaintext version of the key in the Plaintext field of the response object and an encrypted copy of the key in the CiphertextBlob field. The key is encrypted by using the master key specified by the KeyId field. To decrypt the encrypted key, pass it to the Decrypt API.

We recommend that you use the following pattern to locally encrypt data: call the GenerateDataKey API, use the key returned in the Plaintext response field to locally encrypt data, and then erase the plaintext data key from memory. Store the encrypted data key (contained in the CiphertextBlob field) alongside of the locally encrypted data.

You should not call the Encrypt function to re-encrypt your data keys within a region. GenerateDataKey always returns the data key encrypted and tied to the customer master key that will be used to decrypt it. There is no need to decrypt it twice.

If you decide to use the optional EncryptionContext parameter, you must also store the context in full or at least store enough information along with the encrypted data to be able to reconstruct the context when submitting the ciphertext to the Decrypt API. It is a good practice to choose a context that you can reconstruct on the fly to better secure the ciphertext. For more information about how this parameter is used, see Encryption Context.

To decrypt data, pass the encrypted data key to the Decrypt API. Decrypt uses the associated master key to decrypt the encrypted data key and returns it as plaintext. Use the plaintext data key to locally decrypt your data and then erase the key from memory. You must specify the encryption context, if any, that you specified when you generated the key. The encryption context is logged by CloudTrail, and you can use this log to help track the use of particular data.

", + "GenerateDataKeyWithoutPlaintext": "

Returns a data key encrypted by a customer master key without the plaintext copy of that key. Otherwise, this API functions exactly like GenerateDataKey. You can use this API to, for example, satisfy an audit requirement that an encrypted key be made available without exposing the plaintext copy of that key.

", + "GenerateRandom": "

Generates an unpredictable byte string.

", + "GetKeyPolicy": "

Retrieves a policy attached to the specified key.

", + "GetKeyRotationStatus": "Retrieves a Boolean value that indicates whether key rotation is enabled for the specified key.", + "ListAliases": "

Lists all of the key aliases in the account.

", + "ListGrants": "

List the grants for a specified key.

", + "ListKeyPolicies": "

Retrieves a list of policies attached to a key.

", + "ListKeys": "

Lists the customer master keys.

", + "PutKeyPolicy": "

Attaches a policy to the specified key.

", + "ReEncrypt": "

Encrypts data on the server side with a new customer master key without exposing the plaintext of the data on the client side. The data is first decrypted and then encrypted. This operation can also be used to change the encryption context of a ciphertext.

Unlike other actions, ReEncrypt is authorized twice - once as ReEncryptFrom on the source key and once as ReEncryptTo on the destination key. We therefore recommend that you include the \"action\":\"kms:ReEncrypt*\" statement in your key policies to permit re-encryption from or to the key. The statement is included automatically when you authorize use of the key through the console but must be included manually when you set a policy by using the PutKeyPolicy function.

", + "RetireGrant": "

Retires a grant. You can retire a grant when you're done using it to clean up. You should revoke a grant when you intend to actively deny operations that depend on it. The following are permitted to call this API:

  • The account that created the grant
  • The RetiringPrincipal, if present
  • The GranteePrincipal, if RetireGrant is a grantee operation
The grant to retire must be identified by its grant token or by a combination of the key ARN and the grant ID. A grant token is a unique variable-length base64-encoded string. A grant ID is a 64 character unique identifier of a grant. Both are returned by the CreateGrant function.

", + "RevokeGrant": "Revokes a grant. You can revoke a grant to actively deny operations that depend on it.", + "UpdateAlias": "

Updates an alias to associate it with a different key.

An alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). An alias must start with the word \"alias\" followed by a forward slash (alias/). An alias that begins with \"aws\" after the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS).

An alias is not a property of a key. Therefore, an alias can be associated with and disassociated from an existing key without changing the properties of the key.

Note that you cannot create or update an alias that represents a key in another account.

", + "UpdateKeyDescription": "

Updates the description of a key.

" + }, + "service": "AWS Key Management Service

AWS Key Management Service (KMS) is an encryption and key management web service. This guide describes the KMS actions that you can call programmatically. For general information about KMS, see the AWS Key Management Service Developer Guide

AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to KMS and AWS. For example, the SDKs take care of tasks such as signing requests (see below), managing errors, and retrying requests automatically. For more information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web Services.

We recommend that you use the AWS SDKs to make programmatic API calls to KMS.

Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support these modes.

Signing Requests

Requests must be signed by using an access key ID and a secret access key. We strongly recommend that you do not use your AWS account access key ID and secret key for everyday work with KMS. Instead, use the access key ID and secret access key for an IAM user, or you can use the AWS Security Token Service to generate temporary security credentials that you can use to sign requests.

All KMS operations require Signature Version 4.

Recording API Requests

KMS supports AWS CloudTrail, a service that records AWS API calls and related events for your AWS account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to KMS, who made the request, when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find your log files, see the AWS CloudTrail User Guide

Additional Resources

For more information about credentials and request signing, see the following:

Commonly Used APIs

Of the APIs discussed in this guide, the following will prove the most useful for most applications. You will likely perform actions other than these, such as creating keys and assigning policies, by using the console.

", + "shapes": { + "AWSAccountIdType": { + "base": null, + "refs": { + "KeyMetadata$AWSAccountId": "

Account ID number.

" + } + }, + "AliasList": { + "base": null, + "refs": { + "ListAliasesResponse$Aliases": "

A list of key aliases in the user's account.

" + } + }, + "AliasListEntry": { + "base": "Contains information about an alias.", + "refs": { + "AliasList$member": null + } + }, + "AliasNameType": { + "base": null, + "refs": { + "AliasListEntry$AliasName": "

String that contains the alias.

", + "CreateAliasRequest$AliasName": "

String that contains the display name. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/AWS\" are reserved.

", + "DeleteAliasRequest$AliasName": "

The alias to be deleted. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/AWS\" are reserved.

", + "UpdateAliasRequest$AliasName": "String that contains the name of the alias to be modifed. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/AWS\" are reserved." + } + }, + "AlreadyExistsException": { + "base": "

The request was rejected because it attempted to create a resource that already exists.

", + "refs": { + } + }, + "ArnType": { + "base": null, + "refs": { + "AliasListEntry$AliasArn": "

String that contains the key ARN.

", + "KeyListEntry$KeyArn": "

ARN of the key.

", + "KeyMetadata$Arn": "

Key ARN (Amazon Resource Name).

" + } + }, + "BooleanType": { + "base": null, + "refs": { + "GetKeyRotationStatusResponse$KeyRotationEnabled": "A Boolean value that specifies whether key rotation is enabled.", + "KeyMetadata$Enabled": "

Value that specifies whether the key is enabled.

", + "ListAliasesResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more aliases in the list.

", + "ListGrantsResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more grants in the list.

", + "ListKeyPoliciesResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more policies in the list.

", + "ListKeysResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more keys in the list.

" + } + }, + "CiphertextType": { + "base": null, + "refs": { + "DecryptRequest$CiphertextBlob": "

Ciphertext to be decrypted. The blob includes metadata.

", + "EncryptResponse$CiphertextBlob": "

The encrypted plaintext. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

", + "GenerateDataKeyResponse$CiphertextBlob": "

Ciphertext that contains the encrypted data key. You must store the blob and enough information to reconstruct the encryption context so that the data encrypted by using the key can later be decrypted. You must provide both the ciphertext blob and the encryption context to the Decrypt API to recover the plaintext data key and decrypt the object.

If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

", + "GenerateDataKeyWithoutPlaintextResponse$CiphertextBlob": "

Ciphertext that contains the wrapped data key. You must store the blob and encryption context so that the key can be used in a future decrypt operation.

If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

", + "ReEncryptRequest$CiphertextBlob": "

Ciphertext of the data to re-encrypt.

", + "ReEncryptResponse$CiphertextBlob": "

The re-encrypted data. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

" + } + }, + "CreateAliasRequest": { + "base": null, + "refs": { + } + }, + "CreateGrantRequest": { + "base": null, + "refs": { + } + }, + "CreateGrantResponse": { + "base": null, + "refs": { + } + }, + "CreateKeyRequest": { + "base": null, + "refs": { + } + }, + "CreateKeyResponse": { + "base": null, + "refs": { + } + }, + "DataKeySpec": { + "base": null, + "refs": { + "GenerateDataKeyRequest$KeySpec": "

Value that identifies the encryption algorithm and key size to generate a data key for. Currently this can be AES_128 or AES_256.

", + "GenerateDataKeyWithoutPlaintextRequest$KeySpec": "

Value that identifies the encryption algorithm and key size. Currently this can be AES_128 or AES_256.

" + } + }, + "DateType": { + "base": null, + "refs": { + "KeyMetadata$CreationDate": "

Date the key was created.

" + } + }, + "DecryptRequest": { + "base": null, + "refs": { + } + }, + "DecryptResponse": { + "base": null, + "refs": { + } + }, + "DeleteAliasRequest": { + "base": null, + "refs": { + } + }, + "DependencyTimeoutException": { + "base": "

The system timed out while trying to fulfill the request.

", + "refs": { + } + }, + "DescribeKeyRequest": { + "base": null, + "refs": { + } + }, + "DescribeKeyResponse": { + "base": null, + "refs": { + } + }, + "DescriptionType": { + "base": null, + "refs": { + "CreateKeyRequest$Description": "

Description of the key. We recommend that you choose a description that helps your customer decide whether the key is appropriate for a task.

", + "KeyMetadata$Description": "

The description of the key.

", + "UpdateKeyDescriptionRequest$Description": "

New description for the key.

" + } + }, + "DisableKeyRequest": { + "base": null, + "refs": { + } + }, + "DisableKeyRotationRequest": { + "base": null, + "refs": { + } + }, + "DisabledException": { + "base": "

A request was rejected because the specified key was marked as disabled.

", + "refs": { + } + }, + "EnableKeyRequest": { + "base": null, + "refs": { + } + }, + "EnableKeyRotationRequest": { + "base": null, + "refs": { + } + }, + "EncryptRequest": { + "base": null, + "refs": { + } + }, + "EncryptResponse": { + "base": null, + "refs": { + } + }, + "EncryptionContextKey": { + "base": null, + "refs": { + "EncryptionContextType$key": null + } + }, + "EncryptionContextType": { + "base": null, + "refs": { + "DecryptRequest$EncryptionContext": "

The encryption context. If this was specified in the Encrypt function, it must be specified here or the decryption operation will fail. For more information, see Encryption Context.

", + "EncryptRequest$EncryptionContext": "

Name/value pair that specifies the encryption context to be used for authenticated encryption. If used here, the same value must be supplied to the Decrypt API or decryption will fail. For more information, see Encryption Context.

", + "GenerateDataKeyRequest$EncryptionContext": "

Name/value pair that contains additional data to be authenticated during the encryption and decryption processes that use the key. This value is logged by AWS CloudTrail to provide context around the data encrypted by the key.

", + "GenerateDataKeyWithoutPlaintextRequest$EncryptionContext": "

Name:value pair that contains additional data to be authenticated during the encryption and decryption processes.

", + "GrantConstraints$EncryptionContextSubset": "The constraint equals the full encryption context.", + "GrantConstraints$EncryptionContextEquals": "The constraint contains additional key/value pairs that serve to further limit the grant.", + "ReEncryptRequest$SourceEncryptionContext": "

Encryption context used to encrypt and decrypt the data specified in the CiphertextBlob parameter.

", + "ReEncryptRequest$DestinationEncryptionContext": "

Encryption context to be used when the data is re-encrypted.

" + } + }, + "EncryptionContextValue": { + "base": null, + "refs": { + "EncryptionContextType$value": null + } + }, + "ErrorMessageType": { + "base": null, + "refs": { + "AlreadyExistsException$message": null, + "DependencyTimeoutException$message": null, + "DisabledException$message": null, + "InvalidAliasNameException$message": null, + "InvalidArnException$message": null, + "InvalidCiphertextException$message": null, + "InvalidGrantTokenException$message": null, + "InvalidKeyUsageException$message": null, + "InvalidMarkerException$message": null, + "KMSInternalException$message": null, + "KeyUnavailableException$message": null, + "LimitExceededException$message": null, + "MalformedPolicyDocumentException$message": null, + "NotFoundException$message": null, + "UnsupportedOperationException$message": null + } + }, + "GenerateDataKeyRequest": { + "base": null, + "refs": { + } + }, + "GenerateDataKeyResponse": { + "base": null, + "refs": { + } + }, + "GenerateDataKeyWithoutPlaintextRequest": { + "base": null, + "refs": { + } + }, + "GenerateDataKeyWithoutPlaintextResponse": { + "base": null, + "refs": { + } + }, + "GenerateRandomRequest": { + "base": null, + "refs": { + } + }, + "GenerateRandomResponse": { + "base": null, + "refs": { + } + }, + "GetKeyPolicyRequest": { + "base": null, + "refs": { + } + }, + "GetKeyPolicyResponse": { + "base": null, + "refs": { + } + }, + "GetKeyRotationStatusRequest": { + "base": null, + "refs": { + } + }, + "GetKeyRotationStatusResponse": { + "base": null, + "refs": { + } + }, + "GrantConstraints": { + "base": "Contains constraints on the grant.", + "refs": { + "CreateGrantRequest$Constraints": "

Specifies the conditions under which the actions specified by the Operations parameter are allowed.

", + "GrantListEntry$Constraints": "

Specifies the conditions under which the actions specified by the Operations parameter are allowed.

" + } + }, + "GrantIdType": { + "base": null, + "refs": { + "CreateGrantResponse$GrantId": "

Unique grant identifier. You can use the GrantId value to revoke a grant.

", + "GrantListEntry$GrantId": "

Unique grant identifier.

", + "RetireGrantRequest$GrantId": "

Unique identifier of the grant to be retired. The grant ID is returned by the CreateGrant function.

  • Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123

", + "RevokeGrantRequest$GrantId": "

Identifier of the grant to be revoked.

" + } + }, + "GrantList": { + "base": null, + "refs": { + "ListGrantsResponse$Grants": "

A list of grants.

" + } + }, + "GrantListEntry": { + "base": "

Contains information about each entry in the grant list.

", + "refs": { + "GrantList$member": null + } + }, + "GrantOperation": { + "base": null, + "refs": { + "GrantOperationList$member": null + } + }, + "GrantOperationList": { + "base": null, + "refs": { + "CreateGrantRequest$Operations": "

List of operations permitted by the grant. This can be any combination of one or more of the following values:

  1. Decrypt
  2. Encrypt
  3. GenerateDataKey
  4. GenerateDataKeyWithoutPlaintext
  5. ReEncryptFrom
  6. ReEncryptTo
  7. CreateGrant
  8. RetireGrant

", + "GrantListEntry$Operations": "

List of operations permitted by the grant. This can be any combination of one or more of the following values:

  1. Decrypt
  2. Encrypt
  3. GenerateDataKey
  4. GenerateDataKeyWithoutPlaintext
  5. ReEncryptFrom
  6. ReEncryptTo
  7. CreateGrant

" + } + }, + "GrantTokenList": { + "base": null, + "refs": { + "CreateGrantRequest$GrantTokens": "

For more information, see Grant Tokens.

", + "DecryptRequest$GrantTokens": "

For more information, see Grant Tokens.

", + "EncryptRequest$GrantTokens": "

For more information, see Grant Tokens.

", + "GenerateDataKeyRequest$GrantTokens": "

For more information, see Grant Tokens.

", + "GenerateDataKeyWithoutPlaintextRequest$GrantTokens": "

For more information, see Grant Tokens.

", + "ReEncryptRequest$GrantTokens": "

For more information, see Grant Tokens.

" + } + }, + "GrantTokenType": { + "base": null, + "refs": { + "CreateGrantResponse$GrantToken": "

For more information, see Grant Tokens.

", + "GrantTokenList$member": null, + "RetireGrantRequest$GrantToken": "

Token that identifies the grant to be retired.

" + } + }, + "InvalidAliasNameException": { + "base": "

The request was rejected because the specified alias name is not valid.

", + "refs": { + } + }, + "InvalidArnException": { + "base": "

The request was rejected because a specified ARN was not valid.

", + "refs": { + } + }, + "InvalidCiphertextException": { + "base": "

The request was rejected because the specified ciphertext has been corrupted or is otherwise invalid.

", + "refs": { + } + }, + "InvalidGrantTokenException": { + "base": "

A grant token provided as part of the request is invalid.

", + "refs": { + } + }, + "InvalidKeyUsageException": { + "base": "

The request was rejected because the specified KeySpec parameter is not valid. The currently supported value is ENCRYPT/DECRYPT.

", + "refs": { + } + }, + "InvalidMarkerException": { + "base": "

The request was rejected because the marker that specifies where pagination should next begin is not valid.

", + "refs": { + } + }, + "KMSInternalException": { + "base": "

The request was rejected because an internal exception occurred. This error can be retried.

", + "refs": { + } + }, + "KeyIdType": { + "base": null, + "refs": { + "AliasListEntry$TargetKeyId": "

String that contains the key identifier pointed to by the alias.

", + "CreateAliasRequest$TargetKeyId": "

An identifier of the key for which you are creating the alias. This value cannot be another alias but can be a globally unique identifier or a fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "CreateGrantRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "DecryptResponse$KeyId": "

ARN of the key used to perform the decryption. This value is returned if no errors are encountered during the operation.

", + "DescribeKeyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
  • Alias Name Example - alias/MyAliasName

", + "DisableKeyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "DisableKeyRotationRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "EnableKeyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "EnableKeyRotationRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "EncryptRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
  • Alias Name Example - alias/MyAliasName

", + "EncryptResponse$KeyId": "

The ID of the key used during encryption.

", + "GenerateDataKeyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
  • Alias Name Example - alias/MyAliasName

", + "GenerateDataKeyResponse$KeyId": "

System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key.

", + "GenerateDataKeyWithoutPlaintextRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
  • Alias Name Example - alias/MyAliasName

", + "GenerateDataKeyWithoutPlaintextResponse$KeyId": "

System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key.

", + "GetKeyPolicyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "GetKeyRotationStatusRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "KeyListEntry$KeyId": "

Unique identifier of the key.

", + "KeyMetadata$KeyId": "

Unique identifier for the key.

", + "ListGrantsRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "ListKeyPoliciesRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
  • Alias Name Example - alias/MyAliasName

", + "PutKeyPolicyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "ReEncryptRequest$DestinationKeyId": "

A unique identifier for the customer master key used to re-encrypt the data. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
  • Alias Name Example - alias/MyAliasName

", + "ReEncryptResponse$SourceKeyId": "

Unique identifier of the key used to originally encrypt the data.

", + "ReEncryptResponse$KeyId": "

Unique identifier of the key used to re-encrypt the data.

", + "RetireGrantRequest$KeyId": "

A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or a fully specified ARN of the key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "RevokeGrantRequest$KeyId": "

A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "UpdateAliasRequest$TargetKeyId": "

Unique identifier of the customer master key to be associated with the alias. This value can be a globally unique identifier or the fully specified ARN of a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

", + "UpdateKeyDescriptionRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

  • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

" + } + }, + "KeyList": { + "base": null, + "refs": { + "ListKeysResponse$Keys": "

A list of keys.

" + } + }, + "KeyListEntry": { + "base": "

Contains information about each entry in the key list.

", + "refs": { + "KeyList$member": null + } + }, + "KeyMetadata": { + "base": "Contains metadata associated with a specific key.", + "refs": { + "CreateKeyResponse$KeyMetadata": "

Metadata associated with the key.

", + "DescribeKeyResponse$KeyMetadata": "

Metadata associated with the key.

" + } + }, + "KeyUnavailableException": { + "base": "

The request was rejected because the key was disabled, not found, or otherwise not available.

", + "refs": { + } + }, + "KeyUsageType": { + "base": null, + "refs": { + "CreateKeyRequest$KeyUsage": "

Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported.

", + "KeyMetadata$KeyUsage": "

A value that specifies what operation(s) the key can perform.

" + } + }, + "LimitExceededException": { + "base": "

The request was rejected because a quota was exceeded.

", + "refs": { + } + }, + "LimitType": { + "base": null, + "refs": { + "ListAliasesRequest$Limit": "

Specify this parameter when paginating results to indicate the maximum number of aliases you want in each response. If there are additional aliases beyond the maximum you specify, the Truncated response element will be set to true.

", + "ListGrantsRequest$Limit": "

Specify this parameter only when paginating results to indicate the maximum number of grants you want listed in the response. If there are additional grants beyond the maximum you specify, the Truncated response element will be set to true.

", + "ListKeyPoliciesRequest$Limit": "

Specify this parameter only when paginating results to indicate the maximum number of policies you want listed in the response. If there are additional policies beyond the maximum you specify, the Truncated response element will be set to true.

", + "ListKeysRequest$Limit": "

Specify this parameter only when paginating results to indicate the maximum number of keys you want listed in the response. If there are additional keys beyond the maximum you specify, the Truncated response element will be set to true.

" + } + }, + "ListAliasesRequest": { + "base": null, + "refs": { + } + }, + "ListAliasesResponse": { + "base": null, + "refs": { + } + }, + "ListGrantsRequest": { + "base": null, + "refs": { + } + }, + "ListGrantsResponse": { + "base": null, + "refs": { + } + }, + "ListKeyPoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListKeyPoliciesResponse": { + "base": null, + "refs": { + } + }, + "ListKeysRequest": { + "base": null, + "refs": { + } + }, + "ListKeysResponse": { + "base": null, + "refs": { + } + }, + "MalformedPolicyDocumentException": { + "base": "

The request was rejected because the specified policy is not syntactically or semantically correct.

", + "refs": { + } + }, + "MarkerType": { + "base": null, + "refs": { + "ListAliasesRequest$Marker": "

Use this parameter when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the NextMarker element in the response you just received.

", + "ListAliasesResponse$NextMarker": "

If Truncated is true, this value is present and contains the value to use for the Marker request parameter in a subsequent pagination request.

", + "ListGrantsRequest$Marker": "

Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the NextMarker in the response you just received.

", + "ListGrantsResponse$NextMarker": "

If Truncated is true, this value is present and contains the value to use for the Marker request parameter in a subsequent pagination request.

", + "ListKeyPoliciesRequest$Marker": "

Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the NextMarker in the response you just received.

", + "ListKeyPoliciesResponse$NextMarker": "

If Truncated is true, this value is present and contains the value to use for the Marker request parameter in a subsequent pagination request.

", + "ListKeysRequest$Marker": "

Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the NextMarker in the response you just received.

", + "ListKeysResponse$NextMarker": "

If Truncated is true, this value is present and contains the value to use for the Marker request parameter in a subsequent pagination request.

" + } + }, + "NotFoundException": { + "base": "

The request was rejected because the specified entity or resource could not be found.

", + "refs": { + } + }, + "NumberOfBytesType": { + "base": null, + "refs": { + "GenerateDataKeyRequest$NumberOfBytes": "

Integer that contains the number of bytes to generate. Common values are 128, 256, 512, and 1024. 1024 is the current limit. We recommend that you use the KeySpec parameter instead.

", + "GenerateDataKeyWithoutPlaintextRequest$NumberOfBytes": "

Integer that contains the number of bytes to generate. Common values are 128, 256, 512, 1024 and so on. We recommend that you use the KeySpec parameter instead.

", + "GenerateRandomRequest$NumberOfBytes": "

Integer that contains the number of bytes to generate. Common values are 128, 256, 512, 1024 and so on. The current limit is 1024 bytes.

" + } + }, + "PlaintextType": { + "base": null, + "refs": { + "DecryptResponse$Plaintext": "

Decrypted plaintext data. This value may not be returned if the customer master key is not available or if you didn't have permission to use it.

", + "EncryptRequest$Plaintext": "

Data to be encrypted.

", + "GenerateDataKeyResponse$Plaintext": "

Plaintext that contains the data key. Use this for encryption and decryption and then remove it from memory as soon as possible.

", + "GenerateRandomResponse$Plaintext": "

Plaintext that contains the unpredictable byte string.

" + } + }, + "PolicyNameList": { + "base": null, + "refs": { + "ListKeyPoliciesResponse$PolicyNames": "

A list of policy names. Currently, there is only one policy and it is named \"Default\".

" + } + }, + "PolicyNameType": { + "base": null, + "refs": { + "GetKeyPolicyRequest$PolicyName": "

String that contains the name of the policy. Currently, this must be \"default\". Policy names can be discovered by calling ListKeyPolicies.

", + "PolicyNameList$member": null, + "PutKeyPolicyRequest$PolicyName": "

Name of the policy to be attached. Currently, the only supported name is \"default\".

" + } + }, + "PolicyType": { + "base": null, + "refs": { + "CreateKeyRequest$Policy": "

Policy to be attached to the key. This is required and delegates back to the account. The key is the root of trust.

", + "GetKeyPolicyResponse$Policy": "

A policy document in JSON format.

", + "PutKeyPolicyRequest$Policy": "

The policy, in JSON format, to be attached to the key.

" + } + }, + "PrincipalIdType": { + "base": null, + "refs": { + "CreateGrantRequest$GranteePrincipal": "

Principal given permission by the grant to use the key identified by the keyId parameter.

", + "CreateGrantRequest$RetiringPrincipal": "

Principal given permission to retire the grant. For more information, see RetireGrant.

", + "GrantListEntry$GranteePrincipal": "

The principal that receives the grant permission.

", + "GrantListEntry$RetiringPrincipal": "

The principal that can retire the account.

", + "GrantListEntry$IssuingAccount": "

The account under which the grant was issued.

" + } + }, + "PutKeyPolicyRequest": { + "base": null, + "refs": { + } + }, + "ReEncryptRequest": { + "base": null, + "refs": { + } + }, + "ReEncryptResponse": { + "base": null, + "refs": { + } + }, + "RetireGrantRequest": { + "base": null, + "refs": { + } + }, + "RevokeGrantRequest": { + "base": null, + "refs": { + } + }, + "UnsupportedOperationException": { + "base": "

The request was rejected because a specified parameter is not supported.

", + "refs": { + } + }, + "UpdateAliasRequest": { + "base": null, + "refs": { + } + }, + "UpdateKeyDescriptionRequest": { + "base": null, + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/kms/2014-11-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/kms/2014-11-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/lambda/2014-11-11/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/lambda/2014-11-11/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/lambda/2014-11-11/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/lambda/2014-11-11/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/lambda/2014-11-11/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/lambda/2014-11-11/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/lambda/2015-03-31/api-2.json similarity index 54% rename from vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/lambda/2015-03-31/api-2.json index 93c5e2e72..fc4c88297 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/lambda/2015-03-31/api-2.json @@ -3,44 +3,51 @@ "metadata":{ "apiVersion":"2015-03-31", "endpointPrefix":"lambda", - "protocol":"rest-json", "serviceFullName":"AWS Lambda", - "signatureVersion":"v4" + "signatureVersion":"v4", + "protocol":"rest-json" }, "operations":{ "AddPermission":{ "name":"AddPermission", "http":{ "method":"POST", - "requestUri":"/2015-03-31/functions/{FunctionName}/policy", + "requestUri":"/2015-03-31/functions/{FunctionName}/versions/HEAD/policy", "responseCode":201 }, "input":{"shape":"AddPermissionRequest"}, "output":{"shape":"AddPermissionResponse"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceConflictException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"PolicyLengthExceededException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "CreateAlias":{ - "name":"CreateAlias", - "http":{ - "method":"POST", - "requestUri":"/2015-03-31/functions/{FunctionName}/aliases", - "responseCode":201 - }, - "input":{"shape":"CreateAliasRequest"}, - "output":{"shape":"AliasConfiguration"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceConflictException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"PolicyLengthExceededException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "CreateEventSourceMapping":{ @@ -53,11 +60,26 @@ "input":{"shape":"CreateEventSourceMappingRequest"}, "output":{"shape":"EventSourceMappingConfiguration"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "CreateFunction":{ @@ -70,26 +92,36 @@ "input":{"shape":"CreateFunctionRequest"}, "output":{"shape":"FunctionConfiguration"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceConflictException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"CodeStorageExceededException"} - ] - }, - "DeleteAlias":{ - "name":"DeleteAlias", - "http":{ - "method":"DELETE", - "requestUri":"/2015-03-31/functions/{FunctionName}/aliases/{Name}", - "responseCode":204 - }, - "input":{"shape":"DeleteAliasRequest"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"ResourceConflictException", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"CodeStorageExceededException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "DeleteEventSourceMapping":{ @@ -102,10 +134,26 @@ "input":{"shape":"DeleteEventSourceMappingRequest"}, "output":{"shape":"EventSourceMappingConfiguration"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "DeleteFunction":{ @@ -117,27 +165,21 @@ }, "input":{"shape":"DeleteFunctionRequest"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ResourceConflictException"} - ] - }, - "GetAlias":{ - "name":"GetAlias", - "http":{ - "method":"GET", - "requestUri":"/2015-03-31/functions/{FunctionName}/aliases/{Name}", - "responseCode":200 - }, - "input":{"shape":"GetAliasRequest"}, - "output":{"shape":"AliasConfiguration"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "GetEventSourceMapping":{ @@ -150,58 +192,107 @@ "input":{"shape":"GetEventSourceMappingRequest"}, "output":{"shape":"EventSourceMappingConfiguration"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "GetFunction":{ "name":"GetFunction", "http":{ "method":"GET", - "requestUri":"/2015-03-31/functions/{FunctionName}", + "requestUri":"/2015-03-31/functions/{FunctionName}/versions/HEAD", "responseCode":200 }, "input":{"shape":"GetFunctionRequest"}, "output":{"shape":"GetFunctionResponse"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InvalidParameterValueException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "GetFunctionConfiguration":{ "name":"GetFunctionConfiguration", "http":{ "method":"GET", - "requestUri":"/2015-03-31/functions/{FunctionName}/configuration", + "requestUri":"/2015-03-31/functions/{FunctionName}/versions/HEAD/configuration", "responseCode":200 }, "input":{"shape":"GetFunctionConfigurationRequest"}, "output":{"shape":"FunctionConfiguration"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InvalidParameterValueException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "GetPolicy":{ "name":"GetPolicy", "http":{ "method":"GET", - "requestUri":"/2015-03-31/functions/{FunctionName}/policy", + "requestUri":"/2015-03-31/functions/{FunctionName}/versions/HEAD/policy", "responseCode":200 }, "input":{"shape":"GetPolicyRequest"}, "output":{"shape":"GetPolicyResponse"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InvalidParameterValueException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "Invoke":{ @@ -213,20 +304,36 @@ "input":{"shape":"InvocationRequest"}, "output":{"shape":"InvocationResponse"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidRequestContentException"}, - {"shape":"RequestTooLargeException"}, - {"shape":"UnsupportedMediaTypeException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"EC2UnexpectedException"}, - {"shape":"SubnetIPAddressLimitReachedException"}, - {"shape":"ENILimitReachedException"}, - {"shape":"EC2ThrottledException"}, - {"shape":"EC2AccessDeniedException"}, - {"shape":"InvalidSubnetIDException"}, - {"shape":"InvalidSecurityGroupIDException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidRequestContentException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"RequestTooLargeException", + "error":{"httpStatusCode":413}, + "exception":true + }, + { + "shape":"UnsupportedMediaTypeException", + "error":{"httpStatusCode":415}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "InvokeAsync":{ @@ -236,31 +343,33 @@ "requestUri":"/2014-11-13/functions/{FunctionName}/invoke-async/", "responseCode":202 }, - "input":{"shape":"InvokeAsyncRequest"}, - "output":{"shape":"InvokeAsyncResponse"}, + "input":{ + "shape":"InvokeAsyncRequest", + "deprecated":true + }, + "output":{ + "shape":"InvokeAsyncResponse", + "deprecated":true + }, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidRequestContentException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidRequestContentException", + "error":{"httpStatusCode":400}, + "exception":true + } ], "deprecated":true }, - "ListAliases":{ - "name":"ListAliases", - "http":{ - "method":"GET", - "requestUri":"/2015-03-31/functions/{FunctionName}/aliases", - "responseCode":200 - }, - "input":{"shape":"ListAliasesRequest"}, - "output":{"shape":"ListAliasesResponse"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} - ] - }, "ListEventSourceMappings":{ "name":"ListEventSourceMappings", "http":{ @@ -271,10 +380,26 @@ "input":{"shape":"ListEventSourceMappingsRequest"}, "output":{"shape":"ListEventSourceMappingsResponse"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "ListFunctions":{ @@ -287,72 +412,42 @@ "input":{"shape":"ListFunctionsRequest"}, "output":{"shape":"ListFunctionsResponse"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "ListVersionsByFunction":{ - "name":"ListVersionsByFunction", - "http":{ - "method":"GET", - "requestUri":"/2015-03-31/functions/{FunctionName}/versions", - "responseCode":200 - }, - "input":{"shape":"ListVersionsByFunctionRequest"}, - "output":{"shape":"ListVersionsByFunctionResponse"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "PublishVersion":{ - "name":"PublishVersion", - "http":{ - "method":"POST", - "requestUri":"/2015-03-31/functions/{FunctionName}/versions", - "responseCode":201 - }, - "input":{"shape":"PublishVersionRequest"}, - "output":{"shape":"FunctionConfiguration"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"CodeStorageExceededException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "RemovePermission":{ "name":"RemovePermission", "http":{ "method":"DELETE", - "requestUri":"/2015-03-31/functions/{FunctionName}/policy/{StatementId}", + "requestUri":"/2015-03-31/functions/{FunctionName}/versions/HEAD/policy/{StatementId}", "responseCode":204 }, "input":{"shape":"RemovePermissionRequest"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateAlias":{ - "name":"UpdateAlias", - "http":{ - "method":"PUT", - "requestUri":"/2015-03-31/functions/{FunctionName}/aliases/{Name}", - "responseCode":200 - }, - "input":{"shape":"UpdateAliasRequest"}, - "output":{"shape":"AliasConfiguration"}, - "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "UpdateEventSourceMapping":{ @@ -365,44 +460,95 @@ "input":{"shape":"UpdateEventSourceMappingRequest"}, "output":{"shape":"EventSourceMappingConfiguration"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"ResourceConflictException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] }, "UpdateFunctionCode":{ "name":"UpdateFunctionCode", "http":{ "method":"PUT", - "requestUri":"/2015-03-31/functions/{FunctionName}/code", + "requestUri":"/2015-03-31/functions/{FunctionName}/versions/HEAD/code", "responseCode":200 }, "input":{"shape":"UpdateFunctionCodeRequest"}, "output":{"shape":"FunctionConfiguration"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"CodeStorageExceededException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + }, + { + "shape":"CodeStorageExceededException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "UpdateFunctionConfiguration":{ "name":"UpdateFunctionConfiguration", "http":{ "method":"PUT", - "requestUri":"/2015-03-31/functions/{FunctionName}/configuration", + "requestUri":"/2015-03-31/functions/{FunctionName}/versions/HEAD/configuration", "responseCode":200 }, "input":{"shape":"UpdateFunctionConfigurationRequest"}, "output":{"shape":"FunctionConfiguration"}, "errors":[ - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"TooManyRequestsException"} + { + "shape":"ServiceException", + "error":{"httpStatusCode":500}, + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidParameterValueException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TooManyRequestsException", + "error":{"httpStatusCode":429}, + "exception":true + } ] } }, @@ -429,13 +575,7 @@ "Action":{"shape":"Action"}, "Principal":{"shape":"Principal"}, "SourceArn":{"shape":"Arn"}, - "SourceAccount":{"shape":"SourceOwner"}, - "EventSourceToken":{"shape":"EventSourceToken"}, - "Qualifier":{ - "shape":"Qualifier", - "location":"querystring", - "locationName":"Qualifier" - } + "SourceAccount":{"shape":"SourceOwner"} } }, "AddPermissionResponse":{ @@ -444,40 +584,20 @@ "Statement":{"shape":"String"} } }, - "Alias":{ - "type":"string", - "max":128, - "min":1, - "pattern":"(?!^[0-9]+$)([a-zA-Z0-9-_]+)" - }, - "AliasConfiguration":{ - "type":"structure", - "members":{ - "AliasArn":{"shape":"FunctionArn"}, - "Name":{"shape":"Alias"}, - "FunctionVersion":{"shape":"Version"}, - "Description":{"shape":"Description"} - } - }, - "AliasList":{ - "type":"list", - "member":{"shape":"AliasConfiguration"} - }, "Arn":{ "type":"string", "pattern":"arn:aws:([a-zA-Z0-9\\-])+:([a-z]{2}-[a-z]+-\\d{1})?:(\\d{12})?:(.*)" }, "BatchSize":{ "type":"integer", - "max":10000, - "min":1 + "min":1, + "max":10000 }, "Blob":{"type":"blob"}, "BlobStream":{ "type":"blob", "streaming":true }, - "Boolean":{"type":"boolean"}, "CodeStorageExceededException":{ "type":"structure", "members":{ @@ -487,24 +607,6 @@ "error":{"httpStatusCode":400}, "exception":true }, - "CreateAliasRequest":{ - "type":"structure", - "required":[ - "FunctionName", - "Name", - "FunctionVersion" - ], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "Name":{"shape":"Alias"}, - "FunctionVersion":{"shape":"Version"}, - "Description":{"shape":"Description"} - } - }, "CreateEventSourceMappingRequest":{ "type":"structure", "required":[ @@ -534,34 +636,13 @@ "Runtime":{"shape":"Runtime"}, "Role":{"shape":"RoleArn"}, "Handler":{"shape":"Handler"}, - "Code":{"shape":"FunctionCode"}, "Description":{"shape":"Description"}, "Timeout":{"shape":"Timeout"}, "MemorySize":{"shape":"MemorySize"}, - "Publish":{"shape":"Boolean"}, - "VpcConfig":{"shape":"VpcConfig"} + "Code":{"shape":"FunctionCode"} } }, "Date":{"type":"timestamp"}, - "DeleteAliasRequest":{ - "type":"structure", - "required":[ - "FunctionName", - "Name" - ], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "Name":{ - "shape":"Alias", - "location":"uri", - "locationName":"Name" - } - } - }, "DeleteEventSourceMappingRequest":{ "type":"structure", "required":["UUID"], @@ -581,55 +662,13 @@ "shape":"FunctionName", "location":"uri", "locationName":"FunctionName" - }, - "Qualifier":{ - "shape":"Qualifier", - "location":"querystring", - "locationName":"Qualifier" } } }, "Description":{ "type":"string", - "max":256, - "min":0 - }, - "EC2AccessDeniedException":{ - "type":"structure", - "members":{ - "Type":{"shape":"String"}, - "Message":{"shape":"String"} - }, - "error":{"httpStatusCode":502}, - "exception":true - }, - "EC2ThrottledException":{ - "type":"structure", - "members":{ - "Type":{"shape":"String"}, - "Message":{"shape":"String"} - }, - "error":{"httpStatusCode":502}, - "exception":true - }, - "EC2UnexpectedException":{ - "type":"structure", - "members":{ - "Type":{"shape":"String"}, - "Message":{"shape":"String"}, - "EC2ErrorCode":{"shape":"String"} - }, - "error":{"httpStatusCode":502}, - "exception":true - }, - "ENILimitReachedException":{ - "type":"structure", - "members":{ - "Type":{"shape":"String"}, - "Message":{"shape":"String"} - }, - "error":{"httpStatusCode":502}, - "exception":true + "min":0, + "max":256 }, "Enabled":{"type":"boolean"}, "EventSourceMappingConfiguration":{ @@ -656,15 +695,9 @@ "LATEST" ] }, - "EventSourceToken":{ - "type":"string", - "max":256, - "min":0, - "pattern":"[a-zA-Z0-9._\\-]+" - }, "FunctionArn":{ "type":"string", - "pattern":"arn:aws:lambda:[a-z]{2}-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" + "pattern":"arn:aws:lambda:[a-z]{2}-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?" }, "FunctionCode":{ "type":"structure", @@ -694,10 +727,7 @@ "Description":{"shape":"Description"}, "Timeout":{"shape":"Timeout"}, "MemorySize":{"shape":"MemorySize"}, - "LastModified":{"shape":"Timestamp"}, - "CodeSha256":{"shape":"String"}, - "Version":{"shape":"Version"}, - "VpcConfig":{"shape":"VpcConfigResponse"} + "LastModified":{"shape":"Timestamp"} } }, "FunctionList":{ @@ -706,28 +736,9 @@ }, "FunctionName":{ "type":"string", - "max":140, "min":1, - "pattern":"(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?" - }, - "GetAliasRequest":{ - "type":"structure", - "required":[ - "FunctionName", - "Name" - ], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "Name":{ - "shape":"Alias", - "location":"uri", - "locationName":"Name" - } - } + "max":111, + "pattern":"(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)" }, "GetEventSourceMappingRequest":{ "type":"structure", @@ -748,11 +759,6 @@ "shape":"FunctionName", "location":"uri", "locationName":"FunctionName" - }, - "Qualifier":{ - "shape":"Qualifier", - "location":"querystring", - "locationName":"Qualifier" } } }, @@ -764,11 +770,6 @@ "shape":"FunctionName", "location":"uri", "locationName":"FunctionName" - }, - "Qualifier":{ - "shape":"Qualifier", - "location":"querystring", - "locationName":"Qualifier" } } }, @@ -787,11 +788,6 @@ "shape":"FunctionName", "location":"uri", "locationName":"FunctionName" - }, - "Qualifier":{ - "shape":"Qualifier", - "location":"querystring", - "locationName":"Qualifier" } } }, @@ -826,24 +822,6 @@ "error":{"httpStatusCode":400}, "exception":true }, - "InvalidSecurityGroupIDException":{ - "type":"structure", - "members":{ - "Type":{"shape":"String"}, - "Message":{"shape":"String"} - }, - "error":{"httpStatusCode":502}, - "exception":true - }, - "InvalidSubnetIDException":{ - "type":"structure", - "members":{ - "Type":{"shape":"String"}, - "Message":{"shape":"String"} - }, - "error":{"httpStatusCode":502}, - "exception":true - }, "InvocationRequest":{ "type":"structure", "required":["FunctionName"], @@ -868,12 +846,7 @@ "location":"header", "locationName":"X-Amz-Client-Context" }, - "Payload":{"shape":"Blob"}, - "Qualifier":{ - "shape":"Qualifier", - "location":"querystring", - "locationName":"Qualifier" - } + "Payload":{"shape":"Blob"} }, "payload":"Payload" }, @@ -933,39 +906,6 @@ }, "deprecated":true }, - "ListAliasesRequest":{ - "type":"structure", - "required":["FunctionName"], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "FunctionVersion":{ - "shape":"Version", - "location":"querystring", - "locationName":"FunctionVersion" - }, - "Marker":{ - "shape":"String", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"MaxListItems", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListAliasesResponse":{ - "type":"structure", - "members":{ - "NextMarker":{"shape":"String"}, - "Aliases":{"shape":"AliasList"} - } - }, "ListEventSourceMappingsRequest":{ "type":"structure", "members":{ @@ -1020,34 +960,6 @@ "Functions":{"shape":"FunctionList"} } }, - "ListVersionsByFunctionRequest":{ - "type":"structure", - "required":["FunctionName"], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "Marker":{ - "shape":"String", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"MaxListItems", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListVersionsByFunctionResponse":{ - "type":"structure", - "members":{ - "NextMarker":{"shape":"String"}, - "Versions":{"shape":"FunctionList"} - } - }, "LogType":{ "type":"string", "enum":[ @@ -1058,13 +970,13 @@ "Long":{"type":"long"}, "MaxListItems":{ "type":"integer", - "max":10000, - "min":1 + "min":1, + "max":10000 }, "MemorySize":{ "type":"integer", - "max":1536, - "min":128 + "min":128, + "max":1536 }, "PolicyLengthExceededException":{ "type":"structure", @@ -1079,25 +991,6 @@ "type":"string", "pattern":".*" }, - "PublishVersionRequest":{ - "type":"structure", - "required":["FunctionName"], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "CodeSha256":{"shape":"String"}, - "Description":{"shape":"Description"} - } - }, - "Qualifier":{ - "type":"string", - "max":128, - "min":1, - "pattern":"(|[a-zA-Z0-9$_-]+)" - }, "RemovePermissionRequest":{ "type":"structure", "required":[ @@ -1114,11 +1007,6 @@ "shape":"StatementId", "location":"uri", "locationName":"StatementId" - }, - "Qualifier":{ - "shape":"Qualifier", - "location":"querystring", - "locationName":"Qualifier" } } }, @@ -1157,32 +1045,24 @@ "type":"string", "enum":[ "nodejs", - "nodejs4.3", - "java8", - "python2.7" + "java8" ] }, "S3Bucket":{ "type":"string", - "max":63, "min":3, + "max":63, "pattern":"^[0-9A-Za-z\\.\\-_]*(?Adds a permission to the access policy associated with the specified AWS Lambda function. In a \"push event\" model, the access policy attached to the Lambda function grants Amazon S3 or a user application permission for the Lambda lambda:Invoke action. For information about the push model, see AWS Lambda: How it Works. Each Lambda function has one access policy associated with it. You can use the AddPermission API to add a permission to the policy. You have one access policy but it can have multiple permission statements.

This operation requires permission for the lambda:AddPermission action.

", + "CreateEventSourceMapping": "

Identifies a stream as an event source for a Lambda function. It can be either an Amazon Kinesis stream or an Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream.

This is the pull model, where AWS Lambda invokes the function. For more information, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide.

This association between an Amazon Kinesis stream and a Lambda function is called the event source mapping. You provide the configuration information (for example, which stream to read from and which Lambda function to invoke) for the event source mapping in the request body.

Each event source, such as an Amazon Kinesis or a DynamoDB stream, can be associated with multiple AWS Lambda function. A given Lambda function can be associated with multiple AWS event sources.

This operation requires permission for the lambda:CreateEventSourceMapping action.

", + "CreateFunction": "

Creates a new Lambda function. The function metadata is created from the request parameters, and the code for the function is provided by a .zip file in the request body. If the function name already exists, the operation will fail. Note that the function name is case-sensitive.

This operation requires permission for the lambda:CreateFunction action.

", + "DeleteEventSourceMapping": "

Removes an event source mapping. This means AWS Lambda will no longer invoke the function for events in the associated source.

This operation requires permission for the lambda:DeleteEventSourceMapping action.

", + "DeleteFunction": "

Deletes the specified Lambda function code and configuration.

When you delete a function the associated access policy is also deleted. You will need to delete the event source mappings explicitly.

This operation requires permission for the lambda:DeleteFunction action.

", + "GetEventSourceMapping": "

Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).

This operation requires permission for the lambda:GetEventSourceMapping action.

", + "GetFunction": "

Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.

This operation requires permission for the lambda:GetFunction action.

", + "GetFunctionConfiguration": "

Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.

This operation requires permission for the lambda:GetFunctionConfiguration operation.

", + "GetPolicy": "

Returns the access policy, containing a list of permissions granted via the AddPermission API, associated with the specified bucket.

You need permission for the lambda:GetPolicy action.

", + "Invoke": "

Invokes a specified Lambda function.

This operation requires permission for the lambda:InvokeFunction action.

", + "InvokeAsync": "This API is deprecated. We recommend you use Invoke API (see Invoke).

Submits an invocation request to AWS Lambda. Upon receiving the request, Lambda executes the specified function asynchronously. To see the logs generated by the Lambda function execution, see the CloudWatch logs console.

This operation requires permission for the lambda:InvokeFunction action.

", + "ListEventSourceMappings": "

Returns a list of event source mappings you created using the CreateEventSourceMapping (see CreateEventSourceMapping), where you identify a stream as an event source. This list does not include Amazon S3 event sources.

For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.

This operation requires permission for the lambda:ListEventSourceMappings action.

", + "ListFunctions": "

Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function.

This operation requires permission for the lambda:ListFunctions action.

", + "RemovePermission": "

You can remove individual permissions from an access policy associated with a Lambda function by providing a Statement ID.

Note that removal of a permission will cause an active event source to lose permission to the function.

You need permission for the lambda:RemovePermission action.

", + "UpdateEventSourceMapping": "

You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping.

This operation requires permission for the lambda:UpdateEventSourceMapping action.

", + "UpdateFunctionCode": "

Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration.

This operation requires permission for the lambda:UpdateFunctionCode action.

", + "UpdateFunctionConfiguration": "

Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function's code.

This operation requires permission for the lambda:UpdateFunctionConfiguration action.

" + }, + "service": "AWS Lambda

Overview

This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, go to What is AWS Lambda, and for information about how the service works, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide.

", + "shapes": { + "Action": { + "base": null, + "refs": { + "AddPermissionRequest$Action": "

The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with \"lambda:\" followed by the API name (see Operations). For example, \"lambda:CreateFunction\". You can use wildcard (\"lambda:*\") to grant permission for all AWS Lambda actions.

" + } + }, + "AddPermissionRequest": { + "base": null, + "refs": { + } + }, + "AddPermissionResponse": { + "base": null, + "refs": { + } + }, + "Arn": { + "base": null, + "refs": { + "AddPermissionRequest$SourceArn": "

This is optional; however, when granting Amazon S3 permission to invoke your function, you should specify this field with the bucket Amazon Resource Name (ARN) as its value. This ensures that only events generated from the specified bucket can invoke the function.

If you add a permission for the Amazon S3 principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can send events to invoke your Lambda function from Amazon S3.", + "CreateEventSourceMappingRequest$EventSourceArn": "

The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on the BatchSize. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.

", + "EventSourceMappingConfiguration$EventSourceArn": "

The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.

", + "ListEventSourceMappingsRequest$EventSourceArn": "

The Amazon Resource Name (ARN) of the Amazon Kinesis stream.

" + } + }, + "BatchSize": { + "base": null, + "refs": { + "CreateEventSourceMappingRequest$BatchSize": "

The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. The default is 100 records.

", + "EventSourceMappingConfiguration$BatchSize": "

The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.

", + "UpdateEventSourceMappingRequest$BatchSize": "

The maximum number of stream records that can be sent to your Lambda function for a single invocation.

" + } + }, + "Blob": { + "base": null, + "refs": { + "FunctionCode$ZipFile": "

A base64-encoded .zip file containing your deployment package. For more information about creating a .zip file, go to Execution Permissions in the AWS Lambda Developer Guide.

", + "InvocationRequest$Payload": "

JSON that you want to provide to your Lambda function as input.

", + "InvocationResponse$Payload": "

It is the JSON representation of the object returned by the Lambda function. In This is present only if the invocation type is \"RequestResponse\".

In the event of a function error this field contains a message describing the error. For the Handled errors the Lambda function will report this message. For Unhandled errors AWS Lambda reports the message.

", + "UpdateFunctionCodeRequest$ZipFile": "

Based64-encoded .zip file containing your packaged source code.

" + } + }, + "BlobStream": { + "base": null, + "refs": { + "InvokeAsyncRequest$InvokeArgs": "

JSON that you want to provide to your Lambda function as input.

" + } + }, + "CodeStorageExceededException": { + "base": null, + "refs": { + } + }, + "CreateEventSourceMappingRequest": { + "base": null, + "refs": { + } + }, + "CreateFunctionRequest": { + "base": null, + "refs": { + } + }, + "Date": { + "base": null, + "refs": { + "EventSourceMappingConfiguration$LastModified": "

The UTC time string indicating the last time the event mapping was updated.

" + } + }, + "DeleteEventSourceMappingRequest": { + "base": null, + "refs": { + } + }, + "DeleteFunctionRequest": { + "base": null, + "refs": { + } + }, + "Description": { + "base": null, + "refs": { + "CreateFunctionRequest$Description": "

A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.

", + "FunctionConfiguration$Description": "

The user-provided description.

", + "UpdateFunctionConfigurationRequest$Description": "

A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.

" + } + }, + "Enabled": { + "base": null, + "refs": { + "CreateEventSourceMappingRequest$Enabled": "

Indicates whether AWS Lambda should begin polling the event source, the default is not enabled.

", + "UpdateEventSourceMappingRequest$Enabled": "

Specifies whether AWS Lambda should actively poll the stream or not. If disabled, AWS Lambda will not poll the stream.

" + } + }, + "EventSourceMappingConfiguration": { + "base": "

Describes mapping between an Amazon Kinesis stream and a Lambda function.

", + "refs": { + "EventSourceMappingsList$member": null + } + }, + "EventSourceMappingsList": { + "base": null, + "refs": { + "ListEventSourceMappingsResponse$EventSourceMappings": "

An array of EventSourceMappingConfiguration objects.

" + } + }, + "EventSourcePosition": { + "base": null, + "refs": { + "CreateEventSourceMappingRequest$StartingPosition": "

The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.

" + } + }, + "FunctionArn": { + "base": null, + "refs": { + "EventSourceMappingConfiguration$FunctionArn": "

The Lambda function to invoke when AWS Lambda detects an event on the stream.

", + "FunctionConfiguration$FunctionArn": "

The Amazon Resource Name (ARN) assigned to the function.

" + } + }, + "FunctionCode": { + "base": "

The code for the Lambda function.

", + "refs": { + "CreateFunctionRequest$Code": "

The code for the Lambda function.

" + } + }, + "FunctionCodeLocation": { + "base": "

The object for the Lambda function location.

", + "refs": { + "GetFunctionResponse$Code": null + } + }, + "FunctionConfiguration": { + "base": "

A complex type that describes function metadata.

", + "refs": { + "FunctionList$member": null, + "GetFunctionResponse$Configuration": null + } + }, + "FunctionList": { + "base": null, + "refs": { + "ListFunctionsResponse$Functions": "

A list of Lambda functions.

" + } + }, + "FunctionName": { + "base": null, + "refs": { + "AddPermissionRequest$FunctionName": "

Name of the Lambda function whose access policy you are updating by adding a new permission.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "CreateEventSourceMappingRequest$FunctionName": "

The Lambda function to invoke when AWS Lambda detects an event on the stream.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "CreateFunctionRequest$FunctionName": "

The name you want to assign to the function you are uploading. You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as Invoke.

", + "DeleteFunctionRequest$FunctionName": "

The Lambda function to delete.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "FunctionConfiguration$FunctionName": "

The name of the function.

", + "GetFunctionConfigurationRequest$FunctionName": "

The name of the Lambda function for which you want to retrieve the configuration information.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "GetFunctionRequest$FunctionName": "

The Lambda function name.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "GetPolicyRequest$FunctionName": "

Function name whose access policy you want to retrieve.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "InvocationRequest$FunctionName": "

The Lambda function name.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "InvokeAsyncRequest$FunctionName": "

The Lambda function name.

", + "ListEventSourceMappingsRequest$FunctionName": "

The name of the Lambda function.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "RemovePermissionRequest$FunctionName": "

Lambda function whose access policy you want to remove a permission from.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "UpdateEventSourceMappingRequest$FunctionName": "

The Lambda function to which you want the stream records sent.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "UpdateFunctionCodeRequest$FunctionName": "

The existing Lambda function name whose code you want to replace.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

", + "UpdateFunctionConfigurationRequest$FunctionName": "

The name of the Lambda function.

You can specify an unqualified function name (for example, \"Thumbnail\") or you can specify Amazon Resource Name (ARN) of the function (for example, \"arn:aws:lambda:us-west-2:account-id:function:ThumbNail\"). AWS Lambda also allows you to specify only the account ID qualifier (for example, \"account-id:Thumbnail\"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

" + } + }, + "GetEventSourceMappingRequest": { + "base": null, + "refs": { + } + }, + "GetFunctionConfigurationRequest": { + "base": null, + "refs": { + } + }, + "GetFunctionRequest": { + "base": null, + "refs": { + } + }, + "GetFunctionResponse": { + "base": "

This response contains the object for the Lambda function location (see API_FunctionCodeLocation

", + "refs": { + } + }, + "GetPolicyRequest": { + "base": null, + "refs": { + } + }, + "GetPolicyResponse": { + "base": null, + "refs": { + } + }, + "Handler": { + "base": null, + "refs": { + "CreateFunctionRequest$Handler": "

The function within your code that Lambda calls to begin execution. For Node.js, it is the module-name.export value in your function. For Java, it can be package.class-name::handler or package.class-name. For more information, see Lambda Function Handler (Java).

", + "FunctionConfiguration$Handler": "

The function Lambda calls to begin executing your function.

", + "UpdateFunctionConfigurationRequest$Handler": "

The function that Lambda calls to begin executing your function. For Node.js, it is the module-name.export value in your function.

" + } + }, + "HttpStatus": { + "base": null, + "refs": { + "InvokeAsyncResponse$Status": "

It will be 202 upon success.

" + } + }, + "Integer": { + "base": null, + "refs": { + "InvocationResponse$StatusCode": "

The HTTP status code will be in the 200 range for successful request. For the \"RequestResonse\" invocation type this status code will be 200. For the \"Event\" invocation type this status code will be 202. For the \"DryRun\" invocation type the status code will be 204.

" + } + }, + "InvalidParameterValueException": { + "base": "

One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration API, that AWS Lambda is unable to assume you will get this exception.

", + "refs": { + } + }, + "InvalidRequestContentException": { + "base": "

The request body could not be parsed as JSON.

", + "refs": { + } + }, + "InvocationRequest": { + "base": null, + "refs": { + } + }, + "InvocationResponse": { + "base": "

Upon success, returns an empty response. Otherwise, throws an exception.

", + "refs": { + } + }, + "InvocationType": { + "base": null, + "refs": { + "InvocationRequest$InvocationType": "

By default, the Invoke API assumes \"RequestResponse\" invocation type. You can optionally request asynchronous execution by specifying \"Event\" as the InvocationType. You can also use this parameter to request AWS Lambda to not execute the function but do some verification, such as if the caller is authorized to invoke the function and if the inputs are valid. You request this by specifying \"DryRun\" as the InvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.

" + } + }, + "InvokeAsyncRequest": { + "base": null, + "refs": { + } + }, + "InvokeAsyncResponse": { + "base": "

Upon success, it returns empty response. Otherwise, throws an exception.

", + "refs": { + } + }, + "ListEventSourceMappingsRequest": { + "base": null, + "refs": { + } + }, + "ListEventSourceMappingsResponse": { + "base": "

Contains a list of event sources (see API_EventSourceMappingConfiguration)

", + "refs": { + } + }, + "ListFunctionsRequest": { + "base": null, + "refs": { + } + }, + "ListFunctionsResponse": { + "base": "

Contains a list of AWS Lambda function configurations (see FunctionConfiguration.

", + "refs": { + } + }, + "LogType": { + "base": null, + "refs": { + "InvocationRequest$LogType": "

You can set this optional parameter to \"Tail\" in the request only if you specify the InvocationType parameter with value \"RequestResponse\". In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in the x-amz-log-results header.

" + } + }, + "Long": { + "base": null, + "refs": { + "FunctionConfiguration$CodeSize": "

The size, in bytes, of the function .zip file you uploaded.

" + } + }, + "MaxListItems": { + "base": null, + "refs": { + "ListEventSourceMappingsRequest$MaxItems": "

Optional integer. Specifies the maximum number of event sources to return in response. This value must be greater than 0.

", + "ListFunctionsRequest$MaxItems": "

Optional integer. Specifies the maximum number of AWS Lambda functions to return in response. This parameter value must be greater than 0.

" + } + }, + "MemorySize": { + "base": null, + "refs": { + "CreateFunctionRequest$MemorySize": "

The amount of memory, in MB, your Lambda function is given. Lambda uses this memory size to infer the amount of CPU and memory allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.

", + "FunctionConfiguration$MemorySize": "

The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

", + "UpdateFunctionConfigurationRequest$MemorySize": "

The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.

" + } + }, + "PolicyLengthExceededException": { + "base": "

Lambda function access policy is limited to 20 KB.

", + "refs": { + } + }, + "Principal": { + "base": null, + "refs": { + "AddPermissionRequest$Principal": "

The principal who is getting this permission. It can be Amazon S3 service Principal (\"s3.amazonaws.com\") if you want Amazon S3 to invoke the function, an AWS account ID if you are granting cross-account permission, or any valid AWS service principal such as \"sns.amazonaws.com\". For example, you might want to allow a custom application in another AWS account to push events to AWS Lambda by invoking your function.

" + } + }, + "RemovePermissionRequest": { + "base": null, + "refs": { + } + }, + "RequestTooLargeException": { + "base": null, + "refs": { + } + }, + "ResourceConflictException": { + "base": "

The resource already exists.

", + "refs": { + } + }, + "ResourceNotFoundException": { + "base": "

The resource (for example, a Lambda function or access policy statement) specified in the request does not exist.

", + "refs": { + } + }, + "RoleArn": { + "base": null, + "refs": { + "CreateFunctionRequest$Role": "

The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources. For more information, see AWS Lambda: How it Works

", + "FunctionConfiguration$Role": "

The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

", + "UpdateFunctionConfigurationRequest$Role": "

The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.

" + } + }, + "Runtime": { + "base": null, + "refs": { + "CreateFunctionRequest$Runtime": "

The runtime environment for the Lambda function you are uploading. Currently, Lambda supports \"java\" and \"nodejs\" as the runtime.

", + "FunctionConfiguration$Runtime": "

The runtime environment for the Lambda function.

" + } + }, + "S3Bucket": { + "base": null, + "refs": { + "FunctionCode$S3Bucket": "

Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.

", + "UpdateFunctionCodeRequest$S3Bucket": "

Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.

" + } + }, + "S3Key": { + "base": null, + "refs": { + "FunctionCode$S3Key": "

The Amazon S3 object (the deployment package) key name you want to upload.

", + "UpdateFunctionCodeRequest$S3Key": "

The Amazon S3 object (the deployment package) key name you want to upload.

" + } + }, + "S3ObjectVersion": { + "base": null, + "refs": { + "FunctionCode$S3ObjectVersion": "

The Amazon S3 object (the deployment package) version you want to upload.

", + "UpdateFunctionCodeRequest$S3ObjectVersion": "

The Amazon S3 object (the deployment package) version you want to upload.

" + } + }, + "ServiceException": { + "base": "

The AWS Lambda service encountered an internal error.

", + "refs": { + } + }, + "SourceOwner": { + "base": null, + "refs": { + "AddPermissionRequest$SourceAccount": "

The AWS account ID (without a hyphen) of the source owner. For example, if the SourceArn identifies a bucket, then this is the bucket owner's account ID. You can use this additional condition to ensure the bucket you specify is owned by a specific account (it is possible the bucket owner deleted the bucket and some other AWS account created the bucket). You can also use this condition to specify all sources (that is, you don't specify the SourceArn) owned by a specific account.

" + } + }, + "StatementId": { + "base": null, + "refs": { + "AddPermissionRequest$StatementId": "

A unique statement identifier.

", + "RemovePermissionRequest$StatementId": "

Statement ID of the permission to remove.

" + } + }, + "String": { + "base": null, + "refs": { + "AddPermissionResponse$Statement": "

The permission statement you specified in the request. The response returns the same as a string using \"\\\" as an escape character in the JSON.

", + "CodeStorageExceededException$Type": null, + "CodeStorageExceededException$message": null, + "DeleteEventSourceMappingRequest$UUID": "

The event source mapping ID.

", + "EventSourceMappingConfiguration$UUID": "

The AWS Lambda assigned opaque identifier for the mapping.

", + "EventSourceMappingConfiguration$LastProcessingResult": "

The result of the last AWS Lambda invocation of your Lambda function.

", + "EventSourceMappingConfiguration$State": "

The state of the event source mapping. It can be \"Creating\", \"Enabled\", \"Disabled\", \"Enabling\", \"Disabling\", \"Updating\", or \"Deleting\".

", + "EventSourceMappingConfiguration$StateTransitionReason": "

The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.

", + "FunctionCodeLocation$RepositoryType": "

The repository from which you can download the function.

", + "FunctionCodeLocation$Location": "

The presigned URL you can use to download the function's .zip file that you previously uploaded. The URL is valid for up to 10 minutes.

", + "GetEventSourceMappingRequest$UUID": "

The AWS Lambda assigned ID of the event source mapping.

", + "GetPolicyResponse$Policy": "

The access policy associated with the specified function. The response returns the same as a string using \"\\\" as an escape character in the JSON.

", + "InvalidParameterValueException$Type": null, + "InvalidParameterValueException$message": null, + "InvalidRequestContentException$Type": null, + "InvalidRequestContentException$message": null, + "InvocationRequest$ClientContext": "

Using the ClientContext you can pass client-specific information to the Lambda function you are invoking. You can then process the client information in your Lambda function as you choose through the context variable. For an example of a ClientContext JSON, go to PutEvents in the Amazon Mobile Analytics API Reference and User Guide.

The ClientContext JSON must be base64-encoded.

", + "InvocationResponse$FunctionError": "

Indicates whether an error occurred while executing the Lambda function. If an error occurred this field will have one of two values; Handled or Unhandled. Handled errors are errors that are reported by the function while the Unhandled errors are those detected and reported by AWS Lambda. Unhandled errors include out of memory errors and function timeouts. For information about how to report an Handled error, see Programming Model.

", + "InvocationResponse$LogResult": "

It is the base64-encoded logs for the Lambda function invocation. This is present only if the invocation type is \"RequestResponse\" and the logs were requested.

", + "ListEventSourceMappingsRequest$Marker": "

Optional string. An opaque pagination token returned from a previous ListEventSourceMappings operation. If present, specifies to continue the list from where the returning call left off.

", + "ListEventSourceMappingsResponse$NextMarker": "

A string, present if there are more event source mappings.

", + "ListFunctionsRequest$Marker": "

Optional string. An opaque pagination token returned from a previous ListFunctions operation. If present, indicates where to continue the listing.

", + "ListFunctionsResponse$NextMarker": "

A string, present if there are more functions.

", + "PolicyLengthExceededException$Type": null, + "PolicyLengthExceededException$message": null, + "RequestTooLargeException$Type": null, + "RequestTooLargeException$message": null, + "ResourceConflictException$Type": null, + "ResourceConflictException$message": null, + "ResourceNotFoundException$Type": null, + "ResourceNotFoundException$Message": null, + "ServiceException$Type": null, + "ServiceException$Message": null, + "TooManyRequestsException$retryAfterSeconds": "

The number of seconds the caller should wait before retrying.

", + "TooManyRequestsException$Type": null, + "TooManyRequestsException$message": null, + "UnsupportedMediaTypeException$Type": null, + "UnsupportedMediaTypeException$message": null, + "UpdateEventSourceMappingRequest$UUID": "

The event source mapping identifier.

" + } + }, + "Timeout": { + "base": null, + "refs": { + "CreateFunctionRequest$Timeout": "

The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

", + "FunctionConfiguration$Timeout": "

The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

", + "UpdateFunctionConfigurationRequest$Timeout": "

The function execution time at which AWS Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "FunctionConfiguration$LastModified": "

The timestamp of the last time you updated the function.

" + } + }, + "TooManyRequestsException": { + "base": null, + "refs": { + } + }, + "UnsupportedMediaTypeException": { + "base": null, + "refs": { + } + }, + "UpdateEventSourceMappingRequest": { + "base": null, + "refs": { + } + }, + "UpdateFunctionCodeRequest": { + "base": null, + "refs": { + } + }, + "UpdateFunctionConfigurationRequest": { + "base": null, + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/lambda/2015-03-31/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/lambda/2015-03-31/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/logs/2014-03-28/api-2.json similarity index 72% rename from vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/logs/2014-03-28/api-2.json index 9b08376c1..efe312331 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/logs/2014-03-28/api-2.json @@ -4,43 +4,12 @@ "apiVersion":"2014-03-28", "endpointPrefix":"logs", "jsonVersion":"1.1", - "protocol":"json", "serviceFullName":"Amazon CloudWatch Logs", "signatureVersion":"v4", - "targetPrefix":"Logs_20140328" + "targetPrefix":"Logs_20140328", + "protocol":"json" }, "operations":{ - "CancelExportTask":{ - "name":"CancelExportTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CancelExportTaskRequest"}, - "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidOperationException"}, - {"shape":"ServiceUnavailableException"} - ] - }, - "CreateExportTask":{ - "name":"CreateExportTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateExportTaskRequest"}, - "output":{"shape":"CreateExportTaskResponse"}, - "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"LimitExceededException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceAlreadyExistsException"} - ] - }, "CreateLogGroup":{ "name":"CreateLogGroup", "http":{ @@ -49,11 +18,27 @@ }, "input":{"shape":"CreateLogGroupRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceAlreadyExistsException"}, - {"shape":"LimitExceededException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceAlreadyExistsException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "CreateLogStream":{ @@ -64,10 +49,23 @@ }, "input":{"shape":"CreateLogStreamRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceAlreadyExistsException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceAlreadyExistsException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DeleteDestination":{ @@ -78,10 +76,23 @@ }, "input":{"shape":"DeleteDestinationRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DeleteLogGroup":{ @@ -92,10 +103,23 @@ }, "input":{"shape":"DeleteLogGroupRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DeleteLogStream":{ @@ -106,10 +130,23 @@ }, "input":{"shape":"DeleteLogStreamRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DeleteMetricFilter":{ @@ -120,10 +157,23 @@ }, "input":{"shape":"DeleteMetricFilterRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DeleteRetentionPolicy":{ @@ -134,10 +184,23 @@ }, "input":{"shape":"DeleteRetentionPolicyRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DeleteSubscriptionFilter":{ @@ -148,10 +211,23 @@ }, "input":{"shape":"DeleteSubscriptionFilterRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DescribeDestinations":{ @@ -163,21 +239,15 @@ "input":{"shape":"DescribeDestinationsRequest"}, "output":{"shape":"DescribeDestinationsResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ServiceUnavailableException"} - ] - }, - "DescribeExportTasks":{ - "name":"DescribeExportTasks", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeExportTasksRequest"}, - "output":{"shape":"DescribeExportTasksResponse"}, - "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DescribeLogGroups":{ @@ -189,8 +259,15 @@ "input":{"shape":"DescribeLogGroupsRequest"}, "output":{"shape":"DescribeLogGroupsResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DescribeLogStreams":{ @@ -202,9 +279,19 @@ "input":{"shape":"DescribeLogStreamsRequest"}, "output":{"shape":"DescribeLogStreamsResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DescribeMetricFilters":{ @@ -216,9 +303,19 @@ "input":{"shape":"DescribeMetricFiltersRequest"}, "output":{"shape":"DescribeMetricFiltersResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "DescribeSubscriptionFilters":{ @@ -230,9 +327,19 @@ "input":{"shape":"DescribeSubscriptionFiltersRequest"}, "output":{"shape":"DescribeSubscriptionFiltersResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "FilterLogEvents":{ @@ -244,9 +351,19 @@ "input":{"shape":"FilterLogEventsRequest"}, "output":{"shape":"FilterLogEventsResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "GetLogEvents":{ @@ -258,9 +375,19 @@ "input":{"shape":"GetLogEventsRequest"}, "output":{"shape":"GetLogEventsResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "PutDestination":{ @@ -272,9 +399,19 @@ "input":{"shape":"PutDestinationRequest"}, "output":{"shape":"PutDestinationResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "PutDestinationPolicy":{ @@ -285,9 +422,19 @@ }, "input":{"shape":"PutDestinationPolicyRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "PutLogEvents":{ @@ -299,12 +446,31 @@ "input":{"shape":"PutLogEventsRequest"}, "output":{"shape":"PutLogEventsResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"InvalidSequenceTokenException"}, - {"shape":"DataAlreadyAcceptedException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"InvalidSequenceTokenException", + "exception":true + }, + { + "shape":"DataAlreadyAcceptedException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "PutMetricFilter":{ @@ -315,11 +481,27 @@ }, "input":{"shape":"PutMetricFilterRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"OperationAbortedException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "PutRetentionPolicy":{ @@ -330,10 +512,23 @@ }, "input":{"shape":"PutRetentionPolicyRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"OperationAbortedException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "PutSubscriptionFilter":{ @@ -344,11 +539,27 @@ }, "input":{"shape":"PutSubscriptionFilterRequest"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"OperationAbortedException"}, - {"shape":"LimitExceededException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + }, + { + "shape":"OperationAbortedException", + "exception":true + }, + { + "shape":"LimitExceededException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] }, "TestMetricFilter":{ @@ -360,8 +571,15 @@ "input":{"shape":"TestMetricFilterRequest"}, "output":{"shape":"TestMetricFilterResponse"}, "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ServiceUnavailableException"} + { + "shape":"InvalidParameterException", + "exception":true + }, + { + "shape":"ServiceUnavailableException", + "exception":true, + "fault":true + } ] } }, @@ -371,37 +589,6 @@ "min":1 }, "Arn":{"type":"string"}, - "CancelExportTaskRequest":{ - "type":"structure", - "required":["taskId"], - "members":{ - "taskId":{"shape":"ExportTaskId"} - } - }, - "CreateExportTaskRequest":{ - "type":"structure", - "required":[ - "logGroupName", - "from", - "to", - "destination" - ], - "members":{ - "taskName":{"shape":"ExportTaskName"}, - "logGroupName":{"shape":"LogGroupName"}, - "logStreamNamePrefix":{"shape":"LogStreamName"}, - "from":{"shape":"Timestamp"}, - "to":{"shape":"Timestamp"}, - "destination":{"shape":"ExportDestinationBucket"}, - "destinationPrefix":{"shape":"ExportDestinationPrefix"} - } - }, - "CreateExportTaskResponse":{ - "type":"structure", - "members":{ - "taskId":{"shape":"ExportTaskId"} - } - }, "CreateLogGroupRequest":{ "type":"structure", "required":["logGroupName"], @@ -498,26 +685,10 @@ "nextToken":{"shape":"NextToken"} } }, - "DescribeExportTasksRequest":{ - "type":"structure", - "members":{ - "taskId":{"shape":"ExportTaskId"}, - "statusCode":{"shape":"ExportTaskStatusCode"}, - "nextToken":{"shape":"NextToken"}, - "limit":{"shape":"DescribeLimit"} - } - }, - "DescribeExportTasksResponse":{ - "type":"structure", - "members":{ - "exportTasks":{"shape":"ExportTasks"}, - "nextToken":{"shape":"NextToken"} - } - }, "DescribeLimit":{ "type":"integer", - "max":50, - "min":1 + "min":1, + "max":50 }, "DescribeLogGroupsRequest":{ "type":"structure", @@ -604,8 +775,8 @@ }, "DestinationName":{ "type":"string", - "max":512, "min":1, + "max":512, "pattern":"[^:*]*" }, "Destinations":{ @@ -620,68 +791,8 @@ "EventNumber":{"type":"long"}, "EventsLimit":{ "type":"integer", - "max":10000, - "min":1 - }, - "ExportDestinationBucket":{ - "type":"string", - "max":512, - "min":1 - }, - "ExportDestinationPrefix":{"type":"string"}, - "ExportTask":{ - "type":"structure", - "members":{ - "taskId":{"shape":"ExportTaskId"}, - "taskName":{"shape":"ExportTaskName"}, - "logGroupName":{"shape":"LogGroupName"}, - "from":{"shape":"Timestamp"}, - "to":{"shape":"Timestamp"}, - "destination":{"shape":"ExportDestinationBucket"}, - "destinationPrefix":{"shape":"ExportDestinationPrefix"}, - "status":{"shape":"ExportTaskStatus"}, - "executionInfo":{"shape":"ExportTaskExecutionInfo"} - } - }, - "ExportTaskExecutionInfo":{ - "type":"structure", - "members":{ - "creationTime":{"shape":"Timestamp"}, - "completionTime":{"shape":"Timestamp"} - } - }, - "ExportTaskId":{ - "type":"string", - "max":512, - "min":1 - }, - "ExportTaskName":{ - "type":"string", - "max":512, - "min":1 - }, - "ExportTaskStatus":{ - "type":"structure", - "members":{ - "code":{"shape":"ExportTaskStatusCode"}, - "message":{"shape":"ExportTaskStatusMessage"} - } - }, - "ExportTaskStatusCode":{ - "type":"string", - "enum":[ - "CANCELLED", - "COMPLETED", - "FAILED", - "PENDING", - "PENDING_CANCEL", - "RUNNING" - ] - }, - "ExportTaskStatusMessage":{"type":"string"}, - "ExportTasks":{ - "type":"list", - "member":{"shape":"ExportTask"} + "min":1, + "max":10000 }, "ExtractedValues":{ "type":"map", @@ -713,14 +824,14 @@ }, "FilterName":{ "type":"string", - "max":512, "min":1, + "max":512, "pattern":"[^:*]*" }, "FilterPattern":{ "type":"string", - "max":1024, - "min":0 + "min":0, + "max":512 }, "FilteredLogEvent":{ "type":"structure", @@ -774,22 +885,16 @@ "InputLogEvents":{ "type":"list", "member":{"shape":"InputLogEvent"}, - "max":10000, - "min":1 + "min":1, + "max":10000 }, "InputLogStreamNames":{ "type":"list", "member":{"shape":"LogStreamName"}, - "max":100, - "min":1 + "min":1, + "max":100 }, "Interleaved":{"type":"boolean"}, - "InvalidOperationException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, "InvalidParameterException":{ "type":"structure", "members":{ @@ -823,8 +928,8 @@ }, "LogGroupName":{ "type":"string", - "max":512, "min":1, + "max":512, "pattern":"[\\.\\-_/#A-Za-z0-9]+" }, "LogGroups":{ @@ -846,8 +951,8 @@ }, "LogStreamName":{ "type":"string", - "max":512, "min":1, + "max":512, "pattern":"[^:*]*" }, "LogStreamSearchedCompletely":{"type":"boolean"}, @@ -906,8 +1011,8 @@ "MetricTransformations":{ "type":"list", "member":{"shape":"MetricTransformation"}, - "max":1, - "min":1 + "min":1, + "max":1 }, "MetricValue":{ "type":"string", @@ -1108,8 +1213,8 @@ "TestEventMessages":{ "type":"list", "member":{"shape":"EventMessage"}, - "max":50, - "min":1 + "min":1, + "max":50 }, "TestMetricFilterRequest":{ "type":"structure", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/logs/2014-03-28/docs-2.json similarity index 72% rename from vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/logs/2014-03-28/docs-2.json index 4b9ba501d..f157d3d5e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/logs/2014-03-28/docs-2.json @@ -1,9 +1,6 @@ { "version": "2.0", - "service": "Amazon CloudWatch Logs API Reference

You can use Amazon CloudWatch Logs to monitor, store, and access your log files from Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon CloudTrail, or other sources. You can then retrieve the associated log data from CloudWatch Logs using the Amazon CloudWatch console, the CloudWatch Logs commands in the AWS CLI, the CloudWatch Logs API, or the CloudWatch Logs SDK.

You can use CloudWatch Logs to:

  • Monitor Logs from Amazon EC2 Instances in Real-time: You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as \"NullReferenceException\") or count the number of occurrences of a literal term at a particular position in log data (such as \"404\" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a Amazon CloudWatch metric that you specify.

  • Monitor Amazon CloudTrail Logged Events: You can create alarms in Amazon CloudWatch and receive notifications of particular API activity as captured by CloudTrail and use the notification to perform troubleshooting.

  • Archive Log Data: You can use CloudWatch Logs to store your log data in highly durable storage. You can change the log retention setting so that any log events older than this setting are automatically deleted. The CloudWatch Logs agent makes it easy to quickly send both rotated and non-rotated log data off of a host and into the log service. You can then access the raw log data when you need it.

", "operations": { - "CancelExportTask": "

Cancels an export task if it is in PENDING or RUNNING state.

", - "CreateExportTask": "

Creates an ExportTask which allows you to efficiently export data from a Log Group to your Amazon S3 bucket.

This is an asynchronous call. If all the required information is provided, this API will initiate an export task and respond with the task Id. Once started, DescribeExportTasks can be used to get the status of an export task. You can only have one active (RUNNING or PENDING) export task at a time, per account.

You can export logs from multiple log groups or multiple time ranges to the same Amazon S3 bucket. To separate out log data for each export task, you can specify a prefix that will be used as the Amazon S3 key prefix for all exported objects.

", "CreateLogGroup": "

Creates a new log group with the specified name. The name of the log group must be unique within a region for an AWS account. You can create up to 500 log groups per account.

You must use the following guidelines when naming a log group:

  • Log group names can be between 1 and 512 characters long.
  • Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period).

", "CreateLogStream": "

Creates a new log stream in the specified log group. The name of the log stream must be unique within the log group. There is no limit on the number of log streams that can exist in a log group.

You must use the following guidelines when naming a log stream:

  • Log stream names can be between 1 and 512 characters long.
  • The ':' colon character is not allowed.

", "DeleteDestination": "

Deletes the destination with the specified name and eventually disables all the subscription filters that publish to it. This will not delete the physical resource encapsulated by the destination.

", @@ -13,7 +10,6 @@ "DeleteRetentionPolicy": "

Deletes the retention policy of the specified log group. Log events would not expire if they belong to log groups without a retention policy.

", "DeleteSubscriptionFilter": "

Deletes a subscription filter associated with the specified log group.

", "DescribeDestinations": "

Returns all the destinations that are associated with the AWS account making the request. The list returned in the response is ASCII-sorted by destination name.

By default, this operation returns up to 50 destinations. If there are more destinations to list, the response would contain a nextToken value in the response body. You can also limit the number of destinations returned in the response by specifying the limit parameter in the request.

", - "DescribeExportTasks": "

Returns all the export tasks that are associated with the AWS account making the request. The export tasks can be filtered based on TaskId or TaskStatus.

By default, this operation returns up to 50 export tasks that satisfy the specified filters. If there are more export tasks to list, the response would contain a nextToken value in the response body. You can also limit the number of export tasks returned in the response by specifying the limit parameter in the request.

", "DescribeLogGroups": "

Returns all the log groups that are associated with the AWS account making the request. The list returned in the response is ASCII-sorted by log group name.

By default, this operation returns up to 50 log groups. If there are more log groups to list, the response would contain a nextToken value in the response body. You can also limit the number of log groups returned in the response by specifying the limit parameter in the request.

", "DescribeLogStreams": "

Returns all the log streams that are associated with the specified log group. The list returned in the response is ASCII-sorted by log stream name.

By default, this operation returns up to 50 log streams. If there are more log streams to list, the response would contain a nextToken value in the response body. You can also limit the number of log streams returned in the response by specifying the limit parameter in the request. This operation has a limit of five transactions per second, after which transactions are throttled.

", "DescribeMetricFilters": "

Returns all the metrics filters associated with the specified log group. The list returned in the response is ASCII-sorted by filter name.

By default, this operation returns up to 50 metric filters. If there are more metric filters to list, the response would contain a nextToken value in the response body. You can also limit the number of metric filters returned in the response by specifying the limit parameter in the request.

", @@ -22,43 +18,29 @@ "GetLogEvents": "

Retrieves log events from the specified log stream. You can provide an optional time range to filter the results on the event timestamp.

By default, this operation returns as much log events as can fit in a response size of 1MB, up to 10,000 log events. The response will always include a nextForwardToken and a nextBackwardToken in the response body. You can use any of these tokens in subsequent GetLogEvents requests to paginate through events in either forward or backward direction. You can also limit the number of log events returned in the response by specifying the limit parameter in the request.

", "PutDestination": "

Creates or updates a Destination. A destination encapsulates a physical resource (such as a Kinesis stream) and allows you to subscribe to a real-time stream of log events of a different account, ingested through PutLogEvents requests. Currently, the only supported physical resource is a Amazon Kinesis stream belonging to the same account as the destination.

A destination controls what is written to its Amazon Kinesis stream through an access policy. By default, PutDestination does not set any access policy with the destination, which means a cross-account user will not be able to call PutSubscriptionFilter against this destination. To enable that, the destination owner must call PutDestinationPolicy after PutDestination.

", "PutDestinationPolicy": "

Creates or updates an access policy associated with an existing Destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.

", - "PutLogEvents": "

Uploads a batch of log events to the specified log stream.

Every PutLogEvents request must include the sequenceToken obtained from the response of the previous request. An upload in a newly created log stream does not require a sequenceToken.

The batch of events must satisfy the following constraints:

  • The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.
  • None of the log events in the batch can be more than 2 hours in the future.
  • None of the log events in the batch can be older than 14 days or the retention period of the log group.
  • The log events in the batch must be in chronological ordered by their timestamp.
  • The maximum number of log events in a batch is 10,000.
  • A batch of log events in a single PutLogEvents request cannot span more than 24 hours. Otherwise, the PutLogEvents operation will fail.

", + "PutLogEvents": "

Uploads a batch of log events to the specified log stream.

Every PutLogEvents request must include the sequenceToken obtained from the response of the previous request. An upload in a newly created log stream does not require a sequenceToken.

The batch of events must satisfy the following constraints:

  • The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.
  • None of the log events in the batch can be more than 2 hours in the future.
  • None of the log events in the batch can be older than 14 days or the retention period of the log group.
  • The log events in the batch must be in chronological ordered by their timestamp.
  • The maximum number of log events in a batch is 10,000.

", "PutMetricFilter": "

Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through PutLogEvents requests.

The maximum number of metric filters that can be associated with a log group is 100.

", "PutRetentionPolicy": "

Sets the retention of the specified log group. A retention policy allows you to configure the number of days you want to retain log events in the specified log group.

", - "PutSubscriptionFilter": "

Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through PutLogEvents requests and have them delivered to a specific destination. Currently, the supported destinations are:

  • An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
  • A logical destination (used via an ARN of Destination) belonging to a different account, for cross-account delivery.
  • An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
  • An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.

Currently there can only be one subscription filter associated with a log group.

", + "PutSubscriptionFilter": "

Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through PutLogEvents requests and have them delivered to a specific destination. Currently, the supported destinations are:

  • A Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
  • A logical destination (used via an ARN of Destination) belonging to a different account, for cross-account delivery.

Currently there can only be one subscription filter associated with a log group.

", "TestMetricFilter": "

Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.

" }, + "service": "Amazon CloudWatch Logs API Reference

This is the Amazon CloudWatch Logs API Reference. Amazon CloudWatch Logs enables you to monitor, store, and access your system, application, and custom log files. This guide provides detailed information about Amazon CloudWatch Logs actions, data types, parameters, and errors. For detailed information about Amazon CloudWatch Logs features and their associated API calls, go to the Amazon CloudWatch Developer Guide.

Use the following links to get started using the Amazon CloudWatch Logs API Reference:

  • Actions: An alphabetical list of all Amazon CloudWatch Logs actions.
  • Data Types: An alphabetical list of all Amazon CloudWatch Logs data types.
  • Common Parameters: Parameters that all Query actions can use.
  • Common Errors: Client and server errors that all actions can return.
  • Regions and Endpoints: Itemized regions and endpoints for all AWS products.

In addition to using the Amazon CloudWatch Logs API, you can also use the following SDKs and third-party libraries to access Amazon CloudWatch Logs programmatically.

Developers in the AWS developer community also provide their own libraries, which you can find at the following AWS developer centers:

", "shapes": { "AccessPolicy": { "base": null, "refs": { - "Destination$accessPolicy": "

An IAM policy document that governs which AWS accounts can create subscription filters against this destination.

", + "Destination$accessPolicy": null, "PutDestinationPolicyRequest$accessPolicy": "

An IAM policy document that authorizes cross-account users to deliver their log events to associated destination.

" } }, "Arn": { "base": null, "refs": { - "Destination$arn": "

ARN of this destination.

", + "Destination$arn": null, "LogGroup$arn": null, "LogStream$arn": null } }, - "CancelExportTaskRequest": { - "base": null, - "refs": { - } - }, - "CreateExportTaskRequest": { - "base": null, - "refs": { - } - }, - "CreateExportTaskResponse": { - "base": null, - "refs": { - } - }, "CreateLogGroupRequest": { "base": null, "refs": { @@ -127,21 +109,10 @@ "refs": { } }, - "DescribeExportTasksRequest": { - "base": null, - "refs": { - } - }, - "DescribeExportTasksResponse": { - "base": null, - "refs": { - } - }, "DescribeLimit": { "base": "

The maximum number of results to return.

", "refs": { "DescribeDestinationsRequest$limit": null, - "DescribeExportTasksRequest$limit": "

The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.

", "DescribeLogGroupsRequest$limit": "

The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.

", "DescribeLogStreamsRequest$limit": "

The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.

", "DescribeMetricFiltersRequest$limit": "

The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.

", @@ -189,7 +160,7 @@ } }, "Destination": { - "base": "

A cross account destination that is the recipient of subscription log events.

", + "base": null, "refs": { "Destinations$member": null, "PutDestinationResponse$destination": null @@ -198,7 +169,7 @@ "DestinationArn": { "base": null, "refs": { - "PutSubscriptionFilterRequest$destinationArn": "

The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:

  • An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
  • A logical destination (used via an ARN of Destination) belonging to a different account, for cross-account delivery.
  • An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
  • An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.

", + "PutSubscriptionFilterRequest$destinationArn": "

The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:

  • A Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
  • A logical destination (used via an ARN of Destination) belonging to a different account, for cross-account delivery.

", "SubscriptionFilter$destinationArn": null } }, @@ -207,7 +178,7 @@ "refs": { "DeleteDestinationRequest$destinationName": "

The name of destination to delete.

", "DescribeDestinationsRequest$DestinationNamePrefix": "

Will only return destinations that match the provided destinationNamePrefix. If you don't specify a value, no prefix is applied.

", - "Destination$destinationName": "

Name of the destination.

", + "Destination$destinationName": null, "PutDestinationPolicyRequest$destinationName": "

A name for an existing destination.

", "PutDestinationRequest$destinationName": "

A name for the destination.

" } @@ -247,73 +218,6 @@ "GetLogEventsRequest$limit": "

The maximum number of log events returned in the response. If you don't specify a value, the request would return as many log events as can fit in a response size of 1MB, up to 10,000 log events.

" } }, - "ExportDestinationBucket": { - "base": null, - "refs": { - "CreateExportTaskRequest$destination": "

Name of Amazon S3 bucket to which the log data will be exported.

Note: Only buckets in the same AWS region are supported.

", - "ExportTask$destination": "

Name of Amazon S3 bucket to which the log data was exported.

" - } - }, - "ExportDestinationPrefix": { - "base": null, - "refs": { - "CreateExportTaskRequest$destinationPrefix": "

Prefix that will be used as the start of Amazon S3 key for every object exported. If not specified, this defaults to 'exportedlogs'.

", - "ExportTask$destinationPrefix": "

Prefix that was used as the start of Amazon S3 key for every object exported.

" - } - }, - "ExportTask": { - "base": "

Represents an export task.

", - "refs": { - "ExportTasks$member": null - } - }, - "ExportTaskExecutionInfo": { - "base": "

Represents the status of an export task.

", - "refs": { - "ExportTask$executionInfo": "

Execution info about the export task.

" - } - }, - "ExportTaskId": { - "base": null, - "refs": { - "CancelExportTaskRequest$taskId": "

Id of the export task to cancel.

", - "CreateExportTaskResponse$taskId": "

Id of the export task that got created.

", - "DescribeExportTasksRequest$taskId": "

Export task that matches the specified task Id will be returned. This can result in zero or one export task.

", - "ExportTask$taskId": "

Id of the export task.

" - } - }, - "ExportTaskName": { - "base": null, - "refs": { - "CreateExportTaskRequest$taskName": "

The name of the export task.

", - "ExportTask$taskName": "

The name of the export task.

" - } - }, - "ExportTaskStatus": { - "base": "

Represents the status of an export task.

", - "refs": { - "ExportTask$status": "

Status of the export task.

" - } - }, - "ExportTaskStatusCode": { - "base": null, - "refs": { - "DescribeExportTasksRequest$statusCode": "

All export tasks that matches the specified status code will be returned. This can return zero or more export tasks.

", - "ExportTaskStatus$code": "

Status code of the export task.

" - } - }, - "ExportTaskStatusMessage": { - "base": null, - "refs": { - "ExportTaskStatus$message": "

Status message related to the code.

" - } - }, - "ExportTasks": { - "base": "

A list of export tasks.

", - "refs": { - "DescribeExportTasksResponse$exportTasks": null - } - }, "ExtractedValues": { "base": null, "refs": { @@ -350,7 +254,7 @@ } }, "FilterPattern": { - "base": "

A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.

", + "base": "

A symbolic description of how Amazon CloudWatch Logs should interpret the data in each log event. For example, a log event may contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.

", "refs": { "FilterLogEventsRequest$filterPattern": "

A valid CloudWatch Logs filter pattern to use for filtering the response. If not provided, all the events are matched.

", "MetricFilter$filterPattern": null, @@ -383,7 +287,7 @@ } }, "InputLogEvent": { - "base": "

A log event is a record of some activity that was recorded by the application or resource being monitored. The log event record that CloudWatch Logs understands contains two properties: the timestamp of when the event occurred, and the raw event message.

", + "base": "

A log event is a record of some activity that was recorded by the application or resource being monitored. The log event record that Amazon CloudWatch Logs understands contains two properties: the timestamp of when the event occurred, and the raw event message.

", "refs": { "InputLogEvents$member": null } @@ -406,11 +310,6 @@ "FilterLogEventsRequest$interleaved": "

If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.

" } }, - "InvalidOperationException": { - "base": "

Returned if the operation is not valid on the specified resource

", - "refs": { - } - }, "InvalidParameterException": { "base": "

Returned if a parameter of the request is incorrectly specified.

", "refs": { @@ -443,7 +342,6 @@ "LogGroupName": { "base": null, "refs": { - "CreateExportTaskRequest$logGroupName": "

The name of the log group to export.

", "CreateLogGroupRequest$logGroupName": "

The name of the log group to create.

", "CreateLogStreamRequest$logGroupName": "

The name of the log group under which the log stream is to be created.

", "DeleteLogGroupRequest$logGroupName": "

The name of the log group to delete.

", @@ -455,7 +353,6 @@ "DescribeLogStreamsRequest$logGroupName": "

The log group name for which log streams are to be listed.

", "DescribeMetricFiltersRequest$logGroupName": "

The log group name for which metric filters are to be listed.

", "DescribeSubscriptionFiltersRequest$logGroupName": "

The log group name for which subscription filters are to be listed.

", - "ExportTask$logGroupName": "

The name of the log group from which logs data was exported.

", "FilterLogEventsRequest$logGroupName": "

The name of the log group to query.

", "GetLogEventsRequest$logGroupName": "

The name of the log group to query.

", "LogGroup$logGroupName": null, @@ -481,7 +378,6 @@ "LogStreamName": { "base": null, "refs": { - "CreateExportTaskRequest$logStreamNamePrefix": "

Will only export log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.

", "CreateLogStreamRequest$logStreamName": "

The name of the log stream to create.

", "DeleteLogStreamRequest$logStreamName": "

The name of the log stream to delete.

", "DescribeLogStreamsRequest$logStreamNamePrefix": "

Will only return log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.

", @@ -506,7 +402,7 @@ } }, "MetricFilter": { - "base": "

Metric filters can be used to express how CloudWatch Logs would extract metric observations from ingested log events and transform them to metric data in a CloudWatch metric.

", + "base": "

Metric filters can be used to express how Amazon CloudWatch Logs would extract metric observations from ingested log events and transform them to metric data in a CloudWatch metric.

", "refs": { "MetricFilters$member": null } @@ -565,8 +461,6 @@ "refs": { "DescribeDestinationsRequest$nextToken": null, "DescribeDestinationsResponse$nextToken": null, - "DescribeExportTasksRequest$nextToken": "

A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous DescribeExportTasks request.

", - "DescribeExportTasksResponse$nextToken": null, "DescribeLogGroupsRequest$nextToken": "

A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous DescribeLogGroups request.

", "DescribeLogGroupsResponse$nextToken": null, "DescribeLogStreamsRequest$nextToken": "

A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous DescribeLogStreams request.

", @@ -575,8 +469,8 @@ "DescribeMetricFiltersResponse$nextToken": null, "DescribeSubscriptionFiltersRequest$nextToken": null, "DescribeSubscriptionFiltersResponse$nextToken": null, - "FilterLogEventsRequest$nextToken": "

A pagination token obtained from a FilterLogEvents response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.

", - "FilterLogEventsResponse$nextToken": "

A pagination token obtained from a FilterLogEvents response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.

", + "FilterLogEventsRequest$nextToken": "

A pagination token obtained from a FilterLogEvents response to continue paginating the FilterLogEvents results.

", + "FilterLogEventsResponse$nextToken": "

A pagination token obtained from a FilterLogEvents response to continue paginating the FilterLogEvents results.

", "GetLogEventsRequest$nextToken": "

A string token used for pagination that points to the next page of results. It must be a value obtained from the nextForwardToken or nextBackwardToken fields in the response of the previous GetLogEvents request.

", "GetLogEventsResponse$nextForwardToken": null, "GetLogEventsResponse$nextBackwardToken": null @@ -664,9 +558,9 @@ "RoleArn": { "base": null, "refs": { - "Destination$roleArn": "

A role for impersonation for delivering log events to the target.

", - "PutDestinationRequest$roleArn": "

The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the desitnation stream.

", - "PutSubscriptionFilterRequest$roleArn": "

The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination (used via an ARN of Destination) for cross-account delivery.

", + "Destination$roleArn": null, + "PutDestinationRequest$roleArn": "

The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the desitnation stream.

", + "PutSubscriptionFilterRequest$roleArn": "

The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination (used via an ARN of Destination) for cross-account delivery.

", "SubscriptionFilter$roleArn": null } }, @@ -725,7 +619,7 @@ "TargetArn": { "base": null, "refs": { - "Destination$targetArn": "

ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).

", + "Destination$targetArn": null, "PutDestinationRequest$targetArn": "

The ARN of an Amazon Kinesis stream to deliver matching log events to.

" } }, @@ -748,15 +642,9 @@ "Timestamp": { "base": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.

", "refs": { - "CreateExportTaskRequest$from": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the start time of the range for the request. Events with a timestamp prior to this time will not be exported.

", - "CreateExportTaskRequest$to": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the end time of the range for the request. Events with a timestamp later than this time will not be exported.

", - "Destination$creationTime": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.

", - "ExportTask$from": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp prior to this time are not exported.

", - "ExportTask$to": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.

", - "ExportTaskExecutionInfo$creationTime": "

A point in time when the export task got created.

", - "ExportTaskExecutionInfo$completionTime": "

A point in time when the export task got completed.

", - "FilterLogEventsRequest$startTime": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp prior to this time are not returned.

", - "FilterLogEventsRequest$endTime": "

A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp later than this time are not returned.

", + "Destination$creationTime": null, + "FilterLogEventsRequest$startTime": "

A unix timestamp indicating the start time of the range for the request. If provided, events with a timestamp prior to this time will not be returned.

", + "FilterLogEventsRequest$endTime": "

A unix timestamp indicating the end time of the range for the request. If provided, events with a timestamp later than this time will not be returned.

", "FilteredLogEvent$timestamp": null, "FilteredLogEvent$ingestionTime": null, "GetLogEventsRequest$startTime": null, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/logs/2014-03-28/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/logs/2014-03-28/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/machinelearning/2014-12-12/api-2.json similarity index 99% rename from vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/machinelearning/2014-12-12/api-2.json index 73ac00f66..6df882e4e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/machinelearning/2014-12-12/api-2.json @@ -1733,7 +1733,11 @@ } }, "VariableName":{"type":"string"}, - "VariableValue":{"type":"string"}, + "VariableValue":{ + "type":"string", + "max":1024, + "pattern":"[a-zA-Z0-9_]*" + }, "Verbose":{"type":"boolean"}, "VipURL":{ "type":"string", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/machinelearning/2014-12-12/docs-2.json similarity index 94% rename from vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/machinelearning/2014-12-12/docs-2.json index 21089663d..411023efe 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/machinelearning/2014-12-12/docs-2.json @@ -8,10 +8,10 @@ "CreateEvaluation": "

Creates a new Evaluation of an MLModel. An MLModel is evaluated on a set of observations associated to a DataSource. Like a DataSource for an MLModel, the DataSource for an Evaluation contains values for the Target Variable. The Evaluation compares the predicted result for each observation to the actual outcome and provides a summary so that you know how effective the MLModel functions on the test data. Evaluation generates a relevant performance metric such as BinaryAUC, RegressionRMSE or MulticlassAvgFScore based on the corresponding MLModelType: BINARY, REGRESSION or MULTICLASS.

CreateEvaluation is an asynchronous operation. In response to CreateEvaluation, Amazon Machine Learning (Amazon ML) immediately returns and sets the evaluation status to PENDING. After the Evaluation is created and ready for use, Amazon ML sets the status to COMPLETED.

You can use the GetEvaluation operation to check progress of the evaluation during the creation operation.

", "CreateMLModel": "

Creates a new MLModel using the data files and the recipe as information sources.

An MLModel is nearly immutable. Users can only update the MLModelName and the ScoreThreshold in an MLModel without creating a new MLModel.

CreateMLModel is an asynchronous operation. In response to CreateMLModel, Amazon Machine Learning (Amazon ML) immediately returns and sets the MLModel status to PENDING. After the MLModel is created and ready for use, Amazon ML sets the status to COMPLETED.

You can use the GetMLModel operation to check progress of the MLModel during the creation operation.

CreateMLModel requires a DataSource with computed statistics, which can be created by setting ComputeStatistics to true in CreateDataSourceFromRDS, CreateDataSourceFromS3, or CreateDataSourceFromRedshift operations.

", "CreateRealtimeEndpoint": "

Creates a real-time endpoint for the MLModel. The endpoint contains the URI of the MLModel; that is, the location to send real-time prediction requests for the specified MLModel.

", - "DeleteBatchPrediction": "

Assigns the DELETED status to a BatchPrediction, rendering it unusable.

After using the DeleteBatchPrediction operation, you can use the GetBatchPrediction operation to verify that the status of the BatchPrediction changed to DELETED.

Caution: The result of the DeleteBatchPrediction operation is irreversible.

", - "DeleteDataSource": "

Assigns the DELETED status to a DataSource, rendering it unusable.

After using the DeleteDataSource operation, you can use the GetDataSource operation to verify that the status of the DataSource changed to DELETED.

Caution: The results of the DeleteDataSource operation are irreversible.

", - "DeleteEvaluation": "

Assigns the DELETED status to an Evaluation, rendering it unusable.

After invoking the DeleteEvaluation operation, you can use the GetEvaluation operation to verify that the status of the Evaluation changed to DELETED.

Caution: The results of the DeleteEvaluation operation are irreversible.

", - "DeleteMLModel": "

Assigns the DELETED status to an MLModel, rendering it unusable.

After using the DeleteMLModel operation, you can use the GetMLModel operation to verify that the status of the MLModel changed to DELETED.

Caution: The result of the DeleteMLModel operation is irreversible.

", + "DeleteBatchPrediction": "

Assigns the DELETED status to a BatchPrediction, rendering it unusable.

After using the DeleteBatchPrediction operation, you can use the GetBatchPrediction operation to verify that the status of the BatchPrediction changed to DELETED.

Caution

The result of the DeleteBatchPrediction operation is irreversible.

", + "DeleteDataSource": "

Assigns the DELETED status to a DataSource, rendering it unusable.

After using the DeleteDataSource operation, you can use the GetDataSource operation to verify that the status of the DataSource changed to DELETED.

Caution

The results of the DeleteDataSource operation are irreversible.

", + "DeleteEvaluation": "

Assigns the DELETED status to an Evaluation, rendering it unusable.

After invoking the DeleteEvaluation operation, you can use the GetEvaluation operation to verify that the status of the Evaluation changed to DELETED.

Caution

The results of the DeleteEvaluation operation are irreversible.

", + "DeleteMLModel": "

Assigns the DELETED status to an MLModel, rendering it unusable.

After using the DeleteMLModel operation, you can use the GetMLModel operation to verify that the status of the MLModel changed to DELETED.

Caution

The result of the DeleteMLModel operation is irreversible.

", "DeleteRealtimeEndpoint": "

Deletes a real time endpoint of an MLModel.

", "DescribeBatchPredictions": "

Returns a list of BatchPrediction operations that match the search criteria in the request.

", "DescribeDataSources": "

Returns a list of DataSource that match the search criteria in the request.

", @@ -21,7 +21,7 @@ "GetDataSource": "

Returns a DataSource that includes metadata and data file information, as well as the current status of the DataSource.

GetDataSource provides results in normal or verbose format. The verbose format adds the schema description and the list of files pointed to by the DataSource to the normal format.

", "GetEvaluation": "

Returns an Evaluation that includes metadata as well as the current status of the Evaluation.

", "GetMLModel": "

Returns an MLModel that includes detailed metadata, and data source information as well as the current status of the MLModel.

GetMLModel provides results in normal or verbose format.

", - "Predict": "

Generates a prediction for the observation using the specified ML Model.

Note

Not all response parameters will be populated. Whether a response parameter is populated depends on the type of model requested.

", + "Predict": "

Generates a prediction for the observation using the specified MLModel.

Note

Not all response parameters will be populated because this is dependent on the type of requested model.

", "UpdateBatchPrediction": "

Updates the BatchPredictionName of a BatchPrediction.

You can use the GetBatchPrediction operation to view the contents of the updated data element.

", "UpdateDataSource": "

Updates the DataSourceName of a DataSource.

You can use the GetDataSource operation to view the contents of the updated data element.

", "UpdateEvaluation": "

Updates the EvaluationName of an Evaluation.

You can use the GetEvaluation operation to view the contents of the updated data element.

", @@ -184,19 +184,19 @@ "refs": { "DataSource$DataRearrangement": "

A JSON string that represents the splitting requirement of a Datasource.

", "GetDataSourceOutput$DataRearrangement": "

A JSON string that captures the splitting rearrangement requirement of the DataSource.

", - "RDSDataSpec$DataRearrangement": "

DataRearrangement - A JSON string that represents the splitting requirement of a DataSource.


Sample - \"{\\\"splitting\\\":{\\\"percentBegin\\\":10,\\\"percentEnd\\\":60}}\"

", + "RDSDataSpec$DataRearrangement": "

DataRearrangement - A JSON string that represents the splitting requirement of a DataSource.


Sample - \"{\\\"randomSeed\\\":\\\"some-random-seed\\\", \\\"splitting\\\":{\\\"percentBegin\\\":10,\\\"percentEnd\\\":60}}\"

", "RedshiftDataSpec$DataRearrangement": "

Describes the splitting specifications for a DataSource.

", "S3DataSpec$DataRearrangement": "

Describes the splitting requirement of a Datasource.

" } }, "DataSchema": { - "base": "

The schema of a DataSource. The DataSchema defines the structure of the observation data in the data file(s) referenced in the DataSource. The DataSource schema is expressed in JSON format.

DataSchema is not required if you specify a DataSchemaUri

{ \"version\": \"1.0\", \"recordAnnotationFieldName\": \"F1\", \"recordWeightFieldName\": \"F2\", \"targetFieldName\": \"F3\", \"dataFormat\": \"CSV\", \"dataFileContainsHeader\": true, \"variables\": [ { \"fieldName\": \"F1\", \"fieldType\": \"TEXT\" }, { \"fieldName\": \"F2\", \"fieldType\": \"NUMERIC\" }, { \"fieldName\": \"F3\", \"fieldType\": \"CATEGORICAL\" }, { \"fieldName\": \"F4\", \"fieldType\": \"NUMERIC\" }, { \"fieldName\": \"F5\", \"fieldType\": \"CATEGORICAL\" }, { \"fieldName\": \"F6\", \"fieldType\": \"TEXT\" }, { \"fieldName\": \"F7\", \"fieldType\": \"WEIGHTED_INT_SEQUENCE\" }, { \"fieldName\": \"F8\", \"fieldType\": \"WEIGHTED_STRING_SEQUENCE\" } ], \"excludedVariableNames\": [ \"F6\" ] }

", + "base": "

The schema of a DataSource. The DataSchema defines the structure of the observation data in the data file(s) referenced in the DataSource. The DataSource schema is expressed in JSON format.

{ \"version\": \"1.0\", \"recordAnnotationFieldName\": \"F1\", \"recordWeightFieldName\": \"F2\", \"targetFieldName\": \"F3\", \"dataFormat\": \"CSV\", \"dataFileContainsHeader\": true, \"variables\": [ { \"fieldName\": \"F1\", \"fieldType\": \"TEXT\" }, { \"fieldName\": \"F2\", \"fieldType\": \"NUMERIC\" }, { \"fieldName\": \"F3\", \"fieldType\": \"CATEGORICAL\" }, { \"fieldName\": \"F4\", \"fieldType\": \"NUMERIC\" }, { \"fieldName\": \"F5\", \"fieldType\": \"CATEGORICAL\" }, { \"fieldName\": \"F6\", \"fieldType\": \"TEXT\" }, { \"fieldName\": \"F7\", \"fieldType\": \"WEIGHTED_INT_SEQUENCE\" }, { \"fieldName\": \"F8\", \"fieldType\": \"WEIGHTED_STRING_SEQUENCE\" } ], \"excludedVariableNames\": [ \"F6\" ] }", "refs": { "GetDataSourceOutput$DataSourceSchema": "

The schema used by all of the data files of this DataSource.

Note

This parameter is provided as part of the verbose format.

", "GetMLModelOutput$Schema": "

The schema used by all of the data files referenced by the DataSource.

Note

This parameter is provided as part of the verbose format.

", - "RDSDataSpec$DataSchema": "

A JSON string that represents the schema for an Amazon RDS DataSource. The DataSchema defines the structure of the observation data in the data file(s) referenced in the DataSource.

A DataSchema is not required if you specify a DataSchemaUri

Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames have an array of key-value pairs for their value. Use the following format to define your DataSchema.

{ \"version\": \"1.0\",

\"recordAnnotationFieldName\": \"F1\",

\"recordWeightFieldName\": \"F2\",

\"targetFieldName\": \"F3\",

\"dataFormat\": \"CSV\",

\"dataFileContainsHeader\": true,

\"attributes\": [

{ \"fieldName\": \"F1\", \"fieldType\": \"TEXT\" }, { \"fieldName\": \"F2\", \"fieldType\": \"NUMERIC\" }, { \"fieldName\": \"F3\", \"fieldType\": \"CATEGORICAL\" }, { \"fieldName\": \"F4\", \"fieldType\": \"NUMERIC\" }, { \"fieldName\": \"F5\", \"fieldType\": \"CATEGORICAL\" }, { \"fieldName\": \"F6\", \"fieldType\": \"TEXT\" }, { \"fieldName\": \"F7\", \"fieldType\": \"WEIGHTED_INT_SEQUENCE\" }, { \"fieldName\": \"F8\", \"fieldType\": \"WEIGHTED_STRING_SEQUENCE\" } ],

\"excludedVariableNames\": [ \"F6\" ] }

", - "RedshiftDataSpec$DataSchema": "

A JSON string that represents the schema for an Amazon Redshift DataSource. The DataSchema defines the structure of the observation data in the data file(s) referenced in the DataSource.

A DataSchema is not required if you specify a DataSchemaUri.

Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames have an array of key-value pairs for their value. Use the following format to define your DataSchema.

{ \"version\": \"1.0\",

\"recordAnnotationFieldName\": \"F1\",

\"recordWeightFieldName\": \"F2\",

\"targetFieldName\": \"F3\",

\"dataFormat\": \"CSV\",

\"dataFileContainsHeader\": true,

\"attributes\": [

{ \"fieldName\": \"F1\", \"fieldType\": \"TEXT\" }, { \"fieldName\": \"F2\", \"fieldType\": \"NUMERIC\" }, { \"fieldName\": \"F3\", \"fieldType\": \"CATEGORICAL\" }, { \"fieldName\": \"F4\", \"fieldType\": \"NUMERIC\" }, { \"fieldName\": \"F5\", \"fieldType\": \"CATEGORICAL\" }, { \"fieldName\": \"F6\", \"fieldType\": \"TEXT\" }, { \"fieldName\": \"F7\", \"fieldType\": \"WEIGHTED_INT_SEQUENCE\" }, { \"fieldName\": \"F8\", \"fieldType\": \"WEIGHTED_STRING_SEQUENCE\" } ],

\"excludedVariableNames\": [ \"F6\" ] }

", - "S3DataSpec$DataSchema": "

A JSON string that represents the schema for an Amazon S3 DataSource. The DataSchema defines the structure of the observation data in the data file(s) referenced in the DataSource.

Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames have an array of key-value pairs for their value. Use the following format to define your DataSchema.

{ \"version\": \"1.0\",

\"recordAnnotationFieldName\": \"F1\",

\"recordWeightFieldName\": \"F2\",

\"targetFieldName\": \"F3\",

\"dataFormat\": \"CSV\",

\"dataFileContainsHeader\": true,

\"attributes\": [

{ \"fieldName\": \"F1\", \"fieldType\": \"TEXT\" }, { \"fieldName\": \"F2\", \"fieldType\": \"NUMERIC\" }, { \"fieldName\": \"F3\", \"fieldType\": \"CATEGORICAL\" }, { \"fieldName\": \"F4\", \"fieldType\": \"NUMERIC\" }, { \"fieldName\": \"F5\", \"fieldType\": \"CATEGORICAL\" }, { \"fieldName\": \"F6\", \"fieldType\": \"TEXT\" }, { \"fieldName\": \"F7\", \"fieldType\": \"WEIGHTED_INT_SEQUENCE\" }, { \"fieldName\": \"F8\", \"fieldType\": \"WEIGHTED_STRING_SEQUENCE\" } ],

\"excludedVariableNames\": [ \"F6\" ] }

" + "RDSDataSpec$DataSchema": "

A JSON string that represents the schema. This is not required if DataSchemaUri is specified.

", + "RedshiftDataSpec$DataSchema": "

Describes the schema for an Amazon Redshift DataSource.

", + "S3DataSpec$DataSchema": "

Describes the schema for an Amazon S3 DataSource.

" } }, "DataSource": { @@ -722,7 +722,7 @@ "RDSDataSpec": { "base": "

The data specification of an Amazon Relational Database Service (Amazon RDS) DataSource.

", "refs": { - "CreateDataSourceFromRDSInput$RDSData": "

The data specification of an Amazon RDS DataSource:

  • DatabaseInformation -

    • DatabaseName - Name of the Amazon RDS database.
    • InstanceIdentifier - Unique identifier for the Amazon RDS database instance.

  • DatabaseCredentials - AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon RDS database.

  • ResourceRole - Role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute Cloud (EC2) instance to carry out the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.

  • ServiceRole - Role (DataPipelineDefaultRole) assumed by the AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon Simple Storage Service (S3). For more information, see Role templates for data pipelines.

  • SecurityInfo - Security information to use to access an Amazon RDS instance. You need to set up appropriate ingress rules for the security entity IDs provided to allow access to the Amazon RDS instance. Specify a [SubnetId, SecurityGroupIds] pair for a VPC-based Amazon RDS instance.

  • SelectSqlQuery - Query that is used to retrieve the observation data for the Datasource.

  • S3StagingLocation - Amazon S3 location for staging RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.

  • DataSchemaUri - Amazon S3 location of the DataSchema.

  • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

  • DataRearrangement - A JSON string representing the splitting requirement of a Datasource.


    Sample - \"{\\\"splitting\\\":{\\\"percentBegin\\\":10,\\\"percentEnd\\\":60}}\"

" + "CreateDataSourceFromRDSInput$RDSData": "

The data specification of an Amazon RDS DataSource:

  • DatabaseInformation -

    • DatabaseName - Name of the Amazon RDS database.
    • InstanceIdentifier - Unique identifier for the Amazon RDS database instance.

  • DatabaseCredentials - AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon RDS database.

  • ResourceRole - Role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute Cloud (EC2) instance to carry out the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.

  • ServiceRole - Role (DataPipelineDefaultRole) assumed by the AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon Simple Storage Service (S3). For more information, see Role templates for data pipelines.

  • SecurityInfo - Security information to use to access an Amazon RDS instance. You need to set up appropriate ingress rules for the security entity IDs provided to allow access to the Amazon RDS instance. Specify a [SubnetId, SecurityGroupIds] pair for a VPC-based Amazon RDS instance.

  • SelectSqlQuery - Query that is used to retrieve the observation data for the Datasource.

  • S3StagingLocation - Amazon S3 location for staging RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.

  • DataSchemaUri - Amazon S3 location of the DataSchema.

  • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

  • DataRearrangement - A JSON string representing the splitting requirement of a Datasource.


    Sample - \"{\\\"randomSeed\\\":\\\"some-random-seed\\\", \\\"splitting\\\":{\\\"percentBegin\\\":10,\\\"percentEnd\\\":60}}\"

" } }, "RDSDatabase": { @@ -814,7 +814,7 @@ "RedshiftDataSpec": { "base": "

Describes the data specification of an Amazon Redshift DataSource.

", "refs": { - "CreateDataSourceFromRedshiftInput$DataSpec": "

The data specification of an Amazon Redshift DataSource:

  • DatabaseInformation -

    • DatabaseName - Name of the Amazon Redshift database.
    • ClusterIdentifier - Unique ID for the Amazon Redshift cluster.

  • DatabaseCredentials - AWS Identity abd Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.

  • SelectSqlQuery - Query that is used to retrieve the observation data for the Datasource.

  • S3StagingLocation - Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Relational Database Service (Amazon RDS) using SelectSqlQuery is stored in this location.

  • DataSchemaUri - Amazon S3 location of the DataSchema.

  • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

  • DataRearrangement - A JSON string representing the splitting requirement of a Datasource.


    Sample - \"{\\\"splitting\\\":{\\\"percentBegin\\\":10,\\\"percentEnd\\\":60}}\"

" + "CreateDataSourceFromRedshiftInput$DataSpec": "

The data specification of an Amazon Redshift DataSource:

  • DatabaseInformation -

    • DatabaseName - Name of the Amazon Redshift database.
    • ClusterIdentifier - Unique ID for the Amazon Redshift cluster.

  • DatabaseCredentials - AWS Identity abd Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.

  • SelectSqlQuery - Query that is used to retrieve the observation data for the Datasource.

  • S3StagingLocation - Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Relational Database Service (Amazon RDS) using SelectSqlQuery is stored in this location.

  • DataSchemaUri - Amazon S3 location of the DataSchema.

  • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

  • DataRearrangement - A JSON string representing the splitting requirement of a Datasource.


    Sample - \"{\\\"randomSeed\\\":\\\"some-random-seed\\\", \\\"splitting\\\":{\\\"percentBegin\\\":10,\\\"percentEnd\\\":60}}\"

" } }, "RedshiftDatabase": { @@ -850,7 +850,7 @@ } }, "RedshiftMetadata": { - "base": "

Describes the DataSource details specific to Amazon Redshift.

", + "base": "

Describes the DataSource details specific to Amazon Redshift.

", "refs": { "DataSource$RedshiftMetadata": null, "GetDataSourceOutput$RedshiftMetadata": null @@ -880,7 +880,7 @@ "S3DataSpec": { "base": "

Describes the data specification of a DataSource.

", "refs": { - "CreateDataSourceFromS3Input$DataSpec": "

The data specification of a DataSource:

  • DataLocationS3 - Amazon Simple Storage Service (Amazon S3) location of the observation data.

  • DataSchemaLocationS3 - Amazon S3 location of the DataSchema.

  • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

  • DataRearrangement - A JSON string representing the splitting requirement of a Datasource.


    Sample - \"{\\\"splitting\\\":{\\\"percentBegin\\\":10,\\\"percentEnd\\\":60}}\"

" + "CreateDataSourceFromS3Input$DataSpec": "

The data specification of a DataSource:

  • DataLocationS3 - Amazon Simple Storage Service (Amazon S3) location of the observation data.

  • DataSchemaLocationS3 - Amazon S3 location of the DataSchema.

  • DataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.

  • DataRearrangement - A JSON string representing the splitting requirement of a Datasource.


    Sample - \"{\\\"randomSeed\\\":\\\"some-random-seed\\\", \\\"splitting\\\":{\\\"percentBegin\\\":10,\\\"percentEnd\\\":60}}\"

" } }, "S3Url": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/machinelearning/2014-12-12/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/machinelearning/2014-12-12/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mobileanalytics/2014-06-05/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/mobileanalytics/2014-06-05/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/mobileanalytics/2014-06-05/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/mobileanalytics/2014-06-05/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mobileanalytics/2014-06-05/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/mobileanalytics/2014-06-05/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/mobileanalytics/2014-06-05/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/mobileanalytics/2014-06-05/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/monitoring/2010-08-01/api-2.json similarity index 80% rename from vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/monitoring/2010-08-01/api-2.json index cbc0f069e..140aa715e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/monitoring/2010-08-01/api-2.json @@ -1,13 +1,12 @@ { - "version":"2.0", "metadata":{ "apiVersion":"2010-08-01", "endpointPrefix":"monitoring", - "protocol":"query", "serviceAbbreviation":"CloudWatch", "serviceFullName":"Amazon CloudWatch", "signatureVersion":"v4", - "xmlNamespace":"http://monitoring.amazonaws.com/doc/2010-08-01/" + "xmlNamespace":"http://monitoring.amazonaws.com/doc/2010-08-01/", + "protocol":"query" }, "operations":{ "DeleteAlarms":{ @@ -18,7 +17,15 @@ }, "input":{"shape":"DeleteAlarmsInput"}, "errors":[ - {"shape":"ResourceNotFound"} + { + "shape":"ResourceNotFound", + "error":{ + "code":"ResourceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeAlarmHistory":{ @@ -33,7 +40,15 @@ "resultWrapper":"DescribeAlarmHistoryResult" }, "errors":[ - {"shape":"InvalidNextToken"} + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeAlarms":{ @@ -48,7 +63,15 @@ "resultWrapper":"DescribeAlarmsResult" }, "errors":[ - {"shape":"InvalidNextToken"} + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeAlarmsForMetric":{ @@ -91,10 +114,42 @@ "resultWrapper":"GetMetricStatisticsResult" }, "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"MissingRequiredParameterException"}, - {"shape":"InvalidParameterCombinationException"}, - {"shape":"InternalServiceFault"} + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MissingRequiredParameterException", + "error":{ + "code":"MissingParameter", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InternalServiceFault", + "error":{ + "code":"InternalServiceError", + "httpStatusCode":500 + }, + "exception":true, + "xmlOrder":["Message"] + } ] }, "ListMetrics":{ @@ -106,11 +161,31 @@ "input":{"shape":"ListMetricsInput"}, "output":{ "shape":"ListMetricsOutput", + "xmlOrder":[ + "Metrics", + "NextToken" + ], "resultWrapper":"ListMetricsResult" }, "errors":[ - {"shape":"InternalServiceFault"}, - {"shape":"InvalidParameterValueException"} + { + "shape":"InternalServiceFault", + "error":{ + "code":"InternalServiceError", + "httpStatusCode":500 + }, + "exception":true, + "xmlOrder":["Message"] + }, + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "PutMetricAlarm":{ @@ -121,7 +196,15 @@ }, "input":{"shape":"PutMetricAlarmInput"}, "errors":[ - {"shape":"LimitExceededFault"} + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "PutMetricData":{ @@ -132,10 +215,42 @@ }, "input":{"shape":"PutMetricDataInput"}, "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"MissingRequiredParameterException"}, - {"shape":"InvalidParameterCombinationException"}, - {"shape":"InternalServiceFault"} + { + "shape":"InvalidParameterValueException", + "error":{ + "code":"InvalidParameterValue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MissingRequiredParameterException", + "error":{ + "code":"MissingParameter", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidParameterCombinationException", + "error":{ + "code":"InvalidParameterCombination", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InternalServiceFault", + "error":{ + "code":"InternalServiceError", + "httpStatusCode":500 + }, + "exception":true, + "xmlOrder":["Message"] + } ] }, "SetAlarmState":{ @@ -146,27 +261,43 @@ }, "input":{"shape":"SetAlarmStateInput"}, "errors":[ - {"shape":"ResourceNotFound"}, - {"shape":"InvalidFormatFault"} + { + "shape":"ResourceNotFound", + "error":{ + "code":"ResourceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidFormatFault", + "error":{ + "code":"InvalidFormat", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] } }, "shapes":{ "ActionPrefix":{ "type":"string", - "max":1024, - "min":1 + "min":1, + "max":1024 }, "ActionsEnabled":{"type":"boolean"}, "AlarmArn":{ "type":"string", - "max":1600, - "min":1 + "min":1, + "max":1600 }, "AlarmDescription":{ "type":"string", - "max":1024, - "min":0 + "min":0, + "max":255 }, "AlarmHistoryItem":{ "type":"structure", @@ -184,13 +315,13 @@ }, "AlarmName":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "AlarmNamePrefix":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "AlarmNames":{ "type":"list", @@ -327,13 +458,13 @@ }, "DimensionName":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "DimensionValue":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "Dimensions":{ "type":"list", @@ -356,8 +487,8 @@ }, "ErrorMessage":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "EvaluationPeriods":{ "type":"integer", @@ -394,8 +525,8 @@ }, "HistoryData":{ "type":"string", - "max":4095, - "min":1 + "min":1, + "max":4095 }, "HistoryItemType":{ "type":"string", @@ -407,8 +538,8 @@ }, "HistorySummary":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "InternalServiceFault":{ "type":"structure", @@ -504,8 +635,8 @@ }, "MaxRecords":{ "type":"integer", - "max":100, - "min":1 + "min":1, + "max":100 }, "Metric":{ "type":"structure", @@ -592,8 +723,8 @@ "MetricLabel":{"type":"string"}, "MetricName":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "Metrics":{ "type":"list", @@ -613,15 +744,11 @@ }, "Namespace":{ "type":"string", - "max":255, "min":1, + "max":255, "pattern":"[^:].*" }, - "NextToken":{ - "type":"string", - "max":1024, - "min":0 - }, + "NextToken":{"type":"string"}, "Period":{ "type":"integer", "min":60 @@ -674,8 +801,8 @@ }, "ResourceName":{ "type":"string", - "max":1024, - "min":1 + "min":1, + "max":1024 }, "ResourceNotFound":{ "type":"structure", @@ -737,13 +864,13 @@ }, "StateReason":{ "type":"string", - "max":1023, - "min":0 + "min":0, + "max":1023 }, "StateReasonData":{ "type":"string", - "max":4000, - "min":0 + "min":0, + "max":4000 }, "StateValue":{ "type":"string", @@ -781,8 +908,8 @@ "Statistics":{ "type":"list", "member":{"shape":"Statistic"}, - "max":5, - "min":1 + "min":1, + "max":5 }, "Threshold":{"type":"double"}, "Timestamp":{"type":"timestamp"} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/monitoring/2010-08-01/docs-2.json similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/monitoring/2010-08-01/docs-2.json index 5f8d03b84..dc54c5332 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/monitoring/2010-08-01/docs-2.json @@ -1,19 +1,18 @@ { - "version": "2.0", - "service": "

Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the applications you run on AWS in real-time. You can use CloudWatch to collect and track metrics, which are the variables you want to measure for your resources and applications.

CloudWatch alarms send notifications or automatically make changes to the resources you are monitoring based on rules that you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon Elastic Compute Cloud (Amazon EC2) instances and then use this data to determine whether you should launch additional instances to handle increased load. You can also use this data to stop under-used instances to save money.

In addition to monitoring the built-in metrics that come with AWS, you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility into resource utilization, application performance, and operational health.

", "operations": { "DeleteAlarms": "

Deletes all specified alarms. In the event of an error, no alarms are deleted.

", - "DescribeAlarmHistory": "

Retrieves history for the specified alarm. Filter alarms by date range or item type. If an alarm name is not specified, Amazon CloudWatch returns histories for all of the owner's alarms.

Amazon CloudWatch retains the history of an alarm for two weeks, whether or not you delete the alarm. ", + "DescribeAlarmHistory": "

Retrieves history for the specified alarm. Filter alarms by date range or item type. If an alarm name is not specified, Amazon CloudWatch returns histories for all of the owner's alarms.

", "DescribeAlarms": "

Retrieves alarms with the specified names. If no name is specified, all alarms for the user are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.

", "DescribeAlarmsForMetric": "

Retrieves all alarms for a single metric. Specify a statistic, period, or unit to filter the set of alarms further.

", "DisableAlarmActions": "

Disables actions for the specified alarms. When an alarm's actions are disabled the alarm's state may change, but none of the alarm's actions will execute.

", "EnableAlarmActions": "

Enables actions for the specified alarms.

", - "GetMetricStatistics": "

Gets statistics for the specified metric.

The maximum number of data points that can be queried is 50,850, whereas the maximum number of data points returned from a single GetMetricStatistics request is 1,440. If you make a request that generates more than 1,440 data points, Amazon CloudWatch returns an error. In such a case, you can alter the request by narrowing the specified time range or increasing the specified period. Alternatively, you can make multiple requests across adjacent time ranges. GetMetricStatistics does not return the data in chronological order.

Amazon CloudWatch aggregates data points based on the length of the period that you specify. For example, if you request statistics with a one-minute granularity, Amazon CloudWatch aggregates data points with time stamps that fall within the same one-minute period. In such a case, the data points queried can greatly outnumber the data points returned.

The following examples show various statistics allowed by the data point query maximum of 50,850 when you call GetMetricStatistics on Amazon EC2 instances with detailed (one-minute) monitoring enabled:

  • Statistics for up to 400 instances for a span of one hour
  • Statistics for up to 35 instances over a span of 24 hours
  • Statistics for up to 2 instances over a span of 2 weeks

For information about the namespace, metric names, and dimensions that other Amazon Web Services products use to send metrics to CloudWatch, go to Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference in the Amazon CloudWatch Developer Guide.

", - "ListMetrics": "

Returns a list of valid metrics stored for the AWS account owner. Returned metrics can be used with GetMetricStatistics to obtain statistical data for a given metric.

Up to 500 results are returned for any one call. To retrieve further results, use returned NextToken values with subsequent ListMetrics operations. If you create a metric with the PutMetricData action, allow up to fifteen minutes for the metric to appear in calls to the ListMetrics action. Statistics about the metric, however, are available sooner using GetMetricStatistics. ", - "PutMetricAlarm": "

Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon Simple Notification Service resources with the alarm.

When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is evaluated and its StateValue is set appropriately. Any actions associated with the StateValue is then executed.

When updating an existing alarm, its StateValue is left unchanged. If you are using an AWS Identity and Access Management (IAM) account to create or modify an alarm, you must have the following Amazon EC2 permissions:
  • ec2:DescribeInstanceStatus and ec2:DescribeInstances for all alarms on Amazon EC2 instance status metrics.
  • ec2:StopInstances for alarms with stop actions.
  • ec2:TerminateInstances for alarms with terminate actions.
  • ec2:DescribeInstanceRecoveryAttribute, and ec2:RecoverInstances for alarms with recover actions.

If you have read/write permissions for Amazon CloudWatch but not for Amazon EC2, you can still create an alarm but the stop or terminate actions won't be performed on the Amazon EC2 instance. However, if you are later granted permission to use the associated Amazon EC2 APIs, the alarm actions you created earlier will be performed. For more information about IAM permissions, see Permissions and Policies in Using IAM.

If you are using an IAM role (e.g., an Amazon EC2 instance profile), you cannot stop or terminate the instance using alarm actions. However, you can still see the alarm state and perform any other actions such as Amazon SNS notifications or Auto Scaling policies.

If you are using temporary security credentials granted using the AWS Security Token Service (AWS STS), you cannot stop or terminate an Amazon EC2 instance using alarm actions.

", - "PutMetricData": "

Publishes metric data points to Amazon CloudWatch. Amazon CloudWatch associates the data points with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates the metric. When Amazon CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to the ListMetrics action.

Each PutMetricData request is limited to 8 KB in size for HTTP GET requests and is limited to 40 KB in size for HTTP POST requests.

Although the Value parameter accepts numbers of type Double, Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are not supported.

Data that is timestamped 24 hours or more in the past may take in excess of 48 hours to become available from submission time using GetMetricStatistics.

", - "SetAlarmState": "

Temporarily sets the state of an alarm. When the updated StateValue differs from the previous value, the action configured for the appropriate state is invoked. For example, if your alarm is configured to send an Amazon SNS message when an alarm is triggered, temporarily changing the alarm's state to ALARM will send an Amazon SNS message. This is not a permanent change. The next periodic alarm check (in about a minute) will set the alarm to its actual state. Because the alarm state change happens very quickly, it is typically only visibile in the alarm's History tab in the Amazon CloudWatch console or through DescribeAlarmHistory.

" + "GetMetricStatistics": "

Gets statistics for the specified metric.

The maximum number of data points returned from a single GetMetricStatistics request is 1,440, wereas the maximum number of data points that can be queried is 50,850. If you make a request that generates more than 1,440 data points, Amazon CloudWatch returns an error. In such a case, you can alter the request by narrowing the specified time range or increasing the specified period. Alternatively, you can make multiple requests across adjacent time ranges.

Amazon CloudWatch aggregates data points based on the length of the period that you specify. For example, if you request statistics with a one-minute granularity, Amazon CloudWatch aggregates data points with time stamps that fall within the same one-minute period. In such a case, the data points queried can greatly outnumber the data points returned.

The following examples show various statistics allowed by the data point query maximum of 50,850 when you call GetMetricStatistics on Amazon EC2 instances with detailed (one-minute) monitoring enabled:

  • Statistics for up to 400 instances for a span of one hour
  • Statistics for up to 35 instances over a span of 24 hours
  • Statistics for up to 2 instances over a span of 2 weeks

For information about the namespace, metric names, and dimensions that other Amazon Web Services products use to send metrics to Cloudwatch, go to Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference in the Amazon CloudWatch Developer Guide.

", + "ListMetrics": "

Returns a list of valid metrics stored for the AWS account owner. Returned metrics can be used with GetMetricStatistics to obtain statistical data for a given metric.

", + "PutMetricAlarm": "

Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon Simple Notification Service resources with the alarm.

When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is evaluated and its StateValue is set appropriately. Any actions associated with the StateValue is then executed.

", + "PutMetricData": "

Publishes metric data points to Amazon CloudWatch. Amazon Cloudwatch associates the data points with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates the metric. It can take up to fifteen minutes for a new metric to appear in calls to the ListMetrics action.

The size of a PutMetricData request is limited to 8 KB for HTTP GET requests and 40 KB for HTTP POST requests.

Although the Value parameter accepts numbers of type Double, Amazon CloudWatch truncates values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 exponents less than -130 (1 x 10^-130) are also truncated.

Data that is timestamped 24 hours or more in the past may take in excess of 48 hours to become available from submission time using GetMetricStatistics.

", + "SetAlarmState": "

Temporarily sets the state of an alarm. When the updated StateValue differs from the previous value, the action configured for the appropriate state is invoked. This is not a permanent change. The next periodic alarm check (in about a minute) will set the alarm to its actual state.

" }, + "service": "

This is the Amazon CloudWatch API Reference. This guide provides detailed information about Amazon CloudWatch actions, data types, parameters, and errors. For detailed information about Amazon CloudWatch features and their associated API calls, go to the Amazon CloudWatch Developer Guide.

Amazon CloudWatch is a web service that enables you to publish, monitor, and manage various metrics, as well as configure alarm actions based on data from metrics. For more information about this product go to http://aws.amazon.com/cloudwatch.

For information about the namespace, metric names, and dimensions that other Amazon Web Services products use to send metrics to Cloudwatch, go to Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference in the Amazon CloudWatch Developer Guide.

Use the following links to get started using the Amazon CloudWatch API Reference:

  • Actions: An alphabetical list of all Amazon CloudWatch actions.
  • Data Types: An alphabetical list of all Amazon CloudWatch data types.
  • Common Parameters: Parameters that all Query actions can use.
  • Common Errors: Client and server errors that all actions can return.
  • Regions and Endpoints: Itemized regions and endpoints for all AWS products.
  • WSDL Location: http://monitoring.amazonaws.com/doc/2010-08-01/CloudWatch.wsdl

In addition to using the Amazon CloudWatch API, you can also use the following SDKs and third-party libraries to access Amazon CloudWatch programmatically.

Developers in the AWS developer community also provide their own libraries, which you can find at the following AWS developer centers:

", "shapes": { "ActionPrefix": { "base": null, @@ -42,7 +41,7 @@ } }, "AlarmHistoryItem": { - "base": "

The AlarmHistoryItem data type contains descriptive information about the history of a specific alarm. If you call DescribeAlarmHistory, Amazon CloudWatch returns this data type as part of the DescribeAlarmHistoryResult data type.

", + "base": "

The AlarmHistoryItem data type contains descriptive information about the history of a specific alarm. If you call DescribeAlarmHistory, Amazon CloudWatch returns this data type as part of the DescribeAlarmHistoryResult data type.

", "refs": { "AlarmHistoryItems$member": null } @@ -82,9 +81,9 @@ "AwsQueryErrorMessage": { "base": null, "refs": { - "InvalidParameterCombinationException$message": "

", - "InvalidParameterValueException$message": "

", - "MissingRequiredParameterException$message": "

" + "InvalidParameterCombinationException$message": "

", + "InvalidParameterValueException$message": "

", + "MissingRequiredParameterException$message": "

" } }, "ComparisonOperator": { @@ -108,7 +107,7 @@ "Datapoint$Sum": "

The sum of metric values used for the datapoint.

", "Datapoint$Minimum": "

The minimum metric value used for the datapoint.

", "Datapoint$Maximum": "

The maximum of the metric value used for the datapoint.

", - "MetricDatum$Value": "

The value for the metric.

Although the Value parameter accepts numbers of type Double, Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are not supported. ", + "MetricDatum$Value": "

The value for the metric.

Although the Value parameter accepts numbers of type Double, Amazon CloudWatch truncates values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 exponents less than -130 (1 x 10^-130) are also truncated. ", "StatisticSet$SampleCount": "

The number of samples used for the statistic set.

", "StatisticSet$Sum": "

The sum of values for the sample set.

", "StatisticSet$Minimum": "

The minimum value of the sample set.

", @@ -185,13 +184,13 @@ "base": null, "refs": { "Dimension$Value": "

The value representing the dimension measurement

", - "DimensionFilter$Value": "

The value of the dimension to be matched.

Specifying a Name without specifying a Value returns all values associated with that Name. " + "DimensionFilter$Value": "

The value of the dimension to be matched.

" } }, "Dimensions": { "base": null, "refs": { - "DescribeAlarmsForMetricInput$Dimensions": "

The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.

", + "DescribeAlarmsForMetricInput$Dimensions": "

The list of dimensions associated with the metric.

", "GetMetricStatisticsInput$Dimensions": "

A list of dimensions describing qualities of the metric.

", "Metric$Dimensions": "

A list of dimensions associated with the metric.

", "MetricAlarm$Dimensions": "

The list of dimensions associated with the alarm's associated metric.

", @@ -212,10 +211,10 @@ "ErrorMessage": { "base": null, "refs": { - "InvalidFormatFault$message": "

", - "InvalidNextToken$message": "

", - "LimitExceededFault$message": "

", - "ResourceNotFound$message": "

" + "InvalidFormatFault$message": "

", + "InvalidNextToken$message": "

", + "LimitExceededFault$message": "

", + "ResourceNotFound$message": "

" } }, "EvaluationPeriods": { @@ -228,7 +227,7 @@ "FaultDescription": { "base": null, "refs": { - "InternalServiceFault$Message": "

" + "InternalServiceFault$Message": "

" } }, "GetMetricStatisticsInput": { @@ -376,7 +375,7 @@ "Metric$Namespace": "

The namespace of the metric.

", "MetricAlarm$Namespace": "

The namespace of alarm's associated metric.

", "PutMetricAlarmInput$Namespace": "

The namespace for the alarm's associated metric.

", - "PutMetricDataInput$Namespace": "

The namespace for the metric data.

You cannot specify a namespace that begins with \"AWS/\". Namespaces that begin with \"AWS/\" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch. " + "PutMetricDataInput$Namespace": "

The namespace for the metric data.

" } }, "NextToken": { @@ -412,12 +411,12 @@ "ResourceList": { "base": null, "refs": { - "MetricAlarm$OKActions": "

The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

", - "MetricAlarm$AlarmActions": "

The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

", - "MetricAlarm$InsufficientDataActions": "

The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

The current WSDL lists this attribute as UnknownActions.", - "PutMetricAlarmInput$OKActions": "

The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover

Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0

Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.

", - "PutMetricAlarmInput$AlarmActions": "

The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover

Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0

Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.

", - "PutMetricAlarmInput$InsufficientDataActions": "

The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover

Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0

Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.

" + "MetricAlarm$OKActions": "

The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

", + "MetricAlarm$AlarmActions": "

The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic and triggering an Auto Scaling policy.

", + "MetricAlarm$InsufficientDataActions": "

The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only actions supported are publishing to an Amazon SNS topic or triggering an Auto Scaling policy.

The current WSDL lists this attribute as UnknownActions.", + "PutMetricAlarmInput$OKActions": "

The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only action supported is publishing to an Amazon SNS topic or an Amazon Auto Scaling policy.

", + "PutMetricAlarmInput$AlarmActions": "

The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only action supported is publishing to an Amazon SNS topic or an Amazon Auto Scaling policy.

", + "PutMetricAlarmInput$InsufficientDataActions": "

The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Number (ARN). Currently the only action supported is publishing to an Amazon SNS topic or an Amazon Auto Scaling policy.

" } }, "ResourceName": { @@ -444,7 +443,7 @@ "GetMetricStatisticsInput$Unit": "

The unit for the metric.

", "MetricAlarm$Unit": "

The unit of the alarm's associated metric.

", "MetricDatum$Unit": "

The unit of the metric.

", - "PutMetricAlarmInput$Unit": "

The statistic's unit of measure. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.

Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.

" + "PutMetricAlarmInput$Unit": "

The unit for the alarm's associated metric.

" } }, "StateReason": { @@ -487,7 +486,7 @@ "Statistics": { "base": null, "refs": { - "GetMetricStatisticsInput$Statistics": "

The metric statistics to return. For information about specific statistics returned by GetMetricStatistics, see Statistics in the Amazon CloudWatch Developer Guide.

" + "GetMetricStatisticsInput$Statistics": "

The metric statistics to return. For information about specific statistics returned by GetMetricStatistics, go to Statistics in the Amazon CloudWatch Developer Guide.

Valid Values: Average | Sum | SampleCount | Maximum | Minimum

" } }, "Threshold": { @@ -500,15 +499,15 @@ "Timestamp": { "base": null, "refs": { - "AlarmHistoryItem$Timestamp": "

The time stamp for the alarm history item.

", - "Datapoint$Timestamp": "

The time stamp used for the datapoint.

", + "AlarmHistoryItem$Timestamp": "

The time stamp for the alarm history item. Amazon CloudWatch uses Coordinated Universal Time (UTC) when returning time stamps, which do not accommodate seasonal adjustments such as daylight savings time. For more information, see Time stamps in the Amazon CloudWatch Developer Guide.

", + "Datapoint$Timestamp": "

The time stamp used for the datapoint. Amazon CloudWatch uses Coordinated Universal Time (UTC) when returning time stamps, which do not accommodate seasonal adjustments such as daylight savings time. For more information, see Time stamps in the Amazon CloudWatch Developer Guide.

", "DescribeAlarmHistoryInput$StartDate": "

The starting date to retrieve alarm history.

", "DescribeAlarmHistoryInput$EndDate": "

The ending date to retrieve alarm history.

", - "GetMetricStatisticsInput$StartTime": "

The time stamp to use for determining the first datapoint to return. The value specified is inclusive; results include datapoints with the time stamp specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z).

The specified start time is rounded down to the nearest value. Datapoints are returned for start times up to two weeks in the past. Specified start times that are more than two weeks in the past will not return datapoints for metrics that are older than two weeks.

Data that is timestamped 24 hours or more in the past may take in excess of 48 hours to become available from submission time using GetMetricStatistics.

", - "GetMetricStatisticsInput$EndTime": "

The time stamp to use for determining the last datapoint to return. The value specified is exclusive; results will include datapoints up to the time stamp specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z).

", - "MetricAlarm$AlarmConfigurationUpdatedTimestamp": "

The time stamp of the last update to the alarm configuration.

", - "MetricAlarm$StateUpdatedTimestamp": "

The time stamp of the last update to the alarm's state.

", - "MetricDatum$Timestamp": "

The time stamp used for the metric in ISO 8601 Universal Coordinated Time (UTC) format. If not specified, the default value is set to the time the metric data was received.

" + "GetMetricStatisticsInput$StartTime": "

The time stamp to use for determining the first datapoint to return. The value specified is inclusive; results include datapoints with the time stamp specified.

", + "GetMetricStatisticsInput$EndTime": "

The time stamp to use for determining the last datapoint to return. The value specified is exclusive; results will include datapoints up to the time stamp specified.

", + "MetricAlarm$AlarmConfigurationUpdatedTimestamp": "

The time stamp of the last update to the alarm configuration. Amazon CloudWatch uses Coordinated Universal Time (UTC) when returning time stamps, which do not accommodate seasonal adjustments such as daylight savings time. For more information, see Time stamps in the Amazon CloudWatch Developer Guide.

", + "MetricAlarm$StateUpdatedTimestamp": "

The time stamp of the last update to the alarm's state. Amazon CloudWatch uses Coordinated Universal Time (UTC) when returning time stamps, which do not accommodate seasonal adjustments such as daylight savings time. For more information, see Time stamps in the Amazon CloudWatch Developer Guide.

", + "MetricDatum$Timestamp": "

The time stamp used for the metric. If not specified, the default value is set to the time the metric data was received. Amazon CloudWatch uses Coordinated Universal Time (UTC) when returning time stamps, which do not accommodate seasonal adjustments such as daylight savings time. For more information, see Time stamps in the Amazon CloudWatch Developer Guide.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/monitoring/2010-08-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/monitoring/2010-08-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/api-2.json similarity index 83% rename from vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/api-2.json index 931d1680e..124830319 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/api-2.json @@ -4,10 +4,10 @@ "apiVersion":"2013-02-18", "endpointPrefix":"opsworks", "jsonVersion":"1.1", - "protocol":"json", "serviceFullName":"AWS OpsWorks", "signatureVersion":"v4", - "targetPrefix":"OpsWorks_20130218" + "targetPrefix":"OpsWorks_20130218", + "protocol":"json" }, "operations":{ "AssignInstance":{ @@ -18,8 +18,14 @@ }, "input":{"shape":"AssignInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "AssignVolume":{ @@ -30,8 +36,14 @@ }, "input":{"shape":"AssignVolumeRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "AssociateElasticIp":{ @@ -42,8 +54,14 @@ }, "input":{"shape":"AssociateElasticIpRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "AttachElasticLoadBalancer":{ @@ -54,8 +72,14 @@ }, "input":{"shape":"AttachElasticLoadBalancerRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "CloneStack":{ @@ -67,8 +91,14 @@ "input":{"shape":"CloneStackRequest"}, "output":{"shape":"CloneStackResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "CreateApp":{ @@ -80,8 +110,14 @@ "input":{"shape":"CreateAppRequest"}, "output":{"shape":"CreateAppResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "CreateDeployment":{ @@ -93,8 +129,14 @@ "input":{"shape":"CreateDeploymentRequest"}, "output":{"shape":"CreateDeploymentResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "CreateInstance":{ @@ -106,8 +148,14 @@ "input":{"shape":"CreateInstanceRequest"}, "output":{"shape":"CreateInstanceResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "CreateLayer":{ @@ -119,8 +167,14 @@ "input":{"shape":"CreateLayerRequest"}, "output":{"shape":"CreateLayerResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "CreateStack":{ @@ -132,7 +186,10 @@ "input":{"shape":"CreateStackRequest"}, "output":{"shape":"CreateStackResult"}, "errors":[ - {"shape":"ValidationException"} + { + "shape":"ValidationException", + "exception":true + } ] }, "CreateUserProfile":{ @@ -144,7 +201,10 @@ "input":{"shape":"CreateUserProfileRequest"}, "output":{"shape":"CreateUserProfileResult"}, "errors":[ - {"shape":"ValidationException"} + { + "shape":"ValidationException", + "exception":true + } ] }, "DeleteApp":{ @@ -155,8 +215,14 @@ }, "input":{"shape":"DeleteAppRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DeleteInstance":{ @@ -167,8 +233,14 @@ }, "input":{"shape":"DeleteInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DeleteLayer":{ @@ -179,8 +251,14 @@ }, "input":{"shape":"DeleteLayerRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DeleteStack":{ @@ -191,8 +269,14 @@ }, "input":{"shape":"DeleteStackRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DeleteUserProfile":{ @@ -203,8 +287,14 @@ }, "input":{"shape":"DeleteUserProfileRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DeregisterEcsCluster":{ @@ -215,8 +305,14 @@ }, "input":{"shape":"DeregisterEcsClusterRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DeregisterElasticIp":{ @@ -227,8 +323,14 @@ }, "input":{"shape":"DeregisterElasticIpRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DeregisterInstance":{ @@ -239,8 +341,14 @@ }, "input":{"shape":"DeregisterInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DeregisterRdsDbInstance":{ @@ -251,8 +359,14 @@ }, "input":{"shape":"DeregisterRdsDbInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DeregisterVolume":{ @@ -263,8 +377,14 @@ }, "input":{"shape":"DeregisterVolumeRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeAgentVersions":{ @@ -276,8 +396,14 @@ "input":{"shape":"DescribeAgentVersionsRequest"}, "output":{"shape":"DescribeAgentVersionsResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeApps":{ @@ -289,8 +415,14 @@ "input":{"shape":"DescribeAppsRequest"}, "output":{"shape":"DescribeAppsResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeCommands":{ @@ -302,8 +434,14 @@ "input":{"shape":"DescribeCommandsRequest"}, "output":{"shape":"DescribeCommandsResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeDeployments":{ @@ -315,8 +453,14 @@ "input":{"shape":"DescribeDeploymentsRequest"}, "output":{"shape":"DescribeDeploymentsResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeEcsClusters":{ @@ -328,8 +472,14 @@ "input":{"shape":"DescribeEcsClustersRequest"}, "output":{"shape":"DescribeEcsClustersResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeElasticIps":{ @@ -341,8 +491,14 @@ "input":{"shape":"DescribeElasticIpsRequest"}, "output":{"shape":"DescribeElasticIpsResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeElasticLoadBalancers":{ @@ -354,8 +510,14 @@ "input":{"shape":"DescribeElasticLoadBalancersRequest"}, "output":{"shape":"DescribeElasticLoadBalancersResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeInstances":{ @@ -367,8 +529,14 @@ "input":{"shape":"DescribeInstancesRequest"}, "output":{"shape":"DescribeInstancesResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeLayers":{ @@ -380,8 +548,14 @@ "input":{"shape":"DescribeLayersRequest"}, "output":{"shape":"DescribeLayersResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeLoadBasedAutoScaling":{ @@ -393,8 +567,14 @@ "input":{"shape":"DescribeLoadBasedAutoScalingRequest"}, "output":{"shape":"DescribeLoadBasedAutoScalingResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeMyUserProfile":{ @@ -414,8 +594,14 @@ "input":{"shape":"DescribePermissionsRequest"}, "output":{"shape":"DescribePermissionsResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeRaidArrays":{ @@ -427,8 +613,14 @@ "input":{"shape":"DescribeRaidArraysRequest"}, "output":{"shape":"DescribeRaidArraysResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeRdsDbInstances":{ @@ -440,8 +632,14 @@ "input":{"shape":"DescribeRdsDbInstancesRequest"}, "output":{"shape":"DescribeRdsDbInstancesResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeServiceErrors":{ @@ -453,8 +651,14 @@ "input":{"shape":"DescribeServiceErrorsRequest"}, "output":{"shape":"DescribeServiceErrorsResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeStackProvisioningParameters":{ @@ -466,8 +670,14 @@ "input":{"shape":"DescribeStackProvisioningParametersRequest"}, "output":{"shape":"DescribeStackProvisioningParametersResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeStackSummary":{ @@ -479,8 +689,14 @@ "input":{"shape":"DescribeStackSummaryRequest"}, "output":{"shape":"DescribeStackSummaryResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeStacks":{ @@ -492,8 +708,14 @@ "input":{"shape":"DescribeStacksRequest"}, "output":{"shape":"DescribeStacksResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeTimeBasedAutoScaling":{ @@ -505,8 +727,14 @@ "input":{"shape":"DescribeTimeBasedAutoScalingRequest"}, "output":{"shape":"DescribeTimeBasedAutoScalingResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeUserProfiles":{ @@ -518,8 +746,14 @@ "input":{"shape":"DescribeUserProfilesRequest"}, "output":{"shape":"DescribeUserProfilesResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DescribeVolumes":{ @@ -531,8 +765,14 @@ "input":{"shape":"DescribeVolumesRequest"}, "output":{"shape":"DescribeVolumesResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DetachElasticLoadBalancer":{ @@ -543,7 +783,10 @@ }, "input":{"shape":"DetachElasticLoadBalancerRequest"}, "errors":[ - {"shape":"ResourceNotFoundException"} + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "DisassociateElasticIp":{ @@ -554,8 +797,14 @@ }, "input":{"shape":"DisassociateElasticIpRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "GetHostnameSuggestion":{ @@ -567,8 +816,14 @@ "input":{"shape":"GetHostnameSuggestionRequest"}, "output":{"shape":"GetHostnameSuggestionResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "GrantAccess":{ @@ -580,8 +835,14 @@ "input":{"shape":"GrantAccessRequest"}, "output":{"shape":"GrantAccessResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "RebootInstance":{ @@ -592,8 +853,14 @@ }, "input":{"shape":"RebootInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "RegisterEcsCluster":{ @@ -605,8 +872,14 @@ "input":{"shape":"RegisterEcsClusterRequest"}, "output":{"shape":"RegisterEcsClusterResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "RegisterElasticIp":{ @@ -618,8 +891,14 @@ "input":{"shape":"RegisterElasticIpRequest"}, "output":{"shape":"RegisterElasticIpResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "RegisterInstance":{ @@ -631,8 +910,14 @@ "input":{"shape":"RegisterInstanceRequest"}, "output":{"shape":"RegisterInstanceResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "RegisterRdsDbInstance":{ @@ -643,8 +928,14 @@ }, "input":{"shape":"RegisterRdsDbInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "RegisterVolume":{ @@ -656,8 +947,14 @@ "input":{"shape":"RegisterVolumeRequest"}, "output":{"shape":"RegisterVolumeResult"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "SetLoadBasedAutoScaling":{ @@ -668,8 +965,14 @@ }, "input":{"shape":"SetLoadBasedAutoScalingRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "SetPermission":{ @@ -680,8 +983,14 @@ }, "input":{"shape":"SetPermissionRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "SetTimeBasedAutoScaling":{ @@ -692,8 +1001,14 @@ }, "input":{"shape":"SetTimeBasedAutoScalingRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "StartInstance":{ @@ -704,8 +1019,14 @@ }, "input":{"shape":"StartInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "StartStack":{ @@ -716,8 +1037,14 @@ }, "input":{"shape":"StartStackRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "StopInstance":{ @@ -728,8 +1055,14 @@ }, "input":{"shape":"StopInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "StopStack":{ @@ -740,8 +1073,14 @@ }, "input":{"shape":"StopStackRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "UnassignInstance":{ @@ -752,8 +1091,14 @@ }, "input":{"shape":"UnassignInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "UnassignVolume":{ @@ -764,8 +1109,14 @@ }, "input":{"shape":"UnassignVolumeRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "UpdateApp":{ @@ -776,8 +1127,14 @@ }, "input":{"shape":"UpdateAppRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "UpdateElasticIp":{ @@ -788,8 +1145,14 @@ }, "input":{"shape":"UpdateElasticIpRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "UpdateInstance":{ @@ -800,8 +1163,14 @@ }, "input":{"shape":"UpdateInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "UpdateLayer":{ @@ -812,8 +1181,14 @@ }, "input":{"shape":"UpdateLayerRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "UpdateMyUserProfile":{ @@ -824,7 +1199,10 @@ }, "input":{"shape":"UpdateMyUserProfileRequest"}, "errors":[ - {"shape":"ValidationException"} + { + "shape":"ValidationException", + "exception":true + } ] }, "UpdateRdsDbInstance":{ @@ -835,8 +1213,14 @@ }, "input":{"shape":"UpdateRdsDbInstanceRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "UpdateStack":{ @@ -847,8 +1231,14 @@ }, "input":{"shape":"UpdateStackRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "UpdateUserProfile":{ @@ -859,8 +1249,14 @@ }, "input":{"shape":"UpdateUserProfileRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] }, "UpdateVolume":{ @@ -871,8 +1267,14 @@ }, "input":{"shape":"UpdateVolumeRequest"}, "errors":[ - {"shape":"ValidationException"}, - {"shape":"ResourceNotFoundException"} + { + "shape":"ValidationException", + "exception":true + }, + { + "shape":"ResourceNotFoundException", + "exception":true + } ] } }, @@ -1119,7 +1521,6 @@ "StackId":{"shape":"String"}, "AppId":{"shape":"String"}, "InstanceIds":{"shape":"Strings"}, - "LayerIds":{"shape":"Strings"}, "Command":{"shape":"DeploymentCommand"}, "Comment":{"shape":"String"}, "CustomJson":{"shape":"String"} @@ -1155,8 +1556,7 @@ "BlockDeviceMappings":{"shape":"BlockDeviceMappings"}, "InstallUpdatesOnBoot":{"shape":"Boolean"}, "EbsOptimized":{"shape":"Boolean"}, - "AgentVersion":{"shape":"String"}, - "Tenancy":{"shape":"String"} + "AgentVersion":{"shape":"String"} } }, "CreateInstanceResult":{ @@ -1832,7 +2232,6 @@ "StackId":{"shape":"String"}, "Status":{"shape":"String"}, "SubnetId":{"shape":"String"}, - "Tenancy":{"shape":"String"}, "VirtualizationType":{"shape":"VirtualizationType"} } }, @@ -1978,9 +2377,9 @@ }, "Minute":{ "type":"integer", - "box":true, + "min":1, "max":100, - "min":1 + "box":true }, "Parameters":{ "type":"map", @@ -2522,9 +2921,9 @@ }, "ValidForInMinutes":{ "type":"integer", - "box":true, + "min":60, "max":1440, - "min":60 + "box":true }, "ValidationException":{ "type":"structure", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/docs-2.json similarity index 93% rename from vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/docs-2.json index 7574b3cac..d38f446b3 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/docs-2.json @@ -1,6 +1,5 @@ { "version": "2.0", - "service": "AWS OpsWorks

Welcome to the AWS OpsWorks API Reference. This guide provides descriptions, syntax, and usage examples about AWS OpsWorks actions and data types, including common parameters and error codes.

AWS OpsWorks is an application management service that provides an integrated experience for overseeing the complete application lifecycle. For information about this product, go to the AWS OpsWorks details page.

SDKs and CLI

The most common way to use the AWS OpsWorks API is by using the AWS Command Line Interface (CLI) or by using one of the AWS SDKs to implement applications in your preferred language. For more information, see:

Endpoints

AWS OpsWorks supports only one endpoint, opsworks.us-east-1.amazonaws.com (HTTPS), so you must connect to that endpoint. You can then use the API to direct AWS OpsWorks to create stacks in any AWS Region.

Chef Versions

When you call CreateStack, CloneStack, or UpdateStack we recommend you use the ConfigurationManager parameter to specify the Chef version. The recommended value for Linux stacks is currently 12 (the default is 11.4). Windows stacks use Chef 12.2. For more information, see Chef Versions.

You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend migrating your existing Linux stacks to Chef 12 as soon as possible.", "operations": { "AssignInstance": "

Assign a registered instance to a layer.

  • You can assign registered on-premises instances to any layer type.
  • You can assign registered Amazon EC2 instances only to custom layers.
  • You cannot use this action with instances that were created with AWS OpsWorks.

Required Permissions: To use this action, an AWS Identity and Access Management (IAM) user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

", "AssignVolume": "

Assigns one of the stack's registered Amazon EBS volumes to a specified instance. The volume must first be registered with the stack by calling RegisterVolume. After you register the volume, you must call UpdateVolume to specify a mount point before calling AssignVolume. For more information, see Resource Management.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

", @@ -18,7 +17,7 @@ "DeleteLayer": "

Deletes a specified layer. You must first stop and then delete all associated instances or unassign registered instances. For more information, see How to Delete a Layer.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

", "DeleteStack": "

Deletes a specified stack. You must first delete all instances, layers, and apps or deregister registered instances. For more information, see Shut Down a Stack.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

", "DeleteUserProfile": "

Deletes a user profile.

Required Permissions: To use this action, an IAM user must have an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

", - "DeregisterEcsCluster": "

Deregisters a specified Amazon ECS cluster from a stack. For more information, see Resource Management.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see .

", + "DeregisterEcsCluster": "

Deregisters a specified Amazon ECS cluster from a stack. For more information, see Resource Management.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see .

", "DeregisterElasticIp": "

Deregisters a specified Elastic IP address. The address can then be registered by another stack. For more information, see Resource Management.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

", "DeregisterInstance": "

Deregister a registered Amazon EC2 or on-premises instance. This action removes the instance from the stack and returns it to your control. This action can not be used with instances that were created with AWS OpsWorks.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

", "DeregisterRdsDbInstance": "

Deregisters an Amazon RDS instance.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

", @@ -73,6 +72,7 @@ "UpdateUserProfile": "

Updates a specified user profile.

Required Permissions: To use this action, an IAM user must have an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

", "UpdateVolume": "

Updates an Amazon EBS volume's name or mount point. For more information, see Resource Management.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

" }, + "service": "AWS OpsWorks

Welcome to the AWS OpsWorks API Reference. This guide provides descriptions, syntax, and usage examples about AWS OpsWorks actions and data types, including common parameters and error codes.

AWS OpsWorks is an application management service that provides an integrated experience for overseeing the complete application lifecycle. For information about this product, go to the AWS OpsWorks details page.

SDKs and CLI

The most common way to use the AWS OpsWorks API is by using the AWS Command Line Interface (CLI) or by using one of the AWS SDKs to implement applications in your preferred language. For more information, see:

Endpoints

AWS OpsWorks supports only one endpoint, opsworks.us-east-1.amazonaws.com (HTTPS), so you must connect to that endpoint. You can then use the API to direct AWS OpsWorks to create stacks in any AWS Region.

Chef Versions

When you call CreateStack, CloneStack, or UpdateStack we recommend you use the ConfigurationManager parameter to specify the Chef version. The recommended value for Linux stacks, which is also the default value, is currently 11.10. Windows stacks use Chef 12.2. For more information, see Chef Versions.

You can also specify Chef 11.4 or Chef 0.9 for your Linux stack. However, Chef 0.9 has been deprecated. We do not recommend using Chef 0.9 for new stacks, and we recommend migrating your existing Chef 0.9 stacks to Chef 11.10 as soon as possible.", "shapes": { "AgentVersion": { "base": "

Describes an agent version.

", @@ -174,7 +174,7 @@ "BlockDeviceMappings": { "base": null, "refs": { - "CreateInstanceRequest$BlockDeviceMappings": "

An array of BlockDeviceMapping objects that specify the instance's block devices. For more information, see Block Device Mapping. Note that block device mappings are not supported for custom AMIs.

", + "CreateInstanceRequest$BlockDeviceMappings": "

An array of BlockDeviceMapping objects that specify the instance's block devices. For more information, see Block Device Mapping.

", "Instance$BlockDeviceMappings": "

An array of BlockDeviceMapping objects that specify the instance's block device mappings.

" } }, @@ -406,13 +406,13 @@ "DeploymentCommandArgs": { "base": null, "refs": { - "DeploymentCommand$Args": "

The arguments of those commands that take arguments. It should be set to a JSON object with the following format:

{\"arg_name1\" : [\"value1\", \"value2\", ...], \"arg_name2\" : [\"value1\", \"value2\", ...], ...}

The update_dependencies command takes two arguments:

  • upgrade_os_to - Specifies the desired Amazon Linux version for instances whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also set the allow_reboot argument to true.
  • allow_reboot - Specifies whether to allow AWS OpsWorks to reboot the instances if necessary, after installing the updates. This argument can be set to either true or false. The default value is false.

For example, to upgrade an instance to Amazon Linux 2014.09, set Args to the following.

{ \"upgrade_os_to\":[\"Amazon Linux 2014.09\"], \"allow_reboot\":[\"true\"] } " + "DeploymentCommand$Args": "

The arguments of those commands that take arguments. It should be set to a JSON object with the following format:

{\"arg_name1\" : [\"value1\", \"value2\", ...], \"arg_name2\" : [\"value1\", \"value2\", ...], ...}

The update_dependencies command takes two arguments:

  • upgrade_os_to - Specifies the desired Amazon Linux version for instances whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also set the allow_reboot argument to true.
  • allow_reboot - Specifies whether to allow AWS OpsWorks to reboot the instances if necessary, after installing the updates. This argument can be set to either true or false. The default value is false.

For example, to upgrade an instance to Amazon Linux 2014.09, set Args to the following.

{ \"upgrade_os_to\":[\"Amazon Linux 2014.09\"], \"allow_reboot\":[\"true\"] } " } }, "DeploymentCommandName": { "base": null, "refs": { - "DeploymentCommand$Name": "

Specifies the operation. You can specify only one command.

For stacks, the following commands are available:

  • execute_recipes: Execute one or more recipes. To specify the recipes, set an Args parameter named recipes to the list of recipes to be executed. For example, to execute phpapp::appsetup, set Args to {\"recipes\":[\"phpapp::appsetup\"]}.
  • install_dependencies: Install the stack's dependencies.
  • update_custom_cookbooks: Update the stack's custom cookbooks.
  • update_dependencies: Update the stack's dependencies.
The update_dependencies and install_dependencies commands are supported only for Linux instances. You can run the commands successfully on Windows instances, but they do nothing.

For apps, the following commands are available:

  • deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter named migrate. Set Args to {\"migrate\":[\"true\"]} to migrate the database. The default setting is {\"migrate\":[\"false\"]}.
  • rollback Roll the app back to the previous version. When you update an app, AWS OpsWorks stores the previous version, up to a maximum of five versions. You can use this command to roll an app back as many as four versions.
  • start: Start the app's web or application server.
  • stop: Stop the app's web or application server.
  • restart: Restart the app's web or application server.
  • undeploy: Undeploy the app.
" + "DeploymentCommand$Name": "

Specifies the operation. You can specify only one command.

For stacks, the following commands are available:

  • execute_recipes: Execute one or more recipes. To specify the recipes, set an Args parameter named recipes to the list of recipes to be executed. For example, to execute phpapp::appsetup, set Args to {\"recipes\":[\"phpapp::appsetup\"]}.
  • install_dependencies: Install the stack's dependencies.
  • update_custom_cookbooks: Update the stack's custom cookbooks.
  • update_dependencies: Update the stack's dependencies.
The update_dependencies and install_dependencies commands are supported only for Linux instances. You can run the commands successfully on Windows instances, but they do nothing.

For apps, the following commands are available:

  • deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter named migrate. Set Args to {\"migrate\":[\"true\"]} to migrate the database. The default setting is {\"migrate\":[\"false\"]}.
  • rollback Roll the app back to the previous version. When you update an app, AWS OpsWorks stores the previous version, up to a maximum of five versions. You can use this command to roll an app back as many as four versions.
  • start: Start the app's web or application server.
  • stop: Stop the app's web or application server.
  • restart: Restart the app's web or application server.
  • undeploy: Undeploy the app.
" } }, "Deployments": { @@ -664,9 +664,9 @@ "Double": { "base": null, "refs": { - "AutoScalingThresholds$CpuThreshold": "

The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.

", - "AutoScalingThresholds$MemoryThreshold": "

The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.

", - "AutoScalingThresholds$LoadThreshold": "

The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see Load (computing).

" + "AutoScalingThresholds$CpuThreshold": "

The CPU utilization threshold, as a percent of the available CPU.

", + "AutoScalingThresholds$MemoryThreshold": "

The memory utilization threshold, as a percent of the available memory.

", + "AutoScalingThresholds$LoadThreshold": "

The load threshold. For more information about how load is computed, see Load (computing).

" } }, "EbsBlockDevice": { @@ -857,7 +857,7 @@ "refs": { "CreateLayerRequest$LifecycleEventConfiguration": "

A LifeCycleEventConfiguration object that you can use to configure the Shutdown event to specify an execution timeout and enable or disable Elastic Load Balancer connection draining.

", "Layer$LifecycleEventConfiguration": "

A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.

", - "UpdateLayerRequest$LifecycleEventConfiguration": "

" + "UpdateLayerRequest$LifecycleEventConfiguration": "

" } }, "LoadBasedAutoScalingConfiguration": { @@ -1092,11 +1092,11 @@ "base": "

Describes the configuration manager.

", "refs": { "AgentVersion$ConfigurationManager": "

The configuration manager.

", - "CloneStackRequest$ConfigurationManager": "

The configuration manager. When you clone a stack we recommend that you use the configuration manager to specify the Chef version: 12, 11.10, or 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for Linux stacks is currently 11.4.

", - "CreateStackRequest$ConfigurationManager": "

The configuration manager. When you create a stack we recommend that you use the configuration manager to specify the Chef version: 12, 11.10, or 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for Linux stacks is currently 11.4.

", + "CloneStackRequest$ConfigurationManager": "

The configuration manager. When you clone a Linux stack we recommend that you use the configuration manager to specify the Chef version: 0.9, 11.4, or 11.10. The default value is currently 11.10.

", + "CreateStackRequest$ConfigurationManager": "

The configuration manager. When you clone a stack we recommend that you use the configuration manager to specify the Chef version: 0.9, 11.4, or 11.10. The default value is currently 11.4.

", "DescribeAgentVersionsRequest$ConfigurationManager": "

The configuration manager.

", "Stack$ConfigurationManager": "

The configuration manager.

", - "UpdateStackRequest$ConfigurationManager": "

The configuration manager. When you update a stack, we recommend that you use the configuration manager to specify the Chef version: 12, 11.10, or 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for Linux stacks is currently 11.4.

" + "UpdateStackRequest$ConfigurationManager": "

The configuration manager. When you clone a stack, we recommend that you use the configuration manager to specify the Chef version: 0.9, 11.4, or 11.10. The default value is currently 11.4.

" } }, "StackSummary": { @@ -1159,7 +1159,7 @@ "CloneStackRequest$VpcId": "

The ID of the VPC that the cloned stack is to be launched into. It must be in the specified region. All instances are launched into this VPC, and you cannot change the ID later.

  • If your account supports EC2 Classic, the default value is no VPC.
  • If your account does not support EC2 Classic, the default value is the default VPC for the specified region.

If the VPC ID corresponds to a default VPC and you have specified either the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks sets these parameters to the first valid Availability Zone for the specified region and the corresponding default VPC subnet ID, respectively.

If you specify a nondefault VPC ID, note the following:

  • It must belong to a VPC in your account that is in the specified region.
  • You must specify a value for DefaultSubnetId.

For more information on how to use AWS OpsWorks with a VPC, see Running a Stack in a VPC. For more information on default VPC and EC2 Classic, see Supported Platforms.

", "CloneStackRequest$ServiceRoleArn": "

The stack AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks to work with AWS resources on your behalf. You must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. If you create a stack by using the AWS OpsWorks console, it creates the role for you. You can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions. For more information about IAM ARNs, see Using Identifiers.

You must set this parameter to a valid service role ARN or the action will fail; there is no default value. You can specify the source stack's service role ARN, if you prefer, but you must do so explicitly.

", "CloneStackRequest$DefaultInstanceProfileArn": "

The Amazon Resource Name (ARN) of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

", - "CloneStackRequest$DefaultOs": "

The stack's operating system, which must be set to one of the following.

  • A supported Linux operating system: An Amazon Linux version, such as Amazon Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Microsoft Windows Server 2012 R2 Base.
  • A custom AMI: Custom. You specify the custom AMI you want to use when you create instances. For more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

The default option is the parent stack's operating system. For more information on the supported operating systems, see AWS OpsWorks Operating Systems.

You can specify a different Linux operating system for the cloned stack, but you cannot change from Linux to Windows or Windows to Linux.", + "CloneStackRequest$DefaultOs": "

The stack's operating system, which must be set to one of the following.

  • A supported Linux operating system: An Amazon Linux version, such as Amazon Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Microsoft Windows Server 2012 R2 Base.
  • A custom AMI: Custom. You specify the custom AMI you want to use when you create instances. For more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

The default option is the parent stack's operating system. For more information on the supported operating systems, see AWS OpsWorks Operating Systems.

You can specify a different Linux operating system for the cloned stack, but you cannot change from Linux to Windows or Windows to Linux.", "CloneStackRequest$HostnameTheme": "

The stack's host name theme, with spaces are replaced by underscores. The theme is used to generate host names for the stack's instances. By default, HostnameTheme is set to Layer_Dependent, which creates host names by appending integers to the layer's short name. The other themes are:

  • Baked_Goods
  • Clouds
  • Europe_Cities
  • Fruits
  • Greek_Deities
  • Legendary_creatures_from_Japan
  • Planets_and_Moons
  • Roman_Deities
  • Scottish_Islands
  • US_Cities
  • Wild_Cats

To obtain a generated host name, call GetHostNameSuggestion, which returns a host name based on the current theme.

", "CloneStackRequest$DefaultAvailabilityZone": "

The cloned stack's default Availability Zone, which must be in the specified region. For more information, see Regions and Endpoints. If you also specify a value for DefaultSubnetId, the subnet must be in the same zone. For more information, see the VpcId parameter description.

", "CloneStackRequest$DefaultSubnetId": "

The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are launched into this subnet unless you specify otherwise when you create the instance. If you also specify a value for DefaultAvailabilityZone, the subnet must be in that zone. For information on default values and when this parameter is required, see the VpcId parameter description.

", @@ -1186,33 +1186,32 @@ "CreateInstanceRequest$StackId": "

The stack ID.

", "CreateInstanceRequest$InstanceType": "

The instance type, such as t2.micro. For a list of supported instance types, open the stack in the console, choose Instances, and choose + Instance. The Size list contains the currently supported types. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.

", "CreateInstanceRequest$Hostname": "

The instance host name.

", - "CreateInstanceRequest$Os": "

The instance's operating system, which must be set to one of the following.

  • A supported Linux operating system: An Amazon Linux version, such as Amazon Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Microsoft Windows Server 2012 R2 Base.
  • A custom AMI: Custom.

For more information on the supported operating systems, see AWS OpsWorks Operating Systems.

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the CreateInstance action's AmiId parameter to specify the custom AMI that you want to use. Block device mappings are not supported if the value is Custom. For more information on the supported operating systems, see Operating SystemsFor more information on how to use custom AMIs with AWS OpsWorks, see Using Custom AMIs.

", + "CreateInstanceRequest$Os": "

The instance's operating system, which must be set to one of the following.

  • A supported Linux operating system: An Amazon Linux version, such as Amazon Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Microsoft Windows Server 2012 R2 Base.
  • A custom AMI: Custom.

For more information on the supported operating systems, see AWS OpsWorks Operating Systems.

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the CreateInstance action's AmiId parameter to specify the custom AMI that you want to use. For more information on the supported operating systems, see Operating SystemsFor more information on how to use custom AMIs with AWS OpsWorks, see Using Custom AMIs.

", "CreateInstanceRequest$AmiId": "

A custom AMI ID to be used to create the instance. The AMI should be based on one of the supported operating systems. For more information, see Using Custom AMIs.

If you specify a custom AMI, you must set Os to Custom.", "CreateInstanceRequest$SshKeyName": "

The instance's Amazon EC2 key-pair name.

", "CreateInstanceRequest$AvailabilityZone": "

The instance Availability Zone. For more information, see Regions and Endpoints.

", "CreateInstanceRequest$VirtualizationType": "

The instance's virtualization type, paravirtual or hvm.

", "CreateInstanceRequest$SubnetId": "

The ID of the instance's subnet. If the stack is running in a VPC, you can use this parameter to override the stack's default subnet ID value and direct AWS OpsWorks to launch the instance in a different subnet.

", - "CreateInstanceRequest$AgentVersion": "

The default AWS OpsWorks agent version. You have the following options:

  • INHERIT - Use the stack's default agent version setting.
  • version_number - Use the specified agent version. This value overrides the stack's default setting. To update the agent version, edit the instance configuration and specify a new version. AWS OpsWorks then automatically installs that version on the instance.

The default setting is INHERIT. To specify an agent version, you must use the complete version number, not the abbreviated number shown on the console. For a list of available agent version numbers, call DescribeAgentVersions.

", - "CreateInstanceRequest$Tenancy": "

The instance's tenancy option. The default option is no tenancy, or if the instance is running in a VPC, inherit tenancy settings from the VPC. The following are valid values for this parameter: dedicated, default, or host. Because there are costs associated with changes in tenancy options, we recommend that you research tenancy options before choosing them for your instances. For more information about dedicated hosts, see Dedicated Hosts Overview and Amazon EC2 Dedicated Hosts. For more information about dedicated instances, see Dedicated Instances and Amazon EC2 Dedicated Instances.

", + "CreateInstanceRequest$AgentVersion": "

The default AWS OpsWorks agent version. You have the following options:

  • INHERIT - Use the stack's default agent version setting.
  • version_number - Use the specified agent version. This value overrides the stack's default setting. To update the agent version, edit the instance configuration and specify a new version. AWS OpsWorks then automatically installs that version on the instance.

The default setting is INHERIT. To specify an agent version, you must use the complete version number, not the abbreviated number shown on the console. For a list of available agent version numbers, call DescribeAgentVersions.

", "CreateInstanceResult$InstanceId": "

The instance ID.

", "CreateLayerRequest$StackId": "

The layer stack ID.

", "CreateLayerRequest$Name": "

The layer name, which is used by the console.

", "CreateLayerRequest$Shortname": "

For custom layers only, use this parameter to specify the layer's short name, which is used internally by AWS OpsWorks and by Chef recipes. The short name is also used as the name for the directory where your app files are installed. It can have a maximum of 200 characters, which are limited to the alphanumeric characters, '-', '_', and '.'.

The built-in layers' short names are defined by AWS OpsWorks. For more information, see the Layer Reference.

", "CreateLayerRequest$CustomInstanceProfileArn": "

The ARN of an IAM profile to be used for the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

", - "CreateLayerRequest$CustomJson": "

A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the layer's instances. For more information, see Using Custom JSON. This feature is supported as of version 1.7.42 of the AWS CLI.

", + "CreateLayerRequest$CustomJson": "

A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the layer's instances. For more information, see Using Custom JSON.

", "CreateLayerResult$LayerId": "

The layer ID.

", "CreateStackRequest$Name": "

The stack name.

", "CreateStackRequest$Region": "

The stack's AWS region, such as \"us-east-1\". For more information about Amazon regions, see Regions and Endpoints.

", "CreateStackRequest$VpcId": "

The ID of the VPC that the stack is to be launched into. The VPC must be in the stack's region. All instances are launched into this VPC. You cannot change the ID later.

  • If your account supports EC2-Classic, the default value is no VPC.
  • If your account does not support EC2-Classic, the default value is the default VPC for the specified region.

If the VPC ID corresponds to a default VPC and you have specified either the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks sets these parameters to the first valid Availability Zone for the specified region and the corresponding default VPC subnet ID, respectively.

If you specify a nondefault VPC ID, note the following:

  • It must belong to a VPC in your account that is in the specified region.
  • You must specify a value for DefaultSubnetId.

For more information on how to use AWS OpsWorks with a VPC, see Running a Stack in a VPC. For more information on default VPC and EC2-Classic, see Supported Platforms.

", "CreateStackRequest$ServiceRoleArn": "

The stack's AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks to work with AWS resources on your behalf. You must set this parameter to the Amazon Resource Name (ARN) for an existing IAM role. For more information about IAM ARNs, see Using Identifiers.

", "CreateStackRequest$DefaultInstanceProfileArn": "

The Amazon Resource Name (ARN) of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

", - "CreateStackRequest$DefaultOs": "

The stack's default operating system, which is installed on every instance unless you specify a different operating system when you create the instance. You can specify one of the following.

  • A supported Linux operating system: An Amazon Linux version, such as Amazon Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Microsoft Windows Server 2012 R2 Base.
  • A custom AMI: Custom. You specify the custom AMI you want to use when you create instances. For more information, see Using Custom AMIs.

The default option is the current Amazon Linux version. For more information on the supported operating systems, see AWS OpsWorks Operating Systems.

", + "CreateStackRequest$DefaultOs": "

The stack's default operating system, which is installed on every instance unless you specify a different operating system when you create the instance. You can specify one of the following.

  • A supported Linux operating system: An Amazon Linux version, such as Amazon Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Microsoft Windows Server 2012 R2 Base.
  • A custom AMI: Custom. You specify the custom AMI you want to use when you create instances. For more information, see Using Custom AMIs.

The default option is the current Amazon Linux version. For more information on the supported operating systems, see AWS OpsWorks Operating Systems.

", "CreateStackRequest$HostnameTheme": "

The stack's host name theme, with spaces replaced by underscores. The theme is used to generate host names for the stack's instances. By default, HostnameTheme is set to Layer_Dependent, which creates host names by appending integers to the layer's short name. The other themes are:

  • Baked_Goods
  • Clouds
  • Europe_Cities
  • Fruits
  • Greek_Deities
  • Legendary_creatures_from_Japan
  • Planets_and_Moons
  • Roman_Deities
  • Scottish_Islands
  • US_Cities
  • Wild_Cats

To obtain a generated host name, call GetHostNameSuggestion, which returns a host name based on the current theme.

", "CreateStackRequest$DefaultAvailabilityZone": "

The stack's default Availability Zone, which must be in the specified region. For more information, see Regions and Endpoints. If you also specify a value for DefaultSubnetId, the subnet must be in the same zone. For more information, see the VpcId parameter description.

", "CreateStackRequest$DefaultSubnetId": "

The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are launched into this subnet unless you specify otherwise when you create the instance. If you also specify a value for DefaultAvailabilityZone, the subnet must be in that zone. For information on default values and when this parameter is required, see the VpcId parameter description.

", "CreateStackRequest$CustomJson": "

A string that contains user-defined, custom JSON. It can be used to override the corresponding default stack configuration attribute values or to pass data to recipes. The string should be in the following escape characters such as '\"':

\"{\\\"key1\\\": \\\"value1\\\", \\\"key2\\\": \\\"value2\\\",...}\"

For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.

", "CreateStackRequest$DefaultSshKeyName": "

A default Amazon EC2 key pair name. The default value is none. If you specify a key pair name, AWS OpsWorks installs the public key on the instance and you can use the private key with an SSH client to log in to the instance. For more information, see Using SSH to Communicate with an Instance and Managing SSH Access. You can override this setting by specifying a different key pair, or no key pair, when you create an instance.

", - "CreateStackRequest$AgentVersion": "

The default AWS OpsWorks agent version. You have the following options:

  • Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically installs new agent versions on the stack's instances as soon as they are available.
  • Fixed version - Set this parameter to your preferred agent version. To update the agent version, you must edit the stack configuration and specify a new version. AWS OpsWorks then automatically installs that version on the stack's instances.

The default setting is the most recent release of the agent. To specify an agent version, you must use the complete version number, not the abbreviated number shown on the console. For a list of available agent version numbers, call DescribeAgentVersions.

You can also specify an agent version when you create or update an instance, which overrides the stack's default setting.", + "CreateStackRequest$AgentVersion": "

The default AWS OpsWorks agent version. You have the following options:

  • Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically installs new agent versions on the stack's instances as soon as they are available.
  • Fixed version - Set this parameter to your preferred agent version. To update the agent version, you must edit the stack configuration and specify a new version. AWS OpsWorks then automatically installs that version on the stack's instances.

The default setting is LATEST. To specify an agent version, you must use the complete version number, not the abbreviated number shown on the console. For a list of available agent version numbers, call DescribeAgentVersions.

You can also specify an agent version when you create or update an instance, which overrides the stack's default setting.", "CreateStackResult$StackId": "

The stack ID, which is an opaque string that you use to identify the stack when performing actions such as DescribeStacks.

", "CreateUserProfileRequest$IamUserArn": "

The user's IAM ARN.

", "CreateUserProfileRequest$SshUsername": "

The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9], '-', and '_'. If the specified name includes other punctuation marks, AWS OpsWorks removes them. For example, my.name will be changed to myname. If you do not specify an SSH user name, AWS OpsWorks generates one from the IAM user name.

", @@ -1319,7 +1318,6 @@ "Instance$StackId": "

The stack ID.

", "Instance$Status": "

The instance status:

  • booting
  • connection_lost
  • online
  • pending
  • rebooting
  • requested
  • running_setup
  • setup_failed
  • shutting_down
  • start_failed
  • stopped
  • stopping
  • terminated
  • terminating
", "Instance$SubnetId": "

The instance's subnet ID; applicable only if the stack is running in a VPC.

", - "Instance$Tenancy": "

The instance's tenancy option, such as dedicated or host.

", "InstanceIdentity$Document": "

A JSON document that contains the metadata.

", "InstanceIdentity$Signature": "

A signature that can be used to verify the document's accuracy and authenticity.

", "Layer$StackId": "

The layer stack ID.

", @@ -1392,7 +1390,7 @@ "SetTimeBasedAutoScalingRequest$InstanceId": "

The instance ID.

", "Source$Url": "

The source URL.

", "Source$Username": "

This parameter depends on the repository type.

  • For Amazon S3 bundles, set Username to the appropriate IAM access key ID.
  • For HTTP bundles, Git repositories, and Subversion repositories, set Username to the user name.
", - "Source$Password": "

When included in a request, the parameter depends on the repository type.

  • For Amazon S3 bundles, set Password to the appropriate IAM secret access key.
  • For HTTP bundles and Subversion repositories, set Password to the password.

For more information on how to safely handle IAM credentials, see .

In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual value.

", + "Source$Password": "

When included in a request, the parameter depends on the repository type.

  • For Amazon S3 bundles, set Password to the appropriate IAM secret access key.
  • For HTTP bundles and Subversion repositories, set Password to the password.

For more information on how to safely handle IAM credentials, see .

In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual value.

", "Source$SshKey": "

In requests, the repository's SSH key.

In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual value.

", "Source$Revision": "

The application's version. AWS OpsWorks enables you to easily deploy new versions of an application. One of the simplest approaches is to have branches or revisions in your repository that represent different versions that can potentially be deployed.

", "SslConfiguration$Certificate": "

The contents of the certificate's domain.crt file.

", @@ -1414,7 +1412,7 @@ "Stack$AgentVersion": "

The agent version. This parameter is set to LATEST for auto-update. or a version number for a fixed agent version.

", "StackAttributes$value": null, "StackConfigurationManager$Name": "

The name. This parameter must be set to \"Chef\".

", - "StackConfigurationManager$Version": "

The Chef version. This parameter must be set to 12, 11.10, or 11.4 for Linux stacks, and to 12.2 for Windows stacks. The default value for Linux stacks is 11.4.

", + "StackConfigurationManager$Version": "

The Chef version. This parameter must be set to 0.9, 11.4, or 11.10. The default value is 11.4.

", "StackSummary$StackId": "

The stack ID.

", "StackSummary$Name": "

The stack name.

", "StackSummary$Arn": "

The stack's ARN.

", @@ -1437,10 +1435,10 @@ "UpdateInstanceRequest$InstanceId": "

The instance ID.

", "UpdateInstanceRequest$InstanceType": "

The instance type, such as t2.micro. For a list of supported instance types, open the stack in the console, choose Instances, and choose + Instance. The Size list contains the currently supported types. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.

", "UpdateInstanceRequest$Hostname": "

The instance host name.

", - "UpdateInstanceRequest$Os": "

The instance's operating system, which must be set to one of the following.

  • A supported Linux operating system: An Amazon Linux version, such as Amazon Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Microsoft Windows Server 2012 R2 Base.
  • A custom AMI: Custom.

For more information on the supported operating systems, see AWS OpsWorks Operating Systems.

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the AmiId parameter to specify the custom AMI that you want to use. For more information on the supported operating systems, see Operating Systems. For more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

You can specify a different Linux operating system for the updated stack, but you cannot change from Linux to Windows or Windows to Linux.", + "UpdateInstanceRequest$Os": "

The instance's operating system, which must be set to one of the following.

  • A supported Linux operating system: An Amazon Linux version, such as Amazon Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Microsoft Windows Server 2012 R2 Base.
  • A custom AMI: Custom.

For more information on the supported operating systems, see AWS OpsWorks Operating Systems.

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the AmiId parameter to specify the custom AMI that you want to use. For more information on the supported operating systems, see Operating Systems. For more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

You can specify a different Linux operating system for the updated stack, but you cannot change from Linux to Windows or Windows to Linux.", "UpdateInstanceRequest$AmiId": "

A custom AMI ID to be used to create the instance. The AMI must be based on one of the supported operating systems. For more information, see Instances

If you specify a custom AMI, you must set Os to Custom.", "UpdateInstanceRequest$SshKeyName": "

The instance's Amazon EC2 key name.

", - "UpdateInstanceRequest$AgentVersion": "

The default AWS OpsWorks agent version. You have the following options:

  • INHERIT - Use the stack's default agent version setting.
  • version_number - Use the specified agent version. This value overrides the stack's default setting. To update the agent version, you must edit the instance configuration and specify a new version. AWS OpsWorks then automatically installs that version on the instance.

The default setting is INHERIT. To specify an agent version, you must use the complete version number, not the abbreviated number shown on the console. For a list of available agent version numbers, call DescribeAgentVersions.

", + "UpdateInstanceRequest$AgentVersion": "

The default AWS OpsWorks agent version. You have the following options:

  • INHERIT - Use the stack's default agent version setting.
  • version_number - Use the specified agent version. This value overrides the stack's default setting. To update the agent version, you must edit the instance configuration and specify a new version. AWS OpsWorks then automatically installs that version on the instance.

The default setting is INHERIT. To specify an agent version, you must use the complete version number, not the abbreviated number shown on the console. For a list of available agent version numbers, call DescribeAgentVersions.

", "UpdateLayerRequest$LayerId": "

The layer ID.

", "UpdateLayerRequest$Name": "

The layer name, which is used by the console.

", "UpdateLayerRequest$Shortname": "

For custom layers only, use this parameter to specify the layer's short name, which is used internally by AWS OpsWorksand by Chef. The short name is also used as the name for the directory where your app files are installed. It can have a maximum of 200 characters and must be in the following format: /\\A[a-z0-9\\-\\_\\.]+\\Z/.

The built-in layers' short names are defined by AWS OpsWorks. For more information, see the Layer Reference

", @@ -1454,7 +1452,7 @@ "UpdateStackRequest$Name": "

The stack's new name.

", "UpdateStackRequest$ServiceRoleArn": "

Do not use this parameter. You cannot update a stack's service role.

", "UpdateStackRequest$DefaultInstanceProfileArn": "

The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

", - "UpdateStackRequest$DefaultOs": "

The stack's operating system, which must be set to one of the following:

  • A supported Linux operating system: An Amazon Linux version, such as Amazon Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Microsoft Windows Server 2012 R2 Base.
  • A custom AMI: Custom. You specify the custom AMI you want to use when you create instances. For more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

The default option is the stack's current operating system. For more information on the supported operating systems, see AWS OpsWorks Operating Systems.

", + "UpdateStackRequest$DefaultOs": "

The stack's operating system, which must be set to one of the following:

  • A supported Linux operating system: An Amazon Linux version, such as Amazon Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Microsoft Windows Server 2012 R2 Base.
  • A custom AMI: Custom. You specify the custom AMI you want to use when you create instances. For more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

The default option is the stack's current operating system. For more information on the supported operating systems, see AWS OpsWorks Operating Systems.

", "UpdateStackRequest$HostnameTheme": "

The stack's new host name theme, with spaces replaced by underscores. The theme is used to generate host names for the stack's instances. By default, HostnameTheme is set to Layer_Dependent, which creates host names by appending integers to the layer's short name. The other themes are:

  • Baked_Goods
  • Clouds
  • Europe_Cities
  • Fruits
  • Greek_Deities
  • Legendary_creatures_from_Japan
  • Planets_and_Moons
  • Roman_Deities
  • Scottish_Islands
  • US_Cities
  • Wild_Cats

To obtain a generated host name, call GetHostNameSuggestion, which returns a host name based on the current theme.

", "UpdateStackRequest$DefaultAvailabilityZone": "

The stack's default Availability Zone, which must be in the stack's region. For more information, see Regions and Endpoints. If you also specify a value for DefaultSubnetId, the subnet must be in the same zone. For more information, see CreateStack.

", "UpdateStackRequest$DefaultSubnetId": "

The stack's default VPC subnet ID. This parameter is required if you specify a value for the VpcId parameter. All instances are launched into this subnet unless you specify otherwise when you create the instance. If you also specify a value for DefaultAvailabilityZone, the subnet must be in that zone. For information on default values and when this parameter is required, see the VpcId parameter description.

", @@ -1479,12 +1477,12 @@ "Volume$InstanceId": "

The instance ID.

", "Volume$Status": "

The value returned by DescribeVolumes.

", "Volume$Device": "

The device name.

", - "Volume$MountPoint": "

The volume mount point. For example, \"/mnt/disk1\".

", + "Volume$MountPoint": "

The volume mount point. For example \"/dev/sdh\".

", "Volume$Region": "

The AWS region. For more information about AWS regions, see Regions and Endpoints.

", "Volume$AvailabilityZone": "

The volume Availability Zone. For more information, see Regions and Endpoints.

", "Volume$VolumeType": "

The volume type, standard or PIOPS.

", "VolumeConfiguration$MountPoint": "

The volume mount point. For example \"/dev/sdh\".

", - "VolumeConfiguration$VolumeType": "

The volume type:

  • standard - Magnetic
  • io1 - Provisioned IOPS (SSD)
  • gp2 - General Purpose (SSD)
" + "VolumeConfiguration$VolumeType": "

The volume type:

  • standard - Magnetic
  • io1 - Provisioned IOPS (SSD)
  • gp2 - General Purpose (SSD)
" } }, "Strings": { @@ -1496,7 +1494,6 @@ "CloneStackRequest$CloneAppIds": "

A list of source stack app IDs to be included in the cloned stack.

", "CreateAppRequest$Domains": "

The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

", "CreateDeploymentRequest$InstanceIds": "

The instance IDs for the deployment targets.

", - "CreateDeploymentRequest$LayerIds": "

The layer IDs for the deployment targets.

", "CreateInstanceRequest$LayerIds": "

An array that contains the instance's layer IDs.

", "CreateLayerRequest$CustomSecurityGroupIds": "

An array containing the layer custom security group IDs.

", "CreateLayerRequest$Packages": "

An array of Package objects that describes the layer packages.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/waiters-2.json similarity index 94% rename from vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/waiters-2.json index e43a1e712..a156b5ac9 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/waiters-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/opsworks/2013-02-18/waiters-2.json @@ -91,12 +91,6 @@ "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" - }, - { - "expected": "stop_failed", - "matcher": "pathAny", - "state": "failure", - "argument": "Instances[].Status" } ] }, @@ -159,12 +153,6 @@ "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" - }, - { - "expected": "stop_failed", - "matcher": "pathAny", - "state": "failure", - "argument": "Instances[].Status" } ] }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/api-2.json similarity index 62% rename from vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/api-2.json index 90d8612dd..4ce847edc 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/api-2.json @@ -3,11 +3,11 @@ "metadata":{ "apiVersion":"2014-10-31", "endpointPrefix":"rds", - "protocol":"query", "serviceAbbreviation":"Amazon RDS", "serviceFullName":"Amazon Relational Database Service", "signatureVersion":"v4", - "xmlNamespace":"http://rds.amazonaws.com/doc/2014-10-31/" + "xmlNamespace":"http://rds.amazonaws.com/doc/2014-10-31/", + "protocol":"query" }, "operations":{ "AddSourceIdentifierToSubscription":{ @@ -19,11 +19,28 @@ "input":{"shape":"AddSourceIdentifierToSubscriptionMessage"}, "output":{ "shape":"AddSourceIdentifierToSubscriptionResult", + "wrapper":true, "resultWrapper":"AddSourceIdentifierToSubscriptionResult" }, "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SourceNotFoundFault"} + { + "shape":"SubscriptionNotFoundFault", + "error":{ + "code":"SubscriptionNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SourceNotFoundFault", + "error":{ + "code":"SourceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "AddTagsToResource":{ @@ -34,8 +51,24 @@ }, "input":{"shape":"AddTagsToResourceMessage"}, "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSnapshotNotFoundFault", + "error":{ + "code":"DBSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "ApplyPendingMaintenanceAction":{ @@ -47,10 +80,19 @@ "input":{"shape":"ApplyPendingMaintenanceActionMessage"}, "output":{ "shape":"ApplyPendingMaintenanceActionResult", + "wrapper":true, "resultWrapper":"ApplyPendingMaintenanceActionResult" }, "errors":[ - {"shape":"ResourceNotFoundFault"} + { + "shape":"ResourceNotFoundFault", + "error":{ + "code":"ResourceNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "AuthorizeDBSecurityGroupIngress":{ @@ -62,13 +104,46 @@ "input":{"shape":"AuthorizeDBSecurityGroupIngressMessage"}, "output":{ "shape":"AuthorizeDBSecurityGroupIngressResult", + "wrapper":true, "resultWrapper":"AuthorizeDBSecurityGroupIngressResult" }, "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"AuthorizationAlreadyExistsFault"}, - {"shape":"AuthorizationQuotaExceededFault"} + { + "shape":"DBSecurityGroupNotFoundFault", + "error":{ + "code":"DBSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSecurityGroupStateFault", + "error":{ + "code":"InvalidDBSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationAlreadyExistsFault", + "error":{ + "code":"AuthorizationAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationQuotaExceededFault", + "error":{ + "code":"AuthorizationQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CopyDBClusterSnapshot":{ @@ -80,12 +155,37 @@ "input":{"shape":"CopyDBClusterSnapshotMessage"}, "output":{ "shape":"CopyDBClusterSnapshotResult", + "wrapper":true, "resultWrapper":"CopyDBClusterSnapshotResult" }, "errors":[ - {"shape":"DBClusterSnapshotAlreadyExistsFault"}, - {"shape":"DBClusterSnapshotNotFoundFault"}, - {"shape":"InvalidDBClusterStateFault"} + { + "shape":"DBClusterSnapshotAlreadyExistsFault", + "error":{ + "code":"DBClusterSnapshotAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterSnapshotNotFoundFault", + "error":{ + "code":"DBClusterSnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBClusterStateFault", + "error":{ + "code":"InvalidDBClusterStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CopyDBParameterGroup":{ @@ -97,12 +197,37 @@ "input":{"shape":"CopyDBParameterGroupMessage"}, "output":{ "shape":"CopyDBParameterGroupResult", + "wrapper":true, "resultWrapper":"CopyDBParameterGroupResult" }, "errors":[ - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBParameterGroupAlreadyExistsFault"}, - {"shape":"DBParameterGroupQuotaExceededFault"} + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupAlreadyExistsFault", + "error":{ + "code":"DBParameterGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupQuotaExceededFault", + "error":{ + "code":"DBParameterGroupQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CopyDBSnapshot":{ @@ -114,14 +239,46 @@ "input":{"shape":"CopyDBSnapshotMessage"}, "output":{ "shape":"CopyDBSnapshotResult", + "wrapper":true, "resultWrapper":"CopyDBSnapshotResult" }, "errors":[ - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"SnapshotQuotaExceededFault"}, - {"shape":"KMSKeyNotAccessibleFault"} + { + "shape":"DBSnapshotAlreadyExistsFault", + "error":{ + "code":"DBSnapshotAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSnapshotNotFoundFault", + "error":{ + "code":"DBSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSnapshotStateFault", + "error":{ + "code":"InvalidDBSnapshotState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotQuotaExceededFault", + "error":{ + "code":"SnapshotQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CopyOptionGroup":{ @@ -133,12 +290,37 @@ "input":{"shape":"CopyOptionGroupMessage"}, "output":{ "shape":"CopyOptionGroupResult", + "wrapper":true, "resultWrapper":"CopyOptionGroupResult" }, "errors":[ - {"shape":"OptionGroupAlreadyExistsFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"OptionGroupQuotaExceededFault"} + { + "shape":"OptionGroupAlreadyExistsFault", + "error":{ + "code":"OptionGroupAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupQuotaExceededFault", + "error":{ + "code":"OptionGroupQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateDBCluster":{ @@ -150,21 +332,100 @@ "input":{"shape":"CreateDBClusterMessage"}, "output":{ "shape":"CreateDBClusterResult", + "wrapper":true, "resultWrapper":"CreateDBClusterResult" }, "errors":[ - {"shape":"DBClusterAlreadyExistsFault"}, - {"shape":"InsufficientStorageClusterCapacityFault"}, - {"shape":"DBClusterQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidDBClusterStateFault"}, - {"shape":"InvalidDBSubnetGroupStateFault"}, - {"shape":"InvalidSubnet"}, - {"shape":"DBClusterParameterGroupNotFoundFault"}, - {"shape":"KMSKeyNotAccessibleFault"}, - {"shape":"DBClusterNotFoundFault"} + { + "shape":"DBClusterAlreadyExistsFault", + "error":{ + "code":"DBClusterAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientStorageClusterCapacityFault", + "error":{ + "code":"InsufficientStorageClusterCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterQuotaExceededFault", + "error":{ + "code":"DBClusterQuotaExceededFault", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBClusterStateFault", + "error":{ + "code":"InvalidDBClusterStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSubnetGroupStateFault", + "error":{ + "code":"InvalidDBSubnetGroupStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterParameterGroupNotFoundFault", + "error":{ + "code":"DBClusterParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "CreateDBClusterParameterGroup":{ @@ -176,11 +437,28 @@ "input":{"shape":"CreateDBClusterParameterGroupMessage"}, "output":{ "shape":"CreateDBClusterParameterGroupResult", + "wrapper":true, "resultWrapper":"CreateDBClusterParameterGroupResult" }, "errors":[ - {"shape":"DBParameterGroupQuotaExceededFault"}, - {"shape":"DBParameterGroupAlreadyExistsFault"} + { + "shape":"DBParameterGroupQuotaExceededFault", + "error":{ + "code":"DBParameterGroupQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupAlreadyExistsFault", + "error":{ + "code":"DBParameterGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateDBClusterSnapshot":{ @@ -192,14 +470,46 @@ "input":{"shape":"CreateDBClusterSnapshotMessage"}, "output":{ "shape":"CreateDBClusterSnapshotResult", + "wrapper":true, "resultWrapper":"CreateDBClusterSnapshotResult" }, "errors":[ - {"shape":"DBClusterSnapshotAlreadyExistsFault"}, - {"shape":"InvalidDBClusterStateFault"}, - {"shape":"DBClusterNotFoundFault"}, - {"shape":"SnapshotQuotaExceededFault"}, - {"shape":"InvalidDBClusterSnapshotStateFault"} + { + "shape":"DBClusterSnapshotAlreadyExistsFault", + "error":{ + "code":"DBClusterSnapshotAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBClusterStateFault", + "error":{ + "code":"InvalidDBClusterStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterNotFoundFault", + "error":{ + "code":"DBClusterNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotQuotaExceededFault", + "error":{ + "code":"SnapshotQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateDBInstance":{ @@ -211,27 +521,163 @@ "input":{"shape":"CreateDBInstanceMessage"}, "output":{ "shape":"CreateDBInstanceResult", + "wrapper":true, "resultWrapper":"CreateDBInstanceResult" }, "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidDBClusterStateFault"}, - {"shape":"InvalidSubnet"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"DBClusterNotFoundFault"}, - {"shape":"StorageTypeNotSupportedFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"KMSKeyNotAccessibleFault"}, - {"shape":"DomainNotFoundFault"} + { + "shape":"DBInstanceAlreadyExistsFault", + "error":{ + "code":"DBInstanceAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientDBInstanceCapacityFault", + "error":{ + "code":"InsufficientDBInstanceCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSecurityGroupNotFoundFault", + "error":{ + "code":"DBSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InstanceQuotaExceededFault", + "error":{ + "code":"InstanceQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupDoesNotCoverEnoughAZs", + "error":{ + "code":"DBSubnetGroupDoesNotCoverEnoughAZs", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBClusterStateFault", + "error":{ + "code":"InvalidDBClusterStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ProvisionedIopsNotAvailableInAZFault", + "error":{ + "code":"ProvisionedIopsNotAvailableInAZFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterNotFoundFault", + "error":{ + "code":"DBClusterNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageTypeNotSupportedFault", + "error":{ + "code":"StorageTypeNotSupported", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationNotFoundFault", + "error":{ + "code":"AuthorizationNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSKeyNotAccessibleFault", + "error":{ + "code":"KMSKeyNotAccessibleFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateDBInstanceReadReplica":{ @@ -243,27 +689,172 @@ "input":{"shape":"CreateDBInstanceReadReplicaMessage"}, "output":{ "shape":"CreateDBInstanceReadReplicaResult", + "wrapper":true, "resultWrapper":"CreateDBInstanceReadReplicaResult" }, "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"DBSubnetGroupNotAllowedFault"}, - {"shape":"InvalidDBSubnetGroupFault"}, - {"shape":"StorageTypeNotSupportedFault"}, - {"shape":"KMSKeyNotAccessibleFault"} + { + "shape":"DBInstanceAlreadyExistsFault", + "error":{ + "code":"DBInstanceAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientDBInstanceCapacityFault", + "error":{ + "code":"InsufficientDBInstanceCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSecurityGroupNotFoundFault", + "error":{ + "code":"DBSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InstanceQuotaExceededFault", + "error":{ + "code":"InstanceQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBInstanceStateFault", + "error":{ + "code":"InvalidDBInstanceState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupDoesNotCoverEnoughAZs", + "error":{ + "code":"DBSubnetGroupDoesNotCoverEnoughAZs", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ProvisionedIopsNotAvailableInAZFault", + "error":{ + "code":"ProvisionedIopsNotAvailableInAZFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotAllowedFault", + "error":{ + "code":"DBSubnetGroupNotAllowedFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSubnetGroupFault", + "error":{ + "code":"InvalidDBSubnetGroupFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageTypeNotSupportedFault", + "error":{ + "code":"StorageTypeNotSupported", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSKeyNotAccessibleFault", + "error":{ + "code":"KMSKeyNotAccessibleFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateDBParameterGroup":{ @@ -275,11 +866,28 @@ "input":{"shape":"CreateDBParameterGroupMessage"}, "output":{ "shape":"CreateDBParameterGroupResult", + "wrapper":true, "resultWrapper":"CreateDBParameterGroupResult" }, "errors":[ - {"shape":"DBParameterGroupQuotaExceededFault"}, - {"shape":"DBParameterGroupAlreadyExistsFault"} + { + "shape":"DBParameterGroupQuotaExceededFault", + "error":{ + "code":"DBParameterGroupQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupAlreadyExistsFault", + "error":{ + "code":"DBParameterGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateDBSecurityGroup":{ @@ -291,12 +899,37 @@ "input":{"shape":"CreateDBSecurityGroupMessage"}, "output":{ "shape":"CreateDBSecurityGroupResult", + "wrapper":true, "resultWrapper":"CreateDBSecurityGroupResult" }, "errors":[ - {"shape":"DBSecurityGroupAlreadyExistsFault"}, - {"shape":"DBSecurityGroupQuotaExceededFault"}, - {"shape":"DBSecurityGroupNotSupportedFault"} + { + "shape":"DBSecurityGroupAlreadyExistsFault", + "error":{ + "code":"DBSecurityGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSecurityGroupQuotaExceededFault", + "error":{ + "code":"QuotaExceeded.DBSecurityGroup", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSecurityGroupNotSupportedFault", + "error":{ + "code":"DBSecurityGroupNotSupported", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateDBSnapshot":{ @@ -308,13 +941,46 @@ "input":{"shape":"CreateDBSnapshotMessage"}, "output":{ "shape":"CreateDBSnapshotResult", + "wrapper":true, "resultWrapper":"CreateDBSnapshotResult" }, "errors":[ - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"SnapshotQuotaExceededFault"} + { + "shape":"DBSnapshotAlreadyExistsFault", + "error":{ + "code":"DBSnapshotAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBInstanceStateFault", + "error":{ + "code":"InvalidDBInstanceState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotQuotaExceededFault", + "error":{ + "code":"SnapshotQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateDBSubnetGroup":{ @@ -326,14 +992,55 @@ "input":{"shape":"CreateDBSubnetGroupMessage"}, "output":{ "shape":"CreateDBSubnetGroupResult", + "wrapper":true, "resultWrapper":"CreateDBSubnetGroupResult" }, "errors":[ - {"shape":"DBSubnetGroupAlreadyExistsFault"}, - {"shape":"DBSubnetGroupQuotaExceededFault"}, - {"shape":"DBSubnetQuotaExceededFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} + { + "shape":"DBSubnetGroupAlreadyExistsFault", + "error":{ + "code":"DBSubnetGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupQuotaExceededFault", + "error":{ + "code":"DBSubnetGroupQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetQuotaExceededFault", + "error":{ + "code":"DBSubnetQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupDoesNotCoverEnoughAZs", + "error":{ + "code":"DBSubnetGroupDoesNotCoverEnoughAZs", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateEventSubscription":{ @@ -345,16 +1052,73 @@ "input":{"shape":"CreateEventSubscriptionMessage"}, "output":{ "shape":"CreateEventSubscriptionResult", + "wrapper":true, "resultWrapper":"CreateEventSubscriptionResult" }, "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionAlreadyExistFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"}, - {"shape":"SourceNotFoundFault"} + { + "shape":"EventSubscriptionQuotaExceededFault", + "error":{ + "code":"EventSubscriptionQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionAlreadyExistFault", + "error":{ + "code":"SubscriptionAlreadyExist", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSInvalidTopicFault", + "error":{ + "code":"SNSInvalidTopic", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSNoAuthorizationFault", + "error":{ + "code":"SNSNoAuthorization", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSTopicArnNotFoundFault", + "error":{ + "code":"SNSTopicArnNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionCategoryNotFoundFault", + "error":{ + "code":"SubscriptionCategoryNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SourceNotFoundFault", + "error":{ + "code":"SourceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "CreateOptionGroup":{ @@ -366,11 +1130,28 @@ "input":{"shape":"CreateOptionGroupMessage"}, "output":{ "shape":"CreateOptionGroupResult", + "wrapper":true, "resultWrapper":"CreateOptionGroupResult" }, "errors":[ - {"shape":"OptionGroupAlreadyExistsFault"}, - {"shape":"OptionGroupQuotaExceededFault"} + { + "shape":"OptionGroupAlreadyExistsFault", + "error":{ + "code":"OptionGroupAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupQuotaExceededFault", + "error":{ + "code":"OptionGroupQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteDBCluster":{ @@ -382,14 +1163,28 @@ "input":{"shape":"DeleteDBClusterMessage"}, "output":{ "shape":"DeleteDBClusterResult", + "wrapper":true, "resultWrapper":"DeleteDBClusterResult" }, "errors":[ - {"shape":"DBClusterNotFoundFault"}, - {"shape":"InvalidDBClusterStateFault"}, - {"shape":"DBClusterSnapshotAlreadyExistsFault"}, - {"shape":"SnapshotQuotaExceededFault"}, - {"shape":"InvalidDBClusterSnapshotStateFault"} + { + "shape":"DBClusterNotFoundFault", + "error":{ + "code":"DBClusterNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBClusterStateFault", + "error":{ + "code":"InvalidDBClusterStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteDBClusterParameterGroup":{ @@ -400,8 +1195,24 @@ }, "input":{"shape":"DeleteDBClusterParameterGroupMessage"}, "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} + { + "shape":"InvalidDBParameterGroupStateFault", + "error":{ + "code":"InvalidDBParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DeleteDBClusterSnapshot":{ @@ -413,11 +1224,28 @@ "input":{"shape":"DeleteDBClusterSnapshotMessage"}, "output":{ "shape":"DeleteDBClusterSnapshotResult", + "wrapper":true, "resultWrapper":"DeleteDBClusterSnapshotResult" }, "errors":[ - {"shape":"InvalidDBClusterSnapshotStateFault"}, - {"shape":"DBClusterSnapshotNotFoundFault"} + { + "shape":"InvalidDBClusterSnapshotStateFault", + "error":{ + "code":"InvalidDBClusterSnapshotStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterSnapshotNotFoundFault", + "error":{ + "code":"DBClusterSnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DeleteDBInstance":{ @@ -429,14 +1257,46 @@ "input":{"shape":"DeleteDBInstanceMessage"}, "output":{ "shape":"DeleteDBInstanceResult", + "wrapper":true, "resultWrapper":"DeleteDBInstanceResult" }, "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"SnapshotQuotaExceededFault"}, - {"shape":"InvalidDBClusterStateFault"} + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBInstanceStateFault", + "error":{ + "code":"InvalidDBInstanceState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSnapshotAlreadyExistsFault", + "error":{ + "code":"DBSnapshotAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotQuotaExceededFault", + "error":{ + "code":"SnapshotQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteDBParameterGroup":{ @@ -447,8 +1307,24 @@ }, "input":{"shape":"DeleteDBParameterGroupMessage"}, "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} + { + "shape":"InvalidDBParameterGroupStateFault", + "error":{ + "code":"InvalidDBParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DeleteDBSecurityGroup":{ @@ -459,8 +1335,24 @@ }, "input":{"shape":"DeleteDBSecurityGroupMessage"}, "errors":[ - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"DBSecurityGroupNotFoundFault"} + { + "shape":"InvalidDBSecurityGroupStateFault", + "error":{ + "code":"InvalidDBSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSecurityGroupNotFoundFault", + "error":{ + "code":"DBSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DeleteDBSnapshot":{ @@ -472,11 +1364,28 @@ "input":{"shape":"DeleteDBSnapshotMessage"}, "output":{ "shape":"DeleteDBSnapshotResult", + "wrapper":true, "resultWrapper":"DeleteDBSnapshotResult" }, "errors":[ - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"DBSnapshotNotFoundFault"} + { + "shape":"InvalidDBSnapshotStateFault", + "error":{ + "code":"InvalidDBSnapshotState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSnapshotNotFoundFault", + "error":{ + "code":"DBSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DeleteDBSubnetGroup":{ @@ -487,9 +1396,33 @@ }, "input":{"shape":"DeleteDBSubnetGroupMessage"}, "errors":[ - {"shape":"InvalidDBSubnetGroupStateFault"}, - {"shape":"InvalidDBSubnetStateFault"}, - {"shape":"DBSubnetGroupNotFoundFault"} + { + "shape":"InvalidDBSubnetGroupStateFault", + "error":{ + "code":"InvalidDBSubnetGroupStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSubnetStateFault", + "error":{ + "code":"InvalidDBSubnetStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DeleteEventSubscription":{ @@ -501,11 +1434,28 @@ "input":{"shape":"DeleteEventSubscriptionMessage"}, "output":{ "shape":"DeleteEventSubscriptionResult", + "wrapper":true, "resultWrapper":"DeleteEventSubscriptionResult" }, "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"InvalidEventSubscriptionStateFault"} + { + "shape":"SubscriptionNotFoundFault", + "error":{ + "code":"SubscriptionNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidEventSubscriptionStateFault", + "error":{ + "code":"InvalidEventSubscriptionState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteOptionGroup":{ @@ -516,8 +1466,24 @@ }, "input":{"shape":"DeleteOptionGroupMessage"}, "errors":[ - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"InvalidOptionGroupStateFault"} + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidOptionGroupStateFault", + "error":{ + "code":"InvalidOptionGroupStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeAccountAttributes":{ @@ -544,7 +1510,15 @@ "resultWrapper":"DescribeCertificatesResult" }, "errors":[ - {"shape":"CertificateNotFoundFault"} + { + "shape":"CertificateNotFoundFault", + "error":{ + "code":"CertificateNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBClusterParameterGroups":{ @@ -559,7 +1533,15 @@ "resultWrapper":"DescribeDBClusterParameterGroupsResult" }, "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBClusterParameters":{ @@ -574,22 +1556,15 @@ "resultWrapper":"DescribeDBClusterParametersResult" }, "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DescribeDBClusterSnapshotAttributes":{ - "name":"DescribeDBClusterSnapshotAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBClusterSnapshotAttributesMessage"}, - "output":{ - "shape":"DescribeDBClusterSnapshotAttributesResult", - "resultWrapper":"DescribeDBClusterSnapshotAttributesResult" - }, - "errors":[ - {"shape":"DBClusterSnapshotNotFoundFault"} + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBClusterSnapshots":{ @@ -604,7 +1579,15 @@ "resultWrapper":"DescribeDBClusterSnapshotsResult" }, "errors":[ - {"shape":"DBClusterSnapshotNotFoundFault"} + { + "shape":"DBClusterSnapshotNotFoundFault", + "error":{ + "code":"DBClusterSnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBClusters":{ @@ -619,7 +1602,15 @@ "resultWrapper":"DescribeDBClustersResult" }, "errors":[ - {"shape":"DBClusterNotFoundFault"} + { + "shape":"DBClusterNotFoundFault", + "error":{ + "code":"DBClusterNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBEngineVersions":{ @@ -646,7 +1637,15 @@ "resultWrapper":"DescribeDBInstancesResult" }, "errors":[ - {"shape":"DBInstanceNotFoundFault"} + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBLogFiles":{ @@ -661,7 +1660,15 @@ "resultWrapper":"DescribeDBLogFilesResult" }, "errors":[ - {"shape":"DBInstanceNotFoundFault"} + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBParameterGroups":{ @@ -676,7 +1683,15 @@ "resultWrapper":"DescribeDBParameterGroupsResult" }, "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBParameters":{ @@ -691,7 +1706,15 @@ "resultWrapper":"DescribeDBParametersResult" }, "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBSecurityGroups":{ @@ -706,22 +1729,15 @@ "resultWrapper":"DescribeDBSecurityGroupsResult" }, "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"} - ] - }, - "DescribeDBSnapshotAttributes":{ - "name":"DescribeDBSnapshotAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSnapshotAttributesMessage"}, - "output":{ - "shape":"DescribeDBSnapshotAttributesResult", - "resultWrapper":"DescribeDBSnapshotAttributesResult" - }, - "errors":[ - {"shape":"DBSnapshotNotFoundFault"} + { + "shape":"DBSecurityGroupNotFoundFault", + "error":{ + "code":"DBSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBSnapshots":{ @@ -736,7 +1752,15 @@ "resultWrapper":"DescribeDBSnapshotsResult" }, "errors":[ - {"shape":"DBSnapshotNotFoundFault"} + { + "shape":"DBSnapshotNotFoundFault", + "error":{ + "code":"DBSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDBSubnetGroups":{ @@ -751,7 +1775,15 @@ "resultWrapper":"DescribeDBSubnetGroupsResult" }, "errors":[ - {"shape":"DBSubnetGroupNotFoundFault"} + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeEngineDefaultClusterParameters":{ @@ -763,6 +1795,7 @@ "input":{"shape":"DescribeEngineDefaultClusterParametersMessage"}, "output":{ "shape":"DescribeEngineDefaultClusterParametersResult", + "wrapper":true, "resultWrapper":"DescribeEngineDefaultClusterParametersResult" } }, @@ -775,6 +1808,7 @@ "input":{"shape":"DescribeEngineDefaultParametersMessage"}, "output":{ "shape":"DescribeEngineDefaultParametersResult", + "wrapper":true, "resultWrapper":"DescribeEngineDefaultParametersResult" } }, @@ -802,7 +1836,15 @@ "resultWrapper":"DescribeEventSubscriptionsResult" }, "errors":[ - {"shape":"SubscriptionNotFoundFault"} + { + "shape":"SubscriptionNotFoundFault", + "error":{ + "code":"SubscriptionNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeEvents":{ @@ -841,7 +1883,15 @@ "resultWrapper":"DescribeOptionGroupsResult" }, "errors":[ - {"shape":"OptionGroupNotFoundFault"} + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeOrderableDBInstanceOptions":{ @@ -868,7 +1918,15 @@ "resultWrapper":"DescribePendingMaintenanceActionsResult" }, "errors":[ - {"shape":"ResourceNotFoundFault"} + { + "shape":"ResourceNotFoundFault", + "error":{ + "code":"ResourceNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeReservedDBInstances":{ @@ -883,7 +1941,15 @@ "resultWrapper":"DescribeReservedDBInstancesResult" }, "errors":[ - {"shape":"ReservedDBInstanceNotFoundFault"} + { + "shape":"ReservedDBInstanceNotFoundFault", + "error":{ + "code":"ReservedDBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeReservedDBInstancesOfferings":{ @@ -898,7 +1964,15 @@ "resultWrapper":"DescribeReservedDBInstancesOfferingsResult" }, "errors":[ - {"shape":"ReservedDBInstancesOfferingNotFoundFault"} + { + "shape":"ReservedDBInstancesOfferingNotFoundFault", + "error":{ + "code":"ReservedDBInstancesOfferingNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DownloadDBLogFilePortion":{ @@ -913,8 +1987,24 @@ "resultWrapper":"DownloadDBLogFilePortionResult" }, "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBLogFileNotFoundFault"} + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBLogFileNotFoundFault", + "error":{ + "code":"DBLogFileNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "FailoverDBCluster":{ @@ -926,11 +2016,28 @@ "input":{"shape":"FailoverDBClusterMessage"}, "output":{ "shape":"FailoverDBClusterResult", + "wrapper":true, "resultWrapper":"FailoverDBClusterResult" }, "errors":[ - {"shape":"DBClusterNotFoundFault"}, - {"shape":"InvalidDBClusterStateFault"} + { + "shape":"DBClusterNotFoundFault", + "error":{ + "code":"DBClusterNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBClusterStateFault", + "error":{ + "code":"InvalidDBClusterStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ListTagsForResource":{ @@ -945,8 +2052,24 @@ "resultWrapper":"ListTagsForResourceResult" }, "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSnapshotNotFoundFault", + "error":{ + "code":"DBSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "ModifyDBCluster":{ @@ -958,20 +2081,100 @@ "input":{"shape":"ModifyDBClusterMessage"}, "output":{ "shape":"ModifyDBClusterResult", + "wrapper":true, "resultWrapper":"ModifyDBClusterResult" }, "errors":[ - {"shape":"DBClusterNotFoundFault"}, - {"shape":"InvalidDBClusterStateFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidDBSubnetGroupStateFault"}, - {"shape":"InvalidSubnet"}, - {"shape":"DBClusterParameterGroupNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBClusterAlreadyExistsFault"} + { + "shape":"DBClusterNotFoundFault", + "error":{ + "code":"DBClusterNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBClusterStateFault", + "error":{ + "code":"InvalidDBClusterStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSubnetGroupStateFault", + "error":{ + "code":"InvalidDBSubnetGroupStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterParameterGroupNotFoundFault", + "error":{ + "code":"DBClusterParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSecurityGroupStateFault", + "error":{ + "code":"InvalidDBSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBInstanceStateFault", + "error":{ + "code":"InvalidDBInstanceState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyDBClusterParameterGroup":{ @@ -986,25 +2189,24 @@ "resultWrapper":"ModifyDBClusterParameterGroupResult" }, "errors":[ - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InvalidDBParameterGroupStateFault"} - ] - }, - "ModifyDBClusterSnapshotAttribute":{ - "name":"ModifyDBClusterSnapshotAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBClusterSnapshotAttributeMessage"}, - "output":{ - "shape":"ModifyDBClusterSnapshotAttributeResult", - "resultWrapper":"ModifyDBClusterSnapshotAttributeResult" - }, - "errors":[ - {"shape":"DBClusterSnapshotNotFoundFault"}, - {"shape":"InvalidDBClusterSnapshotStateFault"}, - {"shape":"SharedSnapshotQuotaExceededFault"} + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBParameterGroupStateFault", + "error":{ + "code":"InvalidDBParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyDBInstance":{ @@ -1016,25 +2218,145 @@ "input":{"shape":"ModifyDBInstanceMessage"}, "output":{ "shape":"ModifyDBInstanceResult", + "wrapper":true, "resultWrapper":"ModifyDBInstanceResult" }, "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"DBUpgradeDependencyFailureFault"}, - {"shape":"StorageTypeNotSupportedFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"CertificateNotFoundFault"}, - {"shape":"DomainNotFoundFault"} + { + "shape":"InvalidDBInstanceStateFault", + "error":{ + "code":"InvalidDBInstanceState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSecurityGroupStateFault", + "error":{ + "code":"InvalidDBSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBInstanceAlreadyExistsFault", + "error":{ + "code":"DBInstanceAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSecurityGroupNotFoundFault", + "error":{ + "code":"DBSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientDBInstanceCapacityFault", + "error":{ + "code":"InsufficientDBInstanceCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ProvisionedIopsNotAvailableInAZFault", + "error":{ + "code":"ProvisionedIopsNotAvailableInAZFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBUpgradeDependencyFailureFault", + "error":{ + "code":"DBUpgradeDependencyFailure", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageTypeNotSupportedFault", + "error":{ + "code":"StorageTypeNotSupported", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationNotFoundFault", + "error":{ + "code":"AuthorizationNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CertificateNotFoundFault", + "error":{ + "code":"CertificateNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "ModifyDBParameterGroup":{ @@ -1049,25 +2371,24 @@ "resultWrapper":"ModifyDBParameterGroupResult" }, "errors":[ - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InvalidDBParameterGroupStateFault"} - ] - }, - "ModifyDBSnapshotAttribute":{ - "name":"ModifyDBSnapshotAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBSnapshotAttributeMessage"}, - "output":{ - "shape":"ModifyDBSnapshotAttributeResult", - "resultWrapper":"ModifyDBSnapshotAttributeResult" - }, - "errors":[ - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"SharedSnapshotQuotaExceededFault"} + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBParameterGroupStateFault", + "error":{ + "code":"InvalidDBParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyDBSubnetGroup":{ @@ -1079,14 +2400,55 @@ "input":{"shape":"ModifyDBSubnetGroupMessage"}, "output":{ "shape":"ModifyDBSubnetGroupResult", + "wrapper":true, "resultWrapper":"ModifyDBSubnetGroupResult" }, "errors":[ - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetQuotaExceededFault"}, - {"shape":"SubnetAlreadyInUse"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetQuotaExceededFault", + "error":{ + "code":"DBSubnetQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubnetAlreadyInUse", + "error":{ + "code":"SubnetAlreadyInUse", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupDoesNotCoverEnoughAZs", + "error":{ + "code":"DBSubnetGroupDoesNotCoverEnoughAZs", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyEventSubscription":{ @@ -1098,15 +2460,64 @@ "input":{"shape":"ModifyEventSubscriptionMessage"}, "output":{ "shape":"ModifyEventSubscriptionResult", + "wrapper":true, "resultWrapper":"ModifyEventSubscriptionResult" }, "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"} + { + "shape":"EventSubscriptionQuotaExceededFault", + "error":{ + "code":"EventSubscriptionQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionNotFoundFault", + "error":{ + "code":"SubscriptionNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSInvalidTopicFault", + "error":{ + "code":"SNSInvalidTopic", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSNoAuthorizationFault", + "error":{ + "code":"SNSNoAuthorization", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSTopicArnNotFoundFault", + "error":{ + "code":"SNSTopicArnNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionCategoryNotFoundFault", + "error":{ + "code":"SubscriptionCategoryNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "ModifyOptionGroup":{ @@ -1118,11 +2529,28 @@ "input":{"shape":"ModifyOptionGroupMessage"}, "output":{ "shape":"ModifyOptionGroupResult", + "wrapper":true, "resultWrapper":"ModifyOptionGroupResult" }, "errors":[ - {"shape":"InvalidOptionGroupStateFault"}, - {"shape":"OptionGroupNotFoundFault"} + { + "shape":"InvalidOptionGroupStateFault", + "error":{ + "code":"InvalidOptionGroupStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "PromoteReadReplica":{ @@ -1134,11 +2562,28 @@ "input":{"shape":"PromoteReadReplicaMessage"}, "output":{ "shape":"PromoteReadReplicaResult", + "wrapper":true, "resultWrapper":"PromoteReadReplicaResult" }, "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"} + { + "shape":"InvalidDBInstanceStateFault", + "error":{ + "code":"InvalidDBInstanceState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "PurchaseReservedDBInstancesOffering":{ @@ -1150,12 +2595,37 @@ "input":{"shape":"PurchaseReservedDBInstancesOfferingMessage"}, "output":{ "shape":"PurchaseReservedDBInstancesOfferingResult", + "wrapper":true, "resultWrapper":"PurchaseReservedDBInstancesOfferingResult" }, "errors":[ - {"shape":"ReservedDBInstancesOfferingNotFoundFault"}, - {"shape":"ReservedDBInstanceAlreadyExistsFault"}, - {"shape":"ReservedDBInstanceQuotaExceededFault"} + { + "shape":"ReservedDBInstancesOfferingNotFoundFault", + "error":{ + "code":"ReservedDBInstancesOfferingNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ReservedDBInstanceAlreadyExistsFault", + "error":{ + "code":"ReservedDBInstanceAlreadyExists", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ReservedDBInstanceQuotaExceededFault", + "error":{ + "code":"ReservedDBInstanceQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "RebootDBInstance":{ @@ -1167,11 +2637,28 @@ "input":{"shape":"RebootDBInstanceMessage"}, "output":{ "shape":"RebootDBInstanceResult", + "wrapper":true, "resultWrapper":"RebootDBInstanceResult" }, "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"} + { + "shape":"InvalidDBInstanceStateFault", + "error":{ + "code":"InvalidDBInstanceState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "RemoveSourceIdentifierFromSubscription":{ @@ -1183,11 +2670,28 @@ "input":{"shape":"RemoveSourceIdentifierFromSubscriptionMessage"}, "output":{ "shape":"RemoveSourceIdentifierFromSubscriptionResult", + "wrapper":true, "resultWrapper":"RemoveSourceIdentifierFromSubscriptionResult" }, "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SourceNotFoundFault"} + { + "shape":"SubscriptionNotFoundFault", + "error":{ + "code":"SubscriptionNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SourceNotFoundFault", + "error":{ + "code":"SourceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "RemoveTagsFromResource":{ @@ -1198,8 +2702,24 @@ }, "input":{"shape":"RemoveTagsFromResourceMessage"}, "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSnapshotNotFoundFault", + "error":{ + "code":"DBSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "ResetDBClusterParameterGroup":{ @@ -1214,8 +2734,24 @@ "resultWrapper":"ResetDBClusterParameterGroupResult" }, "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} + { + "shape":"InvalidDBParameterGroupStateFault", + "error":{ + "code":"InvalidDBParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "ResetDBParameterGroup":{ @@ -1230,8 +2766,24 @@ "resultWrapper":"ResetDBParameterGroupResult" }, "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} + { + "shape":"InvalidDBParameterGroupStateFault", + "error":{ + "code":"InvalidDBParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBParameterGroupNotFoundFault", + "error":{ + "code":"DBParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "RestoreDBClusterFromSnapshot":{ @@ -1243,26 +2795,154 @@ "input":{"shape":"RestoreDBClusterFromSnapshotMessage"}, "output":{ "shape":"RestoreDBClusterFromSnapshotResult", + "wrapper":true, "resultWrapper":"RestoreDBClusterFromSnapshotResult" }, "errors":[ - {"shape":"DBClusterAlreadyExistsFault"}, - {"shape":"DBClusterQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"DBClusterSnapshotNotFoundFault"}, - {"shape":"InsufficientDBClusterCapacityFault"}, - {"shape":"InsufficientStorageClusterCapacityFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"InvalidDBClusterSnapshotStateFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"InvalidSubnet"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"KMSKeyNotAccessibleFault"} + { + "shape":"DBClusterAlreadyExistsFault", + "error":{ + "code":"DBClusterAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterQuotaExceededFault", + "error":{ + "code":"DBClusterQuotaExceededFault", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSnapshotNotFoundFault", + "error":{ + "code":"DBSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterSnapshotNotFoundFault", + "error":{ + "code":"DBClusterSnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientDBClusterCapacityFault", + "error":{ + "code":"InsufficientDBClusterCapacityFault", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientStorageClusterCapacityFault", + "error":{ + "code":"InsufficientStorageClusterCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSnapshotStateFault", + "error":{ + "code":"InvalidDBSnapshotState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBClusterSnapshotStateFault", + "error":{ + "code":"InvalidDBClusterSnapshotStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidRestoreFault", + "error":{ + "code":"InvalidRestoreFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "RestoreDBClusterToPointInTime":{ @@ -1274,25 +2954,145 @@ "input":{"shape":"RestoreDBClusterToPointInTimeMessage"}, "output":{ "shape":"RestoreDBClusterToPointInTimeResult", + "wrapper":true, "resultWrapper":"RestoreDBClusterToPointInTimeResult" }, "errors":[ - {"shape":"DBClusterAlreadyExistsFault"}, - {"shape":"DBClusterQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBClusterNotFoundFault"}, - {"shape":"DBClusterSnapshotNotFoundFault"}, - {"shape":"InsufficientDBClusterCapacityFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"InvalidDBClusterSnapshotStateFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"InvalidSubnet"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"KMSKeyNotAccessibleFault"} + { + "shape":"DBClusterAlreadyExistsFault", + "error":{ + "code":"DBClusterAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterQuotaExceededFault", + "error":{ + "code":"DBClusterQuotaExceededFault", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterNotFoundFault", + "error":{ + "code":"DBClusterNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBClusterSnapshotNotFoundFault", + "error":{ + "code":"DBClusterSnapshotNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientDBClusterCapacityFault", + "error":{ + "code":"InsufficientDBClusterCapacityFault", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSnapshotStateFault", + "error":{ + "code":"InvalidDBSnapshotState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBClusterSnapshotStateFault", + "error":{ + "code":"InvalidDBClusterSnapshotStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidRestoreFault", + "error":{ + "code":"InvalidRestoreFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "RestoreDBInstanceFromDBSnapshot":{ @@ -1304,27 +3104,163 @@ "input":{"shape":"RestoreDBInstanceFromDBSnapshotMessage"}, "output":{ "shape":"RestoreDBInstanceFromDBSnapshotResult", + "wrapper":true, "resultWrapper":"RestoreDBInstanceFromDBSnapshotResult" }, "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"StorageTypeNotSupportedFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"KMSKeyNotAccessibleFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"DomainNotFoundFault"} + { + "shape":"DBInstanceAlreadyExistsFault", + "error":{ + "code":"DBInstanceAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSnapshotNotFoundFault", + "error":{ + "code":"DBSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InstanceQuotaExceededFault", + "error":{ + "code":"InstanceQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientDBInstanceCapacityFault", + "error":{ + "code":"InsufficientDBInstanceCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSnapshotStateFault", + "error":{ + "code":"InvalidDBSnapshotState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidRestoreFault", + "error":{ + "code":"InvalidRestoreFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupDoesNotCoverEnoughAZs", + "error":{ + "code":"DBSubnetGroupDoesNotCoverEnoughAZs", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ProvisionedIopsNotAvailableInAZFault", + "error":{ + "code":"ProvisionedIopsNotAvailableInAZFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageTypeNotSupportedFault", + "error":{ + "code":"StorageTypeNotSupported", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationNotFoundFault", + "error":{ + "code":"AuthorizationNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSKeyNotAccessibleFault", + "error":{ + "code":"KMSKeyNotAccessibleFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSecurityGroupNotFoundFault", + "error":{ + "code":"DBSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "RestoreDBInstanceToPointInTime":{ @@ -1336,28 +3272,172 @@ "input":{"shape":"RestoreDBInstanceToPointInTimeMessage"}, "output":{ "shape":"RestoreDBInstanceToPointInTimeResult", + "wrapper":true, "resultWrapper":"RestoreDBInstanceToPointInTimeResult" }, "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"PointInTimeRestoreNotEnabledFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"StorageTypeNotSupportedFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"KMSKeyNotAccessibleFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"DomainNotFoundFault"} + { + "shape":"DBInstanceAlreadyExistsFault", + "error":{ + "code":"DBInstanceAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBInstanceNotFoundFault", + "error":{ + "code":"DBInstanceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InstanceQuotaExceededFault", + "error":{ + "code":"InstanceQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientDBInstanceCapacityFault", + "error":{ + "code":"InsufficientDBInstanceCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBInstanceStateFault", + "error":{ + "code":"InvalidDBInstanceState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"PointInTimeRestoreNotEnabledFault", + "error":{ + "code":"PointInTimeRestoreNotEnabled", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageQuotaExceededFault", + "error":{ + "code":"StorageQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidRestoreFault", + "error":{ + "code":"InvalidRestoreFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupNotFoundFault", + "error":{ + "code":"DBSubnetGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSubnetGroupDoesNotCoverEnoughAZs", + "error":{ + "code":"DBSubnetGroupDoesNotCoverEnoughAZs", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ProvisionedIopsNotAvailableInAZFault", + "error":{ + "code":"ProvisionedIopsNotAvailableInAZFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"OptionGroupNotFoundFault", + "error":{ + "code":"OptionGroupNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StorageTypeNotSupportedFault", + "error":{ + "code":"StorageTypeNotSupported", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationNotFoundFault", + "error":{ + "code":"AuthorizationNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"KMSKeyNotAccessibleFault", + "error":{ + "code":"KMSKeyNotAccessibleFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DBSecurityGroupNotFoundFault", + "error":{ + "code":"DBSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "RevokeDBSecurityGroupIngress":{ @@ -1369,12 +3449,37 @@ "input":{"shape":"RevokeDBSecurityGroupIngressMessage"}, "output":{ "shape":"RevokeDBSecurityGroupIngressResult", + "wrapper":true, "resultWrapper":"RevokeDBSecurityGroupIngressResult" }, "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"} + { + "shape":"DBSecurityGroupNotFoundFault", + "error":{ + "code":"DBSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationNotFoundFault", + "error":{ + "code":"AuthorizationNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDBSecurityGroupStateFault", + "error":{ + "code":"InvalidDBSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] } }, @@ -1412,12 +3517,6 @@ "SourceIdentifier":{"shape":"String"} } }, - "AddSourceIdentifierToSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, "AddTagsToResourceMessage":{ "type":"structure", "required":[ @@ -1449,19 +3548,6 @@ "OptInType":{"shape":"String"} } }, - "ApplyPendingMaintenanceActionResult":{ - "type":"structure", - "members":{ - "ResourcePendingMaintenanceActions":{"shape":"ResourcePendingMaintenanceActions"} - } - }, - "AttributeValueList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"AttributeValue" - } - }, "AuthorizationAlreadyExistsFault":{ "type":"structure", "members":{ @@ -1506,12 +3592,6 @@ "EC2SecurityGroupOwnerId":{"shape":"String"} } }, - "AuthorizeDBSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, "AvailabilityZone":{ "type":"structure", "members":{ @@ -1590,12 +3670,6 @@ "Tags":{"shape":"TagList"} } }, - "CopyDBClusterSnapshotResult":{ - "type":"structure", - "members":{ - "DBClusterSnapshot":{"shape":"DBClusterSnapshot"} - } - }, "CopyDBParameterGroupMessage":{ "type":"structure", "required":[ @@ -1610,12 +3684,6 @@ "Tags":{"shape":"TagList"} } }, - "CopyDBParameterGroupResult":{ - "type":"structure", - "members":{ - "DBParameterGroup":{"shape":"DBParameterGroup"} - } - }, "CopyDBSnapshotMessage":{ "type":"structure", "required":[ @@ -1625,15 +3693,7 @@ "members":{ "SourceDBSnapshotIdentifier":{"shape":"String"}, "TargetDBSnapshotIdentifier":{"shape":"String"}, - "KmsKeyId":{"shape":"String"}, - "Tags":{"shape":"TagList"}, - "CopyTags":{"shape":"BooleanOptional"} - } - }, - "CopyDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} + "Tags":{"shape":"TagList"} } }, "CopyOptionGroupMessage":{ @@ -1650,20 +3710,8 @@ "Tags":{"shape":"TagList"} } }, - "CopyOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, "CreateDBClusterMessage":{ "type":"structure", - "required":[ - "DBClusterIdentifier", - "Engine", - "MasterUsername", - "MasterUserPassword" - ], "members":{ "AvailabilityZones":{"shape":"AvailabilityZones"}, "BackupRetentionPeriod":{"shape":"IntegerOptional"}, @@ -1681,10 +3729,7 @@ "OptionGroupName":{"shape":"String"}, "PreferredBackupWindow":{"shape":"String"}, "PreferredMaintenanceWindow":{"shape":"String"}, - "ReplicationSourceIdentifier":{"shape":"String"}, - "Tags":{"shape":"TagList"}, - "StorageEncrypted":{"shape":"BooleanOptional"}, - "KmsKeyId":{"shape":"String"} + "Tags":{"shape":"TagList"} } }, "CreateDBClusterParameterGroupMessage":{ @@ -1701,18 +3746,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateDBClusterParameterGroupResult":{ - "type":"structure", - "members":{ - "DBClusterParameterGroup":{"shape":"DBClusterParameterGroup"} - } - }, - "CreateDBClusterResult":{ - "type":"structure", - "members":{ - "DBCluster":{"shape":"DBCluster"} - } - }, "CreateDBClusterSnapshotMessage":{ "type":"structure", "required":[ @@ -1725,12 +3758,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateDBClusterSnapshotResult":{ - "type":"structure", - "members":{ - "DBClusterSnapshot":{"shape":"DBClusterSnapshot"} - } - }, "CreateDBInstanceMessage":{ "type":"structure", "required":[ @@ -1769,13 +3796,7 @@ "TdeCredentialArn":{"shape":"String"}, "TdeCredentialPassword":{"shape":"String"}, "StorageEncrypted":{"shape":"BooleanOptional"}, - "KmsKeyId":{"shape":"String"}, - "Domain":{"shape":"String"}, - "CopyTagsToSnapshot":{"shape":"BooleanOptional"}, - "MonitoringInterval":{"shape":"IntegerOptional"}, - "MonitoringRoleArn":{"shape":"String"}, - "DomainIAMRoleName":{"shape":"String"}, - "PromotionTier":{"shape":"IntegerOptional"} + "KmsKeyId":{"shape":"String"} } }, "CreateDBInstanceReadReplicaMessage":{ @@ -1796,22 +3817,7 @@ "PubliclyAccessible":{"shape":"BooleanOptional"}, "Tags":{"shape":"TagList"}, "DBSubnetGroupName":{"shape":"String"}, - "StorageType":{"shape":"String"}, - "CopyTagsToSnapshot":{"shape":"BooleanOptional"}, - "MonitoringInterval":{"shape":"IntegerOptional"}, - "MonitoringRoleArn":{"shape":"String"} - } - }, - "CreateDBInstanceReadReplicaResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "CreateDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} + "StorageType":{"shape":"String"} } }, "CreateDBParameterGroupMessage":{ @@ -1828,12 +3834,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateDBParameterGroupResult":{ - "type":"structure", - "members":{ - "DBParameterGroup":{"shape":"DBParameterGroup"} - } - }, "CreateDBSecurityGroupMessage":{ "type":"structure", "required":[ @@ -1846,12 +3846,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateDBSecurityGroupResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, "CreateDBSnapshotMessage":{ "type":"structure", "required":[ @@ -1864,12 +3858,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, "CreateDBSubnetGroupMessage":{ "type":"structure", "required":[ @@ -1884,12 +3872,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateDBSubnetGroupResult":{ - "type":"structure", - "members":{ - "DBSubnetGroup":{"shape":"DBSubnetGroup"} - } - }, "CreateEventSubscriptionMessage":{ "type":"structure", "required":[ @@ -1906,12 +3888,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, "CreateOptionGroupMessage":{ "type":"structure", "required":[ @@ -1928,12 +3904,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, "DBCluster":{ "type":"structure", "members":{ @@ -1958,11 +3928,7 @@ "PreferredBackupWindow":{"shape":"String"}, "PreferredMaintenanceWindow":{"shape":"String"}, "DBClusterMembers":{"shape":"DBClusterMemberList"}, - "VpcSecurityGroups":{"shape":"VpcSecurityGroupMembershipList"}, - "HostedZoneId":{"shape":"String"}, - "StorageEncrypted":{"shape":"Boolean"}, - "KmsKeyId":{"shape":"String"}, - "DbClusterResourceId":{"shape":"String"} + "VpcSecurityGroups":{"shape":"VpcSecurityGroupMembershipList"} }, "wrapper":true }, @@ -1989,8 +3955,7 @@ "members":{ "DBInstanceIdentifier":{"shape":"String"}, "IsClusterWriter":{"shape":"Boolean"}, - "DBClusterParameterGroupStatus":{"shape":"String"}, - "PromotionTier":{"shape":"IntegerOptional"} + "DBClusterParameterGroupStatus":{"shape":"String"} }, "wrapper":true }, @@ -2108,9 +4073,7 @@ "EngineVersion":{"shape":"String"}, "LicenseModel":{"shape":"String"}, "SnapshotType":{"shape":"String"}, - "PercentProgress":{"shape":"Integer"}, - "StorageEncrypted":{"shape":"Boolean"}, - "KmsKeyId":{"shape":"String"} + "PercentProgress":{"shape":"Integer"} }, "wrapper":true }, @@ -2125,28 +4088,6 @@ }, "exception":true }, - "DBClusterSnapshotAttribute":{ - "type":"structure", - "members":{ - "AttributeName":{"shape":"String"}, - "AttributeValues":{"shape":"AttributeValueList"} - } - }, - "DBClusterSnapshotAttributeList":{ - "type":"list", - "member":{ - "shape":"DBClusterSnapshotAttribute", - "locationName":"DBClusterSnapshotAttribute" - } - }, - "DBClusterSnapshotAttributesResult":{ - "type":"structure", - "members":{ - "DBClusterSnapshotIdentifier":{"shape":"String"}, - "DBClusterSnapshotAttributes":{"shape":"DBClusterSnapshotAttributeList"} - }, - "wrapper":true - }, "DBClusterSnapshotList":{ "type":"list", "member":{ @@ -2181,8 +4122,7 @@ "DBEngineDescription":{"shape":"String"}, "DBEngineVersionDescription":{"shape":"String"}, "DefaultCharacterSet":{"shape":"CharacterSet"}, - "SupportedCharacterSets":{"shape":"SupportedCharacterSetsList"}, - "ValidUpgradeTarget":{"shape":"ValidUpgradeTargetList"} + "SupportedCharacterSets":{"shape":"SupportedCharacterSetsList"} } }, "DBEngineVersionList":{ @@ -2240,13 +4180,7 @@ "StorageEncrypted":{"shape":"Boolean"}, "KmsKeyId":{"shape":"String"}, "DbiResourceId":{"shape":"String"}, - "CACertificateIdentifier":{"shape":"String"}, - "DomainMemberships":{"shape":"DomainMembershipList"}, - "CopyTagsToSnapshot":{"shape":"Boolean"}, - "MonitoringInterval":{"shape":"IntegerOptional"}, - "EnhancedMonitoringResourceArn":{"shape":"String"}, - "MonitoringRoleArn":{"shape":"String"}, - "PromotionTier":{"shape":"IntegerOptional"} + "CACertificateIdentifier":{"shape":"String"} }, "wrapper":true }, @@ -2527,29 +4461,6 @@ }, "exception":true }, - "DBSnapshotAttribute":{ - "type":"structure", - "members":{ - "AttributeName":{"shape":"String"}, - "AttributeValues":{"shape":"AttributeValueList"} - }, - "wrapper":true - }, - "DBSnapshotAttributeList":{ - "type":"list", - "member":{ - "shape":"DBSnapshotAttribute", - "locationName":"DBSnapshotAttribute" - } - }, - "DBSnapshotAttributesResult":{ - "type":"structure", - "members":{ - "DBSnapshotIdentifier":{"shape":"String"}, - "DBSnapshotAttributes":{"shape":"DBSnapshotAttributeList"} - }, - "wrapper":true - }, "DBSnapshotList":{ "type":"list", "member":{ @@ -2679,7 +4590,6 @@ }, "DeleteDBClusterMessage":{ "type":"structure", - "required":["DBClusterIdentifier"], "members":{ "DBClusterIdentifier":{"shape":"String"}, "SkipFinalSnapshot":{"shape":"Boolean"}, @@ -2693,12 +4603,6 @@ "DBClusterParameterGroupName":{"shape":"String"} } }, - "DeleteDBClusterResult":{ - "type":"structure", - "members":{ - "DBCluster":{"shape":"DBCluster"} - } - }, "DeleteDBClusterSnapshotMessage":{ "type":"structure", "required":["DBClusterSnapshotIdentifier"], @@ -2706,12 +4610,6 @@ "DBClusterSnapshotIdentifier":{"shape":"String"} } }, - "DeleteDBClusterSnapshotResult":{ - "type":"structure", - "members":{ - "DBClusterSnapshot":{"shape":"DBClusterSnapshot"} - } - }, "DeleteDBInstanceMessage":{ "type":"structure", "required":["DBInstanceIdentifier"], @@ -2721,12 +4619,6 @@ "FinalDBSnapshotIdentifier":{"shape":"String"} } }, - "DeleteDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, "DeleteDBParameterGroupMessage":{ "type":"structure", "required":["DBParameterGroupName"], @@ -2748,12 +4640,6 @@ "DBSnapshotIdentifier":{"shape":"String"} } }, - "DeleteDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, "DeleteDBSubnetGroupMessage":{ "type":"structure", "required":["DBSubnetGroupName"], @@ -2768,12 +4654,6 @@ "SubscriptionName":{"shape":"String"} } }, - "DeleteEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, "DeleteOptionGroupMessage":{ "type":"structure", "required":["OptionGroupName"], @@ -2815,19 +4695,6 @@ "Marker":{"shape":"String"} } }, - "DescribeDBClusterSnapshotAttributesMessage":{ - "type":"structure", - "required":["DBClusterSnapshotIdentifier"], - "members":{ - "DBClusterSnapshotIdentifier":{"shape":"String"} - } - }, - "DescribeDBClusterSnapshotAttributesResult":{ - "type":"structure", - "members":{ - "DBClusterSnapshotAttributesResult":{"shape":"DBClusterSnapshotAttributesResult"} - } - }, "DescribeDBClusterSnapshotsMessage":{ "type":"structure", "members":{ @@ -2836,9 +4703,7 @@ "SnapshotType":{"shape":"String"}, "Filters":{"shape":"FilterList"}, "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"}, - "IncludeShared":{"shape":"Boolean"}, - "IncludePublic":{"shape":"Boolean"} + "Marker":{"shape":"String"} } }, "DescribeDBClustersMessage":{ @@ -2936,19 +4801,6 @@ "Marker":{"shape":"String"} } }, - "DescribeDBSnapshotAttributesMessage":{ - "type":"structure", - "required":["DBSnapshotIdentifier"], - "members":{ - "DBSnapshotIdentifier":{"shape":"String"} - } - }, - "DescribeDBSnapshotAttributesResult":{ - "type":"structure", - "members":{ - "DBSnapshotAttributesResult":{"shape":"DBSnapshotAttributesResult"} - } - }, "DescribeDBSnapshotsMessage":{ "type":"structure", "members":{ @@ -2957,9 +4809,7 @@ "SnapshotType":{"shape":"String"}, "Filters":{"shape":"FilterList"}, "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"}, - "IncludeShared":{"shape":"Boolean"}, - "IncludePublic":{"shape":"Boolean"} + "Marker":{"shape":"String"} } }, "DescribeDBSubnetGroupsMessage":{ @@ -2981,15 +4831,9 @@ "Marker":{"shape":"String"} } }, - "DescribeEngineDefaultClusterParametersResult":{ + "DescribeEngineDefaultParametersMessage":{ "type":"structure", - "members":{ - "EngineDefaults":{"shape":"EngineDefaults"} - } - }, - "DescribeEngineDefaultParametersMessage":{ - "type":"structure", - "required":["DBParameterGroupFamily"], + "required":["DBParameterGroupFamily"], "members":{ "DBParameterGroupFamily":{"shape":"String"}, "Filters":{"shape":"FilterList"}, @@ -2997,12 +4841,6 @@ "Marker":{"shape":"String"} } }, - "DescribeEngineDefaultParametersResult":{ - "type":"structure", - "members":{ - "EngineDefaults":{"shape":"EngineDefaults"} - } - }, "DescribeEventCategoriesMessage":{ "type":"structure", "members":{ @@ -3107,33 +4945,6 @@ "Marker":{"shape":"String"} } }, - "DomainMembership":{ - "type":"structure", - "members":{ - "Domain":{"shape":"String"}, - "Status":{"shape":"String"}, - "FQDN":{"shape":"String"}, - "IAMRoleName":{"shape":"String"} - } - }, - "DomainMembershipList":{ - "type":"list", - "member":{ - "shape":"DomainMembership", - "locationName":"DomainMembership" - } - }, - "DomainNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DomainNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, "Double":{"type":"double"}, "DownloadDBLogFilePortionDetails":{ "type":"structure", @@ -3176,8 +4987,7 @@ "type":"structure", "members":{ "Address":{"shape":"String"}, - "Port":{"shape":"Integer"}, - "HostedZoneId":{"shape":"String"} + "Port":{"shape":"Integer"} } }, "EngineDefaults":{ @@ -3287,12 +5097,6 @@ "DBClusterIdentifier":{"shape":"String"} } }, - "FailoverDBClusterResult":{ - "type":"structure", - "members":{ - "DBCluster":{"shape":"DBCluster"} - } - }, "Filter":{ "type":"structure", "required":[ @@ -3558,7 +5362,6 @@ "Long":{"type":"long"}, "ModifyDBClusterMessage":{ "type":"structure", - "required":["DBClusterIdentifier"], "members":{ "DBClusterIdentifier":{"shape":"String"}, "NewDBClusterIdentifier":{"shape":"String"}, @@ -3584,31 +5387,6 @@ "Parameters":{"shape":"ParametersList"} } }, - "ModifyDBClusterResult":{ - "type":"structure", - "members":{ - "DBCluster":{"shape":"DBCluster"} - } - }, - "ModifyDBClusterSnapshotAttributeMessage":{ - "type":"structure", - "required":[ - "DBClusterSnapshotIdentifier", - "AttributeName" - ], - "members":{ - "DBClusterSnapshotIdentifier":{"shape":"String"}, - "AttributeName":{"shape":"String"}, - "ValuesToAdd":{"shape":"AttributeValueList"}, - "ValuesToRemove":{"shape":"AttributeValueList"} - } - }, - "ModifyDBClusterSnapshotAttributeResult":{ - "type":"structure", - "members":{ - "DBClusterSnapshotAttributesResult":{"shape":"DBClusterSnapshotAttributesResult"} - } - }, "ModifyDBInstanceMessage":{ "type":"structure", "required":["DBInstanceIdentifier"], @@ -3634,21 +5412,7 @@ "StorageType":{"shape":"String"}, "TdeCredentialArn":{"shape":"String"}, "TdeCredentialPassword":{"shape":"String"}, - "CACertificateIdentifier":{"shape":"String"}, - "Domain":{"shape":"String"}, - "CopyTagsToSnapshot":{"shape":"BooleanOptional"}, - "MonitoringInterval":{"shape":"IntegerOptional"}, - "DBPortNumber":{"shape":"IntegerOptional"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "MonitoringRoleArn":{"shape":"String"}, - "DomainIAMRoleName":{"shape":"String"}, - "PromotionTier":{"shape":"IntegerOptional"} - } - }, - "ModifyDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} + "CACertificateIdentifier":{"shape":"String"} } }, "ModifyDBParameterGroupMessage":{ @@ -3662,25 +5426,6 @@ "Parameters":{"shape":"ParametersList"} } }, - "ModifyDBSnapshotAttributeMessage":{ - "type":"structure", - "required":[ - "DBSnapshotIdentifier", - "AttributeName" - ], - "members":{ - "DBSnapshotIdentifier":{"shape":"String"}, - "AttributeName":{"shape":"String"}, - "ValuesToAdd":{"shape":"AttributeValueList"}, - "ValuesToRemove":{"shape":"AttributeValueList"} - } - }, - "ModifyDBSnapshotAttributeResult":{ - "type":"structure", - "members":{ - "DBSnapshotAttributesResult":{"shape":"DBSnapshotAttributesResult"} - } - }, "ModifyDBSubnetGroupMessage":{ "type":"structure", "required":[ @@ -3693,12 +5438,6 @@ "SubnetIds":{"shape":"SubnetIdentifierList"} } }, - "ModifyDBSubnetGroupResult":{ - "type":"structure", - "members":{ - "DBSubnetGroup":{"shape":"DBSubnetGroup"} - } - }, "ModifyEventSubscriptionMessage":{ "type":"structure", "required":["SubscriptionName"], @@ -3710,12 +5449,6 @@ "Enabled":{"shape":"BooleanOptional"} } }, - "ModifyEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, "ModifyOptionGroupMessage":{ "type":"structure", "required":["OptionGroupName"], @@ -3726,12 +5459,6 @@ "ApplyImmediately":{"shape":"Boolean"} } }, - "ModifyOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, "Option":{ "type":"structure", "members":{ @@ -3944,8 +5671,7 @@ "Vpc":{"shape":"Boolean"}, "SupportsStorageEncryption":{"shape":"Boolean"}, "StorageType":{"shape":"String"}, - "SupportsIops":{"shape":"Boolean"}, - "SupportsEnhancedMonitoring":{"shape":"Boolean"} + "SupportsIops":{"shape":"Boolean"} }, "wrapper":true }, @@ -4053,12 +5779,6 @@ "PreferredBackupWindow":{"shape":"String"} } }, - "PromoteReadReplicaResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, "ProvisionedIopsNotAvailableInAZFault":{ "type":"structure", "members":{ @@ -4080,12 +5800,6 @@ "Tags":{"shape":"TagList"} } }, - "PurchaseReservedDBInstancesOfferingResult":{ - "type":"structure", - "members":{ - "ReservedDBInstance":{"shape":"ReservedDBInstance"} - } - }, "ReadReplicaDBInstanceIdentifierList":{ "type":"list", "member":{ @@ -4101,12 +5815,6 @@ "ForceFailover":{"shape":"BooleanOptional"} } }, - "RebootDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, "RecurringCharge":{ "type":"structure", "members":{ @@ -4133,12 +5841,6 @@ "SourceIdentifier":{"shape":"String"} } }, - "RemoveSourceIdentifierFromSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, "RemoveTagsFromResourceMessage":{ "type":"structure", "required":[ @@ -4313,14 +6015,7 @@ "DatabaseName":{"shape":"String"}, "OptionGroupName":{"shape":"String"}, "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "Tags":{"shape":"TagList"}, - "KmsKeyId":{"shape":"String"} - } - }, - "RestoreDBClusterFromSnapshotResult":{ - "type":"structure", - "members":{ - "DBCluster":{"shape":"DBCluster"} + "Tags":{"shape":"TagList"} } }, "RestoreDBClusterToPointInTimeMessage":{ @@ -4338,14 +6033,7 @@ "DBSubnetGroupName":{"shape":"String"}, "OptionGroupName":{"shape":"String"}, "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "Tags":{"shape":"TagList"}, - "KmsKeyId":{"shape":"String"} - } - }, - "RestoreDBClusterToPointInTimeResult":{ - "type":"structure", - "members":{ - "DBCluster":{"shape":"DBCluster"} + "Tags":{"shape":"TagList"} } }, "RestoreDBInstanceFromDBSnapshotMessage":{ @@ -4372,16 +6060,7 @@ "Tags":{"shape":"TagList"}, "StorageType":{"shape":"String"}, "TdeCredentialArn":{"shape":"String"}, - "TdeCredentialPassword":{"shape":"String"}, - "Domain":{"shape":"String"}, - "CopyTagsToSnapshot":{"shape":"BooleanOptional"}, - "DomainIAMRoleName":{"shape":"String"} - } - }, - "RestoreDBInstanceFromDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} + "TdeCredentialPassword":{"shape":"String"} } }, "RestoreDBInstanceToPointInTimeMessage":{ @@ -4407,19 +6086,10 @@ "Engine":{"shape":"String"}, "Iops":{"shape":"IntegerOptional"}, "OptionGroupName":{"shape":"String"}, - "CopyTagsToSnapshot":{"shape":"BooleanOptional"}, "Tags":{"shape":"TagList"}, "StorageType":{"shape":"String"}, "TdeCredentialArn":{"shape":"String"}, - "TdeCredentialPassword":{"shape":"String"}, - "Domain":{"shape":"String"}, - "DomainIAMRoleName":{"shape":"String"} - } - }, - "RestoreDBInstanceToPointInTimeResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} + "TdeCredentialPassword":{"shape":"String"} } }, "RevokeDBSecurityGroupIngressMessage":{ @@ -4433,12 +6103,6 @@ "EC2SecurityGroupOwnerId":{"shape":"String"} } }, - "RevokeDBSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, "SNSInvalidTopicFault":{ "type":"structure", "members":{ @@ -4472,17 +6136,6 @@ }, "exception":true }, - "SharedSnapshotQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SharedSnapshotQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, "SnapshotQuotaExceededFault":{ "type":"structure", "members":{ @@ -4518,9 +6171,7 @@ "db-instance", "db-parameter-group", "db-security-group", - "db-snapshot", - "db-cluster", - "db-cluster-snapshot" + "db-snapshot" ] }, "StorageQuotaExceededFault":{ @@ -4640,23 +6291,6 @@ "TagList":{"shape":"TagList"} } }, - "UpgradeTarget":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "Description":{"shape":"String"}, - "AutoUpgrade":{"shape":"Boolean"}, - "IsMajorVersionUpgrade":{"shape":"Boolean"} - } - }, - "ValidUpgradeTargetList":{ - "type":"list", - "member":{ - "shape":"UpgradeTarget", - "locationName":"UpgradeTarget" - } - }, "VpcSecurityGroupIdList":{ "type":"list", "member":{ @@ -4677,6 +6311,246 @@ "shape":"VpcSecurityGroupMembership", "locationName":"VpcSecurityGroupMembership" } + }, + "AddSourceIdentifierToSubscriptionResult":{ + "type":"structure", + "members":{ + "EventSubscription":{"shape":"EventSubscription"} + } + }, + "ApplyPendingMaintenanceActionResult":{ + "type":"structure", + "members":{ + "ResourcePendingMaintenanceActions":{"shape":"ResourcePendingMaintenanceActions"} + } + }, + "AuthorizeDBSecurityGroupIngressResult":{ + "type":"structure", + "members":{ + "DBSecurityGroup":{"shape":"DBSecurityGroup"} + } + }, + "CopyDBClusterSnapshotResult":{ + "type":"structure", + "members":{ + "DBClusterSnapshot":{"shape":"DBClusterSnapshot"} + } + }, + "CopyDBParameterGroupResult":{ + "type":"structure", + "members":{ + "DBParameterGroup":{"shape":"DBParameterGroup"} + } + }, + "CopyDBSnapshotResult":{ + "type":"structure", + "members":{ + "DBSnapshot":{"shape":"DBSnapshot"} + } + }, + "CopyOptionGroupResult":{ + "type":"structure", + "members":{ + "OptionGroup":{"shape":"OptionGroup"} + } + }, + "CreateDBClusterResult":{ + "type":"structure", + "members":{ + "DBCluster":{"shape":"DBCluster"} + } + }, + "CreateDBClusterParameterGroupResult":{ + "type":"structure", + "members":{ + "DBClusterParameterGroup":{"shape":"DBClusterParameterGroup"} + } + }, + "CreateDBClusterSnapshotResult":{ + "type":"structure", + "members":{ + "DBClusterSnapshot":{"shape":"DBClusterSnapshot"} + } + }, + "CreateDBInstanceResult":{ + "type":"structure", + "members":{ + "DBInstance":{"shape":"DBInstance"} + } + }, + "CreateDBInstanceReadReplicaResult":{ + "type":"structure", + "members":{ + "DBInstance":{"shape":"DBInstance"} + } + }, + "CreateDBParameterGroupResult":{ + "type":"structure", + "members":{ + "DBParameterGroup":{"shape":"DBParameterGroup"} + } + }, + "CreateDBSecurityGroupResult":{ + "type":"structure", + "members":{ + "DBSecurityGroup":{"shape":"DBSecurityGroup"} + } + }, + "CreateDBSnapshotResult":{ + "type":"structure", + "members":{ + "DBSnapshot":{"shape":"DBSnapshot"} + } + }, + "CreateDBSubnetGroupResult":{ + "type":"structure", + "members":{ + "DBSubnetGroup":{"shape":"DBSubnetGroup"} + } + }, + "CreateEventSubscriptionResult":{ + "type":"structure", + "members":{ + "EventSubscription":{"shape":"EventSubscription"} + } + }, + "CreateOptionGroupResult":{ + "type":"structure", + "members":{ + "OptionGroup":{"shape":"OptionGroup"} + } + }, + "DeleteDBClusterResult":{ + "type":"structure", + "members":{ + "DBCluster":{"shape":"DBCluster"} + } + }, + "DeleteDBClusterSnapshotResult":{ + "type":"structure", + "members":{ + "DBClusterSnapshot":{"shape":"DBClusterSnapshot"} + } + }, + "DeleteDBInstanceResult":{ + "type":"structure", + "members":{ + "DBInstance":{"shape":"DBInstance"} + } + }, + "DeleteDBSnapshotResult":{ + "type":"structure", + "members":{ + "DBSnapshot":{"shape":"DBSnapshot"} + } + }, + "DeleteEventSubscriptionResult":{ + "type":"structure", + "members":{ + "EventSubscription":{"shape":"EventSubscription"} + } + }, + "DescribeEngineDefaultClusterParametersResult":{ + "type":"structure", + "members":{ + "EngineDefaults":{"shape":"EngineDefaults"} + } + }, + "DescribeEngineDefaultParametersResult":{ + "type":"structure", + "members":{ + "EngineDefaults":{"shape":"EngineDefaults"} + } + }, + "FailoverDBClusterResult":{ + "type":"structure", + "members":{ + "DBCluster":{"shape":"DBCluster"} + } + }, + "ModifyDBClusterResult":{ + "type":"structure", + "members":{ + "DBCluster":{"shape":"DBCluster"} + } + }, + "ModifyDBInstanceResult":{ + "type":"structure", + "members":{ + "DBInstance":{"shape":"DBInstance"} + } + }, + "ModifyDBSubnetGroupResult":{ + "type":"structure", + "members":{ + "DBSubnetGroup":{"shape":"DBSubnetGroup"} + } + }, + "ModifyEventSubscriptionResult":{ + "type":"structure", + "members":{ + "EventSubscription":{"shape":"EventSubscription"} + } + }, + "ModifyOptionGroupResult":{ + "type":"structure", + "members":{ + "OptionGroup":{"shape":"OptionGroup"} + } + }, + "PromoteReadReplicaResult":{ + "type":"structure", + "members":{ + "DBInstance":{"shape":"DBInstance"} + } + }, + "PurchaseReservedDBInstancesOfferingResult":{ + "type":"structure", + "members":{ + "ReservedDBInstance":{"shape":"ReservedDBInstance"} + } + }, + "RebootDBInstanceResult":{ + "type":"structure", + "members":{ + "DBInstance":{"shape":"DBInstance"} + } + }, + "RemoveSourceIdentifierFromSubscriptionResult":{ + "type":"structure", + "members":{ + "EventSubscription":{"shape":"EventSubscription"} + } + }, + "RestoreDBClusterFromSnapshotResult":{ + "type":"structure", + "members":{ + "DBCluster":{"shape":"DBCluster"} + } + }, + "RestoreDBClusterToPointInTimeResult":{ + "type":"structure", + "members":{ + "DBCluster":{"shape":"DBCluster"} + } + }, + "RestoreDBInstanceFromDBSnapshotResult":{ + "type":"structure", + "members":{ + "DBInstance":{"shape":"DBInstance"} + } + }, + "RestoreDBInstanceToPointInTimeResult":{ + "type":"structure", + "members":{ + "DBInstance":{"shape":"DBInstance"} + } + }, + "RevokeDBSecurityGroupIngressResult":{ + "type":"structure", + "members":{ + "DBSecurityGroup":{"shape":"DBSecurityGroup"} + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/docs-2.json similarity index 58% rename from vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/docs-2.json index 7c321267f..27c4c8493 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/docs-2.json @@ -1,28 +1,41 @@ { "version": "2.0", - "service": "Amazon Relational Database Service

Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

Amazon RDS gives you access to the capabilities of a MySQL, PostgreSQL, Microsoft SQL Server, or Oracle database server. This means the code, applications, and tools you already use today with your existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

This is an interface reference for Amazon RDS. It contains documentation for a programming or command line interface you can use to manage Amazon RDS. Note that Amazon RDS is asynchronous, which means that some interfaces may require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. For a summary of the Amazon RDS interfaces, go to Available RDS Interfaces.

", "operations": { "AddSourceIdentifierToSubscription": "

Adds a source identifier to an existing RDS event notification subscription.

", - "AddTagsToResource": "

Adds metadata tags to an Amazon RDS resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon RDS resources, or used in Condition statement in IAM policy for Amazon RDS.

For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources.

", - "AuthorizeDBSecurityGroupIngress": "

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", + "AddTagsToResource": "

Adds metadata tags to an Amazon RDS resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon RDS resources, or used in a Condition statement in an IAM policy for Amazon RDS.

For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources.

", + "ApplyPendingMaintenanceAction": "

Applies a pending maintenance action to a resource (for example, to a DB instance).

", + "AuthorizeDBSecurityGroupIngress": "

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

You cannot authorize ingress from an EC2 security group in one region to an Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", + "CopyDBClusterSnapshot": "

Creates a snapshot of a DB cluster. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "CopyDBParameterGroup": "

Copies the specified DB parameter group.

", "CopyDBSnapshot": "

Copies the specified DBSnapshot. The source DBSnapshot must be in the \"available\" state.

", "CopyOptionGroup": "

Copies the specified option group.

", + "CreateDBCluster": "

Creates a new Amazon Aurora DB cluster. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "CreateDBClusterParameterGroup": "

Creates a new DB cluster parameter group.

Parameters in a DB cluster parameter group apply to all of the instances in a DB cluster.

A DB cluster parameter group is initially created with the default parameters for the database engine used by instances in the DB cluster. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBClusterParameterGroup. Once you've created a DB cluster parameter group, you need to associate it with your DB cluster using ModifyDBCluster. When you associate a new DB cluster parameter group with a running DB cluster, you need to reboot the DB instances in the DB cluster without failover for the new DB cluster parameter group and associated settings to take effect.

After you create a DB cluster parameter group, you should wait at least 5 minutes before creating your first DB cluster that uses that DB cluster parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the DB cluster parameter group is used as the default for a new DB cluster. This is especially important for parameters that are critical when creating the default database for a DB cluster, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBClusterParameters command to verify that your DB cluster parameter group has been created or modified.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "CreateDBClusterSnapshot": "

Creates a snapshot of a DB cluster. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "CreateDBInstance": "

Creates a new DB instance.

", - "CreateDBInstanceReadReplica": "

Creates a DB instance that acts as a Read Replica of a source DB instance.

All Read Replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance, except as specified below.

The source DB instance must have backup retention enabled.

", + "CreateDBInstanceReadReplica": "

Creates a DB instance for a DB instance running MySQL or PostgreSQL that acts as a Read Replica of a source DB instance.

All Read Replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance, except as specified below.

The source DB instance must have backup retention enabled.

", "CreateDBParameterGroup": "

Creates a new DB parameter group.

A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance. When you associate a new DB parameter group with a running DB instance, you need to reboot the DB instance without failover for the new DB parameter group and associated settings to take effect.

After you create a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

", "CreateDBSecurityGroup": "

Creates a new DB security group. DB security groups control access to a DB instance.

", "CreateDBSnapshot": "

Creates a DBSnapshot. The source DBInstance must be in \"available\" state.

", "CreateDBSubnetGroup": "

Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", "CreateEventSubscription": "

Creates an RDS event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the RDS console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

You can specify the type of source (SourceType) you want to be notified of, provide a list of RDS sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you will receive notice of the events for that source type for all your RDS sources. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all RDS sources belonging to your customer account.

", "CreateOptionGroup": "

Creates a new option group. You can create up to 20 option groups.

", - "DeleteDBInstance": "

The DeleteDBInstance action deletes a previously provisioned DB instance. A successful response from the web service indicates the request was received correctly. When you delete a DB instance, all automated backups for that instance are deleted and cannot be recovered. Manual DB snapshots of the DB instance to be deleted are not deleted.

If a final DB snapshot is requested the status of the RDS instance will be \"deleting\" until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action cannot be canceled or reverted once submitted.

", - "DeleteDBParameterGroup": "

Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted cannot be associated with any DB instances.

The specified DB parameter group cannot be associated with any DB instances. ", + "DeleteDBCluster": "

The DeleteDBCluster action deletes a previously provisioned DB cluster. A successful response from the web service indicates the request was received correctly. When you delete a DB cluster, all automated backups for that DB cluster are deleted and cannot be recovered. Manual DB cluster snapshots of the DB cluster to be deleted are not deleted.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "DeleteDBClusterParameterGroup": "

Deletes a specified DB cluster parameter group. The DB cluster parameter group to be deleted cannot be associated with any DB clusters.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "DeleteDBClusterSnapshot": "

Deletes a DB cluster snapshot. If the snapshot is being copied, the copy operation is terminated.

The DB cluster snapshot must be in the available state to be deleted.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "DeleteDBInstance": "

The DeleteDBInstance action deletes a previously provisioned DB instance. A successful response from the web service indicates the request was received correctly. When you delete a DB instance, all automated backups for that instance are deleted and cannot be recovered. Manual DB snapshots of the DB instance to be deleted are not deleted.

If a final DB snapshot is requested the status of the RDS instance will be \"deleting\" until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action cannot be canceled or reverted once submitted.

Note that when a DB instance is in a failure state and has a status of 'failed', 'incompatible-restore', or 'incompatible-network', it can only be deleted when the SkipFinalSnapshot parameter is set to \"true\".

", + "DeleteDBParameterGroup": "

Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted cannot be associated with any DB instances.

", "DeleteDBSecurityGroup": "

Deletes a DB security group.

The specified DB security group must not be associated with any DB instances.", "DeleteDBSnapshot": "

Deletes a DBSnapshot. If the snapshot is being copied, the copy operation is terminated.

The DBSnapshot must be in the available state to be deleted.", "DeleteDBSubnetGroup": "

Deletes a DB subnet group.

The specified database subnet group must not be associated with any DB instances.", "DeleteEventSubscription": "

Deletes an RDS event notification subscription.

", "DeleteOptionGroup": "

Deletes an existing option group.

", + "DescribeAccountAttributes": "

Lists all of the attributes for a customer account. The attributes include Amazon RDS quotas for the account, such as the number of DB instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value.

This command does not take any parameters.

", + "DescribeCertificates": "

Lists the set of CA certificates provided by Amazon RDS for this AWS account.

", + "DescribeDBClusterParameterGroups": "

Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName parameter is specified, the list will contain only the description of the specified DB cluster parameter group.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "DescribeDBClusterParameters": "

Returns the detailed parameter list for a particular DB cluster parameter group.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "DescribeDBClusterSnapshots": "

Returns information about DB cluster snapshots. This API supports pagination.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "DescribeDBClusters": "

Returns information about provisioned Aurora DB clusters. This API supports pagination.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "DescribeDBEngineVersions": "

Returns a list of the available DB engines.

", "DescribeDBInstances": "

Returns information about provisioned RDS instances. This API supports pagination.

", "DescribeDBLogFiles": "

Returns a list of DB log files for the DB instance.

", @@ -31,45 +44,66 @@ "DescribeDBSecurityGroups": "

Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DB security group.

", "DescribeDBSnapshots": "

Returns information about DB snapshots. This API supports pagination.

", "DescribeDBSubnetGroups": "

Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.

For an overview of CIDR ranges, go to the Wikipedia Tutorial.

", + "DescribeEngineDefaultClusterParameters": "

Returns the default engine and system parameter information for the cluster database engine.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "DescribeEngineDefaultParameters": "

Returns the default engine and system parameter information for the specified database engine.

", - "DescribeEventCategories": "

Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

", + "DescribeEventCategories": "

Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

", "DescribeEventSubscriptions": "

Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify a SubscriptionName, lists the description for that subscription.

", "DescribeEvents": "

Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB instance, DB security group, database snapshot, or DB parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

", "DescribeOptionGroupOptions": "

Describes all available options.

", "DescribeOptionGroups": "

Describes the available option groups.

", "DescribeOrderableDBInstanceOptions": "

Returns a list of orderable DB instance options for the specified engine.

", + "DescribePendingMaintenanceActions": "

Returns a list of resources (for example, DB instances) that have at least one pending maintenance action.

", "DescribeReservedDBInstances": "

Returns information about reserved DB instances for this account, or about a specified reserved DB instance.

", "DescribeReservedDBInstancesOfferings": "

Lists available reserved DB instance offerings.

", - "DownloadDBLogFilePortion": "

Downloads all or a portion of the specified log file.

", + "DownloadDBLogFilePortion": "

Downloads all or a portion of the specified log file, up to 1 MB in size.

", + "FailoverDBCluster": "

Forces a failover for a DB cluster.

A failover for a DB cluster promotes one of the read-only instances in the DB cluster to the master DB instance (the cluster writer) and deletes the current primary instance.

Amazon Aurora will automatically fail over to a read-only instance, if one exists, when the primary instance fails. You can force a failover when you want to simulate a failure of a DB instance for testing. Because each instance in a DB cluster has its own endpoint address, you will need to clean up and re-establish any existing connections that use those endpoint addresses when the failover is complete.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "ListTagsForResource": "

Lists all tags on an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

", + "ModifyDBCluster": "

Modify a setting for an Amazon Aurora DB cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "ModifyDBClusterParameterGroup": "

Modifies the parameters of a DB cluster parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot without failover to the DB cluster associated with the parameter group before the change can take effect.

After you create a DB cluster parameter group, you should wait at least 5 minutes before creating your first DB cluster that uses that DB cluster parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the parameter group is used as the default for a new DB cluster. This is especially important for parameters that are critical when creating the default database for a DB cluster, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBClusterParameters command to verify that your DB cluster parameter group has been created or modified.

", "ModifyDBInstance": "

Modify settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

", "ModifyDBParameterGroup": "

Modifies the parameters of a DB parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot without failover to the DB instance associated with the parameter group before the change can take effect.

After you modify a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the modify action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

", "ModifyDBSubnetGroup": "

Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

", "ModifyEventSubscription": "

Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

", "ModifyOptionGroup": "

Modifies an existing option group.

", - "PromoteReadReplica": "

Promotes a Read Replica DB instance to a standalone DB instance.

We recommend that you enable automated backups on your Read Replica before promoting the Read Replica. This ensures that no backup is taken during the promotion process. Once the instance is promoted to a primary instance, backups are taken based on your backup settings.

", + "PromoteReadReplica": "

Promotes a Read Replica DB instance to a standalone DB instance.

We recommend that you enable automated backups on your Read Replica before promoting the Read Replica. This ensures that no backup is taken during the promotion process. Once the instance is promoted to a primary instance, backups are taken based on your backup settings.

", "PurchaseReservedDBInstancesOffering": "

Purchases a reserved DB instance offering.

", "RebootDBInstance": "

Rebooting a DB instance restarts the database engine service. A reboot also applies to the DB instance any modifications to the associated DB parameter group that were pending. Rebooting a DB instance results in a momentary outage of the instance, during which the DB instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. An Amazon RDS event is created when the reboot is completed.

If your DB instance is deployed in multiple Availability Zones, you can force a failover from one AZ to the other during the reboot. You might force a failover to test the availability of your DB instance deployment or to restore operations to the original AZ after a failover occurs.

The time required to reboot is a function of the specific database engine's crash recovery process. To improve the reboot time, we recommend that you reduce database activities as much as possible during the reboot process to reduce rollback activity for in-transit transactions.

", "RemoveSourceIdentifierFromSubscription": "

Removes a source identifier from an existing RDS event notification subscription.

", "RemoveTagsFromResource": "

Removes metadata tags from an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

", + "ResetDBClusterParameterGroup": "

Modifies the parameters of a DB cluster parameter group to the default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DB cluster parameter group, specify the DBClusterParameterGroupName and ResetAllParameters parameters.

When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request. You must call RebootDBInstance for every DB instance in your DB cluster that you want the updated static parameter to apply to.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", "ResetDBParameterGroup": "

Modifies the parameters of a DB parameter group to the engine/system default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

", - "RestoreDBInstanceFromDBSnapshot": "

Creates a new DB instance from a DB snapshot. The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.

If your intent is to replace your original DB instance with the new, restored DB instance, then rename your original DB instance before you call the RestoreDBInstanceFromDBSnapshot action. RDS does not allow two DB instances with the same name. Once you have renamed your original DB instance with a different identifier, then you can pass the original name of the DB instance as the DBInstanceIdentifier in the call to the RestoreDBInstanceFromDBSnapshot action. The result is that you will replace the original DB instance with the DB instance created from the snapshot.

", - "RestoreDBInstanceToPointInTime": "

Restores a DB instance to an arbitrary point-in-time. Users can restore to any point in time before the LatestRestorableTime for up to BackupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.

", + "RestoreDBClusterFromSnapshot": "

Creates a new DB cluster from a DB cluster snapshot. The target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "RestoreDBClusterToPointInTime": "

Restores a DB cluster to an arbitrary point in time. Users can restore to any point in time before LatestRestorableTime for up to BackupRetentionPeriod days. The target DB cluster is created from the source DB cluster with the same configuration as the original DB cluster, except that the new DB cluster is created with the default DB security group.

For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

", + "RestoreDBInstanceFromDBSnapshot": "

Creates a new DB instance from a DB snapshot. The target database is created from the source database restore point with the most of original configuration, but in a system chosen availability zone with the default security group, the default subnet group, and the default DB parameter group. By default, the new DB instance is created as a single-AZ deployment except when the instance is a SQL Server instance that has an option group that is associated with mirroring; in this case, the instance becomes a mirrored AZ deployment and not a single-AZ deployment.

If your intent is to replace your original DB instance with the new, restored DB instance, then rename your original DB instance before you call the RestoreDBInstanceFromDBSnapshot action. RDS does not allow two DB instances with the same name. Once you have renamed your original DB instance with a different identifier, then you can pass the original name of the DB instance as the DBInstanceIdentifier in the call to the RestoreDBInstanceFromDBSnapshot action. The result is that you will replace the original DB instance with the DB instance created from the snapshot.

", + "RestoreDBInstanceToPointInTime": "

Restores a DB instance to an arbitrary point-in-time. Users can restore to any point in time before the LatestRestorableTime for up to BackupRetentionPeriod days. The target database is created with the most of original configuration, but in a system chosen availability zone with the default security group, the default subnet group, and the default DB parameter group. By default, the new DB instance is created as a single-AZ deployment except when the instance is a SQL Server instance that has an option group that is associated with mirroring; in this case, the instance becomes a mirrored deployment and not a single-AZ deployment.

", "RevokeDBSecurityGroupIngress": "

Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

" }, + "service": "Amazon Relational Database Service

Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizeable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

Amazon RDS gives you access to the capabilities of a MySQL, PostgreSQL, Microsoft SQL Server, Oracle, or Aurora database server. This means the code, applications, and tools you already use today with your existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

This is an interface reference for Amazon RDS. It contains documentation for a programming or command line interface you can use to manage Amazon RDS. Note that Amazon RDS is asynchronous, which means that some interfaces might require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. For a summary of the Amazon RDS interfaces, go to Available RDS Interfaces.

", "shapes": { - "AddSourceIdentifierToSubscriptionMessage": { - "base": "

", + "AccountAttributesMessage": { + "base": "

Data returned by the DescribeAccountAttributes action.

", "refs": { } }, - "AddSourceIdentifierToSubscriptionResult": { + "AccountQuota": { + "base": "

Describes a quota for an AWS account, for example, the number of DB instances allowed.

", + "refs": { + "AccountQuotaList$member": null + } + }, + "AccountQuotaList": { "base": null, + "refs": { + "AccountAttributesMessage$AccountQuotas": "

A list of AccountQuota objects. Within this list, each quota has a name, a count of usage toward the quota maximum, and a maximum value for the quota.

" + } + }, + "AddSourceIdentifierToSubscriptionMessage": { + "base": "

", "refs": { } }, "AddTagsToResourceMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -79,6 +113,11 @@ "Parameter$ApplyMethod": "

Indicates when to apply parameter updates.

" } }, + "ApplyPendingMaintenanceActionMessage": { + "base": "

", + "refs": { + } + }, "AuthorizationAlreadyExistsFault": { "base": "

The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

", "refs": { @@ -95,17 +134,12 @@ } }, "AuthorizeDBSecurityGroupIngressMessage": { - "base": "

", - "refs": { - } - }, - "AuthorizeDBSecurityGroupIngressResult": { - "base": null, + "base": "

", "refs": { } }, "AvailabilityZone": { - "base": "

Contains Availability Zone information.

This data type is used as an element in the following data type:

", + "base": "

Contains Availability Zone information.

This data type is used as an element in the following data type:

", "refs": { "AvailabilityZoneList$member": null, "Subnet$SubnetAvailabilityZone": null @@ -114,20 +148,34 @@ "AvailabilityZoneList": { "base": null, "refs": { - "OrderableDBInstanceOption$AvailabilityZones": "

A list of availability zones for the orderable DB instance.

" + "OrderableDBInstanceOption$AvailabilityZones": "

A list of Availability Zones for the orderable DB instance.

" + } + }, + "AvailabilityZones": { + "base": null, + "refs": { + "CreateDBClusterMessage$AvailabilityZones": "

A list of EC2 Availability Zones that instances in the DB cluster can be created in. For information on regions and Availability Zones, see Regions and Availability Zones.

", + "DBCluster$AvailabilityZones": "

Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

", + "DBClusterSnapshot$AvailabilityZones": "

Provides the list of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

", + "RestoreDBClusterFromSnapshotMessage$AvailabilityZones": "

Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.

" } }, "Boolean": { "base": null, "refs": { + "DBClusterMember$IsClusterWriter": "

Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

", "DBInstance$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

", "DBInstance$AutoMinorVersionUpgrade": "

Indicates that minor version patches are applied automatically.

", - "DBInstance$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", + "DBInstance$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", + "DBInstance$StorageEncrypted": "

Specifies whether the DB instance is encrypted.

", "DBInstanceStatusInfo$Normal": "

Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

", - "DeleteDBInstanceMessage$SkipFinalSnapshot": "

Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted.

Specify true when deleting a Read Replica.

The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

Default: false

", + "DBSnapshot$Encrypted": "

Specifies whether the DB snapshot is encrypted.

", + "DeleteDBClusterMessage$SkipFinalSnapshot": "

Determines whether a final DB cluster snapshot is created before the DB cluster is deleted. If true is specified, no DB cluster snapshot is created. If false is specified, a DB cluster snapshot is created before the DB cluster is deleted.

You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is false.

Default: false

", + "DeleteDBInstanceMessage$SkipFinalSnapshot": "

Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted.

Note that when a DB instance is in a failure state and has a status of 'failed', 'incompatible-restore', or 'incompatible-network', it can only be deleted when the SkipFinalSnapshot parameter is set to \"true\".

Specify true when deleting a Read Replica.

The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

Default: false

", "DescribeDBEngineVersionsMessage$DefaultOnly": "

Indicates that only the default version of the specified engine or engine and major version combination is returned.

", "DownloadDBLogFilePortionDetails$AdditionalDataPending": "

Boolean value that if true, indicates there is more data to be downloaded.

", "EventSubscription$Enabled": "

A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

", + "ModifyDBClusterMessage$ApplyImmediately": "

A value that specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB cluster.

If this parameter is set to false, changes to the DB cluster are applied during the next maintenance window.

Default: false

", "ModifyDBInstanceMessage$ApplyImmediately": "

Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB instance.

If this parameter is set to false, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and will be applied on the next call to RebootDBInstance, or the next failure reboot. Review the table of parameters in Modifying a DB Instance and Using the Apply Immediately Parameter to see the impact that setting ApplyImmediately to true or false has for each modified parameter and to determine when the changes will be applied.

Default: false

", "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": "

Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.

", "ModifyOptionGroupMessage$ApplyImmediately": "

Indicates whether the changes should be applied immediately, or during the next maintenance window for each instance associated with the option group.

", @@ -143,40 +191,66 @@ "OrderableDBInstanceOption$MultiAZCapable": "

Indicates whether this orderable DB instance is multi-AZ capable.

", "OrderableDBInstanceOption$ReadReplicaCapable": "

Indicates whether this orderable DB instance can have a Read Replica.

", "OrderableDBInstanceOption$Vpc": "

Indicates whether this is a VPC orderable DB instance.

", + "OrderableDBInstanceOption$SupportsStorageEncryption": "

Indicates whether this orderable DB instance supports encrypted storage.

", "OrderableDBInstanceOption$SupportsIops": "

Indicates whether this orderable DB instance supports provisioned IOPS.

", "Parameter$IsModifiable": "

Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

", "ReservedDBInstance$MultiAZ": "

Indicates if the reservation applies to Multi-AZ deployments.

", "ReservedDBInstancesOffering$MultiAZ": "

Indicates if the offering applies to Multi-AZ deployments.

", + "ResetDBClusterParameterGroupMessage$ResetAllParameters": "

A value that is set to true to reset all parameters in the DB cluster parameter group to their default values, and false otherwise. You cannot use this parameter if there is a list of parameter names specified for the Parameters parameter.

", "ResetDBParameterGroupMessage$ResetAllParameters": "

Specifies whether (true) or not (false) to reset all parameters in the DB parameter group to default values.

Default: true

", + "RestoreDBClusterToPointInTimeMessage$UseLatestRestorableTime": "

A value that is set to true to restore the DB cluster to the latest restorable backup time, and false otherwise.

Default: false

Constraints: Cannot be specified if RestoreToTime parameter is provided.

", "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": "

Specifies whether (true) or not (false) the DB instance is restored from the latest backup time.

Default: false

Constraints: Cannot be specified if RestoreTime parameter is provided.

" } }, "BooleanOptional": { "base": null, "refs": { - "CreateDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", + "CreateDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true. Do not set this value if you want a Multi-AZ deployment for a SQL Server DB instance. Multi-AZ for SQL Server is set using the Mirroring option in an option group.

", "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window.

Default: true

", - "CreateDBInstanceMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", + "CreateDBInstanceMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC: true
  • VPC: false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", + "CreateDBInstanceMessage$StorageEncrypted": "

Specifies whether the DB instance is encrypted.

Default: false

", "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the Read Replica during the maintenance window.

Default: Inherits from the source DB instance

", - "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", + "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

", "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

If this parameter is specified, and if the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

", "DescribeOrderableDBInstanceOptionsMessage$Vpc": "

The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

", "DescribeReservedDBInstancesMessage$MultiAZ": "

The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter.

", "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": "

The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter.

", - "ModifyDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Constraints: Cannot be specified if the DB instance is a Read Replica.

", + "ModifyDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Constraints: Cannot be specified if the DB instance is a Read Replica. This parameter cannot be used with SQL Server DB instances. Multi-AZ for SQL Server DB instances is set using the Mirroring option in an option group associated with the DB instance.

", "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and RDS has enabled auto patching for that engine version.

", "ModifyEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription.

", "PendingModifiedValues$MultiAZ": "

Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

", "RebootDBInstanceMessage$ForceFailover": "

When true, the reboot will be conducted through a MultiAZ failover.

Constraint: You cannot specify true if the instance is not configured for MultiAZ.

", "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", + "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC: true
  • VPC: false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window.

", "RestoreDBInstanceToPointInTimeMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", - "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", + "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": "

Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

  • Default VPC:true
  • VPC:false

If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

", "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window.

" } }, + "Certificate": { + "base": "

A CA certificate for an AWS account.

", + "refs": { + "CertificateList$member": null + } + }, + "CertificateList": { + "base": null, + "refs": { + "CertificateMessage$Certificates": "

The list of Certificate objects for the AWS account.

" + } + }, + "CertificateMessage": { + "base": "

Data returned by the DescribeCertificates action.

", + "refs": { + } + }, + "CertificateNotFoundFault": { + "base": "

CertificateIdentifier does not refer to an existing certificate.

", + "refs": { + } + }, "CharacterSet": { "base": "

This data type is used as a response element in the action DescribeDBEngineVersions.

", "refs": { @@ -184,38 +258,43 @@ "SupportedCharacterSetsList$member": null } }, - "CopyDBParameterGroupMessage": { - "base": "

", + "CopyDBClusterSnapshotMessage": { + "base": "

", "refs": { } }, - "CopyDBParameterGroupResult": { - "base": null, + "CopyDBParameterGroupMessage": { + "base": "

", "refs": { } }, "CopyDBSnapshotMessage": { - "base": "

", + "base": "

", "refs": { } }, - "CopyDBSnapshotResult": { - "base": null, + "CopyOptionGroupMessage": { + "base": "

", "refs": { } }, - "CopyOptionGroupMessage": { - "base": "

", + "CreateDBClusterMessage": { + "base": "

", "refs": { } }, - "CopyOptionGroupResult": { - "base": null, + "CreateDBClusterParameterGroupMessage": { + "base": "

", + "refs": { + } + }, + "CreateDBClusterSnapshotMessage": { + "base": "

", "refs": { } }, "CreateDBInstanceMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -224,73 +303,158 @@ "refs": { } }, - "CreateDBInstanceReadReplicaResult": { - "base": null, + "CreateDBParameterGroupMessage": { + "base": "

", "refs": { } }, - "CreateDBInstanceResult": { - "base": null, + "CreateDBSecurityGroupMessage": { + "base": "

", "refs": { } }, - "CreateDBParameterGroupMessage": { - "base": "

", + "CreateDBSnapshotMessage": { + "base": "

", "refs": { } }, - "CreateDBParameterGroupResult": { - "base": null, + "CreateDBSubnetGroupMessage": { + "base": "

", "refs": { } }, - "CreateDBSecurityGroupMessage": { - "base": "

", + "CreateEventSubscriptionMessage": { + "base": "

", "refs": { } }, - "CreateDBSecurityGroupResult": { + "CreateOptionGroupMessage": { + "base": "

", + "refs": { + } + }, + "DBCluster": { + "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBClusters action.

", + "refs": { + "DBClusterList$member": null, + "CreateDBClusterResult$DBCluster": null, + "DeleteDBClusterResult$DBCluster": null, + "FailoverDBClusterResult$DBCluster": null, + "ModifyDBClusterResult$DBCluster": null, + "RestoreDBClusterFromSnapshotResult$DBCluster": null, + "RestoreDBClusterToPointInTimeResult$DBCluster": null + } + }, + "DBClusterAlreadyExistsFault": { + "base": "

User already has a DB cluster with the given identifier.

", + "refs": { + } + }, + "DBClusterList": { "base": null, "refs": { + "DBClusterMessage$DBClusters": "

Contains a list of DB clusters for the user.

" } }, - "CreateDBSnapshotMessage": { - "base": "

", + "DBClusterMember": { + "base": "

Contains information about an instance that is part of a DB cluster.

", "refs": { + "DBClusterMemberList$member": null } }, - "CreateDBSnapshotResult": { + "DBClusterMemberList": { "base": null, "refs": { + "DBCluster$DBClusterMembers": "

Provides the list of instances that make up the DB cluster.

" } }, - "CreateDBSubnetGroupMessage": { - "base": "

", + "DBClusterMessage": { + "base": "

Contains the result of a successful invocation of the DescribeDBClusters action.

", "refs": { } }, - "CreateDBSubnetGroupResult": { + "DBClusterNotFoundFault": { + "base": "

DBClusterIdentifier does not refer to an existing DB cluster.

", + "refs": { + } + }, + "DBClusterOptionGroupMemberships": { "base": null, "refs": { + "DBCluster$DBClusterOptionGroupMemberships": "

Provides the list of option group memberships for this DB cluster.

" } }, - "CreateEventSubscriptionMessage": { - "base": "

", + "DBClusterOptionGroupStatus": { + "base": "

Contains status information for a DB cluster option group.

", "refs": { + "DBClusterOptionGroupMemberships$member": null } }, - "CreateEventSubscriptionResult": { + "DBClusterParameterGroup": { + "base": "

Contains the result of a successful invocation of the CreateDBClusterParameterGroup action.

This data type is used as a request parameter in the DeleteDBClusterParameterGroup action, and as a response element in the DescribeDBClusterParameterGroups action.

", + "refs": { + "DBClusterParameterGroupList$member": null, + "CreateDBClusterParameterGroupResult$DBClusterParameterGroup": null + } + }, + "DBClusterParameterGroupDetails": { + "base": "

Provides details about a DB cluster parameter group including the parameters in the DB cluster parameter group.

", + "refs": { + } + }, + "DBClusterParameterGroupList": { "base": null, "refs": { + "DBClusterParameterGroupsMessage$DBClusterParameterGroups": "

A list of DB cluster parameter groups.

" } }, - "CreateOptionGroupMessage": { - "base": "

", + "DBClusterParameterGroupNameMessage": { + "base": "

", "refs": { } }, - "CreateOptionGroupResult": { + "DBClusterParameterGroupNotFoundFault": { + "base": "

DBClusterParameterGroupName does not refer to an existing DB Cluster parameter group.

", + "refs": { + } + }, + "DBClusterParameterGroupsMessage": { + "base": "

", + "refs": { + } + }, + "DBClusterQuotaExceededFault": { + "base": "

User attempted to create a new DB cluster and the user has already reached the maximum allowed DB cluster quota.

", + "refs": { + } + }, + "DBClusterSnapshot": { + "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBClusterSnapshots action.

", + "refs": { + "DBClusterSnapshotList$member": null, + "CopyDBClusterSnapshotResult$DBClusterSnapshot": null, + "CreateDBClusterSnapshotResult$DBClusterSnapshot": null, + "DeleteDBClusterSnapshotResult$DBClusterSnapshot": null + } + }, + "DBClusterSnapshotAlreadyExistsFault": { + "base": "

User already has a DB cluster snapshot with the given identifier.

", + "refs": { + } + }, + "DBClusterSnapshotList": { "base": null, + "refs": { + "DBClusterSnapshotMessage$DBClusterSnapshots": "

Provides a list of DB cluster snapshots for the user.

" + } + }, + "DBClusterSnapshotMessage": { + "base": "

Provides a list of DB cluster snapshots for the user as the result of a call to the DescribeDBClusterSnapshots action.

", + "refs": { + } + }, + "DBClusterSnapshotNotFoundFault": { + "base": "

DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.

", "refs": { } }, @@ -312,11 +476,11 @@ } }, "DBInstance": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBInstances action.

", + "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBInstances action.

", "refs": { - "CreateDBInstanceReadReplicaResult$DBInstance": null, - "CreateDBInstanceResult$DBInstance": null, "DBInstanceList$member": null, + "CreateDBInstanceResult$DBInstance": null, + "CreateDBInstanceReadReplicaResult$DBInstance": null, "DeleteDBInstanceResult$DBInstance": null, "ModifyDBInstanceResult$DBInstance": null, "PromoteReadReplicaResult$DBInstance": null, @@ -366,9 +530,9 @@ "DBParameterGroup": { "base": "

Contains the result of a successful invocation of the CreateDBParameterGroup action.

This data type is used as a request parameter in the DeleteDBParameterGroup action, and as a response element in the DescribeDBParameterGroups action.

", "refs": { + "DBParameterGroupList$member": null, "CopyDBParameterGroupResult$DBParameterGroup": null, - "CreateDBParameterGroupResult$DBParameterGroup": null, - "DBParameterGroupList$member": null + "CreateDBParameterGroupResult$DBParameterGroup": null } }, "DBParameterGroupAlreadyExistsFault": { @@ -403,7 +567,7 @@ } }, "DBParameterGroupStatus": { - "base": "

The status of the DB parameter group.

This data type is used as a response element in the following actions:

", + "base": "

The status of the DB parameter group.

This data type is used as a response element in the following actions:

", "refs": { "DBParameterGroupStatusList$member": null } @@ -420,11 +584,11 @@ } }, "DBSecurityGroup": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSecurityGroups action.

", + "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSecurityGroups action.

", "refs": { + "DBSecurityGroups$member": null, "AuthorizeDBSecurityGroupIngressResult$DBSecurityGroup": null, "CreateDBSecurityGroupResult$DBSecurityGroup": null, - "DBSecurityGroups$member": null, "RevokeDBSecurityGroupIngressResult$DBSecurityGroup": null } }, @@ -434,7 +598,7 @@ } }, "DBSecurityGroupMembership": { - "base": "

This data type is used as a response element in the following actions:

", + "base": "

This data type is used as a response element in the following actions:

", "refs": { "DBSecurityGroupMembershipList$member": null } @@ -481,11 +645,11 @@ } }, "DBSnapshot": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSnapshots action.

", + "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSnapshots action.

", "refs": { + "DBSnapshotList$member": null, "CopyDBSnapshotResult$DBSnapshot": null, "CreateDBSnapshotResult$DBSnapshot": null, - "DBSnapshotList$member": null, "DeleteDBSnapshotResult$DBSnapshot": null } }, @@ -511,11 +675,11 @@ } }, "DBSubnetGroup": { - "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSubnetGroups action.

", + "base": "

Contains the result of a successful invocation of the following actions:

This data type is used as a response element in the DescribeDBSubnetGroups action.

", "refs": { - "CreateDBSubnetGroupResult$DBSubnetGroup": null, "DBInstance$DBSubnetGroup": "

Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

", "DBSubnetGroups$member": null, + "CreateDBSubnetGroupResult$DBSubnetGroup": null, "ModifyDBSubnetGroupResult$DBSubnetGroup": null } }, @@ -565,53 +729,83 @@ "refs": { } }, - "DeleteDBInstanceMessage": { - "base": "

", + "DeleteDBClusterMessage": { + "base": "

", "refs": { } }, - "DeleteDBInstanceResult": { - "base": null, + "DeleteDBClusterParameterGroupMessage": { + "base": "

", + "refs": { + } + }, + "DeleteDBClusterSnapshotMessage": { + "base": "

", + "refs": { + } + }, + "DeleteDBInstanceMessage": { + "base": "

", "refs": { } }, "DeleteDBParameterGroupMessage": { - "base": "

", + "base": "

", "refs": { } }, "DeleteDBSecurityGroupMessage": { - "base": "

", + "base": "

", "refs": { } }, "DeleteDBSnapshotMessage": { - "base": "

", + "base": "

", "refs": { } }, - "DeleteDBSnapshotResult": { - "base": null, + "DeleteDBSubnetGroupMessage": { + "base": "

", "refs": { } }, - "DeleteDBSubnetGroupMessage": { - "base": "

", + "DeleteEventSubscriptionMessage": { + "base": "

", "refs": { } }, - "DeleteEventSubscriptionMessage": { - "base": "

", + "DeleteOptionGroupMessage": { + "base": "

", "refs": { } }, - "DeleteEventSubscriptionResult": { - "base": null, + "DescribeAccountAttributesMessage": { + "base": "

", "refs": { } }, - "DeleteOptionGroupMessage": { - "base": "

", + "DescribeCertificatesMessage": { + "base": "

", + "refs": { + } + }, + "DescribeDBClusterParameterGroupsMessage": { + "base": "

", + "refs": { + } + }, + "DescribeDBClusterParametersMessage": { + "base": "

", + "refs": { + } + }, + "DescribeDBClusterSnapshotsMessage": { + "base": "

", + "refs": { + } + }, + "DescribeDBClustersMessage": { + "base": "

", "refs": { } }, @@ -621,7 +815,7 @@ } }, "DescribeDBInstancesMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -638,7 +832,7 @@ } }, "DescribeDBLogFilesMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -648,7 +842,7 @@ } }, "DescribeDBParameterGroupsMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -658,67 +852,72 @@ } }, "DescribeDBSecurityGroupsMessage": { - "base": "

", + "base": "

", "refs": { } }, "DescribeDBSnapshotsMessage": { - "base": "

", + "base": "

", "refs": { } }, "DescribeDBSubnetGroupsMessage": { - "base": "

", + "base": "

", "refs": { } }, - "DescribeEngineDefaultParametersMessage": { - "base": "

", + "DescribeEngineDefaultClusterParametersMessage": { + "base": "

", "refs": { } }, - "DescribeEngineDefaultParametersResult": { - "base": null, + "DescribeEngineDefaultParametersMessage": { + "base": "

", "refs": { } }, "DescribeEventCategoriesMessage": { - "base": "

", + "base": "

", "refs": { } }, "DescribeEventSubscriptionsMessage": { - "base": "

", + "base": "

", "refs": { } }, "DescribeEventsMessage": { - "base": "

", + "base": "

", "refs": { } }, "DescribeOptionGroupOptionsMessage": { - "base": "

", + "base": "

", "refs": { } }, "DescribeOptionGroupsMessage": { - "base": "

", + "base": "

", "refs": { } }, "DescribeOrderableDBInstanceOptionsMessage": { - "base": "

", + "base": "

", + "refs": { + } + }, + "DescribePendingMaintenanceActionsMessage": { + "base": "

", "refs": { } }, "DescribeReservedDBInstancesMessage": { - "base": "

", + "base": "

", "refs": { } }, "DescribeReservedDBInstancesOfferingsMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -738,12 +937,12 @@ } }, "DownloadDBLogFilePortionMessage": { - "base": "

", + "base": "

", "refs": { } }, "EC2SecurityGroup": { - "base": "

This data type is used as a response element in the following actions:

", + "base": "

This data type is used as a response element in the following actions:

", "refs": { "EC2SecurityGroupList$member": null } @@ -755,7 +954,7 @@ } }, "Endpoint": { - "base": "

This data type is used as a response element in the following actions:

", + "base": "

This data type is used as a response element in the following actions:

", "refs": { "DBInstance$Endpoint": "

Specifies the connection endpoint.

" } @@ -763,6 +962,7 @@ "EngineDefaults": { "base": "

Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

", "refs": { + "DescribeEngineDefaultClusterParametersResult$EngineDefaults": null, "DescribeEngineDefaultParametersResult$EngineDefaults": null } }, @@ -809,10 +1009,10 @@ "EventSubscription": { "base": "

Contains the results of a successful invocation of the DescribeEventSubscriptions action.

", "refs": { + "EventSubscriptionsList$member": null, "AddSourceIdentifierToSubscriptionResult$EventSubscription": null, "CreateEventSubscriptionResult$EventSubscription": null, "DeleteEventSubscriptionResult$EventSubscription": null, - "EventSubscriptionsList$member": null, "ModifyEventSubscriptionResult$EventSubscription": null, "RemoveSourceIdentifierFromSubscriptionResult$EventSubscription": null } @@ -838,6 +1038,11 @@ "refs": { } }, + "FailoverDBClusterMessage": { + "base": "

", + "refs": { + } + }, "Filter": { "base": null, "refs": { @@ -847,6 +1052,11 @@ "FilterList": { "base": null, "refs": { + "DescribeCertificatesMessage$Filters": "

This parameter is not currently supported.

", + "DescribeDBClusterParameterGroupsMessage$Filters": "

This parameter is not currently supported.

", + "DescribeDBClusterParametersMessage$Filters": "

This parameter is not currently supported.

", + "DescribeDBClusterSnapshotsMessage$Filters": "

This parameter is not currently supported.

", + "DescribeDBClustersMessage$Filters": "

This parameter is not currently supported.

", "DescribeDBEngineVersionsMessage$Filters": "

Not currently supported.

", "DescribeDBInstancesMessage$Filters": "

This parameter is not currently supported.

", "DescribeDBLogFilesMessage$Filters": "

This parameter is not currently supported.

", @@ -855,6 +1065,7 @@ "DescribeDBSecurityGroupsMessage$Filters": "

This parameter is not currently supported.

", "DescribeDBSnapshotsMessage$Filters": "

This parameter is not currently supported.

", "DescribeDBSubnetGroupsMessage$Filters": "

This parameter is not currently supported.

", + "DescribeEngineDefaultClusterParametersMessage$Filters": "

This parameter is not currently supported.

", "DescribeEngineDefaultParametersMessage$Filters": "

Not currently supported.

", "DescribeEventCategoriesMessage$Filters": "

This parameter is not currently supported.

", "DescribeEventSubscriptionsMessage$Filters": "

This parameter is not currently supported.

", @@ -862,6 +1073,7 @@ "DescribeOptionGroupOptionsMessage$Filters": "

This parameter is not currently supported.

", "DescribeOptionGroupsMessage$Filters": "

This parameter is not currently supported.

", "DescribeOrderableDBInstanceOptionsMessage$Filters": "

This parameter is not currently supported.

", + "DescribePendingMaintenanceActionsMessage$Filters": "

A filter that specifies one or more resources to return pending maintenance actions for.

Supported filters:

  • db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs). The results list will only include pending maintenance actions for the DB instances identified by these ARNs.
", "DescribeReservedDBInstancesMessage$Filters": "

This parameter is not currently supported.

", "DescribeReservedDBInstancesOfferingsMessage$Filters": "

This parameter is not currently supported.

", "ListTagsForResourceMessage$Filters": "

This parameter is not currently supported.

" @@ -890,20 +1102,34 @@ "refs": { } }, + "InsufficientDBClusterCapacityFault": { + "base": "

The DB cluster does not have enough capacity for the current operation.

", + "refs": { + } + }, "InsufficientDBInstanceCapacityFault": { "base": "

Specified DB instance class is not available in the specified Availability Zone.

", "refs": { } }, + "InsufficientStorageClusterCapacityFault": { + "base": "

There is insufficient storage available for the current action. You may be able to resolve this error by updating your subnet group to use different Availability Zones that have more storage available.

", + "refs": { + } + }, "Integer": { "base": null, "refs": { + "DBClusterSnapshot$AllocatedStorage": "

Specifies the allocated storage size in gigabytes (GB).

", + "DBClusterSnapshot$Port": "

Specifies the port that the DB cluster was listening on at the time of the snapshot.

", + "DBClusterSnapshot$PercentProgress": "

Specifies the percentage of the estimated data that has been transferred.

", "DBInstance$AllocatedStorage": "

Specifies the allocated storage size specified in gigabytes.

", "DBInstance$BackupRetentionPeriod": "

Specifies the number of days for which automatic DB snapshots are retained.

", + "DBInstance$DbInstancePort": "

Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this can be a different port than the DB cluster port.

", "DBSnapshot$AllocatedStorage": "

Specifies the allocated storage size in gigabytes (GB).

", "DBSnapshot$Port": "

Specifies the port that the database engine was listening on at the time of the snapshot.

", "DBSnapshot$PercentProgress": "

The percentage of the estimated data that has been transferred.

", - "DownloadDBLogFilePortionMessage$NumberOfLines": "

The number of lines to download.

If the NumberOfLines parameter is specified, then the block of lines returned can be from the beginning or the end of the log file, depending on the value of the Marker parameter.

  • If neither Marker or NumberOfLines are specified, the entire log file is returned.

  • If NumberOfLines is specified and Marker is not specified, then the most recent lines from the end of the log file are returned.

  • If Marker is specified as \"0\", then the specified number of lines from the beginning of the log file are returned.

  • You can download the log file in blocks of lines by specifying the size of the block using the NumberOfLines parameter, and by specifying a value of \"0\" for the Marker parameter in your first request. Include the Marker value returned in the response as the Marker value for the next request, continuing until the AdditionalDataPending response element returns false.

", + "DownloadDBLogFilePortionMessage$NumberOfLines": "

The number of lines to download. If the number of lines specified results in a file over 1 MB in size, the file will be truncated at 1 MB in size.

If the NumberOfLines parameter is specified, then the block of lines returned can be from the beginning or the end of the log file, depending on the value of the Marker parameter.

  • If neither Marker or NumberOfLines are specified, the entire log file is returned.

  • If NumberOfLines is specified and Marker is not specified, then the most recent lines from the end of the log file are returned.

  • If Marker is specified as \"0\", then the specified number of lines from the beginning of the log file are returned.

  • You can download the log file in blocks of lines by specifying the size of the block using the NumberOfLines parameter, and by specifying a value of \"0\" for the Marker parameter in your first request. Include the Marker value returned in the response as the Marker value for the next request, continuing until the AdditionalDataPending response element returns false.

", "Endpoint$Port": "

Specifies the port that the database engine is listening on.

", "ReservedDBInstance$Duration": "

The duration of the reservation in seconds.

", "ReservedDBInstance$DBInstanceCount": "

The number of reserved DB instances.

", @@ -913,34 +1139,48 @@ "IntegerOptional": { "base": null, "refs": { - "CreateDBInstanceMessage$AllocatedStorage": "

The amount of storage (in gigabytes) to be initially allocated for the database instance.

Type: Integer

MySQL

Constraints: Must be an integer from 5 to 3072.

PostgreSQL

Constraints: Must be an integer from 5 to 3072.

Oracle

Constraints: Must be an integer from 10 to 3072.

SQL Server

Constraints: Must be an integer from 200 to 1024 (Standard Edition and Enterprise Edition) or from 20 to 1024 (Express Edition and Web Edition)

", + "CreateDBClusterMessage$BackupRetentionPeriod": "

The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 35
", + "CreateDBClusterMessage$Port": "

The port number on which the instances in the DB cluster accept connections.

Default: 3306

", + "CreateDBInstanceMessage$AllocatedStorage": "

The amount of storage (in gigabytes) to be initially allocated for the database instance.

Type: Integer

MySQL

Constraints: Must be an integer from 5 to 6144.

PostgreSQL

Constraints: Must be an integer from 5 to 6144.

Oracle

Constraints: Must be an integer from 10 to 6144.

SQL Server

Constraints: Must be an integer from 200 to 4096 (Standard Edition and Enterprise Edition) or from 20 to 4096 (Express Edition and Web Edition)

", "CreateDBInstanceMessage$BackupRetentionPeriod": "

The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 35
  • Cannot be set to 0 if the DB instance is a source to Read Replicas
", - "CreateDBInstanceMessage$Port": "

The port number on which the database accepts connections.

MySQL

Default: 3306

Valid Values: 1150-65535

Type: Integer

PostgreSQL

Default: 5432

Valid Values: 1150-65535

Type: Integer

Oracle

Default: 1521

Valid Values: 1150-65535

SQL Server

Default: 1433

Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through 49156.

", + "CreateDBInstanceMessage$Port": "

The port number on which the database accepts connections.

MySQL

Default: 3306

Valid Values: 1150-65535

Type: Integer

PostgreSQL

Default: 5432

Valid Values: 1150-65535

Type: Integer

Oracle

Default: 1521

Valid Values: 1150-65535

SQL Server

Default: 1433

Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through 49156.

", "CreateDBInstanceMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

Constraints: To use PIOPS, this value must be an integer greater than 1000.

", "CreateDBInstanceReadReplicaMessage$Port": "

The port number that the DB instance uses for connections.

Default: Inherits from the source DB instance

Valid Values: 1150-65535

", "CreateDBInstanceReadReplicaMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

", + "DBCluster$AllocatedStorage": "

Specifies the allocated storage size in gigabytes (GB).

", + "DBCluster$BackupRetentionPeriod": "

Specifies the number of days for which automatic DB snapshots are retained.

", + "DBCluster$Port": "

Specifies the port that the database engine is listening on.

", "DBInstance$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value.

", "DBSnapshot$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

", - "DescribeDBEngineVersionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", + "DescribeCertificatesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeDBClusterParameterGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeDBClusterParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeDBClusterSnapshotsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeDBClustersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeDBEngineVersionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", "DescribeDBLogFilesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

", - "DescribeDBParameterGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSecurityGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSnapshotsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeDBSubnetGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEngineDefaultParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeEventSubscriptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", + "DescribeDBParameterGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeDBParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeDBSecurityGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeDBSnapshotsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeDBSubnetGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeEngineDefaultClusterParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeEngineDefaultParametersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeEventSubscriptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", "DescribeEventsMessage$Duration": "

The number of minutes to retrieve events for.

Default: 60

", - "DescribeEventsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOptionGroupOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOptionGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeReservedDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: minimum 20, maximum 100

", - "ModifyDBInstanceMessage$AllocatedStorage": "

The new storage capacity of the RDS instance. Changing this setting does not result in an outage and the change is applied during the next maintenance window unless ApplyImmediately is set to true for this request.

MySQL

Default: Uses existing setting

Valid Values: 5-3072

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

PostgreSQL

Default: Uses existing setting

Valid Values: 5-3072

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

Oracle

Default: Uses existing setting

Valid Values: 10-3072

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

SQL Server

Cannot be modified.

If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

", + "DescribeEventsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeOptionGroupOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeOptionGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribePendingMaintenanceActionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeReservedDBInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": "

The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "ModifyDBClusterMessage$BackupRetentionPeriod": "

The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 35
", + "ModifyDBClusterMessage$Port": "

The port number on which the DB cluster accepts connections.

Constraints: Value must be 1150-65535

Default: The same port as the original DB cluster.

", + "ModifyDBInstanceMessage$AllocatedStorage": "

The new storage capacity of the RDS instance. Changing this setting does not result in an outage and the change is applied during the next maintenance window unless ApplyImmediately is set to true for this request.

MySQL

Default: Uses existing setting

Valid Values: 5-6144

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

PostgreSQL

Default: Uses existing setting

Valid Values: 5-6144

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

Type: Integer

Oracle

Default: Uses existing setting

Valid Values: 10-6144

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

SQL Server

Cannot be modified.

If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a Read Replica for the instance, and creating a DB snapshot of the instance.

", "ModifyDBInstanceMessage$BackupRetentionPeriod": "

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Changing this parameter can result in an outage if you change from 0 to a non-zero value or from a non-zero value to 0. These changes are applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.

Default: Uses existing setting

Constraints:

  • Must be a value from 0 to 35
  • Can be specified for a MySQL Read Replica only if the source is running MySQL 5.6
  • Can be specified for a PostgreSQL Read Replica only if the source is running PostgreSQL 9.3.5
  • Cannot be set to 0 if the DB instance is a source to Read Replicas
", - "ModifyDBInstanceMessage$Iops": "

The new Provisioned IOPS (I/O operations per second) value for the RDS instance. Changing this setting does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Default: Uses existing setting

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value. If you are migrating from Provisioned IOPS to standard storage, set this value to 0. The DB instance will require a reboot for the change in storage type to take effect.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

Type: Integer

If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

", + "ModifyDBInstanceMessage$Iops": "

The new Provisioned IOPS (I/O operations per second) value for the RDS instance. Changing this setting does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

Default: Uses existing setting

Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value. If you are migrating from Provisioned IOPS to standard storage, set this value to 0. The DB instance will require a reboot for the change in storage type to take effect.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

Type: Integer

If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a Read Replica for the instance, and creating a DB snapshot of the instance.

", "Option$Port": "

If required, the port configured for this option to use.

", "OptionConfiguration$Port": "

The optional port for the option.

", "OptionGroupOption$DefaultPort": "

If the option requires a port, specifies the default port for the option.

", @@ -950,10 +1190,22 @@ "PendingModifiedValues$Iops": "

Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.

", "PromoteReadReplicaMessage$BackupRetentionPeriod": "

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

Default: 1

Constraints:

  • Must be a value from 0 to 8
", "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": "

The number of instances to reserve.

Default: 1

", + "RestoreDBClusterFromSnapshotMessage$Port": "

The port number on which the new DB cluster accepts connections.

Constraints: Value must be 1150-65535

Default: The same port as the original DB cluster.

", + "RestoreDBClusterToPointInTimeMessage$Port": "

The port number on which the new DB cluster accepts connections.

Constraints: Value must be 1150-65535

Default: The same port as the original DB cluster.

", "RestoreDBInstanceFromDBSnapshotMessage$Port": "

The port number on which the database accepts connections.

Default: The same port as the original DB instance

Constraints: Value must be 1150-65535

", - "RestoreDBInstanceFromDBSnapshotMessage$Iops": "

Specifies the amount of provisioned IOPS for the DB instance, expressed in I/O operations per second. If this parameter is not specified, the IOPS value will be taken from the backup. If this parameter is set to 0, the new instance will be converted to a non-PIOPS instance, which will take additional time, though your DB instance will be available for connections before the conversion starts.

Constraints: Must be an integer greater than 1000.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

", + "RestoreDBInstanceFromDBSnapshotMessage$Iops": "

Specifies the amount of provisioned IOPS for the DB instance, expressed in I/O operations per second. If this parameter is not specified, the IOPS value will be taken from the backup. If this parameter is set to 0, the new instance will be converted to a non-PIOPS instance, which will take additional time, though your DB instance will be available for connections before the conversion starts.

Constraints: Must be an integer greater than 1000.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

", "RestoreDBInstanceToPointInTimeMessage$Port": "

The port number on which the database accepts connections.

Constraints: Value must be 1150-65535

Default: The same port as the original DB instance.

", - "RestoreDBInstanceToPointInTimeMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

Constraints: Must be an integer greater than 1000.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

" + "RestoreDBInstanceToPointInTimeMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

Constraints: Must be an integer greater than 1000.

SQL Server

Setting the IOPS value for the SQL Server database engine is not supported.

" + } + }, + "InvalidDBClusterSnapshotStateFault": { + "base": "

The supplied value is not a valid DB cluster snapshot state.

", + "refs": { + } + }, + "InvalidDBClusterStateFault": { + "base": "

The supplied value is not a valid DB cluster state.

", + "refs": { } }, "InvalidDBInstanceStateFault": { @@ -1016,6 +1268,11 @@ "refs": { } }, + "KMSKeyNotAccessibleFault": { + "base": "

Error accessing KMS key.

", + "refs": { + } + }, "KeyList": { "base": null, "refs": { @@ -1023,61 +1280,53 @@ } }, "ListTagsForResourceMessage": { - "base": "

", + "base": "

", "refs": { } }, "Long": { "base": null, "refs": { + "AccountQuota$Used": "

The amount currently used toward the quota maximum.

", + "AccountQuota$Max": "

The maximum allowed value for the quota.

", "DescribeDBLogFilesDetails$LastWritten": "

A POSIX timestamp when the last log entry was written.

", "DescribeDBLogFilesDetails$Size": "

The size, in bytes, of the log file for the specified DB instance.

", - "DescribeDBLogFilesMessage$FileLastWritten": "

Filters the available log files for files written since the specified date, in POSIX timestamp format.

", + "DescribeDBLogFilesMessage$FileLastWritten": "

Filters the available log files for files written since the specified date, in POSIX timestamp format with milliseconds.

", "DescribeDBLogFilesMessage$FileSize": "

Filters the available log files for files larger than the specified size.

" } }, - "ModifyDBInstanceMessage": { - "base": "

", + "ModifyDBClusterMessage": { + "base": "

", "refs": { } }, - "ModifyDBInstanceResult": { - "base": null, + "ModifyDBClusterParameterGroupMessage": { + "base": "

", "refs": { } }, - "ModifyDBParameterGroupMessage": { - "base": "

", + "ModifyDBInstanceMessage": { + "base": "

", "refs": { } }, - "ModifyDBSubnetGroupMessage": { - "base": "

", + "ModifyDBParameterGroupMessage": { + "base": "

", "refs": { } }, - "ModifyDBSubnetGroupResult": { - "base": null, + "ModifyDBSubnetGroupMessage": { + "base": "

", "refs": { } }, "ModifyEventSubscriptionMessage": { - "base": "

", - "refs": { - } - }, - "ModifyEventSubscriptionResult": { - "base": null, + "base": "

", "refs": { } }, "ModifyOptionGroupMessage": { - "base": "

", - "refs": { - } - }, - "ModifyOptionGroupResult": { - "base": null, + "base": "

", "refs": { } }, @@ -1100,12 +1349,12 @@ } }, "OptionGroup": { - "base": "

", + "base": "

", "refs": { + "OptionGroupsList$member": null, "CopyOptionGroupResult$OptionGroup": null, "CreateOptionGroupResult$OptionGroup": null, - "ModifyOptionGroupResult$OptionGroup": null, - "OptionGroupsList$member": null + "ModifyOptionGroupResult$OptionGroup": null } }, "OptionGroupAlreadyExistsFault": { @@ -1155,7 +1404,7 @@ } }, "OptionGroupOptionsMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -1238,10 +1487,36 @@ "ParametersList": { "base": null, "refs": { + "DBClusterParameterGroupDetails$Parameters": "

Provides a list of parameters for the DB cluster parameter group.

", "DBParameterGroupDetails$Parameters": "

A list of Parameter values.

", "EngineDefaults$Parameters": "

Contains a list of engine default parameters.

", - "ModifyDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

Valid Values (for the application method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when you reboot the DB instance without failover. ", - "ResetDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

MySQL

Valid Values (for Apply method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB instance reboots.

Oracle

Valid Values (for Apply method): pending-reboot

" + "ModifyDBClusterParameterGroupMessage$Parameters": "

A list of parameters in the DB cluster parameter group to modify.

", + "ModifyDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters can be modified in a single request.

Valid Values (for the application method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when you reboot the DB instance without failover. ", + "ResetDBClusterParameterGroupMessage$Parameters": "

A list of parameter names in the DB cluster parameter group to reset to the default values. You cannot use this parameter if the ResetAllParameters parameter is set to true.

", + "ResetDBParameterGroupMessage$Parameters": "

An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters can be modified in a single request.

MySQL

Valid Values (for Apply method): immediate | pending-reboot

You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB instance reboots.

Oracle

Valid Values (for Apply method): pending-reboot

" + } + }, + "PendingMaintenanceAction": { + "base": "

Provides information about a pending maintenance action for a resource.

", + "refs": { + "PendingMaintenanceActionDetails$member": null + } + }, + "PendingMaintenanceActionDetails": { + "base": null, + "refs": { + "ResourcePendingMaintenanceActions$PendingMaintenanceActionDetails": "

A list that provides details about the pending maintenance actions for the resource.

" + } + }, + "PendingMaintenanceActions": { + "base": null, + "refs": { + "PendingMaintenanceActionsMessage$PendingMaintenanceActions": "

A list of the pending maintenance actions for the resource.

" + } + }, + "PendingMaintenanceActionsMessage": { + "base": "

Data returned from the DescribePendingMaintenanceActions action.

", + "refs": { } }, "PendingModifiedValues": { @@ -1256,12 +1531,7 @@ } }, "PromoteReadReplicaMessage": { - "base": "

", - "refs": { - } - }, - "PromoteReadReplicaResult": { - "base": null, + "base": "

", "refs": { } }, @@ -1271,12 +1541,7 @@ } }, "PurchaseReservedDBInstancesOfferingMessage": { - "base": "

", - "refs": { - } - }, - "PurchaseReservedDBInstancesOfferingResult": { - "base": null, + "base": "

", "refs": { } }, @@ -1287,12 +1552,7 @@ } }, "RebootDBInstanceMessage": { - "base": "

", - "refs": { - } - }, - "RebootDBInstanceResult": { - "base": null, + "base": "

", "refs": { } }, @@ -1310,25 +1570,20 @@ } }, "RemoveSourceIdentifierFromSubscriptionMessage": { - "base": "

", - "refs": { - } - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "base": null, + "base": "

", "refs": { } }, "RemoveTagsFromResourceMessage": { - "base": "

", + "base": "

", "refs": { } }, "ReservedDBInstance": { "base": "

This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.

", "refs": { - "PurchaseReservedDBInstancesOfferingResult$ReservedDBInstance": null, - "ReservedDBInstanceList$member": null + "ReservedDBInstanceList$member": null, + "PurchaseReservedDBInstancesOfferingResult$ReservedDBInstance": null } }, "ReservedDBInstanceAlreadyExistsFault": { @@ -1379,38 +1634,50 @@ "refs": { } }, + "ResetDBClusterParameterGroupMessage": { + "base": "

", + "refs": { + } + }, "ResetDBParameterGroupMessage": { - "base": "

", + "base": "

", "refs": { } }, - "RestoreDBInstanceFromDBSnapshotMessage": { - "base": "

", + "ResourceNotFoundFault": { + "base": "

The specified resource ID was not found.

", "refs": { } }, - "RestoreDBInstanceFromDBSnapshotResult": { - "base": null, + "ResourcePendingMaintenanceActions": { + "base": "

Describes the pending maintenance actions for a resource.

", "refs": { + "PendingMaintenanceActions$member": null, + "ApplyPendingMaintenanceActionResult$ResourcePendingMaintenanceActions": null } }, - "RestoreDBInstanceToPointInTimeMessage": { - "base": "

", + "RestoreDBClusterFromSnapshotMessage": { + "base": "

", "refs": { } }, - "RestoreDBInstanceToPointInTimeResult": { - "base": null, + "RestoreDBClusterToPointInTimeMessage": { + "base": "

", "refs": { } }, - "RevokeDBSecurityGroupIngressMessage": { - "base": "

", + "RestoreDBInstanceFromDBSnapshotMessage": { + "base": "

", "refs": { } }, - "RevokeDBSecurityGroupIngressResult": { - "base": null, + "RestoreDBInstanceToPointInTimeMessage": { + "base": "

", + "refs": { + } + }, + "RevokeDBSecurityGroupIngressMessage": { + "base": "

", "refs": { } }, @@ -1466,54 +1733,84 @@ "String": { "base": null, "refs": { + "AccountQuota$AccountQuotaName": "

The name of the Amazon RDS quota for this AWS account.

", "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to add a source identifier to.

", "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": "

The identifier of the event source to be added. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

Constraints:

  • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
  • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
  • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
  • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
", "AddTagsToResourceMessage$ResourceName": "

The Amazon RDS resource the tags will be added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", + "ApplyPendingMaintenanceActionMessage$ResourceIdentifier": "

The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", + "ApplyPendingMaintenanceActionMessage$ApplyAction": "

The pending maintenance action to apply to this resource.

", + "ApplyPendingMaintenanceActionMessage$OptInType": "

A value that specifies the type of opt-in request, or undoes an opt-in request. An opt-in request of type immediate cannot be undone.

Valid values:

  • immediate - Apply the maintenance action immediately.
  • next-maintenance - Apply the maintenance action during the next maintenance window for the resource.
  • undo-opt-in - Cancel any existing next-maintenance opt-in requests.
", "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

The name of the DB security group to add authorization to.

", "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": "

The IP range to authorize.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", + "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

", "AvailabilityZone$Name": "

The name of the availability zone.

", + "AvailabilityZones$member": null, + "Certificate$CertificateIdentifier": "

The unique key that identifies a certificate.

", + "Certificate$CertificateType": "

The type of the certificate.

", + "Certificate$Thumbprint": "

The thumbprint of the certificate.

", + "CertificateMessage$Marker": "

An optional pagination token provided by a previous DescribeCertificates request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", "CharacterSet$CharacterSetName": "

The name of the character set.

", "CharacterSet$CharacterSetDescription": "

The description of the character set.

", - "CopyDBParameterGroupMessage$SourceDBParameterGroupIdentifier": "

The identifier or ARN for the source DB parameter group.

Constraints:

  • Must specify a valid DB parameter group.
  • If the source DB parameter group is in the same region as the copy, specify a valid DB parameter group identifier, for example my-db-param-group, or a valid ARN.
  • If the source DB parameter group is in a different region than the copy, specify a valid DB parameter group ARN, for example arn:aws:rds:us-west-2:123456789012:pg:special-parameters.
", + "CopyDBClusterSnapshotMessage$SourceDBClusterSnapshotIdentifier": "

The identifier of the DB cluster snapshot to copy. This parameter is not case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster-snapshot1

", + "CopyDBClusterSnapshotMessage$TargetDBClusterSnapshotIdentifier": "

The identifier of the new DB cluster snapshot to create from the source DB cluster snapshot. This parameter is not case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster-snapshot2

", + "CopyDBParameterGroupMessage$SourceDBParameterGroupIdentifier": "

The identifier or ARN for the source DB parameter group. For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

Constraints:

  • Must specify a valid DB parameter group.
  • If the source DB parameter group is in the same region as the copy, specify a valid DB parameter group identifier, for example my-db-param-group, or a valid ARN.
  • If the source DB parameter group is in a different region than the copy, specify a valid DB parameter group ARN, for example arn:aws:rds:us-west-2:123456789012:pg:special-parameters.
", "CopyDBParameterGroupMessage$TargetDBParameterGroupIdentifier": "

The identifier for the copied DB parameter group.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-parameter-group

", "CopyDBParameterGroupMessage$TargetDBParameterGroupDescription": "

A description for the copied DB parameter group.

", "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

The identifier for the source DB snapshot.

Constraints:

  • Must specify a valid system snapshot in the \"available\" state.
  • If the source snapshot is in the same region as the copy, specify a valid DB snapshot identifier.
  • If the source snapshot is in a different region than the copy, specify a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot.

Example: rds:mydb-2012-04-02-00-01

Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805

", "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

The identifier for the copied snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-snapshot

", - "CopyOptionGroupMessage$SourceOptionGroupIdentifier": "

The identifier or ARN for the source option group.

Constraints:

  • Must specify a valid option group.
  • If the source option group is in the same region as the copy, specify a valid option group identifier, for example my-option-group, or a valid ARN.
  • If the source option group is in a different region than the copy, specify a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options.
", + "CopyOptionGroupMessage$SourceOptionGroupIdentifier": "

The identifier or ARN for the source option group. For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

Constraints:

  • Must specify a valid option group.
  • If the source option group is in the same region as the copy, specify a valid option group identifier, for example my-option-group, or a valid ARN.
  • If the source option group is in a different region than the copy, specify a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options.
", "CopyOptionGroupMessage$TargetOptionGroupIdentifier": "

The identifier for the copied option group.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-option-group

", "CopyOptionGroupMessage$TargetOptionGroupDescription": "

The description for the copied option group.

", - "CreateDBInstanceMessage$DBName": "

The meaning of this parameter differs according to the database engine you use.

Type: String

MySQL

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

Constraints:

  • Must contain 1 to 64 alphanumeric characters
  • Cannot be a word reserved by the specified database engine

PostgreSQL

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

Constraints:

  • Must contain 1 to 63 alphanumeric characters
  • Must begin with a letter or an underscore. Subsequent characters can be letters, underscores, or digits (0-9).
  • Cannot be a word reserved by the specified database engine

Oracle

The Oracle System ID (SID) of the created DB instance.

Default: ORCL

Constraints:

  • Cannot be longer than 8 characters

SQL Server

Not applicable. Must be null.

", + "CreateDBClusterMessage$CharacterSetName": "

A value that indicates that the DB cluster should be associated with the specified CharacterSet.

", + "CreateDBClusterMessage$DatabaseName": "

The name for your database of up to 8 alpha-numeric characters. If you do not provide a name, Amazon RDS will not create a database in the DB cluster you are creating.

", + "CreateDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1

", + "CreateDBClusterMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to associate with this DB cluster. If this argument is omitted, default.aurora5.6 for the specified engine will be used.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "CreateDBClusterMessage$DBSubnetGroupName": "

A DB subnet group to associate with this DB cluster.

", + "CreateDBClusterMessage$Engine": "

The name of the database engine to be used for this DB cluster.

Valid Values: MySQL

", + "CreateDBClusterMessage$EngineVersion": "

The version number of the database engine to use.

Aurora

Example: 5.6.0

", + "CreateDBClusterMessage$MasterUsername": "

The name of the master user for the client DB cluster.

Constraints:

  • Must be 1 to 16 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.
", + "CreateDBClusterMessage$MasterUserPassword": "

The password for the master database user. This password can contain any printable ASCII character except \"/\", \"\"\", or \"@\".

Constraints: Must contain from 8 to 41 characters.

", + "CreateDBClusterMessage$OptionGroupName": "

A value that indicates that the DB cluster should be associated with the specified option group.

Permanent options cannot be removed from an option group. The option group cannot be removed from a DB cluster once it is associated with a DB cluster.

", + "CreateDBClusterMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Constraints:

  • Must be in the format hh24:mi-hh24:mi.
  • Times should be in Universal Coordinated Time (UTC).
  • Must not conflict with the preferred maintenance window.
  • Must be at least 30 minutes.
", + "CreateDBClusterMessage$PreferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", + "CreateDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
This value is stored as a lowercase string.", + "CreateDBClusterParameterGroupMessage$DBParameterGroupFamily": "

The DB cluster parameter group family name. A DB cluster parameter group can be associated with one and only one DB cluster parameter group family, and can be applied only to a DB cluster running a database engine and engine version compatible with that DB cluster parameter group family.

", + "CreateDBClusterParameterGroupMessage$Description": "

The description for the DB cluster parameter group.

", + "CreateDBClusterSnapshotMessage$DBClusterSnapshotIdentifier": "

The identifier of the DB cluster snapshot. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1-snapshot1

", + "CreateDBClusterSnapshotMessage$DBClusterIdentifier": "

The identifier of the DB cluster to create a snapshot for. This parameter is not case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1

", + "CreateDBInstanceMessage$DBName": "

The meaning of this parameter differs according to the database engine you use.

Type: String

MySQL

The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

Constraints:

  • Must contain 1 to 64 alphanumeric characters
  • Cannot be a word reserved by the specified database engine

PostgreSQL

The name of the database to create when the DB instance is created. If this parameter is not specified, the default \"postgres\" database is created in the DB instance.

Constraints:

  • Must contain 1 to 63 alphanumeric characters
  • Must begin with a letter or an underscore. Subsequent characters can be letters, underscores, or digits (0-9).
  • Cannot be a word reserved by the specified database engine

Oracle

The Oracle System ID (SID) of the created DB instance.

Default: ORCL

Constraints:

  • Cannot be longer than 8 characters

SQL Server

Not applicable. Must be null.

", "CreateDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server).
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", - "CreateDBInstanceMessage$DBInstanceClass": "

The compute and memory capacity of the DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

", - "CreateDBInstanceMessage$Engine": "

The name of the database engine to be used for this instance.

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

Not every database engine is available for every AWS region.

", - "CreateDBInstanceMessage$MasterUsername": "

The name of master user for the client DB instance.

MySQL

Constraints:

  • Must be 1 to 16 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

Type: String

Oracle

Constraints:

  • Must be 1 to 30 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

SQL Server

Constraints:

  • Must be 1 to 128 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.
", - "CreateDBInstanceMessage$MasterUserPassword": "

The password for the master database user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

Type: String

MySQL

Constraints: Must contain from 8 to 41 characters.

Oracle

Constraints: Must contain from 8 to 30 characters.

SQL Server

Constraints: Must contain from 8 to 128 characters.

", - "CreateDBInstanceMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in. For information on regions and Availability Zones, see Regions and Availability Zones.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same region as the current endpoint.

", + "CreateDBInstanceMessage$DBInstanceClass": "

The compute and memory capacity of the DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

", + "CreateDBInstanceMessage$Engine": "

The name of the database engine to be used for this instance.

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

Not every database engine is available for every AWS region.

", + "CreateDBInstanceMessage$MasterUsername": "

The name of master user for the client DB instance.

MySQL

Constraints:

  • Must be 1 to 16 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

Type: String

Oracle

Constraints:

  • Must be 1 to 30 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

SQL Server

Constraints:

  • Must be 1 to 128 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.

PostgreSQL

Constraints:

  • Must be 1 to 63 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word for the chosen database engine.
", + "CreateDBInstanceMessage$MasterUserPassword": "

The password for the master database user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

Type: String

MySQL

Constraints: Must contain from 8 to 41 characters.

Oracle

Constraints: Must contain from 8 to 30 characters.

SQL Server

Constraints: Must contain from 8 to 128 characters.

PostgreSQL

Constraints: Must contain from 8 to 128 characters.

", + "CreateDBInstanceMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in. For information on regions and Availability Zones, see Regions and Availability Zones.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same region as the current endpoint.

", "CreateDBInstanceMessage$DBSubnetGroupName": "

A DB subnet group to associate with this DB instance.

If there is no DB subnet group, then it is a non-VPC DB instance.

", - "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur. For more information, see DB Instance Maintenance.

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", + "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). For more information, see DB Instance Maintenance.

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", "CreateDBInstanceMessage$DBParameterGroupName": "

The name of the DB parameter group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "CreateDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter. For more information, see DB Instance Backups.

Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.

Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

", - "CreateDBInstanceMessage$EngineVersion": "

The version number of the database engine to use.

The following are the database engines and major and minor versions that are available with Amazon RDS. Not every database engine is available for every AWS region.

MySQL

  • Version 5.1: 5.1.45 | 5.1.49 | 5.1.50 | 5.1.57 | 5.1.61 | 5.1.62 | 5.1.63 | 5.1.69 | 5.1.71 | 5.1.73
  • Version 5.5: 5.5.12 | 5.5.20 | 5.5.23 | 5.5.25a | 5.5.27 | 5.5.31 | 5.5.33 | 5.5.37 | 5.5.38 | 5.5.8
  • Version 5.6: 5.6.12 | 5.6.13 | 5.6.17 | 5.6.19 | 5.6.21

Oracle Database Enterprise Edition (oracle-ee)

  • Version 11.2: 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 | 11.2.0.3.v1 | 11.2.0.4.v1

Oracle Database Standard Edition (oracle-se)

  • Version 11.2: 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 | 11.2.0.3.v1 | 11.2.0.4.v1

Oracle Database Standard Edition One (oracle-se1)

  • Version 11.2: 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 | 11.2.0.3.v1 | 11.2.0.4.v1

PostgreSQL

  • Version 9.3: 9.3.1 | 9.3.2 | 9.3.3

Microsoft SQL Server Enterprise Edition (sqlserver-ee)

  • Version 10.5: 10.50.2789.0.v1
  • Version 11.0: 11.00.2100.60.v1

Microsoft SQL Server Express Edition (sqlserver-ex)

  • Version 10.5: 10.50.2789.0.v1
  • Version 11.0: 11.00.2100.60.v1

Microsoft SQL Server Standard Edition (sqlserver-se)

  • Version 10.5: 10.50.2789.0.v1
  • Version 11.0: 11.00.2100.60.v1

Microsoft SQL Server Web Edition (sqlserver-web)

  • Version 10.5: 10.50.2789.0.v1
  • Version 11.0: 11.00.2100.60.v1
", - "CreateDBInstanceMessage$LicenseModel": "

License model information for this DB instance.

Valid values: license-included | bring-your-own-license | general-public-license

", + "CreateDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter. For more information, see DB Instance Backups.

Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Constraints:

  • Must be in the format hh24:mi-hh24:mi.
  • Times should be in Universal Coordinated Time (UTC).
  • Must not conflict with the preferred maintenance window.
  • Must be at least 30 minutes.
", + "CreateDBInstanceMessage$EngineVersion": "

The version number of the database engine to use.

The following are the database engines and major and minor versions that are available with Amazon RDS. Not every database engine is available for every AWS region.

MySQL

  • Version 5.1 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 5.1.73a | 5.1.73b
  • Version 5.5 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 5.5.40 | 5.5.40a
  • Version 5.5 (Available in all regions): 5.5.40b | 5.5.41 | 5.5.42
  • Version 5.6 (Available in all regions): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 | 5.6.23

MySQL

  • Version 5.1 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 5.1.73a | 5.1.73b
  • Version 5.5 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 5.5.40 | 5.5.40a
  • Version 5.5 (Available in all regions): 5.5.40b | 5.5.41 | 5.5.42
  • Version 5.6 (Available in all regions): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 | 5.6.23

MySQL

  • Version 5.1 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 5.1.73a | 5.1.73b
  • Version 5.5 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 5.5.40 | 5.5.40a
  • Version 5.5 (Available in all regions): 5.5.40b | 5.5.41 | 5.5.42
  • Version 5.6 (Available in all regions): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 | 5.6.23

MySQL

  • Version 5.1 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 5.1.73a | 5.1.73b
  • Version 5.5 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 5.5.40 | 5.5.40a
  • Version 5.5 (Available in all regions): 5.5.40b | 5.5.41 | 5.5.42
  • Version 5.6 (Available in all regions): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 | 5.6.23

Oracle Database Enterprise Edition (oracle-ee)

  • Version 11.2 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  • Version 11.2 (Available in all regions): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3
  • Version 12.1 (Available in all regions): 12.1.0.1.v1

Oracle Database Enterprise Edition (oracle-ee)

  • Version 11.2 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  • Version 11.2 (Available in all regions): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3
  • Version 12.1 (Available in all regions): 12.1.0.1.v1

Oracle Database Enterprise Edition (oracle-ee)

  • Version 11.2 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  • Version 11.2 (Available in all regions): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3
  • Version 12.1 (Available in all regions): 12.1.0.1.v1

Oracle Database Standard Edition (oracle-se)

  • Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  • Version 11.2 (Only available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3
  • Version 12.1 (Only available in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1

Oracle Database Standard Edition (oracle-se)

  • Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  • Version 11.2 (Only available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3
  • Version 12.1 (Only available in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1

Oracle Database Standard Edition (oracle-se)

  • Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  • Version 11.2 (Only available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3
  • Version 12.1 (Only available in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1

Oracle Database Standard Edition One (oracle-se1)

  • Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  • Version 11.2 (Only available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3
  • Version 12.1 (Only available in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1

Oracle Database Standard Edition One (oracle-se1)

  • Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  • Version 11.2 (Only available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3
  • Version 12.1 (Only available in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1

Oracle Database Standard Edition One (oracle-se1)

  • Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  • Version 11.2 (Only available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3
  • Version 12.1 (Only available in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1

PostgreSQL

  • Version 9.3 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 9.3.1 | 9.3.2
  • Version 9.3 (Available in all regions): 9.3.3 | 9.3.5 | 9.3.6
  • Version 9.4 (Available in all regions): 9.4.1

PostgreSQL

  • Version 9.3 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 9.3.1 | 9.3.2
  • Version 9.3 (Available in all regions): 9.3.3 | 9.3.5 | 9.3.6
  • Version 9.4 (Available in all regions): 9.4.1

PostgreSQL

  • Version 9.3 (Only available in the following regions: ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): 9.3.1 | 9.3.2
  • Version 9.3 (Available in all regions): 9.3.3 | 9.3.5 | 9.3.6
  • Version 9.4 (Available in all regions): 9.4.1

Microsoft SQL Server Enterprise Edition (sqlserver-ee)

  • Version 10.50 (Only available in the following regions: eu-central-1, us-west-1): 10.50.2789.0.v1
  • Version 11.00 (Only available in the following regions: eu-central-1, us-west-1): 11.00.2100.60.v1

Microsoft SQL Server Enterprise Edition (sqlserver-ee)

  • Version 10.50 (Only available in the following regions: eu-central-1, us-west-1): 10.50.2789.0.v1
  • Version 11.00 (Only available in the following regions: eu-central-1, us-west-1): 11.00.2100.60.v1

Microsoft SQL Server Express Edition (sqlserver-ex)

  • Version 10.50 (Available in all regions): 10.50.2789.0.v1
  • Version 11.00 (Available in all regions): 11.00.2100.60.v1

Microsoft SQL Server Express Edition (sqlserver-ex)

  • Version 10.50 (Available in all regions): 10.50.2789.0.v1
  • Version 11.00 (Available in all regions): 11.00.2100.60.v1

Microsoft SQL Server Standard Edition (sqlserver-se)

  • Version 10.50 (Available in all regions): 10.50.2789.0.v1
  • Version 11.00 (Available in all regions): 11.00.2100.60.v1

Microsoft SQL Server Standard Edition (sqlserver-se)

  • Version 10.50 (Available in all regions): 10.50.2789.0.v1
  • Version 11.00 (Available in all regions): 11.00.2100.60.v1

Microsoft SQL Server Web Edition (sqlserver-web)

  • Version 10.50 (Available in all regions): 10.50.2789.0.v1
  • Version 11.00 (Available in all regions): 11.00.2100.60.v1

Microsoft SQL Server Web Edition (sqlserver-web)

  • Version 10.50 (Available in all regions): 10.50.2789.0.v1
  • Version 11.00 (Available in all regions): 11.00.2100.60.v1
", + "CreateDBInstanceMessage$LicenseModel": "

License model information for this DB instance.

Valid values: license-included | bring-your-own-license | general-public-license

", "CreateDBInstanceMessage$OptionGroupName": "

Indicates that the DB instance should be associated with the specified option group.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", "CreateDBInstanceMessage$CharacterSetName": "

For supported engines, indicates that the DB instance should be associated with the specified CharacterSet.

", - "CreateDBInstanceMessage$StorageType": "

Specifies storage type to be associated with the DB Instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", + "CreateDBInstanceMessage$DBClusterIdentifier": "

The identifier of the DB cluster that the instance will belong to.

For information on creating a DB cluster, see CreateDBCluster.

Type: String

", + "CreateDBInstanceMessage$StorageType": "

Specifies the storage type to be associated with the DB instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", "CreateDBInstanceMessage$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", "CreateDBInstanceMessage$TdeCredentialPassword": "

The password for the given ARN from the Key Store in order to access the device.

", - "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

The DB instance identifier of the Read Replica. This is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.

", + "CreateDBInstanceMessage$KmsKeyId": "

The KMS key identifier for an encrypted DB instance.

The KMS key identifier is the Amazon Resoure Name (ARN) for the KMS encryption key. If you are creating a DB instance with the same AWS account that owns the KMS encryption key used to encrypt the new DB instance, then you can use the KMS key alias instead of the ARN for the KM encryption key.

If the StorageEncrypted parameter is true, and you do not specify a value for the KmsKeyId parameter, then Amazon RDS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

", + "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

The DB instance identifier of the Read Replica. This identifier is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.

", "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

The identifier of the DB instance that will act as the source for the Read Replica. Each DB instance can have up to five Read Replicas.

Constraints:

  • Must be the identifier of an existing DB instance.
  • Can specify a DB instance that is a MySQL Read Replica only if the source is running MySQL 5.6.
  • Can specify a DB instance that is a PostgreSQL Read Replica only if the source is running PostgreSQL 9.3.5.
  • The specified DB instance must have automatic backups enabled, its backup retention period must be greater than 0.
  • If the source DB instance is in the same region as the Read Replica, specify a valid DB instance identifier.
  • If the source DB instance is in a different region than the Read Replica, specify a valid DB instance ARN. For more information, go to Constructing a Amazon RDS Amazon Resource Name (ARN).
", - "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

The compute and memory capacity of the Read Replica.

Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

Default: Inherits from the source DB instance.

", - "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

The Amazon EC2 Availability Zone that the Read Replica will be created in.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

", + "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

The compute and memory capacity of the Read Replica.

Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

Default: Inherits from the source DB instance.

", + "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

The Amazon EC2 Availability Zone that the Read Replica will be created in.

Default: A random, system-chosen Availability Zone in the endpoint's region.

Example: us-east-1d

", "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

The option group the DB instance will be associated with. If omitted, the default option group for the engine specified will be used.

", "CreateDBInstanceReadReplicaMessage$DBSubnetGroupName": "

Specifies a DB subnet group for the DB instance. The new DB instance will be created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance is not created in a VPC.

Constraints:

  • Can only be specified if the source DB instance identifier specifies a DB instance in another region.
  • The specified DB subnet group must be in the same region in which the operation is running.
  • All Read Replicas in one region that are created from the same source DB instance must either:
    • Specify DB subnet groups from the same VPC. All these Read Replicas will be created in the same VPC.
    • Not specify a DB subnet group. All these Read Replicas will be created outside of any VPC.
", - "CreateDBInstanceReadReplicaMessage$StorageType": "

Specifies storage type to be associated with the DB Instance Read Replica.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", - "CreateDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
This value is stored as a lower-case string.", + "CreateDBInstanceReadReplicaMessage$StorageType": "

Specifies the storage type to be associated with the Read Replica.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", + "CreateDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
This value is stored as a lowercase string.", "CreateDBParameterGroupMessage$DBParameterGroupFamily": "

The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.

", "CreateDBParameterGroupMessage$Description": "

The description for the DB parameter group.

", - "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

The name for the DB security group. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Must not be \"Default\"
  • May not contain spaces

Example: mysecuritygroup

", + "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

The name for the DB security group. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Must not be \"Default\"
  • Cannot contain spaces

Example: mysecuritygroup

", "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": "

The description for the DB security group.

", "CreateDBSnapshotMessage$DBSnapshotIdentifier": "

The identifier for the DB snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", "CreateDBSnapshotMessage$DBInstanceIdentifier": "

The DB instance identifier. This is the unique key that identifies a DB instance.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", @@ -1526,28 +1823,66 @@ "CreateOptionGroupMessage$EngineName": "

Specifies the name of the engine that this option group should be associated with.

", "CreateOptionGroupMessage$MajorEngineVersion": "

Specifies the major version of the engine that this option group should be associated with.

", "CreateOptionGroupMessage$OptionGroupDescription": "

The description of the option group.

", + "DBCluster$CharacterSetName": "

If present, specifies the name of the character set that this cluster is associated with.

", + "DBCluster$DatabaseName": "

Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

", + "DBCluster$DBClusterIdentifier": "

Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.

", + "DBCluster$DBClusterParameterGroup": "

Specifies the name of the DB cluster parameter group for the DB cluster.

", + "DBCluster$DBSubnetGroup": "

Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

", + "DBCluster$Status": "

Specifies the current state of this DB cluster.

", + "DBCluster$PercentProgress": "

Specifies the progress of the operation as a percentage.

", + "DBCluster$Endpoint": "

Specifies the connection endpoint for the primary instance of the DB cluster.

", + "DBCluster$Engine": "

Provides the name of the database engine to be used for this DB cluster.

", + "DBCluster$EngineVersion": "

Indicates the database engine version.

", + "DBCluster$MasterUsername": "

Contains the master username for the DB cluster.

", + "DBCluster$PreferredBackupWindow": "

Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

", + "DBCluster$PreferredMaintenanceWindow": "

Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

", + "DBClusterMember$DBInstanceIdentifier": "

Specifies the instance identifier for this member of the DB cluster.

", + "DBClusterMember$DBClusterParameterGroupStatus": "

Specifies the status of the DB cluster parameter group for this member of the DB cluster.

", + "DBClusterMessage$Marker": "

A pagination token that can be used in a subsequent DescribeDBClusters request.

", + "DBClusterOptionGroupStatus$DBClusterOptionGroupName": "

Specifies the name of the DB cluster option group.

", + "DBClusterOptionGroupStatus$Status": "

Specifies the status of the DB cluster option group.

", + "DBClusterParameterGroup$DBClusterParameterGroupName": "

Provides the name of the DB cluster parameter group.

", + "DBClusterParameterGroup$DBParameterGroupFamily": "

Provides the name of the DB parameter group family that this DB cluster parameter group is compatible with.

", + "DBClusterParameterGroup$Description": "

Provides the customer-specified description for this DB cluster parameter group.

", + "DBClusterParameterGroupDetails$Marker": "

An optional pagination token provided by a previous DescribeDBClusterParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", + "DBClusterParameterGroupNameMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
This value is stored as a lowercase string.", + "DBClusterParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "DBClusterSnapshot$DBClusterSnapshotIdentifier": "

Specifies the identifier for the DB cluster snapshot.

", + "DBClusterSnapshot$DBClusterIdentifier": "

Specifies the DB cluster identifier of the DB cluster that this DB cluster snapshot was created from.

", + "DBClusterSnapshot$Engine": "

Specifies the name of the database engine.

", + "DBClusterSnapshot$Status": "

Specifies the status of this DB cluster snapshot.

", + "DBClusterSnapshot$VpcId": "

Provides the VPC ID associated with the DB cluster snapshot.

", + "DBClusterSnapshot$MasterUsername": "

Provides the master username for the DB cluster snapshot.

", + "DBClusterSnapshot$EngineVersion": "

Provides the version of the database engine for this DB cluster snapshot.

", + "DBClusterSnapshot$LicenseModel": "

Provides the license model information for this DB cluster snapshot.

", + "DBClusterSnapshot$SnapshotType": "

Provides the type of the DB cluster snapshot.

", + "DBClusterSnapshotMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DBEngineVersion$Engine": "

The name of the database engine.

", "DBEngineVersion$EngineVersion": "

The version number of the database engine.

", "DBEngineVersion$DBParameterGroupFamily": "

The name of the DB parameter group family for the database engine.

", "DBEngineVersion$DBEngineDescription": "

The description of the database engine.

", "DBEngineVersion$DBEngineVersionDescription": "

The description of the database engine version.

", "DBEngineVersionMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBInstance$DBInstanceIdentifier": "

Contains a user-supplied database identifier. This is the unique key that identifies a DB instance.

", + "DBInstance$DBInstanceIdentifier": "

Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.

", "DBInstance$DBInstanceClass": "

Contains the name of the compute and memory capacity class of the DB instance.

", "DBInstance$Engine": "

Provides the name of the database engine to be used for this DB instance.

", "DBInstance$DBInstanceStatus": "

Specifies the current state of this database.

", "DBInstance$MasterUsername": "

Contains the master username for the DB instance.

", - "DBInstance$DBName": "

The meaning of this parameter differs according to the database engine you use. For example, this value returns either MySQL or PostgreSQL information when returning values from CreateDBInstanceReadReplica since Read Replicas are only supported for MySQL and PostgreSQL.

MySQL, SQL Server, PostgreSQL

Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB instance was created. This same name is returned for the life of the DB instance.

Type: String

Oracle

Contains the Oracle System ID (SID) of the created DB instance. Not shown when the returned parameters do not apply to an Oracle DB instance.

", + "DBInstance$DBName": "

The meaning of this parameter differs according to the database engine you use. For example, this value returns either MySQL or PostgreSQL information when returning values from CreateDBInstanceReadReplica since Read Replicas are only supported for MySQL and PostgreSQL.

MySQL, SQL Server, PostgreSQL

Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB instance was created. This same name is returned for the life of the DB instance.

Type: String

Oracle

Contains the Oracle System ID (SID) of the created DB instance. Not shown when the returned parameters do not apply to an Oracle DB instance.

", "DBInstance$PreferredBackupWindow": "

Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

", "DBInstance$AvailabilityZone": "

Specifies the name of the Availability Zone the DB instance is located in.

", - "DBInstance$PreferredMaintenanceWindow": "

Specifies the weekly time range (in UTC) during which system maintenance can occur.

", + "DBInstance$PreferredMaintenanceWindow": "

Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

", "DBInstance$EngineVersion": "

Indicates the database engine version.

", "DBInstance$ReadReplicaSourceDBInstanceIdentifier": "

Contains the identifier of the source DB instance if this DB instance is a Read Replica.

", "DBInstance$LicenseModel": "

License model information for this DB instance.

", "DBInstance$CharacterSetName": "

If present, specifies the name of the character set that this instance is associated with.

", "DBInstance$SecondaryAvailabilityZone": "

If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

", - "DBInstance$StorageType": "

Specifies storage type associated with DB Instance.

", + "DBInstance$StorageType": "

Specifies the storage type associated with DB instance.

", "DBInstance$TdeCredentialArn": "

The ARN from the Key Store with which the instance is associated for TDE encryption.

", + "DBInstance$DBClusterIdentifier": "

If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.

", + "DBInstance$KmsKeyId": "

If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance.

", + "DBInstance$DbiResourceId": "

If StorageEncrypted is true, the region-unique, immutable identifier for the encrypted DB instance. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB instance is accessed.

", + "DBInstance$CACertificateIdentifier": "

The identifier of the CA certificate for this DB instance.

", "DBInstanceMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", "DBInstanceStatusInfo$StatusType": "

This value is currently \"read replication.\"

", "DBInstanceStatusInfo$Status": "

Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

", @@ -1556,7 +1891,7 @@ "DBParameterGroup$DBParameterGroupFamily": "

Provides the name of the DB parameter group family that this DB parameter group is compatible with.

", "DBParameterGroup$Description": "

Provides the customer-specified description for this DB parameter group.

", "DBParameterGroupDetails$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DBParameterGroupNameMessage$DBParameterGroupName": "

The name of the DB parameter group.

", + "DBParameterGroupNameMessage$DBParameterGroupName": "

Provides the name of the DB parameter group.

", "DBParameterGroupStatus$DBParameterGroupName": "

The name of the DP parameter group.

", "DBParameterGroupStatus$ParameterApplyStatus": "

The status of parameter updates.

", "DBParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", @@ -1573,35 +1908,54 @@ "DBSnapshot$Engine": "

Specifies the name of the database engine.

", "DBSnapshot$Status": "

Specifies the status of this DB snapshot.

", "DBSnapshot$AvailabilityZone": "

Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.

", - "DBSnapshot$VpcId": "

Provides the Vpc Id associated with the DB snapshot.

", + "DBSnapshot$VpcId": "

Provides the VPC ID associated with the DB snapshot.

", "DBSnapshot$MasterUsername": "

Provides the master username for the DB snapshot.

", "DBSnapshot$EngineVersion": "

Specifies the version of the database engine.

", "DBSnapshot$LicenseModel": "

License model information for the restored DB instance.

", "DBSnapshot$SnapshotType": "

Provides the type of the DB snapshot.

", "DBSnapshot$OptionGroupName": "

Provides the option group name for the DB snapshot.

", "DBSnapshot$SourceRegion": "

The region that the DB snapshot was created in or copied from.

", - "DBSnapshot$StorageType": "

Specifies storage type associated with DB Snapshot.

", + "DBSnapshot$SourceDBSnapshotIdentifier": "

The DB snapshot Arn that the DB snapshot was copied from. It only has value in case of cross customer or cross region copy.

", + "DBSnapshot$StorageType": "

Specifies the storage type associated with DB Snapshot.

", "DBSnapshot$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", + "DBSnapshot$KmsKeyId": "

If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.

", "DBSnapshotMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DBSubnetGroup$DBSubnetGroupName": "

Specifies the name of the DB subnet group.

", "DBSubnetGroup$DBSubnetGroupDescription": "

Provides the description of the DB subnet group.

", "DBSubnetGroup$VpcId": "

Provides the VpcId of the DB subnet group.

", "DBSubnetGroup$SubnetGroupStatus": "

Provides the status of the DB subnet group.

", "DBSubnetGroupMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DeleteDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier for the DB instance to be deleted. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "DeleteDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "DeleteDBClusterMessage$FinalDBSnapshotIdentifier": "

The DB cluster snapshot identifier of the new DB cluster snapshot created when SkipFinalSnapshot is set to false.

Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "DeleteDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group.

Constraints:

  • Must be the name of an existing DB cluster parameter group.
  • You cannot delete a default DB cluster parameter group.
  • Cannot be associated with any DB clusters.
", + "DeleteDBClusterSnapshotMessage$DBClusterSnapshotIdentifier": "

The identifier of the DB cluster snapshot to delete.

Constraints: Must be the name of an existing DB cluster snapshot in the available state.

", + "DeleteDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier for the DB instance to be deleted. This parameter isn't case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": "

The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false.

Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Cannot be specified when deleting a Read Replica.
", "DeleteDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be the name of an existing DB parameter group
  • You cannot delete a default DB parameter group
  • Cannot be associated with any DB instances
", - "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

The name of the DB security group to delete.

You cannot delete the default DB security group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Must not be \"Default\"
  • May not contain spaces
", + "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

The name of the DB security group to delete.

You cannot delete the default DB security group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • Must not be \"Default\"
  • Cannot contain spaces
", "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

The DBSnapshot identifier.

Constraints: Must be the name of an existing DB snapshot in the available state.

", "DeleteDBSubnetGroupMessage$DBSubnetGroupName": "

The name of the database subnet group to delete.

You cannot delete the default subnet group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", "DeleteEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to delete.

", "DeleteOptionGroupMessage$OptionGroupName": "

The name of the option group to be deleted.

You cannot delete default option groups.", + "DescribeCertificatesMessage$CertificateIdentifier": "

The user-supplied certificate identifier. If this parameter is specified, information for only the identified certificate is returned. This parameter isn't case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "DescribeCertificatesMessage$Marker": "

An optional pagination token provided by a previous DescribeCertificates request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "DescribeDBClusterParameterGroupsMessage$DBClusterParameterGroupName": "

The name of a specific DB cluster parameter group to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "DescribeDBClusterParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "DescribeDBClusterParametersMessage$DBClusterParameterGroupName": "

The name of a specific DB cluster parameter group to return parameter details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "DescribeDBClusterParametersMessage$Source": "

A value that indicates to return only parameters for a specific source. Parameter sources can be engine, service, or customer.

", + "DescribeDBClusterParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "DescribeDBClusterSnapshotsMessage$DBClusterIdentifier": "

A DB cluster identifier to retrieve the list of DB cluster snapshots for. This parameter cannot be used in conjunction with the DBClusterSnapshotIdentifier parameter. This parameter is not case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "DescribeDBClusterSnapshotsMessage$DBClusterSnapshotIdentifier": "

A specific DB cluster snapshot identifier to describe. This parameter cannot be used in conjunction with the DBClusterIdentifier parameter. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • If this is the identifier of an automated snapshot, the SnapshotType parameter must also be specified.
", + "DescribeDBClusterSnapshotsMessage$SnapshotType": "

The type of DB cluster snapshots that will be returned. Values can be automated or manual. If this parameter is not specified, the returned results will include all snapshot types.

", + "DescribeDBClusterSnapshotsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "DescribeDBClustersMessage$DBClusterIdentifier": "

The user-supplied DB cluster identifier. If this parameter is specified, information from only the specific DB cluster is returned. This parameter isn't case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "DescribeDBClustersMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeDBEngineVersionsMessage$Engine": "

The database engine to return.

", "DescribeDBEngineVersionsMessage$EngineVersion": "

The database engine version to return.

Example: 5.1.49

", "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": "

The name of a specific DB parameter group family to return details for.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", "DescribeDBEngineVersionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBInstancesMessage$DBInstanceIdentifier": "

The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBInstancesMessage$Marker": "

An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", + "DescribeDBInstancesMessage$DBInstanceIdentifier": "

The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "DescribeDBInstancesMessage$Marker": "

An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeDBLogFilesDetails$LogFileName": "

The name of the log file for the specified DB instance.

", "DescribeDBLogFilesMessage$DBInstanceIdentifier": "

The customer-assigned name of the DB instance that contains the log files you want to list.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", "DescribeDBLogFilesMessage$FilenameContains": "

Filters the available log files for log file names that contain the specified string.

", @@ -1613,13 +1967,15 @@ "DescribeDBParametersMessage$Source": "

The parameter types to return.

Default: All parameter types returned

Valid Values: user | system | engine-default

", "DescribeDBParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": "

The name of the DB security group to return details for.

", - "DescribeDBSecurityGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSecurityGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBSnapshotsMessage$DBInstanceIdentifier": "

A DB instance identifier to retrieve the list of DB snapshots for. Cannot be used in conjunction with DBSnapshotIdentifier. This parameter is not case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

A specific DB snapshot identifier to describe. Cannot be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
  • If this is the identifier of an automated snapshot, the SnapshotType parameter must also be specified.
", + "DescribeDBSecurityGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSecurityGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "DescribeDBSnapshotsMessage$DBInstanceIdentifier": "

A DB instance identifier to retrieve the list of DB snapshots for. This parameter cannot be used in conjunction with DBSnapshotIdentifier. This parameter is not case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

A specific DB snapshot identifier to describe. This parameter cannot be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 alphanumeric characters.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
  • If this is the identifier of an automated snapshot, the SnapshotType parameter must also be specified.
", "DescribeDBSnapshotsMessage$SnapshotType": "

The type of snapshots that will be returned. Values can be \"automated\" or \"manual.\" If not specified, the returned results will include all snapshots types.

", "DescribeDBSnapshotsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": "

The name of the DB subnet group to return details for.

", "DescribeDBSubnetGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBSubnetGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "DescribeEngineDefaultClusterParametersMessage$DBParameterGroupFamily": "

The name of the DB cluster parameter group family to return engine parameter information for.

", + "DescribeEngineDefaultClusterParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeEngineDefaultClusterParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": "

The name of the DB parameter group family.

", "DescribeEngineDefaultParametersMessage$Marker": "

An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeEventCategoriesMessage$SourceType": "

The type of source that will be generating the events.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", @@ -1627,7 +1983,7 @@ "DescribeEventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", "DescribeEventsMessage$SourceIdentifier": "

The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.

Constraints:

  • If SourceIdentifier is supplied, SourceType must also be provided.
  • If the source type is DBInstance, then a DBInstanceIdentifier must be supplied.
  • If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied.
  • If the source type is DBParameterGroup, a DBParameterGroupName must be supplied.
  • If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
  • Cannot end with a hyphen or contain two consecutive hyphens.
", "DescribeEventsMessage$Marker": "

An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeOptionGroupOptionsMessage$EngineName": "

A required parameter. Options available for the given Engine name will be described.

", + "DescribeOptionGroupOptionsMessage$EngineName": "

A required parameter. Options available for the given engine name will be described.

", "DescribeOptionGroupOptionsMessage$MajorEngineVersion": "

If specified, filters the results to include only options for the specified major engine version.

", "DescribeOptionGroupOptionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeOptionGroupsMessage$OptionGroupName": "

The name of the option group to describe. Cannot be supplied together with EngineName or MajorEngineVersion.

", @@ -1639,18 +1995,20 @@ "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": "

The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

", "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": "

The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

", "DescribeOrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", + "DescribePendingMaintenanceActionsMessage$ResourceIdentifier": "

The ARN of a resource to return pending maintenance actions for.

", + "DescribePendingMaintenanceActionsMessage$Marker": "

An optional pagination token provided by a previous DescribePendingMaintenanceActions request. If this parameter is specified, the response includes only records beyond the marker, up to a number of records specified by MaxRecords.

", "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": "

The reserved DB instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.

", "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": "

The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

", "DescribeReservedDBInstancesMessage$DBInstanceClass": "

The DB instance class filter value. Specify this parameter to show only those reservations matching the specified DB instances class.

", "DescribeReservedDBInstancesMessage$Duration": "

The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", "DescribeReservedDBInstancesMessage$ProductDescription": "

The product description filter value. Specify this parameter to show only those reservations matching the specified product description.

", - "DescribeReservedDBInstancesMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

", + "DescribeReservedDBInstancesMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Partial Upfront\" | \"All Upfront\" | \"No Upfront\"

", "DescribeReservedDBInstancesMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": "

The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": "

The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

", "DescribeReservedDBInstancesOfferingsMessage$Duration": "

Duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": "

Product description filter value. Specify this parameter to show only the available offerings matching the specified product description.

", - "DescribeReservedDBInstancesOfferingsMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

", + "DescribeReservedDBInstancesOfferingsMessage$OfferingType": "

The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Partial Upfront\" | \"All Upfront\" | \"No Upfront\"

", "DescribeReservedDBInstancesOfferingsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DownloadDBLogFilePortionDetails$LogFileData": "

Entries from the specified log file.

", "DownloadDBLogFilePortionDetails$Marker": "

A pagination token that can be used in a subsequent DownloadDBLogFilePortion request.

", @@ -1662,7 +2020,7 @@ "EC2SecurityGroup$EC2SecurityGroupId": "

Specifies the id of the EC2 security group.

", "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

Specifies the AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

", "Endpoint$Address": "

Specifies the DNS address of the DB instance.

", - "EngineDefaults$DBParameterGroupFamily": "

Specifies the name of the DB parameter group family which the engine default parameters apply to.

", + "EngineDefaults$DBParameterGroupFamily": "

Specifies the name of the DB parameter group family that the engine default parameters apply to.

", "EngineDefaults$Marker": "

An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", "Event$SourceIdentifier": "

Provides the identifier for the source of the event.

", "Event$Message": "

Provides the text of this event.

", @@ -1676,24 +2034,34 @@ "EventSubscription$SourceType": "

The source type for the RDS event notification subscription.

", "EventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "EventsMessage$Marker": "

An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", + "FailoverDBClusterMessage$DBClusterIdentifier": "

A DB cluster identifier to force a failover for. This parameter is not case-sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", "Filter$Name": "

This parameter is not currently supported.

", "FilterValueList$member": null, "IPRange$Status": "

Specifies the status of the IP range. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

", "IPRange$CIDRIP": "

Specifies the IP range.

", "KeyList$member": null, "ListTagsForResourceMessage$ResourceName": "

The Amazon RDS resource with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

", + "ModifyDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier for the cluster being modified. This parameter is not case-sensitive.

Constraints:

  • Must be the identifier for an existing DB cluster.
  • Must contain from 1 to 63 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
", + "ModifyDBClusterMessage$NewDBClusterIdentifier": "

The new DB cluster identifier for the DB cluster when renaming a DB cluster. This value is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-cluster2

", + "ModifyDBClusterMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to use for the DB cluster.

", + "ModifyDBClusterMessage$MasterUserPassword": "

The new password for the master database user. This password can contain any printable ASCII character except \"/\", \"\"\", or \"@\".

Constraints: Must contain from 8 to 41 characters.

", + "ModifyDBClusterMessage$OptionGroupName": "

A value that indicates that the DB cluster should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case, and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

Permanent options cannot be removed from an option group. The option group cannot be removed from a DB cluster once it is associated with a DB cluster.

", + "ModifyDBClusterMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Constraints:

  • Must be in the format hh24:mi-hh24:mi.
  • Times should be in Universal Coordinated Time (UTC).
  • Must not conflict with the preferred maintenance window.
  • Must be at least 30 minutes.
", + "ModifyDBClusterMessage$PreferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", + "ModifyDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to modify.

", "ModifyDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing DB instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", "ModifyDBInstanceMessage$DBInstanceClass": "

The new compute and memory capacity of the DB instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action.

Passing a value for this setting causes an outage during the change and is applied during the next maintenance window, unless ApplyImmediately is specified as true for this request.

Default: Uses existing setting

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

", - "ModifyDBInstanceMessage$MasterUserPassword": "

The new password for the DB instance master user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

Default: Uses existing setting

Constraints: Must be 8 to 41 alphanumeric characters (MySQL), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

Amazon RDS API actions never return the password, so this action provides a way to regain access to a master instance user if the password is lost. This includes restoring privileges that may have been accidentally revoked. ", + "ModifyDBInstanceMessage$MasterUserPassword": "

The new password for the DB instance master user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

Default: Uses existing setting

Constraints: Must be 8 to 41 alphanumeric characters (MySQL), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

Amazon RDS API actions never return the password, so this action provides a way to regain access to a primary instance user if the password is lost. This includes restoring privileges that might have been accidentally revoked. ", "ModifyDBInstanceMessage$DBParameterGroupName": "

The name of the DB parameter group to apply to the DB instance. Changing this setting does not result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. The db instance will NOT be rebooted automatically and the parameter changes will NOT be applied during the next maintenance window.

Default: Uses existing setting

Constraints: The DB parameter group must be in the same DB parameter group family as this DB instance.

", - "ModifyDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints:

  • Must be in the format hh24:mi-hh24:mi
  • Times should be Universal Time Coordinated (UTC)
  • Must not conflict with the preferred maintenance window
  • Must be at least 30 minutes
", - "ModifyDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

Default: Uses existing setting

Format: ddd:hh24:mi-ddd:hh24:mi

Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

Constraints: Must be at least 30 minutes

", + "ModifyDBInstanceMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod parameter. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

Constraints:

  • Must be in the format hh24:mi-hh24:mi
  • Times should be in Universal Time Coordinated (UTC)
  • Must not conflict with the preferred maintenance window
  • Must be at least 30 minutes
", + "ModifyDBInstanceMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

Default: Uses existing setting

Format: ddd:hh24:mi-ddd:hh24:mi

Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

Constraints: Must be at least 30 minutes

", "ModifyDBInstanceMessage$EngineVersion": "

The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

For major version upgrades, if a non-default DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.

For a list of valid engine versions, see CreateDBInstance.

", "ModifyDBInstanceMessage$OptionGroupName": "

Indicates that the DB instance should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", "ModifyDBInstanceMessage$NewDBInstanceIdentifier": "

The new DB instance identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot will occur immediately if you set Apply Immediately to true, or will occur during the next maintenance window if Apply Immediately to false. This value is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "ModifyDBInstanceMessage$StorageType": "

Specifies storage type to be associated with the DB Instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", + "ModifyDBInstanceMessage$StorageType": "

Specifies the storage type to be associated with the DB instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", "ModifyDBInstanceMessage$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", "ModifyDBInstanceMessage$TdeCredentialPassword": "

The password for the given ARN from the Key Store in order to access the device.

", + "ModifyDBInstanceMessage$CACertificateIdentifier": "

Indicates the certificate that needs to be associated with the instance.

", "ModifyDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be the name of an existing DB parameter group
  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", "ModifyDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

Example: mySubnetgroup

", "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "

The description for the DB subnet group.

", @@ -1706,7 +2074,7 @@ "OptionConfiguration$OptionName": "

The configuration of options to include in a group.

", "OptionGroup$OptionGroupName": "

Specifies the name of the option group.

", "OptionGroup$OptionGroupDescription": "

Provides a description of the option group.

", - "OptionGroup$EngineName": "

Engine name that this option group can be applied to.

", + "OptionGroup$EngineName": "

Indicates the name of the engine that this option group can be applied to.

", "OptionGroup$MajorEngineVersion": "

Indicates the major engine version associated with this option group.

", "OptionGroup$VpcId": "

If AllowsVpcAndNonVpcInstanceMemberships is false, this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is true and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.

", "OptionGroupMembership$OptionGroupName": "

The name of the option group that the instance belongs to.

", @@ -1734,9 +2102,9 @@ "OptionsDependedOn$member": null, "OrderableDBInstanceOption$Engine": "

The engine type of the orderable DB instance.

", "OrderableDBInstanceOption$EngineVersion": "

The engine version of the orderable DB instance.

", - "OrderableDBInstanceOption$DBInstanceClass": "

The DB instance Class for the orderable DB instance

", + "OrderableDBInstanceOption$DBInstanceClass": "

The DB instance class for the orderable DB instance.

", "OrderableDBInstanceOption$LicenseModel": "

The license model for the orderable DB instance.

", - "OrderableDBInstanceOption$StorageType": "

The storage type for this orderable DB instance.

", + "OrderableDBInstanceOption$StorageType": "

Indicates the storage type for this orderable DB instance.

", "OrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous OrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", "Parameter$ParameterName": "

Specifies the name of the parameter.

", "Parameter$ParameterValue": "

Specifies the value of the parameter.

", @@ -1746,13 +2114,18 @@ "Parameter$DataType": "

Specifies the valid data type for the parameter.

", "Parameter$AllowedValues": "

Specifies the valid range of values for the parameter.

", "Parameter$MinimumEngineVersion": "

The earliest engine version to which the parameter can apply.

", + "PendingMaintenanceAction$Action": "

The type of pending maintenance action that is available for the resource.

", + "PendingMaintenanceAction$OptInStatus": "

Indicates the type of opt-in request that has been received for the resource.

", + "PendingMaintenanceAction$Description": "

A description providing more detail about the maintenance action.

", + "PendingMaintenanceActionsMessage$Marker": "

An optional pagination token provided by a previous DescribePendingMaintenanceActions request. If this parameter is specified, the response includes only records beyond the marker, up to a number of records specified by MaxRecords.

", "PendingModifiedValues$DBInstanceClass": "

Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.

", "PendingModifiedValues$MasterUserPassword": "

Contains the pending or in-progress change of the master credentials for the DB instance.

", "PendingModifiedValues$EngineVersion": "

Indicates the database engine version.

", "PendingModifiedValues$DBInstanceIdentifier": "

Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.

", - "PendingModifiedValues$StorageType": "

Specifies storage type to be associated with the DB instance.

", + "PendingModifiedValues$StorageType": "

Specifies the storage type to be associated with the DB instance.

", + "PendingModifiedValues$CACertificateIdentifier": "

Specifies the identifier of the CA certificate for the DB instance.

", "PromoteReadReplicaMessage$DBInstanceIdentifier": "

The DB instance identifier. This value is stored as a lowercase string.

Constraints:

  • Must be the identifier for an existing Read Replica DB instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: mydbinstance

", - "PromoteReadReplicaMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.

Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

", + "PromoteReadReplicaMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

Constraints:

  • Must be in the format hh24:mi-hh24:mi.
  • Times should be in Universal Coordinated Time (UTC).
  • Must not conflict with the preferred maintenance window.
  • Must be at least 30 minutes.
", "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": "

The ID of the Reserved DB instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "

Customer-specified identifier to track this reservation.

Example: myreservationID

", "ReadReplicaDBInstanceIdentifierList$member": null, @@ -1775,17 +2148,30 @@ "ReservedDBInstancesOffering$ProductDescription": "

The database engine used by the offering.

", "ReservedDBInstancesOffering$OfferingType": "

The offering type.

", "ReservedDBInstancesOfferingMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "ResetDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to reset.

", "ResetDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": "

Name of the DB instance to create from the DB snapshot. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", + "ResourcePendingMaintenanceActions$ResourceIdentifier": "

The ARN of the resource that has pending maintenance actions.

", + "RestoreDBClusterFromSnapshotMessage$DBClusterIdentifier": "

The name of the DB cluster to create from the DB cluster snapshot. This parameter isn't case-sensitive.

Constraints:

  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", + "RestoreDBClusterFromSnapshotMessage$SnapshotIdentifier": "

The identifier for the DB cluster snapshot to restore from.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "RestoreDBClusterFromSnapshotMessage$Engine": "

The database engine to use for the new DB cluster.

Default: The same as source

Constraint: Must be compatible with the engine of the source

", + "RestoreDBClusterFromSnapshotMessage$EngineVersion": "

The version of the database engine to use for the new DB cluster.

", + "RestoreDBClusterFromSnapshotMessage$DBSubnetGroupName": "

The name of the DB subnet group to use for the new DB cluster.

", + "RestoreDBClusterFromSnapshotMessage$DatabaseName": "

The database name for the restored DB cluster.

", + "RestoreDBClusterFromSnapshotMessage$OptionGroupName": "

The name of the option group to use for the restored DB cluster.

", + "RestoreDBClusterToPointInTimeMessage$DBClusterIdentifier": "

The name of the new DB cluster to be created.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "RestoreDBClusterToPointInTimeMessage$SourceDBClusterIdentifier": "

The identifier of the source DB cluster from which to restore.

Constraints:

  • Must be the identifier of an existing database instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", + "RestoreDBClusterToPointInTimeMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new DB cluster.

", + "RestoreDBClusterToPointInTimeMessage$OptionGroupName": "

The name of the option group for the new DB cluster.

", + "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": "

Name of the DB instance to create from the DB snapshot. This parameter isn't case-sensitive.

Constraints:

  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": "

The identifier for the DB snapshot to restore from.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

", "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new instance.

", - "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

License model information for the restored DB instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", + "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

License model information for the restored DB instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", "RestoreDBInstanceFromDBSnapshotMessage$DBName": "

The database name for the restored DB instance.

This parameter doesn't apply to the MySQL engine.

", - "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

", + "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

", "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": "

The name of the option group to be used for the restored DB instance.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "RestoreDBInstanceFromDBSnapshotMessage$StorageType": "

Specifies storage type to be associated with the DB Instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", + "RestoreDBInstanceFromDBSnapshotMessage$StorageType": "

Specifies the storage type to be associated with the DB instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", "RestoreDBInstanceFromDBSnapshotMessage$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", "RestoreDBInstanceFromDBSnapshotMessage$TdeCredentialPassword": "

The password for the given ARN from the Key Store in order to access the device.

", "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": "

The identifier of the source DB instance from which to restore.

Constraints:

  • Must be the identifier of an existing database instance
  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", @@ -1793,11 +2179,11 @@ "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance.

Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium

Default: The same DBInstanceClass as the original DB instance.

", "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": "

The EC2 Availability Zone that the database instance will be created in.

Default: A random, system-chosen Availability Zone.

Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new instance.

", - "RestoreDBInstanceToPointInTimeMessage$LicenseModel": "

License model information for the restored DB instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", + "RestoreDBInstanceToPointInTimeMessage$LicenseModel": "

License model information for the restored DB instance.

Default: Same as source.

Valid values: license-included | bring-your-own-license | general-public-license

", "RestoreDBInstanceToPointInTimeMessage$DBName": "

The database name for the restored DB instance.

This parameter is not used for the MySQL engine.

", - "RestoreDBInstanceToPointInTimeMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

", + "RestoreDBInstanceToPointInTimeMessage$Engine": "

The database engine to use for the new instance.

Default: The same as source

Constraint: Must be compatible with the engine of the source

Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

", "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": "

The name of the option group to be used for the restored DB instance.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

", - "RestoreDBInstanceToPointInTimeMessage$StorageType": "

Specifies storage type to be associated with the DB Instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", + "RestoreDBInstanceToPointInTimeMessage$StorageType": "

Specifies the storage type to be associated with the DB instance.

Valid values: standard | gp2 | io1

If you specify io1, you must also include a value for the Iops parameter.

Default: io1 if the Iops parameter is specified; otherwise standard

", "RestoreDBInstanceToPointInTimeMessage$TdeCredentialArn": "

The ARN from the Key Store with which to associate the instance for TDE encryption.

", "RestoreDBInstanceToPointInTimeMessage$TdeCredentialPassword": "

The password for the given ARN from the Key Store in order to access the device.

", "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

The name of the DB security group to revoke ingress from.

", @@ -1809,8 +2195,8 @@ "Subnet$SubnetIdentifier": "

Specifies the identifier of the subnet.

", "Subnet$SubnetStatus": "

Specifies the status of the subnet.

", "SubnetIdentifierList$member": null, - "Tag$Key": "

A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", - "Tag$Value": "

A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", + "Tag$Key": "

A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", + "Tag$Value": "

A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

", "VpcSecurityGroupIdList$member": null, "VpcSecurityGroupMembership$VpcSecurityGroupId": "

The name of the VPC security group.

", "VpcSecurityGroupMembership$Status": "

The status of the VPC security group.

" @@ -1864,15 +2250,25 @@ "TStamp": { "base": null, "refs": { + "Certificate$ValidFrom": "

The starting date from which the certificate is valid.

", + "Certificate$ValidTill": "

The final date that the certificate continues to be valid.

", + "DBCluster$EarliestRestorableTime": "

Specifies the earliest time to which a database can be restored with point-in-time restore.

", + "DBCluster$LatestRestorableTime": "

Specifies the latest time to which a database can be restored with point-in-time restore.

", + "DBClusterSnapshot$SnapshotCreateTime": "

Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

", + "DBClusterSnapshot$ClusterCreateTime": "

Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

", "DBInstance$InstanceCreateTime": "

Provides the date and time the DB instance was created.

", "DBInstance$LatestRestorableTime": "

Specifies the latest time to which a database can be restored with point-in-time restore.

", - "DBSnapshot$SnapshotCreateTime": "

Provides the time (UTC) when the snapshot was taken.

", - "DBSnapshot$InstanceCreateTime": "

Specifies the time (UTC) when the snapshot was taken.

", - "DescribeEventsMessage$StartTime": "

The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", - "DescribeEventsMessage$EndTime": "

The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", + "DBSnapshot$SnapshotCreateTime": "

Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

", + "DBSnapshot$InstanceCreateTime": "

Specifies the time when the snapshot was taken, in Universal Coordinated Time (UTC).

", + "DescribeEventsMessage$StartTime": "

The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", + "DescribeEventsMessage$EndTime": "

The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", "Event$Date": "

Specifies the date and time of the event.

", + "PendingMaintenanceAction$AutoAppliedAfterDate": "

The date of the maintenance window when the action will be applied. The maintenance action will be applied to the resource during its first maintenance window after this date. If this date is specified, any next-maintenance opt-in requests are ignored.

", + "PendingMaintenanceAction$ForcedApplyDate": "

The date when the maintenance action will be automatically applied. The maintenance action will be applied to the resource on this date regardless of the maintenance window for the resource. If this date is specified, any immediate opt-in requests are ignored.

", + "PendingMaintenanceAction$CurrentApplyDate": "

The effective date when the pending maintenance action will be applied to the resource. This date takes into account opt-in requests received from the ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate, and the ForcedApplyDate. This value is blank if an opt-in request has not been received and nothing has been specified as AutoAppliedAfterDate or ForcedApplyDate.

", "ReservedDBInstance$StartTime": "

The time the reservation started.

", - "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

The date and time to restore from.

Valid Values: Value must be a UTC time

Constraints:

  • Must be before the latest restorable time for the DB instance
  • Cannot be specified if UseLatestRestorableTime parameter is true

Example: 2009-09-07T23:45:00Z

" + "RestoreDBClusterToPointInTimeMessage$RestoreToTime": "

The date and time to restore the DB cluster to.

Valid Values: Value must be a time in Universal Coordinated Time (UTC) format

Constraints:

  • Must be before the latest restorable time for the DB instance
  • Cannot be specified if UseLatestRestorableTime parameter is true

Example: 2015-03-07T23:45:00Z

", + "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

The date and time to restore from.

Valid Values: Value must be a time in Universal Coordinated Time (UTC) format

Constraints:

  • Must be before the latest restorable time for the DB instance
  • Cannot be specified if UseLatestRestorableTime parameter is true

Example: 2009-09-07T23:45:00Z

" } }, "Tag": { @@ -1885,9 +2281,13 @@ "base": "

A list of tags.

", "refs": { "AddTagsToResourceMessage$Tags": "

The tags to be assigned to the Amazon RDS resource.

", + "CopyDBClusterSnapshotMessage$Tags": null, "CopyDBParameterGroupMessage$Tags": null, "CopyDBSnapshotMessage$Tags": null, "CopyOptionGroupMessage$Tags": null, + "CreateDBClusterMessage$Tags": null, + "CreateDBClusterParameterGroupMessage$Tags": null, + "CreateDBClusterSnapshotMessage$Tags": "

The tags to be assigned to the DB cluster snapshot.

", "CreateDBInstanceMessage$Tags": null, "CreateDBInstanceReadReplicaMessage$Tags": null, "CreateDBParameterGroupMessage$Tags": null, @@ -1897,22 +2297,28 @@ "CreateEventSubscriptionMessage$Tags": null, "CreateOptionGroupMessage$Tags": null, "PurchaseReservedDBInstancesOfferingMessage$Tags": null, + "RestoreDBClusterFromSnapshotMessage$Tags": "

The tags to be assigned to the restored DB cluster.

", + "RestoreDBClusterToPointInTimeMessage$Tags": null, "RestoreDBInstanceFromDBSnapshotMessage$Tags": null, "RestoreDBInstanceToPointInTimeMessage$Tags": null, "TagListMessage$TagList": "

List of tags returned by the ListTagsForResource operation.

" } }, "TagListMessage": { - "base": "

", + "base": "

", "refs": { } }, "VpcSecurityGroupIdList": { "base": null, "refs": { + "CreateDBClusterMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to associate with this DB cluster.

", "CreateDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to associate with this DB instance.

Default: The default EC2 VPC security group for the DB subnet group's VPC.

", + "ModifyDBClusterMessage$VpcSecurityGroupIds": "

A lst of VPC security groups that the DB cluster will belong to.

", "ModifyDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to authorize on this DB instance. This change is asynchronously applied as soon as possible.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens
", - "OptionConfiguration$VpcSecurityGroupMemberships": "

A list of VpcSecurityGroupMemebrship name strings used for this option.

" + "OptionConfiguration$VpcSecurityGroupMemberships": "

A list of VpcSecurityGroupMemebrship name strings used for this option.

", + "RestoreDBClusterFromSnapshotMessage$VpcSecurityGroupIds": "

A list of VPC security groups that the new DB cluster will belong to.

", + "RestoreDBClusterToPointInTimeMessage$VpcSecurityGroupIds": "

A lst of VPC security groups that the new DB cluster belongs to.

" } }, "VpcSecurityGroupMembership": { @@ -1924,9 +2330,210 @@ "VpcSecurityGroupMembershipList": { "base": null, "refs": { + "DBCluster$VpcSecurityGroups": "

Provides a list of VPC security groups that the DB cluster belongs to.

", "DBInstance$VpcSecurityGroups": "

Provides List of VPC security group elements that the DB instance belongs to.

", "Option$VpcSecurityGroupMemberships": "

If the option requires access to a port, then this VPC security group allows access to the port.

" } + }, + "AddSourceIdentifierToSubscriptionResult": { + "base": null, + "refs": { + } + }, + "ApplyPendingMaintenanceActionResult": { + "base": null, + "refs": { + } + }, + "AuthorizeDBSecurityGroupIngressResult": { + "base": null, + "refs": { + } + }, + "CopyDBClusterSnapshotResult": { + "base": null, + "refs": { + } + }, + "CopyDBParameterGroupResult": { + "base": null, + "refs": { + } + }, + "CopyDBSnapshotResult": { + "base": null, + "refs": { + } + }, + "CopyOptionGroupResult": { + "base": null, + "refs": { + } + }, + "CreateDBClusterResult": { + "base": null, + "refs": { + } + }, + "CreateDBClusterParameterGroupResult": { + "base": null, + "refs": { + } + }, + "CreateDBClusterSnapshotResult": { + "base": null, + "refs": { + } + }, + "CreateDBInstanceResult": { + "base": null, + "refs": { + } + }, + "CreateDBInstanceReadReplicaResult": { + "base": null, + "refs": { + } + }, + "CreateDBParameterGroupResult": { + "base": null, + "refs": { + } + }, + "CreateDBSecurityGroupResult": { + "base": null, + "refs": { + } + }, + "CreateDBSnapshotResult": { + "base": null, + "refs": { + } + }, + "CreateDBSubnetGroupResult": { + "base": null, + "refs": { + } + }, + "CreateEventSubscriptionResult": { + "base": null, + "refs": { + } + }, + "CreateOptionGroupResult": { + "base": null, + "refs": { + } + }, + "DeleteDBClusterResult": { + "base": null, + "refs": { + } + }, + "DeleteDBClusterSnapshotResult": { + "base": null, + "refs": { + } + }, + "DeleteDBInstanceResult": { + "base": null, + "refs": { + } + }, + "DeleteDBSnapshotResult": { + "base": null, + "refs": { + } + }, + "DeleteEventSubscriptionResult": { + "base": null, + "refs": { + } + }, + "DescribeEngineDefaultClusterParametersResult": { + "base": null, + "refs": { + } + }, + "DescribeEngineDefaultParametersResult": { + "base": null, + "refs": { + } + }, + "FailoverDBClusterResult": { + "base": null, + "refs": { + } + }, + "ModifyDBClusterResult": { + "base": null, + "refs": { + } + }, + "ModifyDBInstanceResult": { + "base": null, + "refs": { + } + }, + "ModifyDBSubnetGroupResult": { + "base": null, + "refs": { + } + }, + "ModifyEventSubscriptionResult": { + "base": null, + "refs": { + } + }, + "ModifyOptionGroupResult": { + "base": null, + "refs": { + } + }, + "PromoteReadReplicaResult": { + "base": null, + "refs": { + } + }, + "PurchaseReservedDBInstancesOfferingResult": { + "base": null, + "refs": { + } + }, + "RebootDBInstanceResult": { + "base": null, + "refs": { + } + }, + "RemoveSourceIdentifierFromSubscriptionResult": { + "base": null, + "refs": { + } + }, + "RestoreDBClusterFromSnapshotResult": { + "base": null, + "refs": { + } + }, + "RestoreDBClusterToPointInTimeResult": { + "base": null, + "refs": { + } + }, + "RestoreDBInstanceFromDBSnapshotResult": { + "base": null, + "refs": { + } + }, + "RestoreDBInstanceToPointInTimeResult": { + "base": null, + "refs": { + } + }, + "RevokeDBSecurityGroupIngressResult": { + "base": null, + "refs": { + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/waiters-2.json similarity index 93% rename from vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/waiters-2.json index b01500797..f6538b035 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/waiters-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/rds/2014-10-31/waiters-2.json @@ -42,12 +42,6 @@ "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, - { - "expected": "incompatible-parameters", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - }, { "expected": "incompatible-restore", "matcher": "pathAny", @@ -67,6 +61,11 @@ "state": "success", "argument": "DBInstances[].DBInstanceStatus" }, + { + "expected": "DBInstanceNotFound", + "matcher": "error", + "state": "success" + }, { "expected": "creating", "matcher": "pathAny", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/redshift/2012-12-01/api-2.json similarity index 62% rename from vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/redshift/2012-12-01/api-2.json index c8771991d..7414bdf69 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/redshift/2012-12-01/api-2.json @@ -3,10 +3,10 @@ "metadata":{ "apiVersion":"2012-12-01", "endpointPrefix":"redshift", - "protocol":"query", "serviceFullName":"Amazon Redshift", "signatureVersion":"v4", - "xmlNamespace":"http://redshift.amazonaws.com/doc/2012-12-01/" + "xmlNamespace":"http://redshift.amazonaws.com/doc/2012-12-01/", + "protocol":"query" }, "operations":{ "AuthorizeClusterSecurityGroupIngress":{ @@ -18,13 +18,46 @@ "input":{"shape":"AuthorizeClusterSecurityGroupIngressMessage"}, "output":{ "shape":"AuthorizeClusterSecurityGroupIngressResult", + "wrapper":true, "resultWrapper":"AuthorizeClusterSecurityGroupIngressResult" }, "errors":[ - {"shape":"ClusterSecurityGroupNotFoundFault"}, - {"shape":"InvalidClusterSecurityGroupStateFault"}, - {"shape":"AuthorizationAlreadyExistsFault"}, - {"shape":"AuthorizationQuotaExceededFault"} + { + "shape":"ClusterSecurityGroupNotFoundFault", + "error":{ + "code":"ClusterSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterSecurityGroupStateFault", + "error":{ + "code":"InvalidClusterSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationAlreadyExistsFault", + "error":{ + "code":"AuthorizationAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationQuotaExceededFault", + "error":{ + "code":"AuthorizationQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "AuthorizeSnapshotAccess":{ @@ -36,15 +69,37 @@ "input":{"shape":"AuthorizeSnapshotAccessMessage"}, "output":{ "shape":"AuthorizeSnapshotAccessResult", + "wrapper":true, "resultWrapper":"AuthorizeSnapshotAccessResult" }, "errors":[ - {"shape":"ClusterSnapshotNotFoundFault"}, - {"shape":"AuthorizationAlreadyExistsFault"}, - {"shape":"AuthorizationQuotaExceededFault"}, - {"shape":"DependentServiceRequestThrottlingFault"}, - {"shape":"InvalidClusterSnapshotStateFault"}, - {"shape":"LimitExceededFault"} + { + "shape":"ClusterSnapshotNotFoundFault", + "error":{ + "code":"ClusterSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationAlreadyExistsFault", + "error":{ + "code":"AuthorizationAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationQuotaExceededFault", + "error":{ + "code":"AuthorizationQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CopyClusterSnapshot":{ @@ -56,13 +111,46 @@ "input":{"shape":"CopyClusterSnapshotMessage"}, "output":{ "shape":"CopyClusterSnapshotResult", + "wrapper":true, "resultWrapper":"CopyClusterSnapshotResult" }, "errors":[ - {"shape":"ClusterSnapshotAlreadyExistsFault"}, - {"shape":"ClusterSnapshotNotFoundFault"}, - {"shape":"InvalidClusterSnapshotStateFault"}, - {"shape":"ClusterSnapshotQuotaExceededFault"} + { + "shape":"ClusterSnapshotAlreadyExistsFault", + "error":{ + "code":"ClusterSnapshotAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSnapshotNotFoundFault", + "error":{ + "code":"ClusterSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterSnapshotStateFault", + "error":{ + "code":"InvalidClusterSnapshotState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSnapshotQuotaExceededFault", + "error":{ + "code":"ClusterSnapshotQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateCluster":{ @@ -74,28 +162,172 @@ "input":{"shape":"CreateClusterMessage"}, "output":{ "shape":"CreateClusterResult", + "wrapper":true, "resultWrapper":"CreateClusterResult" }, "errors":[ - {"shape":"ClusterAlreadyExistsFault"}, - {"shape":"InsufficientClusterCapacityFault"}, - {"shape":"ClusterParameterGroupNotFoundFault"}, - {"shape":"ClusterSecurityGroupNotFoundFault"}, - {"shape":"ClusterQuotaExceededFault"}, - {"shape":"NumberOfNodesQuotaExceededFault"}, - {"shape":"NumberOfNodesPerClusterLimitExceededFault"}, - {"shape":"ClusterSubnetGroupNotFoundFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidClusterSubnetGroupStateFault"}, - {"shape":"InvalidSubnet"}, - {"shape":"UnauthorizedOperation"}, - {"shape":"HsmClientCertificateNotFoundFault"}, - {"shape":"HsmConfigurationNotFoundFault"}, - {"shape":"InvalidElasticIpFault"}, - {"shape":"TagLimitExceededFault"}, - {"shape":"InvalidTagFault"}, - {"shape":"LimitExceededFault"}, - {"shape":"DependentServiceRequestThrottlingFault"} + { + "shape":"ClusterAlreadyExistsFault", + "error":{ + "code":"ClusterAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientClusterCapacityFault", + "error":{ + "code":"InsufficientClusterCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterParameterGroupNotFoundFault", + "error":{ + "code":"ClusterParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSecurityGroupNotFoundFault", + "error":{ + "code":"ClusterSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterQuotaExceededFault", + "error":{ + "code":"ClusterQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NumberOfNodesQuotaExceededFault", + "error":{ + "code":"NumberOfNodesQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NumberOfNodesPerClusterLimitExceededFault", + "error":{ + "code":"NumberOfNodesPerClusterLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSubnetGroupNotFoundFault", + "error":{ + "code":"ClusterSubnetGroupNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterSubnetGroupStateFault", + "error":{ + "code":"InvalidClusterSubnetGroupStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnauthorizedOperation", + "error":{ + "code":"UnauthorizedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"HsmClientCertificateNotFoundFault", + "error":{ + "code":"HsmClientCertificateNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"HsmConfigurationNotFoundFault", + "error":{ + "code":"HsmConfigurationNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidElasticIpFault", + "error":{ + "code":"InvalidElasticIpFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagLimitExceededFault", + "error":{ + "code":"TagLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateClusterParameterGroup":{ @@ -107,13 +339,46 @@ "input":{"shape":"CreateClusterParameterGroupMessage"}, "output":{ "shape":"CreateClusterParameterGroupResult", + "wrapper":true, "resultWrapper":"CreateClusterParameterGroupResult" }, "errors":[ - {"shape":"ClusterParameterGroupQuotaExceededFault"}, - {"shape":"ClusterParameterGroupAlreadyExistsFault"}, - {"shape":"TagLimitExceededFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"ClusterParameterGroupQuotaExceededFault", + "error":{ + "code":"ClusterParameterGroupQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterParameterGroupAlreadyExistsFault", + "error":{ + "code":"ClusterParameterGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagLimitExceededFault", + "error":{ + "code":"TagLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateClusterSecurityGroup":{ @@ -125,13 +390,46 @@ "input":{"shape":"CreateClusterSecurityGroupMessage"}, "output":{ "shape":"CreateClusterSecurityGroupResult", + "wrapper":true, "resultWrapper":"CreateClusterSecurityGroupResult" }, "errors":[ - {"shape":"ClusterSecurityGroupAlreadyExistsFault"}, - {"shape":"ClusterSecurityGroupQuotaExceededFault"}, - {"shape":"TagLimitExceededFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"ClusterSecurityGroupAlreadyExistsFault", + "error":{ + "code":"ClusterSecurityGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSecurityGroupQuotaExceededFault", + "error":{ + "code":"QuotaExceeded.ClusterSecurityGroup", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagLimitExceededFault", + "error":{ + "code":"TagLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateClusterSnapshot":{ @@ -143,15 +441,64 @@ "input":{"shape":"CreateClusterSnapshotMessage"}, "output":{ "shape":"CreateClusterSnapshotResult", + "wrapper":true, "resultWrapper":"CreateClusterSnapshotResult" }, "errors":[ - {"shape":"ClusterSnapshotAlreadyExistsFault"}, - {"shape":"InvalidClusterStateFault"}, - {"shape":"ClusterNotFoundFault"}, - {"shape":"ClusterSnapshotQuotaExceededFault"}, - {"shape":"TagLimitExceededFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"ClusterSnapshotAlreadyExistsFault", + "error":{ + "code":"ClusterSnapshotAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterStateFault", + "error":{ + "code":"InvalidClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSnapshotQuotaExceededFault", + "error":{ + "code":"ClusterSnapshotQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagLimitExceededFault", + "error":{ + "code":"TagLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateClusterSubnetGroup":{ @@ -163,17 +510,73 @@ "input":{"shape":"CreateClusterSubnetGroupMessage"}, "output":{ "shape":"CreateClusterSubnetGroupResult", + "wrapper":true, "resultWrapper":"CreateClusterSubnetGroupResult" }, "errors":[ - {"shape":"ClusterSubnetGroupAlreadyExistsFault"}, - {"shape":"ClusterSubnetGroupQuotaExceededFault"}, - {"shape":"ClusterSubnetQuotaExceededFault"}, - {"shape":"InvalidSubnet"}, - {"shape":"UnauthorizedOperation"}, - {"shape":"TagLimitExceededFault"}, - {"shape":"InvalidTagFault"}, - {"shape":"DependentServiceRequestThrottlingFault"} + { + "shape":"ClusterSubnetGroupAlreadyExistsFault", + "error":{ + "code":"ClusterSubnetGroupAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSubnetGroupQuotaExceededFault", + "error":{ + "code":"ClusterSubnetGroupQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSubnetQuotaExceededFault", + "error":{ + "code":"ClusterSubnetQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnauthorizedOperation", + "error":{ + "code":"UnauthorizedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagLimitExceededFault", + "error":{ + "code":"TagLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateEventSubscription":{ @@ -185,20 +588,109 @@ "input":{"shape":"CreateEventSubscriptionMessage"}, "output":{ "shape":"CreateEventSubscriptionResult", + "wrapper":true, "resultWrapper":"CreateEventSubscriptionResult" }, "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionAlreadyExistFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionEventIdNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"}, - {"shape":"SubscriptionSeverityNotFoundFault"}, - {"shape":"SourceNotFoundFault"}, - {"shape":"TagLimitExceededFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"EventSubscriptionQuotaExceededFault", + "error":{ + "code":"EventSubscriptionQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionAlreadyExistFault", + "error":{ + "code":"SubscriptionAlreadyExist", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSInvalidTopicFault", + "error":{ + "code":"SNSInvalidTopic", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSNoAuthorizationFault", + "error":{ + "code":"SNSNoAuthorization", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSTopicArnNotFoundFault", + "error":{ + "code":"SNSTopicArnNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionEventIdNotFoundFault", + "error":{ + "code":"SubscriptionEventIdNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionCategoryNotFoundFault", + "error":{ + "code":"SubscriptionCategoryNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionSeverityNotFoundFault", + "error":{ + "code":"SubscriptionSeverityNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SourceNotFoundFault", + "error":{ + "code":"SourceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagLimitExceededFault", + "error":{ + "code":"TagLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateHsmClientCertificate":{ @@ -210,13 +702,46 @@ "input":{"shape":"CreateHsmClientCertificateMessage"}, "output":{ "shape":"CreateHsmClientCertificateResult", + "wrapper":true, "resultWrapper":"CreateHsmClientCertificateResult" }, "errors":[ - {"shape":"HsmClientCertificateAlreadyExistsFault"}, - {"shape":"HsmClientCertificateQuotaExceededFault"}, - {"shape":"TagLimitExceededFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"HsmClientCertificateAlreadyExistsFault", + "error":{ + "code":"HsmClientCertificateAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"HsmClientCertificateQuotaExceededFault", + "error":{ + "code":"HsmClientCertificateQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagLimitExceededFault", + "error":{ + "code":"TagLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateHsmConfiguration":{ @@ -228,13 +753,46 @@ "input":{"shape":"CreateHsmConfigurationMessage"}, "output":{ "shape":"CreateHsmConfigurationResult", + "wrapper":true, "resultWrapper":"CreateHsmConfigurationResult" }, "errors":[ - {"shape":"HsmConfigurationAlreadyExistsFault"}, - {"shape":"HsmConfigurationQuotaExceededFault"}, - {"shape":"TagLimitExceededFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"HsmConfigurationAlreadyExistsFault", + "error":{ + "code":"HsmConfigurationAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"HsmConfigurationQuotaExceededFault", + "error":{ + "code":"HsmConfigurationQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagLimitExceededFault", + "error":{ + "code":"TagLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateSnapshotCopyGrant":{ @@ -246,15 +804,55 @@ "input":{"shape":"CreateSnapshotCopyGrantMessage"}, "output":{ "shape":"CreateSnapshotCopyGrantResult", + "wrapper":true, "resultWrapper":"CreateSnapshotCopyGrantResult" }, "errors":[ - {"shape":"SnapshotCopyGrantAlreadyExistsFault"}, - {"shape":"SnapshotCopyGrantQuotaExceededFault"}, - {"shape":"LimitExceededFault"}, - {"shape":"TagLimitExceededFault"}, - {"shape":"InvalidTagFault"}, - {"shape":"DependentServiceRequestThrottlingFault"} + { + "shape":"SnapshotCopyGrantAlreadyExistsFault", + "error":{ + "code":"SnapshotCopyGrantAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotCopyGrantQuotaExceededFault", + "error":{ + "code":"SnapshotCopyGrantQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TagLimitExceededFault", + "error":{ + "code":"TagLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateTags":{ @@ -265,9 +863,33 @@ }, "input":{"shape":"CreateTagsMessage"}, "errors":[ - {"shape":"TagLimitExceededFault"}, - {"shape":"ResourceNotFoundFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"TagLimitExceededFault", + "error":{ + "code":"TagLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResourceNotFoundFault", + "error":{ + "code":"ResourceNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteCluster":{ @@ -279,13 +901,46 @@ "input":{"shape":"DeleteClusterMessage"}, "output":{ "shape":"DeleteClusterResult", + "wrapper":true, "resultWrapper":"DeleteClusterResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"}, - {"shape":"InvalidClusterStateFault"}, - {"shape":"ClusterSnapshotAlreadyExistsFault"}, - {"shape":"ClusterSnapshotQuotaExceededFault"} + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterStateFault", + "error":{ + "code":"InvalidClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSnapshotAlreadyExistsFault", + "error":{ + "code":"ClusterSnapshotAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSnapshotQuotaExceededFault", + "error":{ + "code":"ClusterSnapshotQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteClusterParameterGroup":{ @@ -296,8 +951,24 @@ }, "input":{"shape":"DeleteClusterParameterGroupMessage"}, "errors":[ - {"shape":"InvalidClusterParameterGroupStateFault"}, - {"shape":"ClusterParameterGroupNotFoundFault"} + { + "shape":"InvalidClusterParameterGroupStateFault", + "error":{ + "code":"InvalidClusterParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterParameterGroupNotFoundFault", + "error":{ + "code":"ClusterParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DeleteClusterSecurityGroup":{ @@ -308,8 +979,24 @@ }, "input":{"shape":"DeleteClusterSecurityGroupMessage"}, "errors":[ - {"shape":"InvalidClusterSecurityGroupStateFault"}, - {"shape":"ClusterSecurityGroupNotFoundFault"} + { + "shape":"InvalidClusterSecurityGroupStateFault", + "error":{ + "code":"InvalidClusterSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSecurityGroupNotFoundFault", + "error":{ + "code":"ClusterSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DeleteClusterSnapshot":{ @@ -321,11 +1008,28 @@ "input":{"shape":"DeleteClusterSnapshotMessage"}, "output":{ "shape":"DeleteClusterSnapshotResult", + "wrapper":true, "resultWrapper":"DeleteClusterSnapshotResult" }, "errors":[ - {"shape":"InvalidClusterSnapshotStateFault"}, - {"shape":"ClusterSnapshotNotFoundFault"} + { + "shape":"InvalidClusterSnapshotStateFault", + "error":{ + "code":"InvalidClusterSnapshotState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSnapshotNotFoundFault", + "error":{ + "code":"ClusterSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DeleteClusterSubnetGroup":{ @@ -336,9 +1040,33 @@ }, "input":{"shape":"DeleteClusterSubnetGroupMessage"}, "errors":[ - {"shape":"InvalidClusterSubnetGroupStateFault"}, - {"shape":"InvalidClusterSubnetStateFault"}, - {"shape":"ClusterSubnetGroupNotFoundFault"} + { + "shape":"InvalidClusterSubnetGroupStateFault", + "error":{ + "code":"InvalidClusterSubnetGroupStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterSubnetStateFault", + "error":{ + "code":"InvalidClusterSubnetStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSubnetGroupNotFoundFault", + "error":{ + "code":"ClusterSubnetGroupNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteEventSubscription":{ @@ -349,8 +1077,24 @@ }, "input":{"shape":"DeleteEventSubscriptionMessage"}, "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"InvalidSubscriptionStateFault"} + { + "shape":"SubscriptionNotFoundFault", + "error":{ + "code":"SubscriptionNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubscriptionStateFault", + "error":{ + "code":"InvalidSubscriptionStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteHsmClientCertificate":{ @@ -361,8 +1105,24 @@ }, "input":{"shape":"DeleteHsmClientCertificateMessage"}, "errors":[ - {"shape":"InvalidHsmClientCertificateStateFault"}, - {"shape":"HsmClientCertificateNotFoundFault"} + { + "shape":"InvalidHsmClientCertificateStateFault", + "error":{ + "code":"InvalidHsmClientCertificateStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"HsmClientCertificateNotFoundFault", + "error":{ + "code":"HsmClientCertificateNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteHsmConfiguration":{ @@ -373,8 +1133,24 @@ }, "input":{"shape":"DeleteHsmConfigurationMessage"}, "errors":[ - {"shape":"InvalidHsmConfigurationStateFault"}, - {"shape":"HsmConfigurationNotFoundFault"} + { + "shape":"InvalidHsmConfigurationStateFault", + "error":{ + "code":"InvalidHsmConfigurationStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"HsmConfigurationNotFoundFault", + "error":{ + "code":"HsmConfigurationNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteSnapshotCopyGrant":{ @@ -385,8 +1161,24 @@ }, "input":{"shape":"DeleteSnapshotCopyGrantMessage"}, "errors":[ - {"shape":"InvalidSnapshotCopyGrantStateFault"}, - {"shape":"SnapshotCopyGrantNotFoundFault"} + { + "shape":"InvalidSnapshotCopyGrantStateFault", + "error":{ + "code":"InvalidSnapshotCopyGrantStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotCopyGrantNotFoundFault", + "error":{ + "code":"SnapshotCopyGrantNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteTags":{ @@ -397,8 +1189,24 @@ }, "input":{"shape":"DeleteTagsMessage"}, "errors":[ - {"shape":"ResourceNotFoundFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"ResourceNotFoundFault", + "error":{ + "code":"ResourceNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeClusterParameterGroups":{ @@ -413,8 +1221,24 @@ "resultWrapper":"DescribeClusterParameterGroupsResult" }, "errors":[ - {"shape":"ClusterParameterGroupNotFoundFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"ClusterParameterGroupNotFoundFault", + "error":{ + "code":"ClusterParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeClusterParameters":{ @@ -429,7 +1253,15 @@ "resultWrapper":"DescribeClusterParametersResult" }, "errors":[ - {"shape":"ClusterParameterGroupNotFoundFault"} + { + "shape":"ClusterParameterGroupNotFoundFault", + "error":{ + "code":"ClusterParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeClusterSecurityGroups":{ @@ -444,8 +1276,24 @@ "resultWrapper":"DescribeClusterSecurityGroupsResult" }, "errors":[ - {"shape":"ClusterSecurityGroupNotFoundFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"ClusterSecurityGroupNotFoundFault", + "error":{ + "code":"ClusterSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeClusterSnapshots":{ @@ -460,8 +1308,24 @@ "resultWrapper":"DescribeClusterSnapshotsResult" }, "errors":[ - {"shape":"ClusterSnapshotNotFoundFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"ClusterSnapshotNotFoundFault", + "error":{ + "code":"ClusterSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeClusterSubnetGroups":{ @@ -476,8 +1340,24 @@ "resultWrapper":"DescribeClusterSubnetGroupsResult" }, "errors":[ - {"shape":"ClusterSubnetGroupNotFoundFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"ClusterSubnetGroupNotFoundFault", + "error":{ + "code":"ClusterSubnetGroupNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeClusterVersions":{ @@ -504,8 +1384,24 @@ "resultWrapper":"DescribeClustersResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeDefaultClusterParameters":{ @@ -517,6 +1413,7 @@ "input":{"shape":"DescribeDefaultClusterParametersMessage"}, "output":{ "shape":"DescribeDefaultClusterParametersResult", + "wrapper":true, "resultWrapper":"DescribeDefaultClusterParametersResult" } }, @@ -544,7 +1441,15 @@ "resultWrapper":"DescribeEventSubscriptionsResult" }, "errors":[ - {"shape":"SubscriptionNotFoundFault"} + { + "shape":"SubscriptionNotFoundFault", + "error":{ + "code":"SubscriptionNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeEvents":{ @@ -571,8 +1476,24 @@ "resultWrapper":"DescribeHsmClientCertificatesResult" }, "errors":[ - {"shape":"HsmClientCertificateNotFoundFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"HsmClientCertificateNotFoundFault", + "error":{ + "code":"HsmClientCertificateNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeHsmConfigurations":{ @@ -587,8 +1508,24 @@ "resultWrapper":"DescribeHsmConfigurationsResult" }, "errors":[ - {"shape":"HsmConfigurationNotFoundFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"HsmConfigurationNotFoundFault", + "error":{ + "code":"HsmConfigurationNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeLoggingStatus":{ @@ -603,7 +1540,15 @@ "resultWrapper":"DescribeLoggingStatusResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"} + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeOrderableClusterOptions":{ @@ -630,8 +1575,24 @@ "resultWrapper":"DescribeReservedNodeOfferingsResult" }, "errors":[ - {"shape":"ReservedNodeOfferingNotFoundFault"}, - {"shape":"UnsupportedOperationFault"} + { + "shape":"ReservedNodeOfferingNotFoundFault", + "error":{ + "code":"ReservedNodeOfferingNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnsupportedOperationFault", + "error":{ + "code":"UnsupportedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeReservedNodes":{ @@ -646,7 +1607,15 @@ "resultWrapper":"DescribeReservedNodesResult" }, "errors":[ - {"shape":"ReservedNodeNotFoundFault"} + { + "shape":"ReservedNodeNotFoundFault", + "error":{ + "code":"ReservedNodeNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeResize":{ @@ -661,8 +1630,24 @@ "resultWrapper":"DescribeResizeResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"}, - {"shape":"ResizeNotFoundFault"} + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ResizeNotFoundFault", + "error":{ + "code":"ResizeNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DescribeSnapshotCopyGrants":{ @@ -677,24 +1662,24 @@ "resultWrapper":"DescribeSnapshotCopyGrantsResult" }, "errors":[ - {"shape":"SnapshotCopyGrantNotFoundFault"}, - {"shape":"InvalidTagFault"} - ] - }, - "DescribeTableRestoreStatus":{ - "name":"DescribeTableRestoreStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeTableRestoreStatusMessage"}, - "output":{ - "shape":"TableRestoreStatusMessage", - "resultWrapper":"DescribeTableRestoreStatusResult" - }, - "errors":[ - {"shape":"TableRestoreNotFoundFault"}, - {"shape":"ClusterNotFoundFault"} + { + "shape":"SnapshotCopyGrantNotFoundFault", + "error":{ + "code":"SnapshotCopyGrantNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DescribeTags":{ @@ -709,8 +1694,24 @@ "resultWrapper":"DescribeTagsResult" }, "errors":[ - {"shape":"ResourceNotFoundFault"}, - {"shape":"InvalidTagFault"} + { + "shape":"ResourceNotFoundFault", + "error":{ + "code":"ResourceNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidTagFault", + "error":{ + "code":"InvalidTagFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DisableLogging":{ @@ -725,7 +1726,15 @@ "resultWrapper":"DisableLoggingResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"} + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "DisableSnapshotCopy":{ @@ -737,13 +1746,46 @@ "input":{"shape":"DisableSnapshotCopyMessage"}, "output":{ "shape":"DisableSnapshotCopyResult", + "wrapper":true, "resultWrapper":"DisableSnapshotCopyResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"}, - {"shape":"SnapshotCopyAlreadyDisabledFault"}, - {"shape":"InvalidClusterStateFault"}, - {"shape":"UnauthorizedOperation"} + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotCopyAlreadyDisabledFault", + "error":{ + "code":"SnapshotCopyAlreadyDisabledFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterStateFault", + "error":{ + "code":"InvalidClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnauthorizedOperation", + "error":{ + "code":"UnauthorizedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "EnableLogging":{ @@ -758,11 +1800,51 @@ "resultWrapper":"EnableLoggingResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"}, - {"shape":"BucketNotFoundFault"}, - {"shape":"InsufficientS3BucketPolicyFault"}, - {"shape":"InvalidS3KeyPrefixFault"}, - {"shape":"InvalidS3BucketNameFault"} + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"BucketNotFoundFault", + "error":{ + "code":"BucketNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientS3BucketPolicyFault", + "error":{ + "code":"InsufficientS3BucketPolicyFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidS3KeyPrefixFault", + "error":{ + "code":"InvalidS3KeyPrefixFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidS3BucketNameFault", + "error":{ + "code":"InvalidS3BucketNameFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "EnableSnapshotCopy":{ @@ -774,19 +1856,91 @@ "input":{"shape":"EnableSnapshotCopyMessage"}, "output":{ "shape":"EnableSnapshotCopyResult", + "wrapper":true, "resultWrapper":"EnableSnapshotCopyResult" }, "errors":[ - {"shape":"IncompatibleOrderableOptions"}, - {"shape":"InvalidClusterStateFault"}, - {"shape":"ClusterNotFoundFault"}, - {"shape":"CopyToRegionDisabledFault"}, - {"shape":"SnapshotCopyAlreadyEnabledFault"}, - {"shape":"UnknownSnapshotCopyRegionFault"}, - {"shape":"UnauthorizedOperation"}, - {"shape":"SnapshotCopyGrantNotFoundFault"}, - {"shape":"LimitExceededFault"}, - {"shape":"DependentServiceRequestThrottlingFault"} + { + "shape":"IncompatibleOrderableOptions", + "error":{ + "code":"IncompatibleOrderableOptions", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterStateFault", + "error":{ + "code":"InvalidClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"CopyToRegionDisabledFault", + "error":{ + "code":"CopyToRegionDisabledFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotCopyAlreadyEnabledFault", + "error":{ + "code":"SnapshotCopyAlreadyEnabledFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnknownSnapshotCopyRegionFault", + "error":{ + "code":"UnknownSnapshotCopyRegionFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnauthorizedOperation", + "error":{ + "code":"UnauthorizedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotCopyGrantNotFoundFault", + "error":{ + "code":"SnapshotCopyGrantNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyCluster":{ @@ -798,40 +1952,127 @@ "input":{"shape":"ModifyClusterMessage"}, "output":{ "shape":"ModifyClusterResult", + "wrapper":true, "resultWrapper":"ModifyClusterResult" }, "errors":[ - {"shape":"InvalidClusterStateFault"}, - {"shape":"InvalidClusterSecurityGroupStateFault"}, - {"shape":"ClusterNotFoundFault"}, - {"shape":"NumberOfNodesQuotaExceededFault"}, - {"shape":"ClusterSecurityGroupNotFoundFault"}, - {"shape":"ClusterParameterGroupNotFoundFault"}, - {"shape":"InsufficientClusterCapacityFault"}, - {"shape":"UnsupportedOptionFault"}, - {"shape":"UnauthorizedOperation"}, - {"shape":"HsmClientCertificateNotFoundFault"}, - {"shape":"HsmConfigurationNotFoundFault"}, - {"shape":"ClusterAlreadyExistsFault"}, - {"shape":"LimitExceededFault"}, - {"shape":"DependentServiceRequestThrottlingFault"}, - {"shape":"InvalidElasticIpFault"} - ] - }, - "ModifyClusterIamRoles":{ - "name":"ModifyClusterIamRoles", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyClusterIamRolesMessage"}, - "output":{ - "shape":"ModifyClusterIamRolesResult", - "resultWrapper":"ModifyClusterIamRolesResult" - }, - "errors":[ - {"shape":"InvalidClusterStateFault"}, - {"shape":"ClusterNotFoundFault"} + { + "shape":"InvalidClusterStateFault", + "error":{ + "code":"InvalidClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterSecurityGroupStateFault", + "error":{ + "code":"InvalidClusterSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NumberOfNodesQuotaExceededFault", + "error":{ + "code":"NumberOfNodesQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSecurityGroupNotFoundFault", + "error":{ + "code":"ClusterSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterParameterGroupNotFoundFault", + "error":{ + "code":"ClusterParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientClusterCapacityFault", + "error":{ + "code":"InsufficientClusterCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnsupportedOptionFault", + "error":{ + "code":"UnsupportedOptionFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnauthorizedOperation", + "error":{ + "code":"UnauthorizedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"HsmClientCertificateNotFoundFault", + "error":{ + "code":"HsmClientCertificateNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"HsmConfigurationNotFoundFault", + "error":{ + "code":"HsmConfigurationNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterAlreadyExistsFault", + "error":{ + "code":"ClusterAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyClusterParameterGroup":{ @@ -846,8 +2087,24 @@ "resultWrapper":"ModifyClusterParameterGroupResult" }, "errors":[ - {"shape":"ClusterParameterGroupNotFoundFault"}, - {"shape":"InvalidClusterParameterGroupStateFault"} + { + "shape":"ClusterParameterGroupNotFoundFault", + "error":{ + "code":"ClusterParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterParameterGroupStateFault", + "error":{ + "code":"InvalidClusterParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyClusterSubnetGroup":{ @@ -859,15 +2116,55 @@ "input":{"shape":"ModifyClusterSubnetGroupMessage"}, "output":{ "shape":"ModifyClusterSubnetGroupResult", + "wrapper":true, "resultWrapper":"ModifyClusterSubnetGroupResult" }, "errors":[ - {"shape":"ClusterSubnetGroupNotFoundFault"}, - {"shape":"ClusterSubnetQuotaExceededFault"}, - {"shape":"SubnetAlreadyInUse"}, - {"shape":"InvalidSubnet"}, - {"shape":"UnauthorizedOperation"}, - {"shape":"DependentServiceRequestThrottlingFault"} + { + "shape":"ClusterSubnetGroupNotFoundFault", + "error":{ + "code":"ClusterSubnetGroupNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSubnetQuotaExceededFault", + "error":{ + "code":"ClusterSubnetQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubnetAlreadyInUse", + "error":{ + "code":"SubnetAlreadyInUse", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnauthorizedOperation", + "error":{ + "code":"UnauthorizedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifyEventSubscription":{ @@ -879,18 +2176,91 @@ "input":{"shape":"ModifyEventSubscriptionMessage"}, "output":{ "shape":"ModifyEventSubscriptionResult", + "wrapper":true, "resultWrapper":"ModifyEventSubscriptionResult" }, "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionEventIdNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"}, - {"shape":"SubscriptionSeverityNotFoundFault"}, - {"shape":"SourceNotFoundFault"}, - {"shape":"InvalidSubscriptionStateFault"} + { + "shape":"SubscriptionNotFoundFault", + "error":{ + "code":"SubscriptionNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSInvalidTopicFault", + "error":{ + "code":"SNSInvalidTopic", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSNoAuthorizationFault", + "error":{ + "code":"SNSNoAuthorization", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SNSTopicArnNotFoundFault", + "error":{ + "code":"SNSTopicArnNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionEventIdNotFoundFault", + "error":{ + "code":"SubscriptionEventIdNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionCategoryNotFoundFault", + "error":{ + "code":"SubscriptionCategoryNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SubscriptionSeverityNotFoundFault", + "error":{ + "code":"SubscriptionSeverityNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SourceNotFoundFault", + "error":{ + "code":"SourceNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubscriptionStateFault", + "error":{ + "code":"InvalidSubscriptionStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ModifySnapshotCopyRetentionPeriod":{ @@ -902,13 +2272,46 @@ "input":{"shape":"ModifySnapshotCopyRetentionPeriodMessage"}, "output":{ "shape":"ModifySnapshotCopyRetentionPeriodResult", + "wrapper":true, "resultWrapper":"ModifySnapshotCopyRetentionPeriodResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"}, - {"shape":"SnapshotCopyDisabledFault"}, - {"shape":"UnauthorizedOperation"}, - {"shape":"InvalidClusterStateFault"} + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"SnapshotCopyDisabledFault", + "error":{ + "code":"SnapshotCopyDisabledFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnauthorizedOperation", + "error":{ + "code":"UnauthorizedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterStateFault", + "error":{ + "code":"InvalidClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "PurchaseReservedNodeOffering":{ @@ -920,13 +2323,46 @@ "input":{"shape":"PurchaseReservedNodeOfferingMessage"}, "output":{ "shape":"PurchaseReservedNodeOfferingResult", + "wrapper":true, "resultWrapper":"PurchaseReservedNodeOfferingResult" }, "errors":[ - {"shape":"ReservedNodeOfferingNotFoundFault"}, - {"shape":"ReservedNodeAlreadyExistsFault"}, - {"shape":"ReservedNodeQuotaExceededFault"}, - {"shape":"UnsupportedOperationFault"} + { + "shape":"ReservedNodeOfferingNotFoundFault", + "error":{ + "code":"ReservedNodeOfferingNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ReservedNodeAlreadyExistsFault", + "error":{ + "code":"ReservedNodeAlreadyExists", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ReservedNodeQuotaExceededFault", + "error":{ + "code":"ReservedNodeQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnsupportedOperationFault", + "error":{ + "code":"UnsupportedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "RebootCluster":{ @@ -938,11 +2374,28 @@ "input":{"shape":"RebootClusterMessage"}, "output":{ "shape":"RebootClusterResult", + "wrapper":true, "resultWrapper":"RebootClusterResult" }, "errors":[ - {"shape":"InvalidClusterStateFault"}, - {"shape":"ClusterNotFoundFault"} + { + "shape":"InvalidClusterStateFault", + "error":{ + "code":"InvalidClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "ResetClusterParameterGroup":{ @@ -957,8 +2410,24 @@ "resultWrapper":"ResetClusterParameterGroupResult" }, "errors":[ - {"shape":"InvalidClusterParameterGroupStateFault"}, - {"shape":"ClusterParameterGroupNotFoundFault"} + { + "shape":"InvalidClusterParameterGroupStateFault", + "error":{ + "code":"InvalidClusterParameterGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterParameterGroupNotFoundFault", + "error":{ + "code":"ClusterParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "RestoreFromClusterSnapshot":{ @@ -970,51 +2439,190 @@ "input":{"shape":"RestoreFromClusterSnapshotMessage"}, "output":{ "shape":"RestoreFromClusterSnapshotResult", + "wrapper":true, "resultWrapper":"RestoreFromClusterSnapshotResult" }, "errors":[ - {"shape":"AccessToSnapshotDeniedFault"}, - {"shape":"ClusterAlreadyExistsFault"}, - {"shape":"ClusterSnapshotNotFoundFault"}, - {"shape":"ClusterQuotaExceededFault"}, - {"shape":"InsufficientClusterCapacityFault"}, - {"shape":"InvalidClusterSnapshotStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"NumberOfNodesQuotaExceededFault"}, - {"shape":"NumberOfNodesPerClusterLimitExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidClusterSubnetGroupStateFault"}, - {"shape":"InvalidSubnet"}, - {"shape":"ClusterSubnetGroupNotFoundFault"}, - {"shape":"UnauthorizedOperation"}, - {"shape":"HsmClientCertificateNotFoundFault"}, - {"shape":"HsmConfigurationNotFoundFault"}, - {"shape":"InvalidElasticIpFault"}, - {"shape":"ClusterParameterGroupNotFoundFault"}, - {"shape":"ClusterSecurityGroupNotFoundFault"}, - {"shape":"LimitExceededFault"}, - {"shape":"DependentServiceRequestThrottlingFault"} - ] - }, - "RestoreTableFromClusterSnapshot":{ - "name":"RestoreTableFromClusterSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreTableFromClusterSnapshotMessage"}, - "output":{ - "shape":"RestoreTableFromClusterSnapshotResult", - "resultWrapper":"RestoreTableFromClusterSnapshotResult" - }, - "errors":[ - {"shape":"ClusterSnapshotNotFoundFault"}, - {"shape":"InProgressTableRestoreQuotaExceededFault"}, - {"shape":"InvalidClusterSnapshotStateFault"}, - {"shape":"InvalidTableRestoreArgumentFault"}, - {"shape":"ClusterNotFoundFault"}, - {"shape":"InvalidClusterStateFault"}, - {"shape":"UnsupportedOperationFault"} + { + "shape":"AccessToSnapshotDeniedFault", + "error":{ + "code":"AccessToSnapshotDenied", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterAlreadyExistsFault", + "error":{ + "code":"ClusterAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSnapshotNotFoundFault", + "error":{ + "code":"ClusterSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterQuotaExceededFault", + "error":{ + "code":"ClusterQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InsufficientClusterCapacityFault", + "error":{ + "code":"InsufficientClusterCapacity", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterSnapshotStateFault", + "error":{ + "code":"InvalidClusterSnapshotState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidRestoreFault", + "error":{ + "code":"InvalidRestore", + "httpStatusCode":406, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NumberOfNodesQuotaExceededFault", + "error":{ + "code":"NumberOfNodesQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"NumberOfNodesPerClusterLimitExceededFault", + "error":{ + "code":"NumberOfNodesPerClusterLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidVPCNetworkStateFault", + "error":{ + "code":"InvalidVPCNetworkStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterSubnetGroupStateFault", + "error":{ + "code":"InvalidClusterSubnetGroupStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidSubnet", + "error":{ + "code":"InvalidSubnet", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSubnetGroupNotFoundFault", + "error":{ + "code":"ClusterSubnetGroupNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnauthorizedOperation", + "error":{ + "code":"UnauthorizedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"HsmClientCertificateNotFoundFault", + "error":{ + "code":"HsmClientCertificateNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"HsmConfigurationNotFoundFault", + "error":{ + "code":"HsmConfigurationNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidElasticIpFault", + "error":{ + "code":"InvalidElasticIpFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterParameterGroupNotFoundFault", + "error":{ + "code":"ClusterParameterGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSecurityGroupNotFoundFault", + "error":{ + "code":"ClusterSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"LimitExceededFault", + "error":{ + "code":"LimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "RevokeClusterSecurityGroupIngress":{ @@ -1026,12 +2634,37 @@ "input":{"shape":"RevokeClusterSecurityGroupIngressMessage"}, "output":{ "shape":"RevokeClusterSecurityGroupIngressResult", + "wrapper":true, "resultWrapper":"RevokeClusterSecurityGroupIngressResult" }, "errors":[ - {"shape":"ClusterSecurityGroupNotFoundFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"InvalidClusterSecurityGroupStateFault"} + { + "shape":"ClusterSecurityGroupNotFoundFault", + "error":{ + "code":"ClusterSecurityGroupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationNotFoundFault", + "error":{ + "code":"AuthorizationNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterSecurityGroupStateFault", + "error":{ + "code":"InvalidClusterSecurityGroupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "RevokeSnapshotAccess":{ @@ -1043,12 +2676,37 @@ "input":{"shape":"RevokeSnapshotAccessMessage"}, "output":{ "shape":"RevokeSnapshotAccessResult", + "wrapper":true, "resultWrapper":"RevokeSnapshotAccessResult" }, "errors":[ - {"shape":"AccessToSnapshotDeniedFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"ClusterSnapshotNotFoundFault"} + { + "shape":"AccessToSnapshotDeniedFault", + "error":{ + "code":"AccessToSnapshotDenied", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AuthorizationNotFoundFault", + "error":{ + "code":"AuthorizationNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ClusterSnapshotNotFoundFault", + "error":{ + "code":"ClusterSnapshotNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } ] }, "RotateEncryptionKey":{ @@ -1060,12 +2718,28 @@ "input":{"shape":"RotateEncryptionKeyMessage"}, "output":{ "shape":"RotateEncryptionKeyResult", + "wrapper":true, "resultWrapper":"RotateEncryptionKeyResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"}, - {"shape":"InvalidClusterStateFault"}, - {"shape":"DependentServiceRequestThrottlingFault"} + { + "shape":"ClusterNotFoundFault", + "error":{ + "code":"ClusterNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidClusterStateFault", + "error":{ + "code":"InvalidClusterState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] } }, @@ -1137,12 +2811,6 @@ "EC2SecurityGroupOwnerId":{"shape":"String"} } }, - "AuthorizeClusterSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "ClusterSecurityGroup":{"shape":"ClusterSecurityGroup"} - } - }, "AuthorizeSnapshotAccessMessage":{ "type":"structure", "required":[ @@ -1155,12 +2823,6 @@ "AccountWithRestoreAccess":{"shape":"String"} } }, - "AuthorizeSnapshotAccessResult":{ - "type":"structure", - "members":{ - "Snapshot":{"shape":"Snapshot"} - } - }, "AvailabilityZone":{ "type":"structure", "members":{ @@ -1221,8 +2883,7 @@ "ElasticIpStatus":{"shape":"ElasticIpStatus"}, "ClusterRevisionNumber":{"shape":"String"}, "Tags":{"shape":"TagList"}, - "KmsKeyId":{"shape":"String"}, - "IamRoles":{"shape":"ClusterIamRoleList"} + "KmsKeyId":{"shape":"String"} }, "wrapper":true }, @@ -1237,20 +2898,6 @@ }, "exception":true }, - "ClusterIamRole":{ - "type":"structure", - "members":{ - "IamRoleArn":{"shape":"String"}, - "ApplyStatus":{"shape":"String"} - } - }, - "ClusterIamRoleList":{ - "type":"list", - "member":{ - "shape":"ClusterIamRole", - "locationName":"ClusterIamRole" - } - }, "ClusterList":{ "type":"list", "member":{ @@ -1614,12 +3261,6 @@ "TargetSnapshotIdentifier":{"shape":"String"} } }, - "CopyClusterSnapshotResult":{ - "type":"structure", - "members":{ - "Snapshot":{"shape":"Snapshot"} - } - }, "CopyToRegionDisabledFault":{ "type":"structure", "members":{ @@ -1663,9 +3304,7 @@ "HsmConfigurationIdentifier":{"shape":"String"}, "ElasticIp":{"shape":"String"}, "Tags":{"shape":"TagList"}, - "KmsKeyId":{"shape":"String"}, - "AdditionalInfo":{"shape":"String"}, - "IamRoles":{"shape":"IamRoleArnList"} + "KmsKeyId":{"shape":"String"} } }, "CreateClusterParameterGroupMessage":{ @@ -1682,18 +3321,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateClusterParameterGroupResult":{ - "type":"structure", - "members":{ - "ClusterParameterGroup":{"shape":"ClusterParameterGroup"} - } - }, - "CreateClusterResult":{ - "type":"structure", - "members":{ - "Cluster":{"shape":"Cluster"} - } - }, "CreateClusterSecurityGroupMessage":{ "type":"structure", "required":[ @@ -1706,12 +3333,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateClusterSecurityGroupResult":{ - "type":"structure", - "members":{ - "ClusterSecurityGroup":{"shape":"ClusterSecurityGroup"} - } - }, "CreateClusterSnapshotMessage":{ "type":"structure", "required":[ @@ -1724,12 +3345,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateClusterSnapshotResult":{ - "type":"structure", - "members":{ - "Snapshot":{"shape":"Snapshot"} - } - }, "CreateClusterSubnetGroupMessage":{ "type":"structure", "required":[ @@ -1744,12 +3359,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateClusterSubnetGroupResult":{ - "type":"structure", - "members":{ - "ClusterSubnetGroup":{"shape":"ClusterSubnetGroup"} - } - }, "CreateEventSubscriptionMessage":{ "type":"structure", "required":[ @@ -1767,12 +3376,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, "CreateHsmClientCertificateMessage":{ "type":"structure", "required":["HsmClientCertificateIdentifier"], @@ -1781,12 +3384,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateHsmClientCertificateResult":{ - "type":"structure", - "members":{ - "HsmClientCertificate":{"shape":"HsmClientCertificate"} - } - }, "CreateHsmConfigurationMessage":{ "type":"structure", "required":[ @@ -1807,12 +3404,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateHsmConfigurationResult":{ - "type":"structure", - "members":{ - "HsmConfiguration":{"shape":"HsmConfiguration"} - } - }, "CreateSnapshotCopyGrantMessage":{ "type":"structure", "required":["SnapshotCopyGrantName"], @@ -1822,12 +3413,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateSnapshotCopyGrantResult":{ - "type":"structure", - "members":{ - "SnapshotCopyGrant":{"shape":"SnapshotCopyGrant"} - } - }, "CreateTagsMessage":{ "type":"structure", "required":[ @@ -1864,12 +3449,6 @@ "ParameterGroupName":{"shape":"String"} } }, - "DeleteClusterResult":{ - "type":"structure", - "members":{ - "Cluster":{"shape":"Cluster"} - } - }, "DeleteClusterSecurityGroupMessage":{ "type":"structure", "required":["ClusterSecurityGroupName"], @@ -1885,12 +3464,6 @@ "SnapshotClusterIdentifier":{"shape":"String"} } }, - "DeleteClusterSnapshotResult":{ - "type":"structure", - "members":{ - "Snapshot":{"shape":"Snapshot"} - } - }, "DeleteClusterSubnetGroupMessage":{ "type":"structure", "required":["ClusterSubnetGroupName"], @@ -1937,17 +3510,6 @@ "TagKeys":{"shape":"TagKeyList"} } }, - "DependentServiceRequestThrottlingFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DependentServiceRequestThrottlingFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, "DescribeClusterParameterGroupsMessage":{ "type":"structure", "members":{ @@ -2031,12 +3593,6 @@ "Marker":{"shape":"String"} } }, - "DescribeDefaultClusterParametersResult":{ - "type":"structure", - "members":{ - "DefaultClusterParameters":{"shape":"DefaultClusterParameters"} - } - }, "DescribeEventCategoriesMessage":{ "type":"structure", "members":{ @@ -2132,15 +3688,6 @@ "TagValues":{"shape":"TagValueList"} } }, - "DescribeTableRestoreStatusMessage":{ - "type":"structure", - "members":{ - "ClusterIdentifier":{"shape":"String"}, - "TableRestoreRequestId":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, "DescribeTagsMessage":{ "type":"structure", "members":{ @@ -2166,12 +3713,6 @@ "ClusterIdentifier":{"shape":"String"} } }, - "DisableSnapshotCopyResult":{ - "type":"structure", - "members":{ - "Cluster":{"shape":"Cluster"} - } - }, "Double":{"type":"double"}, "DoubleOptional":{"type":"double"}, "EC2SecurityGroup":{ @@ -2222,12 +3763,6 @@ "SnapshotCopyGrantName":{"shape":"String"} } }, - "EnableSnapshotCopyResult":{ - "type":"structure", - "members":{ - "Cluster":{"shape":"Cluster"} - } - }, "Endpoint":{ "type":"structure", "members":{ @@ -2485,13 +4020,6 @@ "locationName":"IPRange" } }, - "IamRoleArnList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"IamRoleArn" - } - }, "ImportTablesCompleted":{ "type":"list", "member":{"shape":"String"} @@ -2504,17 +4032,6 @@ "type":"list", "member":{"shape":"String"} }, - "InProgressTableRestoreQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InProgressTableRestoreQuotaExceededFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, "IncompatibleOrderableOptions":{ "type":"structure", "members":{ @@ -2715,17 +4232,6 @@ }, "exception":true }, - "InvalidTableRestoreArgumentFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidTableRestoreArgument", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, "InvalidTagFault":{ "type":"structure", "members":{ @@ -2772,21 +4278,6 @@ }, "Long":{"type":"long"}, "LongOptional":{"type":"long"}, - "ModifyClusterIamRolesMessage":{ - "type":"structure", - "required":["ClusterIdentifier"], - "members":{ - "ClusterIdentifier":{"shape":"String"}, - "AddIamRoles":{"shape":"IamRoleArnList"}, - "RemoveIamRoles":{"shape":"IamRoleArnList"} - } - }, - "ModifyClusterIamRolesResult":{ - "type":"structure", - "members":{ - "Cluster":{"shape":"Cluster"} - } - }, "ModifyClusterMessage":{ "type":"structure", "required":["ClusterIdentifier"], @@ -2805,9 +4296,7 @@ "AllowVersionUpgrade":{"shape":"BooleanOptional"}, "HsmClientCertificateIdentifier":{"shape":"String"}, "HsmConfigurationIdentifier":{"shape":"String"}, - "NewClusterIdentifier":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "ElasticIp":{"shape":"String"} + "NewClusterIdentifier":{"shape":"String"} } }, "ModifyClusterParameterGroupMessage":{ @@ -2821,12 +4310,6 @@ "Parameters":{"shape":"ParametersList"} } }, - "ModifyClusterResult":{ - "type":"structure", - "members":{ - "Cluster":{"shape":"Cluster"} - } - }, "ModifyClusterSubnetGroupMessage":{ "type":"structure", "required":[ @@ -2839,12 +4322,6 @@ "SubnetIds":{"shape":"SubnetIdentifierList"} } }, - "ModifyClusterSubnetGroupResult":{ - "type":"structure", - "members":{ - "ClusterSubnetGroup":{"shape":"ClusterSubnetGroup"} - } - }, "ModifyEventSubscriptionMessage":{ "type":"structure", "required":["SubscriptionName"], @@ -2858,12 +4335,6 @@ "Enabled":{"shape":"BooleanOptional"} } }, - "ModifyEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, "ModifySnapshotCopyRetentionPeriodMessage":{ "type":"structure", "required":[ @@ -2875,12 +4346,6 @@ "RetentionPeriod":{"shape":"Integer"} } }, - "ModifySnapshotCopyRetentionPeriodResult":{ - "type":"structure", - "members":{ - "Cluster":{"shape":"Cluster"} - } - }, "NumberOfNodesPerClusterLimitExceededFault":{ "type":"structure", "members":{ @@ -2971,8 +4436,7 @@ "ClusterType":{"shape":"String"}, "ClusterVersion":{"shape":"String"}, "AutomatedSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, - "ClusterIdentifier":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"} + "ClusterIdentifier":{"shape":"String"} } }, "PurchaseReservedNodeOfferingMessage":{ @@ -2983,12 +4447,6 @@ "NodeCount":{"shape":"IntegerOptional"} } }, - "PurchaseReservedNodeOfferingResult":{ - "type":"structure", - "members":{ - "ReservedNode":{"shape":"ReservedNode"} - } - }, "RebootClusterMessage":{ "type":"structure", "required":["ClusterIdentifier"], @@ -2996,12 +4454,6 @@ "ClusterIdentifier":{"shape":"String"} } }, - "RebootClusterResult":{ - "type":"structure", - "members":{ - "Cluster":{"shape":"Cluster"} - } - }, "RecurringCharge":{ "type":"structure", "members":{ @@ -3201,15 +4653,7 @@ "PreferredMaintenanceWindow":{"shape":"String"}, "AutomatedSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, "KmsKeyId":{"shape":"String"}, - "NodeType":{"shape":"String"}, - "AdditionalInfo":{"shape":"String"}, - "IamRoles":{"shape":"IamRoleArnList"} - } - }, - "RestoreFromClusterSnapshotResult":{ - "type":"structure", - "members":{ - "Cluster":{"shape":"Cluster"} + "NodeType":{"shape":"String"} } }, "RestoreStatus":{ @@ -3223,32 +4667,6 @@ "EstimatedTimeToCompletionInSeconds":{"shape":"Long"} } }, - "RestoreTableFromClusterSnapshotMessage":{ - "type":"structure", - "required":[ - "ClusterIdentifier", - "SnapshotIdentifier", - "SourceDatabaseName", - "SourceTableName", - "NewTableName" - ], - "members":{ - "ClusterIdentifier":{"shape":"String"}, - "SnapshotIdentifier":{"shape":"String"}, - "SourceDatabaseName":{"shape":"String"}, - "SourceSchemaName":{"shape":"String"}, - "SourceTableName":{"shape":"String"}, - "TargetDatabaseName":{"shape":"String"}, - "TargetSchemaName":{"shape":"String"}, - "NewTableName":{"shape":"String"} - } - }, - "RestoreTableFromClusterSnapshotResult":{ - "type":"structure", - "members":{ - "TableRestoreStatus":{"shape":"TableRestoreStatus"} - } - }, "RevokeClusterSecurityGroupIngressMessage":{ "type":"structure", "required":["ClusterSecurityGroupName"], @@ -3259,12 +4677,6 @@ "EC2SecurityGroupOwnerId":{"shape":"String"} } }, - "RevokeClusterSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "ClusterSecurityGroup":{"shape":"ClusterSecurityGroup"} - } - }, "RevokeSnapshotAccessMessage":{ "type":"structure", "required":[ @@ -3277,12 +4689,6 @@ "AccountWithRestoreAccess":{"shape":"String"} } }, - "RevokeSnapshotAccessResult":{ - "type":"structure", - "members":{ - "Snapshot":{"shape":"Snapshot"} - } - }, "RotateEncryptionKeyMessage":{ "type":"structure", "required":["ClusterIdentifier"], @@ -3290,12 +4696,6 @@ "ClusterIdentifier":{"shape":"String"} } }, - "RotateEncryptionKeyResult":{ - "type":"structure", - "members":{ - "Cluster":{"shape":"Cluster"} - } - }, "SNSInvalidTopicFault":{ "type":"structure", "members":{ @@ -3583,61 +4983,6 @@ "exception":true }, "TStamp":{"type":"timestamp"}, - "TableRestoreNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"TableRestoreNotFoundFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "TableRestoreStatus":{ - "type":"structure", - "members":{ - "TableRestoreRequestId":{"shape":"String"}, - "Status":{"shape":"TableRestoreStatusType"}, - "Message":{"shape":"String"}, - "RequestTime":{"shape":"TStamp"}, - "ProgressInMegaBytes":{"shape":"LongOptional"}, - "TotalDataInMegaBytes":{"shape":"LongOptional"}, - "ClusterIdentifier":{"shape":"String"}, - "SnapshotIdentifier":{"shape":"String"}, - "SourceDatabaseName":{"shape":"String"}, - "SourceSchemaName":{"shape":"String"}, - "SourceTableName":{"shape":"String"}, - "TargetDatabaseName":{"shape":"String"}, - "TargetSchemaName":{"shape":"String"}, - "NewTableName":{"shape":"String"} - }, - "wrapper":true - }, - "TableRestoreStatusList":{ - "type":"list", - "member":{ - "shape":"TableRestoreStatus", - "locationName":"TableRestoreStatus" - } - }, - "TableRestoreStatusMessage":{ - "type":"structure", - "members":{ - "TableRestoreStatusDetails":{"shape":"TableRestoreStatusList"}, - "Marker":{"shape":"String"} - } - }, - "TableRestoreStatusType":{ - "type":"string", - "enum":[ - "PENDING", - "IN_PROGRESS", - "SUCCEEDED", - "FAILED", - "CANCELED" - ] - }, "Tag":{ "type":"structure", "members":{ @@ -3763,6 +5108,168 @@ "shape":"VpcSecurityGroupMembership", "locationName":"VpcSecurityGroup" } + }, + "AuthorizeClusterSecurityGroupIngressResult":{ + "type":"structure", + "members":{ + "ClusterSecurityGroup":{"shape":"ClusterSecurityGroup"} + } + }, + "AuthorizeSnapshotAccessResult":{ + "type":"structure", + "members":{ + "Snapshot":{"shape":"Snapshot"} + } + }, + "CopyClusterSnapshotResult":{ + "type":"structure", + "members":{ + "Snapshot":{"shape":"Snapshot"} + } + }, + "CreateClusterResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, + "CreateClusterParameterGroupResult":{ + "type":"structure", + "members":{ + "ClusterParameterGroup":{"shape":"ClusterParameterGroup"} + } + }, + "CreateClusterSecurityGroupResult":{ + "type":"structure", + "members":{ + "ClusterSecurityGroup":{"shape":"ClusterSecurityGroup"} + } + }, + "CreateClusterSnapshotResult":{ + "type":"structure", + "members":{ + "Snapshot":{"shape":"Snapshot"} + } + }, + "CreateClusterSubnetGroupResult":{ + "type":"structure", + "members":{ + "ClusterSubnetGroup":{"shape":"ClusterSubnetGroup"} + } + }, + "CreateEventSubscriptionResult":{ + "type":"structure", + "members":{ + "EventSubscription":{"shape":"EventSubscription"} + } + }, + "CreateHsmClientCertificateResult":{ + "type":"structure", + "members":{ + "HsmClientCertificate":{"shape":"HsmClientCertificate"} + } + }, + "CreateHsmConfigurationResult":{ + "type":"structure", + "members":{ + "HsmConfiguration":{"shape":"HsmConfiguration"} + } + }, + "CreateSnapshotCopyGrantResult":{ + "type":"structure", + "members":{ + "SnapshotCopyGrant":{"shape":"SnapshotCopyGrant"} + } + }, + "DeleteClusterResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, + "DeleteClusterSnapshotResult":{ + "type":"structure", + "members":{ + "Snapshot":{"shape":"Snapshot"} + } + }, + "DescribeDefaultClusterParametersResult":{ + "type":"structure", + "members":{ + "DefaultClusterParameters":{"shape":"DefaultClusterParameters"} + } + }, + "DisableSnapshotCopyResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, + "EnableSnapshotCopyResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, + "ModifyClusterResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, + "ModifyClusterSubnetGroupResult":{ + "type":"structure", + "members":{ + "ClusterSubnetGroup":{"shape":"ClusterSubnetGroup"} + } + }, + "ModifyEventSubscriptionResult":{ + "type":"structure", + "members":{ + "EventSubscription":{"shape":"EventSubscription"} + } + }, + "ModifySnapshotCopyRetentionPeriodResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, + "PurchaseReservedNodeOfferingResult":{ + "type":"structure", + "members":{ + "ReservedNode":{"shape":"ReservedNode"} + } + }, + "RebootClusterResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, + "RestoreFromClusterSnapshotResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, + "RevokeClusterSecurityGroupIngressResult":{ + "type":"structure", + "members":{ + "ClusterSecurityGroup":{"shape":"ClusterSecurityGroup"} + } + }, + "RevokeSnapshotAccessResult":{ + "type":"structure", + "members":{ + "Snapshot":{"shape":"Snapshot"} + } + }, + "RotateEncryptionKeyResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/redshift/2012-12-01/docs-2.json similarity index 90% rename from vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/redshift/2012-12-01/docs-2.json index 221b5c124..ee414036b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/redshift/2012-12-01/docs-2.json @@ -1,8 +1,7 @@ { "version": "2.0", - "service": "Amazon Redshift Overview

This is an interface reference for Amazon Redshift. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift clusters. Note that Amazon Redshift is asynchronous, which means that some interfaces may require techniques, such as polling or asynchronous callback handlers, to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a change is applied immediately, on the next instance reboot, or during the next maintenance window. For a summary of the Amazon Redshift cluster management interfaces, go to Using the Amazon Redshift Management Interfaces .

Amazon Redshift manages all the work of setting up, operating, and scaling a data warehouse: provisioning capacity, monitoring and backing up the cluster, and applying patches and upgrades to the Amazon Redshift engine. You can focus on using your data to acquire new insights for your business and customers.

If you are a first-time user of Amazon Redshift, we recommend that you begin by reading the The Amazon Redshift Getting Started Guide

If you are a database developer, the Amazon Redshift Database Developer Guide explains how to design, build, query, and maintain the databases that make up your data warehouse.

", "operations": { - "AuthorizeClusterSecurityGroupIngress": "

Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending on whether the application accessing your cluster is running on the Internet or an Amazon EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR)/Internet Protocol (IP) range or to an Amazon EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

If you authorize access to an Amazon EC2 security group, specify EC2SecurityGroupName and EC2SecurityGroupOwnerId. The Amazon EC2 security group and Amazon Redshift cluster must be in the same AWS region.

If you authorize access to a CIDR/IP address range, specify CIDRIP. For an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain Routing.

You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to Working with Security Groups in the Amazon Redshift Cluster Management Guide.

", + "AuthorizeClusterSecurityGroupIngress": "

Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending on whether the application accessing your cluster is running on the Internet or an EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR) IP address range or an EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

The EC2 security group must be defined in the AWS region where the cluster resides.

For an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain Routing.

You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to Working with Security Groups in the Amazon Redshift Cluster Management Guide.

", "AuthorizeSnapshotAccess": "

Authorizes the specified AWS customer account to restore the specified snapshot.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.

", "CopyClusterSnapshot": "

Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.

When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.

", "CreateCluster": "

Creates a new cluster. To create the cluster in virtual private cloud (VPC), you must provide cluster subnet group name. If you don't provide a cluster subnet group name or the cluster security group parameter, Amazon Redshift creates a non-VPC cluster, it associates the default cluster security group with the cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

", @@ -44,14 +43,12 @@ "DescribeReservedNodes": "

Returns the descriptions of the reserved nodes.

", "DescribeResize": "

Returns information about the last resize operation for the specified cluster. If no resize operation has ever been initiated for the specified cluster, a HTTP 404 error is returned. If a resize operation was initiated and completed, the status of the resize remains as SUCCEEDED until the next resize.

A resize operation can be requested using ModifyCluster and specifying a different number or type of nodes for the cluster.

", "DescribeSnapshotCopyGrants": "

Returns a list of snapshot copy grants owned by the AWS account in the destination region.

For more information about managing snapshot copy grants, go to Amazon Redshift Database Encryption in the Amazon Redshift Cluster Management Guide.

", - "DescribeTableRestoreStatus": "

Lists the status of one or more table restore requests made using the RestoreTableFromClusterSnapshot API action. If you don't specify a value for the TableRestoreRequestId parameter, then DescribeTableRestoreStatus returns the status of all table restore requests ordered by the date and time of the request in ascending order. Otherwise DescribeTableRestoreStatus returns the status of the table specified by TableRestoreRequestId.

", "DescribeTags": "

Returns a list of tags. You can return tags from a specific resource by specifying an ARN, or you can return all tags for a given type of resource, such as clusters, snapshots, and so on.

The following are limitations for DescribeTags:

  • You cannot specify an ARN and a resource-type value together in the same request.
  • You cannot use the MaxRecords and Marker parameters together with the ARN parameter.
  • The MaxRecords parameter can be a range from 10 to 50 results to return in a request.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all resources that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all resources that have any combination of those values are returned.

If both tag keys and values are omitted from the request, resources are returned regardless of whether they have tag keys or values associated with them.

", "DisableLogging": "

Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

", "DisableSnapshotCopy": "

Disables the automatic copying of snapshots from one region to another region for a specified cluster.

If your cluster and its snapshots are encrypted using a customer master key (CMK) from AWS KMS, use DeleteSnapshotCopyGrant to delete the grant that grants Amazon Redshift permission to the CMK in the destination region.

", "EnableLogging": "

Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

", "EnableSnapshotCopy": "

Enables the automatic copy of snapshots from one region to another region for a specified cluster.

", "ModifyCluster": "

Modifies the settings for a cluster. For example, you can add another security or parameter group, update the preferred maintenance window, or change the master user password. Resetting a cluster password or modifying the security groups associated with a cluster do not need a reboot. However, modifying a parameter group requires a reboot for parameters to take effect. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

You can also change node type and the number of nodes to scale up or down the cluster. When resizing a cluster, you must specify both the number of nodes and the node type even if one of the parameters does not change.

", - "ModifyClusterIamRoles": "

Modifies the list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS services.

A cluster can have up to 10 IAM roles associated at any time.

", "ModifyClusterParameterGroup": "

Modifies the parameters of a parameter group.

For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide.

", "ModifyClusterSubnetGroup": "

Modifies a cluster subnet group to include the specified list of VPC subnets. The operation replaces the existing list of subnets with the new list of subnets.

", "ModifyEventSubscription": "

Modifies an existing Amazon Redshift event notification subscription.

", @@ -60,11 +57,11 @@ "RebootCluster": "

Reboots a cluster. This action is taken as soon as possible. It results in a momentary outage to the cluster, during which the cluster status is set to rebooting. A cluster event is created when the reboot is completed. Any pending cluster modifications (see ModifyCluster) are applied at this reboot. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide

", "ResetClusterParameterGroup": "

Sets one or more parameters of the specified parameter group to their default values and sets the source values of the parameters to \"engine-default\". To reset the entire parameter group specify the ResetAllParameters parameter. For parameter changes to take effect you must reboot any associated clusters.

", "RestoreFromClusterSnapshot": "

Creates a new cluster from a snapshot. By default, Amazon Redshift creates the resulting cluster with the same configuration as the original cluster from which the snapshot was created, except that the new cluster is created with the default cluster security and parameter groups. After Amazon Redshift creates the cluster, you can use the ModifyCluster API to associate a different security group and different parameter group with the restored cluster. If you are using a DS node type, you can also choose to change to another DS node type of the same size during restore.

If you restore a cluster into a VPC, you must provide a cluster subnet group where you want the cluster restored.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.

", - "RestoreTableFromClusterSnapshot": "

Creates a new table from a table in an Amazon Redshift cluster snapshot. You must create the new table within the Amazon Redshift cluster that the snapshot was taken from.

You cannot use RestoreTableFromClusterSnapshot to restore a table with the same name as an existing table in an Amazon Redshift cluster. That is, you cannot overwrite an existing table in a cluster with a restored table. If you want to replace your original table with a new, restored table, then rename or drop your original table before you call RestoreTableFromClusterSnapshot. When you have renamed your original table, then you can pass the original name of the table as the NewTableName parameter value in the call to RestoreTableFromClusterSnapshot. This way, you can replace the original table with the table created from the snapshot.

", "RevokeClusterSecurityGroupIngress": "

Revokes an ingress rule in an Amazon Redshift security group for a previously authorized IP range or Amazon EC2 security group. To add an ingress rule, see AuthorizeClusterSecurityGroupIngress. For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide.

", "RevokeSnapshotAccess": "

Removes the ability of the specified AWS customer account to restore the specified snapshot. If the account is currently restoring the snapshot, the restore will run to completion.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.

", "RotateEncryptionKey": "

Rotates the encryption keys for a cluster.

" }, + "service": "Amazon Redshift Overview

This is an interface reference for Amazon Redshift. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift clusters. Note that Amazon Redshift is asynchronous, which means that some interfaces may require techniques, such as polling or asynchronous callback handlers, to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a change is applied immediately, on the next instance reboot, or during the next maintenance window. For a summary of the Amazon Redshift cluster management interfaces, go to Using the Amazon Redshift Management Interfaces .

Amazon Redshift manages all the work of setting up, operating, and scaling a data warehouse: provisioning capacity, monitoring and backing up the cluster, and applying patches and upgrades to the Amazon Redshift engine. You can focus on using your data to acquire new insights for your business and customers.

If you are a first-time user of Amazon Redshift, we recommend that you begin by reading the The Amazon Redshift Getting Started Guide

If you are a database developer, the Amazon Redshift Database Developer Guide explains how to design, build, query, and maintain the databases that make up your data warehouse.

", "shapes": { "AccessToSnapshotDeniedFault": { "base": "

The owner of the specified snapshot has not authorized your account to access the snapshot.

", @@ -99,12 +96,7 @@ } }, "AuthorizeClusterSecurityGroupIngressMessage": { - "base": "

", - "refs": { - } - }, - "AuthorizeClusterSecurityGroupIngressResult": { - "base": null, + "base": "

???

", "refs": { } }, @@ -113,11 +105,6 @@ "refs": { } }, - "AuthorizeSnapshotAccessResult": { - "base": null, - "refs": { - } - }, "AvailabilityZone": { "base": "

Describes an availability zone.

", "refs": { @@ -154,10 +141,8 @@ "CreateClusterMessage$Encrypted": "

If true, the data in the cluster is encrypted at rest.

Default: false

", "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

", "ModifyClusterMessage$AllowVersionUpgrade": "

If true, major version upgrades will be applied automatically to the cluster during the maintenance window.

Default: false

", - "ModifyClusterMessage$PubliclyAccessible": "

If true, the cluster can be accessed from a public network. Only clusters in VPCs can be set to be publicly available.

", "ModifyEventSubscriptionMessage$Enabled": "

A Boolean value indicating if the subscription is enabled. true indicates the subscription is enabled

", - "PendingModifiedValues$PubliclyAccessible": "

The pending or in-progress change of the ability to connect to the cluster from the public network.

", - "RestoreFromClusterSnapshotMessage$AllowVersionUpgrade": "

If true, major version upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

Default: true

", + "RestoreFromClusterSnapshotMessage$AllowVersionUpgrade": "

If true, major version upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

Default: true

", "RestoreFromClusterSnapshotMessage$PubliclyAccessible": "

If true, the cluster can be accessed from a public network.

" } }, @@ -174,7 +159,6 @@ "DeleteClusterResult$Cluster": null, "DisableSnapshotCopyResult$Cluster": null, "EnableSnapshotCopyResult$Cluster": null, - "ModifyClusterIamRolesResult$Cluster": null, "ModifyClusterResult$Cluster": null, "ModifySnapshotCopyRetentionPeriodResult$Cluster": null, "RebootClusterResult$Cluster": null, @@ -187,22 +171,10 @@ "refs": { } }, - "ClusterIamRole": { - "base": "

An AWS Identity and Access Management (IAM) role that can be used by the associated Amazon Redshift cluster to access other AWS services.

", - "refs": { - "ClusterIamRoleList$member": null - } - }, - "ClusterIamRoleList": { - "base": null, - "refs": { - "Cluster$IamRoles": "

A list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS services.

" - } - }, "ClusterList": { "base": null, "refs": { - "ClustersMessage$Clusters": "

A list of Cluster objects, where each object describes one cluster.

" + "ClustersMessage$Clusters": "

A list of Cluster objects, where each object describes one cluster.

" } }, "ClusterNode": { @@ -218,15 +190,15 @@ } }, "ClusterNotFoundFault": { - "base": "

The ClusterIdentifier parameter does not refer to an existing cluster.

", + "base": "

The ClusterIdentifier parameter does not refer to an existing cluster.

", "refs": { } }, "ClusterParameterGroup": { "base": "

Describes a parameter group.

", "refs": { - "CreateClusterParameterGroupResult$ClusterParameterGroup": null, - "ParameterGroupList$member": null + "ParameterGroupList$member": null, + "CreateClusterParameterGroupResult$ClusterParameterGroup": null } }, "ClusterParameterGroupAlreadyExistsFault": { @@ -240,7 +212,7 @@ } }, "ClusterParameterGroupNameMessage": { - "base": "

", + "base": "

Contains the output from the ModifyClusterParameterGroup and ResetClusterParameterGroup actions and indicate the parameter group involved and the status of the operation on the parameter group.

", "refs": { } }, @@ -291,8 +263,8 @@ "ClusterSecurityGroup": { "base": "

Describes a security group.

", "refs": { - "AuthorizeClusterSecurityGroupIngressResult$ClusterSecurityGroup": null, "ClusterSecurityGroups$member": null, + "AuthorizeClusterSecurityGroupIngressResult$ClusterSecurityGroup": null, "CreateClusterSecurityGroupResult$ClusterSecurityGroup": null, "RevokeClusterSecurityGroupIngressResult$ClusterSecurityGroup": null } @@ -303,7 +275,7 @@ } }, "ClusterSecurityGroupMembership": { - "base": "

Describes a cluster security group.

", + "base": "

Describes a security group.

", "refs": { "ClusterSecurityGroupMembershipList$member": null } @@ -315,7 +287,7 @@ } }, "ClusterSecurityGroupMessage": { - "base": "

", + "base": "

Contains the output from the DescribeClusterSecurityGroups action.

", "refs": { } }, @@ -430,18 +402,13 @@ "refs": { } }, - "CopyClusterSnapshotResult": { - "base": null, - "refs": { - } - }, "CopyToRegionDisabledFault": { "base": "

Cross-region snapshot copy was temporarily disabled. Try your request again.

", "refs": { } }, "CreateClusterMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -450,23 +417,8 @@ "refs": { } }, - "CreateClusterParameterGroupResult": { - "base": null, - "refs": { - } - }, - "CreateClusterResult": { - "base": null, - "refs": { - } - }, "CreateClusterSecurityGroupMessage": { - "base": "

", - "refs": { - } - }, - "CreateClusterSecurityGroupResult": { - "base": null, + "base": "

???

", "refs": { } }, @@ -475,48 +427,23 @@ "refs": { } }, - "CreateClusterSnapshotResult": { - "base": null, - "refs": { - } - }, "CreateClusterSubnetGroupMessage": { "base": "

", "refs": { } }, - "CreateClusterSubnetGroupResult": { - "base": null, - "refs": { - } - }, "CreateEventSubscriptionMessage": { - "base": "

", - "refs": { - } - }, - "CreateEventSubscriptionResult": { - "base": null, + "base": "

", "refs": { } }, "CreateHsmClientCertificateMessage": { - "base": "

", - "refs": { - } - }, - "CreateHsmClientCertificateResult": { - "base": null, + "base": "

", "refs": { } }, "CreateHsmConfigurationMessage": { - "base": "

", - "refs": { - } - }, - "CreateHsmConfigurationResult": { - "base": null, + "base": "

", "refs": { } }, @@ -525,11 +452,6 @@ "refs": { } }, - "CreateSnapshotCopyGrantResult": { - "base": null, - "refs": { - } - }, "CreateTagsMessage": { "base": "

Contains the output from the CreateTags action.

", "refs": { @@ -551,11 +473,6 @@ "refs": { } }, - "DeleteClusterResult": { - "base": null, - "refs": { - } - }, "DeleteClusterSecurityGroupMessage": { "base": "

", "refs": { @@ -566,28 +483,23 @@ "refs": { } }, - "DeleteClusterSnapshotResult": { - "base": null, - "refs": { - } - }, "DeleteClusterSubnetGroupMessage": { - "base": "

", + "base": null, "refs": { } }, "DeleteEventSubscriptionMessage": { - "base": "

", + "base": "

", "refs": { } }, "DeleteHsmClientCertificateMessage": { - "base": "

", + "base": "

", "refs": { } }, "DeleteHsmConfigurationMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -601,11 +513,6 @@ "refs": { } }, - "DependentServiceRequestThrottlingFault": { - "base": "

The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.

", - "refs": { - } - }, "DescribeClusterParameterGroupsMessage": { "base": "

", "refs": { @@ -617,7 +524,7 @@ } }, "DescribeClusterSecurityGroupsMessage": { - "base": "

", + "base": "

???

", "refs": { } }, @@ -632,7 +539,7 @@ } }, "DescribeClusterVersionsMessage": { - "base": "

", + "base": null, "refs": { } }, @@ -646,18 +553,13 @@ "refs": { } }, - "DescribeDefaultClusterParametersResult": { - "base": null, - "refs": { - } - }, "DescribeEventCategoriesMessage": { "base": "

", "refs": { } }, "DescribeEventSubscriptionsMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -667,12 +569,12 @@ } }, "DescribeHsmClientCertificatesMessage": { - "base": "

", + "base": "

", "refs": { } }, "DescribeHsmConfigurationsMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -687,7 +589,7 @@ } }, "DescribeReservedNodeOfferingsMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -706,13 +608,8 @@ "refs": { } }, - "DescribeTableRestoreStatusMessage": { - "base": null, - "refs": { - } - }, "DescribeTagsMessage": { - "base": "

", + "base": "

Contains the output from the DescribeTags action.

", "refs": { } }, @@ -726,11 +623,6 @@ "refs": { } }, - "DisableSnapshotCopyResult": { - "base": null, - "refs": { - } - }, "Double": { "base": null, "refs": { @@ -767,7 +659,7 @@ "ElasticIpStatus": { "base": "

Describes the status of the elastic IP (EIP) address.

", "refs": { - "Cluster$ElasticIpStatus": "

The status of the elastic IP (EIP) address.

" + "Cluster$ElasticIpStatus": "

Describes the status of the elastic IP (EIP) address.

" } }, "EnableLoggingMessage": { @@ -780,11 +672,6 @@ "refs": { } }, - "EnableSnapshotCopyResult": { - "base": null, - "refs": { - } - }, "Endpoint": { "base": "

Describes a connection endpoint.

", "refs": { @@ -808,7 +695,7 @@ } }, "EventCategoriesMap": { - "base": "

Describes event categories.

", + "base": null, "refs": { "EventCategoriesMapList$member": null } @@ -825,7 +712,7 @@ } }, "EventInfoMap": { - "base": "

Describes event information.

", + "base": null, "refs": { "EventInfoMapList$member": null } @@ -839,14 +726,14 @@ "EventList": { "base": null, "refs": { - "EventsMessage$Events": "

A list of Event instances.

" + "EventsMessage$Events": "

A list of Event instances.

" } }, "EventSubscription": { - "base": "

Describes event subscriptions.

", + "base": null, "refs": { - "CreateEventSubscriptionResult$EventSubscription": null, "EventSubscriptionsList$member": null, + "CreateEventSubscriptionResult$EventSubscription": null, "ModifyEventSubscriptionResult$EventSubscription": null } }, @@ -862,20 +749,20 @@ } }, "EventSubscriptionsMessage": { - "base": "

", + "base": "

", "refs": { } }, "EventsMessage": { - "base": "

", + "base": "

Contains the output from the DescribeEvents action.

", "refs": { } }, "HsmClientCertificate": { "base": "

Returns information about an HSM client certificate. The certificate is stored in a secure Hardware Storage Module (HSM), and used by the Amazon Redshift cluster to encrypt data files.

", "refs": { - "CreateHsmClientCertificateResult$HsmClientCertificate": null, - "HsmClientCertificateList$member": null + "HsmClientCertificateList$member": null, + "CreateHsmClientCertificateResult$HsmClientCertificate": null } }, "HsmClientCertificateAlreadyExistsFault": { @@ -890,7 +777,7 @@ } }, "HsmClientCertificateMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -907,8 +794,8 @@ "HsmConfiguration": { "base": "

Returns information about an HSM configuration, which is an object that describes to Amazon Redshift clusters the information they require to connect to an HSM where they can store database encryption keys.

", "refs": { - "CreateHsmConfigurationResult$HsmConfiguration": null, - "HsmConfigurationList$member": null + "HsmConfigurationList$member": null, + "CreateHsmConfigurationResult$HsmConfiguration": null } }, "HsmConfigurationAlreadyExistsFault": { @@ -919,11 +806,11 @@ "HsmConfigurationList": { "base": null, "refs": { - "HsmConfigurationMessage$HsmConfigurations": "

A list of HsmConfiguration objects.

" + "HsmConfigurationMessage$HsmConfigurations": "

A list of Amazon Redshift HSM configurations.

" } }, "HsmConfigurationMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -938,7 +825,7 @@ } }, "HsmStatus": { - "base": "

Describes the status of changes to HSM settings.

", + "base": "

", "refs": { "Cluster$HsmStatus": "

Reports whether the Amazon Redshift cluster has finished applying any HSM settings changes specified in a modify cluster command.

Values: active, applying

" } @@ -955,15 +842,6 @@ "ClusterSecurityGroup$IPRanges": "

A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.

" } }, - "IamRoleArnList": { - "base": null, - "refs": { - "CreateClusterMessage$IamRoles": "

A list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS services. You must supply the IAM roles in their Amazon Resource Name (ARN) format. You can supply up to 10 IAM roles in a single request.

A cluster can have up to 10 IAM roles associated at any time.

", - "ModifyClusterIamRolesMessage$AddIamRoles": "

Zero or more IAM roles (in their ARN format) to associate with the cluster. You can associate up to 10 IAM roles with a single cluster in a single request.

", - "ModifyClusterIamRolesMessage$RemoveIamRoles": "

Zero or more IAM roles (in their ARN format) to disassociate from the cluster. You can disassociate up to 10 IAM roles from a single cluster in a single request.

", - "RestoreFromClusterSnapshotMessage$IamRoles": "

A list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS services. You must supply the IAM roles in their Amazon Resource Name (ARN) format. You can supply up to 10 IAM roles in a single request.

A cluster can have up to 10 IAM roles associated at any time.

" - } - }, "ImportTablesCompleted": { "base": null, "refs": { @@ -982,11 +860,6 @@ "ResizeProgressMessage$ImportTablesNotStarted": "

The names of tables that have not been yet imported.

Valid Values: List of table names

" } }, - "InProgressTableRestoreQuotaExceededFault": { - "base": "

You have exceeded the allowed number of table restore requests. Wait for your current table restore requests to complete before making a new request.

", - "refs": { - } - }, "IncompatibleOrderableOptions": { "base": "

The specified options are incompatible.

", "refs": { @@ -1039,17 +912,16 @@ "DescribeReservedNodeOfferingsMessage$MaxRecords": "

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

Default: 100

Constraints: minimum 20, maximum 100.

", "DescribeReservedNodesMessage$MaxRecords": "

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

Default: 100

Constraints: minimum 20, maximum 100.

", "DescribeSnapshotCopyGrantsMessage$MaxRecords": "

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

Default: 100

Constraints: minimum 20, maximum 100.

", - "DescribeTableRestoreStatusMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

", "DescribeTagsMessage$MaxRecords": "

The maximum number or response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

", "EnableSnapshotCopyMessage$RetentionPeriod": "

The number of days to retain automated snapshots in the destination region after they are copied from the source region.

Default: 7.

Constraints: Must be at least 1 and no more than 35.

", "ModifyClusterMessage$NumberOfNodes": "

The new number of nodes of the cluster. If you specify a new number of nodes, you must also specify the node type parameter.

When you submit your request to resize a cluster, Amazon Redshift sets access permissions for the cluster to read-only. After Amazon Redshift provisions a new cluster according to your resize requirements, there will be a temporary outage while the old cluster is deleted and your connection is switched to the new cluster. When the new connection is complete, the original access permissions for the cluster are restored. You can use DescribeResize to track the progress of the resize request.

Valid Values: Integer greater than 0.

", "ModifyClusterMessage$AutomatedSnapshotRetentionPeriod": "

The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Even if automated snapshots are disabled, you can still create manual snapshots when you want with CreateClusterSnapshot.

If you decrease the automated snapshot retention period from its current value, existing automated snapshots that fall outside of the new retention period will be immediately deleted.

Default: Uses existing setting.

Constraints: Must be a value from 0 to 35.

", "PendingModifiedValues$NumberOfNodes": "

The pending or in-progress change of the number of nodes in the cluster.

", "PendingModifiedValues$AutomatedSnapshotRetentionPeriod": "

The pending or in-progress change of the automated snapshot retention period.

", - "PurchaseReservedNodeOfferingMessage$NodeCount": "

The number of reserved nodes that you want to purchase.

Default: 1

", + "PurchaseReservedNodeOfferingMessage$NodeCount": "

The number of reserved nodes you want to purchase.

Default: 1

", "ResizeProgressMessage$TargetNumberOfNodes": "

The number of nodes that the cluster will have after the resize operation is complete.

", "RestoreFromClusterSnapshotMessage$Port": "

The port number on which the cluster accepts connections.

Default: The same port as the original cluster.

Constraints: Must be between 1115 and 65535.

", - "RestoreFromClusterSnapshotMessage$AutomatedSnapshotRetentionPeriod": "

The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Even if automated snapshots are disabled, you can still create manual snapshots when you want with CreateClusterSnapshot.

Default: The value selected for the cluster from which the snapshot was taken.

Constraints: Must be a value from 0 to 35.

" + "RestoreFromClusterSnapshotMessage$AutomatedSnapshotRetentionPeriod": "

The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Even if automated snapshots are disabled, you can still create manual snapshots when you want with CreateClusterSnapshot.

Default: The value selected for the cluster from which the snapshot was taken.

Constraints: Must be a value from 0 to 35.

" } }, "InvalidClusterParameterGroupStateFault": { @@ -1063,7 +935,7 @@ } }, "InvalidClusterSnapshotStateFault": { - "base": "

The specified cluster snapshot is not in the available state, or other accounts are authorized to access the snapshot.

", + "base": "

The state of the cluster snapshot is not available, or other accounts are authorized to access the snapshot.

", "refs": { } }, @@ -1127,11 +999,6 @@ "refs": { } }, - "InvalidTableRestoreArgumentFault": { - "base": "

The value specified for the sourceDatabaseName, sourceSchemaName, or sourceTableName parameter, or a combination of these, doesn't exist in the snapshot.

", - "refs": { - } - }, "InvalidTagFault": { "base": "

The tag is invalid.

", "refs": { @@ -1170,23 +1037,11 @@ "ResizeProgressMessage$TotalResizeDataInMegaBytes": "

The estimated total amount of data, in megabytes, on the cluster before the resize operation began.

", "ResizeProgressMessage$ProgressInMegaBytes": "

While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).

", "ResizeProgressMessage$ElapsedTimeInSeconds": "

The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.

", - "ResizeProgressMessage$EstimatedTimeToCompletionInSeconds": "

The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.

", - "TableRestoreStatus$ProgressInMegaBytes": "

The amount of data restored to the new table so far, in megabytes (MB).

", - "TableRestoreStatus$TotalDataInMegaBytes": "

The total amount of data to restore to the new table, in megabytes (MB).

" - } - }, - "ModifyClusterIamRolesMessage": { - "base": "

", - "refs": { - } - }, - "ModifyClusterIamRolesResult": { - "base": null, - "refs": { + "ResizeProgressMessage$EstimatedTimeToCompletionInSeconds": "

The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.

" } }, "ModifyClusterMessage": { - "base": "

", + "base": "

", "refs": { } }, @@ -1195,28 +1050,13 @@ "refs": { } }, - "ModifyClusterResult": { - "base": null, - "refs": { - } - }, "ModifyClusterSubnetGroupMessage": { "base": "

", "refs": { } }, - "ModifyClusterSubnetGroupResult": { - "base": null, - "refs": { - } - }, "ModifyEventSubscriptionMessage": { - "base": "

", - "refs": { - } - }, - "ModifyEventSubscriptionResult": { - "base": null, + "base": "

", "refs": { } }, @@ -1225,11 +1065,6 @@ "refs": { } }, - "ModifySnapshotCopyRetentionPeriodResult": { - "base": null, - "refs": { - } - }, "NumberOfNodesPerClusterLimitExceededFault": { "base": "

The operation would exceed the number of nodes allowed for a cluster.

", "refs": { @@ -1249,7 +1084,7 @@ "OrderableClusterOptionsList": { "base": null, "refs": { - "OrderableClusterOptionsMessage$OrderableClusterOptions": "

An OrderableClusterOption structure containing information about orderable options for the cluster.

" + "OrderableClusterOptionsMessage$OrderableClusterOptions": "

An OrderableClusterOption structure containing information about orderable options for the Cluster.

" } }, "OrderableClusterOptionsMessage": { @@ -1266,7 +1101,7 @@ "ParameterApplyType": { "base": null, "refs": { - "Parameter$ApplyType": "

Specifies how to apply the WLM configuration parameter. Some properties can be applied dynamically, while other properties require that any associated clusters be rebooted for the configuration changes to be applied. For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide.

" + "Parameter$ApplyType": "

Specifies how to apply the parameter. Supported value: static.

" } }, "ParameterGroupList": { @@ -1291,12 +1126,7 @@ } }, "PurchaseReservedNodeOfferingMessage": { - "base": "

", - "refs": { - } - }, - "PurchaseReservedNodeOfferingResult": { - "base": null, + "base": "

", "refs": { } }, @@ -1305,11 +1135,6 @@ "refs": { } }, - "RebootClusterResult": { - "base": null, - "refs": { - } - }, "RecurringCharge": { "base": "

Describes a recurring charge.

", "refs": { @@ -1326,8 +1151,8 @@ "ReservedNode": { "base": "

Describes a reserved node. You can call the DescribeReservedNodeOfferings API to obtain the available reserved node offerings.

", "refs": { - "PurchaseReservedNodeOfferingResult$ReservedNode": null, - "ReservedNodeList$member": null + "ReservedNodeList$member": null, + "PurchaseReservedNodeOfferingResult$ReservedNode": null } }, "ReservedNodeAlreadyExistsFault": { @@ -1338,7 +1163,7 @@ "ReservedNodeList": { "base": null, "refs": { - "ReservedNodesMessage$ReservedNodes": "

The list of ReservedNode objects.

" + "ReservedNodesMessage$ReservedNodes": "

The list of reserved nodes.

" } }, "ReservedNodeNotFoundFault": { @@ -1355,7 +1180,7 @@ "ReservedNodeOfferingList": { "base": null, "refs": { - "ReservedNodeOfferingsMessage$ReservedNodeOfferings": "

A list of ReservedNodeOffering objects.

" + "ReservedNodeOfferingsMessage$ReservedNodeOfferings": "

A list of reserved node offerings.

" } }, "ReservedNodeOfferingNotFoundFault": { @@ -1364,7 +1189,7 @@ } }, "ReservedNodeOfferingsMessage": { - "base": "

", + "base": "

Contains the output from the DescribeReservedNodeOfferings action.

", "refs": { } }, @@ -1374,7 +1199,7 @@ } }, "ReservedNodesMessage": { - "base": "

", + "base": "

Contains the output from the DescribeReservedNodes action.

", "refs": { } }, @@ -1405,12 +1230,7 @@ } }, "RestoreFromClusterSnapshotMessage": { - "base": "

", - "refs": { - } - }, - "RestoreFromClusterSnapshotResult": { - "base": null, + "base": "

", "refs": { } }, @@ -1420,23 +1240,8 @@ "Cluster$RestoreStatus": "

Describes the status of a cluster restore action. Returns null if the cluster was not created by restoring a snapshot.

" } }, - "RestoreTableFromClusterSnapshotMessage": { - "base": null, - "refs": { - } - }, - "RestoreTableFromClusterSnapshotResult": { - "base": null, - "refs": { - } - }, "RevokeClusterSecurityGroupIngressMessage": { - "base": "

", - "refs": { - } - }, - "RevokeClusterSecurityGroupIngressResult": { - "base": null, + "base": "

???

", "refs": { } }, @@ -1445,21 +1250,11 @@ "refs": { } }, - "RevokeSnapshotAccessResult": { - "base": null, - "refs": { - } - }, "RotateEncryptionKeyMessage": { "base": "

", "refs": { } }, - "RotateEncryptionKeyResult": { - "base": null, - "refs": { - } - }, "SNSInvalidTopicFault": { "base": "

Amazon SNS has responded that there is a problem with the specified Amazon SNS topic.

", "refs": { @@ -1478,12 +1273,12 @@ "Snapshot": { "base": "

Describes a snapshot.

", "refs": { + "SnapshotList$member": null, "AuthorizeSnapshotAccessResult$Snapshot": null, "CopyClusterSnapshotResult$Snapshot": null, "CreateClusterSnapshotResult$Snapshot": null, "DeleteClusterSnapshotResult$Snapshot": null, - "RevokeSnapshotAccessResult$Snapshot": null, - "SnapshotList$member": null + "RevokeSnapshotAccessResult$Snapshot": null } }, "SnapshotCopyAlreadyDisabledFault": { @@ -1504,8 +1299,8 @@ "SnapshotCopyGrant": { "base": "

The snapshot copy grant that grants Amazon Redshift permission to encrypt copied snapshots with the specified customer master key (CMK) from AWS KMS in the destination region.

For more information about managing snapshot copy grants, go to Amazon Redshift Database Encryption in the Amazon Redshift Cluster Management Guide.

", "refs": { - "CreateSnapshotCopyGrantResult$SnapshotCopyGrant": null, - "SnapshotCopyGrantList$member": null + "SnapshotCopyGrantList$member": null, + "CreateSnapshotCopyGrantResult$SnapshotCopyGrant": null } }, "SnapshotCopyGrantAlreadyExistsFault": { @@ -1516,11 +1311,11 @@ "SnapshotCopyGrantList": { "base": null, "refs": { - "SnapshotCopyGrantMessage$SnapshotCopyGrants": "

The list of SnapshotCopyGrant objects.

" + "SnapshotCopyGrantMessage$SnapshotCopyGrants": "

The list of snapshot copy grants.

" } }, "SnapshotCopyGrantMessage": { - "base": "

", + "base": "

The result of the snapshot copy grant.

", "refs": { } }, @@ -1579,7 +1374,7 @@ "AvailabilityZone$Name": "

The name of the availability zone.

", "Cluster$ClusterIdentifier": "

The unique identifier of the cluster.

", "Cluster$NodeType": "

The node type for the nodes in the cluster.

", - "Cluster$ClusterStatus": "

The current state of the cluster. Possible values are:

  • available
  • creating
  • deleting
  • final-snapshot
  • hardware-failure
  • incompatible-hsm
  • incompatible-network
  • incompatible-parameters
  • incompatible-restore
  • modifying
  • rebooting
  • renaming
  • resizing
  • rotating-keys
  • storage-full
  • updating-hsm

", + "Cluster$ClusterStatus": "

The current state of this cluster. Possible values include available, creating, deleting, rebooting, renaming, and resizing.

", "Cluster$ModifyStatus": "

The status of a modify operation, if any, initiated for the cluster.

", "Cluster$MasterUsername": "

The master user name for the cluster. This name is used to connect to the database that is specified in DBName.

", "Cluster$DBName": "

The name of the initial database that was created when the cluster was created. This same name is returned for the life of the cluster. If an initial database was not specified, a database named \"dev\" was created by default.

", @@ -1591,8 +1386,6 @@ "Cluster$ClusterPublicKey": "

The public key for the cluster.

", "Cluster$ClusterRevisionNumber": "

The specific revision number of the database in the cluster.

", "Cluster$KmsKeyId": "

The AWS Key Management Service (KMS) key ID of the encryption key used to encrypt data in the cluster.

", - "ClusterIamRole$IamRoleArn": "

The Amazon Resource Name (ARN) of the IAM role. For example, arn:aws:iam::123456789012:role/RedshiftCopyUnload.

", - "ClusterIamRole$ApplyStatus": "

Describes the status of the IAM role's association with an Amazon Redshift cluster.

The following are possible statuses and descriptions.

  • in-sync: The role is available for use by the cluster.
  • adding: The role is in the process of being associated with the cluster.
  • removing: The role is in the process of being disassociated with the cluster.

", "ClusterNode$NodeRole": "

Whether the node is a leader node or a compute node.

", "ClusterNode$PrivateIPAddress": "

The private IP address of a node within a cluster.

", "ClusterNode$PublicIPAddress": "

The public IP address of a node within a cluster.

", @@ -1606,7 +1399,7 @@ "ClusterParameterGroupStatus$ParameterApplyStatus": "

The status of parameter updates.

", "ClusterParameterGroupsMessage$Marker": "

A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker parameter and retrying the command. If the Marker field is empty, all response records have been retrieved for the request.

", "ClusterParameterStatus$ParameterName": "

The name of the parameter.

", - "ClusterParameterStatus$ParameterApplyStatus": "

The status of the parameter that indicates whether the parameter is in sync with the database, waiting for a cluster reboot, or encountered an error when being applied.

The following are possible statuses and descriptions.

  • in-sync: The parameter value is in sync with the database.
  • pending-reboot: The parameter value will be applied after the cluster reboots.
  • applying: The parameter value is being applied to the database.
  • invalid-parameter: Cannot apply the parameter value because it has an invalid value or syntax.
  • apply-deferred: The parameter contains static property changes. The changes are deferred until the cluster reboots.
  • apply-error: Cannot connect to the cluster. The parameter change will be applied after the cluster reboots.
  • unknown-error: Cannot apply the parameter change right now. The change will be applied after the cluster reboots.

", + "ClusterParameterStatus$ParameterApplyStatus": "

The status of the parameter that indicates whether the parameter is in sync with the database, waiting for a cluster reboot, or encountered an error when being applied.

The following are possible statuses and descriptions.

  • in-sync: The parameter value is in sync with the database.
  • pending-reboot: The parameter value will be applied after the cluster reboots.
  • applying: The parameter value is being applied to the database.
  • invalid-parameter: Cannot apply the parameter value because it has an invalid value or syntax.
  • apply-deferred: The parameter contains static property changes. The changes are deferred until the cluster reboots.
  • apply-error: Cannot connect to the cluster. The parameter change will be applied after the cluster reboots.
  • unknown-error: Cannot apply the parameter change right now. The change will be applied after the cluster reboots.

", "ClusterParameterStatus$ParameterApplyErrorDescription": "

The error that prevented the parameter from being applied to the database.

", "ClusterSecurityGroup$ClusterSecurityGroupName": "

The name of the cluster security group to which the operation was applied.

", "ClusterSecurityGroup$Description": "

A description of the security group.

", @@ -1631,7 +1424,7 @@ "CopyClusterSnapshotMessage$TargetSnapshotIdentifier": "

The identifier given to the new manual snapshot.

Constraints:

  • Cannot be null, empty, or blank.
  • Must contain from 1 to 255 alphanumeric characters or hyphens.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
  • Must be unique for the AWS account that is making the request.
", "CreateClusterMessage$DBName": "

The name of the first database to be created when the cluster is created.

To create additional databases after the cluster is created, connect to the cluster with a SQL client and use SQL commands to create a database. For more information, go to Create a Database in the Amazon Redshift Database Developer Guide.

Default: dev

Constraints:

  • Must contain 1 to 64 alphanumeric characters.
  • Must contain only lowercase letters.
  • Cannot be a word that is reserved by the service. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
", "CreateClusterMessage$ClusterIdentifier": "

A unique identifier for the cluster. You use this identifier to refer to the cluster for any subsequent cluster operations such as deleting or modifying. The identifier also appears in the Amazon Redshift console.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.
  • Alphabetic characters must be lowercase.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
  • Must be unique for all clusters within an AWS account.

Example: myexamplecluster

", - "CreateClusterMessage$ClusterType": "

The type of the cluster. When cluster type is specified as

  • single-node, the NumberOfNodes parameter is not required.
  • multi-node, the NumberOfNodes parameter is required.

Valid Values: multi-node | single-node

Default: multi-node

", + "CreateClusterMessage$ClusterType": "

The type of the cluster. When cluster type is specified as

  • single-node, the NumberOfNodes parameter is not required.
  • multi-node, the NumberOfNodes parameter is required.

Valid Values: multi-node | single-node

Default: multi-node

", "CreateClusterMessage$NodeType": "

The node type to be provisioned for the cluster. For information about node types, go to Working with Clusters in the Amazon Redshift Cluster Management Guide.

Valid Values: ds1.xlarge | ds1.8xlarge | ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge.

", "CreateClusterMessage$MasterUsername": "

The user name associated with the master user account for the cluster that is being created.

Constraints:

  • Must be 1 - 128 alphanumeric characters.
  • First character must be a letter.
  • Cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
", "CreateClusterMessage$MasterUserPassword": "

The password associated with the master user account for the cluster that is being created.

Constraints:

  • Must be between 8 and 64 characters in length.
  • Must contain at least one uppercase letter.
  • Must contain at least one lowercase letter.
  • Must contain one number.
  • Can be any printable ASCII character (ASCII code 33 to 126) except ' (single quote), \" (double quote), \\, /, @, or space.
", @@ -1644,7 +1437,6 @@ "CreateClusterMessage$HsmConfigurationIdentifier": "

Specifies the name of the HSM configuration that contains the information the Amazon Redshift cluster can use to retrieve and store keys in an HSM.

", "CreateClusterMessage$ElasticIp": "

The Elastic IP (EIP) address for the cluster.

Constraints: The cluster must be provisioned in EC2-VPC and publicly-accessible through an Internet gateway. For more information about provisioning clusters in EC2-VPC, go to Supported Platforms to Launch Your Cluster in the Amazon Redshift Cluster Management Guide.

", "CreateClusterMessage$KmsKeyId": "

The AWS Key Management Service (KMS) key ID of the encryption key that you want to use to encrypt data in the cluster.

", - "CreateClusterMessage$AdditionalInfo": "

Reserved.

", "CreateClusterParameterGroupMessage$ParameterGroupName": "

The name of the cluster parameter group.

Constraints:

  • Must be 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
  • Must be unique withing your AWS account.
This value is stored as a lower-case string.", "CreateClusterParameterGroupMessage$ParameterGroupFamily": "

The Amazon Redshift engine version to which the cluster parameter group applies. The cluster engine version determines the set of parameters.

To get a list of valid parameter group family names, you can call DescribeClusterParameterGroups. By default, Amazon Redshift returns a list of all the parameter groups that are owned by your AWS account, including the default parameter groups for each Amazon Redshift engine version. The parameter group family names associated with the default parameter groups provide you the valid values. For example, a valid family name is \"redshift-1.0\".

", "CreateClusterParameterGroupMessage$Description": "

A description of the parameter group.

", @@ -1703,7 +1495,7 @@ "DescribeClustersMessage$Marker": "

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeClusters request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

Constraints: You can specify either the ClusterIdentifier parameter or the Marker parameter, but not both.

", "DescribeDefaultClusterParametersMessage$ParameterGroupFamily": "

The name of the cluster parameter group family.

", "DescribeDefaultClusterParametersMessage$Marker": "

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeDefaultClusterParameters request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

", - "DescribeEventCategoriesMessage$SourceType": "

The source type, such as cluster or parameter group, to which the described event categories apply.

Valid values: cluster, cluster-snapshot, cluster-parameter-group, and cluster-security-group.

", + "DescribeEventCategoriesMessage$SourceType": "

The source type, such as cluster or parameter group, to which the described event categories apply.

Valid values: cluster, snapshot, parameter group, and security group.

", "DescribeEventSubscriptionsMessage$SubscriptionName": "

The name of the Amazon Redshift event notification subscription to be described.

", "DescribeEventSubscriptionsMessage$Marker": "

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeEventSubscriptions request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

", "DescribeEventsMessage$SourceIdentifier": "

The identifier of the event source for which events will be returned. If this parameter is not specified, then all sources are included in the response.

Constraints:

If SourceIdentifier is supplied, SourceType must also be provided.

  • Specify a cluster identifier when SourceType is cluster.
  • Specify a cluster security group name when SourceType is cluster-security-group.
  • Specify a cluster parameter group name when SourceType is cluster-parameter-group.
  • Specify a cluster snapshot identifier when SourceType is cluster-snapshot.
", @@ -1712,7 +1504,7 @@ "DescribeHsmClientCertificatesMessage$Marker": "

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeHsmClientCertificates request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

", "DescribeHsmConfigurationsMessage$HsmConfigurationIdentifier": "

The identifier of a specific Amazon Redshift HSM configuration to be described. If no identifier is specified, information is returned for all HSM configurations owned by your AWS customer account.

", "DescribeHsmConfigurationsMessage$Marker": "

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeHsmConfigurations request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

", - "DescribeLoggingStatusMessage$ClusterIdentifier": "

The identifier of the cluster from which to get the logging status.

Example: examplecluster

", + "DescribeLoggingStatusMessage$ClusterIdentifier": "

The identifier of the cluster to get the logging status from.

Example: examplecluster

", "DescribeOrderableClusterOptionsMessage$ClusterVersion": "

The version filter value. Specify this parameter to show only the available offerings matching the specified version.

Default: All versions.

Constraints: Must be one of the version returned from DescribeClusterVersions.

", "DescribeOrderableClusterOptionsMessage$NodeType": "

The node type filter value. Specify this parameter to show only the available offerings matching the specified node type.

", "DescribeOrderableClusterOptionsMessage$Marker": "

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeOrderableClusterOptions request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

", @@ -1723,9 +1515,6 @@ "DescribeResizeMessage$ClusterIdentifier": "

The unique identifier of a cluster whose resize progress you are requesting. This parameter is case-sensitive.

By default, resize operations for all clusters defined for an AWS account are returned.

", "DescribeSnapshotCopyGrantsMessage$SnapshotCopyGrantName": "

The name of the snapshot copy grant.

", "DescribeSnapshotCopyGrantsMessage$Marker": "

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeSnapshotCopyGrant request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

Constraints: You can specify either the SnapshotCopyGrantName parameter or the Marker parameter, but not both.

", - "DescribeTableRestoreStatusMessage$ClusterIdentifier": "

The Amazon Redshift cluster that the table is being restored to.

", - "DescribeTableRestoreStatusMessage$TableRestoreRequestId": "

The identifier of the table restore request to return status for. If you don't specify a TableRestoreRequestId value, then DescribeTableRestoreStatus returns the status of all in-progress table restore requests.

", - "DescribeTableRestoreStatusMessage$Marker": "

An optional pagination token provided by a previous DescribeTableRestoreStatus request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by the MaxRecords parameter.

", "DescribeTagsMessage$ResourceName": "

The Amazon Resource Name (ARN) for which you want to describe the tag or tags. For example, arn:aws:redshift:us-east-1:123456789:cluster:t1.

", "DescribeTagsMessage$ResourceType": "

The type of resource with which you want to view tags. Valid resource types are:

  • Cluster
  • CIDR/IP
  • EC2 security group
  • Snapshot
  • Cluster security group
  • Subnet group
  • HSM connection
  • HSM certificate
  • Parameter group
  • Snapshot copy grant

For more information about Amazon Redshift resource types and constructing ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) in the Amazon Redshift Cluster Management Guide.

", "DescribeTagsMessage$Marker": "

A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the marker parameter and retrying the command. If the marker field is empty, all response records have been retrieved for the request.

", @@ -1735,7 +1524,7 @@ "EC2SecurityGroup$EC2SecurityGroupName": "

The name of the EC2 Security Group.

", "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

The AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

", "ElasticIpStatus$ElasticIp": "

The elastic IP (EIP) address for the cluster.

", - "ElasticIpStatus$Status": "

The status of the elastic IP (EIP) address.

", + "ElasticIpStatus$Status": "

Describes the status of the elastic IP (EIP) address.

", "EnableLoggingMessage$ClusterIdentifier": "

The identifier of the cluster on which logging is to be started.

Example: examplecluster

", "EnableLoggingMessage$BucketName": "

The name of an existing S3 bucket where the log files are to be stored.

Constraints:

  • Must be in the same region as the cluster
  • The cluster must have read bucket and put object permissions
", "EnableLoggingMessage$S3KeyPrefix": "

The prefix applied to the log file names.

Constraints:

  • Cannot exceed 512 characters
  • Cannot contain spaces( ), double quotes (\"), single quotes ('), a backslash (\\), or control characters. The hexadecimal codes for invalid characters are:
    • x00 to x20
    • x22
    • x27
    • x5c
    • x7f or larger
", @@ -1748,7 +1537,7 @@ "Event$Severity": "

The severity of the event.

Values: ERROR, INFO

", "Event$EventId": "

The identifier of the event.

", "EventCategoriesList$member": null, - "EventCategoriesMap$SourceType": "

The source type, such as cluster or cluster-snapshot, that the returned categories belong to.

", + "EventCategoriesMap$SourceType": "

The Amazon Redshift source type, such as cluster or cluster-snapshot, that the returned categories belong to.

", "EventInfoMap$EventId": "

The identifier of an Amazon Redshift event.

", "EventInfoMap$EventDescription": "

The description of an Amazon Redshift event.

", "EventInfoMap$Severity": "

The severity of the event.

Values: ERROR, INFO

", @@ -1773,14 +1562,12 @@ "HsmStatus$Status": "

Reports whether the Amazon Redshift cluster has finished applying any HSM settings changes specified in a modify cluster command.

Values: active, applying

", "IPRange$Status": "

The status of the IP range, for example, \"authorized\".

", "IPRange$CIDRIP": "

The IP range in Classless Inter-Domain Routing (CIDR) notation.

", - "IamRoleArnList$member": null, "ImportTablesCompleted$member": null, "ImportTablesInProgress$member": null, "ImportTablesNotStarted$member": null, "LoggingStatus$BucketName": "

The name of the S3 bucket where the log files are stored.

", "LoggingStatus$S3KeyPrefix": "

The prefix applied to the log file names.

", "LoggingStatus$LastFailureMessage": "

The message indicating that logs failed to be delivered.

", - "ModifyClusterIamRolesMessage$ClusterIdentifier": "

The unique identifier of the cluster for which you want to associate or disassociate IAM roles.

", "ModifyClusterMessage$ClusterIdentifier": "

The unique identifier of the cluster to be modified.

Example: examplecluster

", "ModifyClusterMessage$ClusterType": "

The new cluster type.

When you submit your cluster resize request, your existing cluster goes into a read-only mode. After Amazon Redshift provisions a new cluster based on your resize requirements, there will be outage for a period while the old cluster is deleted and your connection is switched to the new cluster. You can use DescribeResize to track the progress of the resize request.

Valid Values: multi-node | single-node

", "ModifyClusterMessage$NodeType": "

The new node type of the cluster. If you specify a new node type, you must also specify the number of nodes parameter.

When you submit your request to resize a cluster, Amazon Redshift sets access permissions for the cluster to read-only. After Amazon Redshift provisions a new cluster according to your resize requirements, there will be a temporary outage while the old cluster is deleted and your connection is switched to the new cluster. When the new connection is complete, the original access permissions for the cluster are restored. You can use DescribeResize to track the progress of the resize request.

Valid Values: ds1.xlarge | ds1.8xlarge | ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge.

", @@ -1791,7 +1578,6 @@ "ModifyClusterMessage$HsmClientCertificateIdentifier": "

Specifies the name of the HSM client certificate the Amazon Redshift cluster uses to retrieve the data encryption keys stored in an HSM.

", "ModifyClusterMessage$HsmConfigurationIdentifier": "

Specifies the name of the HSM configuration that contains the information the Amazon Redshift cluster can use to retrieve and store keys in an HSM.

", "ModifyClusterMessage$NewClusterIdentifier": "

The new identifier for the cluster.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.
  • Alphabetic characters must be lowercase.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
  • Must be unique for all clusters within an AWS account.

Example: examplecluster

", - "ModifyClusterMessage$ElasticIp": "

The Elastic IP (EIP) address for the cluster.

Constraints: The cluster must be provisioned in EC2-VPC and publicly-accessible through an Internet gateway. For more information about provisioning clusters in EC2-VPC, go to Supported Platforms to Launch Your Cluster in the Amazon Redshift Cluster Management Guide.

", "ModifyClusterParameterGroupMessage$ParameterGroupName": "

The name of the parameter group to be modified.

", "ModifyClusterSubnetGroupMessage$ClusterSubnetGroupName": "

The name of the subnet group to be modified.

", "ModifyClusterSubnetGroupMessage$Description": "

A text description of the subnet group to be modified.

", @@ -1849,16 +1635,7 @@ "RestoreFromClusterSnapshotMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which automated cluster maintenance can occur.

Format: ddd:hh24:mi-ddd:hh24:mi

Default: The value selected for the cluster from which the snapshot was taken. For more information about the time blocks for each region, see Maintenance Windows in Amazon Redshift Cluster Management Guide.

Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

Constraints: Minimum 30-minute window.

", "RestoreFromClusterSnapshotMessage$KmsKeyId": "

The AWS Key Management Service (KMS) key ID of the encryption key that you want to use to encrypt data in the cluster that you restore from a shared snapshot.

", "RestoreFromClusterSnapshotMessage$NodeType": "

The node type that the restored cluster will be provisioned with.

Default: The node type of the cluster from which the snapshot was taken. You can modify this if you are using any DS node type. In that case, you can choose to restore into another DS node type of the same size. For example, you can restore ds1.8xlarge into ds2.8xlarge, or ds2.xlarge into ds1.xlarge. If you have a DC instance type, you must restore into that same instance type and size. In other words, you can only restore a dc1.large instance type into another dc1.large instance type. For more information about node types, see About Clusters and Nodes in the Amazon Redshift Cluster Management Guide

", - "RestoreFromClusterSnapshotMessage$AdditionalInfo": "

Reserved.

", "RestoreStatus$Status": "

The status of the restore action. Returns starting, restoring, completed, or failed.

", - "RestoreTableFromClusterSnapshotMessage$ClusterIdentifier": "

The identifier of the Amazon Redshift cluster to restore the table to.

", - "RestoreTableFromClusterSnapshotMessage$SnapshotIdentifier": "

The identifier of the snapshot to restore the table from. This snapshot must have been created from the Amazon Redshift cluster specified by the ClusterIdentifier parameter.

", - "RestoreTableFromClusterSnapshotMessage$SourceDatabaseName": "

The name of the source database that contains the table to restore from.

", - "RestoreTableFromClusterSnapshotMessage$SourceSchemaName": "

The name of the source schema that contains the table to restore from. If you do not specify a SourceSchemaName value, the default is public.

", - "RestoreTableFromClusterSnapshotMessage$SourceTableName": "

The name of the source table to restore from.

", - "RestoreTableFromClusterSnapshotMessage$TargetDatabaseName": "

The name of the database to restore the table to.

", - "RestoreTableFromClusterSnapshotMessage$TargetSchemaName": "

The name of the schema to restore the table to.

", - "RestoreTableFromClusterSnapshotMessage$NewTableName": "

The name of the table to create as a result of the current request.

", "RevokeClusterSecurityGroupIngressMessage$ClusterSecurityGroupName": "

The name of the security Group from which to revoke the ingress rule.

", "RevokeClusterSecurityGroupIngressMessage$CIDRIP": "

The IP range for which to revoke access. This range must be a valid Classless Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is specified, EC2SecurityGroupName and EC2SecurityGroupOwnerId cannot be provided.

", "RevokeClusterSecurityGroupIngressMessage$EC2SecurityGroupName": "

The name of the EC2 Security Group whose access is to be revoked. If EC2SecurityGroupName is specified, EC2SecurityGroupOwnerId must also be provided and CIDRIP cannot be provided.

", @@ -1869,7 +1646,7 @@ "RotateEncryptionKeyMessage$ClusterIdentifier": "

The unique identifier of the cluster that you want to rotate the encryption keys for.

Constraints: Must be the name of valid cluster that has encryption enabled.

", "Snapshot$SnapshotIdentifier": "

The snapshot identifier that is provided in the request.

", "Snapshot$ClusterIdentifier": "

The identifier of the cluster for which the snapshot was taken.

", - "Snapshot$Status": "

The snapshot status. The value of the status depends on the API operation used.

", + "Snapshot$Status": "

The snapshot status. The value of the status depends on the API operation used.

", "Snapshot$AvailabilityZone": "

The Availability Zone in which the cluster was created.

", "Snapshot$MasterUsername": "

The master user name for the cluster.

", "Snapshot$ClusterVersion": "

The version ID of the Amazon Redshift engine that is running on the cluster.

", @@ -1888,17 +1665,6 @@ "Subnet$SubnetIdentifier": "

The identifier of the subnet.

", "Subnet$SubnetStatus": "

The status of the subnet.

", "SubnetIdentifierList$member": null, - "TableRestoreStatus$TableRestoreRequestId": "

The unique identifier for the table restore request.

", - "TableRestoreStatus$Message": "

A description of the status of the table restore request. Status values include SUCCEEDED, FAILED, CANCELED, PENDING, IN_PROGRESS.

", - "TableRestoreStatus$ClusterIdentifier": "

The identifier of the Amazon Redshift cluster that the table is being restored to.

", - "TableRestoreStatus$SnapshotIdentifier": "

The identifier of the snapshot that the table is being restored from.

", - "TableRestoreStatus$SourceDatabaseName": "

The name of the source database that contains the table being restored.

", - "TableRestoreStatus$SourceSchemaName": "

The name of the source schema that contains the table being restored.

", - "TableRestoreStatus$SourceTableName": "

The name of the source table being restored.

", - "TableRestoreStatus$TargetDatabaseName": "

The name of the database to restore the table to.

", - "TableRestoreStatus$TargetSchemaName": "

The name of the schema to restore the table to.

", - "TableRestoreStatus$NewTableName": "

The name of the table to create as a result of the table restore request.

", - "TableRestoreStatusMessage$Marker": "

A pagination token that can be used in a subsequent DescribeTableRestoreStatus request.

", "Tag$Key": "

The key, or name, for the resource tag.

", "Tag$Value": "

The value for the resource tag.

", "TagKeyList$member": null, @@ -1907,8 +1673,8 @@ "TaggedResource$ResourceType": "

The type of resource with which the tag is associated. Valid resource types are:

  • Cluster
  • CIDR/IP
  • EC2 security group
  • Snapshot
  • Cluster security group
  • Subnet group
  • HSM connection
  • HSM certificate
  • Parameter group

For more information about Amazon Redshift resource types and constructing ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) in the Amazon Redshift Cluster Management Guide.

", "TaggedResourceListMessage$Marker": "

A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker parameter and retrying the command. If the Marker field is empty, all response records have been retrieved for the request.

", "VpcSecurityGroupIdList$member": null, - "VpcSecurityGroupMembership$VpcSecurityGroupId": "

The identifier of the VPC security group.

", - "VpcSecurityGroupMembership$Status": "

The status of the VPC security group.

" + "VpcSecurityGroupMembership$VpcSecurityGroupId": null, + "VpcSecurityGroupMembership$Status": null } }, "Subnet": { @@ -1970,41 +1736,11 @@ "DescribeEventsMessage$EndTime": "

The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2009-07-08T18:00Z

", "Event$Date": "

The date and time of the event.

", "EventSubscription$SubscriptionCreationTime": "

The date and time the Amazon Redshift event notification subscription was created.

", - "LoggingStatus$LastSuccessfulDeliveryTime": "

The last time that logs were delivered.

", + "LoggingStatus$LastSuccessfulDeliveryTime": "

The last time when logs were delivered.

", "LoggingStatus$LastFailureTime": "

The last time when logs failed to be delivered.

", "ReservedNode$StartTime": "

The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.

", "Snapshot$SnapshotCreateTime": "

The time (UTC) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.

", - "Snapshot$ClusterCreateTime": "

The time (UTC) when the cluster was originally created.

", - "TableRestoreStatus$RequestTime": "

The time that the table restore request was made, in Universal Coordinated Time (UTC).

" - } - }, - "TableRestoreNotFoundFault": { - "base": "

The specified TableRestoreRequestId value was not found.

", - "refs": { - } - }, - "TableRestoreStatus": { - "base": "

Describes the status of a RestoreTableFromClusterSnapshot operation.

", - "refs": { - "RestoreTableFromClusterSnapshotResult$TableRestoreStatus": null, - "TableRestoreStatusList$member": null - } - }, - "TableRestoreStatusList": { - "base": null, - "refs": { - "TableRestoreStatusMessage$TableRestoreStatusDetails": "

A list of status details for one or more table restore requests.

" - } - }, - "TableRestoreStatusMessage": { - "base": null, - "refs": { - } - }, - "TableRestoreStatusType": { - "base": null, - "refs": { - "TableRestoreStatus$Status": "

A value that describes the current state of the table restore request.

Valid Values: SUCCEEDED, FAILED, CANCELED, PENDING, IN_PROGRESS

" + "Snapshot$ClusterCreateTime": "

The time (UTC) when the cluster was originally created.

" } }, "Tag": { @@ -2087,7 +1823,7 @@ } }, "TaggedResourceListMessage": { - "base": "

", + "base": "

Contains the output from the DescribeTags action.

", "refs": { } }, @@ -2130,6 +1866,141 @@ "refs": { "Cluster$VpcSecurityGroups": "

A list of Virtual Private Cloud (VPC) security groups that are associated with the cluster. This parameter is returned only if the cluster is in a VPC.

" } + }, + "AuthorizeClusterSecurityGroupIngressResult": { + "base": null, + "refs": { + } + }, + "AuthorizeSnapshotAccessResult": { + "base": null, + "refs": { + } + }, + "CopyClusterSnapshotResult": { + "base": null, + "refs": { + } + }, + "CreateClusterResult": { + "base": null, + "refs": { + } + }, + "CreateClusterParameterGroupResult": { + "base": null, + "refs": { + } + }, + "CreateClusterSecurityGroupResult": { + "base": null, + "refs": { + } + }, + "CreateClusterSnapshotResult": { + "base": null, + "refs": { + } + }, + "CreateClusterSubnetGroupResult": { + "base": null, + "refs": { + } + }, + "CreateEventSubscriptionResult": { + "base": null, + "refs": { + } + }, + "CreateHsmClientCertificateResult": { + "base": null, + "refs": { + } + }, + "CreateHsmConfigurationResult": { + "base": null, + "refs": { + } + }, + "CreateSnapshotCopyGrantResult": { + "base": null, + "refs": { + } + }, + "DeleteClusterResult": { + "base": null, + "refs": { + } + }, + "DeleteClusterSnapshotResult": { + "base": null, + "refs": { + } + }, + "DescribeDefaultClusterParametersResult": { + "base": null, + "refs": { + } + }, + "DisableSnapshotCopyResult": { + "base": null, + "refs": { + } + }, + "EnableSnapshotCopyResult": { + "base": null, + "refs": { + } + }, + "ModifyClusterResult": { + "base": null, + "refs": { + } + }, + "ModifyClusterSubnetGroupResult": { + "base": null, + "refs": { + } + }, + "ModifyEventSubscriptionResult": { + "base": null, + "refs": { + } + }, + "ModifySnapshotCopyRetentionPeriodResult": { + "base": null, + "refs": { + } + }, + "PurchaseReservedNodeOfferingResult": { + "base": null, + "refs": { + } + }, + "RebootClusterResult": { + "base": null, + "refs": { + } + }, + "RestoreFromClusterSnapshotResult": { + "base": null, + "refs": { + } + }, + "RevokeClusterSecurityGroupIngressResult": { + "base": null, + "refs": { + } + }, + "RevokeSnapshotAccessResult": { + "base": null, + "refs": { + } + }, + "RotateEncryptionKeyResult": { + "base": null, + "refs": { + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/redshift/2012-12-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/redshift/2012-12-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/redshift/2012-12-01/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/redshift/2012-12-01/waiters-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/route53/2013-04-01/api-2.json similarity index 53% rename from vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/route53/2013-04-01/api-2.json index fdb0b4399..dea6bd04f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/route53/2013-04-01/api-2.json @@ -4,10 +4,10 @@ "apiVersion":"2013-04-01", "endpointPrefix":"route53", "globalEndpoint":"route53.amazonaws.com", - "protocol":"rest-xml", "serviceAbbreviation":"Route 53", "serviceFullName":"Amazon Route 53", - "signatureVersion":"v4" + "signatureVersion":"v4", + "protocol":"rest-xml" }, "operations":{ "AssociateVPCWithHostedZone":{ @@ -18,17 +18,35 @@ }, "input":{ "shape":"AssociateVPCWithHostedZoneRequest", - "locationName":"AssociateVPCWithHostedZoneRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"}, + "locationName":"AssociateVPCWithHostedZoneRequest" }, "output":{"shape":"AssociateVPCWithHostedZoneResponse"}, "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"InvalidVPCId"}, - {"shape":"InvalidInput"}, - {"shape":"PublicZoneVPCAssociation"}, - {"shape":"ConflictingDomainExists"}, - {"shape":"LimitsExceeded"} + { + "shape":"NoSuchHostedZone", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidVPCId", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"PublicZoneVPCAssociation", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ConflictingDomainExists", + "exception":true + } ] }, "ChangeResourceRecordSets":{ @@ -39,16 +57,35 @@ }, "input":{ "shape":"ChangeResourceRecordSetsRequest", - "locationName":"ChangeResourceRecordSetsRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"}, + "locationName":"ChangeResourceRecordSetsRequest" }, "output":{"shape":"ChangeResourceRecordSetsResponse"}, "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"NoSuchHealthCheck"}, - {"shape":"InvalidChangeBatch"}, - {"shape":"InvalidInput"}, - {"shape":"PriorRequestNotComplete"} + { + "shape":"NoSuchHostedZone", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NoSuchHealthCheck", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidChangeBatch", + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"PriorRequestNotComplete", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ChangeTagsForResource":{ @@ -59,16 +96,36 @@ }, "input":{ "shape":"ChangeTagsForResourceRequest", - "locationName":"ChangeTagsForResourceRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"}, + "locationName":"ChangeTagsForResourceRequest" }, "output":{"shape":"ChangeTagsForResourceResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"NoSuchHealthCheck"}, - {"shape":"NoSuchHostedZone"}, - {"shape":"PriorRequestNotComplete"}, - {"shape":"ThrottlingException"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"NoSuchHealthCheck", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NoSuchHostedZone", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"PriorRequestNotComplete", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ThrottlingException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "CreateHealthCheck":{ @@ -80,14 +137,25 @@ }, "input":{ "shape":"CreateHealthCheckRequest", - "locationName":"CreateHealthCheckRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"}, + "locationName":"CreateHealthCheckRequest" }, "output":{"shape":"CreateHealthCheckResponse"}, "errors":[ - {"shape":"TooManyHealthChecks"}, - {"shape":"HealthCheckAlreadyExists"}, - {"shape":"InvalidInput"} + { + "shape":"TooManyHealthChecks", + "exception":true + }, + { + "shape":"HealthCheckAlreadyExists", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "CreateHostedZone":{ @@ -99,20 +167,52 @@ }, "input":{ "shape":"CreateHostedZoneRequest", - "locationName":"CreateHostedZoneRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"}, + "locationName":"CreateHostedZoneRequest" }, "output":{"shape":"CreateHostedZoneResponse"}, "errors":[ - {"shape":"InvalidDomainName"}, - {"shape":"HostedZoneAlreadyExists"}, - {"shape":"TooManyHostedZones"}, - {"shape":"InvalidVPCId"}, - {"shape":"InvalidInput"}, - {"shape":"DelegationSetNotAvailable"}, - {"shape":"ConflictingDomainExists"}, - {"shape":"NoSuchDelegationSet"}, - {"shape":"DelegationSetNotReusable"} + { + "shape":"InvalidDomainName", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"HostedZoneAlreadyExists", + "error":{"httpStatusCode":409}, + "exception":true + }, + { + "shape":"TooManyHostedZones", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InvalidVPCId", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DelegationSetNotAvailable", + "exception":true + }, + { + "shape":"ConflictingDomainExists", + "exception":true + }, + { + "shape":"NoSuchDelegationSet", + "exception":true + }, + { + "shape":"DelegationSetNotReusable", + "exception":true + } ] }, "CreateReusableDelegationSet":{ @@ -124,79 +224,40 @@ }, "input":{ "shape":"CreateReusableDelegationSetRequest", - "locationName":"CreateReusableDelegationSetRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"}, + "locationName":"CreateReusableDelegationSetRequest" }, "output":{"shape":"CreateReusableDelegationSetResponse"}, "errors":[ - {"shape":"DelegationSetAlreadyCreated"}, - {"shape":"LimitsExceeded"}, - {"shape":"HostedZoneNotFound"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidInput"}, - {"shape":"DelegationSetNotAvailable"}, - {"shape":"DelegationSetAlreadyReusable"} - ] - }, - "CreateTrafficPolicy":{ - "name":"CreateTrafficPolicy", - "http":{ - "method":"POST", - "requestUri":"/2013-04-01/trafficpolicy", - "responseCode":201 - }, - "input":{ - "shape":"CreateTrafficPolicyRequest", - "locationName":"CreateTrafficPolicyRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} - }, - "output":{"shape":"CreateTrafficPolicyResponse"}, - "errors":[ - {"shape":"InvalidInput"}, - {"shape":"TooManyTrafficPolicies"}, - {"shape":"TrafficPolicyAlreadyExists"}, - {"shape":"InvalidTrafficPolicyDocument"} - ] - }, - "CreateTrafficPolicyInstance":{ - "name":"CreateTrafficPolicyInstance", - "http":{ - "method":"POST", - "requestUri":"/2013-04-01/trafficpolicyinstance", - "responseCode":201 - }, - "input":{ - "shape":"CreateTrafficPolicyInstanceRequest", - "locationName":"CreateTrafficPolicyInstanceRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} - }, - "output":{"shape":"CreateTrafficPolicyInstanceResponse"}, - "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"InvalidInput"}, - {"shape":"TooManyTrafficPolicyInstances"}, - {"shape":"NoSuchTrafficPolicy"}, - {"shape":"TrafficPolicyInstanceAlreadyExists"} - ] - }, - "CreateTrafficPolicyVersion":{ - "name":"CreateTrafficPolicyVersion", - "http":{ - "method":"POST", - "requestUri":"/2013-04-01/trafficpolicy/{Id}", - "responseCode":201 - }, - "input":{ - "shape":"CreateTrafficPolicyVersionRequest", - "locationName":"CreateTrafficPolicyVersionRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} - }, - "output":{"shape":"CreateTrafficPolicyVersionResponse"}, - "errors":[ - {"shape":"NoSuchTrafficPolicy"}, - {"shape":"InvalidInput"}, - {"shape":"ConcurrentModification"}, - {"shape":"InvalidTrafficPolicyDocument"} + { + "shape":"DelegationSetAlreadyCreated", + "exception":true + }, + { + "shape":"LimitsExceeded", + "exception":true + }, + { + "shape":"HostedZoneNotFound", + "exception":true + }, + { + "shape":"InvalidArgument", + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DelegationSetNotAvailable", + "exception":true + }, + { + "shape":"DelegationSetAlreadyReusable", + "exception":true + } ] }, "DeleteHealthCheck":{ @@ -208,9 +269,21 @@ "input":{"shape":"DeleteHealthCheckRequest"}, "output":{"shape":"DeleteHealthCheckResponse"}, "errors":[ - {"shape":"NoSuchHealthCheck"}, - {"shape":"HealthCheckInUse"}, - {"shape":"InvalidInput"} + { + "shape":"NoSuchHealthCheck", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"HealthCheckInUse", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "DeleteHostedZone":{ @@ -222,10 +295,26 @@ "input":{"shape":"DeleteHostedZoneRequest"}, "output":{"shape":"DeleteHostedZoneResponse"}, "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"HostedZoneNotEmpty"}, - {"shape":"PriorRequestNotComplete"}, - {"shape":"InvalidInput"} + { + "shape":"NoSuchHostedZone", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"HostedZoneNotEmpty", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"PriorRequestNotComplete", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "DeleteReusableDelegationSet":{ @@ -237,39 +326,23 @@ "input":{"shape":"DeleteReusableDelegationSetRequest"}, "output":{"shape":"DeleteReusableDelegationSetResponse"}, "errors":[ - {"shape":"NoSuchDelegationSet"}, - {"shape":"DelegationSetInUse"}, - {"shape":"DelegationSetNotReusable"}, - {"shape":"InvalidInput"} - ] - }, - "DeleteTrafficPolicy":{ - "name":"DeleteTrafficPolicy", - "http":{ - "method":"DELETE", - "requestUri":"/2013-04-01/trafficpolicy/{Id}/{Version}" - }, - "input":{"shape":"DeleteTrafficPolicyRequest"}, - "output":{"shape":"DeleteTrafficPolicyResponse"}, - "errors":[ - {"shape":"NoSuchTrafficPolicy"}, - {"shape":"InvalidInput"}, - {"shape":"TrafficPolicyInUse"}, - {"shape":"ConcurrentModification"} - ] - }, - "DeleteTrafficPolicyInstance":{ - "name":"DeleteTrafficPolicyInstance", - "http":{ - "method":"DELETE", - "requestUri":"/2013-04-01/trafficpolicyinstance/{Id}" - }, - "input":{"shape":"DeleteTrafficPolicyInstanceRequest"}, - "output":{"shape":"DeleteTrafficPolicyInstanceResponse"}, - "errors":[ - {"shape":"NoSuchTrafficPolicyInstance"}, - {"shape":"InvalidInput"}, - {"shape":"PriorRequestNotComplete"} + { + "shape":"NoSuchDelegationSet", + "exception":true + }, + { + "shape":"DelegationSetInUse", + "exception":true + }, + { + "shape":"DelegationSetNotReusable", + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "DisassociateVPCFromHostedZone":{ @@ -280,16 +353,36 @@ }, "input":{ "shape":"DisassociateVPCFromHostedZoneRequest", - "locationName":"DisassociateVPCFromHostedZoneRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"}, + "locationName":"DisassociateVPCFromHostedZoneRequest" }, "output":{"shape":"DisassociateVPCFromHostedZoneResponse"}, "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"InvalidVPCId"}, - {"shape":"VPCAssociationNotFound"}, - {"shape":"LastVPCAssociation"}, - {"shape":"InvalidInput"} + { + "shape":"NoSuchHostedZone", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidVPCId", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"VPCAssociationNotFound", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"LastVPCAssociation", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "GetChange":{ @@ -301,24 +394,18 @@ "input":{"shape":"GetChangeRequest"}, "output":{"shape":"GetChangeResponse"}, "errors":[ - {"shape":"NoSuchChange"}, - {"shape":"InvalidInput"} + { + "shape":"NoSuchChange", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, - "GetChangeDetails":{ - "name":"GetChangeDetails", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/changedetails/{Id}" - }, - "input":{"shape":"GetChangeDetailsRequest"}, - "output":{"shape":"GetChangeDetailsResponse"}, - "errors":[ - {"shape":"NoSuchChange"}, - {"shape":"InvalidInput"} - ], - "deprecated":true - }, "GetCheckerIpRanges":{ "name":"GetCheckerIpRanges", "http":{ @@ -337,8 +424,16 @@ "input":{"shape":"GetGeoLocationRequest"}, "output":{"shape":"GetGeoLocationResponse"}, "errors":[ - {"shape":"NoSuchGeoLocation"}, - {"shape":"InvalidInput"} + { + "shape":"NoSuchGeoLocation", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "GetHealthCheck":{ @@ -350,9 +445,21 @@ "input":{"shape":"GetHealthCheckRequest"}, "output":{"shape":"GetHealthCheckResponse"}, "errors":[ - {"shape":"NoSuchHealthCheck"}, - {"shape":"InvalidInput"}, - {"shape":"IncompatibleVersion"} + { + "shape":"NoSuchHealthCheck", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"IncompatibleVersion", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "GetHealthCheckCount":{ @@ -373,8 +480,11 @@ "input":{"shape":"GetHealthCheckLastFailureReasonRequest"}, "output":{"shape":"GetHealthCheckLastFailureReasonResponse"}, "errors":[ - {"shape":"NoSuchHealthCheck"}, - {"shape":"InvalidInput"} + { + "shape":"NoSuchHealthCheck", + "error":{"httpStatusCode":404}, + "exception":true + } ] }, "GetHealthCheckStatus":{ @@ -386,8 +496,11 @@ "input":{"shape":"GetHealthCheckStatusRequest"}, "output":{"shape":"GetHealthCheckStatusResponse"}, "errors":[ - {"shape":"NoSuchHealthCheck"}, - {"shape":"InvalidInput"} + { + "shape":"NoSuchHealthCheck", + "error":{"httpStatusCode":404}, + "exception":true + } ] }, "GetHostedZone":{ @@ -399,8 +512,16 @@ "input":{"shape":"GetHostedZoneRequest"}, "output":{"shape":"GetHostedZoneResponse"}, "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"InvalidInput"} + { + "shape":"NoSuchHostedZone", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "GetHostedZoneCount":{ @@ -412,7 +533,11 @@ "input":{"shape":"GetHostedZoneCountRequest"}, "output":{"shape":"GetHostedZoneCountResponse"}, "errors":[ - {"shape":"InvalidInput"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "GetReusableDelegationSet":{ @@ -424,74 +549,21 @@ "input":{"shape":"GetReusableDelegationSetRequest"}, "output":{"shape":"GetReusableDelegationSetResponse"}, "errors":[ - {"shape":"NoSuchDelegationSet"}, - {"shape":"DelegationSetNotReusable"}, - {"shape":"InvalidInput"} - ] - }, - "GetTrafficPolicy":{ - "name":"GetTrafficPolicy", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/trafficpolicy/{Id}/{Version}" - }, - "input":{"shape":"GetTrafficPolicyRequest"}, - "output":{"shape":"GetTrafficPolicyResponse"}, - "errors":[ - {"shape":"NoSuchTrafficPolicy"}, - {"shape":"InvalidInput"} - ] - }, - "GetTrafficPolicyInstance":{ - "name":"GetTrafficPolicyInstance", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/trafficpolicyinstance/{Id}" - }, - "input":{"shape":"GetTrafficPolicyInstanceRequest"}, - "output":{"shape":"GetTrafficPolicyInstanceResponse"}, - "errors":[ - {"shape":"NoSuchTrafficPolicyInstance"}, - {"shape":"InvalidInput"} + { + "shape":"NoSuchDelegationSet", + "exception":true + }, + { + "shape":"DelegationSetNotReusable", + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, - "GetTrafficPolicyInstanceCount":{ - "name":"GetTrafficPolicyInstanceCount", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/trafficpolicyinstancecount" - }, - "input":{"shape":"GetTrafficPolicyInstanceCountRequest"}, - "output":{"shape":"GetTrafficPolicyInstanceCountResponse"} - }, - "ListChangeBatchesByHostedZone":{ - "name":"ListChangeBatchesByHostedZone", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/hostedzone/{Id}/changes" - }, - "input":{"shape":"ListChangeBatchesByHostedZoneRequest"}, - "output":{"shape":"ListChangeBatchesByHostedZoneResponse"}, - "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"InvalidInput"} - ], - "deprecated":true - }, - "ListChangeBatchesByRRSet":{ - "name":"ListChangeBatchesByRRSet", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/hostedzone/{Id}/rrsChanges" - }, - "input":{"shape":"ListChangeBatchesByRRSetRequest"}, - "output":{"shape":"ListChangeBatchesByRRSetResponse"}, - "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"InvalidInput"} - ], - "deprecated":true - }, "ListGeoLocations":{ "name":"ListGeoLocations", "http":{ @@ -501,7 +573,11 @@ "input":{"shape":"ListGeoLocationsRequest"}, "output":{"shape":"ListGeoLocationsResponse"}, "errors":[ - {"shape":"InvalidInput"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ListHealthChecks":{ @@ -513,8 +589,16 @@ "input":{"shape":"ListHealthChecksRequest"}, "output":{"shape":"ListHealthChecksResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"IncompatibleVersion"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"IncompatibleVersion", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ListHostedZones":{ @@ -526,9 +610,19 @@ "input":{"shape":"ListHostedZonesRequest"}, "output":{"shape":"ListHostedZonesResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"NoSuchDelegationSet"}, - {"shape":"DelegationSetNotReusable"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"NoSuchDelegationSet", + "exception":true + }, + { + "shape":"DelegationSetNotReusable", + "exception":true + } ] }, "ListHostedZonesByName":{ @@ -540,8 +634,16 @@ "input":{"shape":"ListHostedZonesByNameRequest"}, "output":{"shape":"ListHostedZonesByNameResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"InvalidDomainName"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InvalidDomainName", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ListResourceRecordSets":{ @@ -553,8 +655,16 @@ "input":{"shape":"ListResourceRecordSetsRequest"}, "output":{"shape":"ListResourceRecordSetsResponse"}, "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"InvalidInput"} + { + "shape":"NoSuchHostedZone", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ListReusableDelegationSets":{ @@ -566,7 +676,11 @@ "input":{"shape":"ListReusableDelegationSetsRequest"}, "output":{"shape":"ListReusableDelegationSetsResponse"}, "errors":[ - {"shape":"InvalidInput"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ListTagsForResource":{ @@ -578,11 +692,31 @@ "input":{"shape":"ListTagsForResourceRequest"}, "output":{"shape":"ListTagsForResourceResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"NoSuchHealthCheck"}, - {"shape":"NoSuchHostedZone"}, - {"shape":"PriorRequestNotComplete"}, - {"shape":"ThrottlingException"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"NoSuchHealthCheck", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NoSuchHostedZone", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"PriorRequestNotComplete", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ThrottlingException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ListTagsForResources":{ @@ -593,82 +727,36 @@ }, "input":{ "shape":"ListTagsForResourcesRequest", - "locationName":"ListTagsForResourcesRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"}, + "locationName":"ListTagsForResourcesRequest" }, "output":{"shape":"ListTagsForResourcesResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"NoSuchHealthCheck"}, - {"shape":"NoSuchHostedZone"}, - {"shape":"PriorRequestNotComplete"}, - {"shape":"ThrottlingException"} - ] - }, - "ListTrafficPolicies":{ - "name":"ListTrafficPolicies", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/trafficpolicies" - }, - "input":{"shape":"ListTrafficPoliciesRequest"}, - "output":{"shape":"ListTrafficPoliciesResponse"}, - "errors":[ - {"shape":"InvalidInput"} - ] - }, - "ListTrafficPolicyInstances":{ - "name":"ListTrafficPolicyInstances", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/trafficpolicyinstances" - }, - "input":{"shape":"ListTrafficPolicyInstancesRequest"}, - "output":{"shape":"ListTrafficPolicyInstancesResponse"}, - "errors":[ - {"shape":"InvalidInput"}, - {"shape":"NoSuchTrafficPolicyInstance"} - ] - }, - "ListTrafficPolicyInstancesByHostedZone":{ - "name":"ListTrafficPolicyInstancesByHostedZone", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/trafficpolicyinstances/hostedzone" - }, - "input":{"shape":"ListTrafficPolicyInstancesByHostedZoneRequest"}, - "output":{"shape":"ListTrafficPolicyInstancesByHostedZoneResponse"}, - "errors":[ - {"shape":"InvalidInput"}, - {"shape":"NoSuchTrafficPolicyInstance"}, - {"shape":"NoSuchHostedZone"} - ] - }, - "ListTrafficPolicyInstancesByPolicy":{ - "name":"ListTrafficPolicyInstancesByPolicy", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/trafficpolicyinstances/trafficpolicy" - }, - "input":{"shape":"ListTrafficPolicyInstancesByPolicyRequest"}, - "output":{"shape":"ListTrafficPolicyInstancesByPolicyResponse"}, - "errors":[ - {"shape":"InvalidInput"}, - {"shape":"NoSuchTrafficPolicyInstance"}, - {"shape":"NoSuchTrafficPolicy"} - ] - }, - "ListTrafficPolicyVersions":{ - "name":"ListTrafficPolicyVersions", - "http":{ - "method":"GET", - "requestUri":"/2013-04-01/trafficpolicies/{Id}/versions" - }, - "input":{"shape":"ListTrafficPolicyVersionsRequest"}, - "output":{"shape":"ListTrafficPolicyVersionsResponse"}, - "errors":[ - {"shape":"InvalidInput"}, - {"shape":"NoSuchTrafficPolicy"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"NoSuchHealthCheck", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"NoSuchHostedZone", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"PriorRequestNotComplete", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"ThrottlingException", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "UpdateHealthCheck":{ @@ -679,14 +767,26 @@ }, "input":{ "shape":"UpdateHealthCheckRequest", - "locationName":"UpdateHealthCheckRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"}, + "locationName":"UpdateHealthCheckRequest" }, "output":{"shape":"UpdateHealthCheckResponse"}, "errors":[ - {"shape":"NoSuchHealthCheck"}, - {"shape":"InvalidInput"}, - {"shape":"HealthCheckVersionMismatch"} + { + "shape":"NoSuchHealthCheck", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"HealthCheckVersionMismatch", + "error":{"httpStatusCode":409}, + "exception":true + } ] }, "UpdateHostedZoneComment":{ @@ -697,72 +797,25 @@ }, "input":{ "shape":"UpdateHostedZoneCommentRequest", - "locationName":"UpdateHostedZoneCommentRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"}, + "locationName":"UpdateHostedZoneCommentRequest" }, "output":{"shape":"UpdateHostedZoneCommentResponse"}, "errors":[ - {"shape":"NoSuchHostedZone"}, - {"shape":"InvalidInput"} - ] - }, - "UpdateTrafficPolicyComment":{ - "name":"UpdateTrafficPolicyComment", - "http":{ - "method":"POST", - "requestUri":"/2013-04-01/trafficpolicy/{Id}/{Version}" - }, - "input":{ - "shape":"UpdateTrafficPolicyCommentRequest", - "locationName":"UpdateTrafficPolicyCommentRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} - }, - "output":{"shape":"UpdateTrafficPolicyCommentResponse"}, - "errors":[ - {"shape":"InvalidInput"}, - {"shape":"NoSuchTrafficPolicy"}, - {"shape":"ConcurrentModification"} - ] - }, - "UpdateTrafficPolicyInstance":{ - "name":"UpdateTrafficPolicyInstance", - "http":{ - "method":"POST", - "requestUri":"/2013-04-01/trafficpolicyinstance/{Id}" - }, - "input":{ - "shape":"UpdateTrafficPolicyInstanceRequest", - "locationName":"UpdateTrafficPolicyInstanceRequest", - "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} - }, - "output":{"shape":"UpdateTrafficPolicyInstanceResponse"}, - "errors":[ - {"shape":"InvalidInput"}, - {"shape":"NoSuchTrafficPolicy"}, - {"shape":"NoSuchTrafficPolicyInstance"}, - {"shape":"PriorRequestNotComplete"}, - {"shape":"ConflictingTypes"} + { + "shape":"NoSuchHostedZone", + "error":{"httpStatusCode":404}, + "exception":true + }, + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] } }, "shapes":{ - "AWSAccountID":{"type":"string"}, - "AlarmIdentifier":{ - "type":"structure", - "required":[ - "Region", - "Name" - ], - "members":{ - "Region":{"shape":"CloudWatchRegion"}, - "Name":{"shape":"AlarmName"} - } - }, - "AlarmName":{ - "type":"string", - "max":256, - "min":1 - }, "AliasHealthEnabled":{"type":"boolean"}, "AliasTarget":{ "type":"structure", @@ -828,31 +881,6 @@ "Changes":{"shape":"Changes"} } }, - "ChangeBatchRecord":{ - "type":"structure", - "required":[ - "Id", - "Status" - ], - "members":{ - "Id":{"shape":"ResourceId"}, - "SubmittedAt":{"shape":"TimeStamp"}, - "Status":{"shape":"ChangeStatus"}, - "Comment":{"shape":"ResourceDescription"}, - "Submitter":{"shape":"AWSAccountID"}, - "Changes":{"shape":"Changes"} - }, - "deprecated":true - }, - "ChangeBatchRecords":{ - "type":"list", - "member":{ - "shape":"ChangeBatchRecord", - "locationName":"ChangeBatchRecord" - }, - "deprecated":true, - "min":1 - }, "ChangeInfo":{ "type":"structure", "required":[ @@ -934,94 +962,22 @@ "type":"list", "member":{"shape":"IPAddressCidr"} }, - "ChildHealthCheckList":{ - "type":"list", - "member":{ - "shape":"HealthCheckId", - "locationName":"ChildHealthCheck" + "ConflictingDomainExists":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} }, - "max":256 + "exception":true }, - "CloudWatchAlarmConfiguration":{ + "CreateHealthCheckRequest":{ "type":"structure", "required":[ - "EvaluationPeriods", - "Threshold", - "ComparisonOperator", - "Period", - "MetricName", - "Namespace", - "Statistic" + "CallerReference", + "HealthCheckConfig" ], "members":{ - "EvaluationPeriods":{"shape":"EvaluationPeriods"}, - "Threshold":{"shape":"Threshold"}, - "ComparisonOperator":{"shape":"ComparisonOperator"}, - "Period":{"shape":"Period"}, - "MetricName":{"shape":"MetricName"}, - "Namespace":{"shape":"Namespace"}, - "Statistic":{"shape":"Statistic"}, - "Dimensions":{"shape":"DimensionList"} - } - }, - "CloudWatchRegion":{ - "type":"string", - "enum":[ - "us-east-1", - "us-west-1", - "us-west-2", - "eu-central-1", - "eu-west-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-northeast-1", - "ap-northeast-2", - "sa-east-1" - ], - "max":64, - "min":1 - }, - "ComparisonOperator":{ - "type":"string", - "enum":[ - "GreaterThanOrEqualToThreshold", - "GreaterThanThreshold", - "LessThanThreshold", - "LessThanOrEqualToThreshold" - ] - }, - "ConcurrentModification":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "ConflictingDomainExists":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "ConflictingTypes":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "CreateHealthCheckRequest":{ - "type":"structure", - "required":[ - "CallerReference", - "HealthCheckConfig" - ], - "members":{ - "CallerReference":{"shape":"HealthCheckNonce"}, - "HealthCheckConfig":{"shape":"HealthCheckConfig"} + "CallerReference":{"shape":"HealthCheckNonce"}, + "HealthCheckConfig":{"shape":"HealthCheckConfig"} } }, "CreateHealthCheckResponse":{ @@ -1096,105 +1052,10 @@ } } }, - "CreateTrafficPolicyInstanceRequest":{ - "type":"structure", - "required":[ - "HostedZoneId", - "Name", - "TTL", - "TrafficPolicyId", - "TrafficPolicyVersion" - ], - "members":{ - "HostedZoneId":{"shape":"ResourceId"}, - "Name":{"shape":"DNSName"}, - "TTL":{"shape":"TTL"}, - "TrafficPolicyId":{"shape":"TrafficPolicyId"}, - "TrafficPolicyVersion":{"shape":"TrafficPolicyVersion"} - } - }, - "CreateTrafficPolicyInstanceResponse":{ - "type":"structure", - "required":[ - "TrafficPolicyInstance", - "Location" - ], - "members":{ - "TrafficPolicyInstance":{"shape":"TrafficPolicyInstance"}, - "Location":{ - "shape":"ResourceURI", - "location":"header", - "locationName":"Location" - } - } - }, - "CreateTrafficPolicyRequest":{ - "type":"structure", - "required":[ - "Name", - "Document" - ], - "members":{ - "Name":{"shape":"TrafficPolicyName"}, - "Document":{"shape":"TrafficPolicyDocument"}, - "Comment":{"shape":"TrafficPolicyComment"} - } - }, - "CreateTrafficPolicyResponse":{ - "type":"structure", - "required":[ - "TrafficPolicy", - "Location" - ], - "members":{ - "TrafficPolicy":{"shape":"TrafficPolicy"}, - "Location":{ - "shape":"ResourceURI", - "location":"header", - "locationName":"Location" - } - } - }, - "CreateTrafficPolicyVersionRequest":{ - "type":"structure", - "required":[ - "Id", - "Document" - ], - "members":{ - "Id":{ - "shape":"TrafficPolicyId", - "location":"uri", - "locationName":"Id" - }, - "Document":{"shape":"TrafficPolicyDocument"}, - "Comment":{"shape":"TrafficPolicyComment"} - } - }, - "CreateTrafficPolicyVersionResponse":{ - "type":"structure", - "required":[ - "TrafficPolicy", - "Location" - ], - "members":{ - "TrafficPolicy":{"shape":"TrafficPolicy"}, - "Location":{ - "shape":"ResourceURI", - "location":"header", - "locationName":"Location" - } - } - }, "DNSName":{ "type":"string", "max":1024 }, - "Date":{ - "type":"string", - "deprecated":true, - "max":256 - }, "DelegationSet":{ "type":"structure", "required":["NameServers"], @@ -1304,70 +1165,6 @@ "members":{ } }, - "DeleteTrafficPolicyInstanceRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"TrafficPolicyInstanceId", - "location":"uri", - "locationName":"Id" - } - } - }, - "DeleteTrafficPolicyInstanceResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteTrafficPolicyRequest":{ - "type":"structure", - "required":[ - "Id", - "Version" - ], - "members":{ - "Id":{ - "shape":"TrafficPolicyId", - "location":"uri", - "locationName":"Id" - }, - "Version":{ - "shape":"TrafficPolicyVersion", - "location":"uri", - "locationName":"Version" - } - } - }, - "DeleteTrafficPolicyResponse":{ - "type":"structure", - "members":{ - } - }, - "Dimension":{ - "type":"structure", - "required":[ - "Name", - "Value" - ], - "members":{ - "Name":{"shape":"DimensionField"}, - "Value":{"shape":"DimensionField"} - } - }, - "DimensionField":{ - "type":"string", - "max":255, - "min":1 - }, - "DimensionList":{ - "type":"list", - "member":{ - "shape":"Dimension", - "locationName":"Dimension" - }, - "max":10 - }, "DisassociateVPCComment":{"type":"string"}, "DisassociateVPCFromHostedZoneRequest":{ "type":"structure", @@ -1392,7 +1189,6 @@ "ChangeInfo":{"shape":"ChangeInfo"} } }, - "EnableSNI":{"type":"boolean"}, "ErrorMessage":{"type":"string"}, "ErrorMessages":{ "type":"list", @@ -1401,14 +1197,10 @@ "locationName":"Message" } }, - "EvaluationPeriods":{ - "type":"integer", - "min":1 - }, "FailureThreshold":{ "type":"integer", - "max":10, - "min":1 + "min":1, + "max":10 }, "FullyQualifiedDomainName":{ "type":"string", @@ -1424,23 +1216,23 @@ }, "GeoLocationContinentCode":{ "type":"string", - "max":2, - "min":2 + "min":2, + "max":2 }, "GeoLocationContinentName":{ "type":"string", - "max":32, - "min":1 + "min":1, + "max":32 }, "GeoLocationCountryCode":{ "type":"string", - "max":2, - "min":1 + "min":1, + "max":2 }, "GeoLocationCountryName":{ "type":"string", - "max":64, - "min":1 + "min":1, + "max":64 }, "GeoLocationDetails":{ "type":"structure", @@ -1462,33 +1254,13 @@ }, "GeoLocationSubdivisionCode":{ "type":"string", - "max":3, - "min":1 + "min":1, + "max":3 }, "GeoLocationSubdivisionName":{ "type":"string", - "max":64, - "min":1 - }, - "GetChangeDetailsRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"ResourceId", - "location":"uri", - "locationName":"Id" - } - }, - "deprecated":true - }, - "GetChangeDetailsResponse":{ - "type":"structure", - "required":["ChangeBatchRecord"], - "members":{ - "ChangeBatchRecord":{"shape":"ChangeBatchRecord"} - }, - "deprecated":true + "min":1, + "max":64 }, "GetChangeRequest":{ "type":"structure", @@ -1663,62 +1435,6 @@ "DelegationSet":{"shape":"DelegationSet"} } }, - "GetTrafficPolicyInstanceCountRequest":{ - "type":"structure", - "members":{ - } - }, - "GetTrafficPolicyInstanceCountResponse":{ - "type":"structure", - "required":["TrafficPolicyInstanceCount"], - "members":{ - "TrafficPolicyInstanceCount":{"shape":"TrafficPolicyInstanceCount"} - } - }, - "GetTrafficPolicyInstanceRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"TrafficPolicyInstanceId", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetTrafficPolicyInstanceResponse":{ - "type":"structure", - "required":["TrafficPolicyInstance"], - "members":{ - "TrafficPolicyInstance":{"shape":"TrafficPolicyInstance"} - } - }, - "GetTrafficPolicyRequest":{ - "type":"structure", - "required":[ - "Id", - "Version" - ], - "members":{ - "Id":{ - "shape":"TrafficPolicyId", - "location":"uri", - "locationName":"Id" - }, - "Version":{ - "shape":"TrafficPolicyVersion", - "location":"uri", - "locationName":"Version" - } - } - }, - "GetTrafficPolicyResponse":{ - "type":"structure", - "required":["TrafficPolicy"], - "members":{ - "TrafficPolicy":{"shape":"TrafficPolicy"} - } - }, "HealthCheck":{ "type":"structure", "required":[ @@ -1731,8 +1447,7 @@ "Id":{"shape":"HealthCheckId"}, "CallerReference":{"shape":"HealthCheckNonce"}, "HealthCheckConfig":{"shape":"HealthCheckConfig"}, - "HealthCheckVersion":{"shape":"HealthCheckVersion"}, - "CloudWatchAlarmConfiguration":{"shape":"CloudWatchAlarmConfiguration"} + "HealthCheckVersion":{"shape":"HealthCheckVersion"} } }, "HealthCheckAlreadyExists":{ @@ -1754,15 +1469,7 @@ "FullyQualifiedDomainName":{"shape":"FullyQualifiedDomainName"}, "SearchString":{"shape":"SearchString"}, "RequestInterval":{"shape":"RequestInterval"}, - "FailureThreshold":{"shape":"FailureThreshold"}, - "MeasureLatency":{"shape":"MeasureLatency"}, - "Inverted":{"shape":"Inverted"}, - "HealthThreshold":{"shape":"HealthThreshold"}, - "ChildHealthChecks":{"shape":"ChildHealthCheckList"}, - "EnableSNI":{"shape":"EnableSNI"}, - "Regions":{"shape":"HealthCheckRegionList"}, - "AlarmIdentifier":{"shape":"AlarmIdentifier"}, - "InsufficientDataHealthStatus":{"shape":"InsufficientDataHealthStatus"} + "FailureThreshold":{"shape":"FailureThreshold"} } }, "HealthCheckCount":{"type":"long"}, @@ -1780,13 +1487,12 @@ }, "HealthCheckNonce":{ "type":"string", - "max":64, - "min":1 + "min":1, + "max":64 }, "HealthCheckObservation":{ "type":"structure", "members":{ - "Region":{"shape":"HealthCheckRegion"}, "IPAddress":{"shape":"IPAddress"}, "StatusReport":{"shape":"StatusReport"} } @@ -1798,30 +1504,6 @@ "locationName":"HealthCheckObservation" } }, - "HealthCheckRegion":{ - "type":"string", - "enum":[ - "us-east-1", - "us-west-1", - "us-west-2", - "eu-west-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-northeast-1", - "sa-east-1" - ], - "max":64, - "min":1 - }, - "HealthCheckRegionList":{ - "type":"list", - "member":{ - "shape":"HealthCheckRegion", - "locationName":"Region" - }, - "max":64, - "min":1 - }, "HealthCheckType":{ "type":"string", "enum":[ @@ -1829,9 +1511,7 @@ "HTTPS", "HTTP_STR_MATCH", "HTTPS_STR_MATCH", - "TCP", - "CALCULATED", - "CLOUDWATCH_METRIC" + "TCP" ] }, "HealthCheckVersion":{ @@ -1853,11 +1533,6 @@ "locationName":"HealthCheck" } }, - "HealthThreshold":{ - "type":"integer", - "max":256, - "min":0 - }, "HostedZone":{ "type":"structure", "required":[ @@ -1926,14 +1601,6 @@ "error":{"httpStatusCode":400}, "exception":true }, - "InsufficientDataHealthStatus":{ - "type":"string", - "enum":[ - "Healthy", - "Unhealthy", - "LastKnownStatus" - ] - }, "InvalidArgument":{ "type":"structure", "members":{ @@ -1964,14 +1631,6 @@ "error":{"httpStatusCode":400}, "exception":true }, - "InvalidTrafficPolicyDocument":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, "InvalidVPCId":{ "type":"structure", "members":{ @@ -1980,7 +1639,6 @@ "error":{"httpStatusCode":400}, "exception":true }, - "Inverted":{"type":"boolean"}, "IsPrivateZone":{"type":"boolean"}, "LastVPCAssociation":{ "type":"structure", @@ -1997,128 +1655,7 @@ }, "exception":true }, - "ListChangeBatchesByHostedZoneRequest":{ - "type":"structure", - "required":[ - "HostedZoneId", - "StartDate", - "EndDate" - ], - "members":{ - "HostedZoneId":{ - "shape":"ResourceId", - "location":"uri", - "locationName":"Id" - }, - "StartDate":{ - "shape":"Date", - "location":"querystring", - "locationName":"startDate" - }, - "EndDate":{ - "shape":"Date", - "location":"querystring", - "locationName":"endDate" - }, - "MaxItems":{ - "shape":"PageMaxItems", - "location":"querystring", - "locationName":"maxItems" - }, - "Marker":{ - "shape":"PageMarker", - "location":"querystring", - "locationName":"marker" - } - }, - "deprecated":true - }, - "ListChangeBatchesByHostedZoneResponse":{ - "type":"structure", - "required":[ - "MaxItems", - "Marker", - "ChangeBatchRecords" - ], - "members":{ - "MaxItems":{"shape":"PageMaxItems"}, - "Marker":{"shape":"PageMarker"}, - "IsTruncated":{"shape":"PageTruncated"}, - "ChangeBatchRecords":{"shape":"ChangeBatchRecords"}, - "NextMarker":{"shape":"PageMarker"} - }, - "deprecated":true - }, - "ListChangeBatchesByRRSetRequest":{ - "type":"structure", - "required":[ - "HostedZoneId", - "Name", - "Type", - "StartDate", - "EndDate" - ], - "members":{ - "HostedZoneId":{ - "shape":"ResourceId", - "location":"uri", - "locationName":"Id" - }, - "Name":{ - "shape":"DNSName", - "location":"querystring", - "locationName":"rrSet_name" - }, - "Type":{ - "shape":"RRType", - "location":"querystring", - "locationName":"type" - }, - "SetIdentifier":{ - "shape":"ResourceRecordSetIdentifier", - "location":"querystring", - "locationName":"identifier" - }, - "StartDate":{ - "shape":"Date", - "location":"querystring", - "locationName":"startDate" - }, - "EndDate":{ - "shape":"Date", - "location":"querystring", - "locationName":"endDate" - }, - "MaxItems":{ - "shape":"PageMaxItems", - "location":"querystring", - "locationName":"maxItems" - }, - "Marker":{ - "shape":"PageMarker", - "location":"querystring", - "locationName":"marker" - } - }, - "deprecated":true - }, - "ListChangeBatchesByRRSetResponse":{ - "type":"structure", - "required":[ - "MaxItems", - "Marker", - "ChangeBatchRecords" - ], - "members":{ - "MaxItems":{"shape":"PageMaxItems"}, - "Marker":{"shape":"PageMarker"}, - "IsTruncated":{"shape":"PageTruncated"}, - "ChangeBatchRecords":{"shape":"ChangeBatchRecords"}, - "NextMarker":{"shape":"PageMarker"} - }, - "deprecated":true - }, - "ListGeoLocationsRequest":{ + "ListGeoLocationsRequest":{ "type":"structure", "members":{ "StartContinentCode":{ @@ -2389,224 +1926,6 @@ "ResourceTagSets":{"shape":"ResourceTagSetList"} } }, - "ListTrafficPoliciesRequest":{ - "type":"structure", - "members":{ - "TrafficPolicyIdMarker":{ - "shape":"TrafficPolicyId", - "location":"querystring", - "locationName":"trafficpolicyid" - }, - "MaxItems":{ - "shape":"PageMaxItems", - "location":"querystring", - "locationName":"maxitems" - } - } - }, - "ListTrafficPoliciesResponse":{ - "type":"structure", - "required":[ - "TrafficPolicySummaries", - "IsTruncated", - "TrafficPolicyIdMarker", - "MaxItems" - ], - "members":{ - "TrafficPolicySummaries":{"shape":"TrafficPolicySummaries"}, - "IsTruncated":{"shape":"PageTruncated"}, - "TrafficPolicyIdMarker":{"shape":"TrafficPolicyId"}, - "MaxItems":{"shape":"PageMaxItems"} - } - }, - "ListTrafficPolicyInstancesByHostedZoneRequest":{ - "type":"structure", - "required":["HostedZoneId"], - "members":{ - "HostedZoneId":{ - "shape":"ResourceId", - "location":"querystring", - "locationName":"id" - }, - "TrafficPolicyInstanceNameMarker":{ - "shape":"DNSName", - "location":"querystring", - "locationName":"trafficpolicyinstancename" - }, - "TrafficPolicyInstanceTypeMarker":{ - "shape":"RRType", - "location":"querystring", - "locationName":"trafficpolicyinstancetype" - }, - "MaxItems":{ - "shape":"PageMaxItems", - "location":"querystring", - "locationName":"maxitems" - } - } - }, - "ListTrafficPolicyInstancesByHostedZoneResponse":{ - "type":"structure", - "required":[ - "TrafficPolicyInstances", - "IsTruncated", - "MaxItems" - ], - "members":{ - "TrafficPolicyInstances":{"shape":"TrafficPolicyInstances"}, - "TrafficPolicyInstanceNameMarker":{"shape":"DNSName"}, - "TrafficPolicyInstanceTypeMarker":{"shape":"RRType"}, - "IsTruncated":{"shape":"PageTruncated"}, - "MaxItems":{"shape":"PageMaxItems"} - } - }, - "ListTrafficPolicyInstancesByPolicyRequest":{ - "type":"structure", - "required":[ - "TrafficPolicyId", - "TrafficPolicyVersion" - ], - "members":{ - "TrafficPolicyId":{ - "shape":"TrafficPolicyId", - "location":"querystring", - "locationName":"id" - }, - "TrafficPolicyVersion":{ - "shape":"TrafficPolicyVersion", - "location":"querystring", - "locationName":"version" - }, - "HostedZoneIdMarker":{ - "shape":"ResourceId", - "location":"querystring", - "locationName":"hostedzoneid" - }, - "TrafficPolicyInstanceNameMarker":{ - "shape":"DNSName", - "location":"querystring", - "locationName":"trafficpolicyinstancename" - }, - "TrafficPolicyInstanceTypeMarker":{ - "shape":"RRType", - "location":"querystring", - "locationName":"trafficpolicyinstancetype" - }, - "MaxItems":{ - "shape":"PageMaxItems", - "location":"querystring", - "locationName":"maxitems" - } - } - }, - "ListTrafficPolicyInstancesByPolicyResponse":{ - "type":"structure", - "required":[ - "TrafficPolicyInstances", - "IsTruncated", - "MaxItems" - ], - "members":{ - "TrafficPolicyInstances":{"shape":"TrafficPolicyInstances"}, - "HostedZoneIdMarker":{"shape":"ResourceId"}, - "TrafficPolicyInstanceNameMarker":{"shape":"DNSName"}, - "TrafficPolicyInstanceTypeMarker":{"shape":"RRType"}, - "IsTruncated":{"shape":"PageTruncated"}, - "MaxItems":{"shape":"PageMaxItems"} - } - }, - "ListTrafficPolicyInstancesRequest":{ - "type":"structure", - "members":{ - "HostedZoneIdMarker":{ - "shape":"ResourceId", - "location":"querystring", - "locationName":"hostedzoneid" - }, - "TrafficPolicyInstanceNameMarker":{ - "shape":"DNSName", - "location":"querystring", - "locationName":"trafficpolicyinstancename" - }, - "TrafficPolicyInstanceTypeMarker":{ - "shape":"RRType", - "location":"querystring", - "locationName":"trafficpolicyinstancetype" - }, - "MaxItems":{ - "shape":"PageMaxItems", - "location":"querystring", - "locationName":"maxitems" - } - } - }, - "ListTrafficPolicyInstancesResponse":{ - "type":"structure", - "required":[ - "TrafficPolicyInstances", - "IsTruncated", - "MaxItems" - ], - "members":{ - "TrafficPolicyInstances":{"shape":"TrafficPolicyInstances"}, - "HostedZoneIdMarker":{"shape":"ResourceId"}, - "TrafficPolicyInstanceNameMarker":{"shape":"DNSName"}, - "TrafficPolicyInstanceTypeMarker":{"shape":"RRType"}, - "IsTruncated":{"shape":"PageTruncated"}, - "MaxItems":{"shape":"PageMaxItems"} - } - }, - "ListTrafficPolicyVersionsRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"TrafficPolicyId", - "location":"uri", - "locationName":"Id" - }, - "TrafficPolicyVersionMarker":{ - "shape":"TrafficPolicyVersionMarker", - "location":"querystring", - "locationName":"trafficpolicyversion" - }, - "MaxItems":{ - "shape":"PageMaxItems", - "location":"querystring", - "locationName":"maxitems" - } - } - }, - "ListTrafficPolicyVersionsResponse":{ - "type":"structure", - "required":[ - "TrafficPolicies", - "IsTruncated", - "TrafficPolicyVersionMarker", - "MaxItems" - ], - "members":{ - "TrafficPolicies":{"shape":"TrafficPolicies"}, - "IsTruncated":{"shape":"PageTruncated"}, - "TrafficPolicyVersionMarker":{"shape":"TrafficPolicyVersionMarker"}, - "MaxItems":{"shape":"PageMaxItems"} - } - }, - "MeasureLatency":{"type":"boolean"}, - "Message":{ - "type":"string", - "max":1024 - }, - "MetricName":{ - "type":"string", - "max":255, - "min":1 - }, - "Namespace":{ - "type":"string", - "max":255, - "min":1 - }, "NoSuchChange":{ "type":"structure", "members":{ @@ -2646,26 +1965,10 @@ "error":{"httpStatusCode":404}, "exception":true }, - "NoSuchTrafficPolicy":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchTrafficPolicyInstance":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, "Nonce":{ "type":"string", - "max":128, - "min":1 + "min":1, + "max":128 }, "PageMarker":{ "type":"string", @@ -2673,14 +1976,10 @@ }, "PageMaxItems":{"type":"string"}, "PageTruncated":{"type":"boolean"}, - "Period":{ - "type":"integer", - "min":60 - }, "Port":{ "type":"integer", - "max":65535, - "min":1 + "min":1, + "max":65535 }, "PriorRequestNotComplete":{ "type":"structure", @@ -2719,8 +2018,8 @@ }, "RequestInterval":{ "type":"integer", - "max":30, - "min":10 + "min":10, + "max":30 }, "ResourceDescription":{ "type":"string", @@ -2758,8 +2057,7 @@ "TTL":{"shape":"TTL"}, "ResourceRecords":{"shape":"ResourceRecords"}, "AliasTarget":{"shape":"AliasTarget"}, - "HealthCheckId":{"shape":"HealthCheckId"}, - "TrafficPolicyInstanceId":{"shape":"TrafficPolicyInstanceId"} + "HealthCheckId":{"shape":"HealthCheckId"} } }, "ResourceRecordSetFailover":{ @@ -2771,8 +2069,8 @@ }, "ResourceRecordSetIdentifier":{ "type":"string", - "max":128, - "min":1 + "min":1, + "max":128 }, "ResourceRecordSetRegion":{ "type":"string", @@ -2785,17 +2083,16 @@ "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", - "ap-northeast-2", "sa-east-1", "cn-north-1" ], - "max":64, - "min":1 + "min":1, + "max":64 }, "ResourceRecordSetWeight":{ "type":"long", - "max":255, - "min":0 + "min":0, + "max":255 }, "ResourceRecordSets":{ "type":"list", @@ -2835,16 +2132,6 @@ "type":"string", "max":255 }, - "Statistic":{ - "type":"string", - "enum":[ - "Average", - "Sum", - "SampleCount", - "Maximum", - "Minimum" - ] - }, "Status":{"type":"string"}, "StatusReport":{ "type":"structure", @@ -2855,8 +2142,8 @@ }, "TTL":{ "type":"long", - "max":2147483647, - "min":0 + "min":0, + "max":2147483647 }, "Tag":{ "type":"structure", @@ -2875,8 +2162,8 @@ "shape":"TagKey", "locationName":"Key" }, - "max":10, - "min":1 + "min":1, + "max":10 }, "TagList":{ "type":"list", @@ -2884,8 +2171,8 @@ "shape":"Tag", "locationName":"Tag" }, - "max":10, - "min":1 + "min":1, + "max":10 }, "TagResourceId":{ "type":"string", @@ -2897,8 +2184,8 @@ "shape":"TagResourceId", "locationName":"ResourceId" }, - "max":10, - "min":1 + "min":1, + "max":10 }, "TagResourceType":{ "type":"string", @@ -2911,7 +2198,6 @@ "type":"string", "max":256 }, - "Threshold":{"type":"double"}, "ThrottlingException":{ "type":"structure", "members":{ @@ -2936,158 +2222,6 @@ "error":{"httpStatusCode":400}, "exception":true }, - "TooManyTrafficPolicies":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyTrafficPolicyInstances":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TrafficPolicies":{ - "type":"list", - "member":{ - "shape":"TrafficPolicy", - "locationName":"TrafficPolicy" - } - }, - "TrafficPolicy":{ - "type":"structure", - "required":[ - "Id", - "Version", - "Name", - "Type", - "Document" - ], - "members":{ - "Id":{"shape":"TrafficPolicyId"}, - "Version":{"shape":"TrafficPolicyVersion"}, - "Name":{"shape":"TrafficPolicyName"}, - "Type":{"shape":"RRType"}, - "Document":{"shape":"TrafficPolicyDocument"}, - "Comment":{"shape":"TrafficPolicyComment"} - } - }, - "TrafficPolicyAlreadyExists":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "TrafficPolicyComment":{ - "type":"string", - "max":1024 - }, - "TrafficPolicyDocument":{ - "type":"string", - "max":102400 - }, - "TrafficPolicyId":{ - "type":"string", - "max":36 - }, - "TrafficPolicyInUse":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TrafficPolicyInstance":{ - "type":"structure", - "required":[ - "Id", - "HostedZoneId", - "Name", - "TTL", - "State", - "Message", - "TrafficPolicyId", - "TrafficPolicyVersion", - "TrafficPolicyType" - ], - "members":{ - "Id":{"shape":"TrafficPolicyInstanceId"}, - "HostedZoneId":{"shape":"ResourceId"}, - "Name":{"shape":"DNSName"}, - "TTL":{"shape":"TTL"}, - "State":{"shape":"TrafficPolicyInstanceState"}, - "Message":{"shape":"Message"}, - "TrafficPolicyId":{"shape":"TrafficPolicyId"}, - "TrafficPolicyVersion":{"shape":"TrafficPolicyVersion"}, - "TrafficPolicyType":{"shape":"RRType"} - } - }, - "TrafficPolicyInstanceAlreadyExists":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "TrafficPolicyInstanceCount":{"type":"integer"}, - "TrafficPolicyInstanceId":{ - "type":"string", - "max":36 - }, - "TrafficPolicyInstanceState":{"type":"string"}, - "TrafficPolicyInstances":{ - "type":"list", - "member":{ - "shape":"TrafficPolicyInstance", - "locationName":"TrafficPolicyInstance" - } - }, - "TrafficPolicyName":{ - "type":"string", - "max":512 - }, - "TrafficPolicySummaries":{ - "type":"list", - "member":{ - "shape":"TrafficPolicySummary", - "locationName":"TrafficPolicySummary" - } - }, - "TrafficPolicySummary":{ - "type":"structure", - "required":[ - "Id", - "Name", - "Type", - "LatestVersion", - "TrafficPolicyCount" - ], - "members":{ - "Id":{"shape":"TrafficPolicyId"}, - "Name":{"shape":"TrafficPolicyName"}, - "Type":{"shape":"RRType"}, - "LatestVersion":{"shape":"TrafficPolicyVersion"}, - "TrafficPolicyCount":{"shape":"TrafficPolicyVersion"} - } - }, - "TrafficPolicyVersion":{ - "type":"integer", - "max":1000, - "min":1 - }, - "TrafficPolicyVersionMarker":{ - "type":"string", - "max":4 - }, "UpdateHealthCheckRequest":{ "type":"structure", "required":["HealthCheckId"], @@ -3103,14 +2237,7 @@ "ResourcePath":{"shape":"ResourcePath"}, "FullyQualifiedDomainName":{"shape":"FullyQualifiedDomainName"}, "SearchString":{"shape":"SearchString"}, - "FailureThreshold":{"shape":"FailureThreshold"}, - "Inverted":{"shape":"Inverted"}, - "HealthThreshold":{"shape":"HealthThreshold"}, - "ChildHealthChecks":{"shape":"ChildHealthCheckList"}, - "EnableSNI":{"shape":"EnableSNI"}, - "Regions":{"shape":"HealthCheckRegionList"}, - "AlarmIdentifier":{"shape":"AlarmIdentifier"}, - "InsufficientDataHealthStatus":{"shape":"InsufficientDataHealthStatus"} + "FailureThreshold":{"shape":"FailureThreshold"} } }, "UpdateHealthCheckResponse":{ @@ -3139,60 +2266,6 @@ "HostedZone":{"shape":"HostedZone"} } }, - "UpdateTrafficPolicyCommentRequest":{ - "type":"structure", - "required":[ - "Id", - "Version", - "Comment" - ], - "members":{ - "Id":{ - "shape":"TrafficPolicyId", - "location":"uri", - "locationName":"Id" - }, - "Version":{ - "shape":"TrafficPolicyVersion", - "location":"uri", - "locationName":"Version" - }, - "Comment":{"shape":"TrafficPolicyComment"} - } - }, - "UpdateTrafficPolicyCommentResponse":{ - "type":"structure", - "required":["TrafficPolicy"], - "members":{ - "TrafficPolicy":{"shape":"TrafficPolicy"} - } - }, - "UpdateTrafficPolicyInstanceRequest":{ - "type":"structure", - "required":[ - "Id", - "TTL", - "TrafficPolicyId", - "TrafficPolicyVersion" - ], - "members":{ - "Id":{ - "shape":"TrafficPolicyInstanceId", - "location":"uri", - "locationName":"Id" - }, - "TTL":{"shape":"TTL"}, - "TrafficPolicyId":{"shape":"TrafficPolicyId"}, - "TrafficPolicyVersion":{"shape":"TrafficPolicyVersion"} - } - }, - "UpdateTrafficPolicyInstanceResponse":{ - "type":"structure", - "required":["TrafficPolicyInstance"], - "members":{ - "TrafficPolicyInstance":{"shape":"TrafficPolicyInstance"} - } - }, "VPC":{ "type":"structure", "members":{ @@ -3223,12 +2296,11 @@ "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", - "ap-northeast-2", "sa-east-1", "cn-north-1" ], - "max":64, - "min":1 + "min":1, + "max":64 }, "VPCs":{ "type":"list", diff --git a/vendor/github.com/aws/aws-sdk-go/apis/route53/2013-04-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/route53/2013-04-01/docs-2.json new file mode 100644 index 000000000..3e8ed51e5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/route53/2013-04-01/docs-2.json @@ -0,0 +1,1159 @@ +{ + "version": "2.0", + "operations": { + "AssociateVPCWithHostedZone": "

This action associates a VPC with an hosted zone.

To associate a VPC with an hosted zone, send a POST request to the 2013-04-01/hostedzone/hosted zone ID/associatevpc resource. The request body must include an XML document with a AssociateVPCWithHostedZoneRequest element. The response returns the AssociateVPCWithHostedZoneResponse element that contains ChangeInfo for you to track the progress of the AssociateVPCWithHostedZoneRequest you made. See GetChange operation for how to track the progress of your change.

", + "ChangeResourceRecordSets": "

Use this action to create or change your authoritative DNS information. To use this action, send a POST request to the 2013-04-01/hostedzone/hosted Zone ID/rrset resource. The request body must include an XML document with a ChangeResourceRecordSetsRequest element.

Changes are a list of change items and are considered transactional. For more information on transactional changes, also known as change batches, see Creating, Changing, and Deleting Resource Record Sets Using the Route 53 API in the Amazon Route 53 Developer Guide.

Due to the nature of transactional changes, you cannot delete the same resource record set more than once in a single change batch. If you attempt to delete the same change batch more than once, Route 53 returns an InvalidChangeBatch error.

In response to a ChangeResourceRecordSets request, your DNS data is changed on all Route 53 DNS servers. Initially, the status of a change is PENDING. This means the change has not yet propagated to all the authoritative Route 53 DNS servers. When the change is propagated to all hosts, the change returns a status of INSYNC.

Note the following limitations on a ChangeResourceRecordSets request:

- A request cannot contain more than 100 Change elements.

- A request cannot contain more than 1000 ResourceRecord elements.

The sum of the number of characters (including spaces) in all Value elements in a request cannot exceed 32,000 characters.

", + "ChangeTagsForResource": null, + "CreateHealthCheck": "

This action creates a new health check.

To create a new health check, send a POST request to the 2013-04-01/healthcheck resource. The request body must include an XML document with a CreateHealthCheckRequest element. The response returns the CreateHealthCheckResponse element that contains metadata about the health check.

", + "CreateHostedZone": "

This action creates a new hosted zone.

To create a new hosted zone, send a POST request to the 2013-04-01/hostedzone resource. The request body must include an XML document with a CreateHostedZoneRequest element. The response returns the CreateHostedZoneResponse element that contains metadata about the hosted zone.

Route 53 automatically creates a default SOA record and four NS records for the zone. The NS records in the hosted zone are the name servers you give your registrar to delegate your domain to. For more information about SOA and NS records, see NS and SOA Records that Route 53 Creates for a Hosted Zone in the Amazon Route 53 Developer Guide.

When you create a zone, its initial status is PENDING. This means that it is not yet available on all DNS servers. The status of the zone changes to INSYNC when the NS and SOA records are available on all Route 53 DNS servers.

When trying to create a hosted zone using a reusable delegation set, you could specify an optional DelegationSetId, and Route53 would assign those 4 NS records for the zone, instead of alloting a new one.

", + "CreateReusableDelegationSet": "

This action creates a reusable delegationSet.

To create a new reusable delegationSet, send a POST request to the 2013-04-01/delegationset resource. The request body must include an XML document with a CreateReusableDelegationSetRequest element. The response returns the CreateReusableDelegationSetResponse element that contains metadata about the delegationSet.

If the optional parameter HostedZoneId is specified, it marks the delegationSet associated with that particular hosted zone as reusable.

", + "DeleteHealthCheck": "

This action deletes a health check. To delete a health check, send a DELETE request to the 2013-04-01/healthcheck/health check ID resource.

You can delete a health check only if there are no resource record sets associated with this health check. If resource record sets are associated with this health check, you must disassociate them before you can delete your health check. If you try to delete a health check that is associated with resource record sets, Route 53 will deny your request with a HealthCheckInUse error. For information about disassociating the records from your health check, see ChangeResourceRecordSets.", + "DeleteHostedZone": "

This action deletes a hosted zone. To delete a hosted zone, send a DELETE request to the 2013-04-01/hostedzone/hosted zone ID resource.

For more information about deleting a hosted zone, see Deleting a Hosted Zone in the Amazon Route 53 Developer Guide.

You can delete a hosted zone only if there are no resource record sets other than the default SOA record and NS resource record sets. If your hosted zone contains other resource record sets, you must delete them before you can delete your hosted zone. If you try to delete a hosted zone that contains other resource record sets, Route 53 will deny your request with a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.", + "DeleteReusableDelegationSet": "

This action deletes a reusable delegation set. To delete a reusable delegation set, send a DELETE request to the 2013-04-01/delegationset/delegation set ID resource.

You can delete a reusable delegation set only if there are no associated hosted zones. If your reusable delegation set contains associated hosted zones, you must delete them before you can delete your reusable delegation set. If you try to delete a reusable delegation set that contains associated hosted zones, Route 53 will deny your request with a DelegationSetInUse error.", + "DisassociateVPCFromHostedZone": "

This action disassociates a VPC from an hosted zone.

To disassociate a VPC to a hosted zone, send a POST request to the 2013-04-01/hostedzone/hosted zone ID/disassociatevpc resource. The request body must include an XML document with a DisassociateVPCFromHostedZoneRequest element. The response returns the DisassociateVPCFromHostedZoneResponse element that contains ChangeInfo for you to track the progress of the DisassociateVPCFromHostedZoneRequest you made. See GetChange operation for how to track the progress of your change.

", + "GetChange": "

This action returns the current status of a change batch request. The status is one of the following values:

- PENDING indicates that the changes in this request have not replicated to all Route 53 DNS servers. This is the initial status of all change batch requests.

- INSYNC indicates that the changes have replicated to all Amazon Route 53 DNS servers.

", + "GetCheckerIpRanges": "

To retrieve a list of the IP ranges used by Amazon Route 53 health checkers to check the health of your resources, send a GET request to the 2013-04-01/checkeripranges resource. You can use these IP addresses to configure router and firewall rules to allow health checkers to check the health of your resources.

", + "GetGeoLocation": "

To retrieve a single geo location, send a GET request to the 2013-04-01/geolocation resource with one of these options: continentcode | countrycode | countrycode and subdivisioncode.

", + "GetHealthCheck": "

To retrieve the health check, send a GET request to the 2013-04-01/healthcheck/health check ID resource.

", + "GetHealthCheckCount": "

To retrieve a count of all your health checks, send a GET request to the 2013-04-01/healthcheckcount resource.

", + "GetHealthCheckLastFailureReason": "

If you want to learn why a health check is currently failing or why it failed most recently (if at all), you can get the failure reason for the most recent failure. Send a GET request to the 2013-04-01/healthcheck/health check ID/lastfailurereason resource.

", + "GetHealthCheckStatus": "

To retrieve the health check status, send a GET request to the 2013-04-01/healthcheck/health check ID/status resource. You can use this call to get a health check's current status.

", + "GetHostedZone": "

To retrieve the delegation set for a hosted zone, send a GET request to the 2013-04-01/hostedzone/hosted zone ID resource. The delegation set is the four Route 53 name servers that were assigned to the hosted zone when you created it.

", + "GetHostedZoneCount": "

To retrieve a count of all your hosted zones, send a GET request to the 2013-04-01/hostedzonecount resource.

", + "GetReusableDelegationSet": "

To retrieve the reusable delegation set, send a GET request to the 2013-04-01/delegationset/delegation set ID resource.

", + "ListGeoLocations": "

To retrieve a list of supported geo locations, send a GET request to the 2013-04-01/geolocations resource. The response to this request includes a GeoLocationDetailsList element with zero, one, or multiple GeoLocationDetails child elements. The list is sorted by country code, and then subdivision code, followed by continents at the end of the list.

By default, the list of geo locations is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. If the list is truncated, IsTruncated will be set to true and a combination of NextContinentCode, NextCountryCode, NextSubdivisionCode will be populated. You can pass these as parameters to StartContinentCode, StartCountryCode, StartSubdivisionCode to control the geo location that the list begins with.

", + "ListHealthChecks": "

To retrieve a list of your health checks, send a GET request to the 2013-04-01/healthcheck resource. The response to this request includes a HealthChecks element with zero, one, or multiple HealthCheck child elements. By default, the list of health checks is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the health check that the list begins with.

Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", + "ListHostedZones": "

To retrieve a list of your hosted zones, send a GET request to the 2013-04-01/hostedzone resource. The response to this request includes a HostedZones element with zero, one, or multiple HostedZone child elements. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the hosted zone that the list begins with.

Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", + "ListHostedZonesByName": "

To retrieve a list of your hosted zones in lexicographic order, send a GET request to the 2013-04-01/hostedzonesbyname resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements lexicographically ordered by DNS name. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the DNSName and HostedZoneId parameters to control the hosted zone that the list begins with.

Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", + "ListResourceRecordSets": "

Imagine all the resource record sets in a zone listed out in front of you. Imagine them sorted lexicographically first by DNS name (with the labels reversed, like \"com.amazon.www\" for example), and secondarily, lexicographically by record type. This operation retrieves at most MaxItems resource record sets from this list, in order, starting at a position specified by the Name and Type arguments:

  • If both Name and Type are omitted, this means start the results at the first RRSET in the HostedZone.
  • If Name is specified but Type is omitted, this means start the results at the first RRSET in the list whose name is greater than or equal to Name.
  • If both Name and Type are specified, this means start the results at the first RRSET in the list whose name is greater than or equal to Name and whose type is greater than or equal to Type.
  • It is an error to specify the Type but not the Name.

Use ListResourceRecordSets to retrieve a single known record set by specifying the record set's name and type, and setting MaxItems = 1

To retrieve all the records in a HostedZone, first pause any processes making calls to ChangeResourceRecordSets. Initially call ListResourceRecordSets without a Name and Type to get the first page of record sets. For subsequent calls, set Name and Type to the NextName and NextType values returned by the previous response.

In the presence of concurrent ChangeResourceRecordSets calls, there is no consistency of results across calls to ListResourceRecordSets. The only way to get a consistent multi-page snapshot of all RRSETs in a zone is to stop making changes while pagination is in progress.

However, the results from ListResourceRecordSets are consistent within a page. If MakeChange calls are taking place concurrently, the result of each one will either be completely visible in your results or not at all. You will not see partial changes, or changes that do not ultimately succeed. (This follows from the fact that MakeChange is atomic)

The results from ListResourceRecordSets are strongly consistent with ChangeResourceRecordSets. To be precise, if a single process makes a call to ChangeResourceRecordSets and receives a successful response, the effects of that change will be visible in a subsequent call to ListResourceRecordSets by that process.

", + "ListReusableDelegationSets": "

To retrieve a list of your reusable delegation sets, send a GET request to the 2013-04-01/delegationset resource. The response to this request includes a DelegationSets element with zero, one, or multiple DelegationSet child elements. By default, the list of delegation sets is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the delegation set that the list begins with.

Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", + "ListTagsForResource": null, + "ListTagsForResources": null, + "UpdateHealthCheck": "

This action updates an existing health check.

To update a health check, send a POST request to the 2013-04-01/healthcheck/health check ID resource. The request body must include an XML document with an UpdateHealthCheckRequest element. The response returns an UpdateHealthCheckResponse element, which contains metadata about the health check.

", + "UpdateHostedZoneComment": "

To update the hosted zone comment, send a POST request to the 2013-04-01/hostedzone/hosted zone ID resource. The request body must include an XML document with a UpdateHostedZoneCommentRequest element. The response to this request includes the modified HostedZone element.

The comment can have a maximum length of 256 characters." + }, + "service": null, + "shapes": { + "AliasHealthEnabled": { + "base": null, + "refs": { + "AliasTarget$EvaluateTargetHealth": "

Alias resource record sets only: A boolean value that indicates whether this Resource Record Set should respect the health status of any health checks associated with the ALIAS target record which it is linked to.

For more information and an example, see Creating Alias Resource Record Sets in the Amazon Route 53 Developer Guide

." + } + }, + "AliasTarget": { + "base": "

Alias resource record sets only: Information about the domain to which you are redirecting traffic.

For more information and an example, see Creating Alias Resource Record Sets in the Amazon Route 53 Developer Guide

.", + "refs": { + "ResourceRecordSet$AliasTarget": "

Alias resource record sets only: Information about the AWS resource to which you are redirecting traffic.

" + } + }, + "AssociateVPCComment": { + "base": null, + "refs": { + "AssociateVPCWithHostedZoneRequest$Comment": "

Optional: Any comments you want to include about a AssociateVPCWithHostedZoneRequest.

" + } + }, + "AssociateVPCWithHostedZoneRequest": { + "base": "

A complex type that contains information about the request to associate a VPC with an hosted zone.

", + "refs": { + } + }, + "AssociateVPCWithHostedZoneResponse": { + "base": "

A complex type containing the response information for the request.

", + "refs": { + } + }, + "Change": { + "base": "

A complex type that contains the information for each change in a change batch request.

", + "refs": { + "Changes$member": null + } + }, + "ChangeAction": { + "base": null, + "refs": { + "Change$Action": "

The action to perform.

Valid values: CREATE | DELETE | UPSERT

" + } + }, + "ChangeBatch": { + "base": "

A complex type that contains an optional comment and the changes that you want to make with a change batch request.

", + "refs": { + "ChangeResourceRecordSetsRequest$ChangeBatch": "

A complex type that contains an optional comment and the Changes element.

" + } + }, + "ChangeInfo": { + "base": "

A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

", + "refs": { + "AssociateVPCWithHostedZoneResponse$ChangeInfo": "

A complex type that contains the ID, the status, and the date and time of your AssociateVPCWithHostedZoneRequest.

", + "ChangeResourceRecordSetsResponse$ChangeInfo": "

A complex type that contains information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

", + "CreateHostedZoneResponse$ChangeInfo": "

A complex type that contains information about the request to create a hosted zone. This includes an ID that you use when you call the GetChange action to get the current status of the change request.

", + "DeleteHostedZoneResponse$ChangeInfo": "

A complex type that contains the ID, the status, and the date and time of your delete request.

", + "DisassociateVPCFromHostedZoneResponse$ChangeInfo": "

A complex type that contains the ID, the status, and the date and time of your DisassociateVPCFromHostedZoneRequest.

", + "GetChangeResponse$ChangeInfo": "

A complex type that contains information about the specified change batch, including the change batch ID, the status of the change, and the date and time of the request.

" + } + }, + "ChangeResourceRecordSetsRequest": { + "base": "

A complex type that contains a change batch.

", + "refs": { + } + }, + "ChangeResourceRecordSetsResponse": { + "base": "

A complex type containing the response for the request.

", + "refs": { + } + }, + "ChangeStatus": { + "base": null, + "refs": { + "ChangeInfo$Status": "

The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

Valid Values: PENDING | INSYNC

" + } + }, + "ChangeTagsForResourceRequest": { + "base": "

A complex type containing information about a request to add, change, or delete the tags that are associated with a resource.

", + "refs": { + } + }, + "ChangeTagsForResourceResponse": { + "base": "

Empty response for the request.

", + "refs": { + } + }, + "Changes": { + "base": null, + "refs": { + "ChangeBatch$Changes": "

A complex type that contains one Change element for each resource record set that you want to create or delete.

" + } + }, + "CheckerIpRanges": { + "base": null, + "refs": { + "GetCheckerIpRangesResponse$CheckerIpRanges": "

A complex type that contains sorted list of IP ranges in CIDR format for Amazon Route 53 health checkers.

" + } + }, + "ConflictingDomainExists": { + "base": null, + "refs": { + } + }, + "CreateHealthCheckRequest": { + "base": "

>A complex type that contains information about the request to create a health check.

", + "refs": { + } + }, + "CreateHealthCheckResponse": { + "base": "

A complex type containing the response information for the new health check.

", + "refs": { + } + }, + "CreateHostedZoneRequest": { + "base": "

A complex type that contains information about the request to create a hosted zone.

", + "refs": { + } + }, + "CreateHostedZoneResponse": { + "base": "

A complex type containing the response information for the new hosted zone.

", + "refs": { + } + }, + "CreateReusableDelegationSetRequest": { + "base": null, + "refs": { + } + }, + "CreateReusableDelegationSetResponse": { + "base": null, + "refs": { + } + }, + "DNSName": { + "base": null, + "refs": { + "AliasTarget$DNSName": "

Alias resource record sets only: The external DNS name associated with the AWS Resource.

For more information and an example, see Creating Alias Resource Record Sets in the Amazon Route 53 Developer Guide

.", + "CreateHostedZoneRequest$Name": "

The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Route 53 assumes that the domain name is fully qualified. This means that Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

", + "DelegationSetNameServers$member": null, + "HostedZone$Name": "

The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Route 53 assumes that the domain name is fully qualified. This means that Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

", + "ListHostedZonesByNameRequest$DNSName": "

The first name in the lexicographic ordering of domain names that you want the ListHostedZonesByNameRequest request to list.

If the request returned more than one page of results, submit another request and specify the value of NextDNSName and NextHostedZoneId from the last response in the DNSName and HostedZoneId parameters to get the next page of results.

", + "ListHostedZonesByNameResponse$DNSName": "

The DNSName value sent in the request.

", + "ListHostedZonesByNameResponse$NextDNSName": "

If ListHostedZonesByNameResponse$IsTruncated is true, there are more hosted zones associated with the current AWS account. To get the next page of results, make another request to ListHostedZonesByName. Specify the value of ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

", + "ListResourceRecordSetsRequest$StartRecordName": "

The first name in the lexicographic ordering of domain names that you want the ListResourceRecordSets request to list.

", + "ListResourceRecordSetsResponse$NextRecordName": "

If the results were truncated, the name of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

", + "ResourceRecordSet$Name": "

The domain name of the current resource record set.

" + } + }, + "DelegationSet": { + "base": "

A complex type that contains name server information.

", + "refs": { + "CreateHostedZoneResponse$DelegationSet": "

A complex type that contains name server information.

", + "CreateReusableDelegationSetResponse$DelegationSet": "

A complex type that contains name server information.

", + "DelegationSets$member": null, + "GetHostedZoneResponse$DelegationSet": "

A complex type that contains information about the name servers for the specified hosted zone.

", + "GetReusableDelegationSetResponse$DelegationSet": "

A complex type that contains the information about the nameservers for the specified delegation set ID.

" + } + }, + "DelegationSetAlreadyCreated": { + "base": "

A delegation set with the same owner and caller reference combination has already been created.

", + "refs": { + } + }, + "DelegationSetAlreadyReusable": { + "base": "

The specified delegation set has already been marked as reusable.

", + "refs": { + } + }, + "DelegationSetInUse": { + "base": "

The specified delegation contains associated hosted zones which must be deleted before the reusable delegation set can be deleted.

", + "refs": { + } + }, + "DelegationSetNameServers": { + "base": null, + "refs": { + "DelegationSet$NameServers": "

A complex type that contains the authoritative name servers for the hosted zone. Use the method provided by your domain registrar to add an NS record to your domain for each NameServer that is assigned to your hosted zone.

" + } + }, + "DelegationSetNotAvailable": { + "base": "

Route 53 allows some duplicate domain names, but there is a maximum number of duplicate names. This error indicates that you have reached that maximum. If you want to create another hosted zone with the same name and Route 53 generates this error, you can request an increase to the limit on the Contact Us page.

", + "refs": { + } + }, + "DelegationSetNotReusable": { + "base": "

The specified delegation set has not been marked as reusable.

", + "refs": { + } + }, + "DelegationSets": { + "base": null, + "refs": { + "ListReusableDelegationSetsResponse$DelegationSets": "

A complex type that contains information about the reusable delegation sets associated with the current AWS account.

" + } + }, + "DeleteHealthCheckRequest": { + "base": "

A complex type containing the request information for delete health check.

", + "refs": { + } + }, + "DeleteHealthCheckResponse": { + "base": "

Empty response for the request.

", + "refs": { + } + }, + "DeleteHostedZoneRequest": { + "base": "

A complex type that contains information about the hosted zone that you want to delete.

", + "refs": { + } + }, + "DeleteHostedZoneResponse": { + "base": "

A complex type containing the response information for the request.

", + "refs": { + } + }, + "DeleteReusableDelegationSetRequest": { + "base": "

A complex type containing the information for the delete request.

", + "refs": { + } + }, + "DeleteReusableDelegationSetResponse": { + "base": "

Empty response for the request.

", + "refs": { + } + }, + "DisassociateVPCComment": { + "base": null, + "refs": { + "DisassociateVPCFromHostedZoneRequest$Comment": "

Optional: Any comments you want to include about a DisassociateVPCFromHostedZoneRequest.

" + } + }, + "DisassociateVPCFromHostedZoneRequest": { + "base": "

A complex type that contains information about the request to disassociate a VPC from an hosted zone.

", + "refs": { + } + }, + "DisassociateVPCFromHostedZoneResponse": { + "base": "

A complex type containing the response information for the request.

", + "refs": { + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "ConflictingDomainExists$message": null, + "DelegationSetAlreadyCreated$message": "

Descriptive message for the error response.

", + "DelegationSetAlreadyReusable$message": "

Descriptive message for the error response.

", + "DelegationSetInUse$message": "

Descriptive message for the error response.

", + "DelegationSetNotAvailable$message": "

Descriptive message for the error response.

", + "DelegationSetNotReusable$message": "

Descriptive message for the error response.

", + "ErrorMessages$member": null, + "HealthCheckAlreadyExists$message": "

Descriptive message for the error response.

", + "HealthCheckInUse$message": "

Descriptive message for the error response.

", + "HealthCheckVersionMismatch$message": null, + "HostedZoneAlreadyExists$message": "

Descriptive message for the error response.

", + "HostedZoneNotEmpty$message": "

Descriptive message for the error response.

", + "HostedZoneNotFound$message": "

Descriptive message for the error response.

", + "IncompatibleVersion$message": null, + "InvalidArgument$message": "

Descriptive message for the error response.

", + "InvalidDomainName$message": "

Descriptive message for the error response.

", + "InvalidInput$message": "

Descriptive message for the error response.

", + "InvalidVPCId$message": "

Descriptive message for the error response.

", + "LastVPCAssociation$message": "

Descriptive message for the error response.

", + "LimitsExceeded$message": "

Descriptive message for the error response.

", + "NoSuchChange$message": null, + "NoSuchDelegationSet$message": "

Descriptive message for the error response.

", + "NoSuchGeoLocation$message": "

Descriptive message for the error response.

", + "NoSuchHealthCheck$message": "

Descriptive message for the error response.

", + "NoSuchHostedZone$message": null, + "PriorRequestNotComplete$message": null, + "PublicZoneVPCAssociation$message": "

Descriptive message for the error response.

", + "ThrottlingException$message": null, + "TooManyHealthChecks$message": null, + "TooManyHostedZones$message": "

Descriptive message for the error response.

", + "VPCAssociationNotFound$message": "

Descriptive message for the error response.

" + } + }, + "ErrorMessages": { + "base": null, + "refs": { + "InvalidChangeBatch$messages": "

Descriptive message for the error response.

" + } + }, + "FailureThreshold": { + "base": null, + "refs": { + "HealthCheckConfig$FailureThreshold": "

The number of consecutive health checks that an endpoint must pass or fail for Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa.

Valid values are integers between 1 and 10. For more information, see \"How Amazon Route 53 Determines Whether an Endpoint Is Healthy\" in the Amazon Route 53 Developer Guide.

", + "UpdateHealthCheckRequest$FailureThreshold": "

The number of consecutive health checks that an endpoint must pass or fail for Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa.

Valid values are integers between 1 and 10. For more information, see \"How Amazon Route 53 Determines Whether an Endpoint Is Healthy\" in the Amazon Route 53 Developer Guide.

Specify this value only if you want to change it.

" + } + }, + "FullyQualifiedDomainName": { + "base": null, + "refs": { + "HealthCheckConfig$FullyQualifiedDomainName": "

Fully qualified domain name of the instance to be health checked.

", + "UpdateHealthCheckRequest$FullyQualifiedDomainName": "

Fully qualified domain name of the instance to be health checked.

Specify this value only if you want to change it.

" + } + }, + "GeoLocation": { + "base": "

A complex type that contains information about a geo location.

", + "refs": { + "ResourceRecordSet$GeoLocation": "

Geo location resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the geo location for the current resource record set.

" + } + }, + "GeoLocationContinentCode": { + "base": null, + "refs": { + "GeoLocation$ContinentCode": "

The code for a continent geo location. Note: only continent locations have a continent code.

Valid values: AF | AN | AS | EU | OC | NA | SA

Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

", + "GeoLocationDetails$ContinentCode": "

The code for a continent geo location. Note: only continent locations have a continent code.

", + "GetGeoLocationRequest$ContinentCode": "

The code for a continent geo location. Note: only continent locations have a continent code.

Valid values: AF | AN | AS | EU | OC | NA | SA

Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

", + "ListGeoLocationsRequest$StartContinentCode": "

The first continent code in the lexicographic ordering of geo locations that you want the ListGeoLocations request to list. For non-continent geo locations, this should be null.

Valid values: AF | AN | AS | EU | OC | NA | SA

Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

", + "ListGeoLocationsResponse$NextContinentCode": "

If the results were truncated, the continent code of the next geo location in the list. This element is present only if ListGeoLocationsResponse$IsTruncated is true and the next geo location to list is a continent location.

" + } + }, + "GeoLocationContinentName": { + "base": null, + "refs": { + "GeoLocationDetails$ContinentName": "

The name of the continent. This element is only present if ContinentCode is also present.

" + } + }, + "GeoLocationCountryCode": { + "base": null, + "refs": { + "GeoLocation$CountryCode": "

The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

", + "GeoLocationDetails$CountryCode": "

The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

", + "GetGeoLocationRequest$CountryCode": "

The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

", + "ListGeoLocationsRequest$StartCountryCode": "

The first country code in the lexicographic ordering of geo locations that you want the ListGeoLocations request to list.

The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

", + "ListGeoLocationsResponse$NextCountryCode": "

If the results were truncated, the country code of the next geo location in the list. This element is present only if ListGeoLocationsResponse$IsTruncated is true and the next geo location to list is not a continent location.

" + } + }, + "GeoLocationCountryName": { + "base": null, + "refs": { + "GeoLocationDetails$CountryName": "

The name of the country. This element is only present if CountryCode is also present.

" + } + }, + "GeoLocationDetails": { + "base": "

A complex type that contains information about a GeoLocation.

", + "refs": { + "GeoLocationDetailsList$member": null, + "GetGeoLocationResponse$GeoLocationDetails": "

A complex type that contains the information about the specified geo location.

" + } + }, + "GeoLocationDetailsList": { + "base": null, + "refs": { + "ListGeoLocationsResponse$GeoLocationDetailsList": "

A complex type that contains information about the geo locations that are returned by the request.

" + } + }, + "GeoLocationSubdivisionCode": { + "base": null, + "refs": { + "GeoLocation$SubdivisionCode": "

The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

", + "GeoLocationDetails$SubdivisionCode": "

The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

", + "GetGeoLocationRequest$SubdivisionCode": "

The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

", + "ListGeoLocationsRequest$StartSubdivisionCode": "

The first subdivision code in the lexicographic ordering of geo locations that you want the ListGeoLocations request to list.

Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

", + "ListGeoLocationsResponse$NextSubdivisionCode": "

If the results were truncated, the subdivision code of the next geo location in the list. This element is present only if ListGeoLocationsResponse$IsTruncated is true and the next geo location has a subdivision.

" + } + }, + "GeoLocationSubdivisionName": { + "base": null, + "refs": { + "GeoLocationDetails$SubdivisionName": "

The name of the subdivision. This element is only present if SubdivisionCode is also present.

" + } + }, + "GetChangeRequest": { + "base": "

The input for a GetChange request.

", + "refs": { + } + }, + "GetChangeResponse": { + "base": "

A complex type that contains the ChangeInfo element.

", + "refs": { + } + }, + "GetCheckerIpRangesRequest": { + "base": "

Empty request.

", + "refs": { + } + }, + "GetCheckerIpRangesResponse": { + "base": "

A complex type that contains the CheckerIpRanges element.

", + "refs": { + } + }, + "GetGeoLocationRequest": { + "base": "

A complex type that contains information about the request to get a geo location.

", + "refs": { + } + }, + "GetGeoLocationResponse": { + "base": "

A complex type containing information about the specified geo location.

", + "refs": { + } + }, + "GetHealthCheckCountRequest": { + "base": "

To retrieve a count of all your health checks, send a GET request to the 2013-04-01/healthcheckcount resource.

", + "refs": { + } + }, + "GetHealthCheckCountResponse": { + "base": "

A complex type that contains the count of health checks associated with the current AWS account.

", + "refs": { + } + }, + "GetHealthCheckLastFailureReasonRequest": { + "base": "

A complex type that contains information about the request to get the most recent failure reason for a health check.

", + "refs": { + } + }, + "GetHealthCheckLastFailureReasonResponse": { + "base": "

A complex type that contains information about the most recent failure for the specified health check.

", + "refs": { + } + }, + "GetHealthCheckRequest": { + "base": "

A complex type that contains information about the request to get a health check.

", + "refs": { + } + }, + "GetHealthCheckResponse": { + "base": "

A complex type containing information about the specified health check.

", + "refs": { + } + }, + "GetHealthCheckStatusRequest": { + "base": "

A complex type that contains information about the request to get health check status for a health check.

", + "refs": { + } + }, + "GetHealthCheckStatusResponse": { + "base": "

A complex type that contains information about the status of the specified health check.

", + "refs": { + } + }, + "GetHostedZoneCountRequest": { + "base": "

To retrieve a count of all your hosted zones, send a GET request to the 2013-04-01/hostedzonecount resource.

", + "refs": { + } + }, + "GetHostedZoneCountResponse": { + "base": "

A complex type that contains the count of hosted zones associated with the current AWS account.

", + "refs": { + } + }, + "GetHostedZoneRequest": { + "base": "

The input for a GetHostedZone request.

", + "refs": { + } + }, + "GetHostedZoneResponse": { + "base": "

A complex type containing information about the specified hosted zone.

", + "refs": { + } + }, + "GetReusableDelegationSetRequest": { + "base": "

The input for a GetReusableDelegationSet request.

", + "refs": { + } + }, + "GetReusableDelegationSetResponse": { + "base": "

A complex type containing information about the specified reusable delegation set.

", + "refs": { + } + }, + "HealthCheck": { + "base": "

A complex type that contains identifying information about the health check.

", + "refs": { + "CreateHealthCheckResponse$HealthCheck": "

A complex type that contains identifying information about the health check.

", + "GetHealthCheckResponse$HealthCheck": "

A complex type that contains the information about the specified health check.

", + "HealthChecks$member": null, + "UpdateHealthCheckResponse$HealthCheck": null + } + }, + "HealthCheckAlreadyExists": { + "base": "

The health check you are trying to create already exists. Route 53 returns this error when a health check has already been created with the specified CallerReference.

", + "refs": { + } + }, + "HealthCheckConfig": { + "base": "

A complex type that contains the health check configuration.

", + "refs": { + "CreateHealthCheckRequest$HealthCheckConfig": "

A complex type that contains health check configuration.

", + "HealthCheck$HealthCheckConfig": "

A complex type that contains the health check configuration.

" + } + }, + "HealthCheckCount": { + "base": null, + "refs": { + "GetHealthCheckCountResponse$HealthCheckCount": "

The number of health checks associated with the current AWS account.

" + } + }, + "HealthCheckId": { + "base": null, + "refs": { + "DeleteHealthCheckRequest$HealthCheckId": "

The ID of the health check to delete.

", + "GetHealthCheckLastFailureReasonRequest$HealthCheckId": "

The ID of the health check for which you want to retrieve the reason for the most recent failure.

", + "GetHealthCheckRequest$HealthCheckId": "

The ID of the health check to retrieve.

", + "GetHealthCheckStatusRequest$HealthCheckId": "

The ID of the health check for which you want to retrieve the most recent status.

", + "HealthCheck$Id": "

The ID of the specified health check.

", + "ResourceRecordSet$HealthCheckId": "

Health Check resource record sets only, not required for alias resource record sets: An identifier that is used to identify health check associated with the resource record set.

", + "UpdateHealthCheckRequest$HealthCheckId": "

The ID of the health check to update.

" + } + }, + "HealthCheckInUse": { + "base": "

There are resource records associated with this health check. Before you can delete the health check, you must disassociate it from the resource record sets.

", + "refs": { + } + }, + "HealthCheckNonce": { + "base": null, + "refs": { + "CreateHealthCheckRequest$CallerReference": "

A unique string that identifies the request and that allows failed CreateHealthCheck requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a health check. CallerReference can be any unique string; you might choose to use a string that identifies your project.

Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

", + "HealthCheck$CallerReference": "

A unique string that identifies the request to create the health check.

" + } + }, + "HealthCheckObservation": { + "base": "

A complex type that contains the IP address of a Route 53 health checker and the reason for the health check status.

", + "refs": { + "HealthCheckObservations$member": null + } + }, + "HealthCheckObservations": { + "base": null, + "refs": { + "GetHealthCheckLastFailureReasonResponse$HealthCheckObservations": "

A list that contains one HealthCheckObservation element for each Route 53 health checker.

", + "GetHealthCheckStatusResponse$HealthCheckObservations": "

A list that contains one HealthCheckObservation element for each Route 53 health checker.

" + } + }, + "HealthCheckType": { + "base": null, + "refs": { + "HealthCheckConfig$Type": "

The type of health check to be performed. Currently supported types are TCP, HTTP, HTTPS, HTTP_STR_MATCH, and HTTPS_STR_MATCH.

" + } + }, + "HealthCheckVersion": { + "base": null, + "refs": { + "HealthCheck$HealthCheckVersion": "

The version of the health check. You can optionally pass this value in a call to UpdateHealthCheck to prevent overwriting another change to the health check.

", + "UpdateHealthCheckRequest$HealthCheckVersion": "

Optional. When you specify a health check version, Route 53 compares this value with the current value in the health check, which prevents you from updating the health check when the versions don't match. Using HealthCheckVersion lets you prevent overwriting another change to the health check.

" + } + }, + "HealthCheckVersionMismatch": { + "base": null, + "refs": { + } + }, + "HealthChecks": { + "base": null, + "refs": { + "ListHealthChecksResponse$HealthChecks": "

A complex type that contains information about the health checks associated with the current AWS account.

" + } + }, + "HostedZone": { + "base": "

A complex type that contain information about the specified hosted zone.

", + "refs": { + "CreateHostedZoneResponse$HostedZone": "

A complex type that contains identifying information about the hosted zone.

", + "GetHostedZoneResponse$HostedZone": "

A complex type that contains the information about the specified hosted zone.

", + "HostedZones$member": null, + "UpdateHostedZoneCommentResponse$HostedZone": null + } + }, + "HostedZoneAlreadyExists": { + "base": "

The hosted zone you are trying to create already exists. Route 53 returns this error when a hosted zone has already been created with the specified CallerReference.

", + "refs": { + } + }, + "HostedZoneConfig": { + "base": "

A complex type that contains an optional comment about your hosted zone. If you don't want to specify a comment, you can omit the HostedZoneConfig and Comment elements from the XML document.

", + "refs": { + "CreateHostedZoneRequest$HostedZoneConfig": "

A complex type that contains an optional comment about your hosted zone.

", + "HostedZone$Config": "

A complex type that contains the Comment element.

" + } + }, + "HostedZoneCount": { + "base": null, + "refs": { + "GetHostedZoneCountResponse$HostedZoneCount": "

The number of hosted zones associated with the current AWS account.

" + } + }, + "HostedZoneNotEmpty": { + "base": "

The hosted zone contains resource record sets in addition to the default NS and SOA resource record sets. Before you can delete the hosted zone, you must delete the additional resource record sets.

", + "refs": { + } + }, + "HostedZoneNotFound": { + "base": "

The specified HostedZone cannot be found.

", + "refs": { + } + }, + "HostedZoneRRSetCount": { + "base": null, + "refs": { + "HostedZone$ResourceRecordSetCount": "

Total number of resource record sets in the hosted zone.

" + } + }, + "HostedZones": { + "base": null, + "refs": { + "ListHostedZonesByNameResponse$HostedZones": "

A complex type that contains information about the hosted zones associated with the current AWS account.

", + "ListHostedZonesResponse$HostedZones": "

A complex type that contains information about the hosted zones associated with the current AWS account.

" + } + }, + "IPAddress": { + "base": null, + "refs": { + "HealthCheckConfig$IPAddress": "

IP Address of the instance being checked.

", + "HealthCheckObservation$IPAddress": "

The IP address of the Route 53 health checker that performed the health check.

", + "UpdateHealthCheckRequest$IPAddress": "

The IP address of the resource that you want to check.

Specify this value only if you want to change it.

" + } + }, + "IPAddressCidr": { + "base": null, + "refs": { + "CheckerIpRanges$member": null + } + }, + "IncompatibleVersion": { + "base": "

The resource you are trying to access is unsupported on this Route 53 endpoint. Please consider using a newer endpoint or a tool that does so.

", + "refs": { + } + }, + "InvalidArgument": { + "base": "

At least one of the specified arguments is invalid.

", + "refs": { + } + }, + "InvalidChangeBatch": { + "base": "

This error contains a list of one or more error messages. Each error message indicates one error in the change batch. For more information, see Example InvalidChangeBatch Errors.

", + "refs": { + } + }, + "InvalidDomainName": { + "base": "

This error indicates that the specified domain name is not valid.

", + "refs": { + } + }, + "InvalidInput": { + "base": "

Some value specified in the request is invalid or the XML document is malformed.

", + "refs": { + } + }, + "InvalidVPCId": { + "base": "

The hosted zone you are trying to create for your VPC_ID does not belong to you. Route 53 returns this error when the VPC specified by VPCId does not belong to you.

", + "refs": { + } + }, + "IsPrivateZone": { + "base": null, + "refs": { + "HostedZoneConfig$PrivateZone": "

A value that indicates whether this is a private hosted zone. The value is returned in the response; do not specify it in the request.

" + } + }, + "LastVPCAssociation": { + "base": "

The VPC you are trying to disassociate from the hosted zone is the last the VPC that is associated with the hosted zone. Route 53 currently doesn't support disassociate the last VPC from the hosted zone.

", + "refs": { + } + }, + "LimitsExceeded": { + "base": "

The limits specified for a resource have been exceeded.

", + "refs": { + } + }, + "ListGeoLocationsRequest": { + "base": "

The input for a ListGeoLocations request.

", + "refs": { + } + }, + "ListGeoLocationsResponse": { + "base": "

A complex type that contains information about the geo locations that are returned by the request and information about the response.

", + "refs": { + } + }, + "ListHealthChecksRequest": { + "base": "

To retrieve a list of your health checks, send a GET request to the 2013-04-01/healthcheck resource. The response to this request includes a HealthChecks element with zero or more HealthCheck child elements. By default, the list of health checks is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the health check that the list begins with.

Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Route 53 returns only the first 100.", + "refs": { + } + }, + "ListHealthChecksResponse": { + "base": "

A complex type that contains the response for the request.

", + "refs": { + } + }, + "ListHostedZonesByNameRequest": { + "base": "

To retrieve a list of your hosted zones in lexicographic order, send a GET request to the 2013-04-01/hostedzonesbyname resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements lexicographically ordered by DNS name. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the DNSName and HostedZoneId parameters to control the hosted zone that the list begins with.

For more information about listing hosted zones, see Listing the Hosted Zones for an AWS Account in the Amazon Route 53 Developer Guide.

", + "refs": { + } + }, + "ListHostedZonesByNameResponse": { + "base": "

A complex type that contains the response for the request.

", + "refs": { + } + }, + "ListHostedZonesRequest": { + "base": "

To retrieve a list of your hosted zones, send a GET request to the 2013-04-01/hostedzone resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the hosted zone that the list begins with. For more information about listing hosted zones, see Listing the Hosted Zones for an AWS Account in the Amazon Route 53 Developer Guide.

Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Route 53 returns only the first 100.", + "refs": { + } + }, + "ListHostedZonesResponse": { + "base": "

A complex type that contains the response for the request.

", + "refs": { + } + }, + "ListResourceRecordSetsRequest": { + "base": "

The input for a ListResourceRecordSets request.

", + "refs": { + } + }, + "ListResourceRecordSetsResponse": { + "base": "

A complex type that contains information about the resource record sets that are returned by the request and information about the response.

", + "refs": { + } + }, + "ListReusableDelegationSetsRequest": { + "base": "

To retrieve a list of your reusable delegation sets, send a GET request to the 2013-04-01/delegationset resource. The response to this request includes a DelegationSets element with zero or more DelegationSet child elements. By default, the list of reusable delegation sets is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the delegation set that the list begins with.

Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Route 53 returns only the first 100.", + "refs": { + } + }, + "ListReusableDelegationSetsResponse": { + "base": "

A complex type that contains the response for the request.

", + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": "

A complex type containing information about a request for a list of the tags that are associated with an individual resource.

", + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": "

A complex type containing tags for the specified resource.

", + "refs": { + } + }, + "ListTagsForResourcesRequest": { + "base": "

A complex type containing information about a request for a list of the tags that are associated with up to 10 specified resources.

", + "refs": { + } + }, + "ListTagsForResourcesResponse": { + "base": "

A complex type containing tags for the specified resources.

", + "refs": { + } + }, + "NoSuchChange": { + "base": null, + "refs": { + } + }, + "NoSuchDelegationSet": { + "base": "

The specified delegation set does not exist.

", + "refs": { + } + }, + "NoSuchGeoLocation": { + "base": "

The geo location you are trying to get does not exist.

", + "refs": { + } + }, + "NoSuchHealthCheck": { + "base": "

The health check you are trying to get or delete does not exist.

", + "refs": { + } + }, + "NoSuchHostedZone": { + "base": null, + "refs": { + } + }, + "Nonce": { + "base": null, + "refs": { + "CreateHostedZoneRequest$CallerReference": "

A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a hosted zone. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

", + "CreateReusableDelegationSetRequest$CallerReference": "

A unique string that identifies the request and that allows failed CreateReusableDelegationSet requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a reusable delegation set. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

", + "DelegationSet$CallerReference": null, + "HostedZone$CallerReference": "

A unique string that identifies the request to create the hosted zone.

" + } + }, + "PageMarker": { + "base": null, + "refs": { + "ListHealthChecksRequest$Marker": "

If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

", + "ListHealthChecksResponse$Marker": "

If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

", + "ListHealthChecksResponse$NextMarker": "

Indicates where to continue listing health checks. If ListHealthChecksResponse$IsTruncated is true, make another request to ListHealthChecks and include the value of the NextMarker element in the Marker element to get the next page of results.

", + "ListHostedZonesRequest$Marker": "

If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

", + "ListHostedZonesResponse$Marker": "

If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

", + "ListHostedZonesResponse$NextMarker": "

Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated is true, make another request to ListHostedZones and include the value of the NextMarker element in the Marker element to get the next page of results.

", + "ListReusableDelegationSetsRequest$Marker": "

If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

", + "ListReusableDelegationSetsResponse$Marker": "

If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

", + "ListReusableDelegationSetsResponse$NextMarker": "

Indicates where to continue listing reusable delegation sets. If ListReusableDelegationSetsResponse$IsTruncated is true, make another request to ListReusableDelegationSets and include the value of the NextMarker element in the Marker element to get the next page of results.

" + } + }, + "PageMaxItems": { + "base": null, + "refs": { + "ListGeoLocationsRequest$MaxItems": "

The maximum number of geo locations you want in the response body.

", + "ListGeoLocationsResponse$MaxItems": "

The maximum number of records you requested. The maximum value of MaxItems is 100.

", + "ListHealthChecksRequest$MaxItems": "

Specify the maximum number of health checks to return per page of results.

", + "ListHealthChecksResponse$MaxItems": "

The maximum number of health checks to be included in the response body. If the number of health checks associated with this AWS account exceeds MaxItems, the value of ListHealthChecksResponse$IsTruncated in the response is true. Call ListHealthChecks again and specify the value of ListHealthChecksResponse$NextMarker in the ListHostedZonesRequest$Marker element to get the next page of results.

", + "ListHostedZonesByNameRequest$MaxItems": "

Specify the maximum number of hosted zones to return per page of results.

", + "ListHostedZonesByNameResponse$MaxItems": "

The maximum number of hosted zones to be included in the response body. If the number of hosted zones associated with this AWS account exceeds MaxItems, the value of ListHostedZonesByNameResponse$IsTruncated in the response is true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively to get the next page of results.

", + "ListHostedZonesRequest$MaxItems": "

Specify the maximum number of hosted zones to return per page of results.

", + "ListHostedZonesResponse$MaxItems": "

The maximum number of hosted zones to be included in the response body. If the number of hosted zones associated with this AWS account exceeds MaxItems, the value of ListHostedZonesResponse$IsTruncated in the response is true. Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker in the ListHostedZonesRequest$Marker element to get the next page of results.

", + "ListResourceRecordSetsRequest$MaxItems": "

The maximum number of records you want in the response body.

", + "ListResourceRecordSetsResponse$MaxItems": "

The maximum number of records you requested. The maximum value of MaxItems is 100.

", + "ListReusableDelegationSetsRequest$MaxItems": "

Specify the maximum number of reusable delegation sets to return per page of results.

", + "ListReusableDelegationSetsResponse$MaxItems": "

The maximum number of reusable delegation sets to be included in the response body. If the number of reusable delegation sets associated with this AWS account exceeds MaxItems, the value of ListReusablDelegationSetsResponse$IsTruncated in the response is true. Call ListReusableDelegationSets again and specify the value of ListReusableDelegationSetsResponse$NextMarker in the ListReusableDelegationSetsRequest$Marker element to get the next page of results.

" + } + }, + "PageTruncated": { + "base": null, + "refs": { + "ListGeoLocationsResponse$IsTruncated": "

A flag that indicates whether there are more geo locations to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the values included in the ListGeoLocationsResponse$NextContinentCode, ListGeoLocationsResponse$NextCountryCode and ListGeoLocationsResponse$NextSubdivisionCode elements.

Valid Values: true | false

", + "ListHealthChecksResponse$IsTruncated": "

A flag indicating whether there are more health checks to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the Marker element.

Valid Values: true | false

", + "ListHostedZonesByNameResponse$IsTruncated": "

A flag indicating whether there are more hosted zones to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the NextDNSName and NextHostedZoneId elements.

Valid Values: true | false

", + "ListHostedZonesResponse$IsTruncated": "

A flag indicating whether there are more hosted zones to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the Marker element.

Valid Values: true | false

", + "ListResourceRecordSetsResponse$IsTruncated": "

A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

Valid Values: true | false

", + "ListReusableDelegationSetsResponse$IsTruncated": "

A flag indicating whether there are more reusable delegation sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the Marker element.

Valid Values: true | false

" + } + }, + "Port": { + "base": null, + "refs": { + "HealthCheckConfig$Port": "

Port on which connection will be opened to the instance to health check. For HTTP and HTTP_STR_MATCH this defaults to 80 if the port is not specified. For HTTPS and HTTPS_STR_MATCH this defaults to 443 if the port is not specified.

", + "UpdateHealthCheckRequest$Port": "

The port on which you want Route 53 to open a connection to perform health checks.

Specify this value only if you want to change it.

" + } + }, + "PriorRequestNotComplete": { + "base": "

The request was rejected because Route 53 was still processing a prior request.

", + "refs": { + } + }, + "PublicZoneVPCAssociation": { + "base": "

The hosted zone you are trying to associate VPC with doesn't have any VPC association. Route 53 currently doesn't support associate a VPC with a public hosted zone.

", + "refs": { + } + }, + "RData": { + "base": null, + "refs": { + "ResourceRecord$Value": "

The value of the Value element for the current resource record set.

" + } + }, + "RRType": { + "base": null, + "refs": { + "ListResourceRecordSetsRequest$StartRecordType": "

The DNS type at which to begin the listing of resource record sets.

Valid values: A | AAAA | CNAME | MX | NS | PTR | SOA | SPF | SRV | TXT

Values for Weighted Resource Record Sets: A | AAAA | CNAME | TXT

Values for Regional Resource Record Sets: A | AAAA | CNAME | TXT

Values for Alias Resource Record Sets: A | AAAA

Constraint: Specifying type without specifying name returns an InvalidInput error.

", + "ListResourceRecordSetsResponse$NextRecordType": "

If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

", + "ResourceRecordSet$Type": "

The type of the current resource record set.

" + } + }, + "RequestInterval": { + "base": null, + "refs": { + "HealthCheckConfig$RequestInterval": "

The number of seconds between the time that Route 53 gets a response from your endpoint and the time that it sends the next health-check request.

Each Route 53 health checker makes requests at this interval. Valid values are 10 and 30. The default value is 30.

" + } + }, + "ResourceDescription": { + "base": null, + "refs": { + "ChangeBatch$Comment": "

Optional: Any comments you want to include about a change batch request.

", + "ChangeInfo$Comment": "

A complex type that describes change information about changes made to your hosted zone.

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

", + "HostedZoneConfig$Comment": "

An optional comment about your hosted zone. If you don't want to specify a comment, you can omit the HostedZoneConfig and Comment elements from the XML document.

", + "UpdateHostedZoneCommentRequest$Comment": "

A comment about your hosted zone.

" + } + }, + "ResourceId": { + "base": null, + "refs": { + "AliasTarget$HostedZoneId": "

Alias resource record sets only: The value of the hosted zone ID for the AWS resource.

For more information and an example, see Creating Alias Resource Record Sets in the Amazon Route 53 Developer Guide

.", + "AssociateVPCWithHostedZoneRequest$HostedZoneId": "

The ID of the hosted zone you want to associate your VPC with.

Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.

", + "ChangeInfo$Id": "

The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.

", + "ChangeResourceRecordSetsRequest$HostedZoneId": "

The ID of the hosted zone that contains the resource record sets that you want to change.

", + "CreateHostedZoneRequest$DelegationSetId": "

The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.

", + "CreateReusableDelegationSetRequest$HostedZoneId": "

The ID of the hosted zone whose delegation set you want to mark as reusable. It is an optional parameter.

", + "DelegationSet$Id": null, + "DeleteHostedZoneRequest$Id": "

The ID of the hosted zone you want to delete.

", + "DeleteReusableDelegationSetRequest$Id": "

The ID of the reusable delegation set you want to delete.

", + "DisassociateVPCFromHostedZoneRequest$HostedZoneId": "

The ID of the hosted zone you want to disassociate your VPC from.

Note that you cannot disassociate the last VPC from a hosted zone.

", + "GetChangeRequest$Id": "

The ID of the change batch request. The value that you specify here is the value that ChangeResourceRecordSets returned in the Id element when you submitted the request.

", + "GetHostedZoneRequest$Id": "

The ID of the hosted zone for which you want to get a list of the name servers in the delegation set.

", + "GetReusableDelegationSetRequest$Id": "

The ID of the reusable delegation set for which you want to get a list of the name server.

", + "HostedZone$Id": "

The ID of the specified hosted zone.

", + "ListHostedZonesByNameRequest$HostedZoneId": "

If the request returned more than one page of results, submit another request and specify the value of NextDNSName and NextHostedZoneId from the last response in the DNSName and HostedZoneId parameters to get the next page of results.

", + "ListHostedZonesByNameResponse$HostedZoneId": "

The HostedZoneId value sent in the request.

", + "ListHostedZonesByNameResponse$NextHostedZoneId": "

If ListHostedZonesByNameResponse$IsTruncated is true, there are more hosted zones associated with the current AWS account. To get the next page of results, make another request to ListHostedZonesByName. Specify the value of ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

", + "ListHostedZonesRequest$DelegationSetId": null, + "ListResourceRecordSetsRequest$HostedZoneId": "

The ID of the hosted zone that contains the resource record sets that you want to get.

", + "UpdateHostedZoneCommentRequest$Id": "

The ID of the hosted zone you want to update.

" + } + }, + "ResourcePath": { + "base": null, + "refs": { + "HealthCheckConfig$ResourcePath": "

Path to ping on the instance to check the health. Required for HTTP, HTTPS, HTTP_STR_MATCH, and HTTPS_STR_MATCH health checks, HTTP request is issued to the instance on the given port and path.

", + "UpdateHealthCheckRequest$ResourcePath": "

The path that you want Amazon Route 53 to request when performing health checks. The path can be any value for which your endpoint will return an HTTP status code of 2xx or 3xx when the endpoint is healthy, for example the file /docs/route53-health-check.html.

Specify this value only if you want to change it.

" + } + }, + "ResourceRecord": { + "base": "

A complex type that contains the value of the Value element for the current resource record set.

", + "refs": { + "ResourceRecords$member": null + } + }, + "ResourceRecordSet": { + "base": "

A complex type that contains information about the current resource record set.

", + "refs": { + "Change$ResourceRecordSet": "

Information about the resource record set to create or delete.

", + "ResourceRecordSets$member": null + } + }, + "ResourceRecordSetFailover": { + "base": null, + "refs": { + "ResourceRecordSet$Failover": "

Failover resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that indicates whether the current resource record set is a primary or secondary resource record set. A failover set may contain at most one resource record set marked as primary and one resource record set marked as secondary. A resource record set marked as primary will be returned if any of the following are true: (1) an associated health check is passing, (2) if the resource record set is an alias with the evaluate target health and at least one target resource record set is healthy, (3) both the primary and secondary resource record set are failing health checks or (4) there is no secondary resource record set. A secondary resource record set will be returned if: (1) the primary is failing a health check and either the secondary is passing a health check or has no associated health check, or (2) there is no primary resource record set.

Valid values: PRIMARY | SECONDARY

" + } + }, + "ResourceRecordSetIdentifier": { + "base": null, + "refs": { + "ListResourceRecordSetsRequest$StartRecordIdentifier": "

Weighted resource record sets only: If results were truncated for a given DNS name and type, specify the value of ListResourceRecordSetsResponse$NextRecordIdentifier from the previous response to get the next resource record set that has the current DNS name and type.

", + "ListResourceRecordSetsResponse$NextRecordIdentifier": "

Weighted resource record sets only: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.

", + "ResourceRecordSet$SetIdentifier": "

Weighted, Latency, Geo, and Failover resource record sets only: An identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type.

" + } + }, + "ResourceRecordSetRegion": { + "base": null, + "refs": { + "ResourceRecordSet$Region": "

Latency-based resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that specifies the AWS region for the current resource record set.

" + } + }, + "ResourceRecordSetWeight": { + "base": null, + "refs": { + "ResourceRecordSet$Weight": "

Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines what portion of traffic for the current resource record set is routed to the associated location.

" + } + }, + "ResourceRecordSets": { + "base": null, + "refs": { + "ListResourceRecordSetsResponse$ResourceRecordSets": "

A complex type that contains information about the resource record sets that are returned by the request.

" + } + }, + "ResourceRecords": { + "base": null, + "refs": { + "ResourceRecordSet$ResourceRecords": "

A complex type that contains the resource records for the current resource record set.

" + } + }, + "ResourceTagSet": { + "base": "

A complex type containing a resource and its associated tags.

", + "refs": { + "ListTagsForResourceResponse$ResourceTagSet": "

A ResourceTagSet containing tags associated with the specified resource.

", + "ResourceTagSetList$member": null + } + }, + "ResourceTagSetList": { + "base": null, + "refs": { + "ListTagsForResourcesResponse$ResourceTagSets": "

A list of ResourceTagSets containing tags associated with the specified resources.

" + } + }, + "ResourceURI": { + "base": null, + "refs": { + "CreateHealthCheckResponse$Location": "

The unique URL representing the new health check.

", + "CreateHostedZoneResponse$Location": "

The unique URL representing the new hosted zone.

", + "CreateReusableDelegationSetResponse$Location": "

The unique URL representing the new reusbale delegation set.

" + } + }, + "SearchString": { + "base": null, + "refs": { + "HealthCheckConfig$SearchString": "

A string to search for in the body of a health check response. Required for HTTP_STR_MATCH and HTTPS_STR_MATCH health checks.

", + "UpdateHealthCheckRequest$SearchString": "

If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that you want Route 53 to search for in the response body from the specified resource. If the string appears in the response body, Route 53 considers the resource healthy.

Specify this value only if you want to change it.

" + } + }, + "Status": { + "base": null, + "refs": { + "StatusReport$Status": "

The observed health check status.

" + } + }, + "StatusReport": { + "base": "

A complex type that contains information about the health check status for the current observation.

", + "refs": { + "HealthCheckObservation$StatusReport": "

A complex type that contains information about the health check status for the current observation.

" + } + }, + "TTL": { + "base": null, + "refs": { + "ResourceRecordSet$TTL": "

The cache time to live for the current resource record set.

" + } + }, + "Tag": { + "base": "

A single tag containing a key and value.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "

The key for a Tag.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "ChangeTagsForResourceRequest$RemoveTagKeys": "

A list of Tag keys that you want to remove from the specified resource.

" + } + }, + "TagList": { + "base": null, + "refs": { + "ChangeTagsForResourceRequest$AddTags": "

A complex type that contains a list of Tag elements. Each Tag element identifies a tag that you want to add or update for the specified resource.

", + "ResourceTagSet$Tags": "

The tags associated with the specified resource.

" + } + }, + "TagResourceId": { + "base": null, + "refs": { + "ChangeTagsForResourceRequest$ResourceId": "

The ID of the resource for which you want to add, change, or delete tags.

", + "ListTagsForResourceRequest$ResourceId": "

The ID of the resource for which you want to retrieve tags.

", + "ResourceTagSet$ResourceId": "

The ID for the specified resource.

", + "TagResourceIdList$member": null + } + }, + "TagResourceIdList": { + "base": null, + "refs": { + "ListTagsForResourcesRequest$ResourceIds": "

A complex type that contains the ResourceId element for each resource for which you want to get a list of tags.

" + } + }, + "TagResourceType": { + "base": null, + "refs": { + "ChangeTagsForResourceRequest$ResourceType": "

The type of the resource.

- The resource type for health checks is healthcheck.

- The resource type for hosted zones is hostedzone.

", + "ListTagsForResourceRequest$ResourceType": "

The type of the resource.

- The resource type for health checks is healthcheck.

- The resource type for hosted zones is hostedzone.

", + "ListTagsForResourcesRequest$ResourceType": "

The type of the resources.

- The resource type for health checks is healthcheck.

- The resource type for hosted zones is hostedzone.

", + "ResourceTagSet$ResourceType": "

The type of the resource.

- The resource type for health checks is healthcheck.

- The resource type for hosted zones is hostedzone.

" + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

The value for a Tag.

" + } + }, + "ThrottlingException": { + "base": null, + "refs": { + } + }, + "TimeStamp": { + "base": null, + "refs": { + "ChangeInfo$SubmittedAt": "

The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.

", + "StatusReport$CheckedTime": "

The date and time the health check status was observed, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.

" + } + }, + "TooManyHealthChecks": { + "base": null, + "refs": { + } + }, + "TooManyHostedZones": { + "base": "

This error indicates that you've reached the maximum number of hosted zones that can be created for the current AWS account. You can request an increase to the limit on the Contact Us page.

", + "refs": { + } + }, + "UpdateHealthCheckRequest": { + "base": "

>A complex type that contains information about the request to update a health check.

", + "refs": { + } + }, + "UpdateHealthCheckResponse": { + "base": null, + "refs": { + } + }, + "UpdateHostedZoneCommentRequest": { + "base": "

A complex type that contains information about the request to update a hosted zone comment.

", + "refs": { + } + }, + "UpdateHostedZoneCommentResponse": { + "base": "

A complex type containing information about the specified hosted zone after the update.

", + "refs": { + } + }, + "VPC": { + "base": null, + "refs": { + "AssociateVPCWithHostedZoneRequest$VPC": "

The VPC that you want your hosted zone to be associated with.

", + "CreateHostedZoneRequest$VPC": "

The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.

", + "CreateHostedZoneResponse$VPC": null, + "DisassociateVPCFromHostedZoneRequest$VPC": "

The VPC that you want your hosted zone to be disassociated from.

", + "VPCs$member": null + } + }, + "VPCAssociationNotFound": { + "base": "

The VPC you specified is not currently associated with the hosted zone.

", + "refs": { + } + }, + "VPCId": { + "base": "

A VPC ID

", + "refs": { + "VPC$VPCId": null + } + }, + "VPCRegion": { + "base": null, + "refs": { + "VPC$VPCRegion": null + } + }, + "VPCs": { + "base": "

A list of VPCs

", + "refs": { + "GetHostedZoneResponse$VPCs": "

A complex type that contains information about VPCs associated with the specified hosted zone.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/route53/2013-04-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/route53/2013-04-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/route53domains/2014-05-15/api-2.json similarity index 75% rename from vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/route53domains/2014-05-15/api-2.json index dc41413ee..40359319f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/route53domains/2014-05-15/api-2.json @@ -4,10 +4,10 @@ "apiVersion":"2014-05-15", "endpointPrefix":"route53domains", "jsonVersion":"1.1", - "protocol":"json", "serviceFullName":"Amazon Route 53 Domains", "signatureVersion":"v4", - "targetPrefix":"Route53Domains_v20140515" + "targetPrefix":"Route53Domains_v20140515", + "protocol":"json" }, "operations":{ "CheckDomainAvailability":{ @@ -19,8 +19,16 @@ "input":{"shape":"CheckDomainAvailabilityRequest"}, "output":{"shape":"CheckDomainAvailabilityResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "DeleteTagsForDomain":{ @@ -32,9 +40,21 @@ "input":{"shape":"DeleteTagsForDomainRequest"}, "output":{"shape":"DeleteTagsForDomainResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"OperationLimitExceeded"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"OperationLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "DisableDomainAutoRenew":{ @@ -46,8 +66,16 @@ "input":{"shape":"DisableDomainAutoRenewRequest"}, "output":{"shape":"DisableDomainAutoRenewResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "DisableDomainTransferLock":{ @@ -59,11 +87,31 @@ "input":{"shape":"DisableDomainTransferLockRequest"}, "output":{"shape":"DisableDomainTransferLockResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"DuplicateRequest"}, - {"shape":"TLDRulesViolation"}, - {"shape":"OperationLimitExceeded"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DuplicateRequest", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TLDRulesViolation", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"OperationLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "EnableDomainAutoRenew":{ @@ -75,9 +123,16 @@ "input":{"shape":"EnableDomainAutoRenewRequest"}, "output":{"shape":"EnableDomainAutoRenewResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"UnsupportedTLD"}, - {"shape":"TLDRulesViolation"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "EnableDomainTransferLock":{ @@ -89,25 +144,31 @@ "input":{"shape":"EnableDomainTransferLockRequest"}, "output":{"shape":"EnableDomainTransferLockResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"DuplicateRequest"}, - {"shape":"TLDRulesViolation"}, - {"shape":"OperationLimitExceeded"}, - {"shape":"UnsupportedTLD"} - ] - }, - "GetContactReachabilityStatus":{ - "name":"GetContactReachabilityStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetContactReachabilityStatusRequest"}, - "output":{"shape":"GetContactReachabilityStatusResponse"}, - "errors":[ - {"shape":"InvalidInput"}, - {"shape":"OperationLimitExceeded"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DuplicateRequest", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TLDRulesViolation", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"OperationLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "GetDomainDetail":{ @@ -119,8 +180,16 @@ "input":{"shape":"GetDomainDetailRequest"}, "output":{"shape":"GetDomainDetailResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "GetOperationDetail":{ @@ -132,7 +201,11 @@ "input":{"shape":"GetOperationDetailRequest"}, "output":{"shape":"GetOperationDetailResponse"}, "errors":[ - {"shape":"InvalidInput"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ListDomains":{ @@ -144,7 +217,11 @@ "input":{"shape":"ListDomainsRequest"}, "output":{"shape":"ListDomainsResponse"}, "errors":[ - {"shape":"InvalidInput"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ListOperations":{ @@ -156,7 +233,11 @@ "input":{"shape":"ListOperationsRequest"}, "output":{"shape":"ListOperationsResponse"}, "errors":[ - {"shape":"InvalidInput"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "ListTagsForDomain":{ @@ -168,9 +249,21 @@ "input":{"shape":"ListTagsForDomainRequest"}, "output":{"shape":"ListTagsForDomainResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"OperationLimitExceeded"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"OperationLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "RegisterDomain":{ @@ -182,26 +275,36 @@ "input":{"shape":"RegisterDomainRequest"}, "output":{"shape":"RegisterDomainResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"UnsupportedTLD"}, - {"shape":"DuplicateRequest"}, - {"shape":"TLDRulesViolation"}, - {"shape":"DomainLimitExceeded"}, - {"shape":"OperationLimitExceeded"} - ] - }, - "ResendContactReachabilityEmail":{ - "name":"ResendContactReachabilityEmail", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResendContactReachabilityEmailRequest"}, - "output":{"shape":"ResendContactReachabilityEmailResponse"}, - "errors":[ - {"shape":"InvalidInput"}, - {"shape":"OperationLimitExceeded"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DuplicateRequest", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TLDRulesViolation", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DomainLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"OperationLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "RetrieveDomainAuthCode":{ @@ -213,8 +316,16 @@ "input":{"shape":"RetrieveDomainAuthCodeRequest"}, "output":{"shape":"RetrieveDomainAuthCodeResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "TransferDomain":{ @@ -226,12 +337,36 @@ "input":{"shape":"TransferDomainRequest"}, "output":{"shape":"TransferDomainResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"UnsupportedTLD"}, - {"shape":"DuplicateRequest"}, - {"shape":"TLDRulesViolation"}, - {"shape":"DomainLimitExceeded"}, - {"shape":"OperationLimitExceeded"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DuplicateRequest", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TLDRulesViolation", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DomainLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"OperationLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "UpdateDomainContact":{ @@ -243,11 +378,31 @@ "input":{"shape":"UpdateDomainContactRequest"}, "output":{"shape":"UpdateDomainContactResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"DuplicateRequest"}, - {"shape":"TLDRulesViolation"}, - {"shape":"OperationLimitExceeded"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DuplicateRequest", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TLDRulesViolation", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"OperationLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "UpdateDomainContactPrivacy":{ @@ -259,11 +414,31 @@ "input":{"shape":"UpdateDomainContactPrivacyRequest"}, "output":{"shape":"UpdateDomainContactPrivacyResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"DuplicateRequest"}, - {"shape":"TLDRulesViolation"}, - {"shape":"OperationLimitExceeded"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DuplicateRequest", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TLDRulesViolation", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"OperationLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "UpdateDomainNameservers":{ @@ -275,11 +450,31 @@ "input":{"shape":"UpdateDomainNameserversRequest"}, "output":{"shape":"UpdateDomainNameserversResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"DuplicateRequest"}, - {"shape":"TLDRulesViolation"}, - {"shape":"OperationLimitExceeded"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"DuplicateRequest", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"TLDRulesViolation", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"OperationLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] }, "UpdateTagsForDomain":{ @@ -291,9 +486,21 @@ "input":{"shape":"UpdateTagsForDomainRequest"}, "output":{"shape":"UpdateTagsForDomainResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"OperationLimitExceeded"}, - {"shape":"UnsupportedTLD"} + { + "shape":"InvalidInput", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"OperationLimitExceeded", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"UnsupportedTLD", + "error":{"httpStatusCode":400}, + "exception":true + } ] } }, @@ -660,6 +867,7 @@ "members":{ "message":{"shape":"ErrorMessage"} }, + "error":{"httpStatusCode":400}, "exception":true }, "DomainName":{ @@ -691,12 +899,13 @@ "members":{ "message":{"shape":"ErrorMessage"} }, + "error":{"httpStatusCode":400}, "exception":true }, "DurationInYears":{ "type":"integer", - "max":10, - "min":1 + "min":1, + "max":10 }, "Email":{ "type":"string", @@ -757,7 +966,6 @@ "AU_ID_NUMBER", "AU_ID_TYPE", "CA_LEGAL_TYPE", - "CA_BUSINESS_ENTITY_TYPE", "ES_IDENTIFICATION", "ES_IDENTIFICATION_TYPE", "ES_LEGAL_FORM", @@ -775,19 +983,6 @@ "max":2048 }, "FIAuthKey":{"type":"string"}, - "GetContactReachabilityStatusRequest":{ - "type":"structure", - "members":{ - "domainName":{"shape":"DomainName"} - } - }, - "GetContactReachabilityStatusResponse":{ - "type":"structure", - "members":{ - "domainName":{"shape":"DomainName"}, - "status":{"shape":"ReachabilityStatus"} - } - }, "GetDomainDetailRequest":{ "type":"structure", "required":["DomainName"], @@ -864,6 +1059,7 @@ "members":{ "message":{"shape":"ErrorMessage"} }, + "error":{"httpStatusCode":400}, "exception":true }, "LangCode":{ @@ -935,6 +1131,7 @@ "members":{ "message":{"shape":"ErrorMessage"} }, + "error":{"httpStatusCode":400}, "exception":true }, "OperationStatus":{ @@ -986,14 +1183,6 @@ "type":"integer", "max":100 }, - "ReachabilityStatus":{ - "type":"string", - "enum":[ - "PENDING", - "DONE", - "EXPIRED" - ] - }, "RegisterDomainRequest":{ "type":"structure", "required":[ @@ -1028,20 +1217,6 @@ "RegistrarWhoIsServer":{"type":"string"}, "RegistryDomainId":{"type":"string"}, "Reseller":{"type":"string"}, - "ResendContactReachabilityEmailRequest":{ - "type":"structure", - "members":{ - "domainName":{"shape":"DomainName"} - } - }, - "ResendContactReachabilityEmailResponse":{ - "type":"structure", - "members":{ - "domainName":{"shape":"DomainName"}, - "emailAddress":{"shape":"Email"}, - "isAlreadyVerified":{"shape":"Boolean"} - } - }, "RetrieveDomainAuthCodeRequest":{ "type":"structure", "required":["DomainName"], @@ -1065,6 +1240,7 @@ "members":{ "message":{"shape":"ErrorMessage"} }, + "error":{"httpStatusCode":400}, "exception":true }, "Tag":{ @@ -1121,6 +1297,7 @@ "members":{ "message":{"shape":"ErrorMessage"} }, + "error":{"httpStatusCode":400}, "exception":true }, "UpdateDomainContactPrivacyRequest":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/route53domains/2014-05-15/docs-2.json similarity index 87% rename from vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/route53domains/2014-05-15/docs-2.json index 2d5206b2e..17f993777 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/route53domains/2014-05-15/docs-2.json @@ -1,21 +1,18 @@ { "version": "2.0", - "service": null, "operations": { - "CheckDomainAvailability": "

This operation checks the availability of one domain name. Note that if the availability status of a domain is pending, you must submit another request to determine the availability of the domain name.

", + "CheckDomainAvailability": "

This operation checks the availability of one domain name. You can access this API without authenticating. Note that if the availability status of a domain is pending, you must submit another request to determine the availability of the domain name.

", "DeleteTagsForDomain": "

This operation deletes the specified tags for a domain.

All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.

", "DisableDomainAutoRenew": "

This operation disables automatic renewal of domain registration for the specified domain.

Caution! Amazon Route 53 doesn't have a manual renewal process, so if you disable automatic renewal, registration for the domain will not be renewed when the expiration date passes, and you will lose control of the domain name.", "DisableDomainTransferLock": "

This operation removes the transfer lock on the domain (specifically the clientTransferProhibited status) to allow domain transfers. We recommend you refrain from performing this action unless you intend to transfer the domain to a different registrar. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.

", "EnableDomainAutoRenew": "

This operation configures Amazon Route 53 to automatically renew the specified domain before the domain registration expires. The cost of renewing your domain registration is billed to your AWS account.

The period during which you can renew a domain name varies by TLD. For a list of TLDs and their renewal policies, see \"Renewal, restoration, and deletion times\" on the website for our registrar partner, Gandi. Route 53 requires that you renew before the end of the renewal period that is listed on the Gandi website so we can complete processing before the deadline.

", "EnableDomainTransferLock": "

This operation sets the transfer lock on the domain (specifically the clientTransferProhibited status) to prevent domain transfers. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.

", - "GetContactReachabilityStatus": "

For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation returns information about whether the registrant contact has responded.

If you want us to resend the email, use the ResendContactReachabilityEmail operation.

", "GetDomainDetail": "

This operation returns detailed information about the domain. The domain's contact information is also returned as part of the output.

", "GetOperationDetail": "

This operation returns the current status of an operation that is not completed.

", "ListDomains": "

This operation returns all the domain names registered with Amazon Route 53 for the current AWS account.

", "ListOperations": "

This operation returns the operation IDs of operations that are not yet complete.

", "ListTagsForDomain": "

This operation returns all of the tags that are associated with the specified domain.

All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.

", "RegisterDomain": "

This operation registers a domain. Domains are registered by the AWS registrar partner, Gandi. For some top-level domains (TLDs), this operation requires extra parameters.

When you register a domain, Amazon Route 53 does the following:

  • Creates a Amazon Route 53 hosted zone that has the same name as the domain. Amazon Route 53 assigns four name servers to your hosted zone and automatically updates your domain registration with the names of these name servers.
  • Enables autorenew, so your domain registration will renew automatically each year. We'll notify you in advance of the renewal date so you can choose whether to renew the registration.
  • Optionally enables privacy protection, so WHOIS queries return contact information for our registrar partner, Gandi, instead of the information you entered for registrant, admin, and tech contacts.
  • If registration is successful, returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant is notified by email.
  • Charges your AWS account an amount based on the top-level domain. For more information, see Amazon Route 53 Pricing.
", - "ResendContactReachabilityEmail": "

For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation resends the confirmation email to the current email address for the registrant contact.

", "RetrieveDomainAuthCode": "

This operation returns the AuthCode for the domain. To transfer a domain to another registrar, you provide this value to the new registrar.

", "TransferDomain": "

This operation transfers a domain from another registrar to Amazon Route 53. When the transfer is complete, the domain is registered with the AWS registrar partner, Gandi.

For transfer requirements, a detailed procedure, and information about viewing the status of a domain transfer, see Transferring Registration for a Domain to Amazon Route 53 in the Amazon Route 53 Developer Guide.

If the registrar for your domain is also the DNS service provider for the domain, we highly recommend that you consider transferring your DNS service to Amazon Route 53 or to another DNS service provider before you transfer your registration. Some registrars provide free DNS service when you purchase a domain registration. When you transfer the registration, the previous registrar will not renew your domain registration and could end your DNS service at any time.

Caution! If the registrar for your domain is also the DNS service provider for the domain and you don't transfer DNS service to another provider, your website, email, and the web applications associated with the domain might become unavailable.

If the transfer is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the transfer doesn't complete successfully, the domain registrant will be notified by email.

", "UpdateDomainContact": "

This operation updates the contact information for a particular domain. Information for at least one contact (registrant, administrator, or technical) must be supplied for update.

If the update is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.

", @@ -23,12 +20,13 @@ "UpdateDomainNameservers": "

This operation replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain.

If successful, this operation returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.

", "UpdateTagsForDomain": "

This operation adds or updates tags for a specified domain.

All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.

" }, + "service": null, "shapes": { "AddressLine": { "base": null, "refs": { - "ContactDetail$AddressLine1": "

First line of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

", - "ContactDetail$AddressLine2": "

Second line of contact's address, if any.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

" + "ContactDetail$AddressLine1": "

First line of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

", + "ContactDetail$AddressLine2": "

Second line of contact's address, if any.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

" } }, "Boolean": { @@ -44,7 +42,6 @@ "RegisterDomainRequest$PrivacyProtectAdminContact": "

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.

Type: Boolean

Default: true

Valid values: true | false

Required: No

", "RegisterDomainRequest$PrivacyProtectRegistrantContact": "

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.

Type: Boolean

Default: true

Valid values: true | false

Required: No

", "RegisterDomainRequest$PrivacyProtectTechContact": "

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.

Type: Boolean

Default: true

Valid values: true | false

Required: No

", - "ResendContactReachabilityEmailResponse$isAlreadyVerified": "

True if the email address for the registrant contact has already been verified, and false otherwise. If the email address has already been verified, we don't send another confirmation email.

", "TransferDomainRequest$AutoRenew": "

Indicates whether the domain will be automatically renewed (true) or not (false). Autorenewal only takes effect after the account is charged.

Type: Boolean

Valid values: true | false

Default: true

Required: No

", "TransferDomainRequest$PrivacyProtectAdminContact": "

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.

Type: Boolean

Default: true

Valid values: true | false

Required: No

", "TransferDomainRequest$PrivacyProtectRegistrantContact": "

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS (\"who is\") queries will return contact information for our registrar partner, Gandi, instead of the contact information that you enter.

Type: Boolean

Default: true

Valid values: true | false

Required: No

", @@ -67,7 +64,7 @@ "City": { "base": null, "refs": { - "ContactDetail$City": "

The city of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

" + "ContactDetail$City": "

The city of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

" } }, "ContactDetail": { @@ -98,7 +95,7 @@ "ContactNumber": { "base": null, "refs": { - "ContactDetail$PhoneNumber": "

The phone number of the contact.

Type: String

Default: None

Constraints: Phone number must be specified in the format \"+[country dialing code].[number including any area code>]\". For example, a US phone number might appear as \"+1.1234567890\".

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

", + "ContactDetail$PhoneNumber": "

The phone number of the contact.

Type: String

Default: None

Constraints: Phone number must be specified in the format \"+[country dialing code].[number including any area code>]\". For example, a US phone number might appear as \"+1.1234567890\".

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

", "ContactDetail$Fax": "

Fax number of the contact.

Type: String

Default: None

Constraints: Phone number must be specified in the format \"+[country dialing code].[number including any area code]\". For example, a US phone number might appear as \"+1.1234567890\".

Parents: RegistrantContact, AdminContact, TechContact

Required: No

", "GetDomainDetailResponse$AbuseContactPhone": "

Phone number for reporting abuse.

Type: String

" } @@ -106,13 +103,13 @@ "ContactType": { "base": null, "refs": { - "ContactDetail$ContactType": "

Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

" + "ContactDetail$ContactType": "

Indicates whether the contact is a person, company, association, or public organization. If you choose an option other than PERSON, you must enter an organization name, and you can't enable privacy protection for the contact.

Type: String

Default: None

Constraints: Maximum 255 characters.

Valid values: PERSON | COMPANY | ASSOCIATION | PUBLIC_BODY

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

" } }, "CountryCode": { "base": null, "refs": { - "ContactDetail$CountryCode": "

Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

" + "ContactDetail$CountryCode": "

Code for the country of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

" } }, "DNSSec": { @@ -161,7 +158,7 @@ "DomainAvailability": { "base": null, "refs": { - "CheckDomainAvailabilityResponse$Availability": "

Whether the domain name is available for registering.

You can only register domains designated as AVAILABLE.

Type: String

Valid values:

  • AVAILABLE – The domain name is available.
  • AVAILABLE_RESERVED – The domain name is reserved under specific conditions.
  • AVAILABLE_PREORDER – The domain name is available and can be preordered.
  • UNAVAILABLE – The domain name is not available.
  • UNAVAILABLE_PREMIUM – The domain name is not available.
  • UNAVAILABLE_RESTRICTED – The domain name is forbidden.
  • RESERVED – The domain name has been reserved for another person or organization.
  • DONT_KNOW – The TLD registry didn't reply with a definitive answer about whether the domain name is available. Amazon Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.
" + "CheckDomainAvailabilityResponse$Availability": "

Whether the domain name is available for registering.

You can only register domains designated as AVAILABLE.

Type: String

Valid values:

  • AVAILABLE – The domain name is available.
  • AVAILABLE_RESERVED – The domain name is reserved under specific conditions.
  • AVAILABLE_PREORDER – The domain name is available and can be preordered.
  • UNAVAILABLE – The domain name is not available.
  • UNAVAILABLE_PREMIUM – The domain name is not available.
  • UNAVAILABLE_RESTRICTED – The domain name is forbidden.
  • RESERVED – The domain name has been reserved for another person or organization.
  • DONT_KNOW – The TLD registry didn't reply with a definitive answer about whether the domain name is available. Amazon Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.
" } }, "DomainLimitExceeded": { @@ -173,27 +170,23 @@ "base": null, "refs": { "CheckDomainAvailabilityRequest$DomainName": "

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

Required: Yes

", - "DeleteTagsForDomainRequest$DomainName": "

The domain for which you want to delete one or more tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're surrounded by letters, numbers, or other hyphens. You can't specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

", + "DeleteTagsForDomainRequest$DomainName": "

The domain for which you want to delete one or more tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when theyaposre surrounded by letters, numbers, or other hyphens. You canapost specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

", "DisableDomainAutoRenewRequest$DomainName": null, "DisableDomainTransferLockRequest$DomainName": "

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

Required: Yes

", "DomainSummary$DomainName": "

The name of a domain.

Type: String

", "EnableDomainAutoRenewRequest$DomainName": null, "EnableDomainTransferLockRequest$DomainName": "

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

Required: Yes

", - "GetContactReachabilityStatusRequest$domainName": "

The name of the domain for which you want to know whether the registrant contact has confirmed that the email address is valid.

Type: String

Default: None

Required: Yes

", - "GetContactReachabilityStatusResponse$domainName": "

The domain name for which you requested the reachability status.

", "GetDomainDetailRequest$DomainName": "

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

Required: Yes

", "GetDomainDetailResponse$DomainName": "

The name of a domain.

Type: String

", "GetOperationDetailResponse$DomainName": "

The name of a domain.

Type: String

", "ListTagsForDomainRequest$DomainName": "

The domain for which you want to get a list of tags.

", "RegisterDomainRequest$DomainName": "

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

Required: Yes

", - "ResendContactReachabilityEmailRequest$domainName": "

The name of the domain for which you want Amazon Route 53 to resend a confirmation email to the registrant contact.

Type: String

Default: None

Required: Yes

", - "ResendContactReachabilityEmailResponse$domainName": "

The domain name for which you requested a confirmation email.

", "RetrieveDomainAuthCodeRequest$DomainName": "

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

Required: Yes

", "TransferDomainRequest$DomainName": "

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

Required: Yes

", "UpdateDomainContactPrivacyRequest$DomainName": "

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

Required: Yes

", "UpdateDomainContactRequest$DomainName": "

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

Required: Yes

", "UpdateDomainNameserversRequest$DomainName": "

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

Required: Yes

", - "UpdateTagsForDomainRequest$DomainName": "

The domain for which you want to add or update tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're surrounded by letters, numbers, or other hyphens. You can't specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

" + "UpdateTagsForDomainRequest$DomainName": "

The domain for which you want to add or update tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when theyaposre surrounded by letters, numbers, or other hyphens. You canapost specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

" } }, "DomainStatus": { @@ -236,8 +229,7 @@ "base": null, "refs": { "ContactDetail$Email": "

Email address of the contact.

Type: String

Default: None

Constraints: Maximum 254 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: Yes

", - "GetDomainDetailResponse$AbuseContactEmail": "

Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.

Type: String

", - "ResendContactReachabilityEmailResponse$emailAddress": "

The email address for the registrant contact at the time that we sent the verification email.

" + "GetDomainDetailResponse$AbuseContactEmail": "

Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.

Type: String

" } }, "EnableDomainAutoRenewRequest": { @@ -287,7 +279,7 @@ "ExtraParamName": { "base": null, "refs": { - "ExtraParam$Name": "

Name of the additional parameter required by the top-level domain.

Type: String

Default: None

Valid values: DUNS_NUMBER | BRAND_NUMBER | BIRTH_DEPARTMENT | BIRTH_DATE_IN_YYYY_MM_DD | BIRTH_COUNTRY | BIRTH_CITY | DOCUMENT_NUMBER | AU_ID_NUMBER | AU_ID_TYPE | CA_LEGAL_TYPE | CA_BUSINESS_ENTITY_TYPE |ES_IDENTIFICATION | ES_IDENTIFICATION_TYPE | ES_LEGAL_FORM | FI_BUSINESS_NUMBER | FI_ID_NUMBER | IT_PIN | RU_PASSPORT_DATA | SE_ID_NUMBER | SG_ID_NUMBER | VAT_NUMBER

Parent: ExtraParams

Required: Yes

" + "ExtraParam$Name": "

Name of the additional parameter required by the top-level domain.

Type: String

Default: None

Valid values: DUNS_NUMBER | BRAND_NUMBER | BIRTH_DEPARTMENT | BIRTH_DATE_IN_YYYY_MM_DD | BIRTH_COUNTRY | BIRTH_CITY | DOCUMENT_NUMBER | AU_ID_NUMBER | AU_ID_TYPE | CA_LEGAL_TYPE | ES_IDENTIFICATION | ES_IDENTIFICATION_TYPE | ES_LEGAL_FORM | FI_BUSINESS_NUMBER | FI_ID_NUMBER | IT_PIN | RU_PASSPORT_DATA | SE_ID_NUMBER | SG_ID_NUMBER | VAT_NUMBER

Parent: ExtraParams

Required: Yes

" } }, "ExtraParamValue": { @@ -302,16 +294,6 @@ "UpdateDomainNameserversRequest$FIAuthKey": "

The authorization key for .fi domains

" } }, - "GetContactReachabilityStatusRequest": { - "base": null, - "refs": { - } - }, - "GetContactReachabilityStatusResponse": { - "base": null, - "refs": { - } - }, "GetDomainDetailRequest": { "base": "

The GetDomainDetail request includes the following element.

", "refs": { @@ -469,12 +451,6 @@ "ListOperationsRequest$MaxItems": "

Number of domains to be returned.

Type: Integer

Default: 20

Constraints: A value between 1 and 100.

Required: No

" } }, - "ReachabilityStatus": { - "base": null, - "refs": { - "GetContactReachabilityStatusResponse$status": "

Whether the registrant contact has responded. PENDING indicates that we sent the confirmation email and haven't received a response yet, DONE indicates that we sent the email and got confirmation from the registrant contact, and EXPIRED indicates that the time limit expired before the registrant contact responded.

Type: String

Valid values: PENDING, DONE, EXPIRED

" - } - }, "RegisterDomainRequest": { "base": "

The RegisterDomain request includes the following elements.

", "refs": { @@ -515,16 +491,6 @@ "GetDomainDetailResponse$Reseller": "

Reseller of the domain. Domains registered or transferred using Amazon Route 53 domains will have \"Amazon\" as the reseller.

Type: String

" } }, - "ResendContactReachabilityEmailRequest": { - "base": null, - "refs": { - } - }, - "ResendContactReachabilityEmailResponse": { - "base": null, - "refs": { - } - }, "RetrieveDomainAuthCodeRequest": { "base": "

The RetrieveDomainAuthCode request includes the following element.

", "refs": { @@ -538,7 +504,7 @@ "State": { "base": null, "refs": { - "ContactDetail$State": "

The state or province of the contact's city.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

" + "ContactDetail$State": "

The state or province of the contact's city.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

" } }, "TLDRulesViolation": { @@ -562,14 +528,14 @@ "TagKeyList": { "base": null, "refs": { - "DeleteTagsForDomainRequest$TagsToDelete": "

A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No

'>" + "DeleteTagsForDomainRequest$TagsToDelete": "

A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No

'>" } }, "TagList": { "base": null, "refs": { - "ListTagsForDomainResponse$TagList": "

A list of the tags that are associated with the specified domain.

Type: A complex type containing a list of tags

Each tag includes the following elements.

  • Key

    The key (name) of a tag.

    Type: String

  • Value

    The value of a tag.

    Type: String

", - "UpdateTagsForDomainRequest$TagsToUpdate": "

A list of the tag keys and values that you want to add or update. If you specify a key that already exists, the corresponding value will be replaced.

Type: A complex type containing a list of tags

Default: None

Required: No

'>

Each tag includes the following elements:

  • Key

    The key (name) of a tag.

    Type: String

    Default: None

    Valid values: Unicode characters including alphanumeric, space, and \".:/=+\\-@\"

    Constraints: Each key can be 1-128 characters long.

    Required: Yes

  • Value

    The value of a tag.

    Type: String

    Default: None

    Valid values: Unicode characters including alphanumeric, space, and \".:/=+\\-@\"

    Constraints: Each value can be 0-256 characters long.

    Required: Yes

" + "ListTagsForDomainResponse$TagList": "

A list of the tags that are associated with the specified domain.

Type: A complex type containing a list of tags

Each tag includes the following elements.

  • Key

    The key (name) of a tag.

    Type: String

  • Value

    The value of a tag.

    Type: String

", + "UpdateTagsForDomainRequest$TagsToUpdate": "

A list of the tag keys and values that you want to add or update. If you specify a key that already exists, the corresponding value will be replaced.

Type: A complex type containing a list of tags

Default: None

Required: No

'>

Each tag includes the following elements:

  • Key

    The key (name) of a tag.

    Type: String

    Default: None

    Valid values: Unicode characters including alphanumeric, space, and \".:/=+\\-@\"

    Constraints: Each key can be 1-128 characters long.

    Required: Yes

  • Value

    The value of a tag.

    Type: String

    Default: None

    Valid values: Unicode characters including alphanumeric, space, and \".:/=+\\-@\"

    Constraints: Each value can be 0-256 characters long.

    Required: Yes

" } }, "TagValue": { @@ -647,7 +613,7 @@ "ZipCode": { "base": null, "refs": { - "ContactDetail$ZipCode": "

The zip or postal code of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

" + "ContactDetail$ZipCode": "

The zip or postal code of the contact's address.

Type: String

Default: None

Constraints: Maximum 255 characters.

Parents: RegistrantContact, AdminContact, TechContact

Required: No

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/route53domains/2014-05-15/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/route53domains/2014-05-15/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/api-2.json similarity index 91% rename from vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/api-2.json index f72973921..d80ff645f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/api-2.json @@ -5,11 +5,11 @@ "checksumFormat":"md5", "endpointPrefix":"s3", "globalEndpoint":"s3.amazonaws.com", - "protocol":"rest-xml", "serviceAbbreviation":"Amazon S3", "serviceFullName":"Amazon Simple Storage Service", "signatureVersion":"s3", - "timestampFormat":"rfc822" + "timestampFormat":"rfc822", + "protocol":"rest-xml" }, "operations":{ "AbortMultipartUpload":{ @@ -21,7 +21,10 @@ "input":{"shape":"AbortMultipartUploadRequest"}, "output":{"shape":"AbortMultipartUploadOutput"}, "errors":[ - {"shape":"NoSuchUpload"} + { + "shape":"NoSuchUpload", + "exception":true + } ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadAbort.html" }, @@ -44,7 +47,10 @@ "input":{"shape":"CopyObjectRequest"}, "output":{"shape":"CopyObjectOutput"}, "errors":[ - {"shape":"ObjectNotInActiveTierError"} + { + "shape":"ObjectNotInActiveTierError", + "exception":true + } ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectCOPY.html", "alias":"PutObjectCopy" @@ -58,8 +64,10 @@ "input":{"shape":"CreateBucketRequest"}, "output":{"shape":"CreateBucketOutput"}, "errors":[ - {"shape":"BucketAlreadyExists"}, - {"shape":"BucketAlreadyOwnedByYou"} + { + "shape":"BucketAlreadyExists", + "exception":true + } ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUT.html", "alias":"PutBucket" @@ -158,15 +166,6 @@ "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/multiobjectdeleteapi.html", "alias":"DeleteMultipleObjects" }, - "GetBucketAccelerateConfiguration":{ - "name":"GetBucketAccelerateConfiguration", - "http":{ - "method":"GET", - "requestUri":"/{Bucket}?accelerate" - }, - "input":{"shape":"GetBucketAccelerateConfigurationRequest"}, - "output":{"shape":"GetBucketAccelerateConfigurationOutput"} - }, "GetBucketAcl":{ "name":"GetBucketAcl", "http":{ @@ -195,17 +194,7 @@ }, "input":{"shape":"GetBucketLifecycleRequest"}, "output":{"shape":"GetBucketLifecycleOutput"}, - "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETlifecycle.html", - "deprecated":true - }, - "GetBucketLifecycleConfiguration":{ - "name":"GetBucketLifecycleConfiguration", - "http":{ - "method":"GET", - "requestUri":"/{Bucket}?lifecycle" - }, - "input":{"shape":"GetBucketLifecycleConfigurationRequest"}, - "output":{"shape":"GetBucketLifecycleConfigurationOutput"} + "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETlifecycle.html" }, "GetBucketLocation":{ "name":"GetBucketLocation", @@ -235,8 +224,8 @@ }, "input":{"shape":"GetBucketNotificationConfigurationRequest"}, "output":{"shape":"NotificationConfigurationDeprecated"}, - "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETnotification.html", - "deprecated":true + "deprecated":true, + "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETnotification.html" }, "GetBucketNotificationConfiguration":{ "name":"GetBucketNotificationConfiguration", @@ -315,7 +304,10 @@ "input":{"shape":"GetObjectRequest"}, "output":{"shape":"GetObjectOutput"}, "errors":[ - {"shape":"NoSuchKey"} + { + "shape":"NoSuchKey", + "exception":true + } ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGET.html" }, @@ -328,7 +320,10 @@ "input":{"shape":"GetObjectAclRequest"}, "output":{"shape":"GetObjectAclOutput"}, "errors":[ - {"shape":"NoSuchKey"} + { + "shape":"NoSuchKey", + "exception":true + } ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGETacl.html" }, @@ -350,7 +345,10 @@ }, "input":{"shape":"HeadBucketRequest"}, "errors":[ - {"shape":"NoSuchBucket"} + { + "shape":"NoSuchBucket", + "exception":true + } ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketHEAD.html" }, @@ -363,7 +361,10 @@ "input":{"shape":"HeadObjectRequest"}, "output":{"shape":"HeadObjectOutput"}, "errors":[ - {"shape":"NoSuchKey"} + { + "shape":"NoSuchKey", + "exception":true + } ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectHEAD.html" }, @@ -407,23 +408,14 @@ "input":{"shape":"ListObjectsRequest"}, "output":{"shape":"ListObjectsOutput"}, "errors":[ - {"shape":"NoSuchBucket"} + { + "shape":"NoSuchBucket", + "exception":true + } ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGET.html", "alias":"GetBucket" }, - "ListObjectsV2":{ - "name":"ListObjectsV2", - "http":{ - "method":"GET", - "requestUri":"/{Bucket}?list-type=2" - }, - "input":{"shape":"ListObjectsV2Request"}, - "output":{"shape":"ListObjectsV2Output"}, - "errors":[ - {"shape":"NoSuchBucket"} - ] - }, "ListParts":{ "name":"ListParts", "http":{ @@ -434,14 +426,6 @@ "output":{"shape":"ListPartsOutput"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadListParts.html" }, - "PutBucketAccelerateConfiguration":{ - "name":"PutBucketAccelerateConfiguration", - "http":{ - "method":"PUT", - "requestUri":"/{Bucket}?accelerate" - }, - "input":{"shape":"PutBucketAccelerateConfigurationRequest"} - }, "PutBucketAcl":{ "name":"PutBucketAcl", "http":{ @@ -467,16 +451,7 @@ "requestUri":"/{Bucket}?lifecycle" }, "input":{"shape":"PutBucketLifecycleRequest"}, - "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html", - "deprecated":true - }, - "PutBucketLifecycleConfiguration":{ - "name":"PutBucketLifecycleConfiguration", - "http":{ - "method":"PUT", - "requestUri":"/{Bucket}?lifecycle" - }, - "input":{"shape":"PutBucketLifecycleConfigurationRequest"} + "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html" }, "PutBucketLogging":{ "name":"PutBucketLogging", @@ -494,8 +469,8 @@ "requestUri":"/{Bucket}?notification" }, "input":{"shape":"PutBucketNotificationRequest"}, - "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTnotification.html", - "deprecated":true + "deprecated":true, + "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTnotification.html" }, "PutBucketNotificationConfiguration":{ "name":"PutBucketNotificationConfiguration", @@ -577,7 +552,10 @@ "input":{"shape":"PutObjectAclRequest"}, "output":{"shape":"PutObjectAclOutput"}, "errors":[ - {"shape":"NoSuchKey"} + { + "shape":"NoSuchKey", + "exception":true + } ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectPUTacl.html" }, @@ -590,7 +568,10 @@ "input":{"shape":"RestoreObjectRequest"}, "output":{"shape":"RestoreObjectOutput"}, "errors":[ - {"shape":"ObjectAlreadyInActiveTierError"} + { + "shape":"ObjectAlreadyInActiveTierError", + "exception":true + } ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectRestore.html", "alias":"PostObjectRestore" @@ -617,13 +598,6 @@ } }, "shapes":{ - "AbortDate":{"type":"timestamp"}, - "AbortIncompleteMultipartUpload":{ - "type":"structure", - "members":{ - "DaysAfterInitiation":{"shape":"DaysAfterInitiation"} - } - }, "AbortMultipartUploadOutput":{ "type":"structure", "members":{ @@ -664,13 +638,6 @@ } } }, - "AbortRuleId":{"type":"string"}, - "AccelerateConfiguration":{ - "type":"structure", - "members":{ - "Status":{"shape":"BucketAccelerateStatus"} - } - }, "AcceptRanges":{"type":"string"}, "AccessControlPolicy":{ "type":"structure", @@ -708,25 +675,12 @@ "CreationDate":{"shape":"CreationDate"} } }, - "BucketAccelerateStatus":{ - "type":"string", - "enum":[ - "Enabled", - "Suspended" - ] - }, "BucketAlreadyExists":{ "type":"structure", "members":{ }, "exception":true }, - "BucketAlreadyOwnedByYou":{ - "type":"structure", - "members":{ - }, - "exception":true - }, "BucketCannedACL":{ "type":"string", "enum":[ @@ -736,16 +690,6 @@ "authenticated-read" ] }, - "BucketLifecycleConfiguration":{ - "type":"structure", - "required":["Rules"], - "members":{ - "Rules":{ - "shape":"LifecycleRules", - "locationName":"Rule" - } - } - }, "BucketLocationConstraint":{ "type":"string", "enum":[ @@ -792,7 +736,6 @@ }, "CORSConfiguration":{ "type":"structure", - "required":["CORSRules"], "members":{ "CORSRules":{ "shape":"CORSRules", @@ -802,10 +745,6 @@ }, "CORSRule":{ "type":"structure", - "required":[ - "AllowedMethods", - "AllowedOrigins" - ], "members":{ "AllowedHeaders":{ "shape":"AllowedHeaders", @@ -981,11 +920,6 @@ "location":"header", "locationName":"x-amz-copy-source-version-id" }, - "VersionId":{ - "shape":"ObjectVersionId", - "location":"header", - "locationName":"x-amz-version-id" - }, "ServerSideEncryption":{ "shape":"ServerSideEncryption", "location":"header", @@ -1241,8 +1175,8 @@ }, "CreateBucketConfiguration":{ "shape":"CreateBucketConfiguration", - "locationName":"CreateBucketConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"CreateBucketConfiguration" }, "GrantFullControl":{ "shape":"GrantFullControl", @@ -1275,16 +1209,6 @@ "CreateMultipartUploadOutput":{ "type":"structure", "members":{ - "AbortDate":{ - "shape":"AbortDate", - "location":"header", - "locationName":"x-amz-abort-date" - }, - "AbortRuleId":{ - "shape":"AbortRuleId", - "location":"header", - "locationName":"x-amz-abort-rule-id" - }, "Bucket":{ "shape":"BucketName", "locationName":"Bucket" @@ -1443,7 +1367,6 @@ "timestampFormat":"iso8601" }, "Days":{"type":"integer"}, - "DaysAfterInitiation":{"type":"integer"}, "Delete":{ "type":"structure", "required":["Objects"], @@ -1632,8 +1555,8 @@ }, "Delete":{ "shape":"Delete", - "locationName":"Delete", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"Delete" }, "MFA":{ "shape":"MFA", @@ -1667,8 +1590,7 @@ "type":"structure", "required":["Bucket"], "members":{ - "Bucket":{"shape":"BucketName"}, - "StorageClass":{"shape":"StorageClass"} + "Bucket":{"shape":"BucketName"} } }, "DisplayName":{"type":"string"}, @@ -1726,7 +1648,6 @@ "Disabled" ] }, - "ExpiredObjectDeleteMarker":{"type":"boolean"}, "Expires":{"type":"timestamp"}, "ExposeHeader":{"type":"string"}, "ExposeHeaders":{ @@ -1734,7 +1655,6 @@ "member":{"shape":"ExposeHeader"}, "flattened":true }, - "FetchOwner":{"type":"boolean"}, "FilterRule":{ "type":"structure", "members":{ @@ -1755,23 +1675,6 @@ ] }, "FilterRuleValue":{"type":"string"}, - "GetBucketAccelerateConfigurationOutput":{ - "type":"structure", - "members":{ - "Status":{"shape":"BucketAccelerateStatus"} - } - }, - "GetBucketAccelerateConfigurationRequest":{ - "type":"structure", - "required":["Bucket"], - "members":{ - "Bucket":{ - "shape":"BucketName", - "location":"uri", - "locationName":"Bucket" - } - } - }, "GetBucketAclOutput":{ "type":"structure", "members":{ @@ -1813,26 +1716,6 @@ } } }, - "GetBucketLifecycleConfigurationOutput":{ - "type":"structure", - "members":{ - "Rules":{ - "shape":"LifecycleRules", - "locationName":"Rule" - } - } - }, - "GetBucketLifecycleConfigurationRequest":{ - "type":"structure", - "required":["Bucket"], - "members":{ - "Bucket":{ - "shape":"BucketName", - "location":"uri", - "locationName":"Bucket" - } - } - }, "GetBucketLifecycleOutput":{ "type":"structure", "members":{ @@ -2348,8 +2231,8 @@ "ID":{"shape":"ID"}, "Type":{ "shape":"Type", - "locationName":"xsi:type", - "xmlAttribute":true + "xmlAttribute":true, + "locationName":"xsi:type" }, "URI":{"shape":"URI"} }, @@ -2595,7 +2478,6 @@ }, "IsLatest":{"type":"boolean"}, "IsTruncated":{"type":"boolean"}, - "KeyCount":{"type":"integer"}, "KeyMarker":{"type":"string"}, "KeyPrefixEquals":{"type":"string"}, "LambdaFunctionArn":{"type":"string"}, @@ -2638,38 +2520,9 @@ "type":"structure", "members":{ "Date":{"shape":"Date"}, - "Days":{"shape":"Days"}, - "ExpiredObjectDeleteMarker":{"shape":"ExpiredObjectDeleteMarker"} - } - }, - "LifecycleRule":{ - "type":"structure", - "required":[ - "Prefix", - "Status" - ], - "members":{ - "Expiration":{"shape":"LifecycleExpiration"}, - "ID":{"shape":"ID"}, - "Prefix":{"shape":"Prefix"}, - "Status":{"shape":"ExpirationStatus"}, - "Transitions":{ - "shape":"TransitionList", - "locationName":"Transition" - }, - "NoncurrentVersionTransitions":{ - "shape":"NoncurrentVersionTransitionList", - "locationName":"NoncurrentVersionTransition" - }, - "NoncurrentVersionExpiration":{"shape":"NoncurrentVersionExpiration"}, - "AbortIncompleteMultipartUpload":{"shape":"AbortIncompleteMultipartUpload"} + "Days":{"shape":"Days"} } }, - "LifecycleRules":{ - "type":"list", - "member":{"shape":"LifecycleRule"}, - "flattened":true - }, "ListBucketsOutput":{ "type":"structure", "members":{ @@ -2854,82 +2707,9 @@ } } }, - "ListObjectsV2Output":{ - "type":"structure", - "members":{ - "IsTruncated":{"shape":"IsTruncated"}, - "Contents":{"shape":"ObjectList"}, - "Name":{"shape":"BucketName"}, - "Prefix":{"shape":"Prefix"}, - "Delimiter":{"shape":"Delimiter"}, - "MaxKeys":{"shape":"MaxKeys"}, - "CommonPrefixes":{"shape":"CommonPrefixList"}, - "EncodingType":{"shape":"EncodingType"}, - "KeyCount":{"shape":"KeyCount"}, - "ContinuationToken":{"shape":"Token"}, - "NextContinuationToken":{"shape":"NextToken"}, - "StartAfter":{"shape":"StartAfter"} - } - }, - "ListObjectsV2Request":{ - "type":"structure", - "required":["Bucket"], - "members":{ - "Bucket":{ - "shape":"BucketName", - "location":"uri", - "locationName":"Bucket" - }, - "Delimiter":{ - "shape":"Delimiter", - "location":"querystring", - "locationName":"delimiter" - }, - "EncodingType":{ - "shape":"EncodingType", - "location":"querystring", - "locationName":"encoding-type" - }, - "MaxKeys":{ - "shape":"MaxKeys", - "location":"querystring", - "locationName":"max-keys" - }, - "Prefix":{ - "shape":"Prefix", - "location":"querystring", - "locationName":"prefix" - }, - "ContinuationToken":{ - "shape":"Token", - "location":"querystring", - "locationName":"continuation-token" - }, - "FetchOwner":{ - "shape":"FetchOwner", - "location":"querystring", - "locationName":"fetch-owner" - }, - "StartAfter":{ - "shape":"StartAfter", - "location":"querystring", - "locationName":"start-key" - } - } - }, "ListPartsOutput":{ "type":"structure", "members":{ - "AbortDate":{ - "shape":"AbortDate", - "location":"header", - "locationName":"x-amz-abort-date" - }, - "AbortRuleId":{ - "shape":"AbortRuleId", - "location":"header", - "locationName":"x-amz-abort-rule-id" - }, "Bucket":{"shape":"BucketName"}, "Key":{"shape":"ObjectKey"}, "UploadId":{"shape":"MultipartUploadId"}, @@ -3056,7 +2836,6 @@ "NextKeyMarker":{"type":"string"}, "NextMarker":{"type":"string"}, "NextPartNumberMarker":{"type":"integer"}, - "NextToken":{"type":"string"}, "NextUploadIdMarker":{"type":"string"}, "NextVersionIdMarker":{"type":"string"}, "NoSuchBucket":{ @@ -3090,11 +2869,6 @@ "StorageClass":{"shape":"TransitionStorageClass"} } }, - "NoncurrentVersionTransitionList":{ - "type":"list", - "member":{"shape":"NoncurrentVersionTransition"}, - "flattened":true - }, "NotificationConfiguration":{ "type":"structure", "members":{ @@ -3154,7 +2928,6 @@ "public-read", "public-read-write", "authenticated-read", - "aws-exec-read", "bucket-owner-read", "bucket-owner-full-control" ] @@ -3172,10 +2945,7 @@ "member":{"shape":"ObjectIdentifier"}, "flattened":true }, - "ObjectKey":{ - "type":"string", - "min":1 - }, + "ObjectKey":{"type":"string"}, "ObjectList":{ "type":"list", "member":{"shape":"Object"}, @@ -3267,26 +3037,6 @@ "https" ] }, - "PutBucketAccelerateConfigurationRequest":{ - "type":"structure", - "required":[ - "Bucket", - "AccelerateConfiguration" - ], - "members":{ - "Bucket":{ - "shape":"BucketName", - "location":"uri", - "locationName":"Bucket" - }, - "AccelerateConfiguration":{ - "shape":"AccelerateConfiguration", - "locationName":"AccelerateConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} - } - }, - "payload":"AccelerateConfiguration" - }, "PutBucketAclRequest":{ "type":"structure", "required":["Bucket"], @@ -3298,8 +3048,8 @@ }, "AccessControlPolicy":{ "shape":"AccessControlPolicy", - "locationName":"AccessControlPolicy", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"AccessControlPolicy" }, "Bucket":{ "shape":"BucketName", @@ -3341,10 +3091,7 @@ }, "PutBucketCorsRequest":{ "type":"structure", - "required":[ - "Bucket", - "CORSConfiguration" - ], + "required":["Bucket"], "members":{ "Bucket":{ "shape":"BucketName", @@ -3353,8 +3100,8 @@ }, "CORSConfiguration":{ "shape":"CORSConfiguration", - "locationName":"CORSConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"CORSConfiguration" }, "ContentMD5":{ "shape":"ContentMD5", @@ -3364,23 +3111,6 @@ }, "payload":"CORSConfiguration" }, - "PutBucketLifecycleConfigurationRequest":{ - "type":"structure", - "required":["Bucket"], - "members":{ - "Bucket":{ - "shape":"BucketName", - "location":"uri", - "locationName":"Bucket" - }, - "LifecycleConfiguration":{ - "shape":"BucketLifecycleConfiguration", - "locationName":"LifecycleConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} - } - }, - "payload":"LifecycleConfiguration" - }, "PutBucketLifecycleRequest":{ "type":"structure", "required":["Bucket"], @@ -3397,8 +3127,8 @@ }, "LifecycleConfiguration":{ "shape":"LifecycleConfiguration", - "locationName":"LifecycleConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"LifecycleConfiguration" } }, "payload":"LifecycleConfiguration" @@ -3417,8 +3147,8 @@ }, "BucketLoggingStatus":{ "shape":"BucketLoggingStatus", - "locationName":"BucketLoggingStatus", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"BucketLoggingStatus" }, "ContentMD5":{ "shape":"ContentMD5", @@ -3442,8 +3172,8 @@ }, "NotificationConfiguration":{ "shape":"NotificationConfiguration", - "locationName":"NotificationConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"NotificationConfiguration" } }, "payload":"NotificationConfiguration" @@ -3467,8 +3197,8 @@ }, "NotificationConfiguration":{ "shape":"NotificationConfigurationDeprecated", - "locationName":"NotificationConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"NotificationConfiguration" } }, "payload":"NotificationConfiguration" @@ -3513,8 +3243,8 @@ }, "ReplicationConfiguration":{ "shape":"ReplicationConfiguration", - "locationName":"ReplicationConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"ReplicationConfiguration" } }, "payload":"ReplicationConfiguration" @@ -3538,8 +3268,8 @@ }, "RequestPaymentConfiguration":{ "shape":"RequestPaymentConfiguration", - "locationName":"RequestPaymentConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"RequestPaymentConfiguration" } }, "payload":"RequestPaymentConfiguration" @@ -3563,8 +3293,8 @@ }, "Tagging":{ "shape":"Tagging", - "locationName":"Tagging", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"Tagging" } }, "payload":"Tagging" @@ -3593,8 +3323,8 @@ }, "VersioningConfiguration":{ "shape":"VersioningConfiguration", - "locationName":"VersioningConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"VersioningConfiguration" } }, "payload":"VersioningConfiguration" @@ -3618,8 +3348,8 @@ }, "WebsiteConfiguration":{ "shape":"WebsiteConfiguration", - "locationName":"WebsiteConfiguration", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"WebsiteConfiguration" } }, "payload":"WebsiteConfiguration" @@ -3648,8 +3378,8 @@ }, "AccessControlPolicy":{ "shape":"AccessControlPolicy", - "locationName":"AccessControlPolicy", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"AccessControlPolicy" }, "Bucket":{ "shape":"BucketName", @@ -3695,11 +3425,6 @@ "shape":"RequestPayer", "location":"header", "locationName":"x-amz-request-payer" - }, - "VersionId":{ - "shape":"ObjectVersionId", - "location":"querystring", - "locationName":"versionId" } }, "payload":"AccessControlPolicy" @@ -4050,8 +3775,8 @@ }, "RestoreRequest":{ "shape":"RestoreRequest", - "locationName":"RestoreRequest", - "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"}, + "locationName":"RestoreRequest" }, "RequestPayer":{ "shape":"RequestPayer", @@ -4097,8 +3822,7 @@ "Status":{"shape":"ExpirationStatus"}, "Transition":{"shape":"Transition"}, "NoncurrentVersionTransition":{"shape":"NoncurrentVersionTransition"}, - "NoncurrentVersionExpiration":{"shape":"NoncurrentVersionExpiration"}, - "AbortIncompleteMultipartUpload":{"shape":"AbortIncompleteMultipartUpload"} + "NoncurrentVersionExpiration":{"shape":"NoncurrentVersionExpiration"} } }, "Rules":{ @@ -4133,13 +3857,11 @@ ] }, "Size":{"type":"integer"}, - "StartAfter":{"type":"string"}, "StorageClass":{ "type":"string", "enum":[ "STANDARD", - "REDUCED_REDUNDANCY", - "STANDARD_IA" + "REDUCED_REDUNDANCY" ] }, "Suffix":{"type":"string"}, @@ -4184,7 +3906,6 @@ } }, "TargetPrefix":{"type":"string"}, - "Token":{"type":"string"}, "TopicArn":{"type":"string"}, "TopicConfiguration":{ "type":"structure", @@ -4233,17 +3954,9 @@ "StorageClass":{"shape":"TransitionStorageClass"} } }, - "TransitionList":{ - "type":"list", - "member":{"shape":"Transition"}, - "flattened":true - }, "TransitionStorageClass":{ "type":"string", - "enum":[ - "GLACIER", - "STANDARD_IA" - ] + "enum":["GLACIER"] }, "Type":{ "type":"string", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/docs-2.json similarity index 88% rename from vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/docs-2.json index 802f6a7b9..1637048ae 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/docs-2.json @@ -1,32 +1,29 @@ { "version": "2.0", - "service": null, "operations": { - "AbortMultipartUpload": "

Aborts a multipart upload.

To verify that all parts have been removed, so you don't get charged for the part storage, you should call the List Parts operation and ensure the parts list is empty.

", + "AbortMultipartUpload": "

Aborts a multipart upload.

To verify that all parts have been removed, so you don't get charged for the part storage, you should call the List Parts operation and ensure the parts list is empty.

", "CompleteMultipartUpload": "Completes a multipart upload by assembling previously uploaded parts.", "CopyObject": "Creates a copy of an object that is already stored in Amazon S3.", "CreateBucket": "Creates a new bucket.", - "CreateMultipartUpload": "

Initiates a multipart upload and returns an upload ID.

Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.

", + "CreateMultipartUpload": "

Initiates a multipart upload and returns an upload ID.

Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.

", "DeleteBucket": "Deletes the bucket. All objects (including all object versions and Delete Markers) in the bucket must be deleted before the bucket itself can be deleted.", "DeleteBucketCors": "Deletes the cors configuration information set for the bucket.", "DeleteBucketLifecycle": "Deletes the lifecycle configuration from the bucket.", "DeleteBucketPolicy": "Deletes the policy from the bucket.", - "DeleteBucketReplication": "Deletes the replication configuration from the bucket.", + "DeleteBucketReplication": null, "DeleteBucketTagging": "Deletes the tags from the bucket.", "DeleteBucketWebsite": "This operation removes the website configuration from the bucket.", "DeleteObject": "Removes the null version (if there is one) of an object and inserts a delete marker, which becomes the latest version of the object. If there isn't a null version, Amazon S3 does not remove any objects.", "DeleteObjects": "This operation enables you to delete multiple objects from a bucket using a single HTTP request. You may specify up to 1000 keys.", - "GetBucketAccelerateConfiguration": "Returns the accelerate configuration of a bucket.", "GetBucketAcl": "Gets the access control policy for the bucket.", "GetBucketCors": "Returns the cors configuration for the bucket.", - "GetBucketLifecycle": "Deprecated, see the GetBucketLifecycleConfiguration operation.", - "GetBucketLifecycleConfiguration": "Returns the lifecycle configuration information set on the bucket.", + "GetBucketLifecycle": "Returns the lifecycle configuration information set on the bucket.", "GetBucketLocation": "Returns the region the bucket resides in.", "GetBucketLogging": "Returns the logging status of a bucket and the permissions users have to view and modify that status. To use GET, you must be the bucket owner.", "GetBucketNotification": "Deprecated, see the GetBucketNotificationConfiguration operation.", "GetBucketNotificationConfiguration": "Returns the notification configuration of a bucket.", "GetBucketPolicy": "Returns the policy of a specified bucket.", - "GetBucketReplication": "Deprecated, see the GetBucketReplicationConfiguration operation.", + "GetBucketReplication": null, "GetBucketRequestPayment": "Returns the request payment configuration of a bucket.", "GetBucketTagging": "Returns the tag set associated with the bucket.", "GetBucketVersioning": "Returns the versioning state of a bucket.", @@ -40,13 +37,10 @@ "ListMultipartUploads": "This operation lists in-progress multipart uploads.", "ListObjectVersions": "Returns metadata about all of the versions of objects in a bucket.", "ListObjects": "Returns some or all (up to 1000) of the objects in a bucket. You can use the request parameters as selection criteria to return a subset of the objects in a bucket.", - "ListObjectsV2": "Returns some or all (up to 1000) of the objects in a bucket. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. Note: ListObjectsV2 is the revised List Objects API and we recommend you use this revised API for new application development.", "ListParts": "Lists the parts that have been uploaded for a specific multipart upload.", - "PutBucketAccelerateConfiguration": "Sets the accelerate configuration of an existing bucket.", "PutBucketAcl": "Sets the permissions on a bucket using access control lists (ACL).", "PutBucketCors": "Sets the cors configuration for a bucket.", - "PutBucketLifecycle": "Deprecated, see the PutBucketLifecycleConfiguration operation.", - "PutBucketLifecycleConfiguration": "Sets lifecycle configuration for your bucket. If a lifecycle configuration exists, it replaces it.", + "PutBucketLifecycle": "Sets lifecycle configuration for your bucket. If a lifecycle configuration exists, it replaces it.", "PutBucketLogging": "Set the logging parameters for a bucket and to specify permissions for who can view and modify the logging parameters. To set the logging status of a bucket, you must be the bucket owner.", "PutBucketNotification": "Deprecated, see the PutBucketNotificationConfiguraiton operation.", "PutBucketNotificationConfiguration": "Enables notifications of specified events for a bucket.", @@ -59,24 +53,11 @@ "PutObject": "Adds an object to a bucket.", "PutObjectAcl": "uses the acl subresource to set the access control list (ACL) permissions for an object that already exists in a bucket", "RestoreObject": "Restores an archived copy of an object back into Amazon S3", - "UploadPart": "

Uploads a part in a multipart upload.

Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.

", + "UploadPart": "

Uploads a part in a multipart upload.

Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.

", "UploadPartCopy": "Uploads a part by copying data from an existing object as data source." }, + "service": null, "shapes": { - "AbortDate": { - "base": null, - "refs": { - "CreateMultipartUploadOutput$AbortDate": "Date when multipart upload will become eligible for abort operation by lifecycle.", - "ListPartsOutput$AbortDate": "Date when multipart upload will become eligible for abort operation by lifecycle." - } - }, - "AbortIncompleteMultipartUpload": { - "base": "Specifies the days since the initiation of an Incomplete Multipart Upload that Lifecycle will wait before permanently removing all parts of the upload.", - "refs": { - "LifecycleRule$AbortIncompleteMultipartUpload": null, - "Rule$AbortIncompleteMultipartUpload": null - } - }, "AbortMultipartUploadOutput": { "base": null, "refs": { @@ -87,19 +68,6 @@ "refs": { } }, - "AbortRuleId": { - "base": null, - "refs": { - "CreateMultipartUploadOutput$AbortRuleId": "Id of the lifecycle rule that makes a multipart upload eligible for abort operation.", - "ListPartsOutput$AbortRuleId": "Id of the lifecycle rule that makes a multipart upload eligible for abort operation." - } - }, - "AccelerateConfiguration": { - "base": null, - "refs": { - "PutBucketAccelerateConfigurationRequest$AccelerateConfiguration": "Specifies the Accelerate Configuration you want to set for the bucket." - } - }, "AcceptRanges": { "base": null, "refs": { @@ -156,7 +124,7 @@ "GetObjectOutput$Body": "Object data.", "GetObjectTorrentOutput$Body": null, "PutObjectRequest$Body": "Object data.", - "UploadPartRequest$Body": "Object data." + "UploadPartRequest$Body": null } }, "Bucket": { @@ -165,23 +133,11 @@ "Buckets$member": null } }, - "BucketAccelerateStatus": { - "base": null, - "refs": { - "AccelerateConfiguration$Status": "The accelerate configuration of the bucket.", - "GetBucketAccelerateConfigurationOutput$Status": "The accelerate configuration of the bucket." - } - }, "BucketAlreadyExists": { "base": "The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.", "refs": { } }, - "BucketAlreadyOwnedByYou": { - "base": null, - "refs": { - } - }, "BucketCannedACL": { "base": null, "refs": { @@ -189,12 +145,6 @@ "PutBucketAclRequest$ACL": "The canned ACL to apply to the bucket." } }, - "BucketLifecycleConfiguration": { - "base": null, - "refs": { - "PutBucketLifecycleConfigurationRequest$LifecycleConfiguration": null - } - }, "BucketLocationConstraint": { "base": null, "refs": { @@ -235,14 +185,12 @@ "DeleteObjectRequest$Bucket": null, "DeleteObjectsRequest$Bucket": null, "Destination$Bucket": "Amazon resource name (ARN) of the bucket where you want Amazon S3 to store replicas of the object identified by the rule.", - "GetBucketAccelerateConfigurationRequest$Bucket": "Name of the bucket for which the accelerate configuration is retrieved.", "GetBucketAclRequest$Bucket": null, "GetBucketCorsRequest$Bucket": null, - "GetBucketLifecycleConfigurationRequest$Bucket": null, "GetBucketLifecycleRequest$Bucket": null, "GetBucketLocationRequest$Bucket": null, "GetBucketLoggingRequest$Bucket": null, - "GetBucketNotificationConfigurationRequest$Bucket": "Name of the bucket to get the notification configuration for.", + "GetBucketNotificationConfigurationRequest$Bucket": "Name of the buket to get the notification configuration for.", "GetBucketPolicyRequest$Bucket": null, "GetBucketReplicationRequest$Bucket": null, "GetBucketRequestPaymentRequest$Bucket": null, @@ -260,14 +208,10 @@ "ListObjectVersionsRequest$Bucket": null, "ListObjectsOutput$Name": null, "ListObjectsRequest$Bucket": null, - "ListObjectsV2Output$Name": "Name of the bucket to list.", - "ListObjectsV2Request$Bucket": "Name of the bucket to list.", "ListPartsOutput$Bucket": "Name of the bucket to which the multipart upload was initiated.", "ListPartsRequest$Bucket": null, - "PutBucketAccelerateConfigurationRequest$Bucket": "Name of the bucket for which the accelerate configuration is set.", "PutBucketAclRequest$Bucket": null, "PutBucketCorsRequest$Bucket": null, - "PutBucketLifecycleConfigurationRequest$Bucket": null, "PutBucketLifecycleRequest$Bucket": null, "PutBucketLoggingRequest$Bucket": null, "PutBucketNotificationConfigurationRequest$Bucket": null, @@ -279,10 +223,10 @@ "PutBucketVersioningRequest$Bucket": null, "PutBucketWebsiteRequest$Bucket": null, "PutObjectAclRequest$Bucket": null, - "PutObjectRequest$Bucket": "Name of the bucket to which the PUT operation was initiated.", + "PutObjectRequest$Bucket": null, "RestoreObjectRequest$Bucket": null, "UploadPartCopyRequest$Bucket": null, - "UploadPartRequest$Bucket": "Name of the bucket to which the multipart upload was initiated." + "UploadPartRequest$Bucket": null } }, "BucketVersioningStatus": { @@ -362,8 +306,7 @@ "refs": { "ListMultipartUploadsOutput$CommonPrefixes": null, "ListObjectVersionsOutput$CommonPrefixes": null, - "ListObjectsOutput$CommonPrefixes": null, - "ListObjectsV2Output$CommonPrefixes": "CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by delimiter" + "ListObjectsOutput$CommonPrefixes": null } }, "CompleteMultipartUploadOutput": { @@ -454,8 +397,8 @@ "PutBucketVersioningRequest$ContentMD5": null, "PutBucketWebsiteRequest$ContentMD5": null, "PutObjectAclRequest$ContentMD5": null, - "PutObjectRequest$ContentMD5": "The base64-encoded 128-bit MD5 digest of the part data.", - "UploadPartRequest$ContentMD5": "The base64-encoded 128-bit MD5 digest of the part data." + "PutObjectRequest$ContentMD5": null, + "UploadPartRequest$ContentMD5": null } }, "ContentRange": { @@ -614,12 +557,6 @@ "Transition$Days": "Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer." } }, - "DaysAfterInitiation": { - "base": null, - "refs": { - "AbortIncompleteMultipartUpload$DaysAfterInitiation": "Indicates the number of days that must pass since initiation for Lifecycle to abort an Incomplete Multipart Upload." - } - }, "Delete": { "base": null, "refs": { @@ -728,9 +665,7 @@ "ListObjectVersionsOutput$Delimiter": null, "ListObjectVersionsRequest$Delimiter": "A delimiter is a character you use to group keys.", "ListObjectsOutput$Delimiter": null, - "ListObjectsRequest$Delimiter": "A delimiter is a character you use to group keys.", - "ListObjectsV2Output$Delimiter": "A delimiter is a character you use to group keys.", - "ListObjectsV2Request$Delimiter": "A delimiter is a character you use to group keys." + "ListObjectsRequest$Delimiter": "A delimiter is a character you use to group keys." } }, "Destination": { @@ -777,9 +712,7 @@ "ListObjectVersionsOutput$EncodingType": "Encoding type used by Amazon S3 to encode object keys in the response.", "ListObjectVersionsRequest$EncodingType": null, "ListObjectsOutput$EncodingType": "Encoding type used by Amazon S3 to encode object keys in the response.", - "ListObjectsRequest$EncodingType": null, - "ListObjectsV2Output$EncodingType": "Encoding type used by Amazon S3 to encode object keys in the response.", - "ListObjectsV2Request$EncodingType": "Encoding type used by Amazon S3 to encode object keys in the response." + "ListObjectsRequest$EncodingType": null } }, "Error": { @@ -834,16 +767,9 @@ "ExpirationStatus": { "base": null, "refs": { - "LifecycleRule$Status": "If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.", "Rule$Status": "If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied." } }, - "ExpiredObjectDeleteMarker": { - "base": null, - "refs": { - "LifecycleExpiration$ExpiredObjectDeleteMarker": "Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy." - } - }, "Expires": { "base": null, "refs": { @@ -866,12 +792,6 @@ "CORSRule$ExposeHeaders": "One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object)." } }, - "FetchOwner": { - "base": null, - "refs": { - "ListObjectsV2Request$FetchOwner": "The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true" - } - }, "FilterRule": { "base": "Container for key value pair that defines the criteria for the filter rule.", "refs": { @@ -896,16 +816,6 @@ "FilterRule$Value": null } }, - "GetBucketAccelerateConfigurationOutput": { - "base": null, - "refs": { - } - }, - "GetBucketAccelerateConfigurationRequest": { - "base": null, - "refs": { - } - }, "GetBucketAclOutput": { "base": null, "refs": { @@ -926,16 +836,6 @@ "refs": { } }, - "GetBucketLifecycleConfigurationOutput": { - "base": null, - "refs": { - } - }, - "GetBucketLifecycleConfigurationRequest": { - "base": null, - "refs": { - } - }, "GetBucketLifecycleOutput": { "base": null, "refs": { @@ -1173,7 +1073,6 @@ "refs": { "Grantee$ID": "The canonical user ID of the grantee.", "Initiator$ID": "If the principal is an AWS account, it provides the Canonical User ID. If the principal is an IAM User, it provides a user ARN value.", - "LifecycleRule$ID": "Unique identifier for the rule. The value cannot be longer than 255 characters.", "Owner$ID": null, "ReplicationRule$ID": "Unique identifier for the rule. The value cannot be longer than 255 characters.", "Rule$ID": "Unique identifier for the rule. The value cannot be longer than 255 characters." @@ -1240,16 +1139,9 @@ "ListMultipartUploadsOutput$IsTruncated": "Indicates whether the returned list of multipart uploads is truncated. A value of true indicates that the list was truncated. The list can be truncated if the number of multipart uploads exceeds the limit allowed or specified by max uploads.", "ListObjectVersionsOutput$IsTruncated": "A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria. If your results were truncated, you can make a follow-up paginated request using the NextKeyMarker and NextVersionIdMarker response parameters as a starting place in another request to return the rest of the results.", "ListObjectsOutput$IsTruncated": "A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria.", - "ListObjectsV2Output$IsTruncated": "A flag that indicates whether or not Amazon S3 returned all of the results that satisfied the search criteria.", "ListPartsOutput$IsTruncated": "Indicates whether the returned list of parts is truncated." } }, - "KeyCount": { - "base": null, - "refs": { - "ListObjectsV2Output$KeyCount": "KeyCount is the number of keys returned with this request. KeyCount will always be less than equals to MaxKeys field. Say you ask for 50 keys, your result will include less than equals 50 keys" - } - }, "KeyMarker": { "base": null, "refs": { @@ -1305,23 +1197,9 @@ "LifecycleExpiration": { "base": null, "refs": { - "LifecycleRule$Expiration": null, "Rule$Expiration": null } }, - "LifecycleRule": { - "base": null, - "refs": { - "LifecycleRules$member": null - } - }, - "LifecycleRules": { - "base": null, - "refs": { - "BucketLifecycleConfiguration$Rules": null, - "GetBucketLifecycleConfigurationOutput$Rules": null - } - }, "ListBucketsOutput": { "base": null, "refs": { @@ -1357,16 +1235,6 @@ "refs": { } }, - "ListObjectsV2Output": { - "base": null, - "refs": { - } - }, - "ListObjectsV2Request": { - "base": null, - "refs": { - } - }, "ListPartsOutput": { "base": null, "refs": { @@ -1430,9 +1298,7 @@ "ListObjectVersionsOutput$MaxKeys": null, "ListObjectVersionsRequest$MaxKeys": "Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.", "ListObjectsOutput$MaxKeys": null, - "ListObjectsRequest$MaxKeys": "Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.", - "ListObjectsV2Output$MaxKeys": "Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more.", - "ListObjectsV2Request$MaxKeys": "Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more." + "ListObjectsRequest$MaxKeys": "Sets the maximum number of keys returned in the response. The response might contain fewer keys but will never contain more." } }, "MaxParts": { @@ -1534,12 +1400,6 @@ "ListPartsOutput$NextPartNumberMarker": "When a list is truncated, this element specifies the last part in the list, as well as the value to use for the part-number-marker request parameter in a subsequent request." } }, - "NextToken": { - "base": null, - "refs": { - "ListObjectsV2Output$NextContinuationToken": "NextContinuationToken is sent when isTruncated is true which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken is obfuscated and is not a real key" - } - }, "NextUploadIdMarker": { "base": null, "refs": { @@ -1570,23 +1430,15 @@ "NoncurrentVersionExpiration": { "base": "Specifies when noncurrent object versions expire. Upon expiration, Amazon S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent object versions at a specific period in the object's lifetime.", "refs": { - "LifecycleRule$NoncurrentVersionExpiration": null, "Rule$NoncurrentVersionExpiration": null } }, "NoncurrentVersionTransition": { - "base": "Container for the transition rule that describes when noncurrent objects transition to the STANDARD_IA or GLACIER storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA or GLACIER storage class at a specific period in the object's lifetime.", + "base": "Container for the transition rule that describes when noncurrent objects transition to the GLACIER storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to the GLACIER storage class at a specific period in the object's lifetime.", "refs": { - "NoncurrentVersionTransitionList$member": null, "Rule$NoncurrentVersionTransition": null } }, - "NoncurrentVersionTransitionList": { - "base": null, - "refs": { - "LifecycleRule$NoncurrentVersionTransitions": null - } - }, "NotificationConfiguration": { "base": "Container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off on the bucket.", "refs": { @@ -1675,18 +1527,17 @@ "ObjectIdentifier$Key": "Key name of the object to delete.", "ObjectVersion$Key": "The object key.", "PutObjectAclRequest$Key": null, - "PutObjectRequest$Key": "Object key for which the PUT operation was initiated.", + "PutObjectRequest$Key": null, "RestoreObjectRequest$Key": null, "Tag$Key": "Name of the tag.", "UploadPartCopyRequest$Key": null, - "UploadPartRequest$Key": "Object key for which the multipart upload was initiated." + "UploadPartRequest$Key": null } }, "ObjectList": { "base": null, "refs": { - "ListObjectsOutput$Contents": null, - "ListObjectsV2Output$Contents": "Metadata about each object returned." + "ListObjectsOutput$Contents": null } }, "ObjectNotInActiveTierError": { @@ -1710,7 +1561,6 @@ "base": null, "refs": { "CompleteMultipartUploadOutput$VersionId": "Version of the object.", - "CopyObjectOutput$VersionId": "Version ID of the newly created copy.", "DeleteMarkerEntry$VersionId": "Version ID of an object.", "DeleteObjectOutput$VersionId": "Returns the version ID of the delete marker created as a result of the DELETE operation.", "DeleteObjectRequest$VersionId": "VersionId used to reference a specific version of the object.", @@ -1723,7 +1573,6 @@ "HeadObjectRequest$VersionId": "VersionId used to reference a specific version of the object.", "ObjectIdentifier$VersionId": "VersionId for the specific version of the object to delete.", "ObjectVersion$VersionId": "Version ID of an object.", - "PutObjectAclRequest$VersionId": "VersionId used to reference a specific version of the object.", "PutObjectOutput$VersionId": "Version of the object.", "RestoreObjectRequest$VersionId": null } @@ -1806,15 +1655,12 @@ "base": null, "refs": { "CommonPrefix$Prefix": null, - "LifecycleRule$Prefix": "Prefix identifying one or more objects to which the rule applies.", "ListMultipartUploadsOutput$Prefix": "When a prefix is provided in the request, this field contains the specified prefix. The result contains only keys starting with the specified prefix.", "ListMultipartUploadsRequest$Prefix": "Lists in-progress uploads only for those keys that begin with the specified prefix.", "ListObjectVersionsOutput$Prefix": null, "ListObjectVersionsRequest$Prefix": "Limits the response to keys that begin with the specified prefix.", "ListObjectsOutput$Prefix": null, "ListObjectsRequest$Prefix": "Limits the response to keys that begin with the specified prefix.", - "ListObjectsV2Output$Prefix": "Limits the response to keys that begin with the specified prefix.", - "ListObjectsV2Request$Prefix": "Limits the response to keys that begin with the specified prefix.", "ReplicationRule$Prefix": "Object keyname prefix identifying one or more objects to which the rule applies. Maximum prefix length can be up to 1,024 characters. Overlapping prefixes are not supported.", "Rule$Prefix": "Prefix identifying one or more objects to which the rule applies." } @@ -1826,11 +1672,6 @@ "RedirectAllRequestsTo$Protocol": "Protocol to use (http, https) when redirecting requests. The default is the protocol that is used in the original request." } }, - "PutBucketAccelerateConfigurationRequest": { - "base": null, - "refs": { - } - }, "PutBucketAclRequest": { "base": null, "refs": { @@ -1841,11 +1682,6 @@ "refs": { } }, - "PutBucketLifecycleConfigurationRequest": { - "base": null, - "refs": { - } - }, "PutBucketLifecycleRequest": { "base": null, "refs": { @@ -2178,13 +2014,13 @@ "SSECustomerKey": { "base": null, "refs": { - "CopyObjectRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.", - "CreateMultipartUploadRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.", - "GetObjectRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.", - "HeadObjectRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.", - "PutObjectRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.", - "UploadPartCopyRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header. This must be the same encryption key specified in the initiate multipart upload request.", - "UploadPartRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header. This must be the same encryption key specified in the initiate multipart upload request." + "CopyObjectRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.", + "CreateMultipartUploadRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.", + "GetObjectRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.", + "HeadObjectRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.", + "PutObjectRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.", + "UploadPartCopyRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header. This must be the same encryption key specified in the initiate multipart upload request.", + "UploadPartRequest$SSECustomerKey": "Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header. This must be the same encryption key specified in the initiate multipart upload request." } }, "SSECustomerKeyMD5": { @@ -2246,19 +2082,11 @@ "Part$Size": "Size of the uploaded part data." } }, - "StartAfter": { - "base": null, - "refs": { - "ListObjectsV2Output$StartAfter": "StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucket", - "ListObjectsV2Request$StartAfter": "StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucket" - } - }, "StorageClass": { "base": null, "refs": { "CopyObjectRequest$StorageClass": "The type of storage to use for the object. Defaults to 'STANDARD'.", "CreateMultipartUploadRequest$StorageClass": "The type of storage to use for the object. Defaults to 'STANDARD'.", - "Destination$StorageClass": "The class of storage used to store the object.", "GetObjectOutput$StorageClass": null, "HeadObjectOutput$StorageClass": null, "ListPartsOutput$StorageClass": "The class of storage used to store the object.", @@ -2315,13 +2143,6 @@ "LoggingEnabled$TargetPrefix": "This element lets you specify a prefix for the keys that the log files will be stored under." } }, - "Token": { - "base": null, - "refs": { - "ListObjectsV2Output$ContinuationToken": "ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key", - "ListObjectsV2Request$ContinuationToken": "ContinuationToken indicates Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key" - } - }, "TopicArn": { "base": null, "refs": { @@ -2350,14 +2171,7 @@ "Transition": { "base": null, "refs": { - "Rule$Transition": null, - "TransitionList$member": null - } - }, - "TransitionList": { - "base": null, - "refs": { - "LifecycleRule$Transitions": null + "Rule$Transition": null } }, "TransitionStorageClass": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/waiters-2.json similarity index 92% rename from vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/waiters-2.json index b508a8f5b..754fb5f66 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/waiters-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/s3/2006-03-01/waiters-2.json @@ -11,11 +11,6 @@ "matcher": "status", "state": "success" }, - { - "expected": 301, - "matcher": "status", - "state": "success" - }, { "expected": 403, "matcher": "status", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sdb/2009-04-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/sdb/2009-04-15/api-2.json similarity index 97% rename from vendor/github.com/aws/aws-sdk-go/models/apis/sdb/2009-04-15/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/sdb/2009-04-15/api-2.json index 3eb686d6d..6f3182108 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sdb/2009-04-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/sdb/2009-04-15/api-2.json @@ -1,5 +1,4 @@ { - "version":"2.0", "metadata":{ "apiVersion":"2009-04-15", "endpointPrefix":"sdb", @@ -556,22 +555,6 @@ "DomainName":{"shape":"String"} } }, - "DeletableAttribute":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"String"}, - "Value":{"shape":"String"} - } - }, - "DeletableAttributeList":{ - "type":"list", - "member":{ - "shape":"DeletableAttribute", - "locationName":"Attribute" - }, - "flattened":true - }, "DeletableItem":{ "type":"structure", "required":["Name"], @@ -580,7 +563,7 @@ "shape":"String", "locationName":"ItemName" }, - "Attributes":{"shape":"DeletableAttributeList"} + "Attributes":{"shape":"AttributeList"} } }, "DeletableItemList":{ @@ -600,7 +583,7 @@ "members":{ "DomainName":{"shape":"String"}, "ItemName":{"shape":"String"}, - "Attributes":{"shape":"DeletableAttributeList"}, + "Attributes":{"shape":"AttributeList"}, "Expected":{"shape":"UpdateCondition"} } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sdb/2009-04-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/sdb/2009-04-15/docs-2.json similarity index 80% rename from vendor/github.com/aws/aws-sdk-go/models/apis/sdb/2009-04-15/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/sdb/2009-04-15/docs-2.json index b4baed838..d03846ea9 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sdb/2009-04-15/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/sdb/2009-04-15/docs-2.json @@ -1,15 +1,14 @@ { - "version": "2.0", "operations": { - "BatchDeleteAttributes": "

Performs multiple DeleteAttributes operations in a single call, which reduces round trips and latencies. This enables Amazon SimpleDB to optimize requests, which generally yields better throughput.

If you specify BatchDeleteAttributes without attributes or values, all the attributes for the item are deleted.

BatchDeleteAttributes is an idempotent operation; running it multiple times on the same item or attribute doesn't result in an error.

The BatchDeleteAttributes operation succeeds or fails in its entirety. There are no partial deletes. You can execute multiple BatchDeleteAttributes operations and other operations in parallel. However, large numbers of concurrent BatchDeleteAttributes calls can result in Service Unavailable (503) responses.

This operation is vulnerable to exceeding the maximum URL size when making a REST request using the HTTP GET method.

This operation does not support conditions using Expected.X.Name, Expected.X.Value, or Expected.X.Exists.

The following limitations are enforced for this operation:

  • 1 MB request size
  • 25 item limit per BatchDeleteAttributes operation

", - "BatchPutAttributes": "

The BatchPutAttributes operation creates or replaces attributes within one or more items. By using this operation, the client can perform multiple PutAttribute operation with a single call. This helps yield savings in round trips and latencies, enabling Amazon SimpleDB to optimize requests and generally produce better throughput.

The client may specify the item name with the Item.X.ItemName parameter. The client may specify new attributes using a combination of the Item.X.Attribute.Y.Name and Item.X.Attribute.Y.Value parameters. The client may specify the first attribute for the first item using the parameters Item.0.Attribute.0.Name and Item.0.Attribute.0.Value, and for the second attribute for the first item by the parameters Item.0.Attribute.1.Name and Item.0.Attribute.1.Value, and so on.

Attributes are uniquely identified within an item by their name/value combination. For example, a single item can have the attributes { \"first_name\", \"first_value\" } and { \"first_name\", \"second_value\" }. However, it cannot have two attribute instances where both the Item.X.Attribute.Y.Name and Item.X.Attribute.Y.Value are the same.

Optionally, the requester can supply the Replace parameter for each individual value. Setting this value to true will cause the new attribute values to replace the existing attribute values. For example, if an item I has the attributes { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requester does a BatchPutAttributes of {'I', 'b', '4' } with the Replace parameter set to true, the final attributes of the item will be { 'a', '1' } and { 'b', '4' }, replacing the previous values of the 'b' attribute with the new value.

You cannot specify an empty string as an item or as an attribute name. The BatchPutAttributes operation succeeds or fails in its entirety. There are no partial puts. This operation is vulnerable to exceeding the maximum URL size when making a REST request using the HTTP GET method. This operation does not support conditions using Expected.X.Name, Expected.X.Value, or Expected.X.Exists.

You can execute multiple BatchPutAttributes operations and other operations in parallel. However, large numbers of concurrent BatchPutAttributes calls can result in Service Unavailable (503) responses.

The following limitations are enforced for this operation:

  • 256 attribute name-value pairs per item
  • 1 MB request size
  • 1 billion attributes per domain
  • 10 GB of total user data storage per domain
  • 25 item limit per BatchPutAttributes operation

", - "CreateDomain": "

The CreateDomain operation creates a new domain. The domain name should be unique among the domains associated with the Access Key ID provided in the request. The CreateDomain operation may take 10 or more seconds to complete.

CreateDomain is an idempotent operation; running it multiple times using the same domain name will not result in an error response.

The client can create up to 100 domains per account.

If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/.

", - "DeleteAttributes": "

Deletes one or more attributes associated with an item. If all attributes of the item are deleted, the item is deleted.

If DeleteAttributes is called without being passed any attributes or values specified, all the attributes for the item are deleted.

DeleteAttributes is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response.

Because Amazon SimpleDB makes multiple copies of item data and uses an eventual consistency update model, performing a GetAttributes or Select operation (read) immediately after a DeleteAttributes or PutAttributes operation (write) might not return updated item data.

", - "DeleteDomain": "

The DeleteDomain operation deletes a domain. Any items (and their attributes) in the domain are deleted as well. The DeleteDomain operation might take 10 or more seconds to complete.

Running DeleteDomain on a domain that does not exist or running the function multiple times using the same domain name will not result in an error response. ", + "BatchDeleteAttributes": "

Performs multiple DeleteAttributes operations in a single call, which reduces round trips and latencies. This enables Amazon SimpleDB to optimize requests, which generally yields better throughput.

The following limitations are enforced for this operation:

  • 1 MB request size
  • 25 item limit per BatchDeleteAttributes operation

", + "BatchPutAttributes": "

The BatchPutAttributes operation creates or replaces attributes within one or more items. By using this operation, the client can perform multiple PutAttribute operation with a single call. This helps yield savings in round trips and latencies, enabling Amazon SimpleDB to optimize requests and generally produce better throughput.

The client may specify the item name with the Item.X.ItemName parameter. The client may specify new attributes using a combination of the Item.X.Attribute.Y.Name and Item.X.Attribute.Y.Value parameters. The client may specify the first attribute for the first item using the parameters Item.0.Attribute.0.Name and Item.0.Attribute.0.Value, and for the second attribute for the first item by the parameters Item.0.Attribute.1.Name and Item.0.Attribute.1.Value, and so on.

Attributes are uniquely identified within an item by their name/value combination. For example, a single item can have the attributes { \"first_name\", \"first_value\" } and { \"first_name\", \"second_value\" }. However, it cannot have two attribute instances where both the Item.X.Attribute.Y.Name and Item.X.Attribute.Y.Value are the same.

Optionally, the requester can supply the Replace parameter for each individual value. Setting this value to true will cause the new attribute values to replace the existing attribute values. For example, if an item I has the attributes { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requester does a BatchPutAttributes of {'I', 'b', '4' } with the Replace parameter set to true, the final attributes of the item will be { 'a', '1' } and { 'b', '4' }, replacing the previous values of the 'b' attribute with the new value.

This operation is vulnerable to exceeding the maximum URL size when making a REST request using the HTTP GET method. This operation does not support conditions using Expected.X.Name, Expected.X.Value, or Expected.X.Exists.

You can execute multiple BatchPutAttributes operations and other operations in parallel. However, large numbers of concurrent BatchPutAttributes calls can result in Service Unavailable (503) responses.

The following limitations are enforced for this operation:

  • 256 attribute name-value pairs per item
  • 1 MB request size
  • 1 billion attributes per domain
  • 10 GB of total user data storage per domain
  • 25 item limit per BatchPutAttributes operation

", + "CreateDomain": "

The CreateDomain operation creates a new domain. The domain name should be unique among the domains associated with the Access Key ID provided in the request. The CreateDomain operation may take 10 or more seconds to complete.

The client can create up to 100 domains per account.

If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/.

", + "DeleteAttributes": "

Deletes one or more attributes associated with an item. If all attributes of the item are deleted, the item is deleted.

DeleteAttributes is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response.

Because Amazon SimpleDB makes multiple copies of item data and uses an eventual consistency update model, performing a GetAttributes or Select operation (read) immediately after a DeleteAttributes or PutAttributes operation (write) might not return updated item data.

", + "DeleteDomain": "

The DeleteDomain operation deletes a domain. Any items (and their attributes) in the domain are deleted as well. The DeleteDomain operation might take 10 or more seconds to complete.

", "DomainMetadata": "

Returns information about the domain, including when the domain was created, the number of items and attributes in the domain, and the size of the attribute names and values.

", - "GetAttributes": "

Returns all of the attributes associated with the specified item. Optionally, the attributes returned can be limited to one or more attributes by specifying an attribute name parameter.

If the item does not exist on the replica that was accessed for this operation, an empty set is returned. The system does not return an error as it cannot guarantee the item does not exist on other replicas.

If GetAttributes is called without being passed any attribute names, all the attributes for the item are returned. ", + "GetAttributes": "

Returns all of the attributes associated with the specified item. Optionally, the attributes returned can be limited to one or more attributes by specifying an attribute name parameter.

If the item does not exist on the replica that was accessed for this operation, an empty set is returned. The system does not return an error as it cannot guarantee the item does not exist on other replicas.

", "ListDomains": "

The ListDomains operation lists all domains associated with the Access Key ID. It returns domain names up to the limit set by MaxNumberOfDomains. A NextToken is returned if there are more than MaxNumberOfDomains domains. Calling ListDomains successive times with the NextToken provided by the operation returns up to MaxNumberOfDomains more domain names with each successive operation call.

", - "PutAttributes": "

The PutAttributes operation creates or replaces attributes in an item. The client may specify new attributes using a combination of the Attribute.X.Name and Attribute.X.Value parameters. The client specifies the first attribute by the parameters Attribute.0.Name and Attribute.0.Value, the second attribute by the parameters Attribute.1.Name and Attribute.1.Value, and so on.

Attributes are uniquely identified in an item by their name/value combination. For example, a single item can have the attributes { \"first_name\", \"first_value\" } and { \"first_name\", second_value\" }. However, it cannot have two attribute instances where both the Attribute.X.Name and Attribute.X.Value are the same.

Optionally, the requestor can supply the Replace parameter for each individual attribute. Setting this value to true causes the new attribute value to replace the existing attribute value(s). For example, if an item has the attributes { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requestor calls PutAttributes using the attributes { 'b', '4' } with the Replace parameter set to true, the final attributes of the item are changed to { 'a', '1' } and { 'b', '4' }, which replaces the previous values of the 'b' attribute with the new value.

Using PutAttributes to replace attribute values that do not exist will not result in an error response.

You cannot specify an empty string as an attribute name.

Because Amazon SimpleDB makes multiple copies of client data and uses an eventual consistency update model, an immediate GetAttributes or Select operation (read) immediately after a PutAttributes or DeleteAttributes operation (write) might not return the updated data.

The following limitations are enforced for this operation:

  • 256 total attribute name-value pairs per item
  • One billion attributes per domain
  • 10 GB of total user data storage per domain

", + "PutAttributes": "

The PutAttributes operation creates or replaces attributes in an item. The client may specify new attributes using a combination of the Attribute.X.Name and Attribute.X.Value parameters. The client specifies the first attribute by the parameters Attribute.0.Name and Attribute.0.Value, the second attribute by the parameters Attribute.1.Name and Attribute.1.Value, and so on.

Attributes are uniquely identified in an item by their name/value combination. For example, a single item can have the attributes { \"first_name\", \"first_value\" } and { \"first_name\", second_value\" }. However, it cannot have two attribute instances where both the Attribute.X.Name and Attribute.X.Value are the same.

Optionally, the requestor can supply the Replace parameter for each individual attribute. Setting this value to true causes the new attribute value to replace the existing attribute value(s). For example, if an item has the attributes { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requestor calls PutAttributes using the attributes { 'b', '4' } with the Replace parameter set to true, the final attributes of the item are changed to { 'a', '1' } and { 'b', '4' }, which replaces the previous values of the 'b' attribute with the new value.

You cannot specify an empty string as an attribute name.

Because Amazon SimpleDB makes multiple copies of client data and uses an eventual consistency update model, an immediate GetAttributes or Select operation (read) immediately after a PutAttributes or DeleteAttributes operation (write) might not return the updated data.

The following limitations are enforced for this operation:

  • 256 total attribute name-value pairs per item
  • One billion attributes per domain
  • 10 GB of total user data storage per domain

", "Select": "

The Select operation returns a set of attributes for ItemNames that match the select expression. Select is similar to the standard SQL SELECT statement.

The total size of the response cannot exceed 1 MB in total size. Amazon SimpleDB automatically adjusts the number of items returned per page to enforce this limit. For example, if the client asks to retrieve 2500 items, but each individual item is 10 kB in size, the system returns 100 items and an appropriate NextToken so the client can access the next page of results.

For information on how to construct select expressions, see Using Select to Create Amazon SimpleDB Queries in the Developer Guide.

" }, "service": "Amazon SimpleDB is a web service providing the core database functions of data indexing and querying in the cloud. By offloading the time and effort associated with building and operating a web-scale database, SimpleDB provides developers the freedom to focus on application development.

A traditional, clustered relational database requires a sizable upfront capital outlay, is complex to design, and often requires extensive and repetitive database administration. Amazon SimpleDB is dramatically simpler, requiring no schema, automatically indexing your data and providing a simple API for storage and access. This approach eliminates the administrative burden of data modeling, index maintenance, and performance tuning. Developers gain access to this functionality within Amazon's proven computing environment, are able to scale instantly, and pay only for what they use.

Visit http://aws.amazon.com/simpledb/ for more information.

", @@ -28,6 +27,8 @@ "AttributeList": { "base": null, "refs": { + "DeletableItem$Attributes": null, + "DeleteAttributesRequest$Attributes": "A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data that can be assigned to items.", "GetAttributesResult$Attributes": "The list of attributes returned by the operation.", "Item$Attributes": "A list of attributes." } @@ -62,19 +63,6 @@ "refs": { } }, - "DeletableAttribute": { - "base": "

", - "refs": { - "DeletableAttributeList$member": null - } - }, - "DeletableAttributeList": { - "base": null, - "refs": { - "DeletableItem$Attributes": null, - "DeleteAttributesRequest$Attributes": "A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data that can be assigned to items." - } - }, "DeletableItem": { "base": null, "refs": { @@ -311,8 +299,6 @@ "BatchDeleteAttributesRequest$DomainName": "The name of the domain in which the attributes are being deleted.", "BatchPutAttributesRequest$DomainName": "The name of the domain in which the attributes are being stored.", "CreateDomainRequest$DomainName": "The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.", - "DeletableAttribute$Name": "The name of the attribute.", - "DeletableAttribute$Value": "The value of the attribute.", "DeletableItem$Name": null, "DeleteAttributesRequest$DomainName": "The name of the domain in which to perform the operation.", "DeleteAttributesRequest$ItemName": "The name of the item. Similar to rows on a spreadsheet, items represent individual objects that contain one or more value-attribute pairs.", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sdb/2009-04-15/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/sdb/2009-04-15/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/sdb/2009-04-15/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/sdb/2009-04-15/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/sns/2010-03-31/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/sns/2010-03-31/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/sns/2010-03-31/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/sns/2010-03-31/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/sns/2010-03-31/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/sns/2010-03-31/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/sqs/2012-11-05/api-2.json similarity index 76% rename from vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/sqs/2012-11-05/api-2.json index b30100f88..787bd49a8 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/sqs/2012-11-05/api-2.json @@ -1,13 +1,12 @@ { - "version":"2.0", "metadata":{ "apiVersion":"2012-11-05", "endpointPrefix":"sqs", - "protocol":"query", "serviceAbbreviation":"Amazon SQS", "serviceFullName":"Amazon Simple Queue Service", "signatureVersion":"v4", - "xmlNamespace":"http://queue.amazonaws.com/doc/2012-11-05/" + "xmlNamespace":"http://queue.amazonaws.com/doc/2012-11-05/", + "protocol":"query" }, "operations":{ "AddPermission":{ @@ -18,7 +17,15 @@ }, "input":{"shape":"AddPermissionRequest"}, "errors":[ - {"shape":"OverLimit"} + { + "shape":"OverLimit", + "error":{ + "code":"OverLimit", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "ChangeMessageVisibility":{ @@ -29,8 +36,19 @@ }, "input":{"shape":"ChangeMessageVisibilityRequest"}, "errors":[ - {"shape":"MessageNotInflight"}, - {"shape":"ReceiptHandleIsInvalid"} + { + "shape":"MessageNotInflight", + "error":{ + "code":"AWS.SimpleQueueService.MessageNotInflight", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ReceiptHandleIsInvalid", + "exception":true + } ] }, "ChangeMessageVisibilityBatch":{ @@ -45,10 +63,42 @@ "resultWrapper":"ChangeMessageVisibilityBatchResult" }, "errors":[ - {"shape":"TooManyEntriesInBatchRequest"}, - {"shape":"EmptyBatchRequest"}, - {"shape":"BatchEntryIdsNotDistinct"}, - {"shape":"InvalidBatchEntryId"} + { + "shape":"TooManyEntriesInBatchRequest", + "error":{ + "code":"AWS.SimpleQueueService.TooManyEntriesInBatchRequest", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EmptyBatchRequest", + "error":{ + "code":"AWS.SimpleQueueService.EmptyBatchRequest", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"BatchEntryIdsNotDistinct", + "error":{ + "code":"AWS.SimpleQueueService.BatchEntryIdsNotDistinct", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidBatchEntryId", + "error":{ + "code":"AWS.SimpleQueueService.InvalidBatchEntryId", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "CreateQueue":{ @@ -63,8 +113,24 @@ "resultWrapper":"CreateQueueResult" }, "errors":[ - {"shape":"QueueDeletedRecently"}, - {"shape":"QueueNameExists"} + { + "shape":"QueueDeletedRecently", + "error":{ + "code":"AWS.SimpleQueueService.QueueDeletedRecently", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"QueueNameExists", + "error":{ + "code":"QueueAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteMessage":{ @@ -75,8 +141,14 @@ }, "input":{"shape":"DeleteMessageRequest"}, "errors":[ - {"shape":"InvalidIdFormat"}, - {"shape":"ReceiptHandleIsInvalid"} + { + "shape":"InvalidIdFormat", + "exception":true + }, + { + "shape":"ReceiptHandleIsInvalid", + "exception":true + } ] }, "DeleteMessageBatch":{ @@ -91,10 +163,42 @@ "resultWrapper":"DeleteMessageBatchResult" }, "errors":[ - {"shape":"TooManyEntriesInBatchRequest"}, - {"shape":"EmptyBatchRequest"}, - {"shape":"BatchEntryIdsNotDistinct"}, - {"shape":"InvalidBatchEntryId"} + { + "shape":"TooManyEntriesInBatchRequest", + "error":{ + "code":"AWS.SimpleQueueService.TooManyEntriesInBatchRequest", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EmptyBatchRequest", + "error":{ + "code":"AWS.SimpleQueueService.EmptyBatchRequest", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"BatchEntryIdsNotDistinct", + "error":{ + "code":"AWS.SimpleQueueService.BatchEntryIdsNotDistinct", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidBatchEntryId", + "error":{ + "code":"AWS.SimpleQueueService.InvalidBatchEntryId", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DeleteQueue":{ @@ -117,7 +221,10 @@ "resultWrapper":"GetQueueAttributesResult" }, "errors":[ - {"shape":"InvalidAttributeName"} + { + "shape":"InvalidAttributeName", + "exception":true + } ] }, "GetQueueUrl":{ @@ -132,7 +239,15 @@ "resultWrapper":"GetQueueUrlResult" }, "errors":[ - {"shape":"QueueDoesNotExist"} + { + "shape":"QueueDoesNotExist", + "error":{ + "code":"AWS.SimpleQueueService.NonExistentQueue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ListDeadLetterSourceQueues":{ @@ -147,7 +262,15 @@ "resultWrapper":"ListDeadLetterSourceQueuesResult" }, "errors":[ - {"shape":"QueueDoesNotExist"} + { + "shape":"QueueDoesNotExist", + "error":{ + "code":"AWS.SimpleQueueService.NonExistentQueue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "ListQueues":{ @@ -170,8 +293,24 @@ }, "input":{"shape":"PurgeQueueRequest"}, "errors":[ - {"shape":"QueueDoesNotExist"}, - {"shape":"PurgeQueueInProgress"} + { + "shape":"QueueDoesNotExist", + "error":{ + "code":"AWS.SimpleQueueService.NonExistentQueue", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"PurgeQueueInProgress", + "error":{ + "code":"AWS.SimpleQueueService.PurgeQueueInProgress", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "ReceiveMessage":{ @@ -186,7 +325,15 @@ "resultWrapper":"ReceiveMessageResult" }, "errors":[ - {"shape":"OverLimit"} + { + "shape":"OverLimit", + "error":{ + "code":"OverLimit", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + } ] }, "RemovePermission":{ @@ -209,8 +356,19 @@ "resultWrapper":"SendMessageResult" }, "errors":[ - {"shape":"InvalidMessageContents"}, - {"shape":"UnsupportedOperation"} + { + "shape":"InvalidMessageContents", + "exception":true + }, + { + "shape":"UnsupportedOperation", + "error":{ + "code":"AWS.SimpleQueueService.UnsupportedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "SendMessageBatch":{ @@ -225,12 +383,60 @@ "resultWrapper":"SendMessageBatchResult" }, "errors":[ - {"shape":"TooManyEntriesInBatchRequest"}, - {"shape":"EmptyBatchRequest"}, - {"shape":"BatchEntryIdsNotDistinct"}, - {"shape":"BatchRequestTooLong"}, - {"shape":"InvalidBatchEntryId"}, - {"shape":"UnsupportedOperation"} + { + "shape":"TooManyEntriesInBatchRequest", + "error":{ + "code":"AWS.SimpleQueueService.TooManyEntriesInBatchRequest", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"EmptyBatchRequest", + "error":{ + "code":"AWS.SimpleQueueService.EmptyBatchRequest", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"BatchEntryIdsNotDistinct", + "error":{ + "code":"AWS.SimpleQueueService.BatchEntryIdsNotDistinct", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"BatchRequestTooLong", + "error":{ + "code":"AWS.SimpleQueueService.BatchRequestTooLong", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidBatchEntryId", + "error":{ + "code":"AWS.SimpleQueueService.InvalidBatchEntryId", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"UnsupportedOperation", + "error":{ + "code":"AWS.SimpleQueueService.UnsupportedOperation", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "SetQueueAttributes":{ @@ -241,7 +447,10 @@ }, "input":{"shape":"SetQueueAttributesRequest"}, "errors":[ - {"shape":"InvalidAttributeName"} + { + "shape":"InvalidAttributeName", + "exception":true + } ] } }, @@ -287,8 +496,7 @@ "shape":"String", "locationName":"Value" }, - "flattened":true, - "locationName":"Attribute" + "flattened":true }, "AttributeNameList":{ "type":"list", @@ -348,7 +556,8 @@ "member":{ "shape":"Binary", "locationName":"BinaryListValue" - } + }, + "flattened":true }, "Boolean":{"type":"boolean"}, "ChangeMessageVisibilityBatchRequest":{ @@ -657,12 +866,10 @@ "BinaryValue":{"shape":"Binary"}, "StringListValues":{ "shape":"StringList", - "flattened":true, "locationName":"StringListValue" }, "BinaryListValues":{ "shape":"BinaryList", - "flattened":true, "locationName":"BinaryListValue" }, "DataType":{"shape":"String"} @@ -922,7 +1129,8 @@ "member":{ "shape":"String", "locationName":"StringListValue" - } + }, + "flattened":true }, "TooManyEntriesInBatchRequest":{ "type":"structure", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/sqs/2012-11-05/docs-2.json similarity index 65% rename from vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/sqs/2012-11-05/docs-2.json index 3722552f8..1b52dcc92 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/sqs/2012-11-05/docs-2.json @@ -1,25 +1,24 @@ { - "version": "2.0", - "service": "

Welcome to the Amazon Simple Queue Service API Reference. This section describes who should read this guide, how the guide is organized, and other resources related to the Amazon Simple Queue Service (Amazon SQS).

Amazon SQS offers reliable and scalable hosted queues for storing messages as they travel between computers. By using Amazon SQS, you can move data between distributed components of your applications that perform different tasks without losing messages or requiring each component to be always available.

Helpful Links:

We also provide SDKs that enable you to access Amazon SQS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as:

  • Cryptographically signing your service requests

  • Retrying requests

  • Handling error responses

For a list of available SDKs, go to Tools for Amazon Web Services.

", "operations": { - "AddPermission": "

Adds a permission to a queue for a specific principal. This allows for sharing access to the queue.

When you create a queue, you have full control access rights for the queue. Only you (as owner of the queue) can grant or deny permissions to the queue. For more information about these permissions, see Shared Queues in the Amazon SQS Developer Guide.

AddPermission writes an Amazon SQS-generated policy. If you want to write your own policy, use SetQueueAttributes to upload your policy. For more information about writing your own policy, see Using The Access Policy Language in the Amazon SQS Developer Guide.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", - "ChangeMessageVisibility": "

Changes the visibility timeout of a specified message in a queue to a new value. The maximum allowed timeout value you can set the value to is 12 hours. This means you can't extend the timeout of a message in an existing queue to more than a total visibility timeout of 12 hours. (For more information visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.)

For example, let's say you have a message and its default message visibility timeout is 5 minutes. After 3 minutes, you call ChangeMessageVisiblity with a timeout of 10 minutes. At that time, the timeout for the message would be extended by 10 minutes beyond the time of the ChangeMessageVisibility call. This results in a total visibility timeout of 13 minutes. You can continue to call ChangeMessageVisibility to extend the visibility timeout to a maximum of 12 hours. If you try to extend beyond 12 hours, the request will be rejected.

There is a 120,000 limit for the number of inflight messages per queue. Messages are inflight after they have been received from the queue by a consuming component, but have not yet been deleted from the queue. If you reach the 120,000 limit, you will receive an OverLimit error message from Amazon SQS. To help avoid reaching the limit, you should delete the messages from the queue after they have been processed. You can also increase the number of queues you use to process the messages.

If you attempt to set the VisibilityTimeout to an amount more than the maximum time left, Amazon SQS returns an error. It will not automatically recalculate and increase the timeout to the maximum time remaining.

Unlike with a queue, when you change the visibility timeout for a specific message, that timeout value is applied immediately but is not saved in memory for that message. If you don't delete a message after it is received, the visibility timeout for the message the next time it is received reverts to the original timeout value, not the value you set with the ChangeMessageVisibility action.

", - "ChangeMessageVisibilityBatch": "

Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility. The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", - "CreateQueue": "

Creates a new queue, or returns the URL of an existing one. When you request CreateQueue, you provide a name for the queue. To successfully create a new queue, you must provide a name that is unique within the scope of your own queues.

If you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

You may pass one or more attributes in the request. If you do not provide a value for any attribute, the queue will have the default value for that attribute.

Use GetQueueUrl to get a queue's URL. GetQueueUrl requires only the QueueName parameter.

If you provide the name of an existing queue, along with the exact names and values of all the queue's attributes, CreateQueue returns the queue URL for the existing queue. If the queue name, attribute names, or attribute values do not match an existing queue, CreateQueue returns an error.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", + "AddPermission": "

Adds a permission to a queue for a specific principal. This allows for sharing access to the queue.

When you create a queue, you have full control access rights for the queue. Only you (as owner of the queue) can grant or deny permissions to the queue. For more information about these permissions, see Shared Queues in the Amazon SQS Developer Guide.

AddPermission writes an Amazon SQS-generated policy. If you want to write your own policy, use SetQueueAttributes to upload your policy. For more information about writing your own policy, see Using The Access Policy Language in the Amazon SQS Developer Guide.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", + "ChangeMessageVisibility": "

Changes the visibility timeout of a specified message in a queue to a new value. The maximum allowed timeout value you can set the value to is 12 hours. This means you can't extend the timeout of a message in an existing queue to more than a total visibility timeout of 12 hours. (For more information visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.)

For example, let's say you have a message and its default message visibility timeout is 30 minutes. You could call ChangeMessageVisiblity with a value of two hours and the effective timeout would be two hours and 30 minutes. When that time comes near you could again extend the time out by calling ChangeMessageVisiblity, but this time the maximum allowed timeout would be 9 hours and 30 minutes.

There is a 120,000 limit for the number of inflight messages per queue. Messages are inflight after they have been received from the queue by a consuming component, but have not yet been deleted from the queue. If you reach the 120,000 limit, you will receive an OverLimit error message from Amazon SQS. To help avoid reaching the limit, you should delete the messages from the queue after they have been processed. You can also increase the number of queues you use to process the messages.

If you attempt to set the VisibilityTimeout to an amount more than the maximum time left, Amazon SQS returns an error. It will not automatically recalculate and increase the timeout to the maximum time remaining. Unlike with a queue, when you change the visibility timeout for a specific message, that timeout value is applied immediately but is not saved in memory for that message. If you don't delete a message after it is received, the visibility timeout for the message the next time it is received reverts to the original timeout value, not the value you set with the ChangeMessageVisibility action.", + "ChangeMessageVisibilityBatch": "

Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility. The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200. Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", + "CreateQueue": "

Creates a new queue, or returns the URL of an existing one. When you request CreateQueue, you provide a name for the queue. To successfully create a new queue, you must provide a name that is unique within the scope of your own queues.

If you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

You may pass one or more attributes in the request. If you do not provide a value for any attribute, the queue will have the default value for that attribute. Permitted attributes are the same that can be set using SetQueueAttributes.

Use GetQueueUrl to get a queue's URL. GetQueueUrl requires only the QueueName parameter.

If you provide the name of an existing queue, along with the exact names and values of all the queue's attributes, CreateQueue returns the queue URL for the existing queue. If the queue name, attribute names, or attribute values do not match an existing queue, CreateQueue returns an error.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", "DeleteMessage": "

Deletes the specified message from the specified queue. You specify the message by using the message's receipt handle and not the message ID you received when you sent the message. Even if the message is locked by another reader due to the visibility timeout setting, it is still deleted from the queue. If you leave a message in the queue for longer than the queue's configured retention period, Amazon SQS automatically deletes it.

The receipt handle is associated with a specific instance of receiving the message. If you receive a message more than once, the receipt handle you get each time you receive the message is different. When you request DeleteMessage, if you don't provide the most recently received receipt handle for the message, the request will still succeed, but the message might not be deleted.

It is possible you will receive a message even after you have deleted it. This might happen on rare occasions if one of the servers storing a copy of the message is unavailable when you request to delete the message. The copy remains on the server and might be returned to you again on a subsequent receive request. You should create your system to be idempotent so that receiving a particular message more than once is not a problem.

", - "DeleteMessageBatch": "

Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage. The result of the delete action on each message is reported individually in the response.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", + "DeleteMessageBatch": "

Deletes up to ten messages from the specified queue. This is a batch version of DeleteMessage. The result of the delete action on each message is reported individually in the response.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", "DeleteQueue": "

Deletes the queue specified by the queue URL, regardless of whether the queue is empty. If the specified queue does not exist, Amazon SQS returns a successful response.

Use DeleteQueue with care; once you delete your queue, any messages in the queue are no longer available.

When you delete a queue, the deletion process takes up to 60 seconds. Requests you send involving that queue during the 60 seconds might succeed. For example, a SendMessage request might succeed, but after the 60 seconds, the queue and that message you sent no longer exist. Also, when you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

We reserve the right to delete queues that have had no activity for more than 30 days. For more information, see How Amazon SQS Queues Work in the Amazon SQS Developer Guide.

", - "GetQueueAttributes": "

Gets attributes for the specified queue.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", + "GetQueueAttributes": "

Gets attributes for the specified queue. The following attributes are supported:

  • All - returns all values.
  • ApproximateNumberOfMessages - returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide.
  • ApproximateNumberOfMessagesNotVisible - returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide.
  • VisibilityTimeout - returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.
  • CreatedTimestamp - returns the time when the queue was created (epoch time in seconds).
  • LastModifiedTimestamp - returns the time when the queue was last changed (epoch time in seconds).
  • Policy - returns the queue's policy.
  • MaximumMessageSize - returns the limit of how many bytes a message can contain before Amazon SQS rejects it.
  • MessageRetentionPeriod - returns the number of seconds Amazon SQS retains a message.
  • QueueArn - returns the queue's Amazon resource name (ARN).
  • ApproximateNumberOfMessagesDelayed - returns the approximate number of messages that are pending to be added to the queue.
  • DelaySeconds - returns the default delay on the queue in seconds.
  • ReceiveMessageWaitTimeSeconds - returns the time for which a ReceiveMessage call will wait for a message to arrive.
  • RedrivePolicy - returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully. Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", "GetQueueUrl": "

Returns the URL of an existing queue. This action provides a simple way to retrieve the URL of an Amazon SQS queue.

To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue's owner. The queue's owner must grant you permission to access the queue. For more information about shared queue access, see AddPermission or go to Shared Queues in the Amazon SQS Developer Guide.

", "ListDeadLetterSourceQueues": "

Returns a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue.

For more information about using dead letter queues, see Using Amazon SQS Dead Letter Queues.

", "ListQueues": "

Returns a list of your queues. The maximum number of queues that can be returned is 1000. If you specify a value for the optional QueueNamePrefix parameter, only queues with a name beginning with the specified value are returned.

", - "PurgeQueue": "

Deletes the messages in a queue specified by the queue URL.

When you use the PurgeQueue API, the deleted messages in the queue cannot be retrieved.

When you purge a queue, the message deletion process takes up to 60 seconds. All messages sent to the queue before calling PurgeQueue will be deleted; messages sent to the queue while it is being purged may be deleted. While the queue is being purged, messages sent to the queue before PurgeQueue was called may be received, but will be deleted within the next minute.

", + "PurgeQueue": "

Deletes the messages in a queue specified by the queue URL.

When you use the PurgeQueue API, the deleted messages in the queue cannot be retrieved.

When you purge a queue, the message deletion process takes up to 60 seconds. All messages sent to the queue before calling PurgeQueue will be deleted; messages sent to the queue while it is being purged may be deleted. While the queue is being purged, messages sent to the queue before PurgeQueue was called may be received, but will be deleted within the next minute.

", "ReceiveMessage": "

Retrieves one or more messages, with a maximum limit of 10 messages, from the specified queue. Long poll support is enabled by using the WaitTimeSeconds parameter. For more information, see Amazon SQS Long Poll in the Amazon SQS Developer Guide.

Short poll is the default behavior where a weighted random set of machines is sampled on a ReceiveMessage call. This means only the messages on the sampled machines are returned. If the number of messages in the queue is small (less than 1000), it is likely you will get fewer messages than you requested per ReceiveMessage call. If the number of messages in the queue is extremely small, you might not receive any messages in a particular ReceiveMessage response; in which case you should repeat the request.

For each message returned, the response includes the following:

  • Message body

  • MD5 digest of the message body. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

  • Message ID you received when you sent the message to the queue.

  • Receipt handle.

  • Message attributes.

  • MD5 digest of the message attributes.

The receipt handle is the identifier you must provide when deleting the message. For more information, see Queue and Message Identifiers in the Amazon SQS Developer Guide.

You can provide the VisibilityTimeout parameter in your request, which will be applied to the messages that Amazon SQS returns in the response. If you do not include the parameter, the overall visibility timeout for the queue is used for the returned messages. For more information, see Visibility Timeout in the Amazon SQS Developer Guide.

Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

", "RemovePermission": "

Revokes any permissions in the queue policy that matches the specified Label parameter. Only the owner of the queue can remove permissions.

", "SendMessage": "

Delivers a message to the specified queue. With Amazon SQS, you now have the ability to send large payload messages that are up to 256KB (262,144 bytes) in size. To send large payloads, you must use an AWS SDK that supports SigV4 signing. To verify whether SigV4 is supported for an AWS SDK, check the SDK release notes.

The following list shows the characters (in Unicode) allowed in your message, according to the W3C XML specification. For more information, go to http://www.w3.org/TR/REC-xml/#charsets If you send any characters not included in the list, your request will be rejected.

#x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF]

", - "SendMessageBatch": "

Delivers up to ten messages to the specified queue. This is a batch version of SendMessage. The result of the send action on each message is reported individually in the response. The maximum allowed individual message size is 256 KB (262,144 bytes).

The maximum total payload size (i.e., the sum of all a batch's individual message lengths) is also 256 KB (262,144 bytes).

If the DelaySeconds parameter is not specified for an entry, the default for the queue is used.

The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification. For more information, go to http://www.faqs.org/rfcs/rfc1321.html. If you send any characters that are not included in the list, your request will be rejected.

#x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF]

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

", - "SetQueueAttributes": "

Sets the value of one or more queue attributes. When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes.

Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

" + "SendMessageBatch": "

Delivers up to ten messages to the specified queue. This is a batch version of SendMessage. The result of the send action on each message is reported individually in the response. The maximum allowed individual message size is 256 KB (262,144 bytes).

The maximum total payload size (i.e., the sum of all a batch's individual message lengths) is also 256 KB (262,144 bytes).

If the DelaySeconds parameter is not specified for an entry, the default for the queue is used.

The following list shows the characters (in Unicode) that are allowed in your message, according to the W3C XML specification. For more information, go to http://www.faqs.org/rfcs/rfc1321.html. If you send any characters that are not included in the list, your request will be rejected.

#x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF]

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200. Some API actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&Attribute.1=this

&Attribute.2=that

", + "SetQueueAttributes": "

Sets the value of one or more queue attributes. When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes.

Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully." }, + "service": "

Welcome to the Amazon Simple Queue Service API Reference. This section describes who should read this guide, how the guide is organized, and other resources related to the Amazon Simple Queue Service (Amazon SQS).

Amazon SQS offers reliable and scalable hosted queues for storing messages as they travel between computers. By using Amazon SQS, you can move data between distributed components of your applications that perform different tasks without losing messages or requiring each component to be always available.

Helpful Links:

We also provide SDKs that enable you to access Amazon SQS from your preferred programming language. The SDKs contain functionality that automatically takes care of tasks such as:

  • Cryptographically signing your service requests
  • Retrying requests
  • Handling error responses

For a list of available SDKs, go to Tools for Amazon Web Services.

", "shapes": { "AWSAccountIdList": { "base": null, @@ -34,24 +33,24 @@ } }, "AddPermissionRequest": { - "base": "

", + "base": null, "refs": { } }, "AttributeMap": { "base": null, "refs": { - "CreateQueueRequest$Attributes": "

A map of attributes with their corresponding values.

The following lists the names, descriptions, and values of the special request parameters the CreateQueue action uses:

  • DelaySeconds - The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 (zero).

  • MaximumMessageSize - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).

  • MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).

  • Policy - The queue's policy. A valid AWS policy. For more information about policy structure, see Overview of AWS IAM Policies in the Amazon IAM User Guide.

  • ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call will wait for a message to arrive. An integer from 0 to 20 (seconds). The default for this attribute is 0.

  • RedrivePolicy - The parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

  • VisibilityTimeout - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.

Any other valid special request parameters that are specified (such as ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored.

", + "CreateQueueRequest$Attributes": "

A map of attributes with their corresponding values.

The following lists the names, descriptions, and values of the special request parameters the CreateQueue action uses:

  • DelaySeconds - The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 (zero).
  • MaximumMessageSize - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
  • MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
  • Policy - The queue's policy. A valid AWS policy. For more information about policy structure, see Overview of AWS IAM Policies in the Amazon IAM User Guide.
  • ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call will wait for a message to arrive. An integer from 0 to 20 (seconds). The default for this attribute is 0.
  • VisibilityTimeout - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.

", "GetQueueAttributesResult$Attributes": "

A map of attributes to the respective values.

", "Message$Attributes": "

SenderId, SentTimestamp, ApproximateReceiveCount, and/or ApproximateFirstReceiveTimestamp. SentTimestamp and ApproximateFirstReceiveTimestamp are each returned as an integer representing the epoch time in milliseconds.

", - "SetQueueAttributesRequest$Attributes": "

A map of attributes to set.

The following lists the names, descriptions, and values of the special request parameters the SetQueueAttributes action uses:

  • DelaySeconds - The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 (zero).

  • MaximumMessageSize - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).

  • MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).

  • Policy - The queue's policy. A valid AWS policy. For more information about policy structure, see Overview of AWS IAM Policies in the Amazon IAM User Guide.

  • ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call will wait for a message to arrive. An integer from 0 to 20 (seconds). The default for this attribute is 0.

  • VisibilityTimeout - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.

  • RedrivePolicy - The parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

Any other valid special request parameters that are specified (such as ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored.

" + "SetQueueAttributesRequest$Attributes": "

A map of attributes to set.

The following lists the names, descriptions, and values of the special request parameters the SetQueueAttributes action uses:

  • DelaySeconds - The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 (zero).
  • MaximumMessageSize - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
  • MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
  • Policy - The queue's policy. A valid AWS policy. For more information about policy structure, see Overview of AWS IAM Policies in the Amazon IAM User Guide.
  • ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call will wait for a message to arrive. An integer from 0 to 20 (seconds). The default for this attribute is 0.
  • VisibilityTimeout - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.
  • RedrivePolicy - The parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

" } }, "AttributeNameList": { "base": null, "refs": { - "GetQueueAttributesRequest$AttributeNames": "

A list of attributes to retrieve information for. The following attributes are supported:

  • All - returns all values.

  • ApproximateNumberOfMessages - returns the approximate number of visible messages in a queue. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide.

  • ApproximateNumberOfMessagesNotVisible - returns the approximate number of messages that are not timed-out and not deleted. For more information, see Resources Required to Process Messages in the Amazon SQS Developer Guide.

  • VisibilityTimeout - returns the visibility timeout for the queue. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.

  • CreatedTimestamp - returns the time when the queue was created (epoch time in seconds).

  • LastModifiedTimestamp - returns the time when the queue was last changed (epoch time in seconds).

  • Policy - returns the queue's policy.

  • MaximumMessageSize - returns the limit of how many bytes a message can contain before Amazon SQS rejects it.

  • MessageRetentionPeriod - returns the number of seconds Amazon SQS retains a message.

  • QueueArn - returns the queue's Amazon resource name (ARN).

  • ApproximateNumberOfMessagesDelayed - returns the approximate number of messages that are pending to be added to the queue.

  • DelaySeconds - returns the default delay on the queue in seconds.

  • ReceiveMessageWaitTimeSeconds - returns the time for which a ReceiveMessage call will wait for a message to arrive.

  • RedrivePolicy - returns the parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

", - "ReceiveMessageRequest$AttributeNames": "

A list of attributes that need to be returned along with each message. These attributes include:

  • All - returns all values.

  • ApproximateFirstReceiveTimestamp - returns the time when the message was first received from the queue (epoch time in milliseconds).

  • ApproximateReceiveCount - returns the number of times a message has been received from the queue but not deleted.

  • SenderId - returns the AWS account number (or the IP address, if anonymous access is allowed) of the sender.

  • SentTimestamp - returns the time when the message was sent to the queue (epoch time in milliseconds).

Any other valid special request parameters that are specified (such as ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, DelaySeconds, LastModifiedTimestamp, MaximumMessageSize, MessageRetentionPeriod, Policy, QueueArn, ReceiveMessageWaitTimeSeconds, RedrivePolicy, and VisibilityTimeout) will be ignored.

" + "GetQueueAttributesRequest$AttributeNames": "

A list of attributes to retrieve information for.

", + "ReceiveMessageRequest$AttributeNames": "

A list of attributes that need to be returned along with each message.

The following lists the names and descriptions of the attributes that can be returned:

  • All - returns all values.
  • ApproximateFirstReceiveTimestamp - returns the time when the message was first received from the queue (epoch time in milliseconds).
  • ApproximateReceiveCount - returns the number of times a message has been received from the queue but not deleted.
  • SenderId - returns the AWS account number (or the IP address, if anonymous access is allowed) of the sender.
  • SentTimestamp - returns the time when the message was sent to the queue (epoch time in milliseconds).
" } }, "BatchEntryIdsNotDistinct": { @@ -98,12 +97,12 @@ } }, "ChangeMessageVisibilityBatchRequest": { - "base": "

", + "base": null, "refs": { } }, "ChangeMessageVisibilityBatchRequestEntry": { - "base": "

Encloses a receipt handle and an entry id for each message in ChangeMessageVisibilityBatch.

All of the following parameters are list parameters that must be prefixed with ChangeMessageVisibilityBatchRequestEntry.n, where n is an integer value starting with 1. For example, a parameter list for this action might look like this:

Your_Receipt_Handle]]>

", + "base": "

Encloses a receipt handle and an entry id for each message in ChangeMessageVisibilityBatch.

All of the following parameters are list parameters that must be prefixed with ChangeMessageVisibilityBatchRequestEntry.n, where n is an integer value starting with 1. For example, a parameter list for this action might look like this:

&ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2

&ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=Your_Receipt_Handle

&ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45

", "refs": { "ChangeMessageVisibilityBatchRequestEntryList$member": null } @@ -137,7 +136,7 @@ } }, "CreateQueueRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -147,7 +146,7 @@ } }, "DeleteMessageBatchRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -181,12 +180,12 @@ } }, "DeleteMessageRequest": { - "base": "

", + "base": null, "refs": { } }, "DeleteQueueRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -196,17 +195,17 @@ } }, "GetQueueAttributesRequest": { - "base": "

", + "base": null, "refs": { } }, "GetQueueAttributesResult": { - "base": "

A list of returned queue attributes.

", + "base": "A list of returned queue attributes.", "refs": { } }, "GetQueueUrlRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -248,22 +247,22 @@ } }, "ListDeadLetterSourceQueuesRequest": { - "base": "

", + "base": null, "refs": { } }, "ListDeadLetterSourceQueuesResult": { - "base": "

A list of your dead letter source queues.

", + "base": "A list of your dead letter source queues.", "refs": { } }, "ListQueuesRequest": { - "base": "

", + "base": null, "refs": { } }, "ListQueuesResult": { - "base": "

A list of your queues.

", + "base": "A list of your queues.", "refs": { } }, @@ -290,7 +289,7 @@ "MessageAttributeNameList": { "base": null, "refs": { - "ReceiveMessageRequest$MessageAttributeNames": "

The name of the message attribute, where N is the index. The message attribute name can contain the following characters: A-Z, a-z, 0-9, underscore (_), hyphen (-), and period (.). The name must not start or end with a period, and it should not have successive periods. The name is case sensitive and must be unique among all attribute names for the message. The name can be up to 256 characters long. The name cannot start with \"AWS.\" or \"Amazon.\" (or any variations in casing), because these prefixes are reserved for use by Amazon Web Services.

When using ReceiveMessage, you can send a list of attribute names to receive, or you can return all of the attributes by specifying \"All\" or \".*\" in your request. You can also use \"bar.*\" to return all message attributes starting with the \"bar\" prefix.

" + "ReceiveMessageRequest$MessageAttributeNames": "

The name of the message attribute, where N is the index. The message attribute name can contain the following characters: A-Z, a-z, 0-9, underscore (_), hyphen (-), and period (.). The name must not start or end with a period, and it should not have successive periods. The name is case sensitive and must be unique among all attribute names for the message. The name can be up to 256 characters long. The name cannot start with \"AWS.\" or \"Amazon.\" (or any variations in casing), because these prefixes are reserved for use by Amazon Web Services.

When using ReceiveMessage, you can send a list of attribute names to receive, or you can return all of the attributes by specifying \"All\" or \".*\" in your request. You can also use \"foo.*\" to return all message attributes starting with the \"foo\" prefix.

" } }, "MessageAttributeValue": { @@ -321,14 +320,14 @@ } }, "PurgeQueueRequest": { - "base": "

", + "base": null, "refs": { } }, "QueueAttributeName": { "base": null, "refs": { - "AttributeMap$key": null, + "AttributeMap$key": "

The name of a queue attribute.

", "AttributeNameList$member": null } }, @@ -350,7 +349,7 @@ "QueueUrlList": { "base": null, "refs": { - "ListDeadLetterSourceQueuesResult$queueUrls": "

A list of source queue URLs that have the RedrivePolicy queue attribute configured with a dead letter queue.

", + "ListDeadLetterSourceQueuesResult$queueUrls": "A list of source queue URLs that have the RedrivePolicy queue attribute configured with a dead letter queue.", "ListQueuesResult$QueueUrls": "

A list of queue URLs, up to 1000 entries.

" } }, @@ -360,22 +359,22 @@ } }, "ReceiveMessageRequest": { - "base": "

", + "base": null, "refs": { } }, "ReceiveMessageResult": { - "base": "

A list of received messages.

", + "base": "A list of received messages.", "refs": { } }, "RemovePermissionRequest": { - "base": "

", + "base": null, "refs": { } }, "SendMessageBatchRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -409,7 +408,7 @@ } }, "SendMessageRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -419,7 +418,7 @@ } }, "SetQueueAttributesRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -428,33 +427,33 @@ "refs": { "AWSAccountIdList$member": null, "ActionNameList$member": null, - "AddPermissionRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "AddPermissionRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", "AddPermissionRequest$Label": "

The unique identification of the permission you're setting (e.g., AliceSendMessage). Constraints: Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.

", - "AttributeMap$value": null, + "AttributeMap$value": "

The value of a queue attribute.

", "BatchResultErrorEntry$Id": "

The id of an entry in a batch request.

", "BatchResultErrorEntry$Code": "

An error code representing why the action failed on this entry.

", "BatchResultErrorEntry$Message": "

A message explaining why the action failed on this entry.

", - "ChangeMessageVisibilityBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "ChangeMessageVisibilityBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", "ChangeMessageVisibilityBatchRequestEntry$Id": "

An identifier for this particular receipt handle. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.

", "ChangeMessageVisibilityBatchRequestEntry$ReceiptHandle": "

A receipt handle.

", "ChangeMessageVisibilityBatchResultEntry$Id": "

Represents a message whose visibility timeout has been changed successfully.

", - "ChangeMessageVisibilityRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "ChangeMessageVisibilityRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", "ChangeMessageVisibilityRequest$ReceiptHandle": "

The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.

", - "CreateQueueRequest$QueueName": "

The name for the queue to be created.

Queue names are case-sensitive.

", + "CreateQueueRequest$QueueName": "

The name for the queue to be created.

", "CreateQueueResult$QueueUrl": "

The URL for the created Amazon SQS queue.

", - "DeleteMessageBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "DeleteMessageBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", "DeleteMessageBatchRequestEntry$Id": "

An identifier for this particular receipt handle. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.

", "DeleteMessageBatchRequestEntry$ReceiptHandle": "

A receipt handle.

", "DeleteMessageBatchResultEntry$Id": "

Represents a successfully deleted message.

", - "DeleteMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "DeleteMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", "DeleteMessageRequest$ReceiptHandle": "

The receipt handle associated with the message to delete.

", - "DeleteQueueRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "GetQueueAttributesRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "GetQueueUrlRequest$QueueName": "

The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.

Queue names are case-sensitive.

", + "DeleteQueueRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", + "GetQueueAttributesRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", + "GetQueueUrlRequest$QueueName": "

The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.

", "GetQueueUrlRequest$QueueOwnerAWSAccountId": "

The AWS account ID of the account that created the queue.

", "GetQueueUrlResult$QueueUrl": "

The URL for the queue.

", - "ListDeadLetterSourceQueuesRequest$QueueUrl": "

The queue URL of a dead letter queue.

Queue URLs are case-sensitive.

", - "ListQueuesRequest$QueueNamePrefix": "

A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.

Queue names are case-sensitive.

", + "ListDeadLetterSourceQueuesRequest$QueueUrl": "The queue URL of a dead letter queue.", + "ListQueuesRequest$QueueNamePrefix": "

A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.

", "Message$MessageId": "

A unique identifier for the message. Message IDs are considered unique across all AWS accounts for an extended period of time.

", "Message$ReceiptHandle": "

An identifier associated with the act of receiving the message. A new receipt handle is returned every time you receive a message. When deleting a message, you provide the last received receipt handle to delete the message.

", "Message$MD5OfBody": "

An MD5 digest of the non-URL-encoded message body string.

", @@ -462,25 +461,25 @@ "Message$MD5OfMessageAttributes": "

An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

", "MessageAttributeMap$key": null, "MessageAttributeValue$StringValue": "

Strings are Unicode with UTF8 binary encoding. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

", - "MessageAttributeValue$DataType": "

Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue.

You can also append custom labels. For more information, see Message Attribute Data Types.

", - "PurgeQueueRequest$QueueUrl": "

The queue URL of the queue to delete the messages from when using the PurgeQueue API.

Queue URLs are case-sensitive.

", + "MessageAttributeValue$DataType": "

Amazon SQS supports the following logical data types: String, Number, and Binary. In addition, you can append your own custom labels. For more information, see Message Attribute Data Types.

", + "PurgeQueueRequest$QueueUrl": "

The queue URL of the queue to delete the messages from when using the PurgeQueue API.

", "QueueUrlList$member": null, - "ReceiveMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", - "RemovePermissionRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "ReceiveMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", + "RemovePermissionRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", "RemovePermissionRequest$Label": "

The identification of the permission to remove. This is the label added with the AddPermission action.

", - "SendMessageBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "SendMessageBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", "SendMessageBatchRequestEntry$Id": "

An identifier for the message in this batch. This is used to communicate the result. Note that the Ids of a batch request need to be unique within the request.

", "SendMessageBatchRequestEntry$MessageBody": "

Body of the message.

", "SendMessageBatchResultEntry$Id": "

An identifier for the message in this batch.

", "SendMessageBatchResultEntry$MessageId": "

An identifier for the message.

", "SendMessageBatchResultEntry$MD5OfMessageBody": "

An MD5 digest of the non-URL-encoded message body string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

", "SendMessageBatchResultEntry$MD5OfMessageAttributes": "

An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message batch correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

", - "SendMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "SendMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", "SendMessageRequest$MessageBody": "

The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.

", "SendMessageResult$MD5OfMessageBody": "

An MD5 digest of the non-URL-encoded message body string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

", "SendMessageResult$MD5OfMessageAttributes": "

An MD5 digest of the non-URL-encoded message attribute string. This can be used to verify that Amazon SQS received the message correctly. Amazon SQS first URL decodes the message before creating the MD5 digest. For information about MD5, go to http://www.faqs.org/rfcs/rfc1321.html.

", "SendMessageResult$MessageId": "

An element containing the message ID of the message sent to the queue. For more information, see Queue and Message Identifiers in the Amazon SQS Developer Guide.

", - "SetQueueAttributesRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

Queue URLs are case-sensitive.

", + "SetQueueAttributesRequest$QueueUrl": "

The URL of the Amazon SQS queue to take action on.

", "StringList$member": null } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/sqs/2012-11-05/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/sqs/2012-11-05/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/apis/ssm/2014-11-06/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/ssm/2014-11-06/api-2.json new file mode 100644 index 000000000..534418d77 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/ssm/2014-11-06/api-2.json @@ -0,0 +1,1047 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2014-11-06", + "endpointPrefix":"ssm", + "jsonVersion":"1.1", + "serviceAbbreviation":"Amazon SSM", + "serviceFullName":"Amazon Simple Systems Management Service", + "signatureVersion":"v4", + "targetPrefix":"AmazonSSM", + "protocol":"json" + }, + "operations":{ + "CreateAssociation":{ + "name":"CreateAssociation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAssociationRequest"}, + "output":{"shape":"CreateAssociationResult"}, + "errors":[ + { + "shape":"AssociationAlreadyExists", + "error":{ + "code":"AssociationAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AssociationLimitExceeded", + "error":{ + "code":"AssociationLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidDocument", + "error":{ + "code":"InvalidDocument", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInstanceId", + "error":{ + "code":"InvalidInstanceId", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } + ] + }, + "CreateAssociationBatch":{ + "name":"CreateAssociationBatch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAssociationBatchRequest"}, + "output":{"shape":"CreateAssociationBatchResult"}, + "errors":[ + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidDocument", + "error":{ + "code":"InvalidDocument", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInstanceId", + "error":{ + "code":"InvalidInstanceId", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DuplicateInstanceId", + "error":{ + "code":"DuplicateInstanceId", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AssociationLimitExceeded", + "error":{ + "code":"AssociationLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "CreateDocument":{ + "name":"CreateDocument", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateDocumentRequest"}, + "output":{"shape":"CreateDocumentResult"}, + "errors":[ + { + "shape":"DocumentAlreadyExists", + "error":{ + "code":"DocumentAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"MaxDocumentSizeExceeded", + "error":{ + "code":"MaxDocumentSizeExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidDocumentContent", + "error":{ + "code":"InvalidDocumentContent", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"DocumentLimitExceeded", + "error":{ + "code":"DocumentLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "DeleteAssociation":{ + "name":"DeleteAssociation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAssociationRequest"}, + "output":{"shape":"DeleteAssociationResult"}, + "errors":[ + { + "shape":"AssociationDoesNotExist", + "error":{ + "code":"AssociationDoesNotExist", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidDocument", + "error":{ + "code":"InvalidDocument", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInstanceId", + "error":{ + "code":"InvalidInstanceId", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TooManyUpdates", + "error":{ + "code":"TooManyUpdates", + "httpStatusCode":429, + "senderFault":true + }, + "exception":true + } + ] + }, + "DeleteDocument":{ + "name":"DeleteDocument", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteDocumentRequest"}, + "output":{"shape":"DeleteDocumentResult"}, + "errors":[ + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidDocument", + "error":{ + "code":"InvalidDocument", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AssociatedInstances", + "error":{ + "code":"AssociatedInstances", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "DescribeAssociation":{ + "name":"DescribeAssociation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAssociationRequest"}, + "output":{"shape":"DescribeAssociationResult"}, + "errors":[ + { + "shape":"AssociationDoesNotExist", + "error":{ + "code":"AssociationDoesNotExist", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidDocument", + "error":{ + "code":"InvalidDocument", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidInstanceId", + "error":{ + "code":"InvalidInstanceId", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } + ] + }, + "DescribeDocument":{ + "name":"DescribeDocument", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeDocumentRequest"}, + "output":{"shape":"DescribeDocumentResult"}, + "errors":[ + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidDocument", + "error":{ + "code":"InvalidDocument", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } + ] + }, + "GetDocument":{ + "name":"GetDocument", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetDocumentRequest"}, + "output":{"shape":"GetDocumentResult"}, + "errors":[ + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidDocument", + "error":{ + "code":"InvalidDocument", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + } + ] + }, + "ListAssociations":{ + "name":"ListAssociations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAssociationsRequest"}, + "output":{"shape":"ListAssociationsResult"}, + "errors":[ + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "ListDocuments":{ + "name":"ListDocuments", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDocumentsRequest"}, + "output":{"shape":"ListDocumentsResult"}, + "errors":[ + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidNextToken", + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + ] + }, + "UpdateAssociationStatus":{ + "name":"UpdateAssociationStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateAssociationStatusRequest"}, + "output":{"shape":"UpdateAssociationStatusResult"}, + "errors":[ + { + "shape":"InternalServerError", + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + { + "shape":"InvalidInstanceId", + "error":{ + "code":"InvalidInstanceId", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidDocument", + "error":{ + "code":"InvalidDocument", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"AssociationDoesNotExist", + "error":{ + "code":"AssociationDoesNotExist", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + { + "shape":"StatusUnchanged", + "error":{ + "code":"StatusUnchanged", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"TooManyUpdates", + "error":{ + "code":"TooManyUpdates", + "httpStatusCode":429, + "senderFault":true + }, + "exception":true + } + ] + } + }, + "shapes":{ + "AssociatedInstances":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"AssociatedInstances", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "Association":{ + "type":"structure", + "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"} + } + }, + "AssociationAlreadyExists":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"AssociationAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "AssociationDescription":{ + "type":"structure", + "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"}, + "Date":{"shape":"DateTime"}, + "Status":{"shape":"AssociationStatus"} + } + }, + "AssociationDescriptionList":{ + "type":"list", + "member":{ + "shape":"AssociationDescription", + "locationName":"AssociationDescription" + } + }, + "AssociationDoesNotExist":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"AssociationDoesNotExist", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "AssociationFilter":{ + "type":"structure", + "required":[ + "key", + "value" + ], + "members":{ + "key":{"shape":"AssociationFilterKey"}, + "value":{"shape":"AssociationFilterValue"} + } + }, + "AssociationFilterKey":{ + "type":"string", + "enum":[ + "InstanceId", + "Name" + ] + }, + "AssociationFilterList":{ + "type":"list", + "member":{ + "shape":"AssociationFilter", + "locationName":"AssociationFilter" + }, + "min":1 + }, + "AssociationFilterValue":{ + "type":"string", + "min":1 + }, + "AssociationLimitExceeded":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"AssociationLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "AssociationList":{ + "type":"list", + "member":{ + "shape":"Association", + "locationName":"Association" + } + }, + "AssociationStatus":{ + "type":"structure", + "required":[ + "Date", + "Name", + "Message" + ], + "members":{ + "Date":{"shape":"DateTime"}, + "Name":{"shape":"AssociationStatusName"}, + "Message":{"shape":"StatusMessage"}, + "AdditionalInfo":{"shape":"StatusAdditionalInfo"} + } + }, + "AssociationStatusName":{ + "type":"string", + "enum":[ + "Pending", + "Success", + "Failed" + ] + }, + "BatchErrorMessage":{"type":"string"}, + "CreateAssociationBatchRequest":{ + "type":"structure", + "required":["Entries"], + "members":{ + "Entries":{"shape":"CreateAssociationBatchRequestEntries"} + } + }, + "CreateAssociationBatchRequestEntries":{ + "type":"list", + "member":{ + "shape":"CreateAssociationBatchRequestEntry", + "locationName":"entries" + } + }, + "CreateAssociationBatchRequestEntry":{ + "type":"structure", + "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"} + } + }, + "CreateAssociationBatchResult":{ + "type":"structure", + "members":{ + "Successful":{"shape":"AssociationDescriptionList"}, + "Failed":{"shape":"FailedCreateAssociationList"} + } + }, + "CreateAssociationRequest":{ + "type":"structure", + "required":[ + "Name", + "InstanceId" + ], + "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"} + } + }, + "CreateAssociationResult":{ + "type":"structure", + "members":{ + "AssociationDescription":{"shape":"AssociationDescription"} + } + }, + "CreateDocumentRequest":{ + "type":"structure", + "required":[ + "Content", + "Name" + ], + "members":{ + "Content":{"shape":"DocumentContent"}, + "Name":{"shape":"DocumentName"} + } + }, + "CreateDocumentResult":{ + "type":"structure", + "members":{ + "DocumentDescription":{"shape":"DocumentDescription"} + } + }, + "DateTime":{"type":"timestamp"}, + "DeleteAssociationRequest":{ + "type":"structure", + "required":[ + "Name", + "InstanceId" + ], + "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"} + } + }, + "DeleteAssociationResult":{ + "type":"structure", + "members":{ + } + }, + "DeleteDocumentRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"DocumentName"} + } + }, + "DeleteDocumentResult":{ + "type":"structure", + "members":{ + } + }, + "DescribeAssociationRequest":{ + "type":"structure", + "required":[ + "Name", + "InstanceId" + ], + "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"} + } + }, + "DescribeAssociationResult":{ + "type":"structure", + "members":{ + "AssociationDescription":{"shape":"AssociationDescription"} + } + }, + "DescribeDocumentRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"DocumentName"} + } + }, + "DescribeDocumentResult":{ + "type":"structure", + "members":{ + "Document":{"shape":"DocumentDescription"} + } + }, + "DocumentAlreadyExists":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"DocumentAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "DocumentContent":{ + "type":"string", + "min":1 + }, + "DocumentDescription":{ + "type":"structure", + "members":{ + "Sha1":{"shape":"DocumentSha1"}, + "Name":{"shape":"DocumentName"}, + "CreatedDate":{"shape":"DateTime"}, + "Status":{"shape":"DocumentStatus"} + } + }, + "DocumentFilter":{ + "type":"structure", + "required":[ + "key", + "value" + ], + "members":{ + "key":{"shape":"DocumentFilterKey"}, + "value":{"shape":"DocumentFilterValue"} + } + }, + "DocumentFilterKey":{ + "type":"string", + "enum":["Name"] + }, + "DocumentFilterList":{ + "type":"list", + "member":{ + "shape":"DocumentFilter", + "locationName":"DocumentFilter" + }, + "min":1 + }, + "DocumentFilterValue":{ + "type":"string", + "min":1 + }, + "DocumentIdentifier":{ + "type":"structure", + "members":{ + "Name":{"shape":"DocumentName"} + } + }, + "DocumentIdentifierList":{ + "type":"list", + "member":{ + "shape":"DocumentIdentifier", + "locationName":"DocumentIdentifier" + } + }, + "DocumentLimitExceeded":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"DocumentLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "DocumentName":{ + "type":"string", + "min":3, + "max":64, + "pattern":"^[a-zA-Z0-9_\\-.]{3,64}$" + }, + "DocumentSha1":{"type":"string"}, + "DocumentStatus":{ + "type":"string", + "enum":[ + "Creating", + "Active", + "Deleting" + ] + }, + "DuplicateInstanceId":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"DuplicateInstanceId", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "FailedCreateAssociation":{ + "type":"structure", + "members":{ + "Entry":{"shape":"CreateAssociationBatchRequestEntry"}, + "Message":{"shape":"BatchErrorMessage"}, + "Fault":{"shape":"Fault"} + } + }, + "FailedCreateAssociationList":{ + "type":"list", + "member":{ + "shape":"FailedCreateAssociation", + "locationName":"FailedCreateAssociationEntry" + } + }, + "Fault":{ + "type":"string", + "enum":[ + "Client", + "Server", + "Unknown" + ] + }, + "GetDocumentRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"DocumentName"} + } + }, + "GetDocumentResult":{ + "type":"structure", + "members":{ + "Name":{"shape":"DocumentName"}, + "Content":{"shape":"DocumentContent"} + } + }, + "InstanceId":{ + "type":"string", + "min":10, + "max":10, + "pattern":"^(?=.{10}$)(i-(\\w){8})" + }, + "InternalServerError":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InternalServerError", + "httpStatusCode":500 + }, + "exception":true + }, + "InvalidDocument":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidDocument", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "InvalidDocumentContent":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "error":{ + "code":"InvalidDocumentContent", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "InvalidInstanceId":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidInstanceId", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "InvalidNextToken":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidNextToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ListAssociationsRequest":{ + "type":"structure", + "required":["AssociationFilterList"], + "members":{ + "AssociationFilterList":{"shape":"AssociationFilterList"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAssociationsResult":{ + "type":"structure", + "members":{ + "Associations":{"shape":"AssociationList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListDocumentsRequest":{ + "type":"structure", + "members":{ + "DocumentFilterList":{"shape":"DocumentFilterList"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} + } + }, + "ListDocumentsResult":{ + "type":"structure", + "members":{ + "DocumentIdentifiers":{"shape":"DocumentIdentifierList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "MaxDocumentSizeExceeded":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"MaxDocumentSizeExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "MaxResults":{ + "type":"integer", + "min":1, + "max":25 + }, + "NextToken":{"type":"string"}, + "StatusAdditionalInfo":{ + "type":"string", + "max":1024 + }, + "StatusMessage":{ + "type":"string", + "max":1024 + }, + "StatusUnchanged":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"StatusUnchanged", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "String":{"type":"string"}, + "TooManyUpdates":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"TooManyUpdates", + "httpStatusCode":429, + "senderFault":true + }, + "exception":true + }, + "UpdateAssociationStatusRequest":{ + "type":"structure", + "required":[ + "Name", + "InstanceId", + "AssociationStatus" + ], + "members":{ + "Name":{"shape":"DocumentName"}, + "InstanceId":{"shape":"InstanceId"}, + "AssociationStatus":{"shape":"AssociationStatus"} + } + }, + "UpdateAssociationStatusResult":{ + "type":"structure", + "members":{ + "AssociationDescription":{"shape":"AssociationDescription"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/apis/ssm/2014-11-06/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/ssm/2014-11-06/docs-2.json new file mode 100644 index 000000000..d39612fdb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/ssm/2014-11-06/docs-2.json @@ -0,0 +1,440 @@ +{ + "version": "2.0", + "operations": { + "CreateAssociation": "

Associates the specified configuration document with the specified instance.

When you associate a configuration document with an instance, the configuration agent on the instance processes the configuration document and configures the instance as specified.

If you associate a configuration document with an instance that already has an associated configuration document, we replace the current configuration document with the new configuration document.

", + "CreateAssociationBatch": "

Associates the specified configuration documents with the specified instances.

When you associate a configuration document with an instance, the configuration agent on the instance processes the configuration document and configures the instance as specified.

If you associate a configuration document with an instance that already has an associated configuration document, we replace the current configuration document with the new configuration document.

", + "CreateDocument": "

Creates a configuration document.

After you create a configuration document, you can use CreateAssociation to associate it with one or more running instances.

", + "DeleteAssociation": "

Disassociates the specified configuration document from the specified instance.

When you disassociate a configuration document from an instance, it does not change the configuration of the instance. To change the configuration state of an instance after you disassociate a configuration document, you must create a new configuration document with the desired configuration and associate it with the instance.

", + "DeleteDocument": "

Deletes the specified configuration document.

You must use DeleteAssociation to disassociate all instances that are associated with the configuration document before you can delete it.

", + "DescribeAssociation": "

Describes the associations for the specified configuration document or instance.

", + "DescribeDocument": "

Describes the specified configuration document.

", + "GetDocument": "

Gets the contents of the specified configuration document.

", + "ListAssociations": "

Lists the associations for the specified configuration document or instance.

", + "ListDocuments": "

Describes one or more of your configuration documents.

", + "UpdateAssociationStatus": "

Updates the status of the configuration document associated with the specified instance.

" + }, + "service": "

Amazon EC2 Simple Systems Manager (SSM) enables you to configure and manage your EC2 instances. You can create a configuration document and then associate it with one or more running instances.

You can use a configuration document to automate the following tasks for your Windows instances:

  • Join an AWS Directory

  • Install, repair, or uninstall software using an MSI package

  • Run PowerShell scripts

  • Configure CloudWatch Logs to monitor applications and systems

Note that configuration documents are not supported on Linux instances.

", + "shapes": { + "AssociatedInstances": { + "base": "

You must disassociate a configuration document from all instances before you can delete it.

", + "refs": { + } + }, + "Association": { + "base": "

Describes an association of a configuration document and an instance.

", + "refs": { + "AssociationList$member": null + } + }, + "AssociationAlreadyExists": { + "base": "

The specified association already exists.

", + "refs": { + } + }, + "AssociationDescription": { + "base": "

Describes an association.

", + "refs": { + "AssociationDescriptionList$member": null, + "CreateAssociationResult$AssociationDescription": "

Information about the association.

", + "DescribeAssociationResult$AssociationDescription": "

Information about the association.

", + "UpdateAssociationStatusResult$AssociationDescription": "

Information about the association.

" + } + }, + "AssociationDescriptionList": { + "base": null, + "refs": { + "CreateAssociationBatchResult$Successful": "

Information about the associations that succeeded.

" + } + }, + "AssociationDoesNotExist": { + "base": "

The specified association does not exist.

", + "refs": { + } + }, + "AssociationFilter": { + "base": "

Describes a filter.

", + "refs": { + "AssociationFilterList$member": null + } + }, + "AssociationFilterKey": { + "base": null, + "refs": { + "AssociationFilter$key": "

The name of the filter.

" + } + }, + "AssociationFilterList": { + "base": null, + "refs": { + "ListAssociationsRequest$AssociationFilterList": "

One or more filters. Use a filter to return a more specific list of results.

" + } + }, + "AssociationFilterValue": { + "base": null, + "refs": { + "AssociationFilter$value": "

The filter value.

" + } + }, + "AssociationLimitExceeded": { + "base": "

You can have at most 2,000 active associations.

", + "refs": { + } + }, + "AssociationList": { + "base": null, + "refs": { + "ListAssociationsResult$Associations": "

The associations.

" + } + }, + "AssociationStatus": { + "base": "

Describes an association status.

", + "refs": { + "AssociationDescription$Status": "

The association status.

", + "UpdateAssociationStatusRequest$AssociationStatus": "

The association status.

" + } + }, + "AssociationStatusName": { + "base": null, + "refs": { + "AssociationStatus$Name": "

The status.

" + } + }, + "BatchErrorMessage": { + "base": null, + "refs": { + "FailedCreateAssociation$Message": "

A description of the failure.

" + } + }, + "CreateAssociationBatchRequest": { + "base": null, + "refs": { + } + }, + "CreateAssociationBatchRequestEntries": { + "base": null, + "refs": { + "CreateAssociationBatchRequest$Entries": "

One or more associations.

" + } + }, + "CreateAssociationBatchRequestEntry": { + "base": "

Describes the association of a configuration document and an instance.

", + "refs": { + "CreateAssociationBatchRequestEntries$member": null, + "FailedCreateAssociation$Entry": "

The association.

" + } + }, + "CreateAssociationBatchResult": { + "base": null, + "refs": { + } + }, + "CreateAssociationRequest": { + "base": null, + "refs": { + } + }, + "CreateAssociationResult": { + "base": null, + "refs": { + } + }, + "CreateDocumentRequest": { + "base": null, + "refs": { + } + }, + "CreateDocumentResult": { + "base": null, + "refs": { + } + }, + "DateTime": { + "base": null, + "refs": { + "AssociationDescription$Date": "

The date when the association was made.

", + "AssociationStatus$Date": "

The date when the status changed.

", + "DocumentDescription$CreatedDate": "

The date when the configuration document was created.

" + } + }, + "DeleteAssociationRequest": { + "base": null, + "refs": { + } + }, + "DeleteAssociationResult": { + "base": null, + "refs": { + } + }, + "DeleteDocumentRequest": { + "base": null, + "refs": { + } + }, + "DeleteDocumentResult": { + "base": null, + "refs": { + } + }, + "DescribeAssociationRequest": { + "base": null, + "refs": { + } + }, + "DescribeAssociationResult": { + "base": null, + "refs": { + } + }, + "DescribeDocumentRequest": { + "base": null, + "refs": { + } + }, + "DescribeDocumentResult": { + "base": null, + "refs": { + } + }, + "DocumentAlreadyExists": { + "base": "

The specified configuration document already exists.

", + "refs": { + } + }, + "DocumentContent": { + "base": null, + "refs": { + "CreateDocumentRequest$Content": "

A valid JSON file. For more information about the contents of this file, see Configuration Document.

", + "GetDocumentResult$Content": "

The contents of the configuration document.

" + } + }, + "DocumentDescription": { + "base": "

Describes a configuration document.

", + "refs": { + "CreateDocumentResult$DocumentDescription": "

Information about the configuration document.

", + "DescribeDocumentResult$Document": "

Information about the configuration document.

" + } + }, + "DocumentFilter": { + "base": "

Describes a filter.

", + "refs": { + "DocumentFilterList$member": null + } + }, + "DocumentFilterKey": { + "base": null, + "refs": { + "DocumentFilter$key": "

The name of the filter.

" + } + }, + "DocumentFilterList": { + "base": null, + "refs": { + "ListDocumentsRequest$DocumentFilterList": "

One or more filters. Use a filter to return a more specific list of results.

" + } + }, + "DocumentFilterValue": { + "base": null, + "refs": { + "DocumentFilter$value": "

The value of the filter.

" + } + }, + "DocumentIdentifier": { + "base": "

Describes the name of a configuration document.

", + "refs": { + "DocumentIdentifierList$member": null + } + }, + "DocumentIdentifierList": { + "base": null, + "refs": { + "ListDocumentsResult$DocumentIdentifiers": "

The names of the configuration documents.

" + } + }, + "DocumentLimitExceeded": { + "base": "

You can have at most 100 active configuration documents.

", + "refs": { + } + }, + "DocumentName": { + "base": null, + "refs": { + "Association$Name": "

The name of the configuration document.

", + "AssociationDescription$Name": "

The name of the configuration document.

", + "CreateAssociationBatchRequestEntry$Name": "

The name of the configuration document.

", + "CreateAssociationRequest$Name": "

The name of the configuration document.

", + "CreateDocumentRequest$Name": "

A name for the configuration document.

", + "DeleteAssociationRequest$Name": "

The name of the configuration document.

", + "DeleteDocumentRequest$Name": "

The name of the configuration document.

", + "DescribeAssociationRequest$Name": "

The name of the configuration document.

", + "DescribeDocumentRequest$Name": "

The name of the configuration document.

", + "DocumentDescription$Name": "

The name of the configuration document.

", + "DocumentIdentifier$Name": "

The name of the configuration document.

", + "GetDocumentRequest$Name": "

The name of the configuration document.

", + "GetDocumentResult$Name": "

The name of the configuration document.

", + "UpdateAssociationStatusRequest$Name": "

The name of the configuration document.

" + } + }, + "DocumentSha1": { + "base": null, + "refs": { + "DocumentDescription$Sha1": "

The SHA1 hash of the document, which you can use for verification purposes.

" + } + }, + "DocumentStatus": { + "base": null, + "refs": { + "DocumentDescription$Status": "

The status of the configuration document.

" + } + }, + "DuplicateInstanceId": { + "base": "

You cannot specify an instance ID in more than one association.

", + "refs": { + } + }, + "FailedCreateAssociation": { + "base": "

Describes a failed association.

", + "refs": { + "FailedCreateAssociationList$member": null + } + }, + "FailedCreateAssociationList": { + "base": null, + "refs": { + "CreateAssociationBatchResult$Failed": "

Information about the associations that failed.

" + } + }, + "Fault": { + "base": null, + "refs": { + "FailedCreateAssociation$Fault": "

The source of the failure.

" + } + }, + "GetDocumentRequest": { + "base": null, + "refs": { + } + }, + "GetDocumentResult": { + "base": null, + "refs": { + } + }, + "InstanceId": { + "base": null, + "refs": { + "Association$InstanceId": "

The ID of the instance.

", + "AssociationDescription$InstanceId": "

The ID of the instance.

", + "CreateAssociationBatchRequestEntry$InstanceId": "

The ID of the instance.

", + "CreateAssociationRequest$InstanceId": "

The ID of the instance.

", + "DeleteAssociationRequest$InstanceId": "

The ID of the instance.

", + "DescribeAssociationRequest$InstanceId": "

The ID of the instance.

", + "UpdateAssociationStatusRequest$InstanceId": "

The ID of the instance.

" + } + }, + "InternalServerError": { + "base": "

An error occurred on the server side.

", + "refs": { + } + }, + "InvalidDocument": { + "base": "

The configuration document is not valid.

", + "refs": { + } + }, + "InvalidDocumentContent": { + "base": "

The content for the configuration document is not valid.

", + "refs": { + } + }, + "InvalidInstanceId": { + "base": "

You must specify the ID of a running instance.

", + "refs": { + } + }, + "InvalidNextToken": { + "base": "

The specified token is not valid.

", + "refs": { + } + }, + "ListAssociationsRequest": { + "base": null, + "refs": { + } + }, + "ListAssociationsResult": { + "base": null, + "refs": { + } + }, + "ListDocumentsRequest": { + "base": null, + "refs": { + } + }, + "ListDocumentsResult": { + "base": null, + "refs": { + } + }, + "MaxDocumentSizeExceeded": { + "base": "

The size limit of a configuration document is 64 KB.

", + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListAssociationsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

", + "ListDocumentsRequest$MaxResults": "

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListAssociationsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "ListAssociationsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "ListDocumentsRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "ListDocumentsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

" + } + }, + "StatusAdditionalInfo": { + "base": null, + "refs": { + "AssociationStatus$AdditionalInfo": "

A user-defined string.

" + } + }, + "StatusMessage": { + "base": null, + "refs": { + "AssociationStatus$Message": "

The reason for the status.

" + } + }, + "StatusUnchanged": { + "base": "

The updated status is the same as the current status.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "InvalidDocumentContent$message": "

A description of the validation error.

" + } + }, + "TooManyUpdates": { + "base": "

There are concurrent updates for a resource that supports one update at a time.

", + "refs": { + } + }, + "UpdateAssociationStatusRequest": { + "base": null, + "refs": { + } + }, + "UpdateAssociationStatusResult": { + "base": null, + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/storagegateway/2013-06-30/api-2.json similarity index 76% rename from vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/storagegateway/2013-06-30/api-2.json index f84fe73fc..a260f1a53 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/storagegateway/2013-06-30/api-2.json @@ -4,10 +4,10 @@ "apiVersion":"2013-06-30", "endpointPrefix":"storagegateway", "jsonVersion":"1.1", - "protocol":"json", "serviceFullName":"AWS Storage Gateway", "signatureVersion":"v4", - "targetPrefix":"StorageGateway_20130630" + "targetPrefix":"StorageGateway_20130630", + "protocol":"json" }, "operations":{ "ActivateGateway":{ @@ -19,8 +19,16 @@ "input":{"shape":"ActivateGatewayInput"}, "output":{"shape":"ActivateGatewayOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "AddCache":{ @@ -32,21 +40,16 @@ "input":{"shape":"AddCacheInput"}, "output":{"shape":"AddCacheOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} - ] - }, - "AddTagsToResource":{ - "name":"AddTagsToResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddTagsToResourceInput"}, - "output":{"shape":"AddTagsToResourceOutput"}, - "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "AddUploadBuffer":{ @@ -58,8 +61,16 @@ "input":{"shape":"AddUploadBufferInput"}, "output":{"shape":"AddUploadBufferOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "AddWorkingStorage":{ @@ -71,8 +82,16 @@ "input":{"shape":"AddWorkingStorageInput"}, "output":{"shape":"AddWorkingStorageOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "CancelArchival":{ @@ -84,8 +103,16 @@ "input":{"shape":"CancelArchivalInput"}, "output":{"shape":"CancelArchivalOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "CancelRetrieval":{ @@ -97,8 +124,16 @@ "input":{"shape":"CancelRetrievalInput"}, "output":{"shape":"CancelRetrievalOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "CreateCachediSCSIVolume":{ @@ -110,8 +145,16 @@ "input":{"shape":"CreateCachediSCSIVolumeInput"}, "output":{"shape":"CreateCachediSCSIVolumeOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "CreateSnapshot":{ @@ -123,8 +166,16 @@ "input":{"shape":"CreateSnapshotInput"}, "output":{"shape":"CreateSnapshotOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "CreateSnapshotFromVolumeRecoveryPoint":{ @@ -136,8 +187,16 @@ "input":{"shape":"CreateSnapshotFromVolumeRecoveryPointInput"}, "output":{"shape":"CreateSnapshotFromVolumeRecoveryPointOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "CreateStorediSCSIVolume":{ @@ -149,21 +208,16 @@ "input":{"shape":"CreateStorediSCSIVolumeInput"}, "output":{"shape":"CreateStorediSCSIVolumeOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} - ] - }, - "CreateTapeWithBarcode":{ - "name":"CreateTapeWithBarcode", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateTapeWithBarcodeInput"}, - "output":{"shape":"CreateTapeWithBarcodeOutput"}, - "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "CreateTapes":{ @@ -175,8 +229,16 @@ "input":{"shape":"CreateTapesInput"}, "output":{"shape":"CreateTapesOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DeleteBandwidthRateLimit":{ @@ -188,8 +250,16 @@ "input":{"shape":"DeleteBandwidthRateLimitInput"}, "output":{"shape":"DeleteBandwidthRateLimitOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DeleteChapCredentials":{ @@ -201,8 +271,16 @@ "input":{"shape":"DeleteChapCredentialsInput"}, "output":{"shape":"DeleteChapCredentialsOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DeleteGateway":{ @@ -214,8 +292,16 @@ "input":{"shape":"DeleteGatewayInput"}, "output":{"shape":"DeleteGatewayOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DeleteSnapshotSchedule":{ @@ -227,8 +313,16 @@ "input":{"shape":"DeleteSnapshotScheduleInput"}, "output":{"shape":"DeleteSnapshotScheduleOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DeleteTape":{ @@ -240,8 +334,16 @@ "input":{"shape":"DeleteTapeInput"}, "output":{"shape":"DeleteTapeOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DeleteTapeArchive":{ @@ -253,8 +355,16 @@ "input":{"shape":"DeleteTapeArchiveInput"}, "output":{"shape":"DeleteTapeArchiveOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DeleteVolume":{ @@ -266,8 +376,16 @@ "input":{"shape":"DeleteVolumeInput"}, "output":{"shape":"DeleteVolumeOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeBandwidthRateLimit":{ @@ -279,8 +397,16 @@ "input":{"shape":"DescribeBandwidthRateLimitInput"}, "output":{"shape":"DescribeBandwidthRateLimitOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeCache":{ @@ -292,8 +418,16 @@ "input":{"shape":"DescribeCacheInput"}, "output":{"shape":"DescribeCacheOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeCachediSCSIVolumes":{ @@ -305,8 +439,16 @@ "input":{"shape":"DescribeCachediSCSIVolumesInput"}, "output":{"shape":"DescribeCachediSCSIVolumesOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeChapCredentials":{ @@ -318,8 +460,16 @@ "input":{"shape":"DescribeChapCredentialsInput"}, "output":{"shape":"DescribeChapCredentialsOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeGatewayInformation":{ @@ -331,8 +481,16 @@ "input":{"shape":"DescribeGatewayInformationInput"}, "output":{"shape":"DescribeGatewayInformationOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeMaintenanceStartTime":{ @@ -344,8 +502,16 @@ "input":{"shape":"DescribeMaintenanceStartTimeInput"}, "output":{"shape":"DescribeMaintenanceStartTimeOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeSnapshotSchedule":{ @@ -357,8 +523,16 @@ "input":{"shape":"DescribeSnapshotScheduleInput"}, "output":{"shape":"DescribeSnapshotScheduleOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeStorediSCSIVolumes":{ @@ -370,8 +544,16 @@ "input":{"shape":"DescribeStorediSCSIVolumesInput"}, "output":{"shape":"DescribeStorediSCSIVolumesOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeTapeArchives":{ @@ -383,8 +565,16 @@ "input":{"shape":"DescribeTapeArchivesInput"}, "output":{"shape":"DescribeTapeArchivesOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeTapeRecoveryPoints":{ @@ -396,8 +586,16 @@ "input":{"shape":"DescribeTapeRecoveryPointsInput"}, "output":{"shape":"DescribeTapeRecoveryPointsOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeTapes":{ @@ -409,8 +607,16 @@ "input":{"shape":"DescribeTapesInput"}, "output":{"shape":"DescribeTapesOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeUploadBuffer":{ @@ -422,8 +628,16 @@ "input":{"shape":"DescribeUploadBufferInput"}, "output":{"shape":"DescribeUploadBufferOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeVTLDevices":{ @@ -435,8 +649,16 @@ "input":{"shape":"DescribeVTLDevicesInput"}, "output":{"shape":"DescribeVTLDevicesOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DescribeWorkingStorage":{ @@ -448,8 +670,16 @@ "input":{"shape":"DescribeWorkingStorageInput"}, "output":{"shape":"DescribeWorkingStorageOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "DisableGateway":{ @@ -461,8 +691,16 @@ "input":{"shape":"DisableGatewayInput"}, "output":{"shape":"DisableGatewayOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "ListGateways":{ @@ -474,8 +712,16 @@ "input":{"shape":"ListGatewaysInput"}, "output":{"shape":"ListGatewaysOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "ListLocalDisks":{ @@ -487,34 +733,16 @@ "input":{"shape":"ListLocalDisksInput"}, "output":{"shape":"ListLocalDisksOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceInput"}, - "output":{"shape":"ListTagsForResourceOutput"}, - "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} - ] - }, - "ListTapes":{ - "name":"ListTapes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTapesInput"}, - "output":{"shape":"ListTapesOutput"}, - "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "ListVolumeInitiators":{ @@ -526,8 +754,16 @@ "input":{"shape":"ListVolumeInitiatorsInput"}, "output":{"shape":"ListVolumeInitiatorsOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "ListVolumeRecoveryPoints":{ @@ -539,8 +775,16 @@ "input":{"shape":"ListVolumeRecoveryPointsInput"}, "output":{"shape":"ListVolumeRecoveryPointsOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "ListVolumes":{ @@ -552,21 +796,16 @@ "input":{"shape":"ListVolumesInput"}, "output":{"shape":"ListVolumesOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} - ] - }, - "RemoveTagsFromResource":{ - "name":"RemoveTagsFromResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTagsFromResourceInput"}, - "output":{"shape":"RemoveTagsFromResourceOutput"}, - "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "ResetCache":{ @@ -578,8 +817,16 @@ "input":{"shape":"ResetCacheInput"}, "output":{"shape":"ResetCacheOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "RetrieveTapeArchive":{ @@ -591,8 +838,16 @@ "input":{"shape":"RetrieveTapeArchiveInput"}, "output":{"shape":"RetrieveTapeArchiveOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "RetrieveTapeRecoveryPoint":{ @@ -604,21 +859,16 @@ "input":{"shape":"RetrieveTapeRecoveryPointInput"}, "output":{"shape":"RetrieveTapeRecoveryPointOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} - ] - }, - "SetLocalConsolePassword":{ - "name":"SetLocalConsolePassword", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetLocalConsolePasswordInput"}, - "output":{"shape":"SetLocalConsolePasswordOutput"}, - "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "ShutdownGateway":{ @@ -630,8 +880,16 @@ "input":{"shape":"ShutdownGatewayInput"}, "output":{"shape":"ShutdownGatewayOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "StartGateway":{ @@ -643,8 +901,16 @@ "input":{"shape":"StartGatewayInput"}, "output":{"shape":"StartGatewayOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "UpdateBandwidthRateLimit":{ @@ -656,8 +922,16 @@ "input":{"shape":"UpdateBandwidthRateLimitInput"}, "output":{"shape":"UpdateBandwidthRateLimitOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "UpdateChapCredentials":{ @@ -669,8 +943,16 @@ "input":{"shape":"UpdateChapCredentialsInput"}, "output":{"shape":"UpdateChapCredentialsOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "UpdateGatewayInformation":{ @@ -682,8 +964,16 @@ "input":{"shape":"UpdateGatewayInformationInput"}, "output":{"shape":"UpdateGatewayInformationOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "UpdateGatewaySoftwareNow":{ @@ -695,8 +985,16 @@ "input":{"shape":"UpdateGatewaySoftwareNowInput"}, "output":{"shape":"UpdateGatewaySoftwareNowOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "UpdateMaintenanceStartTime":{ @@ -708,8 +1006,16 @@ "input":{"shape":"UpdateMaintenanceStartTimeInput"}, "output":{"shape":"UpdateMaintenanceStartTimeOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "UpdateSnapshotSchedule":{ @@ -721,8 +1027,16 @@ "input":{"shape":"UpdateSnapshotScheduleInput"}, "output":{"shape":"UpdateSnapshotScheduleOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] }, "UpdateVTLDeviceType":{ @@ -734,8 +1048,16 @@ "input":{"shape":"UpdateVTLDeviceTypeInput"}, "output":{"shape":"UpdateVTLDeviceTypeOutput"}, "errors":[ - {"shape":"InvalidGatewayRequestException"}, - {"shape":"InternalServerError"} + { + "shape":"InvalidGatewayRequestException", + "error":{"httpStatusCode":400}, + "exception":true + }, + { + "shape":"InternalServerError", + "error":{"httpStatusCode":500}, + "exception":true + } ] } }, @@ -766,8 +1088,8 @@ }, "ActivationKey":{ "type":"string", - "max":50, - "min":1 + "min":1, + "max":50 }, "AddCacheInput":{ "type":"structure", @@ -786,23 +1108,6 @@ "GatewayARN":{"shape":"GatewayARN"} } }, - "AddTagsToResourceInput":{ - "type":"structure", - "required":[ - "ResourceARN", - "Tags" - ], - "members":{ - "ResourceARN":{"shape":"ResourceARN"}, - "Tags":{"shape":"Tags"} - } - }, - "AddTagsToResourceOutput":{ - "type":"structure", - "members":{ - "ResourceARN":{"shape":"ResourceARN"} - } - }, "AddUploadBufferInput":{ "type":"structure", "required":[ @@ -843,8 +1148,8 @@ }, "BandwidthType":{ "type":"string", - "max":25, - "min":3 + "min":3, + "max":25 }, "BandwidthUploadRateLimit":{ "type":"long", @@ -916,13 +1221,13 @@ }, "ChapSecret":{ "type":"string", - "max":100, - "min":1 + "min":1, + "max":100 }, "ClientToken":{ "type":"string", - "max":100, - "min":5 + "min":5, + "max":100 }, "CreateCachediSCSIVolumeInput":{ "type":"structure", @@ -1012,25 +1317,6 @@ "TargetARN":{"shape":"TargetARN"} } }, - "CreateTapeWithBarcodeInput":{ - "type":"structure", - "required":[ - "GatewayARN", - "TapeSizeInBytes", - "TapeBarcode" - ], - "members":{ - "GatewayARN":{"shape":"GatewayARN"}, - "TapeSizeInBytes":{"shape":"TapeSize"}, - "TapeBarcode":{"shape":"TapeBarcode"} - } - }, - "CreateTapeWithBarcodeOutput":{ - "type":"structure", - "members":{ - "TapeARN":{"shape":"TapeARN"} - } - }, "CreateTapesInput":{ "type":"structure", "required":[ @@ -1056,8 +1342,8 @@ }, "DayOfWeek":{ "type":"integer", - "max":6, - "min":0 + "min":0, + "max":6 }, "DeleteBandwidthRateLimitInput":{ "type":"structure", @@ -1235,7 +1521,6 @@ "members":{ "GatewayARN":{"shape":"GatewayARN"}, "GatewayId":{"shape":"GatewayId"}, - "GatewayName":{"shape":"string"}, "GatewayTimezone":{"shape":"GatewayTimezone"}, "GatewayState":{"shape":"GatewayState"}, "GatewayNetworkInterfaces":{"shape":"GatewayNetworkInterfaces"}, @@ -1392,13 +1677,13 @@ }, "Description":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "DeviceType":{ "type":"string", - "max":50, - "min":2 + "min":2, + "max":50 }, "DeviceiSCSIAttributes":{ "type":"structure", @@ -1436,13 +1721,13 @@ }, "DiskAllocationType":{ "type":"string", - "max":100, - "min":3 + "min":3, + "max":100 }, "DiskId":{ "type":"string", - "max":300, - "min":1 + "min":1, + "max":300 }, "DiskIds":{ "type":"list", @@ -1521,28 +1806,26 @@ }, "GatewayARN":{ "type":"string", - "max":500, - "min":50 + "min":50, + "max":500 }, "GatewayId":{ "type":"string", - "max":30, - "min":12 + "min":12, + "max":30 }, "GatewayInfo":{ "type":"structure", "members":{ - "GatewayId":{"shape":"GatewayId"}, "GatewayARN":{"shape":"GatewayARN"}, "GatewayType":{"shape":"GatewayType"}, - "GatewayOperationalState":{"shape":"GatewayOperationalState"}, - "GatewayName":{"shape":"string"} + "GatewayOperationalState":{"shape":"GatewayOperationalState"} } }, "GatewayName":{ "type":"string", - "max":255, "min":2, + "max":255, "pattern":"^[ -\\.0-\\[\\]-~]*[!-\\.0-\\[\\]-~][ -\\.0-\\[\\]-~]*$" }, "GatewayNetworkInterfaces":{ @@ -1551,23 +1834,23 @@ }, "GatewayOperationalState":{ "type":"string", - "max":25, - "min":2 + "min":2, + "max":25 }, "GatewayState":{ "type":"string", - "max":25, - "min":2 + "min":2, + "max":25 }, "GatewayTimezone":{ "type":"string", - "max":10, - "min":3 + "min":3, + "max":10 }, "GatewayType":{ "type":"string", - "max":20, - "min":2 + "min":2, + "max":20 }, "Gateways":{ "type":"list", @@ -1575,13 +1858,13 @@ }, "HourOfDay":{ "type":"integer", - "max":23, - "min":0 + "min":0, + "max":23 }, "Initiator":{ "type":"string", - "max":50, - "min":1 + "min":1, + "max":50 }, "Initiators":{ "type":"list", @@ -1593,6 +1876,7 @@ "message":{"shape":"string"}, "error":{"shape":"StorageGatewayError"} }, + "error":{"httpStatusCode":500}, "exception":true }, "InvalidGatewayRequestException":{ @@ -1601,18 +1885,19 @@ "message":{"shape":"string"}, "error":{"shape":"StorageGatewayError"} }, + "error":{"httpStatusCode":400}, "exception":true }, "IqnName":{ "type":"string", - "max":255, "min":1, + "max":255, "pattern":"[0-9a-z:.-]+" }, "LastSoftwareUpdate":{ "type":"string", - "max":25, - "min":1 + "min":1, + "max":25 }, "ListGatewaysInput":{ "type":"structure", @@ -1642,38 +1927,6 @@ "Disks":{"shape":"Disks"} } }, - "ListTagsForResourceInput":{ - "type":"structure", - "required":["ResourceARN"], - "members":{ - "ResourceARN":{"shape":"ResourceARN"}, - "Marker":{"shape":"Marker"}, - "Limit":{"shape":"PositiveIntObject"} - } - }, - "ListTagsForResourceOutput":{ - "type":"structure", - "members":{ - "ResourceARN":{"shape":"ResourceARN"}, - "Marker":{"shape":"Marker"}, - "Tags":{"shape":"Tags"} - } - }, - "ListTapesInput":{ - "type":"structure", - "members":{ - "TapeARNs":{"shape":"TapeARNs"}, - "Marker":{"shape":"Marker"}, - "Limit":{"shape":"PositiveIntObject"} - } - }, - "ListTapesOutput":{ - "type":"structure", - "members":{ - "TapeInfos":{"shape":"TapeInfos"}, - "Marker":{"shape":"Marker"} - } - }, "ListVolumeInitiatorsInput":{ "type":"structure", "required":["VolumeARN"], @@ -1703,6 +1956,7 @@ }, "ListVolumesInput":{ "type":"structure", + "required":["GatewayARN"], "members":{ "GatewayARN":{"shape":"GatewayARN"}, "Marker":{"shape":"Marker"}, @@ -1717,27 +1971,20 @@ "VolumeInfos":{"shape":"VolumeInfos"} } }, - "LocalConsolePassword":{ - "type":"string", - "max":512, - "min":6, - "pattern":"^[ -~]+$", - "sensitive":true - }, "Marker":{ "type":"string", - "max":1000, - "min":1 + "min":1, + "max":1000 }, "MediumChangerType":{ "type":"string", - "max":50, - "min":2 + "min":2, + "max":50 }, "MinuteOfHour":{ "type":"integer", - "max":59, - "min":0 + "min":0, + "max":59 }, "NetworkInterface":{ "type":"structure", @@ -1753,13 +2000,13 @@ }, "NextUpdateAvailabilityDate":{ "type":"string", - "max":25, - "min":1 + "min":1, + "max":25 }, "NumTapesToCreate":{ "type":"integer", - "max":10, - "min":1 + "min":1, + "max":10 }, "PositiveIntObject":{ "type":"integer", @@ -1767,30 +2014,13 @@ }, "RecurrenceInHours":{ "type":"integer", - "max":24, - "min":1 + "min":1, + "max":24 }, "RegionId":{ "type":"string", - "max":25, - "min":1 - }, - "RemoveTagsFromResourceInput":{ - "type":"structure", - "required":[ - "ResourceARN", - "TagKeys" - ], - "members":{ - "ResourceARN":{"shape":"ResourceARN"}, - "TagKeys":{"shape":"TagKeys"} - } - }, - "RemoveTagsFromResourceOutput":{ - "type":"structure", - "members":{ - "ResourceARN":{"shape":"ResourceARN"} - } + "min":1, + "max":25 }, "ResetCacheInput":{ "type":"structure", @@ -1805,11 +2035,6 @@ "GatewayARN":{"shape":"GatewayARN"} } }, - "ResourceARN":{ - "type":"string", - "max":500, - "min":50 - }, "RetrieveTapeArchiveInput":{ "type":"structure", "required":[ @@ -1844,23 +2069,6 @@ "TapeARN":{"shape":"TapeARN"} } }, - "SetLocalConsolePasswordInput":{ - "type":"structure", - "required":[ - "GatewayARN", - "LocalConsolePassword" - ], - "members":{ - "GatewayARN":{"shape":"GatewayARN"}, - "LocalConsolePassword":{"shape":"LocalConsolePassword"} - } - }, - "SetLocalConsolePasswordOutput":{ - "type":"structure", - "members":{ - "GatewayARN":{"shape":"GatewayARN"} - } - }, "ShutdownGatewayInput":{ "type":"structure", "required":["GatewayARN"], @@ -1876,12 +2084,12 @@ }, "SnapshotDescription":{ "type":"string", - "max":255, - "min":1 + "min":1, + "max":255 }, "SnapshotId":{ "type":"string", - "pattern":"\\Asnap-([0-9A-Fa-f]{8}|[0-9A-Fa-f]{17})\\z" + "pattern":"\\Asnap-[0-9a-fA-F]{8}\\z" }, "StartGatewayInput":{ "type":"structure", @@ -1922,35 +2130,6 @@ "type":"list", "member":{"shape":"StorediSCSIVolume"} }, - "Tag":{ - "type":"structure", - "required":[ - "Key", - "Value" - ], - "members":{ - "Key":{"shape":"TagKey"}, - "Value":{"shape":"TagValue"} - } - }, - "TagKey":{ - "type":"string", - "max":128, - "min":1, - "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$" - }, - "TagKeys":{ - "type":"list", - "member":{"shape":"TagKey"} - }, - "TagValue":{ - "type":"string", - "max":256 - }, - "Tags":{ - "type":"list", - "member":{"shape":"Tag"} - }, "Tape":{ "type":"structure", "members":{ @@ -1964,8 +2143,8 @@ }, "TapeARN":{ "type":"string", - "max":500, - "min":50 + "min":50, + "max":500 }, "TapeARNs":{ "type":"list", @@ -1989,34 +2168,20 @@ }, "TapeBarcode":{ "type":"string", - "max":16, "min":7, + "max":16, "pattern":"^[A-Z0-9]*$" }, "TapeBarcodePrefix":{ "type":"string", - "max":4, "min":1, + "max":4, "pattern":"^[A-Z]*$" }, "TapeDriveType":{ "type":"string", - "max":50, - "min":2 - }, - "TapeInfo":{ - "type":"structure", - "members":{ - "TapeARN":{"shape":"TapeARN"}, - "TapeBarcode":{"shape":"TapeBarcode"}, - "TapeSizeInBytes":{"shape":"TapeSize"}, - "TapeStatus":{"shape":"TapeStatus"}, - "GatewayARN":{"shape":"GatewayARN"} - } - }, - "TapeInfos":{ - "type":"list", - "member":{"shape":"TapeInfo"} + "min":2, + "max":50 }, "TapeRecoveryPointInfo":{ "type":"structure", @@ -2040,13 +2205,13 @@ }, "TargetARN":{ "type":"string", - "max":800, - "min":50 + "min":50, + "max":800 }, "TargetName":{ "type":"string", - "max":200, "min":1, + "max":200, "pattern":"^[-\\.;a-z0-9]+$" }, "Time":{"type":"timestamp"}, @@ -2098,8 +2263,7 @@ "UpdateGatewayInformationOutput":{ "type":"structure", "members":{ - "GatewayARN":{"shape":"GatewayARN"}, - "GatewayName":{"shape":"string"} + "GatewayARN":{"shape":"GatewayARN"} } }, "UpdateGatewaySoftwareNowInput":{ @@ -2185,8 +2349,8 @@ }, "VTLDeviceARN":{ "type":"string", - "max":500, - "min":50 + "min":50, + "max":500 }, "VTLDeviceARNs":{ "type":"list", @@ -2201,8 +2365,8 @@ }, "VolumeARN":{ "type":"string", - "max":500, - "min":50 + "min":50, + "max":500 }, "VolumeARNs":{ "type":"list", @@ -2210,18 +2374,14 @@ }, "VolumeId":{ "type":"string", - "max":30, - "min":12 + "min":12, + "max":30 }, "VolumeInfo":{ "type":"structure", "members":{ "VolumeARN":{"shape":"VolumeARN"}, - "VolumeId":{"shape":"VolumeId"}, - "GatewayARN":{"shape":"GatewayARN"}, - "GatewayId":{"shape":"GatewayId"}, - "VolumeType":{"shape":"VolumeType"}, - "VolumeSizeInBytes":{"shape":"long"} + "VolumeType":{"shape":"VolumeType"} } }, "VolumeInfos":{ @@ -2243,13 +2403,13 @@ }, "VolumeStatus":{ "type":"string", - "max":50, - "min":3 + "min":3, + "max":50 }, "VolumeType":{ "type":"string", - "max":100, - "min":3 + "min":3, + "max":100 }, "VolumeiSCSIAttributes":{ "type":"structure", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/storagegateway/2013-06-30/docs-2.json similarity index 54% rename from vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/storagegateway/2013-06-30/docs-2.json index 0702cc75f..afdb3c6c5 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/storagegateway/2013-06-30/docs-2.json @@ -1,72 +1,66 @@ { "version": "2.0", - "service": "AWS Storage Gateway Service

AWS Storage Gateway is the service that connects an on-premises software appliance with cloud-based storage to provide seamless and secure integration between an organization's on-premises IT environment and AWS's storage infrastructure. The service enables you to securely upload data to the AWS cloud for cost effective backup and rapid disaster recovery.

Use the following links to get started using the AWS Storage Gateway Service API Reference:

AWS Storage Gateway resource IDs are in uppercase. When you use these resource IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must change your resource ID to lowercase to use it with the EC2 API. For example, in Storage Gateway the ID for a volume might be vol-1122AABB. When you use this ID with the EC2 API, you must change it to vol-1122aabb. Otherwise, the EC2 API might not behave as expected.

IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway volumes are changing to a longer format. Starting in December 2016, all new volumes and snapshots will be created with a 17-character string. Starting in April 2016, you will be able to use these longer IDs so you can test your systems with the new format. For more information, see Longer EC2 and EBS Resource IDs.

For example, a volume ARN with the longer volume ID format will look like this:

arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG.

A snapshot ID with the longer ID format will look like this: snap-78e226633445566ee.

For more information, see Announcement: Heads-up – Longer AWS Storage Gateway volume and snapshot IDs coming in 2016.

", "operations": { - "ActivateGateway": "

Activates the gateway you previously deployed on your host. For more information, see Activate the AWS Storage Gateway. In the activation process, you specify information such as the you want to use for storing snapshots, the time zone for scheduled snapshots the gateway snapshot schedule window, an activation key, and a name for your gateway. The activation process also associates your gateway with your account; for more information, see UpdateGatewayInformation.

You must turn on the gateway VM before you can activate your gateway.

", - "AddCache": "

Configures one or more gateway local disks as cache for a cached-volume gateway. This operation is supported only for the gateway-cached volume architecture (see Storage Gateway Concepts).

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add cache, and one or more disk IDs that you want to configure as cache.

", - "AddTagsToResource": "

Adds one or more tags to the specified resource. You use tags to add metadata to resources, which you can use to categorize these resources. For example, you can categorize resources by purpose, owner, environment, or team. Each tag consists of a key and a value, which you define. You can add tags to the following AWS Storage Gateway resources:

  • Storage gateways of all types

  • Storage Volumes

  • Virtual Tapes

You can create a maximum of 10 tags for each resource. Virtual tapes and storage volumes that are recovered to a new gateway maintain their tags.

", - "AddUploadBuffer": "

Configures one or more gateway local disks as upload buffer for a specified gateway. This operation is supported for both the gateway-stored and gateway-cached volume architectures.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add upload buffer, and one or more disk IDs that you want to configure as upload buffer.

", - "AddWorkingStorage": "

Configures one or more gateway local disks as working storage for a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated in cached-volumes API version 20120630. Use AddUploadBuffer instead.

Working storage is also referred to as upload buffer. You can also use the AddUploadBuffer operation to add upload buffer to a stored-volume gateway.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.

", - "CancelArchival": "

Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated.

", + "ActivateGateway": "

This operation activates the gateway you previously deployed on your host. For more information, see Activate the AWS Storage Gateway. In the activation process, you specify information such as the region you want to use for storing snapshots, the time zone for scheduled snapshots the gateway snapshot schedule window, an activation key, and a name for your gateway. The activation process also associates your gateway with your account; for more information, see UpdateGatewayInformation.

You must turn on the gateway VM before you can activate your gateway.", + "AddCache": "

This operation configures one or more gateway local disks as cache for a cached-volume gateway. This operation is supported only for the gateway-cached volume architecture (see Storage Gateway Concepts).

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add cache, and one or more disk IDs that you want to configure as cache.

", + "AddUploadBuffer": "

This operation configures one or more gateway local disks as upload buffer for a specified gateway. This operation is supported for both the gateway-stored and gateway-cached volume architectures.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add upload buffer, and one or more disk IDs that you want to configure as upload buffer.

", + "AddWorkingStorage": "

This operation configures one or more gateway local disks as working storage for a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated method in cached-volumes API version (20120630). Use AddUploadBuffer instead.

Working storage is also referred to as upload buffer. You can also use the AddUploadBuffer operation to add upload buffer to a stored-volume gateway.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.

", + "CancelArchival": "

Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated.

", "CancelRetrieval": "

Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to a gateway after the retrieval process is initiated. The virtual tape is returned to the VTS.

", - "CreateCachediSCSIVolume": "

Creates a cached volume on a specified cached gateway. This operation is supported only for the gateway-cached volume architecture.

Cache storage must be allocated to the gateway before you can create a cached volume. Use the AddCache operation to add cache storage to a gateway.

In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, AWS Storage Gateway creates the volume and returns information about it such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

", - "CreateSnapshot": "

Initiates a snapshot of a volume.

AWS Storage Gateway provides the ability to back up point-in-time snapshots of your data to Amazon Simple Storage (S3) for durable off-site recovery, as well as import the data to an Amazon Elastic Block Store (EBS) volume in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway volume on a scheduled or ad-hoc basis. This API enables you to take ad-hoc snapshot. For more information, see Working With Snapshots in the AWS Storage Gateway Console.

In the CreateSnapshot request you identify the volume by providing its Amazon Resource Name (ARN). You must also provide description for the snapshot. When AWS Storage Gateway takes the snapshot of specified volume, the snapshot and description appears in the AWS Storage Gateway Console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

To list or delete a snapshot, you must use the Amazon EC2 API. For more information, see DescribeSnapshots or DeleteSnapshot in the EC2 API reference.

Volume and snapshot IDs are changing to a longer length ID format. For more information, see the important note on the Welcome page.

", - "CreateSnapshotFromVolumeRecoveryPoint": "

Initiates a snapshot of a gateway from a volume recovery point. This operation is supported only for the gateway-cached volume architecture.

A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To get a list of volume recovery point for gateway-cached volumes, use ListVolumeRecoveryPoints.

In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume by providing its Amazon Resource Name (ARN). You must also provide a description for the snapshot. When AWS Storage Gateway takes a snapshot of the specified volume, the snapshot and its description appear in the AWS Storage Gateway console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

To list or delete a snapshot, you must use the Amazon EC2 API. For more information, in Amazon Elastic Compute Cloud API Reference.

", - "CreateStorediSCSIVolume": "

Creates a volume on a specified gateway. This operation is supported only for the gateway-stored volume architecture.

The size of the volume to create is inferred from the disk size. You can choose to preserve existing data on the disk, create volume from an existing snapshot, or create an empty volume. If you choose to create an empty gateway volume, then any existing data on the disk is erased.

In the request you must specify the gateway and the disk information on which you are creating the volume. In response, AWS Storage Gateway creates the volume and returns volume information such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

", - "CreateTapeWithBarcode": "

Creates a virtual tape by using your own barcode. You write data to the virtual tape and then archive the tape.

Cache storage must be allocated to the gateway before you can create a virtual tape. Use the AddCache operation to add cache storage to a gateway.

", - "CreateTapes": "

Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes.

Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway.

", - "DeleteBandwidthRateLimit": "

Deletes the bandwidth rate limits of a gateway. You can delete either the upload and download bandwidth rate limit, or you can delete both. If you delete only one of the limits, the other limit remains unchanged. To specify which gateway to work with, use the Amazon Resource Name (ARN) of the gateway in your request.

", - "DeleteChapCredentials": "

Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.

", - "DeleteGateway": "

Deletes a gateway. To specify which gateway to delete, use the Amazon Resource Name (ARN) of the gateway in your request. The operation deletes the gateway; however, it does not delete the gateway virtual machine (VM) from your host computer.

After you delete a gateway, you cannot reactivate it. Completed snapshots of the gateway volumes are not deleted upon deleting the gateway, however, pending snapshots will not complete. After you delete a gateway, your next step is to remove it from your environment.

You no longer pay software charges after the gateway is deleted; however, your existing Amazon EBS snapshots persist and you will continue to be billed for these snapshots. You can choose to remove all remaining Amazon EBS snapshots by canceling your Amazon EC2 subscription.  If you prefer not to cancel your Amazon EC2 subscription, you can delete your snapshots using the Amazon EC2 console. For more information, see the AWS Storage Gateway Detail Page.

", - "DeleteSnapshotSchedule": "

Deletes a snapshot of a volume.

You can take snapshots of your gateway volumes on a scheduled or ad hoc basis. This API action enables you to delete a snapshot schedule for a volume. For more information, see Working with Snapshots. In the DeleteSnapshotSchedule request, you identify the volume by providing its Amazon Resource Name (ARN).

To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon Elastic Compute Cloud API Reference.

", + "CreateCachediSCSIVolume": "

This operation creates a cached volume on a specified cached gateway. This operation is supported only for the gateway-cached volume architecture.

Cache storage must be allocated to the gateway before you can create a cached volume. Use the AddCache operation to add cache storage to a gateway.

In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, AWS Storage Gateway creates the volume and returns information about it such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

", + "CreateSnapshot": "

This operation initiates a snapshot of a volume.

AWS Storage Gateway provides the ability to back up point-in-time snapshots of your data to Amazon Simple Storage (S3) for durable off-site recovery, as well as import the data to an Amazon Elastic Block Store (EBS) volume in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway volume on a scheduled or ad-hoc basis. This API enables you to take ad-hoc snapshot. For more information, see Working With Snapshots in the AWS Storage Gateway Console.

In the CreateSnapshot request you identify the volume by providing its Amazon Resource Name (ARN). You must also provide description for the snapshot. When AWS Storage Gateway takes the snapshot of specified volume, the snapshot and description appears in the AWS Storage Gateway Console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

To list or delete a snapshot, you must use the Amazon EC2 API. For more information, see DescribeSnapshots or DeleteSnapshot in the EC2 API reference.", + "CreateSnapshotFromVolumeRecoveryPoint": "

This operation initiates a snapshot of a gateway from a volume recovery point. This operation is supported only for the gateway-cached volume architecture (see ).

A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To get a list of volume recovery point for gateway-cached volumes, use ListVolumeRecoveryPoints.

In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume by providing its Amazon Resource Name (ARN). You must also provide a description for the snapshot. When AWS Storage Gateway takes a snapshot of the specified volume, the snapshot and its description appear in the AWS Storage Gateway console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

To list or delete a snapshot, you must use the Amazon EC2 API. For more information, in Amazon Elastic Compute Cloud API Reference.

", + "CreateStorediSCSIVolume": "

This operation creates a volume on a specified gateway. This operation is supported only for the gateway-stored volume architecture.

The size of the volume to create is inferred from the disk size. You can choose to preserve existing data on the disk, create volume from an existing snapshot, or create an empty volume. If you choose to create an empty gateway volume, then any existing data on the disk is erased.

In the request you must specify the gateway and the disk information on which you are creating the volume. In response, AWS Storage Gateway creates the volume and returns volume information such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

", + "CreateTapes": "

Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes.

Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway. ", + "DeleteBandwidthRateLimit": "

This operation deletes the bandwidth rate limits of a gateway. You can delete either the upload and download bandwidth rate limit, or you can delete both. If you delete only one of the limits, the other limit remains unchanged. To specify which gateway to work with, use the Amazon Resource Name (ARN) of the gateway in your request.

", + "DeleteChapCredentials": "

This operation deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.

", + "DeleteGateway": "

This operation deletes a gateway. To specify which gateway to delete, use the Amazon Resource Name (ARN) of the gateway in your request. The operation deletes the gateway; however, it does not delete the gateway virtual machine (VM) from your host computer.

After you delete a gateway, you cannot reactivate it. Completed snapshots of the gateway volumes are not deleted upon deleting the gateway, however, pending snapshots will not complete. After you delete a gateway, your next step is to remove it from your environment.

You no longer pay software charges after the gateway is deleted; however, your existing Amazon EBS snapshots persist and you will continue to be billed for these snapshots. You can choose to remove all remaining Amazon EBS snapshots by canceling your Amazon EC2 subscription.  If you prefer not to cancel your Amazon EC2 subscription, you can delete your snapshots using the Amazon EC2 console. For more information, see the AWS Storage Gateway Detail Page.

", + "DeleteSnapshotSchedule": "

This operation deletes a snapshot of a volume.

You can take snapshots of your gateway volumes on a scheduled or ad-hoc basis. This API enables you to delete a snapshot schedule for a volume. For more information, see Working with Snapshots. In the DeleteSnapshotSchedule request, you identify the volume by providing its Amazon Resource Name (ARN).

To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon Elastic Compute Cloud API Reference.

", "DeleteTape": "

Deletes the specified virtual tape.

", "DeleteTapeArchive": "

Deletes the specified virtual tape from the virtual tape shelf (VTS).

", - "DeleteVolume": "

Deletes the specified gateway volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API. For gateway-stored volumes, the local disk that was configured as the storage volume is not deleted. You can reuse the local disk to create another storage volume.

Before you delete a gateway volume, make sure there are no iSCSI connections to the volume you are deleting. You should also make sure there is no snapshot in progress. You can use the Amazon Elastic Compute Cloud (Amazon EC2) API to query snapshots on the volume you are deleting and check the snapshot status. For more information, go to DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.

In the request, you must provide the Amazon Resource Name (ARN) of the storage volume you want to delete.

", - "DescribeBandwidthRateLimit": "

Returns the bandwidth rate limits of a gateway. By default, these limits are not set, which means no bandwidth rate limiting is in effect.

This operation only returns a value for a bandwidth rate limit only if the limit is set. If no limits are set for the gateway, then this operation returns only the gateway ARN in the response body. To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.

", - "DescribeCache": "

Returns information about the cache of a gateway. This operation is supported only for the gateway-cached volume architecture.

The response includes disk IDs that are configured as cache, and it includes the amount of cache allocated and used.

", - "DescribeCachediSCSIVolumes": "

Returns a description of the gateway volumes specified in the request. This operation is supported only for the gateway-cached volume architecture.

The list of gateway volumes in the request must be from one gateway. In the response Amazon Storage Gateway returns volume information sorted by volume Amazon Resource Name (ARN).

", - "DescribeChapCredentials": "

Returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials information for a specified iSCSI target, one for each target-initiator pair.

", - "DescribeGatewayInformation": "

Returns metadata about a gateway such as its name, network interfaces, configured time zone, and the state (whether the gateway is running or not). To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.

", - "DescribeMaintenanceStartTime": "

Returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are in terms of the gateway's time zone.

", - "DescribeSnapshotSchedule": "

Describes the snapshot schedule for the specified gateway volume. The snapshot schedule information includes intervals at which snapshots are automatically initiated on the volume.

", - "DescribeStorediSCSIVolumes": "

Returns the description of the gateway volumes specified in the request. The list of gateway volumes in the request must be from one gateway. In the response Amazon Storage Gateway returns volume information sorted by volume ARNs.

", - "DescribeTapeArchives": "

Returns a description of specified virtual tapes in the virtual tape shelf (VTS).

If a specific TapeARN is not specified, AWS Storage Gateway returns a description of all virtual tapes found in the VTS associated with your account.

", - "DescribeTapeRecoveryPoints": "

Returns a list of virtual tape recovery points that are available for the specified gateway-VTL.

A recovery point is a point-in-time view of a virtual tape at which all the data on the virtual tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.

", + "DeleteVolume": "

This operation delete the specified gateway volume that you previously created using the CreateStorediSCSIVolume API. For gateway-stored volumes, the local disk that was configured as the storage volume is not deleted. You can reuse the local disk to create another storage volume.

Before you delete a gateway volume, make sure there are no iSCSI connections to the volume you are deleting. You should also make sure there is no snapshot in progress. You can use the Amazon Elastic Compute Cloud (Amazon EC2) API to query snapshots on the volume you are deleting and check the snapshot status. For more information, go to DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.

In the request, you must provide the Amazon Resource Name (ARN) of the storage volume you want to delete.

", + "DescribeBandwidthRateLimit": "

This operation returns the bandwidth rate limits of a gateway. By default, these limits are not set, which means no bandwidth rate limiting is in effect.

This operation only returns a value for a bandwidth rate limit only if the limit is set. If no limits are set for the gateway, then this operation returns only the gateway ARN in the response body. To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.

", + "DescribeCache": "

This operation returns information about the cache of a gateway. This operation is supported only for the gateway-cached volume architecture.

The response includes disk IDs that are configured as cache, and it includes the amount of cache allocated and used.

", + "DescribeCachediSCSIVolumes": "

This operation returns a description of the gateway volumes specified in the request. This operation is supported only for the gateway-cached volume architecture.

The list of gateway volumes in the request must be from one gateway. In the response Amazon Storage Gateway returns volume information sorted by volume Amazon Resource Name (ARN).

", + "DescribeChapCredentials": "

This operation returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials information for a specified iSCSI target, one for each target-initiator pair.

", + "DescribeGatewayInformation": "

This operation returns metadata about a gateway such as its name, network interfaces, configured time zone, and the state (whether the gateway is running or not). To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.

", + "DescribeMaintenanceStartTime": "

This operation returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are in terms of the gateway's time zone.

", + "DescribeSnapshotSchedule": "

This operation describes the snapshot schedule for the specified gateway volume. The snapshot schedule information includes intervals at which snapshots are automatically initiated on the volume.

", + "DescribeStorediSCSIVolumes": "

This operation returns the description of the gateway volumes specified in the request. The list of gateway volumes in the request must be from one gateway. In the response Amazon Storage Gateway returns volume information sorted by volume ARNs.

", + "DescribeTapeArchives": "

Returns a description of specified virtual tapes in the virtual tape shelf (VTS).

If a specific TapeARN is not specified, AWS Storage Gateway returns a description of all virtual tapes found in the VTS associated with your account.

", + "DescribeTapeRecoveryPoints": "

Returns a list of virtual tape recovery points that are available for the specified gateway-VTL.

A recovery point is a point in time view of a virtual tape at which all the data on the virtual tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.

", "DescribeTapes": "

Returns a description of the specified Amazon Resource Name (ARN) of virtual tapes. If a TapeARN is not specified, returns a description of all virtual tapes associated with the specified gateway.

", - "DescribeUploadBuffer": "

Returns information about the upload buffer of a gateway. This operation is supported for both the gateway-stored and gateway-cached volume architectures.

The response includes disk IDs that are configured as upload buffer space, and it includes the amount of upload buffer space allocated and used.

", - "DescribeVTLDevices": "

Returns a description of virtual tape library (VTL) devices for the specified gateway. In the response, AWS Storage Gateway returns VTL device information.

The list of VTL devices must be from one gateway.

", - "DescribeWorkingStorage": "

Returns information about the working storage of a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer instead.

Working storage is also referred to as upload buffer. You can also use the DescribeUploadBuffer operation to add upload buffer to a stored-volume gateway.

The response includes disk IDs that are configured as working storage, and it includes the amount of working storage allocated and used.

", - "DisableGateway": "

Disables a gateway when the gateway is no longer functioning. For example, if your gateway VM is damaged, you can disable the gateway so you can recover virtual tapes.

Use this operation for a gateway-VTL that is not reachable or not functioning.

Once a gateway is disabled it cannot be enabled.

", - "ListGateways": "

Lists gateways owned by an AWS account in a region specified in the request. The returned list is ordered by gateway Amazon Resource Name (ARN).

By default, the operation returns a maximum of 100 gateways. This operation supports pagination that allows you to optionally reduce the number of gateways returned in a response.

If you have more gateways than are returned in a response (that is, the response returns only a truncated list of your gateways), the response contains a marker that you can specify in your next request to fetch the next page of gateways.

", - "ListLocalDisks": "

Returns a list of the gateway's local disks. To specify which gateway to describe, you use the Amazon Resource Name (ARN) of the gateway in the body of the request.

The request returns a list of all disks, specifying which are configured as working storage, cache storage, or stored volume or not configured at all. The response includes a DiskStatus field. This field can have a value of present (the disk is available to use), missing (the disk is no longer connected to the gateway), or mismatch (the disk node is occupied by a disk that has incorrect metadata or the disk content is corrupted).

", - "ListTagsForResource": "

Lists the tags that have been added to the specified resource.

", - "ListTapes": "

Lists virtual tapes in your virtual tape library (VTL) and your virtual tape shelf (VTS). You specify the tapes to list by specifying one or more tape Amazon Resource Names (ARNs). If you don't specify a tape ARN, the operation lists all virtual tapes in both your VTL and VTS.

This operation supports pagination. By default, the operation returns a maximum of up to 100 tapes. You can optionally specify the Limit parameter in the body to limit the number of tapes in the response. If the number of tapes returned in the response is truncated, the response includes a Marker element that you can use in your subsequent request to retrieve the next set of tapes.

", - "ListVolumeInitiators": "

Lists iSCSI initiators that are connected to a volume. You can use this operation to determine whether a volume is being used or not.

", - "ListVolumeRecoveryPoints": "

Lists the recovery points for a specified gateway. This operation is supported only for the gateway-cached volume architecture.

Each gateway-cached volume has one recovery point. A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To create a snapshot from a volume recovery point use the CreateSnapshotFromVolumeRecoveryPoint operation.

", - "ListVolumes": "

Lists the iSCSI stored volumes of a gateway. Results are sorted by volume ARN. The response includes only the volume ARNs. If you want additional volume information, use the DescribeStorediSCSIVolumes API.

The operation supports pagination. By default, the operation returns a maximum of up to 100 volumes. You can optionally specify the Limit field in the body to limit the number of volumes in the response. If the number of volumes returned in the response is truncated, the response includes a Marker field. You can use this Marker value in your subsequent request to retrieve the next set of volumes.

", - "RemoveTagsFromResource": "

Removes one or more tags from the specified resource.

", - "ResetCache": "

Resets all cache disks that have encountered a error and makes the disks available for reconfiguration as cache storage. If your cache disk encounters a error, the gateway prevents read and write operations on virtual tapes in the gateway. For example, an error can occur when a disk is corrupted or removed from the gateway. When a cache is reset, the gateway loses its cache storage. At this point you can reconfigure the disks as cache disks.

If the cache disk you are resetting contains data that has not been uploaded to Amazon S3 yet, that data can be lost. After you reset cache disks, there will be no configured cache disks left in the gateway, so you must configure at least one new cache disk for your gateway to function properly.

", + "DescribeUploadBuffer": "

This operation returns information about the upload buffer of a gateway. This operation is supported for both the gateway-stored and gateway-cached volume architectures.

The response includes disk IDs that are configured as upload buffer space, and it includes the amount of upload buffer space allocated and used.

", + "DescribeVTLDevices": "

Returns a description of virtual tape library (VTL) devices for the specified gateway. In the response, AWS Storage Gateway returns VTL device information.

The list of VTL devices must be from one gateway.

", + "DescribeWorkingStorage": "

This operation returns information about the working storage of a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer instead.

Working storage is also referred to as upload buffer. You can also use the DescribeUploadBuffer operation to add upload buffer to a stored-volume gateway.

The response includes disk IDs that are configured as working storage, and it includes the amount of working storage allocated and used.

", + "DisableGateway": "

Disables a gateway when the gateway is no longer functioning. For example, if your gateway VM is damaged, you can disable the gateway so you can recover virtual tapes.

Use this operation for a gateway-VTL that is not reachable or not functioning.

Once a gateway is disabled it cannot be enabled.", + "ListGateways": "

This operation lists gateways owned by an AWS account in a region specified in the request. The returned list is ordered by gateway Amazon Resource Name (ARN).

By default, the operation returns a maximum of 100 gateways. This operation supports pagination that allows you to optionally reduce the number of gateways returned in a response.

If you have more gateways than are returned in a response-that is, the response returns only a truncated list of your gateways-the response contains a marker that you can specify in your next request to fetch the next page of gateways.

", + "ListLocalDisks": "

This operation returns a list of the gateway's local disks. To specify which gateway to describe, you use the Amazon Resource Name (ARN) of the gateway in the body of the request.

The request returns a list of all disks, specifying which are configured as working storage, cache storage, or stored volume or not configured at all. The response includes a DiskStatus field. This field can have a value of present (the disk is available to use), missing (the disk is no longer connected to the gateway), or mismatch (the disk node is occupied by a disk that has incorrect metadata or the disk content is corrupted).

", + "ListVolumeInitiators": "

This operation lists iSCSI initiators that are connected to a volume. You can use this operation to determine whether a volume is being used or not.

", + "ListVolumeRecoveryPoints": "

This operation lists the recovery points for a specified gateway. This operation is supported only for the gateway-cached volume architecture.

Each gateway-cached volume has one recovery point. A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To create a snapshot from a volume recovery point use the CreateSnapshotFromVolumeRecoveryPoint operation.

", + "ListVolumes": "

This operation lists the iSCSI stored volumes of a gateway. Results are sorted by volume ARN. The response includes only the volume ARNs. If you want additional volume information, use the DescribeStorediSCSIVolumes API.

The operation supports pagination. By default, the operation returns a maximum of up to 100 volumes. You can optionally specify the Limit field in the body to limit the number of volumes in the response. If the number of volumes returned in the response is truncated, the response includes a Marker field. You can use this Marker value in your subsequent request to retrieve the next set of volumes.

", + "ResetCache": "

This operation resets all cache disks that have encountered a error and makes the disks available for reconfiguration as cache storage. If your cache disk encounters a error, the gateway prevents read and write operations on virtual tapes in the gateway. For example, an error can occur when a disk is corrupted or removed from the gateway. When a cache is reset, the gateway loses its cache storage. At this point you can reconfigure the disks as cache disks.

If the cache disk you are resetting contains data that has not been uploaded to Amazon S3 yet, that data can be lost. After you reset cache disks, there will be no configured cache disks left in the gateway, so you must configure at least one new cache disk for your gateway to function properly.

", "RetrieveTapeArchive": "

Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a gateway-VTL. Virtual tapes archived in the VTS are not associated with any gateway. However after a tape is retrieved, it is associated with a gateway, even though it is also listed in the VTS.

Once a tape is successfully retrieved to a gateway, it cannot be retrieved again to another gateway. You must archive the tape again before you can retrieve it to another gateway.

", - "RetrieveTapeRecoveryPoint": "

Retrieves the recovery point for the specified virtual tape.

A recovery point is a point in time view of a virtual tape at which all the data on the tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.

The virtual tape can be retrieved to only one gateway. The retrieved tape is read-only. The virtual tape can be retrieved to only a gateway-VTL. There is no charge for retrieving recovery points.

", - "SetLocalConsolePassword": "

Sets the password for your VM local console. When you log in to the local console for the first time, you log in to the VM with the default credentials. We recommend that you set a new password. You don't need to know the default password to set a new password.

", - "ShutdownGateway": "

Shuts down a gateway. To specify which gateway to shut down, use the Amazon Resource Name (ARN) of the gateway in the body of your request.

The operation shuts down the gateway service component running in the storage gateway's virtual machine (VM) and not the VM.

If you want to shut down the VM, it is recommended that you first shut down the gateway component in the VM to avoid unpredictable conditions.

After the gateway is shutdown, you cannot call any other API except StartGateway, DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway. Your applications cannot read from or write to the gateway's storage volumes, and there are no snapshots taken.

When you make a shutdown request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to shut down. You can call the DescribeGatewayInformation API to check the status. For more information, see ActivateGateway.

If do not intend to use the gateway again, you must delete the gateway (using DeleteGateway) to no longer pay software charges associated with the gateway.

", - "StartGateway": "

Starts a gateway that you previously shut down (see ShutdownGateway). After the gateway starts, you can then make other API calls, your applications can read from or write to the gateway's storage volumes and you will be able to take snapshot backups.

When you make a request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to be ready. You should call DescribeGatewayInformation and check the status before making any additional API calls. For more information, see ActivateGateway.

To specify which gateway to start, use the Amazon Resource Name (ARN) of the gateway in your request.

", - "UpdateBandwidthRateLimit": "

Updates the bandwidth rate limits of a gateway. You can update both the upload and download bandwidth rate limit or specify only one of the two. If you don't set a bandwidth rate limit, the existing rate limit remains.

By default, a gateway's bandwidth rate limits are not set. If you don't set any limit, the gateway does not have any limitations on its bandwidth usage and could potentially use the maximum available bandwidth.

To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.

", - "UpdateChapCredentials": "

Updates the Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target. By default, a gateway does not have CHAP enabled; however, for added security, you might use it.

When you update CHAP credentials, all existing connections on the target are closed and initiators must reconnect with the new credentials.

", - "UpdateGatewayInformation": "

Updates a gateway's metadata, which includes the gateway's name and time zone. To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.

For Gateways activated after September 2, 2015, the gateway's ARN contains the gateway ID rather than the gateway name. However, changing the name of the gateway has no effect on the gateway's ARN.

", - "UpdateGatewaySoftwareNow": "

Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.

When you make this request, you get a 200 OK success response immediately. However, it might take some time for the update to complete. You can call DescribeGatewayInformation to verify the gateway is in the STATE_RUNNING state.

A software update forces a system restart of your gateway. You can minimize the chance of any disruption to your applications by increasing your iSCSI Initiators' timeouts. For more information about increasing iSCSI Initiator timeouts for Windows and Linux, see Customizing Your Windows iSCSI Settings and Customizing Your Linux iSCSI Settings, respectively.

", - "UpdateMaintenanceStartTime": "

Updates a gateway's weekly maintenance start time information, including day and time of the week. The maintenance time is the time in your gateway's time zone.

", - "UpdateSnapshotSchedule": "

Updates a snapshot schedule configured for a gateway volume.

The default snapshot schedule for volume is once every 24 hours, starting at the creation time of the volume. You can use this API to change the snapshot schedule configured for the volume.

In the request you must identify the gateway volume whose snapshot schedule you want to update, and the schedule information, including when you want the snapshot to begin on a day and the frequency (in hours) of snapshots.

", - "UpdateVTLDeviceType": "

Updates the type of medium changer in a gateway-VTL. When you activate a gateway-VTL, you select a medium changer type for the gateway-VTL. This operation enables you to select a different type of medium changer after a gateway-VTL is activated.

" + "RetrieveTapeRecoveryPoint": "

Retrieves the recovery point for the specified virtual tape.

A recovery point is a point in time view of a virtual tape at which all the data on the tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.

The virtual tape can be retrieved to only one gateway. The retrieved tape is read-only. The virtual tape can be retrieved to only a gateway-VTL. There is no charge for retrieving recovery points.", + "ShutdownGateway": "

This operation shuts down a gateway. To specify which gateway to shut down, use the Amazon Resource Name (ARN) of the gateway in the body of your request.

The operation shuts down the gateway service component running in the storage gateway's virtual machine (VM) and not the VM.

If you want to shut down the VM, it is recommended that you first shut down the gateway component in the VM to avoid unpredictable conditions.

After the gateway is shutdown, you cannot call any other API except StartGateway, DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway. Your applications cannot read from or write to the gateway's storage volumes, and there are no snapshots taken.

When you make a shutdown request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to shut down. You can call the DescribeGatewayInformation API to check the status. For more information, see ActivateGateway.

If do not intend to use the gateway again, you must delete the gateway (using DeleteGateway) to no longer pay software charges associated with the gateway.

", + "StartGateway": "

This operation starts a gateway that you previously shut down (see ShutdownGateway). After the gateway starts, you can then make other API calls, your applications can read from or write to the gateway's storage volumes and you will be able to take snapshot backups.

When you make a request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to be ready. You should call DescribeGatewayInformation and check the status before making any additional API calls. For more information, see ActivateGateway.

To specify which gateway to start, use the Amazon Resource Name (ARN) of the gateway in your request.

", + "UpdateBandwidthRateLimit": "

This operation updates the bandwidth rate limits of a gateway. You can update both the upload and download bandwidth rate limit or specify only one of the two. If you don't set a bandwidth rate limit, the existing rate limit remains.

By default, a gateway's bandwidth rate limits are not set. If you don't set any limit, the gateway does not have any limitations on its bandwidth usage and could potentially use the maximum available bandwidth.

To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.

", + "UpdateChapCredentials": "

This operation updates the Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target. By default, a gateway does not have CHAP enabled; however, for added security, you might use it.

When you update CHAP credentials, all existing connections on the target are closed and initiators must reconnect with the new credentials.

", + "UpdateGatewayInformation": "

This operation updates a gateway's metadata, which includes the gateway's name and time zone. To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.

", + "UpdateGatewaySoftwareNow": "

This operation updates the gateway virtual machine (VM) software. The request immediately triggers the software update.

When you make this request, you get a 200 OK success response immediately. However, it might take some time for the update to complete. You can call DescribeGatewayInformation to verify the gateway is in the STATE_RUNNING state. A software update forces a system restart of your gateway. You can minimize the chance of any disruption to your applications by increasing your iSCSI Initiators' timeouts. For more information about increasing iSCSI Initiator timeouts for Windows and Linux, see Customizing Your Windows iSCSI Settings and Customizing Your Linux iSCSI Settings, respectively.", + "UpdateMaintenanceStartTime": "

This operation updates a gateway's weekly maintenance start time information, including day and time of the week. The maintenance time is the time in your gateway's time zone.

", + "UpdateSnapshotSchedule": "

This operation updates a snapshot schedule configured for a gateway volume.

The default snapshot schedule for volume is once every 24 hours, starting at the creation time of the volume. You can use this API to change the snapshot schedule configured for the volume.

In the request you must identify the gateway volume whose snapshot schedule you want to update, and the schedule information, including when you want the snapshot to begin on a day and the frequency (in hours) of snapshots.

", + "UpdateVTLDeviceType": "

This operation updates the type of medium changer in a gateway-VTL. When you activate a gateway-VTL, you select a medium changer type for the gateway-VTL. This operation enables you to select a different type of medium changer after a gateway-VTL is activated.

" }, + "service": "AWS Storage Gateway Service

AWS Storage Gateway is the service that connects an on-premises software appliance with cloud-based storage to provide seamless and secure integration between an organization's on-premises IT environment and AWS's storage infrastructure. The service enables you to securely upload data to the AWS cloud for cost effective backup and rapid disaster recovery.

Use the following links to get started using the AWS Storage Gateway Service API Reference:

", "shapes": { "ActivateGatewayInput": { - "base": "

A JSON object containing one or more of the following fields:

", + "base": "

A JSON object containing one or more of the following fields:

", "refs": { } }, "ActivateGatewayOutput": { - "base": "

AWS Storage Gateway returns the Amazon Resource Name (ARN) of the activated gateway. It is a string made of information such as your account, gateway name, and region. This ARN is used to reference the gateway in other API operations as well as resource-based authorization.

For gateways activated prior to September 02, 2015 the gateway ARN contains the gateway name rather than the gateway id. Changing the name of the gateway has no effect on the gateway ARN.

", + "base": "

AWS Storage Gateway returns the Amazon Resource Name (ARN) of the activated gateway. It is a string made of information such as your account, gateway name, and region. This ARN is used to reference the gateway in other API operations as well as resource-based authorization.

", "refs": { } }, @@ -86,16 +80,6 @@ "refs": { } }, - "AddTagsToResourceInput": { - "base": "

AddTagsToResourceInput

", - "refs": { - } - }, - "AddTagsToResourceOutput": { - "base": "

AddTagsToResourceOutput

", - "refs": { - } - }, "AddUploadBufferInput": { "base": null, "refs": { @@ -107,7 +91,7 @@ } }, "AddWorkingStorageInput": { - "base": "

A JSON object containing one or more of the following fields:

", + "base": "

A JSON object containing one or more of the following fields:

", "refs": { } }, @@ -171,7 +155,7 @@ "ChapCredentials": { "base": null, "refs": { - "DescribeChapCredentialsOutput$ChapCredentials": "

An array of ChapInfo objects that represent CHAP credentials. Each object in the array contains CHAP credential information for one target-initiator pair. If no CHAP credentials are set, an empty array is returned. CHAP credential information is provided in a JSON object with the following fields:

  • InitiatorName: The iSCSI initiator that connects to the target.

  • SecretToAuthenticateInitiator: The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.

  • SecretToAuthenticateTarget: The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).

  • TargetARN: The Amazon Resource Name (ARN) of the storage volume.

" + "DescribeChapCredentialsOutput$ChapCredentials": "

An array of ChapInfo objects that represent CHAP credentials. Each object in the array contains CHAP credential information for one target-initiator pair. If no CHAP credentials are set, an empty array is returned. CHAP credential information is provided in a JSON object with the following fields:

  • InitiatorName: The iSCSI initiator that connects to the target.

  • SecretToAuthenticateInitiator: The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.

  • SecretToAuthenticateTarget: The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).

  • TargetARN: The Amazon Resource Name (ARN) of the storage volume.

" } }, "ChapInfo": { @@ -185,15 +169,15 @@ "refs": { "ChapInfo$SecretToAuthenticateInitiator": "

The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.

", "ChapInfo$SecretToAuthenticateTarget": "

The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).

", - "UpdateChapCredentialsInput$SecretToAuthenticateInitiator": "

The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.

The secret key must be between 12 and 16 bytes when encoded in UTF-8.

", - "UpdateChapCredentialsInput$SecretToAuthenticateTarget": "

The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).

Byte constraints: Minimum bytes of 12. Maximum bytes of 16.

The secret key must be between 12 and 16 bytes when encoded in UTF-8.

" + "UpdateChapCredentialsInput$SecretToAuthenticateInitiator": "

The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.

The secret key must be between 12 and 16 bytes when encoded in UTF-8.", + "UpdateChapCredentialsInput$SecretToAuthenticateTarget": "

The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).

Byte constraints: Minimum bytes of 12. Maximum bytes of 16.

The secret key must be between 12 and 16 bytes when encoded in UTF-8." } }, "ClientToken": { "base": null, "refs": { "CreateCachediSCSIVolumeInput$ClientToken": null, - "CreateTapesInput$ClientToken": "

A unique identifier that you use to retry a request. If you retry a request, use the same ClientToken you specified in the initial request.

Using the same ClientToken prevents creating the tape multiple times.

" + "CreateTapesInput$ClientToken": "

A unique identifier that you use to retry a request. If you retry a request, use the same ClientToken you specified in the initial request.

Using the same ClientToken prevents creating the tape multiple times." } }, "CreateCachediSCSIVolumeInput": { @@ -217,7 +201,7 @@ } }, "CreateSnapshotInput": { - "base": "

A JSON object containing one or more of the following fields:

", + "base": "

A JSON object containing one or more of the following fields:

", "refs": { } }, @@ -227,7 +211,7 @@ } }, "CreateStorediSCSIVolumeInput": { - "base": "

A JSON object containing one or more of the following fields:

", + "base": "

A JSON object containing one or more of the following fields:

", "refs": { } }, @@ -236,16 +220,6 @@ "refs": { } }, - "CreateTapeWithBarcodeInput": { - "base": "

CreateTapeWithBarcodeInput

", - "refs": { - } - }, - "CreateTapeWithBarcodeOutput": { - "base": "

CreateTapeOutput

", - "refs": { - } - }, "CreateTapesInput": { "base": "

CreateTapesInput

", "refs": { @@ -274,7 +248,7 @@ } }, "DeleteChapCredentialsInput": { - "base": "

A JSON object containing one or more of the following fields:

", + "base": "

A JSON object containing one or more of the following fields:

", "refs": { } }, @@ -404,7 +378,7 @@ } }, "DescribeStorediSCSIVolumesInput": { - "base": "

A JSON object containing a list of DescribeStorediSCSIVolumesInput$VolumeARNs.

", + "base": "

A JSON Object containing a list of DescribeStorediSCSIVolumesInput$VolumeARNs.

", "refs": { } }, @@ -483,7 +457,7 @@ "DeviceType": { "base": null, "refs": { - "UpdateVTLDeviceTypeInput$DeviceType": "

The type of medium changer you want to select.

Valid Values: \"STK-L700\", \"AWS-Gateway-VTL\"

" + "UpdateVTLDeviceTypeInput$DeviceType": "

The type of medium changer you want to select.

Valid Values: \"STK-L700\", \"AWS-Gateway-VTL\"

" } }, "DeviceiSCSIAttributes": { @@ -568,8 +542,7 @@ "CancelRetrievalInput$GatewayARN": null, "CreateCachediSCSIVolumeInput$GatewayARN": null, "CreateStorediSCSIVolumeInput$GatewayARN": null, - "CreateTapeWithBarcodeInput$GatewayARN": "

The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tape with. Use the ListGateways operation to return a list of gateways for your account and region.

", - "CreateTapesInput$GatewayARN": "

The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.

", + "CreateTapesInput$GatewayARN": "

The unique Amazon Resource Name(ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.

", "DeleteBandwidthRateLimitInput$GatewayARN": null, "DeleteBandwidthRateLimitOutput$GatewayARN": null, "DeleteGatewayInput$GatewayARN": null, @@ -594,7 +567,7 @@ "DescribeWorkingStorageOutput$GatewayARN": null, "DisableGatewayInput$GatewayARN": null, "DisableGatewayOutput$GatewayARN": "

The unique Amazon Resource Name of the disabled gateway.

", - "GatewayInfo$GatewayARN": "

The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and region.

", + "GatewayInfo$GatewayARN": null, "ListLocalDisksInput$GatewayARN": null, "ListLocalDisksOutput$GatewayARN": null, "ListVolumeRecoveryPointsInput$GatewayARN": null, @@ -605,14 +578,11 @@ "ResetCacheOutput$GatewayARN": null, "RetrieveTapeArchiveInput$GatewayARN": "

The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual tape to. Use the ListGateways operation to return a list of gateways for your account and region.

You retrieve archived virtual tapes to only one gateway and the gateway must be a gateway-VTL.

", "RetrieveTapeRecoveryPointInput$GatewayARN": null, - "SetLocalConsolePasswordInput$GatewayARN": null, - "SetLocalConsolePasswordOutput$GatewayARN": null, "ShutdownGatewayInput$GatewayARN": null, "ShutdownGatewayOutput$GatewayARN": null, "StartGatewayInput$GatewayARN": null, "StartGatewayOutput$GatewayARN": null, - "TapeArchive$RetrievedTo": "

The Amazon Resource Name (ARN) of the gateway-VTL that the virtual tape is being retrieved to.

The virtual tape is retrieved from the virtual tape shelf (VTS).

", - "TapeInfo$GatewayARN": "

The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and region.

", + "TapeArchive$RetrievedTo": "

The Amazon Resource Name (ARN) of the gateway-VTL that the virtual tape is being retrieved to.

The virtual tape is retrieved from the virtual tape shelf (VTS).

", "UpdateBandwidthRateLimitInput$GatewayARN": null, "UpdateBandwidthRateLimitOutput$GatewayARN": null, "UpdateGatewayInformationInput$GatewayARN": null, @@ -620,28 +590,25 @@ "UpdateGatewaySoftwareNowInput$GatewayARN": null, "UpdateGatewaySoftwareNowOutput$GatewayARN": null, "UpdateMaintenanceStartTimeInput$GatewayARN": null, - "UpdateMaintenanceStartTimeOutput$GatewayARN": null, - "VolumeInfo$GatewayARN": null + "UpdateMaintenanceStartTimeOutput$GatewayARN": null } }, "GatewayId": { "base": null, "refs": { - "DescribeGatewayInformationOutput$GatewayId": "

The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon Resource Name (ARN), which you use as input for other operations.

", - "GatewayInfo$GatewayId": "

The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon Resource Name (ARN), which you use as input for other operations.

", - "VolumeInfo$GatewayId": "

The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon Resource Name (ARN), which you use as input for other operations.

Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).

" + "DescribeGatewayInformationOutput$GatewayId": "

The gateway ID.

" } }, "GatewayInfo": { - "base": "

Describes a gateway object.

", + "base": null, "refs": { "Gateways$member": null } }, "GatewayName": { - "base": "

The name you configured for your gateway.

", + "base": "

A unique identifier for your gateway. This name becomes part of the gateway Amazon Resources Name (ARN) which is what you use as an input to other operations.

", "refs": { - "ActivateGatewayInput$GatewayName": "

The name you configured for your gateway.

", + "ActivateGatewayInput$GatewayName": null, "UpdateGatewayInformationInput$GatewayName": null } }, @@ -654,20 +621,20 @@ "GatewayOperationalState": { "base": null, "refs": { - "GatewayInfo$GatewayOperationalState": "

The state of the gateway.

Valid Values: DISABLED or ACTIVE

" + "GatewayInfo$GatewayOperationalState": null } }, "GatewayState": { "base": null, "refs": { - "DescribeGatewayInformationOutput$GatewayState": "

A value that indicates the operating state of the gateway.

" + "DescribeGatewayInformationOutput$GatewayState": "

One of the values that indicates the operating state of the gateway.

" } }, "GatewayTimezone": { "base": null, "refs": { - "ActivateGatewayInput$GatewayTimezone": "

A value that indicates the time zone you want to set for the gateway. The time zone is used, for example, for scheduling snapshots and your gateway's maintenance schedule.

", - "DescribeGatewayInformationOutput$GatewayTimezone": "

A value that indicates the time zone configured for the gateway.

", + "ActivateGatewayInput$GatewayTimezone": "

One of the values that indicates the time zone you want to set for the gateway. The time zone is used, for example, for scheduling snapshots and your gateway's maintenance schedule.

", + "DescribeGatewayInformationOutput$GatewayTimezone": "

One of the values that indicates the time zone configured for the gateway.

", "DescribeMaintenanceStartTimeOutput$Timezone": null, "DescribeSnapshotScheduleOutput$Timezone": null, "UpdateGatewayInformationInput$GatewayTimezone": null @@ -676,9 +643,9 @@ "GatewayType": { "base": null, "refs": { - "ActivateGatewayInput$GatewayType": "

A value that defines the type of gateway to activate. The type specified is critical to all later functions of the gateway and cannot be changed after activation. The default value is STORED.

", + "ActivateGatewayInput$GatewayType": "

One of the values that defines the type of gateway to activate. The type specified is critical to all later functions of the gateway and cannot be changed after activation. The default value is STORED.

", "DescribeGatewayInformationOutput$GatewayType": "

The type of the gateway.

", - "GatewayInfo$GatewayType": "

The type of the gateway.

" + "GatewayInfo$GatewayType": null } }, "Gateways": { @@ -692,7 +659,7 @@ "refs": { "DescribeMaintenanceStartTimeOutput$HourOfDay": null, "DescribeSnapshotScheduleOutput$StartAt": null, - "UpdateMaintenanceStartTimeInput$HourOfDay": "

The hour component of the maintenance start time represented as hh, where hh is the hour (00 to 23). The hour of the day is in the time zone of the gateway.

", + "UpdateMaintenanceStartTimeInput$HourOfDay": "

The hour component of the maintenance start time represented as hh, where hh is the hour (00 to 23). The hour of the day is in the time zone of the gateway.

", "UpdateSnapshotScheduleInput$StartAt": "

The hour of the day at which the snapshot schedule begins represented as hh, where hh is the hour (0 to 23). The hour of the day is in the time zone of the gateway.

" } }, @@ -709,12 +676,12 @@ } }, "InternalServerError": { - "base": "

An internal server error has occurred during the request. For more information, see the error and message fields.

", + "base": "

An internal server error has occurred during the request. See the error and message fields for more information.

", "refs": { } }, "InvalidGatewayRequestException": { - "base": "

An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.

", + "base": "

An exception occurred because an invalid gateway request was issued to the service. See the error and message fields for more information.

", "refs": { } }, @@ -735,7 +702,7 @@ } }, "ListGatewaysInput": { - "base": "

A JSON object containing zero or more of the following fields:

", + "base": "

A JSON object containing zero or more of the following fields:

", "refs": { } }, @@ -754,26 +721,6 @@ "refs": { } }, - "ListTagsForResourceInput": { - "base": "

ListTagsForResourceInput

", - "refs": { - } - }, - "ListTagsForResourceOutput": { - "base": "

ListTagsForResourceOutput

", - "refs": { - } - }, - "ListTapesInput": { - "base": "

A JSON object that contains one or more of the following fields:

", - "refs": { - } - }, - "ListTapesOutput": { - "base": "

A JSON object containing the following fields:

", - "refs": { - } - }, "ListVolumeInitiatorsInput": { "base": "

ListVolumeInitiatorsInput

", "refs": { @@ -795,7 +742,7 @@ } }, "ListVolumesInput": { - "base": "

A JSON object that contains one or more of the following fields:

", + "base": "

A JSON object that contains one or more of the following fields:

", "refs": { } }, @@ -804,29 +751,19 @@ "refs": { } }, - "LocalConsolePassword": { - "base": null, - "refs": { - "SetLocalConsolePasswordInput$LocalConsolePassword": "

The password you want to set for your VM local console.

" - } - }, "Marker": { "base": null, "refs": { "DescribeTapeArchivesInput$Marker": "

An opaque string that indicates the position at which to begin describing virtual tapes.

", - "DescribeTapeArchivesOutput$Marker": "

An opaque string that indicates the position at which the virtual tapes that were fetched for description ended. Use this marker in your next request to fetch the next set of virtual tapes in the virtual tape shelf (VTS). If there are no more virtual tapes to describe, this field does not appear in the response.

", + "DescribeTapeArchivesOutput$Marker": "

An opaque string that indicates the position at which the virtual tapes that were fetched for description ended. Use this marker in your next request to fetch the next set of virtual tapes in the virtual tape shelf (VTS). If there are no more virtual tapes to describe, this field does not appear in the response.

", "DescribeTapeRecoveryPointsInput$Marker": "

An opaque string that indicates the position at which to begin describing the virtual tape recovery points.

", "DescribeTapeRecoveryPointsOutput$Marker": "

An opaque string that indicates the position at which the virtual tape recovery points that were listed for description ended.

Use this marker in your next request to list the next set of virtual tape recovery points in the list. If there are no more recovery points to describe, this field does not appear in the response.

", "DescribeTapesInput$Marker": "

A marker value, obtained in a previous call to DescribeTapes. This marker indicates which page of results to retrieve.

If not specified, the first page of results is retrieved.

", - "DescribeTapesOutput$Marker": "

An opaque string which can be used as part of a subsequent DescribeTapes call to retrieve the next page of results.

If a response does not contain a marker, then there are no more results to be retrieved.

", + "DescribeTapesOutput$Marker": "

An opaque string which can be used as part of a subsequent DescribeTapes call to retrieve the next page of results.

If a response does not contain a marker, then there are no more results to be retrieved.

", "DescribeVTLDevicesInput$Marker": "

An opaque string that indicates the position at which to begin describing the VTL devices.

", "DescribeVTLDevicesOutput$Marker": "

An opaque string that indicates the position at which the VTL devices that were fetched for description ended. Use the marker in your next request to fetch the next set of VTL devices in the list. If there are no more VTL devices to describe, this field does not appear in the response.

", "ListGatewaysInput$Marker": "

An opaque string that indicates the position at which to begin the returned list of gateways.

", "ListGatewaysOutput$Marker": null, - "ListTagsForResourceInput$Marker": "

An opaque string that indicates the position at which to begin returning the list of tags.

", - "ListTagsForResourceOutput$Marker": "

An opaque string that indicates the position at which to stop returning the list of tags.

", - "ListTapesInput$Marker": "

A string that indicates the position at which to begin the returned list of tapes.

", - "ListTapesOutput$Marker": "

A string that indicates the position at which to begin returning the next list of tapes. Use the marker in your next request to continue pagination of tapes. If there are no more tapes to list, this element does not appear in the response body.

", "ListVolumesInput$Marker": "

A string that indicates the position at which to begin the returned list of volumes. Obtain the marker from the response of a previous List iSCSI Volumes request.

", "ListVolumesOutput$Marker": null } @@ -834,7 +771,7 @@ "MediumChangerType": { "base": null, "refs": { - "ActivateGatewayInput$MediumChangerType": "

The value that indicates the type of medium changer to use for gateway-VTL. This field is optional.

Valid Values: \"STK-L700\", \"AWS-Gateway-VTL\"

" + "ActivateGatewayInput$MediumChangerType": "

The value that indicates the type of medium changer to use for gateway-VTL. This field is optional.

Valid Values: \"STK-L700\", \"AWS-Gateway-VTL\"

" } }, "MinuteOfHour": { @@ -854,7 +791,7 @@ "base": null, "refs": { "CreateCachediSCSIVolumeInput$NetworkInterfaceId": null, - "CreateStorediSCSIVolumeInput$NetworkInterfaceId": "

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a list of the network interfaces available on a gateway.

Valid Values: A valid IP address.

", + "CreateStorediSCSIVolumeInput$NetworkInterfaceId": "

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a list of the network interfaces available on a gateway.

Valid Values: A valid IP address.

", "DeviceiSCSIAttributes$NetworkInterfaceId": "

The network interface identifier of the VTL device.

", "VolumeiSCSIAttributes$NetworkInterfaceId": "

The network interface identifier.

" } @@ -868,7 +805,7 @@ "NumTapesToCreate": { "base": null, "refs": { - "CreateTapesInput$NumTapesToCreate": "

The number of virtual tapes that you want to create.

" + "CreateTapesInput$NumTapesToCreate": "

The number of virtual tapes you want to create.

" } }, "PositiveIntObject": { @@ -876,11 +813,9 @@ "refs": { "DescribeTapeArchivesInput$Limit": "

Specifies that the number of virtual tapes descried be limited to the specified number.

", "DescribeTapeRecoveryPointsInput$Limit": "

Specifies that the number of virtual tape recovery points that are described be limited to the specified number.

", - "DescribeTapesInput$Limit": "

Specifies that the number of virtual tapes described be limited to the specified number.

Amazon Web Services may impose its own limit, if this field is not set.

", + "DescribeTapesInput$Limit": "

Specifies that the number of virtual tapes described be limited to the specified number.

Amazon Web Services may impose its own limit, if this field is not set.", "DescribeVTLDevicesInput$Limit": "

Specifies that the number of VTL devices described be limited to the specified number.

", "ListGatewaysInput$Limit": "

Specifies that the list of gateways returned be limited to the specified number of items.

", - "ListTagsForResourceInput$Limit": "

Specifies that the list of tags returned be limited to the specified number of items.

", - "ListTapesInput$Limit": "

An optional number limit for the tapes in the list returned by this call.

", "ListVolumesInput$Limit": "

Specifies that the list of volumes returned be limited to the specified number of items.

", "VolumeiSCSIAttributes$LunNumber": "

The logical disk number.

" } @@ -895,17 +830,7 @@ "RegionId": { "base": null, "refs": { - "ActivateGatewayInput$GatewayRegion": "

A value that indicates the region where you want to store the snapshot backups. The gateway region specified must be the same region as the region in your Host header in the request. For more information about available regions and endpoints for AWS Storage Gateway, see Regions and Endpoints in the Amazon Web Services Glossary.

Valid Values: \"us-east-1\", \"us-west-1\", \"us-west-2\", \"eu-west-1\", \"eu-central-1\", \"ap-northeast-1\", \"ap-northeast-2\", \"ap-southeast-1\", \"ap-southeast-2\", \"sa-east-1\"

" - } - }, - "RemoveTagsFromResourceInput": { - "base": "

RemoveTagsFromResourceInput

", - "refs": { - } - }, - "RemoveTagsFromResourceOutput": { - "base": "

RemoveTagsFromResourceOutput

", - "refs": { + "ActivateGatewayInput$GatewayRegion": "

One of the values that indicates the region where you want to store the snapshot backups. The gateway region specified must be the same region as the region in your Host header in the request. For more information about available regions and endpoints for AWS Storage Gateway, see Regions and Endpoints in the Amazon Web Services Glossary.

Valid Values: \"us-east-1\", \"us-west-1\", \"us-west-2\", \"eu-west-1\", \"eu-central-1\", \"ap-northeast-1\", \"ap-southeast-1\", \"ap-southeast-2\", \"sa-east-1\"

" } }, "ResetCacheInput": { @@ -918,17 +843,6 @@ "refs": { } }, - "ResourceARN": { - "base": null, - "refs": { - "AddTagsToResourceInput$ResourceARN": "

The Amazon Resource Name (ARN) of the resource you want to add tags to.

", - "AddTagsToResourceOutput$ResourceARN": "

The Amazon Resource Name (ARN) of the resource you want to add tags to.

", - "ListTagsForResourceInput$ResourceARN": "

The Amazon Resource Name (ARN) of the resource for which you want to list tags.

", - "ListTagsForResourceOutput$ResourceARN": "

he Amazon Resource Name (ARN) of the resource for which you want to list tags.

", - "RemoveTagsFromResourceInput$ResourceARN": "

The Amazon Resource Name (ARN) of the resource you want to remove the tags from.

", - "RemoveTagsFromResourceOutput$ResourceARN": "

The Amazon Resource Name (ARN) of the resource that the tags were removed from.

" - } - }, "RetrieveTapeArchiveInput": { "base": "

RetrieveTapeArchiveInput

", "refs": { @@ -949,16 +863,6 @@ "refs": { } }, - "SetLocalConsolePasswordInput": { - "base": "

SetLocalConsolePasswordInput

", - "refs": { - } - }, - "SetLocalConsolePasswordOutput": { - "base": null, - "refs": { - } - }, "ShutdownGatewayInput": { "base": "

A JSON object containing the of the gateway to shut down.

", "refs": { @@ -1000,7 +904,7 @@ "StorageGatewayError": { "base": "

Provides additional information about an error that was returned by the service as an or. See the errorCode and errorDetails members for more information about the error.

", "refs": { - "InternalServerError$error": "

A StorageGatewayError that provides more information about the cause of the error.

", + "InternalServerError$error": "

A StorageGatewayError that provides more detail about the cause of the error.

", "InvalidGatewayRequestException$error": "

A StorageGatewayError that provides more detail about the cause of the error.

" } }, @@ -1016,38 +920,6 @@ "DescribeStorediSCSIVolumesOutput$StorediSCSIVolumes": null } }, - "Tag": { - "base": null, - "refs": { - "Tags$member": null - } - }, - "TagKey": { - "base": null, - "refs": { - "Tag$Key": null, - "TagKeys$member": null - } - }, - "TagKeys": { - "base": null, - "refs": { - "RemoveTagsFromResourceInput$TagKeys": "

The keys of the tags you want to remove from the specified resource. A tag is composed of a key/value pair.

" - } - }, - "TagValue": { - "base": null, - "refs": { - "Tag$Value": null - } - }, - "Tags": { - "base": null, - "refs": { - "AddTagsToResourceInput$Tags": "

The key-value pair that represents the tag you want to add to the resource. The value can be an empty string.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @.

", - "ListTagsForResourceOutput$Tags": "

An array that contains the tags for the specified resource.

" - } - }, "Tape": { "base": "

Describes a virtual tape object.

", "refs": { @@ -1061,29 +933,26 @@ "CancelArchivalOutput$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape for which archiving was canceled.

", "CancelRetrievalInput$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape you want to cancel retrieval for.

", "CancelRetrievalOutput$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape for which retrieval was canceled.

", - "CreateTapeWithBarcodeOutput$TapeARN": "

A unique Amazon Resource Name (ARN) that represents the virtual tape that was created.

", "DeleteTapeArchiveInput$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual tape shelf (VTS).

", "DeleteTapeArchiveOutput$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape that was deleted from the virtual tape shelf (VTS).

", "DeleteTapeInput$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape to delete.

", "DeleteTapeOutput$TapeARN": "

The Amazon Resource Name (ARN) of the deleted virtual tape.

", - "RetrieveTapeArchiveInput$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from the virtual tape shelf (VTS).

", + "RetrieveTapeArchiveInput$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from the virtual tape shelf (VTS).

", "RetrieveTapeArchiveOutput$TapeARN": "

The Amazon Resource Name (ARN) of the retrieved virtual tape.

", "RetrieveTapeRecoveryPointInput$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape for which you want to retrieve the recovery point.

", "RetrieveTapeRecoveryPointOutput$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape for which the recovery point was retrieved.

", "Tape$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape.

", "TapeARNs$member": null, "TapeArchive$TapeARN": "

The Amazon Resource Name (ARN) of an archived virtual tape.

", - "TapeInfo$TapeARN": "

The Amazon Resource Name (ARN) of a virtual tape.

", "TapeRecoveryPointInfo$TapeARN": "

The Amazon Resource Name (ARN) of the virtual tape.

" } }, "TapeARNs": { - "base": "

The Amazon Resource Name (ARN) of each of the tapes you want to list. If you don't specify a tape ARN, the response lists all tapes in both your VTL and VTS.

", + "base": null, "refs": { - "CreateTapesOutput$TapeARNs": "

A list of unique Amazon Resource Names (ARNs) that represents the virtual tapes that were created.

", - "DescribeTapeArchivesInput$TapeARNs": "

Specifies one or more unique Amazon Resource Names (ARNs) that represent the virtual tapes you want to describe.

", - "DescribeTapesInput$TapeARNs": "

Specifies one or more unique Amazon Resource Names (ARNs) that represent the virtual tapes you want to describe. If this parameter is not specified, AWS Storage Gateway returns a description of all virtual tapes associated with the specified gateway.

", - "ListTapesInput$TapeARNs": null + "CreateTapesOutput$TapeARNs": "

A list of unique Amazon Resource Named (ARN) the represents the virtual tapes that were created.

", + "DescribeTapeArchivesInput$TapeARNs": "

Specifies one or more unique Amazon Resource Names (ARNs) that represent the virtual tapes you want to describe.

", + "DescribeTapesInput$TapeARNs": "

Specifies one or more unique Amazon Resource Names (ARNs) that represent the virtual tapes you want to describe. If this parameter is not specified, AWS Storage Gateway returns a description of all virtual tapes associated with the specified gateway.

" } }, "TapeArchive": { @@ -1095,7 +964,7 @@ "TapeArchiveStatus": { "base": null, "refs": { - "TapeArchive$TapeStatus": "

The current state of the archived virtual tape.

" + "TapeArchive$TapeStatus": "

The current state of the archived virtual tape.

" } }, "TapeArchives": { @@ -1107,38 +976,24 @@ "TapeBarcode": { "base": null, "refs": { - "CreateTapeWithBarcodeInput$TapeBarcode": "

The barcode that you want to assign to the tape.

", "Tape$TapeBarcode": "

The barcode that identifies a specific virtual tape.

", - "TapeArchive$TapeBarcode": "

The barcode that identifies the archived virtual tape.

", - "TapeInfo$TapeBarcode": "

The barcode that identifies a specific virtual tape.

" + "TapeArchive$TapeBarcode": "

The barcode that identifies the archived virtual tape.

" } }, "TapeBarcodePrefix": { "base": null, "refs": { - "CreateTapesInput$TapeBarcodePrefix": "

A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.

The prefix must be 1 to 4 characters in length and must be one of the uppercase letters from A to Z.

" + "CreateTapesInput$TapeBarcodePrefix": "

A prefix you append to the barcode of the virtual tape you are creating. This makes a barcode unique.

The prefix must be 1 to 4 characters in length and must be upper-case letters A-Z." } }, "TapeDriveType": { "base": null, "refs": { - "ActivateGatewayInput$TapeDriveType": "

The value that indicates the type of tape drive to use for gateway-VTL. This field is optional.

Valid Values: \"IBM-ULT3580-TD5\"

" - } - }, - "TapeInfo": { - "base": "

Describes a virtual tape.

", - "refs": { - "TapeInfos$member": null - } - }, - "TapeInfos": { - "base": "

An array of TapeInfo objects, where each object describes an a single tape. If there not tapes in the tape library or VTS, then the TapeInfos is an empty array.

", - "refs": { - "ListTapesOutput$TapeInfos": null + "ActivateGatewayInput$TapeDriveType": "

The value that indicates the type of tape drive to use for gateway-VTL. This field is optional.

Valid Values: \"IBM-ULT3580-TD5\"

" } }, "TapeRecoveryPointInfo": { - "base": "

Describes a recovery point.

", + "base": "

Describes a recovery point.

", "refs": { "TapeRecoveryPointInfos$member": null } @@ -1158,19 +1013,16 @@ "TapeSize": { "base": null, "refs": { - "CreateTapeWithBarcodeInput$TapeSizeInBytes": "

The size, in bytes, of the virtual tape that you want to create.

The size must be aligned by gigabyte (1024*1024*1024 byte).

", - "CreateTapesInput$TapeSizeInBytes": "

The size, in bytes, of the virtual tapes that you want to create.

The size must be aligned by gigabyte (1024*1024*1024 byte).

", + "CreateTapesInput$TapeSizeInBytes": "

The size, in bytes, of the virtual tapes you want to create.

The size must be gigabyte (1024*1024*1024 byte) aligned.", "Tape$TapeSizeInBytes": "

The size, in bytes, of the virtual tape.

", "TapeArchive$TapeSizeInBytes": "

The size, in bytes, of the archived virtual tape.

", - "TapeInfo$TapeSizeInBytes": "

The size, in bytes, of a virtual tape.

", "TapeRecoveryPointInfo$TapeSizeInBytes": "

The size, in bytes, of the virtual tapes to recover.

" } }, "TapeStatus": { "base": null, "refs": { - "Tape$TapeStatus": "

The current state of the virtual tape.

", - "TapeInfo$TapeStatus": "

The status of the tape.

" + "Tape$TapeStatus": "

The current state of the virtual tape.

" } }, "Tapes": { @@ -1182,7 +1034,7 @@ "TargetARN": { "base": null, "refs": { - "ChapInfo$TargetARN": "

The Amazon Resource Name (ARN) of the volume.

Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).

", + "ChapInfo$TargetARN": "

The Amazon Resource Name (ARN) of the volume.

Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).

", "CreateCachediSCSIVolumeOutput$TargetARN": null, "CreateStorediSCSIVolumeOutput$TargetARN": "

he Amazon Resource Name (ARN) of the volume target that includes the iSCSI name that initiators can use to connect to the target.

", "DeleteChapCredentialsInput$TargetARN": "

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN for specified VolumeARN.

", @@ -1198,18 +1050,18 @@ "base": null, "refs": { "CreateCachediSCSIVolumeInput$TargetName": null, - "CreateStorediSCSIVolumeInput$TargetName": "

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. For example, specifying TargetName as myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes of a gateway.

" + "CreateStorediSCSIVolumeInput$TargetName": "

The name of the iSCSI target used by initiators to connect to the target and as a suffix for the target ARN. For example, specifying TargetName as myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway/mygateway/target/iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes of a gateway.

" } }, "Time": { "base": null, "refs": { "TapeArchive$CompletionTime": "

The time that the archiving of the virtual tape was completed.

The string format of the completion time is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.

", - "TapeRecoveryPointInfo$TapeRecoveryPointTime": "

The time when the point-in-time view of the virtual tape was replicated for later recovery.

The string format of the tape recovery point time is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.

" + "TapeRecoveryPointInfo$TapeRecoveryPointTime": "

The time when the point-in-time view of the virtual tape was replicated for later recovery.

The string format of the tape recovery point time is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.

" } }, "UpdateBandwidthRateLimitInput": { - "base": "

A JSON object containing one or more of the following fields:

", + "base": "

A JSON object containing one or more of the following fields:

", "refs": { } }, @@ -1219,7 +1071,7 @@ } }, "UpdateChapCredentialsInput": { - "base": "

A JSON object containing one or more of the following fields:

", + "base": "

A JSON object containing one or more of the following fields:

", "refs": { } }, @@ -1234,7 +1086,7 @@ } }, "UpdateGatewayInformationOutput": { - "base": "

A JSON object containing the ARN of the gateway that was updated.

", + "base": "

A JSON object containing the of the gateway that was updated.

", "refs": { } }, @@ -1249,7 +1101,7 @@ } }, "UpdateMaintenanceStartTimeInput": { - "base": "

A JSON object containing the following fields:

", + "base": "

A JSON object containing the following fields:

", "refs": { } }, @@ -1259,7 +1111,7 @@ } }, "UpdateSnapshotScheduleInput": { - "base": "

A JSON object containing one or more of the following fields:

", + "base": "

A JSON object containing one or more of the following fields:

", "refs": { } }, @@ -1269,7 +1121,7 @@ } }, "UpdateVTLDeviceTypeInput": { - "base": null, + "base": "

UpdateVTLDeviceTypeInput

", "refs": { } }, @@ -1279,7 +1131,7 @@ } }, "VTLDevice": { - "base": "

Represents a device object associated with a gateway-VTL.

", + "base": "

Represents a device object associated with a gateway-VTL.

", "refs": { "VTLDevices$member": null } @@ -1297,7 +1149,7 @@ "VTLDeviceARNs": { "base": null, "refs": { - "DescribeVTLDevicesInput$VTLDeviceARNs": "

An array of strings, where each string represents the Amazon Resource Name (ARN) of a VTL device.

All of the specified VTL devices must be from the same gateway. If no VTL devices are specified, the result will contain all devices on the specified gateway.

" + "DescribeVTLDevicesInput$VTLDeviceARNs": "

An array of strings, where each string represents the Amazon Resource Name (ARN) of a VTL device.

All of the specified VTL devices must be from the same gateway. If no VTL devices are specified, the result will contain all devices on the specified gateway." } }, "VTLDeviceProductIdentifier": { @@ -1343,9 +1195,9 @@ "ListVolumeInitiatorsInput$VolumeARN": "

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes for the gateway.

", "StorediSCSIVolume$VolumeARN": null, "UpdateSnapshotScheduleInput$VolumeARN": "

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

", - "UpdateSnapshotScheduleOutput$VolumeARN": "

", + "UpdateSnapshotScheduleOutput$VolumeARN": null, "VolumeARNs$member": null, - "VolumeInfo$VolumeARN": "

The Amazon Resource Name (ARN) for the storage volume. For example, the following is a valid ARN:

arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB

Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).

", + "VolumeInfo$VolumeARN": null, "VolumeRecoveryPointInfo$VolumeARN": null } }, @@ -1360,12 +1212,11 @@ "base": null, "refs": { "CachediSCSIVolume$VolumeId": null, - "StorediSCSIVolume$VolumeId": null, - "VolumeInfo$VolumeId": "

The unique identifier assigned to the volume. This ID becomes part of the volume Amazon Resource Name (ARN), which you use as input for other operations.

Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).

" + "StorediSCSIVolume$VolumeId": null } }, "VolumeInfo": { - "base": "

Describes a storage volume object.

", + "base": null, "refs": { "VolumeInfos$member": null } @@ -1413,7 +1264,7 @@ "boolean": { "base": null, "refs": { - "CreateStorediSCSIVolumeInput$PreserveExistingData": "

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

Valid Values: true, false

", + "CreateStorediSCSIVolumeInput$PreserveExistingData": "

Specify this field as true if you want to preserve the data on the local disk. Otherwise, specifying this field as false creates an empty volume.

Valid Values: true, false

", "DeviceiSCSIAttributes$ChapEnabled": "

Indicates whether mutual CHAP is enabled for the iSCSI target.

", "StorediSCSIVolume$PreservedExistingData": null, "VolumeiSCSIAttributes$ChapEnabled": "

Indicates whether mutual CHAP is enabled for the iSCSI target.

" @@ -1454,7 +1305,6 @@ "DescribeWorkingStorageOutput$WorkingStorageAllocatedInBytes": "

The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.

", "Disk$DiskSizeInBytes": null, "StorediSCSIVolume$VolumeSizeInBytes": null, - "VolumeInfo$VolumeSizeInBytes": "

The size, in bytes, of the volume.

Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).

", "VolumeRecoveryPointInfo$VolumeSizeInBytes": null, "VolumeRecoveryPointInfo$VolumeUsageInBytes": null } @@ -1463,18 +1313,15 @@ "base": null, "refs": { "CreateSnapshotFromVolumeRecoveryPointOutput$VolumeRecoveryPointTime": null, - "DescribeGatewayInformationOutput$GatewayName": "

The name you configured for your gateway.

", "Disk$DiskPath": null, "Disk$DiskNode": null, "Disk$DiskStatus": null, "Disk$DiskAllocationResource": null, - "GatewayInfo$GatewayName": "

The name of the gateway.

", "InternalServerError$message": "

A human-readable message describing the error that occurred.

", "InvalidGatewayRequestException$message": "

A human-readable message describing the error that occurred.

", "NetworkInterface$Ipv4Address": "

The Internet Protocol version 4 (IPv4) address of the interface.

", - "NetworkInterface$MacAddress": "

The Media Access Control (MAC) address of the interface.

This is currently unsupported and will not be returned in output.

", + "NetworkInterface$MacAddress": "

The Media Access Control (MAC) address of the interface.

This is currently unsupported and will not be returned in output.", "NetworkInterface$Ipv6Address": "

The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.

", - "UpdateGatewayInformationOutput$GatewayName": null, "VolumeRecoveryPointInfo$VolumeRecoveryPointTime": null, "errorDetails$key": null, "errorDetails$value": null diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/storagegateway/2013-06-30/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/storagegateway/2013-06-30/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/streams.dynamodb/2012-08-10/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/streams.dynamodb/2012-08-10/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/streams.dynamodb/2012-08-10/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/streams.dynamodb/2012-08-10/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/streams.dynamodb/2012-08-10/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/sts/2011-06-15/api-2.json similarity index 72% rename from vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/sts/2011-06-15/api-2.json index 5859e0e50..05929fe17 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/sts/2011-06-15/api-2.json @@ -4,11 +4,11 @@ "apiVersion":"2011-06-15", "endpointPrefix":"sts", "globalEndpoint":"sts.amazonaws.com", - "protocol":"query", "serviceAbbreviation":"AWS STS", "serviceFullName":"AWS Security Token Service", "signatureVersion":"v4", - "xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/" + "xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/", + "protocol":"query" }, "operations":{ "AssumeRole":{ @@ -23,9 +23,24 @@ "resultWrapper":"AssumeRoleResult" }, "errors":[ - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"PackedPolicyTooLargeException"}, - {"shape":"RegionDisabledException"} + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"PackedPolicyTooLargeException", + "error":{ + "code":"PackedPolicyTooLarge", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "AssumeRoleWithSAML":{ @@ -40,12 +55,51 @@ "resultWrapper":"AssumeRoleWithSAMLResult" }, "errors":[ - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"PackedPolicyTooLargeException"}, - {"shape":"IDPRejectedClaimException"}, - {"shape":"InvalidIdentityTokenException"}, - {"shape":"ExpiredTokenException"}, - {"shape":"RegionDisabledException"} + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"PackedPolicyTooLargeException", + "error":{ + "code":"PackedPolicyTooLarge", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"IDPRejectedClaimException", + "error":{ + "code":"IDPRejectedClaim", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidIdentityTokenException", + "error":{ + "code":"InvalidIdentityToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ExpiredTokenException", + "error":{ + "code":"ExpiredTokenException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "AssumeRoleWithWebIdentity":{ @@ -60,13 +114,60 @@ "resultWrapper":"AssumeRoleWithWebIdentityResult" }, "errors":[ - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"PackedPolicyTooLargeException"}, - {"shape":"IDPRejectedClaimException"}, - {"shape":"IDPCommunicationErrorException"}, - {"shape":"InvalidIdentityTokenException"}, - {"shape":"ExpiredTokenException"}, - {"shape":"RegionDisabledException"} + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"PackedPolicyTooLargeException", + "error":{ + "code":"PackedPolicyTooLarge", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"IDPRejectedClaimException", + "error":{ + "code":"IDPRejectedClaim", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + { + "shape":"IDPCommunicationErrorException", + "error":{ + "code":"IDPCommunicationError", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"InvalidIdentityTokenException", + "error":{ + "code":"InvalidIdentityToken", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"ExpiredTokenException", + "error":{ + "code":"ExpiredTokenException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "DecodeAuthorizationMessage":{ @@ -81,21 +182,17 @@ "resultWrapper":"DecodeAuthorizationMessageResult" }, "errors":[ - {"shape":"InvalidAuthorizationMessageException"} + { + "shape":"InvalidAuthorizationMessageException", + "error":{ + "code":"InvalidAuthorizationMessageException", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, - "GetCallerIdentity":{ - "name":"GetCallerIdentity", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetCallerIdentityRequest"}, - "output":{ - "shape":"GetCallerIdentityResponse", - "resultWrapper":"GetCallerIdentityResult" - } - }, "GetFederationToken":{ "name":"GetFederationToken", "http":{ @@ -108,9 +205,24 @@ "resultWrapper":"GetFederationTokenResult" }, "errors":[ - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"PackedPolicyTooLargeException"}, - {"shape":"RegionDisabledException"} + { + "shape":"MalformedPolicyDocumentException", + "error":{ + "code":"MalformedPolicyDocument", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + { + "shape":"PackedPolicyTooLargeException", + "error":{ + "code":"PackedPolicyTooLarge", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } ] }, "GetSessionToken":{ @@ -123,10 +235,7 @@ "output":{ "shape":"GetSessionTokenResponse", "resultWrapper":"GetSessionTokenResult" - }, - "errors":[ - {"shape":"RegionDisabledException"} - ] + } } }, "shapes":{ @@ -138,7 +247,7 @@ ], "members":{ "RoleArn":{"shape":"arnType"}, - "RoleSessionName":{"shape":"roleSessionNameType"}, + "RoleSessionName":{"shape":"userNameType"}, "Policy":{"shape":"sessionPolicyDocumentType"}, "DurationSeconds":{"shape":"roleDurationSecondsType"}, "ExternalId":{"shape":"externalIdType"}, @@ -191,7 +300,7 @@ ], "members":{ "RoleArn":{"shape":"arnType"}, - "RoleSessionName":{"shape":"roleSessionNameType"}, + "RoleSessionName":{"shape":"userNameType"}, "WebIdentityToken":{"shape":"clientTokenType"}, "ProviderId":{"shape":"urlType"}, "Policy":{"shape":"sessionPolicyDocumentType"}, @@ -272,19 +381,6 @@ "Arn":{"shape":"arnType"} } }, - "GetCallerIdentityRequest":{ - "type":"structure", - "members":{ - } - }, - "GetCallerIdentityResponse":{ - "type":"structure", - "members":{ - "UserId":{"shape":"userIdType"}, - "Account":{"shape":"accountType"}, - "Arn":{"shape":"arnType"} - } - }, "GetFederationTokenRequest":{ "type":"structure", "required":["Name"], @@ -390,73 +486,59 @@ }, "exception":true }, - "RegionDisabledException":{ - "type":"structure", - "members":{ - "message":{"shape":"regionDisabledMessage"} - }, - "error":{ - "code":"RegionDisabledException", - "httpStatusCode":403, - "senderFault":true - }, - "exception":true - }, "SAMLAssertionType":{ "type":"string", - "max":50000, - "min":4 + "min":4, + "max":50000 }, "Subject":{"type":"string"}, "SubjectType":{"type":"string"}, "accessKeyIdType":{ "type":"string", - "max":32, "min":16, + "max":32, "pattern":"[\\w]*" }, "accessKeySecretType":{"type":"string"}, - "accountType":{"type":"string"}, "arnType":{ "type":"string", - "max":2048, "min":20, - "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+" + "max":2048 }, "assumedRoleIdType":{ "type":"string", - "max":96, "min":2, + "max":96, "pattern":"[\\w+=,.@:-]*" }, "clientTokenType":{ "type":"string", - "max":2048, - "min":4 + "min":4, + "max":2048 }, "dateType":{"type":"timestamp"}, "decodedMessageType":{"type":"string"}, "durationSecondsType":{ "type":"integer", - "max":129600, - "min":900 + "min":900, + "max":129600 }, "encodedMessageType":{ "type":"string", - "max":10240, - "min":1 + "min":1, + "max":10240 }, "expiredIdentityTokenMessage":{"type":"string"}, "externalIdType":{ "type":"string", - "max":1224, "min":2, + "max":1224, "pattern":"[\\w+=,.@:\\/-]*" }, "federatedIdType":{ "type":"string", - "max":96, "min":2, + "max":96, "pattern":"[\\w+=,.@\\:-]*" }, "idpCommunicationErrorMessage":{"type":"string"}, @@ -469,53 +551,45 @@ "min":0 }, "packedPolicyTooLargeMessage":{"type":"string"}, - "regionDisabledMessage":{"type":"string"}, "roleDurationSecondsType":{ "type":"integer", - "max":3600, - "min":900 - }, - "roleSessionNameType":{ - "type":"string", - "max":64, - "min":2, - "pattern":"[\\w+=,.@-]*" + "min":900, + "max":3600 }, "serialNumberType":{ "type":"string", - "max":256, "min":9, + "max":256, "pattern":"[\\w+=/:,.@-]*" }, "sessionPolicyDocumentType":{ "type":"string", - "max":2048, "min":1, + "max":2048, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" }, "tokenCodeType":{ "type":"string", - "max":6, "min":6, + "max":6, "pattern":"[\\d]*" }, "tokenType":{"type":"string"}, "urlType":{ "type":"string", - "max":2048, - "min":4 + "min":4, + "max":2048 }, - "userIdType":{"type":"string"}, "userNameType":{ "type":"string", - "max":32, "min":2, + "max":32, "pattern":"[\\w+=,.@-]*" }, "webIdentitySubjectType":{ "type":"string", - "max":255, - "min":6 + "min":6, + "max":255 } } } diff --git a/vendor/github.com/aws/aws-sdk-go/apis/sts/2011-06-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/sts/2011-06-15/docs-2.json new file mode 100644 index 000000000..900c0de6d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/apis/sts/2011-06-15/docs-2.json @@ -0,0 +1,351 @@ +{ + "version": "2.0", + "operations": { + "AssumeRole": "

Returns a set of temporary security credentials (consisting of an access key ID, a secret access key, and a security token) that you can use to access AWS resources that you might not normally have access to. Typically, you use AssumeRole for cross-account access or federation.

Important: You cannot call AssumeRole by using AWS account credentials; access will be denied. You must use IAM user credentials or temporary security credentials to call AssumeRole.

For cross-account access, imagine that you own multiple accounts and need to access resources in each account. You could create long-term credentials in each account to access those resources. However, managing all those credentials and remembering which one can access which account can be time consuming. Instead, you can create one set of long-term credentials in one account and then use temporary security credentials to access all the other accounts by assuming roles in those accounts. For more information about roles, see IAM Roles (Delegation and Federation) in Using IAM.

For federation, you can, for example, grant single sign-on access to the AWS Management Console. If you already have an identity and authentication system in your corporate network, you don't have to recreate user identities in AWS in order to grant those user identities access to AWS. Instead, after a user has been authenticated, you call AssumeRole (and specify the role with the appropriate permissions) to get temporary security credentials for that user. With those temporary security credentials, you construct a sign-in URL that users can use to access the console. For more information, see Scenarios for Granting Temporary Access in Using Temporary Security Credentials.

The temporary security credentials are valid for the duration that you specified when calling AssumeRole, which can be from 900 seconds (15 minutes) to 3600 seconds (1 hour). The default is 1 hour.

Optionally, you can pass an IAM access policy to this operation. If you choose not to pass a policy, the temporary security credentials that are returned by the operation have the permissions that are defined in the access policy of the role that is being assumed. If you pass a policy to this operation, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in Using Temporary Security Credentials.

To assume a role, your AWS account must be trusted by the role. The trust relationship is defined in the role's trust policy when the role is created. You must also have a policy that allows you to call sts:AssumeRole.

Using MFA with AssumeRole

You can optionally include multi-factor authentication (MFA) information when you call AssumeRole. This is useful for cross-account scenarios in which you want to make sure that the user who is assuming the role has been authenticated using an AWS MFA device. In that scenario, the trust policy of the role being assumed includes a condition that tests for MFA authentication; if the caller does not include valid MFA information, the request to assume the role is denied. The condition in a trust policy that tests for MFA authentication might look like the following example.

\"Condition\": {\"Bool\": {\"aws:MultiFactorAuthPresent\": true}}

For more information, see Configuring MFA-Protected API Access in Using IAM guide.

To use MFA with AssumeRole, you pass values for the SerialNumber and TokenCode parameters. The SerialNumber value identifies the user's hardware or virtual MFA device. The TokenCode is the time-based one-time password (TOTP) that the MFA devices produces.

", + "AssumeRoleWithSAML": "

Returns a set of temporary security credentials for users who have been authenticated via a SAML authentication response. This operation provides a mechanism for tying an enterprise identity store or directory to role-based AWS access without user-specific credentials or configuration.

The temporary security credentials returned by this operation consist of an access key ID, a secret access key, and a security token. Applications can use these temporary security credentials to sign calls to AWS services. The credentials are valid for the duration that you specified when calling AssumeRoleWithSAML, which can be up to 3600 seconds (1 hour) or until the time specified in the SAML authentication response's SessionNotOnOrAfter value, whichever is shorter.

The maximum duration for a session is 1 hour, and the minimum duration is 15 minutes, even if values outside this range are specified.

Optionally, you can pass an IAM access policy to this operation. If you choose not to pass a policy, the temporary security credentials that are returned by the operation have the permissions that are defined in the access policy of the role that is being assumed. If you pass a policy to this operation, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRoleWithSAML in Using Temporary Security Credentials.

Before your application can call AssumeRoleWithSAML, you must configure your SAML identity provider (IdP) to issue the claims required by AWS. Additionally, you must use AWS Identity and Access Management (IAM) to create a SAML provider entity in your AWS account that represents your identity provider, and create an IAM role that specifies this SAML provider in its trust policy.

Calling AssumeRoleWithSAML does not require the use of AWS security credentials. The identity of the caller is validated by using keys in the metadata document that is uploaded for the SAML provider entity for your identity provider.

For more information, see the following resources:

", + "AssumeRoleWithWebIdentity": "

Returns a set of temporary security credentials for users who have been authenticated in a mobile or web application with a web identity provider, such as Amazon Cognito, Login with Amazon, Facebook, Google, or any OpenID Connect-compatible identity provider.

For mobile applications, we recommend that you use Amazon Cognito. You can use Amazon Cognito with the AWS SDK for iOS and the AWS SDK for Android to uniquely identify a user and supply the user with a consistent identity throughout the lifetime of an application.

To learn more about Amazon Cognito, see Amazon Cognito Overview in the AWS SDK for Android Developer Guide guide and Amazon Cognito Overview in the AWS SDK for iOS Developer Guide.

Calling AssumeRoleWithWebIdentity does not require the use of AWS security credentials. Therefore, you can distribute an application (for example, on mobile devices) that requests temporary security credentials without including long-term AWS credentials in the application, and without deploying server-based proxy services that use long-term AWS credentials. Instead, the identity of the caller is validated by using a token from the web identity provider.

The temporary security credentials returned by this API consist of an access key ID, a secret access key, and a security token. Applications can use these temporary security credentials to sign calls to AWS service APIs. The credentials are valid for the duration that you specified when calling AssumeRoleWithWebIdentity, which can be from 900 seconds (15 minutes) to 3600 seconds (1 hour). By default, the temporary security credentials are valid for 1 hour.

Optionally, you can pass an IAM access policy to this operation. If you choose not to pass a policy, the temporary security credentials that are returned by the operation have the permissions that are defined in the access policy of the role that is being assumed. If you pass a policy to this operation, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRoleWithWebIdentity.

Before your application can call AssumeRoleWithWebIdentity, you must have an identity token from a supported identity provider and create a role that the application can assume. The role that your application assumes must trust the identity provider that is associated with the identity token. In other words, the identity provider must be specified in the role's trust policy.

For more information about how to use web identity federation and the AssumeRoleWithWebIdentity API, see the following resources:

", + "DecodeAuthorizationMessage": "

Decodes additional information about the authorization status of a request from an encoded message returned in response to an AWS request.

For example, if a user is not authorized to perform an action that he or she has requested, the request returns a Client.UnauthorizedOperation response (an HTTP 403 response). Some AWS actions additionally return an encoded message that can provide details about this authorization failure.

Only certain AWS actions return an encoded authorization message. The documentation for an individual action indicates whether that action returns an encoded message in addition to returning an HTTP code.

The message is encoded because the details of the authorization status can constitute privileged information that the user who requested the action should not see. To decode an authorization status message, a user must be granted permissions via an IAM policy to request the DecodeAuthorizationMessage (sts:DecodeAuthorizationMessage) action.

The decoded message includes the following type of information:

  • Whether the request was denied due to an explicit deny or due to the absence of an explicit allow. For more information, see Determining Whether a Request is Allowed or Denied in Using IAM.
  • The principal who made the request.
  • The requested action.
  • The requested resource.
  • The values of condition keys in the context of the user's request.
", + "GetFederationToken": "

Returns a set of temporary security credentials (consisting of an access key ID, a secret access key, and a security token) for a federated user. A typical use is in a proxy application that gets temporary security credentials on behalf of distributed applications inside a corporate network. Because you must call the GetFederationToken action using the long-term security credentials of an IAM user, this call is appropriate in contexts where those credentials can be safely stored, usually in a server-based application.

If you are creating a mobile-based or browser-based app that can authenticate users using a web identity provider like Login with Amazon, Facebook, Google, or an OpenID Connect-compatible identity provider, we recommend that you use Amazon Cognito or AssumeRoleWithWebIdentity. For more information, see Creating Temporary Security Credentials for Mobile Apps Using Identity Providers.

The GetFederationToken action must be called by using the long-term AWS security credentials of an IAM user. You can also call GetFederationToken using the security credentials of an AWS account (root), but this is not recommended. Instead, we recommend that you create an IAM user for the purpose of the proxy application and then attach a policy to the IAM user that limits federated users to only the actions and resources they need access to. For more information, see IAM Best Practices in Using IAM.

The temporary security credentials that are obtained by using the long-term credentials of an IAM user are valid for the specified duration, between 900 seconds (15 minutes) and 129600 seconds (36 hours). Temporary credentials that are obtained by using AWS account (root) credentials have a maximum duration of 3600 seconds (1 hour)

Permissions

The permissions for the temporary security credentials returned by GetFederationToken are determined by a combination of the following:

  • The policy or policies that are attached to the IAM user whose credentials are used to call GetFederationToken.
  • The policy that is passed as a parameter in the call.

The passed policy is attached to the temporary security credentials that result from the GetFederationToken API call--that is, to the federated user. When the federated user makes an AWS request, AWS evaluates the policy attached to the federated user in combination with the policy or policies attached to the IAM user whose credentials were used to call GetFederationToken. AWS allows the federated user's request only when both the federated user and the IAM user are explicitly allowed to perform the requested action. The passed policy cannot grant more permissions than those that are defined in the IAM user policy.

A typical use case is that the permissions of the IAM user whose credentials are used to call GetFederationToken are designed to allow access to all the actions and resources that any federated user will need. Then, for individual users, you pass a policy to the operation that scopes down the permissions to a level that's appropriate to that individual user, using a policy that allows only a subset of permissions that are granted to the IAM user.

If you do not pass a policy, the resulting temporary security credentials have no effective permissions. The only exception is when the temporary security credentials are used to access a resource that has a resource-based policy that specifically allows the federated user to access the resource.

For more information about how permissions work, see Permissions for GetFederationToken. For information about using GetFederationToken to create temporary security credentials, see Creating Temporary Credentials to Enable Access for Federated Users.

", + "GetSessionToken": "

Returns a set of temporary credentials for an AWS account or IAM user. The credentials consist of an access key ID, a secret access key, and a security token. Typically, you use GetSessionToken if you want to use MFA to protect programmatic calls to specific AWS APIs like Amazon EC2 StopInstances. MFA-enabled IAM users would need to call GetSessionToken and submit an MFA code that is associated with their MFA device. Using the temporary security credentials that are returned from the call, IAM users can then make programmatic calls to APIs that require MFA authentication.

The GetSessionToken action must be called by using the long-term AWS security credentials of the AWS account or an IAM user. Credentials that are created by IAM users are valid for the duration that you specify, between 900 seconds (15 minutes) and 129600 seconds (36 hours); credentials that are created by using account credentials have a maximum duration of 3600 seconds (1 hour).

We recommend that you do not call GetSessionToken with root account credentials. Instead, follow our best practices by creating one or more IAM users, giving them the necessary permissions, and using IAM users for everyday interaction with AWS.

The permissions associated with the temporary security credentials returned by GetSessionToken are based on the permissions associated with account or IAM user whose credentials are used to call the action. If GetSessionToken is called using root account credentials, the temporary credentials have root account permissions. Similarly, if GetSessionToken is called using the credentials of an IAM user, the temporary credentials have the same permissions as the IAM user.

For more information about using GetSessionToken to create temporary credentials, go to Creating Temporary Credentials to Enable Access for IAM Users.

" + }, + "service": "AWS Security Token Service

The AWS Security Token Service (STS) is a web service that enables you to request temporary, limited-privilege credentials for AWS Identity and Access Management (IAM) users or for users that you authenticate (federated users). This guide provides descriptions of the STS API. For more detailed information about using this service, go to Using Temporary Security Credentials.

As an alternative to using the API, you can use one of the AWS SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to STS. For example, the SDKs take care of cryptographically signing requests, managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page.

For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about the Query API, go to Making Query Requests in Using IAM. For information about using security tokens with other AWS products, go to Using Temporary Security Credentials to Access AWS in Using Temporary Security Credentials.

If you're new to AWS and need additional technical information about a specific AWS product, you can find the product's technical documentation at http://aws.amazon.com/documentation/.

Endpoints

The AWS Security Token Service (STS) has a default endpoint of https://sts.amazonaws.com that maps to the US East (N. Virginia) region. Additional regions are available, but must first be activated in the AWS Management Console before you can use a different region's endpoint. For more information about activating a region for STS see Activating STS in a New Region in the Using Temporary Security Credentials guide.

For information about STS endpoints, see Regions and Endpoints in the AWS General Reference.

Recording API requests

STS supports AWS CloudTrail, which is a service that records AWS calls for your AWS account and delivers log files to an Amazon S3 bucket. By using information collected by CloudTrail, you can determine what requests were successfully made to STS, who made the request, when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find your log files, see the AWS CloudTrail User Guide.

", + "shapes": { + "AssumeRoleRequest": { + "base": null, + "refs": { + } + }, + "AssumeRoleResponse": { + "base": "

Contains the response to a successful AssumeRole request, including temporary AWS credentials that can be used to make AWS requests.

", + "refs": { + } + }, + "AssumeRoleWithSAMLRequest": { + "base": null, + "refs": { + } + }, + "AssumeRoleWithSAMLResponse": { + "base": "

Contains the response to a successful AssumeRoleWithSAML request, including temporary AWS credentials that can be used to make AWS requests.

", + "refs": { + } + }, + "AssumeRoleWithWebIdentityRequest": { + "base": null, + "refs": { + } + }, + "AssumeRoleWithWebIdentityResponse": { + "base": "

Contains the response to a successful AssumeRoleWithWebIdentity request, including temporary AWS credentials that can be used to make AWS requests.

", + "refs": { + } + }, + "AssumedRoleUser": { + "base": "

The identifiers for the temporary security credentials that the operation returns.

", + "refs": { + "AssumeRoleResponse$AssumedRoleUser": "

The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers that you can use to refer to the resulting temporary security credentials. For example, you can reference these credentials as a principal in a resource-based policy by using the ARN or assumed role ID. The ARN and ID include the RoleSessionName that you specified when you called AssumeRole.

", + "AssumeRoleWithSAMLResponse$AssumedRoleUser": null, + "AssumeRoleWithWebIdentityResponse$AssumedRoleUser": "

The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers that you can use to refer to the resulting temporary security credentials. For example, you can reference these credentials as a principal in a resource-based policy by using the ARN or assumed role ID. The ARN and ID include the RoleSessionName that you specified when you called AssumeRole.

" + } + }, + "Audience": { + "base": null, + "refs": { + "AssumeRoleWithSAMLResponse$Audience": "

The value of the Recipient attribute of the SubjectConfirmationData element of the SAML assertion.

", + "AssumeRoleWithWebIdentityResponse$Audience": "

The intended audience (also known as client ID) of the web identity token. This is traditionally the client identifier issued to the application that requested the web identity token.

" + } + }, + "Credentials": { + "base": "

AWS credentials for API authentication.

", + "refs": { + "AssumeRoleResponse$Credentials": "

The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.

", + "AssumeRoleWithSAMLResponse$Credentials": null, + "AssumeRoleWithWebIdentityResponse$Credentials": "

The temporary security credentials, which include an access key ID, a secret access key, and a security token.

", + "GetFederationTokenResponse$Credentials": "

Credentials for the service API authentication.

", + "GetSessionTokenResponse$Credentials": "

The session credentials for API authentication.

" + } + }, + "DecodeAuthorizationMessageRequest": { + "base": null, + "refs": { + } + }, + "DecodeAuthorizationMessageResponse": { + "base": "

A document that contains additional information about the authorization status of a request from an encoded message that is returned in response to an AWS request.

", + "refs": { + } + }, + "ExpiredTokenException": { + "base": "

The web identity token that was passed is expired or is not valid. Get a new identity token from the identity provider and then retry the request.

", + "refs": { + } + }, + "FederatedUser": { + "base": "

Identifiers for the federated user that is associated with the credentials.

", + "refs": { + "GetFederationTokenResponse$FederatedUser": "

Identifiers for the federated user associated with the credentials (such as arn:aws:sts::123456789012:federated-user/Bob or 123456789012:Bob). You can use the federated user's ARN in your resource-based policies, such as an Amazon S3 bucket policy.

" + } + }, + "GetFederationTokenRequest": { + "base": null, + "refs": { + } + }, + "GetFederationTokenResponse": { + "base": "

Contains the response to a successful GetFederationToken request, including temporary AWS credentials that can be used to make AWS requests.

", + "refs": { + } + }, + "GetSessionTokenRequest": { + "base": null, + "refs": { + } + }, + "GetSessionTokenResponse": { + "base": "

Contains the response to a successful GetSessionToken request, including temporary AWS credentials that can be used to make AWS requests.

", + "refs": { + } + }, + "IDPCommunicationErrorException": { + "base": "

The request could not be fulfilled because the non-AWS identity provider (IDP) that was asked to verify the incoming identity token could not be reached. This is often a transient error caused by network conditions. Retry the request a limited number of times so that you don't exceed the request rate. If the error persists, the non-AWS identity provider might be down or not responding.

", + "refs": { + } + }, + "IDPRejectedClaimException": { + "base": "

The identity provider (IdP) reported that authentication failed. This might be because the claim is invalid.

If this error is returned for the AssumeRoleWithWebIdentity operation, it can also mean that the claim has expired or has been explicitly revoked.

", + "refs": { + } + }, + "InvalidAuthorizationMessageException": { + "base": "

The error returned if the message passed to DecodeAuthorizationMessage was invalid. This can happen if the token contains invalid characters, such as linebreaks.

", + "refs": { + } + }, + "InvalidIdentityTokenException": { + "base": "

The web identity token that was passed could not be validated by AWS. Get a new identity token from the identity provider and then retry the request.

", + "refs": { + } + }, + "Issuer": { + "base": null, + "refs": { + "AssumeRoleWithSAMLResponse$Issuer": "

The value of the Issuer element of the SAML assertion.

", + "AssumeRoleWithWebIdentityResponse$Provider": "

The issuing authority of the web identity token presented. For OpenID Connect ID Tokens this contains the value of the iss field. For OAuth 2.0 access tokens, this contains the value of the ProviderId parameter that was passed in the AssumeRoleWithWebIdentity request.

" + } + }, + "MalformedPolicyDocumentException": { + "base": "

The request was rejected because the policy document was malformed. The error message describes the specific error.

", + "refs": { + } + }, + "NameQualifier": { + "base": null, + "refs": { + "AssumeRoleWithSAMLResponse$NameQualifier": "

A hash value based on the concatenation of the Issuer response value, the AWS account ID, and the friendly name (the last part of the ARN) of the SAML provider in IAM. The combination of NameQualifier and Subject can be used to uniquely identify a federated user.

The following pseudocode shows how the hash value is calculated:

BASE64 ( SHA1 ( \"https://example.com/saml\" + \"123456789012\" + \"/MySAMLIdP\" ) )

" + } + }, + "PackedPolicyTooLargeException": { + "base": "

The request was rejected because the policy document was too large. The error message describes how big the policy document is, in packed form, as a percentage of what the API allows.

", + "refs": { + } + }, + "SAMLAssertionType": { + "base": null, + "refs": { + "AssumeRoleWithSAMLRequest$SAMLAssertion": "

The base-64 encoded SAML authentication response provided by the IdP.

For more information, see Configuring a Relying Party and Adding Claims in the Using IAM guide.

" + } + }, + "Subject": { + "base": null, + "refs": { + "AssumeRoleWithSAMLResponse$Subject": "

The value of the NameID element in the Subject element of the SAML assertion.

" + } + }, + "SubjectType": { + "base": null, + "refs": { + "AssumeRoleWithSAMLResponse$SubjectType": "

The format of the name ID, as defined by the Format attribute in the NameID element of the SAML assertion. Typical examples of the format are transient or persistent.

If the format includes the prefix urn:oasis:names:tc:SAML:2.0:nameid-format, that prefix is removed. For example, urn:oasis:names:tc:SAML:2.0:nameid-format:transient is returned as transient. If the format includes any other prefix, the format is returned with no modifications.

" + } + }, + "accessKeyIdType": { + "base": null, + "refs": { + "Credentials$AccessKeyId": "

The access key ID that identifies the temporary security credentials.

" + } + }, + "accessKeySecretType": { + "base": null, + "refs": { + "Credentials$SecretAccessKey": "

The secret access key that can be used to sign requests.

" + } + }, + "arnType": { + "base": null, + "refs": { + "AssumeRoleRequest$RoleArn": "

The Amazon Resource Name (ARN) of the role to assume.

", + "AssumeRoleWithSAMLRequest$RoleArn": "

The Amazon Resource Name (ARN) of the role that the caller is assuming.

", + "AssumeRoleWithSAMLRequest$PrincipalArn": "

The Amazon Resource Name (ARN) of the SAML provider in IAM that describes the IdP.

", + "AssumeRoleWithWebIdentityRequest$RoleArn": "

The Amazon Resource Name (ARN) of the role that the caller is assuming.

", + "AssumedRoleUser$Arn": "

The ARN of the temporary security credentials that are returned from the AssumeRole action. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.

", + "FederatedUser$Arn": "

The ARN that specifies the federated user that is associated with the credentials. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.

" + } + }, + "assumedRoleIdType": { + "base": null, + "refs": { + "AssumedRoleUser$AssumedRoleId": "

A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by AWS when the role is created.

" + } + }, + "clientTokenType": { + "base": null, + "refs": { + "AssumeRoleWithWebIdentityRequest$WebIdentityToken": "

The OAuth 2.0 access token or OpenID Connect ID token that is provided by the identity provider. Your application must get this token by authenticating the user who is using your application with a web identity provider before the application makes an AssumeRoleWithWebIdentity call.

" + } + }, + "dateType": { + "base": null, + "refs": { + "Credentials$Expiration": "

The date on which the current credentials expire.

" + } + }, + "decodedMessageType": { + "base": null, + "refs": { + "DecodeAuthorizationMessageResponse$DecodedMessage": "

An XML document that contains the decoded message. For more information, see DecodeAuthorizationMessage.

" + } + }, + "durationSecondsType": { + "base": null, + "refs": { + "GetFederationTokenRequest$DurationSeconds": "

The duration, in seconds, that the session should last. Acceptable durations for federation sessions range from 900 seconds (15 minutes) to 129600 seconds (36 hours), with 43200 seconds (12 hours) as the default. Sessions obtained using AWS account (root) credentials are restricted to a maximum of 3600 seconds (one hour). If the specified duration is longer than one hour, the session obtained by using AWS account (root) credentials defaults to one hour.

", + "GetSessionTokenRequest$DurationSeconds": "

The duration, in seconds, that the credentials should remain valid. Acceptable durations for IAM user sessions range from 900 seconds (15 minutes) to 129600 seconds (36 hours), with 43200 seconds (12 hours) as the default. Sessions for AWS account owners are restricted to a maximum of 3600 seconds (one hour). If the duration is longer than one hour, the session for AWS account owners defaults to one hour.

" + } + }, + "encodedMessageType": { + "base": null, + "refs": { + "DecodeAuthorizationMessageRequest$EncodedMessage": "

The encoded message that was returned with the response.

" + } + }, + "expiredIdentityTokenMessage": { + "base": null, + "refs": { + "ExpiredTokenException$message": null + } + }, + "externalIdType": { + "base": null, + "refs": { + "AssumeRoleRequest$ExternalId": "

A unique identifier that is used by third parties when assuming roles in their customers' accounts. For each role that the third party can assume, they should instruct their customers to ensure the role's trust policy checks for the external ID that the third party generated. Each time the third party assumes the role, they should pass the customer's external ID. The external ID is useful in order to help third parties bind a role to the customer who created it. For more information about the external ID, see How to Use External ID When Granting Access to Your AWS Resources in Using Temporary Security Credentials.

" + } + }, + "federatedIdType": { + "base": null, + "refs": { + "FederatedUser$FederatedUserId": "

The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.

" + } + }, + "idpCommunicationErrorMessage": { + "base": null, + "refs": { + "IDPCommunicationErrorException$message": null + } + }, + "idpRejectedClaimMessage": { + "base": null, + "refs": { + "IDPRejectedClaimException$message": null + } + }, + "invalidAuthorizationMessage": { + "base": null, + "refs": { + "InvalidAuthorizationMessageException$message": null + } + }, + "invalidIdentityTokenMessage": { + "base": null, + "refs": { + "InvalidIdentityTokenException$message": null + } + }, + "malformedPolicyDocumentMessage": { + "base": null, + "refs": { + "MalformedPolicyDocumentException$message": null + } + }, + "nonNegativeIntegerType": { + "base": null, + "refs": { + "AssumeRoleResponse$PackedPolicySize": "

A percentage value that indicates the size of the policy in packed form. The service rejects any policy with a packed size greater than 100 percent, which means the policy exceeded the allowed space.

", + "AssumeRoleWithSAMLResponse$PackedPolicySize": "

A percentage value that indicates the size of the policy in packed form. The service rejects any policy with a packed size greater than 100 percent, which means the policy exceeded the allowed space.

", + "AssumeRoleWithWebIdentityResponse$PackedPolicySize": "

A percentage value that indicates the size of the policy in packed form. The service rejects any policy with a packed size greater than 100 percent, which means the policy exceeded the allowed space.

", + "GetFederationTokenResponse$PackedPolicySize": "

A percentage value indicating the size of the policy in packed form. The service rejects policies for which the packed size is greater than 100 percent of the allowed value.

" + } + }, + "packedPolicyTooLargeMessage": { + "base": null, + "refs": { + "PackedPolicyTooLargeException$message": null + } + }, + "roleDurationSecondsType": { + "base": null, + "refs": { + "AssumeRoleRequest$DurationSeconds": "

The duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set to 3600 seconds.

", + "AssumeRoleWithSAMLRequest$DurationSeconds": "

The duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set to 3600 seconds. An expiration can also be specified in the SAML authentication response's SessionNotOnOrAfter value. The actual expiration time is whichever value is shorter.

The maximum duration for a session is 1 hour, and the minimum duration is 15 minutes, even if values outside this range are specified. ", + "AssumeRoleWithWebIdentityRequest$DurationSeconds": "

The duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set to 3600 seconds.

" + } + }, + "serialNumberType": { + "base": null, + "refs": { + "AssumeRoleRequest$SerialNumber": "

The identification number of the MFA device that is associated with the user who is making the AssumeRole call. Specify this value if the trust policy of the role being assumed includes a condition that requires MFA authentication. The value is either the serial number for a hardware device (such as GAHT12345678) or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user).

", + "GetSessionTokenRequest$SerialNumber": "

The identification number of the MFA device that is associated with the IAM user who is making the GetSessionToken call. Specify this value if the IAM user has a policy that requires MFA authentication. The value is either the serial number for a hardware device (such as GAHT12345678) or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user). You can find the device for an IAM user by going to the AWS Management Console and viewing the user's security credentials.

" + } + }, + "sessionPolicyDocumentType": { + "base": null, + "refs": { + "AssumeRoleRequest$Policy": "

An IAM policy in JSON format.

This parameter is optional. If you pass a policy, the temporary security credentials that are returned by the operation have the permissions that are allowed by both (the intersection of) the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in Using Temporary Security Credentials.

The policy plain text must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed binary format with a separate limit. The PackedPolicySize response element indicates by percentage how close to the upper size limit the policy is, with 100% equaling the maximum allowed size. ", + "AssumeRoleWithSAMLRequest$Policy": "

An IAM policy in JSON format.

The policy parameter is optional. If you pass a policy, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRoleWithSAML in Using Temporary Security Credentials.

The policy plain text must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed binary format with a separate limit. The PackedPolicySize response element indicates by percentage how close to the upper size limit the policy is, with 100% equaling the maximum allowed size. ", + "AssumeRoleWithWebIdentityRequest$Policy": "

An IAM policy in JSON format.

The policy parameter is optional. If you pass a policy, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRoleWithWebIdentity.

The policy plain text must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed binary format with a separate limit. The PackedPolicySize response element indicates by percentage how close to the upper size limit the policy is, with 100% equaling the maximum allowed size. ", + "GetFederationTokenRequest$Policy": "

An IAM policy in JSON format that is passed with the GetFederationToken call and evaluated along with the policy or policies that are attached to the IAM user whose credentials are used to call GetFederationToken. The passed policy is used to scope down the permissions that are available to the IAM user, by allowing only a subset of the permissions that are granted to the IAM user. The passed policy cannot grant more permissions than those granted to the IAM user. The final permissions for the federated user are the most restrictive set based on the intersection of the passed policy and the IAM user policy.

If you do not pass a policy, the resulting temporary security credentials have no effective permissions. The only exception is when the temporary security credentials are used to access a resource that has a resource-based policy that specifically allows the federated user to access the resource.

The policy plain text must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed binary format with a separate limit. The PackedPolicySize response element indicates by percentage how close to the upper size limit the policy is, with 100% equaling the maximum allowed size.

For more information about how permissions work, see Permissions for GetFederationToken.

" + } + }, + "tokenCodeType": { + "base": null, + "refs": { + "AssumeRoleRequest$TokenCode": "

The value provided by the MFA device, if the trust policy of the role being assumed requires MFA (that is, if the policy includes a condition that tests for MFA). If the role being assumed requires MFA and if the TokenCode value is missing or expired, the AssumeRole call returns an \"access denied\" error.

", + "GetSessionTokenRequest$TokenCode": "

The value provided by the MFA device, if MFA is required. If any policy requires the IAM user to submit an MFA code, specify this value. If MFA authentication is required, and the user does not provide a code when requesting a set of temporary security credentials, the user will receive an \"access denied\" response when requesting resources that require MFA authentication.

" + } + }, + "tokenType": { + "base": null, + "refs": { + "Credentials$SessionToken": "

The token that users must pass to the service API to use the temporary credentials.

" + } + }, + "urlType": { + "base": null, + "refs": { + "AssumeRoleWithWebIdentityRequest$ProviderId": "

The fully qualified host component of the domain name of the identity provider.

Specify this value only for OAuth 2.0 access tokens. Currently www.amazon.com and graph.facebook.com are the only supported identity providers for OAuth 2.0 access tokens. Do not include URL schemes and port numbers.

Do not specify this value for OpenID Connect ID tokens.

" + } + }, + "userNameType": { + "base": null, + "refs": { + "AssumeRoleRequest$RoleSessionName": "

An identifier for the assumed role session.

Use the role session name to uniquely identity a session when the same role is assumed by different principals or for different reasons. In cross-account scenarios, the role session name is visible to, and can be logged by the account that owns the role. The role session name is also used in the ARN of the assumed role principal. This means that subsequent cross-account API requests using the temporary security credentials will expose the role session name to the external account in their CloudTrail logs.

", + "AssumeRoleWithWebIdentityRequest$RoleSessionName": "

An identifier for the assumed role session. Typically, you pass the name or identifier that is associated with the user who is using your application. That way, the temporary security credentials that your application will use are associated with that user. This session name is included as part of the ARN and assumed role ID in the AssumedRoleUser response element.

", + "GetFederationTokenRequest$Name": "

The name of the federated user. The name is used as an identifier for the temporary security credentials (such as Bob). For example, you can reference the federated user name in a resource-based policy, such as in an Amazon S3 bucket policy.

" + } + }, + "webIdentitySubjectType": { + "base": null, + "refs": { + "AssumeRoleWithWebIdentityResponse$SubjectFromWebIdentityToken": "

The unique user identifier that is returned by the identity provider. This identifier is associated with the WebIdentityToken that was submitted with the AssumeRoleWithWebIdentity call. The identifier is typically unique to the user and the application that acquired the WebIdentityToken (pairwise identifier). For OpenID Connect ID tokens, this field contains the value returned by the identity provider as the token's sub (Subject) claim.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/support/2013-04-15/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/support/2013-04-15/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/support/2013-04-15/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/support/2013-04-15/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/support/2013-04-15/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/support/2013-04-15/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/swf/2012-01-25/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/swf/2012-01-25/api-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/swf/2012-01-25/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/swf/2012-01-25/api-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/swf/2012-01-25/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/swf/2012-01-25/docs-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/swf/2012-01-25/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/swf/2012-01-25/docs-2.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/swf/2012-01-25/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/swf/2012-01-25/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/swf/2012-01-25/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/swf/2012-01-25/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/api-2.json b/vendor/github.com/aws/aws-sdk-go/apis/workspaces/2015-04-08/api-2.json similarity index 75% rename from vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/api-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/workspaces/2015-04-08/api-2.json index f9d661b1a..97ef386aa 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/workspaces/2015-04-08/api-2.json @@ -4,26 +4,12 @@ "apiVersion":"2015-04-08", "endpointPrefix":"workspaces", "jsonVersion":"1.1", - "protocol":"json", "serviceFullName":"Amazon WorkSpaces", "signatureVersion":"v4", - "targetPrefix":"WorkspacesService" + "targetPrefix":"WorkspacesService", + "protocol":"json" }, "operations":{ - "CreateTags":{ - "name":"CreateTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateTagsRequest"}, - "output":{"shape":"CreateTagsResult"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValuesException"}, - {"shape":"ResourceLimitExceededException"} - ] - }, "CreateWorkspaces":{ "name":"CreateWorkspaces", "http":{ @@ -33,33 +19,10 @@ "input":{"shape":"CreateWorkspacesRequest"}, "output":{"shape":"CreateWorkspacesResult"}, "errors":[ - {"shape":"ResourceLimitExceededException"}, - {"shape":"InvalidParameterValuesException"} - ] - }, - "DeleteTags":{ - "name":"DeleteTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteTagsRequest"}, - "output":{"shape":"DeleteTagsResult"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValuesException"} - ] - }, - "DescribeTags":{ - "name":"DescribeTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeTagsRequest"}, - "output":{"shape":"DescribeTagsResult"}, - "errors":[ - {"shape":"ResourceNotFoundException"} + { + "shape":"ResourceLimitExceededException", + "exception":true + } ] }, "DescribeWorkspaceBundles":{ @@ -71,7 +34,10 @@ "input":{"shape":"DescribeWorkspaceBundlesRequest"}, "output":{"shape":"DescribeWorkspaceBundlesResult"}, "errors":[ - {"shape":"InvalidParameterValuesException"} + { + "shape":"InvalidParameterValuesException", + "exception":true + } ] }, "DescribeWorkspaceDirectories":{ @@ -83,7 +49,10 @@ "input":{"shape":"DescribeWorkspaceDirectoriesRequest"}, "output":{"shape":"DescribeWorkspaceDirectoriesResult"}, "errors":[ - {"shape":"InvalidParameterValuesException"} + { + "shape":"InvalidParameterValuesException", + "exception":true + } ] }, "DescribeWorkspaces":{ @@ -95,8 +64,14 @@ "input":{"shape":"DescribeWorkspacesRequest"}, "output":{"shape":"DescribeWorkspacesResult"}, "errors":[ - {"shape":"InvalidParameterValuesException"}, - {"shape":"ResourceUnavailableException"} + { + "shape":"InvalidParameterValuesException", + "exception":true + }, + { + "shape":"ResourceUnavailableException", + "exception":true + } ] }, "RebootWorkspaces":{ @@ -141,8 +116,8 @@ "BundleIdList":{ "type":"list", "member":{"shape":"BundleId"}, - "max":25, - "min":1 + "min":1, + "max":25 }, "BundleList":{ "type":"list", @@ -163,23 +138,6 @@ "Name":{"shape":"Compute"} } }, - "ComputerName":{"type":"string"}, - "CreateTagsRequest":{ - "type":"structure", - "required":[ - "ResourceId", - "Tags" - ], - "members":{ - "ResourceId":{"shape":"NonEmptyString"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateTagsResult":{ - "type":"structure", - "members":{ - } - }, "CreateWorkspacesRequest":{ "type":"structure", "required":["Workspaces"], @@ -205,35 +163,6 @@ "UserEnabledAsLocalAdministrator":{"shape":"BooleanObject"} } }, - "DeleteTagsRequest":{ - "type":"structure", - "required":[ - "ResourceId", - "TagKeys" - ], - "members":{ - "ResourceId":{"shape":"NonEmptyString"}, - "TagKeys":{"shape":"TagKeyList"} - } - }, - "DeleteTagsResult":{ - "type":"structure", - "members":{ - } - }, - "DescribeTagsRequest":{ - "type":"structure", - "required":["ResourceId"], - "members":{ - "ResourceId":{"shape":"NonEmptyString"} - } - }, - "DescribeTagsResult":{ - "type":"structure", - "members":{ - "TagList":{"shape":"TagList"} - } - }, "DescribeWorkspaceBundlesRequest":{ "type":"structure", "members":{ @@ -289,8 +218,8 @@ "DirectoryIdList":{ "type":"list", "member":{"shape":"DirectoryId"}, - "max":25, - "min":1 + "min":1, + "max":25 }, "DirectoryList":{ "type":"list", @@ -345,8 +274,8 @@ "IpAddress":{"type":"string"}, "Limit":{ "type":"integer", - "max":25, - "min":1 + "min":1, + "max":25 }, "NonEmptyString":{ "type":"string", @@ -354,8 +283,8 @@ }, "PaginationToken":{ "type":"string", - "max":63, - "min":1 + "min":1, + "max":63 }, "RebootRequest":{ "type":"structure", @@ -367,8 +296,8 @@ "RebootWorkspaceRequests":{ "type":"list", "member":{"shape":"RebootRequest"}, - "max":25, - "min":1 + "min":1, + "max":25 }, "RebootWorkspacesRequest":{ "type":"structure", @@ -393,8 +322,8 @@ "RebuildWorkspaceRequests":{ "type":"list", "member":{"shape":"RebuildRequest"}, - "max":1, - "min":1 + "min":1, + "max":1 }, "RebuildWorkspacesRequest":{ "type":"structure", @@ -411,8 +340,8 @@ }, "RegistrationCode":{ "type":"string", - "max":20, - "min":1 + "min":1, + "max":20 }, "ResourceLimitExceededException":{ "type":"structure", @@ -421,14 +350,6 @@ }, "exception":true }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"}, - "ResourceId":{"shape":"NonEmptyString"} - }, - "exception":true - }, "ResourceUnavailableException":{ "type":"structure", "members":{ @@ -449,31 +370,6 @@ "type":"list", "member":{"shape":"SubnetId"} }, - "Tag":{ - "type":"structure", - "required":["Key"], - "members":{ - "Key":{"shape":"TagKey"}, - "Value":{"shape":"TagValue"} - } - }, - "TagKey":{ - "type":"string", - "max":127, - "min":1 - }, - "TagKeyList":{ - "type":"list", - "member":{"shape":"NonEmptyString"} - }, - "TagList":{ - "type":"list", - "member":{"shape":"Tag"} - }, - "TagValue":{ - "type":"string", - "max":255 - }, "TerminateRequest":{ "type":"structure", "required":["WorkspaceId"], @@ -484,8 +380,8 @@ "TerminateWorkspaceRequests":{ "type":"list", "member":{"shape":"TerminateRequest"}, - "max":25, - "min":1 + "min":1, + "max":25 }, "TerminateWorkspacesRequest":{ "type":"structure", @@ -502,8 +398,8 @@ }, "UserName":{ "type":"string", - "max":63, - "min":1 + "min":1, + "max":63 }, "UserStorage":{ "type":"structure", @@ -511,7 +407,6 @@ "Capacity":{"shape":"NonEmptyString"} } }, - "VolumeEncryptionKey":{"type":"string"}, "Workspace":{ "type":"structure", "members":{ @@ -523,11 +418,7 @@ "BundleId":{"shape":"BundleId"}, "SubnetId":{"shape":"SubnetId"}, "ErrorMessage":{"shape":"Description"}, - "ErrorCode":{"shape":"WorkspaceErrorCode"}, - "ComputerName":{"shape":"ComputerName"}, - "VolumeEncryptionKey":{"shape":"VolumeEncryptionKey"}, - "UserVolumeEncryptionEnabled":{"shape":"BooleanObject"}, - "RootVolumeEncryptionEnabled":{"shape":"BooleanObject"} + "ErrorCode":{"shape":"WorkspaceErrorCode"} } }, "WorkspaceBundle":{ @@ -583,8 +474,8 @@ "WorkspaceIdList":{ "type":"list", "member":{"shape":"WorkspaceId"}, - "max":25, - "min":1 + "min":1, + "max":25 }, "WorkspaceList":{ "type":"list", @@ -600,18 +491,14 @@ "members":{ "DirectoryId":{"shape":"DirectoryId"}, "UserName":{"shape":"UserName"}, - "BundleId":{"shape":"BundleId"}, - "VolumeEncryptionKey":{"shape":"VolumeEncryptionKey"}, - "UserVolumeEncryptionEnabled":{"shape":"BooleanObject"}, - "RootVolumeEncryptionEnabled":{"shape":"BooleanObject"}, - "Tags":{"shape":"TagList"} + "BundleId":{"shape":"BundleId"} } }, "WorkspaceRequestList":{ "type":"list", "member":{"shape":"WorkspaceRequest"}, - "max":25, - "min":1 + "min":1, + "max":25 }, "WorkspaceState":{ "type":"string", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/apis/workspaces/2015-04-08/docs-2.json similarity index 87% rename from vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/apis/workspaces/2015-04-08/docs-2.json index a48b752c5..1bf19c99b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/apis/workspaces/2015-04-08/docs-2.json @@ -1,11 +1,7 @@ { "version": "2.0", - "service": "Amazon WorkSpaces Service

This is the Amazon WorkSpaces API Reference. This guide provides detailed information about Amazon WorkSpaces operations, data types, parameters, and errors.

", "operations": { - "CreateTags": "

Creates tags for a WorkSpace.

", "CreateWorkspaces": "

Creates one or more WorkSpaces.

This operation is asynchronous and returns before the WorkSpaces are created.

", - "DeleteTags": "

Deletes tags from a WorkSpace.

", - "DescribeTags": "

Describes tags for a WorkSpace.

", "DescribeWorkspaceBundles": "

Obtains information about the WorkSpace bundles that are available to your account in the specified region.

You can filter the results with either the BundleIds parameter, or the Owner parameter, but not both.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the NextToken response member contains a token that you pass in the next call to this operation to retrieve the next set of items.

", "DescribeWorkspaceDirectories": "

Retrieves information about the AWS Directory Service directories in the region that are registered with Amazon WorkSpaces and are available to your account.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the NextToken response member contains a token that you pass in the next call to this operation to retrieve the next set of items.

", "DescribeWorkspaces": "

Obtains information about the specified WorkSpaces.

Only one of the filter parameters, such as BundleId, DirectoryId, or WorkspaceIds, can be specified at a time.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the NextToken response member contains a token that you pass in the next call to this operation to retrieve the next set of items.

", @@ -13,6 +9,7 @@ "RebuildWorkspaces": "

Rebuilds the specified WorkSpaces.

Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. Rebuilding a WorkSpace causes the following to occur:

  • The system is restored to the image of the bundle that the WorkSpace is created from. Any applications that have been installed, or system settings that have been made since the WorkSpace was created will be lost.
  • The data drive (D drive) is re-created from the last automatic snapshot taken of the data drive. The current contents of the data drive are overwritten. Automatic snapshots of the data drive are taken every 12 hours, so the snapshot can be as much as 12 hours old.

To be able to rebuild a WorkSpace, the WorkSpace must have a State of AVAILABLE or ERROR.

This operation is asynchronous and will return before the WorkSpaces have been completely rebuilt.

", "TerminateWorkspaces": "

Terminates the specified WorkSpaces.

Terminating a WorkSpace is a permanent action and cannot be undone. The user's data is not maintained and will be destroyed. If you need to archive any user data, contact Amazon Web Services before terminating the WorkSpace.

You can terminate a WorkSpace that is in any state except SUSPENDED.

This operation is asynchronous and will return before the WorkSpaces have been completely terminated.

" }, + "service": "Amazon WorkSpaces Service

This is the Amazon WorkSpaces API Reference. This guide provides detailed information about Amazon WorkSpaces operations, data types, parameters, and errors.

", "shapes": { "ARN": { "base": null, @@ -31,11 +28,7 @@ "refs": { "DefaultWorkspaceCreationProperties$EnableWorkDocs": "

Specifies if the directory is enabled for Amazon WorkDocs.

", "DefaultWorkspaceCreationProperties$EnableInternetAccess": "

A public IP address will be attached to all WorkSpaces that are created or rebuilt.

", - "DefaultWorkspaceCreationProperties$UserEnabledAsLocalAdministrator": "

The WorkSpace user is an administrator on the WorkSpace.

", - "Workspace$UserVolumeEncryptionEnabled": "

Specifies whether the data stored on the user volume, or D: drive, is encrypted.

", - "Workspace$RootVolumeEncryptionEnabled": "

Specifies whether the data stored on the root volume, or C: drive, is encrypted.

", - "WorkspaceRequest$UserVolumeEncryptionEnabled": "

Specifies whether the data stored on the user volume, or D: drive, is encrypted.

", - "WorkspaceRequest$RootVolumeEncryptionEnabled": "

Specifies whether the data stored on the root volume, or C: drive, is encrypted.

" + "DefaultWorkspaceCreationProperties$UserEnabledAsLocalAdministrator": "

The WorkSpace user is an administrator on the WorkSpace.

" } }, "BundleId": { @@ -63,7 +56,7 @@ "BundleOwner": { "base": null, "refs": { - "DescribeWorkspaceBundlesRequest$Owner": "

The owner of the bundles to retrieve. This parameter cannot be combined with any other filter parameter.

This contains one of the following values:

  • null - Retrieves the bundles that belong to the account making the call.
  • AMAZON - Retrieves the bundles that are provided by AWS.
", + "DescribeWorkspaceBundlesRequest$Owner": "

The owner of the bundles to retrieve. This parameter cannot be combined with any other filter parameter.

This contains one of the following values:

  • null - Retrieves the bundles that belong to the account making the call.
  • AMAZON - Retrieves the bundles that are provided by AWS.
", "WorkspaceBundle$Owner": "

The owner of the bundle. This contains the owner's account identifier, or AMAZON if the bundle is provided by AWS.

" } }, @@ -79,22 +72,6 @@ "WorkspaceBundle$ComputeType": "

A ComputeType object that specifies the compute type for the bundle.

" } }, - "ComputerName": { - "base": null, - "refs": { - "Workspace$ComputerName": "

The name of the WorkSpace as seen by the operating system.

" - } - }, - "CreateTagsRequest": { - "base": "

The request of the create tags action.

", - "refs": { - } - }, - "CreateTagsResult": { - "base": "

The result of the create tags action.

", - "refs": { - } - }, "CreateWorkspacesRequest": { "base": "

Contains the inputs for the CreateWorkspaces operation.

", "refs": { @@ -117,26 +94,6 @@ "WorkspaceDirectory$WorkspaceCreationProperties": "

A structure that specifies the default creation properties for all WorkSpaces in the directory.

" } }, - "DeleteTagsRequest": { - "base": "

The request of the delete tags action.

", - "refs": { - } - }, - "DeleteTagsResult": { - "base": "

The result of the delete tags action.

", - "refs": { - } - }, - "DescribeTagsRequest": { - "base": "

The request of the describe tags action.

", - "refs": { - } - }, - "DescribeTagsResult": { - "base": "

The result of the describe tags action.

", - "refs": { - } - }, "DescribeWorkspaceBundlesRequest": { "base": "

Contains the inputs for the DescribeWorkspaceBundles operation.

", "refs": { @@ -222,7 +179,6 @@ "refs": { "InvalidParameterValuesException$message": "

The exception error message.

", "ResourceLimitExceededException$message": "

The exception error message.

", - "ResourceNotFoundException$message": "

The resource could not be found.

", "ResourceUnavailableException$message": "

The exception error message.

" } }, @@ -285,12 +241,7 @@ "NonEmptyString": { "base": null, "refs": { - "CreateTagsRequest$ResourceId": "

The resource ID of the request.

", - "DeleteTagsRequest$ResourceId": "

The resource ID of the request.

", - "DescribeTagsRequest$ResourceId": "

The resource ID of the request.

", - "ResourceNotFoundException$ResourceId": "

The resource could not be found.

", "ResourceUnavailableException$ResourceId": "

The identifier of the resource that is not available.

", - "TagKeyList$member": null, "UserStorage$Capacity": "

The amount of user storage for the bundle.

", "WorkspaceBundle$Name": "

The name of the bundle.

" } @@ -361,11 +312,6 @@ "refs": { } }, - "ResourceNotFoundException": { - "base": "

The resource could not be found.

", - "refs": { - } - }, "ResourceUnavailableException": { "base": "

The specified resource is not available.

", "refs": { @@ -391,38 +337,6 @@ "WorkspaceDirectory$SubnetIds": "

An array of strings that contains the identifiers of the subnets used with the directory.

" } }, - "Tag": { - "base": "

Describes the tag of the WorkSpace.

", - "refs": { - "TagList$member": null - } - }, - "TagKey": { - "base": null, - "refs": { - "Tag$Key": "

The key of the tag.

" - } - }, - "TagKeyList": { - "base": null, - "refs": { - "DeleteTagsRequest$TagKeys": "

The tag keys of the request.

" - } - }, - "TagList": { - "base": null, - "refs": { - "CreateTagsRequest$Tags": "

The tags of the request.

", - "DescribeTagsResult$TagList": "

The list of tags.

", - "WorkspaceRequest$Tags": "

The tags of the WorkSpace request.

" - } - }, - "TagValue": { - "base": null, - "refs": { - "Tag$Value": "

The value of the tag.

" - } - }, "TerminateRequest": { "base": "

Contains information used with the TerminateWorkspaces operation to terminate a WorkSpace.

", "refs": { @@ -460,13 +374,6 @@ "WorkspaceBundle$UserStorage": "

A UserStorage object that specifies the amount of user storage that the bundle contains.

" } }, - "VolumeEncryptionKey": { - "base": null, - "refs": { - "Workspace$VolumeEncryptionKey": "

The KMS key used to encrypt data stored on your WorkSpace.

", - "WorkspaceRequest$VolumeEncryptionKey": "

The KMS key used to encrypt data stored on your WorkSpace.

" - } - }, "Workspace": { "base": "

Contains information about a WorkSpace.

", "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/apis/workspaces/2015-04-08/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/apis/workspaces/2015-04-08/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awserr/error.go b/vendor/github.com/aws/aws-sdk-go/aws/awserr/error.go index e50771f80..a52743bef 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/awserr/error.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/awserr/error.go @@ -14,13 +14,13 @@ package awserr // if err != nil { // if awsErr, ok := err.(awserr.Error); ok { // // Get error details -// log.Println("Error:", awsErr.Code(), awsErr.Message()) +// log.Println("Error:", err.Code(), err.Message()) // // // Prints out full error message, including original error if there was one. -// log.Println("Error:", awsErr.Error()) +// log.Println("Error:", err.Error()) // // // Get original error -// if origErr := awsErr.OrigErr(); origErr != nil { +// if origErr := err.Err(); origErr != nil { // // operate on original error. // } // } else { @@ -42,55 +42,15 @@ type Error interface { OrigErr() error } -// BatchError is a batch of errors which also wraps lower level errors with -// code, message, and original errors. Calling Error() will include all errors -// that occured in the batch. -// -// Deprecated: Replaced with BatchedErrors. Only defined for backwards -// compatibility. -type BatchError interface { - // Satisfy the generic error interface. - error - - // Returns the short phrase depicting the classification of the error. - Code() string - - // Returns the error details message. - Message() string - - // Returns the original error if one was set. Nil is returned if not set. - OrigErrs() []error -} - -// BatchedErrors is a batch of errors which also wraps lower level errors with -// code, message, and original errors. Calling Error() will include all errors -// that occured in the batch. -// -// Replaces BatchError -type BatchedErrors interface { - // Satisfy the base Error interface. - Error - - // Returns the original error if one was set. Nil is returned if not set. - OrigErrs() []error -} - // New returns an Error object described by the code, message, and origErr. // // If origErr satisfies the Error interface it will not be wrapped within a new // Error object and will instead be returned. func New(code, message string, origErr error) Error { - var errs []error - if origErr != nil { - errs = append(errs, origErr) + if e, ok := origErr.(Error); ok && e != nil { + return e } - return newBaseError(code, message, errs) -} - -// NewBatchError returns an BatchedErrors with a collection of errors as an -// array of errors. -func NewBatchError(code, message string, errs []error) BatchedErrors { - return newBaseError(code, message, errs) + return newBaseError(code, message, origErr) } // A RequestFailure is an interface to extract request failure information from @@ -103,9 +63,9 @@ func NewBatchError(code, message string, errs []error) BatchedErrors { // output, err := s3manage.Upload(svc, input, opts) // if err != nil { // if reqerr, ok := err.(RequestFailure); ok { -// log.Println("Request failed", reqerr.Code(), reqerr.Message(), reqerr.RequestID()) +// log.Printf("Request failed", reqerr.Code(), reqerr.Message(), reqerr.RequestID()) // } else { -// log.Println("Error:", err.Error()) +// log.Printf("Error:", err.Error() // } // } // diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awserr/types.go b/vendor/github.com/aws/aws-sdk-go/aws/awserr/types.go index e2d333b84..003a6e806 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/awserr/types.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/awserr/types.go @@ -31,27 +31,23 @@ type baseError struct { // Optional original error this error is based off of. Allows building // chained errors. - errs []error + origErr error } -// newBaseError returns an error object for the code, message, and errors. +// newBaseError returns an error object for the code, message, and err. // // code is a short no whitespace phrase depicting the classification of // the error that is being created. // -// message is the free flow string containing detailed information about the -// error. +// message is the free flow string containing detailed information about the error. // -// origErrs is the error objects which will be nested under the new errors to -// be returned. -func newBaseError(code, message string, origErrs []error) *baseError { - b := &baseError{ +// origErr is the error object which will be nested under the new error to be returned. +func newBaseError(code, message string, origErr error) *baseError { + return &baseError{ code: code, message: message, - errs: origErrs, + origErr: origErr, } - - return b } // Error returns the string representation of the error. @@ -60,12 +56,7 @@ func newBaseError(code, message string, origErrs []error) *baseError { // // Satisfies the error interface. func (b baseError) Error() string { - size := len(b.errs) - if size > 0 { - return SprintError(b.code, b.message, "", errorList(b.errs)) - } - - return SprintError(b.code, b.message, "", nil) + return SprintError(b.code, b.message, "", b.origErr) } // String returns the string representation of the error. @@ -84,28 +75,10 @@ func (b baseError) Message() string { return b.message } -// OrigErr returns the original error if one was set. Nil is returned if no -// error was set. This only returns the first element in the list. If the full -// list is needed, use BatchedErrors. +// OrigErr returns the original error if one was set. Nil is returned if no error +// was set. func (b baseError) OrigErr() error { - switch len(b.errs) { - case 0: - return nil - case 1: - return b.errs[0] - default: - if err, ok := b.errs[0].(Error); ok { - return NewBatchError(err.Code(), err.Message(), b.errs[1:]) - } - return NewBatchError("BatchedErrors", - "multiple errors occured", b.errs) - } -} - -// OrigErrs returns the original errors if one was set. An empty slice is -// returned if no error was set. -func (b baseError) OrigErrs() []error { - return b.errs + return b.origErr } // So that the Error interface type can be included as an anonymous field @@ -121,8 +94,8 @@ type requestError struct { requestID string } -// newRequestError returns a wrapped error with additional information for -// request status code, and service requestID. +// newRequestError returns a wrapped error with additional information for request +// status code, and service requestID. // // Should be used to wrap all request which involve service requests. Even if // the request failed without a service response, but had an HTTP status code @@ -160,35 +133,3 @@ func (r requestError) StatusCode() int { func (r requestError) RequestID() string { return r.requestID } - -// OrigErrs returns the original errors if one was set. An empty slice is -// returned if no error was set. -func (r requestError) OrigErrs() []error { - if b, ok := r.awsError.(BatchedErrors); ok { - return b.OrigErrs() - } - return []error{r.OrigErr()} -} - -// An error list that satisfies the golang interface -type errorList []error - -// Error returns the string representation of the error. -// -// Satisfies the error interface. -func (e errorList) Error() string { - msg := "" - // How do we want to handle the array size being zero - if size := len(e); size > 0 { - for i := 0; i < size; i++ { - msg += fmt.Sprintf("%s", e[i].Error()) - // We check the next index to see if it is within the slice. - // If it is, then we append a newline. We do this, because unit tests - // could be broken with the additional '\n' - if i+1 < size { - msg += "\n" - } - } - } - return msg -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy.go index 8429470b9..f91743c6e 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy.go @@ -57,13 +57,16 @@ func rcopy(dst, src reflect.Value, root bool) { } } case reflect.Struct: + if !root { + dst.Set(reflect.New(src.Type()).Elem()) + } + t := dst.Type() for i := 0; i < t.NumField(); i++ { name := t.Field(i).Name - srcVal := src.FieldByName(name) - dstVal := dst.FieldByName(name) - if srcVal.IsValid() && dstVal.CanSet() { - rcopy(dstVal, srcVal, false) + srcval := src.FieldByName(name) + if srcval.IsValid() { + rcopy(dst.FieldByName(name), srcval, false) } } case reflect.Slice: diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy_test.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy_test.go index 84b7e3f34..4f26241a2 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy_test.go @@ -77,28 +77,6 @@ func TestCopy(t *testing.T) { assert.NotEqual(t, f2.C, f1.C) } -func TestCopyNestedWithUnexported(t *testing.T) { - type Bar struct { - a int - B int - } - type Foo struct { - A string - B Bar - } - - f1 := &Foo{A: "string", B: Bar{a: 1, B: 2}} - - var f2 Foo - awsutil.Copy(&f2, f1) - - // Values match - assert.Equal(t, f2.A, f1.A) - assert.NotEqual(t, f2.B, f1.B) - assert.NotEqual(t, f2.B.a, f1.B.a) - assert.Equal(t, f2.B.B, f2.B.B) -} - func TestCopyIgnoreNilMembers(t *testing.T) { type Foo struct { A *string @@ -158,8 +136,6 @@ func TestCopyDifferentStructs(t *testing.T) { C map[string]*int SrcUnique string SameNameDiffType int - unexportedPtr *int - ExportedPtr *int } type DstFoo struct { A int @@ -167,8 +143,6 @@ func TestCopyDifferentStructs(t *testing.T) { C map[string]*int DstUnique int SameNameDiffType string - unexportedPtr *int - ExportedPtr *int } // Create the initial value @@ -185,8 +159,6 @@ func TestCopyDifferentStructs(t *testing.T) { }, SrcUnique: "unique", SameNameDiffType: 1, - unexportedPtr: &int1, - ExportedPtr: &int2, } // Do the copy @@ -201,10 +173,6 @@ func TestCopyDifferentStructs(t *testing.T) { assert.Equal(t, 1, f1.SameNameDiffType) assert.Equal(t, 0, f2.DstUnique) assert.Equal(t, "", f2.SameNameDiffType) - assert.Equal(t, int1, *f1.unexportedPtr) - assert.Nil(t, f2.unexportedPtr) - assert.Equal(t, int2, *f1.ExportedPtr) - assert.Equal(t, int2, *f2.ExportedPtr) } func ExampleCopyOf() { diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/equal.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/equal.go deleted file mode 100644 index 59fa4a558..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/equal.go +++ /dev/null @@ -1,27 +0,0 @@ -package awsutil - -import ( - "reflect" -) - -// DeepEqual returns if the two values are deeply equal like reflect.DeepEqual. -// In addition to this, this method will also dereference the input values if -// possible so the DeepEqual performed will not fail if one parameter is a -// pointer and the other is not. -// -// DeepEqual will not perform indirection of nested values of the input parameters. -func DeepEqual(a, b interface{}) bool { - ra := reflect.Indirect(reflect.ValueOf(a)) - rb := reflect.Indirect(reflect.ValueOf(b)) - - if raValid, rbValid := ra.IsValid(), rb.IsValid(); !raValid && !rbValid { - // If the elements are both nil, and of the same type the are equal - // If they are of different types they are not equal - return reflect.TypeOf(a) == reflect.TypeOf(b) - } else if raValid != rbValid { - // Both values must be valid to be equal - return false - } - - return reflect.DeepEqual(ra.Interface(), rb.Interface()) -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/equal_test.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/equal_test.go deleted file mode 100644 index 7a5db6e49..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/equal_test.go +++ /dev/null @@ -1,29 +0,0 @@ -package awsutil_test - -import ( - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/stretchr/testify/assert" -) - -func TestDeepEqual(t *testing.T) { - cases := []struct { - a, b interface{} - equal bool - }{ - {"a", "a", true}, - {"a", "b", false}, - {"a", aws.String(""), false}, - {"a", nil, false}, - {"a", aws.String("a"), true}, - {(*bool)(nil), (*bool)(nil), true}, - {(*bool)(nil), (*string)(nil), false}, - {nil, nil, true}, - } - - for i, c := range cases { - assert.Equal(t, c.equal, awsutil.DeepEqual(c.a, c.b), "%d, a:%v b:%v, %t", i, c.a, c.b, c.equal) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value.go index 4d2a01e8c..905d82385 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value.go @@ -5,20 +5,18 @@ import ( "regexp" "strconv" "strings" - - "github.com/jmespath/go-jmespath" ) var indexRe = regexp.MustCompile(`(.+)\[(-?\d+)?\]$`) // rValuesAtPath returns a slice of values found in value v. The values // in v are explored recursively so all nested values are collected. -func rValuesAtPath(v interface{}, path string, createPath, caseSensitive, nilTerm bool) []reflect.Value { +func rValuesAtPath(v interface{}, path string, create bool, caseSensitive bool) []reflect.Value { pathparts := strings.Split(path, "||") if len(pathparts) > 1 { for _, pathpart := range pathparts { - vals := rValuesAtPath(v, pathpart, createPath, caseSensitive, nilTerm) - if len(vals) > 0 { + vals := rValuesAtPath(v, pathpart, create, caseSensitive) + if vals != nil && len(vals) > 0 { return vals } } @@ -76,16 +74,7 @@ func rValuesAtPath(v interface{}, path string, createPath, caseSensitive, nilTer return false }) - if nilTerm && value.Kind() == reflect.Ptr && len(components[1:]) == 0 { - if !value.IsNil() { - value.Set(reflect.Zero(value.Type())) - } - return []reflect.Value{value} - } - - if createPath && value.Kind() == reflect.Ptr && value.IsNil() { - // TODO if the value is the terminus it should not be created - // if the value to be set to its position is nil. + if create && value.Kind() == reflect.Ptr && value.IsNil() { value.Set(reflect.New(value.Type().Elem())) value = value.Elem() } else { @@ -93,7 +82,7 @@ func rValuesAtPath(v interface{}, path string, createPath, caseSensitive, nilTer } if value.Kind() == reflect.Slice || value.Kind() == reflect.Map { - if !createPath && value.IsNil() { + if !create && value.IsNil() { value = reflect.ValueOf(nil) } } @@ -125,7 +114,7 @@ func rValuesAtPath(v interface{}, path string, createPath, caseSensitive, nilTer // pull out index i := int(*index) if i >= value.Len() { // check out of bounds - if createPath { + if create { // TODO resize slice } else { continue @@ -136,7 +125,7 @@ func rValuesAtPath(v interface{}, path string, createPath, caseSensitive, nilTer value = reflect.Indirect(value.Index(i)) if value.Kind() == reflect.Slice || value.Kind() == reflect.Map { - if !createPath && value.IsNil() { + if !create && value.IsNil() { value = reflect.ValueOf(nil) } } @@ -153,70 +142,46 @@ func rValuesAtPath(v interface{}, path string, createPath, caseSensitive, nilTer return values } -// ValuesAtPath returns a list of values at the case insensitive lexical -// path inside of a structure. -func ValuesAtPath(i interface{}, path string) ([]interface{}, error) { - result, err := jmespath.Search(path, i) - if err != nil { - return nil, err +// ValuesAtPath returns a list of objects at the lexical path inside of a structure +func ValuesAtPath(i interface{}, path string) []interface{} { + if rvals := rValuesAtPath(i, path, false, true); rvals != nil { + vals := make([]interface{}, len(rvals)) + for i, rval := range rvals { + vals[i] = rval.Interface() + } + return vals } + return nil +} - v := reflect.ValueOf(result) - if !v.IsValid() || (v.Kind() == reflect.Ptr && v.IsNil()) { - return nil, nil - } - if s, ok := result.([]interface{}); ok { - return s, err - } - if v.Kind() == reflect.Map && v.Len() == 0 { - return nil, nil - } - if v.Kind() == reflect.Slice { - out := make([]interface{}, v.Len()) - for i := 0; i < v.Len(); i++ { - out[i] = v.Index(i).Interface() +// ValuesAtAnyPath returns a list of objects at the case-insensitive lexical +// path inside of a structure +func ValuesAtAnyPath(i interface{}, path string) []interface{} { + if rvals := rValuesAtPath(i, path, false, false); rvals != nil { + vals := make([]interface{}, len(rvals)) + for i, rval := range rvals { + vals[i] = rval.Interface() } - return out, nil + return vals } - - return []interface{}{result}, nil + return nil } -// SetValueAtPath sets a value at the case insensitive lexical path inside -// of a structure. +// SetValueAtPath sets an object at the lexical path inside of a structure func SetValueAtPath(i interface{}, path string, v interface{}) { - if rvals := rValuesAtPath(i, path, true, false, v == nil); rvals != nil { + if rvals := rValuesAtPath(i, path, true, true); rvals != nil { for _, rval := range rvals { - if rval.Kind() == reflect.Ptr && rval.IsNil() { - continue - } - setValue(rval, v) + rval.Set(reflect.ValueOf(v)) } } } -func setValue(dstVal reflect.Value, src interface{}) { - if dstVal.Kind() == reflect.Ptr { - dstVal = reflect.Indirect(dstVal) - } - srcVal := reflect.ValueOf(src) - - if !srcVal.IsValid() { // src is literal nil - if dstVal.CanAddr() { - // Convert to pointer so that pointer's value can be nil'ed - // dstVal = dstVal.Addr() - } - dstVal.Set(reflect.Zero(dstVal.Type())) - - } else if srcVal.Kind() == reflect.Ptr { - if srcVal.IsNil() { - srcVal = reflect.Zero(dstVal.Type()) - } else { - srcVal = reflect.ValueOf(src).Elem() +// SetValueAtAnyPath sets an object at the case insensitive lexical path inside +// of a structure +func SetValueAtAnyPath(i interface{}, path string, v interface{}) { + if rvals := rValuesAtPath(i, path, true, false); rvals != nil { + for _, rval := range rvals { + rval.Set(reflect.ValueOf(v)) } - dstVal.Set(srcVal) - } else { - dstVal.Set(srcVal) } - } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value_test.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value_test.go index b2225566f..0da6b06fd 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value_test.go @@ -13,7 +13,6 @@ type Struct struct { B *Struct D *Struct C string - E map[string]string } var data = Struct{ @@ -22,69 +21,30 @@ var data = Struct{ B: &Struct{B: &Struct{C: "terminal"}, D: &Struct{C: "terminal2"}}, C: "initial", } -var data2 = Struct{A: []Struct{ - {A: []Struct{{C: "1"}, {C: "1"}, {C: "1"}, {C: "1"}, {C: "1"}}}, - {A: []Struct{{C: "2"}, {C: "2"}, {C: "2"}, {C: "2"}, {C: "2"}}}, -}} func TestValueAtPathSuccess(t *testing.T) { - var testCases = []struct { - expect []interface{} - data interface{} - path string - }{ - {[]interface{}{"initial"}, data, "C"}, - {[]interface{}{"value1"}, data, "A[0].C"}, - {[]interface{}{"value2"}, data, "A[1].C"}, - {[]interface{}{"value3"}, data, "A[2].C"}, - {[]interface{}{"value3"}, data, "a[2].c"}, - {[]interface{}{"value3"}, data, "A[-1].C"}, - {[]interface{}{"value1", "value2", "value3"}, data, "A[].C"}, - {[]interface{}{"terminal"}, data, "B . B . C"}, - {[]interface{}{"initial"}, data, "A.D.X || C"}, - {[]interface{}{"initial"}, data, "A[0].B || C"}, - {[]interface{}{ - Struct{A: []Struct{{C: "1"}, {C: "1"}, {C: "1"}, {C: "1"}, {C: "1"}}}, - Struct{A: []Struct{{C: "2"}, {C: "2"}, {C: "2"}, {C: "2"}, {C: "2"}}}, - }, data2, "A"}, - } - for i, c := range testCases { - v, err := awsutil.ValuesAtPath(c.data, c.path) - assert.NoError(t, err, "case %d, expected no error, %s", i, c.path) - assert.Equal(t, c.expect, v, "case %d, %s", i, c.path) - } + assert.Equal(t, []interface{}{"initial"}, awsutil.ValuesAtPath(data, "C")) + assert.Equal(t, []interface{}{"value1"}, awsutil.ValuesAtPath(data, "A[0].C")) + assert.Equal(t, []interface{}{"value2"}, awsutil.ValuesAtPath(data, "A[1].C")) + assert.Equal(t, []interface{}{"value3"}, awsutil.ValuesAtPath(data, "A[2].C")) + assert.Equal(t, []interface{}{"value3"}, awsutil.ValuesAtAnyPath(data, "a[2].c")) + assert.Equal(t, []interface{}{"value3"}, awsutil.ValuesAtPath(data, "A[-1].C")) + assert.Equal(t, []interface{}{"value1", "value2", "value3"}, awsutil.ValuesAtPath(data, "A[].C")) + assert.Equal(t, []interface{}{"terminal"}, awsutil.ValuesAtPath(data, "B . B . C")) + assert.Equal(t, []interface{}{"terminal", "terminal2"}, awsutil.ValuesAtPath(data, "B.*.C")) + assert.Equal(t, []interface{}{"initial"}, awsutil.ValuesAtPath(data, "A.D.X || C")) } func TestValueAtPathFailure(t *testing.T) { - var testCases = []struct { - expect []interface{} - errContains string - data interface{} - path string - }{ - {nil, "", data, "C.x"}, - {nil, "SyntaxError: Invalid token: tDot", data, ".x"}, - {nil, "", data, "X.Y.Z"}, - {nil, "", data, "A[100].C"}, - {nil, "", data, "A[3].C"}, - {nil, "", data, "B.B.C.Z"}, - {nil, "", data, "z[-1].C"}, - {nil, "", nil, "A.B.C"}, - {[]interface{}{}, "", Struct{}, "A"}, - {nil, "", data, "A[0].B.C"}, - {nil, "", data, "D"}, - } - - for i, c := range testCases { - v, err := awsutil.ValuesAtPath(c.data, c.path) - if c.errContains != "" { - assert.Contains(t, err.Error(), c.errContains, "case %d, expected error, %s", i, c.path) - continue - } else { - assert.NoError(t, err, "case %d, expected no error, %s", i, c.path) - } - assert.Equal(t, c.expect, v, "case %d, %s", i, c.path) - } + assert.Equal(t, []interface{}(nil), awsutil.ValuesAtPath(data, "C.x")) + assert.Equal(t, []interface{}(nil), awsutil.ValuesAtPath(data, ".x")) + assert.Equal(t, []interface{}{}, awsutil.ValuesAtPath(data, "X.Y.Z")) + assert.Equal(t, []interface{}{}, awsutil.ValuesAtPath(data, "A[100].C")) + assert.Equal(t, []interface{}{}, awsutil.ValuesAtPath(data, "A[3].C")) + assert.Equal(t, []interface{}{}, awsutil.ValuesAtPath(data, "B.B.C.Z")) + assert.Equal(t, []interface{}(nil), awsutil.ValuesAtPath(data, "z[-1].C")) + assert.Equal(t, []interface{}{}, awsutil.ValuesAtPath(nil, "A.B.C")) + assert.Equal(t, []interface{}{}, awsutil.ValuesAtPath(Struct{}, "A")) } func TestSetValueAtPathSuccess(t *testing.T) { @@ -101,42 +61,8 @@ func TestSetValueAtPathSuccess(t *testing.T) { assert.Equal(t, "test0", s.B.D.C) var s2 Struct - awsutil.SetValueAtPath(&s2, "b.b.c", "test0") + awsutil.SetValueAtAnyPath(&s2, "b.b.c", "test0") assert.Equal(t, "test0", s2.B.B.C) - awsutil.SetValueAtPath(&s2, "A", []Struct{{}}) + awsutil.SetValueAtAnyPath(&s2, "A", []Struct{{}}) assert.Equal(t, []Struct{{}}, s2.A) - - str := "foo" - - s3 := Struct{} - awsutil.SetValueAtPath(&s3, "b.b.c", str) - assert.Equal(t, "foo", s3.B.B.C) - - s3 = Struct{B: &Struct{B: &Struct{C: str}}} - awsutil.SetValueAtPath(&s3, "b.b.c", nil) - assert.Equal(t, "", s3.B.B.C) - - s3 = Struct{} - awsutil.SetValueAtPath(&s3, "b.b.c", nil) - assert.Equal(t, "", s3.B.B.C) - - s3 = Struct{} - awsutil.SetValueAtPath(&s3, "b.b.c", &str) - assert.Equal(t, "foo", s3.B.B.C) - - var s4 struct{ Name *string } - awsutil.SetValueAtPath(&s4, "Name", str) - assert.Equal(t, str, *s4.Name) - - s4 = struct{ Name *string }{} - awsutil.SetValueAtPath(&s4, "Name", nil) - assert.Equal(t, (*string)(nil), s4.Name) - - s4 = struct{ Name *string }{Name: &str} - awsutil.SetValueAtPath(&s4, "Name", nil) - assert.Equal(t, (*string)(nil), s4.Name) - - s4 = struct{ Name *string }{} - awsutil.SetValueAtPath(&s4, "Name", &str) - assert.Equal(t, str, *s4.Name) } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go index fc38172fe..0de3eaa0f 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go @@ -91,10 +91,6 @@ func prettify(v reflect.Value, indent int, buf *bytes.Buffer) { buf.WriteString("\n" + strings.Repeat(" ", indent) + "}") default: - if !v.IsValid() { - fmt.Fprint(buf, "") - return - } format := "%v" switch v.Interface().(type) { case string: diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value.go deleted file mode 100644 index b6432f1a1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value.go +++ /dev/null @@ -1,89 +0,0 @@ -package awsutil - -import ( - "bytes" - "fmt" - "reflect" - "strings" -) - -// StringValue returns the string representation of a value. -func StringValue(i interface{}) string { - var buf bytes.Buffer - stringValue(reflect.ValueOf(i), 0, &buf) - return buf.String() -} - -func stringValue(v reflect.Value, indent int, buf *bytes.Buffer) { - for v.Kind() == reflect.Ptr { - v = v.Elem() - } - - switch v.Kind() { - case reflect.Struct: - buf.WriteString("{\n") - - names := []string{} - for i := 0; i < v.Type().NumField(); i++ { - name := v.Type().Field(i).Name - f := v.Field(i) - if name[0:1] == strings.ToLower(name[0:1]) { - continue // ignore unexported fields - } - if (f.Kind() == reflect.Ptr || f.Kind() == reflect.Slice) && f.IsNil() { - continue // ignore unset fields - } - names = append(names, name) - } - - for i, n := range names { - val := v.FieldByName(n) - buf.WriteString(strings.Repeat(" ", indent+2)) - buf.WriteString(n + ": ") - stringValue(val, indent+2, buf) - - if i < len(names)-1 { - buf.WriteString(",\n") - } - } - - buf.WriteString("\n" + strings.Repeat(" ", indent) + "}") - case reflect.Slice: - nl, id, id2 := "", "", "" - if v.Len() > 3 { - nl, id, id2 = "\n", strings.Repeat(" ", indent), strings.Repeat(" ", indent+2) - } - buf.WriteString("[" + nl) - for i := 0; i < v.Len(); i++ { - buf.WriteString(id2) - stringValue(v.Index(i), indent+2, buf) - - if i < v.Len()-1 { - buf.WriteString("," + nl) - } - } - - buf.WriteString(nl + id + "]") - case reflect.Map: - buf.WriteString("{\n") - - for i, k := range v.MapKeys() { - buf.WriteString(strings.Repeat(" ", indent+2)) - buf.WriteString(k.String() + ": ") - stringValue(v.MapIndex(k), indent+2, buf) - - if i < v.Len()-1 { - buf.WriteString(",\n") - } - } - - buf.WriteString("\n" + strings.Repeat(" ", indent) + "}") - default: - format := "%v" - switch v.Interface().(type) { - case string: - format = "%q" - } - fmt.Fprintf(buf, format, v.Interface()) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/client/client.go b/vendor/github.com/aws/aws-sdk-go/aws/client/client.go deleted file mode 100644 index c8d0564d8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/client/client.go +++ /dev/null @@ -1,120 +0,0 @@ -package client - -import ( - "fmt" - "io/ioutil" - "net/http/httputil" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" -) - -// A Config provides configuration to a service client instance. -type Config struct { - Config *aws.Config - Handlers request.Handlers - Endpoint, SigningRegion string -} - -// ConfigProvider provides a generic way for a service client to receive -// the ClientConfig without circular dependencies. -type ConfigProvider interface { - ClientConfig(serviceName string, cfgs ...*aws.Config) Config -} - -// A Client implements the base client request and response handling -// used by all service clients. -type Client struct { - request.Retryer - metadata.ClientInfo - - Config aws.Config - Handlers request.Handlers -} - -// New will return a pointer to a new initialized service client. -func New(cfg aws.Config, info metadata.ClientInfo, handlers request.Handlers, options ...func(*Client)) *Client { - svc := &Client{ - Config: cfg, - ClientInfo: info, - Handlers: handlers, - } - - switch retryer, ok := cfg.Retryer.(request.Retryer); { - case ok: - svc.Retryer = retryer - case cfg.Retryer != nil && cfg.Logger != nil: - s := fmt.Sprintf("WARNING: %T does not implement request.Retryer; using DefaultRetryer instead", cfg.Retryer) - cfg.Logger.Log(s) - fallthrough - default: - maxRetries := aws.IntValue(cfg.MaxRetries) - if cfg.MaxRetries == nil || maxRetries == aws.UseServiceDefaultRetries { - maxRetries = 3 - } - svc.Retryer = DefaultRetryer{NumMaxRetries: maxRetries} - } - - svc.AddDebugHandlers() - - for _, option := range options { - option(svc) - } - - return svc -} - -// NewRequest returns a new Request pointer for the service API -// operation and parameters. -func (c *Client) NewRequest(operation *request.Operation, params interface{}, data interface{}) *request.Request { - return request.New(c.Config, c.ClientInfo, c.Handlers, c.Retryer, operation, params, data) -} - -// AddDebugHandlers injects debug logging handlers into the service to log request -// debug information. -func (c *Client) AddDebugHandlers() { - if !c.Config.LogLevel.AtLeast(aws.LogDebug) { - return - } - - c.Handlers.Send.PushFront(logRequest) - c.Handlers.Send.PushBack(logResponse) -} - -const logReqMsg = `DEBUG: Request %s/%s Details: ----[ REQUEST POST-SIGN ]----------------------------- -%s ------------------------------------------------------` - -func logRequest(r *request.Request) { - logBody := r.Config.LogLevel.Matches(aws.LogDebugWithHTTPBody) - dumpedBody, _ := httputil.DumpRequestOut(r.HTTPRequest, logBody) - - if logBody { - // Reset the request body because dumpRequest will re-wrap the r.HTTPRequest's - // Body as a NoOpCloser and will not be reset after read by the HTTP - // client reader. - r.Body.Seek(r.BodyStart, 0) - r.HTTPRequest.Body = ioutil.NopCloser(r.Body) - } - - r.Config.Logger.Log(fmt.Sprintf(logReqMsg, r.ClientInfo.ServiceName, r.Operation.Name, string(dumpedBody))) -} - -const logRespMsg = `DEBUG: Response %s/%s Details: ----[ RESPONSE ]-------------------------------------- -%s ------------------------------------------------------` - -func logResponse(r *request.Request) { - var msg = "no response data" - if r.HTTPResponse != nil { - logBody := r.Config.LogLevel.Matches(aws.LogDebugWithHTTPBody) - dumpedBody, _ := httputil.DumpResponse(r.HTTPResponse, logBody) - msg = string(dumpedBody) - } else if r.Error != nil { - msg = r.Error.Error() - } - r.Config.Logger.Log(fmt.Sprintf(logRespMsg, r.ClientInfo.ServiceName, r.Operation.Name, msg)) -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/client/default_retryer.go b/vendor/github.com/aws/aws-sdk-go/aws/client/default_retryer.go deleted file mode 100644 index 43a3676b7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/client/default_retryer.go +++ /dev/null @@ -1,90 +0,0 @@ -package client - -import ( - "math/rand" - "sync" - "time" - - "github.com/aws/aws-sdk-go/aws/request" -) - -// DefaultRetryer implements basic retry logic using exponential backoff for -// most services. If you want to implement custom retry logic, implement the -// request.Retryer interface or create a structure type that composes this -// struct and override the specific methods. For example, to override only -// the MaxRetries method: -// -// type retryer struct { -// service.DefaultRetryer -// } -// -// // This implementation always has 100 max retries -// func (d retryer) MaxRetries() uint { return 100 } -type DefaultRetryer struct { - NumMaxRetries int -} - -// MaxRetries returns the number of maximum returns the service will use to make -// an individual API request. -func (d DefaultRetryer) MaxRetries() int { - return d.NumMaxRetries -} - -var seededRand = rand.New(&lockedSource{src: rand.NewSource(time.Now().UnixNano())}) - -// RetryRules returns the delay duration before retrying this request again -func (d DefaultRetryer) RetryRules(r *request.Request) time.Duration { - // Set the upper limit of delay in retrying at ~five minutes - minTime := 30 - throttle := d.shouldThrottle(r) - if throttle { - minTime = 500 - } - - retryCount := r.RetryCount - if retryCount > 13 { - retryCount = 13 - } else if throttle && retryCount > 8 { - retryCount = 8 - } - - delay := (1 << uint(retryCount)) * (seededRand.Intn(minTime) + minTime) - return time.Duration(delay) * time.Millisecond -} - -// ShouldRetry returns true if the request should be retried. -func (d DefaultRetryer) ShouldRetry(r *request.Request) bool { - if r.HTTPResponse.StatusCode >= 500 { - return true - } - return r.IsErrorRetryable() || d.shouldThrottle(r) -} - -// ShouldThrottle returns true if the request should be throttled. -func (d DefaultRetryer) shouldThrottle(r *request.Request) bool { - if r.HTTPResponse.StatusCode == 502 || - r.HTTPResponse.StatusCode == 503 || - r.HTTPResponse.StatusCode == 504 { - return true - } - return r.IsErrorThrottle() -} - -// lockedSource is a thread-safe implementation of rand.Source -type lockedSource struct { - lk sync.Mutex - src rand.Source -} - -func (r *lockedSource) Int63() (n int64) { - r.lk.Lock() - n = r.src.Int63() - r.lk.Unlock() - return -} - -func (r *lockedSource) Seed(seed int64) { - r.lk.Lock() - r.src.Seed(seed) - r.lk.Unlock() -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/client/metadata/client_info.go b/vendor/github.com/aws/aws-sdk-go/aws/client/metadata/client_info.go deleted file mode 100644 index 4778056dd..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/client/metadata/client_info.go +++ /dev/null @@ -1,12 +0,0 @@ -package metadata - -// ClientInfo wraps immutable data from the client.Client structure. -type ClientInfo struct { - ServiceName string - APIVersion string - Endpoint string - SigningName string - SigningRegion string - JSONVersion string - TargetPrefix string -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/config.go b/vendor/github.com/aws/aws-sdk-go/aws/config.go index fa11f9919..a72f70222 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/config.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/config.go @@ -7,25 +7,15 @@ import ( "github.com/aws/aws-sdk-go/aws/credentials" ) -// UseServiceDefaultRetries instructs the config to use the service's own default -// number of retries. This will be the default action if Config.MaxRetries -// is nil also. -const UseServiceDefaultRetries = -1 - -// RequestRetryer is an alias for a type that implements the request.Retryer interface. -type RequestRetryer interface{} +// The default number of retries for a service. The value of -1 indicates that +// the service specific retry default will be used. +const DefaultRetries = -1 // A Config provides service configuration for service clients. By default, // all clients will use the {defaults.DefaultConfig} structure. type Config struct { - // Enables verbose error printing of all credential chain errors. - // Should be used when wanting to see all errors while attempting to retreive - // credentials. - CredentialsChainVerboseErrors *bool - // The credentials object to use when signing requests. Defaults to - // a chain of credential providers to search for credentials in environment - // variables, shared credential file, and EC2 Instance Roles. + // {defaults.DefaultChainCredentials}. Credentials *credentials.Credentials // An optional endpoint URL (hostname only or fully qualified URI) @@ -67,21 +57,6 @@ type Config struct { // configuration. MaxRetries *int - // Retryer guides how HTTP requests should be retried in case of recoverable failures. - // - // When nil or the value does not implement the request.Retryer interface, - // the request.DefaultRetryer will be used. - // - // When both Retryer and MaxRetries are non-nil, the former is used and - // the latter ignored. - // - // To set the Retryer field in a type-safe manner and with chaining, use - // the request.WithRetryer helper function: - // - // cfg := request.WithRetryer(aws.NewConfig(), myRetryer) - // - Retryer RequestRetryer - // Disables semantic parameter validation, which validates input for missing // required fields and/or other semantic request input errors. DisableParamValidation *bool @@ -100,64 +75,18 @@ type Config struct { // Amazon S3: Virtual Hosting of Buckets S3ForcePathStyle *bool - // Set this to `true` to disable the SDK adding the `Expect: 100-Continue` - // header to PUT requests over 2MB of content. 100-Continue instructs the - // HTTP client not to send the body until the service responds with a - // `continue` status. This is useful to prevent sending the request body - // until after the request is authenticated, and validated. - // - // http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html - // - // 100-Continue is only enabled for Go 1.6 and above. See `http.Transport`'s - // `ExpectContinueTimeout` for information on adjusting the continue wait timeout. - // https://golang.org/pkg/net/http/#Transport - // - // You should use this flag to disble 100-Continue if you experiance issues - // with proxies or thrid party S3 compatible services. - S3Disable100Continue *bool - - // Set this to `true` to enable S3 Accelerate feature. For all operations compatible - // with S3 Accelerate will use the accelerate endpoint for requests. Requests not compatible - // will fall back to normal S3 requests. - // - // The bucket must be enable for accelerate to be used with S3 client with accelerate - // enabled. If the bucket is not enabled for accelerate an error will be returned. - // The bucket name must be DNS compatible to also work with accelerate. - S3UseAccelerate *bool - - // Set this to `true` to disable the EC2Metadata client from overriding the - // default http.Client's Timeout. This is helpful if you do not want the EC2Metadata - // client to create a new http.Client. This options is only meaningful if you're not - // already using a custom HTTP client with the SDK. Enabled by default. - // - // Must be set and provided to the session.New() in order to disable the EC2Metadata - // overriding the timeout for default credentials chain. - // - // Example: - // sess := session.New(aws.NewConfig().WithEC2MetadataDiableTimeoutOverride(true)) - // svc := s3.New(sess) - // - EC2MetadataDisableTimeoutOverride *bool - SleepDelay func(time.Duration) } // NewConfig returns a new Config pointer that can be chained with builder methods to // set multiple configuration values inline without using pointers. // -// sess := session.New(aws.NewConfig().WithRegion("us-west-2").WithMaxRetries(10)) +// svc := s3.New(aws.NewConfig().WithRegion("us-west-2").WithMaxRetries(10)) // func NewConfig() *Config { return &Config{} } -// WithCredentialsChainVerboseErrors sets a config verbose errors boolean and returning -// a Config pointer. -func (c *Config) WithCredentialsChainVerboseErrors(verboseErrs bool) *Config { - c.CredentialsChainVerboseErrors = &verboseErrs - return c -} - // WithCredentials sets a config Credentials value returning a Config pointer // for chaining. func (c *Config) WithCredentials(creds *credentials.Credentials) *Config { @@ -235,27 +164,6 @@ func (c *Config) WithS3ForcePathStyle(force bool) *Config { return c } -// WithS3Disable100Continue sets a config S3Disable100Continue value returning -// a Config pointer for chaining. -func (c *Config) WithS3Disable100Continue(disable bool) *Config { - c.S3Disable100Continue = &disable - return c -} - -// WithS3UseAccelerate sets a config S3UseAccelerate value returning a Config -// pointer for chaining. -func (c *Config) WithS3UseAccelerate(enable bool) *Config { - c.S3UseAccelerate = &enable - return c -} - -// WithEC2MetadataDisableTimeoutOverride sets a config EC2MetadataDisableTimeoutOverride value -// returning a Config pointer for chaining. -func (c *Config) WithEC2MetadataDisableTimeoutOverride(enable bool) *Config { - c.EC2MetadataDisableTimeoutOverride = &enable - return c -} - // WithSleepDelay overrides the function used to sleep while waiting for the // next retry. Defaults to time.Sleep. func (c *Config) WithSleepDelay(fn func(time.Duration)) *Config { @@ -263,21 +171,15 @@ func (c *Config) WithSleepDelay(fn func(time.Duration)) *Config { return c } -// MergeIn merges the passed in configs into the existing config object. -func (c *Config) MergeIn(cfgs ...*Config) { - for _, other := range cfgs { - mergeInConfig(c, other) - } -} - -func mergeInConfig(dst *Config, other *Config) { +// Merge returns a new Config with the other Config's attribute values merged into +// this Config. If the other Config's attribute is nil it will not be merged into +// the new Config to be returned. +func (c Config) Merge(other *Config) *Config { if other == nil { - return + return &c } - if other.CredentialsChainVerboseErrors != nil { - dst.CredentialsChainVerboseErrors = other.CredentialsChainVerboseErrors - } + dst := c if other.Credentials != nil { dst.Credentials = other.Credentials @@ -311,10 +213,6 @@ func mergeInConfig(dst *Config, other *Config) { dst.MaxRetries = other.MaxRetries } - if other.Retryer != nil { - dst.Retryer = other.Retryer - } - if other.DisableParamValidation != nil { dst.DisableParamValidation = other.DisableParamValidation } @@ -327,32 +225,15 @@ func mergeInConfig(dst *Config, other *Config) { dst.S3ForcePathStyle = other.S3ForcePathStyle } - if other.S3Disable100Continue != nil { - dst.S3Disable100Continue = other.S3Disable100Continue - } - - if other.S3UseAccelerate != nil { - dst.S3UseAccelerate = other.S3UseAccelerate - } - - if other.EC2MetadataDisableTimeoutOverride != nil { - dst.EC2MetadataDisableTimeoutOverride = other.EC2MetadataDisableTimeoutOverride - } - if other.SleepDelay != nil { dst.SleepDelay = other.SleepDelay } -} - -// Copy will return a shallow copy of the Config object. If any additional -// configurations are provided they will be merged into the new config returned. -func (c *Config) Copy(cfgs ...*Config) *Config { - dst := &Config{} - dst.MergeIn(c) - for _, cfg := range cfgs { - dst.MergeIn(cfg) - } + return &dst +} - return dst +// Copy will return a shallow copy of the Config object. +func (c Config) Copy() *Config { + dst := c + return &dst } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/config_test.go b/vendor/github.com/aws/aws-sdk-go/aws/config_test.go index fe97a31fc..c4320ca1e 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/config_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/config_test.go @@ -18,7 +18,7 @@ var copyTestConfig = Config{ HTTPClient: http.DefaultClient, LogLevel: LogLevel(LogDebug), Logger: NewDefaultLogger(), - MaxRetries: Int(3), + MaxRetries: Int(DefaultRetries), DisableParamValidation: Bool(true), DisableComputeChecksums: Bool(true), S3ForcePathStyle: Bool(true), @@ -31,11 +31,6 @@ func TestCopy(t *testing.T) { t.Errorf("Copy() = %+v", got) t.Errorf(" want %+v", want) } - - got.Region = String("other") - if got.Region == want.Region { - t.Errorf("Expect setting copy values not not reflect in source") - } } func TestCopyReturnsNewInstance(t *testing.T) { @@ -74,8 +69,7 @@ var mergeTests = []struct { func TestMerge(t *testing.T) { for i, tt := range mergeTests { - got := tt.cfg.Copy() - got.MergeIn(tt.in) + got := tt.cfg.Merge(tt.in) if !reflect.DeepEqual(got, tt.want) { t.Errorf("Config %d %+v", i, tt.cfg) t.Errorf(" Merge(%+v)", tt.in) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/convert_types.go b/vendor/github.com/aws/aws-sdk-go/aws/convert_types.go index cff5c5c8a..d6a7b08df 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/convert_types.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/convert_types.go @@ -311,18 +311,6 @@ func TimeValue(v *time.Time) time.Time { return time.Time{} } -// TimeUnixMilli returns a Unix timestamp in milliseconds from "January 1, 1970 UTC". -// The result is undefined if the Unix time cannot be represented by an int64. -// Which includes calling TimeUnixMilli on a zero Time is undefined. -// -// This utility is useful for service API's such as CloudWatch Logs which require -// their unix time values to be in milliseconds. -// -// See Go stdlib https://golang.org/pkg/time/#Time.UnixNano for more information. -func TimeUnixMilli(t time.Time) int64 { - return t.UnixNano() / int64(time.Millisecond/time.Nanosecond) -} - // TimeSlice converts a slice of time.Time values into a slice of // time.Time pointers func TimeSlice(src []time.Time) []*time.Time { diff --git a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go index 8456e29b5..2fcb391a2 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go @@ -8,7 +8,6 @@ import ( "net/http" "net/url" "regexp" - "runtime" "strconv" "github.com/aws/aws-sdk-go/aws" @@ -21,62 +20,47 @@ type lener interface { Len() int } -// BuildContentLengthHandler builds the content length of a request based on the body, +// BuildContentLength builds the content length of a request based on the body, // or will use the HTTPRequest.Header's "Content-Length" if defined. If unable // to determine request body length and no "Content-Length" was specified it will panic. -// -// The Content-Length will only be aded to the request if the length of the body -// is greater than 0. If the body is empty or the current `Content-Length` -// header is <= 0, the header will also be stripped. -var BuildContentLengthHandler = request.NamedHandler{Name: "core.BuildContentLengthHandler", Fn: func(r *request.Request) { - var length int64 - +var BuildContentLengthHandler = request.NamedHandler{"core.BuildContentLengthHandler", func(r *request.Request) { if slength := r.HTTPRequest.Header.Get("Content-Length"); slength != "" { - length, _ = strconv.ParseInt(slength, 10, 64) - } else { - switch body := r.Body.(type) { - case nil: - length = 0 - case lener: - length = int64(body.Len()) - case io.Seeker: - r.BodyStart, _ = body.Seek(0, 1) - end, _ := body.Seek(0, 2) - body.Seek(r.BodyStart, 0) // make sure to seek back to original location - length = end - r.BodyStart - default: - panic("Cannot get length of body, must provide `ContentLength`") - } + length, _ := strconv.ParseInt(slength, 10, 64) + r.HTTPRequest.ContentLength = length + return } - if length > 0 { - r.HTTPRequest.ContentLength = length - r.HTTPRequest.Header.Set("Content-Length", fmt.Sprintf("%d", length)) - } else { - r.HTTPRequest.ContentLength = 0 - r.HTTPRequest.Header.Del("Content-Length") + var length int64 + switch body := r.Body.(type) { + case nil: + length = 0 + case lener: + length = int64(body.Len()) + case io.Seeker: + r.BodyStart, _ = body.Seek(0, 1) + end, _ := body.Seek(0, 2) + body.Seek(r.BodyStart, 0) // make sure to seek back to original location + length = end - r.BodyStart + default: + panic("Cannot get length of body, must provide `ContentLength`") } + + r.HTTPRequest.ContentLength = length + r.HTTPRequest.Header.Set("Content-Length", fmt.Sprintf("%d", length)) }} -// SDKVersionUserAgentHandler is a request handler for adding the SDK Version to the user agent. -var SDKVersionUserAgentHandler = request.NamedHandler{ - Name: "core.SDKVersionUserAgentHandler", - Fn: request.MakeAddToUserAgentHandler(aws.SDKName, aws.SDKVersion, - runtime.Version(), runtime.GOOS, runtime.GOARCH), -} +// UserAgentHandler is a request handler for injecting User agent into requests. +var UserAgentHandler = request.NamedHandler{"core.UserAgentHandler", func(r *request.Request) { + r.HTTPRequest.Header.Set("User-Agent", aws.SDKName+"/"+aws.SDKVersion) +}} var reStatusCode = regexp.MustCompile(`^(\d{3})`) // SendHandler is a request handler to send service request using HTTP client. -var SendHandler = request.NamedHandler{Name: "core.SendHandler", Fn: func(r *request.Request) { +var SendHandler = request.NamedHandler{"core.SendHandler", func(r *request.Request) { var err error - r.HTTPResponse, err = r.Config.HTTPClient.Do(r.HTTPRequest) + r.HTTPResponse, err = r.Service.Config.HTTPClient.Do(r.HTTPRequest) if err != nil { - // Prevent leaking if an HTTPResponse was returned. Clean up - // the body. - if r.HTTPResponse != nil { - r.HTTPResponse.Body.Close() - } // Capture the case where url.Error is returned for error processing // response. e.g. 301 without location header comes back as string // error and r.HTTPResponse is nil. Other url redirect errors will @@ -108,7 +92,7 @@ var SendHandler = request.NamedHandler{Name: "core.SendHandler", Fn: func(r *req }} // ValidateResponseHandler is a request handler to validate service response. -var ValidateResponseHandler = request.NamedHandler{Name: "core.ValidateResponseHandler", Fn: func(r *request.Request) { +var ValidateResponseHandler = request.NamedHandler{"core.ValidateResponseHandler", func(r *request.Request) { if r.HTTPResponse.StatusCode == 0 || r.HTTPResponse.StatusCode >= 300 { // this may be replaced by an UnmarshalError handler r.Error = awserr.New("UnknownError", "unknown error", nil) @@ -117,7 +101,7 @@ var ValidateResponseHandler = request.NamedHandler{Name: "core.ValidateResponseH // AfterRetryHandler performs final checks to determine if the request should // be retried and how long to delay. -var AfterRetryHandler = request.NamedHandler{Name: "core.AfterRetryHandler", Fn: func(r *request.Request) { +var AfterRetryHandler = request.NamedHandler{"core.AfterRetryHandler", func(r *request.Request) { // If one of the other handlers already set the retry state // we don't want to override it based on the service's state if r.Retryable == nil { @@ -126,13 +110,13 @@ var AfterRetryHandler = request.NamedHandler{Name: "core.AfterRetryHandler", Fn: if r.WillRetry() { r.RetryDelay = r.RetryRules(r) - r.Config.SleepDelay(r.RetryDelay) + r.Service.Config.SleepDelay(r.RetryDelay) // when the expired token exception occurs the credentials // need to be expired locally so that the next request to // get credentials will trigger a credentials refresh. if r.IsErrorExpired() { - r.Config.Credentials.Expire() + r.Service.Config.Credentials.Expire() } r.RetryCount++ @@ -143,10 +127,10 @@ var AfterRetryHandler = request.NamedHandler{Name: "core.AfterRetryHandler", Fn: // ValidateEndpointHandler is a request handler to validate a request had the // appropriate Region and Endpoint set. Will set r.Error if the endpoint or // region is not valid. -var ValidateEndpointHandler = request.NamedHandler{Name: "core.ValidateEndpointHandler", Fn: func(r *request.Request) { - if r.ClientInfo.SigningRegion == "" && aws.StringValue(r.Config.Region) == "" { +var ValidateEndpointHandler = request.NamedHandler{"core.ValidateEndpointHandler", func(r *request.Request) { + if r.Service.SigningRegion == "" && aws.StringValue(r.Service.Config.Region) == "" { r.Error = aws.ErrMissingRegion - } else if r.ClientInfo.Endpoint == "" { + } else if r.Service.Endpoint == "" { r.Error = aws.ErrMissingEndpoint } }} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_test.go b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_test.go index 5b61a33b6..214adcab0 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_test.go @@ -1,11 +1,8 @@ package corehandlers_test import ( - "bytes" "fmt" - "io/ioutil" "net/http" - "net/http/httptest" "os" "testing" @@ -16,15 +13,12 @@ import ( "github.com/aws/aws-sdk-go/aws/corehandlers" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/awstesting/unit" - "github.com/aws/aws-sdk-go/service/s3" + "github.com/aws/aws-sdk-go/aws/service" ) func TestValidateEndpointHandler(t *testing.T) { os.Clearenv() - - svc := awstesting.NewClient(aws.NewConfig().WithRegion("us-west-2")) + svc := service.New(aws.NewConfig().WithRegion("us-west-2")) svc.Handlers.Clear() svc.Handlers.Validate.PushBackNamed(corehandlers.ValidateEndpointHandler) @@ -36,8 +30,7 @@ func TestValidateEndpointHandler(t *testing.T) { func TestValidateEndpointHandlerErrorRegion(t *testing.T) { os.Clearenv() - - svc := awstesting.NewClient() + svc := service.New(nil) svc.Handlers.Clear() svc.Handlers.Validate.PushBackNamed(corehandlers.ValidateEndpointHandler) @@ -55,7 +48,7 @@ type mockCredsProvider struct { func (m *mockCredsProvider) Retrieve() (credentials.Value, error) { m.retrieveCalled = true - return credentials.Value{ProviderName: "mockCredsProvider"}, nil + return credentials.Value{}, nil } func (m *mockCredsProvider) IsExpired() bool { @@ -65,16 +58,12 @@ func (m *mockCredsProvider) IsExpired() bool { func TestAfterRetryRefreshCreds(t *testing.T) { os.Clearenv() credProvider := &mockCredsProvider{} - - svc := awstesting.NewClient(&aws.Config{ - Credentials: credentials.NewCredentials(credProvider), - MaxRetries: aws.Int(1), - }) + svc := service.New(&aws.Config{Credentials: credentials.NewCredentials(credProvider), MaxRetries: aws.Int(1)}) svc.Handlers.Clear() svc.Handlers.ValidateResponse.PushBack(func(r *request.Request) { r.Error = awserr.New("UnknownError", "", nil) - r.HTTPResponse = &http.Response{StatusCode: 400, Body: ioutil.NopCloser(bytes.NewBuffer([]byte{}))} + r.HTTPResponse = &http.Response{StatusCode: 400} }) svc.Handlers.UnmarshalError.PushBack(func(r *request.Request) { r.Error = awserr.New("ExpiredTokenException", "", nil) @@ -102,7 +91,7 @@ func (t *testSendHandlerTransport) RoundTrip(r *http.Request) (*http.Response, e } func TestSendHandlerError(t *testing.T) { - svc := awstesting.NewClient(&aws.Config{ + svc := service.New(&aws.Config{ HTTPClient: &http.Client{ Transport: &testSendHandlerTransport{}, }, @@ -116,77 +105,3 @@ func TestSendHandlerError(t *testing.T) { assert.Error(t, r.Error) assert.NotNil(t, r.HTTPResponse) } - -func setupContentLengthTestServer(t *testing.T, hasContentLength bool, contentLength int64) *httptest.Server { - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - _, ok := r.Header["Content-Length"] - assert.Equal(t, hasContentLength, ok, "expect content length to be set, %t", hasContentLength) - assert.Equal(t, contentLength, r.ContentLength) - - b, err := ioutil.ReadAll(r.Body) - assert.NoError(t, err) - r.Body.Close() - - authHeader := r.Header.Get("Authorization") - if hasContentLength { - assert.Contains(t, authHeader, "content-length") - } else { - assert.NotContains(t, authHeader, "content-length") - } - - assert.Equal(t, contentLength, int64(len(b))) - })) - - return server -} - -func TestBuildContentLength_ZeroBody(t *testing.T) { - server := setupContentLengthTestServer(t, false, 0) - - svc := s3.New(unit.Session, &aws.Config{ - Endpoint: aws.String(server.URL), - S3ForcePathStyle: aws.Bool(true), - DisableSSL: aws.Bool(true), - }) - _, err := svc.GetObject(&s3.GetObjectInput{ - Bucket: aws.String("bucketname"), - Key: aws.String("keyname"), - }) - - assert.NoError(t, err) -} - -func TestBuildContentLength_NegativeBody(t *testing.T) { - server := setupContentLengthTestServer(t, false, 0) - - svc := s3.New(unit.Session, &aws.Config{ - Endpoint: aws.String(server.URL), - S3ForcePathStyle: aws.Bool(true), - DisableSSL: aws.Bool(true), - }) - req, _ := svc.GetObjectRequest(&s3.GetObjectInput{ - Bucket: aws.String("bucketname"), - Key: aws.String("keyname"), - }) - - req.HTTPRequest.Header.Set("Content-Length", "-1") - - assert.NoError(t, req.Send()) -} - -func TestBuildContentLength_WithBody(t *testing.T) { - server := setupContentLengthTestServer(t, true, 1024) - - svc := s3.New(unit.Session, &aws.Config{ - Endpoint: aws.String(server.URL), - S3ForcePathStyle: aws.Bool(true), - DisableSSL: aws.Bool(true), - }) - _, err := svc.PutObject(&s3.PutObjectInput{ - Bucket: aws.String("bucketname"), - Key: aws.String("keyname"), - Body: bytes.NewReader(make([]byte, 1024)), - }) - - assert.NoError(t, err) -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.go b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.go index 7d50b1557..d7019eb87 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.go @@ -1,17 +1,90 @@ package corehandlers -import "github.com/aws/aws-sdk-go/aws/request" +import ( + "fmt" + "reflect" + "strings" -// ValidateParametersHandler is a request handler to validate the input parameters. + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" +) + +// ValidateParameters is a request handler to validate the input parameters. // Validating parameters only has meaning if done prior to the request being sent. -var ValidateParametersHandler = request.NamedHandler{Name: "core.ValidateParametersHandler", Fn: func(r *request.Request) { - if !r.ParamsFilled() { +var ValidateParametersHandler = request.NamedHandler{"core.ValidateParametersHandler", func(r *request.Request) { + if r.ParamsFilled() { + v := validator{errors: []string{}} + v.validateAny(reflect.ValueOf(r.Params), "") + + if count := len(v.errors); count > 0 { + format := "%d validation errors:\n- %s" + msg := fmt.Sprintf(format, count, strings.Join(v.errors, "\n- ")) + r.Error = awserr.New("InvalidParameter", msg, nil) + } + } +}} + +// A validator validates values. Collects validations errors which occurs. +type validator struct { + errors []string +} + +// validateAny will validate any struct, slice or map type. All validations +// are also performed recursively for nested types. +func (v *validator) validateAny(value reflect.Value, path string) { + value = reflect.Indirect(value) + if !value.IsValid() { return } - if v, ok := r.Params.(request.Validator); ok { - if err := v.Validate(); err != nil { - r.Error = err + switch value.Kind() { + case reflect.Struct: + v.validateStruct(value, path) + case reflect.Slice: + for i := 0; i < value.Len(); i++ { + v.validateAny(value.Index(i), path+fmt.Sprintf("[%d]", i)) + } + case reflect.Map: + for _, n := range value.MapKeys() { + v.validateAny(value.MapIndex(n), path+fmt.Sprintf("[%q]", n.String())) } } -}} +} + +// validateStruct will validate the struct value's fields. If the structure has +// nested types those types will be validated also. +func (v *validator) validateStruct(value reflect.Value, path string) { + prefix := "." + if path == "" { + prefix = "" + } + + for i := 0; i < value.Type().NumField(); i++ { + f := value.Type().Field(i) + if strings.ToLower(f.Name[0:1]) == f.Name[0:1] { + continue + } + fvalue := value.FieldByName(f.Name) + + notset := false + if f.Tag.Get("required") != "" { + switch fvalue.Kind() { + case reflect.Ptr, reflect.Slice, reflect.Map: + if fvalue.IsNil() { + notset = true + } + default: + if !fvalue.IsValid() { + notset = true + } + } + } + + if notset { + msg := "missing required parameter: " + path + prefix + f.Name + v.errors = append(v.errors, msg) + } else { + v.validateAny(fvalue, path+prefix+f.Name) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator_test.go b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator_test.go index fb50a0bd8..674fe96ff 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator_test.go @@ -1,26 +1,22 @@ package corehandlers_test import ( - "fmt" "testing" "github.com/stretchr/testify/assert" "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/client/metadata" "github.com/aws/aws-sdk-go/aws/corehandlers" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/kinesis" - "github.com/stretchr/testify/require" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" ) -var testSvc = func() *client.Client { - s := &client.Client{ - Config: aws.Config{}, - ClientInfo: metadata.ClientInfo{ +var testSvc = func() *service.Service { + s := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: &aws.Config{}, ServiceName: "mock-service", APIVersion: "2015-01-01", }, @@ -29,75 +25,23 @@ var testSvc = func() *client.Client { }() type StructShape struct { - _ struct{} `type:"structure"` - RequiredList []*ConditionalStructShape `required:"true"` RequiredMap map[string]*ConditionalStructShape `required:"true"` RequiredBool *bool `required:"true"` OptionalStruct *ConditionalStructShape hiddenParameter *string -} - -func (s *StructShape) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StructShape"} - if s.RequiredList == nil { - invalidParams.Add(request.NewErrParamRequired("RequiredList")) - } - if s.RequiredMap == nil { - invalidParams.Add(request.NewErrParamRequired("RequiredMap")) - } - if s.RequiredBool == nil { - invalidParams.Add(request.NewErrParamRequired("RequiredBool")) - } - if s.RequiredList != nil { - for i, v := range s.RequiredList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RequiredList", i), err.(request.ErrInvalidParams)) - } - } - } - if s.RequiredMap != nil { - for i, v := range s.RequiredMap { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RequiredMap", i), err.(request.ErrInvalidParams)) - } - } - } - if s.OptionalStruct != nil { - if err := s.OptionalStruct.Validate(); err != nil { - invalidParams.AddNested("OptionalStruct", err.(request.ErrInvalidParams)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataStructureShape } -type ConditionalStructShape struct { - _ struct{} `type:"structure"` - - Name *string `required:"true"` +type metadataStructureShape struct { + SDKShapeTraits bool } -func (s *ConditionalStructShape) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConditionalStructShape"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ConditionalStructShape struct { + Name *string `required:"true"` + SDKShapeTraits bool } func TestNoErrors(t *testing.T) { @@ -113,7 +57,7 @@ func TestNoErrors(t *testing.T) { req := testSvc.NewRequest(&request.Operation{}, input, nil) corehandlers.ValidateParametersHandler.Fn(req) - require.NoError(t, req.Error) + assert.NoError(t, req.Error) } func TestMissingRequiredParameters(t *testing.T) { @@ -121,17 +65,9 @@ func TestMissingRequiredParameters(t *testing.T) { req := testSvc.NewRequest(&request.Operation{}, input, nil) corehandlers.ValidateParametersHandler.Fn(req) - require.Error(t, req.Error) + assert.Error(t, req.Error) assert.Equal(t, "InvalidParameter", req.Error.(awserr.Error).Code()) - assert.Equal(t, "3 validation error(s) found.", req.Error.(awserr.Error).Message()) - - errs := req.Error.(awserr.BatchedErrors).OrigErrs() - assert.Len(t, errs, 3) - assert.Equal(t, "ParamRequiredError: missing required field, StructShape.RequiredList.", errs[0].Error()) - assert.Equal(t, "ParamRequiredError: missing required field, StructShape.RequiredMap.", errs[1].Error()) - assert.Equal(t, "ParamRequiredError: missing required field, StructShape.RequiredBool.", errs[2].Error()) - - assert.Equal(t, "InvalidParameter: 3 validation error(s) found.\n- missing required field, StructShape.RequiredList.\n- missing required field, StructShape.RequiredMap.\n- missing required field, StructShape.RequiredBool.\n", req.Error.Error()) + assert.Equal(t, "3 validation errors:\n- missing required parameter: RequiredList\n- missing required parameter: RequiredMap\n- missing required parameter: RequiredBool", req.Error.(awserr.Error).Message()) } func TestNestedMissingRequiredParameters(t *testing.T) { @@ -148,107 +84,8 @@ func TestNestedMissingRequiredParameters(t *testing.T) { req := testSvc.NewRequest(&request.Operation{}, input, nil) corehandlers.ValidateParametersHandler.Fn(req) - require.Error(t, req.Error) + assert.Error(t, req.Error) assert.Equal(t, "InvalidParameter", req.Error.(awserr.Error).Code()) - assert.Equal(t, "3 validation error(s) found.", req.Error.(awserr.Error).Message()) - - errs := req.Error.(awserr.BatchedErrors).OrigErrs() - assert.Len(t, errs, 3) - assert.Equal(t, "ParamRequiredError: missing required field, StructShape.RequiredList[0].Name.", errs[0].Error()) - assert.Equal(t, "ParamRequiredError: missing required field, StructShape.RequiredMap[key2].Name.", errs[1].Error()) - assert.Equal(t, "ParamRequiredError: missing required field, StructShape.OptionalStruct.Name.", errs[2].Error()) -} + assert.Equal(t, "3 validation errors:\n- missing required parameter: RequiredList[0].Name\n- missing required parameter: RequiredMap[\"key2\"].Name\n- missing required parameter: OptionalStruct.Name", req.Error.(awserr.Error).Message()) -type testInput struct { - StringField *string `min:"5"` - ListField []string `min:"3"` - MapField map[string]string `min:"4"` -} - -func (s testInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "testInput"} - if s.StringField != nil && len(*s.StringField) < 5 { - invalidParams.Add(request.NewErrParamMinLen("StringField", 5)) - } - if s.ListField != nil && len(s.ListField) < 3 { - invalidParams.Add(request.NewErrParamMinLen("ListField", 3)) - } - if s.MapField != nil && len(s.MapField) < 4 { - invalidParams.Add(request.NewErrParamMinLen("MapField", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -var testsFieldMin = []struct { - err awserr.Error - in testInput -}{ - { - err: func() awserr.Error { - invalidParams := request.ErrInvalidParams{Context: "testInput"} - invalidParams.Add(request.NewErrParamMinLen("StringField", 5)) - return invalidParams - }(), - in: testInput{StringField: aws.String("abcd")}, - }, - { - err: func() awserr.Error { - invalidParams := request.ErrInvalidParams{Context: "testInput"} - invalidParams.Add(request.NewErrParamMinLen("StringField", 5)) - invalidParams.Add(request.NewErrParamMinLen("ListField", 3)) - return invalidParams - }(), - in: testInput{StringField: aws.String("abcd"), ListField: []string{"a", "b"}}, - }, - { - err: func() awserr.Error { - invalidParams := request.ErrInvalidParams{Context: "testInput"} - invalidParams.Add(request.NewErrParamMinLen("StringField", 5)) - invalidParams.Add(request.NewErrParamMinLen("ListField", 3)) - invalidParams.Add(request.NewErrParamMinLen("MapField", 4)) - return invalidParams - }(), - in: testInput{StringField: aws.String("abcd"), ListField: []string{"a", "b"}, MapField: map[string]string{"a": "a", "b": "b"}}, - }, - { - err: nil, - in: testInput{StringField: aws.String("abcde"), - ListField: []string{"a", "b", "c"}, MapField: map[string]string{"a": "a", "b": "b", "c": "c", "d": "d"}}, - }, -} - -func TestValidateFieldMinParameter(t *testing.T) { - for i, c := range testsFieldMin { - req := testSvc.NewRequest(&request.Operation{}, &c.in, nil) - corehandlers.ValidateParametersHandler.Fn(req) - - assert.Equal(t, c.err, req.Error, "%d case failed", i) - } -} - -func BenchmarkValidateAny(b *testing.B) { - input := &kinesis.PutRecordsInput{ - StreamName: aws.String("stream"), - } - for i := 0; i < 100; i++ { - record := &kinesis.PutRecordsRequestEntry{ - Data: make([]byte, 10000), - PartitionKey: aws.String("partition"), - } - input.Records = append(input.Records, record) - } - - req, _ := kinesis.New(session.New()).PutRecordsRequest(input) - - b.ResetTimer() - for i := 0; i < b.N; i++ { - corehandlers.ValidateParametersHandler.Fn(req) - if err := req.Error; err != nil { - b.Fatalf("validation failed: %v", err) - } - } } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go index 857311f64..7f509ca83 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go @@ -8,14 +8,8 @@ var ( // ErrNoValidProvidersFoundInChain Is returned when there are no valid // providers in the ChainProvider. // - // This has been deprecated. For verbose error messaging set - // aws.Config.CredentialsChainVerboseErrors to true - // // @readonly - ErrNoValidProvidersFoundInChain = awserr.New("NoCredentialProviders", - `no valid providers in chain. Deprecated. - For verbose messaging see aws.Config.CredentialsChainVerboseErrors`, - nil) + ErrNoValidProvidersFoundInChain = awserr.New("NoCredentialProviders", "no valid providers in chain", nil) ) // A ChainProvider will search for a provider which returns credentials @@ -42,18 +36,15 @@ var ( // creds := NewChainCredentials( // []Provider{ // &EnvProvider{}, -// &EC2RoleProvider{ -// Client: ec2metadata.New(sess), -// }, +// &EC2RoleProvider{}, // }) // // // Usage of ChainCredentials with aws.Config // svc := ec2.New(&aws.Config{Credentials: creds}) // type ChainProvider struct { - Providers []Provider - curr Provider - VerboseErrors bool + Providers []Provider + curr Provider } // NewChainCredentials returns a pointer to a new Credentials object @@ -70,23 +61,17 @@ func NewChainCredentials(providers []Provider) *Credentials { // If a provider is found it will be cached and any calls to IsExpired() // will return the expired state of the cached provider. func (c *ChainProvider) Retrieve() (Value, error) { - var errs []error for _, p := range c.Providers { - creds, err := p.Retrieve() - if err == nil { + if creds, err := p.Retrieve(); err == nil { c.curr = p return creds, nil } - errs = append(errs, err) } c.curr = nil - var err error - err = ErrNoValidProvidersFoundInChain - if c.VerboseErrors { - err = awserr.NewBatchError("NoCredentialProviders", "no valid providers in chain", errs) - } - return Value{}, err + // TODO better error reporting. maybe report error for each failed retrieve? + + return Value{}, ErrNoValidProvidersFoundInChain } // IsExpired will returned the expired state of the currently cached provider diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider_test.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider_test.go index 3b393a2ed..4fba22f29 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider_test.go @@ -7,54 +7,6 @@ import ( "github.com/stretchr/testify/assert" ) -type secondStubProvider struct { - creds Value - expired bool - err error -} - -func (s *secondStubProvider) Retrieve() (Value, error) { - s.expired = false - s.creds.ProviderName = "secondStubProvider" - return s.creds, s.err -} -func (s *secondStubProvider) IsExpired() bool { - return s.expired -} - -func TestChainProviderWithNames(t *testing.T) { - p := &ChainProvider{ - Providers: []Provider{ - &stubProvider{err: awserr.New("FirstError", "first provider error", nil)}, - &stubProvider{err: awserr.New("SecondError", "second provider error", nil)}, - &secondStubProvider{ - creds: Value{ - AccessKeyID: "AKIF", - SecretAccessKey: "NOSECRET", - SessionToken: "", - }, - }, - &stubProvider{ - creds: Value{ - AccessKeyID: "AKID", - SecretAccessKey: "SECRET", - SessionToken: "", - }, - }, - }, - } - - creds, err := p.Retrieve() - assert.Nil(t, err, "Expect no error") - assert.Equal(t, "secondStubProvider", creds.ProviderName, "Expect provider name to match") - - // Also check credentials - assert.Equal(t, "AKIF", creds.AccessKeyID, "Expect access key ID to match") - assert.Equal(t, "NOSECRET", creds.SecretAccessKey, "Expect secret access key to match") - assert.Empty(t, creds.SessionToken, "Expect session token to be empty") - -} - func TestChainProviderGet(t *testing.T) { p := &ChainProvider{ Providers: []Provider{ @@ -104,51 +56,18 @@ func TestChainProviderWithNoProvider(t *testing.T) { assert.True(t, p.IsExpired(), "Expect expired with no providers") _, err := p.Retrieve() - assert.Equal(t, - ErrNoValidProvidersFoundInChain, - err, - "Expect no providers error returned") + assert.Equal(t, ErrNoValidProvidersFoundInChain, err, "Expect no providers error returned") } func TestChainProviderWithNoValidProvider(t *testing.T) { - errs := []error{ - awserr.New("FirstError", "first provider error", nil), - awserr.New("SecondError", "second provider error", nil), - } - p := &ChainProvider{ - Providers: []Provider{ - &stubProvider{err: errs[0]}, - &stubProvider{err: errs[1]}, - }, - } - - assert.True(t, p.IsExpired(), "Expect expired with no providers") - _, err := p.Retrieve() - - assert.Equal(t, - ErrNoValidProvidersFoundInChain, - err, - "Expect no providers error returned") -} - -func TestChainProviderWithNoValidProviderWithVerboseEnabled(t *testing.T) { - errs := []error{ - awserr.New("FirstError", "first provider error", nil), - awserr.New("SecondError", "second provider error", nil), - } p := &ChainProvider{ - VerboseErrors: true, Providers: []Provider{ - &stubProvider{err: errs[0]}, - &stubProvider{err: errs[1]}, + &stubProvider{err: awserr.New("FirstError", "first provider error", nil)}, + &stubProvider{err: awserr.New("SecondError", "second provider error", nil)}, }, } assert.True(t, p.IsExpired(), "Expect expired with no providers") _, err := p.Retrieve() - - assert.Equal(t, - awserr.NewBatchError("NoCredentialProviders", "no valid providers in chain", errs), - err, - "Expect no providers error returned") + assert.Equal(t, ErrNoValidProvidersFoundInChain, err, "Expect no providers error returned") } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go index 7b8ebf5f9..2834a088a 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go @@ -53,8 +53,8 @@ import ( "time" ) -// AnonymousCredentials is an empty Credential object that can be used as -// dummy placeholder credentials for requests that do not need signed. +// Create an empty Credential object that can be used as dummy placeholder +// credentials for requests that do not need signed. // // This Credentials can be used to configure a service to not sign requests // when making service API calls. For example, when accessing public @@ -76,9 +76,6 @@ type Value struct { // AWS Session Token SessionToken string - - // Provider used to get credentials - ProviderName string } // A Provider is the interface for any component which will provide credentials diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials_test.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials_test.go index 7b79ba985..99c2b4774 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials_test.go @@ -15,7 +15,6 @@ type stubProvider struct { func (s *stubProvider) Retrieve() (Value, error) { s.expired = false - s.creds.ProviderName = "stubProvider" return s.creds, s.err } func (s *stubProvider) IsExpired() bool { @@ -61,13 +60,3 @@ func TestCredentialsExpire(t *testing.T) { stub.expired = true assert.True(t, c.IsExpired(), "Expected to be expired") } - -func TestCredentialsGetWithProviderName(t *testing.T) { - stub := &stubProvider{} - - c := NewCredentials(stub) - - creds, err := c.Get() - assert.Nil(t, err, "Expected no error") - assert.Equal(t, creds.ProviderName, "stubProvider", "Expected provider name to match") -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go index aa9d689a0..946a11720 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider.go @@ -9,14 +9,10 @@ import ( "time" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/ec2metadata" ) -// ProviderName provides a name of EC2Role provider -const ProviderName = "EC2RoleProvider" - // A EC2RoleProvider retrieves credentials from the EC2 service, and keeps track if // those credentials are expired. // @@ -26,10 +22,12 @@ const ProviderName = "EC2RoleProvider" // p := &ec2rolecreds.EC2RoleProvider{ // // Pass in a custom timeout to be used when requesting // // IAM EC2 Role credentials. -// Client: ec2metadata.New(sess, aws.Config{ -// HTTPClient: &http.Client{Timeout: 10 * time.Second}, -// }), -// +// Client: &http.Client{ +// Timeout: 10 * time.Second, +// }, +// // Use default EC2 Role metadata endpoint, Alternate endpoints can be +// // specified setting Endpoint to something else. +// Endpoint: "", // // Do not use early expiry of credentials. If a non zero value is // // specified the credentials will be expired early // ExpiryWindow: 0, @@ -37,8 +35,8 @@ const ProviderName = "EC2RoleProvider" type EC2RoleProvider struct { credentials.Expiry - // Required EC2Metadata client to use when connecting to EC2 metadata service. - Client *ec2metadata.EC2Metadata + // EC2Metadata client to use when connecting to EC2 metadata service + Client *ec2metadata.Client // ExpiryWindow will allow the credentials to trigger refreshing prior to // the credentials actually expiring. This is beneficial so race conditions @@ -52,53 +50,46 @@ type EC2RoleProvider struct { ExpiryWindow time.Duration } -// NewCredentials returns a pointer to a new Credentials object wrapping -// the EC2RoleProvider. Takes a ConfigProvider to create a EC2Metadata client. -// The ConfigProvider is satisfied by the session.Session type. -func NewCredentials(c client.ConfigProvider, options ...func(*EC2RoleProvider)) *credentials.Credentials { - p := &EC2RoleProvider{ - Client: ec2metadata.New(c), - } - - for _, option := range options { - option(p) - } - - return credentials.NewCredentials(p) -} - -// NewCredentialsWithClient returns a pointer to a new Credentials object wrapping -// the EC2RoleProvider. Takes a EC2Metadata client to use when connecting to EC2 -// metadata service. -func NewCredentialsWithClient(client *ec2metadata.EC2Metadata, options ...func(*EC2RoleProvider)) *credentials.Credentials { - p := &EC2RoleProvider{ - Client: client, - } - - for _, option := range options { - option(p) - } - - return credentials.NewCredentials(p) +// NewCredentials returns a pointer to a new Credentials object +// wrapping the EC2RoleProvider. +// +// Takes a custom http.Client which can be configured for custom handling of +// things such as timeout. +// +// Endpoint is the URL that the EC2RoleProvider will connect to when retrieving +// role and credentials. +// +// Window is the expiry window that will be subtracted from the expiry returned +// by the role credential request. This is done so that the credentials will +// expire sooner than their actual lifespan. +func NewCredentials(client *ec2metadata.Client, window time.Duration) *credentials.Credentials { + return credentials.NewCredentials(&EC2RoleProvider{ + Client: client, + ExpiryWindow: window, + }) } // Retrieve retrieves credentials from the EC2 service. // Error will be returned if the request fails, or unable to extract // the desired credentials. func (m *EC2RoleProvider) Retrieve() (credentials.Value, error) { + if m.Client == nil { + m.Client = ec2metadata.New(nil) + } + credsList, err := requestCredList(m.Client) if err != nil { - return credentials.Value{ProviderName: ProviderName}, err + return credentials.Value{}, err } if len(credsList) == 0 { - return credentials.Value{ProviderName: ProviderName}, awserr.New("EmptyEC2RoleList", "empty EC2 Role list", nil) + return credentials.Value{}, awserr.New("EmptyEC2RoleList", "empty EC2 Role list", nil) } credsName := credsList[0] roleCreds, err := requestCred(m.Client, credsName) if err != nil { - return credentials.Value{ProviderName: ProviderName}, err + return credentials.Value{}, err } m.SetExpiration(roleCreds.Expiration, m.ExpiryWindow) @@ -107,11 +98,10 @@ func (m *EC2RoleProvider) Retrieve() (credentials.Value, error) { AccessKeyID: roleCreds.AccessKeyID, SecretAccessKey: roleCreds.SecretAccessKey, SessionToken: roleCreds.Token, - ProviderName: ProviderName, }, nil } -// A ec2RoleCredRespBody provides the shape for unmarshalling credential +// A ec2RoleCredRespBody provides the shape for deserializing credential // request responses. type ec2RoleCredRespBody struct { // Success State @@ -129,10 +119,10 @@ const iamSecurityCredsPath = "/iam/security-credentials" // requestCredList requests a list of credentials from the EC2 service. // If there are no credentials, or there is an error making or receiving the request -func requestCredList(client *ec2metadata.EC2Metadata) ([]string, error) { +func requestCredList(client *ec2metadata.Client) ([]string, error) { resp, err := client.GetMetadata(iamSecurityCredsPath) if err != nil { - return nil, awserr.New("EC2RoleRequestError", "no EC2 instance role found", err) + return nil, awserr.New("EC2RoleRequestError", "failed to list EC2 Roles", err) } credsList := []string{} @@ -142,7 +132,7 @@ func requestCredList(client *ec2metadata.EC2Metadata) ([]string, error) { } if err := s.Err(); err != nil { - return nil, awserr.New("SerializationError", "failed to read EC2 instance role from metadata service", err) + return nil, awserr.New("SerializationError", "failed to read list of EC2 Roles", err) } return credsList, nil @@ -152,12 +142,12 @@ func requestCredList(client *ec2metadata.EC2Metadata) ([]string, error) { // // If the credentials cannot be found, or there is an error reading the response // and error will be returned. -func requestCred(client *ec2metadata.EC2Metadata, credsName string) (ec2RoleCredRespBody, error) { +func requestCred(client *ec2metadata.Client, credsName string) (ec2RoleCredRespBody, error) { resp, err := client.GetMetadata(path.Join(iamSecurityCredsPath, credsName)) if err != nil { return ec2RoleCredRespBody{}, awserr.New("EC2RoleRequestError", - fmt.Sprintf("failed to get %s EC2 instance role credentials", credsName), + fmt.Sprintf("failed to get %s EC2 Role credentials", credsName), err) } @@ -165,7 +155,7 @@ func requestCred(client *ec2metadata.EC2Metadata, credsName string) (ec2RoleCred if err := json.NewDecoder(strings.NewReader(resp)).Decode(&respCreds); err != nil { return ec2RoleCredRespBody{}, awserr.New("SerializationError", - fmt.Sprintf("failed to decode %s EC2 instance role credentials", credsName), + fmt.Sprintf("failed to decode %s EC2 Role credentials", credsName), err) } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider_test.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider_test.go index da3d8ed3e..cd0cbc97e 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds/ec2_role_provider_test.go @@ -13,7 +13,6 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds" "github.com/aws/aws-sdk-go/aws/ec2metadata" - "github.com/aws/aws-sdk-go/aws/session" ) const credsRespTmpl = `{ @@ -55,11 +54,11 @@ func TestEC2RoleProvider(t *testing.T) { defer server.Close() p := &ec2rolecreds.EC2RoleProvider{ - Client: ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}), + Client: ec2metadata.New(&ec2metadata.Config{Endpoint: aws.String(server.URL + "/latest")}), } creds, err := p.Retrieve() - assert.Nil(t, err, "Expect no error, %v", err) + assert.Nil(t, err, "Expect no error") assert.Equal(t, "accessKey", creds.AccessKeyID, "Expect access key ID to match") assert.Equal(t, "secret", creds.SecretAccessKey, "Expect secret access key to match") @@ -71,7 +70,7 @@ func TestEC2RoleProviderFailAssume(t *testing.T) { defer server.Close() p := &ec2rolecreds.EC2RoleProvider{ - Client: ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}), + Client: ec2metadata.New(&ec2metadata.Config{Endpoint: aws.String(server.URL + "/latest")}), } creds, err := p.Retrieve() @@ -92,7 +91,7 @@ func TestEC2RoleProviderIsExpired(t *testing.T) { defer server.Close() p := &ec2rolecreds.EC2RoleProvider{ - Client: ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}), + Client: ec2metadata.New(&ec2metadata.Config{Endpoint: aws.String(server.URL + "/latest")}), } p.CurrentTime = func() time.Time { return time.Date(2014, 12, 15, 21, 26, 0, 0, time.UTC) @@ -101,7 +100,7 @@ func TestEC2RoleProviderIsExpired(t *testing.T) { assert.True(t, p.IsExpired(), "Expect creds to be expired before retrieve.") _, err := p.Retrieve() - assert.Nil(t, err, "Expect no error, %v", err) + assert.Nil(t, err, "Expect no error") assert.False(t, p.IsExpired(), "Expect creds to not be expired after retrieve.") @@ -117,7 +116,7 @@ func TestEC2RoleProviderExpiryWindowIsExpired(t *testing.T) { defer server.Close() p := &ec2rolecreds.EC2RoleProvider{ - Client: ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}), + Client: ec2metadata.New(&ec2metadata.Config{Endpoint: aws.String(server.URL + "/latest")}), ExpiryWindow: time.Hour * 1, } p.CurrentTime = func() time.Time { @@ -127,7 +126,7 @@ func TestEC2RoleProviderExpiryWindowIsExpired(t *testing.T) { assert.True(t, p.IsExpired(), "Expect creds to be expired before retrieve.") _, err := p.Retrieve() - assert.Nil(t, err, "Expect no error, %v", err) + assert.Nil(t, err, "Expect no error") assert.False(t, p.IsExpired(), "Expect creds to not be expired after retrieve.") @@ -138,12 +137,12 @@ func TestEC2RoleProviderExpiryWindowIsExpired(t *testing.T) { assert.True(t, p.IsExpired(), "Expect creds to be expired.") } -func BenchmarkEC3RoleProvider(b *testing.B) { +func BenchmarkEC2RoleProvider(b *testing.B) { server := initTestServer("2014-12-16T01:51:37Z", false) defer server.Close() p := &ec2rolecreds.EC2RoleProvider{ - Client: ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}), + Client: ec2metadata.New(&ec2metadata.Config{Endpoint: aws.String(server.URL + "/latest")}), } _, err := p.Retrieve() if err != nil { @@ -151,9 +150,12 @@ func BenchmarkEC3RoleProvider(b *testing.B) { } b.ResetTimer() - for i := 0; i < b.N; i++ { - if _, err := p.Retrieve(); err != nil { - b.Fatal(err) + b.RunParallel(func(pb *testing.PB) { + for pb.Next() { + _, err := p.Retrieve() + if err != nil { + b.Fatal(err) + } } - } + }) } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/env_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/env_provider.go index 96655bc46..043e861d6 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/env_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/env_provider.go @@ -6,9 +6,6 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" ) -// EnvProviderName provides a name of Env provider -const EnvProviderName = "EnvProvider" - var ( // ErrAccessKeyIDNotFound is returned when the AWS Access Key ID can't be // found in the process's environment. @@ -55,11 +52,11 @@ func (e *EnvProvider) Retrieve() (Value, error) { } if id == "" { - return Value{ProviderName: EnvProviderName}, ErrAccessKeyIDNotFound + return Value{}, ErrAccessKeyIDNotFound } if secret == "" { - return Value{ProviderName: EnvProviderName}, ErrSecretAccessKeyNotFound + return Value{}, ErrSecretAccessKeyNotFound } e.retrieved = true @@ -67,7 +64,6 @@ func (e *EnvProvider) Retrieve() (Value, error) { AccessKeyID: id, SecretAccessKey: secret, SessionToken: os.Getenv("AWS_SESSION_TOKEN"), - ProviderName: EnvProviderName, }, nil } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/example.ini b/vendor/github.com/aws/aws-sdk-go/aws/credentials/example.ini index 7fc91d9d2..aa2dc506a 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/example.ini +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/example.ini @@ -6,7 +6,3 @@ aws_session_token = token [no_token] aws_access_key_id = accessKey aws_secret_access_key = secret - -[with_colon] -aws_access_key_id: accessKey -aws_secret_access_key: secret diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider.go index 7fb7cbf0d..fac6d78c4 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider.go @@ -5,14 +5,11 @@ import ( "os" "path/filepath" - "github.com/go-ini/ini" + "github.com/vaughan0/go-ini" "github.com/aws/aws-sdk-go/aws/awserr" ) -// SharedCredsProviderName provides a name of SharedCreds provider -const SharedCredsProviderName = "SharedCredentialsProvider" - var ( // ErrSharedCredentialsHomeNotFound is emitted when the user directory cannot be found. // @@ -58,12 +55,12 @@ func (p *SharedCredentialsProvider) Retrieve() (Value, error) { filename, err := p.filename() if err != nil { - return Value{ProviderName: SharedCredsProviderName}, err + return Value{}, err } creds, err := loadProfile(filename, p.profile()) if err != nil { - return Value{ProviderName: SharedCredsProviderName}, err + return Value{}, err } p.retrieved = true @@ -79,37 +76,32 @@ func (p *SharedCredentialsProvider) IsExpired() bool { // The credentials retrieved from the profile will be returned or error. Error will be // returned if it fails to read from the file, or the data is invalid. func loadProfile(filename, profile string) (Value, error) { - config, err := ini.Load(filename) - if err != nil { - return Value{ProviderName: SharedCredsProviderName}, awserr.New("SharedCredsLoad", "failed to load shared credentials file", err) - } - iniProfile, err := config.GetSection(profile) + config, err := ini.LoadFile(filename) if err != nil { - return Value{ProviderName: SharedCredsProviderName}, awserr.New("SharedCredsLoad", "failed to get profile", err) + return Value{}, awserr.New("SharedCredsLoad", "failed to load shared credentials file", err) } + iniProfile := config.Section(profile) - id, err := iniProfile.GetKey("aws_access_key_id") - if err != nil { - return Value{ProviderName: SharedCredsProviderName}, awserr.New("SharedCredsAccessKey", + id, ok := iniProfile["aws_access_key_id"] + if !ok { + return Value{}, awserr.New("SharedCredsAccessKey", fmt.Sprintf("shared credentials %s in %s did not contain aws_access_key_id", profile, filename), - err) + nil) } - secret, err := iniProfile.GetKey("aws_secret_access_key") - if err != nil { - return Value{ProviderName: SharedCredsProviderName}, awserr.New("SharedCredsSecret", + secret, ok := iniProfile["aws_secret_access_key"] + if !ok { + return Value{}, awserr.New("SharedCredsSecret", fmt.Sprintf("shared credentials %s in %s did not contain aws_secret_access_key", profile, filename), nil) } - // Default to empty string if not found - token := iniProfile.Key("aws_session_token") + token := iniProfile["aws_session_token"] return Value{ - AccessKeyID: id.String(), - SecretAccessKey: secret.String(), - SessionToken: token.String(), - ProviderName: SharedCredsProviderName, + AccessKeyID: id, + SecretAccessKey: secret, + SessionToken: token, }, nil } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider_test.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider_test.go index 6b4093a15..1d9983f2c 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider_test.go @@ -1,11 +1,9 @@ package credentials import ( + "github.com/stretchr/testify/assert" "os" - "path/filepath" "testing" - - "github.com/stretchr/testify/assert" ) func TestSharedCredentialsProvider(t *testing.T) { @@ -46,20 +44,6 @@ func TestSharedCredentialsProviderWithAWS_SHARED_CREDENTIALS_FILE(t *testing.T) assert.Equal(t, "token", creds.SessionToken, "Expect session token to match") } -func TestSharedCredentialsProviderWithAWS_SHARED_CREDENTIALS_FILEAbsPath(t *testing.T) { - os.Clearenv() - wd, err := os.Getwd() - assert.NoError(t, err) - os.Setenv("AWS_SHARED_CREDENTIALS_FILE", filepath.Join(wd, "example.ini")) - p := SharedCredentialsProvider{} - creds, err := p.Retrieve() - assert.Nil(t, err, "Expect no error") - - assert.Equal(t, "accessKey", creds.AccessKeyID, "Expect access key ID to match") - assert.Equal(t, "secret", creds.SecretAccessKey, "Expect secret access key to match") - assert.Equal(t, "token", creds.SessionToken, "Expect session token to match") -} - func TestSharedCredentialsProviderWithAWS_PROFILE(t *testing.T) { os.Clearenv() os.Setenv("AWS_PROFILE", "no_token") @@ -85,18 +69,6 @@ func TestSharedCredentialsProviderWithoutTokenFromProfile(t *testing.T) { assert.Empty(t, creds.SessionToken, "Expect no token") } -func TestSharedCredentialsProviderColonInCredFile(t *testing.T) { - os.Clearenv() - - p := SharedCredentialsProvider{Filename: "example.ini", Profile: "with_colon"} - creds, err := p.Retrieve() - assert.Nil(t, err, "Expect no error") - - assert.Equal(t, "accessKey", creds.AccessKeyID, "Expect access key ID to match") - assert.Equal(t, "secret", creds.SecretAccessKey, "Expect secret access key to match") - assert.Empty(t, creds.SessionToken, "Expect no token") -} - func BenchmarkSharedCredentialsProvider(b *testing.B) { os.Clearenv() diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go index 6f075604e..530a9ac2f 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go @@ -4,9 +4,6 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" ) -// StaticProviderName provides a name of Static provider -const StaticProviderName = "StaticProvider" - var ( // ErrStaticCredentialsEmpty is emitted when static credentials are empty. // @@ -14,7 +11,7 @@ var ( ErrStaticCredentialsEmpty = awserr.New("EmptyStaticCreds", "static credentials are empty", nil) ) -// A StaticProvider is a set of credentials which are set programmatically, +// A StaticProvider is a set of credentials which are set pragmatically, // and will never expire. type StaticProvider struct { Value @@ -33,10 +30,9 @@ func NewStaticCredentials(id, secret, token string) *Credentials { // Retrieve returns the credentials or error if the credentials are invalid. func (s *StaticProvider) Retrieve() (Value, error) { if s.AccessKeyID == "" || s.SecretAccessKey == "" { - return Value{ProviderName: StaticProviderName}, ErrStaticCredentialsEmpty + return Value{}, ErrStaticCredentialsEmpty } - s.Value.ProviderName = StaticProviderName return s.Value, nil } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go index 30c847ae2..b71a74f53 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider.go @@ -9,30 +9,40 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/service/sts" ) -// ProviderName provides a name of AssumeRole provider -const ProviderName = "AssumeRoleProvider" - // AssumeRoler represents the minimal subset of the STS client API used by this provider. type AssumeRoler interface { AssumeRole(input *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error) } -// DefaultDuration is the default amount of time in minutes that the credentials -// will be valid for. -var DefaultDuration = time.Duration(15) * time.Minute - // AssumeRoleProvider retrieves temporary credentials from the STS service, and // keeps track of their expiration time. This provider must be used explicitly, // as it is not included in the credentials chain. +// +// Example how to configure a service to use this provider: +// +// config := &aws.Config{ +// Credentials: stscreds.NewCredentials(nil, "arn-of-the-role-to-assume", 10*time.Second), +// }) +// // Use config for creating your AWS service. +// +// Example how to obtain customised credentials: +// +// provider := &stscreds.Provider{ +// // Extend the duration to 1 hour. +// Duration: time.Hour, +// // Custom role name. +// RoleSessionName: "custom-session-name", +// } +// creds := credentials.NewCredentials(provider) +// type AssumeRoleProvider struct { credentials.Expiry - // STS client to make assume role request with. + // Custom STS client. If not set the default STS client will be used. Client AssumeRoler // Role to be assumed. @@ -44,29 +54,6 @@ type AssumeRoleProvider struct { // Expiry duration of the STS credentials. Defaults to 15 minutes if not set. Duration time.Duration - // Optional ExternalID to pass along, defaults to nil if not set. - ExternalID *string - - // The policy plain text must be 2048 bytes or shorter. However, an internal - // conversion compresses it into a packed binary format with a separate limit. - // The PackedPolicySize response element indicates by percentage how close to - // the upper size limit the policy is, with 100% equaling the maximum allowed - // size. - Policy *string - - // The identification number of the MFA device that is associated with the user - // who is making the AssumeRole call. Specify this value if the trust policy - // of the role being assumed includes a condition that requires MFA authentication. - // The value is either the serial number for a hardware device (such as GAHT12345678) - // or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user). - SerialNumber *string - - // The value provided by the MFA device, if the trust policy of the role being - // assumed requires MFA (that is, if the policy includes a condition that tests - // for MFA). If the role being assumed requires MFA and if the TokenCode value - // is missing or expired, the AssumeRole call returns an "access denied" error. - TokenCode *string - // ExpiryWindow will allow the credentials to trigger refreshing prior to // the credentials actually expiring. This is beneficial so race conditions // with expiring credentials do not cause request to fail unexpectedly @@ -80,73 +67,47 @@ type AssumeRoleProvider struct { } // NewCredentials returns a pointer to a new Credentials object wrapping the -// AssumeRoleProvider. The credentials will expire every 15 minutes and the +// AssumeRoleProvider. The credentials will expire every 15 minutes and the // role will be named after a nanosecond timestamp of this operation. // -// Takes a Config provider to create the STS client. The ConfigProvider is -// satisfied by the session.Session type. -func NewCredentials(c client.ConfigProvider, roleARN string, options ...func(*AssumeRoleProvider)) *credentials.Credentials { - p := &AssumeRoleProvider{ - Client: sts.New(c), - RoleARN: roleARN, - Duration: DefaultDuration, - } - - for _, option := range options { - option(p) - } - - return credentials.NewCredentials(p) -} - -// NewCredentialsWithClient returns a pointer to a new Credentials object wrapping the -// AssumeRoleProvider. The credentials will expire every 15 minutes and the -// role will be named after a nanosecond timestamp of this operation. +// The sts and roleARN parameters are used for building the "AssumeRole" call. +// Pass nil as sts to use the default client. // -// Takes an AssumeRoler which can be satisfiede by the STS client. -func NewCredentialsWithClient(svc AssumeRoler, roleARN string, options ...func(*AssumeRoleProvider)) *credentials.Credentials { - p := &AssumeRoleProvider{ - Client: svc, - RoleARN: roleARN, - Duration: DefaultDuration, - } - - for _, option := range options { - option(p) - } - - return credentials.NewCredentials(p) +// Window is the expiry window that will be subtracted from the expiry returned +// by the role credential request. This is done so that the credentials will +// expire sooner than their actual lifespan. +func NewCredentials(client AssumeRoler, roleARN string, window time.Duration) *credentials.Credentials { + return credentials.NewCredentials(&AssumeRoleProvider{ + Client: client, + RoleARN: roleARN, + ExpiryWindow: window, + }) } // Retrieve generates a new set of temporary credentials using STS. func (p *AssumeRoleProvider) Retrieve() (credentials.Value, error) { // Apply defaults where parameters are not set. + if p.Client == nil { + p.Client = sts.New(nil) + } if p.RoleSessionName == "" { // Try to work out a role name that will hopefully end up unique. p.RoleSessionName = fmt.Sprintf("%d", time.Now().UTC().UnixNano()) } if p.Duration == 0 { // Expire as often as AWS permits. - p.Duration = DefaultDuration + p.Duration = 15 * time.Minute } - input := &sts.AssumeRoleInput{ + + roleOutput, err := p.Client.AssumeRole(&sts.AssumeRoleInput{ DurationSeconds: aws.Int64(int64(p.Duration / time.Second)), RoleArn: aws.String(p.RoleARN), RoleSessionName: aws.String(p.RoleSessionName), - ExternalId: p.ExternalID, - } - if p.Policy != nil { - input.Policy = p.Policy - } - if p.SerialNumber != nil && p.TokenCode != nil { - input.SerialNumber = p.SerialNumber - input.TokenCode = p.TokenCode - } - roleOutput, err := p.Client.AssumeRole(input) + }) if err != nil { - return credentials.Value{ProviderName: ProviderName}, err + return credentials.Value{}, err } // We will proactively generate new credentials before they expire. @@ -156,6 +117,5 @@ func (p *AssumeRoleProvider) Retrieve() (credentials.Value, error) { AccessKeyID: *roleOutput.Credentials.AccessKeyId, SecretAccessKey: *roleOutput.Credentials.SecretAccessKey, SessionToken: *roleOutput.Credentials.SessionToken, - ProviderName: ProviderName, }, nil } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go index 6bd6e9197..f5b97c005 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds/assume_role_provider_test.go @@ -48,9 +48,12 @@ func BenchmarkAssumeRoleProvider(b *testing.B) { } b.ResetTimer() - for i := 0; i < b.N; i++ { - if _, err := p.Retrieve(); err != nil { - b.Fatal(err) + b.RunParallel(func(pb *testing.PB) { + for pb.Next() { + _, err := p.Retrieve() + if err != nil { + b.Fatal(err) + } } - } + }) } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go b/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go index 12be1a5d7..2f161b57f 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go @@ -1,10 +1,3 @@ -// Package defaults is a collection of helpers to retrieve the SDK's default -// configuration and handlers. -// -// Generally this package shouldn't be used directly, but session.Session -// instead. This package is useful when you need to reset the defaults -// of a session or service client to the SDK defaults before setting -// additional parameters. package defaults import ( @@ -13,86 +6,34 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/corehandlers" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds" - "github.com/aws/aws-sdk-go/aws/ec2metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/endpoints" ) -// A Defaults provides a collection of default values for SDK clients. -type Defaults struct { - Config *aws.Config - Handlers request.Handlers -} - -// Get returns the SDK's default values with Config and handlers pre-configured. -func Get() Defaults { - cfg := Config() - handlers := Handlers() - cfg.Credentials = CredChain(cfg, handlers) - - return Defaults{ - Config: cfg, - Handlers: handlers, - } -} - -// Config returns the default configuration without credentials. -// To retrieve a config with credentials also included use -// `defaults.Get().Config` instead. -// -// Generally you shouldn't need to use this method directly, but -// is available if you need to reset the configuration of an -// existing service client or session. -func Config() *aws.Config { - return aws.NewConfig(). - WithCredentials(credentials.AnonymousCredentials). - WithRegion(os.Getenv("AWS_REGION")). - WithHTTPClient(http.DefaultClient). - WithMaxRetries(aws.UseServiceDefaultRetries). - WithLogger(aws.NewDefaultLogger()). - WithLogLevel(aws.LogOff). - WithSleepDelay(time.Sleep) -} - -// Handlers returns the default request handlers. +// DefaultChainCredentials is a Credentials which will find the first available +// credentials Value from the list of Providers. // -// Generally you shouldn't need to use this method directly, but -// is available if you need to reset the request handlers of an -// existing service client or session. -func Handlers() request.Handlers { - var handlers request.Handlers - - handlers.Validate.PushBackNamed(corehandlers.ValidateEndpointHandler) - handlers.Validate.AfterEachFn = request.HandlerListStopOnError - handlers.Build.PushBackNamed(corehandlers.SDKVersionUserAgentHandler) - handlers.Build.AfterEachFn = request.HandlerListStopOnError - handlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler) - handlers.Send.PushBackNamed(corehandlers.SendHandler) - handlers.AfterRetry.PushBackNamed(corehandlers.AfterRetryHandler) - handlers.ValidateResponse.PushBackNamed(corehandlers.ValidateResponseHandler) - - return handlers -} - -// CredChain returns the default credential chain. +// This should be used in the default case. Once the type of credentials are +// known switching to the specific Credentials will be more efficient. +var DefaultChainCredentials = credentials.NewChainCredentials( + []credentials.Provider{ + &credentials.EnvProvider{}, + &credentials.SharedCredentialsProvider{Filename: "", Profile: ""}, + &ec2rolecreds.EC2RoleProvider{ExpiryWindow: 5 * time.Minute}, + }) + +// DefaultConfig is the default all service configuration will be based off of. +// By default, all clients use this structure for initialization options unless +// a custom configuration object is passed in. // -// Generally you shouldn't need to use this method directly, but -// is available if you need to reset the credentials of an -// existing service client or session's Config. -func CredChain(cfg *aws.Config, handlers request.Handlers) *credentials.Credentials { - endpoint, signingRegion := endpoints.EndpointForRegion(ec2metadata.ServiceName, *cfg.Region, true) - - return credentials.NewCredentials(&credentials.ChainProvider{ - VerboseErrors: aws.BoolValue(cfg.CredentialsChainVerboseErrors), - Providers: []credentials.Provider{ - &credentials.EnvProvider{}, - &credentials.SharedCredentialsProvider{Filename: "", Profile: ""}, - &ec2rolecreds.EC2RoleProvider{ - Client: ec2metadata.NewClient(*cfg, handlers, endpoint, signingRegion), - ExpiryWindow: 5 * time.Minute, - }, - }}) -} +// You may modify this global structure to change all default configuration +// in the SDK. Note that configuration options are copied by value, so any +// modifications must happen before constructing a client. +var DefaultConfig = aws.NewConfig(). + WithCredentials(DefaultChainCredentials). + WithRegion(os.Getenv("AWS_REGION")). + WithHTTPClient(http.DefaultClient). + WithMaxRetries(aws.DefaultRetries). + WithLogger(aws.NewDefaultLogger()). + WithLogLevel(aws.LogOff). + WithSleepDelay(time.Sleep) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go index 669c813a0..9d784b6e6 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api.go @@ -1,20 +1,13 @@ package ec2metadata import ( - "encoding/json" - "fmt" "path" - "strings" - "time" - "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" ) -// GetMetadata uses the path provided to request information from the EC2 -// instance metdata service. The content will be returned as a string, or -// error if the request failed. -func (c *EC2Metadata) GetMetadata(p string) (string, error) { +// GetMetadata uses the path provided to request +func (c *Client) GetMetadata(p string) (string, error) { op := &request.Operation{ Name: "GetMetadata", HTTPMethod: "GET", @@ -22,75 +15,13 @@ func (c *EC2Metadata) GetMetadata(p string) (string, error) { } output := &metadataOutput{} - req := c.NewRequest(op, nil, output) + req := request.New(c.Service.ServiceInfo, c.Service.Handlers, c.Service.Retryer, op, nil, output) return output.Content, req.Send() } -// GetDynamicData uses the path provided to request information from the EC2 -// instance metadata service for dynamic data. The content will be returned -// as a string, or error if the request failed. -func (c *EC2Metadata) GetDynamicData(p string) (string, error) { - op := &request.Operation{ - Name: "GetDynamicData", - HTTPMethod: "GET", - HTTPPath: path.Join("/", "dynamic", p), - } - - output := &metadataOutput{} - req := c.NewRequest(op, nil, output) - - return output.Content, req.Send() -} - -// GetInstanceIdentityDocument retrieves an identity document describing an -// instance. Error is returned if the request fails or is unable to parse -// the response. -func (c *EC2Metadata) GetInstanceIdentityDocument() (EC2InstanceIdentityDocument, error) { - resp, err := c.GetDynamicData("instance-identity/document") - if err != nil { - return EC2InstanceIdentityDocument{}, - awserr.New("EC2MetadataRequestError", - "failed to get EC2 instance identity document", err) - } - - doc := EC2InstanceIdentityDocument{} - if err := json.NewDecoder(strings.NewReader(resp)).Decode(&doc); err != nil { - return EC2InstanceIdentityDocument{}, - awserr.New("SerializationError", - "failed to decode EC2 instance identity document", err) - } - - return doc, nil -} - -// IAMInfo retrieves IAM info from the metadata API -func (c *EC2Metadata) IAMInfo() (EC2IAMInfo, error) { - resp, err := c.GetMetadata("iam/info") - if err != nil { - return EC2IAMInfo{}, - awserr.New("EC2MetadataRequestError", - "failed to get EC2 IAM info", err) - } - - info := EC2IAMInfo{} - if err := json.NewDecoder(strings.NewReader(resp)).Decode(&info); err != nil { - return EC2IAMInfo{}, - awserr.New("SerializationError", - "failed to decode EC2 IAM info", err) - } - - if info.Code != "Success" { - errMsg := fmt.Sprintf("failed to get EC2 IAM Info (%s)", info.Code) - return EC2IAMInfo{}, - awserr.New("EC2MetadataError", errMsg, nil) - } - - return info, nil -} - // Region returns the region the instance is running in. -func (c *EC2Metadata) Region() (string, error) { +func (c *Client) Region() (string, error) { resp, err := c.GetMetadata("placement/availability-zone") if err != nil { return "", err @@ -103,38 +34,10 @@ func (c *EC2Metadata) Region() (string, error) { // Available returns if the application has access to the EC2 Metadata service. // Can be used to determine if application is running within an EC2 Instance and // the metadata service is available. -func (c *EC2Metadata) Available() bool { +func (c *Client) Available() bool { if _, err := c.GetMetadata("instance-id"); err != nil { return false } return true } - -// An EC2IAMInfo provides the shape for unmarshalling -// an IAM info from the metadata API -type EC2IAMInfo struct { - Code string - LastUpdated time.Time - InstanceProfileArn string - InstanceProfileID string -} - -// An EC2InstanceIdentityDocument provides the shape for unmarshalling -// an instance identity document -type EC2InstanceIdentityDocument struct { - DevpayProductCodes []string `json:"devpayProductCodes"` - AvailabilityZone string `json:"availabilityZone"` - PrivateIP string `json:"privateIp"` - Version string `json:"version"` - Region string `json:"region"` - InstanceID string `json:"instanceId"` - BillingProducts []string `json:"billingProducts"` - InstanceType string `json:"instanceType"` - AccountID string `json:"accountId"` - PendingTime time.Time `json:"pendingTime"` - ImageID string `json:"imageId"` - KernelID string `json:"kernelId"` - RamdiskID string `json:"ramdiskId"` - Architecture string `json:"architecture"` -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api_test.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api_test.go index 37b74fb0c..61ab62a53 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/api_test.go @@ -6,7 +6,6 @@ import ( "net/http" "net/http/httptest" "path" - "strings" "testing" "github.com/stretchr/testify/assert" @@ -15,40 +14,8 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/ec2metadata" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" ) -const instanceIdentityDocument = `{ - "devpayProductCodes" : null, - "availabilityZone" : "us-east-1d", - "privateIp" : "10.158.112.84", - "version" : "2010-08-31", - "region" : "us-east-1", - "instanceId" : "i-1234567890abcdef0", - "billingProducts" : null, - "instanceType" : "t1.micro", - "accountId" : "123456789012", - "pendingTime" : "2015-11-19T16:32:11Z", - "imageId" : "ami-5fb8c835", - "kernelId" : "aki-919dcaf8", - "ramdiskId" : null, - "architecture" : "x86_64" -}` - -const validIamInfo = `{ - "Code" : "Success", - "LastUpdated" : "2016-03-17T12:27:32Z", - "InstanceProfileArn" : "arn:aws:iam::123456789012:instance-profile/my-instance-profile", - "InstanceProfileId" : "AIPAABCDEFGHIJKLMN123" -}` - -const unsuccessfulIamInfo = `{ - "Code" : "Failed", - "LastUpdated" : "2016-03-17T12:27:32Z", - "InstanceProfileArn" : "arn:aws:iam::123456789012:instance-profile/my-instance-profile", - "InstanceProfileId" : "AIPAABCDEFGHIJKLMN123" -}` - func initTestServer(path string, resp string) *httptest.Server { return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.RequestURI != path { @@ -61,15 +28,15 @@ func initTestServer(path string, resp string) *httptest.Server { } func TestEndpoint(t *testing.T) { - c := ec2metadata.New(session.New()) + c := ec2metadata.New(&ec2metadata.Config{}) op := &request.Operation{ Name: "GetMetadata", HTTPMethod: "GET", HTTPPath: path.Join("/", "meta-data", "testpath"), } - req := c.NewRequest(op, nil, nil) - assert.Equal(t, "http://169.254.169.254/latest", req.ClientInfo.Endpoint) + req := c.Service.NewRequest(op, nil, nil) + assert.Equal(t, "http://169.254.169.254/latest", req.Service.Endpoint) assert.Equal(t, "http://169.254.169.254/latest/meta-data/testpath", req.HTTPRequest.URL.String()) } @@ -79,7 +46,7 @@ func TestGetMetadata(t *testing.T) { "success", // real response includes suffix ) defer server.Close() - c := ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}) + c := ec2metadata.New(&ec2metadata.Config{Endpoint: aws.String(server.URL + "/latest")}) resp, err := c.GetMetadata("some/path") @@ -93,7 +60,7 @@ func TestGetRegion(t *testing.T) { "us-west-2a", // real response includes suffix ) defer server.Close() - c := ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}) + c := ec2metadata.New(&ec2metadata.Config{Endpoint: aws.String(server.URL + "/latest")}) region, err := c.Region() @@ -107,45 +74,15 @@ func TestMetadataAvailable(t *testing.T) { "instance-id", ) defer server.Close() - c := ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}) + c := ec2metadata.New(&ec2metadata.Config{Endpoint: aws.String(server.URL + "/latest")}) available := c.Available() assert.True(t, available) } -func TestMetadataIAMInfo_success(t *testing.T) { - server := initTestServer( - "/latest/meta-data/iam/info", - validIamInfo, - ) - defer server.Close() - c := ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}) - - iamInfo, err := c.IAMInfo() - assert.NoError(t, err) - assert.Equal(t, "Success", iamInfo.Code) - assert.Equal(t, "arn:aws:iam::123456789012:instance-profile/my-instance-profile", iamInfo.InstanceProfileArn) - assert.Equal(t, "AIPAABCDEFGHIJKLMN123", iamInfo.InstanceProfileID) -} - -func TestMetadataIAMInfo_failure(t *testing.T) { - server := initTestServer( - "/latest/meta-data/iam/info", - unsuccessfulIamInfo, - ) - defer server.Close() - c := ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}) - - iamInfo, err := c.IAMInfo() - assert.NotNil(t, err) - assert.Equal(t, "", iamInfo.Code) - assert.Equal(t, "", iamInfo.InstanceProfileArn) - assert.Equal(t, "", iamInfo.InstanceProfileID) -} - func TestMetadataNotAvailable(t *testing.T) { - c := ec2metadata.New(session.New()) + c := ec2metadata.New(nil) c.Handlers.Send.Clear() c.Handlers.Send.PushBack(func(r *request.Request) { r.HTTPResponse = &http.Response{ @@ -161,35 +98,3 @@ func TestMetadataNotAvailable(t *testing.T) { assert.False(t, available) } - -func TestMetadataErrorResponse(t *testing.T) { - c := ec2metadata.New(session.New()) - c.Handlers.Send.Clear() - c.Handlers.Send.PushBack(func(r *request.Request) { - r.HTTPResponse = &http.Response{ - StatusCode: http.StatusBadRequest, - Status: http.StatusText(http.StatusBadRequest), - Body: ioutil.NopCloser(strings.NewReader("error message text")), - } - r.Retryable = aws.Bool(false) // network errors are retryable - }) - - data, err := c.GetMetadata("uri/path") - assert.Empty(t, data) - assert.Contains(t, err.Error(), "error message text") -} - -func TestEC2RoleProviderInstanceIdentity(t *testing.T) { - server := initTestServer( - "/latest/dynamic/instance-identity/document", - instanceIdentityDocument, - ) - defer server.Close() - c := ec2metadata.New(session.New(), &aws.Config{Endpoint: aws.String(server.URL + "/latest")}) - - doc, err := c.GetInstanceIdentityDocument() - assert.Nil(t, err, "Expect no error, %v", err) - assert.Equal(t, doc.AccountID, "123456789012") - assert.Equal(t, doc.AvailabilityZone, "us-east-1d") - assert.Equal(t, doc.Region, "us-east-1") -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go index 5b4379dbd..d230df6f9 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go @@ -1,90 +1,106 @@ -// Package ec2metadata provides the client for making API calls to the -// EC2 Metadata service. package ec2metadata import ( - "bytes" - "errors" - "io" + "io/ioutil" "net/http" - "time" "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/client/metadata" + "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" ) -// ServiceName is the name of the service. -const ServiceName = "ec2metadata" +// DefaultRetries states the default number of times the service client will +// attempt to retry a failed request before failing. +const DefaultRetries = 3 + +// A Config provides the configuration for the EC2 Metadata service. +type Config struct { + // An optional endpoint URL (hostname only or fully qualified URI) + // that overrides the default service endpoint for a client. Set this + // to nil, or `""` to use the default service endpoint. + Endpoint *string + + // The HTTP client to use when sending requests. Defaults to + // `http.DefaultClient`. + HTTPClient *http.Client + + // An integer value representing the logging level. The default log level + // is zero (LogOff), which represents no logging. To enable logging set + // to a LogLevel Value. + Logger aws.Logger + + // The logger writer interface to write logging messages to. Defaults to + // standard out. + LogLevel *aws.LogLevelType + + // The maximum number of times that a request will be retried for failures. + // Defaults to DefaultRetries for the number of retries to be performed + // per request. + MaxRetries *int +} -// A EC2Metadata is an EC2 Metadata service Client. -type EC2Metadata struct { - *client.Client +// A Client is an EC2 Metadata service Client. +type Client struct { + *service.Service } -// New creates a new instance of the EC2Metadata client with a session. -// This client is safe to use across multiple goroutines. -// +// New creates a new instance of the EC2 Metadata service client. // -// Example: -// // Create a EC2Metadata client from just a session. -// svc := ec2metadata.New(mySession) +// In the general use case the configuration for this service client should not +// be needed and `nil` can be provided. Configuration is only needed if the +// `ec2metadata.Config` defaults need to be overridden. Eg. Setting LogLevel. // -// // Create a EC2Metadata client with additional configuration -// svc := ec2metadata.New(mySession, aws.NewConfig().WithLogLevel(aws.LogDebugHTTPBody)) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *EC2Metadata { - c := p.ClientConfig(ServiceName, cfgs...) - return NewClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) +// @note This configuration will NOT be merged with the default AWS service +// client configuration `defaults.DefaultConfig`. Due to circular dependencies +// with the defaults package and credentials EC2 Role Provider. +func New(config *Config) *Client { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: copyConfig(config), + ServiceName: "Client", + Endpoint: "http://169.254.169.254/latest", + APIVersion: "latest", + }, + } + service.Initialize() + service.Handlers.Unmarshal.PushBack(unmarshalHandler) + service.Handlers.UnmarshalError.PushBack(unmarshalError) + service.Handlers.Validate.Clear() + service.Handlers.Validate.PushBack(validateEndpointHandler) + + return &Client{service} } -// NewClient returns a new EC2Metadata client. Should be used to create -// a client when not using a session. Generally using just New with a session -// is preferred. -// -// If an unmodified HTTP client is provided from the stdlib default, or no client -// the EC2RoleProvider's EC2Metadata HTTP client's timeout will be shortened. -// To disable this set Config.EC2MetadataDisableTimeoutOverride to false. Enabled by default. -func NewClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string, opts ...func(*client.Client)) *EC2Metadata { - if !aws.BoolValue(cfg.EC2MetadataDisableTimeoutOverride) && httpClientZero(cfg.HTTPClient) { - // If the http client is unmodified and this feature is not disabled - // set custom timeouts for EC2Metadata requests. - cfg.HTTPClient = &http.Client{ - // use a shorter timeout than default because the metadata - // service is local if it is running, and to fail faster - // if not running on an ec2 instance. - Timeout: 5 * time.Second, - } +func copyConfig(config *Config) *aws.Config { + if config == nil { + config = &Config{} } - - svc := &EC2Metadata{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - Endpoint: endpoint, - APIVersion: "latest", - }, - handlers, - ), + c := &aws.Config{ + Credentials: credentials.AnonymousCredentials, + Endpoint: config.Endpoint, + HTTPClient: config.HTTPClient, + Logger: config.Logger, + LogLevel: config.LogLevel, + MaxRetries: config.MaxRetries, } - svc.Handlers.Unmarshal.PushBack(unmarshalHandler) - svc.Handlers.UnmarshalError.PushBack(unmarshalError) - svc.Handlers.Validate.Clear() - svc.Handlers.Validate.PushBack(validateEndpointHandler) - - // Add additional options to the service config - for _, option := range opts { - option(svc.Client) + if c.HTTPClient == nil { + c.HTTPClient = http.DefaultClient + } + if c.Logger == nil { + c.Logger = aws.NewDefaultLogger() + } + if c.LogLevel == nil { + c.LogLevel = aws.LogLevel(aws.LogOff) + } + if c.MaxRetries == nil { + c.MaxRetries = aws.Int(DefaultRetries) } - return svc -} - -func httpClientZero(c *http.Client) bool { - return c == nil || (c.Transport == nil && c.CheckRedirect == nil && c.Jar == nil && c.Timeout == 0) + return c } type metadataOutput struct { @@ -93,32 +109,27 @@ type metadataOutput struct { func unmarshalHandler(r *request.Request) { defer r.HTTPResponse.Body.Close() - b := &bytes.Buffer{} - if _, err := io.Copy(b, r.HTTPResponse.Body); err != nil { + b, err := ioutil.ReadAll(r.HTTPResponse.Body) + if err != nil { r.Error = awserr.New("SerializationError", "unable to unmarshal EC2 metadata respose", err) - return } - if data, ok := r.Data.(*metadataOutput); ok { - data.Content = b.String() - } + data := r.Data.(*metadataOutput) + data.Content = string(b) } func unmarshalError(r *request.Request) { defer r.HTTPResponse.Body.Close() - b := &bytes.Buffer{} - if _, err := io.Copy(b, r.HTTPResponse.Body); err != nil { + _, err := ioutil.ReadAll(r.HTTPResponse.Body) + if err != nil { r.Error = awserr.New("SerializationError", "unable to unmarshal EC2 metadata error respose", err) - return } - // Response body format is not consistent between metadata endpoints. - // Grab the error message as a string and include that as the source error - r.Error = awserr.New("EC2MetadataError", "failed to make EC2Metadata request", errors.New(b.String())) + // TODO extract the error... } func validateEndpointHandler(r *request.Request) { - if r.ClientInfo.Endpoint == "" { + if r.Service.Endpoint == "" { r.Error = aws.ErrMissingEndpoint } } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service_test.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service_test.go deleted file mode 100644 index d10ecb303..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service_test.go +++ /dev/null @@ -1,79 +0,0 @@ -package ec2metadata_test - -import ( - "net/http" - "net/http/httptest" - "sync" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/ec2metadata" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/stretchr/testify/assert" -) - -func TestClientOverrideDefaultHTTPClientTimeout(t *testing.T) { - svc := ec2metadata.New(session.New()) - - assert.NotEqual(t, http.DefaultClient, svc.Config.HTTPClient) - assert.Equal(t, 5*time.Second, svc.Config.HTTPClient.Timeout) -} - -func TestClientNotOverrideDefaultHTTPClientTimeout(t *testing.T) { - origClient := *http.DefaultClient - http.DefaultClient.Transport = &http.Transport{} - defer func() { - http.DefaultClient = &origClient - }() - - svc := ec2metadata.New(session.New()) - - assert.Equal(t, http.DefaultClient, svc.Config.HTTPClient) - - tr, ok := svc.Config.HTTPClient.Transport.(*http.Transport) - assert.True(t, ok) - assert.NotNil(t, tr) - assert.Nil(t, tr.Dial) -} - -func TestClientDisableOverrideDefaultHTTPClientTimeout(t *testing.T) { - svc := ec2metadata.New(session.New(aws.NewConfig().WithEC2MetadataDisableTimeoutOverride(true))) - - assert.Equal(t, http.DefaultClient, svc.Config.HTTPClient) -} - -func TestClientOverrideDefaultHTTPClientTimeoutRace(t *testing.T) { - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.Write([]byte("us-east-1a")) - })) - - cfg := aws.NewConfig().WithEndpoint(server.URL) - runEC2MetadataClients(t, cfg, 100) -} - -func TestClientOverrideDefaultHTTPClientTimeoutRaceWithTransport(t *testing.T) { - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.Write([]byte("us-east-1a")) - })) - - cfg := aws.NewConfig().WithEndpoint(server.URL).WithHTTPClient(&http.Client{ - Transport: http.DefaultTransport, - }) - - runEC2MetadataClients(t, cfg, 100) -} - -func runEC2MetadataClients(t *testing.T, cfg *aws.Config, atOnce int) { - var wg sync.WaitGroup - wg.Add(atOnce) - for i := 0; i < atOnce; i++ { - go func() { - svc := ec2metadata.New(session.New(), cfg) - _, err := svc.Region() - assert.NoError(t, err) - wg.Done() - }() - } - wg.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/errors.go b/vendor/github.com/aws/aws-sdk-go/aws/errors.go index 576636168..db2f481b0 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/errors.go @@ -7,11 +7,11 @@ var ( // not found. // // @readonly - ErrMissingRegion = awserr.New("MissingRegion", "could not find region configuration", nil) + ErrMissingRegion error = awserr.New("MissingRegion", "could not find region configuration", nil) // ErrMissingEndpoint is an error that is returned if an endpoint cannot be // resolved for a service. // // @readonly - ErrMissingEndpoint = awserr.New("MissingEndpoint", "'Endpoint' configuration is required for this service", nil) + ErrMissingEndpoint error = awserr.New("MissingEndpoint", "'Endpoint' configuration is required for this service", nil) ) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/logger.go b/vendor/github.com/aws/aws-sdk-go/aws/logger.go index db87188e2..f53694873 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/logger.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/logger.go @@ -79,20 +79,6 @@ type Logger interface { Log(...interface{}) } -// A LoggerFunc is a convenience type to convert a function taking a variadic -// list of arguments and wrap it so the Logger interface can be used. -// -// Example: -// s3.New(sess, &aws.Config{Logger: aws.LoggerFunc(func(args ...interface{}) { -// fmt.Fprintln(os.Stdout, args...) -// })}) -type LoggerFunc func(...interface{}) - -// Log calls the wrapped function with the arguments provided -func (f LoggerFunc) Log(args ...interface{}) { - f(args...) -} - // NewDefaultLogger returns a Logger which will write log messages to stdout, and // use same formatting runes as the stdlib log.Logger func NewDefaultLogger() Logger { diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go b/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go index 5279c19c0..85bc122e7 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go @@ -1,10 +1,5 @@ package request -import ( - "fmt" - "strings" -) - // A Handlers provides a collection of request handlers for various // stages of handling requests. type Handlers struct { @@ -50,28 +45,9 @@ func (h *Handlers) Clear() { h.AfterRetry.Clear() } -// A HandlerListRunItem represents an entry in the HandlerList which -// is being run. -type HandlerListRunItem struct { - Index int - Handler NamedHandler - Request *Request -} - // A HandlerList manages zero or more handlers in a list. type HandlerList struct { list []NamedHandler - - // Called after each request handler in the list is called. If set - // and the func returns true the HandlerList will continue to iterate - // over the request handlers. If false is returned the HandlerList - // will stop iterating. - // - // Should be used if extra logic to be performed between each handler - // in the list. This can be used to terminate a list's iteration - // based on a condition such as error like, HandlerListStopOnError. - // Or for logging like HandlerListLogItem. - AfterEachFn func(item HandlerListRunItem) bool } // A NamedHandler is a struct that contains a name and function callback. @@ -82,9 +58,7 @@ type NamedHandler struct { // copy creates a copy of the handler list. func (l *HandlerList) copy() HandlerList { - n := HandlerList{ - AfterEachFn: l.AfterEachFn, - } + var n HandlerList n.list = append([]NamedHandler{}, l.list...) return n } @@ -132,56 +106,7 @@ func (l *HandlerList) Remove(n NamedHandler) { // Run executes all handlers in the list with a given request object. func (l *HandlerList) Run(r *Request) { - for i, h := range l.list { - h.Fn(r) - item := HandlerListRunItem{ - Index: i, Handler: h, Request: r, - } - if l.AfterEachFn != nil && !l.AfterEachFn(item) { - return - } - } -} - -// HandlerListLogItem logs the request handler and the state of the -// request's Error value. Always returns true to continue iterating -// request handlers in a HandlerList. -func HandlerListLogItem(item HandlerListRunItem) bool { - if item.Request.Config.Logger == nil { - return true - } - item.Request.Config.Logger.Log("DEBUG: RequestHandler", - item.Index, item.Handler.Name, item.Request.Error) - - return true -} - -// HandlerListStopOnError returns false to stop the HandlerList iterating -// over request handlers if Request.Error is not nil. True otherwise -// to continue iterating. -func HandlerListStopOnError(item HandlerListRunItem) bool { - return item.Request.Error == nil -} - -// MakeAddToUserAgentHandler will add the name/version pair to the User-Agent request -// header. If the extra parameters are provided they will be added as metadata to the -// name/version pair resulting in the following format. -// "name/version (extra0; extra1; ...)" -// The user agent part will be concatenated with this current request's user agent string. -func MakeAddToUserAgentHandler(name, version string, extra ...string) func(*Request) { - ua := fmt.Sprintf("%s/%s", name, version) - if len(extra) > 0 { - ua += fmt.Sprintf(" (%s)", strings.Join(extra, "; ")) - } - return func(r *Request) { - AddToUserAgent(r, ua) - } -} - -// MakeAddToUserAgentFreeFormHandler adds the input to the User-Agent request header. -// The input string will be concatenated with the current request's user agent string. -func MakeAddToUserAgentFreeFormHandler(s string) func(*Request) { - return func(r *Request) { - AddToUserAgent(r, s) + for _, f := range l.list { + f.Fn(r) } } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/handlers_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/handlers_test.go index f2062c3e0..2ff05a815 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/handlers_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/handlers_test.go @@ -35,8 +35,8 @@ func TestMultipleHandlers(t *testing.T) { func TestNamedHandlers(t *testing.T) { l := request.HandlerList{} - named := request.NamedHandler{Name: "Name", Fn: func(r *request.Request) {}} - named2 := request.NamedHandler{Name: "NotName", Fn: func(r *request.Request) {}} + named := request.NamedHandler{"Name", func(r *request.Request) {}} + named2 := request.NamedHandler{"NotName", func(r *request.Request) {}} l.PushBackNamed(named) l.PushBackNamed(named) l.PushBackNamed(named2) @@ -45,43 +45,3 @@ func TestNamedHandlers(t *testing.T) { l.Remove(named) assert.Equal(t, 2, l.Len()) } - -func TestLoggedHandlers(t *testing.T) { - expectedHandlers := []string{"name1", "name2"} - l := request.HandlerList{} - loggedHandlers := []string{} - l.AfterEachFn = request.HandlerListLogItem - cfg := aws.Config{Logger: aws.LoggerFunc(func(args ...interface{}) { - loggedHandlers = append(loggedHandlers, args[2].(string)) - })} - - named1 := request.NamedHandler{Name: "name1", Fn: func(r *request.Request) {}} - named2 := request.NamedHandler{Name: "name2", Fn: func(r *request.Request) {}} - l.PushBackNamed(named1) - l.PushBackNamed(named2) - l.Run(&request.Request{Config: cfg}) - - assert.Equal(t, expectedHandlers, loggedHandlers) -} - -func TestStopHandlers(t *testing.T) { - l := request.HandlerList{} - stopAt := 1 - l.AfterEachFn = func(item request.HandlerListRunItem) bool { - return item.Index != stopAt - } - - called := 0 - l.PushBackNamed(request.NamedHandler{Name: "name1", Fn: func(r *request.Request) { - called++ - }}) - l.PushBackNamed(request.NamedHandler{Name: "name2", Fn: func(r *request.Request) { - called++ - }}) - l.PushBackNamed(request.NamedHandler{Name: "name3", Fn: func(r *request.Request) { - assert.Fail(t, "thrid handler should not be called") - }}) - l.Run(&request.Request{}) - - assert.Equal(t, 2, called, "Expect only two handlers to be called") -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request.go b/vendor/github.com/aws/aws-sdk-go/aws/request/http_request.go deleted file mode 100644 index a4087f20e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request.go +++ /dev/null @@ -1,33 +0,0 @@ -// +build go1.5 - -package request - -import ( - "io" - "net/http" - "net/url" -) - -func copyHTTPRequest(r *http.Request, body io.ReadCloser) *http.Request { - req := &http.Request{ - URL: &url.URL{}, - Header: http.Header{}, - Close: r.Close, - Body: body, - Host: r.Host, - Method: r.Method, - Proto: r.Proto, - ContentLength: r.ContentLength, - // Cancel will be deprecated in 1.7 and will be replaced with Context - Cancel: r.Cancel, - } - - *req.URL = *r.URL - for k, v := range r.Header { - for _, vv := range v { - req.Header.Add(k, vv) - } - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_1_4.go b/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_1_4.go deleted file mode 100644 index 75da021ef..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_1_4.go +++ /dev/null @@ -1,31 +0,0 @@ -// +build !go1.5 - -package request - -import ( - "io" - "net/http" - "net/url" -) - -func copyHTTPRequest(r *http.Request, body io.ReadCloser) *http.Request { - req := &http.Request{ - URL: &url.URL{}, - Header: http.Header{}, - Close: r.Close, - Body: body, - Host: r.Host, - Method: r.Method, - Proto: r.Proto, - ContentLength: r.ContentLength, - } - - *req.URL = *r.URL - for k, v := range r.Header { - for _, vv := range v { - req.Header.Add(k, vv) - } - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_copy_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_copy_test.go deleted file mode 100644 index 4a4f8550b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_copy_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package request - -import ( - "bytes" - "io/ioutil" - "net/http" - "net/url" - "sync" - "testing" -) - -func TestRequestCopyRace(t *testing.T) { - origReq := &http.Request{URL: &url.URL{}, Header: http.Header{}} - origReq.Header.Set("Header", "OrigValue") - - var wg sync.WaitGroup - for i := 0; i < 100; i++ { - wg.Add(1) - go func() { - req := copyHTTPRequest(origReq, ioutil.NopCloser(&bytes.Buffer{})) - req.Header.Set("Header", "Value") - go func() { - req2 := copyHTTPRequest(req, ioutil.NopCloser(&bytes.Buffer{})) - req2.Header.Add("Header", "Value2") - }() - _ = req.Header.Get("Header") - wg.Done() - }() - _ = origReq.Header.Get("Header") - } - origReq.Header.Get("Header") - - wg.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_retry_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_retry_test.go deleted file mode 100644 index 7e5e68c76..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/http_request_retry_test.go +++ /dev/null @@ -1,37 +0,0 @@ -// +build go1.5 - -package request_test - -import ( - "errors" - "strings" - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/stretchr/testify/assert" -) - -func TestRequestCancelRetry(t *testing.T) { - c := make(chan struct{}) - - reqNum := 0 - s := awstesting.NewMockClient(aws.NewConfig().WithMaxRetries(10)) - s.Handlers.Validate.Clear() - s.Handlers.Unmarshal.Clear() - s.Handlers.UnmarshalMeta.Clear() - s.Handlers.UnmarshalError.Clear() - s.Handlers.Send.PushFront(func(r *request.Request) { - reqNum++ - r.Error = errors.New("net/http: canceled") - }) - out := &testData{} - r := s.NewRequest(&request.Operation{Name: "Operation"}, nil, out) - r.HTTPRequest.Cancel = c - close(c) - - err := r.Send() - assert.True(t, strings.Contains(err.Error(), "canceled")) - assert.Equal(t, 1, reqNum) -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader.go b/vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader.go deleted file mode 100644 index da6396d2d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader.go +++ /dev/null @@ -1,49 +0,0 @@ -package request - -import ( - "io" - "sync" -) - -// offsetReader is a thread-safe io.ReadCloser to prevent racing -// with retrying requests -type offsetReader struct { - buf io.ReadSeeker - lock sync.RWMutex - closed bool -} - -func newOffsetReader(buf io.ReadSeeker, offset int64) *offsetReader { - reader := &offsetReader{} - buf.Seek(offset, 0) - - reader.buf = buf - return reader -} - -// Close is a thread-safe close. Uses the write lock. -func (o *offsetReader) Close() error { - o.lock.Lock() - defer o.lock.Unlock() - o.closed = true - return nil -} - -// Read is a thread-safe read using a read lock. -func (o *offsetReader) Read(p []byte) (int, error) { - o.lock.RLock() - defer o.lock.RUnlock() - - if o.closed { - return 0, io.EOF - } - - return o.buf.Read(p) -} - -// CloseAndCopy will return a new offsetReader with a copy of the old buffer -// and close the old buffer. -func (o *offsetReader) CloseAndCopy(offset int64) *offsetReader { - o.Close() - return newOffsetReader(o.buf, offset) -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader_test.go deleted file mode 100644 index 8472258c2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/offset_reader_test.go +++ /dev/null @@ -1,122 +0,0 @@ -package request - -import ( - "bytes" - "io" - "math/rand" - "sync" - "testing" - "time" - - "github.com/stretchr/testify/assert" -) - -func TestOffsetReaderRead(t *testing.T) { - buf := []byte("testData") - reader := &offsetReader{buf: bytes.NewReader(buf)} - - tempBuf := make([]byte, len(buf)) - - n, err := reader.Read(tempBuf) - - assert.Equal(t, n, len(buf)) - assert.Nil(t, err) - assert.Equal(t, buf, tempBuf) -} - -func TestOffsetReaderClose(t *testing.T) { - buf := []byte("testData") - reader := &offsetReader{buf: bytes.NewReader(buf)} - - err := reader.Close() - assert.Nil(t, err) - - tempBuf := make([]byte, len(buf)) - n, err := reader.Read(tempBuf) - assert.Equal(t, n, 0) - assert.Equal(t, err, io.EOF) -} - -func TestOffsetReaderCloseAndCopy(t *testing.T) { - buf := []byte("testData") - tempBuf := make([]byte, len(buf)) - reader := &offsetReader{buf: bytes.NewReader(buf)} - - newReader := reader.CloseAndCopy(0) - - n, err := reader.Read(tempBuf) - assert.Equal(t, n, 0) - assert.Equal(t, err, io.EOF) - - n, err = newReader.Read(tempBuf) - assert.Equal(t, n, len(buf)) - assert.Nil(t, err) - assert.Equal(t, buf, tempBuf) -} - -func TestOffsetReaderCloseAndCopyOffset(t *testing.T) { - buf := []byte("testData") - tempBuf := make([]byte, len(buf)) - reader := &offsetReader{buf: bytes.NewReader(buf)} - - newReader := reader.CloseAndCopy(4) - n, err := newReader.Read(tempBuf) - assert.Equal(t, n, len(buf)-4) - assert.Nil(t, err) - - expected := []byte{'D', 'a', 't', 'a', 0, 0, 0, 0} - assert.Equal(t, expected, tempBuf) -} - -func TestOffsetReaderRace(t *testing.T) { - wg := sync.WaitGroup{} - - f := func(reader *offsetReader) { - defer wg.Done() - var err error - buf := make([]byte, 1) - _, err = reader.Read(buf) - for err != io.EOF { - _, err = reader.Read(buf) - } - - } - - closeFn := func(reader *offsetReader) { - defer wg.Done() - time.Sleep(time.Duration(rand.Intn(20)+1) * time.Millisecond) - reader.Close() - } - for i := 0; i < 50; i++ { - reader := &offsetReader{buf: bytes.NewReader(make([]byte, 1024*1024))} - wg.Add(1) - go f(reader) - wg.Add(1) - go closeFn(reader) - } - wg.Wait() -} - -func BenchmarkOffsetReader(b *testing.B) { - bufSize := 1024 * 1024 * 100 - buf := make([]byte, bufSize) - reader := &offsetReader{buf: bytes.NewReader(buf)} - - tempBuf := make([]byte, 1024) - - for i := 0; i < b.N; i++ { - reader.Read(tempBuf) - } -} - -func BenchmarkBytesReader(b *testing.B) { - bufSize := 1024 * 1024 * 100 - buf := make([]byte, bufSize) - reader := bytes.NewReader(buf) - - tempBuf := make([]byte, 1024) - - for i := 0; i < b.N; i++ { - reader.Read(tempBuf) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request.go index 711b90c9f..70c28b883 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/request.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request.go @@ -12,33 +12,29 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" ) // A Request is the service request to be made. type Request struct { - Config aws.Config - ClientInfo metadata.ClientInfo - Handlers Handlers - Retryer - Time time.Time - ExpireTime time.Duration - Operation *Operation - HTTPRequest *http.Request - HTTPResponse *http.Response - Body io.ReadSeeker - BodyStart int64 // offset from beginning of Body that the request body starts - Params interface{} - Error error - Data interface{} - RequestID string - RetryCount int - Retryable *bool - RetryDelay time.Duration - NotHoist bool - SignedHeaderVals http.Header + Service serviceinfo.ServiceInfo + Handlers Handlers + Time time.Time + ExpireTime time.Duration + Operation *Operation + HTTPRequest *http.Request + HTTPResponse *http.Response + Body io.ReadSeeker + BodyStart int64 // offset from beginning of Body that the request body starts + Params interface{} + Error error + Data interface{} + RequestID string + RetryCount uint + Retryable *bool + RetryDelay time.Duration built bool } @@ -65,9 +61,7 @@ type Paginator struct { // Params is any value of input parameters to be the request payload. // Data is pointer value to an object which the request's response // payload will be deserialized to. -func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers, - retryer Retryer, operation *Operation, params interface{}, data interface{}) *Request { - +func New(service serviceinfo.ServiceInfo, handlers Handlers, retryer Retryer, operation *Operation, params interface{}, data interface{}) *Request { method := operation.HTTPMethod if method == "" { method = "POST" @@ -78,27 +72,19 @@ func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers, } httpReq, _ := http.NewRequest(method, "", nil) - - var err error - httpReq.URL, err = url.Parse(clientInfo.Endpoint + p) - if err != nil { - httpReq.URL = &url.URL{} - err = awserr.New("InvalidEndpointURL", "invalid endpoint uri", err) - } + httpReq.URL, _ = url.Parse(service.Endpoint + p) r := &Request{ - Config: cfg, - ClientInfo: clientInfo, - Handlers: handlers.Copy(), - Retryer: retryer, + Service: service, + Handlers: handlers.Copy(), Time: time.Now(), ExpireTime: 0, Operation: operation, HTTPRequest: httpReq, Body: nil, Params: params, - Error: err, + Error: nil, Data: data, } r.SetBufferBody([]byte{}) @@ -138,7 +124,7 @@ func (r *Request) SetStringBody(s string) { // SetReaderBody will set the request's body reader. func (r *Request) SetReaderBody(reader io.ReadSeeker) { - r.HTTPRequest.Body = newOffsetReader(reader, 0) + r.HTTPRequest.Body = ioutil.NopCloser(reader) r.Body = reader } @@ -146,7 +132,6 @@ func (r *Request) SetReaderBody(reader io.ReadSeeker) { // if the signing fails. func (r *Request) Presign(expireTime time.Duration) (string, error) { r.ExpireTime = expireTime - r.NotHoist = false r.Sign() if r.Error != nil { return "", r.Error @@ -154,20 +139,8 @@ func (r *Request) Presign(expireTime time.Duration) (string, error) { return r.HTTPRequest.URL.String(), nil } -// PresignRequest behaves just like presign, but hoists all headers and signs them. -// Also returns the signed hash back to the user -func (r *Request) PresignRequest(expireTime time.Duration) (string, http.Header, error) { - r.ExpireTime = expireTime - r.NotHoist = true - r.Sign() - if r.Error != nil { - return "", nil, r.Error - } - return r.HTTPRequest.URL.String(), r.SignedHeaderVals, nil -} - func debugLogReqError(r *Request, stage string, retrying bool, err error) { - if !r.Config.LogLevel.Matches(aws.LogDebugWithRequestErrors) { + if !r.Service.Config.LogLevel.Matches(aws.LogDebugWithRequestErrors) { return } @@ -176,8 +149,8 @@ func debugLogReqError(r *Request, stage string, retrying bool, err error) { retryStr = "will retry" } - r.Config.Logger.Log(fmt.Sprintf("DEBUG: %s %s/%s failed, %s, error %v", - stage, r.ClientInfo.ServiceName, r.Operation.Name, retryStr, err)) + r.Service.Config.Logger.Log(fmt.Sprintf("DEBUG: %s %s/%s failed, %s, error %v", + stage, r.Service.ServiceName, r.Operation.Name, retryStr, err)) } // Build will build the request's object so it can be signed and sent @@ -192,23 +165,20 @@ func debugLogReqError(r *Request, stage string, retrying bool, err error) { // which occurred will be returned. func (r *Request) Build() error { if !r.built { + r.Error = nil r.Handlers.Validate.Run(r) if r.Error != nil { debugLogReqError(r, "Validate Request", false, r.Error) return r.Error } r.Handlers.Build.Run(r) - if r.Error != nil { - debugLogReqError(r, "Build Request", false, r.Error) - return r.Error - } r.built = true } return r.Error } -// Sign will sign the request returning error if errors are encountered. +// Sign will sign the request retuning error if errors are encountered. // // Send will build the request prior to signing. All Sign Handlers will // be executed in the order they were set. @@ -227,53 +197,28 @@ func (r *Request) Sign() error { // // Send will sign the request prior to sending. All Send Handlers will // be executed in the order they were set. -// -// Canceling a request is non-deterministic. If a request has been canceled, -// then the transport will choose, randomly, one of the state channels during -// reads or getting the connection. -// -// readLoop() and getConn(req *Request, cm connectMethod) -// https://github.com/golang/go/blob/master/src/net/http/transport.go func (r *Request) Send() error { for { - if aws.BoolValue(r.Retryable) { - if r.Config.LogLevel.Matches(aws.LogDebugWithRequestRetries) { - r.Config.Logger.Log(fmt.Sprintf("DEBUG: Retrying Request %s/%s, attempt %d", - r.ClientInfo.ServiceName, r.Operation.Name, r.RetryCount)) - } - - var body io.ReadCloser - if reader, ok := r.HTTPRequest.Body.(*offsetReader); ok { - body = reader.CloseAndCopy(r.BodyStart) - } else { - if r.Config.Logger != nil { - r.Config.Logger.Log("Request body type has been overwritten. May cause race conditions") - } - r.Body.Seek(r.BodyStart, 0) - body = ioutil.NopCloser(r.Body) - } - - r.HTTPRequest = copyHTTPRequest(r.HTTPRequest, body) - if r.HTTPResponse != nil && r.HTTPResponse.Body != nil { - // Closing response body. Since we are setting a new request to send off, this - // response will get squashed and leaked. - r.HTTPResponse.Body.Close() - } - } - r.Sign() if r.Error != nil { return r.Error } + if aws.BoolValue(r.Retryable) { + if r.Service.Config.LogLevel.Matches(aws.LogDebugWithRequestRetries) { + r.Service.Config.Logger.Log(fmt.Sprintf("DEBUG: Retrying Request %s/%s, attempt %d", + r.Service.ServiceName, r.Operation.Name, r.RetryCount)) + } + + // Re-seek the body back to the original point in for a retry so that + // send will send the body's contents again in the upcoming request. + r.Body.Seek(r.BodyStart, 0) + r.HTTPRequest.Body = ioutil.NopCloser(r.Body) + } r.Retryable = nil r.Handlers.Send.Run(r) if r.Error != nil { - if strings.Contains(r.Error.Error(), "net/http: request canceled") { - return r.Error - } - err := r.Error r.Handlers.Retry.Run(r) r.Handlers.AfterRetry.Run(r) @@ -319,11 +264,85 @@ func (r *Request) Send() error { return nil } -// AddToUserAgent adds the string to the end of the request's current user agent. -func AddToUserAgent(r *Request, s string) { - curUA := r.HTTPRequest.Header.Get("User-Agent") - if len(curUA) > 0 { - s = curUA + " " + s +// HasNextPage returns true if this request has more pages of data available. +func (r *Request) HasNextPage() bool { + return r.nextPageTokens() != nil +} + +// nextPageTokens returns the tokens to use when asking for the next page of +// data. +func (r *Request) nextPageTokens() []interface{} { + if r.Operation.Paginator == nil { + return nil + } + + if r.Operation.TruncationToken != "" { + tr := awsutil.ValuesAtAnyPath(r.Data, r.Operation.TruncationToken) + if tr == nil || len(tr) == 0 { + return nil + } + switch v := tr[0].(type) { + case bool: + if v == false { + return nil + } + } + } + + found := false + tokens := make([]interface{}, len(r.Operation.OutputTokens)) + + for i, outtok := range r.Operation.OutputTokens { + v := awsutil.ValuesAtAnyPath(r.Data, outtok) + if v != nil && len(v) > 0 { + found = true + tokens[i] = v[0] + } + } + + if found { + return tokens } - r.HTTPRequest.Header.Set("User-Agent", s) + return nil +} + +// NextPage returns a new Request that can be executed to return the next +// page of result data. Call .Send() on this request to execute it. +func (r *Request) NextPage() *Request { + tokens := r.nextPageTokens() + if tokens == nil { + return nil + } + + data := reflect.New(reflect.TypeOf(r.Data).Elem()).Interface() + nr := New(r.Service, r.Handlers, r.Retryer, r.Operation, awsutil.CopyOf(r.Params), data) + for i, intok := range nr.Operation.InputTokens { + awsutil.SetValueAtAnyPath(nr.Params, intok, tokens[i]) + } + return nr +} + +// EachPage iterates over each page of a paginated request object. The fn +// parameter should be a function with the following sample signature: +// +// func(page *T, lastPage bool) bool { +// return true // return false to stop iterating +// } +// +// Where "T" is the structure type matching the output structure of the given +// operation. For example, a request object generated by +// DynamoDB.ListTablesRequest() would expect to see dynamodb.ListTablesOutput +// as the structure "T". The lastPage value represents whether the page is +// the last page of data or not. The return value of this function should +// return true to keep iterating or false to stop. +func (r *Request) EachPage(fn func(data interface{}, isLastPage bool) (shouldContinue bool)) error { + for page := r; page != nil; page = page.NextPage() { + page.Send() + shouldContinue := fn(page.Data, !page.HasNextPage()) + if page.Error != nil || !shouldContinue { + return page.Error + } + } + + return nil } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_6_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_6_test.go deleted file mode 100644 index f72f6d457..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/request_1_6_test.go +++ /dev/null @@ -1,33 +0,0 @@ -// +build go1.6 - -package request_test - -import ( - "testing" - - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/defaults" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/endpoints" -) - -// go version 1.4 and 1.5 do not return an error. Version 1.5 will url encode -// the uri while 1.4 will not -func TestRequestInvalidEndpoint(t *testing.T) { - endpoint, _ := endpoints.NormalizeEndpoint("localhost:80 ", "test-service", "test-region", false) - r := request.New( - aws.Config{}, - metadata.ClientInfo{Endpoint: endpoint}, - defaults.Handlers(), - client.DefaultRetryer{}, - &request.Operation{}, - nil, - nil, - ) - - assert.Error(t, r.Error) -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination.go deleted file mode 100644 index 2939ec473..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination.go +++ /dev/null @@ -1,104 +0,0 @@ -package request - -import ( - "reflect" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awsutil" -) - -//type Paginater interface { -// HasNextPage() bool -// NextPage() *Request -// EachPage(fn func(data interface{}, isLastPage bool) (shouldContinue bool)) error -//} - -// HasNextPage returns true if this request has more pages of data available. -func (r *Request) HasNextPage() bool { - return len(r.nextPageTokens()) > 0 -} - -// nextPageTokens returns the tokens to use when asking for the next page of -// data. -func (r *Request) nextPageTokens() []interface{} { - if r.Operation.Paginator == nil { - return nil - } - - if r.Operation.TruncationToken != "" { - tr, _ := awsutil.ValuesAtPath(r.Data, r.Operation.TruncationToken) - if len(tr) == 0 { - return nil - } - - switch v := tr[0].(type) { - case *bool: - if !aws.BoolValue(v) { - return nil - } - case bool: - if v == false { - return nil - } - } - } - - tokens := []interface{}{} - tokenAdded := false - for _, outToken := range r.Operation.OutputTokens { - v, _ := awsutil.ValuesAtPath(r.Data, outToken) - if len(v) > 0 { - tokens = append(tokens, v[0]) - tokenAdded = true - } else { - tokens = append(tokens, nil) - } - } - if !tokenAdded { - return nil - } - - return tokens -} - -// NextPage returns a new Request that can be executed to return the next -// page of result data. Call .Send() on this request to execute it. -func (r *Request) NextPage() *Request { - tokens := r.nextPageTokens() - if len(tokens) == 0 { - return nil - } - - data := reflect.New(reflect.TypeOf(r.Data).Elem()).Interface() - nr := New(r.Config, r.ClientInfo, r.Handlers, r.Retryer, r.Operation, awsutil.CopyOf(r.Params), data) - for i, intok := range nr.Operation.InputTokens { - awsutil.SetValueAtPath(nr.Params, intok, tokens[i]) - } - return nr -} - -// EachPage iterates over each page of a paginated request object. The fn -// parameter should be a function with the following sample signature: -// -// func(page *T, lastPage bool) bool { -// return true // return false to stop iterating -// } -// -// Where "T" is the structure type matching the output structure of the given -// operation. For example, a request object generated by -// DynamoDB.ListTablesRequest() would expect to see dynamodb.ListTablesOutput -// as the structure "T". The lastPage value represents whether the page is -// the last page of data or not. The return value of this function should -// return true to keep iterating or false to stop. -func (r *Request) EachPage(fn func(data interface{}, isLastPage bool) (shouldContinue bool)) error { - for page := r; page != nil; page = page.NextPage() { - if err := page.Send(); err != nil { - return err - } - if getNextPage := fn(page.Data, !page.HasNextPage()); !getNextPage { - return page.Error - } - } - - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination_test.go index 725ea25cb..c0f151eee 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_pagination_test.go @@ -7,103 +7,16 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/aws/aws-sdk-go/service/route53" "github.com/aws/aws-sdk-go/service/s3" ) -// Use DynamoDB methods for simplicity -func TestPaginationQueryPage(t *testing.T) { - db := dynamodb.New(unit.Session) - tokens, pages, numPages, gotToEnd := []map[string]*dynamodb.AttributeValue{}, []map[string]*dynamodb.AttributeValue{}, 0, false - - reqNum := 0 - resps := []*dynamodb.QueryOutput{ - { - LastEvaluatedKey: map[string]*dynamodb.AttributeValue{"key": {S: aws.String("key1")}}, - Count: aws.Int64(1), - Items: []map[string]*dynamodb.AttributeValue{ - { - "key": {S: aws.String("key1")}, - }, - }, - }, - { - LastEvaluatedKey: map[string]*dynamodb.AttributeValue{"key": {S: aws.String("key2")}}, - Count: aws.Int64(1), - Items: []map[string]*dynamodb.AttributeValue{ - { - "key": {S: aws.String("key2")}, - }, - }, - }, - { - LastEvaluatedKey: map[string]*dynamodb.AttributeValue{}, - Count: aws.Int64(1), - Items: []map[string]*dynamodb.AttributeValue{ - { - "key": {S: aws.String("key3")}, - }, - }, - }, - } - - db.Handlers.Send.Clear() // mock sending - db.Handlers.Unmarshal.Clear() - db.Handlers.UnmarshalMeta.Clear() - db.Handlers.ValidateResponse.Clear() - db.Handlers.Build.PushBack(func(r *request.Request) { - in := r.Params.(*dynamodb.QueryInput) - if in == nil { - tokens = append(tokens, nil) - } else if len(in.ExclusiveStartKey) != 0 { - tokens = append(tokens, in.ExclusiveStartKey) - } - }) - db.Handlers.Unmarshal.PushBack(func(r *request.Request) { - r.Data = resps[reqNum] - reqNum++ - }) - - params := &dynamodb.QueryInput{ - Limit: aws.Int64(2), - TableName: aws.String("tablename"), - } - err := db.QueryPages(params, func(p *dynamodb.QueryOutput, last bool) bool { - numPages++ - for _, item := range p.Items { - pages = append(pages, item) - } - if last { - if gotToEnd { - assert.Fail(t, "last=true happened twice") - } - gotToEnd = true - } - return true - }) - assert.Nil(t, err) - - assert.Equal(t, - []map[string]*dynamodb.AttributeValue{ - {"key": {S: aws.String("key1")}}, - {"key": {S: aws.String("key2")}}, - }, tokens) - assert.Equal(t, - []map[string]*dynamodb.AttributeValue{ - {"key": {S: aws.String("key1")}}, - {"key": {S: aws.String("key2")}}, - {"key": {S: aws.String("key3")}}, - }, pages) - assert.Equal(t, 3, numPages) - assert.True(t, gotToEnd) - assert.Nil(t, params.ExclusiveStartKey) -} +var _ = unit.Imported // Use DynamoDB methods for simplicity func TestPagination(t *testing.T) { - db := dynamodb.New(unit.Session) + db := dynamodb.New(nil) tokens, pages, numPages, gotToEnd := []string{}, []string{}, 0, false reqNum := 0 @@ -155,7 +68,7 @@ func TestPagination(t *testing.T) { // Use DynamoDB methods for simplicity func TestPaginationEachPage(t *testing.T) { - db := dynamodb.New(unit.Session) + db := dynamodb.New(nil) tokens, pages, numPages, gotToEnd := []string{}, []string{}, 0, false reqNum := 0 @@ -208,7 +121,7 @@ func TestPaginationEachPage(t *testing.T) { // Use DynamoDB methods for simplicity func TestPaginationEarlyExit(t *testing.T) { - db := dynamodb.New(unit.Session) + db := dynamodb.New(nil) numPages, gotToEnd := 0, false reqNum := 0 @@ -248,7 +161,7 @@ func TestPaginationEarlyExit(t *testing.T) { } func TestSkipPagination(t *testing.T) { - client := s3.New(unit.Session) + client := s3.New(nil) client.Handlers.Send.Clear() // mock sending client.Handlers.Unmarshal.Clear() client.Handlers.UnmarshalMeta.Clear() @@ -273,9 +186,10 @@ func TestSkipPagination(t *testing.T) { // Use S3 for simplicity func TestPaginationTruncation(t *testing.T) { - client := s3.New(unit.Session) + count := 0 + client := s3.New(nil) - reqNum := 0 + reqNum := &count resps := []*s3.ListObjectsOutput{ {IsTruncated: aws.Bool(true), Contents: []*s3.Object{{Key: aws.String("Key1")}}}, {IsTruncated: aws.Bool(true), Contents: []*s3.Object{{Key: aws.String("Key2")}}}, @@ -288,8 +202,8 @@ func TestPaginationTruncation(t *testing.T) { client.Handlers.UnmarshalMeta.Clear() client.Handlers.ValidateResponse.Clear() client.Handlers.Unmarshal.PushBack(func(r *request.Request) { - r.Data = resps[reqNum] - reqNum++ + r.Data = resps[*reqNum] + *reqNum++ }) params := &s3.ListObjectsInput{Bucket: aws.String("bucket")} @@ -304,7 +218,7 @@ func TestPaginationTruncation(t *testing.T) { assert.Nil(t, err) // Try again without truncation token at all - reqNum = 0 + count = 0 resps[1].IsTruncated = nil resps[2].IsTruncated = aws.Bool(true) results = []string{} @@ -315,69 +229,7 @@ func TestPaginationTruncation(t *testing.T) { assert.Equal(t, []string{"Key1", "Key2"}, results) assert.Nil(t, err) -} - -func TestPaginationNilToken(t *testing.T) { - client := route53.New(unit.Session) - - reqNum := 0 - resps := []*route53.ListResourceRecordSetsOutput{ - { - ResourceRecordSets: []*route53.ResourceRecordSet{ - {Name: aws.String("first.example.com.")}, - }, - IsTruncated: aws.Bool(true), - NextRecordName: aws.String("second.example.com."), - NextRecordType: aws.String("MX"), - NextRecordIdentifier: aws.String("second"), - MaxItems: aws.String("1"), - }, - { - ResourceRecordSets: []*route53.ResourceRecordSet{ - {Name: aws.String("second.example.com.")}, - }, - IsTruncated: aws.Bool(true), - NextRecordName: aws.String("third.example.com."), - NextRecordType: aws.String("MX"), - MaxItems: aws.String("1"), - }, - { - ResourceRecordSets: []*route53.ResourceRecordSet{ - {Name: aws.String("third.example.com.")}, - }, - IsTruncated: aws.Bool(false), - MaxItems: aws.String("1"), - }, - } - client.Handlers.Send.Clear() // mock sending - client.Handlers.Unmarshal.Clear() - client.Handlers.UnmarshalMeta.Clear() - client.Handlers.ValidateResponse.Clear() - - idents := []string{} - client.Handlers.Build.PushBack(func(r *request.Request) { - p := r.Params.(*route53.ListResourceRecordSetsInput) - idents = append(idents, aws.StringValue(p.StartRecordIdentifier)) - - }) - client.Handlers.Unmarshal.PushBack(func(r *request.Request) { - r.Data = resps[reqNum] - reqNum++ - }) - - params := &route53.ListResourceRecordSetsInput{ - HostedZoneId: aws.String("id-zone"), - } - - results := []string{} - err := client.ListResourceRecordSetsPages(params, func(p *route53.ListResourceRecordSetsOutput, last bool) bool { - results = append(results, *p.ResourceRecordSets[0].Name) - return true - }) - assert.NoError(t, err) - assert.Equal(t, []string{"", "second", ""}, idents) - assert.Equal(t, []string{"first.example.com.", "second.example.com.", "third.example.com."}, results) } // Benchmarks @@ -399,7 +251,7 @@ var benchResps = []*dynamodb.ListTablesOutput{ } var benchDb = func() *dynamodb.DynamoDB { - db := dynamodb.New(unit.Session) + db := dynamodb.New(nil) db.Handlers.Send.Clear() // mock sending db.Handlers.Unmarshal.Clear() db.Handlers.UnmarshalMeta.Clear() diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/request_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/request_test.go index 16bdd6159..6cea0bd2f 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/request_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/request_test.go @@ -3,22 +3,19 @@ package request_test import ( "bytes" "encoding/json" - "errors" "fmt" "io" "io/ioutil" "net/http" - "runtime" "testing" "time" - "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/stretchr/testify/assert" ) type testData struct { @@ -77,7 +74,7 @@ func TestRequestRecoverRetry5xx(t *testing.T) { {StatusCode: 200, Body: body(`{"data":"valid"}`)}, } - s := awstesting.NewClient(aws.NewConfig().WithMaxRetries(10)) + s := service.New(aws.NewConfig().WithMaxRetries(10)) s.Handlers.Validate.Clear() s.Handlers.Unmarshal.PushBack(unmarshal) s.Handlers.UnmarshalError.PushBack(unmarshalError) @@ -103,7 +100,7 @@ func TestRequestRecoverRetry4xxRetryable(t *testing.T) { {StatusCode: 200, Body: body(`{"data":"valid"}`)}, } - s := awstesting.NewClient(aws.NewConfig().WithMaxRetries(10)) + s := service.New(aws.NewConfig().WithMaxRetries(10)) s.Handlers.Validate.Clear() s.Handlers.Unmarshal.PushBack(unmarshal) s.Handlers.UnmarshalError.PushBack(unmarshalError) @@ -122,7 +119,7 @@ func TestRequestRecoverRetry4xxRetryable(t *testing.T) { // test that retries don't occur for 4xx status codes with a response type that can't be retried func TestRequest4xxUnretryable(t *testing.T) { - s := awstesting.NewClient(aws.NewConfig().WithMaxRetries(10)) + s := service.New(aws.NewConfig().WithMaxRetries(10)) s.Handlers.Validate.Clear() s.Handlers.Unmarshal.PushBack(unmarshal) s.Handlers.UnmarshalError.PushBack(unmarshalError) @@ -158,7 +155,7 @@ func TestRequestExhaustRetries(t *testing.T) { {StatusCode: 500, Body: body(`{"__type":"UnknownError","message":"An error occurred."}`)}, } - s := awstesting.NewClient(aws.NewConfig().WithSleepDelay(sleepDelay)) + s := service.New(aws.NewConfig().WithMaxRetries(aws.DefaultRetries).WithSleepDelay(sleepDelay)) s.Handlers.Validate.Clear() s.Handlers.Unmarshal.PushBack(unmarshal) s.Handlers.UnmarshalError.PushBack(unmarshalError) @@ -196,7 +193,7 @@ func TestRequestRecoverExpiredCreds(t *testing.T) { {StatusCode: 200, Body: body(`{"data":"valid"}`)}, } - s := awstesting.NewClient(&aws.Config{MaxRetries: aws.Int(10), Credentials: credentials.NewStaticCredentials("AKID", "SECRET", "")}) + s := service.New(&aws.Config{MaxRetries: aws.Int(10), Credentials: credentials.NewStaticCredentials("AKID", "SECRET", "")}) s.Handlers.Validate.Clear() s.Handlers.Unmarshal.PushBack(unmarshal) s.Handlers.UnmarshalError.PushBack(unmarshalError) @@ -205,12 +202,12 @@ func TestRequestRecoverExpiredCreds(t *testing.T) { credExpiredAfterRetry := false s.Handlers.AfterRetry.PushBack(func(r *request.Request) { - credExpiredAfterRetry = r.Config.Credentials.IsExpired() + credExpiredAfterRetry = r.Service.Config.Credentials.IsExpired() }) s.Handlers.Sign.Clear() s.Handlers.Sign.PushBack(func(r *request.Request) { - r.Config.Credentials.Get() + r.Service.Config.Credentials.Get() }) s.Handlers.Send.Clear() // mock sending s.Handlers.Send.PushBack(func(r *request.Request) { @@ -229,152 +226,3 @@ func TestRequestRecoverExpiredCreds(t *testing.T) { assert.Equal(t, 1, int(r.RetryCount)) assert.Equal(t, "valid", out.Data) } - -func TestMakeAddtoUserAgentHandler(t *testing.T) { - fn := request.MakeAddToUserAgentHandler("name", "version", "extra1", "extra2") - r := &request.Request{HTTPRequest: &http.Request{Header: http.Header{}}} - r.HTTPRequest.Header.Set("User-Agent", "foo/bar") - fn(r) - - assert.Equal(t, "foo/bar name/version (extra1; extra2)", r.HTTPRequest.Header.Get("User-Agent")) -} - -func TestMakeAddtoUserAgentFreeFormHandler(t *testing.T) { - fn := request.MakeAddToUserAgentFreeFormHandler("name/version (extra1; extra2)") - r := &request.Request{HTTPRequest: &http.Request{Header: http.Header{}}} - r.HTTPRequest.Header.Set("User-Agent", "foo/bar") - fn(r) - - assert.Equal(t, "foo/bar name/version (extra1; extra2)", r.HTTPRequest.Header.Get("User-Agent")) -} - -func TestRequestUserAgent(t *testing.T) { - s := awstesting.NewClient(&aws.Config{Region: aws.String("us-east-1")}) - // s.Handlers.Validate.Clear() - - req := s.NewRequest(&request.Operation{Name: "Operation"}, nil, &testData{}) - req.HTTPRequest.Header.Set("User-Agent", "foo/bar") - assert.NoError(t, req.Build()) - - expectUA := fmt.Sprintf("foo/bar %s/%s (%s; %s; %s)", - aws.SDKName, aws.SDKVersion, runtime.Version(), runtime.GOOS, runtime.GOARCH) - assert.Equal(t, expectUA, req.HTTPRequest.Header.Get("User-Agent")) -} - -func TestRequestThrottleRetries(t *testing.T) { - delays := []time.Duration{} - sleepDelay := func(delay time.Duration) { - delays = append(delays, delay) - } - - reqNum := 0 - reqs := []http.Response{ - {StatusCode: 500, Body: body(`{"__type":"Throttling","message":"An error occurred."}`)}, - {StatusCode: 500, Body: body(`{"__type":"Throttling","message":"An error occurred."}`)}, - {StatusCode: 500, Body: body(`{"__type":"Throttling","message":"An error occurred."}`)}, - {StatusCode: 500, Body: body(`{"__type":"Throttling","message":"An error occurred."}`)}, - } - - s := awstesting.NewClient(aws.NewConfig().WithSleepDelay(sleepDelay)) - s.Handlers.Validate.Clear() - s.Handlers.Unmarshal.PushBack(unmarshal) - s.Handlers.UnmarshalError.PushBack(unmarshalError) - s.Handlers.Send.Clear() // mock sending - s.Handlers.Send.PushBack(func(r *request.Request) { - r.HTTPResponse = &reqs[reqNum] - reqNum++ - }) - r := s.NewRequest(&request.Operation{Name: "Operation"}, nil, nil) - err := r.Send() - assert.NotNil(t, err) - if e, ok := err.(awserr.RequestFailure); ok { - assert.Equal(t, 500, e.StatusCode()) - } else { - assert.Fail(t, "Expected error to be a service failure") - } - assert.Equal(t, "Throttling", err.(awserr.Error).Code()) - assert.Equal(t, "An error occurred.", err.(awserr.Error).Message()) - assert.Equal(t, 3, int(r.RetryCount)) - - expectDelays := []struct{ min, max time.Duration }{{500, 999}, {1000, 1998}, {2000, 3996}} - for i, v := range delays { - min := expectDelays[i].min * time.Millisecond - max := expectDelays[i].max * time.Millisecond - assert.True(t, min <= v && v <= max, - "Expect delay to be within range, i:%d, v:%s, min:%s, max:%s", i, v, min, max) - } -} - -// test that retries occur for request timeouts when response.Body can be nil -func TestRequestRecoverTimeoutWithNilBody(t *testing.T) { - reqNum := 0 - reqs := []*http.Response{ - {StatusCode: 0, Body: nil}, // body can be nil when requests time out - {StatusCode: 200, Body: body(`{"data":"valid"}`)}, - } - errors := []error{ - errors.New("timeout"), nil, - } - - s := awstesting.NewClient(aws.NewConfig().WithMaxRetries(10)) - s.Handlers.Validate.Clear() - s.Handlers.Unmarshal.PushBack(unmarshal) - s.Handlers.UnmarshalError.PushBack(unmarshalError) - s.Handlers.AfterRetry.Clear() // force retry on all errors - s.Handlers.AfterRetry.PushBack(func(r *request.Request) { - if r.Error != nil { - r.Error = nil - r.Retryable = aws.Bool(true) - r.RetryCount++ - } - }) - s.Handlers.Send.Clear() // mock sending - s.Handlers.Send.PushBack(func(r *request.Request) { - r.HTTPResponse = reqs[reqNum] - r.Error = errors[reqNum] - reqNum++ - }) - out := &testData{} - r := s.NewRequest(&request.Operation{Name: "Operation"}, nil, out) - err := r.Send() - assert.Nil(t, err) - assert.Equal(t, 1, int(r.RetryCount)) - assert.Equal(t, "valid", out.Data) -} - -func TestRequestRecoverTimeoutWithNilResponse(t *testing.T) { - reqNum := 0 - reqs := []*http.Response{ - nil, - {StatusCode: 200, Body: body(`{"data":"valid"}`)}, - } - errors := []error{ - errors.New("timeout"), - nil, - } - - s := awstesting.NewClient(aws.NewConfig().WithMaxRetries(10)) - s.Handlers.Validate.Clear() - s.Handlers.Unmarshal.PushBack(unmarshal) - s.Handlers.UnmarshalError.PushBack(unmarshalError) - s.Handlers.AfterRetry.Clear() // force retry on all errors - s.Handlers.AfterRetry.PushBack(func(r *request.Request) { - if r.Error != nil { - r.Error = nil - r.Retryable = aws.Bool(true) - r.RetryCount++ - } - }) - s.Handlers.Send.Clear() // mock sending - s.Handlers.Send.PushBack(func(r *request.Request) { - r.HTTPResponse = reqs[reqNum] - r.Error = errors[reqNum] - reqNum++ - }) - out := &testData{} - r := s.NewRequest(&request.Operation{Name: "Operation"}, nil, out) - err := r.Send() - assert.Nil(t, err) - assert.Equal(t, 1, int(r.RetryCount)) - assert.Equal(t, "valid", out.Data) -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go b/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go index 8cc8b015a..f03b0c659 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/retryer.go @@ -3,7 +3,6 @@ package request import ( "time" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" ) @@ -13,31 +12,18 @@ import ( type Retryer interface { RetryRules(*Request) time.Duration ShouldRetry(*Request) bool - MaxRetries() int -} - -// WithRetryer sets a config Retryer value to the given Config returning it -// for chaining. -func WithRetryer(cfg *aws.Config, retryer Retryer) *aws.Config { - cfg.Retryer = retryer - return cfg + MaxRetries() uint } // retryableCodes is a collection of service response codes which are retry-able // without any further action. var retryableCodes = map[string]struct{}{ - "RequestError": {}, - "RequestTimeout": {}, -} - -var throttleCodes = map[string]struct{}{ + "RequestError": {}, "ProvisionedThroughputExceededException": {}, "Throttling": {}, "ThrottlingException": {}, "RequestLimitExceeded": {}, "RequestThrottled": {}, - "LimitExceededException": {}, // Deleting 10+ DynamoDb tables at once - "TooManyRequestsException": {}, // Lambda functions } // credsExpiredCodes is a collection of error codes which signify the credentials @@ -49,11 +35,6 @@ var credsExpiredCodes = map[string]struct{}{ "RequestExpired": {}, // EC2 Only } -func isCodeThrottle(code string) bool { - _, ok := throttleCodes[code] - return ok -} - func isCodeRetryable(code string) bool { if _, ok := retryableCodes[code]; ok { return true @@ -78,17 +59,6 @@ func (r *Request) IsErrorRetryable() bool { return false } -// IsErrorThrottle returns whether the error is to be throttled based on its code. -// Returns false if the request has no Error set -func (r *Request) IsErrorThrottle() bool { - if r.Error != nil { - if err, ok := r.Error.(awserr.Error); ok { - return isCodeThrottle(err.Code()) - } - } - return false -} - // IsErrorExpired returns whether the error code is a credential expiry error. // Returns false if the request has no Error set. func (r *Request) IsErrorExpired() bool { diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/retryer_test.go b/vendor/github.com/aws/aws-sdk-go/aws/request/retryer_test.go deleted file mode 100644 index b1926e3d6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/retryer_test.go +++ /dev/null @@ -1,16 +0,0 @@ -package request - -import ( - "testing" - - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/aws/awserr" -) - -func TestRequestThrottling(t *testing.T) { - req := Request{} - - req.Error = awserr.New("Throttling", "", nil) - assert.True(t, req.IsErrorThrottle()) -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/validation.go b/vendor/github.com/aws/aws-sdk-go/aws/request/validation.go deleted file mode 100644 index 2520286b7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/validation.go +++ /dev/null @@ -1,234 +0,0 @@ -package request - -import ( - "bytes" - "fmt" - - "github.com/aws/aws-sdk-go/aws/awserr" -) - -const ( - // InvalidParameterErrCode is the error code for invalid parameters errors - InvalidParameterErrCode = "InvalidParameter" - // ParamRequiredErrCode is the error code for required parameter errors - ParamRequiredErrCode = "ParamRequiredError" - // ParamMinValueErrCode is the error code for fields with too low of a - // number value. - ParamMinValueErrCode = "ParamMinValueError" - // ParamMinLenErrCode is the error code for fields without enough elements. - ParamMinLenErrCode = "ParamMinLenError" -) - -// Validator provides a way for types to perform validation logic on their -// input values that external code can use to determine if a type's values -// are valid. -type Validator interface { - Validate() error -} - -// An ErrInvalidParams provides wrapping of invalid parameter errors found when -// validating API operation input parameters. -type ErrInvalidParams struct { - // Context is the base context of the invalid parameter group. - Context string - errs []ErrInvalidParam -} - -// Add adds a new invalid parameter error to the collection of invalid -// parameters. The context of the invalid parameter will be updated to reflect -// this collection. -func (e *ErrInvalidParams) Add(err ErrInvalidParam) { - err.SetContext(e.Context) - e.errs = append(e.errs, err) -} - -// AddNested adds the invalid parameter errors from another ErrInvalidParams -// value into this collection. The nested errors will have their nested context -// updated and base context to reflect the merging. -// -// Use for nested validations errors. -func (e *ErrInvalidParams) AddNested(nestedCtx string, nested ErrInvalidParams) { - for _, err := range nested.errs { - err.SetContext(e.Context) - err.AddNestedContext(nestedCtx) - e.errs = append(e.errs, err) - } -} - -// Len returns the number of invalid parameter errors -func (e ErrInvalidParams) Len() int { - return len(e.errs) -} - -// Code returns the code of the error -func (e ErrInvalidParams) Code() string { - return InvalidParameterErrCode -} - -// Message returns the message of the error -func (e ErrInvalidParams) Message() string { - return fmt.Sprintf("%d validation error(s) found.", len(e.errs)) -} - -// Error returns the string formatted form of the invalid parameters. -func (e ErrInvalidParams) Error() string { - w := &bytes.Buffer{} - fmt.Fprintf(w, "%s: %s\n", e.Code(), e.Message()) - - for _, err := range e.errs { - fmt.Fprintf(w, "- %s\n", err.Message()) - } - - return w.String() -} - -// OrigErr returns the invalid parameters as a awserr.BatchedErrors value -func (e ErrInvalidParams) OrigErr() error { - return awserr.NewBatchError( - InvalidParameterErrCode, e.Message(), e.OrigErrs()) -} - -// OrigErrs returns a slice of the invalid parameters -func (e ErrInvalidParams) OrigErrs() []error { - errs := make([]error, len(e.errs)) - for i := 0; i < len(errs); i++ { - errs[i] = e.errs[i] - } - - return errs -} - -// An ErrInvalidParam represents an invalid parameter error type. -type ErrInvalidParam interface { - awserr.Error - - // Field name the error occurred on. - Field() string - - // SetContext updates the context of the error. - SetContext(string) - - // AddNestedContext updates the error's context to include a nested level. - AddNestedContext(string) -} - -type errInvalidParam struct { - context string - nestedContext string - field string - code string - msg string -} - -// Code returns the error code for the type of invalid parameter. -func (e *errInvalidParam) Code() string { - return e.code -} - -// Message returns the reason the parameter was invalid, and its context. -func (e *errInvalidParam) Message() string { - return fmt.Sprintf("%s, %s.", e.msg, e.Field()) -} - -// Error returns the string version of the invalid parameter error. -func (e *errInvalidParam) Error() string { - return fmt.Sprintf("%s: %s", e.code, e.Message()) -} - -// OrigErr returns nil, Implemented for awserr.Error interface. -func (e *errInvalidParam) OrigErr() error { - return nil -} - -// Field Returns the field and context the error occurred. -func (e *errInvalidParam) Field() string { - field := e.context - if len(field) > 0 { - field += "." - } - if len(e.nestedContext) > 0 { - field += fmt.Sprintf("%s.", e.nestedContext) - } - field += e.field - - return field -} - -// SetContext updates the base context of the error. -func (e *errInvalidParam) SetContext(ctx string) { - e.context = ctx -} - -// AddNestedContext prepends a context to the field's path. -func (e *errInvalidParam) AddNestedContext(ctx string) { - if len(e.nestedContext) == 0 { - e.nestedContext = ctx - } else { - e.nestedContext = fmt.Sprintf("%s.%s", ctx, e.nestedContext) - } - -} - -// An ErrParamRequired represents an required parameter error. -type ErrParamRequired struct { - errInvalidParam -} - -// NewErrParamRequired creates a new required parameter error. -func NewErrParamRequired(field string) *ErrParamRequired { - return &ErrParamRequired{ - errInvalidParam{ - code: ParamRequiredErrCode, - field: field, - msg: fmt.Sprintf("missing required field"), - }, - } -} - -// An ErrParamMinValue represents a minimum value parameter error. -type ErrParamMinValue struct { - errInvalidParam - min float64 -} - -// NewErrParamMinValue creates a new minimum value parameter error. -func NewErrParamMinValue(field string, min float64) *ErrParamMinValue { - return &ErrParamMinValue{ - errInvalidParam: errInvalidParam{ - code: ParamMinValueErrCode, - field: field, - msg: fmt.Sprintf("minimum field value of %v", min), - }, - min: min, - } -} - -// MinValue returns the field's require minimum value. -// -// float64 is returned for both int and float min values. -func (e *ErrParamMinValue) MinValue() float64 { - return e.min -} - -// An ErrParamMinLen represents a minimum length parameter error. -type ErrParamMinLen struct { - errInvalidParam - min int -} - -// NewErrParamMinLen creates a new minimum length parameter error. -func NewErrParamMinLen(field string, min int) *ErrParamMinLen { - return &ErrParamMinLen{ - errInvalidParam: errInvalidParam{ - code: ParamMinValueErrCode, - field: field, - msg: fmt.Sprintf("minimum field size of %v", min), - }, - min: min, - } -} - -// MinLen returns the field's required minimum length. -func (e *ErrParamMinLen) MinLen() int { - return e.min -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/service/default_retryer.go b/vendor/github.com/aws/aws-sdk-go/aws/service/default_retryer.go new file mode 100644 index 000000000..e642d16b7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/service/default_retryer.go @@ -0,0 +1,51 @@ +package service + +import ( + "math" + "math/rand" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" +) + +// DefaultRetryer implements basic retry logic using exponential backoff for +// most services. If you want to implement custom retry logic, implement the +// request.Retryer interface or create a structure type that composes this +// struct and override the specific methods. For example, to override only +// the MaxRetries method: +// +// type retryer struct { +// service.DefaultRetryer +// } +// +// // This implementation always has 100 max retries +// func (d retryer) MaxRetries() uint { return 100 } +type DefaultRetryer struct { + *Service +} + +// MaxRetries returns the number of maximum returns the service will use to make +// an individual API request. +func (d DefaultRetryer) MaxRetries() uint { + if aws.IntValue(d.Service.Config.MaxRetries) < 0 { + return d.DefaultMaxRetries + } + return uint(aws.IntValue(d.Service.Config.MaxRetries)) +} + +var seededRand = rand.New(rand.NewSource(time.Now().UnixNano())) + +// RetryRules returns the delay duration before retrying this request again +func (d DefaultRetryer) RetryRules(r *request.Request) time.Duration { + delay := int(math.Pow(2, float64(r.RetryCount))) * (seededRand.Intn(30) + 30) + return time.Duration(delay) * time.Millisecond +} + +// ShouldRetry returns if the request should be retried. +func (d DefaultRetryer) ShouldRetry(r *request.Request) bool { + if r.HTTPResponse.StatusCode >= 500 { + return true + } + return r.IsErrorRetryable() +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/service/service.go b/vendor/github.com/aws/aws-sdk-go/aws/service/service.go new file mode 100644 index 000000000..7205212e1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/service/service.go @@ -0,0 +1,133 @@ +package service + +import ( + "fmt" + "io/ioutil" + "net/http" + "net/http/httputil" + "regexp" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/corehandlers" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/endpoints" +) + +// A Service implements the base service request and response handling +// used by all services. +type Service struct { + serviceinfo.ServiceInfo + request.Retryer + DefaultMaxRetries uint + Handlers request.Handlers +} + +var schemeRE = regexp.MustCompile("^([^:]+)://") + +// New will return a pointer to a new Server object initialized. +func New(config *aws.Config) *Service { + svc := &Service{ServiceInfo: serviceinfo.ServiceInfo{Config: config}} + svc.Initialize() + return svc +} + +// Initialize initializes the service. +func (s *Service) Initialize() { + if s.Config == nil { + s.Config = &aws.Config{} + } + if s.Config.HTTPClient == nil { + s.Config.HTTPClient = http.DefaultClient + } + if s.Config.SleepDelay == nil { + s.Config.SleepDelay = time.Sleep + } + + s.Retryer = DefaultRetryer{s} + s.DefaultMaxRetries = 3 + s.Handlers.Validate.PushBackNamed(corehandlers.ValidateEndpointHandler) + s.Handlers.Build.PushBackNamed(corehandlers.UserAgentHandler) + s.Handlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler) + s.Handlers.Send.PushBackNamed(corehandlers.SendHandler) + s.Handlers.AfterRetry.PushBackNamed(corehandlers.AfterRetryHandler) + s.Handlers.ValidateResponse.PushBackNamed(corehandlers.ValidateResponseHandler) + if !aws.BoolValue(s.Config.DisableParamValidation) { + s.Handlers.Validate.PushBackNamed(corehandlers.ValidateParametersHandler) + } + s.AddDebugHandlers() + s.buildEndpoint() +} + +// NewRequest returns a new Request pointer for the service API +// operation and parameters. +func (s *Service) NewRequest(operation *request.Operation, params interface{}, data interface{}) *request.Request { + return request.New(s.ServiceInfo, s.Handlers, s.Retryer, operation, params, data) +} + +// buildEndpoint builds the endpoint values the service will use to make requests with. +func (s *Service) buildEndpoint() { + if aws.StringValue(s.Config.Endpoint) != "" { + s.Endpoint = *s.Config.Endpoint + } else if s.Endpoint == "" { + s.Endpoint, s.SigningRegion = + endpoints.EndpointForRegion(s.ServiceName, aws.StringValue(s.Config.Region)) + } + + if s.Endpoint != "" && !schemeRE.MatchString(s.Endpoint) { + scheme := "https" + if aws.BoolValue(s.Config.DisableSSL) { + scheme = "http" + } + s.Endpoint = scheme + "://" + s.Endpoint + } +} + +// AddDebugHandlers injects debug logging handlers into the service to log request +// debug information. +func (s *Service) AddDebugHandlers() { + if !s.Config.LogLevel.AtLeast(aws.LogDebug) { + return + } + + s.Handlers.Send.PushFront(logRequest) + s.Handlers.Send.PushBack(logResponse) +} + +const logReqMsg = `DEBUG: Request %s/%s Details: +---[ REQUEST POST-SIGN ]----------------------------- +%s +-----------------------------------------------------` + +func logRequest(r *request.Request) { + logBody := r.Service.Config.LogLevel.Matches(aws.LogDebugWithHTTPBody) + dumpedBody, _ := httputil.DumpRequestOut(r.HTTPRequest, logBody) + + if logBody { + // Reset the request body because dumpRequest will re-wrap the r.HTTPRequest's + // Body as a NoOpCloser and will not be reset after read by the HTTP + // client reader. + r.Body.Seek(r.BodyStart, 0) + r.HTTPRequest.Body = ioutil.NopCloser(r.Body) + } + + r.Service.Config.Logger.Log(fmt.Sprintf(logReqMsg, r.Service.ServiceName, r.Operation.Name, string(dumpedBody))) +} + +const logRespMsg = `DEBUG: Response %s/%s Details: +---[ RESPONSE ]-------------------------------------- +%s +-----------------------------------------------------` + +func logResponse(r *request.Request) { + var msg = "no reponse data" + if r.HTTPResponse != nil { + logBody := r.Service.Config.LogLevel.Matches(aws.LogDebugWithHTTPBody) + dumpedBody, _ := httputil.DumpResponse(r.HTTPResponse, logBody) + msg = string(dumpedBody) + } else if r.Error != nil { + msg = r.Error.Error() + } + r.Service.Config.Logger.Log(fmt.Sprintf(logRespMsg, r.Service.ServiceName, r.Operation.Name, msg)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/service/serviceinfo/service_info.go b/vendor/github.com/aws/aws-sdk-go/aws/service/serviceinfo/service_info.go new file mode 100644 index 000000000..a920e96a9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/service/serviceinfo/service_info.go @@ -0,0 +1,15 @@ +package serviceinfo + +import "github.com/aws/aws-sdk-go/aws" + +// ServiceInfo wraps immutable data from the service.Service structure. +type ServiceInfo struct { + Config *aws.Config + ServiceName string + APIVersion string + Endpoint string + SigningName string + SigningRegion string + JSONVersion string + TargetPrefix string +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/session.go b/vendor/github.com/aws/aws-sdk-go/aws/session/session.go deleted file mode 100644 index 6bc8f1be9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/session.go +++ /dev/null @@ -1,120 +0,0 @@ -// Package session provides a way to create service clients with shared configuration -// and handlers. -// -// Generally this package should be used instead of the `defaults` package. -// -// A session should be used to share configurations and request handlers between multiple -// service clients. When service clients need specific configuration aws.Config can be -// used to provide additional configuration directly to the service client. -package session - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/corehandlers" - "github.com/aws/aws-sdk-go/aws/defaults" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/endpoints" -) - -// A Session provides a central location to create service clients from and -// store configurations and request handlers for those services. -// -// Sessions are safe to create service clients concurrently, but it is not safe -// to mutate the session concurrently. -type Session struct { - Config *aws.Config - Handlers request.Handlers -} - -// New creates a new instance of the handlers merging in the provided Configs -// on top of the SDK's default configurations. Once the session is created it -// can be mutated to modify Configs or Handlers. The session is safe to be read -// concurrently, but it should not be written to concurrently. -// -// Example: -// // Create a session with the default config and request handlers. -// sess := session.New() -// -// // Create a session with a custom region -// sess := session.New(&aws.Config{Region: aws.String("us-east-1")}) -// -// // Create a session, and add additional handlers for all service -// // clients created with the session to inherit. Adds logging handler. -// sess := session.New() -// sess.Handlers.Send.PushFront(func(r *request.Request) { -// // Log every request made and its payload -// logger.Println("Request: %s/%s, Payload: %s", r.ClientInfo.ServiceName, r.Operation, r.Params) -// }) -// -// // Create a S3 client instance from a session -// sess := session.New() -// svc := s3.New(sess) -func New(cfgs ...*aws.Config) *Session { - cfg := defaults.Config() - handlers := defaults.Handlers() - - // Apply the passed in configs so the configuration can be applied to the - // default credential chain - cfg.MergeIn(cfgs...) - cfg.Credentials = defaults.CredChain(cfg, handlers) - - // Reapply any passed in configs to override credentials if set - cfg.MergeIn(cfgs...) - - s := &Session{ - Config: cfg, - Handlers: handlers, - } - - initHandlers(s) - - return s -} - -func initHandlers(s *Session) { - // Add the Validate parameter handler if it is not disabled. - s.Handlers.Validate.Remove(corehandlers.ValidateParametersHandler) - if !aws.BoolValue(s.Config.DisableParamValidation) { - s.Handlers.Validate.PushBackNamed(corehandlers.ValidateParametersHandler) - } -} - -// Copy creates and returns a copy of the current session, coping the config -// and handlers. If any additional configs are provided they will be merged -// on top of the session's copied config. -// -// Example: -// // Create a copy of the current session, configured for the us-west-2 region. -// sess.Copy(&aws.Config{Region: aws.String("us-west-2")}) -func (s *Session) Copy(cfgs ...*aws.Config) *Session { - newSession := &Session{ - Config: s.Config.Copy(cfgs...), - Handlers: s.Handlers.Copy(), - } - - initHandlers(newSession) - - return newSession -} - -// ClientConfig satisfies the client.ConfigProvider interface and is used to -// configure the service client instances. Passing the Session to the service -// client's constructor (New) will use this method to configure the client. -// -// Example: -// sess := session.New() -// s3.New(sess) -func (s *Session) ClientConfig(serviceName string, cfgs ...*aws.Config) client.Config { - s = s.Copy(cfgs...) - endpoint, signingRegion := endpoints.NormalizeEndpoint( - aws.StringValue(s.Config.Endpoint), serviceName, - aws.StringValue(s.Config.Region), aws.BoolValue(s.Config.DisableSSL)) - - return client.Config{ - Config: s.Config, - Handlers: s.Handlers, - Endpoint: endpoint, - SigningRegion: signingRegion, - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go b/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go deleted file mode 100644 index e56c02fc6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/session_test.go +++ /dev/null @@ -1,20 +0,0 @@ -package session_test - -import ( - "net/http" - "testing" - - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" -) - -func TestNewDefaultSession(t *testing.T) { - s := session.New(&aws.Config{Region: aws.String("region")}) - - assert.Equal(t, "region", *s.Config.Region) - assert.Equal(t, http.DefaultClient, s.Config.HTTPClient) - assert.NotNil(t, s.Config.Logger) - assert.Equal(t, aws.LogOff, *s.Config.LogLevel) -} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/types.go b/vendor/github.com/aws/aws-sdk-go/aws/types.go index fa014b49e..846b732dd 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/types.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/types.go @@ -5,7 +5,7 @@ import ( "sync" ) -// ReadSeekCloser wraps a io.Reader returning a ReaderSeekerCloser +// ReadSeekCloser wraps a io.Reader returning a ReaderSeakerCloser func ReadSeekCloser(r io.Reader) ReaderSeekerCloser { return ReaderSeekerCloser{r} } @@ -61,41 +61,23 @@ func (r ReaderSeekerCloser) Close() error { type WriteAtBuffer struct { buf []byte m sync.Mutex - - // GrowthCoeff defines the growth rate of the internal buffer. By - // default, the growth rate is 1, where expanding the internal - // buffer will allocate only enough capacity to fit the new expected - // length. - GrowthCoeff float64 -} - -// NewWriteAtBuffer creates a WriteAtBuffer with an internal buffer -// provided by buf. -func NewWriteAtBuffer(buf []byte) *WriteAtBuffer { - return &WriteAtBuffer{buf: buf} } // WriteAt writes a slice of bytes to a buffer starting at the position provided // The number of bytes written will be returned, or error. Can overwrite previous // written slices if the write ats overlap. func (b *WriteAtBuffer) WriteAt(p []byte, pos int64) (n int, err error) { - pLen := len(p) - expLen := pos + int64(pLen) b.m.Lock() defer b.m.Unlock() + + expLen := pos + int64(len(p)) if int64(len(b.buf)) < expLen { - if int64(cap(b.buf)) < expLen { - if b.GrowthCoeff < 1 { - b.GrowthCoeff = 1 - } - newBuf := make([]byte, expLen, int64(b.GrowthCoeff*float64(expLen))) - copy(newBuf, b.buf) - b.buf = newBuf - } - b.buf = b.buf[:expLen] + newBuf := make([]byte, expLen) + copy(newBuf, b.buf) + b.buf = newBuf } copy(b.buf[pos:], p) - return pLen, nil + return len(p), nil } // Bytes returns a slice of bytes written to the buffer. diff --git a/vendor/github.com/aws/aws-sdk-go/aws/types_test.go b/vendor/github.com/aws/aws-sdk-go/aws/types_test.go index a7cd93b83..a4ed20e7d 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/types_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/types_test.go @@ -41,25 +41,6 @@ func BenchmarkWriteAtBuffer(b *testing.B) { } } -func BenchmarkWriteAtBufferOrderedWrites(b *testing.B) { - // test the performance of a WriteAtBuffer when written in an - // ordered fashion. This is similar to the behavior of the - // s3.Downloader, since downloads the first chunk of the file, then - // the second, and so on. - // - // This test simulates a 150MB file being written in 30 ordered 5MB chunks. - chunk := int64(5e6) - max := chunk * 30 - // we'll write the same 5MB chunk every time - tmp := make([]byte, chunk) - for i := 0; i < b.N; i++ { - buf := &WriteAtBuffer{} - for i := int64(0); i < max; i += chunk { - buf.WriteAt(tmp, i) - } - } -} - func BenchmarkWriteAtBufferParallel(b *testing.B) { buf := &WriteAtBuffer{} r := rand.New(rand.NewSource(1)) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/version.go b/vendor/github.com/aws/aws-sdk-go/aws/version.go index 79a260de0..cd1f54748 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/version.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.1.32" +const SDKVersion = "0.9.4rc5" diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/Godeps/Godeps.json b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/Godeps/Godeps.json deleted file mode 100644 index 65d753cac..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/Godeps/Godeps.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "ImportPath": "github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer", - "GoVersion": "go1.6", - "GodepVersion": "v60", - "Deps": [ - { - "ImportPath": "golang.org/x/tools/go/ast/astutil", - "Rev": "b75b3f5cd5d50fbb1fb88ce784d2e7cca17bba8a" - }, - { - "ImportPath": "golang.org/x/tools/go/buildutil", - "Rev": "b75b3f5cd5d50fbb1fb88ce784d2e7cca17bba8a" - }, - { - "ImportPath": "golang.org/x/tools/go/loader", - "Rev": "b75b3f5cd5d50fbb1fb88ce784d2e7cca17bba8a" - } - ] -} diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/Godeps/Readme b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/Godeps/Readme deleted file mode 100644 index 4cdaa53d5..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/Godeps/Readme +++ /dev/null @@ -1,5 +0,0 @@ -This directory tree is generated automatically by godep. - -Please do not edit. - -See https://github.com/tools/godep for more information. diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/gen/gen.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/gen/gen.go index 0dc652942..ad39c0406 100644 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/gen/gen.go +++ b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/gen/gen.go @@ -1,5 +1,3 @@ -// +build go1.5 - package main import ( @@ -12,7 +10,7 @@ import ( "strings" "text/template" - "github.com/aws/aws-sdk-go/private/model/api" + "github.com/aws/aws-sdk-go/internal/model/api" ) type pkg struct { @@ -47,7 +45,7 @@ func generateRenames(w io.Writer) error { } out := bytes.NewBuffer(nil) - if err = tmpl.Execute(out, exportMap); err != nil { + if err := tmpl.Execute(out, exportMap); err != nil { return err } @@ -129,6 +127,7 @@ func load(file string) *pkg { p.oldAPI.Attach(file) p.oldAPI.Setup() + p.newAPI.NoInflections = true p.newAPI.Attach(file) p.newAPI.Setup() diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/rename/rename.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/rename/rename.go index 05d6f3626..bcdd3704d 100644 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/rename/rename.go +++ b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/rename/rename.go @@ -1,5 +1,3 @@ -// +build go1.5 - package rename import ( @@ -9,10 +7,10 @@ import ( "go/format" "go/parser" "go/token" - "go/types" "io/ioutil" "golang.org/x/tools/go/loader" + "golang.org/x/tools/go/types" ) var dryRun = flag.Bool("dryrun", false, "Dry run") @@ -57,7 +55,7 @@ func (r *renamer) dryInfo() string { return "[!]" } -func (r *renamer) printf(msg string, args ...interface{}) { +func (r *renamer) print(msg string, args ...interface{}) { if *verbose { fmt.Printf(msg, args...) } @@ -93,19 +91,19 @@ func (r *renamer) parseUses(pkg *loader.PackageInfo) { switch t := v.(type) { case *types.Func: if newName, ok := renames.operations[t.Name()]; ok && newName != name { - r.printf("%s Rename [OPERATION]: %q -> %q\n", r.dryInfo(), name, newName) + r.print("%s Rename [OPERATION]: %q -> %q\n", r.dryInfo(), name, newName) r.files[r.Fset.File(k.Pos())] = true k.Name = newName } case *types.TypeName: if newName, ok := renames.shapes[name]; ok && newName != name { - r.printf("%s Rename [SHAPE]: %q -> %q\n", r.dryInfo(), t.Name(), newName) + r.print("%s Rename [SHAPE]: %q -> %q\n", r.dryInfo(), t.Name(), newName) r.files[r.Fset.File(k.Pos())] = true k.Name = newName } case *types.Var: if newName, ok := renames.fields[name]; ok && newName != name { - r.printf("%s Rename [FIELD]: %q -> %q\n", r.dryInfo(), t.Name(), newName) + r.print("%s Rename [FIELD]: %q -> %q\n", r.dryInfo(), t.Name(), newName) r.files[r.Fset.File(k.Pos())] = true k.Name = newName } diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/rename/renames.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/rename/renames.go index 0d22f39ec..ab389cadc 100644 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/rename/renames.go +++ b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/rename/renames.go @@ -1,5 +1,3 @@ -// +build go1.5 - package rename // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/renamer.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/renamer.go index ed60e88dd..bba71a66e 100644 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/renamer.go +++ b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/renamer.go @@ -1,5 +1,3 @@ -// +build go1.5 - package main //go:generate go run gen/gen.go diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/LICENSE b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/LICENSE deleted file mode 100644 index 6a66aea5e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/PATENTS b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/PATENTS deleted file mode 100644 index 733099041..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/PATENTS +++ /dev/null @@ -1,22 +0,0 @@ -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by -Google as part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in -the future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any -entity (including a cross-claim or counterclaim in a lawsuit) alleging -that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent -infringement, or inducement of patent infringement, then any patent -rights granted to you under this License for this implementation of Go -shall terminate as of the date such litigation is filed. diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go deleted file mode 100644 index 340c9e6cd..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go +++ /dev/null @@ -1,624 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package astutil - -// This file defines utilities for working with source positions. - -import ( - "fmt" - "go/ast" - "go/token" - "sort" -) - -// PathEnclosingInterval returns the node that encloses the source -// interval [start, end), and all its ancestors up to the AST root. -// -// The definition of "enclosing" used by this function considers -// additional whitespace abutting a node to be enclosed by it. -// In this example: -// -// z := x + y // add them -// <-A-> -// <----B-----> -// -// the ast.BinaryExpr(+) node is considered to enclose interval B -// even though its [Pos()..End()) is actually only interval A. -// This behaviour makes user interfaces more tolerant of imperfect -// input. -// -// This function treats tokens as nodes, though they are not included -// in the result. e.g. PathEnclosingInterval("+") returns the -// enclosing ast.BinaryExpr("x + y"). -// -// If start==end, the 1-char interval following start is used instead. -// -// The 'exact' result is true if the interval contains only path[0] -// and perhaps some adjacent whitespace. It is false if the interval -// overlaps multiple children of path[0], or if it contains only -// interior whitespace of path[0]. -// In this example: -// -// z := x + y // add them -// <--C--> <---E--> -// ^ -// D -// -// intervals C, D and E are inexact. C is contained by the -// z-assignment statement, because it spans three of its children (:=, -// x, +). So too is the 1-char interval D, because it contains only -// interior whitespace of the assignment. E is considered interior -// whitespace of the BlockStmt containing the assignment. -// -// Precondition: [start, end) both lie within the same file as root. -// TODO(adonovan): return (nil, false) in this case and remove precond. -// Requires FileSet; see loader.tokenFileContainsPos. -// -// Postcondition: path is never nil; it always contains at least 'root'. -// -func PathEnclosingInterval(root *ast.File, start, end token.Pos) (path []ast.Node, exact bool) { - // fmt.Printf("EnclosingInterval %d %d\n", start, end) // debugging - - // Precondition: node.[Pos..End) and adjoining whitespace contain [start, end). - var visit func(node ast.Node) bool - visit = func(node ast.Node) bool { - path = append(path, node) - - nodePos := node.Pos() - nodeEnd := node.End() - - // fmt.Printf("visit(%T, %d, %d)\n", node, nodePos, nodeEnd) // debugging - - // Intersect [start, end) with interval of node. - if start < nodePos { - start = nodePos - } - if end > nodeEnd { - end = nodeEnd - } - - // Find sole child that contains [start, end). - children := childrenOf(node) - l := len(children) - for i, child := range children { - // [childPos, childEnd) is unaugmented interval of child. - childPos := child.Pos() - childEnd := child.End() - - // [augPos, augEnd) is whitespace-augmented interval of child. - augPos := childPos - augEnd := childEnd - if i > 0 { - augPos = children[i-1].End() // start of preceding whitespace - } - if i < l-1 { - nextChildPos := children[i+1].Pos() - // Does [start, end) lie between child and next child? - if start >= augEnd && end <= nextChildPos { - return false // inexact match - } - augEnd = nextChildPos // end of following whitespace - } - - // fmt.Printf("\tchild %d: [%d..%d)\tcontains interval [%d..%d)?\n", - // i, augPos, augEnd, start, end) // debugging - - // Does augmented child strictly contain [start, end)? - if augPos <= start && end <= augEnd { - _, isToken := child.(tokenNode) - return isToken || visit(child) - } - - // Does [start, end) overlap multiple children? - // i.e. left-augmented child contains start - // but LR-augmented child does not contain end. - if start < childEnd && end > augEnd { - break - } - } - - // No single child contained [start, end), - // so node is the result. Is it exact? - - // (It's tempting to put this condition before the - // child loop, but it gives the wrong result in the - // case where a node (e.g. ExprStmt) and its sole - // child have equal intervals.) - if start == nodePos && end == nodeEnd { - return true // exact match - } - - return false // inexact: overlaps multiple children - } - - if start > end { - start, end = end, start - } - - if start < root.End() && end > root.Pos() { - if start == end { - end = start + 1 // empty interval => interval of size 1 - } - exact = visit(root) - - // Reverse the path: - for i, l := 0, len(path); i < l/2; i++ { - path[i], path[l-1-i] = path[l-1-i], path[i] - } - } else { - // Selection lies within whitespace preceding the - // first (or following the last) declaration in the file. - // The result nonetheless always includes the ast.File. - path = append(path, root) - } - - return -} - -// tokenNode is a dummy implementation of ast.Node for a single token. -// They are used transiently by PathEnclosingInterval but never escape -// this package. -// -type tokenNode struct { - pos token.Pos - end token.Pos -} - -func (n tokenNode) Pos() token.Pos { - return n.pos -} - -func (n tokenNode) End() token.Pos { - return n.end -} - -func tok(pos token.Pos, len int) ast.Node { - return tokenNode{pos, pos + token.Pos(len)} -} - -// childrenOf returns the direct non-nil children of ast.Node n. -// It may include fake ast.Node implementations for bare tokens. -// it is not safe to call (e.g.) ast.Walk on such nodes. -// -func childrenOf(n ast.Node) []ast.Node { - var children []ast.Node - - // First add nodes for all true subtrees. - ast.Inspect(n, func(node ast.Node) bool { - if node == n { // push n - return true // recur - } - if node != nil { // push child - children = append(children, node) - } - return false // no recursion - }) - - // Then add fake Nodes for bare tokens. - switch n := n.(type) { - case *ast.ArrayType: - children = append(children, - tok(n.Lbrack, len("[")), - tok(n.Elt.End(), len("]"))) - - case *ast.AssignStmt: - children = append(children, - tok(n.TokPos, len(n.Tok.String()))) - - case *ast.BasicLit: - children = append(children, - tok(n.ValuePos, len(n.Value))) - - case *ast.BinaryExpr: - children = append(children, tok(n.OpPos, len(n.Op.String()))) - - case *ast.BlockStmt: - children = append(children, - tok(n.Lbrace, len("{")), - tok(n.Rbrace, len("}"))) - - case *ast.BranchStmt: - children = append(children, - tok(n.TokPos, len(n.Tok.String()))) - - case *ast.CallExpr: - children = append(children, - tok(n.Lparen, len("(")), - tok(n.Rparen, len(")"))) - if n.Ellipsis != 0 { - children = append(children, tok(n.Ellipsis, len("..."))) - } - - case *ast.CaseClause: - if n.List == nil { - children = append(children, - tok(n.Case, len("default"))) - } else { - children = append(children, - tok(n.Case, len("case"))) - } - children = append(children, tok(n.Colon, len(":"))) - - case *ast.ChanType: - switch n.Dir { - case ast.RECV: - children = append(children, tok(n.Begin, len("<-chan"))) - case ast.SEND: - children = append(children, tok(n.Begin, len("chan<-"))) - case ast.RECV | ast.SEND: - children = append(children, tok(n.Begin, len("chan"))) - } - - case *ast.CommClause: - if n.Comm == nil { - children = append(children, - tok(n.Case, len("default"))) - } else { - children = append(children, - tok(n.Case, len("case"))) - } - children = append(children, tok(n.Colon, len(":"))) - - case *ast.Comment: - // nop - - case *ast.CommentGroup: - // nop - - case *ast.CompositeLit: - children = append(children, - tok(n.Lbrace, len("{")), - tok(n.Rbrace, len("{"))) - - case *ast.DeclStmt: - // nop - - case *ast.DeferStmt: - children = append(children, - tok(n.Defer, len("defer"))) - - case *ast.Ellipsis: - children = append(children, - tok(n.Ellipsis, len("..."))) - - case *ast.EmptyStmt: - // nop - - case *ast.ExprStmt: - // nop - - case *ast.Field: - // TODO(adonovan): Field.{Doc,Comment,Tag}? - - case *ast.FieldList: - children = append(children, - tok(n.Opening, len("(")), - tok(n.Closing, len(")"))) - - case *ast.File: - // TODO test: Doc - children = append(children, - tok(n.Package, len("package"))) - - case *ast.ForStmt: - children = append(children, - tok(n.For, len("for"))) - - case *ast.FuncDecl: - // TODO(adonovan): FuncDecl.Comment? - - // Uniquely, FuncDecl breaks the invariant that - // preorder traversal yields tokens in lexical order: - // in fact, FuncDecl.Recv precedes FuncDecl.Type.Func. - // - // As a workaround, we inline the case for FuncType - // here and order things correctly. - // - children = nil // discard ast.Walk(FuncDecl) info subtrees - children = append(children, tok(n.Type.Func, len("func"))) - if n.Recv != nil { - children = append(children, n.Recv) - } - children = append(children, n.Name) - if n.Type.Params != nil { - children = append(children, n.Type.Params) - } - if n.Type.Results != nil { - children = append(children, n.Type.Results) - } - if n.Body != nil { - children = append(children, n.Body) - } - - case *ast.FuncLit: - // nop - - case *ast.FuncType: - if n.Func != 0 { - children = append(children, - tok(n.Func, len("func"))) - } - - case *ast.GenDecl: - children = append(children, - tok(n.TokPos, len(n.Tok.String()))) - if n.Lparen != 0 { - children = append(children, - tok(n.Lparen, len("(")), - tok(n.Rparen, len(")"))) - } - - case *ast.GoStmt: - children = append(children, - tok(n.Go, len("go"))) - - case *ast.Ident: - children = append(children, - tok(n.NamePos, len(n.Name))) - - case *ast.IfStmt: - children = append(children, - tok(n.If, len("if"))) - - case *ast.ImportSpec: - // TODO(adonovan): ImportSpec.{Doc,EndPos}? - - case *ast.IncDecStmt: - children = append(children, - tok(n.TokPos, len(n.Tok.String()))) - - case *ast.IndexExpr: - children = append(children, - tok(n.Lbrack, len("{")), - tok(n.Rbrack, len("}"))) - - case *ast.InterfaceType: - children = append(children, - tok(n.Interface, len("interface"))) - - case *ast.KeyValueExpr: - children = append(children, - tok(n.Colon, len(":"))) - - case *ast.LabeledStmt: - children = append(children, - tok(n.Colon, len(":"))) - - case *ast.MapType: - children = append(children, - tok(n.Map, len("map"))) - - case *ast.ParenExpr: - children = append(children, - tok(n.Lparen, len("(")), - tok(n.Rparen, len(")"))) - - case *ast.RangeStmt: - children = append(children, - tok(n.For, len("for")), - tok(n.TokPos, len(n.Tok.String()))) - - case *ast.ReturnStmt: - children = append(children, - tok(n.Return, len("return"))) - - case *ast.SelectStmt: - children = append(children, - tok(n.Select, len("select"))) - - case *ast.SelectorExpr: - // nop - - case *ast.SendStmt: - children = append(children, - tok(n.Arrow, len("<-"))) - - case *ast.SliceExpr: - children = append(children, - tok(n.Lbrack, len("[")), - tok(n.Rbrack, len("]"))) - - case *ast.StarExpr: - children = append(children, tok(n.Star, len("*"))) - - case *ast.StructType: - children = append(children, tok(n.Struct, len("struct"))) - - case *ast.SwitchStmt: - children = append(children, tok(n.Switch, len("switch"))) - - case *ast.TypeAssertExpr: - children = append(children, - tok(n.Lparen-1, len(".")), - tok(n.Lparen, len("(")), - tok(n.Rparen, len(")"))) - - case *ast.TypeSpec: - // TODO(adonovan): TypeSpec.{Doc,Comment}? - - case *ast.TypeSwitchStmt: - children = append(children, tok(n.Switch, len("switch"))) - - case *ast.UnaryExpr: - children = append(children, tok(n.OpPos, len(n.Op.String()))) - - case *ast.ValueSpec: - // TODO(adonovan): ValueSpec.{Doc,Comment}? - - case *ast.BadDecl, *ast.BadExpr, *ast.BadStmt: - // nop - } - - // TODO(adonovan): opt: merge the logic of ast.Inspect() into - // the switch above so we can make interleaved callbacks for - // both Nodes and Tokens in the right order and avoid the need - // to sort. - sort.Sort(byPos(children)) - - return children -} - -type byPos []ast.Node - -func (sl byPos) Len() int { - return len(sl) -} -func (sl byPos) Less(i, j int) bool { - return sl[i].Pos() < sl[j].Pos() -} -func (sl byPos) Swap(i, j int) { - sl[i], sl[j] = sl[j], sl[i] -} - -// NodeDescription returns a description of the concrete type of n suitable -// for a user interface. -// -// TODO(adonovan): in some cases (e.g. Field, FieldList, Ident, -// StarExpr) we could be much more specific given the path to the AST -// root. Perhaps we should do that. -// -func NodeDescription(n ast.Node) string { - switch n := n.(type) { - case *ast.ArrayType: - return "array type" - case *ast.AssignStmt: - return "assignment" - case *ast.BadDecl: - return "bad declaration" - case *ast.BadExpr: - return "bad expression" - case *ast.BadStmt: - return "bad statement" - case *ast.BasicLit: - return "basic literal" - case *ast.BinaryExpr: - return fmt.Sprintf("binary %s operation", n.Op) - case *ast.BlockStmt: - return "block" - case *ast.BranchStmt: - switch n.Tok { - case token.BREAK: - return "break statement" - case token.CONTINUE: - return "continue statement" - case token.GOTO: - return "goto statement" - case token.FALLTHROUGH: - return "fall-through statement" - } - case *ast.CallExpr: - return "function call (or conversion)" - case *ast.CaseClause: - return "case clause" - case *ast.ChanType: - return "channel type" - case *ast.CommClause: - return "communication clause" - case *ast.Comment: - return "comment" - case *ast.CommentGroup: - return "comment group" - case *ast.CompositeLit: - return "composite literal" - case *ast.DeclStmt: - return NodeDescription(n.Decl) + " statement" - case *ast.DeferStmt: - return "defer statement" - case *ast.Ellipsis: - return "ellipsis" - case *ast.EmptyStmt: - return "empty statement" - case *ast.ExprStmt: - return "expression statement" - case *ast.Field: - // Can be any of these: - // struct {x, y int} -- struct field(s) - // struct {T} -- anon struct field - // interface {I} -- interface embedding - // interface {f()} -- interface method - // func (A) func(B) C -- receiver, param(s), result(s) - return "field/method/parameter" - case *ast.FieldList: - return "field/method/parameter list" - case *ast.File: - return "source file" - case *ast.ForStmt: - return "for loop" - case *ast.FuncDecl: - return "function declaration" - case *ast.FuncLit: - return "function literal" - case *ast.FuncType: - return "function type" - case *ast.GenDecl: - switch n.Tok { - case token.IMPORT: - return "import declaration" - case token.CONST: - return "constant declaration" - case token.TYPE: - return "type declaration" - case token.VAR: - return "variable declaration" - } - case *ast.GoStmt: - return "go statement" - case *ast.Ident: - return "identifier" - case *ast.IfStmt: - return "if statement" - case *ast.ImportSpec: - return "import specification" - case *ast.IncDecStmt: - if n.Tok == token.INC { - return "increment statement" - } - return "decrement statement" - case *ast.IndexExpr: - return "index expression" - case *ast.InterfaceType: - return "interface type" - case *ast.KeyValueExpr: - return "key/value association" - case *ast.LabeledStmt: - return "statement label" - case *ast.MapType: - return "map type" - case *ast.Package: - return "package" - case *ast.ParenExpr: - return "parenthesized " + NodeDescription(n.X) - case *ast.RangeStmt: - return "range loop" - case *ast.ReturnStmt: - return "return statement" - case *ast.SelectStmt: - return "select statement" - case *ast.SelectorExpr: - return "selector" - case *ast.SendStmt: - return "channel send" - case *ast.SliceExpr: - return "slice expression" - case *ast.StarExpr: - return "*-operation" // load/store expr or pointer type - case *ast.StructType: - return "struct type" - case *ast.SwitchStmt: - return "switch statement" - case *ast.TypeAssertExpr: - return "type assertion" - case *ast.TypeSpec: - return "type specification" - case *ast.TypeSwitchStmt: - return "type switch" - case *ast.UnaryExpr: - return fmt.Sprintf("unary %s operation", n.Op) - case *ast.ValueSpec: - return "value specification" - - } - panic(fmt.Sprintf("unexpected node type: %T", n)) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/imports.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/imports.go deleted file mode 100644 index a47bcfa3f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/imports.go +++ /dev/null @@ -1,400 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package astutil contains common utilities for working with the Go AST. -package astutil - -import ( - "fmt" - "go/ast" - "go/token" - "strconv" - "strings" -) - -// AddImport adds the import path to the file f, if absent. -func AddImport(fset *token.FileSet, f *ast.File, ipath string) (added bool) { - return AddNamedImport(fset, f, "", ipath) -} - -// AddNamedImport adds the import path to the file f, if absent. -// If name is not empty, it is used to rename the import. -// -// For example, calling -// AddNamedImport(fset, f, "pathpkg", "path") -// adds -// import pathpkg "path" -func AddNamedImport(fset *token.FileSet, f *ast.File, name, ipath string) (added bool) { - if imports(f, ipath) { - return false - } - - newImport := &ast.ImportSpec{ - Path: &ast.BasicLit{ - Kind: token.STRING, - Value: strconv.Quote(ipath), - }, - } - if name != "" { - newImport.Name = &ast.Ident{Name: name} - } - - // Find an import decl to add to. - // The goal is to find an existing import - // whose import path has the longest shared - // prefix with ipath. - var ( - bestMatch = -1 // length of longest shared prefix - lastImport = -1 // index in f.Decls of the file's final import decl - impDecl *ast.GenDecl // import decl containing the best match - impIndex = -1 // spec index in impDecl containing the best match - ) - for i, decl := range f.Decls { - gen, ok := decl.(*ast.GenDecl) - if ok && gen.Tok == token.IMPORT { - lastImport = i - // Do not add to import "C", to avoid disrupting the - // association with its doc comment, breaking cgo. - if declImports(gen, "C") { - continue - } - - // Match an empty import decl if that's all that is available. - if len(gen.Specs) == 0 && bestMatch == -1 { - impDecl = gen - } - - // Compute longest shared prefix with imports in this group. - for j, spec := range gen.Specs { - impspec := spec.(*ast.ImportSpec) - n := matchLen(importPath(impspec), ipath) - if n > bestMatch { - bestMatch = n - impDecl = gen - impIndex = j - } - } - } - } - - // If no import decl found, add one after the last import. - if impDecl == nil { - impDecl = &ast.GenDecl{ - Tok: token.IMPORT, - } - if lastImport >= 0 { - impDecl.TokPos = f.Decls[lastImport].End() - } else { - // There are no existing imports. - // Our new import goes after the package declaration and after - // the comment, if any, that starts on the same line as the - // package declaration. - impDecl.TokPos = f.Package - - file := fset.File(f.Package) - pkgLine := file.Line(f.Package) - for _, c := range f.Comments { - if file.Line(c.Pos()) > pkgLine { - break - } - impDecl.TokPos = c.End() - } - } - f.Decls = append(f.Decls, nil) - copy(f.Decls[lastImport+2:], f.Decls[lastImport+1:]) - f.Decls[lastImport+1] = impDecl - } - - // Insert new import at insertAt. - insertAt := 0 - if impIndex >= 0 { - // insert after the found import - insertAt = impIndex + 1 - } - impDecl.Specs = append(impDecl.Specs, nil) - copy(impDecl.Specs[insertAt+1:], impDecl.Specs[insertAt:]) - impDecl.Specs[insertAt] = newImport - pos := impDecl.Pos() - if insertAt > 0 { - // If there is a comment after an existing import, preserve the comment - // position by adding the new import after the comment. - if spec, ok := impDecl.Specs[insertAt-1].(*ast.ImportSpec); ok && spec.Comment != nil { - pos = spec.Comment.End() - } else { - // Assign same position as the previous import, - // so that the sorter sees it as being in the same block. - pos = impDecl.Specs[insertAt-1].Pos() - } - } - if newImport.Name != nil { - newImport.Name.NamePos = pos - } - newImport.Path.ValuePos = pos - newImport.EndPos = pos - - // Clean up parens. impDecl contains at least one spec. - if len(impDecl.Specs) == 1 { - // Remove unneeded parens. - impDecl.Lparen = token.NoPos - } else if !impDecl.Lparen.IsValid() { - // impDecl needs parens added. - impDecl.Lparen = impDecl.Specs[0].Pos() - } - - f.Imports = append(f.Imports, newImport) - - if len(f.Decls) <= 1 { - return true - } - - // Merge all the import declarations into the first one. - var first *ast.GenDecl - for i, decl := range f.Decls { - gen, ok := decl.(*ast.GenDecl) - if !ok || gen.Tok != token.IMPORT || declImports(gen, "C") { - continue - } - if first == nil { - first = gen - continue // Don't touch the first one. - } - // Move the imports of the other import declaration to the first one. - for _, spec := range gen.Specs { - spec.(*ast.ImportSpec).Path.ValuePos = first.Pos() - first.Specs = append(first.Specs, spec) - } - f.Decls = append(f.Decls[:i], f.Decls[i+1:]...) - } - - return true -} - -// DeleteImport deletes the import path from the file f, if present. -func DeleteImport(fset *token.FileSet, f *ast.File, path string) (deleted bool) { - return DeleteNamedImport(fset, f, "", path) -} - -// DeleteNamedImport deletes the import with the given name and path from the file f, if present. -func DeleteNamedImport(fset *token.FileSet, f *ast.File, name, path string) (deleted bool) { - var delspecs []*ast.ImportSpec - - // Find the import nodes that import path, if any. - for i := 0; i < len(f.Decls); i++ { - decl := f.Decls[i] - gen, ok := decl.(*ast.GenDecl) - if !ok || gen.Tok != token.IMPORT { - continue - } - for j := 0; j < len(gen.Specs); j++ { - spec := gen.Specs[j] - impspec := spec.(*ast.ImportSpec) - if impspec.Name == nil && name != "" { - continue - } - if impspec.Name != nil && impspec.Name.Name != name { - continue - } - if importPath(impspec) != path { - continue - } - - // We found an import spec that imports path. - // Delete it. - delspecs = append(delspecs, impspec) - deleted = true - copy(gen.Specs[j:], gen.Specs[j+1:]) - gen.Specs = gen.Specs[:len(gen.Specs)-1] - - // If this was the last import spec in this decl, - // delete the decl, too. - if len(gen.Specs) == 0 { - copy(f.Decls[i:], f.Decls[i+1:]) - f.Decls = f.Decls[:len(f.Decls)-1] - i-- - break - } else if len(gen.Specs) == 1 { - gen.Lparen = token.NoPos // drop parens - } - if j > 0 { - lastImpspec := gen.Specs[j-1].(*ast.ImportSpec) - lastLine := fset.Position(lastImpspec.Path.ValuePos).Line - line := fset.Position(impspec.Path.ValuePos).Line - - // We deleted an entry but now there may be - // a blank line-sized hole where the import was. - if line-lastLine > 1 { - // There was a blank line immediately preceding the deleted import, - // so there's no need to close the hole. - // Do nothing. - } else { - // There was no blank line. Close the hole. - fset.File(gen.Rparen).MergeLine(line) - } - } - j-- - } - } - - // Delete them from f.Imports. - for i := 0; i < len(f.Imports); i++ { - imp := f.Imports[i] - for j, del := range delspecs { - if imp == del { - copy(f.Imports[i:], f.Imports[i+1:]) - f.Imports = f.Imports[:len(f.Imports)-1] - copy(delspecs[j:], delspecs[j+1:]) - delspecs = delspecs[:len(delspecs)-1] - i-- - break - } - } - } - - if len(delspecs) > 0 { - panic(fmt.Sprintf("deleted specs from Decls but not Imports: %v", delspecs)) - } - - return -} - -// RewriteImport rewrites any import of path oldPath to path newPath. -func RewriteImport(fset *token.FileSet, f *ast.File, oldPath, newPath string) (rewrote bool) { - for _, imp := range f.Imports { - if importPath(imp) == oldPath { - rewrote = true - // record old End, because the default is to compute - // it using the length of imp.Path.Value. - imp.EndPos = imp.End() - imp.Path.Value = strconv.Quote(newPath) - } - } - return -} - -// UsesImport reports whether a given import is used. -func UsesImport(f *ast.File, path string) (used bool) { - spec := importSpec(f, path) - if spec == nil { - return - } - - name := spec.Name.String() - switch name { - case "": - // If the package name is not explicitly specified, - // make an educated guess. This is not guaranteed to be correct. - lastSlash := strings.LastIndex(path, "/") - if lastSlash == -1 { - name = path - } else { - name = path[lastSlash+1:] - } - case "_", ".": - // Not sure if this import is used - err on the side of caution. - return true - } - - ast.Walk(visitFn(func(n ast.Node) { - sel, ok := n.(*ast.SelectorExpr) - if ok && isTopName(sel.X, name) { - used = true - } - }), f) - - return -} - -type visitFn func(node ast.Node) - -func (fn visitFn) Visit(node ast.Node) ast.Visitor { - fn(node) - return fn -} - -// imports returns true if f imports path. -func imports(f *ast.File, path string) bool { - return importSpec(f, path) != nil -} - -// importSpec returns the import spec if f imports path, -// or nil otherwise. -func importSpec(f *ast.File, path string) *ast.ImportSpec { - for _, s := range f.Imports { - if importPath(s) == path { - return s - } - } - return nil -} - -// importPath returns the unquoted import path of s, -// or "" if the path is not properly quoted. -func importPath(s *ast.ImportSpec) string { - t, err := strconv.Unquote(s.Path.Value) - if err == nil { - return t - } - return "" -} - -// declImports reports whether gen contains an import of path. -func declImports(gen *ast.GenDecl, path string) bool { - if gen.Tok != token.IMPORT { - return false - } - for _, spec := range gen.Specs { - impspec := spec.(*ast.ImportSpec) - if importPath(impspec) == path { - return true - } - } - return false -} - -// matchLen returns the length of the longest path segment prefix shared by x and y. -func matchLen(x, y string) int { - n := 0 - for i := 0; i < len(x) && i < len(y) && x[i] == y[i]; i++ { - if x[i] == '/' { - n++ - } - } - return n -} - -// isTopName returns true if n is a top-level unresolved identifier with the given name. -func isTopName(n ast.Expr, name string) bool { - id, ok := n.(*ast.Ident) - return ok && id.Name == name && id.Obj == nil -} - -// Imports returns the file imports grouped by paragraph. -func Imports(fset *token.FileSet, f *ast.File) [][]*ast.ImportSpec { - var groups [][]*ast.ImportSpec - - for _, decl := range f.Decls { - genDecl, ok := decl.(*ast.GenDecl) - if !ok || genDecl.Tok != token.IMPORT { - break - } - - group := []*ast.ImportSpec{} - - var lastLine int - for _, spec := range genDecl.Specs { - importSpec := spec.(*ast.ImportSpec) - pos := importSpec.Path.ValuePos - line := fset.Position(pos).Line - if lastLine > 0 && pos > 0 && line-lastLine > 1 { - groups = append(groups, group) - group = []*ast.ImportSpec{} - } - group = append(group, importSpec) - lastLine = line - } - groups = append(groups, group) - } - - return groups -} diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/util.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/util.go deleted file mode 100644 index 763062982..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/ast/astutil/util.go +++ /dev/null @@ -1,14 +0,0 @@ -package astutil - -import "go/ast" - -// Unparen returns e with any enclosing parentheses stripped. -func Unparen(e ast.Expr) ast.Expr { - for { - p, ok := e.(*ast.ParenExpr) - if !ok { - return e - } - e = p.X - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/allpackages.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/allpackages.go deleted file mode 100644 index 30208095f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/allpackages.go +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package buildutil provides utilities related to the go/build -// package in the standard library. -// -// All I/O is done via the build.Context file system interface, which must -// be concurrency-safe. -package buildutil - -import ( - "go/build" - "os" - "path/filepath" - "sort" - "strings" - "sync" -) - -// AllPackages returns the package path of each Go package in any source -// directory of the specified build context (e.g. $GOROOT or an element -// of $GOPATH). Errors are ignored. The results are sorted. -// All package paths are canonical, and thus may contain "/vendor/". -// -// The result may include import paths for directories that contain no -// *.go files, such as "archive" (in $GOROOT/src). -// -// All I/O is done via the build.Context file system interface, -// which must be concurrency-safe. -// -func AllPackages(ctxt *build.Context) []string { - var list []string - ForEachPackage(ctxt, func(pkg string, _ error) { - list = append(list, pkg) - }) - sort.Strings(list) - return list -} - -// ForEachPackage calls the found function with the package path of -// each Go package it finds in any source directory of the specified -// build context (e.g. $GOROOT or an element of $GOPATH). -// All package paths are canonical, and thus may contain "/vendor/". -// -// If the package directory exists but could not be read, the second -// argument to the found function provides the error. -// -// All I/O is done via the build.Context file system interface, -// which must be concurrency-safe. -// -func ForEachPackage(ctxt *build.Context, found func(importPath string, err error)) { - ch := make(chan item) - - var wg sync.WaitGroup - for _, root := range ctxt.SrcDirs() { - root := root - wg.Add(1) - go func() { - allPackages(ctxt, root, ch) - wg.Done() - }() - } - go func() { - wg.Wait() - close(ch) - }() - - // All calls to found occur in the caller's goroutine. - for i := range ch { - found(i.importPath, i.err) - } -} - -type item struct { - importPath string - err error // (optional) -} - -// We use a process-wide counting semaphore to limit -// the number of parallel calls to ReadDir. -var ioLimit = make(chan bool, 20) - -func allPackages(ctxt *build.Context, root string, ch chan<- item) { - root = filepath.Clean(root) + string(os.PathSeparator) - - var wg sync.WaitGroup - - var walkDir func(dir string) - walkDir = func(dir string) { - // Avoid .foo, _foo, and testdata directory trees. - base := filepath.Base(dir) - if base == "" || base[0] == '.' || base[0] == '_' || base == "testdata" { - return - } - - pkg := filepath.ToSlash(strings.TrimPrefix(dir, root)) - - // Prune search if we encounter any of these import paths. - switch pkg { - case "builtin": - return - } - - ioLimit <- true - files, err := ReadDir(ctxt, dir) - <-ioLimit - if pkg != "" || err != nil { - ch <- item{pkg, err} - } - for _, fi := range files { - fi := fi - if fi.IsDir() { - wg.Add(1) - go func() { - walkDir(filepath.Join(dir, fi.Name())) - wg.Done() - }() - } - } - } - - walkDir(root) - wg.Wait() -} - -// ExpandPatterns returns the set of packages matched by patterns, -// which may have the following forms: -// -// golang.org/x/tools/cmd/guru # a single package -// golang.org/x/tools/... # all packages beneath dir -// ... # the entire workspace. -// -// Order is significant: a pattern preceded by '-' removes matching -// packages from the set. For example, these patterns match all encoding -// packages except encoding/xml: -// -// encoding/... -encoding/xml -// -func ExpandPatterns(ctxt *build.Context, patterns []string) map[string]bool { - // TODO(adonovan): support other features of 'go list': - // - "std"/"cmd"/"all" meta-packages - // - "..." not at the end of a pattern - // - relative patterns using "./" or "../" prefix - - pkgs := make(map[string]bool) - doPkg := func(pkg string, neg bool) { - if neg { - delete(pkgs, pkg) - } else { - pkgs[pkg] = true - } - } - - // Scan entire workspace if wildcards are present. - // TODO(adonovan): opt: scan only the necessary subtrees of the workspace. - var all []string - for _, arg := range patterns { - if strings.HasSuffix(arg, "...") { - all = AllPackages(ctxt) - break - } - } - - for _, arg := range patterns { - if arg == "" { - continue - } - - neg := arg[0] == '-' - if neg { - arg = arg[1:] - } - - if arg == "..." { - // ... matches all packages - for _, pkg := range all { - doPkg(pkg, neg) - } - } else if dir := strings.TrimSuffix(arg, "/..."); dir != arg { - // dir/... matches all packages beneath dir - for _, pkg := range all { - if strings.HasPrefix(pkg, dir) && - (len(pkg) == len(dir) || pkg[len(dir)] == '/') { - doPkg(pkg, neg) - } - } - } else { - // single package - doPkg(arg, neg) - } - } - - return pkgs -} diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/fakecontext.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/fakecontext.go deleted file mode 100644 index 24cbcbea2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/fakecontext.go +++ /dev/null @@ -1,108 +0,0 @@ -package buildutil - -import ( - "fmt" - "go/build" - "io" - "io/ioutil" - "os" - "path" - "path/filepath" - "sort" - "strings" - "time" -) - -// FakeContext returns a build.Context for the fake file tree specified -// by pkgs, which maps package import paths to a mapping from file base -// names to contents. -// -// The fake Context has a GOROOT of "/go" and no GOPATH, and overrides -// the necessary file access methods to read from memory instead of the -// real file system. -// -// Unlike a real file tree, the fake one has only two levels---packages -// and files---so ReadDir("/go/src/") returns all packages under -// /go/src/ including, for instance, "math" and "math/big". -// ReadDir("/go/src/math/big") would return all the files in the -// "math/big" package. -// -func FakeContext(pkgs map[string]map[string]string) *build.Context { - clean := func(filename string) string { - f := path.Clean(filepath.ToSlash(filename)) - // Removing "/go/src" while respecting segment - // boundaries has this unfortunate corner case: - if f == "/go/src" { - return "" - } - return strings.TrimPrefix(f, "/go/src/") - } - - ctxt := build.Default // copy - ctxt.GOROOT = "/go" - ctxt.GOPATH = "" - ctxt.IsDir = func(dir string) bool { - dir = clean(dir) - if dir == "" { - return true // needed by (*build.Context).SrcDirs - } - return pkgs[dir] != nil - } - ctxt.ReadDir = func(dir string) ([]os.FileInfo, error) { - dir = clean(dir) - var fis []os.FileInfo - if dir == "" { - // enumerate packages - for importPath := range pkgs { - fis = append(fis, fakeDirInfo(importPath)) - } - } else { - // enumerate files of package - for basename := range pkgs[dir] { - fis = append(fis, fakeFileInfo(basename)) - } - } - sort.Sort(byName(fis)) - return fis, nil - } - ctxt.OpenFile = func(filename string) (io.ReadCloser, error) { - filename = clean(filename) - dir, base := path.Split(filename) - content, ok := pkgs[path.Clean(dir)][base] - if !ok { - return nil, fmt.Errorf("file not found: %s", filename) - } - return ioutil.NopCloser(strings.NewReader(content)), nil - } - ctxt.IsAbsPath = func(path string) bool { - path = filepath.ToSlash(path) - // Don't rely on the default (filepath.Path) since on - // Windows, it reports virtual paths as non-absolute. - return strings.HasPrefix(path, "/") - } - return &ctxt -} - -type byName []os.FileInfo - -func (s byName) Len() int { return len(s) } -func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] } -func (s byName) Less(i, j int) bool { return s[i].Name() < s[j].Name() } - -type fakeFileInfo string - -func (fi fakeFileInfo) Name() string { return string(fi) } -func (fakeFileInfo) Sys() interface{} { return nil } -func (fakeFileInfo) ModTime() time.Time { return time.Time{} } -func (fakeFileInfo) IsDir() bool { return false } -func (fakeFileInfo) Size() int64 { return 0 } -func (fakeFileInfo) Mode() os.FileMode { return 0644 } - -type fakeDirInfo string - -func (fd fakeDirInfo) Name() string { return string(fd) } -func (fakeDirInfo) Sys() interface{} { return nil } -func (fakeDirInfo) ModTime() time.Time { return time.Time{} } -func (fakeDirInfo) IsDir() bool { return true } -func (fakeDirInfo) Size() int64 { return 0 } -func (fakeDirInfo) Mode() os.FileMode { return 0755 } diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/tags.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/tags.go deleted file mode 100644 index 486606f37..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/tags.go +++ /dev/null @@ -1,75 +0,0 @@ -package buildutil - -// This logic was copied from stringsFlag from $GOROOT/src/cmd/go/build.go. - -import "fmt" - -const TagsFlagDoc = "a list of `build tags` to consider satisfied during the build. " + - "For more information about build tags, see the description of " + - "build constraints in the documentation for the go/build package" - -// TagsFlag is an implementation of the flag.Value and flag.Getter interfaces that parses -// a flag value in the same manner as go build's -tags flag and -// populates a []string slice. -// -// See $GOROOT/src/go/build/doc.go for description of build tags. -// See $GOROOT/src/cmd/go/doc.go for description of 'go build -tags' flag. -// -// Example: -// flag.Var((*buildutil.TagsFlag)(&build.Default.BuildTags), "tags", buildutil.TagsFlagDoc) -type TagsFlag []string - -func (v *TagsFlag) Set(s string) error { - var err error - *v, err = splitQuotedFields(s) - if *v == nil { - *v = []string{} - } - return err -} - -func (v *TagsFlag) Get() interface{} { return *v } - -func splitQuotedFields(s string) ([]string, error) { - // Split fields allowing '' or "" around elements. - // Quotes further inside the string do not count. - var f []string - for len(s) > 0 { - for len(s) > 0 && isSpaceByte(s[0]) { - s = s[1:] - } - if len(s) == 0 { - break - } - // Accepted quoted string. No unescaping inside. - if s[0] == '"' || s[0] == '\'' { - quote := s[0] - s = s[1:] - i := 0 - for i < len(s) && s[i] != quote { - i++ - } - if i >= len(s) { - return nil, fmt.Errorf("unterminated %c string", quote) - } - f = append(f, s[:i]) - s = s[i+1:] - continue - } - i := 0 - for i < len(s) && !isSpaceByte(s[i]) { - i++ - } - f = append(f, s[:i]) - s = s[i:] - } - return f, nil -} - -func (v *TagsFlag) String() string { - return "" -} - -func isSpaceByte(c byte) bool { - return c == ' ' || c == '\t' || c == '\n' || c == '\r' -} diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/util.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/util.go deleted file mode 100644 index 0e093fc03..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/buildutil/util.go +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package buildutil - -import ( - "fmt" - "go/ast" - "go/build" - "go/parser" - "go/token" - "io" - "io/ioutil" - "os" - "path" - "path/filepath" - "runtime" - "strings" -) - -// ParseFile behaves like parser.ParseFile, -// but uses the build context's file system interface, if any. -// -// If file is not absolute (as defined by IsAbsPath), the (dir, file) -// components are joined using JoinPath; dir must be absolute. -// -// The displayPath function, if provided, is used to transform the -// filename that will be attached to the ASTs. -// -// TODO(adonovan): call this from go/loader.parseFiles when the tree thaws. -// -func ParseFile(fset *token.FileSet, ctxt *build.Context, displayPath func(string) string, dir string, file string, mode parser.Mode) (*ast.File, error) { - if !IsAbsPath(ctxt, file) { - file = JoinPath(ctxt, dir, file) - } - rd, err := OpenFile(ctxt, file) - if err != nil { - return nil, err - } - defer rd.Close() // ignore error - if displayPath != nil { - file = displayPath(file) - } - return parser.ParseFile(fset, file, rd, mode) -} - -// ContainingPackage returns the package containing filename. -// -// If filename is not absolute, it is interpreted relative to working directory dir. -// All I/O is via the build context's file system interface, if any. -// -// The '...Files []string' fields of the resulting build.Package are not -// populated (build.FindOnly mode). -// -// TODO(adonovan): call this from oracle when the tree thaws. -// -func ContainingPackage(ctxt *build.Context, dir, filename string) (*build.Package, error) { - if !IsAbsPath(ctxt, filename) { - filename = JoinPath(ctxt, dir, filename) - } - - // We must not assume the file tree uses - // "/" always, - // `\` always, - // or os.PathSeparator (which varies by platform), - // but to make any progress, we are forced to assume that - // paths will not use `\` unless the PathSeparator - // is also `\`, thus we can rely on filepath.ToSlash for some sanity. - - dirSlash := path.Dir(filepath.ToSlash(filename)) + "/" - - // We assume that no source root (GOPATH[i] or GOROOT) contains any other. - for _, srcdir := range ctxt.SrcDirs() { - srcdirSlash := filepath.ToSlash(srcdir) + "/" - if dirHasPrefix(dirSlash, srcdirSlash) { - importPath := dirSlash[len(srcdirSlash) : len(dirSlash)-len("/")] - return ctxt.Import(importPath, dir, build.FindOnly) - } - } - - return nil, fmt.Errorf("can't find package containing %s", filename) -} - -// dirHasPrefix tests whether the directory dir begins with prefix. -func dirHasPrefix(dir, prefix string) bool { - if runtime.GOOS != "windows" { - return strings.HasPrefix(dir, prefix) - } - return len(dir) >= len(prefix) && strings.EqualFold(dir[:len(prefix)], prefix) -} - -// -- Effective methods of file system interface ------------------------- - -// (go/build.Context defines these as methods, but does not export them.) - -// TODO(adonovan): HasSubdir? - -// FileExists returns true if the specified file exists, -// using the build context's file system interface. -func FileExists(ctxt *build.Context, path string) bool { - if ctxt.OpenFile != nil { - r, err := ctxt.OpenFile(path) - if err != nil { - return false - } - r.Close() // ignore error - return true - } - _, err := os.Stat(path) - return err == nil -} - -// OpenFile behaves like os.Open, -// but uses the build context's file system interface, if any. -func OpenFile(ctxt *build.Context, path string) (io.ReadCloser, error) { - if ctxt.OpenFile != nil { - return ctxt.OpenFile(path) - } - return os.Open(path) -} - -// IsAbsPath behaves like filepath.IsAbs, -// but uses the build context's file system interface, if any. -func IsAbsPath(ctxt *build.Context, path string) bool { - if ctxt.IsAbsPath != nil { - return ctxt.IsAbsPath(path) - } - return filepath.IsAbs(path) -} - -// JoinPath behaves like filepath.Join, -// but uses the build context's file system interface, if any. -func JoinPath(ctxt *build.Context, path ...string) string { - if ctxt.JoinPath != nil { - return ctxt.JoinPath(path...) - } - return filepath.Join(path...) -} - -// IsDir behaves like os.Stat plus IsDir, -// but uses the build context's file system interface, if any. -func IsDir(ctxt *build.Context, path string) bool { - if ctxt.IsDir != nil { - return ctxt.IsDir(path) - } - fi, err := os.Stat(path) - return err == nil && fi.IsDir() -} - -// ReadDir behaves like ioutil.ReadDir, -// but uses the build context's file system interface, if any. -func ReadDir(ctxt *build.Context, path string) ([]os.FileInfo, error) { - if ctxt.ReadDir != nil { - return ctxt.ReadDir(path) - } - return ioutil.ReadDir(path) -} - -// SplitPathList behaves like filepath.SplitList, -// but uses the build context's file system interface, if any. -func SplitPathList(ctxt *build.Context, s string) []string { - if ctxt.SplitPathList != nil { - return ctxt.SplitPathList(s) - } - return filepath.SplitList(s) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/cgo.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/cgo.go deleted file mode 100644 index 245b91491..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/cgo.go +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build go1.5 - -package loader - -// This file handles cgo preprocessing of files containing `import "C"`. -// -// DESIGN -// -// The approach taken is to run the cgo processor on the package's -// CgoFiles and parse the output, faking the filenames of the -// resulting ASTs so that the synthetic file containing the C types is -// called "C" (e.g. "~/go/src/net/C") and the preprocessed files -// have their original names (e.g. "~/go/src/net/cgo_unix.go"), -// not the names of the actual temporary files. -// -// The advantage of this approach is its fidelity to 'go build'. The -// downside is that the token.Position.Offset for each AST node is -// incorrect, being an offset within the temporary file. Line numbers -// should still be correct because of the //line comments. -// -// The logic of this file is mostly plundered from the 'go build' -// tool, which also invokes the cgo preprocessor. -// -// -// REJECTED ALTERNATIVE -// -// An alternative approach that we explored is to extend go/types' -// Importer mechanism to provide the identity of the importing package -// so that each time `import "C"` appears it resolves to a different -// synthetic package containing just the objects needed in that case. -// The loader would invoke cgo but parse only the cgo_types.go file -// defining the package-level objects, discarding the other files -// resulting from preprocessing. -// -// The benefit of this approach would have been that source-level -// syntax information would correspond exactly to the original cgo -// file, with no preprocessing involved, making source tools like -// godoc, oracle, and eg happy. However, the approach was rejected -// due to the additional complexity it would impose on go/types. (It -// made for a beautiful demo, though.) -// -// cgo files, despite their *.go extension, are not legal Go source -// files per the specification since they may refer to unexported -// members of package "C" such as C.int. Also, a function such as -// C.getpwent has in effect two types, one matching its C type and one -// which additionally returns (errno C.int). The cgo preprocessor -// uses name mangling to distinguish these two functions in the -// processed code, but go/types would need to duplicate this logic in -// its handling of function calls, analogous to the treatment of map -// lookups in which y=m[k] and y,ok=m[k] are both legal. - -import ( - "fmt" - "go/ast" - "go/build" - "go/parser" - "go/token" - "io/ioutil" - "log" - "os" - "os/exec" - "path/filepath" - "regexp" - "strings" -) - -// processCgoFiles invokes the cgo preprocessor on bp.CgoFiles, parses -// the output and returns the resulting ASTs. -// -func processCgoFiles(bp *build.Package, fset *token.FileSet, DisplayPath func(path string) string, mode parser.Mode) ([]*ast.File, error) { - tmpdir, err := ioutil.TempDir("", strings.Replace(bp.ImportPath, "/", "_", -1)+"_C") - if err != nil { - return nil, err - } - defer os.RemoveAll(tmpdir) - - pkgdir := bp.Dir - if DisplayPath != nil { - pkgdir = DisplayPath(pkgdir) - } - - cgoFiles, cgoDisplayFiles, err := runCgo(bp, pkgdir, tmpdir) - if err != nil { - return nil, err - } - var files []*ast.File - for i := range cgoFiles { - rd, err := os.Open(cgoFiles[i]) - if err != nil { - return nil, err - } - display := filepath.Join(bp.Dir, cgoDisplayFiles[i]) - f, err := parser.ParseFile(fset, display, rd, mode) - rd.Close() - if err != nil { - return nil, err - } - files = append(files, f) - } - return files, nil -} - -var cgoRe = regexp.MustCompile(`[/\\:]`) - -// runCgo invokes the cgo preprocessor on bp.CgoFiles and returns two -// lists of files: the resulting processed files (in temporary -// directory tmpdir) and the corresponding names of the unprocessed files. -// -// runCgo is adapted from (*builder).cgo in -// $GOROOT/src/cmd/go/build.go, but these features are unsupported: -// Objective C, CGOPKGPATH, CGO_FLAGS. -// -func runCgo(bp *build.Package, pkgdir, tmpdir string) (files, displayFiles []string, err error) { - cgoCPPFLAGS, _, _, _ := cflags(bp, true) - _, cgoexeCFLAGS, _, _ := cflags(bp, false) - - if len(bp.CgoPkgConfig) > 0 { - pcCFLAGS, err := pkgConfigFlags(bp) - if err != nil { - return nil, nil, err - } - cgoCPPFLAGS = append(cgoCPPFLAGS, pcCFLAGS...) - } - - // Allows including _cgo_export.h from .[ch] files in the package. - cgoCPPFLAGS = append(cgoCPPFLAGS, "-I", tmpdir) - - // _cgo_gotypes.go (displayed "C") contains the type definitions. - files = append(files, filepath.Join(tmpdir, "_cgo_gotypes.go")) - displayFiles = append(displayFiles, "C") - for _, fn := range bp.CgoFiles { - // "foo.cgo1.go" (displayed "foo.go") is the processed Go source. - f := cgoRe.ReplaceAllString(fn[:len(fn)-len("go")], "_") - files = append(files, filepath.Join(tmpdir, f+"cgo1.go")) - displayFiles = append(displayFiles, fn) - } - - var cgoflags []string - if bp.Goroot && bp.ImportPath == "runtime/cgo" { - cgoflags = append(cgoflags, "-import_runtime_cgo=false") - } - if bp.Goroot && bp.ImportPath == "runtime/race" || bp.ImportPath == "runtime/cgo" { - cgoflags = append(cgoflags, "-import_syscall=false") - } - - args := stringList( - "go", "tool", "cgo", "-objdir", tmpdir, cgoflags, "--", - cgoCPPFLAGS, cgoexeCFLAGS, bp.CgoFiles, - ) - if false { - log.Printf("Running cgo for package %q: %s (dir=%s)", bp.ImportPath, args, pkgdir) - } - cmd := exec.Command(args[0], args[1:]...) - cmd.Dir = pkgdir - cmd.Stdout = os.Stderr - cmd.Stderr = os.Stderr - if err := cmd.Run(); err != nil { - return nil, nil, fmt.Errorf("cgo failed: %s: %s", args, err) - } - - return files, displayFiles, nil -} - -// -- unmodified from 'go build' --------------------------------------- - -// Return the flags to use when invoking the C or C++ compilers, or cgo. -func cflags(p *build.Package, def bool) (cppflags, cflags, cxxflags, ldflags []string) { - var defaults string - if def { - defaults = "-g -O2" - } - - cppflags = stringList(envList("CGO_CPPFLAGS", ""), p.CgoCPPFLAGS) - cflags = stringList(envList("CGO_CFLAGS", defaults), p.CgoCFLAGS) - cxxflags = stringList(envList("CGO_CXXFLAGS", defaults), p.CgoCXXFLAGS) - ldflags = stringList(envList("CGO_LDFLAGS", defaults), p.CgoLDFLAGS) - return -} - -// envList returns the value of the given environment variable broken -// into fields, using the default value when the variable is empty. -func envList(key, def string) []string { - v := os.Getenv(key) - if v == "" { - v = def - } - return strings.Fields(v) -} - -// stringList's arguments should be a sequence of string or []string values. -// stringList flattens them into a single []string. -func stringList(args ...interface{}) []string { - var x []string - for _, arg := range args { - switch arg := arg.(type) { - case []string: - x = append(x, arg...) - case string: - x = append(x, arg) - default: - panic("stringList: invalid argument") - } - } - return x -} diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/cgo_pkgconfig.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/cgo_pkgconfig.go deleted file mode 100644 index de57422df..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/cgo_pkgconfig.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package loader - -import ( - "errors" - "fmt" - "go/build" - "os/exec" - "strings" -) - -// pkgConfig runs pkg-config with the specified arguments and returns the flags it prints. -func pkgConfig(mode string, pkgs []string) (flags []string, err error) { - cmd := exec.Command("pkg-config", append([]string{mode}, pkgs...)...) - out, err := cmd.CombinedOutput() - if err != nil { - s := fmt.Sprintf("%s failed: %v", strings.Join(cmd.Args, " "), err) - if len(out) > 0 { - s = fmt.Sprintf("%s: %s", s, out) - } - return nil, errors.New(s) - } - if len(out) > 0 { - flags = strings.Fields(string(out)) - } - return -} - -// pkgConfigFlags calls pkg-config if needed and returns the cflags -// needed to build the package. -func pkgConfigFlags(p *build.Package) (cflags []string, err error) { - if len(p.CgoPkgConfig) == 0 { - return nil, nil - } - return pkgConfig("--cflags", p.CgoPkgConfig) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/doc.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/doc.go deleted file mode 100644 index 9b51c9ecd..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/doc.go +++ /dev/null @@ -1,205 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package loader loads a complete Go program from source code, parsing -// and type-checking the initial packages plus their transitive closure -// of dependencies. The ASTs and the derived facts are retained for -// later use. -// -// THIS INTERFACE IS EXPERIMENTAL AND IS LIKELY TO CHANGE. -// -// The package defines two primary types: Config, which specifies a -// set of initial packages to load and various other options; and -// Program, which is the result of successfully loading the packages -// specified by a configuration. -// -// The configuration can be set directly, but *Config provides various -// convenience methods to simplify the common cases, each of which can -// be called any number of times. Finally, these are followed by a -// call to Load() to actually load and type-check the program. -// -// var conf loader.Config -// -// // Use the command-line arguments to specify -// // a set of initial packages to load from source. -// // See FromArgsUsage for help. -// rest, err := conf.FromArgs(os.Args[1:], wantTests) -// -// // Parse the specified files and create an ad hoc package with path "foo". -// // All files must have the same 'package' declaration. -// conf.CreateFromFilenames("foo", "foo.go", "bar.go") -// -// // Create an ad hoc package with path "foo" from -// // the specified already-parsed files. -// // All ASTs must have the same 'package' declaration. -// conf.CreateFromFiles("foo", parsedFiles) -// -// // Add "runtime" to the set of packages to be loaded. -// conf.Import("runtime") -// -// // Adds "fmt" and "fmt_test" to the set of packages -// // to be loaded. "fmt" will include *_test.go files. -// conf.ImportWithTests("fmt") -// -// // Finally, load all the packages specified by the configuration. -// prog, err := conf.Load() -// -// See examples_test.go for examples of API usage. -// -// -// CONCEPTS AND TERMINOLOGY -// -// The WORKSPACE is the set of packages accessible to the loader. The -// workspace is defined by Config.Build, a *build.Context. The -// default context treats subdirectories of $GOROOT and $GOPATH as -// packages, but this behavior may be overridden. -// -// An AD HOC package is one specified as a set of source files on the -// command line. In the simplest case, it may consist of a single file -// such as $GOROOT/src/net/http/triv.go. -// -// EXTERNAL TEST packages are those comprised of a set of *_test.go -// files all with the same 'package foo_test' declaration, all in the -// same directory. (go/build.Package calls these files XTestFiles.) -// -// An IMPORTABLE package is one that can be referred to by some import -// spec. Every importable package is uniquely identified by its -// PACKAGE PATH or just PATH, a string such as "fmt", "encoding/json", -// or "cmd/vendor/golang.org/x/arch/x86/x86asm". A package path -// typically denotes a subdirectory of the workspace. -// -// An import declaration uses an IMPORT PATH to refer to a package. -// Most import declarations use the package path as the import path. -// -// Due to VENDORING (https://golang.org/s/go15vendor), the -// interpretation of an import path may depend on the directory in which -// it appears. To resolve an import path to a package path, go/build -// must search the enclosing directories for a subdirectory named -// "vendor". -// -// ad hoc packages and external test packages are NON-IMPORTABLE. The -// path of an ad hoc package is inferred from the package -// declarations of its files and is therefore not a unique package key. -// For example, Config.CreatePkgs may specify two initial ad hoc -// packages, both with path "main". -// -// An AUGMENTED package is an importable package P plus all the -// *_test.go files with same 'package foo' declaration as P. -// (go/build.Package calls these files TestFiles.) -// -// The INITIAL packages are those specified in the configuration. A -// DEPENDENCY is a package loaded to satisfy an import in an initial -// package or another dependency. -// -package loader - -// IMPLEMENTATION NOTES -// -// 'go test', in-package test files, and import cycles -// --------------------------------------------------- -// -// An external test package may depend upon members of the augmented -// package that are not in the unaugmented package, such as functions -// that expose internals. (See bufio/export_test.go for an example.) -// So, the loader must ensure that for each external test package -// it loads, it also augments the corresponding non-test package. -// -// The import graph over n unaugmented packages must be acyclic; the -// import graph over n-1 unaugmented packages plus one augmented -// package must also be acyclic. ('go test' relies on this.) But the -// import graph over n augmented packages may contain cycles. -// -// First, all the (unaugmented) non-test packages and their -// dependencies are imported in the usual way; the loader reports an -// error if it detects an import cycle. -// -// Then, each package P for which testing is desired is augmented by -// the list P' of its in-package test files, by calling -// (*types.Checker).Files. This arrangement ensures that P' may -// reference definitions within P, but P may not reference definitions -// within P'. Furthermore, P' may import any other package, including -// ones that depend upon P, without an import cycle error. -// -// Consider two packages A and B, both of which have lists of -// in-package test files we'll call A' and B', and which have the -// following import graph edges: -// B imports A -// B' imports A -// A' imports B -// This last edge would be expected to create an error were it not -// for the special type-checking discipline above. -// Cycles of size greater than two are possible. For example: -// compress/bzip2/bzip2_test.go (package bzip2) imports "io/ioutil" -// io/ioutil/tempfile_test.go (package ioutil) imports "regexp" -// regexp/exec_test.go (package regexp) imports "compress/bzip2" -// -// -// Concurrency -// ----------- -// -// Let us define the import dependency graph as follows. Each node is a -// list of files passed to (Checker).Files at once. Many of these lists -// are the production code of an importable Go package, so those nodes -// are labelled by the package's path. The remaining nodes are -// ad hoc packages and lists of in-package *_test.go files that augment -// an importable package; those nodes have no label. -// -// The edges of the graph represent import statements appearing within a -// file. An edge connects a node (a list of files) to the node it -// imports, which is importable and thus always labelled. -// -// Loading is controlled by this dependency graph. -// -// To reduce I/O latency, we start loading a package's dependencies -// asynchronously as soon as we've parsed its files and enumerated its -// imports (scanImports). This performs a preorder traversal of the -// import dependency graph. -// -// To exploit hardware parallelism, we type-check unrelated packages in -// parallel, where "unrelated" means not ordered by the partial order of -// the import dependency graph. -// -// We use a concurrency-safe non-blocking cache (importer.imported) to -// record the results of type-checking, whether success or failure. An -// entry is created in this cache by startLoad the first time the -// package is imported. The first goroutine to request an entry becomes -// responsible for completing the task and broadcasting completion to -// subsequent requestors, which block until then. -// -// Type checking occurs in (parallel) postorder: we cannot type-check a -// set of files until we have loaded and type-checked all of their -// immediate dependencies (and thus all of their transitive -// dependencies). If the input were guaranteed free of import cycles, -// this would be trivial: we could simply wait for completion of the -// dependencies and then invoke the typechecker. -// -// But as we saw in the 'go test' section above, some cycles in the -// import graph over packages are actually legal, so long as the -// cycle-forming edge originates in the in-package test files that -// augment the package. This explains why the nodes of the import -// dependency graph are not packages, but lists of files: the unlabelled -// nodes avoid the cycles. Consider packages A and B where B imports A -// and A's in-package tests AT import B. The naively constructed import -// graph over packages would contain a cycle (A+AT) --> B --> (A+AT) but -// the graph over lists of files is AT --> B --> A, where AT is an -// unlabelled node. -// -// Awaiting completion of the dependencies in a cyclic graph would -// deadlock, so we must materialize the import dependency graph (as -// importer.graph) and check whether each import edge forms a cycle. If -// x imports y, and the graph already contains a path from y to x, then -// there is an import cycle, in which case the processing of x must not -// wait for the completion of processing of y. -// -// When the type-checker makes a callback (doImport) to the loader for a -// given import edge, there are two possible cases. In the normal case, -// the dependency has already been completely type-checked; doImport -// does a cache lookup and returns it. In the cyclic case, the entry in -// the cache is still necessarily incomplete, indicating a cycle. We -// perform the cycle check again to obtain the error message, and return -// the error. -// -// The result of using concurrency is about a 2.5x speedup for stdlib_test. - -// TODO(adonovan): overhaul the package documentation. diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/go16.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/go16.go deleted file mode 100644 index c0ed50f49..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/go16.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build go1.6 - -package loader - -import "go/build" - -func init() { - ignoreVendor = build.IgnoreVendor -} diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/loader.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/loader.go deleted file mode 100644 index f0171fc99..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/loader.go +++ /dev/null @@ -1,1059 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build go1.5 - -package loader - -// See doc.go for package documentation and implementation notes. - -import ( - "errors" - "fmt" - "go/ast" - "go/build" - "go/parser" - "go/token" - "go/types" - "os" - "sort" - "strings" - "sync" - "time" - - "golang.org/x/tools/go/ast/astutil" -) - -var ignoreVendor build.ImportMode - -const trace = false // show timing info for type-checking - -// Config specifies the configuration for loading a whole program from -// Go source code. -// The zero value for Config is a ready-to-use default configuration. -type Config struct { - // Fset is the file set for the parser to use when loading the - // program. If nil, it may be lazily initialized by any - // method of Config. - Fset *token.FileSet - - // ParserMode specifies the mode to be used by the parser when - // loading source packages. - ParserMode parser.Mode - - // TypeChecker contains options relating to the type checker. - // - // The supplied IgnoreFuncBodies is not used; the effective - // value comes from the TypeCheckFuncBodies func below. - // The supplied Import function is not used either. - TypeChecker types.Config - - // TypeCheckFuncBodies is a predicate over package paths. - // A package for which the predicate is false will - // have its package-level declarations type checked, but not - // its function bodies; this can be used to quickly load - // dependencies from source. If nil, all func bodies are type - // checked. - TypeCheckFuncBodies func(path string) bool - - // If Build is non-nil, it is used to locate source packages. - // Otherwise &build.Default is used. - // - // By default, cgo is invoked to preprocess Go files that - // import the fake package "C". This behaviour can be - // disabled by setting CGO_ENABLED=0 in the environment prior - // to startup, or by setting Build.CgoEnabled=false. - Build *build.Context - - // The current directory, used for resolving relative package - // references such as "./go/loader". If empty, os.Getwd will be - // used instead. - Cwd string - - // If DisplayPath is non-nil, it is used to transform each - // file name obtained from Build.Import(). This can be used - // to prevent a virtualized build.Config's file names from - // leaking into the user interface. - DisplayPath func(path string) string - - // If AllowErrors is true, Load will return a Program even - // if some of the its packages contained I/O, parser or type - // errors; such errors are accessible via PackageInfo.Errors. If - // false, Load will fail if any package had an error. - AllowErrors bool - - // CreatePkgs specifies a list of non-importable initial - // packages to create. The resulting packages will appear in - // the corresponding elements of the Program.Created slice. - CreatePkgs []PkgSpec - - // ImportPkgs specifies a set of initial packages to load. - // The map keys are package paths. - // - // The map value indicates whether to load tests. If true, Load - // will add and type-check two lists of files to the package: - // non-test files followed by in-package *_test.go files. In - // addition, it will append the external test package (if any) - // to Program.Created. - ImportPkgs map[string]bool - - // FindPackage is called during Load to create the build.Package - // for a given import path from a given directory. - // If FindPackage is nil, (*build.Context).Import is used. - // A client may use this hook to adapt to a proprietary build - // system that does not follow the "go build" layout - // conventions, for example. - // - // It must be safe to call concurrently from multiple goroutines. - FindPackage func(ctxt *build.Context, fromDir, importPath string, mode build.ImportMode) (*build.Package, error) - - // AfterTypeCheck is called immediately after a list of files - // has been type-checked and appended to info.Files. - // - // This optional hook function is the earliest opportunity for - // the client to observe the output of the type checker, - // which may be useful to reduce analysis latency when loading - // a large program. - // - // The function is permitted to modify info.Info, for instance - // to clear data structures that are no longer needed, which can - // dramatically reduce peak memory consumption. - // - // The function may be called twice for the same PackageInfo: - // once for the files of the package and again for the - // in-package test files. - // - // It must be safe to call concurrently from multiple goroutines. - AfterTypeCheck func(info *PackageInfo, files []*ast.File) -} - -// A PkgSpec specifies a non-importable package to be created by Load. -// Files are processed first, but typically only one of Files and -// Filenames is provided. The path needn't be globally unique. -// -type PkgSpec struct { - Path string // package path ("" => use package declaration) - Files []*ast.File // ASTs of already-parsed files - Filenames []string // names of files to be parsed -} - -// A Program is a Go program loaded from source as specified by a Config. -type Program struct { - Fset *token.FileSet // the file set for this program - - // Created[i] contains the initial package whose ASTs or - // filenames were supplied by Config.CreatePkgs[i], followed by - // the external test package, if any, of each package in - // Config.ImportPkgs ordered by ImportPath. - // - // NOTE: these files must not import "C". Cgo preprocessing is - // only performed on imported packages, not ad hoc packages. - // - // TODO(adonovan): we need to copy and adapt the logic of - // goFilesPackage (from $GOROOT/src/cmd/go/build.go) and make - // Config.Import and Config.Create methods return the same kind - // of entity, essentially a build.Package. - // Perhaps we can even reuse that type directly. - Created []*PackageInfo - - // Imported contains the initially imported packages, - // as specified by Config.ImportPkgs. - Imported map[string]*PackageInfo - - // AllPackages contains the PackageInfo of every package - // encountered by Load: all initial packages and all - // dependencies, including incomplete ones. - AllPackages map[*types.Package]*PackageInfo - - // importMap is the canonical mapping of package paths to - // packages. It contains all Imported initial packages, but not - // Created ones, and all imported dependencies. - importMap map[string]*types.Package -} - -// PackageInfo holds the ASTs and facts derived by the type-checker -// for a single package. -// -// Not mutated once exposed via the API. -// -type PackageInfo struct { - Pkg *types.Package - Importable bool // true if 'import "Pkg.Path()"' would resolve to this - TransitivelyErrorFree bool // true if Pkg and all its dependencies are free of errors - Files []*ast.File // syntax trees for the package's files - Errors []error // non-nil if the package had errors - types.Info // type-checker deductions. - dir string // package directory - - checker *types.Checker // transient type-checker state - errorFunc func(error) -} - -func (info *PackageInfo) String() string { return info.Pkg.Path() } - -func (info *PackageInfo) appendError(err error) { - if info.errorFunc != nil { - info.errorFunc(err) - } else { - fmt.Fprintln(os.Stderr, err) - } - info.Errors = append(info.Errors, err) -} - -func (conf *Config) fset() *token.FileSet { - if conf.Fset == nil { - conf.Fset = token.NewFileSet() - } - return conf.Fset -} - -// ParseFile is a convenience function (intended for testing) that invokes -// the parser using the Config's FileSet, which is initialized if nil. -// -// src specifies the parser input as a string, []byte, or io.Reader, and -// filename is its apparent name. If src is nil, the contents of -// filename are read from the file system. -// -func (conf *Config) ParseFile(filename string, src interface{}) (*ast.File, error) { - // TODO(adonovan): use conf.build() etc like parseFiles does. - return parser.ParseFile(conf.fset(), filename, src, conf.ParserMode) -} - -// FromArgsUsage is a partial usage message that applications calling -// FromArgs may wish to include in their -help output. -const FromArgsUsage = ` - is a list of arguments denoting a set of initial packages. -It may take one of two forms: - -1. A list of *.go source files. - - All of the specified files are loaded, parsed and type-checked - as a single package. All the files must belong to the same directory. - -2. A list of import paths, each denoting a package. - - The package's directory is found relative to the $GOROOT and - $GOPATH using similar logic to 'go build', and the *.go files in - that directory are loaded, parsed and type-checked as a single - package. - - In addition, all *_test.go files in the directory are then loaded - and parsed. Those files whose package declaration equals that of - the non-*_test.go files are included in the primary package. Test - files whose package declaration ends with "_test" are type-checked - as another package, the 'external' test package, so that a single - import path may denote two packages. (Whether this behaviour is - enabled is tool-specific, and may depend on additional flags.) - -A '--' argument terminates the list of packages. -` - -// FromArgs interprets args as a set of initial packages to load from -// source and updates the configuration. It returns the list of -// unconsumed arguments. -// -// It is intended for use in command-line interfaces that require a -// set of initial packages to be specified; see FromArgsUsage message -// for details. -// -// Only superficial errors are reported at this stage; errors dependent -// on I/O are detected during Load. -// -func (conf *Config) FromArgs(args []string, xtest bool) ([]string, error) { - var rest []string - for i, arg := range args { - if arg == "--" { - rest = args[i+1:] - args = args[:i] - break // consume "--" and return the remaining args - } - } - - if len(args) > 0 && strings.HasSuffix(args[0], ".go") { - // Assume args is a list of a *.go files - // denoting a single ad hoc package. - for _, arg := range args { - if !strings.HasSuffix(arg, ".go") { - return nil, fmt.Errorf("named files must be .go files: %s", arg) - } - } - conf.CreateFromFilenames("", args...) - } else { - // Assume args are directories each denoting a - // package and (perhaps) an external test, iff xtest. - for _, arg := range args { - if xtest { - conf.ImportWithTests(arg) - } else { - conf.Import(arg) - } - } - } - - return rest, nil -} - -// CreateFromFilenames is a convenience function that adds -// a conf.CreatePkgs entry to create a package of the specified *.go -// files. -// -func (conf *Config) CreateFromFilenames(path string, filenames ...string) { - conf.CreatePkgs = append(conf.CreatePkgs, PkgSpec{Path: path, Filenames: filenames}) -} - -// CreateFromFiles is a convenience function that adds a conf.CreatePkgs -// entry to create package of the specified path and parsed files. -// -func (conf *Config) CreateFromFiles(path string, files ...*ast.File) { - conf.CreatePkgs = append(conf.CreatePkgs, PkgSpec{Path: path, Files: files}) -} - -// ImportWithTests is a convenience function that adds path to -// ImportPkgs, the set of initial source packages located relative to -// $GOPATH. The package will be augmented by any *_test.go files in -// its directory that contain a "package x" (not "package x_test") -// declaration. -// -// In addition, if any *_test.go files contain a "package x_test" -// declaration, an additional package comprising just those files will -// be added to CreatePkgs. -// -func (conf *Config) ImportWithTests(path string) { conf.addImport(path, true) } - -// Import is a convenience function that adds path to ImportPkgs, the -// set of initial packages that will be imported from source. -// -func (conf *Config) Import(path string) { conf.addImport(path, false) } - -func (conf *Config) addImport(path string, tests bool) { - if path == "C" { - return // ignore; not a real package - } - if conf.ImportPkgs == nil { - conf.ImportPkgs = make(map[string]bool) - } - conf.ImportPkgs[path] = conf.ImportPkgs[path] || tests -} - -// PathEnclosingInterval returns the PackageInfo and ast.Node that -// contain source interval [start, end), and all the node's ancestors -// up to the AST root. It searches all ast.Files of all packages in prog. -// exact is defined as for astutil.PathEnclosingInterval. -// -// The zero value is returned if not found. -// -func (prog *Program) PathEnclosingInterval(start, end token.Pos) (pkg *PackageInfo, path []ast.Node, exact bool) { - for _, info := range prog.AllPackages { - for _, f := range info.Files { - if f.Pos() == token.NoPos { - // This can happen if the parser saw - // too many errors and bailed out. - // (Use parser.AllErrors to prevent that.) - continue - } - if !tokenFileContainsPos(prog.Fset.File(f.Pos()), start) { - continue - } - if path, exact := astutil.PathEnclosingInterval(f, start, end); path != nil { - return info, path, exact - } - } - } - return nil, nil, false -} - -// InitialPackages returns a new slice containing the set of initial -// packages (Created + Imported) in unspecified order. -// -func (prog *Program) InitialPackages() []*PackageInfo { - infos := make([]*PackageInfo, 0, len(prog.Created)+len(prog.Imported)) - infos = append(infos, prog.Created...) - for _, info := range prog.Imported { - infos = append(infos, info) - } - return infos -} - -// Package returns the ASTs and results of type checking for the -// specified package. -func (prog *Program) Package(path string) *PackageInfo { - if info, ok := prog.AllPackages[prog.importMap[path]]; ok { - return info - } - for _, info := range prog.Created { - if path == info.Pkg.Path() { - return info - } - } - return nil -} - -// ---------- Implementation ---------- - -// importer holds the working state of the algorithm. -type importer struct { - conf *Config // the client configuration - start time.Time // for logging - - progMu sync.Mutex // guards prog - prog *Program // the resulting program - - // findpkg is a memoization of FindPackage. - findpkgMu sync.Mutex // guards findpkg - findpkg map[findpkgKey]*findpkgValue - - importedMu sync.Mutex // guards imported - imported map[string]*importInfo // all imported packages (incl. failures) by import path - - // import dependency graph: graph[x][y] => x imports y - // - // Since non-importable packages cannot be cyclic, we ignore - // their imports, thus we only need the subgraph over importable - // packages. Nodes are identified by their import paths. - graphMu sync.Mutex - graph map[string]map[string]bool -} - -type findpkgKey struct { - importPath string - fromDir string - mode build.ImportMode -} - -type findpkgValue struct { - ready chan struct{} // closed to broadcast readiness - bp *build.Package - err error -} - -// importInfo tracks the success or failure of a single import. -// -// Upon completion, exactly one of info and err is non-nil: -// info on successful creation of a package, err otherwise. -// A successful package may still contain type errors. -// -type importInfo struct { - path string // import path - info *PackageInfo // results of typechecking (including errors) - complete chan struct{} // closed to broadcast that info is set. -} - -// awaitCompletion blocks until ii is complete, -// i.e. the info field is safe to inspect. -func (ii *importInfo) awaitCompletion() { - <-ii.complete // wait for close -} - -// Complete marks ii as complete. -// Its info and err fields will not be subsequently updated. -func (ii *importInfo) Complete(info *PackageInfo) { - if info == nil { - panic("info == nil") - } - ii.info = info - close(ii.complete) -} - -type importError struct { - path string // import path - err error // reason for failure to create a package -} - -// Load creates the initial packages specified by conf.{Create,Import}Pkgs, -// loading their dependencies packages as needed. -// -// On success, Load returns a Program containing a PackageInfo for -// each package. On failure, it returns an error. -// -// If AllowErrors is true, Load will return a Program even if some -// packages contained I/O, parser or type errors, or if dependencies -// were missing. (Such errors are accessible via PackageInfo.Errors. If -// false, Load will fail if any package had an error. -// -// It is an error if no packages were loaded. -// -func (conf *Config) Load() (*Program, error) { - // Create a simple default error handler for parse/type errors. - if conf.TypeChecker.Error == nil { - conf.TypeChecker.Error = func(e error) { fmt.Fprintln(os.Stderr, e) } - } - - // Set default working directory for relative package references. - if conf.Cwd == "" { - var err error - conf.Cwd, err = os.Getwd() - if err != nil { - return nil, err - } - } - - // Install default FindPackage hook using go/build logic. - if conf.FindPackage == nil { - conf.FindPackage = (*build.Context).Import - } - - prog := &Program{ - Fset: conf.fset(), - Imported: make(map[string]*PackageInfo), - importMap: make(map[string]*types.Package), - AllPackages: make(map[*types.Package]*PackageInfo), - } - - imp := importer{ - conf: conf, - prog: prog, - findpkg: make(map[findpkgKey]*findpkgValue), - imported: make(map[string]*importInfo), - start: time.Now(), - graph: make(map[string]map[string]bool), - } - - // -- loading proper (concurrent phase) -------------------------------- - - var errpkgs []string // packages that contained errors - - // Load the initially imported packages and their dependencies, - // in parallel. - // No vendor check on packages imported from the command line. - infos, importErrors := imp.importAll("", conf.Cwd, conf.ImportPkgs, ignoreVendor) - for _, ie := range importErrors { - conf.TypeChecker.Error(ie.err) // failed to create package - errpkgs = append(errpkgs, ie.path) - } - for _, info := range infos { - prog.Imported[info.Pkg.Path()] = info - } - - // Augment the designated initial packages by their tests. - // Dependencies are loaded in parallel. - var xtestPkgs []*build.Package - for importPath, augment := range conf.ImportPkgs { - if !augment { - continue - } - - // No vendor check on packages imported from command line. - bp, err := imp.findPackage(importPath, conf.Cwd, ignoreVendor) - if err != nil { - // Package not found, or can't even parse package declaration. - // Already reported by previous loop; ignore it. - continue - } - - // Needs external test package? - if len(bp.XTestGoFiles) > 0 { - xtestPkgs = append(xtestPkgs, bp) - } - - // Consult the cache using the canonical package path. - path := bp.ImportPath - imp.importedMu.Lock() // (unnecessary, we're sequential here) - ii, ok := imp.imported[path] - // Paranoid checks added due to issue #11012. - if !ok { - // Unreachable. - // The previous loop called importAll and thus - // startLoad for each path in ImportPkgs, which - // populates imp.imported[path] with a non-zero value. - panic(fmt.Sprintf("imported[%q] not found", path)) - } - if ii == nil { - // Unreachable. - // The ii values in this loop are the same as in - // the previous loop, which enforced the invariant - // that at least one of ii.err and ii.info is non-nil. - panic(fmt.Sprintf("imported[%q] == nil", path)) - } - if ii.info == nil { - // Unreachable. - // awaitCompletion has the postcondition - // ii.info != nil. - panic(fmt.Sprintf("imported[%q].info = nil", path)) - } - info := ii.info - imp.importedMu.Unlock() - - // Parse the in-package test files. - files, errs := imp.conf.parsePackageFiles(bp, 't') - for _, err := range errs { - info.appendError(err) - } - - // The test files augmenting package P cannot be imported, - // but may import packages that import P, - // so we must disable the cycle check. - imp.addFiles(info, files, false) - } - - createPkg := func(path string, files []*ast.File, errs []error) { - // TODO(adonovan): fix: use dirname of files, not cwd. - info := imp.newPackageInfo(path, conf.Cwd) - for _, err := range errs { - info.appendError(err) - } - - // Ad hoc packages are non-importable, - // so no cycle check is needed. - // addFiles loads dependencies in parallel. - imp.addFiles(info, files, false) - prog.Created = append(prog.Created, info) - } - - // Create packages specified by conf.CreatePkgs. - for _, cp := range conf.CreatePkgs { - files, errs := parseFiles(conf.fset(), conf.build(), nil, ".", cp.Filenames, conf.ParserMode) - files = append(files, cp.Files...) - - path := cp.Path - if path == "" { - if len(files) > 0 { - path = files[0].Name.Name - } else { - path = "(unnamed)" - } - } - createPkg(path, files, errs) - } - - // Create external test packages. - sort.Sort(byImportPath(xtestPkgs)) - for _, bp := range xtestPkgs { - files, errs := imp.conf.parsePackageFiles(bp, 'x') - createPkg(bp.ImportPath+"_test", files, errs) - } - - // -- finishing up (sequential) ---------------------------------------- - - if len(prog.Imported)+len(prog.Created) == 0 { - return nil, errors.New("no initial packages were loaded") - } - - // Create infos for indirectly imported packages. - // e.g. incomplete packages without syntax, loaded from export data. - for _, obj := range prog.importMap { - info := prog.AllPackages[obj] - if info == nil { - prog.AllPackages[obj] = &PackageInfo{Pkg: obj, Importable: true} - } else { - // finished - info.checker = nil - info.errorFunc = nil - } - } - - if !conf.AllowErrors { - // Report errors in indirectly imported packages. - for _, info := range prog.AllPackages { - if len(info.Errors) > 0 { - errpkgs = append(errpkgs, info.Pkg.Path()) - } - } - if errpkgs != nil { - var more string - if len(errpkgs) > 3 { - more = fmt.Sprintf(" and %d more", len(errpkgs)-3) - errpkgs = errpkgs[:3] - } - return nil, fmt.Errorf("couldn't load packages due to errors: %s%s", - strings.Join(errpkgs, ", "), more) - } - } - - markErrorFreePackages(prog.AllPackages) - - return prog, nil -} - -type byImportPath []*build.Package - -func (b byImportPath) Len() int { return len(b) } -func (b byImportPath) Less(i, j int) bool { return b[i].ImportPath < b[j].ImportPath } -func (b byImportPath) Swap(i, j int) { b[i], b[j] = b[j], b[i] } - -// markErrorFreePackages sets the TransitivelyErrorFree flag on all -// applicable packages. -func markErrorFreePackages(allPackages map[*types.Package]*PackageInfo) { - // Build the transpose of the import graph. - importedBy := make(map[*types.Package]map[*types.Package]bool) - for P := range allPackages { - for _, Q := range P.Imports() { - clients, ok := importedBy[Q] - if !ok { - clients = make(map[*types.Package]bool) - importedBy[Q] = clients - } - clients[P] = true - } - } - - // Find all packages reachable from some error package. - reachable := make(map[*types.Package]bool) - var visit func(*types.Package) - visit = func(p *types.Package) { - if !reachable[p] { - reachable[p] = true - for q := range importedBy[p] { - visit(q) - } - } - } - for _, info := range allPackages { - if len(info.Errors) > 0 { - visit(info.Pkg) - } - } - - // Mark the others as "transitively error-free". - for _, info := range allPackages { - if !reachable[info.Pkg] { - info.TransitivelyErrorFree = true - } - } -} - -// build returns the effective build context. -func (conf *Config) build() *build.Context { - if conf.Build != nil { - return conf.Build - } - return &build.Default -} - -// parsePackageFiles enumerates the files belonging to package path, -// then loads, parses and returns them, plus a list of I/O or parse -// errors that were encountered. -// -// 'which' indicates which files to include: -// 'g': include non-test *.go source files (GoFiles + processed CgoFiles) -// 't': include in-package *_test.go source files (TestGoFiles) -// 'x': include external *_test.go source files. (XTestGoFiles) -// -func (conf *Config) parsePackageFiles(bp *build.Package, which rune) ([]*ast.File, []error) { - if bp.ImportPath == "unsafe" { - return nil, nil - } - var filenames []string - switch which { - case 'g': - filenames = bp.GoFiles - case 't': - filenames = bp.TestGoFiles - case 'x': - filenames = bp.XTestGoFiles - default: - panic(which) - } - - files, errs := parseFiles(conf.fset(), conf.build(), conf.DisplayPath, bp.Dir, filenames, conf.ParserMode) - - // Preprocess CgoFiles and parse the outputs (sequentially). - if which == 'g' && bp.CgoFiles != nil { - cgofiles, err := processCgoFiles(bp, conf.fset(), conf.DisplayPath, conf.ParserMode) - if err != nil { - errs = append(errs, err) - } else { - files = append(files, cgofiles...) - } - } - - return files, errs -} - -// doImport imports the package denoted by path. -// It implements the types.Importer signature. -// -// It returns an error if a package could not be created -// (e.g. go/build or parse error), but type errors are reported via -// the types.Config.Error callback (the first of which is also saved -// in the package's PackageInfo). -// -// Idempotent. -// -func (imp *importer) doImport(from *PackageInfo, to string) (*types.Package, error) { - if to == "C" { - // This should be unreachable, but ad hoc packages are - // not currently subject to cgo preprocessing. - // See https://github.com/golang/go/issues/11627. - return nil, fmt.Errorf(`the loader doesn't cgo-process ad hoc packages like %q; see Go issue 11627`, - from.Pkg.Path()) - } - - bp, err := imp.findPackage(to, from.dir, 0) - if err != nil { - return nil, err - } - - // The standard unsafe package is handled specially, - // and has no PackageInfo. - if bp.ImportPath == "unsafe" { - return types.Unsafe, nil - } - - // Look for the package in the cache using its canonical path. - path := bp.ImportPath - imp.importedMu.Lock() - ii := imp.imported[path] - imp.importedMu.Unlock() - if ii == nil { - panic("internal error: unexpected import: " + path) - } - if ii.info != nil { - return ii.info.Pkg, nil - } - - // Import of incomplete package: this indicates a cycle. - fromPath := from.Pkg.Path() - if cycle := imp.findPath(path, fromPath); cycle != nil { - cycle = append([]string{fromPath}, cycle...) - return nil, fmt.Errorf("import cycle: %s", strings.Join(cycle, " -> ")) - } - - panic("internal error: import of incomplete (yet acyclic) package: " + fromPath) -} - -// findPackage locates the package denoted by the importPath in the -// specified directory. -func (imp *importer) findPackage(importPath, fromDir string, mode build.ImportMode) (*build.Package, error) { - // We use a non-blocking duplicate-suppressing cache (gopl.io §9.7) - // to avoid holding the lock around FindPackage. - key := findpkgKey{importPath, fromDir, mode} - imp.findpkgMu.Lock() - v, ok := imp.findpkg[key] - if ok { - // cache hit - imp.findpkgMu.Unlock() - - <-v.ready // wait for entry to become ready - } else { - // Cache miss: this goroutine becomes responsible for - // populating the map entry and broadcasting its readiness. - v = &findpkgValue{ready: make(chan struct{})} - imp.findpkg[key] = v - imp.findpkgMu.Unlock() - - ioLimit <- true - v.bp, v.err = imp.conf.FindPackage(imp.conf.build(), importPath, fromDir, mode) - <-ioLimit - - if _, ok := v.err.(*build.NoGoError); ok { - v.err = nil // empty directory is not an error - } - - close(v.ready) // broadcast ready condition - } - return v.bp, v.err -} - -// importAll loads, parses, and type-checks the specified packages in -// parallel and returns their completed importInfos in unspecified order. -// -// fromPath is the package path of the importing package, if it is -// importable, "" otherwise. It is used for cycle detection. -// -// fromDir is the directory containing the import declaration that -// caused these imports. -// -func (imp *importer) importAll(fromPath, fromDir string, imports map[string]bool, mode build.ImportMode) (infos []*PackageInfo, errors []importError) { - // TODO(adonovan): opt: do the loop in parallel once - // findPackage is non-blocking. - var pending []*importInfo - for importPath := range imports { - bp, err := imp.findPackage(importPath, fromDir, mode) - if err != nil { - errors = append(errors, importError{ - path: importPath, - err: err, - }) - continue - } - pending = append(pending, imp.startLoad(bp)) - } - - if fromPath != "" { - // We're loading a set of imports. - // - // We must record graph edges from the importing package - // to its dependencies, and check for cycles. - imp.graphMu.Lock() - deps, ok := imp.graph[fromPath] - if !ok { - deps = make(map[string]bool) - imp.graph[fromPath] = deps - } - for _, ii := range pending { - deps[ii.path] = true - } - imp.graphMu.Unlock() - } - - for _, ii := range pending { - if fromPath != "" { - if cycle := imp.findPath(ii.path, fromPath); cycle != nil { - // Cycle-forming import: we must not await its - // completion since it would deadlock. - // - // We don't record the error in ii since - // the error is really associated with the - // cycle-forming edge, not the package itself. - // (Also it would complicate the - // invariants of importPath completion.) - if trace { - fmt.Fprintf(os.Stderr, "import cycle: %q\n", cycle) - } - continue - } - } - ii.awaitCompletion() - infos = append(infos, ii.info) - } - - return infos, errors -} - -// findPath returns an arbitrary path from 'from' to 'to' in the import -// graph, or nil if there was none. -func (imp *importer) findPath(from, to string) []string { - imp.graphMu.Lock() - defer imp.graphMu.Unlock() - - seen := make(map[string]bool) - var search func(stack []string, importPath string) []string - search = func(stack []string, importPath string) []string { - if !seen[importPath] { - seen[importPath] = true - stack = append(stack, importPath) - if importPath == to { - return stack - } - for x := range imp.graph[importPath] { - if p := search(stack, x); p != nil { - return p - } - } - } - return nil - } - return search(make([]string, 0, 20), from) -} - -// startLoad initiates the loading, parsing and type-checking of the -// specified package and its dependencies, if it has not already begun. -// -// It returns an importInfo, not necessarily in a completed state. The -// caller must call awaitCompletion() before accessing its info field. -// -// startLoad is concurrency-safe and idempotent. -// -func (imp *importer) startLoad(bp *build.Package) *importInfo { - path := bp.ImportPath - imp.importedMu.Lock() - ii, ok := imp.imported[path] - if !ok { - ii = &importInfo{path: path, complete: make(chan struct{})} - imp.imported[path] = ii - go func() { - info := imp.load(bp) - ii.Complete(info) - }() - } - imp.importedMu.Unlock() - - return ii -} - -// load implements package loading by parsing Go source files -// located by go/build. -func (imp *importer) load(bp *build.Package) *PackageInfo { - info := imp.newPackageInfo(bp.ImportPath, bp.Dir) - info.Importable = true - files, errs := imp.conf.parsePackageFiles(bp, 'g') - for _, err := range errs { - info.appendError(err) - } - - imp.addFiles(info, files, true) - - imp.progMu.Lock() - imp.prog.importMap[bp.ImportPath] = info.Pkg - imp.progMu.Unlock() - - return info -} - -// addFiles adds and type-checks the specified files to info, loading -// their dependencies if needed. The order of files determines the -// package initialization order. It may be called multiple times on the -// same package. Errors are appended to the info.Errors field. -// -// cycleCheck determines whether the imports within files create -// dependency edges that should be checked for potential cycles. -// -func (imp *importer) addFiles(info *PackageInfo, files []*ast.File, cycleCheck bool) { - // Ensure the dependencies are loaded, in parallel. - var fromPath string - if cycleCheck { - fromPath = info.Pkg.Path() - } - // TODO(adonovan): opt: make the caller do scanImports. - // Callers with a build.Package can skip it. - imp.importAll(fromPath, info.dir, scanImports(files), 0) - - if trace { - fmt.Fprintf(os.Stderr, "%s: start %q (%d)\n", - time.Since(imp.start), info.Pkg.Path(), len(files)) - } - - // Ignore the returned (first) error since we - // already collect them all in the PackageInfo. - info.checker.Files(files) - info.Files = append(info.Files, files...) - - if imp.conf.AfterTypeCheck != nil { - imp.conf.AfterTypeCheck(info, files) - } - - if trace { - fmt.Fprintf(os.Stderr, "%s: stop %q\n", - time.Since(imp.start), info.Pkg.Path()) - } -} - -func (imp *importer) newPackageInfo(path, dir string) *PackageInfo { - pkg := types.NewPackage(path, "") - info := &PackageInfo{ - Pkg: pkg, - Info: types.Info{ - Types: make(map[ast.Expr]types.TypeAndValue), - Defs: make(map[*ast.Ident]types.Object), - Uses: make(map[*ast.Ident]types.Object), - Implicits: make(map[ast.Node]types.Object), - Scopes: make(map[ast.Node]*types.Scope), - Selections: make(map[*ast.SelectorExpr]*types.Selection), - }, - errorFunc: imp.conf.TypeChecker.Error, - dir: dir, - } - - // Copy the types.Config so we can vary it across PackageInfos. - tc := imp.conf.TypeChecker - tc.IgnoreFuncBodies = false - if f := imp.conf.TypeCheckFuncBodies; f != nil { - tc.IgnoreFuncBodies = !f(path) - } - tc.Importer = closure{imp, info} - tc.Error = info.appendError // appendError wraps the user's Error function - - info.checker = types.NewChecker(&tc, imp.conf.fset(), pkg, &info.Info) - imp.progMu.Lock() - imp.prog.AllPackages[pkg] = info - imp.progMu.Unlock() - return info -} - -type closure struct { - imp *importer - info *PackageInfo -} - -func (c closure) Import(to string) (*types.Package, error) { return c.imp.doImport(c.info, to) } diff --git a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/util.go b/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/util.go deleted file mode 100644 index 7f38dd740..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/vendor/golang.org/x/tools/go/loader/util.go +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package loader - -import ( - "go/ast" - "go/build" - "go/parser" - "go/token" - "io" - "os" - "strconv" - "sync" - - "golang.org/x/tools/go/buildutil" -) - -// We use a counting semaphore to limit -// the number of parallel I/O calls per process. -var ioLimit = make(chan bool, 10) - -// parseFiles parses the Go source files within directory dir and -// returns the ASTs of the ones that could be at least partially parsed, -// along with a list of I/O and parse errors encountered. -// -// I/O is done via ctxt, which may specify a virtual file system. -// displayPath is used to transform the filenames attached to the ASTs. -// -func parseFiles(fset *token.FileSet, ctxt *build.Context, displayPath func(string) string, dir string, files []string, mode parser.Mode) ([]*ast.File, []error) { - if displayPath == nil { - displayPath = func(path string) string { return path } - } - var wg sync.WaitGroup - n := len(files) - parsed := make([]*ast.File, n) - errors := make([]error, n) - for i, file := range files { - if !buildutil.IsAbsPath(ctxt, file) { - file = buildutil.JoinPath(ctxt, dir, file) - } - wg.Add(1) - go func(i int, file string) { - ioLimit <- true // wait - defer func() { - wg.Done() - <-ioLimit // signal - }() - var rd io.ReadCloser - var err error - if ctxt.OpenFile != nil { - rd, err = ctxt.OpenFile(file) - } else { - rd, err = os.Open(file) - } - if err != nil { - errors[i] = err // open failed - return - } - - // ParseFile may return both an AST and an error. - parsed[i], errors[i] = parser.ParseFile(fset, displayPath(file), rd, mode) - rd.Close() - }(i, file) - } - wg.Wait() - - // Eliminate nils, preserving order. - var o int - for _, f := range parsed { - if f != nil { - parsed[o] = f - o++ - } - } - parsed = parsed[:o] - - o = 0 - for _, err := range errors { - if err != nil { - errors[o] = err - o++ - } - } - errors = errors[:o] - - return parsed, errors -} - -// scanImports returns the set of all import paths from all -// import specs in the specified files. -func scanImports(files []*ast.File) map[string]bool { - imports := make(map[string]bool) - for _, f := range files { - for _, decl := range f.Decls { - if decl, ok := decl.(*ast.GenDecl); ok && decl.Tok == token.IMPORT { - for _, spec := range decl.Specs { - spec := spec.(*ast.ImportSpec) - - // NB: do not assume the program is well-formed! - path, err := strconv.Unquote(spec.Path.Value) - if err != nil { - continue // quietly ignore the error - } - if path == "C" { - continue // skip pseudopackage - } - imports[path] = true - } - } - } - } - return imports -} - -// ---------- Internal helpers ---------- - -// TODO(adonovan): make this a method: func (*token.File) Contains(token.Pos) -func tokenFileContainsPos(f *token.File, pos token.Pos) bool { - p := int(pos) - base := f.Base() - return base <= p && p < base+f.Size() -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/assert.go b/vendor/github.com/aws/aws-sdk-go/awstesting/assert.go deleted file mode 100644 index f97b228fc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/assert.go +++ /dev/null @@ -1,130 +0,0 @@ -package awstesting - -import ( - "encoding/json" - "encoding/xml" - "fmt" - "net/url" - "regexp" - "sort" - "testing" - - "github.com/stretchr/testify/assert" -) - -// Match is a testing helper to test for testing error by comparing expected -// with a regular expression. -func Match(t *testing.T, regex, expected string) { - if !regexp.MustCompile(regex).Match([]byte(expected)) { - t.Errorf("%q\n\tdoes not match /%s/", expected, regex) - } -} - -// AssertURL verifies the expected URL is matches the actual. -func AssertURL(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool { - expectURL, err := url.Parse(expect) - if err != nil { - t.Errorf(errMsg("unable to parse expected URL", err, msgAndArgs)) - return false - } - actualURL, err := url.Parse(actual) - if err != nil { - t.Errorf(errMsg("unable to parse actual URL", err, msgAndArgs)) - return false - } - - assert.Equal(t, expectURL.Host, actualURL.Host, msgAndArgs...) - assert.Equal(t, expectURL.Scheme, actualURL.Scheme, msgAndArgs...) - assert.Equal(t, expectURL.Path, actualURL.Path, msgAndArgs...) - - return AssertQuery(t, expectURL.Query().Encode(), actualURL.Query().Encode(), msgAndArgs...) -} - -// AssertQuery verifies the expect HTTP query string matches the actual. -func AssertQuery(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool { - expectQ, err := url.ParseQuery(expect) - if err != nil { - t.Errorf(errMsg("unable to parse expected Query", err, msgAndArgs)) - return false - } - actualQ, err := url.ParseQuery(expect) - if err != nil { - t.Errorf(errMsg("unable to parse actual Query", err, msgAndArgs)) - return false - } - - // Make sure the keys are the same - if !assert.Equal(t, queryValueKeys(expectQ), queryValueKeys(actualQ), msgAndArgs...) { - return false - } - - for k, expectQVals := range expectQ { - sort.Strings(expectQVals) - actualQVals := actualQ[k] - sort.Strings(actualQVals) - assert.Equal(t, expectQVals, actualQVals, msgAndArgs...) - } - - return true -} - -// AssertJSON verifies that the expect json string matches the actual. -func AssertJSON(t *testing.T, expect, actual string, msgAndArgs ...interface{}) bool { - expectVal := map[string]interface{}{} - if err := json.Unmarshal([]byte(expect), &expectVal); err != nil { - t.Errorf(errMsg("unable to parse expected JSON", err, msgAndArgs...)) - return false - } - - actualVal := map[string]interface{}{} - if err := json.Unmarshal([]byte(actual), &actualVal); err != nil { - t.Errorf(errMsg("unable to parse actual JSON", err, msgAndArgs...)) - return false - } - - return assert.Equal(t, expectVal, actualVal, msgAndArgs...) -} - -// AssertXML verifies that the expect xml string matches the actual. -func AssertXML(t *testing.T, expect, actual string, container interface{}, msgAndArgs ...interface{}) bool { - expectVal := container - if err := xml.Unmarshal([]byte(expect), &expectVal); err != nil { - t.Errorf(errMsg("unable to parse expected XML", err, msgAndArgs...)) - } - - actualVal := container - if err := xml.Unmarshal([]byte(actual), &actualVal); err != nil { - t.Errorf(errMsg("unable to parse actual XML", err, msgAndArgs...)) - } - return assert.Equal(t, expectVal, actualVal, msgAndArgs...) -} - -func errMsg(baseMsg string, err error, msgAndArgs ...interface{}) string { - message := messageFromMsgAndArgs(msgAndArgs) - if message != "" { - message += ", " - } - return fmt.Sprintf("%s%s, %v", message, baseMsg, err) -} - -func messageFromMsgAndArgs(msgAndArgs []interface{}) string { - if len(msgAndArgs) == 0 || msgAndArgs == nil { - return "" - } - if len(msgAndArgs) == 1 { - return msgAndArgs[0].(string) - } - if len(msgAndArgs) > 1 { - return fmt.Sprintf(msgAndArgs[0].(string), msgAndArgs[1:]...) - } - return "" -} - -func queryValueKeys(v url.Values) []string { - keys := make([]string, 0, len(v)) - for k := range v { - keys = append(keys, k) - } - sort.Strings(keys) - return keys -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/assert_test.go b/vendor/github.com/aws/aws-sdk-go/awstesting/assert_test.go deleted file mode 100644 index 45903a5d3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/assert_test.go +++ /dev/null @@ -1,64 +0,0 @@ -package awstesting_test - -import ( - "encoding/xml" - "testing" - - "github.com/aws/aws-sdk-go/awstesting" -) - -func TestAssertJSON(t *testing.T) { - cases := []struct { - e, a string - asserts bool - }{ - { - e: `{"RecursiveStruct":{"RecursiveMap":{"foo":{"NoRecurse":"foo"},"bar":{"NoRecurse":"bar"}}}}`, - a: `{"RecursiveStruct":{"RecursiveMap":{"bar":{"NoRecurse":"bar"},"foo":{"NoRecurse":"foo"}}}}`, - asserts: true, - }, - } - - for i, c := range cases { - mockT := &testing.T{} - if awstesting.AssertJSON(mockT, c.e, c.a) != c.asserts { - t.Error("Assert JSON result was not expected.", i) - } - } -} - -func TestAssertXML(t *testing.T) { - cases := []struct { - e, a string - asserts bool - container struct { - XMLName xml.Name `xml:"OperationRequest"` - NS string `xml:"xmlns,attr"` - RecursiveStruct struct { - RecursiveMap struct { - Entries []struct { - XMLName xml.Name `xml:"entries"` - Key string `xml:"key"` - Value struct { - XMLName xml.Name `xml:"value"` - NoRecurse string - } - } - } - } - } - }{ - { - e: `foofoobarbar`, - a: `barbarfoofoo`, - asserts: true, - }, - } - - for i, c := range cases { - // mockT := &testing.T{} - if awstesting.AssertXML(t, c.e, c.a, c.container) != c.asserts { - t.Error("Assert XML result was not expected.", i) - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/client.go deleted file mode 100644 index fd95259e0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/client.go +++ /dev/null @@ -1,42 +0,0 @@ -package awstesting - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/defaults" - "github.com/aws/aws-sdk-go/awstesting/mock" -) - -// NewClient creates and initializes a generic service client for testing. -func NewClient(cfgs ...*aws.Config) *client.Client { - info := metadata.ClientInfo{ - Endpoint: "http://endpoint", - SigningName: "", - } - def := defaults.Get() - def.Config.MergeIn(cfgs...) - - return client.New(*def.Config, info, def.Handlers) -} - -// NewMockClient creates and initializes a client that will connect to the -// mock server -func NewMockClient(cfgs ...*aws.Config) *client.Client { - c := mock.Session.ClientConfig("Mock", cfgs...) - - svc := client.New( - *c.Config, - metadata.ClientInfo{ - ServiceName: "Mock", - SigningRegion: c.SigningRegion, - Endpoint: c.Endpoint, - APIVersion: "2015-12-08", - JSONVersion: "1.1", - TargetPrefix: "MockServer", - }, - c.Handlers, - ) - - return svc -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/acm.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/acm.feature deleted file mode 100644 index dc28b5533..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/acm.feature +++ /dev/null @@ -1,14 +0,0 @@ -#language en -@acm @client -Feature: AWS Certificate Manager - - Scenario: Making a request - When I call the "ListCertificates" API - Then the request should be successful - - Scenario: Handling errors - When I attempt to call the "GetCertificate" API with: - | CertificateArn | arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 | - Then I expect the response error code to be "ResourceNotFoundException" - And I expect the response error message not be empty - diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/client.go deleted file mode 100644 index 728a472ca..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package acm provides gucumber integration tests support. -package acm - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/acm" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@acm", func() { - World["client"] = acm.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/apigateway.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/apigateway.feature deleted file mode 100644 index 4286b8130..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/apigateway.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@apigateway @client -Feature: Amazon API Gateway - - Scenario: Making a request - When I call the "GetAccountRequest" API - Then the request should be successful - - Scenario: Handing errors - When I attempt to call the "GetRestApi" API with: - | RestApiId | api123 | - Then I expect the response error code to be "NotFoundException" - And I expect the response error message to include: - """ - Invalid REST API identifier specified - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/client.go deleted file mode 100644 index 7b324cd69..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package apigateway provides gucumber integration tests support. -package apigateway - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/apigateway" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@apigateway", func() { - World["client"] = apigateway.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/applicationdiscoveryservice.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/applicationdiscoveryservice.feature deleted file mode 100644 index 02ae2874e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/applicationdiscoveryservice.feature +++ /dev/null @@ -1,8 +0,0 @@ -#language en -@applicationdiscoveryservice @client -Feature: AWS Application Discovery Service - - Scenario: Making a request - When I call the "DescribeAgents" API - Then the request should be successful - diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/client.go deleted file mode 100644 index a41cbbdd5..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/client.go +++ /dev/null @@ -1,15 +0,0 @@ -//Package applicationdiscoveryservice provides gucumber integration tests support. -package applicationdiscoveryservice - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/applicationdiscoveryservice" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@applicationdiscoveryservice", func() { - World["client"] = applicationdiscoveryservice.New(smoke.Session, &aws.Config{Region: aws.String("us-west-2")}) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/client.go deleted file mode 100644 index 92ed9463d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package autoscaling provides gucumber integration tests support. -package autoscaling - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/autoscaling" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@autoscaling", func() { - World["client"] = autoscaling.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/client.go deleted file mode 100644 index 8bc218286..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package cloudfront provides gucumber integration tests support. -package cloudfront - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudfront" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@cloudfront", func() { - World["client"] = cloudfront.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/client.go deleted file mode 100644 index 832b3d956..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package cloudhsm provides gucumber integration tests support. -package cloudhsm - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudhsm" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@cloudhsm", func() { - World["client"] = cloudhsm.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/client.go deleted file mode 100644 index ae60e5458..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package cloudsearch provides gucumber integration tests support. -package cloudsearch - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudsearch" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@cloudsearch", func() { - World["client"] = cloudsearch.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/client.go deleted file mode 100644 index c0b1ce963..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package cloudtrail provides gucumber integration tests support. -package cloudtrail - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudtrail" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@cloudtrail", func() { - World["client"] = cloudtrail.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/client.go deleted file mode 100644 index 130ec06f6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package cloudwatch provides gucumber integration tests support. -package cloudwatch - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudwatch" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@cloudwatch", func() { - World["client"] = cloudwatch.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/client.go deleted file mode 100644 index 093df7dc6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package codecommit provides gucumber integration tests support. -package codecommit - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/codecommit" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@codecommit", func() { - World["client"] = codecommit.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/client.go deleted file mode 100644 index 65c756498..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package codedeploy provides gucumber integration tests support. -package codedeploy - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/codedeploy" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@codedeploy", func() { - World["client"] = codedeploy.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/client.go deleted file mode 100644 index ec31ac74c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package codepipeline provides gucumber integration tests support. -package codepipeline - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/codepipeline" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@codepipeline", func() { - World["client"] = codepipeline.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/client.go deleted file mode 100644 index eeadba1ce..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package cognitosync provides gucumber integration tests support. -package cognitosync - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cognitosync" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@cognitosync", func() { - World["client"] = cognitosync.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/client.go deleted file mode 100644 index 658919fa3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package datapipeline provides gucumber integration tests support. -package datapipeline - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/datapipeline" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@datapipeline", func() { - World["client"] = datapipeline.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/client.go deleted file mode 100644 index 5ba4b175d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package dynamodb provides gucumber integration tests support. -package dynamodb - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/dynamodb" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@dynamodb", func() { - World["client"] = dynamodb.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/client.go deleted file mode 100644 index d68f71e38..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package ec2 provides gucumber integration tests support. -package ec2 - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/ec2" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@ec2", func() { - World["client"] = ec2.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/client.go deleted file mode 100644 index c33d905f0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package elasticache provides gucumber integration tests support. -package elasticache - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/elasticache" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@elasticache", func() { - World["client"] = elasticache.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/client.go deleted file mode 100644 index fab617eab..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package emr provides gucumber integration tests support. -package emr - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/emr" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@emr", func() { - World["client"] = emr.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/client.go deleted file mode 100644 index f68a6e909..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package es provides gucumber integration tests support. -package es - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/elasticsearchservice" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@es", func() { - World["client"] = elasticsearchservice.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/es.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/es.feature deleted file mode 100644 index 8bd1f1e49..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/es.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@es @elasticsearchservice -Feature: Amazon ElasticsearchService - - Scenario: Making a request - When I call the "ListDomainNames" API - Then the value at "DomainNames" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeElasticsearchDomain" API with: - | DomainName | not-a-domain | - Then the error code should be "ResourceNotFoundException" - And I expect the response error message to include: - """ - Domain not found: not-a-domain - """ \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/client.go deleted file mode 100644 index d07ab1b2f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package glacier provides gucumber integration tests support. -package glacier - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/glacier" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@glacier", func() { - World["client"] = glacier.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/client.go deleted file mode 100644 index d145f0629..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package iam provides gucumber integration tests support. -package iam - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/iam" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@iam", func() { - World["client"] = iam.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go deleted file mode 100644 index 8714a68a0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go +++ /dev/null @@ -1,24 +0,0 @@ -//Package iotdataplane provides gucumber integration tests support. -package iotdataplane - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/iot" - "github.com/aws/aws-sdk-go/service/iotdataplane" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@iotdataplane", func() { - svc := iot.New(smoke.Session) - result, err := svc.DescribeEndpoint(&iot.DescribeEndpointInput{}) - if err != nil { - World["error"] = err - return - } - - World["client"] = iotdataplane.New(smoke.Session, aws.NewConfig(). - WithEndpoint(*result.EndpointAddress)) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/iotdataplane.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/iotdataplane.feature deleted file mode 100644 index a6ced14d7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/iotdataplane.feature +++ /dev/null @@ -1,12 +0,0 @@ -# language: en -@iotdataplane @client -Feature: AWS IoT Data Plane - - Scenario: Handling errors - When I attempt to call the "GetThingShadow" API with: - | ThingName | "fakeThing" | - Then I expect the response error code to be "InvalidRequestException" - And I expect the response error message to include: - """ - Invalid thing name - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/client.go deleted file mode 100644 index 609d792a8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package kinesis provides gucumber integration tests support. -package kinesis - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/kinesis" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@kinesis", func() { - World["client"] = kinesis.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/client.go deleted file mode 100644 index 76bfad606..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package kms provides gucumber integration tests support. -package kms - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/kms" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@kms", func() { - World["client"] = kms.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/client.go deleted file mode 100644 index 1306e43e9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package lambda provides gucumber integration tests support. -package lambda - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/lambda" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@lambda", func() { - World["client"] = lambda.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/client.go deleted file mode 100644 index 23f7be0b3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package opsworks provides gucumber integration tests support. -package opsworks - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/opsworks" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@opsworks", func() { - World["client"] = opsworks.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/client.go deleted file mode 100644 index 74dadeb29..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package rds provides gucumber integration tests support. -package rds - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/rds" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@rds", func() { - World["client"] = rds.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/client.go deleted file mode 100644 index 3b8d9a05f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package redshift provides gucumber integration tests support. -package redshift - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/redshift" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@redshift", func() { - World["client"] = redshift.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/client.go deleted file mode 100644 index c3e313aac..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package route53 provides gucumber integration tests support. -package route53 - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/route53" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@route53", func() { - World["client"] = route53.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/client.go deleted file mode 100644 index 493bceba0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package ses provides gucumber integration tests support. -package ses - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/ses" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@ses", func() { - World["client"] = ses.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/client.go deleted file mode 100644 index 04df81f95..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package simpledb provides gucumber integration tests support. -package simpledb - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/simpledb" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@simpledb", func() { - World["client"] = simpledb.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/simpledb.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/simpledb.feature deleted file mode 100644 index ddc03d831..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/simpledb.feature +++ /dev/null @@ -1,24 +0,0 @@ -# language: en -@simpledb @sdb -Feature: Amazon SimpleDB - - I want to use Amazon SimpleDB - - Scenario: Making a request - When I call the "CreateDomain" API with: - | DomainName | sample-domain | - Then the request should be successful - And I call the "ListDomains" API - Then the value at "DomainNames" should be a list - And I call the "DeleteDomain" API with: - | DomainName | sample-domain | - Then the request should be successful - - Scenario: Handling errors - When I attempt to call the "CreateDomain" API with: - | DomainName | | - Then I expect the response error code to be "InvalidParameterValue" - And I expect the response error message to include: - """ - DomainName is invalid - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/client.go deleted file mode 100644 index 9f5fa7bbd..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package sns provides gucumber integration tests support. -package sns - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/sns" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@sns", func() { - World["client"] = sns.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/client.go deleted file mode 100644 index 41a2ad923..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package sqs provides gucumber integration tests support. -package sqs - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/sqs" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@sqs", func() { - World["client"] = sqs.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/client.go deleted file mode 100644 index 5cf02925e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package ssm provides gucumber integration tests support. -package ssm - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/ssm" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@ssm", func() { - World["client"] = ssm.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/client.go deleted file mode 100644 index 7fe4b7905..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package sts provides gucumber integration tests support. -package sts - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/sts" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@sts", func() { - World["client"] = sts.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/client.go deleted file mode 100644 index 5adc566d2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package support provides gucumber integration tests support. -package support - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/support" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@support", func() { - World["client"] = support.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/client.go deleted file mode 100644 index c3dfff5f4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package swf provides gucumber integration tests support. -package swf - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/swf" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@swf", func() { - World["client"] = swf.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/client.go deleted file mode 100644 index 13adf5245..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package waf provides gucumber integration tests support. -package waf - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/waf" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@waf", func() { - World["client"] = waf.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/waf.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/waf.feature deleted file mode 100644 index bf76fb661..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/waf.feature +++ /dev/null @@ -1,20 +0,0 @@ -# language: en -@waf -Feature: AWS WAF - - Scenario: Making a request - When I call the "ListRules" API with JSON: - """ - {"Limit":20} - """ - Then the value at "Rules" should be a list - - Scenario: Handling errors - When I attempt to call the "CreateSqlInjectionMatchSet" API with: - | Name | fake_name | - | ChangeToken | fake_token | - Then I expect the response error code to be "WAFStaleDataException" - And I expect the response error message to include: - """ - The input token is no longer current - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/client.go deleted file mode 100644 index e92022148..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/client.go +++ /dev/null @@ -1,14 +0,0 @@ -//Package workspaces provides gucumber integration tests support. -package workspaces - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/workspaces" - . "github.com/lsegal/gucumber" -) - -func init() { - Before("@workspaces", func() { - World["client"] = workspaces.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/mock/server.go b/vendor/github.com/aws/aws-sdk-go/awstesting/mock/server.go deleted file mode 100644 index 026f7beb2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/mock/server.go +++ /dev/null @@ -1,20 +0,0 @@ -package mock - -import ( - "net/http" - "net/http/httptest" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" -) - -// Session is a mock session which is used to hit the mock server -var Session = session.New(&aws.Config{ - DisableSSL: aws.Bool(true), - Endpoint: aws.String(server.URL[7:]), -}) - -// server is the mock server that simply writes a 200 status back to the client -var server = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusOK) -})) diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/benchmarks.go b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/benchmarks.go deleted file mode 100644 index 40a4d64f7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/benchmarks.go +++ /dev/null @@ -1,120 +0,0 @@ -package performance - -import ( - "errors" - "fmt" - "os" - "reflect" - "runtime" - "strings" - "testing" - - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting/mock" - "github.com/lsegal/gucumber" -) - -// mapCreateClients allows for the creation of clients -func mapCreateClients() { - clientFns := []func(){} - for _, c := range clients { - clientFns = append(clientFns, func() { c.Call([]reflect.Value{reflect.ValueOf(mock.Session)}) }) - } - - gucumber.World["services"] = clientFns -} - -func buildAnArrayOfClients() { - methods := []reflect.Value{} - params := [][]reflect.Value{} - - for _, c := range clients { - method, param, err := findAndGetMethod(c.Call([]reflect.Value{reflect.ValueOf(mock.Session)})) - if err == nil { - methods = append(methods, method) - params = append(params, param) - } - } - - fns := []func(){} - for i := 0; i < len(methods); i++ { - m := methods[i] - p := params[i] - f := func() { - reqs := m.Call(p) - resp := reqs[0].Interface().(*request.Request).Send() - fmt.Println(resp) - } - fns = append(fns, f) - } - gucumber.World["clientFns"] = fns -} - -// findAndGetMethod will grab the method, params to be passed to the method, and an error. -// The method that is found, is a method that doesn't have any required input -func findAndGetMethod(client interface{}) (reflect.Value, []reflect.Value, error) { - v := reflect.ValueOf(client).Type() - n := v.NumMethod() - -outer: - for i := 0; i < n; i++ { - method := v.Method(i) - if method.Type.NumIn() != 2 || strings.HasSuffix(method.Name, "Request") { - continue - } - param := reflect.New(method.Type.In(1).Elem()) - for j := 0; j < param.Elem().NumField(); j++ { - field := param.Elem().Type().Field(j) - req := field.Tag.Get("required") - - if req == "true" { - continue outer - } - } - - params := []reflect.Value{reflect.ValueOf(client), param} - return method.Func, params, nil - } - - return reflect.Value{}, nil, errors.New("No method found") -} - -// benchmarkTask takes a unique key to write to the logger with the benchmark -// result's data -func benchmarkTask(key string, fns []func(), i1 int) error { - gucumber.World["error"] = nil - memStatStart := &runtime.MemStats{} - runtime.ReadMemStats(memStatStart) - - results := testing.Benchmark(func(b *testing.B) { - for _, f := range fns { - for i := 0; i < i1; i++ { - f() - } - } - }) - - results.N = i1 - memStatEnd := &runtime.MemStats{} - runtime.ReadMemStats(memStatEnd) - l, err := newBenchmarkLogger("stdout") - if err != nil { - return err - } - l.log(key, results) - - toDynamodb := os.Getenv("AWS_TESTING_LOG_RESULTS") == "true" - if toDynamodb { - l, err := newBenchmarkLogger("dynamodb") - if err != nil { - return err - } - l.log(key+"_start_benchmarks", memStatStart) - l.log(key+"_end_benchmarks", memStatEnd) - } - - if memStatStart.Alloc < memStatEnd.Alloc { - return errors.New("Leaked memory") - } - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/client.go deleted file mode 100644 index fd5327a98..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/client.go +++ /dev/null @@ -1,11 +0,0 @@ -//Package performance provides gucumber integration tests support. -package performance - -import ( - "github.com/lsegal/gucumber" -) - -func init() { - gucumber.Before("@performance", func() { - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.feature deleted file mode 100644 index c248329e0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.feature +++ /dev/null @@ -1,17 +0,0 @@ -# language: en -@performance @clients -Feature: Client Performance - Background: - Given I have loaded my SDK and its dependencies - And I have a list of services - And I take a snapshot of my resources - - Scenario: Creating and then cleaning up clients doesn't leak resources - When I create and discard 100 clients for each service - Then I should not have leaked any resources - - Scenario: Sending requests doesn't leak resources - When I create a client for each service - And I execute 100 command(s) on each client - And I destroy all the clients - Then I should not have leaked any resources diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.go b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.go deleted file mode 100644 index a6a1d90d6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.go +++ /dev/null @@ -1,135 +0,0 @@ -package performance - -import ( - "reflect" - - "github.com/aws/aws-sdk-go/service/acm" - "github.com/aws/aws-sdk-go/service/apigateway" - "github.com/aws/aws-sdk-go/service/autoscaling" - "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/aws/aws-sdk-go/service/cloudhsm" - "github.com/aws/aws-sdk-go/service/cloudsearch" - "github.com/aws/aws-sdk-go/service/cloudsearchdomain" - "github.com/aws/aws-sdk-go/service/cloudtrail" - "github.com/aws/aws-sdk-go/service/cloudwatch" - "github.com/aws/aws-sdk-go/service/cloudwatchevents" - "github.com/aws/aws-sdk-go/service/cloudwatchlogs" - "github.com/aws/aws-sdk-go/service/codecommit" - "github.com/aws/aws-sdk-go/service/codedeploy" - "github.com/aws/aws-sdk-go/service/codepipeline" - "github.com/aws/aws-sdk-go/service/cognitoidentity" - "github.com/aws/aws-sdk-go/service/cognitosync" - "github.com/aws/aws-sdk-go/service/configservice" - "github.com/aws/aws-sdk-go/service/datapipeline" - "github.com/aws/aws-sdk-go/service/devicefarm" - "github.com/aws/aws-sdk-go/service/directconnect" - "github.com/aws/aws-sdk-go/service/directoryservice" - "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/aws/aws-sdk-go/service/dynamodbstreams" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ecr" - "github.com/aws/aws-sdk-go/service/ecs" - "github.com/aws/aws-sdk-go/service/efs" - "github.com/aws/aws-sdk-go/service/elasticache" - "github.com/aws/aws-sdk-go/service/elasticbeanstalk" - "github.com/aws/aws-sdk-go/service/elasticsearchservice" - "github.com/aws/aws-sdk-go/service/elastictranscoder" - "github.com/aws/aws-sdk-go/service/elb" - "github.com/aws/aws-sdk-go/service/emr" - "github.com/aws/aws-sdk-go/service/firehose" - "github.com/aws/aws-sdk-go/service/glacier" - "github.com/aws/aws-sdk-go/service/iam" - "github.com/aws/aws-sdk-go/service/inspector" - "github.com/aws/aws-sdk-go/service/iot" - "github.com/aws/aws-sdk-go/service/iotdataplane" - "github.com/aws/aws-sdk-go/service/kinesis" - "github.com/aws/aws-sdk-go/service/kms" - "github.com/aws/aws-sdk-go/service/lambda" - "github.com/aws/aws-sdk-go/service/machinelearning" - "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics" - "github.com/aws/aws-sdk-go/service/mobileanalytics" - "github.com/aws/aws-sdk-go/service/opsworks" - "github.com/aws/aws-sdk-go/service/rds" - "github.com/aws/aws-sdk-go/service/redshift" - "github.com/aws/aws-sdk-go/service/route53" - "github.com/aws/aws-sdk-go/service/route53domains" - "github.com/aws/aws-sdk-go/service/s3" - "github.com/aws/aws-sdk-go/service/ses" - "github.com/aws/aws-sdk-go/service/simpledb" - "github.com/aws/aws-sdk-go/service/sns" - "github.com/aws/aws-sdk-go/service/sqs" - "github.com/aws/aws-sdk-go/service/ssm" - "github.com/aws/aws-sdk-go/service/storagegateway" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/aws/aws-sdk-go/service/support" - "github.com/aws/aws-sdk-go/service/swf" - "github.com/aws/aws-sdk-go/service/waf" - "github.com/aws/aws-sdk-go/service/workspaces" -) - -var clients = []reflect.Value{ - reflect.ValueOf(acm.New), - reflect.ValueOf(apigateway.New), - reflect.ValueOf(autoscaling.New), - reflect.ValueOf(cloudformation.New), - reflect.ValueOf(cloudfront.New), - reflect.ValueOf(cloudhsm.New), - reflect.ValueOf(cloudsearch.New), - reflect.ValueOf(cloudsearchdomain.New), - reflect.ValueOf(cloudtrail.New), - reflect.ValueOf(cloudwatch.New), - reflect.ValueOf(cloudwatchevents.New), - reflect.ValueOf(cloudwatchlogs.New), - reflect.ValueOf(codecommit.New), - reflect.ValueOf(codedeploy.New), - reflect.ValueOf(codepipeline.New), - reflect.ValueOf(cognitoidentity.New), - reflect.ValueOf(cognitosync.New), - reflect.ValueOf(configservice.New), - reflect.ValueOf(datapipeline.New), - reflect.ValueOf(devicefarm.New), - reflect.ValueOf(directconnect.New), - reflect.ValueOf(directoryservice.New), - reflect.ValueOf(dynamodb.New), - reflect.ValueOf(dynamodbstreams.New), - reflect.ValueOf(ec2.New), - reflect.ValueOf(ecr.New), - reflect.ValueOf(ecs.New), - reflect.ValueOf(efs.New), - reflect.ValueOf(elasticache.New), - reflect.ValueOf(elasticbeanstalk.New), - reflect.ValueOf(elasticsearchservice.New), - reflect.ValueOf(elastictranscoder.New), - reflect.ValueOf(elb.New), - reflect.ValueOf(emr.New), - reflect.ValueOf(firehose.New), - reflect.ValueOf(glacier.New), - reflect.ValueOf(iam.New), - reflect.ValueOf(inspector.New), - reflect.ValueOf(iot.New), - reflect.ValueOf(iotdataplane.New), - reflect.ValueOf(kinesis.New), - reflect.ValueOf(kms.New), - reflect.ValueOf(lambda.New), - reflect.ValueOf(machinelearning.New), - reflect.ValueOf(marketplacecommerceanalytics.New), - reflect.ValueOf(mobileanalytics.New), - reflect.ValueOf(opsworks.New), - reflect.ValueOf(rds.New), - reflect.ValueOf(redshift.New), - reflect.ValueOf(route53.New), - reflect.ValueOf(route53domains.New), - reflect.ValueOf(s3.New), - reflect.ValueOf(ses.New), - reflect.ValueOf(simpledb.New), - reflect.ValueOf(sns.New), - reflect.ValueOf(sqs.New), - reflect.ValueOf(ssm.New), - reflect.ValueOf(storagegateway.New), - reflect.ValueOf(sts.New), - reflect.ValueOf(support.New), - reflect.ValueOf(swf.New), - reflect.ValueOf(waf.New), - reflect.ValueOf(workspaces.New), -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/init.go b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/init.go deleted file mode 100644 index 9fa18e378..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/init.go +++ /dev/null @@ -1,91 +0,0 @@ -package performance - -import ( - "bytes" - "errors" - "fmt" - "runtime" - - "github.com/lsegal/gucumber" - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/awstesting/mock" - "github.com/aws/aws-sdk-go/service/s3" -) - -func init() { - // Go loads all of its dependecies on compile - gucumber.Given(`^I have loaded my SDK and its dependencies$`, func() { - }) - - // Performance - gucumber.When(`^I create and discard (\d+) clients for each service$`, func(i1 int) { - services := gucumber.World["services"].([]func()) - err := benchmarkTask(fmt.Sprintf("%d_create_and_discard_clients", i1), services, i1) - gucumber.World["error"] = err - }) - - gucumber.Then(`^I should not have leaked any resources$`, func() { - runtime.GC() - err, ok := gucumber.World["error"].(awserr.Error) - assert.False(gucumber.T, ok, "error returned") - assert.NoError(gucumber.T, err) - }) - - gucumber.And(`^I have a list of services$`, func() { - mapCreateClients() - }) - - gucumber.And(`^I take a snapshot of my resources$`, func() { - // Can't take a memory snapshot here, because gucumber does some - // allocation between each instruction leading to unreliable numbers - }) - - gucumber.When(`^I create a client for each service$`, func() { - buildAnArrayOfClients() - }) - - gucumber.And("^I execute (\\d+) command\\(s\\) on each client$", func(i1 int) { - clientFns := gucumber.World["clientFns"].([]func()) - err := benchmarkTask(fmt.Sprintf("%d_commands_on_clients", i1), clientFns, i1) - gucumber.World["error"] = err - }) - - gucumber.And(`^I destroy all the clients$`, func() { - delete(gucumber.World, "clientFns") - runtime.GC() - }) - - gucumber.Given(`^I have a (\d+) byte file$`, func(i1 int) { - gucumber.World["file"] = make([]byte, i1) - }) - - gucumber.When(`^I upload the file$`, func() { - svc := s3.New(mock.Session) - memStatStart := &runtime.MemStats{} - runtime.ReadMemStats(memStatStart) - gucumber.World["start"] = memStatStart - - svc.PutObjectRequest(&s3.PutObjectInput{ - Bucket: aws.String("bucketmesilly"), - Key: aws.String("testKey"), - Body: bytes.NewReader(gucumber.World["file"].([]byte)), - }) - }) - - gucumber.And(`then download the file$`, func() { - svc := s3.New(mock.Session) - svc.GetObjectRequest(&s3.GetObjectInput{ - Bucket: aws.String("bucketmesilly"), - Key: aws.String("testKey"), - }) - memStatEnd := &runtime.MemStats{} - runtime.ReadMemStats(memStatEnd) - memStatStart := gucumber.World["start"].(*runtime.MemStats) - if memStatStart.Alloc < memStatEnd.Alloc { - gucumber.World["error"] = errors.New("Leaked memory") - } - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/logging.go b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/logging.go deleted file mode 100644 index e3a989030..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/logging.go +++ /dev/null @@ -1,120 +0,0 @@ -// Package performance contains shared step definitions that are used for performance testing -package performance - -import ( - "errors" - "fmt" - "os" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" -) - -// benchmarkLogger handles all benchmark logging -type benchmarkLogger struct { - outputer -} - -// logger interface that handles any logging to an output -type logger interface { - log(key string, data map[string]interface{}) error -} - -// init intializes the logger and uses dependecy injection for the -// outputer -func newBenchmarkLogger(output string) (*benchmarkLogger, error) { - b := &benchmarkLogger{} - switch output { - case "dynamodb": - region := os.Getenv("AWS_TESTING_REGION") - if region == "" { - return b, errors.New("No region specified. Please export AWS_TESTING_REGION") - } - - table := os.Getenv("AWS_TESTING_DB_TABLE") - if table == "" { - return b, errors.New("No table specified. Please export AWS_TESTING_DB_TABLE") - } - b.outputer = newDynamodbOut(table, region) - case "stdout": - b.outputer = stdout{} - default: - return b, errors.New("Unsupported outputer") - } - return b, nil -} - -type record struct { - Key string - Data interface{} -} - -// log calls the output command and building a data structure -// to pass into its output formatter -func (b benchmarkLogger) log(key, data interface{}) error { - formatData := record{ - Key: fmt.Sprintf("%d-%v", time.Now().Unix(), key.(string)), - Data: data, - } - - return b.output(formatData) -} - -// outputer is a simple interface that'll handle output -// to whatever system like dynamodb or stdout -type outputer interface { - output(record) error -} - -// dyanmodbOut handles simple writes to dynamodb -type dynamodbOut struct { - table string // table to write to in dynamodb - region string - db *dynamodb.DynamoDB // the dynamodb session -} - -// init initializes dynamodbOut to have a new session -func newDynamodbOut(table, region string) *dynamodbOut { - out := dynamodbOut{ - table: table, - region: region, - } - - out.db = dynamodb.New( - session.New(), - &aws.Config{Region: &out.region}, - ) - return &out -} - -// output just writes to dynamodb -func (out dynamodbOut) output(data record) error { - input := &dynamodb.PutItemInput{ - TableName: aws.String(out.table), - } - - item, err := dynamodbattribute.ConvertToMap(data) - if err != nil { - return err - } - - input.Item = item - _, err = out.db.PutItem(input) - return err -} - -// stdout handles writes to stdout -type stdout struct{} - -// output expects key value data to print to stdout -func (out stdout) output(data record) error { - item, err := dynamodbattribute.ConvertToMap(data.Data) - if err != nil { - return err - } - fmt.Println(item) - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/streaming.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/streaming.feature deleted file mode 100644 index cd24cb7db..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/streaming.feature +++ /dev/null @@ -1,26 +0,0 @@ -# language: en -@performance @streaming -Feature: Streaming transfers consume a fixed amount of memory - - Scenario Outline: Streaming uploads are O(1) in memory usage - Given I have a byte file - And I take a snapshot of my resources - When I upload the file - Then I should not have leaked any resources - - Examples: - | bytes | - | 2097152 | - | 209715200 | - - Scenario Outline: Streaming download are O(1) in memory usage - Given I have a byte file - And I take a snapshot of my resources - When I upload the file - And then download the file - Then I should not have leaked any resources - - Examples: - | bytes | - | 2097152 | - | 209715200 | diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.golang-tip b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.golang-tip deleted file mode 100644 index 70148d532..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.golang-tip +++ /dev/null @@ -1,42 +0,0 @@ -# Based on docker-library's golang 1.6 alpine and wheezy docker files. -# https://github.com/docker-library/golang/blob/master/1.6/alpine/Dockerfile -# https://github.com/docker-library/golang/blob/master/1.6/wheezy/Dockerfile -FROM buildpack-deps:wheezy-scm - -ENV GOLANG_VERSION tip -ENV GOLANG_SRC_REPO_URL https://go.googlesource.com/go - -ENV GOLANG_BOOTSTRAP_URL https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz -ENV GOLANG_BOOTSTRAP_SHA256 ce3140662f45356eb78bc16a88fc7cfb29fb00e18d7c632608245b789b2086d2 -ENV GOLANG_BOOTSTRAP_PATH /usr/local/bootstrap - -# gcc for cgo -RUN apt-get update && apt-get install -y --no-install-recommends \ - g++ \ - gcc \ - libc6-dev \ - make \ - git \ - && rm -rf /var/lib/apt/lists/* - -# Setup the Bootstrap -RUN mkdir -p "$GOLANG_BOOTSTRAP_PATH" \ - && curl -fsSL "$GOLANG_BOOTSTRAP_URL" -o golang.tar.gz \ - && echo "$GOLANG_BOOTSTRAP_SHA256 golang.tar.gz" | sha256sum -c - \ - && tar -C "$GOLANG_BOOTSTRAP_PATH" -xzf golang.tar.gz \ - && rm golang.tar.gz - -# Get and build Go tip -RUN export GOROOT_BOOTSTRAP=$GOLANG_BOOTSTRAP_PATH/go \ - && git clone "$GOLANG_SRC_REPO_URL" /usr/local/go \ - && cd /usr/local/go/src \ - && ./make.bash \ - && rm -rf "$GOLANG_BOOTSTRAP_PATH" /usr/local/go/pkg/bootstrap - -# Build Go workspace and environment -ENV GOPATH /go -ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH -RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" \ - && chmod -R 777 "$GOPATH" - -WORKDIR $GOPATH diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.4 b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.4 deleted file mode 100644 index e048ed567..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.4 +++ /dev/null @@ -1,7 +0,0 @@ -FROM ubuntu:12.04 -FROM golang:1.4 - -ADD . /go/src/github.com/aws/aws-sdk-go - -WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "get-deps", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5 b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5 deleted file mode 100644 index 010381c79..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5 +++ /dev/null @@ -1,9 +0,0 @@ -FROM ubuntu:12.04 -FROM golang:1.5 - -ADD . /go/src/github.com/aws/aws-sdk-go - -ENV GO15VENDOREXPERIMENT="1" - -WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5-novendorexp b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5-novendorexp deleted file mode 100644 index 9ec9f169d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5-novendorexp +++ /dev/null @@ -1,7 +0,0 @@ -FROM ubuntu:12.04 -FROM golang:1.5 - -ADD . /go/src/github.com/aws/aws-sdk-go - -WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "get-deps", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.6 b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.6 deleted file mode 100644 index 541a83735..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.6 +++ /dev/null @@ -1,7 +0,0 @@ -FROM ubuntu:12.04 -FROM golang:1.6 - -ADD . /go/src/github.com/aws/aws-sdk-go - -WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.7 b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.7 deleted file mode 100644 index aed4408a8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.7 +++ /dev/null @@ -1,7 +0,0 @@ -FROM ubuntu:12.04 -FROM golang:1.7 - -ADD . /go/src/github.com/aws/aws-sdk-go - -WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.gotip b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.gotip deleted file mode 100644 index 9758279f9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.gotip +++ /dev/null @@ -1,7 +0,0 @@ -FROM ubuntu:12.04 -FROM aws-golang:tip - -ADD . /go/src/github.com/aws/aws-sdk-go - -WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "unit"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/unit/unit.go b/vendor/github.com/aws/aws-sdk-go/awstesting/unit/unit.go deleted file mode 100644 index e3ec33a82..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/unit/unit.go +++ /dev/null @@ -1,13 +0,0 @@ -// Package unit performs initialization and validation for unit tests -package unit - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/credentials" - "github.com/aws/aws-sdk-go/aws/session" -) - -// Session is a shared session for unit tests to use. -var Session = session.New(aws.NewConfig(). - WithCredentials(credentials.NewStaticCredentials("AKID", "SECRET", "SESSION")). - WithRegion("mock-region")) diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/util.go b/vendor/github.com/aws/aws-sdk-go/awstesting/util.go deleted file mode 100644 index da43804ce..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/util.go +++ /dev/null @@ -1,60 +0,0 @@ -package awstesting - -import ( - "io" -) - -// ZeroReader is a io.Reader which will always write zeros to the byte slice provided. -type ZeroReader struct{} - -// Read fills the provided byte slice with zeros returning the number of bytes written. -func (r *ZeroReader) Read(b []byte) (int, error) { - for i := 0; i < len(b); i++ { - b[i] = 0 - } - return len(b), nil -} - -// ReadCloser is a io.ReadCloser for unit testing. -// Designed to test for leaks and whether a handle has -// been closed -type ReadCloser struct { - Size int - Closed bool - set bool - FillData func(bool, []byte, int, int) -} - -// Read will call FillData and fill it with whatever data needed. -// Decrements the size until zero, then return io.EOF. -func (r *ReadCloser) Read(b []byte) (int, error) { - if r.Closed { - return 0, io.EOF - } - - delta := len(b) - if delta > r.Size { - delta = r.Size - } - r.Size -= delta - - for i := 0; i < delta; i++ { - b[i] = 'a' - } - - if r.FillData != nil { - r.FillData(r.set, b, r.Size, delta) - } - r.set = true - - if r.Size > 0 { - return delta, nil - } - return delta, io.EOF -} - -// Close sets Closed to true and returns no error -func (r *ReadCloser) Close() error { - r.Closed = true - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/util_test.go b/vendor/github.com/aws/aws-sdk-go/awstesting/util_test.go deleted file mode 100644 index 4b03db019..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/util_test.go +++ /dev/null @@ -1,49 +0,0 @@ -package awstesting_test - -import ( - "io" - "testing" - - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/awstesting" -) - -func TestReadCloserClose(t *testing.T) { - rc := awstesting.ReadCloser{Size: 1} - err := rc.Close() - - assert.Nil(t, err) - assert.True(t, rc.Closed) - assert.Equal(t, rc.Size, 1) -} - -func TestReadCloserRead(t *testing.T) { - rc := awstesting.ReadCloser{Size: 5} - b := make([]byte, 2) - - n, err := rc.Read(b) - - assert.Nil(t, err) - assert.Equal(t, n, 2) - assert.False(t, rc.Closed) - assert.Equal(t, rc.Size, 3) - - err = rc.Close() - assert.Nil(t, err) - n, err = rc.Read(b) - assert.Equal(t, err, io.EOF) - assert.Equal(t, n, 0) -} - -func TestReadCloserReadAll(t *testing.T) { - rc := awstesting.ReadCloser{Size: 5} - b := make([]byte, 5) - - n, err := rc.Read(b) - - assert.Equal(t, err, io.EOF) - assert.Equal(t, n, 5) - assert.False(t, rc.Closed) - assert.Equal(t, rc.Size, 0) -} diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/callgraph.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/callgraph.html deleted file mode 100644 index c56b2ef1a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/callgraph.html +++ /dev/null @@ -1,15 +0,0 @@ - diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/codewalk.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/codewalk.html deleted file mode 100644 index 0f3d22a20..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/codewalk.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - -
-
-
-
-
- - Pop Out Code - - -
-
- -
-
-
- code on leftright - code width 70% - filepaths shownhidden -
-
-
-
- {{range .Step}} -
- -
{{html .Title}}
-
- {{with .Err}} - ERROR LOADING FILE: {{html .}}

- {{end}} - {{.XML}} -
-
{{html .}}
-
- {{end}} -
-
- previous step - • - next step -
-
-
diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/codewalkdir.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/codewalkdir.html deleted file mode 100644 index b7674c6ce..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/codewalkdir.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -{{range .}} - - {{$name_html := html .Name}} - - - - -{{end}} -
{{$name_html}} {{html .Title}}
diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/dirlist.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/dirlist.html deleted file mode 100644 index a3e1a2fa8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/dirlist.html +++ /dev/null @@ -1,31 +0,0 @@ - - -

- - - - - - - - - - - -{{range .}} - - {{$name_html := fileInfoName . | html}} - - - - - - -{{end}} - -
File Bytes Modified
..
{{$name_html}}{{html .Size}}{{fileInfoTime . | html}}
-

diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/error.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/error.html deleted file mode 100644 index 7573aa236..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/error.html +++ /dev/null @@ -1,9 +0,0 @@ - - -

-{{html .}} -

diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/example.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/example.html deleted file mode 100644 index 4f4e09e87..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/example.html +++ /dev/null @@ -1,30 +0,0 @@ -
- -
-

Example{{example_suffix .Name}}

- {{with .Doc}}

{{html .}}

{{end}} - {{$output := .Output}} - {{with .Play}} -
-
-
{{html $output}}
-
- Run - Format - {{if $.Share}} - - {{end}} -
-
- {{else}} -

Code:

-
{{.Code}}
- {{with .Output}} -

Output:

-
{{html .}}
- {{end}} - {{end}} -
-
diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/godoc.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/godoc.html deleted file mode 100644 index 80a9cf952..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/godoc.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - -{{with .Tabtitle}} - {{html .}} - Amazon Web Services - Go SDK -{{else}} - Amazon Web Services - Go SDK -{{end}} - - - - - - - - - - - - - - - - -
-... -
- -
- - - -
-
- -{{/* The Table of Contents is automatically inserted in this
. - Do not delete this
. */}} -{{ if not .NoTOC }} - -{{ end }} -
-
- -{{/* Body is HTML-escaped elsewhere */}} -{{printf "%s" .Body}} -
-
-
- -
-
- - - - - diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/godocs.js b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/godocs.js deleted file mode 100644 index ec9f37a9b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/godocs.js +++ /dev/null @@ -1,571 +0,0 @@ -// Copyright 2012 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -/* A little code to ease navigation of these documents. - * - * On window load we: - * + Bind search box hint placeholder show/hide events (bindSearchEvents) - * + Generate a table of contents (generateTOC) - * + Bind foldable sections (bindToggles) - * + Bind links to foldable sections (bindToggleLinks) - */ - -(function() { -'use strict'; - -// Mobile-friendly topbar menu -$(function() { - var menu = $('#menu'); - var menuButton = $('#menu-button'); - var menuButtonArrow = $('#menu-button-arrow'); - menuButton.click(function(event) { - menu.toggleClass('menu-visible'); - menuButtonArrow.toggleClass('vertical-flip'); - event.preventDefault(); - return false; - }); -}); - -function bindSearchEvents() { - - var search = $('#search'); - if (search.length === 0) { - return; // no search box - } - - function clearInactive() { - if (search.is('.inactive')) { - search.val(''); - search.removeClass('inactive'); - } - } - - function restoreInactive() { - if (search.val() !== '') { - return; - } - search.val(search.attr('placeholder')); - search.addClass('inactive'); - } - - search.on('focus', clearInactive); - search.on('blur', restoreInactive); - - restoreInactive(); -} - -/* Generates a table of contents: looks for h2 and h3 elements and generates - * links. "Decorates" the element with id=="nav" with this table of contents. - */ -function generateTOC() { - if ($('#manual-nav').length > 0) { - return; - } - - var nav = $('#nav'); - if (nav.length === 0) { - return; - } - - var toc_items = []; - $(nav).nextAll('h2, h3').each(function() { - var node = this; - if (node.id == '') - node.id = 'tmp_' + toc_items.length; - var link = $('').attr('href', '#' + node.id).text($(node).text()); - var item; - if ($(node).is('h2')) { - item = $('
'); - } else { // h3 - item = $('
'); - } - item.append(link); - toc_items.push(item); - }); - if (toc_items.length <= 1) { - return; - } - - var dl1 = $('
'); - var dl2 = $('
'); - - var split_index = (toc_items.length / 2) + 1; - if (split_index < 8) { - split_index = toc_items.length; - } - for (var i = 0; i < split_index; i++) { - dl1.append(toc_items[i]); - } - for (/* keep using i */; i < toc_items.length; i++) { - dl2.append(toc_items[i]); - } - - var tocTable = $('').appendTo(nav); - var tocBody = $('').appendTo(tocTable); - var tocRow = $('').appendTo(tocBody); - - // 1st column - $(']","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*\s*$/g,bz={option:[1,""],legend:[1,"
","
"],thead:[1,"
').appendTo(tocRow).append(dl1); - // 2nd column - $('').appendTo(tocRow).append(dl2); -} - -function bindToggle(el) { - $('.toggleButton', el).click(function() { - if ($(el).is('.toggle')) { - $(el).addClass('toggleVisible').removeClass('toggle'); - } else { - $(el).addClass('toggle').removeClass('toggleVisible'); - } - }); -} -function bindToggles(selector) { - $(selector).each(function(i, el) { - bindToggle(el); - }); -} - -function bindToggleLink(el, prefix) { - $(el).click(function() { - var href = $(el).attr('href'); - var i = href.indexOf('#'+prefix); - if (i < 0) { - return; - } - var id = '#' + prefix + href.slice(i+1+prefix.length); - if ($(id).is('.toggle')) { - $(id).find('.toggleButton').first().click(); - } - }); -} -function bindToggleLinks(selector, prefix) { - $(selector).each(function(i, el) { - bindToggleLink(el, prefix); - }); -} - -function setupDropdownPlayground() { - if (!$('#page').is('.wide')) { - return; // don't show on front page - } - var button = $('#playgroundButton'); - var div = $('#playground'); - var setup = false; - button.toggle(function() { - button.addClass('active'); - div.show(); - if (setup) { - return; - } - setup = true; - playground({ - 'codeEl': $('.code', div), - 'outputEl': $('.output', div), - 'runEl': $('.run', div), - 'fmtEl': $('.fmt', div), - 'shareEl': $('.share', div), - 'shareRedirect': '//play.golang.org/p/' - }); - }, - function() { - button.removeClass('active'); - div.hide(); - }); - button.show(); - $('#menu').css('min-width', '+=60'); -} - -function setupInlinePlayground() { - 'use strict'; - // Set up playground when each element is toggled. - $('div.play').each(function (i, el) { - // Set up playground for this example. - var setup = function() { - var code = $('.code', el); - playground({ - 'codeEl': code, - 'outputEl': $('.output', el), - 'runEl': $('.run', el), - 'fmtEl': $('.fmt', el), - 'shareEl': $('.share', el), - 'shareRedirect': '//play.golang.org/p/' - }); - - // Make the code textarea resize to fit content. - var resize = function() { - code.height(0); - var h = code[0].scrollHeight; - code.height(h+20); // minimize bouncing. - code.closest('.input').height(h); - }; - code.on('keydown', resize); - code.on('keyup', resize); - code.keyup(); // resize now. - }; - - // If example already visible, set up playground now. - if ($(el).is(':visible')) { - setup(); - return; - } - - // Otherwise, set up playground when example is expanded. - var built = false; - $(el).closest('.toggle').click(function() { - // Only set up once. - if (!built) { - setup(); - built = true; - } - }); - }); -} - -// fixFocus tries to put focus to div#page so that keyboard navigation works. -function fixFocus() { - var page = $('div#page'); - var topbar = $('div#topbar'); - page.css('outline', 0); // disable outline when focused - page.attr('tabindex', -1); // and set tabindex so that it is focusable - $(window).resize(function (evt) { - // only focus page when the topbar is at fixed position (that is, it's in - // front of page, and keyboard event will go to the former by default.) - // by focusing page, keyboard event will go to page so that up/down arrow, - // space, etc. will work as expected. - if (topbar.css('position') == "fixed") - page.focus(); - }).resize(); -} - -function toggleHash() { - var hash = $(window.location.hash); - if (hash.is('.toggle')) { - hash.find('.toggleButton').first().click(); - } -} - -function personalizeInstallInstructions() { - var prefix = '?download='; - var s = window.location.search; - if (s.indexOf(prefix) != 0) { - // No 'download' query string; bail. - return; - } - - var filename = s.substr(prefix.length); - var filenameRE = /^go1\.\d+(\.\d+)?([a-z0-9]+)?\.([a-z0-9]+)(-[a-z0-9]+)?(-osx10\.[68])?\.([a-z.]+)$/; - $('.downloadFilename').text(filename); - $('.hideFromDownload').hide(); - var m = filenameRE.exec(filename); - if (!m) { - // Can't interpret file name; bail. - return; - } - - var os = m[3]; - var ext = m[6]; - if (ext != 'tar.gz') { - $('#tarballInstructions').hide(); - } - if (os != 'darwin' || ext != 'pkg') { - $('#darwinPackageInstructions').hide(); - } - if (os != 'windows') { - $('#windowsInstructions').hide(); - $('.testUnix').show(); - $('.testWindows').hide(); - } else { - if (ext != 'msi') { - $('#windowsInstallerInstructions').hide(); - } - if (ext != 'zip') { - $('#windowsZipInstructions').hide(); - } - $('.testUnix').hide(); - $('.testWindows').show(); - } - - var download = "https://storage.googleapis.com/golang/" + filename; - - var message = $('

'+ - 'Your download should begin shortly. '+ - 'If it does not, click this link.

'); - message.find('a').attr('href', download); - message.insertAfter('#nav'); - - window.location = download; -} - -$(document).ready(function() { - bindSearchEvents(); - generateTOC(); - bindToggles(".toggle"); - bindToggles(".toggleVisible"); - bindToggleLinks(".exampleLink", "example_"); - bindToggleLinks(".overviewLink", ""); - bindToggleLinks(".examplesLink", ""); - bindToggleLinks(".indexLink", ""); - setupDropdownPlayground(); - setupInlinePlayground(); - fixFocus(); - setupTypeInfo(); - setupCallgraphs(); - toggleHash(); - personalizeInstallInstructions(); - - // godoc.html defines window.initFuncs in the tag, and root.html and - // codewalk.js push their on-page-ready functions to the list. - // We execute those functions here, to avoid loading jQuery until the page - // content is loaded. - for (var i = 0; i < window.initFuncs.length; i++) window.initFuncs[i](); -}); - -// -- analysis --------------------------------------------------------- - -// escapeHTML returns HTML for s, with metacharacters quoted. -// It is safe for use in both elements and attributes -// (unlike the "set innerText, read innerHTML" trick). -function escapeHTML(s) { - return s.replace(/&/g, '&'). - replace(/\"/g, '"'). - replace(/\'/g, '''). - replace(//g, '>'); -} - -// makeAnchor returns HTML for an element, given an anchorJSON object. -function makeAnchor(json) { - var html = escapeHTML(json.Text); - if (json.Href != "") { - html = "" + html + ""; - } - return html; -} - -function showLowFrame(html) { - var lowframe = document.getElementById('lowframe'); - lowframe.style.height = "200px"; - lowframe.innerHTML = "

" + html + "

\n" + - "
" -}; - -document.hideLowFrame = function() { - var lowframe = document.getElementById('lowframe'); - lowframe.style.height = "0px"; -} - -// onClickCallers is the onclick action for the 'func' tokens of a -// function declaration. -document.onClickCallers = function(index) { - var data = document.ANALYSIS_DATA[index] - if (data.Callers.length == 1 && data.Callers[0].Sites.length == 1) { - document.location = data.Callers[0].Sites[0].Href; // jump to sole caller - return; - } - - var html = "Callers of " + escapeHTML(data.Callee) + ":
\n"; - for (var i = 0; i < data.Callers.length; i++) { - var caller = data.Callers[i]; - html += "" + escapeHTML(caller.Func) + ""; - var sites = caller.Sites; - if (sites != null && sites.length > 0) { - html += " at line "; - for (var j = 0; j < sites.length; j++) { - if (j > 0) { - html += ", "; - } - html += "" + makeAnchor(sites[j]) + ""; - } - } - html += "
\n"; - } - showLowFrame(html); -}; - -// onClickCallees is the onclick action for the '(' token of a function call. -document.onClickCallees = function(index) { - var data = document.ANALYSIS_DATA[index] - if (data.Callees.length == 1) { - document.location = data.Callees[0].Href; // jump to sole callee - return; - } - - var html = "Callees of this " + escapeHTML(data.Descr) + ":
\n"; - for (var i = 0; i < data.Callees.length; i++) { - html += "" + makeAnchor(data.Callees[i]) + "
\n"; - } - showLowFrame(html); -}; - -// onClickTypeInfo is the onclick action for identifiers declaring a named type. -document.onClickTypeInfo = function(index) { - var data = document.ANALYSIS_DATA[index]; - var html = "Type " + data.Name + ": " + - "      (size=" + data.Size + ", align=" + data.Align + ")
\n"; - html += implementsHTML(data); - html += methodsetHTML(data); - showLowFrame(html); -}; - -// implementsHTML returns HTML for the implements relation of the -// specified TypeInfoJSON value. -function implementsHTML(info) { - var html = ""; - if (info.ImplGroups != null) { - for (var i = 0; i < info.ImplGroups.length; i++) { - var group = info.ImplGroups[i]; - var x = "" + escapeHTML(group.Descr) + " "; - for (var j = 0; j < group.Facts.length; j++) { - var fact = group.Facts[j]; - var y = "" + makeAnchor(fact.Other) + ""; - if (fact.ByKind != null) { - html += escapeHTML(fact.ByKind) + " type " + y + " implements " + x; - } else { - html += x + " implements " + y; - } - html += "
\n"; - } - } - } - return html; -} - - -// methodsetHTML returns HTML for the methodset of the specified -// TypeInfoJSON value. -function methodsetHTML(info) { - var html = ""; - if (info.Methods != null) { - for (var i = 0; i < info.Methods.length; i++) { - html += "" + makeAnchor(info.Methods[i]) + "
\n"; - } - } - return html; -} - -// onClickComm is the onclick action for channel "make" and "<-" -// send/receive tokens. -document.onClickComm = function(index) { - var ops = document.ANALYSIS_DATA[index].Ops - if (ops.length == 1) { - document.location = ops[0].Op.Href; // jump to sole element - return; - } - - var html = "Operations on this channel:
\n"; - for (var i = 0; i < ops.length; i++) { - html += makeAnchor(ops[i].Op) + " by " + escapeHTML(ops[i].Fn) + "
\n"; - } - if (ops.length == 0) { - html += "(none)
\n"; - } - showLowFrame(html); -}; - -$(window).load(function() { - // Scroll window so that first selection is visible. - // (This means we don't need to emit id='L%d' spans for each line.) - // TODO(adonovan): ideally, scroll it so that it's under the pointer, - // but I don't know how to get the pointer y coordinate. - var elts = document.getElementsByClassName("selection"); - if (elts.length > 0) { - elts[0].scrollIntoView() - } -}); - -// setupTypeInfo populates the "Implements" and "Method set" toggle for -// each type in the package doc. -function setupTypeInfo() { - for (var i in document.ANALYSIS_DATA) { - var data = document.ANALYSIS_DATA[i]; - - var el = document.getElementById("implements-" + i); - if (el != null) { - // el != null => data is TypeInfoJSON. - if (data.ImplGroups != null) { - el.innerHTML = implementsHTML(data); - el.parentNode.parentNode.style.display = "block"; - } - } - - var el = document.getElementById("methodset-" + i); - if (el != null) { - // el != null => data is TypeInfoJSON. - if (data.Methods != null) { - el.innerHTML = methodsetHTML(data); - el.parentNode.parentNode.style.display = "block"; - } - } - } -} - -function setupCallgraphs() { - if (document.CALLGRAPH == null) { - return - } - document.getElementById("pkg-callgraph").style.display = "block"; - - var treeviews = document.getElementsByClassName("treeview"); - for (var i = 0; i < treeviews.length; i++) { - var tree = treeviews[i]; - if (tree.id == null || tree.id.indexOf("callgraph-") != 0) { - continue; - } - var id = tree.id.substring("callgraph-".length); - $(tree).treeview({collapsed: true, animated: "fast"}); - document.cgAddChildren(tree, tree, [id]); - tree.parentNode.parentNode.style.display = "block"; - } -} - -document.cgAddChildren = function(tree, ul, indices) { - if (indices != null) { - for (var i = 0; i < indices.length; i++) { - var li = cgAddChild(tree, ul, document.CALLGRAPH[indices[i]]); - if (i == indices.length - 1) { - $(li).addClass("last"); - } - } - } - $(tree).treeview({animated: "fast", add: ul}); -} - -// cgAddChild adds an
  • element for document.CALLGRAPH node cgn to -// the parent
      element ul. tree is the tree's root
        element. -function cgAddChild(tree, ul, cgn) { - var li = document.createElement("li"); - ul.appendChild(li); - li.className = "closed"; - - var code = document.createElement("code"); - - if (cgn.Callees != null) { - $(li).addClass("expandable"); - - // Event handlers and innerHTML updates don't play nicely together, - // hence all this explicit DOM manipulation. - var hitarea = document.createElement("div"); - hitarea.className = "hitarea expandable-hitarea"; - li.appendChild(hitarea); - - li.appendChild(code); - - var childUL = document.createElement("ul"); - li.appendChild(childUL); - childUL.setAttribute('style', "display: none;"); - - var onClick = function() { - document.cgAddChildren(tree, childUL, cgn.Callees); - hitarea.removeEventListener('click', onClick) - }; - hitarea.addEventListener('click', onClick); - - } else { - li.appendChild(code); - } - code.innerHTML += " " + makeAnchor(cgn.Func); - return li -} - -})(); diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/implements.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/implements.html deleted file mode 100644 index 5f65b861a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/implements.html +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.js b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.js deleted file mode 100644 index bc3fbc81b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! jQuery v1.8.2 jquery.com | jquery.org/license */ -(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write(""),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bS[a]=c,c}function ci(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||ce.test(a)?d(a,e):ci(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ci(a+"["+e+"]",b[e],c,d);else d(a,b)}function cz(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.2",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return a!=null?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b
        a",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="
        t
        ",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="
        ",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||p.guid++:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.length,e=c.shift(),f=p._queueHooks(a,b),g=function(){p.dequeue(a,b)};e==="inprogress"&&(e=c.shift(),d--),e&&(b==="fx"&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c=0)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c=0)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,d+""),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;j=0:p.find(m,this,null,[f]).length),h[m]&&j.push(l);j.length&&u.push({elem:f,matches:j})}o.length>q&&u.push({elem:this,matches:o.slice(q)});for(d=0;d0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function bc(a,b,c,d){c=c||[],b=b||r;var e,f,i,j,k=b.nodeType;if(!a||typeof a!="string")return c;if(k!==1&&k!==9)return[];i=g(b);if(!i&&!d)if(e=P.exec(a))if(j=e[1]){if(k===9){f=b.getElementById(j);if(!f||!f.parentNode)return c;if(f.id===j)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(j))&&h(b,f)&&f.id===j)return c.push(f),c}else{if(e[2])return w.apply(c,x.call(b.getElementsByTagName(a),0)),c;if((j=e[3])&&_&&b.getElementsByClassName)return w.apply(c,x.call(b.getElementsByClassName(j),0)),c}return bp(a.replace(L,"$1"),b,c,d,i)}function bd(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function be(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function bf(a){return z(function(b){return b=+b,z(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function bg(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}function bh(a,b){var c,d,f,g,h,i,j,k=C[o][a];if(k)return b?0:k.slice(0);h=a,i=[],j=e.preFilter;while(h){if(!c||(d=M.exec(h)))d&&(h=h.slice(d[0].length)),i.push(f=[]);c=!1;if(d=N.exec(h))f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=d[0].replace(L," ");for(g in e.filter)(d=W[g].exec(h))&&(!j[g]||(d=j[g](d,r,!0)))&&(f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=g,c.matches=d);if(!c)break}return b?h.length:h?bc.error(a):C(a,i).slice(0)}function bi(a,b,d){var e=b.dir,f=d&&b.dir==="parentNode",g=u++;return b.first?function(b,c,d){while(b=b[e])if(f||b.nodeType===1)return a(b,c,d)}:function(b,d,h){if(!h){var i,j=t+" "+g+" ",k=j+c;while(b=b[e])if(f||b.nodeType===1){if((i=b[o])===k)return b.sizset;if(typeof i=="string"&&i.indexOf(j)===0){if(b.sizset)return b}else{b[o]=k;if(a(b,d,h))return b.sizset=!0,b;b.sizset=!1}}}else while(b=b[e])if(f||b.nodeType===1)if(a(b,d,h))return b}}function bj(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function bk(a,b,c,d,e){var f,g=[],h=0,i=a.length,j=b!=null;for(;h-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==l)||((b=c).nodeType?j(a,c,d):k(a,c,d))}];for(;i1&&bj(m),i>1&&a.slice(0,i-1).join("").replace(L,"$1"),c,i0,f=a.length>0,g=function(h,i,j,k,m){var n,o,p,q=[],s=0,u="0",x=h&&[],y=m!=null,z=l,A=h||f&&e.find.TAG("*",m&&i.parentNode||i),B=t+=z==null?1:Math.E;y&&(l=i!==r&&i,c=g.el);for(;(n=A[u])!=null;u++){if(f&&n){for(o=0;p=a[o];o++)if(p(n,i,j)){k.push(n);break}y&&(t=B,c=++g.el)}d&&((n=!p&&n)&&s--,h&&x.push(n))}s+=u;if(d&&u!==s){for(o=0;p=b[o];o++)p(x,q,i,j);if(h){if(s>0)while(u--)!x[u]&&!q[u]&&(q[u]=v.call(k));q=bk(q)}w.apply(k,q),y&&!h&&q.length>0&&s+b.length>1&&bc.uniqueSort(k)}return y&&(t=B,l=z),x};return g.el=0,d?z(g):g}function bo(a,b,c,d){var e=0,f=b.length;for(;e2&&(j=h[0]).type==="ID"&&b.nodeType===9&&!f&&e.relative[h[1].type]){b=e.find.ID(j.matches[0].replace(V,""),b,f)[0];if(!b)return c;a=a.slice(h.shift().length)}for(g=W.POS.test(a)?-1:h.length-1;g>=0;g--){j=h[g];if(e.relative[k=j.type])break;if(l=e.find[k])if(d=l(j.matches[0].replace(V,""),R.test(h[0].type)&&b.parentNode||b,f)){h.splice(g,1),a=d.length&&h.join("");if(!a)return w.apply(c,x.call(d,0)),c;break}}}return i(a,m)(d,b,f,c,R.test(a)),c}function bq(){}var c,d,e,f,g,h,i,j,k,l,m=!0,n="undefined",o=("sizcache"+Math.random()).replace(".",""),q=String,r=a.document,s=r.documentElement,t=0,u=0,v=[].pop,w=[].push,x=[].slice,y=[].indexOf||function(a){var b=0,c=this.length;for(;be.cacheLength&&delete a[b.shift()],a[c]=d},a)},B=A(),C=A(),D=A(),E="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",G=F.replace("w","w#"),H="([*^$|!~]?=)",I="\\["+E+"*("+F+")"+E+"*(?:"+H+E+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+G+")|)|)"+E+"*\\]",J=":("+F+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+I+")|[^:]|\\\\.)*|.*))\\)|)",K=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)",L=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g"),M=new RegExp("^"+E+"*,"+E+"*"),N=new RegExp("^"+E+"*([\\x20\\t\\r\\n\\f>+~])"+E+"*"),O=new RegExp(J),P=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,Q=/^:not/,R=/[\x20\t\r\n\f]*[+~]/,S=/:not\($/,T=/h\d/i,U=/input|select|textarea|button/i,V=/\\(?!\\)/g,W={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),NAME:new RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+J),POS:new RegExp(K,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),needsContext:new RegExp("^"+E+"*[>+~]|"+K,"i")},X=function(a){var b=r.createElement("div");try{return a(b)}catch(c){return!1}finally{b=null}},Y=X(function(a){return a.appendChild(r.createComment("")),!a.getElementsByTagName("*").length}),Z=X(function(a){return a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!==n&&a.firstChild.getAttribute("href")==="#"}),$=X(function(a){a.innerHTML="";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),_=X(function(a){return a.innerHTML="",!a.getElementsByClassName||!a.getElementsByClassName("e").length?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length===2)}),ba=X(function(a){a.id=o+0,a.innerHTML="
        ",s.insertBefore(a,s.firstChild);var b=r.getElementsByName&&r.getElementsByName(o).length===2+r.getElementsByName(o+0).length;return d=!r.getElementById(o),s.removeChild(a),b});try{x.call(s.childNodes,0)[0].nodeType}catch(bb){x=function(a){var b,c=[];for(;b=this[a];a++)c.push(b);return c}}bc.matches=function(a,b){return bc(a,null,null,b)},bc.matchesSelector=function(a,b){return bc(b,null,null,[a]).length>0},f=bc.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(e===1||e===9||e===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=f(a)}else if(e===3||e===4)return a.nodeValue}else for(;b=a[d];d++)c+=f(b);return c},g=bc.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},h=bc.contains=s.contains?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&d.nodeType===1&&c.contains&&c.contains(d))}:s.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16)}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1},bc.attr=function(a,b){var c,d=g(a);return d||(b=b.toLowerCase()),(c=e.attrHandle[b])?c(a):d||$?a.getAttribute(b):(c=a.getAttributeNode(b),c?typeof a[b]=="boolean"?a[b]?b:null:c.specified?c.value:null:null)},e=bc.selectors={cacheLength:50,createPseudo:z,match:W,attrHandle:Z?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:d?function(a,b,c){if(typeof b.getElementById!==n&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==n&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==n&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:Y?function(a,b){if(typeof b.getElementsByTagName!==n)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c},NAME:ba&&function(a,b){if(typeof b.getElementsByName!==n)return b.getElementsByName(name)},CLASS:_&&function(a,b,c){if(typeof b.getElementsByClassName!==n&&!c)return b.getElementsByClassName(a)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(V,""),a[3]=(a[4]||a[5]||"").replace(V,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||bc.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&bc.error(a[0]),a},PSEUDO:function(a){var b,c;if(W.CHILD.test(a[0]))return null;if(a[3])a[2]=a[3];else if(b=a[4])O.test(b)&&(c=bh(b,!0))&&(c=b.indexOf(")",b.length-c)-b.length)&&(b=b.slice(0,c),a[0]=a[0].slice(0,c)),a[2]=b;return a.slice(0,3)}},filter:{ID:d?function(a){return a=a.replace(V,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(V,""),function(b){var c=typeof b.getAttributeNode!==n&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(V,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=B[o][a];return b||(b=B(a,new RegExp("(^|"+E+")"+a+"("+E+"|$)"))),function(a){return b.test(a.className||typeof a.getAttribute!==n&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return function(d,e){var f=bc.attr(d,a);return f==null?b==="!=":b?(f+="",b==="="?f===c:b==="!="?f!==c:b==="^="?c&&f.indexOf(c)===0:b==="*="?c&&f.indexOf(c)>-1:b==="$="?c&&f.substr(f.length-c.length)===c:b==="~="?(" "+f+" ").indexOf(c)>-1:b==="|="?f===c||f.substr(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d){return a==="nth"?function(a){var b,e,f=a.parentNode;if(c===1&&d===0)return!0;if(f){e=0;for(b=f.firstChild;b;b=b.nextSibling)if(b.nodeType===1){e++;if(a===b)break}}return e-=d,e===c||e%c===0&&e/c>=0}:function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b){var c,d=e.pseudos[a]||e.setFilters[a.toLowerCase()]||bc.error("unsupported pseudo: "+a);return d[o]?d(b):d.length>1?(c=[a,a,"",b],e.setFilters.hasOwnProperty(a.toLowerCase())?z(function(a,c){var e,f=d(a,b),g=f.length;while(g--)e=y.call(a,f[g]),a[e]=!(c[e]=f[g])}):function(a){return d(a,0,c)}):d}},pseudos:{not:z(function(a){var b=[],c=[],d=i(a.replace(L,"$1"));return d[o]?z(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)if(f=g[h])a[h]=!(b[h]=f)}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:z(function(a){return function(b){return bc(a,b).length>0}}),contains:z(function(a){return function(b){return(b.textContent||b.innerText||f(b)).indexOf(a)>-1}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!e.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},header:function(a){return T.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:bd("radio"),checkbox:bd("checkbox"),file:bd("file"),password:bd("password"),image:bd("image"),submit:be("submit"),reset:be("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return U.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement},first:bf(function(a,b,c){return[0]}),last:bf(function(a,b,c){return[b-1]}),eq:bf(function(a,b,c){return[c<0?c+b:c]}),even:bf(function(a,b,c){for(var d=0;d=0;)a.push(d);return a}),gt:bf(function(a,b,c){for(var d=c<0?c+b:c;++d",a.querySelectorAll("[selected]").length||e.push("\\["+E+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),X(function(a){a.innerHTML="

        ",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+E+"*(?:\"\"|'')"),a.innerHTML="",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=new RegExp(e.join("|")),bp=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a))){var i,j,k=!0,l=o,m=d,n=d.nodeType===9&&a;if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){i=bh(a),(k=d.getAttribute("id"))?l=k.replace(c,"\\$&"):d.setAttribute("id",l),l="[id='"+l+"'] ",j=i.length;while(j--)i[j]=l+i[j].join("");m=R.test(a)&&d.parentNode||d,n=i.join(",")}if(n)try{return w.apply(f,x.call(m.querySelectorAll(n),0)),f}catch(p){}finally{k||d.removeAttribute("id")}}return b(a,d,f,g,h)},h&&(X(function(b){a=h.call(b,"div");try{h.call(b,"[test!='']:sizzle"),f.push("!=",J)}catch(c){}}),f=new RegExp(f.join("|")),bc.matchesSelector=function(b,c){c=c.replace(d,"='$1']");if(!g(b)&&!f.test(c)&&(!e||!e.test(c)))try{var i=h.call(b,c);if(i||a||b.document&&b.document.nodeType!==11)return i}catch(j){}return bc(c,null,null,[b]).length>0})}(),e.pseudos.nth=e.pseudos.eq,e.filters=bq.prototype=e.pseudos,e.setFilters=new bq,bc.attr=p.attr,p.find=bc,p.expr=bc.selectors,p.expr[":"]=p.expr.pseudos,p.unique=bc.uniqueSort,p.text=bc.getText,p.isXMLDoc=bc.isXML,p.contains=bc.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b0)for(e=d;e=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/
  • ","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X
    ","
    "]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1>");try{for(;d1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=b===e&&bA,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(f=0;(h=a[f])!=null;f++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{s=s||bk(b),l=b.createElement("div"),s.appendChild(l),h=h.replace(bo,"<$1>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]===""&&!m?l.childNodes:[];for(g=n.length-1;g>=0;--g)p.nodeName(n[g],"tbody")&&!n[g].childNodes.length&&n[g].parentNode.removeChild(n[g])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l.parentNode.removeChild(l)}h.nodeType?t.push(h):p.merge(t,h)}l&&(h=l=s=null);if(!p.support.appendChecked)for(f=0;(h=t[f])!=null;f++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(f=0;(h=t[f])!=null;f++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[f+1,0].concat(r)),f+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^(none|table(?!-c[ea]).+)/,bO=/^margin/,bP=new RegExp("^("+q+")(.*)$","i"),bQ=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bR=new RegExp("^([-+])=("+q+")","i"),bS={},bT={position:"absolute",visibility:"hidden",display:"block"},bU={letterSpacing:0,fontWeight:400},bV=["Top","Right","Bottom","Left"],bW=["Webkit","O","Moz","ms"],bX=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return b$(this,!0)},hide:function(){return b$(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bX.apply(this,arguments):this.each(function(){(c?a:bZ(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bY(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bR.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bY(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bU&&(f=bU[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(b,c){var d,e,f,g,h=a.getComputedStyle(b,null),i=b.style;return h&&(d=h[c],d===""&&!p.contains(b.ownerDocument,b)&&(d=p.style(b,c)),bQ.test(d)&&bO.test(c)&&(e=i.width,f=i.minWidth,g=i.maxWidth,i.minWidth=i.maxWidth=i.width=d,d=h.width,i.width=e,i.minWidth=f,i.maxWidth=g)),d}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bQ.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth===0&&bN.test(bH(a,"display"))?p.swap(a,bT,function(){return cb(a,b,d)}):cb(a,b,d)},set:function(a,c,d){return b_(a,c,d?ca(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bQ.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bV[d]+b]=e[d]||e[d-2]||e[0];return f}},bO.test(a)||(p.cssHooks[a+b].set=b_)});var cd=/%20/g,ce=/\[\]$/,cf=/\r?\n/g,cg=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ch=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ch.test(this.nodeName)||cg.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(cf,"\r\n")}}):{name:b.name,value:c.replace(cf,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ci(d,a[d],c,f);return e.join("&").replace(cd,"+")};var cj,ck,cl=/#.*$/,cm=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,co=/^(?:GET|HEAD)$/,cp=/^\/\//,cq=/\?/,cr=/)<[^<]*)*<\/script>/gi,cs=/([?&])_=[^&]*/,ct=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,cu=p.fn.load,cv={},cw={},cx=["*/"]+["*"];try{ck=f.href}catch(cy){ck=e.createElement("a"),ck.href="",ck=ck.href}cj=ct.exec(ck.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&cu)return cu.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):c&&typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("
    ").append(a.replace(cr,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cB(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cB(a,b),a},ajaxSettings:{url:ck,isLocal:cn.test(cj[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cx},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cz(cv),ajaxTransport:cz(cw),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cC(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cD(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=(c||y)+"",k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cm.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(cl,"").replace(cp,cj[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=ct.exec(l.url.toLowerCase())||!1,l.crossDomain=i&&i.join(":")+(i[3]?"":i[1]==="http:"?80:443)!==cj.join(":")+(cj[3]?"":cj[1]==="http:"?80:443)),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cA(cv,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!co.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cq.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cs,"$1_="+z);l.url=A+(A===l.url?(cq.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cx+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cA(cw,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cE=[],cF=/\?/,cG=/(=)\?(?=&|$)|\?\?/,cH=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cE.pop()||p.expando+"_"+cH++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cG.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cG.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cG,"$1"+f):m?c.data=i.replace(cG,"$1"+f):k&&(c.url+=(cF.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cE.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cI,cJ=a.ActiveXObject?function(){for(var a in cI)cI[a](0,1)}:!1,cK=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cL()||cM()}:cL,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cJ&&delete cI[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cK,cJ&&(cI||(cI={},p(a).unload(cJ)),cI[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cN,cO,cP=/^(?:toggle|show|hide)$/,cQ=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cR=/queueHooks$/,cS=[cY],cT={"*":[function(a,b){var c,d,e=this.createTween(a,b),f=cQ.exec(b),g=e.cur(),h=+g||0,i=1,j=20;if(f){c=+f[2],d=f[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&h){h=p.css(e.elem,a,!0)||c||1;do i=i||".5",h=h/i,p.style(e.elem,a,h+d);while(i!==(i=e.cur()/g)&&i!==1&&--j)}e.unit=d,e.start=h,e.end=f[1]?h+(f[1]+1)*c:c}return e}]};p.Animation=p.extend(cW,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c_.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c_.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=da(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g,null)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window); \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.css b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.css deleted file mode 100644 index ac33361a6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.css +++ /dev/null @@ -1,76 +0,0 @@ -/* https://github.com/jzaefferer/jquery-treeview/blob/master/jquery.treeview.css */ -/* License: MIT. */ -.treeview, .treeview ul { - padding: 0; - margin: 0; - list-style: none; -} - -.treeview ul { - background-color: white; - margin-top: 4px; -} - -.treeview .hitarea { - background: url(images/treeview-default.gif) -64px -25px no-repeat; - height: 16px; - width: 16px; - margin-left: -16px; - float: left; - cursor: pointer; -} -/* fix for IE6 */ -* html .hitarea { - display: inline; - float:none; -} - -.treeview li { - margin: 0; - padding: 3px 0pt 3px 16px; -} - -.treeview a.selected { - background-color: #eee; -} - -#treecontrol { margin: 1em 0; display: none; } - -.treeview .hover { color: red; cursor: pointer; } - -.treeview li { background: url(images/treeview-default-line.gif) 0 0 no-repeat; } -.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; } - -.treeview .expandable-hitarea { background-position: -80px -3px; } - -.treeview li.last { background-position: 0 -1766px } -.treeview li.lastCollapsable, .treeview li.lastExpandable { background-image: url(images/treeview-default.gif); } -.treeview li.lastCollapsable { background-position: 0 -111px } -.treeview li.lastExpandable { background-position: -32px -67px } - -.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; } - -.treeview-red li { background-image: url(images/treeview-red-line.gif); } -.treeview-red .hitarea, .treeview-red li.lastCollapsable, .treeview-red li.lastExpandable { background-image: url(images/treeview-red.gif); } - -.treeview-black li { background-image: url(images/treeview-black-line.gif); } -.treeview-black .hitarea, .treeview-black li.lastCollapsable, .treeview-black li.lastExpandable { background-image: url(images/treeview-black.gif); } - -.treeview-gray li { background-image: url(images/treeview-gray-line.gif); } -.treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable { background-image: url(images/treeview-gray.gif); } - -.treeview-famfamfam li { background-image: url(images/treeview-famfamfam-line.gif); } -.treeview-famfamfam .hitarea, .treeview-famfamfam li.lastCollapsable, .treeview-famfamfam li.lastExpandable { background-image: url(images/treeview-famfamfam.gif); } - -.treeview .placeholder { - background: url(images/ajax-loader.gif) 0 0 no-repeat; - height: 16px; - width: 16px; - display: block; -} - -.filetree li { padding: 3px 0 2px 16px; } -.filetree span.folder, .filetree span.file { padding: 1px 0 1px 16px; display: block; } -.filetree span.folder { background: url(images/folder.gif) 0 0 no-repeat; } -.filetree li.expandable span.folder { background: url(images/folder-closed.gif) 0 0 no-repeat; } -.filetree span.file { background: url(images/file.gif) 0 0 no-repeat; } diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.edit.js b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.edit.js deleted file mode 100644 index 9895b0263..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.edit.js +++ /dev/null @@ -1,39 +0,0 @@ -/* https://github.com/jzaefferer/jquery-treeview/blob/master/jquery.treeview.edit.js */ -/* License: MIT. */ -(function($) { - var CLASSES = $.treeview.classes; - var proxied = $.fn.treeview; - $.fn.treeview = function(settings) { - settings = $.extend({}, settings); - if (settings.add) { - return this.trigger("add", [settings.add]); - } - if (settings.remove) { - return this.trigger("remove", [settings.remove]); - } - return proxied.apply(this, arguments).bind("add", function(event, branches) { - $(branches).prev() - .removeClass(CLASSES.last) - .removeClass(CLASSES.lastCollapsable) - .removeClass(CLASSES.lastExpandable) - .find(">.hitarea") - .removeClass(CLASSES.lastCollapsableHitarea) - .removeClass(CLASSES.lastExpandableHitarea); - $(branches).find("li").andSelf().prepareBranches(settings).applyClasses(settings, $(this).data("toggler")); - }).bind("remove", function(event, branches) { - var prev = $(branches).prev(); - var parent = $(branches).parent(); - $(branches).remove(); - prev.filter(":last-child").addClass(CLASSES.last) - .filter("." + CLASSES.expandable).replaceClass(CLASSES.last, CLASSES.lastExpandable).end() - .find(">.hitarea").replaceClass(CLASSES.expandableHitarea, CLASSES.lastExpandableHitarea).end() - .filter("." + CLASSES.collapsable).replaceClass(CLASSES.last, CLASSES.lastCollapsable).end() - .find(">.hitarea").replaceClass(CLASSES.collapsableHitarea, CLASSES.lastCollapsableHitarea); - if (parent.is(":not(:has(>))") && parent[0] != this) { - parent.parent().removeClass(CLASSES.collapsable).removeClass(CLASSES.expandable) - parent.siblings(".hitarea").andSelf().remove(); - } - }); - }; - -})(jQuery); diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.js b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.js deleted file mode 100644 index 356af2380..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.treeview.js +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Treeview 1.4.1 - jQuery plugin to hide and show branches of a tree - * - * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ - * http://docs.jquery.com/Plugins/Treeview - * - * Copyright (c) 2007 Jörn Zaefferer - * - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - * Revision: $Id: jquery.treeview.js 5759 2008-07-01 07:50:28Z joern.zaefferer $ - * - */ - -;(function($) { - - // TODO rewrite as a widget, removing all the extra plugins - $.extend($.fn, { - swapClass: function(c1, c2) { - var c1Elements = this.filter('.' + c1); - this.filter('.' + c2).removeClass(c2).addClass(c1); - c1Elements.removeClass(c1).addClass(c2); - return this; - }, - replaceClass: function(c1, c2) { - return this.filter('.' + c1).removeClass(c1).addClass(c2).end(); - }, - hoverClass: function(className) { - className = className || "hover"; - return this.hover(function() { - $(this).addClass(className); - }, function() { - $(this).removeClass(className); - }); - }, - heightToggle: function(animated, callback) { - animated ? - this.animate({ height: "toggle" }, animated, callback) : - this.each(function(){ - jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ](); - if(callback) - callback.apply(this, arguments); - }); - }, - heightHide: function(animated, callback) { - if (animated) { - this.animate({ height: "hide" }, animated, callback); - } else { - this.hide(); - if (callback) - this.each(callback); - } - }, - prepareBranches: function(settings) { - if (!settings.prerendered) { - // mark last tree items - this.filter(":last-child:not(ul)").addClass(CLASSES.last); - // collapse whole tree, or only those marked as closed, anyway except those marked as open - this.filter((settings.collapsed ? "" : "." + CLASSES.closed) + ":not(." + CLASSES.open + ")").find(">ul").hide(); - } - // return all items with sublists - return this.filter(":has(>ul)"); - }, - applyClasses: function(settings, toggler) { - // TODO use event delegation - this.filter(":has(>ul):not(:has(>a))").find(">span").unbind("click.treeview").bind("click.treeview", function(event) { - // don't handle click events on children, eg. checkboxes - if ( this == event.target ) - toggler.apply($(this).next()); - }).add( $("a", this) ).hoverClass(); - - if (!settings.prerendered) { - // handle closed ones first - this.filter(":has(>ul:hidden)") - .addClass(CLASSES.expandable) - .replaceClass(CLASSES.last, CLASSES.lastExpandable); - - // handle open ones - this.not(":has(>ul:hidden)") - .addClass(CLASSES.collapsable) - .replaceClass(CLASSES.last, CLASSES.lastCollapsable); - - // create hitarea if not present - var hitarea = this.find("div." + CLASSES.hitarea); - if (!hitarea.length) - hitarea = this.prepend("
    ").find("div." + CLASSES.hitarea); - hitarea.removeClass().addClass(CLASSES.hitarea).each(function() { - var classes = ""; - $.each($(this).parent().attr("class").split(" "), function() { - classes += this + "-hitarea "; - }); - $(this).addClass( classes ); - }) - } - - // apply event to hitarea - this.find("div." + CLASSES.hitarea).click( toggler ); - }, - treeview: function(settings) { - - settings = $.extend({ - cookieId: "treeview" - }, settings); - - if ( settings.toggle ) { - var callback = settings.toggle; - settings.toggle = function() { - return callback.apply($(this).parent()[0], arguments); - }; - } - - // factory for treecontroller - function treeController(tree, control) { - // factory for click handlers - function handler(filter) { - return function() { - // reuse toggle event handler, applying the elements to toggle - // start searching for all hitareas - toggler.apply( $("div." + CLASSES.hitarea, tree).filter(function() { - // for plain toggle, no filter is provided, otherwise we need to check the parent element - return filter ? $(this).parent("." + filter).length : true; - }) ); - return false; - }; - } - // click on first element to collapse tree - $("a:eq(0)", control).click( handler(CLASSES.collapsable) ); - // click on second to expand tree - $("a:eq(1)", control).click( handler(CLASSES.expandable) ); - // click on third to toggle tree - $("a:eq(2)", control).click( handler() ); - } - - // handle toggle event - function toggler() { - $(this) - .parent() - // swap classes for hitarea - .find(">.hitarea") - .swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea ) - .swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea ) - .end() - // swap classes for parent li - .swapClass( CLASSES.collapsable, CLASSES.expandable ) - .swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable ) - // find child lists - .find( ">ul" ) - // toggle them - .heightToggle( settings.animated, settings.toggle ); - if ( settings.unique ) { - $(this).parent() - .siblings() - // swap classes for hitarea - .find(">.hitarea") - .replaceClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea ) - .replaceClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea ) - .end() - .replaceClass( CLASSES.collapsable, CLASSES.expandable ) - .replaceClass( CLASSES.lastCollapsable, CLASSES.lastExpandable ) - .find( ">ul" ) - .heightHide( settings.animated, settings.toggle ); - } - } - this.data("toggler", toggler); - - function serialize() { - function binary(arg) { - return arg ? 1 : 0; - } - var data = []; - branches.each(function(i, e) { - data[i] = $(e).is(":has(>ul:visible)") ? 1 : 0; - }); - $.cookie(settings.cookieId, data.join(""), settings.cookieOptions ); - } - - function deserialize() { - var stored = $.cookie(settings.cookieId); - if ( stored ) { - var data = stored.split(""); - branches.each(function(i, e) { - $(e).find(">ul")[ parseInt(data[i]) ? "show" : "hide" ](); - }); - } - } - - // add treeview class to activate styles - this.addClass("treeview"); - - // prepare branches and find all tree items with child lists - var branches = this.find("li").prepareBranches(settings); - - switch(settings.persist) { - case "cookie": - var toggleCallback = settings.toggle; - settings.toggle = function() { - serialize(); - if (toggleCallback) { - toggleCallback.apply(this, arguments); - } - }; - deserialize(); - break; - case "location": - var current = this.find("a").filter(function() { - return this.href.toLowerCase() == location.href.toLowerCase(); - }); - if ( current.length ) { - // TODO update the open/closed classes - var items = current.addClass("selected").parents("ul, li").add( current.next() ).show(); - if (settings.prerendered) { - // if prerendered is on, replicate the basic class swapping - items.filter("li") - .swapClass( CLASSES.collapsable, CLASSES.expandable ) - .swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable ) - .find(">.hitarea") - .swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea ) - .swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea ); - } - } - break; - } - - branches.applyClasses(settings, toggler); - - // if control option is set, create the treecontroller and show it - if ( settings.control ) { - treeController(this, settings.control); - $(settings.control).show(); - } - - return this; - } - }); - - // classes used by the plugin - // need to be styled via external stylesheet, see first example - $.treeview = {}; - var CLASSES = ($.treeview.classes = { - open: "open", - closed: "closed", - expandable: "expandable", - expandableHitarea: "expandable-hitarea", - lastExpandableHitarea: "lastExpandable-hitarea", - collapsable: "collapsable", - collapsableHitarea: "collapsable-hitarea", - lastCollapsableHitarea: "lastCollapsable-hitarea", - lastCollapsable: "lastCollapsable", - lastExpandable: "lastExpandable", - last: "last", - hitarea: "hitarea" - }); - -})(jQuery); diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/methodset.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/methodset.html deleted file mode 100644 index 1b339e3c3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/methodset.html +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/opensearch.xml b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/opensearch.xml deleted file mode 100644 index 1b652db37..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/opensearch.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - godoc - The Go Programming Language - go golang - - - /favicon.ico - UTF-8 - UTF-8 - diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package.txt b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package.txt deleted file mode 100644 index e53fa6ed3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package.txt +++ /dev/null @@ -1,116 +0,0 @@ -{{$info := .}}{{$filtered := .IsFiltered}}{{/* - ---------------------------------------- - -*/}}{{if $filtered}}{{range .PAst}}{{range .Decls}}{{node $info .}} - -{{end}}{{end}}{{else}}{{with .PAst}}{{range $filename, $ast := .}}{{$filename}}: -{{node $ $ast}}{{end}}{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{if and $filtered (not (or .PDoc .PAst))}}No match found. -{{end}}{{with .PDoc}}{{if $.IsMain}}COMMAND DOCUMENTATION - -{{comment_text .Doc " " "\t"}} -{{else}}{{if not $filtered}}PACKAGE DOCUMENTATION - -package {{.Name}} - import "{{.ImportPath}}" - -{{comment_text .Doc " " "\t"}} -{{example_text $ "" " "}}{{end}}{{/* - ---------------------------------------- - -*/}}{{with .Consts}}{{if not $filtered}}CONSTANTS - -{{end}}{{range .}}{{node $ .Decl}} -{{comment_text .Doc " " "\t"}} -{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{with .Vars}}{{if not $filtered}}VARIABLES - -{{end}}{{range .}}{{node $ .Decl}} -{{comment_text .Doc " " "\t"}} -{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{with .Funcs}}{{if not $filtered}}FUNCTIONS - -{{end}}{{range .}}{{node $ .Decl}} -{{comment_text .Doc " " "\t"}} -{{example_text $ .Name " "}}{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{with .Types}}{{if not $filtered}}TYPES - -{{end}}{{range .}}{{$tname := .Name}}{{node $ .Decl}} -{{comment_text .Doc " " "\t"}} -{{/* - ---------------------------------------- - -*/}}{{if .Consts}}{{range .Consts}}{{node $ .Decl}} -{{comment_text .Doc " " "\t"}} -{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{if .Vars}}{{range .Vars}}{{node $ .Decl}} -{{comment_text .Doc " " "\t"}} -{{range $name := .Names}}{{example_text $ $name " "}}{{end}}{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{if .Funcs}}{{range .Funcs}}{{node $ .Decl}} -{{comment_text .Doc " " "\t"}} -{{example_text $ .Name " "}}{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{if .Methods}}{{range .Methods}}{{node $ .Decl}} -{{comment_text .Doc " " "\t"}} -{{$name := printf "%s_%s" $tname .Name}}{{example_text $ $name " "}}{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{if and $filtered (not (or .Consts (or .Vars (or .Funcs .Types))))}}No match found. -{{end}}{{/* - ---------------------------------------- - -*/}}{{end}}{{/* - ---------------------------------------- - -*/}}{{with $.Notes}} -{{range $marker, $content := .}} -{{$marker}}S - -{{range $content}}{{comment_text .Body " " "\t"}} -{{end}}{{end}}{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{if not $filtered}}{{with .Dirs}}SUBDIRECTORIES -{{if $.DirFlat}}{{range .List}}{{if .HasPkg}} - {{.Path}}{{end}}{{end}} -{{else}}{{range .List}} - {{repeat `. ` .Depth}}{{.Name}}{{end}} -{{end}}{{end}}{{/* - ---------------------------------------- - -*/}}{{end}}{{/* -Make sure there is no newline at the end of this file. -perl -i -pe 'chomp if eof' package.txt -*/}} diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_default.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_default.html deleted file mode 100644 index 0b3c01dd2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_default.html +++ /dev/null @@ -1,245 +0,0 @@ - - -{{with .PDoc}} - - - {{if $.IsMain}} - {{/* command documentation */}} - {{comment_html .Doc}} - {{else}} - {{/* package documentation */}} -
    -
    -
    import "github.com/aws/aws-sdk-go/{{html .ImportPath}}"
    -
    -
    -
    Overview
    -
    Index
    - {{if $.Examples}} -
    Examples
    - {{end}} -
    -
    - -
    - -
    -

    Overview ▾

    - {{comment_html .Doc}} -
    -
    - {{example_html $ ""}} - -
    - -
    -

    Index ▾

    - - -
    -
    - {{if .Consts}} -
    Constants
    - {{end}} - {{if .Vars}} -
    Variables
    - {{end}} - {{range .Funcs}} - {{$name_html := html .Name}} -
    {{node_html $ .Decl false | sanitize}}
    - {{end}} - {{range .Types}} - {{$tname_html := html .Name}} -
    type {{$tname_html}}
    - {{range .Funcs}} - {{$name_html := html .Name}} -
        {{node_html $ .Decl false | sanitize}}
    - {{end}} - {{range .Methods}} - {{$name_html := html .Name}} -
        {{node_html $ .Decl false | sanitize}}
    - {{end}} - {{end}} - {{if $.Notes}} - {{range $marker, $item := $.Notes}} -
    {{noteTitle $marker | html}}s
    - {{end}} - {{end}} -
    -
    - - {{if $.Examples}} -
    -

    Examples

    -
    - {{range $.Examples}} -
    {{example_name .Name}}
    - {{end}} -
    -
    - {{end}} - - {{with .Filenames}} -

    Package files

    -

    - - {{range .}} - {{.|filename|html}} - {{end}} - -

    - {{end}} -
    -
    - - - - {{with .Consts}} -

    Constants

    - {{range .}} -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{end}} - {{end}} - {{with .Vars}} -

    Variables

    - {{range .}} -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{end}} - {{end}} - {{range .Funcs}} - {{/* Name is a string - no need for FSet */}} - {{$name_html := html .Name}} -

    func {{$name_html}}

    -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{example_html $ .Name}} - {{callgraph_html $ "" .Name}} - - {{end}} - {{range .Types}} - {{$tname := .Name}} - {{$tname_html := html .Name}} -

    type {{$tname_html}}

    -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - - {{range .Consts}} -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{end}} - - {{range .Vars}} -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{end}} - - {{example_html $ $tname}} - {{implements_html $ $tname}} - {{methodset_html $ $tname}} - - {{range .Funcs}} - {{$name_html := html .Name}} -

    func {{$name_html}}

    -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{example_html $ .Name}} - {{callgraph_html $ "" .Name}} - {{end}} - - {{range .Methods}} - {{$name_html := html .Name}} -

    func ({{html .Recv}}) {{$name_html}}

    -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{$name := printf "%s_%s" $tname .Name}} - {{example_html $ $name}} - {{callgraph_html $ .Recv .Name}} - {{end}} - {{end}} - {{end}} - - {{with $.Notes}} - {{range $marker, $content := .}} -

    {{noteTitle $marker | html}}s

    -
      - {{range .}} -
    • {{html .Body}}
    • - {{end}} -
    - {{end}} - {{end}} -{{end}} - -{{with .PAst}} - {{range $filename, $ast := .}} - {{$filename|filename|html}}:
    {{node_html $ $ast false}}
    - {{end}} -{{end}} - -{{with .Dirs}} - {{if eq $.Dirname "/src"}} - -

    Standard library

    - - {{end}} -{{end}} diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_service.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_service.html deleted file mode 100644 index b3f9689a4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/package_service.html +++ /dev/null @@ -1,263 +0,0 @@ - - -{{with .PDoc}} - - {{if $.IsMain}} - {{/* command documentation */}} - {{comment_html .Doc}} - {{else}} - {{/* package documentation */}} -
    -
    -
    import "github.com/aws/aws-sdk-go/{{html .ImportPath}}"
    -
    -
    -
    Overview
    - {{if .Consts}} -
    Constants
    - {{end}} - {{if $.Examples}} -
    Examples
    - {{end}} -
    -
    - -
    - -
    -

    Overview ▾

    - {{comment_html .Doc}} -
    -
    - {{example_html $ ""}} - -
    - -
    -

    Operations ▾

    - - -
    -
    - {{range .Funcs}} - {{$name_html := html .Name}} -
    {{node_html $ .Decl false | sanitize}}
    - {{end}} - {{range .Types}} - {{$tname_html := html .Name}} - {{range .Funcs}} - {{$name_html := html .Name}} -
    {{node_html $ .Decl false | sanitize}}
    - {{end}} - {{range .Methods}} - - {{if (and (ne .Name "String") (ne .Name "GoString")) }} - {{$name_html := html .Name}} -
    {{node_html $ .Decl false | sanitize}}
    - {{end}} - {{end}} - {{end}} - {{if $.Notes}} - {{range $marker, $item := $.Notes}} -
    {{noteTitle $marker | html}}s
    - {{end}} - {{end}} -
    -
    - - - - -
    -
    -
    - -
    -

    Types ▾

    - {{if .Vars}} -
    Variables
    - {{end}} - {{range .Types}} - {{$tname_html := html .Name}} -
    type {{$tname_html}}
    - {{end}} -
    -
    - - {{if $.Examples}} -
    - -
    -

    Examples ▾

    -
    -
    - {{range $.Examples}} -
    {{example_name .Name}}
    - {{end}} -
    -
    -
    -
    - {{end}} - - - - {{with .Consts}} -

    Constants

    - {{range .}} -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{end}} - {{end}} - {{with .Vars}} -

    Variables

    - {{range .}} -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{end}} - {{end}} - {{range .Funcs}} - {{/* Name is a string - no need for FSet */}} - {{$name_html := html .Name}} -

    func {{$name_html}}

    -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{example_html $ .Name}} - {{callgraph_html $ "" .Name}} - - {{end}} - {{range .Types}} - {{$tname := .Name}} - {{$tname_html := html .Name}} -

    type {{$tname_html}}

    -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - - {{range .Consts}} -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{end}} - - {{range .Vars}} -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{end}} - - {{example_html $ $tname}} - {{implements_html $ $tname}} - {{methodset_html $ $tname}} - - {{range .Funcs}} - {{$name_html := html .Name}} -

    func {{$name_html}}

    -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{example_html $ .Name}} - {{callgraph_html $ "" .Name}} - {{end}} - - {{range .Methods}} - {{$name_html := html .Name}} - - {{if (and (ne .Name "String") (ne .Name "GoString")) }} -

    func ({{html .Recv}}) {{$name_html}}

    -
    {{node_html $ .Decl true}}
    - {{comment_html .Doc}} - {{$name := printf "%s_%s" $tname .Name}} - {{example_html $ $name}} - {{callgraph_html $ .Recv .Name}} - {{end}} - {{end}} - {{end}} - {{end}} - - {{with $.Notes}} - {{range $marker, $content := .}} -

    {{noteTitle $marker | html}}s

    -
      - {{range .}} -
    • {{html .Body}}
    • - {{end}} -
    - {{end}} - {{end}} -{{end}} - -{{with .PAst}} - {{range $filename, $ast := .}} - {{$filename|filename|html}}:
    {{node_html $ $ast false}}
    - {{end}} -{{end}} diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/pkglist.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/pkglist.html deleted file mode 100644 index 75cdb746e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/pkglist.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - -
    -
    -
    - - -
    - {{range .List}} - - {{end}} -
    -
    - - diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/search.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/search.html deleted file mode 100644 index e0d13b9b5..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/search.html +++ /dev/null @@ -1,18 +0,0 @@ - -{{with .Alert}} -

    - {{html .}} -

    -{{end}} -{{with .Alt}} -

    - Did you mean: - {{range .Alts}} - {{html .}} - {{end}} -

    -{{end}} diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/search.txt b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/search.txt deleted file mode 100644 index 0ae0c080d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/search.txt +++ /dev/null @@ -1,54 +0,0 @@ -QUERY - {{.Query}} - -{{with .Alert}}{{.}} -{{end}}{{/* .Alert */}}{{/* - ---------------------------------------- - -*/}}{{with .Alt}}DID YOU MEAN - -{{range .Alts}} {{.}} -{{end}} -{{end}}{{/* .Alt */}}{{/* - ---------------------------------------- - -*/}}{{with .Pak}}PACKAGE {{$.Query}} - -{{range .}} {{pkgLink .Pak.Path}} -{{end}} -{{end}}{{/* .Pak */}}{{/* - ---------------------------------------- - -*/}}{{range $key, $val := .Idents}}{{if $val}}{{$key.Name}} -{{range $val}} {{.Path}}.{{.Name}} -{{end}} -{{end}}{{end}}{{/* .Idents */}}{{/* - ---------------------------------------- - -*/}}{{with .Hit}}{{with .Decls}}PACKAGE-LEVEL DECLARATIONS - -{{range .}}package {{.Pak.Name}} -{{range $file := .Files}}{{range .Groups}}{{range .}} {{srcLink $file.File.Path}}:{{infoLine .}}{{end}} -{{end}}{{end}}{{/* .Files */}} -{{end}}{{end}}{{/* .Decls */}}{{/* - ---------------------------------------- - -*/}}{{with .Others}}LOCAL DECLARATIONS AND USES - -{{range .}}package {{.Pak.Name}} -{{range $file := .Files}}{{range .Groups}}{{range .}} {{srcLink $file.File.Path}}:{{infoLine .}} -{{end}}{{end}}{{end}}{{/* .Files */}} -{{end}}{{end}}{{/* .Others */}}{{end}}{{/* .Hit */}}{{/* - ---------------------------------------- - -*/}}{{if .Textual}}{{if .Complete}}{{.Found}} TEXTUAL OCCURRENCES{{else}}MORE THAN {{.Found}} TEXTUAL OCCURRENCES{{end}} - -{{range .Textual}}{{len .Lines}} {{srcLink .Filename}} -{{end}}{{if not .Complete}}... ... -{{end}}{{end}} diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchcode.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchcode.html deleted file mode 100644 index a032e642c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchcode.html +++ /dev/null @@ -1,64 +0,0 @@ - -{{$query_url := urlquery .Query}} -{{if not .Idents}} - {{with .Pak}} -

    Package {{html $.Query}}

    -

    -

    - {{range .}} - {{$pkg_html := pkgLink .Pak.Path | html}} - - {{end}} -
    {{$pkg_html}}
    -

    - {{end}} -{{end}} -{{with .Hit}} - {{with .Decls}} -

    Package-level declarations

    - {{range .}} - {{$pkg_html := pkgLink .Pak.Path | html}} -

    package {{html .Pak.Name}}

    - {{range .Files}} - {{$file := .File.Path}} - {{range .Groups}} - {{range .}} - {{$line := infoLine .}} - {{$file}}:{{$line}} - {{infoSnippet_html .}} - {{end}} - {{end}} - {{end}} - {{end}} - {{end}} - {{with .Others}} -

    Local declarations and uses

    - {{range .}} - {{$pkg_html := pkgLink .Pak.Path | html}} -

    package {{html .Pak.Name}}

    - {{range .Files}} - {{$file := .File.Path}} - {{$file}} - - {{range .Groups}} - - - - - - - {{end}} -
    {{index . 0 | infoKind_html}} - {{range .}} - {{$line := infoLine .}} - {{$line}} - {{end}} -
    - {{end}} - {{end}} - {{end}} -{{end}} diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchdoc.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchdoc.html deleted file mode 100644 index 679c02cf3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchdoc.html +++ /dev/null @@ -1,24 +0,0 @@ - -{{range $key, $val := .Idents}} - {{if $val}} -

    {{$key.Name}}

    - {{range $val}} - {{$pkg_html := pkgLink .Path | html}} - {{if eq "Packages" $key.Name}} - {{html .Path}} - {{else}} - {{$doc_html := docLink .Path .Name| html}} - {{html .Package}}.{{.Name}} - {{end}} - {{if .Doc}} -

    {{comment_html .Doc}}

    - {{else}} -

    No documentation available

    - {{end}} - {{end}} - {{end}} -{{end}} diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchtxt.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchtxt.html deleted file mode 100644 index 7e4a978c4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/searchtxt.html +++ /dev/null @@ -1,42 +0,0 @@ - -{{$query_url := urlquery .Query}} -{{with .Textual}} - {{if $.Complete}} -

    {{html $.Found}} textual occurrences

    - {{else}} -

    More than {{html $.Found}} textual occurrences

    -

    - Not all files or lines containing "{{html $.Query}}" are shown. -

    - {{end}} -

    - - {{range .}} - {{$file := .Filename}} - - - - - - - - {{end}} - {{if not $.Complete}} - - {{end}} -
    - {{$file}}: - {{len .Lines}} - {{range .Lines}} - {{html .}} - {{end}} - {{if not $.Complete}} - ... - {{end}} -
    ...
    -

    -{{end}} diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/style.css b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/style.css deleted file mode 100644 index f90924ce5..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/style.css +++ /dev/null @@ -1,1036 +0,0 @@ -.container-body { - width: 100%; - overflow:hidden; -} - -a > img { - max-height:70%; - float:left; - padding-left:22px; - padding-top:8px; -} - -body { - margin: 0; - font-family: HelveticaNeueBold,Helvetica,Helvetica,Arial,sans-serif; - font-size: 16px; - background-color: #fff; - line-height: 1.3em; -} -pre, -code { - font-family: Menlo, monospace; - font-size: 14px; -} -pre { - line-height: 1.4em; - overflow-x: auto; -} -pre .comment { - color: #006600; -} -pre .highlight, -pre .highlight-comment, -pre .selection-highlight, -pre .selection-highlight-comment { - background: #FFFF00; -} -pre .selection, -pre .selection-comment { - background: #FF9632; -} -pre .ln { - color: #999; -} - -body { - color: #222; -} -a, -.exampleHeading .text { - color: #375EAB; - text-decoration: none; -} -a:hover, -.exampleHeading .text:hover { - text-decoration: underline; -} -p, li { - max-width: 800px; - word-wrap: break-word; -} -p, -pre, -ul, -ol { - display: inherit; - margin: 20px; -} -.packages { - margin: 0px; - text-align: left; - width: 100%; -} -pre { - background: #EFEFEF; - padding: 10px; - - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; -} -.title { - font-family: HelveticaNeueBold,Helvetica,Helvetica,Arial,sans-serif; - text-shadow: rgba(0,0,0,0.8) 0 -1px 0; - color: #fff; - -webkit-font-smoothing: antialiased; - margin:20px; - display:inherit; -} - -h1, -h2, -h3, -h4, -.rootHeading { - margin: 20px 0 20px; - padding: 0; - color: #375EAB; - font-weight: bold; -} -h1 { - font-size: 28px; - line-height: 1; -} -h2 { - font-size: 20px; - background: #E0EBF5; - padding: 8px; - line-height: 1.25; - font-weight: normal; -} -h2 a { - font-weight: bold; -} -h3 { - font-size: 20px; -} -h3, -h4 { - margin: 20px 5px; -} -h4 { - font-size: 16px; -} -.rootHeading { - font-size: 20px; - margin: 0; -} - -dl { - margin: 20px; -} -dd { - margin: 0 0 0 20px; -} -dl, -dd { - font-size: 14px; -} -div#nav table td { - vertical-align: top; -} - -div#mobile_container { - display:inline-block; - font-size: 15px; - margin-left:auto; - margin-right:auto; - line-height:100%; -} - -div#mobile-nav { - display:none; -} - -div#logo_container { - height:100%; - display:table-cell; - float:left; - vertical-align:middle; -} - -div#mobile_only { - display:none; -} - -div#fixed { - position: fixed; - width: 100%; - height: 100%; -} - -div .top_link { - float:right; - overflow:auto; - display:inline; - padding-top:2px; -} - -.pkg-dir { - width: 20%; - max-width:400px; - min-width:325px; - height: calc(100% - 64px); - position: relative; - background: #F6F6F6; - overflow:hidden; - float: left; - display: inline-block; - box-sizing: border-box; - border-top-style:hidden; - border-left-style:hidden; - border-bottom-style:hidden; -} - -.pkg-dir table { - border-collapse: collapse; - border-spacing: 0; -} -.pkg-name { - padding-right: 20px; -} -.alert { - color: #AA0000; -} - -.top-heading { - float: left; - padding: 21px 0; - font-size: 20px; - font-weight: normal; -} -.top-heading a { - color: #222; - text-decoration: none; -} - -div#topbar { - background: #444; - height: 64px; - overflow: hidden; - position: relative; -} - -div#page { - box-sizing: border-box; - height:calc(100% - 64px); - overflow:auto; - max-width:1600px; -} -div#page > .container, -div#topbar > .container { - text-align: left; - margin-left: auto; - margin-right: auto; - padding: 0 20px; -} -div#topbar > .container, -div#page > .container { -} -div#page.wide > .container, -div#topbar.wide > .container { -} -div#plusone { - float: right; - clear: right; - margin-top: 5px; -} - -div#footer { - text-align: center; - color: #666; - font-size: 14px; - margin: 40px 0; -} - -div#menu > a, -div#menu > input, -div#learn .buttons a, -div.play .buttons a, -div#blog .read a, -#menu-button { - padding: 10px; - - text-decoration: none; - font-size: 16px; - - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; -} -div#playground .buttons a, -div#menu > a, -div#menu > input, -#menu-button { - border: 1px solid #375EAB; -} -div#playground .buttons a, -div#menu > a, -#menu-button { - color: white; - background: #375EAB; -} -#playgroundButton.active { - background: white; - color: #375EAB; -} -a#start, -div#learn .buttons a, -div.play .buttons a, -div#blog .read a { - color: #222; - border: 1px solid #375EAB; - background: #E0EBF5; -} -.download { - width: 150px; -} - -div#menu { - display: inline; - float: right; - padding: 10px; - white-space: nowrap; -} -div#menu.menu-visible { - max-height: 500px; -} -div#menu > a, -#menu-button { - margin: 10px 2px; - padding: 10px; -} -div#menu > input { - position: relative; - top: 1px; - width: 140px; - background: white; - color: #222; - box-sizing: border-box; -} -div#menu > input.inactive { - color: #999; -} - -#menu-button { - display: none; - position: absolute; - right: 5px; - top: 0; - margin-right: 5px; -} -#menu-button-arrow { - display: inline-block; -} -.vertical-flip { - transform: rotate(-180deg); -} - -div.left { - float: left; - clear: left; - margin-right: 2.5%; -} -div.right { - float: right; - clear: right; - margin-left: 2.5%; -} -div.left, -div.right { - width: 45%; -} - -div#learn, -div#about { - padding-top: 20px; -} -div#learn h2, -div#about { - margin: 0; -} -div#about { - font-size: 20px; - margin: 0 auto 30px; -} -div#gopher { - background: url(/doc/gopher/frontpage.png) no-repeat; - background-position: center top; - height: 155px; -} -a#start { - display: block; - padding: 10px; - - text-align: center; - text-decoration: none; - - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; -} -a#start .big { - display: block; - font-weight: bold; - font-size: 20px; -} -a#start .desc { - display: block; - font-size: 14px; - font-weight: normal; - margin-top: 5px; -} - -div#learn .popout { - float: right; - display: block; - cursor: pointer; - font-size: 12px; - background: url(/doc/share.png) no-repeat; - background-position: right top; - padding: 5px 27px; -} -div#learn pre, -div#learn textarea { - padding: 0; - margin: 0; - font-family: Menlo, monospace; - font-size: 14px; -} -div#learn .input { - padding: 10px; - margin-top: 10px; - height: 150px; - - -webkit-border-top-left-radius: 5px; - -webkit-border-top-right-radius: 5px; - -moz-border-radius-topleft: 5px; - -moz-border-radius-topright: 5px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; -} -div#learn .input textarea { - width: 100%; - height: 100%; - border: none; - outline: none; - resize: none; -} -div#learn .output { - border-top: none !important; - - padding: 10px; - height: 59px; - overflow: auto; - - -webkit-border-bottom-right-radius: 5px; - -webkit-border-bottom-left-radius: 5px; - -moz-border-radius-bottomright: 5px; - -moz-border-radius-bottomleft: 5px; - border-bottom-right-radius: 5px; - border-bottom-left-radius: 5px; -} -div#learn .output pre { - padding: 0; - - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} -div#learn .input, -div#learn .input textarea, -div#learn .output, -div#learn .output pre { - background: #FFFFD8; -} -div#learn .input, -div#learn .output { - border: 1px solid #375EAB; -} -div#learn .buttons { - float: right; - padding: 20px 0 10px 0; - text-align: right; -} -div#learn .buttons a { - height: 16px; - margin-left: 5px; - padding: 10px; -} -div#learn .toys { - margin-top: 8px; -} -div#learn .toys select { - border: 1px solid #375EAB; - margin: 0; -} -div#learn .output .exit { - display: none; -} - -div#video { - max-width: 100%; -} -div#blog, -div#video { - margin-top: 40px; -} -div#blog > a, -div#blog > div, -div#blog > h2, -div#video > a, -div#video > div, -div#video > h2 { - margin-bottom: 10px; -} -div#blog .title, -div#video .title { - display: block; - font-size: 20px; -} -div#blog .when { - color: #666; - font-size: 14px; -} -div#blog .read { - text-align: right; -} - -.toggleButton { cursor: pointer; } -.toggle .collapsed { display: block; } -.toggle .expanded { display: none; } -.toggleVisible .collapsed { display: none; } -.toggleVisible .expanded { display: block; } - -table.codetable { margin-left: auto; margin-right: auto; border-style: none; } -table.codetable td { padding-right: 10px; } -hr { border-style: none; border-top: 1px solid black; } -img.gopher { - float: right; - margin-left: 10px; - margin-bottom: 10px; - z-index: -1; -} -h2 { clear: right; } - -/* example and drop-down playground */ -div.play { - padding: 0 20px 40px 20px; -} -div.play pre, -div.play textarea, -div.play .lines { - padding: 0; - margin: 0; - font-family: Menlo, monospace; - font-size: 14px; -} -div.play .input { - padding: 10px; - margin-top: 10px; - - -webkit-border-top-left-radius: 5px; - -webkit-border-top-right-radius: 5px; - -moz-border-radius-topleft: 5px; - -moz-border-radius-topright: 5px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - - overflow: hidden; -} -div.play .input textarea { - width: 100%; - height: 100%; - border: none; - outline: none; - resize: none; - - overflow: hidden; -} -div#playground .input textarea { - overflow: auto; - resize: auto; -} -div.play .output { - border-top: none !important; - - padding: 10px; - max-height: 200px; - overflow: auto; - - -webkit-border-bottom-right-radius: 5px; - -webkit-border-bottom-left-radius: 5px; - -moz-border-radius-bottomright: 5px; - -moz-border-radius-bottomleft: 5px; - border-bottom-right-radius: 5px; - border-bottom-left-radius: 5px; -} -div.play .output pre { - padding: 0; - - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} -div.play .input, -div.play .input textarea, -div.play .output, -div.play .output pre { - background: #FFFFD8; -} -div.play .input, -div.play .output { - border: 1px solid #375EAB; -} -div.play .buttons { - float: right; - padding: 20px 0 10px 0; - text-align: right; -} -div.play .buttons a { - height: 16px; - margin-left: 5px; - padding: 10px; - cursor: pointer; -} -.output .stderr { - color: #933; -} -.output .system { - color: #999; -} - -/* drop-down playground */ -#playgroundButton, -div#playground { - /* start hidden; revealed by javascript */ - display: none; -} -div#playground { - position: absolute; - top: 63px; - right: 20px; - padding: 0 10px 10px 10px; - z-index: 1; - text-align: left; - background: #E0EBF5; - - border: 1px solid #B0BBC5; - border-top: none; - - -webkit-border-bottom-left-radius: 5px; - -webkit-border-bottom-right-radius: 5px; - -moz-border-radius-bottomleft: 5px; - -moz-border-radius-bottomright: 5px; - border-bottom-left-radius: 5px; - border-bottom-right-radius: 5px; -} -div#playground .code { - width: 520px; - height: 200px; -} -div#playground .output { - height: 100px; -} - -/* Inline runnable snippets (play.js/initPlayground) */ -#content .code pre, #content .playground pre, #content .output pre { - margin: 0; - padding: 0; - background: none; - border: none; - outline: 0px solid transparent; - overflow: auto; -} -#content .playground .number, #content .code .number { - color: #999; -} -#content .code, #content .playground, #content .output { - width: auto; - margin: 20px; - padding: 10px; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; -} -#content .code, #content .playground { - background: #e9e9e9; -} -#content .output { - background: #202020; -} -#content .output .stdout, #content .output pre { - color: #e6e6e6; -} -#content .output .stderr, #content .output .error { - color: rgb(244, 74, 63); -} -#content .output .system, #content .output .exit { - color: rgb(255, 209, 77) -} -#content .buttons { - position: relative; - float: right; - top: -50px; - right: 30px; -} -#content .output .buttons { - top: -60px; - right: 0; - height: 0; -} -#content .buttons .kill { - display: none; - visibility: hidden; -} -a.error { - font-weight: bold; - color: white; - background-color: darkred; - border-bottom-left-radius: 4px; - border-bottom-right-radius: 4px; - border-top-left-radius: 4px; - border-top-right-radius: 4px; - padding: 2px 4px 2px 4px; /* TRBL */ -} - - -#heading-narrow { - display: none; -} - -.downloading { - background: #F9F9BE; - padding: 10px; - text-align: center; - border-radius: 5px; -} - -@media (max-width: 930px) { - #heading-wide { - display: none; - } - #heading-narrow { - display: block; - } - - .pkg-dir { - display: none; - } - - .title { - margin:5px; - } - - div#page { - box-sizing: border-box; - width:100%; - height:calc(100% - 64px); - float:right; - display:inline-block; - overflow:auto - } - - div#menu { - display: none; - } - - div#topbar { - height: 30px; - padding: 10px; - } - - a > img { - max-height:100%; - float:left; - padding-left:10px; - padding-top:2px; - } - - div#mobile-nav { - display:inline-block; - float:right; - border-bottom: 13px double white; - border-top: 4px solid white; - content:""; - height: 5px; - width:30px; - } - - div#mobile_container { - display:inline-block; - width: 100%; - padding-left:20px; - padding-top:10px; - } -} - - -@media (max-width: 760px) { - .container .left, - .container .right { - width: auto; - float: none; - } - - div#about { - max-width: 500px; - text-align: center; - } - - .title { - margin:5px; - } - - .pkg-dir { - display: none; - } - - div#page { - box-sizing: border-box; - width:100%; - height:calc(100% - 64px); - float:right; - display:inline-block; - overflow:auto - } - - div#menu { - display: none; - } - - div#topbar { - height: 30px; - padding: 10px; - } - - div#mobile-nav { - display:inline-block; - float:right; - border-bottom: 13px double white; - border-top: 4px solid white; - content:""; - height: 5px; - width:30px; - } -} - -@media (min-width: 700px) and (max-width: 1000px) { - div#menu > a { - margin: 5px 0; - font-size: 14px; - } - - div#menu > input { - font-size: 14px; - } - - .title { - margin:5px; - } - - .pkg-dir { - display: none; - } - - div#page { - box-sizing: border-box; - width:100%; - height:calc(100% - 64px); - float:right; - display:inline-block; - overflow:auto - } - - div#menu { - display: none; - } - - div#topbar { - height: 30px; - padding: 10px; - } - - div#mobile-nav { - display:inline-block; - float:right; - border-bottom: 13px double white; - border-top: 4px solid white; - content:""; - height: 5px; - width:30px; - } -} - -@media (max-width: 700px) { - body { - font-size: 15px; - } - - pre, - code { - font-size: 13px; - } - - div#page > .container { - padding: 0 10px; - } - - div#topbar { - padding: 10px; - } - - div#topbar > .container { - padding: 0; - } - - #heading-wide { - display: block; - } - #heading-narrow { - display: none; - } - - .top-heading { - float: none; - display: inline-block; - padding: 12px; - } - - div#menu { - padding: 0; - min-width: 0; - text-align: left; - float: left; - } - - div#menu > a, - div#menu > input { - display: block; - margin-left: 0; - margin-right: 0; - } - - div#menu > input { - width: 100%; - } - - #menu-button { - display: inline-block; - } - - p, - pre, - ul, - ol { - margin: 10px; - } - - .pkg-synopsis { - display: none; - } - - img.gopher { - display: none; - } - - .pkg-dir { - display: none; - } - - .title { - margin:5px; - } - - div#page { - box-sizing: border-box; - width:100%; - height:calc(100% - 64px); - float:right; - display:inline-block; - overflow:auto - } - - div#menu { - display: none; - } - - div#topbar { - height: 30px; - padding: 10px; - } - - div#mobile-nav { - display:inline-block; - float:right; - border-bottom: 13px double white; - border-top: 4px solid white; - content:""; - height: 5px; - width:30px; - } -} - -@media (max-width: 480px) { - #heading-wide { - display: none; - } - #heading-narrow { - display: block; - } - - .pkg-dir { - display: none; - } - - .title { - margin:5px; - } - - div#page { - box-sizing: border-box; - width:100%; - height:calc(100% - 64px); - float:right; - display:inline-block; - overflow:auto - } - - div#menu { - display: none; - } - - div#topbar { - height: 30px; - padding: 10px; - } - - div#mobile-nav { - display:inline-block; - float:right; - border-bottom: 13px double white; - border-top: 4px solid white; - content:""; - height: 5px; - width:30px; - } -} - -@media print { - pre { - background: #FFF; - border: 1px solid #BBB; - white-space: pre-wrap; - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/user_guide_example.html b/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/user_guide_example.html deleted file mode 100644 index 2e1f042fe..000000000 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/user_guide_example.html +++ /dev/null @@ -1,82 +0,0 @@ - - - -

    AWS SDK for Go

    -

    - aws-sdk-go is the official AWS SDK for the Go programming language. - - Checkout our release notes for information about the latest bug fixes, updates, and features added to the SDK. -

    -

    Installing

    -

    - If you are using Go 1.5 with the GO15VENDOREXPERIMENT=1 vendoring flag you can use the following to get the SDK as the SDK's runtime dependencies are vendored in the vendor folder. -

    -
     $ go get -u github.com/aws/aws-sdk-go 
    -

    - Otherwise you'll need to tell Go to get the SDK and all of its dependencies. -

    -
     $ go get -u github.com/aws/aws-sdk-go/...  
    -

    Configuring Credentials

    -

    - Before using the SDK, ensure that you've configured credentials. The best way to configure credentials on a development machine is to use the ~/.aws/credentials file, which might look like: -

    -
    -				[default]
    -				aws_access_key_id = AKID1234567890
    -				aws_secret_access_key = MY-SECRET-KEY
    -			
    -

    - You can learn more about the credentials file from this blog post. - - Alternatively, you can set the following environment variables: -

    -
    -				AWS_ACCESS_KEY_ID=AKID1234567890
    -				AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY
    -			
    -

    AWS CLI config file (~/aws/config)

    -

    - The AWS SDK for Go does not support the AWS CLI's config file. The SDK will not use any contents from this file. The SDK only supports the shared credentials file (~/aws/credentials). #384 tracks this feature request discussion. -

    -

    Using the Go SDK

    -

    - To use a service in the SDK, create a service variable by calling the New() function. Once you have a service client, you can call API operations which each return response data and a possible error. - - To list a set of instance IDs from EC2, you could run: -

    -
    -				package main
    -
    -				import (
    -						"fmt"
    -
    -						"github.com/aws/aws-sdk-go/aws"
    -						"github.com/aws/aws-sdk-go/aws/session"
    -						"github.com/aws/aws-sdk-go/service/ec2"
    -				)
    -
    -				func main() {
    -						// Create an EC2 service object in the "us-west-2" region
    -						// Note that you can also configure your region globally by
    -						// exporting the AWS_REGION environment variable
    -						svc := ec2.New(session.New(), &aws.Config{Region: aws.String("us-west-2")})
    -
    -						// Call the DescribeInstances Operation
    -						resp, err := svc.DescribeInstances(nil)
    -						if err != nil {
    -								panic(err)
    -						}
    -
    -						// resp has all of the response data, pull out instance IDs:
    -						fmt.Println("> Number of reservation sets: ", len(resp.Reservations))
    -						for idx, res := range resp.Reservations {
    -								fmt.Println("  > Number of instances: ", len(res.Instances))
    -								for _, inst := range resp.Reservations[idx].Instances {
    -										fmt.Println("    - Instance ID: ", *inst.InstanceId)
    -								}
    -						}
    -				}
    -			
    - - - diff --git a/vendor/github.com/aws/aws-sdk-go/doc-src/plugin/plugin.rb b/vendor/github.com/aws/aws-sdk-go/doc-src/plugin/plugin.rb index 988270747..ba7bc52e8 100644 --- a/vendor/github.com/aws/aws-sdk-go/doc-src/plugin/plugin.rb +++ b/vendor/github.com/aws/aws-sdk-go/doc-src/plugin/plugin.rb @@ -105,7 +105,7 @@ def apply_docs svc_name = ctor.source[/ServiceName:\s*"(.+?)",/, 1] api_ver = ctor.source[/APIVersion:\s*"(.+?)",/, 1] log.progress "Parsing service documentation for #{svc_name} (#{api_ver})" - file = Dir.glob("models/apis/#{svc_name}/#{api_ver}/docs-2.json").sort.last + file = Dir.glob("apis/#{svc_name}/#{api_ver}/docs-2.json").sort.last next if file.nil? next if svc.nil? diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/cloudfront/signCookies/README.md b/vendor/github.com/aws/aws-sdk-go/example/service/cloudfront/signCookies/README.md deleted file mode 100644 index 776f22a94..000000000 --- a/vendor/github.com/aws/aws-sdk-go/example/service/cloudfront/signCookies/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Example - -This example shows how the CloudFront CookieSigner can be used to generate signed cookies to provided short term access to restricted resourced fronted by CloudFront. - -# Usage -Makes a request for object using CloudFront cookie signing, and outputs the contents of the object to stdout. - -```sh -go run signCookies.go -file -id -r -g -``` - - diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/cloudfront/signCookies/signCookies.go b/vendor/github.com/aws/aws-sdk-go/example/service/cloudfront/signCookies/signCookies.go deleted file mode 100644 index 0577c03e2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/example/service/cloudfront/signCookies/signCookies.go +++ /dev/null @@ -1,77 +0,0 @@ -package main - -import ( - "flag" - "fmt" - "io/ioutil" - "net/http" - "time" - - "github.com/aws/aws-sdk-go/service/cloudfront/sign" -) - -// Makes a request for object using CloudFront cookie signing, and outputs -// the contents of the object to stdout. -// -// Usage example: -// go run signCookies.go -file -id -r -g -func main() { - var keyFile string // Private key PEM file - var keyID string // Key pair ID of CloudFront key pair - var resource string // CloudFront resource pattern - var object string // S3 object frontented by CloudFront - - flag.StringVar(&keyFile, "file", "", "private key file") - flag.StringVar(&keyID, "id", "", "key pair id") - flag.StringVar(&resource, "r", "", "resource to request") - flag.StringVar(&object, "g", "", "object to get") - flag.Parse() - - // Load the PEM file into memory so it can be used by the signer - privKey, err := sign.LoadPEMPrivKeyFile(keyFile) - if err != nil { - fmt.Println("failed to load key,", err) - return - } - - // Create the new CookieSigner to get signed cookies for CloudFront - // resource requests - signer := sign.NewCookieSigner(keyID, privKey) - - // Get the cookies for the resource. These will be used - // to make the requests with - cookies, err := signer.Sign(resource, time.Now().Add(1*time.Hour)) - if err != nil { - fmt.Println("failed to sign cookies", err) - return - } - - // Use the cookies in a http.Client to show how they allow the client - // to request resources from CloudFront. - req, err := http.NewRequest("GET", object, nil) - fmt.Println("Cookies:") - for _, c := range cookies { - fmt.Printf("%s=%s;\n", c.Name, c.Value) - req.AddCookie(c) - } - - // Send and handle the response. For a successful response the object's - // content will be written to stdout. The same process could be applied - // to a http service written cookies to the response but useing - // http.SetCookie(w, c,) on the ResponseWriter. - resp, err := http.DefaultClient.Do(req) - if err != nil { - fmt.Println("failed to send request", err) - return - } - defer resp.Body.Close() - - b, err := ioutil.ReadAll(resp.Body) - if err != nil { - fmt.Println("failed to read requested body", err) - return - } - - fmt.Println("Response:", resp.Status) - fmt.Println(string(b)) -} diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/README.md b/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/README.md deleted file mode 100644 index 6a5f2c9be..000000000 --- a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# Example - -listObjects is an example using the AWS SDK for Go to list objects' key in a S3 bucket. - - -# Usage - -The example uses the the bucket name provided, and lists all object keys in a bucket. - -```sh -go run listObjects.go -``` - -Output: -``` -Page, 0 -Object: myKey -Object: mykey.txt -Object: resources/0001/item-01 -Object: resources/0001/item-02 -Object: resources/0001/item-03 -Object: resources/0002/item-01 -Object: resources/0002/item-02 -Object: resources/0002/item-03 -Object: resources/0002/item-04 -Object: resources/0002/item-05 -``` diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go b/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go deleted file mode 100644 index 4c114024f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjects/listObjects.go +++ /dev/null @@ -1,36 +0,0 @@ -package main - -import ( - "fmt" - "os" - - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/s3" -) - -// Lists all objects in a bucket using pagination -// -// Usage: -// go run listObjects.go -func main() { - sess := session.New() - - svc := s3.New(sess) - - i := 0 - err := svc.ListObjectsPages(&s3.ListObjectsInput{ - Bucket: &os.Args[1], - }, func(p *s3.ListObjectsOutput, last bool) (shouldContinue bool) { - fmt.Println("Page,", i) - i++ - - for _, obj := range p.Contents { - fmt.Println("Object:", *obj.Key) - } - return true - }) - if err != nil { - fmt.Println("failed to list objects", err) - return - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjectsConcurrently/README.md b/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjectsConcurrently/README.md deleted file mode 100644 index 5d99711df..000000000 --- a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjectsConcurrently/README.md +++ /dev/null @@ -1,13 +0,0 @@ -## Example - -listS3EncryptedObjects is an example using the AWS SDK for Go concurrently to list the encrypted objects in the S3 buckets owned by an account. - -## Usage - -The example's `accounts` string slice contains a list of the SharedCredentials profiles which will be used to look up the buckets owned by each profile. Each bucket's objects will be queried. - -``` -AWS_REGION=us-east-1 go run example/listS3EncryptedObjects/main.go -``` - - diff --git a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjectsConcurrently/listObjectsConcurrently.go b/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjectsConcurrently/listObjectsConcurrently.go deleted file mode 100644 index 33c855e06..000000000 --- a/vendor/github.com/aws/aws-sdk-go/example/service/s3/listObjectsConcurrently/listObjectsConcurrently.go +++ /dev/null @@ -1,228 +0,0 @@ -package main - -import ( - "fmt" - "os" - "sort" - "sync" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/credentials" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/s3" -) - -func exit(msg ...interface{}) { - fmt.Fprintln(os.Stderr, msg...) - os.Exit(1) -} - -// Lists all encrypted objects owned by an account. The `accounts` string -// contains a list of profiles to use. -// -// Usage: -// go run listObjectsConcurrently.go -func main() { - accounts := []string{"default", "default2", "otherprofile"} - - // Spin off a worker for each account to retrieve that account's - bucketCh := make(chan *Bucket, 5) - var wg sync.WaitGroup - for _, acc := range accounts { - wg.Add(1) - go func(acc string) { - sess := session.New(&aws.Config{Credentials: credentials.NewSharedCredentials("", acc)}) - if err := getAccountBuckets(sess, bucketCh, acc); err != nil { - fmt.Fprintf(os.Stderr, "failed to get account %s's bucket info, %v\n", acc, err) - } - wg.Done() - }(acc) - } - // Spin off a goroutine which will wait until all account buckets have been collected and - // added to the bucketCh. Close the bucketCh so the for range below will exit once all - // bucket info is printed. - go func() { - wg.Wait() - close(bucketCh) - }() - - // Receive from the bucket channel printing the information for each bucket to the console - // when the bucketCh channel is drained. - buckets := []*Bucket{} - for b := range bucketCh { - buckets = append(buckets, b) - } - - sortBuckets(buckets) - for _, b := range buckets { - if b.Error != nil { - fmt.Printf("Bucket %s, owned by: %s, failed: %v\n", b.Name, b.Owner, b.Error) - continue - } - - encObjs := b.encryptedObjects() - fmt.Printf("Bucket: %s, owned by: %s, total objects: %d, failed objects: %d, encrypted objects: %d\n", - b.Name, b.Owner, len(b.Objects), len(b.ErrObjects), len(encObjs)) - if len(encObjs) > 0 { - for _, encObj := range encObjs { - fmt.Printf("\t%s %s:%s/%s\n", encObj.EncryptionType, b.Region, b.Name, encObj.Key) - } - } - } -} - -func sortBuckets(buckets []*Bucket) { - s := sortalbeBuckets(buckets) - sort.Sort(s) -} - -type sortalbeBuckets []*Bucket - -func (s sortalbeBuckets) Len() int { return len(s) } -func (s sortalbeBuckets) Swap(a, b int) { s[a], s[b] = s[b], s[a] } -func (s sortalbeBuckets) Less(a, b int) bool { - if s[a].Owner == s[b].Owner && s[a].Name < s[b].Name { - return true - } - - if s[a].Owner < s[b].Owner { - return true - } - - return false -} - -func getAccountBuckets(sess *session.Session, bucketCh chan<- *Bucket, owner string) error { - svc := s3.New(sess) - buckets, err := listBuckets(svc) - if err != nil { - return fmt.Errorf("failed to list buckets, %v", err) - } - for _, bucket := range buckets { - bucket.Owner = owner - if bucket.Error != nil { - continue - } - - bckSvc := s3.New(sess, &aws.Config{ - Region: aws.String(bucket.Region), - Credentials: svc.Config.Credentials, - }) - bucketDetails(bckSvc, bucket) - bucketCh <- bucket - } - - return nil -} - -func bucketDetails(svc *s3.S3, bucket *Bucket) { - objs, errObjs, err := listBucketObjects(svc, bucket.Name) - if err != nil { - bucket.Error = err - } else { - bucket.Objects = objs - bucket.ErrObjects = errObjs - } -} - -// A Object provides details of an S3 object -type Object struct { - Bucket string - Key string - Encrypted bool - EncryptionType string -} - -// An ErrObject provides details of the error occurred retrieving -// an object's status. -type ErrObject struct { - Bucket string - Key string - Error error -} - -// A Bucket provides details about a bucket and its objects -type Bucket struct { - Owner string - Name string - CreationDate time.Time - Region string - Objects []Object - Error error - ErrObjects []ErrObject -} - -func (b *Bucket) encryptedObjects() []Object { - encObjs := []Object{} - for _, obj := range b.Objects { - if obj.Encrypted { - encObjs = append(encObjs, obj) - } - } - return encObjs -} - -func listBuckets(svc *s3.S3) ([]*Bucket, error) { - res, err := svc.ListBuckets(&s3.ListBucketsInput{}) - if err != nil { - return nil, err - } - - buckets := make([]*Bucket, len(res.Buckets)) - for i, b := range res.Buckets { - buckets[i] = &Bucket{ - Name: *b.Name, - CreationDate: *b.CreationDate, - } - - locRes, err := svc.GetBucketLocation(&s3.GetBucketLocationInput{ - Bucket: b.Name, - }) - if err != nil { - buckets[i].Error = err - continue - } - - if locRes.LocationConstraint == nil { - buckets[i].Region = "us-east-1" - } else { - buckets[i].Region = *locRes.LocationConstraint - } - } - - return buckets, nil -} - -func listBucketObjects(svc *s3.S3, bucket string) ([]Object, []ErrObject, error) { - listRes, err := svc.ListObjects(&s3.ListObjectsInput{ - Bucket: &bucket, - }) - if err != nil { - return nil, nil, err - } - - objs := make([]Object, 0, len(listRes.Contents)) - errObjs := []ErrObject{} - for _, listObj := range listRes.Contents { - objData, err := svc.HeadObject(&s3.HeadObjectInput{ - Bucket: &bucket, - Key: listObj.Key, - }) - - if err != nil { - errObjs = append(errObjs, ErrObject{Bucket: bucket, Key: *listObj.Key, Error: err}) - continue - } - - obj := Object{Bucket: bucket, Key: *listObj.Key} - if objData.ServerSideEncryption != nil { - obj.Encrypted = true - obj.EncryptionType = *objData.ServerSideEncryption - } - - objs = append(objs, obj) - } - - return objs, errObjs, nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints.go b/vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints.go new file mode 100644 index 000000000..d040cccd5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints.go @@ -0,0 +1,31 @@ +// Package endpoints validates regional endpoints for services. +package endpoints + +//go:generate go run ../model/cli/gen-endpoints/main.go endpoints.json endpoints_map.go +//go:generate gofmt -s -w endpoints_map.go + +import "strings" + +// EndpointForRegion returns an endpoint and its signing region for a service and region. +// if the service and region pair are not found endpoint and signingRegion will be empty. +func EndpointForRegion(svcName, region string) (endpoint, signingRegion string) { + derivedKeys := []string{ + region + "/" + svcName, + region + "/*", + "*/" + svcName, + "*/*", + } + + for _, key := range derivedKeys { + if val, ok := endpointsMap.Endpoints[key]; ok { + ep := val.Endpoint + ep = strings.Replace(ep, "{region}", region, -1) + ep = strings.Replace(ep, "{service}", svcName, -1) + + endpoint = ep + signingRegion = val.SigningRegion + return + } + } + return +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json b/vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints.json similarity index 71% rename from vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json rename to vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints.json index 5f4991c2b..4c588090a 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.json +++ b/vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints.json @@ -8,9 +8,6 @@ "endpoint": "{service}.{region}.amazonaws.com.cn", "signatureVersion": "v4" }, - "cn-north-1/ec2metadata": { - "endpoint": "http://169.254.169.254/latest" - }, "us-gov-west-1/iam": { "endpoint": "iam.us-gov.amazonaws.com" }, @@ -20,9 +17,6 @@ "us-gov-west-1/s3": { "endpoint": "s3-{region}.amazonaws.com" }, - "us-gov-west-1/ec2metadata": { - "endpoint": "http://169.254.169.254/latest" - }, "*/cloudfront": { "endpoint": "cloudfront.amazonaws.com", "signingRegion": "us-east-1" @@ -31,13 +25,6 @@ "endpoint": "", "signingRegion": "us-east-1" }, - "*/data.iot": { - "endpoint": "", - "signingRegion": "us-east-1" - }, - "*/ec2metadata": { - "endpoint": "http://169.254.169.254/latest" - }, "*/iam": { "endpoint": "iam.amazonaws.com", "signingRegion": "us-east-1" @@ -54,22 +41,37 @@ "endpoint": "sts.amazonaws.com", "signingRegion": "us-east-1" }, - "*/waf": { - "endpoint": "waf.amazonaws.com", - "signingRegion": "us-east-1" - }, "us-east-1/sdb": { "endpoint": "sdb.amazonaws.com", "signingRegion": "us-east-1" }, - "*/s3": { - "endpoint": "s3-{region}.amazonaws.com" - }, "us-east-1/s3": { "endpoint": "s3.amazonaws.com" }, + "us-west-1/s3": { + "endpoint": "s3-{region}.amazonaws.com" + }, + "us-west-2/s3": { + "endpoint": "s3-{region}.amazonaws.com" + }, + "eu-west-1/s3": { + "endpoint": "s3-{region}.amazonaws.com" + }, + "ap-southeast-1/s3": { + "endpoint": "s3-{region}.amazonaws.com" + }, + "ap-southeast-2/s3": { + "endpoint": "s3-{region}.amazonaws.com" + }, + "ap-northeast-1/s3": { + "endpoint": "s3-{region}.amazonaws.com" + }, + "sa-east-1/s3": { + "endpoint": "s3-{region}.amazonaws.com" + }, "eu-central-1/s3": { - "endpoint": "{service}.{region}.amazonaws.com" + "endpoint": "{service}.{region}.amazonaws.com", + "signatureVersion": "v4" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go b/vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints_map.go similarity index 79% rename from vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go rename to vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints_map.go index e995315ab..894c1a643 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_map.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints_map.go @@ -26,13 +26,6 @@ var endpointsMap = endpointStruct{ Endpoint: "", SigningRegion: "us-east-1", }, - "*/data.iot": { - Endpoint: "", - SigningRegion: "us-east-1", - }, - "*/ec2metadata": { - Endpoint: "http://169.254.169.254/latest", - }, "*/iam": { Endpoint: "iam.amazonaws.com", SigningRegion: "us-east-1", @@ -45,26 +38,31 @@ var endpointsMap = endpointStruct{ Endpoint: "route53.amazonaws.com", SigningRegion: "us-east-1", }, - "*/s3": { - Endpoint: "s3-{region}.amazonaws.com", - }, "*/sts": { Endpoint: "sts.amazonaws.com", SigningRegion: "us-east-1", }, - "*/waf": { - Endpoint: "waf.amazonaws.com", - SigningRegion: "us-east-1", + "ap-northeast-1/s3": { + Endpoint: "s3-{region}.amazonaws.com", + }, + "ap-southeast-1/s3": { + Endpoint: "s3-{region}.amazonaws.com", + }, + "ap-southeast-2/s3": { + Endpoint: "s3-{region}.amazonaws.com", }, "cn-north-1/*": { Endpoint: "{service}.{region}.amazonaws.com.cn", }, - "cn-north-1/ec2metadata": { - Endpoint: "http://169.254.169.254/latest", - }, "eu-central-1/s3": { Endpoint: "{service}.{region}.amazonaws.com", }, + "eu-west-1/s3": { + Endpoint: "s3-{region}.amazonaws.com", + }, + "sa-east-1/s3": { + Endpoint: "s3-{region}.amazonaws.com", + }, "us-east-1/s3": { Endpoint: "s3.amazonaws.com", }, @@ -72,9 +70,6 @@ var endpointsMap = endpointStruct{ Endpoint: "sdb.amazonaws.com", SigningRegion: "us-east-1", }, - "us-gov-west-1/ec2metadata": { - Endpoint: "http://169.254.169.254/latest", - }, "us-gov-west-1/iam": { Endpoint: "iam.us-gov.amazonaws.com", }, @@ -84,5 +79,11 @@ var endpointsMap = endpointStruct{ "us-gov-west-1/sts": { Endpoint: "sts.us-gov-west-1.amazonaws.com", }, + "us-west-1/s3": { + Endpoint: "s3-{region}.amazonaws.com", + }, + "us-west-2/s3": { + Endpoint: "s3-{region}.amazonaws.com", + }, }, } diff --git a/vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints_test.go b/vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints_test.go new file mode 100644 index 000000000..8af65879d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/endpoints/endpoints_test.go @@ -0,0 +1,28 @@ +package endpoints + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestGlobalEndpoints(t *testing.T) { + region := "mock-region-1" + svcs := []string{"cloudfront", "iam", "importexport", "route53", "sts"} + + for _, name := range svcs { + ep, sr := EndpointForRegion(name, region) + assert.Equal(t, name+".amazonaws.com", ep) + assert.Equal(t, "us-east-1", sr) + } +} + +func TestServicesInCN(t *testing.T) { + region := "cn-north-1" + svcs := []string{"cloudfront", "iam", "importexport", "route53", "sts", "s3"} + + for _, name := range svcs { + ep, _ := EndpointForRegion(name, region) + assert.Equal(t, name+"."+region+".amazonaws.com.cn", ep) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/customizations/machinelearning/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/customizations/machinelearning/client.go new file mode 100644 index 000000000..68b0a1063 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/customizations/machinelearning/client.go @@ -0,0 +1,30 @@ +//Package machinelearning provides gucumber integration tests suppport. +package machinelearning + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/machinelearning" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@machinelearning", func() { + World["client"] = machinelearning.New(nil) + }) + + When(`^I attempt to call the "(.+?)" API without the "(.+?)" parameter$`, func(s1 string, s2 string) { + // call(s1, nil, true) + T.Skip() // pending + }) + + When(`^I attempt to call the "(.+?)" API with "(.+?)" parameter$`, func(s1 string, s2 string) { + // call(s1, nil, true) + T.Skip() // pending + }) + + Then(`^the hostname should equal the "(.+?)" parameter$`, func(s1 string) { + T.Skip() // pending + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/customizations/machinelearning/machinelearning.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/customizations/machinelearning/machinelearning.feature new file mode 100644 index 000000000..15343cdf9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/customizations/machinelearning/machinelearning.feature @@ -0,0 +1,21 @@ +# language: en +@machinelearning +Feature: Amazon Machine Learning + + I want to use Amazon Machine Learning + + + Scenario: Predict API endpoint + When I attempt to call the "Predict" API without the "PredictEndpoint" parameter + Then the request should fail + + Scenario: Predict API endpoint + When I attempt to call the "Predict" API with "PredictEndpoint" parameter + Then the hostname should equal the "PredictEndpoint" parameter + + Scenario: Predict API endpoint error handling + When I attempt to call the "Predict" API with JSON: + """ + { "MLModelId": "fake-id", Record: {}, PredictEndpoint: "realtime.machinelearning.us-east-1.amazonaws.com" } + """ + Then the error code should be "PredictorNotMountedException" diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/shared.go b/vendor/github.com/aws/aws-sdk-go/internal/features/shared/shared.go similarity index 80% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/shared.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/shared/shared.go index 6defb75e5..114008506 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/shared.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/shared/shared.go @@ -1,5 +1,5 @@ -// Package smoke contains shared step definitions that are used across integration tests -package smoke +// Package shared contains shared step definitions that are used across integration tests +package shared import ( "encoding/json" @@ -16,24 +16,27 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/aws/defaults" ) -// Session is a shared session for all integration smoke tests to use. -var Session = session.New() +// Imported is a marker to ensure that this package's init() function gets +// executed. +// +// To use this package, import it and add: +// +// var _ = shared.Imported +const Imported = true func init() { - logLevel := Session.Config.LogLevel if os.Getenv("DEBUG") != "" { - logLevel = aws.LogLevel(aws.LogDebug) + defaults.DefaultConfig.LogLevel = aws.LogLevel(aws.LogDebug) } if os.Getenv("DEBUG_SIGNING") != "" { - logLevel = aws.LogLevel(aws.LogDebugWithSigning) + defaults.DefaultConfig.LogLevel = aws.LogLevel(aws.LogDebugWithSigning) } if os.Getenv("DEBUG_BODY") != "" { - logLevel = aws.LogLevel(aws.LogDebugWithHTTPBody) + defaults.DefaultConfig.LogLevel = aws.LogLevel(aws.LogDebugWithSigning | aws.LogDebugWithHTTPBody) } - Session.Config.LogLevel = logLevel When(`^I call the "(.+?)" API$`, func(op string) { call(op, nil, false) @@ -44,12 +47,12 @@ func init() { }) Then(`^the value at "(.+?)" should be a list$`, func(member string) { - vals, _ := awsutil.ValuesAtPath(World["response"], member) + vals := awsutil.ValuesAtAnyPath(World["response"], member) assert.NotNil(T, vals) }) Then(`^the response should contain a "(.+?)"$`, func(member string) { - vals, _ := awsutil.ValuesAtPath(World["response"], member) + vals := awsutil.ValuesAtAnyPath(World["response"], member) assert.NotEmpty(T, vals) }) @@ -61,7 +64,7 @@ func init() { err, ok := World["error"].(awserr.Error) assert.True(T, ok, "no error returned") if ok { - assert.Equal(T, code, err.Code(), "Error: %v", err) + assert.Equal(T, code, err.Code()) } }) @@ -69,7 +72,7 @@ func init() { err, ok := World["error"].(awserr.Error) assert.True(T, ok, "no error returned") if ok { - assert.Contains(T, err.Error(), data) + assert.Contains(T, err.Message(), data) } }) @@ -79,22 +82,16 @@ func init() { if ok { found := false for _, row := range table { - if strings.Contains(err.Error(), row[0]) { + if strings.Contains(err.Message(), row[0]) { found = true break } } - assert.True(T, found, fmt.Sprintf("no error messages matched: \"%s\"", err.Error())) + assert.True(T, found, fmt.Sprintf("no error messages matched: \"%s\"", err.Message())) } }) - And(`^I expect the response error message not be empty$`, func() { - err, ok := World["error"].(awserr.Error) - assert.True(T, ok, "no error returned") - assert.NotEmpty(T, err.Message()) - }) - When(`^I call the "(.+?)" API with JSON:$`, func(s1 string, data string) { callWithJSON(s1, data, false) }) @@ -120,12 +117,6 @@ func init() { assert.True(T, ok, "no error returned") assert.Error(T, err) }) - - Then(`^the request should be successful$`, func() { - err, ok := World["error"].(awserr.Error) - assert.False(T, ok, "error returned") - assert.NoError(T, err) - }) } // findMethod finds the op operation on the v structure using a case-insensitive @@ -196,7 +187,7 @@ func fillArgs(in reflect.Value, args [][]string) { val = num } } - awsutil.SetValueAtPath(in.Interface(), path, val) + awsutil.SetValueAtAnyPath(in.Interface(), path, val) } } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/autoscaling.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/autoscaling/autoscaling.feature similarity index 80% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/autoscaling.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/autoscaling/autoscaling.feature index 7c2bdf6cf..1f38f0f52 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/autoscaling.feature +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/autoscaling/autoscaling.feature @@ -11,8 +11,8 @@ Feature: Auto Scaling | LaunchConfigurationName | | | ImageId | ami-12345678 | | InstanceType | m1.small | - Then I expect the response error code to be "InvalidParameter" + Then I expect the response error code to be "ValidationError" And I expect the response error message to include: """ - LaunchConfigurationName + Member must have length greater than or equal to 1 """ diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/autoscaling/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/autoscaling/client.go new file mode 100644 index 000000000..bf8ded9aa --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/autoscaling/client.go @@ -0,0 +1,16 @@ +//Package autoscaling provides gucumber integration tests suppport. +package autoscaling + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/autoscaling" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@autoscaling", func() { + World["client"] = autoscaling.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudformation/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudformation/client.go index 96146ec0d..9a9199d14 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudformation/client.go @@ -1,14 +1,16 @@ -//Package cloudformation provides gucumber integration tests support. +//Package cloudformation provides gucumber integration tests suppport. package cloudformation import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/cloudformation" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@cloudformation", func() { - World["client"] = cloudformation.New(smoke.Session) + World["client"] = cloudformation.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/cloudformation.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudformation/cloudformation.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/cloudformation.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudformation/cloudformation.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudfront/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudfront/client.go new file mode 100644 index 000000000..77dab3553 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudfront/client.go @@ -0,0 +1,16 @@ +//Package cloudfront provides gucumber integration tests suppport. +package cloudfront + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/cloudfront" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@cloudfront", func() { + World["client"] = cloudfront.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/cloudfront.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudfront/cloudfront.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/cloudfront.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudfront/cloudfront.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudhsm/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudhsm/client.go new file mode 100644 index 000000000..e11f786c4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudhsm/client.go @@ -0,0 +1,16 @@ +//Package cloudhsm provides gucumber integration tests suppport. +package cloudhsm + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/cloudhsm" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@cloudhsm", func() { + World["client"] = cloudhsm.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/cloudhsm.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudhsm/cloudhsm.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/cloudhsm.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudhsm/cloudhsm.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudsearch/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudsearch/client.go new file mode 100644 index 000000000..82f332fdf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudsearch/client.go @@ -0,0 +1,16 @@ +//Package cloudsearch provides gucumber integration tests suppport. +package cloudsearch + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/cloudsearch" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@cloudsearch", func() { + World["client"] = cloudsearch.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/cloudsearch.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudsearch/cloudsearch.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/cloudsearch.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudsearch/cloudsearch.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudtrail/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudtrail/client.go new file mode 100644 index 000000000..98826d94b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudtrail/client.go @@ -0,0 +1,16 @@ +//Package cloudtrail provides gucumber integration tests suppport. +package cloudtrail + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/cloudtrail" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@cloudtrail", func() { + World["client"] = cloudtrail.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/cloudtrail.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudtrail/cloudtrail.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/cloudtrail.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudtrail/cloudtrail.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatch/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatch/client.go new file mode 100644 index 000000000..58441d25a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatch/client.go @@ -0,0 +1,16 @@ +//Package cloudwatch provides gucumber integration tests suppport. +package cloudwatch + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/cloudwatch" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@cloudwatch", func() { + World["client"] = cloudwatch.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/cloudwatch.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatch/cloudwatch.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/cloudwatch.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatch/cloudwatch.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatchlogs/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatchlogs/client.go index 6d4277d6f..e485496e3 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatchlogs/client.go @@ -1,14 +1,16 @@ -//Package cloudwatchlogs provides gucumber integration tests support. +//Package cloudwatchlogs provides gucumber integration tests suppport. package cloudwatchlogs import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/cloudwatchlogs" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@cloudwatchlogs", func() { - World["client"] = cloudwatchlogs.New(smoke.Session) + World["client"] = cloudwatchlogs.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/cloudwatchlogs.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatchlogs/cloudwatchlogs.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/cloudwatchlogs.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cloudwatchlogs/cloudwatchlogs.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codecommit/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codecommit/client.go new file mode 100644 index 000000000..39e01f458 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codecommit/client.go @@ -0,0 +1,16 @@ +//Package codecommit provides gucumber integration tests suppport. +package codecommit + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/codecommit" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@codecommit", func() { + World["client"] = codecommit.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/codecommit.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codecommit/codecommit.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/codecommit.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codecommit/codecommit.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codedeploy/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codedeploy/client.go new file mode 100644 index 000000000..cc4c1fd44 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codedeploy/client.go @@ -0,0 +1,16 @@ +//Package codedeploy provides gucumber integration tests suppport. +package codedeploy + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/codedeploy" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@codedeploy", func() { + World["client"] = codedeploy.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/codedeploy.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codedeploy/codedeploy.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/codedeploy.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codedeploy/codedeploy.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codepipeline/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codepipeline/client.go new file mode 100644 index 000000000..f841e1186 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codepipeline/client.go @@ -0,0 +1,16 @@ +//Package codepipeline provides gucumber integration tests suppport. +package codepipeline + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/codepipeline" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@codepipeline", func() { + World["client"] = codepipeline.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/codepipeline.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codepipeline/codepipeline.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/codepipeline.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/codepipeline/codepipeline.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitoidentity/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitoidentity/client.go index cccb0dce4..9cfc0f5e1 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitoidentity/client.go @@ -1,14 +1,16 @@ -//Package cognitoidentity provides gucumber integration tests support. +//Package cognitoidentity provides gucumber integration tests suppport. package cognitoidentity import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/cognitoidentity" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@cognitoidentity", func() { - World["client"] = cognitoidentity.New(smoke.Session) + World["client"] = cognitoidentity.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/cognitoidentity.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitoidentity/cognitoidentity.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/cognitoidentity.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitoidentity/cognitoidentity.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitosync/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitosync/client.go new file mode 100644 index 000000000..84aa826ee --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitosync/client.go @@ -0,0 +1,16 @@ +//Package cognitosync provides gucumber integration tests suppport. +package cognitosync + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/cognitosync" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@cognitosync", func() { + World["client"] = cognitosync.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/cognitosync.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitosync/cognitosync.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/cognitosync.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/cognitosync/cognitosync.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/configservice/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/configservice/client.go index 82e5cb455..865f262ca 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/configservice/client.go @@ -1,14 +1,16 @@ -//Package configservice provides gucumber integration tests support. +//Package configservice provides gucumber integration tests suppport. package configservice import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/configservice" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@configservice", func() { - World["client"] = configservice.New(smoke.Session) + World["client"] = configservice.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/configservice.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/configservice/configservice.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/configservice.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/configservice/configservice.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/datapipeline/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/datapipeline/client.go new file mode 100644 index 000000000..8a855dddc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/datapipeline/client.go @@ -0,0 +1,16 @@ +//Package datapipeline provides gucumber integration tests suppport. +package datapipeline + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/datapipeline" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@datapipeline", func() { + World["client"] = datapipeline.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/datapipeline.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/datapipeline/datapipeline.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/datapipeline.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/datapipeline/datapipeline.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/devicefarm/client.go similarity index 50% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/devicefarm/client.go index 137e52ca6..fbf2488c2 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/devicefarm/client.go @@ -1,17 +1,18 @@ -//Package devicefarm provides gucumber integration tests support. +//Package devicefarm provides gucumber integration tests suppport. package devicefarm import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/devicefarm" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@devicefarm", func() { // FIXME remove custom region - World["client"] = devicefarm.New(smoke.Session, - aws.NewConfig().WithRegion("us-west-2")) + World["client"] = devicefarm.New(aws.NewConfig().WithRegion("us-west-2")) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/devicefarm.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/devicefarm/devicefarm.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/devicefarm.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/devicefarm/devicefarm.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/directconnect/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/directconnect/client.go index 1bf691bd6..d36b948bb 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/directconnect/client.go @@ -1,14 +1,16 @@ -//Package directconnect provides gucumber integration tests support. +//Package directconnect provides gucumber integration tests suppport. package directconnect import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/directconnect" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@directconnect", func() { - World["client"] = directconnect.New(smoke.Session) + World["client"] = directconnect.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/directconnect.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/directconnect/directconnect.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/directconnect.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/directconnect/directconnect.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/directoryservice/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/directoryservice/client.go index 8f48ff46d..6566ef9a9 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/directoryservice/client.go @@ -1,14 +1,16 @@ -//Package directoryservice provides gucumber integration tests support. +//Package directoryservice provides gucumber integration tests suppport. package directoryservice import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/directoryservice" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@directoryservice", func() { - World["client"] = directoryservice.New(smoke.Session) + World["client"] = directoryservice.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/directoryservice.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/directoryservice/directoryservice.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/directoryservice.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/directoryservice/directoryservice.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodb/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodb/client.go new file mode 100644 index 000000000..1c2bb6aa6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodb/client.go @@ -0,0 +1,16 @@ +//Package dynamodb provides gucumber integration tests suppport. +package dynamodb + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/dynamodb" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@dynamodb", func() { + World["client"] = dynamodb.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/dynamodb.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodb/dynamodb.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/dynamodb.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodb/dynamodb.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodbstreams/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodbstreams/client.go index d167faaac..ff1079f68 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodbstreams/client.go @@ -1,14 +1,16 @@ -//Package dynamodbstreams provides gucumber integration tests support. +//Package dynamodbstreams provides gucumber integration tests suppport. package dynamodbstreams import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/dynamodbstreams" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@dynamodbstreams", func() { - World["client"] = dynamodbstreams.New(smoke.Session) + World["client"] = dynamodbstreams.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/dynamodbstreams.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodbstreams/dynamodbstreams.feature similarity index 80% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/dynamodbstreams.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodbstreams/dynamodbstreams.feature index 6e35e29eb..ad5acb4d5 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/dynamodbstreams.feature +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/dynamodbstreams/dynamodbstreams.feature @@ -9,8 +9,8 @@ Feature: Amazon DynamoDB Streams Scenario: Handling errors When I attempt to call the "DescribeStream" API with: | StreamArn | fake-stream | - Then I expect the response error code to be "InvalidParameter" + Then I expect the response error code to be "ValidationException" And I expect the response error message to include: """ - StreamArn + Invalid StreamArn """ diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ec2/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ec2/client.go new file mode 100644 index 000000000..155f3c86e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ec2/client.go @@ -0,0 +1,16 @@ +//Package ec2 provides gucumber integration tests suppport. +package ec2 + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/ec2" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@ec2", func() { + World["client"] = ec2.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/ec2.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ec2/ec2.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/ec2.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ec2/ec2.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ecs/client.go similarity index 50% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ecs/client.go index 459154c6b..5512644cf 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ecs/client.go @@ -1,17 +1,18 @@ -//Package ecs provides gucumber integration tests support. +//Package ecs provides gucumber integration tests suppport. package ecs import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/ecs" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@ecs", func() { // FIXME remove custom region - World["client"] = ecs.New(smoke.Session, - aws.NewConfig().WithRegion("us-west-2")) + World["client"] = ecs.New(aws.NewConfig().WithRegion("us-west-2")) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/ecs.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ecs/ecs.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/ecs.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ecs/ecs.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/efs/client.go similarity index 50% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/efs/client.go index de11a018a..05197180f 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/efs/client.go @@ -1,17 +1,18 @@ -//Package efs provides gucumber integration tests support. +//Package efs provides gucumber integration tests suppport. package efs import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/efs" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@efs", func() { // FIXME remove custom region - World["client"] = efs.New(smoke.Session, - aws.NewConfig().WithRegion("us-west-2")) + World["client"] = efs.New(aws.NewConfig().WithRegion("us-west-2")) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/efs.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/efs/efs.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/efs.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/efs/efs.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticache/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticache/client.go new file mode 100644 index 000000000..922ab38d5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticache/client.go @@ -0,0 +1,16 @@ +//Package elasticache provides gucumber integration tests suppport. +package elasticache + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/elasticache" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@elasticache", func() { + World["client"] = elasticache.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/elasticache.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticache/elasticache.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/elasticache.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticache/elasticache.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticbeanstalk/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticbeanstalk/client.go index 9c96cf886..9201bfa06 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticbeanstalk/client.go @@ -1,14 +1,16 @@ -//Package elasticbeanstalk provides gucumber integration tests support. +//Package elasticbeanstalk provides gucumber integration tests suppport. package elasticbeanstalk import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/elasticbeanstalk" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@elasticbeanstalk", func() { - World["client"] = elasticbeanstalk.New(smoke.Session) + World["client"] = elasticbeanstalk.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/elasticbeanstalk.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticbeanstalk/elasticbeanstalk.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/elasticbeanstalk.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticbeanstalk/elasticbeanstalk.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticloadbalancing/client.go similarity index 65% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticloadbalancing/client.go index 7ea319226..88cce14f9 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticloadbalancing/client.go @@ -1,14 +1,16 @@ -//Package elasticloadbalancing provides gucumber integration tests support. +//Package elasticloadbalancing provides gucumber integration tests suppport. package elasticloadbalancing import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/elb" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@elasticloadbalancing", func() { - World["client"] = elb.New(smoke.Session) + World["client"] = elb.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/elasticloadbalancing.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticloadbalancing/elasticloadbalancing.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/elasticloadbalancing.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elasticloadbalancing/elasticloadbalancing.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elastictranscoder/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elastictranscoder/client.go index f30ea6ef9..0ffc4b769 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elastictranscoder/client.go @@ -1,14 +1,16 @@ -//Package elastictranscoder provides gucumber integration tests support. +//Package elastictranscoder provides gucumber integration tests suppport. package elastictranscoder import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/elastictranscoder" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@elastictranscoder", func() { - World["client"] = elastictranscoder.New(smoke.Session) + World["client"] = elastictranscoder.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/elastictranscoder.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elastictranscoder/elastictranscoder.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/elastictranscoder.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/elastictranscoder/elastictranscoder.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/emr/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/emr/client.go new file mode 100644 index 000000000..1054b95cb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/emr/client.go @@ -0,0 +1,16 @@ +//Package emr provides gucumber integration tests suppport. +package emr + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/emr" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@emr", func() { + World["client"] = emr.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/emr.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/emr/emr.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/emr.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/emr/emr.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/glacier/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/glacier/client.go new file mode 100644 index 000000000..e77cbe57d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/glacier/client.go @@ -0,0 +1,16 @@ +//Package glacier provides gucumber integration tests suppport. +package glacier + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/glacier" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@glacier", func() { + World["client"] = glacier.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/glacier.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/glacier/glacier.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/glacier.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/glacier/glacier.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/iam/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/iam/client.go new file mode 100644 index 000000000..436bee8e9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/iam/client.go @@ -0,0 +1,16 @@ +//Package iam provides gucumber integration tests suppport. +package iam + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/iam" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@iam", func() { + World["client"] = iam.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/iam.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/iam/iam.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/iam.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/iam/iam.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kinesis/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kinesis/client.go new file mode 100644 index 000000000..a6c6448b1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kinesis/client.go @@ -0,0 +1,16 @@ +//Package kinesis provides gucumber integration tests suppport. +package kinesis + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/kinesis" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@kinesis", func() { + World["client"] = kinesis.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/kinesis.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kinesis/kinesis.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/kinesis.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kinesis/kinesis.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kms/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kms/client.go new file mode 100644 index 000000000..d67bddcd5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kms/client.go @@ -0,0 +1,16 @@ +//Package kms provides gucumber integration tests suppport. +package kms + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/kms" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@kms", func() { + World["client"] = kms.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/kms.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kms/kms.feature similarity index 74% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/kms.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kms/kms.feature index ee428abb8..55934c2ba 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/kms.feature +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/kms/kms.feature @@ -9,5 +9,9 @@ Feature: Amazon Key Management Service Scenario: Handling errors When I attempt to call the "GetKeyPolicy" API with: | KeyId | fake-key | - | PolicyName | fakepolicy | + | PolicyName | fake-policy | Then I expect the response error code to be "NotFoundException" + And I expect the response error message to include: + """ + does not exist + """ diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/lambda/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/lambda/client.go new file mode 100644 index 000000000..d58a47ecc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/lambda/client.go @@ -0,0 +1,16 @@ +//Package lambda provides gucumber integration tests suppport. +package lambda + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/lambda" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@lambda", func() { + World["client"] = lambda.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/lambda.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/lambda/lambda.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/lambda.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/lambda/lambda.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/machinelearning/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/machinelearning/client.go index 12ef2e2ae..44667137b 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/machinelearning/client.go @@ -1,14 +1,16 @@ -//Package machinelearning provides gucumber integration tests support. +//Package machinelearning provides gucumber integration tests suppport. package machinelearning import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/machinelearning" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@machinelearning", func() { - World["client"] = machinelearning.New(smoke.Session) + World["client"] = machinelearning.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/machinelearning.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/machinelearning/machinelearning.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/machinelearning.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/machinelearning/machinelearning.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/opsworks/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/opsworks/client.go new file mode 100644 index 000000000..dad8248ef --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/opsworks/client.go @@ -0,0 +1,16 @@ +//Package opsworks provides gucumber integration tests suppport. +package opsworks + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/opsworks" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@opsworks", func() { + World["client"] = opsworks.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/opsworks.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/opsworks/opsworks.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/opsworks.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/opsworks/opsworks.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/rds/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/rds/client.go new file mode 100644 index 000000000..c14165e2b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/rds/client.go @@ -0,0 +1,16 @@ +//Package rds provides gucumber integration tests suppport. +package rds + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/rds" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@rds", func() { + World["client"] = rds.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/rds.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/rds/rds.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/rds.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/rds/rds.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/redshift/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/redshift/client.go new file mode 100644 index 000000000..268d77b25 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/redshift/client.go @@ -0,0 +1,16 @@ +//Package redshift provides gucumber integration tests suppport. +package redshift + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/redshift" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@redshift", func() { + World["client"] = redshift.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/redshift.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/redshift/redshift.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/redshift.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/redshift/redshift.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53/client.go new file mode 100644 index 000000000..7ddb52b3a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53/client.go @@ -0,0 +1,16 @@ +//Package route53 provides gucumber integration tests suppport. +package route53 + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/route53" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@route53", func() { + World["client"] = route53.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/route53.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53/route53.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/route53.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53/route53.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53domains/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53domains/client.go index 612a051b8..e849d2607 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53domains/client.go @@ -1,14 +1,16 @@ -//Package route53domains provides gucumber integration tests support. +//Package route53domains provides gucumber integration tests suppport. package route53domains import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/route53domains" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@route53domains", func() { - World["client"] = route53domains.New(smoke.Session) + World["client"] = route53domains.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/route53domains.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53domains/route53domains.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/route53domains.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/route53domains/route53domains.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ses/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ses/client.go new file mode 100644 index 000000000..706e74a40 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ses/client.go @@ -0,0 +1,16 @@ +//Package ses provides gucumber integration tests suppport. +package ses + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/ses" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@ses", func() { + World["client"] = ses.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/ses.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ses/ses.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/ses.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ses/ses.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sns/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sns/client.go new file mode 100644 index 000000000..8d2aecf65 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sns/client.go @@ -0,0 +1,16 @@ +//Package sns provides gucumber integration tests suppport. +package sns + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/sns" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@sns", func() { + World["client"] = sns.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/sns.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sns/sns.feature similarity index 72% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/sns.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sns/sns.feature index 76f6a16da..15667e9a7 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/sns.feature +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sns/sns.feature @@ -11,4 +11,7 @@ Feature: Amazon Simple Notification Service | Message | hello | | TopicArn | fake_topic | Then I expect the response error code to be "InvalidParameter" - And I expect the response error message not be empty + And I expect the response error message to include: + """ + Invalid parameter: TopicArn Reason: fake_topic does not start with arn + """ diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sqs/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sqs/client.go new file mode 100644 index 000000000..a4ed38ea8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sqs/client.go @@ -0,0 +1,16 @@ +//Package sqs provides gucumber integration tests suppport. +package sqs + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/sqs" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@sqs", func() { + World["client"] = sqs.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/sqs.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sqs/sqs.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/sqs.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sqs/sqs.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ssm/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ssm/client.go new file mode 100644 index 000000000..d7749eddb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ssm/client.go @@ -0,0 +1,16 @@ +//Package ssm provides gucumber integration tests suppport. +package ssm + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/ssm" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@ssm", func() { + World["client"] = ssm.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/ssm.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ssm/ssm.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/ssm.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/ssm/ssm.feature diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/storagegateway/client.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/client.go rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/storagegateway/client.go index a3ff138bf..587fb7485 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/client.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/storagegateway/client.go @@ -1,14 +1,16 @@ -//Package storagegateway provides gucumber integration tests support. +//Package storagegateway provides gucumber integration tests suppport. package storagegateway import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" + "github.com/aws/aws-sdk-go/internal/features/shared" "github.com/aws/aws-sdk-go/service/storagegateway" . "github.com/lsegal/gucumber" ) +var _ = shared.Imported + func init() { Before("@storagegateway", func() { - World["client"] = storagegateway.New(smoke.Session) + World["client"] = storagegateway.New(nil) }) } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/storagegateway.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/storagegateway/storagegateway.feature similarity index 72% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/storagegateway.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/storagegateway/storagegateway.feature index ef96eed98..d64dd0749 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/storagegateway.feature +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/storagegateway/storagegateway.feature @@ -9,8 +9,8 @@ Feature: AWS Storage Gateway Scenario: Handling errors When I attempt to call the "ListVolumes" API with: | GatewayARN | fake_gateway | - Then I expect the response error code to be "InvalidParameter" + Then I expect the response error code to be "ValidationException" And I expect the response error message to include: """ - GatewayARN + Value 'fake_gateway' at 'gatewayARN' failed to satisfy constraint """ diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sts/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sts/client.go new file mode 100644 index 000000000..ad8f83caf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sts/client.go @@ -0,0 +1,16 @@ +//Package sts provides gucumber integration tests suppport. +package sts + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/sts" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@sts", func() { + World["client"] = sts.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/sts.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sts/sts.feature similarity index 75% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/sts.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sts/sts.feature index 9caf1fa02..737b7bcd9 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/sts.feature +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/sts/sts.feature @@ -10,8 +10,8 @@ Feature: AWS STS When I attempt to call the "GetFederationToken" API with: | Name | temp | | Policy | | - Then I expect the response error code to be "InvalidParameter" + Then I expect the response error code to be "ValidationError" And I expect the response error message to include: """ - Policy + Value '' at 'policy' failed to satisfy constraint """ diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/support/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/support/client.go new file mode 100644 index 000000000..c7aebbc9c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/support/client.go @@ -0,0 +1,16 @@ +//Package support provides gucumber integration tests suppport. +package support + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/support" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@support", func() { + World["client"] = support.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/support.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/support/support.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/support.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/support/support.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/swf/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/swf/client.go new file mode 100644 index 000000000..fcc0f5bce --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/swf/client.go @@ -0,0 +1,16 @@ +//Package swf provides gucumber integration tests suppport. +package swf + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/swf" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@swf", func() { + World["client"] = swf.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/swf.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/swf/swf.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/swf.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/swf/swf.feature diff --git a/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/workspaces/client.go b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/workspaces/client.go new file mode 100644 index 000000000..40db12c56 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/workspaces/client.go @@ -0,0 +1,16 @@ +//Package workspaces provides gucumber integration tests suppport. +package workspaces + +import ( + "github.com/aws/aws-sdk-go/internal/features/shared" + "github.com/aws/aws-sdk-go/service/workspaces" + . "github.com/lsegal/gucumber" +) + +var _ = shared.Imported + +func init() { + Before("@workspaces", func() { + World["client"] = workspaces.New(nil) + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/workspaces.feature b/vendor/github.com/aws/aws-sdk-go/internal/features/smoke/workspaces/workspaces.feature similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/workspaces.feature rename to vendor/github.com/aws/aws-sdk-go/internal/features/smoke/workspaces/workspaces.feature diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/param_filler.go b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/helpers/param_filler.go similarity index 81% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/param_filler.go rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/helpers/param_filler.go index 0c987629d..8faad3dac 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/param_filler.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/helpers/param_filler.go @@ -1,12 +1,14 @@ -package api +// Package helpers provides parameter filtering utilities. +package helpers import ( "fmt" "reflect" "strings" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/util" + "github.com/aws/aws-sdk-go/internal/model/api" + "github.com/aws/aws-sdk-go/internal/util" + "github.com/aws/aws-sdk-go/internal/util/utilsort" ) // A paramFiller provides string formatting for a shape and its types. @@ -15,7 +17,7 @@ type paramFiller struct { } // typeName returns the type name of a shape. -func (f paramFiller) typeName(shape *Shape) string { +func (f paramFiller) typeName(shape *api.Shape) string { if f.prefixPackageName && shape.Type == "structure" { return "*" + shape.API.PackageName() + "." + shape.GoTypeElem() } @@ -23,13 +25,13 @@ func (f paramFiller) typeName(shape *Shape) string { } // ParamsStructFromJSON returns a JSON string representation of a structure. -func ParamsStructFromJSON(value interface{}, shape *Shape, prefixPackageName bool) string { +func ParamsStructFromJSON(value interface{}, shape *api.Shape, prefixPackageName bool) string { f := paramFiller{prefixPackageName: prefixPackageName} return util.GoFmt(f.paramsStructAny(value, shape)) } // paramsStructAny returns the string representation of any value. -func (f paramFiller) paramsStructAny(value interface{}, shape *Shape) string { +func (f paramFiller) paramsStructAny(value interface{}, shape *api.Shape) string { if value == nil { return "" } @@ -85,11 +87,11 @@ func (f paramFiller) paramsStructAny(value interface{}, shape *Shape) string { } // paramsStructStruct returns the string representation of a structure -func (f paramFiller) paramsStructStruct(value map[string]interface{}, shape *Shape) string { +func (f paramFiller) paramsStructStruct(value map[string]interface{}, shape *api.Shape) string { out := "&" + f.typeName(shape)[1:] + "{\n" for _, n := range shape.MemberNames() { ref := shape.MemberRefs[n] - name := findParamMember(value, n) + name := findMember(value, n) if val := f.paramsStructAny(value[name], ref.Shape); val != "" { out += fmt.Sprintf("%s: %s,\n", n, val) @@ -100,9 +102,9 @@ func (f paramFiller) paramsStructStruct(value map[string]interface{}, shape *Sha } // paramsStructMap returns the string representation of a map of values -func (f paramFiller) paramsStructMap(value map[string]interface{}, shape *Shape) string { +func (f paramFiller) paramsStructMap(value map[string]interface{}, shape *api.Shape) string { out := f.typeName(shape) + "{\n" - keys := awstesting.SortedKeys(value) + keys := utilsort.SortedKeys(value) for _, k := range keys { v := value[k] out += fmt.Sprintf("%q: %s,\n", k, f.paramsStructAny(v, shape.ValueRef.Shape)) @@ -112,7 +114,7 @@ func (f paramFiller) paramsStructMap(value map[string]interface{}, shape *Shape) } // paramsStructList returns the string representation of slice of values -func (f paramFiller) paramsStructList(value []interface{}, shape *Shape) string { +func (f paramFiller) paramsStructList(value []interface{}, shape *api.Shape) string { out := f.typeName(shape) + "{\n" for _, v := range value { out += fmt.Sprintf("%s,\n", f.paramsStructAny(v, shape.MemberRef.Shape)) @@ -121,8 +123,8 @@ func (f paramFiller) paramsStructList(value []interface{}, shape *Shape) string return out } -// findParamMember searches a map for a key ignoring case. Returns the map key if found. -func findParamMember(value map[string]interface{}, key string) string { +// findMember searches a map for a key ignoring case. Returns the map key if found. +func findMember(value map[string]interface{}, key string) string { for actualKey := range value { if strings.ToLower(key) == strings.ToLower(actualKey) { return actualKey diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/generate.go b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/generate.go similarity index 58% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/generate.go rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/generate.go index f99815efb..7c490d4d0 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/generate.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/generate.go @@ -7,30 +7,22 @@ import ( "net/url" "os" "os/exec" - "reflect" "regexp" "sort" "strconv" "strings" "text/template" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/model/api" - "github.com/aws/aws-sdk-go/private/util" -) - -// TestSuiteTypeInput input test -// TestSuiteTypeInput output test -const ( - TestSuiteTypeInput = iota - TestSuiteTypeOutput + "github.com/aws/aws-sdk-go/internal/fixtures/helpers" + "github.com/aws/aws-sdk-go/internal/model/api" + "github.com/aws/aws-sdk-go/internal/util" + "github.com/aws/aws-sdk-go/internal/util/utilassert" ) type testSuite struct { *api.API Description string Cases []testCase - Type uint title string } @@ -61,12 +53,6 @@ var _ = ioutil.Discard var _ = util.Trim("") var _ = url.Values{} var _ = io.EOF -var _ = aws.String -var _ = fmt.Println - -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} ` var reStripSpace = regexp.MustCompile(`\s(\w)`) @@ -81,7 +67,6 @@ var extraImports = []string{ "bytes", "encoding/json", "encoding/xml", - "fmt", "io", "io/ioutil", "net/http", @@ -89,11 +74,8 @@ var extraImports = []string{ "time", "net/url", "", - "github.com/aws/aws-sdk-go/awstesting", - "github.com/aws/aws-sdk-go/aws/session", - "github.com/aws/aws-sdk-go/private/protocol", - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil", - "github.com/aws/aws-sdk-go/private/util", + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil", + "github.com/aws/aws-sdk-go/internal/util", "github.com/stretchr/testify/assert", } @@ -126,10 +108,11 @@ func (t *testSuite) TestSuite() string { var tplInputTestCase = template.Must(template.New("inputcase").Parse(` func Test{{ .OpName }}(t *testing.T) { - sess := session.New() - svc := New{{ .TestCase.TestSuite.API.StructName }}(sess, &aws.Config{Endpoint: aws.String("https://test")}) - {{ if ne .ParamsString "" }}input := {{ .ParamsString }} - req, _ := svc.{{ .TestCase.Given.ExportedName }}Request(input){{ else }}req, _ := svc.{{ .TestCase.Given.ExportedName }}Request(nil){{ end }} + svc := New{{ .TestCase.TestSuite.API.StructName }}(nil) + svc.Endpoint = "https://test" + + input := {{ .ParamsString }} + req, _ := svc.{{ .TestCase.Given.ExportedName }}Request(input) r := req.HTTPRequest // build request @@ -141,7 +124,7 @@ func Test{{ .OpName }}(t *testing.T) { {{ .BodyAssertions }}{{ end }} {{ if ne .TestCase.InputTest.URI "" }}// assert URL - awstesting.AssertURL(t, "https://test{{ .TestCase.InputTest.URI }}", r.URL.String()){{ end }} + assert.Equal(t, "https://test{{ .TestCase.InputTest.URI }}", r.URL.String()){{ end }} // assert headers {{ range $k, $v := .TestCase.InputTest.Headers }}assert.Equal(t, "{{ $v }}", r.Header.Get("{{ $k }}")) @@ -155,51 +138,21 @@ type tplInputTestCaseData struct { } func (t tplInputTestCaseData) BodyAssertions() string { - code := &bytes.Buffer{} - protocol := t.TestCase.TestSuite.API.Metadata.Protocol - - // Extract the body bytes + protocol, code := t.TestCase.TestSuite.API.Metadata.Protocol, "" switch protocol { case "rest-xml": - fmt.Fprintln(code, "body := util.SortXML(r.Body)") + code += "body := util.SortXML(r.Body)\n" default: - fmt.Fprintln(code, "body, _ := ioutil.ReadAll(r.Body)") + code += "body, _ := ioutil.ReadAll(r.Body)\n" } - // Generate the body verification code - expectedBody := util.Trim(t.TestCase.InputTest.Body) - switch protocol { - case "ec2", "query": - fmt.Fprintf(code, "awstesting.AssertQuery(t, `%s`, util.Trim(string(body)))", - expectedBody) - case "rest-xml": - if strings.HasPrefix(expectedBody, "<") { - fmt.Fprintf(code, "awstesting.AssertXML(t, `%s`, util.Trim(string(body)), %s{})", - expectedBody, t.TestCase.Given.InputRef.ShapeName) - } else { - fmt.Fprintf(code, "assert.Equal(t, `%s`, util.Trim(string(body)))", - expectedBody) - } - case "json", "jsonrpc", "rest-json": - if strings.HasPrefix(expectedBody, "{") { - fmt.Fprintf(code, "awstesting.AssertJSON(t, `%s`, util.Trim(string(body)))", - expectedBody) - } else { - fmt.Fprintf(code, "assert.Equal(t, `%s`, util.Trim(string(body)))", - expectedBody) - } - default: - fmt.Fprintf(code, "assert.Equal(t, `%s`, util.Trim(string(body)))", - expectedBody) - } - - return code.String() + code += "assert.Equal(t, util.Trim(`" + t.TestCase.InputTest.Body + "`), util.Trim(string(body)))" + return code } var tplOutputTestCase = template.Must(template.New("outputcase").Parse(` func Test{{ .OpName }}(t *testing.T) { - sess := session.New() - svc := New{{ .TestCase.TestSuite.API.StructName }}(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := New{{ .TestCase.TestSuite.API.StructName }}(nil) buf := bytes.NewReader([]byte({{ .Body }})) req, out := svc.{{ .TestCase.Given.ExportedName }}Request(nil) @@ -230,7 +183,7 @@ func (i *testCase) TestCase(idx int) string { opName := i.TestSuite.API.StructName() + i.TestSuite.title + "Case" + strconv.Itoa(idx+1) - if i.TestSuite.Type == TestSuiteTypeInput { // input test + if i.Params != nil { // input test // query test should sort body as form encoded values switch i.TestSuite.API.Metadata.Protocol { case "query", "ec2": @@ -245,18 +198,18 @@ func (i *testCase) TestCase(idx int) string { input := tplInputTestCaseData{ TestCase: i, OpName: strings.ToUpper(opName[0:1]) + opName[1:], - ParamsString: api.ParamsStructFromJSON(i.Params, i.Given.InputRef.Shape, false), + ParamsString: helpers.ParamsStructFromJSON(i.Params, i.Given.InputRef.Shape, false), } if err := tplInputTestCase.Execute(&buf, input); err != nil { panic(err) } - } else if i.TestSuite.Type == TestSuiteTypeOutput { + } else { output := tplOutputTestCaseData{ TestCase: i, Body: fmt.Sprintf("%q", i.OutputTest.Body), OpName: strings.ToUpper(opName[0:1]) + opName[1:], - Assertions: GenerateAssertions(i.Data, i.Given.OutputRef.Shape, "out"), + Assertions: utilassert.GenerateAssertions(i.Data, i.Given.OutputRef.Shape, "out"), } if err := tplOutputTestCase.Execute(&buf, output); err != nil { @@ -301,10 +254,9 @@ func generateTestSuite(filename string) string { suite.API.Operations[c.Given.ExportedName] = c.Given } - suite.Type = getType(inout) - suite.API.NoInitMethods = true // don't generate init methods - suite.API.NoStringerMethods = true // don't generate stringer methods - suite.API.NoConstServiceNames = true // don't generate service names + suite.API.NoInflections = true // don't require inflections + suite.API.NoInitMethods = true // don't generate init methods + suite.API.NoStringerMethods = true // don't generate stringer methods suite.API.Setup() suite.API.Metadata.EndpointPrefix = suite.API.PackageName() @@ -327,8 +279,6 @@ func generateTestSuite(filename string) string { } svcCode = removeImports(svcCode) svcCode = strings.Replace(svcCode, "func New(", "func New"+suite.API.StructName()+"(", -1) - svcCode = strings.Replace(svcCode, "func newClient(", "func new"+suite.API.StructName()+"Client(", -1) - svcCode = strings.Replace(svcCode, "return newClient(", "return new"+suite.API.StructName()+"Client(", -1) buf.WriteString(svcCode + "\n\n") apiCode := removeImports(suite.API.APIGoCode()) @@ -343,75 +293,6 @@ func generateTestSuite(filename string) string { return buf.String() + innerBuf.String() } -// findMember searches the shape for the member with the matching key name. -func findMember(shape *api.Shape, key string) string { - for actualKey := range shape.MemberRefs { - if strings.ToLower(key) == strings.ToLower(actualKey) { - return actualKey - } - } - return "" -} - -// GenerateAssertions builds assertions for a shape based on its type. -// -// The shape's recursive values also will have assertions generated for them. -func GenerateAssertions(out interface{}, shape *api.Shape, prefix string) string { - switch t := out.(type) { - case map[string]interface{}: - keys := awstesting.SortedKeys(t) - - code := "" - if shape.Type == "map" { - for _, k := range keys { - v := t[k] - s := shape.ValueRef.Shape - code += GenerateAssertions(v, s, prefix+"[\""+k+"\"]") - } - } else { - for _, k := range keys { - v := t[k] - m := findMember(shape, k) - s := shape.MemberRefs[m].Shape - code += GenerateAssertions(v, s, prefix+"."+m+"") - } - } - return code - case []interface{}: - code := "" - for i, v := range t { - s := shape.MemberRef.Shape - code += GenerateAssertions(v, s, prefix+"["+strconv.Itoa(i)+"]") - } - return code - default: - switch shape.Type { - case "timestamp": - return fmt.Sprintf("assert.Equal(t, time.Unix(%#v, 0).UTC().String(), %s.String())\n", out, prefix) - case "blob": - return fmt.Sprintf("assert.Equal(t, %#v, string(%s))\n", out, prefix) - case "integer", "long": - return fmt.Sprintf("assert.Equal(t, int64(%#v), *%s)\n", out, prefix) - default: - if !reflect.ValueOf(out).IsValid() { - return fmt.Sprintf("assert.Nil(t, %s)\n", prefix) - } - return fmt.Sprintf("assert.Equal(t, %#v, *%s)\n", out, prefix) - } - } -} - -func getType(t string) uint { - switch t { - case "Input": - return TestSuiteTypeInput - case "Output": - return TestSuiteTypeOutput - default: - panic("Invalid type for test suite") - } -} - func main() { out := generateTestSuite(os.Args[1]) if len(os.Args) == 3 { diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/ec2.json b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/ec2.json similarity index 85% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/ec2.json rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/ec2.json index 046626eab..84655834f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/ec2.json +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/ec2.json @@ -356,67 +356,5 @@ } } ] - }, - { - "description": "Idempotency token auto fill", - "metadata": { - "protocol": "ec2", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "Token": { - "shape": "StringType", - "idempotencyToken": true - } - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - "Token": "abc123" - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "Token=abc123" - } - }, - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "Token=00000000-0000-4000-8000-000000000000" - } - } - ] } ] diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/json.json b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/json.json similarity index 88% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/json.json rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/json.json index 32d734efb..7fa6e1f1b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/json.json +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/json.json @@ -417,7 +417,7 @@ "X-Amz-Target": "com.amazonaws.foo.OperationName", "Content-Type": "application/x-amz-json-1.1" }, - "body": "{\"RecursiveStruct\": {\"RecursiveMap\": {\"foo\": {\"NoRecurse\": \"foo\"}, \"bar\": {\"NoRecurse\": \"bar\"}}}}" + "body": "{\"RecursiveStruct\": {\"RecursiveMap\": {\"bar\": {\"NoRecurse\": \"bar\"}, \"foo\": {\"NoRecurse\": \"foo\"}}}}" } } ] @@ -475,67 +475,5 @@ } } ] - }, - { - "description": "Idempotency token auto fill", - "metadata": { - "protocol": "json", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "Token": { - "shape": "StringType", - "idempotencyToken": true - } - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - "Token": "abc123" - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "{\"Token\": \"abc123\"}" - } - }, - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "{\"Token\": \"00000000-0000-4000-8000-000000000000\"}" - } - } - ] } ] diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/query.json b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/query.json similarity index 65% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/query.json rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/query.json index 971b7ee61..9ae2195dc 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/query.json +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/query.json @@ -14,17 +14,11 @@ }, "Bar": { "shape": "StringType" - }, - "Baz": { - "shape": "BooleanType" } } }, "StringType": { "type": "string" - }, - "BooleanType": { - "type": "boolean" } }, "cases": [ @@ -43,36 +37,6 @@ "uri": "/", "body": "Action=OperationName&Version=2014-01-01&Foo=val1&Bar=val2" } - }, - { - "given": { - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "Baz": true - }, - "serialized": { - "uri": "/", - "body": "Action=OperationName&Version=2014-01-01&Baz=true" - } - }, - { - "given": { - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "Baz": false - }, - "serialized": { - "uri": "/", - "body": "Action=OperationName&Version=2014-01-01&Baz=false" - } } ] }, @@ -167,21 +131,6 @@ "uri": "/", "body": "Action=OperationName&Version=2014-01-01&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz" } - }, - { - "given": { - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "ListArg": [] - }, - "serialized": { - "uri": "/", - "body": "Action=OperationName&Version=2014-01-01&ListArg=" - } } ] }, @@ -200,9 +149,6 @@ }, "ListArg": { "shape": "ListType" - }, - "NamedListArg": { - "shape": "NamedListType" } } }, @@ -213,14 +159,6 @@ }, "flattened": true }, - "NamedListType": { - "type": "list", - "member": { - "shape": "StringType", - "locationName": "Foo" - }, - "flattened": true - }, "StringType": { "type": "string" } @@ -245,121 +183,6 @@ "uri": "/", "body": "Action=OperationName&Version=2014-01-01&ScalarArg=foo&ListArg.1=a&ListArg.2=b&ListArg.3=c" } - }, - { - "given": { - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "NamedListArg": [ - "a" - ] - }, - "serialized": { - "uri": "/", - "body": "Action=OperationName&Version=2014-01-01&Foo.1=a" - } - } - ] - }, - { - "description": "Serialize flattened map type", - "metadata": { - "protocol": "query", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "MapArg": { - "shape": "StringMap" - } - } - }, - "StringMap": { - "type": "map", - "key": { - "shape": "StringType" - }, - "value": { - "shape": "StringType" - }, - "flattened": true - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "MapArg": { - "key1": "val1", - "key2": "val2" - } - }, - "serialized": { - "uri": "/", - "body": "Action=OperationName&Version=2014-01-01&MapArg.1.key=key1&MapArg.1.value=val1&MapArg.2.key=key2&MapArg.2.value=val2" - } - } - ] - }, - { - "description": "Non flattened list with LocationName", - "metadata": { - "protocol": "query", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "ListArg": { - "shape": "ListType" - } - } - }, - "ListType": { - "type": "list", - "member": { - "shape": "StringType", - "locationName": "item" - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "ListArg": [ - "a", - "b", - "c" - ] - }, - "serialized": { - "uri": "/", - "body": "Action=OperationName&Version=2014-01-01&ListArg.item.1=a&ListArg.item.2=b&ListArg.item.3=c" - } } ] }, @@ -465,57 +288,6 @@ } ] }, - { - "description": "Serialize map type with locationName", - "metadata": { - "protocol": "query", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "MapArg": { - "shape": "StringMap" - } - } - }, - "StringMap": { - "type": "map", - "key": { - "shape": "StringType", - "locationName": "TheKey" - }, - "value": { - "shape": "StringType", - "locationName": "TheValue" - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "MapArg": { - "key1": "val1", - "key2": "val2" - } - }, - "serialized": { - "uri": "/", - "body": "Action=OperationName&Version=2014-01-01&MapArg.entry.1.TheKey=key1&MapArg.entry.1.TheValue=val1&MapArg.entry.2.TheKey=key2&MapArg.entry.2.TheValue=val2" - } - } - ] - }, { "description": "Base64 encoded Blobs", "metadata": { @@ -772,69 +544,7 @@ }, "serialized": { "uri": "/", - "body": "Action=OperationName&Version=2014-01-01&RecursiveStruct.RecursiveMap.entry.1.key=foo&RecursiveStruct.RecursiveMap.entry.1.value.NoRecurse=foo&RecursiveStruct.RecursiveMap.entry.2.key=bar&RecursiveStruct.RecursiveMap.entry.2.value.NoRecurse=bar" - } - } - ] - }, - { - "description": "Idempotency token auto fill", - "metadata": { - "protocol": "query", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "Token": { - "shape": "StringType", - "idempotencyToken": true - } - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - "Token": "abc123" - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "Token=abc123" - } - }, - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "Token=00000000-0000-4000-8000-000000000000" + "body": "Action=OperationName&Version=2014-01-01&RecursiveStruct.RecursiveMap.entry.1.key=bar&RecursiveStruct.RecursiveMap.entry.1.value.NoRecurse=bar&RecursiveStruct.RecursiveMap.entry.2.key=foo&RecursiveStruct.RecursiveMap.entry.2.value.NoRecurse=foo" } } ] diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-json.json b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/rest-json.json similarity index 71% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-json.json rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/rest-json.json index 01d6ab217..1d0544d93 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-json.json +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/rest-json.json @@ -1,28 +1,4 @@ [ - { - "description": "No parameters", - "metadata": { - "protocol": "rest-json", - "apiVersion": "2014-01-01" - }, - "shapes": {}, - "cases": [ - { - "given": { - "http": { - "method": "GET", - "requestUri": "/2014-01-01/jobs" - }, - "name": "OperationName" - }, - "serialized": { - "body": "", - "uri": "/2014-01-01/jobs", - "headers": {} - } - } - ] - }, { "description": "URI parameter only with no location name", "metadata": { @@ -110,182 +86,6 @@ } ] }, - { - "description": "Querystring list of strings", - "metadata": { - "protocol": "rest-json", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "Items": { - "shape": "StringList", - "location": "querystring", - "locationName": "item" - } - } - }, - "StringList": { - "type": "list", - "member": { - "shape": "String" - } - }, - "String": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "http": { - "method": "GET", - "requestUri": "/path" - }, - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "Items": ["value1", "value2"] - }, - "serialized": { - "body": "", - "uri": "/path?item=value1&item=value2", - "headers": {} - } - } - ] - }, - { - "description": "String to string maps in querystring", - "metadata": { - "protocol": "rest-json", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "PipelineId": { - "shape": "StringType", - "location": "uri" - }, - "QueryDoc": { - "shape": "MapStringStringType", - "location": "querystring" - } - } - }, - "MapStringStringType": { - "type": "map", - "key": { - "shape": "StringType" - }, - "value": { - "shape": "StringType" - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "http": { - "method": "GET", - "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}" - }, - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "PipelineId": "foo", - "QueryDoc": { - "bar": "baz", - "fizz": "buzz" - } - }, - "serialized": { - "body": "", - "uri": "/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz", - "headers": {} - } - } - ] - }, - { - "description": "String to string list maps in querystring", - "metadata": { - "protocol": "rest-json", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "PipelineId": { - "shape": "StringType", - "location": "uri" - }, - "QueryDoc": { - "shape": "MapStringStringListType", - "location": "querystring" - } - } - }, - "MapStringStringListType": { - "type": "map", - "key": { - "shape": "StringType" - }, - "value": { - "shape": "StringListType" - } - }, - "StringListType": { - "type": "list", - "member": { - "shape": "StringType" - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "http": { - "method": "GET", - "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}" - }, - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "PipelineId": "id", - "QueryDoc": { - "foo": ["bar", "baz"], - "fizz": ["buzz", "pop"] - } - }, - "serialized": { - "body": "", - "uri": "/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop", - "headers": {} - } - } - ] - }, { "description": "URI parameter and querystring params", "metadata": { @@ -563,7 +363,7 @@ ] }, { - "description": "Serialize blobs in body", + "description": "String payload", "metadata": { "protocol": "rest-json", "apiVersion": "2014-01-01" @@ -572,48 +372,40 @@ "InputShape": { "type": "structure", "members": { - "Foo": { - "shape": "StringType", - "location": "uri", - "locationName": "Foo" - }, - "Bar": {"shape": "BlobType"} - }, - "required": [ - "Foo" - ] + "foo": { + "shape": "FooShape" + } + } }, - "StringType": { + "FooShape": { "type": "string" - }, - "BlobType": { - "type": "blob" } }, "cases": [ { "given": { "http": { - "method": "GET", - "requestUri": "/2014-01-01/{Foo}" + "method": "POST", + "requestUri": "/" }, "input": { - "shape": "InputShape" + "shape": "InputShape", + "payload": "foo" }, "name": "OperationName" }, "params": { - "Foo": "foo_name", - "Bar": "Blob param" + "foo": "bar" }, "serialized": { - "body": "{\"Bar\": \"QmxvYiBwYXJhbQ==\"}", - "uri": "/2014-01-01/foo_name" + "method": "POST", + "body": "bar", + "uri": "/" } } ] }, - { + { "description": "Blob payload", "metadata": { "protocol": "rest-json", @@ -1017,7 +809,7 @@ "serialized": { "uri": "/path", "headers": {}, - "body": "{\"RecursiveStruct\": {\"RecursiveMap\": {\"foo\": {\"NoRecurse\": \"foo\"}, \"bar\": {\"NoRecurse\": \"bar\"}}}}" + "body": "{\"RecursiveStruct\": {\"RecursiveMap\": {\"bar\": {\"NoRecurse\": \"bar\"}, \"foo\": {\"NoRecurse\": \"foo\"}}}}" } } ] @@ -1088,153 +880,5 @@ } } ] - }, - { - "description": "Named locations in JSON body", - "metadata": { - "protocol": "rest-json", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "TimeArg": { - "shape": "TimestampType", - "locationName": "timestamp_location" - } - } - }, - "TimestampType": { - "type": "timestamp" - } - }, - "cases": [ - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - "TimeArg": 1422172800 - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "{\"timestamp_location\": 1422172800}" - } - } - ] - }, - { - "description": "String payload", - "metadata": { - "protocol": "rest-json", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "foo": { - "shape": "FooShape" - } - } - }, - "FooShape": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { - "shape": "InputShape", - "payload": "foo" - }, - "name": "OperationName" - }, - "params": { - "foo": "bar" - }, - "serialized": { - "method": "POST", - "body": "bar", - "uri": "/" - } - } - ] - }, - { - "description": "Idempotency token auto fill", - "metadata": { - "protocol": "rest-json", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "Token": { - "shape": "StringType", - "idempotencyToken": true - } - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - "Token": "abc123" - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "{\"Token\": \"abc123\"}" - } - }, - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "{\"Token\": \"00000000-0000-4000-8000-000000000000\"}" - } - } - ] } ] diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-xml.json b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/rest-xml.json similarity index 80% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-xml.json rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/rest-xml.json index ad3f30441..409943783 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/input/rest-xml.json +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/input/rest-xml.json @@ -69,22 +69,6 @@ "uri": "/2014-01-01/hostedzone", "headers": {} } - }, - { - "given": { - "http": { - "method": "GET", - "requestUri": "/2014-01-01/hostedzone" - }, - "name": "OperationName" - }, - "params": {}, - "serialized": { - "method": "GET", - "body": "", - "uri": "/2014-01-01/hostedzone", - "headers": {} - } } ] }, @@ -211,33 +195,6 @@ "uri": "/2014-01-01/hostedzone", "headers": {} } - }, - { - "given": { - "http": { - "method": "POST", - "requestUri": "/2014-01-01/hostedzone" - }, - "input": { - "shape": "InputShape", - "locationName": "OperationRequest", - "xmlNamespace": {"uri": "https://foo/"} - }, - "name": "OperationName" - }, - "params": { - "SubStructure": { - "Foo": "a", - "Bar": null - }, - "Description": "baz" - }, - "serialized": { - "method": "POST", - "body": "abaz", - "uri": "/2014-01-01/hostedzone", - "headers": {} - } } ] }, @@ -722,183 +679,6 @@ } ] }, - { - "description": "Querystring list of strings", - "metadata": { - "protocol": "rest-xml", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "Items": { - "shape": "StringList", - "location": "querystring", - "locationName": "item" - } - } - }, - "StringList": { - "type": "list", - "member": { - "shape": "String" - } - }, - "String": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "http": { - "method": "GET", - "requestUri": "/path" - }, - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "Items": ["value1", "value2"] - }, - "serialized": { - "body": "", - "uri": "/path?item=value1&item=value2", - "headers": {} - } - } - ] - }, - { - "description": "String to string maps in querystring", - "metadata": { - "protocol": "rest-xml", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "PipelineId": { - "shape": "StringType", - "location": "uri" - }, - "QueryDoc": { - "shape": "MapStringStringType", - "location": "querystring" - } - } - }, - "MapStringStringType": { - "type": "map", - "key": { - "shape": "StringType" - }, - "value": { - "shape": "StringType" - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "http": { - "method": "GET", - "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}" - }, - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "PipelineId": "foo", - "QueryDoc": { - "bar": "baz", - "fizz": "buzz" - } - }, - "serialized": { - "body": "", - "uri": "/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz", - "headers": {} - } - } - ] - }, - { - "description": "String to string list maps in querystring", - "metadata": { - "protocol": "rest-xml", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "PipelineId": { - "shape": "StringType", - "location": "uri" - }, - "QueryDoc": { - "shape": "MapStringStringListType", - "location": "querystring" - } - } - }, - "MapStringStringListType": { - "type": "map", - "key": { - "shape": "StringType" - }, - "value": { - "shape": "StringListType" - } - }, - "StringListType": { - "type": "list", - "member": { - "shape": "StringType" - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "http": { - "method": "GET", - "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}" - }, - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "PipelineId": "id", - "QueryDoc": { - "foo": ["bar", "baz"], - "fizz": ["buzz", "pop"] - } - }, - "serialized": { - "body": "", - "uri": "/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop", - "headers": {} - } - } - ] - }, - { "description": "String payload", "metadata": { @@ -912,8 +692,7 @@ "foo": { "shape": "FooShape" } - }, - "payload": "foo" + } }, "FooShape": { "type": "string" @@ -927,7 +706,8 @@ "requestUri": "/" }, "input": { - "shape": "InputShape" + "shape": "InputShape", + "payload": "foo" }, "name": "OperationName" }, @@ -955,8 +735,7 @@ "foo": { "shape": "FooShape" } - }, - "payload": "foo" + } }, "FooShape": { "type": "blob" @@ -970,7 +749,8 @@ "requestUri": "/" }, "input": { - "shape": "InputShape" + "shape": "InputShape", + "payload": "foo" }, "name": "OperationName" }, @@ -990,7 +770,8 @@ "requestUri": "/" }, "input": { - "shape": "InputShape" + "shape": "InputShape", + "payload": "foo" }, "name": "OperationName" }, @@ -1017,8 +798,7 @@ "foo": { "shape": "FooShape" } - }, - "payload": "foo" + } }, "FooShape": { "locationName": "foo", @@ -1041,7 +821,8 @@ "requestUri": "/" }, "input": { - "shape": "InputShape" + "shape": "InputShape", + "payload": "foo" }, "name": "OperationName" }, @@ -1063,7 +844,8 @@ "requestUri": "/" }, "input": { - "shape": "InputShape" + "shape": "InputShape", + "payload": "foo" }, "name": "OperationName" }, @@ -1073,46 +855,6 @@ "body": "", "uri": "/" } - }, - { - "given": { - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "foo": {} - }, - "serialized": { - "method": "POST", - "body": "", - "uri": "/" - } - }, - { - "given": { - "http": { - "method": "POST", - "requestUri": "/" - }, - "input": { - "shape": "InputShape" - }, - "name": "OperationName" - }, - "params": { - "foo": null - }, - "serialized": { - "method": "POST", - "body": "", - "uri": "/" - } } ] }, @@ -1129,8 +871,7 @@ "Grant": { "shape": "Grant" } - }, - "payload": "Grant" + } }, "Grant": { "type": "structure", @@ -1173,7 +914,8 @@ "requestUri": "/" }, "input": { - "shape": "InputShape" + "shape": "InputShape", + "payload": "Grant" }, "name": "OperationName" }, @@ -1518,7 +1260,7 @@ }, "serialized": { "uri": "/path", - "body": "foofoobarbar" + "body": "barbarfoofoo" } } ] @@ -1567,67 +1309,5 @@ } } ] - }, - { - "description": "Idempotency token auto fill", - "metadata": { - "protocol": "rest-xml", - "apiVersion": "2014-01-01" - }, - "shapes": { - "InputShape": { - "type": "structure", - "members": { - "Token": { - "shape": "StringType", - "idempotencyToken": true - } - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - "Token": "abc123" - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "abc123" - } - }, - { - "given": { - "input": { - "shape": "InputShape" - }, - "http": { - "method": "POST", - "requestUri": "/path" - }, - "name": "OperationName" - }, - "params": { - }, - "serialized": { - "uri": "/path", - "headers": {}, - "body": "00000000-0000-4000-8000-000000000000" - } - } - ] } ] diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/ec2.json b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/ec2.json similarity index 92% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/ec2.json rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/ec2.json index 5b76bf5fd..a85607a65 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/ec2.json +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/ec2.json @@ -413,42 +413,5 @@ } } ] - }, - { - "description": "Empty string", - "metadata": { - "protocol": "ec2" - }, - "shapes": { - "OutputShape": { - "type": "structure", - "members": { - "Foo": { - "shape": "StringType" - } - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "output": { - "shape": "OutputShape" - }, - "name": "OperationName" - }, - "result": { - "Foo": "" - }, - "response": { - "status_code": 200, - "headers": {}, - "body": "requestid" - } - } - ] } ] diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/json.json b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/json.json similarity index 84% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/json.json rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/json.json index 17777f5de..8b48b0287 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/json.json +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/json.json @@ -195,12 +195,6 @@ "members": { "ListMember": { "shape": "ListType" - }, - "ListMemberMap": { - "shape": "ListTypeMap" - }, - "ListMemberStruct": { - "shape": "ListTypeStruct" } } }, @@ -210,30 +204,8 @@ "shape": "StringType" } }, - "ListTypeMap": { - "type": "list", - "member": { - "shape": "MapType" - } - }, - "ListTypeStruct": { - "type": "list", - "member": { - "shape": "StructType" - } - }, "StringType": { "type": "string" - }, - "StructType": { - "type": "structure", - "members": { - } - }, - "MapType": { - "type": "map", - "key": { "shape": "StringType" }, - "value": { "shape": "StringType" } } }, "cases": [ @@ -252,24 +224,6 @@ "headers": {}, "body": "{\"ListMember\": [\"a\", \"b\"]}" } - }, - { - "given": { - "output": { - "shape": "OutputShape" - }, - "name": "OperationName" - }, - "result": { - "ListMember": ["a", null], - "ListMemberMap": [{}, null, null, {}], - "ListMemberStruct": [{}, null, null, {}] - }, - "response": { - "status_code": 200, - "headers": {}, - "body": "{\"ListMember\": [\"a\", null], \"ListMemberMap\": [{}, null, null, {}], \"ListMemberStruct\": [{}, null, null, {}]}" - } } ] }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/query.json b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/query.json similarity index 96% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/query.json rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/query.json index 505ed1122..a46ec4a9c 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/query.json +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/query.json @@ -734,42 +734,5 @@ } } ] - }, - { - "description": "Empty string", - "metadata": { - "protocol": "query" - }, - "shapes": { - "OutputShape": { - "type": "structure", - "members": { - "Foo": { - "shape": "StringType" - } - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "output": { - "shape": "OutputShape" - }, - "name": "OperationName" - }, - "result": { - "Foo": "" - }, - "response": { - "status_code": 200, - "headers": {}, - "body": "requestid" - } - } - ] } ] diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/rest-json.json b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/rest-json.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/rest-json.json rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/rest-json.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/rest-xml.json b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/rest-xml.json similarity index 95% rename from vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/rest-xml.json rename to vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/rest-xml.json index 4d4f892a4..3e8a03741 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/output/rest-xml.json +++ b/vendor/github.com/aws/aws-sdk-go/internal/fixtures/protocol/output/rest-xml.json @@ -679,42 +679,5 @@ } } ] - }, - { - "description": "Empty string", - "metadata": { - "protocol": "rest-xml" - }, - "shapes": { - "OutputShape": { - "type": "structure", - "members": { - "Foo": { - "shape": "StringType" - } - } - }, - "StringType": { - "type": "string" - } - }, - "cases": [ - { - "given": { - "output": { - "shape": "OutputShape" - }, - "name": "OperationName" - }, - "result": { - "Foo": "" - }, - "response": { - "status_code": 200, - "headers": {}, - "body": "requestid" - } - } - ] } ] diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/api.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/api.go similarity index 56% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/api.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/api/api.go index f2c889dd5..8a8ac210f 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/api.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/api/api.go @@ -4,7 +4,6 @@ package api import ( "bytes" "fmt" - "path" "regexp" "sort" "strings" @@ -16,33 +15,25 @@ type API struct { Metadata Metadata Operations map[string]*Operation Shapes map[string]*Shape - Waiters []Waiter Documentation string + // Disables inflection checks. Only use this when generating tests + NoInflections bool + // Set to true to avoid removing unused shapes NoRemoveUnusedShapes bool - // Set to true to avoid renaming to 'Input/Output' postfixed shapes - NoRenameToplevelShapes bool - // Set to true to ignore service/request init methods (for testing) NoInitMethods bool // Set to true to ignore String() and GoString methods (for generated tests) NoStringerMethods bool - // Set to true to not generate API service name constants - NoConstServiceNames bool - - // Set to true to not generate validation shapes - NoValidataShapeMethods bool - - SvcClientImportPath string - - initialized bool - imports map[string]bool - name string - path string + initialized bool + imports map[string]bool + name string + unrecognizedNames map[string]string + path string } // A Metadata is the metadata about an API's definition. @@ -136,17 +127,6 @@ func (a *API) OperationList() []*Operation { return list } -// OperationHasOutputPlaceholder returns if any of the API operation input -// or output shapes are place holders. -func (a *API) OperationHasOutputPlaceholder() bool { - for _, op := range a.Operations { - if op.OutputRef.Shape.Placeholder { - return true - } - } - return false -} - // ShapeNames returns a slice of names for each shape used by the API. func (a *API) ShapeNames() []string { i, names := 0, make([]string, len(a.Shapes)) @@ -229,18 +209,6 @@ func (a *API) APIGoCode() string { delete(a.imports, "github.com/aws/aws-sdk-go/aws") a.imports["github.com/aws/aws-sdk-go/aws/awsutil"] = true a.imports["github.com/aws/aws-sdk-go/aws/request"] = true - if a.OperationHasOutputPlaceholder() { - a.imports["github.com/aws/aws-sdk-go/private/protocol/"+a.ProtocolPackage()] = true - a.imports["github.com/aws/aws-sdk-go/private/protocol"] = true - } - - for _, op := range a.Operations { - if op.AuthType == "none" { - a.imports["github.com/aws/aws-sdk-go/aws/credentials"] = true - break - } - } - var buf bytes.Buffer err := tplAPI.Execute(&buf, a) if err != nil { @@ -253,73 +221,46 @@ func (a *API) APIGoCode() string { // A tplService defines the template for the service generated code. var tplService = template.Must(template.New("service").Parse(` -{{ .Documentation }}//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type {{ .StructName }} struct { - *client.Client +{{ .Documentation }}type {{ .StructName }} struct { + *service.Service } -{{ if .UseInitMethods }}// Used for custom client initialization logic -var initClient func(*client.Client) +{{ if .UseInitMethods }}// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) {{ end }} -{{ if not .NoConstServiceNames }} -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "{{ .Metadata.EndpointPrefix }}" -{{ end }} - -// New creates a new instance of the {{ .StructName }} client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a {{ .StructName }} client from just a session. -// svc := {{ .PackageName }}.New(mySession) -// -// // Create a {{ .StructName }} client with additional configuration -// svc := {{ .PackageName }}.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *{{ .StructName }} { - c := p.ClientConfig({{ if .NoConstServiceNames }}"{{ .Metadata.EndpointPrefix }}"{{ else }}ServiceName{{ end }}, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *{{ .StructName }} { - svc := &{{ .StructName }}{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: {{ if .NoConstServiceNames }}"{{ .Metadata.EndpointPrefix }}"{{ else }}ServiceName{{ end }}, {{ if ne .Metadata.SigningName "" }} - SigningName: "{{ .Metadata.SigningName }}",{{ end }} - SigningRegion: signingRegion, - Endpoint: endpoint, +// New returns a new {{ .StructName }} client. +func New(config *aws.Config) *{{ .StructName }} { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "{{ .Metadata.EndpointPrefix }}",{{ if ne .Metadata.SigningName "" }} + SigningName: "{{ .Metadata.SigningName }}",{{ end }} APIVersion: "{{ .Metadata.APIVersion }}", {{ if eq .Metadata.Protocol "json" }}JSONVersion: "{{ .Metadata.JSONVersion }}", TargetPrefix: "{{ .Metadata.TargetPrefix }}", {{ end }} - }, - handlers, - ), - } + }, + } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack({{if eq .Metadata.SignatureVersion "v2"}}v2{{else}}v4{{end}}.Sign) - {{if eq .Metadata.SignatureVersion "v2"}}svc.Handlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler) - {{end}}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 .UseInitMethods }}// Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack({{ .ProtocolPackage }}.Build) + service.Handlers.Unmarshal.PushBack({{ .ProtocolPackage }}.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack({{ .ProtocolPackage }}.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack({{ .ProtocolPackage }}.UnmarshalError) + + {{ if .UseInitMethods }}// Run custom service initialization if present + if initService != nil { + initService(service) } {{ end }} - return svc + return &{{ .StructName }}{service} } // newRequest creates a new request for a {{ .StructName }} operation and runs any @@ -340,16 +281,13 @@ func (c *{{ .StructName }}) newRequest(op *request.Operation, params, data inter // ServiceGoCode renders service go code. Returning it as a string. func (a *API) ServiceGoCode() string { a.resetImports() - a.imports["github.com/aws/aws-sdk-go/aws/client"] = true - a.imports["github.com/aws/aws-sdk-go/aws/client/metadata"] = true + a.imports["github.com/aws/aws-sdk-go/aws"] = true + a.imports["github.com/aws/aws-sdk-go/aws/defaults"] = true a.imports["github.com/aws/aws-sdk-go/aws/request"] = true - if a.Metadata.SignatureVersion == "v2" { - a.imports["github.com/aws/aws-sdk-go/private/signer/v2"] = true - a.imports["github.com/aws/aws-sdk-go/aws/corehandlers"] = true - } else { - a.imports["github.com/aws/aws-sdk-go/private/signer/v4"] = true - } - a.imports["github.com/aws/aws-sdk-go/private/protocol/"+a.ProtocolPackage()] = true + a.imports["github.com/aws/aws-sdk-go/aws/service"] = true + a.imports["github.com/aws/aws-sdk-go/aws/service/serviceinfo"] = true + a.imports["github.com/aws/aws-sdk-go/internal/signer/v4"] = true + a.imports["github.com/aws/aws-sdk-go/internal/protocol/"+a.ProtocolPackage()] = true var buf bytes.Buffer err := tplService.Execute(&buf, a) @@ -368,14 +306,13 @@ func (a *API) ExampleGoCode() string { exs = append(exs, o.Example()) } - code := fmt.Sprintf("import (\n%q\n%q\n%q\n\n%q\n%q\n%q\n)\n\n"+ + code := fmt.Sprintf("import (\n%q\n%q\n%q\n\n%q\n%q\n)\n\n"+ "var _ time.Duration\nvar _ bytes.Buffer\n\n%s", "bytes", "fmt", "time", "github.com/aws/aws-sdk-go/aws", - "github.com/aws/aws-sdk-go/aws/session", - path.Join(a.SvcClientImportPath, a.PackageName()), + "github.com/aws/aws-sdk-go/service/"+a.PackageName(), strings.Join(exs, "\n\n"), ) return code @@ -389,8 +326,6 @@ type {{ .StructName }}API interface { {{ $o.InterfaceSignature }} {{ end }} } - -var _ {{ .StructName }}API = (*{{ .PackageName }}.{{ .StructName }})(nil) `)) // InterfaceGoCode returns the go code for the service's API operations as an @@ -399,8 +334,8 @@ var _ {{ .StructName }}API = (*{{ .PackageName }}.{{ .StructName }})(nil) func (a *API) InterfaceGoCode() string { a.resetImports() a.imports = map[string]bool{ - "github.com/aws/aws-sdk-go/aws/request": true, - path.Join(a.SvcClientImportPath, a.PackageName()): true, + "github.com/aws/aws-sdk-go/aws/request": true, + "github.com/aws/aws-sdk-go/service/" + a.PackageName(): true, } var buf bytes.Buffer @@ -414,72 +349,35 @@ func (a *API) InterfaceGoCode() string { return code } -// NewAPIGoCodeWithPkgName returns a string of instantiating the API prefixed -// with its package name. Takes a string depicting the Config. -func (a *API) NewAPIGoCodeWithPkgName(cfg string) string { - return fmt.Sprintf("%s.New(%s)", a.PackageName(), cfg) -} - -// computes the validation chain for all input shapes -func (a *API) addShapeValidations() { - for _, o := range a.Operations { - resolveShapeValidations(o.InputRef.Shape) - } +var tplInterfaceTest = template.Must(template.New("interfacetest").Parse(` +func TestInterface(t *testing.T) { + assert.Implements(t, (*{{ .InterfacePackageName }}.{{ .StructName }}API)(nil), {{ .PackageName }}.New(nil)) } +`)) -// Updates the source shape and all nested shapes with the validations that -// could possibly be needed. -func resolveShapeValidations(s *Shape, ancestry ...*Shape) { - for _, a := range ancestry { - if a == s { - return - } +// InterfaceTestGoCode returns the go code for the testing of a service interface. +func (a *API) InterfaceTestGoCode() string { + a.resetImports() + a.imports = map[string]bool{ + "testing": true, + "github.com/aws/aws-sdk-go/service/" + a.PackageName(): true, + "github.com/aws/aws-sdk-go/service/" + a.PackageName() + "/" + a.InterfacePackageName(): true, + "github.com/stretchr/testify/assert": true, } - children := []string{} - for _, name := range s.MemberNames() { - ref := s.MemberRefs[name] - - if s.IsRequired(name) && !s.Validations.Has(ref, ShapeValidationRequired) { - s.Validations = append(s.Validations, ShapeValidation{ - Name: name, Ref: ref, Type: ShapeValidationRequired, - }) - } - - if ref.Shape.Min != 0 && !s.Validations.Has(ref, ShapeValidationMinVal) { - s.Validations = append(s.Validations, ShapeValidation{ - Name: name, Ref: ref, Type: ShapeValidationMinVal, - }) - } + var buf bytes.Buffer + err := tplInterfaceTest.Execute(&buf, a) - switch ref.Shape.Type { - case "map", "list", "structure": - children = append(children, name) - } + if err != nil { + panic(err) } - ancestry = append(ancestry, s) - for _, name := range children { - ref := s.MemberRefs[name] - nestedShape := ref.Shape.NestedShape() - - var v *ShapeValidation - if len(nestedShape.Validations) > 0 { - v = &ShapeValidation{ - Name: name, Ref: ref, Type: ShapeValidationNested, - } - } else { - resolveShapeValidations(nestedShape, ancestry...) - if len(nestedShape.Validations) > 0 { - v = &ShapeValidation{ - Name: name, Ref: ref, Type: ShapeValidationNested, - } - } - } + code := a.importsGoCode() + strings.TrimSpace(buf.String()) + return code +} - if v != nil && !s.Validations.Has(v.Ref, v.Type) { - s.Validations = append(s.Validations, *v) - } - } - ancestry = ancestry[:len(ancestry)-1] +// NewAPIGoCodeWithPkgName returns a string of instantiating the API prefixed +// with its package name. Takes a string depicting the Config. +func (a *API) NewAPIGoCodeWithPkgName(cfg string) string { + return fmt.Sprintf("%s.New(%s)", a.PackageName(), cfg) } diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/api_test.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/api_test.go similarity index 98% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/api_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/api/api_test.go index e68e3e6fc..0e21d9a5c 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/api_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/api/api_test.go @@ -1,5 +1,3 @@ -// +build 1.6 - package api import ( diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/customization_passes.go similarity index 71% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/api/customization_passes.go index 9027f05f4..6e9e9cf69 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/customization_passes.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/api/customization_passes.go @@ -1,7 +1,6 @@ package api import ( - "fmt" "path/filepath" "strings" ) @@ -17,34 +16,6 @@ func (a *API) customizationPasses() { if fn := svcCustomizations[a.PackageName()]; fn != nil { fn(a) } - - blobDocStringCustomizations(a) -} - -const base64MarshalDocStr = "// %s is automatically base64 encoded/decoded by the SDK.\n" - -func blobDocStringCustomizations(a *API) { - for _, s := range a.Shapes { - payloadMemberName := s.Payload - - for refName, ref := range s.MemberRefs { - if refName == payloadMemberName { - // Payload members have their own encoding and may - // be raw bytes or io.Reader - continue - } - if ref.Shape.Type == "blob" { - docStr := fmt.Sprintf(base64MarshalDocStr, refName) - if len(strings.TrimSpace(ref.Shape.Documentation)) != 0 { - ref.Shape.Documentation += "//\n" + docStr - } else if len(strings.TrimSpace(ref.Documentation)) != 0 { - ref.Documentation += "//\n" + docStr - } else { - ref.Documentation = docStr - } - } - } - } } // s3Customizations customizes the API generation to replace values specific to S3. @@ -73,6 +44,11 @@ func s3Customizations(a *API) { } } } + + // Rename "Rule" to "LifecycleRule" + if s, ok := a.Shapes["Rule"]; ok { + s.Rename("LifecycleRule") + } } // cloudfrontCustomizations customized the API generation to replace values diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/docstring.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/docstring.go similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/docstring.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/api/docstring.go diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/exportable_name.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/exportable_name.go similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/exportable_name.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/api/exportable_name.go diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/load.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/load.go similarity index 69% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/load.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/api/load.go index c740495ed..e336ee534 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/load.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/api/load.go @@ -31,9 +31,7 @@ func (a *API) Attach(filename string) { if err != nil { panic(err) } - if err := json.NewDecoder(f).Decode(a); err != nil { - panic(fmt.Errorf("failed to decode %s, err: %v", filename, err)) - } + json.NewDecoder(f).Decode(a) } // AttachString will unmarshal a raw JSON string, and setup the @@ -48,13 +46,12 @@ func (a *API) AttachString(str string) { // Setup initializes the API. func (a *API) Setup() { + a.unrecognizedNames = map[string]string{} a.writeShapeNames() a.resolveReferences() a.fixStutterNames() a.renameExportable() - if !a.NoRenameToplevelShapes { - a.renameToplevelShapes() - } + a.renameToplevelShapes() a.updateTopLevelShapeReferences() a.createInputOutputShapes() a.customizationPasses() @@ -63,8 +60,20 @@ func (a *API) Setup() { a.removeUnusedShapes() } - if !a.NoValidataShapeMethods { - a.addShapeValidations() + if len(a.unrecognizedNames) > 0 { + msg := []string{ + "Unrecognized inflections for the following export names:", + "(Add these to inflections.csv with any inflections added after the ':')", + } + fmt.Fprintf(os.Stderr, "%s\n%s\n\n", msg[0], msg[1]) + for n, m := range a.unrecognizedNames { + if n == m { + m = "" + } + fmt.Fprintf(os.Stderr, "%s:%s\n", n, m) + } + os.Stderr.WriteString("\n\n") + panic("Found unrecognized exported names in API " + a.PackageName()) } a.initialized = true diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/load_test.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/load_test.go similarity index 97% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/load_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/api/load_test.go index 77677261f..dda5eb764 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/load_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/api/load_test.go @@ -1,5 +1,3 @@ -// +build 1.6 - package api import ( diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/operation.go similarity index 90% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/api/operation.go index 79ea4934a..d295a958e 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/operation.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/api/operation.go @@ -19,8 +19,6 @@ type Operation struct { InputRef ShapeRef `json:"input"` OutputRef ShapeRef `json:"output"` Paginator *Paginator - Deprecated bool `json:"deprecated"` - AuthType string `json:"authtype"` } // A HTTPInfo defines the method of HTTP request for the Operation. @@ -47,10 +45,7 @@ const op{{ .ExportedName }} = "{{ .Name }}" // {{ .ExportedName }}Request generates a request for the {{ .ExportedName }} operation. func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + `input {{ .InputRef.GoType }}) (req *request.Request, output {{ .OutputRef.GoType }}) { - {{ if (or .Deprecated (or .InputRef.Deprecated .OutputRef.Deprecated)) }}if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, {{ .ExportedName }}, has been deprecated") - } - op := &request.Operation{ {{ else }} op := &request.Operation{ {{ end }} + op := &request.Operation{ Name: op{{ .ExportedName }}, {{ if ne .HTTP.Method "" }}HTTPMethod: "{{ .HTTP.Method }}", {{ end }}{{ if ne .HTTP.RequestURI "" }}HTTPPath: "{{ .HTTP.RequestURI }}", @@ -67,11 +62,8 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + input = &{{ .InputRef.GoTypeElem }}{} } - req = c.newRequest(op, input, output){{ if eq .OutputRef.Shape.Placeholder true }} - req.Handlers.Unmarshal.Remove({{ .API.ProtocolPackage }}.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler){{ end }} - {{ if eq .AuthType "none" }}req.Config.Credentials = credentials.AnonymousCredentials - output = &{{ .OutputRef.GoTypeElem }}{} {{ else }} output = &{{ .OutputRef.GoTypeElem }}{} {{ end }} + req = c.newRequest(op, input, output) + output = &{{ .OutputRef.GoTypeElem }}{} req.Data = output return } @@ -87,7 +79,6 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + func (c *{{ .API.StructName }}) {{ .ExportedName }}Pages(` + `input {{ .InputRef.GoType }}, fn func(p {{ .OutputRef.GoType }}, lastPage bool) (shouldContinue bool)) error { page, _ := c.{{ .ExportedName }}Request(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.({{ .OutputRef.GoType }}), lastPage) }) @@ -130,7 +121,7 @@ func (o *Operation) InterfaceSignature() string { // tplExample defines the template for rendering an Operation example var tplExample = template.Must(template.New("operationExample").Parse(` func Example{{ .API.StructName }}_{{ .ExportedName }}() { - svc := {{ .API.PackageName }}.New(session.New()) + svc := {{ .API.NewAPIGoCodeWithPkgName "nil" }} {{ .ExampleInput }} resp, err := svc.{{ .ExportedName }}(params) diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/pagination.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/pagination.go similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/pagination.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/api/pagination.go diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/passes.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/passes.go similarity index 92% rename from vendor/github.com/aws/aws-sdk-go/private/model/api/passes.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/api/passes.go index 3492d58d1..542eea286 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/passes.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/api/passes.go @@ -182,8 +182,8 @@ func (a *API) renameExportable() { } } - if newName == "_" { - panic("Shape " + s.ShapeName + " uses reserved member name '_'") + if newName == "SDKShapeTraits" { + panic("Shape " + s.ShapeName + " uses reserved member name SDKShapeTraits") } } @@ -217,23 +217,20 @@ func (a *API) renameExportable() { // have not been defined in the API. This normalizes all APIs to always // have an input and output structure in the signature. func (a *API) createInputOutputShapes() { - for _, op := range a.Operations { - if !op.HasInput() { - setAsPlacholderShape(&op.InputRef, op.ExportedName+"Input", a) + for _, v := range a.Operations { + if !v.HasInput() { + shape := a.makeIOShape(v.ExportedName + "Input") + v.InputRef = ShapeRef{API: a, ShapeName: shape.ShapeName, Shape: shape} + shape.refs = append(shape.refs, &v.InputRef) } - if !op.HasOutput() { - setAsPlacholderShape(&op.OutputRef, op.ExportedName+"Output", a) + if !v.HasOutput() { + shape := a.makeIOShape(v.ExportedName + "Output") + v.OutputRef = ShapeRef{API: a, ShapeName: shape.ShapeName, Shape: shape} + shape.refs = append(shape.refs, &v.OutputRef) } } } -func setAsPlacholderShape(tgtShapeRef *ShapeRef, name string, a *API) { - shape := a.makeIOShape(name) - shape.Placeholder = true - *tgtShapeRef = ShapeRef{API: a, ShapeName: shape.ShapeName, Shape: shape} - shape.refs = append(shape.refs, tgtShapeRef) -} - // makeIOShape returns a pointer to a new Shape initialized by the name provided. func (a *API) makeIOShape(name string) *Shape { shape := &Shape{ diff --git a/vendor/github.com/aws/aws-sdk-go/internal/model/api/shape.go b/vendor/github.com/aws/aws-sdk-go/internal/model/api/shape.go new file mode 100644 index 000000000..2a3d6003f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/api/shape.go @@ -0,0 +1,397 @@ +package api + +import ( + "bytes" + "fmt" + "path" + "regexp" + "sort" + "strings" + "text/template" + + "github.com/aws/aws-sdk-go/internal/util" +) + +// A ShapeRef defines the usage of a shape within the API. +type ShapeRef struct { + API *API `json:"-"` + Shape *Shape `json:"-"` + Documentation string + ShapeName string `json:"shape"` + Location string + LocationName string + QueryName string + Flattened bool + Streaming bool + XMLAttribute bool + XMLNamespace XMLInfo + Payload string +} + +// A XMLInfo defines URL and prefix for Shapes when rendered as XML +type XMLInfo struct { + Prefix string + URI string +} + +// A Shape defines the definition of a shape type +type Shape struct { + API *API `json:"-"` + ShapeName string + Documentation string + MemberRefs map[string]*ShapeRef `json:"members"` + MemberRef ShapeRef `json:"member"` + KeyRef ShapeRef `json:"key"` + ValueRef ShapeRef `json:"value"` + Required []string + Payload string + Type string + Exception bool + Enum []string + EnumConsts []string + Flattened bool + Streaming bool + Location string + LocationName string + XMLNamespace XMLInfo + + refs []*ShapeRef // References to this shape + resolvePkg string // use this package in the goType() if present +} + +// Rename changes the name of the Shape to newName. Also updates +// the associated API's reference to use newName. +func (s *Shape) Rename(newName string) { + for _, r := range s.refs { + r.ShapeName = newName + } + + delete(s.API.Shapes, s.ShapeName) + s.API.Shapes[newName] = s + s.ShapeName = newName +} + +// MemberNames returns a slice of struct member names. +func (s *Shape) MemberNames() []string { + i, names := 0, make([]string, len(s.MemberRefs)) + for n := range s.MemberRefs { + names[i] = n + i++ + } + sort.Strings(names) + return names +} + +// GoTypeWithPkgName returns a shape's type as a string with the package name in +// . format. Package naming only applies to structures. +func (s *Shape) GoTypeWithPkgName() string { + return goType(s, true) +} + +// GoType returns a shape's Go type +func (s *Shape) GoType() string { + return goType(s, false) +} + +// GoType returns a shape ref's Go type. +func (ref *ShapeRef) GoType() string { + if ref.Shape == nil { + panic(fmt.Errorf("missing shape definition on reference for %#v", ref)) + } + + return ref.Shape.GoType() +} + +// GoTypeWithPkgName returns a shape's type as a string with the package name in +// . format. Package naming only applies to structures. +func (ref *ShapeRef) GoTypeWithPkgName() string { + if ref.Shape == nil { + panic(fmt.Errorf("missing shape definition on reference for %#v", ref)) + } + + return ref.Shape.GoTypeWithPkgName() +} + +// Returns a string version of the Shape's type. +// If withPkgName is true, the package name will be added as a prefix +func goType(s *Shape, withPkgName bool) string { + switch s.Type { + case "structure": + if withPkgName || s.resolvePkg != "" { + pkg := s.resolvePkg + if pkg != "" { + s.API.imports[pkg] = true + pkg = path.Base(pkg) + } else { + pkg = s.API.PackageName() + } + return fmt.Sprintf("*%s.%s", pkg, s.ShapeName) + } + return "*" + s.ShapeName + case "map": + return "map[string]" + s.ValueRef.GoType() + case "list": + return "[]" + s.MemberRef.GoType() + case "boolean": + return "*bool" + case "string", "character": + return "*string" + case "blob": + return "[]byte" + case "integer", "long": + return "*int64" + case "float", "double": + return "*float64" + case "timestamp": + s.API.imports["time"] = true + return "*time.Time" + default: + panic("Unsupported shape type: " + s.Type) + } +} + +// GoTypeElem returns the Go type for the Shape. If the shape type is a pointer just +// the type will be returned minus the pointer *. +func (s *Shape) GoTypeElem() string { + t := s.GoType() + if strings.HasPrefix(t, "*") { + return t[1:] + } + return t +} + +// GoTypeElem returns the Go type for the Shape. If the shape type is a pointer just +// the type will be returned minus the pointer *. +func (ref *ShapeRef) GoTypeElem() string { + if ref.Shape == nil { + panic(fmt.Errorf("missing shape definition on reference for %#v", ref)) + } + + return ref.Shape.GoTypeElem() +} + +// GoTags returns the rendered tags string for the ShapeRef +func (ref *ShapeRef) GoTags(toplevel bool, isRequired bool) string { + code := "`" + if ref.Location != "" { + code += `location:"` + ref.Location + `" ` + } else if ref.Shape.Location != "" { + code += `location:"` + ref.Shape.Location + `" ` + } + if ref.LocationName != "" { + code += `locationName:"` + ref.LocationName + `" ` + } else if ref.Shape.LocationName != "" { + code += `locationName:"` + ref.Shape.LocationName + `" ` + } + if ref.QueryName != "" { + code += `queryName:"` + ref.QueryName + `" ` + } + if ref.Shape.MemberRef.LocationName != "" { + code += `locationNameList:"` + ref.Shape.MemberRef.LocationName + `" ` + } + if ref.Shape.KeyRef.LocationName != "" { + code += `locationNameKey:"` + ref.Shape.KeyRef.LocationName + `" ` + } + if ref.Shape.ValueRef.LocationName != "" { + code += `locationNameValue:"` + ref.Shape.ValueRef.LocationName + `" ` + } + code += `type:"` + ref.Shape.Type + `" ` + + // embed the timestamp type for easier lookups + if ref.Shape.Type == "timestamp" { + code += `timestampFormat:"` + if ref.Location == "header" { + code += "rfc822" + } else { + switch ref.API.Metadata.Protocol { + case "json", "rest-json": + code += "unix" + case "rest-xml", "ec2", "query": + code += "iso8601" + } + } + code += `" ` + } + + if ref.Shape.Flattened || ref.Flattened { + code += `flattened:"true" ` + } + + if ref.XMLAttribute { + code += `xmlAttribute:"true" ` + } + + if isRequired { + code += `required:"true" ` + } + + if ref.Shape.IsEnum() { + code += `enum:"` + ref.ShapeName + `" ` + } + + if toplevel { + if ref.Shape.Payload != "" { + code += `payload:"` + ref.Shape.Payload + `" ` + } + if ref.XMLNamespace.Prefix != "" { + code += `xmlPrefix:"` + ref.XMLNamespace.Prefix + `" ` + } else if ref.Shape.XMLNamespace.Prefix != "" { + code += `xmlPrefix:"` + ref.Shape.XMLNamespace.Prefix + `" ` + } + if ref.XMLNamespace.URI != "" { + code += `xmlURI:"` + ref.XMLNamespace.URI + `" ` + } else if ref.Shape.XMLNamespace.URI != "" { + code += `xmlURI:"` + ref.Shape.XMLNamespace.URI + `" ` + } + + } + + return strings.TrimSpace(code) + "`" +} + +// Docstring returns the godocs formated documentation +func (ref *ShapeRef) Docstring() string { + if ref.Documentation != "" { + return ref.Documentation + } + return ref.Shape.Docstring() +} + +// Docstring returns the godocs formated documentation +func (s *Shape) Docstring() string { + return s.Documentation +} + +const goCodeStringerTmpl = ` +// String returns the string representation +func (s {{ .ShapeName }}) String() string { + return awsutil.Prettify(s) +} +// GoString returns the string representation +func (s {{ .ShapeName }}) GoString() string { + return s.String() +} +` + +func (s *Shape) goCodeStringers() string { + tmpl := template.Must(template.New("goCodeStringerTmpl").Parse(goCodeStringerTmpl)) + w := bytes.Buffer{} + if err := tmpl.Execute(&w, s); err != nil { + panic(fmt.Sprintln("Unexpected error executing goCodeStringers template", err)) + } + + return w.String() +} + +var enumStrip = regexp.MustCompile(`[^a-zA-Z0-9_:\./-]`) +var enumDelims = regexp.MustCompile(`[-_:\./]+`) +var enumCamelCase = regexp.MustCompile(`([a-z])([A-Z])`) + +// EnumName returns the Nth enum in the shapes Enum list +func (s *Shape) EnumName(n int) string { + enum := s.Enum[n] + enum = enumStrip.ReplaceAllLiteralString(enum, "") + enum = enumCamelCase.ReplaceAllString(enum, "$1-$2") + parts := enumDelims.Split(enum, -1) + for i, v := range parts { + v = strings.ToLower(v) + parts[i] = "" + if len(v) > 0 { + parts[i] = strings.ToUpper(v[0:1]) + } + if len(v) > 1 { + parts[i] += v[1:] + } + } + enum = strings.Join(parts, "") + enum = strings.ToUpper(enum[0:1]) + enum[1:] + return enum +} + +// GoCode returns the rendered Go code for the Shape. +func (s *Shape) GoCode() string { + code := s.Docstring() + if !s.IsEnum() { + code += "type " + s.ShapeName + " " + } + switch { + case s.Type == "structure": + code += "struct {\n" + for _, n := range s.MemberNames() { + m := s.MemberRefs[n] + code += m.Docstring() + if (m.Streaming || m.Shape.Streaming) && s.Payload == n { + rtype := "io.ReadSeeker" + if len(s.refs) > 1 { + rtype = "aws.ReaderSeekCloser" + } else if strings.HasSuffix(s.ShapeName, "Output") { + rtype = "io.ReadCloser" + } + + s.API.imports["io"] = true + code += n + " " + rtype + " " + m.GoTags(false, s.IsRequired(n)) + "\n\n" + } else { + code += n + " " + m.GoType() + " " + m.GoTags(false, s.IsRequired(n)) + "\n\n" + } + } + metaStruct := "metadata" + s.ShapeName + ref := &ShapeRef{ShapeName: s.ShapeName, API: s.API, Shape: s} + code += "\n" + metaStruct + " `json:\"-\" xml:\"-\"`\n" + code += "}\n\n" + code += "type " + metaStruct + " struct {\n" + code += "SDKShapeTraits bool " + ref.GoTags(true, false) + code += "}" + + if !s.API.NoStringerMethods { + code += s.goCodeStringers() + } + case s.IsEnum(): + code += "const (\n" + for n, e := range s.Enum { + code += fmt.Sprintf("\t// @enum %s\n\t%s = %q\n", + s.ShapeName, s.EnumConsts[n], e) + } + code += ")" + default: + panic("Cannot generate toplevel shape for " + s.Type) + } + + return util.GoFmt(code) +} + +// IsEnum returns whether this shape is an enum list +func (s *Shape) IsEnum() bool { + return s.Type == "string" && len(s.Enum) > 0 +} + +// IsRequired returns if member is a required field. +func (s *Shape) IsRequired(member string) bool { + for _, n := range s.Required { + if n == member { + return true + } + } + return false +} + +// IsInternal returns whether the shape was defined in this package +func (s *Shape) IsInternal() bool { + return s.resolvePkg == "" +} + +// removeRef removes a shape reference from the list of references this +// shape is used in. +func (s *Shape) removeRef(ref *ShapeRef) { + r := s.refs + for i := 0; i < len(r); i++ { + if r[i] == ref { + j := i + 1 + copy(r[i:], r[j:]) + for k, n := len(r)-j+i, len(r); k < n; k++ { + r[k] = nil // free up the end of the list + } // for k + s.refs = r[:len(r)-j+i] + break + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/cli/api-info/api-info.go b/vendor/github.com/aws/aws-sdk-go/internal/model/cli/api-info/api-info.go similarity index 64% rename from vendor/github.com/aws/aws-sdk-go/private/model/cli/api-info/api-info.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/cli/api-info/api-info.go index 44faa262e..49725217b 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/cli/api-info/api-info.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/cli/api-info/api-info.go @@ -6,14 +6,14 @@ import ( "path/filepath" "sort" - "github.com/aws/aws-sdk-go/private/model/api" + "github.com/aws/aws-sdk-go/internal/model/api" ) func main() { - dir, _ := os.Open(filepath.Join("models", "apis")) + dir, _ := os.Open("apis") names, _ := dir.Readdirnames(0) for _, name := range names { - m, _ := filepath.Glob(filepath.Join("models", "apis", name, "*", "api-2.json")) + m, _ := filepath.Glob(filepath.Join("apis", name, "*", "api-2.json")) if len(m) == 0 { continue } diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-api/main.go b/vendor/github.com/aws/aws-sdk-go/internal/model/cli/gen-api/main.go similarity index 57% rename from vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-api/main.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/cli/gen-api/main.go index 5a0043dfe..44a5f3879 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-api/main.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/cli/gen-api/main.go @@ -15,8 +15,8 @@ import ( "strings" "sync" - "github.com/aws/aws-sdk-go/private/model/api" - "github.com/aws/aws-sdk-go/private/util" + "github.com/aws/aws-sdk-go/internal/model/api" + "github.com/aws/aws-sdk-go/internal/util" ) type generateInfo struct { @@ -25,14 +25,15 @@ type generateInfo struct { } var excludeServices = map[string]struct{}{ + "simpledb": {}, "importexport": {}, } // newGenerateInfo initializes the service API's folder structure for a specific service. // If the SERVICES environment variable is set, and this service is not apart of the list // this service will be skipped. -func newGenerateInfo(modelFile, svcPath, svcImportPath string) *generateInfo { - g := &generateInfo{API: &api.API{SvcClientImportPath: svcImportPath}} +func newGenerateInfo(modelFile, svcPath string) *generateInfo { + g := &generateInfo{API: &api.API{}} g.API.Attach(modelFile) if _, ok := excludeServices[g.API.PackageName()]; ok { @@ -42,22 +43,11 @@ func newGenerateInfo(modelFile, svcPath, svcImportPath string) *generateInfo { paginatorsFile := strings.Replace(modelFile, "api-2.json", "paginators-1.json", -1) if _, err := os.Stat(paginatorsFile); err == nil { g.API.AttachPaginators(paginatorsFile) - } else if !os.IsNotExist(err) { - fmt.Println("api-2.json error:", err) } docsFile := strings.Replace(modelFile, "api-2.json", "docs-2.json", -1) if _, err := os.Stat(docsFile); err == nil { g.API.AttachDocs(docsFile) - } else { - fmt.Println("docs-2.json error:", err) - } - - waitersFile := strings.Replace(modelFile, "api-2.json", "waiters-2.json", -1) - if _, err := os.Stat(waitersFile); err == nil { - g.API.AttachWaiters(waitersFile) - } else if !os.IsNotExist(err) { - fmt.Println("waiters-2.json error:", err) } g.API.Setup() @@ -96,10 +86,8 @@ func newGenerateInfo(modelFile, svcPath, svcImportPath string) *generateInfo { // Env: // SERVICES comma separated list of services to generate. func main() { - var svcPath, sessionPath, svcImportPath string - flag.StringVar(&svcPath, "path", "service", "directory to generate service clients in") - flag.StringVar(&sessionPath, "sessionPath", filepath.Join("aws", "session"), "generate session service client factories") - flag.StringVar(&svcImportPath, "svc-import-path", "github.com/aws/aws-sdk-go/service", "namespace to generate service client Go code import path under") + var svcPath string + flag.StringVar(&svcPath, "path", "service", "generate in a specific directory (default: 'service')") flag.Parse() files := []string{} @@ -135,56 +123,40 @@ func main() { m[svc] = true } - wg := sync.WaitGroup{} + w := sync.WaitGroup{} for i := range files { - filename := files[i] - if filename == "" { // empty file - continue - } - - genInfo := newGenerateInfo(filename, svcPath, svcImportPath) - if genInfo == nil { + file := files[i] + if file == "" { // empty file continue } - if _, ok := excludeServices[genInfo.API.PackageName()]; ok { - // Skip services not yet supported. - continue - } - - wg.Add(1) - go func(g *generateInfo, filename string) { - defer wg.Done() - writeServiceFiles(g, filename) - }(genInfo, filename) - } - - wg.Wait() -} - -func writeServiceFiles(g *generateInfo, filename string) { - defer func() { - if r := recover(); r != nil { - fmt.Fprintf(os.Stderr, "Error generating %s\n%s\n%s\n", - filename, r, debug.Stack()) - } - }() - - fmt.Printf("Generating %s (%s)...\n", - g.API.PackageName(), g.API.Metadata.APIVersion) - // write api.go and service.go files - Must(writeAPIFile(g)) - Must(writeExamplesFile(g)) - Must(writeServiceFile(g)) - Must(writeInterfaceFile(g)) - Must(writeWaitersFile(g)) -} - -// Must will panic if the error passed in is not nil. -func Must(err error) { - if err != nil { - panic(err) + w.Add(1) + go func() { + defer func() { + w.Done() + if r := recover(); r != nil { + fmtStr := "Error generating %s\n%s\n%s\n" + fmt.Fprintf(os.Stderr, fmtStr, file, r, debug.Stack()) + } + }() + + if g := newGenerateInfo(file, svcPath); g != nil { + if _, ok := excludeServices[g.API.PackageName()]; !ok { + // Skip services not yet supported. + + fmt.Printf("Generating %s (%s)...\n", + g.API.PackageName(), g.API.Metadata.APIVersion) + + // write api.go and service.go files + g.writeAPIFile() + g.writeExamplesFile() + g.writeServiceFile() + g.writeInterfaceFile() + } + } + }() } + w.Wait() } const codeLayout = `// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. @@ -199,8 +171,8 @@ func writeGoFile(file string, layout string, args ...interface{}) error { } // writeExamplesFile writes out the service example file. -func writeExamplesFile(g *generateInfo) error { - return writeGoFile(filepath.Join(g.PackageDir, "examples_test.go"), +func (g *generateInfo) writeExamplesFile() { + writeGoFile(filepath.Join(g.PackageDir, "examples_test.go"), codeLayout, "", g.API.PackageName()+"_test", @@ -209,8 +181,8 @@ func writeExamplesFile(g *generateInfo) error { } // writeServiceFile writes out the service initialization file. -func writeServiceFile(g *generateInfo) error { - return writeGoFile(filepath.Join(g.PackageDir, "service.go"), +func (g *generateInfo) writeServiceFile() { + writeGoFile(filepath.Join(g.PackageDir, "service.go"), codeLayout, "", g.API.PackageName(), @@ -219,32 +191,26 @@ func writeServiceFile(g *generateInfo) error { } // writeInterfaceFile writes out the service interface file. -func writeInterfaceFile(g *generateInfo) error { - return writeGoFile(filepath.Join(g.PackageDir, g.API.InterfacePackageName(), "interface.go"), +func (g *generateInfo) writeInterfaceFile() { + writeGoFile(filepath.Join(g.PackageDir, g.API.InterfacePackageName(), "interface.go"), codeLayout, fmt.Sprintf("\n// Package %s provides an interface for the %s.", g.API.InterfacePackageName(), g.API.Metadata.ServiceFullName), g.API.InterfacePackageName(), g.API.InterfaceGoCode(), ) -} -func writeWaitersFile(g *generateInfo) error { - if len(g.API.Waiters) == 0 { - return nil - } - - return writeGoFile(filepath.Join(g.PackageDir, "waiters.go"), + writeGoFile(filepath.Join(g.PackageDir, g.API.InterfacePackageName(), "interface_test.go"), codeLayout, "", - g.API.PackageName(), - g.API.WaitersGoCode(), + g.API.InterfacePackageName()+"_test", + g.API.InterfaceTestGoCode(), ) } // writeAPIFile writes out the service api file. -func writeAPIFile(g *generateInfo) error { - return writeGoFile(filepath.Join(g.PackageDir, "api.go"), +func (g *generateInfo) writeAPIFile() { + writeGoFile(filepath.Join(g.PackageDir, "api.go"), codeLayout, fmt.Sprintf("\n// Package %s provides a client for %s.", g.API.PackageName(), g.API.Metadata.ServiceFullName), diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-endpoints/main.go b/vendor/github.com/aws/aws-sdk-go/internal/model/cli/gen-endpoints/main.go similarity index 88% rename from vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-endpoints/main.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/cli/gen-endpoints/main.go index 971e989a4..b794b0ab8 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/cli/gen-endpoints/main.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/cli/gen-endpoints/main.go @@ -8,7 +8,7 @@ import ( "encoding/json" "os" - "github.com/aws/aws-sdk-go/private/model" + "github.com/aws/aws-sdk-go/internal/model" ) // Generates the endpoints from json description @@ -31,7 +31,7 @@ func main() { SigningRegion string } } - if err = json.NewDecoder(in).Decode(&endpoints); err != nil { + if err := json.NewDecoder(in).Decode(&endpoints); err != nil { panic(err) } diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/endpoints.go b/vendor/github.com/aws/aws-sdk-go/internal/model/endpoints.go similarity index 95% rename from vendor/github.com/aws/aws-sdk-go/private/model/endpoints.go rename to vendor/github.com/aws/aws-sdk-go/internal/model/endpoints.go index e0ed6a7c4..388844149 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/model/endpoints.go @@ -15,7 +15,7 @@ func GenerateEndpoints(endpoints interface{}, w io.Writer) error { } out := bytes.NewBuffer(nil) - if err = tmpl.Execute(out, endpoints); err != nil { + if err := tmpl.Execute(out, endpoints); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/build.go similarity index 67% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/build.go index 68e344d1f..fabe9b3c3 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/build.go @@ -1,24 +1,21 @@ // Package ec2query provides serialisation of AWS EC2 requests and responses. package ec2query -//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/input/ec2.json build_test.go +//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/input/ec2.json build_test.go import ( "net/url" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query/queryutil" + "github.com/aws/aws-sdk-go/internal/protocol/query/queryutil" ) -// BuildHandler is a named request handler for building ec2query protocol requests -var BuildHandler = request.NamedHandler{Name: "awssdk.ec2query.Build", Fn: Build} - // Build builds a request for the EC2 protocol. func Build(r *request.Request) { body := url.Values{ "Action": {r.Operation.Name}, - "Version": {r.ClientInfo.APIVersion}, + "Version": {r.Service.APIVersion}, } if err := queryutil.Parse(body, r.Params, true); err != nil { r.Error = awserr.New("SerializationError", "failed encoding EC2 Query request", err) diff --git a/vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/build_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/build_test.go new file mode 100644 index 000000000..8b2e59a8a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/build_test.go @@ -0,0 +1,880 @@ +package ec2query_test + +import ( + "bytes" + "encoding/json" + "encoding/xml" + "io" + "io/ioutil" + "net/http" + "net/url" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/defaults" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/ec2query" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/signer/v4" + "github.com/aws/aws-sdk-go/internal/util" + "github.com/stretchr/testify/assert" +) + +var _ bytes.Buffer // always import bytes +var _ http.Request +var _ json.Marshaler +var _ time.Time +var _ xmlutil.XMLNode +var _ xml.Attr +var _ = ioutil.Discard +var _ = util.Trim("") +var _ = url.Values{} +var _ = io.EOF + +type InputService1ProtocolTest struct { + *service.Service +} + +// New returns a new InputService1ProtocolTest client. +func NewInputService1ProtocolTest(config *aws.Config) *InputService1ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice1protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &InputService1ProtocolTest{service} +} + +// newRequest creates a new request for a InputService1ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService1TestCaseOperation1 = "OperationName" + +// InputService1TestCaseOperation1Request generates a request for the InputService1TestCaseOperation1 operation. +func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService1TestCaseOperation1, + } + + if input == nil { + input = &InputService1TestShapeInputService1TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService1TestShapeInputService1TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { + req, out := c.InputService1TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService1TestShapeInputService1TestCaseOperation1Input struct { + Bar *string `type:"string"` + + Foo *string `type:"string"` + + metadataInputService1TestShapeInputService1TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService1TestShapeInputService1TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService1TestShapeInputService1TestCaseOperation1Output struct { + metadataInputService1TestShapeInputService1TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService1TestShapeInputService1TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService2ProtocolTest struct { + *service.Service +} + +// New returns a new InputService2ProtocolTest client. +func NewInputService2ProtocolTest(config *aws.Config) *InputService2ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice2protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &InputService2ProtocolTest{service} +} + +// newRequest creates a new request for a InputService2ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService2TestCaseOperation1 = "OperationName" + +// InputService2TestCaseOperation1Request generates a request for the InputService2TestCaseOperation1 operation. +func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService2TestCaseOperation1, + } + + if input == nil { + input = &InputService2TestShapeInputService2TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService2TestShapeInputService2TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { + req, out := c.InputService2TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService2TestShapeInputService2TestCaseOperation1Input struct { + Bar *string `locationName:"barLocationName" type:"string"` + + Foo *string `type:"string"` + + Yuck *string `locationName:"yuckLocationName" queryName:"yuckQueryName" type:"string"` + + metadataInputService2TestShapeInputService2TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService2TestShapeInputService2TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService2TestShapeInputService2TestCaseOperation1Output struct { + metadataInputService2TestShapeInputService2TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService2TestShapeInputService2TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService3ProtocolTest struct { + *service.Service +} + +// New returns a new InputService3ProtocolTest client. +func NewInputService3ProtocolTest(config *aws.Config) *InputService3ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice3protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &InputService3ProtocolTest{service} +} + +// newRequest creates a new request for a InputService3ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService3TestCaseOperation1 = "OperationName" + +// InputService3TestCaseOperation1Request generates a request for the InputService3TestCaseOperation1 operation. +func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService3TestCaseOperation1, + } + + if input == nil { + input = &InputService3TestShapeInputService3TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService3TestShapeInputService3TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { + req, out := c.InputService3TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService3TestShapeInputService3TestCaseOperation1Input struct { + StructArg *InputService3TestShapeStructType `locationName:"Struct" type:"structure"` + + metadataInputService3TestShapeInputService3TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeInputService3TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService3TestShapeInputService3TestCaseOperation1Output struct { + metadataInputService3TestShapeInputService3TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeInputService3TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService3TestShapeStructType struct { + ScalarArg *string `locationName:"Scalar" type:"string"` + + metadataInputService3TestShapeStructType `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeStructType struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService4ProtocolTest struct { + *service.Service +} + +// New returns a new InputService4ProtocolTest client. +func NewInputService4ProtocolTest(config *aws.Config) *InputService4ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice4protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &InputService4ProtocolTest{service} +} + +// newRequest creates a new request for a InputService4ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService4TestCaseOperation1 = "OperationName" + +// InputService4TestCaseOperation1Request generates a request for the InputService4TestCaseOperation1 operation. +func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService4TestCaseOperation1, + } + + if input == nil { + input = &InputService4TestShapeInputService4TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService4TestShapeInputService4TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { + req, out := c.InputService4TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService4TestShapeInputService4TestCaseOperation1Input struct { + ListArg []*string `type:"list"` + + metadataInputService4TestShapeInputService4TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeInputService4TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService4TestShapeInputService4TestCaseOperation1Output struct { + metadataInputService4TestShapeInputService4TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeInputService4TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService5ProtocolTest struct { + *service.Service +} + +// New returns a new InputService5ProtocolTest client. +func NewInputService5ProtocolTest(config *aws.Config) *InputService5ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice5protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &InputService5ProtocolTest{service} +} + +// newRequest creates a new request for a InputService5ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService5TestCaseOperation1 = "OperationName" + +// InputService5TestCaseOperation1Request generates a request for the InputService5TestCaseOperation1 operation. +func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService5TestCaseOperation1, + } + + if input == nil { + input = &InputService5TestShapeInputService5TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService5TestShapeInputService5TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { + req, out := c.InputService5TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService5TestShapeInputService5TestCaseOperation1Input struct { + ListArg []*string `locationName:"ListMemberName" locationNameList:"item" type:"list"` + + metadataInputService5TestShapeInputService5TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService5TestShapeInputService5TestCaseOperation1Output struct { + metadataInputService5TestShapeInputService5TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService6ProtocolTest struct { + *service.Service +} + +// New returns a new InputService6ProtocolTest client. +func NewInputService6ProtocolTest(config *aws.Config) *InputService6ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice6protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &InputService6ProtocolTest{service} +} + +// newRequest creates a new request for a InputService6ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService6TestCaseOperation1 = "OperationName" + +// InputService6TestCaseOperation1Request generates a request for the InputService6TestCaseOperation1 operation. +func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService6TestCaseOperation1, + } + + if input == nil { + input = &InputService6TestShapeInputService6TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService6TestShapeInputService6TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { + req, out := c.InputService6TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService6TestShapeInputService6TestCaseOperation1Input struct { + ListArg []*string `locationName:"ListMemberName" queryName:"ListQueryName" locationNameList:"item" type:"list"` + + metadataInputService6TestShapeInputService6TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService6TestShapeInputService6TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService6TestShapeInputService6TestCaseOperation1Output struct { + metadataInputService6TestShapeInputService6TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService6TestShapeInputService6TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService7ProtocolTest struct { + *service.Service +} + +// New returns a new InputService7ProtocolTest client. +func NewInputService7ProtocolTest(config *aws.Config) *InputService7ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice7protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &InputService7ProtocolTest{service} +} + +// newRequest creates a new request for a InputService7ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService7TestCaseOperation1 = "OperationName" + +// InputService7TestCaseOperation1Request generates a request for the InputService7TestCaseOperation1 operation. +func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService7TestCaseOperation1, + } + + if input == nil { + input = &InputService7TestShapeInputService7TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService7TestShapeInputService7TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { + req, out := c.InputService7TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService7TestShapeInputService7TestCaseOperation1Input struct { + BlobArg []byte `type:"blob"` + + metadataInputService7TestShapeInputService7TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService7TestShapeInputService7TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService7TestShapeInputService7TestCaseOperation1Output struct { + metadataInputService7TestShapeInputService7TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService7TestShapeInputService7TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService8ProtocolTest struct { + *service.Service +} + +// New returns a new InputService8ProtocolTest client. +func NewInputService8ProtocolTest(config *aws.Config) *InputService8ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice8protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &InputService8ProtocolTest{service} +} + +// newRequest creates a new request for a InputService8ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService8TestCaseOperation1 = "OperationName" + +// InputService8TestCaseOperation1Request generates a request for the InputService8TestCaseOperation1 operation. +func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService8TestCaseOperation1, + } + + if input == nil { + input = &InputService8TestShapeInputService8TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService8TestShapeInputService8TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { + req, out := c.InputService8TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService8TestShapeInputService8TestCaseOperation1Input struct { + TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataInputService8TestShapeInputService8TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService8TestShapeInputService8TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService8TestShapeInputService8TestCaseOperation1Output struct { + metadataInputService8TestShapeInputService8TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService8TestShapeInputService8TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +// +// Tests begin here +// + +func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) { + svc := NewInputService1ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService1TestShapeInputService1TestCaseOperation1Input{ + Bar: aws.String("val2"), + Foo: aws.String("val1"), + } + req, _ := svc.InputService1TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + ec2query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&Bar=val2&Foo=val1&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService2ProtocolTestStructureWithLocationNameAndQueryNameAppliedToMembersCase1(t *testing.T) { + svc := NewInputService2ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService2TestShapeInputService2TestCaseOperation1Input{ + Bar: aws.String("val2"), + Foo: aws.String("val1"), + Yuck: aws.String("val3"), + } + req, _ := svc.InputService2TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + ec2query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&BarLocationName=val2&Foo=val1&Version=2014-01-01&yuckQueryName=val3`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService3ProtocolTestNestedStructureMembersCase1(t *testing.T) { + svc := NewInputService3ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService3TestShapeInputService3TestCaseOperation1Input{ + StructArg: &InputService3TestShapeStructType{ + ScalarArg: aws.String("foo"), + }, + } + req, _ := svc.InputService3TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + ec2query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&Struct.Scalar=foo&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService4ProtocolTestListTypesCase1(t *testing.T) { + svc := NewInputService4ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService4TestShapeInputService4TestCaseOperation1Input{ + ListArg: []*string{ + aws.String("foo"), + aws.String("bar"), + aws.String("baz"), + }, + } + req, _ := svc.InputService4TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + ec2query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&ListArg.1=foo&ListArg.2=bar&ListArg.3=baz&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService5ProtocolTestListWithLocationNameAppliedToMemberCase1(t *testing.T) { + svc := NewInputService5ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService5TestShapeInputService5TestCaseOperation1Input{ + ListArg: []*string{ + aws.String("a"), + aws.String("b"), + aws.String("c"), + }, + } + req, _ := svc.InputService5TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + ec2query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&ListMemberName.1=a&ListMemberName.2=b&ListMemberName.3=c&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService6ProtocolTestListWithLocationNameAndQueryNameCase1(t *testing.T) { + svc := NewInputService6ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService6TestShapeInputService6TestCaseOperation1Input{ + ListArg: []*string{ + aws.String("a"), + aws.String("b"), + aws.String("c"), + }, + } + req, _ := svc.InputService6TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + ec2query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&ListQueryName.1=a&ListQueryName.2=b&ListQueryName.3=c&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService7ProtocolTestBase64EncodedBlobsCase1(t *testing.T) { + svc := NewInputService7ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService7TestShapeInputService7TestCaseOperation1Input{ + BlobArg: []byte("foo"), + } + req, _ := svc.InputService7TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + ec2query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&BlobArg=Zm9v&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService8ProtocolTestTimestampValuesCase1(t *testing.T) { + svc := NewInputService8ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService8TestShapeInputService8TestCaseOperation1Input{ + TimeArg: aws.Time(time.Unix(1422172800, 0)), + } + req, _ := svc.InputService8TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + ec2query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/unmarshal.go similarity index 61% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/unmarshal.go index 631e63c0b..bb0f01588 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/unmarshal.go @@ -1,6 +1,6 @@ package ec2query -//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/ec2.json unmarshal_test.go +//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/output/ec2.json unmarshal_test.go import ( "encoding/xml" @@ -8,18 +8,9 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" ) -// UnmarshalHandler is a named request handler for unmarshaling ec2query protocol requests -var UnmarshalHandler = request.NamedHandler{Name: "awssdk.ec2query.Unmarshal", Fn: Unmarshal} - -// UnmarshalMetaHandler is a named request handler for unmarshaling ec2query protocol request metadata -var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.ec2query.UnmarshalMeta", Fn: UnmarshalMeta} - -// UnmarshalErrorHandler is a named request handler for unmarshaling ec2query protocol request errors -var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.ec2query.UnmarshalError", Fn: UnmarshalError} - // Unmarshal unmarshals a response body for the EC2 protocol. func Unmarshal(r *request.Request) { defer r.HTTPResponse.Body.Close() @@ -42,7 +33,7 @@ type xmlErrorResponse struct { XMLName xml.Name `xml:"Response"` Code string `xml:"Errors>Error>Code"` Message string `xml:"Errors>Error>Message"` - RequestID string `xml:"RequestID"` + RequestID string `xml:"RequestId"` } // UnmarshalError unmarshals a response error for the EC2 protocol. diff --git a/vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/unmarshal_test.go new file mode 100644 index 000000000..3d7b0430b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/ec2query/unmarshal_test.go @@ -0,0 +1,836 @@ +package ec2query_test + +import ( + "bytes" + "encoding/json" + "encoding/xml" + "io" + "io/ioutil" + "net/http" + "net/url" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/defaults" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/ec2query" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/signer/v4" + "github.com/aws/aws-sdk-go/internal/util" + "github.com/stretchr/testify/assert" +) + +var _ bytes.Buffer // always import bytes +var _ http.Request +var _ json.Marshaler +var _ time.Time +var _ xmlutil.XMLNode +var _ xml.Attr +var _ = ioutil.Discard +var _ = util.Trim("") +var _ = url.Values{} +var _ = io.EOF + +type OutputService1ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService1ProtocolTest client. +func NewOutputService1ProtocolTest(config *aws.Config) *OutputService1ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice1protocoltest", + APIVersion: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &OutputService1ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService1ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService1TestCaseOperation1 = "OperationName" + +// OutputService1TestCaseOperation1Request generates a request for the OutputService1TestCaseOperation1 operation. +func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService1TestCaseOperation1, + } + + if input == nil { + input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { + req, out := c.OutputService1TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService1TestShapeOutputService1TestCaseOperation1Input struct { + metadataOutputService1TestShapeOutputService1TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService1TestShapeOutputService1TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { + Char *string `type:"character"` + + Double *float64 `type:"double"` + + FalseBool *bool `type:"boolean"` + + Float *float64 `type:"float"` + + Long *int64 `type:"long"` + + Num *int64 `locationName:"FooNum" type:"integer"` + + Str *string `type:"string"` + + TrueBool *bool `type:"boolean"` + + metadataOutputService1TestShapeOutputService1TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService1TestShapeOutputService1TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService2ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService2ProtocolTest client. +func NewOutputService2ProtocolTest(config *aws.Config) *OutputService2ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice2protocoltest", + APIVersion: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &OutputService2ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService2ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService2TestCaseOperation1 = "OperationName" + +// OutputService2TestCaseOperation1Request generates a request for the OutputService2TestCaseOperation1 operation. +func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService2TestCaseOperation1, + } + + if input == nil { + input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { + req, out := c.OutputService2TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService2TestShapeOutputService2TestCaseOperation1Input struct { + metadataOutputService2TestShapeOutputService2TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService2TestShapeOutputService2TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { + Blob []byte `type:"blob"` + + metadataOutputService2TestShapeOutputService2TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService2TestShapeOutputService2TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService3ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService3ProtocolTest client. +func NewOutputService3ProtocolTest(config *aws.Config) *OutputService3ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice3protocoltest", + APIVersion: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &OutputService3ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService3ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService3TestCaseOperation1 = "OperationName" + +// OutputService3TestCaseOperation1Request generates a request for the OutputService3TestCaseOperation1 operation. +func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService3TestCaseOperation1, + } + + if input == nil { + input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { + req, out := c.OutputService3TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService3TestShapeOutputService3TestCaseOperation1Input struct { + metadataOutputService3TestShapeOutputService3TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService3TestShapeOutputService3TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { + ListMember []*string `type:"list"` + + metadataOutputService3TestShapeOutputService3TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService3TestShapeOutputService3TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService4ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService4ProtocolTest client. +func NewOutputService4ProtocolTest(config *aws.Config) *OutputService4ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice4protocoltest", + APIVersion: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &OutputService4ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService4ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService4TestCaseOperation1 = "OperationName" + +// OutputService4TestCaseOperation1Request generates a request for the OutputService4TestCaseOperation1 operation. +func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService4TestCaseOperation1, + } + + if input == nil { + input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { + req, out := c.OutputService4TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService4TestShapeOutputService4TestCaseOperation1Input struct { + metadataOutputService4TestShapeOutputService4TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService4TestShapeOutputService4TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { + ListMember []*string `locationNameList:"item" type:"list"` + + metadataOutputService4TestShapeOutputService4TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService4TestShapeOutputService4TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService5ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService5ProtocolTest client. +func NewOutputService5ProtocolTest(config *aws.Config) *OutputService5ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice5protocoltest", + APIVersion: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &OutputService5ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService5ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService5TestCaseOperation1 = "OperationName" + +// OutputService5TestCaseOperation1Request generates a request for the OutputService5TestCaseOperation1 operation. +func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService5TestCaseOperation1, + } + + if input == nil { + input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { + req, out := c.OutputService5TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService5TestShapeOutputService5TestCaseOperation1Input struct { + metadataOutputService5TestShapeOutputService5TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService5TestShapeOutputService5TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { + ListMember []*string `type:"list" flattened:"true"` + + metadataOutputService5TestShapeOutputService5TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService5TestShapeOutputService5TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService6ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService6ProtocolTest client. +func NewOutputService6ProtocolTest(config *aws.Config) *OutputService6ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice6protocoltest", + APIVersion: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &OutputService6ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService6ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService6TestCaseOperation1 = "OperationName" + +// OutputService6TestCaseOperation1Request generates a request for the OutputService6TestCaseOperation1 operation. +func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService6TestCaseOperation1, + } + + if input == nil { + input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { + req, out := c.OutputService6TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService6TestShapeOutputService6TestCaseOperation1Input struct { + metadataOutputService6TestShapeOutputService6TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService6TestShapeOutputService6TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { + Map map[string]*OutputService6TestShapeStructureType `type:"map"` + + metadataOutputService6TestShapeOutputService6TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService6TestShapeOutputService6TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService6TestShapeStructureType struct { + Foo *string `locationName:"foo" type:"string"` + + metadataOutputService6TestShapeStructureType `json:"-" xml:"-"` +} + +type metadataOutputService6TestShapeStructureType struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService7ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService7ProtocolTest client. +func NewOutputService7ProtocolTest(config *aws.Config) *OutputService7ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice7protocoltest", + APIVersion: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &OutputService7ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService7ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService7TestCaseOperation1 = "OperationName" + +// OutputService7TestCaseOperation1Request generates a request for the OutputService7TestCaseOperation1 operation. +func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (req *request.Request, output *OutputService7TestShapeOutputService7TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService7TestCaseOperation1, + } + + if input == nil { + input = &OutputService7TestShapeOutputService7TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService7TestShapeOutputService7TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) { + req, out := c.OutputService7TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService7TestShapeOutputService7TestCaseOperation1Input struct { + metadataOutputService7TestShapeOutputService7TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService7TestShapeOutputService7TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { + Map map[string]*string `type:"map" flattened:"true"` + + metadataOutputService7TestShapeOutputService7TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService7TestShapeOutputService7TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService8ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService8ProtocolTest client. +func NewOutputService8ProtocolTest(config *aws.Config) *OutputService8ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice8protocoltest", + APIVersion: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) + + return &OutputService8ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService8ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService8TestCaseOperation1 = "OperationName" + +// OutputService8TestCaseOperation1Request generates a request for the OutputService8TestCaseOperation1 operation. +func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService8TestCaseOperation1, + } + + if input == nil { + input = &OutputService8TestShapeOutputService8TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService8TestShapeOutputService8TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) { + req, out := c.OutputService8TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService8TestShapeOutputService8TestCaseOperation1Input struct { + metadataOutputService8TestShapeOutputService8TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService8TestShapeOutputService8TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { + Map map[string]*string `locationNameKey:"foo" locationNameValue:"bar" type:"map" flattened:"true"` + + metadataOutputService8TestShapeOutputService8TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService8TestShapeOutputService8TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +// +// Tests begin here +// + +func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) { + svc := NewOutputService1ProtocolTest(nil) + + buf := bytes.NewReader([]byte("myname123falsetrue1.21.3200arequest-id")) + req, out := svc.OutputService1TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + ec2query.UnmarshalMeta(req) + ec2query.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "a", *out.Char) + assert.Equal(t, 1.3, *out.Double) + assert.Equal(t, false, *out.FalseBool) + assert.Equal(t, 1.2, *out.Float) + assert.Equal(t, int64(200), *out.Long) + assert.Equal(t, int64(123), *out.Num) + assert.Equal(t, "myname", *out.Str) + assert.Equal(t, true, *out.TrueBool) + +} + +func TestOutputService2ProtocolTestBlobCase1(t *testing.T) { + svc := NewOutputService2ProtocolTest(nil) + + buf := bytes.NewReader([]byte("dmFsdWU=requestid")) + req, out := svc.OutputService2TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + ec2query.UnmarshalMeta(req) + ec2query.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "value", string(out.Blob)) + +} + +func TestOutputService3ProtocolTestListsCase1(t *testing.T) { + svc := NewOutputService3ProtocolTest(nil) + + buf := bytes.NewReader([]byte("abc123requestid")) + req, out := svc.OutputService3TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + ec2query.UnmarshalMeta(req) + ec2query.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "abc", *out.ListMember[0]) + assert.Equal(t, "123", *out.ListMember[1]) + +} + +func TestOutputService4ProtocolTestListWithCustomMemberNameCase1(t *testing.T) { + svc := NewOutputService4ProtocolTest(nil) + + buf := bytes.NewReader([]byte("abc123requestid")) + req, out := svc.OutputService4TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + ec2query.UnmarshalMeta(req) + ec2query.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "abc", *out.ListMember[0]) + assert.Equal(t, "123", *out.ListMember[1]) + +} + +func TestOutputService5ProtocolTestFlattenedListCase1(t *testing.T) { + svc := NewOutputService5ProtocolTest(nil) + + buf := bytes.NewReader([]byte("abc123requestid")) + req, out := svc.OutputService5TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + ec2query.UnmarshalMeta(req) + ec2query.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "abc", *out.ListMember[0]) + assert.Equal(t, "123", *out.ListMember[1]) + +} + +func TestOutputService6ProtocolTestNormalMapCase1(t *testing.T) { + svc := NewOutputService6ProtocolTest(nil) + + buf := bytes.NewReader([]byte("quxbarbazbamrequestid")) + req, out := svc.OutputService6TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + ec2query.UnmarshalMeta(req) + ec2query.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "bam", *out.Map["baz"].Foo) + assert.Equal(t, "bar", *out.Map["qux"].Foo) + +} + +func TestOutputService7ProtocolTestFlattenedMapCase1(t *testing.T) { + svc := NewOutputService7ProtocolTest(nil) + + buf := bytes.NewReader([]byte("quxbarbazbamrequestid")) + req, out := svc.OutputService7TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + ec2query.UnmarshalMeta(req) + ec2query.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "bam", *out.Map["baz"]) + assert.Equal(t, "bar", *out.Map["qux"]) + +} + +func TestOutputService8ProtocolTestNamedMapCase1(t *testing.T) { + svc := NewOutputService8ProtocolTest(nil) + + buf := bytes.NewReader([]byte("quxbarbazbamrequestid")) + req, out := svc.OutputService8TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + ec2query.UnmarshalMeta(req) + ec2query.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "bam", *out.Map["baz"]) + assert.Equal(t, "bar", *out.Map["qux"]) + +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil/build.go similarity index 60% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil/build.go index 7ad674278..6be6a56a5 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil/build.go @@ -8,14 +8,10 @@ import ( "reflect" "sort" "strconv" + "strings" "time" - - "github.com/aws/aws-sdk-go/private/protocol" ) -var timeType = reflect.ValueOf(time.Time{}).Type() -var byteSliceType = reflect.ValueOf([]byte{}).Type() - // BuildJSON builds a JSON string for a given object v. func BuildJSON(v interface{}) ([]byte, error) { var buf bytes.Buffer @@ -37,7 +33,7 @@ func buildAny(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) err switch vtype.Kind() { case reflect.Struct: // also it can't be a time object - if value.Type() != timeType { + if _, ok := value.Interface().(time.Time); !ok { t = "structure" } case reflect.Slice: @@ -52,7 +48,7 @@ func buildAny(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) err switch t { case "structure": - if field, ok := vtype.FieldByName("_"); ok { + if field, ok := vtype.FieldByName("SDKShapeTraits"); ok { tag = field.Tag } return buildStruct(value, buf, tag) @@ -81,38 +77,27 @@ func buildStruct(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) } } - buf.WriteByte('{') + buf.WriteString("{") - t := value.Type() - first := true + t, fields := value.Type(), []*reflect.StructField{} for i := 0; i < t.NumField(); i++ { - member := value.Field(i) field := t.Field(i) - - if field.PkgPath != "" { - continue // ignore unexported fields + member := value.FieldByName(field.Name) + if (member.Kind() == reflect.Ptr || member.Kind() == reflect.Slice || member.Kind() == reflect.Map) && member.IsNil() { + continue // ignore unset fields } - if field.Tag.Get("json") == "-" { - continue + if c := field.Name[0:1]; strings.ToLower(c) == c { + continue // ignore unexported fields } if field.Tag.Get("location") != "" { continue // ignore non-body elements } - if protocol.CanSetIdempotencyToken(member, field) { - token := protocol.GetIdempotencyToken() - member = reflect.ValueOf(&token) - } + fields = append(fields, &field) + } - if (member.Kind() == reflect.Ptr || member.Kind() == reflect.Slice || member.Kind() == reflect.Map) && member.IsNil() { - continue // ignore unset fields - } - - if first { - first = false - } else { - buf.WriteByte(',') - } + for i, field := range fields { + member := value.FieldByName(field.Name) // figure out what this field is called name := field.Name @@ -120,14 +105,16 @@ func buildStruct(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) name = locName } - writeString(name, buf) - buf.WriteString(`:`) + buf.WriteString(fmt.Sprintf("%q:", name)) err := buildAny(member, buf, field.Tag) if err != nil { return err } + if i < len(fields)-1 { + buf.WriteString(",") + } } buf.WriteString("}") @@ -151,27 +138,22 @@ func buildList(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) er return nil } -type sortedValues []reflect.Value - -func (sv sortedValues) Len() int { return len(sv) } -func (sv sortedValues) Swap(i, j int) { sv[i], sv[j] = sv[j], sv[i] } -func (sv sortedValues) Less(i, j int) bool { return sv[i].String() < sv[j].String() } - func buildMap(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) error { buf.WriteString("{") - var sv sortedValues = value.MapKeys() - sort.Sort(sv) - - for i, k := range sv { - if i > 0 { - buf.WriteByte(',') - } + keys := make([]string, value.Len()) + for i, n := range value.MapKeys() { + keys[i] = n.String() + } + sort.Strings(keys) - writeString(k.String(), buf) - buf.WriteString(`:`) + for i, k := range keys { + buf.WriteString(fmt.Sprintf("%q:", k)) + buildAny(value.MapIndex(reflect.ValueOf(k)), buf, "") - buildAny(value.MapIndex(k), buf, "") + if i < len(keys)-1 { + buf.WriteString(",") + } } buf.WriteString("}") @@ -180,41 +162,23 @@ func buildMap(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) err } func buildScalar(value reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) error { - switch value.Kind() { - case reflect.String: - writeString(value.String(), buf) - case reflect.Bool: - buf.WriteString(strconv.FormatBool(value.Bool())) - case reflect.Int64: - buf.WriteString(strconv.FormatInt(value.Int(), 10)) - case reflect.Float64: - buf.WriteString(strconv.FormatFloat(value.Float(), 'f', -1, 64)) - default: - switch value.Type() { - case timeType: - converted := value.Interface().(time.Time) - buf.WriteString(strconv.FormatInt(converted.UTC().Unix(), 10)) - case byteSliceType: - if !value.IsNil() { - converted := value.Interface().([]byte) - buf.WriteByte('"') - if len(converted) < 1024 { - // for small buffers, using Encode directly is much faster. - dst := make([]byte, base64.StdEncoding.EncodedLen(len(converted))) - base64.StdEncoding.Encode(dst, converted) - buf.Write(dst) - } else { - // for large buffers, avoid unnecessary extra temporary - // buffer space. - enc := base64.NewEncoder(base64.StdEncoding, buf) - enc.Write(converted) - enc.Close() - } - buf.WriteByte('"') - } - default: - return fmt.Errorf("unsupported JSON value %v (%s)", value.Interface(), value.Type()) + switch converted := value.Interface().(type) { + case string: + writeString(converted, buf) + case []byte: + if !value.IsNil() { + buf.WriteString(fmt.Sprintf("%q", base64.StdEncoding.EncodeToString(converted))) } + case bool: + buf.WriteString(strconv.FormatBool(converted)) + case int64: + buf.WriteString(strconv.FormatInt(converted, 10)) + case float64: + buf.WriteString(strconv.FormatFloat(converted, 'f', -1, 64)) + case time.Time: + buf.WriteString(strconv.FormatInt(converted.UTC().Unix(), 10)) + default: + return fmt.Errorf("unsupported JSON value %v (%s)", value.Interface(), value.Type()) } return nil } @@ -251,4 +215,4 @@ func elemOf(value reflect.Value) reflect.Value { value = value.Elem() } return value -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil/build_test.go similarity index 95% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil/build_test.go index cb9cc458f..a5a41c0b2 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil/build_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil" + "github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil" "github.com/stretchr/testify/assert" ) diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil/unmarshal.go similarity index 96% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil/unmarshal.go index fea535613..730dcd0f8 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil/unmarshal.go @@ -7,6 +7,7 @@ import ( "io" "io/ioutil" "reflect" + "strings" "time" ) @@ -56,7 +57,7 @@ func unmarshalAny(value reflect.Value, data interface{}, tag reflect.StructTag) switch t { case "structure": - if field, ok := vtype.FieldByName("_"); ok { + if field, ok := vtype.FieldByName("SDKShapeTraits"); ok { tag = field.Tag } return unmarshalStruct(value, data, tag) @@ -98,7 +99,7 @@ func unmarshalStruct(value reflect.Value, data interface{}, tag reflect.StructTa for i := 0; i < t.NumField(); i++ { field := t.Field(i) - if field.PkgPath != "" { + if c := field.Name[0:1]; strings.ToLower(c) == c { continue // ignore unexported fields } @@ -108,7 +109,7 @@ func unmarshalStruct(value reflect.Value, data interface{}, tag reflect.StructTa name = locName } - member := value.FieldByIndex(field.Index) + member := value.FieldByName(field.Name) err := unmarshalAny(member, mapData[name], field.Tag) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/build_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/jsonrpc/build_test.go similarity index 51% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/build_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/jsonrpc/build_test.go index c8a46cac8..39f0babc6 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/build_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/jsonrpc/build_test.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/json" "encoding/xml" - "fmt" "io" "io/ioutil" "net/http" @@ -13,16 +12,14 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" - "github.com/aws/aws-sdk-go/private/signer/v4" - "github.com/aws/aws-sdk-go/private/util" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/signer/v4" + "github.com/aws/aws-sdk-go/internal/util" "github.com/stretchr/testify/assert" ) @@ -36,59 +33,32 @@ var _ = ioutil.Discard var _ = util.Trim("") var _ = url.Values{} var _ = io.EOF -var _ = aws.String -var _ = fmt.Println -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type InputService1ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService1ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService1ProtocolTest client from just a session. -// svc := inputservice1protocoltest.New(mySession) -// -// // Create a InputService1ProtocolTest client with additional configuration -// svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { - c := p.ClientConfig("inputservice1protocoltest", cfgs...) - return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest { - svc := &InputService1ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice1protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "1.1", - TargetPrefix: "com.amazonaws.foo", - }, - handlers, - ), + *service.Service +} + +// New returns a new InputService1ProtocolTest client. +func NewInputService1ProtocolTest(config *aws.Config) *InputService1ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice1protocoltest", + APIVersion: "", + JSONVersion: "1.1", + TargetPrefix: "com.amazonaws.foo", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - return svc + return &InputService1ProtocolTest{service} } // newRequest creates a new request for a InputService1ProtocolTest operation and runs any @@ -113,8 +83,6 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService1TestShapeInputService1TestCaseOperation1Output{} req.Data = output return @@ -127,61 +95,48 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *Input } type InputService1TestShapeInputService1TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - Name *string `type:"string"` + + metadataInputService1TestShapeInputService1TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService1TestShapeInputService1TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` } type InputService1TestShapeInputService1TestCaseOperation1Output struct { - _ struct{} `type:"structure"` + metadataInputService1TestShapeInputService1TestCaseOperation1Output `json:"-" xml:"-"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService2ProtocolTest struct { - *client.Client +type metadataInputService1TestShapeInputService1TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -// New creates a new instance of the InputService2ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService2ProtocolTest client from just a session. -// svc := inputservice2protocoltest.New(mySession) -// -// // Create a InputService2ProtocolTest client with additional configuration -// svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { - c := p.ClientConfig("inputservice2protocoltest", cfgs...) - return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest { - svc := &InputService2ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice2protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "1.1", - TargetPrefix: "com.amazonaws.foo", - }, - handlers, - ), +type InputService2ProtocolTest struct { + *service.Service +} + +// New returns a new InputService2ProtocolTest client. +func NewInputService2ProtocolTest(config *aws.Config) *InputService2ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice2protocoltest", + APIVersion: "", + JSONVersion: "1.1", + TargetPrefix: "com.amazonaws.foo", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - return svc + return &InputService2ProtocolTest{service} } // newRequest creates a new request for a InputService2ProtocolTest operation and runs any @@ -205,8 +160,6 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService2TestShapeInputService2TestCaseOperation1Output{} req.Data = output return @@ -219,61 +172,48 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *Input } type InputService2TestShapeInputService2TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - TimeArg *time.Time `type:"timestamp" timestampFormat:"unix"` + + metadataInputService2TestShapeInputService2TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService2TestShapeInputService2TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` } type InputService2TestShapeInputService2TestCaseOperation1Output struct { - _ struct{} `type:"structure"` + metadataInputService2TestShapeInputService2TestCaseOperation1Output `json:"-" xml:"-"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService3ProtocolTest struct { - *client.Client +type metadataInputService2TestShapeInputService2TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -// New creates a new instance of the InputService3ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService3ProtocolTest client from just a session. -// svc := inputservice3protocoltest.New(mySession) -// -// // Create a InputService3ProtocolTest client with additional configuration -// svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { - c := p.ClientConfig("inputservice3protocoltest", cfgs...) - return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest { - svc := &InputService3ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice3protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "1.1", - TargetPrefix: "com.amazonaws.foo", - }, - handlers, - ), +type InputService3ProtocolTest struct { + *service.Service +} + +// New returns a new InputService3ProtocolTest client. +func NewInputService3ProtocolTest(config *aws.Config) *InputService3ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice3protocoltest", + APIVersion: "", + JSONVersion: "1.1", + TargetPrefix: "com.amazonaws.foo", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - return svc + return &InputService3ProtocolTest{service} } // newRequest creates a new request for a InputService3ProtocolTest operation and runs any @@ -297,8 +237,6 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService3TestShapeInputService3TestCaseOperation1Output{} req.Data = output return @@ -323,8 +261,6 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService3TestShapeInputService3TestCaseOperation2Output{} req.Data = output return @@ -337,68 +273,58 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *Input } type InputService3TestShapeInputService3TestCaseOperation1Output struct { - _ struct{} `type:"structure"` + metadataInputService3TestShapeInputService3TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeInputService3TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } type InputService3TestShapeInputService3TestCaseOperation2Output struct { - _ struct{} `type:"structure"` + metadataInputService3TestShapeInputService3TestCaseOperation2Output `json:"-" xml:"-"` } -type InputService3TestShapeInputShape struct { - _ struct{} `type:"structure"` +type metadataInputService3TestShapeInputService3TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} - // BlobArg is automatically base64 encoded/decoded by the SDK. +type InputService3TestShapeInputShape struct { BlobArg []byte `type:"blob"` BlobMap map[string][]byte `type:"map"` + + metadataInputService3TestShapeInputShape `json:"-" xml:"-"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService4ProtocolTest struct { - *client.Client +type metadataInputService3TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure"` } -// New creates a new instance of the InputService4ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService4ProtocolTest client from just a session. -// svc := inputservice4protocoltest.New(mySession) -// -// // Create a InputService4ProtocolTest client with additional configuration -// svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { - c := p.ClientConfig("inputservice4protocoltest", cfgs...) - return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest { - svc := &InputService4ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice4protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "1.1", - TargetPrefix: "com.amazonaws.foo", - }, - handlers, - ), +type InputService4ProtocolTest struct { + *service.Service +} + +// New returns a new InputService4ProtocolTest client. +func NewInputService4ProtocolTest(config *aws.Config) *InputService4ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice4protocoltest", + APIVersion: "", + JSONVersion: "1.1", + TargetPrefix: "com.amazonaws.foo", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - return svc + return &InputService4ProtocolTest{service} } // newRequest creates a new request for a InputService4ProtocolTest operation and runs any @@ -423,8 +349,6 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService4TestShapeInputService4TestCaseOperation1Output{} req.Data = output return @@ -437,61 +361,48 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *Input } type InputService4TestShapeInputService4TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - ListParam [][]byte `type:"list"` + + metadataInputService4TestShapeInputService4TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeInputService4TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` } type InputService4TestShapeInputService4TestCaseOperation1Output struct { - _ struct{} `type:"structure"` + metadataInputService4TestShapeInputService4TestCaseOperation1Output `json:"-" xml:"-"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService5ProtocolTest struct { - *client.Client +type metadataInputService4TestShapeInputService4TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -// New creates a new instance of the InputService5ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService5ProtocolTest client from just a session. -// svc := inputservice5protocoltest.New(mySession) -// -// // Create a InputService5ProtocolTest client with additional configuration -// svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { - c := p.ClientConfig("inputservice5protocoltest", cfgs...) - return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest { - svc := &InputService5ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice5protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "1.1", - TargetPrefix: "com.amazonaws.foo", - }, - handlers, - ), +type InputService5ProtocolTest struct { + *service.Service +} + +// New returns a new InputService5ProtocolTest client. +func NewInputService5ProtocolTest(config *aws.Config) *InputService5ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice5protocoltest", + APIVersion: "", + JSONVersion: "1.1", + TargetPrefix: "com.amazonaws.foo", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - return svc + return &InputService5ProtocolTest{service} } // newRequest creates a new request for a InputService5ProtocolTest operation and runs any @@ -515,8 +426,6 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService5TestShapeInputService5TestCaseOperation1Output{} req.Data = output return @@ -541,8 +450,6 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation2Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService5TestShapeInputService5TestCaseOperation2Output{} req.Data = output return @@ -567,8 +474,6 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation3Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService5TestShapeInputService5TestCaseOperation3Output{} req.Data = output return @@ -593,8 +498,6 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation4Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService5TestShapeInputService5TestCaseOperation4Output{} req.Data = output return @@ -619,8 +522,6 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation5Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService5TestShapeInputService5TestCaseOperation5Output{} req.Data = output return @@ -645,8 +546,6 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation6Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService5TestShapeInputService5TestCaseOperation6Output{} req.Data = output return @@ -659,38 +558,64 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation6(input *Input } type InputService5TestShapeInputService5TestCaseOperation1Output struct { - _ struct{} `type:"structure"` + metadataInputService5TestShapeInputService5TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } type InputService5TestShapeInputService5TestCaseOperation2Output struct { - _ struct{} `type:"structure"` + metadataInputService5TestShapeInputService5TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` } type InputService5TestShapeInputService5TestCaseOperation3Output struct { - _ struct{} `type:"structure"` + metadataInputService5TestShapeInputService5TestCaseOperation3Output `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation3Output struct { + SDKShapeTraits bool `type:"structure"` } type InputService5TestShapeInputService5TestCaseOperation4Output struct { - _ struct{} `type:"structure"` + metadataInputService5TestShapeInputService5TestCaseOperation4Output `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation4Output struct { + SDKShapeTraits bool `type:"structure"` } type InputService5TestShapeInputService5TestCaseOperation5Output struct { - _ struct{} `type:"structure"` + metadataInputService5TestShapeInputService5TestCaseOperation5Output `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation5Output struct { + SDKShapeTraits bool `type:"structure"` } type InputService5TestShapeInputService5TestCaseOperation6Output struct { - _ struct{} `type:"structure"` + metadataInputService5TestShapeInputService5TestCaseOperation6Output `json:"-" xml:"-"` } -type InputService5TestShapeInputShape struct { - _ struct{} `type:"structure"` +type metadataInputService5TestShapeInputService5TestCaseOperation6Output struct { + SDKShapeTraits bool `type:"structure"` +} +type InputService5TestShapeInputShape struct { RecursiveStruct *InputService5TestShapeRecursiveStructType `type:"structure"` + + metadataInputService5TestShapeInputShape `json:"-" xml:"-"` } -type InputService5TestShapeRecursiveStructType struct { - _ struct{} `type:"structure"` +type metadataInputService5TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure"` +} +type InputService5TestShapeRecursiveStructType struct { NoRecurse *string `type:"string"` RecursiveList []*InputService5TestShapeRecursiveStructType `type:"list"` @@ -698,54 +623,39 @@ type InputService5TestShapeRecursiveStructType struct { RecursiveMap map[string]*InputService5TestShapeRecursiveStructType `type:"map"` RecursiveStruct *InputService5TestShapeRecursiveStructType `type:"structure"` + + metadataInputService5TestShapeRecursiveStructType `json:"-" xml:"-"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService6ProtocolTest struct { - *client.Client +type metadataInputService5TestShapeRecursiveStructType struct { + SDKShapeTraits bool `type:"structure"` } -// New creates a new instance of the InputService6ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService6ProtocolTest client from just a session. -// svc := inputservice6protocoltest.New(mySession) -// -// // Create a InputService6ProtocolTest client with additional configuration -// svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { - c := p.ClientConfig("inputservice6protocoltest", cfgs...) - return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest { - svc := &InputService6ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice6protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "1.1", - TargetPrefix: "com.amazonaws.foo", - }, - handlers, - ), +type InputService6ProtocolTest struct { + *service.Service +} + +// New returns a new InputService6ProtocolTest client. +func NewInputService6ProtocolTest(config *aws.Config) *InputService6ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice6protocoltest", + APIVersion: "", + JSONVersion: "1.1", + TargetPrefix: "com.amazonaws.foo", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - return svc + return &InputService6ProtocolTest{service} } // newRequest creates a new request for a InputService6ProtocolTest operation and runs any @@ -770,8 +680,6 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &InputService6TestShapeInputService6TestCaseOperation1Output{} req.Data = output return @@ -784,139 +692,21 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *Input } type InputService6TestShapeInputService6TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - Map map[string]*string `type:"map"` -} - -type InputService6TestShapeInputService6TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService7ProtocolTest struct { - *client.Client + metadataInputService6TestShapeInputService6TestCaseOperation1Input `json:"-" xml:"-"` } -// New creates a new instance of the InputService7ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService7ProtocolTest client from just a session. -// svc := inputservice7protocoltest.New(mySession) -// -// // Create a InputService7ProtocolTest client with additional configuration -// svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { - c := p.ClientConfig("inputservice7protocoltest", cfgs...) - return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest { - svc := &InputService7ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice7protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - JSONVersion: "", - TargetPrefix: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - return svc +type metadataInputService6TestShapeInputService6TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` } -// newRequest creates a new request for a InputService7ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService7TestCaseOperation1 = "OperationName" - -// InputService7TestCaseOperation1Request generates a request for the InputService7TestCaseOperation1 operation. -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputShape) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService7TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService7TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputShape) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { - req, out := c.InputService7TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService7TestCaseOperation2 = "OperationName" - -// InputService7TestCaseOperation2Request generates a request for the InputService7TestCaseOperation2 operation. -func (c *InputService7ProtocolTest) InputService7TestCaseOperation2Request(input *InputService7TestShapeInputShape) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService7TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService7TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService7ProtocolTest) InputService7TestCaseOperation2(input *InputService7TestShapeInputShape) (*InputService7TestShapeInputService7TestCaseOperation2Output, error) { - req, out := c.InputService7TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService7TestShapeInputService7TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService7TestShapeInputService7TestCaseOperation2Output struct { - _ struct{} `type:"structure"` +type InputService6TestShapeInputService6TestCaseOperation1Output struct { + metadataInputService6TestShapeInputService6TestCaseOperation1Output `json:"-" xml:"-"` } -type InputService7TestShapeInputShape struct { - _ struct{} `type:"structure"` - - Token *string `type:"string" idempotencyToken:"true"` +type metadataInputService6TestShapeInputService6TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } // @@ -924,8 +714,9 @@ type InputService7TestShapeInputShape struct { // func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) { - sess := session.New() - svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService1ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService1TestShapeInputService1TestCaseOperation1Input{ Name: aws.String("myname"), } @@ -939,10 +730,10 @@ func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"Name":"myname"}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"Name":"myname"}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -951,8 +742,9 @@ func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) { } func TestInputService2ProtocolTestTimestampValuesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService2ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService2ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService2TestShapeInputService2TestCaseOperation1Input{ TimeArg: aws.Time(time.Unix(1422172800, 0)), } @@ -966,10 +758,10 @@ func TestInputService2ProtocolTestTimestampValuesCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"TimeArg":1422172800}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"TimeArg":1422172800}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -978,8 +770,9 @@ func TestInputService2ProtocolTestTimestampValuesCase1(t *testing.T) { } func TestInputService3ProtocolTestBase64EncodedBlobsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService3ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService3TestShapeInputShape{ BlobArg: []byte("foo"), } @@ -993,10 +786,10 @@ func TestInputService3ProtocolTestBase64EncodedBlobsCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"BlobArg":"Zm9v"}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"BlobArg":"Zm9v"}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -1005,8 +798,9 @@ func TestInputService3ProtocolTestBase64EncodedBlobsCase1(t *testing.T) { } func TestInputService3ProtocolTestBase64EncodedBlobsCase2(t *testing.T) { - sess := session.New() - svc := NewInputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService3ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService3TestShapeInputShape{ BlobMap: map[string][]byte{ "key1": []byte("foo"), @@ -1023,10 +817,10 @@ func TestInputService3ProtocolTestBase64EncodedBlobsCase2(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"BlobMap":{"key1":"Zm9v","key2":"YmFy"}}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"BlobMap":{"key1":"Zm9v","key2":"YmFy"}}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -1035,8 +829,9 @@ func TestInputService3ProtocolTestBase64EncodedBlobsCase2(t *testing.T) { } func TestInputService4ProtocolTestNestedBlobsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService4ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService4TestShapeInputService4TestCaseOperation1Input{ ListParam: [][]byte{ []byte("foo"), @@ -1053,10 +848,10 @@ func TestInputService4ProtocolTestNestedBlobsCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"ListParam":["Zm9v","YmFy"]}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"ListParam":["Zm9v","YmFy"]}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -1065,8 +860,9 @@ func TestInputService4ProtocolTestNestedBlobsCase1(t *testing.T) { } func TestInputService5ProtocolTestRecursiveShapesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService5ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService5TestShapeInputShape{ RecursiveStruct: &InputService5TestShapeRecursiveStructType{ NoRecurse: aws.String("foo"), @@ -1082,10 +878,10 @@ func TestInputService5ProtocolTestRecursiveShapesCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"NoRecurse":"foo"}}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"NoRecurse":"foo"}}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -1094,8 +890,9 @@ func TestInputService5ProtocolTestRecursiveShapesCase1(t *testing.T) { } func TestInputService5ProtocolTestRecursiveShapesCase2(t *testing.T) { - sess := session.New() - svc := NewInputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService5ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService5TestShapeInputShape{ RecursiveStruct: &InputService5TestShapeRecursiveStructType{ RecursiveStruct: &InputService5TestShapeRecursiveStructType{ @@ -1113,10 +910,10 @@ func TestInputService5ProtocolTestRecursiveShapesCase2(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -1125,8 +922,9 @@ func TestInputService5ProtocolTestRecursiveShapesCase2(t *testing.T) { } func TestInputService5ProtocolTestRecursiveShapesCase3(t *testing.T) { - sess := session.New() - svc := NewInputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService5ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService5TestShapeInputShape{ RecursiveStruct: &InputService5TestShapeRecursiveStructType{ RecursiveStruct: &InputService5TestShapeRecursiveStructType{ @@ -1148,10 +946,10 @@ func TestInputService5ProtocolTestRecursiveShapesCase3(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}}}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}}}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -1160,8 +958,9 @@ func TestInputService5ProtocolTestRecursiveShapesCase3(t *testing.T) { } func TestInputService5ProtocolTestRecursiveShapesCase4(t *testing.T) { - sess := session.New() - svc := NewInputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService5ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService5TestShapeInputShape{ RecursiveStruct: &InputService5TestShapeRecursiveStructType{ RecursiveList: []*InputService5TestShapeRecursiveStructType{ @@ -1184,10 +983,10 @@ func TestInputService5ProtocolTestRecursiveShapesCase4(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"NoRecurse":"bar"}]}}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"NoRecurse":"bar"}]}}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -1196,8 +995,9 @@ func TestInputService5ProtocolTestRecursiveShapesCase4(t *testing.T) { } func TestInputService5ProtocolTestRecursiveShapesCase5(t *testing.T) { - sess := session.New() - svc := NewInputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService5ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService5TestShapeInputShape{ RecursiveStruct: &InputService5TestShapeRecursiveStructType{ RecursiveList: []*InputService5TestShapeRecursiveStructType{ @@ -1222,10 +1022,10 @@ func TestInputService5ProtocolTestRecursiveShapesCase5(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"RecursiveStruct":{"NoRecurse":"bar"}}]}}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"RecursiveStruct":{"NoRecurse":"bar"}}]}}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -1234,8 +1034,9 @@ func TestInputService5ProtocolTestRecursiveShapesCase5(t *testing.T) { } func TestInputService5ProtocolTestRecursiveShapesCase6(t *testing.T) { - sess := session.New() - svc := NewInputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService5ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService5TestShapeInputShape{ RecursiveStruct: &InputService5TestShapeRecursiveStructType{ RecursiveMap: map[string]*InputService5TestShapeRecursiveStructType{ @@ -1258,10 +1059,10 @@ func TestInputService5ProtocolTestRecursiveShapesCase6(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveMap":{"foo":{"NoRecurse":"foo"},"bar":{"NoRecurse":"bar"}}}}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"RecursiveMap":{"bar":{"NoRecurse":"bar"},"foo":{"NoRecurse":"foo"}}}}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) @@ -1270,8 +1071,9 @@ func TestInputService5ProtocolTestRecursiveShapesCase6(t *testing.T) { } func TestInputService6ProtocolTestEmptyMapsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService6ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewInputService6ProtocolTest(nil) + svc.Endpoint = "https://test" + input := &InputService6TestShapeInputService6TestCaseOperation1Input{ Map: map[string]*string{}, } @@ -1285,61 +1087,13 @@ func TestInputService6ProtocolTestEmptyMapsCase1(t *testing.T) { // assert body assert.NotNil(t, r.Body) body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"Map":{}}`, util.Trim(string(body))) + assert.Equal(t, util.Trim(`{"Map":{}}`), util.Trim(string(body))) // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) + assert.Equal(t, "https://test/", r.URL.String()) // assert headers assert.Equal(t, "application/x-amz-json-1.1", r.Header.Get("Content-Type")) assert.Equal(t, "com.amazonaws.foo.OperationName", r.Header.Get("X-Amz-Target")) } - -func TestInputService7ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { - sess := session.New() - svc := NewInputService7ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService7TestShapeInputShape{ - Token: aws.String("abc123"), - } - req, _ := svc.InputService7TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - jsonrpc.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"Token":"abc123"}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService7ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { - sess := session.New() - svc := NewInputService7ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService7TestShapeInputShape{} - req, _ := svc.InputService7TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - jsonrpc.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"Token":"00000000-0000-4000-8000-000000000000"}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/jsonrpc/jsonrpc.go similarity index 62% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/jsonrpc/jsonrpc.go index 7aff0e0fa..a0df55b1e 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/jsonrpc/jsonrpc.go @@ -2,8 +2,8 @@ // requests and responses. package jsonrpc -//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/input/json.json build_test.go -//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/json.json unmarshal_test.go +//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/input/json.json build_test.go +//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/output/json.json unmarshal_test.go import ( "encoding/json" @@ -12,24 +12,12 @@ import ( "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/rest" + "github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil" + "github.com/aws/aws-sdk-go/internal/protocol/rest" ) 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} - -// UnmarshalMetaHandler is a named request handler for unmarshaling jsonrpc protocol request metadata -var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.jsonrpc.UnmarshalMeta", Fn: UnmarshalMeta} - -// UnmarshalErrorHandler is a named request handler for unmarshaling jsonrpc protocol request errors -var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.jsonrpc.UnmarshalError", Fn: UnmarshalError} - // Build builds a JSON payload for a JSON RPC request. func Build(req *request.Request) { var buf []byte @@ -44,16 +32,16 @@ func Build(req *request.Request) { buf = emptyJSON } - if req.ClientInfo.TargetPrefix != "" || string(buf) != "{}" { + if req.Service.TargetPrefix != "" || string(buf) != "{}" { req.SetBufferBody(buf) } - if req.ClientInfo.TargetPrefix != "" { - target := req.ClientInfo.TargetPrefix + "." + req.Operation.Name + if req.Service.TargetPrefix != "" { + target := req.Service.TargetPrefix + "." + req.Operation.Name req.HTTPRequest.Header.Add("X-Amz-Target", target) } - if req.ClientInfo.JSONVersion != "" { - jsonVersion := req.ClientInfo.JSONVersion + if req.Service.JSONVersion != "" { + jsonVersion := req.Service.JSONVersion req.HTTPRequest.Header.Add("Content-Type", "application/x-amz-json-"+jsonVersion) } } diff --git a/vendor/github.com/aws/aws-sdk-go/internal/protocol/jsonrpc/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/jsonrpc/unmarshal_test.go new file mode 100644 index 000000000..1d2ae9fa2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/jsonrpc/unmarshal_test.go @@ -0,0 +1,671 @@ +package jsonrpc_test + +import ( + "bytes" + "encoding/json" + "encoding/xml" + "io" + "io/ioutil" + "net/http" + "net/url" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/defaults" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/signer/v4" + "github.com/aws/aws-sdk-go/internal/util" + "github.com/stretchr/testify/assert" +) + +var _ bytes.Buffer // always import bytes +var _ http.Request +var _ json.Marshaler +var _ time.Time +var _ xmlutil.XMLNode +var _ xml.Attr +var _ = ioutil.Discard +var _ = util.Trim("") +var _ = url.Values{} +var _ = io.EOF + +type OutputService1ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService1ProtocolTest client. +func NewOutputService1ProtocolTest(config *aws.Config) *OutputService1ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice1protocoltest", + APIVersion: "", + JSONVersion: "", + TargetPrefix: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) + + return &OutputService1ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService1ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService1TestCaseOperation1 = "OperationName" + +// OutputService1TestCaseOperation1Request generates a request for the OutputService1TestCaseOperation1 operation. +func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService1TestCaseOperation1, + } + + if input == nil { + input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { + req, out := c.OutputService1TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService1TestShapeOutputService1TestCaseOperation1Input struct { + metadataOutputService1TestShapeOutputService1TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService1TestShapeOutputService1TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { + Char *string `type:"character"` + + Double *float64 `type:"double"` + + FalseBool *bool `type:"boolean"` + + Float *float64 `type:"float"` + + Long *int64 `type:"long"` + + Num *int64 `type:"integer"` + + Str *string `type:"string"` + + TrueBool *bool `type:"boolean"` + + metadataOutputService1TestShapeOutputService1TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService1TestShapeOutputService1TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService2ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService2ProtocolTest client. +func NewOutputService2ProtocolTest(config *aws.Config) *OutputService2ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice2protocoltest", + APIVersion: "", + JSONVersion: "", + TargetPrefix: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) + + return &OutputService2ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService2ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService2TestCaseOperation1 = "OperationName" + +// OutputService2TestCaseOperation1Request generates a request for the OutputService2TestCaseOperation1 operation. +func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService2TestCaseOperation1, + } + + if input == nil { + input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { + req, out := c.OutputService2TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService2TestShapeBlobContainer struct { + Foo []byte `locationName:"foo" type:"blob"` + + metadataOutputService2TestShapeBlobContainer `json:"-" xml:"-"` +} + +type metadataOutputService2TestShapeBlobContainer struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService2TestShapeOutputService2TestCaseOperation1Input struct { + metadataOutputService2TestShapeOutputService2TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService2TestShapeOutputService2TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { + BlobMember []byte `type:"blob"` + + StructMember *OutputService2TestShapeBlobContainer `type:"structure"` + + metadataOutputService2TestShapeOutputService2TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService2TestShapeOutputService2TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService3ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService3ProtocolTest client. +func NewOutputService3ProtocolTest(config *aws.Config) *OutputService3ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice3protocoltest", + APIVersion: "", + JSONVersion: "", + TargetPrefix: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) + + return &OutputService3ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService3ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService3TestCaseOperation1 = "OperationName" + +// OutputService3TestCaseOperation1Request generates a request for the OutputService3TestCaseOperation1 operation. +func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService3TestCaseOperation1, + } + + if input == nil { + input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { + req, out := c.OutputService3TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService3TestShapeOutputService3TestCaseOperation1Input struct { + metadataOutputService3TestShapeOutputService3TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService3TestShapeOutputService3TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { + StructMember *OutputService3TestShapeTimeContainer `type:"structure"` + + TimeMember *time.Time `type:"timestamp" timestampFormat:"unix"` + + metadataOutputService3TestShapeOutputService3TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService3TestShapeOutputService3TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService3TestShapeTimeContainer struct { + Foo *time.Time `locationName:"foo" type:"timestamp" timestampFormat:"unix"` + + metadataOutputService3TestShapeTimeContainer `json:"-" xml:"-"` +} + +type metadataOutputService3TestShapeTimeContainer struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService4ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService4ProtocolTest client. +func NewOutputService4ProtocolTest(config *aws.Config) *OutputService4ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice4protocoltest", + APIVersion: "", + JSONVersion: "", + TargetPrefix: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) + + return &OutputService4ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService4ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService4TestCaseOperation1 = "OperationName" + +// OutputService4TestCaseOperation1Request generates a request for the OutputService4TestCaseOperation1 operation. +func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService4TestCaseOperation1, + } + + if input == nil { + input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { + req, out := c.OutputService4TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService4TestShapeOutputService4TestCaseOperation1Input struct { + metadataOutputService4TestShapeOutputService4TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService4TestShapeOutputService4TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { + ListMember []*string `type:"list"` + + metadataOutputService4TestShapeOutputService4TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService4TestShapeOutputService4TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService5ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService5ProtocolTest client. +func NewOutputService5ProtocolTest(config *aws.Config) *OutputService5ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice5protocoltest", + APIVersion: "", + JSONVersion: "", + TargetPrefix: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) + + return &OutputService5ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService5ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService5TestCaseOperation1 = "OperationName" + +// OutputService5TestCaseOperation1Request generates a request for the OutputService5TestCaseOperation1 operation. +func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService5TestCaseOperation1, + } + + if input == nil { + input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { + req, out := c.OutputService5TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService5TestShapeOutputService5TestCaseOperation1Input struct { + metadataOutputService5TestShapeOutputService5TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService5TestShapeOutputService5TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { + MapMember map[string][]*int64 `type:"map"` + + metadataOutputService5TestShapeOutputService5TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService5TestShapeOutputService5TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService6ProtocolTest struct { + *service.Service +} + +// New returns a new OutputService6ProtocolTest client. +func NewOutputService6ProtocolTest(config *aws.Config) *OutputService6ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice6protocoltest", + APIVersion: "", + JSONVersion: "", + TargetPrefix: "", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) + + return &OutputService6ProtocolTest{service} +} + +// newRequest creates a new request for a OutputService6ProtocolTest operation and runs any +// custom request initialization. +func (c *OutputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opOutputService6TestCaseOperation1 = "OperationName" + +// OutputService6TestCaseOperation1Request generates a request for the OutputService6TestCaseOperation1 operation. +func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) { + op := &request.Operation{ + Name: opOutputService6TestCaseOperation1, + } + + if input == nil { + input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { + req, out := c.OutputService6TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type OutputService6TestShapeOutputService6TestCaseOperation1Input struct { + metadataOutputService6TestShapeOutputService6TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService6TestShapeOutputService6TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { + StrType *string `type:"string"` + + metadataOutputService6TestShapeOutputService6TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService6TestShapeOutputService6TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +// +// Tests begin here +// + +func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) { + svc := NewOutputService1ProtocolTest(nil) + + buf := bytes.NewReader([]byte("{\"Str\": \"myname\", \"Num\": 123, \"FalseBool\": false, \"TrueBool\": true, \"Float\": 1.2, \"Double\": 1.3, \"Long\": 200, \"Char\": \"a\"}")) + req, out := svc.OutputService1TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + jsonrpc.UnmarshalMeta(req) + jsonrpc.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "a", *out.Char) + assert.Equal(t, 1.3, *out.Double) + assert.Equal(t, false, *out.FalseBool) + assert.Equal(t, 1.2, *out.Float) + assert.Equal(t, int64(200), *out.Long) + assert.Equal(t, int64(123), *out.Num) + assert.Equal(t, "myname", *out.Str) + assert.Equal(t, true, *out.TrueBool) + +} + +func TestOutputService2ProtocolTestBlobMembersCase1(t *testing.T) { + svc := NewOutputService2ProtocolTest(nil) + + buf := bytes.NewReader([]byte("{\"BlobMember\": \"aGkh\", \"StructMember\": {\"foo\": \"dGhlcmUh\"}}")) + req, out := svc.OutputService2TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + jsonrpc.UnmarshalMeta(req) + jsonrpc.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "hi!", string(out.BlobMember)) + assert.Equal(t, "there!", string(out.StructMember.Foo)) + +} + +func TestOutputService3ProtocolTestTimestampMembersCase1(t *testing.T) { + svc := NewOutputService3ProtocolTest(nil) + + buf := bytes.NewReader([]byte("{\"TimeMember\": 1398796238, \"StructMember\": {\"foo\": 1398796238}}")) + req, out := svc.OutputService3TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + jsonrpc.UnmarshalMeta(req) + jsonrpc.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.String()) + assert.Equal(t, time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeMember.String()) + +} + +func TestOutputService4ProtocolTestListsCase1(t *testing.T) { + svc := NewOutputService4ProtocolTest(nil) + + buf := bytes.NewReader([]byte("{\"ListMember\": [\"a\", \"b\"]}")) + req, out := svc.OutputService4TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + jsonrpc.UnmarshalMeta(req) + jsonrpc.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, "a", *out.ListMember[0]) + assert.Equal(t, "b", *out.ListMember[1]) + +} + +func TestOutputService5ProtocolTestMapsCase1(t *testing.T) { + svc := NewOutputService5ProtocolTest(nil) + + buf := bytes.NewReader([]byte("{\"MapMember\": {\"a\": [1, 2], \"b\": [3, 4]}}")) + req, out := svc.OutputService5TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + jsonrpc.UnmarshalMeta(req) + jsonrpc.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + assert.Equal(t, int64(1), *out.MapMember["a"][0]) + assert.Equal(t, int64(2), *out.MapMember["a"][1]) + assert.Equal(t, int64(3), *out.MapMember["b"][0]) + assert.Equal(t, int64(4), *out.MapMember["b"][1]) + +} + +func TestOutputService6ProtocolTestIgnoresExtraDataCase1(t *testing.T) { + svc := NewOutputService6ProtocolTest(nil) + + buf := bytes.NewReader([]byte("{\"foo\": \"bar\"}")) + req, out := svc.OutputService6TestCaseOperation1Request(nil) + req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} + + // set headers + + // unmarshal response + jsonrpc.UnmarshalMeta(req) + jsonrpc.Unmarshal(req) + assert.NoError(t, req.Error) + + // assert response + assert.NotNil(t, out) // ensure out variable is used + +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/build.go similarity index 67% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/query/build.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/query/build.go index 56d69db05..83ed8758e 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/build.go @@ -1,24 +1,21 @@ // Package query provides serialisation of AWS query requests, and responses. package query -//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/input/query.json build_test.go +//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/input/query.json build_test.go import ( "net/url" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query/queryutil" + "github.com/aws/aws-sdk-go/internal/protocol/query/queryutil" ) -// BuildHandler is a named request handler for building query protocol requests -var BuildHandler = request.NamedHandler{Name: "awssdk.query.Build", Fn: Build} - // Build builds a request for an AWS Query service. func Build(r *request.Request) { body := url.Values{ "Action": {r.Operation.Name}, - "Version": {r.ClientInfo.APIVersion}, + "Version": {r.Service.APIVersion}, } if err := queryutil.Parse(body, r.Params, false); err != nil { r.Error = awserr.New("SerializationError", "failed encoding Query request", err) diff --git a/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/build_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/build_test.go new file mode 100644 index 000000000..7b29fd79d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/build_test.go @@ -0,0 +1,1333 @@ +package query_test + +import ( + "bytes" + "encoding/json" + "encoding/xml" + "io" + "io/ioutil" + "net/http" + "net/url" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/defaults" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/signer/v4" + "github.com/aws/aws-sdk-go/internal/util" + "github.com/stretchr/testify/assert" +) + +var _ bytes.Buffer // always import bytes +var _ http.Request +var _ json.Marshaler +var _ time.Time +var _ xmlutil.XMLNode +var _ xml.Attr +var _ = ioutil.Discard +var _ = util.Trim("") +var _ = url.Values{} +var _ = io.EOF + +type InputService1ProtocolTest struct { + *service.Service +} + +// New returns a new InputService1ProtocolTest client. +func NewInputService1ProtocolTest(config *aws.Config) *InputService1ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice1protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) + + return &InputService1ProtocolTest{service} +} + +// newRequest creates a new request for a InputService1ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService1TestCaseOperation1 = "OperationName" + +// InputService1TestCaseOperation1Request generates a request for the InputService1TestCaseOperation1 operation. +func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService1TestCaseOperation1, + } + + if input == nil { + input = &InputService1TestShapeInputService1TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService1TestShapeInputService1TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { + req, out := c.InputService1TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService1TestShapeInputService1TestCaseOperation1Input struct { + Bar *string `type:"string"` + + Foo *string `type:"string"` + + metadataInputService1TestShapeInputService1TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService1TestShapeInputService1TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService1TestShapeInputService1TestCaseOperation1Output struct { + metadataInputService1TestShapeInputService1TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService1TestShapeInputService1TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService2ProtocolTest struct { + *service.Service +} + +// New returns a new InputService2ProtocolTest client. +func NewInputService2ProtocolTest(config *aws.Config) *InputService2ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice2protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) + + return &InputService2ProtocolTest{service} +} + +// newRequest creates a new request for a InputService2ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService2TestCaseOperation1 = "OperationName" + +// InputService2TestCaseOperation1Request generates a request for the InputService2TestCaseOperation1 operation. +func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService2TestCaseOperation1, + } + + if input == nil { + input = &InputService2TestShapeInputService2TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService2TestShapeInputService2TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { + req, out := c.InputService2TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService2TestShapeInputService2TestCaseOperation1Input struct { + StructArg *InputService2TestShapeStructType `type:"structure"` + + metadataInputService2TestShapeInputService2TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService2TestShapeInputService2TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService2TestShapeInputService2TestCaseOperation1Output struct { + metadataInputService2TestShapeInputService2TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService2TestShapeInputService2TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService2TestShapeStructType struct { + ScalarArg *string `type:"string"` + + metadataInputService2TestShapeStructType `json:"-" xml:"-"` +} + +type metadataInputService2TestShapeStructType struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService3ProtocolTest struct { + *service.Service +} + +// New returns a new InputService3ProtocolTest client. +func NewInputService3ProtocolTest(config *aws.Config) *InputService3ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice3protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) + + return &InputService3ProtocolTest{service} +} + +// newRequest creates a new request for a InputService3ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService3TestCaseOperation1 = "OperationName" + +// InputService3TestCaseOperation1Request generates a request for the InputService3TestCaseOperation1 operation. +func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService3TestCaseOperation1, + } + + if input == nil { + input = &InputService3TestShapeInputService3TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService3TestShapeInputService3TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { + req, out := c.InputService3TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService3TestShapeInputService3TestCaseOperation1Input struct { + ListArg []*string `type:"list"` + + metadataInputService3TestShapeInputService3TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeInputService3TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService3TestShapeInputService3TestCaseOperation1Output struct { + metadataInputService3TestShapeInputService3TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeInputService3TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService4ProtocolTest struct { + *service.Service +} + +// New returns a new InputService4ProtocolTest client. +func NewInputService4ProtocolTest(config *aws.Config) *InputService4ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice4protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) + + return &InputService4ProtocolTest{service} +} + +// newRequest creates a new request for a InputService4ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService4TestCaseOperation1 = "OperationName" + +// InputService4TestCaseOperation1Request generates a request for the InputService4TestCaseOperation1 operation. +func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService4TestCaseOperation1, + } + + if input == nil { + input = &InputService4TestShapeInputService4TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService4TestShapeInputService4TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { + req, out := c.InputService4TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService4TestShapeInputService4TestCaseOperation1Input struct { + ListArg []*string `type:"list" flattened:"true"` + + ScalarArg *string `type:"string"` + + metadataInputService4TestShapeInputService4TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeInputService4TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService4TestShapeInputService4TestCaseOperation1Output struct { + metadataInputService4TestShapeInputService4TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeInputService4TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService5ProtocolTest struct { + *service.Service +} + +// New returns a new InputService5ProtocolTest client. +func NewInputService5ProtocolTest(config *aws.Config) *InputService5ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice5protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) + + return &InputService5ProtocolTest{service} +} + +// newRequest creates a new request for a InputService5ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService5TestCaseOperation1 = "OperationName" + +// InputService5TestCaseOperation1Request generates a request for the InputService5TestCaseOperation1 operation. +func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService5TestCaseOperation1, + } + + if input == nil { + input = &InputService5TestShapeInputService5TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService5TestShapeInputService5TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { + req, out := c.InputService5TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService5TestShapeInputService5TestCaseOperation1Input struct { + ListArg []*string `locationNameList:"ListArgLocation" type:"list" flattened:"true"` + + ScalarArg *string `type:"string"` + + metadataInputService5TestShapeInputService5TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService5TestShapeInputService5TestCaseOperation1Output struct { + metadataInputService5TestShapeInputService5TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService6ProtocolTest struct { + *service.Service +} + +// New returns a new InputService6ProtocolTest client. +func NewInputService6ProtocolTest(config *aws.Config) *InputService6ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice6protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) + + return &InputService6ProtocolTest{service} +} + +// newRequest creates a new request for a InputService6ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService6TestCaseOperation1 = "OperationName" + +// InputService6TestCaseOperation1Request generates a request for the InputService6TestCaseOperation1 operation. +func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService6TestCaseOperation1, + } + + if input == nil { + input = &InputService6TestShapeInputService6TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService6TestShapeInputService6TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { + req, out := c.InputService6TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService6TestShapeInputService6TestCaseOperation1Input struct { + MapArg map[string]*string `type:"map"` + + metadataInputService6TestShapeInputService6TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService6TestShapeInputService6TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService6TestShapeInputService6TestCaseOperation1Output struct { + metadataInputService6TestShapeInputService6TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService6TestShapeInputService6TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService7ProtocolTest struct { + *service.Service +} + +// New returns a new InputService7ProtocolTest client. +func NewInputService7ProtocolTest(config *aws.Config) *InputService7ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice7protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) + + return &InputService7ProtocolTest{service} +} + +// newRequest creates a new request for a InputService7ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService7TestCaseOperation1 = "OperationName" + +// InputService7TestCaseOperation1Request generates a request for the InputService7TestCaseOperation1 operation. +func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService7TestCaseOperation1, + } + + if input == nil { + input = &InputService7TestShapeInputService7TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService7TestShapeInputService7TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { + req, out := c.InputService7TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService7TestShapeInputService7TestCaseOperation1Input struct { + BlobArg []byte `type:"blob"` + + metadataInputService7TestShapeInputService7TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService7TestShapeInputService7TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService7TestShapeInputService7TestCaseOperation1Output struct { + metadataInputService7TestShapeInputService7TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService7TestShapeInputService7TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService8ProtocolTest struct { + *service.Service +} + +// New returns a new InputService8ProtocolTest client. +func NewInputService8ProtocolTest(config *aws.Config) *InputService8ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice8protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) + + return &InputService8ProtocolTest{service} +} + +// newRequest creates a new request for a InputService8ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService8TestCaseOperation1 = "OperationName" + +// InputService8TestCaseOperation1Request generates a request for the InputService8TestCaseOperation1 operation. +func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService8TestCaseOperation1, + } + + if input == nil { + input = &InputService8TestShapeInputService8TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService8TestShapeInputService8TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { + req, out := c.InputService8TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService8TestShapeInputService8TestCaseOperation1Input struct { + TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataInputService8TestShapeInputService8TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService8TestShapeInputService8TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService8TestShapeInputService8TestCaseOperation1Output struct { + metadataInputService8TestShapeInputService8TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService8TestShapeInputService8TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9ProtocolTest struct { + *service.Service +} + +// New returns a new InputService9ProtocolTest client. +func NewInputService9ProtocolTest(config *aws.Config) *InputService9ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice9protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) + + return &InputService9ProtocolTest{service} +} + +// newRequest creates a new request for a InputService9ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService9TestCaseOperation1 = "OperationName" + +// InputService9TestCaseOperation1Request generates a request for the InputService9TestCaseOperation1 operation. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService9TestCaseOperation1, + } + + if input == nil { + input = &InputService9TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService9TestShapeInputService9TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { + req, out := c.InputService9TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService9TestCaseOperation2 = "OperationName" + +// InputService9TestCaseOperation2Request generates a request for the InputService9TestCaseOperation2 operation. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation2Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService9TestCaseOperation2, + } + + if input == nil { + input = &InputService9TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService9TestShapeInputService9TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService9ProtocolTest) InputService9TestCaseOperation2(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation2Output, error) { + req, out := c.InputService9TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +const opInputService9TestCaseOperation3 = "OperationName" + +// InputService9TestCaseOperation3Request generates a request for the InputService9TestCaseOperation3 operation. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation3Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation3Output) { + op := &request.Operation{ + Name: opInputService9TestCaseOperation3, + } + + if input == nil { + input = &InputService9TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService9TestShapeInputService9TestCaseOperation3Output{} + req.Data = output + return +} + +func (c *InputService9ProtocolTest) InputService9TestCaseOperation3(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation3Output, error) { + req, out := c.InputService9TestCaseOperation3Request(input) + err := req.Send() + return out, err +} + +const opInputService9TestCaseOperation4 = "OperationName" + +// InputService9TestCaseOperation4Request generates a request for the InputService9TestCaseOperation4 operation. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation4Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation4Output) { + op := &request.Operation{ + Name: opInputService9TestCaseOperation4, + } + + if input == nil { + input = &InputService9TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService9TestShapeInputService9TestCaseOperation4Output{} + req.Data = output + return +} + +func (c *InputService9ProtocolTest) InputService9TestCaseOperation4(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation4Output, error) { + req, out := c.InputService9TestCaseOperation4Request(input) + err := req.Send() + return out, err +} + +const opInputService9TestCaseOperation5 = "OperationName" + +// InputService9TestCaseOperation5Request generates a request for the InputService9TestCaseOperation5 operation. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation5Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation5Output) { + op := &request.Operation{ + Name: opInputService9TestCaseOperation5, + } + + if input == nil { + input = &InputService9TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService9TestShapeInputService9TestCaseOperation5Output{} + req.Data = output + return +} + +func (c *InputService9ProtocolTest) InputService9TestCaseOperation5(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation5Output, error) { + req, out := c.InputService9TestCaseOperation5Request(input) + err := req.Send() + return out, err +} + +const opInputService9TestCaseOperation6 = "OperationName" + +// InputService9TestCaseOperation6Request generates a request for the InputService9TestCaseOperation6 operation. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation6Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation6Output) { + op := &request.Operation{ + Name: opInputService9TestCaseOperation6, + } + + if input == nil { + input = &InputService9TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService9TestShapeInputService9TestCaseOperation6Output{} + req.Data = output + return +} + +func (c *InputService9ProtocolTest) InputService9TestCaseOperation6(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation6Output, error) { + req, out := c.InputService9TestCaseOperation6Request(input) + err := req.Send() + return out, err +} + +type InputService9TestShapeInputService9TestCaseOperation1Output struct { + metadataInputService9TestShapeInputService9TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputService9TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9TestShapeInputService9TestCaseOperation2Output struct { + metadataInputService9TestShapeInputService9TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputService9TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9TestShapeInputService9TestCaseOperation3Output struct { + metadataInputService9TestShapeInputService9TestCaseOperation3Output `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputService9TestCaseOperation3Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9TestShapeInputService9TestCaseOperation4Output struct { + metadataInputService9TestShapeInputService9TestCaseOperation4Output `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputService9TestCaseOperation4Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9TestShapeInputService9TestCaseOperation5Output struct { + metadataInputService9TestShapeInputService9TestCaseOperation5Output `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputService9TestCaseOperation5Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9TestShapeInputService9TestCaseOperation6Output struct { + metadataInputService9TestShapeInputService9TestCaseOperation6Output `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputService9TestCaseOperation6Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9TestShapeInputShape struct { + RecursiveStruct *InputService9TestShapeRecursiveStructType `type:"structure"` + + metadataInputService9TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9TestShapeRecursiveStructType struct { + NoRecurse *string `type:"string"` + + RecursiveList []*InputService9TestShapeRecursiveStructType `type:"list"` + + RecursiveMap map[string]*InputService9TestShapeRecursiveStructType `type:"map"` + + RecursiveStruct *InputService9TestShapeRecursiveStructType `type:"structure"` + + metadataInputService9TestShapeRecursiveStructType `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeRecursiveStructType struct { + SDKShapeTraits bool `type:"structure"` +} + +// +// Tests begin here +// + +func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) { + svc := NewInputService1ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService1TestShapeInputService1TestCaseOperation1Input{ + Bar: aws.String("val2"), + Foo: aws.String("val1"), + } + req, _ := svc.InputService1TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&Bar=val2&Foo=val1&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService2ProtocolTestNestedStructureMembersCase1(t *testing.T) { + svc := NewInputService2ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService2TestShapeInputService2TestCaseOperation1Input{ + StructArg: &InputService2TestShapeStructType{ + ScalarArg: aws.String("foo"), + }, + } + req, _ := svc.InputService2TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&StructArg.ScalarArg=foo&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService3ProtocolTestListTypesCase1(t *testing.T) { + svc := NewInputService3ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService3TestShapeInputService3TestCaseOperation1Input{ + ListArg: []*string{ + aws.String("foo"), + aws.String("bar"), + aws.String("baz"), + }, + } + req, _ := svc.InputService3TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService4ProtocolTestFlattenedListCase1(t *testing.T) { + svc := NewInputService4ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService4TestShapeInputService4TestCaseOperation1Input{ + ListArg: []*string{ + aws.String("a"), + aws.String("b"), + aws.String("c"), + }, + ScalarArg: aws.String("foo"), + } + req, _ := svc.InputService4TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&ListArg.1=a&ListArg.2=b&ListArg.3=c&ScalarArg=foo&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService5ProtocolTestFlattenedListWithLocationNameCase1(t *testing.T) { + svc := NewInputService5ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService5TestShapeInputService5TestCaseOperation1Input{ + ListArg: []*string{ + aws.String("a"), + aws.String("b"), + aws.String("c"), + }, + ScalarArg: aws.String("foo"), + } + req, _ := svc.InputService5TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&ListArgLocation.1=a&ListArgLocation.2=b&ListArgLocation.3=c&ScalarArg=foo&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService6ProtocolTestSerializeMapTypeCase1(t *testing.T) { + svc := NewInputService6ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService6TestShapeInputService6TestCaseOperation1Input{ + MapArg: map[string]*string{ + "key1": aws.String("val1"), + "key2": aws.String("val2"), + }, + } + req, _ := svc.InputService6TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&MapArg.entry.1.key=key1&MapArg.entry.1.value=val1&MapArg.entry.2.key=key2&MapArg.entry.2.value=val2&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService7ProtocolTestBase64EncodedBlobsCase1(t *testing.T) { + svc := NewInputService7ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService7TestShapeInputService7TestCaseOperation1Input{ + BlobArg: []byte("foo"), + } + req, _ := svc.InputService7TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&BlobArg=Zm9v&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService8ProtocolTestTimestampValuesCase1(t *testing.T) { + svc := NewInputService8ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService8TestShapeInputService8TestCaseOperation1Input{ + TimeArg: aws.Time(time.Unix(1422172800, 0)), + } + req, _ := svc.InputService8TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService9ProtocolTestRecursiveShapesCase1(t *testing.T) { + svc := NewInputService9ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService9TestShapeInputShape{ + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + NoRecurse: aws.String("foo"), + }, + } + req, _ := svc.InputService9TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&RecursiveStruct.NoRecurse=foo&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService9ProtocolTestRecursiveShapesCase2(t *testing.T) { + svc := NewInputService9ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService9TestShapeInputShape{ + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + NoRecurse: aws.String("foo"), + }, + }, + } + req, _ := svc.InputService9TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService9ProtocolTestRecursiveShapesCase3(t *testing.T) { + svc := NewInputService9ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService9TestShapeInputShape{ + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + NoRecurse: aws.String("foo"), + }, + }, + }, + }, + } + req, _ := svc.InputService9TestCaseOperation3Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&RecursiveStruct.RecursiveStruct.RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService9ProtocolTestRecursiveShapesCase4(t *testing.T) { + svc := NewInputService9ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService9TestShapeInputShape{ + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + RecursiveList: []*InputService9TestShapeRecursiveStructType{ + { + NoRecurse: aws.String("foo"), + }, + { + NoRecurse: aws.String("bar"), + }, + }, + }, + } + req, _ := svc.InputService9TestCaseOperation4Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.NoRecurse=bar&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService9ProtocolTestRecursiveShapesCase5(t *testing.T) { + svc := NewInputService9ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService9TestShapeInputShape{ + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + RecursiveList: []*InputService9TestShapeRecursiveStructType{ + { + NoRecurse: aws.String("foo"), + }, + { + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + NoRecurse: aws.String("bar"), + }, + }, + }, + }, + } + req, _ := svc.InputService9TestCaseOperation5Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.RecursiveStruct.NoRecurse=bar&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService9ProtocolTestRecursiveShapesCase6(t *testing.T) { + svc := NewInputService9ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService9TestShapeInputShape{ + RecursiveStruct: &InputService9TestShapeRecursiveStructType{ + RecursiveMap: map[string]*InputService9TestShapeRecursiveStructType{ + "bar": { + NoRecurse: aws.String("bar"), + }, + "foo": { + NoRecurse: aws.String("foo"), + }, + }, + }, + } + req, _ := svc.InputService9TestCaseOperation6Request(input) + r := req.HTTPRequest + + // build request + query.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`Action=OperationName&RecursiveStruct.RecursiveMap.entry.1.key=bar&RecursiveStruct.RecursiveMap.entry.1.value.NoRecurse=bar&RecursiveStruct.RecursiveMap.entry.2.key=foo&RecursiveStruct.RecursiveMap.entry.2.value.NoRecurse=foo&Version=2014-01-01`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/queryutil/queryutil.go similarity index 93% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/query/queryutil/queryutil.go index 60ea0bd1e..3b417a89f 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/queryutil/queryutil.go @@ -9,8 +9,6 @@ import ( "strconv" "strings" "time" - - "github.com/aws/aws-sdk-go/private/protocol" ) // Parse parses an object i and fills a url.Values object. The isEC2 flag @@ -70,19 +68,14 @@ func (q *queryParser) parseStruct(v url.Values, value reflect.Value, prefix stri t := value.Type() for i := 0; i < value.NumField(); i++ { - elemValue := elemOf(value.Field(i)) - field := t.Field(i) - - if field.PkgPath != "" { + if c := t.Field(i).Name[0:1]; strings.ToLower(c) == c { continue // ignore unexported fields } - if protocol.CanSetIdempotencyToken(value.Field(i), field) { - token := protocol.GetIdempotencyToken() - elemValue = reflect.ValueOf(token) - } - + value := elemOf(value.Field(i)) + field := t.Field(i) var name string + if q.isEC2 { name = field.Tag.Get("queryName") } @@ -104,7 +97,7 @@ func (q *queryParser) parseStruct(v url.Values, value reflect.Value, prefix stri name = prefix + "." + name } - if err := q.parseValue(v, elemValue, name, field.Tag); err != nil { + if err := q.parseValue(v, value, name, field.Tag); err != nil { return err } } diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/unmarshal.go similarity index 50% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/query/unmarshal.go index a3ea40955..a374f88b1 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/unmarshal.go @@ -1,21 +1,15 @@ package query -//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/query.json unmarshal_test.go +//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/output/query.json unmarshal_test.go import ( "encoding/xml" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" ) -// UnmarshalHandler is a named request handler for unmarshaling query protocol requests -var UnmarshalHandler = request.NamedHandler{Name: "awssdk.query.Unmarshal", Fn: Unmarshal} - -// UnmarshalMetaHandler is a named request handler for unmarshaling query protocol request metadata -var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.query.UnmarshalMeta", Fn: UnmarshalMeta} - // Unmarshal unmarshals a response for an AWS Query service. func Unmarshal(r *request.Request) { defer r.HTTPResponse.Body.Close() @@ -31,5 +25,5 @@ func Unmarshal(r *request.Request) { // UnmarshalMeta unmarshals header response values for an AWS Query service. func UnmarshalMeta(r *request.Request) { - r.RequestID = r.HTTPResponse.Header.Get("X-Amzn-Requestid") + // TODO implement unmarshaling of request IDs } diff --git a/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/unmarshal_error.go new file mode 100644 index 000000000..08609d920 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/unmarshal_error.go @@ -0,0 +1,33 @@ +package query + +import ( + "encoding/xml" + "io" + + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" +) + +type xmlErrorResponse struct { + XMLName xml.Name `xml:"ErrorResponse"` + Code string `xml:"Error>Code"` + Message string `xml:"Error>Message"` + RequestID string `xml:"RequestId"` +} + +// UnmarshalError unmarshals an error response for an AWS Query service. +func UnmarshalError(r *request.Request) { + defer r.HTTPResponse.Body.Close() + + resp := &xmlErrorResponse{} + err := xml.NewDecoder(r.HTTPResponse.Body).Decode(resp) + if err != nil && err != io.EOF { + r.Error = awserr.New("SerializationError", "failed to decode query XML error response", err) + } else { + r.Error = awserr.NewRequestFailure( + awserr.New(resp.Code, resp.Message, nil), + r.HTTPResponse.StatusCode, + resp.RequestID, + ) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/unmarshal_test.go similarity index 53% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/query/unmarshal_test.go index f60594fe7..a0dcfc43a 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/query/unmarshal_test.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/json" "encoding/xml" - "fmt" "io" "io/ioutil" "net/http" @@ -13,16 +12,14 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" - "github.com/aws/aws-sdk-go/private/signer/v4" - "github.com/aws/aws-sdk-go/private/util" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/signer/v4" + "github.com/aws/aws-sdk-go/internal/util" "github.com/stretchr/testify/assert" ) @@ -36,57 +33,30 @@ var _ = ioutil.Discard var _ = util.Trim("") var _ = url.Values{} var _ = io.EOF -var _ = aws.String -var _ = fmt.Println -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService1ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService1ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService1ProtocolTest client from just a session. -// svc := outputservice1protocoltest.New(mySession) -// -// // Create a OutputService1ProtocolTest client with additional configuration -// svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { - c := p.ClientConfig("outputservice1protocoltest", cfgs...) - return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService1ProtocolTest { - svc := &OutputService1ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice1protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService1ProtocolTest client. +func NewOutputService1ProtocolTest(config *aws.Config) *OutputService1ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice1protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService1ProtocolTest{service} } // newRequest creates a new request for a OutputService1ProtocolTest operation and runs any @@ -122,12 +92,14 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *Out } type OutputService1TestShapeOutputService1TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService1TestShapeOutputService1TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService1TestShapeOutputService1TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { Char *string `type:"character"` Double *float64 `type:"double"` @@ -145,52 +117,37 @@ type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` TrueBool *bool `type:"boolean"` + + metadataOutputService1TestShapeOutputService1TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService1TestShapeOutputService1TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService2ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService2ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService2ProtocolTest client from just a session. -// svc := outputservice2protocoltest.New(mySession) -// -// // Create a OutputService2ProtocolTest client with additional configuration -// svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { - c := p.ClientConfig("outputservice2protocoltest", cfgs...) - return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService2ProtocolTest { - svc := &OutputService2ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice2protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService2ProtocolTest client. +func NewOutputService2ProtocolTest(config *aws.Config) *OutputService2ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice2protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService2ProtocolTest{service} } // newRequest creates a new request for a OutputService2ProtocolTest operation and runs any @@ -226,61 +183,48 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *Out } type OutputService2TestShapeOutputService2TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService2TestShapeOutputService2TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService2TestShapeOutputService2TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { Num *int64 `type:"integer"` Str *string `type:"string"` + + metadataOutputService2TestShapeOutputService2TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService2TestShapeOutputService2TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService3ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService3ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService3ProtocolTest client from just a session. -// svc := outputservice3protocoltest.New(mySession) -// -// // Create a OutputService3ProtocolTest client with additional configuration -// svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { - c := p.ClientConfig("outputservice3protocoltest", cfgs...) - return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService3ProtocolTest { - svc := &OutputService3ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice3protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService3ProtocolTest client. +func NewOutputService3ProtocolTest(config *aws.Config) *OutputService3ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice3protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService3ProtocolTest{service} } // newRequest creates a new request for a OutputService3ProtocolTest operation and runs any @@ -316,60 +260,46 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *Out } type OutputService3TestShapeOutputService3TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService3TestShapeOutputService3TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService3TestShapeOutputService3TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} - // Blob is automatically base64 encoded/decoded by the SDK. +type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { Blob []byte `type:"blob"` + + metadataOutputService3TestShapeOutputService3TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService3TestShapeOutputService3TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService4ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService4ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService4ProtocolTest client from just a session. -// svc := outputservice4protocoltest.New(mySession) -// -// // Create a OutputService4ProtocolTest client with additional configuration -// svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { - c := p.ClientConfig("outputservice4protocoltest", cfgs...) - return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService4ProtocolTest { - svc := &OutputService4ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice4protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService4ProtocolTest client. +func NewOutputService4ProtocolTest(config *aws.Config) *OutputService4ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice4protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService4ProtocolTest{service} } // newRequest creates a new request for a OutputService4ProtocolTest operation and runs any @@ -405,59 +335,46 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *Out } type OutputService4TestShapeOutputService4TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService4TestShapeOutputService4TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService4TestShapeOutputService4TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { ListMember []*string `type:"list"` + + metadataOutputService4TestShapeOutputService4TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService4TestShapeOutputService4TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService5ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService5ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService5ProtocolTest client from just a session. -// svc := outputservice5protocoltest.New(mySession) -// -// // Create a OutputService5ProtocolTest client with additional configuration -// svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { - c := p.ClientConfig("outputservice5protocoltest", cfgs...) - return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService5ProtocolTest { - svc := &OutputService5ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice5protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService5ProtocolTest client. +func NewOutputService5ProtocolTest(config *aws.Config) *OutputService5ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice5protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService5ProtocolTest{service} } // newRequest creates a new request for a OutputService5ProtocolTest operation and runs any @@ -493,59 +410,46 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *Out } type OutputService5TestShapeOutputService5TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService5TestShapeOutputService5TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService5TestShapeOutputService5TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { ListMember []*string `locationNameList:"item" type:"list"` + + metadataOutputService5TestShapeOutputService5TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService5TestShapeOutputService5TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService6ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService6ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService6ProtocolTest client from just a session. -// svc := outputservice6protocoltest.New(mySession) -// -// // Create a OutputService6ProtocolTest client with additional configuration -// svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { - c := p.ClientConfig("outputservice6protocoltest", cfgs...) - return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService6ProtocolTest { - svc := &OutputService6ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice6protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService6ProtocolTest client. +func NewOutputService6ProtocolTest(config *aws.Config) *OutputService6ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice6protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService6ProtocolTest{service} } // newRequest creates a new request for a OutputService6ProtocolTest operation and runs any @@ -581,59 +485,46 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *Out } type OutputService6TestShapeOutputService6TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService6TestShapeOutputService6TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService6TestShapeOutputService6TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { ListMember []*string `type:"list" flattened:"true"` + + metadataOutputService6TestShapeOutputService6TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService6TestShapeOutputService6TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService7ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService7ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService7ProtocolTest client from just a session. -// svc := outputservice7protocoltest.New(mySession) -// -// // Create a OutputService7ProtocolTest client with additional configuration -// svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { - c := p.ClientConfig("outputservice7protocoltest", cfgs...) - return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService7ProtocolTest { - svc := &OutputService7ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice7protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService7ProtocolTest client. +func NewOutputService7ProtocolTest(config *aws.Config) *OutputService7ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice7protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService7ProtocolTest{service} } // newRequest creates a new request for a OutputService7ProtocolTest operation and runs any @@ -669,59 +560,46 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *Out } type OutputService7TestShapeOutputService7TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService7TestShapeOutputService7TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService7TestShapeOutputService7TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { ListMember []*string `type:"list" flattened:"true"` + + metadataOutputService7TestShapeOutputService7TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService7TestShapeOutputService7TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService8ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService8ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService8ProtocolTest client from just a session. -// svc := outputservice8protocoltest.New(mySession) -// -// // Create a OutputService8ProtocolTest client with additional configuration -// svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { - c := p.ClientConfig("outputservice8protocoltest", cfgs...) - return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService8ProtocolTest { - svc := &OutputService8ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice8protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService8ProtocolTest client. +func NewOutputService8ProtocolTest(config *aws.Config) *OutputService8ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice8protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService8ProtocolTest{service} } // newRequest creates a new request for a OutputService8ProtocolTest operation and runs any @@ -757,69 +635,60 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *Out } type OutputService8TestShapeOutputService8TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService8TestShapeOutputService8TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService8TestShapeOutputService8TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { List []*OutputService8TestShapeStructureShape `type:"list"` + + metadataOutputService8TestShapeOutputService8TestCaseOperation1Output `json:"-" xml:"-"` } -type OutputService8TestShapeStructureShape struct { - _ struct{} `type:"structure"` +type metadataOutputService8TestShapeOutputService8TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService8TestShapeStructureShape struct { Bar *string `type:"string"` Baz *string `type:"string"` Foo *string `type:"string"` + + metadataOutputService8TestShapeStructureShape `json:"-" xml:"-"` +} + +type metadataOutputService8TestShapeStructureShape struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService9ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService9ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService9ProtocolTest client from just a session. -// svc := outputservice9protocoltest.New(mySession) -// -// // Create a OutputService9ProtocolTest client with additional configuration -// svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { - c := p.ClientConfig("outputservice9protocoltest", cfgs...) - return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService9ProtocolTest { - svc := &OutputService9ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice9protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService9ProtocolTest client. +func NewOutputService9ProtocolTest(config *aws.Config) *OutputService9ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice9protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService9ProtocolTest{service} } // newRequest creates a new request for a OutputService9ProtocolTest operation and runs any @@ -855,69 +724,60 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *Out } type OutputService9TestShapeOutputService9TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService9TestShapeOutputService9TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService9TestShapeOutputService9TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { List []*OutputService9TestShapeStructureShape `type:"list" flattened:"true"` + + metadataOutputService9TestShapeOutputService9TestCaseOperation1Output `json:"-" xml:"-"` } -type OutputService9TestShapeStructureShape struct { - _ struct{} `type:"structure"` +type metadataOutputService9TestShapeOutputService9TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService9TestShapeStructureShape struct { Bar *string `type:"string"` Baz *string `type:"string"` Foo *string `type:"string"` + + metadataOutputService9TestShapeStructureShape `json:"-" xml:"-"` +} + +type metadataOutputService9TestShapeStructureShape struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService10ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService10ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService10ProtocolTest client from just a session. -// svc := outputservice10protocoltest.New(mySession) -// -// // Create a OutputService10ProtocolTest client with additional configuration -// svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest { - c := p.ClientConfig("outputservice10protocoltest", cfgs...) - return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService10ProtocolTest { - svc := &OutputService10ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice10protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService10ProtocolTest client. +func NewOutputService10ProtocolTest(config *aws.Config) *OutputService10ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice10protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService10ProtocolTest{service} } // newRequest creates a new request for a OutputService10ProtocolTest operation and runs any @@ -953,59 +813,46 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *O } type OutputService10TestShapeOutputService10TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService10TestShapeOutputService10TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService10TestShapeOutputService10TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService10TestShapeOutputService10TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService10TestShapeOutputService10TestCaseOperation1Output struct { List []*string `locationNameList:"NamedList" type:"list" flattened:"true"` + + metadataOutputService10TestShapeOutputService10TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService10TestShapeOutputService10TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService11ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService11ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService11ProtocolTest client from just a session. -// svc := outputservice11protocoltest.New(mySession) -// -// // Create a OutputService11ProtocolTest client with additional configuration -// svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest { - c := p.ClientConfig("outputservice11protocoltest", cfgs...) - return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService11ProtocolTest { - svc := &OutputService11ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice11protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService11ProtocolTest client. +func NewOutputService11ProtocolTest(config *aws.Config) *OutputService11ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice11protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService11ProtocolTest{service} } // newRequest creates a new request for a OutputService11ProtocolTest operation and runs any @@ -1041,65 +888,56 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *O } type OutputService11TestShapeOutputService11TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService11TestShapeOutputService11TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService11TestShapeOutputService11TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { Map map[string]*OutputService11TestShapeStructType `type:"map"` + + metadataOutputService11TestShapeOutputService11TestCaseOperation1Output `json:"-" xml:"-"` } -type OutputService11TestShapeStructType struct { - _ struct{} `type:"structure"` +type metadataOutputService11TestShapeOutputService11TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService11TestShapeStructType struct { Foo *string `locationName:"foo" type:"string"` + + metadataOutputService11TestShapeStructType `json:"-" xml:"-"` +} + +type metadataOutputService11TestShapeStructType struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService12ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService12ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService12ProtocolTest client from just a session. -// svc := outputservice12protocoltest.New(mySession) -// -// // Create a OutputService12ProtocolTest client with additional configuration -// svc := outputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService12ProtocolTest { - c := p.ClientConfig("outputservice12protocoltest", cfgs...) - return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService12ProtocolTest { - svc := &OutputService12ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice12protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService12ProtocolTest client. +func NewOutputService12ProtocolTest(config *aws.Config) *OutputService12ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice12protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService12ProtocolTest{service} } // newRequest creates a new request for a OutputService12ProtocolTest operation and runs any @@ -1135,59 +973,46 @@ func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1(input *O } type OutputService12TestShapeOutputService12TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService12TestShapeOutputService12TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService12TestShapeOutputService12TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService12TestShapeOutputService12TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService12TestShapeOutputService12TestCaseOperation1Output struct { Map map[string]*string `type:"map" flattened:"true"` + + metadataOutputService12TestShapeOutputService12TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService12TestShapeOutputService12TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService13ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService13ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService13ProtocolTest client from just a session. -// svc := outputservice13protocoltest.New(mySession) -// -// // Create a OutputService13ProtocolTest client with additional configuration -// svc := outputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService13ProtocolTest { - c := p.ClientConfig("outputservice13protocoltest", cfgs...) - return newOutputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService13ProtocolTest { - svc := &OutputService13ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice13protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService13ProtocolTest client. +func NewOutputService13ProtocolTest(config *aws.Config) *OutputService13ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice13protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService13ProtocolTest{service} } // newRequest creates a new request for a OutputService13ProtocolTest operation and runs any @@ -1223,59 +1048,46 @@ func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1(input *O } type OutputService13TestShapeOutputService13TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService13TestShapeOutputService13TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService13TestShapeOutputService13TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService13TestShapeOutputService13TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService13TestShapeOutputService13TestCaseOperation1Output struct { Map map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` + + metadataOutputService13TestShapeOutputService13TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService13TestShapeOutputService13TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService14ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService14ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService14ProtocolTest client from just a session. -// svc := outputservice14protocoltest.New(mySession) -// -// // Create a OutputService14ProtocolTest client with additional configuration -// svc := outputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService14ProtocolTest { - c := p.ClientConfig("outputservice14protocoltest", cfgs...) - return newOutputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService14ProtocolTest { - svc := &OutputService14ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice14protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService14ProtocolTest client. +func NewOutputService14ProtocolTest(config *aws.Config) *OutputService14ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice14protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - return svc + return &OutputService14ProtocolTest{service} } // newRequest creates a new request for a OutputService14ProtocolTest operation and runs any @@ -1311,101 +1123,21 @@ func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1(input *O } type OutputService14TestShapeOutputService14TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService14TestShapeOutputService14TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - Map map[string]*string `locationNameKey:"foo" locationNameValue:"bar" type:"map" flattened:"true"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService15ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService15ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService15ProtocolTest client from just a session. -// svc := outputservice15protocoltest.New(mySession) -// -// // Create a OutputService15ProtocolTest client with additional configuration -// svc := outputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService15ProtocolTest { - c := p.ClientConfig("outputservice15protocoltest", cfgs...) - return newOutputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService15ProtocolTest { - svc := &OutputService15ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice15protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService15ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req + metadataOutputService14TestShapeOutputService14TestCaseOperation1Input `json:"-" xml:"-"` } -const opOutputService15TestCaseOperation1 = "OperationName" - -// OutputService15TestCaseOperation1Request generates a request for the OutputService15TestCaseOperation1 operation. -func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1Request(input *OutputService15TestShapeOutputService15TestCaseOperation1Input) (req *request.Request, output *OutputService15TestShapeOutputService15TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService15TestCaseOperation1, - } - - if input == nil { - input = &OutputService15TestShapeOutputService15TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService15TestShapeOutputService15TestCaseOperation1Output{} - req.Data = output - return +type metadataOutputService14TestShapeOutputService14TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` } -func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1(input *OutputService15TestShapeOutputService15TestCaseOperation1Input) (*OutputService15TestShapeOutputService15TestCaseOperation1Output, error) { - req, out := c.OutputService15TestCaseOperation1Request(input) - err := req.Send() - return out, err -} +type OutputService14TestShapeOutputService14TestCaseOperation1Output struct { + Map map[string]*string `locationNameKey:"foo" locationNameValue:"bar" type:"map" flattened:"true"` -type OutputService15TestShapeOutputService15TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService14TestShapeOutputService14TestCaseOperation1Output `json:"-" xml:"-"` } -type OutputService15TestShapeOutputService15TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - Foo *string `type:"string"` +type metadataOutputService14TestShapeOutputService14TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } // @@ -1413,8 +1145,7 @@ type OutputService15TestShapeOutputService15TestCaseOperation1Output struct { // func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService1ProtocolTest(nil) buf := bytes.NewReader([]byte("myname123falsetrue1.21.3200a2015-01-25T08:00:00Zrequest-id")) req, out := svc.OutputService1TestCaseOperation1Request(nil) @@ -1442,8 +1173,7 @@ func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) { } func TestOutputService2ProtocolTestNotAllMembersInResponseCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService2ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService2ProtocolTest(nil) buf := bytes.NewReader([]byte("mynamerequest-id")) req, out := svc.OutputService2TestCaseOperation1Request(nil) @@ -1463,8 +1193,7 @@ func TestOutputService2ProtocolTestNotAllMembersInResponseCase1(t *testing.T) { } func TestOutputService3ProtocolTestBlobCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService3ProtocolTest(nil) buf := bytes.NewReader([]byte("dmFsdWU=requestid")) req, out := svc.OutputService3TestCaseOperation1Request(nil) @@ -1484,8 +1213,7 @@ func TestOutputService3ProtocolTestBlobCase1(t *testing.T) { } func TestOutputService4ProtocolTestListsCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService4ProtocolTest(nil) buf := bytes.NewReader([]byte("abc123requestid")) req, out := svc.OutputService4TestCaseOperation1Request(nil) @@ -1506,8 +1234,7 @@ func TestOutputService4ProtocolTestListsCase1(t *testing.T) { } func TestOutputService5ProtocolTestListWithCustomMemberNameCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService5ProtocolTest(nil) buf := bytes.NewReader([]byte("abc123requestid")) req, out := svc.OutputService5TestCaseOperation1Request(nil) @@ -1528,8 +1255,7 @@ func TestOutputService5ProtocolTestListWithCustomMemberNameCase1(t *testing.T) { } func TestOutputService6ProtocolTestFlattenedListCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService6ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService6ProtocolTest(nil) buf := bytes.NewReader([]byte("abc123requestid")) req, out := svc.OutputService6TestCaseOperation1Request(nil) @@ -1550,8 +1276,7 @@ func TestOutputService6ProtocolTestFlattenedListCase1(t *testing.T) { } func TestOutputService7ProtocolTestFlattenedSingleElementListCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService7ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService7ProtocolTest(nil) buf := bytes.NewReader([]byte("abcrequestid")) req, out := svc.OutputService7TestCaseOperation1Request(nil) @@ -1571,8 +1296,7 @@ func TestOutputService7ProtocolTestFlattenedSingleElementListCase1(t *testing.T) } func TestOutputService8ProtocolTestListOfStructuresCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService8ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService8ProtocolTest(nil) buf := bytes.NewReader([]byte("firstfoofirstbarfirstbazsecondfoosecondbarsecondbazrequestid")) req, out := svc.OutputService8TestCaseOperation1Request(nil) @@ -1597,8 +1321,7 @@ func TestOutputService8ProtocolTestListOfStructuresCase1(t *testing.T) { } func TestOutputService9ProtocolTestFlattenedListOfStructuresCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService9ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService9ProtocolTest(nil) buf := bytes.NewReader([]byte("firstfoofirstbarfirstbazsecondfoosecondbarsecondbazrequestid")) req, out := svc.OutputService9TestCaseOperation1Request(nil) @@ -1623,8 +1346,7 @@ func TestOutputService9ProtocolTestFlattenedListOfStructuresCase1(t *testing.T) } func TestOutputService10ProtocolTestFlattenedListWithLocationNameCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService10ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService10ProtocolTest(nil) buf := bytes.NewReader([]byte("abrequestid")) req, out := svc.OutputService10TestCaseOperation1Request(nil) @@ -1645,8 +1367,7 @@ func TestOutputService10ProtocolTestFlattenedListWithLocationNameCase1(t *testin } func TestOutputService11ProtocolTestNormalMapCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService11ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService11ProtocolTest(nil) buf := bytes.NewReader([]byte("quxbarbazbamrequestid")) req, out := svc.OutputService11TestCaseOperation1Request(nil) @@ -1667,8 +1388,7 @@ func TestOutputService11ProtocolTestNormalMapCase1(t *testing.T) { } func TestOutputService12ProtocolTestFlattenedMapCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService12ProtocolTest(nil) buf := bytes.NewReader([]byte("quxbarbazbamrequestid")) req, out := svc.OutputService12TestCaseOperation1Request(nil) @@ -1689,8 +1409,7 @@ func TestOutputService12ProtocolTestFlattenedMapCase1(t *testing.T) { } func TestOutputService13ProtocolTestFlattenedMapInShapeDefinitionCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService13ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService13ProtocolTest(nil) buf := bytes.NewReader([]byte("quxbarrequestid")) req, out := svc.OutputService13TestCaseOperation1Request(nil) @@ -1710,8 +1429,7 @@ func TestOutputService13ProtocolTestFlattenedMapInShapeDefinitionCase1(t *testin } func TestOutputService14ProtocolTestNamedMapCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService14ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService14ProtocolTest(nil) buf := bytes.NewReader([]byte("quxbarbazbamrequestid")) req, out := svc.OutputService14TestCaseOperation1Request(nil) @@ -1730,24 +1448,3 @@ func TestOutputService14ProtocolTestNamedMapCase1(t *testing.T) { assert.Equal(t, "bar", *out.Map["qux"]) } - -func TestOutputService15ProtocolTestEmptyStringCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService15ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("requestid")) - req, out := svc.OutputService15TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - query.UnmarshalMeta(req) - query.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "", *out.Foo) - -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/rest/build.go similarity index 63% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/rest/build.go index 5f412516d..326e96cc6 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/rest/build.go @@ -6,7 +6,6 @@ import ( "encoding/base64" "fmt" "io" - "net/http" "net/url" "path" "reflect" @@ -24,8 +23,6 @@ const RFC822 = "Mon, 2 Jan 2006 15:04:05 GMT" // Whether the byte value can be sent without escaping in AWS URLs var noEscape [256]bool -var errValueNotSet = fmt.Errorf("value not set") - func init() { for i := 0; i < len(noEscape); i++ { // AWS expects every character except these to be escaped @@ -39,9 +36,6 @@ func init() { } } -// BuildHandler is a named request handler for building rest protocol requests -var BuildHandler = request.NamedHandler{Name: "awssdk.rest.Build", Fn: Build} - // Build builds the REST component of a service request. func Build(r *request.Request) { if r.ParamsFilled() { @@ -73,18 +67,16 @@ func buildLocationElements(r *request.Request, v reflect.Value) { continue } - var err error switch field.Tag.Get("location") { case "headers": // header maps - err = buildHeaderMap(&r.HTTPRequest.Header, m, field.Tag.Get("locationName")) + buildHeaderMap(r, m, field.Tag.Get("locationName")) case "header": - err = buildHeader(&r.HTTPRequest.Header, m, name) + buildHeader(r, m, name) case "uri": - err = buildURI(r.HTTPRequest.URL, m, name) + buildURI(r, m, name) case "querystring": - err = buildQueryString(query, m, name) + buildQueryString(r, m, name, query) } - r.Error = err } if r.Error != nil { return @@ -96,7 +88,7 @@ func buildLocationElements(r *request.Request, v reflect.Value) { } func buildBody(r *request.Request, v reflect.Value) { - if field, ok := v.Type().FieldByName("_"); ok { + if field, ok := v.Type().FieldByName("SDKShapeTraits"); ok { if payloadName := field.Tag.Get("payload"); payloadName != "" { pfield, _ := v.Type().FieldByName(payloadName) if ptag := pfield.Tag.Get("type"); ptag != "" && ptag != "structure" { @@ -120,77 +112,45 @@ func buildBody(r *request.Request, v reflect.Value) { } } -func buildHeader(header *http.Header, v reflect.Value, name string) error { +func buildHeader(r *request.Request, v reflect.Value, name string) { str, err := convertType(v) - if err == errValueNotSet { - return nil - } else if err != nil { - return awserr.New("SerializationError", "failed to encode REST request", err) + if err != nil { + r.Error = awserr.New("SerializationError", "failed to encode REST request", err) + } else if str != nil { + r.HTTPRequest.Header.Add(name, *str) } - - header.Add(name, str) - - return nil } -func buildHeaderMap(header *http.Header, v reflect.Value, prefix string) error { +func buildHeaderMap(r *request.Request, v reflect.Value, prefix string) { for _, key := range v.MapKeys() { str, err := convertType(v.MapIndex(key)) - if err == errValueNotSet { - continue - } else if err != nil { - return awserr.New("SerializationError", "failed to encode REST request", err) - + if err != nil { + r.Error = awserr.New("SerializationError", "failed to encode REST request", err) + } else if str != nil { + r.HTTPRequest.Header.Add(prefix+key.String(), *str) } - - header.Add(prefix+key.String(), str) } - return nil } -func buildURI(u *url.URL, v reflect.Value, name string) error { +func buildURI(r *request.Request, v reflect.Value, name string) { value, err := convertType(v) - if err == errValueNotSet { - return nil - } else if err != nil { - return awserr.New("SerializationError", "failed to encode REST request", err) + if err != nil { + r.Error = awserr.New("SerializationError", "failed to encode REST request", err) + } else if value != nil { + uri := r.HTTPRequest.URL.Path + uri = strings.Replace(uri, "{"+name+"}", EscapePath(*value, true), -1) + uri = strings.Replace(uri, "{"+name+"+}", EscapePath(*value, false), -1) + r.HTTPRequest.URL.Path = uri } - - uri := u.Path - uri = strings.Replace(uri, "{"+name+"}", EscapePath(value, true), -1) - uri = strings.Replace(uri, "{"+name+"+}", EscapePath(value, false), -1) - u.Path = uri - - return nil } -func buildQueryString(query url.Values, v reflect.Value, name string) error { - switch value := v.Interface().(type) { - case []*string: - for _, item := range value { - query.Add(name, *item) - } - case map[string]*string: - for key, item := range value { - query.Add(key, *item) - } - case map[string][]*string: - for key, items := range value { - for _, item := range items { - query.Add(key, *item) - } - } - default: - str, err := convertType(v) - if err == errValueNotSet { - return nil - } else if err != nil { - return awserr.New("SerializationError", "failed to encode REST request", err) - } - query.Set(name, str) +func buildQueryString(r *request.Request, v reflect.Value, name string, query url.Values) { + str, err := convertType(v) + if err != nil { + r.Error = awserr.New("SerializationError", "failed to encode REST request", err) + } else if str != nil { + query.Set(name, *str) } - - return nil } func updatePath(url *url.URL, urlPath string) { @@ -222,16 +182,17 @@ func EscapePath(path string, encodeSep bool) string { if noEscape[c] || (c == '/' && !encodeSep) { buf.WriteByte(c) } else { - fmt.Fprintf(&buf, "%%%02X", c) + buf.WriteByte('%') + buf.WriteString(strings.ToUpper(strconv.FormatUint(uint64(c), 16))) } } return buf.String() } -func convertType(v reflect.Value) (string, error) { +func convertType(v reflect.Value) (*string, error) { v = reflect.Indirect(v) if !v.IsValid() { - return "", errValueNotSet + return nil, nil } var str string @@ -250,7 +211,7 @@ func convertType(v reflect.Value) (string, error) { str = value.UTC().Format(RFC822) default: err := fmt.Errorf("Unsupported value for param %v (%s)", v.Interface(), v.Type()) - return "", err + return nil, err } - return str, nil + return &str, nil } diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/payload.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/rest/payload.go similarity index 89% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/rest/payload.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/rest/payload.go index 4366de2e1..1f603bb71 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/payload.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/rest/payload.go @@ -12,7 +12,7 @@ func PayloadMember(i interface{}) interface{} { if !v.IsValid() { return nil } - if field, ok := v.Type().FieldByName("_"); ok { + if field, ok := v.Type().FieldByName("SDKShapeTraits"); ok { if payloadName := field.Tag.Get("payload"); payloadName != "" { field, _ := v.Type().FieldByName(payloadName) if field.Tag.Get("type") != "structure" { @@ -34,7 +34,7 @@ func PayloadType(i interface{}) string { if !v.IsValid() { return "" } - if field, ok := v.Type().FieldByName("_"); ok { + if field, ok := v.Type().FieldByName("SDKShapeTraits"); ok { if payloadName := field.Tag.Get("payload"); payloadName != "" { if member, ok := v.Type().FieldByName(payloadName); ok { return member.Tag.Get("type") diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/rest/unmarshal.go similarity index 86% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/rest/unmarshal.go index 2cba1d9aa..06d9accba 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/rest/unmarshal.go @@ -3,7 +3,6 @@ package rest import ( "encoding/base64" "fmt" - "io" "io/ioutil" "net/http" "reflect" @@ -16,12 +15,6 @@ import ( "github.com/aws/aws-sdk-go/aws/request" ) -// UnmarshalHandler is a named request handler for unmarshaling rest protocol requests -var UnmarshalHandler = request.NamedHandler{Name: "awssdk.rest.Unmarshal", Fn: Unmarshal} - -// UnmarshalMetaHandler is a named request handler for unmarshaling rest protocol request metadata -var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.rest.UnmarshalMeta", Fn: UnmarshalMeta} - // Unmarshal unmarshals the REST component of a response in a REST service. func Unmarshal(r *request.Request) { if r.DataFilled() { @@ -33,10 +26,6 @@ func Unmarshal(r *request.Request) { // UnmarshalMeta unmarshals the REST metadata of a response in a REST service func UnmarshalMeta(r *request.Request) { r.RequestID = r.HTTPResponse.Header.Get("X-Amzn-Requestid") - if r.RequestID == "" { - // Alternative version of request id in the header - r.RequestID = r.HTTPResponse.Header.Get("X-Amz-Request-Id") - } if r.DataFilled() { v := reflect.Indirect(reflect.ValueOf(r.Data)) unmarshalLocationElements(r, v) @@ -44,7 +33,7 @@ func UnmarshalMeta(r *request.Request) { } func unmarshalBody(r *request.Request, v reflect.Value) { - if field, ok := v.Type().FieldByName("_"); ok { + if field, ok := v.Type().FieldByName("SDKShapeTraits"); ok { if payloadName := field.Tag.Get("payload"); payloadName != "" { pfield, _ := v.Type().FieldByName(payloadName) if ptag := pfield.Tag.Get("type"); ptag != "" && ptag != "structure" { @@ -52,7 +41,6 @@ func unmarshalBody(r *request.Request, v reflect.Value) { if payload.IsValid() { switch payload.Interface().(type) { case []byte: - defer r.HTTPResponse.Body.Close() b, err := ioutil.ReadAll(r.HTTPResponse.Body) if err != nil { r.Error = awserr.New("SerializationError", "failed to decode REST response", err) @@ -60,7 +48,6 @@ func unmarshalBody(r *request.Request, v reflect.Value) { 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("SerializationError", "failed to decode REST response", err) @@ -75,8 +62,6 @@ func unmarshalBody(r *request.Request, v reflect.Value) { case "aws.ReadSeekCloser", "io.ReadCloser": payload.Set(reflect.ValueOf(r.HTTPResponse.Body)) default: - io.Copy(ioutil.Discard, r.HTTPResponse.Body) - defer r.HTTPResponse.Body.Close() r.Error = awserr.New("SerializationError", "failed to decode REST response", fmt.Errorf("unknown payload type %s", payload.Type())) diff --git a/vendor/github.com/aws/aws-sdk-go/internal/protocol/restjson/build_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restjson/build_test.go new file mode 100644 index 000000000..34cbae46e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restjson/build_test.go @@ -0,0 +1,1908 @@ +package restjson_test + +import ( + "bytes" + "encoding/json" + "encoding/xml" + "io" + "io/ioutil" + "net/http" + "net/url" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/defaults" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restjson" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/signer/v4" + "github.com/aws/aws-sdk-go/internal/util" + "github.com/stretchr/testify/assert" +) + +var _ bytes.Buffer // always import bytes +var _ http.Request +var _ json.Marshaler +var _ time.Time +var _ xmlutil.XMLNode +var _ xml.Attr +var _ = ioutil.Discard +var _ = util.Trim("") +var _ = url.Values{} +var _ = io.EOF + +type InputService1ProtocolTest struct { + *service.Service +} + +// New returns a new InputService1ProtocolTest client. +func NewInputService1ProtocolTest(config *aws.Config) *InputService1ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice1protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService1ProtocolTest{service} +} + +// newRequest creates a new request for a InputService1ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService1TestCaseOperation1 = "OperationName" + +// InputService1TestCaseOperation1Request generates a request for the InputService1TestCaseOperation1 operation. +func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService1TestCaseOperation1, + HTTPMethod: "GET", + HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", + } + + if input == nil { + input = &InputService1TestShapeInputService1TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService1TestShapeInputService1TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { + req, out := c.InputService1TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService1TestShapeInputService1TestCaseOperation1Input struct { + PipelineId *string `location:"uri" type:"string"` + + metadataInputService1TestShapeInputService1TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService1TestShapeInputService1TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService1TestShapeInputService1TestCaseOperation1Output struct { + metadataInputService1TestShapeInputService1TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService1TestShapeInputService1TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService2ProtocolTest struct { + *service.Service +} + +// New returns a new InputService2ProtocolTest client. +func NewInputService2ProtocolTest(config *aws.Config) *InputService2ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice2protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService2ProtocolTest{service} +} + +// newRequest creates a new request for a InputService2ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService2TestCaseOperation1 = "OperationName" + +// InputService2TestCaseOperation1Request generates a request for the InputService2TestCaseOperation1 operation. +func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService2TestCaseOperation1, + HTTPMethod: "GET", + HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", + } + + if input == nil { + input = &InputService2TestShapeInputService2TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService2TestShapeInputService2TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { + req, out := c.InputService2TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService2TestShapeInputService2TestCaseOperation1Input struct { + Foo *string `location:"uri" locationName:"PipelineId" type:"string"` + + metadataInputService2TestShapeInputService2TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService2TestShapeInputService2TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService2TestShapeInputService2TestCaseOperation1Output struct { + metadataInputService2TestShapeInputService2TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService2TestShapeInputService2TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService3ProtocolTest struct { + *service.Service +} + +// New returns a new InputService3ProtocolTest client. +func NewInputService3ProtocolTest(config *aws.Config) *InputService3ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice3protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService3ProtocolTest{service} +} + +// newRequest creates a new request for a InputService3ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService3TestCaseOperation1 = "OperationName" + +// InputService3TestCaseOperation1Request generates a request for the InputService3TestCaseOperation1 operation. +func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService3TestCaseOperation1, + HTTPMethod: "GET", + HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", + } + + if input == nil { + input = &InputService3TestShapeInputService3TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService3TestShapeInputService3TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { + req, out := c.InputService3TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService3TestShapeInputService3TestCaseOperation1Input struct { + Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` + + PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` + + PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` + + metadataInputService3TestShapeInputService3TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeInputService3TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService3TestShapeInputService3TestCaseOperation1Output struct { + metadataInputService3TestShapeInputService3TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeInputService3TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService4ProtocolTest struct { + *service.Service +} + +// New returns a new InputService4ProtocolTest client. +func NewInputService4ProtocolTest(config *aws.Config) *InputService4ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice4protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService4ProtocolTest{service} +} + +// newRequest creates a new request for a InputService4ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService4TestCaseOperation1 = "OperationName" + +// InputService4TestCaseOperation1Request generates a request for the InputService4TestCaseOperation1 operation. +func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService4TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", + } + + if input == nil { + input = &InputService4TestShapeInputService4TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService4TestShapeInputService4TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { + req, out := c.InputService4TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService4TestShapeInputService4TestCaseOperation1Input struct { + Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` + + Config *InputService4TestShapeStructType `type:"structure"` + + PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` + + PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` + + metadataInputService4TestShapeInputService4TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeInputService4TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService4TestShapeInputService4TestCaseOperation1Output struct { + metadataInputService4TestShapeInputService4TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeInputService4TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService4TestShapeStructType struct { + A *string `type:"string"` + + B *string `type:"string"` + + metadataInputService4TestShapeStructType `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeStructType struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService5ProtocolTest struct { + *service.Service +} + +// New returns a new InputService5ProtocolTest client. +func NewInputService5ProtocolTest(config *aws.Config) *InputService5ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice5protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService5ProtocolTest{service} +} + +// newRequest creates a new request for a InputService5ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService5TestCaseOperation1 = "OperationName" + +// InputService5TestCaseOperation1Request generates a request for the InputService5TestCaseOperation1 operation. +func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService5TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", + } + + if input == nil { + input = &InputService5TestShapeInputService5TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService5TestShapeInputService5TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { + req, out := c.InputService5TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService5TestShapeInputService5TestCaseOperation1Input struct { + Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` + + Checksum *string `location:"header" locationName:"x-amz-checksum" type:"string"` + + Config *InputService5TestShapeStructType `type:"structure"` + + PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` + + PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` + + metadataInputService5TestShapeInputService5TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService5TestShapeInputService5TestCaseOperation1Output struct { + metadataInputService5TestShapeInputService5TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService5TestShapeStructType struct { + A *string `type:"string"` + + B *string `type:"string"` + + metadataInputService5TestShapeStructType `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeStructType struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService6ProtocolTest struct { + *service.Service +} + +// New returns a new InputService6ProtocolTest client. +func NewInputService6ProtocolTest(config *aws.Config) *InputService6ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice6protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService6ProtocolTest{service} +} + +// newRequest creates a new request for a InputService6ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService6TestCaseOperation1 = "OperationName" + +// InputService6TestCaseOperation1Request generates a request for the InputService6TestCaseOperation1 operation. +func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService6TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/vaults/{vaultName}/archives", + } + + if input == nil { + input = &InputService6TestShapeInputService6TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService6TestShapeInputService6TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { + req, out := c.InputService6TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService6TestShapeInputService6TestCaseOperation1Input struct { + Body io.ReadSeeker `locationName:"body" type:"blob"` + + Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"` + + VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataInputService6TestShapeInputService6TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService6TestShapeInputService6TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure" payload:"Body"` +} + +type InputService6TestShapeInputService6TestCaseOperation1Output struct { + metadataInputService6TestShapeInputService6TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService6TestShapeInputService6TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService7ProtocolTest struct { + *service.Service +} + +// New returns a new InputService7ProtocolTest client. +func NewInputService7ProtocolTest(config *aws.Config) *InputService7ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice7protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService7ProtocolTest{service} +} + +// newRequest creates a new request for a InputService7ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService7TestCaseOperation1 = "OperationName" + +// InputService7TestCaseOperation1Request generates a request for the InputService7TestCaseOperation1 operation. +func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService7TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService7TestShapeInputService7TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService7TestShapeInputService7TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { + req, out := c.InputService7TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService7TestShapeInputService7TestCaseOperation1Input struct { + Foo *string `locationName:"foo" type:"string"` + + metadataInputService7TestShapeInputService7TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService7TestShapeInputService7TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure" payload:"Foo"` +} + +type InputService7TestShapeInputService7TestCaseOperation1Output struct { + metadataInputService7TestShapeInputService7TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService7TestShapeInputService7TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService8ProtocolTest struct { + *service.Service +} + +// New returns a new InputService8ProtocolTest client. +func NewInputService8ProtocolTest(config *aws.Config) *InputService8ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice8protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService8ProtocolTest{service} +} + +// newRequest creates a new request for a InputService8ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService8TestCaseOperation1 = "OperationName" + +// InputService8TestCaseOperation1Request generates a request for the InputService8TestCaseOperation1 operation. +func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputShape) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService8TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService8TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService8TestShapeInputService8TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputShape) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { + req, out := c.InputService8TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService8TestCaseOperation2 = "OperationName" + +// InputService8TestCaseOperation2Request generates a request for the InputService8TestCaseOperation2 operation. +func (c *InputService8ProtocolTest) InputService8TestCaseOperation2Request(input *InputService8TestShapeInputShape) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService8TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService8TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService8TestShapeInputService8TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService8ProtocolTest) InputService8TestCaseOperation2(input *InputService8TestShapeInputShape) (*InputService8TestShapeInputService8TestCaseOperation2Output, error) { + req, out := c.InputService8TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +type InputService8TestShapeInputService8TestCaseOperation1Output struct { + metadataInputService8TestShapeInputService8TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService8TestShapeInputService8TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService8TestShapeInputService8TestCaseOperation2Output struct { + metadataInputService8TestShapeInputService8TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService8TestShapeInputService8TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService8TestShapeInputShape struct { + Foo []byte `locationName:"foo" type:"blob"` + + metadataInputService8TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService8TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure" payload:"Foo"` +} + +type InputService9ProtocolTest struct { + *service.Service +} + +// New returns a new InputService9ProtocolTest client. +func NewInputService9ProtocolTest(config *aws.Config) *InputService9ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice9protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService9ProtocolTest{service} +} + +// newRequest creates a new request for a InputService9ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService9TestCaseOperation1 = "OperationName" + +// InputService9TestCaseOperation1Request generates a request for the InputService9TestCaseOperation1 operation. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService9TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService9TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService9TestShapeInputService9TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { + req, out := c.InputService9TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService9TestCaseOperation2 = "OperationName" + +// InputService9TestCaseOperation2Request generates a request for the InputService9TestCaseOperation2 operation. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation2Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService9TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService9TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService9TestShapeInputService9TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService9ProtocolTest) InputService9TestCaseOperation2(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation2Output, error) { + req, out := c.InputService9TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +type InputService9TestShapeFooShape struct { + Baz *string `locationName:"baz" type:"string"` + + metadataInputService9TestShapeFooShape `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeFooShape struct { + SDKShapeTraits bool `locationName:"foo" type:"structure"` +} + +type InputService9TestShapeInputService9TestCaseOperation1Output struct { + metadataInputService9TestShapeInputService9TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputService9TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9TestShapeInputService9TestCaseOperation2Output struct { + metadataInputService9TestShapeInputService9TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputService9TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9TestShapeInputShape struct { + Foo *InputService9TestShapeFooShape `locationName:"foo" type:"structure"` + + metadataInputService9TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure" payload:"Foo"` +} + +type InputService10ProtocolTest struct { + *service.Service +} + +// New returns a new InputService10ProtocolTest client. +func NewInputService10ProtocolTest(config *aws.Config) *InputService10ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice10protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService10ProtocolTest{service} +} + +// newRequest creates a new request for a InputService10ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService10TestCaseOperation1 = "OperationName" + +// InputService10TestCaseOperation1Request generates a request for the InputService10TestCaseOperation1 operation. +func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputShape) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService10TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService10TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService10TestShapeInputService10TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputShape) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { + req, out := c.InputService10TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService10TestCaseOperation2 = "OperationName" + +// InputService10TestCaseOperation2Request generates a request for the InputService10TestCaseOperation2 operation. +func (c *InputService10ProtocolTest) InputService10TestCaseOperation2Request(input *InputService10TestShapeInputShape) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService10TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/path?abc=mno", + } + + if input == nil { + input = &InputService10TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService10TestShapeInputService10TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService10ProtocolTest) InputService10TestCaseOperation2(input *InputService10TestShapeInputShape) (*InputService10TestShapeInputService10TestCaseOperation2Output, error) { + req, out := c.InputService10TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +type InputService10TestShapeInputService10TestCaseOperation1Output struct { + metadataInputService10TestShapeInputService10TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService10TestShapeInputService10TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService10TestShapeInputService10TestCaseOperation2Output struct { + metadataInputService10TestShapeInputService10TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService10TestShapeInputService10TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService10TestShapeInputShape struct { + Foo *string `location:"querystring" locationName:"param-name" type:"string"` + + metadataInputService10TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService10TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService11ProtocolTest struct { + *service.Service +} + +// New returns a new InputService11ProtocolTest client. +func NewInputService11ProtocolTest(config *aws.Config) *InputService11ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice11protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService11ProtocolTest{service} +} + +// newRequest creates a new request for a InputService11ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService11TestCaseOperation1 = "OperationName" + +// InputService11TestCaseOperation1Request generates a request for the InputService11TestCaseOperation1 operation. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputShape) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService11TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService11TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService11TestShapeInputService11TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputShape) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { + req, out := c.InputService11TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService11TestCaseOperation2 = "OperationName" + +// InputService11TestCaseOperation2Request generates a request for the InputService11TestCaseOperation2 operation. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation2Request(input *InputService11TestShapeInputShape) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService11TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService11TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService11TestShapeInputService11TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService11ProtocolTest) InputService11TestCaseOperation2(input *InputService11TestShapeInputShape) (*InputService11TestShapeInputService11TestCaseOperation2Output, error) { + req, out := c.InputService11TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +const opInputService11TestCaseOperation3 = "OperationName" + +// InputService11TestCaseOperation3Request generates a request for the InputService11TestCaseOperation3 operation. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation3Request(input *InputService11TestShapeInputShape) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation3Output) { + op := &request.Operation{ + Name: opInputService11TestCaseOperation3, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService11TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService11TestShapeInputService11TestCaseOperation3Output{} + req.Data = output + return +} + +func (c *InputService11ProtocolTest) InputService11TestCaseOperation3(input *InputService11TestShapeInputShape) (*InputService11TestShapeInputService11TestCaseOperation3Output, error) { + req, out := c.InputService11TestCaseOperation3Request(input) + err := req.Send() + return out, err +} + +const opInputService11TestCaseOperation4 = "OperationName" + +// InputService11TestCaseOperation4Request generates a request for the InputService11TestCaseOperation4 operation. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation4Request(input *InputService11TestShapeInputShape) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation4Output) { + op := &request.Operation{ + Name: opInputService11TestCaseOperation4, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService11TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService11TestShapeInputService11TestCaseOperation4Output{} + req.Data = output + return +} + +func (c *InputService11ProtocolTest) InputService11TestCaseOperation4(input *InputService11TestShapeInputShape) (*InputService11TestShapeInputService11TestCaseOperation4Output, error) { + req, out := c.InputService11TestCaseOperation4Request(input) + err := req.Send() + return out, err +} + +const opInputService11TestCaseOperation5 = "OperationName" + +// InputService11TestCaseOperation5Request generates a request for the InputService11TestCaseOperation5 operation. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation5Request(input *InputService11TestShapeInputShape) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation5Output) { + op := &request.Operation{ + Name: opInputService11TestCaseOperation5, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService11TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService11TestShapeInputService11TestCaseOperation5Output{} + req.Data = output + return +} + +func (c *InputService11ProtocolTest) InputService11TestCaseOperation5(input *InputService11TestShapeInputShape) (*InputService11TestShapeInputService11TestCaseOperation5Output, error) { + req, out := c.InputService11TestCaseOperation5Request(input) + err := req.Send() + return out, err +} + +const opInputService11TestCaseOperation6 = "OperationName" + +// InputService11TestCaseOperation6Request generates a request for the InputService11TestCaseOperation6 operation. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation6Request(input *InputService11TestShapeInputShape) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation6Output) { + op := &request.Operation{ + Name: opInputService11TestCaseOperation6, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService11TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService11TestShapeInputService11TestCaseOperation6Output{} + req.Data = output + return +} + +func (c *InputService11ProtocolTest) InputService11TestCaseOperation6(input *InputService11TestShapeInputShape) (*InputService11TestShapeInputService11TestCaseOperation6Output, error) { + req, out := c.InputService11TestCaseOperation6Request(input) + err := req.Send() + return out, err +} + +type InputService11TestShapeInputService11TestCaseOperation1Output struct { + metadataInputService11TestShapeInputService11TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService11TestShapeInputService11TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService11TestShapeInputService11TestCaseOperation2Output struct { + metadataInputService11TestShapeInputService11TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService11TestShapeInputService11TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService11TestShapeInputService11TestCaseOperation3Output struct { + metadataInputService11TestShapeInputService11TestCaseOperation3Output `json:"-" xml:"-"` +} + +type metadataInputService11TestShapeInputService11TestCaseOperation3Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService11TestShapeInputService11TestCaseOperation4Output struct { + metadataInputService11TestShapeInputService11TestCaseOperation4Output `json:"-" xml:"-"` +} + +type metadataInputService11TestShapeInputService11TestCaseOperation4Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService11TestShapeInputService11TestCaseOperation5Output struct { + metadataInputService11TestShapeInputService11TestCaseOperation5Output `json:"-" xml:"-"` +} + +type metadataInputService11TestShapeInputService11TestCaseOperation5Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService11TestShapeInputService11TestCaseOperation6Output struct { + metadataInputService11TestShapeInputService11TestCaseOperation6Output `json:"-" xml:"-"` +} + +type metadataInputService11TestShapeInputService11TestCaseOperation6Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService11TestShapeInputShape struct { + RecursiveStruct *InputService11TestShapeRecursiveStructType `type:"structure"` + + metadataInputService11TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService11TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService11TestShapeRecursiveStructType struct { + NoRecurse *string `type:"string"` + + RecursiveList []*InputService11TestShapeRecursiveStructType `type:"list"` + + RecursiveMap map[string]*InputService11TestShapeRecursiveStructType `type:"map"` + + RecursiveStruct *InputService11TestShapeRecursiveStructType `type:"structure"` + + metadataInputService11TestShapeRecursiveStructType `json:"-" xml:"-"` +} + +type metadataInputService11TestShapeRecursiveStructType struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService12ProtocolTest struct { + *service.Service +} + +// New returns a new InputService12ProtocolTest client. +func NewInputService12ProtocolTest(config *aws.Config) *InputService12ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice12protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + return &InputService12ProtocolTest{service} +} + +// newRequest creates a new request for a InputService12ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService12TestCaseOperation1 = "OperationName" + +// InputService12TestCaseOperation1Request generates a request for the InputService12TestCaseOperation1 operation. +func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService12TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService12TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService12TestShapeInputService12TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { + req, out := c.InputService12TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService12TestCaseOperation2 = "OperationName" + +// InputService12TestCaseOperation2Request generates a request for the InputService12TestCaseOperation2 operation. +func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService12TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService12TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService12TestShapeInputService12TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) { + req, out := c.InputService12TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +type InputService12TestShapeInputService12TestCaseOperation1Output struct { + metadataInputService12TestShapeInputService12TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService12TestShapeInputService12TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService12TestShapeInputService12TestCaseOperation2Output struct { + metadataInputService12TestShapeInputService12TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService12TestShapeInputService12TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService12TestShapeInputShape struct { + TimeArg *time.Time `type:"timestamp" timestampFormat:"unix"` + + TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"` + + metadataInputService12TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService12TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure"` +} + +// +// Tests begin here +// + +func TestInputService1ProtocolTestURIParameterOnlyWithNoLocationNameCase1(t *testing.T) { + svc := NewInputService1ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService1TestShapeInputService1TestCaseOperation1Input{ + PipelineId: aws.String("foo"), + } + req, _ := svc.InputService1TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/jobsByPipeline/foo", r.URL.String()) + + // assert headers + +} + +func TestInputService2ProtocolTestURIParameterOnlyWithLocationNameCase1(t *testing.T) { + svc := NewInputService2ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService2TestShapeInputService2TestCaseOperation1Input{ + Foo: aws.String("bar"), + } + req, _ := svc.InputService2TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/jobsByPipeline/bar", r.URL.String()) + + // assert headers + +} + +func TestInputService3ProtocolTestURIParameterAndQuerystringParamsCase1(t *testing.T) { + svc := NewInputService3ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService3TestShapeInputService3TestCaseOperation1Input{ + Ascending: aws.String("true"), + PageToken: aws.String("bar"), + PipelineId: aws.String("foo"), + } + req, _ := svc.InputService3TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String()) + + // assert headers + +} + +func TestInputService4ProtocolTestURIParameterQuerystringParamsAndJSONBodyCase1(t *testing.T) { + svc := NewInputService4ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService4TestShapeInputService4TestCaseOperation1Input{ + Ascending: aws.String("true"), + Config: &InputService4TestShapeStructType{ + A: aws.String("one"), + B: aws.String("two"), + }, + PageToken: aws.String("bar"), + PipelineId: aws.String("foo"), + } + req, _ := svc.InputService4TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`{"Config":{"A":"one","B":"two"}}`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String()) + + // assert headers + +} + +func TestInputService5ProtocolTestURIParameterQuerystringParamsHeadersAndJSONBodyCase1(t *testing.T) { + svc := NewInputService5ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService5TestShapeInputService5TestCaseOperation1Input{ + Ascending: aws.String("true"), + Checksum: aws.String("12345"), + Config: &InputService5TestShapeStructType{ + A: aws.String("one"), + B: aws.String("two"), + }, + PageToken: aws.String("bar"), + PipelineId: aws.String("foo"), + } + req, _ := svc.InputService5TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`{"Config":{"A":"one","B":"two"}}`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String()) + + // assert headers + assert.Equal(t, "12345", r.Header.Get("x-amz-checksum")) + +} + +func TestInputService6ProtocolTestStreamingPayloadCase1(t *testing.T) { + svc := NewInputService6ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService6TestShapeInputService6TestCaseOperation1Input{ + Body: aws.ReadSeekCloser(bytes.NewBufferString("contents")), + Checksum: aws.String("foo"), + VaultName: aws.String("name"), + } + req, _ := svc.InputService6TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`contents`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/vaults/name/archives", r.URL.String()) + + // assert headers + assert.Equal(t, "foo", r.Header.Get("x-amz-sha256-tree-hash")) + +} + +func TestInputService7ProtocolTestStringPayloadCase1(t *testing.T) { + svc := NewInputService7ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService7TestShapeInputService7TestCaseOperation1Input{ + Foo: aws.String("bar"), + } + req, _ := svc.InputService7TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`bar`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService8ProtocolTestBlobPayloadCase1(t *testing.T) { + svc := NewInputService8ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService8TestShapeInputShape{ + Foo: []byte("bar"), + } + req, _ := svc.InputService8TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`bar`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService8ProtocolTestBlobPayloadCase2(t *testing.T) { + svc := NewInputService8ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService8TestShapeInputShape{} + req, _ := svc.InputService8TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService9ProtocolTestStructurePayloadCase1(t *testing.T) { + svc := NewInputService9ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService9TestShapeInputShape{ + Foo: &InputService9TestShapeFooShape{ + Baz: aws.String("bar"), + }, + } + req, _ := svc.InputService9TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`{"baz":"bar"}`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService9ProtocolTestStructurePayloadCase2(t *testing.T) { + svc := NewInputService9ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService9TestShapeInputShape{} + req, _ := svc.InputService9TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService10ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) { + svc := NewInputService10ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService10TestShapeInputShape{} + req, _ := svc.InputService10TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService10ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) { + svc := NewInputService10ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService10TestShapeInputShape{ + Foo: aws.String(""), + } + req, _ := svc.InputService10TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/path?abc=mno¶m-name=", r.URL.String()) + + // assert headers + +} + +func TestInputService11ProtocolTestRecursiveShapesCase1(t *testing.T) { + svc := NewInputService11ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService11TestShapeInputShape{ + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + NoRecurse: aws.String("foo"), + }, + } + req, _ := svc.InputService11TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"NoRecurse":"foo"}}`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService11ProtocolTestRecursiveShapesCase2(t *testing.T) { + svc := NewInputService11ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService11TestShapeInputShape{ + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + NoRecurse: aws.String("foo"), + }, + }, + } + req, _ := svc.InputService11TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService11ProtocolTestRecursiveShapesCase3(t *testing.T) { + svc := NewInputService11ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService11TestShapeInputShape{ + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + NoRecurse: aws.String("foo"), + }, + }, + }, + }, + } + req, _ := svc.InputService11TestCaseOperation3Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}}}`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService11ProtocolTestRecursiveShapesCase4(t *testing.T) { + svc := NewInputService11ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService11TestShapeInputShape{ + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + RecursiveList: []*InputService11TestShapeRecursiveStructType{ + { + NoRecurse: aws.String("foo"), + }, + { + NoRecurse: aws.String("bar"), + }, + }, + }, + } + req, _ := svc.InputService11TestCaseOperation4Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"NoRecurse":"bar"}]}}`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService11ProtocolTestRecursiveShapesCase5(t *testing.T) { + svc := NewInputService11ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService11TestShapeInputShape{ + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + RecursiveList: []*InputService11TestShapeRecursiveStructType{ + { + NoRecurse: aws.String("foo"), + }, + { + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + NoRecurse: aws.String("bar"), + }, + }, + }, + }, + } + req, _ := svc.InputService11TestCaseOperation5Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"RecursiveStruct":{"NoRecurse":"bar"}}]}}`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService11ProtocolTestRecursiveShapesCase6(t *testing.T) { + svc := NewInputService11ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService11TestShapeInputShape{ + RecursiveStruct: &InputService11TestShapeRecursiveStructType{ + RecursiveMap: map[string]*InputService11TestShapeRecursiveStructType{ + "bar": { + NoRecurse: aws.String("bar"), + }, + "foo": { + NoRecurse: aws.String("foo"), + }, + }, + }, + } + req, _ := svc.InputService11TestCaseOperation6Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`{"RecursiveStruct":{"RecursiveMap":{"bar":{"NoRecurse":"bar"},"foo":{"NoRecurse":"foo"}}}}`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService12ProtocolTestTimestampValuesCase1(t *testing.T) { + svc := NewInputService12ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService12TestShapeInputShape{ + TimeArg: aws.Time(time.Unix(1422172800, 0)), + } + req, _ := svc.InputService12TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body, _ := ioutil.ReadAll(r.Body) + assert.Equal(t, util.Trim(`{"TimeArg":1422172800}`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService12ProtocolTestTimestampValuesCase2(t *testing.T) { + svc := NewInputService12ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService12TestShapeInputShape{ + TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)), + } + req, _ := svc.InputService12TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restjson.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + assert.Equal(t, "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg")) + +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/restjson.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restjson/restjson.go similarity index 58% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/restjson.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/restjson/restjson.go index 2c95a9858..7b42256b8 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/restjson.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restjson/restjson.go @@ -2,8 +2,8 @@ // requests and responses. package restjson -//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/input/rest-json.json build_test.go -//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/rest-json.json unmarshal_test.go +//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/input/rest-json.json build_test.go +//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/output/rest-json.json unmarshal_test.go import ( "encoding/json" @@ -12,22 +12,10 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/protocol/rest" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/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} - -// UnmarshalMetaHandler is a named request handler for unmarshaling restjson protocol request metadata -var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.restjson.UnmarshalMeta", Fn: UnmarshalMeta} - -// UnmarshalErrorHandler is a named request handler for unmarshaling restjson protocol request errors -var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.restjson.UnmarshalError", Fn: UnmarshalError} - // Build builds a request for the REST JSON protocol. func Build(r *request.Request) { rest.Build(r) @@ -53,7 +41,6 @@ func UnmarshalMeta(r *request.Request) { // UnmarshalError unmarshals a response error for the REST JSON protocol. func UnmarshalError(r *request.Request) { - defer r.HTTPResponse.Body.Close() code := r.HTTPResponse.Header.Get("X-Amzn-Errortype") bodyBytes, err := ioutil.ReadAll(r.HTTPResponse.Body) if err != nil { @@ -78,9 +65,9 @@ func UnmarshalError(r *request.Request) { code = jsonErr.Code } - code = strings.SplitN(code, ":", 2)[0] + codes := strings.SplitN(code, ":", 2) r.Error = awserr.NewRequestFailure( - awserr.New(code, jsonErr.Message, nil), + awserr.New(codes[0], jsonErr.Message, nil), r.HTTPResponse.StatusCode, r.RequestID, ) diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restjson/unmarshal_test.go similarity index 55% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/unmarshal_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/restjson/unmarshal_test.go index 8c2bf099b..58d7f47fb 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/unmarshal_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restjson/unmarshal_test.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/json" "encoding/xml" - "fmt" "io" "io/ioutil" "net/http" @@ -13,16 +12,14 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" - "github.com/aws/aws-sdk-go/private/signer/v4" - "github.com/aws/aws-sdk-go/private/util" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restjson" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/signer/v4" + "github.com/aws/aws-sdk-go/internal/util" "github.com/stretchr/testify/assert" ) @@ -36,57 +33,30 @@ var _ = ioutil.Discard var _ = util.Trim("") var _ = url.Values{} var _ = io.EOF -var _ = aws.String -var _ = fmt.Println -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService1ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService1ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService1ProtocolTest client from just a session. -// svc := outputservice1protocoltest.New(mySession) -// -// // Create a OutputService1ProtocolTest client with additional configuration -// svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { - c := p.ClientConfig("outputservice1protocoltest", cfgs...) - return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService1ProtocolTest { - svc := &OutputService1ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice1protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService1ProtocolTest client. +func NewOutputService1ProtocolTest(config *aws.Config) *OutputService1ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice1protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService1ProtocolTest{service} } // newRequest creates a new request for a OutputService1ProtocolTest operation and runs any @@ -122,12 +92,14 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *Out } type OutputService1TestShapeOutputService1TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService1TestShapeOutputService1TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService1TestShapeOutputService1TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { Char *string `type:"character"` Double *float64 `type:"double"` @@ -149,52 +121,37 @@ type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { Str *string `type:"string"` TrueBool *bool `type:"boolean"` + + metadataOutputService1TestShapeOutputService1TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService1TestShapeOutputService1TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService2ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService2ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService2ProtocolTest client from just a session. -// svc := outputservice2protocoltest.New(mySession) -// -// // Create a OutputService2ProtocolTest client with additional configuration -// svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { - c := p.ClientConfig("outputservice2protocoltest", cfgs...) - return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService2ProtocolTest { - svc := &OutputService2ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice2protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService2ProtocolTest client. +func NewOutputService2ProtocolTest(config *aws.Config) *OutputService2ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice2protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService2ProtocolTest{service} } // newRequest creates a new request for a OutputService2ProtocolTest operation and runs any @@ -230,69 +187,58 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *Out } type OutputService2TestShapeBlobContainer struct { - _ struct{} `type:"structure"` - - // Foo is automatically base64 encoded/decoded by the SDK. Foo []byte `locationName:"foo" type:"blob"` + + metadataOutputService2TestShapeBlobContainer `json:"-" xml:"-"` +} + +type metadataOutputService2TestShapeBlobContainer struct { + SDKShapeTraits bool `type:"structure"` } type OutputService2TestShapeOutputService2TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService2TestShapeOutputService2TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService2TestShapeOutputService2TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} - // BlobMember is automatically base64 encoded/decoded by the SDK. +type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { BlobMember []byte `type:"blob"` StructMember *OutputService2TestShapeBlobContainer `type:"structure"` + + metadataOutputService2TestShapeOutputService2TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService2TestShapeOutputService2TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService3ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService3ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService3ProtocolTest client from just a session. -// svc := outputservice3protocoltest.New(mySession) -// -// // Create a OutputService3ProtocolTest client with additional configuration -// svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { - c := p.ClientConfig("outputservice3protocoltest", cfgs...) - return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService3ProtocolTest { - svc := &OutputService3ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice3protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService3ProtocolTest client. +func NewOutputService3ProtocolTest(config *aws.Config) *OutputService3ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice3protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService3ProtocolTest{service} } // newRequest creates a new request for a OutputService3ProtocolTest operation and runs any @@ -328,67 +274,58 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *Out } type OutputService3TestShapeOutputService3TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService3TestShapeOutputService3TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService3TestShapeOutputService3TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { StructMember *OutputService3TestShapeTimeContainer `type:"structure"` TimeMember *time.Time `type:"timestamp" timestampFormat:"unix"` + + metadataOutputService3TestShapeOutputService3TestCaseOperation1Output `json:"-" xml:"-"` } -type OutputService3TestShapeTimeContainer struct { - _ struct{} `type:"structure"` +type metadataOutputService3TestShapeOutputService3TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService3TestShapeTimeContainer struct { Foo *time.Time `locationName:"foo" type:"timestamp" timestampFormat:"unix"` + + metadataOutputService3TestShapeTimeContainer `json:"-" xml:"-"` +} + +type metadataOutputService3TestShapeTimeContainer struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService4ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService4ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService4ProtocolTest client from just a session. -// svc := outputservice4protocoltest.New(mySession) -// -// // Create a OutputService4ProtocolTest client with additional configuration -// svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { - c := p.ClientConfig("outputservice4protocoltest", cfgs...) - return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService4ProtocolTest { - svc := &OutputService4ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice4protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService4ProtocolTest client. +func NewOutputService4ProtocolTest(config *aws.Config) *OutputService4ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice4protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService4ProtocolTest{service} } // newRequest creates a new request for a OutputService4ProtocolTest operation and runs any @@ -424,59 +361,46 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *Out } type OutputService4TestShapeOutputService4TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService4TestShapeOutputService4TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService4TestShapeOutputService4TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { ListMember []*string `type:"list"` + + metadataOutputService4TestShapeOutputService4TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService4TestShapeOutputService4TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService5ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService5ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService5ProtocolTest client from just a session. -// svc := outputservice5protocoltest.New(mySession) -// -// // Create a OutputService5ProtocolTest client with additional configuration -// svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { - c := p.ClientConfig("outputservice5protocoltest", cfgs...) - return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService5ProtocolTest { - svc := &OutputService5ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice5protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService5ProtocolTest client. +func NewOutputService5ProtocolTest(config *aws.Config) *OutputService5ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice5protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService5ProtocolTest{service} } // newRequest creates a new request for a OutputService5ProtocolTest operation and runs any @@ -512,65 +436,56 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *Out } type OutputService5TestShapeOutputService5TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService5TestShapeOutputService5TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService5TestShapeOutputService5TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { ListMember []*OutputService5TestShapeSingleStruct `type:"list"` + + metadataOutputService5TestShapeOutputService5TestCaseOperation1Output `json:"-" xml:"-"` } -type OutputService5TestShapeSingleStruct struct { - _ struct{} `type:"structure"` +type metadataOutputService5TestShapeOutputService5TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService5TestShapeSingleStruct struct { Foo *string `type:"string"` + + metadataOutputService5TestShapeSingleStruct `json:"-" xml:"-"` +} + +type metadataOutputService5TestShapeSingleStruct struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService6ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService6ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService6ProtocolTest client from just a session. -// svc := outputservice6protocoltest.New(mySession) -// -// // Create a OutputService6ProtocolTest client with additional configuration -// svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { - c := p.ClientConfig("outputservice6protocoltest", cfgs...) - return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService6ProtocolTest { - svc := &OutputService6ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice6protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService6ProtocolTest client. +func NewOutputService6ProtocolTest(config *aws.Config) *OutputService6ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice6protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService6ProtocolTest{service} } // newRequest creates a new request for a OutputService6ProtocolTest operation and runs any @@ -606,59 +521,46 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *Out } type OutputService6TestShapeOutputService6TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService6TestShapeOutputService6TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService6TestShapeOutputService6TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { MapMember map[string][]*int64 `type:"map"` + + metadataOutputService6TestShapeOutputService6TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService6TestShapeOutputService6TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService7ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService7ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService7ProtocolTest client from just a session. -// svc := outputservice7protocoltest.New(mySession) -// -// // Create a OutputService7ProtocolTest client with additional configuration -// svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { - c := p.ClientConfig("outputservice7protocoltest", cfgs...) - return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService7ProtocolTest { - svc := &OutputService7ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice7protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService7ProtocolTest client. +func NewOutputService7ProtocolTest(config *aws.Config) *OutputService7ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice7protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService7ProtocolTest{service} } // newRequest creates a new request for a OutputService7ProtocolTest operation and runs any @@ -694,59 +596,46 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *Out } type OutputService7TestShapeOutputService7TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService7TestShapeOutputService7TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService7TestShapeOutputService7TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { MapMember map[string]*time.Time `type:"map"` + + metadataOutputService7TestShapeOutputService7TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService7TestShapeOutputService7TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService8ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService8ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService8ProtocolTest client from just a session. -// svc := outputservice8protocoltest.New(mySession) -// -// // Create a OutputService8ProtocolTest client with additional configuration -// svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { - c := p.ClientConfig("outputservice8protocoltest", cfgs...) - return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService8ProtocolTest { - svc := &OutputService8ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice8protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService8ProtocolTest client. +func NewOutputService8ProtocolTest(config *aws.Config) *OutputService8ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice8protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService8ProtocolTest{service} } // newRequest creates a new request for a OutputService8ProtocolTest operation and runs any @@ -782,59 +671,46 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *Out } type OutputService8TestShapeOutputService8TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService8TestShapeOutputService8TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService8TestShapeOutputService8TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { StrType *string `type:"string"` + + metadataOutputService8TestShapeOutputService8TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService8TestShapeOutputService8TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService9ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService9ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService9ProtocolTest client from just a session. -// svc := outputservice9protocoltest.New(mySession) -// -// // Create a OutputService9ProtocolTest client with additional configuration -// svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { - c := p.ClientConfig("outputservice9protocoltest", cfgs...) - return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService9ProtocolTest { - svc := &OutputService9ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice9protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService9ProtocolTest client. +func NewOutputService9ProtocolTest(config *aws.Config) *OutputService9ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice9protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService9ProtocolTest{service} } // newRequest creates a new request for a OutputService9ProtocolTest operation and runs any @@ -870,61 +746,48 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *Out } type OutputService9TestShapeOutputService9TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService9TestShapeOutputService9TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService9TestShapeOutputService9TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { AllHeaders map[string]*string `location:"headers" type:"map"` PrefixedHeaders map[string]*string `location:"headers" locationName:"X-" type:"map"` + + metadataOutputService9TestShapeOutputService9TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService9TestShapeOutputService9TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService10ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService10ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService10ProtocolTest client from just a session. -// svc := outputservice10protocoltest.New(mySession) -// -// // Create a OutputService10ProtocolTest client with additional configuration -// svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest { - c := p.ClientConfig("outputservice10protocoltest", cfgs...) - return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService10ProtocolTest { - svc := &OutputService10ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice10protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService10ProtocolTest client. +func NewOutputService10ProtocolTest(config *aws.Config) *OutputService10ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice10protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService10ProtocolTest{service} } // newRequest creates a new request for a OutputService10ProtocolTest operation and runs any @@ -960,67 +823,58 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *O } type OutputService10TestShapeBodyStructure struct { - _ struct{} `type:"structure"` - Foo *string `type:"string"` + + metadataOutputService10TestShapeBodyStructure `json:"-" xml:"-"` +} + +type metadataOutputService10TestShapeBodyStructure struct { + SDKShapeTraits bool `type:"structure"` } type OutputService10TestShapeOutputService10TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService10TestShapeOutputService10TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService10TestShapeOutputService10TestCaseOperation1Output struct { - _ struct{} `type:"structure" payload:"Data"` +type metadataOutputService10TestShapeOutputService10TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService10TestShapeOutputService10TestCaseOperation1Output struct { Data *OutputService10TestShapeBodyStructure `type:"structure"` Header *string `location:"header" locationName:"X-Foo" type:"string"` + + metadataOutputService10TestShapeOutputService10TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService10TestShapeOutputService10TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure" payload:"Data"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService11ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService11ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService11ProtocolTest client from just a session. -// svc := outputservice11protocoltest.New(mySession) -// -// // Create a OutputService11ProtocolTest client with additional configuration -// svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest { - c := p.ClientConfig("outputservice11protocoltest", cfgs...) - return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService11ProtocolTest { - svc := &OutputService11ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice11protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService11ProtocolTest client. +func NewOutputService11ProtocolTest(config *aws.Config) *OutputService11ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice11protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - return svc + return &OutputService11ProtocolTest{service} } // newRequest creates a new request for a OutputService11ProtocolTest operation and runs any @@ -1056,13 +910,21 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *O } type OutputService11TestShapeOutputService11TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService11TestShapeOutputService11TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { - _ struct{} `type:"structure" payload:"Stream"` +type metadataOutputService11TestShapeOutputService11TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { Stream []byte `type:"blob"` + + metadataOutputService11TestShapeOutputService11TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService11TestShapeOutputService11TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure" payload:"Stream"` } // @@ -1070,8 +932,7 @@ type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { // func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService1ProtocolTest(nil) buf := bytes.NewReader([]byte("{\"Str\": \"myname\", \"Num\": 123, \"FalseBool\": false, \"TrueBool\": true, \"Float\": 1.2, \"Double\": 1.3, \"Long\": 200, \"Char\": \"a\"}")) req, out := svc.OutputService1TestCaseOperation1Request(nil) @@ -1103,8 +964,7 @@ func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) { } func TestOutputService2ProtocolTestBlobMembersCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService2ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService2ProtocolTest(nil) buf := bytes.NewReader([]byte("{\"BlobMember\": \"aGkh\", \"StructMember\": {\"foo\": \"dGhlcmUh\"}}")) req, out := svc.OutputService2TestCaseOperation1Request(nil) @@ -1125,8 +985,7 @@ func TestOutputService2ProtocolTestBlobMembersCase1(t *testing.T) { } func TestOutputService3ProtocolTestTimestampMembersCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService3ProtocolTest(nil) buf := bytes.NewReader([]byte("{\"TimeMember\": 1398796238, \"StructMember\": {\"foo\": 1398796238}}")) req, out := svc.OutputService3TestCaseOperation1Request(nil) @@ -1147,8 +1006,7 @@ func TestOutputService3ProtocolTestTimestampMembersCase1(t *testing.T) { } func TestOutputService4ProtocolTestListsCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService4ProtocolTest(nil) buf := bytes.NewReader([]byte("{\"ListMember\": [\"a\", \"b\"]}")) req, out := svc.OutputService4TestCaseOperation1Request(nil) @@ -1169,8 +1027,7 @@ func TestOutputService4ProtocolTestListsCase1(t *testing.T) { } func TestOutputService5ProtocolTestListsWithStructureMemberCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService5ProtocolTest(nil) buf := bytes.NewReader([]byte("{\"ListMember\": [{\"Foo\": \"a\"}, {\"Foo\": \"b\"}]}")) req, out := svc.OutputService5TestCaseOperation1Request(nil) @@ -1191,8 +1048,7 @@ func TestOutputService5ProtocolTestListsWithStructureMemberCase1(t *testing.T) { } func TestOutputService6ProtocolTestMapsCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService6ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService6ProtocolTest(nil) buf := bytes.NewReader([]byte("{\"MapMember\": {\"a\": [1, 2], \"b\": [3, 4]}}")) req, out := svc.OutputService6TestCaseOperation1Request(nil) @@ -1215,8 +1071,7 @@ func TestOutputService6ProtocolTestMapsCase1(t *testing.T) { } func TestOutputService7ProtocolTestComplexMapValuesCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService7ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService7ProtocolTest(nil) buf := bytes.NewReader([]byte("{\"MapMember\": {\"a\": 1398796238, \"b\": 1398796238}}")) req, out := svc.OutputService7TestCaseOperation1Request(nil) @@ -1237,8 +1092,7 @@ func TestOutputService7ProtocolTestComplexMapValuesCase1(t *testing.T) { } func TestOutputService8ProtocolTestIgnoresExtraDataCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService8ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService8ProtocolTest(nil) buf := bytes.NewReader([]byte("{\"foo\": \"bar\"}")) req, out := svc.OutputService8TestCaseOperation1Request(nil) @@ -1257,8 +1111,7 @@ func TestOutputService8ProtocolTestIgnoresExtraDataCase1(t *testing.T) { } func TestOutputService9ProtocolTestSupportsHeaderMapsCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService9ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService9ProtocolTest(nil) buf := bytes.NewReader([]byte("{}")) req, out := svc.OutputService9TestCaseOperation1Request(nil) @@ -1285,8 +1138,7 @@ func TestOutputService9ProtocolTestSupportsHeaderMapsCase1(t *testing.T) { } func TestOutputService10ProtocolTestJSONPayloadCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService10ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService10ProtocolTest(nil) buf := bytes.NewReader([]byte("{\"Foo\": \"abc\"}")) req, out := svc.OutputService10TestCaseOperation1Request(nil) @@ -1308,8 +1160,7 @@ func TestOutputService10ProtocolTestJSONPayloadCase1(t *testing.T) { } func TestOutputService11ProtocolTestStreamingPayloadCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService11ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService11ProtocolTest(nil) buf := bytes.NewReader([]byte("abc")) req, out := svc.OutputService11TestCaseOperation1Request(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/internal/protocol/restxml/build_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restxml/build_test.go new file mode 100644 index 000000000..253bc2989 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restxml/build_test.go @@ -0,0 +1,2699 @@ +package restxml_test + +import ( + "bytes" + "encoding/json" + "encoding/xml" + "io" + "io/ioutil" + "net/http" + "net/url" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/defaults" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restxml" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/signer/v4" + "github.com/aws/aws-sdk-go/internal/util" + "github.com/stretchr/testify/assert" +) + +var _ bytes.Buffer // always import bytes +var _ http.Request +var _ json.Marshaler +var _ time.Time +var _ xmlutil.XMLNode +var _ xml.Attr +var _ = ioutil.Discard +var _ = util.Trim("") +var _ = url.Values{} +var _ = io.EOF + +type InputService1ProtocolTest struct { + *service.Service +} + +// New returns a new InputService1ProtocolTest client. +func NewInputService1ProtocolTest(config *aws.Config) *InputService1ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice1protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService1ProtocolTest{service} +} + +// newRequest creates a new request for a InputService1ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService1TestCaseOperation1 = "OperationName" + +// InputService1TestCaseOperation1Request generates a request for the InputService1TestCaseOperation1 operation. +func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService1TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService1TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService1TestShapeInputService1TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { + req, out := c.InputService1TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService1TestCaseOperation2 = "OperationName" + +// InputService1TestCaseOperation2Request generates a request for the InputService1TestCaseOperation2 operation. +func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService1TestCaseOperation2, + HTTPMethod: "PUT", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService1TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService1TestShapeInputService1TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) { + req, out := c.InputService1TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +type InputService1TestShapeInputService1TestCaseOperation1Output struct { + metadataInputService1TestShapeInputService1TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService1TestShapeInputService1TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService1TestShapeInputService1TestCaseOperation2Output struct { + metadataInputService1TestShapeInputService1TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService1TestShapeInputService1TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService1TestShapeInputShape struct { + Description *string `type:"string"` + + Name *string `type:"string"` + + metadataInputService1TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService1TestShapeInputShape struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService2ProtocolTest struct { + *service.Service +} + +// New returns a new InputService2ProtocolTest client. +func NewInputService2ProtocolTest(config *aws.Config) *InputService2ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice2protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService2ProtocolTest{service} +} + +// newRequest creates a new request for a InputService2ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService2TestCaseOperation1 = "OperationName" + +// InputService2TestCaseOperation1Request generates a request for the InputService2TestCaseOperation1 operation. +func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService2TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService2TestShapeInputService2TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService2TestShapeInputService2TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { + req, out := c.InputService2TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService2TestShapeInputService2TestCaseOperation1Input struct { + First *bool `type:"boolean"` + + Fourth *int64 `type:"integer"` + + Second *bool `type:"boolean"` + + Third *float64 `type:"float"` + + metadataInputService2TestShapeInputService2TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService2TestShapeInputService2TestCaseOperation1Input struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService2TestShapeInputService2TestCaseOperation1Output struct { + metadataInputService2TestShapeInputService2TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService2TestShapeInputService2TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService3ProtocolTest struct { + *service.Service +} + +// New returns a new InputService3ProtocolTest client. +func NewInputService3ProtocolTest(config *aws.Config) *InputService3ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice3protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService3ProtocolTest{service} +} + +// newRequest creates a new request for a InputService3ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService3TestCaseOperation1 = "OperationName" + +// InputService3TestCaseOperation1Request generates a request for the InputService3TestCaseOperation1 operation. +func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService3TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService3TestShapeInputService3TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService3TestShapeInputService3TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { + req, out := c.InputService3TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService3TestShapeInputService3TestCaseOperation1Input struct { + Description *string `type:"string"` + + SubStructure *InputService3TestShapeSubStructure `type:"structure"` + + metadataInputService3TestShapeInputService3TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeInputService3TestCaseOperation1Input struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService3TestShapeInputService3TestCaseOperation1Output struct { + metadataInputService3TestShapeInputService3TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeInputService3TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService3TestShapeSubStructure struct { + Bar *string `type:"string"` + + Foo *string `type:"string"` + + metadataInputService3TestShapeSubStructure `json:"-" xml:"-"` +} + +type metadataInputService3TestShapeSubStructure struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService4ProtocolTest struct { + *service.Service +} + +// New returns a new InputService4ProtocolTest client. +func NewInputService4ProtocolTest(config *aws.Config) *InputService4ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice4protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService4ProtocolTest{service} +} + +// newRequest creates a new request for a InputService4ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService4TestCaseOperation1 = "OperationName" + +// InputService4TestCaseOperation1Request generates a request for the InputService4TestCaseOperation1 operation. +func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService4TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService4TestShapeInputService4TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService4TestShapeInputService4TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { + req, out := c.InputService4TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService4TestShapeInputService4TestCaseOperation1Input struct { + Description *string `type:"string"` + + SubStructure *InputService4TestShapeSubStructure `type:"structure"` + + metadataInputService4TestShapeInputService4TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeInputService4TestCaseOperation1Input struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService4TestShapeInputService4TestCaseOperation1Output struct { + metadataInputService4TestShapeInputService4TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeInputService4TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService4TestShapeSubStructure struct { + Bar *string `type:"string"` + + Foo *string `type:"string"` + + metadataInputService4TestShapeSubStructure `json:"-" xml:"-"` +} + +type metadataInputService4TestShapeSubStructure struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService5ProtocolTest struct { + *service.Service +} + +// New returns a new InputService5ProtocolTest client. +func NewInputService5ProtocolTest(config *aws.Config) *InputService5ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice5protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService5ProtocolTest{service} +} + +// newRequest creates a new request for a InputService5ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService5TestCaseOperation1 = "OperationName" + +// InputService5TestCaseOperation1Request generates a request for the InputService5TestCaseOperation1 operation. +func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService5TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService5TestShapeInputService5TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService5TestShapeInputService5TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { + req, out := c.InputService5TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService5TestShapeInputService5TestCaseOperation1Input struct { + ListParam []*string `type:"list"` + + metadataInputService5TestShapeInputService5TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation1Input struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService5TestShapeInputService5TestCaseOperation1Output struct { + metadataInputService5TestShapeInputService5TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService5TestShapeInputService5TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService6ProtocolTest struct { + *service.Service +} + +// New returns a new InputService6ProtocolTest client. +func NewInputService6ProtocolTest(config *aws.Config) *InputService6ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice6protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService6ProtocolTest{service} +} + +// newRequest creates a new request for a InputService6ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService6TestCaseOperation1 = "OperationName" + +// InputService6TestCaseOperation1Request generates a request for the InputService6TestCaseOperation1 operation. +func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService6TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService6TestShapeInputService6TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService6TestShapeInputService6TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { + req, out := c.InputService6TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService6TestShapeInputService6TestCaseOperation1Input struct { + ListParam []*string `locationName:"AlternateName" locationNameList:"NotMember" type:"list"` + + metadataInputService6TestShapeInputService6TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService6TestShapeInputService6TestCaseOperation1Input struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService6TestShapeInputService6TestCaseOperation1Output struct { + metadataInputService6TestShapeInputService6TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService6TestShapeInputService6TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService7ProtocolTest struct { + *service.Service +} + +// New returns a new InputService7ProtocolTest client. +func NewInputService7ProtocolTest(config *aws.Config) *InputService7ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice7protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService7ProtocolTest{service} +} + +// newRequest creates a new request for a InputService7ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService7TestCaseOperation1 = "OperationName" + +// InputService7TestCaseOperation1Request generates a request for the InputService7TestCaseOperation1 operation. +func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService7TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService7TestShapeInputService7TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService7TestShapeInputService7TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { + req, out := c.InputService7TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService7TestShapeInputService7TestCaseOperation1Input struct { + ListParam []*string `type:"list" flattened:"true"` + + metadataInputService7TestShapeInputService7TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService7TestShapeInputService7TestCaseOperation1Input struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService7TestShapeInputService7TestCaseOperation1Output struct { + metadataInputService7TestShapeInputService7TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService7TestShapeInputService7TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService8ProtocolTest struct { + *service.Service +} + +// New returns a new InputService8ProtocolTest client. +func NewInputService8ProtocolTest(config *aws.Config) *InputService8ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice8protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService8ProtocolTest{service} +} + +// newRequest creates a new request for a InputService8ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService8TestCaseOperation1 = "OperationName" + +// InputService8TestCaseOperation1Request generates a request for the InputService8TestCaseOperation1 operation. +func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService8TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService8TestShapeInputService8TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService8TestShapeInputService8TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { + req, out := c.InputService8TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService8TestShapeInputService8TestCaseOperation1Input struct { + ListParam []*string `locationName:"item" type:"list" flattened:"true"` + + metadataInputService8TestShapeInputService8TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService8TestShapeInputService8TestCaseOperation1Input struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService8TestShapeInputService8TestCaseOperation1Output struct { + metadataInputService8TestShapeInputService8TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService8TestShapeInputService8TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9ProtocolTest struct { + *service.Service +} + +// New returns a new InputService9ProtocolTest client. +func NewInputService9ProtocolTest(config *aws.Config) *InputService9ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice9protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService9ProtocolTest{service} +} + +// newRequest creates a new request for a InputService9ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService9TestCaseOperation1 = "OperationName" + +// InputService9TestCaseOperation1Request generates a request for the InputService9TestCaseOperation1 operation. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService9TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService9TestShapeInputService9TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService9TestShapeInputService9TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { + req, out := c.InputService9TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService9TestShapeInputService9TestCaseOperation1Input struct { + ListParam []*InputService9TestShapeSingleFieldStruct `locationName:"item" type:"list" flattened:"true"` + + metadataInputService9TestShapeInputService9TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputService9TestCaseOperation1Input struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService9TestShapeInputService9TestCaseOperation1Output struct { + metadataInputService9TestShapeInputService9TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeInputService9TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService9TestShapeSingleFieldStruct struct { + Element *string `locationName:"value" type:"string"` + + metadataInputService9TestShapeSingleFieldStruct `json:"-" xml:"-"` +} + +type metadataInputService9TestShapeSingleFieldStruct struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService10ProtocolTest struct { + *service.Service +} + +// New returns a new InputService10ProtocolTest client. +func NewInputService10ProtocolTest(config *aws.Config) *InputService10ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice10protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService10ProtocolTest{service} +} + +// newRequest creates a new request for a InputService10ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService10TestCaseOperation1 = "OperationName" + +// InputService10TestCaseOperation1Request generates a request for the InputService10TestCaseOperation1 operation. +func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService10TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/2014-01-01/hostedzone", + } + + if input == nil { + input = &InputService10TestShapeInputService10TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService10TestShapeInputService10TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { + req, out := c.InputService10TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService10TestShapeInputService10TestCaseOperation1Input struct { + StructureParam *InputService10TestShapeStructureShape `type:"structure"` + + metadataInputService10TestShapeInputService10TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService10TestShapeInputService10TestCaseOperation1Input struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService10TestShapeInputService10TestCaseOperation1Output struct { + metadataInputService10TestShapeInputService10TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService10TestShapeInputService10TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService10TestShapeStructureShape struct { + B []byte `locationName:"b" type:"blob"` + + T *time.Time `locationName:"t" type:"timestamp" timestampFormat:"iso8601"` + + metadataInputService10TestShapeStructureShape `json:"-" xml:"-"` +} + +type metadataInputService10TestShapeStructureShape struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService11ProtocolTest struct { + *service.Service +} + +// New returns a new InputService11ProtocolTest client. +func NewInputService11ProtocolTest(config *aws.Config) *InputService11ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice11protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService11ProtocolTest{service} +} + +// newRequest creates a new request for a InputService11ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService11TestCaseOperation1 = "OperationName" + +// InputService11TestCaseOperation1Request generates a request for the InputService11TestCaseOperation1 operation. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService11TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService11TestShapeInputService11TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService11TestShapeInputService11TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { + req, out := c.InputService11TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService11TestShapeInputService11TestCaseOperation1Input struct { + Foo map[string]*string `location:"headers" locationName:"x-foo-" type:"map"` + + metadataInputService11TestShapeInputService11TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService11TestShapeInputService11TestCaseOperation1Input struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService11TestShapeInputService11TestCaseOperation1Output struct { + metadataInputService11TestShapeInputService11TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService11TestShapeInputService11TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService12ProtocolTest struct { + *service.Service +} + +// New returns a new InputService12ProtocolTest client. +func NewInputService12ProtocolTest(config *aws.Config) *InputService12ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice12protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService12ProtocolTest{service} +} + +// newRequest creates a new request for a InputService12ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService12TestCaseOperation1 = "OperationName" + +// InputService12TestCaseOperation1Request generates a request for the InputService12TestCaseOperation1 operation. +func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService12TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService12TestShapeInputService12TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService12TestShapeInputService12TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { + req, out := c.InputService12TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService12TestShapeInputService12TestCaseOperation1Input struct { + Foo *string `locationName:"foo" type:"string"` + + metadataInputService12TestShapeInputService12TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService12TestShapeInputService12TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure" payload:"Foo"` +} + +type InputService12TestShapeInputService12TestCaseOperation1Output struct { + metadataInputService12TestShapeInputService12TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService12TestShapeInputService12TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService13ProtocolTest struct { + *service.Service +} + +// New returns a new InputService13ProtocolTest client. +func NewInputService13ProtocolTest(config *aws.Config) *InputService13ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice13protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService13ProtocolTest{service} +} + +// newRequest creates a new request for a InputService13ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService13TestCaseOperation1 = "OperationName" + +// InputService13TestCaseOperation1Request generates a request for the InputService13TestCaseOperation1 operation. +func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService13TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService13TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService13TestShapeInputService13TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) { + req, out := c.InputService13TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService13TestCaseOperation2 = "OperationName" + +// InputService13TestCaseOperation2Request generates a request for the InputService13TestCaseOperation2 operation. +func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService13TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService13TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService13TestShapeInputService13TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) { + req, out := c.InputService13TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +type InputService13TestShapeInputService13TestCaseOperation1Output struct { + metadataInputService13TestShapeInputService13TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService13TestShapeInputService13TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService13TestShapeInputService13TestCaseOperation2Output struct { + metadataInputService13TestShapeInputService13TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService13TestShapeInputService13TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService13TestShapeInputShape struct { + Foo []byte `locationName:"foo" type:"blob"` + + metadataInputService13TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService13TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure" payload:"Foo"` +} + +type InputService14ProtocolTest struct { + *service.Service +} + +// New returns a new InputService14ProtocolTest client. +func NewInputService14ProtocolTest(config *aws.Config) *InputService14ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice14protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService14ProtocolTest{service} +} + +// newRequest creates a new request for a InputService14ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService14TestCaseOperation1 = "OperationName" + +// InputService14TestCaseOperation1Request generates a request for the InputService14TestCaseOperation1 operation. +func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputShape) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService14TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService14TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService14TestShapeInputService14TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputShape) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) { + req, out := c.InputService14TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService14TestCaseOperation2 = "OperationName" + +// InputService14TestCaseOperation2Request generates a request for the InputService14TestCaseOperation2 operation. +func (c *InputService14ProtocolTest) InputService14TestCaseOperation2Request(input *InputService14TestShapeInputShape) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService14TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService14TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService14TestShapeInputService14TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService14ProtocolTest) InputService14TestCaseOperation2(input *InputService14TestShapeInputShape) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) { + req, out := c.InputService14TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +type InputService14TestShapeFooShape struct { + Baz *string `locationName:"baz" type:"string"` + + metadataInputService14TestShapeFooShape `json:"-" xml:"-"` +} + +type metadataInputService14TestShapeFooShape struct { + SDKShapeTraits bool `locationName:"foo" type:"structure"` +} + +type InputService14TestShapeInputService14TestCaseOperation1Output struct { + metadataInputService14TestShapeInputService14TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService14TestShapeInputService14TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService14TestShapeInputService14TestCaseOperation2Output struct { + metadataInputService14TestShapeInputService14TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService14TestShapeInputService14TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService14TestShapeInputShape struct { + Foo *InputService14TestShapeFooShape `locationName:"foo" type:"structure"` + + metadataInputService14TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService14TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure" payload:"Foo"` +} + +type InputService15ProtocolTest struct { + *service.Service +} + +// New returns a new InputService15ProtocolTest client. +func NewInputService15ProtocolTest(config *aws.Config) *InputService15ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice15protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService15ProtocolTest{service} +} + +// newRequest creates a new request for a InputService15ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService15TestCaseOperation1 = "OperationName" + +// InputService15TestCaseOperation1Request generates a request for the InputService15TestCaseOperation1 operation. +func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputService15TestCaseOperation1Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService15TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService15TestShapeInputService15TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService15TestShapeInputService15TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) { + req, out := c.InputService15TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService15TestShapeGrant struct { + Grantee *InputService15TestShapeGrantee `type:"structure"` + + metadataInputService15TestShapeGrant `json:"-" xml:"-"` +} + +type metadataInputService15TestShapeGrant struct { + SDKShapeTraits bool `locationName:"Grant" type:"structure"` +} + +type InputService15TestShapeGrantee struct { + EmailAddress *string `type:"string"` + + Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true"` + + metadataInputService15TestShapeGrantee `json:"-" xml:"-"` +} + +type metadataInputService15TestShapeGrantee struct { + SDKShapeTraits bool `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"` +} + +type InputService15TestShapeInputService15TestCaseOperation1Input struct { + Grant *InputService15TestShapeGrant `locationName:"Grant" type:"structure"` + + metadataInputService15TestShapeInputService15TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService15TestShapeInputService15TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure" payload:"Grant"` +} + +type InputService15TestShapeInputService15TestCaseOperation1Output struct { + metadataInputService15TestShapeInputService15TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService15TestShapeInputService15TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService16ProtocolTest struct { + *service.Service +} + +// New returns a new InputService16ProtocolTest client. +func NewInputService16ProtocolTest(config *aws.Config) *InputService16ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice16protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService16ProtocolTest{service} +} + +// newRequest creates a new request for a InputService16ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService16TestCaseOperation1 = "OperationName" + +// InputService16TestCaseOperation1Request generates a request for the InputService16TestCaseOperation1 operation. +func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputService16TestCaseOperation1Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService16TestCaseOperation1, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}/{Key+}", + } + + if input == nil { + input = &InputService16TestShapeInputService16TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService16TestShapeInputService16TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputService16TestCaseOperation1Input) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { + req, out := c.InputService16TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService16TestShapeInputService16TestCaseOperation1Input struct { + Bucket *string `location:"uri" type:"string"` + + Key *string `location:"uri" type:"string"` + + metadataInputService16TestShapeInputService16TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService16TestShapeInputService16TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService16TestShapeInputService16TestCaseOperation1Output struct { + metadataInputService16TestShapeInputService16TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService16TestShapeInputService16TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService17ProtocolTest struct { + *service.Service +} + +// New returns a new InputService17ProtocolTest client. +func NewInputService17ProtocolTest(config *aws.Config) *InputService17ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice17protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService17ProtocolTest{service} +} + +// newRequest creates a new request for a InputService17ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService17ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService17TestCaseOperation1 = "OperationName" + +// InputService17TestCaseOperation1Request generates a request for the InputService17TestCaseOperation1 operation. +func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService17TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService17TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService17TestShapeInputService17TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) { + req, out := c.InputService17TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService17TestCaseOperation2 = "OperationName" + +// InputService17TestCaseOperation2Request generates a request for the InputService17TestCaseOperation2 operation. +func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService17TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/path?abc=mno", + } + + if input == nil { + input = &InputService17TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService17TestShapeInputService17TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService17ProtocolTest) InputService17TestCaseOperation2(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation2Output, error) { + req, out := c.InputService17TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +type InputService17TestShapeInputService17TestCaseOperation1Output struct { + metadataInputService17TestShapeInputService17TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService17TestShapeInputService17TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService17TestShapeInputService17TestCaseOperation2Output struct { + metadataInputService17TestShapeInputService17TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService17TestShapeInputService17TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService17TestShapeInputShape struct { + Foo *string `location:"querystring" locationName:"param-name" type:"string"` + + metadataInputService17TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService17TestShapeInputShape struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService18ProtocolTest struct { + *service.Service +} + +// New returns a new InputService18ProtocolTest client. +func NewInputService18ProtocolTest(config *aws.Config) *InputService18ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice18protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService18ProtocolTest{service} +} + +// newRequest creates a new request for a InputService18ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService18ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService18TestCaseOperation1 = "OperationName" + +// InputService18TestCaseOperation1Request generates a request for the InputService18TestCaseOperation1 operation. +func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputShape) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService18TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService18TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService18TestShapeInputService18TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputShape) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) { + req, out := c.InputService18TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +const opInputService18TestCaseOperation2 = "OperationName" + +// InputService18TestCaseOperation2Request generates a request for the InputService18TestCaseOperation2 operation. +func (c *InputService18ProtocolTest) InputService18TestCaseOperation2Request(input *InputService18TestShapeInputShape) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService18TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService18TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService18TestShapeInputService18TestCaseOperation2Output{} + req.Data = output + return +} + +func (c *InputService18ProtocolTest) InputService18TestCaseOperation2(input *InputService18TestShapeInputShape) (*InputService18TestShapeInputService18TestCaseOperation2Output, error) { + req, out := c.InputService18TestCaseOperation2Request(input) + err := req.Send() + return out, err +} + +const opInputService18TestCaseOperation3 = "OperationName" + +// InputService18TestCaseOperation3Request generates a request for the InputService18TestCaseOperation3 operation. +func (c *InputService18ProtocolTest) InputService18TestCaseOperation3Request(input *InputService18TestShapeInputShape) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation3Output) { + op := &request.Operation{ + Name: opInputService18TestCaseOperation3, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService18TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService18TestShapeInputService18TestCaseOperation3Output{} + req.Data = output + return +} + +func (c *InputService18ProtocolTest) InputService18TestCaseOperation3(input *InputService18TestShapeInputShape) (*InputService18TestShapeInputService18TestCaseOperation3Output, error) { + req, out := c.InputService18TestCaseOperation3Request(input) + err := req.Send() + return out, err +} + +const opInputService18TestCaseOperation4 = "OperationName" + +// InputService18TestCaseOperation4Request generates a request for the InputService18TestCaseOperation4 operation. +func (c *InputService18ProtocolTest) InputService18TestCaseOperation4Request(input *InputService18TestShapeInputShape) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation4Output) { + op := &request.Operation{ + Name: opInputService18TestCaseOperation4, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService18TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService18TestShapeInputService18TestCaseOperation4Output{} + req.Data = output + return +} + +func (c *InputService18ProtocolTest) InputService18TestCaseOperation4(input *InputService18TestShapeInputShape) (*InputService18TestShapeInputService18TestCaseOperation4Output, error) { + req, out := c.InputService18TestCaseOperation4Request(input) + err := req.Send() + return out, err +} + +const opInputService18TestCaseOperation5 = "OperationName" + +// InputService18TestCaseOperation5Request generates a request for the InputService18TestCaseOperation5 operation. +func (c *InputService18ProtocolTest) InputService18TestCaseOperation5Request(input *InputService18TestShapeInputShape) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation5Output) { + op := &request.Operation{ + Name: opInputService18TestCaseOperation5, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService18TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService18TestShapeInputService18TestCaseOperation5Output{} + req.Data = output + return +} + +func (c *InputService18ProtocolTest) InputService18TestCaseOperation5(input *InputService18TestShapeInputShape) (*InputService18TestShapeInputService18TestCaseOperation5Output, error) { + req, out := c.InputService18TestCaseOperation5Request(input) + err := req.Send() + return out, err +} + +const opInputService18TestCaseOperation6 = "OperationName" + +// InputService18TestCaseOperation6Request generates a request for the InputService18TestCaseOperation6 operation. +func (c *InputService18ProtocolTest) InputService18TestCaseOperation6Request(input *InputService18TestShapeInputShape) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation6Output) { + op := &request.Operation{ + Name: opInputService18TestCaseOperation6, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService18TestShapeInputShape{} + } + + req = c.newRequest(op, input, output) + output = &InputService18TestShapeInputService18TestCaseOperation6Output{} + req.Data = output + return +} + +func (c *InputService18ProtocolTest) InputService18TestCaseOperation6(input *InputService18TestShapeInputShape) (*InputService18TestShapeInputService18TestCaseOperation6Output, error) { + req, out := c.InputService18TestCaseOperation6Request(input) + err := req.Send() + return out, err +} + +type InputService18TestShapeInputService18TestCaseOperation1Output struct { + metadataInputService18TestShapeInputService18TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService18TestShapeInputService18TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService18TestShapeInputService18TestCaseOperation2Output struct { + metadataInputService18TestShapeInputService18TestCaseOperation2Output `json:"-" xml:"-"` +} + +type metadataInputService18TestShapeInputService18TestCaseOperation2Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService18TestShapeInputService18TestCaseOperation3Output struct { + metadataInputService18TestShapeInputService18TestCaseOperation3Output `json:"-" xml:"-"` +} + +type metadataInputService18TestShapeInputService18TestCaseOperation3Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService18TestShapeInputService18TestCaseOperation4Output struct { + metadataInputService18TestShapeInputService18TestCaseOperation4Output `json:"-" xml:"-"` +} + +type metadataInputService18TestShapeInputService18TestCaseOperation4Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService18TestShapeInputService18TestCaseOperation5Output struct { + metadataInputService18TestShapeInputService18TestCaseOperation5Output `json:"-" xml:"-"` +} + +type metadataInputService18TestShapeInputService18TestCaseOperation5Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService18TestShapeInputService18TestCaseOperation6Output struct { + metadataInputService18TestShapeInputService18TestCaseOperation6Output `json:"-" xml:"-"` +} + +type metadataInputService18TestShapeInputService18TestCaseOperation6Output struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService18TestShapeInputShape struct { + RecursiveStruct *InputService18TestShapeRecursiveStructType `type:"structure"` + + metadataInputService18TestShapeInputShape `json:"-" xml:"-"` +} + +type metadataInputService18TestShapeInputShape struct { + SDKShapeTraits bool `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` +} + +type InputService18TestShapeRecursiveStructType struct { + NoRecurse *string `type:"string"` + + RecursiveList []*InputService18TestShapeRecursiveStructType `type:"list"` + + RecursiveMap map[string]*InputService18TestShapeRecursiveStructType `type:"map"` + + RecursiveStruct *InputService18TestShapeRecursiveStructType `type:"structure"` + + metadataInputService18TestShapeRecursiveStructType `json:"-" xml:"-"` +} + +type metadataInputService18TestShapeRecursiveStructType struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService19ProtocolTest struct { + *service.Service +} + +// New returns a new InputService19ProtocolTest client. +func NewInputService19ProtocolTest(config *aws.Config) *InputService19ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "inputservice19protocoltest", + APIVersion: "2014-01-01", + }, + } + service.Initialize() + + // Handlers + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + return &InputService19ProtocolTest{service} +} + +// newRequest creates a new request for a InputService19ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService19ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService19TestCaseOperation1 = "OperationName" + +// InputService19TestCaseOperation1Request generates a request for the InputService19TestCaseOperation1 operation. +func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService19TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService19TestShapeInputService19TestCaseOperation1Input{} + } + + req = c.newRequest(op, input, output) + output = &InputService19TestShapeInputService19TestCaseOperation1Output{} + req.Data = output + return +} + +func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { + req, out := c.InputService19TestCaseOperation1Request(input) + err := req.Send() + return out, err +} + +type InputService19TestShapeInputService19TestCaseOperation1Input struct { + TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"` + + metadataInputService19TestShapeInputService19TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataInputService19TestShapeInputService19TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} + +type InputService19TestShapeInputService19TestCaseOperation1Output struct { + metadataInputService19TestShapeInputService19TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataInputService19TestShapeInputService19TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} + +// +// Tests begin here +// + +func TestInputService1ProtocolTestBasicXMLSerializationCase1(t *testing.T) { + svc := NewInputService1ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService1TestShapeInputShape{ + Description: aws.String("bar"), + Name: aws.String("foo"), + } + req, _ := svc.InputService1TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`barfoo`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService1ProtocolTestBasicXMLSerializationCase2(t *testing.T) { + svc := NewInputService1ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService1TestShapeInputShape{ + Description: aws.String("bar"), + Name: aws.String("foo"), + } + req, _ := svc.InputService1TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`barfoo`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService2ProtocolTestSerializeOtherScalarTypesCase1(t *testing.T) { + svc := NewInputService2ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService2TestShapeInputService2TestCaseOperation1Input{ + First: aws.Bool(true), + Fourth: aws.Int64(3), + Second: aws.Bool(false), + Third: aws.Float64(1.2), + } + req, _ := svc.InputService2TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`true3false1.2`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService3ProtocolTestNestedStructuresCase1(t *testing.T) { + svc := NewInputService3ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService3TestShapeInputService3TestCaseOperation1Input{ + Description: aws.String("baz"), + SubStructure: &InputService3TestShapeSubStructure{ + Bar: aws.String("b"), + Foo: aws.String("a"), + }, + } + req, _ := svc.InputService3TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`bazba`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService4ProtocolTestNestedStructuresCase1(t *testing.T) { + svc := NewInputService4ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService4TestShapeInputService4TestCaseOperation1Input{ + Description: aws.String("baz"), + SubStructure: &InputService4TestShapeSubStructure{}, + } + req, _ := svc.InputService4TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`baz`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService5ProtocolTestNonFlattenedListsCase1(t *testing.T) { + svc := NewInputService5ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService5TestShapeInputService5TestCaseOperation1Input{ + ListParam: []*string{ + aws.String("one"), + aws.String("two"), + aws.String("three"), + }, + } + req, _ := svc.InputService5TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`onetwothree`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService6ProtocolTestNonFlattenedListsWithLocationNameCase1(t *testing.T) { + svc := NewInputService6ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService6TestShapeInputService6TestCaseOperation1Input{ + ListParam: []*string{ + aws.String("one"), + aws.String("two"), + aws.String("three"), + }, + } + req, _ := svc.InputService6TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`onetwothree`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService7ProtocolTestFlattenedListsCase1(t *testing.T) { + svc := NewInputService7ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService7TestShapeInputService7TestCaseOperation1Input{ + ListParam: []*string{ + aws.String("one"), + aws.String("two"), + aws.String("three"), + }, + } + req, _ := svc.InputService7TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`onetwothree`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService8ProtocolTestFlattenedListsWithLocationNameCase1(t *testing.T) { + svc := NewInputService8ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService8TestShapeInputService8TestCaseOperation1Input{ + ListParam: []*string{ + aws.String("one"), + aws.String("two"), + aws.String("three"), + }, + } + req, _ := svc.InputService8TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`onetwothree`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService9ProtocolTestListOfStructuresCase1(t *testing.T) { + svc := NewInputService9ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService9TestShapeInputService9TestCaseOperation1Input{ + ListParam: []*InputService9TestShapeSingleFieldStruct{ + { + Element: aws.String("one"), + }, + { + Element: aws.String("two"), + }, + { + Element: aws.String("three"), + }, + }, + } + req, _ := svc.InputService9TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`onetwothree`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService10ProtocolTestBlobAndTimestampShapesCase1(t *testing.T) { + svc := NewInputService10ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService10TestShapeInputService10TestCaseOperation1Input{ + StructureParam: &InputService10TestShapeStructureShape{ + B: []byte("foo"), + T: aws.Time(time.Unix(1422172800, 0)), + }, + } + req, _ := svc.InputService10TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`Zm9v2015-01-25T08:00:00Z`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/2014-01-01/hostedzone", r.URL.String()) + + // assert headers + +} + +func TestInputService11ProtocolTestHeaderMapsCase1(t *testing.T) { + svc := NewInputService11ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService11TestShapeInputService11TestCaseOperation1Input{ + Foo: map[string]*string{ + "a": aws.String("b"), + "c": aws.String("d"), + }, + } + req, _ := svc.InputService11TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + assert.Equal(t, "b", r.Header.Get("x-foo-a")) + assert.Equal(t, "d", r.Header.Get("x-foo-c")) + +} + +func TestInputService12ProtocolTestStringPayloadCase1(t *testing.T) { + svc := NewInputService12ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService12TestShapeInputService12TestCaseOperation1Input{ + Foo: aws.String("bar"), + } + req, _ := svc.InputService12TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`bar`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService13ProtocolTestBlobPayloadCase1(t *testing.T) { + svc := NewInputService13ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService13TestShapeInputShape{ + Foo: []byte("bar"), + } + req, _ := svc.InputService13TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`bar`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService13ProtocolTestBlobPayloadCase2(t *testing.T) { + svc := NewInputService13ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService13TestShapeInputShape{} + req, _ := svc.InputService13TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService14ProtocolTestStructurePayloadCase1(t *testing.T) { + svc := NewInputService14ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService14TestShapeInputShape{ + Foo: &InputService14TestShapeFooShape{ + Baz: aws.String("bar"), + }, + } + req, _ := svc.InputService14TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`bar`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService14ProtocolTestStructurePayloadCase2(t *testing.T) { + svc := NewInputService14ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService14TestShapeInputShape{} + req, _ := svc.InputService14TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService15ProtocolTestXMLAttributeCase1(t *testing.T) { + svc := NewInputService15ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService15TestShapeInputService15TestCaseOperation1Input{ + Grant: &InputService15TestShapeGrant{ + Grantee: &InputService15TestShapeGrantee{ + EmailAddress: aws.String("foo@example.com"), + Type: aws.String("CanonicalUser"), + }, + }, + } + req, _ := svc.InputService15TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`foo@example.com`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/", r.URL.String()) + + // assert headers + +} + +func TestInputService16ProtocolTestGreedyKeysCase1(t *testing.T) { + svc := NewInputService16ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService16TestShapeInputService16TestCaseOperation1Input{ + Bucket: aws.String("my/bucket"), + Key: aws.String("testing /123"), + } + req, _ := svc.InputService16TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/my%2Fbucket/testing%20/123", r.URL.String()) + + // assert headers + +} + +func TestInputService17ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) { + svc := NewInputService17ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService17TestShapeInputShape{} + req, _ := svc.InputService17TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService17ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) { + svc := NewInputService17ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService17TestShapeInputShape{ + Foo: aws.String(""), + } + req, _ := svc.InputService17TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/path?abc=mno¶m-name=", r.URL.String()) + + // assert headers + +} + +func TestInputService18ProtocolTestRecursiveShapesCase1(t *testing.T) { + svc := NewInputService18ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService18TestShapeInputShape{ + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + NoRecurse: aws.String("foo"), + }, + } + req, _ := svc.InputService18TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`foo`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService18ProtocolTestRecursiveShapesCase2(t *testing.T) { + svc := NewInputService18ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService18TestShapeInputShape{ + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + NoRecurse: aws.String("foo"), + }, + }, + } + req, _ := svc.InputService18TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`foo`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService18ProtocolTestRecursiveShapesCase3(t *testing.T) { + svc := NewInputService18ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService18TestShapeInputShape{ + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + NoRecurse: aws.String("foo"), + }, + }, + }, + }, + } + req, _ := svc.InputService18TestCaseOperation3Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`foo`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService18ProtocolTestRecursiveShapesCase4(t *testing.T) { + svc := NewInputService18ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService18TestShapeInputShape{ + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + RecursiveList: []*InputService18TestShapeRecursiveStructType{ + { + NoRecurse: aws.String("foo"), + }, + { + NoRecurse: aws.String("bar"), + }, + }, + }, + } + req, _ := svc.InputService18TestCaseOperation4Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`foobar`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService18ProtocolTestRecursiveShapesCase5(t *testing.T) { + svc := NewInputService18ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService18TestShapeInputShape{ + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + RecursiveList: []*InputService18TestShapeRecursiveStructType{ + { + NoRecurse: aws.String("foo"), + }, + { + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + NoRecurse: aws.String("bar"), + }, + }, + }, + }, + } + req, _ := svc.InputService18TestCaseOperation5Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`foobar`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService18ProtocolTestRecursiveShapesCase6(t *testing.T) { + svc := NewInputService18ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService18TestShapeInputShape{ + RecursiveStruct: &InputService18TestShapeRecursiveStructType{ + RecursiveMap: map[string]*InputService18TestShapeRecursiveStructType{ + "bar": { + NoRecurse: aws.String("bar"), + }, + "foo": { + NoRecurse: aws.String("foo"), + }, + }, + }, + } + req, _ := svc.InputService18TestCaseOperation6Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert body + assert.NotNil(t, r.Body) + body := util.SortXML(r.Body) + assert.Equal(t, util.Trim(`barbarfoofoo`), util.Trim(string(body))) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + +} + +func TestInputService19ProtocolTestTimestampInHeaderCase1(t *testing.T) { + svc := NewInputService19ProtocolTest(nil) + svc.Endpoint = "https://test" + + input := &InputService19TestShapeInputService19TestCaseOperation1Input{ + TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)), + } + req, _ := svc.InputService19TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + restxml.Build(req) + assert.NoError(t, req.Error) + + // assert URL + assert.Equal(t, "https://test/path", r.URL.String()) + + // assert headers + assert.Equal(t, "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg")) + +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/restxml.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restxml/restxml.go similarity index 53% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/restxml.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/restxml/restxml.go index c74088bfe..1e88f901b 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/restxml.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restxml/restxml.go @@ -2,8 +2,8 @@ // requests and responses. package restxml -//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/input/rest-xml.json build_test.go -//go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/rest-xml.json unmarshal_test.go +//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/input/rest-xml.json build_test.go +//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/output/rest-xml.json unmarshal_test.go import ( "bytes" @@ -11,23 +11,11 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/protocol/rest" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/protocol/rest" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" ) -// BuildHandler is a named request handler for building restxml protocol requests -var BuildHandler = request.NamedHandler{Name: "awssdk.restxml.Build", Fn: Build} - -// UnmarshalHandler is a named request handler for unmarshaling restxml protocol requests -var UnmarshalHandler = request.NamedHandler{Name: "awssdk.restxml.Unmarshal", Fn: Unmarshal} - -// UnmarshalMetaHandler is a named request handler for unmarshaling restxml protocol request metadata -var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.restxml.UnmarshalMeta", Fn: UnmarshalMeta} - -// UnmarshalErrorHandler is a named request handler for unmarshaling restxml protocol request errors -var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.restxml.UnmarshalError", Fn: UnmarshalError} - // Build builds a request payload for the REST XML protocol. func Build(r *request.Request) { rest.Build(r) diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restxml/unmarshal_test.go similarity index 53% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/unmarshal_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/restxml/unmarshal_test.go index 427e2109f..bf73cb8e3 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/unmarshal_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/restxml/unmarshal_test.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/json" "encoding/xml" - "fmt" "io" "io/ioutil" "net/http" @@ -13,16 +12,14 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/restxml" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" - "github.com/aws/aws-sdk-go/private/signer/v4" - "github.com/aws/aws-sdk-go/private/util" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restxml" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/signer/v4" + "github.com/aws/aws-sdk-go/internal/util" "github.com/stretchr/testify/assert" ) @@ -36,57 +33,30 @@ var _ = ioutil.Discard var _ = util.Trim("") var _ = url.Values{} var _ = io.EOF -var _ = aws.String -var _ = fmt.Println -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService1ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService1ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService1ProtocolTest client from just a session. -// svc := outputservice1protocoltest.New(mySession) -// -// // Create a OutputService1ProtocolTest client with additional configuration -// svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { - c := p.ClientConfig("outputservice1protocoltest", cfgs...) - return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService1ProtocolTest { - svc := &OutputService1ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice1protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService1ProtocolTest client. +func NewOutputService1ProtocolTest(config *aws.Config) *OutputService1ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice1protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService1ProtocolTest{service} } // newRequest creates a new request for a OutputService1ProtocolTest operation and runs any @@ -146,16 +116,22 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation2(input *Out } type OutputService1TestShapeOutputService1TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService1TestShapeOutputService1TestCaseOperation1Input `json:"-" xml:"-"` +} + +type metadataOutputService1TestShapeOutputService1TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` } type OutputService1TestShapeOutputService1TestCaseOperation2Input struct { - _ struct{} `type:"structure"` + metadataOutputService1TestShapeOutputService1TestCaseOperation2Input `json:"-" xml:"-"` } -type OutputService1TestShapeOutputShape struct { - _ struct{} `type:"structure"` +type metadataOutputService1TestShapeOutputService1TestCaseOperation2Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService1TestShapeOutputShape struct { Char *string `type:"character"` Double *float64 `type:"double"` @@ -177,52 +153,37 @@ type OutputService1TestShapeOutputShape struct { Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` TrueBool *bool `type:"boolean"` + + metadataOutputService1TestShapeOutputShape `json:"-" xml:"-"` +} + +type metadataOutputService1TestShapeOutputShape struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService2ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService2ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService2ProtocolTest client from just a session. -// svc := outputservice2protocoltest.New(mySession) -// -// // Create a OutputService2ProtocolTest client with additional configuration -// svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { - c := p.ClientConfig("outputservice2protocoltest", cfgs...) - return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService2ProtocolTest { - svc := &OutputService2ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice2protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService2ProtocolTest client. +func NewOutputService2ProtocolTest(config *aws.Config) *OutputService2ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice2protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService2ProtocolTest{service} } // newRequest creates a new request for a OutputService2ProtocolTest operation and runs any @@ -258,60 +219,46 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *Out } type OutputService2TestShapeOutputService2TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService2TestShapeOutputService2TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService2TestShapeOutputService2TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} - // Blob is automatically base64 encoded/decoded by the SDK. +type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { Blob []byte `type:"blob"` + + metadataOutputService2TestShapeOutputService2TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService2TestShapeOutputService2TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService3ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService3ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService3ProtocolTest client from just a session. -// svc := outputservice3protocoltest.New(mySession) -// -// // Create a OutputService3ProtocolTest client with additional configuration -// svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { - c := p.ClientConfig("outputservice3protocoltest", cfgs...) - return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService3ProtocolTest { - svc := &OutputService3ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice3protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService3ProtocolTest client. +func NewOutputService3ProtocolTest(config *aws.Config) *OutputService3ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice3protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService3ProtocolTest{service} } // newRequest creates a new request for a OutputService3ProtocolTest operation and runs any @@ -347,59 +294,46 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *Out } type OutputService3TestShapeOutputService3TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService3TestShapeOutputService3TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService3TestShapeOutputService3TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { ListMember []*string `type:"list"` + + metadataOutputService3TestShapeOutputService3TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService3TestShapeOutputService3TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService4ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService4ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService4ProtocolTest client from just a session. -// svc := outputservice4protocoltest.New(mySession) -// -// // Create a OutputService4ProtocolTest client with additional configuration -// svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { - c := p.ClientConfig("outputservice4protocoltest", cfgs...) - return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService4ProtocolTest { - svc := &OutputService4ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice4protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService4ProtocolTest client. +func NewOutputService4ProtocolTest(config *aws.Config) *OutputService4ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice4protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService4ProtocolTest{service} } // newRequest creates a new request for a OutputService4ProtocolTest operation and runs any @@ -435,59 +369,46 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *Out } type OutputService4TestShapeOutputService4TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService4TestShapeOutputService4TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService4TestShapeOutputService4TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { ListMember []*string `locationNameList:"item" type:"list"` + + metadataOutputService4TestShapeOutputService4TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService4TestShapeOutputService4TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService5ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService5ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService5ProtocolTest client from just a session. -// svc := outputservice5protocoltest.New(mySession) -// -// // Create a OutputService5ProtocolTest client with additional configuration -// svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { - c := p.ClientConfig("outputservice5protocoltest", cfgs...) - return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService5ProtocolTest { - svc := &OutputService5ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice5protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService5ProtocolTest client. +func NewOutputService5ProtocolTest(config *aws.Config) *OutputService5ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice5protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService5ProtocolTest{service} } // newRequest creates a new request for a OutputService5ProtocolTest operation and runs any @@ -523,59 +444,46 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *Out } type OutputService5TestShapeOutputService5TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService5TestShapeOutputService5TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService5TestShapeOutputService5TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { ListMember []*string `type:"list" flattened:"true"` + + metadataOutputService5TestShapeOutputService5TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService5TestShapeOutputService5TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService6ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService6ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService6ProtocolTest client from just a session. -// svc := outputservice6protocoltest.New(mySession) -// -// // Create a OutputService6ProtocolTest client with additional configuration -// svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { - c := p.ClientConfig("outputservice6protocoltest", cfgs...) - return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService6ProtocolTest { - svc := &OutputService6ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice6protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService6ProtocolTest client. +func NewOutputService6ProtocolTest(config *aws.Config) *OutputService6ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice6protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService6ProtocolTest{service} } // newRequest creates a new request for a OutputService6ProtocolTest operation and runs any @@ -611,65 +519,56 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *Out } type OutputService6TestShapeOutputService6TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService6TestShapeOutputService6TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService6TestShapeOutputService6TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { Map map[string]*OutputService6TestShapeSingleStructure `type:"map"` + + metadataOutputService6TestShapeOutputService6TestCaseOperation1Output `json:"-" xml:"-"` } -type OutputService6TestShapeSingleStructure struct { - _ struct{} `type:"structure"` +type metadataOutputService6TestShapeOutputService6TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService6TestShapeSingleStructure struct { Foo *string `locationName:"foo" type:"string"` + + metadataOutputService6TestShapeSingleStructure `json:"-" xml:"-"` +} + +type metadataOutputService6TestShapeSingleStructure struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService7ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService7ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService7ProtocolTest client from just a session. -// svc := outputservice7protocoltest.New(mySession) -// -// // Create a OutputService7ProtocolTest client with additional configuration -// svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { - c := p.ClientConfig("outputservice7protocoltest", cfgs...) - return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService7ProtocolTest { - svc := &OutputService7ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice7protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService7ProtocolTest client. +func NewOutputService7ProtocolTest(config *aws.Config) *OutputService7ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice7protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService7ProtocolTest{service} } // newRequest creates a new request for a OutputService7ProtocolTest operation and runs any @@ -705,59 +604,46 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *Out } type OutputService7TestShapeOutputService7TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService7TestShapeOutputService7TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService7TestShapeOutputService7TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { Map map[string]*string `type:"map" flattened:"true"` + + metadataOutputService7TestShapeOutputService7TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService7TestShapeOutputService7TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService8ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService8ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService8ProtocolTest client from just a session. -// svc := outputservice8protocoltest.New(mySession) -// -// // Create a OutputService8ProtocolTest client with additional configuration -// svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { - c := p.ClientConfig("outputservice8protocoltest", cfgs...) - return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService8ProtocolTest { - svc := &OutputService8ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice8protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService8ProtocolTest client. +func NewOutputService8ProtocolTest(config *aws.Config) *OutputService8ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice8protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService8ProtocolTest{service} } // newRequest creates a new request for a OutputService8ProtocolTest operation and runs any @@ -793,59 +679,46 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *Out } type OutputService8TestShapeOutputService8TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService8TestShapeOutputService8TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService8TestShapeOutputService8TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { Map map[string]*string `locationNameKey:"foo" locationNameValue:"bar" type:"map"` + + metadataOutputService8TestShapeOutputService8TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService8TestShapeOutputService8TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService9ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService9ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService9ProtocolTest client from just a session. -// svc := outputservice9protocoltest.New(mySession) -// -// // Create a OutputService9ProtocolTest client with additional configuration -// svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { - c := p.ClientConfig("outputservice9protocoltest", cfgs...) - return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService9ProtocolTest { - svc := &OutputService9ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice9protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService9ProtocolTest client. +func NewOutputService9ProtocolTest(config *aws.Config) *OutputService9ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice9protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService9ProtocolTest{service} } // newRequest creates a new request for a OutputService9ProtocolTest operation and runs any @@ -881,67 +754,58 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *Out } type OutputService9TestShapeOutputService9TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService9TestShapeOutputService9TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { - _ struct{} `type:"structure" payload:"Data"` +type metadataOutputService9TestShapeOutputService9TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { Data *OutputService9TestShapeSingleStructure `type:"structure"` Header *string `location:"header" locationName:"X-Foo" type:"string"` + + metadataOutputService9TestShapeOutputService9TestCaseOperation1Output `json:"-" xml:"-"` } -type OutputService9TestShapeSingleStructure struct { - _ struct{} `type:"structure"` +type metadataOutputService9TestShapeOutputService9TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure" payload:"Data"` +} +type OutputService9TestShapeSingleStructure struct { Foo *string `type:"string"` + + metadataOutputService9TestShapeSingleStructure `json:"-" xml:"-"` +} + +type metadataOutputService9TestShapeSingleStructure struct { + SDKShapeTraits bool `type:"structure"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService10ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService10ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService10ProtocolTest client from just a session. -// svc := outputservice10protocoltest.New(mySession) -// -// // Create a OutputService10ProtocolTest client with additional configuration -// svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest { - c := p.ClientConfig("outputservice10protocoltest", cfgs...) - return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService10ProtocolTest { - svc := &OutputService10ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice10protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService10ProtocolTest client. +func NewOutputService10ProtocolTest(config *aws.Config) *OutputService10ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice10protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService10ProtocolTest{service} } // newRequest creates a new request for a OutputService10ProtocolTest operation and runs any @@ -977,59 +841,46 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *O } type OutputService10TestShapeOutputService10TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService10TestShapeOutputService10TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService10TestShapeOutputService10TestCaseOperation1Output struct { - _ struct{} `type:"structure" payload:"Stream"` +type metadataOutputService10TestShapeOutputService10TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService10TestShapeOutputService10TestCaseOperation1Output struct { Stream []byte `type:"blob"` + + metadataOutputService10TestShapeOutputService10TestCaseOperation1Output `json:"-" xml:"-"` +} + +type metadataOutputService10TestShapeOutputService10TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure" payload:"Stream"` } -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type OutputService11ProtocolTest struct { - *client.Client + *service.Service } -// New creates a new instance of the OutputService11ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService11ProtocolTest client from just a session. -// svc := outputservice11protocoltest.New(mySession) -// -// // Create a OutputService11ProtocolTest client with additional configuration -// svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest { - c := p.ClientConfig("outputservice11protocoltest", cfgs...) - return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService11ProtocolTest { - svc := &OutputService11ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice11protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), +// New returns a new OutputService11ProtocolTest client. +func NewOutputService11ProtocolTest(config *aws.Config) *OutputService11ProtocolTest { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "outputservice11protocoltest", + APIVersion: "", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) - return svc + return &OutputService11ProtocolTest{service} } // newRequest creates a new request for a OutputService11ProtocolTest operation and runs any @@ -1065,12 +916,14 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *O } type OutputService11TestShapeOutputService11TestCaseOperation1Input struct { - _ struct{} `type:"structure"` + metadataOutputService11TestShapeOutputService11TestCaseOperation1Input `json:"-" xml:"-"` } -type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { - _ struct{} `type:"structure"` +type metadataOutputService11TestShapeOutputService11TestCaseOperation1Input struct { + SDKShapeTraits bool `type:"structure"` +} +type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { Char *string `location:"header" locationName:"x-char" type:"character"` Double *float64 `location:"header" locationName:"x-double" type:"double"` @@ -1088,94 +941,12 @@ type OutputService11TestShapeOutputService11TestCaseOperation1Output struct { Timestamp *time.Time `location:"header" locationName:"x-timestamp" type:"timestamp" timestampFormat:"iso8601"` TrueBool *bool `location:"header" locationName:"x-true-bool" type:"boolean"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService12ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService12ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService12ProtocolTest client from just a session. -// svc := outputservice12protocoltest.New(mySession) -// -// // Create a OutputService12ProtocolTest client with additional configuration -// svc := outputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService12ProtocolTest { - c := p.ClientConfig("outputservice12protocoltest", cfgs...) - return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService12ProtocolTest { - svc := &OutputService12ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice12protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc + metadataOutputService11TestShapeOutputService11TestCaseOperation1Output `json:"-" xml:"-"` } -// newRequest creates a new request for a OutputService12ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService12TestCaseOperation1 = "OperationName" - -// OutputService12TestCaseOperation1Request generates a request for the OutputService12TestCaseOperation1 operation. -func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (req *request.Request, output *OutputService12TestShapeOutputService12TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService12TestCaseOperation1, - } - - if input == nil { - input = &OutputService12TestShapeOutputService12TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService12TestShapeOutputService12TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (*OutputService12TestShapeOutputService12TestCaseOperation1Output, error) { - req, out := c.OutputService12TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService12TestShapeOutputService12TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService12TestShapeOutputService12TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - Foo *string `type:"string"` +type metadataOutputService11TestShapeOutputService11TestCaseOperation1Output struct { + SDKShapeTraits bool `type:"structure"` } // @@ -1183,8 +954,7 @@ type OutputService12TestShapeOutputService12TestCaseOperation1Output struct { // func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService1ProtocolTest(nil) buf := bytes.NewReader([]byte("myname123falsetrue1.21.3200a2015-01-25T08:00:00Z")) req, out := svc.OutputService1TestCaseOperation1Request(nil) @@ -1216,8 +986,7 @@ func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) { } func TestOutputService1ProtocolTestScalarMembersCase2(t *testing.T) { - sess := session.New() - svc := NewOutputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService1ProtocolTest(nil) buf := bytes.NewReader([]byte("123falsetrue1.21.3200a2015-01-25T08:00:00Z")) req, out := svc.OutputService1TestCaseOperation2Request(nil) @@ -1249,8 +1018,7 @@ func TestOutputService1ProtocolTestScalarMembersCase2(t *testing.T) { } func TestOutputService2ProtocolTestBlobCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService2ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService2ProtocolTest(nil) buf := bytes.NewReader([]byte("dmFsdWU=")) req, out := svc.OutputService2TestCaseOperation1Request(nil) @@ -1270,8 +1038,7 @@ func TestOutputService2ProtocolTestBlobCase1(t *testing.T) { } func TestOutputService3ProtocolTestListsCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService3ProtocolTest(nil) buf := bytes.NewReader([]byte("abc123")) req, out := svc.OutputService3TestCaseOperation1Request(nil) @@ -1292,8 +1059,7 @@ func TestOutputService3ProtocolTestListsCase1(t *testing.T) { } func TestOutputService4ProtocolTestListWithCustomMemberNameCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService4ProtocolTest(nil) buf := bytes.NewReader([]byte("abc123")) req, out := svc.OutputService4TestCaseOperation1Request(nil) @@ -1314,8 +1080,7 @@ func TestOutputService4ProtocolTestListWithCustomMemberNameCase1(t *testing.T) { } func TestOutputService5ProtocolTestFlattenedListCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService5ProtocolTest(nil) buf := bytes.NewReader([]byte("abc123")) req, out := svc.OutputService5TestCaseOperation1Request(nil) @@ -1336,8 +1101,7 @@ func TestOutputService5ProtocolTestFlattenedListCase1(t *testing.T) { } func TestOutputService6ProtocolTestNormalMapCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService6ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService6ProtocolTest(nil) buf := bytes.NewReader([]byte("quxbarbazbam")) req, out := svc.OutputService6TestCaseOperation1Request(nil) @@ -1358,8 +1122,7 @@ func TestOutputService6ProtocolTestNormalMapCase1(t *testing.T) { } func TestOutputService7ProtocolTestFlattenedMapCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService7ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService7ProtocolTest(nil) buf := bytes.NewReader([]byte("quxbarbazbam")) req, out := svc.OutputService7TestCaseOperation1Request(nil) @@ -1380,8 +1143,7 @@ func TestOutputService7ProtocolTestFlattenedMapCase1(t *testing.T) { } func TestOutputService8ProtocolTestNamedMapCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService8ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService8ProtocolTest(nil) buf := bytes.NewReader([]byte("quxbarbazbam")) req, out := svc.OutputService8TestCaseOperation1Request(nil) @@ -1402,8 +1164,7 @@ func TestOutputService8ProtocolTestNamedMapCase1(t *testing.T) { } func TestOutputService9ProtocolTestXMLPayloadCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService9ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService9ProtocolTest(nil) buf := bytes.NewReader([]byte("abc")) req, out := svc.OutputService9TestCaseOperation1Request(nil) @@ -1425,8 +1186,7 @@ func TestOutputService9ProtocolTestXMLPayloadCase1(t *testing.T) { } func TestOutputService10ProtocolTestStreamingPayloadCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService10ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService10ProtocolTest(nil) buf := bytes.NewReader([]byte("abc")) req, out := svc.OutputService10TestCaseOperation1Request(nil) @@ -1446,8 +1206,7 @@ func TestOutputService10ProtocolTestStreamingPayloadCase1(t *testing.T) { } func TestOutputService11ProtocolTestScalarMembersInHeadersCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService11ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) + svc := NewOutputService11ProtocolTest(nil) buf := bytes.NewReader([]byte("")) req, out := svc.OutputService11TestCaseOperation1Request(nil) @@ -1482,24 +1241,3 @@ func TestOutputService11ProtocolTestScalarMembersInHeadersCase1(t *testing.T) { assert.Equal(t, true, *out.TrueBool) } - -func TestOutputService12ProtocolTestEmptyStringCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("requestid")) - req, out := svc.OutputService12TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - restxml.UnmarshalMeta(req) - restxml.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "", *out.Foo) - -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil/build.go similarity index 96% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil/build.go index ceb4132c5..d3db25023 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil/build.go @@ -8,9 +8,8 @@ import ( "reflect" "sort" "strconv" + "strings" "time" - - "github.com/aws/aws-sdk-go/private/protocol" ) // BuildXML will serialize params into an xml.Encoder. @@ -70,7 +69,7 @@ func (b *xmlBuilder) buildValue(value reflect.Value, current *XMLNode, tag refle switch t { case "structure": - if field, ok := value.Type().FieldByName("_"); ok { + if field, ok := value.Type().FieldByName("SDKShapeTraits"); ok { tag = tag + reflect.StructTag(" ") + field.Tag } return b.buildStruct(value, current, tag) @@ -121,23 +120,18 @@ func (b *xmlBuilder) buildStruct(value reflect.Value, current *XMLNode, tag refl t := value.Type() for i := 0; i < value.NumField(); i++ { - member := elemOf(value.Field(i)) - field := t.Field(i) - - if field.PkgPath != "" { + if c := t.Field(i).Name[0:1]; strings.ToLower(c) == c { continue // ignore unexported fields } + member := elemOf(value.Field(i)) + field := t.Field(i) mTag := field.Tag + if mTag.Get("location") != "" { // skip non-body members continue } - if protocol.CanSetIdempotencyToken(value.Field(i), field) { - token := protocol.GetIdempotencyToken() - member = reflect.ValueOf(token) - } - memberName := mTag.Get("locationName") if memberName == "" { memberName = field.Name diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil/unmarshal.go similarity index 99% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil/unmarshal.go index 49f291a85..5e4fe210b 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil/unmarshal.go @@ -59,7 +59,7 @@ func parse(r reflect.Value, node *XMLNode, tag reflect.StructTag) error { switch t { case "structure": - if field, ok := rtype.FieldByName("_"); ok { + if field, ok := rtype.FieldByName("SDKShapeTraits"); ok { tag = field.Tag } return parseStruct(r, node, tag) diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/xml_to_struct.go b/vendor/github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil/xml_to_struct.go similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/xml_to_struct.go rename to vendor/github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil/xml_to_struct.go diff --git a/vendor/github.com/aws/aws-sdk-go/internal/signer/v4/functional_test.go b/vendor/github.com/aws/aws-sdk-go/internal/signer/v4/functional_test.go new file mode 100644 index 000000000..fbb0e41cd --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/signer/v4/functional_test.go @@ -0,0 +1,43 @@ +package v4_test + +import ( + "net/url" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/internal/test/unit" + "github.com/aws/aws-sdk-go/service/s3" + "github.com/stretchr/testify/assert" +) + +var _ = unit.Imported + +func TestPresignHandler(t *testing.T) { + svc := s3.New(nil) + req, _ := svc.PutObjectRequest(&s3.PutObjectInput{ + Bucket: aws.String("bucket"), + Key: aws.String("key"), + ContentDisposition: aws.String("a+b c$d"), + ACL: aws.String("public-read"), + }) + req.Time = time.Unix(0, 0) + urlstr, err := req.Presign(5 * time.Minute) + + assert.NoError(t, err) + + expectedDate := "19700101T000000Z" + expectedHeaders := "host;x-amz-acl" + expectedSig := "7edcb4e3a1bf12f4989018d75acbe3a7f03df24bd6f3112602d59fc551f0e4e2" + expectedCred := "AKID/19700101/mock-region/s3/aws4_request" + + u, _ := url.Parse(urlstr) + urlQ := u.Query() + assert.Equal(t, expectedSig, urlQ.Get("X-Amz-Signature")) + assert.Equal(t, expectedCred, urlQ.Get("X-Amz-Credential")) + assert.Equal(t, expectedHeaders, urlQ.Get("X-Amz-SignedHeaders")) + assert.Equal(t, expectedDate, urlQ.Get("X-Amz-Date")) + assert.Equal(t, "300", urlQ.Get("X-Amz-Expires")) + + assert.NotContains(t, urlstr, "+") // + encoded as %20 +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4.go b/vendor/github.com/aws/aws-sdk-go/internal/signer/v4/v4.go similarity index 56% rename from vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4.go rename to vendor/github.com/aws/aws-sdk-go/internal/signer/v4/v4.go index 476580056..fc7bc3535 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/signer/v4/v4.go @@ -17,7 +17,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/rest" + "github.com/aws/aws-sdk-go/internal/protocol/rest" ) const ( @@ -26,66 +26,11 @@ const ( shortTimeFormat = "20060102" ) -var ignoredHeaders = rules{ - blacklist{ - mapRule{ - "Authorization": struct{}{}, - "User-Agent": struct{}{}, - }, - }, -} - -// requiredSignedHeaders is a whitelist for build canonical headers. -var requiredSignedHeaders = rules{ - whitelist{ - mapRule{ - "Cache-Control": struct{}{}, - "Content-Disposition": struct{}{}, - "Content-Encoding": struct{}{}, - "Content-Language": struct{}{}, - "Content-Md5": struct{}{}, - "Content-Type": struct{}{}, - "Expires": struct{}{}, - "If-Match": struct{}{}, - "If-Modified-Since": struct{}{}, - "If-None-Match": struct{}{}, - "If-Unmodified-Since": struct{}{}, - "Range": struct{}{}, - "X-Amz-Acl": struct{}{}, - "X-Amz-Copy-Source": struct{}{}, - "X-Amz-Copy-Source-If-Match": struct{}{}, - "X-Amz-Copy-Source-If-Modified-Since": struct{}{}, - "X-Amz-Copy-Source-If-None-Match": struct{}{}, - "X-Amz-Copy-Source-If-Unmodified-Since": struct{}{}, - "X-Amz-Copy-Source-Range": struct{}{}, - "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm": struct{}{}, - "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key": struct{}{}, - "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5": struct{}{}, - "X-Amz-Grant-Full-control": struct{}{}, - "X-Amz-Grant-Read": struct{}{}, - "X-Amz-Grant-Read-Acp": struct{}{}, - "X-Amz-Grant-Write": struct{}{}, - "X-Amz-Grant-Write-Acp": struct{}{}, - "X-Amz-Metadata-Directive": struct{}{}, - "X-Amz-Mfa": struct{}{}, - "X-Amz-Request-Payer": struct{}{}, - "X-Amz-Server-Side-Encryption": struct{}{}, - "X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id": struct{}{}, - "X-Amz-Server-Side-Encryption-Customer-Algorithm": struct{}{}, - "X-Amz-Server-Side-Encryption-Customer-Key": struct{}{}, - "X-Amz-Server-Side-Encryption-Customer-Key-Md5": struct{}{}, - "X-Amz-Storage-Class": struct{}{}, - "X-Amz-Website-Redirect-Location": struct{}{}, - }, - }, - patterns{"X-Amz-Meta-"}, -} - -// allowedHoisting is a whitelist for build query headers. The boolean value -// represents whether or not it is a pattern. -var allowedQueryHoisting = inclusiveRules{ - blacklist{requiredSignedHeaders}, - patterns{"X-Amz-"}, +var ignoredHeaders = map[string]bool{ + "Authorization": true, + "Content-Type": true, + "Content-Length": true, + "User-Agent": true, } type signer struct { @@ -112,8 +57,6 @@ type signer struct { stringToSign string signature string authorization string - notHoist bool - signedHeaderVals http.Header } // Sign requests with signature version 4. @@ -124,18 +67,18 @@ type signer struct { func Sign(req *request.Request) { // If the request does not need to be signed ignore the signing of the // request if the AnonymousCredentials object is used. - if req.Config.Credentials == credentials.AnonymousCredentials { + if req.Service.Config.Credentials == credentials.AnonymousCredentials { return } - region := req.ClientInfo.SigningRegion + region := req.Service.SigningRegion if region == "" { - region = aws.StringValue(req.Config.Region) + region = aws.StringValue(req.Service.Config.Region) } - name := req.ClientInfo.SigningName + name := req.Service.SigningName if name == "" { - name = req.ClientInfo.ServiceName + name = req.Service.ServiceName } s := signer{ @@ -146,15 +89,12 @@ func Sign(req *request.Request) { Body: req.Body, ServiceName: name, Region: region, - Credentials: req.Config.Credentials, - Debug: req.Config.LogLevel.Value(), - Logger: req.Config.Logger, - notHoist: req.NotHoist, + Credentials: req.Service.Config.Credentials, + Debug: req.Service.Config.LogLevel.Value(), + Logger: req.Service.Config.Logger, } req.Error = s.sign() - req.Time = s.Time - req.SignedHeaderVals = s.signedHeaderVals } func (v4 *signer) sign() error { @@ -163,12 +103,11 @@ func (v4 *signer) sign() error { } if v4.isRequestSigned() { - if !v4.Credentials.IsExpired() && time.Now().Before(v4.Time.Add(10*time.Minute)) { + if !v4.Credentials.IsExpired() { // If the request is already signed, and the credentials have not - // expired, and the request is not too old ignore the signing request. + // expired yet ignore the signing request. return nil } - v4.Time = time.Now() // The credentials have expired for this request. The current signing // is invalid, and needs to be request because the request will fail. @@ -226,25 +165,15 @@ func (v4 *signer) logSigningInfo() { } func (v4 *signer) build() { - v4.buildTime() // no depends v4.buildCredentialString() // no depends - - unsignedHeaders := v4.Request.Header if v4.isPresign { - if !v4.notHoist { - urlValues := url.Values{} - urlValues, unsignedHeaders = buildQuery(allowedQueryHoisting, unsignedHeaders) // no depends - for k := range urlValues { - v4.Query[k] = urlValues[k] - } - } + v4.buildQuery() // no depends } - - v4.buildCanonicalHeaders(ignoredHeaders, unsignedHeaders) - v4.buildCanonicalString() // depends on canon headers / signed headers - v4.buildStringToSign() // depends on canon string - v4.buildSignature() // depends on string to sign + v4.buildCanonicalHeaders() // depends on cred string + v4.buildCanonicalString() // depends on canon headers / signed headers + v4.buildStringToSign() // depends on canon string + v4.buildSignature() // depends on string to sign if v4.isPresign { v4.Request.URL.RawQuery += "&X-Amz-Signature=" + v4.signature @@ -284,40 +213,31 @@ func (v4 *signer) buildCredentialString() { } } -func buildQuery(r rule, header http.Header) (url.Values, http.Header) { - query := url.Values{} - unsignedHeaders := http.Header{} - for k, h := range header { - if r.IsValid(k) { - query[k] = h - } else { - unsignedHeaders[k] = h +func (v4 *signer) buildQuery() { + for k, h := range v4.Request.Header { + if strings.HasPrefix(http.CanonicalHeaderKey(k), "X-Amz-") { + continue // never hoist x-amz-* headers, they must be signed + } + if _, ok := ignoredHeaders[http.CanonicalHeaderKey(k)]; ok { + continue // never hoist ignored headers } - } - return query, unsignedHeaders + v4.Request.Header.Del(k) + v4.Query.Del(k) + for _, v := range h { + v4.Query.Add(k, v) + } + } } -func (v4 *signer) buildCanonicalHeaders(r rule, header http.Header) { + +func (v4 *signer) buildCanonicalHeaders() { var headers []string headers = append(headers, "host") - for k, v := range header { - canonicalKey := http.CanonicalHeaderKey(k) - if !r.IsValid(canonicalKey) { + for k := range v4.Request.Header { + if _, ok := ignoredHeaders[http.CanonicalHeaderKey(k)]; ok { continue // ignored header } - if v4.signedHeaderVals == nil { - v4.signedHeaderVals = make(http.Header) - } - - lowerCaseKey := strings.ToLower(k) - if _, ok := v4.signedHeaderVals[lowerCaseKey]; ok { - // include additional values - v4.signedHeaderVals[lowerCaseKey] = append(v4.signedHeaderVals[lowerCaseKey], v...) - continue - } - - headers = append(headers, lowerCaseKey) - v4.signedHeaderVals[lowerCaseKey] = v + headers = append(headers, strings.ToLower(k)) } sort.Strings(headers) @@ -333,11 +253,11 @@ func (v4 *signer) buildCanonicalHeaders(r rule, header http.Header) { headerValues[i] = "host:" + v4.Request.URL.Host } else { headerValues[i] = k + ":" + - strings.Join(v4.signedHeaderVals[k], ",") + strings.Join(v4.Request.Header[http.CanonicalHeaderKey(k)], ",") } } - v4.canonicalHeaders = strings.Join(stripExcessSpaces(headerValues), "\n") + v4.canonicalHeaders = strings.Join(headerValues, "\n") } func (v4 *signer) buildCanonicalString() { @@ -443,23 +363,3 @@ func makeSha256Reader(reader io.ReadSeeker) []byte { io.Copy(hash, reader) return hash.Sum(nil) } - -func stripExcessSpaces(headerVals []string) []string { - vals := make([]string, len(headerVals)) - for i, str := range headerVals { - stripped := "" - found := false - str = strings.TrimSpace(str) - for _, c := range str { - if !found && c == ' ' { - stripped += string(c) - found = true - } else if c != ' ' { - stripped += string(c) - found = false - } - } - vals[i] = stripped - } - return vals -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4_test.go b/vendor/github.com/aws/aws-sdk-go/internal/signer/v4/v4_test.go similarity index 67% rename from vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/signer/v4/v4_test.go index 604d64235..0ba9ff25f 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/v4_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/signer/v4/v4_test.go @@ -6,12 +6,11 @@ import ( "testing" "time" - "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/stretchr/testify/assert" ) func buildSigner(serviceName string, region string, signTime time.Time, expireTime time.Duration, body string) signer { @@ -23,8 +22,6 @@ func buildSigner(serviceName string, region string, signTime time.Time, expireTi req.Header.Add("Content-Type", "application/x-amz-json-1.0") req.Header.Add("Content-Length", string(len(body))) req.Header.Add("X-Amz-Meta-Other-Header", "some-value=!@#$%^&* (+)") - req.Header.Add("X-Amz-Meta-Other-Header_With_Underscore", "some-value=!@#$%^&* (+)") - req.Header.Add("X-amz-Meta-Other-Header_With_Underscore", "some-value=!@#$%^&* (+)") return signer{ Request: req, @@ -56,18 +53,15 @@ func TestPresignRequest(t *testing.T) { signer.sign() expectedDate := "19700101T000000Z" - expectedHeaders := "content-length;content-type;host;x-amz-meta-other-header;x-amz-meta-other-header_with_underscore" - expectedSig := "ea7856749041f727690c580569738282e99c79355fe0d8f125d3b5535d2ece83" + expectedHeaders := "host;x-amz-meta-other-header;x-amz-target" + expectedSig := "5eeedebf6f995145ce56daa02902d10485246d3defb34f97b973c1f40ab82d36" expectedCred := "AKID/19700101/us-east-1/dynamodb/aws4_request" - expectedTarget := "prefix.Operation" q := signer.Request.URL.Query() assert.Equal(t, expectedSig, q.Get("X-Amz-Signature")) assert.Equal(t, expectedCred, q.Get("X-Amz-Credential")) assert.Equal(t, expectedHeaders, q.Get("X-Amz-SignedHeaders")) assert.Equal(t, expectedDate, q.Get("X-Amz-Date")) - assert.Empty(t, q.Get("X-Amz-Meta-Other-Header")) - assert.Equal(t, expectedTarget, q.Get("X-Amz-Target")) } func TestSignRequest(t *testing.T) { @@ -75,7 +69,7 @@ func TestSignRequest(t *testing.T) { signer.sign() expectedDate := "19700101T000000Z" - expectedSig := "AWS4-HMAC-SHA256 Credential=AKID/19700101/us-east-1/dynamodb/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-meta-other-header;x-amz-meta-other-header_with_underscore;x-amz-security-token;x-amz-target, Signature=ea766cabd2ec977d955a3c2bae1ae54f4515d70752f2207618396f20aa85bd21" + expectedSig := "AWS4-HMAC-SHA256 Credential=AKID/19700101/us-east-1/dynamodb/aws4_request, SignedHeaders=host;x-amz-date;x-amz-meta-other-header;x-amz-security-token;x-amz-target, Signature=69ada33fec48180dab153576e4dd80c4e04124f80dda3eccfed8a67c2b91ed5e" q := signer.Request.Header assert.Equal(t, expectedSig, q.Get("Authorization")) @@ -124,7 +118,7 @@ func TestSignPrecomputedBodyChecksum(t *testing.T) { } func TestAnonymousCredentials(t *testing.T) { - svc := awstesting.NewClient(&aws.Config{Credentials: credentials.AnonymousCredentials}) + svc := service.New(&aws.Config{Credentials: credentials.AnonymousCredentials}) r := svc.NewRequest( &request.Operation{ Name: "BatchGetItem", @@ -148,7 +142,7 @@ func TestAnonymousCredentials(t *testing.T) { } func TestIgnoreResignRequestWithValidCreds(t *testing.T) { - svc := awstesting.NewClient(&aws.Config{ + svc := service.New(&aws.Config{ Credentials: credentials.NewStaticCredentials("AKID", "SECRET", "SESSION"), Region: aws.String("us-west-2"), }) @@ -170,7 +164,7 @@ func TestIgnoreResignRequestWithValidCreds(t *testing.T) { } func TestIgnorePreResignRequestWithValidCreds(t *testing.T) { - svc := awstesting.NewClient(&aws.Config{ + svc := service.New(&aws.Config{ Credentials: credentials.NewStaticCredentials("AKID", "SECRET", "SESSION"), Region: aws.String("us-west-2"), }) @@ -194,7 +188,7 @@ func TestIgnorePreResignRequestWithValidCreds(t *testing.T) { func TestResignRequestExpiredCreds(t *testing.T) { creds := credentials.NewStaticCredentials("AKID", "SECRET", "SESSION") - svc := awstesting.NewClient(&aws.Config{Credentials: creds}) + svc := service.New(&aws.Config{Credentials: creds}) r := svc.NewRequest( &request.Operation{ Name: "BatchGetItem", @@ -206,41 +200,17 @@ func TestResignRequestExpiredCreds(t *testing.T) { ) Sign(r) querySig := r.HTTPRequest.Header.Get("Authorization") - var origSignedHeaders string - for _, p := range strings.Split(querySig, ", ") { - if strings.HasPrefix(p, "SignedHeaders=") { - origSignedHeaders = p[len("SignedHeaders="):] - break - } - } - assert.NotEmpty(t, origSignedHeaders) - assert.NotContains(t, origSignedHeaders, "authorization") creds.Expire() Sign(r) - updatedQuerySig := r.HTTPRequest.Header.Get("Authorization") - assert.NotEqual(t, querySig, updatedQuerySig) - - var updatedSignedHeaders string - for _, p := range strings.Split(updatedQuerySig, ", ") { - if strings.HasPrefix(p, "SignedHeaders=") { - updatedSignedHeaders = p[len("SignedHeaders="):] - break - } - } - assert.NotEmpty(t, updatedSignedHeaders) - assert.NotContains(t, updatedQuerySig, "authorization") + assert.NotEqual(t, querySig, r.HTTPRequest.Header.Get("Authorization")) } func TestPreResignRequestExpiredCreds(t *testing.T) { - provider := &credentials.StaticProvider{Value: credentials.Value{ - AccessKeyID: "AKID", - SecretAccessKey: "SECRET", - SessionToken: "SESSION", - }} + provider := &credentials.StaticProvider{credentials.Value{"AKID", "SECRET", "SESSION"}} creds := credentials.NewCredentials(provider) - svc := awstesting.NewClient(&aws.Config{Credentials: creds}) + svc := service.New(&aws.Config{Credentials: creds}) r := svc.NewRequest( &request.Operation{ Name: "BatchGetItem", @@ -254,69 +224,12 @@ func TestPreResignRequestExpiredCreds(t *testing.T) { Sign(r) querySig := r.HTTPRequest.URL.Query().Get("X-Amz-Signature") - signedHeaders := r.HTTPRequest.URL.Query().Get("X-Amz-SignedHeaders") - assert.NotEmpty(t, signedHeaders) creds.Expire() r.Time = time.Now().Add(time.Hour * 48) Sign(r) assert.NotEqual(t, querySig, r.HTTPRequest.URL.Query().Get("X-Amz-Signature")) - resignedHeaders := r.HTTPRequest.URL.Query().Get("X-Amz-SignedHeaders") - assert.Equal(t, signedHeaders, resignedHeaders) - assert.NotContains(t, signedHeaders, "x-amz-signedHeaders") -} - -func TestResignRequestExpiredRequest(t *testing.T) { - creds := credentials.NewStaticCredentials("AKID", "SECRET", "SESSION") - svc := awstesting.NewClient(&aws.Config{Credentials: creds}) - r := svc.NewRequest( - &request.Operation{ - Name: "BatchGetItem", - HTTPMethod: "POST", - HTTPPath: "/", - }, - nil, - nil, - ) - - Sign(r) - querySig := r.HTTPRequest.Header.Get("Authorization") - - // Simulate the request occured 15 minutes in the past - r.Time = r.Time.Add(-15 * time.Minute) - - Sign(r) - assert.NotEqual(t, querySig, r.HTTPRequest.Header.Get("Authorization")) -} - -func TestStripExcessHeaders(t *testing.T) { - vals := []string{ - "123", - "1 2 3", - " 1 2 3", - "1 2 3", - "1 23", - "1 2 3", - "1 2 ", - " 1 2 ", - } - - expected := []string{ - "123", - "1 2 3", - "1 2 3", - "1 2 3", - "1 23", - "1 2 3", - "1 2", - "1 2", - } - - newVals := stripExcessSpaces(vals) - for i := 0; i < len(newVals); i++ { - assert.Equal(t, newVals[i], expected[i]) - } } func BenchmarkPresignRequest(b *testing.B) { diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/integration.go b/vendor/github.com/aws/aws-sdk-go/internal/test/integration/integration.go similarity index 53% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/integration.go rename to vendor/github.com/aws/aws-sdk-go/internal/test/integration/integration.go index e900c7fdc..ba70aacf9 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/integration.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/integration/integration.go @@ -9,26 +9,29 @@ import ( "os" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/aws/defaults" ) -// Session is a shared session for all integration tests to use. -var Session = session.New() +// Imported is a marker to ensure that this package's init() function gets +// executed. +// +// To use this package, import it and add: +// +// var _ = integration.Imported +const Imported = true func init() { - logLevel := Session.Config.LogLevel if os.Getenv("DEBUG") != "" { - logLevel = aws.LogLevel(aws.LogDebug) + defaults.DefaultConfig.LogLevel = aws.LogLevel(aws.LogDebug) } if os.Getenv("DEBUG_SIGNING") != "" { - logLevel = aws.LogLevel(aws.LogDebugWithSigning) + defaults.DefaultConfig.LogLevel = aws.LogLevel(aws.LogDebugWithSigning) } if os.Getenv("DEBUG_BODY") != "" { - logLevel = aws.LogLevel(aws.LogDebugWithSigning | aws.LogDebugWithHTTPBody) + defaults.DefaultConfig.LogLevel = aws.LogLevel(aws.LogDebugWithSigning | aws.LogDebugWithHTTPBody) } - Session.Config.LogLevel = logLevel - if aws.StringValue(Session.Config.Region) == "" { + if aws.StringValue(defaults.DefaultConfig.Region) == "" { panic("AWS_REGION must be configured to run integration tests") } } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/integration_test.go b/vendor/github.com/aws/aws-sdk-go/internal/test/integration/s3/integration_test.go similarity index 96% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/integration_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/test/integration/s3/integration_test.go index 93d5ff60f..4ca96506a 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/integration_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/integration/s3/integration_test.go @@ -12,15 +12,15 @@ import ( "testing" "time" - "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/internal/test/integration" "github.com/aws/aws-sdk-go/service/s3" + "github.com/stretchr/testify/assert" ) var bucketName *string var svc *s3.S3 +var _ = integration.Imported func TestMain(m *testing.M) { setup() @@ -32,7 +32,7 @@ func TestMain(m *testing.M) { // Create a bucket for testing func setup() { - svc = s3.New(integration.Session) + svc = s3.New(nil) bucketName = aws.String( fmt.Sprintf("aws-sdk-go-integration-%d-%s", time.Now().Unix(), integration.UniqueID())) diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/integration_test.go b/vendor/github.com/aws/aws-sdk-go/internal/test/integration/s3/s3manager/integration_test.go similarity index 89% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/integration_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/test/integration/s3/s3manager/integration_test.go index eccd6b60e..4f1726874 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/integration_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/integration/s3/s3manager/integration_test.go @@ -12,19 +12,18 @@ import ( "testing" "time" - "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/internal/test/integration" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3/s3manager" + "github.com/stretchr/testify/assert" ) var integBuf12MB = make([]byte, 1024*1024*12) var integMD512MB = fmt.Sprintf("%x", md5.Sum(integBuf12MB)) var bucketName *string +var _ = integration.Imported func TestMain(m *testing.M) { setup() @@ -36,7 +35,7 @@ func TestMain(m *testing.M) { func setup() { // Create a bucket for testing - svc := s3.New(integration.Session) + svc := s3.New(nil) bucketName = aws.String( fmt.Sprintf("aws-sdk-go-integration-%d-%s", time.Now().Unix(), integration.UniqueID())) @@ -58,7 +57,7 @@ func setup() { // Delete the bucket func teardown() { - svc := s3.New(session.New()) + svc := s3.New(nil) objs, _ := svc.ListObjects(&s3.ListObjectsInput{Bucket: bucketName}) for _, o := range objs.Contents { @@ -102,7 +101,7 @@ func (d dlwriter) WriteAt(p []byte, pos int64) (n int, err error) { } func validate(t *testing.T, key string, md5value string) { - mgr := s3manager.NewDownloader(integration.Session) + mgr := s3manager.NewDownloader(nil) params := &s3.GetObjectInput{Bucket: bucketName, Key: &key} w := newDLWriter(1024 * 1024 * 20) @@ -113,7 +112,7 @@ func validate(t *testing.T, key string, md5value string) { func TestUploadConcurrently(t *testing.T) { key := "12mb-1" - mgr := s3manager.NewUploader(integration.Session) + mgr := s3manager.NewUploader(nil) out, err := mgr.Upload(&s3manager.UploadInput{ Bucket: bucketName, Key: &key, @@ -128,7 +127,7 @@ func TestUploadConcurrently(t *testing.T) { } func TestUploadFailCleanup(t *testing.T) { - svc := s3.New(session.New()) + svc := s3.New(nil) // Break checksum on 2nd part so it fails part := 0 @@ -142,8 +141,9 @@ func TestUploadFailCleanup(t *testing.T) { }) key := "12mb-leave" - mgr := s3manager.NewUploaderWithClient(svc, func(u *s3manager.Uploader) { - u.LeavePartsOnError = false + mgr := s3manager.NewUploader(&s3manager.UploadOptions{ + S3: svc, + LeavePartsOnError: false, }) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: bucketName, diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/stub.go b/vendor/github.com/aws/aws-sdk-go/internal/test/integration/s3/s3manager/stub.go similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/stub.go rename to vendor/github.com/aws/aws-sdk-go/internal/test/integration/s3/s3manager/stub.go diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/stub.go b/vendor/github.com/aws/aws-sdk-go/internal/test/integration/s3/stub.go similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/stub.go rename to vendor/github.com/aws/aws-sdk-go/internal/test/integration/s3/stub.go diff --git a/vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/dynamodb_live_test.go b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/dynamodb_live_test.go new file mode 100644 index 000000000..b0270d243 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/dynamodb_live_test.go @@ -0,0 +1,57 @@ +// +build perf_live + +package dynamodb + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" +) + +const testPutItemCount = 5000 +const testTableName = `perfTable` + +func BenchmarkLivePutItem(b *testing.B) { + benchPutItemParallel(1, testPutItemCount, b) +} + +func BenchmarkLivePutItemParallel5(b *testing.B) { + benchPutItemParallel(5, testPutItemCount, b) +} + +func BenchmarkLivePutItemParallel10(b *testing.B) { + benchPutItemParallel(10, testPutItemCount, b) +} + +func BenchmarkLivePutItemParallel20(b *testing.B) { + benchPutItemParallel(20, testPutItemCount, b) +} + +func benchPutItemParallel(p, c int, b *testing.B) { + svc := dynamodb.New(&aws.Config{ + DisableSSL: aws.Bool(true), + }) + + av, err := dynamodbattribute.ConvertToMap(dbItem{Key: "MyKey", Data: "MyData"}) + if err != nil { + b.Fatal("expect no ConvertToMap errors", err) + } + params := &dynamodb.PutItemInput{ + Item: av, + TableName: aws.String(testTableName), + } + b.N = c + + b.ResetTimer() + b.SetParallelism(p) + b.RunParallel(func(pb *testing.PB) { + for pb.Next() { + _, err = svc.PutItem(params) + if err != nil { + b.Error("expect no request errors", err) + } + } + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/dynamodb_test.go b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/dynamodb_test.go new file mode 100644 index 000000000..5dea7b235 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/dynamodb_test.go @@ -0,0 +1,62 @@ +// +build perf + +package dynamodb + +import ( + "io" + "net/http" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/credentials" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" +) + +type noopReadCloser struct{} + +func (r *noopReadCloser) Read(b []byte) (int, error) { + return 0, io.EOF +} +func (r *noopReadCloser) Close() error { + return nil +} + +var noopBody = &noopReadCloser{} + +func BenchmarkPutItem(b *testing.B) { + cfg := aws.Config{ + Region: aws.String("us-east-1"), + DisableSSL: aws.Bool(true), + Credentials: credentials.NewStaticCredentials("AKID", "SECRET", ""), + } + server := successRespServer([]byte(`{}`)) + cfg.Endpoint = aws.String(server.URL) + + svc := dynamodb.New(&cfg) + svc.Handlers.Send.Clear() + svc.Handlers.Send.PushBack(func(r *request.Request) { + r.HTTPResponse = &http.Response{ + StatusCode: http.StatusOK, + Status: http.StatusText(http.StatusOK), + Body: noopBody, + } + }) + + b.ResetTimer() + for i := 0; i < b.N; i++ { + av, err := dynamodbattribute.ConvertToMap(dbItem{Key: "MyKey", Data: "MyData"}) + if err != nil { + b.Fatal("benchPutItem, expect no ConvertToMap errors", err) + } + params := &dynamodb.PutItemInput{ + Item: av, + TableName: aws.String("tablename"), + } + _, err = svc.PutItem(params) + if err != nil { + b.Error("benchPutItem, expect no request errors", err) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/stub.go b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/stub.go new file mode 100644 index 000000000..c27a51c48 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/dynamodb/stub.go @@ -0,0 +1,17 @@ +package dynamodb + +import ( + "net/http" + "net/http/httptest" +) + +type dbItem struct { + Key string + Data string +} + +func successRespServer(resp []byte) *httptest.Server { + return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Write(resp) + })) +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_bench_test.go b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/ec2query_build_test.go similarity index 92% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_bench_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/ec2query_build_test.go index e135b9360..ce1d2aaaa 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_bench_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/ec2query_build_test.go @@ -1,14 +1,14 @@ -// +build bench +// +build perf -package ec2query_test +package protocol import ( "testing" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol/ec2query" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/internal/protocol/ec2query" "github.com/aws/aws-sdk-go/service/ec2" ) @@ -67,7 +67,7 @@ func BenchmarkEC2QueryBuild_Simple_ec2AttachNetworkInterface(b *testing.B) { } func benchEC2QueryBuild(b *testing.B, opName string, params interface{}) { - svc := awstesting.NewClient() + svc := service.New(nil) svc.ServiceName = "ec2" svc.APIVersion = "2015-04-15" diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/build_bench_test.go b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/jsonrpc_build_test.go similarity index 85% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/build_bench_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/jsonrpc_build_test.go index 563caa05c..4edc812b7 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/build_bench_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/jsonrpc_build_test.go @@ -1,6 +1,6 @@ -// +build bench +// +build perf -package jsonrpc_test +package protocol import ( "bytes" @@ -9,15 +9,15 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" - "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/aws/service" + "github.com/aws/aws-sdk-go/internal/protocol/json/jsonutil" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" "github.com/aws/aws-sdk-go/service/dynamodb" "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" ) func BenchmarkJSONRPCBuild_Simple_dynamodbPutItem(b *testing.B) { - svc := awstesting.NewClient() + svc := service.New(nil) params := getDynamodbPutItemParams(b) @@ -31,7 +31,7 @@ func BenchmarkJSONRPCBuild_Simple_dynamodbPutItem(b *testing.B) { } func BenchmarkJSONUtilBuild_Simple_dynamodbPutItem(b *testing.B) { - svc := awstesting.NewClient() + svc := service.New(nil) params := getDynamodbPutItemParams(b) diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_bench_test.go b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/restjson_build_test.go similarity index 97% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_bench_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/restjson_build_test.go index 31e1d6c04..30aed957e 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_bench_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/restjson_build_test.go @@ -1,6 +1,6 @@ -// +build bench +// +build perf -package restjson_test +package protocol import ( "bytes" @@ -9,14 +9,14 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol/rest" - "github.com/aws/aws-sdk-go/private/protocol/restjson" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/internal/protocol/rest" + "github.com/aws/aws-sdk-go/internal/protocol/restjson" "github.com/aws/aws-sdk-go/service/elastictranscoder" ) func BenchmarkRESTJSONBuild_Complex_elastictranscoderCreateJobInput(b *testing.B) { - svc := awstesting.NewClient() + svc := service.New(nil) svc.ServiceName = "elastictranscoder" svc.APIVersion = "2012-09-25" @@ -30,7 +30,7 @@ func BenchmarkRESTJSONBuild_Complex_elastictranscoderCreateJobInput(b *testing.B } func BenchmarkRESTBuild_Complex_elastictranscoderCreateJobInput(b *testing.B) { - svc := awstesting.NewClient() + svc := service.New(nil) svc.ServiceName = "elastictranscoder" svc.APIVersion = "2012-09-25" @@ -56,7 +56,7 @@ func BenchmarkEncodingJSONMarshal_Complex_elastictranscoderCreateJobInput(b *tes } func BenchmarkRESTJSONBuild_Simple_elastictranscoderListJobsByPipeline(b *testing.B) { - svc := awstesting.NewClient() + svc := service.New(nil) svc.ServiceName = "elastictranscoder" svc.APIVersion = "2012-09-25" @@ -76,7 +76,7 @@ func BenchmarkRESTJSONBuild_Simple_elastictranscoderListJobsByPipeline(b *testin } func BenchmarkRESTBuild_Simple_elastictranscoderListJobsByPipeline(b *testing.B) { - svc := awstesting.NewClient() + svc := service.New(nil) svc.ServiceName = "elastictranscoder" svc.APIVersion = "2012-09-25" diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_bench_test.go b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/restxml_build_test.go similarity index 97% rename from vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_bench_test.go rename to vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/restxml_build_test.go index 081716739..c17288169 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_bench_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/restxml_build_test.go @@ -1,6 +1,6 @@ -// +build bench +// build +perf -package restxml_test +package protocol import ( "testing" @@ -9,8 +9,8 @@ import ( "encoding/xml" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol/restxml" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/internal/protocol/restxml" "github.com/aws/aws-sdk-go/service/cloudfront" ) @@ -55,7 +55,7 @@ func BenchmarkEncodingXMLMarshal_Simple_cloudfrontDeleteStreamingDistribution(b } func benchRESTXMLBuild(b *testing.B, op *request.Operation, params interface{}) { - svc := awstesting.NewClient() + svc := service.New(nil) svc.ServiceName = "cloudfront" svc.APIVersion = "2015-04-17" diff --git a/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/stub.go b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/stub.go new file mode 100644 index 000000000..2d0eaff9f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/perf/protocol/stub.go @@ -0,0 +1 @@ +package protocol diff --git a/vendor/github.com/aws/aws-sdk-go/internal/test/unit/unit.go b/vendor/github.com/aws/aws-sdk-go/internal/test/unit/unit.go new file mode 100644 index 000000000..bb35325a3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/test/unit/unit.go @@ -0,0 +1,22 @@ +// Package unit performs initialization and validation for unit tests +package unit + +import ( + "github.com/aws/aws-sdk-go/aws/credentials" + "github.com/aws/aws-sdk-go/aws/defaults" +) + +// Imported is a marker to ensure that this package's init() function gets +// executed. +// +// To use this package, import it and add: +// +// var _ = unit.Imported +const Imported = true + +func init() { + // mock region and credentials + defaults.DefaultConfig.Credentials = + credentials.NewStaticCredentials("AKID", "SECRET", "SESSION") + defaults.DefaultConfig.WithRegion("mock-region") +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/util/util.go b/vendor/github.com/aws/aws-sdk-go/internal/util/util.go similarity index 97% rename from vendor/github.com/aws/aws-sdk-go/private/util/util.go rename to vendor/github.com/aws/aws-sdk-go/internal/util/util.go index 5f2dab25e..ccde5e690 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/util/util.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/util/util.go @@ -10,7 +10,7 @@ import ( "regexp" "strings" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" + "github.com/aws/aws-sdk-go/internal/protocol/xml/xmlutil" ) // GoFmt returns the Go formated string of the input. diff --git a/vendor/github.com/aws/aws-sdk-go/internal/util/utilassert/utilassert.go b/vendor/github.com/aws/aws-sdk-go/internal/util/utilassert/utilassert.go new file mode 100644 index 000000000..bb57d0a33 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/util/utilassert/utilassert.go @@ -0,0 +1,76 @@ +// Package utilassert provides testing assertion generation functions. +package utilassert + +import ( + "fmt" + "regexp" + "strconv" + "strings" + "testing" + + "github.com/aws/aws-sdk-go/internal/model/api" + "github.com/aws/aws-sdk-go/internal/util/utilsort" +) + +// findMember searches the shape for the member with the matching key name. +func findMember(shape *api.Shape, key string) string { + for actualKey := range shape.MemberRefs { + if strings.ToLower(key) == strings.ToLower(actualKey) { + return actualKey + } + } + return "" +} + +// GenerateAssertions builds assertions for a shape based on its type. +// +// The shape's recursive values also will have assertions generated for them. +func GenerateAssertions(out interface{}, shape *api.Shape, prefix string) string { + switch t := out.(type) { + case map[string]interface{}: + keys := utilsort.SortedKeys(t) + + code := "" + if shape.Type == "map" { + for _, k := range keys { + v := t[k] + s := shape.ValueRef.Shape + code += GenerateAssertions(v, s, prefix+"[\""+k+"\"]") + } + } else { + for _, k := range keys { + v := t[k] + m := findMember(shape, k) + s := shape.MemberRefs[m].Shape + code += GenerateAssertions(v, s, prefix+"."+m+"") + } + } + return code + case []interface{}: + code := "" + for i, v := range t { + s := shape.MemberRef.Shape + code += GenerateAssertions(v, s, prefix+"["+strconv.Itoa(i)+"]") + } + return code + default: + switch shape.Type { + case "timestamp": + return fmt.Sprintf("assert.Equal(t, time.Unix(%#v, 0).UTC().String(), %s.String())\n", out, prefix) + case "blob": + return fmt.Sprintf("assert.Equal(t, %#v, string(%s))\n", out, prefix) + case "integer", "long": + return fmt.Sprintf("assert.Equal(t, int64(%#v), *%s)\n", out, prefix) + default: + return fmt.Sprintf("assert.Equal(t, %#v, *%s)\n", out, prefix) + } + } +} + +// Match is a testing helper to test for testing error by comparing expected +// with a regular expression. +func Match(t *testing.T, regex, expected string) { + if !regexp.MustCompile(regex).Match([]byte(expected)) { + t.Errorf("%q\n\tdoes not match /%s/", expected, regex) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sort_keys.go b/vendor/github.com/aws/aws-sdk-go/internal/util/utilsort/utilsort.go similarity index 77% rename from vendor/github.com/aws/aws-sdk-go/awstesting/sort_keys.go rename to vendor/github.com/aws/aws-sdk-go/internal/util/utilsort/utilsort.go index c3ad6256b..d19b3643a 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sort_keys.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/util/utilsort/utilsort.go @@ -1,4 +1,5 @@ -package awstesting +// Package utilsort provides sorting utility methods. +package utilsort import "sort" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/api-2.json deleted file mode 100644 index f503c4f6f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/api-2.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-12-08", - "endpointPrefix":"acm", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"ACM", - "serviceFullName":"AWS Certificate Manager", - "signatureVersion":"v4", - "targetPrefix":"CertificateManager" - }, - "operations":{ - "AddTagsToCertificate":{ - "name":"AddTagsToCertificate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddTagsToCertificateRequest"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"InvalidTagException"}, - {"shape":"TooManyTagsException"} - ] - }, - "DeleteCertificate":{ - "name":"DeleteCertificate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteCertificateRequest"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceInUseException"}, - {"shape":"InvalidArnException"} - ] - }, - "DescribeCertificate":{ - "name":"DescribeCertificate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeCertificateRequest"}, - "output":{"shape":"DescribeCertificateResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArnException"} - ] - }, - "GetCertificate":{ - "name":"GetCertificate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetCertificateRequest"}, - "output":{"shape":"GetCertificateResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"RequestInProgressException"}, - {"shape":"InvalidArnException"} - ] - }, - "ListCertificates":{ - "name":"ListCertificates", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListCertificatesRequest"}, - "output":{"shape":"ListCertificatesResponse"} - }, - "ListTagsForCertificate":{ - "name":"ListTagsForCertificate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForCertificateRequest"}, - "output":{"shape":"ListTagsForCertificateResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArnException"} - ] - }, - "RemoveTagsFromCertificate":{ - "name":"RemoveTagsFromCertificate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTagsFromCertificateRequest"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"InvalidTagException"} - ] - }, - "RequestCertificate":{ - "name":"RequestCertificate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RequestCertificateRequest"}, - "output":{"shape":"RequestCertificateResponse"}, - "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"InvalidDomainValidationOptionsException"} - ] - }, - "ResendValidationEmail":{ - "name":"ResendValidationEmail", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResendValidationEmailRequest"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidStateException"}, - {"shape":"InvalidArnException"}, - {"shape":"InvalidDomainValidationOptionsException"} - ] - } - }, - "shapes":{ - "AddTagsToCertificateRequest":{ - "type":"structure", - "required":[ - "CertificateArn", - "Tags" - ], - "members":{ - "CertificateArn":{"shape":"Arn"}, - "Tags":{"shape":"TagList"} - } - }, - "Arn":{ - "type":"string", - "max":2048, - "min":20, - "pattern":"arn:[\\w+=/,.@-]+:[\\w+=/,.@-]+:[\\w+=/,.@-]*:[0-9]+:[\\w+=,.@-]+(/[\\w+=/,.@-]+)*" - }, - "CertificateBody":{ - "type":"string", - "max":524288, - "min":1, - "pattern":"-{5}BEGIN CERTIFICATE-{5}\\u000D?\\u000A([A-Za-z0-9/+]{64}\\u000D?\\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\\u000D?\\u000A-{5}END CERTIFICATE-{5}(\\u000D?\\u000A)?" - }, - "CertificateChain":{ - "type":"string", - "max":2097152, - "min":1, - "pattern":"(-{5}BEGIN CERTIFICATE-{5}\\u000D?\\u000A([A-Za-z0-9/+]{64}\\u000D?\\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\\u000D?\\u000A-{5}END CERTIFICATE-{5}\\u000D?\\u000A)*-{5}BEGIN CERTIFICATE-{5}\\u000D?\\u000A([A-Za-z0-9/+]{64}\\u000D?\\u000A)*[A-Za-z0-9/+]{1,64}={0,2}\\u000D?\\u000A-{5}END CERTIFICATE-{5}(\\u000D?\\u000A)?" - }, - "CertificateDetail":{ - "type":"structure", - "members":{ - "CertificateArn":{"shape":"Arn"}, - "DomainName":{"shape":"DomainNameString"}, - "SubjectAlternativeNames":{"shape":"DomainList"}, - "DomainValidationOptions":{"shape":"DomainValidationList"}, - "Serial":{"shape":"String"}, - "Subject":{"shape":"String"}, - "Issuer":{"shape":"String"}, - "CreatedAt":{"shape":"TStamp"}, - "IssuedAt":{"shape":"TStamp"}, - "Status":{"shape":"CertificateStatus"}, - "RevokedAt":{"shape":"TStamp"}, - "RevocationReason":{"shape":"RevocationReason"}, - "NotBefore":{"shape":"TStamp"}, - "NotAfter":{"shape":"TStamp"}, - "KeyAlgorithm":{"shape":"KeyAlgorithm"}, - "SignatureAlgorithm":{"shape":"String"}, - "InUseBy":{"shape":"InUseList"} - } - }, - "CertificateStatus":{ - "type":"string", - "enum":[ - "PENDING_VALIDATION", - "ISSUED", - "INACTIVE", - "EXPIRED", - "VALIDATION_TIMED_OUT", - "REVOKED", - "FAILED" - ] - }, - "CertificateStatuses":{ - "type":"list", - "member":{"shape":"CertificateStatus"} - }, - "CertificateSummary":{ - "type":"structure", - "members":{ - "CertificateArn":{"shape":"Arn"}, - "DomainName":{"shape":"DomainNameString"} - } - }, - "CertificateSummaryList":{ - "type":"list", - "member":{"shape":"CertificateSummary"} - }, - "DeleteCertificateRequest":{ - "type":"structure", - "required":["CertificateArn"], - "members":{ - "CertificateArn":{"shape":"Arn"} - } - }, - "DescribeCertificateRequest":{ - "type":"structure", - "required":["CertificateArn"], - "members":{ - "CertificateArn":{"shape":"Arn"} - } - }, - "DescribeCertificateResponse":{ - "type":"structure", - "members":{ - "Certificate":{"shape":"CertificateDetail"} - } - }, - "DomainList":{ - "type":"list", - "member":{"shape":"DomainNameString"}, - "max":1000, - "min":1 - }, - "DomainNameString":{ - "type":"string", - "max":253, - "min":1, - "pattern":"^(\\*\\.)?(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9])\\.)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])$" - }, - "DomainValidation":{ - "type":"structure", - "required":["DomainName"], - "members":{ - "DomainName":{"shape":"DomainNameString"}, - "ValidationEmails":{"shape":"ValidationEmailList"}, - "ValidationDomain":{"shape":"DomainNameString"} - } - }, - "DomainValidationList":{ - "type":"list", - "member":{"shape":"DomainValidation"}, - "max":1000, - "min":1 - }, - "DomainValidationOption":{ - "type":"structure", - "required":[ - "DomainName", - "ValidationDomain" - ], - "members":{ - "DomainName":{"shape":"DomainNameString"}, - "ValidationDomain":{"shape":"DomainNameString"} - } - }, - "DomainValidationOptionList":{ - "type":"list", - "member":{"shape":"DomainValidationOption"}, - "max":1000, - "min":1 - }, - "GetCertificateRequest":{ - "type":"structure", - "required":["CertificateArn"], - "members":{ - "CertificateArn":{"shape":"Arn"} - } - }, - "GetCertificateResponse":{ - "type":"structure", - "members":{ - "Certificate":{"shape":"CertificateBody"}, - "CertificateChain":{"shape":"CertificateChain"} - } - }, - "IdempotencyToken":{ - "type":"string", - "max":32, - "min":1, - "pattern":"\\w+" - }, - "InUseList":{ - "type":"list", - "member":{"shape":"String"} - }, - "InvalidArnException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "InvalidDomainValidationOptionsException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "InvalidStateException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "InvalidTagException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "KeyAlgorithm":{ - "type":"string", - "enum":[ - "RSA_2048", - "EC_prime256v1" - ] - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "ListCertificatesRequest":{ - "type":"structure", - "members":{ - "CertificateStatuses":{"shape":"CertificateStatuses"}, - "NextToken":{"shape":"NextToken"}, - "MaxItems":{"shape":"MaxItems"} - } - }, - "ListCertificatesResponse":{ - "type":"structure", - "members":{ - "NextToken":{"shape":"NextToken"}, - "CertificateSummaryList":{"shape":"CertificateSummaryList"} - } - }, - "ListTagsForCertificateRequest":{ - "type":"structure", - "required":["CertificateArn"], - "members":{ - "CertificateArn":{"shape":"Arn"} - } - }, - "ListTagsForCertificateResponse":{ - "type":"structure", - "members":{ - "Tags":{"shape":"TagList"} - } - }, - "MaxItems":{ - "type":"integer", - "max":1000, - "min":1 - }, - "NextToken":{ - "type":"string", - "max":320, - "min":1, - "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]*" - }, - "RemoveTagsFromCertificateRequest":{ - "type":"structure", - "required":[ - "CertificateArn", - "Tags" - ], - "members":{ - "CertificateArn":{"shape":"Arn"}, - "Tags":{"shape":"TagList"} - } - }, - "RequestCertificateRequest":{ - "type":"structure", - "required":["DomainName"], - "members":{ - "DomainName":{"shape":"DomainNameString"}, - "SubjectAlternativeNames":{"shape":"DomainList"}, - "IdempotencyToken":{"shape":"IdempotencyToken"}, - "DomainValidationOptions":{"shape":"DomainValidationOptionList"} - } - }, - "RequestCertificateResponse":{ - "type":"structure", - "members":{ - "CertificateArn":{"shape":"Arn"} - } - }, - "RequestInProgressException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "ResendValidationEmailRequest":{ - "type":"structure", - "required":[ - "CertificateArn", - "Domain", - "ValidationDomain" - ], - "members":{ - "CertificateArn":{"shape":"Arn"}, - "Domain":{"shape":"DomainNameString"}, - "ValidationDomain":{"shape":"DomainNameString"} - } - }, - "ResourceInUseException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "RevocationReason":{ - "type":"string", - "enum":[ - "UNSPECIFIED", - "KEY_COMPROMISE", - "CA_COMPROMISE", - "AFFILIATION_CHANGED", - "SUPERCEDED", - "CESSATION_OF_OPERATION", - "CERTIFICATE_HOLD", - "REMOVE_FROM_CRL", - "PRIVILEGE_WITHDRAWN", - "A_A_COMPROMISE" - ] - }, - "String":{"type":"string"}, - "TStamp":{"type":"timestamp"}, - "Tag":{ - "type":"structure", - "required":["Key"], - "members":{ - "Key":{"shape":"TagKey"}, - "Value":{"shape":"TagValue"} - } - }, - "TagKey":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*" - }, - "TagList":{ - "type":"list", - "member":{"shape":"Tag"}, - "max":10, - "min":1 - }, - "TagValue":{ - "type":"string", - "max":256, - "min":0, - "pattern":"[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*" - }, - "TooManyTagsException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "ValidationEmailList":{ - "type":"list", - "member":{"shape":"String"} - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/docs-2.json deleted file mode 100644 index 65390986a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/docs-2.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "version": "2.0", - "service": "AWS Certificate Manager

    Welcome to the AWS Certificate Manager (ACM) Command Reference. This guide provides descriptions, syntax, and usage examples for each ACM command. You can use AWS Certificate Manager to request ACM Certificates for your AWS-based websites and applications. For general information about using ACM and for more information about using the console, see the AWS Certificate Manager User Guide. For more information about using the ACM API, see the AWS Certificate Manager API Reference.

    ", - "operations": { - "AddTagsToCertificate": "

    Adds one or more tags to an ACM Certificate. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a key and an optional value. You specify the certificate on input by its Amazon Resource Name (ARN). You specify the tag by using a key-value pair.

    You can apply a tag to just one certificate if you want to identify a specific characteristic of that certificate, or you can apply the same tag to multiple certificates if you want to filter for a common relationship among those certificates. Similarly, you can apply the same tag to multiple resources if you want to specify a relationship among those resources. For example, you can add the same tag to an ACM Certificate and an Elastic Load Balancing load balancer to indicate that they are both used by the same website. For more information, see Tagging ACM Certificates.

    To remove one or more tags, use the RemoveTagsFromCertificate action. To view all of the tags that have been applied to the certificate, use the ListTagsForCertificate action.

    ", - "DeleteCertificate": "

    Deletes an ACM Certificate and its associated private key. If this action succeeds, the certificate no longer appears in the list of ACM Certificates that can be displayed by calling the ListCertificates action or be retrieved by calling the GetCertificate action. The certificate will not be available for use by other AWS services.

    You cannot delete an ACM Certificate that is being used by another AWS service. To delete a certificate that is in use, the certificate association must first be removed. ", - "DescribeCertificate": "

    Returns a list of the fields contained in the specified ACM Certificate. For example, this action returns the certificate status, a flag that indicates whether the certificate is associated with any other AWS service, and the date at which the certificate request was created. You specify the ACM Certificate on input by its Amazon Resource Name (ARN).

    ", - "GetCertificate": "

    Retrieves an ACM Certificate and certificate chain for the certificate specified by an ARN. The chain is an ordered list of certificates that contains the root certificate, intermediate certificates of subordinate CAs, and the ACM Certificate. The certificate and certificate chain are base64 encoded. If you want to decode the certificate chain to see the individual certificate fields, you can use OpenSSL.

    Currently, ACM Certificates can be used only with Elastic Load Balancing and Amazon CloudFront. ", - "ListCertificates": "

    Retrieves a list of the ACM Certificate ARNs, and the domain name for each ARN, owned by the calling account. You can filter the list based on the CertificateStatuses parameter, and you can display up to MaxItems certificates at one time. If you have more than MaxItems certificates, use the NextToken marker from the response object in your next call to the ListCertificates action to retrieve the next set of certificate ARNs.

    ", - "ListTagsForCertificate": "

    Lists the tags that have been applied to the ACM Certificate. Use the certificate ARN to specify the certificate. To add a tag to an ACM Certificate, use the AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate action.

    ", - "RemoveTagsFromCertificate": "

    Remove one or more tags from an ACM Certificate. A tag consists of a key-value pair. If you do not specify the value portion of the tag when calling this function, the tag will be removed regardless of value. If you specify a value, the tag is removed only if it is associated with the specified value.

    To add tags to a certificate, use the AddTagsToCertificate action. To view all of the tags that have been applied to a specific ACM Certificate, use the ListTagsForCertificate action.

    ", - "RequestCertificate": "

    Requests an ACM Certificate for use with other AWS services. To request an ACM Certificate, you must specify the fully qualified domain name (FQDN) for your site. You can also specify additional FQDNs if users can reach your site by using other names. For each domain name you specify, email is sent to the domain owner to request approval to issue the certificate. After receiving approval from the domain owner, the ACM Certificate is issued. For more information, see the AWS Certificate Manager User Guide .

    ", - "ResendValidationEmail": "

    Resends the email that requests domain ownership validation. The domain owner or an authorized representative must approve the ACM Certificate before it can be issued. The certificate can be approved by clicking a link in the mail to navigate to the Amazon certificate approval website and then clicking I Approve. However, the validation email can be blocked by spam filters. Therefore, if you do not receive the original mail, you can request that the mail be resent within 72 hours of requesting the ACM Certificate. If more than 72 hours have elapsed since your original request or since your last attempt to resend validation mail, you must request a new certificate.

    " - }, - "shapes": { - "AddTagsToCertificateRequest": { - "base": "

    ", - "refs": { - } - }, - "Arn": { - "base": null, - "refs": { - "AddTagsToCertificateRequest$CertificateArn": "

    String that contains the ARN of the ACM Certificate to which the tag is to be applied. This must be of the form:

    arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    ", - "CertificateDetail$CertificateArn": "

    Amazon Resource Name (ARN) of the certificate. This is of the form:

    arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    ", - "CertificateSummary$CertificateArn": "

    Amazon Resource Name (ARN) of the certificate. This is of the form:

    arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    ", - "DeleteCertificateRequest$CertificateArn": "

    String that contains the ARN of the ACM Certificate to be deleted. This must be of the form:

    arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    ", - "DescribeCertificateRequest$CertificateArn": "

    String that contains an ACM Certificate ARN. The ARN must be of the form:

    arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    ", - "GetCertificateRequest$CertificateArn": "

    String that contains a certificate ARN in the following format:

    arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    ", - "ListTagsForCertificateRequest$CertificateArn": "

    String that contains the ARN of the ACM Certificate for which you want to list the tags. This must be of the form:

    arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    ", - "RemoveTagsFromCertificateRequest$CertificateArn": "

    String that contains the ARN of the ACM Certificate with one or more tags that you want to remove. This must be of the form:

    arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

    ", - "RequestCertificateResponse$CertificateArn": "

    String that contains the ARN of the issued certificate. This must be of the form:

    arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012

    ", - "ResendValidationEmailRequest$CertificateArn": "

    String that contains the ARN of the requested certificate. The certificate ARN is generated and returned by the RequestCertificate action as soon as the request is made. By default, using this parameter causes email to be sent to all top-level domains you specified in the certificate request.

    The ARN must be of the form:

    arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012

    " - } - }, - "CertificateBody": { - "base": null, - "refs": { - "GetCertificateResponse$Certificate": "

    String that contains the ACM Certificate represented by the ARN specified at input.

    " - } - }, - "CertificateChain": { - "base": null, - "refs": { - "GetCertificateResponse$CertificateChain": "

    The certificate chain that contains the root certificate issued by the certificate authority (CA).

    " - } - }, - "CertificateDetail": { - "base": "

    This structure is returned in the response object of the DescribeCertificate action.

    ", - "refs": { - "DescribeCertificateResponse$Certificate": "

    Contains a CertificateDetail structure that lists the fields of an ACM Certificate.

    " - } - }, - "CertificateStatus": { - "base": null, - "refs": { - "CertificateDetail$Status": "

    A CertificateStatus enumeration value that can contain one of the following:

    • PENDING_VALIDATION

    • ISSUED

    • INACTIVE

    • EXPIRED

    • REVOKED

    • FAILED

    • VALIDATION_TIMED_OUT

    ", - "CertificateStatuses$member": null - } - }, - "CertificateStatuses": { - "base": null, - "refs": { - "ListCertificatesRequest$CertificateStatuses": "

    Identifies the statuses of the ACM Certificates for which you want to retrieve the ARNs. This can be one or more of the following values:

    • PENDING_VALIDATION

    • ISSUED

    • INACTIVE

    • EXPIRED

    • VALIDATION_TIMED_OUT

    • REVOKED

    • FAILED

    " - } - }, - "CertificateSummary": { - "base": "

    This structure is returned in the response object of ListCertificates action.

    ", - "refs": { - "CertificateSummaryList$member": null - } - }, - "CertificateSummaryList": { - "base": null, - "refs": { - "ListCertificatesResponse$CertificateSummaryList": "

    A list of the certificate ARNs.

    " - } - }, - "DeleteCertificateRequest": { - "base": "

    ", - "refs": { - } - }, - "DescribeCertificateRequest": { - "base": "

    ", - "refs": { - } - }, - "DescribeCertificateResponse": { - "base": "

    ", - "refs": { - } - }, - "DomainList": { - "base": null, - "refs": { - "CertificateDetail$SubjectAlternativeNames": "

    One or more domain names (subject alternative names) included in the certificate request. After the certificate is issued, this list includes the domain names bound to the public key contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.

    ", - "RequestCertificateRequest$SubjectAlternativeNames": "

    Additional FQDNs to be included in the Subject Alternative Name extension of the ACM Certificate. For example, add the name www.example.net to a certificate for which the DomainName field is www.example.com if users can reach your site by using either name.

    " - } - }, - "DomainNameString": { - "base": null, - "refs": { - "CertificateDetail$DomainName": "

    Fully qualified domain name (FQDN), such as www.example.com or example.com, for the certificate.

    ", - "CertificateSummary$DomainName": "

    Fully qualified domain name (FQDN), such as www.example.com or example.com, for the certificate.

    ", - "DomainList$member": null, - "DomainValidation$DomainName": "

    Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com

    ", - "DomainValidation$ValidationDomain": "

    The base validation domain that acts as the suffix of the email addresses that are used to send the emails.

    ", - "DomainValidationOption$DomainName": "

    Fully Qualified Domain Name (FQDN) of the certificate being requested.

    ", - "DomainValidationOption$ValidationDomain": "

    The domain to which validation email is sent. This is the base validation domain that will act as the suffix of the email addresses. This must be the same as the DomainName value or a superdomain of the DomainName value. For example, if you requested a certificate for site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com, ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS for the base domain and the following five addresses:

    • admin@subdomain.example.com

    • administrator@subdomain.example.com

    • hostmaster@subdomain.example.com

    • postmaster@subdomain.example.com

    • webmaster@subdomain.example.com

    ", - "RequestCertificateRequest$DomainName": "

    Fully qualified domain name (FQDN), such as www.example.com, of the site you want to secure with an ACM Certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.

    ", - "ResendValidationEmailRequest$Domain": "

    The Fully Qualified Domain Name (FQDN) of the certificate that needs to be validated.

    ", - "ResendValidationEmailRequest$ValidationDomain": "

    The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the Domain value or a superdomain of the Domain value. For example, if you requested a certificate for site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com, ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:

    • admin@subdomain.example.com

    • administrator@subdomain.example.com

    • hostmaster@subdomain.example.com

    • postmaster@subdomain.example.com

    • webmaster@subdomain.example.com

    " - } - }, - "DomainValidation": { - "base": "

    Structure that contains the domain name, the base validation domain to which validation email is sent, and the email addresses used to validate the domain identity.

    ", - "refs": { - "DomainValidationList$member": null - } - }, - "DomainValidationList": { - "base": null, - "refs": { - "CertificateDetail$DomainValidationOptions": "

    References a DomainValidation structure that contains the domain name in the certificate and the email address that can be used for validation.

    " - } - }, - "DomainValidationOption": { - "base": "

    This structure is used in the request object of the RequestCertificate action.

    ", - "refs": { - "DomainValidationOptionList$member": null - } - }, - "DomainValidationOptionList": { - "base": null, - "refs": { - "RequestCertificateRequest$DomainValidationOptions": "

    The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the Domain value or a superdomain of the Domain value. For example, if you requested a certificate for test.example.com and specify DomainValidationOptions of example.com, ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:

    • admin@example.com

    • administrator@example.com

    • hostmaster@example.com

    • postmaster@example.com

    • webmaster@example.com

    " - } - }, - "GetCertificateRequest": { - "base": "

    ", - "refs": { - } - }, - "GetCertificateResponse": { - "base": "

    ", - "refs": { - } - }, - "IdempotencyToken": { - "base": null, - "refs": { - "RequestCertificateRequest$IdempotencyToken": "

    Customer chosen string that can be used to distinguish between calls to RequestCertificate. Idempotency tokens time out after one hour. Therefore, if you call RequestCertificate multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates.

    " - } - }, - "InUseList": { - "base": null, - "refs": { - "CertificateDetail$InUseBy": "

    List that identifies ARNs that are using the certificate. A single ACM Certificate can be used by multiple AWS resources.

    " - } - }, - "InvalidArnException": { - "base": "

    The requested Amazon Resource Name (ARN) does not refer to an existing resource.

    ", - "refs": { - } - }, - "InvalidDomainValidationOptionsException": { - "base": "

    One or more values in the DomainValidationOption structure is incorrect.

    ", - "refs": { - } - }, - "InvalidStateException": { - "base": "

    Processing has reached an invalid state. For example, this exception can occur if the specified domain is not using email validation, or the current certificate status does not permit the requested operation. See the exception message returned by ACM to determine which state is not valid.

    ", - "refs": { - } - }, - "InvalidTagException": { - "base": "

    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:.

    ", - "refs": { - } - }, - "KeyAlgorithm": { - "base": null, - "refs": { - "CertificateDetail$KeyAlgorithm": "

    Asymmetric algorithm used to generate the public and private key pair. Currently the only supported value is RSA_2048.

    " - } - }, - "LimitExceededException": { - "base": "

    An ACM limit has been exceeded. For example, you may have input more domains than are allowed or you've requested too many certificates for your account. See the exception message returned by ACM to determine which limit you have violated. For more information about ACM limits, see the Limits topic.

    ", - "refs": { - } - }, - "ListCertificatesRequest": { - "base": "

    ", - "refs": { - } - }, - "ListCertificatesResponse": { - "base": "

    ", - "refs": { - } - }, - "ListTagsForCertificateRequest": { - "base": "

    ", - "refs": { - } - }, - "ListTagsForCertificateResponse": { - "base": "

    ", - "refs": { - } - }, - "MaxItems": { - "base": null, - "refs": { - "ListCertificatesRequest$MaxItems": "

    Specify this parameter when paginating results to indicate the maximum number of ACM Certificates that you want to display for each response. If there are additional certificates beyond the maximum you specify, use the NextToken value in your next call to the ListCertificates action.

    " - } - }, - "NextToken": { - "base": null, - "refs": { - "ListCertificatesRequest$NextToken": "

    String that contains an opaque marker of the next ACM Certificate ARN to be displayed. Use this parameter when paginating results, and only in a subsequent request after you've received a response where the results have been truncated. Set it to an empty string the first time you call this action, and set it to the value of the NextToken element you receive in the response object for subsequent calls.

    ", - "ListCertificatesResponse$NextToken": "

    If the list has been truncated, this value is present and should be used for the NextToken input parameter on your next call to ListCertificates.

    " - } - }, - "RemoveTagsFromCertificateRequest": { - "base": "

    ", - "refs": { - } - }, - "RequestCertificateRequest": { - "base": "

    ", - "refs": { - } - }, - "RequestCertificateResponse": { - "base": "

    ", - "refs": { - } - }, - "RequestInProgressException": { - "base": "

    The certificate request is in process and the certificate in your account has not yet been issued.

    ", - "refs": { - } - }, - "ResendValidationEmailRequest": { - "base": "

    ", - "refs": { - } - }, - "ResourceInUseException": { - "base": "

    The certificate is in use by another AWS service in the caller's account. Remove the association and try again.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    The specified certificate cannot be found in the caller's account, or the caller's account cannot be found.

    ", - "refs": { - } - }, - "RevocationReason": { - "base": null, - "refs": { - "CertificateDetail$RevocationReason": "

    A RevocationReason enumeration value that indicates why the certificate was revoked. This value exists only if the certificate has been revoked. This can be one of the following vales:

    • UNSPECIFIED

    • KEY_COMPROMISE

    • CA_COMPROMISE

    • AFFILIATION_CHANGED

    • SUPERCEDED

    • CESSATION_OF_OPERATION

    • CERTIFICATE_HOLD

    • REMOVE_FROM_CRL

    • PRIVILEGE_WITHDRAWN

    • A_A_COMPROMISE

    " - } - }, - "String": { - "base": null, - "refs": { - "CertificateDetail$Serial": "

    String that contains the serial number of the certificate.

    ", - "CertificateDetail$Subject": "

    The X.500 distinguished name of the entity associated with the public key contained in the certificate.

    ", - "CertificateDetail$Issuer": "

    The X.500 distinguished name of the CA that issued and signed the certificate.

    ", - "CertificateDetail$SignatureAlgorithm": "

    Algorithm used to generate a signature. Currently the only supported value is SHA256WITHRSA.

    ", - "InUseList$member": null, - "InvalidArnException$message": "

    ", - "InvalidDomainValidationOptionsException$message": "

    ", - "InvalidStateException$message": "

    ", - "InvalidTagException$message": "

    ", - "LimitExceededException$message": "

    ", - "RequestInProgressException$message": "

    ", - "ResourceInUseException$message": "

    ", - "ResourceNotFoundException$message": "

    ", - "TooManyTagsException$message": null, - "ValidationEmailList$member": null - } - }, - "TStamp": { - "base": null, - "refs": { - "CertificateDetail$CreatedAt": "

    Time at which the certificate was requested.

    ", - "CertificateDetail$IssuedAt": "

    Time at which the certificate was issued.

    ", - "CertificateDetail$RevokedAt": "

    The time, if any, at which the certificate was revoked. This value exists only if the certificate has been revoked.

    ", - "CertificateDetail$NotBefore": "

    Time before which the certificate is not valid.

    ", - "CertificateDetail$NotAfter": "

    Time after which the certificate is not valid.

    " - } - }, - "Tag": { - "base": "

    A key-value pair that identifies or specifies metadata about an ACM resource.

    ", - "refs": { - "TagList$member": null - } - }, - "TagKey": { - "base": null, - "refs": { - "Tag$Key": "

    The key of the tag.

    " - } - }, - "TagList": { - "base": null, - "refs": { - "AddTagsToCertificateRequest$Tags": "

    The key-value pair that defines the tag. The tag value is optional.

    ", - "ListTagsForCertificateResponse$Tags": "

    The key-value pairs that define the applied tags.

    ", - "RemoveTagsFromCertificateRequest$Tags": "

    The key-value pair that defines the tag to remove.

    " - } - }, - "TagValue": { - "base": null, - "refs": { - "Tag$Value": "

    The value of the tag.

    " - } - }, - "TooManyTagsException": { - "base": "

    The request contains too many tags. Try the request again with fewer tags.

    ", - "refs": { - } - }, - "ValidationEmailList": { - "base": null, - "refs": { - "DomainValidation$ValidationEmails": "

    A list of contact address for the domain registrant.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/paginators-1.json deleted file mode 100644 index 036e35849..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/acm/2015-12-08/paginators-1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "pagination": { - "ListCertificates": { - "limit_key": "MaxItems", - "input_token": "NextToken", - "output_token": "NextToken", - "result_key": "CertificateSummaryList" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/api-2.json deleted file mode 100644 index 06340cb5c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/api-2.json +++ /dev/null @@ -1,3347 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-07-09", - "endpointPrefix":"apigateway", - "protocol":"rest-json", - "serviceFullName":"Amazon API Gateway", - "signatureVersion":"v4" - }, - "operations":{ - "CreateApiKey":{ - "name":"CreateApiKey", - "http":{ - "method":"POST", - "requestUri":"/apikeys", - "responseCode":201 - }, - "input":{"shape":"CreateApiKeyRequest"}, - "output":{"shape":"ApiKey"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"LimitExceededException"}, - {"shape":"BadRequestException"} - ] - }, - "CreateAuthorizer":{ - "name":"CreateAuthorizer", - "http":{ - "method":"POST", - "requestUri":"/restapis/{restapi_id}/authorizers", - "responseCode":201 - }, - "input":{"shape":"CreateAuthorizerRequest"}, - "output":{"shape":"Authorizer"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "CreateBasePathMapping":{ - "name":"CreateBasePathMapping", - "http":{ - "method":"POST", - "requestUri":"/domainnames/{domain_name}/basepathmappings", - "responseCode":201 - }, - "input":{"shape":"CreateBasePathMappingRequest"}, - "output":{"shape":"BasePathMapping"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"ConflictException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "CreateDeployment":{ - "name":"CreateDeployment", - "http":{ - "method":"POST", - "requestUri":"/restapis/{restapi_id}/deployments", - "responseCode":201 - }, - "input":{"shape":"CreateDeploymentRequest"}, - "output":{"shape":"Deployment"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"ServiceUnavailableException"} - ] - }, - "CreateDomainName":{ - "name":"CreateDomainName", - "http":{ - "method":"POST", - "requestUri":"/domainnames", - "responseCode":201 - }, - "input":{"shape":"CreateDomainNameRequest"}, - "output":{"shape":"DomainName"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"BadRequestException"}, - {"shape":"ConflictException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "CreateModel":{ - "name":"CreateModel", - "http":{ - "method":"POST", - "requestUri":"/restapis/{restapi_id}/models", - "responseCode":201 - }, - "input":{"shape":"CreateModelRequest"}, - "output":{"shape":"Model"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "CreateResource":{ - "name":"CreateResource", - "http":{ - "method":"POST", - "requestUri":"/restapis/{restapi_id}/resources/{parent_id}", - "responseCode":201 - }, - "input":{"shape":"CreateResourceRequest"}, - "output":{"shape":"Resource"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "CreateRestApi":{ - "name":"CreateRestApi", - "http":{ - "method":"POST", - "requestUri":"/restapis", - "responseCode":201 - }, - "input":{"shape":"CreateRestApiRequest"}, - "output":{"shape":"RestApi"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"LimitExceededException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "CreateStage":{ - "name":"CreateStage", - "http":{ - "method":"POST", - "requestUri":"/restapis/{restapi_id}/stages", - "responseCode":201 - }, - "input":{"shape":"CreateStageRequest"}, - "output":{"shape":"Stage"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteApiKey":{ - "name":"DeleteApiKey", - "http":{ - "method":"DELETE", - "requestUri":"/apikeys/{api_Key}", - "responseCode":202 - }, - "input":{"shape":"DeleteApiKeyRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteAuthorizer":{ - "name":"DeleteAuthorizer", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/authorizers/{authorizer_id}", - "responseCode":202 - }, - "input":{"shape":"DeleteAuthorizerRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"}, - {"shape":"ConflictException"} - ] - }, - "DeleteBasePathMapping":{ - "name":"DeleteBasePathMapping", - "http":{ - "method":"DELETE", - "requestUri":"/domainnames/{domain_name}/basepathmappings/{base_path}", - "responseCode":202 - }, - "input":{"shape":"DeleteBasePathMappingRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteClientCertificate":{ - "name":"DeleteClientCertificate", - "http":{ - "method":"DELETE", - "requestUri":"/clientcertificates/{clientcertificate_id}", - "responseCode":202 - }, - "input":{"shape":"DeleteClientCertificateRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"} - ] - }, - "DeleteDeployment":{ - "name":"DeleteDeployment", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/deployments/{deployment_id}", - "responseCode":202 - }, - "input":{"shape":"DeleteDeploymentRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteDomainName":{ - "name":"DeleteDomainName", - "http":{ - "method":"DELETE", - "requestUri":"/domainnames/{domain_name}", - "responseCode":202 - }, - "input":{"shape":"DeleteDomainNameRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteIntegration":{ - "name":"DeleteIntegration", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", - "responseCode":204 - }, - "input":{"shape":"DeleteIntegrationRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteIntegrationResponse":{ - "name":"DeleteIntegrationResponse", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}", - "responseCode":204 - }, - "input":{"shape":"DeleteIntegrationResponseRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteMethod":{ - "name":"DeleteMethod", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}", - "responseCode":204 - }, - "input":{"shape":"DeleteMethodRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteMethodResponse":{ - "name":"DeleteMethodResponse", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", - "responseCode":204 - }, - "input":{"shape":"DeleteMethodResponseRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteModel":{ - "name":"DeleteModel", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/models/{model_name}", - "responseCode":202 - }, - "input":{"shape":"DeleteModelRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"}, - {"shape":"ConflictException"} - ] - }, - "DeleteResource":{ - "name":"DeleteResource", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}", - "responseCode":202 - }, - "input":{"shape":"DeleteResourceRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"ConflictException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteRestApi":{ - "name":"DeleteRestApi", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}", - "responseCode":202 - }, - "input":{"shape":"DeleteRestApiRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"} - ] - }, - "DeleteStage":{ - "name":"DeleteStage", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/stages/{stage_name}", - "responseCode":202 - }, - "input":{"shape":"DeleteStageRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"} - ] - }, - "FlushStageAuthorizersCache":{ - "name":"FlushStageAuthorizersCache", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers", - "responseCode":202 - }, - "input":{"shape":"FlushStageAuthorizersCacheRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "FlushStageCache":{ - "name":"FlushStageCache", - "http":{ - "method":"DELETE", - "requestUri":"/restapis/{restapi_id}/stages/{stage_name}/cache/data", - "responseCode":202 - }, - "input":{"shape":"FlushStageCacheRequest"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GenerateClientCertificate":{ - "name":"GenerateClientCertificate", - "http":{ - "method":"POST", - "requestUri":"/clientcertificates", - "responseCode":201 - }, - "input":{"shape":"GenerateClientCertificateRequest"}, - "output":{"shape":"ClientCertificate"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"LimitExceededException"} - ] - }, - "GetAccount":{ - "name":"GetAccount", - "http":{ - "method":"GET", - "requestUri":"/account" - }, - "input":{"shape":"GetAccountRequest"}, - "output":{"shape":"Account"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetApiKey":{ - "name":"GetApiKey", - "http":{ - "method":"GET", - "requestUri":"/apikeys/{api_Key}" - }, - "input":{"shape":"GetApiKeyRequest"}, - "output":{"shape":"ApiKey"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetApiKeys":{ - "name":"GetApiKeys", - "http":{ - "method":"GET", - "requestUri":"/apikeys" - }, - "input":{"shape":"GetApiKeysRequest"}, - "output":{"shape":"ApiKeys"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetAuthorizer":{ - "name":"GetAuthorizer", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/authorizers/{authorizer_id}" - }, - "input":{"shape":"GetAuthorizerRequest"}, - "output":{"shape":"Authorizer"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetAuthorizers":{ - "name":"GetAuthorizers", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/authorizers" - }, - "input":{"shape":"GetAuthorizersRequest"}, - "output":{"shape":"Authorizers"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetBasePathMapping":{ - "name":"GetBasePathMapping", - "http":{ - "method":"GET", - "requestUri":"/domainnames/{domain_name}/basepathmappings/{base_path}" - }, - "input":{"shape":"GetBasePathMappingRequest"}, - "output":{"shape":"BasePathMapping"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetBasePathMappings":{ - "name":"GetBasePathMappings", - "http":{ - "method":"GET", - "requestUri":"/domainnames/{domain_name}/basepathmappings" - }, - "input":{"shape":"GetBasePathMappingsRequest"}, - "output":{"shape":"BasePathMappings"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetClientCertificate":{ - "name":"GetClientCertificate", - "http":{ - "method":"GET", - "requestUri":"/clientcertificates/{clientcertificate_id}" - }, - "input":{"shape":"GetClientCertificateRequest"}, - "output":{"shape":"ClientCertificate"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetClientCertificates":{ - "name":"GetClientCertificates", - "http":{ - "method":"GET", - "requestUri":"/clientcertificates" - }, - "input":{"shape":"GetClientCertificatesRequest"}, - "output":{"shape":"ClientCertificates"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetDeployment":{ - "name":"GetDeployment", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/deployments/{deployment_id}" - }, - "input":{"shape":"GetDeploymentRequest"}, - "output":{"shape":"Deployment"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"ServiceUnavailableException"} - ] - }, - "GetDeployments":{ - "name":"GetDeployments", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/deployments" - }, - "input":{"shape":"GetDeploymentsRequest"}, - "output":{"shape":"Deployments"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"ServiceUnavailableException"} - ] - }, - "GetDomainName":{ - "name":"GetDomainName", - "http":{ - "method":"GET", - "requestUri":"/domainnames/{domain_name}" - }, - "input":{"shape":"GetDomainNameRequest"}, - "output":{"shape":"DomainName"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetDomainNames":{ - "name":"GetDomainNames", - "http":{ - "method":"GET", - "requestUri":"/domainnames" - }, - "input":{"shape":"GetDomainNamesRequest"}, - "output":{"shape":"DomainNames"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetExport":{ - "name":"GetExport", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type}", - "responseCode":200 - }, - "input":{"shape":"GetExportRequest"}, - "output":{"shape":"ExportResponse"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetIntegration":{ - "name":"GetIntegration", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration" - }, - "input":{"shape":"GetIntegrationRequest"}, - "output":{"shape":"Integration"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetIntegrationResponse":{ - "name":"GetIntegrationResponse", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}" - }, - "input":{"shape":"GetIntegrationResponseRequest"}, - "output":{"shape":"IntegrationResponse"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetMethod":{ - "name":"GetMethod", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" - }, - "input":{"shape":"GetMethodRequest"}, - "output":{"shape":"Method"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetMethodResponse":{ - "name":"GetMethodResponse", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}" - }, - "input":{"shape":"GetMethodResponseRequest"}, - "output":{"shape":"MethodResponse"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetModel":{ - "name":"GetModel", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/models/{model_name}" - }, - "input":{"shape":"GetModelRequest"}, - "output":{"shape":"Model"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetModelTemplate":{ - "name":"GetModelTemplate", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/models/{model_name}/default_template" - }, - "input":{"shape":"GetModelTemplateRequest"}, - "output":{"shape":"Template"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetModels":{ - "name":"GetModels", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/models" - }, - "input":{"shape":"GetModelsRequest"}, - "output":{"shape":"Models"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetResource":{ - "name":"GetResource", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}" - }, - "input":{"shape":"GetResourceRequest"}, - "output":{"shape":"Resource"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetResources":{ - "name":"GetResources", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/resources" - }, - "input":{"shape":"GetResourcesRequest"}, - "output":{"shape":"Resources"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetRestApi":{ - "name":"GetRestApi", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}" - }, - "input":{"shape":"GetRestApiRequest"}, - "output":{"shape":"RestApi"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetRestApis":{ - "name":"GetRestApis", - "http":{ - "method":"GET", - "requestUri":"/restapis" - }, - "input":{"shape":"GetRestApisRequest"}, - "output":{"shape":"RestApis"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetSdk":{ - "name":"GetSdk", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/stages/{stage_name}/sdks/{sdk_type}", - "responseCode":200 - }, - "input":{"shape":"GetSdkRequest"}, - "output":{"shape":"SdkResponse"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetStage":{ - "name":"GetStage", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/stages/{stage_name}" - }, - "input":{"shape":"GetStageRequest"}, - "output":{"shape":"Stage"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetStages":{ - "name":"GetStages", - "http":{ - "method":"GET", - "requestUri":"/restapis/{restapi_id}/stages" - }, - "input":{"shape":"GetStagesRequest"}, - "output":{"shape":"Stages"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "ImportRestApi":{ - "name":"ImportRestApi", - "http":{ - "method":"POST", - "requestUri":"/restapis?mode=import", - "responseCode":201 - }, - "input":{"shape":"ImportRestApiRequest"}, - "output":{"shape":"RestApi"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"LimitExceededException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "PutIntegration":{ - "name":"PutIntegration", - "http":{ - "method":"PUT", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", - "responseCode":201 - }, - "input":{"shape":"PutIntegrationRequest"}, - "output":{"shape":"Integration"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"BadRequestException"}, - {"shape":"ConflictException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "PutIntegrationResponse":{ - "name":"PutIntegrationResponse", - "http":{ - "method":"PUT", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}", - "responseCode":201 - }, - "input":{"shape":"PutIntegrationResponseRequest"}, - "output":{"shape":"IntegrationResponse"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"ConflictException"} - ] - }, - "PutMethod":{ - "name":"PutMethod", - "http":{ - "method":"PUT", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}", - "responseCode":201 - }, - "input":{"shape":"PutMethodRequest"}, - "output":{"shape":"Method"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "PutMethodResponse":{ - "name":"PutMethodResponse", - "http":{ - "method":"PUT", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", - "responseCode":201 - }, - "input":{"shape":"PutMethodResponseRequest"}, - "output":{"shape":"MethodResponse"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "PutRestApi":{ - "name":"PutRestApi", - "http":{ - "method":"PUT", - "requestUri":"/restapis/{restapi_id}" - }, - "input":{"shape":"PutRestApiRequest"}, - "output":{"shape":"RestApi"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"LimitExceededException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "TestInvokeAuthorizer":{ - "name":"TestInvokeAuthorizer", - "http":{ - "method":"POST", - "requestUri":"/restapis/{restapi_id}/authorizers/{authorizer_id}" - }, - "input":{"shape":"TestInvokeAuthorizerRequest"}, - "output":{"shape":"TestInvokeAuthorizerResponse"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "TestInvokeMethod":{ - "name":"TestInvokeMethod", - "http":{ - "method":"POST", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" - }, - "input":{"shape":"TestInvokeMethodRequest"}, - "output":{"shape":"TestInvokeMethodResponse"}, - "errors":[ - {"shape":"BadRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateAccount":{ - "name":"UpdateAccount", - "http":{ - "method":"PATCH", - "requestUri":"/account" - }, - "input":{"shape":"UpdateAccountRequest"}, - "output":{"shape":"Account"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateApiKey":{ - "name":"UpdateApiKey", - "http":{ - "method":"PATCH", - "requestUri":"/apikeys/{api_Key}" - }, - "input":{"shape":"UpdateApiKeyRequest"}, - "output":{"shape":"ApiKey"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateAuthorizer":{ - "name":"UpdateAuthorizer", - "http":{ - "method":"PATCH", - "requestUri":"/restapis/{restapi_id}/authorizers/{authorizer_id}" - }, - "input":{"shape":"UpdateAuthorizerRequest"}, - "output":{"shape":"Authorizer"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateBasePathMapping":{ - "name":"UpdateBasePathMapping", - "http":{ - "method":"PATCH", - "requestUri":"/domainnames/{domain_name}/basepathmappings/{base_path}" - }, - "input":{"shape":"UpdateBasePathMappingRequest"}, - "output":{"shape":"BasePathMapping"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateClientCertificate":{ - "name":"UpdateClientCertificate", - "http":{ - "method":"PATCH", - "requestUri":"/clientcertificates/{clientcertificate_id}" - }, - "input":{"shape":"UpdateClientCertificateRequest"}, - "output":{"shape":"ClientCertificate"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"} - ] - }, - "UpdateDeployment":{ - "name":"UpdateDeployment", - "http":{ - "method":"PATCH", - "requestUri":"/restapis/{restapi_id}/deployments/{deployment_id}" - }, - "input":{"shape":"UpdateDeploymentRequest"}, - "output":{"shape":"Deployment"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"ServiceUnavailableException"} - ] - }, - "UpdateDomainName":{ - "name":"UpdateDomainName", - "http":{ - "method":"PATCH", - "requestUri":"/domainnames/{domain_name}" - }, - "input":{"shape":"UpdateDomainNameRequest"}, - "output":{"shape":"DomainName"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"ConflictException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateIntegration":{ - "name":"UpdateIntegration", - "http":{ - "method":"PATCH", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration" - }, - "input":{"shape":"UpdateIntegrationRequest"}, - "output":{"shape":"Integration"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"ConflictException"} - ] - }, - "UpdateIntegrationResponse":{ - "name":"UpdateIntegrationResponse", - "http":{ - "method":"PATCH", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}" - }, - "input":{"shape":"UpdateIntegrationResponseRequest"}, - "output":{"shape":"IntegrationResponse"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateMethod":{ - "name":"UpdateMethod", - "http":{ - "method":"PATCH", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" - }, - "input":{"shape":"UpdateMethodRequest"}, - "output":{"shape":"Method"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"ConflictException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateMethodResponse":{ - "name":"UpdateMethodResponse", - "http":{ - "method":"PATCH", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", - "responseCode":201 - }, - "input":{"shape":"UpdateMethodResponseRequest"}, - "output":{"shape":"MethodResponse"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"LimitExceededException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateModel":{ - "name":"UpdateModel", - "http":{ - "method":"PATCH", - "requestUri":"/restapis/{restapi_id}/models/{model_name}" - }, - "input":{"shape":"UpdateModelRequest"}, - "output":{"shape":"Model"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"BadRequestException"}, - {"shape":"ConflictException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateResource":{ - "name":"UpdateResource", - "http":{ - "method":"PATCH", - "requestUri":"/restapis/{restapi_id}/resources/{resource_id}" - }, - "input":{"shape":"UpdateResourceRequest"}, - "output":{"shape":"Resource"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateRestApi":{ - "name":"UpdateRestApi", - "http":{ - "method":"PATCH", - "requestUri":"/restapis/{restapi_id}" - }, - "input":{"shape":"UpdateRestApiRequest"}, - "output":{"shape":"RestApi"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateStage":{ - "name":"UpdateStage", - "http":{ - "method":"PATCH", - "requestUri":"/restapis/{restapi_id}/stages/{stage_name}" - }, - "input":{"shape":"UpdateStageRequest"}, - "output":{"shape":"Stage"}, - "errors":[ - {"shape":"UnauthorizedException"}, - {"shape":"NotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"BadRequestException"}, - {"shape":"TooManyRequestsException"} - ] - } - }, - "shapes":{ - "Account":{ - "type":"structure", - "members":{ - "cloudwatchRoleArn":{"shape":"String"}, - "throttleSettings":{"shape":"ThrottleSettings"} - } - }, - "ApiKey":{ - "type":"structure", - "members":{ - "id":{"shape":"String"}, - "name":{"shape":"String"}, - "description":{"shape":"String"}, - "enabled":{"shape":"Boolean"}, - "stageKeys":{"shape":"ListOfString"}, - "createdDate":{"shape":"Timestamp"}, - "lastUpdatedDate":{"shape":"Timestamp"} - } - }, - "ApiKeys":{ - "type":"structure", - "members":{ - "position":{"shape":"String"}, - "items":{ - "shape":"ListOfApiKey", - "locationName":"item" - } - } - }, - "Authorizer":{ - "type":"structure", - "members":{ - "id":{"shape":"String"}, - "name":{"shape":"String"}, - "type":{"shape":"AuthorizerType"}, - "authType":{"shape":"String"}, - "authorizerUri":{"shape":"String"}, - "authorizerCredentials":{"shape":"String"}, - "identitySource":{"shape":"String"}, - "identityValidationExpression":{"shape":"String"}, - "authorizerResultTtlInSeconds":{"shape":"NullableInteger"} - } - }, - "AuthorizerType":{ - "type":"string", - "enum":["TOKEN"] - }, - "Authorizers":{ - "type":"structure", - "members":{ - "position":{"shape":"String"}, - "items":{ - "shape":"ListOfAuthorizer", - "locationName":"item" - } - } - }, - "BadRequestException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "BasePathMapping":{ - "type":"structure", - "members":{ - "basePath":{"shape":"String"}, - "restApiId":{"shape":"String"}, - "stage":{"shape":"String"} - } - }, - "BasePathMappings":{ - "type":"structure", - "members":{ - "position":{"shape":"String"}, - "items":{ - "shape":"ListOfBasePathMapping", - "locationName":"item" - } - } - }, - "Blob":{"type":"blob"}, - "Boolean":{"type":"boolean"}, - "CacheClusterSize":{ - "type":"string", - "enum":[ - "0.5", - "1.6", - "6.1", - "13.5", - "28.4", - "58.2", - "118", - "237" - ] - }, - "CacheClusterStatus":{ - "type":"string", - "enum":[ - "CREATE_IN_PROGRESS", - "AVAILABLE", - "DELETE_IN_PROGRESS", - "NOT_AVAILABLE", - "FLUSH_IN_PROGRESS" - ] - }, - "ClientCertificate":{ - "type":"structure", - "members":{ - "clientCertificateId":{"shape":"String"}, - "description":{"shape":"String"}, - "pemEncodedCertificate":{"shape":"String"}, - "createdDate":{"shape":"Timestamp"}, - "expirationDate":{"shape":"Timestamp"} - } - }, - "ClientCertificates":{ - "type":"structure", - "members":{ - "position":{"shape":"String"}, - "items":{ - "shape":"ListOfClientCertificate", - "locationName":"item" - } - } - }, - "ConflictException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CreateApiKeyRequest":{ - "type":"structure", - "members":{ - "name":{"shape":"String"}, - "description":{"shape":"String"}, - "enabled":{"shape":"Boolean"}, - "stageKeys":{"shape":"ListOfStageKeys"} - } - }, - "CreateAuthorizerRequest":{ - "type":"structure", - "required":[ - "restApiId", - "name", - "type", - "authorizerUri", - "identitySource" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "name":{"shape":"String"}, - "type":{"shape":"AuthorizerType"}, - "authType":{"shape":"String"}, - "authorizerUri":{"shape":"String"}, - "authorizerCredentials":{"shape":"String"}, - "identitySource":{"shape":"String"}, - "identityValidationExpression":{"shape":"String"}, - "authorizerResultTtlInSeconds":{"shape":"NullableInteger"} - } - }, - "CreateBasePathMappingRequest":{ - "type":"structure", - "required":[ - "domainName", - "restApiId" - ], - "members":{ - "domainName":{ - "shape":"String", - "location":"uri", - "locationName":"domain_name" - }, - "basePath":{"shape":"String"}, - "restApiId":{"shape":"String"}, - "stage":{"shape":"String"} - } - }, - "CreateDeploymentRequest":{ - "type":"structure", - "required":[ - "restApiId", - "stageName" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "stageName":{"shape":"String"}, - "stageDescription":{"shape":"String"}, - "description":{"shape":"String"}, - "cacheClusterEnabled":{"shape":"NullableBoolean"}, - "cacheClusterSize":{"shape":"CacheClusterSize"}, - "variables":{"shape":"MapOfStringToString"} - } - }, - "CreateDomainNameRequest":{ - "type":"structure", - "required":[ - "domainName", - "certificateName", - "certificateBody", - "certificatePrivateKey", - "certificateChain" - ], - "members":{ - "domainName":{"shape":"String"}, - "certificateName":{"shape":"String"}, - "certificateBody":{"shape":"String"}, - "certificatePrivateKey":{"shape":"String"}, - "certificateChain":{"shape":"String"} - } - }, - "CreateModelRequest":{ - "type":"structure", - "required":[ - "restApiId", - "name", - "contentType" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "name":{"shape":"String"}, - "description":{"shape":"String"}, - "schema":{"shape":"String"}, - "contentType":{"shape":"String"} - } - }, - "CreateResourceRequest":{ - "type":"structure", - "required":[ - "restApiId", - "parentId", - "pathPart" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "parentId":{ - "shape":"String", - "location":"uri", - "locationName":"parent_id" - }, - "pathPart":{"shape":"String"} - } - }, - "CreateRestApiRequest":{ - "type":"structure", - "required":["name"], - "members":{ - "name":{"shape":"String"}, - "description":{"shape":"String"}, - "cloneFrom":{"shape":"String"} - } - }, - "CreateStageRequest":{ - "type":"structure", - "required":[ - "restApiId", - "stageName", - "deploymentId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "stageName":{"shape":"String"}, - "deploymentId":{"shape":"String"}, - "description":{"shape":"String"}, - "cacheClusterEnabled":{"shape":"Boolean"}, - "cacheClusterSize":{"shape":"CacheClusterSize"}, - "variables":{"shape":"MapOfStringToString"} - } - }, - "DeleteApiKeyRequest":{ - "type":"structure", - "required":["apiKey"], - "members":{ - "apiKey":{ - "shape":"String", - "location":"uri", - "locationName":"api_Key" - } - } - }, - "DeleteAuthorizerRequest":{ - "type":"structure", - "required":[ - "restApiId", - "authorizerId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "authorizerId":{ - "shape":"String", - "location":"uri", - "locationName":"authorizer_id" - } - } - }, - "DeleteBasePathMappingRequest":{ - "type":"structure", - "required":[ - "domainName", - "basePath" - ], - "members":{ - "domainName":{ - "shape":"String", - "location":"uri", - "locationName":"domain_name" - }, - "basePath":{ - "shape":"String", - "location":"uri", - "locationName":"base_path" - } - } - }, - "DeleteClientCertificateRequest":{ - "type":"structure", - "required":["clientCertificateId"], - "members":{ - "clientCertificateId":{ - "shape":"String", - "location":"uri", - "locationName":"clientcertificate_id" - } - } - }, - "DeleteDeploymentRequest":{ - "type":"structure", - "required":[ - "restApiId", - "deploymentId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "deploymentId":{ - "shape":"String", - "location":"uri", - "locationName":"deployment_id" - } - } - }, - "DeleteDomainNameRequest":{ - "type":"structure", - "required":["domainName"], - "members":{ - "domainName":{ - "shape":"String", - "location":"uri", - "locationName":"domain_name" - } - } - }, - "DeleteIntegrationRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - } - } - }, - "DeleteIntegrationResponseRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod", - "statusCode" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "statusCode":{ - "shape":"StatusCode", - "location":"uri", - "locationName":"status_code" - } - } - }, - "DeleteMethodRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - } - } - }, - "DeleteMethodResponseRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod", - "statusCode" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "statusCode":{ - "shape":"StatusCode", - "location":"uri", - "locationName":"status_code" - } - } - }, - "DeleteModelRequest":{ - "type":"structure", - "required":[ - "restApiId", - "modelName" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "modelName":{ - "shape":"String", - "location":"uri", - "locationName":"model_name" - } - } - }, - "DeleteResourceRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - } - } - }, - "DeleteRestApiRequest":{ - "type":"structure", - "required":["restApiId"], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - } - } - }, - "DeleteStageRequest":{ - "type":"structure", - "required":[ - "restApiId", - "stageName" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "stageName":{ - "shape":"String", - "location":"uri", - "locationName":"stage_name" - } - } - }, - "Deployment":{ - "type":"structure", - "members":{ - "id":{"shape":"String"}, - "description":{"shape":"String"}, - "createdDate":{"shape":"Timestamp"}, - "apiSummary":{"shape":"PathToMapOfMethodSnapshot"} - } - }, - "Deployments":{ - "type":"structure", - "members":{ - "position":{"shape":"String"}, - "items":{ - "shape":"ListOfDeployment", - "locationName":"item" - } - } - }, - "DomainName":{ - "type":"structure", - "members":{ - "domainName":{"shape":"String"}, - "certificateName":{"shape":"String"}, - "certificateUploadDate":{"shape":"Timestamp"}, - "distributionDomainName":{"shape":"String"} - } - }, - "DomainNames":{ - "type":"structure", - "members":{ - "position":{"shape":"String"}, - "items":{ - "shape":"ListOfDomainName", - "locationName":"item" - } - } - }, - "Double":{"type":"double"}, - "ExportResponse":{ - "type":"structure", - "members":{ - "contentType":{ - "shape":"String", - "location":"header", - "locationName":"Content-Type" - }, - "contentDisposition":{ - "shape":"String", - "location":"header", - "locationName":"Content-Disposition" - }, - "body":{"shape":"Blob"} - }, - "payload":"body" - }, - "FlushStageAuthorizersCacheRequest":{ - "type":"structure", - "required":[ - "restApiId", - "stageName" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "stageName":{ - "shape":"String", - "location":"uri", - "locationName":"stage_name" - } - } - }, - "FlushStageCacheRequest":{ - "type":"structure", - "required":[ - "restApiId", - "stageName" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "stageName":{ - "shape":"String", - "location":"uri", - "locationName":"stage_name" - } - } - }, - "GenerateClientCertificateRequest":{ - "type":"structure", - "members":{ - "description":{"shape":"String"} - } - }, - "GetAccountRequest":{ - "type":"structure", - "members":{ - } - }, - "GetApiKeyRequest":{ - "type":"structure", - "required":["apiKey"], - "members":{ - "apiKey":{ - "shape":"String", - "location":"uri", - "locationName":"api_Key" - } - } - }, - "GetApiKeysRequest":{ - "type":"structure", - "members":{ - "position":{ - "shape":"String", - "location":"querystring", - "locationName":"position" - }, - "limit":{ - "shape":"NullableInteger", - "location":"querystring", - "locationName":"limit" - } - } - }, - "GetAuthorizerRequest":{ - "type":"structure", - "required":[ - "restApiId", - "authorizerId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "authorizerId":{ - "shape":"String", - "location":"uri", - "locationName":"authorizer_id" - } - } - }, - "GetAuthorizersRequest":{ - "type":"structure", - "required":["restApiId"], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "position":{ - "shape":"String", - "location":"querystring", - "locationName":"position" - }, - "limit":{ - "shape":"NullableInteger", - "location":"querystring", - "locationName":"limit" - } - } - }, - "GetBasePathMappingRequest":{ - "type":"structure", - "required":[ - "domainName", - "basePath" - ], - "members":{ - "domainName":{ - "shape":"String", - "location":"uri", - "locationName":"domain_name" - }, - "basePath":{ - "shape":"String", - "location":"uri", - "locationName":"base_path" - } - } - }, - "GetBasePathMappingsRequest":{ - "type":"structure", - "required":["domainName"], - "members":{ - "domainName":{ - "shape":"String", - "location":"uri", - "locationName":"domain_name" - }, - "position":{ - "shape":"String", - "location":"querystring", - "locationName":"position" - }, - "limit":{ - "shape":"NullableInteger", - "location":"querystring", - "locationName":"limit" - } - } - }, - "GetClientCertificateRequest":{ - "type":"structure", - "required":["clientCertificateId"], - "members":{ - "clientCertificateId":{ - "shape":"String", - "location":"uri", - "locationName":"clientcertificate_id" - } - } - }, - "GetClientCertificatesRequest":{ - "type":"structure", - "members":{ - "position":{ - "shape":"String", - "location":"querystring", - "locationName":"position" - }, - "limit":{ - "shape":"NullableInteger", - "location":"querystring", - "locationName":"limit" - } - } - }, - "GetDeploymentRequest":{ - "type":"structure", - "required":[ - "restApiId", - "deploymentId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "deploymentId":{ - "shape":"String", - "location":"uri", - "locationName":"deployment_id" - } - } - }, - "GetDeploymentsRequest":{ - "type":"structure", - "required":["restApiId"], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "position":{ - "shape":"String", - "location":"querystring", - "locationName":"position" - }, - "limit":{ - "shape":"NullableInteger", - "location":"querystring", - "locationName":"limit" - } - } - }, - "GetDomainNameRequest":{ - "type":"structure", - "required":["domainName"], - "members":{ - "domainName":{ - "shape":"String", - "location":"uri", - "locationName":"domain_name" - } - } - }, - "GetDomainNamesRequest":{ - "type":"structure", - "members":{ - "position":{ - "shape":"String", - "location":"querystring", - "locationName":"position" - }, - "limit":{ - "shape":"NullableInteger", - "location":"querystring", - "locationName":"limit" - } - } - }, - "GetExportRequest":{ - "type":"structure", - "required":[ - "restApiId", - "stageName", - "exportType" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "stageName":{ - "shape":"String", - "location":"uri", - "locationName":"stage_name" - }, - "exportType":{ - "shape":"String", - "location":"uri", - "locationName":"export_type" - }, - "parameters":{ - "shape":"MapOfStringToString", - "location":"querystring" - }, - "accepts":{ - "shape":"String", - "location":"header", - "locationName":"Accept" - } - } - }, - "GetIntegrationRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - } - } - }, - "GetIntegrationResponseRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod", - "statusCode" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "statusCode":{ - "shape":"StatusCode", - "location":"uri", - "locationName":"status_code" - } - } - }, - "GetMethodRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - } - } - }, - "GetMethodResponseRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod", - "statusCode" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "statusCode":{ - "shape":"StatusCode", - "location":"uri", - "locationName":"status_code" - } - } - }, - "GetModelRequest":{ - "type":"structure", - "required":[ - "restApiId", - "modelName" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "modelName":{ - "shape":"String", - "location":"uri", - "locationName":"model_name" - }, - "flatten":{ - "shape":"Boolean", - "location":"querystring", - "locationName":"flatten" - } - } - }, - "GetModelTemplateRequest":{ - "type":"structure", - "required":[ - "restApiId", - "modelName" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "modelName":{ - "shape":"String", - "location":"uri", - "locationName":"model_name" - } - } - }, - "GetModelsRequest":{ - "type":"structure", - "required":["restApiId"], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "position":{ - "shape":"String", - "location":"querystring", - "locationName":"position" - }, - "limit":{ - "shape":"NullableInteger", - "location":"querystring", - "locationName":"limit" - } - } - }, - "GetResourceRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - } - } - }, - "GetResourcesRequest":{ - "type":"structure", - "required":["restApiId"], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "position":{ - "shape":"String", - "location":"querystring", - "locationName":"position" - }, - "limit":{ - "shape":"NullableInteger", - "location":"querystring", - "locationName":"limit" - } - } - }, - "GetRestApiRequest":{ - "type":"structure", - "required":["restApiId"], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - } - } - }, - "GetRestApisRequest":{ - "type":"structure", - "members":{ - "position":{ - "shape":"String", - "location":"querystring", - "locationName":"position" - }, - "limit":{ - "shape":"NullableInteger", - "location":"querystring", - "locationName":"limit" - } - } - }, - "GetSdkRequest":{ - "type":"structure", - "required":[ - "restApiId", - "stageName", - "sdkType" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "stageName":{ - "shape":"String", - "location":"uri", - "locationName":"stage_name" - }, - "sdkType":{ - "shape":"String", - "location":"uri", - "locationName":"sdk_type" - }, - "parameters":{ - "shape":"MapOfStringToString", - "location":"querystring" - } - } - }, - "GetStageRequest":{ - "type":"structure", - "required":[ - "restApiId", - "stageName" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "stageName":{ - "shape":"String", - "location":"uri", - "locationName":"stage_name" - } - } - }, - "GetStagesRequest":{ - "type":"structure", - "required":["restApiId"], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "deploymentId":{ - "shape":"String", - "location":"querystring", - "locationName":"deploymentId" - } - } - }, - "ImportRestApiRequest":{ - "type":"structure", - "required":["body"], - "members":{ - "failOnWarnings":{ - "shape":"Boolean", - "location":"querystring", - "locationName":"failonwarnings" - }, - "parameters":{ - "shape":"MapOfStringToString", - "location":"querystring" - }, - "body":{"shape":"Blob"} - }, - "payload":"body" - }, - "Integer":{"type":"integer"}, - "Integration":{ - "type":"structure", - "members":{ - "type":{"shape":"IntegrationType"}, - "httpMethod":{"shape":"String"}, - "uri":{"shape":"String"}, - "credentials":{"shape":"String"}, - "requestParameters":{"shape":"MapOfStringToString"}, - "requestTemplates":{"shape":"MapOfStringToString"}, - "passthroughBehavior":{"shape":"String"}, - "cacheNamespace":{"shape":"String"}, - "cacheKeyParameters":{"shape":"ListOfString"}, - "integrationResponses":{"shape":"MapOfIntegrationResponse"} - } - }, - "IntegrationResponse":{ - "type":"structure", - "members":{ - "statusCode":{"shape":"StatusCode"}, - "selectionPattern":{"shape":"String"}, - "responseParameters":{"shape":"MapOfStringToString"}, - "responseTemplates":{"shape":"MapOfStringToString"} - } - }, - "IntegrationType":{ - "type":"string", - "enum":[ - "HTTP", - "AWS", - "MOCK" - ] - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - "retryAfterSeconds":{ - "shape":"String", - "location":"header", - "locationName":"Retry-After" - }, - "message":{"shape":"String"} - }, - "error":{"httpStatusCode":429}, - "exception":true - }, - "ListOfApiKey":{ - "type":"list", - "member":{"shape":"ApiKey"} - }, - "ListOfAuthorizer":{ - "type":"list", - "member":{"shape":"Authorizer"} - }, - "ListOfBasePathMapping":{ - "type":"list", - "member":{"shape":"BasePathMapping"} - }, - "ListOfClientCertificate":{ - "type":"list", - "member":{"shape":"ClientCertificate"} - }, - "ListOfDeployment":{ - "type":"list", - "member":{"shape":"Deployment"} - }, - "ListOfDomainName":{ - "type":"list", - "member":{"shape":"DomainName"} - }, - "ListOfModel":{ - "type":"list", - "member":{"shape":"Model"} - }, - "ListOfPatchOperation":{ - "type":"list", - "member":{"shape":"PatchOperation"} - }, - "ListOfResource":{ - "type":"list", - "member":{"shape":"Resource"} - }, - "ListOfRestApi":{ - "type":"list", - "member":{"shape":"RestApi"} - }, - "ListOfStage":{ - "type":"list", - "member":{"shape":"Stage"} - }, - "ListOfStageKeys":{ - "type":"list", - "member":{"shape":"StageKey"} - }, - "ListOfString":{ - "type":"list", - "member":{"shape":"String"} - }, - "Long":{"type":"long"}, - "MapOfHeaderValues":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"} - }, - "MapOfIntegrationResponse":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"IntegrationResponse"} - }, - "MapOfMethod":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"Method"} - }, - "MapOfMethodResponse":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"MethodResponse"} - }, - "MapOfMethodSettings":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"MethodSetting"} - }, - "MapOfMethodSnapshot":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"MethodSnapshot"} - }, - "MapOfStringToBoolean":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"NullableBoolean"} - }, - "MapOfStringToList":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"ListOfString"} - }, - "MapOfStringToString":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"} - }, - "Method":{ - "type":"structure", - "members":{ - "httpMethod":{"shape":"String"}, - "authorizationType":{"shape":"String"}, - "authorizerId":{"shape":"String"}, - "apiKeyRequired":{"shape":"NullableBoolean"}, - "requestParameters":{"shape":"MapOfStringToBoolean"}, - "requestModels":{"shape":"MapOfStringToString"}, - "methodResponses":{"shape":"MapOfMethodResponse"}, - "methodIntegration":{"shape":"Integration"} - } - }, - "MethodResponse":{ - "type":"structure", - "members":{ - "statusCode":{"shape":"StatusCode"}, - "responseParameters":{"shape":"MapOfStringToBoolean"}, - "responseModels":{"shape":"MapOfStringToString"} - } - }, - "MethodSetting":{ - "type":"structure", - "members":{ - "metricsEnabled":{"shape":"Boolean"}, - "loggingLevel":{"shape":"String"}, - "dataTraceEnabled":{"shape":"Boolean"}, - "throttlingBurstLimit":{"shape":"Integer"}, - "throttlingRateLimit":{"shape":"Double"}, - "cachingEnabled":{"shape":"Boolean"}, - "cacheTtlInSeconds":{"shape":"Integer"}, - "cacheDataEncrypted":{"shape":"Boolean"}, - "requireAuthorizationForCacheControl":{"shape":"Boolean"}, - "unauthorizedCacheControlHeaderStrategy":{"shape":"UnauthorizedCacheControlHeaderStrategy"} - } - }, - "MethodSnapshot":{ - "type":"structure", - "members":{ - "authorizationType":{"shape":"String"}, - "apiKeyRequired":{"shape":"Boolean"} - } - }, - "Model":{ - "type":"structure", - "members":{ - "id":{"shape":"String"}, - "name":{"shape":"String"}, - "description":{"shape":"String"}, - "schema":{"shape":"String"}, - "contentType":{"shape":"String"} - } - }, - "Models":{ - "type":"structure", - "members":{ - "position":{"shape":"String"}, - "items":{ - "shape":"ListOfModel", - "locationName":"item" - } - } - }, - "NotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NullableBoolean":{"type":"boolean"}, - "NullableInteger":{"type":"integer"}, - "PatchOperation":{ - "type":"structure", - "members":{ - "op":{"shape":"op"}, - "path":{"shape":"String"}, - "value":{"shape":"String"}, - "from":{"shape":"String"} - } - }, - "PathToMapOfMethodSnapshot":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"MapOfMethodSnapshot"} - }, - "PutIntegrationRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod", - "type" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "type":{"shape":"IntegrationType"}, - "integrationHttpMethod":{ - "shape":"String", - "locationName":"httpMethod" - }, - "uri":{"shape":"String"}, - "credentials":{"shape":"String"}, - "requestParameters":{"shape":"MapOfStringToString"}, - "requestTemplates":{"shape":"MapOfStringToString"}, - "passthroughBehavior":{"shape":"String"}, - "cacheNamespace":{"shape":"String"}, - "cacheKeyParameters":{"shape":"ListOfString"} - } - }, - "PutIntegrationResponseRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod", - "statusCode" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "statusCode":{ - "shape":"StatusCode", - "location":"uri", - "locationName":"status_code" - }, - "selectionPattern":{"shape":"String"}, - "responseParameters":{"shape":"MapOfStringToString"}, - "responseTemplates":{"shape":"MapOfStringToString"} - } - }, - "PutMethodRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod", - "authorizationType" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "authorizationType":{"shape":"String"}, - "authorizerId":{"shape":"String"}, - "apiKeyRequired":{"shape":"Boolean"}, - "requestParameters":{"shape":"MapOfStringToBoolean"}, - "requestModels":{"shape":"MapOfStringToString"} - } - }, - "PutMethodResponseRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod", - "statusCode" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "statusCode":{ - "shape":"StatusCode", - "location":"uri", - "locationName":"status_code" - }, - "responseParameters":{"shape":"MapOfStringToBoolean"}, - "responseModels":{"shape":"MapOfStringToString"} - } - }, - "PutMode":{ - "type":"string", - "enum":[ - "merge", - "overwrite" - ] - }, - "PutRestApiRequest":{ - "type":"structure", - "required":[ - "restApiId", - "body" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "mode":{ - "shape":"PutMode", - "location":"querystring", - "locationName":"mode" - }, - "failOnWarnings":{ - "shape":"Boolean", - "location":"querystring", - "locationName":"failonwarnings" - }, - "parameters":{ - "shape":"MapOfStringToString", - "location":"querystring" - }, - "body":{"shape":"Blob"} - }, - "payload":"body" - }, - "Resource":{ - "type":"structure", - "members":{ - "id":{"shape":"String"}, - "parentId":{"shape":"String"}, - "pathPart":{"shape":"String"}, - "path":{"shape":"String"}, - "resourceMethods":{"shape":"MapOfMethod"} - } - }, - "Resources":{ - "type":"structure", - "members":{ - "position":{"shape":"String"}, - "items":{ - "shape":"ListOfResource", - "locationName":"item" - } - } - }, - "RestApi":{ - "type":"structure", - "members":{ - "id":{"shape":"String"}, - "name":{"shape":"String"}, - "description":{"shape":"String"}, - "createdDate":{"shape":"Timestamp"}, - "warnings":{"shape":"ListOfString"} - } - }, - "RestApis":{ - "type":"structure", - "members":{ - "position":{"shape":"String"}, - "items":{ - "shape":"ListOfRestApi", - "locationName":"item" - } - } - }, - "SdkResponse":{ - "type":"structure", - "members":{ - "contentType":{ - "shape":"String", - "location":"header", - "locationName":"Content-Type" - }, - "contentDisposition":{ - "shape":"String", - "location":"header", - "locationName":"Content-Disposition" - }, - "body":{"shape":"Blob"} - }, - "payload":"body" - }, - "ServiceUnavailableException":{ - "type":"structure", - "members":{ - "retryAfterSeconds":{ - "shape":"String", - "location":"header", - "locationName":"Retry-After" - }, - "message":{"shape":"String"} - }, - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - "Stage":{ - "type":"structure", - "members":{ - "deploymentId":{"shape":"String"}, - "clientCertificateId":{"shape":"String"}, - "stageName":{"shape":"String"}, - "description":{"shape":"String"}, - "cacheClusterEnabled":{"shape":"Boolean"}, - "cacheClusterSize":{"shape":"CacheClusterSize"}, - "cacheClusterStatus":{"shape":"CacheClusterStatus"}, - "methodSettings":{"shape":"MapOfMethodSettings"}, - "variables":{"shape":"MapOfStringToString"}, - "createdDate":{"shape":"Timestamp"}, - "lastUpdatedDate":{"shape":"Timestamp"} - } - }, - "StageKey":{ - "type":"structure", - "members":{ - "restApiId":{"shape":"String"}, - "stageName":{"shape":"String"} - } - }, - "Stages":{ - "type":"structure", - "members":{ - "item":{"shape":"ListOfStage"} - } - }, - "StatusCode":{ - "type":"string", - "pattern":"[1-5]\\d\\d" - }, - "String":{"type":"string"}, - "Template":{ - "type":"structure", - "members":{ - "value":{"shape":"String"} - } - }, - "TestInvokeAuthorizerRequest":{ - "type":"structure", - "required":[ - "restApiId", - "authorizerId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "authorizerId":{ - "shape":"String", - "location":"uri", - "locationName":"authorizer_id" - }, - "headers":{"shape":"MapOfHeaderValues"}, - "pathWithQueryString":{"shape":"String"}, - "body":{"shape":"String"}, - "stageVariables":{"shape":"MapOfStringToString"}, - "additionalContext":{"shape":"MapOfStringToString"} - } - }, - "TestInvokeAuthorizerResponse":{ - "type":"structure", - "members":{ - "clientStatus":{"shape":"Integer"}, - "log":{"shape":"String"}, - "latency":{"shape":"Long"}, - "principalId":{"shape":"String"}, - "policy":{"shape":"String"}, - "authorization":{"shape":"MapOfStringToList"} - } - }, - "TestInvokeMethodRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "pathWithQueryString":{"shape":"String"}, - "body":{"shape":"String"}, - "headers":{"shape":"MapOfHeaderValues"}, - "clientCertificateId":{"shape":"String"}, - "stageVariables":{"shape":"MapOfStringToString"} - } - }, - "TestInvokeMethodResponse":{ - "type":"structure", - "members":{ - "status":{"shape":"Integer"}, - "body":{"shape":"String"}, - "headers":{"shape":"MapOfHeaderValues"}, - "log":{"shape":"String"}, - "latency":{"shape":"Long"} - } - }, - "ThrottleSettings":{ - "type":"structure", - "members":{ - "burstLimit":{"shape":"Integer"}, - "rateLimit":{"shape":"Double"} - } - }, - "Timestamp":{"type":"timestamp"}, - "TooManyRequestsException":{ - "type":"structure", - "members":{ - "retryAfterSeconds":{ - "shape":"String", - "location":"header", - "locationName":"Retry-After" - }, - "message":{"shape":"String"} - }, - "error":{"httpStatusCode":429}, - "exception":true - }, - "UnauthorizedCacheControlHeaderStrategy":{ - "type":"string", - "enum":[ - "FAIL_WITH_403", - "SUCCEED_WITH_RESPONSE_HEADER", - "SUCCEED_WITHOUT_RESPONSE_HEADER" - ] - }, - "UnauthorizedException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "error":{"httpStatusCode":401}, - "exception":true - }, - "UpdateAccountRequest":{ - "type":"structure", - "members":{ - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateApiKeyRequest":{ - "type":"structure", - "required":["apiKey"], - "members":{ - "apiKey":{ - "shape":"String", - "location":"uri", - "locationName":"api_Key" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateAuthorizerRequest":{ - "type":"structure", - "required":[ - "restApiId", - "authorizerId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "authorizerId":{ - "shape":"String", - "location":"uri", - "locationName":"authorizer_id" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateBasePathMappingRequest":{ - "type":"structure", - "required":[ - "domainName", - "basePath" - ], - "members":{ - "domainName":{ - "shape":"String", - "location":"uri", - "locationName":"domain_name" - }, - "basePath":{ - "shape":"String", - "location":"uri", - "locationName":"base_path" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateClientCertificateRequest":{ - "type":"structure", - "required":["clientCertificateId"], - "members":{ - "clientCertificateId":{ - "shape":"String", - "location":"uri", - "locationName":"clientcertificate_id" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateDeploymentRequest":{ - "type":"structure", - "required":[ - "restApiId", - "deploymentId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "deploymentId":{ - "shape":"String", - "location":"uri", - "locationName":"deployment_id" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateDomainNameRequest":{ - "type":"structure", - "required":["domainName"], - "members":{ - "domainName":{ - "shape":"String", - "location":"uri", - "locationName":"domain_name" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateIntegrationRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateIntegrationResponseRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod", - "statusCode" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "statusCode":{ - "shape":"StatusCode", - "location":"uri", - "locationName":"status_code" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateMethodRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateMethodResponseRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId", - "httpMethod", - "statusCode" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "httpMethod":{ - "shape":"String", - "location":"uri", - "locationName":"http_method" - }, - "statusCode":{ - "shape":"StatusCode", - "location":"uri", - "locationName":"status_code" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateModelRequest":{ - "type":"structure", - "required":[ - "restApiId", - "modelName" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "modelName":{ - "shape":"String", - "location":"uri", - "locationName":"model_name" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateResourceRequest":{ - "type":"structure", - "required":[ - "restApiId", - "resourceId" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "resourceId":{ - "shape":"String", - "location":"uri", - "locationName":"resource_id" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateRestApiRequest":{ - "type":"structure", - "required":["restApiId"], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "UpdateStageRequest":{ - "type":"structure", - "required":[ - "restApiId", - "stageName" - ], - "members":{ - "restApiId":{ - "shape":"String", - "location":"uri", - "locationName":"restapi_id" - }, - "stageName":{ - "shape":"String", - "location":"uri", - "locationName":"stage_name" - }, - "patchOperations":{"shape":"ListOfPatchOperation"} - } - }, - "op":{ - "type":"string", - "enum":[ - "add", - "remove", - "replace", - "move", - "copy", - "test" - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/docs-2.json deleted file mode 100644 index 41e2dbd50..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/docs-2.json +++ /dev/null @@ -1,1315 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon API Gateway

    Amazon API Gateway helps developers deliver robust, secure and scalable mobile and web application backends. Amazon API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.

    ", - "operations": { - "CreateApiKey": "

    Create an ApiKey resource.

    ", - "CreateAuthorizer": "

    Adds a new Authorizer resource to an existing RestApi resource.

    ", - "CreateBasePathMapping": "

    Creates a new BasePathMapping resource.

    ", - "CreateDeployment": "

    Creates a Deployment resource, which makes a specified RestApi callable over the internet.

    ", - "CreateDomainName": "

    Creates a new domain name.

    ", - "CreateModel": "

    Adds a new Model resource to an existing RestApi resource.

    ", - "CreateResource": "

    Creates a Resource resource.

    ", - "CreateRestApi": "

    Creates a new RestApi resource.

    ", - "CreateStage": "

    Creates a new Stage resource that references a pre-existing Deployment for the API.

    ", - "DeleteApiKey": "

    Deletes the ApiKey resource.

    ", - "DeleteAuthorizer": "

    Deletes an existing Authorizer resource.

    ", - "DeleteBasePathMapping": "

    Deletes the BasePathMapping resource.

    ", - "DeleteClientCertificate": "

    Deletes the ClientCertificate resource.

    ", - "DeleteDeployment": "

    Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.

    ", - "DeleteDomainName": "

    Deletes the DomainName resource.

    ", - "DeleteIntegration": "

    Represents a delete integration.

    ", - "DeleteIntegrationResponse": "

    Represents a delete integration response.

    ", - "DeleteMethod": "

    Deletes an existing Method resource.

    ", - "DeleteMethodResponse": "

    Deletes an existing MethodResponse resource.

    ", - "DeleteModel": "

    Deletes a model.

    ", - "DeleteResource": "

    Deletes a Resource resource.

    ", - "DeleteRestApi": "

    Deletes the specified API.

    ", - "DeleteStage": "

    Deletes a Stage resource.

    ", - "FlushStageAuthorizersCache": "

    Flushes all authorizer cache entries on a stage.

    ", - "FlushStageCache": "

    Flushes a stage's cache.

    ", - "GenerateClientCertificate": "

    Generates a ClientCertificate resource.

    ", - "GetAccount": "

    Gets information about the current Account resource.

    ", - "GetApiKey": "

    Gets information about the current ApiKey resource.

    ", - "GetApiKeys": "

    Gets information about the current ApiKeys resource.

    ", - "GetAuthorizer": "

    Describe an existing Authorizer resource.

    ", - "GetAuthorizers": "

    Describe an existing Authorizers resource.

    ", - "GetBasePathMapping": "

    Describe a BasePathMapping resource.

    ", - "GetBasePathMappings": "

    Represents a collection of BasePathMapping resources.

    ", - "GetClientCertificate": "

    Gets information about the current ClientCertificate resource.

    ", - "GetClientCertificates": "

    Gets a collection of ClientCertificate resources.

    ", - "GetDeployment": "

    Gets information about a Deployment resource.

    ", - "GetDeployments": "

    Gets information about a Deployments collection.

    ", - "GetDomainName": "

    Represents a domain name that is contained in a simpler, more intuitive URL that can be called.

    ", - "GetDomainNames": "

    Represents a collection of DomainName resources.

    ", - "GetExport": "

    Exports a deployed version of a RestApi in a specified format.

    ", - "GetIntegration": "

    Represents a get integration.

    ", - "GetIntegrationResponse": "

    Represents a get integration response.

    ", - "GetMethod": "

    Describe an existing Method resource.

    ", - "GetMethodResponse": "

    Describes a MethodResponse resource.

    ", - "GetModel": "

    Describes an existing model defined for a RestApi resource.

    ", - "GetModelTemplate": "

    Generates a sample mapping template that can be used to transform a payload into the structure of a model.

    ", - "GetModels": "

    Describes existing Models defined for a RestApi resource.

    ", - "GetResource": "

    Lists information about a resource.

    ", - "GetResources": "

    Lists information about a collection of Resource resources.

    ", - "GetRestApi": "

    Lists the RestApi resource in the collection.

    ", - "GetRestApis": "

    Lists the RestApis resources for your collection.

    ", - "GetSdk": "

    Generates a client SDK for a RestApi and Stage.

    ", - "GetStage": "

    Gets information about a Stage resource.

    ", - "GetStages": "

    Gets information about one or more Stage resources.

    ", - "ImportRestApi": "

    A feature of the Amazon API Gateway control service for creating a new API from an external API definition file.

    ", - "PutIntegration": "

    Represents a put integration.

    ", - "PutIntegrationResponse": "

    Represents a put integration.

    ", - "PutMethod": "

    Add a method to an existing Resource resource.

    ", - "PutMethodResponse": "

    Adds a MethodResponse to an existing Method resource.

    ", - "PutRestApi": "

    A feature of the Amazon API Gateway control service for updating an existing API with an input of external API definitions. The update can take the form of merging the supplied definition into the existing API or overwriting the existing API.

    ", - "TestInvokeAuthorizer": "

    Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.

    ", - "TestInvokeMethod": "

    Simulate the execution of a Method in your RestApi with headers, parameters, and an incoming request body.

    ", - "UpdateAccount": "

    Changes information about the current Account resource.

    ", - "UpdateApiKey": "

    Changes information about an ApiKey resource.

    ", - "UpdateAuthorizer": "

    Updates an existing Authorizer resource.

    ", - "UpdateBasePathMapping": "

    Changes information about the BasePathMapping resource.

    ", - "UpdateClientCertificate": "

    Changes information about an ClientCertificate resource.

    ", - "UpdateDeployment": "

    Changes information about a Deployment resource.

    ", - "UpdateDomainName": "

    Changes information about the DomainName resource.

    ", - "UpdateIntegration": "

    Represents an update integration.

    ", - "UpdateIntegrationResponse": "

    Represents an update integration response.

    ", - "UpdateMethod": "

    Updates an existing Method resource.

    ", - "UpdateMethodResponse": "

    Updates an existing MethodResponse resource.

    ", - "UpdateModel": "

    Changes information about a model.

    ", - "UpdateResource": "

    Changes information about a Resource resource.

    ", - "UpdateRestApi": "

    Changes information about the specified API.

    ", - "UpdateStage": "

    Changes information about a Stage resource.

    " - }, - "shapes": { - "Account": { - "base": "

    Represents an AWS account that is associated with Amazon API Gateway.

    ", - "refs": { - } - }, - "ApiKey": { - "base": "

    A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.

    ", - "refs": { - "ListOfApiKey$member": null - } - }, - "ApiKeys": { - "base": "

    Represents a collection of ApiKey resources.

    ", - "refs": { - } - }, - "Authorizer": { - "base": "

    Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.

    ", - "refs": { - "ListOfAuthorizer$member": null - } - }, - "AuthorizerType": { - "base": "

    The authorizer type. Only current value is TOKEN.

    ", - "refs": { - "Authorizer$type": "

    [Required] The type of the authorizer. Currently, the only valid type is TOKEN.

    ", - "CreateAuthorizerRequest$type": "

    [Required] The type of the authorizer.

    " - } - }, - "Authorizers": { - "base": "

    Represents a collection of Authorizer resources.

    ", - "refs": { - } - }, - "BadRequestException": { - "base": null, - "refs": { - } - }, - "BasePathMapping": { - "base": "

    Represents the base path that callers of the API that must provide as part of the URL after the domain name.

    ", - "refs": { - "ListOfBasePathMapping$member": null - } - }, - "BasePathMappings": { - "base": "

    Represents a collection of BasePathMapping resources.

    ", - "refs": { - } - }, - "Blob": { - "base": null, - "refs": { - "ExportResponse$body": "

    The binary blob response to GetExport, which contains the export.

    ", - "ImportRestApiRequest$body": "

    The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported.

    ", - "PutRestApiRequest$body": "

    The PUT request body containing external API definitions. Currently, only Swagger definition JSON files are supported.

    ", - "SdkResponse$body": "

    The binary blob response to GetSdk, which contains the generated SDK.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "ApiKey$enabled": "

    Specifies whether the API Key can be used by callers.

    ", - "CreateApiKeyRequest$enabled": "

    Specifies whether the ApiKey can be used by callers.

    ", - "CreateStageRequest$cacheClusterEnabled": "

    Whether cache clustering is enabled for the stage.

    ", - "GetModelRequest$flatten": "

    Resolves all external model references and returns a flattened model schema.

    ", - "ImportRestApiRequest$failOnWarnings": "

    A query parameter to indicate whether to rollback the API creation (true) or not (false) when a warning is encountered. The default value is false.

    ", - "MethodSetting$metricsEnabled": "

    Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is /{method_setting_key}/metrics/enabled, and the value is a Boolean.

    ", - "MethodSetting$dataTraceEnabled": "

    Specifies the whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/dataTrace, and the value is a Boolean.

    ", - "MethodSetting$cachingEnabled": "

    Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. The PATCH path for this setting is /{method_setting_key}/caching/enabled, and the value is a Boolean.

    ", - "MethodSetting$cacheDataEncrypted": "

    Specifies whether the cached responses are encrypted. The PATCH path for this setting is /{method_setting_key}/caching/dataEncrypted, and the value is a Boolean.

    ", - "MethodSetting$requireAuthorizationForCacheControl": "

    Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl, and the value is a Boolean.

    ", - "MethodSnapshot$apiKeyRequired": "

    Specifies whether the method requires a valid ApiKey.

    ", - "PutMethodRequest$apiKeyRequired": "

    Specifies whether the method required a valid ApiKey.

    ", - "PutRestApiRequest$failOnWarnings": "

    A query parameter to indicate whether to rollback the API update (true) or not (false) when a warning is encountered. The default value is false.

    ", - "Stage$cacheClusterEnabled": "

    Specifies whether a cache cluster is enabled for the stage.

    " - } - }, - "CacheClusterSize": { - "base": "

    Returns the size of the CacheCluster.

    ", - "refs": { - "CreateDeploymentRequest$cacheClusterSize": "

    Specifies the cache cluster size for the Stage resource specified in the input, if a cache cluster is enabled.

    ", - "CreateStageRequest$cacheClusterSize": "

    The stage's cache cluster size.

    ", - "Stage$cacheClusterSize": "

    The size of the cache cluster for the stage, if enabled.

    " - } - }, - "CacheClusterStatus": { - "base": "

    Returns the status of the CacheCluster.

    ", - "refs": { - "Stage$cacheClusterStatus": "

    The status of the cache cluster for the stage, if enabled.

    " - } - }, - "ClientCertificate": { - "base": "

    Represents a Client Certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.

    ", - "refs": { - "ListOfClientCertificate$member": null - } - }, - "ClientCertificates": { - "base": "

    Represents a collection of ClientCertificate resources.

    ", - "refs": { - } - }, - "ConflictException": { - "base": null, - "refs": { - } - }, - "CreateApiKeyRequest": { - "base": "

    Request to create an ApiKey resource.

    ", - "refs": { - } - }, - "CreateAuthorizerRequest": { - "base": "

    Request to add a new Authorizer to an existing RestApi resource.

    ", - "refs": { - } - }, - "CreateBasePathMappingRequest": { - "base": "

    Requests Amazon API Gateway to create a new BasePathMapping resource.

    ", - "refs": { - } - }, - "CreateDeploymentRequest": { - "base": "

    Requests Amazon API Gateway to create a Deployment resource.

    ", - "refs": { - } - }, - "CreateDomainNameRequest": { - "base": "

    A request to create a new domain name.

    ", - "refs": { - } - }, - "CreateModelRequest": { - "base": "

    Request to add a new Model to an existing RestApi resource.

    ", - "refs": { - } - }, - "CreateResourceRequest": { - "base": "

    Requests Amazon API Gateway to create a Resource resource.

    ", - "refs": { - } - }, - "CreateRestApiRequest": { - "base": "

    The POST Request to add a new RestApi resource to your collection.

    ", - "refs": { - } - }, - "CreateStageRequest": { - "base": "

    Requests Amazon API Gateway to create a Stage resource.

    ", - "refs": { - } - }, - "DeleteApiKeyRequest": { - "base": "

    A request to delete the ApiKey resource.

    ", - "refs": { - } - }, - "DeleteAuthorizerRequest": { - "base": "

    Request to delete an existing Authorizer resource.

    ", - "refs": { - } - }, - "DeleteBasePathMappingRequest": { - "base": "

    A request to delete the BasePathMapping resource.

    ", - "refs": { - } - }, - "DeleteClientCertificateRequest": { - "base": "

    A request to delete the ClientCertificate resource.

    ", - "refs": { - } - }, - "DeleteDeploymentRequest": { - "base": "

    Requests Amazon API Gateway to delete a Deployment resource.

    ", - "refs": { - } - }, - "DeleteDomainNameRequest": { - "base": "

    A request to delete the DomainName resource.

    ", - "refs": { - } - }, - "DeleteIntegrationRequest": { - "base": "

    Represents a delete integration request.

    ", - "refs": { - } - }, - "DeleteIntegrationResponseRequest": { - "base": "

    Represents a delete integration response request.

    ", - "refs": { - } - }, - "DeleteMethodRequest": { - "base": "

    Request to delete an existing Method resource.

    ", - "refs": { - } - }, - "DeleteMethodResponseRequest": { - "base": "

    A request to delete an existing MethodResponse resource.

    ", - "refs": { - } - }, - "DeleteModelRequest": { - "base": "

    Request to delete an existing model in an existing RestApi resource.

    ", - "refs": { - } - }, - "DeleteResourceRequest": { - "base": "

    Request to delete a Resource.

    ", - "refs": { - } - }, - "DeleteRestApiRequest": { - "base": "

    Request to delete the specified API from your collection.

    ", - "refs": { - } - }, - "DeleteStageRequest": { - "base": "

    Requests Amazon API Gateway to delete a Stage resource.

    ", - "refs": { - } - }, - "Deployment": { - "base": "

    An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.

    ", - "refs": { - "ListOfDeployment$member": null - } - }, - "Deployments": { - "base": "

    Represents a collection resource that contains zero or more references to your existing deployments, and links that guide you on ways to interact with your collection. The collection offers a paginated view of the contained deployments.

    ", - "refs": { - } - }, - "DomainName": { - "base": "

    Represents a domain name that is contained in a simpler, more intuitive URL that can be called.

    ", - "refs": { - "ListOfDomainName$member": null - } - }, - "DomainNames": { - "base": "

    Represents a collection of DomainName resources.

    ", - "refs": { - } - }, - "Double": { - "base": null, - "refs": { - "MethodSetting$throttlingRateLimit": "

    Specifies the throttling rate limit. The PATCH path for this setting is /{method_setting_key}/throttling/rateLimit, and the value is a double.

    ", - "ThrottleSettings$rateLimit": "

    Returns the rateLimit when ThrottleSettings is called.

    " - } - }, - "ExportResponse": { - "base": "

    The binary blob response to GetExport, which contains the generated SDK.

    ", - "refs": { - } - }, - "FlushStageAuthorizersCacheRequest": { - "base": "

    Request to flush authorizer cache entries on a specified stage.

    ", - "refs": { - } - }, - "FlushStageCacheRequest": { - "base": "

    Requests Amazon API Gateway to flush a stage's cache.

    ", - "refs": { - } - }, - "GenerateClientCertificateRequest": { - "base": "

    A request to generate a ClientCertificate resource.

    ", - "refs": { - } - }, - "GetAccountRequest": { - "base": "

    Requests Amazon API Gateway to get information about the current Account resource.

    ", - "refs": { - } - }, - "GetApiKeyRequest": { - "base": "

    A request to get information about the current ApiKey resource.

    ", - "refs": { - } - }, - "GetApiKeysRequest": { - "base": "

    A request to get information about the current ApiKeys resource.

    ", - "refs": { - } - }, - "GetAuthorizerRequest": { - "base": "

    Request to describe an existing Authorizer resource.

    ", - "refs": { - } - }, - "GetAuthorizersRequest": { - "base": "

    Request to describe an existing Authorizers resource.

    ", - "refs": { - } - }, - "GetBasePathMappingRequest": { - "base": "

    Request to describe a BasePathMapping resource.

    ", - "refs": { - } - }, - "GetBasePathMappingsRequest": { - "base": "

    A request to get information about a collection of BasePathMapping resources.

    ", - "refs": { - } - }, - "GetClientCertificateRequest": { - "base": "

    A request to get information about the current ClientCertificate resource.

    ", - "refs": { - } - }, - "GetClientCertificatesRequest": { - "base": "

    A request to get information about a collection of ClientCertificate resources.

    ", - "refs": { - } - }, - "GetDeploymentRequest": { - "base": "

    Requests Amazon API Gateway to get information about a Deployment resource.

    ", - "refs": { - } - }, - "GetDeploymentsRequest": { - "base": "

    Requests Amazon API Gateway to get information about a Deployments collection.

    ", - "refs": { - } - }, - "GetDomainNameRequest": { - "base": "

    Request to get the name of a DomainName resource.

    ", - "refs": { - } - }, - "GetDomainNamesRequest": { - "base": "

    Request to describe a collection of DomainName resources.

    ", - "refs": { - } - }, - "GetExportRequest": { - "base": "

    Request a new export of a RestApi for a particular Stage.

    ", - "refs": { - } - }, - "GetIntegrationRequest": { - "base": "

    Represents a get integration request.

    ", - "refs": { - } - }, - "GetIntegrationResponseRequest": { - "base": "

    Represents a get integration response request.

    ", - "refs": { - } - }, - "GetMethodRequest": { - "base": "

    Request to describe an existing Method resource.

    ", - "refs": { - } - }, - "GetMethodResponseRequest": { - "base": "

    Request to describe a MethodResponse resource.

    ", - "refs": { - } - }, - "GetModelRequest": { - "base": "

    Request to list information about a model in an existing RestApi resource.

    ", - "refs": { - } - }, - "GetModelTemplateRequest": { - "base": "

    Request to generate a sample mapping template used to transform the payload.

    ", - "refs": { - } - }, - "GetModelsRequest": { - "base": "

    Request to list existing Models defined for a RestApi resource.

    ", - "refs": { - } - }, - "GetResourceRequest": { - "base": "

    Request to list information about a resource.

    ", - "refs": { - } - }, - "GetResourcesRequest": { - "base": "

    Request to list information about a collection of resources.

    ", - "refs": { - } - }, - "GetRestApiRequest": { - "base": "

    The GET request to list an existing RestApi defined for your collection.

    ", - "refs": { - } - }, - "GetRestApisRequest": { - "base": "

    The GET request to list existing RestApis defined for your collection.

    ", - "refs": { - } - }, - "GetSdkRequest": { - "base": "

    Request a new generated client SDK for a RestApi and Stage.

    ", - "refs": { - } - }, - "GetStageRequest": { - "base": "

    Requests Amazon API Gateway to get information about a Stage resource.

    ", - "refs": { - } - }, - "GetStagesRequest": { - "base": "

    Requests Amazon API Gateway to get information about one or more Stage resources.

    ", - "refs": { - } - }, - "ImportRestApiRequest": { - "base": "

    A POST request to import an API to Amazon API Gateway using an input of an API definition file.

    ", - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "MethodSetting$throttlingBurstLimit": "

    Specifies the throttling burst limit. The PATCH path for this setting is /{method_setting_key}/throttling/burstLimit, and the value is an integer.

    ", - "MethodSetting$cacheTtlInSeconds": "

    Specifies the time to live (TTL) in seconds, for cached responses. The higher a the TTL, the longer the response will be cached. The PATCH path for this setting is /{method_setting_key}/caching/ttlInSeconds, and the value is an integer.

    ", - "TestInvokeAuthorizerResponse$clientStatus": "

    The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.

    ", - "TestInvokeMethodResponse$status": "

    The HTTP status code.

    ", - "ThrottleSettings$burstLimit": "

    Returns the burstLimit when ThrottleSettings is called.

    " - } - }, - "Integration": { - "base": "

    Represents a HTTP, AWS, or Mock integration.

    ", - "refs": { - "Method$methodIntegration": "

    The method's integration.

    " - } - }, - "IntegrationResponse": { - "base": "

    Represents an integration response. The status code must map to an existing MethodResponse, and parameters and templates can be used to transform the backend response.

    ", - "refs": { - "MapOfIntegrationResponse$value": null - } - }, - "IntegrationType": { - "base": "

    The integration type. The valid value is HTTP, AWS, or MOCK.

    ", - "refs": { - "Integration$type": "

    Specifies the integration's type. The valid value is HTTP, AWS, or MOCK.

    ", - "PutIntegrationRequest$type": "

    Specifies a put integration input's type.

    " - } - }, - "LimitExceededException": { - "base": null, - "refs": { - } - }, - "ListOfApiKey": { - "base": null, - "refs": { - "ApiKeys$items": "

    The current page of any ApiKey resources in the collection of ApiKey resources.

    " - } - }, - "ListOfAuthorizer": { - "base": null, - "refs": { - "Authorizers$items": "

    Gets the current list of Authorizer resources in the collection.

    " - } - }, - "ListOfBasePathMapping": { - "base": null, - "refs": { - "BasePathMappings$items": "

    The current page of any BasePathMapping resources in the collection of base path mapping resources.

    " - } - }, - "ListOfClientCertificate": { - "base": null, - "refs": { - "ClientCertificates$items": "

    The current page of any ClientCertificate resources in the collection of ClientCertificate resources.

    " - } - }, - "ListOfDeployment": { - "base": null, - "refs": { - "Deployments$items": "

    The current page of any Deployment resources in the collection of deployment resources.

    " - } - }, - "ListOfDomainName": { - "base": null, - "refs": { - "DomainNames$items": "

    The current page of any DomainName resources in the collection of DomainName resources.

    " - } - }, - "ListOfModel": { - "base": null, - "refs": { - "Models$items": "

    Gets the current Model resource in the collection.

    " - } - }, - "ListOfPatchOperation": { - "base": "A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.", - "refs": { - "UpdateAccountRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateApiKeyRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateAuthorizerRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateBasePathMappingRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateClientCertificateRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateDeploymentRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateDomainNameRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateIntegrationRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateIntegrationResponseRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateMethodRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateMethodResponseRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateModelRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateResourceRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateRestApiRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    ", - "UpdateStageRequest$patchOperations": "

    A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

    " - } - }, - "ListOfResource": { - "base": null, - "refs": { - "Resources$items": "

    Gets the current Resource resource in the collection.

    " - } - }, - "ListOfRestApi": { - "base": null, - "refs": { - "RestApis$items": "

    An array of links to the current page of RestApi resources.

    " - } - }, - "ListOfStage": { - "base": null, - "refs": { - "Stages$item": "

    An individual Stage resource.

    " - } - }, - "ListOfStageKeys": { - "base": null, - "refs": { - "CreateApiKeyRequest$stageKeys": "

    Specifies whether the ApiKey can be used by callers.

    " - } - }, - "ListOfString": { - "base": null, - "refs": { - "ApiKey$stageKeys": "

    A list of Stage resources that are associated with the ApiKey resource.

    ", - "Integration$cacheKeyParameters": "

    Specifies the integration's cache key parameters.

    ", - "MapOfStringToList$value": null, - "PutIntegrationRequest$cacheKeyParameters": "

    Specifies a put integration input's cache key parameters.

    ", - "RestApi$warnings": null - } - }, - "Long": { - "base": null, - "refs": { - "TestInvokeAuthorizerResponse$latency": "

    The execution latency of the test authorizer request

    ", - "TestInvokeMethodResponse$latency": "

    The execution latency of the test invoke request.

    " - } - }, - "MapOfHeaderValues": { - "base": null, - "refs": { - "TestInvokeAuthorizerRequest$headers": "

    [Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.

    ", - "TestInvokeMethodRequest$headers": "

    A key-value map of headers to simulate an incoming invocation request.

    ", - "TestInvokeMethodResponse$headers": "

    The headers of HTTP response.

    " - } - }, - "MapOfIntegrationResponse": { - "base": null, - "refs": { - "Integration$integrationResponses": "

    Specifies the integration's responses.

    " - } - }, - "MapOfMethod": { - "base": null, - "refs": { - "Resource$resourceMethods": "

    Map of methods for this resource, which is included only if the request uses the embed query option.

    " - } - }, - "MapOfMethodResponse": { - "base": null, - "refs": { - "Method$methodResponses": "

    Represents available responses that can be sent to the caller. Method responses are represented as a key/value map, with an HTTP status code as the key and a MethodResponse as the value. The status codes are available for the Integration responses to map to.

    " - } - }, - "MapOfMethodSettings": { - "base": null, - "refs": { - "Stage$methodSettings": "

    A map that defines the method settings for a Stage resource. Keys are defined as {resource_path}/{http_method} for an individual method override, or \\*/\\* for the settings applied to all methods in the stage.

    " - } - }, - "MapOfMethodSnapshot": { - "base": null, - "refs": { - "PathToMapOfMethodSnapshot$value": null - } - }, - "MapOfStringToBoolean": { - "base": null, - "refs": { - "Method$requestParameters": "

    Represents request parameters that can be accepted by Amazon API Gateway. Request parameters are represented as a key/value map, with a source as the key and a Boolean flag as the value. The Boolean flag is used to specify whether the parameter is required. A source must match the pattern method.request.{location}.{name}, where location is either querystring, path, or header. name is a valid, unique parameter name. Sources specified here are available to the integration for mapping to integration request parameters or templates.

    ", - "MethodResponse$responseParameters": "

    Represents response parameters that can be sent back to the caller by Amazon API Gateway. Response parameters are represented as a key/value map, with a destination as the key and a boolean flag as the value, which is used to specify whether the parameter is required. A destination must match the pattern method.response.header.{name}, where name is a valid, unique header name. Destinations specified here are available to the integration for mapping from integration response parameters.

    ", - "PutMethodRequest$requestParameters": "

    Represents requests parameters that are sent with the backend request. Request parameters are represented as a key/value map, with a destination as the key and a source as the value. A source must match an existing method request parameter, or a static value. Static values must be enclosed with single quotes, and be pre-encoded based on their destination in the request. The destination must match the pattern integration.request.{location}.{name}, where location is either querystring, path, or header. name must be a valid, unique parameter name.

    ", - "PutMethodResponseRequest$responseParameters": "

    Represents response parameters that can be sent back to the caller by Amazon API Gateway. Response parameters are represented as a key/value map, with a destination as the key and a Boolean flag as the value. The Boolean flag is used to specify whether the parameter is required. A destination must match the pattern method.response.header.{name}, where name is a valid, unique header name. Destinations specified here are available to the integration for mapping from integration response parameters.

    " - } - }, - "MapOfStringToList": { - "base": null, - "refs": { - "TestInvokeAuthorizerResponse$authorization": null - } - }, - "MapOfStringToString": { - "base": null, - "refs": { - "CreateDeploymentRequest$variables": "

    A map that defines the stage variables for the Stage resource that is associated with the new deployment. Variable names can have alphanumeric characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

    ", - "CreateStageRequest$variables": "

    A map that defines the stage variables for the new Stage resource. Variable names can have alphanumeric characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

    ", - "GetExportRequest$parameters": "

    A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType 'swagger', any combination of the following parameters are supported: 'integrations' will export x-amazon-apigateway-integration extensions 'authorizers' will export x-amazon-apigateway-authorizer extensions 'postman' will export with Postman extensions, allowing for import to the Postman tool

    ", - "GetSdkRequest$parameters": "

    A key-value map of query string parameters that specify properties of the SDK, depending on the requested sdkType. For sdkType 'objectivec', a parameter named \"classPrefix\" is required. For sdkType 'android', parameters named \"groupId\", \"artifactId\", \"artifactVersion\", and \"invokerPackage\" are required.

    ", - "ImportRestApiRequest$parameters": "

    Custom header parameters as part of the request.

    ", - "Integration$requestParameters": "

    Represents requests parameters that are sent with the backend request. Request parameters are represented as a key/value map, with a destination as the key and a source as the value. A source must match an existing method request parameter, or a static value. Static values must be enclosed with single quotes, and be pre-encoded based on their destination in the request. The destination must match the pattern integration.request.{location}.{name}, where location is either querystring, path, or header. name must be a valid, unique parameter name.

    ", - "Integration$requestTemplates": "

    Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

    ", - "IntegrationResponse$responseParameters": "

    Represents response parameters that can be read from the backend response. Response parameters are represented as a key/value map, with a destination as the key and a source as the value. A destination must match an existing response parameter in the MethodResponse. The source can be a header from the backend response, or a static value. Static values are specified using enclosing single quotes, and backend response headers can be read using the pattern integration.response.header.{name}.

    ", - "IntegrationResponse$responseTemplates": "

    Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

    ", - "Method$requestModels": "

    Specifies the Model resources used for the request's content type. Request models are represented as a key/value map, with a content type as the key and a Model name as the value.

    ", - "MethodResponse$responseModels": "

    Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.

    ", - "PutIntegrationRequest$requestParameters": "

    Represents request parameters that are sent with the backend request. Request parameters are represented as a key/value map, with a destination as the key and a source as the value. A source must match an existing method request parameter, or a static value. Static values must be enclosed with single quotes, and be pre-encoded based on their destination in the request. The destination must match the pattern integration.request.{location}.{name}, where location is either querystring, path, or header. name must be a valid, unique parameter name.

    ", - "PutIntegrationRequest$requestTemplates": "

    Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

    ", - "PutIntegrationResponseRequest$responseParameters": "

    Represents response parameters that can be read from the backend response. Response parameters are represented as a key/value map, with a destination as the key and a source as the value. A destination must match an existing response parameter in the Method. The source can be a header from the backend response, or a static value. Static values are specified using enclosing single quotes, and backend response headers can be read using the pattern integration.response.header.{name}.

    ", - "PutIntegrationResponseRequest$responseTemplates": "

    Specifies a put integration response's templates.

    ", - "PutMethodRequest$requestModels": "

    Specifies the Model resources used for the request's content type. Request models are represented as a key/value map, with a content type as the key and a Model name as the value.

    ", - "PutMethodResponseRequest$responseModels": "

    Specifies the Model resources used for the response's content type. Response models are represented as a key/value map, with a content type as the key and a Model name as the value.

    ", - "PutRestApiRequest$parameters": "

    Custom headers supplied as part of the request.

    ", - "Stage$variables": "

    A map that defines the stage variables for a Stage resource. Variable names can have alphanumeric characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

    ", - "TestInvokeAuthorizerRequest$stageVariables": "

    A key-value map of stage variables to simulate an invocation on a deployed Stage.

    ", - "TestInvokeAuthorizerRequest$additionalContext": "

    [Optional] A key-value map of additional context variables.

    ", - "TestInvokeMethodRequest$stageVariables": "

    A key-value map of stage variables to simulate an invocation on a deployed Stage.

    " - } - }, - "Method": { - "base": "

    Represents a method.

    ", - "refs": { - "MapOfMethod$value": null - } - }, - "MethodResponse": { - "base": "

    Represents a method response. Amazon API Gateway sends back the status code to the caller as the HTTP status code. Parameters and models can be used to transform the response from the method's integration.

    ", - "refs": { - "MapOfMethodResponse$value": null - } - }, - "MethodSetting": { - "base": "

    Specifies the method setting properties.

    ", - "refs": { - "MapOfMethodSettings$value": null - } - }, - "MethodSnapshot": { - "base": "

    Represents a summary of a Method resource, given a particular date and time.

    ", - "refs": { - "MapOfMethodSnapshot$value": null - } - }, - "Model": { - "base": "

    Represents the structure of a request or response payload for a method.

    ", - "refs": { - "ListOfModel$member": null - } - }, - "Models": { - "base": "

    Represents a collection of Model resources.

    ", - "refs": { - } - }, - "NotFoundException": { - "base": null, - "refs": { - } - }, - "NullableBoolean": { - "base": null, - "refs": { - "CreateDeploymentRequest$cacheClusterEnabled": "

    Enables a cache cluster for the Stage resource specified in the input.

    ", - "MapOfStringToBoolean$value": null, - "Method$apiKeyRequired": "

    Specifies whether the method requires a valid ApiKey.

    " - } - }, - "NullableInteger": { - "base": null, - "refs": { - "Authorizer$authorizerResultTtlInSeconds": "

    The TTL in seconds of cached authorizer results. If greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.

    ", - "CreateAuthorizerRequest$authorizerResultTtlInSeconds": "

    The TTL of cached authorizer results.

    ", - "GetApiKeysRequest$limit": "

    The maximum number of ApiKeys to get information about.

    ", - "GetAuthorizersRequest$limit": "

    Limit the number of Authorizer resources in the response.

    ", - "GetBasePathMappingsRequest$limit": "

    The maximum number of BasePathMapping resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

    ", - "GetClientCertificatesRequest$limit": "

    The maximum number of ClientCertificate resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

    ", - "GetDeploymentsRequest$limit": "

    The maximum number of Deployment resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

    ", - "GetDomainNamesRequest$limit": "

    The maximum number of DomainName resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

    ", - "GetModelsRequest$limit": "

    The maximum number of models in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

    ", - "GetResourcesRequest$limit": "

    The maximum number of Resource resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

    ", - "GetRestApisRequest$limit": "

    The maximum number of RestApi resources in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.

    " - } - }, - "PatchOperation": { - "base": "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.", - "refs": { - "ListOfPatchOperation$member": null - } - }, - "PathToMapOfMethodSnapshot": { - "base": null, - "refs": { - "Deployment$apiSummary": "

    Gets a summary of the RestApi at the date and time that the deployment resource was created.

    " - } - }, - "PutIntegrationRequest": { - "base": "

    Represents a put integration request.

    ", - "refs": { - } - }, - "PutIntegrationResponseRequest": { - "base": "

    Represents a put integration response request.

    ", - "refs": { - } - }, - "PutMethodRequest": { - "base": "

    Request to add a method to an existing Resource resource.

    ", - "refs": { - } - }, - "PutMethodResponseRequest": { - "base": "

    Request to add a MethodResponse to an existing Method resource.

    ", - "refs": { - } - }, - "PutMode": { - "base": null, - "refs": { - "PutRestApiRequest$mode": "

    The mode query parameter to specify the update mode. Valid values are \"merge\" and \"overwrite\". By default, the update mode is \"merge\".

    " - } - }, - "PutRestApiRequest": { - "base": "

    A PUT request to update an existing API, with external API definitions specified as the request body.

    ", - "refs": { - } - }, - "Resource": { - "base": "

    Represents a resource.

    ", - "refs": { - "ListOfResource$member": null - } - }, - "Resources": { - "base": "

    Represents a collection of Resource resources.

    ", - "refs": { - } - }, - "RestApi": { - "base": "

    Represents a REST API.

    ", - "refs": { - "ListOfRestApi$member": null - } - }, - "RestApis": { - "base": "

    Contains references to your APIs and links that guide you in ways to interact with your collection. A collection offers a paginated view of your APIs.

    ", - "refs": { - } - }, - "SdkResponse": { - "base": "

    The binary blob response to GetSdk, which contains the generated SDK.

    ", - "refs": { - } - }, - "ServiceUnavailableException": { - "base": null, - "refs": { - } - }, - "Stage": { - "base": "

    Represents a unique identifier for a version of a deployed RestApi that is callable by users.

    ", - "refs": { - "ListOfStage$member": null - } - }, - "StageKey": { - "base": "

    A reference to a unique stage identified in the format {restApiId}/{stage}.

    ", - "refs": { - "ListOfStageKeys$member": null - } - }, - "Stages": { - "base": "

    A list of Stage resource that are associated with the ApiKey resource.

    ", - "refs": { - } - }, - "StatusCode": { - "base": "

    The status code.

    ", - "refs": { - "DeleteIntegrationResponseRequest$statusCode": "

    Specifies a delete integration response request's status code.

    ", - "DeleteMethodResponseRequest$statusCode": "

    The status code identifier for the MethodResponse resource.

    ", - "GetIntegrationResponseRequest$statusCode": "

    Specifies a get integration response request's status code.

    ", - "GetMethodResponseRequest$statusCode": "

    The status code identifier for the MethodResponse resource.

    ", - "IntegrationResponse$statusCode": "

    Specifies the status code that is used to map the integration response to an existing MethodResponse.

    ", - "MethodResponse$statusCode": "

    The method response's status code.

    ", - "PutIntegrationResponseRequest$statusCode": "

    Specifies the status code that is used to map the integration response to an existing MethodResponse.

    ", - "PutMethodResponseRequest$statusCode": "

    The method response's status code.

    ", - "UpdateIntegrationResponseRequest$statusCode": "

    Specifies an update integration response request's status code.

    ", - "UpdateMethodResponseRequest$statusCode": "

    The status code identifier for the MethodResponse resource.

    " - } - }, - "String": { - "base": null, - "refs": { - "Account$cloudwatchRoleArn": "

    Specifies the Amazon resource name (ARN) of an Amazon CloudWatch role for the current Account resource.

    ", - "ApiKey$id": "

    The identifier of the API Key.

    ", - "ApiKey$name": "

    The name of the API Key.

    ", - "ApiKey$description": "

    The description of the API Key.

    ", - "ApiKeys$position": null, - "Authorizer$id": "

    The identifier for the authorizer resource.

    ", - "Authorizer$name": "

    [Required] The name of the authorizer.

    ", - "Authorizer$authType": "

    Optional customer-defined field, used in Swagger imports/exports. Has no functional impact.

    ", - "Authorizer$authorizerUri": "

    [Required] Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN authorizers, this must be a well-formed Lambda function URI. The URI should be of the form arn:aws:apigateway:{region}:lambda:path/{service_api}. Region is used to determine the right endpoint. In this case, path is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations

    ", - "Authorizer$authorizerCredentials": "

    Specifies the credentials required for the authorizer, if any. Two options are available. To specify an IAM Role for Amazon API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.

    ", - "Authorizer$identitySource": "

    [Required] The source of the identity in an incoming request. For TOKEN authorizers, this value is a mapping expression with the same syntax as integration parameter mappings. The only valid source for tokens is 'header', so the expression should match 'method.request.header.[headerName]'. The value of the header '[headerName]' will be interpreted as the incoming token.

    ", - "Authorizer$identityValidationExpression": "

    A validation expression for the incoming identity. For TOKEN authorizers, this value should be a regular expression. The incoming token from the client is matched against this expression, and will proceed if the token matches. If the token doesn't match, the client receives a 401 Unauthorized response.

    ", - "Authorizers$position": null, - "BadRequestException$message": null, - "BasePathMapping$basePath": "

    The base path name that callers of the API must provide as part of the URL after the domain name.

    ", - "BasePathMapping$restApiId": "

    The name of the API.

    ", - "BasePathMapping$stage": "

    The name of the API's stage.

    ", - "BasePathMappings$position": null, - "ClientCertificate$clientCertificateId": "

    The identifier of the Client Certificate.

    ", - "ClientCertificate$description": "

    The description of the Client Certificate.

    ", - "ClientCertificate$pemEncodedCertificate": "

    The PEM-encoded public key of the Client Certificate, that can be used to configure certificate authentication in the integration endpoint .

    ", - "ClientCertificates$position": null, - "ConflictException$message": null, - "CreateApiKeyRequest$name": "

    The name of the ApiKey.

    ", - "CreateApiKeyRequest$description": "

    The description of the ApiKey.

    ", - "CreateAuthorizerRequest$restApiId": "

    The RestApi identifier under which the Authorizer will be created.

    ", - "CreateAuthorizerRequest$name": "

    [Required] The name of the authorizer.

    ", - "CreateAuthorizerRequest$authType": "

    Optional customer-defined field, used in Swagger imports/exports. Has no functional impact.

    ", - "CreateAuthorizerRequest$authorizerUri": "

    [Required] Specifies the authorizer's Uniform Resource Identifier (URI).

    ", - "CreateAuthorizerRequest$authorizerCredentials": "

    Specifies the credentials required for the authorizer, if any.

    ", - "CreateAuthorizerRequest$identitySource": "

    [Required] The source of the identity in an incoming request.

    ", - "CreateAuthorizerRequest$identityValidationExpression": "

    A validation expression for the incoming identity.

    ", - "CreateBasePathMappingRequest$domainName": "

    The domain name of the BasePathMapping resource to create.

    ", - "CreateBasePathMappingRequest$basePath": "

    The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Leave this blank if you do not want callers to specify a base path name after the domain name.

    ", - "CreateBasePathMappingRequest$restApiId": "

    The name of the API that you want to apply this mapping to.

    ", - "CreateBasePathMappingRequest$stage": "

    The name of the API's stage that you want to use for this mapping. Leave this blank if you do not want callers to explicitly specify the stage name after any base path name.

    ", - "CreateDeploymentRequest$restApiId": "

    The RestApi resource identifier for the Deployment resource to create.

    ", - "CreateDeploymentRequest$stageName": "

    The name of the Stage resource for the Deployment resource to create.

    ", - "CreateDeploymentRequest$stageDescription": "

    The description of the Stage resource for the Deployment resource to create.

    ", - "CreateDeploymentRequest$description": "

    The description for the Deployment resource to create.

    ", - "CreateDomainNameRequest$domainName": "

    The name of the DomainName resource.

    ", - "CreateDomainNameRequest$certificateName": "

    The name of the certificate.

    ", - "CreateDomainNameRequest$certificateBody": "

    The body of the server certificate provided by your certificate authority.

    ", - "CreateDomainNameRequest$certificatePrivateKey": "

    Your certificate's private key.

    ", - "CreateDomainNameRequest$certificateChain": "

    The intermediate certificates and optionally the root certificate, one after the other without any blank lines. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate authority. Do not include any intermediaries that are not in the chain of trust path.

    ", - "CreateModelRequest$restApiId": "

    The RestApi identifier under which the Model will be created.

    ", - "CreateModelRequest$name": "

    The name of the model.

    ", - "CreateModelRequest$description": "

    The description of the model.

    ", - "CreateModelRequest$schema": "

    The schema for the model. For application/json models, this should be JSON-schema draft v4 model.

    ", - "CreateModelRequest$contentType": "

    The content-type for the model.

    ", - "CreateResourceRequest$restApiId": "

    The identifier of the RestApi for the resource.

    ", - "CreateResourceRequest$parentId": "

    The parent resource's identifier.

    ", - "CreateResourceRequest$pathPart": "

    The last path segment for this resource.

    ", - "CreateRestApiRequest$name": "

    The name of the RestApi.

    ", - "CreateRestApiRequest$description": "

    The description of the RestApi.

    ", - "CreateRestApiRequest$cloneFrom": "

    The Id of the RestApi that you want to clone from.

    ", - "CreateStageRequest$restApiId": "

    The identifier of the RestApi resource for the Stage resource to create.

    ", - "CreateStageRequest$stageName": "

    The name for the Stage resource.

    ", - "CreateStageRequest$deploymentId": "

    The identifier of the Deployment resource for the Stage resource.

    ", - "CreateStageRequest$description": "

    The description of the Stage resource.

    ", - "DeleteApiKeyRequest$apiKey": "

    The identifier of the ApiKey resource to be deleted.

    ", - "DeleteAuthorizerRequest$restApiId": "

    The RestApi identifier for the Authorizer resource.

    ", - "DeleteAuthorizerRequest$authorizerId": "

    The identifier of the Authorizer resource.

    ", - "DeleteBasePathMappingRequest$domainName": "

    The domain name of the BasePathMapping resource to delete.

    ", - "DeleteBasePathMappingRequest$basePath": "

    The base path name of the BasePathMapping resource to delete.

    ", - "DeleteClientCertificateRequest$clientCertificateId": "

    The identifier of the ClientCertificate resource to be deleted.

    ", - "DeleteDeploymentRequest$restApiId": "

    The identifier of the RestApi resource for the Deployment resource to delete.

    ", - "DeleteDeploymentRequest$deploymentId": "

    The identifier of the Deployment resource to delete.

    ", - "DeleteDomainNameRequest$domainName": "

    The name of the DomainName resource to be deleted.

    ", - "DeleteIntegrationRequest$restApiId": "

    Specifies a delete integration request's API identifier.

    ", - "DeleteIntegrationRequest$resourceId": "

    Specifies a delete integration request's resource identifier.

    ", - "DeleteIntegrationRequest$httpMethod": "

    Specifies a delete integration request's HTTP method.

    ", - "DeleteIntegrationResponseRequest$restApiId": "

    Specifies a delete integration response request's API identifier.

    ", - "DeleteIntegrationResponseRequest$resourceId": "

    Specifies a delete integration response request's resource identifier.

    ", - "DeleteIntegrationResponseRequest$httpMethod": "

    Specifies a delete integration response request's HTTP method.

    ", - "DeleteMethodRequest$restApiId": "

    The RestApi identifier for the Method resource.

    ", - "DeleteMethodRequest$resourceId": "

    The Resource identifier for the Method resource.

    ", - "DeleteMethodRequest$httpMethod": "

    The HTTP verb that identifies the Method resource.

    ", - "DeleteMethodResponseRequest$restApiId": "

    The RestApi identifier for the MethodResponse resource.

    ", - "DeleteMethodResponseRequest$resourceId": "

    The Resource identifier for the MethodResponse resource.

    ", - "DeleteMethodResponseRequest$httpMethod": "

    The HTTP verb identifier for the parent Method resource.

    ", - "DeleteModelRequest$restApiId": "

    The RestApi under which the model will be deleted.

    ", - "DeleteModelRequest$modelName": "

    The name of the model to delete.

    ", - "DeleteResourceRequest$restApiId": "

    The RestApi identifier for the Resource resource.

    ", - "DeleteResourceRequest$resourceId": "

    The identifier of the Resource resource.

    ", - "DeleteRestApiRequest$restApiId": "

    The ID of the RestApi you want to delete.

    ", - "DeleteStageRequest$restApiId": "

    The identifier of the RestApi resource for the Stage resource to delete.

    ", - "DeleteStageRequest$stageName": "

    The name of the Stage resource to delete.

    ", - "Deployment$id": "

    The identifier for the deployment resource.

    ", - "Deployment$description": "

    The description for the deployment resource.

    ", - "Deployments$position": null, - "DomainName$domainName": "

    The name of the DomainName resource.

    ", - "DomainName$certificateName": "

    The name of the certificate.

    ", - "DomainName$distributionDomainName": "

    The domain name of the Amazon CloudFront distribution. For more information, see the Amazon CloudFront documentation.

    ", - "DomainNames$position": null, - "ExportResponse$contentType": "

    The content-type header value in the HTTP response. This will correspond to a valid 'accept' type in the request.

    ", - "ExportResponse$contentDisposition": "

    The content-disposition header value in the HTTP reseponse.

    ", - "FlushStageAuthorizersCacheRequest$restApiId": "

    The API identifier of the stage to flush.

    ", - "FlushStageAuthorizersCacheRequest$stageName": "

    The name of the stage to flush.

    ", - "FlushStageCacheRequest$restApiId": "

    The API identifier of the stage to flush its cache.

    ", - "FlushStageCacheRequest$stageName": "

    The name of the stage to flush its cache.

    ", - "GenerateClientCertificateRequest$description": "

    The description of the ClientCertificate.

    ", - "GetApiKeyRequest$apiKey": "

    The identifier of the ApiKey resource.

    ", - "GetApiKeysRequest$position": "

    The position of the current ApiKeys resource to get information about.

    ", - "GetAuthorizerRequest$restApiId": "

    The RestApi identifier for the Authorizer resource.

    ", - "GetAuthorizerRequest$authorizerId": "

    The identifier of the Authorizer resource.

    ", - "GetAuthorizersRequest$restApiId": "

    The RestApi identifier for the Authorizers resource.

    ", - "GetAuthorizersRequest$position": "

    If not all Authorizer resources in the response were present, the position will specificy where to start the next page of results.

    ", - "GetBasePathMappingRequest$domainName": "

    The domain name of the BasePathMapping resource to be described.

    ", - "GetBasePathMappingRequest$basePath": "

    The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Leave this blank if you do not want callers to specify any base path name after the domain name.

    ", - "GetBasePathMappingsRequest$domainName": "

    The domain name of a BasePathMapping resource.

    ", - "GetBasePathMappingsRequest$position": "

    The position of the current BasePathMapping resource in the collection to get information about.

    ", - "GetClientCertificateRequest$clientCertificateId": "

    The identifier of the ClientCertificate resource to be described.

    ", - "GetClientCertificatesRequest$position": "

    The position of the current ClientCertificate resource in the collection to get information about.

    ", - "GetDeploymentRequest$restApiId": "

    The identifier of the RestApi resource for the Deployment resource to get information about.

    ", - "GetDeploymentRequest$deploymentId": "

    The identifier of the Deployment resource to get information about.

    ", - "GetDeploymentsRequest$restApiId": "

    The identifier of the RestApi resource for the collection of Deployment resources to get information about.

    ", - "GetDeploymentsRequest$position": "

    The position of the current Deployment resource in the collection to get information about.

    ", - "GetDomainNameRequest$domainName": "

    The name of the DomainName resource.

    ", - "GetDomainNamesRequest$position": "

    The position of the current domain names to get information about.

    ", - "GetExportRequest$restApiId": "

    The identifier of the RestApi to be exported.

    ", - "GetExportRequest$stageName": "

    The name of the Stage that will be exported.

    ", - "GetExportRequest$exportType": "

    The type of export. Currently only 'swagger' is supported.

    ", - "GetExportRequest$accepts": "

    The content-type of the export, for example 'application/json'. Currently 'application/json' and 'application/yaml' are supported for exportType 'swagger'. Should be specifed in the 'Accept' header for direct API requests.

    ", - "GetIntegrationRequest$restApiId": "

    Specifies a get integration request's API identifier.

    ", - "GetIntegrationRequest$resourceId": "

    Specifies a get integration request's resource identifier

    ", - "GetIntegrationRequest$httpMethod": "

    Specifies a get integration request's HTTP method.

    ", - "GetIntegrationResponseRequest$restApiId": "

    Specifies a get integration response request's API identifier.

    ", - "GetIntegrationResponseRequest$resourceId": "

    Specifies a get integration response request's resource identifier.

    ", - "GetIntegrationResponseRequest$httpMethod": "

    Specifies a get integration response request's HTTP method.

    ", - "GetMethodRequest$restApiId": "

    The RestApi identifier for the Method resource.

    ", - "GetMethodRequest$resourceId": "

    The Resource identifier for the Method resource.

    ", - "GetMethodRequest$httpMethod": "

    Specifies the put method request's HTTP method type.

    ", - "GetMethodResponseRequest$restApiId": "

    The RestApi identifier for the MethodResponse resource.

    ", - "GetMethodResponseRequest$resourceId": "

    The Resource identifier for the MethodResponse resource.

    ", - "GetMethodResponseRequest$httpMethod": "

    The HTTP verb identifier for the parent Method resource.

    ", - "GetModelRequest$restApiId": "

    The RestApi identifier under which the Model exists.

    ", - "GetModelRequest$modelName": "

    The name of the model as an identifier.

    ", - "GetModelTemplateRequest$restApiId": "

    The ID of the RestApi under which the model exists.

    ", - "GetModelTemplateRequest$modelName": "

    The name of the model for which to generate a template.

    ", - "GetModelsRequest$restApiId": "

    The RestApi identifier.

    ", - "GetModelsRequest$position": "

    The position of the next set of results in the Models resource to get information about.

    ", - "GetResourceRequest$restApiId": "

    The RestApi identifier for the resource.

    ", - "GetResourceRequest$resourceId": "

    The identifier for the Resource resource.

    ", - "GetResourcesRequest$restApiId": "

    The RestApi identifier for the Resource.

    ", - "GetResourcesRequest$position": "

    The position of the next set of results in the current Resources resource to get information about.

    ", - "GetRestApiRequest$restApiId": "

    The identifier of the RestApi resource.

    ", - "GetRestApisRequest$position": "

    The position of the current RestApis resource in the collection to get information about.

    ", - "GetSdkRequest$restApiId": "

    The identifier of the RestApi that the SDK will use.

    ", - "GetSdkRequest$stageName": "

    The name of the Stage that the SDK will use.

    ", - "GetSdkRequest$sdkType": "

    The language for the generated SDK. Currently javascript, android, and objectivec (for iOS) are supported.

    ", - "GetStageRequest$restApiId": "

    The identifier of the RestApi resource for the Stage resource to get information about.

    ", - "GetStageRequest$stageName": "

    The name of the Stage resource to get information about.

    ", - "GetStagesRequest$restApiId": "

    The stages' API identifiers.

    ", - "GetStagesRequest$deploymentId": "

    The stages' deployment identifiers.

    ", - "Integration$httpMethod": "

    Specifies the integration's HTTP method type.

    ", - "Integration$uri": "

    Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification. For AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. Region, subdomain and service are used to determine the right endpoint. For AWS services that use the Action= query string parameter, service_api should be a valid action for the desired service. For RESTful AWS service APIs, path is used to indicate that the remaining substring in the URI should be treated as the path to the resource, including the initial /.

    ", - "Integration$credentials": "

    Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for Amazon API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\\*:user/\\*. To use resource-based permissions on supported AWS services, specify null.

    ", - "Integration$passthroughBehavior": "

    Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available requestTemplates defined on the Integration. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER.

    WHEN_NO_MATCH passes the request body for unmapped content types through to the Integration backend without transformation.

    NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media Type' response.

    WHEN_NO_TEMPLATES will allow pass-through when the Integration has NO content types mapped to templates. However if there is at least one content type defined, unmapped content types will be rejected with the same 415 response.

    ", - "Integration$cacheNamespace": "

    Specifies the integration's cache namespace.

    ", - "IntegrationResponse$selectionPattern": "

    Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the backend. If the backend is an AWS Lambda function, the AWS Lambda function error header is matched. For all other HTTP and AWS backends, the HTTP status code is matched.

    ", - "LimitExceededException$retryAfterSeconds": null, - "LimitExceededException$message": null, - "ListOfString$member": null, - "MapOfHeaderValues$key": null, - "MapOfHeaderValues$value": null, - "MapOfIntegrationResponse$key": null, - "MapOfMethod$key": null, - "MapOfMethodResponse$key": null, - "MapOfMethodSettings$key": null, - "MapOfMethodSnapshot$key": null, - "MapOfStringToBoolean$key": null, - "MapOfStringToList$key": null, - "MapOfStringToString$key": null, - "MapOfStringToString$value": null, - "Method$httpMethod": "

    The HTTP method.

    ", - "Method$authorizationType": "

    The method's authorization type.

    ", - "Method$authorizerId": "

    Specifies the identifier of an Authorizer to use on this Method. The authorizationType must be CUSTOM.

    ", - "MethodSetting$loggingLevel": "

    Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel, and the available levels are OFF, ERROR, and INFO.

    ", - "MethodSnapshot$authorizationType": "

    Specifies the type of authorization used for the method.

    ", - "Model$id": "

    The identifier for the model resource.

    ", - "Model$name": "

    The name of the model.

    ", - "Model$description": "

    The description of the model.

    ", - "Model$schema": "

    The schema for the model. For application/json models, this should be JSON-schema draft v4 model.

    ", - "Model$contentType": "

    The content-type for the model.

    ", - "Models$position": null, - "NotFoundException$message": null, - "PatchOperation$path": "

    Operation objects MUST have exactly one \"path\" member. That member's value is a string containing a `JSON-Pointer` value that references a location within the target document (the \"target location\") where the operation is performed.

    ", - "PatchOperation$value": "

    The actual value content.

    ", - "PatchOperation$from": "

    The \"move\" and \"copy\" operation object MUST contain a \"from\" member, which is a string containing a JSON Pointer value that references the location in the target document to move the value from.

    ", - "PathToMapOfMethodSnapshot$key": null, - "PutIntegrationRequest$restApiId": "

    Specifies a put integration request's API identifier.

    ", - "PutIntegrationRequest$resourceId": "

    Specifies a put integration request's resource ID.

    ", - "PutIntegrationRequest$httpMethod": "

    Specifies a put integration request's HTTP method.

    ", - "PutIntegrationRequest$integrationHttpMethod": "

    Specifies a put integration HTTP method. When the integration type is HTTP or AWS, this field is required.

    ", - "PutIntegrationRequest$uri": "

    Specifies a put integration input's Uniform Resource Identifier (URI). When the integration type is HTTP or AWS, this field is required. For integration with Lambda as an AWS service proxy, this value is of the 'arn:aws:apigateway:<region>:lambda:path/2015-03-31/functions/<functionArn>/invocations' format.

    ", - "PutIntegrationRequest$credentials": "

    Specifies whether credentials are required for a put integration.

    ", - "PutIntegrationRequest$passthroughBehavior": "

    Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available requestTemplates defined on the Integration. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER.

    WHEN_NO_MATCH passes the request body for unmapped content types through to the Integration backend without transformation.

    NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media Type' response.

    WHEN_NO_TEMPLATES will allow pass-through when the Integration has NO content types mapped to templates. However if there is at least one content type defined, unmapped content types will be rejected with the same 415 response.

    ", - "PutIntegrationRequest$cacheNamespace": "

    Specifies a put integration input's cache namespace.

    ", - "PutIntegrationResponseRequest$restApiId": "

    Specifies a put integration response request's API identifier.

    ", - "PutIntegrationResponseRequest$resourceId": "

    Specifies a put integration response request's resource identifier.

    ", - "PutIntegrationResponseRequest$httpMethod": "

    Specifies a put integration response request's HTTP method.

    ", - "PutIntegrationResponseRequest$selectionPattern": "

    Specifies the selection pattern of a put integration response.

    ", - "PutMethodRequest$restApiId": "

    The RestApi identifier for the new Method resource.

    ", - "PutMethodRequest$resourceId": "

    The Resource identifier for the new Method resource.

    ", - "PutMethodRequest$httpMethod": "

    Specifies the put method request's HTTP method type.

    ", - "PutMethodRequest$authorizationType": "

    Specifies the type of authorization used for the method.

    ", - "PutMethodRequest$authorizerId": "

    Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM.

    ", - "PutMethodResponseRequest$restApiId": "

    The RestApi identifier for the Method resource.

    ", - "PutMethodResponseRequest$resourceId": "

    The Resource identifier for the Method resource.

    ", - "PutMethodResponseRequest$httpMethod": "

    The HTTP verb that identifies the Method resource.

    ", - "PutRestApiRequest$restApiId": "

    The identifier of the RestApi to be updated.

    ", - "Resource$id": "

    The resource's identifier.

    ", - "Resource$parentId": "

    The parent resource's identifier.

    ", - "Resource$pathPart": "

    The last path segment for this resource.

    ", - "Resource$path": "

    The full path for this resource.

    ", - "Resources$position": null, - "RestApi$id": "

    The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.

    ", - "RestApi$name": "

    The API's name.

    ", - "RestApi$description": "

    The API's description.

    ", - "RestApis$position": null, - "SdkResponse$contentType": "

    The content-type header value in the HTTP response.

    ", - "SdkResponse$contentDisposition": "

    The content-disposition header value in the HTTP reseponse.

    ", - "ServiceUnavailableException$retryAfterSeconds": null, - "ServiceUnavailableException$message": null, - "Stage$deploymentId": "

    The identifier of the Deployment that the stage points to.

    ", - "Stage$clientCertificateId": null, - "Stage$stageName": "

    The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to Amazon API Gateway.

    ", - "Stage$description": "

    The stage's description.

    ", - "StageKey$restApiId": "

    A list of Stage resources that are associated with the ApiKey resource.

    ", - "StageKey$stageName": "

    The stage name in the RestApi that the stage key references.

    ", - "Template$value": "

    The Apache Velocity Template Language (VTL) template content used for the template resource.

    ", - "TestInvokeAuthorizerRequest$restApiId": "

    Specifies a test invoke authorizer request's RestApi identifier.

    ", - "TestInvokeAuthorizerRequest$authorizerId": "

    Specifies a test invoke authorizer request's Authorizer ID.

    ", - "TestInvokeAuthorizerRequest$pathWithQueryString": "

    [Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

    ", - "TestInvokeAuthorizerRequest$body": "

    [Optional] The simulated request body of an incoming invocation request.

    ", - "TestInvokeAuthorizerResponse$log": "

    The Amazon API Gateway execution log for the test authorizer request.

    ", - "TestInvokeAuthorizerResponse$principalId": "

    The principal identity returned by the Authorizer

    ", - "TestInvokeAuthorizerResponse$policy": "

    The policy JSON document returned by the Authorizer

    ", - "TestInvokeMethodRequest$restApiId": "

    Specifies a test invoke method request's API identifier.

    ", - "TestInvokeMethodRequest$resourceId": "

    Specifies a test invoke method request's resource ID.

    ", - "TestInvokeMethodRequest$httpMethod": "

    Specifies a test invoke method request's HTTP method.

    ", - "TestInvokeMethodRequest$pathWithQueryString": "

    The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

    ", - "TestInvokeMethodRequest$body": "

    The simulated request body of an incoming invocation request.

    ", - "TestInvokeMethodRequest$clientCertificateId": "

    A ClientCertificate identifier to use in the test invocation. API Gateway will use use the certificate when making the HTTPS request to the defined backend endpoint.

    ", - "TestInvokeMethodResponse$body": "

    The body of HTTP response.

    ", - "TestInvokeMethodResponse$log": "

    The Amazon API Gateway execution log for the test invoke request.

    ", - "TooManyRequestsException$retryAfterSeconds": null, - "TooManyRequestsException$message": null, - "UnauthorizedException$message": null, - "UpdateApiKeyRequest$apiKey": "

    The identifier of the ApiKey resource to be updated.

    ", - "UpdateAuthorizerRequest$restApiId": "

    The RestApi identifier for the Authorizer resource.

    ", - "UpdateAuthorizerRequest$authorizerId": "

    The identifier of the Authorizer resource.

    ", - "UpdateBasePathMappingRequest$domainName": "

    The domain name of the BasePathMapping resource to change.

    ", - "UpdateBasePathMappingRequest$basePath": "

    The base path of the BasePathMapping resource to change.

    ", - "UpdateClientCertificateRequest$clientCertificateId": "

    The identifier of the ClientCertificate resource to be updated.

    ", - "UpdateDeploymentRequest$restApiId": "

    The replacement identifier of the RestApi resource for the Deployment resource to change information about.

    ", - "UpdateDeploymentRequest$deploymentId": "

    The replacment identifier for the Deployment resource to change information about.

    ", - "UpdateDomainNameRequest$domainName": "

    The name of the DomainName resource to be changed.

    ", - "UpdateIntegrationRequest$restApiId": "

    Represents an update integration request's API identifier.

    ", - "UpdateIntegrationRequest$resourceId": "

    Represents an update integration request's resource identifier.

    ", - "UpdateIntegrationRequest$httpMethod": "

    Represents an update integration request's HTTP method.

    ", - "UpdateIntegrationResponseRequest$restApiId": "

    Specifies an update integration response request's API identifier.

    ", - "UpdateIntegrationResponseRequest$resourceId": "

    Specifies an update integration response request's resource identifier.

    ", - "UpdateIntegrationResponseRequest$httpMethod": "

    Specifies an update integration response request's HTTP method.

    ", - "UpdateMethodRequest$restApiId": "

    The RestApi identifier for the Method resource.

    ", - "UpdateMethodRequest$resourceId": "

    The Resource identifier for the Method resource.

    ", - "UpdateMethodRequest$httpMethod": "

    The HTTP verb that identifies the Method resource.

    ", - "UpdateMethodResponseRequest$restApiId": "

    The RestApi identifier for the MethodResponse resource.

    ", - "UpdateMethodResponseRequest$resourceId": "

    The Resource identifier for the MethodResponse resource.

    ", - "UpdateMethodResponseRequest$httpMethod": "

    The HTTP verb identifier for the parent Method resource.

    ", - "UpdateModelRequest$restApiId": "

    The RestApi identifier under which the model exists.

    ", - "UpdateModelRequest$modelName": "

    The name of the model to update.

    ", - "UpdateResourceRequest$restApiId": "

    The RestApi identifier for the Resource resource.

    ", - "UpdateResourceRequest$resourceId": "

    The identifier of the Resource resource.

    ", - "UpdateRestApiRequest$restApiId": "

    The ID of the RestApi you want to update.

    ", - "UpdateStageRequest$restApiId": "

    The identifier of the RestApi resource for the Stage resource to change information about.

    ", - "UpdateStageRequest$stageName": "

    The name of the Stage resource to change information about.

    " - } - }, - "Template": { - "base": "

    Represents a mapping template used to transform a payload.

    ", - "refs": { - } - }, - "TestInvokeAuthorizerRequest": { - "base": "

    Make a request to simulate the execution of an Authorizer.

    ", - "refs": { - } - }, - "TestInvokeAuthorizerResponse": { - "base": "

    Represents the response of the test invoke request in for a custom Authorizer

    ", - "refs": { - } - }, - "TestInvokeMethodRequest": { - "base": "

    Make a request to simulate the execution of a Method.

    ", - "refs": { - } - }, - "TestInvokeMethodResponse": { - "base": "

    Represents the response of the test invoke request in HTTP method.

    ", - "refs": { - } - }, - "ThrottleSettings": { - "base": "

    Returns the throttle settings.

    ", - "refs": { - "Account$throttleSettings": "

    Specifies the application programming interface (API) throttle settings for the current Account resource.

    " - } - }, - "Timestamp": { - "base": null, - "refs": { - "ApiKey$createdDate": "

    The date when the API Key was created, in ISO 8601 format.

    ", - "ApiKey$lastUpdatedDate": "

    When the API Key was last updated, in ISO 8601 format.

    ", - "ClientCertificate$createdDate": "

    The date when the Client Certificate was created, in ISO 8601 format.

    ", - "ClientCertificate$expirationDate": "

    The date when the Client Certificate will expire, in ISO 8601 format.

    ", - "Deployment$createdDate": "

    The date and time that the deployment resource was created.

    ", - "DomainName$certificateUploadDate": "

    The date when the certificate was uploaded, in ISO 8601 format.

    ", - "RestApi$createdDate": "

    The date when the API was created, in ISO 8601 format.

    ", - "Stage$createdDate": "

    The date and time that the stage was created, in ISO 8601 format.

    ", - "Stage$lastUpdatedDate": "

    The date and time that information about the stage was last updated, in ISO 8601 format.

    " - } - }, - "TooManyRequestsException": { - "base": null, - "refs": { - } - }, - "UnauthorizedCacheControlHeaderStrategy": { - "base": null, - "refs": { - "MethodSetting$unauthorizedCacheControlHeaderStrategy": "

    Specifies the strategy on how to handle the unauthorized requests for cache invalidation. The PATCH path for this setting is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy, and the available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, SUCCEED_WITHOUT_RESPONSE_HEADER.

    " - } - }, - "UnauthorizedException": { - "base": null, - "refs": { - } - }, - "UpdateAccountRequest": { - "base": "

    Requests Amazon API Gateway to change information about the current Account resource.

    ", - "refs": { - } - }, - "UpdateApiKeyRequest": { - "base": "

    A request to change information about an ApiKey resource.

    ", - "refs": { - } - }, - "UpdateAuthorizerRequest": { - "base": "

    Request to update an existing Authorizer resource.

    ", - "refs": { - } - }, - "UpdateBasePathMappingRequest": { - "base": "

    A request to change information about the BasePathMapping resource.

    ", - "refs": { - } - }, - "UpdateClientCertificateRequest": { - "base": "

    A request to change information about an ClientCertificate resource.

    ", - "refs": { - } - }, - "UpdateDeploymentRequest": { - "base": "

    Requests Amazon API Gateway to change information about a Deployment resource.

    ", - "refs": { - } - }, - "UpdateDomainNameRequest": { - "base": "

    A request to change information about the DomainName resource.

    ", - "refs": { - } - }, - "UpdateIntegrationRequest": { - "base": "

    Represents an update integration request.

    ", - "refs": { - } - }, - "UpdateIntegrationResponseRequest": { - "base": "

    Represents an update integration response request.

    ", - "refs": { - } - }, - "UpdateMethodRequest": { - "base": "

    Request to update an existing Method resource.

    ", - "refs": { - } - }, - "UpdateMethodResponseRequest": { - "base": "

    A request to update an existing MethodResponse resource.

    ", - "refs": { - } - }, - "UpdateModelRequest": { - "base": "

    Request to update an existing model in an existing RestApi resource.

    ", - "refs": { - } - }, - "UpdateResourceRequest": { - "base": "

    Request to change information about a Resource resource.

    ", - "refs": { - } - }, - "UpdateRestApiRequest": { - "base": "

    Request to update an existing RestApi resource in your collection.

    ", - "refs": { - } - }, - "UpdateStageRequest": { - "base": "

    Requests Amazon API Gateway to change information about a Stage resource.

    ", - "refs": { - } - }, - "op": { - "base": null, - "refs": { - "PatchOperation$op": "

    A patch operation whose value indicates the operation to perform. Its value MUST be one of \"add\", \"remove\", \"replace\", \"move\", \"copy\", or \"test\"; other values are errors.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/paginators-1.json deleted file mode 100644 index 4a79cfbd6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/apigateway/2015-07-09/paginators-1.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "pagination": { - "GetApiKeys": { - "input_token": "position", - "output_token": "position", - "limit_key": "limit", - "result_key": "items" - }, - "GetBasePathMappings": { - "input_token": "position", - "output_token": "position", - "limit_key": "limit", - "result_key": "items" - }, - "GetClientCertificates": { - "input_token": "position", - "output_token": "position", - "limit_key": "limit", - "result_key": "items" - }, - "GetDeployments": { - "input_token": "position", - "output_token": "position", - "limit_key": "limit", - "result_key": "items" - }, - "GetDomainNames": { - "input_token": "position", - "output_token": "position", - "limit_key": "limit", - "result_key": "items" - }, - "GetModels": { - "input_token": "position", - "output_token": "position", - "limit_key": "limit", - "result_key": "items" - }, - "GetResources": { - "input_token": "position", - "output_token": "position", - "limit_key": "limit", - "result_key": "items" - }, - "GetRestApis": { - "input_token": "position", - "output_token": "position", - "limit_key": "limit", - "result_key": "items" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/api-2.json deleted file mode 100644 index 696da88ec..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/api-2.json +++ /dev/null @@ -1,502 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2016-02-06", - "endpointPrefix":"autoscaling", - "jsonVersion":"1.1", - "protocol":"json", - "serviceFullName":"Application Auto Scaling", - "signatureVersion":"v4", - "signingName":"application-autoscaling", - "targetPrefix":"AnyScaleFrontendService" - }, - "operations":{ - "DeleteScalingPolicy":{ - "name":"DeleteScalingPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteScalingPolicyRequest"}, - "output":{"shape":"DeleteScalingPolicyResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"ObjectNotFoundException"}, - {"shape":"ConcurrentUpdateException"}, - {"shape":"InternalServiceException"} - ] - }, - "DeregisterScalableTarget":{ - "name":"DeregisterScalableTarget", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeregisterScalableTargetRequest"}, - "output":{"shape":"DeregisterScalableTargetResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"ObjectNotFoundException"}, - {"shape":"ConcurrentUpdateException"}, - {"shape":"InternalServiceException"} - ] - }, - "DescribeScalableTargets":{ - "name":"DescribeScalableTargets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeScalableTargetsRequest"}, - "output":{"shape":"DescribeScalableTargetsResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"InvalidNextTokenException"}, - {"shape":"ConcurrentUpdateException"}, - {"shape":"InternalServiceException"} - ] - }, - "DescribeScalingActivities":{ - "name":"DescribeScalingActivities", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeScalingActivitiesRequest"}, - "output":{"shape":"DescribeScalingActivitiesResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"InvalidNextTokenException"}, - {"shape":"ConcurrentUpdateException"}, - {"shape":"InternalServiceException"} - ] - }, - "DescribeScalingPolicies":{ - "name":"DescribeScalingPolicies", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeScalingPoliciesRequest"}, - "output":{"shape":"DescribeScalingPoliciesResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"FailedResourceAccessException"}, - {"shape":"InvalidNextTokenException"}, - {"shape":"ConcurrentUpdateException"}, - {"shape":"InternalServiceException"} - ] - }, - "PutScalingPolicy":{ - "name":"PutScalingPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutScalingPolicyRequest"}, - "output":{"shape":"PutScalingPolicyResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"LimitExceededException"}, - {"shape":"ObjectNotFoundException"}, - {"shape":"ConcurrentUpdateException"}, - {"shape":"InternalServiceException"} - ] - }, - "RegisterScalableTarget":{ - "name":"RegisterScalableTarget", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RegisterScalableTargetRequest"}, - "output":{"shape":"RegisterScalableTargetResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"LimitExceededException"}, - {"shape":"ConcurrentUpdateException"}, - {"shape":"InternalServiceException"} - ] - } - }, - "shapes":{ - "AdjustmentType":{ - "type":"string", - "enum":[ - "ChangeInCapacity", - "PercentChangeInCapacity", - "ExactCapacity" - ] - }, - "Alarm":{ - "type":"structure", - "required":[ - "AlarmName", - "AlarmARN" - ], - "members":{ - "AlarmName":{"shape":"ResourceId"}, - "AlarmARN":{"shape":"ResourceId"} - } - }, - "Alarms":{ - "type":"list", - "member":{"shape":"Alarm"} - }, - "ConcurrentUpdateException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "Cooldown":{"type":"integer"}, - "DeleteScalingPolicyRequest":{ - "type":"structure", - "required":[ - "PolicyName", - "ServiceNamespace", - "ResourceId", - "ScalableDimension" - ], - "members":{ - "PolicyName":{"shape":"ResourceIdMaxLen1600"}, - "ServiceNamespace":{"shape":"ServiceNamespace"}, - "ResourceId":{"shape":"ResourceIdMaxLen1600"}, - "ScalableDimension":{"shape":"ScalableDimension"} - } - }, - "DeleteScalingPolicyResponse":{ - "type":"structure", - "members":{ - } - }, - "DeregisterScalableTargetRequest":{ - "type":"structure", - "required":[ - "ServiceNamespace", - "ResourceId", - "ScalableDimension" - ], - "members":{ - "ServiceNamespace":{"shape":"ServiceNamespace"}, - "ResourceId":{"shape":"ResourceIdMaxLen1600"}, - "ScalableDimension":{"shape":"ScalableDimension"} - } - }, - "DeregisterScalableTargetResponse":{ - "type":"structure", - "members":{ - } - }, - "DescribeScalableTargetsRequest":{ - "type":"structure", - "required":["ServiceNamespace"], - "members":{ - "ServiceNamespace":{"shape":"ServiceNamespace"}, - "ResourceIds":{"shape":"ResourceIdsMaxLen1600"}, - "ScalableDimension":{"shape":"ScalableDimension"}, - "MaxResults":{"shape":"MaxResults"}, - "NextToken":{"shape":"XmlString"} - } - }, - "DescribeScalableTargetsResponse":{ - "type":"structure", - "members":{ - "ScalableTargets":{"shape":"ScalableTargets"}, - "NextToken":{"shape":"XmlString"} - } - }, - "DescribeScalingActivitiesRequest":{ - "type":"structure", - "required":["ServiceNamespace"], - "members":{ - "ServiceNamespace":{"shape":"ServiceNamespace"}, - "ResourceId":{"shape":"ResourceIdMaxLen1600"}, - "ScalableDimension":{"shape":"ScalableDimension"}, - "MaxResults":{"shape":"MaxResults"}, - "NextToken":{"shape":"XmlString"} - } - }, - "DescribeScalingActivitiesResponse":{ - "type":"structure", - "members":{ - "ScalingActivities":{"shape":"ScalingActivities"}, - "NextToken":{"shape":"XmlString"} - } - }, - "DescribeScalingPoliciesRequest":{ - "type":"structure", - "required":["ServiceNamespace"], - "members":{ - "PolicyNames":{"shape":"ResourceIdsMaxLen1600"}, - "ServiceNamespace":{"shape":"ServiceNamespace"}, - "ResourceId":{"shape":"ResourceIdMaxLen1600"}, - "ScalableDimension":{"shape":"ScalableDimension"}, - "MaxResults":{"shape":"MaxResults"}, - "NextToken":{"shape":"XmlString"} - } - }, - "DescribeScalingPoliciesResponse":{ - "type":"structure", - "members":{ - "ScalingPolicies":{"shape":"ScalingPolicies"}, - "NextToken":{"shape":"XmlString"} - } - }, - "ErrorMessage":{"type":"string"}, - "FailedResourceAccessException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "InternalServiceException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "InvalidNextTokenException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "MaxResults":{"type":"integer"}, - "MetricAggregationType":{ - "type":"string", - "enum":[ - "Average", - "Minimum", - "Maximum" - ] - }, - "MetricScale":{"type":"double"}, - "MinAdjustmentMagnitude":{"type":"integer"}, - "ObjectNotFoundException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "PolicyName":{ - "type":"string", - "max":256, - "min":1, - "pattern":"\\p{Print}+" - }, - "PolicyType":{ - "type":"string", - "enum":["StepScaling"] - }, - "PutScalingPolicyRequest":{ - "type":"structure", - "required":[ - "PolicyName", - "ServiceNamespace", - "ResourceId", - "ScalableDimension" - ], - "members":{ - "PolicyName":{"shape":"PolicyName"}, - "ServiceNamespace":{"shape":"ServiceNamespace"}, - "ResourceId":{"shape":"ResourceIdMaxLen1600"}, - "ScalableDimension":{"shape":"ScalableDimension"}, - "PolicyType":{"shape":"PolicyType"}, - "StepScalingPolicyConfiguration":{"shape":"StepScalingPolicyConfiguration"} - } - }, - "PutScalingPolicyResponse":{ - "type":"structure", - "required":["PolicyARN"], - "members":{ - "PolicyARN":{"shape":"ResourceIdMaxLen1600"} - } - }, - "RegisterScalableTargetRequest":{ - "type":"structure", - "required":[ - "ServiceNamespace", - "ResourceId", - "ScalableDimension" - ], - "members":{ - "ServiceNamespace":{"shape":"ServiceNamespace"}, - "ResourceId":{"shape":"ResourceIdMaxLen1600"}, - "ScalableDimension":{"shape":"ScalableDimension"}, - "MinCapacity":{"shape":"ResourceCapacity"}, - "MaxCapacity":{"shape":"ResourceCapacity"}, - "RoleARN":{"shape":"ResourceIdMaxLen1600"} - } - }, - "RegisterScalableTargetResponse":{ - "type":"structure", - "members":{ - } - }, - "ResourceCapacity":{"type":"integer"}, - "ResourceId":{ - "type":"string", - "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" - }, - "ResourceIdMaxLen1600":{ - "type":"string", - "max":1600, - "min":1, - "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" - }, - "ResourceIdsMaxLen1600":{ - "type":"list", - "member":{"shape":"ResourceIdMaxLen1600"} - }, - "ScalableDimension":{ - "type":"string", - "enum":["ecs:service:DesiredCount"] - }, - "ScalableTarget":{ - "type":"structure", - "required":[ - "ServiceNamespace", - "ResourceId", - "ScalableDimension", - "MinCapacity", - "MaxCapacity", - "RoleARN", - "CreationTime" - ], - "members":{ - "ServiceNamespace":{"shape":"ServiceNamespace"}, - "ResourceId":{"shape":"ResourceIdMaxLen1600"}, - "ScalableDimension":{"shape":"ScalableDimension"}, - "MinCapacity":{"shape":"ResourceCapacity"}, - "MaxCapacity":{"shape":"ResourceCapacity"}, - "RoleARN":{"shape":"ResourceIdMaxLen1600"}, - "CreationTime":{"shape":"TimestampType"} - } - }, - "ScalableTargets":{ - "type":"list", - "member":{"shape":"ScalableTarget"} - }, - "ScalingActivities":{ - "type":"list", - "member":{"shape":"ScalingActivity"} - }, - "ScalingActivity":{ - "type":"structure", - "required":[ - "ActivityId", - "ServiceNamespace", - "ResourceId", - "ScalableDimension", - "Description", - "Cause", - "StartTime", - "StatusCode" - ], - "members":{ - "ActivityId":{"shape":"ResourceId"}, - "ServiceNamespace":{"shape":"ServiceNamespace"}, - "ResourceId":{"shape":"ResourceIdMaxLen1600"}, - "ScalableDimension":{"shape":"ScalableDimension"}, - "Description":{"shape":"XmlString"}, - "Cause":{"shape":"XmlString"}, - "StartTime":{"shape":"TimestampType"}, - "EndTime":{"shape":"TimestampType"}, - "StatusCode":{"shape":"ScalingActivityStatusCode"}, - "StatusMessage":{"shape":"XmlString"}, - "Details":{"shape":"XmlString"} - } - }, - "ScalingActivityStatusCode":{ - "type":"string", - "enum":[ - "Pending", - "InProgress", - "Successful", - "Overridden", - "Unfulfilled", - "Failed" - ] - }, - "ScalingAdjustment":{"type":"integer"}, - "ScalingPolicies":{ - "type":"list", - "member":{"shape":"ScalingPolicy"} - }, - "ScalingPolicy":{ - "type":"structure", - "required":[ - "PolicyARN", - "PolicyName", - "ServiceNamespace", - "ResourceId", - "ScalableDimension", - "PolicyType", - "CreationTime" - ], - "members":{ - "PolicyARN":{"shape":"ResourceIdMaxLen1600"}, - "PolicyName":{"shape":"PolicyName"}, - "ServiceNamespace":{"shape":"ServiceNamespace"}, - "ResourceId":{"shape":"ResourceIdMaxLen1600"}, - "ScalableDimension":{"shape":"ScalableDimension"}, - "PolicyType":{"shape":"PolicyType"}, - "StepScalingPolicyConfiguration":{"shape":"StepScalingPolicyConfiguration"}, - "Alarms":{"shape":"Alarms"}, - "CreationTime":{"shape":"TimestampType"} - } - }, - "ServiceNamespace":{ - "type":"string", - "enum":["ecs"] - }, - "StepAdjustment":{ - "type":"structure", - "required":["ScalingAdjustment"], - "members":{ - "MetricIntervalLowerBound":{"shape":"MetricScale"}, - "MetricIntervalUpperBound":{"shape":"MetricScale"}, - "ScalingAdjustment":{"shape":"ScalingAdjustment"} - } - }, - "StepAdjustments":{ - "type":"list", - "member":{"shape":"StepAdjustment"} - }, - "StepScalingPolicyConfiguration":{ - "type":"structure", - "members":{ - "AdjustmentType":{"shape":"AdjustmentType"}, - "StepAdjustments":{"shape":"StepAdjustments"}, - "MinAdjustmentMagnitude":{"shape":"MinAdjustmentMagnitude"}, - "Cooldown":{"shape":"Cooldown"}, - "MetricAggregationType":{"shape":"MetricAggregationType"} - } - }, - "TimestampType":{"type":"timestamp"}, - "ValidationException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "XmlString":{ - "type":"string", - "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/docs-2.json deleted file mode 100644 index 35a299912..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/docs-2.json +++ /dev/null @@ -1,362 +0,0 @@ -{ - "version": "2.0", - "service": "

    Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Auto Scaling.

    At this time, Application Auto Scaling only supports scaling Amazon ECS services.

    For example, you can use Application Auto Scaling to accomplish the following tasks:

    • Define scaling policies for automatically adjusting your application’s resources

    • Scale your resources in response to CloudWatch alarms

    • View history of your scaling events

    Application Auto Scaling is available in the following regions:

    • us-east-1

    • us-west-2

    • eu-west-1

    ", - "operations": { - "DeleteScalingPolicy": "

    Deletes an Application Auto Scaling scaling policy that was previously created. If you are no longer using a scaling policy, you can delete it with this operation.

    Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm, even if it no longer has an associated action.

    To create a new scaling policy or update an existing one, see PutScalingPolicy.

    ", - "DeregisterScalableTarget": "

    Deregisters a scalable target that was previously registered. If you are no longer using a scalable target, you can delete it with this operation. When you deregister a scalable target, all of the scaling policies that are associated with that scalable target are deleted.

    To create a new scalable target or update an existing one, see RegisterScalableTarget.

    ", - "DescribeScalableTargets": "

    Provides descriptive information for scalable targets with a specified service namespace.

    You can filter the results in a service namespace with the ResourceIds and ScalableDimension parameters.

    To create a new scalable target or update an existing one, see RegisterScalableTarget. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.

    ", - "DescribeScalingActivities": "

    Provides descriptive information for scaling activities with a specified service namespace.

    You can filter the results in a service namespace with the ResourceId and ScalableDimension parameters.

    Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the existing scaling policies for a service namespace, see DescribeScalingPolicies. To create a new scaling policy or update an existing one, see PutScalingPolicy.

    ", - "DescribeScalingPolicies": "

    Provides descriptive information for scaling policies with a specified service namespace.

    You can filter the results in a service namespace with the ResourceId, ScalableDimension, and PolicyNames parameters.

    To create a new scaling policy or update an existing one, see PutScalingPolicy. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.

    ", - "PutScalingPolicy": "

    Creates or updates a policy for an existing Application Auto Scaling scalable target. Each scalable target is identified by service namespace, a resource ID, and a scalable dimension, and a scaling policy applies to a scalable target that is identified by those three attributes. You cannot create a scaling policy without first registering a scalable target with RegisterScalableTarget.

    To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.

    You can view the existing scaling policies for a service namespace with DescribeScalingPolicies. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.

    ", - "RegisterScalableTarget": "

    Registers or updates a scalable target. A scalable target is a resource that can be scaled up or down with Application Auto Scaling. After you have registered a scalable target, you can use this command to update the minimum and maximum values for your scalable dimension.

    At this time, Application Auto Scaling only supports scaling Amazon ECS services.

    After you register a scalable target with Application Auto Scaling, you can create and apply scaling policies to it with PutScalingPolicy. You can view the existing scaling policies for a service namespace with DescribeScalableTargets. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.

    " - }, - "shapes": { - "AdjustmentType": { - "base": null, - "refs": { - "StepScalingPolicyConfiguration$AdjustmentType": "

    The adjustment type, which specifies how the ScalingAdjustment parameter in a StepAdjustment is interpreted.

    " - } - }, - "Alarm": { - "base": "

    An object representing a CloudWatch alarm associated with a scaling policy.

    ", - "refs": { - "Alarms$member": null - } - }, - "Alarms": { - "base": null, - "refs": { - "ScalingPolicy$Alarms": "

    The CloudWatch alarms that are associated with the scaling policy.

    " - } - }, - "ConcurrentUpdateException": { - "base": "

    Concurrent updates caused an exception, for example, if you request an update to an Application Auto Scaling resource that already has a pending update.

    ", - "refs": { - } - }, - "Cooldown": { - "base": null, - "refs": { - "StepScalingPolicyConfiguration$Cooldown": "

    The amount of time, in seconds, after a scaling activity completes where previous trigger-related scaling activities can influence future scaling events.

    For scale out policies, while Cooldown is in effect, the capacity that has been added by the previous scale out event that initiated the Cooldown is calculated as part of the desired capacity for the next scale out. The intention is to continuously (but not excessively) scale out. For example, an alarm triggers a step scaling policy to scale out an Amazon ECS service by 2 tasks, the scaling activity completes successfully, and a Cooldown period of 5 minutes starts. During the Cooldown period, if the alarm triggers the same policy again but at a more aggressive step adjustment to scale out the service by 3 tasks, the 2 tasks that were added in the previous scale out event are considered part of that capacity and only 1 additional task is added to the desired count.

    For scale in policies, the Cooldown period is used to block subsequent scale in requests until it has expired. The intention is to scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the Cooldown period after a scale-in, Application Auto Scaling scales out your scalable target immediately.

    " - } - }, - "DeleteScalingPolicyRequest": { - "base": null, - "refs": { - } - }, - "DeleteScalingPolicyResponse": { - "base": null, - "refs": { - } - }, - "DeregisterScalableTargetRequest": { - "base": null, - "refs": { - } - }, - "DeregisterScalableTargetResponse": { - "base": null, - "refs": { - } - }, - "DescribeScalableTargetsRequest": { - "base": null, - "refs": { - } - }, - "DescribeScalableTargetsResponse": { - "base": null, - "refs": { - } - }, - "DescribeScalingActivitiesRequest": { - "base": null, - "refs": { - } - }, - "DescribeScalingActivitiesResponse": { - "base": null, - "refs": { - } - }, - "DescribeScalingPoliciesRequest": { - "base": null, - "refs": { - } - }, - "DescribeScalingPoliciesResponse": { - "base": null, - "refs": { - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "ConcurrentUpdateException$Message": null, - "FailedResourceAccessException$Message": null, - "InternalServiceException$Message": null, - "InvalidNextTokenException$Message": null, - "LimitExceededException$Message": null, - "ObjectNotFoundException$Message": null, - "ValidationException$Message": null - } - }, - "FailedResourceAccessException": { - "base": "

    Failed access to resources caused an exception. This exception currently only applies to DescribeScalingPolicies. It 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 the proper permissions to call the CloudWatch DescribeAlarms API operation on behalf of your account.

    ", - "refs": { - } - }, - "InternalServiceException": { - "base": "

    The service encountered an internal error.

    ", - "refs": { - } - }, - "InvalidNextTokenException": { - "base": "

    The next token supplied was invalid.

    ", - "refs": { - } - }, - "LimitExceededException": { - "base": "

    Your account exceeded a limit. This exception is thrown when a per-account resource limit is exceeded. Application Auto Scaling has a limit of 40 scalable targets per account for Amazon ECS services, 50 scaling policies per scalable target, and 20 step adjustments per step scaling policy.

    ", - "refs": { - } - }, - "MaxResults": { - "base": null, - "refs": { - "DescribeScalableTargetsRequest$MaxResults": "

    The maximum number of scalable target results returned by DescribeScalableTargets in paginated output. When this parameter is used, DescribeScalableTargets returns up to MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeScalableTargets request with the returned NextToken value. This value can be between 1 and 50. If this parameter is not used, then DescribeScalableTargets returns up to 50 results and a NextToken value, if applicable.

    ", - "DescribeScalingActivitiesRequest$MaxResults": "

    The maximum number of scaling activity results returned by DescribeScalingActivities in paginated output. When this parameter is used, DescribeScalingActivities returns up to MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeScalingActivities request with the returned NextToken value. This value can be between 1 and 50. If this parameter is not used, then DescribeScalingActivities returns up to 50 results and a NextToken value, if applicable.

    ", - "DescribeScalingPoliciesRequest$MaxResults": "

    The maximum number of scaling policy results returned by DescribeScalingPolicies in paginated output. When this parameter is used, DescribeScalingPolicies returns up to MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeScalingPolicies request with the returned NextToken value. This value can be between 1 and 50. If this parameter is not used, then DescribeScalingPolicies returns up to 50 results and a NextToken value, if applicable.

    " - } - }, - "MetricAggregationType": { - "base": null, - "refs": { - "StepScalingPolicyConfiguration$MetricAggregationType": "

    The aggregation type for the CloudWatch metrics. Valid values are Minimum, Maximum, and Average.

    " - } - }, - "MetricScale": { - "base": null, - "refs": { - "StepAdjustment$MetricIntervalLowerBound": "

    The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it is exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity.

    ", - "StepAdjustment$MetricIntervalUpperBound": "

    The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it is inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity.

    The upper bound must be greater than the lower bound.

    " - } - }, - "MinAdjustmentMagnitude": { - "base": null, - "refs": { - "StepScalingPolicyConfiguration$MinAdjustmentMagnitude": "

    The minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount.

    " - } - }, - "ObjectNotFoundException": { - "base": "

    The specified object could not be found. For any Put or Register API operation, which 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 Delete or Deregister API operation, this exception is thrown if the resource that is to be deleted or deregistered cannot be found.

    ", - "refs": { - } - }, - "PolicyName": { - "base": null, - "refs": { - "PutScalingPolicyRequest$PolicyName": "

    The name of the scaling policy.

    ", - "ScalingPolicy$PolicyName": "

    The name of the scaling policy.

    " - } - }, - "PolicyType": { - "base": null, - "refs": { - "PutScalingPolicyRequest$PolicyType": "

    The policy type. This parameter is required if you are creating a new policy.

    ", - "ScalingPolicy$PolicyType": "

    The scaling policy type.

    " - } - }, - "PutScalingPolicyRequest": { - "base": null, - "refs": { - } - }, - "PutScalingPolicyResponse": { - "base": null, - "refs": { - } - }, - "RegisterScalableTargetRequest": { - "base": null, - "refs": { - } - }, - "RegisterScalableTargetResponse": { - "base": null, - "refs": { - } - }, - "ResourceCapacity": { - "base": null, - "refs": { - "RegisterScalableTargetRequest$MinCapacity": "

    The minimum value for this scalable target to scale in to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.

    ", - "RegisterScalableTargetRequest$MaxCapacity": "

    The maximum value for this scalable target to scale out to in response to scaling activities. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.

    ", - "ScalableTarget$MinCapacity": "

    The minimum value for this scalable target to scale in to in response to scaling activities.

    ", - "ScalableTarget$MaxCapacity": "

    The maximum value for this scalable target to scale out to in response to scaling activities.

    " - } - }, - "ResourceId": { - "base": null, - "refs": { - "Alarm$AlarmName": "

    The name of the alarm.

    ", - "Alarm$AlarmARN": "

    The Amazon Resource Name (ARN) of the alarm.

    ", - "ScalingActivity$ActivityId": "

    The unique identifier string for the scaling activity.

    " - } - }, - "ResourceIdMaxLen1600": { - "base": null, - "refs": { - "DeleteScalingPolicyRequest$PolicyName": "

    The name of the scaling policy to delete.

    ", - "DeleteScalingPolicyRequest$ResourceId": "

    The unique identifier string for the resource associated with the scaling policy. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as service/default/sample-webapp.

    ", - "DeregisterScalableTargetRequest$ResourceId": "

    The unique identifier string for the resource associated with the scalable target. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as service/default/sample-webapp.

    ", - "DescribeScalingActivitiesRequest$ResourceId": "

    The unique identifier string for the resource associated with the scaling activity. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as service/default/sample-webapp. If you specify a scalable dimension, you must also specify a resource ID.

    ", - "DescribeScalingPoliciesRequest$ResourceId": "

    The unique resource identifier string of the scalable target that the scaling policy is associated with. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as service/default/sample-webapp. If you specify a scalable dimension, you must also specify a resource ID.

    ", - "PutScalingPolicyRequest$ResourceId": "

    The unique resource identifier string for the scalable target that this scaling policy applies to. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as service/default/sample-webapp.

    ", - "PutScalingPolicyResponse$PolicyARN": "

    The Amazon Resource Name (ARN) of the resulting scaling policy.

    ", - "RegisterScalableTargetRequest$ResourceId": "

    The unique identifier string for the resource to associate with the scalable target. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as service/default/sample-webapp.

    ", - "RegisterScalableTargetRequest$RoleARN": "

    The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf. This parameter is required if you are registering a new scalable target, and it is optional if you are updating an existing one.

    ", - "ResourceIdsMaxLen1600$member": null, - "ScalableTarget$ResourceId": "

    The unique identifier string for the resource associated with the scalable target. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as service/default/sample-webapp.

    ", - "ScalableTarget$RoleARN": "

    The ARN of the IAM role that allows Application Auto Scaling to modify your scalable target on your behalf.

    ", - "ScalingActivity$ResourceId": "

    The unique identifier string for the resource associated with the scaling activity. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as service/default/sample-webapp.

    ", - "ScalingPolicy$PolicyARN": "

    The Amazon Resource Name (ARN) of the scaling policy.

    ", - "ScalingPolicy$ResourceId": "

    The unique identifier string for the resource associated with the scaling policy. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as service/default/sample-webapp.

    " - } - }, - "ResourceIdsMaxLen1600": { - "base": null, - "refs": { - "DescribeScalableTargetsRequest$ResourceIds": "

    The unique identifier string for the resource associated with the scalable target. For Amazon ECS services, this value is the resource type, followed by the cluster name and service name, such as service/default/sample-webapp. If you specify a scalable dimension, you must also specify a resource ID.

    ", - "DescribeScalingPoliciesRequest$PolicyNames": "

    The names of the scaling policies to describe.

    " - } - }, - "ScalableDimension": { - "base": null, - "refs": { - "DeleteScalingPolicyRequest$ScalableDimension": "

    The scalable dimension associated with the scaling policy. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service.

    ", - "DeregisterScalableTargetRequest$ScalableDimension": "

    The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service.

    ", - "DescribeScalableTargetsRequest$ScalableDimension": "

    The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.

    ", - "DescribeScalingActivitiesRequest$ScalableDimension": "

    The scalable dimension associated with the scaling activity. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.

    ", - "DescribeScalingPoliciesRequest$ScalableDimension": "

    The scalable dimension of the scalable target that the scaling policy is associated with. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service. If you specify a scalable dimension, you must also specify a resource ID.

    ", - "PutScalingPolicyRequest$ScalableDimension": "

    The scalable dimension of the scalable target that this scaling policy applies to. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service.

    ", - "RegisterScalableTargetRequest$ScalableDimension": "

    The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service.

    ", - "ScalableTarget$ScalableDimension": "

    The scalable dimension associated with the scalable target. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service.

    ", - "ScalingActivity$ScalableDimension": "

    The scalable dimension associated with the scaling activity. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service.

    ", - "ScalingPolicy$ScalableDimension": "

    The scalable dimension associated with the scaling policy. The scalable dimension contains the service namespace, resource type, and scaling property, such as ecs:service:DesiredCount for the desired task count of an Amazon ECS service.

    " - } - }, - "ScalableTarget": { - "base": "

    An object representing a scalable target.

    ", - "refs": { - "ScalableTargets$member": null - } - }, - "ScalableTargets": { - "base": null, - "refs": { - "DescribeScalableTargetsResponse$ScalableTargets": "

    The list of scalable targets that matches the request parameters.

    " - } - }, - "ScalingActivities": { - "base": null, - "refs": { - "DescribeScalingActivitiesResponse$ScalingActivities": "

    A list of scaling activity objects.

    " - } - }, - "ScalingActivity": { - "base": "

    An object representing a scaling activity.

    ", - "refs": { - "ScalingActivities$member": null - } - }, - "ScalingActivityStatusCode": { - "base": null, - "refs": { - "ScalingActivity$StatusCode": "

    Indicates the status of the scaling activity.

    " - } - }, - "ScalingAdjustment": { - "base": null, - "refs": { - "StepAdjustment$ScalingAdjustment": "

    The amount by which to scale, based on the specified adjustment type. A positive value adds to the current scalable dimension while a negative number removes from the current scalable dimension.

    " - } - }, - "ScalingPolicies": { - "base": null, - "refs": { - "DescribeScalingPoliciesResponse$ScalingPolicies": "

    A list of scaling policy objects.

    " - } - }, - "ScalingPolicy": { - "base": "

    An object representing a scaling policy.

    ", - "refs": { - "ScalingPolicies$member": null - } - }, - "ServiceNamespace": { - "base": null, - "refs": { - "DeleteScalingPolicyRequest$ServiceNamespace": "

    The namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

    ", - "DeregisterScalableTargetRequest$ServiceNamespace": "

    The namespace for the AWS service that the scalable target is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

    ", - "DescribeScalableTargetsRequest$ServiceNamespace": "

    The namespace for the AWS service that the scalable target is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

    ", - "DescribeScalingActivitiesRequest$ServiceNamespace": "

    The namespace for the AWS service that the scaling activity is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

    ", - "DescribeScalingPoliciesRequest$ServiceNamespace": "

    The AWS service namespace of the scalable target that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

    ", - "PutScalingPolicyRequest$ServiceNamespace": "

    The AWS service namespace of the scalable target that this scaling policy applies to. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

    ", - "RegisterScalableTargetRequest$ServiceNamespace": "

    The namespace for the AWS service that the scalable target is associated with. For Amazon ECS services, the namespace value is ecs. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

    ", - "ScalableTarget$ServiceNamespace": "

    The namespace for the AWS service that the scalable target is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

    ", - "ScalingActivity$ServiceNamespace": "

    The namespace for the AWS service that the scaling activity is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

    ", - "ScalingPolicy$ServiceNamespace": "

    The namespace for the AWS service that the scaling policy is associated with. For more information, see AWS Service Namespaces in the Amazon Web Services General Reference.

    " - } - }, - "StepAdjustment": { - "base": "

    An object representing a step adjustment for a StepScalingPolicyConfiguration. Describes an adjustment based on the difference between the value of the aggregated CloudWatch metric and the breach threshold that you've defined for the alarm.

    For the following examples, suppose that you have an alarm with a breach threshold of 50:

    • If you want the adjustment to be triggered when the metric is greater than or equal to 50 and less than 60, specify a lower bound of 0 and an upper bound of 10.

    • If you want the adjustment to be triggered when the metric is greater than 40 and less than or equal to 50, specify a lower bound of -10 and an upper bound of 0.

    There are a few rules for the step adjustments for your step policy:

    • The ranges of your step adjustments can't overlap or have a gap.

    • At most one step adjustment can have a null lower bound. If one step adjustment has a negative lower bound, then there must be a step adjustment with a null lower bound.

    • At most one step adjustment can have a null upper bound. If one step adjustment has a positive upper bound, then there must be a step adjustment with a null upper bound.

    • The upper and lower bound can't be null in the same step adjustment.

    ", - "refs": { - "StepAdjustments$member": null - } - }, - "StepAdjustments": { - "base": null, - "refs": { - "StepScalingPolicyConfiguration$StepAdjustments": "

    A set of adjustments that enable you to scale based on the size of the alarm breach.

    " - } - }, - "StepScalingPolicyConfiguration": { - "base": "

    An object representing a step scaling policy configuration.

    ", - "refs": { - "PutScalingPolicyRequest$StepScalingPolicyConfiguration": "

    The configuration for the step scaling policy. This parameter is required if you are creating a new policy. For more information, see StepScalingPolicyConfiguration and StepAdjustment.

    ", - "ScalingPolicy$StepScalingPolicyConfiguration": "

    The configuration for the step scaling policy.

    " - } - }, - "TimestampType": { - "base": null, - "refs": { - "ScalableTarget$CreationTime": "

    The Unix timestamp for when the scalable target was created.

    ", - "ScalingActivity$StartTime": "

    The Unix timestamp for when the scaling activity began.

    ", - "ScalingActivity$EndTime": "

    The Unix timestamp for when the scaling activity ended.

    ", - "ScalingPolicy$CreationTime": "

    The Unix timestamp for when the scaling policy was created.

    " - } - }, - "ValidationException": { - "base": "

    An exception was thrown for a validation issue. Review the available parameters for the API request.

    ", - "refs": { - } - }, - "XmlString": { - "base": null, - "refs": { - "DescribeScalableTargetsRequest$NextToken": "

    The NextToken value returned from a previous paginated DescribeScalableTargets request. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

    ", - "DescribeScalableTargetsResponse$NextToken": "

    The NextToken value to include in a future DescribeScalableTargets request. When the results of a DescribeScalableTargets request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeScalingActivitiesRequest$NextToken": "

    The NextToken value returned from a previous paginated DescribeScalingActivities request. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

    ", - "DescribeScalingActivitiesResponse$NextToken": "

    The NextToken value to include in a future DescribeScalingActivities request. When the results of a DescribeScalingActivities request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeScalingPoliciesRequest$NextToken": "

    The NextToken value returned from a previous paginated DescribeScalingPolicies request. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

    ", - "DescribeScalingPoliciesResponse$NextToken": "

    The NextToken value to include in a future DescribeScalingPolicies request. When the results of a DescribeScalingPolicies request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "ScalingActivity$Description": "

    A simple description of what action the scaling activity intends to accomplish.

    ", - "ScalingActivity$Cause": "

    A simple description of what caused the scaling activity to happen.

    ", - "ScalingActivity$StatusMessage": "

    A simple message about the current status of the scaling activity.

    ", - "ScalingActivity$Details": "

    The details about the scaling activity.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/paginators-1.json deleted file mode 100644 index 97ae6002f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/application-autoscaling/2016-02-06/paginators-1.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "pagination": { - "DescribeScalableTargets": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "ScalableTargets" - }, - "DescribeScalingPolicies": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "ScalingPolicies" - }, - "DescribeScalingActivities": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "ScalingActivities" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/waiters-2.json deleted file mode 100644 index 76ee9983d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling/2011-01-01/waiters-2.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "version": 2, - "waiters": { - "GroupExists": { - "acceptors": [ - { - "argument": "length(AutoScalingGroups) > `0`", - "expected": true, - "matcher": "path", - "state": "success" - }, - { - "argument": "length(AutoScalingGroups) > `0`", - "expected": false, - "matcher": "path", - "state": "retry" - } - ], - "delay": 5, - "maxAttempts": 10, - "operation": "DescribeAutoScalingGroups" - }, - "GroupInService": { - "acceptors": [ - { - "argument": "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)", - "expected": false, - "matcher": "path", - "state": "success" - }, - { - "argument": "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)", - "expected": true, - "matcher": "path", - "state": "retry" - } - ], - "delay": 15, - "maxAttempts": 40, - "operation": "DescribeAutoScalingGroups" - }, - "GroupNotExists": { - "acceptors": [ - { - "argument": "length(AutoScalingGroups) > `0`", - "expected": false, - "matcher": "path", - "state": "success" - }, - { - "argument": "length(AutoScalingGroups) > `0`", - "expected": true, - "matcher": "path", - "state": "retry" - } - ], - "delay": 15, - "maxAttempts": 40, - "operation": "DescribeAutoScalingGroups" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/docs-2.json deleted file mode 100644 index 6deae3ea0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/docs-2.json +++ /dev/null @@ -1,1049 +0,0 @@ -{ - "version": "2.0", - "service": "AWS CloudFormation

    AWS CloudFormation enables you to create and manage AWS infrastructure deployments predictably and repeatedly. AWS CloudFormation helps you leverage AWS products such as Amazon EC2, EBS, Amazon SNS, ELB, and Auto Scaling to build highly-reliable, highly scalable, cost effective applications without worrying about creating and configuring the underlying AWS infrastructure.

    With AWS CloudFormation, you declare all of your resources and dependencies in a template file. The template defines a collection of resources as a single unit called a stack. AWS CloudFormation creates and deletes all member resources of the stack together and manages all dependencies between the resources for you.

    For more information about this product, go to the CloudFormation Product Page.

    Amazon CloudFormation makes use of other AWS products. If you need additional technical information about a specific AWS product, you can find the product's technical documentation at http://docs.aws.amazon.com/.

    ", - "operations": { - "CancelUpdateStack": "

    Cancels an update on the specified stack. If the call completes successfully, the stack rolls back the update and reverts to the previous stack configuration.

    You can cancel only stacks that are in the UPDATE_IN_PROGRESS state.

    ", - "ContinueUpdateRollback": "

    For a specified stack that is in the UPDATE_ROLLBACK_FAILED state, continues rolling it back to the UPDATE_ROLLBACK_COMPLETE state. Depending on the cause of the failure, you can manually fix the error and continue the rollback. By continuing the rollback, you can return your stack to a working state (the UPDATE_ROLLBACK_COMPLETE state), and then try to update the stack again.

    A stack goes into the UPDATE_ROLLBACK_FAILED state when AWS CloudFormation cannot roll back all changes after a failed stack update. For example, you might have a stack that is rolling back to an old database instance that was deleted outside of AWS CloudFormation. Because AWS CloudFormation doesn't know the database was deleted, it assumes that the database instance still exists and attempts to roll back to it, causing the update rollback to fail.

    ", - "CreateChangeSet": "

    Creates a list of changes for a stack. AWS CloudFormation generates the change set by comparing the stack's information with the information that you submit. A change set can help you understand which resources AWS CloudFormation will change and how it will change them before you update your stack. Change sets allow you to check before you make a change so that you don't delete or replace critical resources.

    AWS CloudFormation doesn't make any changes to the stack when you create a change set. To make the specified changes, you must execute the change set by using the ExecuteChangeSet action.

    After the call successfully completes, AWS CloudFormation starts creating the change set. To check the status of the change set, use the DescribeChangeSet action.

    ", - "CreateStack": "

    Creates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the status of the stack via the DescribeStacks API.

    ", - "DeleteChangeSet": "

    Deletes the specified change set. Deleting change sets ensures that no one executes the wrong change set.

    If the call successfully completes, AWS CloudFormation successfully deleted the change set.

    ", - "DeleteStack": "

    Deletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks do not show up in the DescribeStacks API if the deletion has been completed successfully.

    ", - "DescribeAccountLimits": "

    Retrieves your account's AWS CloudFormation limits, such as the maximum number of stacks that you can create in your account.

    ", - "DescribeChangeSet": "

    Returns the inputs for the change set and a list of changes that AWS CloudFormation will make if you execute the change set. For more information, see Updating Stacks Using Change Sets in the AWS CloudFormation User Guide.

    ", - "DescribeStackEvents": "

    Returns all stack related events for a specified stack in reverse chronological order. For more information about a stack's event history, go to Stacks in the AWS CloudFormation User Guide.

    You can list events for stacks that have failed to create or have been deleted by specifying the unique stack identifier (stack ID).

    ", - "DescribeStackResource": "

    Returns a description of the specified resource in the specified stack.

    For deleted stacks, DescribeStackResource returns resource information for up to 90 days after the stack has been deleted.

    ", - "DescribeStackResources": "

    Returns AWS resource descriptions for running and deleted stacks. If StackName is specified, all the associated resources that are part of the stack are returned. If PhysicalResourceId is specified, the associated resources of the stack that the resource belongs to are returned.

    Only the first 100 resources will be returned. If your stack has more resources than this, you should use ListStackResources instead.

    For deleted stacks, DescribeStackResources returns resource information for up to 90 days after the stack has been deleted.

    You must specify either StackName or PhysicalResourceId, but not both. In addition, you can specify LogicalResourceId to filter the returned result. For more information about resources, the LogicalResourceId and PhysicalResourceId, go to the AWS CloudFormation User Guide.

    A ValidationError is returned if you specify both StackName and PhysicalResourceId in the same request.

    ", - "DescribeStacks": "

    Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.

    ", - "EstimateTemplateCost": "

    Returns the estimated monthly cost of a template. The return value is an AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.

    ", - "ExecuteChangeSet": "

    Updates a stack using the input information that was provided when the specified change set was created. After the call successfully completes, AWS CloudFormation starts updating the stack. Use the DescribeStacks action to view the status of the update.

    When you execute a change set, AWS CloudFormation deletes all other change sets associated with the stack because they aren't valid for the updated stack.

    If a stack policy is associated with the stack, AWS CloudFormation enforces the policy during the update. You can't specify a temporary stack policy that overrides the current policy.

    ", - "GetStackPolicy": "

    Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.

    ", - "GetTemplate": "

    Returns the template body for a specified stack. You can get the template for running or deleted stacks.

    For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted.

    If the template does not exist, a ValidationError is returned.

    ", - "GetTemplateSummary": "

    Returns information about a new or existing template. The GetTemplateSummary action is useful for viewing parameter information, such as default parameter values and parameter types, before you create or update a stack.

    You can use the GetTemplateSummary action when you submit a template, or you can get template information for a running or deleted stack.

    For deleted stacks, GetTemplateSummary returns the template information for up to 90 days after the stack has been deleted. If the template does not exist, a ValidationError is returned.

    ", - "ListChangeSets": "

    Returns the ID and status of each active change set for a stack. For example, AWS CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or CREATE_PENDING state.

    ", - "ListStackResources": "

    Returns descriptions of all resources of the specified stack.

    For deleted stacks, ListStackResources returns resource information for up to 90 days after the stack has been deleted.

    ", - "ListStacks": "

    Returns the summary information for stacks whose status matches the specified StackStatusFilter. Summary information for stacks that have been deleted is kept for 90 days after the stack is deleted. If no StackStatusFilter is specified, summary information for all stacks is returned (including existing stacks and stacks that have been deleted).

    ", - "SetStackPolicy": "

    Sets a stack policy for a specified stack.

    ", - "SignalResource": "

    Sends a signal to the specified resource with a success or failure status. You can use the SignalResource API in conjunction with a creation policy or update policy. AWS CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource API is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.

    ", - "UpdateStack": "

    Updates a stack as specified in the template. After the call completes successfully, the stack update starts. You can check the status of the stack via the DescribeStacks action.

    To get a copy of the template for an existing stack, you can use the GetTemplate action.

    For more information about creating an update template, updating a stack, and monitoring the progress of the update, see Updating a Stack.

    ", - "ValidateTemplate": "

    Validates a specified template.

    " - }, - "shapes": { - "AccountLimit": { - "base": "

    The AccountLimit data type.

    ", - "refs": { - "AccountLimitList$member": null - } - }, - "AccountLimitList": { - "base": null, - "refs": { - "DescribeAccountLimitsOutput$AccountLimits": "

    An account limit structure that contain a list of AWS CloudFormation account limits and their values.

    " - } - }, - "AllowedValue": { - "base": null, - "refs": { - "AllowedValues$member": null - } - }, - "AllowedValues": { - "base": null, - "refs": { - "ParameterConstraints$AllowedValues": "

    A list of values that are permitted for a parameter.

    " - } - }, - "AlreadyExistsException": { - "base": "

    Resource with the name requested already exists.

    ", - "refs": { - } - }, - "CancelUpdateStackInput": { - "base": "

    The input for the CancelUpdateStack action.

    ", - "refs": { - } - }, - "Capabilities": { - "base": null, - "refs": { - "CreateChangeSetInput$Capabilities": "

    A list of capabilities that you must specify before AWS CloudFormation can update certain stacks. Some stack templates might include resources that can affect permissions in your AWS account, for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge their capabilities by specifying this parameter.

    Currently, the only valid value is CAPABILITY_IAM, which is required for the following resources: AWS::IAM::AccessKey, AWS::IAM::Group, AWS::IAM::InstanceProfile, AWS::IAM::Policy, AWS::IAM::Role, AWS::IAM::User, and AWS::IAM::UserToGroupAddition. If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary. If your template contains any of the listed resources and you don't specify this parameter, this action returns an InsufficientCapabilities error.

    ", - "CreateStackInput$Capabilities": "

    A list of capabilities that you must specify before AWS CloudFormation can create certain stacks. Some stack templates might include resources that can affect permissions in your AWS account, for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge their capabilities by specifying this parameter.

    Currently, the only valid value is CAPABILITY_IAM, which is required for the following resources: AWS::IAM::AccessKey, AWS::IAM::Group, AWS::IAM::InstanceProfile, AWS::IAM::Policy, AWS::IAM::Role, AWS::IAM::User, and AWS::IAM::UserToGroupAddition. If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary. If your template contains any of the listed resources and you don't specify this parameter, this action returns an InsufficientCapabilities error.

    ", - "DescribeChangeSetOutput$Capabilities": "

    If you execute the change set, the list of capabilities that were explicitly acknowledged when the change set was created.

    ", - "GetTemplateSummaryOutput$Capabilities": "

    The capabilities found within the template. Currently, AWS CloudFormation supports only the CAPABILITY_IAM capability. If your template contains IAM resources, you must specify the CAPABILITY_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error.

    ", - "Stack$Capabilities": "

    The capabilities allowed in the stack.

    ", - "UpdateStackInput$Capabilities": "

    A list of capabilities that you must specify before AWS CloudFormation can update certain stacks. Some stack templates might include resources that can affect permissions in your AWS account, for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge their capabilities by specifying this parameter.

    Currently, the only valid value is CAPABILITY_IAM, which is required for the following resources: AWS::IAM::AccessKey, AWS::IAM::Group, AWS::IAM::InstanceProfile, AWS::IAM::Policy, AWS::IAM::Role, AWS::IAM::User, and AWS::IAM::UserToGroupAddition. If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary. If your template contains any of the listed resources and you don't specify this parameter, this action returns an InsufficientCapabilities error.

    ", - "ValidateTemplateOutput$Capabilities": "

    The capabilities found within the template. Currently, AWS CloudFormation supports only the CAPABILITY_IAM capability. If your template contains IAM resources, you must specify the CAPABILITY_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error.

    " - } - }, - "CapabilitiesReason": { - "base": null, - "refs": { - "GetTemplateSummaryOutput$CapabilitiesReason": "

    The list of resources that generated the values in the Capabilities response element.

    ", - "ValidateTemplateOutput$CapabilitiesReason": "

    The list of resources that generated the values in the Capabilities response element.

    " - } - }, - "Capability": { - "base": null, - "refs": { - "Capabilities$member": null - } - }, - "CausingEntity": { - "base": null, - "refs": { - "ResourceChangeDetail$CausingEntity": "

    The identity of the entity that triggered this change. This entity is a member of the group that is specified by the ChangeSource field. For example, if you modified the value of the KeyPairName parameter, the CausingEntity is the name of the parameter (KeyPairName).

    If the ChangeSource value is DirectModification, no value is given for CausingEntity.

    " - } - }, - "Change": { - "base": "

    The Change structure describes the changes AWS CloudFormation will perform if you execute the change set.

    ", - "refs": { - "Changes$member": null - } - }, - "ChangeAction": { - "base": null, - "refs": { - "ResourceChange$Action": "

    The action that AWS CloudFormation takes on the resource, such as Add (adds a new resource), Modify (changes a resource), or Remove (deletes a resource).

    " - } - }, - "ChangeSetId": { - "base": null, - "refs": { - "ChangeSetSummary$ChangeSetId": "

    The ID of the change set.

    ", - "CreateChangeSetOutput$Id": "

    The Amazon Resource Name (ARN) of the change set.

    ", - "DescribeChangeSetOutput$ChangeSetId": "

    The ARN of the change set.

    " - } - }, - "ChangeSetName": { - "base": null, - "refs": { - "ChangeSetSummary$ChangeSetName": "

    The name of the change set.

    ", - "CreateChangeSetInput$ChangeSetName": "

    The name of the change set. The name must be unique among all change sets that are associated with the specified stack.

    A change set name can contain only alphanumeric, case sensitive characters and hyphens. It must start with an alphabetic character and cannot exceed 128 characters.

    ", - "DescribeChangeSetOutput$ChangeSetName": "

    The name of the change set.

    " - } - }, - "ChangeSetNameOrId": { - "base": null, - "refs": { - "DeleteChangeSetInput$ChangeSetName": "

    The name or Amazon Resource Name (ARN) of the change set that you want to delete.

    ", - "DescribeChangeSetInput$ChangeSetName": "

    The name or Amazon Resource Name (ARN) of the change set that you want to describe.

    ", - "ExecuteChangeSetInput$ChangeSetName": "

    The name or ARN of the change set that you want use to update the specified stack.

    " - } - }, - "ChangeSetNotFoundException": { - "base": "

    The specified change set name or ID doesn't exit. To view valid change sets for a stack, use the ListChangeSets action.

    ", - "refs": { - } - }, - "ChangeSetStatus": { - "base": null, - "refs": { - "ChangeSetSummary$Status": "

    The state of the change set, such as CREATE_IN_PROGRESS, CREATE_COMPLETE, or FAILED.

    ", - "DescribeChangeSetOutput$Status": "

    The current status of the change set, such as CREATE_IN_PROGRESS, CREATE_COMPLETE, or FAILED.

    " - } - }, - "ChangeSetStatusReason": { - "base": null, - "refs": { - "ChangeSetSummary$StatusReason": "

    A description of the change set's status. For example, if your change set is in the FAILED state, AWS CloudFormation shows the error message.

    ", - "DescribeChangeSetOutput$StatusReason": "

    A description of the change set's status. For example, if your attempt to create a change set failed, AWS CloudFormation shows the error message.

    " - } - }, - "ChangeSetSummaries": { - "base": null, - "refs": { - "ListChangeSetsOutput$Summaries": "

    A list of ChangeSetSummary structures that provides the ID and status of each change set for the specified stack.

    " - } - }, - "ChangeSetSummary": { - "base": "

    The ChangeSetSummary structure describes a change set, its status, and the stack with which it's associated.

    ", - "refs": { - "ChangeSetSummaries$member": null - } - }, - "ChangeSource": { - "base": null, - "refs": { - "ResourceChangeDetail$ChangeSource": "

    The group to which the CausingEntity value belongs. There are five entity groups:

    • ResourceReference entities are Ref intrinsic functions that refer to resources in the template, such as { \"Ref\" : \"MyEC2InstanceResource\" }.

    • ParameterReference entities are Ref intrinsic functions that get template parameter values, such as { \"Ref\" : \"MyPasswordParameter\" }.

    • ResourceAttribute entities are Fn::GetAtt intrinsic functions that get resource attribute values, such as { \"Fn::GetAtt\" : [ \"MyEC2InstanceResource\", \"PublicDnsName\" ] }.

    • DirectModification entities are changes that are made directly to the template.

    • Automatic entities are AWS::CloudFormation::Stack resource types, which are also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack resource, AWS CloudFormation sets the ChangeSource to Automatic because the nested stack's template might have changed. Changes to a nested stack's template aren't visible to AWS CloudFormation until you run an update on the parent stack.

    " - } - }, - "ChangeType": { - "base": null, - "refs": { - "Change$Type": "

    The type of entity that AWS CloudFormation changes. Currently, the only entity type is Resource.

    " - } - }, - "Changes": { - "base": null, - "refs": { - "DescribeChangeSetOutput$Changes": "

    A list of Change structures that describes the resources AWS CloudFormation changes if you execute the change set.

    " - } - }, - "ClientToken": { - "base": null, - "refs": { - "CreateChangeSetInput$ClientToken": "

    A unique identifier for this CreateChangeSet request. Specify this token if you plan to retry requests so that AWS CloudFormation knows that you're not attempting to create another change set with the same name. You might retry CreateChangeSet requests to ensure that AWS CloudFormation successfully received them.

    " - } - }, - "ContinueUpdateRollbackInput": { - "base": "

    The input for the ContinueUpdateRollback action.

    ", - "refs": { - } - }, - "ContinueUpdateRollbackOutput": { - "base": "

    The output for a ContinueUpdateRollback action.

    ", - "refs": { - } - }, - "CreateChangeSetInput": { - "base": "

    The input for the CreateChangeSet action.

    ", - "refs": { - } - }, - "CreateChangeSetOutput": { - "base": "

    The output for the CreateChangeSet action.

    ", - "refs": { - } - }, - "CreateStackInput": { - "base": "

    The input for CreateStack action.

    ", - "refs": { - } - }, - "CreateStackOutput": { - "base": "

    The output for a CreateStack action.

    ", - "refs": { - } - }, - "CreationTime": { - "base": null, - "refs": { - "ChangeSetSummary$CreationTime": "

    The start time when the change set was created, in UTC.

    ", - "DescribeChangeSetOutput$CreationTime": "

    The start time when the change set was created, in UTC.

    ", - "Stack$CreationTime": "

    The time at which the stack was created.

    ", - "StackSummary$CreationTime": "

    The time the stack was created.

    " - } - }, - "DeleteChangeSetInput": { - "base": "

    The input for the DeleteChangeSet action.

    ", - "refs": { - } - }, - "DeleteChangeSetOutput": { - "base": "

    The output for the DeleteChangeSet action.

    ", - "refs": { - } - }, - "DeleteStackInput": { - "base": "

    The input for DeleteStack action.

    ", - "refs": { - } - }, - "DeletionTime": { - "base": null, - "refs": { - "StackSummary$DeletionTime": "

    The time the stack was deleted.

    " - } - }, - "DescribeAccountLimitsInput": { - "base": "

    The input for the DescribeAccountLimits action.

    ", - "refs": { - } - }, - "DescribeAccountLimitsOutput": { - "base": "

    The output for the DescribeAccountLimits action.

    ", - "refs": { - } - }, - "DescribeChangeSetInput": { - "base": "

    The input for the DescribeChangeSet action.

    ", - "refs": { - } - }, - "DescribeChangeSetOutput": { - "base": "

    The output for the DescribeChangeSet action.

    ", - "refs": { - } - }, - "DescribeStackEventsInput": { - "base": "

    The input for DescribeStackEvents action.

    ", - "refs": { - } - }, - "DescribeStackEventsOutput": { - "base": "

    The output for a DescribeStackEvents action.

    ", - "refs": { - } - }, - "DescribeStackResourceInput": { - "base": "

    The input for DescribeStackResource action.

    ", - "refs": { - } - }, - "DescribeStackResourceOutput": { - "base": "

    The output for a DescribeStackResource action.

    ", - "refs": { - } - }, - "DescribeStackResourcesInput": { - "base": "

    The input for DescribeStackResources action.

    ", - "refs": { - } - }, - "DescribeStackResourcesOutput": { - "base": "

    The output for a DescribeStackResources action.

    ", - "refs": { - } - }, - "DescribeStacksInput": { - "base": "

    The input for DescribeStacks action.

    ", - "refs": { - } - }, - "DescribeStacksOutput": { - "base": "

    The output for a DescribeStacks action.

    ", - "refs": { - } - }, - "Description": { - "base": null, - "refs": { - "ChangeSetSummary$Description": "

    Descriptive information about the change set.

    ", - "CreateChangeSetInput$Description": "

    A description to help you identify this change set.

    ", - "DescribeChangeSetOutput$Description": "

    Information about the change set.

    ", - "GetTemplateSummaryOutput$Description": "

    The value that is defined in the Description property of the template.

    ", - "Output$Description": "

    User defined description associated with the output.

    ", - "ParameterDeclaration$Description": "

    The description that is associate with the parameter.

    ", - "Stack$Description": "

    A user-defined description associated with the stack.

    ", - "StackResource$Description": "

    User defined description associated with the resource.

    ", - "StackResourceDetail$Description": "

    User defined description associated with the resource.

    ", - "TemplateParameter$Description": "

    User defined description associated with the parameter.

    ", - "ValidateTemplateOutput$Description": "

    The description found within the template.

    " - } - }, - "DisableRollback": { - "base": null, - "refs": { - "CreateStackInput$DisableRollback": "

    Set to true to disable rollback of the stack if stack creation failed. You can specify either DisableRollback or OnFailure, but not both.

    Default: false

    ", - "Stack$DisableRollback": "

    Boolean to enable or disable rollback on stack creation failures:

    • true: disable rollback

    • false: enable rollback

    " - } - }, - "EstimateTemplateCostInput": { - "base": "

    The input for an EstimateTemplateCost action.

    ", - "refs": { - } - }, - "EstimateTemplateCostOutput": { - "base": "

    The output for a EstimateTemplateCost action.

    ", - "refs": { - } - }, - "EvaluationType": { - "base": null, - "refs": { - "ResourceChangeDetail$Evaluation": "

    Indicates whether AWS CloudFormation can determine the target value, and whether the target value will change before you execute a change set.

    For Static evaluations, AWS CloudFormation can determine that the target value will change, and its value. For example, if you directly modify the InstanceType property of an EC2 instance, AWS CloudFormation knows that this property value will change, and its value, so this is a Static evaluation.

    For Dynamic evaluations, cannot determine the target value because it depends on the result of an intrinsic function, such as a Ref or Fn::GetAtt intrinsic function, when the stack is updated. For example, if your template includes a reference to a resource that is conditionally recreated, the value of the reference (the physical ID of the resource) might change, depending on if the resource is recreated. If the resource is recreated, it will have a new physical ID, so all references to that resource will also be updated.

    " - } - }, - "EventId": { - "base": null, - "refs": { - "StackEvent$EventId": "

    The unique ID of this event.

    " - } - }, - "ExecuteChangeSetInput": { - "base": "

    The input for the ExecuteChangeSet action.

    ", - "refs": { - } - }, - "ExecuteChangeSetOutput": { - "base": "

    The output for the ExecuteChangeSet action.

    ", - "refs": { - } - }, - "ExecutionStatus": { - "base": null, - "refs": { - "ChangeSetSummary$ExecutionStatus": "

    If the change set execution status is AVAILABLE, you can execute the change set. If you can’t execute the change set, the status indicates why. For example, a change set might be in an UNAVAILABLE state because AWS CloudFormation is still creating it or in an OBSOLETE state because the stack was already updated.

    ", - "DescribeChangeSetOutput$ExecutionStatus": "

    If the change set execution status is AVAILABLE, you can execute the change set. If you can’t execute the change set, the status indicates why. For example, a change set might be in an UNAVAILABLE state because AWS CloudFormation is still creating it or in an OBSOLETE state because the stack was already updated.

    " - } - }, - "GetStackPolicyInput": { - "base": "

    The input for the GetStackPolicy action.

    ", - "refs": { - } - }, - "GetStackPolicyOutput": { - "base": "

    The output for the GetStackPolicy action.

    ", - "refs": { - } - }, - "GetTemplateInput": { - "base": "

    The input for a GetTemplate action.

    ", - "refs": { - } - }, - "GetTemplateOutput": { - "base": "

    The output for GetTemplate action.

    ", - "refs": { - } - }, - "GetTemplateSummaryInput": { - "base": "

    The input for the GetTemplateSummary action.

    ", - "refs": { - } - }, - "GetTemplateSummaryOutput": { - "base": "

    The output for the GetTemplateSummary action.

    ", - "refs": { - } - }, - "InsufficientCapabilitiesException": { - "base": "

    The template contains resources with capabilities that were not specified in the Capabilities parameter.

    ", - "refs": { - } - }, - "InvalidChangeSetStatusException": { - "base": "

    The specified change set cannot be used to update the stack. For example, the change set status might be CREATE_IN_PROGRESS or the stack status might be UPDATE_IN_PROGRESS.

    ", - "refs": { - } - }, - "LastUpdatedTime": { - "base": null, - "refs": { - "Stack$LastUpdatedTime": "

    The time the stack was last updated. This field will only be returned if the stack has been updated at least once.

    ", - "StackSummary$LastUpdatedTime": "

    The time the stack was last updated. This field will only be returned if the stack has been updated at least once.

    " - } - }, - "LimitExceededException": { - "base": "

    Quota for the resource has already been reached.

    ", - "refs": { - } - }, - "LimitName": { - "base": null, - "refs": { - "AccountLimit$Name": "

    The name of the account limit. Currently, the only account limit is StackLimit.

    " - } - }, - "LimitValue": { - "base": null, - "refs": { - "AccountLimit$Value": "

    The value that is associated with the account limit name.

    " - } - }, - "ListChangeSetsInput": { - "base": "

    The input for the ListChangeSets action.

    ", - "refs": { - } - }, - "ListChangeSetsOutput": { - "base": "

    The output for the ListChangeSets action.

    ", - "refs": { - } - }, - "ListStackResourcesInput": { - "base": "

    The input for the ListStackResource action.

    ", - "refs": { - } - }, - "ListStackResourcesOutput": { - "base": "

    The output for a ListStackResources action.

    ", - "refs": { - } - }, - "ListStacksInput": { - "base": "

    The input for ListStacks action.

    ", - "refs": { - } - }, - "ListStacksOutput": { - "base": "

    The output for ListStacks action.

    ", - "refs": { - } - }, - "LogicalResourceId": { - "base": null, - "refs": { - "DescribeStackResourceInput$LogicalResourceId": "

    The logical name of the resource as specified in the template.

    Default: There is no default value.

    ", - "DescribeStackResourcesInput$LogicalResourceId": "

    The logical name of the resource as specified in the template.

    Default: There is no default value.

    ", - "ResourceChange$LogicalResourceId": "

    The resource's logical ID, which is defined in the stack's template.

    ", - "RetainResources$member": null, - "SignalResourceInput$LogicalResourceId": "

    The logical ID of the resource that you want to signal. The logical ID is the name of the resource that given in the template.

    ", - "StackEvent$LogicalResourceId": "

    The logical name of the resource specified in the template.

    ", - "StackResource$LogicalResourceId": "

    The logical name of the resource specified in the template.

    ", - "StackResourceDetail$LogicalResourceId": "

    The logical name of the resource specified in the template.

    ", - "StackResourceSummary$LogicalResourceId": "

    The logical name of the resource specified in the template.

    " - } - }, - "Metadata": { - "base": null, - "refs": { - "GetTemplateSummaryOutput$Metadata": "

    The value that is defined for the Metadata property of the template.

    ", - "StackResourceDetail$Metadata": "

    The JSON format content of the Metadata attribute declared for the resource. For more information, see Metadata Attribute in the AWS CloudFormation User Guide.

    " - } - }, - "NextToken": { - "base": null, - "refs": { - "DescribeAccountLimitsInput$NextToken": "

    A string that identifies the next page of limits that you want to retrieve.

    ", - "DescribeAccountLimitsOutput$NextToken": "

    If the output exceeds 1 MB in size, a string that identifies the next page of limits. If no additional page exists, this value is null.

    ", - "DescribeChangeSetInput$NextToken": "

    A string (provided by the DescribeChangeSet response output) that identifies the next page of information that you want to retrieve.

    ", - "DescribeChangeSetOutput$NextToken": "

    If the output exceeds 1 MB, a string that identifies the next page of changes. If there is no additional page, this value is null.

    ", - "DescribeStackEventsInput$NextToken": "

    A string that identifies the next page of events that you want to retrieve.

    ", - "DescribeStackEventsOutput$NextToken": "

    If the output exceeds 1 MB in size, a string that identifies the next page of events. If no additional page exists, this value is null.

    ", - "DescribeStacksInput$NextToken": "

    A string that identifies the next page of stacks that you want to retrieve.

    ", - "DescribeStacksOutput$NextToken": "

    If the output exceeds 1 MB in size, a string that identifies the next page of stacks. If no additional page exists, this value is null.

    ", - "ListChangeSetsInput$NextToken": "

    A string (provided by the ListChangeSets response output) that identifies the next page of change sets that you want to retrieve.

    ", - "ListChangeSetsOutput$NextToken": "

    If the output exceeds 1 MB, a string that identifies the next page of change sets. If there is no additional page, this value is null.

    ", - "ListStackResourcesInput$NextToken": "

    A string that identifies the next page of stack resources that you want to retrieve.

    ", - "ListStackResourcesOutput$NextToken": "

    If the output exceeds 1 MB, a string that identifies the next page of stack resources. If no additional page exists, this value is null.

    ", - "ListStacksInput$NextToken": "

    A string that identifies the next page of stacks that you want to retrieve.

    ", - "ListStacksOutput$NextToken": "

    If the output exceeds 1 MB in size, a string that identifies the next page of stacks. If no additional page exists, this value is null.

    " - } - }, - "NoEcho": { - "base": null, - "refs": { - "ParameterDeclaration$NoEcho": "

    Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management Console.

    ", - "TemplateParameter$NoEcho": "

    Flag indicating whether the parameter should be displayed as plain text in logs and UIs.

    " - } - }, - "NotificationARN": { - "base": null, - "refs": { - "NotificationARNs$member": null - } - }, - "NotificationARNs": { - "base": null, - "refs": { - "CreateChangeSetInput$NotificationARNs": "

    The Amazon Resource Names (ARNs) of Amazon Simple Notification Service (Amazon SNS) topics that AWS CloudFormation associates with the stack. To remove all associated notification topics, specify an empty list.

    ", - "CreateStackInput$NotificationARNs": "

    The Simple Notification Service (SNS) topic ARNs to publish stack related events. You can find your SNS topic ARNs using the SNS console or your Command Line Interface (CLI).

    ", - "DescribeChangeSetOutput$NotificationARNs": "

    The ARNs of the Amazon Simple Notification Service (Amazon SNS) topics that will be associated with the stack if you execute the change set.

    ", - "Stack$NotificationARNs": "

    SNS topic ARNs to which stack related events are published.

    ", - "UpdateStackInput$NotificationARNs": "

    Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that AWS CloudFormation associates with the stack. Specify an empty list to remove all notification topics.

    " - } - }, - "OnFailure": { - "base": null, - "refs": { - "CreateStackInput$OnFailure": "

    Determines what action will be taken if stack creation fails. This must be one of: DO_NOTHING, ROLLBACK, or DELETE. You can specify either OnFailure or DisableRollback, but not both.

    Default: ROLLBACK

    " - } - }, - "Output": { - "base": "

    The Output data type.

    ", - "refs": { - "Outputs$member": null - } - }, - "OutputKey": { - "base": null, - "refs": { - "Output$OutputKey": "

    The key associated with the output.

    " - } - }, - "OutputValue": { - "base": null, - "refs": { - "Output$OutputValue": "

    The value associated with the output.

    " - } - }, - "Outputs": { - "base": null, - "refs": { - "Stack$Outputs": "

    A list of output structures.

    " - } - }, - "Parameter": { - "base": "

    The Parameter data type.

    ", - "refs": { - "Parameters$member": null - } - }, - "ParameterConstraints": { - "base": "

    A set of criteria that AWS CloudFormation uses to validate parameter values. Although other constraints might be defined in the stack template, AWS CloudFormation returns only the AllowedValues property.

    ", - "refs": { - "ParameterDeclaration$ParameterConstraints": "

    The criteria that AWS CloudFormation uses to validate parameter values.

    " - } - }, - "ParameterDeclaration": { - "base": "

    The ParameterDeclaration data type.

    ", - "refs": { - "ParameterDeclarations$member": null - } - }, - "ParameterDeclarations": { - "base": null, - "refs": { - "GetTemplateSummaryOutput$Parameters": "

    A list of parameter declarations that describe various properties for each parameter.

    " - } - }, - "ParameterKey": { - "base": null, - "refs": { - "Parameter$ParameterKey": "

    The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.

    ", - "ParameterDeclaration$ParameterKey": "

    The name that is associated with the parameter.

    ", - "TemplateParameter$ParameterKey": "

    The name associated with the parameter.

    " - } - }, - "ParameterType": { - "base": null, - "refs": { - "ParameterDeclaration$ParameterType": "

    The type of parameter.

    " - } - }, - "ParameterValue": { - "base": null, - "refs": { - "Parameter$ParameterValue": "

    The value associated with the parameter.

    ", - "ParameterDeclaration$DefaultValue": "

    The default value of the parameter.

    ", - "TemplateParameter$DefaultValue": "

    The default value associated with the parameter.

    " - } - }, - "Parameters": { - "base": null, - "refs": { - "CreateChangeSetInput$Parameters": "

    A list of Parameter structures that specify input parameters for the change set. For more information, see the Parameter data type.

    ", - "CreateStackInput$Parameters": "

    A list of Parameter structures that specify input parameters for the stack. For more information, see the Parameter data type.

    ", - "DescribeChangeSetOutput$Parameters": "

    A list of Parameter structures that describes the input parameters and their values used to create the change set. For more information, see the Parameter data type.

    ", - "EstimateTemplateCostInput$Parameters": "

    A list of Parameter structures that specify input parameters.

    ", - "Stack$Parameters": "

    A list of Parameter structures.

    ", - "UpdateStackInput$Parameters": "

    A list of Parameter structures that specify input parameters for the stack. For more information, see the Parameter data type.

    " - } - }, - "PhysicalResourceId": { - "base": null, - "refs": { - "DescribeStackResourcesInput$PhysicalResourceId": "

    The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

    For example, for an Amazon Elastic Compute Cloud (EC2) instance, PhysicalResourceId corresponds to the InstanceId. You can pass the EC2 InstanceId to DescribeStackResources to find which stack the instance belongs to and what other resources are part of the stack.

    Required: Conditional. If you do not specify PhysicalResourceId, you must specify StackName.

    Default: There is no default value.

    ", - "ResourceChange$PhysicalResourceId": "

    The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.

    ", - "StackEvent$PhysicalResourceId": "

    The name or unique identifier associated with the physical instance of the resource.

    ", - "StackResource$PhysicalResourceId": "

    The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

    ", - "StackResourceDetail$PhysicalResourceId": "

    The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

    ", - "StackResourceSummary$PhysicalResourceId": "

    The name or unique identifier that corresponds to a physical instance ID of the resource.

    " - } - }, - "PropertyName": { - "base": null, - "refs": { - "ResourceTargetDefinition$Name": "

    If the Attribute value is Properties, the name of the property. For all other attributes, the value is null.

    " - } - }, - "Replacement": { - "base": null, - "refs": { - "ResourceChange$Replacement": "

    For the Modify action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of the RequiresRecreation property in the ResourceTargetDefinition structure. For example, if the RequiresRecreation field is Always and the Evaluation field is Static, Replacement is True. If the RequiresRecreation field is Always and the Evaluation field is Dynamic, Replacement is Conditionally.

    If you have multiple changes with different RequiresRecreation values, the Replacement value depends on the change with the most impact. A RequiresRecreation value of Always has the most impact, followed by Conditionally, and then Never.

    " - } - }, - "RequiresRecreation": { - "base": null, - "refs": { - "ResourceTargetDefinition$RequiresRecreation": "

    If the Attribute value is Properties, indicates whether a change to this property causes the resource to be recreated. The value can be Never, Always, or Conditionally. To determine the conditions for a Conditionally recreation, see the update behavior for that property in the AWS CloudFormation User Guide.

    " - } - }, - "ResourceAttribute": { - "base": null, - "refs": { - "ResourceTargetDefinition$Attribute": "

    Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata, Properties, or Tags.

    ", - "Scope$member": null - } - }, - "ResourceChange": { - "base": "

    The ResourceChange structure describes the resource and the action that AWS CloudFormation will perform on it if you execute this change set.

    ", - "refs": { - "Change$ResourceChange": "

    A ResourceChange structure that describes the resource and action that AWS CloudFormation will perform.

    " - } - }, - "ResourceChangeDetail": { - "base": "

    For a resource with Modify as the action, the ResourceChange structure describes the changes AWS CloudFormation will make to that resource.

    ", - "refs": { - "ResourceChangeDetails$member": null - } - }, - "ResourceChangeDetails": { - "base": null, - "refs": { - "ResourceChange$Details": "

    For the Modify action, a list of ResourceChangeDetail structures that describes the changes that AWS CloudFormation will make to the resource.

    " - } - }, - "ResourceProperties": { - "base": null, - "refs": { - "StackEvent$ResourceProperties": "

    BLOB of the properties used to create the resource.

    " - } - }, - "ResourceSignalStatus": { - "base": null, - "refs": { - "SignalResourceInput$Status": "

    The status of the signal, which is either success or failure. A failure signal causes AWS CloudFormation to immediately fail the stack creation or update.

    " - } - }, - "ResourceSignalUniqueId": { - "base": null, - "refs": { - "SignalResourceInput$UniqueId": "

    A unique ID of the signal. When you signal Amazon EC2 instances or Auto Scaling groups, specify the instance ID that you are signaling as the unique ID. If you send multiple signals to a single resource (such as signaling a wait condition), each signal requires a different unique ID.

    " - } - }, - "ResourceStatus": { - "base": null, - "refs": { - "StackEvent$ResourceStatus": "

    Current status of the resource.

    ", - "StackResource$ResourceStatus": "

    Current status of the resource.

    ", - "StackResourceDetail$ResourceStatus": "

    Current status of the resource.

    ", - "StackResourceSummary$ResourceStatus": "

    Current status of the resource.

    " - } - }, - "ResourceStatusReason": { - "base": null, - "refs": { - "StackEvent$ResourceStatusReason": "

    Success/failure message associated with the resource.

    ", - "StackResource$ResourceStatusReason": "

    Success/failure message associated with the resource.

    ", - "StackResourceDetail$ResourceStatusReason": "

    Success/failure message associated with the resource.

    ", - "StackResourceSummary$ResourceStatusReason": "

    Success/failure message associated with the resource.

    " - } - }, - "ResourceTargetDefinition": { - "base": "

    The field that AWS CloudFormation will change, such as the name of a resource's property, and whether the resource will be recreated.

    ", - "refs": { - "ResourceChangeDetail$Target": "

    A ResourceTargetDefinition structure that describes the field that AWS CloudFormation will change and whether the resource will be recreated.

    " - } - }, - "ResourceType": { - "base": null, - "refs": { - "ResourceChange$ResourceType": "

    The type of AWS CloudFormation resource, such as AWS::S3::Bucket.

    ", - "ResourceTypes$member": null, - "StackEvent$ResourceType": "

    Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

    ", - "StackResource$ResourceType": "

    Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

    ", - "StackResourceDetail$ResourceType": "

    Type of resource. ((For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

    ", - "StackResourceSummary$ResourceType": "

    Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

    " - } - }, - "ResourceTypes": { - "base": null, - "refs": { - "CreateChangeSetInput$ResourceTypes": "

    The template resource types that you have permissions to work with if you execute this change set, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance.

    If the list of resource types doesn't include a resource type that you're updating, the stack update fails. By default, AWS CloudFormation grants permissions to all resource types. AWS Identity and Access Management (IAM) uses this parameter for condition keys in IAM policies for AWS CloudFormation. For more information, see Controlling Access with AWS Identity and Access Management in the AWS CloudFormation User Guide.

    ", - "CreateStackInput$ResourceTypes": "

    The template resource types that you have permissions to work with for this create stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. Use the following syntax to describe template resource types: AWS::* (for all AWS resource), Custom::* (for all custom resources), Custom::logical_ID (for a specific custom resource), AWS::service_name::* (for all resources of a particular AWS service), and AWS::service_name::resource_logical_ID (for a specific AWS resource).

    If the list of resource types doesn't include a resource that you're creating, the stack creation fails. By default, AWS CloudFormation grants permissions to all resource types. AWS Identity and Access Management (IAM) uses this parameter for AWS CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with AWS Identity and Access Management.

    ", - "GetTemplateSummaryOutput$ResourceTypes": "

    A list of all the template resource types that are defined in the template, such as AWS::EC2::Instance, AWS::Dynamo::Table, and Custom::MyCustomInstance.

    ", - "UpdateStackInput$ResourceTypes": "

    The template resource types that you have permissions to work with for this update stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance.

    If the list of resource types doesn't include a resource that you're updating, the stack update fails. By default, AWS CloudFormation grants permissions to all resource types. AWS Identity and Access Management (IAM) uses this parameter for AWS CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with AWS Identity and Access Management.

    " - } - }, - "RetainResources": { - "base": null, - "refs": { - "DeleteStackInput$RetainResources": "

    For stacks in the DELETE_FAILED state, a list of resource logical IDs that are associated with the resources you want to retain. During deletion, AWS CloudFormation deletes the stack but does not delete the retained resources.

    Retaining resources is useful when you cannot delete a resource, such as a non-empty S3 bucket, but you want to delete the stack.

    " - } - }, - "Scope": { - "base": null, - "refs": { - "ResourceChange$Scope": "

    For the Modify action, indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata, Properties, or Tags.

    " - } - }, - "SetStackPolicyInput": { - "base": "

    The input for the SetStackPolicy action.

    ", - "refs": { - } - }, - "SignalResourceInput": { - "base": "

    The input for the SignalResource action.

    ", - "refs": { - } - }, - "Stack": { - "base": "

    The Stack data type.

    ", - "refs": { - "Stacks$member": null - } - }, - "StackEvent": { - "base": "

    The StackEvent data type.

    ", - "refs": { - "StackEvents$member": null - } - }, - "StackEvents": { - "base": null, - "refs": { - "DescribeStackEventsOutput$StackEvents": "

    A list of StackEvents structures.

    " - } - }, - "StackId": { - "base": null, - "refs": { - "ChangeSetSummary$StackId": "

    The ID of the stack with which the change set is associated.

    ", - "CreateStackOutput$StackId": "

    Unique identifier of the stack.

    ", - "DescribeChangeSetOutput$StackId": "

    The ARN of the stack that is associated with the change set.

    ", - "Stack$StackId": "

    Unique identifier of the stack.

    ", - "StackEvent$StackId": "

    The unique ID name of the instance of the stack.

    ", - "StackResource$StackId": "

    Unique identifier of the stack.

    ", - "StackResourceDetail$StackId": "

    Unique identifier of the stack.

    ", - "StackSummary$StackId": "

    Unique stack identifier.

    ", - "UpdateStackOutput$StackId": "

    Unique identifier of the stack.

    " - } - }, - "StackName": { - "base": null, - "refs": { - "CancelUpdateStackInput$StackName": "

    The name or the unique stack ID that is associated with the stack.

    ", - "ChangeSetSummary$StackName": "

    The name of the stack with which the change set is associated.

    ", - "CreateStackInput$StackName": "

    The name that is associated with the stack. The name must be unique in the region in which you are creating the stack.

    A stack name can contain only alphanumeric characters (case sensitive) and hyphens. It must start with an alphabetic character and cannot be longer than 128 characters.

    ", - "DeleteStackInput$StackName": "

    The name or the unique stack ID that is associated with the stack.

    ", - "DescribeChangeSetOutput$StackName": "

    The name of the stack that is associated with the change set.

    ", - "DescribeStackEventsInput$StackName": "

    The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

    • Running stacks: You can specify either the stack's name or its unique stack ID.

    • Deleted stacks: You must specify the unique stack ID.

    Default: There is no default value.

    ", - "DescribeStackResourceInput$StackName": "

    The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

    • Running stacks: You can specify either the stack's name or its unique stack ID.

    • Deleted stacks: You must specify the unique stack ID.

    Default: There is no default value.

    ", - "DescribeStackResourcesInput$StackName": "

    The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

    • Running stacks: You can specify either the stack's name or its unique stack ID.

    • Deleted stacks: You must specify the unique stack ID.

    Default: There is no default value.

    Required: Conditional. If you do not specify StackName, you must specify PhysicalResourceId.

    ", - "DescribeStacksInput$StackName": "

    The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

    • Running stacks: You can specify either the stack's name or its unique stack ID.

    • Deleted stacks: You must specify the unique stack ID.

    Default: There is no default value.

    ", - "GetStackPolicyInput$StackName": "

    The name or unique stack ID that is associated with the stack whose policy you want to get.

    ", - "GetTemplateInput$StackName": "

    The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

    • Running stacks: You can specify either the stack's name or its unique stack ID.

    • Deleted stacks: You must specify the unique stack ID.

    Default: There is no default value.

    ", - "ListStackResourcesInput$StackName": "

    The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

    • Running stacks: You can specify either the stack's name or its unique stack ID.

    • Deleted stacks: You must specify the unique stack ID.

    Default: There is no default value.

    ", - "SetStackPolicyInput$StackName": "

    The name or unique stack ID that you want to associate a policy with.

    ", - "Stack$StackName": "

    The name associated with the stack.

    ", - "StackEvent$StackName": "

    The name associated with a stack.

    ", - "StackResource$StackName": "

    The name associated with the stack.

    ", - "StackResourceDetail$StackName": "

    The name associated with the stack.

    ", - "StackSummary$StackName": "

    The name associated with the stack.

    ", - "UpdateStackInput$StackName": "

    The name or unique stack ID of the stack to update.

    " - } - }, - "StackNameOrId": { - "base": null, - "refs": { - "ContinueUpdateRollbackInput$StackName": "

    The name or the unique ID of the stack that you want to continue rolling back.

    ", - "CreateChangeSetInput$StackName": "

    The name or the unique ID of the stack for which you are creating a change set. AWS CloudFormation generates the change set by comparing this stack's information with the information that you submit, such as a modified template or different parameter input values.

    ", - "DeleteChangeSetInput$StackName": "

    If you specified the name of a change set to delete, specify the stack name or ID (ARN) that is associated with it.

    ", - "DescribeChangeSetInput$StackName": "

    If you specified the name of a change set, specify the stack name or ID (ARN) of the change set you want to describe.

    ", - "ExecuteChangeSetInput$StackName": "

    If you specified the name of a change set, specify the stack name or ID (ARN) that is associated with the change set you want to execute.

    ", - "GetTemplateSummaryInput$StackName": "

    The name or the stack ID that is associated with the stack, which are not always interchangeable. For running stacks, you can specify either the stack's name or its unique stack ID. For deleted stack, you must specify the unique stack ID.

    Conditional: You must specify only one of the following parameters: StackName, TemplateBody, or TemplateURL.

    ", - "ListChangeSetsInput$StackName": "

    The name or the Amazon Resource Name (ARN) of the stack for which you want to list change sets.

    ", - "SignalResourceInput$StackName": "

    The stack name or unique stack ID that includes the resource that you want to signal.

    " - } - }, - "StackPolicyBody": { - "base": null, - "refs": { - "CreateStackInput$StackPolicyBody": "

    Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

    ", - "GetStackPolicyOutput$StackPolicyBody": "

    Structure containing the stack policy body. (For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide.)

    ", - "SetStackPolicyInput$StackPolicyBody": "

    Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

    ", - "UpdateStackInput$StackPolicyBody": "

    Structure containing a new stack policy body. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

    You might update the stack policy, for example, in order to protect a new resource that you created during a stack update. If you do not specify a stack policy, the current policy that is associated with the stack is unchanged.

    " - } - }, - "StackPolicyDuringUpdateBody": { - "base": null, - "refs": { - "UpdateStackInput$StackPolicyDuringUpdateBody": "

    Structure containing the temporary overriding stack policy body. You can specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL parameter, but not both.

    If you want to update protected resources, specify a temporary overriding stack policy during this update. If you do not specify a stack policy, the current policy that is associated with the stack will be used.

    " - } - }, - "StackPolicyDuringUpdateURL": { - "base": null, - "refs": { - "UpdateStackInput$StackPolicyDuringUpdateURL": "

    Location of a file containing the temporary overriding stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same region as the stack. You can specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL parameter, but not both.

    If you want to update protected resources, specify a temporary overriding stack policy during this update. If you do not specify a stack policy, the current policy that is associated with the stack will be used.

    " - } - }, - "StackPolicyURL": { - "base": null, - "refs": { - "CreateStackInput$StackPolicyURL": "

    Location of a file containing the stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same region as the stack. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

    ", - "SetStackPolicyInput$StackPolicyURL": "

    Location of a file containing the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an S3 bucket in the same region as the stack. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

    ", - "UpdateStackInput$StackPolicyURL": "

    Location of a file containing the updated stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same region as the stack. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

    You might update the stack policy, for example, in order to protect a new resource that you created during a stack update. If you do not specify a stack policy, the current policy that is associated with the stack is unchanged.

    " - } - }, - "StackResource": { - "base": "

    The StackResource data type.

    ", - "refs": { - "StackResources$member": null - } - }, - "StackResourceDetail": { - "base": "

    Contains detailed information about the specified stack resource.

    ", - "refs": { - "DescribeStackResourceOutput$StackResourceDetail": "

    A StackResourceDetail structure containing the description of the specified resource in the specified stack.

    " - } - }, - "StackResourceSummaries": { - "base": null, - "refs": { - "ListStackResourcesOutput$StackResourceSummaries": "

    A list of StackResourceSummary structures.

    " - } - }, - "StackResourceSummary": { - "base": "

    Contains high-level information about the specified stack resource.

    ", - "refs": { - "StackResourceSummaries$member": null - } - }, - "StackResources": { - "base": null, - "refs": { - "DescribeStackResourcesOutput$StackResources": "

    A list of StackResource structures.

    " - } - }, - "StackStatus": { - "base": null, - "refs": { - "Stack$StackStatus": "

    Current status of the stack.

    ", - "StackStatusFilter$member": null, - "StackSummary$StackStatus": "

    The current status of the stack.

    " - } - }, - "StackStatusFilter": { - "base": null, - "refs": { - "ListStacksInput$StackStatusFilter": "

    Stack status to use as a filter. Specify one or more stack status codes to list only stacks with the specified status codes. For a complete list of stack status codes, see the StackStatus parameter of the Stack data type.

    " - } - }, - "StackStatusReason": { - "base": null, - "refs": { - "Stack$StackStatusReason": "

    Success/failure message associated with the stack status.

    ", - "StackSummary$StackStatusReason": "

    Success/Failure message associated with the stack status.

    " - } - }, - "StackSummaries": { - "base": null, - "refs": { - "ListStacksOutput$StackSummaries": "

    A list of StackSummary structures containing information about the specified stacks.

    " - } - }, - "StackSummary": { - "base": "

    The StackSummary Data Type

    ", - "refs": { - "StackSummaries$member": null - } - }, - "Stacks": { - "base": null, - "refs": { - "DescribeStacksOutput$Stacks": "

    A list of stack structures.

    " - } - }, - "Tag": { - "base": "

    The Tag type enables you to specify a key-value pair that can be used to store information about an AWS CloudFormation stack.

    ", - "refs": { - "Tags$member": null - } - }, - "TagKey": { - "base": null, - "refs": { - "Tag$Key": "

    Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: aws:.

    " - } - }, - "TagValue": { - "base": null, - "refs": { - "Tag$Value": "

    Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

    " - } - }, - "Tags": { - "base": null, - "refs": { - "CreateChangeSetInput$Tags": "

    Key-value pairs to associate with this stack. AWS CloudFormation also propagates these tags to resources in the stack. You can specify a maximum of 10 tags.

    ", - "CreateStackInput$Tags": "

    Key-value pairs to associate with this stack. AWS CloudFormation also propagates these tags to the resources created in the stack. A maximum number of 10 tags can be specified.

    ", - "DescribeChangeSetOutput$Tags": "

    If you execute the change set, the tags that will be associated with the stack.

    ", - "Stack$Tags": "

    A list of Tags that specify information about the stack.

    ", - "UpdateStackInput$Tags": "

    Key-value pairs to associate with this stack. AWS CloudFormation also propagates these tags to supported resources in the stack. You can specify a maximum number of 10 tags.

    If you don't specify this parameter, AWS CloudFormation doesn't modify the stack's tags. If you specify an empty value, AWS CloudFormation removes all associated tags.

    " - } - }, - "TemplateBody": { - "base": null, - "refs": { - "CreateChangeSetInput$TemplateBody": "

    A structure that contains the body of the revised template, with a minimum length of 1 byte and a maximum length of 51,200 bytes. AWS CloudFormation generates the change set by comparing this template with the template of the stack that you specified.

    Conditional: You must specify only TemplateBody or TemplateURL.

    ", - "CreateStackInput$TemplateBody": "

    Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. For more information, go to Template Anatomy in the AWS CloudFormation User Guide.

    Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.

    ", - "EstimateTemplateCostInput$TemplateBody": "

    Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.)

    Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.

    ", - "GetTemplateOutput$TemplateBody": "

    Structure containing the template body. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.)

    ", - "GetTemplateSummaryInput$TemplateBody": "

    Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. For more information about templates, see Template Anatomy in the AWS CloudFormation User Guide.

    Conditional: You must specify only one of the following parameters: StackName, TemplateBody, or TemplateURL.

    ", - "UpdateStackInput$TemplateBody": "

    Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.)

    Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.

    ", - "ValidateTemplateInput$TemplateBody": "

    Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. For more information, go to Template Anatomy in the AWS CloudFormation User Guide.

    Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

    " - } - }, - "TemplateDescription": { - "base": null, - "refs": { - "StackSummary$TemplateDescription": "

    The template description of the template used to create the stack.

    " - } - }, - "TemplateParameter": { - "base": "

    The TemplateParameter data type.

    ", - "refs": { - "TemplateParameters$member": null - } - }, - "TemplateParameters": { - "base": null, - "refs": { - "ValidateTemplateOutput$Parameters": "

    A list of TemplateParameter structures.

    " - } - }, - "TemplateURL": { - "base": null, - "refs": { - "CreateChangeSetInput$TemplateURL": "

    The location of the file that contains the revised template. The URL must point to a template (max size: 460,800 bytes) that is located in an S3 bucket. AWS CloudFormation generates the change set by comparing this template with the stack that you specified.

    Conditional: You must specify only TemplateBody or TemplateURL.

    ", - "CreateStackInput$TemplateURL": "

    Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) that is located in an Amazon S3 bucket. For more information, go to the Template Anatomy in the AWS CloudFormation User Guide.

    Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.

    ", - "EstimateTemplateCostInput$TemplateURL": "

    Location of file containing the template body. The URL must point to a template that is located in an Amazon S3 bucket. For more information, go to Template Anatomy in the AWS CloudFormation User Guide.

    Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

    ", - "GetTemplateSummaryInput$TemplateURL": "

    Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) that is located in an Amazon S3 bucket. For more information about templates, see Template Anatomy in the AWS CloudFormation User Guide.

    Conditional: You must specify only one of the following parameters: StackName, TemplateBody, or TemplateURL.

    ", - "UpdateStackInput$TemplateURL": "

    Location of file containing the template body. The URL must point to a template that is located in an Amazon S3 bucket. For more information, go to Template Anatomy in the AWS CloudFormation User Guide.

    Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.

    ", - "ValidateTemplateInput$TemplateURL": "

    Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) that is located in an Amazon S3 bucket. For more information, go to Template Anatomy in the AWS CloudFormation User Guide.

    Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

    " - } - }, - "TimeoutMinutes": { - "base": null, - "refs": { - "CreateStackInput$TimeoutInMinutes": "

    The amount of time that can pass before the stack status becomes CREATE_FAILED; if DisableRollback is not set or is set to false, the stack will be rolled back.

    ", - "Stack$TimeoutInMinutes": "

    The amount of time within which stack creation should complete.

    " - } - }, - "Timestamp": { - "base": null, - "refs": { - "StackEvent$Timestamp": "

    Time the status was updated.

    ", - "StackResource$Timestamp": "

    Time the status was updated.

    ", - "StackResourceDetail$LastUpdatedTimestamp": "

    Time the status was updated.

    ", - "StackResourceSummary$LastUpdatedTimestamp": "

    Time the status was updated.

    " - } - }, - "UpdateStackInput": { - "base": "

    The input for an UpdateStack action.

    ", - "refs": { - } - }, - "UpdateStackOutput": { - "base": "

    The output for an UpdateStack action.

    ", - "refs": { - } - }, - "Url": { - "base": null, - "refs": { - "EstimateTemplateCostOutput$Url": "

    An AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.

    " - } - }, - "UsePreviousTemplate": { - "base": null, - "refs": { - "CreateChangeSetInput$UsePreviousTemplate": "

    Whether to reuse the template that is associated with the stack to create the change set.

    ", - "UpdateStackInput$UsePreviousTemplate": "

    Reuse the existing template that is associated with the stack that you are updating.

    " - } - }, - "UsePreviousValue": { - "base": null, - "refs": { - "Parameter$UsePreviousValue": "

    During a stack update, use the existing parameter value that the stack is using for a given parameter key. If you specify true, do not specify a parameter value.

    " - } - }, - "ValidateTemplateInput": { - "base": "

    The input for ValidateTemplate action.

    ", - "refs": { - } - }, - "ValidateTemplateOutput": { - "base": "

    The output for ValidateTemplate action.

    ", - "refs": { - } - }, - "Version": { - "base": null, - "refs": { - "GetTemplateSummaryOutput$Version": "

    The AWS template format version, which identifies the capabilities of the template.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/waiters-2.json deleted file mode 100644 index f3a5cde1c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/waiters-2.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "version": 2, - "waiters": { - "StackExists": { - "delay": 5, - "operation": "DescribeStacks", - "maxAttempts": 20, - "acceptors": [ - { - "matcher": "status", - "expected": 200, - "state": "success" - }, - { - "matcher": "error", - "expected": "ValidationError", - "state": "retry" - } - ] - }, - "StackCreateComplete": { - "delay": 30, - "operation": "DescribeStacks", - "maxAttempts": 120, - "description": "Wait until stack status is CREATE_COMPLETE.", - "acceptors": [ - { - "expected": "CREATE_COMPLETE", - "matcher": "pathAll", - "state": "success", - "argument": "Stacks[].StackStatus" - }, - { - "expected": "CREATE_FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, - { - "expected": "DELETE_COMPLETE", - "matcher": "pathAny", - "argument": "Stacks[].StackStatus", - "state": "failure" - }, - { - "expected": "DELETE_IN_PROGRESS", - "matcher": "pathAny", - "argument": "Stacks[].StackStatus", - "state": "failure" - }, - { - "expected": "DELETE_FAILED", - "matcher": "pathAny", - "argument": "Stacks[].StackStatus", - "state": "failure" - }, - { - "expected": "ROLLBACK_COMPLETE", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, - { - "expected": "ROLLBACK_FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, - { - "expected": "ROLLBACK_IN_PROGRESS", - "matcher": "pathAny", - "argument": "Stacks[].StackStatus", - "state": "failure" - }, - { - "expected": "ValidationError", - "matcher": "error", - "state": "failure" - } - ] - }, - "StackDeleteComplete": { - "delay": 30, - "operation": "DescribeStacks", - "maxAttempts": 120, - "description": "Wait until stack status is DELETE_COMPLETE.", - "acceptors": [ - { - "expected": "DELETE_COMPLETE", - "matcher": "pathAll", - "state": "success", - "argument": "Stacks[].StackStatus" - }, - { - "expected": "ValidationError", - "matcher": "error", - "state": "success" - }, - { - "expected": "DELETE_FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "CREATE_COMPLETE", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "CREATE_FAILED", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "CREATE_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "ROLLBACK_COMPLETE", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "ROLLBACK_FAILED", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "ROLLBACK_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_COMPLETE", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_COMPLETE", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_FAILED", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - } - ] - }, - "StackUpdateComplete": { - "delay": 30, - "maxAttempts": 120, - "operation": "DescribeStacks", - "description": "Wait until stack status is UPDATE_COMPLETE.", - "acceptors": [ - { - "expected": "UPDATE_COMPLETE", - "matcher": "pathAll", - "state": "success", - "argument": "Stacks[].StackStatus" - }, - { - "expected": "UPDATE_FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, - { - "expected": "UPDATE_ROLLBACK_COMPLETE", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, - { - "expected": "UPDATE_ROLLBACK_FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Stacks[].StackStatus" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "argument": "Stacks[].StackStatus", - "expected": "UPDATE_ROLLBACK_IN_PROGRESS", - "matcher": "pathAny", - "state": "failure" - }, - { - "expected": "ValidationError", - "matcher": "error", - "state": "failure" - } - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/api-2.json deleted file mode 100644 index 5da9d56e9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/api-2.json +++ /dev/null @@ -1,2721 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-07-27", - "endpointPrefix":"cloudfront", - "globalEndpoint":"cloudfront.amazonaws.com", - "serviceAbbreviation":"CloudFront", - "serviceFullName":"Amazon CloudFront", - "signatureVersion":"v4", - "protocol":"rest-xml" - }, - "operations":{ - "CreateCloudFrontOriginAccessIdentity":{ - "name":"CreateCloudFrontOriginAccessIdentity2015_07_27", - "http":{ - "method":"POST", - "requestUri":"/2015-07-27/origin-access-identity/cloudfront", - "responseCode":201 - }, - "input":{"shape":"CreateCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"CreateCloudFrontOriginAccessIdentityResult"}, - "errors":[ - { - "shape":"CloudFrontOriginAccessIdentityAlreadyExists", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"MissingBody", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyCloudFrontOriginAccessIdentities", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InconsistentQuantities", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "CreateDistribution":{ - "name":"CreateDistribution2015_07_27", - "http":{ - "method":"POST", - "requestUri":"/2015-07-27/distribution", - "responseCode":201 - }, - "input":{"shape":"CreateDistributionRequest"}, - "output":{"shape":"CreateDistributionResult"}, - "errors":[ - { - "shape":"CNAMEAlreadyExists", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"DistributionAlreadyExists", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"InvalidOrigin", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidOriginAccessIdentity", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - }, - { - "shape":"TooManyTrustedSigners", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TrustedSignerDoesNotExist", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidViewerCertificate", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidMinimumProtocolVersion", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingBody", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyDistributionCNAMEs", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyDistributions", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidDefaultRootObject", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidRelativePath", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidErrorCode", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidResponseCode", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidRequiredProtocol", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"NoSuchOrigin", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"TooManyOrigins", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyCacheBehaviors", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyCookieNamesInWhiteList", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidForwardCookies", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyHeadersInForwardedValues", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidHeadersForS3Origin", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InconsistentQuantities", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyCertificates", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidLocationCode", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidGeoRestrictionParameter", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidProtocolSettings", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidTTLOrder", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidWebACLId", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "CreateInvalidation":{ - "name":"CreateInvalidation2015_07_27", - "http":{ - "method":"POST", - "requestUri":"/2015-07-27/distribution/{DistributionId}/invalidation", - "responseCode":201 - }, - "input":{"shape":"CreateInvalidationRequest"}, - "output":{"shape":"CreateInvalidationResult"}, - "errors":[ - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - }, - { - "shape":"MissingBody", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"NoSuchDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"BatchTooLarge", - "error":{"httpStatusCode":413}, - "exception":true - }, - { - "shape":"TooManyInvalidationsInProgress", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InconsistentQuantities", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "CreateStreamingDistribution":{ - "name":"CreateStreamingDistribution2015_07_27", - "http":{ - "method":"POST", - "requestUri":"/2015-07-27/streaming-distribution", - "responseCode":201 - }, - "input":{"shape":"CreateStreamingDistributionRequest"}, - "output":{"shape":"CreateStreamingDistributionResult"}, - "errors":[ - { - "shape":"CNAMEAlreadyExists", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"StreamingDistributionAlreadyExists", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"InvalidOrigin", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidOriginAccessIdentity", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - }, - { - "shape":"TooManyTrustedSigners", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TrustedSignerDoesNotExist", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingBody", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyStreamingDistributionCNAMEs", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyStreamingDistributions", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InconsistentQuantities", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "DeleteCloudFrontOriginAccessIdentity":{ - "name":"DeleteCloudFrontOriginAccessIdentity2015_07_27", - "http":{ - "method":"DELETE", - "requestUri":"/2015-07-27/origin-access-identity/cloudfront/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteCloudFrontOriginAccessIdentityRequest"}, - "errors":[ - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - }, - { - "shape":"InvalidIfMatchVersion", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"NoSuchCloudFrontOriginAccessIdentity", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"PreconditionFailed", - "error":{"httpStatusCode":412}, - "exception":true - }, - { - "shape":"CloudFrontOriginAccessIdentityInUse", - "error":{"httpStatusCode":409}, - "exception":true - } - ] - }, - "DeleteDistribution":{ - "name":"DeleteDistribution2015_07_27", - "http":{ - "method":"DELETE", - "requestUri":"/2015-07-27/distribution/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteDistributionRequest"}, - "errors":[ - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - }, - { - "shape":"DistributionNotDisabled", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"InvalidIfMatchVersion", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"NoSuchDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"PreconditionFailed", - "error":{"httpStatusCode":412}, - "exception":true - } - ] - }, - "DeleteStreamingDistribution":{ - "name":"DeleteStreamingDistribution2015_07_27", - "http":{ - "method":"DELETE", - "requestUri":"/2015-07-27/streaming-distribution/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteStreamingDistributionRequest"}, - "errors":[ - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - }, - { - "shape":"StreamingDistributionNotDisabled", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"InvalidIfMatchVersion", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"NoSuchStreamingDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"PreconditionFailed", - "error":{"httpStatusCode":412}, - "exception":true - } - ] - }, - "GetCloudFrontOriginAccessIdentity":{ - "name":"GetCloudFrontOriginAccessIdentity2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/origin-access-identity/cloudfront/{Id}" - }, - "input":{"shape":"GetCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"GetCloudFrontOriginAccessIdentityResult"}, - "errors":[ - { - "shape":"NoSuchCloudFrontOriginAccessIdentity", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - } - ] - }, - "GetCloudFrontOriginAccessIdentityConfig":{ - "name":"GetCloudFrontOriginAccessIdentityConfig2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/origin-access-identity/cloudfront/{Id}/config" - }, - "input":{"shape":"GetCloudFrontOriginAccessIdentityConfigRequest"}, - "output":{"shape":"GetCloudFrontOriginAccessIdentityConfigResult"}, - "errors":[ - { - "shape":"NoSuchCloudFrontOriginAccessIdentity", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - } - ] - }, - "GetDistribution":{ - "name":"GetDistribution2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/distribution/{Id}" - }, - "input":{"shape":"GetDistributionRequest"}, - "output":{"shape":"GetDistributionResult"}, - "errors":[ - { - "shape":"NoSuchDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - } - ] - }, - "GetDistributionConfig":{ - "name":"GetDistributionConfig2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/distribution/{Id}/config" - }, - "input":{"shape":"GetDistributionConfigRequest"}, - "output":{"shape":"GetDistributionConfigResult"}, - "errors":[ - { - "shape":"NoSuchDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - } - ] - }, - "GetInvalidation":{ - "name":"GetInvalidation2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/distribution/{DistributionId}/invalidation/{Id}" - }, - "input":{"shape":"GetInvalidationRequest"}, - "output":{"shape":"GetInvalidationResult"}, - "errors":[ - { - "shape":"NoSuchInvalidation", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"NoSuchDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - } - ] - }, - "GetStreamingDistribution":{ - "name":"GetStreamingDistribution2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/streaming-distribution/{Id}" - }, - "input":{"shape":"GetStreamingDistributionRequest"}, - "output":{"shape":"GetStreamingDistributionResult"}, - "errors":[ - { - "shape":"NoSuchStreamingDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - } - ] - }, - "GetStreamingDistributionConfig":{ - "name":"GetStreamingDistributionConfig2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/streaming-distribution/{Id}/config" - }, - "input":{"shape":"GetStreamingDistributionConfigRequest"}, - "output":{"shape":"GetStreamingDistributionConfigResult"}, - "errors":[ - { - "shape":"NoSuchStreamingDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - } - ] - }, - "ListCloudFrontOriginAccessIdentities":{ - "name":"ListCloudFrontOriginAccessIdentities2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/origin-access-identity/cloudfront" - }, - "input":{"shape":"ListCloudFrontOriginAccessIdentitiesRequest"}, - "output":{"shape":"ListCloudFrontOriginAccessIdentitiesResult"}, - "errors":[ - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "ListDistributions":{ - "name":"ListDistributions2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/distribution" - }, - "input":{"shape":"ListDistributionsRequest"}, - "output":{"shape":"ListDistributionsResult"}, - "errors":[ - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "ListDistributionsByWebACLId":{ - "name":"ListDistributionsByWebACLId2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/distributionsByWebACLId/{WebACLId}" - }, - "input":{"shape":"ListDistributionsByWebACLIdRequest"}, - "output":{"shape":"ListDistributionsByWebACLIdResult"}, - "errors":[ - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidWebACLId", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "ListInvalidations":{ - "name":"ListInvalidations2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/distribution/{DistributionId}/invalidation" - }, - "input":{"shape":"ListInvalidationsRequest"}, - "output":{"shape":"ListInvalidationsResult"}, - "errors":[ - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"NoSuchDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - } - ] - }, - "ListStreamingDistributions":{ - "name":"ListStreamingDistributions2015_07_27", - "http":{ - "method":"GET", - "requestUri":"/2015-07-27/streaming-distribution" - }, - "input":{"shape":"ListStreamingDistributionsRequest"}, - "output":{"shape":"ListStreamingDistributionsResult"}, - "errors":[ - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "UpdateCloudFrontOriginAccessIdentity":{ - "name":"UpdateCloudFrontOriginAccessIdentity2015_07_27", - "http":{ - "method":"PUT", - "requestUri":"/2015-07-27/origin-access-identity/cloudfront/{Id}/config" - }, - "input":{"shape":"UpdateCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"UpdateCloudFrontOriginAccessIdentityResult"}, - "errors":[ - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - }, - { - "shape":"IllegalUpdate", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidIfMatchVersion", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingBody", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"NoSuchCloudFrontOriginAccessIdentity", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"PreconditionFailed", - "error":{"httpStatusCode":412}, - "exception":true - }, - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InconsistentQuantities", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "UpdateDistribution":{ - "name":"UpdateDistribution2015_07_27", - "http":{ - "method":"PUT", - "requestUri":"/2015-07-27/distribution/{Id}/config" - }, - "input":{"shape":"UpdateDistributionRequest"}, - "output":{"shape":"UpdateDistributionResult"}, - "errors":[ - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - }, - { - "shape":"CNAMEAlreadyExists", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"IllegalUpdate", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidIfMatchVersion", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingBody", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"NoSuchDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"PreconditionFailed", - "error":{"httpStatusCode":412}, - "exception":true - }, - { - "shape":"TooManyDistributionCNAMEs", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidDefaultRootObject", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidRelativePath", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidErrorCode", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidResponseCode", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidOriginAccessIdentity", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyTrustedSigners", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TrustedSignerDoesNotExist", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidViewerCertificate", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidMinimumProtocolVersion", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidRequiredProtocol", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"NoSuchOrigin", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"TooManyOrigins", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyCacheBehaviors", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyCookieNamesInWhiteList", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidForwardCookies", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyHeadersInForwardedValues", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidHeadersForS3Origin", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InconsistentQuantities", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyCertificates", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidLocationCode", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidGeoRestrictionParameter", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidTTLOrder", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidWebACLId", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "UpdateStreamingDistribution":{ - "name":"UpdateStreamingDistribution2015_07_27", - "http":{ - "method":"PUT", - "requestUri":"/2015-07-27/streaming-distribution/{Id}/config" - }, - "input":{"shape":"UpdateStreamingDistributionRequest"}, - "output":{"shape":"UpdateStreamingDistributionResult"}, - "errors":[ - { - "shape":"AccessDenied", - "error":{"httpStatusCode":403}, - "exception":true - }, - { - "shape":"CNAMEAlreadyExists", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"IllegalUpdate", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidIfMatchVersion", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"MissingBody", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"NoSuchStreamingDistribution", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"PreconditionFailed", - "error":{"httpStatusCode":412}, - "exception":true - }, - { - "shape":"TooManyStreamingDistributionCNAMEs", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidArgument", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidOriginAccessIdentity", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TooManyTrustedSigners", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"TrustedSignerDoesNotExist", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InconsistentQuantities", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - } - }, - "shapes":{ - "AccessDenied":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":403}, - "exception":true - }, - "ActiveTrustedSigners":{ - "type":"structure", - "required":[ - "Enabled", - "Quantity" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"SignerList"} - } - }, - "AliasList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"CNAME" - } - }, - "Aliases":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"AliasList"} - } - }, - "AllowedMethods":{ - "type":"structure", - "required":[ - "Quantity", - "Items" - ], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"MethodsList"}, - "CachedMethods":{"shape":"CachedMethods"} - } - }, - "AwsAccountNumberList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"AwsAccountNumber" - } - }, - "BatchTooLarge":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":413}, - "exception":true - }, - "CNAMEAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CacheBehavior":{ - "type":"structure", - "required":[ - "PathPattern", - "TargetOriginId", - "ForwardedValues", - "TrustedSigners", - "ViewerProtocolPolicy", - "MinTTL" - ], - "members":{ - "PathPattern":{"shape":"string"}, - "TargetOriginId":{"shape":"string"}, - "ForwardedValues":{"shape":"ForwardedValues"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "ViewerProtocolPolicy":{"shape":"ViewerProtocolPolicy"}, - "MinTTL":{"shape":"long"}, - "AllowedMethods":{"shape":"AllowedMethods"}, - "SmoothStreaming":{"shape":"boolean"}, - "DefaultTTL":{"shape":"long"}, - "MaxTTL":{"shape":"long"} - } - }, - "CacheBehaviorList":{ - "type":"list", - "member":{ - "shape":"CacheBehavior", - "locationName":"CacheBehavior" - } - }, - "CacheBehaviors":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CacheBehaviorList"} - } - }, - "CachedMethods":{ - "type":"structure", - "required":[ - "Quantity", - "Items" - ], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"MethodsList"} - } - }, - "CloudFrontOriginAccessIdentity":{ - "type":"structure", - "required":[ - "Id", - "S3CanonicalUserId" - ], - "members":{ - "Id":{"shape":"string"}, - "S3CanonicalUserId":{"shape":"string"}, - "CloudFrontOriginAccessIdentityConfig":{"shape":"CloudFrontOriginAccessIdentityConfig"} - } - }, - "CloudFrontOriginAccessIdentityAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CloudFrontOriginAccessIdentityConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "Comment" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "Comment":{"shape":"string"} - } - }, - "CloudFrontOriginAccessIdentityInUse":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CloudFrontOriginAccessIdentityList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CloudFrontOriginAccessIdentitySummaryList"} - } - }, - "CloudFrontOriginAccessIdentitySummary":{ - "type":"structure", - "required":[ - "Id", - "S3CanonicalUserId", - "Comment" - ], - "members":{ - "Id":{"shape":"string"}, - "S3CanonicalUserId":{"shape":"string"}, - "Comment":{"shape":"string"} - } - }, - "CloudFrontOriginAccessIdentitySummaryList":{ - "type":"list", - "member":{ - "shape":"CloudFrontOriginAccessIdentitySummary", - "locationName":"CloudFrontOriginAccessIdentitySummary" - } - }, - "CookieNameList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Name" - } - }, - "CookieNames":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CookieNameList"} - } - }, - "CookiePreference":{ - "type":"structure", - "required":["Forward"], - "members":{ - "Forward":{"shape":"ItemSelection"}, - "WhitelistedNames":{"shape":"CookieNames"} - } - }, - "CreateCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":["CloudFrontOriginAccessIdentityConfig"], - "members":{ - "CloudFrontOriginAccessIdentityConfig":{ - "shape":"CloudFrontOriginAccessIdentityConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-07-27/"}, - "locationName":"CloudFrontOriginAccessIdentityConfig" - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "CreateCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "CreateDistributionRequest":{ - "type":"structure", - "required":["DistributionConfig"], - "members":{ - "DistributionConfig":{ - "shape":"DistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-07-27/"}, - "locationName":"DistributionConfig" - } - }, - "payload":"DistributionConfig" - }, - "CreateDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "CreateInvalidationRequest":{ - "type":"structure", - "required":[ - "DistributionId", - "InvalidationBatch" - ], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "InvalidationBatch":{ - "shape":"InvalidationBatch", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-07-27/"}, - "locationName":"InvalidationBatch" - } - }, - "payload":"InvalidationBatch" - }, - "CreateInvalidationResult":{ - "type":"structure", - "members":{ - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "Invalidation":{"shape":"Invalidation"} - }, - "payload":"Invalidation" - }, - "CreateStreamingDistributionRequest":{ - "type":"structure", - "required":["StreamingDistributionConfig"], - "members":{ - "StreamingDistributionConfig":{ - "shape":"StreamingDistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-07-27/"}, - "locationName":"StreamingDistributionConfig" - } - }, - "payload":"StreamingDistributionConfig" - }, - "CreateStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "CustomErrorResponse":{ - "type":"structure", - "required":["ErrorCode"], - "members":{ - "ErrorCode":{"shape":"integer"}, - "ResponsePagePath":{"shape":"string"}, - "ResponseCode":{"shape":"string"}, - "ErrorCachingMinTTL":{"shape":"long"} - } - }, - "CustomErrorResponseList":{ - "type":"list", - "member":{ - "shape":"CustomErrorResponse", - "locationName":"CustomErrorResponse" - } - }, - "CustomErrorResponses":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CustomErrorResponseList"} - } - }, - "CustomOriginConfig":{ - "type":"structure", - "required":[ - "HTTPPort", - "HTTPSPort", - "OriginProtocolPolicy" - ], - "members":{ - "HTTPPort":{"shape":"integer"}, - "HTTPSPort":{"shape":"integer"}, - "OriginProtocolPolicy":{"shape":"OriginProtocolPolicy"} - } - }, - "DefaultCacheBehavior":{ - "type":"structure", - "required":[ - "TargetOriginId", - "ForwardedValues", - "TrustedSigners", - "ViewerProtocolPolicy", - "MinTTL" - ], - "members":{ - "TargetOriginId":{"shape":"string"}, - "ForwardedValues":{"shape":"ForwardedValues"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "ViewerProtocolPolicy":{"shape":"ViewerProtocolPolicy"}, - "MinTTL":{"shape":"long"}, - "AllowedMethods":{"shape":"AllowedMethods"}, - "SmoothStreaming":{"shape":"boolean"}, - "DefaultTTL":{"shape":"long"}, - "MaxTTL":{"shape":"long"} - } - }, - "DeleteCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "required":["Id"] - }, - "DeleteDistributionRequest":{ - "type":"structure", - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "required":["Id"] - }, - "DeleteStreamingDistributionRequest":{ - "type":"structure", - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "required":["Id"] - }, - "Distribution":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "InProgressInvalidationBatches", - "DomainName", - "ActiveTrustedSigners", - "DistributionConfig" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "InProgressInvalidationBatches":{"shape":"integer"}, - "DomainName":{"shape":"string"}, - "ActiveTrustedSigners":{"shape":"ActiveTrustedSigners"}, - "DistributionConfig":{"shape":"DistributionConfig"} - } - }, - "DistributionAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DistributionConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "Origins", - "DefaultCacheBehavior", - "Comment", - "Enabled" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "Aliases":{"shape":"Aliases"}, - "DefaultRootObject":{"shape":"string"}, - "Origins":{"shape":"Origins"}, - "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, - "CacheBehaviors":{"shape":"CacheBehaviors"}, - "CustomErrorResponses":{"shape":"CustomErrorResponses"}, - "Comment":{"shape":"string"}, - "Logging":{"shape":"LoggingConfig"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"}, - "ViewerCertificate":{"shape":"ViewerCertificate"}, - "Restrictions":{"shape":"Restrictions"}, - "WebACLId":{"shape":"string"} - } - }, - "DistributionList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"DistributionSummaryList"} - } - }, - "DistributionNotDisabled":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DistributionSummary":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "DomainName", - "Aliases", - "Origins", - "DefaultCacheBehavior", - "CacheBehaviors", - "CustomErrorResponses", - "Comment", - "PriceClass", - "Enabled", - "ViewerCertificate", - "Restrictions", - "WebACLId" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "Aliases":{"shape":"Aliases"}, - "Origins":{"shape":"Origins"}, - "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, - "CacheBehaviors":{"shape":"CacheBehaviors"}, - "CustomErrorResponses":{"shape":"CustomErrorResponses"}, - "Comment":{"shape":"string"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"}, - "ViewerCertificate":{"shape":"ViewerCertificate"}, - "Restrictions":{"shape":"Restrictions"}, - "WebACLId":{"shape":"string"} - } - }, - "DistributionSummaryList":{ - "type":"list", - "member":{ - "shape":"DistributionSummary", - "locationName":"DistributionSummary" - } - }, - "ForwardedValues":{ - "type":"structure", - "required":[ - "QueryString", - "Cookies" - ], - "members":{ - "QueryString":{"shape":"boolean"}, - "Cookies":{"shape":"CookiePreference"}, - "Headers":{"shape":"Headers"} - } - }, - "GeoRestriction":{ - "type":"structure", - "required":[ - "RestrictionType", - "Quantity" - ], - "members":{ - "RestrictionType":{"shape":"GeoRestrictionType"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"LocationList"} - } - }, - "GeoRestrictionType":{ - "type":"string", - "enum":[ - "blacklist", - "whitelist", - "none" - ] - }, - "GetCloudFrontOriginAccessIdentityConfigRequest":{ - "type":"structure", - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - }, - "required":["Id"] - }, - "GetCloudFrontOriginAccessIdentityConfigResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentityConfig":{"shape":"CloudFrontOriginAccessIdentityConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "GetCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - }, - "required":["Id"] - }, - "GetCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "GetDistributionConfigRequest":{ - "type":"structure", - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - }, - "required":["Id"] - }, - "GetDistributionConfigResult":{ - "type":"structure", - "members":{ - "DistributionConfig":{"shape":"DistributionConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"DistributionConfig" - }, - "GetDistributionRequest":{ - "type":"structure", - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - }, - "required":["Id"] - }, - "GetDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "GetInvalidationRequest":{ - "type":"structure", - "required":[ - "DistributionId", - "Id" - ], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetInvalidationResult":{ - "type":"structure", - "members":{ - "Invalidation":{"shape":"Invalidation"} - }, - "payload":"Invalidation" - }, - "GetStreamingDistributionConfigRequest":{ - "type":"structure", - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - }, - "required":["Id"] - }, - "GetStreamingDistributionConfigResult":{ - "type":"structure", - "members":{ - "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistributionConfig" - }, - "GetStreamingDistributionRequest":{ - "type":"structure", - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - }, - "required":["Id"] - }, - "GetStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "HeaderList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Name" - } - }, - "Headers":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"HeaderList"} - } - }, - "IllegalUpdate":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InconsistentQuantities":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidArgument":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidDefaultRootObject":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidErrorCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidForwardCookies":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidGeoRestrictionParameter":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidHeadersForS3Origin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidIfMatchVersion":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidLocationCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidMinimumProtocolVersion":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidOrigin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidOriginAccessIdentity":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidProtocolSettings":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidRelativePath":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidRequiredProtocol":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidResponseCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidTTLOrder":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidViewerCertificate":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidWebACLId":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "Invalidation":{ - "type":"structure", - "required":[ - "Id", - "Status", - "CreateTime", - "InvalidationBatch" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "CreateTime":{"shape":"timestamp"}, - "InvalidationBatch":{"shape":"InvalidationBatch"} - } - }, - "InvalidationBatch":{ - "type":"structure", - "required":[ - "Paths", - "CallerReference" - ], - "members":{ - "Paths":{"shape":"Paths"}, - "CallerReference":{"shape":"string"} - } - }, - "InvalidationList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"InvalidationSummaryList"} - } - }, - "InvalidationSummary":{ - "type":"structure", - "required":[ - "Id", - "CreateTime", - "Status" - ], - "members":{ - "Id":{"shape":"string"}, - "CreateTime":{"shape":"timestamp"}, - "Status":{"shape":"string"} - } - }, - "InvalidationSummaryList":{ - "type":"list", - "member":{ - "shape":"InvalidationSummary", - "locationName":"InvalidationSummary" - } - }, - "ItemSelection":{ - "type":"string", - "enum":[ - "none", - "whitelist", - "all" - ] - }, - "KeyPairIdList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"KeyPairId" - } - }, - "KeyPairIds":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"KeyPairIdList"} - } - }, - "ListCloudFrontOriginAccessIdentitiesRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListCloudFrontOriginAccessIdentitiesResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentityList":{"shape":"CloudFrontOriginAccessIdentityList"} - }, - "payload":"CloudFrontOriginAccessIdentityList" - }, - "ListDistributionsByWebACLIdRequest":{ - "type":"structure", - "required":["WebACLId"], - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - }, - "WebACLId":{ - "shape":"string", - "location":"uri", - "locationName":"WebACLId" - } - } - }, - "ListDistributionsByWebACLIdResult":{ - "type":"structure", - "members":{ - "DistributionList":{"shape":"DistributionList"} - }, - "payload":"DistributionList" - }, - "ListDistributionsRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListDistributionsResult":{ - "type":"structure", - "members":{ - "DistributionList":{"shape":"DistributionList"} - }, - "payload":"DistributionList" - }, - "ListInvalidationsRequest":{ - "type":"structure", - "required":["DistributionId"], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListInvalidationsResult":{ - "type":"structure", - "members":{ - "InvalidationList":{"shape":"InvalidationList"} - }, - "payload":"InvalidationList" - }, - "ListStreamingDistributionsRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListStreamingDistributionsResult":{ - "type":"structure", - "members":{ - "StreamingDistributionList":{"shape":"StreamingDistributionList"} - }, - "payload":"StreamingDistributionList" - }, - "LocationList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Location" - } - }, - "LoggingConfig":{ - "type":"structure", - "required":[ - "Enabled", - "IncludeCookies", - "Bucket", - "Prefix" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "IncludeCookies":{"shape":"boolean"}, - "Bucket":{"shape":"string"}, - "Prefix":{"shape":"string"} - } - }, - "Method":{ - "type":"string", - "enum":[ - "GET", - "HEAD", - "POST", - "PUT", - "PATCH", - "OPTIONS", - "DELETE" - ] - }, - "MethodsList":{ - "type":"list", - "member":{ - "shape":"Method", - "locationName":"Method" - } - }, - "MinimumProtocolVersion":{ - "type":"string", - "enum":[ - "SSLv3", - "TLSv1" - ] - }, - "MissingBody":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "NoSuchCloudFrontOriginAccessIdentity":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchDistribution":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchInvalidation":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchOrigin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchStreamingDistribution":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "Origin":{ - "type":"structure", - "required":[ - "Id", - "DomainName" - ], - "members":{ - "Id":{"shape":"string"}, - "DomainName":{"shape":"string"}, - "OriginPath":{"shape":"string"}, - "S3OriginConfig":{"shape":"S3OriginConfig"}, - "CustomOriginConfig":{"shape":"CustomOriginConfig"} - } - }, - "OriginList":{ - "type":"list", - "member":{ - "shape":"Origin", - "locationName":"Origin" - }, - "min":1 - }, - "OriginProtocolPolicy":{ - "type":"string", - "enum":[ - "http-only", - "match-viewer" - ] - }, - "Origins":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"OriginList"} - } - }, - "PathList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Path" - } - }, - "Paths":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"PathList"} - } - }, - "PreconditionFailed":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":412}, - "exception":true - }, - "PriceClass":{ - "type":"string", - "enum":[ - "PriceClass_100", - "PriceClass_200", - "PriceClass_All" - ] - }, - "Restrictions":{ - "type":"structure", - "required":["GeoRestriction"], - "members":{ - "GeoRestriction":{"shape":"GeoRestriction"} - } - }, - "S3Origin":{ - "type":"structure", - "required":[ - "DomainName", - "OriginAccessIdentity" - ], - "members":{ - "DomainName":{"shape":"string"}, - "OriginAccessIdentity":{"shape":"string"} - } - }, - "S3OriginConfig":{ - "type":"structure", - "required":["OriginAccessIdentity"], - "members":{ - "OriginAccessIdentity":{"shape":"string"} - } - }, - "SSLSupportMethod":{ - "type":"string", - "enum":[ - "sni-only", - "vip" - ] - }, - "Signer":{ - "type":"structure", - "members":{ - "AwsAccountNumber":{"shape":"string"}, - "KeyPairIds":{"shape":"KeyPairIds"} - } - }, - "SignerList":{ - "type":"list", - "member":{ - "shape":"Signer", - "locationName":"Signer" - } - }, - "StreamingDistribution":{ - "type":"structure", - "required":[ - "Id", - "Status", - "DomainName", - "ActiveTrustedSigners", - "StreamingDistributionConfig" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "ActiveTrustedSigners":{"shape":"ActiveTrustedSigners"}, - "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"} - } - }, - "StreamingDistributionAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "StreamingDistributionConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "S3Origin", - "Comment", - "TrustedSigners", - "Enabled" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "S3Origin":{"shape":"S3Origin"}, - "Aliases":{"shape":"Aliases"}, - "Comment":{"shape":"string"}, - "Logging":{"shape":"StreamingLoggingConfig"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"} - } - }, - "StreamingDistributionList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"StreamingDistributionSummaryList"} - } - }, - "StreamingDistributionNotDisabled":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "StreamingDistributionSummary":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "DomainName", - "S3Origin", - "Aliases", - "TrustedSigners", - "Comment", - "PriceClass", - "Enabled" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "S3Origin":{"shape":"S3Origin"}, - "Aliases":{"shape":"Aliases"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "Comment":{"shape":"string"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"} - } - }, - "StreamingDistributionSummaryList":{ - "type":"list", - "member":{ - "shape":"StreamingDistributionSummary", - "locationName":"StreamingDistributionSummary" - } - }, - "StreamingLoggingConfig":{ - "type":"structure", - "required":[ - "Enabled", - "Bucket", - "Prefix" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Bucket":{"shape":"string"}, - "Prefix":{"shape":"string"} - } - }, - "TooManyCacheBehaviors":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCertificates":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCloudFrontOriginAccessIdentities":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCookieNamesInWhiteList":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyDistributionCNAMEs":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyDistributions":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyHeadersInForwardedValues":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyInvalidationsInProgress":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyOrigins":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyStreamingDistributionCNAMEs":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyStreamingDistributions":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyTrustedSigners":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TrustedSignerDoesNotExist":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TrustedSigners":{ - "type":"structure", - "required":[ - "Enabled", - "Quantity" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"AwsAccountNumberList"} - } - }, - "UpdateCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":[ - "CloudFrontOriginAccessIdentityConfig", - "Id" - ], - "members":{ - "CloudFrontOriginAccessIdentityConfig":{ - "shape":"CloudFrontOriginAccessIdentityConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-07-27/"}, - "locationName":"CloudFrontOriginAccessIdentityConfig" - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "UpdateCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "UpdateDistributionRequest":{ - "type":"structure", - "required":[ - "DistributionConfig", - "Id" - ], - "members":{ - "DistributionConfig":{ - "shape":"DistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-07-27/"}, - "locationName":"DistributionConfig" - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"DistributionConfig" - }, - "UpdateDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "UpdateStreamingDistributionRequest":{ - "type":"structure", - "required":[ - "StreamingDistributionConfig", - "Id" - ], - "members":{ - "StreamingDistributionConfig":{ - "shape":"StreamingDistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-07-27/"}, - "locationName":"StreamingDistributionConfig" - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"StreamingDistributionConfig" - }, - "UpdateStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "ViewerCertificate":{ - "type":"structure", - "members":{ - "IAMCertificateId":{"shape":"string"}, - "CloudFrontDefaultCertificate":{"shape":"boolean"}, - "SSLSupportMethod":{"shape":"SSLSupportMethod"}, - "MinimumProtocolVersion":{"shape":"MinimumProtocolVersion"} - } - }, - "ViewerProtocolPolicy":{ - "type":"string", - "enum":[ - "allow-all", - "https-only", - "redirect-to-https" - ] - }, - "boolean":{"type":"boolean"}, - "integer":{"type":"integer"}, - "long":{"type":"long"}, - "string":{"type":"string"}, - "timestamp":{"type":"timestamp"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/docs-2.json deleted file mode 100644 index 07747194c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/docs-2.json +++ /dev/null @@ -1,1164 +0,0 @@ -{ - "version": "2.0", - "operations": { - "CreateCloudFrontOriginAccessIdentity": "Create a new origin access identity.", - "CreateDistribution": "Create a new distribution.", - "CreateInvalidation": "Create a new invalidation.", - "CreateStreamingDistribution": "Create a new streaming distribution.", - "DeleteCloudFrontOriginAccessIdentity": "Delete an origin access identity.", - "DeleteDistribution": "Delete a distribution.", - "DeleteStreamingDistribution": "Delete a streaming distribution.", - "GetCloudFrontOriginAccessIdentity": "Get the information about an origin access identity.", - "GetCloudFrontOriginAccessIdentityConfig": "Get the configuration information about an origin access identity.", - "GetDistribution": "Get the information about a distribution.", - "GetDistributionConfig": "Get the configuration information about a distribution.", - "GetInvalidation": "Get the information about an invalidation.", - "GetStreamingDistribution": "Get the information about a streaming distribution.", - "GetStreamingDistributionConfig": "Get the configuration information about a streaming distribution.", - "ListCloudFrontOriginAccessIdentities": "List origin access identities.", - "ListDistributions": "List distributions.", - "ListDistributionsByWebACLId": "List the distributions that are associated with a specified AWS WAF web ACL.", - "ListInvalidations": "List invalidation batches.", - "ListStreamingDistributions": "List streaming distributions.", - "UpdateCloudFrontOriginAccessIdentity": "Update an origin access identity.", - "UpdateDistribution": "Update a distribution.", - "UpdateStreamingDistribution": "Update a streaming distribution." - }, - "service": null, - "shapes": { - "AccessDenied": { - "base": "Access denied.", - "refs": { - } - }, - "ActiveTrustedSigners": { - "base": "A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for the default cache behavior or for any of the other cache behaviors for this distribution. These are accounts that you want to allow to create signed URLs for private content.", - "refs": { - "Distribution$ActiveTrustedSigners": "CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs.", - "StreamingDistribution$ActiveTrustedSigners": "CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs." - } - }, - "AliasList": { - "base": null, - "refs": { - "Aliases$Items": "Optional: A complex type that contains CNAME elements, if any, for this distribution. If Quantity is 0, you can omit Items." - } - }, - "Aliases": { - "base": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "refs": { - "DistributionConfig$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "DistributionSummary$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "StreamingDistributionConfig$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.", - "StreamingDistributionSummary$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution." - } - }, - "AllowedMethods": { - "base": "A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards only GET, HEAD and OPTIONS requests. - CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests. If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you may not want users to have permission to delete objects from your origin.", - "refs": { - "CacheBehavior$AllowedMethods": null, - "DefaultCacheBehavior$AllowedMethods": null - } - }, - "AwsAccountNumberList": { - "base": null, - "refs": { - "TrustedSigners$Items": "Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items." - } - }, - "BatchTooLarge": { - "base": null, - "refs": { - } - }, - "CNAMEAlreadyExists": { - "base": null, - "refs": { - } - }, - "CacheBehavior": { - "base": "A complex type that describes how CloudFront processes requests. You can create up to 10 cache behaviors.You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to distribute objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin will never be used. If you don't want to specify any cache behaviors, include only an empty CacheBehaviors element. Don't include an empty CacheBehavior element, or CloudFront returns a MalformedXML error. To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty CacheBehaviors element. To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.", - "refs": { - "CacheBehaviorList$member": null - } - }, - "CacheBehaviorList": { - "base": null, - "refs": { - "CacheBehaviors$Items": "Optional: A complex type that contains cache behaviors for this distribution. If Quantity is 0, you can omit Items." - } - }, - "CacheBehaviors": { - "base": "A complex type that contains zero or more CacheBehavior elements.", - "refs": { - "DistributionConfig$CacheBehaviors": "A complex type that contains zero or more CacheBehavior elements.", - "DistributionSummary$CacheBehaviors": "A complex type that contains zero or more CacheBehavior elements." - } - }, - "CachedMethods": { - "base": "A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices: - CloudFront caches responses to GET and HEAD requests. - CloudFront caches responses to GET, HEAD, and OPTIONS requests. If you pick the second choice for your S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers and Origin headers for the responses to be cached correctly.", - "refs": { - "AllowedMethods$CachedMethods": null - } - }, - "CloudFrontOriginAccessIdentity": { - "base": "CloudFront origin access identity.", - "refs": { - "CreateCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information.", - "GetCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information.", - "UpdateCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information." - } - }, - "CloudFrontOriginAccessIdentityAlreadyExists": { - "base": "If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.", - "refs": { - } - }, - "CloudFrontOriginAccessIdentityConfig": { - "base": "Origin access identity configuration.", - "refs": { - "CloudFrontOriginAccessIdentity$CloudFrontOriginAccessIdentityConfig": "The current configuration information for the identity.", - "CreateCloudFrontOriginAccessIdentityRequest$CloudFrontOriginAccessIdentityConfig": "The origin access identity's configuration information.", - "GetCloudFrontOriginAccessIdentityConfigResult$CloudFrontOriginAccessIdentityConfig": "The origin access identity's configuration information.", - "UpdateCloudFrontOriginAccessIdentityRequest$CloudFrontOriginAccessIdentityConfig": "The identity's configuration information." - } - }, - "CloudFrontOriginAccessIdentityInUse": { - "base": null, - "refs": { - } - }, - "CloudFrontOriginAccessIdentityList": { - "base": "The CloudFrontOriginAccessIdentityList type.", - "refs": { - "ListCloudFrontOriginAccessIdentitiesResult$CloudFrontOriginAccessIdentityList": "The CloudFrontOriginAccessIdentityList type." - } - }, - "CloudFrontOriginAccessIdentitySummary": { - "base": "Summary of the information about a CloudFront origin access identity.", - "refs": { - "CloudFrontOriginAccessIdentitySummaryList$member": null - } - }, - "CloudFrontOriginAccessIdentitySummaryList": { - "base": null, - "refs": { - "CloudFrontOriginAccessIdentityList$Items": "A complex type that contains one CloudFrontOriginAccessIdentitySummary element for each origin access identity that was created by the current AWS account." - } - }, - "CookieNameList": { - "base": null, - "refs": { - "CookieNames$Items": "Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items." - } - }, - "CookieNames": { - "base": "A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior.", - "refs": { - "CookiePreference$WhitelistedNames": "A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior." - } - }, - "CookiePreference": { - "base": "A complex type that specifies the cookie preferences associated with this cache behavior.", - "refs": { - "ForwardedValues$Cookies": "A complex type that specifies how CloudFront handles cookies." - } - }, - "CreateCloudFrontOriginAccessIdentityRequest": { - "base": "The request to create a new origin access identity.", - "refs": { - } - }, - "CreateCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateDistributionRequest": { - "base": "The request to create a new distribution.", - "refs": { - } - }, - "CreateDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateInvalidationRequest": { - "base": "The request to create an invalidation.", - "refs": { - } - }, - "CreateInvalidationResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateStreamingDistributionRequest": { - "base": "The request to create a new streaming distribution.", - "refs": { - } - }, - "CreateStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CustomErrorResponse": { - "base": "A complex type that describes how you'd prefer CloudFront to respond to requests that result in either a 4xx or 5xx response. You can control whether a custom error page should be displayed, what the desired response code should be for this error page and how long should the error response be cached by CloudFront. If you don't want to specify any custom error responses, include only an empty CustomErrorResponses element. To delete all custom error responses in an existing distribution, update the distribution configuration and include only an empty CustomErrorResponses element. To add, change, or remove one or more custom error responses, update the distribution configuration and specify all of the custom error responses that you want to include in the updated distribution.", - "refs": { - "CustomErrorResponseList$member": null - } - }, - "CustomErrorResponseList": { - "base": null, - "refs": { - "CustomErrorResponses$Items": "Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items." - } - }, - "CustomErrorResponses": { - "base": "A complex type that contains zero or more CustomErrorResponse elements.", - "refs": { - "DistributionConfig$CustomErrorResponses": "A complex type that contains zero or more CustomErrorResponse elements.", - "DistributionSummary$CustomErrorResponses": "A complex type that contains zero or more CustomErrorResponses elements." - } - }, - "CustomOriginConfig": { - "base": "A customer origin.", - "refs": { - "Origin$CustomOriginConfig": "A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead." - } - }, - "DefaultCacheBehavior": { - "base": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.", - "refs": { - "DistributionConfig$DefaultCacheBehavior": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.", - "DistributionSummary$DefaultCacheBehavior": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior." - } - }, - "DeleteCloudFrontOriginAccessIdentityRequest": { - "base": "The request to delete a origin access identity.", - "refs": { - } - }, - "DeleteDistributionRequest": { - "base": "The request to delete a distribution.", - "refs": { - } - }, - "DeleteStreamingDistributionRequest": { - "base": "The request to delete a streaming distribution.", - "refs": { - } - }, - "Distribution": { - "base": "A distribution.", - "refs": { - "CreateDistributionResult$Distribution": "The distribution's information.", - "GetDistributionResult$Distribution": "The distribution's information.", - "UpdateDistributionResult$Distribution": "The distribution's information." - } - }, - "DistributionAlreadyExists": { - "base": "The caller reference you attempted to create the distribution with is associated with another distribution.", - "refs": { - } - }, - "DistributionConfig": { - "base": "A distribution Configuration.", - "refs": { - "CreateDistributionRequest$DistributionConfig": "The distribution's configuration information.", - "Distribution$DistributionConfig": "The current configuration information for the distribution.", - "GetDistributionConfigResult$DistributionConfig": "The distribution's configuration information.", - "UpdateDistributionRequest$DistributionConfig": "The distribution's configuration information." - } - }, - "DistributionList": { - "base": "A distribution list.", - "refs": { - "ListDistributionsByWebACLIdResult$DistributionList": "The DistributionList type.", - "ListDistributionsResult$DistributionList": "The DistributionList type." - } - }, - "DistributionNotDisabled": { - "base": null, - "refs": { - } - }, - "DistributionSummary": { - "base": "A summary of the information for an Amazon CloudFront distribution.", - "refs": { - "DistributionSummaryList$member": null - } - }, - "DistributionSummaryList": { - "base": null, - "refs": { - "DistributionList$Items": "A complex type that contains one DistributionSummary element for each distribution that was created by the current AWS account." - } - }, - "ForwardedValues": { - "base": "A complex type that specifies how CloudFront handles query strings, cookies and headers.", - "refs": { - "CacheBehavior$ForwardedValues": "A complex type that specifies how CloudFront handles query strings, cookies and headers.", - "DefaultCacheBehavior$ForwardedValues": "A complex type that specifies how CloudFront handles query strings, cookies and headers." - } - }, - "GeoRestriction": { - "base": "A complex type that controls the countries in which your content is distributed. For more information about geo restriction, go to Customizing Error Responses in the Amazon CloudFront Developer Guide. CloudFront determines the location of your users using MaxMind GeoIP databases. For information about the accuracy of these databases, see How accurate are your GeoIP databases? on the MaxMind website.", - "refs": { - "Restrictions$GeoRestriction": null - } - }, - "GeoRestrictionType": { - "base": null, - "refs": { - "GeoRestriction$RestrictionType": "The method that you want to use to restrict distribution of your content by country: - none: No geo restriction is enabled, meaning access to content is not restricted by client geo location. - blacklist: The Location elements specify the countries in which you do not want CloudFront to distribute your content. - whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content." - } - }, - "GetCloudFrontOriginAccessIdentityConfigRequest": { - "base": "The request to get an origin access identity's configuration.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityRequest": { - "base": "The request to get an origin access identity's information.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetDistributionConfigRequest": { - "base": "The request to get a distribution configuration.", - "refs": { - } - }, - "GetDistributionConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetDistributionRequest": { - "base": "The request to get a distribution's information.", - "refs": { - } - }, - "GetDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetInvalidationRequest": { - "base": "The request to get an invalidation's information.", - "refs": { - } - }, - "GetInvalidationResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetStreamingDistributionConfigRequest": { - "base": "To request to get a streaming distribution configuration.", - "refs": { - } - }, - "GetStreamingDistributionConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetStreamingDistributionRequest": { - "base": "The request to get a streaming distribution's information.", - "refs": { - } - }, - "GetStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "HeaderList": { - "base": null, - "refs": { - "Headers$Items": "Optional: A complex type that contains a Name element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If Quantity is 0, omit Items." - } - }, - "Headers": { - "base": "A complex type that specifies the headers that you want CloudFront to forward to the origin for this cache behavior. For the headers that you specify, CloudFront also caches separate versions of a given object based on the header values in viewer requests; this is known as varying on headers. For example, suppose viewer requests for logo.jpg contain a custom Product header that has a value of either Acme or Apex, and you configure CloudFront to vary on the Product header. CloudFront forwards the Product header to the origin and caches the response from the origin once for each header value.", - "refs": { - "ForwardedValues$Headers": "A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior." - } - }, - "IllegalUpdate": { - "base": "Origin and CallerReference cannot be updated.", - "refs": { - } - }, - "InconsistentQuantities": { - "base": "The value of Quantity and the size of Items do not match.", - "refs": { - } - }, - "InvalidArgument": { - "base": "The argument is invalid.", - "refs": { - } - }, - "InvalidDefaultRootObject": { - "base": "The default root object file name is too big or contains an invalid character.", - "refs": { - } - }, - "InvalidErrorCode": { - "base": null, - "refs": { - } - }, - "InvalidForwardCookies": { - "base": "Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.", - "refs": { - } - }, - "InvalidGeoRestrictionParameter": { - "base": null, - "refs": { - } - }, - "InvalidHeadersForS3Origin": { - "base": null, - "refs": { - } - }, - "InvalidIfMatchVersion": { - "base": "The If-Match version is missing or not valid for the distribution.", - "refs": { - } - }, - "InvalidLocationCode": { - "base": null, - "refs": { - } - }, - "InvalidMinimumProtocolVersion": { - "base": null, - "refs": { - } - }, - "InvalidOrigin": { - "base": "The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.", - "refs": { - } - }, - "InvalidOriginAccessIdentity": { - "base": "The origin access identity is not valid or doesn't exist.", - "refs": { - } - }, - "InvalidProtocolSettings": { - "base": "You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that Support Server Name Indication (SNI).", - "refs": { - } - }, - "InvalidRelativePath": { - "base": "The relative path is too big, is not URL-encoded, or does not begin with a slash (/).", - "refs": { - } - }, - "InvalidRequiredProtocol": { - "base": "This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.", - "refs": { - } - }, - "InvalidResponseCode": { - "base": null, - "refs": { - } - }, - "InvalidTTLOrder": { - "base": null, - "refs": { - } - }, - "InvalidViewerCertificate": { - "base": null, - "refs": { - } - }, - "InvalidWebACLId": { - "base": null, - "refs": { - } - }, - "Invalidation": { - "base": "An invalidation.", - "refs": { - "CreateInvalidationResult$Invalidation": "The invalidation's information.", - "GetInvalidationResult$Invalidation": "The invalidation's information." - } - }, - "InvalidationBatch": { - "base": "An invalidation batch.", - "refs": { - "CreateInvalidationRequest$InvalidationBatch": "The batch information for the invalidation.", - "Invalidation$InvalidationBatch": "The current invalidation information for the batch request." - } - }, - "InvalidationList": { - "base": "An invalidation list.", - "refs": { - "ListInvalidationsResult$InvalidationList": "Information about invalidation batches." - } - }, - "InvalidationSummary": { - "base": "Summary of an invalidation request.", - "refs": { - "InvalidationSummaryList$member": null - } - }, - "InvalidationSummaryList": { - "base": null, - "refs": { - "InvalidationList$Items": "A complex type that contains one InvalidationSummary element for each invalidation batch that was created by the current AWS account." - } - }, - "ItemSelection": { - "base": null, - "refs": { - "CookiePreference$Forward": "Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses." - } - }, - "KeyPairIdList": { - "base": null, - "refs": { - "KeyPairIds$Items": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber." - } - }, - "KeyPairIds": { - "base": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.", - "refs": { - "Signer$KeyPairIds": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber." - } - }, - "ListCloudFrontOriginAccessIdentitiesRequest": { - "base": "The request to list origin access identities.", - "refs": { - } - }, - "ListCloudFrontOriginAccessIdentitiesResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListDistributionsByWebACLIdRequest": { - "base": "The request to list distributions that are associated with a specified AWS WAF web ACL.", - "refs": { - } - }, - "ListDistributionsByWebACLIdResult": { - "base": "The response to a request to list the distributions that are associated with a specified AWS WAF web ACL.", - "refs": { - } - }, - "ListDistributionsRequest": { - "base": "The request to list your distributions.", - "refs": { - } - }, - "ListDistributionsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListInvalidationsRequest": { - "base": "The request to list invalidations.", - "refs": { - } - }, - "ListInvalidationsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListStreamingDistributionsRequest": { - "base": "The request to list your streaming distributions.", - "refs": { - } - }, - "ListStreamingDistributionsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "LocationList": { - "base": null, - "refs": { - "GeoRestriction$Items": "A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list in the CloudFront console, which includes both country names and codes." - } - }, - "LoggingConfig": { - "base": "A complex type that controls whether access logs are written for the distribution.", - "refs": { - "DistributionConfig$Logging": "A complex type that controls whether access logs are written for the distribution." - } - }, - "Method": { - "base": null, - "refs": { - "MethodsList$member": null - } - }, - "MethodsList": { - "base": null, - "refs": { - "AllowedMethods$Items": "A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.", - "CachedMethods$Items": "A complex type that contains the HTTP methods that you want CloudFront to cache responses to." - } - }, - "MinimumProtocolVersion": { - "base": null, - "refs": { - "ViewerCertificate$MinimumProtocolVersion": "Specify the minimum version of the SSL protocol that you want CloudFront to use, SSLv3 or TLSv1, for HTTPS connections. CloudFront will serve your objects only to browsers or devices that support at least the SSL version that you specify. The TLSv1 protocol is more secure, so we recommend that you specify SSLv3 only if your users are using browsers or devices that don't support TLSv1. If you're using a custom certificate (if you specify a value for IAMCertificateId) and if you're using dedicated IP (if you specify vip for SSLSupportMethod), you can choose SSLv3 or TLSv1 as the MinimumProtocolVersion. If you're using a custom certificate (if you specify a value for IAMCertificateId) and if you're using SNI (if you specify sni-only for SSLSupportMethod), you must specify TLSv1 for MinimumProtocolVersion." - } - }, - "MissingBody": { - "base": "This operation requires a body. Ensure that the body is present and the Content-Type header is set.", - "refs": { - } - }, - "NoSuchCloudFrontOriginAccessIdentity": { - "base": "The specified origin access identity does not exist.", - "refs": { - } - }, - "NoSuchDistribution": { - "base": "The specified distribution does not exist.", - "refs": { - } - }, - "NoSuchInvalidation": { - "base": "The specified invalidation does not exist.", - "refs": { - } - }, - "NoSuchOrigin": { - "base": "No origin exists with the specified Origin Id.", - "refs": { - } - }, - "NoSuchStreamingDistribution": { - "base": "The specified streaming distribution does not exist.", - "refs": { - } - }, - "Origin": { - "base": "A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files.You must create at least one origin.", - "refs": { - "OriginList$member": null - } - }, - "OriginList": { - "base": null, - "refs": { - "Origins$Items": "A complex type that contains origins for this distribution." - } - }, - "OriginProtocolPolicy": { - "base": null, - "refs": { - "CustomOriginConfig$OriginProtocolPolicy": "The origin protocol policy to apply to your origin." - } - }, - "Origins": { - "base": "A complex type that contains information about origins for this distribution.", - "refs": { - "DistributionConfig$Origins": "A complex type that contains information about origins for this distribution.", - "DistributionSummary$Origins": "A complex type that contains information about origins for this distribution." - } - }, - "PathList": { - "base": null, - "refs": { - "Paths$Items": "A complex type that contains a list of the objects that you want to invalidate." - } - }, - "Paths": { - "base": "A complex type that contains information about the objects that you want to invalidate.", - "refs": { - "InvalidationBatch$Paths": "The path of the object to invalidate. The path is relative to the distribution and must begin with a slash (/). You must enclose each invalidation object with the Path element tags. If the path includes non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not invalidate the old version of the updated object." - } - }, - "PreconditionFailed": { - "base": "The precondition given in one or more of the request-header fields evaluated to false.", - "refs": { - } - }, - "PriceClass": { - "base": null, - "refs": { - "DistributionConfig$PriceClass": "A complex type that contains information about price class for this distribution.", - "DistributionSummary$PriceClass": null, - "StreamingDistributionConfig$PriceClass": "A complex type that contains information about price class for this streaming distribution.", - "StreamingDistributionSummary$PriceClass": null - } - }, - "Restrictions": { - "base": "A complex type that identifies ways in which you want to restrict distribution of your content.", - "refs": { - "DistributionConfig$Restrictions": null, - "DistributionSummary$Restrictions": null - } - }, - "S3Origin": { - "base": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.", - "refs": { - "StreamingDistributionConfig$S3Origin": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.", - "StreamingDistributionSummary$S3Origin": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution." - } - }, - "S3OriginConfig": { - "base": "A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.", - "refs": { - "Origin$S3OriginConfig": "A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead." - } - }, - "SSLSupportMethod": { - "base": null, - "refs": { - "ViewerCertificate$SSLSupportMethod": "If you specify a value for IAMCertificateId, you must also specify how you want CloudFront to serve HTTPS requests. Valid values are vip and sni-only. If you specify vip, CloudFront uses dedicated IP addresses for your content and can respond to HTTPS requests from any viewer. However, you must request permission to use this feature, and you incur additional monthly charges. If you specify sni-only, CloudFront can only respond to HTTPS requests from viewers that support Server Name Indication (SNI). All modern browsers support SNI, but some browsers still in use don't support SNI. Do not specify a value for SSLSupportMethod if you specified true for CloudFrontDefaultCertificate." - } - }, - "Signer": { - "base": "A complex type that lists the AWS accounts that were included in the TrustedSigners complex type, as well as their active CloudFront key pair IDs, if any.", - "refs": { - "SignerList$member": null - } - }, - "SignerList": { - "base": null, - "refs": { - "ActiveTrustedSigners$Items": "A complex type that contains one Signer complex type for each unique trusted signer that is specified in the TrustedSigners complex type, including trusted signers in the default cache behavior and in all of the other cache behaviors." - } - }, - "StreamingDistribution": { - "base": "A streaming distribution.", - "refs": { - "CreateStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information.", - "GetStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information.", - "UpdateStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information." - } - }, - "StreamingDistributionAlreadyExists": { - "base": null, - "refs": { - } - }, - "StreamingDistributionConfig": { - "base": "The configuration for the streaming distribution.", - "refs": { - "CreateStreamingDistributionRequest$StreamingDistributionConfig": "The streaming distribution's configuration information.", - "GetStreamingDistributionConfigResult$StreamingDistributionConfig": "The streaming distribution's configuration information.", - "StreamingDistribution$StreamingDistributionConfig": "The current configuration information for the streaming distribution.", - "UpdateStreamingDistributionRequest$StreamingDistributionConfig": "The streaming distribution's configuration information." - } - }, - "StreamingDistributionList": { - "base": "A streaming distribution list.", - "refs": { - "ListStreamingDistributionsResult$StreamingDistributionList": "The StreamingDistributionList type." - } - }, - "StreamingDistributionNotDisabled": { - "base": null, - "refs": { - } - }, - "StreamingDistributionSummary": { - "base": "A summary of the information for an Amazon CloudFront streaming distribution.", - "refs": { - "StreamingDistributionSummaryList$member": null - } - }, - "StreamingDistributionSummaryList": { - "base": null, - "refs": { - "StreamingDistributionList$Items": "A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account." - } - }, - "StreamingLoggingConfig": { - "base": "A complex type that controls whether access logs are written for this streaming distribution.", - "refs": { - "StreamingDistributionConfig$Logging": "A complex type that controls whether access logs are written for the streaming distribution." - } - }, - "TooManyCacheBehaviors": { - "base": "You cannot create anymore cache behaviors for the distribution.", - "refs": { - } - }, - "TooManyCertificates": { - "base": "You cannot create anymore custom ssl certificates.", - "refs": { - } - }, - "TooManyCloudFrontOriginAccessIdentities": { - "base": "Processing your request would cause you to exceed the maximum number of origin access identities allowed.", - "refs": { - } - }, - "TooManyCookieNamesInWhiteList": { - "base": "Your request contains more cookie names in the whitelist than are allowed per cache behavior.", - "refs": { - } - }, - "TooManyDistributionCNAMEs": { - "base": "Your request contains more CNAMEs than are allowed per distribution.", - "refs": { - } - }, - "TooManyDistributions": { - "base": "Processing your request would cause you to exceed the maximum number of distributions allowed.", - "refs": { - } - }, - "TooManyHeadersInForwardedValues": { - "base": null, - "refs": { - } - }, - "TooManyInvalidationsInProgress": { - "base": "You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.", - "refs": { - } - }, - "TooManyOrigins": { - "base": "You cannot create anymore origins for the distribution.", - "refs": { - } - }, - "TooManyStreamingDistributionCNAMEs": { - "base": null, - "refs": { - } - }, - "TooManyStreamingDistributions": { - "base": "Processing your request would cause you to exceed the maximum number of streaming distributions allowed.", - "refs": { - } - }, - "TooManyTrustedSigners": { - "base": "Your request contains more trusted signers than are allowed per distribution.", - "refs": { - } - }, - "TrustedSignerDoesNotExist": { - "base": "One or more of your trusted signers do not exist.", - "refs": { - } - }, - "TrustedSigners": { - "base": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "refs": { - "CacheBehavior$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "DefaultCacheBehavior$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "StreamingDistributionConfig$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "StreamingDistributionSummary$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution." - } - }, - "UpdateCloudFrontOriginAccessIdentityRequest": { - "base": "The request to update an origin access identity.", - "refs": { - } - }, - "UpdateCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "UpdateDistributionRequest": { - "base": "The request to update a distribution.", - "refs": { - } - }, - "UpdateDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "UpdateStreamingDistributionRequest": { - "base": "The request to update a streaming distribution.", - "refs": { - } - }, - "UpdateStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ViewerCertificate": { - "base": "A complex type that contains information about viewer certificates for this distribution.", - "refs": { - "DistributionConfig$ViewerCertificate": null, - "DistributionSummary$ViewerCertificate": null - } - }, - "ViewerProtocolPolicy": { - "base": null, - "refs": { - "CacheBehavior$ViewerProtocolPolicy": "Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL.", - "DefaultCacheBehavior$ViewerProtocolPolicy": "Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL." - } - }, - "boolean": { - "base": null, - "refs": { - "ActiveTrustedSigners$Enabled": "Each active trusted signer.", - "CacheBehavior$SmoothStreaming": "Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "CloudFrontOriginAccessIdentityList$IsTruncated": "A flag that indicates whether more origin access identities remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more items in the list.", - "DefaultCacheBehavior$SmoothStreaming": "Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "DistributionConfig$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "DistributionList$IsTruncated": "A flag that indicates whether more distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.", - "DistributionSummary$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "ForwardedValues$QueryString": "Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "InvalidationList$IsTruncated": "A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.", - "LoggingConfig$Enabled": "Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.", - "LoggingConfig$IncludeCookies": "Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.", - "StreamingDistributionConfig$Enabled": "Whether the streaming distribution is enabled to accept end user requests for content.", - "StreamingDistributionList$IsTruncated": "A flag that indicates whether more streaming distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.", - "StreamingDistributionSummary$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "StreamingLoggingConfig$Enabled": "Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.", - "TrustedSigners$Enabled": "Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.", - "ViewerCertificate$CloudFrontDefaultCertificate": "If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name of your distribution in your object URLs (for example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true. Omit this value if you are setting an IAMCertificateId." - } - }, - "integer": { - "base": null, - "refs": { - "ActiveTrustedSigners$Quantity": "The number of unique trusted signers included in all cache behaviors. For example, if three cache behaviors all list the same three AWS accounts, the value of Quantity for ActiveTrustedSigners will be 3.", - "Aliases$Quantity": "The number of CNAMEs, if any, for this distribution.", - "AllowedMethods$Quantity": "The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).", - "CacheBehaviors$Quantity": "The number of cache behaviors for this distribution.", - "CachedMethods$Quantity": "The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).", - "CloudFrontOriginAccessIdentityList$MaxItems": "The value you provided for the MaxItems request parameter.", - "CloudFrontOriginAccessIdentityList$Quantity": "The number of CloudFront origin access identities that were created by the current AWS account.", - "CookieNames$Quantity": "The number of whitelisted cookies for this cache behavior.", - "CustomErrorResponse$ErrorCode": "The 4xx or 5xx HTTP status code that you want to customize. For a list of HTTP status codes that you can customize, see CloudFront documentation.", - "CustomErrorResponses$Quantity": "The number of custom error responses for this distribution.", - "CustomOriginConfig$HTTPPort": "The HTTP port the custom origin listens on.", - "CustomOriginConfig$HTTPSPort": "The HTTPS port the custom origin listens on.", - "Distribution$InProgressInvalidationBatches": "The number of invalidation batches currently in progress.", - "DistributionList$MaxItems": "The value you provided for the MaxItems request parameter.", - "DistributionList$Quantity": "The number of distributions that were created by the current AWS account.", - "GeoRestriction$Quantity": "When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.", - "Headers$Quantity": "The number of different headers that you want CloudFront to forward to the origin and to vary on for this cache behavior. The maximum number of headers that you can specify by name is 10. If you want CloudFront to forward all headers to the origin and vary on all of them, specify 1 for Quantity and * for Name. If you don't want CloudFront to forward any additional headers to the origin or to vary on any headers, specify 0 for Quantity and omit Items.", - "InvalidationList$MaxItems": "The value you provided for the MaxItems request parameter.", - "InvalidationList$Quantity": "The number of invalidation batches that were created by the current AWS account.", - "KeyPairIds$Quantity": "The number of active CloudFront key pairs for AwsAccountNumber.", - "Origins$Quantity": "The number of origins for this distribution.", - "Paths$Quantity": "The number of objects that you want to invalidate.", - "StreamingDistributionList$MaxItems": "The value you provided for the MaxItems request parameter.", - "StreamingDistributionList$Quantity": "The number of streaming distributions that were created by the current AWS account.", - "TrustedSigners$Quantity": "The number of trusted signers for this cache behavior." - } - }, - "long": { - "base": null, - "refs": { - "CacheBehavior$MinTTL": "The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CacheBehavior$DefaultTTL": "If you don't configure your origin to add a Cache-Control max-age directive or an Expires header, DefaultTTL is the default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CacheBehavior$MaxTTL": "The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CustomErrorResponse$ErrorCachingMinTTL": "The minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. You can specify a value from 0 to 31,536,000.", - "DefaultCacheBehavior$MinTTL": "The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "DefaultCacheBehavior$DefaultTTL": "If you don't configure your origin to add a Cache-Control max-age directive or an Expires header, DefaultTTL is the default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "DefaultCacheBehavior$MaxTTL": "The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years)." - } - }, - "string": { - "base": null, - "refs": { - "AccessDenied$Message": null, - "AliasList$member": null, - "AwsAccountNumberList$member": null, - "BatchTooLarge$Message": null, - "CNAMEAlreadyExists$Message": null, - "CacheBehavior$PathPattern": "The pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to. When CloudFront receives an end-user request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution. The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.", - "CacheBehavior$TargetOriginId": "The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.", - "CloudFrontOriginAccessIdentity$Id": "The ID for the origin access identity. For example: E74FTE3AJFJ256A.", - "CloudFrontOriginAccessIdentity$S3CanonicalUserId": "The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.", - "CloudFrontOriginAccessIdentityAlreadyExists$Message": null, - "CloudFrontOriginAccessIdentityConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.", - "CloudFrontOriginAccessIdentityConfig$Comment": "Any comments you want to include about the origin access identity.", - "CloudFrontOriginAccessIdentityInUse$Message": null, - "CloudFrontOriginAccessIdentityList$Marker": "The value you provided for the Marker request parameter.", - "CloudFrontOriginAccessIdentityList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your origin access identities where they left off.", - "CloudFrontOriginAccessIdentitySummary$Id": "The ID for the origin access identity. For example: E74FTE3AJFJ256A.", - "CloudFrontOriginAccessIdentitySummary$S3CanonicalUserId": "The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.", - "CloudFrontOriginAccessIdentitySummary$Comment": "The comment for this origin access identity, as originally specified when created.", - "CookieNameList$member": null, - "CreateCloudFrontOriginAccessIdentityResult$Location": "The fully qualified URI of the new origin access identity just created. For example: https://cloudfront.amazonaws.com/2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A.", - "CreateCloudFrontOriginAccessIdentityResult$ETag": "The current version of the origin access identity created.", - "CreateDistributionResult$Location": "The fully qualified URI of the new distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5.", - "CreateDistributionResult$ETag": "The current version of the distribution created.", - "CreateInvalidationRequest$DistributionId": "The distribution's id.", - "CreateInvalidationResult$Location": "The fully qualified URI of the distribution and invalidation batch request, including the Invalidation ID.", - "CreateStreamingDistributionResult$Location": "The fully qualified URI of the new streaming distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8.", - "CreateStreamingDistributionResult$ETag": "The current version of the streaming distribution created.", - "CustomErrorResponse$ResponsePagePath": "The path of the custom error page (for example, /custom_404.html). The path is relative to the distribution and must begin with a slash (/). If the path includes any non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not return the custom error page to the viewer.", - "CustomErrorResponse$ResponseCode": "The HTTP status code that you want CloudFront to return with the custom error page to the viewer. For a list of HTTP status codes that you can replace, see CloudFront Documentation.", - "DefaultCacheBehavior$TargetOriginId": "The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.", - "DeleteCloudFrontOriginAccessIdentityRequest$Id": "The origin access identity's id.", - "DeleteCloudFrontOriginAccessIdentityRequest$IfMatch": "The value of the ETag header you received from a previous GET or PUT request. For example: E2QWRUHAPOMQZL.", - "DeleteDistributionRequest$Id": "The distribution id.", - "DeleteDistributionRequest$IfMatch": "The value of the ETag header you received when you disabled the distribution. For example: E2QWRUHAPOMQZL.", - "DeleteStreamingDistributionRequest$Id": "The distribution id.", - "DeleteStreamingDistributionRequest$IfMatch": "The value of the ETag header you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL.", - "Distribution$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "Distribution$Status": "This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "Distribution$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "DistributionAlreadyExists$Message": null, - "DistributionConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the DistributionConfig object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create a distribution, and the content of the DistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of the DistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.", - "DistributionConfig$DefaultRootObject": "The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/index.html). Specifying a default root object avoids exposing the contents of your distribution. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object.", - "DistributionConfig$Comment": "Any comments you want to include about the distribution.", - "DistributionConfig$WebACLId": "(Optional) If you're using AWS WAF to filter CloudFront requests, the Id of the AWS WAF web ACL that is associated with the distribution.", - "DistributionList$Marker": "The value you provided for the Marker request parameter.", - "DistributionList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your distributions where they left off.", - "DistributionNotDisabled$Message": null, - "DistributionSummary$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "DistributionSummary$Status": "This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "DistributionSummary$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "DistributionSummary$Comment": "The comment originally specified when this distribution was created.", - "DistributionSummary$WebACLId": "The Web ACL Id (if any) associated with the distribution.", - "GetCloudFrontOriginAccessIdentityConfigRequest$Id": "The identity's id.", - "GetCloudFrontOriginAccessIdentityConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetCloudFrontOriginAccessIdentityRequest$Id": "The identity's id.", - "GetCloudFrontOriginAccessIdentityResult$ETag": "The current version of the origin access identity's information. For example: E2QWRUHAPOMQZL.", - "GetDistributionConfigRequest$Id": "The distribution's id.", - "GetDistributionConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetDistributionRequest$Id": "The distribution's id.", - "GetDistributionResult$ETag": "The current version of the distribution's information. For example: E2QWRUHAPOMQZL.", - "GetInvalidationRequest$DistributionId": "The distribution's id.", - "GetInvalidationRequest$Id": "The invalidation's id.", - "GetStreamingDistributionConfigRequest$Id": "The streaming distribution's id.", - "GetStreamingDistributionConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetStreamingDistributionRequest$Id": "The streaming distribution's id.", - "GetStreamingDistributionResult$ETag": "The current version of the streaming distribution's information. For example: E2QWRUHAPOMQZL.", - "HeaderList$member": null, - "IllegalUpdate$Message": null, - "InconsistentQuantities$Message": null, - "InvalidArgument$Message": null, - "InvalidDefaultRootObject$Message": null, - "InvalidErrorCode$Message": null, - "InvalidForwardCookies$Message": null, - "InvalidGeoRestrictionParameter$Message": null, - "InvalidHeadersForS3Origin$Message": null, - "InvalidIfMatchVersion$Message": null, - "InvalidLocationCode$Message": null, - "InvalidMinimumProtocolVersion$Message": null, - "InvalidOrigin$Message": null, - "InvalidOriginAccessIdentity$Message": null, - "InvalidProtocolSettings$Message": null, - "InvalidRelativePath$Message": null, - "InvalidRequiredProtocol$Message": null, - "InvalidResponseCode$Message": null, - "InvalidTTLOrder$Message": null, - "InvalidViewerCertificate$Message": null, - "InvalidWebACLId$Message": null, - "Invalidation$Id": "The identifier for the invalidation request. For example: IDFDVBD632BHDS5.", - "Invalidation$Status": "The status of the invalidation request. When the invalidation batch is finished, the status is Completed.", - "InvalidationBatch$CallerReference": "A unique name that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the Path object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create an invalidation batch, and the content of each Path element is identical to the original request, the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of any Path is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists error.", - "InvalidationList$Marker": "The value you provided for the Marker request parameter.", - "InvalidationList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.", - "InvalidationSummary$Id": "The unique ID for an invalidation request.", - "InvalidationSummary$Status": "The status of an invalidation request.", - "KeyPairIdList$member": null, - "ListCloudFrontOriginAccessIdentitiesRequest$Marker": "Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).", - "ListCloudFrontOriginAccessIdentitiesRequest$MaxItems": "The maximum number of origin access identities you want in the response body.", - "ListDistributionsByWebACLIdRequest$Marker": "Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)", - "ListDistributionsByWebACLIdRequest$MaxItems": "The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.", - "ListDistributionsByWebACLIdRequest$WebACLId": "The Id of the AWS WAF web ACL for which you want to list the associated distributions. If you specify \"null\" for the Id, the request returns a list of the distributions that aren't associated with a web ACL.", - "ListDistributionsRequest$Marker": "Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)", - "ListDistributionsRequest$MaxItems": "The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.", - "ListInvalidationsRequest$DistributionId": "The distribution's id.", - "ListInvalidationsRequest$Marker": "Use this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.", - "ListInvalidationsRequest$MaxItems": "The maximum number of invalidation batches you want in the response body.", - "ListStreamingDistributionsRequest$Marker": "Use this when paginating results to indicate where to begin in your list of streaming distributions. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).", - "ListStreamingDistributionsRequest$MaxItems": "The maximum number of streaming distributions you want in the response body.", - "LocationList$member": null, - "LoggingConfig$Bucket": "The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.", - "LoggingConfig$Prefix": "An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.", - "MissingBody$Message": null, - "NoSuchCloudFrontOriginAccessIdentity$Message": null, - "NoSuchDistribution$Message": null, - "NoSuchInvalidation$Message": null, - "NoSuchOrigin$Message": null, - "NoSuchStreamingDistribution$Message": null, - "Origin$Id": "A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.", - "Origin$DomainName": "Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.", - "Origin$OriginPath": "An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. When you include the OriginPath element, specify the directory name, beginning with a /. CloudFront appends the directory name to the value of DomainName.", - "PathList$member": null, - "PreconditionFailed$Message": null, - "S3Origin$DomainName": "The DNS name of the S3 origin.", - "S3Origin$OriginAccessIdentity": "Your S3 origin's origin access identity.", - "S3OriginConfig$OriginAccessIdentity": "The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. Use the format origin-access-identity/cloudfront/Id where Id is the value that CloudFront returned in the Id element when you created the origin access identity.", - "Signer$AwsAccountNumber": "Specifies an AWS account that can create signed URLs. Values: self, which indicates that the AWS account that was used to create the distribution can created signed URLs, or an AWS account number. Omit the dashes in the account number.", - "StreamingDistribution$Id": "The identifier for the streaming distribution. For example: EGTXBD79H29TRA8.", - "StreamingDistribution$Status": "The current status of the streaming distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "StreamingDistribution$DomainName": "The domain name corresponding to the streaming distribution. For example: s5c39gqb8ow64r.cloudfront.net.", - "StreamingDistributionAlreadyExists$Message": null, - "StreamingDistributionConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.", - "StreamingDistributionConfig$Comment": "Any comments you want to include about the streaming distribution.", - "StreamingDistributionList$Marker": "The value you provided for the Marker request parameter.", - "StreamingDistributionList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your streaming distributions where they left off.", - "StreamingDistributionNotDisabled$Message": null, - "StreamingDistributionSummary$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "StreamingDistributionSummary$Status": "Indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "StreamingDistributionSummary$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "StreamingDistributionSummary$Comment": "The comment originally specified when this distribution was created.", - "StreamingLoggingConfig$Bucket": "The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.", - "StreamingLoggingConfig$Prefix": "An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.", - "TooManyCacheBehaviors$Message": null, - "TooManyCertificates$Message": null, - "TooManyCloudFrontOriginAccessIdentities$Message": null, - "TooManyCookieNamesInWhiteList$Message": null, - "TooManyDistributionCNAMEs$Message": null, - "TooManyDistributions$Message": null, - "TooManyHeadersInForwardedValues$Message": null, - "TooManyInvalidationsInProgress$Message": null, - "TooManyOrigins$Message": null, - "TooManyStreamingDistributionCNAMEs$Message": null, - "TooManyStreamingDistributions$Message": null, - "TooManyTrustedSigners$Message": null, - "TrustedSignerDoesNotExist$Message": null, - "UpdateCloudFrontOriginAccessIdentityRequest$Id": "The identity's id.", - "UpdateCloudFrontOriginAccessIdentityRequest$IfMatch": "The value of the ETag header you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateCloudFrontOriginAccessIdentityResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "UpdateDistributionRequest$Id": "The distribution's id.", - "UpdateDistributionRequest$IfMatch": "The value of the ETag header you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateDistributionResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "UpdateStreamingDistributionRequest$Id": "The streaming distribution's id.", - "UpdateStreamingDistributionRequest$IfMatch": "The value of the ETag header you received when retrieving the streaming distribution's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateStreamingDistributionResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "ViewerCertificate$IAMCertificateId": "If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), specify the IAM certificate identifier of the custom viewer certificate for this distribution. Specify either this value or CloudFrontDefaultCertificate." - } - }, - "timestamp": { - "base": null, - "refs": { - "Distribution$LastModifiedTime": "The date and time the distribution was last modified.", - "DistributionSummary$LastModifiedTime": "The date and time the distribution was last modified.", - "Invalidation$CreateTime": "The date and time the invalidation request was first made.", - "InvalidationSummary$CreateTime": null, - "StreamingDistribution$LastModifiedTime": "The date and time the distribution was last modified.", - "StreamingDistributionSummary$LastModifiedTime": "The date and time the distribution was last modified." - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/paginators-1.json deleted file mode 100644 index 51fbb907f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/paginators-1.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "pagination": { - "ListCloudFrontOriginAccessIdentities": { - "input_token": "Marker", - "output_token": "CloudFrontOriginAccessIdentityList.NextMarker", - "limit_key": "MaxItems", - "more_results": "CloudFrontOriginAccessIdentityList.IsTruncated", - "result_key": "CloudFrontOriginAccessIdentityList.Items" - }, - "ListDistributions": { - "input_token": "Marker", - "output_token": "DistributionList.NextMarker", - "limit_key": "MaxItems", - "more_results": "DistributionList.IsTruncated", - "result_key": "DistributionList.Items" - }, - "ListInvalidations": { - "input_token": "Marker", - "output_token": "InvalidationList.NextMarker", - "limit_key": "MaxItems", - "more_results": "InvalidationList.IsTruncated", - "result_key": "InvalidationList.Items" - }, - "ListStreamingDistributions": { - "input_token": "Marker", - "output_token": "StreamingDistributionList.NextMarker", - "limit_key": "MaxItems", - "more_results": "StreamingDistributionList.IsTruncated", - "result_key": "StreamingDistributionList.Items" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/waiters-2.json deleted file mode 100644 index f6d3ba7bc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-07-27/waiters-2.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "version": 2, - "waiters": { - "DistributionDeployed": { - "delay": 60, - "operation": "GetDistribution", - "maxAttempts": 25, - "description": "Wait until a distribution is deployed.", - "acceptors": [ - { - "expected": "Deployed", - "matcher": "path", - "state": "success", - "argument": "Status" - } - ] - }, - "InvalidationCompleted": { - "delay": 20, - "operation": "GetInvalidation", - "maxAttempts": 30, - "description": "Wait until an invalidation has completed.", - "acceptors": [ - { - "expected": "Completed", - "matcher": "path", - "state": "success", - "argument": "Status" - } - ] - }, - "StreamingDistributionDeployed": { - "delay": 60, - "operation": "GetStreamingDistribution", - "maxAttempts": 25, - "description": "Wait until a streaming distribution is deployed.", - "acceptors": [ - { - "expected": "Deployed", - "matcher": "path", - "state": "success", - "argument": "Status" - } - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/api-2.json deleted file mode 100644 index 374b7e5e9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/api-2.json +++ /dev/null @@ -1,2150 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-09-17", - "endpointPrefix":"cloudfront", - "globalEndpoint":"cloudfront.amazonaws.com", - "protocol":"rest-xml", - "serviceAbbreviation":"CloudFront", - "serviceFullName":"Amazon CloudFront", - "signatureVersion":"v4" - }, - "operations":{ - "CreateCloudFrontOriginAccessIdentity":{ - "name":"CreateCloudFrontOriginAccessIdentity2015_09_17", - "http":{ - "method":"POST", - "requestUri":"/2015-09-17/origin-access-identity/cloudfront", - "responseCode":201 - }, - "input":{"shape":"CreateCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"CreateCloudFrontOriginAccessIdentityResult"}, - "errors":[ - {"shape":"CloudFrontOriginAccessIdentityAlreadyExists"}, - {"shape":"MissingBody"}, - {"shape":"TooManyCloudFrontOriginAccessIdentities"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} - ] - }, - "CreateDistribution":{ - "name":"CreateDistribution2015_09_17", - "http":{ - "method":"POST", - "requestUri":"/2015-09-17/distribution", - "responseCode":201 - }, - "input":{"shape":"CreateDistributionRequest"}, - "output":{"shape":"CreateDistributionResult"}, - "errors":[ - {"shape":"CNAMEAlreadyExists"}, - {"shape":"DistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"AccessDenied"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, - {"shape":"InvalidMinimumProtocolVersion"}, - {"shape":"MissingBody"}, - {"shape":"TooManyDistributionCNAMEs"}, - {"shape":"TooManyDistributions"}, - {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, - {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, - {"shape":"InvalidProtocolSettings"}, - {"shape":"InvalidTTLOrder"}, - {"shape":"InvalidWebACLId"} - ] - }, - "CreateInvalidation":{ - "name":"CreateInvalidation2015_09_17", - "http":{ - "method":"POST", - "requestUri":"/2015-09-17/distribution/{DistributionId}/invalidation", - "responseCode":201 - }, - "input":{"shape":"CreateInvalidationRequest"}, - "output":{"shape":"CreateInvalidationResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"MissingBody"}, - {"shape":"InvalidArgument"}, - {"shape":"NoSuchDistribution"}, - {"shape":"BatchTooLarge"}, - {"shape":"TooManyInvalidationsInProgress"}, - {"shape":"InconsistentQuantities"} - ] - }, - "CreateStreamingDistribution":{ - "name":"CreateStreamingDistribution2015_09_17", - "http":{ - "method":"POST", - "requestUri":"/2015-09-17/streaming-distribution", - "responseCode":201 - }, - "input":{"shape":"CreateStreamingDistributionRequest"}, - "output":{"shape":"CreateStreamingDistributionResult"}, - "errors":[ - {"shape":"CNAMEAlreadyExists"}, - {"shape":"StreamingDistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"AccessDenied"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"MissingBody"}, - {"shape":"TooManyStreamingDistributionCNAMEs"}, - {"shape":"TooManyStreamingDistributions"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} - ] - }, - "DeleteCloudFrontOriginAccessIdentity":{ - "name":"DeleteCloudFrontOriginAccessIdentity2015_09_17", - "http":{ - "method":"DELETE", - "requestUri":"/2015-09-17/origin-access-identity/cloudfront/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteCloudFrontOriginAccessIdentityRequest"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"PreconditionFailed"}, - {"shape":"CloudFrontOriginAccessIdentityInUse"} - ] - }, - "DeleteDistribution":{ - "name":"DeleteDistribution2015_09_17", - "http":{ - "method":"DELETE", - "requestUri":"/2015-09-17/distribution/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteDistributionRequest"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"DistributionNotDisabled"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchDistribution"}, - {"shape":"PreconditionFailed"} - ] - }, - "DeleteStreamingDistribution":{ - "name":"DeleteStreamingDistribution2015_09_17", - "http":{ - "method":"DELETE", - "requestUri":"/2015-09-17/streaming-distribution/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteStreamingDistributionRequest"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"StreamingDistributionNotDisabled"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"PreconditionFailed"} - ] - }, - "GetCloudFrontOriginAccessIdentity":{ - "name":"GetCloudFrontOriginAccessIdentity2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/origin-access-identity/cloudfront/{Id}" - }, - "input":{"shape":"GetCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"GetCloudFrontOriginAccessIdentityResult"}, - "errors":[ - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"AccessDenied"} - ] - }, - "GetCloudFrontOriginAccessIdentityConfig":{ - "name":"GetCloudFrontOriginAccessIdentityConfig2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/origin-access-identity/cloudfront/{Id}/config" - }, - "input":{"shape":"GetCloudFrontOriginAccessIdentityConfigRequest"}, - "output":{"shape":"GetCloudFrontOriginAccessIdentityConfigResult"}, - "errors":[ - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"AccessDenied"} - ] - }, - "GetDistribution":{ - "name":"GetDistribution2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/distribution/{Id}" - }, - "input":{"shape":"GetDistributionRequest"}, - "output":{"shape":"GetDistributionResult"}, - "errors":[ - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetDistributionConfig":{ - "name":"GetDistributionConfig2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/distribution/{Id}/config" - }, - "input":{"shape":"GetDistributionConfigRequest"}, - "output":{"shape":"GetDistributionConfigResult"}, - "errors":[ - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetInvalidation":{ - "name":"GetInvalidation2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/distribution/{DistributionId}/invalidation/{Id}" - }, - "input":{"shape":"GetInvalidationRequest"}, - "output":{"shape":"GetInvalidationResult"}, - "errors":[ - {"shape":"NoSuchInvalidation"}, - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetStreamingDistribution":{ - "name":"GetStreamingDistribution2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/streaming-distribution/{Id}" - }, - "input":{"shape":"GetStreamingDistributionRequest"}, - "output":{"shape":"GetStreamingDistributionResult"}, - "errors":[ - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetStreamingDistributionConfig":{ - "name":"GetStreamingDistributionConfig2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/streaming-distribution/{Id}/config" - }, - "input":{"shape":"GetStreamingDistributionConfigRequest"}, - "output":{"shape":"GetStreamingDistributionConfigResult"}, - "errors":[ - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "ListCloudFrontOriginAccessIdentities":{ - "name":"ListCloudFrontOriginAccessIdentities2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/origin-access-identity/cloudfront" - }, - "input":{"shape":"ListCloudFrontOriginAccessIdentitiesRequest"}, - "output":{"shape":"ListCloudFrontOriginAccessIdentitiesResult"}, - "errors":[ - {"shape":"InvalidArgument"} - ] - }, - "ListDistributions":{ - "name":"ListDistributions2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/distribution" - }, - "input":{"shape":"ListDistributionsRequest"}, - "output":{"shape":"ListDistributionsResult"}, - "errors":[ - {"shape":"InvalidArgument"} - ] - }, - "ListDistributionsByWebACLId":{ - "name":"ListDistributionsByWebACLId2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/distributionsByWebACLId/{WebACLId}" - }, - "input":{"shape":"ListDistributionsByWebACLIdRequest"}, - "output":{"shape":"ListDistributionsByWebACLIdResult"}, - "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"InvalidWebACLId"} - ] - }, - "ListInvalidations":{ - "name":"ListInvalidations2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/distribution/{DistributionId}/invalidation" - }, - "input":{"shape":"ListInvalidationsRequest"}, - "output":{"shape":"ListInvalidationsResult"}, - "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "ListStreamingDistributions":{ - "name":"ListStreamingDistributions2015_09_17", - "http":{ - "method":"GET", - "requestUri":"/2015-09-17/streaming-distribution" - }, - "input":{"shape":"ListStreamingDistributionsRequest"}, - "output":{"shape":"ListStreamingDistributionsResult"}, - "errors":[ - {"shape":"InvalidArgument"} - ] - }, - "UpdateCloudFrontOriginAccessIdentity":{ - "name":"UpdateCloudFrontOriginAccessIdentity2015_09_17", - "http":{ - "method":"PUT", - "requestUri":"/2015-09-17/origin-access-identity/cloudfront/{Id}/config" - }, - "input":{"shape":"UpdateCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"UpdateCloudFrontOriginAccessIdentityResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"PreconditionFailed"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} - ] - }, - "UpdateDistribution":{ - "name":"UpdateDistribution2015_09_17", - "http":{ - "method":"PUT", - "requestUri":"/2015-09-17/distribution/{Id}/config" - }, - "input":{"shape":"UpdateDistributionRequest"}, - "output":{"shape":"UpdateDistributionResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"CNAMEAlreadyExists"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchDistribution"}, - {"shape":"PreconditionFailed"}, - {"shape":"TooManyDistributionCNAMEs"}, - {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, - {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, - {"shape":"InvalidMinimumProtocolVersion"}, - {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, - {"shape":"InvalidTTLOrder"}, - {"shape":"InvalidWebACLId"} - ] - }, - "UpdateStreamingDistribution":{ - "name":"UpdateStreamingDistribution2015_09_17", - "http":{ - "method":"PUT", - "requestUri":"/2015-09-17/streaming-distribution/{Id}/config" - }, - "input":{"shape":"UpdateStreamingDistributionRequest"}, - "output":{"shape":"UpdateStreamingDistributionResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"CNAMEAlreadyExists"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"PreconditionFailed"}, - {"shape":"TooManyStreamingDistributionCNAMEs"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InconsistentQuantities"} - ] - } - }, - "shapes":{ - "AccessDenied":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":403}, - "exception":true - }, - "ActiveTrustedSigners":{ - "type":"structure", - "required":[ - "Enabled", - "Quantity" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"SignerList"} - } - }, - "AliasList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"CNAME" - } - }, - "Aliases":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"AliasList"} - } - }, - "AllowedMethods":{ - "type":"structure", - "required":[ - "Quantity", - "Items" - ], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"MethodsList"}, - "CachedMethods":{"shape":"CachedMethods"} - } - }, - "AwsAccountNumberList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"AwsAccountNumber" - } - }, - "BatchTooLarge":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":413}, - "exception":true - }, - "CNAMEAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CacheBehavior":{ - "type":"structure", - "required":[ - "PathPattern", - "TargetOriginId", - "ForwardedValues", - "TrustedSigners", - "ViewerProtocolPolicy", - "MinTTL" - ], - "members":{ - "PathPattern":{"shape":"string"}, - "TargetOriginId":{"shape":"string"}, - "ForwardedValues":{"shape":"ForwardedValues"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "ViewerProtocolPolicy":{"shape":"ViewerProtocolPolicy"}, - "MinTTL":{"shape":"long"}, - "AllowedMethods":{"shape":"AllowedMethods"}, - "SmoothStreaming":{"shape":"boolean"}, - "DefaultTTL":{"shape":"long"}, - "MaxTTL":{"shape":"long"}, - "Compress":{"shape":"boolean"} - } - }, - "CacheBehaviorList":{ - "type":"list", - "member":{ - "shape":"CacheBehavior", - "locationName":"CacheBehavior" - } - }, - "CacheBehaviors":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CacheBehaviorList"} - } - }, - "CachedMethods":{ - "type":"structure", - "required":[ - "Quantity", - "Items" - ], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"MethodsList"} - } - }, - "CertificateSource":{ - "type":"string", - "enum":[ - "cloudfront", - "iam" - ] - }, - "CloudFrontOriginAccessIdentity":{ - "type":"structure", - "required":[ - "Id", - "S3CanonicalUserId" - ], - "members":{ - "Id":{"shape":"string"}, - "S3CanonicalUserId":{"shape":"string"}, - "CloudFrontOriginAccessIdentityConfig":{"shape":"CloudFrontOriginAccessIdentityConfig"} - } - }, - "CloudFrontOriginAccessIdentityAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CloudFrontOriginAccessIdentityConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "Comment" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "Comment":{"shape":"string"} - } - }, - "CloudFrontOriginAccessIdentityInUse":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CloudFrontOriginAccessIdentityList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CloudFrontOriginAccessIdentitySummaryList"} - } - }, - "CloudFrontOriginAccessIdentitySummary":{ - "type":"structure", - "required":[ - "Id", - "S3CanonicalUserId", - "Comment" - ], - "members":{ - "Id":{"shape":"string"}, - "S3CanonicalUserId":{"shape":"string"}, - "Comment":{"shape":"string"} - } - }, - "CloudFrontOriginAccessIdentitySummaryList":{ - "type":"list", - "member":{ - "shape":"CloudFrontOriginAccessIdentitySummary", - "locationName":"CloudFrontOriginAccessIdentitySummary" - } - }, - "CookieNameList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Name" - } - }, - "CookieNames":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CookieNameList"} - } - }, - "CookiePreference":{ - "type":"structure", - "required":["Forward"], - "members":{ - "Forward":{"shape":"ItemSelection"}, - "WhitelistedNames":{"shape":"CookieNames"} - } - }, - "CreateCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":["CloudFrontOriginAccessIdentityConfig"], - "members":{ - "CloudFrontOriginAccessIdentityConfig":{ - "shape":"CloudFrontOriginAccessIdentityConfig", - "locationName":"CloudFrontOriginAccessIdentityConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-09-17/"} - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "CreateCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "CreateDistributionRequest":{ - "type":"structure", - "required":["DistributionConfig"], - "members":{ - "DistributionConfig":{ - "shape":"DistributionConfig", - "locationName":"DistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-09-17/"} - } - }, - "payload":"DistributionConfig" - }, - "CreateDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "CreateInvalidationRequest":{ - "type":"structure", - "required":[ - "DistributionId", - "InvalidationBatch" - ], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "InvalidationBatch":{ - "shape":"InvalidationBatch", - "locationName":"InvalidationBatch", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-09-17/"} - } - }, - "payload":"InvalidationBatch" - }, - "CreateInvalidationResult":{ - "type":"structure", - "members":{ - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "Invalidation":{"shape":"Invalidation"} - }, - "payload":"Invalidation" - }, - "CreateStreamingDistributionRequest":{ - "type":"structure", - "required":["StreamingDistributionConfig"], - "members":{ - "StreamingDistributionConfig":{ - "shape":"StreamingDistributionConfig", - "locationName":"StreamingDistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-09-17/"} - } - }, - "payload":"StreamingDistributionConfig" - }, - "CreateStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "CustomErrorResponse":{ - "type":"structure", - "required":["ErrorCode"], - "members":{ - "ErrorCode":{"shape":"integer"}, - "ResponsePagePath":{"shape":"string"}, - "ResponseCode":{"shape":"string"}, - "ErrorCachingMinTTL":{"shape":"long"} - } - }, - "CustomErrorResponseList":{ - "type":"list", - "member":{ - "shape":"CustomErrorResponse", - "locationName":"CustomErrorResponse" - } - }, - "CustomErrorResponses":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CustomErrorResponseList"} - } - }, - "CustomOriginConfig":{ - "type":"structure", - "required":[ - "HTTPPort", - "HTTPSPort", - "OriginProtocolPolicy" - ], - "members":{ - "HTTPPort":{"shape":"integer"}, - "HTTPSPort":{"shape":"integer"}, - "OriginProtocolPolicy":{"shape":"OriginProtocolPolicy"} - } - }, - "DefaultCacheBehavior":{ - "type":"structure", - "required":[ - "TargetOriginId", - "ForwardedValues", - "TrustedSigners", - "ViewerProtocolPolicy", - "MinTTL" - ], - "members":{ - "TargetOriginId":{"shape":"string"}, - "ForwardedValues":{"shape":"ForwardedValues"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "ViewerProtocolPolicy":{"shape":"ViewerProtocolPolicy"}, - "MinTTL":{"shape":"long"}, - "AllowedMethods":{"shape":"AllowedMethods"}, - "SmoothStreaming":{"shape":"boolean"}, - "DefaultTTL":{"shape":"long"}, - "MaxTTL":{"shape":"long"}, - "Compress":{"shape":"boolean"} - } - }, - "DeleteCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - } - }, - "DeleteDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - } - }, - "DeleteStreamingDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - } - }, - "Distribution":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "InProgressInvalidationBatches", - "DomainName", - "ActiveTrustedSigners", - "DistributionConfig" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "InProgressInvalidationBatches":{"shape":"integer"}, - "DomainName":{"shape":"string"}, - "ActiveTrustedSigners":{"shape":"ActiveTrustedSigners"}, - "DistributionConfig":{"shape":"DistributionConfig"} - } - }, - "DistributionAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DistributionConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "Origins", - "DefaultCacheBehavior", - "Comment", - "Enabled" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "Aliases":{"shape":"Aliases"}, - "DefaultRootObject":{"shape":"string"}, - "Origins":{"shape":"Origins"}, - "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, - "CacheBehaviors":{"shape":"CacheBehaviors"}, - "CustomErrorResponses":{"shape":"CustomErrorResponses"}, - "Comment":{"shape":"string"}, - "Logging":{"shape":"LoggingConfig"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"}, - "ViewerCertificate":{"shape":"ViewerCertificate"}, - "Restrictions":{"shape":"Restrictions"}, - "WebACLId":{"shape":"string"} - } - }, - "DistributionList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"DistributionSummaryList"} - } - }, - "DistributionNotDisabled":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DistributionSummary":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "DomainName", - "Aliases", - "Origins", - "DefaultCacheBehavior", - "CacheBehaviors", - "CustomErrorResponses", - "Comment", - "PriceClass", - "Enabled", - "ViewerCertificate", - "Restrictions", - "WebACLId" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "Aliases":{"shape":"Aliases"}, - "Origins":{"shape":"Origins"}, - "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, - "CacheBehaviors":{"shape":"CacheBehaviors"}, - "CustomErrorResponses":{"shape":"CustomErrorResponses"}, - "Comment":{"shape":"string"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"}, - "ViewerCertificate":{"shape":"ViewerCertificate"}, - "Restrictions":{"shape":"Restrictions"}, - "WebACLId":{"shape":"string"} - } - }, - "DistributionSummaryList":{ - "type":"list", - "member":{ - "shape":"DistributionSummary", - "locationName":"DistributionSummary" - } - }, - "ForwardedValues":{ - "type":"structure", - "required":[ - "QueryString", - "Cookies" - ], - "members":{ - "QueryString":{"shape":"boolean"}, - "Cookies":{"shape":"CookiePreference"}, - "Headers":{"shape":"Headers"} - } - }, - "GeoRestriction":{ - "type":"structure", - "required":[ - "RestrictionType", - "Quantity" - ], - "members":{ - "RestrictionType":{"shape":"GeoRestrictionType"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"LocationList"} - } - }, - "GeoRestrictionType":{ - "type":"string", - "enum":[ - "blacklist", - "whitelist", - "none" - ] - }, - "GetCloudFrontOriginAccessIdentityConfigRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetCloudFrontOriginAccessIdentityConfigResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentityConfig":{"shape":"CloudFrontOriginAccessIdentityConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "GetCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "GetDistributionConfigRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetDistributionConfigResult":{ - "type":"structure", - "members":{ - "DistributionConfig":{"shape":"DistributionConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"DistributionConfig" - }, - "GetDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "GetInvalidationRequest":{ - "type":"structure", - "required":[ - "DistributionId", - "Id" - ], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetInvalidationResult":{ - "type":"structure", - "members":{ - "Invalidation":{"shape":"Invalidation"} - }, - "payload":"Invalidation" - }, - "GetStreamingDistributionConfigRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetStreamingDistributionConfigResult":{ - "type":"structure", - "members":{ - "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistributionConfig" - }, - "GetStreamingDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "HeaderList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Name" - } - }, - "Headers":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"HeaderList"} - } - }, - "IllegalUpdate":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InconsistentQuantities":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidArgument":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidDefaultRootObject":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidErrorCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidForwardCookies":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidGeoRestrictionParameter":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidHeadersForS3Origin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidIfMatchVersion":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidLocationCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidMinimumProtocolVersion":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidOrigin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidOriginAccessIdentity":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidProtocolSettings":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidRelativePath":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidRequiredProtocol":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidResponseCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidTTLOrder":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidViewerCertificate":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidWebACLId":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "Invalidation":{ - "type":"structure", - "required":[ - "Id", - "Status", - "CreateTime", - "InvalidationBatch" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "CreateTime":{"shape":"timestamp"}, - "InvalidationBatch":{"shape":"InvalidationBatch"} - } - }, - "InvalidationBatch":{ - "type":"structure", - "required":[ - "Paths", - "CallerReference" - ], - "members":{ - "Paths":{"shape":"Paths"}, - "CallerReference":{"shape":"string"} - } - }, - "InvalidationList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"InvalidationSummaryList"} - } - }, - "InvalidationSummary":{ - "type":"structure", - "required":[ - "Id", - "CreateTime", - "Status" - ], - "members":{ - "Id":{"shape":"string"}, - "CreateTime":{"shape":"timestamp"}, - "Status":{"shape":"string"} - } - }, - "InvalidationSummaryList":{ - "type":"list", - "member":{ - "shape":"InvalidationSummary", - "locationName":"InvalidationSummary" - } - }, - "ItemSelection":{ - "type":"string", - "enum":[ - "none", - "whitelist", - "all" - ] - }, - "KeyPairIdList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"KeyPairId" - } - }, - "KeyPairIds":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"KeyPairIdList"} - } - }, - "ListCloudFrontOriginAccessIdentitiesRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListCloudFrontOriginAccessIdentitiesResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentityList":{"shape":"CloudFrontOriginAccessIdentityList"} - }, - "payload":"CloudFrontOriginAccessIdentityList" - }, - "ListDistributionsByWebACLIdRequest":{ - "type":"structure", - "required":["WebACLId"], - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - }, - "WebACLId":{ - "shape":"string", - "location":"uri", - "locationName":"WebACLId" - } - } - }, - "ListDistributionsByWebACLIdResult":{ - "type":"structure", - "members":{ - "DistributionList":{"shape":"DistributionList"} - }, - "payload":"DistributionList" - }, - "ListDistributionsRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListDistributionsResult":{ - "type":"structure", - "members":{ - "DistributionList":{"shape":"DistributionList"} - }, - "payload":"DistributionList" - }, - "ListInvalidationsRequest":{ - "type":"structure", - "required":["DistributionId"], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListInvalidationsResult":{ - "type":"structure", - "members":{ - "InvalidationList":{"shape":"InvalidationList"} - }, - "payload":"InvalidationList" - }, - "ListStreamingDistributionsRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListStreamingDistributionsResult":{ - "type":"structure", - "members":{ - "StreamingDistributionList":{"shape":"StreamingDistributionList"} - }, - "payload":"StreamingDistributionList" - }, - "LocationList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Location" - } - }, - "LoggingConfig":{ - "type":"structure", - "required":[ - "Enabled", - "IncludeCookies", - "Bucket", - "Prefix" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "IncludeCookies":{"shape":"boolean"}, - "Bucket":{"shape":"string"}, - "Prefix":{"shape":"string"} - } - }, - "Method":{ - "type":"string", - "enum":[ - "GET", - "HEAD", - "POST", - "PUT", - "PATCH", - "OPTIONS", - "DELETE" - ] - }, - "MethodsList":{ - "type":"list", - "member":{ - "shape":"Method", - "locationName":"Method" - } - }, - "MinimumProtocolVersion":{ - "type":"string", - "enum":[ - "SSLv3", - "TLSv1" - ] - }, - "MissingBody":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "NoSuchCloudFrontOriginAccessIdentity":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchDistribution":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchInvalidation":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchOrigin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchStreamingDistribution":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "Origin":{ - "type":"structure", - "required":[ - "Id", - "DomainName" - ], - "members":{ - "Id":{"shape":"string"}, - "DomainName":{"shape":"string"}, - "OriginPath":{"shape":"string"}, - "S3OriginConfig":{"shape":"S3OriginConfig"}, - "CustomOriginConfig":{"shape":"CustomOriginConfig"} - } - }, - "OriginList":{ - "type":"list", - "member":{ - "shape":"Origin", - "locationName":"Origin" - }, - "min":1 - }, - "OriginProtocolPolicy":{ - "type":"string", - "enum":[ - "http-only", - "match-viewer" - ] - }, - "Origins":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"OriginList"} - } - }, - "PathList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Path" - } - }, - "Paths":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"PathList"} - } - }, - "PreconditionFailed":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":412}, - "exception":true - }, - "PriceClass":{ - "type":"string", - "enum":[ - "PriceClass_100", - "PriceClass_200", - "PriceClass_All" - ] - }, - "Restrictions":{ - "type":"structure", - "required":["GeoRestriction"], - "members":{ - "GeoRestriction":{"shape":"GeoRestriction"} - } - }, - "S3Origin":{ - "type":"structure", - "required":[ - "DomainName", - "OriginAccessIdentity" - ], - "members":{ - "DomainName":{"shape":"string"}, - "OriginAccessIdentity":{"shape":"string"} - } - }, - "S3OriginConfig":{ - "type":"structure", - "required":["OriginAccessIdentity"], - "members":{ - "OriginAccessIdentity":{"shape":"string"} - } - }, - "SSLSupportMethod":{ - "type":"string", - "enum":[ - "sni-only", - "vip" - ] - }, - "Signer":{ - "type":"structure", - "members":{ - "AwsAccountNumber":{"shape":"string"}, - "KeyPairIds":{"shape":"KeyPairIds"} - } - }, - "SignerList":{ - "type":"list", - "member":{ - "shape":"Signer", - "locationName":"Signer" - } - }, - "StreamingDistribution":{ - "type":"structure", - "required":[ - "Id", - "Status", - "DomainName", - "ActiveTrustedSigners", - "StreamingDistributionConfig" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "ActiveTrustedSigners":{"shape":"ActiveTrustedSigners"}, - "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"} - } - }, - "StreamingDistributionAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "StreamingDistributionConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "S3Origin", - "Comment", - "TrustedSigners", - "Enabled" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "S3Origin":{"shape":"S3Origin"}, - "Aliases":{"shape":"Aliases"}, - "Comment":{"shape":"string"}, - "Logging":{"shape":"StreamingLoggingConfig"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"} - } - }, - "StreamingDistributionList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"StreamingDistributionSummaryList"} - } - }, - "StreamingDistributionNotDisabled":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "StreamingDistributionSummary":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "DomainName", - "S3Origin", - "Aliases", - "TrustedSigners", - "Comment", - "PriceClass", - "Enabled" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "S3Origin":{"shape":"S3Origin"}, - "Aliases":{"shape":"Aliases"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "Comment":{"shape":"string"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"} - } - }, - "StreamingDistributionSummaryList":{ - "type":"list", - "member":{ - "shape":"StreamingDistributionSummary", - "locationName":"StreamingDistributionSummary" - } - }, - "StreamingLoggingConfig":{ - "type":"structure", - "required":[ - "Enabled", - "Bucket", - "Prefix" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Bucket":{"shape":"string"}, - "Prefix":{"shape":"string"} - } - }, - "TooManyCacheBehaviors":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCertificates":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCloudFrontOriginAccessIdentities":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCookieNamesInWhiteList":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyDistributionCNAMEs":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyDistributions":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyHeadersInForwardedValues":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyInvalidationsInProgress":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyOrigins":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyStreamingDistributionCNAMEs":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyStreamingDistributions":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyTrustedSigners":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TrustedSignerDoesNotExist":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TrustedSigners":{ - "type":"structure", - "required":[ - "Enabled", - "Quantity" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"AwsAccountNumberList"} - } - }, - "UpdateCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":[ - "CloudFrontOriginAccessIdentityConfig", - "Id" - ], - "members":{ - "CloudFrontOriginAccessIdentityConfig":{ - "shape":"CloudFrontOriginAccessIdentityConfig", - "locationName":"CloudFrontOriginAccessIdentityConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-09-17/"} - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "UpdateCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "UpdateDistributionRequest":{ - "type":"structure", - "required":[ - "DistributionConfig", - "Id" - ], - "members":{ - "DistributionConfig":{ - "shape":"DistributionConfig", - "locationName":"DistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-09-17/"} - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"DistributionConfig" - }, - "UpdateDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "UpdateStreamingDistributionRequest":{ - "type":"structure", - "required":[ - "StreamingDistributionConfig", - "Id" - ], - "members":{ - "StreamingDistributionConfig":{ - "shape":"StreamingDistributionConfig", - "locationName":"StreamingDistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2015-09-17/"} - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"StreamingDistributionConfig" - }, - "UpdateStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "ViewerCertificate":{ - "type":"structure", - "members":{ - "Certificate":{"shape":"string"}, - "CertificateSource":{"shape":"CertificateSource"}, - "SSLSupportMethod":{"shape":"SSLSupportMethod"}, - "MinimumProtocolVersion":{"shape":"MinimumProtocolVersion"}, - "IAMCertificateId":{ - "shape":"string", - "deprecated":true - }, - "CloudFrontDefaultCertificate":{ - "shape":"boolean", - "deprecated":true - } - } - }, - "ViewerProtocolPolicy":{ - "type":"string", - "enum":[ - "allow-all", - "https-only", - "redirect-to-https" - ] - }, - "boolean":{"type":"boolean"}, - "integer":{"type":"integer"}, - "long":{"type":"long"}, - "string":{"type":"string"}, - "timestamp":{"type":"timestamp"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/docs-2.json deleted file mode 100644 index 3e23d960f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/docs-2.json +++ /dev/null @@ -1,1173 +0,0 @@ -{ - "version": "2.0", - "service": null, - "operations": { - "CreateCloudFrontOriginAccessIdentity": "Create a new origin access identity.", - "CreateDistribution": "Create a new distribution.", - "CreateInvalidation": "Create a new invalidation.", - "CreateStreamingDistribution": "Create a new streaming distribution.", - "DeleteCloudFrontOriginAccessIdentity": "Delete an origin access identity.", - "DeleteDistribution": "Delete a distribution.", - "DeleteStreamingDistribution": "Delete a streaming distribution.", - "GetCloudFrontOriginAccessIdentity": "Get the information about an origin access identity.", - "GetCloudFrontOriginAccessIdentityConfig": "Get the configuration information about an origin access identity.", - "GetDistribution": "Get the information about a distribution.", - "GetDistributionConfig": "Get the configuration information about a distribution.", - "GetInvalidation": "Get the information about an invalidation.", - "GetStreamingDistribution": "Get the information about a streaming distribution.", - "GetStreamingDistributionConfig": "Get the configuration information about a streaming distribution.", - "ListCloudFrontOriginAccessIdentities": "List origin access identities.", - "ListDistributions": "List distributions.", - "ListDistributionsByWebACLId": "List the distributions that are associated with a specified AWS WAF web ACL.", - "ListInvalidations": "List invalidation batches.", - "ListStreamingDistributions": "List streaming distributions.", - "UpdateCloudFrontOriginAccessIdentity": "Update an origin access identity.", - "UpdateDistribution": "Update a distribution.", - "UpdateStreamingDistribution": "Update a streaming distribution." - }, - "shapes": { - "AccessDenied": { - "base": "Access denied.", - "refs": { - } - }, - "ActiveTrustedSigners": { - "base": "A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for the default cache behavior or for any of the other cache behaviors for this distribution. These are accounts that you want to allow to create signed URLs for private content.", - "refs": { - "Distribution$ActiveTrustedSigners": "CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs.", - "StreamingDistribution$ActiveTrustedSigners": "CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs." - } - }, - "AliasList": { - "base": null, - "refs": { - "Aliases$Items": "Optional: A complex type that contains CNAME elements, if any, for this distribution. If Quantity is 0, you can omit Items." - } - }, - "Aliases": { - "base": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "refs": { - "DistributionConfig$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "DistributionSummary$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "StreamingDistributionConfig$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.", - "StreamingDistributionSummary$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution." - } - }, - "AllowedMethods": { - "base": "A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards only GET, HEAD and OPTIONS requests. - CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests. If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you may not want users to have permission to delete objects from your origin.", - "refs": { - "CacheBehavior$AllowedMethods": null, - "DefaultCacheBehavior$AllowedMethods": null - } - }, - "AwsAccountNumberList": { - "base": null, - "refs": { - "TrustedSigners$Items": "Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items." - } - }, - "BatchTooLarge": { - "base": null, - "refs": { - } - }, - "CNAMEAlreadyExists": { - "base": null, - "refs": { - } - }, - "CacheBehavior": { - "base": "A complex type that describes how CloudFront processes requests. You can create up to 10 cache behaviors.You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to distribute objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin will never be used. If you don't want to specify any cache behaviors, include only an empty CacheBehaviors element. Don't include an empty CacheBehavior element, or CloudFront returns a MalformedXML error. To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty CacheBehaviors element. To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.", - "refs": { - "CacheBehaviorList$member": null - } - }, - "CacheBehaviorList": { - "base": null, - "refs": { - "CacheBehaviors$Items": "Optional: A complex type that contains cache behaviors for this distribution. If Quantity is 0, you can omit Items." - } - }, - "CacheBehaviors": { - "base": "A complex type that contains zero or more CacheBehavior elements.", - "refs": { - "DistributionConfig$CacheBehaviors": "A complex type that contains zero or more CacheBehavior elements.", - "DistributionSummary$CacheBehaviors": "A complex type that contains zero or more CacheBehavior elements." - } - }, - "CachedMethods": { - "base": "A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices: - CloudFront caches responses to GET and HEAD requests. - CloudFront caches responses to GET, HEAD, and OPTIONS requests. If you pick the second choice for your S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers and Origin headers for the responses to be cached correctly.", - "refs": { - "AllowedMethods$CachedMethods": null - } - }, - "CertificateSource": { - "base": null, - "refs": { - "ViewerCertificate$CertificateSource": "If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name of your distribution in your object URLs (for example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to \"cloudfront\". If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), set to \"iam\", and update the Certificate field with the IAM certificate identifier of the custom viewer certificate for this distribution." - } - }, - "CloudFrontOriginAccessIdentity": { - "base": "CloudFront origin access identity.", - "refs": { - "CreateCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information.", - "GetCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information.", - "UpdateCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information." - } - }, - "CloudFrontOriginAccessIdentityAlreadyExists": { - "base": "If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.", - "refs": { - } - }, - "CloudFrontOriginAccessIdentityConfig": { - "base": "Origin access identity configuration.", - "refs": { - "CloudFrontOriginAccessIdentity$CloudFrontOriginAccessIdentityConfig": "The current configuration information for the identity.", - "CreateCloudFrontOriginAccessIdentityRequest$CloudFrontOriginAccessIdentityConfig": "The origin access identity's configuration information.", - "GetCloudFrontOriginAccessIdentityConfigResult$CloudFrontOriginAccessIdentityConfig": "The origin access identity's configuration information.", - "UpdateCloudFrontOriginAccessIdentityRequest$CloudFrontOriginAccessIdentityConfig": "The identity's configuration information." - } - }, - "CloudFrontOriginAccessIdentityInUse": { - "base": null, - "refs": { - } - }, - "CloudFrontOriginAccessIdentityList": { - "base": "The CloudFrontOriginAccessIdentityList type.", - "refs": { - "ListCloudFrontOriginAccessIdentitiesResult$CloudFrontOriginAccessIdentityList": "The CloudFrontOriginAccessIdentityList type." - } - }, - "CloudFrontOriginAccessIdentitySummary": { - "base": "Summary of the information about a CloudFront origin access identity.", - "refs": { - "CloudFrontOriginAccessIdentitySummaryList$member": null - } - }, - "CloudFrontOriginAccessIdentitySummaryList": { - "base": null, - "refs": { - "CloudFrontOriginAccessIdentityList$Items": "A complex type that contains one CloudFrontOriginAccessIdentitySummary element for each origin access identity that was created by the current AWS account." - } - }, - "CookieNameList": { - "base": null, - "refs": { - "CookieNames$Items": "Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items." - } - }, - "CookieNames": { - "base": "A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior.", - "refs": { - "CookiePreference$WhitelistedNames": "A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior." - } - }, - "CookiePreference": { - "base": "A complex type that specifies the cookie preferences associated with this cache behavior.", - "refs": { - "ForwardedValues$Cookies": "A complex type that specifies how CloudFront handles cookies." - } - }, - "CreateCloudFrontOriginAccessIdentityRequest": { - "base": "The request to create a new origin access identity.", - "refs": { - } - }, - "CreateCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateDistributionRequest": { - "base": "The request to create a new distribution.", - "refs": { - } - }, - "CreateDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateInvalidationRequest": { - "base": "The request to create an invalidation.", - "refs": { - } - }, - "CreateInvalidationResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateStreamingDistributionRequest": { - "base": "The request to create a new streaming distribution.", - "refs": { - } - }, - "CreateStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CustomErrorResponse": { - "base": "A complex type that describes how you'd prefer CloudFront to respond to requests that result in either a 4xx or 5xx response. You can control whether a custom error page should be displayed, what the desired response code should be for this error page and how long should the error response be cached by CloudFront. If you don't want to specify any custom error responses, include only an empty CustomErrorResponses element. To delete all custom error responses in an existing distribution, update the distribution configuration and include only an empty CustomErrorResponses element. To add, change, or remove one or more custom error responses, update the distribution configuration and specify all of the custom error responses that you want to include in the updated distribution.", - "refs": { - "CustomErrorResponseList$member": null - } - }, - "CustomErrorResponseList": { - "base": null, - "refs": { - "CustomErrorResponses$Items": "Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items." - } - }, - "CustomErrorResponses": { - "base": "A complex type that contains zero or more CustomErrorResponse elements.", - "refs": { - "DistributionConfig$CustomErrorResponses": "A complex type that contains zero or more CustomErrorResponse elements.", - "DistributionSummary$CustomErrorResponses": "A complex type that contains zero or more CustomErrorResponses elements." - } - }, - "CustomOriginConfig": { - "base": "A customer origin.", - "refs": { - "Origin$CustomOriginConfig": "A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead." - } - }, - "DefaultCacheBehavior": { - "base": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.", - "refs": { - "DistributionConfig$DefaultCacheBehavior": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.", - "DistributionSummary$DefaultCacheBehavior": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior." - } - }, - "DeleteCloudFrontOriginAccessIdentityRequest": { - "base": "The request to delete a origin access identity.", - "refs": { - } - }, - "DeleteDistributionRequest": { - "base": "The request to delete a distribution.", - "refs": { - } - }, - "DeleteStreamingDistributionRequest": { - "base": "The request to delete a streaming distribution.", - "refs": { - } - }, - "Distribution": { - "base": "A distribution.", - "refs": { - "CreateDistributionResult$Distribution": "The distribution's information.", - "GetDistributionResult$Distribution": "The distribution's information.", - "UpdateDistributionResult$Distribution": "The distribution's information." - } - }, - "DistributionAlreadyExists": { - "base": "The caller reference you attempted to create the distribution with is associated with another distribution.", - "refs": { - } - }, - "DistributionConfig": { - "base": "A distribution Configuration.", - "refs": { - "CreateDistributionRequest$DistributionConfig": "The distribution's configuration information.", - "Distribution$DistributionConfig": "The current configuration information for the distribution.", - "GetDistributionConfigResult$DistributionConfig": "The distribution's configuration information.", - "UpdateDistributionRequest$DistributionConfig": "The distribution's configuration information." - } - }, - "DistributionList": { - "base": "A distribution list.", - "refs": { - "ListDistributionsByWebACLIdResult$DistributionList": "The DistributionList type.", - "ListDistributionsResult$DistributionList": "The DistributionList type." - } - }, - "DistributionNotDisabled": { - "base": null, - "refs": { - } - }, - "DistributionSummary": { - "base": "A summary of the information for an Amazon CloudFront distribution.", - "refs": { - "DistributionSummaryList$member": null - } - }, - "DistributionSummaryList": { - "base": null, - "refs": { - "DistributionList$Items": "A complex type that contains one DistributionSummary element for each distribution that was created by the current AWS account." - } - }, - "ForwardedValues": { - "base": "A complex type that specifies how CloudFront handles query strings, cookies and headers.", - "refs": { - "CacheBehavior$ForwardedValues": "A complex type that specifies how CloudFront handles query strings, cookies and headers.", - "DefaultCacheBehavior$ForwardedValues": "A complex type that specifies how CloudFront handles query strings, cookies and headers." - } - }, - "GeoRestriction": { - "base": "A complex type that controls the countries in which your content is distributed. For more information about geo restriction, go to Customizing Error Responses in the Amazon CloudFront Developer Guide. CloudFront determines the location of your users using MaxMind GeoIP databases. For information about the accuracy of these databases, see How accurate are your GeoIP databases? on the MaxMind website.", - "refs": { - "Restrictions$GeoRestriction": null - } - }, - "GeoRestrictionType": { - "base": null, - "refs": { - "GeoRestriction$RestrictionType": "The method that you want to use to restrict distribution of your content by country: - none: No geo restriction is enabled, meaning access to content is not restricted by client geo location. - blacklist: The Location elements specify the countries in which you do not want CloudFront to distribute your content. - whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content." - } - }, - "GetCloudFrontOriginAccessIdentityConfigRequest": { - "base": "The request to get an origin access identity's configuration.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityRequest": { - "base": "The request to get an origin access identity's information.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetDistributionConfigRequest": { - "base": "The request to get a distribution configuration.", - "refs": { - } - }, - "GetDistributionConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetDistributionRequest": { - "base": "The request to get a distribution's information.", - "refs": { - } - }, - "GetDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetInvalidationRequest": { - "base": "The request to get an invalidation's information.", - "refs": { - } - }, - "GetInvalidationResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetStreamingDistributionConfigRequest": { - "base": "To request to get a streaming distribution configuration.", - "refs": { - } - }, - "GetStreamingDistributionConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetStreamingDistributionRequest": { - "base": "The request to get a streaming distribution's information.", - "refs": { - } - }, - "GetStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "HeaderList": { - "base": null, - "refs": { - "Headers$Items": "Optional: A complex type that contains a Name element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If Quantity is 0, omit Items." - } - }, - "Headers": { - "base": "A complex type that specifies the headers that you want CloudFront to forward to the origin for this cache behavior. For the headers that you specify, CloudFront also caches separate versions of a given object based on the header values in viewer requests; this is known as varying on headers. For example, suppose viewer requests for logo.jpg contain a custom Product header that has a value of either Acme or Apex, and you configure CloudFront to vary on the Product header. CloudFront forwards the Product header to the origin and caches the response from the origin once for each header value.", - "refs": { - "ForwardedValues$Headers": "A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior." - } - }, - "IllegalUpdate": { - "base": "Origin and CallerReference cannot be updated.", - "refs": { - } - }, - "InconsistentQuantities": { - "base": "The value of Quantity and the size of Items do not match.", - "refs": { - } - }, - "InvalidArgument": { - "base": "The argument is invalid.", - "refs": { - } - }, - "InvalidDefaultRootObject": { - "base": "The default root object file name is too big or contains an invalid character.", - "refs": { - } - }, - "InvalidErrorCode": { - "base": null, - "refs": { - } - }, - "InvalidForwardCookies": { - "base": "Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.", - "refs": { - } - }, - "InvalidGeoRestrictionParameter": { - "base": null, - "refs": { - } - }, - "InvalidHeadersForS3Origin": { - "base": null, - "refs": { - } - }, - "InvalidIfMatchVersion": { - "base": "The If-Match version is missing or not valid for the distribution.", - "refs": { - } - }, - "InvalidLocationCode": { - "base": null, - "refs": { - } - }, - "InvalidMinimumProtocolVersion": { - "base": null, - "refs": { - } - }, - "InvalidOrigin": { - "base": "The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.", - "refs": { - } - }, - "InvalidOriginAccessIdentity": { - "base": "The origin access identity is not valid or doesn't exist.", - "refs": { - } - }, - "InvalidProtocolSettings": { - "base": "You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that Support Server Name Indication (SNI).", - "refs": { - } - }, - "InvalidRelativePath": { - "base": "The relative path is too big, is not URL-encoded, or does not begin with a slash (/).", - "refs": { - } - }, - "InvalidRequiredProtocol": { - "base": "This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.", - "refs": { - } - }, - "InvalidResponseCode": { - "base": null, - "refs": { - } - }, - "InvalidTTLOrder": { - "base": null, - "refs": { - } - }, - "InvalidViewerCertificate": { - "base": null, - "refs": { - } - }, - "InvalidWebACLId": { - "base": null, - "refs": { - } - }, - "Invalidation": { - "base": "An invalidation.", - "refs": { - "CreateInvalidationResult$Invalidation": "The invalidation's information.", - "GetInvalidationResult$Invalidation": "The invalidation's information." - } - }, - "InvalidationBatch": { - "base": "An invalidation batch.", - "refs": { - "CreateInvalidationRequest$InvalidationBatch": "The batch information for the invalidation.", - "Invalidation$InvalidationBatch": "The current invalidation information for the batch request." - } - }, - "InvalidationList": { - "base": "An invalidation list.", - "refs": { - "ListInvalidationsResult$InvalidationList": "Information about invalidation batches." - } - }, - "InvalidationSummary": { - "base": "Summary of an invalidation request.", - "refs": { - "InvalidationSummaryList$member": null - } - }, - "InvalidationSummaryList": { - "base": null, - "refs": { - "InvalidationList$Items": "A complex type that contains one InvalidationSummary element for each invalidation batch that was created by the current AWS account." - } - }, - "ItemSelection": { - "base": null, - "refs": { - "CookiePreference$Forward": "Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses." - } - }, - "KeyPairIdList": { - "base": null, - "refs": { - "KeyPairIds$Items": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber." - } - }, - "KeyPairIds": { - "base": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.", - "refs": { - "Signer$KeyPairIds": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber." - } - }, - "ListCloudFrontOriginAccessIdentitiesRequest": { - "base": "The request to list origin access identities.", - "refs": { - } - }, - "ListCloudFrontOriginAccessIdentitiesResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListDistributionsByWebACLIdRequest": { - "base": "The request to list distributions that are associated with a specified AWS WAF web ACL.", - "refs": { - } - }, - "ListDistributionsByWebACLIdResult": { - "base": "The response to a request to list the distributions that are associated with a specified AWS WAF web ACL.", - "refs": { - } - }, - "ListDistributionsRequest": { - "base": "The request to list your distributions.", - "refs": { - } - }, - "ListDistributionsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListInvalidationsRequest": { - "base": "The request to list invalidations.", - "refs": { - } - }, - "ListInvalidationsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListStreamingDistributionsRequest": { - "base": "The request to list your streaming distributions.", - "refs": { - } - }, - "ListStreamingDistributionsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "LocationList": { - "base": null, - "refs": { - "GeoRestriction$Items": "A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list in the CloudFront console, which includes both country names and codes." - } - }, - "LoggingConfig": { - "base": "A complex type that controls whether access logs are written for the distribution.", - "refs": { - "DistributionConfig$Logging": "A complex type that controls whether access logs are written for the distribution." - } - }, - "Method": { - "base": null, - "refs": { - "MethodsList$member": null - } - }, - "MethodsList": { - "base": null, - "refs": { - "AllowedMethods$Items": "A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.", - "CachedMethods$Items": "A complex type that contains the HTTP methods that you want CloudFront to cache responses to." - } - }, - "MinimumProtocolVersion": { - "base": null, - "refs": { - "ViewerCertificate$MinimumProtocolVersion": "Specify the minimum version of the SSL protocol that you want CloudFront to use, SSLv3 or TLSv1, for HTTPS connections. CloudFront will serve your objects only to browsers or devices that support at least the SSL version that you specify. The TLSv1 protocol is more secure, so we recommend that you specify SSLv3 only if your users are using browsers or devices that don't support TLSv1. If you're using a custom certificate (if you specify a value for IAMCertificateId) and if you're using dedicated IP (if you specify vip for SSLSupportMethod), you can choose SSLv3 or TLSv1 as the MinimumProtocolVersion. If you're using a custom certificate (if you specify a value for IAMCertificateId) and if you're using SNI (if you specify sni-only for SSLSupportMethod), you must specify TLSv1 for MinimumProtocolVersion." - } - }, - "MissingBody": { - "base": "This operation requires a body. Ensure that the body is present and the Content-Type header is set.", - "refs": { - } - }, - "NoSuchCloudFrontOriginAccessIdentity": { - "base": "The specified origin access identity does not exist.", - "refs": { - } - }, - "NoSuchDistribution": { - "base": "The specified distribution does not exist.", - "refs": { - } - }, - "NoSuchInvalidation": { - "base": "The specified invalidation does not exist.", - "refs": { - } - }, - "NoSuchOrigin": { - "base": "No origin exists with the specified Origin Id.", - "refs": { - } - }, - "NoSuchStreamingDistribution": { - "base": "The specified streaming distribution does not exist.", - "refs": { - } - }, - "Origin": { - "base": "A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files.You must create at least one origin.", - "refs": { - "OriginList$member": null - } - }, - "OriginList": { - "base": null, - "refs": { - "Origins$Items": "A complex type that contains origins for this distribution." - } - }, - "OriginProtocolPolicy": { - "base": null, - "refs": { - "CustomOriginConfig$OriginProtocolPolicy": "The origin protocol policy to apply to your origin." - } - }, - "Origins": { - "base": "A complex type that contains information about origins for this distribution.", - "refs": { - "DistributionConfig$Origins": "A complex type that contains information about origins for this distribution.", - "DistributionSummary$Origins": "A complex type that contains information about origins for this distribution." - } - }, - "PathList": { - "base": null, - "refs": { - "Paths$Items": "A complex type that contains a list of the objects that you want to invalidate." - } - }, - "Paths": { - "base": "A complex type that contains information about the objects that you want to invalidate.", - "refs": { - "InvalidationBatch$Paths": "The path of the object to invalidate. The path is relative to the distribution and must begin with a slash (/). You must enclose each invalidation object with the Path element tags. If the path includes non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not invalidate the old version of the updated object." - } - }, - "PreconditionFailed": { - "base": "The precondition given in one or more of the request-header fields evaluated to false.", - "refs": { - } - }, - "PriceClass": { - "base": null, - "refs": { - "DistributionConfig$PriceClass": "A complex type that contains information about price class for this distribution.", - "DistributionSummary$PriceClass": null, - "StreamingDistributionConfig$PriceClass": "A complex type that contains information about price class for this streaming distribution.", - "StreamingDistributionSummary$PriceClass": null - } - }, - "Restrictions": { - "base": "A complex type that identifies ways in which you want to restrict distribution of your content.", - "refs": { - "DistributionConfig$Restrictions": null, - "DistributionSummary$Restrictions": null - } - }, - "S3Origin": { - "base": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.", - "refs": { - "StreamingDistributionConfig$S3Origin": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.", - "StreamingDistributionSummary$S3Origin": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution." - } - }, - "S3OriginConfig": { - "base": "A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.", - "refs": { - "Origin$S3OriginConfig": "A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead." - } - }, - "SSLSupportMethod": { - "base": null, - "refs": { - "ViewerCertificate$SSLSupportMethod": "If you specify a value for IAMCertificateId, you must also specify how you want CloudFront to serve HTTPS requests. Valid values are vip and sni-only. If you specify vip, CloudFront uses dedicated IP addresses for your content and can respond to HTTPS requests from any viewer. However, you must request permission to use this feature, and you incur additional monthly charges. If you specify sni-only, CloudFront can only respond to HTTPS requests from viewers that support Server Name Indication (SNI). All modern browsers support SNI, but some browsers still in use don't support SNI. Do not specify a value for SSLSupportMethod if you specified true for CloudFrontDefaultCertificate." - } - }, - "Signer": { - "base": "A complex type that lists the AWS accounts that were included in the TrustedSigners complex type, as well as their active CloudFront key pair IDs, if any.", - "refs": { - "SignerList$member": null - } - }, - "SignerList": { - "base": null, - "refs": { - "ActiveTrustedSigners$Items": "A complex type that contains one Signer complex type for each unique trusted signer that is specified in the TrustedSigners complex type, including trusted signers in the default cache behavior and in all of the other cache behaviors." - } - }, - "StreamingDistribution": { - "base": "A streaming distribution.", - "refs": { - "CreateStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information.", - "GetStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information.", - "UpdateStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information." - } - }, - "StreamingDistributionAlreadyExists": { - "base": null, - "refs": { - } - }, - "StreamingDistributionConfig": { - "base": "The configuration for the streaming distribution.", - "refs": { - "CreateStreamingDistributionRequest$StreamingDistributionConfig": "The streaming distribution's configuration information.", - "GetStreamingDistributionConfigResult$StreamingDistributionConfig": "The streaming distribution's configuration information.", - "StreamingDistribution$StreamingDistributionConfig": "The current configuration information for the streaming distribution.", - "UpdateStreamingDistributionRequest$StreamingDistributionConfig": "The streaming distribution's configuration information." - } - }, - "StreamingDistributionList": { - "base": "A streaming distribution list.", - "refs": { - "ListStreamingDistributionsResult$StreamingDistributionList": "The StreamingDistributionList type." - } - }, - "StreamingDistributionNotDisabled": { - "base": null, - "refs": { - } - }, - "StreamingDistributionSummary": { - "base": "A summary of the information for an Amazon CloudFront streaming distribution.", - "refs": { - "StreamingDistributionSummaryList$member": null - } - }, - "StreamingDistributionSummaryList": { - "base": null, - "refs": { - "StreamingDistributionList$Items": "A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account." - } - }, - "StreamingLoggingConfig": { - "base": "A complex type that controls whether access logs are written for this streaming distribution.", - "refs": { - "StreamingDistributionConfig$Logging": "A complex type that controls whether access logs are written for the streaming distribution." - } - }, - "TooManyCacheBehaviors": { - "base": "You cannot create anymore cache behaviors for the distribution.", - "refs": { - } - }, - "TooManyCertificates": { - "base": "You cannot create anymore custom ssl certificates.", - "refs": { - } - }, - "TooManyCloudFrontOriginAccessIdentities": { - "base": "Processing your request would cause you to exceed the maximum number of origin access identities allowed.", - "refs": { - } - }, - "TooManyCookieNamesInWhiteList": { - "base": "Your request contains more cookie names in the whitelist than are allowed per cache behavior.", - "refs": { - } - }, - "TooManyDistributionCNAMEs": { - "base": "Your request contains more CNAMEs than are allowed per distribution.", - "refs": { - } - }, - "TooManyDistributions": { - "base": "Processing your request would cause you to exceed the maximum number of distributions allowed.", - "refs": { - } - }, - "TooManyHeadersInForwardedValues": { - "base": null, - "refs": { - } - }, - "TooManyInvalidationsInProgress": { - "base": "You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.", - "refs": { - } - }, - "TooManyOrigins": { - "base": "You cannot create anymore origins for the distribution.", - "refs": { - } - }, - "TooManyStreamingDistributionCNAMEs": { - "base": null, - "refs": { - } - }, - "TooManyStreamingDistributions": { - "base": "Processing your request would cause you to exceed the maximum number of streaming distributions allowed.", - "refs": { - } - }, - "TooManyTrustedSigners": { - "base": "Your request contains more trusted signers than are allowed per distribution.", - "refs": { - } - }, - "TrustedSignerDoesNotExist": { - "base": "One or more of your trusted signers do not exist.", - "refs": { - } - }, - "TrustedSigners": { - "base": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "refs": { - "CacheBehavior$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "DefaultCacheBehavior$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "StreamingDistributionConfig$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "StreamingDistributionSummary$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution." - } - }, - "UpdateCloudFrontOriginAccessIdentityRequest": { - "base": "The request to update an origin access identity.", - "refs": { - } - }, - "UpdateCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "UpdateDistributionRequest": { - "base": "The request to update a distribution.", - "refs": { - } - }, - "UpdateDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "UpdateStreamingDistributionRequest": { - "base": "The request to update a streaming distribution.", - "refs": { - } - }, - "UpdateStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ViewerCertificate": { - "base": "A complex type that contains information about viewer certificates for this distribution.", - "refs": { - "DistributionConfig$ViewerCertificate": null, - "DistributionSummary$ViewerCertificate": null - } - }, - "ViewerProtocolPolicy": { - "base": null, - "refs": { - "CacheBehavior$ViewerProtocolPolicy": "Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL.", - "DefaultCacheBehavior$ViewerProtocolPolicy": "Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL." - } - }, - "boolean": { - "base": null, - "refs": { - "ActiveTrustedSigners$Enabled": "Each active trusted signer.", - "CacheBehavior$SmoothStreaming": "Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "CacheBehavior$Compress": "Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header. If so, specify true; if not, specify false. CloudFront compresses files larger than 1000 bytes and less than 1 megabyte for both Amazon S3 and custom origins. When a CloudFront edge location is unusually busy, some files might not be compressed. The value of the Content-Type header must be on the list of file types that CloudFront will compress. For the current list, see Serving Compressed Content in the Amazon CloudFront Developer Guide. If you configure CloudFront to compress content, CloudFront removes the ETag response header from the objects that it compresses. The ETag header indicates that the version in a CloudFront edge cache is identical to the version on the origin server, but after compression the two versions are no longer identical. As a result, for compressed objects, CloudFront can't use the ETag header to determine whether an expired object in the CloudFront edge cache is still the latest version.", - "CloudFrontOriginAccessIdentityList$IsTruncated": "A flag that indicates whether more origin access identities remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more items in the list.", - "DefaultCacheBehavior$SmoothStreaming": "Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "DefaultCacheBehavior$Compress": "Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header. If so, specify true; if not, specify false. CloudFront compresses files larger than 1000 bytes and less than 1 megabyte for both Amazon S3 and custom origins. When a CloudFront edge location is unusually busy, some files might not be compressed. The value of the Content-Type header must be on the list of file types that CloudFront will compress. For the current list, see Serving Compressed Content in the Amazon CloudFront Developer Guide. If you configure CloudFront to compress content, CloudFront removes the ETag response header from the objects that it compresses. The ETag header indicates that the version in a CloudFront edge cache is identical to the version on the origin server, but after compression the two versions are no longer identical. As a result, for compressed objects, CloudFront can't use the ETag header to determine whether an expired object in the CloudFront edge cache is still the latest version.", - "DistributionConfig$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "DistributionList$IsTruncated": "A flag that indicates whether more distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.", - "DistributionSummary$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "ForwardedValues$QueryString": "Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "InvalidationList$IsTruncated": "A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.", - "LoggingConfig$Enabled": "Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.", - "LoggingConfig$IncludeCookies": "Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.", - "StreamingDistributionConfig$Enabled": "Whether the streaming distribution is enabled to accept end user requests for content.", - "StreamingDistributionList$IsTruncated": "A flag that indicates whether more streaming distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.", - "StreamingDistributionSummary$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "StreamingLoggingConfig$Enabled": "Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.", - "TrustedSigners$Enabled": "Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.", - "ViewerCertificate$CloudFrontDefaultCertificate": "Note: this field is deprecated. Please use \"cloudfront\" as CertificateSource and omit specifying a Certificate. If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name of your distribution in your object URLs (for example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true. Omit this value if you are setting an IAMCertificateId." - } - }, - "integer": { - "base": null, - "refs": { - "ActiveTrustedSigners$Quantity": "The number of unique trusted signers included in all cache behaviors. For example, if three cache behaviors all list the same three AWS accounts, the value of Quantity for ActiveTrustedSigners will be 3.", - "Aliases$Quantity": "The number of CNAMEs, if any, for this distribution.", - "AllowedMethods$Quantity": "The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).", - "CacheBehaviors$Quantity": "The number of cache behaviors for this distribution.", - "CachedMethods$Quantity": "The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).", - "CloudFrontOriginAccessIdentityList$MaxItems": "The value you provided for the MaxItems request parameter.", - "CloudFrontOriginAccessIdentityList$Quantity": "The number of CloudFront origin access identities that were created by the current AWS account.", - "CookieNames$Quantity": "The number of whitelisted cookies for this cache behavior.", - "CustomErrorResponse$ErrorCode": "The 4xx or 5xx HTTP status code that you want to customize. For a list of HTTP status codes that you can customize, see CloudFront documentation.", - "CustomErrorResponses$Quantity": "The number of custom error responses for this distribution.", - "CustomOriginConfig$HTTPPort": "The HTTP port the custom origin listens on.", - "CustomOriginConfig$HTTPSPort": "The HTTPS port the custom origin listens on.", - "Distribution$InProgressInvalidationBatches": "The number of invalidation batches currently in progress.", - "DistributionList$MaxItems": "The value you provided for the MaxItems request parameter.", - "DistributionList$Quantity": "The number of distributions that were created by the current AWS account.", - "GeoRestriction$Quantity": "When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.", - "Headers$Quantity": "The number of different headers that you want CloudFront to forward to the origin and to vary on for this cache behavior. The maximum number of headers that you can specify by name is 10. If you want CloudFront to forward all headers to the origin and vary on all of them, specify 1 for Quantity and * for Name. If you don't want CloudFront to forward any additional headers to the origin or to vary on any headers, specify 0 for Quantity and omit Items.", - "InvalidationList$MaxItems": "The value you provided for the MaxItems request parameter.", - "InvalidationList$Quantity": "The number of invalidation batches that were created by the current AWS account.", - "KeyPairIds$Quantity": "The number of active CloudFront key pairs for AwsAccountNumber.", - "Origins$Quantity": "The number of origins for this distribution.", - "Paths$Quantity": "The number of objects that you want to invalidate.", - "StreamingDistributionList$MaxItems": "The value you provided for the MaxItems request parameter.", - "StreamingDistributionList$Quantity": "The number of streaming distributions that were created by the current AWS account.", - "TrustedSigners$Quantity": "The number of trusted signers for this cache behavior." - } - }, - "long": { - "base": null, - "refs": { - "CacheBehavior$MinTTL": "The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CacheBehavior$DefaultTTL": "If you don't configure your origin to add a Cache-Control max-age directive or an Expires header, DefaultTTL is the default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CacheBehavior$MaxTTL": "The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CustomErrorResponse$ErrorCachingMinTTL": "The minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. You can specify a value from 0 to 31,536,000.", - "DefaultCacheBehavior$MinTTL": "The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "DefaultCacheBehavior$DefaultTTL": "If you don't configure your origin to add a Cache-Control max-age directive or an Expires header, DefaultTTL is the default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "DefaultCacheBehavior$MaxTTL": "The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years)." - } - }, - "string": { - "base": null, - "refs": { - "AccessDenied$Message": null, - "AliasList$member": null, - "AwsAccountNumberList$member": null, - "BatchTooLarge$Message": null, - "CNAMEAlreadyExists$Message": null, - "CacheBehavior$PathPattern": "The pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to. When CloudFront receives an end-user request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution. The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.", - "CacheBehavior$TargetOriginId": "The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.", - "CloudFrontOriginAccessIdentity$Id": "The ID for the origin access identity. For example: E74FTE3AJFJ256A.", - "CloudFrontOriginAccessIdentity$S3CanonicalUserId": "The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.", - "CloudFrontOriginAccessIdentityAlreadyExists$Message": null, - "CloudFrontOriginAccessIdentityConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.", - "CloudFrontOriginAccessIdentityConfig$Comment": "Any comments you want to include about the origin access identity.", - "CloudFrontOriginAccessIdentityInUse$Message": null, - "CloudFrontOriginAccessIdentityList$Marker": "The value you provided for the Marker request parameter.", - "CloudFrontOriginAccessIdentityList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your origin access identities where they left off.", - "CloudFrontOriginAccessIdentitySummary$Id": "The ID for the origin access identity. For example: E74FTE3AJFJ256A.", - "CloudFrontOriginAccessIdentitySummary$S3CanonicalUserId": "The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.", - "CloudFrontOriginAccessIdentitySummary$Comment": "The comment for this origin access identity, as originally specified when created.", - "CookieNameList$member": null, - "CreateCloudFrontOriginAccessIdentityResult$Location": "The fully qualified URI of the new origin access identity just created. For example: https://cloudfront.amazonaws.com/2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A.", - "CreateCloudFrontOriginAccessIdentityResult$ETag": "The current version of the origin access identity created.", - "CreateDistributionResult$Location": "The fully qualified URI of the new distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5.", - "CreateDistributionResult$ETag": "The current version of the distribution created.", - "CreateInvalidationRequest$DistributionId": "The distribution's id.", - "CreateInvalidationResult$Location": "The fully qualified URI of the distribution and invalidation batch request, including the Invalidation ID.", - "CreateStreamingDistributionResult$Location": "The fully qualified URI of the new streaming distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8.", - "CreateStreamingDistributionResult$ETag": "The current version of the streaming distribution created.", - "CustomErrorResponse$ResponsePagePath": "The path of the custom error page (for example, /custom_404.html). The path is relative to the distribution and must begin with a slash (/). If the path includes any non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not return the custom error page to the viewer.", - "CustomErrorResponse$ResponseCode": "The HTTP status code that you want CloudFront to return with the custom error page to the viewer. For a list of HTTP status codes that you can replace, see CloudFront Documentation.", - "DefaultCacheBehavior$TargetOriginId": "The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.", - "DeleteCloudFrontOriginAccessIdentityRequest$Id": "The origin access identity's id.", - "DeleteCloudFrontOriginAccessIdentityRequest$IfMatch": "The value of the ETag header you received from a previous GET or PUT request. For example: E2QWRUHAPOMQZL.", - "DeleteDistributionRequest$Id": "The distribution id.", - "DeleteDistributionRequest$IfMatch": "The value of the ETag header you received when you disabled the distribution. For example: E2QWRUHAPOMQZL.", - "DeleteStreamingDistributionRequest$Id": "The distribution id.", - "DeleteStreamingDistributionRequest$IfMatch": "The value of the ETag header you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL.", - "Distribution$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "Distribution$Status": "This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "Distribution$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "DistributionAlreadyExists$Message": null, - "DistributionConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the DistributionConfig object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create a distribution, and the content of the DistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of the DistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.", - "DistributionConfig$DefaultRootObject": "The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/index.html). Specifying a default root object avoids exposing the contents of your distribution. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object.", - "DistributionConfig$Comment": "Any comments you want to include about the distribution.", - "DistributionConfig$WebACLId": "(Optional) If you're using AWS WAF to filter CloudFront requests, the Id of the AWS WAF web ACL that is associated with the distribution.", - "DistributionList$Marker": "The value you provided for the Marker request parameter.", - "DistributionList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your distributions where they left off.", - "DistributionNotDisabled$Message": null, - "DistributionSummary$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "DistributionSummary$Status": "This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "DistributionSummary$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "DistributionSummary$Comment": "The comment originally specified when this distribution was created.", - "DistributionSummary$WebACLId": "The Web ACL Id (if any) associated with the distribution.", - "GetCloudFrontOriginAccessIdentityConfigRequest$Id": "The identity's id.", - "GetCloudFrontOriginAccessIdentityConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetCloudFrontOriginAccessIdentityRequest$Id": "The identity's id.", - "GetCloudFrontOriginAccessIdentityResult$ETag": "The current version of the origin access identity's information. For example: E2QWRUHAPOMQZL.", - "GetDistributionConfigRequest$Id": "The distribution's id.", - "GetDistributionConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetDistributionRequest$Id": "The distribution's id.", - "GetDistributionResult$ETag": "The current version of the distribution's information. For example: E2QWRUHAPOMQZL.", - "GetInvalidationRequest$DistributionId": "The distribution's id.", - "GetInvalidationRequest$Id": "The invalidation's id.", - "GetStreamingDistributionConfigRequest$Id": "The streaming distribution's id.", - "GetStreamingDistributionConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetStreamingDistributionRequest$Id": "The streaming distribution's id.", - "GetStreamingDistributionResult$ETag": "The current version of the streaming distribution's information. For example: E2QWRUHAPOMQZL.", - "HeaderList$member": null, - "IllegalUpdate$Message": null, - "InconsistentQuantities$Message": null, - "InvalidArgument$Message": null, - "InvalidDefaultRootObject$Message": null, - "InvalidErrorCode$Message": null, - "InvalidForwardCookies$Message": null, - "InvalidGeoRestrictionParameter$Message": null, - "InvalidHeadersForS3Origin$Message": null, - "InvalidIfMatchVersion$Message": null, - "InvalidLocationCode$Message": null, - "InvalidMinimumProtocolVersion$Message": null, - "InvalidOrigin$Message": null, - "InvalidOriginAccessIdentity$Message": null, - "InvalidProtocolSettings$Message": null, - "InvalidRelativePath$Message": null, - "InvalidRequiredProtocol$Message": null, - "InvalidResponseCode$Message": null, - "InvalidTTLOrder$Message": null, - "InvalidViewerCertificate$Message": null, - "InvalidWebACLId$Message": null, - "Invalidation$Id": "The identifier for the invalidation request. For example: IDFDVBD632BHDS5.", - "Invalidation$Status": "The status of the invalidation request. When the invalidation batch is finished, the status is Completed.", - "InvalidationBatch$CallerReference": "A unique name that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the Path object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create an invalidation batch, and the content of each Path element is identical to the original request, the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of any Path is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists error.", - "InvalidationList$Marker": "The value you provided for the Marker request parameter.", - "InvalidationList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.", - "InvalidationSummary$Id": "The unique ID for an invalidation request.", - "InvalidationSummary$Status": "The status of an invalidation request.", - "KeyPairIdList$member": null, - "ListCloudFrontOriginAccessIdentitiesRequest$Marker": "Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).", - "ListCloudFrontOriginAccessIdentitiesRequest$MaxItems": "The maximum number of origin access identities you want in the response body.", - "ListDistributionsByWebACLIdRequest$Marker": "Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)", - "ListDistributionsByWebACLIdRequest$MaxItems": "The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.", - "ListDistributionsByWebACLIdRequest$WebACLId": "The Id of the AWS WAF web ACL for which you want to list the associated distributions. If you specify \"null\" for the Id, the request returns a list of the distributions that aren't associated with a web ACL.", - "ListDistributionsRequest$Marker": "Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)", - "ListDistributionsRequest$MaxItems": "The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.", - "ListInvalidationsRequest$DistributionId": "The distribution's id.", - "ListInvalidationsRequest$Marker": "Use this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.", - "ListInvalidationsRequest$MaxItems": "The maximum number of invalidation batches you want in the response body.", - "ListStreamingDistributionsRequest$Marker": "Use this when paginating results to indicate where to begin in your list of streaming distributions. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).", - "ListStreamingDistributionsRequest$MaxItems": "The maximum number of streaming distributions you want in the response body.", - "LocationList$member": null, - "LoggingConfig$Bucket": "The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.", - "LoggingConfig$Prefix": "An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.", - "MissingBody$Message": null, - "NoSuchCloudFrontOriginAccessIdentity$Message": null, - "NoSuchDistribution$Message": null, - "NoSuchInvalidation$Message": null, - "NoSuchOrigin$Message": null, - "NoSuchStreamingDistribution$Message": null, - "Origin$Id": "A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.", - "Origin$DomainName": "Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.", - "Origin$OriginPath": "An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. When you include the OriginPath element, specify the directory name, beginning with a /. CloudFront appends the directory name to the value of DomainName.", - "PathList$member": null, - "PreconditionFailed$Message": null, - "S3Origin$DomainName": "The DNS name of the S3 origin.", - "S3Origin$OriginAccessIdentity": "Your S3 origin's origin access identity.", - "S3OriginConfig$OriginAccessIdentity": "The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. Use the format origin-access-identity/cloudfront/Id where Id is the value that CloudFront returned in the Id element when you created the origin access identity.", - "Signer$AwsAccountNumber": "Specifies an AWS account that can create signed URLs. Values: self, which indicates that the AWS account that was used to create the distribution can created signed URLs, or an AWS account number. Omit the dashes in the account number.", - "StreamingDistribution$Id": "The identifier for the streaming distribution. For example: EGTXBD79H29TRA8.", - "StreamingDistribution$Status": "The current status of the streaming distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "StreamingDistribution$DomainName": "The domain name corresponding to the streaming distribution. For example: s5c39gqb8ow64r.cloudfront.net.", - "StreamingDistributionAlreadyExists$Message": null, - "StreamingDistributionConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.", - "StreamingDistributionConfig$Comment": "Any comments you want to include about the streaming distribution.", - "StreamingDistributionList$Marker": "The value you provided for the Marker request parameter.", - "StreamingDistributionList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your streaming distributions where they left off.", - "StreamingDistributionNotDisabled$Message": null, - "StreamingDistributionSummary$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "StreamingDistributionSummary$Status": "Indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "StreamingDistributionSummary$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "StreamingDistributionSummary$Comment": "The comment originally specified when this distribution was created.", - "StreamingLoggingConfig$Bucket": "The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.", - "StreamingLoggingConfig$Prefix": "An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.", - "TooManyCacheBehaviors$Message": null, - "TooManyCertificates$Message": null, - "TooManyCloudFrontOriginAccessIdentities$Message": null, - "TooManyCookieNamesInWhiteList$Message": null, - "TooManyDistributionCNAMEs$Message": null, - "TooManyDistributions$Message": null, - "TooManyHeadersInForwardedValues$Message": null, - "TooManyInvalidationsInProgress$Message": null, - "TooManyOrigins$Message": null, - "TooManyStreamingDistributionCNAMEs$Message": null, - "TooManyStreamingDistributions$Message": null, - "TooManyTrustedSigners$Message": null, - "TrustedSignerDoesNotExist$Message": null, - "UpdateCloudFrontOriginAccessIdentityRequest$Id": "The identity's id.", - "UpdateCloudFrontOriginAccessIdentityRequest$IfMatch": "The value of the ETag header you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateCloudFrontOriginAccessIdentityResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "UpdateDistributionRequest$Id": "The distribution's id.", - "UpdateDistributionRequest$IfMatch": "The value of the ETag header you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateDistributionResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "UpdateStreamingDistributionRequest$Id": "The streaming distribution's id.", - "UpdateStreamingDistributionRequest$IfMatch": "The value of the ETag header you received when retrieving the streaming distribution's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateStreamingDistributionResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "ViewerCertificate$Certificate": "If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), set to the IAM certificate identifier of the custom viewer certificate for this distribution.", - "ViewerCertificate$IAMCertificateId": "Note: this field is deprecated. Please use \"iam\" as CertificateSource and specify the IAM certificate Id as the Certificate. If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), specify the IAM certificate identifier of the custom viewer certificate for this distribution. Specify either this value or CloudFrontDefaultCertificate." - } - }, - "timestamp": { - "base": null, - "refs": { - "Distribution$LastModifiedTime": "The date and time the distribution was last modified.", - "DistributionSummary$LastModifiedTime": "The date and time the distribution was last modified.", - "Invalidation$CreateTime": "The date and time the invalidation request was first made.", - "InvalidationSummary$CreateTime": null, - "StreamingDistribution$LastModifiedTime": "The date and time the distribution was last modified.", - "StreamingDistributionSummary$LastModifiedTime": "The date and time the distribution was last modified." - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/paginators-1.json deleted file mode 100644 index 51fbb907f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/paginators-1.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "pagination": { - "ListCloudFrontOriginAccessIdentities": { - "input_token": "Marker", - "output_token": "CloudFrontOriginAccessIdentityList.NextMarker", - "limit_key": "MaxItems", - "more_results": "CloudFrontOriginAccessIdentityList.IsTruncated", - "result_key": "CloudFrontOriginAccessIdentityList.Items" - }, - "ListDistributions": { - "input_token": "Marker", - "output_token": "DistributionList.NextMarker", - "limit_key": "MaxItems", - "more_results": "DistributionList.IsTruncated", - "result_key": "DistributionList.Items" - }, - "ListInvalidations": { - "input_token": "Marker", - "output_token": "InvalidationList.NextMarker", - "limit_key": "MaxItems", - "more_results": "InvalidationList.IsTruncated", - "result_key": "InvalidationList.Items" - }, - "ListStreamingDistributions": { - "input_token": "Marker", - "output_token": "StreamingDistributionList.NextMarker", - "limit_key": "MaxItems", - "more_results": "StreamingDistributionList.IsTruncated", - "result_key": "StreamingDistributionList.Items" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/waiters-2.json deleted file mode 100644 index f6d3ba7bc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2015-09-17/waiters-2.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "version": 2, - "waiters": { - "DistributionDeployed": { - "delay": 60, - "operation": "GetDistribution", - "maxAttempts": 25, - "description": "Wait until a distribution is deployed.", - "acceptors": [ - { - "expected": "Deployed", - "matcher": "path", - "state": "success", - "argument": "Status" - } - ] - }, - "InvalidationCompleted": { - "delay": 20, - "operation": "GetInvalidation", - "maxAttempts": 30, - "description": "Wait until an invalidation has completed.", - "acceptors": [ - { - "expected": "Completed", - "matcher": "path", - "state": "success", - "argument": "Status" - } - ] - }, - "StreamingDistributionDeployed": { - "delay": 60, - "operation": "GetStreamingDistribution", - "maxAttempts": 25, - "description": "Wait until a streaming distribution is deployed.", - "acceptors": [ - { - "expected": "Deployed", - "matcher": "path", - "state": "success", - "argument": "Status" - } - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/api-2.json deleted file mode 100644 index 8fbe7298b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/api-2.json +++ /dev/null @@ -1,2216 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2016-01-13", - "endpointPrefix":"cloudfront", - "globalEndpoint":"cloudfront.amazonaws.com", - "protocol":"rest-xml", - "serviceAbbreviation":"CloudFront", - "serviceFullName":"Amazon CloudFront", - "signatureVersion":"v4" - }, - "operations":{ - "CreateCloudFrontOriginAccessIdentity":{ - "name":"CreateCloudFrontOriginAccessIdentity2016_01_13", - "http":{ - "method":"POST", - "requestUri":"/2016-01-13/origin-access-identity/cloudfront", - "responseCode":201 - }, - "input":{"shape":"CreateCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"CreateCloudFrontOriginAccessIdentityResult"}, - "errors":[ - {"shape":"CloudFrontOriginAccessIdentityAlreadyExists"}, - {"shape":"MissingBody"}, - {"shape":"TooManyCloudFrontOriginAccessIdentities"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} - ] - }, - "CreateDistribution":{ - "name":"CreateDistribution2016_01_13", - "http":{ - "method":"POST", - "requestUri":"/2016-01-13/distribution", - "responseCode":201 - }, - "input":{"shape":"CreateDistributionRequest"}, - "output":{"shape":"CreateDistributionResult"}, - "errors":[ - {"shape":"CNAMEAlreadyExists"}, - {"shape":"DistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"AccessDenied"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, - {"shape":"InvalidMinimumProtocolVersion"}, - {"shape":"MissingBody"}, - {"shape":"TooManyDistributionCNAMEs"}, - {"shape":"TooManyDistributions"}, - {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, - {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, - {"shape":"InvalidProtocolSettings"}, - {"shape":"InvalidTTLOrder"}, - {"shape":"InvalidWebACLId"}, - {"shape":"TooManyOriginCustomHeaders"} - ] - }, - "CreateInvalidation":{ - "name":"CreateInvalidation2016_01_13", - "http":{ - "method":"POST", - "requestUri":"/2016-01-13/distribution/{DistributionId}/invalidation", - "responseCode":201 - }, - "input":{"shape":"CreateInvalidationRequest"}, - "output":{"shape":"CreateInvalidationResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"MissingBody"}, - {"shape":"InvalidArgument"}, - {"shape":"NoSuchDistribution"}, - {"shape":"BatchTooLarge"}, - {"shape":"TooManyInvalidationsInProgress"}, - {"shape":"InconsistentQuantities"} - ] - }, - "CreateStreamingDistribution":{ - "name":"CreateStreamingDistribution2016_01_13", - "http":{ - "method":"POST", - "requestUri":"/2016-01-13/streaming-distribution", - "responseCode":201 - }, - "input":{"shape":"CreateStreamingDistributionRequest"}, - "output":{"shape":"CreateStreamingDistributionResult"}, - "errors":[ - {"shape":"CNAMEAlreadyExists"}, - {"shape":"StreamingDistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"AccessDenied"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"MissingBody"}, - {"shape":"TooManyStreamingDistributionCNAMEs"}, - {"shape":"TooManyStreamingDistributions"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} - ] - }, - "DeleteCloudFrontOriginAccessIdentity":{ - "name":"DeleteCloudFrontOriginAccessIdentity2016_01_13", - "http":{ - "method":"DELETE", - "requestUri":"/2016-01-13/origin-access-identity/cloudfront/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteCloudFrontOriginAccessIdentityRequest"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"PreconditionFailed"}, - {"shape":"CloudFrontOriginAccessIdentityInUse"} - ] - }, - "DeleteDistribution":{ - "name":"DeleteDistribution2016_01_13", - "http":{ - "method":"DELETE", - "requestUri":"/2016-01-13/distribution/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteDistributionRequest"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"DistributionNotDisabled"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchDistribution"}, - {"shape":"PreconditionFailed"} - ] - }, - "DeleteStreamingDistribution":{ - "name":"DeleteStreamingDistribution2016_01_13", - "http":{ - "method":"DELETE", - "requestUri":"/2016-01-13/streaming-distribution/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteStreamingDistributionRequest"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"StreamingDistributionNotDisabled"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"PreconditionFailed"} - ] - }, - "GetCloudFrontOriginAccessIdentity":{ - "name":"GetCloudFrontOriginAccessIdentity2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/origin-access-identity/cloudfront/{Id}" - }, - "input":{"shape":"GetCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"GetCloudFrontOriginAccessIdentityResult"}, - "errors":[ - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"AccessDenied"} - ] - }, - "GetCloudFrontOriginAccessIdentityConfig":{ - "name":"GetCloudFrontOriginAccessIdentityConfig2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/origin-access-identity/cloudfront/{Id}/config" - }, - "input":{"shape":"GetCloudFrontOriginAccessIdentityConfigRequest"}, - "output":{"shape":"GetCloudFrontOriginAccessIdentityConfigResult"}, - "errors":[ - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"AccessDenied"} - ] - }, - "GetDistribution":{ - "name":"GetDistribution2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/distribution/{Id}" - }, - "input":{"shape":"GetDistributionRequest"}, - "output":{"shape":"GetDistributionResult"}, - "errors":[ - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetDistributionConfig":{ - "name":"GetDistributionConfig2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/distribution/{Id}/config" - }, - "input":{"shape":"GetDistributionConfigRequest"}, - "output":{"shape":"GetDistributionConfigResult"}, - "errors":[ - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetInvalidation":{ - "name":"GetInvalidation2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/distribution/{DistributionId}/invalidation/{Id}" - }, - "input":{"shape":"GetInvalidationRequest"}, - "output":{"shape":"GetInvalidationResult"}, - "errors":[ - {"shape":"NoSuchInvalidation"}, - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetStreamingDistribution":{ - "name":"GetStreamingDistribution2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/streaming-distribution/{Id}" - }, - "input":{"shape":"GetStreamingDistributionRequest"}, - "output":{"shape":"GetStreamingDistributionResult"}, - "errors":[ - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetStreamingDistributionConfig":{ - "name":"GetStreamingDistributionConfig2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/streaming-distribution/{Id}/config" - }, - "input":{"shape":"GetStreamingDistributionConfigRequest"}, - "output":{"shape":"GetStreamingDistributionConfigResult"}, - "errors":[ - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "ListCloudFrontOriginAccessIdentities":{ - "name":"ListCloudFrontOriginAccessIdentities2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/origin-access-identity/cloudfront" - }, - "input":{"shape":"ListCloudFrontOriginAccessIdentitiesRequest"}, - "output":{"shape":"ListCloudFrontOriginAccessIdentitiesResult"}, - "errors":[ - {"shape":"InvalidArgument"} - ] - }, - "ListDistributions":{ - "name":"ListDistributions2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/distribution" - }, - "input":{"shape":"ListDistributionsRequest"}, - "output":{"shape":"ListDistributionsResult"}, - "errors":[ - {"shape":"InvalidArgument"} - ] - }, - "ListDistributionsByWebACLId":{ - "name":"ListDistributionsByWebACLId2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/distributionsByWebACLId/{WebACLId}" - }, - "input":{"shape":"ListDistributionsByWebACLIdRequest"}, - "output":{"shape":"ListDistributionsByWebACLIdResult"}, - "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"InvalidWebACLId"} - ] - }, - "ListInvalidations":{ - "name":"ListInvalidations2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/distribution/{DistributionId}/invalidation" - }, - "input":{"shape":"ListInvalidationsRequest"}, - "output":{"shape":"ListInvalidationsResult"}, - "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "ListStreamingDistributions":{ - "name":"ListStreamingDistributions2016_01_13", - "http":{ - "method":"GET", - "requestUri":"/2016-01-13/streaming-distribution" - }, - "input":{"shape":"ListStreamingDistributionsRequest"}, - "output":{"shape":"ListStreamingDistributionsResult"}, - "errors":[ - {"shape":"InvalidArgument"} - ] - }, - "UpdateCloudFrontOriginAccessIdentity":{ - "name":"UpdateCloudFrontOriginAccessIdentity2016_01_13", - "http":{ - "method":"PUT", - "requestUri":"/2016-01-13/origin-access-identity/cloudfront/{Id}/config" - }, - "input":{"shape":"UpdateCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"UpdateCloudFrontOriginAccessIdentityResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"PreconditionFailed"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} - ] - }, - "UpdateDistribution":{ - "name":"UpdateDistribution2016_01_13", - "http":{ - "method":"PUT", - "requestUri":"/2016-01-13/distribution/{Id}/config" - }, - "input":{"shape":"UpdateDistributionRequest"}, - "output":{"shape":"UpdateDistributionResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"CNAMEAlreadyExists"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchDistribution"}, - {"shape":"PreconditionFailed"}, - {"shape":"TooManyDistributionCNAMEs"}, - {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, - {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, - {"shape":"InvalidMinimumProtocolVersion"}, - {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, - {"shape":"InvalidTTLOrder"}, - {"shape":"InvalidWebACLId"}, - {"shape":"TooManyOriginCustomHeaders"} - ] - }, - "UpdateStreamingDistribution":{ - "name":"UpdateStreamingDistribution2016_01_13", - "http":{ - "method":"PUT", - "requestUri":"/2016-01-13/streaming-distribution/{Id}/config" - }, - "input":{"shape":"UpdateStreamingDistributionRequest"}, - "output":{"shape":"UpdateStreamingDistributionResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"CNAMEAlreadyExists"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"PreconditionFailed"}, - {"shape":"TooManyStreamingDistributionCNAMEs"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InconsistentQuantities"} - ] - } - }, - "shapes":{ - "AccessDenied":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":403}, - "exception":true - }, - "ActiveTrustedSigners":{ - "type":"structure", - "required":[ - "Enabled", - "Quantity" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"SignerList"} - } - }, - "AliasList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"CNAME" - } - }, - "Aliases":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"AliasList"} - } - }, - "AllowedMethods":{ - "type":"structure", - "required":[ - "Quantity", - "Items" - ], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"MethodsList"}, - "CachedMethods":{"shape":"CachedMethods"} - } - }, - "AwsAccountNumberList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"AwsAccountNumber" - } - }, - "BatchTooLarge":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":413}, - "exception":true - }, - "CNAMEAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CacheBehavior":{ - "type":"structure", - "required":[ - "PathPattern", - "TargetOriginId", - "ForwardedValues", - "TrustedSigners", - "ViewerProtocolPolicy", - "MinTTL" - ], - "members":{ - "PathPattern":{"shape":"string"}, - "TargetOriginId":{"shape":"string"}, - "ForwardedValues":{"shape":"ForwardedValues"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "ViewerProtocolPolicy":{"shape":"ViewerProtocolPolicy"}, - "MinTTL":{"shape":"long"}, - "AllowedMethods":{"shape":"AllowedMethods"}, - "SmoothStreaming":{"shape":"boolean"}, - "DefaultTTL":{"shape":"long"}, - "MaxTTL":{"shape":"long"}, - "Compress":{"shape":"boolean"} - } - }, - "CacheBehaviorList":{ - "type":"list", - "member":{ - "shape":"CacheBehavior", - "locationName":"CacheBehavior" - } - }, - "CacheBehaviors":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CacheBehaviorList"} - } - }, - "CachedMethods":{ - "type":"structure", - "required":[ - "Quantity", - "Items" - ], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"MethodsList"} - } - }, - "CertificateSource":{ - "type":"string", - "enum":[ - "cloudfront", - "iam" - ] - }, - "CloudFrontOriginAccessIdentity":{ - "type":"structure", - "required":[ - "Id", - "S3CanonicalUserId" - ], - "members":{ - "Id":{"shape":"string"}, - "S3CanonicalUserId":{"shape":"string"}, - "CloudFrontOriginAccessIdentityConfig":{"shape":"CloudFrontOriginAccessIdentityConfig"} - } - }, - "CloudFrontOriginAccessIdentityAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CloudFrontOriginAccessIdentityConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "Comment" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "Comment":{"shape":"string"} - } - }, - "CloudFrontOriginAccessIdentityInUse":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CloudFrontOriginAccessIdentityList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CloudFrontOriginAccessIdentitySummaryList"} - } - }, - "CloudFrontOriginAccessIdentitySummary":{ - "type":"structure", - "required":[ - "Id", - "S3CanonicalUserId", - "Comment" - ], - "members":{ - "Id":{"shape":"string"}, - "S3CanonicalUserId":{"shape":"string"}, - "Comment":{"shape":"string"} - } - }, - "CloudFrontOriginAccessIdentitySummaryList":{ - "type":"list", - "member":{ - "shape":"CloudFrontOriginAccessIdentitySummary", - "locationName":"CloudFrontOriginAccessIdentitySummary" - } - }, - "CookieNameList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Name" - } - }, - "CookieNames":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CookieNameList"} - } - }, - "CookiePreference":{ - "type":"structure", - "required":["Forward"], - "members":{ - "Forward":{"shape":"ItemSelection"}, - "WhitelistedNames":{"shape":"CookieNames"} - } - }, - "CreateCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":["CloudFrontOriginAccessIdentityConfig"], - "members":{ - "CloudFrontOriginAccessIdentityConfig":{ - "shape":"CloudFrontOriginAccessIdentityConfig", - "locationName":"CloudFrontOriginAccessIdentityConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-13/"} - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "CreateCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "CreateDistributionRequest":{ - "type":"structure", - "required":["DistributionConfig"], - "members":{ - "DistributionConfig":{ - "shape":"DistributionConfig", - "locationName":"DistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-13/"} - } - }, - "payload":"DistributionConfig" - }, - "CreateDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "CreateInvalidationRequest":{ - "type":"structure", - "required":[ - "DistributionId", - "InvalidationBatch" - ], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "InvalidationBatch":{ - "shape":"InvalidationBatch", - "locationName":"InvalidationBatch", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-13/"} - } - }, - "payload":"InvalidationBatch" - }, - "CreateInvalidationResult":{ - "type":"structure", - "members":{ - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "Invalidation":{"shape":"Invalidation"} - }, - "payload":"Invalidation" - }, - "CreateStreamingDistributionRequest":{ - "type":"structure", - "required":["StreamingDistributionConfig"], - "members":{ - "StreamingDistributionConfig":{ - "shape":"StreamingDistributionConfig", - "locationName":"StreamingDistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-13/"} - } - }, - "payload":"StreamingDistributionConfig" - }, - "CreateStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "CustomErrorResponse":{ - "type":"structure", - "required":["ErrorCode"], - "members":{ - "ErrorCode":{"shape":"integer"}, - "ResponsePagePath":{"shape":"string"}, - "ResponseCode":{"shape":"string"}, - "ErrorCachingMinTTL":{"shape":"long"} - } - }, - "CustomErrorResponseList":{ - "type":"list", - "member":{ - "shape":"CustomErrorResponse", - "locationName":"CustomErrorResponse" - } - }, - "CustomErrorResponses":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CustomErrorResponseList"} - } - }, - "CustomHeaders":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"OriginCustomHeadersList"} - } - }, - "CustomOriginConfig":{ - "type":"structure", - "required":[ - "HTTPPort", - "HTTPSPort", - "OriginProtocolPolicy" - ], - "members":{ - "HTTPPort":{"shape":"integer"}, - "HTTPSPort":{"shape":"integer"}, - "OriginProtocolPolicy":{"shape":"OriginProtocolPolicy"}, - "OriginSslProtocols":{"shape":"OriginSslProtocols"} - } - }, - "DefaultCacheBehavior":{ - "type":"structure", - "required":[ - "TargetOriginId", - "ForwardedValues", - "TrustedSigners", - "ViewerProtocolPolicy", - "MinTTL" - ], - "members":{ - "TargetOriginId":{"shape":"string"}, - "ForwardedValues":{"shape":"ForwardedValues"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "ViewerProtocolPolicy":{"shape":"ViewerProtocolPolicy"}, - "MinTTL":{"shape":"long"}, - "AllowedMethods":{"shape":"AllowedMethods"}, - "SmoothStreaming":{"shape":"boolean"}, - "DefaultTTL":{"shape":"long"}, - "MaxTTL":{"shape":"long"}, - "Compress":{"shape":"boolean"} - } - }, - "DeleteCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - } - }, - "DeleteDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - } - }, - "DeleteStreamingDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - } - }, - "Distribution":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "InProgressInvalidationBatches", - "DomainName", - "ActiveTrustedSigners", - "DistributionConfig" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "InProgressInvalidationBatches":{"shape":"integer"}, - "DomainName":{"shape":"string"}, - "ActiveTrustedSigners":{"shape":"ActiveTrustedSigners"}, - "DistributionConfig":{"shape":"DistributionConfig"} - } - }, - "DistributionAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DistributionConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "Origins", - "DefaultCacheBehavior", - "Comment", - "Enabled" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "Aliases":{"shape":"Aliases"}, - "DefaultRootObject":{"shape":"string"}, - "Origins":{"shape":"Origins"}, - "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, - "CacheBehaviors":{"shape":"CacheBehaviors"}, - "CustomErrorResponses":{"shape":"CustomErrorResponses"}, - "Comment":{"shape":"string"}, - "Logging":{"shape":"LoggingConfig"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"}, - "ViewerCertificate":{"shape":"ViewerCertificate"}, - "Restrictions":{"shape":"Restrictions"}, - "WebACLId":{"shape":"string"} - } - }, - "DistributionList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"DistributionSummaryList"} - } - }, - "DistributionNotDisabled":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DistributionSummary":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "DomainName", - "Aliases", - "Origins", - "DefaultCacheBehavior", - "CacheBehaviors", - "CustomErrorResponses", - "Comment", - "PriceClass", - "Enabled", - "ViewerCertificate", - "Restrictions", - "WebACLId" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "Aliases":{"shape":"Aliases"}, - "Origins":{"shape":"Origins"}, - "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, - "CacheBehaviors":{"shape":"CacheBehaviors"}, - "CustomErrorResponses":{"shape":"CustomErrorResponses"}, - "Comment":{"shape":"string"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"}, - "ViewerCertificate":{"shape":"ViewerCertificate"}, - "Restrictions":{"shape":"Restrictions"}, - "WebACLId":{"shape":"string"} - } - }, - "DistributionSummaryList":{ - "type":"list", - "member":{ - "shape":"DistributionSummary", - "locationName":"DistributionSummary" - } - }, - "ForwardedValues":{ - "type":"structure", - "required":[ - "QueryString", - "Cookies" - ], - "members":{ - "QueryString":{"shape":"boolean"}, - "Cookies":{"shape":"CookiePreference"}, - "Headers":{"shape":"Headers"} - } - }, - "GeoRestriction":{ - "type":"structure", - "required":[ - "RestrictionType", - "Quantity" - ], - "members":{ - "RestrictionType":{"shape":"GeoRestrictionType"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"LocationList"} - } - }, - "GeoRestrictionType":{ - "type":"string", - "enum":[ - "blacklist", - "whitelist", - "none" - ] - }, - "GetCloudFrontOriginAccessIdentityConfigRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetCloudFrontOriginAccessIdentityConfigResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentityConfig":{"shape":"CloudFrontOriginAccessIdentityConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "GetCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "GetDistributionConfigRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetDistributionConfigResult":{ - "type":"structure", - "members":{ - "DistributionConfig":{"shape":"DistributionConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"DistributionConfig" - }, - "GetDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "GetInvalidationRequest":{ - "type":"structure", - "required":[ - "DistributionId", - "Id" - ], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetInvalidationResult":{ - "type":"structure", - "members":{ - "Invalidation":{"shape":"Invalidation"} - }, - "payload":"Invalidation" - }, - "GetStreamingDistributionConfigRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetStreamingDistributionConfigResult":{ - "type":"structure", - "members":{ - "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistributionConfig" - }, - "GetStreamingDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "HeaderList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Name" - } - }, - "Headers":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"HeaderList"} - } - }, - "IllegalUpdate":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InconsistentQuantities":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidArgument":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidDefaultRootObject":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidErrorCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidForwardCookies":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidGeoRestrictionParameter":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidHeadersForS3Origin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidIfMatchVersion":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidLocationCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidMinimumProtocolVersion":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidOrigin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidOriginAccessIdentity":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidProtocolSettings":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidRelativePath":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidRequiredProtocol":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidResponseCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidTTLOrder":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidViewerCertificate":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidWebACLId":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "Invalidation":{ - "type":"structure", - "required":[ - "Id", - "Status", - "CreateTime", - "InvalidationBatch" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "CreateTime":{"shape":"timestamp"}, - "InvalidationBatch":{"shape":"InvalidationBatch"} - } - }, - "InvalidationBatch":{ - "type":"structure", - "required":[ - "Paths", - "CallerReference" - ], - "members":{ - "Paths":{"shape":"Paths"}, - "CallerReference":{"shape":"string"} - } - }, - "InvalidationList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"InvalidationSummaryList"} - } - }, - "InvalidationSummary":{ - "type":"structure", - "required":[ - "Id", - "CreateTime", - "Status" - ], - "members":{ - "Id":{"shape":"string"}, - "CreateTime":{"shape":"timestamp"}, - "Status":{"shape":"string"} - } - }, - "InvalidationSummaryList":{ - "type":"list", - "member":{ - "shape":"InvalidationSummary", - "locationName":"InvalidationSummary" - } - }, - "ItemSelection":{ - "type":"string", - "enum":[ - "none", - "whitelist", - "all" - ] - }, - "KeyPairIdList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"KeyPairId" - } - }, - "KeyPairIds":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"KeyPairIdList"} - } - }, - "ListCloudFrontOriginAccessIdentitiesRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListCloudFrontOriginAccessIdentitiesResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentityList":{"shape":"CloudFrontOriginAccessIdentityList"} - }, - "payload":"CloudFrontOriginAccessIdentityList" - }, - "ListDistributionsByWebACLIdRequest":{ - "type":"structure", - "required":["WebACLId"], - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - }, - "WebACLId":{ - "shape":"string", - "location":"uri", - "locationName":"WebACLId" - } - } - }, - "ListDistributionsByWebACLIdResult":{ - "type":"structure", - "members":{ - "DistributionList":{"shape":"DistributionList"} - }, - "payload":"DistributionList" - }, - "ListDistributionsRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListDistributionsResult":{ - "type":"structure", - "members":{ - "DistributionList":{"shape":"DistributionList"} - }, - "payload":"DistributionList" - }, - "ListInvalidationsRequest":{ - "type":"structure", - "required":["DistributionId"], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListInvalidationsResult":{ - "type":"structure", - "members":{ - "InvalidationList":{"shape":"InvalidationList"} - }, - "payload":"InvalidationList" - }, - "ListStreamingDistributionsRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListStreamingDistributionsResult":{ - "type":"structure", - "members":{ - "StreamingDistributionList":{"shape":"StreamingDistributionList"} - }, - "payload":"StreamingDistributionList" - }, - "LocationList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Location" - } - }, - "LoggingConfig":{ - "type":"structure", - "required":[ - "Enabled", - "IncludeCookies", - "Bucket", - "Prefix" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "IncludeCookies":{"shape":"boolean"}, - "Bucket":{"shape":"string"}, - "Prefix":{"shape":"string"} - } - }, - "Method":{ - "type":"string", - "enum":[ - "GET", - "HEAD", - "POST", - "PUT", - "PATCH", - "OPTIONS", - "DELETE" - ] - }, - "MethodsList":{ - "type":"list", - "member":{ - "shape":"Method", - "locationName":"Method" - } - }, - "MinimumProtocolVersion":{ - "type":"string", - "enum":[ - "SSLv3", - "TLSv1" - ] - }, - "MissingBody":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "NoSuchCloudFrontOriginAccessIdentity":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchDistribution":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchInvalidation":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchOrigin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchStreamingDistribution":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "Origin":{ - "type":"structure", - "required":[ - "Id", - "DomainName" - ], - "members":{ - "Id":{"shape":"string"}, - "DomainName":{"shape":"string"}, - "OriginPath":{"shape":"string"}, - "CustomHeaders":{"shape":"CustomHeaders"}, - "S3OriginConfig":{"shape":"S3OriginConfig"}, - "CustomOriginConfig":{"shape":"CustomOriginConfig"} - } - }, - "OriginCustomHeader":{ - "type":"structure", - "required":[ - "HeaderName", - "HeaderValue" - ], - "members":{ - "HeaderName":{"shape":"string"}, - "HeaderValue":{"shape":"string"} - } - }, - "OriginCustomHeadersList":{ - "type":"list", - "member":{ - "shape":"OriginCustomHeader", - "locationName":"OriginCustomHeader" - } - }, - "OriginList":{ - "type":"list", - "member":{ - "shape":"Origin", - "locationName":"Origin" - }, - "min":1 - }, - "OriginProtocolPolicy":{ - "type":"string", - "enum":[ - "http-only", - "match-viewer", - "https-only" - ] - }, - "OriginSslProtocols":{ - "type":"structure", - "required":[ - "Quantity", - "Items" - ], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"SslProtocolsList"} - } - }, - "Origins":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"OriginList"} - } - }, - "PathList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Path" - } - }, - "Paths":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"PathList"} - } - }, - "PreconditionFailed":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":412}, - "exception":true - }, - "PriceClass":{ - "type":"string", - "enum":[ - "PriceClass_100", - "PriceClass_200", - "PriceClass_All" - ] - }, - "Restrictions":{ - "type":"structure", - "required":["GeoRestriction"], - "members":{ - "GeoRestriction":{"shape":"GeoRestriction"} - } - }, - "S3Origin":{ - "type":"structure", - "required":[ - "DomainName", - "OriginAccessIdentity" - ], - "members":{ - "DomainName":{"shape":"string"}, - "OriginAccessIdentity":{"shape":"string"} - } - }, - "S3OriginConfig":{ - "type":"structure", - "required":["OriginAccessIdentity"], - "members":{ - "OriginAccessIdentity":{"shape":"string"} - } - }, - "SSLSupportMethod":{ - "type":"string", - "enum":[ - "sni-only", - "vip" - ] - }, - "Signer":{ - "type":"structure", - "members":{ - "AwsAccountNumber":{"shape":"string"}, - "KeyPairIds":{"shape":"KeyPairIds"} - } - }, - "SignerList":{ - "type":"list", - "member":{ - "shape":"Signer", - "locationName":"Signer" - } - }, - "SslProtocol":{ - "type":"string", - "enum":[ - "SSLv3", - "TLSv1", - "TLSv1.1", - "TLSv1.2" - ] - }, - "SslProtocolsList":{ - "type":"list", - "member":{ - "shape":"SslProtocol", - "locationName":"SslProtocol" - } - }, - "StreamingDistribution":{ - "type":"structure", - "required":[ - "Id", - "Status", - "DomainName", - "ActiveTrustedSigners", - "StreamingDistributionConfig" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "ActiveTrustedSigners":{"shape":"ActiveTrustedSigners"}, - "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"} - } - }, - "StreamingDistributionAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "StreamingDistributionConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "S3Origin", - "Comment", - "TrustedSigners", - "Enabled" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "S3Origin":{"shape":"S3Origin"}, - "Aliases":{"shape":"Aliases"}, - "Comment":{"shape":"string"}, - "Logging":{"shape":"StreamingLoggingConfig"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"} - } - }, - "StreamingDistributionList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"StreamingDistributionSummaryList"} - } - }, - "StreamingDistributionNotDisabled":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "StreamingDistributionSummary":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "DomainName", - "S3Origin", - "Aliases", - "TrustedSigners", - "Comment", - "PriceClass", - "Enabled" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "S3Origin":{"shape":"S3Origin"}, - "Aliases":{"shape":"Aliases"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "Comment":{"shape":"string"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"} - } - }, - "StreamingDistributionSummaryList":{ - "type":"list", - "member":{ - "shape":"StreamingDistributionSummary", - "locationName":"StreamingDistributionSummary" - } - }, - "StreamingLoggingConfig":{ - "type":"structure", - "required":[ - "Enabled", - "Bucket", - "Prefix" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Bucket":{"shape":"string"}, - "Prefix":{"shape":"string"} - } - }, - "TooManyCacheBehaviors":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCertificates":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCloudFrontOriginAccessIdentities":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCookieNamesInWhiteList":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyDistributionCNAMEs":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyDistributions":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyHeadersInForwardedValues":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyInvalidationsInProgress":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyOriginCustomHeaders":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyOrigins":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyStreamingDistributionCNAMEs":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyStreamingDistributions":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyTrustedSigners":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TrustedSignerDoesNotExist":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TrustedSigners":{ - "type":"structure", - "required":[ - "Enabled", - "Quantity" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"AwsAccountNumberList"} - } - }, - "UpdateCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":[ - "CloudFrontOriginAccessIdentityConfig", - "Id" - ], - "members":{ - "CloudFrontOriginAccessIdentityConfig":{ - "shape":"CloudFrontOriginAccessIdentityConfig", - "locationName":"CloudFrontOriginAccessIdentityConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-13/"} - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "UpdateCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "UpdateDistributionRequest":{ - "type":"structure", - "required":[ - "DistributionConfig", - "Id" - ], - "members":{ - "DistributionConfig":{ - "shape":"DistributionConfig", - "locationName":"DistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-13/"} - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"DistributionConfig" - }, - "UpdateDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "UpdateStreamingDistributionRequest":{ - "type":"structure", - "required":[ - "StreamingDistributionConfig", - "Id" - ], - "members":{ - "StreamingDistributionConfig":{ - "shape":"StreamingDistributionConfig", - "locationName":"StreamingDistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-13/"} - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"StreamingDistributionConfig" - }, - "UpdateStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "ViewerCertificate":{ - "type":"structure", - "members":{ - "Certificate":{"shape":"string"}, - "CertificateSource":{"shape":"CertificateSource"}, - "SSLSupportMethod":{"shape":"SSLSupportMethod"}, - "MinimumProtocolVersion":{"shape":"MinimumProtocolVersion"}, - "IAMCertificateId":{ - "shape":"string", - "deprecated":true - }, - "CloudFrontDefaultCertificate":{ - "shape":"boolean", - "deprecated":true - } - } - }, - "ViewerProtocolPolicy":{ - "type":"string", - "enum":[ - "allow-all", - "https-only", - "redirect-to-https" - ] - }, - "boolean":{"type":"boolean"}, - "integer":{"type":"integer"}, - "long":{"type":"long"}, - "string":{"type":"string"}, - "timestamp":{"type":"timestamp"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/docs-2.json deleted file mode 100644 index a9e293427..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/docs-2.json +++ /dev/null @@ -1,1219 +0,0 @@ -{ - "version": "2.0", - "service": null, - "operations": { - "CreateCloudFrontOriginAccessIdentity": "Create a new origin access identity.", - "CreateDistribution": "Create a new distribution.", - "CreateInvalidation": "Create a new invalidation.", - "CreateStreamingDistribution": "Create a new streaming distribution.", - "DeleteCloudFrontOriginAccessIdentity": "Delete an origin access identity.", - "DeleteDistribution": "Delete a distribution.", - "DeleteStreamingDistribution": "Delete a streaming distribution.", - "GetCloudFrontOriginAccessIdentity": "Get the information about an origin access identity.", - "GetCloudFrontOriginAccessIdentityConfig": "Get the configuration information about an origin access identity.", - "GetDistribution": "Get the information about a distribution.", - "GetDistributionConfig": "Get the configuration information about a distribution.", - "GetInvalidation": "Get the information about an invalidation.", - "GetStreamingDistribution": "Get the information about a streaming distribution.", - "GetStreamingDistributionConfig": "Get the configuration information about a streaming distribution.", - "ListCloudFrontOriginAccessIdentities": "List origin access identities.", - "ListDistributions": "List distributions.", - "ListDistributionsByWebACLId": "List the distributions that are associated with a specified AWS WAF web ACL.", - "ListInvalidations": "List invalidation batches.", - "ListStreamingDistributions": "List streaming distributions.", - "UpdateCloudFrontOriginAccessIdentity": "Update an origin access identity.", - "UpdateDistribution": "Update a distribution.", - "UpdateStreamingDistribution": "Update a streaming distribution." - }, - "shapes": { - "AccessDenied": { - "base": "Access denied.", - "refs": { - } - }, - "ActiveTrustedSigners": { - "base": "A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for the default cache behavior or for any of the other cache behaviors for this distribution. These are accounts that you want to allow to create signed URLs for private content.", - "refs": { - "Distribution$ActiveTrustedSigners": "CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs.", - "StreamingDistribution$ActiveTrustedSigners": "CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs." - } - }, - "AliasList": { - "base": null, - "refs": { - "Aliases$Items": "Optional: A complex type that contains CNAME elements, if any, for this distribution. If Quantity is 0, you can omit Items." - } - }, - "Aliases": { - "base": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "refs": { - "DistributionConfig$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "DistributionSummary$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "StreamingDistributionConfig$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.", - "StreamingDistributionSummary$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution." - } - }, - "AllowedMethods": { - "base": "A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards only GET, HEAD and OPTIONS requests. - CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests. If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you may not want users to have permission to delete objects from your origin.", - "refs": { - "CacheBehavior$AllowedMethods": null, - "DefaultCacheBehavior$AllowedMethods": null - } - }, - "AwsAccountNumberList": { - "base": null, - "refs": { - "TrustedSigners$Items": "Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items." - } - }, - "BatchTooLarge": { - "base": null, - "refs": { - } - }, - "CNAMEAlreadyExists": { - "base": null, - "refs": { - } - }, - "CacheBehavior": { - "base": "A complex type that describes how CloudFront processes requests. You can create up to 10 cache behaviors.You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to distribute objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin will never be used. If you don't want to specify any cache behaviors, include only an empty CacheBehaviors element. Don't include an empty CacheBehavior element, or CloudFront returns a MalformedXML error. To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty CacheBehaviors element. To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.", - "refs": { - "CacheBehaviorList$member": null - } - }, - "CacheBehaviorList": { - "base": null, - "refs": { - "CacheBehaviors$Items": "Optional: A complex type that contains cache behaviors for this distribution. If Quantity is 0, you can omit Items." - } - }, - "CacheBehaviors": { - "base": "A complex type that contains zero or more CacheBehavior elements.", - "refs": { - "DistributionConfig$CacheBehaviors": "A complex type that contains zero or more CacheBehavior elements.", - "DistributionSummary$CacheBehaviors": "A complex type that contains zero or more CacheBehavior elements." - } - }, - "CachedMethods": { - "base": "A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices: - CloudFront caches responses to GET and HEAD requests. - CloudFront caches responses to GET, HEAD, and OPTIONS requests. If you pick the second choice for your S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers and Origin headers for the responses to be cached correctly.", - "refs": { - "AllowedMethods$CachedMethods": null - } - }, - "CertificateSource": { - "base": null, - "refs": { - "ViewerCertificate$CertificateSource": "If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name of your distribution in your object URLs (for example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to \"cloudfront\". If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), you can use your own IAM or ACM certificate. To use an ACM certificate, set to \"acm\" and update the Certificate to the ACM certificate ARN. To use an IAM certificate, set to \"iam\" and update the Certificate to the IAM certificate identifier." - } - }, - "CloudFrontOriginAccessIdentity": { - "base": "CloudFront origin access identity.", - "refs": { - "CreateCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information.", - "GetCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information.", - "UpdateCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information." - } - }, - "CloudFrontOriginAccessIdentityAlreadyExists": { - "base": "If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.", - "refs": { - } - }, - "CloudFrontOriginAccessIdentityConfig": { - "base": "Origin access identity configuration.", - "refs": { - "CloudFrontOriginAccessIdentity$CloudFrontOriginAccessIdentityConfig": "The current configuration information for the identity.", - "CreateCloudFrontOriginAccessIdentityRequest$CloudFrontOriginAccessIdentityConfig": "The origin access identity's configuration information.", - "GetCloudFrontOriginAccessIdentityConfigResult$CloudFrontOriginAccessIdentityConfig": "The origin access identity's configuration information.", - "UpdateCloudFrontOriginAccessIdentityRequest$CloudFrontOriginAccessIdentityConfig": "The identity's configuration information." - } - }, - "CloudFrontOriginAccessIdentityInUse": { - "base": null, - "refs": { - } - }, - "CloudFrontOriginAccessIdentityList": { - "base": "The CloudFrontOriginAccessIdentityList type.", - "refs": { - "ListCloudFrontOriginAccessIdentitiesResult$CloudFrontOriginAccessIdentityList": "The CloudFrontOriginAccessIdentityList type." - } - }, - "CloudFrontOriginAccessIdentitySummary": { - "base": "Summary of the information about a CloudFront origin access identity.", - "refs": { - "CloudFrontOriginAccessIdentitySummaryList$member": null - } - }, - "CloudFrontOriginAccessIdentitySummaryList": { - "base": null, - "refs": { - "CloudFrontOriginAccessIdentityList$Items": "A complex type that contains one CloudFrontOriginAccessIdentitySummary element for each origin access identity that was created by the current AWS account." - } - }, - "CookieNameList": { - "base": null, - "refs": { - "CookieNames$Items": "Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items." - } - }, - "CookieNames": { - "base": "A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior.", - "refs": { - "CookiePreference$WhitelistedNames": "A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior." - } - }, - "CookiePreference": { - "base": "A complex type that specifies the cookie preferences associated with this cache behavior.", - "refs": { - "ForwardedValues$Cookies": "A complex type that specifies how CloudFront handles cookies." - } - }, - "CreateCloudFrontOriginAccessIdentityRequest": { - "base": "The request to create a new origin access identity.", - "refs": { - } - }, - "CreateCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateDistributionRequest": { - "base": "The request to create a new distribution.", - "refs": { - } - }, - "CreateDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateInvalidationRequest": { - "base": "The request to create an invalidation.", - "refs": { - } - }, - "CreateInvalidationResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateStreamingDistributionRequest": { - "base": "The request to create a new streaming distribution.", - "refs": { - } - }, - "CreateStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CustomErrorResponse": { - "base": "A complex type that describes how you'd prefer CloudFront to respond to requests that result in either a 4xx or 5xx response. You can control whether a custom error page should be displayed, what the desired response code should be for this error page and how long should the error response be cached by CloudFront. If you don't want to specify any custom error responses, include only an empty CustomErrorResponses element. To delete all custom error responses in an existing distribution, update the distribution configuration and include only an empty CustomErrorResponses element. To add, change, or remove one or more custom error responses, update the distribution configuration and specify all of the custom error responses that you want to include in the updated distribution.", - "refs": { - "CustomErrorResponseList$member": null - } - }, - "CustomErrorResponseList": { - "base": null, - "refs": { - "CustomErrorResponses$Items": "Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items." - } - }, - "CustomErrorResponses": { - "base": "A complex type that contains zero or more CustomErrorResponse elements.", - "refs": { - "DistributionConfig$CustomErrorResponses": "A complex type that contains zero or more CustomErrorResponse elements.", - "DistributionSummary$CustomErrorResponses": "A complex type that contains zero or more CustomErrorResponses elements." - } - }, - "CustomHeaders": { - "base": "A complex type that contains the list of Custom Headers for each origin.", - "refs": { - "Origin$CustomHeaders": "A complex type that contains information about the custom headers associated with this Origin." - } - }, - "CustomOriginConfig": { - "base": "A customer origin.", - "refs": { - "Origin$CustomOriginConfig": "A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead." - } - }, - "DefaultCacheBehavior": { - "base": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.", - "refs": { - "DistributionConfig$DefaultCacheBehavior": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.", - "DistributionSummary$DefaultCacheBehavior": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior." - } - }, - "DeleteCloudFrontOriginAccessIdentityRequest": { - "base": "The request to delete a origin access identity.", - "refs": { - } - }, - "DeleteDistributionRequest": { - "base": "The request to delete a distribution.", - "refs": { - } - }, - "DeleteStreamingDistributionRequest": { - "base": "The request to delete a streaming distribution.", - "refs": { - } - }, - "Distribution": { - "base": "A distribution.", - "refs": { - "CreateDistributionResult$Distribution": "The distribution's information.", - "GetDistributionResult$Distribution": "The distribution's information.", - "UpdateDistributionResult$Distribution": "The distribution's information." - } - }, - "DistributionAlreadyExists": { - "base": "The caller reference you attempted to create the distribution with is associated with another distribution.", - "refs": { - } - }, - "DistributionConfig": { - "base": "A distribution Configuration.", - "refs": { - "CreateDistributionRequest$DistributionConfig": "The distribution's configuration information.", - "Distribution$DistributionConfig": "The current configuration information for the distribution.", - "GetDistributionConfigResult$DistributionConfig": "The distribution's configuration information.", - "UpdateDistributionRequest$DistributionConfig": "The distribution's configuration information." - } - }, - "DistributionList": { - "base": "A distribution list.", - "refs": { - "ListDistributionsByWebACLIdResult$DistributionList": "The DistributionList type.", - "ListDistributionsResult$DistributionList": "The DistributionList type." - } - }, - "DistributionNotDisabled": { - "base": null, - "refs": { - } - }, - "DistributionSummary": { - "base": "A summary of the information for an Amazon CloudFront distribution.", - "refs": { - "DistributionSummaryList$member": null - } - }, - "DistributionSummaryList": { - "base": null, - "refs": { - "DistributionList$Items": "A complex type that contains one DistributionSummary element for each distribution that was created by the current AWS account." - } - }, - "ForwardedValues": { - "base": "A complex type that specifies how CloudFront handles query strings, cookies and headers.", - "refs": { - "CacheBehavior$ForwardedValues": "A complex type that specifies how CloudFront handles query strings, cookies and headers.", - "DefaultCacheBehavior$ForwardedValues": "A complex type that specifies how CloudFront handles query strings, cookies and headers." - } - }, - "GeoRestriction": { - "base": "A complex type that controls the countries in which your content is distributed. For more information about geo restriction, go to Customizing Error Responses in the Amazon CloudFront Developer Guide. CloudFront determines the location of your users using MaxMind GeoIP databases. For information about the accuracy of these databases, see How accurate are your GeoIP databases? on the MaxMind website.", - "refs": { - "Restrictions$GeoRestriction": null - } - }, - "GeoRestrictionType": { - "base": null, - "refs": { - "GeoRestriction$RestrictionType": "The method that you want to use to restrict distribution of your content by country: - none: No geo restriction is enabled, meaning access to content is not restricted by client geo location. - blacklist: The Location elements specify the countries in which you do not want CloudFront to distribute your content. - whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content." - } - }, - "GetCloudFrontOriginAccessIdentityConfigRequest": { - "base": "The request to get an origin access identity's configuration.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityRequest": { - "base": "The request to get an origin access identity's information.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetDistributionConfigRequest": { - "base": "The request to get a distribution configuration.", - "refs": { - } - }, - "GetDistributionConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetDistributionRequest": { - "base": "The request to get a distribution's information.", - "refs": { - } - }, - "GetDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetInvalidationRequest": { - "base": "The request to get an invalidation's information.", - "refs": { - } - }, - "GetInvalidationResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetStreamingDistributionConfigRequest": { - "base": "To request to get a streaming distribution configuration.", - "refs": { - } - }, - "GetStreamingDistributionConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetStreamingDistributionRequest": { - "base": "The request to get a streaming distribution's information.", - "refs": { - } - }, - "GetStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "HeaderList": { - "base": null, - "refs": { - "Headers$Items": "Optional: A complex type that contains a Name element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If Quantity is 0, omit Items." - } - }, - "Headers": { - "base": "A complex type that specifies the headers that you want CloudFront to forward to the origin for this cache behavior. For the headers that you specify, CloudFront also caches separate versions of a given object based on the header values in viewer requests; this is known as varying on headers. For example, suppose viewer requests for logo.jpg contain a custom Product header that has a value of either Acme or Apex, and you configure CloudFront to vary on the Product header. CloudFront forwards the Product header to the origin and caches the response from the origin once for each header value.", - "refs": { - "ForwardedValues$Headers": "A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior." - } - }, - "IllegalUpdate": { - "base": "Origin and CallerReference cannot be updated.", - "refs": { - } - }, - "InconsistentQuantities": { - "base": "The value of Quantity and the size of Items do not match.", - "refs": { - } - }, - "InvalidArgument": { - "base": "The argument is invalid.", - "refs": { - } - }, - "InvalidDefaultRootObject": { - "base": "The default root object file name is too big or contains an invalid character.", - "refs": { - } - }, - "InvalidErrorCode": { - "base": null, - "refs": { - } - }, - "InvalidForwardCookies": { - "base": "Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.", - "refs": { - } - }, - "InvalidGeoRestrictionParameter": { - "base": null, - "refs": { - } - }, - "InvalidHeadersForS3Origin": { - "base": null, - "refs": { - } - }, - "InvalidIfMatchVersion": { - "base": "The If-Match version is missing or not valid for the distribution.", - "refs": { - } - }, - "InvalidLocationCode": { - "base": null, - "refs": { - } - }, - "InvalidMinimumProtocolVersion": { - "base": null, - "refs": { - } - }, - "InvalidOrigin": { - "base": "The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.", - "refs": { - } - }, - "InvalidOriginAccessIdentity": { - "base": "The origin access identity is not valid or doesn't exist.", - "refs": { - } - }, - "InvalidProtocolSettings": { - "base": "You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that Support Server Name Indication (SNI).", - "refs": { - } - }, - "InvalidRelativePath": { - "base": "The relative path is too big, is not URL-encoded, or does not begin with a slash (/).", - "refs": { - } - }, - "InvalidRequiredProtocol": { - "base": "This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.", - "refs": { - } - }, - "InvalidResponseCode": { - "base": null, - "refs": { - } - }, - "InvalidTTLOrder": { - "base": null, - "refs": { - } - }, - "InvalidViewerCertificate": { - "base": null, - "refs": { - } - }, - "InvalidWebACLId": { - "base": null, - "refs": { - } - }, - "Invalidation": { - "base": "An invalidation.", - "refs": { - "CreateInvalidationResult$Invalidation": "The invalidation's information.", - "GetInvalidationResult$Invalidation": "The invalidation's information." - } - }, - "InvalidationBatch": { - "base": "An invalidation batch.", - "refs": { - "CreateInvalidationRequest$InvalidationBatch": "The batch information for the invalidation.", - "Invalidation$InvalidationBatch": "The current invalidation information for the batch request." - } - }, - "InvalidationList": { - "base": "An invalidation list.", - "refs": { - "ListInvalidationsResult$InvalidationList": "Information about invalidation batches." - } - }, - "InvalidationSummary": { - "base": "Summary of an invalidation request.", - "refs": { - "InvalidationSummaryList$member": null - } - }, - "InvalidationSummaryList": { - "base": null, - "refs": { - "InvalidationList$Items": "A complex type that contains one InvalidationSummary element for each invalidation batch that was created by the current AWS account." - } - }, - "ItemSelection": { - "base": null, - "refs": { - "CookiePreference$Forward": "Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses." - } - }, - "KeyPairIdList": { - "base": null, - "refs": { - "KeyPairIds$Items": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber." - } - }, - "KeyPairIds": { - "base": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.", - "refs": { - "Signer$KeyPairIds": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber." - } - }, - "ListCloudFrontOriginAccessIdentitiesRequest": { - "base": "The request to list origin access identities.", - "refs": { - } - }, - "ListCloudFrontOriginAccessIdentitiesResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListDistributionsByWebACLIdRequest": { - "base": "The request to list distributions that are associated with a specified AWS WAF web ACL.", - "refs": { - } - }, - "ListDistributionsByWebACLIdResult": { - "base": "The response to a request to list the distributions that are associated with a specified AWS WAF web ACL.", - "refs": { - } - }, - "ListDistributionsRequest": { - "base": "The request to list your distributions.", - "refs": { - } - }, - "ListDistributionsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListInvalidationsRequest": { - "base": "The request to list invalidations.", - "refs": { - } - }, - "ListInvalidationsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListStreamingDistributionsRequest": { - "base": "The request to list your streaming distributions.", - "refs": { - } - }, - "ListStreamingDistributionsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "LocationList": { - "base": null, - "refs": { - "GeoRestriction$Items": "A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list in the CloudFront console, which includes both country names and codes." - } - }, - "LoggingConfig": { - "base": "A complex type that controls whether access logs are written for the distribution.", - "refs": { - "DistributionConfig$Logging": "A complex type that controls whether access logs are written for the distribution." - } - }, - "Method": { - "base": null, - "refs": { - "MethodsList$member": null - } - }, - "MethodsList": { - "base": null, - "refs": { - "AllowedMethods$Items": "A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.", - "CachedMethods$Items": "A complex type that contains the HTTP methods that you want CloudFront to cache responses to." - } - }, - "MinimumProtocolVersion": { - "base": null, - "refs": { - "ViewerCertificate$MinimumProtocolVersion": "Specify the minimum version of the SSL protocol that you want CloudFront to use, SSLv3 or TLSv1, for HTTPS connections. CloudFront will serve your objects only to browsers or devices that support at least the SSL version that you specify. The TLSv1 protocol is more secure, so we recommend that you specify SSLv3 only if your users are using browsers or devices that don't support TLSv1. If you're using a custom certificate (if you specify a value for IAMCertificateId) and if you're using dedicated IP (if you specify vip for SSLSupportMethod), you can choose SSLv3 or TLSv1 as the MinimumProtocolVersion. If you're using a custom certificate (if you specify a value for IAMCertificateId) and if you're using SNI (if you specify sni-only for SSLSupportMethod), you must specify TLSv1 for MinimumProtocolVersion." - } - }, - "MissingBody": { - "base": "This operation requires a body. Ensure that the body is present and the Content-Type header is set.", - "refs": { - } - }, - "NoSuchCloudFrontOriginAccessIdentity": { - "base": "The specified origin access identity does not exist.", - "refs": { - } - }, - "NoSuchDistribution": { - "base": "The specified distribution does not exist.", - "refs": { - } - }, - "NoSuchInvalidation": { - "base": "The specified invalidation does not exist.", - "refs": { - } - }, - "NoSuchOrigin": { - "base": "No origin exists with the specified Origin Id.", - "refs": { - } - }, - "NoSuchStreamingDistribution": { - "base": "The specified streaming distribution does not exist.", - "refs": { - } - }, - "Origin": { - "base": "A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files.You must create at least one origin.", - "refs": { - "OriginList$member": null - } - }, - "OriginCustomHeader": { - "base": "A complex type that contains information related to a Header", - "refs": { - "OriginCustomHeadersList$member": null - } - }, - "OriginCustomHeadersList": { - "base": null, - "refs": { - "CustomHeaders$Items": "A complex type that contains the custom headers for this Origin." - } - }, - "OriginList": { - "base": null, - "refs": { - "Origins$Items": "A complex type that contains origins for this distribution." - } - }, - "OriginProtocolPolicy": { - "base": null, - "refs": { - "CustomOriginConfig$OriginProtocolPolicy": "The origin protocol policy to apply to your origin." - } - }, - "OriginSslProtocols": { - "base": "A complex type that contains the list of SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.", - "refs": { - "CustomOriginConfig$OriginSslProtocols": "The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS." - } - }, - "Origins": { - "base": "A complex type that contains information about origins for this distribution.", - "refs": { - "DistributionConfig$Origins": "A complex type that contains information about origins for this distribution.", - "DistributionSummary$Origins": "A complex type that contains information about origins for this distribution." - } - }, - "PathList": { - "base": null, - "refs": { - "Paths$Items": "A complex type that contains a list of the objects that you want to invalidate." - } - }, - "Paths": { - "base": "A complex type that contains information about the objects that you want to invalidate.", - "refs": { - "InvalidationBatch$Paths": "The path of the object to invalidate. The path is relative to the distribution and must begin with a slash (/). You must enclose each invalidation object with the Path element tags. If the path includes non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not invalidate the old version of the updated object." - } - }, - "PreconditionFailed": { - "base": "The precondition given in one or more of the request-header fields evaluated to false.", - "refs": { - } - }, - "PriceClass": { - "base": null, - "refs": { - "DistributionConfig$PriceClass": "A complex type that contains information about price class for this distribution.", - "DistributionSummary$PriceClass": null, - "StreamingDistributionConfig$PriceClass": "A complex type that contains information about price class for this streaming distribution.", - "StreamingDistributionSummary$PriceClass": null - } - }, - "Restrictions": { - "base": "A complex type that identifies ways in which you want to restrict distribution of your content.", - "refs": { - "DistributionConfig$Restrictions": null, - "DistributionSummary$Restrictions": null - } - }, - "S3Origin": { - "base": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.", - "refs": { - "StreamingDistributionConfig$S3Origin": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.", - "StreamingDistributionSummary$S3Origin": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution." - } - }, - "S3OriginConfig": { - "base": "A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.", - "refs": { - "Origin$S3OriginConfig": "A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead." - } - }, - "SSLSupportMethod": { - "base": null, - "refs": { - "ViewerCertificate$SSLSupportMethod": "If you specify a value for IAMCertificateId, you must also specify how you want CloudFront to serve HTTPS requests. Valid values are vip and sni-only. If you specify vip, CloudFront uses dedicated IP addresses for your content and can respond to HTTPS requests from any viewer. However, you must request permission to use this feature, and you incur additional monthly charges. If you specify sni-only, CloudFront can only respond to HTTPS requests from viewers that support Server Name Indication (SNI). All modern browsers support SNI, but some browsers still in use don't support SNI. Do not specify a value for SSLSupportMethod if you specified true for CloudFrontDefaultCertificate." - } - }, - "Signer": { - "base": "A complex type that lists the AWS accounts that were included in the TrustedSigners complex type, as well as their active CloudFront key pair IDs, if any.", - "refs": { - "SignerList$member": null - } - }, - "SignerList": { - "base": null, - "refs": { - "ActiveTrustedSigners$Items": "A complex type that contains one Signer complex type for each unique trusted signer that is specified in the TrustedSigners complex type, including trusted signers in the default cache behavior and in all of the other cache behaviors." - } - }, - "SslProtocol": { - "base": null, - "refs": { - "SslProtocolsList$member": null - } - }, - "SslProtocolsList": { - "base": null, - "refs": { - "OriginSslProtocols$Items": "A complex type that contains one SslProtocol element for each SSL/TLS protocol that you want to allow CloudFront to use when establishing an HTTPS connection with this origin." - } - }, - "StreamingDistribution": { - "base": "A streaming distribution.", - "refs": { - "CreateStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information.", - "GetStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information.", - "UpdateStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information." - } - }, - "StreamingDistributionAlreadyExists": { - "base": null, - "refs": { - } - }, - "StreamingDistributionConfig": { - "base": "The configuration for the streaming distribution.", - "refs": { - "CreateStreamingDistributionRequest$StreamingDistributionConfig": "The streaming distribution's configuration information.", - "GetStreamingDistributionConfigResult$StreamingDistributionConfig": "The streaming distribution's configuration information.", - "StreamingDistribution$StreamingDistributionConfig": "The current configuration information for the streaming distribution.", - "UpdateStreamingDistributionRequest$StreamingDistributionConfig": "The streaming distribution's configuration information." - } - }, - "StreamingDistributionList": { - "base": "A streaming distribution list.", - "refs": { - "ListStreamingDistributionsResult$StreamingDistributionList": "The StreamingDistributionList type." - } - }, - "StreamingDistributionNotDisabled": { - "base": null, - "refs": { - } - }, - "StreamingDistributionSummary": { - "base": "A summary of the information for an Amazon CloudFront streaming distribution.", - "refs": { - "StreamingDistributionSummaryList$member": null - } - }, - "StreamingDistributionSummaryList": { - "base": null, - "refs": { - "StreamingDistributionList$Items": "A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account." - } - }, - "StreamingLoggingConfig": { - "base": "A complex type that controls whether access logs are written for this streaming distribution.", - "refs": { - "StreamingDistributionConfig$Logging": "A complex type that controls whether access logs are written for the streaming distribution." - } - }, - "TooManyCacheBehaviors": { - "base": "You cannot create anymore cache behaviors for the distribution.", - "refs": { - } - }, - "TooManyCertificates": { - "base": "You cannot create anymore custom ssl certificates.", - "refs": { - } - }, - "TooManyCloudFrontOriginAccessIdentities": { - "base": "Processing your request would cause you to exceed the maximum number of origin access identities allowed.", - "refs": { - } - }, - "TooManyCookieNamesInWhiteList": { - "base": "Your request contains more cookie names in the whitelist than are allowed per cache behavior.", - "refs": { - } - }, - "TooManyDistributionCNAMEs": { - "base": "Your request contains more CNAMEs than are allowed per distribution.", - "refs": { - } - }, - "TooManyDistributions": { - "base": "Processing your request would cause you to exceed the maximum number of distributions allowed.", - "refs": { - } - }, - "TooManyHeadersInForwardedValues": { - "base": null, - "refs": { - } - }, - "TooManyInvalidationsInProgress": { - "base": "You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.", - "refs": { - } - }, - "TooManyOriginCustomHeaders": { - "base": null, - "refs": { - } - }, - "TooManyOrigins": { - "base": "You cannot create anymore origins for the distribution.", - "refs": { - } - }, - "TooManyStreamingDistributionCNAMEs": { - "base": null, - "refs": { - } - }, - "TooManyStreamingDistributions": { - "base": "Processing your request would cause you to exceed the maximum number of streaming distributions allowed.", - "refs": { - } - }, - "TooManyTrustedSigners": { - "base": "Your request contains more trusted signers than are allowed per distribution.", - "refs": { - } - }, - "TrustedSignerDoesNotExist": { - "base": "One or more of your trusted signers do not exist.", - "refs": { - } - }, - "TrustedSigners": { - "base": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "refs": { - "CacheBehavior$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "DefaultCacheBehavior$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "StreamingDistributionConfig$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "StreamingDistributionSummary$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution." - } - }, - "UpdateCloudFrontOriginAccessIdentityRequest": { - "base": "The request to update an origin access identity.", - "refs": { - } - }, - "UpdateCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "UpdateDistributionRequest": { - "base": "The request to update a distribution.", - "refs": { - } - }, - "UpdateDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "UpdateStreamingDistributionRequest": { - "base": "The request to update a streaming distribution.", - "refs": { - } - }, - "UpdateStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ViewerCertificate": { - "base": "A complex type that contains information about viewer certificates for this distribution.", - "refs": { - "DistributionConfig$ViewerCertificate": null, - "DistributionSummary$ViewerCertificate": null - } - }, - "ViewerProtocolPolicy": { - "base": null, - "refs": { - "CacheBehavior$ViewerProtocolPolicy": "Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL.", - "DefaultCacheBehavior$ViewerProtocolPolicy": "Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL." - } - }, - "boolean": { - "base": null, - "refs": { - "ActiveTrustedSigners$Enabled": "Each active trusted signer.", - "CacheBehavior$SmoothStreaming": "Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "CacheBehavior$Compress": "Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header. If so, specify true; if not, specify false. CloudFront compresses files larger than 1000 bytes and less than 1 megabyte for both Amazon S3 and custom origins. When a CloudFront edge location is unusually busy, some files might not be compressed. The value of the Content-Type header must be on the list of file types that CloudFront will compress. For the current list, see Serving Compressed Content in the Amazon CloudFront Developer Guide. If you configure CloudFront to compress content, CloudFront removes the ETag response header from the objects that it compresses. The ETag header indicates that the version in a CloudFront edge cache is identical to the version on the origin server, but after compression the two versions are no longer identical. As a result, for compressed objects, CloudFront can't use the ETag header to determine whether an expired object in the CloudFront edge cache is still the latest version.", - "CloudFrontOriginAccessIdentityList$IsTruncated": "A flag that indicates whether more origin access identities remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more items in the list.", - "DefaultCacheBehavior$SmoothStreaming": "Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "DefaultCacheBehavior$Compress": "Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header. If so, specify true; if not, specify false. CloudFront compresses files larger than 1000 bytes and less than 1 megabyte for both Amazon S3 and custom origins. When a CloudFront edge location is unusually busy, some files might not be compressed. The value of the Content-Type header must be on the list of file types that CloudFront will compress. For the current list, see Serving Compressed Content in the Amazon CloudFront Developer Guide. If you configure CloudFront to compress content, CloudFront removes the ETag response header from the objects that it compresses. The ETag header indicates that the version in a CloudFront edge cache is identical to the version on the origin server, but after compression the two versions are no longer identical. As a result, for compressed objects, CloudFront can't use the ETag header to determine whether an expired object in the CloudFront edge cache is still the latest version.", - "DistributionConfig$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "DistributionList$IsTruncated": "A flag that indicates whether more distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.", - "DistributionSummary$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "ForwardedValues$QueryString": "Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "InvalidationList$IsTruncated": "A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.", - "LoggingConfig$Enabled": "Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.", - "LoggingConfig$IncludeCookies": "Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.", - "StreamingDistributionConfig$Enabled": "Whether the streaming distribution is enabled to accept end user requests for content.", - "StreamingDistributionList$IsTruncated": "A flag that indicates whether more streaming distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.", - "StreamingDistributionSummary$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "StreamingLoggingConfig$Enabled": "Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.", - "TrustedSigners$Enabled": "Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.", - "ViewerCertificate$CloudFrontDefaultCertificate": "Note: this field is deprecated. Please use \"cloudfront\" as CertificateSource and omit specifying a Certificate. If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name of your distribution in your object URLs (for example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true. Omit this value if you are setting an IAMCertificateId." - } - }, - "integer": { - "base": null, - "refs": { - "ActiveTrustedSigners$Quantity": "The number of unique trusted signers included in all cache behaviors. For example, if three cache behaviors all list the same three AWS accounts, the value of Quantity for ActiveTrustedSigners will be 3.", - "Aliases$Quantity": "The number of CNAMEs, if any, for this distribution.", - "AllowedMethods$Quantity": "The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).", - "CacheBehaviors$Quantity": "The number of cache behaviors for this distribution.", - "CachedMethods$Quantity": "The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).", - "CloudFrontOriginAccessIdentityList$MaxItems": "The value you provided for the MaxItems request parameter.", - "CloudFrontOriginAccessIdentityList$Quantity": "The number of CloudFront origin access identities that were created by the current AWS account.", - "CookieNames$Quantity": "The number of whitelisted cookies for this cache behavior.", - "CustomErrorResponse$ErrorCode": "The 4xx or 5xx HTTP status code that you want to customize. For a list of HTTP status codes that you can customize, see CloudFront documentation.", - "CustomErrorResponses$Quantity": "The number of custom error responses for this distribution.", - "CustomHeaders$Quantity": "The number of custom headers for this origin.", - "CustomOriginConfig$HTTPPort": "The HTTP port the custom origin listens on.", - "CustomOriginConfig$HTTPSPort": "The HTTPS port the custom origin listens on.", - "Distribution$InProgressInvalidationBatches": "The number of invalidation batches currently in progress.", - "DistributionList$MaxItems": "The value you provided for the MaxItems request parameter.", - "DistributionList$Quantity": "The number of distributions that were created by the current AWS account.", - "GeoRestriction$Quantity": "When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.", - "Headers$Quantity": "The number of different headers that you want CloudFront to forward to the origin and to vary on for this cache behavior. The maximum number of headers that you can specify by name is 10. If you want CloudFront to forward all headers to the origin and vary on all of them, specify 1 for Quantity and * for Name. If you don't want CloudFront to forward any additional headers to the origin or to vary on any headers, specify 0 for Quantity and omit Items.", - "InvalidationList$MaxItems": "The value you provided for the MaxItems request parameter.", - "InvalidationList$Quantity": "The number of invalidation batches that were created by the current AWS account.", - "KeyPairIds$Quantity": "The number of active CloudFront key pairs for AwsAccountNumber.", - "OriginSslProtocols$Quantity": "The number of SSL/TLS protocols that you want to allow CloudFront to use when establishing an HTTPS connection with this origin.", - "Origins$Quantity": "The number of origins for this distribution.", - "Paths$Quantity": "The number of objects that you want to invalidate.", - "StreamingDistributionList$MaxItems": "The value you provided for the MaxItems request parameter.", - "StreamingDistributionList$Quantity": "The number of streaming distributions that were created by the current AWS account.", - "TrustedSigners$Quantity": "The number of trusted signers for this cache behavior." - } - }, - "long": { - "base": null, - "refs": { - "CacheBehavior$MinTTL": "The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CacheBehavior$DefaultTTL": "If you don't configure your origin to add a Cache-Control max-age directive or an Expires header, DefaultTTL is the default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CacheBehavior$MaxTTL": "The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CustomErrorResponse$ErrorCachingMinTTL": "The minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. You can specify a value from 0 to 31,536,000.", - "DefaultCacheBehavior$MinTTL": "The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "DefaultCacheBehavior$DefaultTTL": "If you don't configure your origin to add a Cache-Control max-age directive or an Expires header, DefaultTTL is the default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "DefaultCacheBehavior$MaxTTL": "The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years)." - } - }, - "string": { - "base": null, - "refs": { - "AccessDenied$Message": null, - "AliasList$member": null, - "AwsAccountNumberList$member": null, - "BatchTooLarge$Message": null, - "CNAMEAlreadyExists$Message": null, - "CacheBehavior$PathPattern": "The pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to. When CloudFront receives an end-user request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution. The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.", - "CacheBehavior$TargetOriginId": "The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.", - "CloudFrontOriginAccessIdentity$Id": "The ID for the origin access identity. For example: E74FTE3AJFJ256A.", - "CloudFrontOriginAccessIdentity$S3CanonicalUserId": "The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.", - "CloudFrontOriginAccessIdentityAlreadyExists$Message": null, - "CloudFrontOriginAccessIdentityConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.", - "CloudFrontOriginAccessIdentityConfig$Comment": "Any comments you want to include about the origin access identity.", - "CloudFrontOriginAccessIdentityInUse$Message": null, - "CloudFrontOriginAccessIdentityList$Marker": "The value you provided for the Marker request parameter.", - "CloudFrontOriginAccessIdentityList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your origin access identities where they left off.", - "CloudFrontOriginAccessIdentitySummary$Id": "The ID for the origin access identity. For example: E74FTE3AJFJ256A.", - "CloudFrontOriginAccessIdentitySummary$S3CanonicalUserId": "The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.", - "CloudFrontOriginAccessIdentitySummary$Comment": "The comment for this origin access identity, as originally specified when created.", - "CookieNameList$member": null, - "CreateCloudFrontOriginAccessIdentityResult$Location": "The fully qualified URI of the new origin access identity just created. For example: https://cloudfront.amazonaws.com/2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A.", - "CreateCloudFrontOriginAccessIdentityResult$ETag": "The current version of the origin access identity created.", - "CreateDistributionResult$Location": "The fully qualified URI of the new distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5.", - "CreateDistributionResult$ETag": "The current version of the distribution created.", - "CreateInvalidationRequest$DistributionId": "The distribution's id.", - "CreateInvalidationResult$Location": "The fully qualified URI of the distribution and invalidation batch request, including the Invalidation ID.", - "CreateStreamingDistributionResult$Location": "The fully qualified URI of the new streaming distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8.", - "CreateStreamingDistributionResult$ETag": "The current version of the streaming distribution created.", - "CustomErrorResponse$ResponsePagePath": "The path of the custom error page (for example, /custom_404.html). The path is relative to the distribution and must begin with a slash (/). If the path includes any non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not return the custom error page to the viewer.", - "CustomErrorResponse$ResponseCode": "The HTTP status code that you want CloudFront to return with the custom error page to the viewer. For a list of HTTP status codes that you can replace, see CloudFront Documentation.", - "DefaultCacheBehavior$TargetOriginId": "The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.", - "DeleteCloudFrontOriginAccessIdentityRequest$Id": "The origin access identity's id.", - "DeleteCloudFrontOriginAccessIdentityRequest$IfMatch": "The value of the ETag header you received from a previous GET or PUT request. For example: E2QWRUHAPOMQZL.", - "DeleteDistributionRequest$Id": "The distribution id.", - "DeleteDistributionRequest$IfMatch": "The value of the ETag header you received when you disabled the distribution. For example: E2QWRUHAPOMQZL.", - "DeleteStreamingDistributionRequest$Id": "The distribution id.", - "DeleteStreamingDistributionRequest$IfMatch": "The value of the ETag header you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL.", - "Distribution$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "Distribution$Status": "This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "Distribution$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "DistributionAlreadyExists$Message": null, - "DistributionConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the DistributionConfig object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create a distribution, and the content of the DistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of the DistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.", - "DistributionConfig$DefaultRootObject": "The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/index.html). Specifying a default root object avoids exposing the contents of your distribution. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object.", - "DistributionConfig$Comment": "Any comments you want to include about the distribution.", - "DistributionConfig$WebACLId": "(Optional) If you're using AWS WAF to filter CloudFront requests, the Id of the AWS WAF web ACL that is associated with the distribution.", - "DistributionList$Marker": "The value you provided for the Marker request parameter.", - "DistributionList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your distributions where they left off.", - "DistributionNotDisabled$Message": null, - "DistributionSummary$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "DistributionSummary$Status": "This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "DistributionSummary$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "DistributionSummary$Comment": "The comment originally specified when this distribution was created.", - "DistributionSummary$WebACLId": "The Web ACL Id (if any) associated with the distribution.", - "GetCloudFrontOriginAccessIdentityConfigRequest$Id": "The identity's id.", - "GetCloudFrontOriginAccessIdentityConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetCloudFrontOriginAccessIdentityRequest$Id": "The identity's id.", - "GetCloudFrontOriginAccessIdentityResult$ETag": "The current version of the origin access identity's information. For example: E2QWRUHAPOMQZL.", - "GetDistributionConfigRequest$Id": "The distribution's id.", - "GetDistributionConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetDistributionRequest$Id": "The distribution's id.", - "GetDistributionResult$ETag": "The current version of the distribution's information. For example: E2QWRUHAPOMQZL.", - "GetInvalidationRequest$DistributionId": "The distribution's id.", - "GetInvalidationRequest$Id": "The invalidation's id.", - "GetStreamingDistributionConfigRequest$Id": "The streaming distribution's id.", - "GetStreamingDistributionConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetStreamingDistributionRequest$Id": "The streaming distribution's id.", - "GetStreamingDistributionResult$ETag": "The current version of the streaming distribution's information. For example: E2QWRUHAPOMQZL.", - "HeaderList$member": null, - "IllegalUpdate$Message": null, - "InconsistentQuantities$Message": null, - "InvalidArgument$Message": null, - "InvalidDefaultRootObject$Message": null, - "InvalidErrorCode$Message": null, - "InvalidForwardCookies$Message": null, - "InvalidGeoRestrictionParameter$Message": null, - "InvalidHeadersForS3Origin$Message": null, - "InvalidIfMatchVersion$Message": null, - "InvalidLocationCode$Message": null, - "InvalidMinimumProtocolVersion$Message": null, - "InvalidOrigin$Message": null, - "InvalidOriginAccessIdentity$Message": null, - "InvalidProtocolSettings$Message": null, - "InvalidRelativePath$Message": null, - "InvalidRequiredProtocol$Message": null, - "InvalidResponseCode$Message": null, - "InvalidTTLOrder$Message": null, - "InvalidViewerCertificate$Message": null, - "InvalidWebACLId$Message": null, - "Invalidation$Id": "The identifier for the invalidation request. For example: IDFDVBD632BHDS5.", - "Invalidation$Status": "The status of the invalidation request. When the invalidation batch is finished, the status is Completed.", - "InvalidationBatch$CallerReference": "A unique name that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the Path object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create an invalidation batch, and the content of each Path element is identical to the original request, the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of any Path is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists error.", - "InvalidationList$Marker": "The value you provided for the Marker request parameter.", - "InvalidationList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.", - "InvalidationSummary$Id": "The unique ID for an invalidation request.", - "InvalidationSummary$Status": "The status of an invalidation request.", - "KeyPairIdList$member": null, - "ListCloudFrontOriginAccessIdentitiesRequest$Marker": "Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).", - "ListCloudFrontOriginAccessIdentitiesRequest$MaxItems": "The maximum number of origin access identities you want in the response body.", - "ListDistributionsByWebACLIdRequest$Marker": "Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)", - "ListDistributionsByWebACLIdRequest$MaxItems": "The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.", - "ListDistributionsByWebACLIdRequest$WebACLId": "The Id of the AWS WAF web ACL for which you want to list the associated distributions. If you specify \"null\" for the Id, the request returns a list of the distributions that aren't associated with a web ACL.", - "ListDistributionsRequest$Marker": "Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)", - "ListDistributionsRequest$MaxItems": "The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.", - "ListInvalidationsRequest$DistributionId": "The distribution's id.", - "ListInvalidationsRequest$Marker": "Use this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.", - "ListInvalidationsRequest$MaxItems": "The maximum number of invalidation batches you want in the response body.", - "ListStreamingDistributionsRequest$Marker": "Use this when paginating results to indicate where to begin in your list of streaming distributions. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).", - "ListStreamingDistributionsRequest$MaxItems": "The maximum number of streaming distributions you want in the response body.", - "LocationList$member": null, - "LoggingConfig$Bucket": "The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.", - "LoggingConfig$Prefix": "An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.", - "MissingBody$Message": null, - "NoSuchCloudFrontOriginAccessIdentity$Message": null, - "NoSuchDistribution$Message": null, - "NoSuchInvalidation$Message": null, - "NoSuchOrigin$Message": null, - "NoSuchStreamingDistribution$Message": null, - "Origin$Id": "A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.", - "Origin$DomainName": "Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.", - "Origin$OriginPath": "An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. When you include the OriginPath element, specify the directory name, beginning with a /. CloudFront appends the directory name to the value of DomainName.", - "OriginCustomHeader$HeaderName": "The header's name.", - "OriginCustomHeader$HeaderValue": "The header's value.", - "PathList$member": null, - "PreconditionFailed$Message": null, - "S3Origin$DomainName": "The DNS name of the S3 origin.", - "S3Origin$OriginAccessIdentity": "Your S3 origin's origin access identity.", - "S3OriginConfig$OriginAccessIdentity": "The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. Use the format origin-access-identity/cloudfront/Id where Id is the value that CloudFront returned in the Id element when you created the origin access identity.", - "Signer$AwsAccountNumber": "Specifies an AWS account that can create signed URLs. Values: self, which indicates that the AWS account that was used to create the distribution can created signed URLs, or an AWS account number. Omit the dashes in the account number.", - "StreamingDistribution$Id": "The identifier for the streaming distribution. For example: EGTXBD79H29TRA8.", - "StreamingDistribution$Status": "The current status of the streaming distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "StreamingDistribution$DomainName": "The domain name corresponding to the streaming distribution. For example: s5c39gqb8ow64r.cloudfront.net.", - "StreamingDistributionAlreadyExists$Message": null, - "StreamingDistributionConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.", - "StreamingDistributionConfig$Comment": "Any comments you want to include about the streaming distribution.", - "StreamingDistributionList$Marker": "The value you provided for the Marker request parameter.", - "StreamingDistributionList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your streaming distributions where they left off.", - "StreamingDistributionNotDisabled$Message": null, - "StreamingDistributionSummary$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "StreamingDistributionSummary$Status": "Indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "StreamingDistributionSummary$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "StreamingDistributionSummary$Comment": "The comment originally specified when this distribution was created.", - "StreamingLoggingConfig$Bucket": "The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.", - "StreamingLoggingConfig$Prefix": "An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.", - "TooManyCacheBehaviors$Message": null, - "TooManyCertificates$Message": null, - "TooManyCloudFrontOriginAccessIdentities$Message": null, - "TooManyCookieNamesInWhiteList$Message": null, - "TooManyDistributionCNAMEs$Message": null, - "TooManyDistributions$Message": null, - "TooManyHeadersInForwardedValues$Message": null, - "TooManyInvalidationsInProgress$Message": null, - "TooManyOriginCustomHeaders$Message": null, - "TooManyOrigins$Message": null, - "TooManyStreamingDistributionCNAMEs$Message": null, - "TooManyStreamingDistributions$Message": null, - "TooManyTrustedSigners$Message": null, - "TrustedSignerDoesNotExist$Message": null, - "UpdateCloudFrontOriginAccessIdentityRequest$Id": "The identity's id.", - "UpdateCloudFrontOriginAccessIdentityRequest$IfMatch": "The value of the ETag header you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateCloudFrontOriginAccessIdentityResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "UpdateDistributionRequest$Id": "The distribution's id.", - "UpdateDistributionRequest$IfMatch": "The value of the ETag header you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateDistributionResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "UpdateStreamingDistributionRequest$Id": "The streaming distribution's id.", - "UpdateStreamingDistributionRequest$IfMatch": "The value of the ETag header you received when retrieving the streaming distribution's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateStreamingDistributionResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "ViewerCertificate$Certificate": "If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), you can use your own IAM or ACM certificate. For ACM, set to the ACM certificate ARN. For IAM, set to the IAM certificate identifier.", - "ViewerCertificate$IAMCertificateId": "Note: this field is deprecated. Please use \"iam\" as CertificateSource and specify the IAM certificate Id as the Certificate. If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), specify the IAM certificate identifier of the custom viewer certificate for this distribution. Specify either this value or CloudFrontDefaultCertificate." - } - }, - "timestamp": { - "base": null, - "refs": { - "Distribution$LastModifiedTime": "The date and time the distribution was last modified.", - "DistributionSummary$LastModifiedTime": "The date and time the distribution was last modified.", - "Invalidation$CreateTime": "The date and time the invalidation request was first made.", - "InvalidationSummary$CreateTime": null, - "StreamingDistribution$LastModifiedTime": "The date and time the distribution was last modified.", - "StreamingDistributionSummary$LastModifiedTime": "The date and time the distribution was last modified." - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/paginators-1.json deleted file mode 100644 index 51fbb907f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/paginators-1.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "pagination": { - "ListCloudFrontOriginAccessIdentities": { - "input_token": "Marker", - "output_token": "CloudFrontOriginAccessIdentityList.NextMarker", - "limit_key": "MaxItems", - "more_results": "CloudFrontOriginAccessIdentityList.IsTruncated", - "result_key": "CloudFrontOriginAccessIdentityList.Items" - }, - "ListDistributions": { - "input_token": "Marker", - "output_token": "DistributionList.NextMarker", - "limit_key": "MaxItems", - "more_results": "DistributionList.IsTruncated", - "result_key": "DistributionList.Items" - }, - "ListInvalidations": { - "input_token": "Marker", - "output_token": "InvalidationList.NextMarker", - "limit_key": "MaxItems", - "more_results": "InvalidationList.IsTruncated", - "result_key": "InvalidationList.Items" - }, - "ListStreamingDistributions": { - "input_token": "Marker", - "output_token": "StreamingDistributionList.NextMarker", - "limit_key": "MaxItems", - "more_results": "StreamingDistributionList.IsTruncated", - "result_key": "StreamingDistributionList.Items" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/waiters-2.json deleted file mode 100644 index f6d3ba7bc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-13/waiters-2.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "version": 2, - "waiters": { - "DistributionDeployed": { - "delay": 60, - "operation": "GetDistribution", - "maxAttempts": 25, - "description": "Wait until a distribution is deployed.", - "acceptors": [ - { - "expected": "Deployed", - "matcher": "path", - "state": "success", - "argument": "Status" - } - ] - }, - "InvalidationCompleted": { - "delay": 20, - "operation": "GetInvalidation", - "maxAttempts": 30, - "description": "Wait until an invalidation has completed.", - "acceptors": [ - { - "expected": "Completed", - "matcher": "path", - "state": "success", - "argument": "Status" - } - ] - }, - "StreamingDistributionDeployed": { - "delay": 60, - "operation": "GetStreamingDistribution", - "maxAttempts": 25, - "description": "Wait until a streaming distribution is deployed.", - "acceptors": [ - { - "expected": "Deployed", - "matcher": "path", - "state": "success", - "argument": "Status" - } - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/api-2.json deleted file mode 100644 index 19f4fd4f3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/api-2.json +++ /dev/null @@ -1,2218 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2016-01-28", - "endpointPrefix":"cloudfront", - "globalEndpoint":"cloudfront.amazonaws.com", - "protocol":"rest-xml", - "serviceAbbreviation":"CloudFront", - "serviceFullName":"Amazon CloudFront", - "signatureVersion":"v4" - }, - "operations":{ - "CreateCloudFrontOriginAccessIdentity":{ - "name":"CreateCloudFrontOriginAccessIdentity2016_01_28", - "http":{ - "method":"POST", - "requestUri":"/2016-01-28/origin-access-identity/cloudfront", - "responseCode":201 - }, - "input":{"shape":"CreateCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"CreateCloudFrontOriginAccessIdentityResult"}, - "errors":[ - {"shape":"CloudFrontOriginAccessIdentityAlreadyExists"}, - {"shape":"MissingBody"}, - {"shape":"TooManyCloudFrontOriginAccessIdentities"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} - ] - }, - "CreateDistribution":{ - "name":"CreateDistribution2016_01_28", - "http":{ - "method":"POST", - "requestUri":"/2016-01-28/distribution", - "responseCode":201 - }, - "input":{"shape":"CreateDistributionRequest"}, - "output":{"shape":"CreateDistributionResult"}, - "errors":[ - {"shape":"CNAMEAlreadyExists"}, - {"shape":"DistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"AccessDenied"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, - {"shape":"InvalidMinimumProtocolVersion"}, - {"shape":"MissingBody"}, - {"shape":"TooManyDistributionCNAMEs"}, - {"shape":"TooManyDistributions"}, - {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, - {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, - {"shape":"InvalidProtocolSettings"}, - {"shape":"InvalidTTLOrder"}, - {"shape":"InvalidWebACLId"}, - {"shape":"TooManyOriginCustomHeaders"} - ] - }, - "CreateInvalidation":{ - "name":"CreateInvalidation2016_01_28", - "http":{ - "method":"POST", - "requestUri":"/2016-01-28/distribution/{DistributionId}/invalidation", - "responseCode":201 - }, - "input":{"shape":"CreateInvalidationRequest"}, - "output":{"shape":"CreateInvalidationResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"MissingBody"}, - {"shape":"InvalidArgument"}, - {"shape":"NoSuchDistribution"}, - {"shape":"BatchTooLarge"}, - {"shape":"TooManyInvalidationsInProgress"}, - {"shape":"InconsistentQuantities"} - ] - }, - "CreateStreamingDistribution":{ - "name":"CreateStreamingDistribution2016_01_28", - "http":{ - "method":"POST", - "requestUri":"/2016-01-28/streaming-distribution", - "responseCode":201 - }, - "input":{"shape":"CreateStreamingDistributionRequest"}, - "output":{"shape":"CreateStreamingDistributionResult"}, - "errors":[ - {"shape":"CNAMEAlreadyExists"}, - {"shape":"StreamingDistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"AccessDenied"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"MissingBody"}, - {"shape":"TooManyStreamingDistributionCNAMEs"}, - {"shape":"TooManyStreamingDistributions"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} - ] - }, - "DeleteCloudFrontOriginAccessIdentity":{ - "name":"DeleteCloudFrontOriginAccessIdentity2016_01_28", - "http":{ - "method":"DELETE", - "requestUri":"/2016-01-28/origin-access-identity/cloudfront/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteCloudFrontOriginAccessIdentityRequest"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"PreconditionFailed"}, - {"shape":"CloudFrontOriginAccessIdentityInUse"} - ] - }, - "DeleteDistribution":{ - "name":"DeleteDistribution2016_01_28", - "http":{ - "method":"DELETE", - "requestUri":"/2016-01-28/distribution/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteDistributionRequest"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"DistributionNotDisabled"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchDistribution"}, - {"shape":"PreconditionFailed"} - ] - }, - "DeleteStreamingDistribution":{ - "name":"DeleteStreamingDistribution2016_01_28", - "http":{ - "method":"DELETE", - "requestUri":"/2016-01-28/streaming-distribution/{Id}", - "responseCode":204 - }, - "input":{"shape":"DeleteStreamingDistributionRequest"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"StreamingDistributionNotDisabled"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"PreconditionFailed"} - ] - }, - "GetCloudFrontOriginAccessIdentity":{ - "name":"GetCloudFrontOriginAccessIdentity2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/origin-access-identity/cloudfront/{Id}" - }, - "input":{"shape":"GetCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"GetCloudFrontOriginAccessIdentityResult"}, - "errors":[ - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"AccessDenied"} - ] - }, - "GetCloudFrontOriginAccessIdentityConfig":{ - "name":"GetCloudFrontOriginAccessIdentityConfig2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/origin-access-identity/cloudfront/{Id}/config" - }, - "input":{"shape":"GetCloudFrontOriginAccessIdentityConfigRequest"}, - "output":{"shape":"GetCloudFrontOriginAccessIdentityConfigResult"}, - "errors":[ - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"AccessDenied"} - ] - }, - "GetDistribution":{ - "name":"GetDistribution2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/distribution/{Id}" - }, - "input":{"shape":"GetDistributionRequest"}, - "output":{"shape":"GetDistributionResult"}, - "errors":[ - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetDistributionConfig":{ - "name":"GetDistributionConfig2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/distribution/{Id}/config" - }, - "input":{"shape":"GetDistributionConfigRequest"}, - "output":{"shape":"GetDistributionConfigResult"}, - "errors":[ - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetInvalidation":{ - "name":"GetInvalidation2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/distribution/{DistributionId}/invalidation/{Id}" - }, - "input":{"shape":"GetInvalidationRequest"}, - "output":{"shape":"GetInvalidationResult"}, - "errors":[ - {"shape":"NoSuchInvalidation"}, - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetStreamingDistribution":{ - "name":"GetStreamingDistribution2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/streaming-distribution/{Id}" - }, - "input":{"shape":"GetStreamingDistributionRequest"}, - "output":{"shape":"GetStreamingDistributionResult"}, - "errors":[ - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "GetStreamingDistributionConfig":{ - "name":"GetStreamingDistributionConfig2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/streaming-distribution/{Id}/config" - }, - "input":{"shape":"GetStreamingDistributionConfigRequest"}, - "output":{"shape":"GetStreamingDistributionConfigResult"}, - "errors":[ - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "ListCloudFrontOriginAccessIdentities":{ - "name":"ListCloudFrontOriginAccessIdentities2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/origin-access-identity/cloudfront" - }, - "input":{"shape":"ListCloudFrontOriginAccessIdentitiesRequest"}, - "output":{"shape":"ListCloudFrontOriginAccessIdentitiesResult"}, - "errors":[ - {"shape":"InvalidArgument"} - ] - }, - "ListDistributions":{ - "name":"ListDistributions2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/distribution" - }, - "input":{"shape":"ListDistributionsRequest"}, - "output":{"shape":"ListDistributionsResult"}, - "errors":[ - {"shape":"InvalidArgument"} - ] - }, - "ListDistributionsByWebACLId":{ - "name":"ListDistributionsByWebACLId2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/distributionsByWebACLId/{WebACLId}" - }, - "input":{"shape":"ListDistributionsByWebACLIdRequest"}, - "output":{"shape":"ListDistributionsByWebACLIdResult"}, - "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"InvalidWebACLId"} - ] - }, - "ListInvalidations":{ - "name":"ListInvalidations2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/distribution/{DistributionId}/invalidation" - }, - "input":{"shape":"ListInvalidationsRequest"}, - "output":{"shape":"ListInvalidationsResult"}, - "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} - ] - }, - "ListStreamingDistributions":{ - "name":"ListStreamingDistributions2016_01_28", - "http":{ - "method":"GET", - "requestUri":"/2016-01-28/streaming-distribution" - }, - "input":{"shape":"ListStreamingDistributionsRequest"}, - "output":{"shape":"ListStreamingDistributionsResult"}, - "errors":[ - {"shape":"InvalidArgument"} - ] - }, - "UpdateCloudFrontOriginAccessIdentity":{ - "name":"UpdateCloudFrontOriginAccessIdentity2016_01_28", - "http":{ - "method":"PUT", - "requestUri":"/2016-01-28/origin-access-identity/cloudfront/{Id}/config" - }, - "input":{"shape":"UpdateCloudFrontOriginAccessIdentityRequest"}, - "output":{"shape":"UpdateCloudFrontOriginAccessIdentityResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"PreconditionFailed"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} - ] - }, - "UpdateDistribution":{ - "name":"UpdateDistribution2016_01_28", - "http":{ - "method":"PUT", - "requestUri":"/2016-01-28/distribution/{Id}/config" - }, - "input":{"shape":"UpdateDistributionRequest"}, - "output":{"shape":"UpdateDistributionResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"CNAMEAlreadyExists"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchDistribution"}, - {"shape":"PreconditionFailed"}, - {"shape":"TooManyDistributionCNAMEs"}, - {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, - {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, - {"shape":"InvalidMinimumProtocolVersion"}, - {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, - {"shape":"InvalidTTLOrder"}, - {"shape":"InvalidWebACLId"}, - {"shape":"TooManyOriginCustomHeaders"} - ] - }, - "UpdateStreamingDistribution":{ - "name":"UpdateStreamingDistribution2016_01_28", - "http":{ - "method":"PUT", - "requestUri":"/2016-01-28/streaming-distribution/{Id}/config" - }, - "input":{"shape":"UpdateStreamingDistributionRequest"}, - "output":{"shape":"UpdateStreamingDistributionResult"}, - "errors":[ - {"shape":"AccessDenied"}, - {"shape":"CNAMEAlreadyExists"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"PreconditionFailed"}, - {"shape":"TooManyStreamingDistributionCNAMEs"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InconsistentQuantities"} - ] - } - }, - "shapes":{ - "AccessDenied":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":403}, - "exception":true - }, - "ActiveTrustedSigners":{ - "type":"structure", - "required":[ - "Enabled", - "Quantity" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"SignerList"} - } - }, - "AliasList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"CNAME" - } - }, - "Aliases":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"AliasList"} - } - }, - "AllowedMethods":{ - "type":"structure", - "required":[ - "Quantity", - "Items" - ], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"MethodsList"}, - "CachedMethods":{"shape":"CachedMethods"} - } - }, - "AwsAccountNumberList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"AwsAccountNumber" - } - }, - "BatchTooLarge":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":413}, - "exception":true - }, - "CNAMEAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CacheBehavior":{ - "type":"structure", - "required":[ - "PathPattern", - "TargetOriginId", - "ForwardedValues", - "TrustedSigners", - "ViewerProtocolPolicy", - "MinTTL" - ], - "members":{ - "PathPattern":{"shape":"string"}, - "TargetOriginId":{"shape":"string"}, - "ForwardedValues":{"shape":"ForwardedValues"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "ViewerProtocolPolicy":{"shape":"ViewerProtocolPolicy"}, - "MinTTL":{"shape":"long"}, - "AllowedMethods":{"shape":"AllowedMethods"}, - "SmoothStreaming":{"shape":"boolean"}, - "DefaultTTL":{"shape":"long"}, - "MaxTTL":{"shape":"long"}, - "Compress":{"shape":"boolean"} - } - }, - "CacheBehaviorList":{ - "type":"list", - "member":{ - "shape":"CacheBehavior", - "locationName":"CacheBehavior" - } - }, - "CacheBehaviors":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CacheBehaviorList"} - } - }, - "CachedMethods":{ - "type":"structure", - "required":[ - "Quantity", - "Items" - ], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"MethodsList"} - } - }, - "CertificateSource":{ - "type":"string", - "enum":[ - "cloudfront", - "iam", - "acm" - ] - }, - "CloudFrontOriginAccessIdentity":{ - "type":"structure", - "required":[ - "Id", - "S3CanonicalUserId" - ], - "members":{ - "Id":{"shape":"string"}, - "S3CanonicalUserId":{"shape":"string"}, - "CloudFrontOriginAccessIdentityConfig":{"shape":"CloudFrontOriginAccessIdentityConfig"} - } - }, - "CloudFrontOriginAccessIdentityAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CloudFrontOriginAccessIdentityConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "Comment" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "Comment":{"shape":"string"} - } - }, - "CloudFrontOriginAccessIdentityInUse":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CloudFrontOriginAccessIdentityList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CloudFrontOriginAccessIdentitySummaryList"} - } - }, - "CloudFrontOriginAccessIdentitySummary":{ - "type":"structure", - "required":[ - "Id", - "S3CanonicalUserId", - "Comment" - ], - "members":{ - "Id":{"shape":"string"}, - "S3CanonicalUserId":{"shape":"string"}, - "Comment":{"shape":"string"} - } - }, - "CloudFrontOriginAccessIdentitySummaryList":{ - "type":"list", - "member":{ - "shape":"CloudFrontOriginAccessIdentitySummary", - "locationName":"CloudFrontOriginAccessIdentitySummary" - } - }, - "CookieNameList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Name" - } - }, - "CookieNames":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CookieNameList"} - } - }, - "CookiePreference":{ - "type":"structure", - "required":["Forward"], - "members":{ - "Forward":{"shape":"ItemSelection"}, - "WhitelistedNames":{"shape":"CookieNames"} - } - }, - "CreateCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":["CloudFrontOriginAccessIdentityConfig"], - "members":{ - "CloudFrontOriginAccessIdentityConfig":{ - "shape":"CloudFrontOriginAccessIdentityConfig", - "locationName":"CloudFrontOriginAccessIdentityConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-28/"} - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "CreateCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "CreateDistributionRequest":{ - "type":"structure", - "required":["DistributionConfig"], - "members":{ - "DistributionConfig":{ - "shape":"DistributionConfig", - "locationName":"DistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-28/"} - } - }, - "payload":"DistributionConfig" - }, - "CreateDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "CreateInvalidationRequest":{ - "type":"structure", - "required":[ - "DistributionId", - "InvalidationBatch" - ], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "InvalidationBatch":{ - "shape":"InvalidationBatch", - "locationName":"InvalidationBatch", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-28/"} - } - }, - "payload":"InvalidationBatch" - }, - "CreateInvalidationResult":{ - "type":"structure", - "members":{ - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "Invalidation":{"shape":"Invalidation"} - }, - "payload":"Invalidation" - }, - "CreateStreamingDistributionRequest":{ - "type":"structure", - "required":["StreamingDistributionConfig"], - "members":{ - "StreamingDistributionConfig":{ - "shape":"StreamingDistributionConfig", - "locationName":"StreamingDistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-28/"} - } - }, - "payload":"StreamingDistributionConfig" - }, - "CreateStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "Location":{ - "shape":"string", - "location":"header", - "locationName":"Location" - }, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "CustomErrorResponse":{ - "type":"structure", - "required":["ErrorCode"], - "members":{ - "ErrorCode":{"shape":"integer"}, - "ResponsePagePath":{"shape":"string"}, - "ResponseCode":{"shape":"string"}, - "ErrorCachingMinTTL":{"shape":"long"} - } - }, - "CustomErrorResponseList":{ - "type":"list", - "member":{ - "shape":"CustomErrorResponse", - "locationName":"CustomErrorResponse" - } - }, - "CustomErrorResponses":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"CustomErrorResponseList"} - } - }, - "CustomHeaders":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"OriginCustomHeadersList"} - } - }, - "CustomOriginConfig":{ - "type":"structure", - "required":[ - "HTTPPort", - "HTTPSPort", - "OriginProtocolPolicy" - ], - "members":{ - "HTTPPort":{"shape":"integer"}, - "HTTPSPort":{"shape":"integer"}, - "OriginProtocolPolicy":{"shape":"OriginProtocolPolicy"}, - "OriginSslProtocols":{"shape":"OriginSslProtocols"} - } - }, - "DefaultCacheBehavior":{ - "type":"structure", - "required":[ - "TargetOriginId", - "ForwardedValues", - "TrustedSigners", - "ViewerProtocolPolicy", - "MinTTL" - ], - "members":{ - "TargetOriginId":{"shape":"string"}, - "ForwardedValues":{"shape":"ForwardedValues"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "ViewerProtocolPolicy":{"shape":"ViewerProtocolPolicy"}, - "MinTTL":{"shape":"long"}, - "AllowedMethods":{"shape":"AllowedMethods"}, - "SmoothStreaming":{"shape":"boolean"}, - "DefaultTTL":{"shape":"long"}, - "MaxTTL":{"shape":"long"}, - "Compress":{"shape":"boolean"} - } - }, - "DeleteCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - } - }, - "DeleteDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - } - }, - "DeleteStreamingDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - } - }, - "Distribution":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "InProgressInvalidationBatches", - "DomainName", - "ActiveTrustedSigners", - "DistributionConfig" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "InProgressInvalidationBatches":{"shape":"integer"}, - "DomainName":{"shape":"string"}, - "ActiveTrustedSigners":{"shape":"ActiveTrustedSigners"}, - "DistributionConfig":{"shape":"DistributionConfig"} - } - }, - "DistributionAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DistributionConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "Origins", - "DefaultCacheBehavior", - "Comment", - "Enabled" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "Aliases":{"shape":"Aliases"}, - "DefaultRootObject":{"shape":"string"}, - "Origins":{"shape":"Origins"}, - "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, - "CacheBehaviors":{"shape":"CacheBehaviors"}, - "CustomErrorResponses":{"shape":"CustomErrorResponses"}, - "Comment":{"shape":"string"}, - "Logging":{"shape":"LoggingConfig"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"}, - "ViewerCertificate":{"shape":"ViewerCertificate"}, - "Restrictions":{"shape":"Restrictions"}, - "WebACLId":{"shape":"string"} - } - }, - "DistributionList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"DistributionSummaryList"} - } - }, - "DistributionNotDisabled":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DistributionSummary":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "DomainName", - "Aliases", - "Origins", - "DefaultCacheBehavior", - "CacheBehaviors", - "CustomErrorResponses", - "Comment", - "PriceClass", - "Enabled", - "ViewerCertificate", - "Restrictions", - "WebACLId" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "Aliases":{"shape":"Aliases"}, - "Origins":{"shape":"Origins"}, - "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, - "CacheBehaviors":{"shape":"CacheBehaviors"}, - "CustomErrorResponses":{"shape":"CustomErrorResponses"}, - "Comment":{"shape":"string"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"}, - "ViewerCertificate":{"shape":"ViewerCertificate"}, - "Restrictions":{"shape":"Restrictions"}, - "WebACLId":{"shape":"string"} - } - }, - "DistributionSummaryList":{ - "type":"list", - "member":{ - "shape":"DistributionSummary", - "locationName":"DistributionSummary" - } - }, - "ForwardedValues":{ - "type":"structure", - "required":[ - "QueryString", - "Cookies" - ], - "members":{ - "QueryString":{"shape":"boolean"}, - "Cookies":{"shape":"CookiePreference"}, - "Headers":{"shape":"Headers"} - } - }, - "GeoRestriction":{ - "type":"structure", - "required":[ - "RestrictionType", - "Quantity" - ], - "members":{ - "RestrictionType":{"shape":"GeoRestrictionType"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"LocationList"} - } - }, - "GeoRestrictionType":{ - "type":"string", - "enum":[ - "blacklist", - "whitelist", - "none" - ] - }, - "GetCloudFrontOriginAccessIdentityConfigRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetCloudFrontOriginAccessIdentityConfigResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentityConfig":{"shape":"CloudFrontOriginAccessIdentityConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "GetCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "GetDistributionConfigRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetDistributionConfigResult":{ - "type":"structure", - "members":{ - "DistributionConfig":{"shape":"DistributionConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"DistributionConfig" - }, - "GetDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "GetInvalidationRequest":{ - "type":"structure", - "required":[ - "DistributionId", - "Id" - ], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetInvalidationResult":{ - "type":"structure", - "members":{ - "Invalidation":{"shape":"Invalidation"} - }, - "payload":"Invalidation" - }, - "GetStreamingDistributionConfigRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetStreamingDistributionConfigResult":{ - "type":"structure", - "members":{ - "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistributionConfig" - }, - "GetStreamingDistributionRequest":{ - "type":"structure", - "required":["Id"], - "members":{ - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - } - } - }, - "GetStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "HeaderList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Name" - } - }, - "Headers":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"HeaderList"} - } - }, - "IllegalUpdate":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InconsistentQuantities":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidArgument":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidDefaultRootObject":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidErrorCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidForwardCookies":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidGeoRestrictionParameter":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidHeadersForS3Origin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidIfMatchVersion":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidLocationCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidMinimumProtocolVersion":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidOrigin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidOriginAccessIdentity":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidProtocolSettings":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidRelativePath":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidRequiredProtocol":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidResponseCode":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidTTLOrder":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidViewerCertificate":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "InvalidWebACLId":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "Invalidation":{ - "type":"structure", - "required":[ - "Id", - "Status", - "CreateTime", - "InvalidationBatch" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "CreateTime":{"shape":"timestamp"}, - "InvalidationBatch":{"shape":"InvalidationBatch"} - } - }, - "InvalidationBatch":{ - "type":"structure", - "required":[ - "Paths", - "CallerReference" - ], - "members":{ - "Paths":{"shape":"Paths"}, - "CallerReference":{"shape":"string"} - } - }, - "InvalidationList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"InvalidationSummaryList"} - } - }, - "InvalidationSummary":{ - "type":"structure", - "required":[ - "Id", - "CreateTime", - "Status" - ], - "members":{ - "Id":{"shape":"string"}, - "CreateTime":{"shape":"timestamp"}, - "Status":{"shape":"string"} - } - }, - "InvalidationSummaryList":{ - "type":"list", - "member":{ - "shape":"InvalidationSummary", - "locationName":"InvalidationSummary" - } - }, - "ItemSelection":{ - "type":"string", - "enum":[ - "none", - "whitelist", - "all" - ] - }, - "KeyPairIdList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"KeyPairId" - } - }, - "KeyPairIds":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"KeyPairIdList"} - } - }, - "ListCloudFrontOriginAccessIdentitiesRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListCloudFrontOriginAccessIdentitiesResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentityList":{"shape":"CloudFrontOriginAccessIdentityList"} - }, - "payload":"CloudFrontOriginAccessIdentityList" - }, - "ListDistributionsByWebACLIdRequest":{ - "type":"structure", - "required":["WebACLId"], - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - }, - "WebACLId":{ - "shape":"string", - "location":"uri", - "locationName":"WebACLId" - } - } - }, - "ListDistributionsByWebACLIdResult":{ - "type":"structure", - "members":{ - "DistributionList":{"shape":"DistributionList"} - }, - "payload":"DistributionList" - }, - "ListDistributionsRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListDistributionsResult":{ - "type":"structure", - "members":{ - "DistributionList":{"shape":"DistributionList"} - }, - "payload":"DistributionList" - }, - "ListInvalidationsRequest":{ - "type":"structure", - "required":["DistributionId"], - "members":{ - "DistributionId":{ - "shape":"string", - "location":"uri", - "locationName":"DistributionId" - }, - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListInvalidationsResult":{ - "type":"structure", - "members":{ - "InvalidationList":{"shape":"InvalidationList"} - }, - "payload":"InvalidationList" - }, - "ListStreamingDistributionsRequest":{ - "type":"structure", - "members":{ - "Marker":{ - "shape":"string", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"string", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListStreamingDistributionsResult":{ - "type":"structure", - "members":{ - "StreamingDistributionList":{"shape":"StreamingDistributionList"} - }, - "payload":"StreamingDistributionList" - }, - "LocationList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Location" - } - }, - "LoggingConfig":{ - "type":"structure", - "required":[ - "Enabled", - "IncludeCookies", - "Bucket", - "Prefix" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "IncludeCookies":{"shape":"boolean"}, - "Bucket":{"shape":"string"}, - "Prefix":{"shape":"string"} - } - }, - "Method":{ - "type":"string", - "enum":[ - "GET", - "HEAD", - "POST", - "PUT", - "PATCH", - "OPTIONS", - "DELETE" - ] - }, - "MethodsList":{ - "type":"list", - "member":{ - "shape":"Method", - "locationName":"Method" - } - }, - "MinimumProtocolVersion":{ - "type":"string", - "enum":[ - "SSLv3", - "TLSv1" - ] - }, - "MissingBody":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "NoSuchCloudFrontOriginAccessIdentity":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchDistribution":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchInvalidation":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchOrigin":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "NoSuchStreamingDistribution":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "Origin":{ - "type":"structure", - "required":[ - "Id", - "DomainName" - ], - "members":{ - "Id":{"shape":"string"}, - "DomainName":{"shape":"string"}, - "OriginPath":{"shape":"string"}, - "CustomHeaders":{"shape":"CustomHeaders"}, - "S3OriginConfig":{"shape":"S3OriginConfig"}, - "CustomOriginConfig":{"shape":"CustomOriginConfig"} - } - }, - "OriginCustomHeader":{ - "type":"structure", - "required":[ - "HeaderName", - "HeaderValue" - ], - "members":{ - "HeaderName":{"shape":"string"}, - "HeaderValue":{"shape":"string"} - } - }, - "OriginCustomHeadersList":{ - "type":"list", - "member":{ - "shape":"OriginCustomHeader", - "locationName":"OriginCustomHeader" - } - }, - "OriginList":{ - "type":"list", - "member":{ - "shape":"Origin", - "locationName":"Origin" - }, - "min":1 - }, - "OriginProtocolPolicy":{ - "type":"string", - "enum":[ - "http-only", - "match-viewer", - "https-only" - ] - }, - "OriginSslProtocols":{ - "type":"structure", - "required":[ - "Quantity", - "Items" - ], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"SslProtocolsList"} - } - }, - "Origins":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"OriginList"} - } - }, - "PathList":{ - "type":"list", - "member":{ - "shape":"string", - "locationName":"Path" - } - }, - "Paths":{ - "type":"structure", - "required":["Quantity"], - "members":{ - "Quantity":{"shape":"integer"}, - "Items":{"shape":"PathList"} - } - }, - "PreconditionFailed":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":412}, - "exception":true - }, - "PriceClass":{ - "type":"string", - "enum":[ - "PriceClass_100", - "PriceClass_200", - "PriceClass_All" - ] - }, - "Restrictions":{ - "type":"structure", - "required":["GeoRestriction"], - "members":{ - "GeoRestriction":{"shape":"GeoRestriction"} - } - }, - "S3Origin":{ - "type":"structure", - "required":[ - "DomainName", - "OriginAccessIdentity" - ], - "members":{ - "DomainName":{"shape":"string"}, - "OriginAccessIdentity":{"shape":"string"} - } - }, - "S3OriginConfig":{ - "type":"structure", - "required":["OriginAccessIdentity"], - "members":{ - "OriginAccessIdentity":{"shape":"string"} - } - }, - "SSLSupportMethod":{ - "type":"string", - "enum":[ - "sni-only", - "vip" - ] - }, - "Signer":{ - "type":"structure", - "members":{ - "AwsAccountNumber":{"shape":"string"}, - "KeyPairIds":{"shape":"KeyPairIds"} - } - }, - "SignerList":{ - "type":"list", - "member":{ - "shape":"Signer", - "locationName":"Signer" - } - }, - "SslProtocol":{ - "type":"string", - "enum":[ - "SSLv3", - "TLSv1", - "TLSv1.1", - "TLSv1.2" - ] - }, - "SslProtocolsList":{ - "type":"list", - "member":{ - "shape":"SslProtocol", - "locationName":"SslProtocol" - } - }, - "StreamingDistribution":{ - "type":"structure", - "required":[ - "Id", - "Status", - "DomainName", - "ActiveTrustedSigners", - "StreamingDistributionConfig" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "ActiveTrustedSigners":{"shape":"ActiveTrustedSigners"}, - "StreamingDistributionConfig":{"shape":"StreamingDistributionConfig"} - } - }, - "StreamingDistributionAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "StreamingDistributionConfig":{ - "type":"structure", - "required":[ - "CallerReference", - "S3Origin", - "Comment", - "TrustedSigners", - "Enabled" - ], - "members":{ - "CallerReference":{"shape":"string"}, - "S3Origin":{"shape":"S3Origin"}, - "Aliases":{"shape":"Aliases"}, - "Comment":{"shape":"string"}, - "Logging":{"shape":"StreamingLoggingConfig"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"} - } - }, - "StreamingDistributionList":{ - "type":"structure", - "required":[ - "Marker", - "MaxItems", - "IsTruncated", - "Quantity" - ], - "members":{ - "Marker":{"shape":"string"}, - "NextMarker":{"shape":"string"}, - "MaxItems":{"shape":"integer"}, - "IsTruncated":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"StreamingDistributionSummaryList"} - } - }, - "StreamingDistributionNotDisabled":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "StreamingDistributionSummary":{ - "type":"structure", - "required":[ - "Id", - "Status", - "LastModifiedTime", - "DomainName", - "S3Origin", - "Aliases", - "TrustedSigners", - "Comment", - "PriceClass", - "Enabled" - ], - "members":{ - "Id":{"shape":"string"}, - "Status":{"shape":"string"}, - "LastModifiedTime":{"shape":"timestamp"}, - "DomainName":{"shape":"string"}, - "S3Origin":{"shape":"S3Origin"}, - "Aliases":{"shape":"Aliases"}, - "TrustedSigners":{"shape":"TrustedSigners"}, - "Comment":{"shape":"string"}, - "PriceClass":{"shape":"PriceClass"}, - "Enabled":{"shape":"boolean"} - } - }, - "StreamingDistributionSummaryList":{ - "type":"list", - "member":{ - "shape":"StreamingDistributionSummary", - "locationName":"StreamingDistributionSummary" - } - }, - "StreamingLoggingConfig":{ - "type":"structure", - "required":[ - "Enabled", - "Bucket", - "Prefix" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Bucket":{"shape":"string"}, - "Prefix":{"shape":"string"} - } - }, - "TooManyCacheBehaviors":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCertificates":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCloudFrontOriginAccessIdentities":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyCookieNamesInWhiteList":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyDistributionCNAMEs":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyDistributions":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyHeadersInForwardedValues":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyInvalidationsInProgress":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyOriginCustomHeaders":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyOrigins":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyStreamingDistributionCNAMEs":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyStreamingDistributions":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TooManyTrustedSigners":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TrustedSignerDoesNotExist":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "TrustedSigners":{ - "type":"structure", - "required":[ - "Enabled", - "Quantity" - ], - "members":{ - "Enabled":{"shape":"boolean"}, - "Quantity":{"shape":"integer"}, - "Items":{"shape":"AwsAccountNumberList"} - } - }, - "UpdateCloudFrontOriginAccessIdentityRequest":{ - "type":"structure", - "required":[ - "CloudFrontOriginAccessIdentityConfig", - "Id" - ], - "members":{ - "CloudFrontOriginAccessIdentityConfig":{ - "shape":"CloudFrontOriginAccessIdentityConfig", - "locationName":"CloudFrontOriginAccessIdentityConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-28/"} - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"CloudFrontOriginAccessIdentityConfig" - }, - "UpdateCloudFrontOriginAccessIdentityResult":{ - "type":"structure", - "members":{ - "CloudFrontOriginAccessIdentity":{"shape":"CloudFrontOriginAccessIdentity"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"CloudFrontOriginAccessIdentity" - }, - "UpdateDistributionRequest":{ - "type":"structure", - "required":[ - "DistributionConfig", - "Id" - ], - "members":{ - "DistributionConfig":{ - "shape":"DistributionConfig", - "locationName":"DistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-28/"} - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"DistributionConfig" - }, - "UpdateDistributionResult":{ - "type":"structure", - "members":{ - "Distribution":{"shape":"Distribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"Distribution" - }, - "UpdateStreamingDistributionRequest":{ - "type":"structure", - "required":[ - "StreamingDistributionConfig", - "Id" - ], - "members":{ - "StreamingDistributionConfig":{ - "shape":"StreamingDistributionConfig", - "locationName":"StreamingDistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-01-28/"} - }, - "Id":{ - "shape":"string", - "location":"uri", - "locationName":"Id" - }, - "IfMatch":{ - "shape":"string", - "location":"header", - "locationName":"If-Match" - } - }, - "payload":"StreamingDistributionConfig" - }, - "UpdateStreamingDistributionResult":{ - "type":"structure", - "members":{ - "StreamingDistribution":{"shape":"StreamingDistribution"}, - "ETag":{ - "shape":"string", - "location":"header", - "locationName":"ETag" - } - }, - "payload":"StreamingDistribution" - }, - "ViewerCertificate":{ - "type":"structure", - "members":{ - "CloudFrontDefaultCertificate":{"shape":"boolean"}, - "IAMCertificateId":{"shape":"string"}, - "ACMCertificateArn":{"shape":"string"}, - "SSLSupportMethod":{"shape":"SSLSupportMethod"}, - "MinimumProtocolVersion":{"shape":"MinimumProtocolVersion"}, - "Certificate":{ - "shape":"string", - "deprecated":true - }, - "CertificateSource":{ - "shape":"CertificateSource", - "deprecated":true - } - } - }, - "ViewerProtocolPolicy":{ - "type":"string", - "enum":[ - "allow-all", - "https-only", - "redirect-to-https" - ] - }, - "boolean":{"type":"boolean"}, - "integer":{"type":"integer"}, - "long":{"type":"long"}, - "string":{"type":"string"}, - "timestamp":{"type":"timestamp"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/docs-2.json deleted file mode 100644 index 8174625b4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/docs-2.json +++ /dev/null @@ -1,1220 +0,0 @@ -{ - "version": "2.0", - "service": null, - "operations": { - "CreateCloudFrontOriginAccessIdentity": "Create a new origin access identity.", - "CreateDistribution": "Create a new distribution.", - "CreateInvalidation": "Create a new invalidation.", - "CreateStreamingDistribution": "Create a new streaming distribution.", - "DeleteCloudFrontOriginAccessIdentity": "Delete an origin access identity.", - "DeleteDistribution": "Delete a distribution.", - "DeleteStreamingDistribution": "Delete a streaming distribution.", - "GetCloudFrontOriginAccessIdentity": "Get the information about an origin access identity.", - "GetCloudFrontOriginAccessIdentityConfig": "Get the configuration information about an origin access identity.", - "GetDistribution": "Get the information about a distribution.", - "GetDistributionConfig": "Get the configuration information about a distribution.", - "GetInvalidation": "Get the information about an invalidation.", - "GetStreamingDistribution": "Get the information about a streaming distribution.", - "GetStreamingDistributionConfig": "Get the configuration information about a streaming distribution.", - "ListCloudFrontOriginAccessIdentities": "List origin access identities.", - "ListDistributions": "List distributions.", - "ListDistributionsByWebACLId": "List the distributions that are associated with a specified AWS WAF web ACL.", - "ListInvalidations": "List invalidation batches.", - "ListStreamingDistributions": "List streaming distributions.", - "UpdateCloudFrontOriginAccessIdentity": "Update an origin access identity.", - "UpdateDistribution": "Update a distribution.", - "UpdateStreamingDistribution": "Update a streaming distribution." - }, - "shapes": { - "AccessDenied": { - "base": "Access denied.", - "refs": { - } - }, - "ActiveTrustedSigners": { - "base": "A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for the default cache behavior or for any of the other cache behaviors for this distribution. These are accounts that you want to allow to create signed URLs for private content.", - "refs": { - "Distribution$ActiveTrustedSigners": "CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs.", - "StreamingDistribution$ActiveTrustedSigners": "CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs." - } - }, - "AliasList": { - "base": null, - "refs": { - "Aliases$Items": "Optional: A complex type that contains CNAME elements, if any, for this distribution. If Quantity is 0, you can omit Items." - } - }, - "Aliases": { - "base": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "refs": { - "DistributionConfig$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "DistributionSummary$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.", - "StreamingDistributionConfig$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.", - "StreamingDistributionSummary$Aliases": "A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution." - } - }, - "AllowedMethods": { - "base": "A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards only GET, HEAD and OPTIONS requests. - CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests. If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you may not want users to have permission to delete objects from your origin.", - "refs": { - "CacheBehavior$AllowedMethods": null, - "DefaultCacheBehavior$AllowedMethods": null - } - }, - "AwsAccountNumberList": { - "base": null, - "refs": { - "TrustedSigners$Items": "Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items." - } - }, - "BatchTooLarge": { - "base": null, - "refs": { - } - }, - "CNAMEAlreadyExists": { - "base": null, - "refs": { - } - }, - "CacheBehavior": { - "base": "A complex type that describes how CloudFront processes requests. You can create up to 10 cache behaviors.You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to distribute objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin will never be used. If you don't want to specify any cache behaviors, include only an empty CacheBehaviors element. Don't include an empty CacheBehavior element, or CloudFront returns a MalformedXML error. To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty CacheBehaviors element. To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.", - "refs": { - "CacheBehaviorList$member": null - } - }, - "CacheBehaviorList": { - "base": null, - "refs": { - "CacheBehaviors$Items": "Optional: A complex type that contains cache behaviors for this distribution. If Quantity is 0, you can omit Items." - } - }, - "CacheBehaviors": { - "base": "A complex type that contains zero or more CacheBehavior elements.", - "refs": { - "DistributionConfig$CacheBehaviors": "A complex type that contains zero or more CacheBehavior elements.", - "DistributionSummary$CacheBehaviors": "A complex type that contains zero or more CacheBehavior elements." - } - }, - "CachedMethods": { - "base": "A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices: - CloudFront caches responses to GET and HEAD requests. - CloudFront caches responses to GET, HEAD, and OPTIONS requests. If you pick the second choice for your S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers and Origin headers for the responses to be cached correctly.", - "refs": { - "AllowedMethods$CachedMethods": null - } - }, - "CertificateSource": { - "base": null, - "refs": { - "ViewerCertificate$CertificateSource": "Note: this field is deprecated. Please use one of [ACMCertificateArn, IAMCertificateId, CloudFrontDefaultCertificate]." - } - }, - "CloudFrontOriginAccessIdentity": { - "base": "CloudFront origin access identity.", - "refs": { - "CreateCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information.", - "GetCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information.", - "UpdateCloudFrontOriginAccessIdentityResult$CloudFrontOriginAccessIdentity": "The origin access identity's information." - } - }, - "CloudFrontOriginAccessIdentityAlreadyExists": { - "base": "If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.", - "refs": { - } - }, - "CloudFrontOriginAccessIdentityConfig": { - "base": "Origin access identity configuration.", - "refs": { - "CloudFrontOriginAccessIdentity$CloudFrontOriginAccessIdentityConfig": "The current configuration information for the identity.", - "CreateCloudFrontOriginAccessIdentityRequest$CloudFrontOriginAccessIdentityConfig": "The origin access identity's configuration information.", - "GetCloudFrontOriginAccessIdentityConfigResult$CloudFrontOriginAccessIdentityConfig": "The origin access identity's configuration information.", - "UpdateCloudFrontOriginAccessIdentityRequest$CloudFrontOriginAccessIdentityConfig": "The identity's configuration information." - } - }, - "CloudFrontOriginAccessIdentityInUse": { - "base": null, - "refs": { - } - }, - "CloudFrontOriginAccessIdentityList": { - "base": "The CloudFrontOriginAccessIdentityList type.", - "refs": { - "ListCloudFrontOriginAccessIdentitiesResult$CloudFrontOriginAccessIdentityList": "The CloudFrontOriginAccessIdentityList type." - } - }, - "CloudFrontOriginAccessIdentitySummary": { - "base": "Summary of the information about a CloudFront origin access identity.", - "refs": { - "CloudFrontOriginAccessIdentitySummaryList$member": null - } - }, - "CloudFrontOriginAccessIdentitySummaryList": { - "base": null, - "refs": { - "CloudFrontOriginAccessIdentityList$Items": "A complex type that contains one CloudFrontOriginAccessIdentitySummary element for each origin access identity that was created by the current AWS account." - } - }, - "CookieNameList": { - "base": null, - "refs": { - "CookieNames$Items": "Optional: A complex type that contains whitelisted cookies for this cache behavior. If Quantity is 0, you can omit Items." - } - }, - "CookieNames": { - "base": "A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior.", - "refs": { - "CookiePreference$WhitelistedNames": "A complex type that specifies the whitelisted cookies, if any, that you want CloudFront to forward to your origin that is associated with this cache behavior." - } - }, - "CookiePreference": { - "base": "A complex type that specifies the cookie preferences associated with this cache behavior.", - "refs": { - "ForwardedValues$Cookies": "A complex type that specifies how CloudFront handles cookies." - } - }, - "CreateCloudFrontOriginAccessIdentityRequest": { - "base": "The request to create a new origin access identity.", - "refs": { - } - }, - "CreateCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateDistributionRequest": { - "base": "The request to create a new distribution.", - "refs": { - } - }, - "CreateDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateInvalidationRequest": { - "base": "The request to create an invalidation.", - "refs": { - } - }, - "CreateInvalidationResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CreateStreamingDistributionRequest": { - "base": "The request to create a new streaming distribution.", - "refs": { - } - }, - "CreateStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "CustomErrorResponse": { - "base": "A complex type that describes how you'd prefer CloudFront to respond to requests that result in either a 4xx or 5xx response. You can control whether a custom error page should be displayed, what the desired response code should be for this error page and how long should the error response be cached by CloudFront. If you don't want to specify any custom error responses, include only an empty CustomErrorResponses element. To delete all custom error responses in an existing distribution, update the distribution configuration and include only an empty CustomErrorResponses element. To add, change, or remove one or more custom error responses, update the distribution configuration and specify all of the custom error responses that you want to include in the updated distribution.", - "refs": { - "CustomErrorResponseList$member": null - } - }, - "CustomErrorResponseList": { - "base": null, - "refs": { - "CustomErrorResponses$Items": "Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items." - } - }, - "CustomErrorResponses": { - "base": "A complex type that contains zero or more CustomErrorResponse elements.", - "refs": { - "DistributionConfig$CustomErrorResponses": "A complex type that contains zero or more CustomErrorResponse elements.", - "DistributionSummary$CustomErrorResponses": "A complex type that contains zero or more CustomErrorResponses elements." - } - }, - "CustomHeaders": { - "base": "A complex type that contains the list of Custom Headers for each origin.", - "refs": { - "Origin$CustomHeaders": "A complex type that contains information about the custom headers associated with this Origin." - } - }, - "CustomOriginConfig": { - "base": "A customer origin.", - "refs": { - "Origin$CustomOriginConfig": "A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead." - } - }, - "DefaultCacheBehavior": { - "base": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.", - "refs": { - "DistributionConfig$DefaultCacheBehavior": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior.", - "DistributionSummary$DefaultCacheBehavior": "A complex type that describes the default cache behavior if you do not specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements.You must create exactly one default cache behavior." - } - }, - "DeleteCloudFrontOriginAccessIdentityRequest": { - "base": "The request to delete a origin access identity.", - "refs": { - } - }, - "DeleteDistributionRequest": { - "base": "The request to delete a distribution.", - "refs": { - } - }, - "DeleteStreamingDistributionRequest": { - "base": "The request to delete a streaming distribution.", - "refs": { - } - }, - "Distribution": { - "base": "A distribution.", - "refs": { - "CreateDistributionResult$Distribution": "The distribution's information.", - "GetDistributionResult$Distribution": "The distribution's information.", - "UpdateDistributionResult$Distribution": "The distribution's information." - } - }, - "DistributionAlreadyExists": { - "base": "The caller reference you attempted to create the distribution with is associated with another distribution.", - "refs": { - } - }, - "DistributionConfig": { - "base": "A distribution Configuration.", - "refs": { - "CreateDistributionRequest$DistributionConfig": "The distribution's configuration information.", - "Distribution$DistributionConfig": "The current configuration information for the distribution.", - "GetDistributionConfigResult$DistributionConfig": "The distribution's configuration information.", - "UpdateDistributionRequest$DistributionConfig": "The distribution's configuration information." - } - }, - "DistributionList": { - "base": "A distribution list.", - "refs": { - "ListDistributionsByWebACLIdResult$DistributionList": "The DistributionList type.", - "ListDistributionsResult$DistributionList": "The DistributionList type." - } - }, - "DistributionNotDisabled": { - "base": null, - "refs": { - } - }, - "DistributionSummary": { - "base": "A summary of the information for an Amazon CloudFront distribution.", - "refs": { - "DistributionSummaryList$member": null - } - }, - "DistributionSummaryList": { - "base": null, - "refs": { - "DistributionList$Items": "A complex type that contains one DistributionSummary element for each distribution that was created by the current AWS account." - } - }, - "ForwardedValues": { - "base": "A complex type that specifies how CloudFront handles query strings, cookies and headers.", - "refs": { - "CacheBehavior$ForwardedValues": "A complex type that specifies how CloudFront handles query strings, cookies and headers.", - "DefaultCacheBehavior$ForwardedValues": "A complex type that specifies how CloudFront handles query strings, cookies and headers." - } - }, - "GeoRestriction": { - "base": "A complex type that controls the countries in which your content is distributed. For more information about geo restriction, go to Customizing Error Responses in the Amazon CloudFront Developer Guide. CloudFront determines the location of your users using MaxMind GeoIP databases. For information about the accuracy of these databases, see How accurate are your GeoIP databases? on the MaxMind website.", - "refs": { - "Restrictions$GeoRestriction": null - } - }, - "GeoRestrictionType": { - "base": null, - "refs": { - "GeoRestriction$RestrictionType": "The method that you want to use to restrict distribution of your content by country: - none: No geo restriction is enabled, meaning access to content is not restricted by client geo location. - blacklist: The Location elements specify the countries in which you do not want CloudFront to distribute your content. - whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content." - } - }, - "GetCloudFrontOriginAccessIdentityConfigRequest": { - "base": "The request to get an origin access identity's configuration.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityRequest": { - "base": "The request to get an origin access identity's information.", - "refs": { - } - }, - "GetCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetDistributionConfigRequest": { - "base": "The request to get a distribution configuration.", - "refs": { - } - }, - "GetDistributionConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetDistributionRequest": { - "base": "The request to get a distribution's information.", - "refs": { - } - }, - "GetDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetInvalidationRequest": { - "base": "The request to get an invalidation's information.", - "refs": { - } - }, - "GetInvalidationResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetStreamingDistributionConfigRequest": { - "base": "To request to get a streaming distribution configuration.", - "refs": { - } - }, - "GetStreamingDistributionConfigResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "GetStreamingDistributionRequest": { - "base": "The request to get a streaming distribution's information.", - "refs": { - } - }, - "GetStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "HeaderList": { - "base": null, - "refs": { - "Headers$Items": "Optional: A complex type that contains a Name element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If Quantity is 0, omit Items." - } - }, - "Headers": { - "base": "A complex type that specifies the headers that you want CloudFront to forward to the origin for this cache behavior. For the headers that you specify, CloudFront also caches separate versions of a given object based on the header values in viewer requests; this is known as varying on headers. For example, suppose viewer requests for logo.jpg contain a custom Product header that has a value of either Acme or Apex, and you configure CloudFront to vary on the Product header. CloudFront forwards the Product header to the origin and caches the response from the origin once for each header value.", - "refs": { - "ForwardedValues$Headers": "A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior." - } - }, - "IllegalUpdate": { - "base": "Origin and CallerReference cannot be updated.", - "refs": { - } - }, - "InconsistentQuantities": { - "base": "The value of Quantity and the size of Items do not match.", - "refs": { - } - }, - "InvalidArgument": { - "base": "The argument is invalid.", - "refs": { - } - }, - "InvalidDefaultRootObject": { - "base": "The default root object file name is too big or contains an invalid character.", - "refs": { - } - }, - "InvalidErrorCode": { - "base": null, - "refs": { - } - }, - "InvalidForwardCookies": { - "base": "Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.", - "refs": { - } - }, - "InvalidGeoRestrictionParameter": { - "base": null, - "refs": { - } - }, - "InvalidHeadersForS3Origin": { - "base": null, - "refs": { - } - }, - "InvalidIfMatchVersion": { - "base": "The If-Match version is missing or not valid for the distribution.", - "refs": { - } - }, - "InvalidLocationCode": { - "base": null, - "refs": { - } - }, - "InvalidMinimumProtocolVersion": { - "base": null, - "refs": { - } - }, - "InvalidOrigin": { - "base": "The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.", - "refs": { - } - }, - "InvalidOriginAccessIdentity": { - "base": "The origin access identity is not valid or doesn't exist.", - "refs": { - } - }, - "InvalidProtocolSettings": { - "base": "You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that Support Server Name Indication (SNI).", - "refs": { - } - }, - "InvalidRelativePath": { - "base": "The relative path is too big, is not URL-encoded, or does not begin with a slash (/).", - "refs": { - } - }, - "InvalidRequiredProtocol": { - "base": "This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.", - "refs": { - } - }, - "InvalidResponseCode": { - "base": null, - "refs": { - } - }, - "InvalidTTLOrder": { - "base": null, - "refs": { - } - }, - "InvalidViewerCertificate": { - "base": null, - "refs": { - } - }, - "InvalidWebACLId": { - "base": null, - "refs": { - } - }, - "Invalidation": { - "base": "An invalidation.", - "refs": { - "CreateInvalidationResult$Invalidation": "The invalidation's information.", - "GetInvalidationResult$Invalidation": "The invalidation's information." - } - }, - "InvalidationBatch": { - "base": "An invalidation batch.", - "refs": { - "CreateInvalidationRequest$InvalidationBatch": "The batch information for the invalidation.", - "Invalidation$InvalidationBatch": "The current invalidation information for the batch request." - } - }, - "InvalidationList": { - "base": "An invalidation list.", - "refs": { - "ListInvalidationsResult$InvalidationList": "Information about invalidation batches." - } - }, - "InvalidationSummary": { - "base": "Summary of an invalidation request.", - "refs": { - "InvalidationSummaryList$member": null - } - }, - "InvalidationSummaryList": { - "base": null, - "refs": { - "InvalidationList$Items": "A complex type that contains one InvalidationSummary element for each invalidation batch that was created by the current AWS account." - } - }, - "ItemSelection": { - "base": null, - "refs": { - "CookiePreference$Forward": "Use this element to specify whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify all, none or whitelist. If you choose All, CloudFront forwards all cookies regardless of how many your application uses." - } - }, - "KeyPairIdList": { - "base": null, - "refs": { - "KeyPairIds$Items": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber." - } - }, - "KeyPairIds": { - "base": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.", - "refs": { - "Signer$KeyPairIds": "A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber." - } - }, - "ListCloudFrontOriginAccessIdentitiesRequest": { - "base": "The request to list origin access identities.", - "refs": { - } - }, - "ListCloudFrontOriginAccessIdentitiesResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListDistributionsByWebACLIdRequest": { - "base": "The request to list distributions that are associated with a specified AWS WAF web ACL.", - "refs": { - } - }, - "ListDistributionsByWebACLIdResult": { - "base": "The response to a request to list the distributions that are associated with a specified AWS WAF web ACL.", - "refs": { - } - }, - "ListDistributionsRequest": { - "base": "The request to list your distributions.", - "refs": { - } - }, - "ListDistributionsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListInvalidationsRequest": { - "base": "The request to list invalidations.", - "refs": { - } - }, - "ListInvalidationsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ListStreamingDistributionsRequest": { - "base": "The request to list your streaming distributions.", - "refs": { - } - }, - "ListStreamingDistributionsResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "LocationList": { - "base": null, - "refs": { - "GeoRestriction$Items": "A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list in the CloudFront console, which includes both country names and codes." - } - }, - "LoggingConfig": { - "base": "A complex type that controls whether access logs are written for the distribution.", - "refs": { - "DistributionConfig$Logging": "A complex type that controls whether access logs are written for the distribution." - } - }, - "Method": { - "base": null, - "refs": { - "MethodsList$member": null - } - }, - "MethodsList": { - "base": null, - "refs": { - "AllowedMethods$Items": "A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.", - "CachedMethods$Items": "A complex type that contains the HTTP methods that you want CloudFront to cache responses to." - } - }, - "MinimumProtocolVersion": { - "base": null, - "refs": { - "ViewerCertificate$MinimumProtocolVersion": "Specify the minimum version of the SSL protocol that you want CloudFront to use, SSLv3 or TLSv1, for HTTPS connections. CloudFront will serve your objects only to browsers or devices that support at least the SSL version that you specify. The TLSv1 protocol is more secure, so we recommend that you specify SSLv3 only if your users are using browsers or devices that don't support TLSv1. If you're using a custom certificate (if you specify a value for IAMCertificateId) and if you're using dedicated IP (if you specify vip for SSLSupportMethod), you can choose SSLv3 or TLSv1 as the MinimumProtocolVersion. If you're using a custom certificate (if you specify a value for IAMCertificateId) and if you're using SNI (if you specify sni-only for SSLSupportMethod), you must specify TLSv1 for MinimumProtocolVersion." - } - }, - "MissingBody": { - "base": "This operation requires a body. Ensure that the body is present and the Content-Type header is set.", - "refs": { - } - }, - "NoSuchCloudFrontOriginAccessIdentity": { - "base": "The specified origin access identity does not exist.", - "refs": { - } - }, - "NoSuchDistribution": { - "base": "The specified distribution does not exist.", - "refs": { - } - }, - "NoSuchInvalidation": { - "base": "The specified invalidation does not exist.", - "refs": { - } - }, - "NoSuchOrigin": { - "base": "No origin exists with the specified Origin Id.", - "refs": { - } - }, - "NoSuchStreamingDistribution": { - "base": "The specified streaming distribution does not exist.", - "refs": { - } - }, - "Origin": { - "base": "A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files.You must create at least one origin.", - "refs": { - "OriginList$member": null - } - }, - "OriginCustomHeader": { - "base": "A complex type that contains information related to a Header", - "refs": { - "OriginCustomHeadersList$member": null - } - }, - "OriginCustomHeadersList": { - "base": null, - "refs": { - "CustomHeaders$Items": "A complex type that contains the custom headers for this Origin." - } - }, - "OriginList": { - "base": null, - "refs": { - "Origins$Items": "A complex type that contains origins for this distribution." - } - }, - "OriginProtocolPolicy": { - "base": null, - "refs": { - "CustomOriginConfig$OriginProtocolPolicy": "The origin protocol policy to apply to your origin." - } - }, - "OriginSslProtocols": { - "base": "A complex type that contains the list of SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.", - "refs": { - "CustomOriginConfig$OriginSslProtocols": "The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS." - } - }, - "Origins": { - "base": "A complex type that contains information about origins for this distribution.", - "refs": { - "DistributionConfig$Origins": "A complex type that contains information about origins for this distribution.", - "DistributionSummary$Origins": "A complex type that contains information about origins for this distribution." - } - }, - "PathList": { - "base": null, - "refs": { - "Paths$Items": "A complex type that contains a list of the objects that you want to invalidate." - } - }, - "Paths": { - "base": "A complex type that contains information about the objects that you want to invalidate.", - "refs": { - "InvalidationBatch$Paths": "The path of the object to invalidate. The path is relative to the distribution and must begin with a slash (/). You must enclose each invalidation object with the Path element tags. If the path includes non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not invalidate the old version of the updated object." - } - }, - "PreconditionFailed": { - "base": "The precondition given in one or more of the request-header fields evaluated to false.", - "refs": { - } - }, - "PriceClass": { - "base": null, - "refs": { - "DistributionConfig$PriceClass": "A complex type that contains information about price class for this distribution.", - "DistributionSummary$PriceClass": null, - "StreamingDistributionConfig$PriceClass": "A complex type that contains information about price class for this streaming distribution.", - "StreamingDistributionSummary$PriceClass": null - } - }, - "Restrictions": { - "base": "A complex type that identifies ways in which you want to restrict distribution of your content.", - "refs": { - "DistributionConfig$Restrictions": null, - "DistributionSummary$Restrictions": null - } - }, - "S3Origin": { - "base": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.", - "refs": { - "StreamingDistributionConfig$S3Origin": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.", - "StreamingDistributionSummary$S3Origin": "A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution." - } - }, - "S3OriginConfig": { - "base": "A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.", - "refs": { - "Origin$S3OriginConfig": "A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead." - } - }, - "SSLSupportMethod": { - "base": null, - "refs": { - "ViewerCertificate$SSLSupportMethod": "If you specify a value for IAMCertificateId, you must also specify how you want CloudFront to serve HTTPS requests. Valid values are vip and sni-only. If you specify vip, CloudFront uses dedicated IP addresses for your content and can respond to HTTPS requests from any viewer. However, you must request permission to use this feature, and you incur additional monthly charges. If you specify sni-only, CloudFront can only respond to HTTPS requests from viewers that support Server Name Indication (SNI). All modern browsers support SNI, but some browsers still in use don't support SNI. Do not specify a value for SSLSupportMethod if you specified true for CloudFrontDefaultCertificate." - } - }, - "Signer": { - "base": "A complex type that lists the AWS accounts that were included in the TrustedSigners complex type, as well as their active CloudFront key pair IDs, if any.", - "refs": { - "SignerList$member": null - } - }, - "SignerList": { - "base": null, - "refs": { - "ActiveTrustedSigners$Items": "A complex type that contains one Signer complex type for each unique trusted signer that is specified in the TrustedSigners complex type, including trusted signers in the default cache behavior and in all of the other cache behaviors." - } - }, - "SslProtocol": { - "base": null, - "refs": { - "SslProtocolsList$member": null - } - }, - "SslProtocolsList": { - "base": null, - "refs": { - "OriginSslProtocols$Items": "A complex type that contains one SslProtocol element for each SSL/TLS protocol that you want to allow CloudFront to use when establishing an HTTPS connection with this origin." - } - }, - "StreamingDistribution": { - "base": "A streaming distribution.", - "refs": { - "CreateStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information.", - "GetStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information.", - "UpdateStreamingDistributionResult$StreamingDistribution": "The streaming distribution's information." - } - }, - "StreamingDistributionAlreadyExists": { - "base": null, - "refs": { - } - }, - "StreamingDistributionConfig": { - "base": "The configuration for the streaming distribution.", - "refs": { - "CreateStreamingDistributionRequest$StreamingDistributionConfig": "The streaming distribution's configuration information.", - "GetStreamingDistributionConfigResult$StreamingDistributionConfig": "The streaming distribution's configuration information.", - "StreamingDistribution$StreamingDistributionConfig": "The current configuration information for the streaming distribution.", - "UpdateStreamingDistributionRequest$StreamingDistributionConfig": "The streaming distribution's configuration information." - } - }, - "StreamingDistributionList": { - "base": "A streaming distribution list.", - "refs": { - "ListStreamingDistributionsResult$StreamingDistributionList": "The StreamingDistributionList type." - } - }, - "StreamingDistributionNotDisabled": { - "base": null, - "refs": { - } - }, - "StreamingDistributionSummary": { - "base": "A summary of the information for an Amazon CloudFront streaming distribution.", - "refs": { - "StreamingDistributionSummaryList$member": null - } - }, - "StreamingDistributionSummaryList": { - "base": null, - "refs": { - "StreamingDistributionList$Items": "A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account." - } - }, - "StreamingLoggingConfig": { - "base": "A complex type that controls whether access logs are written for this streaming distribution.", - "refs": { - "StreamingDistributionConfig$Logging": "A complex type that controls whether access logs are written for the streaming distribution." - } - }, - "TooManyCacheBehaviors": { - "base": "You cannot create anymore cache behaviors for the distribution.", - "refs": { - } - }, - "TooManyCertificates": { - "base": "You cannot create anymore custom ssl certificates.", - "refs": { - } - }, - "TooManyCloudFrontOriginAccessIdentities": { - "base": "Processing your request would cause you to exceed the maximum number of origin access identities allowed.", - "refs": { - } - }, - "TooManyCookieNamesInWhiteList": { - "base": "Your request contains more cookie names in the whitelist than are allowed per cache behavior.", - "refs": { - } - }, - "TooManyDistributionCNAMEs": { - "base": "Your request contains more CNAMEs than are allowed per distribution.", - "refs": { - } - }, - "TooManyDistributions": { - "base": "Processing your request would cause you to exceed the maximum number of distributions allowed.", - "refs": { - } - }, - "TooManyHeadersInForwardedValues": { - "base": null, - "refs": { - } - }, - "TooManyInvalidationsInProgress": { - "base": "You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.", - "refs": { - } - }, - "TooManyOriginCustomHeaders": { - "base": null, - "refs": { - } - }, - "TooManyOrigins": { - "base": "You cannot create anymore origins for the distribution.", - "refs": { - } - }, - "TooManyStreamingDistributionCNAMEs": { - "base": null, - "refs": { - } - }, - "TooManyStreamingDistributions": { - "base": "Processing your request would cause you to exceed the maximum number of streaming distributions allowed.", - "refs": { - } - }, - "TooManyTrustedSigners": { - "base": "Your request contains more trusted signers than are allowed per distribution.", - "refs": { - } - }, - "TrustedSignerDoesNotExist": { - "base": "One or more of your trusted signers do not exist.", - "refs": { - } - }, - "TrustedSigners": { - "base": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "refs": { - "CacheBehavior$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "DefaultCacheBehavior$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "StreamingDistributionConfig$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.", - "StreamingDistributionSummary$TrustedSigners": "A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution." - } - }, - "UpdateCloudFrontOriginAccessIdentityRequest": { - "base": "The request to update an origin access identity.", - "refs": { - } - }, - "UpdateCloudFrontOriginAccessIdentityResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "UpdateDistributionRequest": { - "base": "The request to update a distribution.", - "refs": { - } - }, - "UpdateDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "UpdateStreamingDistributionRequest": { - "base": "The request to update a streaming distribution.", - "refs": { - } - }, - "UpdateStreamingDistributionResult": { - "base": "The returned result of the corresponding request.", - "refs": { - } - }, - "ViewerCertificate": { - "base": "A complex type that contains information about viewer certificates for this distribution.", - "refs": { - "DistributionConfig$ViewerCertificate": null, - "DistributionSummary$ViewerCertificate": null - } - }, - "ViewerProtocolPolicy": { - "base": null, - "refs": { - "CacheBehavior$ViewerProtocolPolicy": "Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL.", - "DefaultCacheBehavior$ViewerProtocolPolicy": "Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. If you want CloudFront to allow end users to use any available protocol, specify allow-all. If you want CloudFront to require HTTPS, specify https. If you want CloudFront to respond to an HTTP request with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL, specify redirect-to-https. The viewer then resubmits the request using the HTTPS URL." - } - }, - "boolean": { - "base": null, - "refs": { - "ActiveTrustedSigners$Enabled": "Each active trusted signer.", - "CacheBehavior$SmoothStreaming": "Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "CacheBehavior$Compress": "Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header. If so, specify true; if not, specify false. CloudFront compresses files larger than 1000 bytes and less than 1 megabyte for both Amazon S3 and custom origins. When a CloudFront edge location is unusually busy, some files might not be compressed. The value of the Content-Type header must be on the list of file types that CloudFront will compress. For the current list, see Serving Compressed Content in the Amazon CloudFront Developer Guide. If you configure CloudFront to compress content, CloudFront removes the ETag response header from the objects that it compresses. The ETag header indicates that the version in a CloudFront edge cache is identical to the version on the origin server, but after compression the two versions are no longer identical. As a result, for compressed objects, CloudFront can't use the ETag header to determine whether an expired object in the CloudFront edge cache is still the latest version.", - "CloudFrontOriginAccessIdentityList$IsTruncated": "A flag that indicates whether more origin access identities remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more items in the list.", - "DefaultCacheBehavior$SmoothStreaming": "Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "DefaultCacheBehavior$Compress": "Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header. If so, specify true; if not, specify false. CloudFront compresses files larger than 1000 bytes and less than 1 megabyte for both Amazon S3 and custom origins. When a CloudFront edge location is unusually busy, some files might not be compressed. The value of the Content-Type header must be on the list of file types that CloudFront will compress. For the current list, see Serving Compressed Content in the Amazon CloudFront Developer Guide. If you configure CloudFront to compress content, CloudFront removes the ETag response header from the objects that it compresses. The ETag header indicates that the version in a CloudFront edge cache is identical to the version on the origin server, but after compression the two versions are no longer identical. As a result, for compressed objects, CloudFront can't use the ETag header to determine whether an expired object in the CloudFront edge cache is still the latest version.", - "DistributionConfig$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "DistributionList$IsTruncated": "A flag that indicates whether more distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.", - "DistributionSummary$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "ForwardedValues$QueryString": "Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.", - "InvalidationList$IsTruncated": "A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.", - "LoggingConfig$Enabled": "Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix and IncludeCookies, the values are automatically deleted.", - "LoggingConfig$IncludeCookies": "Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you do not want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.", - "StreamingDistributionConfig$Enabled": "Whether the streaming distribution is enabled to accept end user requests for content.", - "StreamingDistributionList$IsTruncated": "A flag that indicates whether more streaming distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.", - "StreamingDistributionSummary$Enabled": "Whether the distribution is enabled to accept end user requests for content.", - "StreamingLoggingConfig$Enabled": "Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you do not want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.", - "TrustedSigners$Enabled": "Specifies whether you want to require end users to use signed URLs to access the files specified by PathPattern and TargetOriginId.", - "ViewerCertificate$CloudFrontDefaultCertificate": "If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name of your distribution in your object URLs (for example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true. Omit this value if you are setting an ACMCertificateArn or IAMCertificateId." - } - }, - "integer": { - "base": null, - "refs": { - "ActiveTrustedSigners$Quantity": "The number of unique trusted signers included in all cache behaviors. For example, if three cache behaviors all list the same three AWS accounts, the value of Quantity for ActiveTrustedSigners will be 3.", - "Aliases$Quantity": "The number of CNAMEs, if any, for this distribution.", - "AllowedMethods$Quantity": "The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).", - "CacheBehaviors$Quantity": "The number of cache behaviors for this distribution.", - "CachedMethods$Quantity": "The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).", - "CloudFrontOriginAccessIdentityList$MaxItems": "The value you provided for the MaxItems request parameter.", - "CloudFrontOriginAccessIdentityList$Quantity": "The number of CloudFront origin access identities that were created by the current AWS account.", - "CookieNames$Quantity": "The number of whitelisted cookies for this cache behavior.", - "CustomErrorResponse$ErrorCode": "The 4xx or 5xx HTTP status code that you want to customize. For a list of HTTP status codes that you can customize, see CloudFront documentation.", - "CustomErrorResponses$Quantity": "The number of custom error responses for this distribution.", - "CustomHeaders$Quantity": "The number of custom headers for this origin.", - "CustomOriginConfig$HTTPPort": "The HTTP port the custom origin listens on.", - "CustomOriginConfig$HTTPSPort": "The HTTPS port the custom origin listens on.", - "Distribution$InProgressInvalidationBatches": "The number of invalidation batches currently in progress.", - "DistributionList$MaxItems": "The value you provided for the MaxItems request parameter.", - "DistributionList$Quantity": "The number of distributions that were created by the current AWS account.", - "GeoRestriction$Quantity": "When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.", - "Headers$Quantity": "The number of different headers that you want CloudFront to forward to the origin and to vary on for this cache behavior. The maximum number of headers that you can specify by name is 10. If you want CloudFront to forward all headers to the origin and vary on all of them, specify 1 for Quantity and * for Name. If you don't want CloudFront to forward any additional headers to the origin or to vary on any headers, specify 0 for Quantity and omit Items.", - "InvalidationList$MaxItems": "The value you provided for the MaxItems request parameter.", - "InvalidationList$Quantity": "The number of invalidation batches that were created by the current AWS account.", - "KeyPairIds$Quantity": "The number of active CloudFront key pairs for AwsAccountNumber.", - "OriginSslProtocols$Quantity": "The number of SSL/TLS protocols that you want to allow CloudFront to use when establishing an HTTPS connection with this origin.", - "Origins$Quantity": "The number of origins for this distribution.", - "Paths$Quantity": "The number of objects that you want to invalidate.", - "StreamingDistributionList$MaxItems": "The value you provided for the MaxItems request parameter.", - "StreamingDistributionList$Quantity": "The number of streaming distributions that were created by the current AWS account.", - "TrustedSigners$Quantity": "The number of trusted signers for this cache behavior." - } - }, - "long": { - "base": null, - "refs": { - "CacheBehavior$MinTTL": "The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CacheBehavior$DefaultTTL": "If you don't configure your origin to add a Cache-Control max-age directive or an Expires header, DefaultTTL is the default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CacheBehavior$MaxTTL": "The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "CustomErrorResponse$ErrorCachingMinTTL": "The minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. You can specify a value from 0 to 31,536,000.", - "DefaultCacheBehavior$MinTTL": "The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "DefaultCacheBehavior$DefaultTTL": "If you don't configure your origin to add a Cache-Control max-age directive or an Expires header, DefaultTTL is the default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years).", - "DefaultCacheBehavior$MaxTTL": "The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. You can specify a value from 0 to 3,153,600,000 seconds (100 years)." - } - }, - "string": { - "base": null, - "refs": { - "AccessDenied$Message": null, - "AliasList$member": null, - "AwsAccountNumberList$member": null, - "BatchTooLarge$Message": null, - "CNAMEAlreadyExists$Message": null, - "CacheBehavior$PathPattern": "The pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to. When CloudFront receives an end-user request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution. The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.", - "CacheBehavior$TargetOriginId": "The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.", - "CloudFrontOriginAccessIdentity$Id": "The ID for the origin access identity. For example: E74FTE3AJFJ256A.", - "CloudFrontOriginAccessIdentity$S3CanonicalUserId": "The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.", - "CloudFrontOriginAccessIdentityAlreadyExists$Message": null, - "CloudFrontOriginAccessIdentityConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.", - "CloudFrontOriginAccessIdentityConfig$Comment": "Any comments you want to include about the origin access identity.", - "CloudFrontOriginAccessIdentityInUse$Message": null, - "CloudFrontOriginAccessIdentityList$Marker": "The value you provided for the Marker request parameter.", - "CloudFrontOriginAccessIdentityList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your origin access identities where they left off.", - "CloudFrontOriginAccessIdentitySummary$Id": "The ID for the origin access identity. For example: E74FTE3AJFJ256A.", - "CloudFrontOriginAccessIdentitySummary$S3CanonicalUserId": "The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.", - "CloudFrontOriginAccessIdentitySummary$Comment": "The comment for this origin access identity, as originally specified when created.", - "CookieNameList$member": null, - "CreateCloudFrontOriginAccessIdentityResult$Location": "The fully qualified URI of the new origin access identity just created. For example: https://cloudfront.amazonaws.com/2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A.", - "CreateCloudFrontOriginAccessIdentityResult$ETag": "The current version of the origin access identity created.", - "CreateDistributionResult$Location": "The fully qualified URI of the new distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5.", - "CreateDistributionResult$ETag": "The current version of the distribution created.", - "CreateInvalidationRequest$DistributionId": "The distribution's id.", - "CreateInvalidationResult$Location": "The fully qualified URI of the distribution and invalidation batch request, including the Invalidation ID.", - "CreateStreamingDistributionResult$Location": "The fully qualified URI of the new streaming distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8.", - "CreateStreamingDistributionResult$ETag": "The current version of the streaming distribution created.", - "CustomErrorResponse$ResponsePagePath": "The path of the custom error page (for example, /custom_404.html). The path is relative to the distribution and must begin with a slash (/). If the path includes any non-ASCII characters or unsafe characters as defined in RFC 1783 (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters. Do not URL encode any other characters in the path, or CloudFront will not return the custom error page to the viewer.", - "CustomErrorResponse$ResponseCode": "The HTTP status code that you want CloudFront to return with the custom error page to the viewer. For a list of HTTP status codes that you can replace, see CloudFront Documentation.", - "DefaultCacheBehavior$TargetOriginId": "The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.", - "DeleteCloudFrontOriginAccessIdentityRequest$Id": "The origin access identity's id.", - "DeleteCloudFrontOriginAccessIdentityRequest$IfMatch": "The value of the ETag header you received from a previous GET or PUT request. For example: E2QWRUHAPOMQZL.", - "DeleteDistributionRequest$Id": "The distribution id.", - "DeleteDistributionRequest$IfMatch": "The value of the ETag header you received when you disabled the distribution. For example: E2QWRUHAPOMQZL.", - "DeleteStreamingDistributionRequest$Id": "The distribution id.", - "DeleteStreamingDistributionRequest$IfMatch": "The value of the ETag header you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL.", - "Distribution$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "Distribution$Status": "This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "Distribution$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "DistributionAlreadyExists$Message": null, - "DistributionConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the DistributionConfig object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create a distribution, and the content of the DistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of the DistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.", - "DistributionConfig$DefaultRootObject": "The object that you want CloudFront to return (for example, index.html) when an end user requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/index.html). Specifying a default root object avoids exposing the contents of your distribution. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object.", - "DistributionConfig$Comment": "Any comments you want to include about the distribution.", - "DistributionConfig$WebACLId": "(Optional) If you're using AWS WAF to filter CloudFront requests, the Id of the AWS WAF web ACL that is associated with the distribution.", - "DistributionList$Marker": "The value you provided for the Marker request parameter.", - "DistributionList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your distributions where they left off.", - "DistributionNotDisabled$Message": null, - "DistributionSummary$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "DistributionSummary$Status": "This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "DistributionSummary$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "DistributionSummary$Comment": "The comment originally specified when this distribution was created.", - "DistributionSummary$WebACLId": "The Web ACL Id (if any) associated with the distribution.", - "GetCloudFrontOriginAccessIdentityConfigRequest$Id": "The identity's id.", - "GetCloudFrontOriginAccessIdentityConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetCloudFrontOriginAccessIdentityRequest$Id": "The identity's id.", - "GetCloudFrontOriginAccessIdentityResult$ETag": "The current version of the origin access identity's information. For example: E2QWRUHAPOMQZL.", - "GetDistributionConfigRequest$Id": "The distribution's id.", - "GetDistributionConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetDistributionRequest$Id": "The distribution's id.", - "GetDistributionResult$ETag": "The current version of the distribution's information. For example: E2QWRUHAPOMQZL.", - "GetInvalidationRequest$DistributionId": "The distribution's id.", - "GetInvalidationRequest$Id": "The invalidation's id.", - "GetStreamingDistributionConfigRequest$Id": "The streaming distribution's id.", - "GetStreamingDistributionConfigResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "GetStreamingDistributionRequest$Id": "The streaming distribution's id.", - "GetStreamingDistributionResult$ETag": "The current version of the streaming distribution's information. For example: E2QWRUHAPOMQZL.", - "HeaderList$member": null, - "IllegalUpdate$Message": null, - "InconsistentQuantities$Message": null, - "InvalidArgument$Message": null, - "InvalidDefaultRootObject$Message": null, - "InvalidErrorCode$Message": null, - "InvalidForwardCookies$Message": null, - "InvalidGeoRestrictionParameter$Message": null, - "InvalidHeadersForS3Origin$Message": null, - "InvalidIfMatchVersion$Message": null, - "InvalidLocationCode$Message": null, - "InvalidMinimumProtocolVersion$Message": null, - "InvalidOrigin$Message": null, - "InvalidOriginAccessIdentity$Message": null, - "InvalidProtocolSettings$Message": null, - "InvalidRelativePath$Message": null, - "InvalidRequiredProtocol$Message": null, - "InvalidResponseCode$Message": null, - "InvalidTTLOrder$Message": null, - "InvalidViewerCertificate$Message": null, - "InvalidWebACLId$Message": null, - "Invalidation$Id": "The identifier for the invalidation request. For example: IDFDVBD632BHDS5.", - "Invalidation$Status": "The status of the invalidation request. When the invalidation batch is finished, the status is Completed.", - "InvalidationBatch$CallerReference": "A unique name that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the Path object), a new distribution is created. If the CallerReference is a value you already sent in a previous request to create an invalidation batch, and the content of each Path element is identical to the original request, the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a distribution but the content of any Path is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists error.", - "InvalidationList$Marker": "The value you provided for the Marker request parameter.", - "InvalidationList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.", - "InvalidationSummary$Id": "The unique ID for an invalidation request.", - "InvalidationSummary$Status": "The status of an invalidation request.", - "KeyPairIdList$member": null, - "ListCloudFrontOriginAccessIdentitiesRequest$Marker": "Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).", - "ListCloudFrontOriginAccessIdentitiesRequest$MaxItems": "The maximum number of origin access identities you want in the response body.", - "ListDistributionsByWebACLIdRequest$Marker": "Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)", - "ListDistributionsByWebACLIdRequest$MaxItems": "The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.", - "ListDistributionsByWebACLIdRequest$WebACLId": "The Id of the AWS WAF web ACL for which you want to list the associated distributions. If you specify \"null\" for the Id, the request returns a list of the distributions that aren't associated with a web ACL.", - "ListDistributionsRequest$Marker": "Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)", - "ListDistributionsRequest$MaxItems": "The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.", - "ListInvalidationsRequest$DistributionId": "The distribution's id.", - "ListInvalidationsRequest$Marker": "Use this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.", - "ListInvalidationsRequest$MaxItems": "The maximum number of invalidation batches you want in the response body.", - "ListStreamingDistributionsRequest$Marker": "Use this when paginating results to indicate where to begin in your list of streaming distributions. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).", - "ListStreamingDistributionsRequest$MaxItems": "The maximum number of streaming distributions you want in the response body.", - "LocationList$member": null, - "LoggingConfig$Bucket": "The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.", - "LoggingConfig$Prefix": "An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.", - "MissingBody$Message": null, - "NoSuchCloudFrontOriginAccessIdentity$Message": null, - "NoSuchDistribution$Message": null, - "NoSuchInvalidation$Message": null, - "NoSuchOrigin$Message": null, - "NoSuchStreamingDistribution$Message": null, - "Origin$Id": "A unique identifier for the origin. The value of Id must be unique within the distribution. You use the value of Id when you create a cache behavior. The Id identifies the origin that CloudFront routes a request to when the request matches the path pattern for that cache behavior.", - "Origin$DomainName": "Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.", - "Origin$OriginPath": "An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. When you include the OriginPath element, specify the directory name, beginning with a /. CloudFront appends the directory name to the value of DomainName.", - "OriginCustomHeader$HeaderName": "The header's name.", - "OriginCustomHeader$HeaderValue": "The header's value.", - "PathList$member": null, - "PreconditionFailed$Message": null, - "S3Origin$DomainName": "The DNS name of the S3 origin.", - "S3Origin$OriginAccessIdentity": "Your S3 origin's origin access identity.", - "S3OriginConfig$OriginAccessIdentity": "The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. Use the format origin-access-identity/cloudfront/Id where Id is the value that CloudFront returned in the Id element when you created the origin access identity.", - "Signer$AwsAccountNumber": "Specifies an AWS account that can create signed URLs. Values: self, which indicates that the AWS account that was used to create the distribution can created signed URLs, or an AWS account number. Omit the dashes in the account number.", - "StreamingDistribution$Id": "The identifier for the streaming distribution. For example: EGTXBD79H29TRA8.", - "StreamingDistribution$Status": "The current status of the streaming distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "StreamingDistribution$DomainName": "The domain name corresponding to the streaming distribution. For example: s5c39gqb8ow64r.cloudfront.net.", - "StreamingDistributionAlreadyExists$Message": null, - "StreamingDistributionConfig$CallerReference": "A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.", - "StreamingDistributionConfig$Comment": "Any comments you want to include about the streaming distribution.", - "StreamingDistributionList$Marker": "The value you provided for the Marker request parameter.", - "StreamingDistributionList$NextMarker": "If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your streaming distributions where they left off.", - "StreamingDistributionNotDisabled$Message": null, - "StreamingDistributionSummary$Id": "The identifier for the distribution. For example: EDFDVBD632BHDS5.", - "StreamingDistributionSummary$Status": "Indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.", - "StreamingDistributionSummary$DomainName": "The domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net.", - "StreamingDistributionSummary$Comment": "The comment originally specified when this distribution was created.", - "StreamingLoggingConfig$Bucket": "The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.", - "StreamingLoggingConfig$Prefix": "An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.", - "TooManyCacheBehaviors$Message": null, - "TooManyCertificates$Message": null, - "TooManyCloudFrontOriginAccessIdentities$Message": null, - "TooManyCookieNamesInWhiteList$Message": null, - "TooManyDistributionCNAMEs$Message": null, - "TooManyDistributions$Message": null, - "TooManyHeadersInForwardedValues$Message": null, - "TooManyInvalidationsInProgress$Message": null, - "TooManyOriginCustomHeaders$Message": null, - "TooManyOrigins$Message": null, - "TooManyStreamingDistributionCNAMEs$Message": null, - "TooManyStreamingDistributions$Message": null, - "TooManyTrustedSigners$Message": null, - "TrustedSignerDoesNotExist$Message": null, - "UpdateCloudFrontOriginAccessIdentityRequest$Id": "The identity's id.", - "UpdateCloudFrontOriginAccessIdentityRequest$IfMatch": "The value of the ETag header you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateCloudFrontOriginAccessIdentityResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "UpdateDistributionRequest$Id": "The distribution's id.", - "UpdateDistributionRequest$IfMatch": "The value of the ETag header you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateDistributionResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "UpdateStreamingDistributionRequest$Id": "The streaming distribution's id.", - "UpdateStreamingDistributionRequest$IfMatch": "The value of the ETag header you received when retrieving the streaming distribution's configuration. For example: E2QWRUHAPOMQZL.", - "UpdateStreamingDistributionResult$ETag": "The current version of the configuration. For example: E2QWRUHAPOMQZL.", - "ViewerCertificate$IAMCertificateId": "If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), specify the IAM certificate identifier of the custom viewer certificate for this distribution. Specify either this value, ACMCertificateArn, or CloudFrontDefaultCertificate.", - "ViewerCertificate$ACMCertificateArn": "If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), specify the ACM certificate ARN of the custom viewer certificate for this distribution. Specify either this value, IAMCertificateId, or CloudFrontDefaultCertificate.", - "ViewerCertificate$Certificate": "Note: this field is deprecated. Please use one of [ACMCertificateArn, IAMCertificateId, CloudFrontDefaultCertificate]." - } - }, - "timestamp": { - "base": null, - "refs": { - "Distribution$LastModifiedTime": "The date and time the distribution was last modified.", - "DistributionSummary$LastModifiedTime": "The date and time the distribution was last modified.", - "Invalidation$CreateTime": "The date and time the invalidation request was first made.", - "InvalidationSummary$CreateTime": null, - "StreamingDistribution$LastModifiedTime": "The date and time the distribution was last modified.", - "StreamingDistributionSummary$LastModifiedTime": "The date and time the distribution was last modified." - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/paginators-1.json deleted file mode 100644 index 51fbb907f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/paginators-1.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "pagination": { - "ListCloudFrontOriginAccessIdentities": { - "input_token": "Marker", - "output_token": "CloudFrontOriginAccessIdentityList.NextMarker", - "limit_key": "MaxItems", - "more_results": "CloudFrontOriginAccessIdentityList.IsTruncated", - "result_key": "CloudFrontOriginAccessIdentityList.Items" - }, - "ListDistributions": { - "input_token": "Marker", - "output_token": "DistributionList.NextMarker", - "limit_key": "MaxItems", - "more_results": "DistributionList.IsTruncated", - "result_key": "DistributionList.Items" - }, - "ListInvalidations": { - "input_token": "Marker", - "output_token": "InvalidationList.NextMarker", - "limit_key": "MaxItems", - "more_results": "InvalidationList.IsTruncated", - "result_key": "InvalidationList.Items" - }, - "ListStreamingDistributions": { - "input_token": "Marker", - "output_token": "StreamingDistributionList.NextMarker", - "limit_key": "MaxItems", - "more_results": "StreamingDistributionList.IsTruncated", - "result_key": "StreamingDistributionList.Items" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/waiters-2.json deleted file mode 100644 index edd74b2a3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2016-01-28/waiters-2.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "version": 2, - "waiters": { - "DistributionDeployed": { - "delay": 60, - "operation": "GetDistribution", - "maxAttempts": 25, - "description": "Wait until a distribution is deployed.", - "acceptors": [ - { - "expected": "Deployed", - "matcher": "path", - "state": "success", - "argument": "Distribution.Status" - } - ] - }, - "InvalidationCompleted": { - "delay": 20, - "operation": "GetInvalidation", - "maxAttempts": 30, - "description": "Wait until an invalidation has completed.", - "acceptors": [ - { - "expected": "Completed", - "matcher": "path", - "state": "success", - "argument": "Invalidation.Status" - } - ] - }, - "StreamingDistributionDeployed": { - "delay": 60, - "operation": "GetStreamingDistribution", - "maxAttempts": 25, - "description": "Wait until a streaming distribution is deployed.", - "acceptors": [ - { - "expected": "Deployed", - "matcher": "path", - "state": "success", - "argument": "StreamingDistribution.Status" - } - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudhsm/2014-05-30/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearchdomain/2013-01-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/api-2.json deleted file mode 100644 index a1fadb499..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/api-2.json +++ /dev/null @@ -1,792 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2013-11-01", - "endpointPrefix":"cloudtrail", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"CloudTrail", - "serviceFullName":"AWS CloudTrail", - "signatureVersion":"v4", - "targetPrefix":"com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101" - }, - "operations":{ - "AddTags":{ - "name":"AddTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddTagsRequest"}, - "output":{"shape":"AddTagsResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"CloudTrailARNInvalidException"}, - {"shape":"ResourceTypeNotSupportedException"}, - {"shape":"TagsLimitExceededException"}, - {"shape":"InvalidTrailNameException"}, - {"shape":"InvalidTagParameterException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"} - ], - "idempotent":true - }, - "CreateTrail":{ - "name":"CreateTrail", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateTrailRequest"}, - "output":{"shape":"CreateTrailResponse"}, - "errors":[ - {"shape":"MaximumNumberOfTrailsExceededException"}, - {"shape":"TrailAlreadyExistsException"}, - {"shape":"S3BucketDoesNotExistException"}, - {"shape":"InsufficientS3BucketPolicyException"}, - {"shape":"InsufficientSnsTopicPolicyException"}, - {"shape":"InsufficientEncryptionPolicyException"}, - {"shape":"InvalidS3BucketNameException"}, - {"shape":"InvalidS3PrefixException"}, - {"shape":"InvalidSnsTopicNameException"}, - {"shape":"InvalidKmsKeyIdException"}, - {"shape":"InvalidTrailNameException"}, - {"shape":"TrailNotProvidedException"}, - {"shape":"InvalidParameterCombinationException"}, - {"shape":"KmsKeyNotFoundException"}, - {"shape":"KmsKeyDisabledException"}, - {"shape":"InvalidCloudWatchLogsLogGroupArnException"}, - {"shape":"InvalidCloudWatchLogsRoleArnException"}, - {"shape":"CloudWatchLogsDeliveryUnavailableException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"} - ], - "idempotent":true - }, - "DeleteTrail":{ - "name":"DeleteTrail", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteTrailRequest"}, - "output":{"shape":"DeleteTrailResponse"}, - "errors":[ - {"shape":"TrailNotFoundException"}, - {"shape":"InvalidTrailNameException"}, - {"shape":"InvalidHomeRegionException"} - ], - "idempotent":true - }, - "DescribeTrails":{ - "name":"DescribeTrails", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeTrailsRequest"}, - "output":{"shape":"DescribeTrailsResponse"}, - "errors":[ - {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"} - ], - "idempotent":true - }, - "GetTrailStatus":{ - "name":"GetTrailStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetTrailStatusRequest"}, - "output":{"shape":"GetTrailStatusResponse"}, - "errors":[ - {"shape":"TrailNotFoundException"}, - {"shape":"InvalidTrailNameException"} - ], - "idempotent":true - }, - "ListPublicKeys":{ - "name":"ListPublicKeys", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListPublicKeysRequest"}, - "output":{"shape":"ListPublicKeysResponse"}, - "errors":[ - {"shape":"InvalidTimeRangeException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"}, - {"shape":"InvalidTokenException"} - ], - "idempotent":true - }, - "ListTags":{ - "name":"ListTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsRequest"}, - "output":{"shape":"ListTagsResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"CloudTrailARNInvalidException"}, - {"shape":"ResourceTypeNotSupportedException"}, - {"shape":"InvalidTrailNameException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"}, - {"shape":"InvalidTokenException"} - ], - "idempotent":true - }, - "LookupEvents":{ - "name":"LookupEvents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"LookupEventsRequest"}, - "output":{"shape":"LookupEventsResponse"}, - "errors":[ - {"shape":"InvalidLookupAttributesException"}, - {"shape":"InvalidTimeRangeException"}, - {"shape":"InvalidMaxResultsException"}, - {"shape":"InvalidNextTokenException"} - ], - "idempotent":true - }, - "RemoveTags":{ - "name":"RemoveTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTagsRequest"}, - "output":{"shape":"RemoveTagsResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"CloudTrailARNInvalidException"}, - {"shape":"ResourceTypeNotSupportedException"}, - {"shape":"InvalidTrailNameException"}, - {"shape":"InvalidTagParameterException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"} - ], - "idempotent":true - }, - "StartLogging":{ - "name":"StartLogging", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StartLoggingRequest"}, - "output":{"shape":"StartLoggingResponse"}, - "errors":[ - {"shape":"TrailNotFoundException"}, - {"shape":"InvalidTrailNameException"}, - {"shape":"InvalidHomeRegionException"} - ], - "idempotent":true - }, - "StopLogging":{ - "name":"StopLogging", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StopLoggingRequest"}, - "output":{"shape":"StopLoggingResponse"}, - "errors":[ - {"shape":"TrailNotFoundException"}, - {"shape":"InvalidTrailNameException"}, - {"shape":"InvalidHomeRegionException"} - ], - "idempotent":true - }, - "UpdateTrail":{ - "name":"UpdateTrail", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateTrailRequest"}, - "output":{"shape":"UpdateTrailResponse"}, - "errors":[ - {"shape":"S3BucketDoesNotExistException"}, - {"shape":"InsufficientS3BucketPolicyException"}, - {"shape":"InsufficientSnsTopicPolicyException"}, - {"shape":"InsufficientEncryptionPolicyException"}, - {"shape":"TrailNotFoundException"}, - {"shape":"InvalidS3BucketNameException"}, - {"shape":"InvalidS3PrefixException"}, - {"shape":"InvalidSnsTopicNameException"}, - {"shape":"InvalidKmsKeyIdException"}, - {"shape":"InvalidTrailNameException"}, - {"shape":"TrailNotProvidedException"}, - {"shape":"InvalidParameterCombinationException"}, - {"shape":"InvalidHomeRegionException"}, - {"shape":"KmsKeyNotFoundException"}, - {"shape":"KmsKeyDisabledException"}, - {"shape":"InvalidCloudWatchLogsLogGroupArnException"}, - {"shape":"InvalidCloudWatchLogsRoleArnException"}, - {"shape":"CloudWatchLogsDeliveryUnavailableException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"} - ], - "idempotent":true - } - }, - "shapes":{ - "AddTagsRequest":{ - "type":"structure", - "required":["ResourceId"], - "members":{ - "ResourceId":{"shape":"String"}, - "TagsList":{"shape":"TagsList"} - } - }, - "AddTagsResponse":{ - "type":"structure", - "members":{ - } - }, - "Boolean":{"type":"boolean"}, - "ByteBuffer":{"type":"blob"}, - "CloudTrailARNInvalidException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "CloudWatchLogsDeliveryUnavailableException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "CreateTrailRequest":{ - "type":"structure", - "required":[ - "Name", - "S3BucketName" - ], - "members":{ - "Name":{"shape":"String"}, - "S3BucketName":{"shape":"String"}, - "S3KeyPrefix":{"shape":"String"}, - "SnsTopicName":{"shape":"String"}, - "IncludeGlobalServiceEvents":{"shape":"Boolean"}, - "IsMultiRegionTrail":{"shape":"Boolean"}, - "EnableLogFileValidation":{"shape":"Boolean"}, - "CloudWatchLogsLogGroupArn":{"shape":"String"}, - "CloudWatchLogsRoleArn":{"shape":"String"}, - "KmsKeyId":{"shape":"String"} - } - }, - "CreateTrailResponse":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "S3BucketName":{"shape":"String"}, - "S3KeyPrefix":{"shape":"String"}, - "SnsTopicName":{ - "shape":"String", - "deprecated":true - }, - "SnsTopicARN":{"shape":"String"}, - "IncludeGlobalServiceEvents":{"shape":"Boolean"}, - "IsMultiRegionTrail":{"shape":"Boolean"}, - "TrailARN":{"shape":"String"}, - "LogFileValidationEnabled":{"shape":"Boolean"}, - "CloudWatchLogsLogGroupArn":{"shape":"String"}, - "CloudWatchLogsRoleArn":{"shape":"String"}, - "KmsKeyId":{"shape":"String"} - } - }, - "Date":{"type":"timestamp"}, - "DeleteTrailRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"String"} - } - }, - "DeleteTrailResponse":{ - "type":"structure", - "members":{ - } - }, - "DescribeTrailsRequest":{ - "type":"structure", - "members":{ - "trailNameList":{"shape":"TrailNameList"}, - "includeShadowTrails":{"shape":"Boolean"} - } - }, - "DescribeTrailsResponse":{ - "type":"structure", - "members":{ - "trailList":{"shape":"TrailList"} - } - }, - "Event":{ - "type":"structure", - "members":{ - "EventId":{"shape":"String"}, - "EventName":{"shape":"String"}, - "EventTime":{"shape":"Date"}, - "Username":{"shape":"String"}, - "Resources":{"shape":"ResourceList"}, - "CloudTrailEvent":{"shape":"String"} - } - }, - "EventsList":{ - "type":"list", - "member":{"shape":"Event"} - }, - "GetTrailStatusRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"String"} - } - }, - "GetTrailStatusResponse":{ - "type":"structure", - "members":{ - "IsLogging":{"shape":"Boolean"}, - "LatestDeliveryError":{"shape":"String"}, - "LatestNotificationError":{"shape":"String"}, - "LatestDeliveryTime":{"shape":"Date"}, - "LatestNotificationTime":{"shape":"Date"}, - "StartLoggingTime":{"shape":"Date"}, - "StopLoggingTime":{"shape":"Date"}, - "LatestCloudWatchLogsDeliveryError":{"shape":"String"}, - "LatestCloudWatchLogsDeliveryTime":{"shape":"Date"}, - "LatestDigestDeliveryTime":{"shape":"Date"}, - "LatestDigestDeliveryError":{"shape":"String"}, - "LatestDeliveryAttemptTime":{"shape":"String"}, - "LatestNotificationAttemptTime":{"shape":"String"}, - "LatestNotificationAttemptSucceeded":{"shape":"String"}, - "LatestDeliveryAttemptSucceeded":{"shape":"String"}, - "TimeLoggingStarted":{"shape":"String"}, - "TimeLoggingStopped":{"shape":"String"} - } - }, - "InsufficientEncryptionPolicyException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InsufficientS3BucketPolicyException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InsufficientSnsTopicPolicyException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidCloudWatchLogsLogGroupArnException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidCloudWatchLogsRoleArnException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidHomeRegionException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidKmsKeyIdException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidLookupAttributesException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidMaxResultsException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidNextTokenException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidParameterCombinationException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidS3BucketNameException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidS3PrefixException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidSnsTopicNameException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidTagParameterException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidTimeRangeException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidTokenException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidTrailNameException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "KmsKeyDisabledException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "KmsKeyNotFoundException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "ListPublicKeysRequest":{ - "type":"structure", - "members":{ - "StartTime":{"shape":"Date"}, - "EndTime":{"shape":"Date"}, - "NextToken":{"shape":"String"} - } - }, - "ListPublicKeysResponse":{ - "type":"structure", - "members":{ - "PublicKeyList":{"shape":"PublicKeyList"}, - "NextToken":{"shape":"String"} - } - }, - "ListTagsRequest":{ - "type":"structure", - "required":["ResourceIdList"], - "members":{ - "ResourceIdList":{"shape":"ResourceIdList"}, - "NextToken":{"shape":"String"} - } - }, - "ListTagsResponse":{ - "type":"structure", - "members":{ - "ResourceTagList":{"shape":"ResourceTagList"}, - "NextToken":{"shape":"String"} - } - }, - "LookupAttribute":{ - "type":"structure", - "required":[ - "AttributeKey", - "AttributeValue" - ], - "members":{ - "AttributeKey":{"shape":"LookupAttributeKey"}, - "AttributeValue":{"shape":"String"} - } - }, - "LookupAttributeKey":{ - "type":"string", - "enum":[ - "EventId", - "EventName", - "Username", - "ResourceType", - "ResourceName" - ] - }, - "LookupAttributesList":{ - "type":"list", - "member":{"shape":"LookupAttribute"} - }, - "LookupEventsRequest":{ - "type":"structure", - "members":{ - "LookupAttributes":{"shape":"LookupAttributesList"}, - "StartTime":{"shape":"Date"}, - "EndTime":{"shape":"Date"}, - "MaxResults":{"shape":"MaxResults"}, - "NextToken":{"shape":"NextToken"} - } - }, - "LookupEventsResponse":{ - "type":"structure", - "members":{ - "Events":{"shape":"EventsList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "MaxResults":{ - "type":"integer", - "max":50, - "min":1 - }, - "MaximumNumberOfTrailsExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "NextToken":{"type":"string"}, - "OperationNotPermittedException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "PublicKey":{ - "type":"structure", - "members":{ - "Value":{"shape":"ByteBuffer"}, - "ValidityStartTime":{"shape":"Date"}, - "ValidityEndTime":{"shape":"Date"}, - "Fingerprint":{"shape":"String"} - } - }, - "PublicKeyList":{ - "type":"list", - "member":{"shape":"PublicKey"} - }, - "RemoveTagsRequest":{ - "type":"structure", - "required":["ResourceId"], - "members":{ - "ResourceId":{"shape":"String"}, - "TagsList":{"shape":"TagsList"} - } - }, - "RemoveTagsResponse":{ - "type":"structure", - "members":{ - } - }, - "Resource":{ - "type":"structure", - "members":{ - "ResourceType":{"shape":"String"}, - "ResourceName":{"shape":"String"} - } - }, - "ResourceIdList":{ - "type":"list", - "member":{"shape":"String"} - }, - "ResourceList":{ - "type":"list", - "member":{"shape":"Resource"} - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "ResourceTag":{ - "type":"structure", - "members":{ - "ResourceId":{"shape":"String"}, - "TagsList":{"shape":"TagsList"} - } - }, - "ResourceTagList":{ - "type":"list", - "member":{"shape":"ResourceTag"} - }, - "ResourceTypeNotSupportedException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "S3BucketDoesNotExistException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "StartLoggingRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"String"} - } - }, - "StartLoggingResponse":{ - "type":"structure", - "members":{ - } - }, - "StopLoggingRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"String"} - } - }, - "StopLoggingResponse":{ - "type":"structure", - "members":{ - } - }, - "String":{"type":"string"}, - "Tag":{ - "type":"structure", - "required":["Key"], - "members":{ - "Key":{"shape":"String"}, - "Value":{"shape":"String"} - } - }, - "TagsLimitExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "TagsList":{ - "type":"list", - "member":{"shape":"Tag"} - }, - "Trail":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "S3BucketName":{"shape":"String"}, - "S3KeyPrefix":{"shape":"String"}, - "SnsTopicName":{ - "shape":"String", - "deprecated":true - }, - "SnsTopicARN":{"shape":"String"}, - "IncludeGlobalServiceEvents":{"shape":"Boolean"}, - "IsMultiRegionTrail":{"shape":"Boolean"}, - "HomeRegion":{"shape":"String"}, - "TrailARN":{"shape":"String"}, - "LogFileValidationEnabled":{"shape":"Boolean"}, - "CloudWatchLogsLogGroupArn":{"shape":"String"}, - "CloudWatchLogsRoleArn":{"shape":"String"}, - "KmsKeyId":{"shape":"String"} - } - }, - "TrailAlreadyExistsException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "TrailList":{ - "type":"list", - "member":{"shape":"Trail"} - }, - "TrailNameList":{ - "type":"list", - "member":{"shape":"String"} - }, - "TrailNotFoundException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "TrailNotProvidedException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "UnsupportedOperationException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "UpdateTrailRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"String"}, - "S3BucketName":{"shape":"String"}, - "S3KeyPrefix":{"shape":"String"}, - "SnsTopicName":{"shape":"String"}, - "IncludeGlobalServiceEvents":{"shape":"Boolean"}, - "IsMultiRegionTrail":{"shape":"Boolean"}, - "EnableLogFileValidation":{"shape":"Boolean"}, - "CloudWatchLogsLogGroupArn":{"shape":"String"}, - "CloudWatchLogsRoleArn":{"shape":"String"}, - "KmsKeyId":{"shape":"String"} - } - }, - "UpdateTrailResponse":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "S3BucketName":{"shape":"String"}, - "S3KeyPrefix":{"shape":"String"}, - "SnsTopicName":{ - "shape":"String", - "deprecated":true - }, - "SnsTopicARN":{"shape":"String"}, - "IncludeGlobalServiceEvents":{"shape":"Boolean"}, - "IsMultiRegionTrail":{"shape":"Boolean"}, - "TrailARN":{"shape":"String"}, - "LogFileValidationEnabled":{"shape":"Boolean"}, - "CloudWatchLogsLogGroupArn":{"shape":"String"}, - "CloudWatchLogsRoleArn":{"shape":"String"}, - "KmsKeyId":{"shape":"String"} - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/docs-2.json deleted file mode 100644 index 8795da3ad..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/docs-2.json +++ /dev/null @@ -1,543 +0,0 @@ -{ - "version": "2.0", - "service": "AWS CloudTrail

    This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.

    CloudTrail is a web service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the AWS API call, the source IP address, the request parameters, and the response elements returned by the service.

    As an alternative to the API, you can use one of the AWS SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWSCloudTrail. For example, the SDKs take care of cryptographically signing requests, managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page.

    See the CloudTrail User Guide for information about the data that is included with each AWS API call listed in the log files.

    ", - "operations": { - "AddTags": "

    Adds one or more tags to a trail, up to a limit of 10. Tags must be unique per trail. Overwrites an existing tag's value when a new value is specified for an existing tag key. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail that applies to all regions only from the region in which the trail was created (that is, from its home region).

    ", - "CreateTrail": "

    Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. A maximum of five trails can exist in a region, irrespective of the region in which they were created.

    ", - "DeleteTrail": "

    Deletes a trail. This operation must be called from the region in which the trail was created. DeleteTrail cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.

    ", - "DescribeTrails": "

    Retrieves settings for the trail associated with the current region for your account.

    ", - "GetTrailStatus": "

    Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.

    ", - "ListPublicKeys": "

    Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.

    CloudTrail uses different private/public key pairs per region. Each digest file is signed with a private key unique to its region. Therefore, when you validate a digest file from a particular region, you must look in the same region for its corresponding public key.

    ", - "ListTags": "

    Lists the tags for the trail in the current region.

    ", - "LookupEvents": "

    Looks up API activity events captured by CloudTrail that create, update, or delete resources in your account. Events for a region can be looked up for the times in which you had CloudTrail turned on in that region during the last seven days. Lookup supports five different attributes: time range (defined by a start time and end time), user name, event name, resource type, and resource name. All attributes are optional. The maximum number of attributes that can be specified in any one lookup request are time range and one other attribute. The default number of results returned is 10, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.

    The rate of lookup requests is limited to one per second per account. If this limit is exceeded, a throttling error occurs.

    Events that occurred during the selected time range will not be available for lookup if CloudTrail logging was not enabled when the events occurred.

    ", - "RemoveTags": "

    Removes the specified tags from a trail.

    ", - "StartLogging": "

    Starts the recording of AWS API calls and log file delivery for a trail. For a trail that is enabled in all regions, this operation must be called from the region in which the trail was created. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.

    ", - "StopLogging": "

    Suspends the recording of AWS API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording. For a trail enabled in all regions, this operation must be called from the region in which the trail was created, or an InvalidHomeRegionException will occur. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail enabled in all regions.

    ", - "UpdateTrail": "

    Updates the settings that specify delivery of log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket. UpdateTrail must be called from the region in which the trail was created; otherwise, an InvalidHomeRegionException is thrown.

    " - }, - "shapes": { - "AddTagsRequest": { - "base": "

    Specifies the tags to add to a trail.

    ", - "refs": { - } - }, - "AddTagsResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - }, - "Boolean": { - "base": null, - "refs": { - "CreateTrailRequest$IncludeGlobalServiceEvents": "

    Specifies whether the trail is publishing events from global services such as IAM to the log files.

    ", - "CreateTrailRequest$IsMultiRegionTrail": "

    Specifies whether the trail is created in the current region or in all regions. The default is false.

    ", - "CreateTrailRequest$EnableLogFileValidation": "

    Specifies whether log file integrity validation is enabled. The default is false.

    When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail will not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.

    ", - "CreateTrailResponse$IncludeGlobalServiceEvents": "

    Specifies whether the trail is publishing events from global services such as IAM to the log files.

    ", - "CreateTrailResponse$IsMultiRegionTrail": "

    Specifies whether the trail exists in one region or in all regions.

    ", - "CreateTrailResponse$LogFileValidationEnabled": "

    Specifies whether log file integrity validation is enabled.

    ", - "DescribeTrailsRequest$includeShadowTrails": "

    Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region. The default is true.

    ", - "GetTrailStatusResponse$IsLogging": "

    Whether the CloudTrail is currently logging AWS API calls.

    ", - "Trail$IncludeGlobalServiceEvents": "

    Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False.

    ", - "Trail$IsMultiRegionTrail": "

    Specifies whether the trail belongs only to one region or exists in all regions.

    ", - "Trail$LogFileValidationEnabled": "

    Specifies whether log file validation is enabled.

    ", - "UpdateTrailRequest$IncludeGlobalServiceEvents": "

    Specifies whether the trail is publishing events from global services such as IAM to the log files.

    ", - "UpdateTrailRequest$IsMultiRegionTrail": "

    Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted.

    ", - "UpdateTrailRequest$EnableLogFileValidation": "

    Specifies whether log file validation is enabled. The default is false.

    When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail will not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.

    ", - "UpdateTrailResponse$IncludeGlobalServiceEvents": "

    Specifies whether the trail is publishing events from global services such as IAM to the log files.

    ", - "UpdateTrailResponse$IsMultiRegionTrail": "

    Specifies whether the trail exists in one region or in all regions.

    ", - "UpdateTrailResponse$LogFileValidationEnabled": "

    Specifies whether log file integrity validation is enabled.

    " - } - }, - "ByteBuffer": { - "base": null, - "refs": { - "PublicKey$Value": "

    The DER encoded public key value in PKCS#1 format.

    " - } - }, - "CloudTrailARNInvalidException": { - "base": "

    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-1:123456789012:trail/MyTrail

    ", - "refs": { - } - }, - "CloudWatchLogsDeliveryUnavailableException": { - "base": "

    Cannot set a CloudWatch Logs delivery for this region.

    ", - "refs": { - } - }, - "CreateTrailRequest": { - "base": "

    Specifies the settings for each trail.

    ", - "refs": { - } - }, - "CreateTrailResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - }, - "Date": { - "base": null, - "refs": { - "Event$EventTime": "

    The date and time of the event returned.

    ", - "GetTrailStatusResponse$LatestDeliveryTime": "

    Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.

    ", - "GetTrailStatusResponse$LatestNotificationTime": "

    Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file to an account's Amazon S3 bucket.

    ", - "GetTrailStatusResponse$StartLoggingTime": "

    Specifies the most recent date and time when CloudTrail started recording API calls for an AWS account.

    ", - "GetTrailStatusResponse$StopLoggingTime": "

    Specifies the most recent date and time when CloudTrail stopped recording API calls for an AWS account.

    ", - "GetTrailStatusResponse$LatestCloudWatchLogsDeliveryTime": "

    Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.

    ", - "GetTrailStatusResponse$LatestDigestDeliveryTime": "

    Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.

    ", - "ListPublicKeysRequest$StartTime": "

    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.

    ", - "ListPublicKeysRequest$EndTime": "

    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.

    ", - "LookupEventsRequest$StartTime": "

    Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.

    ", - "LookupEventsRequest$EndTime": "

    Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.

    ", - "PublicKey$ValidityStartTime": "

    The starting time of validity of the public key.

    ", - "PublicKey$ValidityEndTime": "

    The ending time of validity of the public key.

    " - } - }, - "DeleteTrailRequest": { - "base": "

    The request that specifies the name of a trail to delete.

    ", - "refs": { - } - }, - "DeleteTrailResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - }, - "DescribeTrailsRequest": { - "base": "

    Returns information about the trail.

    ", - "refs": { - } - }, - "DescribeTrailsResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - }, - "Event": { - "base": "

    Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.

    ", - "refs": { - "EventsList$member": null - } - }, - "EventsList": { - "base": null, - "refs": { - "LookupEventsResponse$Events": "

    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.

    " - } - }, - "GetTrailStatusRequest": { - "base": "

    The name of a trail about which you want the current status.

    ", - "refs": { - } - }, - "GetTrailStatusResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - }, - "InsufficientEncryptionPolicyException": { - "base": "

    This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.

    ", - "refs": { - } - }, - "InsufficientS3BucketPolicyException": { - "base": "

    This exception is thrown when the policy on the S3 bucket is not sufficient.

    ", - "refs": { - } - }, - "InsufficientSnsTopicPolicyException": { - "base": "

    This exception is thrown when the policy on the SNS topic is not sufficient.

    ", - "refs": { - } - }, - "InvalidCloudWatchLogsLogGroupArnException": { - "base": "

    This exception is thrown when the provided CloudWatch log group is not valid.

    ", - "refs": { - } - }, - "InvalidCloudWatchLogsRoleArnException": { - "base": "

    This exception is thrown when the provided role is not valid.

    ", - "refs": { - } - }, - "InvalidHomeRegionException": { - "base": "

    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.

    ", - "refs": { - } - }, - "InvalidKmsKeyIdException": { - "base": "

    This exception is thrown when the KMS key ARN is invalid.

    ", - "refs": { - } - }, - "InvalidLookupAttributesException": { - "base": "

    Occurs when an invalid lookup attribute is specified.

    ", - "refs": { - } - }, - "InvalidMaxResultsException": { - "base": "

    This exception is thrown if the limit specified is invalid.

    ", - "refs": { - } - }, - "InvalidNextTokenException": { - "base": "

    Invalid token or token that was previously used in a request with different parameters. This exception is thrown if the token is invalid.

    ", - "refs": { - } - }, - "InvalidParameterCombinationException": { - "base": "

    This exception is thrown when the combination of parameters provided is not valid.

    ", - "refs": { - } - }, - "InvalidS3BucketNameException": { - "base": "

    This exception is thrown when the provided S3 bucket name is not valid.

    ", - "refs": { - } - }, - "InvalidS3PrefixException": { - "base": "

    This exception is thrown when the provided S3 prefix is not valid.

    ", - "refs": { - } - }, - "InvalidSnsTopicNameException": { - "base": "

    This exception is thrown when the provided SNS topic name is not valid.

    ", - "refs": { - } - }, - "InvalidTagParameterException": { - "base": "

    This exception is thrown when the key or value specified for the tag does not match the regular expression ^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$.

    ", - "refs": { - } - }, - "InvalidTimeRangeException": { - "base": "

    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.

    ", - "refs": { - } - }, - "InvalidTokenException": { - "base": "

    Reserved for future use.

    ", - "refs": { - } - }, - "InvalidTrailNameException": { - "base": "

    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)

    ", - "refs": { - } - }, - "KmsKeyDisabledException": { - "base": "

    This exception is thrown when the KMS key is disabled.

    ", - "refs": { - } - }, - "KmsKeyNotFoundException": { - "base": "

    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.

    ", - "refs": { - } - }, - "ListPublicKeysRequest": { - "base": "

    Requests the public keys for a specified time range.

    ", - "refs": { - } - }, - "ListPublicKeysResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - }, - "ListTagsRequest": { - "base": "

    Specifies a list of trail tags to return.

    ", - "refs": { - } - }, - "ListTagsResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - }, - "LookupAttribute": { - "base": "

    Specifies an attribute and value that filter the events returned.

    ", - "refs": { - "LookupAttributesList$member": null - } - }, - "LookupAttributeKey": { - "base": null, - "refs": { - "LookupAttribute$AttributeKey": "

    Specifies an attribute on which to filter the events returned.

    " - } - }, - "LookupAttributesList": { - "base": null, - "refs": { - "LookupEventsRequest$LookupAttributes": "

    Contains a list of lookup attributes. Currently the list can contain only one item.

    " - } - }, - "LookupEventsRequest": { - "base": "

    Contains a request for LookupEvents.

    ", - "refs": { - } - }, - "LookupEventsResponse": { - "base": "

    Contains a response to a LookupEvents action.

    ", - "refs": { - } - }, - "MaxResults": { - "base": null, - "refs": { - "LookupEventsRequest$MaxResults": "

    The number of events to return. Possible values are 1 through 50. The default is 10.

    " - } - }, - "MaximumNumberOfTrailsExceededException": { - "base": "

    This exception is thrown when the maximum number of trails is reached.

    ", - "refs": { - } - }, - "NextToken": { - "base": null, - "refs": { - "LookupEventsRequest$NextToken": "

    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.

    ", - "LookupEventsResponse$NextToken": "

    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.

    " - } - }, - "OperationNotPermittedException": { - "base": "

    This exception is thrown when the requested operation is not permitted.

    ", - "refs": { - } - }, - "PublicKey": { - "base": "

    Contains information about a returned public key.

    ", - "refs": { - "PublicKeyList$member": null - } - }, - "PublicKeyList": { - "base": null, - "refs": { - "ListPublicKeysResponse$PublicKeyList": "

    Contains an array of PublicKey objects.

    The returned public keys may have validity time ranges that overlap.

    " - } - }, - "RemoveTagsRequest": { - "base": "

    Specifies the tags to remove from a trail.

    ", - "refs": { - } - }, - "RemoveTagsResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - }, - "Resource": { - "base": "

    Specifies the type and name of a resource referenced by an event.

    ", - "refs": { - "ResourceList$member": null - } - }, - "ResourceIdList": { - "base": null, - "refs": { - "ListTagsRequest$ResourceIdList": "

    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-1:123456789012:trail/MyTrail

    " - } - }, - "ResourceList": { - "base": "

    A list of resources referenced by the event returned.

    ", - "refs": { - "Event$Resources": "

    A list of resources referenced by the event returned.

    " - } - }, - "ResourceNotFoundException": { - "base": "

    This exception is thrown when the specified resource is not found.

    ", - "refs": { - } - }, - "ResourceTag": { - "base": "

    A resource tag.

    ", - "refs": { - "ResourceTagList$member": null - } - }, - "ResourceTagList": { - "base": "

    A list of resource tags.

    ", - "refs": { - "ListTagsResponse$ResourceTagList": null - } - }, - "ResourceTypeNotSupportedException": { - "base": "

    This exception is thrown when the specified resource type is not supported by CloudTrail.

    ", - "refs": { - } - }, - "S3BucketDoesNotExistException": { - "base": "

    This exception is thrown when the specified S3 bucket does not exist.

    ", - "refs": { - } - }, - "StartLoggingRequest": { - "base": "

    The request to CloudTrail to start logging AWS API calls for an account.

    ", - "refs": { - } - }, - "StartLoggingResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - }, - "StopLoggingRequest": { - "base": "

    Passes the request to CloudTrail to stop logging AWS API calls for the specified account.

    ", - "refs": { - } - }, - "StopLoggingResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "AddTagsRequest$ResourceId": "

    Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    ", - "CreateTrailRequest$Name": "

    Specifies the name of the trail. The name 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)

    ", - "CreateTrailRequest$S3BucketName": "

    Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.

    ", - "CreateTrailRequest$S3KeyPrefix": "

    Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.

    ", - "CreateTrailRequest$SnsTopicName": "

    Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.

    ", - "CreateTrailRequest$CloudWatchLogsLogGroupArn": "

    Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.

    ", - "CreateTrailRequest$CloudWatchLogsRoleArn": "

    Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

    ", - "CreateTrailRequest$KmsKeyId": "

    Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be a an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.

    Examples:

    • alias/MyAliasName

    • arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

    • arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • 12345678-1234-1234-1234-123456789012

    ", - "CreateTrailResponse$Name": "

    Specifies the name of the trail.

    ", - "CreateTrailResponse$S3BucketName": "

    Specifies the name of the Amazon S3 bucket designated for publishing log files.

    ", - "CreateTrailResponse$S3KeyPrefix": "

    Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.

    ", - "CreateTrailResponse$SnsTopicName": "

    Specifies the name of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered.

    ", - "CreateTrailResponse$SnsTopicARN": "

    Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:

    arn:aws:sns:us-east-1:123456789012:MyTopic

    ", - "CreateTrailResponse$TrailARN": "

    Specifies the ARN of the trail that was created. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    ", - "CreateTrailResponse$CloudWatchLogsLogGroupArn": "

    Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.

    ", - "CreateTrailResponse$CloudWatchLogsRoleArn": "

    Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

    ", - "CreateTrailResponse$KmsKeyId": "

    Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:

    arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    ", - "DeleteTrailRequest$Name": "

    Specifies the name or the CloudTrail ARN of the trail to be deleted. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    ", - "Event$EventId": "

    The CloudTrail ID of the event returned.

    ", - "Event$EventName": "

    The name of the event returned.

    ", - "Event$Username": "

    A user name or role name of the requester that called the API in the event returned.

    ", - "Event$CloudTrailEvent": "

    A JSON string that contains a representation of the event returned.

    ", - "GetTrailStatusRequest$Name": "

    Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a shadow trail (a replication of the trail in another region), you must specify its ARN. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    ", - "GetTrailStatusResponse$LatestDeliveryError": "

    Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files to the designated bucket. For more information see the topic Error Responses in the Amazon S3 API Reference.

    This error occurs only when there is a problem with the destination S3 bucket and will not occur for timeouts. To resolve the issue, create a new bucket and call UpdateTrail to specify the new bucket, or fix the existing objects so that CloudTrail can again write to the bucket.

    ", - "GetTrailStatusResponse$LatestNotificationError": "

    Displays any Amazon SNS error that CloudTrail encountered when attempting to send a notification. For more information about Amazon SNS errors, see the Amazon SNS Developer Guide.

    ", - "GetTrailStatusResponse$LatestCloudWatchLogsDeliveryError": "

    Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.

    ", - "GetTrailStatusResponse$LatestDigestDeliveryError": "

    Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver a digest file to the designated bucket. For more information see the topic Error Responses in the Amazon S3 API Reference.

    This error occurs only when there is a problem with the destination S3 bucket and will not occur for timeouts. To resolve the issue, create a new bucket and call UpdateTrail to specify the new bucket, or fix the existing objects so that CloudTrail can again write to the bucket.

    ", - "GetTrailStatusResponse$LatestDeliveryAttemptTime": "

    This field is deprecated.

    ", - "GetTrailStatusResponse$LatestNotificationAttemptTime": "

    This field is deprecated.

    ", - "GetTrailStatusResponse$LatestNotificationAttemptSucceeded": "

    This field is deprecated.

    ", - "GetTrailStatusResponse$LatestDeliveryAttemptSucceeded": "

    This field is deprecated.

    ", - "GetTrailStatusResponse$TimeLoggingStarted": "

    This field is deprecated.

    ", - "GetTrailStatusResponse$TimeLoggingStopped": "

    This field is deprecated.

    ", - "ListPublicKeysRequest$NextToken": "

    Reserved for future use.

    ", - "ListPublicKeysResponse$NextToken": "

    Reserved for future use.

    ", - "ListTagsRequest$NextToken": "

    Reserved for future use.

    ", - "ListTagsResponse$NextToken": "

    Reserved for future use.

    ", - "LookupAttribute$AttributeValue": "

    Specifies a value for the specified AttributeKey.

    ", - "PublicKey$Fingerprint": "

    The fingerprint of the public key.

    ", - "RemoveTagsRequest$ResourceId": "

    Specifies the ARN of the trail from which tags should be removed. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    ", - "Resource$ResourceType": "

    The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup.

    ", - "Resource$ResourceName": "

    The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be \"auto-scaling-test-group\" for an Auto Scaling Group or \"i-1234567\" for an EC2 Instance.

    ", - "ResourceIdList$member": null, - "ResourceTag$ResourceId": "

    Specifies the ARN of the resource.

    ", - "StartLoggingRequest$Name": "

    Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs AWS API calls. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    ", - "StopLoggingRequest$Name": "

    Specifies the name or the CloudTrail ARN of the trail for which CloudTrail will stop logging AWS API calls. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    ", - "Tag$Key": "

    The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.

    ", - "Tag$Value": "

    The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.

    ", - "Trail$Name": "

    Name of the trail set by calling CreateTrail. The maximum length is 128 characters.

    ", - "Trail$S3BucketName": "

    Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket Naming Requirements.

    ", - "Trail$S3KeyPrefix": "

    Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.The maximum length is 200 characters.

    ", - "Trail$SnsTopicName": "

    Specifies the name of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered.

    ", - "Trail$SnsTopicARN": "

    Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:

    arn:aws:sns:us-east-1:123456789012:MyTopic

    ", - "Trail$HomeRegion": "

    The region in which the trail was created.

    ", - "Trail$TrailARN": "

    Specifies the ARN of the trail. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    ", - "Trail$CloudWatchLogsLogGroupArn": "

    Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.

    ", - "Trail$CloudWatchLogsRoleArn": "

    Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

    ", - "Trail$KmsKeyId": "

    Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:

    arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    ", - "TrailNameList$member": null, - "UpdateTrailRequest$Name": "

    Specifies the name of the trail or trail ARN. If Name is a trail name, the string 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)

    If Name is a trail ARN, it must be in the format:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    ", - "UpdateTrailRequest$S3BucketName": "

    Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.

    ", - "UpdateTrailRequest$S3KeyPrefix": "

    Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.

    ", - "UpdateTrailRequest$SnsTopicName": "

    Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.

    ", - "UpdateTrailRequest$CloudWatchLogsLogGroupArn": "

    Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.

    ", - "UpdateTrailRequest$CloudWatchLogsRoleArn": "

    Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

    ", - "UpdateTrailRequest$KmsKeyId": "

    Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be a an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.

    Examples:

    • alias/MyAliasName

    • arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

    • arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • 12345678-1234-1234-1234-123456789012

    ", - "UpdateTrailResponse$Name": "

    Specifies the name of the trail.

    ", - "UpdateTrailResponse$S3BucketName": "

    Specifies the name of the Amazon S3 bucket designated for publishing log files.

    ", - "UpdateTrailResponse$S3KeyPrefix": "

    Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.

    ", - "UpdateTrailResponse$SnsTopicName": "

    Specifies the name of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered.

    ", - "UpdateTrailResponse$SnsTopicARN": "

    Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:

    arn:aws:sns:us-east-1:123456789012:MyTopic

    ", - "UpdateTrailResponse$TrailARN": "

    Specifies the ARN of the trail that was updated. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    ", - "UpdateTrailResponse$CloudWatchLogsLogGroupArn": "

    Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.

    ", - "UpdateTrailResponse$CloudWatchLogsRoleArn": "

    Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

    ", - "UpdateTrailResponse$KmsKeyId": "

    Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:

    arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    " - } - }, - "Tag": { - "base": "

    A custom key-value pair associated with a resource such as a CloudTrail trail.

    ", - "refs": { - "TagsList$member": null - } - }, - "TagsLimitExceededException": { - "base": "

    The number of tags per trail has exceeded the permitted amount. Currently, the limit is 10.

    ", - "refs": { - } - }, - "TagsList": { - "base": "

    A list of tags.

    ", - "refs": { - "AddTagsRequest$TagsList": "

    Contains a list of CloudTrail tags, up to a limit of 10.

    ", - "RemoveTagsRequest$TagsList": "

    Specifies a list of tags to be removed.

    ", - "ResourceTag$TagsList": null - } - }, - "Trail": { - "base": "

    The settings for a trail.

    ", - "refs": { - "TrailList$member": null - } - }, - "TrailAlreadyExistsException": { - "base": "

    This exception is thrown when the specified trail already exists.

    ", - "refs": { - } - }, - "TrailList": { - "base": null, - "refs": { - "DescribeTrailsResponse$trailList": "

    The list of trail objects.

    " - } - }, - "TrailNameList": { - "base": null, - "refs": { - "DescribeTrailsRequest$trailNameList": "

    Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

    If an empty list is specified, information for the trail in the current region is returned.

    • If an empty list is specified and IncludeShadowTrails is false, then information for all trails in the current region is returned.

    • If an empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current region and any associated shadow trails in other regions is returned.

    If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current region. To return information about a trail in another region, you must specify its trail ARN.

    " - } - }, - "TrailNotFoundException": { - "base": "

    This exception is thrown when the trail with the given name is not found.

    ", - "refs": { - } - }, - "TrailNotProvidedException": { - "base": "

    This exception is deprecated.

    ", - "refs": { - } - }, - "UnsupportedOperationException": { - "base": "

    This exception is thrown when the requested operation is not supported.

    ", - "refs": { - } - }, - "UpdateTrailRequest": { - "base": "

    Specifies settings to update for the trail.

    ", - "refs": { - } - }, - "UpdateTrailResponse": { - "base": "

    Returns the objects or data listed below if successful. Otherwise, returns an error.

    ", - "refs": { - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/api-2.json deleted file mode 100644 index 0dde5d30f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/api-2.json +++ /dev/null @@ -1,916 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-04-13", - "endpointPrefix":"codecommit", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"CodeCommit", - "serviceFullName":"AWS CodeCommit", - "signatureVersion":"v4", - "targetPrefix":"CodeCommit_20150413" - }, - "operations":{ - "BatchGetRepositories":{ - "name":"BatchGetRepositories", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"BatchGetRepositoriesInput"}, - "output":{"shape":"BatchGetRepositoriesOutput"}, - "errors":[ - {"shape":"RepositoryNamesRequiredException"}, - {"shape":"MaximumRepositoryNamesExceededException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "CreateBranch":{ - "name":"CreateBranch", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateBranchInput"}, - "errors":[ - {"shape":"RepositoryNameRequiredException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"BranchNameRequiredException"}, - {"shape":"BranchNameExistsException"}, - {"shape":"InvalidBranchNameException"}, - {"shape":"CommitIdRequiredException"}, - {"shape":"CommitDoesNotExistException"}, - {"shape":"InvalidCommitIdException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "CreateRepository":{ - "name":"CreateRepository", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateRepositoryInput"}, - "output":{"shape":"CreateRepositoryOutput"}, - "errors":[ - {"shape":"RepositoryNameExistsException"}, - {"shape":"RepositoryNameRequiredException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"InvalidRepositoryDescriptionException"}, - {"shape":"RepositoryLimitExceededException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "DeleteRepository":{ - "name":"DeleteRepository", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRepositoryInput"}, - "output":{"shape":"DeleteRepositoryOutput"}, - "errors":[ - {"shape":"RepositoryNameRequiredException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "GetBranch":{ - "name":"GetBranch", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetBranchInput"}, - "output":{"shape":"GetBranchOutput"}, - "errors":[ - {"shape":"RepositoryNameRequiredException"}, - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"BranchNameRequiredException"}, - {"shape":"InvalidBranchNameException"}, - {"shape":"BranchDoesNotExistException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "GetCommit":{ - "name":"GetCommit", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetCommitInput"}, - "output":{"shape":"GetCommitOutput"}, - "errors":[ - {"shape":"RepositoryNameRequiredException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"CommitIdRequiredException"}, - {"shape":"InvalidCommitIdException"}, - {"shape":"CommitIdDoesNotExistException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "GetRepository":{ - "name":"GetRepository", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetRepositoryInput"}, - "output":{"shape":"GetRepositoryOutput"}, - "errors":[ - {"shape":"RepositoryNameRequiredException"}, - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "GetRepositoryTriggers":{ - "name":"GetRepositoryTriggers", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetRepositoryTriggersInput"}, - "output":{"shape":"GetRepositoryTriggersOutput"}, - "errors":[ - {"shape":"RepositoryNameRequiredException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "ListBranches":{ - "name":"ListBranches", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListBranchesInput"}, - "output":{"shape":"ListBranchesOutput"}, - "errors":[ - {"shape":"RepositoryNameRequiredException"}, - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"}, - {"shape":"InvalidContinuationTokenException"} - ] - }, - "ListRepositories":{ - "name":"ListRepositories", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRepositoriesInput"}, - "output":{"shape":"ListRepositoriesOutput"}, - "errors":[ - {"shape":"InvalidSortByException"}, - {"shape":"InvalidOrderException"}, - {"shape":"InvalidContinuationTokenException"} - ] - }, - "PutRepositoryTriggers":{ - "name":"PutRepositoryTriggers", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutRepositoryTriggersInput"}, - "output":{"shape":"PutRepositoryTriggersOutput"}, - "errors":[ - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"RepositoryNameRequiredException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"RepositoryTriggersListRequiredException"}, - {"shape":"MaximumRepositoryTriggersExceededException"}, - {"shape":"InvalidRepositoryTriggerNameException"}, - {"shape":"InvalidRepositoryTriggerDestinationArnException"}, - {"shape":"InvalidRepositoryTriggerRegionException"}, - {"shape":"InvalidRepositoryTriggerCustomDataException"}, - {"shape":"MaximumBranchesExceededException"}, - {"shape":"InvalidRepositoryTriggerBranchNameException"}, - {"shape":"InvalidRepositoryTriggerEventsException"}, - {"shape":"RepositoryTriggerNameRequiredException"}, - {"shape":"RepositoryTriggerDestinationArnRequiredException"}, - {"shape":"RepositoryTriggerBranchNameListRequiredException"}, - {"shape":"RepositoryTriggerEventsListRequiredException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "TestRepositoryTriggers":{ - "name":"TestRepositoryTriggers", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"TestRepositoryTriggersInput"}, - "output":{"shape":"TestRepositoryTriggersOutput"}, - "errors":[ - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"RepositoryNameRequiredException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"RepositoryTriggersListRequiredException"}, - {"shape":"MaximumRepositoryTriggersExceededException"}, - {"shape":"InvalidRepositoryTriggerNameException"}, - {"shape":"InvalidRepositoryTriggerDestinationArnException"}, - {"shape":"InvalidRepositoryTriggerRegionException"}, - {"shape":"InvalidRepositoryTriggerCustomDataException"}, - {"shape":"MaximumBranchesExceededException"}, - {"shape":"InvalidRepositoryTriggerBranchNameException"}, - {"shape":"InvalidRepositoryTriggerEventsException"}, - {"shape":"RepositoryTriggerNameRequiredException"}, - {"shape":"RepositoryTriggerDestinationArnRequiredException"}, - {"shape":"RepositoryTriggerBranchNameListRequiredException"}, - {"shape":"RepositoryTriggerEventsListRequiredException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "UpdateDefaultBranch":{ - "name":"UpdateDefaultBranch", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateDefaultBranchInput"}, - "errors":[ - {"shape":"RepositoryNameRequiredException"}, - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"BranchNameRequiredException"}, - {"shape":"InvalidBranchNameException"}, - {"shape":"BranchDoesNotExistException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "UpdateRepositoryDescription":{ - "name":"UpdateRepositoryDescription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateRepositoryDescriptionInput"}, - "errors":[ - {"shape":"RepositoryNameRequiredException"}, - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"InvalidRepositoryNameException"}, - {"shape":"InvalidRepositoryDescriptionException"}, - {"shape":"EncryptionIntegrityChecksFailedException"}, - {"shape":"EncryptionKeyAccessDeniedException"}, - {"shape":"EncryptionKeyDisabledException"}, - {"shape":"EncryptionKeyNotFoundException"}, - {"shape":"EncryptionKeyUnavailableException"} - ] - }, - "UpdateRepositoryName":{ - "name":"UpdateRepositoryName", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateRepositoryNameInput"}, - "errors":[ - {"shape":"RepositoryDoesNotExistException"}, - {"shape":"RepositoryNameExistsException"}, - {"shape":"RepositoryNameRequiredException"}, - {"shape":"InvalidRepositoryNameException"} - ] - } - }, - "shapes":{ - "AccountId":{"type":"string"}, - "AdditionalData":{"type":"string"}, - "Arn":{"type":"string"}, - "BatchGetRepositoriesInput":{ - "type":"structure", - "required":["repositoryNames"], - "members":{ - "repositoryNames":{"shape":"RepositoryNameList"} - } - }, - "BatchGetRepositoriesOutput":{ - "type":"structure", - "members":{ - "repositories":{"shape":"RepositoryMetadataList"}, - "repositoriesNotFound":{"shape":"RepositoryNotFoundList"} - } - }, - "BranchDoesNotExistException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "BranchInfo":{ - "type":"structure", - "members":{ - "branchName":{"shape":"BranchName"}, - "commitId":{"shape":"CommitId"} - } - }, - "BranchName":{ - "type":"string", - "max":100, - "min":1 - }, - "BranchNameExistsException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "BranchNameList":{ - "type":"list", - "member":{"shape":"BranchName"} - }, - "BranchNameRequiredException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "CloneUrlHttp":{"type":"string"}, - "CloneUrlSsh":{"type":"string"}, - "Commit":{ - "type":"structure", - "members":{ - "treeId":{"shape":"ObjectId"}, - "parents":{"shape":"ParentList"}, - "message":{"shape":"Message"}, - "author":{"shape":"UserInfo"}, - "committer":{"shape":"UserInfo"}, - "additionalData":{"shape":"AdditionalData"} - } - }, - "CommitDoesNotExistException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "CommitId":{"type":"string"}, - "CommitIdDoesNotExistException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "CommitIdRequiredException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "CreateBranchInput":{ - "type":"structure", - "required":[ - "repositoryName", - "branchName", - "commitId" - ], - "members":{ - "repositoryName":{"shape":"RepositoryName"}, - "branchName":{"shape":"BranchName"}, - "commitId":{"shape":"CommitId"} - } - }, - "CreateRepositoryInput":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "repositoryName":{"shape":"RepositoryName"}, - "repositoryDescription":{"shape":"RepositoryDescription"} - } - }, - "CreateRepositoryOutput":{ - "type":"structure", - "members":{ - "repositoryMetadata":{"shape":"RepositoryMetadata"} - } - }, - "CreationDate":{"type":"timestamp"}, - "Date":{"type":"string"}, - "DeleteRepositoryInput":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "repositoryName":{"shape":"RepositoryName"} - } - }, - "DeleteRepositoryOutput":{ - "type":"structure", - "members":{ - "repositoryId":{"shape":"RepositoryId"} - } - }, - "Email":{"type":"string"}, - "EncryptionIntegrityChecksFailedException":{ - "type":"structure", - "members":{ - }, - "exception":true, - "fault":true - }, - "EncryptionKeyAccessDeniedException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "EncryptionKeyDisabledException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "EncryptionKeyNotFoundException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "EncryptionKeyUnavailableException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "GetBranchInput":{ - "type":"structure", - "members":{ - "repositoryName":{"shape":"RepositoryName"}, - "branchName":{"shape":"BranchName"} - } - }, - "GetBranchOutput":{ - "type":"structure", - "members":{ - "branch":{"shape":"BranchInfo"} - } - }, - "GetCommitInput":{ - "type":"structure", - "required":[ - "repositoryName", - "commitId" - ], - "members":{ - "repositoryName":{"shape":"RepositoryName"}, - "commitId":{"shape":"ObjectId"} - } - }, - "GetCommitOutput":{ - "type":"structure", - "required":["commit"], - "members":{ - "commit":{"shape":"Commit"} - } - }, - "GetRepositoryInput":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "repositoryName":{"shape":"RepositoryName"} - } - }, - "GetRepositoryOutput":{ - "type":"structure", - "members":{ - "repositoryMetadata":{"shape":"RepositoryMetadata"} - } - }, - "GetRepositoryTriggersInput":{ - "type":"structure", - "members":{ - "repositoryName":{"shape":"RepositoryName"} - } - }, - "GetRepositoryTriggersOutput":{ - "type":"structure", - "members":{ - "configurationId":{"shape":"RepositoryTriggersConfigurationId"}, - "triggers":{"shape":"RepositoryTriggersList"} - } - }, - "InvalidBranchNameException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidCommitIdException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidContinuationTokenException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidOrderException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidRepositoryDescriptionException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidRepositoryNameException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidRepositoryTriggerBranchNameException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidRepositoryTriggerCustomDataException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidRepositoryTriggerDestinationArnException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidRepositoryTriggerEventsException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidRepositoryTriggerNameException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidRepositoryTriggerRegionException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidSortByException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "LastModifiedDate":{"type":"timestamp"}, - "ListBranchesInput":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "repositoryName":{"shape":"RepositoryName"}, - "nextToken":{"shape":"NextToken"} - } - }, - "ListBranchesOutput":{ - "type":"structure", - "members":{ - "branches":{"shape":"BranchNameList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "ListRepositoriesInput":{ - "type":"structure", - "members":{ - "nextToken":{"shape":"NextToken"}, - "sortBy":{"shape":"SortByEnum"}, - "order":{"shape":"OrderEnum"} - } - }, - "ListRepositoriesOutput":{ - "type":"structure", - "members":{ - "repositories":{"shape":"RepositoryNameIdPairList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "MaximumBranchesExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "MaximumRepositoryNamesExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "MaximumRepositoryTriggersExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "Message":{"type":"string"}, - "Name":{"type":"string"}, - "NextToken":{"type":"string"}, - "ObjectId":{"type":"string"}, - "OrderEnum":{ - "type":"string", - "enum":[ - "ascending", - "descending" - ] - }, - "ParentList":{ - "type":"list", - "member":{"shape":"ObjectId"} - }, - "PutRepositoryTriggersInput":{ - "type":"structure", - "members":{ - "repositoryName":{"shape":"RepositoryName"}, - "triggers":{"shape":"RepositoryTriggersList"} - } - }, - "PutRepositoryTriggersOutput":{ - "type":"structure", - "members":{ - "configurationId":{"shape":"RepositoryTriggersConfigurationId"} - } - }, - "RepositoryDescription":{ - "type":"string", - "max":1000 - }, - "RepositoryDoesNotExistException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RepositoryId":{"type":"string"}, - "RepositoryLimitExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RepositoryMetadata":{ - "type":"structure", - "members":{ - "accountId":{"shape":"AccountId"}, - "repositoryId":{"shape":"RepositoryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "repositoryDescription":{"shape":"RepositoryDescription"}, - "defaultBranch":{"shape":"BranchName"}, - "lastModifiedDate":{"shape":"LastModifiedDate"}, - "creationDate":{"shape":"CreationDate"}, - "cloneUrlHttp":{"shape":"CloneUrlHttp"}, - "cloneUrlSsh":{"shape":"CloneUrlSsh"}, - "Arn":{"shape":"Arn"} - } - }, - "RepositoryMetadataList":{ - "type":"list", - "member":{"shape":"RepositoryMetadata"} - }, - "RepositoryName":{ - "type":"string", - "max":100, - "min":1, - "pattern":"[\\\\w\\\\.-]+" - }, - "RepositoryNameExistsException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RepositoryNameIdPair":{ - "type":"structure", - "members":{ - "repositoryName":{"shape":"RepositoryName"}, - "repositoryId":{"shape":"RepositoryId"} - } - }, - "RepositoryNameIdPairList":{ - "type":"list", - "member":{"shape":"RepositoryNameIdPair"} - }, - "RepositoryNameList":{ - "type":"list", - "member":{"shape":"RepositoryName"} - }, - "RepositoryNameRequiredException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RepositoryNamesRequiredException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RepositoryNotFoundList":{ - "type":"list", - "member":{"shape":"RepositoryName"} - }, - "RepositoryTrigger":{ - "type":"structure", - "members":{ - "name":{"shape":"RepositoryTriggerName"}, - "destinationArn":{"shape":"Arn"}, - "customData":{"shape":"RepositoryTriggerCustomData"}, - "branches":{"shape":"BranchNameList"}, - "events":{"shape":"RepositoryTriggerEventList"} - } - }, - "RepositoryTriggerBranchNameListRequiredException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RepositoryTriggerCustomData":{"type":"string"}, - "RepositoryTriggerDestinationArnRequiredException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RepositoryTriggerEventEnum":{ - "type":"string", - "enum":[ - "all", - "updateReference", - "createReference", - "deleteReference" - ] - }, - "RepositoryTriggerEventList":{ - "type":"list", - "member":{"shape":"RepositoryTriggerEventEnum"} - }, - "RepositoryTriggerEventsListRequiredException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RepositoryTriggerExecutionFailure":{ - "type":"structure", - "members":{ - "trigger":{"shape":"RepositoryTriggerName"}, - "failureMessage":{"shape":"RepositoryTriggerExecutionFailureMessage"} - } - }, - "RepositoryTriggerExecutionFailureList":{ - "type":"list", - "member":{"shape":"RepositoryTriggerExecutionFailure"} - }, - "RepositoryTriggerExecutionFailureMessage":{"type":"string"}, - "RepositoryTriggerName":{"type":"string"}, - "RepositoryTriggerNameList":{ - "type":"list", - "member":{"shape":"RepositoryTriggerName"} - }, - "RepositoryTriggerNameRequiredException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RepositoryTriggersConfigurationId":{"type":"string"}, - "RepositoryTriggersList":{ - "type":"list", - "member":{"shape":"RepositoryTrigger"} - }, - "RepositoryTriggersListRequiredException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "SortByEnum":{ - "type":"string", - "enum":[ - "repositoryName", - "lastModifiedDate" - ] - }, - "TestRepositoryTriggersInput":{ - "type":"structure", - "members":{ - "repositoryName":{"shape":"RepositoryName"}, - "triggers":{"shape":"RepositoryTriggersList"} - } - }, - "TestRepositoryTriggersOutput":{ - "type":"structure", - "members":{ - "successfulExecutions":{"shape":"RepositoryTriggerNameList"}, - "failedExecutions":{"shape":"RepositoryTriggerExecutionFailureList"} - } - }, - "UpdateDefaultBranchInput":{ - "type":"structure", - "required":[ - "repositoryName", - "defaultBranchName" - ], - "members":{ - "repositoryName":{"shape":"RepositoryName"}, - "defaultBranchName":{"shape":"BranchName"} - } - }, - "UpdateRepositoryDescriptionInput":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "repositoryName":{"shape":"RepositoryName"}, - "repositoryDescription":{"shape":"RepositoryDescription"} - } - }, - "UpdateRepositoryNameInput":{ - "type":"structure", - "required":[ - "oldName", - "newName" - ], - "members":{ - "oldName":{"shape":"RepositoryName"}, - "newName":{"shape":"RepositoryName"} - } - }, - "UserInfo":{ - "type":"structure", - "members":{ - "name":{"shape":"Name"}, - "email":{"shape":"Email"}, - "date":{"shape":"Date"} - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/docs-2.json deleted file mode 100644 index 317a852a2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/docs-2.json +++ /dev/null @@ -1,632 +0,0 @@ -{ - "version": "2.0", - "service": "AWS CodeCommit

    This is the AWS CodeCommit API Reference. This reference provides descriptions of the operations and data types for AWS CodeCommit API.

    You can use the AWS CodeCommit API to work with the following objects:

    • Repositories, by calling the following:
      • BatchGetRepositories, which returns information about one or more repositories associated with your AWS account
      • CreateRepository, which creates an AWS CodeCommit repository
      • DeleteRepository, which deletes an AWS CodeCommit repository
      • GetRepository, which returns information about a specified repository
      • ListRepositories, which lists all AWS CodeCommit repositories associated with your AWS account
      • UpdateRepositoryDescription, which sets or updates the description of the repository
      • UpdateRepositoryName, which changes the name of the repository. If you change the name of a repository, no other users of that repository will be able to access it until you send them the new HTTPS or SSH URL to use.
    • Branches, by calling the following:
      • CreateBranch, which creates a new branch in a specified repository
      • GetBranch, which returns information about a specified branch
      • ListBranches, which lists all branches for a specified repository
      • UpdateDefaultBranch, which changes the default branch for a repository
    • Information about committed code in a repository, by calling the following:
      • GetCommit, which returns information about a commit, including commit messages and committer information.
    • Triggers, by calling the following:
      • GetRepositoryTriggers, which returns information about triggers configured for a repository
      • PutRepositoryTriggers, which replaces all triggers for a repository and can be used to create or delete triggers
      • TestRepositoryTriggers, which tests the functionality of a repository trigger by sending data to the trigger target

    For information about how to use AWS CodeCommit, see the AWS CodeCommit User Guide.

    ", - "operations": { - "BatchGetRepositories": "

    Returns information about one or more repositories.

    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 web page could 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 web page.

    ", - "CreateBranch": "

    Creates a new branch in a repository and points the branch to a commit.

    Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.

    ", - "CreateRepository": "

    Creates a new, empty repository.

    ", - "DeleteRepository": "

    Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.

    Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.", - "GetBranch": "

    Returns information about a repository branch, including its name and the last commit ID.

    ", - "GetCommit": "

    Returns information about a commit, including commit message and committer information.

    ", - "GetRepository": "

    Returns information about a 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 web page could 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 web page.

    ", - "GetRepositoryTriggers": "

    Gets information about triggers configured for a repository.

    ", - "ListBranches": "

    Gets information about one or more branches in a repository.

    ", - "ListRepositories": "

    Gets information about one or more repositories.

    ", - "PutRepositoryTriggers": "

    Replaces all triggers for a repository. This can be used to create or delete triggers.

    ", - "TestRepositoryTriggers": "

    Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.

    ", - "UpdateDefaultBranch": "

    Sets or changes the default branch name for the specified repository.

    If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.

    ", - "UpdateRepositoryDescription": "

    Sets or changes the comment or description for a 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 web page could 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 web page.

    ", - "UpdateRepositoryName": "

    Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix \".git\" is prohibited. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide.

    " - }, - "shapes": { - "AccountId": { - "base": null, - "refs": { - "RepositoryMetadata$accountId": "

    The ID of the AWS account associated with the repository.

    " - } - }, - "AdditionalData": { - "base": null, - "refs": { - "Commit$additionalData": "

    Any additional data associated with the specified commit.

    " - } - }, - "Arn": { - "base": null, - "refs": { - "RepositoryMetadata$Arn": "

    The Amazon Resource Name (ARN) of the repository.

    ", - "RepositoryTrigger$destinationArn": "

    The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).

    " - } - }, - "BatchGetRepositoriesInput": { - "base": "

    Represents the input of a batch get repositories operation.

    ", - "refs": { - } - }, - "BatchGetRepositoriesOutput": { - "base": "

    Represents the output of a batch get repositories operation.

    ", - "refs": { - } - }, - "BranchDoesNotExistException": { - "base": "

    The specified branch does not exist.

    ", - "refs": { - } - }, - "BranchInfo": { - "base": "

    Returns information about a branch.

    ", - "refs": { - "GetBranchOutput$branch": "

    The name of the branch.

    " - } - }, - "BranchName": { - "base": null, - "refs": { - "BranchInfo$branchName": "

    The name of the branch.

    ", - "BranchNameList$member": null, - "CreateBranchInput$branchName": "

    The name of the new branch to create.

    ", - "GetBranchInput$branchName": "

    The name of the branch for which you want to retrieve information.

    ", - "RepositoryMetadata$defaultBranch": "

    The repository's default branch name.

    ", - "UpdateDefaultBranchInput$defaultBranchName": "

    The name of the branch to set as the default.

    " - } - }, - "BranchNameExistsException": { - "base": "

    The specified branch name already exists.

    ", - "refs": { - } - }, - "BranchNameList": { - "base": null, - "refs": { - "ListBranchesOutput$branches": "

    The list of branch names.

    ", - "RepositoryTrigger$branches": "

    The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.

    " - } - }, - "BranchNameRequiredException": { - "base": "

    A branch name is required but was not specified.

    ", - "refs": { - } - }, - "CloneUrlHttp": { - "base": null, - "refs": { - "RepositoryMetadata$cloneUrlHttp": "

    The URL to use for cloning the repository over HTTPS.

    " - } - }, - "CloneUrlSsh": { - "base": null, - "refs": { - "RepositoryMetadata$cloneUrlSsh": "

    The URL to use for cloning the repository over SSH.

    " - } - }, - "Commit": { - "base": "

    Returns information about a specific commit.

    ", - "refs": { - "GetCommitOutput$commit": "

    Information about the specified commit.

    " - } - }, - "CommitDoesNotExistException": { - "base": "

    The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

    ", - "refs": { - } - }, - "CommitId": { - "base": null, - "refs": { - "BranchInfo$commitId": "

    The ID of the last commit made to the branch.

    ", - "CreateBranchInput$commitId": "

    The ID of the commit to point the new branch to.

    " - } - }, - "CommitIdDoesNotExistException": { - "base": "

    The specified commit ID does not exist.

    ", - "refs": { - } - }, - "CommitIdRequiredException": { - "base": "

    A commit ID was not specified.

    ", - "refs": { - } - }, - "CreateBranchInput": { - "base": "

    Represents the input of a create branch operation.

    ", - "refs": { - } - }, - "CreateRepositoryInput": { - "base": "

    Represents the input of a create repository operation.

    ", - "refs": { - } - }, - "CreateRepositoryOutput": { - "base": "

    Represents the output of a create repository operation.

    ", - "refs": { - } - }, - "CreationDate": { - "base": null, - "refs": { - "RepositoryMetadata$creationDate": "

    The date and time the repository was created, in timestamp format.

    " - } - }, - "Date": { - "base": null, - "refs": { - "UserInfo$date": "

    The date when the specified commit was pushed to the repository.

    " - } - }, - "DeleteRepositoryInput": { - "base": "

    Represents the input of a delete repository operation.

    ", - "refs": { - } - }, - "DeleteRepositoryOutput": { - "base": "

    Represents the output of a delete repository operation.

    ", - "refs": { - } - }, - "Email": { - "base": null, - "refs": { - "UserInfo$email": "

    The email address associated with the user who made the commit, if any.

    " - } - }, - "EncryptionIntegrityChecksFailedException": { - "base": "

    An encryption integrity check failed.

    ", - "refs": { - } - }, - "EncryptionKeyAccessDeniedException": { - "base": "

    An encryption key could not be accessed.

    ", - "refs": { - } - }, - "EncryptionKeyDisabledException": { - "base": "

    The encryption key is disabled.

    ", - "refs": { - } - }, - "EncryptionKeyNotFoundException": { - "base": "

    No encryption key was found.

    ", - "refs": { - } - }, - "EncryptionKeyUnavailableException": { - "base": "

    The encryption key is not available.

    ", - "refs": { - } - }, - "GetBranchInput": { - "base": "

    Represents the input of a get branch operation.

    ", - "refs": { - } - }, - "GetBranchOutput": { - "base": "

    Represents the output of a get branch operation.

    ", - "refs": { - } - }, - "GetCommitInput": { - "base": "

    Represents the input of a get commit operation.

    ", - "refs": { - } - }, - "GetCommitOutput": { - "base": "

    Represents the output of a get commit operation.

    ", - "refs": { - } - }, - "GetRepositoryInput": { - "base": "

    Represents the input of a get repository operation.

    ", - "refs": { - } - }, - "GetRepositoryOutput": { - "base": "

    Represents the output of a get repository operation.

    ", - "refs": { - } - }, - "GetRepositoryTriggersInput": { - "base": "

    Represents the input of a get repository triggers operation.

    ", - "refs": { - } - }, - "GetRepositoryTriggersOutput": { - "base": "

    Represents the output of a get repository triggers operation.

    ", - "refs": { - } - }, - "InvalidBranchNameException": { - "base": "

    The specified branch name is not valid.

    ", - "refs": { - } - }, - "InvalidCommitIdException": { - "base": "

    The specified commit ID is not valid.

    ", - "refs": { - } - }, - "InvalidContinuationTokenException": { - "base": "

    The specified continuation token is not valid.

    ", - "refs": { - } - }, - "InvalidOrderException": { - "base": "

    The specified sort order is not valid.

    ", - "refs": { - } - }, - "InvalidRepositoryDescriptionException": { - "base": "

    The specified repository description is not valid.

    ", - "refs": { - } - }, - "InvalidRepositoryNameException": { - "base": "

    At least one specified repository name is not valid.

    This exception only occurs 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.

    ", - "refs": { - } - }, - "InvalidRepositoryTriggerBranchNameException": { - "base": "

    One or more branch names specified for the trigger is not valid.

    ", - "refs": { - } - }, - "InvalidRepositoryTriggerCustomDataException": { - "base": "

    The custom data provided for the trigger is not valid.

    ", - "refs": { - } - }, - "InvalidRepositoryTriggerDestinationArnException": { - "base": "

    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.

    ", - "refs": { - } - }, - "InvalidRepositoryTriggerEventsException": { - "base": "

    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.

    ", - "refs": { - } - }, - "InvalidRepositoryTriggerNameException": { - "base": "

    The name of the trigger is not valid.

    ", - "refs": { - } - }, - "InvalidRepositoryTriggerRegionException": { - "base": "

    The region for the trigger target does not match the region for the repository. Triggers must be created in the same region as the target for the trigger.

    ", - "refs": { - } - }, - "InvalidSortByException": { - "base": "

    The specified sort by value is not valid.

    ", - "refs": { - } - }, - "LastModifiedDate": { - "base": null, - "refs": { - "RepositoryMetadata$lastModifiedDate": "

    The date and time the repository was last modified, in timestamp format.

    " - } - }, - "ListBranchesInput": { - "base": "

    Represents the input of a list branches operation.

    ", - "refs": { - } - }, - "ListBranchesOutput": { - "base": "

    Represents the output of a list branches operation.

    ", - "refs": { - } - }, - "ListRepositoriesInput": { - "base": "

    Represents the input of a list repositories operation.

    ", - "refs": { - } - }, - "ListRepositoriesOutput": { - "base": "

    Represents the output of a list repositories operation.

    ", - "refs": { - } - }, - "MaximumBranchesExceededException": { - "base": "

    The number of branches for the trigger was exceeded.

    ", - "refs": { - } - }, - "MaximumRepositoryNamesExceededException": { - "base": "

    The maximum number of allowed repository names was exceeded. Currently, this number is 25.

    ", - "refs": { - } - }, - "MaximumRepositoryTriggersExceededException": { - "base": "

    The number of triggers allowed for the repository was exceeded.

    ", - "refs": { - } - }, - "Message": { - "base": null, - "refs": { - "Commit$message": "

    The message associated with the specified commit.

    " - } - }, - "Name": { - "base": null, - "refs": { - "UserInfo$name": "

    The name of the user who made the specified commit.

    " - } - }, - "NextToken": { - "base": null, - "refs": { - "ListBranchesInput$nextToken": "

    An enumeration token that allows the operation to batch the results.

    ", - "ListBranchesOutput$nextToken": "

    An enumeration token that returns the batch of the results.

    ", - "ListRepositoriesInput$nextToken": "

    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.

    ", - "ListRepositoriesOutput$nextToken": "

    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.

    " - } - }, - "ObjectId": { - "base": null, - "refs": { - "Commit$treeId": "

    Tree information for the specified commit.

    ", - "GetCommitInput$commitId": "

    The commit ID.

    ", - "ParentList$member": null - } - }, - "OrderEnum": { - "base": null, - "refs": { - "ListRepositoriesInput$order": "

    The order in which to sort the results of a list repositories operation.

    " - } - }, - "ParentList": { - "base": null, - "refs": { - "Commit$parents": "

    The parent list for the specified commit.

    " - } - }, - "PutRepositoryTriggersInput": { - "base": "

    Represents the input ofa put repository triggers operation.

    ", - "refs": { - } - }, - "PutRepositoryTriggersOutput": { - "base": "

    Represents the output of a put repository triggers operation.

    ", - "refs": { - } - }, - "RepositoryDescription": { - "base": null, - "refs": { - "CreateRepositoryInput$repositoryDescription": "

    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 web page could 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 web page.

    ", - "RepositoryMetadata$repositoryDescription": "

    A comment or description about the repository.

    ", - "UpdateRepositoryDescriptionInput$repositoryDescription": "

    The new comment or description for the specified repository. Repository descriptions are limited to 1,000 characters.

    " - } - }, - "RepositoryDoesNotExistException": { - "base": "

    The specified repository does not exist.

    ", - "refs": { - } - }, - "RepositoryId": { - "base": null, - "refs": { - "DeleteRepositoryOutput$repositoryId": "

    The ID of the repository that was deleted.

    ", - "RepositoryMetadata$repositoryId": "

    The ID of the repository.

    ", - "RepositoryNameIdPair$repositoryId": "

    The ID associated with the repository.

    " - } - }, - "RepositoryLimitExceededException": { - "base": "

    A repository resource limit was exceeded.

    ", - "refs": { - } - }, - "RepositoryMetadata": { - "base": "

    Information about a repository.

    ", - "refs": { - "CreateRepositoryOutput$repositoryMetadata": "

    Information about the newly created repository.

    ", - "GetRepositoryOutput$repositoryMetadata": "

    Information about the repository.

    ", - "RepositoryMetadataList$member": null - } - }, - "RepositoryMetadataList": { - "base": null, - "refs": { - "BatchGetRepositoriesOutput$repositories": "

    A list of repositories returned by the batch get repositories operation.

    " - } - }, - "RepositoryName": { - "base": null, - "refs": { - "CreateBranchInput$repositoryName": "

    The name of the repository in which you want to create the new branch.

    ", - "CreateRepositoryInput$repositoryName": "

    The name of the new repository to be created.

    The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide. The suffix \".git\" is prohibited.

    ", - "DeleteRepositoryInput$repositoryName": "

    The name of the repository to delete.

    ", - "GetBranchInput$repositoryName": "

    The name of the repository that contains the branch for which you want to retrieve information.

    ", - "GetCommitInput$repositoryName": "

    The name of the repository to which the commit was made.

    ", - "GetRepositoryInput$repositoryName": "

    The name of the repository to get information about.

    ", - "GetRepositoryTriggersInput$repositoryName": "

    The name of the repository for which the trigger is configured.

    ", - "ListBranchesInput$repositoryName": "

    The name of the repository that contains the branches.

    ", - "PutRepositoryTriggersInput$repositoryName": "

    The name of the repository where you want to create or update the trigger.

    ", - "RepositoryMetadata$repositoryName": "

    The repository's name.

    ", - "RepositoryNameIdPair$repositoryName": "

    The name associated with the repository.

    ", - "RepositoryNameList$member": null, - "RepositoryNotFoundList$member": null, - "TestRepositoryTriggersInput$repositoryName": "

    The name of the repository in which to test the triggers.

    ", - "UpdateDefaultBranchInput$repositoryName": "

    The name of the repository to set or change the default branch for.

    ", - "UpdateRepositoryDescriptionInput$repositoryName": "

    The name of the repository to set or change the comment or description for.

    ", - "UpdateRepositoryNameInput$oldName": "

    The existing name of the repository.

    ", - "UpdateRepositoryNameInput$newName": "

    The new name for the repository.

    " - } - }, - "RepositoryNameExistsException": { - "base": "

    The specified repository name already exists.

    ", - "refs": { - } - }, - "RepositoryNameIdPair": { - "base": "

    Information about a repository name and ID.

    ", - "refs": { - "RepositoryNameIdPairList$member": null - } - }, - "RepositoryNameIdPairList": { - "base": null, - "refs": { - "ListRepositoriesOutput$repositories": "

    Lists the repositories called by the list repositories operation.

    " - } - }, - "RepositoryNameList": { - "base": null, - "refs": { - "BatchGetRepositoriesInput$repositoryNames": "

    The names of the repositories to get information about.

    " - } - }, - "RepositoryNameRequiredException": { - "base": "

    A repository name is required but was not specified.

    ", - "refs": { - } - }, - "RepositoryNamesRequiredException": { - "base": "

    A repository names object is required but was not specified.

    ", - "refs": { - } - }, - "RepositoryNotFoundList": { - "base": null, - "refs": { - "BatchGetRepositoriesOutput$repositoriesNotFound": "

    Returns a list of repository names for which information could not be found.

    " - } - }, - "RepositoryTrigger": { - "base": "

    Information about a trigger for a repository.

    ", - "refs": { - "RepositoryTriggersList$member": null - } - }, - "RepositoryTriggerBranchNameListRequiredException": { - "base": "

    At least one branch name is required but was not specified in the trigger configuration.

    ", - "refs": { - } - }, - "RepositoryTriggerCustomData": { - "base": null, - "refs": { - "RepositoryTrigger$customData": "

    Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.

    " - } - }, - "RepositoryTriggerDestinationArnRequiredException": { - "base": "

    A destination ARN for the target service for the trigger is required but was not specified.

    ", - "refs": { - } - }, - "RepositoryTriggerEventEnum": { - "base": null, - "refs": { - "RepositoryTriggerEventList$member": null - } - }, - "RepositoryTriggerEventList": { - "base": null, - "refs": { - "RepositoryTrigger$events": "

    The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.

    " - } - }, - "RepositoryTriggerEventsListRequiredException": { - "base": "

    At least one event for the trigger is required but was not specified.

    ", - "refs": { - } - }, - "RepositoryTriggerExecutionFailure": { - "base": "

    A trigger failed to run.

    ", - "refs": { - "RepositoryTriggerExecutionFailureList$member": null - } - }, - "RepositoryTriggerExecutionFailureList": { - "base": null, - "refs": { - "TestRepositoryTriggersOutput$failedExecutions": "

    The list of triggers that were not able to be tested. This list provides the names of the triggers that could not be tested, separated by commas.

    " - } - }, - "RepositoryTriggerExecutionFailureMessage": { - "base": null, - "refs": { - "RepositoryTriggerExecutionFailure$failureMessage": "

    Additional message information about the trigger that did not run.

    " - } - }, - "RepositoryTriggerName": { - "base": null, - "refs": { - "RepositoryTrigger$name": "

    The name of the trigger.

    ", - "RepositoryTriggerExecutionFailure$trigger": "

    The name of the trigger that did not run.

    ", - "RepositoryTriggerNameList$member": null - } - }, - "RepositoryTriggerNameList": { - "base": null, - "refs": { - "TestRepositoryTriggersOutput$successfulExecutions": "

    The list of triggers that were successfully tested. This list provides the names of the triggers that were successfully tested, separated by commas.

    " - } - }, - "RepositoryTriggerNameRequiredException": { - "base": "

    A name for the trigger is required but was not specified.

    ", - "refs": { - } - }, - "RepositoryTriggersConfigurationId": { - "base": null, - "refs": { - "GetRepositoryTriggersOutput$configurationId": "

    The system-generated unique ID for the trigger.

    ", - "PutRepositoryTriggersOutput$configurationId": "

    The system-generated unique ID for the create or update operation.

    " - } - }, - "RepositoryTriggersList": { - "base": null, - "refs": { - "GetRepositoryTriggersOutput$triggers": "

    The JSON block of configuration information for each trigger.

    ", - "PutRepositoryTriggersInput$triggers": "

    The JSON block of configuration information for each trigger.

    ", - "TestRepositoryTriggersInput$triggers": "

    The list of triggers to test.

    " - } - }, - "RepositoryTriggersListRequiredException": { - "base": "

    The list of triggers for the repository is required but was not specified.

    ", - "refs": { - } - }, - "SortByEnum": { - "base": null, - "refs": { - "ListRepositoriesInput$sortBy": "

    The criteria used to sort the results of a list repositories operation.

    " - } - }, - "TestRepositoryTriggersInput": { - "base": "

    Represents the input of a test repository triggers operation.

    ", - "refs": { - } - }, - "TestRepositoryTriggersOutput": { - "base": "

    Represents the output of a test repository triggers operation.

    ", - "refs": { - } - }, - "UpdateDefaultBranchInput": { - "base": "

    Represents the input of an update default branch operation.

    ", - "refs": { - } - }, - "UpdateRepositoryDescriptionInput": { - "base": "

    Represents the input of an update repository description operation.

    ", - "refs": { - } - }, - "UpdateRepositoryNameInput": { - "base": "

    Represents the input of an update repository description operation.

    ", - "refs": { - } - }, - "UserInfo": { - "base": "

    Information about the user who made a specified commit.

    ", - "refs": { - "Commit$author": "

    Information about the author of the specified commit.

    ", - "Commit$committer": "

    Information about the person who committed the specified commit, also known as the committer. For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/paginators-1.json deleted file mode 100644 index e4c9a9038..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codecommit/2015-04-13/paginators-1.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "pagination": { - "ListBranches": { - "input_token": "nextToken", - "output_token": "nextToken", - "result_key": "branches" - }, - "ListRepositories": { - "input_token": "nextToken", - "output_token": "nextToken", - "result_key": "repositories" - } - } -} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/examples-1.json deleted file mode 100644 index 5732bc805..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/examples-1.json +++ /dev/null @@ -1,902 +0,0 @@ -{ - "version": "1.0", - "examples": { - "AcknowledgeJob": [ - { - "input": { - "jobId": "11111111-abcd-1111-abcd-111111abcdef", - "nonce": "3" - }, - "output": { - "status": "InProgress" - }, - "comments": { - "input": { - "jobId": "Use the PollforJobs API to determine the ID of the job.", - "nonce": "Use the PollforJobs API to determine the nonce for the job." - }, - "output": { - "status": "Valid values include Created, Queued, Dispatched, InProgress, TimedOut, Suceeded, and Failed. Completed jobs are removed from the system after a short period of time." - } - }, - "description": "This example returns information about a specified job, including the status of that job if it exists. This is only used for job workers and custom actions in AWS CodePipeline. To determine the value of nonce and the job ID, use PollForJobs.", - "id": "acknowledge-a-job-for-a-custom-action-1449100979484", - "title": "Acknowledge a job for a custom action" - } - ], - "CreateCustomActionType": [ - { - "input": { - "version": "1", - "category": "Build", - "configurationProperties": [ - { - "name": "MyJenkinsExampleBuildProject", - "type": "String", - "required": true, - "key": true, - "description": "The name of the build project must be provided when this action is added to the pipeline.", - "queryable": false, - "secret": false - } - ], - "inputArtifactDetails": { - "maximumCount": 1, - "minimumCount": 0 - }, - "outputArtifactDetails": { - "maximumCount": 1, - "minimumCount": 0 - }, - "provider": "MyBuild-ProviderName", - "settings": { - "entityUrlTemplate": "https://192.0.2.4/job/{Config:ProjectName}/", - "executionUrlTemplate": "https://192.0.2.4/job/{Config:ProjectName}/lastSuccessfulBuild/{ExternalExecutionId}/", - "revisionUrlTemplate": "none" - } - }, - "output": { - "actionType": { - "actionConfigurationProperties": [ - { - "name": "MyJenkinsExampleBuildProject", - "required": true, - "key": true, - "description": "The name of the build project must be provided when this action is added to the pipeline.", - "queryable": false, - "secret": false - } - ], - "id": { - "version": "1", - "category": "Build", - "owner": "Custom", - "provider": "MyBuild-ProviderName" - }, - "inputArtifactDetails": { - "maximumCount": 1, - "minimumCount": 0 - }, - "outputArtifactDetails": { - "maximumCount": 1, - "minimumCount": 0 - }, - "settings": { - "entityUrlTemplate": "https://192.0.2.4/job/{Config:ProjectName}/", - "executionUrlTemplate": "https://192.0.2.4/job/{Config:ProjectName}/lastSuccessfulBuild/{ExternalExecutionId}/", - "revisionUrlTemplate": "none" - } - } - }, - "comments": { - "input": { - "version": "A new custom action always has a version of 1. This is required.", - "configurationProperties": "The text in description will be displayed to your users, and can contain a maximum of 2048 characters. The value for name in configurationProperties is the name of the project, if any. In this example, this is the name of the build project on the Jenkins server", - "inputArtifactDetails": "This is the minimum and maximum number of artifacts allowed as inputs for the action. For more information about input and output artifacts, see Pipeline Structure Reference in the AWS CodePipeline User Guide.", - "outputArtifactDetails": "This is the minimum and maximum number of artifacts allowed as outputs for the action. For more information about input and output artifacts, see Pipeline Structure Reference in the AWS CodePipeline User Guide.", - "provider": "In this example, this is the name given to the provider field when configuring the AWS CodePipeline Plugin for Jenkins. For more information, see the Four-Stage Pipeline Tutorial in the AWS CodePipeline User Guide.", - "settings": "entityUrlTemplate is the static link that provides information about the service provider for the action. In the example, the build system includes a static link to the Jenkins build project at the specific server address. Similarly, executionUrlTemplate is the dynamic link that will be updated with information about the current or most recent run of the action." - }, - "output": { - } - }, - "description": "This example creates a build custom action for AWS CodePipeline for a Jenkins build project. For more information about the requirements for creating a custom action, including the structure of the JSON file commonly used to help create custom actions, see Create a Custom Action in the AWS CodePipeline User Guide. For a walkthrough of creating a custom action in a pipeline, follow the Four-Stage Pipeline Tutorial.", - "id": "create-a-custom-action-1449103500903", - "title": "Create a custom action" - } - ], - "CreatePipeline": [ - { - "input": { - "pipeline": { - "version": 1, - "name": "MySecondPipeline", - "artifactStore": { - "type": "S3", - "location": "codepipeline-us-east-1-11EXAMPLE11" - }, - "roleArn": "arn:aws:iam::111111111111:role/AWS-CodePipeline-Service", - "stages": [ - { - "name": "Source", - "actions": [ - { - "name": "Source", - "actionTypeId": { - "version": "1", - "category": "Source", - "owner": "AWS", - "provider": "S3" - }, - "configuration": { - "S3Bucket": "awscodepipeline-demo-bucket", - "S3ObjectKey": "aws-codepipeline-s3-aws-codedeploy_linux.zip" - }, - "inputArtifacts": [ - - ], - "outputArtifacts": [ - { - "name": "MyApp" - } - ], - "runOrder": 1 - } - ] - }, - { - "name": "Beta", - "actions": [ - { - "name": "CodePipelineDemoFleet", - "actionTypeId": { - "version": "1", - "category": "Deploy", - "owner": "AWS", - "provider": "CodeDeploy" - }, - "configuration": { - "ApplicationName": "CodePipelineDemoApplication", - "DeploymentGroupName": "CodePipelineDemoFleet" - }, - "inputArtifacts": [ - { - "name": "MyApp" - } - ], - "outputArtifacts": [ - - ], - "runOrder": 1 - } - ] - } - ] - } - }, - "output": { - "pipeline": { - "version": 1, - "name": "MySecondPipeline", - "artifactStore": { - "type": "S3", - "location": "codepipeline-us-east-1-11EXAMPLE11" - }, - "roleArn": "arn:aws:iam::111111111111:role/AWS-CodePipeline-Service", - "stages": [ - { - "name": "Source", - "actions": [ - { - "name": "Source", - "actionTypeId": { - "version": "1", - "category": "Source", - "owner": "AWS", - "provider": "S3" - }, - "configuration": { - "S3Bucket": "awscodepipeline-demo-bucket", - "S3ObjectKey": "aws-codepipeline-s3-aws-codedeploy_linux.zip" - }, - "inputArtifacts": [ - - ], - "outputArtifacts": [ - { - "name": "MyApp" - } - ], - "runOrder": 1 - } - ] - }, - { - "name": "Beta", - "actions": [ - { - "name": "CodePipelineDemoFleet", - "actionTypeId": { - "version": "1", - "category": "Deploy", - "owner": "AWS", - "provider": "CodeDeploy" - }, - "configuration": { - "ApplicationName": "CodePipelineDemoApplication", - "DeploymentGroupName": "CodePipelineDemoFleet" - }, - "inputArtifacts": [ - { - "name": "MyApp" - } - ], - "outputArtifacts": [ - - ], - "runOrder": 1 - } - ] - } - ] - } - }, - "comments": { - "input": { - "version": "The version number of the pipeline. All new pipelines have a version number of 1. This number is incremented automatically every time a pipeline is updated.", - "name": "Pipeline names must be unique within a user's AWS account.", - "artifactStore": "This Amazon S3 bucket is where artifacts for the pipeline will be stored as the pipeline runs. For more information about the Amazon S3 bucket used as the artifact store, see Concepts in the AWS CodePipeline User Guide.", - "roleArn": "This is the ARN for the service role created for AWS CodePipeline.", - "stages": "Each stage block defines a different stage in the pipeline. Pipelines can have up to ten stages, with up to twenty actions per stage." - }, - "output": { - } - }, - "description": "This example creates a simple two-stage pipeline in AWS CodePipeline that uses an Amazon S3 bucket for its source stage and deploys code using AWS CodeDeploy. For more information about the requirements for creating a pipeline, including the structure of the JSON file commonly used to create a pipeline, see \"Create a Pipeline\" in the AWS CodePipeline User Guide.", - "id": "create-a-pipeline-1449162214392", - "title": "Create a pipeline" - } - ], - "DeleteCustomActionType": [ - { - "input": { - "version": "1", - "category": "Build", - "provider": "MyJenkinsProviderName" - }, - "comments": { - "input": { - "version": "This is the current version number of the custom action.", - "category": "This is the type of action that the custom action is, for example build or test.", - "provider": "This is the provider of the service used in the custom action. In this example, the custom action is for a Jenkins build, and the name of the provider is the one configured in the AWS CodePipeline Plugin for Jenkins" - }, - "output": { - } - }, - "description": "This example deletes a custom action in AWS CodePipeline by specifiying the action type, provider name, and version number of the action to be deleted. Only used for custom actions. Use the list-action-types command to view the correct values for category, version, and provider. After a custom action is deleted, PollForJobs for the custom action will fail. Warning: You cannot recreate a custom action after it has been deleted unless you increase the version number of the action.", - "id": "delete-a-custom-action-1449163239567", - "title": "Delete a custom action" - } - ], - "DeletePipeline": [ - { - "input": { - "name": "MySecondPipeline" - }, - "comments": { - "input": { - "name": "The name of the pipeline to delete." - }, - "output": { - } - }, - "description": "This example deletes a pipeline named MySecondPipeline from AWS CodePipeline. Use ListPipelines to view a list of pipelines associated with your AWS account.", - "id": "delete-a-pipeline-1449163893541", - "title": "Delete a pipeline" - } - ], - "DisableStageTransition": [ - { - "input": { - "pipelineName": "MyFirstPipeline", - "reason": "An example reason", - "stageName": "Beta", - "transitionType": "Inbound" - }, - "comments": { - "input": { - "transitionType": "Valid values are Inbound, which prevents artifacts from transitioning into the stage and being processed by the actions in that stage, or Outbound, which prevents artifacts from transitioning out of the stage after they have been processed by the actions in that stage." - }, - "output": { - } - }, - "description": "This example disables transitions into the Beta stage of the MyFirstPipeline pipeline in AWS CodePipeline.", - "id": "disable-transitions-into-or-out-of-a-stage-1449164517291", - "title": "Disable transitions into or out of a stage" - } - ], - "EnableStageTransition": [ - { - "input": { - "pipelineName": "MyFirstPipeline", - "stageName": "Beta", - "transitionType": "Inbound" - }, - "comments": { - "input": { - "transitionType": "Valid values are Inbound, which allows artifacts to transition into the stage and be processed by the actions in that stage, or Outbound, which allows artifacts to transition out of the stage after they have been processed by the actions in that stage." - }, - "output": { - } - }, - "description": "This example enables transitions into the Beta stage of the MyFirstPipeline pipeline in AWS CodePipeline.", - "id": "enable-transitions-into-or-out-of-a-stage-1449164924423", - "title": "Enable transitions into or out of a stage" - } - ], - "GetJobDetails": [ - { - "input": { - "jobId": "11111111-abcd-1111-abcd-111111abcdef" - }, - "output": { - "jobDetails": { - "accountId": "111111111111", - "data": { - "actionConfiguration": { - "configuration": { - "ProjectName": "MyJenkinsExampleTestProject" - } - }, - "actionTypeId": { - "version": "1", - "category": "Test", - "owner": "Custom", - "provider": "MyJenkinsProviderName" - }, - "artifactCredentials": { - "accessKeyId": "AKIAIOSFODNN7EXAMPLE", - "secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", - "sessionToken": "fICCQD6m7oRw0uXOjANBgkqhkiG9w0BAQUFADCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wHhcNMTEwNDI1MjA0NTIxWhcNMTIwNDI0MjA0NTIxWjCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMaK0dn+a4GmWIWJ21uUSfwfEvySWtC2XADZ4nB+BLYgVIk60CpiwsZ3G93vUEIO3IyNoH/f0wYK8m9TrDHudUZg3qX4waLG5M43q7Wgc/MbQITxOUSQv7c7ugFFDzQGBzZswY6786m86gpEIbb3OhjZnzcvQAaRHhdlQWIMm2nrAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAtCu4nUhVVxYUntneD9+h8Mg9q6q+auNKyExzyLwaxlAoo7TJHidbtS4J5iNmZgXL0FkbFFBjvSfpJIlJ00zbhNYS5f6GuoEDmFJl0ZxBHjJnyp378OD8uTs7fLvjx79LjSTbNYiytVbZPQUQ5Yaxu2jXnimvw3rrszlaEXAMPLE=" - }, - "inputArtifacts": [ - { - "name": "MyAppBuild", - "location": { - "type": "S3", - "s3Location": { - "bucketName": "codepipeline-us-east-1-11EXAMPLE11", - "objectKey": "MySecondPipeline/MyAppBuild/EXAMPLE" - } - } - } - ], - "outputArtifacts": [ - - ], - "pipelineContext": { - "action": { - "name": "MyJenkinsTest-Action" - }, - "pipelineName": "MySecondPipeline", - "stage": { - "name": "Testing" - } - } - }, - "id": "11111111-abcd-1111-abcd-111111abcdef" - } - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example returns details about a job whose ID is represented by f4f4ff82-2d11-EXAMPLE. This command is only used for custom actions. When this command is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if required for the custom action. This command will also return any secret values defined for the action, if any are defined.", - "id": "get-the-details-of-a-job-1449183680273", - "title": "Get the details of a job" - } - ], - "GetPipeline": [ - { - "input": { - "version": 123, - "name": "MyFirstPipeline" - }, - "output": { - "pipeline": { - "version": 1, - "name": "MyFirstPipeline", - "artifactStore": { - "type": "S3", - "location": "codepipeline-us-east-1-11EXAMPLE11" - }, - "roleArn": "arn:aws:iam::111111111111:role/AWS-CodePipeline-Service", - "stages": [ - { - "name": "Source", - "actions": [ - { - "name": "Source", - "actionTypeId": { - "version": "1", - "category": "Source", - "owner": "AWS", - "provider": "S3" - }, - "configuration": { - "S3Bucket": "awscodepipeline-demo-bucket", - "S3ObjectKey": "aws-codepipeline-s3-aws-codedeploy_linux.zip" - }, - "inputArtifacts": [ - - ], - "outputArtifacts": [ - { - "name": "MyApp" - } - ], - "runOrder": 1 - } - ] - }, - { - "name": "Beta", - "actions": [ - { - "name": "CodePipelineDemoFleet", - "actionTypeId": { - "version": "1", - "category": "Deploy", - "owner": "AWS", - "provider": "CodeDeploy" - }, - "configuration": { - "ApplicationName": "CodePipelineDemoApplication", - "DeploymentGroupName": "CodePipelineDemoFleet" - }, - "inputArtifacts": [ - { - "name": "MyApp" - } - ], - "outputArtifacts": [ - - ], - "runOrder": 1 - } - ] - } - ] - } - }, - "comments": { - "input": { - "version": "This is an optional parameter. If you do not specify a version, the most current version of the pipeline structure is returned." - }, - "output": { - } - }, - "description": "This example returns the structure of a pipeline named MyFirstPipeline.", - "id": "view-the-structure-of-a-pipeline-1449184156329", - "title": "View the structure of a pipeline" - } - ], - "GetPipelineState": [ - { - "input": { - "name": "MyFirstPipeline" - }, - "output": { - "created": "1446137312.204", - "pipelineName": "MyFirstPipeline", - "pipelineVersion": 1, - "stageStates": [ - { - "actionStates": [ - { - "actionName": "Source", - "entityUrl": "https://console.aws.amazon.com/s3/home?#", - "latestExecution": { - "lastStatusChange": "1446137358.328", - "status": "Succeeded" - } - } - ], - "stageName": "Source" - }, - { - "actionStates": [ - { - "actionName": "CodePipelineDemoFleet", - "entityUrl": "https://console.aws.amazon.com/codedeploy/home?#/applications/CodePipelineDemoApplication/deployment-groups/CodePipelineDemoFleet", - "latestExecution": { - "externalExecutionId": "d-EXAMPLE", - "externalExecutionUrl": "https://console.aws.amazon.com/codedeploy/home?#/deployments/d-EXAMPLE", - "lastStatusChange": "1446137493.131", - "status": "Succeeded", - "summary": "Deployment Succeeded" - } - } - ], - "inboundTransitionState": { - "enabled": true - }, - "stageName": "Beta" - } - ], - "updated": "1446137312.204" - }, - "comments": { - "input": { - }, - "output": { - "created": "The value for created and all other time- and date-related information such as lastStatusChange, is returned in timestamp format." - } - }, - "description": "This example returns the most recent state of a pipeline named MyFirstPipeline.", - "id": "view-information-about-the-state-of-a-pipeline-1449184486550", - "title": "View information about the state of a pipeline" - } - ], - "ListActionTypes": [ - { - "input": { - "actionOwnerFilter": "Custom", - "nextToken": "" - }, - "output": { - "actionTypes": [ - { - "actionConfigurationProperties": [ - { - "name": "MyJenkinsExampleBuildProject", - "required": true, - "key": true, - "queryable": true, - "secret": false - } - ], - "id": { - "version": "1", - "category": "Build", - "owner": "Custom", - "provider": "MyJenkinsProviderName" - }, - "inputArtifactDetails": { - "maximumCount": 5, - "minimumCount": 0 - }, - "outputArtifactDetails": { - "maximumCount": 5, - "minimumCount": 0 - }, - "settings": { - "entityUrlTemplate": "http://54.174.131.118/job/{Config:ProjectName}", - "executionUrlTemplate": "http://54.174.131.118/job/{Config:ProjectName}/{ExternalExecutionId}" - } - }, - { - "actionConfigurationProperties": [ - { - "name": "MyJenkinsExampleTestProject", - "required": true, - "key": true, - "queryable": true, - "secret": false - } - ], - "id": { - "version": "1", - "category": "Build", - "owner": "Custom", - "provider": "MyJenkinsProviderName" - }, - "inputArtifactDetails": { - "maximumCount": 5, - "minimumCount": 0 - }, - "outputArtifactDetails": { - "maximumCount": 5, - "minimumCount": 0 - }, - "settings": { - "entityUrlTemplate": "http://54.210.140.46/job/{Config:ProjectName}", - "executionUrlTemplate": "http://54.210.140.46/job/{Config:ProjectName}/{ExternalExecutionId}" - } - } - ], - "nextToken": "" - }, - "comments": { - "input": { - }, - "output": { - "actionOwnerFilter": "actionOwnerFilter is optional. It is used to filter the response to actions created by a specific entity. Valid values include AWS, ThirdParty, and Custom.", - "nextToken": "nextToken is optional. Its operation is reserved for future use." - } - }, - "description": "Used by itself, ListActionTypes returns the structure of all AWS CodePipeline actions available to your AWS account. This example uses the actionOwnerFilter option to limit the response to include only the structure of all custom actions defined for the account.", - "id": "view-a-summary-of-all-action-types-associated-with-your-account-1455218918202", - "title": "View a summary of all action types associated with your account" - } - ], - "ListPipelines": [ - { - "input": { - }, - "output": { - "nextToken": "", - "pipelines": [ - { - "version": 1, - "name": "MyFirstPipeline", - "created": "1444681408.094", - "updated": "1444681408.094" - }, - { - "version": 3, - "name": "MySecondPipeline", - "created": "1443046290.003", - "updated": "1443048299.639" - } - ] - }, - "comments": { - "input": { - "nextToken": "nextToken is optional. Its operation is reserved for future use." - }, - "output": { - "pipelines": "Date and time information returned in the pipeline blocks, such as the values for created or updated, are in timestamp format." - } - }, - "description": "This example lists all AWS CodePipeline pipelines associated with the user's AWS account.", - "id": "view-a-summary-of-all-pipelines-associated-with-your-account-1449185747807", - "title": "View a summary of all pipelines associated with your account" - } - ], - "PollForJobs": [ - { - "input": { - "actionTypeId": { - "version": "1", - "category": "Test", - "owner": "Custom", - "provider": "MyJenkinsProviderName" - }, - "maxBatchSize": 5, - "queryParam": { - "ProjectName": "MyJenkinsTestProj" - } - }, - "output": { - "jobs": [ - { - "accountId": "111111111111", - "data": { - "actionConfiguration": { - "configuration": { - "ProjectName": "MyJenkinsTestProj" - } - }, - "actionTypeId": { - "version": "1", - "category": "Test", - "owner": "Custom", - "provider": "MyJenkinsProviderName" - }, - "artifactCredentials": { - "accessKeyId": "AKIAIOSFODNN7EXAMPLE", - "secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", - "sessionToken": "fICCQD6m7oRw0uXOjANBgkqhkiG9w0BAQUFADCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wHhcNMTEwNDI1MjA0NTIxWhcNMTIwNDI0MjA0NTIxWjCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMaK0dn+a4GmWIWJ21uUSfwfEvySWtC2XADZ4nB+BLYgVIk60CpiwsZ3G93vUEIO3IyNoH/f0wYK8m9TrDHudUZg3qX4waLG5M43q7Wgc/MbQITxOUSQv7c7ugFFDzQGBzZswY6786m86gpEIbb3OhjZnzcvQAaRHhdlQWIMm2nrAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAtCu4nUhVVxYUntneD9+h8Mg9q6q+auNKyExzyLwaxlAoo7TJHidbtS4J5iNmZgXL0FkbFFBjvSfpJIlJ00zbhNYS5f6GuoEDmFJl0ZxBHjJnyp378OD8uTs7fLvjx79LjSTbNYiytVbZPQUQ5Yaxu2jXnimvw3rrszlaEXAMPLE=" - }, - "inputArtifacts": [ - { - "name": "MyAppBuild", - "location": { - "type": "S3", - "s3Location": { - "bucketName": "codepipeline-us-east-1-11EXAMPLE11", - "objectKey": "MySecondPipeline/MyAppBuild/EXAMPLE" - } - } - } - ], - "outputArtifacts": [ - - ], - "pipelineContext": { - "action": { - "name": "MyJenkinsTest-Action" - }, - "pipelineName": "MySecondPipeline", - "stage": { - "name": "Testing" - } - } - }, - "id": "11111111-abcd-1111-abcd-111111abcdef", - "nonce": "3" - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example returns information about any jobs for a job worker to act upon. This command is only used for custom actions. When this command is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline. This command will also return any secret values defined for the action, if any are defined.", - "id": "view-any-available-jobs-1449186054484", - "title": "View any available jobs" - } - ], - "StartPipelineExecution": [ - { - "input": { - "name": "MyFirstPipeline" - }, - "output": { - "pipelineExecutionId": "11111111-abcd-1111-abcd-111111abcdef" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example runs the latest revision present in the source stage of a pipeline through the pipeline named \"MyFirstPipeline\".", - "id": "run-the-latest-revision-through-a-pipeline-1449186732433", - "title": "Run the latest revision through a pipeline" - } - ], - "UpdatePipeline": [ - { - "input": { - "pipeline": { - "version": 2, - "name": "MyFirstPipeline", - "artifactStore": { - "type": "S3", - "location": "codepipeline-us-east-1-11EXAMPLE11" - }, - "roleArn": "arn:aws:iam::111111111111:role/AWS-CodePipeline-Service", - "stages": [ - { - "name": "Source", - "actions": [ - { - "name": "Source", - "actionTypeId": { - "version": "1", - "category": "Source", - "owner": "AWS", - "provider": "S3" - }, - "configuration": { - "S3Bucket": "awscodepipeline-demo-bucket2", - "S3ObjectKey": "aws-codepipeline-s3-aws-codedeploy_linux.zip" - }, - "inputArtifacts": [ - - ], - "outputArtifacts": [ - { - "name": "MyApp" - } - ], - "runOrder": 1 - } - ] - }, - { - "name": "Beta", - "actions": [ - { - "name": "CodePipelineDemoFleet", - "actionTypeId": { - "version": "1", - "category": "Deploy", - "owner": "AWS", - "provider": "CodeDeploy" - }, - "configuration": { - "ApplicationName": "CodePipelineDemoApplication", - "DeploymentGroupName": "CodePipelineDemoFleet" - }, - "inputArtifacts": [ - { - "name": "MyApp" - } - ], - "outputArtifacts": [ - - ], - "runOrder": 1 - } - ] - } - ] - } - }, - "output": { - "pipeline": { - "version": 3, - "name": "MyFirstPipeline", - "artifactStore": { - "type": "S3", - "location": "codepipeline-us-east-1-11EXAMPLE11" - }, - "roleArn": "arn:aws:iam::111111111111:role/AWS-CodePipeline-Service", - "stages": [ - { - "name": "Source", - "actions": [ - { - "name": "Source", - "actionTypeId": { - "version": "1", - "category": "Source", - "owner": "AWS", - "provider": "S3" - }, - "configuration": { - "S3Bucket": "awscodepipeline-demo-bucket2", - "S3ObjectKey": "aws-codepipeline-s3-aws-codedeploy_linux.zip" - }, - "inputArtifacts": [ - - ], - "outputArtifacts": [ - { - "name": "MyApp" - } - ], - "runOrder": 1 - } - ] - }, - { - "name": "Beta", - "actions": [ - { - "name": "CodePipelineDemoFleet", - "actionTypeId": { - "version": "1", - "category": "Deploy", - "owner": "AWS", - "provider": "CodeDeploy" - }, - "configuration": { - "ApplicationName": "CodePipelineDemoApplication", - "DeploymentGroupName": "CodePipelineDemoFleet" - }, - "inputArtifacts": [ - { - "name": "MyApp" - } - ], - "outputArtifacts": [ - - ], - "runOrder": 1 - } - ] - } - ] - } - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "This example updates the structure of a pipeline. The entire structure of the pipeline must be supplied, either by passing all of the parameters, or by using a pre-defined JSON file.", - "id": "update-the-structure-of-a-pipeline-1449186881322", - "title": "Update the structure of a pipeline" - } - ] - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-identity/2014-06-30/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/api-2.json deleted file mode 100644 index 554bcbd5f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/api-2.json +++ /dev/null @@ -1,1657 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2016-04-18", - "endpointPrefix":"cognito-idp", - "jsonVersion":"1.1", - "protocol":"json", - "serviceFullName":"Amazon Cognito Identity Provider", - "signatureVersion":"v4", - "targetPrefix":"AWSCognitoIdentityProviderService" - }, - "operations":{ - "AddCustomAttributes":{ - "name":"AddCustomAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddCustomAttributesRequest"}, - "output":{"shape":"AddCustomAttributesResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "AdminConfirmSignUp":{ - "name":"AdminConfirmSignUp", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AdminConfirmSignUpRequest"}, - "output":{"shape":"AdminConfirmSignUpResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnexpectedLambdaException"}, - {"shape":"UserLambdaValidationException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyFailedAttemptsException"}, - {"shape":"InvalidLambdaResponseException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalErrorException"} - ] - }, - "AdminDeleteUser":{ - "name":"AdminDeleteUser", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AdminDeleteUserRequest"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "AdminDeleteUserAttributes":{ - "name":"AdminDeleteUserAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AdminDeleteUserAttributesRequest"}, - "output":{"shape":"AdminDeleteUserAttributesResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "AdminDisableUser":{ - "name":"AdminDisableUser", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AdminDisableUserRequest"}, - "output":{"shape":"AdminDisableUserResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "AdminEnableUser":{ - "name":"AdminEnableUser", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AdminEnableUserRequest"}, - "output":{"shape":"AdminEnableUserResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "AdminGetUser":{ - "name":"AdminGetUser", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AdminGetUserRequest"}, - "output":{"shape":"AdminGetUserResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "AdminResetUserPassword":{ - "name":"AdminResetUserPassword", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AdminResetUserPasswordRequest"}, - "output":{"shape":"AdminResetUserPasswordResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnexpectedLambdaException"}, - {"shape":"UserLambdaValidationException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"InvalidLambdaResponseException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalErrorException"} - ] - }, - "AdminSetUserSettings":{ - "name":"AdminSetUserSettings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AdminSetUserSettingsRequest"}, - "output":{"shape":"AdminSetUserSettingsResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"NotAuthorizedException"} - ] - }, - "AdminUpdateUserAttributes":{ - "name":"AdminUpdateUserAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AdminUpdateUserAttributesRequest"}, - "output":{"shape":"AdminUpdateUserAttributesResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnexpectedLambdaException"}, - {"shape":"UserLambdaValidationException"}, - {"shape":"InvalidLambdaResponseException"}, - {"shape":"AliasExistsException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "ChangePassword":{ - "name":"ChangePassword", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ChangePasswordRequest"}, - "output":{"shape":"ChangePasswordResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidPasswordException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "ConfirmForgotPassword":{ - "name":"ConfirmForgotPassword", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ConfirmForgotPasswordRequest"}, - "output":{"shape":"ConfirmForgotPasswordResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"UnexpectedLambdaException"}, - {"shape":"UserLambdaValidationException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidPasswordException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"CodeMismatchException"}, - {"shape":"ExpiredCodeException"}, - {"shape":"TooManyFailedAttemptsException"}, - {"shape":"InvalidLambdaResponseException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "ConfirmSignUp":{ - "name":"ConfirmSignUp", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ConfirmSignUpRequest"}, - "output":{"shape":"ConfirmSignUpResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnexpectedLambdaException"}, - {"shape":"UserLambdaValidationException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyFailedAttemptsException"}, - {"shape":"CodeMismatchException"}, - {"shape":"ExpiredCodeException"}, - {"shape":"InvalidLambdaResponseException"}, - {"shape":"AliasExistsException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "CreateUserPool":{ - "name":"CreateUserPool", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateUserPoolRequest"}, - "output":{"shape":"CreateUserPoolResponse"}, - "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"}, - {"shape":"LimitExceededException"} - ] - }, - "CreateUserPoolClient":{ - "name":"CreateUserPoolClient", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateUserPoolClientRequest"}, - "output":{"shape":"CreateUserPoolClientResponse"}, - "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalErrorException"} - ] - }, - "DeleteUser":{ - "name":"DeleteUser", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteUserRequest"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "DeleteUserAttributes":{ - "name":"DeleteUserAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteUserAttributesRequest"}, - "output":{"shape":"DeleteUserAttributesResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "DeleteUserPool":{ - "name":"DeleteUserPool", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteUserPoolRequest"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "DeleteUserPoolClient":{ - "name":"DeleteUserPoolClient", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteUserPoolClientRequest"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "DescribeUserPool":{ - "name":"DescribeUserPool", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeUserPoolRequest"}, - "output":{"shape":"DescribeUserPoolResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "DescribeUserPoolClient":{ - "name":"DescribeUserPoolClient", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeUserPoolClientRequest"}, - "output":{"shape":"DescribeUserPoolClientResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "ForgotPassword":{ - "name":"ForgotPassword", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ForgotPasswordRequest"}, - "output":{"shape":"ForgotPasswordResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnexpectedLambdaException"}, - {"shape":"UserLambdaValidationException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"InvalidLambdaResponseException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "GetUser":{ - "name":"GetUser", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetUserRequest"}, - "output":{"shape":"GetUserResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "GetUserAttributeVerificationCode":{ - "name":"GetUserAttributeVerificationCode", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetUserAttributeVerificationCodeRequest"}, - "output":{"shape":"GetUserAttributeVerificationCodeResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"UnexpectedLambdaException"}, - {"shape":"UserLambdaValidationException"}, - {"shape":"InvalidLambdaResponseException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "ListUserPoolClients":{ - "name":"ListUserPoolClients", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListUserPoolClientsRequest"}, - "output":{"shape":"ListUserPoolClientsResponse"}, - "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "ListUserPools":{ - "name":"ListUserPools", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListUserPoolsRequest"}, - "output":{"shape":"ListUserPoolsResponse"}, - "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "ListUsers":{ - "name":"ListUsers", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListUsersRequest"}, - "output":{"shape":"ListUsersResponse"}, - "errors":[ - {"shape":"InvalidParameterException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "ResendConfirmationCode":{ - "name":"ResendConfirmationCode", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResendConfirmationCodeRequest"}, - "output":{"shape":"ResendConfirmationCodeResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnexpectedLambdaException"}, - {"shape":"UserLambdaValidationException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"InvalidLambdaResponseException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "SetUserSettings":{ - "name":"SetUserSettings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetUserSettingsRequest"}, - "output":{"shape":"SetUserSettingsResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"NotAuthorizedException"} - ], - "authtype":"none" - }, - "SignUp":{ - "name":"SignUp", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SignUpRequest"}, - "output":{"shape":"SignUpResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"UnexpectedLambdaException"}, - {"shape":"UserLambdaValidationException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"InvalidPasswordException"}, - {"shape":"InvalidLambdaResponseException"}, - {"shape":"UsernameExistsException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "UpdateUserAttributes":{ - "name":"UpdateUserAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateUserAttributesRequest"}, - "output":{"shape":"UpdateUserAttributesResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"CodeMismatchException"}, - {"shape":"ExpiredCodeException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"UnexpectedLambdaException"}, - {"shape":"UserLambdaValidationException"}, - {"shape":"InvalidLambdaResponseException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"AliasExistsException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - }, - "UpdateUserPool":{ - "name":"UpdateUserPool", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateUserPoolRequest"}, - "output":{"shape":"UpdateUserPoolResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ConcurrentModificationException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "UpdateUserPoolClient":{ - "name":"UpdateUserPoolClient", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateUserPoolClientRequest"}, - "output":{"shape":"UpdateUserPoolClientResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ] - }, - "VerifyUserAttribute":{ - "name":"VerifyUserAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"VerifyUserAttributeRequest"}, - "output":{"shape":"VerifyUserAttributeResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"CodeMismatchException"}, - {"shape":"ExpiredCodeException"}, - {"shape":"NotAuthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"InternalErrorException"} - ], - "authtype":"none" - } - }, - "shapes":{ - "AddCustomAttributesRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "CustomAttributes" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "CustomAttributes":{"shape":"CustomAttributesListType"} - } - }, - "AddCustomAttributesResponse":{ - "type":"structure", - "members":{ - } - }, - "AdminConfirmSignUpRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "Username" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "Username":{"shape":"UsernameType"} - } - }, - "AdminConfirmSignUpResponse":{ - "type":"structure", - "members":{ - } - }, - "AdminDeleteUserAttributesRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "Username", - "UserAttributeNames" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "Username":{"shape":"UsernameType"}, - "UserAttributeNames":{"shape":"AttributeNameListType"} - } - }, - "AdminDeleteUserAttributesResponse":{ - "type":"structure", - "members":{ - } - }, - "AdminDeleteUserRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "Username" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "Username":{"shape":"UsernameType"} - } - }, - "AdminDisableUserRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "Username" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "Username":{"shape":"UsernameType"} - } - }, - "AdminDisableUserResponse":{ - "type":"structure", - "members":{ - } - }, - "AdminEnableUserRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "Username" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "Username":{"shape":"UsernameType"} - } - }, - "AdminEnableUserResponse":{ - "type":"structure", - "members":{ - } - }, - "AdminGetUserRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "Username" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "Username":{"shape":"UsernameType"} - } - }, - "AdminGetUserResponse":{ - "type":"structure", - "required":["Username"], - "members":{ - "Username":{"shape":"UsernameType"}, - "UserAttributes":{"shape":"AttributeListType"}, - "UserCreateDate":{"shape":"DateType"}, - "UserLastModifiedDate":{"shape":"DateType"}, - "Enabled":{"shape":"BooleanType"}, - "UserStatus":{"shape":"UserStatusType"}, - "MFAOptions":{"shape":"MFAOptionListType"} - } - }, - "AdminResetUserPasswordRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "Username" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "Username":{"shape":"UsernameType"} - } - }, - "AdminResetUserPasswordResponse":{ - "type":"structure", - "members":{ - } - }, - "AdminSetUserSettingsRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "Username", - "MFAOptions" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "Username":{"shape":"UsernameType"}, - "MFAOptions":{"shape":"MFAOptionListType"} - } - }, - "AdminSetUserSettingsResponse":{ - "type":"structure", - "members":{ - } - }, - "AdminUpdateUserAttributesRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "Username", - "UserAttributes" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "Username":{"shape":"UsernameType"}, - "UserAttributes":{"shape":"AttributeListType"} - } - }, - "AdminUpdateUserAttributesResponse":{ - "type":"structure", - "members":{ - } - }, - "AliasAttributeType":{ - "type":"string", - "enum":[ - "phone_number", - "email", - "preferred_username" - ] - }, - "AliasAttributesListType":{ - "type":"list", - "member":{"shape":"AliasAttributeType"} - }, - "AliasExistsException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "ArnType":{ - "type":"string", - "max":2048, - "min":20 - }, - "AttributeDataType":{ - "type":"string", - "enum":[ - "String", - "Number", - "DateTime", - "Boolean" - ] - }, - "AttributeListType":{ - "type":"list", - "member":{"shape":"AttributeType"} - }, - "AttributeNameListType":{ - "type":"list", - "member":{"shape":"AttributeNameType"} - }, - "AttributeNameType":{ - "type":"string", - "max":32, - "min":1, - "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+" - }, - "AttributeType":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"AttributeNameType"}, - "Value":{"shape":"AttributeValueType"} - } - }, - "AttributeValueType":{ - "type":"string", - "max":256, - "sensitive":true - }, - "BooleanType":{"type":"boolean"}, - "ChangePasswordRequest":{ - "type":"structure", - "required":[ - "PreviousPassword", - "ProposedPassword" - ], - "members":{ - "PreviousPassword":{"shape":"PasswordType"}, - "ProposedPassword":{"shape":"PasswordType"}, - "AccessToken":{"shape":"TokenModelType"} - } - }, - "ChangePasswordResponse":{ - "type":"structure", - "members":{ - } - }, - "ClientIdType":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[\\w+]+", - "sensitive":true - }, - "ClientNameType":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[\\w\\s+=,.@-]+" - }, - "ClientSecretType":{ - "type":"string", - "max":64, - "min":1, - "pattern":"[\\w+]+", - "sensitive":true - }, - "CodeDeliveryDetailsListType":{ - "type":"list", - "member":{"shape":"CodeDeliveryDetailsType"} - }, - "CodeDeliveryDetailsType":{ - "type":"structure", - "members":{ - "Destination":{"shape":"StringType"}, - "DeliveryMedium":{"shape":"DeliveryMediumType"}, - "AttributeName":{"shape":"AttributeNameType"} - } - }, - "CodeMismatchException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "ConcurrentModificationException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "ConfirmForgotPasswordRequest":{ - "type":"structure", - "required":[ - "ClientId", - "Username", - "ConfirmationCode", - "Password" - ], - "members":{ - "ClientId":{"shape":"ClientIdType"}, - "SecretHash":{"shape":"SecretHashType"}, - "Username":{"shape":"UsernameType"}, - "ConfirmationCode":{"shape":"ConfirmationCodeType"}, - "Password":{"shape":"PasswordType"} - } - }, - "ConfirmForgotPasswordResponse":{ - "type":"structure", - "members":{ - } - }, - "ConfirmSignUpRequest":{ - "type":"structure", - "required":[ - "ClientId", - "Username", - "ConfirmationCode" - ], - "members":{ - "ClientId":{"shape":"ClientIdType"}, - "SecretHash":{"shape":"SecretHashType"}, - "Username":{"shape":"UsernameType"}, - "ConfirmationCode":{"shape":"ConfirmationCodeType"}, - "ForceAliasCreation":{"shape":"ForceAliasCreation"} - } - }, - "ConfirmSignUpResponse":{ - "type":"structure", - "members":{ - } - }, - "ConfirmationCodeType":{ - "type":"string", - "max":2048, - "min":1, - "pattern":"[\\S]+" - }, - "CreateUserPoolClientRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "ClientName" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "ClientName":{"shape":"ClientNameType"}, - "GenerateSecret":{"shape":"GenerateSecret"} - } - }, - "CreateUserPoolClientResponse":{ - "type":"structure", - "members":{ - "UserPoolClient":{"shape":"UserPoolClientType"} - } - }, - "CreateUserPoolRequest":{ - "type":"structure", - "required":["PoolName"], - "members":{ - "PoolName":{"shape":"UserPoolNameType"}, - "Policies":{"shape":"UserPoolPolicyType"}, - "LambdaConfig":{"shape":"LambdaConfigType"}, - "AutoVerifiedAttributes":{"shape":"VerifiedAttributesListType"}, - "AliasAttributes":{"shape":"AliasAttributesListType"}, - "SmsVerificationMessage":{"shape":"SmsVerificationMessageType"}, - "EmailVerificationMessage":{"shape":"EmailVerificationMessageType"}, - "EmailVerificationSubject":{"shape":"EmailVerificationSubjectType"}, - "SmsAuthenticationMessage":{"shape":"SmsVerificationMessageType"}, - "MfaConfiguration":{"shape":"UserPoolMfaType"} - } - }, - "CreateUserPoolResponse":{ - "type":"structure", - "members":{ - "UserPool":{"shape":"UserPoolType"} - } - }, - "CustomAttributeNameType":{ - "type":"string", - "max":20, - "min":1, - "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+" - }, - "CustomAttributesListType":{ - "type":"list", - "member":{"shape":"SchemaAttributeType"}, - "max":25, - "min":1 - }, - "DateType":{"type":"timestamp"}, - "DeleteUserAttributesRequest":{ - "type":"structure", - "required":["UserAttributeNames"], - "members":{ - "UserAttributeNames":{"shape":"AttributeNameListType"}, - "AccessToken":{"shape":"TokenModelType"} - } - }, - "DeleteUserAttributesResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteUserPoolClientRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "ClientId" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "ClientId":{"shape":"ClientIdType"} - } - }, - "DeleteUserPoolRequest":{ - "type":"structure", - "required":["UserPoolId"], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"} - } - }, - "DeleteUserRequest":{ - "type":"structure", - "members":{ - "AccessToken":{"shape":"TokenModelType"} - } - }, - "DeliveryMediumType":{ - "type":"string", - "enum":[ - "SMS", - "EMAIL" - ] - }, - "DescribeUserPoolClientRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "ClientId" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "ClientId":{"shape":"ClientIdType"} - } - }, - "DescribeUserPoolClientResponse":{ - "type":"structure", - "members":{ - "UserPoolClient":{"shape":"UserPoolClientType"} - } - }, - "DescribeUserPoolRequest":{ - "type":"structure", - "required":["UserPoolId"], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"} - } - }, - "DescribeUserPoolResponse":{ - "type":"structure", - "members":{ - "UserPool":{"shape":"UserPoolType"} - } - }, - "EmailVerificationMessageType":{ - "type":"string", - "max":2048, - "min":6, - "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s*]*\\{####\\}[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s*]*" - }, - "EmailVerificationSubjectType":{ - "type":"string", - "max":140, - "min":1, - "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\s]+" - }, - "ExpiredCodeException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "ForceAliasCreation":{"type":"boolean"}, - "ForgotPasswordRequest":{ - "type":"structure", - "required":[ - "ClientId", - "Username" - ], - "members":{ - "ClientId":{"shape":"ClientIdType"}, - "SecretHash":{"shape":"SecretHashType"}, - "Username":{"shape":"UsernameType"} - } - }, - "ForgotPasswordResponse":{ - "type":"structure", - "members":{ - "CodeDeliveryDetails":{"shape":"CodeDeliveryDetailsType"} - } - }, - "GenerateSecret":{"type":"boolean"}, - "GetUserAttributeVerificationCodeRequest":{ - "type":"structure", - "required":["AttributeName"], - "members":{ - "AccessToken":{"shape":"TokenModelType"}, - "AttributeName":{"shape":"AttributeNameType"} - } - }, - "GetUserAttributeVerificationCodeResponse":{ - "type":"structure", - "members":{ - "CodeDeliveryDetails":{"shape":"CodeDeliveryDetailsType"} - } - }, - "GetUserRequest":{ - "type":"structure", - "members":{ - "AccessToken":{"shape":"TokenModelType"} - } - }, - "GetUserResponse":{ - "type":"structure", - "required":[ - "Username", - "UserAttributes" - ], - "members":{ - "Username":{"shape":"UsernameType"}, - "UserAttributes":{"shape":"AttributeListType"}, - "MFAOptions":{"shape":"MFAOptionListType"} - } - }, - "IntegerType":{"type":"integer"}, - "InternalErrorException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true, - "fault":true - }, - "InvalidLambdaResponseException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "InvalidParameterException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "InvalidPasswordException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "LambdaConfigType":{ - "type":"structure", - "members":{ - "PreSignUp":{"shape":"ArnType"}, - "CustomMessage":{"shape":"ArnType"}, - "PostConfirmation":{"shape":"ArnType"}, - "PreAuthentication":{"shape":"ArnType"}, - "PostAuthentication":{"shape":"ArnType"} - } - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "ListUserPoolClientsRequest":{ - "type":"structure", - "required":["UserPoolId"], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "MaxResults":{"shape":"QueryLimit"}, - "NextToken":{"shape":"PaginationKey"} - } - }, - "ListUserPoolClientsResponse":{ - "type":"structure", - "members":{ - "UserPoolClients":{"shape":"UserPoolClientListType"}, - "NextToken":{"shape":"PaginationKey"} - } - }, - "ListUserPoolsRequest":{ - "type":"structure", - "required":["MaxResults"], - "members":{ - "NextToken":{"shape":"PaginationKeyType"}, - "MaxResults":{"shape":"QueryLimitType"} - } - }, - "ListUserPoolsResponse":{ - "type":"structure", - "members":{ - "UserPools":{"shape":"UserPoolListType"}, - "NextToken":{"shape":"PaginationKeyType"} - } - }, - "ListUsersRequest":{ - "type":"structure", - "required":["UserPoolId"], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "AttributesToGet":{"shape":"SearchedAttributeNamesListType"}, - "Limit":{"shape":"QueryLimitType"}, - "PaginationToken":{"shape":"SearchPaginationTokenType"}, - "UserStatus":{"shape":"UserStatusType"} - } - }, - "ListUsersResponse":{ - "type":"structure", - "members":{ - "Users":{"shape":"UsersListType"}, - "PaginationToken":{"shape":"SearchPaginationTokenType"} - } - }, - "MFAOptionListType":{ - "type":"list", - "member":{"shape":"MFAOptionType"} - }, - "MFAOptionType":{ - "type":"structure", - "members":{ - "DeliveryMedium":{"shape":"DeliveryMediumType"}, - "AttributeName":{"shape":"AttributeNameType"} - } - }, - "MessageType":{"type":"string"}, - "NotAuthorizedException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "NumberAttributeConstraintsType":{ - "type":"structure", - "members":{ - "MinValue":{"shape":"StringType"}, - "MaxValue":{"shape":"StringType"} - } - }, - "PaginationKey":{ - "type":"string", - "min":1 - }, - "PaginationKeyType":{ - "type":"string", - "min":1, - "pattern":"[\\S]+" - }, - "PasswordPolicyMinLengthType":{ - "type":"integer", - "max":99, - "min":6 - }, - "PasswordPolicyType":{ - "type":"structure", - "members":{ - "MinimumLength":{"shape":"PasswordPolicyMinLengthType"}, - "RequireUppercase":{"shape":"BooleanType"}, - "RequireLowercase":{"shape":"BooleanType"}, - "RequireNumbers":{"shape":"BooleanType"}, - "RequireSymbols":{"shape":"BooleanType"} - } - }, - "PasswordType":{ - "type":"string", - "max":256, - "min":6, - "pattern":"[\\S]+", - "sensitive":true - }, - "QueryLimit":{ - "type":"integer", - "max":60, - "min":1 - }, - "QueryLimitType":{ - "type":"integer", - "max":60, - "min":1 - }, - "ResendConfirmationCodeRequest":{ - "type":"structure", - "required":[ - "ClientId", - "Username" - ], - "members":{ - "ClientId":{"shape":"ClientIdType"}, - "SecretHash":{"shape":"SecretHashType"}, - "Username":{"shape":"UsernameType"} - } - }, - "ResendConfirmationCodeResponse":{ - "type":"structure", - "members":{ - "CodeDeliveryDetails":{"shape":"CodeDeliveryDetailsType"} - } - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "SchemaAttributeType":{ - "type":"structure", - "members":{ - "Name":{"shape":"CustomAttributeNameType"}, - "AttributeDataType":{"shape":"AttributeDataType"}, - "DeveloperOnlyAttribute":{"shape":"BooleanType"}, - "Mutable":{"shape":"BooleanType"}, - "Required":{"shape":"BooleanType"}, - "NumberAttributeConstraints":{"shape":"NumberAttributeConstraintsType"}, - "StringAttributeConstraints":{"shape":"StringAttributeConstraintsType"} - } - }, - "SchemaAttributesListType":{ - "type":"list", - "member":{"shape":"SchemaAttributeType"}, - "max":50, - "min":1 - }, - "SearchPaginationTokenType":{ - "type":"string", - "min":1 - }, - "SearchedAttributeNamesListType":{ - "type":"list", - "member":{"shape":"AttributeNameType"} - }, - "SecretHashType":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[\\w+=/]+", - "sensitive":true - }, - "SetUserSettingsRequest":{ - "type":"structure", - "required":[ - "AccessToken", - "MFAOptions" - ], - "members":{ - "AccessToken":{"shape":"TokenModelType"}, - "MFAOptions":{"shape":"MFAOptionListType"} - } - }, - "SetUserSettingsResponse":{ - "type":"structure", - "members":{ - } - }, - "SignUpRequest":{ - "type":"structure", - "required":[ - "ClientId", - "Username", - "Password" - ], - "members":{ - "ClientId":{"shape":"ClientIdType"}, - "SecretHash":{"shape":"SecretHashType"}, - "Username":{"shape":"UsernameType"}, - "Password":{"shape":"PasswordType"}, - "UserAttributes":{"shape":"AttributeListType"}, - "ValidationData":{"shape":"AttributeListType"} - } - }, - "SignUpResponse":{ - "type":"structure", - "members":{ - "UserConfirmed":{"shape":"BooleanType"}, - "CodeDeliveryDetails":{"shape":"CodeDeliveryDetailsType"} - } - }, - "SmsVerificationMessageType":{ - "type":"string", - "max":140, - "min":6, - "pattern":".*\\{####\\}.*" - }, - "StatusType":{ - "type":"string", - "enum":[ - "Enabled", - "Disabled" - ] - }, - "StringAttributeConstraintsType":{ - "type":"structure", - "members":{ - "MinLength":{"shape":"StringType"}, - "MaxLength":{"shape":"StringType"} - } - }, - "StringType":{"type":"string"}, - "TokenModelType":{ - "type":"string", - "sensitive":true - }, - "TooManyFailedAttemptsException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "TooManyRequestsException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "UnexpectedLambdaException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "UpdateUserAttributesRequest":{ - "type":"structure", - "required":["UserAttributes"], - "members":{ - "UserAttributes":{"shape":"AttributeListType"}, - "AccessToken":{"shape":"TokenModelType"} - } - }, - "UpdateUserAttributesResponse":{ - "type":"structure", - "members":{ - "CodeDeliveryDetailsList":{"shape":"CodeDeliveryDetailsListType"} - } - }, - "UpdateUserPoolClientRequest":{ - "type":"structure", - "required":[ - "UserPoolId", - "ClientId" - ], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "ClientId":{"shape":"ClientIdType"}, - "ClientName":{"shape":"ClientNameType"} - } - }, - "UpdateUserPoolClientResponse":{ - "type":"structure", - "members":{ - "UserPoolClient":{"shape":"UserPoolClientType"} - } - }, - "UpdateUserPoolRequest":{ - "type":"structure", - "required":["UserPoolId"], - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "Policies":{"shape":"UserPoolPolicyType"}, - "LambdaConfig":{"shape":"LambdaConfigType"}, - "AutoVerifiedAttributes":{"shape":"VerifiedAttributesListType"}, - "SmsVerificationMessage":{"shape":"SmsVerificationMessageType"}, - "EmailVerificationMessage":{"shape":"EmailVerificationMessageType"}, - "EmailVerificationSubject":{"shape":"EmailVerificationSubjectType"}, - "SmsAuthenticationMessage":{"shape":"SmsVerificationMessageType"}, - "MfaConfiguration":{"shape":"UserPoolMfaType"} - } - }, - "UpdateUserPoolResponse":{ - "type":"structure", - "members":{ - } - }, - "UserLambdaValidationException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "UserPoolClientDescription":{ - "type":"structure", - "members":{ - "ClientId":{"shape":"ClientIdType"}, - "UserPoolId":{"shape":"UserPoolIdType"}, - "ClientName":{"shape":"ClientNameType"} - } - }, - "UserPoolClientListType":{ - "type":"list", - "member":{"shape":"UserPoolClientDescription"} - }, - "UserPoolClientType":{ - "type":"structure", - "members":{ - "UserPoolId":{"shape":"UserPoolIdType"}, - "ClientName":{"shape":"ClientNameType"}, - "ClientId":{"shape":"ClientIdType"}, - "ClientSecret":{"shape":"ClientSecretType"}, - "LastModifiedDate":{"shape":"DateType"}, - "CreationDate":{"shape":"DateType"} - } - }, - "UserPoolDescriptionType":{ - "type":"structure", - "members":{ - "Id":{"shape":"UserPoolIdType"}, - "Name":{"shape":"UserPoolNameType"}, - "LambdaConfig":{"shape":"LambdaConfigType"}, - "Status":{"shape":"StatusType"}, - "LastModifiedDate":{"shape":"DateType"}, - "CreationDate":{"shape":"DateType"} - } - }, - "UserPoolIdType":{ - "type":"string", - "max":55, - "min":1, - "pattern":"[\\w-]+.[0-9a-zA-Z-]+" - }, - "UserPoolListType":{ - "type":"list", - "member":{"shape":"UserPoolDescriptionType"} - }, - "UserPoolMfaType":{ - "type":"string", - "enum":[ - "OFF", - "ON", - "OPTIONAL" - ] - }, - "UserPoolNameType":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[\\w\\s+=,.@-]+" - }, - "UserPoolPolicyType":{ - "type":"structure", - "members":{ - "PasswordPolicy":{"shape":"PasswordPolicyType"} - } - }, - "UserPoolType":{ - "type":"structure", - "members":{ - "Id":{"shape":"UserPoolIdType"}, - "Name":{"shape":"UserPoolNameType"}, - "Policies":{"shape":"UserPoolPolicyType"}, - "LambdaConfig":{"shape":"LambdaConfigType"}, - "Status":{"shape":"StatusType"}, - "LastModifiedDate":{"shape":"DateType"}, - "CreationDate":{"shape":"DateType"}, - "SchemaAttributes":{"shape":"SchemaAttributesListType"}, - "AutoVerifiedAttributes":{"shape":"VerifiedAttributesListType"}, - "AliasAttributes":{"shape":"AliasAttributesListType"}, - "SmsVerificationMessage":{"shape":"SmsVerificationMessageType"}, - "EmailVerificationMessage":{"shape":"EmailVerificationMessageType"}, - "EmailVerificationSubject":{"shape":"EmailVerificationSubjectType"}, - "SmsAuthenticationMessage":{"shape":"SmsVerificationMessageType"}, - "MfaConfiguration":{"shape":"UserPoolMfaType"}, - "EstimatedNumberOfUsers":{"shape":"IntegerType"} - } - }, - "UserStatusType":{ - "type":"string", - "enum":[ - "UNCONFIRMED", - "CONFIRMED", - "ARCHIVED", - "COMPROMISED", - "UNKNOWN" - ] - }, - "UserType":{ - "type":"structure", - "members":{ - "Username":{"shape":"UsernameType"}, - "Attributes":{"shape":"AttributeListType"}, - "UserCreateDate":{"shape":"DateType"}, - "UserLastModifiedDate":{"shape":"DateType"}, - "Enabled":{"shape":"BooleanType"}, - "UserStatus":{"shape":"UserStatusType"} - } - }, - "UsernameExistsException":{ - "type":"structure", - "members":{ - "message":{"shape":"MessageType"} - }, - "exception":true - }, - "UsernameType":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+", - "sensitive":true - }, - "UsersListType":{ - "type":"list", - "member":{"shape":"UserType"} - }, - "VerifiedAttributeType":{ - "type":"string", - "enum":[ - "phone_number", - "email" - ] - }, - "VerifiedAttributesListType":{ - "type":"list", - "member":{"shape":"VerifiedAttributeType"} - }, - "VerifyUserAttributeRequest":{ - "type":"structure", - "required":[ - "AttributeName", - "Code" - ], - "members":{ - "AccessToken":{"shape":"TokenModelType"}, - "AttributeName":{"shape":"AttributeNameType"}, - "Code":{"shape":"ConfirmationCodeType"} - } - }, - "VerifyUserAttributeResponse":{ - "type":"structure", - "members":{ - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/docs-2.json deleted file mode 100644 index bd800b6e4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/docs-2.json +++ /dev/null @@ -1,980 +0,0 @@ -{ - "version": "2.0", - "service": "

    You can create a user pool in Amazon Cognito Identity to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies.

    This API reference provides information about user pools in Amazon Cognito Identity, which is a new capability that is available as a beta.

    ", - "operations": { - "AddCustomAttributes": "

    Adds additional user attributes to the user pool schema.

    ", - "AdminConfirmSignUp": "

    Confirms user registration as an admin without using a confirmation code. Works on any user.

    ", - "AdminDeleteUser": "

    Deletes a user as an administrator. Works on any user.

    ", - "AdminDeleteUserAttributes": "

    Deletes the user attributes in a user pool as an administrator. Works on any user.

    ", - "AdminDisableUser": "

    Disables the specified user as an administrator. Works on any user.

    ", - "AdminEnableUser": "

    Enables the specified user as an administrator. Works on any user.

    ", - "AdminGetUser": "

    Gets the specified user by user name in a user pool as an administrator. Works on any user.

    ", - "AdminResetUserPassword": "

    Resets the specified user's password in a user pool as an administrator. Works on any user.

    ", - "AdminSetUserSettings": "

    Sets all the user settings for a specified user name. Works on any user.

    ", - "AdminUpdateUserAttributes": "

    Updates the specified user's attributes, including developer attributes, as an administrator. Works on any user.

    ", - "ChangePassword": "

    Changes the password for a specified user in a user pool.

    ", - "ConfirmForgotPassword": "

    Allows a user to enter a code provided when they reset their password to update their password.

    ", - "ConfirmSignUp": "

    Confirms registration of a user and handles the existing alias from a previous user.

    ", - "CreateUserPool": "

    Creates a new Amazon Cognito user pool and sets the password policy for the pool.

    ", - "CreateUserPoolClient": "

    Creates the user pool client.

    ", - "DeleteUser": "

    Allows a user to delete one's self.

    ", - "DeleteUserAttributes": "

    Deletes the attributes for a user.

    ", - "DeleteUserPool": "

    Deletes the specified Amazon Cognito user pool.

    ", - "DeleteUserPoolClient": "

    Allows the developer to delete the user pool client.

    ", - "DescribeUserPool": "

    Returns the configuration information and metadata of the specified user pool.

    ", - "DescribeUserPoolClient": "

    Client method for returning the configuration information and metadata of the specified user pool client.

    ", - "ForgotPassword": "

    Retrieves the password for the specified client ID or username.

    ", - "GetUser": "

    Gets the user attributes and metadata for a user.

    ", - "GetUserAttributeVerificationCode": "

    Gets the user attribute verification code for the specified attribute name.

    ", - "ListUserPoolClients": "

    Lists the clients that have been created for the specified user pool.

    ", - "ListUserPools": "

    Lists the user pools associated with an AWS account.

    ", - "ListUsers": "

    Lists the users in the Amazon Cognito user pool.

    ", - "ResendConfirmationCode": "

    Resends the confirmation (for confirmation of registration) to a specific user in the user pool.

    ", - "SetUserSettings": "

    Sets the user settings like multi-factor authentication (MFA). If MFA is to be removed for a particular attribute pass the attribute with code delivery as null. If null list is passed, all MFA options are removed.

    ", - "SignUp": "

    Registers the user in the specified user pool and creates a user name, password, and user attributes.

    ", - "UpdateUserAttributes": "

    Allows a user to update a specific attribute (one at a time).

    ", - "UpdateUserPool": "

    Updates the specified user pool with the specified attributes.

    ", - "UpdateUserPoolClient": "

    Allows the developer to update the specified user pool client and password policy.

    ", - "VerifyUserAttribute": "

    Verifies the specified user attributes in the user pool.

    " - }, - "shapes": { - "AddCustomAttributesRequest": { - "base": "

    Represents the request to add custom attributes.

    ", - "refs": { - } - }, - "AddCustomAttributesResponse": { - "base": "

    Represents the response from the server for the request to add custom attributes.

    ", - "refs": { - } - }, - "AdminConfirmSignUpRequest": { - "base": "

    Represents the request to confirm user registration.

    ", - "refs": { - } - }, - "AdminConfirmSignUpResponse": { - "base": "

    Represents the response from the server for the request to confirm registration.

    ", - "refs": { - } - }, - "AdminDeleteUserAttributesRequest": { - "base": "

    Represents the request to delete user attributes as an administrator.

    ", - "refs": { - } - }, - "AdminDeleteUserAttributesResponse": { - "base": "

    Represents the response received from the server for a request to delete user attributes.

    ", - "refs": { - } - }, - "AdminDeleteUserRequest": { - "base": "

    Represents the request to delete a user as an administrator.

    ", - "refs": { - } - }, - "AdminDisableUserRequest": { - "base": "

    Represents the request to disable any user as an administrator.

    ", - "refs": { - } - }, - "AdminDisableUserResponse": { - "base": "

    Represents the response received from the server to disable the user as an administrator.

    ", - "refs": { - } - }, - "AdminEnableUserRequest": { - "base": "

    Represents the request that enables the user as an administrator.

    ", - "refs": { - } - }, - "AdminEnableUserResponse": { - "base": "

    Represents the response from the server for the request to enable a user as an administrator.

    ", - "refs": { - } - }, - "AdminGetUserRequest": { - "base": "

    Represents the request to get the specified user as an administrator.

    ", - "refs": { - } - }, - "AdminGetUserResponse": { - "base": "

    Represents the response from the server from the request to get the specified user as an administrator.

    ", - "refs": { - } - }, - "AdminResetUserPasswordRequest": { - "base": "

    Represents the request to reset a user's password as an administrator.

    ", - "refs": { - } - }, - "AdminResetUserPasswordResponse": { - "base": "

    Represents the response from the server to reset a user password as an administrator.

    ", - "refs": { - } - }, - "AdminSetUserSettingsRequest": { - "base": "

    Represents the request to set user settings as an administrator.

    ", - "refs": { - } - }, - "AdminSetUserSettingsResponse": { - "base": "

    Represents the response from the server to set user settings as an administrator.

    ", - "refs": { - } - }, - "AdminUpdateUserAttributesRequest": { - "base": "

    Represents the request to update the user's attributes as an administrator.

    ", - "refs": { - } - }, - "AdminUpdateUserAttributesResponse": { - "base": "

    Represents the response from the server for the request to update user attributes as an administrator.

    ", - "refs": { - } - }, - "AliasAttributeType": { - "base": null, - "refs": { - "AliasAttributesListType$member": null - } - }, - "AliasAttributesListType": { - "base": null, - "refs": { - "CreateUserPoolRequest$AliasAttributes": "

    Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.

    ", - "UserPoolType$AliasAttributes": "

    Specifies the attributes that are aliased in a user pool.

    " - } - }, - "AliasExistsException": { - "base": "

    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.

    ", - "refs": { - } - }, - "ArnType": { - "base": null, - "refs": { - "LambdaConfigType$PreSignUp": "

    A pre-registration AWS Lambda trigger.

    ", - "LambdaConfigType$CustomMessage": "

    A custom Message AWS Lambda trigger.

    ", - "LambdaConfigType$PostConfirmation": "

    A post-confirmation AWS Lambda trigger.

    ", - "LambdaConfigType$PreAuthentication": "

    A pre-authentication AWS Lambda trigger.

    ", - "LambdaConfigType$PostAuthentication": "

    A post-authentication AWS Lambda trigger.

    " - } - }, - "AttributeDataType": { - "base": null, - "refs": { - "SchemaAttributeType$AttributeDataType": "

    The attribute data type.

    " - } - }, - "AttributeListType": { - "base": null, - "refs": { - "AdminGetUserResponse$UserAttributes": "

    An array of name-value pairs representing user attributes.

    ", - "AdminUpdateUserAttributesRequest$UserAttributes": "

    An array of name-value pairs representing user attributes.

    ", - "GetUserResponse$UserAttributes": "

    An array of name-value pairs representing user attributes.

    ", - "SignUpRequest$UserAttributes": "

    An array of name-value pairs representing user attributes.

    ", - "SignUpRequest$ValidationData": "

    The validation data in the request to register a user.

    ", - "UpdateUserAttributesRequest$UserAttributes": "

    An array of name-value pairs representing user attributes.

    ", - "UserType$Attributes": "

    A container with information about the user type attributes.

    " - } - }, - "AttributeNameListType": { - "base": null, - "refs": { - "AdminDeleteUserAttributesRequest$UserAttributeNames": "

    An array of strings representing the user attribute names you wish to delete.

    ", - "DeleteUserAttributesRequest$UserAttributeNames": "

    An array of strings representing the user attribute names you wish to delete.

    " - } - }, - "AttributeNameType": { - "base": null, - "refs": { - "AttributeNameListType$member": null, - "AttributeType$Name": "

    The name of the attribute.

    ", - "CodeDeliveryDetailsType$AttributeName": "

    The name of the attribute in the code delivery details type.

    ", - "GetUserAttributeVerificationCodeRequest$AttributeName": "

    The attribute name returned by the server response to get the user attribute verification code.

    ", - "MFAOptionType$AttributeName": "

    The attribute name of the MFA option type.

    ", - "SearchedAttributeNamesListType$member": null, - "VerifyUserAttributeRequest$AttributeName": "

    The attribute name in the request to verify user attributes.

    " - } - }, - "AttributeType": { - "base": "

    Specifies whether the attribute is standard or custom.

    ", - "refs": { - "AttributeListType$member": null - } - }, - "AttributeValueType": { - "base": null, - "refs": { - "AttributeType$Value": "

    The value of the attribute.

    " - } - }, - "BooleanType": { - "base": null, - "refs": { - "AdminGetUserResponse$Enabled": "

    Indicates that the status is enabled.

    ", - "PasswordPolicyType$RequireUppercase": "

    In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.

    ", - "PasswordPolicyType$RequireLowercase": "

    In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.

    ", - "PasswordPolicyType$RequireNumbers": "

    In the password policy that you have set, refers to whether you have required users to use at least one number in their password.

    ", - "PasswordPolicyType$RequireSymbols": "

    In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.

    ", - "SchemaAttributeType$DeveloperOnlyAttribute": "

    Specifies whether the attribute type is developer only.

    ", - "SchemaAttributeType$Mutable": "

    Specifies whether the attribute can be changed once it has been created.

    ", - "SchemaAttributeType$Required": "

    Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.

    ", - "SignUpResponse$UserConfirmed": "

    A response from the server indicating that a user registration has been confirmed.

    ", - "UserType$Enabled": "

    Specifies whether the user is enabled.

    " - } - }, - "ChangePasswordRequest": { - "base": "

    Represents the request to change a user password.

    ", - "refs": { - } - }, - "ChangePasswordResponse": { - "base": "

    The response from the server to the change password request.

    ", - "refs": { - } - }, - "ClientIdType": { - "base": null, - "refs": { - "ConfirmForgotPasswordRequest$ClientId": "

    The ID of the client associated with the user pool.

    ", - "ConfirmSignUpRequest$ClientId": "

    The ID of the client associated with the user pool.

    ", - "DeleteUserPoolClientRequest$ClientId": "

    The ID of the client associated with the user pool.

    ", - "DescribeUserPoolClientRequest$ClientId": "

    The ID of the client associated with the user pool.

    ", - "ForgotPasswordRequest$ClientId": "

    The ID of the client associated with the user pool.

    ", - "ResendConfirmationCodeRequest$ClientId": "

    The ID of the client associated with the user pool.

    ", - "SignUpRequest$ClientId": "

    The ID of the client associated with the user pool.

    ", - "UpdateUserPoolClientRequest$ClientId": "

    The ID of the client associated with the user pool.

    ", - "UserPoolClientDescription$ClientId": "

    The ID of the client associated with the user pool.

    ", - "UserPoolClientType$ClientId": "

    The ID of the client associated with the user pool.

    " - } - }, - "ClientNameType": { - "base": null, - "refs": { - "CreateUserPoolClientRequest$ClientName": "

    The client name for the user pool client you would like to create.

    ", - "UpdateUserPoolClientRequest$ClientName": "

    The client name from the update user pool client request.

    ", - "UserPoolClientDescription$ClientName": "

    The client name from the user pool client description.

    ", - "UserPoolClientType$ClientName": "

    The client name from the user pool request of the client type.

    " - } - }, - "ClientSecretType": { - "base": null, - "refs": { - "UserPoolClientType$ClientSecret": "

    The client secret from the user pool request of the client type.

    " - } - }, - "CodeDeliveryDetailsListType": { - "base": null, - "refs": { - "UpdateUserAttributesResponse$CodeDeliveryDetailsList": "

    The code delivery details list from the server for the request to update user attributes.

    " - } - }, - "CodeDeliveryDetailsType": { - "base": "

    The type of code delivery details being returned from the server.

    ", - "refs": { - "CodeDeliveryDetailsListType$member": null, - "ForgotPasswordResponse$CodeDeliveryDetails": null, - "GetUserAttributeVerificationCodeResponse$CodeDeliveryDetails": "

    The code delivery details returned by the server response to get the user attribute verification code.

    ", - "ResendConfirmationCodeResponse$CodeDeliveryDetails": null, - "SignUpResponse$CodeDeliveryDetails": null - } - }, - "CodeMismatchException": { - "base": "

    This exception is thrown if the provided code does not match what the server was expecting.

    ", - "refs": { - } - }, - "ConcurrentModificationException": { - "base": "

    This exception is thrown if two or more modifications are happening concurrently.

    ", - "refs": { - } - }, - "ConfirmForgotPasswordRequest": { - "base": "

    The request representing the confirmation for a password reset.

    ", - "refs": { - } - }, - "ConfirmForgotPasswordResponse": { - "base": "

    The response from the server that results from a user's request to retrieve a forgotten password.

    ", - "refs": { - } - }, - "ConfirmSignUpRequest": { - "base": "

    Represents the request to confirm registration of a user.

    ", - "refs": { - } - }, - "ConfirmSignUpResponse": { - "base": "

    Represents the response from the server for the registration confirmation.

    ", - "refs": { - } - }, - "ConfirmationCodeType": { - "base": null, - "refs": { - "ConfirmForgotPasswordRequest$ConfirmationCode": "

    The confirmation code sent by a user's request to retrieve a forgotten password.

    ", - "ConfirmSignUpRequest$ConfirmationCode": "

    The confirmation code sent by a user's request to confirm registration.

    ", - "VerifyUserAttributeRequest$Code": "

    The verification code in the request to verify user attributes.

    " - } - }, - "CreateUserPoolClientRequest": { - "base": "

    Represents the request to create a user pool client.

    ", - "refs": { - } - }, - "CreateUserPoolClientResponse": { - "base": "

    Represents the response from the server to create a user pool client.

    ", - "refs": { - } - }, - "CreateUserPoolRequest": { - "base": "

    Represents the request to create a user pool.

    ", - "refs": { - } - }, - "CreateUserPoolResponse": { - "base": "

    Represents the response from the server for the request to create a user pool.

    ", - "refs": { - } - }, - "CustomAttributeNameType": { - "base": null, - "refs": { - "SchemaAttributeType$Name": "

    A schema attribute of the name type.

    " - } - }, - "CustomAttributesListType": { - "base": null, - "refs": { - "AddCustomAttributesRequest$CustomAttributes": "

    An array of custom attributes, such as Mutable and Name.

    " - } - }, - "DateType": { - "base": null, - "refs": { - "AdminGetUserResponse$UserCreateDate": "

    The date the user was created.

    ", - "AdminGetUserResponse$UserLastModifiedDate": "

    The date the user was last modified.

    ", - "UserPoolClientType$LastModifiedDate": "

    The last modified date from the user pool request of the client type.

    ", - "UserPoolClientType$CreationDate": "

    The creation date from the user pool request of the client type.

    ", - "UserPoolDescriptionType$LastModifiedDate": "

    The last modified date in a user pool description.

    ", - "UserPoolDescriptionType$CreationDate": "

    The creation date in a user pool description.

    ", - "UserPoolType$LastModifiedDate": "

    The last modified date of a user pool.

    ", - "UserPoolType$CreationDate": "

    The creation date of a user pool.

    ", - "UserType$UserCreateDate": "

    The creation date of the user.

    ", - "UserType$UserLastModifiedDate": "

    The last modified date of the user.

    " - } - }, - "DeleteUserAttributesRequest": { - "base": "

    Represents the request to delete user attributes.

    ", - "refs": { - } - }, - "DeleteUserAttributesResponse": { - "base": "

    Represents the response from the server to delete user attributes.

    ", - "refs": { - } - }, - "DeleteUserPoolClientRequest": { - "base": "

    Represents the request to delete a user pool client.

    ", - "refs": { - } - }, - "DeleteUserPoolRequest": { - "base": "

    Represents the request to delete a user pool.

    ", - "refs": { - } - }, - "DeleteUserRequest": { - "base": "

    Represents the request to delete a user.

    ", - "refs": { - } - }, - "DeliveryMediumType": { - "base": null, - "refs": { - "CodeDeliveryDetailsType$DeliveryMedium": "

    The delivery medium (email message or phone number).

    ", - "MFAOptionType$DeliveryMedium": "

    The delivery medium (email message or SMS message) to send the MFA code.

    " - } - }, - "DescribeUserPoolClientRequest": { - "base": "

    Represents the request to describe a user pool client.

    ", - "refs": { - } - }, - "DescribeUserPoolClientResponse": { - "base": "

    Represents the response from the server from a request to describe the user pool client.

    ", - "refs": { - } - }, - "DescribeUserPoolRequest": { - "base": "

    Represents the request to describe the user pool.

    ", - "refs": { - } - }, - "DescribeUserPoolResponse": { - "base": "

    Represents the response to describe the user pool.

    ", - "refs": { - } - }, - "EmailVerificationMessageType": { - "base": null, - "refs": { - "CreateUserPoolRequest$EmailVerificationMessage": "

    A string representing the email verification message.

    ", - "UpdateUserPoolRequest$EmailVerificationMessage": "

    The contents of the email verification message.

    ", - "UserPoolType$EmailVerificationMessage": "

    The contents of the email verification message.

    " - } - }, - "EmailVerificationSubjectType": { - "base": null, - "refs": { - "CreateUserPoolRequest$EmailVerificationSubject": "

    A string representing the email verification subject.

    ", - "UpdateUserPoolRequest$EmailVerificationSubject": "

    The subject of the email verfication message

    ", - "UserPoolType$EmailVerificationSubject": "

    The subject of the email verification message.

    " - } - }, - "ExpiredCodeException": { - "base": "

    This exception is thrown if a code has expired.

    ", - "refs": { - } - }, - "ForceAliasCreation": { - "base": null, - "refs": { - "ConfirmSignUpRequest$ForceAliasCreation": "

    Boolean to be specified to force user confirmation irrespective of existing alias. By default set to False. If this parameter is set to True and the phone number/email used for sign up confirmation already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user being confirmed. If set to False, the API will throw an AliasExistsException error.

    " - } - }, - "ForgotPasswordRequest": { - "base": "

    Represents the request to reset a user's password.

    ", - "refs": { - } - }, - "ForgotPasswordResponse": { - "base": "

    Respresents the response from the server regarding the request to reset a password.

    ", - "refs": { - } - }, - "GenerateSecret": { - "base": null, - "refs": { - "CreateUserPoolClientRequest$GenerateSecret": "

    Boolean to specify whether you want to generate a secret for the user pool client being created.

    " - } - }, - "GetUserAttributeVerificationCodeRequest": { - "base": "

    Represents the request to get user attribute verification.

    ", - "refs": { - } - }, - "GetUserAttributeVerificationCodeResponse": { - "base": "

    The verification code response returned by the server response to get the user attribute verification code.

    ", - "refs": { - } - }, - "GetUserRequest": { - "base": "

    Represents the request to get information about the user.

    ", - "refs": { - } - }, - "GetUserResponse": { - "base": "

    Represents the response from the server from the request to get information about the user.

    ", - "refs": { - } - }, - "IntegerType": { - "base": null, - "refs": { - "UserPoolType$EstimatedNumberOfUsers": "

    A number estimating the size of the user pool.

    " - } - }, - "InternalErrorException": { - "base": "

    This exception is thrown when Amazon Cognito encounters an internal error.

    ", - "refs": { - } - }, - "InvalidLambdaResponseException": { - "base": "

    This exception is thrown when the Amazon Cognito service encounters an invalid AWS Lambda response.

    ", - "refs": { - } - }, - "InvalidParameterException": { - "base": "

    This exception is thrown when the Amazon Cognito service encounters an invalid parameter.

    ", - "refs": { - } - }, - "InvalidPasswordException": { - "base": "

    This exception is thrown when the Amazon Cognito service encounters an invalid password.

    ", - "refs": { - } - }, - "LambdaConfigType": { - "base": "

    Specifies the type of configuration for AWS Lambda triggers.

    ", - "refs": { - "CreateUserPoolRequest$LambdaConfig": "

    The Lambda trigger configuration information for the new user pool.

    ", - "UpdateUserPoolRequest$LambdaConfig": "

    The AWS Lambda configuration information from the request to update the user pool.

    ", - "UserPoolDescriptionType$LambdaConfig": "

    The AWS Lambda configuration information in a user pool description.

    ", - "UserPoolType$LambdaConfig": "

    A container describing the AWS Lambda triggers associated with a user pool.

    " - } - }, - "LimitExceededException": { - "base": "

    This exception is thrown when a user exceeds the limit for a requested AWS resource.

    ", - "refs": { - } - }, - "ListUserPoolClientsRequest": { - "base": "

    Represents the request to list the user pool clients.

    ", - "refs": { - } - }, - "ListUserPoolClientsResponse": { - "base": "

    Represents the response from the server that lists user pool clients.

    ", - "refs": { - } - }, - "ListUserPoolsRequest": { - "base": "

    Represents the request to list user pools.

    ", - "refs": { - } - }, - "ListUserPoolsResponse": { - "base": "

    Represents the response to list user pools.

    ", - "refs": { - } - }, - "ListUsersRequest": { - "base": "

    Represents the request to list users.

    ", - "refs": { - } - }, - "ListUsersResponse": { - "base": "

    The response from the request to list users.

    ", - "refs": { - } - }, - "MFAOptionListType": { - "base": null, - "refs": { - "AdminGetUserResponse$MFAOptions": "

    Specifies the options for MFA (e.g., email or phone number).

    ", - "AdminSetUserSettingsRequest$MFAOptions": "

    Specifies the options for MFA (e.g., email or phone number).

    ", - "GetUserResponse$MFAOptions": "

    Specifies the options for MFA (e.g., email or phone number).

    ", - "SetUserSettingsRequest$MFAOptions": "

    Specifies the options for MFA (e.g., email or phone number).

    " - } - }, - "MFAOptionType": { - "base": "

    Specifies the different settings for multi-factor authentication (MFA).

    ", - "refs": { - "MFAOptionListType$member": null - } - }, - "MessageType": { - "base": null, - "refs": { - "AliasExistsException$message": "

    The message sent to the user when an alias exists.

    ", - "CodeMismatchException$message": "

    The message provided when the code mismatch exception is thrown.

    ", - "ConcurrentModificationException$message": "

    The message provided when the concurrent exception is thrown.

    ", - "ExpiredCodeException$message": "

    The message returned when the expired code exception is thrown.

    ", - "InternalErrorException$message": "

    The message returned when Amazon Cognito throws an internal error exception.

    ", - "InvalidLambdaResponseException$message": "

    The message returned when the Amazon Cognito service throws an invalid AWS Lambda response exception.

    ", - "InvalidParameterException$message": "

    The message returned when the Amazon Cognito service throws an invalid parameter exception.

    ", - "InvalidPasswordException$message": "

    The message returned when the Amazon Cognito service throws an invalid user password exception.

    ", - "LimitExceededException$message": "

    The message returned when Amazon Cognito throws a limit exceeded exception.

    ", - "NotAuthorizedException$message": "

    The message returned when the Amazon Cognito service returns a not authorized exception.

    ", - "ResourceNotFoundException$message": "

    The message returned when the Amazon Cognito service returns a resource not found exception.

    ", - "TooManyFailedAttemptsException$message": "

    The message returned when the Amazon Cognito service returns a too many failed attempts exception.

    ", - "TooManyRequestsException$message": "

    The message returned when the Amazon Cognito service returns a too many requests exception.

    ", - "UnexpectedLambdaException$message": "

    The message returned when the Amazon Cognito service returns an unexpected AWS Lambda exception.

    ", - "UserLambdaValidationException$message": "

    The message returned when the Amazon Cognito service returns a user validation exception with the AWS Lambda service.

    ", - "UsernameExistsException$message": "

    The message returned when Amazon Cognito throws a user name exists exception.

    " - } - }, - "NotAuthorizedException": { - "base": "

    This exception gets thrown when a user is not authorized.

    ", - "refs": { - } - }, - "NumberAttributeConstraintsType": { - "base": "

    The minimum and maximum value of an attribute that is of the number data type.

    ", - "refs": { - "SchemaAttributeType$NumberAttributeConstraints": "

    Specifies the constraints for an attribute of the number type.

    " - } - }, - "PaginationKey": { - "base": null, - "refs": { - "ListUserPoolClientsRequest$NextToken": "

    An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

    ", - "ListUserPoolClientsResponse$NextToken": "

    An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

    " - } - }, - "PaginationKeyType": { - "base": null, - "refs": { - "ListUserPoolsRequest$NextToken": "

    An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

    ", - "ListUserPoolsResponse$NextToken": "

    An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

    " - } - }, - "PasswordPolicyMinLengthType": { - "base": null, - "refs": { - "PasswordPolicyType$MinimumLength": "

    The minimum length of the password policy that you have set. Cannot be less than 6.

    " - } - }, - "PasswordPolicyType": { - "base": "

    The password policy type.

    ", - "refs": { - "UserPoolPolicyType$PasswordPolicy": "

    A container with information about the user pool password policy.

    " - } - }, - "PasswordType": { - "base": null, - "refs": { - "ChangePasswordRequest$PreviousPassword": "

    The old password in the change password request.

    ", - "ChangePasswordRequest$ProposedPassword": "

    The new password in the change password request.

    ", - "ConfirmForgotPasswordRequest$Password": "

    The password sent by sent by a user's request to retrieve a forgotten password.

    ", - "SignUpRequest$Password": "

    The password of the user you wish to register.

    " - } - }, - "QueryLimit": { - "base": null, - "refs": { - "ListUserPoolClientsRequest$MaxResults": "

    The maximum number of results you want the request to return when listing the user pool clients.

    " - } - }, - "QueryLimitType": { - "base": null, - "refs": { - "ListUserPoolsRequest$MaxResults": "

    The maximum number of results you want the request to return when listing the user pools.

    ", - "ListUsersRequest$Limit": "

    The limit of the request to list users.

    " - } - }, - "ResendConfirmationCodeRequest": { - "base": "

    Represents the request to resend the confirmation code.

    ", - "refs": { - } - }, - "ResendConfirmationCodeResponse": { - "base": "

    The response from the server when the Amazon Cognito service makes the request to resend a confirmation code.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    This exception is thrown when the Amazon Cognito service cannot find the requested resource.

    ", - "refs": { - } - }, - "SchemaAttributeType": { - "base": "

    Contains information about the schema attribute.

    ", - "refs": { - "CustomAttributesListType$member": null, - "SchemaAttributesListType$member": null - } - }, - "SchemaAttributesListType": { - "base": null, - "refs": { - "UserPoolType$SchemaAttributes": "

    A container with the schema attributes of a user pool.

    " - } - }, - "SearchPaginationTokenType": { - "base": null, - "refs": { - "ListUsersRequest$PaginationToken": "

    An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

    ", - "ListUsersResponse$PaginationToken": "

    An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

    " - } - }, - "SearchedAttributeNamesListType": { - "base": null, - "refs": { - "ListUsersRequest$AttributesToGet": "

    The attributes to get from the request to list users.

    " - } - }, - "SecretHashType": { - "base": null, - "refs": { - "ConfirmForgotPasswordRequest$SecretHash": "

    A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message.

    ", - "ConfirmSignUpRequest$SecretHash": "

    A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message.

    ", - "ForgotPasswordRequest$SecretHash": "

    A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message.

    ", - "ResendConfirmationCodeRequest$SecretHash": "

    A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message.

    ", - "SignUpRequest$SecretHash": "

    A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message.

    " - } - }, - "SetUserSettingsRequest": { - "base": "

    Represents the request to set user settings.

    ", - "refs": { - } - }, - "SetUserSettingsResponse": { - "base": "

    The response from the server for a set user settings request.

    ", - "refs": { - } - }, - "SignUpRequest": { - "base": "

    Represents the request to register a user.

    ", - "refs": { - } - }, - "SignUpResponse": { - "base": "

    The response from the server for a registration request.

    ", - "refs": { - } - }, - "SmsVerificationMessageType": { - "base": null, - "refs": { - "CreateUserPoolRequest$SmsVerificationMessage": "

    A string representing the SMS verification message.

    ", - "CreateUserPoolRequest$SmsAuthenticationMessage": "

    A string representing the SMS authentication message.

    ", - "UpdateUserPoolRequest$SmsVerificationMessage": "

    A container with information about the SMS verification message.

    ", - "UpdateUserPoolRequest$SmsAuthenticationMessage": "

    The contents of the SMS authentication message.

    ", - "UserPoolType$SmsVerificationMessage": "

    The contents of the SMS verification message.

    ", - "UserPoolType$SmsAuthenticationMessage": "

    The contents of the SMS authentication message.

    " - } - }, - "StatusType": { - "base": null, - "refs": { - "UserPoolDescriptionType$Status": "

    The user pool status in a user pool description.

    ", - "UserPoolType$Status": "

    The status of a user pool.

    " - } - }, - "StringAttributeConstraintsType": { - "base": "

    The type of constraints associated with an attribute of the string type.

    ", - "refs": { - "SchemaAttributeType$StringAttributeConstraints": "

    Specifies the constraints for an attribute of the string type.

    " - } - }, - "StringType": { - "base": null, - "refs": { - "CodeDeliveryDetailsType$Destination": "

    The destination for the code delivery details.

    ", - "NumberAttributeConstraintsType$MinValue": "

    The minimum value of an attribute that is of the number data type.

    ", - "NumberAttributeConstraintsType$MaxValue": "

    The maximum value of an attribute that is of the number data type.

    ", - "StringAttributeConstraintsType$MinLength": "

    The minimum length of an attribute value of the string type.

    ", - "StringAttributeConstraintsType$MaxLength": "

    The maximum length of an attribute value of the string type.

    " - } - }, - "TokenModelType": { - "base": null, - "refs": { - "ChangePasswordRequest$AccessToken": "

    The access token in the change password request.

    ", - "DeleteUserAttributesRequest$AccessToken": "

    The access token used in the request to delete user attributes.

    ", - "DeleteUserRequest$AccessToken": "

    The access token from a request to delete a user.

    ", - "GetUserAttributeVerificationCodeRequest$AccessToken": "

    The access token returned by the server response to get the user attribute verification code.

    ", - "GetUserRequest$AccessToken": "

    The access token returned by the server response to get information about the user.

    ", - "SetUserSettingsRequest$AccessToken": "

    The access token for the set user settings request.

    ", - "UpdateUserAttributesRequest$AccessToken": "

    The access token for the request to update user attributes.

    ", - "VerifyUserAttributeRequest$AccessToken": "

    Represents the access token of the request to verify user attributes.

    " - } - }, - "TooManyFailedAttemptsException": { - "base": "

    This exception gets thrown when the user has made too many failed attempts for a given action (e.g., sign in).

    ", - "refs": { - } - }, - "TooManyRequestsException": { - "base": "

    This exception gets thrown when the user has made too many requests for a given operation.

    ", - "refs": { - } - }, - "UnexpectedLambdaException": { - "base": "

    This exception gets thrown when the Amazon Cognito service encounters an unexpected exception with the AWS Lambda service.

    ", - "refs": { - } - }, - "UpdateUserAttributesRequest": { - "base": "

    Represents the request to update user attributes.

    ", - "refs": { - } - }, - "UpdateUserAttributesResponse": { - "base": "

    Represents the response from the server for the request to update user attributes.

    ", - "refs": { - } - }, - "UpdateUserPoolClientRequest": { - "base": "

    Represents the request to update the user pool client.

    ", - "refs": { - } - }, - "UpdateUserPoolClientResponse": { - "base": "

    Represents the response from the server to the request to update the user pool client.

    ", - "refs": { - } - }, - "UpdateUserPoolRequest": { - "base": "

    Represents the request to update the user pool.

    ", - "refs": { - } - }, - "UpdateUserPoolResponse": { - "base": "

    Represents the response from the server when you make a request to update the user pool.

    ", - "refs": { - } - }, - "UserLambdaValidationException": { - "base": "

    This exception gets thrown when the Amazon Cognito service encounters a user validation exception with the AWS Lambda service.

    ", - "refs": { - } - }, - "UserPoolClientDescription": { - "base": "

    The description of the user poool client.

    ", - "refs": { - "UserPoolClientListType$member": null - } - }, - "UserPoolClientListType": { - "base": null, - "refs": { - "ListUserPoolClientsResponse$UserPoolClients": "

    The user pool clients in the response that lists user pool clients.

    " - } - }, - "UserPoolClientType": { - "base": "

    A user pool of the client type.

    ", - "refs": { - "CreateUserPoolClientResponse$UserPoolClient": "

    The user pool client that was just created.

    ", - "DescribeUserPoolClientResponse$UserPoolClient": "

    The user pool client from a server response to describe the user pool client.

    ", - "UpdateUserPoolClientResponse$UserPoolClient": "

    The user pool client value from the response from the server when an update user pool client request is made.

    " - } - }, - "UserPoolDescriptionType": { - "base": "

    A user pool description.

    ", - "refs": { - "UserPoolListType$member": null - } - }, - "UserPoolIdType": { - "base": null, - "refs": { - "AddCustomAttributesRequest$UserPoolId": "

    The user pool ID for the user pool where you want to add custom attributes.

    ", - "AdminConfirmSignUpRequest$UserPoolId": "

    The user pool ID for which you want to confirm user registration.

    ", - "AdminDeleteUserAttributesRequest$UserPoolId": "

    The user pool ID for the user pool where you want to delete user attributes.

    ", - "AdminDeleteUserRequest$UserPoolId": "

    The user pool ID for the user pool where you want to delete the user.

    ", - "AdminDisableUserRequest$UserPoolId": "

    The user pool ID for the user pool where you want to disable the user.

    ", - "AdminEnableUserRequest$UserPoolId": "

    The user pool ID for the user pool where you want to enable the user.

    ", - "AdminGetUserRequest$UserPoolId": "

    The user pool ID for the user pool where you want to get information about the user.

    ", - "AdminResetUserPasswordRequest$UserPoolId": "

    The user pool ID for the user pool where you want to reset the user's password.

    ", - "AdminSetUserSettingsRequest$UserPoolId": "

    The user pool ID for the user pool where you want to set the user's settings, such as MFA options.

    ", - "AdminUpdateUserAttributesRequest$UserPoolId": "

    The user pool ID for the user pool where you want to update user attributes.

    ", - "CreateUserPoolClientRequest$UserPoolId": "

    The user pool ID for the user pool where you want to create a user pool client.

    ", - "DeleteUserPoolClientRequest$UserPoolId": "

    The user pool ID for the user pool where you want to delete the client.

    ", - "DeleteUserPoolRequest$UserPoolId": "

    The user pool ID for the user pool you want to delete.

    ", - "DescribeUserPoolClientRequest$UserPoolId": "

    The user pool ID for the user pool you want to describe.

    ", - "DescribeUserPoolRequest$UserPoolId": "

    The user pool ID for the user pool you want to describe.

    ", - "ListUserPoolClientsRequest$UserPoolId": "

    The user pool ID for the user pool where you want to list user pool clients.

    ", - "ListUsersRequest$UserPoolId": "

    The user pool ID for which you want to list users.

    ", - "UpdateUserPoolClientRequest$UserPoolId": "

    The user pool ID for the user pool where you want to update the user pool client.

    ", - "UpdateUserPoolRequest$UserPoolId": "

    The user pool ID for the user pool you want to update.

    ", - "UserPoolClientDescription$UserPoolId": "

    The user pool ID for the user pool where you want to describe the user pool client.

    ", - "UserPoolClientType$UserPoolId": "

    The user pool ID for the user pool client.

    ", - "UserPoolDescriptionType$Id": "

    The ID in a user pool description.

    ", - "UserPoolType$Id": "

    The ID of the user pool.

    " - } - }, - "UserPoolListType": { - "base": null, - "refs": { - "ListUserPoolsResponse$UserPools": "

    The user pools from the response to list users.

    " - } - }, - "UserPoolMfaType": { - "base": null, - "refs": { - "CreateUserPoolRequest$MfaConfiguration": "

    Specifies MFA configuration details.

    ", - "UpdateUserPoolRequest$MfaConfiguration": "

    Can be one of the following values:

    • OFF - MFA tokens are not required and cannot be specified during user registration.
    • ON - MFA tokens are required for all user registrations. You can only specify required when you are initially creating a user pool.
    • OPTIONAL - Users have the option when registering to create an MFA token.
    ", - "UserPoolType$MfaConfiguration": "

    Can be one of the following values:

    • OFF - MFA tokens are not required and cannot be specified during user registration.
    • ON - MFA tokens are required for all user registrations. You can only specify required when you are initially creating a user pool.
    • OPTIONAL - Users have the option when registering to create an MFA token.
    " - } - }, - "UserPoolNameType": { - "base": null, - "refs": { - "CreateUserPoolRequest$PoolName": "

    A string used to name the user pool.

    ", - "UserPoolDescriptionType$Name": "

    The name in a user pool description.

    ", - "UserPoolType$Name": "

    The name of the user pool.

    " - } - }, - "UserPoolPolicyType": { - "base": "

    The type of policy in a user pool.

    ", - "refs": { - "CreateUserPoolRequest$Policies": "

    The policies associated with the new user pool.

    ", - "UpdateUserPoolRequest$Policies": "

    A container with the policies you wish to update in a user pool.

    ", - "UserPoolType$Policies": "

    A container describing the policies associated with a user pool.

    " - } - }, - "UserPoolType": { - "base": "

    A container with information about the user pool type.

    ", - "refs": { - "CreateUserPoolResponse$UserPool": "

    A container for the user pool details.

    ", - "DescribeUserPoolResponse$UserPool": "

    The container of metadata returned by the server to describe the pool.

    " - } - }, - "UserStatusType": { - "base": null, - "refs": { - "AdminGetUserResponse$UserStatus": "

    The user status. Can be one of the following:

    • UNCONFIRMED - User has been created but not confirmed.
    • CONFIRMED - User has been confirmed.
    • ARCHIVED - User is no longer active.
    • COMPROMISED - User is disabled due to a potential security threat.
    • UNKNOWN - User status is not known.
    ", - "ListUsersRequest$UserStatus": "

    The user status. Can be one of the following:

    • UNCONFIRMED - User has been created but not confirmed.
    • CONFIRMED - User has been confirmed.
    • ARCHIVED - User is no longer active.
    • COMPROMISED - User is disabled due to a potential security threat.
    • UNKNOWN - User status is not known.
    ", - "UserType$UserStatus": "

    The user status. Can be one of the following:

    • UNCONFIRMED - User has been created but not confirmed.
    • CONFIRMED - User has been confirmed.
    • ARCHIVED - User is no longer active.
    • COMPROMISED - User is disabled due to a potential security threat.
    • UNKNOWN - User status is not known.
    " - } - }, - "UserType": { - "base": "

    The user type.

    ", - "refs": { - "UsersListType$member": null - } - }, - "UsernameExistsException": { - "base": "

    This exception is thrown when Amazon Cognito encounters a user name that already exists in the user pool.

    ", - "refs": { - } - }, - "UsernameType": { - "base": null, - "refs": { - "AdminConfirmSignUpRequest$Username": "

    The user name for which you want to confirm user registration.

    ", - "AdminDeleteUserAttributesRequest$Username": "

    The user name of the user from which you would like to delete attributes.

    ", - "AdminDeleteUserRequest$Username": "

    The user name of the user you wish to delete.

    ", - "AdminDisableUserRequest$Username": "

    The user name of the user you wish to disable.

    ", - "AdminEnableUserRequest$Username": "

    The user name of the user you wish to ebable.

    ", - "AdminGetUserRequest$Username": "

    The user name of the user you wish to retrieve.

    ", - "AdminGetUserResponse$Username": "

    The user name of the user about whom you are receiving information.

    ", - "AdminResetUserPasswordRequest$Username": "

    The user name of the user whose password you wish to reset.

    ", - "AdminSetUserSettingsRequest$Username": "

    The user name of the user for whom you wish to set user settings.

    ", - "AdminUpdateUserAttributesRequest$Username": "

    The user name of the user for whom you want to update user attributes.

    ", - "ConfirmForgotPasswordRequest$Username": "

    The user name of the user for whom you want to enter a code to retrieve a forgotten password.

    ", - "ConfirmSignUpRequest$Username": "

    The user name of the user whose registration you wish to confirm.

    ", - "ForgotPasswordRequest$Username": "

    The user name of the user for whom you want to enter a code to retrieve a forgotten password.

    ", - "GetUserResponse$Username": "

    The user name of the user you wish to retrieve from the get user request.

    ", - "ResendConfirmationCodeRequest$Username": "

    The user name of the user to whom you wish to resend a confirmation code.

    ", - "SignUpRequest$Username": "

    The user name of the user you wish to register.

    ", - "UserType$Username": "

    The user name of the user you wish to describe.

    " - } - }, - "UsersListType": { - "base": null, - "refs": { - "ListUsersResponse$Users": "

    The users returned in the request to list users.

    " - } - }, - "VerifiedAttributeType": { - "base": null, - "refs": { - "VerifiedAttributesListType$member": null - } - }, - "VerifiedAttributesListType": { - "base": null, - "refs": { - "CreateUserPoolRequest$AutoVerifiedAttributes": "

    The attributes to be auto-verified. Possible values: email, phone_number.

    ", - "UpdateUserPoolRequest$AutoVerifiedAttributes": "

    The attributes that are automatically verified when the Amazon Cognito service makes a request to update user pools.

    ", - "UserPoolType$AutoVerifiedAttributes": "

    Specifies the attributes that are auto-verified in a user pool.

    " - } - }, - "VerifyUserAttributeRequest": { - "base": "

    Represents the request to verify user attributes.

    ", - "refs": { - } - }, - "VerifyUserAttributeResponse": { - "base": "

    A container representing the response from the server from the request to verify user attributes.

    ", - "refs": { - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cognito-idp/2016-04-18/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/api-2.json deleted file mode 100644 index 9f6f34404..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/api-2.json +++ /dev/null @@ -1,1284 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2014-11-12", - "endpointPrefix":"config", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"Config Service", - "serviceFullName":"AWS Config", - "signatureVersion":"v4", - "targetPrefix":"StarlingDoveService" - }, - "operations":{ - "DeleteConfigRule":{ - "name":"DeleteConfigRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteConfigRuleRequest"}, - "errors":[ - {"shape":"NoSuchConfigRuleException"}, - {"shape":"ResourceInUseException"} - ] - }, - "DeleteDeliveryChannel":{ - "name":"DeleteDeliveryChannel", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDeliveryChannelRequest"}, - "errors":[ - {"shape":"NoSuchDeliveryChannelException"}, - {"shape":"LastDeliveryChannelDeleteFailedException"} - ] - }, - "DeliverConfigSnapshot":{ - "name":"DeliverConfigSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeliverConfigSnapshotRequest"}, - "output":{"shape":"DeliverConfigSnapshotResponse"}, - "errors":[ - {"shape":"NoSuchDeliveryChannelException"}, - {"shape":"NoAvailableConfigurationRecorderException"}, - {"shape":"NoRunningConfigurationRecorderException"} - ] - }, - "DescribeComplianceByConfigRule":{ - "name":"DescribeComplianceByConfigRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeComplianceByConfigRuleRequest"}, - "output":{"shape":"DescribeComplianceByConfigRuleResponse"}, - "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"NoSuchConfigRuleException"} - ] - }, - "DescribeComplianceByResource":{ - "name":"DescribeComplianceByResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeComplianceByResourceRequest"}, - "output":{"shape":"DescribeComplianceByResourceResponse"}, - "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidNextTokenException"} - ] - }, - "DescribeConfigRuleEvaluationStatus":{ - "name":"DescribeConfigRuleEvaluationStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeConfigRuleEvaluationStatusRequest"}, - "output":{"shape":"DescribeConfigRuleEvaluationStatusResponse"}, - "errors":[ - {"shape":"NoSuchConfigRuleException"} - ] - }, - "DescribeConfigRules":{ - "name":"DescribeConfigRules", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeConfigRulesRequest"}, - "output":{"shape":"DescribeConfigRulesResponse"}, - "errors":[ - {"shape":"NoSuchConfigRuleException"} - ] - }, - "DescribeConfigurationRecorderStatus":{ - "name":"DescribeConfigurationRecorderStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeConfigurationRecorderStatusRequest"}, - "output":{"shape":"DescribeConfigurationRecorderStatusResponse"}, - "errors":[ - {"shape":"NoSuchConfigurationRecorderException"} - ] - }, - "DescribeConfigurationRecorders":{ - "name":"DescribeConfigurationRecorders", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeConfigurationRecordersRequest"}, - "output":{"shape":"DescribeConfigurationRecordersResponse"}, - "errors":[ - {"shape":"NoSuchConfigurationRecorderException"} - ] - }, - "DescribeDeliveryChannelStatus":{ - "name":"DescribeDeliveryChannelStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDeliveryChannelStatusRequest"}, - "output":{"shape":"DescribeDeliveryChannelStatusResponse"}, - "errors":[ - {"shape":"NoSuchDeliveryChannelException"} - ] - }, - "DescribeDeliveryChannels":{ - "name":"DescribeDeliveryChannels", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDeliveryChannelsRequest"}, - "output":{"shape":"DescribeDeliveryChannelsResponse"}, - "errors":[ - {"shape":"NoSuchDeliveryChannelException"} - ] - }, - "GetComplianceDetailsByConfigRule":{ - "name":"GetComplianceDetailsByConfigRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetComplianceDetailsByConfigRuleRequest"}, - "output":{"shape":"GetComplianceDetailsByConfigRuleResponse"}, - "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidNextTokenException"}, - {"shape":"NoSuchConfigRuleException"} - ] - }, - "GetComplianceDetailsByResource":{ - "name":"GetComplianceDetailsByResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetComplianceDetailsByResourceRequest"}, - "output":{"shape":"GetComplianceDetailsByResourceResponse"}, - "errors":[ - {"shape":"InvalidParameterValueException"} - ] - }, - "GetComplianceSummaryByConfigRule":{ - "name":"GetComplianceSummaryByConfigRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "output":{"shape":"GetComplianceSummaryByConfigRuleResponse"} - }, - "GetComplianceSummaryByResourceType":{ - "name":"GetComplianceSummaryByResourceType", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetComplianceSummaryByResourceTypeRequest"}, - "output":{"shape":"GetComplianceSummaryByResourceTypeResponse"}, - "errors":[ - {"shape":"InvalidParameterValueException"} - ] - }, - "GetResourceConfigHistory":{ - "name":"GetResourceConfigHistory", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetResourceConfigHistoryRequest"}, - "output":{"shape":"GetResourceConfigHistoryResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"InvalidTimeRangeException"}, - {"shape":"InvalidLimitException"}, - {"shape":"InvalidNextTokenException"}, - {"shape":"NoAvailableConfigurationRecorderException"}, - {"shape":"ResourceNotDiscoveredException"} - ] - }, - "ListDiscoveredResources":{ - "name":"ListDiscoveredResources", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListDiscoveredResourcesRequest"}, - "output":{"shape":"ListDiscoveredResourcesResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"InvalidLimitException"}, - {"shape":"InvalidNextTokenException"}, - {"shape":"NoAvailableConfigurationRecorderException"} - ] - }, - "PutConfigRule":{ - "name":"PutConfigRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutConfigRuleRequest"}, - "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"MaxNumberOfConfigRulesExceededException"}, - {"shape":"ResourceInUseException"}, - {"shape":"InsufficientPermissionsException"} - ] - }, - "PutConfigurationRecorder":{ - "name":"PutConfigurationRecorder", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutConfigurationRecorderRequest"}, - "errors":[ - {"shape":"MaxNumberOfConfigurationRecordersExceededException"}, - {"shape":"InvalidConfigurationRecorderNameException"}, - {"shape":"InvalidRoleException"}, - {"shape":"InvalidRecordingGroupException"} - ] - }, - "PutDeliveryChannel":{ - "name":"PutDeliveryChannel", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutDeliveryChannelRequest"}, - "errors":[ - {"shape":"MaxNumberOfDeliveryChannelsExceededException"}, - {"shape":"NoAvailableConfigurationRecorderException"}, - {"shape":"InvalidDeliveryChannelNameException"}, - {"shape":"NoSuchBucketException"}, - {"shape":"InvalidS3KeyPrefixException"}, - {"shape":"InvalidSNSTopicARNException"}, - {"shape":"InsufficientDeliveryPolicyException"} - ] - }, - "PutEvaluations":{ - "name":"PutEvaluations", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutEvaluationsRequest"}, - "output":{"shape":"PutEvaluationsResponse"}, - "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"InvalidResultTokenException"}, - {"shape":"NoSuchConfigRuleException"} - ] - }, - "StartConfigurationRecorder":{ - "name":"StartConfigurationRecorder", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StartConfigurationRecorderRequest"}, - "errors":[ - {"shape":"NoSuchConfigurationRecorderException"}, - {"shape":"NoAvailableDeliveryChannelException"} - ] - }, - "StopConfigurationRecorder":{ - "name":"StopConfigurationRecorder", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StopConfigurationRecorderRequest"}, - "errors":[ - {"shape":"NoSuchConfigurationRecorderException"} - ] - } - }, - "shapes":{ - "ARN":{"type":"string"}, - "AccountId":{"type":"string"}, - "AllSupported":{"type":"boolean"}, - "AvailabilityZone":{"type":"string"}, - "AwsRegion":{"type":"string"}, - "Boolean":{"type":"boolean"}, - "ChannelName":{ - "type":"string", - "max":256, - "min":1 - }, - "ChronologicalOrder":{ - "type":"string", - "enum":[ - "Reverse", - "Forward" - ] - }, - "Compliance":{ - "type":"structure", - "members":{ - "ComplianceType":{"shape":"ComplianceType"}, - "ComplianceContributorCount":{"shape":"ComplianceContributorCount"} - } - }, - "ComplianceByConfigRule":{ - "type":"structure", - "members":{ - "ConfigRuleName":{"shape":"StringWithCharLimit64"}, - "Compliance":{"shape":"Compliance"} - } - }, - "ComplianceByConfigRules":{ - "type":"list", - "member":{"shape":"ComplianceByConfigRule"} - }, - "ComplianceByResource":{ - "type":"structure", - "members":{ - "ResourceType":{"shape":"StringWithCharLimit256"}, - "ResourceId":{"shape":"StringWithCharLimit256"}, - "Compliance":{"shape":"Compliance"} - } - }, - "ComplianceByResources":{ - "type":"list", - "member":{"shape":"ComplianceByResource"} - }, - "ComplianceContributorCount":{ - "type":"structure", - "members":{ - "CappedCount":{"shape":"Integer"}, - "CapExceeded":{"shape":"Boolean"} - } - }, - "ComplianceResourceTypes":{ - "type":"list", - "member":{"shape":"StringWithCharLimit256"}, - "max":100, - "min":0 - }, - "ComplianceSummariesByResourceType":{ - "type":"list", - "member":{"shape":"ComplianceSummaryByResourceType"} - }, - "ComplianceSummary":{ - "type":"structure", - "members":{ - "CompliantResourceCount":{"shape":"ComplianceContributorCount"}, - "NonCompliantResourceCount":{"shape":"ComplianceContributorCount"}, - "ComplianceSummaryTimestamp":{"shape":"Date"} - } - }, - "ComplianceSummaryByResourceType":{ - "type":"structure", - "members":{ - "ResourceType":{"shape":"StringWithCharLimit256"}, - "ComplianceSummary":{"shape":"ComplianceSummary"} - } - }, - "ComplianceType":{ - "type":"string", - "enum":[ - "COMPLIANT", - "NON_COMPLIANT", - "NOT_APPLICABLE", - "INSUFFICIENT_DATA" - ] - }, - "ComplianceTypes":{ - "type":"list", - "member":{"shape":"ComplianceType"}, - "max":3, - "min":0 - }, - "ConfigExportDeliveryInfo":{ - "type":"structure", - "members":{ - "lastStatus":{"shape":"DeliveryStatus"}, - "lastErrorCode":{"shape":"String"}, - "lastErrorMessage":{"shape":"String"}, - "lastAttemptTime":{"shape":"Date"}, - "lastSuccessfulTime":{"shape":"Date"}, - "nextDeliveryTime":{"shape":"Date"} - } - }, - "ConfigRule":{ - "type":"structure", - "required":["Source"], - "members":{ - "ConfigRuleName":{"shape":"StringWithCharLimit64"}, - "ConfigRuleArn":{"shape":"String"}, - "ConfigRuleId":{"shape":"String"}, - "Description":{"shape":"EmptiableStringWithCharLimit256"}, - "Scope":{"shape":"Scope"}, - "Source":{"shape":"Source"}, - "InputParameters":{"shape":"StringWithCharLimit256"}, - "MaximumExecutionFrequency":{"shape":"MaximumExecutionFrequency"}, - "ConfigRuleState":{"shape":"ConfigRuleState"} - } - }, - "ConfigRuleEvaluationStatus":{ - "type":"structure", - "members":{ - "ConfigRuleName":{"shape":"StringWithCharLimit64"}, - "ConfigRuleArn":{"shape":"String"}, - "ConfigRuleId":{"shape":"String"}, - "LastSuccessfulInvocationTime":{"shape":"Date"}, - "LastFailedInvocationTime":{"shape":"Date"}, - "LastSuccessfulEvaluationTime":{"shape":"Date"}, - "LastFailedEvaluationTime":{"shape":"Date"}, - "FirstActivatedTime":{"shape":"Date"}, - "LastErrorCode":{"shape":"String"}, - "LastErrorMessage":{"shape":"String"}, - "FirstEvaluationStarted":{"shape":"Boolean"} - } - }, - "ConfigRuleEvaluationStatusList":{ - "type":"list", - "member":{"shape":"ConfigRuleEvaluationStatus"} - }, - "ConfigRuleNames":{ - "type":"list", - "member":{"shape":"StringWithCharLimit64"}, - "max":25, - "min":0 - }, - "ConfigRuleState":{ - "type":"string", - "enum":[ - "ACTIVE", - "DELETING" - ] - }, - "ConfigRules":{ - "type":"list", - "member":{"shape":"ConfigRule"} - }, - "ConfigSnapshotDeliveryProperties":{ - "type":"structure", - "members":{ - "deliveryFrequency":{"shape":"MaximumExecutionFrequency"} - } - }, - "ConfigStreamDeliveryInfo":{ - "type":"structure", - "members":{ - "lastStatus":{"shape":"DeliveryStatus"}, - "lastErrorCode":{"shape":"String"}, - "lastErrorMessage":{"shape":"String"}, - "lastStatusChangeTime":{"shape":"Date"} - } - }, - "Configuration":{"type":"string"}, - "ConfigurationItem":{ - "type":"structure", - "members":{ - "version":{"shape":"Version"}, - "accountId":{"shape":"AccountId"}, - "configurationItemCaptureTime":{"shape":"ConfigurationItemCaptureTime"}, - "configurationItemStatus":{"shape":"ConfigurationItemStatus"}, - "configurationStateId":{"shape":"ConfigurationStateId"}, - "configurationItemMD5Hash":{"shape":"ConfigurationItemMD5Hash"}, - "arn":{"shape":"ARN"}, - "resourceType":{"shape":"ResourceType"}, - "resourceId":{"shape":"ResourceId"}, - "resourceName":{"shape":"ResourceName"}, - "awsRegion":{"shape":"AwsRegion"}, - "availabilityZone":{"shape":"AvailabilityZone"}, - "resourceCreationTime":{"shape":"ResourceCreationTime"}, - "tags":{"shape":"Tags"}, - "relatedEvents":{"shape":"RelatedEventList"}, - "relationships":{"shape":"RelationshipList"}, - "configuration":{"shape":"Configuration"} - } - }, - "ConfigurationItemCaptureTime":{"type":"timestamp"}, - "ConfigurationItemList":{ - "type":"list", - "member":{"shape":"ConfigurationItem"} - }, - "ConfigurationItemMD5Hash":{"type":"string"}, - "ConfigurationItemStatus":{ - "type":"string", - "enum":[ - "Ok", - "Failed", - "Discovered", - "Deleted" - ] - }, - "ConfigurationRecorder":{ - "type":"structure", - "members":{ - "name":{"shape":"RecorderName"}, - "roleARN":{"shape":"String"}, - "recordingGroup":{"shape":"RecordingGroup"} - } - }, - "ConfigurationRecorderList":{ - "type":"list", - "member":{"shape":"ConfigurationRecorder"} - }, - "ConfigurationRecorderNameList":{ - "type":"list", - "member":{"shape":"RecorderName"} - }, - "ConfigurationRecorderStatus":{ - "type":"structure", - "members":{ - "name":{"shape":"String"}, - "lastStartTime":{"shape":"Date"}, - "lastStopTime":{"shape":"Date"}, - "recording":{"shape":"Boolean"}, - "lastStatus":{"shape":"RecorderStatus"}, - "lastErrorCode":{"shape":"String"}, - "lastErrorMessage":{"shape":"String"}, - "lastStatusChangeTime":{"shape":"Date"} - } - }, - "ConfigurationRecorderStatusList":{ - "type":"list", - "member":{"shape":"ConfigurationRecorderStatus"} - }, - "ConfigurationStateId":{"type":"string"}, - "Date":{"type":"timestamp"}, - "DeleteConfigRuleRequest":{ - "type":"structure", - "required":["ConfigRuleName"], - "members":{ - "ConfigRuleName":{"shape":"StringWithCharLimit64"} - } - }, - "DeleteDeliveryChannelRequest":{ - "type":"structure", - "required":["DeliveryChannelName"], - "members":{ - "DeliveryChannelName":{"shape":"ChannelName"} - } - }, - "DeliverConfigSnapshotRequest":{ - "type":"structure", - "required":["deliveryChannelName"], - "members":{ - "deliveryChannelName":{"shape":"ChannelName"} - } - }, - "DeliverConfigSnapshotResponse":{ - "type":"structure", - "members":{ - "configSnapshotId":{"shape":"String"} - } - }, - "DeliveryChannel":{ - "type":"structure", - "members":{ - "name":{"shape":"ChannelName"}, - "s3BucketName":{"shape":"String"}, - "s3KeyPrefix":{"shape":"String"}, - "snsTopicARN":{"shape":"String"}, - "configSnapshotDeliveryProperties":{"shape":"ConfigSnapshotDeliveryProperties"} - } - }, - "DeliveryChannelList":{ - "type":"list", - "member":{"shape":"DeliveryChannel"} - }, - "DeliveryChannelNameList":{ - "type":"list", - "member":{"shape":"ChannelName"} - }, - "DeliveryChannelStatus":{ - "type":"structure", - "members":{ - "name":{"shape":"String"}, - "configSnapshotDeliveryInfo":{"shape":"ConfigExportDeliveryInfo"}, - "configHistoryDeliveryInfo":{"shape":"ConfigExportDeliveryInfo"}, - "configStreamDeliveryInfo":{"shape":"ConfigStreamDeliveryInfo"} - } - }, - "DeliveryChannelStatusList":{ - "type":"list", - "member":{"shape":"DeliveryChannelStatus"} - }, - "DeliveryStatus":{ - "type":"string", - "enum":[ - "Success", - "Failure", - "Not_Applicable" - ] - }, - "DescribeComplianceByConfigRuleRequest":{ - "type":"structure", - "members":{ - "ConfigRuleNames":{"shape":"ConfigRuleNames"}, - "ComplianceTypes":{"shape":"ComplianceTypes"}, - "NextToken":{"shape":"String"} - } - }, - "DescribeComplianceByConfigRuleResponse":{ - "type":"structure", - "members":{ - "ComplianceByConfigRules":{"shape":"ComplianceByConfigRules"}, - "NextToken":{"shape":"String"} - } - }, - "DescribeComplianceByResourceRequest":{ - "type":"structure", - "members":{ - "ResourceType":{"shape":"StringWithCharLimit256"}, - "ResourceId":{"shape":"StringWithCharLimit256"}, - "ComplianceTypes":{"shape":"ComplianceTypes"}, - "Limit":{"shape":"Limit"}, - "NextToken":{"shape":"NextToken"} - } - }, - "DescribeComplianceByResourceResponse":{ - "type":"structure", - "members":{ - "ComplianceByResources":{"shape":"ComplianceByResources"}, - "NextToken":{"shape":"NextToken"} - } - }, - "DescribeConfigRuleEvaluationStatusRequest":{ - "type":"structure", - "members":{ - "ConfigRuleNames":{"shape":"ConfigRuleNames"} - } - }, - "DescribeConfigRuleEvaluationStatusResponse":{ - "type":"structure", - "members":{ - "ConfigRulesEvaluationStatus":{"shape":"ConfigRuleEvaluationStatusList"} - } - }, - "DescribeConfigRulesRequest":{ - "type":"structure", - "members":{ - "ConfigRuleNames":{"shape":"ConfigRuleNames"}, - "NextToken":{"shape":"String"} - } - }, - "DescribeConfigRulesResponse":{ - "type":"structure", - "members":{ - "ConfigRules":{"shape":"ConfigRules"}, - "NextToken":{"shape":"String"} - } - }, - "DescribeConfigurationRecorderStatusRequest":{ - "type":"structure", - "members":{ - "ConfigurationRecorderNames":{"shape":"ConfigurationRecorderNameList"} - } - }, - "DescribeConfigurationRecorderStatusResponse":{ - "type":"structure", - "members":{ - "ConfigurationRecordersStatus":{"shape":"ConfigurationRecorderStatusList"} - } - }, - "DescribeConfigurationRecordersRequest":{ - "type":"structure", - "members":{ - "ConfigurationRecorderNames":{"shape":"ConfigurationRecorderNameList"} - } - }, - "DescribeConfigurationRecordersResponse":{ - "type":"structure", - "members":{ - "ConfigurationRecorders":{"shape":"ConfigurationRecorderList"} - } - }, - "DescribeDeliveryChannelStatusRequest":{ - "type":"structure", - "members":{ - "DeliveryChannelNames":{"shape":"DeliveryChannelNameList"} - } - }, - "DescribeDeliveryChannelStatusResponse":{ - "type":"structure", - "members":{ - "DeliveryChannelsStatus":{"shape":"DeliveryChannelStatusList"} - } - }, - "DescribeDeliveryChannelsRequest":{ - "type":"structure", - "members":{ - "DeliveryChannelNames":{"shape":"DeliveryChannelNameList"} - } - }, - "DescribeDeliveryChannelsResponse":{ - "type":"structure", - "members":{ - "DeliveryChannels":{"shape":"DeliveryChannelList"} - } - }, - "EarlierTime":{"type":"timestamp"}, - "EmptiableStringWithCharLimit256":{ - "type":"string", - "max":256, - "min":0 - }, - "Evaluation":{ - "type":"structure", - "required":[ - "ComplianceResourceType", - "ComplianceResourceId", - "ComplianceType", - "OrderingTimestamp" - ], - "members":{ - "ComplianceResourceType":{"shape":"StringWithCharLimit256"}, - "ComplianceResourceId":{"shape":"StringWithCharLimit256"}, - "ComplianceType":{"shape":"ComplianceType"}, - "Annotation":{"shape":"StringWithCharLimit256"}, - "OrderingTimestamp":{"shape":"OrderingTimestamp"} - } - }, - "EvaluationResult":{ - "type":"structure", - "members":{ - "EvaluationResultIdentifier":{"shape":"EvaluationResultIdentifier"}, - "ComplianceType":{"shape":"ComplianceType"}, - "ResultRecordedTime":{"shape":"Date"}, - "ConfigRuleInvokedTime":{"shape":"Date"}, - "Annotation":{"shape":"StringWithCharLimit256"}, - "ResultToken":{"shape":"String"} - } - }, - "EvaluationResultIdentifier":{ - "type":"structure", - "members":{ - "EvaluationResultQualifier":{"shape":"EvaluationResultQualifier"}, - "OrderingTimestamp":{"shape":"Date"} - } - }, - "EvaluationResultQualifier":{ - "type":"structure", - "members":{ - "ConfigRuleName":{"shape":"StringWithCharLimit64"}, - "ResourceType":{"shape":"StringWithCharLimit256"}, - "ResourceId":{"shape":"StringWithCharLimit256"} - } - }, - "EvaluationResults":{ - "type":"list", - "member":{"shape":"EvaluationResult"} - }, - "Evaluations":{ - "type":"list", - "member":{"shape":"Evaluation"}, - "max":100, - "min":0 - }, - "EventSource":{ - "type":"string", - "enum":["aws.config"] - }, - "GetComplianceDetailsByConfigRuleRequest":{ - "type":"structure", - "required":["ConfigRuleName"], - "members":{ - "ConfigRuleName":{"shape":"StringWithCharLimit64"}, - "ComplianceTypes":{"shape":"ComplianceTypes"}, - "Limit":{"shape":"Limit"}, - "NextToken":{"shape":"NextToken"} - } - }, - "GetComplianceDetailsByConfigRuleResponse":{ - "type":"structure", - "members":{ - "EvaluationResults":{"shape":"EvaluationResults"}, - "NextToken":{"shape":"NextToken"} - } - }, - "GetComplianceDetailsByResourceRequest":{ - "type":"structure", - "required":[ - "ResourceType", - "ResourceId" - ], - "members":{ - "ResourceType":{"shape":"StringWithCharLimit256"}, - "ResourceId":{"shape":"StringWithCharLimit256"}, - "ComplianceTypes":{"shape":"ComplianceTypes"}, - "NextToken":{"shape":"String"} - } - }, - "GetComplianceDetailsByResourceResponse":{ - "type":"structure", - "members":{ - "EvaluationResults":{"shape":"EvaluationResults"}, - "NextToken":{"shape":"String"} - } - }, - "GetComplianceSummaryByConfigRuleResponse":{ - "type":"structure", - "members":{ - "ComplianceSummary":{"shape":"ComplianceSummary"} - } - }, - "GetComplianceSummaryByResourceTypeRequest":{ - "type":"structure", - "members":{ - "ResourceTypes":{"shape":"ResourceTypes"} - } - }, - "GetComplianceSummaryByResourceTypeResponse":{ - "type":"structure", - "members":{ - "ComplianceSummariesByResourceType":{"shape":"ComplianceSummariesByResourceType"} - } - }, - "GetResourceConfigHistoryRequest":{ - "type":"structure", - "required":[ - "resourceType", - "resourceId" - ], - "members":{ - "resourceType":{"shape":"ResourceType"}, - "resourceId":{"shape":"ResourceId"}, - "laterTime":{"shape":"LaterTime"}, - "earlierTime":{"shape":"EarlierTime"}, - "chronologicalOrder":{"shape":"ChronologicalOrder"}, - "limit":{"shape":"Limit"}, - "nextToken":{"shape":"NextToken"} - } - }, - "GetResourceConfigHistoryResponse":{ - "type":"structure", - "members":{ - "configurationItems":{"shape":"ConfigurationItemList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "IncludeGlobalResourceTypes":{"type":"boolean"}, - "InsufficientDeliveryPolicyException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InsufficientPermissionsException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "Integer":{"type":"integer"}, - "InvalidConfigurationRecorderNameException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidDeliveryChannelNameException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidLimitException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidNextTokenException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidParameterValueException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidRecordingGroupException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidResultTokenException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidRoleException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidS3KeyPrefixException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidSNSTopicARNException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidTimeRangeException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "LastDeliveryChannelDeleteFailedException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "LaterTime":{"type":"timestamp"}, - "Limit":{ - "type":"integer", - "max":100, - "min":0 - }, - "ListDiscoveredResourcesRequest":{ - "type":"structure", - "required":["resourceType"], - "members":{ - "resourceType":{"shape":"ResourceType"}, - "resourceIds":{"shape":"ResourceIdList"}, - "resourceName":{"shape":"ResourceName"}, - "limit":{"shape":"Limit"}, - "includeDeletedResources":{"shape":"Boolean"}, - "nextToken":{"shape":"NextToken"} - } - }, - "ListDiscoveredResourcesResponse":{ - "type":"structure", - "members":{ - "resourceIdentifiers":{"shape":"ResourceIdentifierList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "MaxNumberOfConfigRulesExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "MaxNumberOfConfigurationRecordersExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "MaxNumberOfDeliveryChannelsExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "MaximumExecutionFrequency":{ - "type":"string", - "enum":[ - "One_Hour", - "Three_Hours", - "Six_Hours", - "Twelve_Hours", - "TwentyFour_Hours" - ] - }, - "MessageType":{ - "type":"string", - "enum":[ - "ConfigurationItemChangeNotification", - "ConfigurationSnapshotDeliveryCompleted" - ] - }, - "Name":{"type":"string"}, - "NextToken":{"type":"string"}, - "NoAvailableConfigurationRecorderException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "NoAvailableDeliveryChannelException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "NoRunningConfigurationRecorderException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "NoSuchBucketException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "NoSuchConfigRuleException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "NoSuchConfigurationRecorderException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "NoSuchDeliveryChannelException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "OrderingTimestamp":{"type":"timestamp"}, - "Owner":{ - "type":"string", - "enum":[ - "CUSTOM_LAMBDA", - "AWS" - ] - }, - "PutConfigRuleRequest":{ - "type":"structure", - "required":["ConfigRule"], - "members":{ - "ConfigRule":{"shape":"ConfigRule"} - } - }, - "PutConfigurationRecorderRequest":{ - "type":"structure", - "required":["ConfigurationRecorder"], - "members":{ - "ConfigurationRecorder":{"shape":"ConfigurationRecorder"} - } - }, - "PutDeliveryChannelRequest":{ - "type":"structure", - "required":["DeliveryChannel"], - "members":{ - "DeliveryChannel":{"shape":"DeliveryChannel"} - } - }, - "PutEvaluationsRequest":{ - "type":"structure", - "required":["ResultToken"], - "members":{ - "Evaluations":{"shape":"Evaluations"}, - "ResultToken":{"shape":"String"} - } - }, - "PutEvaluationsResponse":{ - "type":"structure", - "members":{ - "FailedEvaluations":{"shape":"Evaluations"} - } - }, - "RecorderName":{ - "type":"string", - "max":256, - "min":1 - }, - "RecorderStatus":{ - "type":"string", - "enum":[ - "Pending", - "Success", - "Failure" - ] - }, - "RecordingGroup":{ - "type":"structure", - "members":{ - "allSupported":{"shape":"AllSupported"}, - "includeGlobalResourceTypes":{"shape":"IncludeGlobalResourceTypes"}, - "resourceTypes":{"shape":"ResourceTypeList"} - } - }, - "RelatedEvent":{"type":"string"}, - "RelatedEventList":{ - "type":"list", - "member":{"shape":"RelatedEvent"} - }, - "Relationship":{ - "type":"structure", - "members":{ - "resourceType":{"shape":"ResourceType"}, - "resourceId":{"shape":"ResourceId"}, - "resourceName":{"shape":"ResourceName"}, - "relationshipName":{"shape":"RelationshipName"} - } - }, - "RelationshipList":{ - "type":"list", - "member":{"shape":"Relationship"} - }, - "RelationshipName":{"type":"string"}, - "ResourceCreationTime":{"type":"timestamp"}, - "ResourceDeletionTime":{"type":"timestamp"}, - "ResourceId":{"type":"string"}, - "ResourceIdList":{ - "type":"list", - "member":{"shape":"ResourceId"} - }, - "ResourceIdentifier":{ - "type":"structure", - "members":{ - "resourceType":{"shape":"ResourceType"}, - "resourceId":{"shape":"ResourceId"}, - "resourceName":{"shape":"ResourceName"}, - "resourceDeletionTime":{"shape":"ResourceDeletionTime"} - } - }, - "ResourceIdentifierList":{ - "type":"list", - "member":{"shape":"ResourceIdentifier"} - }, - "ResourceInUseException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "ResourceName":{"type":"string"}, - "ResourceNotDiscoveredException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "ResourceType":{ - "type":"string", - "enum":[ - "AWS::EC2::CustomerGateway", - "AWS::EC2::EIP", - "AWS::EC2::Host", - "AWS::EC2::Instance", - "AWS::EC2::InternetGateway", - "AWS::EC2::NetworkAcl", - "AWS::EC2::NetworkInterface", - "AWS::EC2::RouteTable", - "AWS::EC2::SecurityGroup", - "AWS::EC2::Subnet", - "AWS::CloudTrail::Trail", - "AWS::EC2::Volume", - "AWS::EC2::VPC", - "AWS::EC2::VPNConnection", - "AWS::EC2::VPNGateway", - "AWS::IAM::Group", - "AWS::IAM::Policy", - "AWS::IAM::Role", - "AWS::IAM::User" - ] - }, - "ResourceTypeList":{ - "type":"list", - "member":{"shape":"ResourceType"} - }, - "ResourceTypes":{ - "type":"list", - "member":{"shape":"StringWithCharLimit256"}, - "max":20, - "min":0 - }, - "Scope":{ - "type":"structure", - "members":{ - "ComplianceResourceTypes":{"shape":"ComplianceResourceTypes"}, - "TagKey":{"shape":"StringWithCharLimit128"}, - "TagValue":{"shape":"StringWithCharLimit256"}, - "ComplianceResourceId":{"shape":"StringWithCharLimit256"} - } - }, - "Source":{ - "type":"structure", - "members":{ - "Owner":{"shape":"Owner"}, - "SourceIdentifier":{"shape":"StringWithCharLimit256"}, - "SourceDetails":{"shape":"SourceDetails"} - } - }, - "SourceDetail":{ - "type":"structure", - "members":{ - "EventSource":{"shape":"EventSource"}, - "MessageType":{"shape":"MessageType"} - } - }, - "SourceDetails":{ - "type":"list", - "member":{"shape":"SourceDetail"}, - "max":25, - "min":0 - }, - "StartConfigurationRecorderRequest":{ - "type":"structure", - "required":["ConfigurationRecorderName"], - "members":{ - "ConfigurationRecorderName":{"shape":"RecorderName"} - } - }, - "StopConfigurationRecorderRequest":{ - "type":"structure", - "required":["ConfigurationRecorderName"], - "members":{ - "ConfigurationRecorderName":{"shape":"RecorderName"} - } - }, - "String":{"type":"string"}, - "StringWithCharLimit128":{ - "type":"string", - "max":128, - "min":1 - }, - "StringWithCharLimit256":{ - "type":"string", - "max":256, - "min":1 - }, - "StringWithCharLimit64":{ - "type":"string", - "max":64, - "min":1 - }, - "Tags":{ - "type":"map", - "key":{"shape":"Name"}, - "value":{"shape":"Value"} - }, - "ValidationException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "Value":{"type":"string"}, - "Version":{"type":"string"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/docs-2.json deleted file mode 100644 index 3d0a3cc9c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/docs-2.json +++ /dev/null @@ -1,1050 +0,0 @@ -{ - "version": "2.0", - "service": "AWS Config

    AWS Config provides a way to keep track of the configurations of all the AWS resources associated with your AWS account. You can use AWS Config to get the current and historical configurations of each AWS resource and also to get information about the relationship between the resources. An AWS resource can be an Amazon Compute Cloud (Amazon EC2) instance, an Elastic Block Store (EBS) volume, an Elastic network Interface (ENI), or a security group. For a complete list of resources currently supported by AWS Config, see Supported AWS Resources.

    You can access and manage AWS Config through the AWS Management Console, the AWS Command Line Interface (AWS CLI), the AWS Config API, or the AWS SDKs for AWS Config

    This reference guide contains documentation for the AWS Config API and the AWS CLI commands that you can use to manage AWS Config.

    The AWS Config API uses the Signature Version 4 protocol for signing requests. For more information about how to sign a request with this protocol, see Signature Version 4 Signing Process.

    For detailed information about AWS Config features and their associated actions or commands, as well as how to work with AWS Management Console, see What Is AWS Config? in the AWS Config Developer Guide.

    ", - "operations": { - "DeleteConfigRule": "

    Deletes the specified AWS Config rule and all of its evaluation results.

    AWS Config sets the state of a rule to DELETING until the deletion is complete. You cannot update a rule while it is in this state. If you make a PutConfigRule or DeleteConfigRule request for the rule, you will receive a ResourceInUseException.

    You can check the state of a rule by using the DescribeConfigRules request.

    ", - "DeleteDeliveryChannel": "

    Deletes the specified delivery channel.

    The delivery channel cannot be deleted if it is the only delivery channel and the configuration recorder is still running. To delete the delivery channel, stop the running configuration recorder using the StopConfigurationRecorder action.

    ", - "DeliverConfigSnapshot": "

    Schedules delivery of a configuration snapshot to the Amazon S3 bucket in the specified delivery channel. After the delivery has started, AWS Config sends following notifications using an Amazon SNS topic that you have specified.

    • Notification of starting the delivery.
    • Notification of delivery completed, if the delivery was successfully completed.
    • Notification of delivery failure, if the delivery failed to complete.
    ", - "DescribeComplianceByConfigRule": "

    Indicates whether the specified AWS Config rules are compliant. If a rule is noncompliant, this action returns the number of AWS resources that do not comply with the rule.

    A rule is compliant if all of the evaluated resources comply with it, and it is noncompliant if any of these resources do not comply.

    If AWS Config has no current evaluation results for the rule, it returns INSUFFICIENT_DATA. This result might indicate one of the following conditions:

    • AWS Config has never invoked an evaluation for the rule. To check whether it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime and LastFailedInvocationTime.
    • The rule's AWS Lambda function is failing to send evaluation results to AWS Config. Verify that the role that you assigned to your configuration recorder includes the config:PutEvaluations permission. If the rule is a customer managed rule, verify that the AWS Lambda execution role includes the config:PutEvaluations permission.
    • The rule's AWS Lambda function has returned NOT_APPLICABLE for all evaluation results. This can occur if the resources were deleted or removed from the rule's scope.

    ", - "DescribeComplianceByResource": "

    Indicates whether the specified AWS resources are compliant. If a resource is noncompliant, this action returns the number of AWS Config rules that the resource does not comply with.

    A resource is compliant if it complies with all the AWS Config rules that evaluate it. It is noncompliant if it does not comply with one or more of these rules.

    If AWS Config has no current evaluation results for the resource, it returns INSUFFICIENT_DATA. This result might indicate one of the following conditions about the rules that evaluate the resource:

    • AWS Config has never invoked an evaluation for the rule. To check whether it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime and LastFailedInvocationTime.
    • The rule's AWS Lambda function is failing to send evaluation results to AWS Config. Verify that the role that you assigned to your configuration recorder includes the config:PutEvaluations permission. If the rule is a customer managed rule, verify that the AWS Lambda execution role includes the config:PutEvaluations permission.
    • The rule's AWS Lambda function has returned NOT_APPLICABLE for all evaluation results. This can occur if the resources were deleted or removed from the rule's scope.

    ", - "DescribeConfigRuleEvaluationStatus": "

    Returns status information for each of your AWS managed Config rules. The status includes information such as the last time AWS Config invoked the rule, the last time AWS Config failed to invoke the rule, and the related error for the last failure.

    ", - "DescribeConfigRules": "

    Returns details about your AWS Config rules.

    ", - "DescribeConfigurationRecorderStatus": "

    Returns the current status of the specified configuration recorder. If a configuration recorder is not specified, this action returns the status of all configuration recorder associated with the account.

    Currently, you can specify only one configuration recorder per account.", - "DescribeConfigurationRecorders": "

    Returns the name of one or more specified configuration recorders. If the recorder name is not specified, this action returns the names of all the configuration recorders associated with the account.

    Currently, you can specify only one configuration recorder per account.

    ", - "DescribeDeliveryChannelStatus": "

    Returns the current status of the specified delivery channel. If a delivery channel is not specified, this action returns the current status of all delivery channels associated with the account.

    Currently, you can specify only one delivery channel per account.", - "DescribeDeliveryChannels": "

    Returns details about the specified delivery channel. If a delivery channel is not specified, this action returns the details of all delivery channels associated with the account.

    Currently, you can specify only one delivery channel per account.

    ", - "GetComplianceDetailsByConfigRule": "

    Returns the evaluation results for the specified AWS Config rule. The results indicate which AWS resources were evaluated by the rule, when each resource was last evaluated, and whether each resource complies with the rule.

    ", - "GetComplianceDetailsByResource": "

    Returns the evaluation results for the specified AWS resource. The results indicate which AWS Config rules were used to evaluate the resource, when each rule was last used, and whether the resource complies with each rule.

    ", - "GetComplianceSummaryByConfigRule": "

    Returns the number of AWS Config rules that are compliant and noncompliant, up to a maximum of 25 for each.

    ", - "GetComplianceSummaryByResourceType": "

    Returns the number of resources that are compliant and the number that are noncompliant. You can specify one or more resource types to get these numbers for each resource type. The maximum number returned is 100.

    ", - "GetResourceConfigHistory": "

    Returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval.

    The response is paginated, and by default, AWS Config returns a limit of 10 configuration items per page. You can customize this number with the limit parameter. The response includes a nextToken string, and to get the next page of results, run the request again and enter this string for the nextToken parameter.

    Each call to the API is limited to span a duration of seven days. It is likely that the number of records returned is smaller than the specified limit. In such cases, you can make another call, using the nextToken.

    ", - "ListDiscoveredResources": "

    Accepts a resource type and returns a list of resource identifiers for the resources of that type. A resource identifier includes the resource type, ID, and (if available) the custom resource name. The results consist of resources that AWS Config has discovered, including those that AWS Config is not currently recording. You can narrow the results to include only resources that have specific resource IDs or a resource name.

    You can specify either resource IDs or a resource name but not both in the same request.

    The response is paginated, and by default AWS Config lists 100 resource identifiers on each page. You can customize this number with the limit parameter. The response includes a nextToken string, and to get the next page of results, run the request again and enter this string for the nextToken parameter.

    ", - "PutConfigRule": "

    Adds or updates an AWS Config rule for evaluating whether your AWS resources comply with your desired configurations.

    You can use this action for customer managed Config rules and AWS managed Config rules. A customer managed Config rule is a custom rule that you develop and maintain. An AWS managed Config rule is a customizable, predefined rule that is provided by AWS Config.

    If you are adding a new customer managed Config rule, you must first create the AWS Lambda function that the rule invokes to evaluate your resources. When you use the PutConfigRule action to add the rule to AWS Config, you must specify the Amazon Resource Name (ARN) that AWS Lambda assigns to the function. Specify the ARN for the SourceIdentifier key. This key is part of the Source object, which is part of the ConfigRule object.

    If you are adding a new AWS managed Config rule, specify the rule's identifier for the SourceIdentifier key. To reference AWS managed Config rule identifiers, see Using AWS Managed Config Rules.

    For any new rule that you add, specify the ConfigRuleName in the ConfigRule object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values are generated by AWS Config for new rules.

    If you are updating a rule that you have added previously, specify the rule's ConfigRuleName, ConfigRuleId, or ConfigRuleArn in the ConfigRule data type that you use in this request.

    The maximum number of rules that AWS Config supports is 25.

    For more information about developing and using AWS Config rules, see Evaluating AWS Resource Configurations with AWS Config in the AWS Config Developer Guide.

    ", - "PutConfigurationRecorder": "

    Creates a new configuration recorder to record the selected resource configurations.

    You can use this action to change the role roleARN and/or the recordingGroup of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role.

    Currently, you can specify only one configuration recorder per account.

    If ConfigurationRecorder does not have the recordingGroup parameter specified, the default is to record all supported resource types.

    ", - "PutDeliveryChannel": "

    Creates a new delivery channel object to deliver the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic.

    You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed.

    Currently, you can specify only one delivery channel per account.

    ", - "PutEvaluations": "

    Used by an AWS Lambda function to deliver evaluation results to AWS Config. This action is required in every AWS Lambda function that is invoked by an AWS Config rule.

    ", - "StartConfigurationRecorder": "

    Starts recording configurations of the AWS resources you have selected to record in your AWS account.

    You must have created at least one delivery channel to successfully start the configuration recorder.

    ", - "StopConfigurationRecorder": "

    Stops recording configurations of the AWS resources you have selected to record in your AWS account.

    " - }, - "shapes": { - "ARN": { - "base": null, - "refs": { - "ConfigurationItem$arn": "

    The Amazon Resource Name (ARN) of the resource.

    " - } - }, - "AccountId": { - "base": null, - "refs": { - "ConfigurationItem$accountId": "

    The 12 digit AWS account ID associated with the resource.

    " - } - }, - "AllSupported": { - "base": null, - "refs": { - "RecordingGroup$allSupported": "

    Specifies whether AWS Config records configuration changes for every supported type of regional resource.

    If you set this option to true, when AWS Config adds support for a new type of regional resource, it automatically starts recording resources of that type.

    If you set this option to true, you cannot enumerate a list of resourceTypes.

    " - } - }, - "AvailabilityZone": { - "base": null, - "refs": { - "ConfigurationItem$availabilityZone": "

    The Availability Zone associated with the resource.

    " - } - }, - "AwsRegion": { - "base": null, - "refs": { - "ConfigurationItem$awsRegion": "

    The region where the resource resides.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "ComplianceContributorCount$CapExceeded": "

    Indicates whether the maximum count is reached.

    ", - "ConfigRuleEvaluationStatus$FirstEvaluationStarted": "

    Indicates whether AWS Config has evaluated your resources against the rule at least once.

    • true - AWS Config has evaluated your AWS resources against the rule at least once.
    • false - AWS Config has not once finished evaluating your AWS resources against the rule.
    ", - "ConfigurationRecorderStatus$recording": "

    Specifies whether the recorder is currently recording or not.

    ", - "ListDiscoveredResourcesRequest$includeDeletedResources": "

    Specifies whether AWS Config includes deleted resources in the results. By default, deleted resources are not included.

    " - } - }, - "ChannelName": { - "base": null, - "refs": { - "DeleteDeliveryChannelRequest$DeliveryChannelName": "

    The name of the delivery channel to delete.

    ", - "DeliverConfigSnapshotRequest$deliveryChannelName": "

    The name of the delivery channel through which the snapshot is delivered.

    ", - "DeliveryChannel$name": "

    The name of the delivery channel. By default, AWS Config automatically assigns the name "default" when creating the delivery channel. You cannot change the assigned name.

    ", - "DeliveryChannelNameList$member": null - } - }, - "ChronologicalOrder": { - "base": null, - "refs": { - "GetResourceConfigHistoryRequest$chronologicalOrder": "

    The chronological order for configuration items listed. By default the results are listed in reverse chronological order.

    " - } - }, - "Compliance": { - "base": "

    Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.

    ", - "refs": { - "ComplianceByConfigRule$Compliance": "

    Indicates whether the AWS Config rule is compliant.

    ", - "ComplianceByResource$Compliance": "

    Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.

    " - } - }, - "ComplianceByConfigRule": { - "base": "

    Indicates whether an AWS Config rule is compliant. A rule is compliant if all of the resources that the rule evaluated comply with it, and it is noncompliant if any of these resources do not comply.

    ", - "refs": { - "ComplianceByConfigRules$member": null - } - }, - "ComplianceByConfigRules": { - "base": null, - "refs": { - "DescribeComplianceByConfigRuleResponse$ComplianceByConfigRules": "

    Indicates whether each of the specified AWS Config rules is compliant.

    " - } - }, - "ComplianceByResource": { - "base": "

    Indicates whether an AWS resource that is evaluated according to one or more AWS Config rules is compliant. A resource is compliant if it complies with all of the rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

    ", - "refs": { - "ComplianceByResources$member": null - } - }, - "ComplianceByResources": { - "base": null, - "refs": { - "DescribeComplianceByResourceResponse$ComplianceByResources": "

    Indicates whether the specified AWS resource complies with all of the AWS Config rules that evaluate it.

    " - } - }, - "ComplianceContributorCount": { - "base": "

    The number of AWS resources or AWS Config rules responsible for the current compliance of the item, up to a maximum number.

    ", - "refs": { - "Compliance$ComplianceContributorCount": "

    The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, up to a maximum number.

    ", - "ComplianceSummary$CompliantResourceCount": "

    The number of AWS Config rules or AWS resources that are compliant, up to a maximum of 25 for rules and 100 for resources.

    ", - "ComplianceSummary$NonCompliantResourceCount": "

    The number of AWS Config rules or AWS resources that are noncompliant, up to a maximum of 25 for rules and 100 for resources.

    " - } - }, - "ComplianceResourceTypes": { - "base": null, - "refs": { - "Scope$ComplianceResourceTypes": "

    The resource types of only those AWS resources that you want to trigger an evaluation for the rule. You can only specify one type if you also specify a resource ID for ComplianceResourceId.

    " - } - }, - "ComplianceSummariesByResourceType": { - "base": null, - "refs": { - "GetComplianceSummaryByResourceTypeResponse$ComplianceSummariesByResourceType": "

    The number of resources that are compliant and the number that are noncompliant. If one or more resource types were provided with the request, the numbers are returned for each resource type. The maximum number returned is 100.

    " - } - }, - "ComplianceSummary": { - "base": "

    The number of AWS Config rules or AWS resources that are compliant and noncompliant, up to a maximum.

    ", - "refs": { - "ComplianceSummaryByResourceType$ComplianceSummary": "

    The number of AWS resources that are compliant or noncompliant, up to a maximum of 100 for each compliance.

    ", - "GetComplianceSummaryByConfigRuleResponse$ComplianceSummary": "

    The number of AWS Config rules that are compliant and the number that are noncompliant, up to a maximum of 25 for each.

    " - } - }, - "ComplianceSummaryByResourceType": { - "base": "

    The number of AWS resources of a specific type that are compliant or noncompliant, up to a maximum of 100 for each compliance.

    ", - "refs": { - "ComplianceSummariesByResourceType$member": null - } - }, - "ComplianceType": { - "base": null, - "refs": { - "Compliance$ComplianceType": "

    Indicates whether an AWS resource or AWS Config rule is compliant.

    A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

    A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

    AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

    For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

    ", - "ComplianceTypes$member": null, - "Evaluation$ComplianceType": "

    Indicates whether the AWS resource complies with the AWS Config rule that it was evaluated against.

    For the Evaluation data type, AWS Config supports only the COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE values. AWS Config does not support the INSUFFICIENT_DATA value for this data type.

    Similarly, AWS Config does not accept INSUFFICIENT_DATA as the value for ComplianceType from a PutEvaluations request. For example, an AWS Lambda function for a custom Config rule cannot pass an INSUFFICIENT_DATA value to AWS Config.

    ", - "EvaluationResult$ComplianceType": "

    Indicates whether the AWS resource complies with the AWS Config rule that evaluated it.

    For the EvaluationResult data type, AWS Config supports only the COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE values. AWS Config does not support the INSUFFICIENT_DATA value for the EvaluationResult data type.

    " - } - }, - "ComplianceTypes": { - "base": null, - "refs": { - "DescribeComplianceByConfigRuleRequest$ComplianceTypes": "

    Filters the results by compliance.

    The allowed values are COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA.

    ", - "DescribeComplianceByResourceRequest$ComplianceTypes": "

    Filters the results by compliance.

    The allowed values are COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA.

    ", - "GetComplianceDetailsByConfigRuleRequest$ComplianceTypes": "

    Filters the results by compliance.

    The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE.

    ", - "GetComplianceDetailsByResourceRequest$ComplianceTypes": "

    Filters the results by compliance.

    The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE.

    " - } - }, - "ConfigExportDeliveryInfo": { - "base": "

    A list that contains the status of the delivery of either the snapshot or the configuration history to the specified Amazon S3 bucket.

    ", - "refs": { - "DeliveryChannelStatus$configSnapshotDeliveryInfo": "

    A list containing the status of the delivery of the snapshot to the specified Amazon S3 bucket.

    ", - "DeliveryChannelStatus$configHistoryDeliveryInfo": "

    A list that contains the status of the delivery of the configuration history to the specified Amazon S3 bucket.

    " - } - }, - "ConfigRule": { - "base": "

    An AWS Lambda function that evaluates configuration items to assess whether your AWS resources comply with your desired configurations. This function can run when AWS Config detects a configuration change to an AWS resource, or when it delivers a configuration snapshot of the resources in the account.

    For more information about developing and using AWS Config rules, see Evaluating AWS Resource Configurations with AWS Config in the AWS Config Developer Guide.

    ", - "refs": { - "ConfigRules$member": null, - "PutConfigRuleRequest$ConfigRule": null - } - }, - "ConfigRuleEvaluationStatus": { - "base": "

    Status information for your AWS managed Config rules. The status includes information such as the last time the rule ran, the last time it failed, and the related error for the last failure.

    This action does not return status information about customer managed Config rules.

    ", - "refs": { - "ConfigRuleEvaluationStatusList$member": null - } - }, - "ConfigRuleEvaluationStatusList": { - "base": null, - "refs": { - "DescribeConfigRuleEvaluationStatusResponse$ConfigRulesEvaluationStatus": "

    Status information about your AWS managed Config rules.

    " - } - }, - "ConfigRuleNames": { - "base": null, - "refs": { - "DescribeComplianceByConfigRuleRequest$ConfigRuleNames": "

    Specify one or more AWS Config rule names to filter the results by rule.

    ", - "DescribeConfigRuleEvaluationStatusRequest$ConfigRuleNames": "

    The name of the AWS managed Config rules for which you want status information. If you do not specify any names, AWS Config returns status information for all AWS managed Config rules that you use.

    ", - "DescribeConfigRulesRequest$ConfigRuleNames": "

    The names of the AWS Config rules for which you want details. If you do not specify any names, AWS Config returns details for all your rules.

    " - } - }, - "ConfigRuleState": { - "base": null, - "refs": { - "ConfigRule$ConfigRuleState": "

    Indicates whether the AWS Config rule is active or currently being deleted by AWS Config.

    AWS Config sets the state of a rule to DELETING temporarily after you use the DeleteConfigRule request to delete the rule. After AWS Config finishes deleting a rule, the rule and all of its evaluations are erased and no longer available.

    You cannot add a rule to AWS Config that has the state set to DELETING. If you want to delete a rule, you must use the DeleteConfigRule request.

    " - } - }, - "ConfigRules": { - "base": null, - "refs": { - "DescribeConfigRulesResponse$ConfigRules": "

    The details about your AWS Config rules.

    " - } - }, - "ConfigSnapshotDeliveryProperties": { - "base": "

    Options for how AWS Config delivers configuration snapshots to the Amazon S3 bucket in your delivery channel.

    ", - "refs": { - "DeliveryChannel$configSnapshotDeliveryProperties": null - } - }, - "ConfigStreamDeliveryInfo": { - "base": "

    A list that contains the status of the delivery of the configuration stream notification to the Amazon SNS topic.

    ", - "refs": { - "DeliveryChannelStatus$configStreamDeliveryInfo": "

    A list containing the status of the delivery of the configuration stream notification to the specified Amazon SNS topic.

    " - } - }, - "Configuration": { - "base": null, - "refs": { - "ConfigurationItem$configuration": "

    The description of the resource configuration.

    " - } - }, - "ConfigurationItem": { - "base": "

    A list that contains detailed configurations of a specified resource.

    Currently, the list does not contain information about non-AWS components (for example, applications on your Amazon EC2 instances).

    ", - "refs": { - "ConfigurationItemList$member": null - } - }, - "ConfigurationItemCaptureTime": { - "base": null, - "refs": { - "ConfigurationItem$configurationItemCaptureTime": "

    The time when the configuration recording was initiated.

    " - } - }, - "ConfigurationItemList": { - "base": null, - "refs": { - "GetResourceConfigHistoryResponse$configurationItems": "

    A list that contains the configuration history of one or more resources.

    " - } - }, - "ConfigurationItemMD5Hash": { - "base": null, - "refs": { - "ConfigurationItem$configurationItemMD5Hash": "

    Unique MD5 hash that represents the configuration item's state.

    You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.

    " - } - }, - "ConfigurationItemStatus": { - "base": null, - "refs": { - "ConfigurationItem$configurationItemStatus": "

    The configuration item status.

    " - } - }, - "ConfigurationRecorder": { - "base": "

    An object that represents the recording of configuration changes of an AWS resource.

    ", - "refs": { - "ConfigurationRecorderList$member": null, - "PutConfigurationRecorderRequest$ConfigurationRecorder": "

    The configuration recorder object that records each configuration change made to the resources.

    " - } - }, - "ConfigurationRecorderList": { - "base": null, - "refs": { - "DescribeConfigurationRecordersResponse$ConfigurationRecorders": "

    A list that contains the descriptions of the specified configuration recorders.

    " - } - }, - "ConfigurationRecorderNameList": { - "base": null, - "refs": { - "DescribeConfigurationRecorderStatusRequest$ConfigurationRecorderNames": "

    The name(s) of the configuration recorder. If the name is not specified, the action returns the current status of all the configuration recorders associated with the account.

    ", - "DescribeConfigurationRecordersRequest$ConfigurationRecorderNames": "

    A list of configuration recorder names.

    " - } - }, - "ConfigurationRecorderStatus": { - "base": "

    The current status of the configuration recorder.

    ", - "refs": { - "ConfigurationRecorderStatusList$member": null - } - }, - "ConfigurationRecorderStatusList": { - "base": null, - "refs": { - "DescribeConfigurationRecorderStatusResponse$ConfigurationRecordersStatus": "

    A list that contains status of the specified recorders.

    " - } - }, - "ConfigurationStateId": { - "base": null, - "refs": { - "ConfigurationItem$configurationStateId": "

    An identifier that indicates the ordering of the configuration items of a resource.

    " - } - }, - "Date": { - "base": null, - "refs": { - "ComplianceSummary$ComplianceSummaryTimestamp": "

    The time that AWS Config created the compliance summary.

    ", - "ConfigExportDeliveryInfo$lastAttemptTime": "

    The time of the last attempted delivery.

    ", - "ConfigExportDeliveryInfo$lastSuccessfulTime": "

    The time of the last successful delivery.

    ", - "ConfigExportDeliveryInfo$nextDeliveryTime": "

    The time that the next delivery occurs.

    ", - "ConfigRuleEvaluationStatus$LastSuccessfulInvocationTime": "

    The time that AWS Config last successfully invoked the AWS Config rule to evaluate your AWS resources.

    ", - "ConfigRuleEvaluationStatus$LastFailedInvocationTime": "

    The time that AWS Config last failed to invoke the AWS Config rule to evaluate your AWS resources.

    ", - "ConfigRuleEvaluationStatus$LastSuccessfulEvaluationTime": "

    The time that AWS Config last successfully evaluated your AWS resources against the rule.

    ", - "ConfigRuleEvaluationStatus$LastFailedEvaluationTime": "

    The time that AWS Config last failed to evaluate your AWS resources against the rule.

    ", - "ConfigRuleEvaluationStatus$FirstActivatedTime": "

    The time that you first activated the AWS Config rule.

    ", - "ConfigStreamDeliveryInfo$lastStatusChangeTime": "

    The time from the last status change.

    ", - "ConfigurationRecorderStatus$lastStartTime": "

    The time the recorder was last started.

    ", - "ConfigurationRecorderStatus$lastStopTime": "

    The time the recorder was last stopped.

    ", - "ConfigurationRecorderStatus$lastStatusChangeTime": "

    The time when the status was last changed.

    ", - "EvaluationResult$ResultRecordedTime": "

    The time when AWS Config recorded the evaluation result.

    ", - "EvaluationResult$ConfigRuleInvokedTime": "

    The time when the AWS Config rule evaluated the AWS resource.

    ", - "EvaluationResultIdentifier$OrderingTimestamp": "

    The time of the event that triggered the evaluation of your AWS resources. The time can indicate when AWS Config delivered a configuration item change notification, or it can indicate when AWS Config delivered the configuration snapshot, depending on which event triggered the evaluation.

    " - } - }, - "DeleteConfigRuleRequest": { - "base": null, - "refs": { - } - }, - "DeleteDeliveryChannelRequest": { - "base": "

    The input for the DeleteDeliveryChannel action. The action accepts the following data in JSON format.

    ", - "refs": { - } - }, - "DeliverConfigSnapshotRequest": { - "base": "

    The input for the DeliverConfigSnapshot action.

    ", - "refs": { - } - }, - "DeliverConfigSnapshotResponse": { - "base": "

    The output for the DeliverConfigSnapshot action in JSON format.

    ", - "refs": { - } - }, - "DeliveryChannel": { - "base": "

    A logical container used for storing the configuration changes of an AWS resource.

    ", - "refs": { - "DeliveryChannelList$member": null, - "PutDeliveryChannelRequest$DeliveryChannel": "

    The configuration delivery channel object that delivers the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic.

    " - } - }, - "DeliveryChannelList": { - "base": null, - "refs": { - "DescribeDeliveryChannelsResponse$DeliveryChannels": "

    A list that contains the descriptions of the specified delivery channel.

    " - } - }, - "DeliveryChannelNameList": { - "base": null, - "refs": { - "DescribeDeliveryChannelStatusRequest$DeliveryChannelNames": "

    A list of delivery channel names.

    ", - "DescribeDeliveryChannelsRequest$DeliveryChannelNames": "

    A list of delivery channel names.

    " - } - }, - "DeliveryChannelStatus": { - "base": "

    The status of a specified delivery channel.

    Valid values: Success | Failure

    ", - "refs": { - "DeliveryChannelStatusList$member": null - } - }, - "DeliveryChannelStatusList": { - "base": null, - "refs": { - "DescribeDeliveryChannelStatusResponse$DeliveryChannelsStatus": "

    A list that contains the status of a specified delivery channel.

    " - } - }, - "DeliveryStatus": { - "base": null, - "refs": { - "ConfigExportDeliveryInfo$lastStatus": "

    Status of the last attempted delivery.

    ", - "ConfigStreamDeliveryInfo$lastStatus": "

    Status of the last attempted delivery.

    Note Providing an SNS topic on a DeliveryChannel for AWS Config is optional. If the SNS delivery is turned off, the last status will be Not_Applicable.

    " - } - }, - "DescribeComplianceByConfigRuleRequest": { - "base": null, - "refs": { - } - }, - "DescribeComplianceByConfigRuleResponse": { - "base": null, - "refs": { - } - }, - "DescribeComplianceByResourceRequest": { - "base": null, - "refs": { - } - }, - "DescribeComplianceByResourceResponse": { - "base": null, - "refs": { - } - }, - "DescribeConfigRuleEvaluationStatusRequest": { - "base": null, - "refs": { - } - }, - "DescribeConfigRuleEvaluationStatusResponse": { - "base": null, - "refs": { - } - }, - "DescribeConfigRulesRequest": { - "base": null, - "refs": { - } - }, - "DescribeConfigRulesResponse": { - "base": null, - "refs": { - } - }, - "DescribeConfigurationRecorderStatusRequest": { - "base": "

    The input for the DescribeConfigurationRecorderStatus action.

    ", - "refs": { - } - }, - "DescribeConfigurationRecorderStatusResponse": { - "base": "

    The output for the DescribeConfigurationRecorderStatus action in JSON format.

    ", - "refs": { - } - }, - "DescribeConfigurationRecordersRequest": { - "base": "

    The input for the DescribeConfigurationRecorders action.

    ", - "refs": { - } - }, - "DescribeConfigurationRecordersResponse": { - "base": "

    The output for the DescribeConfigurationRecorders action.

    ", - "refs": { - } - }, - "DescribeDeliveryChannelStatusRequest": { - "base": "

    The input for the DeliveryChannelStatus action.

    ", - "refs": { - } - }, - "DescribeDeliveryChannelStatusResponse": { - "base": "

    The output for the DescribeDeliveryChannelStatus action.

    ", - "refs": { - } - }, - "DescribeDeliveryChannelsRequest": { - "base": "

    The input for the DescribeDeliveryChannels action.

    ", - "refs": { - } - }, - "DescribeDeliveryChannelsResponse": { - "base": "

    The output for the DescribeDeliveryChannels action.

    ", - "refs": { - } - }, - "EarlierTime": { - "base": null, - "refs": { - "GetResourceConfigHistoryRequest$earlierTime": "

    The time stamp that indicates an earlier time. If not specified, the action returns paginated results that contain configuration items that start from when the first configuration item was recorded.

    " - } - }, - "EmptiableStringWithCharLimit256": { - "base": null, - "refs": { - "ConfigRule$Description": "

    The description that you provide for the AWS Config rule.

    " - } - }, - "Evaluation": { - "base": "

    Identifies an AWS resource and indicates whether it complies with the AWS Config rule that it was evaluated against.

    ", - "refs": { - "Evaluations$member": null - } - }, - "EvaluationResult": { - "base": "

    The details of an AWS Config evaluation. Provides the AWS resource that was evaluated, the compliance of the resource, related timestamps, and supplementary information.

    ", - "refs": { - "EvaluationResults$member": null - } - }, - "EvaluationResultIdentifier": { - "base": "

    Uniquely identifies an evaluation result.

    ", - "refs": { - "EvaluationResult$EvaluationResultIdentifier": "

    Uniquely identifies the evaluation result.

    " - } - }, - "EvaluationResultQualifier": { - "base": "

    Identifies an AWS Config rule that evaluated an AWS resource, and provides the type and ID of the resource that the rule evaluated.

    ", - "refs": { - "EvaluationResultIdentifier$EvaluationResultQualifier": "

    Identifies an AWS Config rule used to evaluate an AWS resource, and provides the type and ID of the evaluated resource.

    " - } - }, - "EvaluationResults": { - "base": null, - "refs": { - "GetComplianceDetailsByConfigRuleResponse$EvaluationResults": "

    Indicates whether the AWS resource complies with the specified AWS Config rule.

    ", - "GetComplianceDetailsByResourceResponse$EvaluationResults": "

    Indicates whether the specified AWS resource complies each AWS Config rule.

    " - } - }, - "Evaluations": { - "base": null, - "refs": { - "PutEvaluationsRequest$Evaluations": "

    The assessments that the AWS Lambda function performs. Each evaluation identifies an AWS resource and indicates whether it complies with the AWS Config rule that invokes the AWS Lambda function.

    ", - "PutEvaluationsResponse$FailedEvaluations": "

    Requests that failed because of a client or server error.

    " - } - }, - "EventSource": { - "base": null, - "refs": { - "SourceDetail$EventSource": "

    The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWS resources.

    " - } - }, - "GetComplianceDetailsByConfigRuleRequest": { - "base": null, - "refs": { - } - }, - "GetComplianceDetailsByConfigRuleResponse": { - "base": null, - "refs": { - } - }, - "GetComplianceDetailsByResourceRequest": { - "base": null, - "refs": { - } - }, - "GetComplianceDetailsByResourceResponse": { - "base": null, - "refs": { - } - }, - "GetComplianceSummaryByConfigRuleResponse": { - "base": null, - "refs": { - } - }, - "GetComplianceSummaryByResourceTypeRequest": { - "base": null, - "refs": { - } - }, - "GetComplianceSummaryByResourceTypeResponse": { - "base": null, - "refs": { - } - }, - "GetResourceConfigHistoryRequest": { - "base": "

    The input for the GetResourceConfigHistory action.

    ", - "refs": { - } - }, - "GetResourceConfigHistoryResponse": { - "base": "

    The output for the GetResourceConfigHistory action.

    ", - "refs": { - } - }, - "IncludeGlobalResourceTypes": { - "base": null, - "refs": { - "RecordingGroup$includeGlobalResourceTypes": "

    Specifies whether AWS Config includes all supported types of global resources (for example, IAM resources) with the resources that it records.

    Before you can set this option to true, you must set the allSupported option to true.

    If you set this option to true, when AWS Config adds support for a new type of global resource, it automatically starts recording resources of that type.

    The configuration details for any global resource are the same in all regions. To prevent duplicate configuration items, you should consider customizing AWS Config in only one region to record global resources.

    " - } - }, - "InsufficientDeliveryPolicyException": { - "base": "

    Your Amazon S3 bucket policy does not permit AWS Config to write to it.

    ", - "refs": { - } - }, - "InsufficientPermissionsException": { - "base": "

    Indicates one of the following errors:

    • The rule cannot be created because the IAM role assigned to AWS Config lacks permissions to perform the config:Put* action.
    • The AWS Lambda function cannot be invoked. Check the function ARN, and check the function's permissions.
    ", - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "ComplianceContributorCount$CappedCount": "

    The number of AWS resources or AWS Config rules responsible for the current compliance of the item.

    " - } - }, - "InvalidConfigurationRecorderNameException": { - "base": "

    You have provided a configuration recorder name that is not valid.

    ", - "refs": { - } - }, - "InvalidDeliveryChannelNameException": { - "base": "

    The specified delivery channel name is not valid.

    ", - "refs": { - } - }, - "InvalidLimitException": { - "base": "

    The specified limit is outside the allowable range.

    ", - "refs": { - } - }, - "InvalidNextTokenException": { - "base": "

    The specified next token is invalid. Specify the nextToken string that was returned in the previous response to get the next page of results.

    ", - "refs": { - } - }, - "InvalidParameterValueException": { - "base": "

    One or more of the specified parameters are invalid. Verify that your parameters are valid and try again.

    ", - "refs": { - } - }, - "InvalidRecordingGroupException": { - "base": "

    AWS Config throws an exception if the recording group does not contain a valid list of resource types. Invalid values could also be incorrectly formatted.

    ", - "refs": { - } - }, - "InvalidResultTokenException": { - "base": "

    The result token is invalid.

    ", - "refs": { - } - }, - "InvalidRoleException": { - "base": "

    You have provided a null or empty role ARN.

    ", - "refs": { - } - }, - "InvalidS3KeyPrefixException": { - "base": "

    The specified Amazon S3 key prefix is not valid.

    ", - "refs": { - } - }, - "InvalidSNSTopicARNException": { - "base": "

    The specified Amazon SNS topic does not exist.

    ", - "refs": { - } - }, - "InvalidTimeRangeException": { - "base": "

    The specified time range is not valid. The earlier time is not chronologically before the later time.

    ", - "refs": { - } - }, - "LastDeliveryChannelDeleteFailedException": { - "base": "

    You cannot delete the delivery channel you specified because the configuration recorder is running.

    ", - "refs": { - } - }, - "LaterTime": { - "base": null, - "refs": { - "GetResourceConfigHistoryRequest$laterTime": "

    The time stamp that indicates a later time. If not specified, current time is taken.

    " - } - }, - "Limit": { - "base": null, - "refs": { - "DescribeComplianceByResourceRequest$Limit": "

    The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.

    ", - "GetComplianceDetailsByConfigRuleRequest$Limit": "

    The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.

    ", - "GetResourceConfigHistoryRequest$limit": "

    The maximum number of configuration items returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.

    ", - "ListDiscoveredResourcesRequest$limit": "

    The maximum number of resource identifiers returned on each page. The default is 100. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.

    " - } - }, - "ListDiscoveredResourcesRequest": { - "base": null, - "refs": { - } - }, - "ListDiscoveredResourcesResponse": { - "base": null, - "refs": { - } - }, - "MaxNumberOfConfigRulesExceededException": { - "base": "

    Failed to add the AWS Config rule because the account already contains the maximum number of 25 rules. Consider deleting any deactivated rules before adding new rules.

    ", - "refs": { - } - }, - "MaxNumberOfConfigurationRecordersExceededException": { - "base": "

    You have reached the limit on the number of recorders you can create.

    ", - "refs": { - } - }, - "MaxNumberOfDeliveryChannelsExceededException": { - "base": "

    You have reached the limit on the number of delivery channels you can create.

    ", - "refs": { - } - }, - "MaximumExecutionFrequency": { - "base": null, - "refs": { - "ConfigRule$MaximumExecutionFrequency": "

    The maximum frequency at which the AWS Config rule runs evaluations.

    If your rule is periodic, meaning it runs an evaluation when AWS Config delivers a configuration snapshot, then it cannot run evaluations more frequently than AWS Config delivers the snapshots. For periodic rules, set the value of the MaximumExecutionFrequency key to be equal to or greater than the value of the deliveryFrequency key, which is part of ConfigSnapshotDeliveryProperties. To update the frequency with which AWS Config delivers your snapshots, use the PutDeliveryChannel action.

    ", - "ConfigSnapshotDeliveryProperties$deliveryFrequency": "

    The frequency with which a AWS Config recurringly delivers configuration snapshots.

    " - } - }, - "MessageType": { - "base": null, - "refs": { - "SourceDetail$MessageType": "

    The type of SNS message that triggers AWS Config to run an evaluation. For evaluations that are initiated when AWS Config delivers a configuration item change notification, you must use ConfigurationItemChangeNotification. For evaluations that are initiated when AWS Config delivers a configuration snapshot, you must use ConfigurationSnapshotDeliveryCompleted.

    " - } - }, - "Name": { - "base": null, - "refs": { - "Tags$key": null - } - }, - "NextToken": { - "base": null, - "refs": { - "DescribeComplianceByResourceRequest$NextToken": "

    The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

    ", - "DescribeComplianceByResourceResponse$NextToken": "

    The string that you use in a subsequent request to get the next page of results in a paginated response.

    ", - "GetComplianceDetailsByConfigRuleRequest$NextToken": "

    The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

    ", - "GetComplianceDetailsByConfigRuleResponse$NextToken": "

    The string that you use in a subsequent request to get the next page of results in a paginated response.

    ", - "GetResourceConfigHistoryRequest$nextToken": "

    The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

    ", - "GetResourceConfigHistoryResponse$nextToken": "

    The string that you use in a subsequent request to get the next page of results in a paginated response.

    ", - "ListDiscoveredResourcesRequest$nextToken": "

    The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

    ", - "ListDiscoveredResourcesResponse$nextToken": "

    The string that you use in a subsequent request to get the next page of results in a paginated response.

    " - } - }, - "NoAvailableConfigurationRecorderException": { - "base": "

    There are no configuration recorders available to provide the role needed to describe your resources. Create a configuration recorder.

    ", - "refs": { - } - }, - "NoAvailableDeliveryChannelException": { - "base": "

    There is no delivery channel available to record configurations.

    ", - "refs": { - } - }, - "NoRunningConfigurationRecorderException": { - "base": "

    There is no configuration recorder running.

    ", - "refs": { - } - }, - "NoSuchBucketException": { - "base": "

    The specified Amazon S3 bucket does not exist.

    ", - "refs": { - } - }, - "NoSuchConfigRuleException": { - "base": "

    One or more AWS Config rules in the request are invalid. Verify that the rule names are correct and try again.

    ", - "refs": { - } - }, - "NoSuchConfigurationRecorderException": { - "base": "

    You have specified a configuration recorder that does not exist.

    ", - "refs": { - } - }, - "NoSuchDeliveryChannelException": { - "base": "

    You have specified a delivery channel that does not exist.

    ", - "refs": { - } - }, - "OrderingTimestamp": { - "base": null, - "refs": { - "Evaluation$OrderingTimestamp": "

    The time of the event in AWS Config that triggered the evaluation. For event-based evaluations, the time indicates when AWS Config created the configuration item that triggered the evaluation. For periodic evaluations, the time indicates when AWS Config delivered the configuration snapshot that triggered the evaluation.

    " - } - }, - "Owner": { - "base": null, - "refs": { - "Source$Owner": "

    Indicates whether AWS or the customer owns and manages the AWS Config rule.

    " - } - }, - "PutConfigRuleRequest": { - "base": null, - "refs": { - } - }, - "PutConfigurationRecorderRequest": { - "base": "

    The input for the PutConfigurationRecorder action.

    ", - "refs": { - } - }, - "PutDeliveryChannelRequest": { - "base": "

    The input for the PutDeliveryChannel action.

    ", - "refs": { - } - }, - "PutEvaluationsRequest": { - "base": null, - "refs": { - } - }, - "PutEvaluationsResponse": { - "base": null, - "refs": { - } - }, - "RecorderName": { - "base": null, - "refs": { - "ConfigurationRecorder$name": "

    The name of the recorder. By default, AWS Config automatically assigns the name "default" when creating the configuration recorder. You cannot change the assigned name.

    ", - "ConfigurationRecorderNameList$member": null, - "StartConfigurationRecorderRequest$ConfigurationRecorderName": "

    The name of the recorder object that records each configuration change made to the resources.

    ", - "StopConfigurationRecorderRequest$ConfigurationRecorderName": "

    The name of the recorder object that records each configuration change made to the resources.

    " - } - }, - "RecorderStatus": { - "base": null, - "refs": { - "ConfigurationRecorderStatus$lastStatus": "

    The last (previous) status of the recorder.

    " - } - }, - "RecordingGroup": { - "base": "

    Specifies the types of AWS resource for which AWS Config records configuration changes.

    In the recording group, you specify whether all supported types or specific types of resources are recorded.

    By default, AWS Config records configuration changes for all supported types of regional resources that AWS Config discovers in the region in which it is running. Regional resources are tied to a region and can be used only in that region. Examples of regional resources are EC2 instances and EBS volumes.

    You can also have AWS Config record configuration changes for supported types of global resources (for example, IAM resources). Global resources are not tied to an individual region and can be used in all regions.

    The configuration details for any global resource are the same in all regions. If you customize AWS Config in multiple regions to record global resources, it will create multiple configuration items each time a global resource changes: one configuration item for each region. These configuration items will contain identical data. To prevent duplicate configuration items, you should consider customizing AWS Config in only one region to record global resources, unless you want the configuration items to be available in multiple regions.

    If you don't want AWS Config to record all resources, you can specify which types of resources it will record with the resourceTypes parameter.

    For a list of supported resource types, see Supported resource types.

    For more information, see Selecting Which Resources AWS Config Records.

    ", - "refs": { - "ConfigurationRecorder$recordingGroup": "

    Specifies the types of AWS resource for which AWS Config records configuration changes.

    " - } - }, - "RelatedEvent": { - "base": null, - "refs": { - "RelatedEventList$member": null - } - }, - "RelatedEventList": { - "base": null, - "refs": { - "ConfigurationItem$relatedEvents": "

    A list of CloudTrail event IDs.

    A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What is AWS CloudTrail?.

    An empty field indicates that the current configuration was not initiated by any event.

    " - } - }, - "Relationship": { - "base": "

    The relationship of the related resource to the main resource.

    ", - "refs": { - "RelationshipList$member": null - } - }, - "RelationshipList": { - "base": null, - "refs": { - "ConfigurationItem$relationships": "

    A list of related AWS resources.

    " - } - }, - "RelationshipName": { - "base": null, - "refs": { - "Relationship$relationshipName": "

    The type of relationship with the related resource.

    " - } - }, - "ResourceCreationTime": { - "base": null, - "refs": { - "ConfigurationItem$resourceCreationTime": "

    The time stamp when the resource was created.

    " - } - }, - "ResourceDeletionTime": { - "base": null, - "refs": { - "ResourceIdentifier$resourceDeletionTime": "

    The time that the resource was deleted.

    " - } - }, - "ResourceId": { - "base": null, - "refs": { - "ConfigurationItem$resourceId": "

    The ID of the resource (for example., sg-xxxxxx).

    ", - "GetResourceConfigHistoryRequest$resourceId": "

    The ID of the resource (for example., sg-xxxxxx).

    ", - "Relationship$resourceId": "

    The ID of the related resource (for example, sg-xxxxxx).

    ", - "ResourceIdList$member": null, - "ResourceIdentifier$resourceId": "

    The ID of the resource (for example., sg-xxxxxx).

    " - } - }, - "ResourceIdList": { - "base": null, - "refs": { - "ListDiscoveredResourcesRequest$resourceIds": "

    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.

    " - } - }, - "ResourceIdentifier": { - "base": "

    The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.

    ", - "refs": { - "ResourceIdentifierList$member": null - } - }, - "ResourceIdentifierList": { - "base": null, - "refs": { - "ListDiscoveredResourcesResponse$resourceIdentifiers": "

    The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.

    " - } - }, - "ResourceInUseException": { - "base": "

    The rule is currently being deleted. Wait for a while and try again.

    ", - "refs": { - } - }, - "ResourceName": { - "base": null, - "refs": { - "ConfigurationItem$resourceName": "

    The custom name of the resource, if available.

    ", - "ListDiscoveredResourcesRequest$resourceName": "

    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.

    ", - "Relationship$resourceName": "

    The custom name of the related resource, if available.

    ", - "ResourceIdentifier$resourceName": "

    The custom name of the resource (if available).

    " - } - }, - "ResourceNotDiscoveredException": { - "base": "

    You have specified a resource that is either unknown or has not been discovered.

    ", - "refs": { - } - }, - "ResourceType": { - "base": null, - "refs": { - "ConfigurationItem$resourceType": "

    The type of AWS resource.

    ", - "GetResourceConfigHistoryRequest$resourceType": "

    The resource type.

    ", - "ListDiscoveredResourcesRequest$resourceType": "

    The type of resources that you want AWS Config to list in the response.

    ", - "Relationship$resourceType": "

    The resource type of the related resource.

    ", - "ResourceIdentifier$resourceType": "

    The type of resource.

    ", - "ResourceTypeList$member": null - } - }, - "ResourceTypeList": { - "base": null, - "refs": { - "RecordingGroup$resourceTypes": "

    A comma-separated list that specifies the types of AWS resources for which AWS Config records configuration changes (for example, AWS::EC2::Instance or AWS::CloudTrail::Trail).

    Before you can set this option to true, you must set the allSupported option to false.

    If you set this option to true, when AWS Config adds support for a new type of resource, it will not record resources of that type unless you manually add that type to your recording group.

    For a list of valid resourceTypes values, see the resourceType Value column in Supported AWS Resource Types.

    " - } - }, - "ResourceTypes": { - "base": null, - "refs": { - "GetComplianceSummaryByResourceTypeRequest$ResourceTypes": "

    Specify one or more resource types to get the number of resources that are compliant and the number that are noncompliant for each resource type.

    For this request, you can specify an AWS resource type such as AWS::EC2::Instance, and you can specify that the resource type is an AWS account by specifying AWS::::Account.

    " - } - }, - "Scope": { - "base": "

    Defines which resources trigger an evaluation for an AWS Config rule. The scope can include one or more resource types, a combination of a tag key and value, or a combination of one resource type and one resource ID. Specify a scope to constrain which resources trigger an evaluation for a rule. Otherwise, evaluations for the rule are triggered when any resource in your recording group changes in configuration.

    ", - "refs": { - "ConfigRule$Scope": "

    Defines which resources can trigger an evaluation for the rule. The scope can include one or more resource types, a combination of one resource type and one resource ID, or a combination of a tag key and value. Specify a scope to constrain the resources that can trigger an evaluation for the rule. If you do not specify a scope, evaluations are triggered when any resource in the recording group changes.

    " - } - }, - "Source": { - "base": "

    Provides the AWS Config rule owner (AWS or customer), the rule identifier, and the events that trigger the evaluation of your AWS resources.

    ", - "refs": { - "ConfigRule$Source": "

    Provides the rule owner (AWS or customer), the rule identifier, and the events that cause the function to evaluate your AWS resources.

    " - } - }, - "SourceDetail": { - "base": "

    Provides the source and type of the event that triggers AWS Config to evaluate your AWS resources against a rule.

    ", - "refs": { - "SourceDetails$member": null - } - }, - "SourceDetails": { - "base": null, - "refs": { - "Source$SourceDetails": "

    Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.

    " - } - }, - "StartConfigurationRecorderRequest": { - "base": "

    The input for the StartConfigurationRecorder action.

    ", - "refs": { - } - }, - "StopConfigurationRecorderRequest": { - "base": "

    The input for the StopConfigurationRecorder action.

    ", - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "ConfigExportDeliveryInfo$lastErrorCode": "

    The error code from the last attempted delivery.

    ", - "ConfigExportDeliveryInfo$lastErrorMessage": "

    The error message from the last attempted delivery.

    ", - "ConfigRule$ConfigRuleArn": "

    The Amazon Resource Name (ARN) of the AWS Config rule.

    ", - "ConfigRule$ConfigRuleId": "

    The ID of the AWS Config rule.

    ", - "ConfigRuleEvaluationStatus$ConfigRuleArn": "

    The Amazon Resource Name (ARN) of the AWS Config rule.

    ", - "ConfigRuleEvaluationStatus$ConfigRuleId": "

    The ID of the AWS Config rule.

    ", - "ConfigRuleEvaluationStatus$LastErrorCode": "

    The error code that AWS Config returned when the rule last failed.

    ", - "ConfigRuleEvaluationStatus$LastErrorMessage": "

    The error message that AWS Config returned when the rule last failed.

    ", - "ConfigStreamDeliveryInfo$lastErrorCode": "

    The error code from the last attempted delivery.

    ", - "ConfigStreamDeliveryInfo$lastErrorMessage": "

    The error message from the last attempted delivery.

    ", - "ConfigurationRecorder$roleARN": "

    Amazon Resource Name (ARN) of the IAM role used to describe the AWS resources associated with the account.

    ", - "ConfigurationRecorderStatus$name": "

    The name of the configuration recorder.

    ", - "ConfigurationRecorderStatus$lastErrorCode": "

    The error code indicating that the recording failed.

    ", - "ConfigurationRecorderStatus$lastErrorMessage": "

    The message indicating that the recording failed due to an error.

    ", - "DeliverConfigSnapshotResponse$configSnapshotId": "

    The ID of the snapshot that is being created.

    ", - "DeliveryChannel$s3BucketName": "

    The name of the Amazon S3 bucket used to store configuration history for the delivery channel.

    ", - "DeliveryChannel$s3KeyPrefix": "

    The prefix for the specified Amazon S3 bucket.

    ", - "DeliveryChannel$snsTopicARN": "

    The Amazon Resource Name (ARN) of the SNS topic that AWS Config delivers notifications to.

    ", - "DeliveryChannelStatus$name": "

    The name of the delivery channel.

    ", - "DescribeComplianceByConfigRuleRequest$NextToken": "

    The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

    ", - "DescribeComplianceByConfigRuleResponse$NextToken": "

    The string that you use in a subsequent request to get the next page of results in a paginated response.

    ", - "DescribeConfigRulesRequest$NextToken": "

    The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

    ", - "DescribeConfigRulesResponse$NextToken": "

    The string that you use in a subsequent request to get the next page of results in a paginated response.

    ", - "EvaluationResult$ResultToken": "

    An encrypted token that associates an evaluation with an AWS Config rule. The token identifies the rule, the AWS resource being evaluated, and the event that triggered the evaluation.

    ", - "GetComplianceDetailsByResourceRequest$NextToken": "

    The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

    ", - "GetComplianceDetailsByResourceResponse$NextToken": "

    The string that you use in a subsequent request to get the next page of results in a paginated response.

    ", - "PutEvaluationsRequest$ResultToken": "

    An encrypted token that associates an evaluation with an AWS Config rule. Identifies the rule and the event that triggered the evaluation

    " - } - }, - "StringWithCharLimit128": { - "base": null, - "refs": { - "Scope$TagKey": "

    The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule.

    " - } - }, - "StringWithCharLimit256": { - "base": null, - "refs": { - "ComplianceByResource$ResourceType": "

    The type of the AWS resource that was evaluated.

    ", - "ComplianceByResource$ResourceId": "

    The ID of the AWS resource that was evaluated.

    ", - "ComplianceResourceTypes$member": null, - "ComplianceSummaryByResourceType$ResourceType": "

    The type of AWS resource.

    ", - "ConfigRule$InputParameters": "

    A string in JSON format that is passed to the AWS Config rule Lambda function.

    ", - "DescribeComplianceByResourceRequest$ResourceType": "

    The types of AWS resources for which you want compliance information; for example, AWS::EC2::Instance. For this action, you can specify that the resource type is an AWS account by specifying AWS::::Account.

    ", - "DescribeComplianceByResourceRequest$ResourceId": "

    The ID of the AWS resource for which you want compliance information. You can specify only one resource ID. If you specify a resource ID, you must also specify a type for ResourceType.

    ", - "Evaluation$ComplianceResourceType": "

    The type of AWS resource that was evaluated.

    ", - "Evaluation$ComplianceResourceId": "

    The ID of the AWS resource that was evaluated.

    ", - "Evaluation$Annotation": "

    Supplementary information about how the evaluation determined the compliance.

    ", - "EvaluationResult$Annotation": "

    Supplementary information about how the evaluation determined the compliance.

    ", - "EvaluationResultQualifier$ResourceType": "

    The type of AWS resource that was evaluated.

    ", - "EvaluationResultQualifier$ResourceId": "

    The ID of the evaluated AWS resource.

    ", - "GetComplianceDetailsByResourceRequest$ResourceType": "

    The type of the AWS resource for which you want compliance information.

    ", - "GetComplianceDetailsByResourceRequest$ResourceId": "

    The ID of the AWS resource for which you want compliance information.

    ", - "ResourceTypes$member": null, - "Scope$TagValue": "

    The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. If you specify a value for TagValue, you must also specify a value for TagKey.

    ", - "Scope$ComplianceResourceId": "

    The IDs of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for ComplianceResourceTypes.

    ", - "Source$SourceIdentifier": "

    For AWS managed Config rules, a pre-defined identifier from a list. To reference the list, see Using AWS Managed Config Rules.

    For customer managed Config rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function.

    " - } - }, - "StringWithCharLimit64": { - "base": null, - "refs": { - "ComplianceByConfigRule$ConfigRuleName": "

    The name of the AWS Config rule.

    ", - "ConfigRule$ConfigRuleName": "

    The name that you assign to the AWS Config rule. The name is required if you are adding a new rule.

    ", - "ConfigRuleEvaluationStatus$ConfigRuleName": "

    The name of the AWS Config rule.

    ", - "ConfigRuleNames$member": null, - "DeleteConfigRuleRequest$ConfigRuleName": "

    The name of the AWS Config rule that you want to delete.

    ", - "EvaluationResultQualifier$ConfigRuleName": "

    The name of the AWS Config rule that was used in the evaluation.

    ", - "GetComplianceDetailsByConfigRuleRequest$ConfigRuleName": "

    The name of the AWS Config rule for which you want compliance information.

    " - } - }, - "Tags": { - "base": null, - "refs": { - "ConfigurationItem$tags": "

    A mapping of key value tags associated with the resource.

    " - } - }, - "ValidationException": { - "base": "

    The requested action is not valid.

    ", - "refs": { - } - }, - "Value": { - "base": null, - "refs": { - "Tags$value": null - } - }, - "Version": { - "base": null, - "refs": { - "ConfigurationItem$version": "

    The version number of the resource configuration.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/api-2.json deleted file mode 100644 index ce590fd67..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/api-2.json +++ /dev/null @@ -1,556 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-11-01", - "endpointPrefix":"discovery", - "jsonVersion":"1.1", - "protocol":"json", - "serviceFullName":"AWS Application Discovery Service", - "signatureVersion":"v4", - "targetPrefix":"AWSPoseidonService_V2015_11_01" - }, - "operations":{ - "CreateTags":{ - "name":"CreateTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateTagsRequest"}, - "output":{"shape":"CreateTagsResponse"}, - "errors":[ - {"shape":"AuthorizationErrorException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServerInternalErrorException"} - ] - }, - "DeleteTags":{ - "name":"DeleteTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteTagsRequest"}, - "output":{"shape":"DeleteTagsResponse"}, - "errors":[ - {"shape":"AuthorizationErrorException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServerInternalErrorException"} - ] - }, - "DescribeAgents":{ - "name":"DescribeAgents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAgentsRequest"}, - "output":{"shape":"DescribeAgentsResponse"}, - "errors":[ - {"shape":"AuthorizationErrorException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServerInternalErrorException"} - ] - }, - "DescribeConfigurations":{ - "name":"DescribeConfigurations", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeConfigurationsRequest"}, - "output":{"shape":"DescribeConfigurationsResponse"}, - "errors":[ - {"shape":"AuthorizationErrorException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServerInternalErrorException"} - ] - }, - "DescribeExportConfigurations":{ - "name":"DescribeExportConfigurations", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeExportConfigurationsRequest"}, - "output":{"shape":"DescribeExportConfigurationsResponse"}, - "errors":[ - {"shape":"AuthorizationErrorException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServerInternalErrorException"} - ] - }, - "DescribeTags":{ - "name":"DescribeTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeTagsRequest"}, - "output":{"shape":"DescribeTagsResponse"}, - "errors":[ - {"shape":"AuthorizationErrorException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServerInternalErrorException"} - ] - }, - "ExportConfigurations":{ - "name":"ExportConfigurations", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "output":{"shape":"ExportConfigurationsResponse"}, - "errors":[ - {"shape":"AuthorizationErrorException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServerInternalErrorException"}, - {"shape":"OperationNotPermittedException"} - ] - }, - "ListConfigurations":{ - "name":"ListConfigurations", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListConfigurationsRequest"}, - "output":{"shape":"ListConfigurationsResponse"}, - "errors":[ - {"shape":"AuthorizationErrorException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServerInternalErrorException"} - ] - }, - "StartDataCollectionByAgentIds":{ - "name":"StartDataCollectionByAgentIds", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StartDataCollectionByAgentIdsRequest"}, - "output":{"shape":"StartDataCollectionByAgentIdsResponse"}, - "errors":[ - {"shape":"AuthorizationErrorException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServerInternalErrorException"} - ] - }, - "StopDataCollectionByAgentIds":{ - "name":"StopDataCollectionByAgentIds", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StopDataCollectionByAgentIdsRequest"}, - "output":{"shape":"StopDataCollectionByAgentIdsResponse"}, - "errors":[ - {"shape":"AuthorizationErrorException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServerInternalErrorException"} - ] - } - }, - "shapes":{ - "AgentConfigurationStatus":{ - "type":"structure", - "members":{ - "agentId":{"shape":"String"}, - "operationSucceeded":{"shape":"Boolean"}, - "description":{"shape":"String"} - } - }, - "AgentConfigurationStatusList":{ - "type":"list", - "member":{"shape":"AgentConfigurationStatus"} - }, - "AgentId":{"type":"string"}, - "AgentIds":{ - "type":"list", - "member":{"shape":"AgentId"} - }, - "AgentInfo":{ - "type":"structure", - "members":{ - "agentId":{"shape":"AgentId"}, - "hostName":{"shape":"String"}, - "agentNetworkInfoList":{"shape":"AgentNetworkInfoList"}, - "connectorId":{"shape":"String"}, - "version":{"shape":"String"}, - "health":{"shape":"AgentStatus"} - } - }, - "AgentNetworkInfo":{ - "type":"structure", - "members":{ - "ipAddress":{"shape":"String"}, - "macAddress":{"shape":"String"} - } - }, - "AgentNetworkInfoList":{ - "type":"list", - "member":{"shape":"AgentNetworkInfo"} - }, - "AgentStatus":{ - "type":"string", - "enum":[ - "HEALTHY", - "UNHEALTHY", - "RUNNING", - "UNKNOWN", - "BLACKLISTED", - "SHUTDOWN" - ] - }, - "AgentsInfo":{ - "type":"list", - "member":{"shape":"AgentInfo"} - }, - "AuthorizationErrorException":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - }, - "exception":true - }, - "Boolean":{"type":"boolean"}, - "Condition":{"type":"string"}, - "Configuration":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"} - }, - "ConfigurationId":{"type":"string"}, - "ConfigurationIdList":{ - "type":"list", - "member":{"shape":"ConfigurationId"} - }, - "ConfigurationItemType":{ - "type":"string", - "enum":[ - "SERVER", - "PROCESS", - "CONNECTION" - ] - }, - "ConfigurationTag":{ - "type":"structure", - "members":{ - "configurationType":{"shape":"ConfigurationItemType"}, - "configurationId":{"shape":"ConfigurationId"}, - "key":{"shape":"TagKey"}, - "value":{"shape":"TagValue"}, - "timeOfCreation":{"shape":"TimeStamp"} - } - }, - "ConfigurationTagSet":{ - "type":"list", - "member":{ - "shape":"ConfigurationTag", - "locationName":"item" - } - }, - "Configurations":{ - "type":"list", - "member":{"shape":"Configuration"} - }, - "ConfigurationsDownloadUrl":{"type":"string"}, - "ConfigurationsExportId":{"type":"string"}, - "CreateTagsRequest":{ - "type":"structure", - "required":[ - "configurationIds", - "tags" - ], - "members":{ - "configurationIds":{"shape":"ConfigurationIdList"}, - "tags":{"shape":"TagSet"} - } - }, - "CreateTagsResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteTagsRequest":{ - "type":"structure", - "required":["configurationIds"], - "members":{ - "configurationIds":{"shape":"ConfigurationIdList"}, - "tags":{"shape":"TagSet"} - } - }, - "DeleteTagsResponse":{ - "type":"structure", - "members":{ - } - }, - "DescribeAgentsRequest":{ - "type":"structure", - "members":{ - "agentIds":{"shape":"AgentIds"}, - "maxResults":{"shape":"Integer"}, - "nextToken":{"shape":"NextToken"} - } - }, - "DescribeAgentsResponse":{ - "type":"structure", - "members":{ - "agentsInfo":{"shape":"AgentsInfo"}, - "nextToken":{"shape":"NextToken"} - } - }, - "DescribeConfigurationsAttribute":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"} - }, - "DescribeConfigurationsAttributes":{ - "type":"list", - "member":{"shape":"DescribeConfigurationsAttribute"} - }, - "DescribeConfigurationsRequest":{ - "type":"structure", - "required":["configurationIds"], - "members":{ - "configurationIds":{"shape":"ConfigurationIdList"} - } - }, - "DescribeConfigurationsResponse":{ - "type":"structure", - "members":{ - "configurations":{"shape":"DescribeConfigurationsAttributes"} - } - }, - "DescribeExportConfigurationsRequest":{ - "type":"structure", - "members":{ - "exportIds":{"shape":"ExportIds"}, - "maxResults":{"shape":"Integer"}, - "nextToken":{"shape":"NextToken"} - } - }, - "DescribeExportConfigurationsResponse":{ - "type":"structure", - "members":{ - "exportsInfo":{"shape":"ExportsInfo"}, - "nextToken":{"shape":"NextToken"} - } - }, - "DescribeTagsRequest":{ - "type":"structure", - "members":{ - "filters":{"shape":"TagFilters"}, - "maxResults":{"shape":"Integer"}, - "nextToken":{"shape":"NextToken"} - } - }, - "DescribeTagsResponse":{ - "type":"structure", - "members":{ - "tags":{"shape":"ConfigurationTagSet"}, - "nextToken":{"shape":"NextToken"} - } - }, - "ExportConfigurationsResponse":{ - "type":"structure", - "members":{ - "exportId":{"shape":"ConfigurationsExportId"} - } - }, - "ExportIds":{ - "type":"list", - "member":{"shape":"ConfigurationsExportId"} - }, - "ExportInfo":{ - "type":"structure", - "required":[ - "exportId", - "exportStatus", - "statusMessage", - "exportRequestTime" - ], - "members":{ - "exportId":{"shape":"ConfigurationsExportId"}, - "exportStatus":{"shape":"ExportStatus"}, - "statusMessage":{"shape":"ExportStatusMessage"}, - "configurationsDownloadUrl":{"shape":"ConfigurationsDownloadUrl"}, - "exportRequestTime":{"shape":"ExportRequestTime"} - } - }, - "ExportRequestTime":{"type":"timestamp"}, - "ExportStatus":{ - "type":"string", - "enum":[ - "FAILED", - "SUCCEEDED", - "IN_PROGRESS" - ] - }, - "ExportStatusMessage":{"type":"string"}, - "ExportsInfo":{ - "type":"list", - "member":{"shape":"ExportInfo"} - }, - "Filter":{ - "type":"structure", - "required":[ - "name", - "values", - "condition" - ], - "members":{ - "name":{"shape":"String"}, - "values":{"shape":"FilterValues"}, - "condition":{"shape":"Condition"} - } - }, - "FilterName":{"type":"string"}, - "FilterValue":{"type":"string"}, - "FilterValues":{ - "type":"list", - "member":{ - "shape":"FilterValue", - "locationName":"item" - } - }, - "Filters":{ - "type":"list", - "member":{"shape":"Filter"} - }, - "Integer":{"type":"integer"}, - "InvalidParameterException":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - }, - "exception":true - }, - "InvalidParameterValueException":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - }, - "exception":true - }, - "ListConfigurationsRequest":{ - "type":"structure", - "required":["configurationType"], - "members":{ - "configurationType":{"shape":"ConfigurationItemType"}, - "filters":{"shape":"Filters"}, - "maxResults":{"shape":"Integer"}, - "nextToken":{"shape":"NextToken"} - } - }, - "ListConfigurationsResponse":{ - "type":"structure", - "members":{ - "configurations":{"shape":"Configurations"}, - "nextToken":{"shape":"NextToken"} - } - }, - "Message":{"type":"string"}, - "NextToken":{"type":"string"}, - "OperationNotPermittedException":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - }, - "exception":true - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - }, - "exception":true - }, - "ServerInternalErrorException":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - }, - "exception":true, - "fault":true - }, - "StartDataCollectionByAgentIdsRequest":{ - "type":"structure", - "required":["agentIds"], - "members":{ - "agentIds":{"shape":"AgentIds"} - } - }, - "StartDataCollectionByAgentIdsResponse":{ - "type":"structure", - "members":{ - "agentsConfigurationStatus":{"shape":"AgentConfigurationStatusList"} - } - }, - "StopDataCollectionByAgentIdsRequest":{ - "type":"structure", - "required":["agentIds"], - "members":{ - "agentIds":{"shape":"AgentIds"} - } - }, - "StopDataCollectionByAgentIdsResponse":{ - "type":"structure", - "members":{ - "agentsConfigurationStatus":{"shape":"AgentConfigurationStatusList"} - } - }, - "String":{"type":"string"}, - "Tag":{ - "type":"structure", - "required":[ - "key", - "value" - ], - "members":{ - "key":{"shape":"TagKey"}, - "value":{"shape":"TagValue"} - } - }, - "TagFilter":{ - "type":"structure", - "required":[ - "name", - "values" - ], - "members":{ - "name":{"shape":"FilterName"}, - "values":{"shape":"FilterValues"} - } - }, - "TagFilters":{ - "type":"list", - "member":{"shape":"TagFilter"} - }, - "TagKey":{"type":"string"}, - "TagSet":{ - "type":"list", - "member":{ - "shape":"Tag", - "locationName":"item" - } - }, - "TagValue":{"type":"string"}, - "TimeStamp":{"type":"timestamp"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/docs-2.json deleted file mode 100644 index cbb9bf5a9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/docs-2.json +++ /dev/null @@ -1,447 +0,0 @@ -{ - "version": "2.0", - "service": "

    The AWS Application Discovery Service helps Systems Integrators quickly and reliably plan application migration projects by automatically identifying applications running in on-premises data centers, their associated dependencies, and their performance profile.

    Planning data center migrations can involve thousands of workloads that are often deeply interdependent. Application discovery and dependency mapping are important early first steps in the migration process, but difficult to perform at scale due to the lack of automated tools.

    The AWS Application Discovery Service automatically collects configuration and usage data from servers to develop a list of applications, how they perform, and how they are interdependent. This information is securely retained in an AWS Application Discovery Service database which you can export as a CSV file into your preferred visualization tool or cloud migration solution to help reduce the complexity and time in planning your cloud migration.

    The Application Discovery Service is currently available for preview. Only customers who are engaged with AWS Professional Services or a certified AWS partner can use the service. To see the list of certified partners and request access to the Application Discovery Service, complete the following preview form.

    This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Discovery Service. The topic for each action shows the API request parameters and the response. Alternatively, you can use one of the AWS SDKs to access an API that is tailored to the programming language or platform that you're using. For more information, see AWS SDKs.

    This guide is intended for use with the AWS Discovery Service User Guide .

    The following are short descriptions of each API action, organized by function.

    Managing AWS Agents Using the Application Discovery Service

    An AWS agent is software that you install on on-premises servers and virtual machines that are targeted for discovery and migration. Agents run on Linux and Windows Server and collect server configuration and activity information about your applications and infrastructure. Specifically, agents collect the following information and send it to the Application Discovery Service using Secure Sockets Layer (SSL) encryption:

    • User information (user name, home directory)

    • Group information (name)

    • List of installed packages

    • List of kernel modules

    • All create and stop process events

    • DNS queries

    • NIC information

    • TCP/UDP process listening ports

    • TCPV4/V6 connections

    • Operating system information

    • System performance

    • Process performance

    The Application Discovery Service API includes the following actions to manage AWS agents:

    • StartDataCollectionByAgentIds: Instructs the specified agents to start collecting data. The Application Discovery Service takes several minutes to receive and process data after you initiate data collection.

    • StopDataCollectionByAgentIds: Instructs the specified agents to stop collecting data.

    • DescribeAgents: Lists AWS agents by ID or lists all agents associated with your user account if you did not specify an agent ID. The output includes agent IDs, IP addresses, media access control (MAC) addresses, agent health, host name where the agent resides, and the version number of each agent.

    Querying Configuration Items

    A configuration item is an IT asset that was discovered in your data center by an AWS agent. When you use the Application Discovery Service, you can specify filters and query specific configuration items. The service supports Server, Process, and Connection configuration items. This means you can specify a value for the following keys and query your IT assets:

    Server

    • server.HostName

    • server.osName

    • server.osVersion

    • server.configurationId

    • server.agentId

    Process

    • process.name

    • process.CommandLine

    • process.configurationId

    • server.hostName

    • server.osName

    • server.osVersion

    • server.configurationId

    • server.agentId

    Connection

    • connection.sourceIp

    • connection.sourcePort

    • connection.destinationIp

    • connection.destinationPort

    • sourceProcess.configurationId

    • sourceProcess.commandLine

    • sourceProcess.name

    • destinationProcessId.configurationId

    • destinationProcess.commandLine

    • destinationProcess.name

    • sourceServer.configurationId

    • sourceServer.hostName

    • sourceServer.osName

    • sourceServer.osVersion

    • destinationServer.configurationId

    • destinationServer.hostName

    • destinationServer.osName

    • destinationServer.osVersion

    The Application Discovery Service includes the following actions for querying configuration items.

    • DescribeConfigurations: Retrieves a list of attributes for a specific configuration ID. For example, the output for a server configuration item includes a list of attributes about the server, including host name, operating system, number of network cards, etc.

    • ListConfigurations: Retrieves a list of configuration items according to the criteria you specify in a filter. The filter criteria identify relationship requirements. For example, you can specify filter criteria of process.name with values of nginx and apache.

    Tagging Discovered Configuration Items

    You can tag discovered configuration items. Tags are metadata that help you categorize IT assets in your data center. Tags use a key-value format. For example, {\"key\": \"serverType\", \"value\": \"webServer\"}.

    • CreateTags: Creates one or more tags for a configuration items.

    • DescribeTags: Retrieves a list of configuration items that are tagged with a specific tag. Or, retrieves a list of all tags assigned to a specific configuration item.

    • DeleteTags: Deletes the association between a configuration item and one or more tags.

    Exporting Data

    You can export data as a CSV file to an Amazon S3 bucket or into your preferred visualization tool or cloud migration solution to help reduce the complexity and time in planning your cloud migration.

    • ExportConfigurations: Exports all discovered configuration data to an Amazon S3 bucket. Data includes tags and tag associations, processes, connections, servers, and system performance. This API returns an export ID which you can query using the GetExportStatus API.

    • DescribeExportConfigurations: Gets the status of the data export. When the export is complete, the service returns an Amazon S3 URL where you can download CSV files that include the data.

    ", - "operations": { - "CreateTags": "

    Creates one or more tags for configuration items. Tags are metadata that help you categorize IT assets. This API accepts a list of multiple configuration items.

    ", - "DeleteTags": "

    Deletes the association between configuration items and one or more tags. This API accepts a list of multiple configuration items.

    ", - "DescribeAgents": "

    Lists AWS agents by ID or lists all agents associated with your user account if you did not specify an agent ID.

    ", - "DescribeConfigurations": "

    Retrieves a list of attributes for a specific configuration ID. For example, the output for a server configuration item includes a list of attributes about the server, including host name, operating system, number of network cards, etc.

    ", - "DescribeExportConfigurations": "

    Retrieves the status of a given export process. You can retrieve status from a maximum of 100 processes.

    ", - "DescribeTags": "

    Retrieves a list of configuration items that are tagged with a specific tag. Or retrieves a list of all tags assigned to a specific configuration item.

    ", - "ExportConfigurations": "

    Exports all discovered configuration data to an Amazon S3 bucket or an application that enables you to view and evaluate the data. Data includes tags and tag associations, processes, connections, servers, and system performance. This API returns an export ID which you can query using the GetExportStatus API. The system imposes a limit of two configuration exports in six hours.

    ", - "ListConfigurations": "

    Retrieves a list of configurations items according to the criteria you specify in a filter. The filter criteria identify relationship requirements.

    ", - "StartDataCollectionByAgentIds": "

    Instructs the specified agents to start collecting data. Agents can reside on host servers or virtual machines in your data center.

    ", - "StopDataCollectionByAgentIds": "

    Instructs the specified agents to stop collecting data.

    " - }, - "shapes": { - "AgentConfigurationStatus": { - "base": "

    Information about agents that were instructed to start collecting data. Information includes the agent ID, a description of the operation, and whether or not the agent configuration was updated.

    ", - "refs": { - "AgentConfigurationStatusList$member": null - } - }, - "AgentConfigurationStatusList": { - "base": null, - "refs": { - "StartDataCollectionByAgentIdsResponse$agentsConfigurationStatus": "

    Information about agents that were instructed to start collecting data. Information includes the agent ID, a description of the operation performed, and whether or not the agent configuration was updated.

    ", - "StopDataCollectionByAgentIdsResponse$agentsConfigurationStatus": "

    Information about agents that were instructed to stop collecting data. Information includes the agent ID, a description of the operation performed, and whether or not the agent configuration was updated.

    " - } - }, - "AgentId": { - "base": null, - "refs": { - "AgentIds$member": null, - "AgentInfo$agentId": "

    The agent ID.

    " - } - }, - "AgentIds": { - "base": null, - "refs": { - "DescribeAgentsRequest$agentIds": "

    The agent IDs for which you want information. If you specify no IDs, the system returns information about all agents associated with your AWS user account.

    ", - "StartDataCollectionByAgentIdsRequest$agentIds": "

    The IDs of the agents that you want to start collecting data. If you send a request to an AWS agent ID that you do not have permission to contact, according to your AWS account, the service does not throw an exception. Instead, it returns the error in the Description field. If you send a request to multiple agents and you do not have permission to contact some of those agents, the system does not throw an exception. Instead, the system shows Failed in the Description field.

    ", - "StopDataCollectionByAgentIdsRequest$agentIds": "

    The IDs of the agents that you want to stop collecting data.

    " - } - }, - "AgentInfo": { - "base": "

    Information about agents associated with the user’s AWS account. Information includes agent IDs, IP addresses, media access control (MAC) addresses, agent health, hostname where the agent resides, and agent version for each agent.

    ", - "refs": { - "AgentsInfo$member": null - } - }, - "AgentNetworkInfo": { - "base": "

    Network details about the host where the agent resides.

    ", - "refs": { - "AgentNetworkInfoList$member": null - } - }, - "AgentNetworkInfoList": { - "base": null, - "refs": { - "AgentInfo$agentNetworkInfoList": "

    Network details about the host where the agent resides.

    " - } - }, - "AgentStatus": { - "base": null, - "refs": { - "AgentInfo$health": "

    The health of the agent.

    " - } - }, - "AgentsInfo": { - "base": null, - "refs": { - "DescribeAgentsResponse$agentsInfo": "

    Lists AWS agents by ID or lists all agents associated with your user account if you did not specify an agent ID. The output includes agent IDs, IP addresses, media access control (MAC) addresses, agent health, host name where the agent resides, and the version number of each agent.

    " - } - }, - "AuthorizationErrorException": { - "base": "

    The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

    ", - "refs": { - } - }, - "Boolean": { - "base": null, - "refs": { - "AgentConfigurationStatus$operationSucceeded": "

    Information about the status of the StartDataCollection and StopDataCollection operations. The system has recorded the data collection operation. The agent receives this command the next time it polls for a new command.

    " - } - }, - "Condition": { - "base": null, - "refs": { - "Filter$condition": "

    A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.

    " - } - }, - "Configuration": { - "base": null, - "refs": { - "Configurations$member": null - } - }, - "ConfigurationId": { - "base": null, - "refs": { - "ConfigurationIdList$member": null, - "ConfigurationTag$configurationId": "

    The configuration ID for the item you want to tag. You can specify a list of keys and values.

    " - } - }, - "ConfigurationIdList": { - "base": null, - "refs": { - "CreateTagsRequest$configurationIds": "

    A list of configuration items that you want to tag.

    ", - "DeleteTagsRequest$configurationIds": "

    A list of configuration items with tags that you want to delete.

    ", - "DescribeConfigurationsRequest$configurationIds": "

    One or more configuration IDs.

    " - } - }, - "ConfigurationItemType": { - "base": null, - "refs": { - "ConfigurationTag$configurationType": "

    A type of IT asset that you want to tag.

    ", - "ListConfigurationsRequest$configurationType": "

    A valid configuration identified by the Discovery Service.

    " - } - }, - "ConfigurationTag": { - "base": "

    Tags for a configuration item. Tags are metadata that help you categorize IT assets.

    ", - "refs": { - "ConfigurationTagSet$member": null - } - }, - "ConfigurationTagSet": { - "base": null, - "refs": { - "DescribeTagsResponse$tags": "

    Depending on the input, this is a list of configuration items tagged with a specific tag, or a list of tags for a specific configuration item.

    " - } - }, - "Configurations": { - "base": null, - "refs": { - "ListConfigurationsResponse$configurations": "

    Returns configuration details, including the configuration ID, attribute names, and attribute values.

    " - } - }, - "ConfigurationsDownloadUrl": { - "base": null, - "refs": { - "ExportInfo$configurationsDownloadUrl": "

    A URL for an Amazon S3 bucket where you can review the configuration data. The URL is displayed only if the export succeeded.

    " - } - }, - "ConfigurationsExportId": { - "base": null, - "refs": { - "ExportConfigurationsResponse$exportId": "

    A unique identifier that you can use to query the export status.

    ", - "ExportIds$member": null, - "ExportInfo$exportId": "

    A unique identifier that you can use to query the export.

    " - } - }, - "CreateTagsRequest": { - "base": null, - "refs": { - } - }, - "CreateTagsResponse": { - "base": null, - "refs": { - } - }, - "DeleteTagsRequest": { - "base": null, - "refs": { - } - }, - "DeleteTagsResponse": { - "base": null, - "refs": { - } - }, - "DescribeAgentsRequest": { - "base": null, - "refs": { - } - }, - "DescribeAgentsResponse": { - "base": null, - "refs": { - } - }, - "DescribeConfigurationsAttribute": { - "base": null, - "refs": { - "DescribeConfigurationsAttributes$member": null - } - }, - "DescribeConfigurationsAttributes": { - "base": null, - "refs": { - "DescribeConfigurationsResponse$configurations": "

    A key in the response map. The value is an array of data.

    " - } - }, - "DescribeConfigurationsRequest": { - "base": null, - "refs": { - } - }, - "DescribeConfigurationsResponse": { - "base": null, - "refs": { - } - }, - "DescribeExportConfigurationsRequest": { - "base": null, - "refs": { - } - }, - "DescribeExportConfigurationsResponse": { - "base": null, - "refs": { - } - }, - "DescribeTagsRequest": { - "base": null, - "refs": { - } - }, - "DescribeTagsResponse": { - "base": null, - "refs": { - } - }, - "ExportConfigurationsResponse": { - "base": null, - "refs": { - } - }, - "ExportIds": { - "base": null, - "refs": { - "DescribeExportConfigurationsRequest$exportIds": "

    A unique identifier that you can use to query the export status.

    " - } - }, - "ExportInfo": { - "base": "

    Information regarding the export status of the discovered data. The value is an array of objects.

    ", - "refs": { - "ExportsInfo$member": null - } - }, - "ExportRequestTime": { - "base": null, - "refs": { - "ExportInfo$exportRequestTime": "

    The time the configuration data export was initiated.

    " - } - }, - "ExportStatus": { - "base": null, - "refs": { - "ExportInfo$exportStatus": "

    The status of the configuration data export. The status can succeed, fail, or be in-progress.

    " - } - }, - "ExportStatusMessage": { - "base": null, - "refs": { - "ExportInfo$statusMessage": "

    Helpful status messages for API callers. For example: Too many exports in the last 6 hours. Export in progress. Export was successful.

    " - } - }, - "ExportsInfo": { - "base": null, - "refs": { - "DescribeExportConfigurationsResponse$exportsInfo": "

    Returns export details. When the status is complete, the response includes a URL for an Amazon S3 bucket where you can view the data in a CSV file.

    " - } - }, - "Filter": { - "base": "

    A filter that can use conditional operators.

    ", - "refs": { - "Filters$member": null - } - }, - "FilterName": { - "base": null, - "refs": { - "TagFilter$name": "

    A name of a tag filter.

    " - } - }, - "FilterValue": { - "base": null, - "refs": { - "FilterValues$member": null - } - }, - "FilterValues": { - "base": null, - "refs": { - "Filter$values": "

    A string value that you want to filter on. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.

    ", - "TagFilter$values": "

    Values of a tag filter.

    " - } - }, - "Filters": { - "base": null, - "refs": { - "ListConfigurationsRequest$filters": "

    You can filter the list using a key-value format. For example:

    {\"key\": \"serverType\", \"value\": \"webServer\"}

    You can separate these items by using logical operators.

    " - } - }, - "Integer": { - "base": null, - "refs": { - "DescribeAgentsRequest$maxResults": "

    The total number of agents to return. The maximum value is 100.

    ", - "DescribeExportConfigurationsRequest$maxResults": "

    The maximum number of results that you want to display as a part of the query.

    ", - "DescribeTagsRequest$maxResults": "

    The total number of items to return. The maximum value is 100.

    ", - "ListConfigurationsRequest$maxResults": "

    The total number of items to return. The maximum value is 100.

    " - } - }, - "InvalidParameterException": { - "base": "

    One or more parameters are not valid. Verify the parameters and try again.

    ", - "refs": { - } - }, - "InvalidParameterValueException": { - "base": "

    The value of one or more parameters are either invalid or out of range. Verify the parameter values and try again.

    ", - "refs": { - } - }, - "ListConfigurationsRequest": { - "base": null, - "refs": { - } - }, - "ListConfigurationsResponse": { - "base": null, - "refs": { - } - }, - "Message": { - "base": null, - "refs": { - "AuthorizationErrorException$message": null, - "InvalidParameterException$message": null, - "InvalidParameterValueException$message": null, - "OperationNotPermittedException$message": null, - "ResourceNotFoundException$message": null, - "ServerInternalErrorException$message": null - } - }, - "NextToken": { - "base": null, - "refs": { - "DescribeAgentsRequest$nextToken": "

    A token to start the list. Use this token to get the next set of results.

    ", - "DescribeAgentsResponse$nextToken": "

    The call returns a token. Use this token to get the next set of results.

    ", - "DescribeExportConfigurationsRequest$nextToken": "

    A token to get the next set of results. For example, if you specified 100 IDs for DescribeConfigurationsRequest$configurationIds but set DescribeExportConfigurationsRequest$maxResults to 10, you will get results in a set of 10. Use the token in the query to get the next set of 10.

    ", - "DescribeExportConfigurationsResponse$nextToken": "

    A token to get the next set of results. For example, if you specified 100 IDs for DescribeConfigurationsRequest$configurationIds but set DescribeExportConfigurationsRequest$maxResults to 10, you will get results in a set of 10. Use the token in the query to get the next set of 10.

    ", - "DescribeTagsRequest$nextToken": "

    A token to start the list. Use this token to get the next set of results.

    ", - "DescribeTagsResponse$nextToken": "

    The call returns a token. Use this token to get the next set of results.

    ", - "ListConfigurationsRequest$nextToken": "

    A token to start the list. Use this token to get the next set of results.

    ", - "ListConfigurationsResponse$nextToken": "

    The call returns a token. Use this token to get the next set of results.

    " - } - }, - "OperationNotPermittedException": { - "base": "

    This operation is not permitted.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    The specified configuration ID was not located. Verify the configuration ID and try again.

    ", - "refs": { - } - }, - "ServerInternalErrorException": { - "base": "

    The server experienced an internal error. Try again.

    ", - "refs": { - } - }, - "StartDataCollectionByAgentIdsRequest": { - "base": null, - "refs": { - } - }, - "StartDataCollectionByAgentIdsResponse": { - "base": null, - "refs": { - } - }, - "StopDataCollectionByAgentIdsRequest": { - "base": null, - "refs": { - } - }, - "StopDataCollectionByAgentIdsResponse": { - "base": null, - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "AgentConfigurationStatus$agentId": "

    The agent ID.

    ", - "AgentConfigurationStatus$description": "

    A description of the operation performed.

    ", - "AgentInfo$hostName": "

    The name of the host where the agent resides. The host can be a server or virtual machine.

    ", - "AgentInfo$connectorId": "

    This data type is currently not valid.

    ", - "AgentInfo$version": "

    The agent version.

    ", - "AgentNetworkInfo$ipAddress": "

    The IP address for the host where the agent resides.

    ", - "AgentNetworkInfo$macAddress": "

    The MAC address for the host where the agent resides.

    ", - "Configuration$key": null, - "Configuration$value": null, - "DescribeConfigurationsAttribute$key": null, - "DescribeConfigurationsAttribute$value": null, - "Filter$name": "

    The name of the filter. The following filter names are allowed for SERVER configuration items.

    Server

    • server.hostName

    • server.osName

    • server.osVersion

    • server.configurationid

    • server.agentid

    The name of the filter. The following filter names are allowed for PROCESS configuration items.

    Process

    • process.configurationid

    • process.name

    • process.commandLine

    • server.configurationid

    • server.hostName

    • server.osName

    • server.osVersion

    • server.agentId

    The name of the filter. The following filter names are allowed for CONNECTION configuration items.

    Connection

    • connection.sourceIp

    • connection.destinationIp

    • connection.destinationPort

    • sourceProcess.configurationId

    • sourceProcess.name

    • sourceProcess.commandLine

    • destinationProcess.configurationId

    • destinationProcess.name

    • destinationProcess.commandLine

    • sourceServer.configurationId

    • sourceServer.hostName

    • sourceServer.osName

    • sourceServer.osVersion

    • sourceServer.agentId

    • destinationServer.configurationId

    • destinationServer.hostName

    • destinationServer.osName

    • destinationServer.osVersion

    • destinationServer.agentId

    " - } - }, - "Tag": { - "base": "

    Metadata that help you categorize IT assets.

    ", - "refs": { - "TagSet$member": null - } - }, - "TagFilter": { - "base": "

    The name of a tag filter. Valid names are: tagKey, tagValue, configurationId.

    ", - "refs": { - "TagFilters$member": null - } - }, - "TagFilters": { - "base": null, - "refs": { - "DescribeTagsRequest$filters": "

    You can filter the list using a key-value format. You can separate these items by using logical operators. Allowed filters include tagKey, tagValue, and configurationId.

    " - } - }, - "TagKey": { - "base": null, - "refs": { - "ConfigurationTag$key": "

    A type of tag to filter on. For example, serverType.

    ", - "Tag$key": "

    A type of tag to filter on.

    " - } - }, - "TagSet": { - "base": null, - "refs": { - "CreateTagsRequest$tags": "

    Tags that you want to associate with one or more configuration items. Specify the tags that you want to create in a key-value format. For example:

    {\"key\": \"serverType\", \"value\": \"webServer\"}

    ", - "DeleteTagsRequest$tags": "

    Tags that you want to delete from one or more configuration items. Specify the tags that you want to delete in a key-value format. For example:

    {\"key\": \"serverType\", \"value\": \"webServer\"}

    " - } - }, - "TagValue": { - "base": null, - "refs": { - "ConfigurationTag$value": "

    A value to filter on. For example key = serverType and value = web server.

    ", - "Tag$value": "

    A value for a tag key to filter on.

    " - } - }, - "TimeStamp": { - "base": null, - "refs": { - "ConfigurationTag$timeOfCreation": "

    The time the configuration tag was created in Coordinated Universal Time (UTC).

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/discovery/2015-11-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/api-2.json deleted file mode 100644 index 4fea78ee3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/api-2.json +++ /dev/null @@ -1,1299 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2016-01-01", - "endpointPrefix":"dms", - "jsonVersion":"1.1", - "protocol":"json", - "serviceFullName":"AWS Database Migration Service", - "signatureVersion":"v4", - "targetPrefix":"AmazonDMSv20160101" - }, - "operations":{ - "AddTagsToResource":{ - "name":"AddTagsToResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddTagsToResourceMessage"}, - "output":{"shape":"AddTagsToResourceResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"} - ] - }, - "CreateEndpoint":{ - "name":"CreateEndpoint", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateEndpointMessage"}, - "output":{"shape":"CreateEndpointResponse"}, - "errors":[ - {"shape":"KMSKeyNotAccessibleFault"}, - {"shape":"ResourceAlreadyExistsFault"}, - {"shape":"ResourceQuotaExceededFault"} - ] - }, - "CreateReplicationInstance":{ - "name":"CreateReplicationInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateReplicationInstanceMessage"}, - "output":{"shape":"CreateReplicationInstanceResponse"}, - "errors":[ - {"shape":"AccessDeniedFault"}, - {"shape":"ResourceAlreadyExistsFault"}, - {"shape":"InsufficientResourceCapacityFault"}, - {"shape":"ResourceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"ResourceNotFoundFault"}, - {"shape":"ReplicationSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidResourceStateFault"}, - {"shape":"InvalidSubnet"}, - {"shape":"KMSKeyNotAccessibleFault"} - ] - }, - "CreateReplicationSubnetGroup":{ - "name":"CreateReplicationSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateReplicationSubnetGroupMessage"}, - "output":{"shape":"CreateReplicationSubnetGroupResponse"}, - "errors":[ - {"shape":"AccessDeniedFault"}, - {"shape":"ResourceAlreadyExistsFault"}, - {"shape":"ResourceNotFoundFault"}, - {"shape":"ResourceQuotaExceededFault"}, - {"shape":"ReplicationSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} - ] - }, - "CreateReplicationTask":{ - "name":"CreateReplicationTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateReplicationTaskMessage"}, - "output":{"shape":"CreateReplicationTaskResponse"}, - "errors":[ - {"shape":"InvalidResourceStateFault"}, - {"shape":"ResourceAlreadyExistsFault"}, - {"shape":"ResourceNotFoundFault"}, - {"shape":"KMSKeyNotAccessibleFault"}, - {"shape":"ResourceQuotaExceededFault"} - ] - }, - "DeleteEndpoint":{ - "name":"DeleteEndpoint", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteEndpointMessage"}, - "output":{"shape":"DeleteEndpointResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"}, - {"shape":"InvalidResourceStateFault"} - ] - }, - "DeleteReplicationInstance":{ - "name":"DeleteReplicationInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteReplicationInstanceMessage"}, - "output":{"shape":"DeleteReplicationInstanceResponse"}, - "errors":[ - {"shape":"InvalidResourceStateFault"}, - {"shape":"ResourceNotFoundFault"} - ] - }, - "DeleteReplicationSubnetGroup":{ - "name":"DeleteReplicationSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteReplicationSubnetGroupMessage"}, - "output":{"shape":"DeleteReplicationSubnetGroupResponse"}, - "errors":[ - {"shape":"InvalidResourceStateFault"}, - {"shape":"ResourceNotFoundFault"} - ] - }, - "DeleteReplicationTask":{ - "name":"DeleteReplicationTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteReplicationTaskMessage"}, - "output":{"shape":"DeleteReplicationTaskResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"}, - {"shape":"InvalidResourceStateFault"} - ] - }, - "DescribeAccountAttributes":{ - "name":"DescribeAccountAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAccountAttributesMessage"}, - "output":{"shape":"DescribeAccountAttributesResponse"} - }, - "DescribeConnections":{ - "name":"DescribeConnections", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeConnectionsMessage"}, - "output":{"shape":"DescribeConnectionsResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"} - ] - }, - "DescribeEndpointTypes":{ - "name":"DescribeEndpointTypes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEndpointTypesMessage"}, - "output":{"shape":"DescribeEndpointTypesResponse"} - }, - "DescribeEndpoints":{ - "name":"DescribeEndpoints", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEndpointsMessage"}, - "output":{"shape":"DescribeEndpointsResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"} - ] - }, - "DescribeOrderableReplicationInstances":{ - "name":"DescribeOrderableReplicationInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOrderableReplicationInstancesMessage"}, - "output":{"shape":"DescribeOrderableReplicationInstancesResponse"} - }, - "DescribeRefreshSchemasStatus":{ - "name":"DescribeRefreshSchemasStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeRefreshSchemasStatusMessage"}, - "output":{"shape":"DescribeRefreshSchemasStatusResponse"}, - "errors":[ - {"shape":"InvalidResourceStateFault"}, - {"shape":"ResourceNotFoundFault"} - ] - }, - "DescribeReplicationInstances":{ - "name":"DescribeReplicationInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReplicationInstancesMessage"}, - "output":{"shape":"DescribeReplicationInstancesResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"} - ] - }, - "DescribeReplicationSubnetGroups":{ - "name":"DescribeReplicationSubnetGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReplicationSubnetGroupsMessage"}, - "output":{"shape":"DescribeReplicationSubnetGroupsResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"} - ] - }, - "DescribeReplicationTasks":{ - "name":"DescribeReplicationTasks", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReplicationTasksMessage"}, - "output":{"shape":"DescribeReplicationTasksResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"} - ] - }, - "DescribeSchemas":{ - "name":"DescribeSchemas", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSchemasMessage"}, - "output":{"shape":"DescribeSchemasResponse"}, - "errors":[ - {"shape":"InvalidResourceStateFault"}, - {"shape":"ResourceNotFoundFault"} - ] - }, - "DescribeTableStatistics":{ - "name":"DescribeTableStatistics", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeTableStatisticsMessage"}, - "output":{"shape":"DescribeTableStatisticsResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"}, - {"shape":"InvalidResourceStateFault"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceMessage"}, - "output":{"shape":"ListTagsForResourceResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"} - ] - }, - "ModifyEndpoint":{ - "name":"ModifyEndpoint", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyEndpointMessage"}, - "output":{"shape":"ModifyEndpointResponse"}, - "errors":[ - {"shape":"InvalidResourceStateFault"}, - {"shape":"ResourceNotFoundFault"}, - {"shape":"ResourceAlreadyExistsFault"}, - {"shape":"KMSKeyNotAccessibleFault"} - ] - }, - "ModifyReplicationInstance":{ - "name":"ModifyReplicationInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyReplicationInstanceMessage"}, - "output":{"shape":"ModifyReplicationInstanceResponse"}, - "errors":[ - {"shape":"InvalidResourceStateFault"}, - {"shape":"ResourceAlreadyExistsFault"}, - {"shape":"ResourceNotFoundFault"}, - {"shape":"InsufficientResourceCapacityFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"UpgradeDependencyFailureFault"} - ] - }, - "ModifyReplicationSubnetGroup":{ - "name":"ModifyReplicationSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyReplicationSubnetGroupMessage"}, - "output":{"shape":"ModifyReplicationSubnetGroupResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"}, - {"shape":"ResourceQuotaExceededFault"}, - {"shape":"SubnetAlreadyInUse"}, - {"shape":"ReplicationSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} - ] - }, - "RefreshSchemas":{ - "name":"RefreshSchemas", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RefreshSchemasMessage"}, - "output":{"shape":"RefreshSchemasResponse"}, - "errors":[ - {"shape":"InvalidResourceStateFault"}, - {"shape":"ResourceNotFoundFault"}, - {"shape":"KMSKeyNotAccessibleFault"}, - {"shape":"ResourceQuotaExceededFault"} - ] - }, - "RemoveTagsFromResource":{ - "name":"RemoveTagsFromResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTagsFromResourceMessage"}, - "output":{"shape":"RemoveTagsFromResourceResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"} - ] - }, - "StartReplicationTask":{ - "name":"StartReplicationTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StartReplicationTaskMessage"}, - "output":{"shape":"StartReplicationTaskResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"}, - {"shape":"InvalidResourceStateFault"} - ] - }, - "StopReplicationTask":{ - "name":"StopReplicationTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StopReplicationTaskMessage"}, - "output":{"shape":"StopReplicationTaskResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"}, - {"shape":"InvalidResourceStateFault"} - ] - }, - "TestConnection":{ - "name":"TestConnection", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"TestConnectionMessage"}, - "output":{"shape":"TestConnectionResponse"}, - "errors":[ - {"shape":"ResourceNotFoundFault"}, - {"shape":"InvalidResourceStateFault"}, - {"shape":"KMSKeyNotAccessibleFault"}, - {"shape":"ResourceQuotaExceededFault"} - ] - } - }, - "shapes":{ - "AccessDeniedFault":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "AccountQuota":{ - "type":"structure", - "members":{ - "AccountQuotaName":{"shape":"String"}, - "Used":{"shape":"Long"}, - "Max":{"shape":"Long"} - } - }, - "AccountQuotaList":{ - "type":"list", - "member":{ - "shape":"AccountQuota", - "locationName":"AccountQuota" - } - }, - "AddTagsToResourceMessage":{ - "type":"structure", - "required":[ - "ResourceArn", - "Tags" - ], - "members":{ - "ResourceArn":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "AddTagsToResourceResponse":{ - "type":"structure", - "members":{ - } - }, - "AvailabilityZone":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"} - } - }, - "Boolean":{"type":"boolean"}, - "BooleanOptional":{"type":"boolean"}, - "Connection":{ - "type":"structure", - "members":{ - "ReplicationInstanceArn":{"shape":"String"}, - "EndpointArn":{"shape":"String"}, - "Status":{"shape":"String"}, - "LastFailureMessage":{"shape":"String"}, - "EndpointIdentifier":{"shape":"String"}, - "ReplicationInstanceIdentifier":{"shape":"String"} - } - }, - "ConnectionList":{ - "type":"list", - "member":{ - "shape":"Connection", - "locationName":"Connection" - } - }, - "CreateEndpointMessage":{ - "type":"structure", - "required":[ - "EndpointIdentifier", - "EndpointType", - "EngineName", - "Username", - "Password", - "ServerName", - "Port" - ], - "members":{ - "EndpointIdentifier":{"shape":"String"}, - "EndpointType":{"shape":"ReplicationEndpointTypeValue"}, - "EngineName":{"shape":"String"}, - "Username":{"shape":"String"}, - "Password":{"shape":"SecretString"}, - "ServerName":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "DatabaseName":{"shape":"String"}, - "ExtraConnectionAttributes":{"shape":"String"}, - "KmsKeyId":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateEndpointResponse":{ - "type":"structure", - "members":{ - "Endpoint":{"shape":"Endpoint"} - } - }, - "CreateReplicationInstanceMessage":{ - "type":"structure", - "required":[ - "ReplicationInstanceIdentifier", - "ReplicationInstanceClass" - ], - "members":{ - "ReplicationInstanceIdentifier":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "ReplicationInstanceClass":{"shape":"String"}, - "AvailabilityZone":{"shape":"String"}, - "ReplicationSubnetGroupIdentifier":{"shape":"String"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "Tags":{"shape":"TagList"}, - "KmsKeyId":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"} - } - }, - "CreateReplicationInstanceResponse":{ - "type":"structure", - "members":{ - "ReplicationInstance":{"shape":"ReplicationInstance"} - } - }, - "CreateReplicationSubnetGroupMessage":{ - "type":"structure", - "required":[ - "ReplicationSubnetGroupIdentifier", - "ReplicationSubnetGroupDescription", - "SubnetIds" - ], - "members":{ - "ReplicationSubnetGroupIdentifier":{"shape":"String"}, - "ReplicationSubnetGroupDescription":{"shape":"String"}, - "SubnetIds":{"shape":"SubnetIdentifierList"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateReplicationSubnetGroupResponse":{ - "type":"structure", - "members":{ - "ReplicationSubnetGroup":{"shape":"ReplicationSubnetGroup"} - } - }, - "CreateReplicationTaskMessage":{ - "type":"structure", - "required":[ - "ReplicationTaskIdentifier", - "SourceEndpointArn", - "TargetEndpointArn", - "ReplicationInstanceArn", - "MigrationType", - "TableMappings" - ], - "members":{ - "ReplicationTaskIdentifier":{"shape":"String"}, - "SourceEndpointArn":{"shape":"String"}, - "TargetEndpointArn":{"shape":"String"}, - "ReplicationInstanceArn":{"shape":"String"}, - "MigrationType":{"shape":"MigrationTypeValue"}, - "TableMappings":{"shape":"String"}, - "ReplicationTaskSettings":{"shape":"String"}, - "CdcStartTime":{"shape":"TStamp"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateReplicationTaskResponse":{ - "type":"structure", - "members":{ - "ReplicationTask":{"shape":"ReplicationTask"} - } - }, - "DeleteEndpointMessage":{ - "type":"structure", - "required":["EndpointArn"], - "members":{ - "EndpointArn":{"shape":"String"} - } - }, - "DeleteEndpointResponse":{ - "type":"structure", - "members":{ - "Endpoint":{"shape":"Endpoint"} - } - }, - "DeleteReplicationInstanceMessage":{ - "type":"structure", - "required":["ReplicationInstanceArn"], - "members":{ - "ReplicationInstanceArn":{"shape":"String"} - } - }, - "DeleteReplicationInstanceResponse":{ - "type":"structure", - "members":{ - "ReplicationInstance":{"shape":"ReplicationInstance"} - } - }, - "DeleteReplicationSubnetGroupMessage":{ - "type":"structure", - "required":["ReplicationSubnetGroupIdentifier"], - "members":{ - "ReplicationSubnetGroupIdentifier":{"shape":"String"} - } - }, - "DeleteReplicationSubnetGroupResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteReplicationTaskMessage":{ - "type":"structure", - "required":["ReplicationTaskArn"], - "members":{ - "ReplicationTaskArn":{"shape":"String"} - } - }, - "DeleteReplicationTaskResponse":{ - "type":"structure", - "members":{ - "ReplicationTask":{"shape":"ReplicationTask"} - } - }, - "DescribeAccountAttributesMessage":{ - "type":"structure", - "members":{ - } - }, - "DescribeAccountAttributesResponse":{ - "type":"structure", - "members":{ - "AccountQuotas":{"shape":"AccountQuotaList"} - } - }, - "DescribeConnectionsMessage":{ - "type":"structure", - "members":{ - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeConnectionsResponse":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "Connections":{"shape":"ConnectionList"} - } - }, - "DescribeEndpointTypesMessage":{ - "type":"structure", - "members":{ - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEndpointTypesResponse":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "SupportedEndpointTypes":{"shape":"SupportedEndpointTypeList"} - } - }, - "DescribeEndpointsMessage":{ - "type":"structure", - "members":{ - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEndpointsResponse":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "Endpoints":{"shape":"EndpointList"} - } - }, - "DescribeOrderableReplicationInstancesMessage":{ - "type":"structure", - "members":{ - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeOrderableReplicationInstancesResponse":{ - "type":"structure", - "members":{ - "OrderableReplicationInstances":{"shape":"OrderableReplicationInstanceList"}, - "Marker":{"shape":"String"} - } - }, - "DescribeRefreshSchemasStatusMessage":{ - "type":"structure", - "required":["EndpointArn"], - "members":{ - "EndpointArn":{"shape":"String"} - } - }, - "DescribeRefreshSchemasStatusResponse":{ - "type":"structure", - "members":{ - "RefreshSchemasStatus":{"shape":"RefreshSchemasStatus"} - } - }, - "DescribeReplicationInstancesMessage":{ - "type":"structure", - "members":{ - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReplicationInstancesResponse":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReplicationInstances":{"shape":"ReplicationInstanceList"} - } - }, - "DescribeReplicationSubnetGroupsMessage":{ - "type":"structure", - "members":{ - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReplicationSubnetGroupsResponse":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReplicationSubnetGroups":{"shape":"ReplicationSubnetGroups"} - } - }, - "DescribeReplicationTasksMessage":{ - "type":"structure", - "members":{ - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReplicationTasksResponse":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReplicationTasks":{"shape":"ReplicationTaskList"} - } - }, - "DescribeSchemasMessage":{ - "type":"structure", - "required":["EndpointArn"], - "members":{ - "EndpointArn":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeSchemasResponse":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "Schemas":{"shape":"SchemaList"} - } - }, - "DescribeTableStatisticsMessage":{ - "type":"structure", - "required":["ReplicationTaskArn"], - "members":{ - "ReplicationTaskArn":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeTableStatisticsResponse":{ - "type":"structure", - "members":{ - "ReplicationTaskArn":{"shape":"String"}, - "TableStatistics":{"shape":"TableStatisticsList"}, - "Marker":{"shape":"String"} - } - }, - "Endpoint":{ - "type":"structure", - "members":{ - "EndpointIdentifier":{"shape":"String"}, - "EndpointType":{"shape":"ReplicationEndpointTypeValue"}, - "EngineName":{"shape":"String"}, - "Username":{"shape":"String"}, - "ServerName":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "DatabaseName":{"shape":"String"}, - "ExtraConnectionAttributes":{"shape":"String"}, - "Status":{"shape":"String"}, - "KmsKeyId":{"shape":"String"}, - "EndpointArn":{"shape":"String"} - } - }, - "EndpointList":{ - "type":"list", - "member":{ - "shape":"Endpoint", - "locationName":"Endpoint" - } - }, - "ExceptionMessage":{"type":"string"}, - "Filter":{ - "type":"structure", - "required":[ - "Name", - "Values" - ], - "members":{ - "Name":{"shape":"String"}, - "Values":{"shape":"FilterValueList"} - } - }, - "FilterList":{ - "type":"list", - "member":{ - "shape":"Filter", - "locationName":"Filter" - } - }, - "FilterValueList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"Value" - } - }, - "InsufficientResourceCapacityFault":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "Integer":{"type":"integer"}, - "IntegerOptional":{"type":"integer"}, - "InvalidResourceStateFault":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "InvalidSubnet":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "KMSKeyNotAccessibleFault":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "KeyList":{ - "type":"list", - "member":{"shape":"String"} - }, - "ListTagsForResourceMessage":{ - "type":"structure", - "required":["ResourceArn"], - "members":{ - "ResourceArn":{"shape":"String"} - } - }, - "ListTagsForResourceResponse":{ - "type":"structure", - "members":{ - "TagList":{"shape":"TagList"} - } - }, - "Long":{"type":"long"}, - "MigrationTypeValue":{ - "type":"string", - "enum":[ - "full-load", - "cdc", - "full-load-and-cdc" - ] - }, - "ModifyEndpointMessage":{ - "type":"structure", - "required":["EndpointArn"], - "members":{ - "EndpointArn":{"shape":"String"}, - "EndpointIdentifier":{"shape":"String"}, - "EndpointType":{"shape":"ReplicationEndpointTypeValue"}, - "EngineName":{"shape":"String"}, - "Username":{"shape":"String"}, - "Password":{"shape":"SecretString"}, - "ServerName":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "DatabaseName":{"shape":"String"}, - "ExtraConnectionAttributes":{"shape":"String"} - } - }, - "ModifyEndpointResponse":{ - "type":"structure", - "members":{ - "Endpoint":{"shape":"Endpoint"} - } - }, - "ModifyReplicationInstanceMessage":{ - "type":"structure", - "required":["ReplicationInstanceArn"], - "members":{ - "ReplicationInstanceArn":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "ApplyImmediately":{"shape":"Boolean"}, - "ReplicationInstanceClass":{"shape":"String"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "AllowMajorVersionUpgrade":{"shape":"Boolean"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "ReplicationInstanceIdentifier":{"shape":"String"} - } - }, - "ModifyReplicationInstanceResponse":{ - "type":"structure", - "members":{ - "ReplicationInstance":{"shape":"ReplicationInstance"} - } - }, - "ModifyReplicationSubnetGroupMessage":{ - "type":"structure", - "required":[ - "ReplicationSubnetGroupIdentifier", - "SubnetIds" - ], - "members":{ - "ReplicationSubnetGroupIdentifier":{"shape":"String"}, - "ReplicationSubnetGroupDescription":{"shape":"String"}, - "SubnetIds":{"shape":"SubnetIdentifierList"} - } - }, - "ModifyReplicationSubnetGroupResponse":{ - "type":"structure", - "members":{ - "ReplicationSubnetGroup":{"shape":"ReplicationSubnetGroup"} - } - }, - "OrderableReplicationInstance":{ - "type":"structure", - "members":{ - "EngineVersion":{"shape":"String"}, - "ReplicationInstanceClass":{"shape":"String"}, - "StorageType":{"shape":"String"}, - "MinAllocatedStorage":{"shape":"Integer"}, - "MaxAllocatedStorage":{"shape":"Integer"}, - "DefaultAllocatedStorage":{"shape":"Integer"}, - "IncludedAllocatedStorage":{"shape":"Integer"} - } - }, - "OrderableReplicationInstanceList":{ - "type":"list", - "member":{ - "shape":"OrderableReplicationInstance", - "locationName":"OrderableReplicationInstance" - } - }, - "RefreshSchemasMessage":{ - "type":"structure", - "required":[ - "EndpointArn", - "ReplicationInstanceArn" - ], - "members":{ - "EndpointArn":{"shape":"String"}, - "ReplicationInstanceArn":{"shape":"String"} - } - }, - "RefreshSchemasResponse":{ - "type":"structure", - "members":{ - "RefreshSchemasStatus":{"shape":"RefreshSchemasStatus"} - } - }, - "RefreshSchemasStatus":{ - "type":"structure", - "members":{ - "EndpointArn":{"shape":"String"}, - "ReplicationInstanceArn":{"shape":"String"}, - "Status":{"shape":"RefreshSchemasStatusTypeValue"}, - "LastRefreshDate":{"shape":"TStamp"}, - "LastFailureMessage":{"shape":"String"} - } - }, - "RefreshSchemasStatusTypeValue":{ - "type":"string", - "enum":[ - "successful", - "failed", - "refreshing" - ] - }, - "RemoveTagsFromResourceMessage":{ - "type":"structure", - "required":[ - "ResourceArn", - "TagKeys" - ], - "members":{ - "ResourceArn":{"shape":"String"}, - "TagKeys":{"shape":"KeyList"} - } - }, - "RemoveTagsFromResourceResponse":{ - "type":"structure", - "members":{ - } - }, - "ReplicationEndpointTypeValue":{ - "type":"string", - "enum":[ - "source", - "target" - ] - }, - "ReplicationInstance":{ - "type":"structure", - "members":{ - "ReplicationInstanceIdentifier":{"shape":"String"}, - "ReplicationInstanceClass":{"shape":"String"}, - "ReplicationInstanceStatus":{"shape":"String"}, - "AllocatedStorage":{"shape":"Integer"}, - "InstanceCreateTime":{"shape":"TStamp"}, - "AvailabilityZone":{"shape":"String"}, - "ReplicationSubnetGroup":{"shape":"ReplicationSubnetGroup"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "PendingModifiedValues":{"shape":"ReplicationPendingModifiedValues"}, - "EngineVersion":{"shape":"String"}, - "AutoMinorVersionUpgrade":{"shape":"Boolean"}, - "KmsKeyId":{"shape":"String"}, - "ReplicationInstanceArn":{"shape":"String"}, - "ReplicationInstancePublicIpAddress":{"shape":"String"}, - "ReplicationInstancePrivateIpAddress":{"shape":"String"}, - "PubliclyAccessible":{"shape":"Boolean"} - } - }, - "ReplicationInstanceList":{ - "type":"list", - "member":{ - "shape":"ReplicationInstance", - "locationName":"ReplicationInstance" - } - }, - "ReplicationPendingModifiedValues":{ - "type":"structure", - "members":{ - "ReplicationInstanceClass":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "EngineVersion":{"shape":"String"} - } - }, - "ReplicationSubnetGroup":{ - "type":"structure", - "members":{ - "ReplicationSubnetGroupIdentifier":{"shape":"String"}, - "ReplicationSubnetGroupDescription":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "SubnetGroupStatus":{"shape":"String"}, - "Subnets":{"shape":"SubnetList"} - } - }, - "ReplicationSubnetGroupDoesNotCoverEnoughAZs":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "ReplicationSubnetGroups":{ - "type":"list", - "member":{ - "shape":"ReplicationSubnetGroup", - "locationName":"ReplicationSubnetGroup" - } - }, - "ReplicationTask":{ - "type":"structure", - "members":{ - "ReplicationTaskIdentifier":{"shape":"String"}, - "SourceEndpointArn":{"shape":"String"}, - "TargetEndpointArn":{"shape":"String"}, - "ReplicationInstanceArn":{"shape":"String"}, - "MigrationType":{"shape":"MigrationTypeValue"}, - "TableMappings":{"shape":"String"}, - "ReplicationTaskSettings":{"shape":"String"}, - "Status":{"shape":"String"}, - "LastFailureMessage":{"shape":"String"}, - "ReplicationTaskCreationDate":{"shape":"TStamp"}, - "ReplicationTaskStartDate":{"shape":"TStamp"}, - "ReplicationTaskArn":{"shape":"String"}, - "ReplicationTaskStats":{"shape":"ReplicationTaskStats"} - } - }, - "ReplicationTaskList":{ - "type":"list", - "member":{ - "shape":"ReplicationTask", - "locationName":"ReplicationTask" - } - }, - "ReplicationTaskStats":{ - "type":"structure", - "members":{ - "FullLoadProgressPercent":{"shape":"Integer"}, - "ElapsedTimeMillis":{"shape":"Long"}, - "TablesLoaded":{"shape":"Integer"}, - "TablesLoading":{"shape":"Integer"}, - "TablesQueued":{"shape":"Integer"}, - "TablesErrored":{"shape":"Integer"} - } - }, - "ResourceAlreadyExistsFault":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "ResourceNotFoundFault":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "ResourceQuotaExceededFault":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "SchemaList":{ - "type":"list", - "member":{"shape":"String"} - }, - "SecretString":{ - "type":"string", - "sensitive":true - }, - "StartReplicationTaskMessage":{ - "type":"structure", - "required":[ - "ReplicationTaskArn", - "StartReplicationTaskType" - ], - "members":{ - "ReplicationTaskArn":{"shape":"String"}, - "StartReplicationTaskType":{"shape":"StartReplicationTaskTypeValue"}, - "CdcStartTime":{"shape":"TStamp"} - } - }, - "StartReplicationTaskResponse":{ - "type":"structure", - "members":{ - "ReplicationTask":{"shape":"ReplicationTask"} - } - }, - "StartReplicationTaskTypeValue":{ - "type":"string", - "enum":[ - "start-replication", - "resume-processing", - "reload-target" - ] - }, - "StopReplicationTaskMessage":{ - "type":"structure", - "required":["ReplicationTaskArn"], - "members":{ - "ReplicationTaskArn":{"shape":"String"} - } - }, - "StopReplicationTaskResponse":{ - "type":"structure", - "members":{ - "ReplicationTask":{"shape":"ReplicationTask"} - } - }, - "StorageQuotaExceededFault":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "String":{"type":"string"}, - "Subnet":{ - "type":"structure", - "members":{ - "SubnetIdentifier":{"shape":"String"}, - "SubnetAvailabilityZone":{"shape":"AvailabilityZone"}, - "SubnetStatus":{"shape":"String"} - } - }, - "SubnetAlreadyInUse":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "SubnetIdentifierList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SubnetIdentifier" - } - }, - "SubnetList":{ - "type":"list", - "member":{ - "shape":"Subnet", - "locationName":"Subnet" - } - }, - "SupportedEndpointType":{ - "type":"structure", - "members":{ - "EngineName":{"shape":"String"}, - "SupportsCDC":{"shape":"Boolean"}, - "EndpointType":{"shape":"ReplicationEndpointTypeValue"} - } - }, - "SupportedEndpointTypeList":{ - "type":"list", - "member":{ - "shape":"SupportedEndpointType", - "locationName":"SupportedEndpointType" - } - }, - "TStamp":{"type":"timestamp"}, - "TableStatistics":{ - "type":"structure", - "members":{ - "SchemaName":{"shape":"String"}, - "TableName":{"shape":"String"}, - "Inserts":{"shape":"Long"}, - "Deletes":{"shape":"Long"}, - "Updates":{"shape":"Long"}, - "Ddls":{"shape":"Long"}, - "FullLoadRows":{"shape":"Long"}, - "LastUpdateTime":{"shape":"TStamp"}, - "TableState":{"shape":"String"} - } - }, - "TableStatisticsList":{ - "type":"list", - "member":{"shape":"TableStatistics"} - }, - "Tag":{ - "type":"structure", - "members":{ - "Key":{"shape":"String"}, - "Value":{"shape":"String"} - } - }, - "TagList":{ - "type":"list", - "member":{ - "shape":"Tag", - "locationName":"Tag" - } - }, - "TestConnectionMessage":{ - "type":"structure", - "required":[ - "ReplicationInstanceArn", - "EndpointArn" - ], - "members":{ - "ReplicationInstanceArn":{"shape":"String"}, - "EndpointArn":{"shape":"String"} - } - }, - "TestConnectionResponse":{ - "type":"structure", - "members":{ - "Connection":{"shape":"Connection"} - } - }, - "UpgradeDependencyFailureFault":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/docs-2.json deleted file mode 100644 index 72f9a85de..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/docs-2.json +++ /dev/null @@ -1,872 +0,0 @@ -{ - "version": "2.0", - "service": "AWS Database Migration Service

    AWS Database Migration Service (AWS DMS) can migrate your data to and from the most widely used commercial and open-source databases such as Oracle, PostgreSQL, Microsoft SQL Server, MariaDB, Amazon Aurora, and MySQL. The service supports homogeneous migrations such as Oracle to Oracle, as well as heterogeneous migrations between different database platforms, such as Oracle to MySQL or SQL Server to PostgreSQL.

    ", - "operations": { - "AddTagsToResource": "

    Adds metadata tags to a DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS.

    ", - "CreateEndpoint": "

    Creates an endpoint using the provided settings.

    ", - "CreateReplicationInstance": "

    Creates the replication instance using the specified parameters.

    ", - "CreateReplicationSubnetGroup": "

    Creates a replication subnet group given a list of the subnet IDs in a VPC.

    ", - "CreateReplicationTask": "

    Creates a replication task using the specified parameters.

    ", - "DeleteEndpoint": "

    Deletes the specified endpoint.

    All tasks associated with the endpoint must be deleted before you can delete the endpoint.

    ", - "DeleteReplicationInstance": "

    Deletes the specified replication instance.

    You must delete any migration tasks that are associated with the replication instance before you can delete it.

    ", - "DeleteReplicationSubnetGroup": "

    Deletes a subnet group.

    ", - "DeleteReplicationTask": "

    Deletes the specified replication task.

    ", - "DescribeAccountAttributes": "

    Lists all of the AWS DMS attributes for a customer account. The attributes include AWS DMS quotas for the account, such as the number of replication instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value.

    This command does not take any parameters.

    ", - "DescribeConnections": "

    Describes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint.

    ", - "DescribeEndpointTypes": "

    Returns information about the type of endpoints available.

    ", - "DescribeEndpoints": "

    Returns information about the endpoints for your account in the current region.

    ", - "DescribeOrderableReplicationInstances": "

    Returns information about the replication instance types that can be created in the specified region.

    ", - "DescribeRefreshSchemasStatus": "

    Returns the status of the RefreshSchemas operation.

    ", - "DescribeReplicationInstances": "

    Returns information about replication instances for your account in the current region.

    ", - "DescribeReplicationSubnetGroups": "

    Returns information about the replication subnet groups.

    ", - "DescribeReplicationTasks": "

    Returns information about replication tasks for your account in the current region.

    ", - "DescribeSchemas": "

    Returns information about the schema for the specified endpoint.

    ", - "DescribeTableStatistics": "

    Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted.

    ", - "ListTagsForResource": "

    Lists all tags for an AWS DMS resource.

    ", - "ModifyEndpoint": "

    Modifies the specified endpoint.

    ", - "ModifyReplicationInstance": "

    Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.

    Some settings are applied during the maintenance window.

    ", - "ModifyReplicationSubnetGroup": "

    Modifies the settings for the specified replication subnet group.

    ", - "RefreshSchemas": "

    Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.

    ", - "RemoveTagsFromResource": "

    Removes metadata tags from a DMS resource.

    ", - "StartReplicationTask": "

    Starts the replication task.

    ", - "StopReplicationTask": "

    Stops the replication task.

    ", - "TestConnection": "

    Tests the connection between the replication instance and the endpoint.

    " - }, - "shapes": { - "AccessDeniedFault": { - "base": "

    AWS DMS was denied access to the endpoint.

    ", - "refs": { - } - }, - "AccountQuota": { - "base": "

    Describes a quota for an AWS account, for example, the number of replication instances allowed.

    ", - "refs": { - "AccountQuotaList$member": null - } - }, - "AccountQuotaList": { - "base": null, - "refs": { - "DescribeAccountAttributesResponse$AccountQuotas": "

    Account quota information.

    " - } - }, - "AddTagsToResourceMessage": { - "base": null, - "refs": { - } - }, - "AddTagsToResourceResponse": { - "base": null, - "refs": { - } - }, - "AvailabilityZone": { - "base": null, - "refs": { - "Subnet$SubnetAvailabilityZone": "

    The Availability Zone of the subnet.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "ModifyReplicationInstanceMessage$ApplyImmediately": "

    Indicates whether the changes should be applied immediately or during the next maintenance window.

    ", - "ModifyReplicationInstanceMessage$AllowMajorVersionUpgrade": "

    Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the replication instance's current version.

    ", - "ReplicationInstance$AutoMinorVersionUpgrade": "

    Boolean value indicating if minor version upgrades will be automatically applied to the instance.

    ", - "ReplicationInstance$PubliclyAccessible": "

    Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. The default value is true.

    ", - "SupportedEndpointType$SupportsCDC": "

    Indicates if Change Data Capture (CDC) is supported.

    " - } - }, - "BooleanOptional": { - "base": null, - "refs": { - "CreateReplicationInstanceMessage$AutoMinorVersionUpgrade": "

    Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.

    Default: true

    ", - "CreateReplicationInstanceMessage$PubliclyAccessible": "

    Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. The default value is true.

    ", - "ModifyReplicationInstanceMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the replication instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and AWS DMS has enabled auto patching for that engine version.

    " - } - }, - "Connection": { - "base": null, - "refs": { - "ConnectionList$member": null, - "TestConnectionResponse$Connection": "

    The connection tested.

    " - } - }, - "ConnectionList": { - "base": null, - "refs": { - "DescribeConnectionsResponse$Connections": "

    A description of the connections.

    " - } - }, - "CreateEndpointMessage": { - "base": null, - "refs": { - } - }, - "CreateEndpointResponse": { - "base": null, - "refs": { - } - }, - "CreateReplicationInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateReplicationInstanceResponse": { - "base": null, - "refs": { - } - }, - "CreateReplicationSubnetGroupMessage": { - "base": null, - "refs": { - } - }, - "CreateReplicationSubnetGroupResponse": { - "base": null, - "refs": { - } - }, - "CreateReplicationTaskMessage": { - "base": null, - "refs": { - } - }, - "CreateReplicationTaskResponse": { - "base": null, - "refs": { - } - }, - "DeleteEndpointMessage": { - "base": null, - "refs": { - } - }, - "DeleteEndpointResponse": { - "base": null, - "refs": { - } - }, - "DeleteReplicationInstanceMessage": { - "base": null, - "refs": { - } - }, - "DeleteReplicationInstanceResponse": { - "base": null, - "refs": { - } - }, - "DeleteReplicationSubnetGroupMessage": { - "base": null, - "refs": { - } - }, - "DeleteReplicationSubnetGroupResponse": { - "base": null, - "refs": { - } - }, - "DeleteReplicationTaskMessage": { - "base": null, - "refs": { - } - }, - "DeleteReplicationTaskResponse": { - "base": null, - "refs": { - } - }, - "DescribeAccountAttributesMessage": { - "base": null, - "refs": { - } - }, - "DescribeAccountAttributesResponse": { - "base": null, - "refs": { - } - }, - "DescribeConnectionsMessage": { - "base": null, - "refs": { - } - }, - "DescribeConnectionsResponse": { - "base": null, - "refs": { - } - }, - "DescribeEndpointTypesMessage": { - "base": null, - "refs": { - } - }, - "DescribeEndpointTypesResponse": { - "base": null, - "refs": { - } - }, - "DescribeEndpointsMessage": { - "base": null, - "refs": { - } - }, - "DescribeEndpointsResponse": { - "base": null, - "refs": { - } - }, - "DescribeOrderableReplicationInstancesMessage": { - "base": null, - "refs": { - } - }, - "DescribeOrderableReplicationInstancesResponse": { - "base": null, - "refs": { - } - }, - "DescribeRefreshSchemasStatusMessage": { - "base": null, - "refs": { - } - }, - "DescribeRefreshSchemasStatusResponse": { - "base": null, - "refs": { - } - }, - "DescribeReplicationInstancesMessage": { - "base": null, - "refs": { - } - }, - "DescribeReplicationInstancesResponse": { - "base": null, - "refs": { - } - }, - "DescribeReplicationSubnetGroupsMessage": { - "base": null, - "refs": { - } - }, - "DescribeReplicationSubnetGroupsResponse": { - "base": null, - "refs": { - } - }, - "DescribeReplicationTasksMessage": { - "base": null, - "refs": { - } - }, - "DescribeReplicationTasksResponse": { - "base": null, - "refs": { - } - }, - "DescribeSchemasMessage": { - "base": null, - "refs": { - } - }, - "DescribeSchemasResponse": { - "base": null, - "refs": { - } - }, - "DescribeTableStatisticsMessage": { - "base": null, - "refs": { - } - }, - "DescribeTableStatisticsResponse": { - "base": null, - "refs": { - } - }, - "Endpoint": { - "base": null, - "refs": { - "CreateEndpointResponse$Endpoint": "

    The endpoint that was created.

    ", - "DeleteEndpointResponse$Endpoint": "

    The endpoint that was deleted.

    ", - "EndpointList$member": null, - "ModifyEndpointResponse$Endpoint": "

    The modified endpoint.

    " - } - }, - "EndpointList": { - "base": null, - "refs": { - "DescribeEndpointsResponse$Endpoints": "

    Endpoint description.

    " - } - }, - "ExceptionMessage": { - "base": null, - "refs": { - "AccessDeniedFault$message": null, - "InsufficientResourceCapacityFault$message": null, - "InvalidResourceStateFault$message": null, - "InvalidSubnet$message": null, - "KMSKeyNotAccessibleFault$message": null, - "ReplicationSubnetGroupDoesNotCoverEnoughAZs$message": null, - "ResourceAlreadyExistsFault$message": null, - "ResourceNotFoundFault$message": null, - "ResourceQuotaExceededFault$message": null, - "StorageQuotaExceededFault$message": null, - "SubnetAlreadyInUse$message": null, - "UpgradeDependencyFailureFault$message": null - } - }, - "Filter": { - "base": null, - "refs": { - "FilterList$member": null - } - }, - "FilterList": { - "base": null, - "refs": { - "DescribeConnectionsMessage$Filters": "

    The filters applied to the connection.

    Valid filter names: endpoint-arn | replication-instance-arn

    ", - "DescribeEndpointTypesMessage$Filters": "

    Filters applied to the describe action.

    Valid filter names: engine-name | endpoint-type

    ", - "DescribeEndpointsMessage$Filters": "

    Filters applied to the describe action.

    Valid filter names: endpoint-arn | endpoint-type | endpoint-id | engine-name

    ", - "DescribeReplicationInstancesMessage$Filters": "

    Filters applied to the describe action.

    Valid filter names: replication-instance-arn | replication-instance-id | replication-instance-class | engine-version

    ", - "DescribeReplicationSubnetGroupsMessage$Filters": "

    Filters applied to the describe action.

    ", - "DescribeReplicationTasksMessage$Filters": "

    Filters applied to the describe action.

    Valid filter names: replication-task-arn | replication-task-id | migration-type | endpoint-arn | replication-instance-arn

    " - } - }, - "FilterValueList": { - "base": null, - "refs": { - "Filter$Values": "

    The filter value.

    " - } - }, - "InsufficientResourceCapacityFault": { - "base": "

    There are not enough resources allocated to the database migration.

    ", - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "OrderableReplicationInstance$MinAllocatedStorage": "

    The minimum amount of storage (in gigabytes) that can be allocated for the replication instance.

    ", - "OrderableReplicationInstance$MaxAllocatedStorage": "

    The minimum amount of storage (in gigabytes) that can be allocated for the replication instance.

    ", - "OrderableReplicationInstance$DefaultAllocatedStorage": "

    The default amount of storage (in gigabytes) that is allocated for the replication instance.

    ", - "OrderableReplicationInstance$IncludedAllocatedStorage": "

    The amount of storage (in gigabytes) that is allocated for the replication instance.

    ", - "ReplicationInstance$AllocatedStorage": "

    The amount of storage (in gigabytes) that is allocated for the replication instance.

    ", - "ReplicationTaskStats$FullLoadProgressPercent": "

    The percent complete for the full load migration task.

    ", - "ReplicationTaskStats$TablesLoaded": "

    The number of tables loaded for this task.

    ", - "ReplicationTaskStats$TablesLoading": "

    The number of tables currently loading for this task.

    ", - "ReplicationTaskStats$TablesQueued": "

    The number of tables queued for this task.

    ", - "ReplicationTaskStats$TablesErrored": "

    The number of errors that have occurred during this task.

    " - } - }, - "IntegerOptional": { - "base": null, - "refs": { - "CreateEndpointMessage$Port": "

    The port used by the endpoint database.

    ", - "CreateReplicationInstanceMessage$AllocatedStorage": "

    The amount of storage (in gigabytes) to be initially allocated for the replication instance.

    ", - "DescribeConnectionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeEndpointTypesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeEndpointsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeOrderableReplicationInstancesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeReplicationInstancesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeReplicationSubnetGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeReplicationTasksMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeSchemasMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeTableStatisticsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "Endpoint$Port": "

    The port value used to access the endpoint.

    ", - "ModifyEndpointMessage$Port": "

    The port used by the endpoint database.

    ", - "ModifyReplicationInstanceMessage$AllocatedStorage": "

    The amount of storage (in gigabytes) to be allocated for the replication instance.

    ", - "ReplicationPendingModifiedValues$AllocatedStorage": "

    The amount of storage (in gigabytes) that is allocated for the replication instance.

    " - } - }, - "InvalidResourceStateFault": { - "base": "

    The resource is in a state that prevents it from being used for database migration.

    ", - "refs": { - } - }, - "InvalidSubnet": { - "base": "

    The subnet provided is invalid.

    ", - "refs": { - } - }, - "KMSKeyNotAccessibleFault": { - "base": "

    AWS DMS cannot access the KMS key.

    ", - "refs": { - } - }, - "KeyList": { - "base": null, - "refs": { - "RemoveTagsFromResourceMessage$TagKeys": "

    The tag key (name) of the tag to be removed.

    " - } - }, - "ListTagsForResourceMessage": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceResponse": { - "base": null, - "refs": { - } - }, - "Long": { - "base": null, - "refs": { - "AccountQuota$Used": "

    The amount currently used toward the quota maximum.

    ", - "AccountQuota$Max": "

    The maximum allowed value for the quota.

    ", - "ReplicationTaskStats$ElapsedTimeMillis": "

    The elapsed time of the task, in milliseconds.

    ", - "TableStatistics$Inserts": "

    The number of insert actions performed on a table.

    ", - "TableStatistics$Deletes": "

    The number of delete actions performed on a table.

    ", - "TableStatistics$Updates": "

    The number of update actions performed on a table.

    ", - "TableStatistics$Ddls": "

    The Data Definition Language (DDL) used to build and modify the structure of your tables.

    ", - "TableStatistics$FullLoadRows": "

    The number of rows added during the Full Load operation.

    " - } - }, - "MigrationTypeValue": { - "base": null, - "refs": { - "CreateReplicationTaskMessage$MigrationType": "

    The migration type.

    ", - "ReplicationTask$MigrationType": "

    The type of migration.

    " - } - }, - "ModifyEndpointMessage": { - "base": null, - "refs": { - } - }, - "ModifyEndpointResponse": { - "base": null, - "refs": { - } - }, - "ModifyReplicationInstanceMessage": { - "base": null, - "refs": { - } - }, - "ModifyReplicationInstanceResponse": { - "base": null, - "refs": { - } - }, - "ModifyReplicationSubnetGroupMessage": { - "base": null, - "refs": { - } - }, - "ModifyReplicationSubnetGroupResponse": { - "base": null, - "refs": { - } - }, - "OrderableReplicationInstance": { - "base": null, - "refs": { - "OrderableReplicationInstanceList$member": null - } - }, - "OrderableReplicationInstanceList": { - "base": null, - "refs": { - "DescribeOrderableReplicationInstancesResponse$OrderableReplicationInstances": "

    The order-able replication instances available.

    " - } - }, - "RefreshSchemasMessage": { - "base": null, - "refs": { - } - }, - "RefreshSchemasResponse": { - "base": null, - "refs": { - } - }, - "RefreshSchemasStatus": { - "base": null, - "refs": { - "DescribeRefreshSchemasStatusResponse$RefreshSchemasStatus": "

    The status of the schema.

    ", - "RefreshSchemasResponse$RefreshSchemasStatus": "

    The status of the refreshed schema.

    " - } - }, - "RefreshSchemasStatusTypeValue": { - "base": null, - "refs": { - "RefreshSchemasStatus$Status": "

    The status of the schema.

    " - } - }, - "RemoveTagsFromResourceMessage": { - "base": null, - "refs": { - } - }, - "RemoveTagsFromResourceResponse": { - "base": null, - "refs": { - } - }, - "ReplicationEndpointTypeValue": { - "base": null, - "refs": { - "CreateEndpointMessage$EndpointType": "

    The type of endpoint.

    ", - "Endpoint$EndpointType": "

    The type of endpoint.

    ", - "ModifyEndpointMessage$EndpointType": "

    The type of endpoint.

    ", - "SupportedEndpointType$EndpointType": "

    The type of endpoint.

    " - } - }, - "ReplicationInstance": { - "base": null, - "refs": { - "CreateReplicationInstanceResponse$ReplicationInstance": "

    The replication instance that was created.

    ", - "DeleteReplicationInstanceResponse$ReplicationInstance": "

    The replication instance that was deleted.

    ", - "ModifyReplicationInstanceResponse$ReplicationInstance": "

    The modified replication instance.

    ", - "ReplicationInstanceList$member": null - } - }, - "ReplicationInstanceList": { - "base": null, - "refs": { - "DescribeReplicationInstancesResponse$ReplicationInstances": "

    The replication instances described.

    " - } - }, - "ReplicationPendingModifiedValues": { - "base": null, - "refs": { - "ReplicationInstance$PendingModifiedValues": "

    The pending modification values.

    " - } - }, - "ReplicationSubnetGroup": { - "base": null, - "refs": { - "CreateReplicationSubnetGroupResponse$ReplicationSubnetGroup": "

    The replication subnet group that was created.

    ", - "ModifyReplicationSubnetGroupResponse$ReplicationSubnetGroup": "

    The modified replication subnet group.

    ", - "ReplicationInstance$ReplicationSubnetGroup": "

    The subnet group for the replication instance.

    ", - "ReplicationSubnetGroups$member": null - } - }, - "ReplicationSubnetGroupDoesNotCoverEnoughAZs": { - "base": "

    The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet group and add more AZs.

    ", - "refs": { - } - }, - "ReplicationSubnetGroups": { - "base": null, - "refs": { - "DescribeReplicationSubnetGroupsResponse$ReplicationSubnetGroups": "

    A description of the replication subnet groups.

    " - } - }, - "ReplicationTask": { - "base": null, - "refs": { - "CreateReplicationTaskResponse$ReplicationTask": "

    The replication task that was created.

    ", - "DeleteReplicationTaskResponse$ReplicationTask": "

    The deleted replication task.

    ", - "ReplicationTaskList$member": null, - "StartReplicationTaskResponse$ReplicationTask": "

    The replication task started.

    ", - "StopReplicationTaskResponse$ReplicationTask": "

    The replication task stopped.

    " - } - }, - "ReplicationTaskList": { - "base": null, - "refs": { - "DescribeReplicationTasksResponse$ReplicationTasks": "

    A description of the replication tasks.

    " - } - }, - "ReplicationTaskStats": { - "base": null, - "refs": { - "ReplicationTask$ReplicationTaskStats": "

    The statistics for the task, including elapsed time, tables loaded, and table errors.

    " - } - }, - "ResourceAlreadyExistsFault": { - "base": "

    The resource you are attempting to create already exists.

    ", - "refs": { - } - }, - "ResourceNotFoundFault": { - "base": "

    The resource could not be found.

    ", - "refs": { - } - }, - "ResourceQuotaExceededFault": { - "base": "

    The quota for this resource quota has been exceeded.

    ", - "refs": { - } - }, - "SchemaList": { - "base": null, - "refs": { - "DescribeSchemasResponse$Schemas": "

    The described schema.

    " - } - }, - "SecretString": { - "base": null, - "refs": { - "CreateEndpointMessage$Password": "

    The password to be used to login to the endpoint database.

    ", - "ModifyEndpointMessage$Password": "

    The password to be used to login to the endpoint database.

    " - } - }, - "StartReplicationTaskMessage": { - "base": null, - "refs": { - } - }, - "StartReplicationTaskResponse": { - "base": null, - "refs": { - } - }, - "StartReplicationTaskTypeValue": { - "base": null, - "refs": { - "StartReplicationTaskMessage$StartReplicationTaskType": "

    The type of replication task.

    " - } - }, - "StopReplicationTaskMessage": { - "base": null, - "refs": { - } - }, - "StopReplicationTaskResponse": { - "base": null, - "refs": { - } - }, - "StorageQuotaExceededFault": { - "base": "

    The storage quota has been exceeded.

    ", - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "AccountQuota$AccountQuotaName": "

    The name of the AWS DMS quota for this AWS account.

    ", - "AddTagsToResourceMessage$ResourceArn": "

    The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be added to. AWS DMS resources include a replication instance, endpoint, and a replication task.

    ", - "AvailabilityZone$Name": "

    The name of the availability zone.

    ", - "Connection$ReplicationInstanceArn": "

    The Amazon Resource Name (ARN) of the replication instance.

    ", - "Connection$EndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "Connection$Status": "

    The connection status.

    ", - "Connection$LastFailureMessage": "

    The error message when the connection last failed.

    ", - "Connection$EndpointIdentifier": "

    The identifier of the endpoint. 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.

    ", - "Connection$ReplicationInstanceIdentifier": "

    The replication instance identifier. This parameter is stored as a lowercase string.

    ", - "CreateEndpointMessage$EndpointIdentifier": "

    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.

    ", - "CreateEndpointMessage$EngineName": "

    The type of engine for the endpoint. Valid values include MYSQL, ORACLE, POSTGRES, MARIADB, AURORA, SQLSERVER.

    ", - "CreateEndpointMessage$Username": "

    The user name to be used to login to the endpoint database.

    ", - "CreateEndpointMessage$ServerName": "

    The name of the server where the endpoint database resides.

    ", - "CreateEndpointMessage$DatabaseName": "

    The name of the endpoint database.

    ", - "CreateEndpointMessage$ExtraConnectionAttributes": "

    Additional attributes associated with the connection.

    ", - "CreateEndpointMessage$KmsKeyId": "

    The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

    ", - "CreateReplicationInstanceMessage$ReplicationInstanceIdentifier": "

    The replication instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens.
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: myrepinstance

    ", - "CreateReplicationInstanceMessage$ReplicationInstanceClass": "

    The compute and memory capacity of the replication instance as specified by the replication instance class.

    Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

    ", - "CreateReplicationInstanceMessage$AvailabilityZone": "

    The EC2 Availability Zone that the replication instance will be created in.

    Default: A random, system-chosen Availability Zone in the endpoint's region.

    Example: us-east-1d

    ", - "CreateReplicationInstanceMessage$ReplicationSubnetGroupIdentifier": "

    A subnet group to associate with the replication instance.

    ", - "CreateReplicationInstanceMessage$PreferredMaintenanceWindow": "

    The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

    Format: ddd:hh24:mi-ddd:hh24:mi

    Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week.

    Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

    Constraints: Minimum 30-minute window.

    ", - "CreateReplicationInstanceMessage$EngineVersion": "

    The engine version number of the replication instance.

    ", - "CreateReplicationInstanceMessage$KmsKeyId": "

    The KMS key identifier that will be used to encrypt the content on the replication instance. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

    ", - "CreateReplicationSubnetGroupMessage$ReplicationSubnetGroupIdentifier": "

    The name for the replication subnet group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens. Must not be \"default\".

    Example: mySubnetgroup

    ", - "CreateReplicationSubnetGroupMessage$ReplicationSubnetGroupDescription": "

    The description for the subnet group.

    ", - "CreateReplicationTaskMessage$ReplicationTaskIdentifier": "

    The replication task identifier.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens.
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.
    ", - "CreateReplicationTaskMessage$SourceEndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "CreateReplicationTaskMessage$TargetEndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "CreateReplicationTaskMessage$ReplicationInstanceArn": "

    The Amazon Resource Name (ARN) of the replication instance.

    ", - "CreateReplicationTaskMessage$TableMappings": "

    The path of the JSON file that contains the table mappings.

    ", - "CreateReplicationTaskMessage$ReplicationTaskSettings": "

    Settings for the task, such as target metadata settings.

    ", - "DeleteEndpointMessage$EndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "DeleteReplicationInstanceMessage$ReplicationInstanceArn": "

    The Amazon Resource Name (ARN) of the replication instance to be deleted.

    ", - "DeleteReplicationSubnetGroupMessage$ReplicationSubnetGroupIdentifier": "

    The subnet group name of the replication instance.

    ", - "DeleteReplicationTaskMessage$ReplicationTaskArn": "

    The Amazon Resource Name (ARN) of the replication task to be deleted.

    ", - "DescribeConnectionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeConnectionsResponse$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEndpointTypesMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEndpointTypesResponse$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEndpointsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEndpointsResponse$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOrderableReplicationInstancesMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOrderableReplicationInstancesResponse$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeRefreshSchemasStatusMessage$EndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "DescribeReplicationInstancesMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeReplicationInstancesResponse$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeReplicationSubnetGroupsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeReplicationSubnetGroupsResponse$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeReplicationTasksMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeReplicationTasksResponse$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeSchemasMessage$EndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "DescribeSchemasMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeSchemasResponse$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeTableStatisticsMessage$ReplicationTaskArn": "

    The Amazon Resource Name (ARN) of the replication task.

    ", - "DescribeTableStatisticsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeTableStatisticsResponse$ReplicationTaskArn": "

    The Amazon Resource Name (ARN) of the replication task.

    ", - "DescribeTableStatisticsResponse$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "Endpoint$EndpointIdentifier": "

    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.

    ", - "Endpoint$EngineName": "

    The database engine name.

    ", - "Endpoint$Username": "

    The user name used to connect to the endpoint.

    ", - "Endpoint$ServerName": "

    The name of the server at the endpoint.

    ", - "Endpoint$DatabaseName": "

    The name of the database at the endpoint.

    ", - "Endpoint$ExtraConnectionAttributes": "

    Additional connection attributes used to connect to the endpoint.

    ", - "Endpoint$Status": "

    The status of the endpoint.

    ", - "Endpoint$KmsKeyId": "

    The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

    ", - "Endpoint$EndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "Filter$Name": "

    The name of the filter.

    ", - "FilterValueList$member": null, - "KeyList$member": null, - "ListTagsForResourceMessage$ResourceArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the AWS DMS resource.

    ", - "ModifyEndpointMessage$EndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "ModifyEndpointMessage$EndpointIdentifier": "

    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.

    ", - "ModifyEndpointMessage$EngineName": "

    The type of engine for the endpoint. Valid values include MYSQL, ORACLE, POSTGRES.

    ", - "ModifyEndpointMessage$Username": "

    The user name to be used to login to the endpoint database.

    ", - "ModifyEndpointMessage$ServerName": "

    The name of the server where the endpoint database resides.

    ", - "ModifyEndpointMessage$DatabaseName": "

    The name of the endpoint database.

    ", - "ModifyEndpointMessage$ExtraConnectionAttributes": "

    Additional attributes associated with the connection.

    ", - "ModifyReplicationInstanceMessage$ReplicationInstanceArn": "

    The Amazon Resource Name (ARN) of the replication instance.

    ", - "ModifyReplicationInstanceMessage$ReplicationInstanceClass": "

    The compute and memory capacity of the replication instance.

    Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

    ", - "ModifyReplicationInstanceMessage$PreferredMaintenanceWindow": "

    The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

    Default: Uses existing setting

    Format: ddd:hh24:mi-ddd:hh24:mi

    Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

    Constraints: Must be at least 30 minutes

    ", - "ModifyReplicationInstanceMessage$EngineVersion": "

    The engine version number of the replication instance.

    ", - "ModifyReplicationInstanceMessage$ReplicationInstanceIdentifier": "

    The replication instance identifier. This parameter is stored as a lowercase string.

    ", - "ModifyReplicationSubnetGroupMessage$ReplicationSubnetGroupIdentifier": "

    The name of the replication instance subnet group.

    ", - "ModifyReplicationSubnetGroupMessage$ReplicationSubnetGroupDescription": "

    The description of the replication instance subnet group.

    ", - "OrderableReplicationInstance$EngineVersion": "

    The version of the replication engine.

    ", - "OrderableReplicationInstance$ReplicationInstanceClass": "

    The compute and memory capacity of the replication instance.

    Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

    ", - "OrderableReplicationInstance$StorageType": "

    The type of storage used by the replication instance.

    ", - "RefreshSchemasMessage$EndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "RefreshSchemasMessage$ReplicationInstanceArn": "

    The Amazon Resource Name (ARN) of the replication instance.

    ", - "RefreshSchemasStatus$EndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "RefreshSchemasStatus$ReplicationInstanceArn": "

    The Amazon Resource Name (ARN) of the replication instance.

    ", - "RefreshSchemasStatus$LastFailureMessage": "

    The last failure message for the schema.

    ", - "RemoveTagsFromResourceMessage$ResourceArn": "

    >The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be removed from.

    ", - "ReplicationInstance$ReplicationInstanceIdentifier": "

    The replication instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens.
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: myrepinstance

    ", - "ReplicationInstance$ReplicationInstanceClass": "

    The compute and memory capacity of the replication instance.

    Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

    ", - "ReplicationInstance$ReplicationInstanceStatus": "

    The status of the replication instance.

    ", - "ReplicationInstance$AvailabilityZone": "

    The Availability Zone for the instance.

    ", - "ReplicationInstance$PreferredMaintenanceWindow": "

    The maintenance window times for the replication instance.

    ", - "ReplicationInstance$EngineVersion": "

    The engine version number of the replication instance.

    ", - "ReplicationInstance$KmsKeyId": "

    The KMS key identifier that is used to encrypt the content on the replication instance. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

    ", - "ReplicationInstance$ReplicationInstanceArn": "

    The Amazon Resource Name (ARN) of the replication instance.

    ", - "ReplicationInstance$ReplicationInstancePublicIpAddress": "

    The public IP address of the replication instance.

    ", - "ReplicationInstance$ReplicationInstancePrivateIpAddress": "

    The private IP address of the replication instance.

    ", - "ReplicationPendingModifiedValues$ReplicationInstanceClass": "

    The compute and memory capacity of the replication instance.

    Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge

    ", - "ReplicationPendingModifiedValues$EngineVersion": "

    The engine version number of the replication instance.

    ", - "ReplicationSubnetGroup$ReplicationSubnetGroupIdentifier": "

    The identifier of the replication instance subnet group.

    ", - "ReplicationSubnetGroup$ReplicationSubnetGroupDescription": "

    The description of the replication subnet group.

    ", - "ReplicationSubnetGroup$VpcId": "

    The ID of the VPC.

    ", - "ReplicationSubnetGroup$SubnetGroupStatus": "

    The status of the subnet group.

    ", - "ReplicationTask$ReplicationTaskIdentifier": "

    The replication task identifier.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens.
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.
    ", - "ReplicationTask$SourceEndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "ReplicationTask$TargetEndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    ", - "ReplicationTask$ReplicationInstanceArn": "

    The Amazon Resource Name (ARN) of the replication instance.

    ", - "ReplicationTask$TableMappings": "

    Table mappings specified in the task.

    ", - "ReplicationTask$ReplicationTaskSettings": "

    The settings for the replication task.

    ", - "ReplicationTask$Status": "

    The status of the replication task.

    ", - "ReplicationTask$LastFailureMessage": "

    The last error (failure) message generated for the replication instance.

    ", - "ReplicationTask$ReplicationTaskArn": "

    The Amazon Resource Name (ARN) of the replication task.

    ", - "SchemaList$member": null, - "StartReplicationTaskMessage$ReplicationTaskArn": "

    The Amazon Resource Number (ARN) of the replication task to be started.

    ", - "StopReplicationTaskMessage$ReplicationTaskArn": "

    The Amazon Resource Number(ARN) of the replication task to be stopped.

    ", - "Subnet$SubnetIdentifier": "

    The subnet identifier.

    ", - "Subnet$SubnetStatus": "

    The status of the subnet.

    ", - "SubnetIdentifierList$member": null, - "SupportedEndpointType$EngineName": "

    The database engine name.

    ", - "TableStatistics$SchemaName": "

    The schema name.

    ", - "TableStatistics$TableName": "

    The name of the table.

    ", - "TableStatistics$TableState": "

    The state of the table.

    ", - "Tag$Key": "

    A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\" or \"dms:\". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", - "Tag$Value": "

    A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\" or \"dms:\". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", - "TestConnectionMessage$ReplicationInstanceArn": "

    The Amazon Resource Number (ARN) of the replication instance.

    ", - "TestConnectionMessage$EndpointArn": "

    The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

    " - } - }, - "Subnet": { - "base": null, - "refs": { - "SubnetList$member": null - } - }, - "SubnetAlreadyInUse": { - "base": "

    The specified subnet is already in use.

    ", - "refs": { - } - }, - "SubnetIdentifierList": { - "base": null, - "refs": { - "CreateReplicationSubnetGroupMessage$SubnetIds": "

    The EC2 subnet IDs for the subnet group.

    ", - "ModifyReplicationSubnetGroupMessage$SubnetIds": "

    A list of subnet IDs.

    " - } - }, - "SubnetList": { - "base": null, - "refs": { - "ReplicationSubnetGroup$Subnets": "

    The subnets that are in the subnet group.

    " - } - }, - "SupportedEndpointType": { - "base": null, - "refs": { - "SupportedEndpointTypeList$member": null - } - }, - "SupportedEndpointTypeList": { - "base": null, - "refs": { - "DescribeEndpointTypesResponse$SupportedEndpointTypes": "

    The type of endpoints that are supported.

    " - } - }, - "TStamp": { - "base": null, - "refs": { - "CreateReplicationTaskMessage$CdcStartTime": "

    The start time for the Change Data Capture (CDC) operation.

    ", - "RefreshSchemasStatus$LastRefreshDate": "

    The date the schema was last refreshed.

    ", - "ReplicationInstance$InstanceCreateTime": "

    The time the replication instance was created.

    ", - "ReplicationTask$ReplicationTaskCreationDate": "

    The date the replication task was created.

    ", - "ReplicationTask$ReplicationTaskStartDate": "

    The date the replication task is scheduled to start.

    ", - "StartReplicationTaskMessage$CdcStartTime": "

    The start time for the Change Data Capture (CDC) operation.

    ", - "TableStatistics$LastUpdateTime": "

    The last time the table was updated.

    " - } - }, - "TableStatistics": { - "base": null, - "refs": { - "TableStatisticsList$member": null - } - }, - "TableStatisticsList": { - "base": null, - "refs": { - "DescribeTableStatisticsResponse$TableStatistics": "

    The table statistics.

    " - } - }, - "Tag": { - "base": null, - "refs": { - "TagList$member": null - } - }, - "TagList": { - "base": null, - "refs": { - "AddTagsToResourceMessage$Tags": "

    The tag to be assigned to the DMS resource.

    ", - "CreateEndpointMessage$Tags": "

    Tags to be added to the endpoint.

    ", - "CreateReplicationInstanceMessage$Tags": "

    Tags to be associated with the replication instance.

    ", - "CreateReplicationSubnetGroupMessage$Tags": "

    The tag to be assigned to the subnet group.

    ", - "CreateReplicationTaskMessage$Tags": "

    Tags to be added to the replication instance.

    ", - "ListTagsForResourceResponse$TagList": "

    A list of tags for the resource.

    " - } - }, - "TestConnectionMessage": { - "base": null, - "refs": { - } - }, - "TestConnectionResponse": { - "base": null, - "refs": { - } - }, - "UpgradeDependencyFailureFault": { - "base": "

    An upgrade dependency is preventing the database migration.

    ", - "refs": { - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ds/2015-04-16/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/api-2.json deleted file mode 100644 index 89de839f0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/api-2.json +++ /dev/null @@ -1,801 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2011-12-05", - "endpointPrefix":"dynamodb", - "jsonVersion":"1.0", - "protocol":"json", - "serviceAbbreviation":"DynamoDB", - "serviceFullName":"Amazon DynamoDB", - "signatureVersion":"v4", - "targetPrefix":"DynamoDB_20111205" - }, - "operations":{ - "BatchGetItem":{ - "name":"BatchGetItem", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"BatchGetItemInput"}, - "output":{"shape":"BatchGetItemOutput"}, - "errors":[ - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServerError"} - ] - }, - "BatchWriteItem":{ - "name":"BatchWriteItem", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"BatchWriteItemInput"}, - "output":{"shape":"BatchWriteItemOutput"}, - "errors":[ - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalServerError"} - ] - }, - "CreateTable":{ - "name":"CreateTable", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateTableInput"}, - "output":{"shape":"CreateTableOutput"}, - "errors":[ - {"shape":"ResourceInUseException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalServerError"} - ] - }, - "DeleteItem":{ - "name":"DeleteItem", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteItemInput"}, - "output":{"shape":"DeleteItemOutput"}, - "errors":[ - {"shape":"ConditionalCheckFailedException"}, - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalServerError"} - ] - }, - "DeleteTable":{ - "name":"DeleteTable", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteTableInput"}, - "output":{"shape":"DeleteTableOutput"}, - "errors":[ - {"shape":"ResourceInUseException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalServerError"} - ] - }, - "DescribeTable":{ - "name":"DescribeTable", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeTableInput"}, - "output":{"shape":"DescribeTableOutput"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServerError"} - ] - }, - "GetItem":{ - "name":"GetItem", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetItemInput"}, - "output":{"shape":"GetItemOutput"}, - "errors":[ - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServerError"} - ] - }, - "ListTables":{ - "name":"ListTables", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTablesInput"}, - "output":{"shape":"ListTablesOutput"}, - "errors":[ - {"shape":"InternalServerError"} - ] - }, - "PutItem":{ - "name":"PutItem", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutItemInput"}, - "output":{"shape":"PutItemOutput"}, - "errors":[ - {"shape":"ConditionalCheckFailedException"}, - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalServerError"} - ] - }, - "Query":{ - "name":"Query", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"QueryInput"}, - "output":{"shape":"QueryOutput"}, - "errors":[ - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServerError"} - ] - }, - "Scan":{ - "name":"Scan", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ScanInput"}, - "output":{"shape":"ScanOutput"}, - "errors":[ - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InternalServerError"} - ] - }, - "UpdateItem":{ - "name":"UpdateItem", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateItemInput"}, - "output":{"shape":"UpdateItemOutput"}, - "errors":[ - {"shape":"ConditionalCheckFailedException"}, - {"shape":"ProvisionedThroughputExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalServerError"} - ] - }, - "UpdateTable":{ - "name":"UpdateTable", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateTableInput"}, - "output":{"shape":"UpdateTableOutput"}, - "errors":[ - {"shape":"ResourceInUseException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"LimitExceededException"}, - {"shape":"InternalServerError"} - ] - } - }, - "shapes":{ - "AttributeAction":{ - "type":"string", - "enum":[ - "ADD", - "PUT", - "DELETE" - ] - }, - "AttributeMap":{ - "type":"map", - "key":{"shape":"AttributeName"}, - "value":{"shape":"AttributeValue"} - }, - "AttributeName":{ - "type":"string", - "max":65535 - }, - "AttributeNameList":{ - "type":"list", - "member":{"shape":"AttributeName"}, - "min":1 - }, - "AttributeUpdates":{ - "type":"map", - "key":{"shape":"AttributeName"}, - "value":{"shape":"AttributeValueUpdate"} - }, - "AttributeValue":{ - "type":"structure", - "members":{ - "S":{"shape":"StringAttributeValue"}, - "N":{"shape":"NumberAttributeValue"}, - "B":{"shape":"BinaryAttributeValue"}, - "SS":{"shape":"StringSetAttributeValue"}, - "NS":{"shape":"NumberSetAttributeValue"}, - "BS":{"shape":"BinarySetAttributeValue"} - } - }, - "AttributeValueList":{ - "type":"list", - "member":{"shape":"AttributeValue"} - }, - "AttributeValueUpdate":{ - "type":"structure", - "members":{ - "Value":{"shape":"AttributeValue"}, - "Action":{"shape":"AttributeAction"} - } - }, - "BatchGetItemInput":{ - "type":"structure", - "required":["RequestItems"], - "members":{ - "RequestItems":{"shape":"BatchGetRequestMap"} - } - }, - "BatchGetItemOutput":{ - "type":"structure", - "members":{ - "Responses":{"shape":"BatchGetResponseMap"}, - "UnprocessedKeys":{"shape":"BatchGetRequestMap"} - } - }, - "BatchGetRequestMap":{ - "type":"map", - "key":{"shape":"TableName"}, - "value":{"shape":"KeysAndAttributes"}, - "max":100, - "min":1 - }, - "BatchGetResponseMap":{ - "type":"map", - "key":{"shape":"TableName"}, - "value":{"shape":"BatchResponse"} - }, - "BatchResponse":{ - "type":"structure", - "members":{ - "Items":{"shape":"ItemList"}, - "ConsumedCapacityUnits":{"shape":"ConsumedCapacityUnits"} - } - }, - "BatchWriteItemInput":{ - "type":"structure", - "required":["RequestItems"], - "members":{ - "RequestItems":{"shape":"BatchWriteItemRequestMap"} - } - }, - "BatchWriteItemOutput":{ - "type":"structure", - "members":{ - "Responses":{"shape":"BatchWriteResponseMap"}, - "UnprocessedItems":{"shape":"BatchWriteItemRequestMap"} - } - }, - "BatchWriteItemRequestMap":{ - "type":"map", - "key":{"shape":"TableName"}, - "value":{"shape":"WriteRequests"}, - "max":25, - "min":1 - }, - "BatchWriteResponse":{ - "type":"structure", - "members":{ - "ConsumedCapacityUnits":{"shape":"ConsumedCapacityUnits"} - } - }, - "BatchWriteResponseMap":{ - "type":"map", - "key":{"shape":"TableName"}, - "value":{"shape":"BatchWriteResponse"} - }, - "BinaryAttributeValue":{"type":"blob"}, - "BinarySetAttributeValue":{ - "type":"list", - "member":{"shape":"BinaryAttributeValue"} - }, - "BooleanObject":{"type":"boolean"}, - "ComparisonOperator":{ - "type":"string", - "enum":[ - "EQ", - "NE", - "IN", - "LE", - "LT", - "GE", - "GT", - "BETWEEN", - "NOT_NULL", - "NULL", - "CONTAINS", - "NOT_CONTAINS", - "BEGINS_WITH" - ] - }, - "Condition":{ - "type":"structure", - "required":["ComparisonOperator"], - "members":{ - "AttributeValueList":{"shape":"AttributeValueList"}, - "ComparisonOperator":{"shape":"ComparisonOperator"} - } - }, - "ConditionalCheckFailedException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "ConsistentRead":{"type":"boolean"}, - "ConsumedCapacityUnits":{"type":"double"}, - "CreateTableInput":{ - "type":"structure", - "required":[ - "TableName", - "KeySchema", - "ProvisionedThroughput" - ], - "members":{ - "TableName":{"shape":"TableName"}, - "KeySchema":{"shape":"KeySchema"}, - "ProvisionedThroughput":{"shape":"ProvisionedThroughput"} - } - }, - "CreateTableOutput":{ - "type":"structure", - "members":{ - "TableDescription":{"shape":"TableDescription"} - } - }, - "Date":{"type":"timestamp"}, - "DeleteItemInput":{ - "type":"structure", - "required":[ - "TableName", - "Key" - ], - "members":{ - "TableName":{"shape":"TableName"}, - "Key":{"shape":"Key"}, - "Expected":{"shape":"ExpectedAttributeMap"}, - "ReturnValues":{"shape":"ReturnValue"} - } - }, - "DeleteItemOutput":{ - "type":"structure", - "members":{ - "Attributes":{"shape":"AttributeMap"}, - "ConsumedCapacityUnits":{"shape":"ConsumedCapacityUnits"} - } - }, - "DeleteRequest":{ - "type":"structure", - "required":["Key"], - "members":{ - "Key":{"shape":"Key"} - } - }, - "DeleteTableInput":{ - "type":"structure", - "required":["TableName"], - "members":{ - "TableName":{"shape":"TableName"} - } - }, - "DeleteTableOutput":{ - "type":"structure", - "members":{ - "TableDescription":{"shape":"TableDescription"} - } - }, - "DescribeTableInput":{ - "type":"structure", - "required":["TableName"], - "members":{ - "TableName":{"shape":"TableName"} - } - }, - "DescribeTableOutput":{ - "type":"structure", - "members":{ - "Table":{"shape":"TableDescription"} - } - }, - "ErrorMessage":{"type":"string"}, - "ExpectedAttributeMap":{ - "type":"map", - "key":{"shape":"AttributeName"}, - "value":{"shape":"ExpectedAttributeValue"} - }, - "ExpectedAttributeValue":{ - "type":"structure", - "members":{ - "Value":{"shape":"AttributeValue"}, - "Exists":{"shape":"BooleanObject"} - } - }, - "FilterConditionMap":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"Condition"} - }, - "GetItemInput":{ - "type":"structure", - "required":[ - "TableName", - "Key" - ], - "members":{ - "TableName":{"shape":"TableName"}, - "Key":{"shape":"Key"}, - "AttributesToGet":{"shape":"AttributeNameList"}, - "ConsistentRead":{"shape":"ConsistentRead"} - } - }, - "GetItemOutput":{ - "type":"structure", - "members":{ - "Item":{"shape":"AttributeMap"}, - "ConsumedCapacityUnits":{"shape":"ConsumedCapacityUnits"} - } - }, - "Integer":{"type":"integer"}, - "InternalServerError":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "exception":true, - "fault":true - }, - "ItemList":{ - "type":"list", - "member":{"shape":"AttributeMap"} - }, - "Key":{ - "type":"structure", - "required":["HashKeyElement"], - "members":{ - "HashKeyElement":{"shape":"AttributeValue"}, - "RangeKeyElement":{"shape":"AttributeValue"} - } - }, - "KeyList":{ - "type":"list", - "member":{"shape":"Key"}, - "max":100, - "min":1 - }, - "KeySchema":{ - "type":"structure", - "required":["HashKeyElement"], - "members":{ - "HashKeyElement":{"shape":"KeySchemaElement"}, - "RangeKeyElement":{"shape":"KeySchemaElement"} - } - }, - "KeySchemaAttributeName":{ - "type":"string", - "max":255, - "min":1 - }, - "KeySchemaElement":{ - "type":"structure", - "required":[ - "AttributeName", - "AttributeType" - ], - "members":{ - "AttributeName":{"shape":"KeySchemaAttributeName"}, - "AttributeType":{"shape":"ScalarAttributeType"} - } - }, - "KeysAndAttributes":{ - "type":"structure", - "required":["Keys"], - "members":{ - "Keys":{"shape":"KeyList"}, - "AttributesToGet":{"shape":"AttributeNameList"}, - "ConsistentRead":{"shape":"ConsistentRead"} - } - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "ListTablesInput":{ - "type":"structure", - "members":{ - "ExclusiveStartTableName":{"shape":"TableName"}, - "Limit":{"shape":"ListTablesInputLimit"} - } - }, - "ListTablesInputLimit":{ - "type":"integer", - "max":100, - "min":1 - }, - "ListTablesOutput":{ - "type":"structure", - "members":{ - "TableNames":{"shape":"TableNameList"}, - "LastEvaluatedTableName":{"shape":"TableName"} - } - }, - "Long":{"type":"long"}, - "NumberAttributeValue":{"type":"string"}, - "NumberSetAttributeValue":{ - "type":"list", - "member":{"shape":"NumberAttributeValue"} - }, - "PositiveIntegerObject":{ - "type":"integer", - "min":1 - }, - "PositiveLongObject":{ - "type":"long", - "min":1 - }, - "ProvisionedThroughput":{ - "type":"structure", - "required":[ - "ReadCapacityUnits", - "WriteCapacityUnits" - ], - "members":{ - "ReadCapacityUnits":{"shape":"PositiveLongObject"}, - "WriteCapacityUnits":{"shape":"PositiveLongObject"} - } - }, - "ProvisionedThroughputDescription":{ - "type":"structure", - "members":{ - "LastIncreaseDateTime":{"shape":"Date"}, - "LastDecreaseDateTime":{"shape":"Date"}, - "NumberOfDecreasesToday":{"shape":"PositiveLongObject"}, - "ReadCapacityUnits":{"shape":"PositiveLongObject"}, - "WriteCapacityUnits":{"shape":"PositiveLongObject"} - } - }, - "ProvisionedThroughputExceededException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "PutItemInput":{ - "type":"structure", - "required":[ - "TableName", - "Item" - ], - "members":{ - "TableName":{"shape":"TableName"}, - "Item":{"shape":"PutItemInputAttributeMap"}, - "Expected":{"shape":"ExpectedAttributeMap"}, - "ReturnValues":{"shape":"ReturnValue"} - } - }, - "PutItemInputAttributeMap":{ - "type":"map", - "key":{"shape":"AttributeName"}, - "value":{"shape":"AttributeValue"} - }, - "PutItemOutput":{ - "type":"structure", - "members":{ - "Attributes":{"shape":"AttributeMap"}, - "ConsumedCapacityUnits":{"shape":"ConsumedCapacityUnits"} - } - }, - "PutRequest":{ - "type":"structure", - "required":["Item"], - "members":{ - "Item":{"shape":"PutItemInputAttributeMap"} - } - }, - "QueryInput":{ - "type":"structure", - "required":[ - "TableName", - "HashKeyValue" - ], - "members":{ - "TableName":{"shape":"TableName"}, - "AttributesToGet":{"shape":"AttributeNameList"}, - "Limit":{"shape":"PositiveIntegerObject"}, - "ConsistentRead":{"shape":"ConsistentRead"}, - "Count":{"shape":"BooleanObject"}, - "HashKeyValue":{"shape":"AttributeValue"}, - "RangeKeyCondition":{"shape":"Condition"}, - "ScanIndexForward":{"shape":"BooleanObject"}, - "ExclusiveStartKey":{"shape":"Key"} - } - }, - "QueryOutput":{ - "type":"structure", - "members":{ - "Items":{"shape":"ItemList"}, - "Count":{"shape":"Integer"}, - "LastEvaluatedKey":{"shape":"Key"}, - "ConsumedCapacityUnits":{"shape":"ConsumedCapacityUnits"} - } - }, - "ResourceInUseException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "ReturnValue":{ - "type":"string", - "enum":[ - "NONE", - "ALL_OLD", - "UPDATED_OLD", - "ALL_NEW", - "UPDATED_NEW" - ] - }, - "ScalarAttributeType":{ - "type":"string", - "enum":[ - "S", - "N", - "B" - ] - }, - "ScanInput":{ - "type":"structure", - "required":["TableName"], - "members":{ - "TableName":{"shape":"TableName"}, - "AttributesToGet":{"shape":"AttributeNameList"}, - "Limit":{"shape":"PositiveIntegerObject"}, - "Count":{"shape":"BooleanObject"}, - "ScanFilter":{"shape":"FilterConditionMap"}, - "ExclusiveStartKey":{"shape":"Key"} - } - }, - "ScanOutput":{ - "type":"structure", - "members":{ - "Items":{"shape":"ItemList"}, - "Count":{"shape":"Integer"}, - "ScannedCount":{"shape":"Integer"}, - "LastEvaluatedKey":{"shape":"Key"}, - "ConsumedCapacityUnits":{"shape":"ConsumedCapacityUnits"} - } - }, - "String":{"type":"string"}, - "StringAttributeValue":{"type":"string"}, - "StringSetAttributeValue":{ - "type":"list", - "member":{"shape":"StringAttributeValue"} - }, - "TableDescription":{ - "type":"structure", - "members":{ - "TableName":{"shape":"TableName"}, - "KeySchema":{"shape":"KeySchema"}, - "TableStatus":{"shape":"TableStatus"}, - "CreationDateTime":{"shape":"Date"}, - "ProvisionedThroughput":{"shape":"ProvisionedThroughputDescription"}, - "TableSizeBytes":{"shape":"Long"}, - "ItemCount":{"shape":"Long"} - } - }, - "TableName":{ - "type":"string", - "max":255, - "min":3, - "pattern":"[a-zA-Z0-9_.-]+" - }, - "TableNameList":{ - "type":"list", - "member":{"shape":"TableName"} - }, - "TableStatus":{ - "type":"string", - "enum":[ - "CREATING", - "UPDATING", - "DELETING", - "ACTIVE" - ] - }, - "UpdateItemInput":{ - "type":"structure", - "required":[ - "TableName", - "Key", - "AttributeUpdates" - ], - "members":{ - "TableName":{"shape":"TableName"}, - "Key":{"shape":"Key"}, - "AttributeUpdates":{"shape":"AttributeUpdates"}, - "Expected":{"shape":"ExpectedAttributeMap"}, - "ReturnValues":{"shape":"ReturnValue"} - } - }, - "UpdateItemOutput":{ - "type":"structure", - "members":{ - "Attributes":{"shape":"AttributeMap"}, - "ConsumedCapacityUnits":{"shape":"ConsumedCapacityUnits"} - } - }, - "UpdateTableInput":{ - "type":"structure", - "required":[ - "TableName", - "ProvisionedThroughput" - ], - "members":{ - "TableName":{"shape":"TableName"}, - "ProvisionedThroughput":{"shape":"ProvisionedThroughput"} - } - }, - "UpdateTableOutput":{ - "type":"structure", - "members":{ - "TableDescription":{"shape":"TableDescription"} - } - }, - "WriteRequest":{ - "type":"structure", - "members":{ - "PutRequest":{"shape":"PutRequest"}, - "DeleteRequest":{"shape":"DeleteRequest"} - } - }, - "WriteRequests":{ - "type":"list", - "member":{"shape":"WriteRequest"}, - "max":25, - "min":1 - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/docs-2.json deleted file mode 100644 index 80242d9ee..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/docs-2.json +++ /dev/null @@ -1,606 +0,0 @@ -{ - "version": "2.0", - "service": "

    Amazon DynamoDB is a fast, highly scalable, highly available, cost-effective non-relational database service.

    Amazon DynamoDB removes traditional scalability limitations on data storage while maintaining low latency and predictable performance.

    ", - "operations": { - "BatchGetItem": "

    Retrieves the attributes for multiple items from multiple tables using their primary keys.

    The maximum number of item attributes that can be retrieved for a single operation is 100. Also, the number of items retrieved is constrained by a 1 MB the size limit. If the response size limit is exceeded or a partial result is returned due to an internal processing failure, Amazon DynamoDB returns an UnprocessedKeys value so you can retry the operation starting with the next item to get.

    Amazon DynamoDB automatically adjusts the number of items returned per page to enforce this limit. For example, even if you ask to retrieve 100 items, but each individual item is 50k in size, the system returns 20 items and an appropriate UnprocessedKeys value so you can get the next page of results. If necessary, your application needs its own logic to assemble the pages of results into one set.

    ", - "BatchWriteItem": "

    Allows to execute a batch of Put and/or Delete Requests for many tables in a single call. A total of 25 requests are allowed.

    There are no transaction guarantees provided by this API. It does not allow conditional puts nor does it support return values.

    ", - "CreateTable": "

    Adds a new table to your account.

    The table name must be unique among those associated with the AWS Account issuing the request, and the AWS Region that receives the request (e.g. us-east-1).

    The CreateTable operation triggers an asynchronous workflow to begin creating the table. Amazon DynamoDB immediately returns the state of the table (CREATING) until the table is in the ACTIVE state. Once the table is in the ACTIVE state, you can perform data plane operations.

    ", - "DeleteItem": "

    Deletes a single item in a table by primary key.

    You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.

    ", - "DeleteTable": "

    Deletes a table and all of its items.

    If the table is in the ACTIVE state, you can delete it. If a table is in CREATING or UPDATING states then Amazon DynamoDB returns a ResourceInUseException. If the specified table does not exist, Amazon DynamoDB returns a ResourceNotFoundException.

    ", - "DescribeTable": "

    Retrieves information about the table, including the current status of the table, the primary key schema and when the table was created.

    If the table does not exist, Amazon DynamoDB returns a ResourceNotFoundException.

    ", - "GetItem": "

    Retrieves a set of Attributes for an item that matches the primary key.

    The GetItem operation provides an eventually-consistent read by default. If eventually-consistent reads are not acceptable for your application, use ConsistentRead. Although this operation might take longer than a standard read, it always returns the last updated value.

    ", - "ListTables": "

    Retrieves a paginated list of table names created by the AWS Account of the caller in the AWS Region (e.g. us-east-1).

    ", - "PutItem": "

    Creates a new item, or replaces an old item with a new item (including all the attributes).

    If an item already exists in the specified table with the same primary key, the new item completely replaces the existing item. You can perform a conditional put (insert a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values.

    ", - "Query": "

    Gets the values of one or more items and its attributes by primary key (composite primary key, only).

    Narrow the scope of the query using comparison operators on the RangeKeyValue of the composite key. Use the ScanIndexForward parameter to get results in forward or reverse order by range key.

    ", - "Scan": "

    Retrieves one or more items and its attributes by performing a full scan of a table.

    Provide a ScanFilter to get more specific results.

    ", - "UpdateItem": "

    Edits an existing item's attributes.

    You can perform a conditional update (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values).

    ", - "UpdateTable": "

    Updates the provisioned throughput for the given table.

    Setting the throughput for a table helps you manage performance and is part of the Provisioned Throughput feature of Amazon DynamoDB.

    " - }, - "shapes": { - "AttributeAction": { - "base": "

    The type of action for an item update operation. Only use the add action for numbers or sets; the specified value is added to the existing value. If a set of values is specified, the values are added to the existing set. Adds the specified attribute. If the attribute exists, it is replaced by the new value. If no value is specified, this removes the attribute and its value. If a set of values is specified, then the values in the specified set are removed from the old set.

    ", - "refs": { - "AttributeValueUpdate$Action": null - } - }, - "AttributeMap": { - "base": null, - "refs": { - "DeleteItemOutput$Attributes": "

    If the ReturnValues parameter is provided as ALL_OLD in the request, Amazon DynamoDB returns an array of attribute name-value pairs (essentially, the deleted item). Otherwise, the response contains an empty set.

    ", - "GetItemOutput$Item": "

    Contains the requested attributes.

    ", - "ItemList$member": null, - "PutItemOutput$Attributes": "

    Attribute values before the put operation, but only if the ReturnValues parameter is specified as ALL_OLD in the request.

    ", - "UpdateItemOutput$Attributes": "

    A map of attribute name-value pairs, but only if the ReturnValues parameter is specified as something other than NONE in the request.

    " - } - }, - "AttributeName": { - "base": null, - "refs": { - "AttributeMap$key": null, - "AttributeNameList$member": null, - "AttributeUpdates$key": null, - "ExpectedAttributeMap$key": null, - "PutItemInputAttributeMap$key": null - } - }, - "AttributeNameList": { - "base": "

    List of Attribute names. If attribute names are not specified then all attributes will be returned. If some attributes are not found, they will not appear in the result.

    ", - "refs": { - "GetItemInput$AttributesToGet": null, - "KeysAndAttributes$AttributesToGet": null, - "QueryInput$AttributesToGet": null, - "ScanInput$AttributesToGet": null - } - }, - "AttributeUpdates": { - "base": "

    Map of attribute name to the new value and action for the update. The attribute names specify the attributes to modify, and cannot contain any primary key attributes.

    ", - "refs": { - "UpdateItemInput$AttributeUpdates": null - } - }, - "AttributeValue": { - "base": "

    AttributeValue can be String, Number, Binary, StringSet, NumberSet, BinarySet.

    ", - "refs": { - "AttributeMap$value": null, - "AttributeValueList$member": null, - "AttributeValueUpdate$Value": null, - "ExpectedAttributeValue$Value": "

    Specify whether or not a value already exists and has a specific content for the attribute name-value pair.

    ", - "Key$HashKeyElement": "

    A hash key element is treated as the primary key, and can be a string or a number. Single attribute primary keys have one index value. The value can be String, Number, StringSet, NumberSet.

    ", - "Key$RangeKeyElement": "

    A range key element is treated as a secondary key (used in conjunction with the primary key), and can be a string or a number, and is only used for hash-and-range primary keys. The value can be String, Number, StringSet, NumberSet.

    ", - "PutItemInputAttributeMap$value": null, - "QueryInput$HashKeyValue": "

    Attribute value of the hash component of the composite primary key.

    " - } - }, - "AttributeValueList": { - "base": "

    A list of attribute values to be used with a comparison operator for a scan or query operation. For comparisons that require more than one value, such as a BETWEEN comparison, the AttributeValueList contains two attribute values and the comparison operator.

    ", - "refs": { - "Condition$AttributeValueList": null - } - }, - "AttributeValueUpdate": { - "base": "

    Specifies the attribute to update and how to perform the update. Possible values: PUT (default), ADD or DELETE.

    ", - "refs": { - "AttributeUpdates$value": null - } - }, - "BatchGetItemInput": { - "base": null, - "refs": { - } - }, - "BatchGetItemOutput": { - "base": null, - "refs": { - } - }, - "BatchGetRequestMap": { - "base": "

    A map of the table name and corresponding items to get by primary key. While requesting items, each table name can be invoked only once per operation.

    ", - "refs": { - "BatchGetItemInput$RequestItems": null, - "BatchGetItemOutput$UnprocessedKeys": "

    Contains a map of tables and their respective keys that were not processed with the current response, possibly due to reaching a limit on the response size. The UnprocessedKeys value is in the same form as a RequestItems parameter (so the value can be provided directly to a subsequent BatchGetItem operation). For more information, see the above RequestItems parameter.

    " - } - }, - "BatchGetResponseMap": { - "base": "

    Table names and the respective item attributes from the tables.

    ", - "refs": { - "BatchGetItemOutput$Responses": null - } - }, - "BatchResponse": { - "base": "

    The item attributes from a response in a specific table, along with the read resources consumed on the table during the request.

    ", - "refs": { - "BatchGetResponseMap$value": null - } - }, - "BatchWriteItemInput": { - "base": null, - "refs": { - } - }, - "BatchWriteItemOutput": { - "base": "

    A container for BatchWriteItem response

    ", - "refs": { - } - }, - "BatchWriteItemRequestMap": { - "base": "

    A map of table name to list-of-write-requests.

    Key: The table name corresponding to the list of requests

    Value: Essentially a list of request items. Each request item could contain either a PutRequest or DeleteRequest. Never both.

    ", - "refs": { - "BatchWriteItemInput$RequestItems": "

    A map of table name to list-of-write-requests. Used as input to the BatchWriteItem API call

    ", - "BatchWriteItemOutput$UnprocessedItems": "

    The Items which we could not successfully process in a BatchWriteItem call is returned as UnprocessedItems

    " - } - }, - "BatchWriteResponse": { - "base": null, - "refs": { - "BatchWriteResponseMap$value": null - } - }, - "BatchWriteResponseMap": { - "base": null, - "refs": { - "BatchWriteItemOutput$Responses": "

    The response object as a result of BatchWriteItem call. This is essentially a map of table name to ConsumedCapacityUnits.

    " - } - }, - "BinaryAttributeValue": { - "base": null, - "refs": { - "AttributeValue$B": "

    Binary attributes are sequences of unsigned bytes.

    ", - "BinarySetAttributeValue$member": null - } - }, - "BinarySetAttributeValue": { - "base": null, - "refs": { - "AttributeValue$BS": "

    A set of binary attributes.

    " - } - }, - "BooleanObject": { - "base": null, - "refs": { - "ExpectedAttributeValue$Exists": "

    Specify whether or not a value already exists for the attribute name-value pair.

    ", - "QueryInput$Count": "

    If set to true, Amazon DynamoDB returns a total number of items that match the query parameters, instead of a list of the matching items and their attributes. Do not set Count to true while providing a list of AttributesToGet, otherwise Amazon DynamoDB returns a validation error.

    ", - "QueryInput$ScanIndexForward": "

    Specifies forward or backward traversal of the index. Amazon DynamoDB returns results reflecting the requested order, determined by the range key. The default value is true (forward).

    ", - "ScanInput$Count": "

    If set to true, Amazon DynamoDB returns a total number of items for the Scan operation, even if the operation has no matching items for the assigned filter. Do not set Count to true while providing a list of AttributesToGet, otherwise Amazon DynamoDB returns a validation error.

    " - } - }, - "ComparisonOperator": { - "base": "

    A comparison operator is an enumeration of several operations:

    • EQ for equal.
    • NE for not equal.
    • IN checks for exact matches.
    • LE for less than or equal to.
    • LT for less than.
    • GE for greater than or equal to.
    • GT for greater than.
    • BETWEEN for between.
    • NOT_NULL for exists.
    • NULL for not exists.
    • CONTAINS for substring or value in a set.
    • NOT_CONTAINS for absence of a substring or absence of a value in a set.
    • BEGINS_WITH for a substring prefix.

    Scan operations support all available comparison operators.

    Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.

    ", - "refs": { - "Condition$ComparisonOperator": null - } - }, - "Condition": { - "base": null, - "refs": { - "FilterConditionMap$value": null, - "QueryInput$RangeKeyCondition": "

    A container for the attribute values and comparison operators to use for the query.

    " - } - }, - "ConditionalCheckFailedException": { - "base": "

    This exception is thrown when an expected value does not match what was found in the system.

    ", - "refs": { - } - }, - "ConsistentRead": { - "base": "

    If set to true, then a consistent read is issued. Otherwise eventually-consistent is used.

    ", - "refs": { - "GetItemInput$ConsistentRead": null, - "KeysAndAttributes$ConsistentRead": null, - "QueryInput$ConsistentRead": null - } - }, - "ConsumedCapacityUnits": { - "base": "

    The number of Capacity Units of the provisioned throughput of the table consumed during the operation. GetItem, BatchGetItem, BatchWriteItem, Query, and Scan operations consume ReadCapacityUnits, while PutItem, UpdateItem, and DeleteItem operations consume WriteCapacityUnits.

    ", - "refs": { - "BatchResponse$ConsumedCapacityUnits": null, - "BatchWriteResponse$ConsumedCapacityUnits": null, - "DeleteItemOutput$ConsumedCapacityUnits": null, - "GetItemOutput$ConsumedCapacityUnits": null, - "PutItemOutput$ConsumedCapacityUnits": null, - "QueryOutput$ConsumedCapacityUnits": null, - "ScanOutput$ConsumedCapacityUnits": null, - "UpdateItemOutput$ConsumedCapacityUnits": null - } - }, - "CreateTableInput": { - "base": null, - "refs": { - } - }, - "CreateTableOutput": { - "base": null, - "refs": { - } - }, - "Date": { - "base": null, - "refs": { - "ProvisionedThroughputDescription$LastIncreaseDateTime": null, - "ProvisionedThroughputDescription$LastDecreaseDateTime": null, - "TableDescription$CreationDateTime": null - } - }, - "DeleteItemInput": { - "base": null, - "refs": { - } - }, - "DeleteItemOutput": { - "base": null, - "refs": { - } - }, - "DeleteRequest": { - "base": "

    A container for a Delete BatchWrite request

    ", - "refs": { - "WriteRequest$DeleteRequest": null - } - }, - "DeleteTableInput": { - "base": null, - "refs": { - } - }, - "DeleteTableOutput": { - "base": null, - "refs": { - } - }, - "DescribeTableInput": { - "base": null, - "refs": { - } - }, - "DescribeTableOutput": { - "base": null, - "refs": { - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "ConditionalCheckFailedException$message": null, - "InternalServerError$message": null, - "LimitExceededException$message": null, - "ProvisionedThroughputExceededException$message": null, - "ResourceInUseException$message": null, - "ResourceNotFoundException$message": null - } - }, - "ExpectedAttributeMap": { - "base": "

    Designates an attribute for a conditional modification. The Expected parameter allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute has a particular value before modifying it.

    ", - "refs": { - "DeleteItemInput$Expected": null, - "PutItemInput$Expected": null, - "UpdateItemInput$Expected": null - } - }, - "ExpectedAttributeValue": { - "base": "

    Allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute value already exists; or if the attribute value exists and has a particular value before changing it.

    ", - "refs": { - "ExpectedAttributeMap$value": null - } - }, - "FilterConditionMap": { - "base": null, - "refs": { - "ScanInput$ScanFilter": "

    Evaluates the scan results and returns only the desired values.

    " - } - }, - "GetItemInput": { - "base": null, - "refs": { - } - }, - "GetItemOutput": { - "base": null, - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "QueryOutput$Count": "

    Number of items in the response.

    ", - "ScanOutput$Count": "

    Number of items in the response.

    ", - "ScanOutput$ScannedCount": "

    Number of items in the complete scan before any filters are applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Scan operation.

    " - } - }, - "InternalServerError": { - "base": "

    This exception is thrown when the service has a problem when trying to process the request.

    ", - "refs": { - } - }, - "ItemList": { - "base": null, - "refs": { - "BatchResponse$Items": null, - "QueryOutput$Items": null, - "ScanOutput$Items": null - } - }, - "Key": { - "base": "

    The primary key that uniquely identifies each item in a table. A primary key can be a one attribute (hash) primary key or a two attribute (hash-and-range) primary key.

    ", - "refs": { - "DeleteItemInput$Key": null, - "DeleteRequest$Key": "

    The item's key to be delete

    ", - "GetItemInput$Key": null, - "KeyList$member": null, - "QueryInput$ExclusiveStartKey": "

    Primary key of the item from which to continue an earlier query. An earlier query might provide this value as the LastEvaluatedKey if that query operation was interrupted before completing the query; either because of the result set size or the Limit parameter. The LastEvaluatedKey can be passed back in a new query request to continue the operation from that point.

    ", - "QueryOutput$LastEvaluatedKey": "

    Primary key of the item where the query operation stopped, inclusive of the previous result set. Use this value to start a new operation excluding this value in the new request. The LastEvaluatedKey is null when the entire query result set is complete (i.e. the operation processed the \"last page\").

    ", - "ScanInput$ExclusiveStartKey": "

    Primary key of the item from which to continue an earlier scan. An earlier scan might provide this value if that scan operation was interrupted before scanning the entire table; either because of the result set size or the Limit parameter. The LastEvaluatedKey can be passed back in a new scan request to continue the operation from that point.

    ", - "ScanOutput$LastEvaluatedKey": "

    Primary key of the item where the scan operation stopped. Provide this value in a subsequent scan operation to continue the operation from that point. The LastEvaluatedKey is null when the entire scan result set is complete (i.e. the operation processed the \"last page\").

    ", - "UpdateItemInput$Key": null - } - }, - "KeyList": { - "base": null, - "refs": { - "KeysAndAttributes$Keys": null - } - }, - "KeySchema": { - "base": "

    The KeySchema identifies the primary key as a one attribute primary key (hash) or a composite two attribute (hash-and-range) primary key. Single attribute primary keys have one index value: a HashKeyElement. A composite hash-and-range primary key contains two attribute values: a HashKeyElement and a RangeKeyElement.

    ", - "refs": { - "CreateTableInput$KeySchema": null, - "TableDescription$KeySchema": null - } - }, - "KeySchemaAttributeName": { - "base": null, - "refs": { - "KeySchemaElement$AttributeName": "

    The AttributeName of the KeySchemaElement.

    " - } - }, - "KeySchemaElement": { - "base": "

    KeySchemaElement is the primary key (hash or hash-and-range) structure for the table.

    ", - "refs": { - "KeySchema$HashKeyElement": "

    A hash key element is treated as the primary key, and can be a string or a number. Single attribute primary keys have one index value. The value can be String, Number, StringSet, NumberSet.

    ", - "KeySchema$RangeKeyElement": "

    A range key element is treated as a secondary key (used in conjunction with the primary key), and can be a string or a number, and is only used for hash-and-range primary keys. The value can be String, Number, StringSet, NumberSet.

    " - } - }, - "KeysAndAttributes": { - "base": null, - "refs": { - "BatchGetRequestMap$value": null - } - }, - "LimitExceededException": { - "base": "

    This exception is thrown when the subscriber exceeded the limits on the number of objects or operations.

    ", - "refs": { - } - }, - "ListTablesInput": { - "base": null, - "refs": { - } - }, - "ListTablesInputLimit": { - "base": "

    A number of maximum table names to return.

    ", - "refs": { - "ListTablesInput$Limit": null - } - }, - "ListTablesOutput": { - "base": null, - "refs": { - } - }, - "Long": { - "base": null, - "refs": { - "TableDescription$TableSizeBytes": null, - "TableDescription$ItemCount": null - } - }, - "NumberAttributeValue": { - "base": null, - "refs": { - "AttributeValue$N": "

    Numbers are positive or negative exact-value decimals and integers. A number can have up to 38 digits precision and can be between 10^-128 to 10^+126.

    ", - "NumberSetAttributeValue$member": null - } - }, - "NumberSetAttributeValue": { - "base": null, - "refs": { - "AttributeValue$NS": "

    A set of numbers.

    " - } - }, - "PositiveIntegerObject": { - "base": null, - "refs": { - "QueryInput$Limit": "

    The maximum number of items to return. If Amazon DynamoDB hits this limit while querying the table, it stops the query and returns the matching values up to the limit, and a LastEvaluatedKey to apply in a subsequent operation to continue the query. Also, if the result set size exceeds 1MB before Amazon DynamoDB hits this limit, it stops the query and returns the matching values, and a LastEvaluatedKey to apply in a subsequent operation to continue the query.

    ", - "ScanInput$Limit": "

    The maximum number of items to return. If Amazon DynamoDB hits this limit while scanning the table, it stops the scan and returns the matching values up to the limit, and a LastEvaluatedKey to apply in a subsequent operation to continue the scan. Also, if the scanned data set size exceeds 1 MB before Amazon DynamoDB hits this limit, it stops the scan and returns the matching values up to the limit, and a LastEvaluatedKey to apply in a subsequent operation to continue the scan.

    " - } - }, - "PositiveLongObject": { - "base": null, - "refs": { - "ProvisionedThroughput$ReadCapacityUnits": "

    ReadCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the ReadCapacityUnits. Eventually-consistent reads only require half the ReadCapacityUnits of stirctly consistent reads.

    ", - "ProvisionedThroughput$WriteCapacityUnits": "

    WriteCapacityUnits are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the WriteCapacityUnits.

    ", - "ProvisionedThroughputDescription$NumberOfDecreasesToday": null, - "ProvisionedThroughputDescription$ReadCapacityUnits": null, - "ProvisionedThroughputDescription$WriteCapacityUnits": null - } - }, - "ProvisionedThroughput": { - "base": "

    Provisioned throughput reserves the required read and write resources for your table in terms of ReadCapacityUnits and WriteCapacityUnits. Values for provisioned throughput depend upon your expected read/write rates, item size, and consistency. Provide the expected number of read and write operations, assuming an item size of 1k and strictly consistent reads. For 2k item size, double the value. For 3k, triple the value, etc. Eventually-consistent reads consume half the resources of strictly consistent reads.

    ", - "refs": { - "CreateTableInput$ProvisionedThroughput": null, - "UpdateTableInput$ProvisionedThroughput": null - } - }, - "ProvisionedThroughputDescription": { - "base": null, - "refs": { - "TableDescription$ProvisionedThroughput": null - } - }, - "ProvisionedThroughputExceededException": { - "base": "

    This exception is thrown when the level of provisioned throughput defined for the table is exceeded.

    ", - "refs": { - } - }, - "PutItemInput": { - "base": null, - "refs": { - } - }, - "PutItemInputAttributeMap": { - "base": "

    A map of the attributes for the item, and must include the primary key values that define the item. Other attribute name-value pairs can be provided for the item.

    ", - "refs": { - "PutItemInput$Item": null, - "PutRequest$Item": "

    The item to put

    " - } - }, - "PutItemOutput": { - "base": null, - "refs": { - } - }, - "PutRequest": { - "base": "

    A container for a Put BatchWrite request

    ", - "refs": { - "WriteRequest$PutRequest": null - } - }, - "QueryInput": { - "base": null, - "refs": { - } - }, - "QueryOutput": { - "base": null, - "refs": { - } - }, - "ResourceInUseException": { - "base": "

    This exception is thrown when the resource which is being attempted to be changed is in use.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    This exception is thrown when the resource which is being attempted to be changed is in use.

    ", - "refs": { - } - }, - "ReturnValue": { - "base": "

    Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For PUT operations, the possible parameter values are NONE (default) or ALL_OLD. For update operations, the possible parameter values are NONE (default) or ALL_OLD, UPDATED_OLD, ALL_NEW or UPDATED_NEW.

    • NONE: Nothing is returned.
    • ALL_OLD: Returns the attributes of the item as they were before the operation.
    • UPDATED_OLD: Returns the values of the updated attributes, only, as they were before the operation.
    • ALL_NEW: Returns all the attributes and their new values after the operation.
    • UPDATED_NEW: Returns the values of the updated attributes, only, as they are after the operation.
    ", - "refs": { - "DeleteItemInput$ReturnValues": null, - "PutItemInput$ReturnValues": null, - "UpdateItemInput$ReturnValues": null - } - }, - "ScalarAttributeType": { - "base": null, - "refs": { - "KeySchemaElement$AttributeType": "

    The AttributeType of the KeySchemaElement which can be a String or a Number.

    " - } - }, - "ScanInput": { - "base": null, - "refs": { - } - }, - "ScanOutput": { - "base": null, - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "FilterConditionMap$key": null - } - }, - "StringAttributeValue": { - "base": null, - "refs": { - "AttributeValue$S": "

    Strings are Unicode with UTF-8 binary encoding. The maximum size is limited by the size of the primary key (1024 bytes as a range part of a key or 2048 bytes as a single part hash key) or the item size (64k).

    ", - "StringSetAttributeValue$member": null - } - }, - "StringSetAttributeValue": { - "base": null, - "refs": { - "AttributeValue$SS": "

    A set of strings.

    " - } - }, - "TableDescription": { - "base": null, - "refs": { - "CreateTableOutput$TableDescription": null, - "DeleteTableOutput$TableDescription": null, - "DescribeTableOutput$Table": null, - "UpdateTableOutput$TableDescription": null - } - }, - "TableName": { - "base": null, - "refs": { - "BatchGetRequestMap$key": null, - "BatchGetResponseMap$key": null, - "BatchWriteItemRequestMap$key": null, - "BatchWriteResponseMap$key": null, - "CreateTableInput$TableName": "

    The name of the table you want to create. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

    ", - "DeleteItemInput$TableName": "

    The name of the table in which you want to delete an item. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

    ", - "DeleteTableInput$TableName": "

    The name of the table you want to delete. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

    ", - "DescribeTableInput$TableName": "

    The name of the table you want to describe. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

    ", - "GetItemInput$TableName": "

    The name of the table in which you want to get an item. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

    ", - "ListTablesInput$ExclusiveStartTableName": "

    The name of the table that starts the list. If you already ran a ListTables operation and received a LastEvaluatedTableName value in the response, use that value here to continue the list.

    ", - "ListTablesOutput$LastEvaluatedTableName": "

    The name of the last table in the current list. Use this value as the ExclusiveStartTableName in a new request to continue the list until all the table names are returned. If this value is null, all table names have been returned.

    ", - "PutItemInput$TableName": "

    The name of the table in which you want to put an item. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

    ", - "QueryInput$TableName": "

    The name of the table in which you want to query. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

    ", - "ScanInput$TableName": "

    The name of the table in which you want to scan. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

    ", - "TableDescription$TableName": "

    The name of the table being described.

    ", - "TableNameList$member": null, - "UpdateItemInput$TableName": "

    The name of the table in which you want to update an item. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

    ", - "UpdateTableInput$TableName": "

    The name of the table you want to update. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

    " - } - }, - "TableNameList": { - "base": null, - "refs": { - "ListTablesOutput$TableNames": null - } - }, - "TableStatus": { - "base": null, - "refs": { - "TableDescription$TableStatus": null - } - }, - "UpdateItemInput": { - "base": null, - "refs": { - } - }, - "UpdateItemOutput": { - "base": null, - "refs": { - } - }, - "UpdateTableInput": { - "base": null, - "refs": { - } - }, - "UpdateTableOutput": { - "base": null, - "refs": { - } - }, - "WriteRequest": { - "base": "

    This structure is a Union of PutRequest and DeleteRequest. It can contain exactly one of PutRequest or DeleteRequest. Never Both. This is enforced in the code.

    ", - "refs": { - "WriteRequests$member": null - } - }, - "WriteRequests": { - "base": null, - "refs": { - "BatchWriteItemRequestMap$value": null - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2011-12-05/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json deleted file mode 100644 index 38082d233..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/docs-2.json +++ /dev/null @@ -1,1028 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon DynamoDB

    This is the Amazon DynamoDB API Reference. This guide provides descriptions of the low-level DynamoDB API.

    This guide is intended for use with the following DynamoDB documentation:

    Instead of making the requests to the low-level DynamoDB API directly from your application, we recommend that you use the AWS Software Development Kits (SDKs). The easy-to-use libraries in the AWS SDKs make it unnecessary to call the low-level DynamoDB API directly from your application. The libraries take care of request authentication, serialization, and connection management. For more information, see Using the AWS SDKs with DynamoDB in the Amazon DynamoDB Developer Guide.

    If you decide to code against the low-level DynamoDB API directly, you will need to write the necessary code to authenticate your requests. For more information on signing your requests, see Using the DynamoDB API in the Amazon DynamoDB Developer Guide.

    The following are short descriptions of each low-level API action, organized by function.

    Managing Tables

    • CreateTable - Creates a table with user-specified provisioned throughput settings. You must define a primary key for the table - either a simple primary key (partition key), or a composite primary key (partition key and sort key). Optionally, you can create one or more secondary indexes, which provide fast data access using non-key attributes.

    • DescribeTable - Returns metadata for a table, such as table size, status, and index information.

    • UpdateTable - Modifies the provisioned throughput settings for a table. Optionally, you can modify the provisioned throughput settings for global secondary indexes on the table.

    • ListTables - Returns a list of all tables associated with the current AWS account and endpoint.

    • DeleteTable - Deletes a table and all of its indexes.

    For conceptual information about managing tables, see Working with Tables in the Amazon DynamoDB Developer Guide.

    Reading Data

    • GetItem - Returns a set of attributes for the item that has a given primary key. By default, GetItem performs an eventually consistent read; however, applications can request a strongly consistent read instead.

    • BatchGetItem - Performs multiple GetItem requests for data items using their primary keys, from one table or multiple tables. The response from BatchGetItem has a size limit of 16 MB and returns a maximum of 100 items. Both eventually consistent and strongly consistent reads can be used.

    • Query - Returns one or more items from a table or a secondary index. You must provide a specific value for the partition key. You can narrow the scope of the query using comparison operators against a sort key value, or on the index key. Query supports either eventual or strong consistency. A single response has a size limit of 1 MB.

    • Scan - Reads every item in a table; the result set is eventually consistent. You can limit the number of items returned by filtering the data attributes, using conditional expressions. Scan can be used to enable ad-hoc querying of a table against non-key attributes; however, since this is a full table scan without using an index, Scan should not be used for any application query use case that requires predictable performance.

    For conceptual information about reading data, see Working with Items and Query and Scan Operations in the Amazon DynamoDB Developer Guide.

    Modifying Data

    • PutItem - Creates a new item, or replaces an existing item with a new item (including all the attributes). By default, if an item in the table already exists with the same primary key, the new item completely replaces the existing item. You can use conditional operators to replace an item only if its attribute values match certain conditions, or to insert a new item only if that item doesn't already exist.

    • UpdateItem - Modifies the attributes of an existing item. You can also use conditional operators to perform an update only if the item's attribute values match certain conditions.

    • DeleteItem - Deletes an item in a table by primary key. You can use conditional operators to perform a delete an item only if the item's attribute values match certain conditions.

    • BatchWriteItem - Performs multiple PutItem and DeleteItem requests across multiple tables in a single request. A failure of any request(s) in the batch will not cause the entire BatchWriteItem operation to fail. Supports batches of up to 25 items to put or delete, with a maximum total request size of 16 MB.

    For conceptual information about modifying data, see Working with Items and Query and Scan Operations in the Amazon DynamoDB Developer Guide.

    ", - "operations": { - "BatchGetItem": "

    The BatchGetItem operation returns the attributes of one or more items from one or more tables. You identify requested items by primary key.

    A single operation can retrieve up to 16 MB of data, which can contain as many as 100 items. BatchGetItem will return a partial result if the response size limit is exceeded, the table's provisioned throughput is exceeded, or an internal processing failure occurs. If a partial result is returned, the operation returns a value for UnprocessedKeys. You can use this value to retry the operation starting with the next item to get.

    If you request more than 100 items BatchGetItem will return a ValidationException with the message \"Too many items requested for the BatchGetItem call\".

    For example, if you ask to retrieve 100 items, but each individual item is 300 KB in size, the system returns 52 items (so as not to exceed the 16 MB limit). It also returns an appropriate UnprocessedKeys value so you can get the next page of results. If desired, your application can include its own logic to assemble the pages of results into one data set.

    If none of the items can be processed due to insufficient provisioned throughput on all of the tables in the request, then BatchGetItem will return a ProvisionedThroughputExceededException. If at least one of the items is successfully processed, then BatchGetItem completes successfully, while returning the keys of the unread items in UnprocessedKeys.

    If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm. If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you delay the batch operation using exponential backoff, the individual requests in the batch are much more likely to succeed.

    For more information, see Batch Operations and Error Handling in the Amazon DynamoDB Developer Guide.

    By default, BatchGetItem performs eventually consistent reads on every table in the request. If you want strongly consistent reads instead, you can set ConsistentRead to true for any or all tables.

    In order to minimize response latency, BatchGetItem retrieves items in parallel.

    When designing your application, keep in mind that DynamoDB does not return items in any particular order. To help parse the response by item, include the primary key values for the items in your request in the AttributesToGet parameter.

    If a requested item does not exist, it is not returned in the result. Requests for nonexistent items consume the minimum read capacity units according to the type of read. For more information, see Capacity Units Calculations in the Amazon DynamoDB Developer Guide.

    ", - "BatchWriteItem": "

    The BatchWriteItem operation puts or deletes multiple items in one or more tables. A single call to BatchWriteItem can write up to 16 MB of data, which can comprise as many as 25 put or delete requests. Individual items to be written can be as large as 400 KB.

    BatchWriteItem cannot update items. To update items, use the UpdateItem API.

    The individual PutItem and DeleteItem operations specified in BatchWriteItem are atomic; however BatchWriteItem as a whole is not. If any requested operations fail because the table's provisioned throughput is exceeded or an internal processing failure occurs, the failed operations are returned in the UnprocessedItems response parameter. You can investigate and optionally resend the requests. Typically, you would call BatchWriteItem in a loop. Each iteration would check for unprocessed items and submit a new BatchWriteItem request with those unprocessed items until all items have been processed.

    Note that if none of the items can be processed due to insufficient provisioned throughput on all of the tables in the request, then BatchWriteItem will return a ProvisionedThroughputExceededException.

    If DynamoDB returns any unprocessed items, you should retry the batch operation on those items. However, we strongly recommend that you use an exponential backoff algorithm. If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you delay the batch operation using exponential backoff, the individual requests in the batch are much more likely to succeed.

    For more information, see Batch Operations and Error Handling in the Amazon DynamoDB Developer Guide.

    With BatchWriteItem, you can efficiently write or delete large amounts of data, such as from Amazon Elastic MapReduce (EMR), or copy data from another database into DynamoDB. In order to improve performance with these large-scale operations, BatchWriteItem does not behave in the same way as individual PutItem and DeleteItem calls would. For example, you cannot specify conditions on individual put and delete requests, and BatchWriteItem does not return deleted items in the response.

    If you use a programming language that supports concurrency, you can use threads to write items in parallel. Your application must include the necessary logic to manage the threads. With languages that don't support threading, you must update or delete the specified items one at a time. In both situations, BatchWriteItem provides an alternative where the API performs the specified put and delete operations in parallel, giving you the power of the thread pool approach without having to introduce complexity into your application.

    Parallel processing reduces latency, but each specified put and delete request consumes the same number of write capacity units whether it is processed in parallel or not. Delete operations on nonexistent items consume one write capacity unit.

    If one or more of the following is true, DynamoDB rejects the entire batch write operation:

    • One or more tables specified in the BatchWriteItem request does not exist.

    • Primary key attributes specified on an item in the request do not match those in the corresponding table's primary key schema.

    • You try to perform multiple operations on the same item in the same BatchWriteItem request. For example, you cannot put and delete the same item in the same BatchWriteItem request.

    • There are more than 25 requests in the batch.

    • Any individual item in a batch exceeds 400 KB.

    • The total request size exceeds 16 MB.

    ", - "CreateTable": "

    The CreateTable operation adds a new table to your account. In an AWS account, table names must be unique within each region. That is, you can have two tables with same name if you create the tables in different regions.

    CreateTable is an asynchronous operation. Upon receiving a CreateTable request, DynamoDB immediately returns a response with a TableStatus of CREATING. After the table is created, DynamoDB sets the TableStatus to ACTIVE. You can perform read and write operations only on an ACTIVE table.

    You can optionally define secondary indexes on the new table, as part of the CreateTable operation. If you want to create multiple tables with secondary indexes on them, you must create the tables sequentially. Only one table with secondary indexes can be in the CREATING state at any given time.

    You can use the DescribeTable API to check the table status.

    ", - "DeleteItem": "

    Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.

    In addition to deleting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter.

    Unless you specify conditions, the DeleteItem is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response.

    Conditional deletes are useful for deleting items only if specific conditions are met. If those conditions are met, DynamoDB performs the delete. Otherwise, the item is not deleted.

    ", - "DeleteTable": "

    The DeleteTable operation deletes a table and all of its items. After a DeleteTable request, the specified table is in the DELETING state until DynamoDB completes the deletion. If the table is in the ACTIVE state, you can delete it. If a table is in CREATING or UPDATING states, then DynamoDB returns a ResourceInUseException. If the specified table does not exist, DynamoDB returns a ResourceNotFoundException. If table is already in the DELETING state, no error is returned.

    DynamoDB might continue to accept data read and write operations, such as GetItem and PutItem, on a table in the DELETING state until the table deletion is complete.

    When you delete a table, any indexes on that table are also deleted.

    If you have DynamoDB Streams enabled on the table, then the corresponding stream on that table goes into the DISABLED state, and the stream is automatically deleted after 24 hours.

    Use the DescribeTable API to check the status of the table.

    ", - "DescribeLimits": "

    Returns the current provisioned-capacity limits for your AWS account in a region, both for the region as a whole and for any one DynamoDB table that you create there.

    When you establish an AWS account, the account has initial limits on the maximum read capacity units and write capacity units that you can provision across all of your DynamoDB tables in a given region. Also, there are per-table limits that apply when you create a table there. For more information, see Limits page in the Amazon DynamoDB Developer Guide.

    Although you can increase these limits by filing a case at AWS Support Center, obtaining the increase is not instantaneous. The DescribeLimits API lets you write code to compare the capacity you are currently using to those limits imposed by your account so that you have enough time to apply for an increase before you hit a limit.

    For example, you could use one of the AWS SDKs to do the following:

    1. Call DescribeLimits for a particular region to obtain your current account limits on provisioned capacity there.

    2. Create a variable to hold the aggregate read capacity units provisioned for all your tables in that region, and one to hold the aggregate write capacity units. Zero them both.

    3. Call ListTables to obtain a list of all your DynamoDB tables.

    4. For each table name listed by ListTables, do the following:

      • Call DescribeTable with the table name.

      • Use the data returned by DescribeTable to add the read capacity units and write capacity units provisioned for the table itself to your variables.

      • If the table has one or more global secondary indexes (GSIs), loop over these GSIs and add their provisioned capacity values to your variables as well.

    5. Report the account limits for that region returned by DescribeLimits, along with the total current provisioned capacity levels you have calculated.

    This will let you see whether you are getting close to your account-level limits.

    The per-table limits apply only when you are creating a new table. They restrict the sum of the provisioned capacity of the new table itself and all its global secondary indexes.

    For existing tables and their GSIs, DynamoDB will not let you increase provisioned capacity extremely rapidly, but the only upper limit that applies is that the aggregate provisioned capacity over all your tables and GSIs cannot exceed either of the per-account limits.

    DescribeLimits should only be called periodically. You can expect throttling errors if you call it more than once in a minute.

    The DescribeLimits Request element has no content.

    ", - "DescribeTable": "

    Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table.

    If you issue a DescribeTable request immediately after a CreateTable request, DynamoDB might return a ResourceNotFoundException. This is because DescribeTable uses an eventually consistent query, and the metadata for your table might not be available at that moment. Wait for a few seconds, and then try the DescribeTable request again.

    ", - "GetItem": "

    The GetItem operation returns a set of attributes for the item with the given primary key. If there is no matching item, GetItem does not return any data.

    GetItem provides an eventually consistent read by default. If your application requires a strongly consistent read, set ConsistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.

    ", - "ListTables": "

    Returns an array of table names associated with the current account and endpoint. The output from ListTables is paginated, with each page returning a maximum of 100 table names.

    ", - "PutItem": "

    Creates a new item, or replaces an old item with a new item. If an item that has the same primary key as the new item already exists in the specified table, the new item completely replaces the existing item. You can perform a conditional put operation (add a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values.

    In addition to putting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter.

    When you add an item, the primary key attribute(s) are the only required attributes. Attribute values cannot be null. String and Binary type attributes must have lengths greater than zero. Set type attributes cannot be empty. Requests with empty values will be rejected with a ValidationException exception.

    You can request that PutItem return either a copy of the original item (before the update) or a copy of the updated item (after the update). For more information, see the ReturnValues description below.

    To prevent a new item from replacing an existing item, use a conditional expression that contains the attribute_not_exists function with the name of the attribute being used as the partition key for the table. Since every record must contain that attribute, the attribute_not_exists function will only succeed if no matching item exists.

    For more information about using this API, see Working with Items in the Amazon DynamoDB Developer Guide.

    ", - "Query": "

    A Query operation uses the primary key of a table or a secondary index to directly access items from that table or index.

    Use the KeyConditionExpression parameter to provide a specific value for the partition key. The Query operation will return all of the items from the table or index with that partition key value. You can optionally narrow the scope of the Query operation by specifying a sort key value and a comparison operator in KeyConditionExpression. You can use the ScanIndexForward parameter to get results in forward or reverse order, by sort key.

    Queries that do not return results consume the minimum number of read capacity units for that type of read operation.

    If the total number of items meeting the query criteria exceeds the result set size limit of 1 MB, the query stops and results are returned to the user with the LastEvaluatedKey element to continue the query in a subsequent operation. Unlike a Scan operation, a Query operation never returns both an empty result set and a LastEvaluatedKey value. LastEvaluatedKey is only provided if you have used the Limit parameter, or if the result set exceeds 1 MB (prior to applying a filter).

    You can query a table, a local secondary index, or a global secondary index. For a query on a table or on a local secondary index, you can set the ConsistentRead parameter to true and obtain a strongly consistent result. Global secondary indexes support eventually consistent reads only, so do not specify ConsistentRead when querying a global secondary index.

    ", - "Scan": "

    The Scan operation returns one or more items and item attributes by accessing every item in a table or a secondary index. To have DynamoDB return fewer items, you can provide a ScanFilter operation.

    If the total number of scanned items exceeds the maximum data set size limit of 1 MB, the scan stops and results are returned to the user as a LastEvaluatedKey value to continue the scan in a subsequent operation. The results also include the number of items exceeding the limit. A scan can result in no table data meeting the filter criteria.

    By default, Scan operations proceed sequentially; however, for faster performance on a large table or secondary index, applications can request a parallel Scan operation by providing the Segment and TotalSegments parameters. For more information, see Parallel Scan in the Amazon DynamoDB Developer Guide.

    By default, Scan uses eventually consistent reads when accessing the data in a table; therefore, the result set might not include the changes to data in the table immediately before the operation began. If you need a consistent copy of the data, as of the time that the Scan begins, you can set the ConsistentRead parameter to true.

    ", - "UpdateItem": "

    Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values).

    You can also return the item's attribute values in the same UpdateItem operation using the ReturnValues parameter.

    ", - "UpdateTable": "

    Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.

    You can only perform one of the following operations at once:

    • Modify the provisioned throughput settings of the table.

    • Enable or disable Streams on the table.

    • Remove a global secondary index from the table.

    • Create a new global secondary index on the table. Once the index begins backfilling, you can use UpdateTable to perform other operations.

    UpdateTable is an asynchronous operation; while it is executing, the table status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot issue another UpdateTable request. When the table returns to the ACTIVE state, the UpdateTable operation is complete.

    " - }, - "shapes": { - "AttributeAction": { - "base": null, - "refs": { - "AttributeValueUpdate$Action": "

    Specifies how to perform the update. Valid values are PUT (default), DELETE, and ADD. The behavior depends on whether the specified primary key already exists in the table.

    If an item with the specified Key is found in the table:

    • PUT - Adds the specified attribute to the item. If the attribute already exists, it is replaced by the new value.

    • DELETE - If no value is specified, the attribute and its value are removed from the item. The data type of the specified value must match the existing value's data type.

      If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specified [a,c], then the final attribute value would be [b]. Specifying an empty set is an error.

    • ADD - If the attribute does not already exist, then the attribute and its values are added to the item. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

      • If the existing attribute is a number, and if Value is also a number, then the Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

        If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

        In addition, if you use ADD to update an existing item, and intend to increment or decrement an attribute value which does not yet exist, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update does not yet have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway, even though it currently does not exist. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3.

      • If the existing data type is a set, and if the Value is also a set, then the Value is added to the existing set. (This is a set operation, not mathematical addition.) For example, if the attribute value was the set [1,2], and the ADD action specified [3], then the final attribute value would be [1,2,3]. An error occurs if an Add action is specified for a set attribute and the attribute type specified does not match the existing set type.

        Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings. The same holds true for number sets and binary sets.

      This action is only valid for an existing attribute whose data type is number or is a set. Do not use ADD for any other data types.

    If no item with the specified Key is found:

    • PUT - DynamoDB creates a new item with the specified primary key, and then adds the attribute.

    • DELETE - Nothing happens; there is no attribute to delete.

    • ADD - DynamoDB creates an item with the supplied primary key and number (or set of numbers) for the attribute value. The only data types allowed are number and number set; no other data types can be specified.

    " - } - }, - "AttributeDefinition": { - "base": "

    Represents an attribute for describing the key schema for the table and indexes.

    ", - "refs": { - "AttributeDefinitions$member": null - } - }, - "AttributeDefinitions": { - "base": null, - "refs": { - "CreateTableInput$AttributeDefinitions": "

    An array of attributes that describe the key schema for the table and indexes.

    ", - "TableDescription$AttributeDefinitions": "

    An array of AttributeDefinition objects. Each of these objects describes one attribute in the table and index key schema.

    Each AttributeDefinition object in this array is composed of:

    • AttributeName - The name of the attribute.

    • AttributeType - The data type for the attribute.

    ", - "UpdateTableInput$AttributeDefinitions": "

    An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions must include the key element(s) of the new index.

    " - } - }, - "AttributeMap": { - "base": null, - "refs": { - "DeleteItemOutput$Attributes": "

    A map of attribute names to AttributeValue objects, representing the item as it appeared before the DeleteItem operation. This map appears in the response only if ReturnValues was specified as ALL_OLD in the request.

    ", - "GetItemOutput$Item": "

    A map of attribute names to AttributeValue objects, as specified by AttributesToGet.

    ", - "ItemList$member": null, - "PutItemOutput$Attributes": "

    The attribute values as they appeared before the PutItem operation, but only if ReturnValues is specified as ALL_OLD in the request. Each element consists of an attribute name and an attribute value.

    ", - "UpdateItemOutput$Attributes": "

    A map of attribute values as they appeared before the UpdateItem operation. This map only appears if ReturnValues was specified as something other than NONE in the request. Each element represents one attribute.

    " - } - }, - "AttributeName": { - "base": null, - "refs": { - "AttributeMap$key": null, - "AttributeNameList$member": null, - "AttributeUpdates$key": null, - "ExpectedAttributeMap$key": null, - "ExpressionAttributeNameMap$value": null, - "FilterConditionMap$key": null, - "ItemCollectionKeyAttributeMap$key": null, - "Key$key": null, - "KeyConditions$key": null, - "MapAttributeValue$key": null, - "PutItemInputAttributeMap$key": null - } - }, - "AttributeNameList": { - "base": null, - "refs": { - "GetItemInput$AttributesToGet": "

    This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

    The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

    ", - "KeysAndAttributes$AttributesToGet": "

    One or more attributes to retrieve from the table or index. If no attribute names are specified then all attributes will be returned. If any of the specified attributes are not found, they will not appear in the result.

    ", - "QueryInput$AttributesToGet": "

    This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

    The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

    You cannot use both AttributesToGet and Select together in a Query request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

    If you query a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB will fetch each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.

    If you query a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.

    ", - "ScanInput$AttributesToGet": "

    This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

    The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

    " - } - }, - "AttributeUpdates": { - "base": null, - "refs": { - "UpdateItemInput$AttributeUpdates": "

    This is a legacy parameter, for backward compatibility. New applications should use UpdateExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    This parameter can be used for modifying top-level attributes; however, it does not support individual list or map elements.

    The names of attributes to be modified, the action to perform on each, and the new value for each. If you are updating an attribute that is an index key attribute for any indexes on that table, the attribute type must match the index key type defined in the AttributesDefinition of the table description. You can use UpdateItem to update any non-key attributes.

    Attribute values cannot be null. String and Binary type attributes must have lengths greater than zero. Set type attributes must not be empty. Requests with empty values will be rejected with a ValidationException exception.

    Each AttributeUpdates element consists of an attribute name to modify, along with the following:

    • Value - The new value, if applicable, for this attribute.

    • Action - A value that specifies how to perform the update. This action is only valid for an existing attribute whose data type is Number or is a set; do not use ADD for other data types.

      If an item with the specified primary key is found in the table, the following values perform the following actions:

      • PUT - Adds the specified attribute to the item. If the attribute already exists, it is replaced by the new value.

      • DELETE - Removes the attribute and its value, if no value is specified for DELETE. The data type of the specified value must match the existing value's data type.

        If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specifies [a,c], then the final attribute value is [b]. Specifying an empty set is an error.

      • ADD - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

        • If the existing attribute is a number, and if Value is also a number, then Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

          If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

          Similarly, if you use ADD for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update doesn't have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute, with a value of 3.

        • If the existing data type is a set, and if Value is also a set, then Value is appended to the existing set. For example, if the attribute value is the set [1,2], and the ADD action specified [3], then the final attribute value is [1,2,3]. An error occurs if an ADD action is specified for a set attribute and the attribute type specified does not match the existing set type.

          Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, Value must also be a set of strings.

      If no item with the specified key is found in the table, the following values perform the following actions:

      • PUT - Causes DynamoDB to create a new item with the specified primary key, and then adds the attribute.

      • DELETE - Nothing happens, because attributes cannot be deleted from a nonexistent item. The operation succeeds, but DynamoDB does not create a new item.

      • ADD - Causes DynamoDB to create an item with the supplied primary key and number (or set of numbers) for the attribute value. The only data types allowed are Number and Number Set.

    If you provide any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

    " - } - }, - "AttributeValue": { - "base": "

    Represents the data for an attribute. You can set one, and only one, of the elements.

    Each attribute in an item is a name-value pair. An attribute can be single-valued or multi-valued set. For example, a book item can have title and authors attributes. Each book has one title but can have many authors. The multi-valued attribute is a set; duplicate values are not allowed.

    ", - "refs": { - "AttributeMap$value": null, - "AttributeValueList$member": null, - "AttributeValueUpdate$Value": null, - "ExpectedAttributeValue$Value": null, - "ExpressionAttributeValueMap$value": null, - "ItemCollectionKeyAttributeMap$value": null, - "Key$value": null, - "ListAttributeValue$member": null, - "MapAttributeValue$value": null, - "PutItemInputAttributeMap$value": null - } - }, - "AttributeValueList": { - "base": null, - "refs": { - "Condition$AttributeValueList": "

    One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    ", - "ExpectedAttributeValue$AttributeValueList": "

    One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

    For type Number, value comparisons are numeric.

    String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

    For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

    " - } - }, - "AttributeValueUpdate": { - "base": "

    For the UpdateItem operation, represents the attributes to be modified, the action to perform on each, and the new value for each.

    You cannot use UpdateItem to update any primary key attributes. Instead, you will need to delete the item, and then use PutItem to create a new item with new attributes.

    Attribute values cannot be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests with empty values will be rejected with a ValidationException exception.

    ", - "refs": { - "AttributeUpdates$value": null - } - }, - "Backfilling": { - "base": null, - "refs": { - "GlobalSecondaryIndexDescription$Backfilling": "

    Indicates whether the index is currently backfilling. Backfilling is the process of reading items from the table and determining whether they can be added to the index. (Not all items will qualify: For example, a partition key cannot have any duplicate values.) If an item can be added to the index, DynamoDB will do so. After all items have been processed, the backfilling operation is complete and Backfilling is false.

    For indexes that were created during a CreateTable operation, the Backfilling attribute does not appear in the DescribeTable output.

    " - } - }, - "BatchGetItemInput": { - "base": "

    Represents the input of a BatchGetItem operation.

    ", - "refs": { - } - }, - "BatchGetItemOutput": { - "base": "

    Represents the output of a BatchGetItem operation.

    ", - "refs": { - } - }, - "BatchGetRequestMap": { - "base": null, - "refs": { - "BatchGetItemInput$RequestItems": "

    A map of one or more table names and, for each table, a map that describes one or more items to retrieve from that table. Each table name can be used only once per BatchGetItem request.

    Each element in the map of items to retrieve consists of the following:

    • ConsistentRead - If true, a strongly consistent read is used; if false (the default), an eventually consistent read is used.

    • ExpressionAttributeNames - One or more substitution tokens for attribute names in the ProjectionExpression parameter. The following are some use cases for using ExpressionAttributeNames:

      • To access an attribute whose name conflicts with a DynamoDB reserved word.

      • To create a placeholder for repeating occurrences of an attribute name in an expression.

      • To prevent special characters in an attribute name from being misinterpreted in an expression.

      Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

      • Percentile

      The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

      • {\"#P\":\"Percentile\"}

      You could then use this substitution in an expression, as in this example:

      • #P = :val

      Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

      For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    • Keys - An array of primary key attribute values that define specific items in 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 value. For a composite key, you must provide both the partition key value and the sort key value.

    • ProjectionExpression - A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

      If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

      For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    • AttributesToGet -

      This is a legacy parameter, for backward compatibility. New applications should use ProjectionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

      This parameter allows you to retrieve attributes of type List or Map; however, it cannot retrieve individual elements within a List or a Map.

      The names of one or more attributes to retrieve. If no attribute names are provided, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

      Note that AttributesToGet has no effect on provisioned throughput consumption. DynamoDB determines capacity units consumed based on item size, not on the amount of data that is returned to an application.

    ", - "BatchGetItemOutput$UnprocessedKeys": "

    A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.

    Each element consists of:

    • Keys - An array of primary key attribute values that define specific items in the table.

    • AttributesToGet - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.

    • ConsistentRead - The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.

    If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.

    " - } - }, - "BatchGetResponseMap": { - "base": null, - "refs": { - "BatchGetItemOutput$Responses": "

    A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.

    " - } - }, - "BatchWriteItemInput": { - "base": "

    Represents the input of a BatchWriteItem operation.

    ", - "refs": { - } - }, - "BatchWriteItemOutput": { - "base": "

    Represents the output of a BatchWriteItem operation.

    ", - "refs": { - } - }, - "BatchWriteItemRequestMap": { - "base": null, - "refs": { - "BatchWriteItemInput$RequestItems": "

    A map of one or more table names and, for each table, a list of operations to be performed (DeleteRequest or PutRequest). Each element in the map consists of the following:

    • DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement:

      • Key - A map of primary key attribute values that uniquely identify the ! item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

    • PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement:

      • Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception.

        If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

    ", - "BatchWriteItemOutput$UnprocessedItems": "

    A map of tables and requests against those tables that were not processed. The UnprocessedItems value is in the same form as RequestItems, so you can provide this value directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.

    Each UnprocessedItems entry consists of a table name and, for that table, a list of operations to perform (DeleteRequest or PutRequest).

    • DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement:

      • Key - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value.

    • PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement:

      • Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception.

        If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

    If there are no unprocessed items remaining, the response contains an empty UnprocessedItems map.

    " - } - }, - "BinaryAttributeValue": { - "base": null, - "refs": { - "AttributeValue$B": "

    A Binary data type.

    ", - "BinarySetAttributeValue$member": null - } - }, - "BinarySetAttributeValue": { - "base": null, - "refs": { - "AttributeValue$BS": "

    A Binary Set data type.

    " - } - }, - "BooleanAttributeValue": { - "base": null, - "refs": { - "AttributeValue$BOOL": "

    A Boolean data type.

    " - } - }, - "BooleanObject": { - "base": null, - "refs": { - "ExpectedAttributeValue$Exists": "

    Causes DynamoDB to evaluate the value before attempting a conditional operation:

    • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the operation succeeds. If it is not found, the operation fails with a ConditionalCheckFailedException.

    • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the operation succeeds. If the value is found, despite the assumption that it does not exist, the operation fails with a ConditionalCheckFailedException.

    The default setting for Exists is true. If you supply a Value all by itself, DynamoDB assumes the attribute exists: You don't have to set Exists to true, because it is implied.

    DynamoDB returns a ValidationException if:

    • Exists is true but there is no Value to check. (You expect a value to exist, but don't specify what that value is.)

    • Exists is false but you also provide a Value. (You cannot expect an attribute to have a value, while also expecting it not to exist.)

    ", - "QueryInput$ScanIndexForward": "

    Specifies the order for index traversal: If true (default), the traversal is performed in ascending order; if false, the traversal is performed in descending order.

    Items with the same partition key value are stored in sorted order by sort key. If the sort key data type is Number, the results are stored in numeric order. For type String, the results are stored in order of ASCII character code values. For type Binary, DynamoDB treats each byte of the binary data as unsigned.

    If ScanIndexForward is true, DynamoDB returns the results in the order in which they are stored (by sort key value). This is the default behavior. If ScanIndexForward is false, DynamoDB reads the results in reverse order by sort key value, and then returns the results to the client.

    " - } - }, - "Capacity": { - "base": "

    Represents the amount of provisioned throughput capacity consumed on a table or an index.

    ", - "refs": { - "ConsumedCapacity$Table": "

    The amount of throughput consumed on the table affected by the operation.

    ", - "SecondaryIndexesCapacityMap$value": null - } - }, - "ComparisonOperator": { - "base": null, - "refs": { - "Condition$ComparisonOperator": "

    A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    The following are descriptions of each comparison operator.

    • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NE : Not equal. NE is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LE : Less than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LT : Less than.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GE : Greater than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GT : Greater than.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

      This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

    • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

      This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

    • CONTAINS : Checks for a subsequence, or value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

      CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

      NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • BEGINS_WITH : Checks for a prefix.

      AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

    • IN : Checks for matching elements within two sets.

      AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

    • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

      AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

    For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

    ", - "ExpectedAttributeValue$ComparisonOperator": "

    A comparator for evaluating attributes in the AttributeValueList. For example, equals, greater than, less than, etc.

    The following comparison operators are available:

    EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

    The following are descriptions of each comparison operator.

    • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NE : Not equal. NE is supported for all datatypes, including lists and maps.

      AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LE : Less than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • LT : Less than.

      AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GE : Greater than or equal.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • GT : Greater than.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

    • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

      This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

    • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

      This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

    • CONTAINS : Checks for a subsequence, or value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

      CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

      AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

      NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

    • BEGINS_WITH : Checks for a prefix.

      AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

    • IN : Checks for matching elements within two sets.

      AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

    • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

      AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

    " - } - }, - "Condition": { - "base": "

    Represents the selection criteria for a Query or Scan operation:

    • For a Query operation, Condition is used for specifying the KeyConditions to use when querying a table or an index. For KeyConditions, only the following comparison operators are supported:

      EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN

      Condition is also used in a QueryFilter, which evaluates the query results and returns only the desired values.

    • For a Scan operation, Condition is used in a ScanFilter, which evaluates the scan results and returns only the desired values.

    ", - "refs": { - "FilterConditionMap$value": null, - "KeyConditions$value": null - } - }, - "ConditionExpression": { - "base": null, - "refs": { - "DeleteItemInput$ConditionExpression": "

    A condition that must be satisfied in order for a conditional DeleteItem to succeed.

    An expression can contain any of the following:

    • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

      These function names are case-sensitive.

    • Comparison operators: = | &#x3C;&#x3E; | &#x3C; | &#x3E; | &#x3C;= | &#x3E;= | BETWEEN | IN

    • Logical operators: AND | OR | NOT

    For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

    ConditionExpression replaces the legacy ConditionalOperator and Expected parameters.

    ", - "PutItemInput$ConditionExpression": "

    A condition that must be satisfied in order for a conditional PutItem operation to succeed.

    An expression can contain any of the following:

    • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

      These function names are case-sensitive.

    • Comparison operators: = | &#x3C;&#x3E; | &#x3C; | &#x3E; | &#x3C;= | &#x3E;= | BETWEEN | IN

    • Logical operators: AND | OR | NOT

    For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

    ConditionExpression replaces the legacy ConditionalOperator and Expected parameters.

    ", - "QueryInput$FilterExpression": "

    A string that contains conditions that DynamoDB applies after the Query operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.

    A FilterExpression is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

    For more information, see Filter Expressions in the Amazon DynamoDB Developer Guide.

    FilterExpression replaces the legacy QueryFilter and ConditionalOperator parameters.

    ", - "ScanInput$FilterExpression": "

    A string that contains conditions that DynamoDB applies after the Scan operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.

    A FilterExpression is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

    For more information, see Filter Expressions in the Amazon DynamoDB Developer Guide.

    FilterExpression replaces the legacy ScanFilter and ConditionalOperator parameters.

    ", - "UpdateItemInput$ConditionExpression": "

    A condition that must be satisfied in order for a conditional update to succeed.

    An expression can contain any of the following:

    • Functions: attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size

      These function names are case-sensitive.

    • Comparison operators: = | &#x3C;&#x3E; | &#x3C; | &#x3E; | &#x3C;= | &#x3E;= | BETWEEN | IN

    • Logical operators: AND | OR | NOT

    For more information on condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

    ConditionExpression replaces the legacy ConditionalOperator and Expected parameters.

    " - } - }, - "ConditionalCheckFailedException": { - "base": "

    A condition specified in the operation could not be evaluated.

    ", - "refs": { - } - }, - "ConditionalOperator": { - "base": null, - "refs": { - "DeleteItemInput$ConditionalOperator": "

    This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    A logical operator to apply to the conditions in the Expected map:

    • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

    • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

    If you omit ConditionalOperator, then AND is the default.

    The operation will succeed only if the entire map evaluates to true.

    This parameter does not support attributes of type List or Map.

    ", - "PutItemInput$ConditionalOperator": "

    This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    A logical operator to apply to the conditions in the Expected map:

    • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

    • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

    If you omit ConditionalOperator, then AND is the default.

    The operation will succeed only if the entire map evaluates to true.

    This parameter does not support attributes of type List or Map.

    ", - "QueryInput$ConditionalOperator": "

    This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    A logical operator to apply to the conditions in a QueryFilter map:

    • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

    • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

    If you omit ConditionalOperator, then AND is the default.

    The operation will succeed only if the entire map evaluates to true.

    This parameter does not support attributes of type List or Map.

    ", - "ScanInput$ConditionalOperator": "

    This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    A logical operator to apply to the conditions in a ScanFilter map:

    • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

    • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

    If you omit ConditionalOperator, then AND is the default.

    The operation will succeed only if the entire map evaluates to true.

    This parameter does not support attributes of type List or Map.

    ", - "UpdateItemInput$ConditionalOperator": "

    This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    A logical operator to apply to the conditions in the Expected map:

    • AND - If all of the conditions evaluate to true, then the entire map evaluates to true.

    • OR - If at least one of the conditions evaluate to true, then the entire map evaluates to true.

    If you omit ConditionalOperator, then AND is the default.

    The operation will succeed only if the entire map evaluates to true.

    This parameter does not support attributes of type List or Map.

    " - } - }, - "ConsistentRead": { - "base": null, - "refs": { - "GetItemInput$ConsistentRead": "

    Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

    ", - "KeysAndAttributes$ConsistentRead": "

    The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.

    ", - "QueryInput$ConsistentRead": "

    Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

    Strongly consistent reads are not supported on global secondary indexes. If you query a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

    ", - "ScanInput$ConsistentRead": "

    A Boolean value that determines the read consistency model during the scan:

    • If ConsistentRead is false, then the data returned from Scan might not contain the results from other recently completed write operations (PutItem, UpdateItem or DeleteItem).

    • If ConsistentRead is true, then all of the write operations that completed before the Scan began are guaranteed to be contained in the Scan response.

    The default setting for ConsistentRead is false.

    The ConsistentRead parameter is not supported on global secondary indexes. If you scan a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

    " - } - }, - "ConsumedCapacity": { - "base": "

    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 if the request asked for it. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

    ", - "refs": { - "ConsumedCapacityMultiple$member": null, - "DeleteItemOutput$ConsumedCapacity": null, - "GetItemOutput$ConsumedCapacity": null, - "PutItemOutput$ConsumedCapacity": null, - "QueryOutput$ConsumedCapacity": null, - "ScanOutput$ConsumedCapacity": null, - "UpdateItemOutput$ConsumedCapacity": null - } - }, - "ConsumedCapacityMultiple": { - "base": null, - "refs": { - "BatchGetItemOutput$ConsumedCapacity": "

    The read capacity units consumed by the operation.

    Each element consists of:

    • TableName - The table that consumed the provisioned throughput.

    • CapacityUnits - The total number of capacity units consumed.

    ", - "BatchWriteItemOutput$ConsumedCapacity": "

    The capacity units consumed by the operation.

    Each element consists of:

    • TableName - The table that consumed the provisioned throughput.

    • CapacityUnits - The total number of capacity units consumed.

    " - } - }, - "ConsumedCapacityUnits": { - "base": null, - "refs": { - "Capacity$CapacityUnits": "

    The total number of capacity units consumed on a table or an index.

    ", - "ConsumedCapacity$CapacityUnits": "

    The total number of capacity units consumed by the operation.

    " - } - }, - "CreateGlobalSecondaryIndexAction": { - "base": "

    Represents a new global secondary index to be added to an existing table.

    ", - "refs": { - "GlobalSecondaryIndexUpdate$Create": "

    The parameters required for creating a global secondary index on an existing table:

    • IndexName

    • KeySchema

    • AttributeDefinitions

    • Projection

    • ProvisionedThroughput

    " - } - }, - "CreateTableInput": { - "base": "

    Represents the input of a CreateTable operation.

    ", - "refs": { - } - }, - "CreateTableOutput": { - "base": "

    Represents the output of a CreateTable operation.

    ", - "refs": { - } - }, - "Date": { - "base": null, - "refs": { - "ProvisionedThroughputDescription$LastIncreaseDateTime": "

    The date and time of the last provisioned throughput increase for this table.

    ", - "ProvisionedThroughputDescription$LastDecreaseDateTime": "

    The date and time of the last provisioned throughput decrease for this table.

    ", - "TableDescription$CreationDateTime": "

    The date and time when the table was created, in UNIX epoch time format.

    " - } - }, - "DeleteGlobalSecondaryIndexAction": { - "base": "

    Represents a global secondary index to be deleted from an existing table.

    ", - "refs": { - "GlobalSecondaryIndexUpdate$Delete": "

    The name of an existing global secondary index to be removed.

    " - } - }, - "DeleteItemInput": { - "base": "

    Represents the input of a DeleteItem operation.

    ", - "refs": { - } - }, - "DeleteItemOutput": { - "base": "

    Represents the output of a DeleteItem operation.

    ", - "refs": { - } - }, - "DeleteRequest": { - "base": "

    Represents a request to perform a DeleteItem operation on an item.

    ", - "refs": { - "WriteRequest$DeleteRequest": "

    A request to perform a DeleteItem operation.

    " - } - }, - "DeleteTableInput": { - "base": "

    Represents the input of a DeleteTable operation.

    ", - "refs": { - } - }, - "DeleteTableOutput": { - "base": "

    Represents the output of a DeleteTable operation.

    ", - "refs": { - } - }, - "DescribeLimitsInput": { - "base": "

    Represents the input of a DescribeLimits operation. Has no content.

    ", - "refs": { - } - }, - "DescribeLimitsOutput": { - "base": "

    Represents the output of a DescribeLimits operation.

    ", - "refs": { - } - }, - "DescribeTableInput": { - "base": "

    Represents the input of a DescribeTable operation.

    ", - "refs": { - } - }, - "DescribeTableOutput": { - "base": "

    Represents the output of a DescribeTable operation.

    ", - "refs": { - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "ConditionalCheckFailedException$message": "

    The conditional request failed.

    ", - "InternalServerError$message": "

    The server encountered an internal error trying to fulfill the request.

    ", - "ItemCollectionSizeLimitExceededException$message": "

    The total size of an item collection has exceeded the maximum limit of 10 gigabytes.

    ", - "LimitExceededException$message": "

    Too many operations for a given subscriber.

    ", - "ProvisionedThroughputExceededException$message": "

    You exceeded your maximum allowed provisioned throughput.

    ", - "ResourceInUseException$message": "

    The resource which is being attempted to be changed is in use.

    ", - "ResourceNotFoundException$message": "

    The resource which is being requested does not exist.

    " - } - }, - "ExpectedAttributeMap": { - "base": null, - "refs": { - "DeleteItemInput$Expected": "

    This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    A map of attribute/condition pairs. Expected provides a conditional block for the DeleteItem operation.

    Each element of Expected consists of an attribute name, a comparison operator, and one or more values. DynamoDB compares the attribute with the value(s) you supplied, using the comparison operator. For each Expected element, the result of the evaluation is either true or false.

    If you specify more than one element in the Expected map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

    If the Expected map evaluates to true, then the conditional operation succeeds; otherwise, it fails.

    Expected contains the following:

    • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

      For type Number, value comparisons are numeric.

      String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

      For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    • ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. When performing the comparison, DynamoDB uses strongly consistent reads.

      The following comparison operators are available:

      EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

      The following are descriptions of each comparison operator.

      • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

        AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

      • NE : Not equal. NE is supported for all datatypes, including lists and maps.

        AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

      • LE : Less than or equal.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • LT : Less than.

        AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • GE : Greater than or equal.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • GT : Greater than.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

        This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

      • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

        This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

      • CONTAINS : Checks for a subsequence, or value in a set.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

        CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

      • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

        NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

      • BEGINS_WITH : Checks for a prefix.

        AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

      • IN : Checks for matching elements within two sets.

        AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

      • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

        AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

    For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

    For backward compatibility with previous DynamoDB releases, the following parameters can be used instead of AttributeValueList and ComparisonOperator:

    • Value - A value for DynamoDB to compare with an attribute.

    • Exists - A Boolean value that causes DynamoDB to evaluate the value before attempting the conditional operation:

      • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the condition evaluates to true; otherwise the condition evaluate to false.

      • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the condition evaluates to true. If the value is found, despite the assumption that it does not exist, the condition evaluates to false.

      Note that the default value for Exists is true.

    The Value and Exists parameters are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

    This parameter does not support attributes of type List or Map.

    ", - "PutItemInput$Expected": "

    This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    A map of attribute/condition pairs. Expected provides a conditional block for the PutItem operation.

    This parameter does not support attributes of type List or Map.

    Each element of Expected consists of an attribute name, a comparison operator, and one or more values. DynamoDB compares the attribute with the value(s) you supplied, using the comparison operator. For each Expected element, the result of the evaluation is either true or false.

    If you specify more than one element in the Expected map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

    If the Expected map evaluates to true, then the conditional operation succeeds; otherwise, it fails.

    Expected contains the following:

    • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

      For type Number, value comparisons are numeric.

      String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

      For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    • ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. When performing the comparison, DynamoDB uses strongly consistent reads.

      The following comparison operators are available:

      EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

      The following are descriptions of each comparison operator.

      • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

        AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

      • NE : Not equal. NE is supported for all datatypes, including lists and maps.

        AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

      • LE : Less than or equal.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • LT : Less than.

        AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • GE : Greater than or equal.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • GT : Greater than.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

        This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

      • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

        This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

      • CONTAINS : Checks for a subsequence, or value in a set.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

        CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

      • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

        NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

      • BEGINS_WITH : Checks for a prefix.

        AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

      • IN : Checks for matching elements within two sets.

        AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

      • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

        AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

    For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

    For backward compatibility with previous DynamoDB releases, the following parameters can be used instead of AttributeValueList and ComparisonOperator:

    • Value - A value for DynamoDB to compare with an attribute.

    • Exists - A Boolean value that causes DynamoDB to evaluate the value before attempting the conditional operation:

      • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the condition evaluates to true; otherwise the condition evaluate to false.

      • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the condition evaluates to true. If the value is found, despite the assumption that it does not exist, the condition evaluates to false.

      Note that the default value for Exists is true.

    The Value and Exists parameters are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

    ", - "UpdateItemInput$Expected": "

    This is a legacy parameter, for backward compatibility. New applications should use ConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    A map of attribute/condition pairs. Expected provides a conditional block for the UpdateItem operation.

    Each element of Expected consists of an attribute name, a comparison operator, and one or more values. DynamoDB compares the attribute with the value(s) you supplied, using the comparison operator. For each Expected element, the result of the evaluation is either true or false.

    If you specify more than one element in the Expected map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

    If the Expected map evaluates to true, then the conditional operation succeeds; otherwise, it fails.

    Expected contains the following:

    • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

      For type Number, value comparisons are numeric.

      String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

      For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    • ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. When performing the comparison, DynamoDB uses strongly consistent reads.

      The following comparison operators are available:

      EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

      The following are descriptions of each comparison operator.

      • EQ : Equal. EQ is supported for all datatypes, including lists and maps.

        AttributeValueList can contain only one AttributeValue element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

      • NE : Not equal. NE is supported for all datatypes, including lists and maps.

        AttributeValueList can contain only one AttributeValue of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

      • LE : Less than or equal.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • LT : Less than.

        AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • GE : Greater than or equal.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • GT : Greater than.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, including lists and maps.

        This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NOT_NULL, the result is a Boolean true. This result is because the attribute \"a\" exists; its data type is not relevant to the NOT_NULL comparison operator.

      • NULL : The attribute does not exist. NULL is supported for all datatypes, including lists and maps.

        This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"a\" is null, and you evaluate it using NULL, the result is a Boolean false. This is because the attribute \"a\" exists; its data type is not relevant to the NULL comparison operator.

      • CONTAINS : Checks for a subsequence, or value in a set.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it finds an exact match with any member of the set.

        CONTAINS is supported for lists: When evaluating \"a CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

      • NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"SS\", \"NS\", or \"BS\"), then the operator evaluates to true if it does not find an exact match with any member of the set.

        NOT_CONTAINS is supported for lists: When evaluating \"a NOT CONTAINS b\", \"a\" can be a list; however, \"b\" cannot be a set, a map, or a list.

      • BEGINS_WITH : Checks for a prefix.

        AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

      • IN : Checks for matching elements within two sets.

        AttributeValueList can contain one or more AttributeValue elements of type String, Number, or Binary (not a set type). These attributes are compared against an existing set type attribute of an item. If any elements of the input set are present in the item attribute, the expression evaluates to true.

      • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

        AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

    For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

    For backward compatibility with previous DynamoDB releases, the following parameters can be used instead of AttributeValueList and ComparisonOperator:

    • Value - A value for DynamoDB to compare with an attribute.

    • Exists - A Boolean value that causes DynamoDB to evaluate the value before attempting the conditional operation:

      • If Exists is true, DynamoDB will check to see if that attribute value already exists in the table. If it is found, then the condition evaluates to true; otherwise the condition evaluate to false.

      • If Exists is false, DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does not exist, then the assumption is valid and the condition evaluates to true. If the value is found, despite the assumption that it does not exist, the condition evaluates to false.

      Note that the default value for Exists is true.

    The Value and Exists parameters are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

    This parameter does not support attributes of type List or Map.

    " - } - }, - "ExpectedAttributeValue": { - "base": "

    Represents a condition to be compared with an attribute value. This condition can be used with DeleteItem, PutItem or UpdateItem operations; if the comparison evaluates to true, the operation succeeds; if not, the operation fails. You can use ExpectedAttributeValue in one of two different ways:

    • Use AttributeValueList to specify one or more values to compare against an attribute. Use ComparisonOperator to specify how you want to perform the comparison. If the comparison evaluates to true, then the conditional operation succeeds.

    • Use Value to specify a value that DynamoDB will compare against an attribute. If the values match, then ExpectedAttributeValue evaluates to true and the conditional operation succeeds. Optionally, you can also set Exists to false, indicating that you do not expect to find the attribute value in the table. In this case, the conditional operation succeeds only if the comparison evaluates to false.

    Value and Exists are incompatible with AttributeValueList and ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will return a ValidationException exception.

    ", - "refs": { - "ExpectedAttributeMap$value": null - } - }, - "ExpressionAttributeNameMap": { - "base": null, - "refs": { - "DeleteItemInput$ExpressionAttributeNames": "

    One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

    • To access an attribute whose name conflicts with a DynamoDB reserved word.

    • To create a placeholder for repeating occurrences of an attribute name in an expression.

    • To prevent special characters in an attribute name from being misinterpreted in an expression.

    Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

    • Percentile

    The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

    • {\"#P\":\"Percentile\"}

    You could then use this substitution in an expression, as in this example:

    • #P = :val

    Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

    For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    ", - "GetItemInput$ExpressionAttributeNames": "

    One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

    • To access an attribute whose name conflicts with a DynamoDB reserved word.

    • To create a placeholder for repeating occurrences of an attribute name in an expression.

    • To prevent special characters in an attribute name from being misinterpreted in an expression.

    Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

    • Percentile

    The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

    • {\"#P\":\"Percentile\"}

    You could then use this substitution in an expression, as in this example:

    • #P = :val

    Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

    For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    ", - "KeysAndAttributes$ExpressionAttributeNames": "

    One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

    • To access an attribute whose name conflicts with a DynamoDB reserved word.

    • To create a placeholder for repeating occurrences of an attribute name in an expression.

    • To prevent special characters in an attribute name from being misinterpreted in an expression.

    Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

    • Percentile

    The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

    • {\"#P\":\"Percentile\"}

    You could then use this substitution in an expression, as in this example:

    • #P = :val

    Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

    For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    ", - "PutItemInput$ExpressionAttributeNames": "

    One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

    • To access an attribute whose name conflicts with a DynamoDB reserved word.

    • To create a placeholder for repeating occurrences of an attribute name in an expression.

    • To prevent special characters in an attribute name from being misinterpreted in an expression.

    Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

    • Percentile

    The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

    • {\"#P\":\"Percentile\"}

    You could then use this substitution in an expression, as in this example:

    • #P = :val

    Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

    For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    ", - "QueryInput$ExpressionAttributeNames": "

    One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

    • To access an attribute whose name conflicts with a DynamoDB reserved word.

    • To create a placeholder for repeating occurrences of an attribute name in an expression.

    • To prevent special characters in an attribute name from being misinterpreted in an expression.

    Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

    • Percentile

    The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

    • {\"#P\":\"Percentile\"}

    You could then use this substitution in an expression, as in this example:

    • #P = :val

    Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

    For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    ", - "ScanInput$ExpressionAttributeNames": "

    One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

    • To access an attribute whose name conflicts with a DynamoDB reserved word.

    • To create a placeholder for repeating occurrences of an attribute name in an expression.

    • To prevent special characters in an attribute name from being misinterpreted in an expression.

    Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

    • Percentile

    The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

    • {\"#P\":\"Percentile\"}

    You could then use this substitution in an expression, as in this example:

    • #P = :val

    Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

    For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    ", - "UpdateItemInput$ExpressionAttributeNames": "

    One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

    • To access an attribute whose name conflicts with a DynamoDB reserved word.

    • To create a placeholder for repeating occurrences of an attribute name in an expression.

    • To prevent special characters in an attribute name from being misinterpreted in an expression.

    Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

    • Percentile

    The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

    • {\"#P\":\"Percentile\"}

    You could then use this substitution in an expression, as in this example:

    • #P = :val

    Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

    For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    " - } - }, - "ExpressionAttributeNameVariable": { - "base": null, - "refs": { - "ExpressionAttributeNameMap$key": null - } - }, - "ExpressionAttributeValueMap": { - "base": null, - "refs": { - "DeleteItemInput$ExpressionAttributeValues": "

    One or more values that can be substituted in an expression.

    Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

    Available | Backordered | Discontinued

    You would first need to specify ExpressionAttributeValues as follows:

    { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

    You could then use these values in an expression, such as this:

    ProductStatus IN (:avail, :back, :disc)

    For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

    ", - "PutItemInput$ExpressionAttributeValues": "

    One or more values that can be substituted in an expression.

    Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

    Available | Backordered | Discontinued

    You would first need to specify ExpressionAttributeValues as follows:

    { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

    You could then use these values in an expression, such as this:

    ProductStatus IN (:avail, :back, :disc)

    For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

    ", - "QueryInput$ExpressionAttributeValues": "

    One or more values that can be substituted in an expression.

    Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

    Available | Backordered | Discontinued

    You would first need to specify ExpressionAttributeValues as follows:

    { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

    You could then use these values in an expression, such as this:

    ProductStatus IN (:avail, :back, :disc)

    For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

    ", - "ScanInput$ExpressionAttributeValues": "

    One or more values that can be substituted in an expression.

    Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

    Available | Backordered | Discontinued

    You would first need to specify ExpressionAttributeValues as follows:

    { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

    You could then use these values in an expression, such as this:

    ProductStatus IN (:avail, :back, :disc)

    For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

    ", - "UpdateItemInput$ExpressionAttributeValues": "

    One or more values that can be substituted in an expression.

    Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

    Available | Backordered | Discontinued

    You would first need to specify ExpressionAttributeValues as follows:

    { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }

    You could then use these values in an expression, such as this:

    ProductStatus IN (:avail, :back, :disc)

    For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

    " - } - }, - "ExpressionAttributeValueVariable": { - "base": null, - "refs": { - "ExpressionAttributeValueMap$key": null - } - }, - "FilterConditionMap": { - "base": null, - "refs": { - "QueryInput$QueryFilter": "

    This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    A condition that evaluates the query results after the items are read and returns only the desired values.

    This parameter does not support attributes of type List or Map.

    A QueryFilter is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.

    If you provide more than one condition in the QueryFilter map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

    Note that QueryFilter does not allow key attributes. You cannot define a filter condition on a partition key or a sort key.

    Each QueryFilter element consists of an attribute name to compare, along with the following:

    • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the operator specified in ComparisonOperator.

      For type Number, value comparisons are numeric.

      String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

      For type Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

      For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

    • ComparisonOperator - A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

      The following comparison operators are available:

      EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

      For complete descriptions of all comparison operators, see the Condition data type.

    ", - "ScanInput$ScanFilter": "

    This is a legacy parameter, for backward compatibility. New applications should use FilterExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    A condition that evaluates the scan results and returns only the desired values.

    This parameter does not support attributes of type List or Map.

    If you specify more than one condition in the ScanFilter map, then by default all of the conditions must evaluate to true. In other words, the conditions are ANDed together. (You can use the ConditionalOperator parameter to OR the conditions instead. If you do this, then at least one of the conditions must evaluate to true, rather than all of them.)

    Each ScanFilter element consists of an attribute name to compare, along with the following:

    • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the operator specified in ComparisonOperator .

      For type Number, value comparisons are numeric.

      String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

      For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

      For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

    • ComparisonOperator - A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

      The following comparison operators are available:

      EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN

      For complete descriptions of all comparison operators, see Condition.

    " - } - }, - "GetItemInput": { - "base": "

    Represents the input of a GetItem operation.

    ", - "refs": { - } - }, - "GetItemOutput": { - "base": "

    Represents the output of a GetItem operation.

    ", - "refs": { - } - }, - "GlobalSecondaryIndex": { - "base": "

    Represents the properties of a global secondary index.

    ", - "refs": { - "GlobalSecondaryIndexList$member": null - } - }, - "GlobalSecondaryIndexDescription": { - "base": "

    Represents the properties of a global secondary index.

    ", - "refs": { - "GlobalSecondaryIndexDescriptionList$member": null - } - }, - "GlobalSecondaryIndexDescriptionList": { - "base": null, - "refs": { - "TableDescription$GlobalSecondaryIndexes": "

    The global secondary indexes, if any, on the table. Each index is scoped to a given partition key value. Each element is composed of:

    • Backfilling - If true, then the index is currently in the backfilling phase. Backfilling occurs only when a new global secondary index is added to the table; it is the process by which DynamoDB populates the new index with data from the table. (This attribute does not appear for indexes that were created during a CreateTable operation.)

    • IndexName - The name of the global secondary index.

    • IndexSizeBytes - The total size of the global secondary index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    • IndexStatus - The current status of the global secondary index:

      • CREATING - The index is being created.

      • UPDATING - The index is being updated.

      • DELETING - The index is being deleted.

      • ACTIVE - The index is ready for use.

    • ItemCount - The number of items in the global secondary index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    • KeySchema - Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table.

    • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

      • ProjectionType - One of the following:

        • KEYS_ONLY - Only the index and primary keys are projected into the index.

        • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

        • ALL - All of the table attributes are projected into the index.

      • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

    • ProvisionedThroughput - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units, along with data about increases and decreases.

    If the table is in the DELETING state, no information about indexes will be returned.

    " - } - }, - "GlobalSecondaryIndexList": { - "base": null, - "refs": { - "CreateTableInput$GlobalSecondaryIndexes": "

    One or more global secondary indexes (the maximum is five) to be created on the table. Each global secondary index in the array includes the following:

    • IndexName - The name of the global secondary index. Must be unique only for this table.

    • KeySchema - Specifies the key schema for the global secondary index.

    • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

      • ProjectionType - One of the following:

        • KEYS_ONLY - Only the index and primary keys are projected into the index.

        • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

        • ALL - All of the table attributes are projected into the index.

      • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

    • ProvisionedThroughput - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units.

    " - } - }, - "GlobalSecondaryIndexUpdate": { - "base": "

    Represents one of the following:

    • A new global secondary index to be added to an existing table.

    • New provisioned throughput parameters for an existing global secondary index.

    • An existing global secondary index to be removed from an existing table.

    ", - "refs": { - "GlobalSecondaryIndexUpdateList$member": null - } - }, - "GlobalSecondaryIndexUpdateList": { - "base": null, - "refs": { - "UpdateTableInput$GlobalSecondaryIndexUpdates": "

    An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:

    • Create - add a new global secondary index to the table.

    • Update - modify the provisioned throughput settings of an existing global secondary index.

    • Delete - remove a global secondary index from the table.

    For more information, see Managing Global Secondary Indexes in the Amazon DynamoDB Developer Guide.

    " - } - }, - "IndexName": { - "base": null, - "refs": { - "CreateGlobalSecondaryIndexAction$IndexName": "

    The name of the global secondary index to be created.

    ", - "DeleteGlobalSecondaryIndexAction$IndexName": "

    The name of the global secondary index to be deleted.

    ", - "GlobalSecondaryIndex$IndexName": "

    The name of the global secondary index. The name must be unique among all other indexes on this table.

    ", - "GlobalSecondaryIndexDescription$IndexName": "

    The name of the global secondary index.

    ", - "LocalSecondaryIndex$IndexName": "

    The name of the local secondary index. The name must be unique among all other indexes on this table.

    ", - "LocalSecondaryIndexDescription$IndexName": "

    Represents the name of the local secondary index.

    ", - "QueryInput$IndexName": "

    The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the IndexName parameter, you must also provide TableName.

    ", - "ScanInput$IndexName": "

    The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the IndexName parameter, you must also provide TableName.

    ", - "SecondaryIndexesCapacityMap$key": null, - "UpdateGlobalSecondaryIndexAction$IndexName": "

    The name of the global secondary index to be updated.

    " - } - }, - "IndexStatus": { - "base": null, - "refs": { - "GlobalSecondaryIndexDescription$IndexStatus": "

    The current state of the global secondary index:

    • CREATING - The index is being created.

    • UPDATING - The index is being updated.

    • DELETING - The index is being deleted.

    • ACTIVE - The index is ready for use.

    " - } - }, - "Integer": { - "base": null, - "refs": { - "QueryOutput$Count": "

    The number of items in the response.

    If you used a QueryFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied.

    If you did not use a filter in the request, then Count and ScannedCount are the same.

    ", - "QueryOutput$ScannedCount": "

    The number of items evaluated, before any QueryFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Query operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.

    If you did not use a filter in the request, then ScannedCount is the same as Count.

    ", - "ScanOutput$Count": "

    The number of items in the response.

    If you set ScanFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before the filter was applied.

    If you did not use a filter in the request, then Count is the same as ScannedCount.

    ", - "ScanOutput$ScannedCount": "

    The number of items evaluated, before any ScanFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Scan operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.

    If you did not use a filter in the request, then ScannedCount is the same as Count.

    " - } - }, - "InternalServerError": { - "base": "

    An error occurred on the server side.

    ", - "refs": { - } - }, - "ItemCollectionKeyAttributeMap": { - "base": null, - "refs": { - "ItemCollectionMetrics$ItemCollectionKey": "

    The partition key value of the item collection. This value is the same as the partition key value of the item.

    " - } - }, - "ItemCollectionMetrics": { - "base": "

    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.

    ", - "refs": { - "DeleteItemOutput$ItemCollectionMetrics": "

    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.

    Each ItemCollectionMetrics element consists of:

    • ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item itself.

    • SizeEstimateRange - 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.

    ", - "ItemCollectionMetricsMultiple$member": null, - "PutItemOutput$ItemCollectionMetrics": "

    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.

    Each ItemCollectionMetrics element consists of:

    • ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item itself.

    • SizeEstimateRange - 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.

    ", - "UpdateItemOutput$ItemCollectionMetrics": null - } - }, - "ItemCollectionMetricsMultiple": { - "base": null, - "refs": { - "ItemCollectionMetricsPerTable$value": null - } - }, - "ItemCollectionMetricsPerTable": { - "base": null, - "refs": { - "BatchWriteItemOutput$ItemCollectionMetrics": "

    A list of tables that were processed by BatchWriteItem and, for each table, information about any item collections that were affected by individual DeleteItem or PutItem operations.

    Each entry consists of the following subelements:

    • ItemCollectionKey - The partition key value of the item collection. This is the same as the partition key value of the item.

    • SizeEstimateRange - An estimate of item collection size, expressed in GB. This 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 the 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.

    " - } - }, - "ItemCollectionSizeEstimateBound": { - "base": null, - "refs": { - "ItemCollectionSizeEstimateRange$member": null - } - }, - "ItemCollectionSizeEstimateRange": { - "base": null, - "refs": { - "ItemCollectionMetrics$SizeEstimateRangeGB": "

    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.

    " - } - }, - "ItemCollectionSizeLimitExceededException": { - "base": "

    An item collection is too large. This exception is only returned for tables that have one or more local secondary indexes.

    ", - "refs": { - } - }, - "ItemList": { - "base": null, - "refs": { - "BatchGetResponseMap$value": null, - "QueryOutput$Items": "

    An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.

    ", - "ScanOutput$Items": "

    An array of item attributes that match the scan criteria. Each element in this array consists of an attribute name and the value for that attribute.

    " - } - }, - "Key": { - "base": null, - "refs": { - "DeleteItemInput$Key": "

    A map of attribute names to AttributeValue objects, representing the primary key of the item to delete.

    For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

    ", - "DeleteRequest$Key": "

    A map of attribute name to attribute values, representing the primary key of the item to delete. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema.

    ", - "GetItemInput$Key": "

    A map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve.

    For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

    ", - "KeyList$member": null, - "QueryInput$ExclusiveStartKey": "

    The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

    The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

    ", - "QueryOutput$LastEvaluatedKey": "

    The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

    If LastEvaluatedKey is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved.

    If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

    ", - "ScanInput$ExclusiveStartKey": "

    The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

    The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

    In a parallel scan, a Scan request that includes ExclusiveStartKey must specify the same segment whose previous Scan returned the corresponding value of LastEvaluatedKey.

    ", - "ScanOutput$LastEvaluatedKey": "

    The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

    If LastEvaluatedKey is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved.

    If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

    ", - "UpdateItemInput$Key": "

    The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.

    For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

    " - } - }, - "KeyConditions": { - "base": null, - "refs": { - "QueryInput$KeyConditions": "

    This is a legacy parameter, for backward compatibility. New applications should use KeyConditionExpression instead. Do not combine legacy parameters and expression parameters in a single API call; otherwise, DynamoDB will return a ValidationException exception.

    The selection criteria for the query. For a query on a table, you can have conditions only on the table primary key attributes. You must provide the partition key name and value as an EQ condition. You can optionally provide a second condition, referring to the sort key.

    If you don't provide a sort key condition, all of the items that match the partition key will be retrieved. If a FilterExpression or QueryFilter is present, it will be applied after the items are retrieved.

    For a query on an index, you can have conditions only on the index key attributes. You must provide the index partition key name and value as an EQ condition. You can optionally provide a second condition, referring to the index sort key.

    Each KeyConditions element consists of an attribute name to compare, along with the following:

    • AttributeValueList - One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

      For type Number, value comparisons are numeric.

      String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, a is greater than A, and a is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

      For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

    • ComparisonOperator - A comparator for evaluating attributes, for example, equals, greater than, less than, and so on.

      For KeyConditions, only the following comparison operators are supported:

      EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN

      The following are descriptions of these comparison operators.

      • EQ : Equal.

        AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one specified in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not equal {\"NS\":[\"6\", \"2\", \"1\"]}.

      • LE : Less than or equal.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • LT : Less than.

        AttributeValueList can contain only one AttributeValue of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • GE : Greater than or equal.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • GT : Greater than.

        AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not equal {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}.

      • BEGINS_WITH : Checks for a prefix.

        AttributeValueList can contain only one AttributeValue of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).

      • BETWEEN : Greater than or equal to the first value, and less than or equal to the second value.

        AttributeValueList must contain two AttributeValue elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an AttributeValue element of a different type than the one provided in the request, the value does not match. For example, {\"S\":\"6\"} does not compare to {\"N\":\"6\"}. Also, {\"N\":\"6\"} does not compare to {\"NS\":[\"6\", \"2\", \"1\"]}

    For usage examples of AttributeValueList and ComparisonOperator, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.

    " - } - }, - "KeyExpression": { - "base": null, - "refs": { - "QueryInput$KeyConditionExpression": "

    The condition that specifies the key value(s) for items to be retrieved by the Query action.

    The condition must perform an equality test on a single partition key value. The condition can also perform one of several comparison tests on a single sort key value. Query can use KeyConditionExpression to retrieve one item with a given partition key value and sort key value, or several items that have the same partition key value but different sort key values.

    The partition key equality test is required, and must be specified in the following format:

    partitionKeyName = :partitionkeyval

    If you also want to provide a condition for the sort key, it must be combined using AND with the condition for the sort key. Following is an example, using the = comparison operator for the sort key:

    partitionKeyName = :partitionkeyval AND sortKeyName = :sortkeyval

    Valid comparisons for the sort key condition are as follows:

    • sortKeyName = :sortkeyval - true if the sort key value is equal to :sortkeyval.

    • sortKeyName < :sortkeyval - true if the sort key value is less than :sortkeyval.

    • sortKeyName <= :sortkeyval - true if the sort key value is less than or equal to :sortkeyval.

    • sortKeyName > :sortkeyval - true if the sort key value is greater than :sortkeyval.

    • sortKeyName >= :sortkeyval - true if the sort key value is greater than or equal to :sortkeyval.

    • sortKeyName BETWEEN :sortkeyval1 AND :sortkeyval2 - true if the sort key value is greater than or equal to :sortkeyval1, and less than or equal to :sortkeyval2.

    • begins_with ( sortKeyName, :sortkeyval ) - true if the sort key value begins with a particular operand. (You cannot use this function with a sort key that is of type Number.) Note that the function name begins_with is case-sensitive.

    Use the ExpressionAttributeValues parameter to replace tokens such as :partitionval and :sortval with actual values at runtime.

    You can optionally use the ExpressionAttributeNames parameter to replace the names of the partition key and sort key with placeholder tokens. This option might be necessary if an attribute name conflicts with a DynamoDB reserved word. For example, the following KeyConditionExpression parameter causes an error because Size is a reserved word:

    • Size = :myval

    To work around this, define a placeholder (such a #S) to represent the attribute name Size. KeyConditionExpression then is as follows:

    • #S = :myval

    For a list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide.

    For more information on ExpressionAttributeNames and ExpressionAttributeValues, see Using Placeholders for Attribute Names and Values in the Amazon DynamoDB Developer Guide.

    KeyConditionExpression replaces the legacy KeyConditions parameter.

    " - } - }, - "KeyList": { - "base": null, - "refs": { - "KeysAndAttributes$Keys": "

    The primary key attribute values that define the items and the attributes associated with the items.

    " - } - }, - "KeySchema": { - "base": null, - "refs": { - "CreateGlobalSecondaryIndexAction$KeySchema": "

    The key schema for the global secondary index.

    ", - "CreateTableInput$KeySchema": "

    Specifies the attributes that make up the primary key for a table or an index. The attributes in KeySchema must also be defined in the AttributeDefinitions array. For more information, see Data Model in the Amazon DynamoDB Developer Guide.

    Each KeySchemaElement in the array is composed of:

    • AttributeName - The name of this key attribute.

    • KeyType - The role that the 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' 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.

    For a simple primary key (partition key), you must provide exactly one element with a KeyType of HASH.

    For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order: The first element must have a KeyType of HASH, and the second element must have a KeyType of RANGE.

    For more information, see Specifying the Primary Key in the Amazon DynamoDB Developer Guide.

    ", - "GlobalSecondaryIndex$KeySchema": "

    The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

    • 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' 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.

    ", - "GlobalSecondaryIndexDescription$KeySchema": "

    The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

    • 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' 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.

    ", - "LocalSecondaryIndex$KeySchema": "

    The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:

    • 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' 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.

    ", - "LocalSecondaryIndexDescription$KeySchema": "

    The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:

    • 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' 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.

    ", - "TableDescription$KeySchema": "

    The primary key structure for the table. Each KeySchemaElement consists of:

    • AttributeName - The name of the attribute.

    • KeyType - The role of the attribute:

      • 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' 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.

    For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.

    " - } - }, - "KeySchemaAttributeName": { - "base": null, - "refs": { - "AttributeDefinition$AttributeName": "

    A name for the attribute.

    ", - "KeySchemaElement$AttributeName": "

    The name of a key attribute.

    " - } - }, - "KeySchemaElement": { - "base": "

    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.

    ", - "refs": { - "KeySchema$member": null - } - }, - "KeyType": { - "base": null, - "refs": { - "KeySchemaElement$KeyType": "

    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' 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.

    " - } - }, - "KeysAndAttributes": { - "base": "

    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.

    ", - "refs": { - "BatchGetRequestMap$value": null - } - }, - "LimitExceededException": { - "base": "

    The number of concurrent table requests (cumulative number of tables in the CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10.

    Also, for tables with secondary indexes, only one of those tables can be in the CREATING state at any point in time. Do not attempt to create more than one such table simultaneously.

    The total limit of tables in the ACTIVE state is 250.

    ", - "refs": { - } - }, - "ListAttributeValue": { - "base": null, - "refs": { - "AttributeValue$L": "

    A List of attribute values.

    " - } - }, - "ListTablesInput": { - "base": "

    Represents the input of a ListTables operation.

    ", - "refs": { - } - }, - "ListTablesInputLimit": { - "base": null, - "refs": { - "ListTablesInput$Limit": "

    A maximum number of table names to return. If this parameter is not specified, the limit is 100.

    " - } - }, - "ListTablesOutput": { - "base": "

    Represents the output of a ListTables operation.

    ", - "refs": { - } - }, - "LocalSecondaryIndex": { - "base": "

    Represents the properties of a local secondary index.

    ", - "refs": { - "LocalSecondaryIndexList$member": null - } - }, - "LocalSecondaryIndexDescription": { - "base": "

    Represents the properties of a local secondary index.

    ", - "refs": { - "LocalSecondaryIndexDescriptionList$member": null - } - }, - "LocalSecondaryIndexDescriptionList": { - "base": null, - "refs": { - "TableDescription$LocalSecondaryIndexes": "

    Represents one or more local secondary indexes on the table. Each index is scoped to a given partition key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of:

    • IndexName - The name of the local secondary index.

    • KeySchema - Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table.

    • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

      • ProjectionType - One of the following:

        • KEYS_ONLY - Only the index and primary keys are projected into the index.

        • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

        • ALL - All of the table attributes are projected into the index.

      • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

    • IndexSizeBytes - Represents the total size of the index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    • ItemCount - Represents the number of items in the index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    If the table is in the DELETING state, no information about indexes will be returned.

    " - } - }, - "LocalSecondaryIndexList": { - "base": null, - "refs": { - "CreateTableInput$LocalSecondaryIndexes": "

    One or more local secondary indexes (the maximum is five) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.

    Each local secondary index in the array includes the following:

    • IndexName - The name of the local secondary index. Must be unique only for this table.

    • KeySchema - Specifies the key schema for the local secondary index. The key schema must begin with the same partition key as the table.

    • Projection - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

      • ProjectionType - One of the following:

        • KEYS_ONLY - Only the index and primary keys are projected into the index.

        • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

        • ALL - All of the table attributes are projected into the index.

      • NonKeyAttributes - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

    " - } - }, - "Long": { - "base": null, - "refs": { - "GlobalSecondaryIndexDescription$IndexSizeBytes": "

    The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    ", - "GlobalSecondaryIndexDescription$ItemCount": "

    The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    ", - "LocalSecondaryIndexDescription$IndexSizeBytes": "

    The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    ", - "LocalSecondaryIndexDescription$ItemCount": "

    The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    ", - "TableDescription$TableSizeBytes": "

    The total size of the specified table, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    ", - "TableDescription$ItemCount": "

    The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

    " - } - }, - "MapAttributeValue": { - "base": null, - "refs": { - "AttributeValue$M": "

    A Map of attribute values.

    " - } - }, - "NonKeyAttributeName": { - "base": null, - "refs": { - "NonKeyAttributeNameList$member": null - } - }, - "NonKeyAttributeNameList": { - "base": null, - "refs": { - "Projection$NonKeyAttributes": "

    Represents the non-key attribute names which will be projected into the index.

    For local secondary indexes, the total count of NonKeyAttributes summed across all of the local secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

    " - } - }, - "NullAttributeValue": { - "base": null, - "refs": { - "AttributeValue$NULL": "

    A Null data type.

    " - } - }, - "NumberAttributeValue": { - "base": null, - "refs": { - "AttributeValue$N": "

    A Number data type.

    ", - "NumberSetAttributeValue$member": null - } - }, - "NumberSetAttributeValue": { - "base": null, - "refs": { - "AttributeValue$NS": "

    A Number Set data type.

    " - } - }, - "PositiveIntegerObject": { - "base": null, - "refs": { - "QueryInput$Limit": "

    The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed data set size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer Guide.

    ", - "ScanInput$Limit": "

    The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in LastEvaluatedKey to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed data set size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in LastEvaluatedKey to apply in a subsequent operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer Guide.

    " - } - }, - "PositiveLongObject": { - "base": null, - "refs": { - "DescribeLimitsOutput$AccountMaxReadCapacityUnits": "

    The maximum total read capacity units that your account allows you to provision across all of your tables in this region.

    ", - "DescribeLimitsOutput$AccountMaxWriteCapacityUnits": "

    The maximum total write capacity units that your account allows you to provision across all of your tables in this region.

    ", - "DescribeLimitsOutput$TableMaxReadCapacityUnits": "

    The maximum read capacity units that your account allows you to provision for a new table that you are creating in this region, including the read capacity units provisioned for its global secondary indexes (GSIs).

    ", - "DescribeLimitsOutput$TableMaxWriteCapacityUnits": "

    The maximum write capacity units that your account allows you to provision for a new table that you are creating in this region, including the write capacity units provisioned for its global secondary indexes (GSIs).

    ", - "ProvisionedThroughput$ReadCapacityUnits": "

    The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

    ", - "ProvisionedThroughput$WriteCapacityUnits": "

    The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.

    ", - "ProvisionedThroughputDescription$NumberOfDecreasesToday": "

    The number of provisioned throughput decreases for this table during this UTC calendar day. For current maximums on provisioned throughput decreases, see Limits in the Amazon DynamoDB Developer Guide.

    ", - "ProvisionedThroughputDescription$ReadCapacityUnits": "

    The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. Eventually consistent reads require less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100 eventually consistent ReadCapacityUnits per second.

    ", - "ProvisionedThroughputDescription$WriteCapacityUnits": "

    The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

    " - } - }, - "Projection": { - "base": "

    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.

    ", - "refs": { - "CreateGlobalSecondaryIndexAction$Projection": null, - "GlobalSecondaryIndex$Projection": null, - "GlobalSecondaryIndexDescription$Projection": null, - "LocalSecondaryIndex$Projection": null, - "LocalSecondaryIndexDescription$Projection": null - } - }, - "ProjectionExpression": { - "base": null, - "refs": { - "GetItemInput$ProjectionExpression": "

    A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

    If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    ProjectionExpression replaces the legacy AttributesToGet parameter.

    ", - "KeysAndAttributes$ProjectionExpression": "

    A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the ProjectionExpression must be separated by commas.

    If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    ProjectionExpression replaces the legacy AttributesToGet parameter.

    ", - "QueryInput$ProjectionExpression": "

    A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

    If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    ProjectionExpression replaces the legacy AttributesToGet parameter.

    ", - "ScanInput$ProjectionExpression": "

    A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

    If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

    For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

    ProjectionExpression replaces the legacy AttributesToGet parameter.

    " - } - }, - "ProjectionType": { - "base": null, - "refs": { - "Projection$ProjectionType": "

    The set of attributes that are projected into the index:

    • KEYS_ONLY - Only the index and primary keys are projected into the index.

    • INCLUDE - Only the specified table attributes are projected into the index. The list of projected attributes are in NonKeyAttributes.

    • ALL - All of the table attributes are projected into the index.

    " - } - }, - "ProvisionedThroughput": { - "base": "

    Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the UpdateTable operation.

    For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.

    ", - "refs": { - "CreateGlobalSecondaryIndexAction$ProvisionedThroughput": null, - "CreateTableInput$ProvisionedThroughput": null, - "GlobalSecondaryIndex$ProvisionedThroughput": null, - "UpdateGlobalSecondaryIndexAction$ProvisionedThroughput": null, - "UpdateTableInput$ProvisionedThroughput": null - } - }, - "ProvisionedThroughputDescription": { - "base": "

    Represents the provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

    ", - "refs": { - "GlobalSecondaryIndexDescription$ProvisionedThroughput": null, - "TableDescription$ProvisionedThroughput": "

    The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

    " - } - }, - "ProvisionedThroughputExceededException": { - "base": "

    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 in the Amazon DynamoDB Developer Guide.

    ", - "refs": { - } - }, - "PutItemInput": { - "base": "

    Represents the input of a PutItem operation.

    ", - "refs": { - } - }, - "PutItemInputAttributeMap": { - "base": null, - "refs": { - "PutItemInput$Item": "

    A map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.

    You must provide all of the attributes for the primary key. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide both values for both the partition key and the sort key.

    If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.

    For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.

    Each element in the Item map is an AttributeValue object.

    ", - "PutRequest$Item": "

    A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item which are part of an index key schema for the table, their types must match the index key schema.

    " - } - }, - "PutItemOutput": { - "base": "

    Represents the output of a PutItem operation.

    ", - "refs": { - } - }, - "PutRequest": { - "base": "

    Represents a request to perform a PutItem operation on an item.

    ", - "refs": { - "WriteRequest$PutRequest": "

    A request to perform a PutItem operation.

    " - } - }, - "QueryInput": { - "base": "

    Represents the input of a Query operation.

    ", - "refs": { - } - }, - "QueryOutput": { - "base": "

    Represents the output of a Query operation.

    ", - "refs": { - } - }, - "ResourceInUseException": { - "base": "

    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.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be ACTIVE.

    ", - "refs": { - } - }, - "ReturnConsumedCapacity": { - "base": "

    Determines the level of detail about provisioned throughput consumption that is returned in the response:

    • INDEXES - The response includes the aggregate ConsumedCapacity for the operation, together with ConsumedCapacity for each table and secondary index that was accessed.

      Note that some operations, such as GetItem and BatchGetItem, do not access any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity information for table(s).

    • TOTAL - The response includes only the aggregate ConsumedCapacity for the operation.

    • NONE - No ConsumedCapacity details are included in the response.

    ", - "refs": { - "BatchGetItemInput$ReturnConsumedCapacity": null, - "BatchWriteItemInput$ReturnConsumedCapacity": null, - "DeleteItemInput$ReturnConsumedCapacity": null, - "GetItemInput$ReturnConsumedCapacity": null, - "PutItemInput$ReturnConsumedCapacity": null, - "QueryInput$ReturnConsumedCapacity": null, - "ScanInput$ReturnConsumedCapacity": null, - "UpdateItemInput$ReturnConsumedCapacity": null - } - }, - "ReturnItemCollectionMetrics": { - "base": null, - "refs": { - "BatchWriteItemInput$ReturnItemCollectionMetrics": "

    Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

    ", - "DeleteItemInput$ReturnItemCollectionMetrics": "

    Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

    ", - "PutItemInput$ReturnItemCollectionMetrics": "

    Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

    ", - "UpdateItemInput$ReturnItemCollectionMetrics": "

    Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

    " - } - }, - "ReturnValue": { - "base": null, - "refs": { - "DeleteItemInput$ReturnValues": "

    Use ReturnValues if you want to get the item attributes as they appeared before they were deleted. For DeleteItem, the valid values are:

    • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

    • ALL_OLD - The content of the old item is returned.

    The ReturnValues parameter is used by several DynamoDB operations; however, DeleteItem does not recognize any values other than NONE or ALL_OLD.

    ", - "PutItemInput$ReturnValues": "

    Use ReturnValues if you want to get the item attributes as they appeared before they were updated with the PutItem request. For PutItem, the valid values are:

    • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

    • ALL_OLD - If PutItem overwrote an attribute name-value pair, then the content of the old item is returned.

    The ReturnValues parameter is used by several DynamoDB operations; however, PutItem does not recognize any values other than NONE or ALL_OLD.

    ", - "UpdateItemInput$ReturnValues": "

    Use ReturnValues if you want to get the item attributes as they appeared either before or after they were updated. For UpdateItem, the valid values are:

    • NONE - If ReturnValues is not specified, or if its value is NONE, then nothing is returned. (This setting is the default for ReturnValues.)

    • ALL_OLD - If UpdateItem overwrote an attribute name-value pair, then the content of the old item is returned.

    • UPDATED_OLD - The old versions of only the updated attributes are returned.

    • ALL_NEW - All of the attributes of the new version of the item are returned.

    • UPDATED_NEW - The new versions of only the updated attributes are returned.

    There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No Read Capacity Units are consumed.

    Values returned are strongly consistent

    " - } - }, - "ScalarAttributeType": { - "base": null, - "refs": { - "AttributeDefinition$AttributeType": "

    The data type for the attribute, where:

    • S - the attribute is of type String

    • N - the attribute is of type Number

    • B - the attribute is of type Binary

    " - } - }, - "ScanInput": { - "base": "

    Represents the input of a Scan operation.

    ", - "refs": { - } - }, - "ScanOutput": { - "base": "

    Represents the output of a Scan operation.

    ", - "refs": { - } - }, - "ScanSegment": { - "base": null, - "refs": { - "ScanInput$Segment": "

    For a parallel Scan request, Segment identifies an individual segment to be scanned by an application worker.

    Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to scan a table or an index, then the first thread specifies a Segment value of 0, the second thread specifies 1, and so on.

    The value of LastEvaluatedKey returned from a parallel Scan request must be used as ExclusiveStartKey with the same segment ID in a subsequent Scan operation.

    The value for Segment must be greater than or equal to 0, and less than the value provided for TotalSegments.

    If you provide Segment, you must also provide TotalSegments.

    " - } - }, - "ScanTotalSegments": { - "base": null, - "refs": { - "ScanInput$TotalSegments": "

    For a parallel Scan request, TotalSegments represents the total number of segments into which the Scan operation will be divided. The value of TotalSegments corresponds to the number of application workers that will perform the parallel scan. For example, if you want to use four application threads to scan a table or an index, specify a TotalSegments value of 4.

    The value for TotalSegments must be greater than or equal to 1, and less than or equal to 1000000. If you specify a TotalSegments value of 1, the Scan operation will be sequential rather than parallel.

    If you specify TotalSegments, you must also specify Segment.

    " - } - }, - "SecondaryIndexesCapacityMap": { - "base": null, - "refs": { - "ConsumedCapacity$LocalSecondaryIndexes": "

    The amount of throughput consumed on each local index affected by the operation.

    ", - "ConsumedCapacity$GlobalSecondaryIndexes": "

    The amount of throughput consumed on each global index affected by the operation.

    " - } - }, - "Select": { - "base": null, - "refs": { - "QueryInput$Select": "

    The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.

    • ALL_ATTRIBUTES - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index DynamoDB will fetch the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.

    • ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ALL_ATTRIBUTES.

    • COUNT - Returns the number of matching items, rather than the matching items themselves.

    • SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. This return value is equivalent to specifying AttributesToGet without specifying any value for Select.

      If you query a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB will fetch each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.

      If you query a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.

    If neither Select nor AttributesToGet are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot use both Select and AttributesToGet together in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

    If you use the ProjectionExpression parameter, then the value for Select can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an error.

    ", - "ScanInput$Select": "

    The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, or the count of matching items.

    • ALL_ATTRIBUTES - Returns all of the item attributes.

    • ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ALL_ATTRIBUTES.

    • COUNT - Returns the number of matching items, rather than the matching items themselves.

    • SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. This return value is equivalent to specifying AttributesToGet without specifying any value for Select.

    If neither Select nor AttributesToGet are specified, DynamoDB defaults to ALL_ATTRIBUTES. You cannot use both AttributesToGet and Select together in a single request, unless the value for Select is SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying AttributesToGet without any value for Select.)

    " - } - }, - "StreamArn": { - "base": null, - "refs": { - "TableDescription$LatestStreamArn": "

    The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.

    " - } - }, - "StreamEnabled": { - "base": null, - "refs": { - "StreamSpecification$StreamEnabled": "

    Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.

    " - } - }, - "StreamSpecification": { - "base": "

    Represents the DynamoDB Streams configuration for a table in DynamoDB.

    ", - "refs": { - "CreateTableInput$StreamSpecification": "

    The settings for DynamoDB Streams on the table. These settings consist of:

    • StreamEnabled - Indicates whether Streams is to be enabled (true) or disabled (false).

    • StreamViewType - When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values for StreamViewType are:

      • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.

      • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.

      • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.

      • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

    ", - "TableDescription$StreamSpecification": "

    The current DynamoDB Streams configuration for the table.

    ", - "UpdateTableInput$StreamSpecification": "

    Represents the DynamoDB Streams configuration for the table.

    You will receive a ResourceInUseException if you attempt to enable a stream on a table that already has a stream, or if you attempt to disable a stream on a table which does not have a stream.

    " - } - }, - "StreamViewType": { - "base": null, - "refs": { - "StreamSpecification$StreamViewType": "

    The DynamoDB Streams settings for the table. These settings consist of:

    • StreamEnabled - Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.

    • StreamViewType - When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. Valid values for StreamViewType are:

      • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.

      • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.

      • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.

      • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

    " - } - }, - "String": { - "base": null, - "refs": { - "GlobalSecondaryIndexDescription$IndexArn": "

    The Amazon Resource Name (ARN) that uniquely identifies the index.

    ", - "LocalSecondaryIndexDescription$IndexArn": "

    The Amazon Resource Name (ARN) that uniquely identifies the index.

    ", - "TableDescription$TableArn": "

    The Amazon Resource Name (ARN) that uniquely identifies the table.

    ", - "TableDescription$LatestStreamLabel": "

    A timestamp, in ISO 8601 format, for this stream.

    Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:

    • the AWS customer ID.

    • the table name.

    • the StreamLabel.

    " - } - }, - "StringAttributeValue": { - "base": null, - "refs": { - "AttributeValue$S": "

    A String data type.

    ", - "StringSetAttributeValue$member": null - } - }, - "StringSetAttributeValue": { - "base": null, - "refs": { - "AttributeValue$SS": "

    A String Set data type.

    " - } - }, - "TableDescription": { - "base": "

    Represents the properties of a table.

    ", - "refs": { - "CreateTableOutput$TableDescription": null, - "DeleteTableOutput$TableDescription": null, - "DescribeTableOutput$Table": null, - "UpdateTableOutput$TableDescription": null - } - }, - "TableName": { - "base": null, - "refs": { - "BatchGetRequestMap$key": null, - "BatchGetResponseMap$key": null, - "BatchWriteItemRequestMap$key": null, - "ConsumedCapacity$TableName": "

    The name of the table that was affected by the operation.

    ", - "CreateTableInput$TableName": "

    The name of the table to create.

    ", - "DeleteItemInput$TableName": "

    The name of the table from which to delete the item.

    ", - "DeleteTableInput$TableName": "

    The name of the table to delete.

    ", - "DescribeTableInput$TableName": "

    The name of the table to describe.

    ", - "GetItemInput$TableName": "

    The name of the table containing the requested item.

    ", - "ItemCollectionMetricsPerTable$key": null, - "ListTablesInput$ExclusiveStartTableName": "

    The first table name that this operation will evaluate. Use the value that was returned for LastEvaluatedTableName in a previous operation, so that you can obtain the next page of results.

    ", - "ListTablesOutput$LastEvaluatedTableName": "

    The name of the last table in the current page of results. Use this value as the ExclusiveStartTableName in a new request to obtain the next page of results, until all the table names are returned.

    If you do not receive a LastEvaluatedTableName value in the response, this means that there are no more table names to be retrieved.

    ", - "PutItemInput$TableName": "

    The name of the table to contain the item.

    ", - "QueryInput$TableName": "

    The name of the table containing the requested items.

    ", - "ScanInput$TableName": "

    The name of the table containing the requested items; or, if you provide IndexName, the name of the table to which that index belongs.

    ", - "TableDescription$TableName": "

    The name of the table.

    ", - "TableNameList$member": null, - "UpdateItemInput$TableName": "

    The name of the table containing the item to update.

    ", - "UpdateTableInput$TableName": "

    The name of the table to be updated.

    " - } - }, - "TableNameList": { - "base": null, - "refs": { - "ListTablesOutput$TableNames": "

    The names of the tables associated with the current account at the current endpoint. The maximum size of this array is 100.

    If LastEvaluatedTableName also appears in the output, you can use this value as the ExclusiveStartTableName parameter in a subsequent ListTables request and obtain the next page of results.

    " - } - }, - "TableStatus": { - "base": null, - "refs": { - "TableDescription$TableStatus": "

    The current state of the table:

    • CREATING - The table is being created.

    • UPDATING - The table is being updated.

    • DELETING - The table is being deleted.

    • ACTIVE - The table is ready for use.

    " - } - }, - "UpdateExpression": { - "base": null, - "refs": { - "UpdateItemInput$UpdateExpression": "

    An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.

    The following action values are available for UpdateExpression.

    • SET - Adds one or more attributes and values to an item. If any of these attribute already exist, they are replaced by the new values. You can also use SET to add or subtract from an attribute that is of type Number. For example: SET myNum = myNum + :val

      SET supports the following functions:

      • if_not_exists (path, operand) - if the item does not contain an attribute at the specified path, then if_not_exists evaluates to operand; otherwise, it evaluates to path. You can use this function to avoid overwriting an attribute that may already be present in the item.

      • list_append (operand, operand) - evaluates to a list with a new element added to it. You can append the new element to the start or the end of the list by reversing the order of the operands.

      These function names are case-sensitive.

    • REMOVE - Removes one or more attributes from an item.

    • ADD - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of ADD depends on the data type of the attribute:

      • If the existing attribute is a number, and if Value is also a number, then Value is mathematically added to the existing attribute. If Value is a negative number, then it is subtracted from the existing attribute.

        If you use ADD to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses 0 as the initial value.

        Similarly, if you use ADD for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses 0 as the initial value. For example, suppose that the item you want to update doesn't have an attribute named itemcount, but you decide to ADD the number 3 to this attribute anyway. DynamoDB will create the itemcount attribute, set its initial value to 0, and finally add 3 to it. The result will be a new itemcount attribute in the item, with a value of 3.

      • If the existing data type is a set and if Value is also a set, then Value is added to the existing set. For example, if the attribute value is the set [1,2], and the ADD action specified [3], then the final attribute value is [1,2,3]. An error occurs if an ADD action is specified for a set attribute and the attribute type specified does not match the existing set type.

        Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the Value must also be a set of strings.

      The ADD action only supports Number and set data types. In addition, ADD can only be used on top-level attributes, not nested attributes.

    • DELETE - Deletes an element from a set.

      If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set [a,b,c] and the DELETE action specifies [a,c], then the final attribute value is [b]. Specifying an empty set is an error.

      The DELETE action only supports set data types. In addition, DELETE can only be used on top-level attributes, not nested attributes.

    You can have many actions in a single expression, such as the following: SET a=:value1, b=:value2 DELETE :value3, :value4, :value5

    For more information on update expressions, see Modifying Items and Attributes in the Amazon DynamoDB Developer Guide.

    UpdateExpression replaces the legacy AttributeUpdates parameter.

    " - } - }, - "UpdateGlobalSecondaryIndexAction": { - "base": "

    Represents the new provisioned throughput settings to be applied to a global secondary index.

    ", - "refs": { - "GlobalSecondaryIndexUpdate$Update": "

    The name of an existing global secondary index, along with new provisioned throughput settings to be applied to that index.

    " - } - }, - "UpdateItemInput": { - "base": "

    Represents the input of an UpdateItem operation.

    ", - "refs": { - } - }, - "UpdateItemOutput": { - "base": "

    Represents the output of an UpdateItem operation.

    ", - "refs": { - } - }, - "UpdateTableInput": { - "base": "

    Represents the input of an UpdateTable operation.

    ", - "refs": { - } - }, - "UpdateTableOutput": { - "base": "

    Represents the output of an UpdateTable operation.

    ", - "refs": { - } - }, - "WriteRequest": { - "base": "

    Represents an operation to perform - either DeleteItem or PutItem. You can only request one of these operations, not both, in a single WriteRequest. If you do need to perform both of these operations, you will need to provide two separate WriteRequest objects.

    ", - "refs": { - "WriteRequests$member": null - } - }, - "WriteRequests": { - "base": null, - "refs": { - "BatchWriteItemRequestMap$value": null - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/paginators-1.json deleted file mode 100644 index d4075e120..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/paginators-1.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "pagination": { - "BatchGetItem": { - "input_token": "RequestItems", - "output_token": "UnprocessedKeys" - }, - "ListTables": { - "input_token": "ExclusiveStartTableName", - "output_token": "LastEvaluatedTableName", - "limit_key": "Limit", - "result_key": "TableNames" - }, - "Query": { - "input_token": "ExclusiveStartKey", - "output_token": "LastEvaluatedKey", - "limit_key": "Limit", - "result_key": "Items" - }, - "Scan": { - "input_token": "ExclusiveStartKey", - "output_token": "LastEvaluatedKey", - "limit_key": "Limit", - "result_key": "Items" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/waiters-2.json deleted file mode 100644 index 43a55ca7b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/waiters-2.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "version": 2, - "waiters": { - "TableExists": { - "delay": 20, - "operation": "DescribeTable", - "maxAttempts": 25, - "acceptors": [ - { - "expected": "ACTIVE", - "matcher": "path", - "state": "success", - "argument": "Table.TableStatus" - }, - { - "expected": "ResourceNotFoundException", - "matcher": "error", - "state": "retry" - } - ] - }, - "TableNotExists": { - "delay": 20, - "operation": "DescribeTable", - "maxAttempts": 25, - "acceptors": [ - { - "expected": "ResourceNotFoundException", - "matcher": "error", - "state": "success" - } - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/api-2.json deleted file mode 100644 index d5853bafb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/api-2.json +++ /dev/null @@ -1,13759 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-10-01", - "endpointPrefix":"ec2", - "protocol":"ec2", - "serviceAbbreviation":"Amazon EC2", - "serviceFullName":"Amazon Elastic Compute Cloud", - "signatureVersion":"v4", - "xmlNamespace":"http://ec2.amazonaws.com/doc/2015-10-01" - }, - "operations":{ - "AcceptVpcPeeringConnection":{ - "name":"AcceptVpcPeeringConnection", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AcceptVpcPeeringConnectionRequest"}, - "output":{"shape":"AcceptVpcPeeringConnectionResult"} - }, - "AllocateAddress":{ - "name":"AllocateAddress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AllocateAddressRequest"}, - "output":{"shape":"AllocateAddressResult"} - }, - "AllocateHosts":{ - "name":"AllocateHosts", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AllocateHostsRequest"}, - "output":{"shape":"AllocateHostsResult"} - }, - "AssignPrivateIpAddresses":{ - "name":"AssignPrivateIpAddresses", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AssignPrivateIpAddressesRequest"} - }, - "AssociateAddress":{ - "name":"AssociateAddress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AssociateAddressRequest"}, - "output":{"shape":"AssociateAddressResult"} - }, - "AssociateDhcpOptions":{ - "name":"AssociateDhcpOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AssociateDhcpOptionsRequest"} - }, - "AssociateRouteTable":{ - "name":"AssociateRouteTable", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AssociateRouteTableRequest"}, - "output":{"shape":"AssociateRouteTableResult"} - }, - "AttachClassicLinkVpc":{ - "name":"AttachClassicLinkVpc", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AttachClassicLinkVpcRequest"}, - "output":{"shape":"AttachClassicLinkVpcResult"} - }, - "AttachInternetGateway":{ - "name":"AttachInternetGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AttachInternetGatewayRequest"} - }, - "AttachNetworkInterface":{ - "name":"AttachNetworkInterface", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AttachNetworkInterfaceRequest"}, - "output":{"shape":"AttachNetworkInterfaceResult"} - }, - "AttachVolume":{ - "name":"AttachVolume", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AttachVolumeRequest"}, - "output":{"shape":"VolumeAttachment"} - }, - "AttachVpnGateway":{ - "name":"AttachVpnGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AttachVpnGatewayRequest"}, - "output":{"shape":"AttachVpnGatewayResult"} - }, - "AuthorizeSecurityGroupEgress":{ - "name":"AuthorizeSecurityGroupEgress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AuthorizeSecurityGroupEgressRequest"} - }, - "AuthorizeSecurityGroupIngress":{ - "name":"AuthorizeSecurityGroupIngress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AuthorizeSecurityGroupIngressRequest"} - }, - "BundleInstance":{ - "name":"BundleInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"BundleInstanceRequest"}, - "output":{"shape":"BundleInstanceResult"} - }, - "CancelBundleTask":{ - "name":"CancelBundleTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CancelBundleTaskRequest"}, - "output":{"shape":"CancelBundleTaskResult"} - }, - "CancelConversionTask":{ - "name":"CancelConversionTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CancelConversionRequest"} - }, - "CancelExportTask":{ - "name":"CancelExportTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CancelExportTaskRequest"} - }, - "CancelImportTask":{ - "name":"CancelImportTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CancelImportTaskRequest"}, - "output":{"shape":"CancelImportTaskResult"} - }, - "CancelReservedInstancesListing":{ - "name":"CancelReservedInstancesListing", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CancelReservedInstancesListingRequest"}, - "output":{"shape":"CancelReservedInstancesListingResult"} - }, - "CancelSpotFleetRequests":{ - "name":"CancelSpotFleetRequests", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CancelSpotFleetRequestsRequest"}, - "output":{"shape":"CancelSpotFleetRequestsResponse"} - }, - "CancelSpotInstanceRequests":{ - "name":"CancelSpotInstanceRequests", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CancelSpotInstanceRequestsRequest"}, - "output":{"shape":"CancelSpotInstanceRequestsResult"} - }, - "ConfirmProductInstance":{ - "name":"ConfirmProductInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ConfirmProductInstanceRequest"}, - "output":{"shape":"ConfirmProductInstanceResult"} - }, - "CopyImage":{ - "name":"CopyImage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CopyImageRequest"}, - "output":{"shape":"CopyImageResult"} - }, - "CopySnapshot":{ - "name":"CopySnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CopySnapshotRequest"}, - "output":{"shape":"CopySnapshotResult"} - }, - "CreateCustomerGateway":{ - "name":"CreateCustomerGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateCustomerGatewayRequest"}, - "output":{"shape":"CreateCustomerGatewayResult"} - }, - "CreateDhcpOptions":{ - "name":"CreateDhcpOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDhcpOptionsRequest"}, - "output":{"shape":"CreateDhcpOptionsResult"} - }, - "CreateFlowLogs":{ - "name":"CreateFlowLogs", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateFlowLogsRequest"}, - "output":{"shape":"CreateFlowLogsResult"} - }, - "CreateImage":{ - "name":"CreateImage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateImageRequest"}, - "output":{"shape":"CreateImageResult"} - }, - "CreateInstanceExportTask":{ - "name":"CreateInstanceExportTask", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateInstanceExportTaskRequest"}, - "output":{"shape":"CreateInstanceExportTaskResult"} - }, - "CreateInternetGateway":{ - "name":"CreateInternetGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateInternetGatewayRequest"}, - "output":{"shape":"CreateInternetGatewayResult"} - }, - "CreateKeyPair":{ - "name":"CreateKeyPair", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateKeyPairRequest"}, - "output":{"shape":"KeyPair"} - }, - "CreateNatGateway":{ - "name":"CreateNatGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateNatGatewayRequest"}, - "output":{"shape":"CreateNatGatewayResult"} - }, - "CreateNetworkAcl":{ - "name":"CreateNetworkAcl", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateNetworkAclRequest"}, - "output":{"shape":"CreateNetworkAclResult"} - }, - "CreateNetworkAclEntry":{ - "name":"CreateNetworkAclEntry", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateNetworkAclEntryRequest"} - }, - "CreateNetworkInterface":{ - "name":"CreateNetworkInterface", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateNetworkInterfaceRequest"}, - "output":{"shape":"CreateNetworkInterfaceResult"} - }, - "CreatePlacementGroup":{ - "name":"CreatePlacementGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreatePlacementGroupRequest"} - }, - "CreateReservedInstancesListing":{ - "name":"CreateReservedInstancesListing", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateReservedInstancesListingRequest"}, - "output":{"shape":"CreateReservedInstancesListingResult"} - }, - "CreateRoute":{ - "name":"CreateRoute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateRouteRequest"}, - "output":{"shape":"CreateRouteResult"} - }, - "CreateRouteTable":{ - "name":"CreateRouteTable", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateRouteTableRequest"}, - "output":{"shape":"CreateRouteTableResult"} - }, - "CreateSecurityGroup":{ - "name":"CreateSecurityGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateSecurityGroupRequest"}, - "output":{"shape":"CreateSecurityGroupResult"} - }, - "CreateSnapshot":{ - "name":"CreateSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateSnapshotRequest"}, - "output":{"shape":"Snapshot"} - }, - "CreateSpotDatafeedSubscription":{ - "name":"CreateSpotDatafeedSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateSpotDatafeedSubscriptionRequest"}, - "output":{"shape":"CreateSpotDatafeedSubscriptionResult"} - }, - "CreateSubnet":{ - "name":"CreateSubnet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateSubnetRequest"}, - "output":{"shape":"CreateSubnetResult"} - }, - "CreateTags":{ - "name":"CreateTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateTagsRequest"} - }, - "CreateVolume":{ - "name":"CreateVolume", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateVolumeRequest"}, - "output":{"shape":"Volume"} - }, - "CreateVpc":{ - "name":"CreateVpc", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateVpcRequest"}, - "output":{"shape":"CreateVpcResult"} - }, - "CreateVpcEndpoint":{ - "name":"CreateVpcEndpoint", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateVpcEndpointRequest"}, - "output":{"shape":"CreateVpcEndpointResult"} - }, - "CreateVpcPeeringConnection":{ - "name":"CreateVpcPeeringConnection", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateVpcPeeringConnectionRequest"}, - "output":{"shape":"CreateVpcPeeringConnectionResult"} - }, - "CreateVpnConnection":{ - "name":"CreateVpnConnection", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateVpnConnectionRequest"}, - "output":{"shape":"CreateVpnConnectionResult"} - }, - "CreateVpnConnectionRoute":{ - "name":"CreateVpnConnectionRoute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateVpnConnectionRouteRequest"} - }, - "CreateVpnGateway":{ - "name":"CreateVpnGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateVpnGatewayRequest"}, - "output":{"shape":"CreateVpnGatewayResult"} - }, - "DeleteCustomerGateway":{ - "name":"DeleteCustomerGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteCustomerGatewayRequest"} - }, - "DeleteDhcpOptions":{ - "name":"DeleteDhcpOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDhcpOptionsRequest"} - }, - "DeleteFlowLogs":{ - "name":"DeleteFlowLogs", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteFlowLogsRequest"}, - "output":{"shape":"DeleteFlowLogsResult"} - }, - "DeleteInternetGateway":{ - "name":"DeleteInternetGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteInternetGatewayRequest"} - }, - "DeleteKeyPair":{ - "name":"DeleteKeyPair", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteKeyPairRequest"} - }, - "DeleteNatGateway":{ - "name":"DeleteNatGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteNatGatewayRequest"}, - "output":{"shape":"DeleteNatGatewayResult"} - }, - "DeleteNetworkAcl":{ - "name":"DeleteNetworkAcl", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteNetworkAclRequest"} - }, - "DeleteNetworkAclEntry":{ - "name":"DeleteNetworkAclEntry", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteNetworkAclEntryRequest"} - }, - "DeleteNetworkInterface":{ - "name":"DeleteNetworkInterface", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteNetworkInterfaceRequest"} - }, - "DeletePlacementGroup":{ - "name":"DeletePlacementGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeletePlacementGroupRequest"} - }, - "DeleteRoute":{ - "name":"DeleteRoute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRouteRequest"} - }, - "DeleteRouteTable":{ - "name":"DeleteRouteTable", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRouteTableRequest"} - }, - "DeleteSecurityGroup":{ - "name":"DeleteSecurityGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteSecurityGroupRequest"} - }, - "DeleteSnapshot":{ - "name":"DeleteSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteSnapshotRequest"} - }, - "DeleteSpotDatafeedSubscription":{ - "name":"DeleteSpotDatafeedSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteSpotDatafeedSubscriptionRequest"} - }, - "DeleteSubnet":{ - "name":"DeleteSubnet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteSubnetRequest"} - }, - "DeleteTags":{ - "name":"DeleteTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteTagsRequest"} - }, - "DeleteVolume":{ - "name":"DeleteVolume", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteVolumeRequest"} - }, - "DeleteVpc":{ - "name":"DeleteVpc", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteVpcRequest"} - }, - "DeleteVpcEndpoints":{ - "name":"DeleteVpcEndpoints", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteVpcEndpointsRequest"}, - "output":{"shape":"DeleteVpcEndpointsResult"} - }, - "DeleteVpcPeeringConnection":{ - "name":"DeleteVpcPeeringConnection", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteVpcPeeringConnectionRequest"}, - "output":{"shape":"DeleteVpcPeeringConnectionResult"} - }, - "DeleteVpnConnection":{ - "name":"DeleteVpnConnection", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteVpnConnectionRequest"} - }, - "DeleteVpnConnectionRoute":{ - "name":"DeleteVpnConnectionRoute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteVpnConnectionRouteRequest"} - }, - "DeleteVpnGateway":{ - "name":"DeleteVpnGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteVpnGatewayRequest"} - }, - "DeregisterImage":{ - "name":"DeregisterImage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeregisterImageRequest"} - }, - "DescribeAccountAttributes":{ - "name":"DescribeAccountAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAccountAttributesRequest"}, - "output":{"shape":"DescribeAccountAttributesResult"} - }, - "DescribeAddresses":{ - "name":"DescribeAddresses", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAddressesRequest"}, - "output":{"shape":"DescribeAddressesResult"} - }, - "DescribeAvailabilityZones":{ - "name":"DescribeAvailabilityZones", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAvailabilityZonesRequest"}, - "output":{"shape":"DescribeAvailabilityZonesResult"} - }, - "DescribeBundleTasks":{ - "name":"DescribeBundleTasks", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeBundleTasksRequest"}, - "output":{"shape":"DescribeBundleTasksResult"} - }, - "DescribeClassicLinkInstances":{ - "name":"DescribeClassicLinkInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeClassicLinkInstancesRequest"}, - "output":{"shape":"DescribeClassicLinkInstancesResult"} - }, - "DescribeConversionTasks":{ - "name":"DescribeConversionTasks", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeConversionTasksRequest"}, - "output":{"shape":"DescribeConversionTasksResult"} - }, - "DescribeCustomerGateways":{ - "name":"DescribeCustomerGateways", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeCustomerGatewaysRequest"}, - "output":{"shape":"DescribeCustomerGatewaysResult"} - }, - "DescribeDhcpOptions":{ - "name":"DescribeDhcpOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDhcpOptionsRequest"}, - "output":{"shape":"DescribeDhcpOptionsResult"} - }, - "DescribeExportTasks":{ - "name":"DescribeExportTasks", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeExportTasksRequest"}, - "output":{"shape":"DescribeExportTasksResult"} - }, - "DescribeFlowLogs":{ - "name":"DescribeFlowLogs", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeFlowLogsRequest"}, - "output":{"shape":"DescribeFlowLogsResult"} - }, - "DescribeHosts":{ - "name":"DescribeHosts", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeHostsRequest"}, - "output":{"shape":"DescribeHostsResult"} - }, - "DescribeIdFormat":{ - "name":"DescribeIdFormat", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeIdFormatRequest"}, - "output":{"shape":"DescribeIdFormatResult"} - }, - "DescribeImageAttribute":{ - "name":"DescribeImageAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeImageAttributeRequest"}, - "output":{"shape":"ImageAttribute"} - }, - "DescribeImages":{ - "name":"DescribeImages", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeImagesRequest"}, - "output":{"shape":"DescribeImagesResult"} - }, - "DescribeImportImageTasks":{ - "name":"DescribeImportImageTasks", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeImportImageTasksRequest"}, - "output":{"shape":"DescribeImportImageTasksResult"} - }, - "DescribeImportSnapshotTasks":{ - "name":"DescribeImportSnapshotTasks", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeImportSnapshotTasksRequest"}, - "output":{"shape":"DescribeImportSnapshotTasksResult"} - }, - "DescribeInstanceAttribute":{ - "name":"DescribeInstanceAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeInstanceAttributeRequest"}, - "output":{"shape":"InstanceAttribute"} - }, - "DescribeInstanceStatus":{ - "name":"DescribeInstanceStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeInstanceStatusRequest"}, - "output":{"shape":"DescribeInstanceStatusResult"} - }, - "DescribeInstances":{ - "name":"DescribeInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeInstancesRequest"}, - "output":{"shape":"DescribeInstancesResult"} - }, - "DescribeInternetGateways":{ - "name":"DescribeInternetGateways", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeInternetGatewaysRequest"}, - "output":{"shape":"DescribeInternetGatewaysResult"} - }, - "DescribeKeyPairs":{ - "name":"DescribeKeyPairs", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeKeyPairsRequest"}, - "output":{"shape":"DescribeKeyPairsResult"} - }, - "DescribeMovingAddresses":{ - "name":"DescribeMovingAddresses", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeMovingAddressesRequest"}, - "output":{"shape":"DescribeMovingAddressesResult"} - }, - "DescribeNatGateways":{ - "name":"DescribeNatGateways", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeNatGatewaysRequest"}, - "output":{"shape":"DescribeNatGatewaysResult"} - }, - "DescribeNetworkAcls":{ - "name":"DescribeNetworkAcls", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeNetworkAclsRequest"}, - "output":{"shape":"DescribeNetworkAclsResult"} - }, - "DescribeNetworkInterfaceAttribute":{ - "name":"DescribeNetworkInterfaceAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeNetworkInterfaceAttributeRequest"}, - "output":{"shape":"DescribeNetworkInterfaceAttributeResult"} - }, - "DescribeNetworkInterfaces":{ - "name":"DescribeNetworkInterfaces", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeNetworkInterfacesRequest"}, - "output":{"shape":"DescribeNetworkInterfacesResult"} - }, - "DescribePlacementGroups":{ - "name":"DescribePlacementGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribePlacementGroupsRequest"}, - "output":{"shape":"DescribePlacementGroupsResult"} - }, - "DescribePrefixLists":{ - "name":"DescribePrefixLists", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribePrefixListsRequest"}, - "output":{"shape":"DescribePrefixListsResult"} - }, - "DescribeRegions":{ - "name":"DescribeRegions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeRegionsRequest"}, - "output":{"shape":"DescribeRegionsResult"} - }, - "DescribeReservedInstances":{ - "name":"DescribeReservedInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedInstancesRequest"}, - "output":{"shape":"DescribeReservedInstancesResult"} - }, - "DescribeReservedInstancesListings":{ - "name":"DescribeReservedInstancesListings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedInstancesListingsRequest"}, - "output":{"shape":"DescribeReservedInstancesListingsResult"} - }, - "DescribeReservedInstancesModifications":{ - "name":"DescribeReservedInstancesModifications", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedInstancesModificationsRequest"}, - "output":{"shape":"DescribeReservedInstancesModificationsResult"} - }, - "DescribeReservedInstancesOfferings":{ - "name":"DescribeReservedInstancesOfferings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedInstancesOfferingsRequest"}, - "output":{"shape":"DescribeReservedInstancesOfferingsResult"} - }, - "DescribeRouteTables":{ - "name":"DescribeRouteTables", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeRouteTablesRequest"}, - "output":{"shape":"DescribeRouteTablesResult"} - }, - "DescribeScheduledInstanceAvailability":{ - "name":"DescribeScheduledInstanceAvailability", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeScheduledInstanceAvailabilityRequest"}, - "output":{"shape":"DescribeScheduledInstanceAvailabilityResult"} - }, - "DescribeScheduledInstances":{ - "name":"DescribeScheduledInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeScheduledInstancesRequest"}, - "output":{"shape":"DescribeScheduledInstancesResult"} - }, - "DescribeSecurityGroupReferences":{ - "name":"DescribeSecurityGroupReferences", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSecurityGroupReferencesRequest"}, - "output":{"shape":"DescribeSecurityGroupReferencesResult"} - }, - "DescribeSecurityGroups":{ - "name":"DescribeSecurityGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSecurityGroupsRequest"}, - "output":{"shape":"DescribeSecurityGroupsResult"} - }, - "DescribeSnapshotAttribute":{ - "name":"DescribeSnapshotAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSnapshotAttributeRequest"}, - "output":{"shape":"DescribeSnapshotAttributeResult"} - }, - "DescribeSnapshots":{ - "name":"DescribeSnapshots", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSnapshotsRequest"}, - "output":{"shape":"DescribeSnapshotsResult"} - }, - "DescribeSpotDatafeedSubscription":{ - "name":"DescribeSpotDatafeedSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSpotDatafeedSubscriptionRequest"}, - "output":{"shape":"DescribeSpotDatafeedSubscriptionResult"} - }, - "DescribeSpotFleetInstances":{ - "name":"DescribeSpotFleetInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSpotFleetInstancesRequest"}, - "output":{"shape":"DescribeSpotFleetInstancesResponse"} - }, - "DescribeSpotFleetRequestHistory":{ - "name":"DescribeSpotFleetRequestHistory", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSpotFleetRequestHistoryRequest"}, - "output":{"shape":"DescribeSpotFleetRequestHistoryResponse"} - }, - "DescribeSpotFleetRequests":{ - "name":"DescribeSpotFleetRequests", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSpotFleetRequestsRequest"}, - "output":{"shape":"DescribeSpotFleetRequestsResponse"} - }, - "DescribeSpotInstanceRequests":{ - "name":"DescribeSpotInstanceRequests", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSpotInstanceRequestsRequest"}, - "output":{"shape":"DescribeSpotInstanceRequestsResult"} - }, - "DescribeSpotPriceHistory":{ - "name":"DescribeSpotPriceHistory", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSpotPriceHistoryRequest"}, - "output":{"shape":"DescribeSpotPriceHistoryResult"} - }, - "DescribeStaleSecurityGroups":{ - "name":"DescribeStaleSecurityGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeStaleSecurityGroupsRequest"}, - "output":{"shape":"DescribeStaleSecurityGroupsResult"} - }, - "DescribeSubnets":{ - "name":"DescribeSubnets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeSubnetsRequest"}, - "output":{"shape":"DescribeSubnetsResult"} - }, - "DescribeTags":{ - "name":"DescribeTags", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeTagsRequest"}, - "output":{"shape":"DescribeTagsResult"} - }, - "DescribeVolumeAttribute":{ - "name":"DescribeVolumeAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVolumeAttributeRequest"}, - "output":{"shape":"DescribeVolumeAttributeResult"} - }, - "DescribeVolumeStatus":{ - "name":"DescribeVolumeStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVolumeStatusRequest"}, - "output":{"shape":"DescribeVolumeStatusResult"} - }, - "DescribeVolumes":{ - "name":"DescribeVolumes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVolumesRequest"}, - "output":{"shape":"DescribeVolumesResult"} - }, - "DescribeVpcAttribute":{ - "name":"DescribeVpcAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVpcAttributeRequest"}, - "output":{"shape":"DescribeVpcAttributeResult"} - }, - "DescribeVpcClassicLink":{ - "name":"DescribeVpcClassicLink", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVpcClassicLinkRequest"}, - "output":{"shape":"DescribeVpcClassicLinkResult"} - }, - "DescribeVpcClassicLinkDnsSupport":{ - "name":"DescribeVpcClassicLinkDnsSupport", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVpcClassicLinkDnsSupportRequest"}, - "output":{"shape":"DescribeVpcClassicLinkDnsSupportResult"} - }, - "DescribeVpcEndpointServices":{ - "name":"DescribeVpcEndpointServices", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVpcEndpointServicesRequest"}, - "output":{"shape":"DescribeVpcEndpointServicesResult"} - }, - "DescribeVpcEndpoints":{ - "name":"DescribeVpcEndpoints", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVpcEndpointsRequest"}, - "output":{"shape":"DescribeVpcEndpointsResult"} - }, - "DescribeVpcPeeringConnections":{ - "name":"DescribeVpcPeeringConnections", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVpcPeeringConnectionsRequest"}, - "output":{"shape":"DescribeVpcPeeringConnectionsResult"} - }, - "DescribeVpcs":{ - "name":"DescribeVpcs", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVpcsRequest"}, - "output":{"shape":"DescribeVpcsResult"} - }, - "DescribeVpnConnections":{ - "name":"DescribeVpnConnections", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVpnConnectionsRequest"}, - "output":{"shape":"DescribeVpnConnectionsResult"} - }, - "DescribeVpnGateways":{ - "name":"DescribeVpnGateways", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeVpnGatewaysRequest"}, - "output":{"shape":"DescribeVpnGatewaysResult"} - }, - "DetachClassicLinkVpc":{ - "name":"DetachClassicLinkVpc", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DetachClassicLinkVpcRequest"}, - "output":{"shape":"DetachClassicLinkVpcResult"} - }, - "DetachInternetGateway":{ - "name":"DetachInternetGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DetachInternetGatewayRequest"} - }, - "DetachNetworkInterface":{ - "name":"DetachNetworkInterface", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DetachNetworkInterfaceRequest"} - }, - "DetachVolume":{ - "name":"DetachVolume", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DetachVolumeRequest"}, - "output":{"shape":"VolumeAttachment"} - }, - "DetachVpnGateway":{ - "name":"DetachVpnGateway", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DetachVpnGatewayRequest"} - }, - "DisableVgwRoutePropagation":{ - "name":"DisableVgwRoutePropagation", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DisableVgwRoutePropagationRequest"} - }, - "DisableVpcClassicLink":{ - "name":"DisableVpcClassicLink", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DisableVpcClassicLinkRequest"}, - "output":{"shape":"DisableVpcClassicLinkResult"} - }, - "DisableVpcClassicLinkDnsSupport":{ - "name":"DisableVpcClassicLinkDnsSupport", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DisableVpcClassicLinkDnsSupportRequest"}, - "output":{"shape":"DisableVpcClassicLinkDnsSupportResult"} - }, - "DisassociateAddress":{ - "name":"DisassociateAddress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DisassociateAddressRequest"} - }, - "DisassociateRouteTable":{ - "name":"DisassociateRouteTable", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DisassociateRouteTableRequest"} - }, - "EnableVgwRoutePropagation":{ - "name":"EnableVgwRoutePropagation", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"EnableVgwRoutePropagationRequest"} - }, - "EnableVolumeIO":{ - "name":"EnableVolumeIO", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"EnableVolumeIORequest"} - }, - "EnableVpcClassicLink":{ - "name":"EnableVpcClassicLink", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"EnableVpcClassicLinkRequest"}, - "output":{"shape":"EnableVpcClassicLinkResult"} - }, - "EnableVpcClassicLinkDnsSupport":{ - "name":"EnableVpcClassicLinkDnsSupport", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"EnableVpcClassicLinkDnsSupportRequest"}, - "output":{"shape":"EnableVpcClassicLinkDnsSupportResult"} - }, - "GetConsoleOutput":{ - "name":"GetConsoleOutput", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetConsoleOutputRequest"}, - "output":{"shape":"GetConsoleOutputResult"} - }, - "GetConsoleScreenshot":{ - "name":"GetConsoleScreenshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetConsoleScreenshotRequest"}, - "output":{"shape":"GetConsoleScreenshotResult"} - }, - "GetPasswordData":{ - "name":"GetPasswordData", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetPasswordDataRequest"}, - "output":{"shape":"GetPasswordDataResult"} - }, - "ImportImage":{ - "name":"ImportImage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ImportImageRequest"}, - "output":{"shape":"ImportImageResult"} - }, - "ImportInstance":{ - "name":"ImportInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ImportInstanceRequest"}, - "output":{"shape":"ImportInstanceResult"} - }, - "ImportKeyPair":{ - "name":"ImportKeyPair", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ImportKeyPairRequest"}, - "output":{"shape":"ImportKeyPairResult"} - }, - "ImportSnapshot":{ - "name":"ImportSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ImportSnapshotRequest"}, - "output":{"shape":"ImportSnapshotResult"} - }, - "ImportVolume":{ - "name":"ImportVolume", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ImportVolumeRequest"}, - "output":{"shape":"ImportVolumeResult"} - }, - "ModifyHosts":{ - "name":"ModifyHosts", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyHostsRequest"}, - "output":{"shape":"ModifyHostsResult"} - }, - "ModifyIdFormat":{ - "name":"ModifyIdFormat", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyIdFormatRequest"} - }, - "ModifyImageAttribute":{ - "name":"ModifyImageAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyImageAttributeRequest"} - }, - "ModifyInstanceAttribute":{ - "name":"ModifyInstanceAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyInstanceAttributeRequest"} - }, - "ModifyInstancePlacement":{ - "name":"ModifyInstancePlacement", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyInstancePlacementRequest"}, - "output":{"shape":"ModifyInstancePlacementResult"} - }, - "ModifyNetworkInterfaceAttribute":{ - "name":"ModifyNetworkInterfaceAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyNetworkInterfaceAttributeRequest"} - }, - "ModifyReservedInstances":{ - "name":"ModifyReservedInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyReservedInstancesRequest"}, - "output":{"shape":"ModifyReservedInstancesResult"} - }, - "ModifySnapshotAttribute":{ - "name":"ModifySnapshotAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifySnapshotAttributeRequest"} - }, - "ModifySpotFleetRequest":{ - "name":"ModifySpotFleetRequest", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifySpotFleetRequestRequest"}, - "output":{"shape":"ModifySpotFleetRequestResponse"} - }, - "ModifySubnetAttribute":{ - "name":"ModifySubnetAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifySubnetAttributeRequest"} - }, - "ModifyVolumeAttribute":{ - "name":"ModifyVolumeAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyVolumeAttributeRequest"} - }, - "ModifyVpcAttribute":{ - "name":"ModifyVpcAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyVpcAttributeRequest"} - }, - "ModifyVpcEndpoint":{ - "name":"ModifyVpcEndpoint", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyVpcEndpointRequest"}, - "output":{"shape":"ModifyVpcEndpointResult"} - }, - "ModifyVpcPeeringConnectionOptions":{ - "name":"ModifyVpcPeeringConnectionOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyVpcPeeringConnectionOptionsRequest"}, - "output":{"shape":"ModifyVpcPeeringConnectionOptionsResult"} - }, - "MonitorInstances":{ - "name":"MonitorInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"MonitorInstancesRequest"}, - "output":{"shape":"MonitorInstancesResult"} - }, - "MoveAddressToVpc":{ - "name":"MoveAddressToVpc", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"MoveAddressToVpcRequest"}, - "output":{"shape":"MoveAddressToVpcResult"} - }, - "PurchaseReservedInstancesOffering":{ - "name":"PurchaseReservedInstancesOffering", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PurchaseReservedInstancesOfferingRequest"}, - "output":{"shape":"PurchaseReservedInstancesOfferingResult"} - }, - "PurchaseScheduledInstances":{ - "name":"PurchaseScheduledInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PurchaseScheduledInstancesRequest"}, - "output":{"shape":"PurchaseScheduledInstancesResult"} - }, - "RebootInstances":{ - "name":"RebootInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RebootInstancesRequest"} - }, - "RegisterImage":{ - "name":"RegisterImage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RegisterImageRequest"}, - "output":{"shape":"RegisterImageResult"} - }, - "RejectVpcPeeringConnection":{ - "name":"RejectVpcPeeringConnection", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RejectVpcPeeringConnectionRequest"}, - "output":{"shape":"RejectVpcPeeringConnectionResult"} - }, - "ReleaseAddress":{ - "name":"ReleaseAddress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ReleaseAddressRequest"} - }, - "ReleaseHosts":{ - "name":"ReleaseHosts", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ReleaseHostsRequest"}, - "output":{"shape":"ReleaseHostsResult"} - }, - "ReplaceNetworkAclAssociation":{ - "name":"ReplaceNetworkAclAssociation", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ReplaceNetworkAclAssociationRequest"}, - "output":{"shape":"ReplaceNetworkAclAssociationResult"} - }, - "ReplaceNetworkAclEntry":{ - "name":"ReplaceNetworkAclEntry", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ReplaceNetworkAclEntryRequest"} - }, - "ReplaceRoute":{ - "name":"ReplaceRoute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ReplaceRouteRequest"} - }, - "ReplaceRouteTableAssociation":{ - "name":"ReplaceRouteTableAssociation", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ReplaceRouteTableAssociationRequest"}, - "output":{"shape":"ReplaceRouteTableAssociationResult"} - }, - "ReportInstanceStatus":{ - "name":"ReportInstanceStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ReportInstanceStatusRequest"} - }, - "RequestSpotFleet":{ - "name":"RequestSpotFleet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RequestSpotFleetRequest"}, - "output":{"shape":"RequestSpotFleetResponse"} - }, - "RequestSpotInstances":{ - "name":"RequestSpotInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RequestSpotInstancesRequest"}, - "output":{"shape":"RequestSpotInstancesResult"} - }, - "ResetImageAttribute":{ - "name":"ResetImageAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResetImageAttributeRequest"} - }, - "ResetInstanceAttribute":{ - "name":"ResetInstanceAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResetInstanceAttributeRequest"} - }, - "ResetNetworkInterfaceAttribute":{ - "name":"ResetNetworkInterfaceAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResetNetworkInterfaceAttributeRequest"} - }, - "ResetSnapshotAttribute":{ - "name":"ResetSnapshotAttribute", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResetSnapshotAttributeRequest"} - }, - "RestoreAddressToClassic":{ - "name":"RestoreAddressToClassic", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreAddressToClassicRequest"}, - "output":{"shape":"RestoreAddressToClassicResult"} - }, - "RevokeSecurityGroupEgress":{ - "name":"RevokeSecurityGroupEgress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RevokeSecurityGroupEgressRequest"} - }, - "RevokeSecurityGroupIngress":{ - "name":"RevokeSecurityGroupIngress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RevokeSecurityGroupIngressRequest"} - }, - "RunInstances":{ - "name":"RunInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RunInstancesRequest"}, - "output":{"shape":"Reservation"} - }, - "RunScheduledInstances":{ - "name":"RunScheduledInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RunScheduledInstancesRequest"}, - "output":{"shape":"RunScheduledInstancesResult"} - }, - "StartInstances":{ - "name":"StartInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StartInstancesRequest"}, - "output":{"shape":"StartInstancesResult"} - }, - "StopInstances":{ - "name":"StopInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StopInstancesRequest"}, - "output":{"shape":"StopInstancesResult"} - }, - "TerminateInstances":{ - "name":"TerminateInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"TerminateInstancesRequest"}, - "output":{"shape":"TerminateInstancesResult"} - }, - "UnassignPrivateIpAddresses":{ - "name":"UnassignPrivateIpAddresses", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UnassignPrivateIpAddressesRequest"} - }, - "UnmonitorInstances":{ - "name":"UnmonitorInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UnmonitorInstancesRequest"}, - "output":{"shape":"UnmonitorInstancesResult"} - } - }, - "shapes":{ - "AcceptVpcPeeringConnectionRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcPeeringConnectionId":{ - "shape":"String", - "locationName":"vpcPeeringConnectionId" - } - } - }, - "AcceptVpcPeeringConnectionResult":{ - "type":"structure", - "members":{ - "VpcPeeringConnection":{ - "shape":"VpcPeeringConnection", - "locationName":"vpcPeeringConnection" - } - } - }, - "AccountAttribute":{ - "type":"structure", - "members":{ - "AttributeName":{ - "shape":"String", - "locationName":"attributeName" - }, - "AttributeValues":{ - "shape":"AccountAttributeValueList", - "locationName":"attributeValueSet" - } - } - }, - "AccountAttributeList":{ - "type":"list", - "member":{ - "shape":"AccountAttribute", - "locationName":"item" - } - }, - "AccountAttributeName":{ - "type":"string", - "enum":[ - "supported-platforms", - "default-vpc" - ] - }, - "AccountAttributeNameStringList":{ - "type":"list", - "member":{ - "shape":"AccountAttributeName", - "locationName":"attributeName" - } - }, - "AccountAttributeValue":{ - "type":"structure", - "members":{ - "AttributeValue":{ - "shape":"String", - "locationName":"attributeValue" - } - } - }, - "AccountAttributeValueList":{ - "type":"list", - "member":{ - "shape":"AccountAttributeValue", - "locationName":"item" - } - }, - "ActiveInstance":{ - "type":"structure", - "members":{ - "InstanceType":{ - "shape":"String", - "locationName":"instanceType" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "SpotInstanceRequestId":{ - "shape":"String", - "locationName":"spotInstanceRequestId" - } - } - }, - "ActiveInstanceSet":{ - "type":"list", - "member":{ - "shape":"ActiveInstance", - "locationName":"item" - } - }, - "Address":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "PublicIp":{ - "shape":"String", - "locationName":"publicIp" - }, - "AllocationId":{ - "shape":"String", - "locationName":"allocationId" - }, - "AssociationId":{ - "shape":"String", - "locationName":"associationId" - }, - "Domain":{ - "shape":"DomainType", - "locationName":"domain" - }, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "NetworkInterfaceOwnerId":{ - "shape":"String", - "locationName":"networkInterfaceOwnerId" - }, - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - } - } - }, - "AddressList":{ - "type":"list", - "member":{ - "shape":"Address", - "locationName":"item" - } - }, - "Affinity":{ - "type":"string", - "enum":[ - "default", - "host" - ] - }, - "AllocateAddressRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Domain":{"shape":"DomainType"} - } - }, - "AllocateAddressResult":{ - "type":"structure", - "members":{ - "PublicIp":{ - "shape":"String", - "locationName":"publicIp" - }, - "Domain":{ - "shape":"DomainType", - "locationName":"domain" - }, - "AllocationId":{ - "shape":"String", - "locationName":"allocationId" - } - } - }, - "AllocateHostsRequest":{ - "type":"structure", - "required":[ - "InstanceType", - "Quantity", - "AvailabilityZone" - ], - "members":{ - "AutoPlacement":{ - "shape":"AutoPlacement", - "locationName":"autoPlacement" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - }, - "InstanceType":{ - "shape":"String", - "locationName":"instanceType" - }, - "Quantity":{ - "shape":"Integer", - "locationName":"quantity" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - } - } - }, - "AllocateHostsResult":{ - "type":"structure", - "members":{ - "HostIds":{ - "shape":"ResponseHostIdList", - "locationName":"hostIdSet" - } - } - }, - "AllocationIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"AllocationId" - } - }, - "AllocationState":{ - "type":"string", - "enum":[ - "available", - "under-assessment", - "permanent-failure", - "released", - "released-permanent-failure" - ] - }, - "AllocationStrategy":{ - "type":"string", - "enum":[ - "lowestPrice", - "diversified" - ] - }, - "ArchitectureValues":{ - "type":"string", - "enum":[ - "i386", - "x86_64" - ] - }, - "AssignPrivateIpAddressesRequest":{ - "type":"structure", - "required":["NetworkInterfaceId"], - "members":{ - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "PrivateIpAddresses":{ - "shape":"PrivateIpAddressStringList", - "locationName":"privateIpAddress" - }, - "SecondaryPrivateIpAddressCount":{ - "shape":"Integer", - "locationName":"secondaryPrivateIpAddressCount" - }, - "AllowReassignment":{ - "shape":"Boolean", - "locationName":"allowReassignment" - } - } - }, - "AssociateAddressRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceId":{"shape":"String"}, - "PublicIp":{"shape":"String"}, - "AllocationId":{"shape":"String"}, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - }, - "AllowReassociation":{ - "shape":"Boolean", - "locationName":"allowReassociation" - } - } - }, - "AssociateAddressResult":{ - "type":"structure", - "members":{ - "AssociationId":{ - "shape":"String", - "locationName":"associationId" - } - } - }, - "AssociateDhcpOptionsRequest":{ - "type":"structure", - "required":[ - "DhcpOptionsId", - "VpcId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "DhcpOptionsId":{"shape":"String"}, - "VpcId":{"shape":"String"} - } - }, - "AssociateRouteTableRequest":{ - "type":"structure", - "required":[ - "SubnetId", - "RouteTableId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "RouteTableId":{ - "shape":"String", - "locationName":"routeTableId" - } - } - }, - "AssociateRouteTableResult":{ - "type":"structure", - "members":{ - "AssociationId":{ - "shape":"String", - "locationName":"associationId" - } - } - }, - "AttachClassicLinkVpcRequest":{ - "type":"structure", - "required":[ - "InstanceId", - "VpcId", - "Groups" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "Groups":{ - "shape":"GroupIdStringList", - "locationName":"SecurityGroupId" - } - } - }, - "AttachClassicLinkVpcResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "AttachInternetGatewayRequest":{ - "type":"structure", - "required":[ - "InternetGatewayId", - "VpcId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InternetGatewayId":{ - "shape":"String", - "locationName":"internetGatewayId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - } - } - }, - "AttachNetworkInterfaceRequest":{ - "type":"structure", - "required":[ - "NetworkInterfaceId", - "InstanceId", - "DeviceIndex" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "DeviceIndex":{ - "shape":"Integer", - "locationName":"deviceIndex" - } - } - }, - "AttachNetworkInterfaceResult":{ - "type":"structure", - "members":{ - "AttachmentId":{ - "shape":"String", - "locationName":"attachmentId" - } - } - }, - "AttachVolumeRequest":{ - "type":"structure", - "required":[ - "VolumeId", - "InstanceId", - "Device" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VolumeId":{"shape":"String"}, - "InstanceId":{"shape":"String"}, - "Device":{"shape":"String"} - } - }, - "AttachVpnGatewayRequest":{ - "type":"structure", - "required":[ - "VpnGatewayId", - "VpcId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpnGatewayId":{"shape":"String"}, - "VpcId":{"shape":"String"} - } - }, - "AttachVpnGatewayResult":{ - "type":"structure", - "members":{ - "VpcAttachment":{ - "shape":"VpcAttachment", - "locationName":"attachment" - } - } - }, - "AttachmentStatus":{ - "type":"string", - "enum":[ - "attaching", - "attached", - "detaching", - "detached" - ] - }, - "AttributeBooleanValue":{ - "type":"structure", - "members":{ - "Value":{ - "shape":"Boolean", - "locationName":"value" - } - } - }, - "AttributeValue":{ - "type":"structure", - "members":{ - "Value":{ - "shape":"String", - "locationName":"value" - } - } - }, - "AuthorizeSecurityGroupEgressRequest":{ - "type":"structure", - "required":["GroupId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "GroupId":{ - "shape":"String", - "locationName":"groupId" - }, - "SourceSecurityGroupName":{ - "shape":"String", - "locationName":"sourceSecurityGroupName" - }, - "SourceSecurityGroupOwnerId":{ - "shape":"String", - "locationName":"sourceSecurityGroupOwnerId" - }, - "IpProtocol":{ - "shape":"String", - "locationName":"ipProtocol" - }, - "FromPort":{ - "shape":"Integer", - "locationName":"fromPort" - }, - "ToPort":{ - "shape":"Integer", - "locationName":"toPort" - }, - "CidrIp":{ - "shape":"String", - "locationName":"cidrIp" - }, - "IpPermissions":{ - "shape":"IpPermissionList", - "locationName":"ipPermissions" - } - } - }, - "AuthorizeSecurityGroupIngressRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "GroupName":{"shape":"String"}, - "GroupId":{"shape":"String"}, - "SourceSecurityGroupName":{"shape":"String"}, - "SourceSecurityGroupOwnerId":{"shape":"String"}, - "IpProtocol":{"shape":"String"}, - "FromPort":{"shape":"Integer"}, - "ToPort":{"shape":"Integer"}, - "CidrIp":{"shape":"String"}, - "IpPermissions":{"shape":"IpPermissionList"} - } - }, - "AutoPlacement":{ - "type":"string", - "enum":[ - "on", - "off" - ] - }, - "AvailabilityZone":{ - "type":"structure", - "members":{ - "ZoneName":{ - "shape":"String", - "locationName":"zoneName" - }, - "State":{ - "shape":"AvailabilityZoneState", - "locationName":"zoneState" - }, - "RegionName":{ - "shape":"String", - "locationName":"regionName" - }, - "Messages":{ - "shape":"AvailabilityZoneMessageList", - "locationName":"messageSet" - } - } - }, - "AvailabilityZoneList":{ - "type":"list", - "member":{ - "shape":"AvailabilityZone", - "locationName":"item" - } - }, - "AvailabilityZoneMessage":{ - "type":"structure", - "members":{ - "Message":{ - "shape":"String", - "locationName":"message" - } - } - }, - "AvailabilityZoneMessageList":{ - "type":"list", - "member":{ - "shape":"AvailabilityZoneMessage", - "locationName":"item" - } - }, - "AvailabilityZoneState":{ - "type":"string", - "enum":[ - "available", - "information", - "impaired", - "unavailable" - ] - }, - "AvailableCapacity":{ - "type":"structure", - "members":{ - "AvailableInstanceCapacity":{ - "shape":"AvailableInstanceCapacityList", - "locationName":"availableInstanceCapacity" - }, - "AvailableVCpus":{ - "shape":"Integer", - "locationName":"availableVCpus" - } - } - }, - "AvailableInstanceCapacityList":{ - "type":"list", - "member":{ - "shape":"InstanceCapacity", - "locationName":"item" - } - }, - "BatchState":{ - "type":"string", - "enum":[ - "submitted", - "active", - "cancelled", - "failed", - "cancelled_running", - "cancelled_terminating", - "modifying" - ] - }, - "Blob":{"type":"blob"}, - "BlobAttributeValue":{ - "type":"structure", - "members":{ - "Value":{ - "shape":"Blob", - "locationName":"value" - } - } - }, - "BlockDeviceMapping":{ - "type":"structure", - "members":{ - "VirtualName":{ - "shape":"String", - "locationName":"virtualName" - }, - "DeviceName":{ - "shape":"String", - "locationName":"deviceName" - }, - "Ebs":{ - "shape":"EbsBlockDevice", - "locationName":"ebs" - }, - "NoDevice":{ - "shape":"String", - "locationName":"noDevice" - } - } - }, - "BlockDeviceMappingList":{ - "type":"list", - "member":{ - "shape":"BlockDeviceMapping", - "locationName":"item" - } - }, - "BlockDeviceMappingRequestList":{ - "type":"list", - "member":{ - "shape":"BlockDeviceMapping", - "locationName":"BlockDeviceMapping" - } - }, - "Boolean":{"type":"boolean"}, - "BundleIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"BundleId" - } - }, - "BundleInstanceRequest":{ - "type":"structure", - "required":[ - "InstanceId", - "Storage" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceId":{"shape":"String"}, - "Storage":{"shape":"Storage"} - } - }, - "BundleInstanceResult":{ - "type":"structure", - "members":{ - "BundleTask":{ - "shape":"BundleTask", - "locationName":"bundleInstanceTask" - } - } - }, - "BundleTask":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "BundleId":{ - "shape":"String", - "locationName":"bundleId" - }, - "State":{ - "shape":"BundleTaskState", - "locationName":"state" - }, - "StartTime":{ - "shape":"DateTime", - "locationName":"startTime" - }, - "UpdateTime":{ - "shape":"DateTime", - "locationName":"updateTime" - }, - "Storage":{ - "shape":"Storage", - "locationName":"storage" - }, - "Progress":{ - "shape":"String", - "locationName":"progress" - }, - "BundleTaskError":{ - "shape":"BundleTaskError", - "locationName":"error" - } - } - }, - "BundleTaskError":{ - "type":"structure", - "members":{ - "Code":{ - "shape":"String", - "locationName":"code" - }, - "Message":{ - "shape":"String", - "locationName":"message" - } - } - }, - "BundleTaskList":{ - "type":"list", - "member":{ - "shape":"BundleTask", - "locationName":"item" - } - }, - "BundleTaskState":{ - "type":"string", - "enum":[ - "pending", - "waiting-for-shutdown", - "bundling", - "storing", - "cancelling", - "complete", - "failed" - ] - }, - "CancelBatchErrorCode":{ - "type":"string", - "enum":[ - "fleetRequestIdDoesNotExist", - "fleetRequestIdMalformed", - "fleetRequestNotInCancellableState", - "unexpectedError" - ] - }, - "CancelBundleTaskRequest":{ - "type":"structure", - "required":["BundleId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "BundleId":{"shape":"String"} - } - }, - "CancelBundleTaskResult":{ - "type":"structure", - "members":{ - "BundleTask":{ - "shape":"BundleTask", - "locationName":"bundleInstanceTask" - } - } - }, - "CancelConversionRequest":{ - "type":"structure", - "required":["ConversionTaskId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ConversionTaskId":{ - "shape":"String", - "locationName":"conversionTaskId" - }, - "ReasonMessage":{ - "shape":"String", - "locationName":"reasonMessage" - } - } - }, - "CancelExportTaskRequest":{ - "type":"structure", - "required":["ExportTaskId"], - "members":{ - "ExportTaskId":{ - "shape":"String", - "locationName":"exportTaskId" - } - } - }, - "CancelImportTaskRequest":{ - "type":"structure", - "members":{ - "DryRun":{"shape":"Boolean"}, - "ImportTaskId":{"shape":"String"}, - "CancelReason":{"shape":"String"} - } - }, - "CancelImportTaskResult":{ - "type":"structure", - "members":{ - "ImportTaskId":{ - "shape":"String", - "locationName":"importTaskId" - }, - "State":{ - "shape":"String", - "locationName":"state" - }, - "PreviousState":{ - "shape":"String", - "locationName":"previousState" - } - } - }, - "CancelReservedInstancesListingRequest":{ - "type":"structure", - "required":["ReservedInstancesListingId"], - "members":{ - "ReservedInstancesListingId":{ - "shape":"String", - "locationName":"reservedInstancesListingId" - } - } - }, - "CancelReservedInstancesListingResult":{ - "type":"structure", - "members":{ - "ReservedInstancesListings":{ - "shape":"ReservedInstancesListingList", - "locationName":"reservedInstancesListingsSet" - } - } - }, - "CancelSpotFleetRequestsError":{ - "type":"structure", - "required":[ - "Code", - "Message" - ], - "members":{ - "Code":{ - "shape":"CancelBatchErrorCode", - "locationName":"code" - }, - "Message":{ - "shape":"String", - "locationName":"message" - } - } - }, - "CancelSpotFleetRequestsErrorItem":{ - "type":"structure", - "required":[ - "SpotFleetRequestId", - "Error" - ], - "members":{ - "SpotFleetRequestId":{ - "shape":"String", - "locationName":"spotFleetRequestId" - }, - "Error":{ - "shape":"CancelSpotFleetRequestsError", - "locationName":"error" - } - } - }, - "CancelSpotFleetRequestsErrorSet":{ - "type":"list", - "member":{ - "shape":"CancelSpotFleetRequestsErrorItem", - "locationName":"item" - } - }, - "CancelSpotFleetRequestsRequest":{ - "type":"structure", - "required":[ - "SpotFleetRequestIds", - "TerminateInstances" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SpotFleetRequestIds":{ - "shape":"ValueStringList", - "locationName":"spotFleetRequestId" - }, - "TerminateInstances":{ - "shape":"Boolean", - "locationName":"terminateInstances" - } - } - }, - "CancelSpotFleetRequestsResponse":{ - "type":"structure", - "members":{ - "UnsuccessfulFleetRequests":{ - "shape":"CancelSpotFleetRequestsErrorSet", - "locationName":"unsuccessfulFleetRequestSet" - }, - "SuccessfulFleetRequests":{ - "shape":"CancelSpotFleetRequestsSuccessSet", - "locationName":"successfulFleetRequestSet" - } - } - }, - "CancelSpotFleetRequestsSuccessItem":{ - "type":"structure", - "required":[ - "SpotFleetRequestId", - "CurrentSpotFleetRequestState", - "PreviousSpotFleetRequestState" - ], - "members":{ - "SpotFleetRequestId":{ - "shape":"String", - "locationName":"spotFleetRequestId" - }, - "CurrentSpotFleetRequestState":{ - "shape":"BatchState", - "locationName":"currentSpotFleetRequestState" - }, - "PreviousSpotFleetRequestState":{ - "shape":"BatchState", - "locationName":"previousSpotFleetRequestState" - } - } - }, - "CancelSpotFleetRequestsSuccessSet":{ - "type":"list", - "member":{ - "shape":"CancelSpotFleetRequestsSuccessItem", - "locationName":"item" - } - }, - "CancelSpotInstanceRequestState":{ - "type":"string", - "enum":[ - "active", - "open", - "closed", - "cancelled", - "completed" - ] - }, - "CancelSpotInstanceRequestsRequest":{ - "type":"structure", - "required":["SpotInstanceRequestIds"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SpotInstanceRequestIds":{ - "shape":"SpotInstanceRequestIdList", - "locationName":"SpotInstanceRequestId" - } - } - }, - "CancelSpotInstanceRequestsResult":{ - "type":"structure", - "members":{ - "CancelledSpotInstanceRequests":{ - "shape":"CancelledSpotInstanceRequestList", - "locationName":"spotInstanceRequestSet" - } - } - }, - "CancelledSpotInstanceRequest":{ - "type":"structure", - "members":{ - "SpotInstanceRequestId":{ - "shape":"String", - "locationName":"spotInstanceRequestId" - }, - "State":{ - "shape":"CancelSpotInstanceRequestState", - "locationName":"state" - } - } - }, - "CancelledSpotInstanceRequestList":{ - "type":"list", - "member":{ - "shape":"CancelledSpotInstanceRequest", - "locationName":"item" - } - }, - "ClassicLinkDnsSupport":{ - "type":"structure", - "members":{ - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "ClassicLinkDnsSupported":{ - "shape":"Boolean", - "locationName":"classicLinkDnsSupported" - } - } - }, - "ClassicLinkDnsSupportList":{ - "type":"list", - "member":{ - "shape":"ClassicLinkDnsSupport", - "locationName":"item" - } - }, - "ClassicLinkInstance":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "Groups":{ - "shape":"GroupIdentifierList", - "locationName":"groupSet" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - } - } - }, - "ClassicLinkInstanceList":{ - "type":"list", - "member":{ - "shape":"ClassicLinkInstance", - "locationName":"item" - } - }, - "ClientData":{ - "type":"structure", - "members":{ - "UploadStart":{"shape":"DateTime"}, - "UploadEnd":{"shape":"DateTime"}, - "UploadSize":{"shape":"Double"}, - "Comment":{"shape":"String"} - } - }, - "ConfirmProductInstanceRequest":{ - "type":"structure", - "required":[ - "ProductCode", - "InstanceId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ProductCode":{"shape":"String"}, - "InstanceId":{"shape":"String"} - } - }, - "ConfirmProductInstanceResult":{ - "type":"structure", - "members":{ - "OwnerId":{ - "shape":"String", - "locationName":"ownerId" - }, - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "ContainerFormat":{ - "type":"string", - "enum":["ova"] - }, - "ConversionIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"item" - } - }, - "ConversionTask":{ - "type":"structure", - "required":[ - "ConversionTaskId", - "State" - ], - "members":{ - "ConversionTaskId":{ - "shape":"String", - "locationName":"conversionTaskId" - }, - "ExpirationTime":{ - "shape":"String", - "locationName":"expirationTime" - }, - "ImportInstance":{ - "shape":"ImportInstanceTaskDetails", - "locationName":"importInstance" - }, - "ImportVolume":{ - "shape":"ImportVolumeTaskDetails", - "locationName":"importVolume" - }, - "State":{ - "shape":"ConversionTaskState", - "locationName":"state" - }, - "StatusMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - } - } - }, - "ConversionTaskState":{ - "type":"string", - "enum":[ - "active", - "cancelling", - "cancelled", - "completed" - ] - }, - "CopyImageRequest":{ - "type":"structure", - "required":[ - "SourceRegion", - "SourceImageId", - "Name" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SourceRegion":{"shape":"String"}, - "SourceImageId":{"shape":"String"}, - "Name":{"shape":"String"}, - "Description":{"shape":"String"}, - "ClientToken":{"shape":"String"}, - "Encrypted":{ - "shape":"Boolean", - "locationName":"encrypted" - }, - "KmsKeyId":{ - "shape":"String", - "locationName":"kmsKeyId" - } - } - }, - "CopyImageResult":{ - "type":"structure", - "members":{ - "ImageId":{ - "shape":"String", - "locationName":"imageId" - } - } - }, - "CopySnapshotRequest":{ - "type":"structure", - "required":[ - "SourceRegion", - "SourceSnapshotId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SourceRegion":{"shape":"String"}, - "SourceSnapshotId":{"shape":"String"}, - "Description":{"shape":"String"}, - "DestinationRegion":{ - "shape":"String", - "locationName":"destinationRegion" - }, - "PresignedUrl":{ - "shape":"String", - "locationName":"presignedUrl" - }, - "Encrypted":{ - "shape":"Boolean", - "locationName":"encrypted" - }, - "KmsKeyId":{ - "shape":"String", - "locationName":"kmsKeyId" - } - } - }, - "CopySnapshotResult":{ - "type":"structure", - "members":{ - "SnapshotId":{ - "shape":"String", - "locationName":"snapshotId" - } - } - }, - "CreateCustomerGatewayRequest":{ - "type":"structure", - "required":[ - "Type", - "PublicIp", - "BgpAsn" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Type":{"shape":"GatewayType"}, - "PublicIp":{ - "shape":"String", - "locationName":"IpAddress" - }, - "BgpAsn":{"shape":"Integer"} - } - }, - "CreateCustomerGatewayResult":{ - "type":"structure", - "members":{ - "CustomerGateway":{ - "shape":"CustomerGateway", - "locationName":"customerGateway" - } - } - }, - "CreateDhcpOptionsRequest":{ - "type":"structure", - "required":["DhcpConfigurations"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "DhcpConfigurations":{ - "shape":"NewDhcpConfigurationList", - "locationName":"dhcpConfiguration" - } - } - }, - "CreateDhcpOptionsResult":{ - "type":"structure", - "members":{ - "DhcpOptions":{ - "shape":"DhcpOptions", - "locationName":"dhcpOptions" - } - } - }, - "CreateFlowLogsRequest":{ - "type":"structure", - "required":[ - "ResourceIds", - "ResourceType", - "TrafficType", - "LogGroupName", - "DeliverLogsPermissionArn" - ], - "members":{ - "ResourceIds":{ - "shape":"ValueStringList", - "locationName":"ResourceId" - }, - "ResourceType":{"shape":"FlowLogsResourceType"}, - "TrafficType":{"shape":"TrafficType"}, - "LogGroupName":{"shape":"String"}, - "DeliverLogsPermissionArn":{"shape":"String"}, - "ClientToken":{"shape":"String"} - } - }, - "CreateFlowLogsResult":{ - "type":"structure", - "members":{ - "FlowLogIds":{ - "shape":"ValueStringList", - "locationName":"flowLogIdSet" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - }, - "Unsuccessful":{ - "shape":"UnsuccessfulItemSet", - "locationName":"unsuccessful" - } - } - }, - "CreateImageRequest":{ - "type":"structure", - "required":[ - "InstanceId", - "Name" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "Name":{ - "shape":"String", - "locationName":"name" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "NoReboot":{ - "shape":"Boolean", - "locationName":"noReboot" - }, - "BlockDeviceMappings":{ - "shape":"BlockDeviceMappingRequestList", - "locationName":"blockDeviceMapping" - } - } - }, - "CreateImageResult":{ - "type":"structure", - "members":{ - "ImageId":{ - "shape":"String", - "locationName":"imageId" - } - } - }, - "CreateInstanceExportTaskRequest":{ - "type":"structure", - "required":["InstanceId"], - "members":{ - "Description":{ - "shape":"String", - "locationName":"description" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "TargetEnvironment":{ - "shape":"ExportEnvironment", - "locationName":"targetEnvironment" - }, - "ExportToS3Task":{ - "shape":"ExportToS3TaskSpecification", - "locationName":"exportToS3" - } - } - }, - "CreateInstanceExportTaskResult":{ - "type":"structure", - "members":{ - "ExportTask":{ - "shape":"ExportTask", - "locationName":"exportTask" - } - } - }, - "CreateInternetGatewayRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - } - } - }, - "CreateInternetGatewayResult":{ - "type":"structure", - "members":{ - "InternetGateway":{ - "shape":"InternetGateway", - "locationName":"internetGateway" - } - } - }, - "CreateKeyPairRequest":{ - "type":"structure", - "required":["KeyName"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "KeyName":{"shape":"String"} - } - }, - "CreateNatGatewayRequest":{ - "type":"structure", - "required":[ - "SubnetId", - "AllocationId" - ], - "members":{ - "SubnetId":{"shape":"String"}, - "AllocationId":{"shape":"String"}, - "ClientToken":{"shape":"String"} - } - }, - "CreateNatGatewayResult":{ - "type":"structure", - "members":{ - "NatGateway":{ - "shape":"NatGateway", - "locationName":"natGateway" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - } - } - }, - "CreateNetworkAclEntryRequest":{ - "type":"structure", - "required":[ - "NetworkAclId", - "RuleNumber", - "Protocol", - "RuleAction", - "Egress", - "CidrBlock" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkAclId":{ - "shape":"String", - "locationName":"networkAclId" - }, - "RuleNumber":{ - "shape":"Integer", - "locationName":"ruleNumber" - }, - "Protocol":{ - "shape":"String", - "locationName":"protocol" - }, - "RuleAction":{ - "shape":"RuleAction", - "locationName":"ruleAction" - }, - "Egress":{ - "shape":"Boolean", - "locationName":"egress" - }, - "CidrBlock":{ - "shape":"String", - "locationName":"cidrBlock" - }, - "IcmpTypeCode":{ - "shape":"IcmpTypeCode", - "locationName":"Icmp" - }, - "PortRange":{ - "shape":"PortRange", - "locationName":"portRange" - } - } - }, - "CreateNetworkAclRequest":{ - "type":"structure", - "required":["VpcId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - } - } - }, - "CreateNetworkAclResult":{ - "type":"structure", - "members":{ - "NetworkAcl":{ - "shape":"NetworkAcl", - "locationName":"networkAcl" - } - } - }, - "CreateNetworkInterfaceRequest":{ - "type":"structure", - "required":["SubnetId"], - "members":{ - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - }, - "Groups":{ - "shape":"SecurityGroupIdStringList", - "locationName":"SecurityGroupId" - }, - "PrivateIpAddresses":{ - "shape":"PrivateIpAddressSpecificationList", - "locationName":"privateIpAddresses" - }, - "SecondaryPrivateIpAddressCount":{ - "shape":"Integer", - "locationName":"secondaryPrivateIpAddressCount" - }, - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - } - } - }, - "CreateNetworkInterfaceResult":{ - "type":"structure", - "members":{ - "NetworkInterface":{ - "shape":"NetworkInterface", - "locationName":"networkInterface" - } - } - }, - "CreatePlacementGroupRequest":{ - "type":"structure", - "required":[ - "GroupName", - "Strategy" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "GroupName":{ - "shape":"String", - "locationName":"groupName" - }, - "Strategy":{ - "shape":"PlacementStrategy", - "locationName":"strategy" - } - } - }, - "CreateReservedInstancesListingRequest":{ - "type":"structure", - "required":[ - "ReservedInstancesId", - "InstanceCount", - "PriceSchedules", - "ClientToken" - ], - "members":{ - "ReservedInstancesId":{ - "shape":"String", - "locationName":"reservedInstancesId" - }, - "InstanceCount":{ - "shape":"Integer", - "locationName":"instanceCount" - }, - "PriceSchedules":{ - "shape":"PriceScheduleSpecificationList", - "locationName":"priceSchedules" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - } - } - }, - "CreateReservedInstancesListingResult":{ - "type":"structure", - "members":{ - "ReservedInstancesListings":{ - "shape":"ReservedInstancesListingList", - "locationName":"reservedInstancesListingsSet" - } - } - }, - "CreateRouteRequest":{ - "type":"structure", - "required":[ - "RouteTableId", - "DestinationCidrBlock" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "RouteTableId":{ - "shape":"String", - "locationName":"routeTableId" - }, - "DestinationCidrBlock":{ - "shape":"String", - "locationName":"destinationCidrBlock" - }, - "GatewayId":{ - "shape":"String", - "locationName":"gatewayId" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "VpcPeeringConnectionId":{ - "shape":"String", - "locationName":"vpcPeeringConnectionId" - }, - "NatGatewayId":{ - "shape":"String", - "locationName":"natGatewayId" - } - } - }, - "CreateRouteResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "CreateRouteTableRequest":{ - "type":"structure", - "required":["VpcId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - } - } - }, - "CreateRouteTableResult":{ - "type":"structure", - "members":{ - "RouteTable":{ - "shape":"RouteTable", - "locationName":"routeTable" - } - } - }, - "CreateSecurityGroupRequest":{ - "type":"structure", - "required":[ - "GroupName", - "Description" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "GroupName":{"shape":"String"}, - "Description":{ - "shape":"String", - "locationName":"GroupDescription" - }, - "VpcId":{"shape":"String"} - } - }, - "CreateSecurityGroupResult":{ - "type":"structure", - "members":{ - "GroupId":{ - "shape":"String", - "locationName":"groupId" - } - } - }, - "CreateSnapshotRequest":{ - "type":"structure", - "required":["VolumeId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VolumeId":{"shape":"String"}, - "Description":{"shape":"String"} - } - }, - "CreateSpotDatafeedSubscriptionRequest":{ - "type":"structure", - "required":["Bucket"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Bucket":{ - "shape":"String", - "locationName":"bucket" - }, - "Prefix":{ - "shape":"String", - "locationName":"prefix" - } - } - }, - "CreateSpotDatafeedSubscriptionResult":{ - "type":"structure", - "members":{ - "SpotDatafeedSubscription":{ - "shape":"SpotDatafeedSubscription", - "locationName":"spotDatafeedSubscription" - } - } - }, - "CreateSubnetRequest":{ - "type":"structure", - "required":[ - "VpcId", - "CidrBlock" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcId":{"shape":"String"}, - "CidrBlock":{"shape":"String"}, - "AvailabilityZone":{"shape":"String"} - } - }, - "CreateSubnetResult":{ - "type":"structure", - "members":{ - "Subnet":{ - "shape":"Subnet", - "locationName":"subnet" - } - } - }, - "CreateTagsRequest":{ - "type":"structure", - "required":[ - "Resources", - "Tags" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Resources":{ - "shape":"ResourceIdList", - "locationName":"ResourceId" - }, - "Tags":{ - "shape":"TagList", - "locationName":"Tag" - } - } - }, - "CreateVolumePermission":{ - "type":"structure", - "members":{ - "UserId":{ - "shape":"String", - "locationName":"userId" - }, - "Group":{ - "shape":"PermissionGroup", - "locationName":"group" - } - } - }, - "CreateVolumePermissionList":{ - "type":"list", - "member":{ - "shape":"CreateVolumePermission", - "locationName":"item" - } - }, - "CreateVolumePermissionModifications":{ - "type":"structure", - "members":{ - "Add":{"shape":"CreateVolumePermissionList"}, - "Remove":{"shape":"CreateVolumePermissionList"} - } - }, - "CreateVolumeRequest":{ - "type":"structure", - "required":["AvailabilityZone"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Size":{"shape":"Integer"}, - "SnapshotId":{"shape":"String"}, - "AvailabilityZone":{"shape":"String"}, - "VolumeType":{"shape":"VolumeType"}, - "Iops":{"shape":"Integer"}, - "Encrypted":{ - "shape":"Boolean", - "locationName":"encrypted" - }, - "KmsKeyId":{"shape":"String"} - } - }, - "CreateVpcEndpointRequest":{ - "type":"structure", - "required":[ - "VpcId", - "ServiceName" - ], - "members":{ - "DryRun":{"shape":"Boolean"}, - "VpcId":{"shape":"String"}, - "ServiceName":{"shape":"String"}, - "PolicyDocument":{"shape":"String"}, - "RouteTableIds":{ - "shape":"ValueStringList", - "locationName":"RouteTableId" - }, - "ClientToken":{"shape":"String"} - } - }, - "CreateVpcEndpointResult":{ - "type":"structure", - "members":{ - "VpcEndpoint":{ - "shape":"VpcEndpoint", - "locationName":"vpcEndpoint" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - } - } - }, - "CreateVpcPeeringConnectionRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "PeerVpcId":{ - "shape":"String", - "locationName":"peerVpcId" - }, - "PeerOwnerId":{ - "shape":"String", - "locationName":"peerOwnerId" - } - } - }, - "CreateVpcPeeringConnectionResult":{ - "type":"structure", - "members":{ - "VpcPeeringConnection":{ - "shape":"VpcPeeringConnection", - "locationName":"vpcPeeringConnection" - } - } - }, - "CreateVpcRequest":{ - "type":"structure", - "required":["CidrBlock"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "CidrBlock":{"shape":"String"}, - "InstanceTenancy":{ - "shape":"Tenancy", - "locationName":"instanceTenancy" - } - } - }, - "CreateVpcResult":{ - "type":"structure", - "members":{ - "Vpc":{ - "shape":"Vpc", - "locationName":"vpc" - } - } - }, - "CreateVpnConnectionRequest":{ - "type":"structure", - "required":[ - "Type", - "CustomerGatewayId", - "VpnGatewayId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Type":{"shape":"String"}, - "CustomerGatewayId":{"shape":"String"}, - "VpnGatewayId":{"shape":"String"}, - "Options":{ - "shape":"VpnConnectionOptionsSpecification", - "locationName":"options" - } - } - }, - "CreateVpnConnectionResult":{ - "type":"structure", - "members":{ - "VpnConnection":{ - "shape":"VpnConnection", - "locationName":"vpnConnection" - } - } - }, - "CreateVpnConnectionRouteRequest":{ - "type":"structure", - "required":[ - "VpnConnectionId", - "DestinationCidrBlock" - ], - "members":{ - "VpnConnectionId":{"shape":"String"}, - "DestinationCidrBlock":{"shape":"String"} - } - }, - "CreateVpnGatewayRequest":{ - "type":"structure", - "required":["Type"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Type":{"shape":"GatewayType"}, - "AvailabilityZone":{"shape":"String"} - } - }, - "CreateVpnGatewayResult":{ - "type":"structure", - "members":{ - "VpnGateway":{ - "shape":"VpnGateway", - "locationName":"vpnGateway" - } - } - }, - "CurrencyCodeValues":{ - "type":"string", - "enum":["USD"] - }, - "CustomerGateway":{ - "type":"structure", - "members":{ - "CustomerGatewayId":{ - "shape":"String", - "locationName":"customerGatewayId" - }, - "State":{ - "shape":"String", - "locationName":"state" - }, - "Type":{ - "shape":"String", - "locationName":"type" - }, - "IpAddress":{ - "shape":"String", - "locationName":"ipAddress" - }, - "BgpAsn":{ - "shape":"String", - "locationName":"bgpAsn" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - } - } - }, - "CustomerGatewayIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"CustomerGatewayId" - } - }, - "CustomerGatewayList":{ - "type":"list", - "member":{ - "shape":"CustomerGateway", - "locationName":"item" - } - }, - "DatafeedSubscriptionState":{ - "type":"string", - "enum":[ - "Active", - "Inactive" - ] - }, - "DateTime":{"type":"timestamp"}, - "DeleteCustomerGatewayRequest":{ - "type":"structure", - "required":["CustomerGatewayId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "CustomerGatewayId":{"shape":"String"} - } - }, - "DeleteDhcpOptionsRequest":{ - "type":"structure", - "required":["DhcpOptionsId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "DhcpOptionsId":{"shape":"String"} - } - }, - "DeleteFlowLogsRequest":{ - "type":"structure", - "required":["FlowLogIds"], - "members":{ - "FlowLogIds":{ - "shape":"ValueStringList", - "locationName":"FlowLogId" - } - } - }, - "DeleteFlowLogsResult":{ - "type":"structure", - "members":{ - "Unsuccessful":{ - "shape":"UnsuccessfulItemSet", - "locationName":"unsuccessful" - } - } - }, - "DeleteInternetGatewayRequest":{ - "type":"structure", - "required":["InternetGatewayId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InternetGatewayId":{ - "shape":"String", - "locationName":"internetGatewayId" - } - } - }, - "DeleteKeyPairRequest":{ - "type":"structure", - "required":["KeyName"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "KeyName":{"shape":"String"} - } - }, - "DeleteNatGatewayRequest":{ - "type":"structure", - "required":["NatGatewayId"], - "members":{ - "NatGatewayId":{"shape":"String"} - } - }, - "DeleteNatGatewayResult":{ - "type":"structure", - "members":{ - "NatGatewayId":{ - "shape":"String", - "locationName":"natGatewayId" - } - } - }, - "DeleteNetworkAclEntryRequest":{ - "type":"structure", - "required":[ - "NetworkAclId", - "RuleNumber", - "Egress" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkAclId":{ - "shape":"String", - "locationName":"networkAclId" - }, - "RuleNumber":{ - "shape":"Integer", - "locationName":"ruleNumber" - }, - "Egress":{ - "shape":"Boolean", - "locationName":"egress" - } - } - }, - "DeleteNetworkAclRequest":{ - "type":"structure", - "required":["NetworkAclId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkAclId":{ - "shape":"String", - "locationName":"networkAclId" - } - } - }, - "DeleteNetworkInterfaceRequest":{ - "type":"structure", - "required":["NetworkInterfaceId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - } - } - }, - "DeletePlacementGroupRequest":{ - "type":"structure", - "required":["GroupName"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "GroupName":{ - "shape":"String", - "locationName":"groupName" - } - } - }, - "DeleteRouteRequest":{ - "type":"structure", - "required":[ - "RouteTableId", - "DestinationCidrBlock" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "RouteTableId":{ - "shape":"String", - "locationName":"routeTableId" - }, - "DestinationCidrBlock":{ - "shape":"String", - "locationName":"destinationCidrBlock" - } - } - }, - "DeleteRouteTableRequest":{ - "type":"structure", - "required":["RouteTableId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "RouteTableId":{ - "shape":"String", - "locationName":"routeTableId" - } - } - }, - "DeleteSecurityGroupRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "GroupName":{"shape":"String"}, - "GroupId":{"shape":"String"} - } - }, - "DeleteSnapshotRequest":{ - "type":"structure", - "required":["SnapshotId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SnapshotId":{"shape":"String"} - } - }, - "DeleteSpotDatafeedSubscriptionRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - } - } - }, - "DeleteSubnetRequest":{ - "type":"structure", - "required":["SubnetId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SubnetId":{"shape":"String"} - } - }, - "DeleteTagsRequest":{ - "type":"structure", - "required":["Resources"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Resources":{ - "shape":"ResourceIdList", - "locationName":"resourceId" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tag" - } - } - }, - "DeleteVolumeRequest":{ - "type":"structure", - "required":["VolumeId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VolumeId":{"shape":"String"} - } - }, - "DeleteVpcEndpointsRequest":{ - "type":"structure", - "required":["VpcEndpointIds"], - "members":{ - "DryRun":{"shape":"Boolean"}, - "VpcEndpointIds":{ - "shape":"ValueStringList", - "locationName":"VpcEndpointId" - } - } - }, - "DeleteVpcEndpointsResult":{ - "type":"structure", - "members":{ - "Unsuccessful":{ - "shape":"UnsuccessfulItemSet", - "locationName":"unsuccessful" - } - } - }, - "DeleteVpcPeeringConnectionRequest":{ - "type":"structure", - "required":["VpcPeeringConnectionId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcPeeringConnectionId":{ - "shape":"String", - "locationName":"vpcPeeringConnectionId" - } - } - }, - "DeleteVpcPeeringConnectionResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "DeleteVpcRequest":{ - "type":"structure", - "required":["VpcId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcId":{"shape":"String"} - } - }, - "DeleteVpnConnectionRequest":{ - "type":"structure", - "required":["VpnConnectionId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpnConnectionId":{"shape":"String"} - } - }, - "DeleteVpnConnectionRouteRequest":{ - "type":"structure", - "required":[ - "VpnConnectionId", - "DestinationCidrBlock" - ], - "members":{ - "VpnConnectionId":{"shape":"String"}, - "DestinationCidrBlock":{"shape":"String"} - } - }, - "DeleteVpnGatewayRequest":{ - "type":"structure", - "required":["VpnGatewayId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpnGatewayId":{"shape":"String"} - } - }, - "DeregisterImageRequest":{ - "type":"structure", - "required":["ImageId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ImageId":{"shape":"String"} - } - }, - "DescribeAccountAttributesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "AttributeNames":{ - "shape":"AccountAttributeNameStringList", - "locationName":"attributeName" - } - } - }, - "DescribeAccountAttributesResult":{ - "type":"structure", - "members":{ - "AccountAttributes":{ - "shape":"AccountAttributeList", - "locationName":"accountAttributeSet" - } - } - }, - "DescribeAddressesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "PublicIps":{ - "shape":"PublicIpStringList", - "locationName":"PublicIp" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "AllocationIds":{ - "shape":"AllocationIdList", - "locationName":"AllocationId" - } - } - }, - "DescribeAddressesResult":{ - "type":"structure", - "members":{ - "Addresses":{ - "shape":"AddressList", - "locationName":"addressesSet" - } - } - }, - "DescribeAvailabilityZonesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ZoneNames":{ - "shape":"ZoneNameStringList", - "locationName":"ZoneName" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeAvailabilityZonesResult":{ - "type":"structure", - "members":{ - "AvailabilityZones":{ - "shape":"AvailabilityZoneList", - "locationName":"availabilityZoneInfo" - } - } - }, - "DescribeBundleTasksRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "BundleIds":{ - "shape":"BundleIdStringList", - "locationName":"BundleId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeBundleTasksResult":{ - "type":"structure", - "members":{ - "BundleTasks":{ - "shape":"BundleTaskList", - "locationName":"bundleInstanceTasksSet" - } - } - }, - "DescribeClassicLinkInstancesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceIds":{ - "shape":"InstanceIdStringList", - "locationName":"InstanceId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - } - } - }, - "DescribeClassicLinkInstancesResult":{ - "type":"structure", - "members":{ - "Instances":{ - "shape":"ClassicLinkInstanceList", - "locationName":"instancesSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeConversionTaskList":{ - "type":"list", - "member":{ - "shape":"ConversionTask", - "locationName":"item" - } - }, - "DescribeConversionTasksRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"filter" - }, - "ConversionTaskIds":{ - "shape":"ConversionIdStringList", - "locationName":"conversionTaskId" - } - } - }, - "DescribeConversionTasksResult":{ - "type":"structure", - "members":{ - "ConversionTasks":{ - "shape":"DescribeConversionTaskList", - "locationName":"conversionTasks" - } - } - }, - "DescribeCustomerGatewaysRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "CustomerGatewayIds":{ - "shape":"CustomerGatewayIdStringList", - "locationName":"CustomerGatewayId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeCustomerGatewaysResult":{ - "type":"structure", - "members":{ - "CustomerGateways":{ - "shape":"CustomerGatewayList", - "locationName":"customerGatewaySet" - } - } - }, - "DescribeDhcpOptionsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "DhcpOptionsIds":{ - "shape":"DhcpOptionsIdStringList", - "locationName":"DhcpOptionsId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeDhcpOptionsResult":{ - "type":"structure", - "members":{ - "DhcpOptions":{ - "shape":"DhcpOptionsList", - "locationName":"dhcpOptionsSet" - } - } - }, - "DescribeExportTasksRequest":{ - "type":"structure", - "members":{ - "ExportTaskIds":{ - "shape":"ExportTaskIdStringList", - "locationName":"exportTaskId" - } - } - }, - "DescribeExportTasksResult":{ - "type":"structure", - "members":{ - "ExportTasks":{ - "shape":"ExportTaskList", - "locationName":"exportTaskSet" - } - } - }, - "DescribeFlowLogsRequest":{ - "type":"structure", - "members":{ - "FlowLogIds":{ - "shape":"ValueStringList", - "locationName":"FlowLogId" - }, - "Filter":{"shape":"FilterList"}, - "NextToken":{"shape":"String"}, - "MaxResults":{"shape":"Integer"} - } - }, - "DescribeFlowLogsResult":{ - "type":"structure", - "members":{ - "FlowLogs":{ - "shape":"FlowLogSet", - "locationName":"flowLogSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeHostsRequest":{ - "type":"structure", - "members":{ - "HostIds":{ - "shape":"RequestHostIdList", - "locationName":"hostId" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - }, - "Filter":{ - "shape":"FilterList", - "locationName":"filter" - } - } - }, - "DescribeHostsResult":{ - "type":"structure", - "members":{ - "Hosts":{ - "shape":"HostList", - "locationName":"hostSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeIdFormatRequest":{ - "type":"structure", - "members":{ - "Resource":{"shape":"String"} - } - }, - "DescribeIdFormatResult":{ - "type":"structure", - "members":{ - "Statuses":{ - "shape":"IdFormatList", - "locationName":"statusSet" - } - } - }, - "DescribeImageAttributeRequest":{ - "type":"structure", - "required":[ - "ImageId", - "Attribute" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ImageId":{"shape":"String"}, - "Attribute":{"shape":"ImageAttributeName"} - } - }, - "DescribeImagesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ImageIds":{ - "shape":"ImageIdStringList", - "locationName":"ImageId" - }, - "Owners":{ - "shape":"OwnerStringList", - "locationName":"Owner" - }, - "ExecutableUsers":{ - "shape":"ExecutableByStringList", - "locationName":"ExecutableBy" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeImagesResult":{ - "type":"structure", - "members":{ - "Images":{ - "shape":"ImageList", - "locationName":"imagesSet" - } - } - }, - "DescribeImportImageTasksRequest":{ - "type":"structure", - "members":{ - "DryRun":{"shape":"Boolean"}, - "ImportTaskIds":{ - "shape":"ImportTaskIdList", - "locationName":"ImportTaskId" - }, - "NextToken":{"shape":"String"}, - "MaxResults":{"shape":"Integer"}, - "Filters":{"shape":"FilterList"} - } - }, - "DescribeImportImageTasksResult":{ - "type":"structure", - "members":{ - "ImportImageTasks":{ - "shape":"ImportImageTaskList", - "locationName":"importImageTaskSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeImportSnapshotTasksRequest":{ - "type":"structure", - "members":{ - "DryRun":{"shape":"Boolean"}, - "ImportTaskIds":{ - "shape":"ImportTaskIdList", - "locationName":"ImportTaskId" - }, - "NextToken":{"shape":"String"}, - "MaxResults":{"shape":"Integer"}, - "Filters":{"shape":"FilterList"} - } - }, - "DescribeImportSnapshotTasksResult":{ - "type":"structure", - "members":{ - "ImportSnapshotTasks":{ - "shape":"ImportSnapshotTaskList", - "locationName":"importSnapshotTaskSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeInstanceAttributeRequest":{ - "type":"structure", - "required":[ - "InstanceId", - "Attribute" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "Attribute":{ - "shape":"InstanceAttributeName", - "locationName":"attribute" - } - } - }, - "DescribeInstanceStatusRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceIds":{ - "shape":"InstanceIdStringList", - "locationName":"InstanceId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "NextToken":{"shape":"String"}, - "MaxResults":{"shape":"Integer"}, - "IncludeAllInstances":{ - "shape":"Boolean", - "locationName":"includeAllInstances" - } - } - }, - "DescribeInstanceStatusResult":{ - "type":"structure", - "members":{ - "InstanceStatuses":{ - "shape":"InstanceStatusList", - "locationName":"instanceStatusSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeInstancesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceIds":{ - "shape":"InstanceIdStringList", - "locationName":"InstanceId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - } - } - }, - "DescribeInstancesResult":{ - "type":"structure", - "members":{ - "Reservations":{ - "shape":"ReservationList", - "locationName":"reservationSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeInternetGatewaysRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InternetGatewayIds":{ - "shape":"ValueStringList", - "locationName":"internetGatewayId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeInternetGatewaysResult":{ - "type":"structure", - "members":{ - "InternetGateways":{ - "shape":"InternetGatewayList", - "locationName":"internetGatewaySet" - } - } - }, - "DescribeKeyPairsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "KeyNames":{ - "shape":"KeyNameStringList", - "locationName":"KeyName" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeKeyPairsResult":{ - "type":"structure", - "members":{ - "KeyPairs":{ - "shape":"KeyPairList", - "locationName":"keySet" - } - } - }, - "DescribeMovingAddressesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "PublicIps":{ - "shape":"ValueStringList", - "locationName":"publicIp" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"filter" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - } - } - }, - "DescribeMovingAddressesResult":{ - "type":"structure", - "members":{ - "MovingAddressStatuses":{ - "shape":"MovingAddressStatusSet", - "locationName":"movingAddressStatusSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeNatGatewaysRequest":{ - "type":"structure", - "members":{ - "NatGatewayIds":{ - "shape":"ValueStringList", - "locationName":"NatGatewayId" - }, - "Filter":{"shape":"FilterList"}, - "MaxResults":{"shape":"Integer"}, - "NextToken":{"shape":"String"} - } - }, - "DescribeNatGatewaysResult":{ - "type":"structure", - "members":{ - "NatGateways":{ - "shape":"NatGatewayList", - "locationName":"natGatewaySet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeNetworkAclsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkAclIds":{ - "shape":"ValueStringList", - "locationName":"NetworkAclId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeNetworkAclsResult":{ - "type":"structure", - "members":{ - "NetworkAcls":{ - "shape":"NetworkAclList", - "locationName":"networkAclSet" - } - } - }, - "DescribeNetworkInterfaceAttributeRequest":{ - "type":"structure", - "required":["NetworkInterfaceId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "Attribute":{ - "shape":"NetworkInterfaceAttribute", - "locationName":"attribute" - } - } - }, - "DescribeNetworkInterfaceAttributeResult":{ - "type":"structure", - "members":{ - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "Description":{ - "shape":"AttributeValue", - "locationName":"description" - }, - "SourceDestCheck":{ - "shape":"AttributeBooleanValue", - "locationName":"sourceDestCheck" - }, - "Groups":{ - "shape":"GroupIdentifierList", - "locationName":"groupSet" - }, - "Attachment":{ - "shape":"NetworkInterfaceAttachment", - "locationName":"attachment" - } - } - }, - "DescribeNetworkInterfacesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkInterfaceIds":{ - "shape":"NetworkInterfaceIdList", - "locationName":"NetworkInterfaceId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"filter" - } - } - }, - "DescribeNetworkInterfacesResult":{ - "type":"structure", - "members":{ - "NetworkInterfaces":{ - "shape":"NetworkInterfaceList", - "locationName":"networkInterfaceSet" - } - } - }, - "DescribePlacementGroupsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "GroupNames":{ - "shape":"PlacementGroupStringList", - "locationName":"groupName" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribePlacementGroupsResult":{ - "type":"structure", - "members":{ - "PlacementGroups":{ - "shape":"PlacementGroupList", - "locationName":"placementGroupSet" - } - } - }, - "DescribePrefixListsRequest":{ - "type":"structure", - "members":{ - "DryRun":{"shape":"Boolean"}, - "PrefixListIds":{ - "shape":"ValueStringList", - "locationName":"PrefixListId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "MaxResults":{"shape":"Integer"}, - "NextToken":{"shape":"String"} - } - }, - "DescribePrefixListsResult":{ - "type":"structure", - "members":{ - "PrefixLists":{ - "shape":"PrefixListSet", - "locationName":"prefixListSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeRegionsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "RegionNames":{ - "shape":"RegionNameStringList", - "locationName":"RegionName" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeRegionsResult":{ - "type":"structure", - "members":{ - "Regions":{ - "shape":"RegionList", - "locationName":"regionInfo" - } - } - }, - "DescribeReservedInstancesListingsRequest":{ - "type":"structure", - "members":{ - "ReservedInstancesId":{ - "shape":"String", - "locationName":"reservedInstancesId" - }, - "ReservedInstancesListingId":{ - "shape":"String", - "locationName":"reservedInstancesListingId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"filters" - } - } - }, - "DescribeReservedInstancesListingsResult":{ - "type":"structure", - "members":{ - "ReservedInstancesListings":{ - "shape":"ReservedInstancesListingList", - "locationName":"reservedInstancesListingsSet" - } - } - }, - "DescribeReservedInstancesModificationsRequest":{ - "type":"structure", - "members":{ - "ReservedInstancesModificationIds":{ - "shape":"ReservedInstancesModificationIdStringList", - "locationName":"ReservedInstancesModificationId" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeReservedInstancesModificationsResult":{ - "type":"structure", - "members":{ - "ReservedInstancesModifications":{ - "shape":"ReservedInstancesModificationList", - "locationName":"reservedInstancesModificationsSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeReservedInstancesOfferingsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ReservedInstancesOfferingIds":{ - "shape":"ReservedInstancesOfferingIdStringList", - "locationName":"ReservedInstancesOfferingId" - }, - "InstanceType":{"shape":"InstanceType"}, - "AvailabilityZone":{"shape":"String"}, - "ProductDescription":{"shape":"RIProductDescription"}, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "InstanceTenancy":{ - "shape":"Tenancy", - "locationName":"instanceTenancy" - }, - "OfferingType":{ - "shape":"OfferingTypeValues", - "locationName":"offeringType" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - }, - "IncludeMarketplace":{"shape":"Boolean"}, - "MinDuration":{"shape":"Long"}, - "MaxDuration":{"shape":"Long"}, - "MaxInstanceCount":{"shape":"Integer"} - } - }, - "DescribeReservedInstancesOfferingsResult":{ - "type":"structure", - "members":{ - "ReservedInstancesOfferings":{ - "shape":"ReservedInstancesOfferingList", - "locationName":"reservedInstancesOfferingsSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeReservedInstancesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ReservedInstancesIds":{ - "shape":"ReservedInstancesIdStringList", - "locationName":"ReservedInstancesId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "OfferingType":{ - "shape":"OfferingTypeValues", - "locationName":"offeringType" - } - } - }, - "DescribeReservedInstancesResult":{ - "type":"structure", - "members":{ - "ReservedInstances":{ - "shape":"ReservedInstancesList", - "locationName":"reservedInstancesSet" - } - } - }, - "DescribeRouteTablesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "RouteTableIds":{ - "shape":"ValueStringList", - "locationName":"RouteTableId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeRouteTablesResult":{ - "type":"structure", - "members":{ - "RouteTables":{ - "shape":"RouteTableList", - "locationName":"routeTableSet" - } - } - }, - "DescribeScheduledInstanceAvailabilityRequest":{ - "type":"structure", - "required":[ - "Recurrence", - "FirstSlotStartTimeRange" - ], - "members":{ - "DryRun":{"shape":"Boolean"}, - "Recurrence":{"shape":"ScheduledInstanceRecurrenceRequest"}, - "FirstSlotStartTimeRange":{"shape":"SlotDateTimeRangeRequest"}, - "MinSlotDurationInHours":{"shape":"Integer"}, - "MaxSlotDurationInHours":{"shape":"Integer"}, - "NextToken":{"shape":"String"}, - "MaxResults":{"shape":"Integer"}, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeScheduledInstanceAvailabilityResult":{ - "type":"structure", - "members":{ - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "ScheduledInstanceAvailabilitySet":{ - "shape":"ScheduledInstanceAvailabilitySet", - "locationName":"scheduledInstanceAvailabilitySet" - } - } - }, - "DescribeScheduledInstancesRequest":{ - "type":"structure", - "members":{ - "DryRun":{"shape":"Boolean"}, - "ScheduledInstanceIds":{ - "shape":"ScheduledInstanceIdRequestSet", - "locationName":"ScheduledInstanceId" - }, - "SlotStartTimeRange":{"shape":"SlotStartTimeRangeRequest"}, - "NextToken":{"shape":"String"}, - "MaxResults":{"shape":"Integer"}, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeScheduledInstancesResult":{ - "type":"structure", - "members":{ - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "ScheduledInstanceSet":{ - "shape":"ScheduledInstanceSet", - "locationName":"scheduledInstanceSet" - } - } - }, - "DescribeSecurityGroupReferencesRequest":{ - "type":"structure", - "required":["GroupId"], - "members":{ - "DryRun":{"shape":"Boolean"}, - "GroupId":{"shape":"GroupIds"} - } - }, - "DescribeSecurityGroupReferencesResult":{ - "type":"structure", - "members":{ - "SecurityGroupReferenceSet":{ - "shape":"SecurityGroupReferences", - "locationName":"securityGroupReferenceSet" - } - } - }, - "DescribeSecurityGroupsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "GroupNames":{ - "shape":"GroupNameStringList", - "locationName":"GroupName" - }, - "GroupIds":{ - "shape":"GroupIdStringList", - "locationName":"GroupId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeSecurityGroupsResult":{ - "type":"structure", - "members":{ - "SecurityGroups":{ - "shape":"SecurityGroupList", - "locationName":"securityGroupInfo" - } - } - }, - "DescribeSnapshotAttributeRequest":{ - "type":"structure", - "required":[ - "SnapshotId", - "Attribute" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SnapshotId":{"shape":"String"}, - "Attribute":{"shape":"SnapshotAttributeName"} - } - }, - "DescribeSnapshotAttributeResult":{ - "type":"structure", - "members":{ - "SnapshotId":{ - "shape":"String", - "locationName":"snapshotId" - }, - "CreateVolumePermissions":{ - "shape":"CreateVolumePermissionList", - "locationName":"createVolumePermission" - }, - "ProductCodes":{ - "shape":"ProductCodeList", - "locationName":"productCodes" - } - } - }, - "DescribeSnapshotsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SnapshotIds":{ - "shape":"SnapshotIdStringList", - "locationName":"SnapshotId" - }, - "OwnerIds":{ - "shape":"OwnerStringList", - "locationName":"Owner" - }, - "RestorableByUserIds":{ - "shape":"RestorableByStringList", - "locationName":"RestorableBy" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "NextToken":{"shape":"String"}, - "MaxResults":{"shape":"Integer"} - } - }, - "DescribeSnapshotsResult":{ - "type":"structure", - "members":{ - "Snapshots":{ - "shape":"SnapshotList", - "locationName":"snapshotSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeSpotDatafeedSubscriptionRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - } - } - }, - "DescribeSpotDatafeedSubscriptionResult":{ - "type":"structure", - "members":{ - "SpotDatafeedSubscription":{ - "shape":"SpotDatafeedSubscription", - "locationName":"spotDatafeedSubscription" - } - } - }, - "DescribeSpotFleetInstancesRequest":{ - "type":"structure", - "required":["SpotFleetRequestId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SpotFleetRequestId":{ - "shape":"String", - "locationName":"spotFleetRequestId" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - } - } - }, - "DescribeSpotFleetInstancesResponse":{ - "type":"structure", - "required":[ - "SpotFleetRequestId", - "ActiveInstances" - ], - "members":{ - "SpotFleetRequestId":{ - "shape":"String", - "locationName":"spotFleetRequestId" - }, - "ActiveInstances":{ - "shape":"ActiveInstanceSet", - "locationName":"activeInstanceSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeSpotFleetRequestHistoryRequest":{ - "type":"structure", - "required":[ - "SpotFleetRequestId", - "StartTime" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SpotFleetRequestId":{ - "shape":"String", - "locationName":"spotFleetRequestId" - }, - "EventType":{ - "shape":"EventType", - "locationName":"eventType" - }, - "StartTime":{ - "shape":"DateTime", - "locationName":"startTime" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - } - } - }, - "DescribeSpotFleetRequestHistoryResponse":{ - "type":"structure", - "required":[ - "SpotFleetRequestId", - "StartTime", - "LastEvaluatedTime", - "HistoryRecords" - ], - "members":{ - "SpotFleetRequestId":{ - "shape":"String", - "locationName":"spotFleetRequestId" - }, - "StartTime":{ - "shape":"DateTime", - "locationName":"startTime" - }, - "LastEvaluatedTime":{ - "shape":"DateTime", - "locationName":"lastEvaluatedTime" - }, - "HistoryRecords":{ - "shape":"HistoryRecords", - "locationName":"historyRecordSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeSpotFleetRequestsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SpotFleetRequestIds":{ - "shape":"ValueStringList", - "locationName":"spotFleetRequestId" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - } - } - }, - "DescribeSpotFleetRequestsResponse":{ - "type":"structure", - "required":["SpotFleetRequestConfigs"], - "members":{ - "SpotFleetRequestConfigs":{ - "shape":"SpotFleetRequestConfigSet", - "locationName":"spotFleetRequestConfigSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeSpotInstanceRequestsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SpotInstanceRequestIds":{ - "shape":"SpotInstanceRequestIdList", - "locationName":"SpotInstanceRequestId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeSpotInstanceRequestsResult":{ - "type":"structure", - "members":{ - "SpotInstanceRequests":{ - "shape":"SpotInstanceRequestList", - "locationName":"spotInstanceRequestSet" - } - } - }, - "DescribeSpotPriceHistoryRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "StartTime":{ - "shape":"DateTime", - "locationName":"startTime" - }, - "EndTime":{ - "shape":"DateTime", - "locationName":"endTime" - }, - "InstanceTypes":{ - "shape":"InstanceTypeList", - "locationName":"InstanceType" - }, - "ProductDescriptions":{ - "shape":"ProductDescriptionList", - "locationName":"ProductDescription" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeSpotPriceHistoryResult":{ - "type":"structure", - "members":{ - "SpotPriceHistory":{ - "shape":"SpotPriceHistoryList", - "locationName":"spotPriceHistorySet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeStaleSecurityGroupsRequest":{ - "type":"structure", - "required":["VpcId"], - "members":{ - "DryRun":{"shape":"Boolean"}, - "VpcId":{"shape":"String"}, - "MaxResults":{"shape":"MaxResults"}, - "NextToken":{"shape":"NextToken"} - } - }, - "DescribeStaleSecurityGroupsResult":{ - "type":"structure", - "members":{ - "StaleSecurityGroupSet":{ - "shape":"StaleSecurityGroupSet", - "locationName":"staleSecurityGroupSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeSubnetsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SubnetIds":{ - "shape":"SubnetIdStringList", - "locationName":"SubnetId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeSubnetsResult":{ - "type":"structure", - "members":{ - "Subnets":{ - "shape":"SubnetList", - "locationName":"subnetSet" - } - } - }, - "DescribeTagsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeTagsResult":{ - "type":"structure", - "members":{ - "Tags":{ - "shape":"TagDescriptionList", - "locationName":"tagSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeVolumeAttributeRequest":{ - "type":"structure", - "required":["VolumeId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VolumeId":{"shape":"String"}, - "Attribute":{"shape":"VolumeAttributeName"} - } - }, - "DescribeVolumeAttributeResult":{ - "type":"structure", - "members":{ - "VolumeId":{ - "shape":"String", - "locationName":"volumeId" - }, - "AutoEnableIO":{ - "shape":"AttributeBooleanValue", - "locationName":"autoEnableIO" - }, - "ProductCodes":{ - "shape":"ProductCodeList", - "locationName":"productCodes" - } - } - }, - "DescribeVolumeStatusRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VolumeIds":{ - "shape":"VolumeIdStringList", - "locationName":"VolumeId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "NextToken":{"shape":"String"}, - "MaxResults":{"shape":"Integer"} - } - }, - "DescribeVolumeStatusResult":{ - "type":"structure", - "members":{ - "VolumeStatuses":{ - "shape":"VolumeStatusList", - "locationName":"volumeStatusSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeVolumesRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VolumeIds":{ - "shape":"VolumeIdStringList", - "locationName":"VolumeId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - }, - "MaxResults":{ - "shape":"Integer", - "locationName":"maxResults" - } - } - }, - "DescribeVolumesResult":{ - "type":"structure", - "members":{ - "Volumes":{ - "shape":"VolumeList", - "locationName":"volumeSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeVpcAttributeRequest":{ - "type":"structure", - "required":[ - "VpcId", - "Attribute" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcId":{"shape":"String"}, - "Attribute":{"shape":"VpcAttributeName"} - } - }, - "DescribeVpcAttributeResult":{ - "type":"structure", - "members":{ - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "EnableDnsSupport":{ - "shape":"AttributeBooleanValue", - "locationName":"enableDnsSupport" - }, - "EnableDnsHostnames":{ - "shape":"AttributeBooleanValue", - "locationName":"enableDnsHostnames" - } - } - }, - "DescribeVpcClassicLinkDnsSupportRequest":{ - "type":"structure", - "members":{ - "VpcIds":{"shape":"VpcClassicLinkIdList"}, - "MaxResults":{ - "shape":"MaxResults", - "locationName":"maxResults" - }, - "NextToken":{ - "shape":"NextToken", - "locationName":"nextToken" - } - } - }, - "DescribeVpcClassicLinkDnsSupportResult":{ - "type":"structure", - "members":{ - "Vpcs":{ - "shape":"ClassicLinkDnsSupportList", - "locationName":"vpcs" - }, - "NextToken":{ - "shape":"NextToken", - "locationName":"nextToken" - } - } - }, - "DescribeVpcClassicLinkRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcIds":{ - "shape":"VpcClassicLinkIdList", - "locationName":"VpcId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeVpcClassicLinkResult":{ - "type":"structure", - "members":{ - "Vpcs":{ - "shape":"VpcClassicLinkList", - "locationName":"vpcSet" - } - } - }, - "DescribeVpcEndpointServicesRequest":{ - "type":"structure", - "members":{ - "DryRun":{"shape":"Boolean"}, - "MaxResults":{"shape":"Integer"}, - "NextToken":{"shape":"String"} - } - }, - "DescribeVpcEndpointServicesResult":{ - "type":"structure", - "members":{ - "ServiceNames":{ - "shape":"ValueStringList", - "locationName":"serviceNameSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeVpcEndpointsRequest":{ - "type":"structure", - "members":{ - "DryRun":{"shape":"Boolean"}, - "VpcEndpointIds":{ - "shape":"ValueStringList", - "locationName":"VpcEndpointId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - }, - "MaxResults":{"shape":"Integer"}, - "NextToken":{"shape":"String"} - } - }, - "DescribeVpcEndpointsResult":{ - "type":"structure", - "members":{ - "VpcEndpoints":{ - "shape":"VpcEndpointSet", - "locationName":"vpcEndpointSet" - }, - "NextToken":{ - "shape":"String", - "locationName":"nextToken" - } - } - }, - "DescribeVpcPeeringConnectionsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcPeeringConnectionIds":{ - "shape":"ValueStringList", - "locationName":"VpcPeeringConnectionId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeVpcPeeringConnectionsResult":{ - "type":"structure", - "members":{ - "VpcPeeringConnections":{ - "shape":"VpcPeeringConnectionList", - "locationName":"vpcPeeringConnectionSet" - } - } - }, - "DescribeVpcsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcIds":{ - "shape":"VpcIdStringList", - "locationName":"VpcId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeVpcsResult":{ - "type":"structure", - "members":{ - "Vpcs":{ - "shape":"VpcList", - "locationName":"vpcSet" - } - } - }, - "DescribeVpnConnectionsRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpnConnectionIds":{ - "shape":"VpnConnectionIdStringList", - "locationName":"VpnConnectionId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeVpnConnectionsResult":{ - "type":"structure", - "members":{ - "VpnConnections":{ - "shape":"VpnConnectionList", - "locationName":"vpnConnectionSet" - } - } - }, - "DescribeVpnGatewaysRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpnGatewayIds":{ - "shape":"VpnGatewayIdStringList", - "locationName":"VpnGatewayId" - }, - "Filters":{ - "shape":"FilterList", - "locationName":"Filter" - } - } - }, - "DescribeVpnGatewaysResult":{ - "type":"structure", - "members":{ - "VpnGateways":{ - "shape":"VpnGatewayList", - "locationName":"vpnGatewaySet" - } - } - }, - "DetachClassicLinkVpcRequest":{ - "type":"structure", - "required":[ - "InstanceId", - "VpcId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - } - } - }, - "DetachClassicLinkVpcResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "DetachInternetGatewayRequest":{ - "type":"structure", - "required":[ - "InternetGatewayId", - "VpcId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InternetGatewayId":{ - "shape":"String", - "locationName":"internetGatewayId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - } - } - }, - "DetachNetworkInterfaceRequest":{ - "type":"structure", - "required":["AttachmentId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "AttachmentId":{ - "shape":"String", - "locationName":"attachmentId" - }, - "Force":{ - "shape":"Boolean", - "locationName":"force" - } - } - }, - "DetachVolumeRequest":{ - "type":"structure", - "required":["VolumeId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VolumeId":{"shape":"String"}, - "InstanceId":{"shape":"String"}, - "Device":{"shape":"String"}, - "Force":{"shape":"Boolean"} - } - }, - "DetachVpnGatewayRequest":{ - "type":"structure", - "required":[ - "VpnGatewayId", - "VpcId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpnGatewayId":{"shape":"String"}, - "VpcId":{"shape":"String"} - } - }, - "DeviceType":{ - "type":"string", - "enum":[ - "ebs", - "instance-store" - ] - }, - "DhcpConfiguration":{ - "type":"structure", - "members":{ - "Key":{ - "shape":"String", - "locationName":"key" - }, - "Values":{ - "shape":"DhcpConfigurationValueList", - "locationName":"valueSet" - } - } - }, - "DhcpConfigurationList":{ - "type":"list", - "member":{ - "shape":"DhcpConfiguration", - "locationName":"item" - } - }, - "DhcpConfigurationValueList":{ - "type":"list", - "member":{ - "shape":"AttributeValue", - "locationName":"item" - } - }, - "DhcpOptions":{ - "type":"structure", - "members":{ - "DhcpOptionsId":{ - "shape":"String", - "locationName":"dhcpOptionsId" - }, - "DhcpConfigurations":{ - "shape":"DhcpConfigurationList", - "locationName":"dhcpConfigurationSet" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - } - } - }, - "DhcpOptionsIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"DhcpOptionsId" - } - }, - "DhcpOptionsList":{ - "type":"list", - "member":{ - "shape":"DhcpOptions", - "locationName":"item" - } - }, - "DisableVgwRoutePropagationRequest":{ - "type":"structure", - "required":[ - "RouteTableId", - "GatewayId" - ], - "members":{ - "RouteTableId":{"shape":"String"}, - "GatewayId":{"shape":"String"} - } - }, - "DisableVpcClassicLinkDnsSupportRequest":{ - "type":"structure", - "members":{ - "VpcId":{"shape":"String"} - } - }, - "DisableVpcClassicLinkDnsSupportResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "DisableVpcClassicLinkRequest":{ - "type":"structure", - "required":["VpcId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - } - } - }, - "DisableVpcClassicLinkResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "DisassociateAddressRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "PublicIp":{"shape":"String"}, - "AssociationId":{"shape":"String"} - } - }, - "DisassociateRouteTableRequest":{ - "type":"structure", - "required":["AssociationId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "AssociationId":{ - "shape":"String", - "locationName":"associationId" - } - } - }, - "DiskImage":{ - "type":"structure", - "members":{ - "Image":{"shape":"DiskImageDetail"}, - "Description":{"shape":"String"}, - "Volume":{"shape":"VolumeDetail"} - } - }, - "DiskImageDescription":{ - "type":"structure", - "required":[ - "Format", - "Size", - "ImportManifestUrl" - ], - "members":{ - "Format":{ - "shape":"DiskImageFormat", - "locationName":"format" - }, - "Size":{ - "shape":"Long", - "locationName":"size" - }, - "ImportManifestUrl":{ - "shape":"String", - "locationName":"importManifestUrl" - }, - "Checksum":{ - "shape":"String", - "locationName":"checksum" - } - } - }, - "DiskImageDetail":{ - "type":"structure", - "required":[ - "Format", - "Bytes", - "ImportManifestUrl" - ], - "members":{ - "Format":{ - "shape":"DiskImageFormat", - "locationName":"format" - }, - "Bytes":{ - "shape":"Long", - "locationName":"bytes" - }, - "ImportManifestUrl":{ - "shape":"String", - "locationName":"importManifestUrl" - } - } - }, - "DiskImageFormat":{ - "type":"string", - "enum":[ - "VMDK", - "RAW", - "VHD" - ] - }, - "DiskImageList":{ - "type":"list", - "member":{"shape":"DiskImage"} - }, - "DiskImageVolumeDescription":{ - "type":"structure", - "required":["Id"], - "members":{ - "Size":{ - "shape":"Long", - "locationName":"size" - }, - "Id":{ - "shape":"String", - "locationName":"id" - } - } - }, - "DomainType":{ - "type":"string", - "enum":[ - "vpc", - "standard" - ] - }, - "Double":{"type":"double"}, - "EbsBlockDevice":{ - "type":"structure", - "members":{ - "SnapshotId":{ - "shape":"String", - "locationName":"snapshotId" - }, - "VolumeSize":{ - "shape":"Integer", - "locationName":"volumeSize" - }, - "DeleteOnTermination":{ - "shape":"Boolean", - "locationName":"deleteOnTermination" - }, - "VolumeType":{ - "shape":"VolumeType", - "locationName":"volumeType" - }, - "Iops":{ - "shape":"Integer", - "locationName":"iops" - }, - "Encrypted":{ - "shape":"Boolean", - "locationName":"encrypted" - } - } - }, - "EbsInstanceBlockDevice":{ - "type":"structure", - "members":{ - "VolumeId":{ - "shape":"String", - "locationName":"volumeId" - }, - "Status":{ - "shape":"AttachmentStatus", - "locationName":"status" - }, - "AttachTime":{ - "shape":"DateTime", - "locationName":"attachTime" - }, - "DeleteOnTermination":{ - "shape":"Boolean", - "locationName":"deleteOnTermination" - } - } - }, - "EbsInstanceBlockDeviceSpecification":{ - "type":"structure", - "members":{ - "VolumeId":{ - "shape":"String", - "locationName":"volumeId" - }, - "DeleteOnTermination":{ - "shape":"Boolean", - "locationName":"deleteOnTermination" - } - } - }, - "EnableVgwRoutePropagationRequest":{ - "type":"structure", - "required":[ - "RouteTableId", - "GatewayId" - ], - "members":{ - "RouteTableId":{"shape":"String"}, - "GatewayId":{"shape":"String"} - } - }, - "EnableVolumeIORequest":{ - "type":"structure", - "required":["VolumeId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VolumeId":{ - "shape":"String", - "locationName":"volumeId" - } - } - }, - "EnableVpcClassicLinkDnsSupportRequest":{ - "type":"structure", - "members":{ - "VpcId":{"shape":"String"} - } - }, - "EnableVpcClassicLinkDnsSupportResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "EnableVpcClassicLinkRequest":{ - "type":"structure", - "required":["VpcId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - } - } - }, - "EnableVpcClassicLinkResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "EventCode":{ - "type":"string", - "enum":[ - "instance-reboot", - "system-reboot", - "system-maintenance", - "instance-retirement", - "instance-stop" - ] - }, - "EventInformation":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "EventSubType":{ - "shape":"String", - "locationName":"eventSubType" - }, - "EventDescription":{ - "shape":"String", - "locationName":"eventDescription" - } - } - }, - "EventType":{ - "type":"string", - "enum":[ - "instanceChange", - "fleetRequestChange", - "error" - ] - }, - "ExcessCapacityTerminationPolicy":{ - "type":"string", - "enum":[ - "noTermination", - "default" - ] - }, - "ExecutableByStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ExecutableBy" - } - }, - "ExportEnvironment":{ - "type":"string", - "enum":[ - "citrix", - "vmware", - "microsoft" - ] - }, - "ExportTask":{ - "type":"structure", - "members":{ - "ExportTaskId":{ - "shape":"String", - "locationName":"exportTaskId" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "State":{ - "shape":"ExportTaskState", - "locationName":"state" - }, - "StatusMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "InstanceExportDetails":{ - "shape":"InstanceExportDetails", - "locationName":"instanceExport" - }, - "ExportToS3Task":{ - "shape":"ExportToS3Task", - "locationName":"exportToS3" - } - } - }, - "ExportTaskIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ExportTaskId" - } - }, - "ExportTaskList":{ - "type":"list", - "member":{ - "shape":"ExportTask", - "locationName":"item" - } - }, - "ExportTaskState":{ - "type":"string", - "enum":[ - "active", - "cancelling", - "cancelled", - "completed" - ] - }, - "ExportToS3Task":{ - "type":"structure", - "members":{ - "DiskImageFormat":{ - "shape":"DiskImageFormat", - "locationName":"diskImageFormat" - }, - "ContainerFormat":{ - "shape":"ContainerFormat", - "locationName":"containerFormat" - }, - "S3Bucket":{ - "shape":"String", - "locationName":"s3Bucket" - }, - "S3Key":{ - "shape":"String", - "locationName":"s3Key" - } - } - }, - "ExportToS3TaskSpecification":{ - "type":"structure", - "members":{ - "DiskImageFormat":{ - "shape":"DiskImageFormat", - "locationName":"diskImageFormat" - }, - "ContainerFormat":{ - "shape":"ContainerFormat", - "locationName":"containerFormat" - }, - "S3Bucket":{ - "shape":"String", - "locationName":"s3Bucket" - }, - "S3Prefix":{ - "shape":"String", - "locationName":"s3Prefix" - } - } - }, - "Filter":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "Values":{ - "shape":"ValueStringList", - "locationName":"Value" - } - } - }, - "FilterList":{ - "type":"list", - "member":{ - "shape":"Filter", - "locationName":"Filter" - } - }, - "FleetType":{ - "type":"string", - "enum":[ - "request", - "maintain" - ] - }, - "Float":{"type":"float"}, - "FlowLog":{ - "type":"structure", - "members":{ - "CreationTime":{ - "shape":"DateTime", - "locationName":"creationTime" - }, - "FlowLogId":{ - "shape":"String", - "locationName":"flowLogId" - }, - "FlowLogStatus":{ - "shape":"String", - "locationName":"flowLogStatus" - }, - "ResourceId":{ - "shape":"String", - "locationName":"resourceId" - }, - "TrafficType":{ - "shape":"TrafficType", - "locationName":"trafficType" - }, - "LogGroupName":{ - "shape":"String", - "locationName":"logGroupName" - }, - "DeliverLogsStatus":{ - "shape":"String", - "locationName":"deliverLogsStatus" - }, - "DeliverLogsErrorMessage":{ - "shape":"String", - "locationName":"deliverLogsErrorMessage" - }, - "DeliverLogsPermissionArn":{ - "shape":"String", - "locationName":"deliverLogsPermissionArn" - } - } - }, - "FlowLogSet":{ - "type":"list", - "member":{ - "shape":"FlowLog", - "locationName":"item" - } - }, - "FlowLogsResourceType":{ - "type":"string", - "enum":[ - "VPC", - "Subnet", - "NetworkInterface" - ] - }, - "GatewayType":{ - "type":"string", - "enum":["ipsec.1"] - }, - "GetConsoleOutputRequest":{ - "type":"structure", - "required":["InstanceId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceId":{"shape":"String"} - } - }, - "GetConsoleOutputResult":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "Timestamp":{ - "shape":"DateTime", - "locationName":"timestamp" - }, - "Output":{ - "shape":"String", - "locationName":"output" - } - } - }, - "GetConsoleScreenshotRequest":{ - "type":"structure", - "required":["InstanceId"], - "members":{ - "DryRun":{"shape":"Boolean"}, - "InstanceId":{"shape":"String"}, - "WakeUp":{"shape":"Boolean"} - } - }, - "GetConsoleScreenshotResult":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "ImageData":{ - "shape":"String", - "locationName":"imageData" - } - } - }, - "GetPasswordDataRequest":{ - "type":"structure", - "required":["InstanceId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceId":{"shape":"String"} - } - }, - "GetPasswordDataResult":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "Timestamp":{ - "shape":"DateTime", - "locationName":"timestamp" - }, - "PasswordData":{ - "shape":"String", - "locationName":"passwordData" - } - } - }, - "GroupIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"groupId" - } - }, - "GroupIdentifier":{ - "type":"structure", - "members":{ - "GroupName":{ - "shape":"String", - "locationName":"groupName" - }, - "GroupId":{ - "shape":"String", - "locationName":"groupId" - } - } - }, - "GroupIdentifierList":{ - "type":"list", - "member":{ - "shape":"GroupIdentifier", - "locationName":"item" - } - }, - "GroupIds":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"item" - } - }, - "GroupNameStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"GroupName" - } - }, - "HistoryRecord":{ - "type":"structure", - "required":[ - "Timestamp", - "EventType", - "EventInformation" - ], - "members":{ - "Timestamp":{ - "shape":"DateTime", - "locationName":"timestamp" - }, - "EventType":{ - "shape":"EventType", - "locationName":"eventType" - }, - "EventInformation":{ - "shape":"EventInformation", - "locationName":"eventInformation" - } - } - }, - "HistoryRecords":{ - "type":"list", - "member":{ - "shape":"HistoryRecord", - "locationName":"item" - } - }, - "Host":{ - "type":"structure", - "members":{ - "HostId":{ - "shape":"String", - "locationName":"hostId" - }, - "AutoPlacement":{ - "shape":"AutoPlacement", - "locationName":"autoPlacement" - }, - "HostReservationId":{ - "shape":"String", - "locationName":"hostReservationId" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - }, - "HostProperties":{ - "shape":"HostProperties", - "locationName":"hostProperties" - }, - "State":{ - "shape":"AllocationState", - "locationName":"state" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "Instances":{ - "shape":"HostInstanceList", - "locationName":"instances" - }, - "AvailableCapacity":{ - "shape":"AvailableCapacity", - "locationName":"availableCapacity" - } - } - }, - "HostInstance":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "InstanceType":{ - "shape":"String", - "locationName":"instanceType" - } - } - }, - "HostInstanceList":{ - "type":"list", - "member":{ - "shape":"HostInstance", - "locationName":"item" - } - }, - "HostList":{ - "type":"list", - "member":{ - "shape":"Host", - "locationName":"item" - } - }, - "HostProperties":{ - "type":"structure", - "members":{ - "Sockets":{ - "shape":"Integer", - "locationName":"sockets" - }, - "Cores":{ - "shape":"Integer", - "locationName":"cores" - }, - "TotalVCpus":{ - "shape":"Integer", - "locationName":"totalVCpus" - }, - "InstanceType":{ - "shape":"String", - "locationName":"instanceType" - } - } - }, - "HostTenancy":{ - "type":"string", - "enum":[ - "dedicated", - "host" - ] - }, - "HypervisorType":{ - "type":"string", - "enum":[ - "ovm", - "xen" - ] - }, - "IamInstanceProfile":{ - "type":"structure", - "members":{ - "Arn":{ - "shape":"String", - "locationName":"arn" - }, - "Id":{ - "shape":"String", - "locationName":"id" - } - } - }, - "IamInstanceProfileSpecification":{ - "type":"structure", - "members":{ - "Arn":{ - "shape":"String", - "locationName":"arn" - }, - "Name":{ - "shape":"String", - "locationName":"name" - } - } - }, - "IcmpTypeCode":{ - "type":"structure", - "members":{ - "Type":{ - "shape":"Integer", - "locationName":"type" - }, - "Code":{ - "shape":"Integer", - "locationName":"code" - } - } - }, - "IdFormat":{ - "type":"structure", - "members":{ - "Resource":{ - "shape":"String", - "locationName":"resource" - }, - "UseLongIds":{ - "shape":"Boolean", - "locationName":"useLongIds" - }, - "Deadline":{ - "shape":"DateTime", - "locationName":"deadline" - } - } - }, - "IdFormatList":{ - "type":"list", - "member":{ - "shape":"IdFormat", - "locationName":"item" - } - }, - "Image":{ - "type":"structure", - "members":{ - "ImageId":{ - "shape":"String", - "locationName":"imageId" - }, - "ImageLocation":{ - "shape":"String", - "locationName":"imageLocation" - }, - "State":{ - "shape":"ImageState", - "locationName":"imageState" - }, - "OwnerId":{ - "shape":"String", - "locationName":"imageOwnerId" - }, - "CreationDate":{ - "shape":"String", - "locationName":"creationDate" - }, - "Public":{ - "shape":"Boolean", - "locationName":"isPublic" - }, - "ProductCodes":{ - "shape":"ProductCodeList", - "locationName":"productCodes" - }, - "Architecture":{ - "shape":"ArchitectureValues", - "locationName":"architecture" - }, - "ImageType":{ - "shape":"ImageTypeValues", - "locationName":"imageType" - }, - "KernelId":{ - "shape":"String", - "locationName":"kernelId" - }, - "RamdiskId":{ - "shape":"String", - "locationName":"ramdiskId" - }, - "Platform":{ - "shape":"PlatformValues", - "locationName":"platform" - }, - "SriovNetSupport":{ - "shape":"String", - "locationName":"sriovNetSupport" - }, - "StateReason":{ - "shape":"StateReason", - "locationName":"stateReason" - }, - "ImageOwnerAlias":{ - "shape":"String", - "locationName":"imageOwnerAlias" - }, - "Name":{ - "shape":"String", - "locationName":"name" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "RootDeviceType":{ - "shape":"DeviceType", - "locationName":"rootDeviceType" - }, - "RootDeviceName":{ - "shape":"String", - "locationName":"rootDeviceName" - }, - "BlockDeviceMappings":{ - "shape":"BlockDeviceMappingList", - "locationName":"blockDeviceMapping" - }, - "VirtualizationType":{ - "shape":"VirtualizationType", - "locationName":"virtualizationType" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "Hypervisor":{ - "shape":"HypervisorType", - "locationName":"hypervisor" - } - } - }, - "ImageAttribute":{ - "type":"structure", - "members":{ - "ImageId":{ - "shape":"String", - "locationName":"imageId" - }, - "LaunchPermissions":{ - "shape":"LaunchPermissionList", - "locationName":"launchPermission" - }, - "ProductCodes":{ - "shape":"ProductCodeList", - "locationName":"productCodes" - }, - "KernelId":{ - "shape":"AttributeValue", - "locationName":"kernel" - }, - "RamdiskId":{ - "shape":"AttributeValue", - "locationName":"ramdisk" - }, - "Description":{ - "shape":"AttributeValue", - "locationName":"description" - }, - "SriovNetSupport":{ - "shape":"AttributeValue", - "locationName":"sriovNetSupport" - }, - "BlockDeviceMappings":{ - "shape":"BlockDeviceMappingList", - "locationName":"blockDeviceMapping" - } - } - }, - "ImageAttributeName":{ - "type":"string", - "enum":[ - "description", - "kernel", - "ramdisk", - "launchPermission", - "productCodes", - "blockDeviceMapping", - "sriovNetSupport" - ] - }, - "ImageDiskContainer":{ - "type":"structure", - "members":{ - "Description":{"shape":"String"}, - "Format":{"shape":"String"}, - "Url":{"shape":"String"}, - "UserBucket":{"shape":"UserBucket"}, - "DeviceName":{"shape":"String"}, - "SnapshotId":{"shape":"String"} - } - }, - "ImageDiskContainerList":{ - "type":"list", - "member":{ - "shape":"ImageDiskContainer", - "locationName":"item" - } - }, - "ImageIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ImageId" - } - }, - "ImageList":{ - "type":"list", - "member":{ - "shape":"Image", - "locationName":"item" - } - }, - "ImageState":{ - "type":"string", - "enum":[ - "pending", - "available", - "invalid", - "deregistered", - "transient", - "failed", - "error" - ] - }, - "ImageTypeValues":{ - "type":"string", - "enum":[ - "machine", - "kernel", - "ramdisk" - ] - }, - "ImportImageRequest":{ - "type":"structure", - "members":{ - "DryRun":{"shape":"Boolean"}, - "Description":{"shape":"String"}, - "DiskContainers":{ - "shape":"ImageDiskContainerList", - "locationName":"DiskContainer" - }, - "LicenseType":{"shape":"String"}, - "Hypervisor":{"shape":"String"}, - "Architecture":{"shape":"String"}, - "Platform":{"shape":"String"}, - "ClientData":{"shape":"ClientData"}, - "ClientToken":{"shape":"String"}, - "RoleName":{"shape":"String"} - } - }, - "ImportImageResult":{ - "type":"structure", - "members":{ - "ImportTaskId":{ - "shape":"String", - "locationName":"importTaskId" - }, - "Architecture":{ - "shape":"String", - "locationName":"architecture" - }, - "LicenseType":{ - "shape":"String", - "locationName":"licenseType" - }, - "Platform":{ - "shape":"String", - "locationName":"platform" - }, - "Hypervisor":{ - "shape":"String", - "locationName":"hypervisor" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "SnapshotDetails":{ - "shape":"SnapshotDetailList", - "locationName":"snapshotDetailSet" - }, - "ImageId":{ - "shape":"String", - "locationName":"imageId" - }, - "Progress":{ - "shape":"String", - "locationName":"progress" - }, - "StatusMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "Status":{ - "shape":"String", - "locationName":"status" - } - } - }, - "ImportImageTask":{ - "type":"structure", - "members":{ - "ImportTaskId":{ - "shape":"String", - "locationName":"importTaskId" - }, - "Architecture":{ - "shape":"String", - "locationName":"architecture" - }, - "LicenseType":{ - "shape":"String", - "locationName":"licenseType" - }, - "Platform":{ - "shape":"String", - "locationName":"platform" - }, - "Hypervisor":{ - "shape":"String", - "locationName":"hypervisor" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "SnapshotDetails":{ - "shape":"SnapshotDetailList", - "locationName":"snapshotDetailSet" - }, - "ImageId":{ - "shape":"String", - "locationName":"imageId" - }, - "Progress":{ - "shape":"String", - "locationName":"progress" - }, - "StatusMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "Status":{ - "shape":"String", - "locationName":"status" - } - } - }, - "ImportImageTaskList":{ - "type":"list", - "member":{ - "shape":"ImportImageTask", - "locationName":"item" - } - }, - "ImportInstanceLaunchSpecification":{ - "type":"structure", - "members":{ - "Architecture":{ - "shape":"ArchitectureValues", - "locationName":"architecture" - }, - "GroupNames":{ - "shape":"SecurityGroupStringList", - "locationName":"GroupName" - }, - "GroupIds":{ - "shape":"SecurityGroupIdStringList", - "locationName":"GroupId" - }, - "AdditionalInfo":{ - "shape":"String", - "locationName":"additionalInfo" - }, - "UserData":{ - "shape":"UserData", - "locationName":"userData" - }, - "InstanceType":{ - "shape":"InstanceType", - "locationName":"instanceType" - }, - "Placement":{ - "shape":"Placement", - "locationName":"placement" - }, - "Monitoring":{ - "shape":"Boolean", - "locationName":"monitoring" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "InstanceInitiatedShutdownBehavior":{ - "shape":"ShutdownBehavior", - "locationName":"instanceInitiatedShutdownBehavior" - }, - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - } - } - }, - "ImportInstanceRequest":{ - "type":"structure", - "required":["Platform"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "LaunchSpecification":{ - "shape":"ImportInstanceLaunchSpecification", - "locationName":"launchSpecification" - }, - "DiskImages":{ - "shape":"DiskImageList", - "locationName":"diskImage" - }, - "Platform":{ - "shape":"PlatformValues", - "locationName":"platform" - } - } - }, - "ImportInstanceResult":{ - "type":"structure", - "members":{ - "ConversionTask":{ - "shape":"ConversionTask", - "locationName":"conversionTask" - } - } - }, - "ImportInstanceTaskDetails":{ - "type":"structure", - "required":["Volumes"], - "members":{ - "Volumes":{ - "shape":"ImportInstanceVolumeDetailSet", - "locationName":"volumes" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "Platform":{ - "shape":"PlatformValues", - "locationName":"platform" - }, - "Description":{ - "shape":"String", - "locationName":"description" - } - } - }, - "ImportInstanceVolumeDetailItem":{ - "type":"structure", - "required":[ - "BytesConverted", - "AvailabilityZone", - "Image", - "Volume", - "Status" - ], - "members":{ - "BytesConverted":{ - "shape":"Long", - "locationName":"bytesConverted" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "Image":{ - "shape":"DiskImageDescription", - "locationName":"image" - }, - "Volume":{ - "shape":"DiskImageVolumeDescription", - "locationName":"volume" - }, - "Status":{ - "shape":"String", - "locationName":"status" - }, - "StatusMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "Description":{ - "shape":"String", - "locationName":"description" - } - } - }, - "ImportInstanceVolumeDetailSet":{ - "type":"list", - "member":{ - "shape":"ImportInstanceVolumeDetailItem", - "locationName":"item" - } - }, - "ImportKeyPairRequest":{ - "type":"structure", - "required":[ - "KeyName", - "PublicKeyMaterial" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "KeyName":{ - "shape":"String", - "locationName":"keyName" - }, - "PublicKeyMaterial":{ - "shape":"Blob", - "locationName":"publicKeyMaterial" - } - } - }, - "ImportKeyPairResult":{ - "type":"structure", - "members":{ - "KeyName":{ - "shape":"String", - "locationName":"keyName" - }, - "KeyFingerprint":{ - "shape":"String", - "locationName":"keyFingerprint" - } - } - }, - "ImportSnapshotRequest":{ - "type":"structure", - "members":{ - "DryRun":{"shape":"Boolean"}, - "Description":{"shape":"String"}, - "DiskContainer":{"shape":"SnapshotDiskContainer"}, - "ClientData":{"shape":"ClientData"}, - "ClientToken":{"shape":"String"}, - "RoleName":{"shape":"String"} - } - }, - "ImportSnapshotResult":{ - "type":"structure", - "members":{ - "ImportTaskId":{ - "shape":"String", - "locationName":"importTaskId" - }, - "SnapshotTaskDetail":{ - "shape":"SnapshotTaskDetail", - "locationName":"snapshotTaskDetail" - }, - "Description":{ - "shape":"String", - "locationName":"description" - } - } - }, - "ImportSnapshotTask":{ - "type":"structure", - "members":{ - "ImportTaskId":{ - "shape":"String", - "locationName":"importTaskId" - }, - "SnapshotTaskDetail":{ - "shape":"SnapshotTaskDetail", - "locationName":"snapshotTaskDetail" - }, - "Description":{ - "shape":"String", - "locationName":"description" - } - } - }, - "ImportSnapshotTaskList":{ - "type":"list", - "member":{ - "shape":"ImportSnapshotTask", - "locationName":"item" - } - }, - "ImportTaskIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ImportTaskId" - } - }, - "ImportVolumeRequest":{ - "type":"structure", - "required":[ - "AvailabilityZone", - "Image", - "Volume" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "Image":{ - "shape":"DiskImageDetail", - "locationName":"image" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "Volume":{ - "shape":"VolumeDetail", - "locationName":"volume" - } - } - }, - "ImportVolumeResult":{ - "type":"structure", - "members":{ - "ConversionTask":{ - "shape":"ConversionTask", - "locationName":"conversionTask" - } - } - }, - "ImportVolumeTaskDetails":{ - "type":"structure", - "required":[ - "BytesConverted", - "AvailabilityZone", - "Image", - "Volume" - ], - "members":{ - "BytesConverted":{ - "shape":"Long", - "locationName":"bytesConverted" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "Image":{ - "shape":"DiskImageDescription", - "locationName":"image" - }, - "Volume":{ - "shape":"DiskImageVolumeDescription", - "locationName":"volume" - } - } - }, - "Instance":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "ImageId":{ - "shape":"String", - "locationName":"imageId" - }, - "State":{ - "shape":"InstanceState", - "locationName":"instanceState" - }, - "PrivateDnsName":{ - "shape":"String", - "locationName":"privateDnsName" - }, - "PublicDnsName":{ - "shape":"String", - "locationName":"dnsName" - }, - "StateTransitionReason":{ - "shape":"String", - "locationName":"reason" - }, - "KeyName":{ - "shape":"String", - "locationName":"keyName" - }, - "AmiLaunchIndex":{ - "shape":"Integer", - "locationName":"amiLaunchIndex" - }, - "ProductCodes":{ - "shape":"ProductCodeList", - "locationName":"productCodes" - }, - "InstanceType":{ - "shape":"InstanceType", - "locationName":"instanceType" - }, - "LaunchTime":{ - "shape":"DateTime", - "locationName":"launchTime" - }, - "Placement":{ - "shape":"Placement", - "locationName":"placement" - }, - "KernelId":{ - "shape":"String", - "locationName":"kernelId" - }, - "RamdiskId":{ - "shape":"String", - "locationName":"ramdiskId" - }, - "Platform":{ - "shape":"PlatformValues", - "locationName":"platform" - }, - "Monitoring":{ - "shape":"Monitoring", - "locationName":"monitoring" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - }, - "PublicIpAddress":{ - "shape":"String", - "locationName":"ipAddress" - }, - "StateReason":{ - "shape":"StateReason", - "locationName":"stateReason" - }, - "Architecture":{ - "shape":"ArchitectureValues", - "locationName":"architecture" - }, - "RootDeviceType":{ - "shape":"DeviceType", - "locationName":"rootDeviceType" - }, - "RootDeviceName":{ - "shape":"String", - "locationName":"rootDeviceName" - }, - "BlockDeviceMappings":{ - "shape":"InstanceBlockDeviceMappingList", - "locationName":"blockDeviceMapping" - }, - "VirtualizationType":{ - "shape":"VirtualizationType", - "locationName":"virtualizationType" - }, - "InstanceLifecycle":{ - "shape":"InstanceLifecycleType", - "locationName":"instanceLifecycle" - }, - "SpotInstanceRequestId":{ - "shape":"String", - "locationName":"spotInstanceRequestId" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "SecurityGroups":{ - "shape":"GroupIdentifierList", - "locationName":"groupSet" - }, - "SourceDestCheck":{ - "shape":"Boolean", - "locationName":"sourceDestCheck" - }, - "Hypervisor":{ - "shape":"HypervisorType", - "locationName":"hypervisor" - }, - "NetworkInterfaces":{ - "shape":"InstanceNetworkInterfaceList", - "locationName":"networkInterfaceSet" - }, - "IamInstanceProfile":{ - "shape":"IamInstanceProfile", - "locationName":"iamInstanceProfile" - }, - "EbsOptimized":{ - "shape":"Boolean", - "locationName":"ebsOptimized" - }, - "SriovNetSupport":{ - "shape":"String", - "locationName":"sriovNetSupport" - } - } - }, - "InstanceAttribute":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "InstanceType":{ - "shape":"AttributeValue", - "locationName":"instanceType" - }, - "KernelId":{ - "shape":"AttributeValue", - "locationName":"kernel" - }, - "RamdiskId":{ - "shape":"AttributeValue", - "locationName":"ramdisk" - }, - "UserData":{ - "shape":"AttributeValue", - "locationName":"userData" - }, - "DisableApiTermination":{ - "shape":"AttributeBooleanValue", - "locationName":"disableApiTermination" - }, - "InstanceInitiatedShutdownBehavior":{ - "shape":"AttributeValue", - "locationName":"instanceInitiatedShutdownBehavior" - }, - "RootDeviceName":{ - "shape":"AttributeValue", - "locationName":"rootDeviceName" - }, - "BlockDeviceMappings":{ - "shape":"InstanceBlockDeviceMappingList", - "locationName":"blockDeviceMapping" - }, - "ProductCodes":{ - "shape":"ProductCodeList", - "locationName":"productCodes" - }, - "EbsOptimized":{ - "shape":"AttributeBooleanValue", - "locationName":"ebsOptimized" - }, - "SriovNetSupport":{ - "shape":"AttributeValue", - "locationName":"sriovNetSupport" - }, - "SourceDestCheck":{ - "shape":"AttributeBooleanValue", - "locationName":"sourceDestCheck" - }, - "Groups":{ - "shape":"GroupIdentifierList", - "locationName":"groupSet" - } - } - }, - "InstanceAttributeName":{ - "type":"string", - "enum":[ - "instanceType", - "kernel", - "ramdisk", - "userData", - "disableApiTermination", - "instanceInitiatedShutdownBehavior", - "rootDeviceName", - "blockDeviceMapping", - "productCodes", - "sourceDestCheck", - "groupSet", - "ebsOptimized", - "sriovNetSupport" - ] - }, - "InstanceBlockDeviceMapping":{ - "type":"structure", - "members":{ - "DeviceName":{ - "shape":"String", - "locationName":"deviceName" - }, - "Ebs":{ - "shape":"EbsInstanceBlockDevice", - "locationName":"ebs" - } - } - }, - "InstanceBlockDeviceMappingList":{ - "type":"list", - "member":{ - "shape":"InstanceBlockDeviceMapping", - "locationName":"item" - } - }, - "InstanceBlockDeviceMappingSpecification":{ - "type":"structure", - "members":{ - "DeviceName":{ - "shape":"String", - "locationName":"deviceName" - }, - "Ebs":{ - "shape":"EbsInstanceBlockDeviceSpecification", - "locationName":"ebs" - }, - "VirtualName":{ - "shape":"String", - "locationName":"virtualName" - }, - "NoDevice":{ - "shape":"String", - "locationName":"noDevice" - } - } - }, - "InstanceBlockDeviceMappingSpecificationList":{ - "type":"list", - "member":{ - "shape":"InstanceBlockDeviceMappingSpecification", - "locationName":"item" - } - }, - "InstanceCapacity":{ - "type":"structure", - "members":{ - "InstanceType":{ - "shape":"String", - "locationName":"instanceType" - }, - "AvailableCapacity":{ - "shape":"Integer", - "locationName":"availableCapacity" - }, - "TotalCapacity":{ - "shape":"Integer", - "locationName":"totalCapacity" - } - } - }, - "InstanceCount":{ - "type":"structure", - "members":{ - "State":{ - "shape":"ListingState", - "locationName":"state" - }, - "InstanceCount":{ - "shape":"Integer", - "locationName":"instanceCount" - } - } - }, - "InstanceCountList":{ - "type":"list", - "member":{ - "shape":"InstanceCount", - "locationName":"item" - } - }, - "InstanceExportDetails":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "TargetEnvironment":{ - "shape":"ExportEnvironment", - "locationName":"targetEnvironment" - } - } - }, - "InstanceIdSet":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"item" - } - }, - "InstanceIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"InstanceId" - } - }, - "InstanceLifecycleType":{ - "type":"string", - "enum":[ - "spot", - "scheduled" - ] - }, - "InstanceList":{ - "type":"list", - "member":{ - "shape":"Instance", - "locationName":"item" - } - }, - "InstanceMonitoring":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "Monitoring":{ - "shape":"Monitoring", - "locationName":"monitoring" - } - } - }, - "InstanceMonitoringList":{ - "type":"list", - "member":{ - "shape":"InstanceMonitoring", - "locationName":"item" - } - }, - "InstanceNetworkInterface":{ - "type":"structure", - "members":{ - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "OwnerId":{ - "shape":"String", - "locationName":"ownerId" - }, - "Status":{ - "shape":"NetworkInterfaceStatus", - "locationName":"status" - }, - "MacAddress":{ - "shape":"String", - "locationName":"macAddress" - }, - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - }, - "PrivateDnsName":{ - "shape":"String", - "locationName":"privateDnsName" - }, - "SourceDestCheck":{ - "shape":"Boolean", - "locationName":"sourceDestCheck" - }, - "Groups":{ - "shape":"GroupIdentifierList", - "locationName":"groupSet" - }, - "Attachment":{ - "shape":"InstanceNetworkInterfaceAttachment", - "locationName":"attachment" - }, - "Association":{ - "shape":"InstanceNetworkInterfaceAssociation", - "locationName":"association" - }, - "PrivateIpAddresses":{ - "shape":"InstancePrivateIpAddressList", - "locationName":"privateIpAddressesSet" - } - } - }, - "InstanceNetworkInterfaceAssociation":{ - "type":"structure", - "members":{ - "PublicIp":{ - "shape":"String", - "locationName":"publicIp" - }, - "PublicDnsName":{ - "shape":"String", - "locationName":"publicDnsName" - }, - "IpOwnerId":{ - "shape":"String", - "locationName":"ipOwnerId" - } - } - }, - "InstanceNetworkInterfaceAttachment":{ - "type":"structure", - "members":{ - "AttachmentId":{ - "shape":"String", - "locationName":"attachmentId" - }, - "DeviceIndex":{ - "shape":"Integer", - "locationName":"deviceIndex" - }, - "Status":{ - "shape":"AttachmentStatus", - "locationName":"status" - }, - "AttachTime":{ - "shape":"DateTime", - "locationName":"attachTime" - }, - "DeleteOnTermination":{ - "shape":"Boolean", - "locationName":"deleteOnTermination" - } - } - }, - "InstanceNetworkInterfaceList":{ - "type":"list", - "member":{ - "shape":"InstanceNetworkInterface", - "locationName":"item" - } - }, - "InstanceNetworkInterfaceSpecification":{ - "type":"structure", - "members":{ - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "DeviceIndex":{ - "shape":"Integer", - "locationName":"deviceIndex" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - }, - "Groups":{ - "shape":"SecurityGroupIdStringList", - "locationName":"SecurityGroupId" - }, - "DeleteOnTermination":{ - "shape":"Boolean", - "locationName":"deleteOnTermination" - }, - "PrivateIpAddresses":{ - "shape":"PrivateIpAddressSpecificationList", - "locationName":"privateIpAddressesSet", - "queryName":"PrivateIpAddresses" - }, - "SecondaryPrivateIpAddressCount":{ - "shape":"Integer", - "locationName":"secondaryPrivateIpAddressCount" - }, - "AssociatePublicIpAddress":{ - "shape":"Boolean", - "locationName":"associatePublicIpAddress" - } - } - }, - "InstanceNetworkInterfaceSpecificationList":{ - "type":"list", - "member":{ - "shape":"InstanceNetworkInterfaceSpecification", - "locationName":"item" - } - }, - "InstancePrivateIpAddress":{ - "type":"structure", - "members":{ - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - }, - "PrivateDnsName":{ - "shape":"String", - "locationName":"privateDnsName" - }, - "Primary":{ - "shape":"Boolean", - "locationName":"primary" - }, - "Association":{ - "shape":"InstanceNetworkInterfaceAssociation", - "locationName":"association" - } - } - }, - "InstancePrivateIpAddressList":{ - "type":"list", - "member":{ - "shape":"InstancePrivateIpAddress", - "locationName":"item" - } - }, - "InstanceState":{ - "type":"structure", - "members":{ - "Code":{ - "shape":"Integer", - "locationName":"code" - }, - "Name":{ - "shape":"InstanceStateName", - "locationName":"name" - } - } - }, - "InstanceStateChange":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "CurrentState":{ - "shape":"InstanceState", - "locationName":"currentState" - }, - "PreviousState":{ - "shape":"InstanceState", - "locationName":"previousState" - } - } - }, - "InstanceStateChangeList":{ - "type":"list", - "member":{ - "shape":"InstanceStateChange", - "locationName":"item" - } - }, - "InstanceStateName":{ - "type":"string", - "enum":[ - "pending", - "running", - "shutting-down", - "terminated", - "stopping", - "stopped" - ] - }, - "InstanceStatus":{ - "type":"structure", - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "Events":{ - "shape":"InstanceStatusEventList", - "locationName":"eventsSet" - }, - "InstanceState":{ - "shape":"InstanceState", - "locationName":"instanceState" - }, - "SystemStatus":{ - "shape":"InstanceStatusSummary", - "locationName":"systemStatus" - }, - "InstanceStatus":{ - "shape":"InstanceStatusSummary", - "locationName":"instanceStatus" - } - } - }, - "InstanceStatusDetails":{ - "type":"structure", - "members":{ - "Name":{ - "shape":"StatusName", - "locationName":"name" - }, - "Status":{ - "shape":"StatusType", - "locationName":"status" - }, - "ImpairedSince":{ - "shape":"DateTime", - "locationName":"impairedSince" - } - } - }, - "InstanceStatusDetailsList":{ - "type":"list", - "member":{ - "shape":"InstanceStatusDetails", - "locationName":"item" - } - }, - "InstanceStatusEvent":{ - "type":"structure", - "members":{ - "Code":{ - "shape":"EventCode", - "locationName":"code" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "NotBefore":{ - "shape":"DateTime", - "locationName":"notBefore" - }, - "NotAfter":{ - "shape":"DateTime", - "locationName":"notAfter" - } - } - }, - "InstanceStatusEventList":{ - "type":"list", - "member":{ - "shape":"InstanceStatusEvent", - "locationName":"item" - } - }, - "InstanceStatusList":{ - "type":"list", - "member":{ - "shape":"InstanceStatus", - "locationName":"item" - } - }, - "InstanceStatusSummary":{ - "type":"structure", - "members":{ - "Status":{ - "shape":"SummaryStatus", - "locationName":"status" - }, - "Details":{ - "shape":"InstanceStatusDetailsList", - "locationName":"details" - } - } - }, - "InstanceType":{ - "type":"string", - "enum":[ - "t1.micro", - "m1.small", - "m1.medium", - "m1.large", - "m1.xlarge", - "m3.medium", - "m3.large", - "m3.xlarge", - "m3.2xlarge", - "m4.large", - "m4.xlarge", - "m4.2xlarge", - "m4.4xlarge", - "m4.10xlarge", - "t2.nano", - "t2.micro", - "t2.small", - "t2.medium", - "t2.large", - "m2.xlarge", - "m2.2xlarge", - "m2.4xlarge", - "cr1.8xlarge", - "x1.4xlarge", - "x1.8xlarge", - "x1.16xlarge", - "x1.32xlarge", - "i2.xlarge", - "i2.2xlarge", - "i2.4xlarge", - "i2.8xlarge", - "hi1.4xlarge", - "hs1.8xlarge", - "c1.medium", - "c1.xlarge", - "c3.large", - "c3.xlarge", - "c3.2xlarge", - "c3.4xlarge", - "c3.8xlarge", - "c4.large", - "c4.xlarge", - "c4.2xlarge", - "c4.4xlarge", - "c4.8xlarge", - "cc1.4xlarge", - "cc2.8xlarge", - "g2.2xlarge", - "g2.8xlarge", - "cg1.4xlarge", - "r3.large", - "r3.xlarge", - "r3.2xlarge", - "r3.4xlarge", - "r3.8xlarge", - "d2.xlarge", - "d2.2xlarge", - "d2.4xlarge", - "d2.8xlarge" - ] - }, - "InstanceTypeList":{ - "type":"list", - "member":{"shape":"InstanceType"} - }, - "Integer":{"type":"integer"}, - "InternetGateway":{ - "type":"structure", - "members":{ - "InternetGatewayId":{ - "shape":"String", - "locationName":"internetGatewayId" - }, - "Attachments":{ - "shape":"InternetGatewayAttachmentList", - "locationName":"attachmentSet" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - } - } - }, - "InternetGatewayAttachment":{ - "type":"structure", - "members":{ - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "State":{ - "shape":"AttachmentStatus", - "locationName":"state" - } - } - }, - "InternetGatewayAttachmentList":{ - "type":"list", - "member":{ - "shape":"InternetGatewayAttachment", - "locationName":"item" - } - }, - "InternetGatewayList":{ - "type":"list", - "member":{ - "shape":"InternetGateway", - "locationName":"item" - } - }, - "IpPermission":{ - "type":"structure", - "members":{ - "IpProtocol":{ - "shape":"String", - "locationName":"ipProtocol" - }, - "FromPort":{ - "shape":"Integer", - "locationName":"fromPort" - }, - "ToPort":{ - "shape":"Integer", - "locationName":"toPort" - }, - "UserIdGroupPairs":{ - "shape":"UserIdGroupPairList", - "locationName":"groups" - }, - "IpRanges":{ - "shape":"IpRangeList", - "locationName":"ipRanges" - }, - "PrefixListIds":{ - "shape":"PrefixListIdList", - "locationName":"prefixListIds" - } - } - }, - "IpPermissionList":{ - "type":"list", - "member":{ - "shape":"IpPermission", - "locationName":"item" - } - }, - "IpRange":{ - "type":"structure", - "members":{ - "CidrIp":{ - "shape":"String", - "locationName":"cidrIp" - } - } - }, - "IpRangeList":{ - "type":"list", - "member":{ - "shape":"IpRange", - "locationName":"item" - } - }, - "IpRanges":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"item" - } - }, - "KeyNameStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"KeyName" - } - }, - "KeyPair":{ - "type":"structure", - "members":{ - "KeyName":{ - "shape":"String", - "locationName":"keyName" - }, - "KeyFingerprint":{ - "shape":"String", - "locationName":"keyFingerprint" - }, - "KeyMaterial":{ - "shape":"String", - "locationName":"keyMaterial" - } - } - }, - "KeyPairInfo":{ - "type":"structure", - "members":{ - "KeyName":{ - "shape":"String", - "locationName":"keyName" - }, - "KeyFingerprint":{ - "shape":"String", - "locationName":"keyFingerprint" - } - } - }, - "KeyPairList":{ - "type":"list", - "member":{ - "shape":"KeyPairInfo", - "locationName":"item" - } - }, - "LaunchPermission":{ - "type":"structure", - "members":{ - "UserId":{ - "shape":"String", - "locationName":"userId" - }, - "Group":{ - "shape":"PermissionGroup", - "locationName":"group" - } - } - }, - "LaunchPermissionList":{ - "type":"list", - "member":{ - "shape":"LaunchPermission", - "locationName":"item" - } - }, - "LaunchPermissionModifications":{ - "type":"structure", - "members":{ - "Add":{"shape":"LaunchPermissionList"}, - "Remove":{"shape":"LaunchPermissionList"} - } - }, - "LaunchSpecification":{ - "type":"structure", - "members":{ - "ImageId":{ - "shape":"String", - "locationName":"imageId" - }, - "KeyName":{ - "shape":"String", - "locationName":"keyName" - }, - "SecurityGroups":{ - "shape":"GroupIdentifierList", - "locationName":"groupSet" - }, - "UserData":{ - "shape":"String", - "locationName":"userData" - }, - "AddressingType":{ - "shape":"String", - "locationName":"addressingType" - }, - "InstanceType":{ - "shape":"InstanceType", - "locationName":"instanceType" - }, - "Placement":{ - "shape":"SpotPlacement", - "locationName":"placement" - }, - "KernelId":{ - "shape":"String", - "locationName":"kernelId" - }, - "RamdiskId":{ - "shape":"String", - "locationName":"ramdiskId" - }, - "BlockDeviceMappings":{ - "shape":"BlockDeviceMappingList", - "locationName":"blockDeviceMapping" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "NetworkInterfaces":{ - "shape":"InstanceNetworkInterfaceSpecificationList", - "locationName":"networkInterfaceSet" - }, - "IamInstanceProfile":{ - "shape":"IamInstanceProfileSpecification", - "locationName":"iamInstanceProfile" - }, - "EbsOptimized":{ - "shape":"Boolean", - "locationName":"ebsOptimized" - }, - "Monitoring":{ - "shape":"RunInstancesMonitoringEnabled", - "locationName":"monitoring" - } - } - }, - "LaunchSpecsList":{ - "type":"list", - "member":{ - "shape":"SpotFleetLaunchSpecification", - "locationName":"item" - }, - "min":1 - }, - "ListingState":{ - "type":"string", - "enum":[ - "available", - "sold", - "cancelled", - "pending" - ] - }, - "ListingStatus":{ - "type":"string", - "enum":[ - "active", - "pending", - "cancelled", - "closed" - ] - }, - "Long":{"type":"long"}, - "MaxResults":{ - "type":"integer", - "max":255, - "min":5 - }, - "ModifyHostsRequest":{ - "type":"structure", - "required":[ - "HostIds", - "AutoPlacement" - ], - "members":{ - "HostIds":{ - "shape":"RequestHostIdList", - "locationName":"hostId" - }, - "AutoPlacement":{ - "shape":"AutoPlacement", - "locationName":"autoPlacement" - } - } - }, - "ModifyHostsResult":{ - "type":"structure", - "members":{ - "Successful":{ - "shape":"ResponseHostIdList", - "locationName":"successful" - }, - "Unsuccessful":{ - "shape":"UnsuccessfulItemList", - "locationName":"unsuccessful" - } - } - }, - "ModifyIdFormatRequest":{ - "type":"structure", - "required":[ - "Resource", - "UseLongIds" - ], - "members":{ - "Resource":{"shape":"String"}, - "UseLongIds":{"shape":"Boolean"} - } - }, - "ModifyImageAttributeRequest":{ - "type":"structure", - "required":["ImageId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ImageId":{"shape":"String"}, - "Attribute":{"shape":"String"}, - "OperationType":{"shape":"OperationType"}, - "UserIds":{ - "shape":"UserIdStringList", - "locationName":"UserId" - }, - "UserGroups":{ - "shape":"UserGroupStringList", - "locationName":"UserGroup" - }, - "ProductCodes":{ - "shape":"ProductCodeStringList", - "locationName":"ProductCode" - }, - "Value":{"shape":"String"}, - "LaunchPermission":{"shape":"LaunchPermissionModifications"}, - "Description":{"shape":"AttributeValue"} - } - }, - "ModifyInstanceAttributeRequest":{ - "type":"structure", - "required":["InstanceId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "Attribute":{ - "shape":"InstanceAttributeName", - "locationName":"attribute" - }, - "Value":{ - "shape":"String", - "locationName":"value" - }, - "BlockDeviceMappings":{ - "shape":"InstanceBlockDeviceMappingSpecificationList", - "locationName":"blockDeviceMapping" - }, - "SourceDestCheck":{"shape":"AttributeBooleanValue"}, - "DisableApiTermination":{ - "shape":"AttributeBooleanValue", - "locationName":"disableApiTermination" - }, - "InstanceType":{ - "shape":"AttributeValue", - "locationName":"instanceType" - }, - "Kernel":{ - "shape":"AttributeValue", - "locationName":"kernel" - }, - "Ramdisk":{ - "shape":"AttributeValue", - "locationName":"ramdisk" - }, - "UserData":{ - "shape":"BlobAttributeValue", - "locationName":"userData" - }, - "InstanceInitiatedShutdownBehavior":{ - "shape":"AttributeValue", - "locationName":"instanceInitiatedShutdownBehavior" - }, - "Groups":{ - "shape":"GroupIdStringList", - "locationName":"GroupId" - }, - "EbsOptimized":{ - "shape":"AttributeBooleanValue", - "locationName":"ebsOptimized" - }, - "SriovNetSupport":{ - "shape":"AttributeValue", - "locationName":"sriovNetSupport" - } - } - }, - "ModifyInstancePlacementRequest":{ - "type":"structure", - "required":["InstanceId"], - "members":{ - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "Tenancy":{ - "shape":"HostTenancy", - "locationName":"tenancy" - }, - "Affinity":{ - "shape":"Affinity", - "locationName":"affinity" - }, - "HostId":{ - "shape":"String", - "locationName":"hostId" - } - } - }, - "ModifyInstancePlacementResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "ModifyNetworkInterfaceAttributeRequest":{ - "type":"structure", - "required":["NetworkInterfaceId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "Description":{ - "shape":"AttributeValue", - "locationName":"description" - }, - "SourceDestCheck":{ - "shape":"AttributeBooleanValue", - "locationName":"sourceDestCheck" - }, - "Groups":{ - "shape":"SecurityGroupIdStringList", - "locationName":"SecurityGroupId" - }, - "Attachment":{ - "shape":"NetworkInterfaceAttachmentChanges", - "locationName":"attachment" - } - } - }, - "ModifyReservedInstancesRequest":{ - "type":"structure", - "required":[ - "ReservedInstancesIds", - "TargetConfigurations" - ], - "members":{ - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - }, - "ReservedInstancesIds":{ - "shape":"ReservedInstancesIdStringList", - "locationName":"ReservedInstancesId" - }, - "TargetConfigurations":{ - "shape":"ReservedInstancesConfigurationList", - "locationName":"ReservedInstancesConfigurationSetItemType" - } - } - }, - "ModifyReservedInstancesResult":{ - "type":"structure", - "members":{ - "ReservedInstancesModificationId":{ - "shape":"String", - "locationName":"reservedInstancesModificationId" - } - } - }, - "ModifySnapshotAttributeRequest":{ - "type":"structure", - "required":["SnapshotId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SnapshotId":{"shape":"String"}, - "Attribute":{"shape":"SnapshotAttributeName"}, - "OperationType":{"shape":"OperationType"}, - "UserIds":{ - "shape":"UserIdStringList", - "locationName":"UserId" - }, - "GroupNames":{ - "shape":"GroupNameStringList", - "locationName":"UserGroup" - }, - "CreateVolumePermission":{"shape":"CreateVolumePermissionModifications"} - } - }, - "ModifySpotFleetRequestRequest":{ - "type":"structure", - "required":["SpotFleetRequestId"], - "members":{ - "SpotFleetRequestId":{ - "shape":"String", - "locationName":"spotFleetRequestId" - }, - "TargetCapacity":{ - "shape":"Integer", - "locationName":"targetCapacity" - }, - "ExcessCapacityTerminationPolicy":{ - "shape":"ExcessCapacityTerminationPolicy", - "locationName":"excessCapacityTerminationPolicy" - } - } - }, - "ModifySpotFleetRequestResponse":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "ModifySubnetAttributeRequest":{ - "type":"structure", - "required":["SubnetId"], - "members":{ - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "MapPublicIpOnLaunch":{"shape":"AttributeBooleanValue"} - } - }, - "ModifyVolumeAttributeRequest":{ - "type":"structure", - "required":["VolumeId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VolumeId":{"shape":"String"}, - "AutoEnableIO":{"shape":"AttributeBooleanValue"} - } - }, - "ModifyVpcAttributeRequest":{ - "type":"structure", - "required":["VpcId"], - "members":{ - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "EnableDnsSupport":{"shape":"AttributeBooleanValue"}, - "EnableDnsHostnames":{"shape":"AttributeBooleanValue"} - } - }, - "ModifyVpcEndpointRequest":{ - "type":"structure", - "required":["VpcEndpointId"], - "members":{ - "DryRun":{"shape":"Boolean"}, - "VpcEndpointId":{"shape":"String"}, - "ResetPolicy":{"shape":"Boolean"}, - "PolicyDocument":{"shape":"String"}, - "AddRouteTableIds":{ - "shape":"ValueStringList", - "locationName":"AddRouteTableId" - }, - "RemoveRouteTableIds":{ - "shape":"ValueStringList", - "locationName":"RemoveRouteTableId" - } - } - }, - "ModifyVpcEndpointResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "ModifyVpcPeeringConnectionOptionsRequest":{ - "type":"structure", - "required":["VpcPeeringConnectionId"], - "members":{ - "DryRun":{"shape":"Boolean"}, - "VpcPeeringConnectionId":{"shape":"String"}, - "RequesterPeeringConnectionOptions":{"shape":"PeeringConnectionOptionsRequest"}, - "AccepterPeeringConnectionOptions":{"shape":"PeeringConnectionOptionsRequest"} - } - }, - "ModifyVpcPeeringConnectionOptionsResult":{ - "type":"structure", - "members":{ - "RequesterPeeringConnectionOptions":{ - "shape":"PeeringConnectionOptions", - "locationName":"requesterPeeringConnectionOptions" - }, - "AccepterPeeringConnectionOptions":{ - "shape":"PeeringConnectionOptions", - "locationName":"accepterPeeringConnectionOptions" - } - } - }, - "MonitorInstancesRequest":{ - "type":"structure", - "required":["InstanceIds"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceIds":{ - "shape":"InstanceIdStringList", - "locationName":"InstanceId" - } - } - }, - "MonitorInstancesResult":{ - "type":"structure", - "members":{ - "InstanceMonitorings":{ - "shape":"InstanceMonitoringList", - "locationName":"instancesSet" - } - } - }, - "Monitoring":{ - "type":"structure", - "members":{ - "State":{ - "shape":"MonitoringState", - "locationName":"state" - } - } - }, - "MonitoringState":{ - "type":"string", - "enum":[ - "disabled", - "disabling", - "enabled", - "pending" - ] - }, - "MoveAddressToVpcRequest":{ - "type":"structure", - "required":["PublicIp"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "PublicIp":{ - "shape":"String", - "locationName":"publicIp" - } - } - }, - "MoveAddressToVpcResult":{ - "type":"structure", - "members":{ - "AllocationId":{ - "shape":"String", - "locationName":"allocationId" - }, - "Status":{ - "shape":"Status", - "locationName":"status" - } - } - }, - "MoveStatus":{ - "type":"string", - "enum":[ - "movingToVpc", - "restoringToClassic" - ] - }, - "MovingAddressStatus":{ - "type":"structure", - "members":{ - "PublicIp":{ - "shape":"String", - "locationName":"publicIp" - }, - "MoveStatus":{ - "shape":"MoveStatus", - "locationName":"moveStatus" - } - } - }, - "MovingAddressStatusSet":{ - "type":"list", - "member":{ - "shape":"MovingAddressStatus", - "locationName":"item" - } - }, - "NatGateway":{ - "type":"structure", - "members":{ - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "NatGatewayId":{ - "shape":"String", - "locationName":"natGatewayId" - }, - "CreateTime":{ - "shape":"DateTime", - "locationName":"createTime" - }, - "DeleteTime":{ - "shape":"DateTime", - "locationName":"deleteTime" - }, - "NatGatewayAddresses":{ - "shape":"NatGatewayAddressList", - "locationName":"natGatewayAddressSet" - }, - "State":{ - "shape":"NatGatewayState", - "locationName":"state" - }, - "FailureCode":{ - "shape":"String", - "locationName":"failureCode" - }, - "FailureMessage":{ - "shape":"String", - "locationName":"failureMessage" - }, - "ProvisionedBandwidth":{ - "shape":"ProvisionedBandwidth", - "locationName":"provisionedBandwidth" - } - } - }, - "NatGatewayAddress":{ - "type":"structure", - "members":{ - "PublicIp":{ - "shape":"String", - "locationName":"publicIp" - }, - "AllocationId":{ - "shape":"String", - "locationName":"allocationId" - }, - "PrivateIp":{ - "shape":"String", - "locationName":"privateIp" - }, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - } - } - }, - "NatGatewayAddressList":{ - "type":"list", - "member":{ - "shape":"NatGatewayAddress", - "locationName":"item" - } - }, - "NatGatewayList":{ - "type":"list", - "member":{ - "shape":"NatGateway", - "locationName":"item" - } - }, - "NatGatewayState":{ - "type":"string", - "enum":[ - "pending", - "failed", - "available", - "deleting", - "deleted" - ] - }, - "NetworkAcl":{ - "type":"structure", - "members":{ - "NetworkAclId":{ - "shape":"String", - "locationName":"networkAclId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "IsDefault":{ - "shape":"Boolean", - "locationName":"default" - }, - "Entries":{ - "shape":"NetworkAclEntryList", - "locationName":"entrySet" - }, - "Associations":{ - "shape":"NetworkAclAssociationList", - "locationName":"associationSet" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - } - } - }, - "NetworkAclAssociation":{ - "type":"structure", - "members":{ - "NetworkAclAssociationId":{ - "shape":"String", - "locationName":"networkAclAssociationId" - }, - "NetworkAclId":{ - "shape":"String", - "locationName":"networkAclId" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - } - } - }, - "NetworkAclAssociationList":{ - "type":"list", - "member":{ - "shape":"NetworkAclAssociation", - "locationName":"item" - } - }, - "NetworkAclEntry":{ - "type":"structure", - "members":{ - "RuleNumber":{ - "shape":"Integer", - "locationName":"ruleNumber" - }, - "Protocol":{ - "shape":"String", - "locationName":"protocol" - }, - "RuleAction":{ - "shape":"RuleAction", - "locationName":"ruleAction" - }, - "Egress":{ - "shape":"Boolean", - "locationName":"egress" - }, - "CidrBlock":{ - "shape":"String", - "locationName":"cidrBlock" - }, - "IcmpTypeCode":{ - "shape":"IcmpTypeCode", - "locationName":"icmpTypeCode" - }, - "PortRange":{ - "shape":"PortRange", - "locationName":"portRange" - } - } - }, - "NetworkAclEntryList":{ - "type":"list", - "member":{ - "shape":"NetworkAclEntry", - "locationName":"item" - } - }, - "NetworkAclList":{ - "type":"list", - "member":{ - "shape":"NetworkAcl", - "locationName":"item" - } - }, - "NetworkInterface":{ - "type":"structure", - "members":{ - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "OwnerId":{ - "shape":"String", - "locationName":"ownerId" - }, - "RequesterId":{ - "shape":"String", - "locationName":"requesterId" - }, - "RequesterManaged":{ - "shape":"Boolean", - "locationName":"requesterManaged" - }, - "Status":{ - "shape":"NetworkInterfaceStatus", - "locationName":"status" - }, - "MacAddress":{ - "shape":"String", - "locationName":"macAddress" - }, - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - }, - "PrivateDnsName":{ - "shape":"String", - "locationName":"privateDnsName" - }, - "SourceDestCheck":{ - "shape":"Boolean", - "locationName":"sourceDestCheck" - }, - "Groups":{ - "shape":"GroupIdentifierList", - "locationName":"groupSet" - }, - "Attachment":{ - "shape":"NetworkInterfaceAttachment", - "locationName":"attachment" - }, - "Association":{ - "shape":"NetworkInterfaceAssociation", - "locationName":"association" - }, - "TagSet":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "PrivateIpAddresses":{ - "shape":"NetworkInterfacePrivateIpAddressList", - "locationName":"privateIpAddressesSet" - }, - "InterfaceType":{ - "shape":"NetworkInterfaceType", - "locationName":"interfaceType" - } - } - }, - "NetworkInterfaceAssociation":{ - "type":"structure", - "members":{ - "PublicIp":{ - "shape":"String", - "locationName":"publicIp" - }, - "PublicDnsName":{ - "shape":"String", - "locationName":"publicDnsName" - }, - "IpOwnerId":{ - "shape":"String", - "locationName":"ipOwnerId" - }, - "AllocationId":{ - "shape":"String", - "locationName":"allocationId" - }, - "AssociationId":{ - "shape":"String", - "locationName":"associationId" - } - } - }, - "NetworkInterfaceAttachment":{ - "type":"structure", - "members":{ - "AttachmentId":{ - "shape":"String", - "locationName":"attachmentId" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "InstanceOwnerId":{ - "shape":"String", - "locationName":"instanceOwnerId" - }, - "DeviceIndex":{ - "shape":"Integer", - "locationName":"deviceIndex" - }, - "Status":{ - "shape":"AttachmentStatus", - "locationName":"status" - }, - "AttachTime":{ - "shape":"DateTime", - "locationName":"attachTime" - }, - "DeleteOnTermination":{ - "shape":"Boolean", - "locationName":"deleteOnTermination" - } - } - }, - "NetworkInterfaceAttachmentChanges":{ - "type":"structure", - "members":{ - "AttachmentId":{ - "shape":"String", - "locationName":"attachmentId" - }, - "DeleteOnTermination":{ - "shape":"Boolean", - "locationName":"deleteOnTermination" - } - } - }, - "NetworkInterfaceAttribute":{ - "type":"string", - "enum":[ - "description", - "groupSet", - "sourceDestCheck", - "attachment" - ] - }, - "NetworkInterfaceIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"item" - } - }, - "NetworkInterfaceList":{ - "type":"list", - "member":{ - "shape":"NetworkInterface", - "locationName":"item" - } - }, - "NetworkInterfacePrivateIpAddress":{ - "type":"structure", - "members":{ - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - }, - "PrivateDnsName":{ - "shape":"String", - "locationName":"privateDnsName" - }, - "Primary":{ - "shape":"Boolean", - "locationName":"primary" - }, - "Association":{ - "shape":"NetworkInterfaceAssociation", - "locationName":"association" - } - } - }, - "NetworkInterfacePrivateIpAddressList":{ - "type":"list", - "member":{ - "shape":"NetworkInterfacePrivateIpAddress", - "locationName":"item" - } - }, - "NetworkInterfaceStatus":{ - "type":"string", - "enum":[ - "available", - "attaching", - "in-use", - "detaching" - ] - }, - "NetworkInterfaceType":{ - "type":"string", - "enum":[ - "interface", - "natGateway" - ] - }, - "NewDhcpConfiguration":{ - "type":"structure", - "members":{ - "Key":{ - "shape":"String", - "locationName":"key" - }, - "Values":{ - "shape":"ValueStringList", - "locationName":"Value" - } - } - }, - "NewDhcpConfigurationList":{ - "type":"list", - "member":{ - "shape":"NewDhcpConfiguration", - "locationName":"item" - } - }, - "NextToken":{ - "type":"string", - "max":1024, - "min":1 - }, - "OccurrenceDayRequestSet":{ - "type":"list", - "member":{ - "shape":"Integer", - "locationName":"OccurenceDay" - } - }, - "OccurrenceDaySet":{ - "type":"list", - "member":{ - "shape":"Integer", - "locationName":"item" - } - }, - "OfferingTypeValues":{ - "type":"string", - "enum":[ - "Heavy Utilization", - "Medium Utilization", - "Light Utilization", - "No Upfront", - "Partial Upfront", - "All Upfront" - ] - }, - "OperationType":{ - "type":"string", - "enum":[ - "add", - "remove" - ] - }, - "OwnerStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"Owner" - } - }, - "PeeringConnectionOptions":{ - "type":"structure", - "members":{ - "AllowEgressFromLocalClassicLinkToRemoteVpc":{ - "shape":"Boolean", - "locationName":"allowEgressFromLocalClassicLinkToRemoteVpc" - }, - "AllowEgressFromLocalVpcToRemoteClassicLink":{ - "shape":"Boolean", - "locationName":"allowEgressFromLocalVpcToRemoteClassicLink" - } - } - }, - "PeeringConnectionOptionsRequest":{ - "type":"structure", - "required":[ - "AllowEgressFromLocalClassicLinkToRemoteVpc", - "AllowEgressFromLocalVpcToRemoteClassicLink" - ], - "members":{ - "AllowEgressFromLocalClassicLinkToRemoteVpc":{"shape":"Boolean"}, - "AllowEgressFromLocalVpcToRemoteClassicLink":{"shape":"Boolean"} - } - }, - "PermissionGroup":{ - "type":"string", - "enum":["all"] - }, - "Placement":{ - "type":"structure", - "members":{ - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "GroupName":{ - "shape":"String", - "locationName":"groupName" - }, - "Tenancy":{ - "shape":"Tenancy", - "locationName":"tenancy" - }, - "HostId":{ - "shape":"String", - "locationName":"hostId" - }, - "Affinity":{ - "shape":"String", - "locationName":"affinity" - } - } - }, - "PlacementGroup":{ - "type":"structure", - "members":{ - "GroupName":{ - "shape":"String", - "locationName":"groupName" - }, - "Strategy":{ - "shape":"PlacementStrategy", - "locationName":"strategy" - }, - "State":{ - "shape":"PlacementGroupState", - "locationName":"state" - } - } - }, - "PlacementGroupList":{ - "type":"list", - "member":{ - "shape":"PlacementGroup", - "locationName":"item" - } - }, - "PlacementGroupState":{ - "type":"string", - "enum":[ - "pending", - "available", - "deleting", - "deleted" - ] - }, - "PlacementGroupStringList":{ - "type":"list", - "member":{"shape":"String"} - }, - "PlacementStrategy":{ - "type":"string", - "enum":["cluster"] - }, - "PlatformValues":{ - "type":"string", - "enum":["Windows"] - }, - "PortRange":{ - "type":"structure", - "members":{ - "From":{ - "shape":"Integer", - "locationName":"from" - }, - "To":{ - "shape":"Integer", - "locationName":"to" - } - } - }, - "PrefixList":{ - "type":"structure", - "members":{ - "PrefixListId":{ - "shape":"String", - "locationName":"prefixListId" - }, - "PrefixListName":{ - "shape":"String", - "locationName":"prefixListName" - }, - "Cidrs":{ - "shape":"ValueStringList", - "locationName":"cidrSet" - } - } - }, - "PrefixListId":{ - "type":"structure", - "members":{ - "PrefixListId":{ - "shape":"String", - "locationName":"prefixListId" - } - } - }, - "PrefixListIdList":{ - "type":"list", - "member":{ - "shape":"PrefixListId", - "locationName":"item" - } - }, - "PrefixListIdSet":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"item" - } - }, - "PrefixListSet":{ - "type":"list", - "member":{ - "shape":"PrefixList", - "locationName":"item" - } - }, - "PriceSchedule":{ - "type":"structure", - "members":{ - "Term":{ - "shape":"Long", - "locationName":"term" - }, - "Price":{ - "shape":"Double", - "locationName":"price" - }, - "CurrencyCode":{ - "shape":"CurrencyCodeValues", - "locationName":"currencyCode" - }, - "Active":{ - "shape":"Boolean", - "locationName":"active" - } - } - }, - "PriceScheduleList":{ - "type":"list", - "member":{ - "shape":"PriceSchedule", - "locationName":"item" - } - }, - "PriceScheduleSpecification":{ - "type":"structure", - "members":{ - "Term":{ - "shape":"Long", - "locationName":"term" - }, - "Price":{ - "shape":"Double", - "locationName":"price" - }, - "CurrencyCode":{ - "shape":"CurrencyCodeValues", - "locationName":"currencyCode" - } - } - }, - "PriceScheduleSpecificationList":{ - "type":"list", - "member":{ - "shape":"PriceScheduleSpecification", - "locationName":"item" - } - }, - "PricingDetail":{ - "type":"structure", - "members":{ - "Price":{ - "shape":"Double", - "locationName":"price" - }, - "Count":{ - "shape":"Integer", - "locationName":"count" - } - } - }, - "PricingDetailsList":{ - "type":"list", - "member":{ - "shape":"PricingDetail", - "locationName":"item" - } - }, - "PrivateIpAddressConfigSet":{ - "type":"list", - "member":{ - "shape":"ScheduledInstancesPrivateIpAddressConfig", - "locationName":"PrivateIpAddressConfigSet" - } - }, - "PrivateIpAddressSpecification":{ - "type":"structure", - "required":["PrivateIpAddress"], - "members":{ - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - }, - "Primary":{ - "shape":"Boolean", - "locationName":"primary" - } - } - }, - "PrivateIpAddressSpecificationList":{ - "type":"list", - "member":{ - "shape":"PrivateIpAddressSpecification", - "locationName":"item" - } - }, - "PrivateIpAddressStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"PrivateIpAddress" - } - }, - "ProductCode":{ - "type":"structure", - "members":{ - "ProductCodeId":{ - "shape":"String", - "locationName":"productCode" - }, - "ProductCodeType":{ - "shape":"ProductCodeValues", - "locationName":"type" - } - } - }, - "ProductCodeList":{ - "type":"list", - "member":{ - "shape":"ProductCode", - "locationName":"item" - } - }, - "ProductCodeStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ProductCode" - } - }, - "ProductCodeValues":{ - "type":"string", - "enum":[ - "devpay", - "marketplace" - ] - }, - "ProductDescriptionList":{ - "type":"list", - "member":{"shape":"String"} - }, - "PropagatingVgw":{ - "type":"structure", - "members":{ - "GatewayId":{ - "shape":"String", - "locationName":"gatewayId" - } - } - }, - "PropagatingVgwList":{ - "type":"list", - "member":{ - "shape":"PropagatingVgw", - "locationName":"item" - } - }, - "ProvisionedBandwidth":{ - "type":"structure", - "members":{ - "Provisioned":{ - "shape":"String", - "locationName":"provisioned" - }, - "Requested":{ - "shape":"String", - "locationName":"requested" - }, - "RequestTime":{ - "shape":"DateTime", - "locationName":"requestTime" - }, - "ProvisionTime":{ - "shape":"DateTime", - "locationName":"provisionTime" - }, - "Status":{ - "shape":"String", - "locationName":"status" - } - } - }, - "PublicIpStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"PublicIp" - } - }, - "PurchaseRequest":{ - "type":"structure", - "required":[ - "PurchaseToken", - "InstanceCount" - ], - "members":{ - "PurchaseToken":{"shape":"String"}, - "InstanceCount":{"shape":"Integer"} - } - }, - "PurchaseRequestSet":{ - "type":"list", - "member":{ - "shape":"PurchaseRequest", - "locationName":"PurchaseRequest" - }, - "min":1 - }, - "PurchaseReservedInstancesOfferingRequest":{ - "type":"structure", - "required":[ - "ReservedInstancesOfferingId", - "InstanceCount" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ReservedInstancesOfferingId":{"shape":"String"}, - "InstanceCount":{"shape":"Integer"}, - "LimitPrice":{ - "shape":"ReservedInstanceLimitPrice", - "locationName":"limitPrice" - } - } - }, - "PurchaseReservedInstancesOfferingResult":{ - "type":"structure", - "members":{ - "ReservedInstancesId":{ - "shape":"String", - "locationName":"reservedInstancesId" - } - } - }, - "PurchaseScheduledInstancesRequest":{ - "type":"structure", - "required":["PurchaseRequests"], - "members":{ - "DryRun":{"shape":"Boolean"}, - "ClientToken":{ - "shape":"String", - "idempotencyToken":true - }, - "PurchaseRequests":{ - "shape":"PurchaseRequestSet", - "locationName":"PurchaseRequest" - } - } - }, - "PurchaseScheduledInstancesResult":{ - "type":"structure", - "members":{ - "ScheduledInstanceSet":{ - "shape":"PurchasedScheduledInstanceSet", - "locationName":"scheduledInstanceSet" - } - } - }, - "PurchasedScheduledInstanceSet":{ - "type":"list", - "member":{ - "shape":"ScheduledInstance", - "locationName":"item" - } - }, - "RIProductDescription":{ - "type":"string", - "enum":[ - "Linux/UNIX", - "Linux/UNIX (Amazon VPC)", - "Windows", - "Windows (Amazon VPC)" - ] - }, - "ReasonCodesList":{ - "type":"list", - "member":{ - "shape":"ReportInstanceReasonCodes", - "locationName":"item" - } - }, - "RebootInstancesRequest":{ - "type":"structure", - "required":["InstanceIds"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceIds":{ - "shape":"InstanceIdStringList", - "locationName":"InstanceId" - } - } - }, - "RecurringCharge":{ - "type":"structure", - "members":{ - "Frequency":{ - "shape":"RecurringChargeFrequency", - "locationName":"frequency" - }, - "Amount":{ - "shape":"Double", - "locationName":"amount" - } - } - }, - "RecurringChargeFrequency":{ - "type":"string", - "enum":["Hourly"] - }, - "RecurringChargesList":{ - "type":"list", - "member":{ - "shape":"RecurringCharge", - "locationName":"item" - } - }, - "Region":{ - "type":"structure", - "members":{ - "RegionName":{ - "shape":"String", - "locationName":"regionName" - }, - "Endpoint":{ - "shape":"String", - "locationName":"regionEndpoint" - } - } - }, - "RegionList":{ - "type":"list", - "member":{ - "shape":"Region", - "locationName":"item" - } - }, - "RegionNameStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"RegionName" - } - }, - "RegisterImageRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ImageLocation":{"shape":"String"}, - "Name":{ - "shape":"String", - "locationName":"name" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "Architecture":{ - "shape":"ArchitectureValues", - "locationName":"architecture" - }, - "KernelId":{ - "shape":"String", - "locationName":"kernelId" - }, - "RamdiskId":{ - "shape":"String", - "locationName":"ramdiskId" - }, - "RootDeviceName":{ - "shape":"String", - "locationName":"rootDeviceName" - }, - "BlockDeviceMappings":{ - "shape":"BlockDeviceMappingRequestList", - "locationName":"BlockDeviceMapping" - }, - "VirtualizationType":{ - "shape":"String", - "locationName":"virtualizationType" - }, - "SriovNetSupport":{ - "shape":"String", - "locationName":"sriovNetSupport" - } - } - }, - "RegisterImageResult":{ - "type":"structure", - "members":{ - "ImageId":{ - "shape":"String", - "locationName":"imageId" - } - } - }, - "RejectVpcPeeringConnectionRequest":{ - "type":"structure", - "required":["VpcPeeringConnectionId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "VpcPeeringConnectionId":{ - "shape":"String", - "locationName":"vpcPeeringConnectionId" - } - } - }, - "RejectVpcPeeringConnectionResult":{ - "type":"structure", - "members":{ - "Return":{ - "shape":"Boolean", - "locationName":"return" - } - } - }, - "ReleaseAddressRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "PublicIp":{"shape":"String"}, - "AllocationId":{"shape":"String"} - } - }, - "ReleaseHostsRequest":{ - "type":"structure", - "required":["HostIds"], - "members":{ - "HostIds":{ - "shape":"RequestHostIdList", - "locationName":"hostId" - } - } - }, - "ReleaseHostsResult":{ - "type":"structure", - "members":{ - "Successful":{ - "shape":"ResponseHostIdList", - "locationName":"successful" - }, - "Unsuccessful":{ - "shape":"UnsuccessfulItemList", - "locationName":"unsuccessful" - } - } - }, - "ReplaceNetworkAclAssociationRequest":{ - "type":"structure", - "required":[ - "AssociationId", - "NetworkAclId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "AssociationId":{ - "shape":"String", - "locationName":"associationId" - }, - "NetworkAclId":{ - "shape":"String", - "locationName":"networkAclId" - } - } - }, - "ReplaceNetworkAclAssociationResult":{ - "type":"structure", - "members":{ - "NewAssociationId":{ - "shape":"String", - "locationName":"newAssociationId" - } - } - }, - "ReplaceNetworkAclEntryRequest":{ - "type":"structure", - "required":[ - "NetworkAclId", - "RuleNumber", - "Protocol", - "RuleAction", - "Egress", - "CidrBlock" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkAclId":{ - "shape":"String", - "locationName":"networkAclId" - }, - "RuleNumber":{ - "shape":"Integer", - "locationName":"ruleNumber" - }, - "Protocol":{ - "shape":"String", - "locationName":"protocol" - }, - "RuleAction":{ - "shape":"RuleAction", - "locationName":"ruleAction" - }, - "Egress":{ - "shape":"Boolean", - "locationName":"egress" - }, - "CidrBlock":{ - "shape":"String", - "locationName":"cidrBlock" - }, - "IcmpTypeCode":{ - "shape":"IcmpTypeCode", - "locationName":"Icmp" - }, - "PortRange":{ - "shape":"PortRange", - "locationName":"portRange" - } - } - }, - "ReplaceRouteRequest":{ - "type":"structure", - "required":[ - "RouteTableId", - "DestinationCidrBlock" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "RouteTableId":{ - "shape":"String", - "locationName":"routeTableId" - }, - "DestinationCidrBlock":{ - "shape":"String", - "locationName":"destinationCidrBlock" - }, - "GatewayId":{ - "shape":"String", - "locationName":"gatewayId" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "VpcPeeringConnectionId":{ - "shape":"String", - "locationName":"vpcPeeringConnectionId" - }, - "NatGatewayId":{ - "shape":"String", - "locationName":"natGatewayId" - } - } - }, - "ReplaceRouteTableAssociationRequest":{ - "type":"structure", - "required":[ - "AssociationId", - "RouteTableId" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "AssociationId":{ - "shape":"String", - "locationName":"associationId" - }, - "RouteTableId":{ - "shape":"String", - "locationName":"routeTableId" - } - } - }, - "ReplaceRouteTableAssociationResult":{ - "type":"structure", - "members":{ - "NewAssociationId":{ - "shape":"String", - "locationName":"newAssociationId" - } - } - }, - "ReportInstanceReasonCodes":{ - "type":"string", - "enum":[ - "instance-stuck-in-state", - "unresponsive", - "not-accepting-credentials", - "password-not-available", - "performance-network", - "performance-instance-store", - "performance-ebs-volume", - "performance-other", - "other" - ] - }, - "ReportInstanceStatusRequest":{ - "type":"structure", - "required":[ - "Instances", - "Status", - "ReasonCodes" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "Instances":{ - "shape":"InstanceIdStringList", - "locationName":"instanceId" - }, - "Status":{ - "shape":"ReportStatusType", - "locationName":"status" - }, - "StartTime":{ - "shape":"DateTime", - "locationName":"startTime" - }, - "EndTime":{ - "shape":"DateTime", - "locationName":"endTime" - }, - "ReasonCodes":{ - "shape":"ReasonCodesList", - "locationName":"reasonCode" - }, - "Description":{ - "shape":"String", - "locationName":"description" - } - } - }, - "ReportStatusType":{ - "type":"string", - "enum":[ - "ok", - "impaired" - ] - }, - "RequestHostIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"item" - } - }, - "RequestSpotFleetRequest":{ - "type":"structure", - "required":["SpotFleetRequestConfig"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SpotFleetRequestConfig":{ - "shape":"SpotFleetRequestConfigData", - "locationName":"spotFleetRequestConfig" - } - } - }, - "RequestSpotFleetResponse":{ - "type":"structure", - "required":["SpotFleetRequestId"], - "members":{ - "SpotFleetRequestId":{ - "shape":"String", - "locationName":"spotFleetRequestId" - } - } - }, - "RequestSpotInstancesRequest":{ - "type":"structure", - "required":["SpotPrice"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SpotPrice":{ - "shape":"String", - "locationName":"spotPrice" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - }, - "InstanceCount":{ - "shape":"Integer", - "locationName":"instanceCount" - }, - "Type":{ - "shape":"SpotInstanceType", - "locationName":"type" - }, - "ValidFrom":{ - "shape":"DateTime", - "locationName":"validFrom" - }, - "ValidUntil":{ - "shape":"DateTime", - "locationName":"validUntil" - }, - "LaunchGroup":{ - "shape":"String", - "locationName":"launchGroup" - }, - "AvailabilityZoneGroup":{ - "shape":"String", - "locationName":"availabilityZoneGroup" - }, - "BlockDurationMinutes":{ - "shape":"Integer", - "locationName":"blockDurationMinutes" - }, - "LaunchSpecification":{"shape":"RequestSpotLaunchSpecification"} - } - }, - "RequestSpotInstancesResult":{ - "type":"structure", - "members":{ - "SpotInstanceRequests":{ - "shape":"SpotInstanceRequestList", - "locationName":"spotInstanceRequestSet" - } - } - }, - "RequestSpotLaunchSpecification":{ - "type":"structure", - "members":{ - "ImageId":{ - "shape":"String", - "locationName":"imageId" - }, - "KeyName":{ - "shape":"String", - "locationName":"keyName" - }, - "SecurityGroups":{ - "shape":"ValueStringList", - "locationName":"SecurityGroup" - }, - "UserData":{ - "shape":"String", - "locationName":"userData" - }, - "AddressingType":{ - "shape":"String", - "locationName":"addressingType" - }, - "InstanceType":{ - "shape":"InstanceType", - "locationName":"instanceType" - }, - "Placement":{ - "shape":"SpotPlacement", - "locationName":"placement" - }, - "KernelId":{ - "shape":"String", - "locationName":"kernelId" - }, - "RamdiskId":{ - "shape":"String", - "locationName":"ramdiskId" - }, - "BlockDeviceMappings":{ - "shape":"BlockDeviceMappingList", - "locationName":"blockDeviceMapping" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "NetworkInterfaces":{ - "shape":"InstanceNetworkInterfaceSpecificationList", - "locationName":"NetworkInterface" - }, - "IamInstanceProfile":{ - "shape":"IamInstanceProfileSpecification", - "locationName":"iamInstanceProfile" - }, - "EbsOptimized":{ - "shape":"Boolean", - "locationName":"ebsOptimized" - }, - "Monitoring":{ - "shape":"RunInstancesMonitoringEnabled", - "locationName":"monitoring" - }, - "SecurityGroupIds":{ - "shape":"ValueStringList", - "locationName":"SecurityGroupId" - } - } - }, - "Reservation":{ - "type":"structure", - "members":{ - "ReservationId":{ - "shape":"String", - "locationName":"reservationId" - }, - "OwnerId":{ - "shape":"String", - "locationName":"ownerId" - }, - "RequesterId":{ - "shape":"String", - "locationName":"requesterId" - }, - "Groups":{ - "shape":"GroupIdentifierList", - "locationName":"groupSet" - }, - "Instances":{ - "shape":"InstanceList", - "locationName":"instancesSet" - } - } - }, - "ReservationList":{ - "type":"list", - "member":{ - "shape":"Reservation", - "locationName":"item" - } - }, - "ReservedInstanceLimitPrice":{ - "type":"structure", - "members":{ - "Amount":{ - "shape":"Double", - "locationName":"amount" - }, - "CurrencyCode":{ - "shape":"CurrencyCodeValues", - "locationName":"currencyCode" - } - } - }, - "ReservedInstanceState":{ - "type":"string", - "enum":[ - "payment-pending", - "active", - "payment-failed", - "retired" - ] - }, - "ReservedInstances":{ - "type":"structure", - "members":{ - "ReservedInstancesId":{ - "shape":"String", - "locationName":"reservedInstancesId" - }, - "InstanceType":{ - "shape":"InstanceType", - "locationName":"instanceType" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "Start":{ - "shape":"DateTime", - "locationName":"start" - }, - "End":{ - "shape":"DateTime", - "locationName":"end" - }, - "Duration":{ - "shape":"Long", - "locationName":"duration" - }, - "UsagePrice":{ - "shape":"Float", - "locationName":"usagePrice" - }, - "FixedPrice":{ - "shape":"Float", - "locationName":"fixedPrice" - }, - "InstanceCount":{ - "shape":"Integer", - "locationName":"instanceCount" - }, - "ProductDescription":{ - "shape":"RIProductDescription", - "locationName":"productDescription" - }, - "State":{ - "shape":"ReservedInstanceState", - "locationName":"state" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "InstanceTenancy":{ - "shape":"Tenancy", - "locationName":"instanceTenancy" - }, - "CurrencyCode":{ - "shape":"CurrencyCodeValues", - "locationName":"currencyCode" - }, - "OfferingType":{ - "shape":"OfferingTypeValues", - "locationName":"offeringType" - }, - "RecurringCharges":{ - "shape":"RecurringChargesList", - "locationName":"recurringCharges" - } - } - }, - "ReservedInstancesConfiguration":{ - "type":"structure", - "members":{ - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "Platform":{ - "shape":"String", - "locationName":"platform" - }, - "InstanceCount":{ - "shape":"Integer", - "locationName":"instanceCount" - }, - "InstanceType":{ - "shape":"InstanceType", - "locationName":"instanceType" - } - } - }, - "ReservedInstancesConfigurationList":{ - "type":"list", - "member":{ - "shape":"ReservedInstancesConfiguration", - "locationName":"item" - } - }, - "ReservedInstancesId":{ - "type":"structure", - "members":{ - "ReservedInstancesId":{ - "shape":"String", - "locationName":"reservedInstancesId" - } - } - }, - "ReservedInstancesIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ReservedInstancesId" - } - }, - "ReservedInstancesList":{ - "type":"list", - "member":{ - "shape":"ReservedInstances", - "locationName":"item" - } - }, - "ReservedInstancesListing":{ - "type":"structure", - "members":{ - "ReservedInstancesListingId":{ - "shape":"String", - "locationName":"reservedInstancesListingId" - }, - "ReservedInstancesId":{ - "shape":"String", - "locationName":"reservedInstancesId" - }, - "CreateDate":{ - "shape":"DateTime", - "locationName":"createDate" - }, - "UpdateDate":{ - "shape":"DateTime", - "locationName":"updateDate" - }, - "Status":{ - "shape":"ListingStatus", - "locationName":"status" - }, - "StatusMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "InstanceCounts":{ - "shape":"InstanceCountList", - "locationName":"instanceCounts" - }, - "PriceSchedules":{ - "shape":"PriceScheduleList", - "locationName":"priceSchedules" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - } - } - }, - "ReservedInstancesListingList":{ - "type":"list", - "member":{ - "shape":"ReservedInstancesListing", - "locationName":"item" - } - }, - "ReservedInstancesModification":{ - "type":"structure", - "members":{ - "ReservedInstancesModificationId":{ - "shape":"String", - "locationName":"reservedInstancesModificationId" - }, - "ReservedInstancesIds":{ - "shape":"ReservedIntancesIds", - "locationName":"reservedInstancesSet" - }, - "ModificationResults":{ - "shape":"ReservedInstancesModificationResultList", - "locationName":"modificationResultSet" - }, - "CreateDate":{ - "shape":"DateTime", - "locationName":"createDate" - }, - "UpdateDate":{ - "shape":"DateTime", - "locationName":"updateDate" - }, - "EffectiveDate":{ - "shape":"DateTime", - "locationName":"effectiveDate" - }, - "Status":{ - "shape":"String", - "locationName":"status" - }, - "StatusMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - } - } - }, - "ReservedInstancesModificationIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ReservedInstancesModificationId" - } - }, - "ReservedInstancesModificationList":{ - "type":"list", - "member":{ - "shape":"ReservedInstancesModification", - "locationName":"item" - } - }, - "ReservedInstancesModificationResult":{ - "type":"structure", - "members":{ - "ReservedInstancesId":{ - "shape":"String", - "locationName":"reservedInstancesId" - }, - "TargetConfiguration":{ - "shape":"ReservedInstancesConfiguration", - "locationName":"targetConfiguration" - } - } - }, - "ReservedInstancesModificationResultList":{ - "type":"list", - "member":{ - "shape":"ReservedInstancesModificationResult", - "locationName":"item" - } - }, - "ReservedInstancesOffering":{ - "type":"structure", - "members":{ - "ReservedInstancesOfferingId":{ - "shape":"String", - "locationName":"reservedInstancesOfferingId" - }, - "InstanceType":{ - "shape":"InstanceType", - "locationName":"instanceType" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "Duration":{ - "shape":"Long", - "locationName":"duration" - }, - "UsagePrice":{ - "shape":"Float", - "locationName":"usagePrice" - }, - "FixedPrice":{ - "shape":"Float", - "locationName":"fixedPrice" - }, - "ProductDescription":{ - "shape":"RIProductDescription", - "locationName":"productDescription" - }, - "InstanceTenancy":{ - "shape":"Tenancy", - "locationName":"instanceTenancy" - }, - "CurrencyCode":{ - "shape":"CurrencyCodeValues", - "locationName":"currencyCode" - }, - "OfferingType":{ - "shape":"OfferingTypeValues", - "locationName":"offeringType" - }, - "RecurringCharges":{ - "shape":"RecurringChargesList", - "locationName":"recurringCharges" - }, - "Marketplace":{ - "shape":"Boolean", - "locationName":"marketplace" - }, - "PricingDetails":{ - "shape":"PricingDetailsList", - "locationName":"pricingDetailsSet" - } - } - }, - "ReservedInstancesOfferingIdStringList":{ - "type":"list", - "member":{"shape":"String"} - }, - "ReservedInstancesOfferingList":{ - "type":"list", - "member":{ - "shape":"ReservedInstancesOffering", - "locationName":"item" - } - }, - "ReservedIntancesIds":{ - "type":"list", - "member":{ - "shape":"ReservedInstancesId", - "locationName":"item" - } - }, - "ResetImageAttributeName":{ - "type":"string", - "enum":["launchPermission"] - }, - "ResetImageAttributeRequest":{ - "type":"structure", - "required":[ - "ImageId", - "Attribute" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ImageId":{"shape":"String"}, - "Attribute":{"shape":"ResetImageAttributeName"} - } - }, - "ResetInstanceAttributeRequest":{ - "type":"structure", - "required":[ - "InstanceId", - "Attribute" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "Attribute":{ - "shape":"InstanceAttributeName", - "locationName":"attribute" - } - } - }, - "ResetNetworkInterfaceAttributeRequest":{ - "type":"structure", - "required":["NetworkInterfaceId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "SourceDestCheck":{ - "shape":"String", - "locationName":"sourceDestCheck" - } - } - }, - "ResetSnapshotAttributeRequest":{ - "type":"structure", - "required":[ - "SnapshotId", - "Attribute" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "SnapshotId":{"shape":"String"}, - "Attribute":{"shape":"SnapshotAttributeName"} - } - }, - "ResourceIdList":{ - "type":"list", - "member":{"shape":"String"} - }, - "ResourceType":{ - "type":"string", - "enum":[ - "customer-gateway", - "dhcp-options", - "image", - "instance", - "internet-gateway", - "network-acl", - "network-interface", - "reserved-instances", - "route-table", - "snapshot", - "spot-instances-request", - "subnet", - "security-group", - "volume", - "vpc", - "vpn-connection", - "vpn-gateway" - ] - }, - "ResponseHostIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"item" - } - }, - "RestorableByStringList":{ - "type":"list", - "member":{"shape":"String"} - }, - "RestoreAddressToClassicRequest":{ - "type":"structure", - "required":["PublicIp"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "PublicIp":{ - "shape":"String", - "locationName":"publicIp" - } - } - }, - "RestoreAddressToClassicResult":{ - "type":"structure", - "members":{ - "Status":{ - "shape":"Status", - "locationName":"status" - }, - "PublicIp":{ - "shape":"String", - "locationName":"publicIp" - } - } - }, - "RevokeSecurityGroupEgressRequest":{ - "type":"structure", - "required":["GroupId"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "GroupId":{ - "shape":"String", - "locationName":"groupId" - }, - "SourceSecurityGroupName":{ - "shape":"String", - "locationName":"sourceSecurityGroupName" - }, - "SourceSecurityGroupOwnerId":{ - "shape":"String", - "locationName":"sourceSecurityGroupOwnerId" - }, - "IpProtocol":{ - "shape":"String", - "locationName":"ipProtocol" - }, - "FromPort":{ - "shape":"Integer", - "locationName":"fromPort" - }, - "ToPort":{ - "shape":"Integer", - "locationName":"toPort" - }, - "CidrIp":{ - "shape":"String", - "locationName":"cidrIp" - }, - "IpPermissions":{ - "shape":"IpPermissionList", - "locationName":"ipPermissions" - } - } - }, - "RevokeSecurityGroupIngressRequest":{ - "type":"structure", - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "GroupName":{"shape":"String"}, - "GroupId":{"shape":"String"}, - "SourceSecurityGroupName":{"shape":"String"}, - "SourceSecurityGroupOwnerId":{"shape":"String"}, - "IpProtocol":{"shape":"String"}, - "FromPort":{"shape":"Integer"}, - "ToPort":{"shape":"Integer"}, - "CidrIp":{"shape":"String"}, - "IpPermissions":{"shape":"IpPermissionList"} - } - }, - "Route":{ - "type":"structure", - "members":{ - "DestinationCidrBlock":{ - "shape":"String", - "locationName":"destinationCidrBlock" - }, - "DestinationPrefixListId":{ - "shape":"String", - "locationName":"destinationPrefixListId" - }, - "GatewayId":{ - "shape":"String", - "locationName":"gatewayId" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "InstanceOwnerId":{ - "shape":"String", - "locationName":"instanceOwnerId" - }, - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "VpcPeeringConnectionId":{ - "shape":"String", - "locationName":"vpcPeeringConnectionId" - }, - "NatGatewayId":{ - "shape":"String", - "locationName":"natGatewayId" - }, - "State":{ - "shape":"RouteState", - "locationName":"state" - }, - "Origin":{ - "shape":"RouteOrigin", - "locationName":"origin" - } - } - }, - "RouteList":{ - "type":"list", - "member":{ - "shape":"Route", - "locationName":"item" - } - }, - "RouteOrigin":{ - "type":"string", - "enum":[ - "CreateRouteTable", - "CreateRoute", - "EnableVgwRoutePropagation" - ] - }, - "RouteState":{ - "type":"string", - "enum":[ - "active", - "blackhole" - ] - }, - "RouteTable":{ - "type":"structure", - "members":{ - "RouteTableId":{ - "shape":"String", - "locationName":"routeTableId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "Routes":{ - "shape":"RouteList", - "locationName":"routeSet" - }, - "Associations":{ - "shape":"RouteTableAssociationList", - "locationName":"associationSet" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "PropagatingVgws":{ - "shape":"PropagatingVgwList", - "locationName":"propagatingVgwSet" - } - } - }, - "RouteTableAssociation":{ - "type":"structure", - "members":{ - "RouteTableAssociationId":{ - "shape":"String", - "locationName":"routeTableAssociationId" - }, - "RouteTableId":{ - "shape":"String", - "locationName":"routeTableId" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "Main":{ - "shape":"Boolean", - "locationName":"main" - } - } - }, - "RouteTableAssociationList":{ - "type":"list", - "member":{ - "shape":"RouteTableAssociation", - "locationName":"item" - } - }, - "RouteTableList":{ - "type":"list", - "member":{ - "shape":"RouteTable", - "locationName":"item" - } - }, - "RuleAction":{ - "type":"string", - "enum":[ - "allow", - "deny" - ] - }, - "RunInstancesMonitoringEnabled":{ - "type":"structure", - "required":["Enabled"], - "members":{ - "Enabled":{ - "shape":"Boolean", - "locationName":"enabled" - } - } - }, - "RunInstancesRequest":{ - "type":"structure", - "required":[ - "ImageId", - "MinCount", - "MaxCount" - ], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "ImageId":{"shape":"String"}, - "MinCount":{"shape":"Integer"}, - "MaxCount":{"shape":"Integer"}, - "KeyName":{"shape":"String"}, - "SecurityGroups":{ - "shape":"SecurityGroupStringList", - "locationName":"SecurityGroup" - }, - "SecurityGroupIds":{ - "shape":"SecurityGroupIdStringList", - "locationName":"SecurityGroupId" - }, - "UserData":{"shape":"String"}, - "InstanceType":{"shape":"InstanceType"}, - "Placement":{"shape":"Placement"}, - "KernelId":{"shape":"String"}, - "RamdiskId":{"shape":"String"}, - "BlockDeviceMappings":{ - "shape":"BlockDeviceMappingRequestList", - "locationName":"BlockDeviceMapping" - }, - "Monitoring":{"shape":"RunInstancesMonitoringEnabled"}, - "SubnetId":{"shape":"String"}, - "DisableApiTermination":{ - "shape":"Boolean", - "locationName":"disableApiTermination" - }, - "InstanceInitiatedShutdownBehavior":{ - "shape":"ShutdownBehavior", - "locationName":"instanceInitiatedShutdownBehavior" - }, - "PrivateIpAddress":{ - "shape":"String", - "locationName":"privateIpAddress" - }, - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - }, - "AdditionalInfo":{ - "shape":"String", - "locationName":"additionalInfo" - }, - "NetworkInterfaces":{ - "shape":"InstanceNetworkInterfaceSpecificationList", - "locationName":"networkInterface" - }, - "IamInstanceProfile":{ - "shape":"IamInstanceProfileSpecification", - "locationName":"iamInstanceProfile" - }, - "EbsOptimized":{ - "shape":"Boolean", - "locationName":"ebsOptimized" - } - } - }, - "RunScheduledInstancesRequest":{ - "type":"structure", - "required":[ - "ScheduledInstanceId", - "LaunchSpecification" - ], - "members":{ - "DryRun":{"shape":"Boolean"}, - "ClientToken":{ - "shape":"String", - "idempotencyToken":true - }, - "InstanceCount":{"shape":"Integer"}, - "ScheduledInstanceId":{"shape":"String"}, - "LaunchSpecification":{"shape":"ScheduledInstancesLaunchSpecification"} - } - }, - "RunScheduledInstancesResult":{ - "type":"structure", - "members":{ - "InstanceIdSet":{ - "shape":"InstanceIdSet", - "locationName":"instanceIdSet" - } - } - }, - "S3Storage":{ - "type":"structure", - "members":{ - "Bucket":{ - "shape":"String", - "locationName":"bucket" - }, - "Prefix":{ - "shape":"String", - "locationName":"prefix" - }, - "AWSAccessKeyId":{"shape":"String"}, - "UploadPolicy":{ - "shape":"Blob", - "locationName":"uploadPolicy" - }, - "UploadPolicySignature":{ - "shape":"String", - "locationName":"uploadPolicySignature" - } - } - }, - "ScheduledInstance":{ - "type":"structure", - "members":{ - "ScheduledInstanceId":{ - "shape":"String", - "locationName":"scheduledInstanceId" - }, - "InstanceType":{ - "shape":"String", - "locationName":"instanceType" - }, - "Platform":{ - "shape":"String", - "locationName":"platform" - }, - "NetworkPlatform":{ - "shape":"String", - "locationName":"networkPlatform" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "SlotDurationInHours":{ - "shape":"Integer", - "locationName":"slotDurationInHours" - }, - "Recurrence":{ - "shape":"ScheduledInstanceRecurrence", - "locationName":"recurrence" - }, - "PreviousSlotEndTime":{ - "shape":"DateTime", - "locationName":"previousSlotEndTime" - }, - "NextSlotStartTime":{ - "shape":"DateTime", - "locationName":"nextSlotStartTime" - }, - "HourlyPrice":{ - "shape":"String", - "locationName":"hourlyPrice" - }, - "TotalScheduledInstanceHours":{ - "shape":"Integer", - "locationName":"totalScheduledInstanceHours" - }, - "InstanceCount":{ - "shape":"Integer", - "locationName":"instanceCount" - }, - "TermStartDate":{ - "shape":"DateTime", - "locationName":"termStartDate" - }, - "TermEndDate":{ - "shape":"DateTime", - "locationName":"termEndDate" - }, - "CreateDate":{ - "shape":"DateTime", - "locationName":"createDate" - } - } - }, - "ScheduledInstanceAvailability":{ - "type":"structure", - "members":{ - "InstanceType":{ - "shape":"String", - "locationName":"instanceType" - }, - "Platform":{ - "shape":"String", - "locationName":"platform" - }, - "NetworkPlatform":{ - "shape":"String", - "locationName":"networkPlatform" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "PurchaseToken":{ - "shape":"String", - "locationName":"purchaseToken" - }, - "SlotDurationInHours":{ - "shape":"Integer", - "locationName":"slotDurationInHours" - }, - "Recurrence":{ - "shape":"ScheduledInstanceRecurrence", - "locationName":"recurrence" - }, - "FirstSlotStartTime":{ - "shape":"DateTime", - "locationName":"firstSlotStartTime" - }, - "HourlyPrice":{ - "shape":"String", - "locationName":"hourlyPrice" - }, - "TotalScheduledInstanceHours":{ - "shape":"Integer", - "locationName":"totalScheduledInstanceHours" - }, - "AvailableInstanceCount":{ - "shape":"Integer", - "locationName":"availableInstanceCount" - }, - "MinTermDurationInDays":{ - "shape":"Integer", - "locationName":"minTermDurationInDays" - }, - "MaxTermDurationInDays":{ - "shape":"Integer", - "locationName":"maxTermDurationInDays" - } - } - }, - "ScheduledInstanceAvailabilitySet":{ - "type":"list", - "member":{ - "shape":"ScheduledInstanceAvailability", - "locationName":"item" - } - }, - "ScheduledInstanceIdRequestSet":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ScheduledInstanceId" - } - }, - "ScheduledInstanceRecurrence":{ - "type":"structure", - "members":{ - "Frequency":{ - "shape":"String", - "locationName":"frequency" - }, - "Interval":{ - "shape":"Integer", - "locationName":"interval" - }, - "OccurrenceDaySet":{ - "shape":"OccurrenceDaySet", - "locationName":"occurrenceDaySet" - }, - "OccurrenceRelativeToEnd":{ - "shape":"Boolean", - "locationName":"occurrenceRelativeToEnd" - }, - "OccurrenceUnit":{ - "shape":"String", - "locationName":"occurrenceUnit" - } - } - }, - "ScheduledInstanceRecurrenceRequest":{ - "type":"structure", - "members":{ - "Frequency":{"shape":"String"}, - "Interval":{"shape":"Integer"}, - "OccurrenceDays":{ - "shape":"OccurrenceDayRequestSet", - "locationName":"OccurrenceDay" - }, - "OccurrenceRelativeToEnd":{"shape":"Boolean"}, - "OccurrenceUnit":{"shape":"String"} - } - }, - "ScheduledInstanceSet":{ - "type":"list", - "member":{ - "shape":"ScheduledInstance", - "locationName":"item" - } - }, - "ScheduledInstancesBlockDeviceMapping":{ - "type":"structure", - "members":{ - "DeviceName":{"shape":"String"}, - "NoDevice":{"shape":"String"}, - "VirtualName":{"shape":"String"}, - "Ebs":{"shape":"ScheduledInstancesEbs"} - } - }, - "ScheduledInstancesBlockDeviceMappingSet":{ - "type":"list", - "member":{ - "shape":"ScheduledInstancesBlockDeviceMapping", - "locationName":"BlockDeviceMapping" - } - }, - "ScheduledInstancesEbs":{ - "type":"structure", - "members":{ - "SnapshotId":{"shape":"String"}, - "VolumeSize":{"shape":"Integer"}, - "DeleteOnTermination":{"shape":"Boolean"}, - "VolumeType":{"shape":"String"}, - "Iops":{"shape":"Integer"}, - "Encrypted":{"shape":"Boolean"} - } - }, - "ScheduledInstancesIamInstanceProfile":{ - "type":"structure", - "members":{ - "Arn":{"shape":"String"}, - "Name":{"shape":"String"} - } - }, - "ScheduledInstancesLaunchSpecification":{ - "type":"structure", - "required":["ImageId"], - "members":{ - "ImageId":{"shape":"String"}, - "KeyName":{"shape":"String"}, - "SecurityGroupIds":{ - "shape":"ScheduledInstancesSecurityGroupIdSet", - "locationName":"SecurityGroupId" - }, - "UserData":{"shape":"String"}, - "Placement":{"shape":"ScheduledInstancesPlacement"}, - "KernelId":{"shape":"String"}, - "InstanceType":{"shape":"String"}, - "RamdiskId":{"shape":"String"}, - "BlockDeviceMappings":{ - "shape":"ScheduledInstancesBlockDeviceMappingSet", - "locationName":"BlockDeviceMapping" - }, - "Monitoring":{"shape":"ScheduledInstancesMonitoring"}, - "SubnetId":{"shape":"String"}, - "NetworkInterfaces":{ - "shape":"ScheduledInstancesNetworkInterfaceSet", - "locationName":"NetworkInterface" - }, - "IamInstanceProfile":{"shape":"ScheduledInstancesIamInstanceProfile"}, - "EbsOptimized":{"shape":"Boolean"} - } - }, - "ScheduledInstancesMonitoring":{ - "type":"structure", - "members":{ - "Enabled":{"shape":"Boolean"} - } - }, - "ScheduledInstancesNetworkInterface":{ - "type":"structure", - "members":{ - "NetworkInterfaceId":{"shape":"String"}, - "DeviceIndex":{"shape":"Integer"}, - "SubnetId":{"shape":"String"}, - "Description":{"shape":"String"}, - "PrivateIpAddress":{"shape":"String"}, - "PrivateIpAddressConfigs":{ - "shape":"PrivateIpAddressConfigSet", - "locationName":"PrivateIpAddressConfig" - }, - "SecondaryPrivateIpAddressCount":{"shape":"Integer"}, - "AssociatePublicIpAddress":{"shape":"Boolean"}, - "Groups":{ - "shape":"ScheduledInstancesSecurityGroupIdSet", - "locationName":"Group" - }, - "DeleteOnTermination":{"shape":"Boolean"} - } - }, - "ScheduledInstancesNetworkInterfaceSet":{ - "type":"list", - "member":{ - "shape":"ScheduledInstancesNetworkInterface", - "locationName":"NetworkInterface" - } - }, - "ScheduledInstancesPlacement":{ - "type":"structure", - "members":{ - "AvailabilityZone":{"shape":"String"}, - "GroupName":{"shape":"String"} - } - }, - "ScheduledInstancesPrivateIpAddressConfig":{ - "type":"structure", - "members":{ - "PrivateIpAddress":{"shape":"String"}, - "Primary":{"shape":"Boolean"} - } - }, - "ScheduledInstancesSecurityGroupIdSet":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SecurityGroupId" - } - }, - "SecurityGroup":{ - "type":"structure", - "members":{ - "OwnerId":{ - "shape":"String", - "locationName":"ownerId" - }, - "GroupName":{ - "shape":"String", - "locationName":"groupName" - }, - "GroupId":{ - "shape":"String", - "locationName":"groupId" - }, - "Description":{ - "shape":"String", - "locationName":"groupDescription" - }, - "IpPermissions":{ - "shape":"IpPermissionList", - "locationName":"ipPermissions" - }, - "IpPermissionsEgress":{ - "shape":"IpPermissionList", - "locationName":"ipPermissionsEgress" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - } - } - }, - "SecurityGroupIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SecurityGroupId" - } - }, - "SecurityGroupList":{ - "type":"list", - "member":{ - "shape":"SecurityGroup", - "locationName":"item" - } - }, - "SecurityGroupReference":{ - "type":"structure", - "required":[ - "GroupId", - "ReferencingVpcId" - ], - "members":{ - "GroupId":{ - "shape":"String", - "locationName":"groupId" - }, - "ReferencingVpcId":{ - "shape":"String", - "locationName":"referencingVpcId" - }, - "VpcPeeringConnectionId":{ - "shape":"String", - "locationName":"vpcPeeringConnectionId" - } - } - }, - "SecurityGroupReferences":{ - "type":"list", - "member":{ - "shape":"SecurityGroupReference", - "locationName":"item" - } - }, - "SecurityGroupStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SecurityGroup" - } - }, - "ShutdownBehavior":{ - "type":"string", - "enum":[ - "stop", - "terminate" - ] - }, - "SlotDateTimeRangeRequest":{ - "type":"structure", - "required":[ - "EarliestTime", - "LatestTime" - ], - "members":{ - "EarliestTime":{"shape":"DateTime"}, - "LatestTime":{"shape":"DateTime"} - } - }, - "SlotStartTimeRangeRequest":{ - "type":"structure", - "members":{ - "EarliestTime":{"shape":"DateTime"}, - "LatestTime":{"shape":"DateTime"} - } - }, - "Snapshot":{ - "type":"structure", - "members":{ - "SnapshotId":{ - "shape":"String", - "locationName":"snapshotId" - }, - "VolumeId":{ - "shape":"String", - "locationName":"volumeId" - }, - "State":{ - "shape":"SnapshotState", - "locationName":"status" - }, - "StateMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "StartTime":{ - "shape":"DateTime", - "locationName":"startTime" - }, - "Progress":{ - "shape":"String", - "locationName":"progress" - }, - "OwnerId":{ - "shape":"String", - "locationName":"ownerId" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "VolumeSize":{ - "shape":"Integer", - "locationName":"volumeSize" - }, - "OwnerAlias":{ - "shape":"String", - "locationName":"ownerAlias" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "Encrypted":{ - "shape":"Boolean", - "locationName":"encrypted" - }, - "KmsKeyId":{ - "shape":"String", - "locationName":"kmsKeyId" - }, - "DataEncryptionKeyId":{ - "shape":"String", - "locationName":"dataEncryptionKeyId" - } - } - }, - "SnapshotAttributeName":{ - "type":"string", - "enum":[ - "productCodes", - "createVolumePermission" - ] - }, - "SnapshotDetail":{ - "type":"structure", - "members":{ - "DiskImageSize":{ - "shape":"Double", - "locationName":"diskImageSize" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "Format":{ - "shape":"String", - "locationName":"format" - }, - "Url":{ - "shape":"String", - "locationName":"url" - }, - "UserBucket":{ - "shape":"UserBucketDetails", - "locationName":"userBucket" - }, - "DeviceName":{ - "shape":"String", - "locationName":"deviceName" - }, - "SnapshotId":{ - "shape":"String", - "locationName":"snapshotId" - }, - "Progress":{ - "shape":"String", - "locationName":"progress" - }, - "StatusMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "Status":{ - "shape":"String", - "locationName":"status" - } - } - }, - "SnapshotDetailList":{ - "type":"list", - "member":{ - "shape":"SnapshotDetail", - "locationName":"item" - } - }, - "SnapshotDiskContainer":{ - "type":"structure", - "members":{ - "Description":{"shape":"String"}, - "Format":{"shape":"String"}, - "Url":{"shape":"String"}, - "UserBucket":{"shape":"UserBucket"} - } - }, - "SnapshotIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SnapshotId" - } - }, - "SnapshotList":{ - "type":"list", - "member":{ - "shape":"Snapshot", - "locationName":"item" - } - }, - "SnapshotState":{ - "type":"string", - "enum":[ - "pending", - "completed", - "error" - ] - }, - "SnapshotTaskDetail":{ - "type":"structure", - "members":{ - "DiskImageSize":{ - "shape":"Double", - "locationName":"diskImageSize" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "Format":{ - "shape":"String", - "locationName":"format" - }, - "Url":{ - "shape":"String", - "locationName":"url" - }, - "UserBucket":{ - "shape":"UserBucketDetails", - "locationName":"userBucket" - }, - "SnapshotId":{ - "shape":"String", - "locationName":"snapshotId" - }, - "Progress":{ - "shape":"String", - "locationName":"progress" - }, - "StatusMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "Status":{ - "shape":"String", - "locationName":"status" - } - } - }, - "SpotDatafeedSubscription":{ - "type":"structure", - "members":{ - "OwnerId":{ - "shape":"String", - "locationName":"ownerId" - }, - "Bucket":{ - "shape":"String", - "locationName":"bucket" - }, - "Prefix":{ - "shape":"String", - "locationName":"prefix" - }, - "State":{ - "shape":"DatafeedSubscriptionState", - "locationName":"state" - }, - "Fault":{ - "shape":"SpotInstanceStateFault", - "locationName":"fault" - } - } - }, - "SpotFleetLaunchSpecification":{ - "type":"structure", - "members":{ - "ImageId":{ - "shape":"String", - "locationName":"imageId" - }, - "KeyName":{ - "shape":"String", - "locationName":"keyName" - }, - "SecurityGroups":{ - "shape":"GroupIdentifierList", - "locationName":"groupSet" - }, - "UserData":{ - "shape":"String", - "locationName":"userData" - }, - "AddressingType":{ - "shape":"String", - "locationName":"addressingType" - }, - "InstanceType":{ - "shape":"InstanceType", - "locationName":"instanceType" - }, - "Placement":{ - "shape":"SpotPlacement", - "locationName":"placement" - }, - "KernelId":{ - "shape":"String", - "locationName":"kernelId" - }, - "RamdiskId":{ - "shape":"String", - "locationName":"ramdiskId" - }, - "BlockDeviceMappings":{ - "shape":"BlockDeviceMappingList", - "locationName":"blockDeviceMapping" - }, - "Monitoring":{ - "shape":"SpotFleetMonitoring", - "locationName":"monitoring" - }, - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "NetworkInterfaces":{ - "shape":"InstanceNetworkInterfaceSpecificationList", - "locationName":"networkInterfaceSet" - }, - "IamInstanceProfile":{ - "shape":"IamInstanceProfileSpecification", - "locationName":"iamInstanceProfile" - }, - "EbsOptimized":{ - "shape":"Boolean", - "locationName":"ebsOptimized" - }, - "WeightedCapacity":{ - "shape":"Double", - "locationName":"weightedCapacity" - }, - "SpotPrice":{ - "shape":"String", - "locationName":"spotPrice" - } - } - }, - "SpotFleetMonitoring":{ - "type":"structure", - "members":{ - "Enabled":{ - "shape":"Boolean", - "locationName":"enabled" - } - } - }, - "SpotFleetRequestConfig":{ - "type":"structure", - "required":[ - "SpotFleetRequestId", - "SpotFleetRequestState", - "SpotFleetRequestConfig", - "CreateTime" - ], - "members":{ - "SpotFleetRequestId":{ - "shape":"String", - "locationName":"spotFleetRequestId" - }, - "SpotFleetRequestState":{ - "shape":"BatchState", - "locationName":"spotFleetRequestState" - }, - "SpotFleetRequestConfig":{ - "shape":"SpotFleetRequestConfigData", - "locationName":"spotFleetRequestConfig" - }, - "CreateTime":{ - "shape":"DateTime", - "locationName":"createTime" - } - } - }, - "SpotFleetRequestConfigData":{ - "type":"structure", - "required":[ - "SpotPrice", - "TargetCapacity", - "IamFleetRole", - "LaunchSpecifications" - ], - "members":{ - "ClientToken":{ - "shape":"String", - "locationName":"clientToken" - }, - "SpotPrice":{ - "shape":"String", - "locationName":"spotPrice" - }, - "TargetCapacity":{ - "shape":"Integer", - "locationName":"targetCapacity" - }, - "ValidFrom":{ - "shape":"DateTime", - "locationName":"validFrom" - }, - "ValidUntil":{ - "shape":"DateTime", - "locationName":"validUntil" - }, - "TerminateInstancesWithExpiration":{ - "shape":"Boolean", - "locationName":"terminateInstancesWithExpiration" - }, - "IamFleetRole":{ - "shape":"String", - "locationName":"iamFleetRole" - }, - "LaunchSpecifications":{ - "shape":"LaunchSpecsList", - "locationName":"launchSpecifications" - }, - "ExcessCapacityTerminationPolicy":{ - "shape":"ExcessCapacityTerminationPolicy", - "locationName":"excessCapacityTerminationPolicy" - }, - "AllocationStrategy":{ - "shape":"AllocationStrategy", - "locationName":"allocationStrategy" - }, - "FulfilledCapacity":{ - "shape":"Double", - "locationName":"fulfilledCapacity" - }, - "Type":{ - "shape":"FleetType", - "locationName":"type" - } - } - }, - "SpotFleetRequestConfigSet":{ - "type":"list", - "member":{ - "shape":"SpotFleetRequestConfig", - "locationName":"item" - } - }, - "SpotInstanceRequest":{ - "type":"structure", - "members":{ - "SpotInstanceRequestId":{ - "shape":"String", - "locationName":"spotInstanceRequestId" - }, - "SpotPrice":{ - "shape":"String", - "locationName":"spotPrice" - }, - "Type":{ - "shape":"SpotInstanceType", - "locationName":"type" - }, - "State":{ - "shape":"SpotInstanceState", - "locationName":"state" - }, - "Fault":{ - "shape":"SpotInstanceStateFault", - "locationName":"fault" - }, - "Status":{ - "shape":"SpotInstanceStatus", - "locationName":"status" - }, - "ValidFrom":{ - "shape":"DateTime", - "locationName":"validFrom" - }, - "ValidUntil":{ - "shape":"DateTime", - "locationName":"validUntil" - }, - "LaunchGroup":{ - "shape":"String", - "locationName":"launchGroup" - }, - "AvailabilityZoneGroup":{ - "shape":"String", - "locationName":"availabilityZoneGroup" - }, - "LaunchSpecification":{ - "shape":"LaunchSpecification", - "locationName":"launchSpecification" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "CreateTime":{ - "shape":"DateTime", - "locationName":"createTime" - }, - "ProductDescription":{ - "shape":"RIProductDescription", - "locationName":"productDescription" - }, - "BlockDurationMinutes":{ - "shape":"Integer", - "locationName":"blockDurationMinutes" - }, - "ActualBlockHourlyPrice":{ - "shape":"String", - "locationName":"actualBlockHourlyPrice" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "LaunchedAvailabilityZone":{ - "shape":"String", - "locationName":"launchedAvailabilityZone" - } - } - }, - "SpotInstanceRequestIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SpotInstanceRequestId" - } - }, - "SpotInstanceRequestList":{ - "type":"list", - "member":{ - "shape":"SpotInstanceRequest", - "locationName":"item" - } - }, - "SpotInstanceState":{ - "type":"string", - "enum":[ - "open", - "active", - "closed", - "cancelled", - "failed" - ] - }, - "SpotInstanceStateFault":{ - "type":"structure", - "members":{ - "Code":{ - "shape":"String", - "locationName":"code" - }, - "Message":{ - "shape":"String", - "locationName":"message" - } - } - }, - "SpotInstanceStatus":{ - "type":"structure", - "members":{ - "Code":{ - "shape":"String", - "locationName":"code" - }, - "UpdateTime":{ - "shape":"DateTime", - "locationName":"updateTime" - }, - "Message":{ - "shape":"String", - "locationName":"message" - } - } - }, - "SpotInstanceType":{ - "type":"string", - "enum":[ - "one-time", - "persistent" - ] - }, - "SpotPlacement":{ - "type":"structure", - "members":{ - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "GroupName":{ - "shape":"String", - "locationName":"groupName" - } - } - }, - "SpotPrice":{ - "type":"structure", - "members":{ - "InstanceType":{ - "shape":"InstanceType", - "locationName":"instanceType" - }, - "ProductDescription":{ - "shape":"RIProductDescription", - "locationName":"productDescription" - }, - "SpotPrice":{ - "shape":"String", - "locationName":"spotPrice" - }, - "Timestamp":{ - "shape":"DateTime", - "locationName":"timestamp" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - } - } - }, - "SpotPriceHistoryList":{ - "type":"list", - "member":{ - "shape":"SpotPrice", - "locationName":"item" - } - }, - "StaleIpPermission":{ - "type":"structure", - "members":{ - "FromPort":{ - "shape":"Integer", - "locationName":"fromPort" - }, - "IpProtocol":{ - "shape":"String", - "locationName":"ipProtocol" - }, - "IpRanges":{ - "shape":"IpRanges", - "locationName":"ipRanges" - }, - "PrefixListIds":{ - "shape":"PrefixListIdSet", - "locationName":"prefixListIds" - }, - "ToPort":{ - "shape":"Integer", - "locationName":"toPort" - }, - "UserIdGroupPairs":{ - "shape":"UserIdGroupPairSet", - "locationName":"groups" - } - } - }, - "StaleIpPermissionSet":{ - "type":"list", - "member":{ - "shape":"StaleIpPermission", - "locationName":"item" - } - }, - "StaleSecurityGroup":{ - "type":"structure", - "required":["GroupId"], - "members":{ - "GroupId":{ - "shape":"String", - "locationName":"groupId" - }, - "GroupName":{ - "shape":"String", - "locationName":"groupName" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "StaleIpPermissions":{ - "shape":"StaleIpPermissionSet", - "locationName":"staleIpPermissions" - }, - "StaleIpPermissionsEgress":{ - "shape":"StaleIpPermissionSet", - "locationName":"staleIpPermissionsEgress" - } - } - }, - "StaleSecurityGroupSet":{ - "type":"list", - "member":{ - "shape":"StaleSecurityGroup", - "locationName":"item" - } - }, - "StartInstancesRequest":{ - "type":"structure", - "required":["InstanceIds"], - "members":{ - "InstanceIds":{ - "shape":"InstanceIdStringList", - "locationName":"InstanceId" - }, - "AdditionalInfo":{ - "shape":"String", - "locationName":"additionalInfo" - }, - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - } - } - }, - "StartInstancesResult":{ - "type":"structure", - "members":{ - "StartingInstances":{ - "shape":"InstanceStateChangeList", - "locationName":"instancesSet" - } - } - }, - "State":{ - "type":"string", - "enum":[ - "Pending", - "Available", - "Deleting", - "Deleted" - ] - }, - "StateReason":{ - "type":"structure", - "members":{ - "Code":{ - "shape":"String", - "locationName":"code" - }, - "Message":{ - "shape":"String", - "locationName":"message" - } - } - }, - "Status":{ - "type":"string", - "enum":[ - "MoveInProgress", - "InVpc", - "InClassic" - ] - }, - "StatusName":{ - "type":"string", - "enum":["reachability"] - }, - "StatusType":{ - "type":"string", - "enum":[ - "passed", - "failed", - "insufficient-data", - "initializing" - ] - }, - "StopInstancesRequest":{ - "type":"structure", - "required":["InstanceIds"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceIds":{ - "shape":"InstanceIdStringList", - "locationName":"InstanceId" - }, - "Force":{ - "shape":"Boolean", - "locationName":"force" - } - } - }, - "StopInstancesResult":{ - "type":"structure", - "members":{ - "StoppingInstances":{ - "shape":"InstanceStateChangeList", - "locationName":"instancesSet" - } - } - }, - "Storage":{ - "type":"structure", - "members":{ - "S3":{"shape":"S3Storage"} - } - }, - "String":{"type":"string"}, - "Subnet":{ - "type":"structure", - "members":{ - "SubnetId":{ - "shape":"String", - "locationName":"subnetId" - }, - "State":{ - "shape":"SubnetState", - "locationName":"state" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "CidrBlock":{ - "shape":"String", - "locationName":"cidrBlock" - }, - "AvailableIpAddressCount":{ - "shape":"Integer", - "locationName":"availableIpAddressCount" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "DefaultForAz":{ - "shape":"Boolean", - "locationName":"defaultForAz" - }, - "MapPublicIpOnLaunch":{ - "shape":"Boolean", - "locationName":"mapPublicIpOnLaunch" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - } - } - }, - "SubnetIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SubnetId" - } - }, - "SubnetList":{ - "type":"list", - "member":{ - "shape":"Subnet", - "locationName":"item" - } - }, - "SubnetState":{ - "type":"string", - "enum":[ - "pending", - "available" - ] - }, - "SummaryStatus":{ - "type":"string", - "enum":[ - "ok", - "impaired", - "insufficient-data", - "not-applicable", - "initializing" - ] - }, - "Tag":{ - "type":"structure", - "members":{ - "Key":{ - "shape":"String", - "locationName":"key" - }, - "Value":{ - "shape":"String", - "locationName":"value" - } - } - }, - "TagDescription":{ - "type":"structure", - "members":{ - "ResourceId":{ - "shape":"String", - "locationName":"resourceId" - }, - "ResourceType":{ - "shape":"ResourceType", - "locationName":"resourceType" - }, - "Key":{ - "shape":"String", - "locationName":"key" - }, - "Value":{ - "shape":"String", - "locationName":"value" - } - } - }, - "TagDescriptionList":{ - "type":"list", - "member":{ - "shape":"TagDescription", - "locationName":"item" - } - }, - "TagList":{ - "type":"list", - "member":{ - "shape":"Tag", - "locationName":"item" - } - }, - "TelemetryStatus":{ - "type":"string", - "enum":[ - "UP", - "DOWN" - ] - }, - "Tenancy":{ - "type":"string", - "enum":[ - "default", - "dedicated", - "host" - ] - }, - "TerminateInstancesRequest":{ - "type":"structure", - "required":["InstanceIds"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceIds":{ - "shape":"InstanceIdStringList", - "locationName":"InstanceId" - } - } - }, - "TerminateInstancesResult":{ - "type":"structure", - "members":{ - "TerminatingInstances":{ - "shape":"InstanceStateChangeList", - "locationName":"instancesSet" - } - } - }, - "TrafficType":{ - "type":"string", - "enum":[ - "ACCEPT", - "REJECT", - "ALL" - ] - }, - "UnassignPrivateIpAddressesRequest":{ - "type":"structure", - "required":[ - "NetworkInterfaceId", - "PrivateIpAddresses" - ], - "members":{ - "NetworkInterfaceId":{ - "shape":"String", - "locationName":"networkInterfaceId" - }, - "PrivateIpAddresses":{ - "shape":"PrivateIpAddressStringList", - "locationName":"privateIpAddress" - } - } - }, - "UnmonitorInstancesRequest":{ - "type":"structure", - "required":["InstanceIds"], - "members":{ - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - }, - "InstanceIds":{ - "shape":"InstanceIdStringList", - "locationName":"InstanceId" - } - } - }, - "UnmonitorInstancesResult":{ - "type":"structure", - "members":{ - "InstanceMonitorings":{ - "shape":"InstanceMonitoringList", - "locationName":"instancesSet" - } - } - }, - "UnsuccessfulItem":{ - "type":"structure", - "required":["Error"], - "members":{ - "Error":{ - "shape":"UnsuccessfulItemError", - "locationName":"error" - }, - "ResourceId":{ - "shape":"String", - "locationName":"resourceId" - } - } - }, - "UnsuccessfulItemError":{ - "type":"structure", - "required":[ - "Code", - "Message" - ], - "members":{ - "Code":{ - "shape":"String", - "locationName":"code" - }, - "Message":{ - "shape":"String", - "locationName":"message" - } - } - }, - "UnsuccessfulItemList":{ - "type":"list", - "member":{ - "shape":"UnsuccessfulItem", - "locationName":"item" - } - }, - "UnsuccessfulItemSet":{ - "type":"list", - "member":{ - "shape":"UnsuccessfulItem", - "locationName":"item" - } - }, - "UserBucket":{ - "type":"structure", - "members":{ - "S3Bucket":{"shape":"String"}, - "S3Key":{"shape":"String"} - } - }, - "UserBucketDetails":{ - "type":"structure", - "members":{ - "S3Bucket":{ - "shape":"String", - "locationName":"s3Bucket" - }, - "S3Key":{ - "shape":"String", - "locationName":"s3Key" - } - } - }, - "UserData":{ - "type":"structure", - "members":{ - "Data":{ - "shape":"String", - "locationName":"data" - } - } - }, - "UserGroupStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"UserGroup" - } - }, - "UserIdGroupPair":{ - "type":"structure", - "members":{ - "UserId":{ - "shape":"String", - "locationName":"userId" - }, - "GroupName":{ - "shape":"String", - "locationName":"groupName" - }, - "GroupId":{ - "shape":"String", - "locationName":"groupId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "VpcPeeringConnectionId":{ - "shape":"String", - "locationName":"vpcPeeringConnectionId" - }, - "PeeringStatus":{ - "shape":"String", - "locationName":"peeringStatus" - } - } - }, - "UserIdGroupPairList":{ - "type":"list", - "member":{ - "shape":"UserIdGroupPair", - "locationName":"item" - } - }, - "UserIdGroupPairSet":{ - "type":"list", - "member":{ - "shape":"UserIdGroupPair", - "locationName":"item" - } - }, - "UserIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"UserId" - } - }, - "ValueStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"item" - } - }, - "VgwTelemetry":{ - "type":"structure", - "members":{ - "OutsideIpAddress":{ - "shape":"String", - "locationName":"outsideIpAddress" - }, - "Status":{ - "shape":"TelemetryStatus", - "locationName":"status" - }, - "LastStatusChange":{ - "shape":"DateTime", - "locationName":"lastStatusChange" - }, - "StatusMessage":{ - "shape":"String", - "locationName":"statusMessage" - }, - "AcceptedRouteCount":{ - "shape":"Integer", - "locationName":"acceptedRouteCount" - } - } - }, - "VgwTelemetryList":{ - "type":"list", - "member":{ - "shape":"VgwTelemetry", - "locationName":"item" - } - }, - "VirtualizationType":{ - "type":"string", - "enum":[ - "hvm", - "paravirtual" - ] - }, - "Volume":{ - "type":"structure", - "members":{ - "VolumeId":{ - "shape":"String", - "locationName":"volumeId" - }, - "Size":{ - "shape":"Integer", - "locationName":"size" - }, - "SnapshotId":{ - "shape":"String", - "locationName":"snapshotId" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "State":{ - "shape":"VolumeState", - "locationName":"status" - }, - "CreateTime":{ - "shape":"DateTime", - "locationName":"createTime" - }, - "Attachments":{ - "shape":"VolumeAttachmentList", - "locationName":"attachmentSet" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "VolumeType":{ - "shape":"VolumeType", - "locationName":"volumeType" - }, - "Iops":{ - "shape":"Integer", - "locationName":"iops" - }, - "Encrypted":{ - "shape":"Boolean", - "locationName":"encrypted" - }, - "KmsKeyId":{ - "shape":"String", - "locationName":"kmsKeyId" - } - } - }, - "VolumeAttachment":{ - "type":"structure", - "members":{ - "VolumeId":{ - "shape":"String", - "locationName":"volumeId" - }, - "InstanceId":{ - "shape":"String", - "locationName":"instanceId" - }, - "Device":{ - "shape":"String", - "locationName":"device" - }, - "State":{ - "shape":"VolumeAttachmentState", - "locationName":"status" - }, - "AttachTime":{ - "shape":"DateTime", - "locationName":"attachTime" - }, - "DeleteOnTermination":{ - "shape":"Boolean", - "locationName":"deleteOnTermination" - } - } - }, - "VolumeAttachmentList":{ - "type":"list", - "member":{ - "shape":"VolumeAttachment", - "locationName":"item" - } - }, - "VolumeAttachmentState":{ - "type":"string", - "enum":[ - "attaching", - "attached", - "detaching", - "detached" - ] - }, - "VolumeAttributeName":{ - "type":"string", - "enum":[ - "autoEnableIO", - "productCodes" - ] - }, - "VolumeDetail":{ - "type":"structure", - "required":["Size"], - "members":{ - "Size":{ - "shape":"Long", - "locationName":"size" - } - } - }, - "VolumeIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"VolumeId" - } - }, - "VolumeList":{ - "type":"list", - "member":{ - "shape":"Volume", - "locationName":"item" - } - }, - "VolumeState":{ - "type":"string", - "enum":[ - "creating", - "available", - "in-use", - "deleting", - "deleted", - "error" - ] - }, - "VolumeStatusAction":{ - "type":"structure", - "members":{ - "Code":{ - "shape":"String", - "locationName":"code" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "EventType":{ - "shape":"String", - "locationName":"eventType" - }, - "EventId":{ - "shape":"String", - "locationName":"eventId" - } - } - }, - "VolumeStatusActionsList":{ - "type":"list", - "member":{ - "shape":"VolumeStatusAction", - "locationName":"item" - } - }, - "VolumeStatusDetails":{ - "type":"structure", - "members":{ - "Name":{ - "shape":"VolumeStatusName", - "locationName":"name" - }, - "Status":{ - "shape":"String", - "locationName":"status" - } - } - }, - "VolumeStatusDetailsList":{ - "type":"list", - "member":{ - "shape":"VolumeStatusDetails", - "locationName":"item" - } - }, - "VolumeStatusEvent":{ - "type":"structure", - "members":{ - "EventType":{ - "shape":"String", - "locationName":"eventType" - }, - "Description":{ - "shape":"String", - "locationName":"description" - }, - "NotBefore":{ - "shape":"DateTime", - "locationName":"notBefore" - }, - "NotAfter":{ - "shape":"DateTime", - "locationName":"notAfter" - }, - "EventId":{ - "shape":"String", - "locationName":"eventId" - } - } - }, - "VolumeStatusEventsList":{ - "type":"list", - "member":{ - "shape":"VolumeStatusEvent", - "locationName":"item" - } - }, - "VolumeStatusInfo":{ - "type":"structure", - "members":{ - "Status":{ - "shape":"VolumeStatusInfoStatus", - "locationName":"status" - }, - "Details":{ - "shape":"VolumeStatusDetailsList", - "locationName":"details" - } - } - }, - "VolumeStatusInfoStatus":{ - "type":"string", - "enum":[ - "ok", - "impaired", - "insufficient-data" - ] - }, - "VolumeStatusItem":{ - "type":"structure", - "members":{ - "VolumeId":{ - "shape":"String", - "locationName":"volumeId" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "VolumeStatus":{ - "shape":"VolumeStatusInfo", - "locationName":"volumeStatus" - }, - "Events":{ - "shape":"VolumeStatusEventsList", - "locationName":"eventsSet" - }, - "Actions":{ - "shape":"VolumeStatusActionsList", - "locationName":"actionsSet" - } - } - }, - "VolumeStatusList":{ - "type":"list", - "member":{ - "shape":"VolumeStatusItem", - "locationName":"item" - } - }, - "VolumeStatusName":{ - "type":"string", - "enum":[ - "io-enabled", - "io-performance" - ] - }, - "VolumeType":{ - "type":"string", - "enum":[ - "standard", - "io1", - "gp2", - "sc1", - "st1" - ] - }, - "Vpc":{ - "type":"structure", - "members":{ - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "State":{ - "shape":"VpcState", - "locationName":"state" - }, - "CidrBlock":{ - "shape":"String", - "locationName":"cidrBlock" - }, - "DhcpOptionsId":{ - "shape":"String", - "locationName":"dhcpOptionsId" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "InstanceTenancy":{ - "shape":"Tenancy", - "locationName":"instanceTenancy" - }, - "IsDefault":{ - "shape":"Boolean", - "locationName":"isDefault" - } - } - }, - "VpcAttachment":{ - "type":"structure", - "members":{ - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "State":{ - "shape":"AttachmentStatus", - "locationName":"state" - } - } - }, - "VpcAttachmentList":{ - "type":"list", - "member":{ - "shape":"VpcAttachment", - "locationName":"item" - } - }, - "VpcAttributeName":{ - "type":"string", - "enum":[ - "enableDnsSupport", - "enableDnsHostnames" - ] - }, - "VpcClassicLink":{ - "type":"structure", - "members":{ - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "ClassicLinkEnabled":{ - "shape":"Boolean", - "locationName":"classicLinkEnabled" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - } - } - }, - "VpcClassicLinkIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"VpcId" - } - }, - "VpcClassicLinkList":{ - "type":"list", - "member":{ - "shape":"VpcClassicLink", - "locationName":"item" - } - }, - "VpcEndpoint":{ - "type":"structure", - "members":{ - "VpcEndpointId":{ - "shape":"String", - "locationName":"vpcEndpointId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "ServiceName":{ - "shape":"String", - "locationName":"serviceName" - }, - "State":{ - "shape":"State", - "locationName":"state" - }, - "PolicyDocument":{ - "shape":"String", - "locationName":"policyDocument" - }, - "RouteTableIds":{ - "shape":"ValueStringList", - "locationName":"routeTableIdSet" - }, - "CreationTimestamp":{ - "shape":"DateTime", - "locationName":"creationTimestamp" - } - } - }, - "VpcEndpointSet":{ - "type":"list", - "member":{ - "shape":"VpcEndpoint", - "locationName":"item" - } - }, - "VpcIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"VpcId" - } - }, - "VpcList":{ - "type":"list", - "member":{ - "shape":"Vpc", - "locationName":"item" - } - }, - "VpcPeeringConnection":{ - "type":"structure", - "members":{ - "AccepterVpcInfo":{ - "shape":"VpcPeeringConnectionVpcInfo", - "locationName":"accepterVpcInfo" - }, - "ExpirationTime":{ - "shape":"DateTime", - "locationName":"expirationTime" - }, - "RequesterVpcInfo":{ - "shape":"VpcPeeringConnectionVpcInfo", - "locationName":"requesterVpcInfo" - }, - "Status":{ - "shape":"VpcPeeringConnectionStateReason", - "locationName":"status" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "VpcPeeringConnectionId":{ - "shape":"String", - "locationName":"vpcPeeringConnectionId" - } - } - }, - "VpcPeeringConnectionList":{ - "type":"list", - "member":{ - "shape":"VpcPeeringConnection", - "locationName":"item" - } - }, - "VpcPeeringConnectionOptionsDescription":{ - "type":"structure", - "members":{ - "AllowEgressFromLocalClassicLinkToRemoteVpc":{ - "shape":"Boolean", - "locationName":"allowEgressFromLocalClassicLinkToRemoteVpc" - }, - "AllowEgressFromLocalVpcToRemoteClassicLink":{ - "shape":"Boolean", - "locationName":"allowEgressFromLocalVpcToRemoteClassicLink" - } - } - }, - "VpcPeeringConnectionStateReason":{ - "type":"structure", - "members":{ - "Code":{ - "shape":"VpcPeeringConnectionStateReasonCode", - "locationName":"code" - }, - "Message":{ - "shape":"String", - "locationName":"message" - } - } - }, - "VpcPeeringConnectionStateReasonCode":{ - "type":"string", - "enum":[ - "initiating-request", - "pending-acceptance", - "active", - "deleted", - "rejected", - "failed", - "expired", - "provisioning", - "deleting" - ] - }, - "VpcPeeringConnectionVpcInfo":{ - "type":"structure", - "members":{ - "CidrBlock":{ - "shape":"String", - "locationName":"cidrBlock" - }, - "OwnerId":{ - "shape":"String", - "locationName":"ownerId" - }, - "VpcId":{ - "shape":"String", - "locationName":"vpcId" - }, - "PeeringOptions":{ - "shape":"VpcPeeringConnectionOptionsDescription", - "locationName":"peeringOptions" - } - } - }, - "VpcState":{ - "type":"string", - "enum":[ - "pending", - "available" - ] - }, - "VpnConnection":{ - "type":"structure", - "members":{ - "VpnConnectionId":{ - "shape":"String", - "locationName":"vpnConnectionId" - }, - "State":{ - "shape":"VpnState", - "locationName":"state" - }, - "CustomerGatewayConfiguration":{ - "shape":"String", - "locationName":"customerGatewayConfiguration" - }, - "Type":{ - "shape":"GatewayType", - "locationName":"type" - }, - "CustomerGatewayId":{ - "shape":"String", - "locationName":"customerGatewayId" - }, - "VpnGatewayId":{ - "shape":"String", - "locationName":"vpnGatewayId" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - }, - "VgwTelemetry":{ - "shape":"VgwTelemetryList", - "locationName":"vgwTelemetry" - }, - "Options":{ - "shape":"VpnConnectionOptions", - "locationName":"options" - }, - "Routes":{ - "shape":"VpnStaticRouteList", - "locationName":"routes" - } - } - }, - "VpnConnectionIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"VpnConnectionId" - } - }, - "VpnConnectionList":{ - "type":"list", - "member":{ - "shape":"VpnConnection", - "locationName":"item" - } - }, - "VpnConnectionOptions":{ - "type":"structure", - "members":{ - "StaticRoutesOnly":{ - "shape":"Boolean", - "locationName":"staticRoutesOnly" - } - } - }, - "VpnConnectionOptionsSpecification":{ - "type":"structure", - "members":{ - "StaticRoutesOnly":{ - "shape":"Boolean", - "locationName":"staticRoutesOnly" - } - } - }, - "VpnGateway":{ - "type":"structure", - "members":{ - "VpnGatewayId":{ - "shape":"String", - "locationName":"vpnGatewayId" - }, - "State":{ - "shape":"VpnState", - "locationName":"state" - }, - "Type":{ - "shape":"GatewayType", - "locationName":"type" - }, - "AvailabilityZone":{ - "shape":"String", - "locationName":"availabilityZone" - }, - "VpcAttachments":{ - "shape":"VpcAttachmentList", - "locationName":"attachments" - }, - "Tags":{ - "shape":"TagList", - "locationName":"tagSet" - } - } - }, - "VpnGatewayIdStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"VpnGatewayId" - } - }, - "VpnGatewayList":{ - "type":"list", - "member":{ - "shape":"VpnGateway", - "locationName":"item" - } - }, - "VpnState":{ - "type":"string", - "enum":[ - "pending", - "available", - "deleting", - "deleted" - ] - }, - "VpnStaticRoute":{ - "type":"structure", - "members":{ - "DestinationCidrBlock":{ - "shape":"String", - "locationName":"destinationCidrBlock" - }, - "Source":{ - "shape":"VpnStaticRouteSource", - "locationName":"source" - }, - "State":{ - "shape":"VpnState", - "locationName":"state" - } - } - }, - "VpnStaticRouteList":{ - "type":"list", - "member":{ - "shape":"VpnStaticRoute", - "locationName":"item" - } - }, - "VpnStaticRouteSource":{ - "type":"string", - "enum":["Static"] - }, - "ZoneNameStringList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ZoneName" - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/docs-2.json deleted file mode 100644 index 8d9b760b9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/docs-2.json +++ /dev/null @@ -1,6382 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon Elastic Compute Cloud

    Amazon Elastic Compute Cloud (Amazon EC2) provides resizable computing capacity in the Amazon Web Services (AWS) cloud. Using Amazon EC2 eliminates your need to invest in hardware up front, so you can develop and deploy applications faster.

    ", - "operations": { - "AcceptVpcPeeringConnection": "

    Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance state, and you must be the owner of the peer VPC. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests.

    ", - "AllocateAddress": "

    Acquires an Elastic IP address.

    An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

    ", - "AllocateHosts": "

    Allocates a Dedicated host to your account. At minimum you need to specify the instance size type, Availability Zone, and quantity of hosts you want to allocate.

    ", - "AssignPrivateIpAddresses": "

    Assigns one or more secondary private IP addresses to the specified network interface. You can specify one or more specific secondary IP addresses, or you can specify the number of secondary IP addresses to be automatically assigned within the subnet's CIDR block range. The number of secondary IP addresses that you can assign to an instance varies by instance type. For information about instance types, see Instance Types in the Amazon Elastic Compute Cloud User Guide. For more information about Elastic IP addresses, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

    AssignPrivateIpAddresses is available only in EC2-VPC.

    ", - "AssociateAddress": "

    Associates an Elastic IP address with an instance or a network interface.

    An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

    [EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is already associated with a different instance, it is disassociated from that instance and associated with the specified instance.

    [VPC in an EC2-Classic account] If you don't specify a private IP address, the Elastic IP address is associated with the primary IP address. If the Elastic IP address is already associated with a different instance or a network interface, you get an error unless you allow reassociation.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

    ", - "AssociateDhcpOptions": "

    Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

    After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

    For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

    ", - "AssociateRouteTable": "

    Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table from the subnet later. A route table can be associated with multiple subnets.

    For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ", - "AttachClassicLinkVpc": "

    Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC's security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that's in the running state. An instance is automatically unlinked from a VPC when it's stopped - you can link it to the VPC again when you restart it.

    After you've linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again.

    Linking your instance to a VPC is sometimes referred to as attaching your instance.

    ", - "AttachInternetGateway": "

    Attaches an Internet gateway to a VPC, enabling connectivity between the Internet and the VPC. For more information about your VPC and Internet gateway, see the Amazon Virtual Private Cloud User Guide.

    ", - "AttachNetworkInterface": "

    Attaches a network interface to an instance.

    ", - "AttachVolume": "

    Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.

    Encrypted EBS volumes may only be attached to instances that support Amazon EBS encryption. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    For a list of supported device names, see Attaching an EBS Volume to an Instance. Any device names that aren't reserved for instance store volumes can be used for EBS volumes. For more information, see Amazon EC2 Instance Store in the Amazon Elastic Compute Cloud User Guide.

    If a volume has an AWS Marketplace product code:

    • The volume can be attached only to a stopped instance.

    • AWS Marketplace product codes are copied from the volume to the instance.

    • You must be subscribed to the product.

    • The instance type and operating system of the instance must support the product. For example, you can't detach a volume from a Windows instance and attach it to a Linux instance.

    For an overview of the AWS Marketplace, see Introducing AWS Marketplace.

    For more information about EBS volumes, see Attaching Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    ", - "AttachVpnGateway": "

    Attaches a virtual private gateway to a VPC. For more information, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

    ", - "AuthorizeSecurityGroupEgress": "

    [EC2-VPC only] Adds one or more egress rules to a security group for use with a VPC. Specifically, this action permits instances to send traffic to one or more destination CIDR IP address ranges, or to one or more destination security groups for the same VPC. This action doesn't apply to security groups for use in EC2-Classic. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

    You can have up to 50 rules per security group (covering both ingress and egress rules).

    Each rule consists of the protocol (for example, TCP), plus either a CIDR range or a source group. For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 for the type or code to mean all types or all codes.

    Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.

    ", - "AuthorizeSecurityGroupIngress": "

    Adds one or more ingress rules to a security group.

    EC2-Classic: You can have up to 100 rules per group.

    EC2-VPC: You can have up to 50 rules per group (covering both ingress and egress rules).

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    [EC2-Classic] This action gives one or more CIDR IP address ranges permission to access a security group in your account, or gives one or more security groups (called the source groups) permission to access a security group for your account. A source group can be for your own AWS account, or another.

    [EC2-VPC] This action gives one or more CIDR IP address ranges permission to access a security group in your VPC, or gives one or more other security groups (called the source groups) permission to access a security group for your VPC. The security groups must all be for the same VPC.

    ", - "BundleInstance": "

    Bundles an Amazon instance store-backed Windows instance.

    During bundling, only the root device volume (C:\\) is bundled. Data on other instance store volumes is not preserved.

    This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

    For more information, see Creating an Instance Store-Backed Windows AMI.

    ", - "CancelBundleTask": "

    Cancels a bundling operation for an instance store-backed Windows instance.

    ", - "CancelConversionTask": "

    Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.

    For more information, see Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 in the Amazon Elastic Compute Cloud User Guide.

    ", - "CancelExportTask": "

    Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.

    ", - "CancelImportTask": "

    Cancels an in-process import virtual machine or import snapshot task.

    ", - "CancelReservedInstancesListing": "

    Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.

    For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

    ", - "CancelSpotFleetRequests": "

    Cancels the specified Spot fleet requests.

    After you cancel a Spot fleet request, the Spot fleet launches no new Spot instances. You must specify whether the Spot fleet should also terminate its Spot instances. If you terminate the instances, the Spot fleet request enters the cancelled_terminating state. Otherwise, the Spot fleet request enters the cancelled_running state and the instances continue to run until they are interrupted or you terminate them manually.

    ", - "CancelSpotInstanceRequests": "

    Cancels one or more Spot instance requests. Spot instances are instances that Amazon EC2 starts on your behalf when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

    Canceling a Spot instance request does not terminate running Spot instances associated with the request.

    ", - "ConfirmProductInstance": "

    Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner needs to verify whether another user's instance is eligible for support.

    ", - "CopyImage": "

    Initiates the copy of an AMI from the specified source region to the current region. You specify the destination region by using its endpoint when making the request.

    For more information, see Copying AMIs in the Amazon Elastic Compute Cloud User Guide.

    ", - "CopySnapshot": "

    Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy the snapshot within the same region or from one region to another. You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs). The snapshot is copied to the regional endpoint that you send the HTTP request to.

    Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless the Encrypted flag is specified during the snapshot copy operation. By default, encrypted snapshot copies use the default AWS Key Management Service (AWS KMS) customer master key (CMK); however, you can specify a non-default CMK with the KmsKeyId parameter.

    For more information, see Copying an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateCustomerGateway": "

    Provides information to AWS about your VPN customer gateway device. The customer gateway is the appliance at your end of the VPN connection. (The device on the AWS side of the VPN connection is the virtual private gateway.) You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be static and may be behind a device performing network address translation (NAT).

    For devices that use Border Gateway Protocol (BGP), you can also provide the device's BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534 range).

    Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with the exception of 7224, which is reserved in the us-east-1 region, and 9059, which is reserved in the eu-west-1 region.

    For more information about VPN customer gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

    You cannot create more than one customer gateway with the same VPN type, IP address, and BGP ASN parameter values. If you run an identical request more than one time, the first request creates the customer gateway, and subsequent requests return information about the existing customer gateway. The subsequent requests do not create new customer gateway resources.

    ", - "CreateDhcpOptions": "

    Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132.

    • domain-name-servers - The IP addresses of up to four domain name servers, or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. If specifying more than one domain name server, specify the IP addresses in a single parameter, separated by commas.

    • domain-name - If you're using AmazonProvidedDNS in \"us-east-1\", specify \"ec2.internal\". If you're using AmazonProvidedDNS in another region, specify \"region.compute.internal\" (for example, \"ap-northeast-1.compute.internal\"). Otherwise, specify a domain name (for example, \"MyCompany.com\"). Important: Some Linux operating systems accept multiple domain names separated by spaces. However, Windows and other Linux operating systems treat the value as a single domain, which results in unexpected behavior. If your DHCP options set is associated with a VPC that has instances with multiple operating systems, specify only one domain name.

    • ntp-servers - The IP addresses of up to four Network Time Protocol (NTP) servers.

    • netbios-name-servers - The IP addresses of up to four NetBIOS name servers.

    • netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2 (broadcast and multicast are not currently supported). For more information about these node types, see RFC 2132.

    Your VPC automatically starts out with a set of DHCP options that includes only a DNS server that we provide (AmazonProvidedDNS). If you create a set of options, and if your VPC has an Internet gateway, make sure to set the domain-name-servers option either to AmazonProvidedDNS or to a domain name server of your choice. For more information about DHCP options, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

    ", - "CreateFlowLogs": "

    Creates one or more flow logs to capture IP traffic for a specific network interface, subnet, or VPC. Flow logs are delivered to a specified log group in Amazon CloudWatch Logs. If you specify a VPC or subnet in the request, a log stream is created in CloudWatch Logs for each network interface in the subnet or VPC. Log streams can include information about accepted and rejected traffic to a network interface. You can view the data in your log streams using Amazon CloudWatch Logs.

    In your request, you must also specify an IAM role that has permission to publish logs to CloudWatch Logs.

    ", - "CreateImage": "

    Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.

    If you customized your instance with instance store volumes or EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.

    For more information, see Creating Amazon EBS-Backed Linux AMIs in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateInstanceExportTask": "

    Exports a running or stopped instance to an S3 bucket.

    For information about the supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting EC2 Instances in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateInternetGateway": "

    Creates an Internet gateway for use with a VPC. After creating the Internet gateway, you attach it to a VPC using AttachInternetGateway.

    For more information about your VPC and Internet gateway, see the Amazon Virtual Private Cloud User Guide.

    ", - "CreateKeyPair": "

    Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#8 private key. If a key with the specified name already exists, Amazon EC2 returns an error.

    You can have up to five thousand key pairs per region.

    The key pair returned to you is available only in the region in which you create it. To create a key pair that is available in all regions, use ImportKeyPair.

    For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateNatGateway": "

    Creates a NAT gateway in the specified subnet. A NAT gateway can be used to enable instances in a private subnet to connect to the Internet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. For more information, see NAT Gateways in the Amazon Virtual Private Cloud User Guide.

    ", - "CreateNetworkAcl": "

    Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.

    For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

    ", - "CreateNetworkAclEntry": "

    Creates an entry (a rule) in a network ACL with the specified rule number. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, we process the entries in the ACL according to the rule numbers, in ascending order. Each network ACL has a set of ingress rules and a separate set of egress rules.

    We recommend that you leave room between the rule numbers (for example, 100, 110, 120, ...), and not number them one right after the other (for example, 101, 102, 103, ...). This makes it easier to add a rule between existing ones without having to renumber the rules.

    After you add an entry, you can't modify it; you must either replace it, or create an entry and delete the old one.

    For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

    ", - "CreateNetworkInterface": "

    Creates a network interface in the specified subnet.

    For more information about network interfaces, see Elastic Network Interfaces in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreatePlacementGroup": "

    Creates a placement group that you launch cluster instances into. You must give the group a name that's unique within the scope of your account.

    For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateReservedInstancesListing": "

    Creates a listing for Amazon EC2 Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Reserved Instance listing at a time. To get a list of your Reserved Instances, you can use the DescribeReservedInstances operation.

    The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

    To sell your Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Reserved Instances, and specify the upfront price to receive for them. Your Reserved Instance listings then become available for purchase. To view the details of your Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.

    For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateRoute": "

    Creates a route in a route table within a VPC.

    You must specify one of the following targets: Internet gateway or virtual private gateway, NAT instance, NAT gateway, VPC peering connection, or network interface.

    When determining how to route traffic, we use the route with the most specific match. For example, let's say the traffic is destined for 192.0.2.3, and the route table includes the following two routes:

    • 192.0.2.0/24 (goes to some target A)

    • 192.0.2.0/28 (goes to some target B)

    Both routes apply to the traffic destined for 192.0.2.3. However, the second route in the list covers a smaller number of IP addresses and is therefore more specific, so we use that route to determine where to target the traffic.

    For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ", - "CreateRouteTable": "

    Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

    For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ", - "CreateSecurityGroup": "

    Creates a security group.

    A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

    EC2-Classic: You can have up to 500 security groups.

    EC2-VPC: You can create up to 500 security groups per VPC.

    When you create a security group, you specify a friendly name of your choice. You can have a security group for use in EC2-Classic with the same name as a security group for use in a VPC. However, you can't have two security groups for use in EC2-Classic with the same name or two security groups for use in a VPC with the same name.

    You have a default security group for use in EC2-Classic and a default security group for use in your VPC. If you don't specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.

    You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.

    ", - "CreateSnapshot": "

    Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.

    When a snapshot is created, any AWS Marketplace product codes that are associated with the source volume are propagated to the snapshot.

    You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your EBS volume at the time the snapshot command is issued; this may exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is pending.

    To create a snapshot for EBS volumes that serve as root devices, you should stop the instance before taking the snapshot.

    Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected.

    For more information, see Amazon Elastic Block Store and Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateSpotDatafeedSubscription": "

    Creates a data feed for Spot instances, enabling you to view Spot instance usage logs. You can create one data feed per AWS account. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateSubnet": "

    Creates a subnet in an existing VPC.

    When you create each subnet, you provide the VPC ID and the CIDR block you want for the subnet. After you create a subnet, you can't change its CIDR block. The subnet's CIDR block can be the same as the VPC's CIDR block (assuming you want only a single subnet in the VPC), or a subset of the VPC's CIDR block. If you create more than one subnet in a VPC, the subnets' CIDR blocks must not overlap. The smallest subnet (and VPC) you can create uses a /28 netmask (16 IP addresses), and the largest uses a /16 netmask (65,536 IP addresses).

    AWS reserves both the first four and the last IP address in each subnet's CIDR block. They're not available for use.

    If you add more than one subnet to a VPC, they're set up in a star topology with a logical router in the middle.

    If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP address doesn't change if you stop and restart the instance (unlike a similar instance launched outside a VPC, which gets a new IP address when restarted). It's therefore possible to have a subnet with no running instances (they're all stopped), but no remaining IP addresses available.

    For more information about subnets, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

    ", - "CreateTags": "

    Adds or overwrites one or more tags for the specified Amazon EC2 resource or resources. Each resource can have a maximum of 10 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.

    For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide. For more information about creating IAM policies that control users' access to resources based on tags, see Supported Resource-Level Permissions for Amazon EC2 API Actions in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateVolume": "

    Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints.

    You can create a new empty volume or restore a volume from an EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

    You can create encrypted volumes with the Encrypted parameter. Encrypted volumes may only be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    For more information, see Creating or Restoring an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateVpc": "

    Creates a VPC with the specified CIDR block.

    The smallest VPC you can create uses a /28 netmask (16 IP addresses), and the largest uses a /16 netmask (65,536 IP addresses). To help you decide how big to make your VPC, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

    By default, each instance you launch in the VPC has the default DHCP options, which includes only a default DNS server that we provide (AmazonProvidedDNS). For more information about DHCP options, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

    You can specify the instance tenancy value for the VPC when you create it. You can't change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon Virtual Private Cloud User Guide.

    ", - "CreateVpcEndpoint": "

    Creates a VPC endpoint for a specified AWS service. An endpoint enables you to create a private connection between your VPC and another AWS service in your account. You can specify an endpoint policy to attach to the endpoint that will control access to the service from your VPC. You can also specify the VPC route tables that use the endpoint.

    Currently, only endpoints to Amazon S3 are supported.

    ", - "CreateVpcPeeringConnection": "

    Requests a VPC peering connection between two VPCs: a requester VPC that you own and a peer VPC with which to create the connection. The peer VPC can belong to another AWS account. The requester VPC and peer VPC cannot have overlapping CIDR blocks.

    The owner of the peer VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.

    A CreateVpcPeeringConnection request between VPCs with overlapping CIDR blocks results in the VPC peering connection having a status of failed.

    ", - "CreateVpnConnection": "

    Creates a VPN connection between an existing virtual private gateway and a VPN customer gateway. The only supported connection type is ipsec.1.

    The response includes information that you need to give to your network administrator to configure your customer gateway.

    We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.

    If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

    For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

    ", - "CreateVpnConnectionRoute": "

    Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

    For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

    ", - "CreateVpnGateway": "

    Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

    For more information about virtual private gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

    ", - "DeleteCustomerGateway": "

    Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.

    ", - "DeleteDhcpOptions": "

    Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.

    ", - "DeleteFlowLogs": "

    Deletes one or more flow logs.

    ", - "DeleteInternetGateway": "

    Deletes the specified Internet gateway. You must detach the Internet gateway from the VPC before you can delete it.

    ", - "DeleteKeyPair": "

    Deletes the specified key pair, by removing the public key from Amazon EC2.

    ", - "DeleteNatGateway": "

    Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.

    ", - "DeleteNetworkAcl": "

    Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL.

    ", - "DeleteNetworkAclEntry": "

    Deletes the specified ingress or egress entry (rule) from the specified network ACL.

    ", - "DeleteNetworkInterface": "

    Deletes the specified network interface. You must detach the network interface before you can delete it.

    ", - "DeletePlacementGroup": "

    Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide.

    ", - "DeleteRoute": "

    Deletes the specified route from the specified route table.

    ", - "DeleteRouteTable": "

    Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table.

    ", - "DeleteSecurityGroup": "

    Deletes a security group.

    If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in EC2-VPC.

    ", - "DeleteSnapshot": "

    Deletes the specified snapshot.

    When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

    You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

    For more information, see Deleting an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

    ", - "DeleteSpotDatafeedSubscription": "

    Deletes the data feed for Spot instances.

    ", - "DeleteSubnet": "

    Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

    ", - "DeleteTags": "

    Deletes the specified set of tags from the specified set of resources. This call is designed to follow a DescribeTags request.

    For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

    ", - "DeleteVolume": "

    Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

    The volume may remain in the deleting state for several minutes.

    For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

    ", - "DeleteVpc": "

    Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.

    ", - "DeleteVpcEndpoints": "

    Deletes one or more specified VPC endpoints. Deleting the endpoint also deletes the endpoint routes in the route tables that were associated with the endpoint.

    ", - "DeleteVpcPeeringConnection": "

    Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the peer VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state.

    ", - "DeleteVpnConnection": "

    Deletes the specified VPN connection.

    If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new configuration information returned with the new VPN connection ID.

    ", - "DeleteVpnConnectionRoute": "

    Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

    ", - "DeleteVpnGateway": "

    Deletes the specified virtual private gateway. We recommend that before you delete a virtual private gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.

    ", - "DeregisterImage": "

    Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances.

    This command does not delete the AMI.

    ", - "DescribeAccountAttributes": "

    Describes attributes of your AWS account. The following are the supported account attributes:

    • supported-platforms: Indicates whether your account can launch instances into EC2-Classic and EC2-VPC, or only into EC2-VPC.

    • default-vpc: The ID of the default VPC for your account, or none.

    • max-instances: The maximum number of On-Demand instances that you can run.

    • vpc-max-security-groups-per-interface: The maximum number of security groups that you can assign to a network interface.

    • max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate for use with EC2-Classic.

    • vpc-max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate for use with EC2-VPC.

    ", - "DescribeAddresses": "

    Describes one or more of your Elastic IP addresses.

    An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeAvailabilityZones": "

    Describes one or more of the Availability Zones that are available to you. The results include zones only for the region you're currently using. If there is an event impacting an Availability Zone, you can use this request to view the state and any provided message for that Availability Zone.

    For more information, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeBundleTasks": "

    Describes one or more of your bundling tasks.

    Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

    ", - "DescribeClassicLinkInstances": "

    Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink; you cannot use this request to return information about other instances.

    ", - "DescribeConversionTasks": "

    Describes one or more of your conversion tasks. For more information, see Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 in the Amazon Elastic Compute Cloud User Guide.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    ", - "DescribeCustomerGateways": "

    Describes one or more of your VPN customer gateways.

    For more information about VPN customer gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

    ", - "DescribeDhcpOptions": "

    Describes one or more of your DHCP options sets.

    For more information about DHCP options sets, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

    ", - "DescribeExportTasks": "

    Describes one or more of your export tasks.

    ", - "DescribeFlowLogs": "

    Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API.

    ", - "DescribeHosts": "

    Describes one or more of your Dedicated hosts.

    The results describe only the Dedicated hosts in the region you're currently using. All listed instances consume capacity on your Dedicated host. Dedicated hosts that have recently been released will be listed with the state released.

    ", - "DescribeIdFormat": "

    Describes the ID format settings for your resources on a per-region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

    The following resource types support longer IDs: instance | reservation | snapshot | volume.

    These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    ", - "DescribeImageAttribute": "

    Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.

    ", - "DescribeImages": "

    Describes one or more of the images (AMIs, AKIs, and ARIs) available to you. Images available to you include public images, private images that you own, and private images owned by other AWS accounts but for which you have explicit launch permissions.

    Deregistered images are included in the returned results for an unspecified interval after deregistration.

    ", - "DescribeImportImageTasks": "

    Displays details about an import virtual machine or import snapshot tasks that are already created.

    ", - "DescribeImportSnapshotTasks": "

    Describes your import snapshot tasks.

    ", - "DescribeInstanceAttribute": "

    Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport

    ", - "DescribeInstanceStatus": "

    Describes the status of one or more instances. By default, only running instances are described, unless specified otherwise.

    Instance status includes the following components:

    • Status checks - Amazon EC2 performs status checks on running EC2 instances to identify hardware and software issues. For more information, see Status Checks for Your Instances and Troubleshooting Instances with Failed Status Checks in the Amazon Elastic Compute Cloud User Guide.

    • Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, or terminate) for your instances related to hardware issues, software updates, or system maintenance. For more information, see Scheduled Events for Your Instances in the Amazon Elastic Compute Cloud User Guide.

    • Instance state - You can manage your instances from the moment you launch them through their termination. For more information, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeInstances": "

    Describes one or more of your instances.

    If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the returned results.

    Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

    ", - "DescribeInternetGateways": "

    Describes one or more of your Internet gateways.

    ", - "DescribeKeyPairs": "

    Describes one or more of your key pairs.

    For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeMovingAddresses": "

    Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account.

    ", - "DescribeNatGateways": "

    Describes one or more of the your NAT gateways.

    ", - "DescribeNetworkAcls": "

    Describes one or more of your network ACLs.

    For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

    ", - "DescribeNetworkInterfaceAttribute": "

    Describes a network interface attribute. You can specify only one attribute at a time.

    ", - "DescribeNetworkInterfaces": "

    Describes one or more of your network interfaces.

    ", - "DescribePlacementGroups": "

    Describes one or more of your placement groups. For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribePrefixLists": "

    Describes available AWS services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service. A prefix list ID is required for creating an outbound security group rule that allows traffic from a VPC to access an AWS service through a VPC endpoint.

    ", - "DescribeRegions": "

    Describes one or more regions that are currently available to you.

    For a list of the regions supported by Amazon EC2, see Regions and Endpoints.

    ", - "DescribeReservedInstances": "

    Describes one or more of the Reserved Instances that you purchased.

    For more information about Reserved Instances, see Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeReservedInstancesListings": "

    Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

    The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

    As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

    As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

    For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeReservedInstancesModifications": "

    Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.

    For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeReservedInstancesOfferings": "

    Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.

    If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.

    For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeRouteTables": "

    Describes one or more of your route tables.

    Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

    For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ", - "DescribeScheduledInstanceAvailability": "

    Finds available schedules that meet the specified criteria.

    You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

    After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

    ", - "DescribeScheduledInstances": "

    Describes one or more of your Scheduled Instances.

    ", - "DescribeSecurityGroupReferences": "

    [EC2-VPC only] Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you've specified in this request.

    ", - "DescribeSecurityGroups": "

    Describes one or more of your security groups.

    A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

    ", - "DescribeSnapshotAttribute": "

    Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

    For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeSnapshots": "

    Describes one or more of the EBS snapshots available to you. Available snapshots include public snapshots available for any AWS account to launch, private snapshots that you own, and private snapshots owned by another AWS account but for which you've been given explicit create volume permissions.

    The create volume permissions fall into the following categories:

    • public: The owner of the snapshot granted create volume permissions for the snapshot to the all group. All AWS accounts have create volume permissions for these snapshots.

    • explicit: The owner of the snapshot granted create volume permissions to a specific AWS account.

    • implicit: An AWS account has implicit create volume permissions for all snapshots it owns.

    The list of snapshots returned can be modified by specifying snapshot IDs, snapshot owners, or AWS accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.

    If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.

    If you specify one or more snapshot owners, only snapshots from the specified owners and for which you have access are returned. The results can include the AWS account IDs of the specified owners, amazon for snapshots owned by Amazon, or self for snapshots that you own.

    If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify AWS account IDs (if you own the snapshots), self for snapshots for which you own or have explicit permissions, or all for public snapshots.

    If you are describing a long list of snapshots, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeSnapshots request to retrieve the remaining results.

    For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeSpotDatafeedSubscription": "

    Describes the data feed for Spot instances. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeSpotFleetInstances": "

    Describes the running instances for the specified Spot fleet.

    ", - "DescribeSpotFleetRequestHistory": "

    Describes the events for the specified Spot fleet request during the specified time.

    Spot fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event.

    ", - "DescribeSpotFleetRequests": "

    Describes your Spot fleet requests.

    ", - "DescribeSpotInstanceRequests": "

    Describes the Spot instance requests that belong to your account. Spot instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

    You can use DescribeSpotInstanceRequests to find a running Spot instance by examining the response. If the status of the Spot instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

    ", - "DescribeSpotPriceHistory": "

    Describes the Spot price history. The prices returned are listed in chronological order, from the oldest to the most recent, for up to the past 90 days. For more information, see Spot Instance Pricing History in the Amazon Elastic Compute Cloud User Guide.

    When you specify a start and end time, this operation returns the prices of the instance types within the time range that you specified and the time when the price changed. The price is valid within the time period that you specified; the response merely indicates the last time that the price changed.

    ", - "DescribeStaleSecurityGroups": "

    [EC2-VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in a peer VPC, or a security group in a peer VPC for which the VPC peering connection has been deleted.

    ", - "DescribeSubnets": "

    Describes one or more of your subnets.

    For more information about subnets, see Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.

    ", - "DescribeTags": "

    Describes one or more of the tags for your EC2 resources.

    For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeVolumeAttribute": "

    Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

    For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeVolumeStatus": "

    Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume's underlying host. If the volume's underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.

    The DescribeVolumeStatus operation provides the following information about the specified volumes:

    Status: Reflects the current status of the volume. The possible values are ok, impaired , warning, or insufficient-data. If all checks pass, the overall status of the volume is ok. If the check fails, the overall status is impaired. If the status is insufficient-data, then the checks may still be taking place on your volume at the time. We recommend that you retry the request. For more information on volume status, see Monitoring the Status of Your Volumes.

    Events: Reflect the cause of a volume status and may require you to take action. For example, if your volume returns an impaired status, then the volume event might be potential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and may have inconsistent data.

    Actions: Reflect the actions you may have to take in response to an event. For example, if the status of the volume is impaired and the volume event shows potential-data-inconsistency, then the action shows enable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.

    Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the error state (for example, when a volume is incapable of accepting I/O.)

    ", - "DescribeVolumes": "

    Describes the specified EBS volumes.

    If you are describing a long list of volumes, you can paginate the output to make the list more manageable. The MaxResults parameter sets the maximum number of results returned in a single page. If the list of results exceeds your MaxResults value, then that number of results is returned along with a NextToken value that can be passed to a subsequent DescribeVolumes request to retrieve the remaining results.

    For more information about EBS volumes, see Amazon EBS Volumes in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeVpcAttribute": "

    Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.

    ", - "DescribeVpcClassicLink": "

    Describes the ClassicLink status of one or more VPCs.

    ", - "DescribeVpcClassicLinkDnsSupport": "

    Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information about ClassicLink, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

    ", - "DescribeVpcEndpointServices": "

    Describes all supported AWS services that can be specified when creating a VPC endpoint.

    ", - "DescribeVpcEndpoints": "

    Describes one or more of your VPC endpoints.

    ", - "DescribeVpcPeeringConnections": "

    Describes one or more of your VPC peering connections.

    ", - "DescribeVpcs": "

    Describes one or more of your VPCs.

    ", - "DescribeVpnConnections": "

    Describes one or more of your VPN connections.

    For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

    ", - "DescribeVpnGateways": "

    Describes one or more of your virtual private gateways.

    For more information about virtual private gateways, see Adding an IPsec Hardware VPN to Your VPC in the Amazon Virtual Private Cloud User Guide.

    ", - "DetachClassicLinkVpc": "

    Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped.

    ", - "DetachInternetGateway": "

    Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses.

    ", - "DetachNetworkInterface": "

    Detaches a network interface from an instance.

    ", - "DetachVolume": "

    Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so results in the volume being stuck in a busy state while detaching.

    If an Amazon EBS volume is the root device of an instance, it can't be detached while the instance is running. To detach the root volume, stop the instance first.

    When a volume with an AWS Marketplace product code is detached from an instance, the product code is no longer associated with the instance.

    For more information, see Detaching an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

    ", - "DetachVpnGateway": "

    Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

    You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

    ", - "DisableVgwRoutePropagation": "

    Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.

    ", - "DisableVpcClassicLink": "

    Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.

    ", - "DisableVpcClassicLinkDnsSupport": "

    Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. For more information about ClassicLink, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

    ", - "DisassociateAddress": "

    Disassociates an Elastic IP address from the instance or network interface it's associated with.

    An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

    ", - "DisassociateRouteTable": "

    Disassociates a subnet from a route table.

    After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ", - "EnableVgwRoutePropagation": "

    Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.

    ", - "EnableVolumeIO": "

    Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.

    ", - "EnableVpcClassicLink": "

    Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC's route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

    ", - "EnableVpcClassicLinkDnsSupport": "

    Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information about ClassicLink, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

    ", - "GetConsoleOutput": "

    Gets the console output for the specified instance.

    Instances do not have a physical monitor through which you can view their console output. They also lack physical controls that allow you to power up, reboot, or shut them down. To allow these actions, we provide them through the Amazon EC2 API and command line interface.

    Instance console output is buffered and posted shortly after instance boot, reboot, and termination. Amazon EC2 preserves the most recent 64 KB output which is available for at least one hour after the most recent post.

    For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. This output is buffered because the instance produces it and then posts it to a store where the instance's owner can retrieve it.

    For Windows instances, the instance console output includes output from the EC2Config service.

    ", - "GetConsoleScreenshot": "

    Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

    The returned content is base64-encoded.

    ", - "GetPasswordData": "

    Retrieves the encrypted administrator password for an instance running Windows.

    The Windows password is generated at boot if the EC2Config service plugin, Ec2SetPassword, is enabled. This usually only happens the first time an AMI is launched, and then Ec2SetPassword is automatically disabled. The password is not generated for rebundled AMIs unless Ec2SetPassword is enabled before bundling.

    The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.

    Password generation and encryption takes a few moments. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.

    ", - "ImportImage": "

    Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).

    ", - "ImportInstance": "

    Creates an import instance task using metadata from the specified disk image. ImportInstance only supports single-volume VMs. To import multi-volume VMs, use ImportImage. After importing the image, you then upload it using the ec2-import-volume command in the EC2 command line tools. For more information, see Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 in the Amazon Elastic Compute Cloud User Guide.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    ", - "ImportKeyPair": "

    Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.

    For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    ", - "ImportSnapshot": "

    Imports a disk into an EBS snapshot.

    ", - "ImportVolume": "

    Creates an import volume task using metadata from the specified disk image. After importing the image, you then upload it using the ec2-import-volume command in the Amazon EC2 command-line interface (CLI) tools. For more information, see Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 in the Amazon Elastic Compute Cloud User Guide.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    ", - "ModifyHosts": "

    Modify the auto-placement setting of a Dedicated host. When auto-placement is enabled, AWS will place instances that you launch with a tenancy of host, but without targeting a specific host ID, onto any available Dedicated host in your account which has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID if you want the instance to launch onto a specific host. If no host ID is provided, the instance will be launched onto a suitable host which has auto-placement enabled.

    ", - "ModifyIdFormat": "

    Modifies the ID format for the specified resource on a per-region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created. The following resource types support longer IDs: instance | reservation | snapshot | volume.

    This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user or as an IAM role that has permission to use this action, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Controlling Access to Longer ID Settings in the Amazon Elastic Compute Cloud User Guide.

    Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    ", - "ModifyImageAttribute": "

    Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.

    AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.

    ", - "ModifyInstanceAttribute": "

    Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

    To modify some attributes, the instance must be stopped. For more information, see Modifying Attributes of a Stopped Instance in the Amazon Elastic Compute Cloud User Guide.

    ", - "ModifyInstancePlacement": "

    Set the instance affinity value for a specific stopped instance and modify the instance tenancy setting.

    Instance affinity is disabled by default. When instance affinity is host and it is not associated with a specific Dedicated host, the next time it is launched it will automatically be associated with the host it lands on. This relationship will persist if the instance is stopped/started, or rebooted.

    You can modify the host ID associated with a stopped instance. If a stopped instance has a new host ID association, the instance will target that host when restarted.

    You can modify the tenancy of a stopped instance with a tenancy of host or dedicated.

    Affinity, hostID, and tenancy are not required parameters, but at least one of them must be specified in the request. Affinity and tenancy can be modified in the same request, but tenancy can only be modified on instances that are stopped.

    ", - "ModifyNetworkInterfaceAttribute": "

    Modifies the specified network interface attribute. You can specify only one attribute at a time.

    ", - "ModifyReservedInstances": "

    Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

    For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

    ", - "ModifySnapshotAttribute": "

    Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single API call. If you need to both add and remove account IDs for a snapshot, you must use multiple API calls.

    For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

    Snapshots with AWS Marketplace product codes cannot be made public.

    ", - "ModifySpotFleetRequest": "

    Modifies the specified Spot fleet request.

    While the Spot fleet request is being modified, it is in the modifying state.

    To scale up your Spot fleet, increase its target capacity. The Spot fleet launches the additional Spot instances according to the allocation strategy for the Spot fleet request. If the allocation strategy is lowestPrice, the Spot fleet launches instances using the Spot pool with the lowest price. If the allocation strategy is diversified, the Spot fleet distributes the instances across the Spot pools.

    To scale down your Spot fleet, decrease its target capacity. First, the Spot fleet cancels any open bids that exceed the new target capacity. You can request that the Spot fleet terminate Spot instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowestPrice, the Spot fleet terminates the instances with the highest price per unit. If the allocation strategy is diversified, the Spot fleet terminates instances across the Spot pools. Alternatively, you can request that the Spot fleet keep the fleet at its current size, but not replace any Spot instances that are interrupted or that you terminate manually.

    ", - "ModifySubnetAttribute": "

    Modifies a subnet attribute.

    ", - "ModifyVolumeAttribute": "

    Modifies a volume attribute.

    By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.

    You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.

    ", - "ModifyVpcAttribute": "

    Modifies the specified attribute of the specified VPC.

    ", - "ModifyVpcEndpoint": "

    Modifies attributes of a specified VPC endpoint. You can modify the policy associated with the endpoint, and you can add and remove route tables associated with the endpoint.

    ", - "ModifyVpcPeeringConnectionOptions": "

    Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

    • Enable/disable communication over the peering connection between an EC2-Classic instance that's linked to your VPC (using ClassicLink) and instances in the peer VPC.

    • Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that's linked to the peer VPC.

    If the peered VPCs are in different accounts, each owner must initiate a separate request to enable or disable communication in either direction, depending on whether their VPC was the requester or accepter for the VPC peering connection. If the peered VPCs are in the same account, you can modify the requester and accepter options in the same request. To confirm which VPC is the accepter and requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

    ", - "MonitorInstances": "

    Enables monitoring for a running instance. For more information about monitoring instances, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

    ", - "MoveAddressToVpc": "

    Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.

    ", - "PurchaseReservedInstancesOffering": "

    Purchases a Reserved Instance for use with your account. With Reserved Instances, you obtain a capacity reservation for a certain instance configuration over a specified period of time and pay a lower hourly rate compared to On-Demand instance pricing.

    Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.

    For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

    ", - "PurchaseScheduledInstances": "

    Purchases one or more Scheduled Instances with the specified schedule.

    Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

    After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.

    ", - "RebootInstances": "

    Requests a reboot of one or more instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

    If an instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.

    For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide.

    ", - "RegisterImage": "

    Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating Your Own AMIs in the Amazon Elastic Compute Cloud User Guide.

    For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don't have to register the AMI yourself.

    You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. For more information, see Launching an Instance from a Snapshot in the Amazon Elastic Compute Cloud User Guide.

    Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 billingProduct code associated with an AMI to verify subscription status for package updates. Creating an AMI from an EBS snapshot does not maintain this billing code, and subsequent instances launched from such an AMI will not be able to connect to package update infrastructure.

    Similarly, although you can create a Windows AMI from a snapshot, you can't successfully launch an instance from the AMI.

    To create Windows AMIs or to create AMIs for Linux operating systems that must retain AMI billing codes to work properly, see CreateImage.

    If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

    You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.

    ", - "RejectVpcPeeringConnection": "

    Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.

    ", - "ReleaseAddress": "

    Releases the specified Elastic IP address.

    After releasing an Elastic IP address, it is released to the IP address pool and might be unavailable to you. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you'll get an AuthFailure error if the address is already allocated to another AWS account.

    [EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.

    [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you try to release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

    ", - "ReleaseHosts": "

    When you no longer want to use a Dedicated host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated hosts that have been released can no longer be specified in another request, e.g., ModifyHosts. You must stop or terminate all instances on a host before it can be released.

    When Dedicated hosts are released, it make take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated hosts. Try waiting a few minutes, and then try again.

    Released hosts will still appear in a DescribeHosts response.

    ", - "ReplaceNetworkAclAssociation": "

    Changes which network ACL a subnet is associated with. By default when you create a subnet, it's automatically associated with the default network ACL. For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

    ", - "ReplaceNetworkAclEntry": "

    Replaces an entry (rule) in a network ACL. For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

    ", - "ReplaceRoute": "

    Replaces an existing route within a route table in a VPC. You must provide only one of the following: Internet gateway or virtual private gateway, NAT instance, NAT gateway, VPC peering connection, or network interface.

    For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    ", - "ReplaceRouteTableAssociation": "

    Changes the route table associated with a given subnet in a VPC. After the operation completes, the subnet uses the routes in the new route table it's associated with. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

    You can also use ReplaceRouteTableAssociation to change which table is the main route table in the VPC. You just specify the main route table's association ID and the route table to be the new main route table.

    ", - "ReportInstanceStatus": "

    Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

    Use of this action does not change the value returned by DescribeInstanceStatus.

    ", - "RequestSpotFleet": "

    Creates a Spot fleet request.

    You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

    By default, the Spot fleet requests Spot instances in the Spot pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

    Alternatively, you can specify that the Spot fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot instances in your Spot fleet are in different Spot pools, you can improve the availability of your fleet.

    For more information, see Spot Fleet Requests in the Amazon Elastic Compute Cloud User Guide.

    ", - "RequestSpotInstances": "

    Creates a Spot instance request. Spot instances are instances that Amazon EC2 launches when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot Instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

    ", - "ResetImageAttribute": "

    Resets an attribute of an AMI to its default value.

    The productCodes attribute can't be reset.

    ", - "ResetInstanceAttribute": "

    Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, the instance can be either running or stopped.

    The sourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

    ", - "ResetNetworkInterfaceAttribute": "

    Resets a network interface attribute. You can specify only one attribute at a time.

    ", - "ResetSnapshotAttribute": "

    Resets permission settings for the specified snapshot.

    For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

    ", - "RestoreAddressToClassic": "

    Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface.

    ", - "RevokeSecurityGroupEgress": "

    [EC2-VPC only] Removes one or more egress rules from a security group for EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic. The values that you specify in the revoke request (for example, ports) must match the existing rule's values for the rule to be revoked.

    Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    ", - "RevokeSecurityGroupIngress": "

    Removes one or more ingress rules from a security group. The values that you specify in the revoke request (for example, ports) must match the existing rule's values for the rule to be removed.

    Each rule consists of the protocol and the CIDR range or source security group. For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    ", - "RunInstances": "

    Launches the specified number of instances using an AMI for which you have permissions.

    When you launch an instance, it enters the pending state. After the instance is ready for you, it enters the running state. To check the state of your instance, call DescribeInstances.

    To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.

    To tag your instance, ensure that it is running as CreateTags requires a resource ID. For more information about tagging, see Tagging Your Amazon EC2 Resources.

    If you don't specify a security group when launching an instance, Amazon EC2 uses the default security group. For more information, see Security Groups in the Amazon Elastic Compute Cloud User Guide.

    [EC2-VPC only accounts] If you don't specify a subnet in the request, we choose a default subnet from your default VPC for you.

    [EC2-Classic accounts] If you're launching into EC2-Classic and you don't specify an Availability Zone, we choose one for you.

    Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

    You can provide optional user data when launching an instance. For more information, see Instance Metadata in the Amazon Elastic Compute Cloud User Guide.

    If any of the AMIs have a product code attached for which the user has not subscribed, RunInstances fails.

    Some instance types can only be launched into a VPC. If you do not have a default VPC, or if you do not specify a subnet ID in the request, RunInstances fails. For more information, see Instance Types Available Only in a VPC.

    For more information about troubleshooting, see What To Do If An Instance Immediately Terminates, and Troubleshooting Connecting to Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ", - "RunScheduledInstances": "

    Launches the specified Scheduled Instances.

    Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

    You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon Elastic Compute Cloud User Guide.

    ", - "StartInstances": "

    Starts an Amazon EBS-backed AMI that you've previously stopped.

    Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for hourly instance usage. However, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Each time you transition an instance from stopped to started, Amazon EC2 charges a full instance hour, even if transitions happen multiple times within a single hour.

    Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

    Performing this operation on an instance that uses an instance store as its root device returns an error.

    For more information, see Stopping Instances in the Amazon Elastic Compute Cloud User Guide.

    ", - "StopInstances": "

    Stops an Amazon EBS-backed instance.

    We don't charge hourly usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains, continues to persist your data, and you are charged for Amazon EBS volume usage. Each time you transition an instance from stopped to started, Amazon EC2 charges a full instance hour, even if transitions happen multiple times within a single hour.

    You can't start or stop Spot instances, and you can't stop instance store-backed instances.

    When you stop an instance, we shut it down. You can restart your instance at any time. Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

    Stopping an instance is different to rebooting or terminating it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshooting Stopping Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ", - "TerminateInstances": "

    Shuts down one or more instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

    Terminated instances remain visible after termination (for approximately one hour).

    By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

    You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance Lifecycle in the Amazon Elastic Compute Cloud User Guide.

    For more information about troubleshooting, see Troubleshooting Terminating Your Instance in the Amazon Elastic Compute Cloud User Guide.

    ", - "UnassignPrivateIpAddresses": "

    Unassigns one or more secondary private IP addresses from a network interface.

    ", - "UnmonitorInstances": "

    Disables monitoring for a running instance. For more information about monitoring instances, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

    " - }, - "shapes": { - "AcceptVpcPeeringConnectionRequest": { - "base": "

    Contains the parameters for AcceptVpcPeeringConnection.

    ", - "refs": { - } - }, - "AcceptVpcPeeringConnectionResult": { - "base": "

    Contains the output of AcceptVpcPeeringConnection.

    ", - "refs": { - } - }, - "AccountAttribute": { - "base": "

    Describes an account attribute.

    ", - "refs": { - "AccountAttributeList$member": null - } - }, - "AccountAttributeList": { - "base": null, - "refs": { - "DescribeAccountAttributesResult$AccountAttributes": "

    Information about one or more account attributes.

    " - } - }, - "AccountAttributeName": { - "base": null, - "refs": { - "AccountAttributeNameStringList$member": null - } - }, - "AccountAttributeNameStringList": { - "base": null, - "refs": { - "DescribeAccountAttributesRequest$AttributeNames": "

    One or more account attribute names.

    " - } - }, - "AccountAttributeValue": { - "base": "

    Describes a value of an account attribute.

    ", - "refs": { - "AccountAttributeValueList$member": null - } - }, - "AccountAttributeValueList": { - "base": null, - "refs": { - "AccountAttribute$AttributeValues": "

    One or more values for the account attribute.

    " - } - }, - "ActiveInstance": { - "base": "

    Describes a running instance in a Spot fleet.

    ", - "refs": { - "ActiveInstanceSet$member": null - } - }, - "ActiveInstanceSet": { - "base": null, - "refs": { - "DescribeSpotFleetInstancesResponse$ActiveInstances": "

    The running instances. Note that this list is refreshed periodically and might be out of date.

    " - } - }, - "Address": { - "base": "

    Describes an Elastic IP address.

    ", - "refs": { - "AddressList$member": null - } - }, - "AddressList": { - "base": null, - "refs": { - "DescribeAddressesResult$Addresses": "

    Information about one or more Elastic IP addresses.

    " - } - }, - "Affinity": { - "base": null, - "refs": { - "ModifyInstancePlacementRequest$Affinity": "

    The new affinity setting for the instance.

    " - } - }, - "AllocateAddressRequest": { - "base": "

    Contains the parameters for AllocateAddress.

    ", - "refs": { - } - }, - "AllocateAddressResult": { - "base": "

    Contains the output of AllocateAddress.

    ", - "refs": { - } - }, - "AllocateHostsRequest": { - "base": "

    Contains the parameters for AllocateHosts.

    ", - "refs": { - } - }, - "AllocateHostsResult": { - "base": "

    Contains the output of AllocateHosts.

    ", - "refs": { - } - }, - "AllocationIdList": { - "base": null, - "refs": { - "DescribeAddressesRequest$AllocationIds": "

    [EC2-VPC] One or more allocation IDs.

    Default: Describes all your Elastic IP addresses.

    " - } - }, - "AllocationState": { - "base": null, - "refs": { - "Host$State": "

    The Dedicated host's state.

    " - } - }, - "AllocationStrategy": { - "base": null, - "refs": { - "SpotFleetRequestConfigData$AllocationStrategy": "

    Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

    " - } - }, - "ArchitectureValues": { - "base": null, - "refs": { - "Image$Architecture": "

    The architecture of the image.

    ", - "ImportInstanceLaunchSpecification$Architecture": "

    The architecture of the instance.

    ", - "Instance$Architecture": "

    The architecture of the image.

    ", - "RegisterImageRequest$Architecture": "

    The architecture of the AMI.

    Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, the architecture specified in the manifest file.

    " - } - }, - "AssignPrivateIpAddressesRequest": { - "base": "

    Contains the parameters for AssignPrivateIpAddresses.

    ", - "refs": { - } - }, - "AssociateAddressRequest": { - "base": "

    Contains the parameters for AssociateAddress.

    ", - "refs": { - } - }, - "AssociateAddressResult": { - "base": "

    Contains the output of AssociateAddress.

    ", - "refs": { - } - }, - "AssociateDhcpOptionsRequest": { - "base": "

    Contains the parameters for AssociateDhcpOptions.

    ", - "refs": { - } - }, - "AssociateRouteTableRequest": { - "base": "

    Contains the parameters for AssociateRouteTable.

    ", - "refs": { - } - }, - "AssociateRouteTableResult": { - "base": "

    Contains the output of AssociateRouteTable.

    ", - "refs": { - } - }, - "AttachClassicLinkVpcRequest": { - "base": "

    Contains the parameters for AttachClassicLinkVpc.

    ", - "refs": { - } - }, - "AttachClassicLinkVpcResult": { - "base": "

    Contains the output of AttachClassicLinkVpc.

    ", - "refs": { - } - }, - "AttachInternetGatewayRequest": { - "base": "

    Contains the parameters for AttachInternetGateway.

    ", - "refs": { - } - }, - "AttachNetworkInterfaceRequest": { - "base": "

    Contains the parameters for AttachNetworkInterface.

    ", - "refs": { - } - }, - "AttachNetworkInterfaceResult": { - "base": "

    Contains the output of AttachNetworkInterface.

    ", - "refs": { - } - }, - "AttachVolumeRequest": { - "base": "

    Contains the parameters for AttachVolume.

    ", - "refs": { - } - }, - "AttachVpnGatewayRequest": { - "base": "

    Contains the parameters for AttachVpnGateway.

    ", - "refs": { - } - }, - "AttachVpnGatewayResult": { - "base": "

    Contains the output of AttachVpnGateway.

    ", - "refs": { - } - }, - "AttachmentStatus": { - "base": null, - "refs": { - "EbsInstanceBlockDevice$Status": "

    The attachment state.

    ", - "InstanceNetworkInterfaceAttachment$Status": "

    The attachment state.

    ", - "InternetGatewayAttachment$State": "

    The current state of the attachment.

    ", - "NetworkInterfaceAttachment$Status": "

    The attachment state.

    ", - "VpcAttachment$State": "

    The current state of the attachment.

    " - } - }, - "AttributeBooleanValue": { - "base": "

    The value to use when a resource attribute accepts a Boolean value.

    ", - "refs": { - "DescribeNetworkInterfaceAttributeResult$SourceDestCheck": "

    Indicates whether source/destination checking is enabled.

    ", - "DescribeVolumeAttributeResult$AutoEnableIO": "

    The state of autoEnableIO attribute.

    ", - "DescribeVpcAttributeResult$EnableDnsSupport": "

    Indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.

    ", - "DescribeVpcAttributeResult$EnableDnsHostnames": "

    Indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not.

    ", - "InstanceAttribute$DisableApiTermination": "

    If the value is true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.

    ", - "InstanceAttribute$EbsOptimized": "

    Indicates whether the instance is optimized for EBS I/O.

    ", - "InstanceAttribute$SourceDestCheck": "

    Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT.

    ", - "ModifyInstanceAttributeRequest$SourceDestCheck": "

    Specifies whether source/destination checking is enabled. A value of true means that checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT.

    ", - "ModifyInstanceAttributeRequest$DisableApiTermination": "

    If the value is true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use this paramater for Spot Instances.

    ", - "ModifyInstanceAttributeRequest$EbsOptimized": "

    Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

    ", - "ModifyNetworkInterfaceAttributeRequest$SourceDestCheck": "

    Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

    ", - "ModifySubnetAttributeRequest$MapPublicIpOnLaunch": "

    Specify true to indicate that instances launched into the specified subnet should be assigned public IP address.

    ", - "ModifyVolumeAttributeRequest$AutoEnableIO": "

    Indicates whether the volume should be auto-enabled for I/O operations.

    ", - "ModifyVpcAttributeRequest$EnableDnsSupport": "

    Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range \"plus two\" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

    You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

    ", - "ModifyVpcAttributeRequest$EnableDnsHostnames": "

    Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

    You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

    " - } - }, - "AttributeValue": { - "base": "

    The value to use for a resource attribute.

    ", - "refs": { - "DescribeNetworkInterfaceAttributeResult$Description": "

    The description of the network interface.

    ", - "DhcpConfigurationValueList$member": null, - "ImageAttribute$KernelId": "

    The kernel ID.

    ", - "ImageAttribute$RamdiskId": "

    The RAM disk ID.

    ", - "ImageAttribute$Description": "

    A description for the AMI.

    ", - "ImageAttribute$SriovNetSupport": null, - "InstanceAttribute$InstanceType": "

    The instance type.

    ", - "InstanceAttribute$KernelId": "

    The kernel ID.

    ", - "InstanceAttribute$RamdiskId": "

    The RAM disk ID.

    ", - "InstanceAttribute$UserData": "

    The Base64-encoded MIME user data.

    ", - "InstanceAttribute$InstanceInitiatedShutdownBehavior": "

    Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

    ", - "InstanceAttribute$RootDeviceName": "

    The name of the root device (for example, /dev/sda1 or /dev/xvda).

    ", - "InstanceAttribute$SriovNetSupport": null, - "ModifyImageAttributeRequest$Description": "

    A description for the AMI.

    ", - "ModifyInstanceAttributeRequest$InstanceType": "

    Changes the instance type to the specified value. For more information, see Instance Types. If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.

    ", - "ModifyInstanceAttributeRequest$Kernel": "

    Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.

    ", - "ModifyInstanceAttributeRequest$Ramdisk": "

    Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.

    ", - "ModifyInstanceAttributeRequest$InstanceInitiatedShutdownBehavior": "

    Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

    ", - "ModifyInstanceAttributeRequest$SriovNetSupport": "

    Set to simple to enable enhanced networking for the instance.

    There is no way to disable enhanced networking at this time.

    This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.

    ", - "ModifyNetworkInterfaceAttributeRequest$Description": "

    A description for the network interface.

    " - } - }, - "AuthorizeSecurityGroupEgressRequest": { - "base": "

    Contains the parameters for AuthorizeSecurityGroupEgress.

    ", - "refs": { - } - }, - "AuthorizeSecurityGroupIngressRequest": { - "base": "

    Contains the parameters for AuthorizeSecurityGroupIngress.

    ", - "refs": { - } - }, - "AutoPlacement": { - "base": null, - "refs": { - "AllocateHostsRequest$AutoPlacement": "

    This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

    Default: Enabled

    ", - "Host$AutoPlacement": "

    Whether auto-placement is on or off.

    ", - "ModifyHostsRequest$AutoPlacement": "

    Specify whether to enable or disable auto-placement.

    " - } - }, - "AvailabilityZone": { - "base": "

    Describes an Availability Zone.

    ", - "refs": { - "AvailabilityZoneList$member": null - } - }, - "AvailabilityZoneList": { - "base": null, - "refs": { - "DescribeAvailabilityZonesResult$AvailabilityZones": "

    Information about one or more Availability Zones.

    " - } - }, - "AvailabilityZoneMessage": { - "base": "

    Describes a message about an Availability Zone.

    ", - "refs": { - "AvailabilityZoneMessageList$member": null - } - }, - "AvailabilityZoneMessageList": { - "base": null, - "refs": { - "AvailabilityZone$Messages": "

    Any messages about the Availability Zone.

    " - } - }, - "AvailabilityZoneState": { - "base": null, - "refs": { - "AvailabilityZone$State": "

    The state of the Availability Zone.

    " - } - }, - "AvailableCapacity": { - "base": "

    The capacity information for instances launched onto the Dedicated host.

    ", - "refs": { - "Host$AvailableCapacity": "

    The number of new instances that can be launched onto the Dedicated host.

    " - } - }, - "AvailableInstanceCapacityList": { - "base": null, - "refs": { - "AvailableCapacity$AvailableInstanceCapacity": "

    The total number of instances that the Dedicated host supports.

    " - } - }, - "BatchState": { - "base": null, - "refs": { - "CancelSpotFleetRequestsSuccessItem$CurrentSpotFleetRequestState": "

    The current state of the Spot fleet request.

    ", - "CancelSpotFleetRequestsSuccessItem$PreviousSpotFleetRequestState": "

    The previous state of the Spot fleet request.

    ", - "SpotFleetRequestConfig$SpotFleetRequestState": "

    The state of the Spot fleet request.

    " - } - }, - "Blob": { - "base": null, - "refs": { - "BlobAttributeValue$Value": null, - "ImportKeyPairRequest$PublicKeyMaterial": "

    The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.

    ", - "S3Storage$UploadPolicy": "

    A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf. For command line tools, base64 encoding is performed for you.

    " - } - }, - "BlobAttributeValue": { - "base": null, - "refs": { - "ModifyInstanceAttributeRequest$UserData": "

    Changes the instance's user data to the specified base64-encoded value. For command line tools, base64 encoding is performed for you.

    " - } - }, - "BlockDeviceMapping": { - "base": "

    Describes a block device mapping.

    ", - "refs": { - "BlockDeviceMappingList$member": null, - "BlockDeviceMappingRequestList$member": null - } - }, - "BlockDeviceMappingList": { - "base": null, - "refs": { - "Image$BlockDeviceMappings": "

    Any block device mapping entries.

    ", - "ImageAttribute$BlockDeviceMappings": "

    One or more block device mapping entries.

    ", - "LaunchSpecification$BlockDeviceMappings": "

    One or more block device mapping entries.

    Although you can specify encrypted EBS volumes in this block device mapping for your Spot Instances, these volumes are not encrypted.

    ", - "RequestSpotLaunchSpecification$BlockDeviceMappings": "

    One or more block device mapping entries.

    Although you can specify encrypted EBS volumes in this block device mapping for your Spot Instances, these volumes are not encrypted.

    ", - "SpotFleetLaunchSpecification$BlockDeviceMappings": "

    One or more block device mapping entries.

    " - } - }, - "BlockDeviceMappingRequestList": { - "base": null, - "refs": { - "CreateImageRequest$BlockDeviceMappings": "

    Information about one or more block device mappings.

    ", - "RegisterImageRequest$BlockDeviceMappings": "

    One or more block device mapping entries.

    ", - "RunInstancesRequest$BlockDeviceMappings": "

    The block device mapping.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "AcceptVpcPeeringConnectionRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AllocateAddressRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AssignPrivateIpAddressesRequest$AllowReassignment": "

    Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.

    ", - "AssociateAddressRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AssociateAddressRequest$AllowReassociation": "

    [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is already associated with an instance or network interface to be reassociated with the specified instance or network interface. Otherwise, the operation fails. In a VPC in an EC2-VPC-only account, reassociation is automatic, therefore you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.

    ", - "AssociateDhcpOptionsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AssociateRouteTableRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AttachClassicLinkVpcRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AttachClassicLinkVpcResult$Return": "

    Returns true if the request succeeds; otherwise, it returns an error.

    ", - "AttachInternetGatewayRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AttachNetworkInterfaceRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AttachVolumeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AttachVpnGatewayRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AttributeBooleanValue$Value": "

    Valid values are true or false.

    ", - "AuthorizeSecurityGroupEgressRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "AuthorizeSecurityGroupIngressRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "BundleInstanceRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CancelBundleTaskRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CancelConversionRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CancelImportTaskRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CancelSpotFleetRequestsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CancelSpotFleetRequestsRequest$TerminateInstances": "

    Indicates whether to terminate instances for a Spot fleet request if it is canceled successfully.

    ", - "CancelSpotInstanceRequestsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ClassicLinkDnsSupport$ClassicLinkDnsSupported": "

    Indicates whether ClassicLink DNS support is enabled for the VPC.

    ", - "ConfirmProductInstanceRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ConfirmProductInstanceResult$Return": "

    The return value of the request. Returns true if the specified product code is owned by the requester and associated with the specified instance.

    ", - "CopyImageRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CopyImageRequest$Encrypted": "

    Specifies whether the destination snapshots of the copied image should be encrypted. The default CMK for EBS is used unless a non-default AWS Key Management Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ", - "CopySnapshotRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CopySnapshotRequest$Encrypted": "

    Specifies whether the destination snapshot should be encrypted. There is no way to create an unencrypted snapshot copy from an encrypted snapshot; however, you can encrypt a copy of an unencrypted snapshot with this flag. The default CMK for EBS is used unless a non-default AWS Key Management Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateCustomerGatewayRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateDhcpOptionsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateImageRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateImageRequest$NoReboot": "

    By default, Amazon EC2 attempts to shut down and reboot the instance before creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't shut down the instance before creating the image. When this option is used, file system integrity on the created image can't be guaranteed.

    ", - "CreateInternetGatewayRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateKeyPairRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateNetworkAclEntryRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateNetworkAclEntryRequest$Egress": "

    Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).

    ", - "CreateNetworkAclRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateNetworkInterfaceRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreatePlacementGroupRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateRouteRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateRouteResult$Return": "

    Returns true if the request succeeds; otherwise, it returns an error.

    ", - "CreateRouteTableRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateSecurityGroupRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateSnapshotRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateSpotDatafeedSubscriptionRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateSubnetRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateTagsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateVolumeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateVolumeRequest$Encrypted": "

    Specifies whether the volume should be encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are automatically encrypted. There is no way to create an encrypted volume from an unencrypted snapshot or vice versa. If your AMI uses encrypted volumes, you can only launch it on supported instance types. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateVpcEndpointRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateVpcPeeringConnectionRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateVpcRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateVpnConnectionRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "CreateVpnGatewayRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteCustomerGatewayRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteDhcpOptionsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteInternetGatewayRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteKeyPairRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteNetworkAclEntryRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteNetworkAclEntryRequest$Egress": "

    Indicates whether the rule is an egress rule.

    ", - "DeleteNetworkAclRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteNetworkInterfaceRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeletePlacementGroupRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteRouteRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteRouteTableRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteSecurityGroupRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteSnapshotRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteSpotDatafeedSubscriptionRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteSubnetRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteTagsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteVolumeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteVpcEndpointsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteVpcPeeringConnectionRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteVpcPeeringConnectionResult$Return": "

    Returns true if the request succeeds; otherwise, it returns an error.

    ", - "DeleteVpcRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteVpnConnectionRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeleteVpnGatewayRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DeregisterImageRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeAccountAttributesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeAddressesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeAvailabilityZonesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeBundleTasksRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeClassicLinkInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeConversionTasksRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeCustomerGatewaysRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeDhcpOptionsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeImageAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeImagesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeImportImageTasksRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeImportSnapshotTasksRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeInstanceAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeInstanceStatusRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeInstanceStatusRequest$IncludeAllInstances": "

    When true, includes the health status for all instances. When false, includes the health status for running instances only.

    Default: false

    ", - "DescribeInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeInternetGatewaysRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeKeyPairsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeMovingAddressesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeNetworkAclsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeNetworkInterfaceAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeNetworkInterfacesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribePlacementGroupsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribePrefixListsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeRegionsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeReservedInstancesOfferingsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeReservedInstancesOfferingsRequest$IncludeMarketplace": "

    Include Reserved Instance Marketplace offerings in the response.

    ", - "DescribeReservedInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeRouteTablesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeScheduledInstanceAvailabilityRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeScheduledInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSecurityGroupReferencesRequest$DryRun": "

    Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSecurityGroupsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSnapshotAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSnapshotsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSpotDatafeedSubscriptionRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSpotFleetInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSpotFleetRequestHistoryRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSpotFleetRequestsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSpotInstanceRequestsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSpotPriceHistoryRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeStaleSecurityGroupsRequest$DryRun": "

    Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeSubnetsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeTagsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVolumeAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVolumeStatusRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVolumesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVpcAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVpcClassicLinkRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVpcEndpointServicesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVpcEndpointsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVpcPeeringConnectionsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVpcsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVpnConnectionsRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DescribeVpnGatewaysRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DetachClassicLinkVpcRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DetachClassicLinkVpcResult$Return": "

    Returns true if the request succeeds; otherwise, it returns an error.

    ", - "DetachInternetGatewayRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DetachNetworkInterfaceRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DetachNetworkInterfaceRequest$Force": "

    Specifies whether to force a detachment.

    ", - "DetachVolumeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DetachVolumeRequest$Force": "

    Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance won't have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures.

    ", - "DetachVpnGatewayRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DisableVpcClassicLinkDnsSupportResult$Return": "

    Returns true if the request succeeds; otherwise, it returns an error.

    ", - "DisableVpcClassicLinkRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DisableVpcClassicLinkResult$Return": "

    Returns true if the request succeeds; otherwise, it returns an error.

    ", - "DisassociateAddressRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "DisassociateRouteTableRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "EbsBlockDevice$DeleteOnTermination": "

    Indicates whether the EBS volume is deleted on instance termination.

    ", - "EbsBlockDevice$Encrypted": "

    Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes may only be attached to instances that support Amazon EBS encryption.

    ", - "EbsInstanceBlockDevice$DeleteOnTermination": "

    Indicates whether the volume is deleted on instance termination.

    ", - "EbsInstanceBlockDeviceSpecification$DeleteOnTermination": "

    Indicates whether the volume is deleted on instance termination.

    ", - "EnableVolumeIORequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "EnableVpcClassicLinkDnsSupportResult$Return": "

    Returns true if the request succeeds; otherwise, it returns an error.

    ", - "EnableVpcClassicLinkRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "EnableVpcClassicLinkResult$Return": "

    Returns true if the request succeeds; otherwise, it returns an error.

    ", - "GetConsoleOutputRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "GetConsoleScreenshotRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "GetConsoleScreenshotRequest$WakeUp": "

    When set to true, acts as keystroke input and wakes up an instance that's in standby or \"sleep\" mode.

    ", - "GetPasswordDataRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "IdFormat$UseLongIds": "

    Indicates whether longer IDs (17-character IDs) are enabled for the resource.

    ", - "Image$Public": "

    Indicates whether the image has public launch permissions. The value is true if this image has public launch permissions or false if it has only implicit and explicit launch permissions.

    ", - "ImportImageRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ImportInstanceLaunchSpecification$Monitoring": "

    Indicates whether monitoring is enabled.

    ", - "ImportInstanceRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ImportKeyPairRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ImportSnapshotRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ImportVolumeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "Instance$SourceDestCheck": "

    Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether source/destination checking is enabled on the instance. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.

    ", - "Instance$EbsOptimized": "

    Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

    ", - "InstanceNetworkInterface$SourceDestCheck": "

    Indicates whether to validate network traffic to or from this network interface.

    ", - "InstanceNetworkInterfaceAttachment$DeleteOnTermination": "

    Indicates whether the network interface is deleted when the instance is terminated.

    ", - "InstanceNetworkInterfaceSpecification$DeleteOnTermination": "

    If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.

    ", - "InstanceNetworkInterfaceSpecification$AssociatePublicIpAddress": "

    Indicates whether to assign a public IP address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

    ", - "InstancePrivateIpAddress$Primary": "

    Indicates whether this IP address is the primary private IP address of the network interface.

    ", - "LaunchSpecification$EbsOptimized": "

    Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

    Default: false

    ", - "ModifyIdFormatRequest$UseLongIds": "

    Indicate whether the resource should use longer IDs (17-character IDs).

    ", - "ModifyImageAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ModifyInstanceAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ModifyInstancePlacementResult$Return": "

    Is true if the request succeeds, and an error otherwise.

    ", - "ModifyNetworkInterfaceAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ModifySnapshotAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ModifySpotFleetRequestResponse$Return": "

    Is true if the request succeeds, and an error otherwise.

    ", - "ModifyVolumeAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ModifyVpcEndpointRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ModifyVpcEndpointRequest$ResetPolicy": "

    Specify true to reset the policy document to the default policy. The default policy allows access to the service.

    ", - "ModifyVpcEndpointResult$Return": "

    Returns true if the request succeeds; otherwise, it returns an error.

    ", - "ModifyVpcPeeringConnectionOptionsRequest$DryRun": "

    Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "MonitorInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "MoveAddressToVpcRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "NetworkAcl$IsDefault": "

    Indicates whether this is the default network ACL for the VPC.

    ", - "NetworkAclEntry$Egress": "

    Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).

    ", - "NetworkInterface$RequesterManaged": "

    Indicates whether the network interface is being managed by AWS.

    ", - "NetworkInterface$SourceDestCheck": "

    Indicates whether traffic to or from the instance is validated.

    ", - "NetworkInterfaceAttachment$DeleteOnTermination": "

    Indicates whether the network interface is deleted when the instance is terminated.

    ", - "NetworkInterfaceAttachmentChanges$DeleteOnTermination": "

    Indicates whether the network interface is deleted when the instance is terminated.

    ", - "NetworkInterfacePrivateIpAddress$Primary": "

    Indicates whether this IP address is the primary private IP address of the network interface.

    ", - "PeeringConnectionOptions$AllowEgressFromLocalClassicLinkToRemoteVpc": "

    If true, enables outbound communication from an EC2-Classic instance that's linked to a local VPC via ClassicLink to instances in a peer VPC.

    ", - "PeeringConnectionOptions$AllowEgressFromLocalVpcToRemoteClassicLink": "

    If true, enables outbound communication from instances in a local VPC to an EC2-Classic instance that's linked to a peer VPC via ClassicLink.

    ", - "PeeringConnectionOptionsRequest$AllowEgressFromLocalClassicLinkToRemoteVpc": "

    If true, enables outbound communication from an EC2-Classic instance that's linked to a local VPC via ClassicLink to instances in a peer VPC.

    ", - "PeeringConnectionOptionsRequest$AllowEgressFromLocalVpcToRemoteClassicLink": "

    If true, enables outbound communication from instances in a local VPC to an EC2-Classic instance that's linked to a peer VPC via ClassicLink.

    ", - "PriceSchedule$Active": "

    The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.

    A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.

    ", - "PrivateIpAddressSpecification$Primary": "

    Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.

    ", - "PurchaseReservedInstancesOfferingRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "PurchaseScheduledInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RebootInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RegisterImageRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RejectVpcPeeringConnectionRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RejectVpcPeeringConnectionResult$Return": "

    Returns true if the request succeeds; otherwise, it returns an error.

    ", - "ReleaseAddressRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ReplaceNetworkAclAssociationRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ReplaceNetworkAclEntryRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ReplaceNetworkAclEntryRequest$Egress": "

    Indicates whether to replace the egress rule.

    Default: If no value is specified, we replace the ingress rule.

    ", - "ReplaceRouteRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ReplaceRouteTableAssociationRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ReportInstanceStatusRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RequestSpotFleetRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RequestSpotInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RequestSpotLaunchSpecification$EbsOptimized": "

    Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

    Default: false

    ", - "ReservedInstancesOffering$Marketplace": "

    Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.

    ", - "ResetImageAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ResetInstanceAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ResetNetworkInterfaceAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ResetSnapshotAttributeRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RestoreAddressToClassicRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RevokeSecurityGroupEgressRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RevokeSecurityGroupIngressRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RouteTableAssociation$Main": "

    Indicates whether this is the main route table.

    ", - "RunInstancesMonitoringEnabled$Enabled": "

    Indicates whether monitoring is enabled for the instance.

    ", - "RunInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "RunInstancesRequest$DisableApiTermination": "

    If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this parameter to true and then later want to be able to terminate the instance, you must first change the value of the disableApiTermination attribute to false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

    Default: false

    ", - "RunInstancesRequest$EbsOptimized": "

    Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

    Default: false

    ", - "RunScheduledInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "ScheduledInstanceRecurrence$OccurrenceRelativeToEnd": "

    Indicates whether the occurrence is relative to the end of the specified week or month.

    ", - "ScheduledInstanceRecurrenceRequest$OccurrenceRelativeToEnd": "

    Indicates whether the occurrence is relative to the end of the specified week or month. You can't specify this value with a daily schedule.

    ", - "ScheduledInstancesEbs$DeleteOnTermination": "

    Indicates whether the volume is deleted on instance termination.

    ", - "ScheduledInstancesEbs$Encrypted": "

    Indicates whether the volume is encrypted. You can attached encrypted volumes only to instances that support them.

    ", - "ScheduledInstancesLaunchSpecification$EbsOptimized": "

    Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

    Default: false

    ", - "ScheduledInstancesMonitoring$Enabled": "

    Indicates whether monitoring is enabled.

    ", - "ScheduledInstancesNetworkInterface$AssociatePublicIpAddress": "

    Indicates whether to assign a public IP address to instances launched in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

    ", - "ScheduledInstancesNetworkInterface$DeleteOnTermination": "

    Indicates whether to delete the interface when the instance is terminated.

    ", - "ScheduledInstancesPrivateIpAddressConfig$Primary": "

    Indicates whether this is a primary IP address. Otherwise, this is a secondary IP address.

    ", - "Snapshot$Encrypted": "

    Indicates whether the snapshot is encrypted.

    ", - "SpotFleetLaunchSpecification$EbsOptimized": "

    Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

    Default: false

    ", - "SpotFleetMonitoring$Enabled": "

    Enables monitoring for the instance.

    Default: false

    ", - "SpotFleetRequestConfigData$TerminateInstancesWithExpiration": "

    Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

    ", - "StartInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "StopInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "StopInstancesRequest$Force": "

    Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.

    Default: false

    ", - "Subnet$DefaultForAz": "

    Indicates whether this is the default subnet for the Availability Zone.

    ", - "Subnet$MapPublicIpOnLaunch": "

    Indicates whether instances launched in this subnet receive a public IP address.

    ", - "TerminateInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "UnmonitorInstancesRequest$DryRun": "

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    ", - "Volume$Encrypted": "

    Indicates whether the volume will be encrypted.

    ", - "VolumeAttachment$DeleteOnTermination": "

    Indicates whether the EBS volume is deleted on instance termination.

    ", - "Vpc$IsDefault": "

    Indicates whether the VPC is the default VPC.

    ", - "VpcClassicLink$ClassicLinkEnabled": "

    Indicates whether the VPC is enabled for ClassicLink.

    ", - "VpcPeeringConnectionOptionsDescription$AllowEgressFromLocalClassicLinkToRemoteVpc": "

    Indicates whether a local ClassicLink connection can communicate with the peer VPC over the VPC peering connection.

    ", - "VpcPeeringConnectionOptionsDescription$AllowEgressFromLocalVpcToRemoteClassicLink": "

    Indicates whether a local VPC can communicate with a ClassicLink connection in the peer VPC over the VPC peering connection.

    ", - "VpnConnectionOptions$StaticRoutesOnly": "

    Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP.

    ", - "VpnConnectionOptionsSpecification$StaticRoutesOnly": "

    Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP.

    " - } - }, - "BundleIdStringList": { - "base": null, - "refs": { - "DescribeBundleTasksRequest$BundleIds": "

    One or more bundle task IDs.

    Default: Describes all your bundle tasks.

    " - } - }, - "BundleInstanceRequest": { - "base": "

    Contains the parameters for BundleInstance.

    ", - "refs": { - } - }, - "BundleInstanceResult": { - "base": "

    Contains the output of BundleInstance.

    ", - "refs": { - } - }, - "BundleTask": { - "base": "

    Describes a bundle task.

    ", - "refs": { - "BundleInstanceResult$BundleTask": "

    Information about the bundle task.

    ", - "BundleTaskList$member": null, - "CancelBundleTaskResult$BundleTask": "

    Information about the bundle task.

    " - } - }, - "BundleTaskError": { - "base": "

    Describes an error for BundleInstance.

    ", - "refs": { - "BundleTask$BundleTaskError": "

    If the task fails, a description of the error.

    " - } - }, - "BundleTaskList": { - "base": null, - "refs": { - "DescribeBundleTasksResult$BundleTasks": "

    Information about one or more bundle tasks.

    " - } - }, - "BundleTaskState": { - "base": null, - "refs": { - "BundleTask$State": "

    The state of the task.

    " - } - }, - "CancelBatchErrorCode": { - "base": null, - "refs": { - "CancelSpotFleetRequestsError$Code": "

    The error code.

    " - } - }, - "CancelBundleTaskRequest": { - "base": "

    Contains the parameters for CancelBundleTask.

    ", - "refs": { - } - }, - "CancelBundleTaskResult": { - "base": "

    Contains the output of CancelBundleTask.

    ", - "refs": { - } - }, - "CancelConversionRequest": { - "base": "

    Contains the parameters for CancelConversionTask.

    ", - "refs": { - } - }, - "CancelExportTaskRequest": { - "base": "

    Contains the parameters for CancelExportTask.

    ", - "refs": { - } - }, - "CancelImportTaskRequest": { - "base": "

    Contains the parameters for CancelImportTask.

    ", - "refs": { - } - }, - "CancelImportTaskResult": { - "base": "

    Contains the output for CancelImportTask.

    ", - "refs": { - } - }, - "CancelReservedInstancesListingRequest": { - "base": "

    Contains the parameters for CancelReservedInstancesListing.

    ", - "refs": { - } - }, - "CancelReservedInstancesListingResult": { - "base": "

    Contains the output of CancelReservedInstancesListing.

    ", - "refs": { - } - }, - "CancelSpotFleetRequestsError": { - "base": "

    Describes a Spot fleet error.

    ", - "refs": { - "CancelSpotFleetRequestsErrorItem$Error": "

    The error.

    " - } - }, - "CancelSpotFleetRequestsErrorItem": { - "base": "

    Describes a Spot fleet request that was not successfully canceled.

    ", - "refs": { - "CancelSpotFleetRequestsErrorSet$member": null - } - }, - "CancelSpotFleetRequestsErrorSet": { - "base": null, - "refs": { - "CancelSpotFleetRequestsResponse$UnsuccessfulFleetRequests": "

    Information about the Spot fleet requests that are not successfully canceled.

    " - } - }, - "CancelSpotFleetRequestsRequest": { - "base": "

    Contains the parameters for CancelSpotFleetRequests.

    ", - "refs": { - } - }, - "CancelSpotFleetRequestsResponse": { - "base": "

    Contains the output of CancelSpotFleetRequests.

    ", - "refs": { - } - }, - "CancelSpotFleetRequestsSuccessItem": { - "base": "

    Describes a Spot fleet request that was successfully canceled.

    ", - "refs": { - "CancelSpotFleetRequestsSuccessSet$member": null - } - }, - "CancelSpotFleetRequestsSuccessSet": { - "base": null, - "refs": { - "CancelSpotFleetRequestsResponse$SuccessfulFleetRequests": "

    Information about the Spot fleet requests that are successfully canceled.

    " - } - }, - "CancelSpotInstanceRequestState": { - "base": null, - "refs": { - "CancelledSpotInstanceRequest$State": "

    The state of the Spot instance request.

    " - } - }, - "CancelSpotInstanceRequestsRequest": { - "base": "

    Contains the parameters for CancelSpotInstanceRequests.

    ", - "refs": { - } - }, - "CancelSpotInstanceRequestsResult": { - "base": "

    Contains the output of CancelSpotInstanceRequests.

    ", - "refs": { - } - }, - "CancelledSpotInstanceRequest": { - "base": "

    Describes a request to cancel a Spot instance.

    ", - "refs": { - "CancelledSpotInstanceRequestList$member": null - } - }, - "CancelledSpotInstanceRequestList": { - "base": null, - "refs": { - "CancelSpotInstanceRequestsResult$CancelledSpotInstanceRequests": "

    One or more Spot instance requests.

    " - } - }, - "ClassicLinkDnsSupport": { - "base": "

    Describes the ClassicLink DNS support status of a VPC.

    ", - "refs": { - "ClassicLinkDnsSupportList$member": null - } - }, - "ClassicLinkDnsSupportList": { - "base": null, - "refs": { - "DescribeVpcClassicLinkDnsSupportResult$Vpcs": "

    Information about the ClassicLink DNS support status of the VPCs.

    " - } - }, - "ClassicLinkInstance": { - "base": "

    Describes a linked EC2-Classic instance.

    ", - "refs": { - "ClassicLinkInstanceList$member": null - } - }, - "ClassicLinkInstanceList": { - "base": null, - "refs": { - "DescribeClassicLinkInstancesResult$Instances": "

    Information about one or more linked EC2-Classic instances.

    " - } - }, - "ClientData": { - "base": "

    Describes the client-specific data.

    ", - "refs": { - "ImportImageRequest$ClientData": "

    The client-specific data.

    ", - "ImportSnapshotRequest$ClientData": "

    The client-specific data.

    " - } - }, - "ConfirmProductInstanceRequest": { - "base": "

    Contains the parameters for ConfirmProductInstance.

    ", - "refs": { - } - }, - "ConfirmProductInstanceResult": { - "base": "

    Contains the output of ConfirmProductInstance.

    ", - "refs": { - } - }, - "ContainerFormat": { - "base": null, - "refs": { - "ExportToS3Task$ContainerFormat": "

    The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.

    ", - "ExportToS3TaskSpecification$ContainerFormat": "

    The container format used to combine disk images with metadata (such as OVF). If absent, only the disk image is exported.

    " - } - }, - "ConversionIdStringList": { - "base": null, - "refs": { - "DescribeConversionTasksRequest$ConversionTaskIds": "

    One or more conversion task IDs.

    " - } - }, - "ConversionTask": { - "base": "

    Describes a conversion task.

    ", - "refs": { - "DescribeConversionTaskList$member": null, - "ImportInstanceResult$ConversionTask": "

    Information about the conversion task.

    ", - "ImportVolumeResult$ConversionTask": "

    Information about the conversion task.

    " - } - }, - "ConversionTaskState": { - "base": null, - "refs": { - "ConversionTask$State": "

    The state of the conversion task.

    " - } - }, - "CopyImageRequest": { - "base": "

    Contains the parameters for CopyImage.

    ", - "refs": { - } - }, - "CopyImageResult": { - "base": "

    Contains the output of CopyImage.

    ", - "refs": { - } - }, - "CopySnapshotRequest": { - "base": "

    Contains the parameters for CopySnapshot.

    ", - "refs": { - } - }, - "CopySnapshotResult": { - "base": "

    Contains the output of CopySnapshot.

    ", - "refs": { - } - }, - "CreateCustomerGatewayRequest": { - "base": "

    Contains the parameters for CreateCustomerGateway.

    ", - "refs": { - } - }, - "CreateCustomerGatewayResult": { - "base": "

    Contains the output of CreateCustomerGateway.

    ", - "refs": { - } - }, - "CreateDhcpOptionsRequest": { - "base": "

    Contains the parameters for CreateDhcpOptions.

    ", - "refs": { - } - }, - "CreateDhcpOptionsResult": { - "base": "

    Contains the output of CreateDhcpOptions.

    ", - "refs": { - } - }, - "CreateFlowLogsRequest": { - "base": "

    Contains the parameters for CreateFlowLogs.

    ", - "refs": { - } - }, - "CreateFlowLogsResult": { - "base": "

    Contains the output of CreateFlowLogs.

    ", - "refs": { - } - }, - "CreateImageRequest": { - "base": "

    Contains the parameters for CreateImage.

    ", - "refs": { - } - }, - "CreateImageResult": { - "base": "

    Contains the output of CreateImage.

    ", - "refs": { - } - }, - "CreateInstanceExportTaskRequest": { - "base": "

    Contains the parameters for CreateInstanceExportTask.

    ", - "refs": { - } - }, - "CreateInstanceExportTaskResult": { - "base": "

    Contains the output for CreateInstanceExportTask.

    ", - "refs": { - } - }, - "CreateInternetGatewayRequest": { - "base": "

    Contains the parameters for CreateInternetGateway.

    ", - "refs": { - } - }, - "CreateInternetGatewayResult": { - "base": "

    Contains the output of CreateInternetGateway.

    ", - "refs": { - } - }, - "CreateKeyPairRequest": { - "base": "

    Contains the parameters for CreateKeyPair.

    ", - "refs": { - } - }, - "CreateNatGatewayRequest": { - "base": "

    Contains the parameters for CreateNatGateway.

    ", - "refs": { - } - }, - "CreateNatGatewayResult": { - "base": "

    Contains the output of CreateNatGateway.

    ", - "refs": { - } - }, - "CreateNetworkAclEntryRequest": { - "base": "

    Contains the parameters for CreateNetworkAclEntry.

    ", - "refs": { - } - }, - "CreateNetworkAclRequest": { - "base": "

    Contains the parameters for CreateNetworkAcl.

    ", - "refs": { - } - }, - "CreateNetworkAclResult": { - "base": "

    Contains the output of CreateNetworkAcl.

    ", - "refs": { - } - }, - "CreateNetworkInterfaceRequest": { - "base": "

    Contains the parameters for CreateNetworkInterface.

    ", - "refs": { - } - }, - "CreateNetworkInterfaceResult": { - "base": "

    Contains the output of CreateNetworkInterface.

    ", - "refs": { - } - }, - "CreatePlacementGroupRequest": { - "base": "

    Contains the parameters for CreatePlacementGroup.

    ", - "refs": { - } - }, - "CreateReservedInstancesListingRequest": { - "base": "

    Contains the parameters for CreateReservedInstancesListing.

    ", - "refs": { - } - }, - "CreateReservedInstancesListingResult": { - "base": "

    Contains the output of CreateReservedInstancesListing.

    ", - "refs": { - } - }, - "CreateRouteRequest": { - "base": "

    Contains the parameters for CreateRoute.

    ", - "refs": { - } - }, - "CreateRouteResult": { - "base": "

    Contains the output of CreateRoute.

    ", - "refs": { - } - }, - "CreateRouteTableRequest": { - "base": "

    Contains the parameters for CreateRouteTable.

    ", - "refs": { - } - }, - "CreateRouteTableResult": { - "base": "

    Contains the output of CreateRouteTable.

    ", - "refs": { - } - }, - "CreateSecurityGroupRequest": { - "base": "

    Contains the parameters for CreateSecurityGroup.

    ", - "refs": { - } - }, - "CreateSecurityGroupResult": { - "base": "

    Contains the output of CreateSecurityGroup.

    ", - "refs": { - } - }, - "CreateSnapshotRequest": { - "base": "

    Contains the parameters for CreateSnapshot.

    ", - "refs": { - } - }, - "CreateSpotDatafeedSubscriptionRequest": { - "base": "

    Contains the parameters for CreateSpotDatafeedSubscription.

    ", - "refs": { - } - }, - "CreateSpotDatafeedSubscriptionResult": { - "base": "

    Contains the output of CreateSpotDatafeedSubscription.

    ", - "refs": { - } - }, - "CreateSubnetRequest": { - "base": "

    Contains the parameters for CreateSubnet.

    ", - "refs": { - } - }, - "CreateSubnetResult": { - "base": "

    Contains the output of CreateSubnet.

    ", - "refs": { - } - }, - "CreateTagsRequest": { - "base": "

    Contains the parameters for CreateTags.

    ", - "refs": { - } - }, - "CreateVolumePermission": { - "base": "

    Describes the user or group to be added or removed from the permissions for a volume.

    ", - "refs": { - "CreateVolumePermissionList$member": null - } - }, - "CreateVolumePermissionList": { - "base": null, - "refs": { - "CreateVolumePermissionModifications$Add": "

    Adds a specific AWS account ID or group to a volume's list of create volume permissions.

    ", - "CreateVolumePermissionModifications$Remove": "

    Removes a specific AWS account ID or group from a volume's list of create volume permissions.

    ", - "DescribeSnapshotAttributeResult$CreateVolumePermissions": "

    A list of permissions for creating volumes from the snapshot.

    " - } - }, - "CreateVolumePermissionModifications": { - "base": "

    Describes modifications to the permissions for a volume.

    ", - "refs": { - "ModifySnapshotAttributeRequest$CreateVolumePermission": "

    A JSON representation of the snapshot attribute modification.

    " - } - }, - "CreateVolumeRequest": { - "base": "

    Contains the parameters for CreateVolume.

    ", - "refs": { - } - }, - "CreateVpcEndpointRequest": { - "base": "

    Contains the parameters for CreateVpcEndpoint.

    ", - "refs": { - } - }, - "CreateVpcEndpointResult": { - "base": "

    Contains the output of CreateVpcEndpoint.

    ", - "refs": { - } - }, - "CreateVpcPeeringConnectionRequest": { - "base": "

    Contains the parameters for CreateVpcPeeringConnection.

    ", - "refs": { - } - }, - "CreateVpcPeeringConnectionResult": { - "base": "

    Contains the output of CreateVpcPeeringConnection.

    ", - "refs": { - } - }, - "CreateVpcRequest": { - "base": "

    Contains the parameters for CreateVpc.

    ", - "refs": { - } - }, - "CreateVpcResult": { - "base": "

    Contains the output of CreateVpc.

    ", - "refs": { - } - }, - "CreateVpnConnectionRequest": { - "base": "

    Contains the parameters for CreateVpnConnection.

    ", - "refs": { - } - }, - "CreateVpnConnectionResult": { - "base": "

    Contains the output of CreateVpnConnection.

    ", - "refs": { - } - }, - "CreateVpnConnectionRouteRequest": { - "base": "

    Contains the parameters for CreateVpnConnectionRoute.

    ", - "refs": { - } - }, - "CreateVpnGatewayRequest": { - "base": "

    Contains the parameters for CreateVpnGateway.

    ", - "refs": { - } - }, - "CreateVpnGatewayResult": { - "base": "

    Contains the output of CreateVpnGateway.

    ", - "refs": { - } - }, - "CurrencyCodeValues": { - "base": null, - "refs": { - "PriceSchedule$CurrencyCode": "

    The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

    ", - "PriceScheduleSpecification$CurrencyCode": "

    The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

    ", - "ReservedInstanceLimitPrice$CurrencyCode": "

    The currency in which the limitPrice amount is specified. At this time, the only supported currency is USD.

    ", - "ReservedInstances$CurrencyCode": "

    The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

    ", - "ReservedInstancesOffering$CurrencyCode": "

    The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

    " - } - }, - "CustomerGateway": { - "base": "

    Describes a customer gateway.

    ", - "refs": { - "CreateCustomerGatewayResult$CustomerGateway": "

    Information about the customer gateway.

    ", - "CustomerGatewayList$member": null - } - }, - "CustomerGatewayIdStringList": { - "base": null, - "refs": { - "DescribeCustomerGatewaysRequest$CustomerGatewayIds": "

    One or more customer gateway IDs.

    Default: Describes all your customer gateways.

    " - } - }, - "CustomerGatewayList": { - "base": null, - "refs": { - "DescribeCustomerGatewaysResult$CustomerGateways": "

    Information about one or more customer gateways.

    " - } - }, - "DatafeedSubscriptionState": { - "base": null, - "refs": { - "SpotDatafeedSubscription$State": "

    The state of the Spot instance data feed subscription.

    " - } - }, - "DateTime": { - "base": null, - "refs": { - "BundleTask$StartTime": "

    The time this task started.

    ", - "BundleTask$UpdateTime": "

    The time of the most recent update for the task.

    ", - "ClientData$UploadStart": "

    The time that the disk upload starts.

    ", - "ClientData$UploadEnd": "

    The time that the disk upload ends.

    ", - "DescribeSpotFleetRequestHistoryRequest$StartTime": "

    The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

    ", - "DescribeSpotFleetRequestHistoryResponse$StartTime": "

    The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

    ", - "DescribeSpotFleetRequestHistoryResponse$LastEvaluatedTime": "

    The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). All records up to this time were retrieved.

    If nextToken indicates that there are more results, this value is not present.

    ", - "DescribeSpotPriceHistoryRequest$StartTime": "

    The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

    ", - "DescribeSpotPriceHistoryRequest$EndTime": "

    The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

    ", - "EbsInstanceBlockDevice$AttachTime": "

    The time stamp when the attachment initiated.

    ", - "FlowLog$CreationTime": "

    The date and time the flow log was created.

    ", - "GetConsoleOutputResult$Timestamp": "

    The time the output was last updated.

    ", - "GetPasswordDataResult$Timestamp": "

    The time the data was last updated.

    ", - "HistoryRecord$Timestamp": "

    The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

    ", - "IdFormat$Deadline": "

    The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.

    ", - "Instance$LaunchTime": "

    The time the instance was launched.

    ", - "InstanceNetworkInterfaceAttachment$AttachTime": "

    The time stamp when the attachment initiated.

    ", - "InstanceStatusDetails$ImpairedSince": "

    The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.

    ", - "InstanceStatusEvent$NotBefore": "

    The earliest scheduled start time for the event.

    ", - "InstanceStatusEvent$NotAfter": "

    The latest scheduled end time for the event.

    ", - "NatGateway$CreateTime": "

    The date and time the NAT gateway was created.

    ", - "NatGateway$DeleteTime": "

    The date and time the NAT gateway was deleted, if applicable.

    ", - "NetworkInterfaceAttachment$AttachTime": "

    The timestamp indicating when the attachment initiated.

    ", - "ProvisionedBandwidth$RequestTime": "

    Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

    ", - "ProvisionedBandwidth$ProvisionTime": "

    Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

    ", - "ReportInstanceStatusRequest$StartTime": "

    The time at which the reported instance health state began.

    ", - "ReportInstanceStatusRequest$EndTime": "

    The time at which the reported instance health state ended.

    ", - "RequestSpotInstancesRequest$ValidFrom": "

    The start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.

    Default: The request is effective indefinitely.

    ", - "RequestSpotInstancesRequest$ValidUntil": "

    The end date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.

    Default: The request is effective indefinitely.

    ", - "ReservedInstances$Start": "

    The date and time the Reserved Instance started.

    ", - "ReservedInstances$End": "

    The time when the Reserved Instance expires.

    ", - "ReservedInstancesListing$CreateDate": "

    The time the listing was created.

    ", - "ReservedInstancesListing$UpdateDate": "

    The last modified timestamp of the listing.

    ", - "ReservedInstancesModification$CreateDate": "

    The time when the modification request was created.

    ", - "ReservedInstancesModification$UpdateDate": "

    The time when the modification request was last updated.

    ", - "ReservedInstancesModification$EffectiveDate": "

    The time for the modification to become effective.

    ", - "ScheduledInstance$PreviousSlotEndTime": "

    The time that the previous schedule ended or will end.

    ", - "ScheduledInstance$NextSlotStartTime": "

    The time for the next schedule to start.

    ", - "ScheduledInstance$TermStartDate": "

    The start date for the Scheduled Instance.

    ", - "ScheduledInstance$TermEndDate": "

    The end date for the Scheduled Instance.

    ", - "ScheduledInstance$CreateDate": "

    The date when the Scheduled Instance was purchased.

    ", - "ScheduledInstanceAvailability$FirstSlotStartTime": "

    The time period for the first schedule to start.

    ", - "SlotDateTimeRangeRequest$EarliestTime": "

    The earliest date and time, in UTC, for the Scheduled Instance to start.

    ", - "SlotDateTimeRangeRequest$LatestTime": "

    The latest date and time, in UTC, for the Scheduled Instance to start. This value must be later than or equal to the earliest date and at most three months in the future.

    ", - "SlotStartTimeRangeRequest$EarliestTime": "

    The earliest date and time, in UTC, for the Scheduled Instance to start.

    ", - "SlotStartTimeRangeRequest$LatestTime": "

    The latest date and time, in UTC, for the Scheduled Instance to start.

    ", - "Snapshot$StartTime": "

    The time stamp when the snapshot was initiated.

    ", - "SpotFleetRequestConfig$CreateTime": "

    The creation date and time of the request.

    ", - "SpotFleetRequestConfigData$ValidFrom": "

    The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

    ", - "SpotFleetRequestConfigData$ValidUntil": "

    The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.

    ", - "SpotInstanceRequest$ValidFrom": "

    The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.

    ", - "SpotInstanceRequest$ValidUntil": "

    The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.

    ", - "SpotInstanceRequest$CreateTime": "

    The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

    ", - "SpotInstanceStatus$UpdateTime": "

    The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

    ", - "SpotPrice$Timestamp": "

    The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

    ", - "VgwTelemetry$LastStatusChange": "

    The date and time of the last change in status.

    ", - "Volume$CreateTime": "

    The time stamp when volume creation was initiated.

    ", - "VolumeAttachment$AttachTime": "

    The time stamp when the attachment initiated.

    ", - "VolumeStatusEvent$NotBefore": "

    The earliest start time of the event.

    ", - "VolumeStatusEvent$NotAfter": "

    The latest end time of the event.

    ", - "VpcEndpoint$CreationTimestamp": "

    The date and time the VPC endpoint was created.

    ", - "VpcPeeringConnection$ExpirationTime": "

    The time that an unaccepted VPC peering connection will expire.

    " - } - }, - "DeleteCustomerGatewayRequest": { - "base": "

    Contains the parameters for DeleteCustomerGateway.

    ", - "refs": { - } - }, - "DeleteDhcpOptionsRequest": { - "base": "

    Contains the parameters for DeleteDhcpOptions.

    ", - "refs": { - } - }, - "DeleteFlowLogsRequest": { - "base": "

    Contains the parameters for DeleteFlowLogs.

    ", - "refs": { - } - }, - "DeleteFlowLogsResult": { - "base": "

    Contains the output of DeleteFlowLogs.

    ", - "refs": { - } - }, - "DeleteInternetGatewayRequest": { - "base": "

    Contains the parameters for DeleteInternetGateway.

    ", - "refs": { - } - }, - "DeleteKeyPairRequest": { - "base": "

    Contains the parameters for DeleteKeyPair.

    ", - "refs": { - } - }, - "DeleteNatGatewayRequest": { - "base": "

    Contains the parameters for DeleteNatGateway.

    ", - "refs": { - } - }, - "DeleteNatGatewayResult": { - "base": "

    Contains the output of DeleteNatGateway.

    ", - "refs": { - } - }, - "DeleteNetworkAclEntryRequest": { - "base": "

    Contains the parameters for DeleteNetworkAclEntry.

    ", - "refs": { - } - }, - "DeleteNetworkAclRequest": { - "base": "

    Contains the parameters for DeleteNetworkAcl.

    ", - "refs": { - } - }, - "DeleteNetworkInterfaceRequest": { - "base": "

    Contains the parameters for DeleteNetworkInterface.

    ", - "refs": { - } - }, - "DeletePlacementGroupRequest": { - "base": "

    Contains the parameters for DeletePlacementGroup.

    ", - "refs": { - } - }, - "DeleteRouteRequest": { - "base": "

    Contains the parameters for DeleteRoute.

    ", - "refs": { - } - }, - "DeleteRouteTableRequest": { - "base": "

    Contains the parameters for DeleteRouteTable.

    ", - "refs": { - } - }, - "DeleteSecurityGroupRequest": { - "base": "

    Contains the parameters for DeleteSecurityGroup.

    ", - "refs": { - } - }, - "DeleteSnapshotRequest": { - "base": "

    Contains the parameters for DeleteSnapshot.

    ", - "refs": { - } - }, - "DeleteSpotDatafeedSubscriptionRequest": { - "base": "

    Contains the parameters for DeleteSpotDatafeedSubscription.

    ", - "refs": { - } - }, - "DeleteSubnetRequest": { - "base": "

    Contains the parameters for DeleteSubnet.

    ", - "refs": { - } - }, - "DeleteTagsRequest": { - "base": "

    Contains the parameters for DeleteTags.

    ", - "refs": { - } - }, - "DeleteVolumeRequest": { - "base": "

    Contains the parameters for DeleteVolume.

    ", - "refs": { - } - }, - "DeleteVpcEndpointsRequest": { - "base": "

    Contains the parameters for DeleteVpcEndpoints.

    ", - "refs": { - } - }, - "DeleteVpcEndpointsResult": { - "base": "

    Contains the output of DeleteVpcEndpoints.

    ", - "refs": { - } - }, - "DeleteVpcPeeringConnectionRequest": { - "base": "

    Contains the parameters for DeleteVpcPeeringConnection.

    ", - "refs": { - } - }, - "DeleteVpcPeeringConnectionResult": { - "base": "

    Contains the output of DeleteVpcPeeringConnection.

    ", - "refs": { - } - }, - "DeleteVpcRequest": { - "base": "

    Contains the parameters for DeleteVpc.

    ", - "refs": { - } - }, - "DeleteVpnConnectionRequest": { - "base": "

    Contains the parameters for DeleteVpnConnection.

    ", - "refs": { - } - }, - "DeleteVpnConnectionRouteRequest": { - "base": "

    Contains the parameters for DeleteVpnConnectionRoute.

    ", - "refs": { - } - }, - "DeleteVpnGatewayRequest": { - "base": "

    Contains the parameters for DeleteVpnGateway.

    ", - "refs": { - } - }, - "DeregisterImageRequest": { - "base": "

    Contains the parameters for DeregisterImage.

    ", - "refs": { - } - }, - "DescribeAccountAttributesRequest": { - "base": "

    Contains the parameters for DescribeAccountAttributes.

    ", - "refs": { - } - }, - "DescribeAccountAttributesResult": { - "base": "

    Contains the output of DescribeAccountAttributes.

    ", - "refs": { - } - }, - "DescribeAddressesRequest": { - "base": "

    Contains the parameters for DescribeAddresses.

    ", - "refs": { - } - }, - "DescribeAddressesResult": { - "base": "

    Contains the output of DescribeAddresses.

    ", - "refs": { - } - }, - "DescribeAvailabilityZonesRequest": { - "base": "

    Contains the parameters for DescribeAvailabilityZones.

    ", - "refs": { - } - }, - "DescribeAvailabilityZonesResult": { - "base": "

    Contains the output of DescribeAvailabiltyZones.

    ", - "refs": { - } - }, - "DescribeBundleTasksRequest": { - "base": "

    Contains the parameters for DescribeBundleTasks.

    ", - "refs": { - } - }, - "DescribeBundleTasksResult": { - "base": "

    Contains the output of DescribeBundleTasks.

    ", - "refs": { - } - }, - "DescribeClassicLinkInstancesRequest": { - "base": "

    Contains the parameters for DescribeClassicLinkInstances.

    ", - "refs": { - } - }, - "DescribeClassicLinkInstancesResult": { - "base": "

    Contains the output of DescribeClassicLinkInstances.

    ", - "refs": { - } - }, - "DescribeConversionTaskList": { - "base": null, - "refs": { - "DescribeConversionTasksResult$ConversionTasks": "

    Information about the conversion tasks.

    " - } - }, - "DescribeConversionTasksRequest": { - "base": "

    Contains the parameters for DescribeConversionTasks.

    ", - "refs": { - } - }, - "DescribeConversionTasksResult": { - "base": "

    Contains the output for DescribeConversionTasks.

    ", - "refs": { - } - }, - "DescribeCustomerGatewaysRequest": { - "base": "

    Contains the parameters for DescribeCustomerGateways.

    ", - "refs": { - } - }, - "DescribeCustomerGatewaysResult": { - "base": "

    Contains the output of DescribeCustomerGateways.

    ", - "refs": { - } - }, - "DescribeDhcpOptionsRequest": { - "base": "

    Contains the parameters for DescribeDhcpOptions.

    ", - "refs": { - } - }, - "DescribeDhcpOptionsResult": { - "base": "

    Contains the output of DescribeDhcpOptions.

    ", - "refs": { - } - }, - "DescribeExportTasksRequest": { - "base": "

    Contains the parameters for DescribeExportTasks.

    ", - "refs": { - } - }, - "DescribeExportTasksResult": { - "base": "

    Contains the output for DescribeExportTasks.

    ", - "refs": { - } - }, - "DescribeFlowLogsRequest": { - "base": "

    Contains the parameters for DescribeFlowLogs.

    ", - "refs": { - } - }, - "DescribeFlowLogsResult": { - "base": "

    Contains the output of DescribeFlowLogs.

    ", - "refs": { - } - }, - "DescribeHostsRequest": { - "base": "

    Contains the parameters for DescribeHosts.

    ", - "refs": { - } - }, - "DescribeHostsResult": { - "base": "

    Contains the output of DescribeHosts.

    ", - "refs": { - } - }, - "DescribeIdFormatRequest": { - "base": "

    Contains the parameters for DescribeIdFormat.

    ", - "refs": { - } - }, - "DescribeIdFormatResult": { - "base": "

    Contains the output of DescribeIdFormat.

    ", - "refs": { - } - }, - "DescribeImageAttributeRequest": { - "base": "

    Contains the parameters for DescribeImageAttribute.

    ", - "refs": { - } - }, - "DescribeImagesRequest": { - "base": "

    Contains the parameters for DescribeImages.

    ", - "refs": { - } - }, - "DescribeImagesResult": { - "base": "

    Contains the output of DescribeImages.

    ", - "refs": { - } - }, - "DescribeImportImageTasksRequest": { - "base": "

    Contains the parameters for DescribeImportImageTasks.

    ", - "refs": { - } - }, - "DescribeImportImageTasksResult": { - "base": "

    Contains the output for DescribeImportImageTasks.

    ", - "refs": { - } - }, - "DescribeImportSnapshotTasksRequest": { - "base": "

    Contains the parameters for DescribeImportSnapshotTasks.

    ", - "refs": { - } - }, - "DescribeImportSnapshotTasksResult": { - "base": "

    Contains the output for DescribeImportSnapshotTasks.

    ", - "refs": { - } - }, - "DescribeInstanceAttributeRequest": { - "base": "

    Contains the parameters for DescribeInstanceAttribute.

    ", - "refs": { - } - }, - "DescribeInstanceStatusRequest": { - "base": "

    Contains the parameters for DescribeInstanceStatus.

    ", - "refs": { - } - }, - "DescribeInstanceStatusResult": { - "base": "

    Contains the output of DescribeInstanceStatus.

    ", - "refs": { - } - }, - "DescribeInstancesRequest": { - "base": "

    Contains the parameters for DescribeInstances.

    ", - "refs": { - } - }, - "DescribeInstancesResult": { - "base": "

    Contains the output of DescribeInstances.

    ", - "refs": { - } - }, - "DescribeInternetGatewaysRequest": { - "base": "

    Contains the parameters for DescribeInternetGateways.

    ", - "refs": { - } - }, - "DescribeInternetGatewaysResult": { - "base": "

    Contains the output of DescribeInternetGateways.

    ", - "refs": { - } - }, - "DescribeKeyPairsRequest": { - "base": "

    Contains the parameters for DescribeKeyPairs.

    ", - "refs": { - } - }, - "DescribeKeyPairsResult": { - "base": "

    Contains the output of DescribeKeyPairs.

    ", - "refs": { - } - }, - "DescribeMovingAddressesRequest": { - "base": "

    Contains the parameters for DescribeMovingAddresses.

    ", - "refs": { - } - }, - "DescribeMovingAddressesResult": { - "base": "

    Contains the output of DescribeMovingAddresses.

    ", - "refs": { - } - }, - "DescribeNatGatewaysRequest": { - "base": "

    Contains the parameters for DescribeNatGateways.

    ", - "refs": { - } - }, - "DescribeNatGatewaysResult": { - "base": "

    Contains the output of DescribeNatGateways.

    ", - "refs": { - } - }, - "DescribeNetworkAclsRequest": { - "base": "

    Contains the parameters for DescribeNetworkAcls.

    ", - "refs": { - } - }, - "DescribeNetworkAclsResult": { - "base": "

    Contains the output of DescribeNetworkAcls.

    ", - "refs": { - } - }, - "DescribeNetworkInterfaceAttributeRequest": { - "base": "

    Contains the parameters for DescribeNetworkInterfaceAttribute.

    ", - "refs": { - } - }, - "DescribeNetworkInterfaceAttributeResult": { - "base": "

    Contains the output of DescribeNetworkInterfaceAttribute.

    ", - "refs": { - } - }, - "DescribeNetworkInterfacesRequest": { - "base": "

    Contains the parameters for DescribeNetworkInterfaces.

    ", - "refs": { - } - }, - "DescribeNetworkInterfacesResult": { - "base": "

    Contains the output of DescribeNetworkInterfaces.

    ", - "refs": { - } - }, - "DescribePlacementGroupsRequest": { - "base": "

    Contains the parameters for DescribePlacementGroups.

    ", - "refs": { - } - }, - "DescribePlacementGroupsResult": { - "base": "

    Contains the output of DescribePlacementGroups.

    ", - "refs": { - } - }, - "DescribePrefixListsRequest": { - "base": "

    Contains the parameters for DescribePrefixLists.

    ", - "refs": { - } - }, - "DescribePrefixListsResult": { - "base": "

    Contains the output of DescribePrefixLists.

    ", - "refs": { - } - }, - "DescribeRegionsRequest": { - "base": "

    Contains the parameters for DescribeRegions.

    ", - "refs": { - } - }, - "DescribeRegionsResult": { - "base": "

    Contains the output of DescribeRegions.

    ", - "refs": { - } - }, - "DescribeReservedInstancesListingsRequest": { - "base": "

    Contains the parameters for DescribeReservedInstancesListings.

    ", - "refs": { - } - }, - "DescribeReservedInstancesListingsResult": { - "base": "

    Contains the output of DescribeReservedInstancesListings.

    ", - "refs": { - } - }, - "DescribeReservedInstancesModificationsRequest": { - "base": "

    Contains the parameters for DescribeReservedInstancesModifications.

    ", - "refs": { - } - }, - "DescribeReservedInstancesModificationsResult": { - "base": "

    Contains the output of DescribeReservedInstancesModifications.

    ", - "refs": { - } - }, - "DescribeReservedInstancesOfferingsRequest": { - "base": "

    Contains the parameters for DescribeReservedInstancesOfferings.

    ", - "refs": { - } - }, - "DescribeReservedInstancesOfferingsResult": { - "base": "

    Contains the output of DescribeReservedInstancesOfferings.

    ", - "refs": { - } - }, - "DescribeReservedInstancesRequest": { - "base": "

    Contains the parameters for DescribeReservedInstances.

    ", - "refs": { - } - }, - "DescribeReservedInstancesResult": { - "base": "

    Contains the output for DescribeReservedInstances.

    ", - "refs": { - } - }, - "DescribeRouteTablesRequest": { - "base": "

    Contains the parameters for DescribeRouteTables.

    ", - "refs": { - } - }, - "DescribeRouteTablesResult": { - "base": "

    Contains the output of DescribeRouteTables.

    ", - "refs": { - } - }, - "DescribeScheduledInstanceAvailabilityRequest": { - "base": "

    Contains the parameters for DescribeScheduledInstanceAvailability.

    ", - "refs": { - } - }, - "DescribeScheduledInstanceAvailabilityResult": { - "base": "

    Contains the output of DescribeScheduledInstanceAvailability.

    ", - "refs": { - } - }, - "DescribeScheduledInstancesRequest": { - "base": "

    Contains the parameters for DescribeScheduledInstances.

    ", - "refs": { - } - }, - "DescribeScheduledInstancesResult": { - "base": "

    Contains the output of DescribeScheduledInstances.

    ", - "refs": { - } - }, - "DescribeSecurityGroupReferencesRequest": { - "base": null, - "refs": { - } - }, - "DescribeSecurityGroupReferencesResult": { - "base": null, - "refs": { - } - }, - "DescribeSecurityGroupsRequest": { - "base": "

    Contains the parameters for DescribeSecurityGroups.

    ", - "refs": { - } - }, - "DescribeSecurityGroupsResult": { - "base": "

    Contains the output of DescribeSecurityGroups.

    ", - "refs": { - } - }, - "DescribeSnapshotAttributeRequest": { - "base": "

    Contains the parameters for DescribeSnapshotAttribute.

    ", - "refs": { - } - }, - "DescribeSnapshotAttributeResult": { - "base": "

    Contains the output of DescribeSnapshotAttribute.

    ", - "refs": { - } - }, - "DescribeSnapshotsRequest": { - "base": "

    Contains the parameters for DescribeSnapshots.

    ", - "refs": { - } - }, - "DescribeSnapshotsResult": { - "base": "

    Contains the output of DescribeSnapshots.

    ", - "refs": { - } - }, - "DescribeSpotDatafeedSubscriptionRequest": { - "base": "

    Contains the parameters for DescribeSpotDatafeedSubscription.

    ", - "refs": { - } - }, - "DescribeSpotDatafeedSubscriptionResult": { - "base": "

    Contains the output of DescribeSpotDatafeedSubscription.

    ", - "refs": { - } - }, - "DescribeSpotFleetInstancesRequest": { - "base": "

    Contains the parameters for DescribeSpotFleetInstances.

    ", - "refs": { - } - }, - "DescribeSpotFleetInstancesResponse": { - "base": "

    Contains the output of DescribeSpotFleetInstances.

    ", - "refs": { - } - }, - "DescribeSpotFleetRequestHistoryRequest": { - "base": "

    Contains the parameters for DescribeSpotFleetRequestHistory.

    ", - "refs": { - } - }, - "DescribeSpotFleetRequestHistoryResponse": { - "base": "

    Contains the output of DescribeSpotFleetRequestHistory.

    ", - "refs": { - } - }, - "DescribeSpotFleetRequestsRequest": { - "base": "

    Contains the parameters for DescribeSpotFleetRequests.

    ", - "refs": { - } - }, - "DescribeSpotFleetRequestsResponse": { - "base": "

    Contains the output of DescribeSpotFleetRequests.

    ", - "refs": { - } - }, - "DescribeSpotInstanceRequestsRequest": { - "base": "

    Contains the parameters for DescribeSpotInstanceRequests.

    ", - "refs": { - } - }, - "DescribeSpotInstanceRequestsResult": { - "base": "

    Contains the output of DescribeSpotInstanceRequests.

    ", - "refs": { - } - }, - "DescribeSpotPriceHistoryRequest": { - "base": "

    Contains the parameters for DescribeSpotPriceHistory.

    ", - "refs": { - } - }, - "DescribeSpotPriceHistoryResult": { - "base": "

    Contains the output of DescribeSpotPriceHistory.

    ", - "refs": { - } - }, - "DescribeStaleSecurityGroupsRequest": { - "base": null, - "refs": { - } - }, - "DescribeStaleSecurityGroupsResult": { - "base": null, - "refs": { - } - }, - "DescribeSubnetsRequest": { - "base": "

    Contains the parameters for DescribeSubnets.

    ", - "refs": { - } - }, - "DescribeSubnetsResult": { - "base": "

    Contains the output of DescribeSubnets.

    ", - "refs": { - } - }, - "DescribeTagsRequest": { - "base": "

    Contains the parameters for DescribeTags.

    ", - "refs": { - } - }, - "DescribeTagsResult": { - "base": "

    Contains the output of DescribeTags.

    ", - "refs": { - } - }, - "DescribeVolumeAttributeRequest": { - "base": "

    Contains the parameters for DescribeVolumeAttribute.

    ", - "refs": { - } - }, - "DescribeVolumeAttributeResult": { - "base": "

    Contains the output of DescribeVolumeAttribute.

    ", - "refs": { - } - }, - "DescribeVolumeStatusRequest": { - "base": "

    Contains the parameters for DescribeVolumeStatus.

    ", - "refs": { - } - }, - "DescribeVolumeStatusResult": { - "base": "

    Contains the output of DescribeVolumeStatus.

    ", - "refs": { - } - }, - "DescribeVolumesRequest": { - "base": "

    Contains the parameters for DescribeVolumes.

    ", - "refs": { - } - }, - "DescribeVolumesResult": { - "base": "

    Contains the output of DescribeVolumes.

    ", - "refs": { - } - }, - "DescribeVpcAttributeRequest": { - "base": "

    Contains the parameters for DescribeVpcAttribute.

    ", - "refs": { - } - }, - "DescribeVpcAttributeResult": { - "base": "

    Contains the output of DescribeVpcAttribute.

    ", - "refs": { - } - }, - "DescribeVpcClassicLinkDnsSupportRequest": { - "base": "

    Contains the parameters for DescribeVpcClassicLinkDnsSupport.

    ", - "refs": { - } - }, - "DescribeVpcClassicLinkDnsSupportResult": { - "base": "

    Contains the output of DescribeVpcClassicLinkDnsSupport.

    ", - "refs": { - } - }, - "DescribeVpcClassicLinkRequest": { - "base": "

    Contains the parameters for DescribeVpcClassicLink.

    ", - "refs": { - } - }, - "DescribeVpcClassicLinkResult": { - "base": "

    Contains the output of DescribeVpcClassicLink.

    ", - "refs": { - } - }, - "DescribeVpcEndpointServicesRequest": { - "base": "

    Contains the parameters for DescribeVpcEndpointServices.

    ", - "refs": { - } - }, - "DescribeVpcEndpointServicesResult": { - "base": "

    Contains the output of DescribeVpcEndpointServices.

    ", - "refs": { - } - }, - "DescribeVpcEndpointsRequest": { - "base": "

    Contains the parameters for DescribeVpcEndpoints.

    ", - "refs": { - } - }, - "DescribeVpcEndpointsResult": { - "base": "

    Contains the output of DescribeVpcEndpoints.

    ", - "refs": { - } - }, - "DescribeVpcPeeringConnectionsRequest": { - "base": "

    Contains the parameters for DescribeVpcPeeringConnections.

    ", - "refs": { - } - }, - "DescribeVpcPeeringConnectionsResult": { - "base": "

    Contains the output of DescribeVpcPeeringConnections.

    ", - "refs": { - } - }, - "DescribeVpcsRequest": { - "base": "

    Contains the parameters for DescribeVpcs.

    ", - "refs": { - } - }, - "DescribeVpcsResult": { - "base": "

    Contains the output of DescribeVpcs.

    ", - "refs": { - } - }, - "DescribeVpnConnectionsRequest": { - "base": "

    Contains the parameters for DescribeVpnConnections.

    ", - "refs": { - } - }, - "DescribeVpnConnectionsResult": { - "base": "

    Contains the output of DescribeVpnConnections.

    ", - "refs": { - } - }, - "DescribeVpnGatewaysRequest": { - "base": "

    Contains the parameters for DescribeVpnGateways.

    ", - "refs": { - } - }, - "DescribeVpnGatewaysResult": { - "base": "

    Contains the output of DescribeVpnGateways.

    ", - "refs": { - } - }, - "DetachClassicLinkVpcRequest": { - "base": "

    Contains the parameters for DetachClassicLinkVpc.

    ", - "refs": { - } - }, - "DetachClassicLinkVpcResult": { - "base": "

    Contains the output of DetachClassicLinkVpc.

    ", - "refs": { - } - }, - "DetachInternetGatewayRequest": { - "base": "

    Contains the parameters for DetachInternetGateway.

    ", - "refs": { - } - }, - "DetachNetworkInterfaceRequest": { - "base": "

    Contains the parameters for DetachNetworkInterface.

    ", - "refs": { - } - }, - "DetachVolumeRequest": { - "base": "

    Contains the parameters for DetachVolume.

    ", - "refs": { - } - }, - "DetachVpnGatewayRequest": { - "base": "

    Contains the parameters for DetachVpnGateway.

    ", - "refs": { - } - }, - "DeviceType": { - "base": null, - "refs": { - "Image$RootDeviceType": "

    The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.

    ", - "Instance$RootDeviceType": "

    The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.

    " - } - }, - "DhcpConfiguration": { - "base": "

    Describes a DHCP configuration option.

    ", - "refs": { - "DhcpConfigurationList$member": null - } - }, - "DhcpConfigurationList": { - "base": null, - "refs": { - "DhcpOptions$DhcpConfigurations": "

    One or more DHCP options in the set.

    " - } - }, - "DhcpConfigurationValueList": { - "base": null, - "refs": { - "DhcpConfiguration$Values": "

    One or more values for the DHCP option.

    " - } - }, - "DhcpOptions": { - "base": "

    Describes a set of DHCP options.

    ", - "refs": { - "CreateDhcpOptionsResult$DhcpOptions": "

    A set of DHCP options.

    ", - "DhcpOptionsList$member": null - } - }, - "DhcpOptionsIdStringList": { - "base": null, - "refs": { - "DescribeDhcpOptionsRequest$DhcpOptionsIds": "

    The IDs of one or more DHCP options sets.

    Default: Describes all your DHCP options sets.

    " - } - }, - "DhcpOptionsList": { - "base": null, - "refs": { - "DescribeDhcpOptionsResult$DhcpOptions": "

    Information about one or more DHCP options sets.

    " - } - }, - "DisableVgwRoutePropagationRequest": { - "base": "

    Contains the parameters for DisableVgwRoutePropagation.

    ", - "refs": { - } - }, - "DisableVpcClassicLinkDnsSupportRequest": { - "base": "

    Contains the parameters for DisableVpcClassicLinkDnsSupport.

    ", - "refs": { - } - }, - "DisableVpcClassicLinkDnsSupportResult": { - "base": "

    Contains the output of DisableVpcClassicLinkDnsSupport.

    ", - "refs": { - } - }, - "DisableVpcClassicLinkRequest": { - "base": "

    Contains the parameters for DisableVpcClassicLink.

    ", - "refs": { - } - }, - "DisableVpcClassicLinkResult": { - "base": "

    Contains the output of DisableVpcClassicLink.

    ", - "refs": { - } - }, - "DisassociateAddressRequest": { - "base": "

    Contains the parameters for DisassociateAddress.

    ", - "refs": { - } - }, - "DisassociateRouteTableRequest": { - "base": "

    Contains the parameters for DisassociateRouteTable.

    ", - "refs": { - } - }, - "DiskImage": { - "base": "

    Describes a disk image.

    ", - "refs": { - "DiskImageList$member": null - } - }, - "DiskImageDescription": { - "base": "

    Describes a disk image.

    ", - "refs": { - "ImportInstanceVolumeDetailItem$Image": "

    The image.

    ", - "ImportVolumeTaskDetails$Image": "

    The image.

    " - } - }, - "DiskImageDetail": { - "base": "

    Describes a disk image.

    ", - "refs": { - "DiskImage$Image": "

    Information about the disk image.

    ", - "ImportVolumeRequest$Image": "

    The disk image.

    " - } - }, - "DiskImageFormat": { - "base": null, - "refs": { - "DiskImageDescription$Format": "

    The disk image format.

    ", - "DiskImageDetail$Format": "

    The disk image format.

    ", - "ExportToS3Task$DiskImageFormat": "

    The format for the exported image.

    ", - "ExportToS3TaskSpecification$DiskImageFormat": "

    The format for the exported image.

    " - } - }, - "DiskImageList": { - "base": null, - "refs": { - "ImportInstanceRequest$DiskImages": "

    The disk image.

    " - } - }, - "DiskImageVolumeDescription": { - "base": "

    Describes a disk image volume.

    ", - "refs": { - "ImportInstanceVolumeDetailItem$Volume": "

    The volume.

    ", - "ImportVolumeTaskDetails$Volume": "

    The volume.

    " - } - }, - "DomainType": { - "base": null, - "refs": { - "Address$Domain": "

    Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).

    ", - "AllocateAddressRequest$Domain": "

    Set to vpc to allocate the address for use with instances in a VPC.

    Default: The address is for use with instances in EC2-Classic.

    ", - "AllocateAddressResult$Domain": "

    Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).

    " - } - }, - "Double": { - "base": null, - "refs": { - "ClientData$UploadSize": "

    The size of the uploaded disk image, in GiB.

    ", - "PriceSchedule$Price": "

    The fixed price for the term.

    ", - "PriceScheduleSpecification$Price": "

    The fixed price for the term.

    ", - "PricingDetail$Price": "

    The price per instance.

    ", - "RecurringCharge$Amount": "

    The amount of the recurring charge.

    ", - "ReservedInstanceLimitPrice$Amount": "

    Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).

    ", - "SnapshotDetail$DiskImageSize": "

    The size of the disk in the snapshot, in GiB.

    ", - "SnapshotTaskDetail$DiskImageSize": "

    The size of the disk in the snapshot, in GiB.

    ", - "SpotFleetLaunchSpecification$WeightedCapacity": "

    The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms (instances or a performance characteristic such as vCPUs, memory, or I/O).

    If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.

    ", - "SpotFleetRequestConfigData$FulfilledCapacity": "

    The number of units fulfilled by this request compared to the set target capacity.

    " - } - }, - "EbsBlockDevice": { - "base": "

    Describes a block device for an EBS volume.

    ", - "refs": { - "BlockDeviceMapping$Ebs": "

    Parameters used to automatically set up EBS volumes when the instance is launched.

    " - } - }, - "EbsInstanceBlockDevice": { - "base": "

    Describes a parameter used to set up an EBS volume in a block device mapping.

    ", - "refs": { - "InstanceBlockDeviceMapping$Ebs": "

    Parameters used to automatically set up EBS volumes when the instance is launched.

    " - } - }, - "EbsInstanceBlockDeviceSpecification": { - "base": "

    Describes information used to set up an EBS volume specified in a block device mapping.

    ", - "refs": { - "InstanceBlockDeviceMappingSpecification$Ebs": "

    Parameters used to automatically set up EBS volumes when the instance is launched.

    " - } - }, - "EnableVgwRoutePropagationRequest": { - "base": "

    Contains the parameters for EnableVgwRoutePropagation.

    ", - "refs": { - } - }, - "EnableVolumeIORequest": { - "base": "

    Contains the parameters for EnableVolumeIO.

    ", - "refs": { - } - }, - "EnableVpcClassicLinkDnsSupportRequest": { - "base": "

    Contains the parameters for EnableVpcClassicLinkDnsSupport.

    ", - "refs": { - } - }, - "EnableVpcClassicLinkDnsSupportResult": { - "base": "

    Contains the output of EnableVpcClassicLinkDnsSupport.

    ", - "refs": { - } - }, - "EnableVpcClassicLinkRequest": { - "base": "

    Contains the parameters for EnableVpcClassicLink.

    ", - "refs": { - } - }, - "EnableVpcClassicLinkResult": { - "base": "

    Contains the output of EnableVpcClassicLink.

    ", - "refs": { - } - }, - "EventCode": { - "base": null, - "refs": { - "InstanceStatusEvent$Code": "

    The event code.

    " - } - }, - "EventInformation": { - "base": "

    Describes a Spot fleet event.

    ", - "refs": { - "HistoryRecord$EventInformation": "

    Information about the event.

    " - } - }, - "EventType": { - "base": null, - "refs": { - "DescribeSpotFleetRequestHistoryRequest$EventType": "

    The type of events to describe. By default, all events are described.

    ", - "HistoryRecord$EventType": "

    The event type.

    • error - Indicates an error with the Spot fleet request.

    • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

    • instanceChange - Indicates that an instance was launched or terminated.

    " - } - }, - "ExcessCapacityTerminationPolicy": { - "base": null, - "refs": { - "ModifySpotFleetRequestRequest$ExcessCapacityTerminationPolicy": "

    Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

    ", - "SpotFleetRequestConfigData$ExcessCapacityTerminationPolicy": "

    Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

    " - } - }, - "ExecutableByStringList": { - "base": null, - "refs": { - "DescribeImagesRequest$ExecutableUsers": "

    Scopes the images by users with explicit launch permissions. Specify an AWS account ID, self (the sender of the request), or all (public AMIs).

    " - } - }, - "ExportEnvironment": { - "base": null, - "refs": { - "CreateInstanceExportTaskRequest$TargetEnvironment": "

    The target virtualization environment.

    ", - "InstanceExportDetails$TargetEnvironment": "

    The target virtualization environment.

    " - } - }, - "ExportTask": { - "base": "

    Describes an instance export task.

    ", - "refs": { - "CreateInstanceExportTaskResult$ExportTask": "

    Information about the instance export task.

    ", - "ExportTaskList$member": null - } - }, - "ExportTaskIdStringList": { - "base": null, - "refs": { - "DescribeExportTasksRequest$ExportTaskIds": "

    One or more export task IDs.

    " - } - }, - "ExportTaskList": { - "base": null, - "refs": { - "DescribeExportTasksResult$ExportTasks": "

    Information about the export tasks.

    " - } - }, - "ExportTaskState": { - "base": null, - "refs": { - "ExportTask$State": "

    The state of the export task.

    " - } - }, - "ExportToS3Task": { - "base": "

    Describes the format and location for an instance export task.

    ", - "refs": { - "ExportTask$ExportToS3Task": "

    Information about the export task.

    " - } - }, - "ExportToS3TaskSpecification": { - "base": "

    Describes an instance export task.

    ", - "refs": { - "CreateInstanceExportTaskRequest$ExportToS3Task": "

    The format and location for an instance export task.

    " - } - }, - "Filter": { - "base": "

    A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria, such as tags, attributes, or IDs.

    ", - "refs": { - "FilterList$member": null - } - }, - "FilterList": { - "base": null, - "refs": { - "DescribeAddressesRequest$Filters": "

    One or more filters. Filter names and values are case-sensitive.

    • allocation-id - [EC2-VPC] The allocation ID for the address.

    • association-id - [EC2-VPC] The association ID for the address.

    • domain - Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc).

    • instance-id - The ID of the instance the address is associated with, if any.

    • network-interface-id - [EC2-VPC] The ID of the network interface that the address is associated with, if any.

    • network-interface-owner-id - The AWS account ID of the owner.

    • private-ip-address - [EC2-VPC] The private IP address associated with the Elastic IP address.

    • public-ip - The Elastic IP address.

    ", - "DescribeAvailabilityZonesRequest$Filters": "

    One or more filters.

    • message - Information about the Availability Zone.

    • region-name - The name of the region for the Availability Zone (for example, us-east-1).

    • state - The state of the Availability Zone (available | information | impaired | unavailable).

    • zone-name - The name of the Availability Zone (for example, us-east-1a).

    ", - "DescribeBundleTasksRequest$Filters": "

    One or more filters.

    • bundle-id - The ID of the bundle task.

    • error-code - If the task failed, the error code returned.

    • error-message - If the task failed, the error message returned.

    • instance-id - The ID of the instance.

    • progress - The level of task completion, as a percentage (for example, 20%).

    • s3-bucket - The Amazon S3 bucket to store the AMI.

    • s3-prefix - The beginning of the AMI name.

    • start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z).

    • state - The state of the task (pending | waiting-for-shutdown | bundling | storing | cancelling | complete | failed).

    • update-time - The time of the most recent update for the task.

    ", - "DescribeClassicLinkInstancesRequest$Filters": "

    One or more filters.

    • group-id - The ID of a VPC security group that's associated with the instance.

    • instance-id - The ID of the instance.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • vpc-id - The ID of the VPC that the instance is linked to.

    ", - "DescribeConversionTasksRequest$Filters": "

    One or more filters.

    ", - "DescribeCustomerGatewaysRequest$Filters": "

    One or more filters.

    • bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

    • customer-gateway-id - The ID of the customer gateway.

    • ip-address - The IP address of the customer gateway's Internet-routable external interface.

    • state - The state of the customer gateway (pending | available | deleting | deleted).

    • type - The type of customer gateway. Currently, the only supported type is ipsec.1.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    ", - "DescribeDhcpOptionsRequest$Filters": "

    One or more filters.

    • dhcp-options-id - The ID of a set of DHCP options.

    • key - The key for one of the options (for example, domain-name).

    • value - The value for one of the options.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    ", - "DescribeFlowLogsRequest$Filter": "

    One or more filters.

    • deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).

    • flow-log-id - The ID of the flow log.

    • log-group-name - The name of the log group.

    • resource-id - The ID of the VPC, subnet, or network interface.

    • traffic-type - The type of traffic (ACCEPT | REJECT | ALL)

    ", - "DescribeHostsRequest$Filter": "

    One or more filters.

    • instance-type - The instance type size that the Dedicated host is configured to support.

    • auto-placement - Whether auto-placement is enabled or disabled (on | off).

    • host-reservation-id - The ID of the reservation associated with this host.

    • client-token - The idempotency token you provided when you launched the instance

    • state- The allocation state of the Dedicated host (available | under-assessment | permanent-failure | released | released-permanent-failure).

    • availability-zone - The Availability Zone of the host.

    ", - "DescribeImagesRequest$Filters": "

    One or more filters.

    • architecture - The image architecture (i386 | x86_64).

    • block-device-mapping.delete-on-termination - A Boolean value that indicates whether the Amazon EBS volume is deleted on instance termination.

    • block-device-mapping.device-name - The device name for the EBS volume (for example, /dev/sdh).

    • block-device-mapping.snapshot-id - The ID of the snapshot used for the EBS volume.

    • block-device-mapping.volume-size - The volume size of the EBS volume, in GiB.

    • block-device-mapping.volume-type - The volume type of the EBS volume (gp2 | io1 | st1 | sc1 | standard).

    • description - The description of the image (provided during image creation).

    • hypervisor - The hypervisor type (ovm | xen).

    • image-id - The ID of the image.

    • image-type - The image type (machine | kernel | ramdisk).

    • is-public - A Boolean that indicates whether the image is public.

    • kernel-id - The kernel ID.

    • manifest-location - The location of the image manifest.

    • name - The name of the AMI (provided during image creation).

    • owner-alias - The AWS account alias (for example, amazon).

    • owner-id - The AWS account ID of the image owner.

    • platform - The platform. To only list Windows-based AMIs, use windows.

    • product-code - The product code.

    • product-code.type - The type of the product code (devpay | marketplace).

    • ramdisk-id - The RAM disk ID.

    • root-device-name - The name of the root device volume (for example, /dev/sda1).

    • root-device-type - The type of the root device volume (ebs | instance-store).

    • state - The state of the image (available | pending | failed).

    • state-reason-code - The reason code for the state change.

    • state-reason-message - The message for the state change.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • virtualization-type - The virtualization type (paravirtual | hvm).

    ", - "DescribeImportImageTasksRequest$Filters": "

    Filter tasks using the task-state filter and one of the following values: active, completed, deleting, deleted.

    ", - "DescribeImportSnapshotTasksRequest$Filters": "

    One or more filters.

    ", - "DescribeInstanceStatusRequest$Filters": "

    One or more filters.

    • availability-zone - The Availability Zone of the instance.

    • event.code - The code for the scheduled event (instance-reboot | system-reboot | system-maintenance | instance-retirement | instance-stop).

    • event.description - A description of the event.

    • event.not-after - The latest end time for the scheduled event (for example, 2014-09-15T17:15:20.000Z).

    • event.not-before - The earliest start time for the scheduled event (for example, 2014-09-15T17:15:20.000Z).

    • instance-state-code - The code for the instance state, as a 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented. The valid values are 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).

    • instance-state-name - The state of the instance (pending | running | shutting-down | terminated | stopping | stopped).

    • instance-status.reachability - Filters on instance status where the name is reachability (passed | failed | initializing | insufficient-data).

    • instance-status.status - The status of the instance (ok | impaired | initializing | insufficient-data | not-applicable).

    • system-status.reachability - Filters on system status where the name is reachability (passed | failed | initializing | insufficient-data).

    • system-status.status - The system status of the instance (ok | impaired | initializing | insufficient-data | not-applicable).

    ", - "DescribeInstancesRequest$Filters": "

    One or more filters.

    • affinity - The affinity setting for an instance running on a Dedicated host (default | host).

    • architecture - The instance architecture (i386 | x86_64).

    • availability-zone - The Availability Zone of the instance.

    • block-device-mapping.attach-time - The attach time for an EBS volume mapped to the instance, for example, 2010-09-15T17:15:20.000Z.

    • block-device-mapping.delete-on-termination - A Boolean that indicates whether the EBS volume is deleted on instance termination.

    • block-device-mapping.device-name - The device name for the EBS volume (for example, /dev/sdh or xvdh).

    • block-device-mapping.status - The status for the EBS volume (attaching | attached | detaching | detached).

    • block-device-mapping.volume-id - The volume ID of the EBS volume.

    • client-token - The idempotency token you provided when you launched the instance.

    • dns-name - The public DNS name of the instance.

    • group-id - The ID of the security group for the instance. EC2-Classic only.

    • group-name - The name of the security group for the instance. EC2-Classic only.

    • host-Id - The ID of the Dedicated host on which the instance is running, if applicable.

    • hypervisor - The hypervisor type of the instance (ovm | xen).

    • iam-instance-profile.arn - The instance profile associated with the instance. Specified as an ARN.

    • image-id - The ID of the image used to launch the instance.

    • instance-id - The ID of the instance.

    • instance-lifecycle - Indicates whether this is a Spot Instance or a Scheduled Instance (spot | scheduled).

    • instance-state-code - The state of the instance, as a 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented. The valid values are: 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).

    • instance-state-name - The state of the instance (pending | running | shutting-down | terminated | stopping | stopped).

    • instance-type - The type of instance (for example, t2.micro).

    • instance.group-id - The ID of the security group for the instance.

    • instance.group-name - The name of the security group for the instance.

    • ip-address - The public IP address of the instance.

    • kernel-id - The kernel ID.

    • key-name - The name of the key pair used when the instance was launched.

    • launch-index - When launching multiple instances, this is the index for the instance in the launch group (for example, 0, 1, 2, and so on).

    • launch-time - The time when the instance was launched.

    • monitoring-state - Indicates whether monitoring is enabled for the instance (disabled | enabled).

    • owner-id - The AWS account ID of the instance owner.

    • placement-group-name - The name of the placement group for the instance.

    • platform - The platform. Use windows if you have Windows instances; otherwise, leave blank.

    • private-dns-name - The private DNS name of the instance.

    • private-ip-address - The private IP address of the instance.

    • product-code - The product code associated with the AMI used to launch the instance.

    • product-code.type - The type of product code (devpay | marketplace).

    • ramdisk-id - The RAM disk ID.

    • reason - The reason for the current state of the instance (for example, shows \"User Initiated [date]\" when you stop or terminate the instance). Similar to the state-reason-code filter.

    • requester-id - The ID of the entity that launched the instance on your behalf (for example, AWS Management Console, Auto Scaling, and so on).

    • reservation-id - The ID of the instance's reservation. A reservation ID is created any time you launch an instance. A reservation ID has a one-to-one relationship with an instance launch request, but can be associated with more than one instance if you launch multiple instances using the same launch request. For example, if you launch one instance, you'll get one reservation ID. If you launch ten instances using the same launch request, you'll also get one reservation ID.

    • root-device-name - The name of the root device for the instance (for example, /dev/sda1 or /dev/xvda).

    • root-device-type - The type of root device that the instance uses (ebs | instance-store).

    • source-dest-check - Indicates whether the instance performs source/destination checking. A value of true means that checking is enabled, and false means checking is disabled. The value must be false for the instance to perform network address translation (NAT) in your VPC.

    • spot-instance-request-id - The ID of the Spot instance request.

    • state-reason-code - The reason code for the state change.

    • state-reason-message - A message that describes the state change.

    • subnet-id - The ID of the subnet for the instance.

    • tag:key=value - The key/value combination of a tag assigned to the resource, where tag:key is the tag's key.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • tenancy - The tenancy of an instance (dedicated | default | host).

    • virtualization-type - The virtualization type of the instance (paravirtual | hvm).

    • vpc-id - The ID of the VPC that the instance is running in.

    • network-interface.description - The description of the network interface.

    • network-interface.subnet-id - The ID of the subnet for the network interface.

    • network-interface.vpc-id - The ID of the VPC for the network interface.

    • network-interface.network-interface-id - The ID of the network interface.

    • network-interface.owner-id - The ID of the owner of the network interface.

    • network-interface.availability-zone - The Availability Zone for the network interface.

    • network-interface.requester-id - The requester ID for the network interface.

    • network-interface.requester-managed - Indicates whether the network interface is being managed by AWS.

    • network-interface.status - The status of the network interface (available) | in-use).

    • network-interface.mac-address - The MAC address of the network interface.

    • network-interface.private-dns-name - The private DNS name of the network interface.

    • network-interface.source-dest-check - Whether the network interface performs source/destination checking. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the network interface to perform network address translation (NAT) in your VPC.

    • network-interface.group-id - The ID of a security group associated with the network interface.

    • network-interface.group-name - The name of a security group associated with the network interface.

    • network-interface.attachment.attachment-id - The ID of the interface attachment.

    • network-interface.attachment.instance-id - The ID of the instance to which the network interface is attached.

    • network-interface.attachment.instance-owner-id - The owner ID of the instance to which the network interface is attached.

    • network-interface.addresses.private-ip-address - The private IP address associated with the network interface.

    • network-interface.attachment.device-index - The device index to which the network interface is attached.

    • network-interface.attachment.status - The status of the attachment (attaching | attached | detaching | detached).

    • network-interface.attachment.attach-time - The time that the network interface was attached to an instance.

    • network-interface.attachment.delete-on-termination - Specifies whether the attachment is deleted when an instance is terminated.

    • network-interface.addresses.primary - Specifies whether the IP address of the network interface is the primary private IP address.

    • network-interface.addresses.association.public-ip - The ID of the association of an Elastic IP address with a network interface.

    • network-interface.addresses.association.ip-owner-id - The owner ID of the private IP address associated with the network interface.

    • association.public-ip - The address of the Elastic IP address bound to the network interface.

    • association.ip-owner-id - The owner of the Elastic IP address associated with the network interface.

    • association.allocation-id - The allocation ID returned when you allocated the Elastic IP address for your network interface.

    • association.association-id - The association ID returned when the network interface was associated with an IP address.

    ", - "DescribeInternetGatewaysRequest$Filters": "

    One or more filters.

    • attachment.state - The current state of the attachment between the gateway and the VPC (available). Present only if a VPC is attached.

    • attachment.vpc-id - The ID of an attached VPC.

    • internet-gateway-id - The ID of the Internet gateway.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    ", - "DescribeKeyPairsRequest$Filters": "

    One or more filters.

    • fingerprint - The fingerprint of the key pair.

    • key-name - The name of the key pair.

    ", - "DescribeMovingAddressesRequest$Filters": "

    One or more filters.

    • moving-status - The status of the Elastic IP address (MovingToVpc | RestoringToClassic).

    ", - "DescribeNatGatewaysRequest$Filter": "

    One or more filters.

    • nat-gateway-id - The ID of the NAT gateway.

    • state - The state of the NAT gateway (pending | failed | available | deleting | deleted).

    • subnet-id - The ID of the subnet in which the NAT gateway resides.

    • vpc-id - The ID of the VPC in which the NAT gateway resides.

    ", - "DescribeNetworkAclsRequest$Filters": "

    One or more filters.

    • association.association-id - The ID of an association ID for the ACL.

    • association.network-acl-id - The ID of the network ACL involved in the association.

    • association.subnet-id - The ID of the subnet involved in the association.

    • default - Indicates whether the ACL is the default network ACL for the VPC.

    • entry.cidr - The CIDR range specified in the entry.

    • entry.egress - Indicates whether the entry applies to egress traffic.

    • entry.icmp.code - The ICMP code specified in the entry, if any.

    • entry.icmp.type - The ICMP type specified in the entry, if any.

    • entry.port-range.from - The start of the port range specified in the entry.

    • entry.port-range.to - The end of the port range specified in the entry.

    • entry.protocol - The protocol specified in the entry (tcp | udp | icmp or a protocol number).

    • entry.rule-action - Allows or denies the matching traffic (allow | deny).

    • entry.rule-number - The number of an entry (in other words, rule) in the ACL's set of entries.

    • network-acl-id - The ID of the network ACL.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • vpc-id - The ID of the VPC for the network ACL.

    ", - "DescribeNetworkInterfacesRequest$Filters": "

    One or more filters.

    • addresses.private-ip-address - The private IP addresses associated with the network interface.

    • addresses.primary - Whether the private IP address is the primary IP address associated with the network interface.

    • addresses.association.public-ip - The association ID returned when the network interface was associated with the Elastic IP address.

    • addresses.association.owner-id - The owner ID of the addresses associated with the network interface.

    • association.association-id - The association ID returned when the network interface was associated with an IP address.

    • association.allocation-id - The allocation ID returned when you allocated the Elastic IP address for your network interface.

    • association.ip-owner-id - The owner of the Elastic IP address associated with the network interface.

    • association.public-ip - The address of the Elastic IP address bound to the network interface.

    • association.public-dns-name - The public DNS name for the network interface.

    • attachment.attachment-id - The ID of the interface attachment.

    • attachment.attach.time - The time that the network interface was attached to an instance.

    • attachment.delete-on-termination - Indicates whether the attachment is deleted when an instance is terminated.

    • attachment.device-index - The device index to which the network interface is attached.

    • attachment.instance-id - The ID of the instance to which the network interface is attached.

    • attachment.instance-owner-id - The owner ID of the instance to which the network interface is attached.

    • attachment.nat-gateway-id - The ID of the NAT gateway to which the network interface is attached.

    • attachment.status - The status of the attachment (attaching | attached | detaching | detached).

    • availability-zone - The Availability Zone of the network interface.

    • description - The description of the network interface.

    • group-id - The ID of a security group associated with the network interface.

    • group-name - The name of a security group associated with the network interface.

    • mac-address - The MAC address of the network interface.

    • network-interface-id - The ID of the network interface.

    • owner-id - The AWS account ID of the network interface owner.

    • private-ip-address - The private IP address or addresses of the network interface.

    • private-dns-name - The private DNS name of the network interface.

    • requester-id - The ID of the entity that launched the instance on your behalf (for example, AWS Management Console, Auto Scaling, and so on).

    • requester-managed - Indicates whether the network interface is being managed by an AWS service (for example, AWS Management Console, Auto Scaling, and so on).

    • source-desk-check - Indicates whether the network interface performs source/destination checking. A value of true means checking is enabled, and false means checking is disabled. The value must be false for the network interface to perform network address translation (NAT) in your VPC.

    • status - The status of the network interface. If the network interface is not attached to an instance, the status is available; if a network interface is attached to an instance the status is in-use.

    • subnet-id - The ID of the subnet for the network interface.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • vpc-id - The ID of the VPC for the network interface.

    ", - "DescribePlacementGroupsRequest$Filters": "

    One or more filters.

    • group-name - The name of the placement group.

    • state - The state of the placement group (pending | available | deleting | deleted).

    • strategy - The strategy of the placement group (cluster).

    ", - "DescribePrefixListsRequest$Filters": "

    One or more filters.

    • prefix-list-id: The ID of a prefix list.

    • prefix-list-name: The name of a prefix list.

    ", - "DescribeRegionsRequest$Filters": "

    One or more filters.

    • endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).

    • region-name - The name of the region (for example, us-east-1).

    ", - "DescribeReservedInstancesListingsRequest$Filters": "

    One or more filters.

    • reserved-instances-id - The ID of the Reserved Instances.

    • reserved-instances-listing-id - The ID of the Reserved Instances listing.

    • status - The status of the Reserved Instance listing (pending | active | cancelled | closed).

    • status-message - The reason for the status.

    ", - "DescribeReservedInstancesModificationsRequest$Filters": "

    One or more filters.

    • client-token - The idempotency token for the modification request.

    • create-date - The time when the modification request was created.

    • effective-date - The time when the modification becomes effective.

    • modification-result.reserved-instances-id - The ID for the Reserved Instances created as part of the modification request. This ID is only available when the status of the modification is fulfilled.

    • modification-result.target-configuration.availability-zone - The Availability Zone for the new Reserved Instances.

    • modification-result.target-configuration.instance-count - The number of new Reserved Instances.

    • modification-result.target-configuration.instance-type - The instance type of the new Reserved Instances.

    • modification-result.target-configuration.platform - The network platform of the new Reserved Instances (EC2-Classic | EC2-VPC).

    • reserved-instances-id - The ID of the Reserved Instances modified.

    • reserved-instances-modification-id - The ID of the modification request.

    • status - The status of the Reserved Instances modification request (processing | fulfilled | failed).

    • status-message - The reason for the status.

    • update-date - The time when the modification request was last updated.

    ", - "DescribeReservedInstancesOfferingsRequest$Filters": "

    One or more filters.

    • availability-zone - The Availability Zone where the Reserved Instance can be used.

    • duration - The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000 | 94608000).

    • fixed-price - The purchase price of the Reserved Instance (for example, 9800.0).

    • instance-type - The instance type that is covered by the reservation.

    • marketplace - Set to true to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from both AWS and the Reserved Instance Marketplace are listed.

    • product-description - The Reserved Instance product platform description. Instances that include (Amazon VPC) in the product platform description will only be displayed to EC2-Classic account holders and are for use with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC))

    • reserved-instances-offering-id - The Reserved Instances offering ID.

    • usage-price - The usage price of the Reserved Instance, per hour (for example, 0.84).

    ", - "DescribeReservedInstancesRequest$Filters": "

    One or more filters.

    • availability-zone - The Availability Zone where the Reserved Instance can be used.

    • duration - The duration of the Reserved Instance (one year or three years), in seconds (31536000 | 94608000).

    • end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).

    • fixed-price - The purchase price of the Reserved Instance (for example, 9800.0).

    • instance-type - The instance type that is covered by the reservation.

    • product-description - The Reserved Instance product platform description. Instances that include (Amazon VPC) in the product platform description will only be displayed to EC2-Classic account holders and are for use with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)).

    • reserved-instances-id - The ID of the Reserved Instance.

    • start - The time at which the Reserved Instance purchase request was placed (for example, 2014-08-07T11:54:42.000Z).

    • state - The state of the Reserved Instance (payment-pending | active | payment-failed | retired).

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • usage-price - The usage price of the Reserved Instance, per hour (for example, 0.84).

    ", - "DescribeRouteTablesRequest$Filters": "

    One or more filters.

    • association.route-table-association-id - The ID of an association ID for the route table.

    • association.route-table-id - The ID of the route table involved in the association.

    • association.subnet-id - The ID of the subnet involved in the association.

    • association.main - Indicates whether the route table is the main route table for the VPC (true | false).

    • route-table-id - The ID of the route table.

    • route.destination-cidr-block - The CIDR range specified in a route in the table.

    • route.destination-prefix-list-id - The ID (prefix) of the AWS service specified in a route in the table.

    • route.gateway-id - The ID of a gateway specified in a route in the table.

    • route.instance-id - The ID of an instance specified in a route in the table.

    • route.nat-gateway-id - The ID of a NAT gateway.

    • route.origin - Describes how the route was created. CreateRouteTable indicates that the route was automatically created when the route table was created; CreateRoute indicates that the route was manually added to the route table; EnableVgwRoutePropagation indicates that the route was propagated by route propagation.

    • route.state - The state of a route in the route table (active | blackhole). The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, the specified NAT instance has been terminated, and so on).

    • route.vpc-peering-connection-id - The ID of a VPC peering connection specified in a route in the table.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • vpc-id - The ID of the VPC for the route table.

    ", - "DescribeScheduledInstanceAvailabilityRequest$Filters": "

    One or more filters.

    • availability-zone - The Availability Zone (for example, us-west-2a).

    • instance-type - The instance type (for example, c4.large).

    • network-platform - The network platform (EC2-Classic or EC2-VPC).

    • platform - The platform (Linux/UNIX or Windows).

    ", - "DescribeScheduledInstancesRequest$Filters": "

    One or more filters.

    • availability-zone - The Availability Zone (for example, us-west-2a).

    • instance-type - The instance type (for example, c4.large).

    • network-platform - The network platform (EC2-Classic or EC2-VPC).

    • platform - The platform (Linux/UNIX or Windows).

    ", - "DescribeSecurityGroupsRequest$Filters": "

    One or more filters. If using multiple filters for rules, the results include security groups for which any combination of rules - not necessarily a single rule - match all filters.

    • description - The description of the security group.

    • egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service to which the security group allows access.

    • group-id - The ID of the security group.

    • group-name - The name of the security group.

    • ip-permission.cidr - A CIDR range that has been granted permission.

    • ip-permission.from-port - The start of port range for the TCP and UDP protocols, or an ICMP type number.

    • ip-permission.group-id - The ID of a security group that has been granted permission.

    • ip-permission.group-name - The name of a security group that has been granted permission.

    • ip-permission.protocol - The IP protocol for the permission (tcp | udp | icmp or a protocol number).

    • ip-permission.to-port - The end of port range for the TCP and UDP protocols, or an ICMP code.

    • ip-permission.user-id - The ID of an AWS account that has been granted permission.

    • owner-id - The AWS account ID of the owner of the security group.

    • tag-key - The key of a tag assigned to the security group.

    • tag-value - The value of a tag assigned to the security group.

    • vpc-id - The ID of the VPC specified when the security group was created.

    ", - "DescribeSnapshotsRequest$Filters": "

    One or more filters.

    • description - A description of the snapshot.

    • owner-alias - The AWS account alias (for example, amazon) that owns the snapshot.

    • owner-id - The ID of the AWS account that owns the snapshot.

    • progress - The progress of the snapshot, as a percentage (for example, 80%).

    • snapshot-id - The snapshot ID.

    • start-time - The time stamp when the snapshot was initiated.

    • status - The status of the snapshot (pending | completed | error).

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • volume-id - The ID of the volume the snapshot is for.

    • volume-size - The size of the volume, in GiB.

    ", - "DescribeSpotInstanceRequestsRequest$Filters": "

    One or more filters.

    • availability-zone-group - The Availability Zone group.

    • create-time - The time stamp when the Spot instance request was created.

    • fault-code - The fault code related to the request.

    • fault-message - The fault message related to the request.

    • instance-id - The ID of the instance that fulfilled the request.

    • launch-group - The Spot instance launch group.

    • launch.block-device-mapping.delete-on-termination - Indicates whether the Amazon EBS volume is deleted on instance termination.

    • launch.block-device-mapping.device-name - The device name for the Amazon EBS volume (for example, /dev/sdh).

    • launch.block-device-mapping.snapshot-id - The ID of the snapshot used for the Amazon EBS volume.

    • launch.block-device-mapping.volume-size - The size of the Amazon EBS volume, in GiB.

    • launch.block-device-mapping.volume-type - The type of the Amazon EBS volume: gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1for Cold HDD, or standard for Magnetic.

    • launch.group-id - The security group for the instance.

    • launch.image-id - The ID of the AMI.

    • launch.instance-type - The type of instance (for example, m3.medium).

    • launch.kernel-id - The kernel ID.

    • launch.key-name - The name of the key pair the instance launched with.

    • launch.monitoring-enabled - Whether monitoring is enabled for the Spot instance.

    • launch.ramdisk-id - The RAM disk ID.

    • network-interface.network-interface-id - The ID of the network interface.

    • network-interface.device-index - The index of the device for the network interface attachment on the instance.

    • network-interface.subnet-id - The ID of the subnet for the instance.

    • network-interface.description - A description of the network interface.

    • network-interface.private-ip-address - The primary private IP address of the network interface.

    • network-interface.delete-on-termination - Indicates whether the network interface is deleted when the instance is terminated.

    • network-interface.group-id - The ID of the security group associated with the network interface.

    • network-interface.group-name - The name of the security group associated with the network interface.

    • network-interface.addresses.primary - Indicates whether the IP address is the primary private IP address.

    • product-description - The product description associated with the instance (Linux/UNIX | Windows).

    • spot-instance-request-id - The Spot instance request ID.

    • spot-price - The maximum hourly price for any Spot instance launched to fulfill the request.

    • state - The state of the Spot instance request (open | active | closed | cancelled | failed). Spot bid status information can help you track your Amazon EC2 Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.

    • status-code - The short code describing the most recent evaluation of your Spot instance request.

    • status-message - The message explaining the status of the Spot instance request.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • type - The type of Spot instance request (one-time | persistent).

    • launched-availability-zone - The Availability Zone in which the bid is launched.

    • valid-from - The start date of the request.

    • valid-until - The end date of the request.

    ", - "DescribeSpotPriceHistoryRequest$Filters": "

    One or more filters.

    • availability-zone - The Availability Zone for which prices should be returned.

    • instance-type - The type of instance (for example, m3.medium).

    • product-description - The product description for the Spot price (Linux/UNIX | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

    • spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

    • timestamp - The timestamp of the Spot price history, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

    ", - "DescribeSubnetsRequest$Filters": "

    One or more filters.

    • availabilityZone - The Availability Zone for the subnet. You can also use availability-zone as the filter name.

    • available-ip-address-count - The number of IP addresses in the subnet that are available.

    • cidrBlock - The CIDR block of the subnet. The CIDR block you specify must exactly match the subnet's CIDR block for information to be returned for the subnet. You can also use cidr or cidr-block as the filter names.

    • defaultForAz - Indicates whether this is the default subnet for the Availability Zone. You can also use default-for-az as the filter name.

    • state - The state of the subnet (pending | available).

    • subnet-id - The ID of the subnet.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • vpc-id - The ID of the VPC for the subnet.

    ", - "DescribeTagsRequest$Filters": "

    One or more filters.

    • key - The tag key.

    • resource-id - The resource ID.

    • resource-type - The resource type (customer-gateway | dhcp-options | image | instance | internet-gateway | network-acl | network-interface | reserved-instances | route-table | security-group | snapshot | spot-instances-request | subnet | volume | vpc | vpn-connection | vpn-gateway).

    • value - The tag value.

    ", - "DescribeVolumeStatusRequest$Filters": "

    One or more filters.

    • action.code - The action code for the event (for example, enable-volume-io).

    • action.description - A description of the action.

    • action.event-id - The event ID associated with the action.

    • availability-zone - The Availability Zone of the instance.

    • event.description - A description of the event.

    • event.event-id - The event ID.

    • event.event-type - The event type (for io-enabled: passed | failed; for io-performance: io-performance:degraded | io-performance:severely-degraded | io-performance:stalled).

    • event.not-after - The latest end time for the event.

    • event.not-before - The earliest start time for the event.

    • volume-status.details-name - The cause for volume-status.status (io-enabled | io-performance).

    • volume-status.details-status - The status of volume-status.details-name (for io-enabled: passed | failed; for io-performance: normal | degraded | severely-degraded | stalled).

    • volume-status.status - The status of the volume (ok | impaired | warning | insufficient-data).

    ", - "DescribeVolumesRequest$Filters": "

    One or more filters.

    • attachment.attach-time - The time stamp when the attachment initiated.

    • attachment.delete-on-termination - Whether the volume is deleted on instance termination.

    • attachment.device - The device name that is exposed to the instance (for example, /dev/sda1).

    • attachment.instance-id - The ID of the instance the volume is attached to.

    • attachment.status - The attachment state (attaching | attached | detaching | detached).

    • availability-zone - The Availability Zone in which the volume was created.

    • create-time - The time stamp when the volume was created.

    • encrypted - The encryption status of the volume.

    • size - The size of the volume, in GiB.

    • snapshot-id - The snapshot from which the volume was created.

    • status - The status of the volume (creating | available | in-use | deleting | deleted | error).

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • volume-id - The volume ID.

    • volume-type - The Amazon EBS volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes.

    ", - "DescribeVpcClassicLinkRequest$Filters": "

    One or more filters.

    • is-classic-link-enabled - Whether the VPC is enabled for ClassicLink (true | false).

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    ", - "DescribeVpcEndpointsRequest$Filters": "

    One or more filters.

    • service-name: The name of the AWS service.

    • vpc-id: The ID of the VPC in which the endpoint resides.

    • vpc-endpoint-id: The ID of the endpoint.

    • vpc-endpoint-state: The state of the endpoint. (pending | available | deleting | deleted)

    ", - "DescribeVpcPeeringConnectionsRequest$Filters": "

    One or more filters.

    • accepter-vpc-info.cidr-block - The CIDR block of the peer VPC.

    • accepter-vpc-info.owner-id - The AWS account ID of the owner of the peer VPC.

    • accepter-vpc-info.vpc-id - The ID of the peer VPC.

    • expiration-time - The expiration date and time for the VPC peering connection.

    • requester-vpc-info.cidr-block - The CIDR block of the requester's VPC.

    • requester-vpc-info.owner-id - The AWS account ID of the owner of the requester VPC.

    • requester-vpc-info.vpc-id - The ID of the requester VPC.

    • status-code - The status of the VPC peering connection (pending-acceptance | failed | expired | provisioning | active | deleted | rejected).

    • status-message - A message that provides more information about the status of the VPC peering connection, if applicable.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • vpc-peering-connection-id - The ID of the VPC peering connection.

    ", - "DescribeVpcsRequest$Filters": "

    One or more filters.

    • cidr - The CIDR block of the VPC. The CIDR block you specify must exactly match the VPC's CIDR block for information to be returned for the VPC. Must contain the slash followed by one or two digits (for example, /28).

    • dhcp-options-id - The ID of a set of DHCP options.

    • isDefault - Indicates whether the VPC is the default VPC.

    • state - The state of the VPC (pending | available).

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • vpc-id - The ID of the VPC.

    ", - "DescribeVpnConnectionsRequest$Filters": "

    One or more filters.

    • customer-gateway-configuration - The configuration information for the customer gateway.

    • customer-gateway-id - The ID of a customer gateway associated with the VPN connection.

    • state - The state of the VPN connection (pending | available | deleting | deleted).

    • option.static-routes-only - Indicates whether the connection has static routes only. Used for devices that do not support Border Gateway Protocol (BGP).

    • route.destination-cidr-block - The destination CIDR block. This corresponds to the subnet used in a customer data center.

    • bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP device.

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • type - The type of VPN connection. Currently the only supported type is ipsec.1.

    • vpn-connection-id - The ID of the VPN connection.

    • vpn-gateway-id - The ID of a virtual private gateway associated with the VPN connection.

    ", - "DescribeVpnGatewaysRequest$Filters": "

    One or more filters.

    • attachment.state - The current state of the attachment between the gateway and the VPC (attaching | attached | detaching | detached).

    • attachment.vpc-id - The ID of an attached VPC.

    • availability-zone - The Availability Zone for the virtual private gateway (if applicable).

    • state - The state of the virtual private gateway (pending | available | deleting | deleted).

    • tag:key=value - The key/value combination of a tag assigned to the resource.

    • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter \"tag-key=Purpose\" and the filter \"tag-value=X\", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

    • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

    • type - The type of virtual private gateway. Currently the only supported type is ipsec.1.

    • vpn-gateway-id - The ID of the virtual private gateway.

    " - } - }, - "FleetType": { - "base": null, - "refs": { - "SpotFleetRequestConfigData$Type": "

    The type of request. Indicates whether the fleet will only request the target capacity or also attempt to maintain it. When you request a certain target capacity, the fleet will only place the required bids. It will not attempt to replenish Spot instances if capacity is diminished, nor will it submit bids in alternative Spot pools if capacity is not available. When you want to maintain a certain target capacity, fleet will place the required bids to meet this target capacity. It will also automatically replenish any interrupted instances. Default: maintain.

    " - } - }, - "Float": { - "base": null, - "refs": { - "ReservedInstances$UsagePrice": "

    The usage price of the Reserved Instance, per hour.

    ", - "ReservedInstances$FixedPrice": "

    The purchase price of the Reserved Instance.

    ", - "ReservedInstancesOffering$UsagePrice": "

    The usage price of the Reserved Instance, per hour.

    ", - "ReservedInstancesOffering$FixedPrice": "

    The purchase price of the Reserved Instance.

    " - } - }, - "FlowLog": { - "base": "

    Describes a flow log.

    ", - "refs": { - "FlowLogSet$member": null - } - }, - "FlowLogSet": { - "base": null, - "refs": { - "DescribeFlowLogsResult$FlowLogs": "

    Information about the flow logs.

    " - } - }, - "FlowLogsResourceType": { - "base": null, - "refs": { - "CreateFlowLogsRequest$ResourceType": "

    The type of resource on which to create the flow log.

    " - } - }, - "GatewayType": { - "base": null, - "refs": { - "CreateCustomerGatewayRequest$Type": "

    The type of VPN connection that this customer gateway supports (ipsec.1).

    ", - "CreateVpnGatewayRequest$Type": "

    The type of VPN connection this virtual private gateway supports.

    ", - "VpnConnection$Type": "

    The type of VPN connection.

    ", - "VpnGateway$Type": "

    The type of VPN connection the virtual private gateway supports.

    " - } - }, - "GetConsoleOutputRequest": { - "base": "

    Contains the parameters for GetConsoleOutput.

    ", - "refs": { - } - }, - "GetConsoleOutputResult": { - "base": "

    Contains the output of GetConsoleOutput.

    ", - "refs": { - } - }, - "GetConsoleScreenshotRequest": { - "base": "

    Contains the parameters for the request.

    ", - "refs": { - } - }, - "GetConsoleScreenshotResult": { - "base": "

    Contains the output of the request.

    ", - "refs": { - } - }, - "GetPasswordDataRequest": { - "base": "

    Contains the parameters for GetPasswordData.

    ", - "refs": { - } - }, - "GetPasswordDataResult": { - "base": "

    Contains the output of GetPasswordData.

    ", - "refs": { - } - }, - "GroupIdStringList": { - "base": null, - "refs": { - "AttachClassicLinkVpcRequest$Groups": "

    The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.

    ", - "DescribeSecurityGroupsRequest$GroupIds": "

    One or more security group IDs. Required for security groups in a nondefault VPC.

    Default: Describes all your security groups.

    ", - "ModifyInstanceAttributeRequest$Groups": "

    [EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.

    " - } - }, - "GroupIdentifier": { - "base": "

    Describes a security group.

    ", - "refs": { - "GroupIdentifierList$member": null - } - }, - "GroupIdentifierList": { - "base": null, - "refs": { - "ClassicLinkInstance$Groups": "

    A list of security groups.

    ", - "DescribeNetworkInterfaceAttributeResult$Groups": "

    The security groups associated with the network interface.

    ", - "Instance$SecurityGroups": "

    One or more security groups for the instance.

    ", - "InstanceAttribute$Groups": "

    The security groups associated with the instance.

    ", - "InstanceNetworkInterface$Groups": "

    One or more security groups.

    ", - "LaunchSpecification$SecurityGroups": "

    One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.

    ", - "NetworkInterface$Groups": "

    Any security groups for the network interface.

    ", - "Reservation$Groups": "

    [EC2-Classic only] One or more security groups.

    ", - "SpotFleetLaunchSpecification$SecurityGroups": "

    One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.

    " - } - }, - "GroupIds": { - "base": null, - "refs": { - "DescribeSecurityGroupReferencesRequest$GroupId": "

    One or more security group IDs in your account.

    " - } - }, - "GroupNameStringList": { - "base": null, - "refs": { - "DescribeSecurityGroupsRequest$GroupNames": "

    [EC2-Classic and default VPC only] One or more security group names. You can specify either the security group name or the security group ID. For security groups in a nondefault VPC, use the group-name filter to describe security groups by name.

    Default: Describes all your security groups.

    ", - "ModifySnapshotAttributeRequest$GroupNames": "

    The group to modify for the snapshot.

    " - } - }, - "HistoryRecord": { - "base": "

    Describes an event in the history of the Spot fleet request.

    ", - "refs": { - "HistoryRecords$member": null - } - }, - "HistoryRecords": { - "base": null, - "refs": { - "DescribeSpotFleetRequestHistoryResponse$HistoryRecords": "

    Information about the events in the history of the Spot fleet request.

    " - } - }, - "Host": { - "base": "

    Describes the properties of the Dedicated host.

    ", - "refs": { - "HostList$member": null - } - }, - "HostInstance": { - "base": "

    Describes an instance running on a Dedicated host.

    ", - "refs": { - "HostInstanceList$member": null - } - }, - "HostInstanceList": { - "base": null, - "refs": { - "Host$Instances": "

    The IDs and instance type that are currently running on the Dedicated host.

    " - } - }, - "HostList": { - "base": null, - "refs": { - "DescribeHostsResult$Hosts": "

    Information about the Dedicated hosts.

    " - } - }, - "HostProperties": { - "base": "

    Describes properties of a Dedicated host.

    ", - "refs": { - "Host$HostProperties": "

    The hardware specifications of the Dedicated host.

    " - } - }, - "HostTenancy": { - "base": null, - "refs": { - "ModifyInstancePlacementRequest$Tenancy": "

    The tenancy of the instance that you are modifying.

    " - } - }, - "HypervisorType": { - "base": null, - "refs": { - "Image$Hypervisor": "

    The hypervisor type of the image.

    ", - "Instance$Hypervisor": "

    The hypervisor type of the instance.

    " - } - }, - "IamInstanceProfile": { - "base": "

    Describes an IAM instance profile.

    ", - "refs": { - "Instance$IamInstanceProfile": "

    The IAM instance profile associated with the instance, if applicable.

    " - } - }, - "IamInstanceProfileSpecification": { - "base": "

    Describes an IAM instance profile.

    ", - "refs": { - "LaunchSpecification$IamInstanceProfile": "

    The IAM instance profile.

    ", - "RequestSpotLaunchSpecification$IamInstanceProfile": "

    The IAM instance profile.

    ", - "RunInstancesRequest$IamInstanceProfile": "

    The IAM instance profile.

    ", - "SpotFleetLaunchSpecification$IamInstanceProfile": "

    The IAM instance profile.

    " - } - }, - "IcmpTypeCode": { - "base": "

    Describes the ICMP type and code.

    ", - "refs": { - "CreateNetworkAclEntryRequest$IcmpTypeCode": "

    ICMP protocol: The ICMP type and code. Required if specifying ICMP for the protocol.

    ", - "NetworkAclEntry$IcmpTypeCode": "

    ICMP protocol: The ICMP type and code.

    ", - "ReplaceNetworkAclEntryRequest$IcmpTypeCode": "

    ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for the protocol.

    " - } - }, - "IdFormat": { - "base": "

    Describes the ID format for a resource.

    ", - "refs": { - "IdFormatList$member": null - } - }, - "IdFormatList": { - "base": null, - "refs": { - "DescribeIdFormatResult$Statuses": "

    Information about the ID format for the resource.

    " - } - }, - "Image": { - "base": "

    Describes an image.

    ", - "refs": { - "ImageList$member": null - } - }, - "ImageAttribute": { - "base": "

    Describes an image attribute.

    ", - "refs": { - } - }, - "ImageAttributeName": { - "base": null, - "refs": { - "DescribeImageAttributeRequest$Attribute": "

    The AMI attribute.

    Note: Depending on your account privileges, the blockDeviceMapping attribute may return a Client.AuthFailure error. If this happens, use DescribeImages to get information about the block device mapping for the AMI.

    " - } - }, - "ImageDiskContainer": { - "base": "

    Describes the disk container object for an import image task.

    ", - "refs": { - "ImageDiskContainerList$member": null - } - }, - "ImageDiskContainerList": { - "base": null, - "refs": { - "ImportImageRequest$DiskContainers": "

    Information about the disk containers.

    " - } - }, - "ImageIdStringList": { - "base": null, - "refs": { - "DescribeImagesRequest$ImageIds": "

    One or more image IDs.

    Default: Describes all images available to you.

    " - } - }, - "ImageList": { - "base": null, - "refs": { - "DescribeImagesResult$Images": "

    Information about one or more images.

    " - } - }, - "ImageState": { - "base": null, - "refs": { - "Image$State": "

    The current state of the AMI. If the state is available, the image is successfully registered and can be used to launch an instance.

    " - } - }, - "ImageTypeValues": { - "base": null, - "refs": { - "Image$ImageType": "

    The type of image.

    " - } - }, - "ImportImageRequest": { - "base": "

    Contains the parameters for ImportImage.

    ", - "refs": { - } - }, - "ImportImageResult": { - "base": "

    Contains the output for ImportImage.

    ", - "refs": { - } - }, - "ImportImageTask": { - "base": "

    Describes an import image task.

    ", - "refs": { - "ImportImageTaskList$member": null - } - }, - "ImportImageTaskList": { - "base": null, - "refs": { - "DescribeImportImageTasksResult$ImportImageTasks": "

    A list of zero or more import image tasks that are currently active or were completed or canceled in the previous 7 days.

    " - } - }, - "ImportInstanceLaunchSpecification": { - "base": "

    Describes the launch specification for VM import.

    ", - "refs": { - "ImportInstanceRequest$LaunchSpecification": "

    The launch specification.

    " - } - }, - "ImportInstanceRequest": { - "base": "

    Contains the parameters for ImportInstance.

    ", - "refs": { - } - }, - "ImportInstanceResult": { - "base": "

    Contains the output for ImportInstance.

    ", - "refs": { - } - }, - "ImportInstanceTaskDetails": { - "base": "

    Describes an import instance task.

    ", - "refs": { - "ConversionTask$ImportInstance": "

    If the task is for importing an instance, this contains information about the import instance task.

    " - } - }, - "ImportInstanceVolumeDetailItem": { - "base": "

    Describes an import volume task.

    ", - "refs": { - "ImportInstanceVolumeDetailSet$member": null - } - }, - "ImportInstanceVolumeDetailSet": { - "base": null, - "refs": { - "ImportInstanceTaskDetails$Volumes": "

    One or more volumes.

    " - } - }, - "ImportKeyPairRequest": { - "base": "

    Contains the parameters for ImportKeyPair.

    ", - "refs": { - } - }, - "ImportKeyPairResult": { - "base": "

    Contains the output of ImportKeyPair.

    ", - "refs": { - } - }, - "ImportSnapshotRequest": { - "base": "

    Contains the parameters for ImportSnapshot.

    ", - "refs": { - } - }, - "ImportSnapshotResult": { - "base": "

    Contains the output for ImportSnapshot.

    ", - "refs": { - } - }, - "ImportSnapshotTask": { - "base": "

    Describes an import snapshot task.

    ", - "refs": { - "ImportSnapshotTaskList$member": null - } - }, - "ImportSnapshotTaskList": { - "base": null, - "refs": { - "DescribeImportSnapshotTasksResult$ImportSnapshotTasks": "

    A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.

    " - } - }, - "ImportTaskIdList": { - "base": null, - "refs": { - "DescribeImportImageTasksRequest$ImportTaskIds": "

    A list of import image task IDs.

    ", - "DescribeImportSnapshotTasksRequest$ImportTaskIds": "

    A list of import snapshot task IDs.

    " - } - }, - "ImportVolumeRequest": { - "base": "

    Contains the parameters for ImportVolume.

    ", - "refs": { - } - }, - "ImportVolumeResult": { - "base": "

    Contains the output for ImportVolume.

    ", - "refs": { - } - }, - "ImportVolumeTaskDetails": { - "base": "

    Describes an import volume task.

    ", - "refs": { - "ConversionTask$ImportVolume": "

    If the task is for importing a volume, this contains information about the import volume task.

    " - } - }, - "Instance": { - "base": "

    Describes an instance.

    ", - "refs": { - "InstanceList$member": null - } - }, - "InstanceAttribute": { - "base": "

    Describes an instance attribute.

    ", - "refs": { - } - }, - "InstanceAttributeName": { - "base": null, - "refs": { - "DescribeInstanceAttributeRequest$Attribute": "

    The instance attribute.

    ", - "ModifyInstanceAttributeRequest$Attribute": "

    The name of the attribute.

    ", - "ResetInstanceAttributeRequest$Attribute": "

    The attribute to reset.

    You can only reset the following attributes: kernel | ramdisk | sourceDestCheck. To change an instance attribute, use ModifyInstanceAttribute.

    " - } - }, - "InstanceBlockDeviceMapping": { - "base": "

    Describes a block device mapping.

    ", - "refs": { - "InstanceBlockDeviceMappingList$member": null - } - }, - "InstanceBlockDeviceMappingList": { - "base": null, - "refs": { - "Instance$BlockDeviceMappings": "

    Any block device mapping entries for the instance.

    ", - "InstanceAttribute$BlockDeviceMappings": "

    The block device mapping of the instance.

    " - } - }, - "InstanceBlockDeviceMappingSpecification": { - "base": "

    Describes a block device mapping entry.

    ", - "refs": { - "InstanceBlockDeviceMappingSpecificationList$member": null - } - }, - "InstanceBlockDeviceMappingSpecificationList": { - "base": null, - "refs": { - "ModifyInstanceAttributeRequest$BlockDeviceMappings": "

    Modifies the DeleteOnTermination attribute for volumes that are currently attached. The volume must be owned by the caller. If no value is specified for DeleteOnTermination, the default is true and the volume is deleted when the instance is terminated.

    To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.

    " - } - }, - "InstanceCapacity": { - "base": "

    Information about the instance type that the Dedicated host supports.

    ", - "refs": { - "AvailableInstanceCapacityList$member": null - } - }, - "InstanceCount": { - "base": "

    Describes a Reserved Instance listing state.

    ", - "refs": { - "InstanceCountList$member": null - } - }, - "InstanceCountList": { - "base": null, - "refs": { - "ReservedInstancesListing$InstanceCounts": "

    The number of instances in this state.

    " - } - }, - "InstanceExportDetails": { - "base": "

    Describes an instance to export.

    ", - "refs": { - "ExportTask$InstanceExportDetails": "

    Information about the instance to export.

    " - } - }, - "InstanceIdSet": { - "base": null, - "refs": { - "RunScheduledInstancesResult$InstanceIdSet": "

    The IDs of the newly launched instances.

    " - } - }, - "InstanceIdStringList": { - "base": null, - "refs": { - "DescribeClassicLinkInstancesRequest$InstanceIds": "

    One or more instance IDs. Must be instances linked to a VPC through ClassicLink.

    ", - "DescribeInstanceStatusRequest$InstanceIds": "

    One or more instance IDs.

    Default: Describes all your instances.

    Constraints: Maximum 100 explicitly specified instance IDs.

    ", - "DescribeInstancesRequest$InstanceIds": "

    One or more instance IDs.

    Default: Describes all your instances.

    ", - "MonitorInstancesRequest$InstanceIds": "

    One or more instance IDs.

    ", - "RebootInstancesRequest$InstanceIds": "

    One or more instance IDs.

    ", - "ReportInstanceStatusRequest$Instances": "

    One or more instances.

    ", - "StartInstancesRequest$InstanceIds": "

    One or more instance IDs.

    ", - "StopInstancesRequest$InstanceIds": "

    One or more instance IDs.

    ", - "TerminateInstancesRequest$InstanceIds": "

    One or more instance IDs.

    ", - "UnmonitorInstancesRequest$InstanceIds": "

    One or more instance IDs.

    " - } - }, - "InstanceLifecycleType": { - "base": null, - "refs": { - "Instance$InstanceLifecycle": "

    Indicates whether this is a Spot instance or a Scheduled Instance.

    " - } - }, - "InstanceList": { - "base": null, - "refs": { - "Reservation$Instances": "

    One or more instances.

    " - } - }, - "InstanceMonitoring": { - "base": "

    Describes the monitoring information of the instance.

    ", - "refs": { - "InstanceMonitoringList$member": null - } - }, - "InstanceMonitoringList": { - "base": null, - "refs": { - "MonitorInstancesResult$InstanceMonitorings": "

    Monitoring information for one or more instances.

    ", - "UnmonitorInstancesResult$InstanceMonitorings": "

    Monitoring information for one or more instances.

    " - } - }, - "InstanceNetworkInterface": { - "base": "

    Describes a network interface.

    ", - "refs": { - "InstanceNetworkInterfaceList$member": null - } - }, - "InstanceNetworkInterfaceAssociation": { - "base": "

    Describes association information for an Elastic IP address.

    ", - "refs": { - "InstanceNetworkInterface$Association": "

    The association information for an Elastic IP associated with the network interface.

    ", - "InstancePrivateIpAddress$Association": "

    The association information for an Elastic IP address for the network interface.

    " - } - }, - "InstanceNetworkInterfaceAttachment": { - "base": "

    Describes a network interface attachment.

    ", - "refs": { - "InstanceNetworkInterface$Attachment": "

    The network interface attachment.

    " - } - }, - "InstanceNetworkInterfaceList": { - "base": null, - "refs": { - "Instance$NetworkInterfaces": "

    [EC2-VPC] One or more network interfaces for the instance.

    " - } - }, - "InstanceNetworkInterfaceSpecification": { - "base": "

    Describes a network interface.

    ", - "refs": { - "InstanceNetworkInterfaceSpecificationList$member": null - } - }, - "InstanceNetworkInterfaceSpecificationList": { - "base": null, - "refs": { - "LaunchSpecification$NetworkInterfaces": "

    One or more network interfaces.

    ", - "RequestSpotLaunchSpecification$NetworkInterfaces": "

    One or more network interfaces.

    ", - "RunInstancesRequest$NetworkInterfaces": "

    One or more network interfaces.

    ", - "SpotFleetLaunchSpecification$NetworkInterfaces": "

    One or more network interfaces.

    " - } - }, - "InstancePrivateIpAddress": { - "base": "

    Describes a private IP address.

    ", - "refs": { - "InstancePrivateIpAddressList$member": null - } - }, - "InstancePrivateIpAddressList": { - "base": null, - "refs": { - "InstanceNetworkInterface$PrivateIpAddresses": "

    The private IP addresses associated with the network interface.

    " - } - }, - "InstanceState": { - "base": "

    Describes the current state of the instance.

    ", - "refs": { - "Instance$State": "

    The current state of the instance.

    ", - "InstanceStateChange$CurrentState": "

    The current state of the instance.

    ", - "InstanceStateChange$PreviousState": "

    The previous state of the instance.

    ", - "InstanceStatus$InstanceState": "

    The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.

    " - } - }, - "InstanceStateChange": { - "base": "

    Describes an instance state change.

    ", - "refs": { - "InstanceStateChangeList$member": null - } - }, - "InstanceStateChangeList": { - "base": null, - "refs": { - "StartInstancesResult$StartingInstances": "

    Information about one or more started instances.

    ", - "StopInstancesResult$StoppingInstances": "

    Information about one or more stopped instances.

    ", - "TerminateInstancesResult$TerminatingInstances": "

    Information about one or more terminated instances.

    " - } - }, - "InstanceStateName": { - "base": null, - "refs": { - "InstanceState$Name": "

    The current state of the instance.

    " - } - }, - "InstanceStatus": { - "base": "

    Describes the status of an instance.

    ", - "refs": { - "InstanceStatusList$member": null - } - }, - "InstanceStatusDetails": { - "base": "

    Describes the instance status.

    ", - "refs": { - "InstanceStatusDetailsList$member": null - } - }, - "InstanceStatusDetailsList": { - "base": null, - "refs": { - "InstanceStatusSummary$Details": "

    The system instance health or application instance health.

    " - } - }, - "InstanceStatusEvent": { - "base": "

    Describes a scheduled event for an instance.

    ", - "refs": { - "InstanceStatusEventList$member": null - } - }, - "InstanceStatusEventList": { - "base": null, - "refs": { - "InstanceStatus$Events": "

    Any scheduled events associated with the instance.

    " - } - }, - "InstanceStatusList": { - "base": null, - "refs": { - "DescribeInstanceStatusResult$InstanceStatuses": "

    One or more instance status descriptions.

    " - } - }, - "InstanceStatusSummary": { - "base": "

    Describes the status of an instance.

    ", - "refs": { - "InstanceStatus$SystemStatus": "

    Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

    ", - "InstanceStatus$InstanceStatus": "

    Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

    " - } - }, - "InstanceType": { - "base": null, - "refs": { - "DescribeReservedInstancesOfferingsRequest$InstanceType": "

    The instance type that the reservation will cover (for example, m1.small). For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

    ", - "ImportInstanceLaunchSpecification$InstanceType": "

    The instance type. For more information about the instance types that you can import, see Before You Get Started in the Amazon Elastic Compute Cloud User Guide.

    ", - "Instance$InstanceType": "

    The instance type.

    ", - "InstanceTypeList$member": null, - "LaunchSpecification$InstanceType": "

    The instance type.

    ", - "RequestSpotLaunchSpecification$InstanceType": "

    The instance type.

    ", - "ReservedInstances$InstanceType": "

    The instance type on which the Reserved Instance can be used.

    ", - "ReservedInstancesConfiguration$InstanceType": "

    The instance type for the modified Reserved Instances.

    ", - "ReservedInstancesOffering$InstanceType": "

    The instance type on which the Reserved Instance can be used.

    ", - "RunInstancesRequest$InstanceType": "

    The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

    Default: m1.small

    ", - "SpotFleetLaunchSpecification$InstanceType": "

    The instance type.

    ", - "SpotPrice$InstanceType": "

    The instance type.

    " - } - }, - "InstanceTypeList": { - "base": null, - "refs": { - "DescribeSpotPriceHistoryRequest$InstanceTypes": "

    Filters the results by the specified instance types.

    " - } - }, - "Integer": { - "base": null, - "refs": { - "AllocateHostsRequest$Quantity": "

    The number of Dedicated hosts you want to allocate to your account with these parameters.

    ", - "AssignPrivateIpAddressesRequest$SecondaryPrivateIpAddressCount": "

    The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.

    ", - "AttachNetworkInterfaceRequest$DeviceIndex": "

    The index of the device for the network interface attachment.

    ", - "AuthorizeSecurityGroupEgressRequest$FromPort": "

    The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

    ", - "AuthorizeSecurityGroupEgressRequest$ToPort": "

    The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

    ", - "AuthorizeSecurityGroupIngressRequest$FromPort": "

    The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all ICMP types.

    ", - "AuthorizeSecurityGroupIngressRequest$ToPort": "

    The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.

    ", - "AvailableCapacity$AvailableVCpus": "

    The number of vCPUs available on the Dedicated host.

    ", - "CreateCustomerGatewayRequest$BgpAsn": "

    For devices that support BGP, the customer gateway's BGP ASN.

    Default: 65000

    ", - "CreateNetworkAclEntryRequest$RuleNumber": "

    The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.

    Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is reserved for internal use.

    ", - "CreateNetworkInterfaceRequest$SecondaryPrivateIpAddressCount": "

    The number of secondary private IP addresses to assign to a network interface. When you specify a number of secondary IP addresses, Amazon EC2 selects these IP addresses within the subnet range. You can't specify this option and specify more than one private IP address using privateIpAddresses.

    The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

    ", - "CreateReservedInstancesListingRequest$InstanceCount": "

    The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.

    ", - "CreateVolumeRequest$Size": "

    The size of the volume, in GiBs.

    Constraints: 1-16384 for gp2, 4-16384 for io1, 500-16384 for st1, 500-16384 for sc1, and 1-1024 for standard. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.

    Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

    ", - "CreateVolumeRequest$Iops": "

    Only valid for Provisioned IOPS SSD volumes. The number of I/O operations per second (IOPS) to provision for the volume, with a maximum ratio of 30 IOPS/GiB.

    Constraint: Range is 100 to 20000 for Provisioned IOPS SSD volumes

    ", - "DeleteNetworkAclEntryRequest$RuleNumber": "

    The rule number of the entry to delete.

    ", - "DescribeClassicLinkInstancesRequest$MaxResults": "

    The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. You cannot specify this parameter and the instance IDs parameter in the same request.

    Constraint: If the value is greater than 1000, we return only 1000 items.

    ", - "DescribeFlowLogsRequest$MaxResults": "

    The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. You cannot specify this parameter and the flow log IDs parameter in the same request.

    ", - "DescribeHostsRequest$MaxResults": "

    The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500; if maxResults is given a larger value than 500, you will receive an error. You cannot specify this parameter and the host IDs parameter in the same request.

    ", - "DescribeImportImageTasksRequest$MaxResults": "

    The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

    ", - "DescribeImportSnapshotTasksRequest$MaxResults": "

    The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

    ", - "DescribeInstanceStatusRequest$MaxResults": "

    The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter in the same call.

    ", - "DescribeInstancesRequest$MaxResults": "

    The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter or tag filters in the same call.

    ", - "DescribeMovingAddressesRequest$MaxResults": "

    The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value outside of this range, an error is returned.

    Default: If no value is provided, the default is 1000.

    ", - "DescribeNatGatewaysRequest$MaxResults": "

    The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

    Constraint: If the value specified is greater than 1000, we return only 1000 items.

    ", - "DescribePrefixListsRequest$MaxResults": "

    The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

    Constraint: If the value specified is greater than 1000, we return only 1000 items.

    ", - "DescribeReservedInstancesOfferingsRequest$MaxResults": "

    The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. The maximum is 100.

    Default: 100

    ", - "DescribeReservedInstancesOfferingsRequest$MaxInstanceCount": "

    The maximum number of instances to filter when searching for offerings.

    Default: 20

    ", - "DescribeScheduledInstanceAvailabilityRequest$MinSlotDurationInHours": "

    The minimum available duration, in hours. The minimum required duration is 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

    ", - "DescribeScheduledInstanceAvailabilityRequest$MaxSlotDurationInHours": "

    The maximum available duration, in hours. This value must be greater than MinSlotDurationInHours and less than 1,720.

    ", - "DescribeScheduledInstanceAvailabilityRequest$MaxResults": "

    The maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 300. To retrieve the remaining results, make another call with the returned NextToken value.

    ", - "DescribeScheduledInstancesRequest$MaxResults": "

    The maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 100. To retrieve the remaining results, make another call with the returned NextToken value.

    ", - "DescribeSnapshotsRequest$MaxResults": "

    The maximum number of snapshot results returned by DescribeSnapshots in paginated output. When this parameter is used, DescribeSnapshots only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeSnapshots request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. If this parameter is not used, then DescribeSnapshots returns all results. You cannot specify this parameter and the snapshot IDs parameter in the same request.

    ", - "DescribeSpotFleetInstancesRequest$MaxResults": "

    The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

    ", - "DescribeSpotFleetRequestHistoryRequest$MaxResults": "

    The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

    ", - "DescribeSpotFleetRequestsRequest$MaxResults": "

    The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

    ", - "DescribeSpotPriceHistoryRequest$MaxResults": "

    The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken value.

    ", - "DescribeTagsRequest$MaxResults": "

    The maximum number of results to return in a single call. This value can be between 5 and 1000. To retrieve the remaining results, make another call with the returned NextToken value.

    ", - "DescribeVolumeStatusRequest$MaxResults": "

    The maximum number of volume results returned by DescribeVolumeStatus in paginated output. When this parameter is used, the request only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. If this parameter is not used, then DescribeVolumeStatus returns all results. You cannot specify this parameter and the volume IDs parameter in the same request.

    ", - "DescribeVolumesRequest$MaxResults": "

    The maximum number of volume results returned by DescribeVolumes in paginated output. When this parameter is used, DescribeVolumes only returns MaxResults results in a single page along with a NextToken response element. The remaining results of the initial request can be seen by sending another DescribeVolumes request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. If this parameter is not used, then DescribeVolumes returns all results. You cannot specify this parameter and the volume IDs parameter in the same request.

    ", - "DescribeVpcEndpointServicesRequest$MaxResults": "

    The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

    Constraint: If the value is greater than 1000, we return only 1000 items.

    ", - "DescribeVpcEndpointsRequest$MaxResults": "

    The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

    Constraint: If the value is greater than 1000, we return only 1000 items.

    ", - "EbsBlockDevice$VolumeSize": "

    The size of the volume, in GiB.

    Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.

    Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

    ", - "EbsBlockDevice$Iops": "

    The number of I/O operations per second (IOPS) that the volume supports. For io1, this represents the number of IOPS that are provisioned for the volume. For gp2, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose SSD baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

    Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for gp2 volumes.

    Condition: This parameter is required for requests to create io1 volumes; it is not used in requests to create gp2, st1, sc1, or standard volumes.

    ", - "HostProperties$Sockets": "

    The number of sockets on the Dedicated host.

    ", - "HostProperties$Cores": "

    The number of cores on the Dedicated host.

    ", - "HostProperties$TotalVCpus": "

    The number of vCPUs on the Dedicated host.

    ", - "IcmpTypeCode$Type": "

    The ICMP code. A value of -1 means all codes for the specified ICMP type.

    ", - "IcmpTypeCode$Code": "

    The ICMP type. A value of -1 means all types.

    ", - "Instance$AmiLaunchIndex": "

    The AMI launch index, which can be used to find this instance in the launch group.

    ", - "InstanceCapacity$AvailableCapacity": "

    The number of instances that can still be launched onto the Dedicated host.

    ", - "InstanceCapacity$TotalCapacity": "

    The total number of instances that can be launched onto the Dedicated host.

    ", - "InstanceCount$InstanceCount": "

    The number of listed Reserved Instances in the state specified by the state.

    ", - "InstanceNetworkInterfaceAttachment$DeviceIndex": "

    The index of the device on the instance for the network interface attachment.

    ", - "InstanceNetworkInterfaceSpecification$DeviceIndex": "

    The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.

    ", - "InstanceNetworkInterfaceSpecification$SecondaryPrivateIpAddressCount": "

    The number of secondary private IP addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option.

    ", - "InstanceState$Code": "

    The low byte represents the state. The high byte is an opaque internal value and should be ignored.

    • 0 : pending

    • 16 : running

    • 32 : shutting-down

    • 48 : terminated

    • 64 : stopping

    • 80 : stopped

    ", - "IpPermission$FromPort": "

    The start of port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.

    ", - "IpPermission$ToPort": "

    The end of port range for the TCP and UDP protocols, or an ICMP code. A value of -1 indicates all ICMP codes for the specified ICMP type.

    ", - "ModifySpotFleetRequestRequest$TargetCapacity": "

    The size of the fleet.

    ", - "NetworkAclEntry$RuleNumber": "

    The rule number for the entry. ACL entries are processed in ascending order by rule number.

    ", - "NetworkInterfaceAttachment$DeviceIndex": "

    The device index of the network interface attachment on the instance.

    ", - "OccurrenceDayRequestSet$member": null, - "OccurrenceDaySet$member": null, - "PortRange$From": "

    The first port in the range.

    ", - "PortRange$To": "

    The last port in the range.

    ", - "PricingDetail$Count": "

    The number of reservations available for the price.

    ", - "PurchaseRequest$InstanceCount": "

    The number of instances.

    ", - "PurchaseReservedInstancesOfferingRequest$InstanceCount": "

    The number of Reserved Instances to purchase.

    ", - "ReplaceNetworkAclEntryRequest$RuleNumber": "

    The rule number of the entry to replace.

    ", - "RequestSpotInstancesRequest$InstanceCount": "

    The maximum number of Spot instances to launch.

    Default: 1

    ", - "RequestSpotInstancesRequest$BlockDurationMinutes": "

    The required duration for the Spot instances (also known as Spot blocks), in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).

    The duration period starts as soon as your Spot instance receives its instance ID. At the end of the duration period, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.

    Note that you can't specify an Availability Zone group or a launch group if you specify a duration.

    ", - "ReservedInstances$InstanceCount": "

    The number of reservations purchased.

    ", - "ReservedInstancesConfiguration$InstanceCount": "

    The number of modified Reserved Instances.

    ", - "RevokeSecurityGroupEgressRequest$FromPort": "

    The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

    ", - "RevokeSecurityGroupEgressRequest$ToPort": "

    The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

    ", - "RevokeSecurityGroupIngressRequest$FromPort": "

    The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all ICMP types.

    ", - "RevokeSecurityGroupIngressRequest$ToPort": "

    The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.

    ", - "RunInstancesRequest$MinCount": "

    The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.

    Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.

    ", - "RunInstancesRequest$MaxCount": "

    The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount.

    Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 FAQ.

    ", - "RunScheduledInstancesRequest$InstanceCount": "

    The number of instances.

    Default: 1

    ", - "ScheduledInstance$SlotDurationInHours": "

    The number of hours in the schedule.

    ", - "ScheduledInstance$TotalScheduledInstanceHours": "

    The total number of hours for a single instance for the entire term.

    ", - "ScheduledInstance$InstanceCount": "

    The number of instances.

    ", - "ScheduledInstanceAvailability$SlotDurationInHours": "

    The number of hours in the schedule.

    ", - "ScheduledInstanceAvailability$TotalScheduledInstanceHours": "

    The total number of hours for a single instance for the entire term.

    ", - "ScheduledInstanceAvailability$AvailableInstanceCount": "

    The number of available instances.

    ", - "ScheduledInstanceAvailability$MinTermDurationInDays": "

    The minimum term. The only possible value is 365 days.

    ", - "ScheduledInstanceAvailability$MaxTermDurationInDays": "

    The maximum term. The only possible value is 365 days.

    ", - "ScheduledInstanceRecurrence$Interval": "

    The interval quantity. The interval unit depends on the value of frequency. For example, every 2 weeks or every 2 months.

    ", - "ScheduledInstanceRecurrenceRequest$Interval": "

    The interval quantity. The interval unit depends on the value of Frequency. For example, every 2 weeks or every 2 months.

    ", - "ScheduledInstancesEbs$VolumeSize": "

    The size of the volume, in GiB.

    Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

    ", - "ScheduledInstancesEbs$Iops": "

    The number of I/O operations per second (IOPS) that the volume supports. For io1 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information about gp2 baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

    Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for gp2 volumes.

    Condition: This parameter is required for requests to create io1volumes; it is not used in requests to create gp2, st1, sc1, or standard volumes.

    ", - "ScheduledInstancesNetworkInterface$DeviceIndex": "

    The index of the device for the network interface attachment.

    ", - "ScheduledInstancesNetworkInterface$SecondaryPrivateIpAddressCount": "

    The number of secondary private IP addresses.

    ", - "Snapshot$VolumeSize": "

    The size of the volume, in GiB.

    ", - "SpotFleetRequestConfigData$TargetCapacity": "

    The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O.

    ", - "SpotInstanceRequest$BlockDurationMinutes": "

    The duration for the Spot instance, in minutes.

    ", - "StaleIpPermission$FromPort": "

    The start of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.

    ", - "StaleIpPermission$ToPort": "

    The end of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.

    ", - "Subnet$AvailableIpAddressCount": "

    The number of unused IP addresses in the subnet. Note that the IP addresses for any stopped instances are considered unavailable.

    ", - "VgwTelemetry$AcceptedRouteCount": "

    The number of accepted routes.

    ", - "Volume$Size": "

    The size of the volume, in GiBs.

    ", - "Volume$Iops": "

    The number of I/O operations per second (IOPS) that the volume supports. For Provisioned IOPS SSD volumes, this represents the number of IOPS that are provisioned for the volume. For General Purpose SSD volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. For more information on General Purpose SSD baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

    Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for gp2 volumes.

    Condition: This parameter is required for requests to create io1 volumes; it is not used in requests to create gp2, st1, sc1, or standard volumes.

    " - } - }, - "InternetGateway": { - "base": "

    Describes an Internet gateway.

    ", - "refs": { - "CreateInternetGatewayResult$InternetGateway": "

    Information about the Internet gateway.

    ", - "InternetGatewayList$member": null - } - }, - "InternetGatewayAttachment": { - "base": "

    Describes the attachment of a VPC to an Internet gateway.

    ", - "refs": { - "InternetGatewayAttachmentList$member": null - } - }, - "InternetGatewayAttachmentList": { - "base": null, - "refs": { - "InternetGateway$Attachments": "

    Any VPCs attached to the Internet gateway.

    " - } - }, - "InternetGatewayList": { - "base": null, - "refs": { - "DescribeInternetGatewaysResult$InternetGateways": "

    Information about one or more Internet gateways.

    " - } - }, - "IpPermission": { - "base": "

    Describes a security group rule.

    ", - "refs": { - "IpPermissionList$member": null - } - }, - "IpPermissionList": { - "base": null, - "refs": { - "AuthorizeSecurityGroupEgressRequest$IpPermissions": "

    A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.

    ", - "AuthorizeSecurityGroupIngressRequest$IpPermissions": "

    A set of IP permissions. Can be used to specify multiple rules in a single command.

    ", - "RevokeSecurityGroupEgressRequest$IpPermissions": "

    A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.

    ", - "RevokeSecurityGroupIngressRequest$IpPermissions": "

    A set of IP permissions. You can't specify a source security group and a CIDR IP address range.

    ", - "SecurityGroup$IpPermissions": "

    One or more inbound rules associated with the security group.

    ", - "SecurityGroup$IpPermissionsEgress": "

    [EC2-VPC] One or more outbound rules associated with the security group.

    " - } - }, - "IpRange": { - "base": "

    Describes an IP range.

    ", - "refs": { - "IpRangeList$member": null - } - }, - "IpRangeList": { - "base": null, - "refs": { - "IpPermission$IpRanges": "

    One or more IP ranges.

    " - } - }, - "IpRanges": { - "base": null, - "refs": { - "StaleIpPermission$IpRanges": "

    One or more IP ranges. Not applicable for stale security group rules.

    " - } - }, - "KeyNameStringList": { - "base": null, - "refs": { - "DescribeKeyPairsRequest$KeyNames": "

    One or more key pair names.

    Default: Describes all your key pairs.

    " - } - }, - "KeyPair": { - "base": "

    Describes a key pair.

    ", - "refs": { - } - }, - "KeyPairInfo": { - "base": "

    Describes a key pair.

    ", - "refs": { - "KeyPairList$member": null - } - }, - "KeyPairList": { - "base": null, - "refs": { - "DescribeKeyPairsResult$KeyPairs": "

    Information about one or more key pairs.

    " - } - }, - "LaunchPermission": { - "base": "

    Describes a launch permission.

    ", - "refs": { - "LaunchPermissionList$member": null - } - }, - "LaunchPermissionList": { - "base": null, - "refs": { - "ImageAttribute$LaunchPermissions": "

    One or more launch permissions.

    ", - "LaunchPermissionModifications$Add": "

    The AWS account ID to add to the list of launch permissions for the AMI.

    ", - "LaunchPermissionModifications$Remove": "

    The AWS account ID to remove from the list of launch permissions for the AMI.

    " - } - }, - "LaunchPermissionModifications": { - "base": "

    Describes a launch permission modification.

    ", - "refs": { - "ModifyImageAttributeRequest$LaunchPermission": "

    A launch permission modification.

    " - } - }, - "LaunchSpecification": { - "base": "

    Describes the launch specification for an instance.

    ", - "refs": { - "SpotInstanceRequest$LaunchSpecification": "

    Additional information for launching instances.

    " - } - }, - "LaunchSpecsList": { - "base": null, - "refs": { - "SpotFleetRequestConfigData$LaunchSpecifications": "

    Information about the launch specifications for the Spot fleet request.

    " - } - }, - "ListingState": { - "base": null, - "refs": { - "InstanceCount$State": "

    The states of the listed Reserved Instances.

    " - } - }, - "ListingStatus": { - "base": null, - "refs": { - "ReservedInstancesListing$Status": "

    The status of the Reserved Instance listing.

    " - } - }, - "Long": { - "base": null, - "refs": { - "DescribeReservedInstancesOfferingsRequest$MinDuration": "

    The minimum duration (in seconds) to filter when searching for offerings.

    Default: 2592000 (1 month)

    ", - "DescribeReservedInstancesOfferingsRequest$MaxDuration": "

    The maximum duration (in seconds) to filter when searching for offerings.

    Default: 94608000 (3 years)

    ", - "DiskImageDescription$Size": "

    The size of the disk image, in GiB.

    ", - "DiskImageDetail$Bytes": "

    The size of the disk image, in GiB.

    ", - "DiskImageVolumeDescription$Size": "

    The size of the volume, in GiB.

    ", - "ImportInstanceVolumeDetailItem$BytesConverted": "

    The number of bytes converted so far.

    ", - "ImportVolumeTaskDetails$BytesConverted": "

    The number of bytes converted so far.

    ", - "PriceSchedule$Term": "

    The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

    ", - "PriceScheduleSpecification$Term": "

    The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

    ", - "ReservedInstances$Duration": "

    The duration of the Reserved Instance, in seconds.

    ", - "ReservedInstancesOffering$Duration": "

    The duration of the Reserved Instance, in seconds.

    ", - "VolumeDetail$Size": "

    The size of the volume, in GiB.

    " - } - }, - "MaxResults": { - "base": null, - "refs": { - "DescribeStaleSecurityGroupsRequest$MaxResults": "

    The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

    ", - "DescribeVpcClassicLinkDnsSupportRequest$MaxResults": "

    The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

    " - } - }, - "ModifyHostsRequest": { - "base": "

    Contains the parameters for ModifyHosts.

    ", - "refs": { - } - }, - "ModifyHostsResult": { - "base": "

    Contains the output of ModifyHosts.

    ", - "refs": { - } - }, - "ModifyIdFormatRequest": { - "base": "

    Contains the parameters of ModifyIdFormat.

    ", - "refs": { - } - }, - "ModifyImageAttributeRequest": { - "base": "

    Contains the parameters for ModifyImageAttribute.

    ", - "refs": { - } - }, - "ModifyInstanceAttributeRequest": { - "base": "

    Contains the parameters for ModifyInstanceAttribute.

    ", - "refs": { - } - }, - "ModifyInstancePlacementRequest": { - "base": "

    Contains the parameters for ModifyInstancePlacement.

    ", - "refs": { - } - }, - "ModifyInstancePlacementResult": { - "base": "

    Contains the output of ModifyInstancePlacement.

    ", - "refs": { - } - }, - "ModifyNetworkInterfaceAttributeRequest": { - "base": "

    Contains the parameters for ModifyNetworkInterfaceAttribute.

    ", - "refs": { - } - }, - "ModifyReservedInstancesRequest": { - "base": "

    Contains the parameters for ModifyReservedInstances.

    ", - "refs": { - } - }, - "ModifyReservedInstancesResult": { - "base": "

    Contains the output of ModifyReservedInstances.

    ", - "refs": { - } - }, - "ModifySnapshotAttributeRequest": { - "base": "

    Contains the parameters for ModifySnapshotAttribute.

    ", - "refs": { - } - }, - "ModifySpotFleetRequestRequest": { - "base": "

    Contains the parameters for ModifySpotFleetRequest.

    ", - "refs": { - } - }, - "ModifySpotFleetRequestResponse": { - "base": "

    Contains the output of ModifySpotFleetRequest.

    ", - "refs": { - } - }, - "ModifySubnetAttributeRequest": { - "base": "

    Contains the parameters for ModifySubnetAttribute.

    ", - "refs": { - } - }, - "ModifyVolumeAttributeRequest": { - "base": "

    Contains the parameters for ModifyVolumeAttribute.

    ", - "refs": { - } - }, - "ModifyVpcAttributeRequest": { - "base": "

    Contains the parameters for ModifyVpcAttribute.

    ", - "refs": { - } - }, - "ModifyVpcEndpointRequest": { - "base": "

    Contains the parameters for ModifyVpcEndpoint.

    ", - "refs": { - } - }, - "ModifyVpcEndpointResult": { - "base": "

    Contains the output of ModifyVpcEndpoint.

    ", - "refs": { - } - }, - "ModifyVpcPeeringConnectionOptionsRequest": { - "base": null, - "refs": { - } - }, - "ModifyVpcPeeringConnectionOptionsResult": { - "base": null, - "refs": { - } - }, - "MonitorInstancesRequest": { - "base": "

    Contains the parameters for MonitorInstances.

    ", - "refs": { - } - }, - "MonitorInstancesResult": { - "base": "

    Contains the output of MonitorInstances.

    ", - "refs": { - } - }, - "Monitoring": { - "base": "

    Describes the monitoring for the instance.

    ", - "refs": { - "Instance$Monitoring": "

    The monitoring information for the instance.

    ", - "InstanceMonitoring$Monitoring": "

    The monitoring information.

    " - } - }, - "MonitoringState": { - "base": null, - "refs": { - "Monitoring$State": "

    Indicates whether monitoring is enabled for the instance.

    " - } - }, - "MoveAddressToVpcRequest": { - "base": "

    Contains the parameters for MoveAddressToVpc.

    ", - "refs": { - } - }, - "MoveAddressToVpcResult": { - "base": "

    Contains the output of MoveAddressToVpc.

    ", - "refs": { - } - }, - "MoveStatus": { - "base": null, - "refs": { - "MovingAddressStatus$MoveStatus": "

    The status of the Elastic IP address that's being moved to the EC2-VPC platform, or restored to the EC2-Classic platform.

    " - } - }, - "MovingAddressStatus": { - "base": "

    Describes the status of a moving Elastic IP address.

    ", - "refs": { - "MovingAddressStatusSet$member": null - } - }, - "MovingAddressStatusSet": { - "base": null, - "refs": { - "DescribeMovingAddressesResult$MovingAddressStatuses": "

    The status for each Elastic IP address.

    " - } - }, - "NatGateway": { - "base": "

    Describes a NAT gateway.

    ", - "refs": { - "CreateNatGatewayResult$NatGateway": "

    Information about the NAT gateway.

    ", - "NatGatewayList$member": null - } - }, - "NatGatewayAddress": { - "base": "

    Describes the IP addresses and network interface associated with a NAT gateway.

    ", - "refs": { - "NatGatewayAddressList$member": null - } - }, - "NatGatewayAddressList": { - "base": null, - "refs": { - "NatGateway$NatGatewayAddresses": "

    Information about the IP addresses and network interface associated with the NAT gateway.

    " - } - }, - "NatGatewayList": { - "base": null, - "refs": { - "DescribeNatGatewaysResult$NatGateways": "

    Information about the NAT gateways.

    " - } - }, - "NatGatewayState": { - "base": null, - "refs": { - "NatGateway$State": "

    The state of the NAT gateway.

    • pending: The NAT gateway is being created and is not ready to process traffic.

    • failed: The NAT gateway could not be created. Check the failureCode and failureMessage fields for the reason.

    • available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway.

    • deleting: The NAT gateway is in the process of being terminated and may still be processing traffic.

    • deleted: The NAT gateway has been terminated and is no longer processing traffic.

    " - } - }, - "NetworkAcl": { - "base": "

    Describes a network ACL.

    ", - "refs": { - "CreateNetworkAclResult$NetworkAcl": "

    Information about the network ACL.

    ", - "NetworkAclList$member": null - } - }, - "NetworkAclAssociation": { - "base": "

    Describes an association between a network ACL and a subnet.

    ", - "refs": { - "NetworkAclAssociationList$member": null - } - }, - "NetworkAclAssociationList": { - "base": null, - "refs": { - "NetworkAcl$Associations": "

    Any associations between the network ACL and one or more subnets

    " - } - }, - "NetworkAclEntry": { - "base": "

    Describes an entry in a network ACL.

    ", - "refs": { - "NetworkAclEntryList$member": null - } - }, - "NetworkAclEntryList": { - "base": null, - "refs": { - "NetworkAcl$Entries": "

    One or more entries (rules) in the network ACL.

    " - } - }, - "NetworkAclList": { - "base": null, - "refs": { - "DescribeNetworkAclsResult$NetworkAcls": "

    Information about one or more network ACLs.

    " - } - }, - "NetworkInterface": { - "base": "

    Describes a network interface.

    ", - "refs": { - "CreateNetworkInterfaceResult$NetworkInterface": "

    Information about the network interface.

    ", - "NetworkInterfaceList$member": null - } - }, - "NetworkInterfaceAssociation": { - "base": "

    Describes association information for an Elastic IP address.

    ", - "refs": { - "NetworkInterface$Association": "

    The association information for an Elastic IP associated with the network interface.

    ", - "NetworkInterfacePrivateIpAddress$Association": "

    The association information for an Elastic IP address associated with the network interface.

    " - } - }, - "NetworkInterfaceAttachment": { - "base": "

    Describes a network interface attachment.

    ", - "refs": { - "DescribeNetworkInterfaceAttributeResult$Attachment": "

    The attachment (if any) of the network interface.

    ", - "NetworkInterface$Attachment": "

    The network interface attachment.

    " - } - }, - "NetworkInterfaceAttachmentChanges": { - "base": "

    Describes an attachment change.

    ", - "refs": { - "ModifyNetworkInterfaceAttributeRequest$Attachment": "

    Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.

    " - } - }, - "NetworkInterfaceAttribute": { - "base": null, - "refs": { - "DescribeNetworkInterfaceAttributeRequest$Attribute": "

    The attribute of the network interface.

    " - } - }, - "NetworkInterfaceIdList": { - "base": null, - "refs": { - "DescribeNetworkInterfacesRequest$NetworkInterfaceIds": "

    One or more network interface IDs.

    Default: Describes all your network interfaces.

    " - } - }, - "NetworkInterfaceList": { - "base": null, - "refs": { - "DescribeNetworkInterfacesResult$NetworkInterfaces": "

    Information about one or more network interfaces.

    " - } - }, - "NetworkInterfacePrivateIpAddress": { - "base": "

    Describes the private IP address of a network interface.

    ", - "refs": { - "NetworkInterfacePrivateIpAddressList$member": null - } - }, - "NetworkInterfacePrivateIpAddressList": { - "base": null, - "refs": { - "NetworkInterface$PrivateIpAddresses": "

    The private IP addresses associated with the network interface.

    " - } - }, - "NetworkInterfaceStatus": { - "base": null, - "refs": { - "InstanceNetworkInterface$Status": "

    The status of the network interface.

    ", - "NetworkInterface$Status": "

    The status of the network interface.

    " - } - }, - "NetworkInterfaceType": { - "base": null, - "refs": { - "NetworkInterface$InterfaceType": "

    The type of interface.

    " - } - }, - "NewDhcpConfiguration": { - "base": null, - "refs": { - "NewDhcpConfigurationList$member": null - } - }, - "NewDhcpConfigurationList": { - "base": null, - "refs": { - "CreateDhcpOptionsRequest$DhcpConfigurations": "

    A DHCP configuration option.

    " - } - }, - "NextToken": { - "base": null, - "refs": { - "DescribeStaleSecurityGroupsRequest$NextToken": "

    The token for the next set of items to return. (You received this token from a prior call.)

    ", - "DescribeVpcClassicLinkDnsSupportRequest$NextToken": "

    The token for the next set of items to return. (You received this token from a prior call.)

    ", - "DescribeVpcClassicLinkDnsSupportResult$NextToken": "

    The token to use when requesting the next set of items.

    " - } - }, - "OccurrenceDayRequestSet": { - "base": null, - "refs": { - "ScheduledInstanceRecurrenceRequest$OccurrenceDays": "

    The days. For a monthly schedule, this is one or more days of the month (1-31). For a weekly schedule, this is one or more days of the week (1-7, where 1 is Sunday). You can't specify this value with a daily schedule. If the occurrence is relative to the end of the month, you can specify only a single day.

    " - } - }, - "OccurrenceDaySet": { - "base": null, - "refs": { - "ScheduledInstanceRecurrence$OccurrenceDaySet": "

    The days. For a monthly schedule, this is one or more days of the month (1-31). For a weekly schedule, this is one or more days of the week (1-7, where 1 is Sunday).

    " - } - }, - "OfferingTypeValues": { - "base": null, - "refs": { - "DescribeReservedInstancesOfferingsRequest$OfferingType": "

    The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the Medium Utilization Reserved Instance offering type.

    ", - "DescribeReservedInstancesRequest$OfferingType": "

    The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the Medium Utilization Reserved Instance offering type.

    ", - "ReservedInstances$OfferingType": "

    The Reserved Instance offering type.

    ", - "ReservedInstancesOffering$OfferingType": "

    The Reserved Instance offering type.

    " - } - }, - "OperationType": { - "base": null, - "refs": { - "ModifyImageAttributeRequest$OperationType": "

    The operation type.

    ", - "ModifySnapshotAttributeRequest$OperationType": "

    The type of operation to perform to the attribute.

    " - } - }, - "OwnerStringList": { - "base": null, - "refs": { - "DescribeImagesRequest$Owners": "

    Filters the images by the owner. Specify an AWS account ID, amazon (owner is Amazon), aws-marketplace (owner is AWS Marketplace), self (owner is the sender of the request). Omitting this option returns all images for which you have launch permissions, regardless of ownership.

    ", - "DescribeSnapshotsRequest$OwnerIds": "

    Returns the snapshots owned by the specified owner. Multiple owners can be specified.

    " - } - }, - "PeeringConnectionOptions": { - "base": "

    Describes the VPC peering connection options.

    ", - "refs": { - "ModifyVpcPeeringConnectionOptionsResult$RequesterPeeringConnectionOptions": "

    Information about the VPC peering connection options for the requester VPC.

    ", - "ModifyVpcPeeringConnectionOptionsResult$AccepterPeeringConnectionOptions": "

    Information about the VPC peering connection options for the accepter VPC.

    " - } - }, - "PeeringConnectionOptionsRequest": { - "base": "

    The VPC peering connection options.

    ", - "refs": { - "ModifyVpcPeeringConnectionOptionsRequest$RequesterPeeringConnectionOptions": "

    The VPC peering connection options for the requester VPC.

    ", - "ModifyVpcPeeringConnectionOptionsRequest$AccepterPeeringConnectionOptions": "

    The VPC peering connection options for the accepter VPC.

    " - } - }, - "PermissionGroup": { - "base": null, - "refs": { - "CreateVolumePermission$Group": "

    The specific group that is to be added or removed from a volume's list of create volume permissions.

    ", - "LaunchPermission$Group": "

    The name of the group.

    " - } - }, - "Placement": { - "base": "

    Describes the placement for the instance.

    ", - "refs": { - "ImportInstanceLaunchSpecification$Placement": "

    The placement information for the instance.

    ", - "Instance$Placement": "

    The location where the instance launched, if applicable.

    ", - "RunInstancesRequest$Placement": "

    The placement for the instance.

    " - } - }, - "PlacementGroup": { - "base": "

    Describes a placement group.

    ", - "refs": { - "PlacementGroupList$member": null - } - }, - "PlacementGroupList": { - "base": null, - "refs": { - "DescribePlacementGroupsResult$PlacementGroups": "

    One or more placement groups.

    " - } - }, - "PlacementGroupState": { - "base": null, - "refs": { - "PlacementGroup$State": "

    The state of the placement group.

    " - } - }, - "PlacementGroupStringList": { - "base": null, - "refs": { - "DescribePlacementGroupsRequest$GroupNames": "

    One or more placement group names.

    Default: Describes all your placement groups, or only those otherwise specified.

    " - } - }, - "PlacementStrategy": { - "base": null, - "refs": { - "CreatePlacementGroupRequest$Strategy": "

    The placement strategy.

    ", - "PlacementGroup$Strategy": "

    The placement strategy.

    " - } - }, - "PlatformValues": { - "base": null, - "refs": { - "Image$Platform": "

    The value is Windows for Windows AMIs; otherwise blank.

    ", - "ImportInstanceRequest$Platform": "

    The instance operating system.

    ", - "ImportInstanceTaskDetails$Platform": "

    The instance operating system.

    ", - "Instance$Platform": "

    The value is Windows for Windows instances; otherwise blank.

    " - } - }, - "PortRange": { - "base": "

    Describes a range of ports.

    ", - "refs": { - "CreateNetworkAclEntryRequest$PortRange": "

    TCP or UDP protocols: The range of ports the rule applies to.

    ", - "NetworkAclEntry$PortRange": "

    TCP or UDP protocols: The range of ports the rule applies to.

    ", - "ReplaceNetworkAclEntryRequest$PortRange": "

    TCP or UDP protocols: The range of ports the rule applies to. Required if specifying 6 (TCP) or 17 (UDP) for the protocol.

    " - } - }, - "PrefixList": { - "base": "

    Describes prefixes for AWS services.

    ", - "refs": { - "PrefixListSet$member": null - } - }, - "PrefixListId": { - "base": "

    The ID of the prefix.

    ", - "refs": { - "PrefixListIdList$member": null - } - }, - "PrefixListIdList": { - "base": null, - "refs": { - "IpPermission$PrefixListIds": "

    (Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service. In an AuthorizeSecurityGroupEgress request, this is the AWS service that you want to access through a VPC endpoint from instances associated with the security group.

    " - } - }, - "PrefixListIdSet": { - "base": null, - "refs": { - "StaleIpPermission$PrefixListIds": "

    One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.

    " - } - }, - "PrefixListSet": { - "base": null, - "refs": { - "DescribePrefixListsResult$PrefixLists": "

    All available prefix lists.

    " - } - }, - "PriceSchedule": { - "base": "

    Describes the price for a Reserved Instance.

    ", - "refs": { - "PriceScheduleList$member": null - } - }, - "PriceScheduleList": { - "base": null, - "refs": { - "ReservedInstancesListing$PriceSchedules": "

    The price of the Reserved Instance listing.

    " - } - }, - "PriceScheduleSpecification": { - "base": "

    Describes the price for a Reserved Instance.

    ", - "refs": { - "PriceScheduleSpecificationList$member": null - } - }, - "PriceScheduleSpecificationList": { - "base": null, - "refs": { - "CreateReservedInstancesListingRequest$PriceSchedules": "

    A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.

    " - } - }, - "PricingDetail": { - "base": "

    Describes a Reserved Instance offering.

    ", - "refs": { - "PricingDetailsList$member": null - } - }, - "PricingDetailsList": { - "base": null, - "refs": { - "ReservedInstancesOffering$PricingDetails": "

    The pricing details of the Reserved Instance offering.

    " - } - }, - "PrivateIpAddressConfigSet": { - "base": null, - "refs": { - "ScheduledInstancesNetworkInterface$PrivateIpAddressConfigs": "

    The private IP addresses.

    " - } - }, - "PrivateIpAddressSpecification": { - "base": "

    Describes a secondary private IP address for a network interface.

    ", - "refs": { - "PrivateIpAddressSpecificationList$member": null - } - }, - "PrivateIpAddressSpecificationList": { - "base": null, - "refs": { - "CreateNetworkInterfaceRequest$PrivateIpAddresses": "

    One or more private IP addresses.

    ", - "InstanceNetworkInterfaceSpecification$PrivateIpAddresses": "

    One or more private IP addresses to assign to the network interface. Only one private IP address can be designated as primary.

    " - } - }, - "PrivateIpAddressStringList": { - "base": null, - "refs": { - "AssignPrivateIpAddressesRequest$PrivateIpAddresses": "

    One or more IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.

    If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.

    ", - "UnassignPrivateIpAddressesRequest$PrivateIpAddresses": "

    The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.

    " - } - }, - "ProductCode": { - "base": "

    Describes a product code.

    ", - "refs": { - "ProductCodeList$member": null - } - }, - "ProductCodeList": { - "base": null, - "refs": { - "DescribeSnapshotAttributeResult$ProductCodes": "

    A list of product codes.

    ", - "DescribeVolumeAttributeResult$ProductCodes": "

    A list of product codes.

    ", - "Image$ProductCodes": "

    Any product codes associated with the AMI.

    ", - "ImageAttribute$ProductCodes": "

    One or more product codes.

    ", - "Instance$ProductCodes": "

    The product codes attached to this instance, if applicable.

    ", - "InstanceAttribute$ProductCodes": "

    A list of product codes.

    " - } - }, - "ProductCodeStringList": { - "base": null, - "refs": { - "ModifyImageAttributeRequest$ProductCodes": "

    One or more product codes. After you add a product code to an AMI, it can't be removed. This is only valid when modifying the productCodes attribute.

    " - } - }, - "ProductCodeValues": { - "base": null, - "refs": { - "ProductCode$ProductCodeType": "

    The type of product code.

    " - } - }, - "ProductDescriptionList": { - "base": null, - "refs": { - "DescribeSpotPriceHistoryRequest$ProductDescriptions": "

    Filters the results by the specified basic product descriptions.

    " - } - }, - "PropagatingVgw": { - "base": "

    Describes a virtual private gateway propagating route.

    ", - "refs": { - "PropagatingVgwList$member": null - } - }, - "PropagatingVgwList": { - "base": null, - "refs": { - "RouteTable$PropagatingVgws": "

    Any virtual private gateway (VGW) propagating routes.

    " - } - }, - "ProvisionedBandwidth": { - "base": "

    Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

    ", - "refs": { - "NatGateway$ProvisionedBandwidth": "

    Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

    " - } - }, - "PublicIpStringList": { - "base": null, - "refs": { - "DescribeAddressesRequest$PublicIps": "

    [EC2-Classic] One or more Elastic IP addresses.

    Default: Describes all your Elastic IP addresses.

    " - } - }, - "PurchaseRequest": { - "base": "

    Describes a request to purchase Scheduled Instances.

    ", - "refs": { - "PurchaseRequestSet$member": null - } - }, - "PurchaseRequestSet": { - "base": null, - "refs": { - "PurchaseScheduledInstancesRequest$PurchaseRequests": "

    One or more purchase requests.

    " - } - }, - "PurchaseReservedInstancesOfferingRequest": { - "base": "

    Contains the parameters for PurchaseReservedInstancesOffering.

    ", - "refs": { - } - }, - "PurchaseReservedInstancesOfferingResult": { - "base": "

    Contains the output of PurchaseReservedInstancesOffering.

    ", - "refs": { - } - }, - "PurchaseScheduledInstancesRequest": { - "base": "

    Contains the parameters for PurchaseScheduledInstances.

    ", - "refs": { - } - }, - "PurchaseScheduledInstancesResult": { - "base": "

    Contains the output of PurchaseScheduledInstances.

    ", - "refs": { - } - }, - "PurchasedScheduledInstanceSet": { - "base": null, - "refs": { - "PurchaseScheduledInstancesResult$ScheduledInstanceSet": "

    Information about the Scheduled Instances.

    " - } - }, - "RIProductDescription": { - "base": null, - "refs": { - "DescribeReservedInstancesOfferingsRequest$ProductDescription": "

    The Reserved Instance product platform description. Instances that include (Amazon VPC) in the description are for use with Amazon VPC.

    ", - "ReservedInstances$ProductDescription": "

    The Reserved Instance product platform description.

    ", - "ReservedInstancesOffering$ProductDescription": "

    The Reserved Instance product platform description.

    ", - "SpotInstanceRequest$ProductDescription": "

    The product description associated with the Spot instance.

    ", - "SpotPrice$ProductDescription": "

    A general description of the AMI.

    " - } - }, - "ReasonCodesList": { - "base": null, - "refs": { - "ReportInstanceStatusRequest$ReasonCodes": "

    One or more reason codes that describes the health state of your instance.

    • instance-stuck-in-state: My instance is stuck in a state.

    • unresponsive: My instance is unresponsive.

    • not-accepting-credentials: My instance is not accepting my credentials.

    • password-not-available: A password is not available for my instance.

    • performance-network: My instance is experiencing performance problems which I believe are network related.

    • performance-instance-store: My instance is experiencing performance problems which I believe are related to the instance stores.

    • performance-ebs-volume: My instance is experiencing performance problems which I believe are related to an EBS volume.

    • performance-other: My instance is experiencing performance problems.

    • other: [explain using the description parameter]

    " - } - }, - "RebootInstancesRequest": { - "base": "

    Contains the parameters for RebootInstances.

    ", - "refs": { - } - }, - "RecurringCharge": { - "base": "

    Describes a recurring charge.

    ", - "refs": { - "RecurringChargesList$member": null - } - }, - "RecurringChargeFrequency": { - "base": null, - "refs": { - "RecurringCharge$Frequency": "

    The frequency of the recurring charge.

    " - } - }, - "RecurringChargesList": { - "base": null, - "refs": { - "ReservedInstances$RecurringCharges": "

    The recurring charge tag assigned to the resource.

    ", - "ReservedInstancesOffering$RecurringCharges": "

    The recurring charge tag assigned to the resource.

    " - } - }, - "Region": { - "base": "

    Describes a region.

    ", - "refs": { - "RegionList$member": null - } - }, - "RegionList": { - "base": null, - "refs": { - "DescribeRegionsResult$Regions": "

    Information about one or more regions.

    " - } - }, - "RegionNameStringList": { - "base": null, - "refs": { - "DescribeRegionsRequest$RegionNames": "

    The names of one or more regions.

    " - } - }, - "RegisterImageRequest": { - "base": "

    Contains the parameters for RegisterImage.

    ", - "refs": { - } - }, - "RegisterImageResult": { - "base": "

    Contains the output of RegisterImage.

    ", - "refs": { - } - }, - "RejectVpcPeeringConnectionRequest": { - "base": "

    Contains the parameters for RejectVpcPeeringConnection.

    ", - "refs": { - } - }, - "RejectVpcPeeringConnectionResult": { - "base": "

    Contains the output of RejectVpcPeeringConnection.

    ", - "refs": { - } - }, - "ReleaseAddressRequest": { - "base": "

    Contains the parameters for ReleaseAddress.

    ", - "refs": { - } - }, - "ReleaseHostsRequest": { - "base": "

    Contains the parameters for ReleaseHosts.

    ", - "refs": { - } - }, - "ReleaseHostsResult": { - "base": "

    Contains the output of ReleaseHosts.

    ", - "refs": { - } - }, - "ReplaceNetworkAclAssociationRequest": { - "base": "

    Contains the parameters for ReplaceNetworkAclAssociation.

    ", - "refs": { - } - }, - "ReplaceNetworkAclAssociationResult": { - "base": "

    Contains the output of ReplaceNetworkAclAssociation.

    ", - "refs": { - } - }, - "ReplaceNetworkAclEntryRequest": { - "base": "

    Contains the parameters for ReplaceNetworkAclEntry.

    ", - "refs": { - } - }, - "ReplaceRouteRequest": { - "base": "

    Contains the parameters for ReplaceRoute.

    ", - "refs": { - } - }, - "ReplaceRouteTableAssociationRequest": { - "base": "

    Contains the parameters for ReplaceRouteTableAssociation.

    ", - "refs": { - } - }, - "ReplaceRouteTableAssociationResult": { - "base": "

    Contains the output of ReplaceRouteTableAssociation.

    ", - "refs": { - } - }, - "ReportInstanceReasonCodes": { - "base": null, - "refs": { - "ReasonCodesList$member": null - } - }, - "ReportInstanceStatusRequest": { - "base": "

    Contains the parameters for ReportInstanceStatus.

    ", - "refs": { - } - }, - "ReportStatusType": { - "base": null, - "refs": { - "ReportInstanceStatusRequest$Status": "

    The status of all instances listed.

    " - } - }, - "RequestHostIdList": { - "base": null, - "refs": { - "DescribeHostsRequest$HostIds": "

    The IDs of the Dedicated hosts. The IDs are used for targeted instance launches.

    ", - "ModifyHostsRequest$HostIds": "

    The host IDs of the Dedicated hosts you want to modify.

    ", - "ReleaseHostsRequest$HostIds": "

    The IDs of the Dedicated hosts you want to release.

    " - } - }, - "RequestSpotFleetRequest": { - "base": "

    Contains the parameters for RequestSpotFleet.

    ", - "refs": { - } - }, - "RequestSpotFleetResponse": { - "base": "

    Contains the output of RequestSpotFleet.

    ", - "refs": { - } - }, - "RequestSpotInstancesRequest": { - "base": "

    Contains the parameters for RequestSpotInstances.

    ", - "refs": { - } - }, - "RequestSpotInstancesResult": { - "base": "

    Contains the output of RequestSpotInstances.

    ", - "refs": { - } - }, - "RequestSpotLaunchSpecification": { - "base": "

    Describes the launch specification for an instance.

    ", - "refs": { - "RequestSpotInstancesRequest$LaunchSpecification": null - } - }, - "Reservation": { - "base": "

    Describes a reservation.

    ", - "refs": { - "ReservationList$member": null - } - }, - "ReservationList": { - "base": null, - "refs": { - "DescribeInstancesResult$Reservations": "

    Zero or more reservations.

    " - } - }, - "ReservedInstanceLimitPrice": { - "base": "

    Describes the limit price of a Reserved Instance offering.

    ", - "refs": { - "PurchaseReservedInstancesOfferingRequest$LimitPrice": "

    Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.

    " - } - }, - "ReservedInstanceState": { - "base": null, - "refs": { - "ReservedInstances$State": "

    The state of the Reserved Instance purchase.

    " - } - }, - "ReservedInstances": { - "base": "

    Describes a Reserved Instance.

    ", - "refs": { - "ReservedInstancesList$member": null - } - }, - "ReservedInstancesConfiguration": { - "base": "

    Describes the configuration settings for the modified Reserved Instances.

    ", - "refs": { - "ReservedInstancesConfigurationList$member": null, - "ReservedInstancesModificationResult$TargetConfiguration": "

    The target Reserved Instances configurations supplied as part of the modification request.

    " - } - }, - "ReservedInstancesConfigurationList": { - "base": null, - "refs": { - "ModifyReservedInstancesRequest$TargetConfigurations": "

    The configuration settings for the Reserved Instances to modify.

    " - } - }, - "ReservedInstancesId": { - "base": "

    Describes the ID of a Reserved Instance.

    ", - "refs": { - "ReservedIntancesIds$member": null - } - }, - "ReservedInstancesIdStringList": { - "base": null, - "refs": { - "DescribeReservedInstancesRequest$ReservedInstancesIds": "

    One or more Reserved Instance IDs.

    Default: Describes all your Reserved Instances, or only those otherwise specified.

    ", - "ModifyReservedInstancesRequest$ReservedInstancesIds": "

    The IDs of the Reserved Instances to modify.

    " - } - }, - "ReservedInstancesList": { - "base": null, - "refs": { - "DescribeReservedInstancesResult$ReservedInstances": "

    A list of Reserved Instances.

    " - } - }, - "ReservedInstancesListing": { - "base": "

    Describes a Reserved Instance listing.

    ", - "refs": { - "ReservedInstancesListingList$member": null - } - }, - "ReservedInstancesListingList": { - "base": null, - "refs": { - "CancelReservedInstancesListingResult$ReservedInstancesListings": "

    The Reserved Instance listing.

    ", - "CreateReservedInstancesListingResult$ReservedInstancesListings": "

    Information about the Reserved Instance listing.

    ", - "DescribeReservedInstancesListingsResult$ReservedInstancesListings": "

    Information about the Reserved Instance listing.

    " - } - }, - "ReservedInstancesModification": { - "base": "

    Describes a Reserved Instance modification.

    ", - "refs": { - "ReservedInstancesModificationList$member": null - } - }, - "ReservedInstancesModificationIdStringList": { - "base": null, - "refs": { - "DescribeReservedInstancesModificationsRequest$ReservedInstancesModificationIds": "

    IDs for the submitted modification request.

    " - } - }, - "ReservedInstancesModificationList": { - "base": null, - "refs": { - "DescribeReservedInstancesModificationsResult$ReservedInstancesModifications": "

    The Reserved Instance modification information.

    " - } - }, - "ReservedInstancesModificationResult": { - "base": "

    Describes the modification request/s.

    ", - "refs": { - "ReservedInstancesModificationResultList$member": null - } - }, - "ReservedInstancesModificationResultList": { - "base": null, - "refs": { - "ReservedInstancesModification$ModificationResults": "

    Contains target configurations along with their corresponding new Reserved Instance IDs.

    " - } - }, - "ReservedInstancesOffering": { - "base": "

    Describes a Reserved Instance offering.

    ", - "refs": { - "ReservedInstancesOfferingList$member": null - } - }, - "ReservedInstancesOfferingIdStringList": { - "base": null, - "refs": { - "DescribeReservedInstancesOfferingsRequest$ReservedInstancesOfferingIds": "

    One or more Reserved Instances offering IDs.

    " - } - }, - "ReservedInstancesOfferingList": { - "base": null, - "refs": { - "DescribeReservedInstancesOfferingsResult$ReservedInstancesOfferings": "

    A list of Reserved Instances offerings.

    " - } - }, - "ReservedIntancesIds": { - "base": null, - "refs": { - "ReservedInstancesModification$ReservedInstancesIds": "

    The IDs of one or more Reserved Instances.

    " - } - }, - "ResetImageAttributeName": { - "base": null, - "refs": { - "ResetImageAttributeRequest$Attribute": "

    The attribute to reset (currently you can only reset the launch permission attribute).

    " - } - }, - "ResetImageAttributeRequest": { - "base": "

    Contains the parameters for ResetImageAttribute.

    ", - "refs": { - } - }, - "ResetInstanceAttributeRequest": { - "base": "

    Contains the parameters for ResetInstanceAttribute.

    ", - "refs": { - } - }, - "ResetNetworkInterfaceAttributeRequest": { - "base": "

    Contains the parameters for ResetNetworkInterfaceAttribute.

    ", - "refs": { - } - }, - "ResetSnapshotAttributeRequest": { - "base": "

    Contains the parameters for ResetSnapshotAttribute.

    ", - "refs": { - } - }, - "ResourceIdList": { - "base": null, - "refs": { - "CreateTagsRequest$Resources": "

    The IDs of one or more resources to tag. For example, ami-1a2b3c4d.

    ", - "DeleteTagsRequest$Resources": "

    The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.

    " - } - }, - "ResourceType": { - "base": null, - "refs": { - "TagDescription$ResourceType": "

    The resource type.

    " - } - }, - "ResponseHostIdList": { - "base": null, - "refs": { - "AllocateHostsResult$HostIds": "

    The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.

    ", - "ModifyHostsResult$Successful": "

    The IDs of the Dedicated hosts that were successfully modified.

    ", - "ReleaseHostsResult$Successful": "

    The IDs of the Dedicated hosts that were successfully released.

    " - } - }, - "RestorableByStringList": { - "base": null, - "refs": { - "DescribeSnapshotsRequest$RestorableByUserIds": "

    One or more AWS accounts IDs that can create volumes from the snapshot.

    " - } - }, - "RestoreAddressToClassicRequest": { - "base": "

    Contains the parameters for RestoreAddressToClassic.

    ", - "refs": { - } - }, - "RestoreAddressToClassicResult": { - "base": "

    Contains the output of RestoreAddressToClassic.

    ", - "refs": { - } - }, - "RevokeSecurityGroupEgressRequest": { - "base": "

    Contains the parameters for RevokeSecurityGroupEgress.

    ", - "refs": { - } - }, - "RevokeSecurityGroupIngressRequest": { - "base": "

    Contains the parameters for RevokeSecurityGroupIngress.

    ", - "refs": { - } - }, - "Route": { - "base": "

    Describes a route in a route table.

    ", - "refs": { - "RouteList$member": null - } - }, - "RouteList": { - "base": null, - "refs": { - "RouteTable$Routes": "

    The routes in the route table.

    " - } - }, - "RouteOrigin": { - "base": null, - "refs": { - "Route$Origin": "

    Describes how the route was created.

    • CreateRouteTable - The route was automatically created when the route table was created.

    • CreateRoute - The route was manually added to the route table.

    • EnableVgwRoutePropagation - The route was propagated by route propagation.

    " - } - }, - "RouteState": { - "base": null, - "refs": { - "Route$State": "

    The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).

    " - } - }, - "RouteTable": { - "base": "

    Describes a route table.

    ", - "refs": { - "CreateRouteTableResult$RouteTable": "

    Information about the route table.

    ", - "RouteTableList$member": null - } - }, - "RouteTableAssociation": { - "base": "

    Describes an association between a route table and a subnet.

    ", - "refs": { - "RouteTableAssociationList$member": null - } - }, - "RouteTableAssociationList": { - "base": null, - "refs": { - "RouteTable$Associations": "

    The associations between the route table and one or more subnets.

    " - } - }, - "RouteTableList": { - "base": null, - "refs": { - "DescribeRouteTablesResult$RouteTables": "

    Information about one or more route tables.

    " - } - }, - "RuleAction": { - "base": null, - "refs": { - "CreateNetworkAclEntryRequest$RuleAction": "

    Indicates whether to allow or deny the traffic that matches the rule.

    ", - "NetworkAclEntry$RuleAction": "

    Indicates whether to allow or deny the traffic that matches the rule.

    ", - "ReplaceNetworkAclEntryRequest$RuleAction": "

    Indicates whether to allow or deny the traffic that matches the rule.

    " - } - }, - "RunInstancesMonitoringEnabled": { - "base": "

    Describes the monitoring for the instance.

    ", - "refs": { - "LaunchSpecification$Monitoring": null, - "RequestSpotLaunchSpecification$Monitoring": null, - "RunInstancesRequest$Monitoring": "

    The monitoring for the instance.

    " - } - }, - "RunInstancesRequest": { - "base": "

    Contains the parameters for RunInstances.

    ", - "refs": { - } - }, - "RunScheduledInstancesRequest": { - "base": "

    Contains the parameters for RunScheduledInstances.

    ", - "refs": { - } - }, - "RunScheduledInstancesResult": { - "base": "

    Contains the output of RunScheduledInstances.

    ", - "refs": { - } - }, - "S3Storage": { - "base": "

    Describes the storage parameters for S3 and S3 buckets for an instance store-backed AMI.

    ", - "refs": { - "Storage$S3": "

    An Amazon S3 storage location.

    " - } - }, - "ScheduledInstance": { - "base": "

    Describes a Scheduled Instance.

    ", - "refs": { - "PurchasedScheduledInstanceSet$member": null, - "ScheduledInstanceSet$member": null - } - }, - "ScheduledInstanceAvailability": { - "base": "

    Describes a schedule that is available for your Scheduled Instances.

    ", - "refs": { - "ScheduledInstanceAvailabilitySet$member": null - } - }, - "ScheduledInstanceAvailabilitySet": { - "base": null, - "refs": { - "DescribeScheduledInstanceAvailabilityResult$ScheduledInstanceAvailabilitySet": "

    Information about the available Scheduled Instances.

    " - } - }, - "ScheduledInstanceIdRequestSet": { - "base": null, - "refs": { - "DescribeScheduledInstancesRequest$ScheduledInstanceIds": "

    One or more Scheduled Instance IDs.

    " - } - }, - "ScheduledInstanceRecurrence": { - "base": "

    Describes the recurring schedule for a Scheduled Instance.

    ", - "refs": { - "ScheduledInstance$Recurrence": "

    The schedule recurrence.

    ", - "ScheduledInstanceAvailability$Recurrence": "

    The schedule recurrence.

    " - } - }, - "ScheduledInstanceRecurrenceRequest": { - "base": "

    Describes the recurring schedule for a Scheduled Instance.

    ", - "refs": { - "DescribeScheduledInstanceAvailabilityRequest$Recurrence": "

    The schedule recurrence.

    " - } - }, - "ScheduledInstanceSet": { - "base": null, - "refs": { - "DescribeScheduledInstancesResult$ScheduledInstanceSet": "

    Information about the Scheduled Instances.

    " - } - }, - "ScheduledInstancesBlockDeviceMapping": { - "base": "

    Describes a block device mapping for a Scheduled Instance.

    ", - "refs": { - "ScheduledInstancesBlockDeviceMappingSet$member": null - } - }, - "ScheduledInstancesBlockDeviceMappingSet": { - "base": null, - "refs": { - "ScheduledInstancesLaunchSpecification$BlockDeviceMappings": "

    One or more block device mapping entries.

    " - } - }, - "ScheduledInstancesEbs": { - "base": "

    Describes an EBS volume for a Scheduled Instance.

    ", - "refs": { - "ScheduledInstancesBlockDeviceMapping$Ebs": "

    Parameters used to set up EBS volumes automatically when the instance is launched.

    " - } - }, - "ScheduledInstancesIamInstanceProfile": { - "base": "

    Describes an IAM instance profile for a Scheduled Instance.

    ", - "refs": { - "ScheduledInstancesLaunchSpecification$IamInstanceProfile": "

    The IAM instance profile.

    " - } - }, - "ScheduledInstancesLaunchSpecification": { - "base": "

    Describes the launch specification for a Scheduled Instance.

    If you are launching the Scheduled Instance in EC2-VPC, you must specify the ID of the subnet. You can specify the subnet using either SubnetId or NetworkInterface.

    ", - "refs": { - "RunScheduledInstancesRequest$LaunchSpecification": "

    The launch specification.

    " - } - }, - "ScheduledInstancesMonitoring": { - "base": "

    Describes whether monitoring is enabled for a Scheduled Instance.

    ", - "refs": { - "ScheduledInstancesLaunchSpecification$Monitoring": "

    Enable or disable monitoring for the instances.

    " - } - }, - "ScheduledInstancesNetworkInterface": { - "base": "

    Describes a network interface for a Scheduled Instance.

    ", - "refs": { - "ScheduledInstancesNetworkInterfaceSet$member": null - } - }, - "ScheduledInstancesNetworkInterfaceSet": { - "base": null, - "refs": { - "ScheduledInstancesLaunchSpecification$NetworkInterfaces": "

    One or more network interfaces.

    " - } - }, - "ScheduledInstancesPlacement": { - "base": "

    Describes the placement for a Scheduled Instance.

    ", - "refs": { - "ScheduledInstancesLaunchSpecification$Placement": "

    The placement information.

    " - } - }, - "ScheduledInstancesPrivateIpAddressConfig": { - "base": "

    Describes a private IP address for a Scheduled Instance.

    ", - "refs": { - "PrivateIpAddressConfigSet$member": null - } - }, - "ScheduledInstancesSecurityGroupIdSet": { - "base": null, - "refs": { - "ScheduledInstancesLaunchSpecification$SecurityGroupIds": "

    The IDs of one or more security groups.

    ", - "ScheduledInstancesNetworkInterface$Groups": "

    The IDs of one or more security groups.

    " - } - }, - "SecurityGroup": { - "base": "

    Describes a security group

    ", - "refs": { - "SecurityGroupList$member": null - } - }, - "SecurityGroupIdStringList": { - "base": null, - "refs": { - "CreateNetworkInterfaceRequest$Groups": "

    The IDs of one or more security groups.

    ", - "ImportInstanceLaunchSpecification$GroupIds": "

    One or more security group IDs.

    ", - "InstanceNetworkInterfaceSpecification$Groups": "

    The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.

    ", - "ModifyNetworkInterfaceAttributeRequest$Groups": "

    Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

    ", - "RunInstancesRequest$SecurityGroupIds": "

    One or more security group IDs. You can create a security group using CreateSecurityGroup.

    Default: Amazon EC2 uses the default security group.

    " - } - }, - "SecurityGroupList": { - "base": null, - "refs": { - "DescribeSecurityGroupsResult$SecurityGroups": "

    Information about one or more security groups.

    " - } - }, - "SecurityGroupReference": { - "base": "

    Describes a VPC with a security group that references your security group.

    ", - "refs": { - "SecurityGroupReferences$member": null - } - }, - "SecurityGroupReferences": { - "base": null, - "refs": { - "DescribeSecurityGroupReferencesResult$SecurityGroupReferenceSet": "

    Information about the VPCs with the referencing security groups.

    " - } - }, - "SecurityGroupStringList": { - "base": null, - "refs": { - "ImportInstanceLaunchSpecification$GroupNames": "

    One or more security group names.

    ", - "RunInstancesRequest$SecurityGroups": "

    [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.

    Default: Amazon EC2 uses the default security group.

    " - } - }, - "ShutdownBehavior": { - "base": null, - "refs": { - "ImportInstanceLaunchSpecification$InstanceInitiatedShutdownBehavior": "

    Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

    ", - "RunInstancesRequest$InstanceInitiatedShutdownBehavior": "

    Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

    Default: stop

    " - } - }, - "SlotDateTimeRangeRequest": { - "base": "

    Describes the time period for a Scheduled Instance to start its first schedule. The time period must span less than one day.

    ", - "refs": { - "DescribeScheduledInstanceAvailabilityRequest$FirstSlotStartTimeRange": "

    The time period for the first schedule to start.

    " - } - }, - "SlotStartTimeRangeRequest": { - "base": "

    Describes the time period for a Scheduled Instance to start its first schedule.

    ", - "refs": { - "DescribeScheduledInstancesRequest$SlotStartTimeRange": "

    The time period for the first schedule to start.

    " - } - }, - "Snapshot": { - "base": "

    Describes a snapshot.

    ", - "refs": { - "SnapshotList$member": null - } - }, - "SnapshotAttributeName": { - "base": null, - "refs": { - "DescribeSnapshotAttributeRequest$Attribute": "

    The snapshot attribute you would like to view.

    ", - "ModifySnapshotAttributeRequest$Attribute": "

    The snapshot attribute to modify.

    Only volume creation permissions may be modified at the customer level.

    ", - "ResetSnapshotAttributeRequest$Attribute": "

    The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.

    " - } - }, - "SnapshotDetail": { - "base": "

    Describes the snapshot created from the imported disk.

    ", - "refs": { - "SnapshotDetailList$member": null - } - }, - "SnapshotDetailList": { - "base": null, - "refs": { - "ImportImageResult$SnapshotDetails": "

    Information about the snapshots.

    ", - "ImportImageTask$SnapshotDetails": "

    Information about the snapshots.

    " - } - }, - "SnapshotDiskContainer": { - "base": "

    The disk container object for the import snapshot request.

    ", - "refs": { - "ImportSnapshotRequest$DiskContainer": "

    Information about the disk container.

    " - } - }, - "SnapshotIdStringList": { - "base": null, - "refs": { - "DescribeSnapshotsRequest$SnapshotIds": "

    One or more snapshot IDs.

    Default: Describes snapshots for which you have launch permissions.

    " - } - }, - "SnapshotList": { - "base": null, - "refs": { - "DescribeSnapshotsResult$Snapshots": "

    Information about the snapshots.

    " - } - }, - "SnapshotState": { - "base": null, - "refs": { - "Snapshot$State": "

    The snapshot state.

    " - } - }, - "SnapshotTaskDetail": { - "base": "

    Details about the import snapshot task.

    ", - "refs": { - "ImportSnapshotResult$SnapshotTaskDetail": "

    Information about the import snapshot task.

    ", - "ImportSnapshotTask$SnapshotTaskDetail": "

    Describes an import snapshot task.

    " - } - }, - "SpotDatafeedSubscription": { - "base": "

    Describes the data feed for a Spot instance.

    ", - "refs": { - "CreateSpotDatafeedSubscriptionResult$SpotDatafeedSubscription": "

    The Spot instance data feed subscription.

    ", - "DescribeSpotDatafeedSubscriptionResult$SpotDatafeedSubscription": "

    The Spot instance data feed subscription.

    " - } - }, - "SpotFleetLaunchSpecification": { - "base": "

    Describes the launch specification for one or more Spot instances.

    ", - "refs": { - "LaunchSpecsList$member": null - } - }, - "SpotFleetMonitoring": { - "base": "

    Describes whether monitoring is enabled.

    ", - "refs": { - "SpotFleetLaunchSpecification$Monitoring": "

    Enable or disable monitoring for the instances.

    " - } - }, - "SpotFleetRequestConfig": { - "base": "

    Describes a Spot fleet request.

    ", - "refs": { - "SpotFleetRequestConfigSet$member": null - } - }, - "SpotFleetRequestConfigData": { - "base": "

    Describes the configuration of a Spot fleet request.

    ", - "refs": { - "RequestSpotFleetRequest$SpotFleetRequestConfig": "

    The configuration for the Spot fleet request.

    ", - "SpotFleetRequestConfig$SpotFleetRequestConfig": "

    Information about the configuration of the Spot fleet request.

    " - } - }, - "SpotFleetRequestConfigSet": { - "base": null, - "refs": { - "DescribeSpotFleetRequestsResponse$SpotFleetRequestConfigs": "

    Information about the configuration of your Spot fleet.

    " - } - }, - "SpotInstanceRequest": { - "base": "

    Describes a Spot instance request.

    ", - "refs": { - "SpotInstanceRequestList$member": null - } - }, - "SpotInstanceRequestIdList": { - "base": null, - "refs": { - "CancelSpotInstanceRequestsRequest$SpotInstanceRequestIds": "

    One or more Spot instance request IDs.

    ", - "DescribeSpotInstanceRequestsRequest$SpotInstanceRequestIds": "

    One or more Spot instance request IDs.

    " - } - }, - "SpotInstanceRequestList": { - "base": null, - "refs": { - "DescribeSpotInstanceRequestsResult$SpotInstanceRequests": "

    One or more Spot instance requests.

    ", - "RequestSpotInstancesResult$SpotInstanceRequests": "

    One or more Spot instance requests.

    " - } - }, - "SpotInstanceState": { - "base": null, - "refs": { - "SpotInstanceRequest$State": "

    The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.

    " - } - }, - "SpotInstanceStateFault": { - "base": "

    Describes a Spot instance state change.

    ", - "refs": { - "SpotDatafeedSubscription$Fault": "

    The fault codes for the Spot instance request, if any.

    ", - "SpotInstanceRequest$Fault": "

    The fault codes for the Spot instance request, if any.

    " - } - }, - "SpotInstanceStatus": { - "base": "

    Describes the status of a Spot instance request.

    ", - "refs": { - "SpotInstanceRequest$Status": "

    The status code and status message describing the Spot instance request.

    " - } - }, - "SpotInstanceType": { - "base": null, - "refs": { - "RequestSpotInstancesRequest$Type": "

    The Spot instance request type.

    Default: one-time

    ", - "SpotInstanceRequest$Type": "

    The Spot instance request type.

    " - } - }, - "SpotPlacement": { - "base": "

    Describes Spot instance placement.

    ", - "refs": { - "LaunchSpecification$Placement": "

    The placement information for the instance.

    ", - "RequestSpotLaunchSpecification$Placement": "

    The placement information for the instance.

    ", - "SpotFleetLaunchSpecification$Placement": "

    The placement information.

    " - } - }, - "SpotPrice": { - "base": "

    Describes the maximum hourly price (bid) for any Spot instance launched to fulfill the request.

    ", - "refs": { - "SpotPriceHistoryList$member": null - } - }, - "SpotPriceHistoryList": { - "base": null, - "refs": { - "DescribeSpotPriceHistoryResult$SpotPriceHistory": "

    The historical Spot prices.

    " - } - }, - "StaleIpPermission": { - "base": "

    Describes a stale rule in a security group.

    ", - "refs": { - "StaleIpPermissionSet$member": null - } - }, - "StaleIpPermissionSet": { - "base": null, - "refs": { - "StaleSecurityGroup$StaleIpPermissions": "

    Information about the stale inbound rules in the security group.

    ", - "StaleSecurityGroup$StaleIpPermissionsEgress": "

    Information about the stale outbound rules in the security group.

    " - } - }, - "StaleSecurityGroup": { - "base": "

    Describes a stale security group (a security group that contains stale rules).

    ", - "refs": { - "StaleSecurityGroupSet$member": null - } - }, - "StaleSecurityGroupSet": { - "base": null, - "refs": { - "DescribeStaleSecurityGroupsResult$StaleSecurityGroupSet": "

    Information about the stale security groups.

    " - } - }, - "StartInstancesRequest": { - "base": "

    Contains the parameters for StartInstances.

    ", - "refs": { - } - }, - "StartInstancesResult": { - "base": "

    Contains the output of StartInstances.

    ", - "refs": { - } - }, - "State": { - "base": null, - "refs": { - "VpcEndpoint$State": "

    The state of the VPC endpoint.

    " - } - }, - "StateReason": { - "base": "

    Describes a state change.

    ", - "refs": { - "Image$StateReason": "

    The reason for the state change.

    ", - "Instance$StateReason": "

    The reason for the most recent state transition.

    " - } - }, - "Status": { - "base": null, - "refs": { - "MoveAddressToVpcResult$Status": "

    The status of the move of the IP address.

    ", - "RestoreAddressToClassicResult$Status": "

    The move status for the IP address.

    " - } - }, - "StatusName": { - "base": null, - "refs": { - "InstanceStatusDetails$Name": "

    The type of instance status.

    " - } - }, - "StatusType": { - "base": null, - "refs": { - "InstanceStatusDetails$Status": "

    The status.

    " - } - }, - "StopInstancesRequest": { - "base": "

    Contains the parameters for StopInstances.

    ", - "refs": { - } - }, - "StopInstancesResult": { - "base": "

    Contains the output of StopInstances.

    ", - "refs": { - } - }, - "Storage": { - "base": "

    Describes the storage location for an instance store-backed AMI.

    ", - "refs": { - "BundleInstanceRequest$Storage": "

    The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

    ", - "BundleTask$Storage": "

    The Amazon S3 storage locations.

    " - } - }, - "String": { - "base": null, - "refs": { - "AcceptVpcPeeringConnectionRequest$VpcPeeringConnectionId": "

    The ID of the VPC peering connection.

    ", - "AccountAttribute$AttributeName": "

    The name of the account attribute.

    ", - "AccountAttributeValue$AttributeValue": "

    The value of the attribute.

    ", - "ActiveInstance$InstanceType": "

    The instance type.

    ", - "ActiveInstance$InstanceId": "

    The ID of the instance.

    ", - "ActiveInstance$SpotInstanceRequestId": "

    The ID of the Spot instance request.

    ", - "Address$InstanceId": "

    The ID of the instance that the address is associated with (if any).

    ", - "Address$PublicIp": "

    The Elastic IP address.

    ", - "Address$AllocationId": "

    The ID representing the allocation of the address for use with EC2-VPC.

    ", - "Address$AssociationId": "

    The ID representing the association of the address with an instance in a VPC.

    ", - "Address$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "Address$NetworkInterfaceOwnerId": "

    The ID of the AWS account that owns the network interface.

    ", - "Address$PrivateIpAddress": "

    The private IP address associated with the Elastic IP address.

    ", - "AllocateAddressResult$PublicIp": "

    The Elastic IP address.

    ", - "AllocateAddressResult$AllocationId": "

    [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.

    ", - "AllocateHostsRequest$ClientToken": "

    Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

    ", - "AllocateHostsRequest$InstanceType": "

    Specify the instance type that you want your Dedicated hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.

    ", - "AllocateHostsRequest$AvailabilityZone": "

    The Availability Zone for the Dedicated hosts.

    ", - "AllocationIdList$member": null, - "AssignPrivateIpAddressesRequest$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "AssociateAddressRequest$InstanceId": "

    The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. The operation fails if you specify an instance ID unless exactly one network interface is attached.

    ", - "AssociateAddressRequest$PublicIp": "

    The Elastic IP address. This is required for EC2-Classic.

    ", - "AssociateAddressRequest$AllocationId": "

    [EC2-VPC] The allocation ID. This is required for EC2-VPC.

    ", - "AssociateAddressRequest$NetworkInterfaceId": "

    [EC2-VPC] The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.

    ", - "AssociateAddressRequest$PrivateIpAddress": "

    [EC2-VPC] The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.

    ", - "AssociateAddressResult$AssociationId": "

    [EC2-VPC] The ID that represents the association of the Elastic IP address with an instance.

    ", - "AssociateDhcpOptionsRequest$DhcpOptionsId": "

    The ID of the DHCP options set, or default to associate no DHCP options with the VPC.

    ", - "AssociateDhcpOptionsRequest$VpcId": "

    The ID of the VPC.

    ", - "AssociateRouteTableRequest$SubnetId": "

    The ID of the subnet.

    ", - "AssociateRouteTableRequest$RouteTableId": "

    The ID of the route table.

    ", - "AssociateRouteTableResult$AssociationId": "

    The route table association ID (needed to disassociate the route table).

    ", - "AttachClassicLinkVpcRequest$InstanceId": "

    The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.

    ", - "AttachClassicLinkVpcRequest$VpcId": "

    The ID of a ClassicLink-enabled VPC.

    ", - "AttachInternetGatewayRequest$InternetGatewayId": "

    The ID of the Internet gateway.

    ", - "AttachInternetGatewayRequest$VpcId": "

    The ID of the VPC.

    ", - "AttachNetworkInterfaceRequest$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "AttachNetworkInterfaceRequest$InstanceId": "

    The ID of the instance.

    ", - "AttachNetworkInterfaceResult$AttachmentId": "

    The ID of the network interface attachment.

    ", - "AttachVolumeRequest$VolumeId": "

    The ID of the EBS volume. The volume and instance must be within the same Availability Zone.

    ", - "AttachVolumeRequest$InstanceId": "

    The ID of the instance.

    ", - "AttachVolumeRequest$Device": "

    The device name to expose to the instance (for example, /dev/sdh or xvdh).

    ", - "AttachVpnGatewayRequest$VpnGatewayId": "

    The ID of the virtual private gateway.

    ", - "AttachVpnGatewayRequest$VpcId": "

    The ID of the VPC.

    ", - "AttributeValue$Value": "

    Valid values are case-sensitive and vary by action.

    ", - "AuthorizeSecurityGroupEgressRequest$GroupId": "

    The ID of the security group.

    ", - "AuthorizeSecurityGroupEgressRequest$SourceSecurityGroupName": "

    The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

    ", - "AuthorizeSecurityGroupEgressRequest$SourceSecurityGroupOwnerId": "

    The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

    ", - "AuthorizeSecurityGroupEgressRequest$IpProtocol": "

    The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.

    ", - "AuthorizeSecurityGroupEgressRequest$CidrIp": "

    The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.

    ", - "AuthorizeSecurityGroupIngressRequest$GroupName": "

    [EC2-Classic, default VPC] The name of the security group.

    ", - "AuthorizeSecurityGroupIngressRequest$GroupId": "

    The ID of the security group. Required for a nondefault VPC.

    ", - "AuthorizeSecurityGroupIngressRequest$SourceSecurityGroupName": "

    [EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

    ", - "AuthorizeSecurityGroupIngressRequest$SourceSecurityGroupOwnerId": "

    [EC2-Classic] The AWS account number for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

    ", - "AuthorizeSecurityGroupIngressRequest$IpProtocol": "

    The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). (VPC only) Use -1 to specify all.

    ", - "AuthorizeSecurityGroupIngressRequest$CidrIp": "

    The CIDR IP address range. You can't specify this parameter when specifying a source security group.

    ", - "AvailabilityZone$ZoneName": "

    The name of the Availability Zone.

    ", - "AvailabilityZone$RegionName": "

    The name of the region.

    ", - "AvailabilityZoneMessage$Message": "

    The message about the Availability Zone.

    ", - "BlockDeviceMapping$VirtualName": "

    The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

    Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

    ", - "BlockDeviceMapping$DeviceName": "

    The device name exposed to the instance (for example, /dev/sdh or xvdh).

    ", - "BlockDeviceMapping$NoDevice": "

    Suppresses the specified device included in the block device mapping of the AMI.

    ", - "BundleIdStringList$member": null, - "BundleInstanceRequest$InstanceId": "

    The ID of the instance to bundle.

    Type: String

    Default: None

    Required: Yes

    ", - "BundleTask$InstanceId": "

    The ID of the instance associated with this bundle task.

    ", - "BundleTask$BundleId": "

    The ID of the bundle task.

    ", - "BundleTask$Progress": "

    The level of task completion, as a percent (for example, 20%).

    ", - "BundleTaskError$Code": "

    The error code.

    ", - "BundleTaskError$Message": "

    The error message.

    ", - "CancelBundleTaskRequest$BundleId": "

    The ID of the bundle task.

    ", - "CancelConversionRequest$ConversionTaskId": "

    The ID of the conversion task.

    ", - "CancelConversionRequest$ReasonMessage": "

    The reason for canceling the conversion task.

    ", - "CancelExportTaskRequest$ExportTaskId": "

    The ID of the export task. This is the ID returned by CreateInstanceExportTask.

    ", - "CancelImportTaskRequest$ImportTaskId": "

    The ID of the import image or import snapshot task to be canceled.

    ", - "CancelImportTaskRequest$CancelReason": "

    The reason for canceling the task.

    ", - "CancelImportTaskResult$ImportTaskId": "

    The ID of the task being canceled.

    ", - "CancelImportTaskResult$State": "

    The current state of the task being canceled.

    ", - "CancelImportTaskResult$PreviousState": "

    The current state of the task being canceled.

    ", - "CancelReservedInstancesListingRequest$ReservedInstancesListingId": "

    The ID of the Reserved Instance listing.

    ", - "CancelSpotFleetRequestsError$Message": "

    The description for the error code.

    ", - "CancelSpotFleetRequestsErrorItem$SpotFleetRequestId": "

    The ID of the Spot fleet request.

    ", - "CancelSpotFleetRequestsSuccessItem$SpotFleetRequestId": "

    The ID of the Spot fleet request.

    ", - "CancelledSpotInstanceRequest$SpotInstanceRequestId": "

    The ID of the Spot instance request.

    ", - "ClassicLinkDnsSupport$VpcId": "

    The ID of the VPC.

    ", - "ClassicLinkInstance$InstanceId": "

    The ID of the instance.

    ", - "ClassicLinkInstance$VpcId": "

    The ID of the VPC.

    ", - "ClientData$Comment": "

    A user-defined comment about the disk upload.

    ", - "ConfirmProductInstanceRequest$ProductCode": "

    The product code. This must be a product code that you own.

    ", - "ConfirmProductInstanceRequest$InstanceId": "

    The ID of the instance.

    ", - "ConfirmProductInstanceResult$OwnerId": "

    The AWS account ID of the instance owner. This is only present if the product code is attached to the instance.

    ", - "ConversionIdStringList$member": null, - "ConversionTask$ConversionTaskId": "

    The ID of the conversion task.

    ", - "ConversionTask$ExpirationTime": "

    The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.

    ", - "ConversionTask$StatusMessage": "

    The status message related to the conversion task.

    ", - "CopyImageRequest$SourceRegion": "

    The name of the region that contains the AMI to copy.

    ", - "CopyImageRequest$SourceImageId": "

    The ID of the AMI to copy.

    ", - "CopyImageRequest$Name": "

    The name of the new AMI in the destination region.

    ", - "CopyImageRequest$Description": "

    A description for the new AMI in the destination region.

    ", - "CopyImageRequest$ClientToken": "

    Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

    ", - "CopyImageRequest$KmsKeyId": "

    The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when encrypting the snapshots of an image during a copy operation. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. The specified CMK must exist in the region that the snapshot is being copied to. If a KmsKeyId is specified, the Encrypted flag must also be set.

    ", - "CopyImageResult$ImageId": "

    The ID of the new AMI.

    ", - "CopySnapshotRequest$SourceRegion": "

    The ID of the region that contains the snapshot to be copied.

    ", - "CopySnapshotRequest$SourceSnapshotId": "

    The ID of the EBS snapshot to copy.

    ", - "CopySnapshotRequest$Description": "

    A description for the EBS snapshot.

    ", - "CopySnapshotRequest$DestinationRegion": "

    The destination region to use in the PresignedUrl parameter of a snapshot copy operation. This parameter is only valid for specifying the destination region in a PresignedUrl parameter, where it is required.

    CopySnapshot sends the snapshot copy to the regional endpoint that you send the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS CLI, this is specified with the --region parameter or the default region in your AWS configuration file).

    ", - "CopySnapshotRequest$PresignedUrl": "

    The pre-signed URL that facilitates copying an encrypted snapshot. This parameter is only required when copying an encrypted snapshot with the Amazon EC2 Query API; it is available as an optional parameter in all other cases. The PresignedUrl should use the snapshot source endpoint, the CopySnapshot action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The PresignedUrl must be signed using AWS Signature Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic that is described in Authenticating Requests by Using Query Parameters (AWS Signature Version 4) in the Amazon Simple Storage Service API Reference. An invalid or improperly signed PresignedUrl will cause the copy operation to fail asynchronously, and the snapshot will move to an error state.

    ", - "CopySnapshotRequest$KmsKeyId": "

    The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when creating the snapshot copy. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. The specified CMK must exist in the region that the snapshot is being copied to. If a KmsKeyId is specified, the Encrypted flag must also be set.

    ", - "CopySnapshotResult$SnapshotId": "

    The ID of the new snapshot.

    ", - "CreateCustomerGatewayRequest$PublicIp": "

    The Internet-routable IP address for the customer gateway's outside interface. The address must be static.

    ", - "CreateFlowLogsRequest$LogGroupName": "

    The name of the CloudWatch log group.

    ", - "CreateFlowLogsRequest$DeliverLogsPermissionArn": "

    The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.

    ", - "CreateFlowLogsRequest$ClientToken": "

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

    ", - "CreateFlowLogsResult$ClientToken": "

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request.

    ", - "CreateImageRequest$InstanceId": "

    The ID of the instance.

    ", - "CreateImageRequest$Name": "

    A name for the new image.

    Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

    ", - "CreateImageRequest$Description": "

    A description for the new image.

    ", - "CreateImageResult$ImageId": "

    The ID of the new AMI.

    ", - "CreateInstanceExportTaskRequest$Description": "

    A description for the conversion task or the resource being exported. The maximum length is 255 bytes.

    ", - "CreateInstanceExportTaskRequest$InstanceId": "

    The ID of the instance.

    ", - "CreateKeyPairRequest$KeyName": "

    A unique name for the key pair.

    Constraints: Up to 255 ASCII characters

    ", - "CreateNatGatewayRequest$SubnetId": "

    The subnet in which to create the NAT gateway.

    ", - "CreateNatGatewayRequest$AllocationId": "

    The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.

    ", - "CreateNatGatewayRequest$ClientToken": "

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

    Constraint: Maximum 64 ASCII characters.

    ", - "CreateNatGatewayResult$ClientToken": "

    Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.

    ", - "CreateNetworkAclEntryRequest$NetworkAclId": "

    The ID of the network ACL.

    ", - "CreateNetworkAclEntryRequest$Protocol": "

    The protocol. A value of -1 means all protocols.

    ", - "CreateNetworkAclEntryRequest$CidrBlock": "

    The network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).

    ", - "CreateNetworkAclRequest$VpcId": "

    The ID of the VPC.

    ", - "CreateNetworkInterfaceRequest$SubnetId": "

    The ID of the subnet to associate with the network interface.

    ", - "CreateNetworkInterfaceRequest$Description": "

    A description for the network interface.

    ", - "CreateNetworkInterfaceRequest$PrivateIpAddress": "

    The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).

    ", - "CreatePlacementGroupRequest$GroupName": "

    A name for the placement group.

    Constraints: Up to 255 ASCII characters

    ", - "CreateReservedInstancesListingRequest$ReservedInstancesId": "

    The ID of the active Reserved Instance.

    ", - "CreateReservedInstancesListingRequest$ClientToken": "

    Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.

    ", - "CreateRouteRequest$RouteTableId": "

    The ID of the route table for the route.

    ", - "CreateRouteRequest$DestinationCidrBlock": "

    The CIDR address block used for the destination match. Routing decisions are based on the most specific match.

    ", - "CreateRouteRequest$GatewayId": "

    The ID of an Internet gateway or virtual private gateway attached to your VPC.

    ", - "CreateRouteRequest$InstanceId": "

    The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.

    ", - "CreateRouteRequest$NetworkInterfaceId": "

    The ID of a network interface.

    ", - "CreateRouteRequest$VpcPeeringConnectionId": "

    The ID of a VPC peering connection.

    ", - "CreateRouteRequest$NatGatewayId": "

    The ID of a NAT gateway.

    ", - "CreateRouteTableRequest$VpcId": "

    The ID of the VPC.

    ", - "CreateSecurityGroupRequest$GroupName": "

    The name of the security group.

    Constraints: Up to 255 characters in length

    Constraints for EC2-Classic: ASCII characters

    Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

    ", - "CreateSecurityGroupRequest$Description": "

    A description for the security group. This is informational only.

    Constraints: Up to 255 characters in length

    Constraints for EC2-Classic: ASCII characters

    Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

    ", - "CreateSecurityGroupRequest$VpcId": "

    [EC2-VPC] The ID of the VPC. Required for EC2-VPC.

    ", - "CreateSecurityGroupResult$GroupId": "

    The ID of the security group.

    ", - "CreateSnapshotRequest$VolumeId": "

    The ID of the EBS volume.

    ", - "CreateSnapshotRequest$Description": "

    A description for the snapshot.

    ", - "CreateSpotDatafeedSubscriptionRequest$Bucket": "

    The Amazon S3 bucket in which to store the Spot instance data feed.

    ", - "CreateSpotDatafeedSubscriptionRequest$Prefix": "

    A prefix for the data feed file names.

    ", - "CreateSubnetRequest$VpcId": "

    The ID of the VPC.

    ", - "CreateSubnetRequest$CidrBlock": "

    The network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.

    ", - "CreateSubnetRequest$AvailabilityZone": "

    The Availability Zone for the subnet.

    Default: AWS selects one for you. If you create more than one subnet in your VPC, we may not necessarily select a different zone for each subnet.

    ", - "CreateVolumePermission$UserId": "

    The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.

    ", - "CreateVolumeRequest$SnapshotId": "

    The snapshot from which to create the volume.

    ", - "CreateVolumeRequest$AvailabilityZone": "

    The Availability Zone in which to create the volume. Use DescribeAvailabilityZones to list the Availability Zones that are currently available to you.

    ", - "CreateVolumeRequest$KmsKeyId": "

    The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If a KmsKeyId is specified, the Encrypted flag must also be set.

    ", - "CreateVpcEndpointRequest$VpcId": "

    The ID of the VPC in which the endpoint will be used.

    ", - "CreateVpcEndpointRequest$ServiceName": "

    The AWS service name, in the form com.amazonaws.region.service. To get a list of available services, use the DescribeVpcEndpointServices request.

    ", - "CreateVpcEndpointRequest$PolicyDocument": "

    A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.

    ", - "CreateVpcEndpointRequest$ClientToken": "

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

    ", - "CreateVpcEndpointResult$ClientToken": "

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request.

    ", - "CreateVpcPeeringConnectionRequest$VpcId": "

    The ID of the requester VPC.

    ", - "CreateVpcPeeringConnectionRequest$PeerVpcId": "

    The ID of the VPC with which you are creating the VPC peering connection.

    ", - "CreateVpcPeeringConnectionRequest$PeerOwnerId": "

    The AWS account ID of the owner of the peer VPC.

    Default: Your AWS account ID

    ", - "CreateVpcRequest$CidrBlock": "

    The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

    ", - "CreateVpnConnectionRequest$Type": "

    The type of VPN connection (ipsec.1).

    ", - "CreateVpnConnectionRequest$CustomerGatewayId": "

    The ID of the customer gateway.

    ", - "CreateVpnConnectionRequest$VpnGatewayId": "

    The ID of the virtual private gateway.

    ", - "CreateVpnConnectionRouteRequest$VpnConnectionId": "

    The ID of the VPN connection.

    ", - "CreateVpnConnectionRouteRequest$DestinationCidrBlock": "

    The CIDR block associated with the local subnet of the customer network.

    ", - "CreateVpnGatewayRequest$AvailabilityZone": "

    The Availability Zone for the virtual private gateway.

    ", - "CustomerGateway$CustomerGatewayId": "

    The ID of the customer gateway.

    ", - "CustomerGateway$State": "

    The current state of the customer gateway (pending | available | deleting | deleted).

    ", - "CustomerGateway$Type": "

    The type of VPN connection the customer gateway supports (ipsec.1).

    ", - "CustomerGateway$IpAddress": "

    The Internet-routable IP address of the customer gateway's outside interface.

    ", - "CustomerGateway$BgpAsn": "

    The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

    ", - "CustomerGatewayIdStringList$member": null, - "DeleteCustomerGatewayRequest$CustomerGatewayId": "

    The ID of the customer gateway.

    ", - "DeleteDhcpOptionsRequest$DhcpOptionsId": "

    The ID of the DHCP options set.

    ", - "DeleteInternetGatewayRequest$InternetGatewayId": "

    The ID of the Internet gateway.

    ", - "DeleteKeyPairRequest$KeyName": "

    The name of the key pair.

    ", - "DeleteNatGatewayRequest$NatGatewayId": "

    The ID of the NAT gateway.

    ", - "DeleteNatGatewayResult$NatGatewayId": "

    The ID of the NAT gateway.

    ", - "DeleteNetworkAclEntryRequest$NetworkAclId": "

    The ID of the network ACL.

    ", - "DeleteNetworkAclRequest$NetworkAclId": "

    The ID of the network ACL.

    ", - "DeleteNetworkInterfaceRequest$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "DeletePlacementGroupRequest$GroupName": "

    The name of the placement group.

    ", - "DeleteRouteRequest$RouteTableId": "

    The ID of the route table.

    ", - "DeleteRouteRequest$DestinationCidrBlock": "

    The CIDR range for the route. The value you specify must match the CIDR for the route exactly.

    ", - "DeleteRouteTableRequest$RouteTableId": "

    The ID of the route table.

    ", - "DeleteSecurityGroupRequest$GroupName": "

    [EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID.

    ", - "DeleteSecurityGroupRequest$GroupId": "

    The ID of the security group. Required for a nondefault VPC.

    ", - "DeleteSnapshotRequest$SnapshotId": "

    The ID of the EBS snapshot.

    ", - "DeleteSubnetRequest$SubnetId": "

    The ID of the subnet.

    ", - "DeleteVolumeRequest$VolumeId": "

    The ID of the volume.

    ", - "DeleteVpcPeeringConnectionRequest$VpcPeeringConnectionId": "

    The ID of the VPC peering connection.

    ", - "DeleteVpcRequest$VpcId": "

    The ID of the VPC.

    ", - "DeleteVpnConnectionRequest$VpnConnectionId": "

    The ID of the VPN connection.

    ", - "DeleteVpnConnectionRouteRequest$VpnConnectionId": "

    The ID of the VPN connection.

    ", - "DeleteVpnConnectionRouteRequest$DestinationCidrBlock": "

    The CIDR block associated with the local subnet of the customer network.

    ", - "DeleteVpnGatewayRequest$VpnGatewayId": "

    The ID of the virtual private gateway.

    ", - "DeregisterImageRequest$ImageId": "

    The ID of the AMI.

    ", - "DescribeClassicLinkInstancesRequest$NextToken": "

    The token to retrieve the next page of results.

    ", - "DescribeClassicLinkInstancesResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeFlowLogsRequest$NextToken": "

    The token to retrieve the next page of results.

    ", - "DescribeFlowLogsResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeHostsRequest$NextToken": "

    The token to retrieve the next page of results.

    ", - "DescribeHostsResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeIdFormatRequest$Resource": "

    The type of resource.

    ", - "DescribeImageAttributeRequest$ImageId": "

    The ID of the AMI.

    ", - "DescribeImportImageTasksRequest$NextToken": "

    A token that indicates the next page of results.

    ", - "DescribeImportImageTasksResult$NextToken": "

    The token to use to get the next page of results. This value is null when there are no more results to return.

    ", - "DescribeImportSnapshotTasksRequest$NextToken": "

    A token that indicates the next page of results.

    ", - "DescribeImportSnapshotTasksResult$NextToken": "

    The token to use to get the next page of results. This value is null when there are no more results to return.

    ", - "DescribeInstanceAttributeRequest$InstanceId": "

    The ID of the instance.

    ", - "DescribeInstanceStatusRequest$NextToken": "

    The token to retrieve the next page of results.

    ", - "DescribeInstanceStatusResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeInstancesRequest$NextToken": "

    The token to request the next page of results.

    ", - "DescribeInstancesResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeMovingAddressesRequest$NextToken": "

    The token to use to retrieve the next page of results.

    ", - "DescribeMovingAddressesResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeNatGatewaysRequest$NextToken": "

    The token to retrieve the next page of results.

    ", - "DescribeNatGatewaysResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeNetworkInterfaceAttributeRequest$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "DescribeNetworkInterfaceAttributeResult$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "DescribePrefixListsRequest$NextToken": "

    The token for the next set of items to return. (You received this token from a prior call.)

    ", - "DescribePrefixListsResult$NextToken": "

    The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

    ", - "DescribeReservedInstancesListingsRequest$ReservedInstancesId": "

    One or more Reserved Instance IDs.

    ", - "DescribeReservedInstancesListingsRequest$ReservedInstancesListingId": "

    One or more Reserved Instance listing IDs.

    ", - "DescribeReservedInstancesModificationsRequest$NextToken": "

    The token to retrieve the next page of results.

    ", - "DescribeReservedInstancesModificationsResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeReservedInstancesOfferingsRequest$AvailabilityZone": "

    The Availability Zone in which the Reserved Instance can be used.

    ", - "DescribeReservedInstancesOfferingsRequest$NextToken": "

    The token to retrieve the next page of results.

    ", - "DescribeReservedInstancesOfferingsResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeScheduledInstanceAvailabilityRequest$NextToken": "

    The token for the next set of results.

    ", - "DescribeScheduledInstanceAvailabilityResult$NextToken": "

    The token required to retrieve the next set of results. This value is null when there are no more results to return.

    ", - "DescribeScheduledInstancesRequest$NextToken": "

    The token for the next set of results.

    ", - "DescribeScheduledInstancesResult$NextToken": "

    The token required to retrieve the next set of results. This value is null when there are no more results to return.

    ", - "DescribeSnapshotAttributeRequest$SnapshotId": "

    The ID of the EBS snapshot.

    ", - "DescribeSnapshotAttributeResult$SnapshotId": "

    The ID of the EBS snapshot.

    ", - "DescribeSnapshotsRequest$NextToken": "

    The NextToken value returned from a previous paginated DescribeSnapshots request where MaxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

    ", - "DescribeSnapshotsResult$NextToken": "

    The NextToken value to include in a future DescribeSnapshots request. When the results of a DescribeSnapshots request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeSpotFleetInstancesRequest$SpotFleetRequestId": "

    The ID of the Spot fleet request.

    ", - "DescribeSpotFleetInstancesRequest$NextToken": "

    The token for the next set of results.

    ", - "DescribeSpotFleetInstancesResponse$SpotFleetRequestId": "

    The ID of the Spot fleet request.

    ", - "DescribeSpotFleetInstancesResponse$NextToken": "

    The token required to retrieve the next set of results. This value is null when there are no more results to return.

    ", - "DescribeSpotFleetRequestHistoryRequest$SpotFleetRequestId": "

    The ID of the Spot fleet request.

    ", - "DescribeSpotFleetRequestHistoryRequest$NextToken": "

    The token for the next set of results.

    ", - "DescribeSpotFleetRequestHistoryResponse$SpotFleetRequestId": "

    The ID of the Spot fleet request.

    ", - "DescribeSpotFleetRequestHistoryResponse$NextToken": "

    The token required to retrieve the next set of results. This value is null when there are no more results to return.

    ", - "DescribeSpotFleetRequestsRequest$NextToken": "

    The token for the next set of results.

    ", - "DescribeSpotFleetRequestsResponse$NextToken": "

    The token required to retrieve the next set of results. This value is null when there are no more results to return.

    ", - "DescribeSpotPriceHistoryRequest$AvailabilityZone": "

    Filters the results by the specified Availability Zone.

    ", - "DescribeSpotPriceHistoryRequest$NextToken": "

    The token for the next set of results.

    ", - "DescribeSpotPriceHistoryResult$NextToken": "

    The token required to retrieve the next set of results. This value is null when there are no more results to return.

    ", - "DescribeStaleSecurityGroupsRequest$VpcId": "

    The ID of the VPC.

    ", - "DescribeStaleSecurityGroupsResult$NextToken": "

    The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

    ", - "DescribeTagsRequest$NextToken": "

    The token to retrieve the next page of results.

    ", - "DescribeTagsResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return..

    ", - "DescribeVolumeAttributeRequest$VolumeId": "

    The ID of the volume.

    ", - "DescribeVolumeAttributeResult$VolumeId": "

    The ID of the volume.

    ", - "DescribeVolumeStatusRequest$NextToken": "

    The NextToken value to include in a future DescribeVolumeStatus request. When the results of the request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeVolumeStatusResult$NextToken": "

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeVolumesRequest$NextToken": "

    The NextToken value returned from a previous paginated DescribeVolumes request where MaxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the NextToken value. This value is null when there are no more results to return.

    ", - "DescribeVolumesResult$NextToken": "

    The NextToken value to include in a future DescribeVolumes request. When the results of a DescribeVolumes request exceed MaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "DescribeVpcAttributeRequest$VpcId": "

    The ID of the VPC.

    ", - "DescribeVpcAttributeResult$VpcId": "

    The ID of the VPC.

    ", - "DescribeVpcEndpointServicesRequest$NextToken": "

    The token for the next set of items to return. (You received this token from a prior call.)

    ", - "DescribeVpcEndpointServicesResult$NextToken": "

    The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

    ", - "DescribeVpcEndpointsRequest$NextToken": "

    The token for the next set of items to return. (You received this token from a prior call.)

    ", - "DescribeVpcEndpointsResult$NextToken": "

    The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

    ", - "DetachClassicLinkVpcRequest$InstanceId": "

    The ID of the instance to unlink from the VPC.

    ", - "DetachClassicLinkVpcRequest$VpcId": "

    The ID of the VPC to which the instance is linked.

    ", - "DetachInternetGatewayRequest$InternetGatewayId": "

    The ID of the Internet gateway.

    ", - "DetachInternetGatewayRequest$VpcId": "

    The ID of the VPC.

    ", - "DetachNetworkInterfaceRequest$AttachmentId": "

    The ID of the attachment.

    ", - "DetachVolumeRequest$VolumeId": "

    The ID of the volume.

    ", - "DetachVolumeRequest$InstanceId": "

    The ID of the instance.

    ", - "DetachVolumeRequest$Device": "

    The device name.

    ", - "DetachVpnGatewayRequest$VpnGatewayId": "

    The ID of the virtual private gateway.

    ", - "DetachVpnGatewayRequest$VpcId": "

    The ID of the VPC.

    ", - "DhcpConfiguration$Key": "

    The name of a DHCP option.

    ", - "DhcpOptions$DhcpOptionsId": "

    The ID of the set of DHCP options.

    ", - "DhcpOptionsIdStringList$member": null, - "DisableVgwRoutePropagationRequest$RouteTableId": "

    The ID of the route table.

    ", - "DisableVgwRoutePropagationRequest$GatewayId": "

    The ID of the virtual private gateway.

    ", - "DisableVpcClassicLinkDnsSupportRequest$VpcId": "

    The ID of the VPC.

    ", - "DisableVpcClassicLinkRequest$VpcId": "

    The ID of the VPC.

    ", - "DisassociateAddressRequest$PublicIp": "

    [EC2-Classic] The Elastic IP address. Required for EC2-Classic.

    ", - "DisassociateAddressRequest$AssociationId": "

    [EC2-VPC] The association ID. Required for EC2-VPC.

    ", - "DisassociateRouteTableRequest$AssociationId": "

    The association ID representing the current association between the route table and subnet.

    ", - "DiskImage$Description": "

    A description of the disk image.

    ", - "DiskImageDescription$ImportManifestUrl": "

    A presigned URL for the import manifest stored in Amazon S3. For information about creating a presigned URL for an Amazon S3 object, read the \"Query String Request Authentication Alternative\" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    ", - "DiskImageDescription$Checksum": "

    The checksum computed for the disk image.

    ", - "DiskImageDetail$ImportManifestUrl": "

    A presigned URL for the import manifest stored in Amazon S3 and presented here as an Amazon S3 presigned URL. For information about creating a presigned URL for an Amazon S3 object, read the \"Query String Request Authentication Alternative\" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    ", - "DiskImageVolumeDescription$Id": "

    The volume identifier.

    ", - "EbsBlockDevice$SnapshotId": "

    The ID of the snapshot.

    ", - "EbsInstanceBlockDevice$VolumeId": "

    The ID of the EBS volume.

    ", - "EbsInstanceBlockDeviceSpecification$VolumeId": "

    The ID of the EBS volume.

    ", - "EnableVgwRoutePropagationRequest$RouteTableId": "

    The ID of the route table.

    ", - "EnableVgwRoutePropagationRequest$GatewayId": "

    The ID of the virtual private gateway.

    ", - "EnableVolumeIORequest$VolumeId": "

    The ID of the volume.

    ", - "EnableVpcClassicLinkDnsSupportRequest$VpcId": "

    The ID of the VPC.

    ", - "EnableVpcClassicLinkRequest$VpcId": "

    The ID of the VPC.

    ", - "EventInformation$InstanceId": "

    The ID of the instance. This information is available only for instanceChange events.

    ", - "EventInformation$EventSubType": "

    The event.

    The following are the error events.

    • iamFleetRoleInvalid - The Spot fleet did not have the required permissions either to launch or terminate an instance.

    • launchSpecTemporarilyBlacklisted - The configuration is not valid and several attempts to launch instances have failed. For more information, see the description of the event.

    • spotFleetRequestConfigurationInvalid - The configuration is not valid. For more information, see the description of the event.

    • spotInstanceCountLimitExceeded - You've reached the limit on the number of Spot instances that you can launch.

    The following are the fleetRequestChange events.

    • active - The Spot fleet has been validated and Amazon EC2 is attempting to maintain the target number of running Spot instances.

    • cancelled - The Spot fleet is canceled and has no running Spot instances. The Spot fleet will be deleted two days after its instances were terminated.

    • cancelled_running - The Spot fleet is canceled and will not launch additional Spot instances, but its existing Spot instances continue to run until they are interrupted or terminated.

    • cancelled_terminating - The Spot fleet is canceled and its Spot instances are terminating.

    • expired - The Spot fleet request has expired. A subsequent event indicates that the instances were terminated, if the request was created with TerminateInstancesWithExpiration set.

    • modify_in_progress - A request to modify the Spot fleet request was accepted and is in progress.

    • modify_successful - The Spot fleet request was modified.

    • price_update - The bid price for a launch configuration was adjusted because it was too high. This change is permanent.

    • submitted - The Spot fleet request is being evaluated and Amazon EC2 is preparing to launch the target number of Spot instances.

    The following are the instanceChange events.

    • launched - A bid was fulfilled and a new instance was launched.

    • terminated - An instance was terminated by the user.

    ", - "EventInformation$EventDescription": "

    The description of the event.

    ", - "ExecutableByStringList$member": null, - "ExportTask$ExportTaskId": "

    The ID of the export task.

    ", - "ExportTask$Description": "

    A description of the resource being exported.

    ", - "ExportTask$StatusMessage": "

    The status message related to the export task.

    ", - "ExportTaskIdStringList$member": null, - "ExportToS3Task$S3Bucket": "

    The S3 bucket for the destination image. The destination bucket must exist and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.

    ", - "ExportToS3Task$S3Key": "

    The encryption key for your S3 bucket.

    ", - "ExportToS3TaskSpecification$S3Bucket": "

    The S3 bucket for the destination image. The destination bucket must exist and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.

    ", - "ExportToS3TaskSpecification$S3Prefix": "

    The image is written to a single object in the S3 bucket at the S3 key s3prefix + exportTaskId + '.' + diskImageFormat.

    ", - "Filter$Name": "

    The name of the filter. Filter names are case-sensitive.

    ", - "FlowLog$FlowLogId": "

    The flow log ID.

    ", - "FlowLog$FlowLogStatus": "

    The status of the flow log (ACTIVE).

    ", - "FlowLog$ResourceId": "

    The ID of the resource on which the flow log was created.

    ", - "FlowLog$LogGroupName": "

    The name of the flow log group.

    ", - "FlowLog$DeliverLogsStatus": "

    The status of the logs delivery (SUCCESS | FAILED).

    ", - "FlowLog$DeliverLogsErrorMessage": "

    Information about the error that occurred. Rate limited indicates that CloudWatch logs throttling has been applied for one or more network interfaces, or that you've reached the limit on the number of CloudWatch Logs log groups that you can create. Access error indicates that the IAM role associated with the flow log does not have sufficient permissions to publish to CloudWatch Logs. Unknown error indicates an internal error.

    ", - "FlowLog$DeliverLogsPermissionArn": "

    The ARN of the IAM role that posts logs to CloudWatch Logs.

    ", - "GetConsoleOutputRequest$InstanceId": "

    The ID of the instance.

    ", - "GetConsoleOutputResult$InstanceId": "

    The ID of the instance.

    ", - "GetConsoleOutputResult$Output": "

    The console output, base64-encoded. If using a command line tool, the tools decode the output for you.

    ", - "GetConsoleScreenshotRequest$InstanceId": "

    The ID of the instance.

    ", - "GetConsoleScreenshotResult$InstanceId": "

    The ID of the instance.

    ", - "GetConsoleScreenshotResult$ImageData": "

    The data that comprises the image.

    ", - "GetPasswordDataRequest$InstanceId": "

    The ID of the Windows instance.

    ", - "GetPasswordDataResult$InstanceId": "

    The ID of the Windows instance.

    ", - "GetPasswordDataResult$PasswordData": "

    The password of the instance.

    ", - "GroupIdStringList$member": null, - "GroupIdentifier$GroupName": "

    The name of the security group.

    ", - "GroupIdentifier$GroupId": "

    The ID of the security group.

    ", - "GroupIds$member": null, - "GroupNameStringList$member": null, - "Host$HostId": "

    The ID of the Dedicated host.

    ", - "Host$HostReservationId": "

    The reservation ID of the Dedicated host. This returns a null response if the Dedicated host doesn't have an associated reservation.

    ", - "Host$ClientToken": "

    Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

    ", - "Host$AvailabilityZone": "

    The Availability Zone of the Dedicated host.

    ", - "HostInstance$InstanceId": "

    the IDs of instances that are running on the Dedicated host.

    ", - "HostInstance$InstanceType": "

    The instance type size (for example, m3.medium) of the running instance.

    ", - "HostProperties$InstanceType": "

    The instance type size that the Dedicated host supports (for example, m3.medium).

    ", - "IamInstanceProfile$Arn": "

    The Amazon Resource Name (ARN) of the instance profile.

    ", - "IamInstanceProfile$Id": "

    The ID of the instance profile.

    ", - "IamInstanceProfileSpecification$Arn": "

    The Amazon Resource Name (ARN) of the instance profile.

    ", - "IamInstanceProfileSpecification$Name": "

    The name of the instance profile.

    ", - "IdFormat$Resource": "

    The type of resource.

    ", - "Image$ImageId": "

    The ID of the AMI.

    ", - "Image$ImageLocation": "

    The location of the AMI.

    ", - "Image$OwnerId": "

    The AWS account ID of the image owner.

    ", - "Image$CreationDate": "

    The date and time the image was created.

    ", - "Image$KernelId": "

    The kernel associated with the image, if any. Only applicable for machine images.

    ", - "Image$RamdiskId": "

    The RAM disk associated with the image, if any. Only applicable for machine images.

    ", - "Image$SriovNetSupport": "

    Specifies whether enhanced networking is enabled.

    ", - "Image$ImageOwnerAlias": "

    The AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner.

    ", - "Image$Name": "

    The name of the AMI that was provided during image creation.

    ", - "Image$Description": "

    The description of the AMI that was provided during image creation.

    ", - "Image$RootDeviceName": "

    The device name of the root device (for example, /dev/sda1 or /dev/xvda).

    ", - "ImageAttribute$ImageId": "

    The ID of the AMI.

    ", - "ImageDiskContainer$Description": "

    The description of the disk image.

    ", - "ImageDiskContainer$Format": "

    The format of the disk image being imported.

    Valid values: RAW | VHD | VMDK | OVA

    ", - "ImageDiskContainer$Url": "

    The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)

    ", - "ImageDiskContainer$DeviceName": "

    The block device mapping for the disk.

    ", - "ImageDiskContainer$SnapshotId": "

    The ID of the EBS snapshot to be used for importing the snapshot.

    ", - "ImageIdStringList$member": null, - "ImportImageRequest$Description": "

    A description string for the import image task.

    ", - "ImportImageRequest$LicenseType": "

    The license type to be used for the Amazon Machine Image (AMI) after importing.

    Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.

    Valid values: AWS | BYOL

    ", - "ImportImageRequest$Hypervisor": "

    The target hypervisor platform.

    Valid values: xen

    ", - "ImportImageRequest$Architecture": "

    The architecture of the virtual machine.

    Valid values: i386 | x86_64

    ", - "ImportImageRequest$Platform": "

    The operating system of the virtual machine.

    Valid values: Windows | Linux

    ", - "ImportImageRequest$ClientToken": "

    The token to enable idempotency for VM import requests.

    ", - "ImportImageRequest$RoleName": "

    The name of the role to use when not using the default role, 'vmimport'.

    ", - "ImportImageResult$ImportTaskId": "

    The task ID of the import image task.

    ", - "ImportImageResult$Architecture": "

    The architecture of the virtual machine.

    ", - "ImportImageResult$LicenseType": "

    The license type of the virtual machine.

    ", - "ImportImageResult$Platform": "

    The operating system of the virtual machine.

    ", - "ImportImageResult$Hypervisor": "

    The target hypervisor of the import task.

    ", - "ImportImageResult$Description": "

    A description of the import task.

    ", - "ImportImageResult$ImageId": "

    The ID of the Amazon Machine Image (AMI) created by the import task.

    ", - "ImportImageResult$Progress": "

    The progress of the task.

    ", - "ImportImageResult$StatusMessage": "

    A detailed status message of the import task.

    ", - "ImportImageResult$Status": "

    A brief status of the task.

    ", - "ImportImageTask$ImportTaskId": "

    The ID of the import image task.

    ", - "ImportImageTask$Architecture": "

    The architecture of the virtual machine.

    Valid values: i386 | x86_64

    ", - "ImportImageTask$LicenseType": "

    The license type of the virtual machine.

    ", - "ImportImageTask$Platform": "

    The description string for the import image task.

    ", - "ImportImageTask$Hypervisor": "

    The target hypervisor for the import task.

    Valid values: xen

    ", - "ImportImageTask$Description": "

    A description of the import task.

    ", - "ImportImageTask$ImageId": "

    The ID of the Amazon Machine Image (AMI) of the imported virtual machine.

    ", - "ImportImageTask$Progress": "

    The percentage of progress of the import image task.

    ", - "ImportImageTask$StatusMessage": "

    A descriptive status message for the import image task.

    ", - "ImportImageTask$Status": "

    A brief status for the import image task.

    ", - "ImportInstanceLaunchSpecification$AdditionalInfo": "

    Reserved.

    ", - "ImportInstanceLaunchSpecification$SubnetId": "

    [EC2-VPC] The ID of the subnet in which to launch the instance.

    ", - "ImportInstanceLaunchSpecification$PrivateIpAddress": "

    [EC2-VPC] An available IP address from the IP address range of the subnet.

    ", - "ImportInstanceRequest$Description": "

    A description for the instance being imported.

    ", - "ImportInstanceTaskDetails$InstanceId": "

    The ID of the instance.

    ", - "ImportInstanceTaskDetails$Description": "

    A description of the task.

    ", - "ImportInstanceVolumeDetailItem$AvailabilityZone": "

    The Availability Zone where the resulting instance will reside.

    ", - "ImportInstanceVolumeDetailItem$Status": "

    The status of the import of this particular disk image.

    ", - "ImportInstanceVolumeDetailItem$StatusMessage": "

    The status information or errors related to the disk image.

    ", - "ImportInstanceVolumeDetailItem$Description": "

    A description of the task.

    ", - "ImportKeyPairRequest$KeyName": "

    A unique name for the key pair.

    ", - "ImportKeyPairResult$KeyName": "

    The key pair name you provided.

    ", - "ImportKeyPairResult$KeyFingerprint": "

    The MD5 public key fingerprint as specified in section 4 of RFC 4716.

    ", - "ImportSnapshotRequest$Description": "

    The description string for the import snapshot task.

    ", - "ImportSnapshotRequest$ClientToken": "

    Token to enable idempotency for VM import requests.

    ", - "ImportSnapshotRequest$RoleName": "

    The name of the role to use when not using the default role, 'vmimport'.

    ", - "ImportSnapshotResult$ImportTaskId": "

    The ID of the import snapshot task.

    ", - "ImportSnapshotResult$Description": "

    A description of the import snapshot task.

    ", - "ImportSnapshotTask$ImportTaskId": "

    The ID of the import snapshot task.

    ", - "ImportSnapshotTask$Description": "

    A description of the import snapshot task.

    ", - "ImportTaskIdList$member": null, - "ImportVolumeRequest$AvailabilityZone": "

    The Availability Zone for the resulting EBS volume.

    ", - "ImportVolumeRequest$Description": "

    A description of the volume.

    ", - "ImportVolumeTaskDetails$AvailabilityZone": "

    The Availability Zone where the resulting volume will reside.

    ", - "ImportVolumeTaskDetails$Description": "

    The description you provided when starting the import volume task.

    ", - "Instance$InstanceId": "

    The ID of the instance.

    ", - "Instance$ImageId": "

    The ID of the AMI used to launch the instance.

    ", - "Instance$PrivateDnsName": "

    The private DNS name assigned to the instance. This DNS name can only be used inside the Amazon EC2 network. This name is not available until the instance enters the running state. For EC2-VPC, this name is only available if you've enabled DNS hostnames for your VPC.

    ", - "Instance$PublicDnsName": "

    The public DNS name assigned to the instance. This name is not available until the instance enters the running state. For EC2-VPC, this name is only available if you've enabled DNS hostnames for your VPC.

    ", - "Instance$StateTransitionReason": "

    The reason for the most recent state transition. This might be an empty string.

    ", - "Instance$KeyName": "

    The name of the key pair, if this instance was launched with an associated key pair.

    ", - "Instance$KernelId": "

    The kernel associated with this instance, if applicable.

    ", - "Instance$RamdiskId": "

    The RAM disk associated with this instance, if applicable.

    ", - "Instance$SubnetId": "

    [EC2-VPC] The ID of the subnet in which the instance is running.

    ", - "Instance$VpcId": "

    [EC2-VPC] The ID of the VPC in which the instance is running.

    ", - "Instance$PrivateIpAddress": "

    The private IP address assigned to the instance.

    ", - "Instance$PublicIpAddress": "

    The public IP address assigned to the instance, if applicable.

    ", - "Instance$RootDeviceName": "

    The root device name (for example, /dev/sda1 or /dev/xvda).

    ", - "Instance$SpotInstanceRequestId": "

    If the request is a Spot instance request, the ID of the request.

    ", - "Instance$ClientToken": "

    The idempotency token you provided when you launched the instance, if applicable.

    ", - "Instance$SriovNetSupport": "

    Specifies whether enhanced networking is enabled.

    ", - "InstanceAttribute$InstanceId": "

    The ID of the instance.

    ", - "InstanceBlockDeviceMapping$DeviceName": "

    The device name exposed to the instance (for example, /dev/sdh or xvdh).

    ", - "InstanceBlockDeviceMappingSpecification$DeviceName": "

    The device name exposed to the instance (for example, /dev/sdh or xvdh).

    ", - "InstanceBlockDeviceMappingSpecification$VirtualName": "

    The virtual device name.

    ", - "InstanceBlockDeviceMappingSpecification$NoDevice": "

    suppress the specified device included in the block device mapping.

    ", - "InstanceCapacity$InstanceType": "

    The instance type size supported by the Dedicated host.

    ", - "InstanceExportDetails$InstanceId": "

    The ID of the resource being exported.

    ", - "InstanceIdSet$member": null, - "InstanceIdStringList$member": null, - "InstanceMonitoring$InstanceId": "

    The ID of the instance.

    ", - "InstanceNetworkInterface$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "InstanceNetworkInterface$SubnetId": "

    The ID of the subnet.

    ", - "InstanceNetworkInterface$VpcId": "

    The ID of the VPC.

    ", - "InstanceNetworkInterface$Description": "

    The description.

    ", - "InstanceNetworkInterface$OwnerId": "

    The ID of the AWS account that created the network interface.

    ", - "InstanceNetworkInterface$MacAddress": "

    The MAC address.

    ", - "InstanceNetworkInterface$PrivateIpAddress": "

    The IP address of the network interface within the subnet.

    ", - "InstanceNetworkInterface$PrivateDnsName": "

    The private DNS name.

    ", - "InstanceNetworkInterfaceAssociation$PublicIp": "

    The public IP address or Elastic IP address bound to the network interface.

    ", - "InstanceNetworkInterfaceAssociation$PublicDnsName": "

    The public DNS name.

    ", - "InstanceNetworkInterfaceAssociation$IpOwnerId": "

    The ID of the owner of the Elastic IP address.

    ", - "InstanceNetworkInterfaceAttachment$AttachmentId": "

    The ID of the network interface attachment.

    ", - "InstanceNetworkInterfaceSpecification$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "InstanceNetworkInterfaceSpecification$SubnetId": "

    The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.

    ", - "InstanceNetworkInterfaceSpecification$Description": "

    The description of the network interface. Applies only if creating a network interface when launching an instance.

    ", - "InstanceNetworkInterfaceSpecification$PrivateIpAddress": "

    The private IP address of the network interface. Applies only if creating a network interface when launching an instance.

    ", - "InstancePrivateIpAddress$PrivateIpAddress": "

    The private IP address of the network interface.

    ", - "InstancePrivateIpAddress$PrivateDnsName": "

    The private DNS name.

    ", - "InstanceStateChange$InstanceId": "

    The ID of the instance.

    ", - "InstanceStatus$InstanceId": "

    The ID of the instance.

    ", - "InstanceStatus$AvailabilityZone": "

    The Availability Zone of the instance.

    ", - "InstanceStatusEvent$Description": "

    A description of the event.

    After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

    ", - "InternetGateway$InternetGatewayId": "

    The ID of the Internet gateway.

    ", - "InternetGatewayAttachment$VpcId": "

    The ID of the VPC.

    ", - "IpPermission$IpProtocol": "

    The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers).

    [EC2-VPC only] When you authorize or revoke security group rules, you can use -1 to specify all.

    ", - "IpRange$CidrIp": "

    The CIDR range. You can either specify a CIDR range or a source security group, not both.

    ", - "IpRanges$member": null, - "KeyNameStringList$member": null, - "KeyPair$KeyName": "

    The name of the key pair.

    ", - "KeyPair$KeyFingerprint": "

    The SHA-1 digest of the DER encoded private key.

    ", - "KeyPair$KeyMaterial": "

    An unencrypted PEM encoded RSA private key.

    ", - "KeyPairInfo$KeyName": "

    The name of the key pair.

    ", - "KeyPairInfo$KeyFingerprint": "

    If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key. If you used ImportKeyPair to provide AWS the public key, this is the MD5 public key fingerprint as specified in section 4 of RFC4716.

    ", - "LaunchPermission$UserId": "

    The AWS account ID.

    ", - "LaunchSpecification$ImageId": "

    The ID of the AMI.

    ", - "LaunchSpecification$KeyName": "

    The name of the key pair.

    ", - "LaunchSpecification$UserData": "

    The Base64-encoded MIME user data to make available to the instances.

    ", - "LaunchSpecification$AddressingType": "

    Deprecated.

    ", - "LaunchSpecification$KernelId": "

    The ID of the kernel.

    ", - "LaunchSpecification$RamdiskId": "

    The ID of the RAM disk.

    ", - "LaunchSpecification$SubnetId": "

    The ID of the subnet in which to launch the instance.

    ", - "ModifyIdFormatRequest$Resource": "

    The type of resource.

    ", - "ModifyImageAttributeRequest$ImageId": "

    The ID of the AMI.

    ", - "ModifyImageAttributeRequest$Attribute": "

    The name of the attribute to modify.

    ", - "ModifyImageAttributeRequest$Value": "

    The value of the attribute being modified. This is only valid when modifying the description attribute.

    ", - "ModifyInstanceAttributeRequest$InstanceId": "

    The ID of the instance.

    ", - "ModifyInstanceAttributeRequest$Value": "

    A new value for the attribute. Use only with the kernel, ramdisk, userData, disableApiTermination, or instanceInitiatedShutdownBehavior attribute.

    ", - "ModifyInstancePlacementRequest$InstanceId": "

    The ID of the instance that you are modifying.

    ", - "ModifyInstancePlacementRequest$HostId": "

    The ID of the Dedicated host that the instance will have affinity with.

    ", - "ModifyNetworkInterfaceAttributeRequest$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "ModifyReservedInstancesRequest$ClientToken": "

    A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.

    ", - "ModifyReservedInstancesResult$ReservedInstancesModificationId": "

    The ID for the modification.

    ", - "ModifySnapshotAttributeRequest$SnapshotId": "

    The ID of the snapshot.

    ", - "ModifySpotFleetRequestRequest$SpotFleetRequestId": "

    The ID of the Spot fleet request.

    ", - "ModifySubnetAttributeRequest$SubnetId": "

    The ID of the subnet.

    ", - "ModifyVolumeAttributeRequest$VolumeId": "

    The ID of the volume.

    ", - "ModifyVpcAttributeRequest$VpcId": "

    The ID of the VPC.

    ", - "ModifyVpcEndpointRequest$VpcEndpointId": "

    The ID of the endpoint.

    ", - "ModifyVpcEndpointRequest$PolicyDocument": "

    A policy document to attach to the endpoint. The policy must be in valid JSON format.

    ", - "ModifyVpcPeeringConnectionOptionsRequest$VpcPeeringConnectionId": "

    The ID of the VPC peering connection.

    ", - "MoveAddressToVpcRequest$PublicIp": "

    The Elastic IP address.

    ", - "MoveAddressToVpcResult$AllocationId": "

    The allocation ID for the Elastic IP address.

    ", - "MovingAddressStatus$PublicIp": "

    The Elastic IP address.

    ", - "NatGateway$VpcId": "

    The ID of the VPC in which the NAT gateway is located.

    ", - "NatGateway$SubnetId": "

    The ID of the subnet in which the NAT gateway is located.

    ", - "NatGateway$NatGatewayId": "

    The ID of the NAT gateway.

    ", - "NatGateway$FailureCode": "

    If the NAT gateway could not be created, specifies the error code for the failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)

    ", - "NatGateway$FailureMessage": "

    If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.

    • For InsufficientFreeAddressesInSubnet: \"Subnet has insufficient free addresses to create this NAT gateway\"

    • For Gateway.NotAttached: \"Network vpc-xxxxxxxx has no Internet gateway attached\"

    • For InvalidAllocationID.NotFound: \"Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway\"

    • For Resource.AlreadyAssociated: \"Elastic IP address eipalloc-xxxxxxxx is already associated\"

    • For InternalError: \"Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again.\"

    • For InvalidSubnetID.NotFound: \"The specified subnet subnet-xxxxxxxx does not exist or could not be found.\"

    ", - "NatGatewayAddress$PublicIp": "

    The Elastic IP address associated with the NAT gateway.

    ", - "NatGatewayAddress$AllocationId": "

    The allocation ID of the Elastic IP address that's associated with the NAT gateway.

    ", - "NatGatewayAddress$PrivateIp": "

    The private IP address associated with the Elastic IP address.

    ", - "NatGatewayAddress$NetworkInterfaceId": "

    The ID of the network interface associated with the NAT gateway.

    ", - "NetworkAcl$NetworkAclId": "

    The ID of the network ACL.

    ", - "NetworkAcl$VpcId": "

    The ID of the VPC for the network ACL.

    ", - "NetworkAclAssociation$NetworkAclAssociationId": "

    The ID of the association between a network ACL and a subnet.

    ", - "NetworkAclAssociation$NetworkAclId": "

    The ID of the network ACL.

    ", - "NetworkAclAssociation$SubnetId": "

    The ID of the subnet.

    ", - "NetworkAclEntry$Protocol": "

    The protocol. A value of -1 means all protocols.

    ", - "NetworkAclEntry$CidrBlock": "

    The network range to allow or deny, in CIDR notation.

    ", - "NetworkInterface$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "NetworkInterface$SubnetId": "

    The ID of the subnet.

    ", - "NetworkInterface$VpcId": "

    The ID of the VPC.

    ", - "NetworkInterface$AvailabilityZone": "

    The Availability Zone.

    ", - "NetworkInterface$Description": "

    A description.

    ", - "NetworkInterface$OwnerId": "

    The AWS account ID of the owner of the network interface.

    ", - "NetworkInterface$RequesterId": "

    The ID of the entity that launched the instance on your behalf (for example, AWS Management Console or Auto Scaling).

    ", - "NetworkInterface$MacAddress": "

    The MAC address.

    ", - "NetworkInterface$PrivateIpAddress": "

    The IP address of the network interface within the subnet.

    ", - "NetworkInterface$PrivateDnsName": "

    The private DNS name.

    ", - "NetworkInterfaceAssociation$PublicIp": "

    The address of the Elastic IP address bound to the network interface.

    ", - "NetworkInterfaceAssociation$PublicDnsName": "

    The public DNS name.

    ", - "NetworkInterfaceAssociation$IpOwnerId": "

    The ID of the Elastic IP address owner.

    ", - "NetworkInterfaceAssociation$AllocationId": "

    The allocation ID.

    ", - "NetworkInterfaceAssociation$AssociationId": "

    The association ID.

    ", - "NetworkInterfaceAttachment$AttachmentId": "

    The ID of the network interface attachment.

    ", - "NetworkInterfaceAttachment$InstanceId": "

    The ID of the instance.

    ", - "NetworkInterfaceAttachment$InstanceOwnerId": "

    The AWS account ID of the owner of the instance.

    ", - "NetworkInterfaceAttachmentChanges$AttachmentId": "

    The ID of the network interface attachment.

    ", - "NetworkInterfaceIdList$member": null, - "NetworkInterfacePrivateIpAddress$PrivateIpAddress": "

    The private IP address.

    ", - "NetworkInterfacePrivateIpAddress$PrivateDnsName": "

    The private DNS name.

    ", - "NewDhcpConfiguration$Key": null, - "OwnerStringList$member": null, - "Placement$AvailabilityZone": "

    The Availability Zone of the instance.

    ", - "Placement$GroupName": "

    The name of the placement group the instance is in (for cluster compute instances).

    ", - "Placement$HostId": "

    The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.

    ", - "Placement$Affinity": "

    The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.

    ", - "PlacementGroup$GroupName": "

    The name of the placement group.

    ", - "PlacementGroupStringList$member": null, - "PrefixList$PrefixListId": "

    The ID of the prefix.

    ", - "PrefixList$PrefixListName": "

    The name of the prefix.

    ", - "PrefixListId$PrefixListId": "

    The ID of the prefix.

    ", - "PrefixListIdSet$member": null, - "PrivateIpAddressSpecification$PrivateIpAddress": "

    The private IP addresses.

    ", - "PrivateIpAddressStringList$member": null, - "ProductCode$ProductCodeId": "

    The product code.

    ", - "ProductCodeStringList$member": null, - "ProductDescriptionList$member": null, - "PropagatingVgw$GatewayId": "

    The ID of the virtual private gateway (VGW).

    ", - "ProvisionedBandwidth$Provisioned": "

    Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

    ", - "ProvisionedBandwidth$Requested": "

    Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

    ", - "ProvisionedBandwidth$Status": "

    Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

    ", - "PublicIpStringList$member": null, - "PurchaseRequest$PurchaseToken": "

    The purchase token.

    ", - "PurchaseReservedInstancesOfferingRequest$ReservedInstancesOfferingId": "

    The ID of the Reserved Instance offering to purchase.

    ", - "PurchaseReservedInstancesOfferingResult$ReservedInstancesId": "

    The IDs of the purchased Reserved Instances.

    ", - "PurchaseScheduledInstancesRequest$ClientToken": "

    Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.

    ", - "Region$RegionName": "

    The name of the region.

    ", - "Region$Endpoint": "

    The region service endpoint.

    ", - "RegionNameStringList$member": null, - "RegisterImageRequest$ImageLocation": "

    The full path to your AMI manifest in Amazon S3 storage.

    ", - "RegisterImageRequest$Name": "

    A name for your AMI.

    Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

    ", - "RegisterImageRequest$Description": "

    A description for your AMI.

    ", - "RegisterImageRequest$KernelId": "

    The ID of the kernel.

    ", - "RegisterImageRequest$RamdiskId": "

    The ID of the RAM disk.

    ", - "RegisterImageRequest$RootDeviceName": "

    The name of the root device (for example, /dev/sda1, or /dev/xvda).

    ", - "RegisterImageRequest$VirtualizationType": "

    The type of virtualization.

    Default: paravirtual

    ", - "RegisterImageRequest$SriovNetSupport": "

    Set to simple to enable enhanced networking for the AMI and any instances that you launch from the AMI.

    There is no way to disable enhanced networking at this time.

    This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable.

    ", - "RegisterImageResult$ImageId": "

    The ID of the newly registered AMI.

    ", - "RejectVpcPeeringConnectionRequest$VpcPeeringConnectionId": "

    The ID of the VPC peering connection.

    ", - "ReleaseAddressRequest$PublicIp": "

    [EC2-Classic] The Elastic IP address. Required for EC2-Classic.

    ", - "ReleaseAddressRequest$AllocationId": "

    [EC2-VPC] The allocation ID. Required for EC2-VPC.

    ", - "ReplaceNetworkAclAssociationRequest$AssociationId": "

    The ID of the current association between the original network ACL and the subnet.

    ", - "ReplaceNetworkAclAssociationRequest$NetworkAclId": "

    The ID of the new network ACL to associate with the subnet.

    ", - "ReplaceNetworkAclAssociationResult$NewAssociationId": "

    The ID of the new association.

    ", - "ReplaceNetworkAclEntryRequest$NetworkAclId": "

    The ID of the ACL.

    ", - "ReplaceNetworkAclEntryRequest$Protocol": "

    The IP protocol. You can specify all or -1 to mean all protocols.

    ", - "ReplaceNetworkAclEntryRequest$CidrBlock": "

    The network range to allow or deny, in CIDR notation.

    ", - "ReplaceRouteRequest$RouteTableId": "

    The ID of the route table.

    ", - "ReplaceRouteRequest$DestinationCidrBlock": "

    The CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.

    ", - "ReplaceRouteRequest$GatewayId": "

    The ID of an Internet gateway or virtual private gateway.

    ", - "ReplaceRouteRequest$InstanceId": "

    The ID of a NAT instance in your VPC.

    ", - "ReplaceRouteRequest$NetworkInterfaceId": "

    The ID of a network interface.

    ", - "ReplaceRouteRequest$VpcPeeringConnectionId": "

    The ID of a VPC peering connection.

    ", - "ReplaceRouteRequest$NatGatewayId": "

    The ID of a NAT gateway.

    ", - "ReplaceRouteTableAssociationRequest$AssociationId": "

    The association ID.

    ", - "ReplaceRouteTableAssociationRequest$RouteTableId": "

    The ID of the new route table to associate with the subnet.

    ", - "ReplaceRouteTableAssociationResult$NewAssociationId": "

    The ID of the new association.

    ", - "ReportInstanceStatusRequest$Description": "

    Descriptive text about the health state of your instance.

    ", - "RequestHostIdList$member": null, - "RequestSpotFleetResponse$SpotFleetRequestId": "

    The ID of the Spot fleet request.

    ", - "RequestSpotInstancesRequest$SpotPrice": "

    The maximum hourly price (bid) for any Spot instance launched to fulfill the request.

    ", - "RequestSpotInstancesRequest$ClientToken": "

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

    ", - "RequestSpotInstancesRequest$LaunchGroup": "

    The instance launch group. Launch groups are Spot instances that launch together and terminate together.

    Default: Instances are launched and terminated individually

    ", - "RequestSpotInstancesRequest$AvailabilityZoneGroup": "

    The user-specified name for a logical grouping of bids.

    When you specify an Availability Zone group in a Spot Instance request, all Spot instances in the request are launched in the same Availability Zone. Instance proximity is maintained with this parameter, but the choice of Availability Zone is not. The group applies only to bids for Spot Instances of the same instance type. Any additional Spot instance requests that are specified with the same Availability Zone group name are launched in that same Availability Zone, as long as at least one instance from the group is still active.

    If there is no active instance running in the Availability Zone group that you specify for a new Spot instance request (all instances are terminated, the bid is expired, or the bid falls below current market), then Amazon EC2 launches the instance in any Availability Zone where the constraint can be met. Consequently, the subsequent set of Spot instances could be placed in a different zone from the original request, even if you specified the same Availability Zone group.

    Default: Instances are launched in any available Availability Zone.

    ", - "RequestSpotLaunchSpecification$ImageId": "

    The ID of the AMI.

    ", - "RequestSpotLaunchSpecification$KeyName": "

    The name of the key pair.

    ", - "RequestSpotLaunchSpecification$UserData": "

    The Base64-encoded MIME user data to make available to the instances.

    ", - "RequestSpotLaunchSpecification$AddressingType": "

    Deprecated.

    ", - "RequestSpotLaunchSpecification$KernelId": "

    The ID of the kernel.

    ", - "RequestSpotLaunchSpecification$RamdiskId": "

    The ID of the RAM disk.

    ", - "RequestSpotLaunchSpecification$SubnetId": "

    The ID of the subnet in which to launch the instance.

    ", - "Reservation$ReservationId": "

    The ID of the reservation.

    ", - "Reservation$OwnerId": "

    The ID of the AWS account that owns the reservation.

    ", - "Reservation$RequesterId": "

    The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).

    ", - "ReservedInstances$ReservedInstancesId": "

    The ID of the Reserved Instance.

    ", - "ReservedInstances$AvailabilityZone": "

    The Availability Zone in which the Reserved Instance can be used.

    ", - "ReservedInstancesConfiguration$AvailabilityZone": "

    The Availability Zone for the modified Reserved Instances.

    ", - "ReservedInstancesConfiguration$Platform": "

    The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.

    ", - "ReservedInstancesId$ReservedInstancesId": "

    The ID of the Reserved Instance.

    ", - "ReservedInstancesIdStringList$member": null, - "ReservedInstancesListing$ReservedInstancesListingId": "

    The ID of the Reserved Instance listing.

    ", - "ReservedInstancesListing$ReservedInstancesId": "

    The ID of the Reserved Instance.

    ", - "ReservedInstancesListing$StatusMessage": "

    The reason for the current status of the Reserved Instance listing. The response can be blank.

    ", - "ReservedInstancesListing$ClientToken": "

    A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.

    ", - "ReservedInstancesModification$ReservedInstancesModificationId": "

    A unique ID for the Reserved Instance modification.

    ", - "ReservedInstancesModification$Status": "

    The status of the Reserved Instances modification request.

    ", - "ReservedInstancesModification$StatusMessage": "

    The reason for the status.

    ", - "ReservedInstancesModification$ClientToken": "

    A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.

    ", - "ReservedInstancesModificationIdStringList$member": null, - "ReservedInstancesModificationResult$ReservedInstancesId": "

    The ID for the Reserved Instances that were created as part of the modification request. This field is only available when the modification is fulfilled.

    ", - "ReservedInstancesOffering$ReservedInstancesOfferingId": "

    The ID of the Reserved Instance offering.

    ", - "ReservedInstancesOffering$AvailabilityZone": "

    The Availability Zone in which the Reserved Instance can be used.

    ", - "ReservedInstancesOfferingIdStringList$member": null, - "ResetImageAttributeRequest$ImageId": "

    The ID of the AMI.

    ", - "ResetInstanceAttributeRequest$InstanceId": "

    The ID of the instance.

    ", - "ResetNetworkInterfaceAttributeRequest$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "ResetNetworkInterfaceAttributeRequest$SourceDestCheck": "

    The source/destination checking attribute. Resets the value to true.

    ", - "ResetSnapshotAttributeRequest$SnapshotId": "

    The ID of the snapshot.

    ", - "ResourceIdList$member": null, - "ResponseHostIdList$member": null, - "RestorableByStringList$member": null, - "RestoreAddressToClassicRequest$PublicIp": "

    The Elastic IP address.

    ", - "RestoreAddressToClassicResult$PublicIp": "

    The Elastic IP address.

    ", - "RevokeSecurityGroupEgressRequest$GroupId": "

    The ID of the security group.

    ", - "RevokeSecurityGroupEgressRequest$SourceSecurityGroupName": "

    The name of a destination security group. To revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

    ", - "RevokeSecurityGroupEgressRequest$SourceSecurityGroupOwnerId": "

    The AWS account number for a destination security group. To revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

    ", - "RevokeSecurityGroupEgressRequest$IpProtocol": "

    The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.

    ", - "RevokeSecurityGroupEgressRequest$CidrIp": "

    The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.

    ", - "RevokeSecurityGroupIngressRequest$GroupName": "

    [EC2-Classic, default VPC] The name of the security group.

    ", - "RevokeSecurityGroupIngressRequest$GroupId": "

    The ID of the security group. Required for a security group in a nondefault VPC.

    ", - "RevokeSecurityGroupIngressRequest$SourceSecurityGroupName": "

    [EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.

    ", - "RevokeSecurityGroupIngressRequest$SourceSecurityGroupOwnerId": "

    [EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.

    ", - "RevokeSecurityGroupIngressRequest$IpProtocol": "

    The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). Use -1 to specify all.

    ", - "RevokeSecurityGroupIngressRequest$CidrIp": "

    The CIDR IP address range. You can't specify this parameter when specifying a source security group.

    ", - "Route$DestinationCidrBlock": "

    The CIDR block used for the destination match.

    ", - "Route$DestinationPrefixListId": "

    The prefix of the AWS service.

    ", - "Route$GatewayId": "

    The ID of a gateway attached to your VPC.

    ", - "Route$InstanceId": "

    The ID of a NAT instance in your VPC.

    ", - "Route$InstanceOwnerId": "

    The AWS account ID of the owner of the instance.

    ", - "Route$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "Route$VpcPeeringConnectionId": "

    The ID of the VPC peering connection.

    ", - "Route$NatGatewayId": "

    The ID of a NAT gateway.

    ", - "RouteTable$RouteTableId": "

    The ID of the route table.

    ", - "RouteTable$VpcId": "

    The ID of the VPC.

    ", - "RouteTableAssociation$RouteTableAssociationId": "

    The ID of the association between a route table and a subnet.

    ", - "RouteTableAssociation$RouteTableId": "

    The ID of the route table.

    ", - "RouteTableAssociation$SubnetId": "

    The ID of the subnet. A subnet ID is not returned for an implicit association.

    ", - "RunInstancesRequest$ImageId": "

    The ID of the AMI, which you can get by calling DescribeImages.

    ", - "RunInstancesRequest$KeyName": "

    The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

    If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.

    ", - "RunInstancesRequest$UserData": "

    Data to configure the instance, or a script to run during instance launch. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows). For API calls, the text must be base64-encoded. For command line tools, the encoding is performed for you, and you can load the text from a file.

    ", - "RunInstancesRequest$KernelId": "

    The ID of the kernel.

    We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.

    ", - "RunInstancesRequest$RamdiskId": "

    The ID of the RAM disk.

    We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.

    ", - "RunInstancesRequest$SubnetId": "

    [EC2-VPC] The ID of the subnet to launch the instance into.

    ", - "RunInstancesRequest$PrivateIpAddress": "

    [EC2-VPC] The primary IP address. You must specify a value from the IP address range of the subnet.

    Only one private IP address can be designated as primary. Therefore, you can't specify this parameter if PrivateIpAddresses.n.Primary is set to true and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address.

    Default: We select an IP address from the IP address range of the subnet.

    ", - "RunInstancesRequest$ClientToken": "

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

    Constraints: Maximum 64 ASCII characters

    ", - "RunInstancesRequest$AdditionalInfo": "

    Reserved.

    ", - "RunScheduledInstancesRequest$ClientToken": "

    Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.

    ", - "RunScheduledInstancesRequest$ScheduledInstanceId": "

    The Scheduled Instance ID.

    ", - "S3Storage$Bucket": "

    The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

    ", - "S3Storage$Prefix": "

    The beginning of the file name of the AMI.

    ", - "S3Storage$AWSAccessKeyId": "

    The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing AWS Access Keys.

    ", - "S3Storage$UploadPolicySignature": "

    The signature of the Base64 encoded JSON document.

    ", - "ScheduledInstance$ScheduledInstanceId": "

    The Scheduled Instance ID.

    ", - "ScheduledInstance$InstanceType": "

    The instance type.

    ", - "ScheduledInstance$Platform": "

    The platform (Linux/UNIX or Windows).

    ", - "ScheduledInstance$NetworkPlatform": "

    The network platform (EC2-Classic or EC2-VPC).

    ", - "ScheduledInstance$AvailabilityZone": "

    The Availability Zone.

    ", - "ScheduledInstance$HourlyPrice": "

    The hourly price for a single instance.

    ", - "ScheduledInstanceAvailability$InstanceType": "

    The instance type. You can specify one of the C3, C4, M4, or R3 instance types.

    ", - "ScheduledInstanceAvailability$Platform": "

    The platform (Linux/UNIX or Windows).

    ", - "ScheduledInstanceAvailability$NetworkPlatform": "

    The network platform (EC2-Classic or EC2-VPC).

    ", - "ScheduledInstanceAvailability$AvailabilityZone": "

    The Availability Zone.

    ", - "ScheduledInstanceAvailability$PurchaseToken": "

    The purchase token. This token expires in two hours.

    ", - "ScheduledInstanceAvailability$HourlyPrice": "

    The hourly price for a single instance.

    ", - "ScheduledInstanceIdRequestSet$member": null, - "ScheduledInstanceRecurrence$Frequency": "

    The frequency (Daily, Weekly, or Monthly).

    ", - "ScheduledInstanceRecurrence$OccurrenceUnit": "

    The unit for occurrenceDaySet (DayOfWeek or DayOfMonth).

    ", - "ScheduledInstanceRecurrenceRequest$Frequency": "

    The frequency (Daily, Weekly, or Monthly).

    ", - "ScheduledInstanceRecurrenceRequest$OccurrenceUnit": "

    The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required for a monthly schedule. You can't specify DayOfWeek with a weekly schedule. You can't specify this value with a daily schedule.

    ", - "ScheduledInstancesBlockDeviceMapping$DeviceName": "

    The device name exposed to the instance (for example, /dev/sdh or xvdh).

    ", - "ScheduledInstancesBlockDeviceMapping$NoDevice": "

    Suppresses the specified device included in the block device mapping of the AMI.

    ", - "ScheduledInstancesBlockDeviceMapping$VirtualName": "

    The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with two available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

    Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

    ", - "ScheduledInstancesEbs$SnapshotId": "

    The ID of the snapshot.

    ", - "ScheduledInstancesEbs$VolumeType": "

    The volume type. gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for Magnetic.

    Default: standard

    ", - "ScheduledInstancesIamInstanceProfile$Arn": "

    The Amazon Resource Name (ARN).

    ", - "ScheduledInstancesIamInstanceProfile$Name": "

    The name.

    ", - "ScheduledInstancesLaunchSpecification$ImageId": "

    The ID of the Amazon Machine Image (AMI).

    ", - "ScheduledInstancesLaunchSpecification$KeyName": "

    The name of the key pair.

    ", - "ScheduledInstancesLaunchSpecification$UserData": "

    The base64-encoded MIME user data.

    ", - "ScheduledInstancesLaunchSpecification$KernelId": "

    The ID of the kernel.

    ", - "ScheduledInstancesLaunchSpecification$InstanceType": "

    The instance type.

    ", - "ScheduledInstancesLaunchSpecification$RamdiskId": "

    The ID of the RAM disk.

    ", - "ScheduledInstancesLaunchSpecification$SubnetId": "

    The ID of the subnet in which to launch the instances.

    ", - "ScheduledInstancesNetworkInterface$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "ScheduledInstancesNetworkInterface$SubnetId": "

    The ID of the subnet.

    ", - "ScheduledInstancesNetworkInterface$Description": "

    The description.

    ", - "ScheduledInstancesNetworkInterface$PrivateIpAddress": "

    The IP address of the network interface within the subnet.

    ", - "ScheduledInstancesPlacement$AvailabilityZone": "

    The Availability Zone.

    ", - "ScheduledInstancesPlacement$GroupName": "

    The name of the placement group.

    ", - "ScheduledInstancesPrivateIpAddressConfig$PrivateIpAddress": "

    The IP address.

    ", - "ScheduledInstancesSecurityGroupIdSet$member": null, - "SecurityGroup$OwnerId": "

    The AWS account ID of the owner of the security group.

    ", - "SecurityGroup$GroupName": "

    The name of the security group.

    ", - "SecurityGroup$GroupId": "

    The ID of the security group.

    ", - "SecurityGroup$Description": "

    A description of the security group.

    ", - "SecurityGroup$VpcId": "

    [EC2-VPC] The ID of the VPC for the security group.

    ", - "SecurityGroupIdStringList$member": null, - "SecurityGroupReference$GroupId": "

    The ID of your security group.

    ", - "SecurityGroupReference$ReferencingVpcId": "

    The ID of the VPC with the referencing security group.

    ", - "SecurityGroupReference$VpcPeeringConnectionId": "

    The ID of the VPC peering connection.

    ", - "SecurityGroupStringList$member": null, - "Snapshot$SnapshotId": "

    The ID of the snapshot. Each snapshot receives a unique identifier when it is created.

    ", - "Snapshot$VolumeId": "

    The ID of the volume that was used to create the snapshot.

    ", - "Snapshot$StateMessage": "

    Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the error occurred. This parameter is only returned by the DescribeSnapshots API operation.

    ", - "Snapshot$Progress": "

    The progress of the snapshot, as a percentage.

    ", - "Snapshot$OwnerId": "

    The AWS account ID of the EBS snapshot owner.

    ", - "Snapshot$Description": "

    The description for the snapshot.

    ", - "Snapshot$OwnerAlias": "

    The AWS account alias (for example, amazon, self) or AWS account ID that owns the snapshot.

    ", - "Snapshot$KmsKeyId": "

    The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the parent volume.

    ", - "Snapshot$DataEncryptionKeyId": "

    The data encryption key identifier for the snapshot. This value is a unique identifier that corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. Because data encryption keys are inherited by volumes created from snapshots, and vice versa, if snapshots share the same data encryption key identifier, then they belong to the same volume/snapshot lineage. This parameter is only returned by the DescribeSnapshots API operation.

    ", - "SnapshotDetail$Description": "

    A description for the snapshot.

    ", - "SnapshotDetail$Format": "

    The format of the disk image from which the snapshot is created.

    ", - "SnapshotDetail$Url": "

    The URL used to access the disk image.

    ", - "SnapshotDetail$DeviceName": "

    The block device mapping for the snapshot.

    ", - "SnapshotDetail$SnapshotId": "

    The snapshot ID of the disk being imported.

    ", - "SnapshotDetail$Progress": "

    The percentage of progress for the task.

    ", - "SnapshotDetail$StatusMessage": "

    A detailed status message for the snapshot creation.

    ", - "SnapshotDetail$Status": "

    A brief status of the snapshot creation.

    ", - "SnapshotDiskContainer$Description": "

    The description of the disk image being imported.

    ", - "SnapshotDiskContainer$Format": "

    The format of the disk image being imported.

    Valid values: RAW | VHD | VMDK | OVA

    ", - "SnapshotDiskContainer$Url": "

    The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..).

    ", - "SnapshotIdStringList$member": null, - "SnapshotTaskDetail$Description": "

    The description of the snapshot.

    ", - "SnapshotTaskDetail$Format": "

    The format of the disk image from which the snapshot is created.

    ", - "SnapshotTaskDetail$Url": "

    The URL of the disk image from which the snapshot is created.

    ", - "SnapshotTaskDetail$SnapshotId": "

    The snapshot ID of the disk being imported.

    ", - "SnapshotTaskDetail$Progress": "

    The percentage of completion for the import snapshot task.

    ", - "SnapshotTaskDetail$StatusMessage": "

    A detailed status message for the import snapshot task.

    ", - "SnapshotTaskDetail$Status": "

    A brief status for the import snapshot task.

    ", - "SpotDatafeedSubscription$OwnerId": "

    The AWS account ID of the account.

    ", - "SpotDatafeedSubscription$Bucket": "

    The Amazon S3 bucket where the Spot instance data feed is located.

    ", - "SpotDatafeedSubscription$Prefix": "

    The prefix that is prepended to data feed files.

    ", - "SpotFleetLaunchSpecification$ImageId": "

    The ID of the AMI.

    ", - "SpotFleetLaunchSpecification$KeyName": "

    The name of the key pair.

    ", - "SpotFleetLaunchSpecification$UserData": "

    The Base64-encoded MIME user data to make available to the instances.

    ", - "SpotFleetLaunchSpecification$AddressingType": "

    Deprecated.

    ", - "SpotFleetLaunchSpecification$KernelId": "

    The ID of the kernel.

    ", - "SpotFleetLaunchSpecification$RamdiskId": "

    The ID of the RAM disk.

    ", - "SpotFleetLaunchSpecification$SubnetId": "

    The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them using commas; for example, \"subnet-a61dafcf, subnet-65ea5f08\".

    ", - "SpotFleetLaunchSpecification$SpotPrice": "

    The bid price per unit hour for the specified instance type. If this value is not specified, the default is the Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot bid price by the value of WeightedCapacity.

    ", - "SpotFleetRequestConfig$SpotFleetRequestId": "

    The ID of the Spot fleet request.

    ", - "SpotFleetRequestConfigData$ClientToken": "

    A unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.

    ", - "SpotFleetRequestConfigData$SpotPrice": "

    The bid price per unit hour.

    ", - "SpotFleetRequestConfigData$IamFleetRole": "

    Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set terminateInstancesWithExpiration.

    ", - "SpotInstanceRequest$SpotInstanceRequestId": "

    The ID of the Spot instance request.

    ", - "SpotInstanceRequest$SpotPrice": "

    The maximum hourly price (bid) for the Spot instance launched to fulfill the request.

    ", - "SpotInstanceRequest$LaunchGroup": "

    The instance launch group. Launch groups are Spot instances that launch together and terminate together.

    ", - "SpotInstanceRequest$AvailabilityZoneGroup": "

    The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.

    ", - "SpotInstanceRequest$InstanceId": "

    The instance ID, if an instance has been launched to fulfill the Spot instance request.

    ", - "SpotInstanceRequest$ActualBlockHourlyPrice": "

    If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.

    ", - "SpotInstanceRequest$LaunchedAvailabilityZone": "

    The Availability Zone in which the bid is launched.

    ", - "SpotInstanceRequestIdList$member": null, - "SpotInstanceStateFault$Code": "

    The reason code for the Spot instance state change.

    ", - "SpotInstanceStateFault$Message": "

    The message for the Spot instance state change.

    ", - "SpotInstanceStatus$Code": "

    The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.

    ", - "SpotInstanceStatus$Message": "

    The description for the status code.

    ", - "SpotPlacement$AvailabilityZone": "

    The Availability Zone.

    [Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, \"us-west-2a, us-west-2b\".

    ", - "SpotPlacement$GroupName": "

    The name of the placement group (for cluster instances).

    ", - "SpotPrice$SpotPrice": "

    The maximum price (bid) that you are willing to pay for a Spot instance.

    ", - "SpotPrice$AvailabilityZone": "

    The Availability Zone.

    ", - "StaleIpPermission$IpProtocol": "

    The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers).

    ", - "StaleSecurityGroup$GroupId": "

    The ID of the security group.

    ", - "StaleSecurityGroup$GroupName": "

    The name of the security group.

    ", - "StaleSecurityGroup$Description": "

    The description of the security group.

    ", - "StaleSecurityGroup$VpcId": "

    The ID of the VPC for the security group.

    ", - "StartInstancesRequest$AdditionalInfo": "

    Reserved.

    ", - "StateReason$Code": "

    The reason code for the state change.

    ", - "StateReason$Message": "

    The message for the state change.

    • Server.SpotInstanceTermination: A Spot instance was terminated due to an increase in the market price.

    • Server.InternalError: An internal error occurred during instance launch, resulting in termination.

    • Server.InsufficientInstanceCapacity: There was insufficient instance capacity to satisfy the launch request.

    • Client.InternalError: A client error caused the instance to terminate on launch.

    • Client.InstanceInitiatedShutdown: The instance was shut down using the shutdown -h command from the instance.

    • Client.UserInitiatedShutdown: The instance was shut down using the Amazon EC2 API.

    • Client.VolumeLimitExceeded: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your limits.

    • Client.InvalidSnapshot.NotFound: The specified snapshot was not found.

    ", - "Subnet$SubnetId": "

    The ID of the subnet.

    ", - "Subnet$VpcId": "

    The ID of the VPC the subnet is in.

    ", - "Subnet$CidrBlock": "

    The CIDR block assigned to the subnet.

    ", - "Subnet$AvailabilityZone": "

    The Availability Zone of the subnet.

    ", - "SubnetIdStringList$member": null, - "Tag$Key": "

    The key of the tag.

    Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:

    ", - "Tag$Value": "

    The value of the tag.

    Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.

    ", - "TagDescription$ResourceId": "

    The ID of the resource. For example, ami-1a2b3c4d.

    ", - "TagDescription$Key": "

    The tag key.

    ", - "TagDescription$Value": "

    The tag value.

    ", - "UnassignPrivateIpAddressesRequest$NetworkInterfaceId": "

    The ID of the network interface.

    ", - "UnsuccessfulItem$ResourceId": "

    The ID of the resource.

    ", - "UnsuccessfulItemError$Code": "

    The error code.

    ", - "UnsuccessfulItemError$Message": "

    The error message accompanying the error code.

    ", - "UserBucket$S3Bucket": "

    The name of the S3 bucket where the disk image is located.

    ", - "UserBucket$S3Key": "

    The file name of the disk image.

    ", - "UserBucketDetails$S3Bucket": "

    The S3 bucket from which the disk image was created.

    ", - "UserBucketDetails$S3Key": "

    The file name of the disk image.

    ", - "UserData$Data": "

    The Base64-encoded MIME user data for the instance.

    ", - "UserGroupStringList$member": null, - "UserIdGroupPair$UserId": "

    The ID of an AWS account. For a referenced security group in another VPC, the account ID of the referenced security group is returned.

    [EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.

    ", - "UserIdGroupPair$GroupName": "

    The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use the security group ID.

    ", - "UserIdGroupPair$GroupId": "

    The ID of the security group.

    ", - "UserIdGroupPair$VpcId": "

    The ID of the VPC for the referenced security group, if applicable.

    ", - "UserIdGroupPair$VpcPeeringConnectionId": "

    The ID of the VPC peering connection, if applicable.

    ", - "UserIdGroupPair$PeeringStatus": "

    The status of a VPC peering connection, if applicable.

    ", - "UserIdStringList$member": null, - "ValueStringList$member": null, - "VgwTelemetry$OutsideIpAddress": "

    The Internet-routable IP address of the virtual private gateway's outside interface.

    ", - "VgwTelemetry$StatusMessage": "

    If an error occurs, a description of the error.

    ", - "Volume$VolumeId": "

    The ID of the volume.

    ", - "Volume$SnapshotId": "

    The snapshot from which the volume was created, if applicable.

    ", - "Volume$AvailabilityZone": "

    The Availability Zone for the volume.

    ", - "Volume$KmsKeyId": "

    The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.

    ", - "VolumeAttachment$VolumeId": "

    The ID of the volume.

    ", - "VolumeAttachment$InstanceId": "

    The ID of the instance.

    ", - "VolumeAttachment$Device": "

    The device name.

    ", - "VolumeIdStringList$member": null, - "VolumeStatusAction$Code": "

    The code identifying the operation, for example, enable-volume-io.

    ", - "VolumeStatusAction$Description": "

    A description of the operation.

    ", - "VolumeStatusAction$EventType": "

    The event type associated with this operation.

    ", - "VolumeStatusAction$EventId": "

    The ID of the event associated with this operation.

    ", - "VolumeStatusDetails$Status": "

    The intended status of the volume status.

    ", - "VolumeStatusEvent$EventType": "

    The type of this event.

    ", - "VolumeStatusEvent$Description": "

    A description of the event.

    ", - "VolumeStatusEvent$EventId": "

    The ID of this event.

    ", - "VolumeStatusItem$VolumeId": "

    The volume ID.

    ", - "VolumeStatusItem$AvailabilityZone": "

    The Availability Zone of the volume.

    ", - "Vpc$VpcId": "

    The ID of the VPC.

    ", - "Vpc$CidrBlock": "

    The CIDR block for the VPC.

    ", - "Vpc$DhcpOptionsId": "

    The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).

    ", - "VpcAttachment$VpcId": "

    The ID of the VPC.

    ", - "VpcClassicLink$VpcId": "

    The ID of the VPC.

    ", - "VpcClassicLinkIdList$member": null, - "VpcEndpoint$VpcEndpointId": "

    The ID of the VPC endpoint.

    ", - "VpcEndpoint$VpcId": "

    The ID of the VPC to which the endpoint is associated.

    ", - "VpcEndpoint$ServiceName": "

    The name of the AWS service to which the endpoint is associated.

    ", - "VpcEndpoint$PolicyDocument": "

    The policy document associated with the endpoint.

    ", - "VpcIdStringList$member": null, - "VpcPeeringConnection$VpcPeeringConnectionId": "

    The ID of the VPC peering connection.

    ", - "VpcPeeringConnectionStateReason$Message": "

    A message that provides more information about the status, if applicable.

    ", - "VpcPeeringConnectionVpcInfo$CidrBlock": "

    The CIDR block for the VPC.

    ", - "VpcPeeringConnectionVpcInfo$OwnerId": "

    The AWS account ID of the VPC owner.

    ", - "VpcPeeringConnectionVpcInfo$VpcId": "

    The ID of the VPC.

    ", - "VpnConnection$VpnConnectionId": "

    The ID of the VPN connection.

    ", - "VpnConnection$CustomerGatewayConfiguration": "

    The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the pending or available state.

    ", - "VpnConnection$CustomerGatewayId": "

    The ID of the customer gateway at your end of the VPN connection.

    ", - "VpnConnection$VpnGatewayId": "

    The ID of the virtual private gateway at the AWS side of the VPN connection.

    ", - "VpnConnectionIdStringList$member": null, - "VpnGateway$VpnGatewayId": "

    The ID of the virtual private gateway.

    ", - "VpnGateway$AvailabilityZone": "

    The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.

    ", - "VpnGatewayIdStringList$member": null, - "VpnStaticRoute$DestinationCidrBlock": "

    The CIDR block associated with the local subnet of the customer data center.

    ", - "ZoneNameStringList$member": null - } - }, - "Subnet": { - "base": "

    Describes a subnet.

    ", - "refs": { - "CreateSubnetResult$Subnet": "

    Information about the subnet.

    ", - "SubnetList$member": null - } - }, - "SubnetIdStringList": { - "base": null, - "refs": { - "DescribeSubnetsRequest$SubnetIds": "

    One or more subnet IDs.

    Default: Describes all your subnets.

    " - } - }, - "SubnetList": { - "base": null, - "refs": { - "DescribeSubnetsResult$Subnets": "

    Information about one or more subnets.

    " - } - }, - "SubnetState": { - "base": null, - "refs": { - "Subnet$State": "

    The current state of the subnet.

    " - } - }, - "SummaryStatus": { - "base": null, - "refs": { - "InstanceStatusSummary$Status": "

    The status.

    " - } - }, - "Tag": { - "base": "

    Describes a tag.

    ", - "refs": { - "TagList$member": null - } - }, - "TagDescription": { - "base": "

    Describes a tag.

    ", - "refs": { - "TagDescriptionList$member": null - } - }, - "TagDescriptionList": { - "base": null, - "refs": { - "DescribeTagsResult$Tags": "

    A list of tags.

    " - } - }, - "TagList": { - "base": null, - "refs": { - "ClassicLinkInstance$Tags": "

    Any tags assigned to the instance.

    ", - "ConversionTask$Tags": "

    Any tags assigned to the task.

    ", - "CreateTagsRequest$Tags": "

    One or more tags. The value parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.

    ", - "CustomerGateway$Tags": "

    Any tags assigned to the customer gateway.

    ", - "DeleteTagsRequest$Tags": "

    One or more tags to delete. If you omit the value parameter, we delete the tag regardless of its value. If you specify this parameter with an empty string as the value, we delete the key only if its value is an empty string.

    ", - "DhcpOptions$Tags": "

    Any tags assigned to the DHCP options set.

    ", - "Image$Tags": "

    Any tags assigned to the image.

    ", - "Instance$Tags": "

    Any tags assigned to the instance.

    ", - "InternetGateway$Tags": "

    Any tags assigned to the Internet gateway.

    ", - "NetworkAcl$Tags": "

    Any tags assigned to the network ACL.

    ", - "NetworkInterface$TagSet": "

    Any tags assigned to the network interface.

    ", - "ReservedInstances$Tags": "

    Any tags assigned to the resource.

    ", - "ReservedInstancesListing$Tags": "

    Any tags assigned to the resource.

    ", - "RouteTable$Tags": "

    Any tags assigned to the route table.

    ", - "SecurityGroup$Tags": "

    Any tags assigned to the security group.

    ", - "Snapshot$Tags": "

    Any tags assigned to the snapshot.

    ", - "SpotInstanceRequest$Tags": "

    Any tags assigned to the resource.

    ", - "Subnet$Tags": "

    Any tags assigned to the subnet.

    ", - "Volume$Tags": "

    Any tags assigned to the volume.

    ", - "Vpc$Tags": "

    Any tags assigned to the VPC.

    ", - "VpcClassicLink$Tags": "

    Any tags assigned to the VPC.

    ", - "VpcPeeringConnection$Tags": "

    Any tags assigned to the resource.

    ", - "VpnConnection$Tags": "

    Any tags assigned to the VPN connection.

    ", - "VpnGateway$Tags": "

    Any tags assigned to the virtual private gateway.

    " - } - }, - "TelemetryStatus": { - "base": null, - "refs": { - "VgwTelemetry$Status": "

    The status of the VPN tunnel.

    " - } - }, - "Tenancy": { - "base": null, - "refs": { - "CreateVpcRequest$InstanceTenancy": "

    The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

    Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

    Default: default

    ", - "DescribeReservedInstancesOfferingsRequest$InstanceTenancy": "

    The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy of dedicated is applied to instances that run in a VPC on single-tenant hardware (i.e., Dedicated Instances).

    Default: default

    ", - "Placement$Tenancy": "

    The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.

    ", - "ReservedInstances$InstanceTenancy": "

    The tenancy of the instance.

    ", - "ReservedInstancesOffering$InstanceTenancy": "

    The tenancy of the instance.

    ", - "Vpc$InstanceTenancy": "

    The allowed tenancy of instances launched into the VPC.

    " - } - }, - "TerminateInstancesRequest": { - "base": "

    Contains the parameters for TerminateInstances.

    ", - "refs": { - } - }, - "TerminateInstancesResult": { - "base": "

    Contains the output of TerminateInstances.

    ", - "refs": { - } - }, - "TrafficType": { - "base": null, - "refs": { - "CreateFlowLogsRequest$TrafficType": "

    The type of traffic to log.

    ", - "FlowLog$TrafficType": "

    The type of traffic captured for the flow log.

    " - } - }, - "UnassignPrivateIpAddressesRequest": { - "base": "

    Contains the parameters for UnassignPrivateIpAddresses.

    ", - "refs": { - } - }, - "UnmonitorInstancesRequest": { - "base": "

    Contains the parameters for UnmonitorInstances.

    ", - "refs": { - } - }, - "UnmonitorInstancesResult": { - "base": "

    Contains the output of UnmonitorInstances.

    ", - "refs": { - } - }, - "UnsuccessfulItem": { - "base": "

    Information about items that were not successfully processed in a batch call.

    ", - "refs": { - "UnsuccessfulItemList$member": null, - "UnsuccessfulItemSet$member": null - } - }, - "UnsuccessfulItemError": { - "base": "

    Information about the error that occurred. For more information about errors, see Error Codes.

    ", - "refs": { - "UnsuccessfulItem$Error": "

    Information about the error.

    " - } - }, - "UnsuccessfulItemList": { - "base": null, - "refs": { - "ModifyHostsResult$Unsuccessful": "

    The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.

    ", - "ReleaseHostsResult$Unsuccessful": "

    The IDs of the Dedicated hosts that could not be released, including an error message.

    " - } - }, - "UnsuccessfulItemSet": { - "base": null, - "refs": { - "CreateFlowLogsResult$Unsuccessful": "

    Information about the flow logs that could not be created successfully.

    ", - "DeleteFlowLogsResult$Unsuccessful": "

    Information about the flow logs that could not be deleted successfully.

    ", - "DeleteVpcEndpointsResult$Unsuccessful": "

    Information about the endpoints that were not successfully deleted.

    " - } - }, - "UserBucket": { - "base": "

    Describes the S3 bucket for the disk image.

    ", - "refs": { - "ImageDiskContainer$UserBucket": "

    The S3 bucket for the disk image.

    ", - "SnapshotDiskContainer$UserBucket": "

    The S3 bucket for the disk image.

    " - } - }, - "UserBucketDetails": { - "base": "

    Describes the S3 bucket for the disk image.

    ", - "refs": { - "SnapshotDetail$UserBucket": "

    The S3 bucket for the disk image.

    ", - "SnapshotTaskDetail$UserBucket": "

    The S3 bucket for the disk image.

    " - } - }, - "UserData": { - "base": "

    Describes the user data to be made available to an instance.

    ", - "refs": { - "ImportInstanceLaunchSpecification$UserData": "

    The Base64-encoded MIME user data to be made available to the instance.

    " - } - }, - "UserGroupStringList": { - "base": null, - "refs": { - "ModifyImageAttributeRequest$UserGroups": "

    One or more user groups. This is only valid when modifying the launchPermission attribute.

    " - } - }, - "UserIdGroupPair": { - "base": "

    Describes a security group and AWS account ID pair.

    ", - "refs": { - "UserIdGroupPairList$member": null, - "UserIdGroupPairSet$member": null - } - }, - "UserIdGroupPairList": { - "base": null, - "refs": { - "IpPermission$UserIdGroupPairs": "

    One or more security group and AWS account ID pairs.

    " - } - }, - "UserIdGroupPairSet": { - "base": null, - "refs": { - "StaleIpPermission$UserIdGroupPairs": "

    One or more security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.

    " - } - }, - "UserIdStringList": { - "base": null, - "refs": { - "ModifyImageAttributeRequest$UserIds": "

    One or more AWS account IDs. This is only valid when modifying the launchPermission attribute.

    ", - "ModifySnapshotAttributeRequest$UserIds": "

    The account ID to modify for the snapshot.

    " - } - }, - "ValueStringList": { - "base": null, - "refs": { - "CancelSpotFleetRequestsRequest$SpotFleetRequestIds": "

    The IDs of the Spot fleet requests.

    ", - "CreateFlowLogsRequest$ResourceIds": "

    One or more subnet, network interface, or VPC IDs.

    Constraints: Maximum of 1000 resources

    ", - "CreateFlowLogsResult$FlowLogIds": "

    The IDs of the flow logs.

    ", - "CreateVpcEndpointRequest$RouteTableIds": "

    One or more route table IDs.

    ", - "DeleteFlowLogsRequest$FlowLogIds": "

    One or more flow log IDs.

    ", - "DeleteVpcEndpointsRequest$VpcEndpointIds": "

    One or more endpoint IDs.

    ", - "DescribeFlowLogsRequest$FlowLogIds": "

    One or more flow log IDs.

    ", - "DescribeInternetGatewaysRequest$InternetGatewayIds": "

    One or more Internet gateway IDs.

    Default: Describes all your Internet gateways.

    ", - "DescribeMovingAddressesRequest$PublicIps": "

    One or more Elastic IP addresses.

    ", - "DescribeNatGatewaysRequest$NatGatewayIds": "

    One or more NAT gateway IDs.

    ", - "DescribeNetworkAclsRequest$NetworkAclIds": "

    One or more network ACL IDs.

    Default: Describes all your network ACLs.

    ", - "DescribePrefixListsRequest$PrefixListIds": "

    One or more prefix list IDs.

    ", - "DescribeRouteTablesRequest$RouteTableIds": "

    One or more route table IDs.

    Default: Describes all your route tables.

    ", - "DescribeSpotFleetRequestsRequest$SpotFleetRequestIds": "

    The IDs of the Spot fleet requests.

    ", - "DescribeVpcEndpointServicesResult$ServiceNames": "

    A list of supported AWS services.

    ", - "DescribeVpcEndpointsRequest$VpcEndpointIds": "

    One or more endpoint IDs.

    ", - "DescribeVpcPeeringConnectionsRequest$VpcPeeringConnectionIds": "

    One or more VPC peering connection IDs.

    Default: Describes all your VPC peering connections.

    ", - "Filter$Values": "

    One or more filter values. Filter values are case-sensitive.

    ", - "ModifyVpcEndpointRequest$AddRouteTableIds": "

    One or more route tables IDs to associate with the endpoint.

    ", - "ModifyVpcEndpointRequest$RemoveRouteTableIds": "

    One or more route table IDs to disassociate from the endpoint.

    ", - "NewDhcpConfiguration$Values": null, - "PrefixList$Cidrs": "

    The IP address range of the AWS service.

    ", - "RequestSpotLaunchSpecification$SecurityGroups": null, - "RequestSpotLaunchSpecification$SecurityGroupIds": null, - "VpcEndpoint$RouteTableIds": "

    One or more route tables associated with the endpoint.

    " - } - }, - "VgwTelemetry": { - "base": "

    Describes telemetry for a VPN tunnel.

    ", - "refs": { - "VgwTelemetryList$member": null - } - }, - "VgwTelemetryList": { - "base": null, - "refs": { - "VpnConnection$VgwTelemetry": "

    Information about the VPN tunnel.

    " - } - }, - "VirtualizationType": { - "base": null, - "refs": { - "Image$VirtualizationType": "

    The type of virtualization of the AMI.

    ", - "Instance$VirtualizationType": "

    The virtualization type of the instance.

    " - } - }, - "Volume": { - "base": "

    Describes a volume.

    ", - "refs": { - "VolumeList$member": null - } - }, - "VolumeAttachment": { - "base": "

    Describes volume attachment details.

    ", - "refs": { - "VolumeAttachmentList$member": null - } - }, - "VolumeAttachmentList": { - "base": null, - "refs": { - "Volume$Attachments": "

    Information about the volume attachments.

    " - } - }, - "VolumeAttachmentState": { - "base": null, - "refs": { - "VolumeAttachment$State": "

    The attachment state of the volume.

    " - } - }, - "VolumeAttributeName": { - "base": null, - "refs": { - "DescribeVolumeAttributeRequest$Attribute": "

    The instance attribute.

    " - } - }, - "VolumeDetail": { - "base": "

    Describes an EBS volume.

    ", - "refs": { - "DiskImage$Volume": "

    Information about the volume.

    ", - "ImportVolumeRequest$Volume": "

    The volume size.

    " - } - }, - "VolumeIdStringList": { - "base": null, - "refs": { - "DescribeVolumeStatusRequest$VolumeIds": "

    One or more volume IDs.

    Default: Describes all your volumes.

    ", - "DescribeVolumesRequest$VolumeIds": "

    One or more volume IDs.

    " - } - }, - "VolumeList": { - "base": null, - "refs": { - "DescribeVolumesResult$Volumes": "

    Information about the volumes.

    " - } - }, - "VolumeState": { - "base": null, - "refs": { - "Volume$State": "

    The volume state.

    " - } - }, - "VolumeStatusAction": { - "base": "

    Describes a volume status operation code.

    ", - "refs": { - "VolumeStatusActionsList$member": null - } - }, - "VolumeStatusActionsList": { - "base": null, - "refs": { - "VolumeStatusItem$Actions": "

    The details of the operation.

    " - } - }, - "VolumeStatusDetails": { - "base": "

    Describes a volume status.

    ", - "refs": { - "VolumeStatusDetailsList$member": null - } - }, - "VolumeStatusDetailsList": { - "base": null, - "refs": { - "VolumeStatusInfo$Details": "

    The details of the volume status.

    " - } - }, - "VolumeStatusEvent": { - "base": "

    Describes a volume status event.

    ", - "refs": { - "VolumeStatusEventsList$member": null - } - }, - "VolumeStatusEventsList": { - "base": null, - "refs": { - "VolumeStatusItem$Events": "

    A list of events associated with the volume.

    " - } - }, - "VolumeStatusInfo": { - "base": "

    Describes the status of a volume.

    ", - "refs": { - "VolumeStatusItem$VolumeStatus": "

    The volume status.

    " - } - }, - "VolumeStatusInfoStatus": { - "base": null, - "refs": { - "VolumeStatusInfo$Status": "

    The status of the volume.

    " - } - }, - "VolumeStatusItem": { - "base": "

    Describes the volume status.

    ", - "refs": { - "VolumeStatusList$member": null - } - }, - "VolumeStatusList": { - "base": null, - "refs": { - "DescribeVolumeStatusResult$VolumeStatuses": "

    A list of volumes.

    " - } - }, - "VolumeStatusName": { - "base": null, - "refs": { - "VolumeStatusDetails$Name": "

    The name of the volume status.

    " - } - }, - "VolumeType": { - "base": null, - "refs": { - "CreateVolumeRequest$VolumeType": "

    The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes.

    Default: standard

    ", - "EbsBlockDevice$VolumeType": "

    The volume type: gp2, io1, st1, sc1, or standard.

    Default: standard

    ", - "Volume$VolumeType": "

    The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes.

    " - } - }, - "Vpc": { - "base": "

    Describes a VPC.

    ", - "refs": { - "CreateVpcResult$Vpc": "

    Information about the VPC.

    ", - "VpcList$member": null - } - }, - "VpcAttachment": { - "base": "

    Describes an attachment between a virtual private gateway and a VPC.

    ", - "refs": { - "AttachVpnGatewayResult$VpcAttachment": "

    Information about the attachment.

    ", - "VpcAttachmentList$member": null - } - }, - "VpcAttachmentList": { - "base": null, - "refs": { - "VpnGateway$VpcAttachments": "

    Any VPCs attached to the virtual private gateway.

    " - } - }, - "VpcAttributeName": { - "base": null, - "refs": { - "DescribeVpcAttributeRequest$Attribute": "

    The VPC attribute.

    " - } - }, - "VpcClassicLink": { - "base": "

    Describes whether a VPC is enabled for ClassicLink.

    ", - "refs": { - "VpcClassicLinkList$member": null - } - }, - "VpcClassicLinkIdList": { - "base": null, - "refs": { - "DescribeVpcClassicLinkDnsSupportRequest$VpcIds": "

    One or more VPC IDs.

    ", - "DescribeVpcClassicLinkRequest$VpcIds": "

    One or more VPCs for which you want to describe the ClassicLink status.

    " - } - }, - "VpcClassicLinkList": { - "base": null, - "refs": { - "DescribeVpcClassicLinkResult$Vpcs": "

    The ClassicLink status of one or more VPCs.

    " - } - }, - "VpcEndpoint": { - "base": "

    Describes a VPC endpoint.

    ", - "refs": { - "CreateVpcEndpointResult$VpcEndpoint": "

    Information about the endpoint.

    ", - "VpcEndpointSet$member": null - } - }, - "VpcEndpointSet": { - "base": null, - "refs": { - "DescribeVpcEndpointsResult$VpcEndpoints": "

    Information about the endpoints.

    " - } - }, - "VpcIdStringList": { - "base": null, - "refs": { - "DescribeVpcsRequest$VpcIds": "

    One or more VPC IDs.

    Default: Describes all your VPCs.

    " - } - }, - "VpcList": { - "base": null, - "refs": { - "DescribeVpcsResult$Vpcs": "

    Information about one or more VPCs.

    " - } - }, - "VpcPeeringConnection": { - "base": "

    Describes a VPC peering connection.

    ", - "refs": { - "AcceptVpcPeeringConnectionResult$VpcPeeringConnection": "

    Information about the VPC peering connection.

    ", - "CreateVpcPeeringConnectionResult$VpcPeeringConnection": "

    Information about the VPC peering connection.

    ", - "VpcPeeringConnectionList$member": null - } - }, - "VpcPeeringConnectionList": { - "base": null, - "refs": { - "DescribeVpcPeeringConnectionsResult$VpcPeeringConnections": "

    Information about the VPC peering connections.

    " - } - }, - "VpcPeeringConnectionOptionsDescription": { - "base": "

    Describes the VPC peering connection options.

    ", - "refs": { - "VpcPeeringConnectionVpcInfo$PeeringOptions": "

    Information about the VPC peering connection options for the accepter or requester VPC.

    " - } - }, - "VpcPeeringConnectionStateReason": { - "base": "

    Describes the status of a VPC peering connection.

    ", - "refs": { - "VpcPeeringConnection$Status": "

    The status of the VPC peering connection.

    " - } - }, - "VpcPeeringConnectionStateReasonCode": { - "base": null, - "refs": { - "VpcPeeringConnectionStateReason$Code": "

    The status of the VPC peering connection.

    " - } - }, - "VpcPeeringConnectionVpcInfo": { - "base": "

    Describes a VPC in a VPC peering connection.

    ", - "refs": { - "VpcPeeringConnection$AccepterVpcInfo": "

    Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the initiating-request or pending-acceptance state.

    ", - "VpcPeeringConnection$RequesterVpcInfo": "

    Information about the requester VPC.

    " - } - }, - "VpcState": { - "base": null, - "refs": { - "Vpc$State": "

    The current state of the VPC.

    " - } - }, - "VpnConnection": { - "base": "

    Describes a VPN connection.

    ", - "refs": { - "CreateVpnConnectionResult$VpnConnection": "

    Information about the VPN connection.

    ", - "VpnConnectionList$member": null - } - }, - "VpnConnectionIdStringList": { - "base": null, - "refs": { - "DescribeVpnConnectionsRequest$VpnConnectionIds": "

    One or more VPN connection IDs.

    Default: Describes your VPN connections.

    " - } - }, - "VpnConnectionList": { - "base": null, - "refs": { - "DescribeVpnConnectionsResult$VpnConnections": "

    Information about one or more VPN connections.

    " - } - }, - "VpnConnectionOptions": { - "base": "

    Describes VPN connection options.

    ", - "refs": { - "VpnConnection$Options": "

    The VPN connection options.

    " - } - }, - "VpnConnectionOptionsSpecification": { - "base": "

    Describes VPN connection options.

    ", - "refs": { - "CreateVpnConnectionRequest$Options": "

    Indicates whether the VPN connection requires static routes. If you are creating a VPN connection for a device that does not support BGP, you must specify true.

    Default: false

    " - } - }, - "VpnGateway": { - "base": "

    Describes a virtual private gateway.

    ", - "refs": { - "CreateVpnGatewayResult$VpnGateway": "

    Information about the virtual private gateway.

    ", - "VpnGatewayList$member": null - } - }, - "VpnGatewayIdStringList": { - "base": null, - "refs": { - "DescribeVpnGatewaysRequest$VpnGatewayIds": "

    One or more virtual private gateway IDs.

    Default: Describes all your virtual private gateways.

    " - } - }, - "VpnGatewayList": { - "base": null, - "refs": { - "DescribeVpnGatewaysResult$VpnGateways": "

    Information about one or more virtual private gateways.

    " - } - }, - "VpnState": { - "base": null, - "refs": { - "VpnConnection$State": "

    The current state of the VPN connection.

    ", - "VpnGateway$State": "

    The current state of the virtual private gateway.

    ", - "VpnStaticRoute$State": "

    The current state of the static route.

    " - } - }, - "VpnStaticRoute": { - "base": "

    Describes a static route for a VPN connection.

    ", - "refs": { - "VpnStaticRouteList$member": null - } - }, - "VpnStaticRouteList": { - "base": null, - "refs": { - "VpnConnection$Routes": "

    The static routes associated with the VPN connection.

    " - } - }, - "VpnStaticRouteSource": { - "base": null, - "refs": { - "VpnStaticRoute$Source": "

    Indicates how the routes were provided.

    " - } - }, - "ZoneNameStringList": { - "base": null, - "refs": { - "DescribeAvailabilityZonesRequest$ZoneNames": "

    The names of one or more Availability Zones.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/paginators-1.json deleted file mode 100644 index 7d6feff63..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/paginators-1.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "pagination": { - "DescribeAccountAttributes": { - "result_key": "AccountAttributes" - }, - "DescribeAddresses": { - "result_key": "Addresses" - }, - "DescribeAvailabilityZones": { - "result_key": "AvailabilityZones" - }, - "DescribeBundleTasks": { - "result_key": "BundleTasks" - }, - "DescribeConversionTasks": { - "result_key": "ConversionTasks" - }, - "DescribeCustomerGateways": { - "result_key": "CustomerGateways" - }, - "DescribeDhcpOptions": { - "result_key": "DhcpOptions" - }, - "DescribeExportTasks": { - "result_key": "ExportTasks" - }, - "DescribeImages": { - "result_key": "Images" - }, - "DescribeInstanceStatus": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "InstanceStatuses" - }, - "DescribeInstances": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Reservations" - }, - "DescribeInternetGateways": { - "result_key": "InternetGateways" - }, - "DescribeKeyPairs": { - "result_key": "KeyPairs" - }, - "DescribeNetworkAcls": { - "result_key": "NetworkAcls" - }, - "DescribeNetworkInterfaces": { - "result_key": "NetworkInterfaces" - }, - "DescribePlacementGroups": { - "result_key": "PlacementGroups" - }, - "DescribeRegions": { - "result_key": "Regions" - }, - "DescribeReservedInstances": { - "result_key": "ReservedInstances" - }, - "DescribeReservedInstancesListings": { - "result_key": "ReservedInstancesListings" - }, - "DescribeReservedInstancesOfferings": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "ReservedInstancesOfferings" - }, - "DescribeReservedInstancesModifications": { - "input_token": "NextToken", - "output_token": "NextToken", - "result_key": "ReservedInstancesModifications" - }, - "DescribeRouteTables": { - "result_key": "RouteTables" - }, - "DescribeSecurityGroups": { - "result_key": "SecurityGroups" - }, - "DescribeSnapshots": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Snapshots" - }, - "DescribeSpotInstanceRequests": { - "result_key": "SpotInstanceRequests" - }, - "DescribeSpotPriceHistory": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "SpotPriceHistory" - }, - "DescribeSubnets": { - "result_key": "Subnets" - }, - "DescribeTags": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Tags" - }, - "DescribeVolumeStatus": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "VolumeStatuses" - }, - "DescribeVolumes": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Volumes" - }, - "DescribeVpcs": { - "result_key": "Vpcs" - }, - "DescribeVpcPeeringConnections": { - "result_key": "VpcPeeringConnections" - }, - "DescribeVpnConnections": { - "result_key": "VpnConnections" - }, - "DescribeVpnGateways": { - "result_key": "VpnGateways" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/waiters-2.json deleted file mode 100644 index 6560dcfc1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ec2/2015-10-01/waiters-2.json +++ /dev/null @@ -1,576 +0,0 @@ -{ - "version": 2, - "waiters": { - "InstanceExists": { - "delay": 5, - "maxAttempts": 40, - "operation": "DescribeInstances", - "acceptors": [ - { - "matcher": "path", - "expected": true, - "argument": "length(Reservations[]) > `0`", - "state": "success" - }, - { - "matcher": "error", - "expected": "InvalidInstanceID.NotFound", - "state": "retry" - } - ] - }, - "BundleTaskComplete": { - "delay": 15, - "operation": "DescribeBundleTasks", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "complete", - "matcher": "pathAll", - "state": "success", - "argument": "BundleTasks[].State" - }, - { - "expected": "failed", - "matcher": "pathAny", - "state": "failure", - "argument": "BundleTasks[].State" - } - ] - }, - "ConversionTaskCancelled": { - "delay": 15, - "operation": "DescribeConversionTasks", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "cancelled", - "matcher": "pathAll", - "state": "success", - "argument": "ConversionTasks[].State" - } - ] - }, - "ConversionTaskCompleted": { - "delay": 15, - "operation": "DescribeConversionTasks", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "completed", - "matcher": "pathAll", - "state": "success", - "argument": "ConversionTasks[].State" - }, - { - "expected": "cancelled", - "matcher": "pathAny", - "state": "failure", - "argument": "ConversionTasks[].State" - }, - { - "expected": "cancelling", - "matcher": "pathAny", - "state": "failure", - "argument": "ConversionTasks[].State" - } - ] - }, - "ConversionTaskDeleted": { - "delay": 15, - "operation": "DescribeConversionTasks", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "deleted", - "matcher": "pathAll", - "state": "success", - "argument": "ConversionTasks[].State" - } - ] - }, - "CustomerGatewayAvailable": { - "delay": 15, - "operation": "DescribeCustomerGateways", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "available", - "matcher": "pathAll", - "state": "success", - "argument": "CustomerGateways[].State" - }, - { - "expected": "deleted", - "matcher": "pathAny", - "state": "failure", - "argument": "CustomerGateways[].State" - }, - { - "expected": "deleting", - "matcher": "pathAny", - "state": "failure", - "argument": "CustomerGateways[].State" - } - ] - }, - "ExportTaskCancelled": { - "delay": 15, - "operation": "DescribeExportTasks", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "cancelled", - "matcher": "pathAll", - "state": "success", - "argument": "ExportTasks[].State" - } - ] - }, - "ExportTaskCompleted": { - "delay": 15, - "operation": "DescribeExportTasks", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "completed", - "matcher": "pathAll", - "state": "success", - "argument": "ExportTasks[].State" - } - ] - }, - "ImageExists": { - "operation": "DescribeImages", - "maxAttempts": 40, - "delay": 15, - "acceptors": [ - { - "matcher": "path", - "expected": true, - "argument": "length(Images[]) > `0`", - "state": "success" - }, - { - "matcher": "error", - "expected": "InvalidAMIID.NotFound", - "state": "retry" - } - ] - }, - "ImageAvailable": { - "operation": "DescribeImages", - "maxAttempts": 40, - "delay": 15, - "acceptors": [ - { - "state": "success", - "matcher": "pathAll", - "argument": "Images[].State", - "expected": "available" - }, - { - "state": "failure", - "matcher": "pathAny", - "argument": "Images[].State", - "expected": "failed" - } - ] - }, - "InstanceRunning": { - "delay": 15, - "operation": "DescribeInstances", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "running", - "matcher": "pathAll", - "state": "success", - "argument": "Reservations[].Instances[].State.Name" - }, - { - "expected": "shutting-down", - "matcher": "pathAny", - "state": "failure", - "argument": "Reservations[].Instances[].State.Name" - }, - { - "expected": "terminated", - "matcher": "pathAny", - "state": "failure", - "argument": "Reservations[].Instances[].State.Name" - }, - { - "expected": "stopping", - "matcher": "pathAny", - "state": "failure", - "argument": "Reservations[].Instances[].State.Name" - }, - { - "matcher": "error", - "expected": "InvalidInstanceID.NotFound", - "state": "retry" - } - ] - }, - "InstanceStatusOk": { - "operation": "DescribeInstanceStatus", - "maxAttempts": 40, - "delay": 15, - "acceptors": [ - { - "state": "success", - "matcher": "pathAll", - "argument": "InstanceStatuses[].InstanceStatus.Status", - "expected": "ok" - }, - { - "matcher": "error", - "expected": "InvalidInstanceID.NotFound", - "state": "retry" - } - ] - }, - "InstanceStopped": { - "delay": 15, - "operation": "DescribeInstances", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "stopped", - "matcher": "pathAll", - "state": "success", - "argument": "Reservations[].Instances[].State.Name" - }, - { - "expected": "pending", - "matcher": "pathAny", - "state": "failure", - "argument": "Reservations[].Instances[].State.Name" - }, - { - "expected": "terminated", - "matcher": "pathAny", - "state": "failure", - "argument": "Reservations[].Instances[].State.Name" - } - ] - }, - "InstanceTerminated": { - "delay": 15, - "operation": "DescribeInstances", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "terminated", - "matcher": "pathAll", - "state": "success", - "argument": "Reservations[].Instances[].State.Name" - }, - { - "expected": "pending", - "matcher": "pathAny", - "state": "failure", - "argument": "Reservations[].Instances[].State.Name" - }, - { - "expected": "stopping", - "matcher": "pathAny", - "state": "failure", - "argument": "Reservations[].Instances[].State.Name" - } - ] - }, - "KeyPairExists": { - "operation": "DescribeKeyPairs", - "delay": 5, - "maxAttempts": 6, - "acceptors": [ - { - "expected": true, - "matcher": "pathAll", - "state": "success", - "argument": "length(KeyPairs[].KeyName) > `0`" - }, - { - "expected": "InvalidKeyPair.NotFound", - "matcher": "error", - "state": "retry" - } - ] - }, - "NatGatewayAvailable": { - "operation": "DescribeNatGateways", - "delay": 15, - "maxAttempts": 40, - "acceptors": [ - { - "state": "success", - "matcher": "pathAll", - "argument": "NatGateways[].State", - "expected": "available" - }, - { - "state": "failure", - "matcher": "pathAny", - "argument": "NatGateways[].State", - "expected": "failed" - }, - { - "state": "failure", - "matcher": "pathAny", - "argument": "NatGateways[].State", - "expected": "deleting" - }, - { - "state": "failure", - "matcher": "pathAny", - "argument": "NatGateways[].State", - "expected": "deleted" - }, - { - "state": "retry", - "matcher": "error", - "expected": "NatGatewayNotFound" - } - ] - }, - "NetworkInterfaceAvailable": { - "operation": "DescribeNetworkInterfaces", - "delay": 20, - "maxAttempts": 10, - "acceptors": [ - { - "expected": "available", - "matcher": "pathAll", - "state": "success", - "argument": "NetworkInterfaces[].Status" - }, - { - "expected": "InvalidNetworkInterfaceID.NotFound", - "matcher": "error", - "state": "failure" - } - ] - }, - "PasswordDataAvailable": { - "operation": "GetPasswordData", - "maxAttempts": 40, - "delay": 15, - "acceptors": [ - { - "state": "success", - "matcher": "path", - "argument": "length(PasswordData) > `0`", - "expected": true - } - ] - }, - "SnapshotCompleted": { - "delay": 15, - "operation": "DescribeSnapshots", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "completed", - "matcher": "pathAll", - "state": "success", - "argument": "Snapshots[].State" - } - ] - }, - "SpotInstanceRequestFulfilled": { - "operation": "DescribeSpotInstanceRequests", - "maxAttempts": 40, - "delay": 15, - "acceptors": [ - { - "state": "success", - "matcher": "pathAll", - "argument": "SpotInstanceRequests[].Status.Code", - "expected": "fulfilled" - }, - { - "state": "failure", - "matcher": "pathAny", - "argument": "SpotInstanceRequests[].Status.Code", - "expected": "schedule-expired" - }, - { - "state": "failure", - "matcher": "pathAny", - "argument": "SpotInstanceRequests[].Status.Code", - "expected": "canceled-before-fulfillment" - }, - { - "state": "failure", - "matcher": "pathAny", - "argument": "SpotInstanceRequests[].Status.Code", - "expected": "bad-parameters" - }, - { - "state": "failure", - "matcher": "pathAny", - "argument": "SpotInstanceRequests[].Status.Code", - "expected": "system-error" - } - ] - }, - "SubnetAvailable": { - "delay": 15, - "operation": "DescribeSubnets", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "available", - "matcher": "pathAll", - "state": "success", - "argument": "Subnets[].State" - } - ] - }, - "SystemStatusOk": { - "operation": "DescribeInstanceStatus", - "maxAttempts": 40, - "delay": 15, - "acceptors": [ - { - "state": "success", - "matcher": "pathAll", - "argument": "InstanceStatuses[].SystemStatus.Status", - "expected": "ok" - } - ] - }, - "VolumeAvailable": { - "delay": 15, - "operation": "DescribeVolumes", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "available", - "matcher": "pathAll", - "state": "success", - "argument": "Volumes[].State" - }, - { - "expected": "deleted", - "matcher": "pathAny", - "state": "failure", - "argument": "Volumes[].State" - } - ] - }, - "VolumeDeleted": { - "delay": 15, - "operation": "DescribeVolumes", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "deleted", - "matcher": "pathAll", - "state": "success", - "argument": "Volumes[].State" - }, - { - "matcher": "error", - "expected": "InvalidVolume.NotFound", - "state": "success" - } - ] - }, - "VolumeInUse": { - "delay": 15, - "operation": "DescribeVolumes", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "in-use", - "matcher": "pathAll", - "state": "success", - "argument": "Volumes[].State" - }, - { - "expected": "deleted", - "matcher": "pathAny", - "state": "failure", - "argument": "Volumes[].State" - } - ] - }, - "VpcAvailable": { - "delay": 15, - "operation": "DescribeVpcs", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "available", - "matcher": "pathAll", - "state": "success", - "argument": "Vpcs[].State" - } - ] - }, - "VpnConnectionAvailable": { - "delay": 15, - "operation": "DescribeVpnConnections", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "available", - "matcher": "pathAll", - "state": "success", - "argument": "VpnConnections[].State" - }, - { - "expected": "deleting", - "matcher": "pathAny", - "state": "failure", - "argument": "VpnConnections[].State" - }, - { - "expected": "deleted", - "matcher": "pathAny", - "state": "failure", - "argument": "VpnConnections[].State" - } - ] - }, - "VpnConnectionDeleted": { - "delay": 15, - "operation": "DescribeVpnConnections", - "maxAttempts": 40, - "acceptors": [ - { - "expected": "deleted", - "matcher": "pathAll", - "state": "success", - "argument": "VpnConnections[].State" - }, - { - "expected": "pending", - "matcher": "pathAny", - "state": "failure", - "argument": "VpnConnections[].State" - } - ] - }, - "VpcPeeringConnectionExists": { - "delay": 15, - "operation": "DescribeVpcPeeringConnections", - "maxAttempts": 40, - "acceptors": [ - { - "matcher": "status", - "expected": 200, - "state": "success" - }, - { - "matcher": "error", - "expected": "InvalidVpcPeeringConnectionID.NotFound", - "state": "retry" - } - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/api-2.json deleted file mode 100644 index 6b6f68763..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/api-2.json +++ /dev/null @@ -1,849 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-09-21", - "endpointPrefix":"ecr", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"Amazon ECR", - "serviceFullName":"Amazon EC2 Container Registry", - "signatureVersion":"v4", - "targetPrefix":"AmazonEC2ContainerRegistry_V20150921" - }, - "operations":{ - "BatchCheckLayerAvailability":{ - "name":"BatchCheckLayerAvailability", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"BatchCheckLayerAvailabilityRequest"}, - "output":{"shape":"BatchCheckLayerAvailabilityResponse"}, - "errors":[ - {"shape":"RepositoryNotFoundException"}, - {"shape":"InvalidParameterException"}, - {"shape":"ServerException"} - ] - }, - "BatchDeleteImage":{ - "name":"BatchDeleteImage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"BatchDeleteImageRequest"}, - "output":{"shape":"BatchDeleteImageResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"} - ] - }, - "BatchGetImage":{ - "name":"BatchGetImage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"BatchGetImageRequest"}, - "output":{"shape":"BatchGetImageResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"} - ] - }, - "CompleteLayerUpload":{ - "name":"CompleteLayerUpload", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CompleteLayerUploadRequest"}, - "output":{"shape":"CompleteLayerUploadResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"}, - {"shape":"UploadNotFoundException"}, - {"shape":"InvalidLayerException"}, - {"shape":"LayerPartTooSmallException"}, - {"shape":"LayerAlreadyExistsException"}, - {"shape":"EmptyUploadException"} - ] - }, - "CreateRepository":{ - "name":"CreateRepository", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateRepositoryRequest"}, - "output":{"shape":"CreateRepositoryResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryAlreadyExistsException"}, - {"shape":"LimitExceededException"} - ] - }, - "DeleteRepository":{ - "name":"DeleteRepository", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRepositoryRequest"}, - "output":{"shape":"DeleteRepositoryResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"}, - {"shape":"RepositoryNotEmptyException"} - ] - }, - "DeleteRepositoryPolicy":{ - "name":"DeleteRepositoryPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRepositoryPolicyRequest"}, - "output":{"shape":"DeleteRepositoryPolicyResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"}, - {"shape":"RepositoryPolicyNotFoundException"} - ] - }, - "DescribeRepositories":{ - "name":"DescribeRepositories", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeRepositoriesRequest"}, - "output":{"shape":"DescribeRepositoriesResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"} - ] - }, - "GetAuthorizationToken":{ - "name":"GetAuthorizationToken", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetAuthorizationTokenRequest"}, - "output":{"shape":"GetAuthorizationTokenResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"} - ] - }, - "GetDownloadUrlForLayer":{ - "name":"GetDownloadUrlForLayer", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetDownloadUrlForLayerRequest"}, - "output":{"shape":"GetDownloadUrlForLayerResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"LayersNotFoundException"}, - {"shape":"LayerInaccessibleException"}, - {"shape":"RepositoryNotFoundException"} - ] - }, - "GetRepositoryPolicy":{ - "name":"GetRepositoryPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetRepositoryPolicyRequest"}, - "output":{"shape":"GetRepositoryPolicyResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"}, - {"shape":"RepositoryPolicyNotFoundException"} - ] - }, - "InitiateLayerUpload":{ - "name":"InitiateLayerUpload", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"InitiateLayerUploadRequest"}, - "output":{"shape":"InitiateLayerUploadResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"} - ] - }, - "ListImages":{ - "name":"ListImages", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListImagesRequest"}, - "output":{"shape":"ListImagesResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"} - ] - }, - "PutImage":{ - "name":"PutImage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutImageRequest"}, - "output":{"shape":"PutImageResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"}, - {"shape":"ImageAlreadyExistsException"}, - {"shape":"LayersNotFoundException"}, - {"shape":"LimitExceededException"} - ] - }, - "SetRepositoryPolicy":{ - "name":"SetRepositoryPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetRepositoryPolicyRequest"}, - "output":{"shape":"SetRepositoryPolicyResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"RepositoryNotFoundException"} - ] - }, - "UploadLayerPart":{ - "name":"UploadLayerPart", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UploadLayerPartRequest"}, - "output":{"shape":"UploadLayerPartResponse"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"InvalidParameterException"}, - {"shape":"InvalidLayerPartException"}, - {"shape":"RepositoryNotFoundException"}, - {"shape":"UploadNotFoundException"}, - {"shape":"LimitExceededException"} - ] - } - }, - "shapes":{ - "Arn":{"type":"string"}, - "AuthorizationData":{ - "type":"structure", - "members":{ - "authorizationToken":{"shape":"Base64"}, - "expiresAt":{"shape":"ExpirationTimestamp"}, - "proxyEndpoint":{"shape":"ProxyEndpoint"} - } - }, - "AuthorizationDataList":{ - "type":"list", - "member":{"shape":"AuthorizationData"} - }, - "Base64":{ - "type":"string", - "pattern":"^\\S+$" - }, - "BatchCheckLayerAvailabilityRequest":{ - "type":"structure", - "required":[ - "repositoryName", - "layerDigests" - ], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "layerDigests":{"shape":"BatchedOperationLayerDigestList"} - } - }, - "BatchCheckLayerAvailabilityResponse":{ - "type":"structure", - "members":{ - "layers":{"shape":"LayerList"}, - "failures":{"shape":"LayerFailureList"} - } - }, - "BatchDeleteImageRequest":{ - "type":"structure", - "required":[ - "repositoryName", - "imageIds" - ], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "imageIds":{"shape":"ImageIdentifierList"} - } - }, - "BatchDeleteImageResponse":{ - "type":"structure", - "members":{ - "imageIds":{"shape":"ImageIdentifierList"}, - "failures":{"shape":"ImageFailureList"} - } - }, - "BatchGetImageRequest":{ - "type":"structure", - "required":[ - "repositoryName", - "imageIds" - ], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "imageIds":{"shape":"ImageIdentifierList"} - } - }, - "BatchGetImageResponse":{ - "type":"structure", - "members":{ - "images":{"shape":"ImageList"}, - "failures":{"shape":"ImageFailureList"} - } - }, - "BatchedOperationLayerDigest":{ - "type":"string", - "max":1000, - "min":0 - }, - "BatchedOperationLayerDigestList":{ - "type":"list", - "member":{"shape":"BatchedOperationLayerDigest"}, - "max":100, - "min":1 - }, - "CompleteLayerUploadRequest":{ - "type":"structure", - "required":[ - "repositoryName", - "uploadId", - "layerDigests" - ], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "uploadId":{"shape":"UploadId"}, - "layerDigests":{"shape":"LayerDigestList"} - } - }, - "CompleteLayerUploadResponse":{ - "type":"structure", - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "uploadId":{"shape":"UploadId"}, - "layerDigest":{"shape":"LayerDigest"} - } - }, - "CreateRepositoryRequest":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "repositoryName":{"shape":"RepositoryName"} - } - }, - "CreateRepositoryResponse":{ - "type":"structure", - "members":{ - "repository":{"shape":"Repository"} - } - }, - "DeleteRepositoryPolicyRequest":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"} - } - }, - "DeleteRepositoryPolicyResponse":{ - "type":"structure", - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "policyText":{"shape":"RepositoryPolicyText"} - } - }, - "DeleteRepositoryRequest":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "force":{"shape":"ForceFlag"} - } - }, - "DeleteRepositoryResponse":{ - "type":"structure", - "members":{ - "repository":{"shape":"Repository"} - } - }, - "DescribeRepositoriesRequest":{ - "type":"structure", - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryNames":{"shape":"RepositoryNameList"}, - "nextToken":{"shape":"NextToken"}, - "maxResults":{"shape":"MaxResults"} - } - }, - "DescribeRepositoriesResponse":{ - "type":"structure", - "members":{ - "repositories":{"shape":"RepositoryList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "EmptyUploadException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "ExceptionMessage":{"type":"string"}, - "ExpirationTimestamp":{"type":"timestamp"}, - "ForceFlag":{"type":"boolean"}, - "GetAuthorizationTokenRegistryIdList":{ - "type":"list", - "member":{"shape":"RegistryId"}, - "max":10, - "min":1 - }, - "GetAuthorizationTokenRequest":{ - "type":"structure", - "members":{ - "registryIds":{"shape":"GetAuthorizationTokenRegistryIdList"} - } - }, - "GetAuthorizationTokenResponse":{ - "type":"structure", - "members":{ - "authorizationData":{"shape":"AuthorizationDataList"} - } - }, - "GetDownloadUrlForLayerRequest":{ - "type":"structure", - "required":[ - "repositoryName", - "layerDigest" - ], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "layerDigest":{"shape":"LayerDigest"} - } - }, - "GetDownloadUrlForLayerResponse":{ - "type":"structure", - "members":{ - "downloadUrl":{"shape":"Url"}, - "layerDigest":{"shape":"LayerDigest"} - } - }, - "GetRepositoryPolicyRequest":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"} - } - }, - "GetRepositoryPolicyResponse":{ - "type":"structure", - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "policyText":{"shape":"RepositoryPolicyText"} - } - }, - "Image":{ - "type":"structure", - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "imageId":{"shape":"ImageIdentifier"}, - "imageManifest":{"shape":"ImageManifest"} - } - }, - "ImageAlreadyExistsException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "ImageDigest":{"type":"string"}, - "ImageFailure":{ - "type":"structure", - "members":{ - "imageId":{"shape":"ImageIdentifier"}, - "failureCode":{"shape":"ImageFailureCode"}, - "failureReason":{"shape":"ImageFailureReason"} - } - }, - "ImageFailureCode":{ - "type":"string", - "enum":[ - "InvalidImageDigest", - "InvalidImageTag", - "ImageTagDoesNotMatchDigest", - "ImageNotFound", - "MissingDigestAndTag" - ] - }, - "ImageFailureList":{ - "type":"list", - "member":{"shape":"ImageFailure"} - }, - "ImageFailureReason":{"type":"string"}, - "ImageIdentifier":{ - "type":"structure", - "members":{ - "imageDigest":{"shape":"ImageDigest"}, - "imageTag":{"shape":"ImageTag"} - } - }, - "ImageIdentifierList":{ - "type":"list", - "member":{"shape":"ImageIdentifier"}, - "max":100, - "min":1 - }, - "ImageList":{ - "type":"list", - "member":{"shape":"Image"} - }, - "ImageManifest":{"type":"string"}, - "ImageTag":{"type":"string"}, - "InitiateLayerUploadRequest":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"} - } - }, - "InitiateLayerUploadResponse":{ - "type":"structure", - "members":{ - "uploadId":{"shape":"UploadId"}, - "partSize":{"shape":"PartSize"} - } - }, - "InvalidLayerException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "InvalidLayerPartException":{ - "type":"structure", - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "uploadId":{"shape":"UploadId"}, - "lastValidByteReceived":{"shape":"PartSize"}, - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "InvalidParameterException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "Layer":{ - "type":"structure", - "members":{ - "layerDigest":{"shape":"LayerDigest"}, - "layerAvailability":{"shape":"LayerAvailability"}, - "layerSize":{"shape":"LayerSizeInBytes"} - } - }, - "LayerAlreadyExistsException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "LayerAvailability":{ - "type":"string", - "enum":[ - "AVAILABLE", - "UNAVAILABLE" - ] - }, - "LayerDigest":{ - "type":"string", - "pattern":"[a-zA-Z0-9-_+.]+:[a-fA-F0-9]+" - }, - "LayerDigestList":{ - "type":"list", - "member":{"shape":"LayerDigest"}, - "max":100, - "min":1 - }, - "LayerFailure":{ - "type":"structure", - "members":{ - "layerDigest":{"shape":"BatchedOperationLayerDigest"}, - "failureCode":{"shape":"LayerFailureCode"}, - "failureReason":{"shape":"LayerFailureReason"} - } - }, - "LayerFailureCode":{ - "type":"string", - "enum":[ - "InvalidLayerDigest", - "MissingLayerDigest" - ] - }, - "LayerFailureList":{ - "type":"list", - "member":{"shape":"LayerFailure"} - }, - "LayerFailureReason":{"type":"string"}, - "LayerInaccessibleException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "LayerList":{ - "type":"list", - "member":{"shape":"Layer"} - }, - "LayerPartBlob":{"type":"blob"}, - "LayerPartTooSmallException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "LayerSizeInBytes":{"type":"long"}, - "LayersNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "ListImagesRequest":{ - "type":"structure", - "required":["repositoryName"], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "nextToken":{"shape":"NextToken"}, - "maxResults":{"shape":"MaxResults"} - } - }, - "ListImagesResponse":{ - "type":"structure", - "members":{ - "imageIds":{"shape":"ImageIdentifierList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "MaxResults":{ - "type":"integer", - "max":100, - "min":1 - }, - "NextToken":{"type":"string"}, - "PartSize":{ - "type":"long", - "min":0 - }, - "ProxyEndpoint":{"type":"string"}, - "PutImageRequest":{ - "type":"structure", - "required":[ - "repositoryName", - "imageManifest" - ], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "imageManifest":{"shape":"ImageManifest"} - } - }, - "PutImageResponse":{ - "type":"structure", - "members":{ - "image":{"shape":"Image"} - } - }, - "RegistryId":{ - "type":"string", - "pattern":"[0-9]{12}" - }, - "Repository":{ - "type":"structure", - "members":{ - "repositoryArn":{"shape":"Arn"}, - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "repositoryUri":{"shape":"Url"} - } - }, - "RepositoryAlreadyExistsException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "RepositoryList":{ - "type":"list", - "member":{"shape":"Repository"} - }, - "RepositoryName":{ - "type":"string", - "max":256, - "min":2, - "pattern":"(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*" - }, - "RepositoryNameList":{ - "type":"list", - "member":{"shape":"RepositoryName"}, - "max":100, - "min":1 - }, - "RepositoryNotEmptyException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "RepositoryNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "RepositoryPolicyNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "RepositoryPolicyText":{ - "type":"string", - "max":10240, - "min":0 - }, - "ServerException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true, - "fault":true - }, - "SetRepositoryPolicyRequest":{ - "type":"structure", - "required":[ - "repositoryName", - "policyText" - ], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "policyText":{"shape":"RepositoryPolicyText"}, - "force":{"shape":"ForceFlag"} - } - }, - "SetRepositoryPolicyResponse":{ - "type":"structure", - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "policyText":{"shape":"RepositoryPolicyText"} - } - }, - "UploadId":{ - "type":"string", - "pattern":"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" - }, - "UploadLayerPartRequest":{ - "type":"structure", - "required":[ - "repositoryName", - "uploadId", - "partFirstByte", - "partLastByte", - "layerPartBlob" - ], - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "uploadId":{"shape":"UploadId"}, - "partFirstByte":{"shape":"PartSize"}, - "partLastByte":{"shape":"PartSize"}, - "layerPartBlob":{"shape":"LayerPartBlob"} - } - }, - "UploadLayerPartResponse":{ - "type":"structure", - "members":{ - "registryId":{"shape":"RegistryId"}, - "repositoryName":{"shape":"RepositoryName"}, - "uploadId":{"shape":"UploadId"}, - "lastByteReceived":{"shape":"PartSize"} - } - }, - "UploadNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true - }, - "Url":{"type":"string"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/docs-2.json deleted file mode 100644 index b8f6aa2e6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/docs-2.json +++ /dev/null @@ -1,620 +0,0 @@ -{ - "version": "2.0", - "service": "

    Amazon EC2 Container Registry (Amazon ECR) is a managed AWS Docker registry service. Customers can use the familiar Docker CLI to push, pull, and manage images. Amazon ECR provides a secure, scalable, and reliable registry. Amazon ECR supports private Docker repositories with resource-based permissions using AWS IAM so that specific users or Amazon EC2 instances can access repositories and images. Developers can use the Docker CLI to author and manage images.

    ", - "operations": { - "BatchCheckLayerAvailability": "

    Check the availability of multiple image layers in a specified registry and repository.

    This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

    ", - "BatchDeleteImage": "

    Deletes a list of specified images within a specified repository. Images are specified with either imageTag or imageDigest.

    ", - "BatchGetImage": "

    Gets detailed information for specified images within a specified repository. Images are specified with either imageTag or imageDigest.

    ", - "CompleteLayerUpload": "

    Inform Amazon ECR that the image layer upload for a specified registry, repository name, and upload ID, has completed. You can optionally provide a sha256 digest of the image layer for data validation purposes.

    This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

    ", - "CreateRepository": "

    Creates an image repository.

    ", - "DeleteRepository": "

    Deletes an existing image repository. If a repository contains images, you must use the force option to delete it.

    ", - "DeleteRepositoryPolicy": "

    Deletes the repository policy from a specified repository.

    ", - "DescribeRepositories": "

    Describes image repositories in a registry.

    ", - "GetAuthorizationToken": "

    Retrieves a token that is valid for a specified registry for 12 hours. This command allows you to use the docker CLI to push and pull images with Amazon ECR. If you do not specify a registry, the default registry is assumed.

    The authorizationToken returned for each registry specified is a base64 encoded string that can be decoded and used in a docker login command to authenticate to a registry. The AWS CLI offers an aws ecr get-login command that simplifies the login process.

    ", - "GetDownloadUrlForLayer": "

    Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can only get URLs for image layers that are referenced in an image.

    This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

    ", - "GetRepositoryPolicy": "

    Retrieves the repository policy for a specified repository.

    ", - "InitiateLayerUpload": "

    Notify Amazon ECR that you intend to upload an image layer.

    This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

    ", - "ListImages": "

    Lists all the image IDs for a given repository.

    ", - "PutImage": "

    Creates or updates the image manifest associated with an image.

    This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

    ", - "SetRepositoryPolicy": "

    Applies a repository policy on a specified repository to control access permissions.

    ", - "UploadLayerPart": "

    Uploads an image layer part to Amazon ECR.

    This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers. Use the docker CLI to pull, tag, and push images.

    " - }, - "shapes": { - "Arn": { - "base": null, - "refs": { - "Repository$repositoryArn": "

    The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the arn:aws:ecr namespace, followed by the region of the repository, the AWS account ID of the repository owner, the repository namespace, and then the repository name. For example, arn:aws:ecr:region:012345678910:repository/test.

    " - } - }, - "AuthorizationData": { - "base": "

    An object representing authorization data for an Amazon ECR registry.

    ", - "refs": { - "AuthorizationDataList$member": null - } - }, - "AuthorizationDataList": { - "base": null, - "refs": { - "GetAuthorizationTokenResponse$authorizationData": "

    A list of authorization token data objects that correspond to the registryIds values in the request.

    " - } - }, - "Base64": { - "base": null, - "refs": { - "AuthorizationData$authorizationToken": "

    A base64-encoded string that contains authorization data for the specified Amazon ECR registry. When the string is decoded, it is presented in the format user:password for private registry authentication using docker login.

    " - } - }, - "BatchCheckLayerAvailabilityRequest": { - "base": null, - "refs": { - } - }, - "BatchCheckLayerAvailabilityResponse": { - "base": null, - "refs": { - } - }, - "BatchDeleteImageRequest": { - "base": "

    Deletes specified images within a specified repository. Images are specified with either the imageTag or imageDigest.

    ", - "refs": { - } - }, - "BatchDeleteImageResponse": { - "base": null, - "refs": { - } - }, - "BatchGetImageRequest": { - "base": null, - "refs": { - } - }, - "BatchGetImageResponse": { - "base": null, - "refs": { - } - }, - "BatchedOperationLayerDigest": { - "base": null, - "refs": { - "BatchedOperationLayerDigestList$member": null, - "LayerFailure$layerDigest": "

    The layer digest associated with the failure.

    " - } - }, - "BatchedOperationLayerDigestList": { - "base": null, - "refs": { - "BatchCheckLayerAvailabilityRequest$layerDigests": "

    The digests of the image layers to check.

    " - } - }, - "CompleteLayerUploadRequest": { - "base": null, - "refs": { - } - }, - "CompleteLayerUploadResponse": { - "base": null, - "refs": { - } - }, - "CreateRepositoryRequest": { - "base": null, - "refs": { - } - }, - "CreateRepositoryResponse": { - "base": null, - "refs": { - } - }, - "DeleteRepositoryPolicyRequest": { - "base": null, - "refs": { - } - }, - "DeleteRepositoryPolicyResponse": { - "base": null, - "refs": { - } - }, - "DeleteRepositoryRequest": { - "base": null, - "refs": { - } - }, - "DeleteRepositoryResponse": { - "base": null, - "refs": { - } - }, - "DescribeRepositoriesRequest": { - "base": null, - "refs": { - } - }, - "DescribeRepositoriesResponse": { - "base": null, - "refs": { - } - }, - "EmptyUploadException": { - "base": "

    The specified layer upload does not contain any layer parts.

    ", - "refs": { - } - }, - "ExceptionMessage": { - "base": null, - "refs": { - "EmptyUploadException$message": "

    The error message associated with the exception.

    ", - "ImageAlreadyExistsException$message": "

    The error message associated with the exception.

    ", - "InvalidLayerException$message": "

    The error message associated with the exception.

    ", - "InvalidLayerPartException$message": "

    The error message associated with the exception.

    ", - "InvalidParameterException$message": "

    The error message associated with the exception.

    ", - "LayerAlreadyExistsException$message": "

    The error message associated with the exception.

    ", - "LayerInaccessibleException$message": "

    The error message associated with the exception.

    ", - "LayerPartTooSmallException$message": "

    The error message associated with the exception.

    ", - "LayersNotFoundException$message": "

    The error message associated with the exception.

    ", - "LimitExceededException$message": "

    The error message associated with the exception.

    ", - "RepositoryAlreadyExistsException$message": "

    The error message associated with the exception.

    ", - "RepositoryNotEmptyException$message": "

    The error message associated with the exception.

    ", - "RepositoryNotFoundException$message": "

    The error message associated with the exception.

    ", - "RepositoryPolicyNotFoundException$message": "

    The error message associated with the exception.

    ", - "ServerException$message": "

    The error message associated with the exception.

    ", - "UploadNotFoundException$message": "

    The error message associated with the exception.

    " - } - }, - "ExpirationTimestamp": { - "base": null, - "refs": { - "AuthorizationData$expiresAt": "

    The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.

    " - } - }, - "ForceFlag": { - "base": null, - "refs": { - "DeleteRepositoryRequest$force": "

    Force the deletion of the repository if it contains images.

    ", - "SetRepositoryPolicyRequest$force": "

    If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental repository lock outs.

    " - } - }, - "GetAuthorizationTokenRegistryIdList": { - "base": null, - "refs": { - "GetAuthorizationTokenRequest$registryIds": "

    A list of AWS account IDs that are associated with the registries for which to get authorization tokens. If you do not specify a registry, the default registry is assumed.

    " - } - }, - "GetAuthorizationTokenRequest": { - "base": null, - "refs": { - } - }, - "GetAuthorizationTokenResponse": { - "base": null, - "refs": { - } - }, - "GetDownloadUrlForLayerRequest": { - "base": null, - "refs": { - } - }, - "GetDownloadUrlForLayerResponse": { - "base": null, - "refs": { - } - }, - "GetRepositoryPolicyRequest": { - "base": null, - "refs": { - } - }, - "GetRepositoryPolicyResponse": { - "base": null, - "refs": { - } - }, - "Image": { - "base": "

    Object representing an image.

    ", - "refs": { - "ImageList$member": null, - "PutImageResponse$image": "

    Details of the image uploaded.

    " - } - }, - "ImageAlreadyExistsException": { - "base": "

    The specified image has already been pushed, and there are no changes to the manifest or image tag since the last push.

    ", - "refs": { - } - }, - "ImageDigest": { - "base": null, - "refs": { - "ImageIdentifier$imageDigest": "

    The sha256 digest of the image manifest.

    " - } - }, - "ImageFailure": { - "base": null, - "refs": { - "ImageFailureList$member": null - } - }, - "ImageFailureCode": { - "base": null, - "refs": { - "ImageFailure$failureCode": "

    The code associated with the failure.

    " - } - }, - "ImageFailureList": { - "base": null, - "refs": { - "BatchDeleteImageResponse$failures": "

    Any failures associated with the call.

    ", - "BatchGetImageResponse$failures": "

    Any failures associated with the call.

    " - } - }, - "ImageFailureReason": { - "base": null, - "refs": { - "ImageFailure$failureReason": "

    The reason for the failure.

    " - } - }, - "ImageIdentifier": { - "base": null, - "refs": { - "Image$imageId": "

    An object containing the image tag and image digest associated with an image.

    ", - "ImageFailure$imageId": "

    The image ID associated with the failure.

    ", - "ImageIdentifierList$member": null - } - }, - "ImageIdentifierList": { - "base": null, - "refs": { - "BatchDeleteImageRequest$imageIds": "

    A list of image ID references that correspond to images to delete. The format of the imageIds reference is imageTag=tag or imageDigest=digest.

    ", - "BatchDeleteImageResponse$imageIds": "

    The image IDs of the deleted images.

    ", - "BatchGetImageRequest$imageIds": "

    A list of image ID references that correspond to images to describe. The format of the imageIds reference is imageTag=tag or imageDigest=digest.

    ", - "ListImagesResponse$imageIds": "

    The list of image IDs for the requested repository.

    " - } - }, - "ImageList": { - "base": null, - "refs": { - "BatchGetImageResponse$images": "

    A list of image objects corresponding to the image references in the request.

    " - } - }, - "ImageManifest": { - "base": null, - "refs": { - "Image$imageManifest": "

    The image manifest associated with the image.

    ", - "PutImageRequest$imageManifest": "

    The image manifest corresponding to the image to be uploaded.

    " - } - }, - "ImageTag": { - "base": null, - "refs": { - "ImageIdentifier$imageTag": "

    The tag used for the image.

    " - } - }, - "InitiateLayerUploadRequest": { - "base": null, - "refs": { - } - }, - "InitiateLayerUploadResponse": { - "base": null, - "refs": { - } - }, - "InvalidLayerException": { - "base": "

    The layer digest calculation performed by Amazon ECR upon receipt of the image layer does not match the digest specified.

    ", - "refs": { - } - }, - "InvalidLayerPartException": { - "base": "

    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.

    ", - "refs": { - } - }, - "InvalidParameterException": { - "base": "

    The specified parameter is invalid. Review the available parameters for the API request.

    ", - "refs": { - } - }, - "Layer": { - "base": null, - "refs": { - "LayerList$member": null - } - }, - "LayerAlreadyExistsException": { - "base": "

    The image layer already exists in the associated repository.

    ", - "refs": { - } - }, - "LayerAvailability": { - "base": null, - "refs": { - "Layer$layerAvailability": "

    The availability status of the image layer. Valid values are AVAILABLE and UNAVAILABLE.

    " - } - }, - "LayerDigest": { - "base": null, - "refs": { - "CompleteLayerUploadResponse$layerDigest": "

    The sha256 digest of the image layer.

    ", - "GetDownloadUrlForLayerRequest$layerDigest": "

    The digest of the image layer to download.

    ", - "GetDownloadUrlForLayerResponse$layerDigest": "

    The digest of the image layer to download.

    ", - "Layer$layerDigest": "

    The sha256 digest of the image layer.

    ", - "LayerDigestList$member": null - } - }, - "LayerDigestList": { - "base": null, - "refs": { - "CompleteLayerUploadRequest$layerDigests": "

    The sha256 digest of the image layer.

    " - } - }, - "LayerFailure": { - "base": null, - "refs": { - "LayerFailureList$member": null - } - }, - "LayerFailureCode": { - "base": null, - "refs": { - "LayerFailure$failureCode": "

    The failure code associated with the failure.

    " - } - }, - "LayerFailureList": { - "base": null, - "refs": { - "BatchCheckLayerAvailabilityResponse$failures": "

    Any failures associated with the call.

    " - } - }, - "LayerFailureReason": { - "base": null, - "refs": { - "LayerFailure$failureReason": "

    The reason for the failure.

    " - } - }, - "LayerInaccessibleException": { - "base": "

    The specified layer is not available because it is not associated with an image. Unassociated image layers may be cleaned up at any time.

    ", - "refs": { - } - }, - "LayerList": { - "base": null, - "refs": { - "BatchCheckLayerAvailabilityResponse$layers": "

    A list of image layer objects corresponding to the image layer references in the request.

    " - } - }, - "LayerPartBlob": { - "base": null, - "refs": { - "UploadLayerPartRequest$layerPartBlob": "

    The base64-encoded layer part payload.

    " - } - }, - "LayerPartTooSmallException": { - "base": "

    Layer parts must be at least 5 MiB in size.

    ", - "refs": { - } - }, - "LayerSizeInBytes": { - "base": null, - "refs": { - "Layer$layerSize": "

    The size, in bytes, of the image layer.

    " - } - }, - "LayersNotFoundException": { - "base": "

    The specified layers could not be found, or the specified layer is not valid for this repository.

    ", - "refs": { - } - }, - "LimitExceededException": { - "base": "

    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 in the Amazon EC2 Container Registry User Guide.

    ", - "refs": { - } - }, - "ListImagesRequest": { - "base": null, - "refs": { - } - }, - "ListImagesResponse": { - "base": null, - "refs": { - } - }, - "MaxResults": { - "base": null, - "refs": { - "DescribeRepositoriesRequest$maxResults": "

    The maximum number of repository results returned by DescribeRepositories in paginated output. When this parameter is used, DescribeRepositories only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeRepositories request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then DescribeRepositories returns up to 100 results and a nextToken value, if applicable.

    ", - "ListImagesRequest$maxResults": "

    The maximum number of image results returned by ListImages in paginated output. When this parameter is used, ListImages only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListImages request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListImages returns up to 100 results and a nextToken value, if applicable.

    " - } - }, - "NextToken": { - "base": null, - "refs": { - "DescribeRepositoriesRequest$nextToken": "

    The nextToken value returned from a previous paginated DescribeRepositories request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

    ", - "DescribeRepositoriesResponse$nextToken": "

    The nextToken value to include in a future DescribeRepositories request. When the results of a DescribeRepositories request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "ListImagesRequest$nextToken": "

    The nextToken value returned from a previous paginated ListImages request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

    ", - "ListImagesResponse$nextToken": "

    The nextToken value to include in a future ListImages request. When the results of a ListImages request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    " - } - }, - "PartSize": { - "base": null, - "refs": { - "InitiateLayerUploadResponse$partSize": "

    The size, in bytes, that Amazon ECR expects future layer part uploads to be.

    ", - "InvalidLayerPartException$lastValidByteReceived": "

    The last valid byte received from the layer part upload that is associated with the exception.

    ", - "UploadLayerPartRequest$partFirstByte": "

    The integer value of the first byte of the layer part.

    ", - "UploadLayerPartRequest$partLastByte": "

    The integer value of the last byte of the layer part.

    ", - "UploadLayerPartResponse$lastByteReceived": "

    The integer value of the last byte received in the request.

    " - } - }, - "ProxyEndpoint": { - "base": null, - "refs": { - "AuthorizationData$proxyEndpoint": "

    The registry URL to use for this authorization token in a docker login command. The Amazon ECR registry URL format is https://aws_account_id.dkr.ecr.region.amazonaws.com. For example, https://012345678910.dkr.ecr.us-east-1.amazonaws.com..

    " - } - }, - "PutImageRequest": { - "base": null, - "refs": { - } - }, - "PutImageResponse": { - "base": null, - "refs": { - } - }, - "RegistryId": { - "base": null, - "refs": { - "BatchCheckLayerAvailabilityRequest$registryId": "

    The AWS account ID associated with the registry that contains the image layers to check. If you do not specify a registry, the default registry is assumed.

    ", - "BatchDeleteImageRequest$registryId": "

    The AWS account ID associated with the registry that contains the image to delete. If you do not specify a registry, the default registry is assumed.

    ", - "BatchGetImageRequest$registryId": "

    The AWS account ID associated with the registry that contains the images to describe. If you do not specify a registry, the default registry is assumed.

    ", - "CompleteLayerUploadRequest$registryId": "

    The AWS account ID associated with the registry to which to upload layers. If you do not specify a registry, the default registry is assumed.

    ", - "CompleteLayerUploadResponse$registryId": "

    The registry ID associated with the request.

    ", - "DeleteRepositoryPolicyRequest$registryId": "

    The AWS account ID associated with the registry that contains the repository policy to delete. If you do not specify a registry, the default registry is assumed.

    ", - "DeleteRepositoryPolicyResponse$registryId": "

    The registry ID associated with the request.

    ", - "DeleteRepositoryRequest$registryId": "

    The AWS account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default registry is assumed.

    ", - "DescribeRepositoriesRequest$registryId": "

    The AWS account ID associated with the registry that contains the repositories to be described. If you do not specify a registry, the default registry is assumed.

    ", - "GetAuthorizationTokenRegistryIdList$member": null, - "GetDownloadUrlForLayerRequest$registryId": "

    The AWS account ID associated with the registry that contains the image layer to download. If you do not specify a registry, the default registry is assumed.

    ", - "GetRepositoryPolicyRequest$registryId": "

    The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.

    ", - "GetRepositoryPolicyResponse$registryId": "

    The registry ID associated with the request.

    ", - "Image$registryId": "

    The AWS account ID associated with the registry containing the image.

    ", - "InitiateLayerUploadRequest$registryId": "

    The AWS account ID associated with the registry that you intend to upload layers to. If you do not specify a registry, the default registry is assumed.

    ", - "InvalidLayerPartException$registryId": "

    The registry ID associated with the exception.

    ", - "ListImagesRequest$registryId": "

    The AWS account ID associated with the registry that contains the repository to list images in. If you do not specify a registry, the default registry is assumed.

    ", - "PutImageRequest$registryId": "

    The AWS account ID associated with the registry that contains the repository in which to put the image. If you do not specify a registry, the default registry is assumed.

    ", - "Repository$registryId": "

    The AWS account ID associated with the registry that contains the repository.

    ", - "SetRepositoryPolicyRequest$registryId": "

    The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.

    ", - "SetRepositoryPolicyResponse$registryId": "

    The registry ID associated with the request.

    ", - "UploadLayerPartRequest$registryId": "

    The AWS account ID associated with the registry that you are uploading layer parts to. If you do not specify a registry, the default registry is assumed.

    ", - "UploadLayerPartResponse$registryId": "

    The registry ID associated with the request.

    " - } - }, - "Repository": { - "base": "

    Object representing a repository.

    ", - "refs": { - "CreateRepositoryResponse$repository": null, - "DeleteRepositoryResponse$repository": null, - "RepositoryList$member": null - } - }, - "RepositoryAlreadyExistsException": { - "base": "

    The specified repository already exists in the specified registry.

    ", - "refs": { - } - }, - "RepositoryList": { - "base": null, - "refs": { - "DescribeRepositoriesResponse$repositories": "

    A list of repository objects corresponding to valid repositories.

    " - } - }, - "RepositoryName": { - "base": null, - "refs": { - "BatchCheckLayerAvailabilityRequest$repositoryName": "

    The name of the repository that is associated with the image layers to check.

    ", - "BatchDeleteImageRequest$repositoryName": "

    The repository that contains the image to delete.

    ", - "BatchGetImageRequest$repositoryName": "

    The repository that contains the images to describe.

    ", - "CompleteLayerUploadRequest$repositoryName": "

    The name of the repository to associate with the image layer.

    ", - "CompleteLayerUploadResponse$repositoryName": "

    The repository name associated with the request.

    ", - "CreateRepositoryRequest$repositoryName": "

    The name to use for the repository. The repository name may be specified on its own (such as nginx-web-app) or it can be prepended with a namespace to group the repository into a category (such as project-a/nginx-web-app).

    ", - "DeleteRepositoryPolicyRequest$repositoryName": "

    The name of the repository that is associated with the repository policy to delete.

    ", - "DeleteRepositoryPolicyResponse$repositoryName": "

    The repository name associated with the request.

    ", - "DeleteRepositoryRequest$repositoryName": "

    The name of the repository to delete.

    ", - "GetDownloadUrlForLayerRequest$repositoryName": "

    The name of the repository that is associated with the image layer to download.

    ", - "GetRepositoryPolicyRequest$repositoryName": "

    The name of the repository whose policy you want to retrieve.

    ", - "GetRepositoryPolicyResponse$repositoryName": "

    The repository name associated with the request.

    ", - "Image$repositoryName": "

    The name of the repository associated with the image.

    ", - "InitiateLayerUploadRequest$repositoryName": "

    The name of the repository that you intend to upload layers to.

    ", - "InvalidLayerPartException$repositoryName": "

    The repository name associated with the exception.

    ", - "ListImagesRequest$repositoryName": "

    The repository whose image IDs are to be listed.

    ", - "PutImageRequest$repositoryName": "

    The name of the repository in which to put the image.

    ", - "Repository$repositoryName": "

    The name of the repository.

    ", - "RepositoryNameList$member": null, - "SetRepositoryPolicyRequest$repositoryName": "

    The name of the repository to receive the policy.

    ", - "SetRepositoryPolicyResponse$repositoryName": "

    The repository name associated with the request.

    ", - "UploadLayerPartRequest$repositoryName": "

    The name of the repository that you are uploading layer parts to.

    ", - "UploadLayerPartResponse$repositoryName": "

    The repository name associated with the request.

    " - } - }, - "RepositoryNameList": { - "base": null, - "refs": { - "DescribeRepositoriesRequest$repositoryNames": "

    A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described.

    " - } - }, - "RepositoryNotEmptyException": { - "base": "

    The specified repository contains images. To delete a repository that contains images, you must force the deletion with the force parameter.

    ", - "refs": { - } - }, - "RepositoryNotFoundException": { - "base": "

    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.

    ", - "refs": { - } - }, - "RepositoryPolicyNotFoundException": { - "base": "

    The specified repository and registry combination does not have an associated repository policy.

    ", - "refs": { - } - }, - "RepositoryPolicyText": { - "base": null, - "refs": { - "DeleteRepositoryPolicyResponse$policyText": "

    The JSON repository policy that was deleted from the repository.

    ", - "GetRepositoryPolicyResponse$policyText": "

    The JSON repository policy text associated with the repository.

    ", - "SetRepositoryPolicyRequest$policyText": "

    The JSON repository policy text to apply to the repository.

    ", - "SetRepositoryPolicyResponse$policyText": "

    The JSON repository policy text applied to the repository.

    " - } - }, - "ServerException": { - "base": "

    These errors are usually caused by a server-side issue.

    ", - "refs": { - } - }, - "SetRepositoryPolicyRequest": { - "base": null, - "refs": { - } - }, - "SetRepositoryPolicyResponse": { - "base": null, - "refs": { - } - }, - "UploadId": { - "base": null, - "refs": { - "CompleteLayerUploadRequest$uploadId": "

    The upload ID from a previous InitiateLayerUpload operation to associate with the image layer.

    ", - "CompleteLayerUploadResponse$uploadId": "

    The upload ID associated with the layer.

    ", - "InitiateLayerUploadResponse$uploadId": "

    The upload ID for the layer upload. This parameter is passed to further UploadLayerPart and CompleteLayerUpload operations.

    ", - "InvalidLayerPartException$uploadId": "

    The upload ID associated with the exception.

    ", - "UploadLayerPartRequest$uploadId": "

    The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.

    ", - "UploadLayerPartResponse$uploadId": "

    The upload ID associated with the request.

    " - } - }, - "UploadLayerPartRequest": { - "base": null, - "refs": { - } - }, - "UploadLayerPartResponse": { - "base": null, - "refs": { - } - }, - "UploadNotFoundException": { - "base": "

    The upload could not be found, or the specified upload id is not valid for this repository.

    ", - "refs": { - } - }, - "Url": { - "base": null, - "refs": { - "GetDownloadUrlForLayerResponse$downloadUrl": "

    The pre-signed Amazon S3 download URL for the requested layer.

    ", - "Repository$repositoryUri": "

    The URI for the repository. You can use this URI for Docker push and pull operations.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecr/2015-09-21/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/docs-2.json deleted file mode 100644 index 09e9c6c52..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/docs-2.json +++ /dev/null @@ -1,1002 +0,0 @@ -{ - "version": "2.0", - "service": "

    Amazon EC2 Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes it easy to run, stop, and manage Docker containers on a cluster of EC2 instances. Amazon ECS lets you launch and stop container-enabled applications with simple API calls, allows you to get the state of your cluster from a centralized service, and gives you access to many familiar Amazon EC2 features like security groups, Amazon EBS volumes, and IAM roles.

    You can use Amazon ECS to schedule the placement of containers across your cluster based on your resource needs, isolation policies, and availability requirements. Amazon EC2 Container Service eliminates the need for you to operate your own cluster management and configuration management systems or worry about scaling your management infrastructure.

    ", - "operations": { - "CreateCluster": "

    Creates a new Amazon ECS cluster. By default, your account receives a default cluster when you launch your first container instance. However, you can create your own cluster with a unique name with the CreateCluster action.

    ", - "CreateService": "

    Runs and maintains a desired number of tasks from a specified task definition. If the number of tasks running in a service drops below desiredCount, Amazon ECS spawns another instantiation of the task in the specified cluster. To update an existing service, see UpdateService.

    In addition to maintaining the desired count of tasks in your service, you can optionally run your service behind a load balancer. The load balancer distributes traffic across the tasks that are associated with the service.

    You can optionally specify a deployment configuration for your service. During a deployment (which is triggered by changing the task definition of a service with an UpdateService operation), the service scheduler uses the minimumHealthyPercent and maximumPercent parameters to determine the deployment strategy.

    If the minimumHealthyPercent is below 100%, the scheduler can ignore the desiredCount temporarily during a deployment. For example, if your service has a desiredCount of four tasks, a minimumHealthyPercent of 50% allows the scheduler to stop two existing tasks before starting two new tasks. Tasks for services that do not use a load balancer are considered healthy if they are in the RUNNING state; tasks for services that do use a load balancer are considered healthy if they are in the RUNNING state and the container instance it is hosted on is reported as healthy by the load balancer. The default value for minimumHealthyPercent is 50% in the console and 100% for the AWS CLI, the AWS SDKs, and the APIs.

    The maximumPercent parameter represents an upper limit on the number of running tasks during a deployment, which enables you to define the deployment batch size. For example, if your service has a desiredCount of four tasks, a maximumPercent value of 200% starts four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default value for maximumPercent is 200%.

    When the service scheduler launches new tasks, it attempts to balance them across the Availability Zones in your cluster with the following logic:

    • Determine which of the container instances in your cluster can support your service's task definition (for example, they have the required CPU, memory, ports, and container instance attributes).

    • Sort the valid container instances by the fewest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have zero, valid container instances in either zone B or C are considered optimal for placement.

    • Place the new service task on a valid container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the fewest number of running tasks for this service.

    ", - "DeleteCluster": "

    Deletes the specified cluster. You must deregister all container instances from this cluster before you may delete it. You can list the container instances in a cluster with ListContainerInstances and deregister them with DeregisterContainerInstance.

    ", - "DeleteService": "

    Deletes a specified service within a cluster. You can delete a service if you have no running tasks in it and the desired task count is zero. If the service is actively maintaining tasks, you cannot delete it, and you must update the service to a desired task count of zero. For more information, see UpdateService.

    When you delete a service, if there are still running tasks that require cleanup, the service status moves from ACTIVE to DRAINING, and the service is no longer visible in the console or in ListServices API operations. After the tasks have stopped, then the service status moves from DRAINING to INACTIVE. Services in the DRAINING or INACTIVE status can still be viewed with DescribeServices API operations; however, in the future, INACTIVE services may be cleaned up and purged from Amazon ECS record keeping, and DescribeServices API operations on those services will return a ServiceNotFoundException error.

    ", - "DeregisterContainerInstance": "

    Deregisters an Amazon ECS container instance from the specified cluster. This instance is no longer available to run tasks.

    If you intend to use the container instance for some other purpose after deregistration, you should stop all of the tasks running on the container instance before deregistration to avoid any orphaned tasks from consuming resources.

    Deregistering a container instance removes the instance from a cluster, but it does not terminate the EC2 instance; if you are finished using the instance, be sure to terminate it in the Amazon EC2 console to stop billing.

    If you terminate a running container instance with a connected Amazon ECS container agent, the agent automatically deregisters the instance from your cluster (stopped container instances or instances with disconnected agents are not automatically deregistered when terminated).

    ", - "DeregisterTaskDefinition": "

    Deregisters the specified task definition by family and revision. Upon deregistration, the task definition is marked as INACTIVE. Existing tasks and services that reference an INACTIVE task definition continue to run without disruption. Existing services that reference an INACTIVE task definition can still scale up or down by modifying the service's desired count.

    You cannot use an INACTIVE task definition to run new tasks or create new services, and you cannot update an existing service to reference an INACTIVE task definition (although there may be up to a 10 minute window following deregistration where these restrictions have not yet taken effect).

    ", - "DescribeClusters": "

    Describes one or more of your clusters.

    ", - "DescribeContainerInstances": "

    Describes Amazon EC2 Container Service container instances. Returns metadata about registered and remaining resources on each container instance requested.

    ", - "DescribeServices": "

    Describes the specified services running in your cluster.

    ", - "DescribeTaskDefinition": "

    Describes a task definition. You can specify a family and revision to find information about a specific task definition, or you can simply specify the family to find the latest ACTIVE revision in that family.

    You can only describe INACTIVE task definitions while an active task or service references them.

    ", - "DescribeTasks": "

    Describes a specified task or tasks.

    ", - "DiscoverPollEndpoint": "

    This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

    Returns an endpoint for the Amazon EC2 Container Service agent to poll for updates.

    ", - "ListClusters": "

    Returns a list of existing clusters.

    ", - "ListContainerInstances": "

    Returns a list of container instances in a specified cluster.

    ", - "ListServices": "

    Lists the services that are running in a specified cluster.

    ", - "ListTaskDefinitionFamilies": "

    Returns a list of task definition families that are registered to your account (which may include task definition families that no longer have any ACTIVE task definition revisions).

    You can filter out task definition families that do not contain any ACTIVE task definition revisions by setting the status parameter to ACTIVE. You can also filter the results with the familyPrefix parameter.

    ", - "ListTaskDefinitions": "

    Returns a list of task definitions that are registered to your account. You can filter the results by family name with the familyPrefix parameter or by status with the status parameter.

    ", - "ListTasks": "

    Returns a list of tasks for a specified cluster. You can filter the results by family name, by a particular container instance, or by the desired status of the task with the family, containerInstance, and desiredStatus parameters.

    ", - "RegisterContainerInstance": "

    This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

    Registers an EC2 instance into the specified cluster. This instance becomes available to place containers on.

    ", - "RegisterTaskDefinition": "

    Registers a new task definition from the supplied family and containerDefinitions. Optionally, you can add data volumes to your containers with the volumes parameter. For more information about task definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

    ", - "RunTask": "

    Start a task using random placement and the default Amazon ECS scheduler. To use your own scheduler or place a task on a specific container instance, use StartTask instead.

    The count parameter is limited to 10 tasks per call.

    ", - "StartTask": "

    Starts a new task from the specified task definition on the specified container instance or instances. To use the default Amazon ECS scheduler to place your task, use RunTask instead.

    The list of container instances to start tasks on is limited to 10.

    ", - "StopTask": "

    Stops a running task.

    When StopTask is called on a task, the equivalent of docker stop is issued to the containers running in the task. This results in a SIGTERM and a 30-second timeout, after which SIGKILL is sent and the containers are forcibly stopped. If the container handles the SIGTERM gracefully and exits within 30 seconds from receiving it, no SIGKILL is sent.

    ", - "SubmitContainerStateChange": "

    This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

    Sent to acknowledge that a container changed states.

    ", - "SubmitTaskStateChange": "

    This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.

    Sent to acknowledge that a task changed states.

    ", - "UpdateContainerAgent": "

    Updates the Amazon ECS container agent on a specified container instance. Updating the Amazon ECS container agent does not interrupt running tasks or services on the container instance. The process for updating the agent differs depending on whether your container instance was launched with the Amazon ECS-optimized AMI or another operating system.

    UpdateContainerAgent requires the Amazon ECS-optimized AMI or Amazon Linux with the ecs-init service installed and running. For help updating the Amazon ECS container agent on other operating systems, see Manually Updating the Amazon ECS Container Agent in the Amazon EC2 Container Service Developer Guide.

    ", - "UpdateService": "

    Modifies the desired count, deployment configuration, or task definition used in a service.

    You can add to or subtract from the number of instantiations of a task definition in a service by specifying the cluster that the service is running in and a new desiredCount parameter.

    You can use UpdateService to modify your task definition and deploy a new version of your service.

    You can also update the deployment configuration of a service. When a deployment is triggered by updating the task definition of a service, the service scheduler uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, to determine the deployment strategy.

    If the minimumHealthyPercent is below 100%, the scheduler can ignore the desiredCount temporarily during a deployment. For example, if your service has a desiredCount of four tasks, a minimumHealthyPercent of 50% allows the scheduler to stop two existing tasks before starting two new tasks. Tasks for services that do not use a load balancer are considered healthy if they are in the RUNNING state; tasks for services that do use a load balancer are considered healthy if they are in the RUNNING state and the container instance it is hosted on is reported as healthy by the load balancer.

    The maximumPercent parameter represents an upper limit on the number of running tasks during a deployment, which enables you to define the deployment batch size. For example, if your service has a desiredCount of four tasks, a maximumPercent value of 200% starts four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available).

    When UpdateService stops a task during a deployment, the equivalent of docker stop is issued to the containers running in the task. This results in a SIGTERM and a 30-second timeout, after which SIGKILL is sent and the containers are forcibly stopped. If the container handles the SIGTERM gracefully and exits within 30 seconds from receiving it, no SIGKILL is sent.

    When the service scheduler launches new tasks, it attempts to balance them across the Availability Zones in your cluster with the following logic:

    • Determine which of the container instances in your cluster can support your service's task definition (for example, they have the required CPU, memory, ports, and container instance attributes).

    • Sort the valid container instances by the fewest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have zero, valid container instances in either zone B or C are considered optimal for placement.

    • Place the new service task on a valid container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the fewest number of running tasks for this service.

    " - }, - "shapes": { - "AgentUpdateStatus": { - "base": null, - "refs": { - "ContainerInstance$agentUpdateStatus": "

    The status of the most recent agent update. If an update has never been requested, this value is NULL.

    " - } - }, - "Attribute": { - "base": "

    The attributes applicable to a container instance when it is registered.

    ", - "refs": { - "Attributes$member": null, - "RequiresAttributes$member": null - } - }, - "Attributes": { - "base": null, - "refs": { - "ContainerInstance$attributes": "

    The attributes set for the container instance by the Amazon ECS container agent at instance registration.

    ", - "RegisterContainerInstanceRequest$attributes": "

    The container instance attributes that this container instance supports.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "ContainerInstance$agentConnected": "

    This parameter returns true if the agent is actually connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped return false, and instances without a connected agent cannot accept placement requests.

    " - } - }, - "BoxedBoolean": { - "base": null, - "refs": { - "ContainerDefinition$essential": "

    If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the essential parameter of a container is marked as false, then its failure does not affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential.

    All tasks must have at least one essential container. If you have an application that is composed of multiple containers, you should group containers that are used for a common purpose into components, and separate the different components into multiple task definitions. For more information, see Application Architecture in the Amazon EC2 Container Service Developer Guide.

    ", - "ContainerDefinition$disableNetworking": "

    When this parameter is true, networking is disabled within the container. This parameter maps to NetworkDisabled in the Create a container section of the Docker Remote API.

    ", - "ContainerDefinition$privileged": "

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

    ", - "ContainerDefinition$readonlyRootFilesystem": "

    When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and the --read-only option to docker run.

    ", - "DeregisterContainerInstanceRequest$force": "

    Forces the deregistration of the container instance. If you have tasks running on the container instance when you deregister it with the force option, these tasks remain running and they continue to pass Elastic Load Balancing load balancer health checks until you terminate the instance or the tasks stop through some other means, but they are orphaned (no longer monitored or accounted for by Amazon ECS). If an orphaned task on your container instance is part of an Amazon ECS service, then the service scheduler starts another copy of that task, on a different container instance if possible.

    ", - "MountPoint$readOnly": "

    If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.

    ", - "VolumeFrom$readOnly": "

    If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume. The default value is false.

    " - } - }, - "BoxedInteger": { - "base": null, - "refs": { - "Container$exitCode": "

    The exit code returned from the container.

    ", - "CreateServiceRequest$desiredCount": "

    The number of instantiations of the specified task definition to place and keep running on your cluster.

    ", - "DeploymentConfiguration$maximumPercent": "

    The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is the desiredCount multiplied by the maximumPercent/100, rounded down to the nearest integer value.

    ", - "DeploymentConfiguration$minimumHealthyPercent": "

    The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.

    ", - "ListClustersRequest$maxResults": "

    The maximum number of cluster results returned by ListClusters in paginated output. When this parameter is used, ListClusters only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListClusters request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListClusters returns up to 100 results and a nextToken value if applicable.

    ", - "ListContainerInstancesRequest$maxResults": "

    The maximum number of container instance results returned by ListContainerInstances in paginated output. When this parameter is used, ListContainerInstances only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListContainerInstances request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListContainerInstances returns up to 100 results and a nextToken value if applicable.

    ", - "ListServicesRequest$maxResults": "

    The maximum number of container instance results returned by ListServices in paginated output. When this parameter is used, ListServices only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListServices request with the returned nextToken value. This value can be between 1 and 10. If this parameter is not used, then ListServices returns up to 10 results and a nextToken value if applicable.

    ", - "ListTaskDefinitionFamiliesRequest$maxResults": "

    The maximum number of task definition family results returned by ListTaskDefinitionFamilies in paginated output. When this parameter is used, ListTaskDefinitions only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListTaskDefinitionFamilies request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListTaskDefinitionFamilies returns up to 100 results and a nextToken value if applicable.

    ", - "ListTaskDefinitionsRequest$maxResults": "

    The maximum number of task definition results returned by ListTaskDefinitions in paginated output. When this parameter is used, ListTaskDefinitions only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListTaskDefinitions request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListTaskDefinitions returns up to 100 results and a nextToken value if applicable.

    ", - "ListTasksRequest$maxResults": "

    The maximum number of task results returned by ListTasks in paginated output. When this parameter is used, ListTasks only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListTasks request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListTasks returns up to 100 results and a nextToken value if applicable.

    ", - "LoadBalancer$containerPort": "

    The port on the container to associate with the load balancer. This port must correspond to a containerPort in the service's task definition. Your container instances must allow ingress traffic on the hostPort of the port mapping.

    ", - "NetworkBinding$containerPort": "

    The port number on the container that is be used with the network binding.

    ", - "NetworkBinding$hostPort": "

    The port number on the host that is used with the network binding.

    ", - "RunTaskRequest$count": "

    The number of instantiations of the specified task to place on your cluster.

    The count parameter is limited to 10 tasks per call.

    ", - "SubmitContainerStateChangeRequest$exitCode": "

    The exit code returned for the state change request.

    ", - "UpdateServiceRequest$desiredCount": "

    The number of instantiations of the task to place and keep running in your service.

    " - } - }, - "ClientException": { - "base": "

    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 permission to use the action or resource, or specifying an identifier that is not valid.

    ", - "refs": { - } - }, - "Cluster": { - "base": "

    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 may contain more than one instance type simultaneously.

    ", - "refs": { - "Clusters$member": null, - "CreateClusterResponse$cluster": "

    The full description of your new cluster.

    ", - "DeleteClusterResponse$cluster": "

    The full description of the deleted cluster.

    " - } - }, - "ClusterContainsContainerInstancesException": { - "base": "

    You cannot delete a cluster that has registered container instances. You must first deregister the container instances before you can delete the cluster. For more information, see DeregisterContainerInstance.

    ", - "refs": { - } - }, - "ClusterContainsServicesException": { - "base": "

    You cannot delete a cluster that contains services. You must first update the service to reduce its desired task count to 0 and then delete the service. For more information, see UpdateService and DeleteService.

    ", - "refs": { - } - }, - "ClusterNotFoundException": { - "base": "

    The specified cluster could not be found. You can view your available clusters with ListClusters. Amazon ECS clusters are region-specific.

    ", - "refs": { - } - }, - "Clusters": { - "base": null, - "refs": { - "DescribeClustersResponse$clusters": "

    The list of clusters.

    " - } - }, - "Container": { - "base": "

    A Docker container that is part of a task.

    ", - "refs": { - "Containers$member": null - } - }, - "ContainerDefinition": { - "base": "

    Container definitions are used in task definitions to describe the different containers that are launched as part of a task.

    ", - "refs": { - "ContainerDefinitions$member": null - } - }, - "ContainerDefinitions": { - "base": null, - "refs": { - "RegisterTaskDefinitionRequest$containerDefinitions": "

    A list of container definitions in JSON format that describe the different containers that make up your task.

    ", - "TaskDefinition$containerDefinitions": "

    A list of container definitions in JSON format that describe the different containers that make up your task. For more information about container definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

    " - } - }, - "ContainerInstance": { - "base": "

    An EC2 instance that is running the Amazon ECS agent and has been registered with a cluster.

    ", - "refs": { - "ContainerInstances$member": null, - "DeregisterContainerInstanceResponse$containerInstance": null, - "RegisterContainerInstanceResponse$containerInstance": null, - "UpdateContainerAgentResponse$containerInstance": null - } - }, - "ContainerInstances": { - "base": null, - "refs": { - "DescribeContainerInstancesResponse$containerInstances": "

    The list of container instances.

    " - } - }, - "ContainerOverride": { - "base": "

    The overrides that should be sent to a container.

    ", - "refs": { - "ContainerOverrides$member": null - } - }, - "ContainerOverrides": { - "base": null, - "refs": { - "TaskOverride$containerOverrides": "

    One or more container overrides sent to a task.

    " - } - }, - "Containers": { - "base": null, - "refs": { - "Task$containers": "

    The containers associated with the task.

    " - } - }, - "CreateClusterRequest": { - "base": null, - "refs": { - } - }, - "CreateClusterResponse": { - "base": null, - "refs": { - } - }, - "CreateServiceRequest": { - "base": null, - "refs": { - } - }, - "CreateServiceResponse": { - "base": null, - "refs": { - } - }, - "DeleteClusterRequest": { - "base": null, - "refs": { - } - }, - "DeleteClusterResponse": { - "base": null, - "refs": { - } - }, - "DeleteServiceRequest": { - "base": null, - "refs": { - } - }, - "DeleteServiceResponse": { - "base": null, - "refs": { - } - }, - "Deployment": { - "base": "

    The details of an Amazon ECS service deployment.

    ", - "refs": { - "Deployments$member": null - } - }, - "DeploymentConfiguration": { - "base": "

    Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.

    ", - "refs": { - "CreateServiceRequest$deploymentConfiguration": "

    Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.

    ", - "Service$deploymentConfiguration": "

    Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.

    ", - "UpdateServiceRequest$deploymentConfiguration": "

    Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.

    " - } - }, - "Deployments": { - "base": null, - "refs": { - "Service$deployments": "

    The current state of deployments for the service.

    " - } - }, - "DeregisterContainerInstanceRequest": { - "base": null, - "refs": { - } - }, - "DeregisterContainerInstanceResponse": { - "base": null, - "refs": { - } - }, - "DeregisterTaskDefinitionRequest": { - "base": null, - "refs": { - } - }, - "DeregisterTaskDefinitionResponse": { - "base": null, - "refs": { - } - }, - "DescribeClustersRequest": { - "base": null, - "refs": { - } - }, - "DescribeClustersResponse": { - "base": null, - "refs": { - } - }, - "DescribeContainerInstancesRequest": { - "base": null, - "refs": { - } - }, - "DescribeContainerInstancesResponse": { - "base": null, - "refs": { - } - }, - "DescribeServicesRequest": { - "base": null, - "refs": { - } - }, - "DescribeServicesResponse": { - "base": null, - "refs": { - } - }, - "DescribeTaskDefinitionRequest": { - "base": null, - "refs": { - } - }, - "DescribeTaskDefinitionResponse": { - "base": null, - "refs": { - } - }, - "DescribeTasksRequest": { - "base": null, - "refs": { - } - }, - "DescribeTasksResponse": { - "base": null, - "refs": { - } - }, - "DesiredStatus": { - "base": null, - "refs": { - "ListTasksRequest$desiredStatus": "

    The task status with which to filter the ListTasks results. Specifying a desiredStatus of STOPPED limits the results to tasks that are in the STOPPED status, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter is RUNNING.

    " - } - }, - "DiscoverPollEndpointRequest": { - "base": null, - "refs": { - } - }, - "DiscoverPollEndpointResponse": { - "base": null, - "refs": { - } - }, - "DockerLabelsMap": { - "base": null, - "refs": { - "ContainerDefinition$dockerLabels": "

    A key/value map of labels to add to the container. This parameter maps to Labels in the Create a container section of the Docker Remote API and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep \"Server API version\"

    " - } - }, - "Double": { - "base": null, - "refs": { - "Resource$doubleValue": "

    When the doubleValue type is set, the value of the resource must be a double precision floating-point type.

    " - } - }, - "EnvironmentVariables": { - "base": null, - "refs": { - "ContainerDefinition$environment": "

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

    We do not recommend using plain text environment variables for sensitive information, such as credential data.

    ", - "ContainerOverride$environment": "

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

    " - } - }, - "Failure": { - "base": "

    A failed resource.

    ", - "refs": { - "Failures$member": null - } - }, - "Failures": { - "base": null, - "refs": { - "DescribeClustersResponse$failures": "

    Any failures associated with the call.

    ", - "DescribeContainerInstancesResponse$failures": "

    Any failures associated with the call.

    ", - "DescribeServicesResponse$failures": "

    Any failures associated with the call.

    ", - "DescribeTasksResponse$failures": "

    Any failures associated with the call.

    ", - "RunTaskResponse$failures": "

    Any failures associated with the call.

    ", - "StartTaskResponse$failures": "

    Any failures associated with the call.

    " - } - }, - "HostEntry": { - "base": "

    Hostnames and IP address entries that are added to the /etc/hosts file of a container via the extraHosts parameter of its ContainerDefinition.

    ", - "refs": { - "HostEntryList$member": null - } - }, - "HostEntryList": { - "base": null, - "refs": { - "ContainerDefinition$extraHosts": "

    A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. This parameter maps to ExtraHosts in the Create a container section of the Docker Remote API and the --add-host option to docker run.

    " - } - }, - "HostVolumeProperties": { - "base": "

    Details on a container instance host volume.

    ", - "refs": { - "Volume$host": "

    The contents of the host parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data is not guaranteed to persist after the containers associated with it stop running.

    " - } - }, - "Integer": { - "base": null, - "refs": { - "Cluster$registeredContainerInstancesCount": "

    The number of container instances registered into the cluster.

    ", - "Cluster$runningTasksCount": "

    The number of tasks in the cluster that are in the RUNNING state.

    ", - "Cluster$pendingTasksCount": "

    The number of tasks in the cluster that are in the PENDING state.

    ", - "Cluster$activeServicesCount": "

    The number of services that are running on the cluster in an ACTIVE state. You can view these services with ListServices.

    ", - "ContainerDefinition$cpu": "

    The number of cpu units reserved for the container. A container instance has 1,024 cpu units for every CPU core. This parameter specifies the minimum amount of CPU to reserve for a container, and containers share unallocated CPU units with other containers on the instance with the same ratio as their allocated amount. This parameter maps to CpuShares in the Create a container section of the Docker Remote API and the --cpu-shares option to docker run.

    You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the Amazon EC2 Instances detail page by 1,024.

    For example, if you run a single-container task on a single-core instance type with 512 CPU units specified for that container, and that is the only task running on the container instance, that container could use the full 1,024 CPU unit share at any given time. However, if you launched another copy of the same task on that container instance, each task would be guaranteed a minimum of 512 CPU units when needed, and each container could float to higher CPU usage if the other container was not using it, but if both tasks were 100% active all of the time, they would be limited to 512 CPU units.

    The Docker daemon on the container instance uses the CPU value to calculate the relative CPU share ratios for running containers. For more information, see CPU share constraint in the Docker documentation. The minimum valid CPU share value that the Linux kernel allows is 2; however, the CPU parameter is not required, and you can use CPU values below 2 in your container definitions. For CPU values below 2 (including null), the behavior varies based on your Amazon ECS container agent version:

    • Agent versions less than or equal to 1.1.0: Null and zero CPU values are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to Docker as 1, which the Linux kernel converts to 2 CPU shares.

    • Agent versions greater than or equal to 1.2.0: Null, zero, and CPU values of 1 are passed to Docker as 2.

    ", - "ContainerDefinition$memory": "

    The number of MiB of memory to reserve for the container. You must specify a non-zero integer for this parameter; the Docker daemon reserves a minimum of 4 MiB of memory for a container, so you should not specify fewer than 4 MiB of memory for your containers. If your container attempts to exceed the memory allocated here, the container is killed. This parameter maps to Memory in the Create a container section of the Docker Remote API and the --memory option to docker run.

    ", - "ContainerInstance$runningTasksCount": "

    The number of tasks on the container instance that are in the RUNNING status.

    ", - "ContainerInstance$pendingTasksCount": "

    The number of tasks on the container instance that are in the PENDING status.

    ", - "Deployment$desiredCount": "

    The most recent desired count of tasks that was specified for the service to deploy or maintain.

    ", - "Deployment$pendingCount": "

    The number of tasks in the deployment that are in the PENDING status.

    ", - "Deployment$runningCount": "

    The number of tasks in the deployment that are in the RUNNING status.

    ", - "PortMapping$containerPort": "

    The port number on the container that is bound to the user-specified or automatically assigned host port. If you specify a container port and not a host port, your container automatically receives a host port in the ephemeral port range (for more information, see hostPort). Port mappings that are automatically assigned in this way do not count toward the 100 reserved ports limit of a container instance.

    ", - "PortMapping$hostPort": "

    The port number on the container instance to reserve for your container. You can specify a non-reserved host port for your container port mapping, or you can omit the hostPort (or set it to 0) while specifying a containerPort and your container automatically receives a port in the ephemeral port range for your container instance operating system and Docker version.

    The default ephemeral port range is 49153 to 65535, and this range is used for Docker versions prior to 1.6.0. For Docker version 1.6.0 and later, the Docker daemon tries to read the ephemeral port range from /proc/sys/net/ipv4/ip_local_port_range; if this kernel parameter is unavailable, the default ephemeral port range is used. You should not attempt to specify a host port in the ephemeral port range, because these are reserved for automatic assignment. In general, ports below 32768 are outside of the ephemeral port range.

    The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, and the Amazon ECS container agent port 51678. Any host port that was previously specified in a running task is also reserved while the task is running (after a task stops, the host port is released).The current reserved ports are displayed in the remainingResources of DescribeContainerInstances output, and a container instance may have up to 100 reserved ports at a time, including the default reserved ports (automatically assigned ports do not count toward the 100 reserved ports limit).

    ", - "Resource$integerValue": "

    When the integerValue type is set, the value of the resource must be an integer.

    ", - "Service$desiredCount": "

    The desired number of instantiations of the task definition to keep running on the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.

    ", - "Service$runningCount": "

    The number of tasks in the cluster that are in the RUNNING state.

    ", - "Service$pendingCount": "

    The number of tasks in the cluster that are in the PENDING state.

    ", - "TaskDefinition$revision": "

    The revision of the task in a particular family. The revision is a version number of a task definition in a family. When you register a task definition for the first time, the revision is 1; each time you register a new revision of a task definition in the same family, the revision value always increases by one (even if you have deregistered previous revisions in this family).

    ", - "Ulimit$softLimit": "

    The soft limit for the ulimit type.

    ", - "Ulimit$hardLimit": "

    The hard limit for the ulimit type.

    " - } - }, - "InvalidParameterException": { - "base": "

    The specified parameter is invalid. Review the available parameters for the API request.

    ", - "refs": { - } - }, - "KeyValuePair": { - "base": "

    A key and value pair object.

    ", - "refs": { - "EnvironmentVariables$member": null - } - }, - "ListClustersRequest": { - "base": null, - "refs": { - } - }, - "ListClustersResponse": { - "base": null, - "refs": { - } - }, - "ListContainerInstancesRequest": { - "base": null, - "refs": { - } - }, - "ListContainerInstancesResponse": { - "base": null, - "refs": { - } - }, - "ListServicesRequest": { - "base": null, - "refs": { - } - }, - "ListServicesResponse": { - "base": null, - "refs": { - } - }, - "ListTaskDefinitionFamiliesRequest": { - "base": null, - "refs": { - } - }, - "ListTaskDefinitionFamiliesResponse": { - "base": null, - "refs": { - } - }, - "ListTaskDefinitionsRequest": { - "base": null, - "refs": { - } - }, - "ListTaskDefinitionsResponse": { - "base": null, - "refs": { - } - }, - "ListTasksRequest": { - "base": null, - "refs": { - } - }, - "ListTasksResponse": { - "base": null, - "refs": { - } - }, - "LoadBalancer": { - "base": "

    Details on a load balancer that is used with a service.

    ", - "refs": { - "LoadBalancers$member": null - } - }, - "LoadBalancers": { - "base": null, - "refs": { - "CreateServiceRequest$loadBalancers": "

    A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.

    ", - "Service$loadBalancers": "

    A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.

    " - } - }, - "LogConfiguration": { - "base": "

    Log configuration options to send to a custom log driver for the container.

    ", - "refs": { - "ContainerDefinition$logConfiguration": "

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

    Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Currently unsupported log drivers may be available in future releases of the Amazon ECS container agent.

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

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

    " - } - }, - "LogConfigurationOptionsMap": { - "base": null, - "refs": { - "LogConfiguration$options": "

    The configuration options to send to the log driver. This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep \"Server API version\"

    " - } - }, - "LogDriver": { - "base": null, - "refs": { - "LogConfiguration$logDriver": "

    The log driver to use for the container. The valid values listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default.

    If you have a custom driver that is not listed above that you would like to work with the Amazon ECS container agent, you can fork the Amazon ECS container agent project that is available on GitHub and customize it to work with that driver. We encourage you to submit pull requests for changes that you would like to have included. However, Amazon Web Services does not currently provide support for running modified copies of this software.

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

    " - } - }, - "Long": { - "base": null, - "refs": { - "Resource$longValue": "

    When the longValue type is set, the value of the resource must be an extended precision floating-point type.

    " - } - }, - "MissingVersionException": { - "base": "

    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.

    ", - "refs": { - } - }, - "MountPoint": { - "base": "

    Details on a volume mount point that is used in a container definition.

    ", - "refs": { - "MountPointList$member": null - } - }, - "MountPointList": { - "base": null, - "refs": { - "ContainerDefinition$mountPoints": "

    The mount points for data volumes in your container. This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run.

    " - } - }, - "NetworkBinding": { - "base": "

    Details on the network bindings between a container and its host container instance. After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the networkBindings section of DescribeTasks API responses.

    ", - "refs": { - "NetworkBindings$member": null - } - }, - "NetworkBindings": { - "base": null, - "refs": { - "Container$networkBindings": "

    The network bindings associated with the container.

    ", - "SubmitContainerStateChangeRequest$networkBindings": "

    The network bindings of the container.

    " - } - }, - "NoUpdateAvailableException": { - "base": "

    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.

    ", - "refs": { - } - }, - "PortMapping": { - "base": "

    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. After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the networkBindings section of DescribeTasks API responses.

    ", - "refs": { - "PortMappingList$member": null - } - }, - "PortMappingList": { - "base": null, - "refs": { - "ContainerDefinition$portMappings": "

    The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic. This parameter maps to PortBindings in the Create a container section of the Docker Remote API and the --publish option to docker run.

    After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the Network Bindings section of a container description of a selected task in the Amazon ECS console, or the networkBindings section DescribeTasks responses.

    " - } - }, - "RegisterContainerInstanceRequest": { - "base": null, - "refs": { - } - }, - "RegisterContainerInstanceResponse": { - "base": null, - "refs": { - } - }, - "RegisterTaskDefinitionRequest": { - "base": null, - "refs": { - } - }, - "RegisterTaskDefinitionResponse": { - "base": null, - "refs": { - } - }, - "RequiresAttributes": { - "base": null, - "refs": { - "TaskDefinition$requiresAttributes": "

    The container instance attributes required by your task.

    " - } - }, - "Resource": { - "base": "

    Describes the resources available for a container instance.

    ", - "refs": { - "Resources$member": null - } - }, - "Resources": { - "base": null, - "refs": { - "ContainerInstance$remainingResources": "

    The remaining resources of the container instance that are available for new tasks.

    ", - "ContainerInstance$registeredResources": "

    The registered resources on the container instance that are in use by current tasks.

    ", - "RegisterContainerInstanceRequest$totalResources": "

    The resources available on the instance.

    " - } - }, - "RunTaskRequest": { - "base": null, - "refs": { - } - }, - "RunTaskResponse": { - "base": null, - "refs": { - } - }, - "ServerException": { - "base": "

    These errors are usually caused by a server issue.

    ", - "refs": { - } - }, - "Service": { - "base": "

    Details on a service within a cluster

    ", - "refs": { - "CreateServiceResponse$service": "

    The full description of your service following the create call.

    ", - "DeleteServiceResponse$service": "

    The full description of the deleted service.

    ", - "Services$member": null, - "UpdateServiceResponse$service": "

    The full description of your service following the update call.

    " - } - }, - "ServiceEvent": { - "base": "

    Details on an event associated with a service.

    ", - "refs": { - "ServiceEvents$member": null - } - }, - "ServiceEvents": { - "base": null, - "refs": { - "Service$events": "

    The event stream for your service. A maximum of 100 of the latest events are displayed.

    " - } - }, - "ServiceNotActiveException": { - "base": "

    The specified service is not active. You cannot update a service that is not active. If you have previously deleted a service, you can re-create it with CreateService.

    ", - "refs": { - } - }, - "ServiceNotFoundException": { - "base": "

    The specified service could not be found. You can view your available services with ListServices. Amazon ECS services are cluster-specific and region-specific.

    ", - "refs": { - } - }, - "Services": { - "base": null, - "refs": { - "DescribeServicesResponse$services": "

    The list of services described.

    " - } - }, - "SortOrder": { - "base": null, - "refs": { - "ListTaskDefinitionsRequest$sort": "

    The order in which to sort the results. Valid values are ASC and DESC. By default (ASC), task definitions are listed lexicographically by family name and in ascending numerical order by revision so that the newest task definitions in a family are listed last. Setting this parameter to DESC reverses the sort order on family name and revision so that the newest task definitions in a family are listed first.

    " - } - }, - "StartTaskRequest": { - "base": null, - "refs": { - } - }, - "StartTaskResponse": { - "base": null, - "refs": { - } - }, - "StopTaskRequest": { - "base": null, - "refs": { - } - }, - "StopTaskResponse": { - "base": null, - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "Attribute$name": "

    The name of the container instance attribute.

    ", - "Attribute$value": "

    The value of the container instance attribute (at this time, the value here is Null, but this could change in future revisions for expandability).

    ", - "ClientException$message": null, - "Cluster$clusterArn": "

    The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the arn:aws:ecs namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the cluster namespace, and then the cluster name. For example, arn:aws:ecs:region:012345678910:cluster/test ..

    ", - "Cluster$clusterName": "

    A user-generated string that you use to identify your cluster.

    ", - "Cluster$status": "

    The status of the cluster. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that you can register container instances with the cluster and the associated instances can accept tasks.

    ", - "Container$containerArn": "

    The Amazon Resource Name (ARN) of the container.

    ", - "Container$taskArn": "

    The Amazon Resource Name (ARN) of the task.

    ", - "Container$name": "

    The name of the container.

    ", - "Container$lastStatus": "

    The last known status of the container.

    ", - "Container$reason": "

    A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.

    ", - "ContainerDefinition$name": "

    The name of a container. If you are linking multiple containers together in a task definition, the name of one container can be entered in the links of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This parameter maps to name in the Create a container section of the Docker Remote API and the --name option to docker run.

    ", - "ContainerDefinition$image": "

    The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with repository-url/image:tag . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the Create a container section of the Docker Remote API and the IMAGE parameter of docker run.

    • Images in official repositories on Docker Hub use a single name (for example, ubuntu or mongo).

    • Images in other repositories on Docker Hub are qualified with an organization name (for example, amazon/amazon-ecs-agent).

    • Images in other online repositories are qualified further by a domain name (for example, quay.io/assemblyline/ubuntu).

    ", - "ContainerDefinition$hostname": "

    The hostname to use for your container. This parameter maps to Hostname in the Create a container section of the Docker Remote API and the --hostname option to docker run.

    ", - "ContainerDefinition$user": "

    The user name to use inside the container. This parameter maps to User in the Create a container section of the Docker Remote API and the --user option to docker run.

    ", - "ContainerDefinition$workingDirectory": "

    The working directory in which to run commands inside the container. This parameter maps to WorkingDir in the Create a container section of the Docker Remote API and the --workdir option to docker run.

    ", - "ContainerInstance$containerInstanceArn": "

    The Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID .

    ", - "ContainerInstance$ec2InstanceId": "

    The EC2 instance ID of the container instance.

    ", - "ContainerInstance$status": "

    The status of the container instance. The valid values are ACTIVE or INACTIVE. ACTIVE indicates that the container instance can accept tasks.

    ", - "ContainerOverride$name": "

    The name of the container that receives the override.

    ", - "CreateClusterRequest$clusterName": "

    The name of your cluster. If you do not specify a name for your cluster, you create a cluster named default. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

    ", - "CreateServiceRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster on which to run your service. If you do not specify a cluster, the default cluster is assumed.

    ", - "CreateServiceRequest$serviceName": "

    The name of your service. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a region or across multiple regions.

    ", - "CreateServiceRequest$taskDefinition": "

    The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If a revision is not specified, the latest ACTIVE revision is used.

    ", - "CreateServiceRequest$clientToken": "

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request. Up to 32 ASCII characters are allowed.

    ", - "CreateServiceRequest$role": "

    The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This parameter is required if you are using a load balancer with your service. If you specify the role parameter, you must also specify a load balancer object with the loadBalancers parameter.

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

    ", - "DeleteClusterRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster to delete.

    ", - "DeleteServiceRequest$cluster": "

    The name of the cluster that hosts the service to delete. If you do not specify a cluster, the default cluster is assumed.

    ", - "DeleteServiceRequest$service": "

    The name of the service to delete.

    ", - "Deployment$id": "

    The ID of the deployment.

    ", - "Deployment$status": "

    The status of the deployment. Valid values are PRIMARY (for the most recent deployment), ACTIVE (for previous deployments that still have tasks running, but are being replaced with the PRIMARY deployment), and INACTIVE (for deployments that have been completely replaced).

    ", - "Deployment$taskDefinition": "

    The most recent task definition that was specified for the service to use.

    ", - "DeregisterContainerInstanceRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to deregister. If you do not specify a cluster, the default cluster is assumed.

    ", - "DeregisterContainerInstanceRequest$containerInstance": "

    The container instance ID or full Amazon Resource Name (ARN) of the container instance to deregister. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID .

    ", - "DeregisterTaskDefinitionRequest$taskDefinition": "

    The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to deregister. You must specify a revision.

    ", - "DescribeContainerInstancesRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to describe. If you do not specify a cluster, the default cluster is assumed.

    ", - "DescribeServicesRequest$cluster": "

    The name of the cluster that hosts the service to describe. If you do not specify a cluster, the default cluster is assumed.

    ", - "DescribeTaskDefinitionRequest$taskDefinition": "

    The family for the latest ACTIVE revision, family and revision (family:revision) for a specific revision in the family, or full Amazon Resource Name (ARN) of the task definition to describe.

    ", - "DescribeTasksRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to describe. If you do not specify a cluster, the default cluster is assumed.

    ", - "DiscoverPollEndpointRequest$containerInstance": "

    The container instance ID or full Amazon Resource Name (ARN) of the container instance. The ARN contains the arn:aws:ecs namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the container-instance namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID .

    ", - "DiscoverPollEndpointRequest$cluster": "

    The cluster that the container instance belongs to.

    ", - "DiscoverPollEndpointResponse$endpoint": "

    The endpoint for the Amazon ECS agent to poll.

    ", - "DiscoverPollEndpointResponse$telemetryEndpoint": "

    The telemetry endpoint for the Amazon ECS agent.

    ", - "DockerLabelsMap$key": null, - "DockerLabelsMap$value": null, - "Failure$arn": "

    The Amazon Resource Name (ARN) of the failed resource.

    ", - "Failure$reason": "

    The reason for the failure.

    ", - "HostEntry$hostname": "

    The hostname to use in the /etc/hosts entry.

    ", - "HostEntry$ipAddress": "

    The IP address to use in the /etc/hosts entry.

    ", - "HostVolumeProperties$sourcePath": "

    The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If the host parameter contains a sourcePath file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the sourcePath value does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.

    ", - "KeyValuePair$name": "

    The name of the key value pair. For environment variables, this is the name of the environment variable.

    ", - "KeyValuePair$value": "

    The value of the key value pair. For environment variables, this is the value of the environment variable.

    ", - "ListClustersRequest$nextToken": "

    The nextToken value returned from a previous paginated ListClusters request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

    ", - "ListClustersResponse$nextToken": "

    The nextToken value to include in a future ListClusters request. When the results of a ListClusters request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "ListContainerInstancesRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to list. If you do not specify a cluster, the default cluster is assumed..

    ", - "ListContainerInstancesRequest$nextToken": "

    The nextToken value returned from a previous paginated ListContainerInstances request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

    ", - "ListContainerInstancesResponse$nextToken": "

    The nextToken value to include in a future ListContainerInstances request. When the results of a ListContainerInstances request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "ListServicesRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the services to list. If you do not specify a cluster, the default cluster is assumed..

    ", - "ListServicesRequest$nextToken": "

    The nextToken value returned from a previous paginated ListServices request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

    ", - "ListServicesResponse$nextToken": "

    The nextToken value to include in a future ListServices request. When the results of a ListServices request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "ListTaskDefinitionFamiliesRequest$familyPrefix": "

    The familyPrefix is a string that is used to filter the results of ListTaskDefinitionFamilies. If you specify a familyPrefix, only task definition family names that begin with the familyPrefix string are returned.

    ", - "ListTaskDefinitionFamiliesRequest$nextToken": "

    The nextToken value returned from a previous paginated ListTaskDefinitionFamilies request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

    ", - "ListTaskDefinitionFamiliesResponse$nextToken": "

    The nextToken value to include in a future ListTaskDefinitionFamilies request. When the results of a ListTaskDefinitionFamilies request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "ListTaskDefinitionsRequest$familyPrefix": "

    The full family name with which to filter the ListTaskDefinitions results. Specifying a familyPrefix limits the listed task definitions to task definition revisions that belong to that family.

    ", - "ListTaskDefinitionsRequest$nextToken": "

    The nextToken value returned from a previous paginated ListTaskDefinitions request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

    ", - "ListTaskDefinitionsResponse$nextToken": "

    The nextToken value to include in a future ListTaskDefinitions request. When the results of a ListTaskDefinitions request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "ListTasksRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the tasks to list. If you do not specify a cluster, the default cluster is assumed..

    ", - "ListTasksRequest$containerInstance": "

    The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter the ListTasks results. Specifying a containerInstance limits the results to tasks that belong to that container instance.

    ", - "ListTasksRequest$family": "

    The name of the family with which to filter the ListTasks results. Specifying a family limits the results to tasks that belong to that family.

    ", - "ListTasksRequest$nextToken": "

    The nextToken value returned from a previous paginated ListTasks request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

    This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

    ", - "ListTasksRequest$startedBy": "

    The startedBy value with which to filter the task results. Specifying a startedBy value limits the results to tasks that were started with that value.

    ", - "ListTasksRequest$serviceName": "

    The name of the service with which to filter the ListTasks results. Specifying a serviceName limits the results to tasks that belong to that service.

    ", - "ListTasksResponse$nextToken": "

    The nextToken value to include in a future ListTasks request. When the results of a ListTasks request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

    ", - "LoadBalancer$loadBalancerName": "

    The name of the load balancer.

    ", - "LoadBalancer$containerName": "

    The name of the container (as it appears in a container definition) to associate with the load balancer.

    ", - "LogConfigurationOptionsMap$key": null, - "LogConfigurationOptionsMap$value": null, - "MountPoint$sourceVolume": "

    The name of the volume to mount.

    ", - "MountPoint$containerPath": "

    The path on the container to mount the host volume at.

    ", - "NetworkBinding$bindIP": "

    The IP address that the container is bound to on the container instance.

    ", - "RegisterContainerInstanceRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster with which to register your container instance. If you do not specify a cluster, the default cluster is assumed..

    ", - "RegisterContainerInstanceRequest$instanceIdentityDocument": "

    The instance identity document for the EC2 instance to register. This document can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/document/

    ", - "RegisterContainerInstanceRequest$instanceIdentityDocumentSignature": "

    The instance identity document signature for the EC2 instance to register. This signature can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/signature/

    ", - "RegisterContainerInstanceRequest$containerInstanceArn": "

    The Amazon Resource Name (ARN) of the container instance (if it was previously registered).

    ", - "RegisterTaskDefinitionRequest$family": "

    You must specify a family for a task definition, which allows you to track multiple versions of the same task definition. The family is used as a name for your task definition. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

    ", - "Resource$name": "

    The name of the resource, such as CPU, MEMORY, PORTS, or a user-defined resource.

    ", - "Resource$type": "

    The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.

    ", - "RunTaskRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster on which to run your task. If you do not specify a cluster, the default cluster is assumed..

    ", - "RunTaskRequest$taskDefinition": "

    The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to run. If a revision is not specified, the latest ACTIVE revision is used.

    ", - "RunTaskRequest$startedBy": "

    An optional tag specified when a task is started. For example if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the startedBy parameter. You can then identify which tasks belong to that job by filtering the results of a ListTasks call with the startedBy value. Up to 36 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

    If a task is started by an Amazon ECS service, then the startedBy parameter contains the deployment ID of the service that starts it.

    ", - "ServerException$message": null, - "Service$serviceArn": "

    The Amazon Resource Name (ARN) that identifies the service. The ARN contains the arn:aws:ecs namespace, followed by the region of the service, the AWS account ID of the service owner, the service namespace, and then the service name. For example, arn:aws:ecs:region:012345678910:service/my-service .

    ", - "Service$serviceName": "

    The name of your service. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a region or across multiple regions.

    ", - "Service$clusterArn": "

    The Amazon Resource Name (ARN) of the cluster that hosts the service.

    ", - "Service$status": "

    The status of the service. The valid values are ACTIVE, DRAINING, or INACTIVE.

    ", - "Service$taskDefinition": "

    The task definition to use for tasks in the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.

    ", - "Service$roleArn": "

    The Amazon Resource Name (ARN) of the IAM role associated with the service that allows the Amazon ECS container agent to register container instances with a load balancer.

    ", - "ServiceEvent$id": "

    The ID string of the event.

    ", - "ServiceEvent$message": "

    The event message.

    ", - "StartTaskRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster on which to start your task. If you do not specify a cluster, the default cluster is assumed..

    ", - "StartTaskRequest$taskDefinition": "

    The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to start. If a revision is not specified, the latest ACTIVE revision is used.

    ", - "StartTaskRequest$startedBy": "

    An optional tag specified when a task is started. For example if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the startedBy parameter. You can then identify which tasks belong to that job by filtering the results of a ListTasks call with the startedBy value. Up to 36 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

    If a task is started by an Amazon ECS service, then the startedBy parameter contains the deployment ID of the service that starts it.

    ", - "StopTaskRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed..

    ", - "StopTaskRequest$task": "

    The task ID or full Amazon Resource Name (ARN) entry of the task to stop.

    ", - "StopTaskRequest$reason": "

    An optional message specified when a task is stopped. For example, if you are using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message will appear in subsequent DescribeTasks API operations on this task. Up to 255 characters are allowed in this message.

    ", - "StringList$member": null, - "SubmitContainerStateChangeRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container.

    ", - "SubmitContainerStateChangeRequest$task": "

    The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.

    ", - "SubmitContainerStateChangeRequest$containerName": "

    The name of the container.

    ", - "SubmitContainerStateChangeRequest$status": "

    The status of the state change request.

    ", - "SubmitContainerStateChangeRequest$reason": "

    The reason for the state change request.

    ", - "SubmitContainerStateChangeResponse$acknowledgment": "

    Acknowledgement of the state change.

    ", - "SubmitTaskStateChangeRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.

    ", - "SubmitTaskStateChangeRequest$task": "

    The task ID or full Amazon Resource Name (ARN) of the task in the state change request.

    ", - "SubmitTaskStateChangeRequest$status": "

    The status of the state change request.

    ", - "SubmitTaskStateChangeRequest$reason": "

    The reason for the state change request.

    ", - "SubmitTaskStateChangeResponse$acknowledgment": "

    Acknowledgement of the state change.

    ", - "Task$taskArn": "

    The Amazon Resource Name (ARN) of the task.

    ", - "Task$clusterArn": "

    The Amazon Resource Name (ARN) of the cluster that hosts the task.

    ", - "Task$taskDefinitionArn": "

    The Amazon Resource Name (ARN) of the task definition that creates the task.

    ", - "Task$containerInstanceArn": "

    The Amazon Resource Name (ARN) of the container instances that host the task.

    ", - "Task$lastStatus": "

    The last known status of the task.

    ", - "Task$desiredStatus": "

    The desired status of the task.

    ", - "Task$startedBy": "

    The tag specified when a task is started. If the task is started by an Amazon ECS service, then the startedBy parameter contains the deployment ID of the service that starts it.

    ", - "Task$stoppedReason": "

    The reason the task was stopped.

    ", - "TaskDefinition$taskDefinitionArn": "

    The full Amazon Resource Name (ARN) of the task definition.

    ", - "TaskDefinition$family": "

    The family of your task definition, used as the definition name.

    ", - "UpdateContainerAgentRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that your container instance is running on. If you do not specify a cluster, the default cluster is assumed.

    ", - "UpdateContainerAgentRequest$containerInstance": "

    The container instance ID or full Amazon Resource Name (ARN) entries for the container instance on which you would like to update the Amazon ECS container agent.

    ", - "UpdateServiceRequest$cluster": "

    The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.

    ", - "UpdateServiceRequest$service": "

    The name of the service to update.

    ", - "UpdateServiceRequest$taskDefinition": "

    The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to run in your service. If a revision is not specified, the latest ACTIVE revision is used. If you modify the task definition with UpdateService, Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running.

    ", - "VersionInfo$agentVersion": "

    The version number of the Amazon ECS container agent.

    ", - "VersionInfo$agentHash": "

    The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent GitHub repository.

    ", - "VersionInfo$dockerVersion": "

    The Docker version running on the container instance.

    ", - "Volume$name": "

    The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This name is referenced in the sourceVolume parameter of container definition mountPoints.

    ", - "VolumeFrom$sourceContainer": "

    The name of the container to mount volumes from.

    " - } - }, - "StringList": { - "base": null, - "refs": { - "ContainerDefinition$links": "

    The link parameter allows containers to communicate with each other without the need for port mappings, using the name parameter and optionally, an alias for the link. This construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed for each name and alias. For more information on linking Docker containers, see https://docs.docker.com/userguide/dockerlinks/. This parameter maps to Links in the Create a container section of the Docker Remote API and the --link option to docker run .

    Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.

    ", - "ContainerDefinition$entryPoint": "

    Early versions of the Amazon ECS container agent do not properly handle entryPoint parameters. If you have problems using entryPoint, update your container agent or enter your commands and arguments as command array items instead.

    The entry point that is passed to the container. This parameter maps to Entrypoint in the Create a container section of the Docker Remote API and the --entrypoint option to docker run. For more information, see https://docs.docker.com/reference/builder/#entrypoint.

    ", - "ContainerDefinition$command": "

    The command that is passed to the container. This parameter maps to Cmd in the Create a container section of the Docker Remote API and the COMMAND parameter to docker run. For more information, see https://docs.docker.com/reference/builder/#cmd.

    ", - "ContainerDefinition$dnsServers": "

    A list of DNS servers that are presented to the container. This parameter maps to Dns in the Create a container section of the Docker Remote API and the --dns option to docker run.

    ", - "ContainerDefinition$dnsSearchDomains": "

    A list of DNS search domains that are presented to the container. This parameter maps to DnsSearch in the Create a container section of the Docker Remote API and the --dns-search option to docker run.

    ", - "ContainerDefinition$dockerSecurityOptions": "

    A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems. This parameter maps to SecurityOpt in the Create a container section of the Docker Remote API and the --security-opt option to docker run.

    The Amazon ECS container agent running on a container instance must register with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment variables before containers placed on that instance can use these security options. For more information, see Amazon ECS Container Agent Configuration in the Amazon EC2 Container Service Developer Guide.

    ", - "ContainerOverride$command": "

    The command to send to the container that overrides the default command from the Docker image or the task definition.

    ", - "DescribeClustersRequest$clusters": "

    A space-separated list of cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a cluster, the default cluster is assumed.

    ", - "DescribeContainerInstancesRequest$containerInstances": "

    A space-separated list of container instance IDs or full Amazon Resource Name (ARN) entries.

    ", - "DescribeServicesRequest$services": "

    A list of services to describe.

    ", - "DescribeTasksRequest$tasks": "

    A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.

    ", - "ListClustersResponse$clusterArns": "

    The list of full Amazon Resource Name (ARN) entries for each cluster associated with your account.

    ", - "ListContainerInstancesResponse$containerInstanceArns": "

    The list of container instances with full Amazon Resource Name (ARN) entries for each container instance associated with the specified cluster.

    ", - "ListServicesResponse$serviceArns": "

    The list of full Amazon Resource Name (ARN) entries for each service associated with the specified cluster.

    ", - "ListTaskDefinitionFamiliesResponse$families": "

    The list of task definition family names that match the ListTaskDefinitionFamilies request.

    ", - "ListTaskDefinitionsResponse$taskDefinitionArns": "

    The list of task definition Amazon Resource Name (ARN) entries for the ListTaskDefinitions request.

    ", - "ListTasksResponse$taskArns": "

    The list of task Amazon Resource Name (ARN) entries for the ListTasks request.

    ", - "Resource$stringSetValue": "

    When the stringSetValue type is set, the value of the resource must be a string type.

    ", - "StartTaskRequest$containerInstances": "

    The container instance IDs or full Amazon Resource Name (ARN) entries for the container instances on which you would like to place your task.

    The list of container instances to start tasks on is limited to 10.

    " - } - }, - "SubmitContainerStateChangeRequest": { - "base": null, - "refs": { - } - }, - "SubmitContainerStateChangeResponse": { - "base": null, - "refs": { - } - }, - "SubmitTaskStateChangeRequest": { - "base": null, - "refs": { - } - }, - "SubmitTaskStateChangeResponse": { - "base": null, - "refs": { - } - }, - "Task": { - "base": "

    Details on a task in a cluster.

    ", - "refs": { - "StopTaskResponse$task": null, - "Tasks$member": null - } - }, - "TaskDefinition": { - "base": "

    Details of a task definition.

    ", - "refs": { - "DeregisterTaskDefinitionResponse$taskDefinition": "

    The full description of the deregistered task.

    ", - "DescribeTaskDefinitionResponse$taskDefinition": "

    The full task definition description.

    ", - "RegisterTaskDefinitionResponse$taskDefinition": "

    The full description of the registered task definition.

    " - } - }, - "TaskDefinitionFamilyStatus": { - "base": null, - "refs": { - "ListTaskDefinitionFamiliesRequest$status": "

    The task definition family status with which to filter the ListTaskDefinitionFamilies results. By default, both ACTIVE and INACTIVE task definition families are listed. If this parameter is set to ACTIVE, only task definition families that have an ACTIVE task definition revision are returned. If this parameter is set to INACTIVE, only task definition families that do not have any ACTIVE task definition revisions are returned. If you paginate the resulting output, be sure to keep the status value constant in each subsequent request.

    " - } - }, - "TaskDefinitionStatus": { - "base": null, - "refs": { - "ListTaskDefinitionsRequest$status": "

    The task definition status with which to filter the ListTaskDefinitions results. By default, only ACTIVE task definitions are listed. By setting this parameter to INACTIVE, you can view task definitions that are INACTIVE as long as an active task or service still references them. If you paginate the resulting output, be sure to keep the status value constant in each subsequent request.

    ", - "TaskDefinition$status": "

    The status of the task definition.

    " - } - }, - "TaskOverride": { - "base": "

    The overrides associated with a task.

    ", - "refs": { - "RunTaskRequest$overrides": "

    A list of container overrides in JSON format that specify the name of a container in the specified task definition and the overrides it should receive. You can override the default command for a container (that is specified in the task definition or Docker image) with a command override. You can also override existing environment variables (that are specified in the task definition or Docker image) on a container or add new environment variables to it with an environment override.

    A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting characters of the override structure.

    ", - "StartTaskRequest$overrides": "

    A list of container overrides in JSON format that specify the name of a container in the specified task definition and the overrides it should receive. You can override the default command for a container (that is specified in the task definition or Docker image) with a command override. You can also override existing environment variables (that are specified in the task definition or Docker image) on a container or add new environment variables to it with an environment override.

    A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting characters of the override structure.

    ", - "Task$overrides": "

    One or more container overrides.

    " - } - }, - "Tasks": { - "base": null, - "refs": { - "DescribeTasksResponse$tasks": "

    The list of tasks.

    ", - "RunTaskResponse$tasks": "

    A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.

    ", - "StartTaskResponse$tasks": "

    A full description of the tasks that were started. Each task that was successfully placed on your container instances are described here.

    " - } - }, - "Timestamp": { - "base": null, - "refs": { - "Deployment$createdAt": "

    The Unix time in seconds and milliseconds when the service was created.

    ", - "Deployment$updatedAt": "

    The Unix time in seconds and milliseconds when the service was last updated.

    ", - "Service$createdAt": "

    The Unix time in seconds and milliseconds when the service was created.

    ", - "ServiceEvent$createdAt": "

    The Unix time in seconds and milliseconds when the event was triggered.

    ", - "Task$createdAt": "

    The Unix time in seconds and milliseconds when the task was created (the task entered the PENDING state).

    ", - "Task$startedAt": "

    The Unix time in seconds and milliseconds when the task was started (the task transitioned from the PENDING state to the RUNNING state).

    ", - "Task$stoppedAt": "

    The Unix time in seconds and milliseconds when the task was stopped (the task transitioned from the RUNNING state to the STOPPED state).

    " - } - }, - "TransportProtocol": { - "base": null, - "refs": { - "NetworkBinding$protocol": "

    The protocol used for the network binding.

    ", - "PortMapping$protocol": "

    The protocol used for the port mapping. Valid values are tcp and udp. The default is tcp.

    " - } - }, - "Ulimit": { - "base": "

    The ulimit settings to pass to the container.

    ", - "refs": { - "UlimitList$member": null - } - }, - "UlimitList": { - "base": null, - "refs": { - "ContainerDefinition$ulimits": "

    A list of ulimits to set in the container. This parameter maps to Ulimits in the Create a container section of the Docker Remote API and the --ulimit option to docker run. Valid naming values are displayed in the Ulimit data type. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep \"Server API version\"

    " - } - }, - "UlimitName": { - "base": null, - "refs": { - "Ulimit$name": "

    The type of the ulimit.

    " - } - }, - "UpdateContainerAgentRequest": { - "base": null, - "refs": { - } - }, - "UpdateContainerAgentResponse": { - "base": null, - "refs": { - } - }, - "UpdateInProgressException": { - "base": "

    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.

    ", - "refs": { - } - }, - "UpdateServiceRequest": { - "base": null, - "refs": { - } - }, - "UpdateServiceResponse": { - "base": null, - "refs": { - } - }, - "VersionInfo": { - "base": "

    The Docker and Amazon ECS container agent version information about a container instance.

    ", - "refs": { - "ContainerInstance$versionInfo": "

    The version information for the Amazon ECS container agent and Docker daemon running on the container instance.

    ", - "RegisterContainerInstanceRequest$versionInfo": "

    The version information for the Amazon ECS container agent and Docker daemon running on the container instance.

    " - } - }, - "Volume": { - "base": "

    A data volume used in a task definition.

    ", - "refs": { - "VolumeList$member": null - } - }, - "VolumeFrom": { - "base": "

    Details on a data volume from another container.

    ", - "refs": { - "VolumeFromList$member": null - } - }, - "VolumeFromList": { - "base": null, - "refs": { - "ContainerDefinition$volumesFrom": "

    Data volumes to mount from another container. This parameter maps to VolumesFrom in the Create a container section of the Docker Remote API and the --volumes-from option to docker run.

    " - } - }, - "VolumeList": { - "base": null, - "refs": { - "RegisterTaskDefinitionRequest$volumes": "

    A list of volume definitions in JSON format that containers in your task may use.

    ", - "TaskDefinition$volumes": "

    The list of volumes in a task. For more information about volume definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/waiters-2.json deleted file mode 100644 index c177d7b91..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticache/2015-02-02/waiters-2.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "version":2, - "waiters":{ - "CacheClusterAvailable":{ - "acceptors":[ - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"available", - "matcher":"pathAll", - "state":"success" - }, - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"deleted", - "matcher":"pathAny", - "state":"failure" - }, - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"deleting", - "matcher":"pathAny", - "state":"failure" - }, - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"incompatible-network", - "matcher":"pathAny", - "state":"failure" - }, - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"restore-failed", - "matcher":"pathAny", - "state":"failure" - } - ], - "delay":15, - "description":"Wait until ElastiCache cluster is available.", - "maxAttempts":40, - "operation":"DescribeCacheClusters" - }, - "CacheClusterDeleted":{ - "acceptors":[ - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"deleted", - "matcher":"pathAll", - "state":"success" - }, - { - "expected":"CacheClusterNotFound", - "matcher":"error", - "state":"success" - }, - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"available", - "matcher":"pathAny", - "state":"failure" - }, - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"creating", - "matcher":"pathAny", - "state":"failure" - }, - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"incompatible-network", - "matcher":"pathAny", - "state":"failure" - }, - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"modifying", - "matcher":"pathAny", - "state":"failure" - }, - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"restore-failed", - "matcher":"pathAny", - "state":"failure" - }, - { - "argument":"CacheClusters[].CacheClusterStatus", - "expected":"snapshotting", - "matcher":"pathAny", - "state":"failure" - } - ], - "delay":15, - "description":"Wait until ElastiCache cluster is deleted.", - "maxAttempts":40, - "operation":"DescribeCacheClusters" - }, - "ReplicationGroupAvailable":{ - "acceptors":[ - { - "argument":"ReplicationGroups[].Status", - "expected":"available", - "matcher":"pathAll", - "state":"success" - }, - { - "argument":"ReplicationGroups[].Status", - "expected":"deleted", - "matcher":"pathAny", - "state":"failure" - } - ], - "delay":15, - "description":"Wait until ElastiCache replication group is available.", - "maxAttempts":40, - "operation":"DescribeReplicationGroups" - }, - "ReplicationGroupDeleted":{ - "acceptors":[ - { - "argument":"ReplicationGroups[].Status", - "expected":"deleted", - "matcher":"pathAll", - "state":"success" - }, - { - "argument":"ReplicationGroups[].Status", - "expected":"available", - "matcher":"pathAny", - "state":"failure" - }, - { - "expected":"ReplicationGroupNotFoundFault", - "matcher":"error", - "state":"success" - } - ], - "delay":15, - "description":"Wait until ElastiCache replication group is deleted.", - "maxAttempts":40, - "operation":"DescribeReplicationGroups" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/examples-1.json deleted file mode 100644 index 0fded6281..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/examples-1.json +++ /dev/null @@ -1,1109 +0,0 @@ -{ - "version": "1.0", - "examples": { - "AbortEnvironmentUpdate": [ - { - "input": { - "EnvironmentName": "my-env" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following code aborts a running application version deployment for an environment named my-env:", - "id": "to-abort-a-deployment-1456267848227", - "title": "To abort a deployment" - } - ], - "CheckDNSAvailability": [ - { - "input": { - "CNAMEPrefix": "my-cname" - }, - "output": { - "Available": true, - "FullyQualifiedCNAME": "my-cname.us-west-2.elasticbeanstalk.com" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation checks the availability of the subdomain my-cname:", - "id": "to-check-the-availability-of-a-cname-1456268589537", - "title": "To check the availability of a CNAME" - } - ], - "CreateApplication": [ - { - "input": { - "ApplicationName": "my-app", - "Description": "my application" - }, - "output": { - "Application": { - "ApplicationName": "my-app", - "ConfigurationTemplates": [ - - ], - "DateCreated": "2015-02-12T18:32:21.181Z", - "DateUpdated": "2015-02-12T18:32:21.181Z", - "Description": "my application" - } - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation creates a new application named my-app:", - "id": "to-create-a-new-application-1456268895683", - "title": "To create a new application" - } - ], - "CreateApplicationVersion": [ - { - "input": { - "ApplicationName": "my-app", - "AutoCreateApplication": true, - "Description": "my-app-v1", - "Process": true, - "SourceBundle": { - "S3Bucket": "my-bucket", - "S3Key": "sample.war" - }, - "VersionLabel": "v1" - }, - "output": { - "ApplicationVersion": { - "ApplicationName": "my-app", - "DateCreated": "2015-02-03T23:01:25.412Z", - "DateUpdated": "2015-02-03T23:01:25.412Z", - "Description": "my-app-v1", - "SourceBundle": { - "S3Bucket": "my-bucket", - "S3Key": "sample.war" - }, - "VersionLabel": "v1" - } - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation creates a new version (v1) of an application named my-app:", - "id": "to-create-a-new-application-1456268895683", - "title": "To create a new application" - } - ], - "CreateConfigurationTemplate": [ - { - "input": { - "ApplicationName": "my-app", - "EnvironmentId": "e-rpqsewtp2j", - "TemplateName": "my-app-v1" - }, - "output": { - "ApplicationName": "my-app", - "DateCreated": "2015-08-12T18:40:39Z", - "DateUpdated": "2015-08-12T18:40:39Z", - "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8", - "TemplateName": "my-app-v1" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation creates a configuration template named my-app-v1 from the settings applied to an environment with the id e-rpqsewtp2j:", - "id": "to-create-a-configuration-template-1456269283586", - "title": "To create a configuration template" - } - ], - "CreateEnvironment": [ - { - "input": { - "ApplicationName": "my-app", - "CNAMEPrefix": "my-app", - "EnvironmentName": "my-env", - "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8", - "VersionLabel": "v1" - }, - "output": { - "ApplicationName": "my-app", - "CNAME": "my-app.elasticbeanstalk.com", - "DateCreated": "2015-02-03T23:04:54.479Z", - "DateUpdated": "2015-02-03T23:04:54.479Z", - "EnvironmentId": "e-izqpassy4h", - "EnvironmentName": "my-env", - "Health": "Grey", - "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8", - "Status": "Launching", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": " " - }, - "VersionLabel": "v1" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation creates a new environment for version v1 of a java application named my-app:", - "id": "to-create-a-new-environment-for-an-application-1456269380396", - "title": "To create a new environment for an application" - } - ], - "CreateStorageLocation": [ - { - "output": { - "S3Bucket": "elasticbeanstalk-us-west-2-0123456789012" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation creates a new environment for version v1 of a java application named my-app:", - "id": "to-create-a-new-environment-for-an-application-1456269380396", - "title": "To create a new environment for an application" - } - ], - "DeleteApplication": [ - { - "input": { - "ApplicationName": "my-app" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation deletes an application named my-app:", - "id": "to-delete-an-application-1456269699366", - "title": "To delete an application" - } - ], - "DeleteApplicationVersion": [ - { - "input": { - "ApplicationName": "my-app", - "DeleteSourceBundle": true, - "VersionLabel": "22a0-stage-150819_182129" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation deletes an application version named 22a0-stage-150819_182129 for an application named my-app:", - "id": "to-delete-an-application-version-1456269792956", - "title": "To delete an application version" - } - ], - "DeleteConfigurationTemplate": [ - { - "input": { - "ApplicationName": "my-app", - "TemplateName": "my-template" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation deletes a configuration template named my-template for an application named my-app:", - "id": "to-delete-a-configuration-template-1456269836701", - "title": "To delete a configuration template" - } - ], - "DeleteEnvironmentConfiguration": [ - { - "input": { - "ApplicationName": "my-app", - "EnvironmentName": "my-env" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation deletes a draft configuration for an environment named my-env:", - "id": "to-delete-a-draft-configuration-1456269886654", - "title": "To delete a draft configuration" - } - ], - "DescribeApplicationVersions": [ - { - "input": { - "ApplicationName": "my-app", - "VersionLabels": [ - "v2" - ] - }, - "output": { - "ApplicationVersions": [ - { - "ApplicationName": "my-app", - "DateCreated": "2015-07-23T01:32:26.079Z", - "DateUpdated": "2015-07-23T01:32:26.079Z", - "Description": "update cover page", - "SourceBundle": { - "S3Bucket": "elasticbeanstalk-us-west-2-015321684451", - "S3Key": "my-app/5026-stage-150723_224258.war" - }, - "VersionLabel": "v2" - }, - { - "ApplicationName": "my-app", - "DateCreated": "2015-07-23T22:26:10.816Z", - "DateUpdated": "2015-07-23T22:26:10.816Z", - "Description": "initial version", - "SourceBundle": { - "S3Bucket": "elasticbeanstalk-us-west-2-015321684451", - "S3Key": "my-app/5026-stage-150723_222618.war" - }, - "VersionLabel": "v1" - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation retrieves information about an application version labeled v2:", - "id": "to-view-information-about-an-application-version-1456269947428", - "title": "To view information about an application version" - } - ], - "DescribeApplications": [ - { - "input": { - }, - "output": { - "Applications": [ - { - "ApplicationName": "ruby", - "ConfigurationTemplates": [ - - ], - "DateCreated": "2015-08-13T21:05:44.376Z", - "DateUpdated": "2015-08-13T21:05:44.376Z", - "Versions": [ - "Sample Application" - ] - }, - { - "ApplicationName": "pythonsample", - "ConfigurationTemplates": [ - - ], - "DateCreated": "2015-08-13T19:05:43.637Z", - "DateUpdated": "2015-08-13T19:05:43.637Z", - "Description": "Application created from the EB CLI using \"eb init\"", - "Versions": [ - "Sample Application" - ] - }, - { - "ApplicationName": "nodejs-example", - "ConfigurationTemplates": [ - - ], - "DateCreated": "2015-08-06T17:50:02.486Z", - "DateUpdated": "2015-08-06T17:50:02.486Z", - "Versions": [ - "add elasticache", - "First Release" - ] - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation retrieves information about applications in the current region:", - "id": "to-view-a-list-of-applications-1456270027373", - "title": "To view a list of applications" - } - ], - "DescribeConfigurationOptions": [ - { - "input": { - "ApplicationName": "my-app", - "EnvironmentName": "my-env" - }, - "output": { - "Options": [ - { - "ChangeSeverity": "NoInterruption", - "DefaultValue": "30", - "MaxValue": 300, - "MinValue": 5, - "Name": "Interval", - "Namespace": "aws:elb:healthcheck", - "UserDefined": false, - "ValueType": "Scalar" - }, - { - "ChangeSeverity": "NoInterruption", - "DefaultValue": "2000000", - "MinValue": 0, - "Name": "LowerThreshold", - "Namespace": "aws:autoscaling:trigger", - "UserDefined": false, - "ValueType": "Scalar" - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation retrieves descriptions of all available configuration options for an environment named my-env:", - "id": "to-view-configuration-options-for-an-environment-1456276763917", - "title": "To view configuration options for an environment" - } - ], - "DescribeConfigurationSettings": [ - { - "input": { - "ApplicationName": "my-app", - "EnvironmentName": "my-env" - }, - "output": { - "ConfigurationSettings": [ - { - "ApplicationName": "my-app", - "DateCreated": "2015-08-13T19:16:25Z", - "DateUpdated": "2015-08-13T23:30:07Z", - "DeploymentStatus": "deployed", - "Description": "Environment created from the EB CLI using \"eb create\"", - "EnvironmentName": "my-env", - "OptionSettings": [ - { - "Namespace": "aws:autoscaling:asg", - "OptionName": "Availability Zones", - "ResourceName": "AWSEBAutoScalingGroup", - "Value": "Any" - }, - { - "Namespace": "aws:autoscaling:asg", - "OptionName": "Cooldown", - "ResourceName": "AWSEBAutoScalingGroup", - "Value": "360" - }, - { - "Namespace": "aws:elb:policies", - "OptionName": "ConnectionDrainingTimeout", - "ResourceName": "AWSEBLoadBalancer", - "Value": "20" - }, - { - "Namespace": "aws:elb:policies", - "OptionName": "ConnectionSettingIdleTimeout", - "ResourceName": "AWSEBLoadBalancer", - "Value": "60" - } - ], - "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8" - } - ] - }, - "comments": { - "input": { - }, - "output": { - "abbreviated": "Output is abbreviated" - } - }, - "description": "The following operation retrieves configuration settings for an environment named my-env:", - "id": "to-view-configurations-settings-for-an-environment-1456276924537", - "title": "To view configurations settings for an environment" - } - ], - "DescribeEnvironmentHealth": [ - { - "input": { - "AttributeNames": [ - "All" - ], - "EnvironmentName": "my-env" - }, - "output": { - "ApplicationMetrics": { - "Duration": 10, - "Latency": { - "P10": 0.001, - "P50": 0.001, - "P75": 0.002, - "P85": 0.003, - "P90": 0.003, - "P95": 0.004, - "P99": 0.004, - "P999": 0.004 - }, - "RequestCount": 45, - "StatusCodes": { - "Status2xx": 45, - "Status3xx": 0, - "Status4xx": 0, - "Status5xx": 0 - } - }, - "Causes": [ - - ], - "Color": "Green", - "EnvironmentName": "my-env", - "HealthStatus": "Ok", - "InstancesHealth": { - "Degraded": 0, - "Info": 0, - "NoData": 0, - "Ok": 1, - "Pending": 0, - "Severe": 0, - "Unknown": 0, - "Warning": 0 - }, - "RefreshedAt": "2015-08-20T21:09:18Z" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation retrieves overall health information for an environment named my-env:", - "id": "to-view-environment-health-1456277109510", - "title": "To view environment health" - } - ], - "DescribeEnvironmentResources": [ - { - "input": { - "EnvironmentName": "my-env" - }, - "output": { - "EnvironmentResources": { - "AutoScalingGroups": [ - { - "Name": "awseb-e-qu3fyyjyjs-stack-AWSEBAutoScalingGroup-QSB2ZO88SXZT" - } - ], - "EnvironmentName": "my-env", - "Instances": [ - { - "Id": "i-0c91c786" - } - ], - "LaunchConfigurations": [ - { - "Name": "awseb-e-qu3fyyjyjs-stack-AWSEBAutoScalingLaunchConfiguration-1UUVQIBC96TQ2" - } - ], - "LoadBalancers": [ - { - "Name": "awseb-e-q-AWSEBLoa-1EEPZ0K98BIF0" - } - ], - "Queues": [ - - ], - "Triggers": [ - - ] - } - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation retrieves information about resources in an environment named my-env:", - "id": "to-view-information-about-the-aws-resources-in-your-environment-1456277206232", - "title": "To view information about the AWS resources in your environment" - } - ], - "DescribeEnvironments": [ - { - "input": { - "EnvironmentNames": [ - "my-env" - ] - }, - "output": { - "Environments": [ - { - "AbortableOperationInProgress": false, - "ApplicationName": "my-app", - "CNAME": "my-env.elasticbeanstalk.com", - "DateCreated": "2015-08-07T20:48:49.599Z", - "DateUpdated": "2015-08-12T18:16:55.019Z", - "EndpointURL": "awseb-e-w-AWSEBLoa-1483140XB0Q4L-109QXY8121.us-west-2.elb.amazonaws.com", - "EnvironmentId": "e-rpqsewtp2j", - "EnvironmentName": "my-env", - "Health": "Green", - "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8", - "Status": "Ready", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": " " - }, - "VersionLabel": "7f58-stage-150812_025409" - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation retrieves information about an environment named my-env:", - "id": "to-view-information-about-an-environment-1456277288662", - "title": "To view information about an environment" - } - ], - "DescribeEvents": [ - { - "input": { - "EnvironmentName": "my-env" - }, - "output": { - "Events": [ - { - "ApplicationName": "my-app", - "EnvironmentName": "my-env", - "EventDate": "2015-08-20T07:06:53.535Z", - "Message": "Environment health has transitioned from Info to Ok.", - "Severity": "INFO" - }, - { - "ApplicationName": "my-app", - "EnvironmentName": "my-env", - "EventDate": "2015-08-20T07:06:02.049Z", - "Message": "Environment update completed successfully.", - "RequestId": "b7f3960b-4709-11e5-ba1e-07e16200da41", - "Severity": "INFO" - }, - { - "ApplicationName": "my-app", - "EnvironmentName": "my-env", - "EventDate": "2015-08-13T19:16:27.561Z", - "Message": "Using elasticbeanstalk-us-west-2-012445113685 as Amazon S3 storage bucket for environment data.", - "RequestId": "ca8dfbf6-41ef-11e5-988b-651aa638f46b", - "Severity": "INFO" - }, - { - "ApplicationName": "my-app", - "EnvironmentName": "my-env", - "EventDate": "2015-08-13T19:16:26.581Z", - "Message": "createEnvironment is starting.", - "RequestId": "cdfba8f6-41ef-11e5-988b-65638f41aa6b", - "Severity": "INFO" - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation retrieves events for an environment named my-env:", - "id": "to-view-events-for-an-environment-1456277367589", - "title": "To view events for an environment" - } - ], - "DescribeInstancesHealth": [ - { - "input": { - "AttributeNames": [ - "All" - ], - "EnvironmentName": "my-env" - }, - "output": { - "InstanceHealthList": [ - { - "ApplicationMetrics": { - "Duration": 10, - "Latency": { - "P10": 0, - "P50": 0.001, - "P75": 0.002, - "P85": 0.003, - "P90": 0.004, - "P95": 0.005, - "P99": 0.006, - "P999": 0.006 - }, - "RequestCount": 48, - "StatusCodes": { - "Status2xx": 47, - "Status3xx": 0, - "Status4xx": 1, - "Status5xx": 0 - } - }, - "Causes": [ - - ], - "Color": "Green", - "HealthStatus": "Ok", - "InstanceId": "i-08691cc7", - "LaunchedAt": "2015-08-13T19:17:09Z", - "System": { - "CPUUtilization": { - "IOWait": 0.2, - "IRQ": 0, - "Idle": 97.8, - "Nice": 0.1, - "SoftIRQ": 0.1, - "System": 0.3, - "User": 1.5 - }, - "LoadAverage": [ - 0, - 0.02, - 0.05 - ] - } - } - ], - "RefreshedAt": "2015-08-20T21:09:08Z" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation retrieves health information for instances in an environment named my-env:", - "id": "to-view-environment-health-1456277424757", - "title": "To view environment health" - } - ], - "ListAvailableSolutionStacks": [ - { - "output": { - "SolutionStackDetails": [ - { - "PermittedFileTypes": [ - "zip" - ], - "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Node.js" - } - ], - "SolutionStacks": [ - "64bit Amazon Linux 2015.03 v2.0.0 running Node.js", - "64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.6", - "64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.5", - "64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.4", - "64bit Amazon Linux 2015.03 v2.0.0 running Python 3.4", - "64bit Amazon Linux 2015.03 v2.0.0 running Python 2.7", - "64bit Amazon Linux 2015.03 v2.0.0 running Python", - "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.2 (Puma)", - "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.2 (Passenger Standalone)", - "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.1 (Puma)", - "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.1 (Passenger Standalone)", - "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.0 (Puma)", - "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.0 (Passenger Standalone)", - "64bit Amazon Linux 2015.03 v2.0.0 running Ruby 1.9.3", - "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8", - "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 7 Java 7", - "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 7 Java 6", - "64bit Windows Server Core 2012 R2 running IIS 8.5", - "64bit Windows Server 2012 R2 running IIS 8.5", - "64bit Windows Server 2012 running IIS 8", - "64bit Windows Server 2008 R2 running IIS 7.5", - "64bit Amazon Linux 2015.03 v2.0.0 running Docker 1.6.2", - "64bit Amazon Linux 2015.03 v2.0.0 running Multi-container Docker 1.6.2 (Generic)", - "64bit Debian jessie v2.0.0 running GlassFish 4.1 Java 8 (Preconfigured - Docker)", - "64bit Debian jessie v2.0.0 running GlassFish 4.0 Java 7 (Preconfigured - Docker)", - "64bit Debian jessie v2.0.0 running Go 1.4 (Preconfigured - Docker)", - "64bit Debian jessie v2.0.0 running Go 1.3 (Preconfigured - Docker)", - "64bit Debian jessie v2.0.0 running Python 3.4 (Preconfigured - Docker)" - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation lists solution stacks for all currently available platform configurations and any that you have used in the past:", - "id": "to-view-solution-stacks-1456277504811", - "title": "To view solution stacks" - } - ], - "RebuildEnvironment": [ - { - "input": { - "EnvironmentName": "my-env" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation terminates and recreates the resources in an environment named my-env:", - "id": "to-rebuild-an-environment-1456277600918", - "title": "To rebuild an environment" - } - ], - "RequestEnvironmentInfo": [ - { - "input": { - "EnvironmentName": "my-env", - "InfoType": "tail" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation requests logs from an environment named my-env:", - "id": "to-request-tailed-logs-1456277657045", - "title": "To request tailed logs" - } - ], - "RestartAppServer": [ - { - "input": { - "EnvironmentName": "my-env" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation restarts application servers on all instances in an environment named my-env:", - "id": "to-restart-application-servers-1456277739302", - "title": "To restart application servers" - } - ], - "RetrieveEnvironmentInfo": [ - { - "input": { - "EnvironmentName": "my-env", - "InfoType": "tail" - }, - "output": { - "EnvironmentInfo": [ - { - "Ec2InstanceId": "i-09c1c867", - "InfoType": "tail", - "Message": "https://elasticbeanstalk-us-west-2-0123456789012.s3.amazonaws.com/resources/environments/logs/tail/e-fyqyju3yjs/i-09c1c867/TailLogs-1440109397703.out?AWSAccessKeyId=AKGPT4J56IAJ2EUBL5CQ&Expires=1440195891&Signature=n%2BEalOV6A2HIOx4Rcfb7LT16bBM%3D", - "SampleTimestamp": "2015-08-20T22:23:17.703Z" - } - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation retrieves a link to logs from an environment named my-env:", - "id": "to-retrieve-tailed-logs-1456277792734", - "title": "To retrieve tailed logs" - } - ], - "SwapEnvironmentCNAMEs": [ - { - "input": { - "DestinationEnvironmentName": "my-env-green", - "SourceEnvironmentName": "my-env-blue" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation swaps the assigned subdomains of two environments:", - "id": "to-swap-environment-cnames-1456277839438", - "title": "To swap environment CNAMES" - } - ], - "TerminateEnvironment": [ - { - "input": { - "EnvironmentName": "my-env" - }, - "output": { - "AbortableOperationInProgress": false, - "ApplicationName": "my-app", - "CNAME": "my-env.elasticbeanstalk.com", - "DateCreated": "2015-08-12T18:52:53.622Z", - "DateUpdated": "2015-08-12T19:05:54.744Z", - "EndpointURL": "awseb-e-f-AWSEBLoa-1I9XUMP4-8492WNUP202574.us-west-2.elb.amazonaws.com", - "EnvironmentId": "e-fh2eravpns", - "EnvironmentName": "my-env", - "Health": "Grey", - "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8", - "Status": "Terminating", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": " " - } - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation terminates an Elastic Beanstalk environment named my-env:", - "id": "to-terminate-an-environment-1456277888556", - "title": "To terminate an environment" - } - ], - "UpdateApplication": [ - { - "input": { - "ApplicationName": "my-app", - "Description": "my Elastic Beanstalk application" - }, - "output": { - "Application": { - "ApplicationName": "my-app", - "ConfigurationTemplates": [ - - ], - "DateCreated": "2015-08-13T19:15:50.449Z", - "DateUpdated": "2015-08-20T22:34:56.195Z", - "Description": "my Elastic Beanstalk application", - "Versions": [ - "2fba-stage-150819_234450", - "bf07-stage-150820_214945", - "93f8", - "fd7c-stage-150820_000431", - "22a0-stage-150819_185942" - ] - } - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation updates the description of an application named my-app:", - "id": "to-change-an-applications-description-1456277957075", - "title": "To change an application's description" - } - ], - "UpdateApplicationVersion": [ - { - "input": { - "ApplicationName": "my-app", - "Description": "new description", - "VersionLabel": "22a0-stage-150819_185942" - }, - "output": { - "ApplicationVersion": { - "ApplicationName": "my-app", - "DateCreated": "2015-08-19T18:59:17.646Z", - "DateUpdated": "2015-08-20T22:53:28.871Z", - "Description": "new description", - "SourceBundle": { - "S3Bucket": "elasticbeanstalk-us-west-2-0123456789012", - "S3Key": "my-app/22a0-stage-150819_185942.war" - }, - "VersionLabel": "22a0-stage-150819_185942" - } - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation updates the description of an application version named 22a0-stage-150819_185942:", - "id": "to-change-an-application-versions-description-1456278019237", - "title": "To change an application version's description" - } - ], - "UpdateConfigurationTemplate": [ - { - "input": { - "ApplicationName": "my-app", - "OptionsToRemove": [ - { - "Namespace": "aws:elasticbeanstalk:healthreporting:system", - "OptionName": "ConfigDocument" - } - ], - "TemplateName": "my-template" - }, - "output": { - "ApplicationName": "my-app", - "DateCreated": "2015-08-20T22:39:31Z", - "DateUpdated": "2015-08-20T22:43:11Z", - "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8", - "TemplateName": "my-template" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation removes the configured CloudWatch custom health metrics configuration ConfigDocument from a saved configuration template named my-template:", - "id": "to-update-a-configuration-template-1456278075300", - "title": "To update a configuration template" - } - ], - "UpdateEnvironment": [ - { - "input": { - "EnvironmentName": "my-env", - "VersionLabel": "v2" - }, - "output": { - "ApplicationName": "my-app", - "CNAME": "my-env.elasticbeanstalk.com", - "DateCreated": "2015-02-03T23:04:54.453Z", - "DateUpdated": "2015-02-03T23:12:29.119Z", - "EndpointURL": "awseb-e-i-AWSEBLoa-1RDLX6TC9VUAO-0123456789.us-west-2.elb.amazonaws.com", - "EnvironmentId": "e-szqipays4h", - "EnvironmentName": "my-env", - "Health": "Grey", - "SolutionStackName": "64bit Amazon Linux running Tomcat 7", - "Status": "Updating", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": " " - }, - "VersionLabel": "v2" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation updates an environment named \"my-env\" to version \"v2\" of the application to which it belongs:", - "id": "to-update-an-environment-to-a-new-version-1456278210718", - "title": "To update an environment to a new version" - }, - { - "input": { - "EnvironmentName": "my-env", - "OptionSettings": [ - { - "Namespace": "aws:elb:healthcheck", - "OptionName": "Interval", - "Value": "15" - }, - { - "Namespace": "aws:elb:healthcheck", - "OptionName": "Timeout", - "Value": "8" - }, - { - "Namespace": "aws:elb:healthcheck", - "OptionName": "HealthyThreshold", - "Value": "2" - }, - { - "Namespace": "aws:elb:healthcheck", - "OptionName": "UnhealthyThreshold", - "Value": "3" - } - ] - }, - "output": { - "AbortableOperationInProgress": true, - "ApplicationName": "my-app", - "CNAME": "my-env.elasticbeanstalk.com", - "DateCreated": "2015-08-07T20:48:49.599Z", - "DateUpdated": "2015-08-12T18:15:23.804Z", - "EndpointURL": "awseb-e-w-AWSEBLoa-14XB83101Q4L-104QXY80921.sa-east-1.elb.amazonaws.com", - "EnvironmentId": "e-wtp2rpqsej", - "EnvironmentName": "my-env", - "Health": "Grey", - "SolutionStackName": "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8", - "Status": "Updating", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": " " - }, - "VersionLabel": "7f58-stage-150812_025409" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation configures several options in the aws:elb:loadbalancer namespace:", - "id": "to-configure-option-settings-1456278286349", - "title": "To configure option settings" - } - ], - "ValidateConfigurationSettings": [ - { - "input": { - "ApplicationName": "my-app", - "EnvironmentName": "my-env", - "OptionSettings": [ - { - "Namespace": "aws:elasticbeanstalk:healthreporting:system", - "OptionName": "ConfigDocument", - "Value": "{\"CloudWatchMetrics\": {\"Environment\": {\"ApplicationLatencyP99.9\": null,\"InstancesSevere\": 60,\"ApplicationLatencyP90\": 60,\"ApplicationLatencyP99\": null,\"ApplicationLatencyP95\": 60,\"InstancesUnknown\": 60,\"ApplicationLatencyP85\": 60,\"InstancesInfo\": null,\"ApplicationRequests2xx\": null,\"InstancesDegraded\": null,\"InstancesWarning\": 60,\"ApplicationLatencyP50\": 60,\"ApplicationRequestsTotal\": null,\"InstancesNoData\": null,\"InstancesPending\": 60,\"ApplicationLatencyP10\": null,\"ApplicationRequests5xx\": null,\"ApplicationLatencyP75\": null,\"InstancesOk\": 60,\"ApplicationRequests3xx\": null,\"ApplicationRequests4xx\": null},\"Instance\": {\"ApplicationLatencyP99.9\": null,\"ApplicationLatencyP90\": 60,\"ApplicationLatencyP99\": null,\"ApplicationLatencyP95\": null,\"ApplicationLatencyP85\": null,\"CPUUser\": 60,\"ApplicationRequests2xx\": null,\"CPUIdle\": null,\"ApplicationLatencyP50\": null,\"ApplicationRequestsTotal\": 60,\"RootFilesystemUtil\": null,\"LoadAverage1min\": null,\"CPUIrq\": null,\"CPUNice\": 60,\"CPUIowait\": 60,\"ApplicationLatencyP10\": null,\"LoadAverage5min\": null,\"ApplicationRequests5xx\": null,\"ApplicationLatencyP75\": 60,\"CPUSystem\": 60,\"ApplicationRequests3xx\": 60,\"ApplicationRequests4xx\": null,\"InstanceHealth\": null,\"CPUSoftirq\": 60}},\"Version\": 1}" - } - ] - }, - "output": { - "Messages": [ - - ] - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation validates a CloudWatch custom metrics config document:", - "id": "to-validate-configuration-settings-1456278393654", - "title": "To validate configuration settings" - } - ] - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/api-2.json deleted file mode 100644 index 30e2917f1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/api-2.json +++ /dev/null @@ -1,1758 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2010-12-01", - "endpointPrefix":"email", - "protocol":"query", - "serviceAbbreviation":"Amazon SES", - "serviceFullName":"Amazon Simple Email Service", - "signatureVersion":"v4", - "signingName":"ses", - "xmlNamespace":"http://ses.amazonaws.com/doc/2010-12-01/" - }, - "operations":{ - "CloneReceiptRuleSet":{ - "name":"CloneReceiptRuleSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CloneReceiptRuleSetRequest"}, - "output":{ - "shape":"CloneReceiptRuleSetResponse", - "resultWrapper":"CloneReceiptRuleSetResult" - }, - "errors":[ - {"shape":"RuleSetDoesNotExistException"}, - {"shape":"AlreadyExistsException"}, - {"shape":"LimitExceededException"} - ] - }, - "CreateReceiptFilter":{ - "name":"CreateReceiptFilter", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateReceiptFilterRequest"}, - "output":{ - "shape":"CreateReceiptFilterResponse", - "resultWrapper":"CreateReceiptFilterResult" - }, - "errors":[ - {"shape":"LimitExceededException"}, - {"shape":"AlreadyExistsException"} - ] - }, - "CreateReceiptRule":{ - "name":"CreateReceiptRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateReceiptRuleRequest"}, - "output":{ - "shape":"CreateReceiptRuleResponse", - "resultWrapper":"CreateReceiptRuleResult" - }, - "errors":[ - {"shape":"InvalidSnsTopicException"}, - {"shape":"InvalidS3ConfigurationException"}, - {"shape":"InvalidLambdaFunctionException"}, - {"shape":"AlreadyExistsException"}, - {"shape":"RuleDoesNotExistException"}, - {"shape":"RuleSetDoesNotExistException"}, - {"shape":"LimitExceededException"} - ] - }, - "CreateReceiptRuleSet":{ - "name":"CreateReceiptRuleSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateReceiptRuleSetRequest"}, - "output":{ - "shape":"CreateReceiptRuleSetResponse", - "resultWrapper":"CreateReceiptRuleSetResult" - }, - "errors":[ - {"shape":"AlreadyExistsException"}, - {"shape":"LimitExceededException"} - ] - }, - "DeleteIdentity":{ - "name":"DeleteIdentity", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteIdentityRequest"}, - "output":{ - "shape":"DeleteIdentityResponse", - "resultWrapper":"DeleteIdentityResult" - } - }, - "DeleteIdentityPolicy":{ - "name":"DeleteIdentityPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteIdentityPolicyRequest"}, - "output":{ - "shape":"DeleteIdentityPolicyResponse", - "resultWrapper":"DeleteIdentityPolicyResult" - } - }, - "DeleteReceiptFilter":{ - "name":"DeleteReceiptFilter", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteReceiptFilterRequest"}, - "output":{ - "shape":"DeleteReceiptFilterResponse", - "resultWrapper":"DeleteReceiptFilterResult" - } - }, - "DeleteReceiptRule":{ - "name":"DeleteReceiptRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteReceiptRuleRequest"}, - "output":{ - "shape":"DeleteReceiptRuleResponse", - "resultWrapper":"DeleteReceiptRuleResult" - }, - "errors":[ - {"shape":"RuleSetDoesNotExistException"} - ] - }, - "DeleteReceiptRuleSet":{ - "name":"DeleteReceiptRuleSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteReceiptRuleSetRequest"}, - "output":{ - "shape":"DeleteReceiptRuleSetResponse", - "resultWrapper":"DeleteReceiptRuleSetResult" - }, - "errors":[ - {"shape":"CannotDeleteException"} - ] - }, - "DeleteVerifiedEmailAddress":{ - "name":"DeleteVerifiedEmailAddress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteVerifiedEmailAddressRequest"} - }, - "DescribeActiveReceiptRuleSet":{ - "name":"DescribeActiveReceiptRuleSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeActiveReceiptRuleSetRequest"}, - "output":{ - "shape":"DescribeActiveReceiptRuleSetResponse", - "resultWrapper":"DescribeActiveReceiptRuleSetResult" - } - }, - "DescribeReceiptRule":{ - "name":"DescribeReceiptRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReceiptRuleRequest"}, - "output":{ - "shape":"DescribeReceiptRuleResponse", - "resultWrapper":"DescribeReceiptRuleResult" - }, - "errors":[ - {"shape":"RuleDoesNotExistException"}, - {"shape":"RuleSetDoesNotExistException"} - ] - }, - "DescribeReceiptRuleSet":{ - "name":"DescribeReceiptRuleSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReceiptRuleSetRequest"}, - "output":{ - "shape":"DescribeReceiptRuleSetResponse", - "resultWrapper":"DescribeReceiptRuleSetResult" - }, - "errors":[ - {"shape":"RuleSetDoesNotExistException"} - ] - }, - "GetIdentityDkimAttributes":{ - "name":"GetIdentityDkimAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetIdentityDkimAttributesRequest"}, - "output":{ - "shape":"GetIdentityDkimAttributesResponse", - "resultWrapper":"GetIdentityDkimAttributesResult" - } - }, - "GetIdentityMailFromDomainAttributes":{ - "name":"GetIdentityMailFromDomainAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetIdentityMailFromDomainAttributesRequest"}, - "output":{ - "shape":"GetIdentityMailFromDomainAttributesResponse", - "resultWrapper":"GetIdentityMailFromDomainAttributesResult" - } - }, - "GetIdentityNotificationAttributes":{ - "name":"GetIdentityNotificationAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetIdentityNotificationAttributesRequest"}, - "output":{ - "shape":"GetIdentityNotificationAttributesResponse", - "resultWrapper":"GetIdentityNotificationAttributesResult" - } - }, - "GetIdentityPolicies":{ - "name":"GetIdentityPolicies", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetIdentityPoliciesRequest"}, - "output":{ - "shape":"GetIdentityPoliciesResponse", - "resultWrapper":"GetIdentityPoliciesResult" - } - }, - "GetIdentityVerificationAttributes":{ - "name":"GetIdentityVerificationAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetIdentityVerificationAttributesRequest"}, - "output":{ - "shape":"GetIdentityVerificationAttributesResponse", - "resultWrapper":"GetIdentityVerificationAttributesResult" - } - }, - "GetSendQuota":{ - "name":"GetSendQuota", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "output":{ - "shape":"GetSendQuotaResponse", - "resultWrapper":"GetSendQuotaResult" - } - }, - "GetSendStatistics":{ - "name":"GetSendStatistics", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "output":{ - "shape":"GetSendStatisticsResponse", - "resultWrapper":"GetSendStatisticsResult" - } - }, - "ListIdentities":{ - "name":"ListIdentities", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListIdentitiesRequest"}, - "output":{ - "shape":"ListIdentitiesResponse", - "resultWrapper":"ListIdentitiesResult" - } - }, - "ListIdentityPolicies":{ - "name":"ListIdentityPolicies", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListIdentityPoliciesRequest"}, - "output":{ - "shape":"ListIdentityPoliciesResponse", - "resultWrapper":"ListIdentityPoliciesResult" - } - }, - "ListReceiptFilters":{ - "name":"ListReceiptFilters", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListReceiptFiltersRequest"}, - "output":{ - "shape":"ListReceiptFiltersResponse", - "resultWrapper":"ListReceiptFiltersResult" - } - }, - "ListReceiptRuleSets":{ - "name":"ListReceiptRuleSets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListReceiptRuleSetsRequest"}, - "output":{ - "shape":"ListReceiptRuleSetsResponse", - "resultWrapper":"ListReceiptRuleSetsResult" - } - }, - "ListVerifiedEmailAddresses":{ - "name":"ListVerifiedEmailAddresses", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "output":{ - "shape":"ListVerifiedEmailAddressesResponse", - "resultWrapper":"ListVerifiedEmailAddressesResult" - } - }, - "PutIdentityPolicy":{ - "name":"PutIdentityPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutIdentityPolicyRequest"}, - "output":{ - "shape":"PutIdentityPolicyResponse", - "resultWrapper":"PutIdentityPolicyResult" - }, - "errors":[ - {"shape":"InvalidPolicyException"} - ] - }, - "ReorderReceiptRuleSet":{ - "name":"ReorderReceiptRuleSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ReorderReceiptRuleSetRequest"}, - "output":{ - "shape":"ReorderReceiptRuleSetResponse", - "resultWrapper":"ReorderReceiptRuleSetResult" - }, - "errors":[ - {"shape":"RuleSetDoesNotExistException"}, - {"shape":"RuleDoesNotExistException"} - ] - }, - "SendBounce":{ - "name":"SendBounce", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SendBounceRequest"}, - "output":{ - "shape":"SendBounceResponse", - "resultWrapper":"SendBounceResult" - }, - "errors":[ - {"shape":"MessageRejected"} - ] - }, - "SendEmail":{ - "name":"SendEmail", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SendEmailRequest"}, - "output":{ - "shape":"SendEmailResponse", - "resultWrapper":"SendEmailResult" - }, - "errors":[ - {"shape":"MessageRejected"}, - {"shape":"MailFromDomainNotVerifiedException"} - ] - }, - "SendRawEmail":{ - "name":"SendRawEmail", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SendRawEmailRequest"}, - "output":{ - "shape":"SendRawEmailResponse", - "resultWrapper":"SendRawEmailResult" - }, - "errors":[ - {"shape":"MessageRejected"}, - {"shape":"MailFromDomainNotVerifiedException"} - ] - }, - "SetActiveReceiptRuleSet":{ - "name":"SetActiveReceiptRuleSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetActiveReceiptRuleSetRequest"}, - "output":{ - "shape":"SetActiveReceiptRuleSetResponse", - "resultWrapper":"SetActiveReceiptRuleSetResult" - }, - "errors":[ - {"shape":"RuleSetDoesNotExistException"} - ] - }, - "SetIdentityDkimEnabled":{ - "name":"SetIdentityDkimEnabled", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetIdentityDkimEnabledRequest"}, - "output":{ - "shape":"SetIdentityDkimEnabledResponse", - "resultWrapper":"SetIdentityDkimEnabledResult" - } - }, - "SetIdentityFeedbackForwardingEnabled":{ - "name":"SetIdentityFeedbackForwardingEnabled", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetIdentityFeedbackForwardingEnabledRequest"}, - "output":{ - "shape":"SetIdentityFeedbackForwardingEnabledResponse", - "resultWrapper":"SetIdentityFeedbackForwardingEnabledResult" - } - }, - "SetIdentityMailFromDomain":{ - "name":"SetIdentityMailFromDomain", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetIdentityMailFromDomainRequest"}, - "output":{ - "shape":"SetIdentityMailFromDomainResponse", - "resultWrapper":"SetIdentityMailFromDomainResult" - } - }, - "SetIdentityNotificationTopic":{ - "name":"SetIdentityNotificationTopic", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetIdentityNotificationTopicRequest"}, - "output":{ - "shape":"SetIdentityNotificationTopicResponse", - "resultWrapper":"SetIdentityNotificationTopicResult" - } - }, - "SetReceiptRulePosition":{ - "name":"SetReceiptRulePosition", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetReceiptRulePositionRequest"}, - "output":{ - "shape":"SetReceiptRulePositionResponse", - "resultWrapper":"SetReceiptRulePositionResult" - }, - "errors":[ - {"shape":"RuleSetDoesNotExistException"}, - {"shape":"RuleDoesNotExistException"} - ] - }, - "UpdateReceiptRule":{ - "name":"UpdateReceiptRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateReceiptRuleRequest"}, - "output":{ - "shape":"UpdateReceiptRuleResponse", - "resultWrapper":"UpdateReceiptRuleResult" - }, - "errors":[ - {"shape":"InvalidSnsTopicException"}, - {"shape":"InvalidS3ConfigurationException"}, - {"shape":"InvalidLambdaFunctionException"}, - {"shape":"RuleSetDoesNotExistException"}, - {"shape":"RuleDoesNotExistException"}, - {"shape":"LimitExceededException"} - ] - }, - "VerifyDomainDkim":{ - "name":"VerifyDomainDkim", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"VerifyDomainDkimRequest"}, - "output":{ - "shape":"VerifyDomainDkimResponse", - "resultWrapper":"VerifyDomainDkimResult" - } - }, - "VerifyDomainIdentity":{ - "name":"VerifyDomainIdentity", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"VerifyDomainIdentityRequest"}, - "output":{ - "shape":"VerifyDomainIdentityResponse", - "resultWrapper":"VerifyDomainIdentityResult" - } - }, - "VerifyEmailAddress":{ - "name":"VerifyEmailAddress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"VerifyEmailAddressRequest"} - }, - "VerifyEmailIdentity":{ - "name":"VerifyEmailIdentity", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"VerifyEmailIdentityRequest"}, - "output":{ - "shape":"VerifyEmailIdentityResponse", - "resultWrapper":"VerifyEmailIdentityResult" - } - } - }, - "shapes":{ - "AddHeaderAction":{ - "type":"structure", - "required":[ - "HeaderName", - "HeaderValue" - ], - "members":{ - "HeaderName":{"shape":"HeaderName"}, - "HeaderValue":{"shape":"HeaderValue"} - } - }, - "Address":{"type":"string"}, - "AddressList":{ - "type":"list", - "member":{"shape":"Address"} - }, - "AlreadyExistsException":{ - "type":"structure", - "members":{ - "Name":{"shape":"RuleOrRuleSetName"} - }, - "error":{ - "code":"AlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "AmazonResourceName":{"type":"string"}, - "ArrivalDate":{"type":"timestamp"}, - "BehaviorOnMXFailure":{ - "type":"string", - "enum":[ - "UseDefaultValue", - "RejectMessage" - ] - }, - "Body":{ - "type":"structure", - "members":{ - "Text":{"shape":"Content"}, - "Html":{"shape":"Content"} - } - }, - "BounceAction":{ - "type":"structure", - "required":[ - "SmtpReplyCode", - "Message", - "Sender" - ], - "members":{ - "TopicArn":{"shape":"AmazonResourceName"}, - "SmtpReplyCode":{"shape":"BounceSmtpReplyCode"}, - "StatusCode":{"shape":"BounceStatusCode"}, - "Message":{"shape":"BounceMessage"}, - "Sender":{"shape":"Address"} - } - }, - "BounceMessage":{"type":"string"}, - "BounceSmtpReplyCode":{"type":"string"}, - "BounceStatusCode":{"type":"string"}, - "BounceType":{ - "type":"string", - "enum":[ - "DoesNotExist", - "MessageTooLarge", - "ExceededQuota", - "ContentRejected", - "Undefined", - "TemporaryFailure" - ] - }, - "BouncedRecipientInfo":{ - "type":"structure", - "required":["Recipient"], - "members":{ - "Recipient":{"shape":"Address"}, - "RecipientArn":{"shape":"AmazonResourceName"}, - "BounceType":{"shape":"BounceType"}, - "RecipientDsnFields":{"shape":"RecipientDsnFields"} - } - }, - "BouncedRecipientInfoList":{ - "type":"list", - "member":{"shape":"BouncedRecipientInfo"} - }, - "CannotDeleteException":{ - "type":"structure", - "members":{ - "Name":{"shape":"RuleOrRuleSetName"} - }, - "error":{ - "code":"CannotDelete", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "Charset":{"type":"string"}, - "Cidr":{"type":"string"}, - "CloneReceiptRuleSetRequest":{ - "type":"structure", - "required":[ - "RuleSetName", - "OriginalRuleSetName" - ], - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"}, - "OriginalRuleSetName":{"shape":"ReceiptRuleSetName"} - } - }, - "CloneReceiptRuleSetResponse":{ - "type":"structure", - "members":{ - } - }, - "Content":{ - "type":"structure", - "required":["Data"], - "members":{ - "Data":{"shape":"MessageData"}, - "Charset":{"shape":"Charset"} - } - }, - "Counter":{"type":"long"}, - "CreateReceiptFilterRequest":{ - "type":"structure", - "required":["Filter"], - "members":{ - "Filter":{"shape":"ReceiptFilter"} - } - }, - "CreateReceiptFilterResponse":{ - "type":"structure", - "members":{ - } - }, - "CreateReceiptRuleRequest":{ - "type":"structure", - "required":[ - "RuleSetName", - "Rule" - ], - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"}, - "After":{"shape":"ReceiptRuleName"}, - "Rule":{"shape":"ReceiptRule"} - } - }, - "CreateReceiptRuleResponse":{ - "type":"structure", - "members":{ - } - }, - "CreateReceiptRuleSetRequest":{ - "type":"structure", - "required":["RuleSetName"], - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"} - } - }, - "CreateReceiptRuleSetResponse":{ - "type":"structure", - "members":{ - } - }, - "CustomMailFromStatus":{ - "type":"string", - "enum":[ - "Pending", - "Success", - "Failed", - "TemporaryFailure" - ] - }, - "DeleteIdentityPolicyRequest":{ - "type":"structure", - "required":[ - "Identity", - "PolicyName" - ], - "members":{ - "Identity":{"shape":"Identity"}, - "PolicyName":{"shape":"PolicyName"} - } - }, - "DeleteIdentityPolicyResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteIdentityRequest":{ - "type":"structure", - "required":["Identity"], - "members":{ - "Identity":{"shape":"Identity"} - } - }, - "DeleteIdentityResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteReceiptFilterRequest":{ - "type":"structure", - "required":["FilterName"], - "members":{ - "FilterName":{"shape":"ReceiptFilterName"} - } - }, - "DeleteReceiptFilterResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteReceiptRuleRequest":{ - "type":"structure", - "required":[ - "RuleSetName", - "RuleName" - ], - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"}, - "RuleName":{"shape":"ReceiptRuleName"} - } - }, - "DeleteReceiptRuleResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteReceiptRuleSetRequest":{ - "type":"structure", - "required":["RuleSetName"], - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"} - } - }, - "DeleteReceiptRuleSetResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteVerifiedEmailAddressRequest":{ - "type":"structure", - "required":["EmailAddress"], - "members":{ - "EmailAddress":{"shape":"Address"} - } - }, - "DescribeActiveReceiptRuleSetRequest":{ - "type":"structure", - "members":{ - } - }, - "DescribeActiveReceiptRuleSetResponse":{ - "type":"structure", - "members":{ - "Metadata":{"shape":"ReceiptRuleSetMetadata"}, - "Rules":{"shape":"ReceiptRulesList"} - } - }, - "DescribeReceiptRuleRequest":{ - "type":"structure", - "required":[ - "RuleSetName", - "RuleName" - ], - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"}, - "RuleName":{"shape":"ReceiptRuleName"} - } - }, - "DescribeReceiptRuleResponse":{ - "type":"structure", - "members":{ - "Rule":{"shape":"ReceiptRule"} - } - }, - "DescribeReceiptRuleSetRequest":{ - "type":"structure", - "required":["RuleSetName"], - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"} - } - }, - "DescribeReceiptRuleSetResponse":{ - "type":"structure", - "members":{ - "Metadata":{"shape":"ReceiptRuleSetMetadata"}, - "Rules":{"shape":"ReceiptRulesList"} - } - }, - "Destination":{ - "type":"structure", - "members":{ - "ToAddresses":{"shape":"AddressList"}, - "CcAddresses":{"shape":"AddressList"}, - "BccAddresses":{"shape":"AddressList"} - } - }, - "DiagnosticCode":{"type":"string"}, - "DkimAttributes":{ - "type":"map", - "key":{"shape":"Identity"}, - "value":{"shape":"IdentityDkimAttributes"} - }, - "Domain":{"type":"string"}, - "DsnAction":{ - "type":"string", - "enum":[ - "failed", - "delayed", - "delivered", - "relayed", - "expanded" - ] - }, - "DsnStatus":{"type":"string"}, - "Enabled":{"type":"boolean"}, - "Explanation":{"type":"string"}, - "ExtensionField":{ - "type":"structure", - "required":[ - "Name", - "Value" - ], - "members":{ - "Name":{"shape":"ExtensionFieldName"}, - "Value":{"shape":"ExtensionFieldValue"} - } - }, - "ExtensionFieldList":{ - "type":"list", - "member":{"shape":"ExtensionField"} - }, - "ExtensionFieldName":{"type":"string"}, - "ExtensionFieldValue":{"type":"string"}, - "GetIdentityDkimAttributesRequest":{ - "type":"structure", - "required":["Identities"], - "members":{ - "Identities":{"shape":"IdentityList"} - } - }, - "GetIdentityDkimAttributesResponse":{ - "type":"structure", - "required":["DkimAttributes"], - "members":{ - "DkimAttributes":{"shape":"DkimAttributes"} - } - }, - "GetIdentityMailFromDomainAttributesRequest":{ - "type":"structure", - "required":["Identities"], - "members":{ - "Identities":{"shape":"IdentityList"} - } - }, - "GetIdentityMailFromDomainAttributesResponse":{ - "type":"structure", - "required":["MailFromDomainAttributes"], - "members":{ - "MailFromDomainAttributes":{"shape":"MailFromDomainAttributes"} - } - }, - "GetIdentityNotificationAttributesRequest":{ - "type":"structure", - "required":["Identities"], - "members":{ - "Identities":{"shape":"IdentityList"} - } - }, - "GetIdentityNotificationAttributesResponse":{ - "type":"structure", - "required":["NotificationAttributes"], - "members":{ - "NotificationAttributes":{"shape":"NotificationAttributes"} - } - }, - "GetIdentityPoliciesRequest":{ - "type":"structure", - "required":[ - "Identity", - "PolicyNames" - ], - "members":{ - "Identity":{"shape":"Identity"}, - "PolicyNames":{"shape":"PolicyNameList"} - } - }, - "GetIdentityPoliciesResponse":{ - "type":"structure", - "required":["Policies"], - "members":{ - "Policies":{"shape":"PolicyMap"} - } - }, - "GetIdentityVerificationAttributesRequest":{ - "type":"structure", - "required":["Identities"], - "members":{ - "Identities":{"shape":"IdentityList"} - } - }, - "GetIdentityVerificationAttributesResponse":{ - "type":"structure", - "required":["VerificationAttributes"], - "members":{ - "VerificationAttributes":{"shape":"VerificationAttributes"} - } - }, - "GetSendQuotaResponse":{ - "type":"structure", - "members":{ - "Max24HourSend":{"shape":"Max24HourSend"}, - "MaxSendRate":{"shape":"MaxSendRate"}, - "SentLast24Hours":{"shape":"SentLast24Hours"} - } - }, - "GetSendStatisticsResponse":{ - "type":"structure", - "members":{ - "SendDataPoints":{"shape":"SendDataPointList"} - } - }, - "HeaderName":{"type":"string"}, - "HeaderValue":{"type":"string"}, - "Identity":{"type":"string"}, - "IdentityDkimAttributes":{ - "type":"structure", - "required":[ - "DkimEnabled", - "DkimVerificationStatus" - ], - "members":{ - "DkimEnabled":{"shape":"Enabled"}, - "DkimVerificationStatus":{"shape":"VerificationStatus"}, - "DkimTokens":{"shape":"VerificationTokenList"} - } - }, - "IdentityList":{ - "type":"list", - "member":{"shape":"Identity"} - }, - "IdentityMailFromDomainAttributes":{ - "type":"structure", - "required":[ - "MailFromDomain", - "MailFromDomainStatus", - "BehaviorOnMXFailure" - ], - "members":{ - "MailFromDomain":{"shape":"MailFromDomainName"}, - "MailFromDomainStatus":{"shape":"CustomMailFromStatus"}, - "BehaviorOnMXFailure":{"shape":"BehaviorOnMXFailure"} - } - }, - "IdentityNotificationAttributes":{ - "type":"structure", - "required":[ - "BounceTopic", - "ComplaintTopic", - "DeliveryTopic", - "ForwardingEnabled" - ], - "members":{ - "BounceTopic":{"shape":"NotificationTopic"}, - "ComplaintTopic":{"shape":"NotificationTopic"}, - "DeliveryTopic":{"shape":"NotificationTopic"}, - "ForwardingEnabled":{"shape":"Enabled"} - } - }, - "IdentityType":{ - "type":"string", - "enum":[ - "EmailAddress", - "Domain" - ] - }, - "IdentityVerificationAttributes":{ - "type":"structure", - "required":["VerificationStatus"], - "members":{ - "VerificationStatus":{"shape":"VerificationStatus"}, - "VerificationToken":{"shape":"VerificationToken"} - } - }, - "InvalidLambdaFunctionException":{ - "type":"structure", - "members":{ - "FunctionArn":{"shape":"AmazonResourceName"} - }, - "error":{ - "code":"InvalidLambdaFunction", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidPolicyException":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidPolicy", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidS3ConfigurationException":{ - "type":"structure", - "members":{ - "Bucket":{"shape":"S3BucketName"} - }, - "error":{ - "code":"InvalidS3Configuration", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidSnsTopicException":{ - "type":"structure", - "members":{ - "Topic":{"shape":"AmazonResourceName"} - }, - "error":{ - "code":"InvalidSnsTopic", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvocationType":{ - "type":"string", - "enum":[ - "Event", - "RequestResponse" - ] - }, - "LambdaAction":{ - "type":"structure", - "required":["FunctionArn"], - "members":{ - "TopicArn":{"shape":"AmazonResourceName"}, - "FunctionArn":{"shape":"AmazonResourceName"}, - "InvocationType":{"shape":"InvocationType"} - } - }, - "LastAttemptDate":{"type":"timestamp"}, - "LimitExceededException":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"LimitExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "ListIdentitiesRequest":{ - "type":"structure", - "members":{ - "IdentityType":{"shape":"IdentityType"}, - "NextToken":{"shape":"NextToken"}, - "MaxItems":{"shape":"MaxItems"} - } - }, - "ListIdentitiesResponse":{ - "type":"structure", - "required":["Identities"], - "members":{ - "Identities":{"shape":"IdentityList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "ListIdentityPoliciesRequest":{ - "type":"structure", - "required":["Identity"], - "members":{ - "Identity":{"shape":"Identity"} - } - }, - "ListIdentityPoliciesResponse":{ - "type":"structure", - "required":["PolicyNames"], - "members":{ - "PolicyNames":{"shape":"PolicyNameList"} - } - }, - "ListReceiptFiltersRequest":{ - "type":"structure", - "members":{ - } - }, - "ListReceiptFiltersResponse":{ - "type":"structure", - "members":{ - "Filters":{"shape":"ReceiptFilterList"} - } - }, - "ListReceiptRuleSetsRequest":{ - "type":"structure", - "members":{ - "NextToken":{"shape":"NextToken"} - } - }, - "ListReceiptRuleSetsResponse":{ - "type":"structure", - "members":{ - "RuleSets":{"shape":"ReceiptRuleSetsLists"}, - "NextToken":{"shape":"NextToken"} - } - }, - "ListVerifiedEmailAddressesResponse":{ - "type":"structure", - "members":{ - "VerifiedEmailAddresses":{"shape":"AddressList"} - } - }, - "MailFromDomainAttributes":{ - "type":"map", - "key":{"shape":"Identity"}, - "value":{"shape":"IdentityMailFromDomainAttributes"} - }, - "MailFromDomainName":{"type":"string"}, - "MailFromDomainNotVerifiedException":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"MailFromDomainNotVerifiedException", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "Max24HourSend":{"type":"double"}, - "MaxItems":{"type":"integer"}, - "MaxSendRate":{"type":"double"}, - "Message":{ - "type":"structure", - "required":[ - "Subject", - "Body" - ], - "members":{ - "Subject":{"shape":"Content"}, - "Body":{"shape":"Body"} - } - }, - "MessageData":{"type":"string"}, - "MessageDsn":{ - "type":"structure", - "required":["ReportingMta"], - "members":{ - "ReportingMta":{"shape":"ReportingMta"}, - "ArrivalDate":{"shape":"ArrivalDate"}, - "ExtensionFields":{"shape":"ExtensionFieldList"} - } - }, - "MessageId":{"type":"string"}, - "MessageRejected":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"MessageRejected", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "NextToken":{"type":"string"}, - "NotificationAttributes":{ - "type":"map", - "key":{"shape":"Identity"}, - "value":{"shape":"IdentityNotificationAttributes"} - }, - "NotificationTopic":{"type":"string"}, - "NotificationType":{ - "type":"string", - "enum":[ - "Bounce", - "Complaint", - "Delivery" - ] - }, - "Policy":{ - "type":"string", - "min":1 - }, - "PolicyMap":{ - "type":"map", - "key":{"shape":"PolicyName"}, - "value":{"shape":"Policy"} - }, - "PolicyName":{ - "type":"string", - "max":64, - "min":1 - }, - "PolicyNameList":{ - "type":"list", - "member":{"shape":"PolicyName"} - }, - "PutIdentityPolicyRequest":{ - "type":"structure", - "required":[ - "Identity", - "PolicyName", - "Policy" - ], - "members":{ - "Identity":{"shape":"Identity"}, - "PolicyName":{"shape":"PolicyName"}, - "Policy":{"shape":"Policy"} - } - }, - "PutIdentityPolicyResponse":{ - "type":"structure", - "members":{ - } - }, - "RawMessage":{ - "type":"structure", - "required":["Data"], - "members":{ - "Data":{"shape":"RawMessageData"} - } - }, - "RawMessageData":{"type":"blob"}, - "ReceiptAction":{ - "type":"structure", - "members":{ - "S3Action":{"shape":"S3Action"}, - "BounceAction":{"shape":"BounceAction"}, - "WorkmailAction":{"shape":"WorkmailAction"}, - "LambdaAction":{"shape":"LambdaAction"}, - "StopAction":{"shape":"StopAction"}, - "AddHeaderAction":{"shape":"AddHeaderAction"}, - "SNSAction":{"shape":"SNSAction"} - } - }, - "ReceiptActionsList":{ - "type":"list", - "member":{"shape":"ReceiptAction"} - }, - "ReceiptFilter":{ - "type":"structure", - "required":[ - "Name", - "IpFilter" - ], - "members":{ - "Name":{"shape":"ReceiptFilterName"}, - "IpFilter":{"shape":"ReceiptIpFilter"} - } - }, - "ReceiptFilterList":{ - "type":"list", - "member":{"shape":"ReceiptFilter"} - }, - "ReceiptFilterName":{"type":"string"}, - "ReceiptFilterPolicy":{ - "type":"string", - "enum":[ - "Block", - "Allow" - ] - }, - "ReceiptIpFilter":{ - "type":"structure", - "required":[ - "Policy", - "Cidr" - ], - "members":{ - "Policy":{"shape":"ReceiptFilterPolicy"}, - "Cidr":{"shape":"Cidr"} - } - }, - "ReceiptRule":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"ReceiptRuleName"}, - "Enabled":{"shape":"Enabled"}, - "TlsPolicy":{"shape":"TlsPolicy"}, - "Recipients":{"shape":"RecipientsList"}, - "Actions":{"shape":"ReceiptActionsList"}, - "ScanEnabled":{"shape":"Enabled"} - } - }, - "ReceiptRuleName":{"type":"string"}, - "ReceiptRuleNamesList":{ - "type":"list", - "member":{"shape":"ReceiptRuleName"} - }, - "ReceiptRuleSetMetadata":{ - "type":"structure", - "members":{ - "Name":{"shape":"ReceiptRuleSetName"}, - "CreatedTimestamp":{"shape":"Timestamp"} - } - }, - "ReceiptRuleSetName":{"type":"string"}, - "ReceiptRuleSetsLists":{ - "type":"list", - "member":{"shape":"ReceiptRuleSetMetadata"} - }, - "ReceiptRulesList":{ - "type":"list", - "member":{"shape":"ReceiptRule"} - }, - "Recipient":{"type":"string"}, - "RecipientDsnFields":{ - "type":"structure", - "required":[ - "Action", - "Status" - ], - "members":{ - "FinalRecipient":{"shape":"Address"}, - "Action":{"shape":"DsnAction"}, - "RemoteMta":{"shape":"RemoteMta"}, - "Status":{"shape":"DsnStatus"}, - "DiagnosticCode":{"shape":"DiagnosticCode"}, - "LastAttemptDate":{"shape":"LastAttemptDate"}, - "ExtensionFields":{"shape":"ExtensionFieldList"} - } - }, - "RecipientsList":{ - "type":"list", - "member":{"shape":"Recipient"} - }, - "RemoteMta":{"type":"string"}, - "ReorderReceiptRuleSetRequest":{ - "type":"structure", - "required":[ - "RuleSetName", - "RuleNames" - ], - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"}, - "RuleNames":{"shape":"ReceiptRuleNamesList"} - } - }, - "ReorderReceiptRuleSetResponse":{ - "type":"structure", - "members":{ - } - }, - "ReportingMta":{"type":"string"}, - "RuleDoesNotExistException":{ - "type":"structure", - "members":{ - "Name":{"shape":"RuleOrRuleSetName"} - }, - "error":{ - "code":"RuleDoesNotExist", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "RuleOrRuleSetName":{"type":"string"}, - "RuleSetDoesNotExistException":{ - "type":"structure", - "members":{ - "Name":{"shape":"RuleOrRuleSetName"} - }, - "error":{ - "code":"RuleSetDoesNotExist", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "S3Action":{ - "type":"structure", - "required":["BucketName"], - "members":{ - "TopicArn":{"shape":"AmazonResourceName"}, - "BucketName":{"shape":"S3BucketName"}, - "ObjectKeyPrefix":{"shape":"S3KeyPrefix"}, - "KmsKeyArn":{"shape":"AmazonResourceName"} - } - }, - "S3BucketName":{"type":"string"}, - "S3KeyPrefix":{"type":"string"}, - "SNSAction":{ - "type":"structure", - "required":["TopicArn"], - "members":{ - "TopicArn":{"shape":"AmazonResourceName"}, - "Encoding":{"shape":"SNSActionEncoding"} - } - }, - "SNSActionEncoding":{ - "type":"string", - "enum":[ - "UTF-8", - "Base64" - ] - }, - "SendBounceRequest":{ - "type":"structure", - "required":[ - "OriginalMessageId", - "BounceSender", - "BouncedRecipientInfoList" - ], - "members":{ - "OriginalMessageId":{"shape":"MessageId"}, - "BounceSender":{"shape":"Address"}, - "Explanation":{"shape":"Explanation"}, - "MessageDsn":{"shape":"MessageDsn"}, - "BouncedRecipientInfoList":{"shape":"BouncedRecipientInfoList"}, - "BounceSenderArn":{"shape":"AmazonResourceName"} - } - }, - "SendBounceResponse":{ - "type":"structure", - "members":{ - "MessageId":{"shape":"MessageId"} - } - }, - "SendDataPoint":{ - "type":"structure", - "members":{ - "Timestamp":{"shape":"Timestamp"}, - "DeliveryAttempts":{"shape":"Counter"}, - "Bounces":{"shape":"Counter"}, - "Complaints":{"shape":"Counter"}, - "Rejects":{"shape":"Counter"} - } - }, - "SendDataPointList":{ - "type":"list", - "member":{"shape":"SendDataPoint"} - }, - "SendEmailRequest":{ - "type":"structure", - "required":[ - "Source", - "Destination", - "Message" - ], - "members":{ - "Source":{"shape":"Address"}, - "Destination":{"shape":"Destination"}, - "Message":{"shape":"Message"}, - "ReplyToAddresses":{"shape":"AddressList"}, - "ReturnPath":{"shape":"Address"}, - "SourceArn":{"shape":"AmazonResourceName"}, - "ReturnPathArn":{"shape":"AmazonResourceName"} - } - }, - "SendEmailResponse":{ - "type":"structure", - "required":["MessageId"], - "members":{ - "MessageId":{"shape":"MessageId"} - } - }, - "SendRawEmailRequest":{ - "type":"structure", - "required":["RawMessage"], - "members":{ - "Source":{"shape":"Address"}, - "Destinations":{"shape":"AddressList"}, - "RawMessage":{"shape":"RawMessage"}, - "FromArn":{"shape":"AmazonResourceName"}, - "SourceArn":{"shape":"AmazonResourceName"}, - "ReturnPathArn":{"shape":"AmazonResourceName"} - } - }, - "SendRawEmailResponse":{ - "type":"structure", - "required":["MessageId"], - "members":{ - "MessageId":{"shape":"MessageId"} - } - }, - "SentLast24Hours":{"type":"double"}, - "SetActiveReceiptRuleSetRequest":{ - "type":"structure", - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"} - } - }, - "SetActiveReceiptRuleSetResponse":{ - "type":"structure", - "members":{ - } - }, - "SetIdentityDkimEnabledRequest":{ - "type":"structure", - "required":[ - "Identity", - "DkimEnabled" - ], - "members":{ - "Identity":{"shape":"Identity"}, - "DkimEnabled":{"shape":"Enabled"} - } - }, - "SetIdentityDkimEnabledResponse":{ - "type":"structure", - "members":{ - } - }, - "SetIdentityFeedbackForwardingEnabledRequest":{ - "type":"structure", - "required":[ - "Identity", - "ForwardingEnabled" - ], - "members":{ - "Identity":{"shape":"Identity"}, - "ForwardingEnabled":{"shape":"Enabled"} - } - }, - "SetIdentityFeedbackForwardingEnabledResponse":{ - "type":"structure", - "members":{ - } - }, - "SetIdentityMailFromDomainRequest":{ - "type":"structure", - "required":["Identity"], - "members":{ - "Identity":{"shape":"Identity"}, - "MailFromDomain":{"shape":"MailFromDomainName"}, - "BehaviorOnMXFailure":{"shape":"BehaviorOnMXFailure"} - } - }, - "SetIdentityMailFromDomainResponse":{ - "type":"structure", - "members":{ - } - }, - "SetIdentityNotificationTopicRequest":{ - "type":"structure", - "required":[ - "Identity", - "NotificationType" - ], - "members":{ - "Identity":{"shape":"Identity"}, - "NotificationType":{"shape":"NotificationType"}, - "SnsTopic":{"shape":"NotificationTopic"} - } - }, - "SetIdentityNotificationTopicResponse":{ - "type":"structure", - "members":{ - } - }, - "SetReceiptRulePositionRequest":{ - "type":"structure", - "required":[ - "RuleSetName", - "RuleName" - ], - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"}, - "RuleName":{"shape":"ReceiptRuleName"}, - "After":{"shape":"ReceiptRuleName"} - } - }, - "SetReceiptRulePositionResponse":{ - "type":"structure", - "members":{ - } - }, - "StopAction":{ - "type":"structure", - "required":["Scope"], - "members":{ - "Scope":{"shape":"StopScope"}, - "TopicArn":{"shape":"AmazonResourceName"} - } - }, - "StopScope":{ - "type":"string", - "enum":["RuleSet"] - }, - "Timestamp":{"type":"timestamp"}, - "TlsPolicy":{ - "type":"string", - "enum":[ - "Require", - "Optional" - ] - }, - "UpdateReceiptRuleRequest":{ - "type":"structure", - "required":[ - "RuleSetName", - "Rule" - ], - "members":{ - "RuleSetName":{"shape":"ReceiptRuleSetName"}, - "Rule":{"shape":"ReceiptRule"} - } - }, - "UpdateReceiptRuleResponse":{ - "type":"structure", - "members":{ - } - }, - "VerificationAttributes":{ - "type":"map", - "key":{"shape":"Identity"}, - "value":{"shape":"IdentityVerificationAttributes"} - }, - "VerificationStatus":{ - "type":"string", - "enum":[ - "Pending", - "Success", - "Failed", - "TemporaryFailure", - "NotStarted" - ] - }, - "VerificationToken":{"type":"string"}, - "VerificationTokenList":{ - "type":"list", - "member":{"shape":"VerificationToken"} - }, - "VerifyDomainDkimRequest":{ - "type":"structure", - "required":["Domain"], - "members":{ - "Domain":{"shape":"Domain"} - } - }, - "VerifyDomainDkimResponse":{ - "type":"structure", - "required":["DkimTokens"], - "members":{ - "DkimTokens":{"shape":"VerificationTokenList"} - } - }, - "VerifyDomainIdentityRequest":{ - "type":"structure", - "required":["Domain"], - "members":{ - "Domain":{"shape":"Domain"} - } - }, - "VerifyDomainIdentityResponse":{ - "type":"structure", - "required":["VerificationToken"], - "members":{ - "VerificationToken":{"shape":"VerificationToken"} - } - }, - "VerifyEmailAddressRequest":{ - "type":"structure", - "required":["EmailAddress"], - "members":{ - "EmailAddress":{"shape":"Address"} - } - }, - "VerifyEmailIdentityRequest":{ - "type":"structure", - "required":["EmailAddress"], - "members":{ - "EmailAddress":{"shape":"Address"} - } - }, - "VerifyEmailIdentityResponse":{ - "type":"structure", - "members":{ - } - }, - "WorkmailAction":{ - "type":"structure", - "required":["OrganizationArn"], - "members":{ - "TopicArn":{"shape":"AmazonResourceName"}, - "OrganizationArn":{"shape":"AmazonResourceName"} - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/docs-2.json deleted file mode 100644 index 65851fb07..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/docs-2.json +++ /dev/null @@ -1,1195 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon Simple Email Service

    This is the API Reference for Amazon Simple Email Service (Amazon SES). This documentation is intended to be used in conjunction with the Amazon SES Developer Guide.

    For a list of Amazon SES endpoints to use in service requests, see Regions and Amazon SES in the Amazon SES Developer Guide. ", - "operations": { - "CloneReceiptRuleSet": "

    Creates a receipt rule set by cloning an existing one. All receipt rules and configurations are copied to the new receipt rule set and are completely independent of the source rule set.

    For information about setting up rule sets, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "CreateReceiptFilter": "

    Creates a new IP address filter.

    For information about setting up IP address filters, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "CreateReceiptRule": "

    Creates a receipt rule.

    For information about setting up receipt rules, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "CreateReceiptRuleSet": "

    Creates an empty receipt rule set.

    For information about setting up receipt rule sets, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "DeleteIdentity": "

    Deletes the specified identity (email address or domain) from the list of verified identities.

    This action is throttled at one request per second.

    ", - "DeleteIdentityPolicy": "

    Deletes the specified sending authorization policy for the given identity (email address or domain). This API returns successfully even if a policy with the specified name does not exist.

    This API is for the identity owner only. If you have not verified the identity, this API will return an error.

    Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "DeleteReceiptFilter": "

    Deletes the specified IP address filter.

    For information about managing IP address filters, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "DeleteReceiptRule": "

    Deletes the specified receipt rule.

    For information about managing receipt rules, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "DeleteReceiptRuleSet": "

    Deletes the specified receipt rule set and all of the receipt rules it contains.

    The currently active rule set cannot be deleted.

    For information about managing receipt rule sets, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "DeleteVerifiedEmailAddress": "

    Deletes the specified email address from the list of verified addresses.

    The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012 release of Domain Verification. The DeleteIdentity action is now preferred.

    This action is throttled at one request per second.

    ", - "DescribeActiveReceiptRuleSet": "

    Returns the metadata and receipt rules for the receipt rule set that is currently active.

    For information about setting up receipt rule sets, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "DescribeReceiptRule": "

    Returns the details of the specified receipt rule.

    For information about setting up receipt rules, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "DescribeReceiptRuleSet": "

    Returns the details of the specified receipt rule set.

    For information about managing receipt rule sets, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "GetIdentityDkimAttributes": "

    Returns the current status of Easy DKIM signing for an entity. For domain name identities, this action also returns the DKIM tokens that are required for Easy DKIM signing, and whether Amazon SES has successfully verified that these tokens have been published.

    This action takes a list of identities as input and returns the following information for each:

    • Whether Easy DKIM signing is enabled or disabled.
    • A set of DKIM tokens that represent the identity. If the identity is an email address, the tokens represent the domain of that address.
    • Whether Amazon SES has successfully verified the DKIM tokens published in the domain's DNS. This information is only returned for domain name identities, not for email addresses.

    This action is throttled at one request per second and can only get DKIM attributes for up to 100 identities at a time.

    For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

    ", - "GetIdentityMailFromDomainAttributes": "

    Returns the custom MAIL FROM attributes for a list of identities (email addresses and/or domains).

    This action is throttled at one request per second and can only get custom MAIL FROM attributes for up to 100 identities at a time.

    ", - "GetIdentityNotificationAttributes": "

    Given a list of verified identities (email addresses and/or domains), returns a structure describing identity notification attributes.

    This action is throttled at one request per second and can only get notification attributes for up to 100 identities at a time.

    For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

    ", - "GetIdentityPolicies": "

    Returns the requested sending authorization policies for the given identity (email address or domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time.

    This API is for the identity owner only. If you have not verified the identity, this API will return an error.

    Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "GetIdentityVerificationAttributes": "

    Given a list of identities (email addresses and/or domains), returns the verification status and (for domain identities) the verification token for each identity.

    This action is throttled at one request per second and can only get verification attributes for up to 100 identities at a time.

    ", - "GetSendQuota": "

    Returns the user's current sending limits.

    This action is throttled at one request per second.

    ", - "GetSendStatistics": "

    Returns the user's sending statistics. The result is a list of data points, representing the last two weeks of sending activity.

    Each data point in the list contains statistics for a 15-minute interval.

    This action is throttled at one request per second.

    ", - "ListIdentities": "

    Returns a list containing all of the identities (email addresses and domains) for a specific AWS Account, regardless of verification status.

    This action is throttled at one request per second.

    ", - "ListIdentityPolicies": "

    Returns a list of sending authorization policies that are attached to the given identity (email address or domain). This API returns only a list. If you want the actual policy content, you can use GetIdentityPolicies.

    This API is for the identity owner only. If you have not verified the identity, this API will return an error.

    Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "ListReceiptFilters": "

    Lists the IP address filters associated with your account.

    For information about managing IP address filters, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "ListReceiptRuleSets": "

    Lists the receipt rule sets that exist under your AWS account. If there are additional receipt rule sets to be retrieved, you will receive a NextToken that you can provide to the next call to ListReceiptRuleSets to retrieve the additional entries.

    For information about managing receipt rule sets, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "ListVerifiedEmailAddresses": "

    Returns a list containing all of the email addresses that have been verified.

    The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 release of Domain Verification. The ListIdentities action is now preferred.

    This action is throttled at one request per second.

    ", - "PutIdentityPolicy": "

    Adds or updates a sending authorization policy for the specified identity (email address or domain).

    This API is for the identity owner only. If you have not verified the identity, this API will return an error.

    Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "ReorderReceiptRuleSet": "

    Reorders the receipt rules within a receipt rule set.

    All of the rules in the rule set must be represented in this request. That is, this API will return an error if the reorder request doesn't explicitly position all of the rules.

    For information about managing receipt rule sets, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "SendBounce": "

    Generates and sends a bounce message to the sender of an email you received through Amazon SES. You can only use this API on an email up to 24 hours after you receive it.

    You cannot use this API to send generic bounces for mail that was not received by Amazon SES.

    For information about receiving email through Amazon SES, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "SendEmail": "

    Composes an email message based on input data, and then immediately queues the message for sending.

    There are several important points to know about SendEmail:

    • You can only send email from verified email addresses and domains; otherwise, you will get an \"Email address not verified\" error. If your account is still in the Amazon SES sandbox, you must also verify every recipient email address except for the recipients provided by the Amazon SES mailbox simulator. For more information, go to the Amazon SES Developer Guide.
    • The total size of the message cannot exceed 10 MB. This includes any attachments that are part of the message.
    • Amazon SES has a limit on the total number of recipients per message. The combined number of To:, CC: and BCC: email addresses cannot exceed 50. If you need to send an email message to a larger audience, you can divide your recipient list into groups of 50 or fewer, and then call Amazon SES repeatedly to send the message to each group.
    • For every message that you send, the total number of recipients (To:, CC: and BCC:) is counted against your sending quota - the maximum number of emails you can send in a 24-hour period. For information about your sending quota, go to the Amazon SES Developer Guide.
    ", - "SendRawEmail": "

    Sends an email message, with header and content specified by the client. The SendRawEmail action is useful for sending multipart MIME emails. The raw text of the message must comply with Internet email standards; otherwise, the message cannot be sent.

    There are several important points to know about SendRawEmail:

    • You can only send email from verified email addresses and domains; otherwise, you will get an \"Email address not verified\" error. If your account is still in the Amazon SES sandbox, you must also verify every recipient email address except for the recipients provided by the Amazon SES mailbox simulator. For more information, go to the Amazon SES Developer Guide.
    • The total size of the message cannot exceed 10 MB. This includes any attachments that are part of the message.
    • Amazon SES has a limit on the total number of recipients per message. The combined number of To:, CC: and BCC: email addresses cannot exceed 50. If you need to send an email message to a larger audience, you can divide your recipient list into groups of 50 or fewer, and then call Amazon SES repeatedly to send the message to each group.
    • The To:, CC:, and BCC: headers in the raw message can contain a group list. Note that each recipient in a group list counts towards the 50-recipient limit.
    • For every message that you send, the total number of recipients (To:, CC: and BCC:) is counted against your sending quota - the maximum number of emails you can send in a 24-hour period. For information about your sending quota, go to the Amazon SES Developer Guide.
    • If you are using sending authorization to send on behalf of another user, SendRawEmail enables you to specify the cross-account identity for the email's \"Source,\" \"From,\" and \"Return-Path\" parameters in one of two ways: you can pass optional parameters SourceArn, FromArn, and/or ReturnPathArn to the API, or you can include the following X-headers in the header of your raw email:
      • X-SES-SOURCE-ARN
      • X-SES-FROM-ARN
      • X-SES-RETURN-PATH-ARN
      Do not include these X-headers in the DKIM signature, because they are removed by Amazon SES before sending the email. For the most common sending authorization use case, we recommend that you specify the SourceIdentityArn and do not specify either the FromIdentityArn or ReturnPathIdentityArn. (The same note applies to the corresponding X-headers.) If you only specify the SourceIdentityArn, Amazon SES will simply set the \"From\" address and the \"Return Path\" address to the identity specified in SourceIdentityArn. For more information about sending authorization, see the Amazon SES Developer Guide.
    ", - "SetActiveReceiptRuleSet": "

    Sets the specified receipt rule set as the active receipt rule set.

    To disable your email-receiving through Amazon SES completely, you can call this API with RuleSetName set to null.

    For information about managing receipt rule sets, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "SetIdentityDkimEnabled": "

    Enables or disables Easy DKIM signing of email sent from an identity:

    • If Easy DKIM signing is enabled for a domain name identity (e.g., example.com), then Amazon SES will DKIM-sign all email sent by addresses under that domain name (e.g., user@example.com).
    • If Easy DKIM signing is enabled for an email address, then Amazon SES will DKIM-sign all email sent by that email address.

    For email addresses (e.g., user@example.com), you can only enable Easy DKIM signing if the corresponding domain (e.g., example.com) has been set up for Easy DKIM using the AWS Console or the VerifyDomainDkim action.

    This action is throttled at one request per second.

    For more information about Easy DKIM signing, go to the Amazon SES Developer Guide.

    ", - "SetIdentityFeedbackForwardingEnabled": "

    Given an identity (email address or domain), enables or disables whether Amazon SES forwards bounce and complaint notifications as email. Feedback forwarding can only be disabled when Amazon Simple Notification Service (Amazon SNS) topics are specified for both bounces and complaints.

    Feedback forwarding does not apply to delivery notifications. Delivery notifications are only available through Amazon SNS.

    This action is throttled at one request per second.

    For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

    ", - "SetIdentityMailFromDomain": "

    Enables or disables the custom MAIL FROM domain setup for a verified identity (email address or domain).

    To send emails using the specified MAIL FROM domain, you must add an MX record to your MAIL FROM domain's DNS settings. If you want your emails to pass Sender Policy Framework (SPF) checks, you must also add or update an SPF record. For more information, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "SetIdentityNotificationTopic": "

    Given an identity (email address or domain), sets the Amazon Simple Notification Service (Amazon SNS) topic to which Amazon SES will publish bounce, complaint, and/or delivery notifications for emails sent with that identity as the Source.

    Unless feedback forwarding is enabled, you must specify Amazon SNS topics for bounce and complaint notifications. For more information, see SetIdentityFeedbackForwardingEnabled.

    This action is throttled at one request per second.

    For more information about feedback notification, see the Amazon SES Developer Guide.

    ", - "SetReceiptRulePosition": "

    Sets the position of the specified receipt rule in the receipt rule set.

    For information about managing receipt rules, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "UpdateReceiptRule": "

    Updates a receipt rule.

    For information about managing receipt rules, see the Amazon SES Developer Guide.

    This action is throttled at one request per second.

    ", - "VerifyDomainDkim": "

    Returns a set of DKIM tokens for a domain. DKIM tokens are character strings that represent your domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain.

    This action is throttled at one request per second.

    To enable or disable Easy DKIM signing for a domain, use the SetIdentityDkimEnabled action.

    For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

    ", - "VerifyDomainIdentity": "

    Verifies a domain.

    This action is throttled at one request per second.

    ", - "VerifyEmailAddress": "

    Verifies an email address. This action causes a confirmation email message to be sent to the specified address.

    The VerifyEmailAddress action is deprecated as of the May 15, 2012 release of Domain Verification. The VerifyEmailIdentity action is now preferred.

    This action is throttled at one request per second.

    ", - "VerifyEmailIdentity": "

    Verifies an email address. This action causes a confirmation email message to be sent to the specified address.

    This action is throttled at one request per second.

    " - }, - "shapes": { - "AddHeaderAction": { - "base": "

    When included in a receipt rule, this action adds a header to the received email.

    For information about adding a header using a receipt rule, see the Amazon SES Developer Guide.

    ", - "refs": { - "ReceiptAction$AddHeaderAction": "

    Adds a header to the received email.

    " - } - }, - "Address": { - "base": null, - "refs": { - "AddressList$member": null, - "BounceAction$Sender": "

    The email address of the sender of the bounced email. This is the address from which the bounce message will be sent.

    ", - "BouncedRecipientInfo$Recipient": "

    The email address of the recipient of the bounced email.

    ", - "DeleteVerifiedEmailAddressRequest$EmailAddress": "

    An email address to be removed from the list of verified addresses.

    ", - "RecipientDsnFields$FinalRecipient": "

    The email address to which the message was ultimately delivered. This corresponds to the Final-Recipient in the DSN. If not specified, FinalRecipient will be set to the Recipient specified in the BouncedRecipientInfo structure. Either FinalRecipient or the recipient in BouncedRecipientInfo must be a recipient of the original bounced message.

    Do not prepend the FinalRecipient email address with rfc 822;, as described in RFC 3798.", - "SendBounceRequest$BounceSender": "

    The address to use in the \"From\" header of the bounce message. This must be an identity that you have verified with Amazon SES.

    ", - "SendEmailRequest$Source": "

    The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide.

    If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the SourceArn parameter. For more information about sending authorization, see the Amazon SES Developer Guide.

    In all cases, the email address must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. For more information, see RFC 2047.

    ", - "SendEmailRequest$ReturnPath": "

    The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the ReturnPath parameter. The ReturnPath parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.

    ", - "SendRawEmailRequest$Source": "

    The identity's email address. If you do not provide a value for this parameter, you must specify a \"From\" address in the raw text of the message. (You can also specify both.)

    By default, the string must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. For more information, see RFC 2047.

    If you specify the Source parameter and have feedback forwarding enabled, then bounces and complaints will be sent to this email address. This takes precedence over any Return-Path header that you might include in the raw text of the message. ", - "VerifyEmailAddressRequest$EmailAddress": "

    The email address to be verified.

    ", - "VerifyEmailIdentityRequest$EmailAddress": "

    The email address to be verified.

    " - } - }, - "AddressList": { - "base": null, - "refs": { - "Destination$ToAddresses": "

    The To: field(s) of the message.

    ", - "Destination$CcAddresses": "

    The CC: field(s) of the message.

    ", - "Destination$BccAddresses": "

    The BCC: field(s) of the message.

    ", - "ListVerifiedEmailAddressesResponse$VerifiedEmailAddresses": "

    A list of email addresses that have been verified.

    ", - "SendEmailRequest$ReplyToAddresses": "

    The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.

    ", - "SendRawEmailRequest$Destinations": "

    A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.

    " - } - }, - "AlreadyExistsException": { - "base": "

    Indicates that a resource could not be created due to a naming conflict.

    ", - "refs": { - } - }, - "AmazonResourceName": { - "base": null, - "refs": { - "BounceAction$TopicArn": "

    The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

    ", - "BouncedRecipientInfo$RecipientArn": "

    This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to receive email for the recipient of the bounced email. For more information about sending authorization, see the Amazon SES Developer Guide.

    ", - "InvalidLambdaFunctionException$FunctionArn": null, - "InvalidSnsTopicException$Topic": null, - "LambdaAction$TopicArn": "

    The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

    ", - "LambdaAction$FunctionArn": "

    The Amazon Resource Name (ARN) of the AWS Lambda function. An example of an AWS Lambda function ARN is arn:aws:lambda:us-west-2:account-id:function:MyFunction. For more information about AWS Lambda, see the AWS Lambda Developer Guide.

    ", - "S3Action$TopicArn": "

    The ARN of the Amazon SNS topic to notify when the message is saved to the Amazon S3 bucket. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

    ", - "S3Action$KmsKeyArn": "

    The customer master key that Amazon SES should use to encrypt your emails before saving them to the Amazon S3 bucket. You can use the default master key or a custom master key you created in AWS KMS as follows:

    • To use the default master key, provide an ARN in the form of arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses. For example, if your AWS account ID is 123456789012 and you want to use the default master key in the US West (Oregon) region, the ARN of the default master key would be arn:aws:kms:us-west-2:123456789012:alias/aws/ses. If you use the default master key, you don't need to perform any extra steps to give Amazon SES permission to use the key.
    • To use a custom master key you created in AWS KMS, provide the ARN of the master key and ensure that you add a statement to your key's policy to give Amazon SES permission to use it. For more information about giving permissions, see the Amazon SES Developer Guide.

    For more information about key policies, see the AWS KMS Developer Guide. If you do not specify a master key, Amazon SES will not encrypt your emails.

    Your mail is encrypted by Amazon SES using the Amazon S3 encryption client before the mail is submitted to Amazon S3 for storage. It is not encrypted using Amazon S3 server-side encryption. This means that you must use the Amazon S3 encryption client to decrypt the email after retrieving it from Amazon S3, as the service has no access to use your AWS KMS keys for decryption. This encryption client is currently available with the AWS Java SDK and AWS Ruby SDK only. For more information about client-side encryption using AWS KMS master keys, see the Amazon S3 Developer Guide. ", - "SNSAction$TopicArn": "

    The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

    ", - "SendBounceRequest$BounceSenderArn": "

    This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the \"From\" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.

    ", - "SendEmailRequest$SourceArn": "

    This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter.

    For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com.

    For more information about sending authorization, see the Amazon SES Developer Guide.

    ", - "SendEmailRequest$ReturnPathArn": "

    This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter.

    For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com.

    For more information about sending authorization, see the Amazon SES Developer Guide.

    ", - "SendRawEmailRequest$FromArn": "

    This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to specify a particular \"From\" address in the header of the raw email.

    Instead of using this parameter, you can use the X-header X-SES-FROM-ARN in the raw message of the email. If you use both the FromArn parameter and the corresponding X-header, Amazon SES uses the value of the FromArn parameter.

    For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide. ", - "SendRawEmailRequest$SourceArn": "

    This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter.

    For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com.

    Instead of using this parameter, you can use the X-header X-SES-SOURCE-ARN in the raw message of the email. If you use both the SourceArn parameter and the corresponding X-header, Amazon SES uses the value of the SourceArn parameter.

    For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide. ", - "SendRawEmailRequest$ReturnPathArn": "

    This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter.

    For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com.

    Instead of using this parameter, you can use the X-header X-SES-RETURN-PATH-ARN in the raw message of the email. If you use both the ReturnPathArn parameter and the corresponding X-header, Amazon SES uses the value of the ReturnPathArn parameter.

    For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide. ", - "StopAction$TopicArn": "

    The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

    ", - "WorkmailAction$TopicArn": "

    The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the WorkMail action is called. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

    ", - "WorkmailAction$OrganizationArn": "

    The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail organization ARN is arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7. For information about Amazon WorkMail organizations, see the Amazon WorkMail Administrator Guide.

    " - } - }, - "ArrivalDate": { - "base": null, - "refs": { - "MessageDsn$ArrivalDate": "

    When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.

    " - } - }, - "BehaviorOnMXFailure": { - "base": null, - "refs": { - "IdentityMailFromDomainAttributes$BehaviorOnMXFailure": "

    The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A value of UseDefaultValue indicates that if Amazon SES cannot read the required MX record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of RejectMessage indicates that if Amazon SES cannot read the required MX record, Amazon SES returns a MailFromDomainNotVerified error and does not send the email.

    The custom MAIL FROM setup states that result in this behavior are Pending, Failed, and TemporaryFailure.

    ", - "SetIdentityMailFromDomainRequest$BehaviorOnMXFailure": "

    The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose UseDefaultValue, Amazon SES will use amazonses.com (or a subdomain of that) as the MAIL FROM domain. If you choose RejectMessage, Amazon SES will return a MailFromDomainNotVerified error and not send the email.

    The action specified in BehaviorOnMXFailure is taken when the custom MAIL FROM domain setup is in the Pending, Failed, and TemporaryFailure states.

    " - } - }, - "Body": { - "base": "

    Represents the body of the message. You can specify text, HTML, or both. If you use both, then the message should display correctly in the widest variety of email clients.

    ", - "refs": { - "Message$Body": "

    The message body.

    " - } - }, - "BounceAction": { - "base": "

    When included in a receipt rule, this action rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

    For information about sending a bounce message in response to a received email, see the Amazon SES Developer Guide.

    ", - "refs": { - "ReceiptAction$BounceAction": "

    Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

    " - } - }, - "BounceMessage": { - "base": null, - "refs": { - "BounceAction$Message": "

    Human-readable text to include in the bounce message.

    " - } - }, - "BounceSmtpReplyCode": { - "base": null, - "refs": { - "BounceAction$SmtpReplyCode": "

    The SMTP reply code, as defined by RFC 5321.

    " - } - }, - "BounceStatusCode": { - "base": null, - "refs": { - "BounceAction$StatusCode": "

    The SMTP enhanced status code, as defined by RFC 3463.

    " - } - }, - "BounceType": { - "base": null, - "refs": { - "BouncedRecipientInfo$BounceType": "

    The reason for the bounce. You must provide either this parameter or RecipientDsnFields.

    " - } - }, - "BouncedRecipientInfo": { - "base": "

    Recipient-related information to include in the Delivery Status Notification (DSN) when an email that Amazon SES receives on your behalf bounces.

    For information about receiving email through Amazon SES, see the Amazon SES Developer Guide.

    ", - "refs": { - "BouncedRecipientInfoList$member": null - } - }, - "BouncedRecipientInfoList": { - "base": null, - "refs": { - "SendBounceRequest$BouncedRecipientInfoList": "

    A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.

    " - } - }, - "CannotDeleteException": { - "base": "

    Indicates that the delete operation could not be completed.

    ", - "refs": { - } - }, - "Charset": { - "base": null, - "refs": { - "Content$Charset": "

    The character set of the content.

    " - } - }, - "Cidr": { - "base": null, - "refs": { - "ReceiptIpFilter$Cidr": "

    A single IP address or a range of IP addresses that you want to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation. An example of a single email address is 10.0.0.1. An example of a range of IP addresses is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317.

    " - } - }, - "CloneReceiptRuleSetRequest": { - "base": null, - "refs": { - } - }, - "CloneReceiptRuleSetResponse": { - "base": null, - "refs": { - } - }, - "Content": { - "base": "

    Represents textual data, plus an optional character set specification.

    By default, the text must be 7-bit ASCII, due to the constraints of the SMTP protocol. If the text must contain any other characters, then you must also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.

    ", - "refs": { - "Body$Text": "

    The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).

    ", - "Body$Html": "

    The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.

    ", - "Message$Subject": "

    The subject of the message: A short summary of the content, which will appear in the recipient's inbox.

    " - } - }, - "Counter": { - "base": null, - "refs": { - "SendDataPoint$DeliveryAttempts": "

    Number of emails that have been enqueued for sending.

    ", - "SendDataPoint$Bounces": "

    Number of emails that have bounced.

    ", - "SendDataPoint$Complaints": "

    Number of unwanted emails that were rejected by recipients.

    ", - "SendDataPoint$Rejects": "

    Number of emails rejected by Amazon SES.

    " - } - }, - "CreateReceiptFilterRequest": { - "base": null, - "refs": { - } - }, - "CreateReceiptFilterResponse": { - "base": null, - "refs": { - } - }, - "CreateReceiptRuleRequest": { - "base": null, - "refs": { - } - }, - "CreateReceiptRuleResponse": { - "base": null, - "refs": { - } - }, - "CreateReceiptRuleSetRequest": { - "base": null, - "refs": { - } - }, - "CreateReceiptRuleSetResponse": { - "base": null, - "refs": { - } - }, - "CustomMailFromStatus": { - "base": null, - "refs": { - "IdentityMailFromDomainAttributes$MailFromDomainStatus": "

    The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM domain setup. If the state is Success, Amazon SES uses the specified custom MAIL FROM domain when the verified identity sends an email. All other states indicate that Amazon SES takes the action described by BehaviorOnMXFailure.

    " - } - }, - "DeleteIdentityPolicyRequest": { - "base": null, - "refs": { - } - }, - "DeleteIdentityPolicyResponse": { - "base": null, - "refs": { - } - }, - "DeleteIdentityRequest": { - "base": null, - "refs": { - } - }, - "DeleteIdentityResponse": { - "base": null, - "refs": { - } - }, - "DeleteReceiptFilterRequest": { - "base": null, - "refs": { - } - }, - "DeleteReceiptFilterResponse": { - "base": null, - "refs": { - } - }, - "DeleteReceiptRuleRequest": { - "base": null, - "refs": { - } - }, - "DeleteReceiptRuleResponse": { - "base": null, - "refs": { - } - }, - "DeleteReceiptRuleSetRequest": { - "base": null, - "refs": { - } - }, - "DeleteReceiptRuleSetResponse": { - "base": null, - "refs": { - } - }, - "DeleteVerifiedEmailAddressRequest": { - "base": null, - "refs": { - } - }, - "DescribeActiveReceiptRuleSetRequest": { - "base": null, - "refs": { - } - }, - "DescribeActiveReceiptRuleSetResponse": { - "base": null, - "refs": { - } - }, - "DescribeReceiptRuleRequest": { - "base": null, - "refs": { - } - }, - "DescribeReceiptRuleResponse": { - "base": null, - "refs": { - } - }, - "DescribeReceiptRuleSetRequest": { - "base": null, - "refs": { - } - }, - "DescribeReceiptRuleSetResponse": { - "base": null, - "refs": { - } - }, - "Destination": { - "base": "

    Represents the destination of the message, consisting of To:, CC:, and BCC: fields.

    By default, the string must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. For more information, see RFC 2047.

    ", - "refs": { - "SendEmailRequest$Destination": "

    The destination for this email, composed of To:, CC:, and BCC: fields.

    " - } - }, - "DiagnosticCode": { - "base": null, - "refs": { - "RecipientDsnFields$DiagnosticCode": "

    An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.

    " - } - }, - "DkimAttributes": { - "base": null, - "refs": { - "GetIdentityDkimAttributesResponse$DkimAttributes": "

    The DKIM attributes for an email address or a domain.

    " - } - }, - "Domain": { - "base": null, - "refs": { - "VerifyDomainDkimRequest$Domain": "

    The name of the domain to be verified for Easy DKIM signing.

    ", - "VerifyDomainIdentityRequest$Domain": "

    The domain to be verified.

    " - } - }, - "DsnAction": { - "base": null, - "refs": { - "RecipientDsnFields$Action": "

    The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.

    " - } - }, - "DsnStatus": { - "base": null, - "refs": { - "RecipientDsnFields$Status": "

    The status code that indicates what went wrong. This is required by RFC 3464.

    " - } - }, - "Enabled": { - "base": null, - "refs": { - "IdentityDkimAttributes$DkimEnabled": "

    True if DKIM signing is enabled for email sent from the identity; false otherwise.

    ", - "IdentityNotificationAttributes$ForwardingEnabled": "

    Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.

    ", - "ReceiptRule$Enabled": "

    If true, the receipt rule is active. The default value is false.

    ", - "ReceiptRule$ScanEnabled": "

    If true, then messages to which this receipt rule applies are scanned for spam and viruses. The default value is false.

    ", - "SetIdentityDkimEnabledRequest$DkimEnabled": "

    Sets whether DKIM signing is enabled for an identity. Set to true to enable DKIM signing for this identity; false to disable it.

    ", - "SetIdentityFeedbackForwardingEnabledRequest$ForwardingEnabled": "

    Sets whether Amazon SES will forward bounce and complaint notifications as email. true specifies that Amazon SES will forward bounce and complaint notifications as email, in addition to any Amazon SNS topic publishing otherwise specified. false specifies that Amazon SES will publish bounce and complaint notifications only through Amazon SNS. This value can only be set to false when Amazon SNS topics are set for both Bounce and Complaint notification types.

    " - } - }, - "Explanation": { - "base": null, - "refs": { - "SendBounceRequest$Explanation": "

    Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.

    " - } - }, - "ExtensionField": { - "base": "

    Additional X-headers to include in the Delivery Status Notification (DSN) when an email that Amazon SES receives on your behalf bounces.

    For information about receiving email through Amazon SES, see the Amazon SES Developer Guide.

    ", - "refs": { - "ExtensionFieldList$member": null - } - }, - "ExtensionFieldList": { - "base": null, - "refs": { - "MessageDsn$ExtensionFields": "

    Additional X-headers to include in the DSN.

    ", - "RecipientDsnFields$ExtensionFields": "

    Additional X-headers to include in the DSN.

    " - } - }, - "ExtensionFieldName": { - "base": null, - "refs": { - "ExtensionField$Name": "

    The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.

    " - } - }, - "ExtensionFieldValue": { - "base": null, - "refs": { - "ExtensionField$Value": "

    The value of the header to add. Must be less than 2048 characters, and must not contain newline characters (\"\\r\" or \"\\n\").

    " - } - }, - "GetIdentityDkimAttributesRequest": { - "base": null, - "refs": { - } - }, - "GetIdentityDkimAttributesResponse": { - "base": null, - "refs": { - } - }, - "GetIdentityMailFromDomainAttributesRequest": { - "base": null, - "refs": { - } - }, - "GetIdentityMailFromDomainAttributesResponse": { - "base": null, - "refs": { - } - }, - "GetIdentityNotificationAttributesRequest": { - "base": null, - "refs": { - } - }, - "GetIdentityNotificationAttributesResponse": { - "base": null, - "refs": { - } - }, - "GetIdentityPoliciesRequest": { - "base": null, - "refs": { - } - }, - "GetIdentityPoliciesResponse": { - "base": null, - "refs": { - } - }, - "GetIdentityVerificationAttributesRequest": { - "base": null, - "refs": { - } - }, - "GetIdentityVerificationAttributesResponse": { - "base": null, - "refs": { - } - }, - "GetSendQuotaResponse": { - "base": null, - "refs": { - } - }, - "GetSendStatisticsResponse": { - "base": null, - "refs": { - } - }, - "HeaderName": { - "base": null, - "refs": { - "AddHeaderAction$HeaderName": "

    The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.

    " - } - }, - "HeaderValue": { - "base": null, - "refs": { - "AddHeaderAction$HeaderValue": "

    Must be less than 2048 characters, and must not contain newline characters (\"\\r\" or \"\\n\").

    " - } - }, - "Identity": { - "base": null, - "refs": { - "DeleteIdentityPolicyRequest$Identity": "

    The identity that is associated with the policy that you want to delete. You can specify the identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

    To successfully call this API, you must own the identity.

    ", - "DeleteIdentityRequest$Identity": "

    The identity to be removed from the list of identities for the AWS Account.

    ", - "DkimAttributes$key": null, - "GetIdentityPoliciesRequest$Identity": "

    The identity for which the policies will be retrieved. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

    To successfully call this API, you must own the identity.

    ", - "IdentityList$member": null, - "ListIdentityPoliciesRequest$Identity": "

    The identity that is associated with the policy for which the policies will be listed. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

    To successfully call this API, you must own the identity.

    ", - "MailFromDomainAttributes$key": null, - "NotificationAttributes$key": null, - "PutIdentityPolicyRequest$Identity": "

    The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

    To successfully call this API, you must own the identity.

    ", - "SetIdentityDkimEnabledRequest$Identity": "

    The identity for which DKIM signing should be enabled or disabled.

    ", - "SetIdentityFeedbackForwardingEnabledRequest$Identity": "

    The identity for which to set bounce and complaint notification forwarding. Examples: user@example.com, example.com.

    ", - "SetIdentityMailFromDomainRequest$Identity": "

    The verified identity for which you want to enable or disable the specified custom MAIL FROM domain.

    ", - "SetIdentityNotificationTopicRequest$Identity": "

    The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

    ", - "VerificationAttributes$key": null - } - }, - "IdentityDkimAttributes": { - "base": "

    Represents the DKIM attributes of a verified email address or a domain.

    ", - "refs": { - "DkimAttributes$value": null - } - }, - "IdentityList": { - "base": null, - "refs": { - "GetIdentityDkimAttributesRequest$Identities": "

    A list of one or more verified identities - email addresses, domains, or both.

    ", - "GetIdentityMailFromDomainAttributesRequest$Identities": "

    A list of one or more identities.

    ", - "GetIdentityNotificationAttributesRequest$Identities": "

    A list of one or more identities. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

    ", - "GetIdentityVerificationAttributesRequest$Identities": "

    A list of identities.

    ", - "ListIdentitiesResponse$Identities": "

    A list of identities.

    " - } - }, - "IdentityMailFromDomainAttributes": { - "base": "

    Represents the custom MAIL FROM domain attributes of a verified identity (email address or domain).

    ", - "refs": { - "MailFromDomainAttributes$value": null - } - }, - "IdentityNotificationAttributes": { - "base": "

    Represents the notification attributes of an identity, including whether an identity has Amazon Simple Notification Service (Amazon SNS) topics set for bounce, complaint, and/or delivery notifications, and whether feedback forwarding is enabled for bounce and complaint notifications.

    ", - "refs": { - "NotificationAttributes$value": null - } - }, - "IdentityType": { - "base": null, - "refs": { - "ListIdentitiesRequest$IdentityType": "

    The type of the identities to list. Possible values are \"EmailAddress\" and \"Domain\". If this parameter is omitted, then all identities will be listed.

    " - } - }, - "IdentityVerificationAttributes": { - "base": "

    Represents the verification attributes of a single identity.

    ", - "refs": { - "VerificationAttributes$value": null - } - }, - "InvalidLambdaFunctionException": { - "base": "

    Indicates that the provided AWS Lambda function is invalid, or that Amazon SES could not execute the provided function, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.

    ", - "refs": { - } - }, - "InvalidPolicyException": { - "base": "

    Indicates that the provided policy is invalid. Check the error stack for more information about what caused the error.

    ", - "refs": { - } - }, - "InvalidS3ConfigurationException": { - "base": "

    Indicates that the provided Amazon S3 bucket or AWS KMS encryption key is invalid, or that Amazon SES could not publish to the bucket, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.

    ", - "refs": { - } - }, - "InvalidSnsTopicException": { - "base": "

    Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES could not publish to the topic, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.

    ", - "refs": { - } - }, - "InvocationType": { - "base": null, - "refs": { - "LambdaAction$InvocationType": "

    The invocation type of the AWS Lambda function. An invocation type of RequestResponse means that the execution of the function will immediately result in a response, and a value of Event means that the function will be invoked asynchronously. The default value is Event. For information about AWS Lambda invocation types, see the AWS Lambda Developer Guide.

    There is a 30-second timeout on RequestResponse invocations. You should use Event invocation in most cases. Use RequestResponse only when you want to make a mail flow decision, such as whether to stop the receipt rule or the receipt rule set." - } - }, - "LambdaAction": { - "base": "

    When included in a receipt rule, this action calls an AWS Lambda function and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

    To enable Amazon SES to call your AWS Lambda function or to publish to an Amazon SNS topic of another account, Amazon SES must have permission to access those resources. For information about giving permissions, see the Amazon SES Developer Guide.

    For information about using AWS Lambda actions in receipt rules, see the Amazon SES Developer Guide.

    ", - "refs": { - "ReceiptAction$LambdaAction": "

    Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.

    " - } - }, - "LastAttemptDate": { - "base": null, - "refs": { - "RecipientDsnFields$LastAttemptDate": "

    The time the final delivery attempt was made, in RFC 822 date-time format.

    " - } - }, - "LimitExceededException": { - "base": "

    Indicates that a resource could not be created due to service limits. For a list of Amazon SES limits, see the Amazon SES Developer Guide.

    ", - "refs": { - } - }, - "ListIdentitiesRequest": { - "base": null, - "refs": { - } - }, - "ListIdentitiesResponse": { - "base": null, - "refs": { - } - }, - "ListIdentityPoliciesRequest": { - "base": null, - "refs": { - } - }, - "ListIdentityPoliciesResponse": { - "base": null, - "refs": { - } - }, - "ListReceiptFiltersRequest": { - "base": null, - "refs": { - } - }, - "ListReceiptFiltersResponse": { - "base": null, - "refs": { - } - }, - "ListReceiptRuleSetsRequest": { - "base": null, - "refs": { - } - }, - "ListReceiptRuleSetsResponse": { - "base": null, - "refs": { - } - }, - "ListVerifiedEmailAddressesResponse": { - "base": null, - "refs": { - } - }, - "MailFromDomainAttributes": { - "base": null, - "refs": { - "GetIdentityMailFromDomainAttributesResponse$MailFromDomainAttributes": "

    A map of identities to custom MAIL FROM attributes.

    " - } - }, - "MailFromDomainName": { - "base": null, - "refs": { - "IdentityMailFromDomainAttributes$MailFromDomain": "

    The custom MAIL FROM domain that the identity is configured to use.

    ", - "SetIdentityMailFromDomainRequest$MailFromDomain": "

    The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not be used in a \"From\" address if the MAIL FROM domain is the destination of email feedback forwarding (for more information, see the Amazon SES Developer Guide), and 3) not be used to receive emails. A value of null disables the custom MAIL FROM setting for the identity.

    " - } - }, - "MailFromDomainNotVerifiedException": { - "base": "

    Indicates that the message could not be sent because Amazon SES could not read the MX record required to use the specified MAIL FROM domain. For information about editing the custom MAIL FROM domain settings for an identity, see the Amazon SES Developer Guide.

    ", - "refs": { - } - }, - "Max24HourSend": { - "base": null, - "refs": { - "GetSendQuotaResponse$Max24HourSend": "

    The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.

    " - } - }, - "MaxItems": { - "base": null, - "refs": { - "ListIdentitiesRequest$MaxItems": "

    The maximum number of identities per page. Possible values are 1-1000 inclusive.

    " - } - }, - "MaxSendRate": { - "base": null, - "refs": { - "GetSendQuotaResponse$MaxSendRate": "

    The maximum number of emails that Amazon SES can accept from the user's account per second.

    The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate." - } - }, - "Message": { - "base": "

    Represents the message to be sent, composed of a subject and a body.

    ", - "refs": { - "SendEmailRequest$Message": "

    The message to be sent.

    " - } - }, - "MessageData": { - "base": null, - "refs": { - "Content$Data": "

    The textual data of the content.

    " - } - }, - "MessageDsn": { - "base": "

    Message-related information to include in the Delivery Status Notification (DSN) when an email that Amazon SES receives on your behalf bounces.

    For information about receiving email through Amazon SES, see the Amazon SES Developer Guide.

    ", - "refs": { - "SendBounceRequest$MessageDsn": "

    Message-related DSN fields. If not specified, Amazon SES will choose the values.

    " - } - }, - "MessageId": { - "base": null, - "refs": { - "SendBounceRequest$OriginalMessageId": "

    The message ID of the message to be bounced.

    ", - "SendBounceResponse$MessageId": "

    The message ID of the bounce message.

    ", - "SendEmailResponse$MessageId": "

    The unique message identifier returned from the SendEmail action.

    ", - "SendRawEmailResponse$MessageId": "

    The unique message identifier returned from the SendRawEmail action.

    " - } - }, - "MessageRejected": { - "base": "

    Indicates that the action failed, and the message could not be sent. Check the error stack for more information about what caused the error.

    ", - "refs": { - } - }, - "NextToken": { - "base": null, - "refs": { - "ListIdentitiesRequest$NextToken": "

    The token to use for pagination.

    ", - "ListIdentitiesResponse$NextToken": "

    The token used for pagination.

    ", - "ListReceiptRuleSetsRequest$NextToken": "

    A token returned from a previous call to ListReceiptRuleSets to indicate the position in the receipt rule set list.

    ", - "ListReceiptRuleSetsResponse$NextToken": "

    A token indicating that there are additional receipt rule sets available to be listed. Pass this token to successive calls of ListReceiptRuleSets to retrieve up to 100 receipt rule sets at a time.

    " - } - }, - "NotificationAttributes": { - "base": null, - "refs": { - "GetIdentityNotificationAttributesResponse$NotificationAttributes": "

    A map of Identity to IdentityNotificationAttributes.

    " - } - }, - "NotificationTopic": { - "base": null, - "refs": { - "IdentityNotificationAttributes$BounceTopic": "

    The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish bounce notifications.

    ", - "IdentityNotificationAttributes$ComplaintTopic": "

    The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish complaint notifications.

    ", - "IdentityNotificationAttributes$DeliveryTopic": "

    The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish delivery notifications.

    ", - "SetIdentityNotificationTopicRequest$SnsTopic": "

    The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, SnsTopic is cleared and publishing is disabled.

    " - } - }, - "NotificationType": { - "base": null, - "refs": { - "SetIdentityNotificationTopicRequest$NotificationType": "

    The type of notifications that will be published to the specified Amazon SNS topic.

    " - } - }, - "Policy": { - "base": null, - "refs": { - "PolicyMap$value": null, - "PutIdentityPolicyRequest$Policy": "

    The text of the policy in JSON format. The policy cannot exceed 4 KB.

    For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

    " - } - }, - "PolicyMap": { - "base": null, - "refs": { - "GetIdentityPoliciesResponse$Policies": "

    A map of policy names to policies.

    " - } - }, - "PolicyName": { - "base": null, - "refs": { - "DeleteIdentityPolicyRequest$PolicyName": "

    The name of the policy to be deleted.

    ", - "PolicyMap$key": null, - "PolicyNameList$member": null, - "PutIdentityPolicyRequest$PolicyName": "

    The name of the policy.

    The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

    " - } - }, - "PolicyNameList": { - "base": null, - "refs": { - "GetIdentityPoliciesRequest$PolicyNames": "

    A list of the names of policies to be retrieved. You can retrieve a maximum of 20 policies at a time. If you do not know the names of the policies that are attached to the identity, you can use ListIdentityPolicies.

    ", - "ListIdentityPoliciesResponse$PolicyNames": "

    A list of names of policies that apply to the specified identity.

    " - } - }, - "PutIdentityPolicyRequest": { - "base": null, - "refs": { - } - }, - "PutIdentityPolicyResponse": { - "base": null, - "refs": { - } - }, - "RawMessage": { - "base": "

    Represents the raw data of the message.

    ", - "refs": { - "SendRawEmailRequest$RawMessage": "

    The raw text of the message. The client is responsible for ensuring the following:

    • Message must contain a header and a body, separated by a blank line.
    • All required header fields must be present.
    • Each part of a multipart MIME message must be formatted properly.
    • MIME content types must be among those supported by Amazon SES. For more information, go to the Amazon SES Developer Guide.
    • Content must be base64-encoded, if MIME requires it.

    " - } - }, - "RawMessageData": { - "base": null, - "refs": { - "RawMessage$Data": "

    The raw data of the message. The client must ensure that the message format complies with Internet email standards regarding email header fields, MIME types, MIME encoding, and base64 encoding (if necessary).

    The To:, CC:, and BCC: headers in the raw message can contain a group list.

    If you are using SendRawEmail with sending authorization, you can include X-headers in the raw message to specify the \"Source,\" \"From,\" and \"Return-Path\" addresses. For more information, see the documentation for SendRawEmail.

    Do not include these X-headers in the DKIM signature, because they are removed by Amazon SES before sending the email.

    For more information, go to the Amazon SES Developer Guide.

    " - } - }, - "ReceiptAction": { - "base": "

    An action that Amazon SES can take when it receives an email on behalf of one or more email addresses or domains that you own. An instance of this data type can represent only one action.

    For information about setting up receipt rules, see the Amazon SES Developer Guide.

    ", - "refs": { - "ReceiptActionsList$member": null - } - }, - "ReceiptActionsList": { - "base": null, - "refs": { - "ReceiptRule$Actions": "

    An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.

    " - } - }, - "ReceiptFilter": { - "base": "

    A receipt IP address filter enables you to specify whether to accept or reject mail originating from an IP address or range of IP addresses.

    For information about setting up IP address filters, see the Amazon SES Developer Guide.

    ", - "refs": { - "CreateReceiptFilterRequest$Filter": "

    A data structure that describes the IP address filter to create, which consists of a name, an IP address range, and whether to allow or block mail from it.

    ", - "ReceiptFilterList$member": null - } - }, - "ReceiptFilterList": { - "base": null, - "refs": { - "ListReceiptFiltersResponse$Filters": "

    A list of IP address filter data structures, which each consist of a name, an IP address range, and whether to allow or block mail from it.

    " - } - }, - "ReceiptFilterName": { - "base": null, - "refs": { - "DeleteReceiptFilterRequest$FilterName": "

    The name of the IP address filter to delete.

    ", - "ReceiptFilter$Name": "

    The name of the IP address filter. The name must:

    • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-).
    • Start and end with a letter or number.
    • Contain less than 64 characters.
    " - } - }, - "ReceiptFilterPolicy": { - "base": null, - "refs": { - "ReceiptIpFilter$Policy": "

    Indicates whether to block or allow incoming mail from the specified IP addresses.

    " - } - }, - "ReceiptIpFilter": { - "base": "

    A receipt IP address filter enables you to specify whether to accept or reject mail originating from an IP address or range of IP addresses.

    For information about setting up IP address filters, see the Amazon SES Developer Guide.

    ", - "refs": { - "ReceiptFilter$IpFilter": "

    A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.

    " - } - }, - "ReceiptRule": { - "base": "

    Receipt rules enable you to specify which actions Amazon SES should take when it receives mail on behalf of one or more email addresses or domains that you own.

    Each receipt rule defines a set of email addresses or domains to which it applies. If the email addresses or domains match at least one recipient address of the message, Amazon SES executes all of the receipt rule's actions on the message.

    For information about setting up receipt rules, see the Amazon SES Developer Guide.

    ", - "refs": { - "CreateReceiptRuleRequest$Rule": "

    A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.

    ", - "DescribeReceiptRuleResponse$Rule": "

    A data structure that contains the specified receipt rule's name, actions, recipients, domains, enabled status, scan status, and Transport Layer Security (TLS) policy.

    ", - "ReceiptRulesList$member": null, - "UpdateReceiptRuleRequest$Rule": "

    A data structure that contains the updated receipt rule information.

    " - } - }, - "ReceiptRuleName": { - "base": null, - "refs": { - "CreateReceiptRuleRequest$After": "

    The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.

    ", - "DeleteReceiptRuleRequest$RuleName": "

    The name of the receipt rule to delete.

    ", - "DescribeReceiptRuleRequest$RuleName": "

    The name of the receipt rule.

    ", - "ReceiptRule$Name": "

    The name of the receipt rule. The name must:

    • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-).
    • Start and end with a letter or number.
    • Contain less than 64 characters.
    ", - "ReceiptRuleNamesList$member": null, - "SetReceiptRulePositionRequest$RuleName": "

    The name of the receipt rule to reposition.

    ", - "SetReceiptRulePositionRequest$After": "

    The name of the receipt rule after which to place the specified receipt rule.

    " - } - }, - "ReceiptRuleNamesList": { - "base": null, - "refs": { - "ReorderReceiptRuleSetRequest$RuleNames": "

    A list of the specified receipt rule set's receipt rules in the order that you want to put them.

    " - } - }, - "ReceiptRuleSetMetadata": { - "base": "

    Information about a receipt rule set.

    A receipt rule set is a collection of rules that specify what Amazon SES should do with mail it receives on behalf of your account's verified domains.

    For information about setting up receipt rule sets, see the Amazon SES Developer Guide.

    ", - "refs": { - "DescribeActiveReceiptRuleSetResponse$Metadata": "

    The metadata for the currently active receipt rule set. The metadata consists of the rule set name and a timestamp of when the rule set was created.

    ", - "DescribeReceiptRuleSetResponse$Metadata": "

    The metadata for the receipt rule set, which consists of the rule set name and the timestamp of when the rule set was created.

    ", - "ReceiptRuleSetsLists$member": null - } - }, - "ReceiptRuleSetName": { - "base": null, - "refs": { - "CloneReceiptRuleSetRequest$RuleSetName": "

    The name of the rule set to create. The name must:

    • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-).
    • Start and end with a letter or number.
    • Contain less than 64 characters.
    ", - "CloneReceiptRuleSetRequest$OriginalRuleSetName": "

    The name of the rule set to clone.

    ", - "CreateReceiptRuleRequest$RuleSetName": "

    The name of the rule set to which to add the rule.

    ", - "CreateReceiptRuleSetRequest$RuleSetName": "

    The name of the rule set to create. The name must:

    • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-).
    • Start and end with a letter or number.
    • Contain less than 64 characters.
    ", - "DeleteReceiptRuleRequest$RuleSetName": "

    The name of the receipt rule set that contains the receipt rule to delete.

    ", - "DeleteReceiptRuleSetRequest$RuleSetName": "

    The name of the receipt rule set to delete.

    ", - "DescribeReceiptRuleRequest$RuleSetName": "

    The name of the receipt rule set to which the receipt rule belongs.

    ", - "DescribeReceiptRuleSetRequest$RuleSetName": "

    The name of the receipt rule set to describe.

    ", - "ReceiptRuleSetMetadata$Name": "

    The name of the receipt rule set. The name must:

    • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-).
    • Start and end with a letter or number.
    • Contain less than 64 characters.
    ", - "ReorderReceiptRuleSetRequest$RuleSetName": "

    The name of the receipt rule set to reorder.

    ", - "SetActiveReceiptRuleSetRequest$RuleSetName": "

    The name of the receipt rule set to make active. Setting this value to null disables all email receiving.

    ", - "SetReceiptRulePositionRequest$RuleSetName": "

    The name of the receipt rule set that contains the receipt rule to reposition.

    ", - "UpdateReceiptRuleRequest$RuleSetName": "

    The name of the receipt rule set to which the receipt rule belongs.

    " - } - }, - "ReceiptRuleSetsLists": { - "base": null, - "refs": { - "ListReceiptRuleSetsResponse$RuleSets": "

    The metadata for the currently active receipt rule set. The metadata consists of the rule set name and the timestamp of when the rule set was created.

    " - } - }, - "ReceiptRulesList": { - "base": null, - "refs": { - "DescribeActiveReceiptRuleSetResponse$Rules": "

    The receipt rules that belong to the active rule set.

    ", - "DescribeReceiptRuleSetResponse$Rules": "

    A list of the receipt rules that belong to the specified receipt rule set.

    " - } - }, - "Recipient": { - "base": null, - "refs": { - "RecipientsList$member": null - } - }, - "RecipientDsnFields": { - "base": "

    Recipient-related information to include in the Delivery Status Notification (DSN) when an email that Amazon SES receives on your behalf bounces.

    For information about receiving email through Amazon SES, see the Amazon SES Developer Guide.

    ", - "refs": { - "BouncedRecipientInfo$RecipientDsnFields": "

    Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a BounceType. You must provide either this parameter or BounceType.

    " - } - }, - "RecipientsList": { - "base": null, - "refs": { - "ReceiptRule$Recipients": "

    The recipient domains and email addresses to which the receipt rule applies. If this field is not specified, this rule will match all recipients under all verified domains.

    " - } - }, - "RemoteMta": { - "base": null, - "refs": { - "RecipientDsnFields$RemoteMta": "

    The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). This parameter typically applies only to propagating synchronous bounces.

    " - } - }, - "ReorderReceiptRuleSetRequest": { - "base": null, - "refs": { - } - }, - "ReorderReceiptRuleSetResponse": { - "base": null, - "refs": { - } - }, - "ReportingMta": { - "base": null, - "refs": { - "MessageDsn$ReportingMta": "

    The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). The default value is dns; inbound-smtp.[region].amazonaws.com.

    " - } - }, - "RuleDoesNotExistException": { - "base": "

    Indicates that the provided receipt rule does not exist.

    ", - "refs": { - } - }, - "RuleOrRuleSetName": { - "base": null, - "refs": { - "AlreadyExistsException$Name": null, - "CannotDeleteException$Name": null, - "RuleDoesNotExistException$Name": null, - "RuleSetDoesNotExistException$Name": null - } - }, - "RuleSetDoesNotExistException": { - "base": "

    Indicates that the provided receipt rule set does not exist.

    ", - "refs": { - } - }, - "S3Action": { - "base": "

    When included in a receipt rule, this action saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

    To enable Amazon SES to write emails to your Amazon S3 bucket, use an AWS KMS key to encrypt your emails, or publish to an Amazon SNS topic of another account, Amazon SES must have permission to access those resources. For information about giving permissions, see the Amazon SES Developer Guide.

    When you save your emails to an Amazon S3 bucket, the maximum email size (including headers) is 30 MB. Emails larger than that will bounce.

    For information about specifying Amazon S3 actions in receipt rules, see the Amazon SES Developer Guide.

    ", - "refs": { - "ReceiptAction$S3Action": "

    Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.

    " - } - }, - "S3BucketName": { - "base": null, - "refs": { - "InvalidS3ConfigurationException$Bucket": null, - "S3Action$BucketName": "

    The name of the Amazon S3 bucket to which to save the received email.

    " - } - }, - "S3KeyPrefix": { - "base": null, - "refs": { - "S3Action$ObjectKeyPrefix": "

    The key prefix of the Amazon S3 bucket. The key prefix is similar to a directory name that enables you to store similar data under the same directory in a bucket.

    " - } - }, - "SNSAction": { - "base": "

    When included in a receipt rule, this action publishes a notification to Amazon Simple Notification Service (Amazon SNS). This action includes a complete copy of the email content in the Amazon SNS notifications. Amazon SNS notifications for all other actions simply provide information about the email. They do not include the email content itself.

    If you own the Amazon SNS topic, you don't need to do anything to give Amazon SES permission to publish emails to it. However, if you don't own the Amazon SNS topic, you need to attach a policy to the topic to give Amazon SES permissions to access it. For information about giving permissions, see the Amazon SES Developer Guide.

    You can only publish emails that are 150 KB or less (including the header) to Amazon SNS. Larger emails will bounce. If you anticipate emails larger than 150 KB, use the S3 action instead.

    For information about using a receipt rule to publish an Amazon SNS notification, see the Amazon SES Developer Guide.

    ", - "refs": { - "ReceiptAction$SNSAction": "

    Publishes the email content within a notification to Amazon SNS.

    " - } - }, - "SNSActionEncoding": { - "base": null, - "refs": { - "SNSAction$Encoding": "

    The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not preserve all special characters when a message was encoded with a different encoding format. Base64 preserves all special characters. The default value is UTF-8.

    " - } - }, - "SendBounceRequest": { - "base": null, - "refs": { - } - }, - "SendBounceResponse": { - "base": null, - "refs": { - } - }, - "SendDataPoint": { - "base": "

    Represents sending statistics data. Each SendDataPoint contains statistics for a 15-minute period of sending activity.

    ", - "refs": { - "SendDataPointList$member": null - } - }, - "SendDataPointList": { - "base": null, - "refs": { - "GetSendStatisticsResponse$SendDataPoints": "

    A list of data points, each of which represents 15 minutes of activity.

    " - } - }, - "SendEmailRequest": { - "base": null, - "refs": { - } - }, - "SendEmailResponse": { - "base": null, - "refs": { - } - }, - "SendRawEmailRequest": { - "base": null, - "refs": { - } - }, - "SendRawEmailResponse": { - "base": null, - "refs": { - } - }, - "SentLast24Hours": { - "base": null, - "refs": { - "GetSendQuotaResponse$SentLast24Hours": "

    The number of emails sent during the previous 24 hours.

    " - } - }, - "SetActiveReceiptRuleSetRequest": { - "base": null, - "refs": { - } - }, - "SetActiveReceiptRuleSetResponse": { - "base": null, - "refs": { - } - }, - "SetIdentityDkimEnabledRequest": { - "base": null, - "refs": { - } - }, - "SetIdentityDkimEnabledResponse": { - "base": null, - "refs": { - } - }, - "SetIdentityFeedbackForwardingEnabledRequest": { - "base": null, - "refs": { - } - }, - "SetIdentityFeedbackForwardingEnabledResponse": { - "base": null, - "refs": { - } - }, - "SetIdentityMailFromDomainRequest": { - "base": null, - "refs": { - } - }, - "SetIdentityMailFromDomainResponse": { - "base": null, - "refs": { - } - }, - "SetIdentityNotificationTopicRequest": { - "base": null, - "refs": { - } - }, - "SetIdentityNotificationTopicResponse": { - "base": null, - "refs": { - } - }, - "SetReceiptRulePositionRequest": { - "base": null, - "refs": { - } - }, - "SetReceiptRulePositionResponse": { - "base": null, - "refs": { - } - }, - "StopAction": { - "base": "

    When included in a receipt rule, this action terminates the evaluation of the receipt rule set and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

    For information about setting a stop action in a receipt rule, see the Amazon SES Developer Guide.

    ", - "refs": { - "ReceiptAction$StopAction": "

    Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.

    " - } - }, - "StopScope": { - "base": null, - "refs": { - "StopAction$Scope": "

    The scope to which the Stop action applies. That is, what is being stopped.

    " - } - }, - "Timestamp": { - "base": null, - "refs": { - "ReceiptRuleSetMetadata$CreatedTimestamp": "

    The date and time the receipt rule set was created.

    ", - "SendDataPoint$Timestamp": "

    Time of the data point.

    " - } - }, - "TlsPolicy": { - "base": null, - "refs": { - "ReceiptRule$TlsPolicy": "

    Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set to Require, Amazon SES will bounce emails that are not received over TLS. The default is Optional.

    " - } - }, - "UpdateReceiptRuleRequest": { - "base": null, - "refs": { - } - }, - "UpdateReceiptRuleResponse": { - "base": null, - "refs": { - } - }, - "VerificationAttributes": { - "base": null, - "refs": { - "GetIdentityVerificationAttributesResponse$VerificationAttributes": "

    A map of Identities to IdentityVerificationAttributes objects.

    " - } - }, - "VerificationStatus": { - "base": null, - "refs": { - "IdentityDkimAttributes$DkimVerificationStatus": "

    Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)

    ", - "IdentityVerificationAttributes$VerificationStatus": "

    The verification status of the identity: \"Pending\", \"Success\", \"Failed\", or \"TemporaryFailure\".

    " - } - }, - "VerificationToken": { - "base": null, - "refs": { - "IdentityVerificationAttributes$VerificationToken": "

    The verification token for a domain identity. Null for email address identities.

    ", - "VerificationTokenList$member": null, - "VerifyDomainIdentityResponse$VerificationToken": "

    A TXT record that must be placed in the DNS settings for the domain, in order to complete domain verification.

    " - } - }, - "VerificationTokenList": { - "base": null, - "refs": { - "IdentityDkimAttributes$DkimTokens": "

    A set of character strings that represent the domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)

    For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

    ", - "VerifyDomainDkimResponse$DkimTokens": "

    A set of character strings that represent the domain's identity. If the identity is an email address, the tokens represent the domain of that address.

    Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign emails originating from that domain.

    For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

    " - } - }, - "VerifyDomainDkimRequest": { - "base": null, - "refs": { - } - }, - "VerifyDomainDkimResponse": { - "base": null, - "refs": { - } - }, - "VerifyDomainIdentityRequest": { - "base": null, - "refs": { - } - }, - "VerifyDomainIdentityResponse": { - "base": null, - "refs": { - } - }, - "VerifyEmailAddressRequest": { - "base": null, - "refs": { - } - }, - "VerifyEmailIdentityRequest": { - "base": null, - "refs": { - } - }, - "VerifyEmailIdentityResponse": { - "base": null, - "refs": { - } - }, - "WorkmailAction": { - "base": "

    When included in a receipt rule, this action calls Amazon WorkMail and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS). You will typically not use this action directly because Amazon WorkMail adds the rule automatically during its setup procedure.

    For information using a receipt rule to call Amazon WorkMail, see the Amazon SES Developer Guide.

    ", - "refs": { - "ReceiptAction$WorkmailAction": "

    Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json deleted file mode 100644 index 9154cb8a5..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/api-2.json +++ /dev/null @@ -1,764 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-01-01", - "endpointPrefix":"es", - "serviceFullName":"Amazon Elasticsearch Service", - "signatureVersion":"v4", - "protocol":"rest-json" - }, - "operations":{ - "AddTags":{ - "name":"AddTags", - "http":{ - "method":"POST", - "requestUri":"/2015-01-01/tags" - }, - "input":{"shape":"AddTagsRequest"}, - "errors":[ - { - "shape":"BaseException", - "exception":true - }, - { - "shape":"LimitExceededException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ValidationException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true - } - ] - }, - "CreateElasticsearchDomain":{ - "name":"CreateElasticsearchDomain", - "http":{ - "method":"POST", - "requestUri":"/2015-01-01/es/domain" - }, - "input":{"shape":"CreateElasticsearchDomainRequest"}, - "output":{"shape":"CreateElasticsearchDomainResponse"}, - "errors":[ - { - "shape":"BaseException", - "exception":true - }, - { - "shape":"DisabledOperationException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true - }, - { - "shape":"InvalidTypeException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"LimitExceededException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ResourceAlreadyExistsException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ValidationException", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "DeleteElasticsearchDomain":{ - "name":"DeleteElasticsearchDomain", - "http":{ - "method":"DELETE", - "requestUri":"/2015-01-01/es/domain/{DomainName}" - }, - "input":{"shape":"DeleteElasticsearchDomainRequest"}, - "output":{"shape":"DeleteElasticsearchDomainResponse"}, - "errors":[ - { - "shape":"BaseException", - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ValidationException", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "DescribeElasticsearchDomain":{ - "name":"DescribeElasticsearchDomain", - "http":{ - "method":"GET", - "requestUri":"/2015-01-01/es/domain/{DomainName}" - }, - "input":{"shape":"DescribeElasticsearchDomainRequest"}, - "output":{"shape":"DescribeElasticsearchDomainResponse"}, - "errors":[ - { - "shape":"BaseException", - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ValidationException", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "DescribeElasticsearchDomainConfig":{ - "name":"DescribeElasticsearchDomainConfig", - "http":{ - "method":"GET", - "requestUri":"/2015-01-01/es/domain/{DomainName}/config" - }, - "input":{"shape":"DescribeElasticsearchDomainConfigRequest"}, - "output":{"shape":"DescribeElasticsearchDomainConfigResponse"}, - "errors":[ - { - "shape":"BaseException", - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ValidationException", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "DescribeElasticsearchDomains":{ - "name":"DescribeElasticsearchDomains", - "http":{ - "method":"POST", - "requestUri":"/2015-01-01/es/domain-info" - }, - "input":{"shape":"DescribeElasticsearchDomainsRequest"}, - "output":{"shape":"DescribeElasticsearchDomainsResponse"}, - "errors":[ - { - "shape":"BaseException", - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true - }, - { - "shape":"ValidationException", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "ListDomainNames":{ - "name":"ListDomainNames", - "http":{ - "method":"GET", - "requestUri":"/2015-01-01/domain" - }, - "output":{"shape":"ListDomainNamesResponse"}, - "errors":[ - { - "shape":"BaseException", - "exception":true - }, - { - "shape":"ValidationException", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - }, - "ListTags":{ - "name":"ListTags", - "http":{ - "method":"GET", - "requestUri":"/2015-01-01/tags/" - }, - "input":{"shape":"ListTagsRequest"}, - "output":{"shape":"ListTagsResponse"}, - "errors":[ - { - "shape":"BaseException", - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ValidationException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true - } - ] - }, - "RemoveTags":{ - "name":"RemoveTags", - "http":{ - "method":"POST", - "requestUri":"/2015-01-01/tags-removal" - }, - "input":{"shape":"RemoveTagsRequest"}, - "errors":[ - { - "shape":"BaseException", - "exception":true - }, - { - "shape":"ValidationException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true - } - ] - }, - "UpdateElasticsearchDomainConfig":{ - "name":"UpdateElasticsearchDomainConfig", - "http":{ - "method":"POST", - "requestUri":"/2015-01-01/es/domain/{DomainName}/config" - }, - "input":{"shape":"UpdateElasticsearchDomainConfigRequest"}, - "output":{"shape":"UpdateElasticsearchDomainConfigResponse"}, - "errors":[ - { - "shape":"BaseException", - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true - }, - { - "shape":"InvalidTypeException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"LimitExceededException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ValidationException", - "error":{"httpStatusCode":400}, - "exception":true - } - ] - } - }, - "shapes":{ - "ARN":{"type":"string"}, - "AccessPoliciesStatus":{ - "type":"structure", - "required":[ - "Options", - "Status" - ], - "members":{ - "Options":{"shape":"PolicyDocument"}, - "Status":{"shape":"OptionStatus"} - } - }, - "AddTagsRequest":{ - "type":"structure", - "required":[ - "ARN", - "TagList" - ], - "members":{ - "ARN":{"shape":"ARN"}, - "TagList":{"shape":"TagList"} - } - }, - "AdvancedOptions":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"} - }, - "AdvancedOptionsStatus":{ - "type":"structure", - "required":[ - "Options", - "Status" - ], - "members":{ - "Options":{"shape":"AdvancedOptions"}, - "Status":{"shape":"OptionStatus"} - } - }, - "BaseException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "Boolean":{"type":"boolean"}, - "CreateElasticsearchDomainRequest":{ - "type":"structure", - "required":["DomainName"], - "members":{ - "DomainName":{"shape":"DomainName"}, - "ElasticsearchClusterConfig":{"shape":"ElasticsearchClusterConfig"}, - "EBSOptions":{"shape":"EBSOptions"}, - "AccessPolicies":{"shape":"PolicyDocument"}, - "SnapshotOptions":{"shape":"SnapshotOptions"}, - "AdvancedOptions":{"shape":"AdvancedOptions"} - } - }, - "CreateElasticsearchDomainResponse":{ - "type":"structure", - "members":{ - "DomainStatus":{"shape":"ElasticsearchDomainStatus"} - } - }, - "DeleteElasticsearchDomainRequest":{ - "type":"structure", - "required":["DomainName"], - "members":{ - "DomainName":{ - "shape":"DomainName", - "location":"uri", - "locationName":"DomainName" - } - } - }, - "DeleteElasticsearchDomainResponse":{ - "type":"structure", - "members":{ - "DomainStatus":{"shape":"ElasticsearchDomainStatus"} - } - }, - "DescribeElasticsearchDomainConfigRequest":{ - "type":"structure", - "required":["DomainName"], - "members":{ - "DomainName":{ - "shape":"DomainName", - "location":"uri", - "locationName":"DomainName" - } - } - }, - "DescribeElasticsearchDomainConfigResponse":{ - "type":"structure", - "required":["DomainConfig"], - "members":{ - "DomainConfig":{"shape":"ElasticsearchDomainConfig"} - } - }, - "DescribeElasticsearchDomainRequest":{ - "type":"structure", - "required":["DomainName"], - "members":{ - "DomainName":{ - "shape":"DomainName", - "location":"uri", - "locationName":"DomainName" - } - } - }, - "DescribeElasticsearchDomainResponse":{ - "type":"structure", - "required":["DomainStatus"], - "members":{ - "DomainStatus":{"shape":"ElasticsearchDomainStatus"} - } - }, - "DescribeElasticsearchDomainsRequest":{ - "type":"structure", - "required":["DomainNames"], - "members":{ - "DomainNames":{"shape":"DomainNameList"} - } - }, - "DescribeElasticsearchDomainsResponse":{ - "type":"structure", - "required":["DomainStatusList"], - "members":{ - "DomainStatusList":{"shape":"ElasticsearchDomainStatusList"} - } - }, - "DisabledOperationException":{ - "type":"structure", - "members":{ - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DomainId":{ - "type":"string", - "min":1, - "max":64 - }, - "DomainInfo":{ - "type":"structure", - "members":{ - "DomainName":{"shape":"DomainName"} - } - }, - "DomainInfoList":{ - "type":"list", - "member":{"shape":"DomainInfo"} - }, - "DomainName":{ - "type":"string", - "min":3, - "max":28, - "pattern":"[a-z][a-z0-9\\-]+" - }, - "DomainNameList":{ - "type":"list", - "member":{"shape":"DomainName"} - }, - "EBSOptions":{ - "type":"structure", - "members":{ - "EBSEnabled":{"shape":"Boolean"}, - "VolumeType":{"shape":"VolumeType"}, - "VolumeSize":{"shape":"IntegerClass"}, - "Iops":{"shape":"IntegerClass"} - } - }, - "EBSOptionsStatus":{ - "type":"structure", - "required":[ - "Options", - "Status" - ], - "members":{ - "Options":{"shape":"EBSOptions"}, - "Status":{"shape":"OptionStatus"} - } - }, - "ESPartitionInstanceType":{ - "type":"string", - "enum":[ - "m3.medium.elasticsearch", - "m3.large.elasticsearch", - "m3.xlarge.elasticsearch", - "m3.2xlarge.elasticsearch", - "t2.micro.elasticsearch", - "t2.small.elasticsearch", - "t2.medium.elasticsearch", - "r3.large.elasticsearch", - "r3.xlarge.elasticsearch", - "r3.2xlarge.elasticsearch", - "r3.4xlarge.elasticsearch", - "r3.8xlarge.elasticsearch", - "i2.xlarge.elasticsearch", - "i2.2xlarge.elasticsearch" - ] - }, - "ElasticsearchClusterConfig":{ - "type":"structure", - "members":{ - "InstanceType":{"shape":"ESPartitionInstanceType"}, - "InstanceCount":{"shape":"IntegerClass"}, - "DedicatedMasterEnabled":{"shape":"Boolean"}, - "ZoneAwarenessEnabled":{"shape":"Boolean"}, - "DedicatedMasterType":{"shape":"ESPartitionInstanceType"}, - "DedicatedMasterCount":{"shape":"IntegerClass"} - } - }, - "ElasticsearchClusterConfigStatus":{ - "type":"structure", - "required":[ - "Options", - "Status" - ], - "members":{ - "Options":{"shape":"ElasticsearchClusterConfig"}, - "Status":{"shape":"OptionStatus"} - } - }, - "ElasticsearchDomainConfig":{ - "type":"structure", - "members":{ - "ElasticsearchClusterConfig":{"shape":"ElasticsearchClusterConfigStatus"}, - "EBSOptions":{"shape":"EBSOptionsStatus"}, - "AccessPolicies":{"shape":"AccessPoliciesStatus"}, - "SnapshotOptions":{"shape":"SnapshotOptionsStatus"}, - "AdvancedOptions":{"shape":"AdvancedOptionsStatus"} - } - }, - "ElasticsearchDomainStatus":{ - "type":"structure", - "required":[ - "DomainId", - "DomainName", - "ARN", - "ElasticsearchClusterConfig" - ], - "members":{ - "DomainId":{"shape":"DomainId"}, - "DomainName":{"shape":"DomainName"}, - "ARN":{"shape":"ARN"}, - "Created":{"shape":"Boolean"}, - "Deleted":{"shape":"Boolean"}, - "Endpoint":{"shape":"ServiceUrl"}, - "Processing":{"shape":"Boolean"}, - "ElasticsearchClusterConfig":{"shape":"ElasticsearchClusterConfig"}, - "EBSOptions":{"shape":"EBSOptions"}, - "AccessPolicies":{"shape":"PolicyDocument"}, - "SnapshotOptions":{"shape":"SnapshotOptions"}, - "AdvancedOptions":{"shape":"AdvancedOptions"} - } - }, - "ElasticsearchDomainStatusList":{ - "type":"list", - "member":{"shape":"ElasticsearchDomainStatus"} - }, - "ErrorMessage":{"type":"string"}, - "IntegerClass":{"type":"integer"}, - "InternalException":{ - "type":"structure", - "members":{ - }, - "error":{"httpStatusCode":500}, - "exception":true - }, - "InvalidTypeException":{ - "type":"structure", - "members":{ - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "ListDomainNamesResponse":{ - "type":"structure", - "members":{ - "DomainNames":{"shape":"DomainInfoList"} - } - }, - "ListTagsRequest":{ - "type":"structure", - "required":["ARN"], - "members":{ - "ARN":{ - "shape":"ARN", - "location":"querystring", - "locationName":"arn" - } - } - }, - "ListTagsResponse":{ - "type":"structure", - "members":{ - "TagList":{"shape":"TagList"} - } - }, - "OptionState":{ - "type":"string", - "enum":[ - "RequiresIndexDocuments", - "Processing", - "Active" - ] - }, - "OptionStatus":{ - "type":"structure", - "required":[ - "CreationDate", - "UpdateDate", - "State" - ], - "members":{ - "CreationDate":{"shape":"UpdateTimestamp"}, - "UpdateDate":{"shape":"UpdateTimestamp"}, - "UpdateVersion":{"shape":"UIntValue"}, - "State":{"shape":"OptionState"}, - "PendingDeletion":{"shape":"Boolean"} - } - }, - "PolicyDocument":{"type":"string"}, - "RemoveTagsRequest":{ - "type":"structure", - "required":[ - "ARN", - "TagKeys" - ], - "members":{ - "ARN":{"shape":"ARN"}, - "TagKeys":{"shape":"StringList"} - } - }, - "ResourceAlreadyExistsException":{ - "type":"structure", - "members":{ - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "ServiceUrl":{"type":"string"}, - "SnapshotOptions":{ - "type":"structure", - "members":{ - "AutomatedSnapshotStartHour":{"shape":"IntegerClass"} - } - }, - "SnapshotOptionsStatus":{ - "type":"structure", - "required":[ - "Options", - "Status" - ], - "members":{ - "Options":{"shape":"SnapshotOptions"}, - "Status":{"shape":"OptionStatus"} - } - }, - "String":{"type":"string"}, - "StringList":{ - "type":"list", - "member":{"shape":"String"} - }, - "Tag":{ - "type":"structure", - "required":[ - "Key", - "Value" - ], - "members":{ - "Key":{"shape":"TagKey"}, - "Value":{"shape":"TagValue"} - } - }, - "TagKey":{ - "type":"string", - "min":1, - "max":128 - }, - "TagList":{ - "type":"list", - "member":{"shape":"Tag"} - }, - "TagValue":{ - "type":"string", - "min":0, - "max":256 - }, - "UIntValue":{ - "type":"integer", - "min":0 - }, - "UpdateElasticsearchDomainConfigRequest":{ - "type":"structure", - "required":["DomainName"], - "members":{ - "DomainName":{ - "shape":"DomainName", - "location":"uri", - "locationName":"DomainName" - }, - "ElasticsearchClusterConfig":{"shape":"ElasticsearchClusterConfig"}, - "EBSOptions":{"shape":"EBSOptions"}, - "SnapshotOptions":{"shape":"SnapshotOptions"}, - "AdvancedOptions":{"shape":"AdvancedOptions"}, - "AccessPolicies":{"shape":"PolicyDocument"} - } - }, - "UpdateElasticsearchDomainConfigResponse":{ - "type":"structure", - "required":["DomainConfig"], - "members":{ - "DomainConfig":{"shape":"ElasticsearchDomainConfig"} - } - }, - "UpdateTimestamp":{"type":"timestamp"}, - "ValidationException":{ - "type":"structure", - "members":{ - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "VolumeType":{ - "type":"string", - "enum":[ - "standard", - "gp2", - "io1" - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json deleted file mode 100644 index b03bde836..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/es/2015-01-01/docs-2.json +++ /dev/null @@ -1,401 +0,0 @@ -{ - "version": "2.0", - "operations": { - "AddTags": "

    Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information.

    ", - "CreateElasticsearchDomain": "

    Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.

    ", - "DeleteElasticsearchDomain": "

    Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot be recovered.

    ", - "DescribeElasticsearchDomain": "

    Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.

    ", - "DescribeElasticsearchDomainConfig": "

    Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation date, update version, and update date for cluster options.

    ", - "DescribeElasticsearchDomains": "

    Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, domain endpoint, and domain ARN.

    ", - "ListDomainNames": "

    Returns the name of all Elasticsearch domains owned by the current user's account.

    ", - "ListTags": "

    Returns all tags for the given Elasticsearch domain.

    ", - "RemoveTags": "

    Removes the specified set of tags from the specified Elasticsearch domain.

    ", - "UpdateElasticsearchDomainConfig": "

    Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances.

    " - }, - "service": "Amazon Elasticsearch Configuration Service

    Use the Amazon Elasticsearch configuration API to create, configure, and manage Elasticsearch domains.

    The endpoint for configuration service requests is region-specific: es.region.amazonaws.com. For example, es.us-east-1.amazonaws.com. For a current list of supported regions and endpoints, see Regions and Endpoints.

    ", - "shapes": { - "ARN": { - "base": "

    The Amazon Resource Name (ARN) of the Elasticsearch domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.

    ", - "refs": { - "AddTagsRequest$ARN": "

    Specify the ARN for which you want to add the tags.

    ", - "ElasticsearchDomainStatus$ARN": "

    The Amazon resource name (ARN) of an Elasticsearch domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.

    ", - "ListTagsRequest$ARN": "

    Specify the ARN for the Elasticsearch domain to which the tags are attached that you want to view.

    ", - "RemoveTagsRequest$ARN": "

    Specifies the ARN for the Elasticsearch domain from which you want to delete the specified tags.

    " - } - }, - "AccessPoliciesStatus": { - "base": "

    The configured access rules for the domain's document and search endpoints, and the current status of those rules.

    ", - "refs": { - "ElasticsearchDomainConfig$AccessPolicies": "

    IAM access policy as a JSON-formatted string.

    " - } - }, - "AddTagsRequest": { - "base": "

    Container for the parameters to the AddTags operation. Specify the tags that you want to attach to the Elasticsearch domain.

    ", - "refs": { - } - }, - "AdvancedOptions": { - "base": "

    Exposes select native Elasticsearch configuration values from elasticsearch.yml. Currently, the following advanced options are available:

    • Option to allow references to indices in an HTTP request body. Must be false when configuring access to individual sub-resources. By default, the value is true. See Configuration Advanced Options for more information.
    • Option to specify the percentage of heap space that is allocated to field data. By default, this setting is unbounded.

    For more information, see Configuring Advanced Options.

    ", - "refs": { - "AdvancedOptionsStatus$Options": "

    Specifies the status of advanced options for the specified Elasticsearch domain.

    ", - "CreateElasticsearchDomainRequest$AdvancedOptions": "

    Option to allow references to indices in an HTTP request body. Must be false when configuring access to individual sub-resources. By default, the value is true. See Configuration Advanced Options for more information.

    ", - "ElasticsearchDomainStatus$AdvancedOptions": "

    Specifies the status of the AdvancedOptions

    ", - "UpdateElasticsearchDomainConfigRequest$AdvancedOptions": "

    Modifies the advanced option to allow references to indices in an HTTP request body. Must be false when configuring access to individual sub-resources. By default, the value is true. See Configuration Advanced Options for more information.

    " - } - }, - "AdvancedOptionsStatus": { - "base": "

    Status of the advanced options for the specified Elasticsearch domain. Currently, the following advanced options are available:

    • Option to allow references to indices in an HTTP request body. Must be false when configuring access to individual sub-resources. By default, the value is true. See Configuration Advanced Options for more information.
    • Option to specify the percentage of heap space that is allocated to field data. By default, this setting is unbounded.

    For more information, see Configuring Advanced Options.

    ", - "refs": { - "ElasticsearchDomainConfig$AdvancedOptions": "

    Specifies the AdvancedOptions for the domain. See Configuring Advanced Options for more information.

    " - } - }, - "BaseException": { - "base": "

    An error occurred while processing the request.

    ", - "refs": { - } - }, - "Boolean": { - "base": null, - "refs": { - "EBSOptions$EBSEnabled": "

    Specifies whether EBS-based storage is enabled.

    ", - "ElasticsearchClusterConfig$DedicatedMasterEnabled": "

    A boolean value to indicate whether a dedicated master node is enabled. See About Dedicated Master Nodes for more information.

    ", - "ElasticsearchClusterConfig$ZoneAwarenessEnabled": "

    A boolean value to indicate whether zone awareness is enabled. See About Zone Awareness for more information.

    ", - "ElasticsearchDomainStatus$Created": "

    The domain creation status. True if the creation of an Elasticsearch domain is complete. False if domain creation is still in progress.

    ", - "ElasticsearchDomainStatus$Deleted": "

    The domain deletion status. True if a delete request has been received for the domain but resource cleanup is still in progress. False if the domain has not been deleted. Once domain deletion is complete, the status of the domain is no longer returned.

    ", - "ElasticsearchDomainStatus$Processing": "

    The status of the Elasticsearch domain configuration. True if Amazon Elasticsearch Service is processing configuration changes. False if the configuration is active.

    ", - "OptionStatus$PendingDeletion": "

    Indicates whether the Elasticsearch domain is being deleted.

    " - } - }, - "CreateElasticsearchDomainRequest": { - "base": null, - "refs": { - } - }, - "CreateElasticsearchDomainResponse": { - "base": "

    The result of a CreateElasticsearchDomain operation. Contains the status of the newly created Elasticsearch domain.

    ", - "refs": { - } - }, - "DeleteElasticsearchDomainRequest": { - "base": "

    Container for the parameters to the DeleteElasticsearchDomain operation. Specifies the name of the Elasticsearch domain that you want to delete.

    ", - "refs": { - } - }, - "DeleteElasticsearchDomainResponse": { - "base": "

    The result of a DeleteElasticsearchDomain request. Contains the status of the pending deletion, or no status if the domain and all of its resources have been deleted.

    ", - "refs": { - } - }, - "DescribeElasticsearchDomainConfigRequest": { - "base": "

    Container for the parameters to the DescribeElasticsearchDomainConfig operation. Specifies the domain name for which you want configuration information.

    ", - "refs": { - } - }, - "DescribeElasticsearchDomainConfigResponse": { - "base": "

    The result of a DescribeElasticsearchDomainConfig request. Contains the configuration information of the requested domain.

    ", - "refs": { - } - }, - "DescribeElasticsearchDomainRequest": { - "base": "

    Container for the parameters to the DescribeElasticsearchDomain operation.

    ", - "refs": { - } - }, - "DescribeElasticsearchDomainResponse": { - "base": "

    The result of a DescribeElasticsearchDomain request. Contains the status of the domain specified in the request.

    ", - "refs": { - } - }, - "DescribeElasticsearchDomainsRequest": { - "base": "

    Container for the parameters to the DescribeElasticsearchDomains operation. By default, the API returns the status of all Elasticsearch domains.

    ", - "refs": { - } - }, - "DescribeElasticsearchDomainsResponse": { - "base": "

    The result of a DescribeElasticsearchDomains request. Contains the status of the specified domains or all domains owned by the account.

    ", - "refs": { - } - }, - "DisabledOperationException": { - "base": "

    An error occured because the client wanted to access a not supported operation. Gives http status code of 409.

    ", - "refs": { - } - }, - "DomainId": { - "base": "

    Unique identifier for an Elasticsearch domain.

    ", - "refs": { - "ElasticsearchDomainStatus$DomainId": "

    The unique identifier for the specified Elasticsearch domain.

    " - } - }, - "DomainInfo": { - "base": null, - "refs": { - "DomainInfoList$member": null - } - }, - "DomainInfoList": { - "base": "

    Contains the list of Elasticsearch domain information.

    ", - "refs": { - "ListDomainNamesResponse$DomainNames": "

    List of Elasticsearch domain names.

    " - } - }, - "DomainName": { - "base": "

    The name of an Elasticsearch domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

    ", - "refs": { - "CreateElasticsearchDomainRequest$DomainName": "

    The name of the Elasticsearch domain that you are creating. Domain names are unique across the domains owned by an account within an AWS region. Domain names must start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

    ", - "DeleteElasticsearchDomainRequest$DomainName": "

    The name of the Elasticsearch domain that you want to permanently delete.

    ", - "DescribeElasticsearchDomainConfigRequest$DomainName": "

    The Elasticsearch domain that you want to get information about.

    ", - "DescribeElasticsearchDomainRequest$DomainName": "

    The name of the Elasticsearch domain for which you want information.

    ", - "DomainInfo$DomainName": "

    Specifies the DomainName.

    ", - "DomainNameList$member": null, - "ElasticsearchDomainStatus$DomainName": "

    The name of an Elasticsearch domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

    ", - "UpdateElasticsearchDomainConfigRequest$DomainName": "

    The name of the Elasticsearch domain that you are updating.

    " - } - }, - "DomainNameList": { - "base": "

    A list of Elasticsearch domain names.

    ", - "refs": { - "DescribeElasticsearchDomainsRequest$DomainNames": "

    The Elasticsearch domains for which you want information.

    " - } - }, - "EBSOptions": { - "base": "

    Options to enable, disable, and specify the properties of EBS storage volumes. For more information, see Configuring EBS-based Storage.

    ", - "refs": { - "CreateElasticsearchDomainRequest$EBSOptions": "

    Options to enable, disable and specify the type and size of EBS storage volumes.

    ", - "EBSOptionsStatus$Options": "

    Specifies the EBS options for the specified Elasticsearch domain.

    ", - "ElasticsearchDomainStatus$EBSOptions": "

    The EBSOptions for the specified domain. See Configuring EBS-based Storage for more information.

    ", - "UpdateElasticsearchDomainConfigRequest$EBSOptions": "

    Specify the type and size of the EBS volume that you want to use.

    " - } - }, - "EBSOptionsStatus": { - "base": "

    Status of the EBS options for the specified Elasticsearch domain.

    ", - "refs": { - "ElasticsearchDomainConfig$EBSOptions": "

    Specifies the EBSOptions for the Elasticsearch domain.

    " - } - }, - "ESPartitionInstanceType": { - "base": null, - "refs": { - "ElasticsearchClusterConfig$InstanceType": "

    The instance type for an Elasticsearch cluster.

    ", - "ElasticsearchClusterConfig$DedicatedMasterType": "

    The instance type for a dedicated master node.

    " - } - }, - "ElasticsearchClusterConfig": { - "base": "

    Specifies the configuration for the domain cluster, such as the type and number of instances.

    ", - "refs": { - "CreateElasticsearchDomainRequest$ElasticsearchClusterConfig": "

    Configuration options for an Elasticsearch domain. Specifies the instance type and number of instances in the domain cluster.

    ", - "ElasticsearchClusterConfigStatus$Options": "

    Specifies the cluster configuration for the specified Elasticsearch domain.

    ", - "ElasticsearchDomainStatus$ElasticsearchClusterConfig": "

    The type and number of instances in the domain cluster.

    ", - "UpdateElasticsearchDomainConfigRequest$ElasticsearchClusterConfig": "

    The type and number of instances to instantiate for the domain cluster.

    " - } - }, - "ElasticsearchClusterConfigStatus": { - "base": "

    Specifies the configuration status for the specified Elasticsearch domain.

    ", - "refs": { - "ElasticsearchDomainConfig$ElasticsearchClusterConfig": "

    Specifies the ElasticsearchClusterConfig for the Elasticsearch domain.

    " - } - }, - "ElasticsearchDomainConfig": { - "base": "

    The configuration of an Elasticsearch domain.

    ", - "refs": { - "DescribeElasticsearchDomainConfigResponse$DomainConfig": "

    The configuration information of the domain requested in the DescribeElasticsearchDomainConfig request.

    ", - "UpdateElasticsearchDomainConfigResponse$DomainConfig": "

    The status of the updated Elasticsearch domain.

    " - } - }, - "ElasticsearchDomainStatus": { - "base": "

    The current status of an Elasticsearch domain.

    ", - "refs": { - "CreateElasticsearchDomainResponse$DomainStatus": "

    The status of the newly created Elasticsearch domain.

    ", - "DeleteElasticsearchDomainResponse$DomainStatus": "

    The status of the Elasticsearch domain being deleted.

    ", - "DescribeElasticsearchDomainResponse$DomainStatus": "

    The current status of the Elasticsearch domain.

    ", - "ElasticsearchDomainStatusList$member": null - } - }, - "ElasticsearchDomainStatusList": { - "base": "

    A list that contains the status of each requested Elasticsearch domain.

    ", - "refs": { - "DescribeElasticsearchDomainsResponse$DomainStatusList": "

    The status of the domains requested in the DescribeElasticsearchDomains request.

    " - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "BaseException$message": "

    A description of the error.

    " - } - }, - "IntegerClass": { - "base": null, - "refs": { - "EBSOptions$VolumeSize": "

    Integer to specify the size of an EBS volume.

    ", - "EBSOptions$Iops": "

    Specifies the IOPD for a Provisioned IOPS EBS volume (SSD).

    ", - "ElasticsearchClusterConfig$InstanceCount": "

    The number of instances in the specified domain cluster.

    ", - "ElasticsearchClusterConfig$DedicatedMasterCount": "

    Total number of dedicated master nodes, active and on standby, for the cluster.

    ", - "SnapshotOptions$AutomatedSnapshotStartHour": "

    Specifies the time, in UTC format, when the service takes a daily automated snapshot of the specified Elasticsearch domain. Default value is 0 hours.

    " - } - }, - "InternalException": { - "base": "

    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.

    ", - "refs": { - } - }, - "InvalidTypeException": { - "base": "

    An exception for trying to create or access sub-resource that is either invalid or not supported. Gives http status code of 409.

    ", - "refs": { - } - }, - "LimitExceededException": { - "base": "

    An exception for trying to create more than allowed resources or sub-resources. Gives http status code of 409.

    ", - "refs": { - } - }, - "ListDomainNamesResponse": { - "base": "

    The result of a ListDomainNames operation. Contains the names of all Elasticsearch domains owned by this account.

    ", - "refs": { - } - }, - "ListTagsRequest": { - "base": "

    Container for the parameters to the ListTags operation. Specify the ARN for the Elasticsearch domain to which the tags are attached that you want to view are attached.

    ", - "refs": { - } - }, - "ListTagsResponse": { - "base": "

    The result of a ListTags operation. Contains tags for all requested Elasticsearch domains.

    ", - "refs": { - } - }, - "OptionState": { - "base": "

    The state of a requested change. One of the following:

    • Processing: The request change is still in-process.
    • Active: The request change is processed and deployed to the Elasticsearch domain.
    ", - "refs": { - "OptionStatus$State": "

    Provides the OptionState for the Elasticsearch domain.

    " - } - }, - "OptionStatus": { - "base": "

    Provides the current status of the entity.

    ", - "refs": { - "AccessPoliciesStatus$Status": "

    The status of the access policy for the Elasticsearch domain. See OptionStatus for the status information that's included.

    ", - "AdvancedOptionsStatus$Status": "

    Specifies the status of OptionStatus for advanced options for the specified Elasticsearch domain.

    ", - "EBSOptionsStatus$Status": "

    Specifies the status of the EBS options for the specified Elasticsearch domain.

    ", - "ElasticsearchClusterConfigStatus$Status": "

    Specifies the status of the configuration for the specified Elasticsearch domain.

    ", - "SnapshotOptionsStatus$Status": "

    Specifies the status of a daily automated snapshot.

    " - } - }, - "PolicyDocument": { - "base": "

    Access policy rules for an Elasticsearch domain service endpoints. For more information, see Configuring Access Policies in the Amazon Elasticsearch Service Developer Guide. The maximum size of a policy document is 100 KB.

    ", - "refs": { - "AccessPoliciesStatus$Options": "

    The access policy configured for the Elasticsearch domain. Access policies may be resource-based, IP-based, or IAM-based. See Configuring Access Policiesfor more information.

    ", - "CreateElasticsearchDomainRequest$AccessPolicies": "

    IAM access policy as a JSON-formatted string.

    ", - "ElasticsearchDomainStatus$AccessPolicies": "

    IAM access policy as a JSON-formatted string.

    ", - "UpdateElasticsearchDomainConfigRequest$AccessPolicies": "

    IAM access policy as a JSON-formatted string.

    " - } - }, - "RemoveTagsRequest": { - "base": "

    Container for the parameters to the RemoveTags operation. Specify the ARN for the Elasticsearch domain from which you want to remove the specified TagKey.

    ", - "refs": { - } - }, - "ResourceAlreadyExistsException": { - "base": "

    An exception for creating a resource that already exists. Gives http status code of 400.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.

    ", - "refs": { - } - }, - "ServiceUrl": { - "base": "

    The endpoint to which service requests are submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.es.amazonaws.com or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.es.amazonaws.com.

    ", - "refs": { - "ElasticsearchDomainStatus$Endpoint": "

    The Elasticsearch domain endpoint that you use to submit index and search requests.

    " - } - }, - "SnapshotOptions": { - "base": "

    Specifies the time, in UTC format, when the service takes a daily automated snapshot of the specified Elasticsearch domain. Default value is 0 hours.

    ", - "refs": { - "CreateElasticsearchDomainRequest$SnapshotOptions": "

    Option to set time, in UTC format, of the daily automated snapshot. Default value is 0 hours.

    ", - "ElasticsearchDomainStatus$SnapshotOptions": "

    Specifies the status of the SnapshotOptions

    ", - "SnapshotOptionsStatus$Options": "

    Specifies the daily snapshot options specified for the Elasticsearch domain.

    ", - "UpdateElasticsearchDomainConfigRequest$SnapshotOptions": "

    Option to set the time, in UTC format, for the daily automated snapshot. Default value is 0 hours.

    " - } - }, - "SnapshotOptionsStatus": { - "base": "

    Status of a daily automated snapshot.

    ", - "refs": { - "ElasticsearchDomainConfig$SnapshotOptions": "

    Specifies the SnapshotOptions for the Elasticsearch domain.

    " - } - }, - "String": { - "base": null, - "refs": { - "AdvancedOptions$key": null, - "AdvancedOptions$value": null, - "StringList$member": null - } - }, - "StringList": { - "base": null, - "refs": { - "RemoveTagsRequest$TagKeys": "

    Specifies the TagKey list which you want to remove from the Elasticsearch domain.

    " - } - }, - "Tag": { - "base": "

    Specifies a key value pair for a resource tag.

    ", - "refs": { - "TagList$member": null - } - }, - "TagKey": { - "base": "

    A string of length from 1 to 128 characters that specifies the key for a Tag. Tag keys must be unique for the Elasticsearch domain to which they are attached.

    ", - "refs": { - "Tag$Key": "

    Specifies the TagKey, the name of the tag. Tag keys must be unique for the Elasticsearch domain to which they are attached.

    " - } - }, - "TagList": { - "base": "

    A list of Tag

    ", - "refs": { - "AddTagsRequest$TagList": "

    List of Tag that need to be added for the Elasticsearch domain.

    ", - "ListTagsResponse$TagList": "

    List of Tag for the requested Elasticsearch domain.

    " - } - }, - "TagValue": { - "base": "

    A string of length from 0 to 256 characters that specifies the value for a Tag. Tag values can be null and do not have to be unique in a tag set.

    ", - "refs": { - "Tag$Value": "

    Specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and do not have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

    " - } - }, - "UIntValue": { - "base": null, - "refs": { - "OptionStatus$UpdateVersion": "

    Specifies the latest version for the entity.

    " - } - }, - "UpdateElasticsearchDomainConfigRequest": { - "base": "

    Container for the parameters to the UpdateElasticsearchDomain operation. Specifies the type and number of instances in the domain cluster.

    ", - "refs": { - } - }, - "UpdateElasticsearchDomainConfigResponse": { - "base": "

    The result of an UpdateElasticsearchDomain request. Contains the status of the Elasticsearch domain being updated.

    ", - "refs": { - } - }, - "UpdateTimestamp": { - "base": null, - "refs": { - "OptionStatus$CreationDate": "

    Timestamp which tells the creation date for the entity.

    ", - "OptionStatus$UpdateDate": "

    Timestamp which tells the last updated time for the entity.

    " - } - }, - "ValidationException": { - "base": "

    An exception for missing / invalid input fields. Gives http status code of 400.

    ", - "refs": { - } - }, - "VolumeType": { - "base": "

    The type of EBS volume, standard, gp2, or io1. See Configuring EBS-based Storagefor more information.

    ", - "refs": { - "EBSOptions$VolumeType": "

    Specifies the volume type for EBS-based storage.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/api-2.json deleted file mode 100644 index c9980d9f5..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/api-2.json +++ /dev/null @@ -1,643 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2014-02-03", - "endpointPrefix":"events", - "jsonVersion":"1.1", - "serviceFullName":"Amazon CloudWatch Events", - "signatureVersion":"v4", - "targetPrefix":"AWSEvents", - "protocol":"json" - }, - "operations":{ - "DeleteRule":{ - "name":"DeleteRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRuleRequest"}, - "errors":[ - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "DescribeRule":{ - "name":"DescribeRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeRuleRequest"}, - "output":{"shape":"DescribeRuleResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "DisableRule":{ - "name":"DisableRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DisableRuleRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "EnableRule":{ - "name":"EnableRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"EnableRuleRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "ListRuleNamesByTarget":{ - "name":"ListRuleNamesByTarget", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRuleNamesByTargetRequest"}, - "output":{"shape":"ListRuleNamesByTargetResponse"}, - "errors":[ - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "ListRules":{ - "name":"ListRules", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRulesRequest"}, - "output":{"shape":"ListRulesResponse"}, - "errors":[ - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "ListTargetsByRule":{ - "name":"ListTargetsByRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTargetsByRuleRequest"}, - "output":{"shape":"ListTargetsByRuleResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "PutEvents":{ - "name":"PutEvents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutEventsRequest"}, - "output":{"shape":"PutEventsResponse"}, - "errors":[ - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "PutRule":{ - "name":"PutRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutRuleRequest"}, - "output":{"shape":"PutRuleResponse"}, - "errors":[ - { - "shape":"InvalidEventPatternException", - "exception":true - }, - { - "shape":"LimitExceededException", - "exception":true - }, - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "PutTargets":{ - "name":"PutTargets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutTargetsRequest"}, - "output":{"shape":"PutTargetsResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"LimitExceededException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "RemoveTargets":{ - "name":"RemoveTargets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTargetsRequest"}, - "output":{"shape":"RemoveTargetsResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "TestEventPattern":{ - "name":"TestEventPattern", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"TestEventPatternRequest"}, - "output":{"shape":"TestEventPatternResponse"}, - "errors":[ - { - "shape":"InvalidEventPatternException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - } - }, - "shapes":{ - "Boolean":{"type":"boolean"}, - "ConcurrentModificationException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "DeleteRuleRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"RuleName"} - } - }, - "DescribeRuleRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"RuleName"} - } - }, - "DescribeRuleResponse":{ - "type":"structure", - "members":{ - "Name":{"shape":"RuleName"}, - "Arn":{"shape":"RuleArn"}, - "EventPattern":{"shape":"EventPattern"}, - "ScheduleExpression":{"shape":"ScheduleExpression"}, - "State":{"shape":"RuleState"}, - "Description":{"shape":"RuleDescription"}, - "RoleArn":{"shape":"RoleArn"} - } - }, - "DisableRuleRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"RuleName"} - } - }, - "EnableRuleRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"RuleName"} - } - }, - "ErrorCode":{"type":"string"}, - "ErrorMessage":{"type":"string"}, - "EventId":{"type":"string"}, - "EventPattern":{ - "type":"string", - "max":2048 - }, - "EventResource":{"type":"string"}, - "EventResourceList":{ - "type":"list", - "member":{"shape":"EventResource"} - }, - "EventTime":{"type":"timestamp"}, - "Integer":{"type":"integer"}, - "InternalException":{ - "type":"structure", - "members":{ - }, - "exception":true, - "fault":true - }, - "InvalidEventPatternException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "LimitMax100":{ - "type":"integer", - "min":1, - "max":100 - }, - "ListRuleNamesByTargetRequest":{ - "type":"structure", - "required":["TargetArn"], - "members":{ - "TargetArn":{"shape":"TargetArn"}, - "NextToken":{"shape":"NextToken"}, - "Limit":{"shape":"LimitMax100"} - } - }, - "ListRuleNamesByTargetResponse":{ - "type":"structure", - "members":{ - "RuleNames":{"shape":"RuleNameList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "ListRulesRequest":{ - "type":"structure", - "members":{ - "NamePrefix":{"shape":"RuleName"}, - "NextToken":{"shape":"NextToken"}, - "Limit":{"shape":"LimitMax100"} - } - }, - "ListRulesResponse":{ - "type":"structure", - "members":{ - "Rules":{"shape":"RuleResponseList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "ListTargetsByRuleRequest":{ - "type":"structure", - "required":["Rule"], - "members":{ - "Rule":{"shape":"RuleName"}, - "NextToken":{"shape":"NextToken"}, - "Limit":{"shape":"LimitMax100"} - } - }, - "ListTargetsByRuleResponse":{ - "type":"structure", - "members":{ - "Targets":{"shape":"TargetList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "NextToken":{ - "type":"string", - "min":1, - "max":2048 - }, - "PutEventsRequest":{ - "type":"structure", - "required":["Entries"], - "members":{ - "Entries":{"shape":"PutEventsRequestEntryList"} - } - }, - "PutEventsRequestEntry":{ - "type":"structure", - "members":{ - "Time":{"shape":"EventTime"}, - "Source":{"shape":"String"}, - "Resources":{"shape":"EventResourceList"}, - "DetailType":{"shape":"String"}, - "Detail":{"shape":"String"} - } - }, - "PutEventsRequestEntryList":{ - "type":"list", - "member":{"shape":"PutEventsRequestEntry"}, - "min":1, - "max":10 - }, - "PutEventsResponse":{ - "type":"structure", - "members":{ - "FailedEntryCount":{"shape":"Integer"}, - "Entries":{"shape":"PutEventsResultEntryList"} - } - }, - "PutEventsResultEntry":{ - "type":"structure", - "members":{ - "EventId":{"shape":"EventId"}, - "ErrorCode":{"shape":"ErrorCode"}, - "ErrorMessage":{"shape":"ErrorMessage"} - } - }, - "PutEventsResultEntryList":{ - "type":"list", - "member":{"shape":"PutEventsResultEntry"} - }, - "PutRuleRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"RuleName"}, - "ScheduleExpression":{"shape":"ScheduleExpression"}, - "EventPattern":{"shape":"EventPattern"}, - "State":{"shape":"RuleState"}, - "Description":{"shape":"RuleDescription"}, - "RoleArn":{"shape":"RoleArn"} - } - }, - "PutRuleResponse":{ - "type":"structure", - "members":{ - "RuleArn":{"shape":"RuleArn"} - } - }, - "PutTargetsRequest":{ - "type":"structure", - "required":[ - "Rule", - "Targets" - ], - "members":{ - "Rule":{"shape":"RuleName"}, - "Targets":{"shape":"TargetList"} - } - }, - "PutTargetsResponse":{ - "type":"structure", - "members":{ - "FailedEntryCount":{"shape":"Integer"}, - "FailedEntries":{"shape":"PutTargetsResultEntryList"} - } - }, - "PutTargetsResultEntry":{ - "type":"structure", - "members":{ - "TargetId":{"shape":"TargetId"}, - "ErrorCode":{"shape":"ErrorCode"}, - "ErrorMessage":{"shape":"ErrorMessage"} - } - }, - "PutTargetsResultEntryList":{ - "type":"list", - "member":{"shape":"PutTargetsResultEntry"} - }, - "RemoveTargetsRequest":{ - "type":"structure", - "required":[ - "Rule", - "Ids" - ], - "members":{ - "Rule":{"shape":"RuleName"}, - "Ids":{"shape":"TargetIdList"} - } - }, - "RemoveTargetsResponse":{ - "type":"structure", - "members":{ - "FailedEntryCount":{"shape":"Integer"}, - "FailedEntries":{"shape":"RemoveTargetsResultEntryList"} - } - }, - "RemoveTargetsResultEntry":{ - "type":"structure", - "members":{ - "TargetId":{"shape":"TargetId"}, - "ErrorCode":{"shape":"ErrorCode"}, - "ErrorMessage":{"shape":"ErrorMessage"} - } - }, - "RemoveTargetsResultEntryList":{ - "type":"list", - "member":{"shape":"RemoveTargetsResultEntry"} - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RoleArn":{ - "type":"string", - "min":1, - "max":1600 - }, - "Rule":{ - "type":"structure", - "members":{ - "Name":{"shape":"RuleName"}, - "Arn":{"shape":"RuleArn"}, - "EventPattern":{"shape":"EventPattern"}, - "State":{"shape":"RuleState"}, - "Description":{"shape":"RuleDescription"}, - "ScheduleExpression":{"shape":"ScheduleExpression"}, - "RoleArn":{"shape":"RoleArn"} - } - }, - "RuleArn":{ - "type":"string", - "min":1, - "max":1600 - }, - "RuleDescription":{ - "type":"string", - "max":512 - }, - "RuleName":{ - "type":"string", - "min":1, - "max":64, - "pattern":"[\\.\\-_A-Za-z0-9]+" - }, - "RuleNameList":{ - "type":"list", - "member":{"shape":"RuleName"} - }, - "RuleResponseList":{ - "type":"list", - "member":{"shape":"Rule"} - }, - "RuleState":{ - "type":"string", - "enum":[ - "ENABLED", - "DISABLED" - ] - }, - "ScheduleExpression":{ - "type":"string", - "max":256 - }, - "String":{"type":"string"}, - "Target":{ - "type":"structure", - "required":[ - "Id", - "Arn" - ], - "members":{ - "Id":{"shape":"TargetId"}, - "Arn":{"shape":"TargetArn"}, - "Input":{"shape":"TargetInput"}, - "InputPath":{"shape":"TargetInputPath"} - } - }, - "TargetArn":{ - "type":"string", - "min":1, - "max":1600 - }, - "TargetId":{ - "type":"string", - "min":1, - "max":64, - "pattern":"[\\.\\-_A-Za-z0-9]+" - }, - "TargetIdList":{ - "type":"list", - "member":{"shape":"TargetId"}, - "min":1, - "max":100 - }, - "TargetInput":{ - "type":"string", - "max":8192 - }, - "TargetInputPath":{ - "type":"string", - "max":256 - }, - "TargetList":{ - "type":"list", - "member":{"shape":"Target"} - }, - "TestEventPatternRequest":{ - "type":"structure", - "required":[ - "EventPattern", - "Event" - ], - "members":{ - "EventPattern":{"shape":"EventPattern"}, - "Event":{"shape":"String"} - } - }, - "TestEventPatternResponse":{ - "type":"structure", - "members":{ - "Result":{"shape":"Boolean"} - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/docs-2.json deleted file mode 100644 index c6eaf8627..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/docs-2.json +++ /dev/null @@ -1,411 +0,0 @@ -{ - "version": "2.0", - "operations": { - "DeleteRule": "

    Deletes a rule. You must remove all targets from a rule using RemoveTargets before you can delete the rule.

    Note: When you make a change with this action, incoming events might still continue to match to the deleted rule. Please allow a short period of time for changes to take effect.

    ", - "DescribeRule": "

    Describes the details of the specified rule.

    ", - "DisableRule": "

    Disables a rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.

    Note: When you make a change with this action, incoming events might still continue to match to the disabled rule. Please allow a short period of time for changes to take effect.

    ", - "EnableRule": "

    Enables a rule. If the rule does not exist, the operation fails.

    Note: When you make a change with this action, incoming events might not immediately start matching to a newly enabled rule. Please allow a short period of time for changes to take effect.

    ", - "ListRuleNamesByTarget": "

    Lists the names of the rules that the given target is put to. Using this action, you can find out which of the rules in Amazon CloudWatch Events can invoke a specific target in your account. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat the ListRulesByTarget action until the NextToken in the response is returned as null.

    ", - "ListRules": "

    Lists the Amazon CloudWatch Events rules in your account. You can either list all the rules or you can provide a prefix to match to the rule names. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat the ListRules action until the NextToken in the response is returned as null.

    ", - "ListTargetsByRule": "

    Lists of targets assigned to the rule.

    ", - "PutEvents": "

    Sends custom events to Amazon CloudWatch Events so that they can be matched to rules.

    ", - "PutRule": "

    Creates or updates a rule. Rules are enabled by default, or based on value of the State parameter. You can disable a rule using DisableRule.

    Note: When you make a change with this action, incoming events might not immediately start matching to new or updated rules. Please allow a short period of time for changes to take effect.

    A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression, in which case the rule will trigger on matching events as well as on a schedule.

    Note: Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match.

    ", - "PutTargets": "

    Adds target(s) to a rule. Updates the target(s) if they are already associated with the role. In other words, if there is already a target with the given target ID, then the target associated with that ID is updated.

    Note: When you make a change with this action, when the associated rule triggers, new or updated targets might not be immediately invoked. Please allow a short period of time for changes to take effect.

    ", - "RemoveTargets": "

    Removes target(s) from a rule so that when the rule is triggered, those targets will no longer be invoked.

    Note: When you make a change with this action, when the associated rule triggers, removed targets might still continue to be invoked. Please allow a short period of time for changes to take effect.

    ", - "TestEventPattern": "

    Tests whether an event pattern matches the provided event.

    Note: Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match.

    " - }, - "service": "

    Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a pre-determined schedule. For example, you can configure rules to:

    • Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state.
    • Direct specific API records from CloudTrail to an Amazon Kinesis stream for detailed analysis of potential security or availability risks.
    • Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.

    For more information about Amazon CloudWatch Events features, see the Amazon CloudWatch Developer Guide.

    ", - "shapes": { - "Boolean": { - "base": null, - "refs": { - "TestEventPatternResponse$Result": "

    Indicates whether the event matches the event pattern.

    " - } - }, - "ConcurrentModificationException": { - "base": "

    This exception occurs if there is concurrent modification on rule or target.

    ", - "refs": { - } - }, - "DeleteRuleRequest": { - "base": "

    Container for the parameters to the DeleteRule operation.

    ", - "refs": { - } - }, - "DescribeRuleRequest": { - "base": "

    Container for the parameters to the DescribeRule operation.

    ", - "refs": { - } - }, - "DescribeRuleResponse": { - "base": "

    The result of the DescribeRule operation.

    ", - "refs": { - } - }, - "DisableRuleRequest": { - "base": "

    Container for the parameters to the DisableRule operation.

    ", - "refs": { - } - }, - "EnableRuleRequest": { - "base": "

    Container for the parameters to the EnableRule operation.

    ", - "refs": { - } - }, - "ErrorCode": { - "base": null, - "refs": { - "PutEventsResultEntry$ErrorCode": "

    The error code representing why the event submission failed on this entry.

    ", - "PutTargetsResultEntry$ErrorCode": "

    The error code representing why the target submission failed on this entry.

    ", - "RemoveTargetsResultEntry$ErrorCode": "

    The error code representing why the target removal failed on this entry.

    " - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "PutEventsResultEntry$ErrorMessage": "

    The error message explaining why the event submission failed on this entry.

    ", - "PutTargetsResultEntry$ErrorMessage": "

    The error message explaining why the target submission failed on this entry.

    ", - "RemoveTargetsResultEntry$ErrorMessage": "

    The error message explaining why the target removal failed on this entry.

    " - } - }, - "EventId": { - "base": null, - "refs": { - "PutEventsResultEntry$EventId": "

    The ID of the event submitted to Amazon CloudWatch Events.

    " - } - }, - "EventPattern": { - "base": null, - "refs": { - "DescribeRuleResponse$EventPattern": "

    The event pattern.

    ", - "PutRuleRequest$EventPattern": "

    The event pattern.

    ", - "Rule$EventPattern": "

    The event pattern of the rule.

    ", - "TestEventPatternRequest$EventPattern": "

    The event pattern you want to test.

    " - } - }, - "EventResource": { - "base": null, - "refs": { - "EventResourceList$member": null - } - }, - "EventResourceList": { - "base": null, - "refs": { - "PutEventsRequestEntry$Resources": "

    AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.

    " - } - }, - "EventTime": { - "base": null, - "refs": { - "PutEventsRequestEntry$Time": "

    Timestamp of event, per RFC3339. If no timestamp is provided, the timestamp of the PutEvents call will be used.

    " - } - }, - "Integer": { - "base": null, - "refs": { - "PutEventsResponse$FailedEntryCount": "

    The number of failed entries.

    ", - "PutTargetsResponse$FailedEntryCount": "

    The number of failed entries.

    ", - "RemoveTargetsResponse$FailedEntryCount": "

    The number of failed entries.

    " - } - }, - "InternalException": { - "base": "

    This exception occurs due to unexpected causes.

    ", - "refs": { - } - }, - "InvalidEventPatternException": { - "base": "

    The event pattern is invalid.

    ", - "refs": { - } - }, - "LimitExceededException": { - "base": "

    This exception occurs if you try to create more rules or add more targets to a rule than allowed by default.

    ", - "refs": { - } - }, - "LimitMax100": { - "base": null, - "refs": { - "ListRuleNamesByTargetRequest$Limit": "

    The maximum number of results to return.

    ", - "ListRulesRequest$Limit": "

    The maximum number of results to return.

    ", - "ListTargetsByRuleRequest$Limit": "

    The maximum number of results to return.

    " - } - }, - "ListRuleNamesByTargetRequest": { - "base": "

    Container for the parameters to the ListRuleNamesByTarget operation.

    ", - "refs": { - } - }, - "ListRuleNamesByTargetResponse": { - "base": "

    The result of the ListRuleNamesByTarget operation.

    ", - "refs": { - } - }, - "ListRulesRequest": { - "base": "

    Container for the parameters to the ListRules operation.

    ", - "refs": { - } - }, - "ListRulesResponse": { - "base": "

    The result of the ListRules operation.

    ", - "refs": { - } - }, - "ListTargetsByRuleRequest": { - "base": "

    Container for the parameters to the ListTargetsByRule operation.

    ", - "refs": { - } - }, - "ListTargetsByRuleResponse": { - "base": "

    The result of the ListTargetsByRule operation.

    ", - "refs": { - } - }, - "NextToken": { - "base": null, - "refs": { - "ListRuleNamesByTargetRequest$NextToken": "

    The token returned by a previous call to indicate that there is more data available.

    ", - "ListRuleNamesByTargetResponse$NextToken": "

    Indicates that there are additional results to retrieve.

    ", - "ListRulesRequest$NextToken": "

    The token returned by a previous call to indicate that there is more data available.

    ", - "ListRulesResponse$NextToken": "

    Indicates that there are additional results to retrieve.

    ", - "ListTargetsByRuleRequest$NextToken": "

    The token returned by a previous call to indicate that there is more data available.

    ", - "ListTargetsByRuleResponse$NextToken": "

    Indicates that there are additional results to retrieve.

    " - } - }, - "PutEventsRequest": { - "base": "

    Container for the parameters to the PutEvents operation.

    ", - "refs": { - } - }, - "PutEventsRequestEntry": { - "base": "

    Contains information about the event to be used in the PutEvents action.

    ", - "refs": { - "PutEventsRequestEntryList$member": null - } - }, - "PutEventsRequestEntryList": { - "base": null, - "refs": { - "PutEventsRequest$Entries": "

    The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.

    " - } - }, - "PutEventsResponse": { - "base": "

    The result of the PutEvents operation.

    ", - "refs": { - } - }, - "PutEventsResultEntry": { - "base": "

    A PutEventsResult contains a list of PutEventsResultEntry.

    ", - "refs": { - "PutEventsResultEntryList$member": null - } - }, - "PutEventsResultEntryList": { - "base": null, - "refs": { - "PutEventsResponse$Entries": "

    A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.

    " - } - }, - "PutRuleRequest": { - "base": "

    Container for the parameters to the PutRule operation.

    ", - "refs": { - } - }, - "PutRuleResponse": { - "base": "

    The result of the PutRule operation.

    ", - "refs": { - } - }, - "PutTargetsRequest": { - "base": "

    Container for the parameters to the PutTargets operation.

    ", - "refs": { - } - }, - "PutTargetsResponse": { - "base": "

    The result of the PutTargets operation.

    ", - "refs": { - } - }, - "PutTargetsResultEntry": { - "base": "

    A PutTargetsResult contains a list of PutTargetsResultEntry.

    ", - "refs": { - "PutTargetsResultEntryList$member": null - } - }, - "PutTargetsResultEntryList": { - "base": null, - "refs": { - "PutTargetsResponse$FailedEntries": "

    An array of failed target entries.

    " - } - }, - "RemoveTargetsRequest": { - "base": "

    Container for the parameters to the RemoveTargets operation.

    ", - "refs": { - } - }, - "RemoveTargetsResponse": { - "base": "

    The result of the RemoveTargets operation.

    ", - "refs": { - } - }, - "RemoveTargetsResultEntry": { - "base": "

    The ID of the target requested to be removed from the rule by Amazon CloudWatch Events.

    ", - "refs": { - "RemoveTargetsResultEntryList$member": null - } - }, - "RemoveTargetsResultEntryList": { - "base": null, - "refs": { - "RemoveTargetsResponse$FailedEntries": "

    An array of failed target entries.

    " - } - }, - "ResourceNotFoundException": { - "base": "

    The rule does not exist.

    ", - "refs": { - } - }, - "RoleArn": { - "base": null, - "refs": { - "DescribeRuleResponse$RoleArn": "

    The Amazon Resource Name (ARN) of the IAM role associated with the rule.

    ", - "PutRuleRequest$RoleArn": "

    The Amazon Resource Name (ARN) of the IAM role associated with the rule.

    ", - "Rule$RoleArn": "

    The Amazon Resource Name (ARN) associated with the role that is used for target invocation.

    " - } - }, - "Rule": { - "base": "

    Contains information about a rule in Amazon CloudWatch Events. A ListRulesResult contains a list of Rules.

    ", - "refs": { - "RuleResponseList$member": null - } - }, - "RuleArn": { - "base": null, - "refs": { - "DescribeRuleResponse$Arn": "

    The Amazon Resource Name (ARN) associated with the rule.

    ", - "PutRuleResponse$RuleArn": "

    The Amazon Resource Name (ARN) that identifies the rule.

    ", - "Rule$Arn": "

    The Amazon Resource Name (ARN) of the rule.

    " - } - }, - "RuleDescription": { - "base": null, - "refs": { - "DescribeRuleResponse$Description": "

    The rule's description.

    ", - "PutRuleRequest$Description": "

    A description of the rule.

    ", - "Rule$Description": "

    The description of the rule.

    " - } - }, - "RuleName": { - "base": null, - "refs": { - "DeleteRuleRequest$Name": "

    The name of the rule to be deleted.

    ", - "DescribeRuleRequest$Name": "

    The name of the rule you want to describe details for.

    ", - "DescribeRuleResponse$Name": "

    The rule's name.

    ", - "DisableRuleRequest$Name": "

    The name of the rule you want to disable.

    ", - "EnableRuleRequest$Name": "

    The name of the rule that you want to enable.

    ", - "ListRulesRequest$NamePrefix": "

    The prefix matching the rule name.

    ", - "ListTargetsByRuleRequest$Rule": "

    The name of the rule whose targets you want to list.

    ", - "PutRuleRequest$Name": "

    The name of the rule that you are creating or updating.

    ", - "PutTargetsRequest$Rule": "

    The name of the rule you want to add targets to.

    ", - "RemoveTargetsRequest$Rule": "

    The name of the rule you want to remove targets from.

    ", - "Rule$Name": "

    The rule's name.

    ", - "RuleNameList$member": null - } - }, - "RuleNameList": { - "base": null, - "refs": { - "ListRuleNamesByTargetResponse$RuleNames": "

    List of rules names that can invoke the given target.

    " - } - }, - "RuleResponseList": { - "base": null, - "refs": { - "ListRulesResponse$Rules": "

    List of rules matching the specified criteria.

    " - } - }, - "RuleState": { - "base": null, - "refs": { - "DescribeRuleResponse$State": "

    Specifies whether the rule is enabled or disabled.

    ", - "PutRuleRequest$State": "

    Indicates whether the rule is enabled or disabled.

    ", - "Rule$State": "

    The rule's state.

    " - } - }, - "ScheduleExpression": { - "base": null, - "refs": { - "DescribeRuleResponse$ScheduleExpression": "

    The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\".

    ", - "PutRuleRequest$ScheduleExpression": "

    The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\".

    ", - "Rule$ScheduleExpression": "

    The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\".

    " - } - }, - "String": { - "base": null, - "refs": { - "PutEventsRequestEntry$Source": "

    The source of the event.

    ", - "PutEventsRequestEntry$DetailType": "

    Free-form string used to decide what fields to expect in the event detail.

    ", - "PutEventsRequestEntry$Detail": "

    In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.

    ", - "TestEventPatternRequest$Event": "

    The event in the JSON format to test against the event pattern.

    " - } - }, - "Target": { - "base": "

    Targets are the resources that can be invoked when a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets.

    Input and InputPath are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target:

    • Neither Input nor InputPath is specified, then the entire event is passed to the target in JSON form.
    • InputPath is specified in the form of JSONPath (e.g. $.detail), then only the part of the event specified in the path is passed to the target (e.g. only the detail part of the event is passed).
    • Input is specified in the form of a valid JSON, then the matched event is overridden with this constant.
    ", - "refs": { - "TargetList$member": null - } - }, - "TargetArn": { - "base": null, - "refs": { - "ListRuleNamesByTargetRequest$TargetArn": "

    The Amazon Resource Name (ARN) of the target resource that you want to list the rules for.

    ", - "Target$Arn": "

    The Amazon Resource Name (ARN) associated of the target.

    " - } - }, - "TargetId": { - "base": null, - "refs": { - "PutTargetsResultEntry$TargetId": "

    The ID of the target submitted to Amazon CloudWatch Events.

    ", - "RemoveTargetsResultEntry$TargetId": "

    The ID of the target requested to be removed by Amazon CloudWatch Events.

    ", - "Target$Id": "

    The unique target assignment ID.

    ", - "TargetIdList$member": null - } - }, - "TargetIdList": { - "base": null, - "refs": { - "RemoveTargetsRequest$Ids": "

    The list of target IDs to remove from the rule.

    " - } - }, - "TargetInput": { - "base": null, - "refs": { - "Target$Input": "

    Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format.

    " - } - }, - "TargetInputPath": { - "base": null, - "refs": { - "Target$InputPath": "

    The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. For more information about JSON paths, see JSONPath.

    " - } - }, - "TargetList": { - "base": null, - "refs": { - "ListTargetsByRuleResponse$Targets": "

    Lists the targets assigned to the rule.

    ", - "PutTargetsRequest$Targets": "

    List of targets you want to update or add to the rule.

    " - } - }, - "TestEventPatternRequest": { - "base": "

    Container for the parameters to the TestEventPattern operation.

    ", - "refs": { - } - }, - "TestEventPatternResponse": { - "base": "

    The result of the TestEventPattern operation.

    ", - "refs": { - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/examples-1.json deleted file mode 100644 index faff76894..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2014-02-03/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version":"1.0", - "examples":{ - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/api-2.json deleted file mode 100644 index 85d852c9b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/api-2.json +++ /dev/null @@ -1,643 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-10-07", - "endpointPrefix":"events", - "jsonVersion":"1.1", - "serviceFullName":"Amazon CloudWatch Events", - "signatureVersion":"v4", - "targetPrefix":"AWSEvents", - "protocol":"json" - }, - "operations":{ - "DeleteRule":{ - "name":"DeleteRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRuleRequest"}, - "errors":[ - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "DescribeRule":{ - "name":"DescribeRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeRuleRequest"}, - "output":{"shape":"DescribeRuleResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "DisableRule":{ - "name":"DisableRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DisableRuleRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "EnableRule":{ - "name":"EnableRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"EnableRuleRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "ListRuleNamesByTarget":{ - "name":"ListRuleNamesByTarget", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRuleNamesByTargetRequest"}, - "output":{"shape":"ListRuleNamesByTargetResponse"}, - "errors":[ - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "ListRules":{ - "name":"ListRules", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRulesRequest"}, - "output":{"shape":"ListRulesResponse"}, - "errors":[ - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "ListTargetsByRule":{ - "name":"ListTargetsByRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTargetsByRuleRequest"}, - "output":{"shape":"ListTargetsByRuleResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "PutEvents":{ - "name":"PutEvents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutEventsRequest"}, - "output":{"shape":"PutEventsResponse"}, - "errors":[ - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "PutRule":{ - "name":"PutRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutRuleRequest"}, - "output":{"shape":"PutRuleResponse"}, - "errors":[ - { - "shape":"InvalidEventPatternException", - "exception":true - }, - { - "shape":"LimitExceededException", - "exception":true - }, - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "PutTargets":{ - "name":"PutTargets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutTargetsRequest"}, - "output":{"shape":"PutTargetsResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"LimitExceededException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "RemoveTargets":{ - "name":"RemoveTargets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTargetsRequest"}, - "output":{"shape":"RemoveTargetsResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "exception":true - }, - { - "shape":"ConcurrentModificationException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - }, - "TestEventPattern":{ - "name":"TestEventPattern", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"TestEventPatternRequest"}, - "output":{"shape":"TestEventPatternResponse"}, - "errors":[ - { - "shape":"InvalidEventPatternException", - "exception":true - }, - { - "shape":"InternalException", - "exception":true, - "fault":true - } - ] - } - }, - "shapes":{ - "Boolean":{"type":"boolean"}, - "ConcurrentModificationException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "DeleteRuleRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"RuleName"} - } - }, - "DescribeRuleRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"RuleName"} - } - }, - "DescribeRuleResponse":{ - "type":"structure", - "members":{ - "Name":{"shape":"RuleName"}, - "Arn":{"shape":"RuleArn"}, - "EventPattern":{"shape":"EventPattern"}, - "ScheduleExpression":{"shape":"ScheduleExpression"}, - "State":{"shape":"RuleState"}, - "Description":{"shape":"RuleDescription"}, - "RoleArn":{"shape":"RoleArn"} - } - }, - "DisableRuleRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"RuleName"} - } - }, - "EnableRuleRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"RuleName"} - } - }, - "ErrorCode":{"type":"string"}, - "ErrorMessage":{"type":"string"}, - "EventId":{"type":"string"}, - "EventPattern":{ - "type":"string", - "max":2048 - }, - "EventResource":{"type":"string"}, - "EventResourceList":{ - "type":"list", - "member":{"shape":"EventResource"} - }, - "EventTime":{"type":"timestamp"}, - "Integer":{"type":"integer"}, - "InternalException":{ - "type":"structure", - "members":{ - }, - "exception":true, - "fault":true - }, - "InvalidEventPatternException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "LimitMax100":{ - "type":"integer", - "min":1, - "max":100 - }, - "ListRuleNamesByTargetRequest":{ - "type":"structure", - "required":["TargetArn"], - "members":{ - "TargetArn":{"shape":"TargetArn"}, - "NextToken":{"shape":"NextToken"}, - "Limit":{"shape":"LimitMax100"} - } - }, - "ListRuleNamesByTargetResponse":{ - "type":"structure", - "members":{ - "RuleNames":{"shape":"RuleNameList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "ListRulesRequest":{ - "type":"structure", - "members":{ - "NamePrefix":{"shape":"RuleName"}, - "NextToken":{"shape":"NextToken"}, - "Limit":{"shape":"LimitMax100"} - } - }, - "ListRulesResponse":{ - "type":"structure", - "members":{ - "Rules":{"shape":"RuleResponseList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "ListTargetsByRuleRequest":{ - "type":"structure", - "required":["Rule"], - "members":{ - "Rule":{"shape":"RuleName"}, - "NextToken":{"shape":"NextToken"}, - "Limit":{"shape":"LimitMax100"} - } - }, - "ListTargetsByRuleResponse":{ - "type":"structure", - "members":{ - "Targets":{"shape":"TargetList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "NextToken":{ - "type":"string", - "min":1, - "max":2048 - }, - "PutEventsRequest":{ - "type":"structure", - "required":["Entries"], - "members":{ - "Entries":{"shape":"PutEventsRequestEntryList"} - } - }, - "PutEventsRequestEntry":{ - "type":"structure", - "members":{ - "Time":{"shape":"EventTime"}, - "Source":{"shape":"String"}, - "Resources":{"shape":"EventResourceList"}, - "DetailType":{"shape":"String"}, - "Detail":{"shape":"String"} - } - }, - "PutEventsRequestEntryList":{ - "type":"list", - "member":{"shape":"PutEventsRequestEntry"}, - "min":1, - "max":10 - }, - "PutEventsResponse":{ - "type":"structure", - "members":{ - "FailedEntryCount":{"shape":"Integer"}, - "Entries":{"shape":"PutEventsResultEntryList"} - } - }, - "PutEventsResultEntry":{ - "type":"structure", - "members":{ - "EventId":{"shape":"EventId"}, - "ErrorCode":{"shape":"ErrorCode"}, - "ErrorMessage":{"shape":"ErrorMessage"} - } - }, - "PutEventsResultEntryList":{ - "type":"list", - "member":{"shape":"PutEventsResultEntry"} - }, - "PutRuleRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"RuleName"}, - "ScheduleExpression":{"shape":"ScheduleExpression"}, - "EventPattern":{"shape":"EventPattern"}, - "State":{"shape":"RuleState"}, - "Description":{"shape":"RuleDescription"}, - "RoleArn":{"shape":"RoleArn"} - } - }, - "PutRuleResponse":{ - "type":"structure", - "members":{ - "RuleArn":{"shape":"RuleArn"} - } - }, - "PutTargetsRequest":{ - "type":"structure", - "required":[ - "Rule", - "Targets" - ], - "members":{ - "Rule":{"shape":"RuleName"}, - "Targets":{"shape":"TargetList"} - } - }, - "PutTargetsResponse":{ - "type":"structure", - "members":{ - "FailedEntryCount":{"shape":"Integer"}, - "FailedEntries":{"shape":"PutTargetsResultEntryList"} - } - }, - "PutTargetsResultEntry":{ - "type":"structure", - "members":{ - "TargetId":{"shape":"TargetId"}, - "ErrorCode":{"shape":"ErrorCode"}, - "ErrorMessage":{"shape":"ErrorMessage"} - } - }, - "PutTargetsResultEntryList":{ - "type":"list", - "member":{"shape":"PutTargetsResultEntry"} - }, - "RemoveTargetsRequest":{ - "type":"structure", - "required":[ - "Rule", - "Ids" - ], - "members":{ - "Rule":{"shape":"RuleName"}, - "Ids":{"shape":"TargetIdList"} - } - }, - "RemoveTargetsResponse":{ - "type":"structure", - "members":{ - "FailedEntryCount":{"shape":"Integer"}, - "FailedEntries":{"shape":"RemoveTargetsResultEntryList"} - } - }, - "RemoveTargetsResultEntry":{ - "type":"structure", - "members":{ - "TargetId":{"shape":"TargetId"}, - "ErrorCode":{"shape":"ErrorCode"}, - "ErrorMessage":{"shape":"ErrorMessage"} - } - }, - "RemoveTargetsResultEntryList":{ - "type":"list", - "member":{"shape":"RemoveTargetsResultEntry"} - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "RoleArn":{ - "type":"string", - "min":1, - "max":1600 - }, - "Rule":{ - "type":"structure", - "members":{ - "Name":{"shape":"RuleName"}, - "Arn":{"shape":"RuleArn"}, - "EventPattern":{"shape":"EventPattern"}, - "State":{"shape":"RuleState"}, - "Description":{"shape":"RuleDescription"}, - "ScheduleExpression":{"shape":"ScheduleExpression"}, - "RoleArn":{"shape":"RoleArn"} - } - }, - "RuleArn":{ - "type":"string", - "min":1, - "max":1600 - }, - "RuleDescription":{ - "type":"string", - "max":512 - }, - "RuleName":{ - "type":"string", - "min":1, - "max":64, - "pattern":"[\\.\\-_A-Za-z0-9]+" - }, - "RuleNameList":{ - "type":"list", - "member":{"shape":"RuleName"} - }, - "RuleResponseList":{ - "type":"list", - "member":{"shape":"Rule"} - }, - "RuleState":{ - "type":"string", - "enum":[ - "ENABLED", - "DISABLED" - ] - }, - "ScheduleExpression":{ - "type":"string", - "max":256 - }, - "String":{"type":"string"}, - "Target":{ - "type":"structure", - "required":[ - "Id", - "Arn" - ], - "members":{ - "Id":{"shape":"TargetId"}, - "Arn":{"shape":"TargetArn"}, - "Input":{"shape":"TargetInput"}, - "InputPath":{"shape":"TargetInputPath"} - } - }, - "TargetArn":{ - "type":"string", - "min":1, - "max":1600 - }, - "TargetId":{ - "type":"string", - "min":1, - "max":64, - "pattern":"[\\.\\-_A-Za-z0-9]+" - }, - "TargetIdList":{ - "type":"list", - "member":{"shape":"TargetId"}, - "min":1, - "max":100 - }, - "TargetInput":{ - "type":"string", - "max":8192 - }, - "TargetInputPath":{ - "type":"string", - "max":256 - }, - "TargetList":{ - "type":"list", - "member":{"shape":"Target"} - }, - "TestEventPatternRequest":{ - "type":"structure", - "required":[ - "EventPattern", - "Event" - ], - "members":{ - "EventPattern":{"shape":"EventPattern"}, - "Event":{"shape":"String"} - } - }, - "TestEventPatternResponse":{ - "type":"structure", - "members":{ - "Result":{"shape":"Boolean"} - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/docs-2.json deleted file mode 100644 index fed64cd20..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/docs-2.json +++ /dev/null @@ -1,411 +0,0 @@ -{ - "version": "2.0", - "operations": { - "DeleteRule": "

    Deletes a rule. You must remove all targets from a rule using RemoveTargets before you can delete the rule.

    Note: When you delete a rule, incoming events might still continue to match to the deleted rule. Please allow a short period of time for changes to take effect.

    ", - "DescribeRule": "

    Describes the details of the specified rule.

    ", - "DisableRule": "

    Disables a rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.

    Note: When you disable a rule, incoming events might still continue to match to the disabled rule. Please allow a short period of time for changes to take effect.

    ", - "EnableRule": "

    Enables a rule. If the rule does not exist, the operation fails.

    Note: When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Please allow a short period of time for changes to take effect.

    ", - "ListRuleNamesByTarget": "

    Lists the names of the rules that the given target is put to. You can see which of the rules in Amazon CloudWatch Events can invoke a specific target in your account. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat ListRulesByTarget until the NextToken in the response is returned as null.

    ", - "ListRules": "

    Lists the Amazon CloudWatch Events rules in your account. You can either list all the rules or you can provide a prefix to match to the rule names. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat ListRules until the NextToken in the response is returned as null.

    ", - "ListTargetsByRule": "

    Lists of targets assigned to the rule.

    ", - "PutEvents": "

    Sends custom events to Amazon CloudWatch Events so that they can be matched to rules.

    ", - "PutRule": "

    Creates or updates a rule. Rules are enabled by default, or based on value of the State parameter. You can disable a rule using DisableRule.

    Note: When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Please allow a short period of time for changes to take effect.

    A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression, in which case the rule will trigger on matching events as well as on a schedule.

    Note: Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match.

    ", - "PutTargets": "

    Adds target(s) to a rule. Targets are the resources that can be invoked when a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets. Updates the target(s) if they are already associated with the role. In other words, if there is already a target with the given target ID, then the target associated with that ID is updated.

    In order to be able to make API calls against the resources you own, Amazon CloudWatch Events needs the appropriate permissions. For AWS Lambda and Amazon SNS resources, CloudWatch Events relies on resource-based policies. For Amazon Kinesis streams, CloudWatch Events relies on IAM roles. For more information, see Permissions for Sending Events to Targets in the Amazon CloudWatch Developer Guide.

    Input and InputPath are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target:

    • Neither Input nor InputPath is specified, then the entire event is passed to the target in JSON form.
    • InputPath is specified in the form of JSONPath (e.g. $.detail), then only the part of the event specified in the path is passed to the target (e.g. only the detail part of the event is passed).
    • Input is specified in the form of a valid JSON, then the matched event is overridden with this constant.

    Note: When you add targets to a rule, when the associated rule triggers, new or updated targets might not be immediately invoked. Please allow a short period of time for changes to take effect.

    ", - "RemoveTargets": "

    Removes target(s) from a rule so that when the rule is triggered, those targets will no longer be invoked.

    Note: When you remove a target, when the associated rule triggers, removed targets might still continue to be invoked. Please allow a short period of time for changes to take effect.

    ", - "TestEventPattern": "

    Tests whether an event pattern matches the provided event.

    Note: Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match.

    " - }, - "service": "

    Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a pre-determined schedule. For example, you can configure rules to:

    • Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state.
    • Direct specific API records from CloudTrail to an Amazon Kinesis stream for detailed analysis of potential security or availability risks.
    • Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.

    For more information about Amazon CloudWatch Events features, see the Amazon CloudWatch Developer Guide.

    ", - "shapes": { - "Boolean": { - "base": null, - "refs": { - "TestEventPatternResponse$Result": "

    Indicates whether the event matches the event pattern.

    " - } - }, - "ConcurrentModificationException": { - "base": "

    This exception occurs if there is concurrent modification on rule or target.

    ", - "refs": { - } - }, - "DeleteRuleRequest": { - "base": "

    Container for the parameters to the DeleteRule operation.

    ", - "refs": { - } - }, - "DescribeRuleRequest": { - "base": "

    Container for the parameters to the DescribeRule operation.

    ", - "refs": { - } - }, - "DescribeRuleResponse": { - "base": "

    The result of the DescribeRule operation.

    ", - "refs": { - } - }, - "DisableRuleRequest": { - "base": "

    Container for the parameters to the DisableRule operation.

    ", - "refs": { - } - }, - "EnableRuleRequest": { - "base": "

    Container for the parameters to the EnableRule operation.

    ", - "refs": { - } - }, - "ErrorCode": { - "base": null, - "refs": { - "PutEventsResultEntry$ErrorCode": "

    The error code representing why the event submission failed on this entry.

    ", - "PutTargetsResultEntry$ErrorCode": "

    The error code representing why the target submission failed on this entry.

    ", - "RemoveTargetsResultEntry$ErrorCode": "

    The error code representing why the target removal failed on this entry.

    " - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "PutEventsResultEntry$ErrorMessage": "

    The error message explaining why the event submission failed on this entry.

    ", - "PutTargetsResultEntry$ErrorMessage": "

    The error message explaining why the target submission failed on this entry.

    ", - "RemoveTargetsResultEntry$ErrorMessage": "

    The error message explaining why the target removal failed on this entry.

    " - } - }, - "EventId": { - "base": null, - "refs": { - "PutEventsResultEntry$EventId": "

    The ID of the event submitted to Amazon CloudWatch Events.

    " - } - }, - "EventPattern": { - "base": null, - "refs": { - "DescribeRuleResponse$EventPattern": "

    The event pattern.

    ", - "PutRuleRequest$EventPattern": "

    The event pattern.

    ", - "Rule$EventPattern": "

    The event pattern of the rule.

    ", - "TestEventPatternRequest$EventPattern": "

    The event pattern you want to test.

    " - } - }, - "EventResource": { - "base": null, - "refs": { - "EventResourceList$member": null - } - }, - "EventResourceList": { - "base": null, - "refs": { - "PutEventsRequestEntry$Resources": "

    AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.

    " - } - }, - "EventTime": { - "base": null, - "refs": { - "PutEventsRequestEntry$Time": "

    Timestamp of event, per RFC3339. If no timestamp is provided, the timestamp of the PutEvents call will be used.

    " - } - }, - "Integer": { - "base": null, - "refs": { - "PutEventsResponse$FailedEntryCount": "

    The number of failed entries.

    ", - "PutTargetsResponse$FailedEntryCount": "

    The number of failed entries.

    ", - "RemoveTargetsResponse$FailedEntryCount": "

    The number of failed entries.

    " - } - }, - "InternalException": { - "base": "

    This exception occurs due to unexpected causes.

    ", - "refs": { - } - }, - "InvalidEventPatternException": { - "base": "

    The event pattern is invalid.

    ", - "refs": { - } - }, - "LimitExceededException": { - "base": "

    This exception occurs if you try to create more rules or add more targets to a rule than allowed by default.

    ", - "refs": { - } - }, - "LimitMax100": { - "base": null, - "refs": { - "ListRuleNamesByTargetRequest$Limit": "

    The maximum number of results to return.

    ", - "ListRulesRequest$Limit": "

    The maximum number of results to return.

    ", - "ListTargetsByRuleRequest$Limit": "

    The maximum number of results to return.

    " - } - }, - "ListRuleNamesByTargetRequest": { - "base": "

    Container for the parameters to the ListRuleNamesByTarget operation.

    ", - "refs": { - } - }, - "ListRuleNamesByTargetResponse": { - "base": "

    The result of the ListRuleNamesByTarget operation.

    ", - "refs": { - } - }, - "ListRulesRequest": { - "base": "

    Container for the parameters to the ListRules operation.

    ", - "refs": { - } - }, - "ListRulesResponse": { - "base": "

    The result of the ListRules operation.

    ", - "refs": { - } - }, - "ListTargetsByRuleRequest": { - "base": "

    Container for the parameters to the ListTargetsByRule operation.

    ", - "refs": { - } - }, - "ListTargetsByRuleResponse": { - "base": "

    The result of the ListTargetsByRule operation.

    ", - "refs": { - } - }, - "NextToken": { - "base": null, - "refs": { - "ListRuleNamesByTargetRequest$NextToken": "

    The token returned by a previous call to indicate that there is more data available.

    ", - "ListRuleNamesByTargetResponse$NextToken": "

    Indicates that there are additional results to retrieve.

    ", - "ListRulesRequest$NextToken": "

    The token returned by a previous call to indicate that there is more data available.

    ", - "ListRulesResponse$NextToken": "

    Indicates that there are additional results to retrieve.

    ", - "ListTargetsByRuleRequest$NextToken": "

    The token returned by a previous call to indicate that there is more data available.

    ", - "ListTargetsByRuleResponse$NextToken": "

    Indicates that there are additional results to retrieve.

    " - } - }, - "PutEventsRequest": { - "base": "

    Container for the parameters to the PutEvents operation.

    ", - "refs": { - } - }, - "PutEventsRequestEntry": { - "base": "

    Contains information about the event to be used in PutEvents.

    ", - "refs": { - "PutEventsRequestEntryList$member": null - } - }, - "PutEventsRequestEntryList": { - "base": null, - "refs": { - "PutEventsRequest$Entries": "

    The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.

    " - } - }, - "PutEventsResponse": { - "base": "

    The result of the PutEvents operation.

    ", - "refs": { - } - }, - "PutEventsResultEntry": { - "base": "

    A PutEventsResult contains a list of PutEventsResultEntry.

    ", - "refs": { - "PutEventsResultEntryList$member": null - } - }, - "PutEventsResultEntryList": { - "base": null, - "refs": { - "PutEventsResponse$Entries": "

    A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.

    " - } - }, - "PutRuleRequest": { - "base": "

    Container for the parameters to the PutRule operation.

    ", - "refs": { - } - }, - "PutRuleResponse": { - "base": "

    The result of the PutRule operation.

    ", - "refs": { - } - }, - "PutTargetsRequest": { - "base": "

    Container for the parameters to the PutTargets operation.

    ", - "refs": { - } - }, - "PutTargetsResponse": { - "base": "

    The result of the PutTargets operation.

    ", - "refs": { - } - }, - "PutTargetsResultEntry": { - "base": "

    A PutTargetsResult contains a list of PutTargetsResultEntry.

    ", - "refs": { - "PutTargetsResultEntryList$member": null - } - }, - "PutTargetsResultEntryList": { - "base": null, - "refs": { - "PutTargetsResponse$FailedEntries": "

    An array of failed target entries.

    " - } - }, - "RemoveTargetsRequest": { - "base": "

    Container for the parameters to the RemoveTargets operation.

    ", - "refs": { - } - }, - "RemoveTargetsResponse": { - "base": "

    The result of the RemoveTargets operation.

    ", - "refs": { - } - }, - "RemoveTargetsResultEntry": { - "base": "

    The ID of the target requested to be removed from the rule by Amazon CloudWatch Events.

    ", - "refs": { - "RemoveTargetsResultEntryList$member": null - } - }, - "RemoveTargetsResultEntryList": { - "base": null, - "refs": { - "RemoveTargetsResponse$FailedEntries": "

    An array of failed target entries.

    " - } - }, - "ResourceNotFoundException": { - "base": "

    The rule does not exist.

    ", - "refs": { - } - }, - "RoleArn": { - "base": null, - "refs": { - "DescribeRuleResponse$RoleArn": "

    The Amazon Resource Name (ARN) of the IAM role associated with the rule.

    ", - "PutRuleRequest$RoleArn": "

    The Amazon Resource Name (ARN) of the IAM role associated with the rule.

    ", - "Rule$RoleArn": "

    The Amazon Resource Name (ARN) associated with the role that is used for target invocation.

    " - } - }, - "Rule": { - "base": "

    Contains information about a rule in Amazon CloudWatch Events. A ListRulesResult contains a list of Rules.

    ", - "refs": { - "RuleResponseList$member": null - } - }, - "RuleArn": { - "base": null, - "refs": { - "DescribeRuleResponse$Arn": "

    The Amazon Resource Name (ARN) associated with the rule.

    ", - "PutRuleResponse$RuleArn": "

    The Amazon Resource Name (ARN) that identifies the rule.

    ", - "Rule$Arn": "

    The Amazon Resource Name (ARN) of the rule.

    " - } - }, - "RuleDescription": { - "base": null, - "refs": { - "DescribeRuleResponse$Description": "

    The rule's description.

    ", - "PutRuleRequest$Description": "

    A description of the rule.

    ", - "Rule$Description": "

    The description of the rule.

    " - } - }, - "RuleName": { - "base": null, - "refs": { - "DeleteRuleRequest$Name": "

    The name of the rule to be deleted.

    ", - "DescribeRuleRequest$Name": "

    The name of the rule you want to describe details for.

    ", - "DescribeRuleResponse$Name": "

    The rule's name.

    ", - "DisableRuleRequest$Name": "

    The name of the rule you want to disable.

    ", - "EnableRuleRequest$Name": "

    The name of the rule that you want to enable.

    ", - "ListRulesRequest$NamePrefix": "

    The prefix matching the rule name.

    ", - "ListTargetsByRuleRequest$Rule": "

    The name of the rule whose targets you want to list.

    ", - "PutRuleRequest$Name": "

    The name of the rule that you are creating or updating.

    ", - "PutTargetsRequest$Rule": "

    The name of the rule you want to add targets to.

    ", - "RemoveTargetsRequest$Rule": "

    The name of the rule you want to remove targets from.

    ", - "Rule$Name": "

    The rule's name.

    ", - "RuleNameList$member": null - } - }, - "RuleNameList": { - "base": null, - "refs": { - "ListRuleNamesByTargetResponse$RuleNames": "

    List of rules names that can invoke the given target.

    " - } - }, - "RuleResponseList": { - "base": null, - "refs": { - "ListRulesResponse$Rules": "

    List of rules matching the specified criteria.

    " - } - }, - "RuleState": { - "base": null, - "refs": { - "DescribeRuleResponse$State": "

    Specifies whether the rule is enabled or disabled.

    ", - "PutRuleRequest$State": "

    Indicates whether the rule is enabled or disabled.

    ", - "Rule$State": "

    The rule's state.

    " - } - }, - "ScheduleExpression": { - "base": null, - "refs": { - "DescribeRuleResponse$ScheduleExpression": "

    The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\".

    ", - "PutRuleRequest$ScheduleExpression": "

    The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\".

    ", - "Rule$ScheduleExpression": "

    The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\".

    " - } - }, - "String": { - "base": null, - "refs": { - "PutEventsRequestEntry$Source": "

    The source of the event.

    ", - "PutEventsRequestEntry$DetailType": "

    Free-form string used to decide what fields to expect in the event detail.

    ", - "PutEventsRequestEntry$Detail": "

    In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.

    ", - "TestEventPatternRequest$Event": "

    The event in the JSON format to test against the event pattern.

    " - } - }, - "Target": { - "base": "

    Targets are the resources that can be invoked when a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets.

    Input and InputPath are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target:

    • Neither Input nor InputPath is specified, then the entire event is passed to the target in JSON form.
    • InputPath is specified in the form of JSONPath (e.g. $.detail), then only the part of the event specified in the path is passed to the target (e.g. only the detail part of the event is passed).
    • Input is specified in the form of a valid JSON, then the matched event is overridden with this constant.
    ", - "refs": { - "TargetList$member": null - } - }, - "TargetArn": { - "base": null, - "refs": { - "ListRuleNamesByTargetRequest$TargetArn": "

    The Amazon Resource Name (ARN) of the target resource that you want to list the rules for.

    ", - "Target$Arn": "

    The Amazon Resource Name (ARN) associated of the target.

    " - } - }, - "TargetId": { - "base": null, - "refs": { - "PutTargetsResultEntry$TargetId": "

    The ID of the target submitted to Amazon CloudWatch Events.

    ", - "RemoveTargetsResultEntry$TargetId": "

    The ID of the target requested to be removed by Amazon CloudWatch Events.

    ", - "Target$Id": "

    The unique target assignment ID.

    ", - "TargetIdList$member": null - } - }, - "TargetIdList": { - "base": null, - "refs": { - "RemoveTargetsRequest$Ids": "

    The list of target IDs to remove from the rule.

    " - } - }, - "TargetInput": { - "base": null, - "refs": { - "Target$Input": "

    Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format.

    " - } - }, - "TargetInputPath": { - "base": null, - "refs": { - "Target$InputPath": "

    The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. For more information about JSON paths, see JSONPath.

    " - } - }, - "TargetList": { - "base": null, - "refs": { - "ListTargetsByRuleResponse$Targets": "

    Lists the targets assigned to the rule.

    ", - "PutTargetsRequest$Targets": "

    List of targets you want to update or add to the rule.

    " - } - }, - "TestEventPatternRequest": { - "base": "

    Container for the parameters to the TestEventPattern operation.

    ", - "refs": { - } - }, - "TestEventPatternResponse": { - "base": "

    The result of the TestEventPattern operation.

    ", - "refs": { - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/examples-1.json deleted file mode 100644 index faff76894..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version":"1.0", - "examples":{ - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/api-2.json deleted file mode 100644 index b7be95052..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/firehose/2015-08-04/api-2.json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-08-04", - "endpointPrefix":"firehose", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"Firehose", - "serviceFullName":"Amazon Kinesis Firehose", - "signatureVersion":"v4", - "targetPrefix":"Firehose_20150804" - }, - "operations":{ - "CreateDeliveryStream":{ - "name":"CreateDeliveryStream", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDeliveryStreamInput"}, - "output":{"shape":"CreateDeliveryStreamOutput"}, - "errors":[ - {"shape":"InvalidArgumentException"}, - {"shape":"LimitExceededException"}, - {"shape":"ResourceInUseException"} - ] - }, - "DeleteDeliveryStream":{ - "name":"DeleteDeliveryStream", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDeliveryStreamInput"}, - "output":{"shape":"DeleteDeliveryStreamOutput"}, - "errors":[ - {"shape":"ResourceInUseException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "DescribeDeliveryStream":{ - "name":"DescribeDeliveryStream", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDeliveryStreamInput"}, - "output":{"shape":"DescribeDeliveryStreamOutput"}, - "errors":[ - {"shape":"ResourceNotFoundException"} - ] - }, - "ListDeliveryStreams":{ - "name":"ListDeliveryStreams", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListDeliveryStreamsInput"}, - "output":{"shape":"ListDeliveryStreamsOutput"} - }, - "PutRecord":{ - "name":"PutRecord", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutRecordInput"}, - "output":{"shape":"PutRecordOutput"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"ServiceUnavailableException"} - ] - }, - "PutRecordBatch":{ - "name":"PutRecordBatch", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutRecordBatchInput"}, - "output":{"shape":"PutRecordBatchOutput"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidArgumentException"}, - {"shape":"ServiceUnavailableException"} - ] - }, - "UpdateDestination":{ - "name":"UpdateDestination", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateDestinationInput"}, - "output":{"shape":"UpdateDestinationOutput"}, - "errors":[ - {"shape":"InvalidArgumentException"}, - {"shape":"ResourceInUseException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConcurrentModificationException"} - ] - } - }, - "shapes":{ - "AWSKMSKeyARN":{ - "type":"string", - "max":512, - "min":1, - "pattern":"arn:.*" - }, - "BooleanObject":{"type":"boolean"}, - "BucketARN":{ - "type":"string", - "max":2048, - "min":1, - "pattern":"arn:.*" - }, - "BufferingHints":{ - "type":"structure", - "members":{ - "SizeInMBs":{"shape":"SizeInMBs"}, - "IntervalInSeconds":{"shape":"IntervalInSeconds"} - } - }, - "CloudWatchLoggingOptions":{ - "type":"structure", - "members":{ - "Enabled":{"shape":"BooleanObject"}, - "LogGroupName":{"shape":"LogGroupName"}, - "LogStreamName":{"shape":"LogStreamName"} - } - }, - "ClusterJDBCURL":{ - "type":"string", - "min":1, - "pattern":"jdbc:(redshift|postgresql)://((?!-)[A-Za-z0-9-]{1,63}(?Amazon Kinesis Firehose API Reference

    Amazon Kinesis Firehose is a fully-managed service that delivers real-time streaming data to destinations such as Amazon Simple Storage Service (Amazon S3), Amazon Elasticsearch Service (Amazon ES), and Amazon Redshift.

    ", - "operations": { - "CreateDeliveryStream": "

    Creates a delivery stream.

    CreateDeliveryStream is an asynchronous operation that immediately returns. The initial status of the delivery stream is CREATING. After the delivery stream is created, its status is ACTIVE and it now accepts data. Attempts to send data to a delivery stream that is not in the ACTIVE state cause an exception. To check the state of a delivery stream, use DescribeDeliveryStream.

    The name of a delivery stream identifies it. You can't have two delivery streams with the same name in the same region. Two delivery streams in different AWS accounts or different regions in the same AWS account can have the same name.

    By default, you can create up to 20 delivery streams per region.

    A delivery stream can only be configured with a single destination, Amazon S3, Amazon Elasticsearch Service, or Amazon Redshift. For correct CreateDeliveryStream request syntax, specify only one destination configuration parameter: either S3DestinationConfiguration, ElasticsearchDestinationConfiguration, or RedshiftDestinationConfiguration.

    As part of S3DestinationConfiguration, optional values BufferingHints, EncryptionConfiguration, and CompressionFormat can be provided. By default, if no BufferingHints value is provided, Firehose buffers data up to 5 MB or for 5 minutes, whichever condition is satisfied first. Note that BufferingHints is a hint, so there are some cases where the service cannot adhere to these conditions strictly; for example, record boundaries are such that the size is a little over or under the configured buffering size. By default, no encryption is performed. We strongly recommend that you enable encryption to ensure secure data storage in Amazon S3.

    A few notes about RedshiftDestinationConfiguration:

    • An Amazon Redshift destination requires an S3 bucket as intermediate location, as Firehose first delivers data to S3 and then uses COPY syntax to load data into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration parameter element.

    • The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats.

    • We strongly recommend that the username and password provided is used exclusively for Firehose purposes, and that the permissions for the account are restricted for Amazon Redshift INSERT permissions.

    Firehose assumes the IAM role that is configured as part of destinations. The IAM role should allow the Firehose principal to assume the role, and the role should have permissions that allows the service to deliver the data. For more information, see Amazon S3 Bucket Access in the Amazon Kinesis Firehose Developer Guide.

    ", - "DeleteDeliveryStream": "

    Deletes a delivery stream and its data.

    You can delete a delivery stream only if it is in ACTIVE or DELETING state, and not in the CREATING state. While the deletion request is in process, the delivery stream is in the DELETING state.

    To check the state of a delivery stream, use DescribeDeliveryStream.

    While the delivery stream is DELETING state, the service may continue to accept the records, but the service doesn't make any guarantees with respect to delivering the data. Therefore, as a best practice, you should first stop any applications that are sending records before deleting a delivery stream.

    ", - "DescribeDeliveryStream": "

    Describes the specified delivery stream and gets the status. For example, after your delivery stream is created, call DescribeDeliveryStream to see if the delivery stream is ACTIVE and therefore ready for data to be sent to it.

    ", - "ListDeliveryStreams": "

    Lists your delivery streams.

    The number of delivery streams might be too large to return using a single call to ListDeliveryStreams. You can limit the number of delivery streams returned, using the Limit parameter. To determine whether there are more delivery streams to list, check the value of HasMoreDeliveryStreams in the output. If there are more delivery streams to list, you can request them by specifying the name of the last delivery stream returned in the call in the ExclusiveStartDeliveryStreamName parameter of a subsequent call.

    ", - "PutRecord": "

    Writes a single data record into an Amazon Kinesis Firehose delivery stream. To write multiple data records into a delivery stream, use PutRecordBatch. Applications using these operations are referred to as producers.

    By default, each delivery stream can take in up to 2,000 transactions per second, 5,000 records per second, or 5 MB per second. Note that if you use PutRecord and PutRecordBatch, the limits are an aggregate across these two operations for each delivery stream. For more information about limits and how to request an increase, see Amazon Kinesis Firehose Limits.

    You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KB in size, and any kind of data, for example, a segment from a log file, geographic location data, web site clickstream data, etc.

    Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\\n) or some other character unique within the data. This allows the consumer application(s) to parse individual data items when reading the data from the destination.

    The PutRecord operation returns a RecordId, which is a unique string assigned to each record. Producer applications can use this ID for purposes such as auditability and investigation.

    If the PutRecord operation throws a ServiceUnavailableException, back off and retry. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream.

    Data records sent to Firehose are stored for 24 hours from the time they are added to a delivery stream as it attempts to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available.

    ", - "PutRecordBatch": "

    Writes multiple data records into a delivery stream in a single call, which can achieve higher throughput per producer than when writing single records. To write single data records into a delivery stream, use PutRecord. Applications using these operations are referred to as producers.

    Each PutRecordBatch request supports up to 500 records. Each record in the request can be as large as 1,000 KB (before 64-bit encoding), up to a limit of 4 MB for the entire request. By default, each delivery stream can take in up to 2,000 transactions per second, 5,000 records per second, or 5 MB per second. Note that if you use PutRecord and PutRecordBatch, the limits are an aggregate across these two operations for each delivery stream. For more information about limits and how to request an increase, see Amazon Kinesis Firehose Limits.

    You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KB in size, and any kind of data, for example, a segment from a log file, geographic location data, web site clickstream data, and so on.

    Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\\n) or some other character unique within the data. This allows the consumer application(s) to parse individual data items when reading the data from the destination.

    The PutRecordBatch response includes a count of any failed records, FailedPutCount, and an array of responses, RequestResponses. The FailedPutCount value is a count of records that failed. Each entry in the RequestResponses array gives additional information of the processed record. Each entry in RequestResponses directly correlates with a record in the request array using the same ordering, from the top to the bottom of the request and response. RequestResponses always includes the same number of records as the request array. RequestResponses both successfully and unsuccessfully processed records. Firehose attempts to process all records in each PutRecordBatch request. A single record failure does not stop the processing of subsequent records.

    A successfully processed record includes a RecordId value, which is a unique value identified for the record. An unsuccessfully processed record includes ErrorCode and ErrorMessage values. ErrorCode reflects the type of error and is one of the following values: ServiceUnavailable or InternalFailure. ErrorMessage provides more detailed information about the error.

    If FailedPutCount is greater than 0 (zero), retry the request. A retry of the entire batch of records is possible; however, we strongly recommend that you inspect the entire response and resend only those records that failed processing. This minimizes duplicate records and also reduces the total bytes sent (and corresponding charges).

    If the PutRecordBatch operation throws a ServiceUnavailableException, back off and retry. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream.

    Data records sent to Firehose are stored for 24 hours from the time they are added to a delivery stream as it attempts to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available.

    ", - "UpdateDestination": "

    Updates the specified destination of the specified delivery stream. Note: Switching between Elasticsearch and other services is not supported. For Elasticsearch destination, you can only update an existing Elasticsearch destination with this operation.

    This operation can be used to change the destination type (for example, to replace the Amazon S3 destination with Amazon Redshift) or change the parameters associated with a given destination (for example, to change the bucket name of the Amazon S3 destination). The update may not occur immediately. The target delivery stream remains active while the configurations are updated, so data writes to the delivery stream can continue during this process. The updated configurations are normally effective within a few minutes.

    If the destination type is the same, Firehose merges the configuration parameters specified in the UpdateDestination request with the destination configuration that already exists on the delivery stream. If any of the parameters are not specified in the update request, then the existing configuration parameters are retained. For example, in the Amazon S3 destination, if EncryptionConfiguration is not specified then the existing EncryptionConfiguration is maintained on the destination.

    If the destination type is not the same, for example, changing the destination from Amazon S3 to Amazon Redshift, Firehose does not merge any parameters. In this case, all parameters must be specified.

    Firehose uses the CurrentDeliveryStreamVersionId to avoid race conditions and conflicting merges. This is a required field in every request and the service only updates the configuration if the existing configuration matches the VersionId. After the update is applied successfully, the VersionId is updated, which can be retrieved with the DescribeDeliveryStream operation. The new VersionId should be uses to set CurrentDeliveryStreamVersionId in the next UpdateDestination operation.

    " - }, - "shapes": { - "AWSKMSKeyARN": { - "base": null, - "refs": { - "KMSEncryptionConfig$AWSKMSKeyARN": "

    The ARN of the encryption key. Must belong to the same region as the destination Amazon S3 bucket.

    " - } - }, - "BooleanObject": { - "base": null, - "refs": { - "CloudWatchLoggingOptions$Enabled": "

    Enables or disables CloudWatch logging.

    ", - "DeliveryStreamDescription$HasMoreDestinations": "

    Indicates whether there are more destinations available to list.

    ", - "ListDeliveryStreamsOutput$HasMoreDeliveryStreams": "

    Indicates whether there are more delivery streams available to list.

    " - } - }, - "BucketARN": { - "base": null, - "refs": { - "S3DestinationConfiguration$BucketARN": "

    The ARN of the S3 bucket.

    ", - "S3DestinationDescription$BucketARN": "

    The ARN of the S3 bucket.

    ", - "S3DestinationUpdate$BucketARN": "

    The ARN of the S3 bucket.

    " - } - }, - "BufferingHints": { - "base": "

    Describes hints for the buffering to perform before delivering data to the destination. Please note that these options are treated as hints, and therefore Firehose may choose to use different values when it is optimal.

    ", - "refs": { - "S3DestinationConfiguration$BufferingHints": "

    The buffering option. If no value is specified, BufferingHints object default values are used.

    ", - "S3DestinationDescription$BufferingHints": "

    The buffering option. If no value is specified, BufferingHints object default values are used.

    ", - "S3DestinationUpdate$BufferingHints": "

    The buffering option. If no value is specified, BufferingHints object default values are used.

    " - } - }, - "CloudWatchLoggingOptions": { - "base": "

    Describes CloudWatch logging options for your delivery stream.

    ", - "refs": { - "ElasticsearchDestinationConfiguration$CloudWatchLoggingOptions": "

    Describes CloudWatch logging options for your delivery stream.

    ", - "ElasticsearchDestinationDescription$CloudWatchLoggingOptions": "

    CloudWatch logging options.

    ", - "ElasticsearchDestinationUpdate$CloudWatchLoggingOptions": "

    Describes CloudWatch logging options for your delivery stream.

    ", - "RedshiftDestinationConfiguration$CloudWatchLoggingOptions": "

    Describes CloudWatch logging options for your delivery stream.

    ", - "RedshiftDestinationDescription$CloudWatchLoggingOptions": "

    Describes CloudWatch logging options for your delivery stream.

    ", - "RedshiftDestinationUpdate$CloudWatchLoggingOptions": "

    Describes CloudWatch logging options for your delivery stream.

    ", - "S3DestinationConfiguration$CloudWatchLoggingOptions": "

    Describes CloudWatch logging options for your delivery stream.

    ", - "S3DestinationDescription$CloudWatchLoggingOptions": "

    Describes CloudWatch logging options for your delivery stream.

    ", - "S3DestinationUpdate$CloudWatchLoggingOptions": "

    Describes CloudWatch logging options for your delivery stream.

    " - } - }, - "ClusterJDBCURL": { - "base": null, - "refs": { - "RedshiftDestinationConfiguration$ClusterJDBCURL": "

    The database connection string.

    ", - "RedshiftDestinationDescription$ClusterJDBCURL": "

    The database connection string.

    ", - "RedshiftDestinationUpdate$ClusterJDBCURL": "

    The database connection string.

    " - } - }, - "CompressionFormat": { - "base": null, - "refs": { - "S3DestinationConfiguration$CompressionFormat": "

    The compression format. If no value is specified, the default is UNCOMPRESSED.

    The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket.

    ", - "S3DestinationDescription$CompressionFormat": "

    The compression format. If no value is specified, the default is NOCOMPRESSION.

    ", - "S3DestinationUpdate$CompressionFormat": "

    The compression format. If no value is specified, the default is NOCOMPRESSION.

    The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket.

    " - } - }, - "ConcurrentModificationException": { - "base": "

    Another modification has already happened. Fetch VersionId again and use it to update the destination.

    ", - "refs": { - } - }, - "CopyCommand": { - "base": "

    Describes a COPY command for Amazon Redshift.

    ", - "refs": { - "RedshiftDestinationConfiguration$CopyCommand": "

    The COPY command.

    ", - "RedshiftDestinationDescription$CopyCommand": "

    The COPY command.

    ", - "RedshiftDestinationUpdate$CopyCommand": "

    The COPY command.

    " - } - }, - "CopyOptions": { - "base": null, - "refs": { - "CopyCommand$CopyOptions": "

    Optional parameters to use with the Amazon Redshift COPY command. For more information, see the \"Optional Parameters\" section of Amazon Redshift COPY command. Some possible examples that would apply to Firehose are as follows.

    delimiter '\\t' lzop; - fields are delimited with \"\\t\" (TAB character) and compressed using lzop.

    delimiter '| - fields are delimited with \"|\" (this is the default delimiter).

    delimiter '|' escape - the delimiter should be escaped.

    fixedwidth 'venueid:3,venuename:25,venuecity:12,venuestate:2,venueseats:6' - fields are fixed width in the source, with each width specified after every column in the table.

    JSON 's3://mybucket/jsonpaths.txt' - data is in JSON format, and the path specified is the format of the data.

    For more examples, see Amazon Redshift COPY command examples.

    " - } - }, - "CreateDeliveryStreamInput": { - "base": "

    Contains the parameters for CreateDeliveryStream.

    ", - "refs": { - } - }, - "CreateDeliveryStreamOutput": { - "base": "

    Contains the output of CreateDeliveryStream.

    ", - "refs": { - } - }, - "Data": { - "base": null, - "refs": { - "Record$Data": "

    The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KB.

    " - } - }, - "DataTableColumns": { - "base": null, - "refs": { - "CopyCommand$DataTableColumns": "

    A comma-separated list of column names.

    " - } - }, - "DataTableName": { - "base": null, - "refs": { - "CopyCommand$DataTableName": "

    The name of the target table. The table must already exist in the database.

    " - } - }, - "DeleteDeliveryStreamInput": { - "base": "

    Contains the parameters for DeleteDeliveryStream.

    ", - "refs": { - } - }, - "DeleteDeliveryStreamOutput": { - "base": "

    Contains the output of DeleteDeliveryStream.

    ", - "refs": { - } - }, - "DeliveryStreamARN": { - "base": null, - "refs": { - "CreateDeliveryStreamOutput$DeliveryStreamARN": "

    The ARN of the delivery stream.

    ", - "DeliveryStreamDescription$DeliveryStreamARN": "

    The Amazon Resource Name (ARN) of the delivery stream.

    " - } - }, - "DeliveryStreamDescription": { - "base": "

    Contains information about a delivery stream.

    ", - "refs": { - "DescribeDeliveryStreamOutput$DeliveryStreamDescription": "

    Information about the delivery stream.

    " - } - }, - "DeliveryStreamName": { - "base": null, - "refs": { - "CreateDeliveryStreamInput$DeliveryStreamName": "

    The name of the delivery stream.

    ", - "DeleteDeliveryStreamInput$DeliveryStreamName": "

    The name of the delivery stream.

    ", - "DeliveryStreamDescription$DeliveryStreamName": "

    The name of the delivery stream.

    ", - "DeliveryStreamNameList$member": null, - "DescribeDeliveryStreamInput$DeliveryStreamName": "

    The name of the delivery stream.

    ", - "ListDeliveryStreamsInput$ExclusiveStartDeliveryStreamName": "

    The name of the delivery stream to start the list with.

    ", - "PutRecordBatchInput$DeliveryStreamName": "

    The name of the delivery stream.

    ", - "PutRecordInput$DeliveryStreamName": "

    The name of the delivery stream.

    ", - "UpdateDestinationInput$DeliveryStreamName": "

    The name of the delivery stream.

    " - } - }, - "DeliveryStreamNameList": { - "base": null, - "refs": { - "ListDeliveryStreamsOutput$DeliveryStreamNames": "

    The names of the delivery streams.

    " - } - }, - "DeliveryStreamStatus": { - "base": null, - "refs": { - "DeliveryStreamDescription$DeliveryStreamStatus": "

    The status of the delivery stream.

    " - } - }, - "DeliveryStreamVersionId": { - "base": null, - "refs": { - "DeliveryStreamDescription$VersionId": "

    Used when calling the UpdateDestination operation. Each time the destination is updated for the delivery stream, the VersionId is changed, and the current VersionId is required when updating the destination. This is so that the service knows it is applying the changes to the correct version of the delivery stream.

    ", - "UpdateDestinationInput$CurrentDeliveryStreamVersionId": "

    Obtain this value from the VersionId result of the DeliveryStreamDescription operation. This value is required, and helps the service to perform conditional operations. For example, if there is a interleaving update and this value is null, then the update destination fails. After the update is successful, the VersionId value is updated. The service then performs a merge of the old configuration with the new configuration.

    " - } - }, - "DescribeDeliveryStreamInput": { - "base": "

    Contains the parameters for DescribeDeliveryStream.

    ", - "refs": { - } - }, - "DescribeDeliveryStreamInputLimit": { - "base": null, - "refs": { - "DescribeDeliveryStreamInput$Limit": "

    The limit on the number of destinations to return. Currently, you can have one destination per delivery stream.

    " - } - }, - "DescribeDeliveryStreamOutput": { - "base": "

    Contains the output of DescribeDeliveryStream.

    ", - "refs": { - } - }, - "DestinationDescription": { - "base": "

    Describes the destination for a delivery stream.

    ", - "refs": { - "DestinationDescriptionList$member": null - } - }, - "DestinationDescriptionList": { - "base": null, - "refs": { - "DeliveryStreamDescription$Destinations": "

    The destinations.

    " - } - }, - "DestinationId": { - "base": null, - "refs": { - "DescribeDeliveryStreamInput$ExclusiveStartDestinationId": "

    Specifies the destination ID to start returning the destination information. Currently Firehose supports one destination per delivery stream.

    ", - "DestinationDescription$DestinationId": "

    The ID of the destination.

    ", - "UpdateDestinationInput$DestinationId": "

    The ID of the destination.

    " - } - }, - "ElasticsearchBufferingHints": { - "base": "

    Describes the buffering to perform before delivering data to the Amazon ES destination.

    ", - "refs": { - "ElasticsearchDestinationConfiguration$BufferingHints": "

    Buffering options. If no value is specified, ElasticsearchBufferingHints object default values are used.

    ", - "ElasticsearchDestinationDescription$BufferingHints": "

    Buffering options.

    ", - "ElasticsearchDestinationUpdate$BufferingHints": "

    Buffering options. If no value is specified, ElasticsearchBufferingHints object default values are used.

    " - } - }, - "ElasticsearchBufferingIntervalInSeconds": { - "base": null, - "refs": { - "ElasticsearchBufferingHints$IntervalInSeconds": "

    Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300 (5 minutes).

    " - } - }, - "ElasticsearchBufferingSizeInMBs": { - "base": null, - "refs": { - "ElasticsearchBufferingHints$SizeInMBs": "

    Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.

    We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, set SizeInMBs to be 10 MB or higher.

    " - } - }, - "ElasticsearchDestinationConfiguration": { - "base": "

    Describes the configuration of a destination in Amazon ES.

    ", - "refs": { - "CreateDeliveryStreamInput$ElasticsearchDestinationConfiguration": "

    The destination in Amazon ES. This value cannot be specified if Amazon S3 or Amazon Redshift is the desired destination (see restrictions listed above).

    " - } - }, - "ElasticsearchDestinationDescription": { - "base": "

    The destination description in Amazon ES.

    ", - "refs": { - "DestinationDescription$ElasticsearchDestinationDescription": "

    The destination in Amazon ES.

    " - } - }, - "ElasticsearchDestinationUpdate": { - "base": "

    Describes an update for a destination in Amazon ES.

    ", - "refs": { - "UpdateDestinationInput$ElasticsearchDestinationUpdate": "

    Describes an update for a destination in Amazon ES.

    " - } - }, - "ElasticsearchDomainARN": { - "base": null, - "refs": { - "ElasticsearchDestinationConfiguration$DomainARN": "

    The ARN of the Amazon ES domain. The IAM role must have permission for DescribeElasticsearchDomain, DescribeElasticsearchDomains , and DescribeElasticsearchDomainConfig after assuming RoleARN.

    ", - "ElasticsearchDestinationDescription$DomainARN": "

    The ARN of the Amazon ES domain.

    ", - "ElasticsearchDestinationUpdate$DomainARN": "

    The ARN of the Amazon ES domain. The IAM role must have permission for DescribeElasticsearchDomain, DescribeElasticsearchDomains , and DescribeElasticsearchDomainConfig after assuming RoleARN.

    " - } - }, - "ElasticsearchIndexName": { - "base": null, - "refs": { - "ElasticsearchDestinationConfiguration$IndexName": "

    The Elasticsearch index name.

    ", - "ElasticsearchDestinationDescription$IndexName": "

    The Elasticsearch index name.

    ", - "ElasticsearchDestinationUpdate$IndexName": "

    The Elasticsearch index name.

    " - } - }, - "ElasticsearchIndexRotationPeriod": { - "base": null, - "refs": { - "ElasticsearchDestinationConfiguration$IndexRotationPeriod": "

    The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate expiration of old data. For more information, see Index Rotation for Amazon Elasticsearch Service Destination. Default value is OneDay.

    ", - "ElasticsearchDestinationDescription$IndexRotationPeriod": "

    The Elasticsearch index rotation period

    ", - "ElasticsearchDestinationUpdate$IndexRotationPeriod": "

    The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate the expiration of old data. For more information, see Index Rotation for Amazon Elasticsearch Service Destination. Default value is OneDay.

    " - } - }, - "ElasticsearchRetryDurationInSeconds": { - "base": null, - "refs": { - "ElasticsearchRetryOptions$DurationInSeconds": "

    After an initial failure to deliver to Amazon ES, the total amount of time during which Firehose re-attempts delivery (including the first attempt). After this time has elapsed, the failed documents are written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 (zero) results in no retries.

    " - } - }, - "ElasticsearchRetryOptions": { - "base": "

    Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon ES.

    ", - "refs": { - "ElasticsearchDestinationConfiguration$RetryOptions": "

    Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon ES. Default value is 300 (5 minutes).

    ", - "ElasticsearchDestinationDescription$RetryOptions": "

    Elasticsearch retry options.

    ", - "ElasticsearchDestinationUpdate$RetryOptions": "

    Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon ES. Default value is 300 (5 minutes).

    " - } - }, - "ElasticsearchS3BackupMode": { - "base": null, - "refs": { - "ElasticsearchDestinationConfiguration$S3BackupMode": "

    Defines how documents should be delivered to Amazon S3. When set to FailedDocumentsOnly, Firehose writes any documents that could not be indexed to the configured Amazon S3 destination, with elasticsearch-failed/ appended to the key prefix. When set to AllDocuments, Firehose delivers all incoming records to Amazon S3, and also writes failed documents with elasticsearch-failed/ appended to the prefix. For more information, see Amazon S3 Backup for Amazon Elasticsearch Service Destination. Default value is FailedDocumentsOnly.

    ", - "ElasticsearchDestinationDescription$S3BackupMode": "

    Amazon S3 backup mode.

    " - } - }, - "ElasticsearchTypeName": { - "base": null, - "refs": { - "ElasticsearchDestinationConfiguration$TypeName": "

    The Elasticsearch type name.

    ", - "ElasticsearchDestinationDescription$TypeName": "

    The Elasticsearch type name.

    ", - "ElasticsearchDestinationUpdate$TypeName": "

    The Elasticsearch type name.

    " - } - }, - "EncryptionConfiguration": { - "base": "

    Describes the encryption for a destination in Amazon S3.

    ", - "refs": { - "S3DestinationConfiguration$EncryptionConfiguration": "

    The encryption configuration. If no value is specified, the default is no encryption.

    ", - "S3DestinationDescription$EncryptionConfiguration": "

    The encryption configuration. If no value is specified, the default is no encryption.

    ", - "S3DestinationUpdate$EncryptionConfiguration": "

    The encryption configuration. If no value is specified, the default is no encryption.

    " - } - }, - "ErrorCode": { - "base": null, - "refs": { - "PutRecordBatchResponseEntry$ErrorCode": "

    The error code for an individual record result.

    " - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "ConcurrentModificationException$message": "

    A message that provides information about the error.

    ", - "InvalidArgumentException$message": "

    A message that provides information about the error.

    ", - "LimitExceededException$message": "

    A message that provides information about the error.

    ", - "PutRecordBatchResponseEntry$ErrorMessage": "

    The error message for an individual record result.

    ", - "ResourceInUseException$message": "

    A message that provides information about the error.

    ", - "ResourceNotFoundException$message": "

    A message that provides information about the error.

    ", - "ServiceUnavailableException$message": "

    A message that provides information about the error.

    " - } - }, - "IntervalInSeconds": { - "base": null, - "refs": { - "BufferingHints$IntervalInSeconds": "

    Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300.

    " - } - }, - "InvalidArgumentException": { - "base": "

    The specified input parameter has an value that is not valid.

    ", - "refs": { - } - }, - "KMSEncryptionConfig": { - "base": "

    Describes an encryption key for a destination in Amazon S3.

    ", - "refs": { - "EncryptionConfiguration$KMSEncryptionConfig": "

    The encryption key.

    " - } - }, - "LimitExceededException": { - "base": "

    You have already reached the limit for a requested resource.

    ", - "refs": { - } - }, - "ListDeliveryStreamsInput": { - "base": "

    Contains the parameters for ListDeliveryStreams.

    ", - "refs": { - } - }, - "ListDeliveryStreamsInputLimit": { - "base": null, - "refs": { - "ListDeliveryStreamsInput$Limit": "

    The maximum number of delivery streams to list.

    " - } - }, - "ListDeliveryStreamsOutput": { - "base": "

    Contains the output of ListDeliveryStreams.

    ", - "refs": { - } - }, - "LogGroupName": { - "base": null, - "refs": { - "CloudWatchLoggingOptions$LogGroupName": "

    The CloudWatch group name for logging. This value is required if Enabled is true.

    " - } - }, - "LogStreamName": { - "base": null, - "refs": { - "CloudWatchLoggingOptions$LogStreamName": "

    The CloudWatch log stream name for logging. This value is required if Enabled is true.

    " - } - }, - "NoEncryptionConfig": { - "base": null, - "refs": { - "EncryptionConfiguration$NoEncryptionConfig": "

    Specifically override existing encryption information to ensure no encryption is used.

    " - } - }, - "NonNegativeIntegerObject": { - "base": null, - "refs": { - "PutRecordBatchOutput$FailedPutCount": "

    The number of unsuccessfully written records.

    " - } - }, - "Password": { - "base": null, - "refs": { - "RedshiftDestinationConfiguration$Password": "

    The user password.

    ", - "RedshiftDestinationUpdate$Password": "

    The user password.

    " - } - }, - "Prefix": { - "base": null, - "refs": { - "S3DestinationConfiguration$Prefix": "

    The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

    ", - "S3DestinationDescription$Prefix": "

    The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

    ", - "S3DestinationUpdate$Prefix": "

    The \"YYYY/MM/DD/HH\" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket. For more information, see Amazon S3 Object Name Format in the Amazon Kinesis Firehose Developer Guide.

    " - } - }, - "PutRecordBatchInput": { - "base": "

    Contains the parameters for PutRecordBatch.

    ", - "refs": { - } - }, - "PutRecordBatchOutput": { - "base": "

    Contains the output of PutRecordBatch.

    ", - "refs": { - } - }, - "PutRecordBatchRequestEntryList": { - "base": null, - "refs": { - "PutRecordBatchInput$Records": "

    One or more records.

    " - } - }, - "PutRecordBatchResponseEntry": { - "base": "

    Contains the result for an individual record from a PutRecordBatch request. If the record is successfully added to your delivery stream, it receives a record ID. If the record fails to be added to your delivery stream, the result includes an error code and an error message.

    ", - "refs": { - "PutRecordBatchResponseEntryList$member": null - } - }, - "PutRecordBatchResponseEntryList": { - "base": null, - "refs": { - "PutRecordBatchOutput$RequestResponses": "

    The results for the individual records. The index of each element matches the same index in which records were sent.

    " - } - }, - "PutRecordInput": { - "base": "

    Contains the parameters for PutRecord.

    ", - "refs": { - } - }, - "PutRecordOutput": { - "base": "

    Contains the output of PutRecord.

    ", - "refs": { - } - }, - "PutResponseRecordId": { - "base": null, - "refs": { - "PutRecordBatchResponseEntry$RecordId": "

    The ID of the record.

    ", - "PutRecordOutput$RecordId": "

    The ID of the record.

    " - } - }, - "Record": { - "base": "

    The unit of data in a delivery stream.

    ", - "refs": { - "PutRecordBatchRequestEntryList$member": null, - "PutRecordInput$Record": "

    The record.

    " - } - }, - "RedshiftDestinationConfiguration": { - "base": "

    Describes the configuration of a destination in Amazon Redshift.

    ", - "refs": { - "CreateDeliveryStreamInput$RedshiftDestinationConfiguration": "

    The destination in Amazon Redshift. This value cannot be specified if Amazon S3 or Amazon Elasticsearch is the desired destination (see restrictions listed above).

    " - } - }, - "RedshiftDestinationDescription": { - "base": "

    Describes a destination in Amazon Redshift.

    ", - "refs": { - "DestinationDescription$RedshiftDestinationDescription": "

    The destination in Amazon Redshift.

    " - } - }, - "RedshiftDestinationUpdate": { - "base": "

    Describes an update for a destination in Amazon Redshift.

    ", - "refs": { - "UpdateDestinationInput$RedshiftDestinationUpdate": "

    Describes an update for a destination in Amazon Redshift.

    " - } - }, - "RedshiftRetryDurationInSeconds": { - "base": null, - "refs": { - "RedshiftRetryOptions$DurationInSeconds": "

    The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value.

    " - } - }, - "RedshiftRetryOptions": { - "base": "

    Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift.

    ", - "refs": { - "RedshiftDestinationConfiguration$RetryOptions": "

    Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).

    ", - "RedshiftDestinationDescription$RetryOptions": "

    Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).

    ", - "RedshiftDestinationUpdate$RetryOptions": "

    Configures retry behavior in the event that Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).

    " - } - }, - "ResourceInUseException": { - "base": "

    The resource is already in use and not available for this operation.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    The specified resource could not be found.

    ", - "refs": { - } - }, - "RoleARN": { - "base": null, - "refs": { - "ElasticsearchDestinationConfiguration$RoleARN": "

    The ARN of the IAM role to be assumed by Firehose for calling the Amazon ES Configuration API and for indexing documents. For more information, see Amazon S3 Bucket Access.

    ", - "ElasticsearchDestinationDescription$RoleARN": "

    The ARN of the AWS credentials.

    ", - "ElasticsearchDestinationUpdate$RoleARN": "

    The ARN of the IAM role to be assumed by Firehose for calling the Amazon ES Configuration API and for indexing documents. For more information, see Amazon S3 Bucket Access.

    ", - "RedshiftDestinationConfiguration$RoleARN": "

    The ARN of the AWS credentials.

    ", - "RedshiftDestinationDescription$RoleARN": "

    The ARN of the AWS credentials.

    ", - "RedshiftDestinationUpdate$RoleARN": "

    The ARN of the AWS credentials.

    ", - "S3DestinationConfiguration$RoleARN": "

    The ARN of the AWS credentials.

    ", - "S3DestinationDescription$RoleARN": "

    The ARN of the AWS credentials.

    ", - "S3DestinationUpdate$RoleARN": "

    The ARN of the AWS credentials.

    " - } - }, - "S3DestinationConfiguration": { - "base": "

    Describes the configuration of a destination in Amazon S3.

    ", - "refs": { - "CreateDeliveryStreamInput$S3DestinationConfiguration": "

    The destination in Amazon S3. This value must be specified if ElasticsearchDestinationConfiguration or RedshiftDestinationConfiguration is specified (see restrictions listed above).

    ", - "ElasticsearchDestinationConfiguration$S3Configuration": null, - "RedshiftDestinationConfiguration$S3Configuration": "

    The S3 configuration for the intermediate location from which Amazon Redshift obtains data. Restrictions are described in the topic for CreateDeliveryStream.

    The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats.

    " - } - }, - "S3DestinationDescription": { - "base": "

    Describes a destination in Amazon S3.

    ", - "refs": { - "DestinationDescription$S3DestinationDescription": "

    The Amazon S3 destination.

    ", - "ElasticsearchDestinationDescription$S3DestinationDescription": null, - "RedshiftDestinationDescription$S3DestinationDescription": "

    The Amazon S3 destination.

    " - } - }, - "S3DestinationUpdate": { - "base": "

    Describes an update for a destination in Amazon S3.

    ", - "refs": { - "ElasticsearchDestinationUpdate$S3Update": null, - "RedshiftDestinationUpdate$S3Update": "

    The Amazon S3 destination.

    The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationUpdate.S3Update because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats.

    ", - "UpdateDestinationInput$S3DestinationUpdate": "

    Describes an update for a destination in Amazon S3.

    " - } - }, - "ServiceUnavailableException": { - "base": "

    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 Firehose Limits.

    ", - "refs": { - } - }, - "SizeInMBs": { - "base": null, - "refs": { - "BufferingHints$SizeInMBs": "

    Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.

    We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher.

    " - } - }, - "Timestamp": { - "base": null, - "refs": { - "DeliveryStreamDescription$CreateTimestamp": "

    The date and time that the delivery stream was created.

    ", - "DeliveryStreamDescription$LastUpdateTimestamp": "

    The date and time that the delivery stream was last updated.

    " - } - }, - "UpdateDestinationInput": { - "base": "

    Contains the parameters for UpdateDestination.

    ", - "refs": { - } - }, - "UpdateDestinationOutput": { - "base": "

    Contains the output of UpdateDestination.

    ", - "refs": { - } - }, - "Username": { - "base": null, - "refs": { - "RedshiftDestinationConfiguration$Username": "

    The name of the user.

    ", - "RedshiftDestinationDescription$Username": "

    The name of the user.

    ", - "RedshiftDestinationUpdate$Username": "

    The name of the user.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json deleted file mode 100644 index 0109c8a54..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/api-2.json +++ /dev/null @@ -1,2194 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-10-01", - "endpointPrefix":"gamelift", - "jsonVersion":"1.1", - "serviceFullName":"Amazon GameLift", - "signatureVersion":"v4", - "targetPrefix":"GameLift", - "protocol":"json" - }, - "operations":{ - "CreateAlias":{ - "name":"CreateAlias", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateAliasInput"}, - "output":{"shape":"CreateAliasOutput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"ConflictException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"LimitExceededException", - "exception":true - } - ] - }, - "CreateBuild":{ - "name":"CreateBuild", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateBuildInput"}, - "output":{"shape":"CreateBuildOutput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"ConflictException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - } - ] - }, - "CreateFleet":{ - "name":"CreateFleet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateFleetInput"}, - "output":{"shape":"CreateFleetOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"ConflictException", - "exception":true - }, - { - "shape":"LimitExceededException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "CreateGameSession":{ - "name":"CreateGameSession", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateGameSessionInput"}, - "output":{"shape":"CreateGameSessionOutput"}, - "errors":[ - { - "shape":"ConflictException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidFleetStatusException", - "exception":true - }, - { - "shape":"TerminalRoutingStrategyException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"FleetCapacityExceededException", - "exception":true - } - ] - }, - "CreatePlayerSession":{ - "name":"CreatePlayerSession", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreatePlayerSessionInput"}, - "output":{"shape":"CreatePlayerSessionOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidGameSessionStatusException", - "exception":true - }, - { - "shape":"GameSessionFullException", - "exception":true - }, - { - "shape":"TerminalRoutingStrategyException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - } - ] - }, - "CreatePlayerSessions":{ - "name":"CreatePlayerSessions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreatePlayerSessionsInput"}, - "output":{"shape":"CreatePlayerSessionsOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidGameSessionStatusException", - "exception":true - }, - { - "shape":"GameSessionFullException", - "exception":true - }, - { - "shape":"TerminalRoutingStrategyException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - } - ] - }, - "DeleteAlias":{ - "name":"DeleteAlias", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteAliasInput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - } - ] - }, - "DeleteBuild":{ - "name":"DeleteBuild", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteBuildInput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "exception":true - } - ] - }, - "DeleteFleet":{ - "name":"DeleteFleet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteFleetInput"}, - "errors":[ - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"InvalidFleetStatusException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"InvalidFleetStatusException", - "exception":true - } - ] - }, - "DeleteScalingPolicy":{ - "name":"DeleteScalingPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteScalingPolicyInput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - } - ] - }, - "DescribeAlias":{ - "name":"DescribeAlias", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAliasInput"}, - "output":{"shape":"DescribeAliasOutput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - } - ] - }, - "DescribeBuild":{ - "name":"DescribeBuild", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeBuildInput"}, - "output":{"shape":"DescribeBuildOutput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - } - ] - }, - "DescribeEC2InstanceLimits":{ - "name":"DescribeEC2InstanceLimits", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEC2InstanceLimitsInput"}, - "output":{"shape":"DescribeEC2InstanceLimitsOutput"}, - "errors":[ - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "DescribeFleetAttributes":{ - "name":"DescribeFleetAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeFleetAttributesInput"}, - "output":{"shape":"DescribeFleetAttributesOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "DescribeFleetCapacity":{ - "name":"DescribeFleetCapacity", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeFleetCapacityInput"}, - "output":{"shape":"DescribeFleetCapacityOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "DescribeFleetEvents":{ - "name":"DescribeFleetEvents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeFleetEventsInput"}, - "output":{"shape":"DescribeFleetEventsOutput"}, - "errors":[ - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - } - ] - }, - "DescribeFleetPortSettings":{ - "name":"DescribeFleetPortSettings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeFleetPortSettingsInput"}, - "output":{"shape":"DescribeFleetPortSettingsOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "DescribeFleetUtilization":{ - "name":"DescribeFleetUtilization", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeFleetUtilizationInput"}, - "output":{"shape":"DescribeFleetUtilizationOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "DescribeGameSessionDetails":{ - "name":"DescribeGameSessionDetails", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeGameSessionDetailsInput"}, - "output":{"shape":"DescribeGameSessionDetailsOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"TerminalRoutingStrategyException", - "exception":true - } - ] - }, - "DescribeGameSessions":{ - "name":"DescribeGameSessions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeGameSessionsInput"}, - "output":{"shape":"DescribeGameSessionsOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"TerminalRoutingStrategyException", - "exception":true - } - ] - }, - "DescribePlayerSessions":{ - "name":"DescribePlayerSessions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribePlayerSessionsInput"}, - "output":{"shape":"DescribePlayerSessionsOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "DescribeScalingPolicies":{ - "name":"DescribeScalingPolicies", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeScalingPoliciesInput"}, - "output":{"shape":"DescribeScalingPoliciesOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - } - ] - }, - "GetGameSessionLogUrl":{ - "name":"GetGameSessionLogUrl", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetGameSessionLogUrlInput"}, - "output":{"shape":"GetGameSessionLogUrlOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - } - ] - }, - "ListAliases":{ - "name":"ListAliases", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAliasesInput"}, - "output":{"shape":"ListAliasesOutput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - } - ] - }, - "ListBuilds":{ - "name":"ListBuilds", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListBuildsInput"}, - "output":{"shape":"ListBuildsOutput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - } - ] - }, - "ListFleets":{ - "name":"ListFleets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListFleetsInput"}, - "output":{"shape":"ListFleetsOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "PutScalingPolicy":{ - "name":"PutScalingPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutScalingPolicyInput"}, - "output":{"shape":"PutScalingPolicyOutput"}, - "errors":[ - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - } - ] - }, - "RequestUploadCredentials":{ - "name":"RequestUploadCredentials", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RequestUploadCredentialsInput"}, - "output":{"shape":"RequestUploadCredentialsOutput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - } - ] - }, - "ResolveAlias":{ - "name":"ResolveAlias", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResolveAliasInput"}, - "output":{"shape":"ResolveAliasOutput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"TerminalRoutingStrategyException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - } - ] - }, - "UpdateAlias":{ - "name":"UpdateAlias", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateAliasInput"}, - "output":{"shape":"UpdateAliasOutput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - } - ] - }, - "UpdateBuild":{ - "name":"UpdateBuild", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateBuildInput"}, - "output":{"shape":"UpdateBuildOutput"}, - "errors":[ - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - } - ] - }, - "UpdateFleetAttributes":{ - "name":"UpdateFleetAttributes", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateFleetAttributesInput"}, - "output":{"shape":"UpdateFleetAttributesOutput"}, - "errors":[ - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"ConflictException", - "exception":true - }, - { - "shape":"InvalidFleetStatusException", - "exception":true - }, - { - "shape":"LimitExceededException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "UpdateFleetCapacity":{ - "name":"UpdateFleetCapacity", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateFleetCapacityInput"}, - "output":{"shape":"UpdateFleetCapacityOutput"}, - "errors":[ - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"ConflictException", - "exception":true - }, - { - "shape":"LimitExceededException", - "exception":true - }, - { - "shape":"InvalidFleetStatusException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "UpdateFleetPortSettings":{ - "name":"UpdateFleetPortSettings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateFleetPortSettingsInput"}, - "output":{"shape":"UpdateFleetPortSettingsOutput"}, - "errors":[ - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"ConflictException", - "exception":true - }, - { - "shape":"InvalidFleetStatusException", - "exception":true - }, - { - "shape":"LimitExceededException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "exception":true - }, - { - "shape":"UnauthorizedException", - "exception":true - } - ] - }, - "UpdateGameSession":{ - "name":"UpdateGameSession", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateGameSessionInput"}, - "output":{"shape":"UpdateGameSessionOutput"}, - "errors":[ - { - "shape":"NotFoundException", - "exception":true - }, - { - "shape":"ConflictException", - "exception":true - }, - { - "shape":"InternalServiceException", - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "exception":true - }, - { - "shape":"InvalidGameSessionStatusException", - "exception":true - }, - { - "shape":"InvalidRequestException", - "exception":true - } - ] - } - }, - "shapes":{ - "Alias":{ - "type":"structure", - "members":{ - "AliasId":{"shape":"AliasId"}, - "Name":{"shape":"FreeText"}, - "Description":{"shape":"FreeText"}, - "RoutingStrategy":{"shape":"RoutingStrategy"}, - "CreationTime":{"shape":"Timestamp"}, - "LastUpdatedTime":{"shape":"Timestamp"} - } - }, - "AliasId":{ - "type":"string", - "pattern":"^alias-\\S+" - }, - "AliasList":{ - "type":"list", - "member":{"shape":"Alias"} - }, - "AwsCredentials":{ - "type":"structure", - "members":{ - "AccessKeyId":{"shape":"NonEmptyString"}, - "SecretAccessKey":{"shape":"NonEmptyString"}, - "SessionToken":{"shape":"NonEmptyString"} - }, - "sensitive":true - }, - "Build":{ - "type":"structure", - "members":{ - "BuildId":{"shape":"BuildId"}, - "Name":{"shape":"FreeText"}, - "Version":{"shape":"FreeText"}, - "Status":{"shape":"BuildStatus"}, - "SizeOnDisk":{"shape":"PositiveLong"}, - "CreationTime":{"shape":"Timestamp"} - } - }, - "BuildId":{ - "type":"string", - "pattern":"^build-\\S+" - }, - "BuildList":{ - "type":"list", - "member":{"shape":"Build"} - }, - "BuildStatus":{ - "type":"string", - "enum":[ - "INITIALIZED", - "READY", - "FAILED" - ] - }, - "ComparisonOperatorType":{ - "type":"string", - "enum":[ - "GreaterThanOrEqualToThreshold", - "GreaterThanThreshold", - "LessThanThreshold", - "LessThanOrEqualToThreshold" - ] - }, - "ConflictException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true - }, - "CreateAliasInput":{ - "type":"structure", - "required":[ - "Name", - "RoutingStrategy" - ], - "members":{ - "Name":{"shape":"NonZeroAndMaxString"}, - "Description":{"shape":"NonZeroAndMaxString"}, - "RoutingStrategy":{"shape":"RoutingStrategy"} - } - }, - "CreateAliasOutput":{ - "type":"structure", - "members":{ - "Alias":{"shape":"Alias"} - } - }, - "CreateBuildInput":{ - "type":"structure", - "members":{ - "Name":{"shape":"NonZeroAndMaxString"}, - "Version":{"shape":"NonZeroAndMaxString"}, - "StorageLocation":{"shape":"S3Location"} - } - }, - "CreateBuildOutput":{ - "type":"structure", - "members":{ - "Build":{"shape":"Build"}, - "UploadCredentials":{"shape":"AwsCredentials"}, - "StorageLocation":{"shape":"S3Location"} - } - }, - "CreateFleetInput":{ - "type":"structure", - "required":[ - "Name", - "BuildId", - "ServerLaunchPath", - "EC2InstanceType" - ], - "members":{ - "Name":{"shape":"NonZeroAndMaxString"}, - "Description":{"shape":"NonZeroAndMaxString"}, - "BuildId":{"shape":"BuildId"}, - "ServerLaunchPath":{"shape":"NonZeroAndMaxString"}, - "ServerLaunchParameters":{"shape":"NonZeroAndMaxString"}, - "LogPaths":{"shape":"StringList"}, - "EC2InstanceType":{"shape":"EC2InstanceType"}, - "EC2InboundPermissions":{"shape":"IpPermissionsList"}, - "NewGameSessionProtectionPolicy":{"shape":"ProtectionPolicy"} - } - }, - "CreateFleetOutput":{ - "type":"structure", - "members":{ - "FleetAttributes":{"shape":"FleetAttributes"} - } - }, - "CreateGameSessionInput":{ - "type":"structure", - "required":["MaximumPlayerSessionCount"], - "members":{ - "FleetId":{"shape":"FleetId"}, - "AliasId":{"shape":"AliasId"}, - "MaximumPlayerSessionCount":{"shape":"WholeNumber"}, - "Name":{"shape":"NonZeroAndMaxString"}, - "GameProperties":{"shape":"GamePropertyList"} - } - }, - "CreateGameSessionOutput":{ - "type":"structure", - "members":{ - "GameSession":{"shape":"GameSession"} - } - }, - "CreatePlayerSessionInput":{ - "type":"structure", - "required":[ - "GameSessionId", - "PlayerId" - ], - "members":{ - "GameSessionId":{"shape":"GameSessionId"}, - "PlayerId":{"shape":"NonZeroAndMaxString"} - } - }, - "CreatePlayerSessionOutput":{ - "type":"structure", - "members":{ - "PlayerSession":{"shape":"PlayerSession"} - } - }, - "CreatePlayerSessionsInput":{ - "type":"structure", - "required":[ - "GameSessionId", - "PlayerIds" - ], - "members":{ - "GameSessionId":{"shape":"GameSessionId"}, - "PlayerIds":{"shape":"PlayerIdList"} - } - }, - "CreatePlayerSessionsOutput":{ - "type":"structure", - "members":{ - "PlayerSessions":{"shape":"PlayerSessionList"} - } - }, - "DeleteAliasInput":{ - "type":"structure", - "required":["AliasId"], - "members":{ - "AliasId":{"shape":"AliasId"} - } - }, - "DeleteBuildInput":{ - "type":"structure", - "required":["BuildId"], - "members":{ - "BuildId":{"shape":"BuildId"} - } - }, - "DeleteFleetInput":{ - "type":"structure", - "required":["FleetId"], - "members":{ - "FleetId":{"shape":"FleetId"} - } - }, - "DeleteScalingPolicyInput":{ - "type":"structure", - "required":[ - "Name", - "FleetId" - ], - "members":{ - "Name":{"shape":"NonZeroAndMaxString"}, - "FleetId":{"shape":"FleetId"} - } - }, - "DescribeAliasInput":{ - "type":"structure", - "required":["AliasId"], - "members":{ - "AliasId":{"shape":"AliasId"} - } - }, - "DescribeAliasOutput":{ - "type":"structure", - "members":{ - "Alias":{"shape":"Alias"} - } - }, - "DescribeBuildInput":{ - "type":"structure", - "required":["BuildId"], - "members":{ - "BuildId":{"shape":"BuildId"} - } - }, - "DescribeBuildOutput":{ - "type":"structure", - "members":{ - "Build":{"shape":"Build"} - } - }, - "DescribeEC2InstanceLimitsInput":{ - "type":"structure", - "members":{ - "EC2InstanceType":{"shape":"EC2InstanceType"} - } - }, - "DescribeEC2InstanceLimitsOutput":{ - "type":"structure", - "members":{ - "EC2InstanceLimits":{"shape":"EC2InstanceLimitList"} - } - }, - "DescribeFleetAttributesInput":{ - "type":"structure", - "members":{ - "FleetIds":{"shape":"FleetIdList"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeFleetAttributesOutput":{ - "type":"structure", - "members":{ - "FleetAttributes":{"shape":"FleetAttributesList"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeFleetCapacityInput":{ - "type":"structure", - "members":{ - "FleetIds":{"shape":"FleetIdList"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeFleetCapacityOutput":{ - "type":"structure", - "members":{ - "FleetCapacity":{"shape":"FleetCapacityList"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeFleetEventsInput":{ - "type":"structure", - "required":["FleetId"], - "members":{ - "FleetId":{"shape":"FleetId"}, - "StartTime":{"shape":"Timestamp"}, - "EndTime":{"shape":"Timestamp"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeFleetEventsOutput":{ - "type":"structure", - "members":{ - "Events":{"shape":"EventList"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeFleetPortSettingsInput":{ - "type":"structure", - "required":["FleetId"], - "members":{ - "FleetId":{"shape":"FleetId"} - } - }, - "DescribeFleetPortSettingsOutput":{ - "type":"structure", - "members":{ - "InboundPermissions":{"shape":"IpPermissionsList"} - } - }, - "DescribeFleetUtilizationInput":{ - "type":"structure", - "members":{ - "FleetIds":{"shape":"FleetIdList"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeFleetUtilizationOutput":{ - "type":"structure", - "members":{ - "FleetUtilization":{"shape":"FleetUtilizationList"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeGameSessionDetailsInput":{ - "type":"structure", - "members":{ - "FleetId":{"shape":"FleetId"}, - "GameSessionId":{"shape":"GameSessionId"}, - "AliasId":{"shape":"AliasId"}, - "StatusFilter":{"shape":"NonZeroAndMaxString"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeGameSessionDetailsOutput":{ - "type":"structure", - "members":{ - "GameSessionDetails":{"shape":"GameSessionDetailList"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeGameSessionsInput":{ - "type":"structure", - "members":{ - "FleetId":{"shape":"FleetId"}, - "GameSessionId":{"shape":"GameSessionId"}, - "AliasId":{"shape":"AliasId"}, - "StatusFilter":{"shape":"NonZeroAndMaxString"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeGameSessionsOutput":{ - "type":"structure", - "members":{ - "GameSessions":{"shape":"GameSessionList"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribePlayerSessionsInput":{ - "type":"structure", - "members":{ - "GameSessionId":{"shape":"GameSessionId"}, - "PlayerId":{"shape":"NonZeroAndMaxString"}, - "PlayerSessionId":{"shape":"PlayerSessionId"}, - "PlayerSessionStatusFilter":{"shape":"NonZeroAndMaxString"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribePlayerSessionsOutput":{ - "type":"structure", - "members":{ - "PlayerSessions":{"shape":"PlayerSessionList"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeScalingPoliciesInput":{ - "type":"structure", - "required":["FleetId"], - "members":{ - "FleetId":{"shape":"FleetId"}, - "StatusFilter":{"shape":"ScalingStatusType"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "DescribeScalingPoliciesOutput":{ - "type":"structure", - "members":{ - "ScalingPolicies":{"shape":"ScalingPolicyList"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "Double":{"type":"double"}, - "EC2InstanceCounts":{ - "type":"structure", - "members":{ - "DESIRED":{"shape":"WholeNumber"}, - "MINIMUM":{"shape":"WholeNumber"}, - "MAXIMUM":{"shape":"WholeNumber"}, - "PENDING":{"shape":"WholeNumber"}, - "ACTIVE":{"shape":"WholeNumber"}, - "IDLE":{"shape":"WholeNumber"}, - "TERMINATING":{"shape":"WholeNumber"} - } - }, - "EC2InstanceLimit":{ - "type":"structure", - "members":{ - "EC2InstanceType":{"shape":"EC2InstanceType"}, - "CurrentInstances":{"shape":"WholeNumber"}, - "InstanceLimit":{"shape":"WholeNumber"} - } - }, - "EC2InstanceLimitList":{ - "type":"list", - "member":{"shape":"EC2InstanceLimit"} - }, - "EC2InstanceType":{ - "type":"string", - "enum":[ - "t2.micro", - "t2.small", - "t2.medium", - "t2.large", - "c3.large", - "c3.xlarge", - "c3.2xlarge", - "c3.4xlarge", - "c3.8xlarge", - "c4.large", - "c4.xlarge", - "c4.2xlarge", - "c4.4xlarge", - "c4.8xlarge", - "r3.large", - "r3.xlarge", - "r3.2xlarge", - "r3.4xlarge", - "r3.8xlarge", - "m3.medium", - "m3.large", - "m3.xlarge", - "m3.2xlarge", - "m4.large", - "m4.xlarge", - "m4.2xlarge", - "m4.4xlarge", - "m4.10xlarge" - ] - }, - "Event":{ - "type":"structure", - "members":{ - "EventId":{"shape":"NonZeroAndMaxString"}, - "ResourceId":{"shape":"NonZeroAndMaxString"}, - "EventCode":{"shape":"EventCode"}, - "Message":{"shape":"NonEmptyString"}, - "EventTime":{"shape":"Timestamp"} - } - }, - "EventCode":{ - "type":"string", - "enum":[ - "GENERIC_EVENT", - "FLEET_CREATED", - "FLEET_DELETED", - "FLEET_SCALING_EVENT", - "FLEET_STATE_DOWNLOADING", - "FLEET_STATE_VALIDATING", - "FLEET_STATE_BUILDING", - "FLEET_STATE_ACTIVATING", - "FLEET_STATE_ACTIVE", - "FLEET_STATE_ERROR", - "FLEET_INITIALIZATION_FAILED", - "FLEET_BINARY_DOWNLOAD_FAILED", - "FLEET_VALIDATION_LAUNCH_PATH_NOT_FOUND", - "FLEET_VALIDATION_EXECUTABLE_RUNTIME_FAILURE", - "FLEET_VALIDATION_TIMED_OUT", - "FLEET_ACTIVATION_FAILED", - "FLEET_ACTIVATION_FAILED_NO_INSTANCES", - "FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED" - ] - }, - "EventList":{ - "type":"list", - "member":{"shape":"Event"} - }, - "FleetAttributes":{ - "type":"structure", - "members":{ - "FleetId":{"shape":"FleetId"}, - "Description":{"shape":"NonZeroAndMaxString"}, - "Name":{"shape":"NonZeroAndMaxString"}, - "CreationTime":{"shape":"Timestamp"}, - "TerminationTime":{"shape":"Timestamp"}, - "Status":{"shape":"FleetStatus"}, - "BuildId":{"shape":"BuildId"}, - "ServerLaunchPath":{"shape":"NonZeroAndMaxString"}, - "ServerLaunchParameters":{"shape":"NonZeroAndMaxString"}, - "LogPaths":{"shape":"StringList"}, - "NewGameSessionProtectionPolicy":{"shape":"ProtectionPolicy"} - } - }, - "FleetAttributesList":{ - "type":"list", - "member":{"shape":"FleetAttributes"} - }, - "FleetCapacity":{ - "type":"structure", - "members":{ - "FleetId":{"shape":"FleetId"}, - "InstanceType":{"shape":"EC2InstanceType"}, - "InstanceCounts":{"shape":"EC2InstanceCounts"} - } - }, - "FleetCapacityExceededException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true - }, - "FleetCapacityList":{ - "type":"list", - "member":{"shape":"FleetCapacity"} - }, - "FleetId":{ - "type":"string", - "pattern":"^fleet-\\S+" - }, - "FleetIdList":{ - "type":"list", - "member":{"shape":"FleetId"}, - "min":1 - }, - "FleetStatus":{ - "type":"string", - "enum":[ - "NEW", - "DOWNLOADING", - "VALIDATING", - "BUILDING", - "ACTIVATING", - "ACTIVE", - "DELETING", - "ERROR", - "TERMINATED" - ] - }, - "FleetUtilization":{ - "type":"structure", - "members":{ - "FleetId":{"shape":"FleetId"}, - "ActiveGameSessionCount":{"shape":"WholeNumber"}, - "CurrentPlayerSessionCount":{"shape":"WholeNumber"}, - "MaximumPlayerSessionCount":{"shape":"WholeNumber"} - } - }, - "FleetUtilizationList":{ - "type":"list", - "member":{"shape":"FleetUtilization"} - }, - "FreeText":{"type":"string"}, - "GameProperty":{ - "type":"structure", - "required":[ - "Key", - "Value" - ], - "members":{ - "Key":{"shape":"GamePropertyKey"}, - "Value":{"shape":"GamePropertyValue"} - } - }, - "GamePropertyKey":{ - "type":"string", - "max":32 - }, - "GamePropertyList":{ - "type":"list", - "member":{"shape":"GameProperty"}, - "max":16 - }, - "GamePropertyValue":{ - "type":"string", - "max":96 - }, - "GameSession":{ - "type":"structure", - "members":{ - "GameSessionId":{"shape":"GameSessionId"}, - "Name":{"shape":"NonZeroAndMaxString"}, - "FleetId":{"shape":"FleetId"}, - "CreationTime":{"shape":"Timestamp"}, - "TerminationTime":{"shape":"Timestamp"}, - "CurrentPlayerSessionCount":{"shape":"WholeNumber"}, - "MaximumPlayerSessionCount":{"shape":"WholeNumber"}, - "Status":{"shape":"GameSessionStatus"}, - "GameProperties":{"shape":"GamePropertyList"}, - "IpAddress":{"shape":"IpAddress"}, - "PlayerSessionCreationPolicy":{"shape":"PlayerSessionCreationPolicy"} - } - }, - "GameSessionDetail":{ - "type":"structure", - "members":{ - "GameSession":{"shape":"GameSession"}, - "ProtectionPolicy":{"shape":"ProtectionPolicy"} - } - }, - "GameSessionDetailList":{ - "type":"list", - "member":{"shape":"GameSessionDetail"} - }, - "GameSessionFullException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true - }, - "GameSessionId":{ - "type":"string", - "pattern":"^(gamei-|gsess-)\\S+" - }, - "GameSessionList":{ - "type":"list", - "member":{"shape":"GameSession"} - }, - "GameSessionStatus":{ - "type":"string", - "enum":[ - "ACTIVE", - "ACTIVATING", - "TERMINATED", - "TERMINATING" - ] - }, - "GetGameSessionLogUrlInput":{ - "type":"structure", - "required":["GameSessionId"], - "members":{ - "GameSessionId":{"shape":"GameSessionId"} - } - }, - "GetGameSessionLogUrlOutput":{ - "type":"structure", - "members":{ - "PreSignedUrl":{"shape":"NonZeroAndMaxString"} - } - }, - "Integer":{"type":"integer"}, - "InternalServiceException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true, - "fault":true - }, - "InvalidFleetStatusException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true - }, - "InvalidGameSessionStatusException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true - }, - "InvalidRequestException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true - }, - "IpAddress":{"type":"string"}, - "IpPermission":{ - "type":"structure", - "required":[ - "FromPort", - "ToPort", - "IpRange", - "Protocol" - ], - "members":{ - "FromPort":{"shape":"PortNumber"}, - "ToPort":{"shape":"PortNumber"}, - "IpRange":{"shape":"NonBlankString"}, - "Protocol":{"shape":"IpProtocol"} - } - }, - "IpPermissionsList":{ - "type":"list", - "member":{"shape":"IpPermission"}, - "max":50 - }, - "IpProtocol":{ - "type":"string", - "enum":[ - "TCP", - "UDP" - ] - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true - }, - "ListAliasesInput":{ - "type":"structure", - "members":{ - "RoutingStrategyType":{"shape":"RoutingStrategyType"}, - "Name":{"shape":"NonEmptyString"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonEmptyString"} - } - }, - "ListAliasesOutput":{ - "type":"structure", - "members":{ - "Aliases":{"shape":"AliasList"}, - "NextToken":{"shape":"NonEmptyString"} - } - }, - "ListBuildsInput":{ - "type":"structure", - "members":{ - "Status":{"shape":"BuildStatus"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonEmptyString"} - } - }, - "ListBuildsOutput":{ - "type":"structure", - "members":{ - "Builds":{"shape":"BuildList"}, - "NextToken":{"shape":"NonEmptyString"} - } - }, - "ListFleetsInput":{ - "type":"structure", - "members":{ - "BuildId":{"shape":"BuildId"}, - "Limit":{"shape":"PositiveInteger"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "ListFleetsOutput":{ - "type":"structure", - "members":{ - "FleetIds":{"shape":"FleetIdList"}, - "NextToken":{"shape":"NonZeroAndMaxString"} - } - }, - "MetricName":{ - "type":"string", - "enum":[ - "ActivatingGameSessions", - "ActiveGameSessions", - "ActiveInstances", - "AvailablePlayerSessions", - "CurrentPlayerSessions", - "IdleInstances" - ] - }, - "NonBlankString":{ - "type":"string", - "pattern":"[^\\s]+" - }, - "NonEmptyString":{ - "type":"string", - "min":1 - }, - "NonZeroAndMaxString":{ - "type":"string", - "min":1, - "max":1024 - }, - "NotFoundException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true - }, - "PlayerIdList":{ - "type":"list", - "member":{"shape":"NonZeroAndMaxString"}, - "min":1, - "max":25 - }, - "PlayerSession":{ - "type":"structure", - "members":{ - "PlayerSessionId":{"shape":"PlayerSessionId"}, - "PlayerId":{"shape":"NonZeroAndMaxString"}, - "GameSessionId":{"shape":"GameSessionId"}, - "FleetId":{"shape":"FleetId"}, - "CreationTime":{"shape":"Timestamp"}, - "TerminationTime":{"shape":"Timestamp"}, - "Status":{"shape":"PlayerSessionStatus"}, - "IpAddress":{"shape":"IpAddress"} - } - }, - "PlayerSessionCreationPolicy":{ - "type":"string", - "enum":[ - "ACCEPT_ALL", - "DENY_ALL" - ] - }, - "PlayerSessionId":{ - "type":"string", - "pattern":"^psess-\\S+" - }, - "PlayerSessionList":{ - "type":"list", - "member":{"shape":"PlayerSession"} - }, - "PlayerSessionStatus":{ - "type":"string", - "enum":[ - "RESERVED", - "ACTIVE", - "COMPLETED", - "TIMEDOUT" - ] - }, - "PortNumber":{ - "type":"integer", - "min":1025, - "max":60000 - }, - "PositiveInteger":{ - "type":"integer", - "min":1 - }, - "PositiveLong":{ - "type":"long", - "min":1 - }, - "ProtectionPolicy":{ - "type":"string", - "enum":[ - "NoProtection", - "FullProtection" - ] - }, - "PutScalingPolicyInput":{ - "type":"structure", - "required":[ - "Name", - "FleetId", - "ScalingAdjustment", - "ScalingAdjustmentType", - "Threshold", - "ComparisonOperator", - "EvaluationPeriods", - "MetricName" - ], - "members":{ - "Name":{"shape":"NonZeroAndMaxString"}, - "FleetId":{"shape":"FleetId"}, - "ScalingAdjustment":{"shape":"Integer"}, - "ScalingAdjustmentType":{"shape":"ScalingAdjustmentType"}, - "Threshold":{"shape":"Double"}, - "ComparisonOperator":{"shape":"ComparisonOperatorType"}, - "EvaluationPeriods":{"shape":"PositiveInteger"}, - "MetricName":{"shape":"MetricName"} - } - }, - "PutScalingPolicyOutput":{ - "type":"structure", - "members":{ - "Name":{"shape":"NonZeroAndMaxString"} - } - }, - "RequestUploadCredentialsInput":{ - "type":"structure", - "required":["BuildId"], - "members":{ - "BuildId":{"shape":"BuildId"} - } - }, - "RequestUploadCredentialsOutput":{ - "type":"structure", - "members":{ - "UploadCredentials":{"shape":"AwsCredentials"}, - "StorageLocation":{"shape":"S3Location"} - } - }, - "ResolveAliasInput":{ - "type":"structure", - "required":["AliasId"], - "members":{ - "AliasId":{"shape":"AliasId"} - } - }, - "ResolveAliasOutput":{ - "type":"structure", - "members":{ - "FleetId":{"shape":"FleetId"} - } - }, - "RoutingStrategy":{ - "type":"structure", - "members":{ - "Type":{"shape":"RoutingStrategyType"}, - "FleetId":{"shape":"FleetId"}, - "Message":{"shape":"FreeText"} - } - }, - "RoutingStrategyType":{ - "type":"string", - "enum":[ - "SIMPLE", - "TERMINAL" - ] - }, - "S3Location":{ - "type":"structure", - "members":{ - "Bucket":{"shape":"NonEmptyString"}, - "Key":{"shape":"NonEmptyString"}, - "RoleArn":{"shape":"NonEmptyString"} - } - }, - "ScalingAdjustmentType":{ - "type":"string", - "enum":[ - "ChangeInCapacity", - "ExactCapacity", - "PercentChangeInCapacity" - ] - }, - "ScalingPolicy":{ - "type":"structure", - "members":{ - "FleetId":{"shape":"FleetId"}, - "Name":{"shape":"NonZeroAndMaxString"}, - "Status":{"shape":"ScalingStatusType"}, - "ScalingAdjustment":{"shape":"Integer"}, - "ScalingAdjustmentType":{"shape":"ScalingAdjustmentType"}, - "ComparisonOperator":{"shape":"ComparisonOperatorType"}, - "Threshold":{"shape":"Double"}, - "EvaluationPeriods":{"shape":"PositiveInteger"}, - "MetricName":{"shape":"MetricName"} - } - }, - "ScalingPolicyList":{ - "type":"list", - "member":{"shape":"ScalingPolicy"} - }, - "ScalingStatusType":{ - "type":"string", - "enum":[ - "ACTIVE", - "UPDATE_REQUESTED", - "UPDATING", - "DELETE_REQUESTED", - "DELETING", - "DELETED", - "ERROR" - ] - }, - "StringList":{ - "type":"list", - "member":{"shape":"NonZeroAndMaxString"} - }, - "TerminalRoutingStrategyException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true - }, - "Timestamp":{"type":"timestamp"}, - "UnauthorizedException":{ - "type":"structure", - "members":{ - "Message":{"shape":"NonEmptyString"} - }, - "exception":true - }, - "UpdateAliasInput":{ - "type":"structure", - "required":["AliasId"], - "members":{ - "AliasId":{"shape":"AliasId"}, - "Name":{"shape":"NonZeroAndMaxString"}, - "Description":{"shape":"NonZeroAndMaxString"}, - "RoutingStrategy":{"shape":"RoutingStrategy"} - } - }, - "UpdateAliasOutput":{ - "type":"structure", - "members":{ - "Alias":{"shape":"Alias"} - } - }, - "UpdateBuildInput":{ - "type":"structure", - "required":["BuildId"], - "members":{ - "BuildId":{"shape":"BuildId"}, - "Name":{"shape":"NonZeroAndMaxString"}, - "Version":{"shape":"NonZeroAndMaxString"} - } - }, - "UpdateBuildOutput":{ - "type":"structure", - "members":{ - "Build":{"shape":"Build"} - } - }, - "UpdateFleetAttributesInput":{ - "type":"structure", - "required":["FleetId"], - "members":{ - "FleetId":{"shape":"FleetId"}, - "Name":{"shape":"NonZeroAndMaxString"}, - "Description":{"shape":"NonZeroAndMaxString"}, - "NewGameSessionProtectionPolicy":{"shape":"ProtectionPolicy"} - } - }, - "UpdateFleetAttributesOutput":{ - "type":"structure", - "members":{ - "FleetId":{"shape":"FleetId"} - } - }, - "UpdateFleetCapacityInput":{ - "type":"structure", - "required":["FleetId"], - "members":{ - "FleetId":{"shape":"FleetId"}, - "DesiredInstances":{"shape":"WholeNumber"}, - "MinSize":{"shape":"WholeNumber"}, - "MaxSize":{"shape":"WholeNumber"} - } - }, - "UpdateFleetCapacityOutput":{ - "type":"structure", - "members":{ - "FleetId":{"shape":"FleetId"} - } - }, - "UpdateFleetPortSettingsInput":{ - "type":"structure", - "required":["FleetId"], - "members":{ - "FleetId":{"shape":"FleetId"}, - "InboundPermissionAuthorizations":{"shape":"IpPermissionsList"}, - "InboundPermissionRevocations":{"shape":"IpPermissionsList"} - } - }, - "UpdateFleetPortSettingsOutput":{ - "type":"structure", - "members":{ - "FleetId":{"shape":"FleetId"} - } - }, - "UpdateGameSessionInput":{ - "type":"structure", - "required":["GameSessionId"], - "members":{ - "GameSessionId":{"shape":"GameSessionId"}, - "MaximumPlayerSessionCount":{"shape":"WholeNumber"}, - "Name":{"shape":"NonZeroAndMaxString"}, - "PlayerSessionCreationPolicy":{"shape":"PlayerSessionCreationPolicy"}, - "ProtectionPolicy":{"shape":"ProtectionPolicy"} - } - }, - "UpdateGameSessionOutput":{ - "type":"structure", - "members":{ - "GameSession":{"shape":"GameSession"} - } - }, - "WholeNumber":{ - "type":"integer", - "min":0 - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json deleted file mode 100644 index 355a151ae..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/docs-2.json +++ /dev/null @@ -1,1033 +0,0 @@ -{ - "version": "2.0", - "operations": { - "CreateAlias": "

    Creates an alias for a fleet. You can use an alias to anonymize your fleet by referencing an alias instead of a specific fleet when you create game sessions. Amazon GameLift supports two types of routing strategies for aliases: simple and terminal. Use a simple alias to point to an active fleet. Use a terminal alias to display a message to incoming traffic instead of routing players to an active fleet. This option is useful when a game server is no longer supported but you want to provide better messaging than a standard 404 error.

    To create a fleet alias, specify an alias name, routing strategy, and optional description. If successful, a new alias record is returned, including an alias ID, which you can reference when creating a game session. To reassign the alias to another fleet ID, call UpdateAlias.

    ", - "CreateBuild": "

    Initializes a new build record and generates information required to upload a game build to Amazon GameLift. Once the build record has been created and is in an INITIALIZED state, you can upload your game build.

    To create a build, use the CLI command upload-build, which creates a new build record and uploads the build files in one step. (See the Amazon GameLift Developer Guide for more details on the CLI and the upload process.) Call the CreateBuild action only if you have your own Amazon Simple Storage Service (Amazon S3) client and need to manually upload your build files.

    To create a new build, optionally specify a build name and version. This metadata is stored with other properties in the build record and is displayed in the GameLift console (but not visible to players). If successful, this action returns the newly created build record along with an Amazon S3 storage location and AWS account credentials. Use the location and credentials to upload your game build.

    ", - "CreateFleet": "

    Creates a new fleet to host game servers. A fleet consists of a set of Amazon Elastic Compute Cloud (Amazon EC2) instances of a certain type, which defines the CPU, memory, storage, and networking capacity of each host in the fleet. See Amazon EC2 Instance Types for more information. Each instance in the fleet hosts a game server created from the specified game build. Once a fleet is in an ACTIVE state, it can begin hosting game sessions.

    To create a new fleet, provide a name and the EC2 instance type for the new fleet, and specify the build and server launch path. Builds must be in a READY state before they can be used to build fleets. When configuring the new fleet, you can optionally (1) provide a set of launch parameters to be passed to a game server when activated; (2) limit incoming traffic to a specified range of IP addresses and port numbers; (3) set game session protection for all instances in the fleet, and (4) configure Amazon GameLift to store game session logs by specifying the path to the logs stored in your game server files. If the call is successful, Amazon GameLift performs the following tasks:

    • Creates a fleet record and sets the state to NEW.
    • Sets the fleet's capacity to 1 \"desired\" and 1 \"active\" EC2 instance count.
    • Creates an EC2 instance and begins the process of initializing the fleet and activating a game server on the instance.
    • Begins writing events to the fleet event log, which can be accessed in the GameLift console.

    Once a fleet is created, use the following actions to change certain fleet properties (server launch parameters and log paths cannot be changed):

    ", - "CreateGameSession": "

    Creates a multiplayer game session for players. This action creates a game session record and assigns the new session to an instance in the specified fleet, which activates the server initialization process in your game server. A fleet must be in an ACTIVE state before a game session can be created for it.

    To create a game session, specify either a fleet ID or an alias ID and indicate the maximum number of players the game session allows. You can also provide a name and a set of properties for your game (optional). If successful, a GameSession object is returned containing session properties, including an IP address. By default, newly created game sessions are set to accept adding any new players to the game session. Use UpdateGameSession to change the creation policy.

    ", - "CreatePlayerSession": "

    Adds a player to a game session and creates a player session record. A game session must be in an ACTIVE state, have a creation policy of ALLOW_ALL, and have an open player slot before players can be added to the session.

    To create a player session, specify a game session ID and player ID. If successful, the player is added to the game session and a new PlayerSession object is returned.

    ", - "CreatePlayerSessions": "

    Adds a group of players to a game session. Similar to CreatePlayerSession, this action allows you to add multiple players in a single call, which is useful for games that provide party and/or matchmaking features. A game session must be in an ACTIVE state, have a creation policy of ALLOW_ALL, and have an open player slot before players can be added to the session.

    To create player sessions, specify a game session ID and a list of player IDs. If successful, the players are added to the game session and a set of new PlayerSession objects is returned.

    ", - "DeleteAlias": "

    Deletes an alias. This action removes all record of the alias; game clients attempting to access a game server using the deleted alias receive an error. To delete an alias, specify the alias ID to be deleted.

    ", - "DeleteBuild": "

    Deletes a build. This action permanently deletes the build record and any uploaded build files.

    To delete a build, specify its ID. Deleting a build does not affect the status of any active fleets, but you can no longer create new fleets for the deleted build.

    ", - "DeleteFleet": "

    Deletes everything related to a fleet. Before deleting a fleet, you must set the fleet's desired capacity to zero. See UpdateFleetCapacity.

    This action removes the fleet's resources and the fleet record. Once a fleet is deleted, you can no longer use that fleet.

    ", - "DeleteScalingPolicy": "

    Deletes a fleet scaling policy. This action means that the policy is no longer in force and removes all record of it. To delete a scaling policy, specify both the scaling policy name and the fleet ID it is associated with.

    ", - "DescribeAlias": "

    Retrieves properties for a specified alias. To get the alias, specify an alias ID. If successful, an Alias object is returned.

    ", - "DescribeBuild": "

    Retrieves properties for a build. To get a build record, specify a build ID. If successful, an object containing the build properties is returned.

    ", - "DescribeEC2InstanceLimits": "

    Retrieves the following information for the specified EC2 instance type:

    • maximum number of instances allowed per AWS account (service limit)
    • current usage level for the AWS account

    Service limits vary depending on region. Available regions for GameLift can be found in the AWS Management Console for GameLift (see the drop-down list in the upper right corner).

    ", - "DescribeFleetAttributes": "

    Retrieves fleet properties, including metadata, status, and configuration, for one or more fleets. You can request attributes for all fleets, or specify a list of one or more fleet IDs. When requesting all fleets, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a FleetAttributes object is returned for each requested fleet ID. When specifying a list of fleet IDs, attribute objects are returned only for fleets that currently exist.

    Some API actions may limit the number of fleet IDs allowed in one request. If a request exceeds this limit, the request fails and the error message includes the maximum allowed.

    ", - "DescribeFleetCapacity": "

    Retrieves the current status of fleet capacity for one or more fleets. This information includes the number of instances that have been requested for the fleet and the number currently active. You can request capacity for all fleets, or specify a list of one or more fleet IDs. When requesting all fleets, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a FleetCapacity object is returned for each requested fleet ID. When specifying a list of fleet IDs, attribute objects are returned only for fleets that currently exist.

    Some API actions may limit the number of fleet IDs allowed in one request. If a request exceeds this limit, the request fails and the error message includes the maximum allowed.

    ", - "DescribeFleetEvents": "

    Retrieves entries from the fleet event log. You can specify a time range to limit the result set. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a collection of event log entries matching the request are returned.

    ", - "DescribeFleetPortSettings": "

    Retrieves the port settings for a fleet. Port settings are used to limit incoming traffic access to game servers in the fleet. To get a fleet's port settings, specify a fleet ID. If successful, an IpPermission object is returned for the requested fleet ID. If the requested fleet has been deleted, the result set will be empty.

    ", - "DescribeFleetUtilization": "

    Retrieves utilization statistics for one or more fleets. You can request utilization data for all fleets, or specify a list of one or more fleet IDs. When requesting all fleets, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a FleetUtilization object is returned for each requested fleet ID. When specifying a list of fleet IDs, utilization objects are returned only for fleets that currently exist.

    Some API actions may limit the number of fleet IDs allowed in one request. If a request exceeds this limit, the request fails and the error message includes the maximum allowed.

    ", - "DescribeGameSessionDetails": "

    Retrieves properties, including the protection policy in force, for one or more game sessions. This action can be used in several ways: (1) provide a GameSessionId to request details for a specific game session; (2) provide either a FleetId or an AliasId to request properties for all game sessions running on a fleet.

    To get game session record(s), specify just one of the following: game session ID, fleet ID, or alias ID. You can filter this request by game session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a GameSessionDetail object is returned for each session matching the request.

    ", - "DescribeGameSessions": "

    Retrieves properties for one or more game sessions. This action can be used in several ways: (1) provide a GameSessionId to request properties for a specific game session; (2) provide a FleetId or an AliasId to request properties for all game sessions running on a fleet.

    To get game session record(s), specify just one of the following: game session ID, fleet ID, or alias ID. You can filter this request by game session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a GameSession object is returned for each session matching the request.

    ", - "DescribePlayerSessions": "

    Retrieves properties for one or more player sessions. This action can be used in several ways: (1) provide a PlayerSessionId parameter to request properties for a specific player session; (2) provide a GameSessionId parameter to request properties for all player sessions in the specified game session; (3) provide a PlayerId parameter to request properties for all player sessions of a specified player.

    To get game session record(s), specify only one of the following: a player session ID, a game session ID, or a player ID. You can filter this request by player session status. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, a PlayerSession object is returned for each session matching the request.

    ", - "DescribeScalingPolicies": "

    Retrieves all scaling policies applied to a fleet.

    To get a fleet's scaling policies, specify the fleet ID. You can filter this request by policy status, such as to retrieve only active scaling policies. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, set of ScalingPolicy objects is returned for the fleet.

    ", - "GetGameSessionLogUrl": "

    Retrieves the location of stored game session logs for a specified game session. When a game session is terminated, Amazon GameLift automatically stores the logs in Amazon S3. Use this URL to download the logs.

    See the AWS Service Limits page for maximum log file sizes. Log files that exceed this limit are not saved.

    ", - "ListAliases": "

    Retrieves a collection of alias records for this AWS account. You can filter the result set by alias name and/or routing strategy type. Use the pagination parameters to retrieve results in sequential pages.

    Aliases are not listed in any particular order.

    ", - "ListBuilds": "

    Retrieves build records for all builds associated with an AWS account. You can filter the result set by build status. Use the pagination parameters to retrieve results in a set of sequential pages.

    Build records are not listed in any particular order.

    ", - "ListFleets": "

    Retrieves a collection of fleet records for this AWS account. You can filter the result set by build ID. Use the pagination parameters to retrieve results in sequential pages.

    Fleet records are not listed in any particular order.

    ", - "PutScalingPolicy": "

    Creates or updates a scaling policy for a fleet. An active scaling policy prompts GameLift to track a certain metric for a fleet and automatically change the fleet's capacity in specific circumstances. Each scaling policy contains one rule statement. Fleets can have multiple scaling policies in force simultaneously.

    A scaling policy rule statement has the following structure:

    If [MetricName] is [ComparisonOperator] [Threshold] for [EvaluationPeriods] minutes, then [ScalingAdjustmentType] to/by [ScalingAdjustment].

    For example, this policy: \"If the number of idle instances exceeds 20 for more than 15 minutes, then reduce the fleet capacity by 10 instances\" could be implemented as the following rule statement:

    If [IdleInstances] is [GreaterThanOrEqualToThreshold] [20] for [15] minutes, then [ChangeInCapacity] by [-10].

    To create or update a scaling policy, specify a unique combination of name and fleet ID, and set the rule values. All parameters for this action are required. If successful, the policy name is returned. Scaling policies cannot be suspended or made inactive. To stop enforcing a scaling policy, call DeleteScalingPolicy.

    ", - "RequestUploadCredentials": "

    Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage location for a specific build. Valid credentials are required to upload your game build files to Amazon S3.

    Call this action only if you need credentials for a build created with CreateBuild. This is a rare situation; in most cases, builds are created using the CLI command upload-build, which creates a build record and also uploads build files.

    Upload credentials are returned when you create the build, but they have a limited lifespan. You can get fresh credentials and use them to re-upload game files until the state of that build changes to READY. Once this happens, you must create a brand new build.

    ", - "ResolveAlias": "

    Retrieves the fleet ID that a specified alias is currently pointing to.

    ", - "UpdateAlias": "

    Updates properties for an alias. To update properties, specify the alias ID to be updated and provide the information to be changed. To reassign an alias to another fleet, provide an updated routing strategy. If successful, the updated alias record is returned.

    ", - "UpdateBuild": "

    Updates metadata in a build record, including the build name and version. To update the metadata, specify the build ID to update and provide the new values. If successful, a build object containing the updated metadata is returned.

    ", - "UpdateFleetAttributes": "

    Updates fleet properties, including name and description, for a fleet. To update metadata, specify the fleet ID and the property values you want to change. If successful, the fleet ID for the updated fleet is returned.

    ", - "UpdateFleetCapacity": "

    Updates capacity settings for a fleet. Use this action to specify the number of EC2 instances (hosts) you want this fleet to contain. Before calling this action, you may want to call DescribeEC2InstanceLimits to get the maximum capacity based on the fleet's EC2 instance type.

    If you're using auto-scaling (see PutScalingPolicy), you may want to specify a minimum and/or maximum capacity. If you don't provide these boundaries, auto-scaling can set capacity anywhere between zero and the service limits.

    To update fleet capacity, specify the fleet ID and the desired number of instances. If successful, Amazon GameLift starts or terminates instances so that the fleet's active instance count matches the desired instance count. You can view a fleet's current capacity information by calling DescribeFleetCapacity. If the desired instance count is higher than the instance type's limit, the \"Limit Exceeded\" exception will occur.

    ", - "UpdateFleetPortSettings": "

    Updates port settings for a fleet. To update settings, specify the fleet ID to be updated and list the permissions you want to update. List the permissions you want to add in InboundPermissionAuthorizations, and permissions you want to remove in InboundPermissionRevocations. Permissions to be removed must match existing fleet permissions. If successful, the fleet ID for the updated fleet is returned.

    ", - "UpdateGameSession": "

    Updates game session properties. This includes the session name, maximum player count, protection policy, which controls whether or not an active game session can be terminated during a scale-down event, and the player session creation policy, which controls whether or not new players can join the session. To update a game session, specify the game session ID and the values you want to change. If successful, an updated GameSession object is returned.

    " - }, - "service": "Amazon GameLift Service

    Welcome to the Amazon GameLift API Reference. Amazon GameLift is a managed Amazon Web Services (AWS) service for developers who need a scalable, server-based solution for multiplayer games. Amazon GameLift provides setup and deployment of game servers, and handles infrastructure scaling and session management. For more information about the GameLift service, including a feature overview, getting started guide, and tutorial, see the accompanying Amazon GameLift Developer Guide.

    This reference describes the low-level service API for GameLift. You can call this API directly or use the AWS SDK for your preferred language. The AWS SDK includes a set of high-level GameLift actions multiplayer game sessions. Alternatively, you can use the AWS command-line interface (CLI) tool, which includes commands for GameLift. For administrative actions, you can use the Amazon GameLift console.

    Managing Game and Player Sessions Through GameLift

    Call these actions from your game clients and/or services to create and manage multiplayer game sessions.

    Setting Up Game Servers

    Use these administrative actions to configure GameLift to host your game servers. When configuring GameLift, you'll need to (1) configure a build for your game and provide build files, and (2) set up one or more fleets to host game sessions.

    ", - "shapes": { - "Alias": { - "base": "

    Properties describing a fleet alias.

    ", - "refs": { - "AliasList$member": null, - "CreateAliasOutput$Alias": "

    Object containing the newly created alias record.

    ", - "DescribeAliasOutput$Alias": "

    Object containing the requested alias.

    ", - "UpdateAliasOutput$Alias": "

    Object containing the updated alias configuration.

    " - } - }, - "AliasId": { - "base": null, - "refs": { - "Alias$AliasId": "

    Unique identifier for a fleet alias.

    ", - "CreateGameSessionInput$AliasId": "

    Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.

    ", - "DeleteAliasInput$AliasId": "

    Unique identifier for a fleet alias. Specify the alias you want to delete.

    ", - "DescribeAliasInput$AliasId": "

    Unique identifier for a fleet alias. Specify the alias you want to retrieve.

    ", - "DescribeGameSessionDetailsInput$AliasId": "

    Unique identifier for a fleet alias. Specify an alias to retrieve information on all game sessions active on the fleet.

    ", - "DescribeGameSessionsInput$AliasId": "

    Unique identifier for a fleet alias. Specify an alias to retrieve information on all game sessions active on the fleet.

    ", - "ResolveAliasInput$AliasId": "

    Unique identifier for the alias you want to resolve.

    ", - "UpdateAliasInput$AliasId": "

    Unique identifier for a fleet alias. Specify the alias you want to update.

    " - } - }, - "AliasList": { - "base": null, - "refs": { - "ListAliasesOutput$Aliases": "

    Collection of alias records that match the list request.

    " - } - }, - "AwsCredentials": { - "base": "

    AWS access credentials required to upload game build files to Amazon GameLift. These credentials are generated with CreateBuild, and are valid for a limited time. If they expire before you upload your game build, get a new set by calling RequestUploadCredentials.

    ", - "refs": { - "CreateBuildOutput$UploadCredentials": "

    AWS credentials required when uploading a game build to the storage location. These credentials have a limited lifespan and are valid only for the build they were issued for. If you need to get fresh credentials, call RequestUploadCredentials.

    ", - "RequestUploadCredentialsOutput$UploadCredentials": "

    AWS credentials required when uploading a game build to the storage location. These credentials have a limited lifespan and are valid only for the build they were issued for.

    " - } - }, - "Build": { - "base": "

    Properties describing a game build.

    ", - "refs": { - "BuildList$member": null, - "CreateBuildOutput$Build": "

    Set of properties for the newly created build.

    ", - "DescribeBuildOutput$Build": "

    Set of properties describing the requested build.

    ", - "UpdateBuildOutput$Build": "

    Object containing the updated build record.

    " - } - }, - "BuildId": { - "base": null, - "refs": { - "Build$BuildId": "

    Unique identifier for a build.

    ", - "CreateFleetInput$BuildId": "

    Unique identifier for the build you want the new fleet to use.

    ", - "DeleteBuildInput$BuildId": "

    Unique identifier for the build you want to delete.

    ", - "DescribeBuildInput$BuildId": "

    Unique identifier for the build you want to retrieve properties for.

    ", - "FleetAttributes$BuildId": "

    Unique identifier for a build.

    ", - "ListFleetsInput$BuildId": "

    Unique identifier of the build to return fleets for. Use this parameter to return only fleets using the specified build. To retrieve all fleets, leave this parameter empty.

    ", - "RequestUploadCredentialsInput$BuildId": "

    Unique identifier for the build you want to get credentials for.

    ", - "UpdateBuildInput$BuildId": "

    Unique identifier for the build you want to update.

    " - } - }, - "BuildList": { - "base": null, - "refs": { - "ListBuildsOutput$Builds": "

    Collection of build records that match the request.

    " - } - }, - "BuildStatus": { - "base": null, - "refs": { - "Build$Status": "

    Current status of the build. Possible build states include:

    • INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
    • READY: The game build has been successfully uploaded. You can now create new fleets for this build.
    • FAILED: The game build upload failed. You cannot create new fleets for this build.

    ", - "ListBuildsInput$Status": "

    Build state to filter results on. Use this parameter to retrieve builds in a certain state. To retrieve all builds, leave this parameter empty. Possible build states include:

    • INITIALIZED: A new build has been defined, but no files have been uploaded. You cannot create fleets for builds that are in this state. When a build is successfully created, the build state is set to this value.
    • READY: The game build has been successfully uploaded. You can now create new fleets for this build.
    • FAILED: The game build upload failed. You cannot create new fleets for this build.

    " - } - }, - "ComparisonOperatorType": { - "base": null, - "refs": { - "PutScalingPolicyInput$ComparisonOperator": "

    Comparison operator to use when measuring the metric against the threshold value.

    ", - "ScalingPolicy$ComparisonOperator": "

    Comparison operator to use when measuring a metric against the threshold value.

    " - } - }, - "ConflictException": { - "base": "

    The requested operation would cause a conflict with the current state of a service resource associated with the request. Please resolve the conflict before retrying this request.

    ", - "refs": { - } - }, - "CreateAliasInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "CreateAliasOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "CreateBuildInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "CreateBuildOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "CreateFleetInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "CreateFleetOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "CreateGameSessionInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "CreateGameSessionOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "CreatePlayerSessionInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "CreatePlayerSessionOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "CreatePlayerSessionsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "CreatePlayerSessionsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DeleteAliasInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DeleteBuildInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DeleteFleetInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DeleteScalingPolicyInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeAliasInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeAliasOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribeBuildInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeBuildOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribeEC2InstanceLimitsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeEC2InstanceLimitsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribeFleetAttributesInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeFleetAttributesOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribeFleetCapacityInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeFleetCapacityOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribeFleetEventsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeFleetEventsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribeFleetPortSettingsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeFleetPortSettingsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribeFleetUtilizationInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeFleetUtilizationOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribeGameSessionDetailsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeGameSessionDetailsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribeGameSessionsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeGameSessionsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribePlayerSessionsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribePlayerSessionsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "DescribeScalingPoliciesInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "DescribeScalingPoliciesOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "Double": { - "base": null, - "refs": { - "PutScalingPolicyInput$Threshold": "

    Metric value used to trigger a scaling event.

    ", - "ScalingPolicy$Threshold": "

    Metric value used to trigger a scaling event.

    " - } - }, - "EC2InstanceCounts": { - "base": "

    Current status of fleet capacity. The number of active instances should match or be in the process of matching the number of desired instances. Pending and terminating counts are non-zero only if fleet capacity is adjusting to an UpdateFleetCapacity request, or if access to resources is temporarily affected.

    ", - "refs": { - "FleetCapacity$InstanceCounts": "

    Current status of fleet capacity.

    " - } - }, - "EC2InstanceLimit": { - "base": "

    Maximum number of instances allowed based on the Amazon Elastic Compute Cloud (Amazon EC2) instance type. Instance limits can be retrieved by calling DescribeEC2InstanceLimits.

    ", - "refs": { - "EC2InstanceLimitList$member": null - } - }, - "EC2InstanceLimitList": { - "base": null, - "refs": { - "DescribeEC2InstanceLimitsOutput$EC2InstanceLimits": "

    Object containing the maximum number of instances for the specified instance type.

    " - } - }, - "EC2InstanceType": { - "base": null, - "refs": { - "CreateFleetInput$EC2InstanceType": "

    Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.

    ", - "DescribeEC2InstanceLimitsInput$EC2InstanceType": "

    Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each. Leave this parameter blank to retrieve limits for all types.

    ", - "EC2InstanceLimit$EC2InstanceType": "

    Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.

    ", - "FleetCapacity$InstanceType": "

    Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.

    " - } - }, - "Event": { - "base": "

    Log entry describing an event involving an Amazon GameLift resource (such as a fleet).

    ", - "refs": { - "EventList$member": null - } - }, - "EventCode": { - "base": null, - "refs": { - "Event$EventCode": "

    Type of event being logged.

    " - } - }, - "EventList": { - "base": null, - "refs": { - "DescribeFleetEventsOutput$Events": "

    Collection of objects containing event log entries for the specified fleet.

    " - } - }, - "FleetAttributes": { - "base": "

    General properties describing a fleet.

    ", - "refs": { - "CreateFleetOutput$FleetAttributes": "

    Properties for the newly created fleet.

    ", - "FleetAttributesList$member": null - } - }, - "FleetAttributesList": { - "base": null, - "refs": { - "DescribeFleetAttributesOutput$FleetAttributes": "

    Collection of objects containing attribute metadata for each requested fleet ID.

    " - } - }, - "FleetCapacity": { - "base": "

    Information about the fleet's capacity. Fleet capacity is measured in EC2 instances. By default, new fleets have a capacity of one instance, but can be updated as needed. The maximum number of instances for a fleet is determined by the fleet's instance type.

    ", - "refs": { - "FleetCapacityList$member": null - } - }, - "FleetCapacityExceededException": { - "base": "

    The specified fleet has no available instances to fulfill a request to create a new game session. Such requests should only be retried once the fleet capacity has been increased.

    ", - "refs": { - } - }, - "FleetCapacityList": { - "base": null, - "refs": { - "DescribeFleetCapacityOutput$FleetCapacity": "

    Collection of objects containing capacity information for each requested fleet ID. Leave this parameter empty to retrieve capacity information for all fleets.

    " - } - }, - "FleetId": { - "base": null, - "refs": { - "CreateGameSessionInput$FleetId": "

    Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.

    ", - "DeleteFleetInput$FleetId": "

    Unique identifier for the fleet you want to delete.

    ", - "DeleteScalingPolicyInput$FleetId": "

    Unique identifier for a fleet.

    ", - "DescribeFleetEventsInput$FleetId": "

    Unique identifier for the fleet to get event logs for.

    ", - "DescribeFleetPortSettingsInput$FleetId": "

    Unique identifier for the fleet you want to retrieve port settings for.

    ", - "DescribeGameSessionDetailsInput$FleetId": "

    Unique identifier for a fleet. Specify a fleet to retrieve information on all game sessions active on the fleet.

    ", - "DescribeGameSessionsInput$FleetId": "

    Unique identifier for a fleet. Specify a fleet to retrieve information on all game sessions active on the fleet.

    ", - "DescribeScalingPoliciesInput$FleetId": "

    Unique identifier for a fleet. Specify the fleet to retrieve scaling policies for.

    ", - "FleetAttributes$FleetId": "

    Unique identifier for a fleet.

    ", - "FleetCapacity$FleetId": "

    Unique identifier for a fleet.

    ", - "FleetIdList$member": null, - "FleetUtilization$FleetId": "

    Unique identifier for a fleet.

    ", - "GameSession$FleetId": "

    Unique identifier for a fleet.

    ", - "PlayerSession$FleetId": "

    Unique identifier for a fleet.

    ", - "PutScalingPolicyInput$FleetId": "

    Unique identity for the fleet to scale with this policy.

    ", - "ResolveAliasOutput$FleetId": "

    Fleet ID associated with the requested alias.

    ", - "RoutingStrategy$FleetId": "

    Unique identifier for a fleet.

    ", - "ScalingPolicy$FleetId": "

    Unique identity for the fleet associated with this scaling policy.

    ", - "UpdateFleetAttributesInput$FleetId": "

    Unique identifier for the fleet you want to update attribute metadata for.

    ", - "UpdateFleetAttributesOutput$FleetId": "

    Unique identifier for the updated fleet.

    ", - "UpdateFleetCapacityInput$FleetId": "

    Unique identifier for the fleet you want to update capacity for.

    ", - "UpdateFleetCapacityOutput$FleetId": "

    Unique identifier for the updated fleet.

    ", - "UpdateFleetPortSettingsInput$FleetId": "

    Unique identifier for the fleet you want to update port settings for.

    ", - "UpdateFleetPortSettingsOutput$FleetId": "

    Unique identifier for the updated fleet.

    " - } - }, - "FleetIdList": { - "base": null, - "refs": { - "DescribeFleetAttributesInput$FleetIds": "

    Unique identifiers for the fleet(s) that you want to retrieve attributes for. Leave this parameter empty to retrieve attributes for all fleets.

    ", - "DescribeFleetCapacityInput$FleetIds": "

    Unique identifier for the fleet(s) you want to retrieve capacity information for.

    ", - "DescribeFleetUtilizationInput$FleetIds": "

    Unique identifier for the fleet(s) you want to retrieve utilization data for. Leave this parameter empty to retrieve utilization data for all fleets.

    ", - "ListFleetsOutput$FleetIds": "

    Set of fleet IDs matching the list request. You can retrieve additional information about all returned fleets by passing this result set to a call to DescribeFleetAttributes, DescribeFleetCapacity, and DescribeFleetUtilization.

    " - } - }, - "FleetStatus": { - "base": null, - "refs": { - "FleetAttributes$Status": "

    Current status of the fleet. Possible fleet states include:

    • NEW: A new fleet has been defined and hosts allocated.
    • DOWNLOADING/VALIDATING/BUILDING/ACTIVATING: The new fleet is being set up with the game build, and new hosts are being started.
    • ACTIVE: Hosts can now accept game sessions.
    • ERROR: An error occurred when downloading, validating, building, or activating the fleet.
    • DELETING: Hosts are responding to a delete fleet request.
    • TERMINATED: The fleet no longer exists.

    " - } - }, - "FleetUtilization": { - "base": "

    Current status of fleet utilization, including the number of game and player sessions being hosted.

    ", - "refs": { - "FleetUtilizationList$member": null - } - }, - "FleetUtilizationList": { - "base": null, - "refs": { - "DescribeFleetUtilizationOutput$FleetUtilization": "

    Collection of objects containing utilization information for each requested fleet ID.

    " - } - }, - "FreeText": { - "base": null, - "refs": { - "Alias$Name": "

    Descriptive label associated with this alias. Alias names do not need to be unique.

    ", - "Alias$Description": "

    Human-readable description of the alias.

    ", - "Build$Name": "

    Descriptive label associated with this build. Build names do not need to be unique. It can be set using CreateBuild or UpdateBuild.

    ", - "Build$Version": "

    Version associated with this build. Version strings do not need to be unique to a build. This value can be set using CreateBuild or UpdateBuild.

    ", - "RoutingStrategy$Message": "

    Message text to be used with a terminal routing strategy.

    " - } - }, - "GameProperty": { - "base": "

    Set of key-value pairs containing information your game server requires to set up sessions. This object allows you to pass in any set of data needed for your game. For more information, see the Amazon GameLift Developer Guide.

    ", - "refs": { - "GamePropertyList$member": null - } - }, - "GamePropertyKey": { - "base": null, - "refs": { - "GameProperty$Key": null - } - }, - "GamePropertyList": { - "base": null, - "refs": { - "CreateGameSessionInput$GameProperties": "

    Set of properties used to administer a game session. These properties are passed to your game server.

    ", - "GameSession$GameProperties": "

    Set of custom properties for the game session.

    " - } - }, - "GamePropertyValue": { - "base": null, - "refs": { - "GameProperty$Value": null - } - }, - "GameSession": { - "base": "

    Properties describing a game session.

    ", - "refs": { - "CreateGameSessionOutput$GameSession": "

    Object containing the newly created game session record.

    ", - "GameSessionDetail$GameSession": null, - "GameSessionList$member": null, - "UpdateGameSessionOutput$GameSession": "

    Object containing the updated game session metadata.

    " - } - }, - "GameSessionDetail": { - "base": "

    A game session's properties and the protection policy currently in force.

    ", - "refs": { - "GameSessionDetailList$member": null - } - }, - "GameSessionDetailList": { - "base": null, - "refs": { - "DescribeGameSessionDetailsOutput$GameSessionDetails": "

    Collection of objects containing game session properties and the protection policy currently in force for each session matching the request.

    " - } - }, - "GameSessionFullException": { - "base": "

    The game instance is currently full and cannot allow the requested player(s) to join. This exception occurs in response to a CreatePlayerSession request.

    ", - "refs": { - } - }, - "GameSessionId": { - "base": null, - "refs": { - "CreatePlayerSessionInput$GameSessionId": "

    Unique identifier for a game session. Specify the game session you want to add a player to.

    ", - "CreatePlayerSessionsInput$GameSessionId": "

    Unique identifier for a game session.

    ", - "DescribeGameSessionDetailsInput$GameSessionId": "

    Unique identifier for a game session. Specify the game session to retrieve information on.

    ", - "DescribeGameSessionsInput$GameSessionId": "

    Unique identifier for a game session. Specify the game session to retrieve information on.

    ", - "DescribePlayerSessionsInput$GameSessionId": "

    Unique identifier for a game session.

    ", - "GameSession$GameSessionId": "

    Unique identifier for a game session.

    ", - "GetGameSessionLogUrlInput$GameSessionId": "

    Unique identifier for a game session. Specify the game session you want to get logs for.

    ", - "PlayerSession$GameSessionId": "

    Unique identifier for a game session.

    ", - "UpdateGameSessionInput$GameSessionId": "

    Unique identifier for a game session. Specify the game session you want to update.

    " - } - }, - "GameSessionList": { - "base": null, - "refs": { - "DescribeGameSessionsOutput$GameSessions": "

    Collection of objects containing game session properties for each session matching the request.

    " - } - }, - "GameSessionStatus": { - "base": null, - "refs": { - "GameSession$Status": "

    Current status of the game session. A game session must be in an ACTIVE state to have player sessions.

    " - } - }, - "GetGameSessionLogUrlInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "GetGameSessionLogUrlOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "PutScalingPolicyInput$ScalingAdjustment": "

    Amount of adjustment to make, based on the scaling adjustment type.

    ", - "ScalingPolicy$ScalingAdjustment": "

    Amount of adjustment to make, based on the scaling adjustment type.

    " - } - }, - "InternalServiceException": { - "base": "

    The service encountered an unrecoverable internal failure while processing the request. Such requests can be retried by clients, either immediately or after a back-off period.

    ", - "refs": { - } - }, - "InvalidFleetStatusException": { - "base": "

    The requested operation would cause a conflict with the current state of a resource associated with the request and/or the fleet. Please resolve the conflict before retrying.

    ", - "refs": { - } - }, - "InvalidGameSessionStatusException": { - "base": "

    The requested operation would cause a conflict with the current state of a resource associated with the request and/or the game instance. Such requests should not be retried by clients without resolving the conflict.

    ", - "refs": { - } - }, - "InvalidRequestException": { - "base": "

    One or more parameters specified as part of the request are invalid. Please correct the invalid parameters before retrying.

    ", - "refs": { - } - }, - "IpAddress": { - "base": null, - "refs": { - "GameSession$IpAddress": "

    IP address of the game session.

    ", - "PlayerSession$IpAddress": "

    Game session IP address. All player sessions reference the game session location.

    " - } - }, - "IpPermission": { - "base": "

    IP addresses and port settings used to limit access by incoming traffic (players) to a fleet. Permissions specify a range of IP addresses and port settings that must be used to gain access to a game server on a fleet machine.

    ", - "refs": { - "IpPermissionsList$member": null - } - }, - "IpPermissionsList": { - "base": null, - "refs": { - "CreateFleetInput$EC2InboundPermissions": "

    Access limits for incoming traffic. Setting these values limits game server access to incoming traffic using specified IP ranges and port numbers. Some ports in a range may be restricted. You can provide one or more sets of permissions for the fleet.

    ", - "DescribeFleetPortSettingsOutput$InboundPermissions": "

    Object containing port settings for the requested fleet ID.

    ", - "UpdateFleetPortSettingsInput$InboundPermissionAuthorizations": "

    Collection of port settings to be added to the fleet record.

    ", - "UpdateFleetPortSettingsInput$InboundPermissionRevocations": "

    Collection of port settings to be removed from the fleet record.

    " - } - }, - "IpProtocol": { - "base": null, - "refs": { - "IpPermission$Protocol": "

    Network communication protocol used by the fleet.

    " - } - }, - "LimitExceededException": { - "base": "

    The requested operation would cause the resource to exceed the allowed service limit. Please resolve the issue before retrying.

    ", - "refs": { - } - }, - "ListAliasesInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "ListAliasesOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "ListBuildsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "ListBuildsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "ListFleetsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "ListFleetsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "MetricName": { - "base": null, - "refs": { - "PutScalingPolicyInput$MetricName": "

    Name of the Service-defined metric that is used to trigger an adjustment.

    • ActivatingGameSessions: number of game sessions in the process of being created (game session status = ACTIVATING).
    • ActiveGameSessions: number of game sessions currently running (game session status = ACTIVE).
    • CurrentPlayerSessions: number of active or reserved player sessions (player session status = ACTIVE or RESERVED).
    • AvailablePlayerSessions: number of player session slots currently available in active game sessions across the fleet, calculated by subtracting a game session's current player session count from its maximum player session count. This number includes game sessions that are not currently accepting players (game session PlayerSessionCreationPolicy = DENY_ALL).
    • ActiveInstances: number of instances currently running a game session.
    • IdleInstances: number of instances not currently running a game session.

    ", - "ScalingPolicy$MetricName": "

    Name of the GameLift-defined metric that is used to trigger an adjustment.

    • ActivatingGameSessions: number of game sessions in the process of being created (game session status = ACTIVATING).
    • ActiveGameSessions: number of game sessions currently running (game session status = ACTIVE).
    • CurrentPlayerSessions: number of active or reserved player sessions (player session status = ACTIVE or RESERVED).
    • AvailablePlayerSessions: number of player session slots currently available in active game sessions across the fleet, calculated by subtracting a game session's current player session count from its maximum player session count. This number does include game sessions that are not currently accepting players (game session PlayerSessionCreationPolicy = DENY_ALL).
    • ActiveInstances: number of instances currently running a game session.
    • IdleInstances: number of instances not currently running a game session.

    " - } - }, - "NonBlankString": { - "base": null, - "refs": { - "IpPermission$IpRange": "

    Range of allowed IP addresses. This value must be expressed in CIDR notation. Example: \"000.000.000.000/[subnet mask]\" or optionally the shortened version \"0.0.0.0/[subnet mask]\".

    " - } - }, - "NonEmptyString": { - "base": null, - "refs": { - "AwsCredentials$AccessKeyId": "

    Access key for an AWS account.

    ", - "AwsCredentials$SecretAccessKey": "

    Secret key for an AWS account.

    ", - "AwsCredentials$SessionToken": "

    Token specific to a build ID.

    ", - "ConflictException$Message": null, - "Event$Message": "

    Additional information related to the event.

    ", - "FleetCapacityExceededException$Message": null, - "GameSessionFullException$Message": null, - "InternalServiceException$Message": null, - "InvalidFleetStatusException$Message": null, - "InvalidGameSessionStatusException$Message": null, - "InvalidRequestException$Message": null, - "LimitExceededException$Message": null, - "ListAliasesInput$Name": "

    Descriptive label associated with this alias. Alias names do not need to be unique.

    ", - "ListAliasesInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

    ", - "ListAliasesOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "ListBuildsInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

    ", - "ListBuildsOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "NotFoundException$Message": null, - "S3Location$Bucket": "

    Amazon S3 bucket identifier.

    ", - "S3Location$Key": "

    Amazon S3 bucket key.

    ", - "S3Location$RoleArn": null, - "TerminalRoutingStrategyException$Message": null, - "UnauthorizedException$Message": null - } - }, - "NonZeroAndMaxString": { - "base": null, - "refs": { - "CreateAliasInput$Name": "

    Descriptive label associated with this alias. Alias names do not need to be unique.

    ", - "CreateAliasInput$Description": "

    Human-readable description of the alias.

    ", - "CreateBuildInput$Name": "

    Descriptive label associated with this build. Build names do not need to be unique. A build name can be changed later using UpdateBuild.

    ", - "CreateBuildInput$Version": "

    Version associated with this build. Version strings do not need to be unique to a build. A build version can be changed later using UpdateBuild.

    ", - "CreateFleetInput$Name": "

    Descriptive label associated with this fleet. Fleet names do not need to be unique.

    ", - "CreateFleetInput$Description": "

    Human-readable description of the fleet.

    ", - "CreateFleetInput$ServerLaunchPath": "

    Path to the launch executable for the game server. A game server is built into a C:\\game drive. This value must be expressed as C:\\game\\[launchpath]. Example: If, when built, your game server files are in a folder called \"MyGame\", your log path should be C:\\game\\MyGame\\server.exe.

    ", - "CreateFleetInput$ServerLaunchParameters": "

    Parameters required to launch your game server. These parameters should be expressed as a string of command-line parameters. Example: \"+sv_port 33435 +start_lobby\".

    ", - "CreateGameSessionInput$Name": "

    Descriptive label associated with this game session. Session names do not need to be unique.

    ", - "CreatePlayerSessionInput$PlayerId": "

    Unique identifier for the player to be added.

    ", - "DeleteScalingPolicyInput$Name": "

    Descriptive label associated with this scaling policy. Policy names do not need to be unique.

    ", - "DescribeFleetAttributesInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.

    ", - "DescribeFleetAttributesOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "DescribeFleetCapacityInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.

    ", - "DescribeFleetCapacityOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "DescribeFleetEventsInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

    ", - "DescribeFleetEventsOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "DescribeFleetUtilizationInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.

    ", - "DescribeFleetUtilizationOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "DescribeGameSessionDetailsInput$StatusFilter": "

    Game session status to filter results on. Possible game session states include ACTIVE, TERMINATED, ACTIVATING and TERMINATING (the last two are transitory).

    ", - "DescribeGameSessionDetailsInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

    ", - "DescribeGameSessionDetailsOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "DescribeGameSessionsInput$StatusFilter": "

    Game session status to filter results on. Possible game session states include ACTIVE, TERMINATED, ACTIVATING and TERMINATING (the last two are transitory).

    ", - "DescribeGameSessionsInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

    ", - "DescribeGameSessionsOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "DescribePlayerSessionsInput$PlayerId": "

    Unique identifier for a player.

    ", - "DescribePlayerSessionsInput$PlayerSessionStatusFilter": "

    Player session status to filter results on. Possible player session states include:

    • RESERVED: The player session request has been received, but the player has not yet connected to the game server and/or been validated.
    • ACTIVE: The player has been validated by the game server and is currently connected.
    • COMPLETED: The player connection has been dropped.
    • TIMEDOUT: A player session request was received, but the player did not connect and/or was not validated within the time-out limit (60 seconds).

    ", - "DescribePlayerSessionsInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. If a player session ID is specified, this parameter is ignored.

    ", - "DescribePlayerSessionsOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "DescribeScalingPoliciesInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

    ", - "DescribeScalingPoliciesOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "Event$EventId": "

    Unique identifier for a fleet event.

    ", - "Event$ResourceId": "

    Unique identifier for the resource, such as a fleet ID.

    ", - "FleetAttributes$Description": "

    Human-readable description of the fleet.

    ", - "FleetAttributes$Name": "

    Descriptive label associated with this fleet. Fleet names do not need to be unique.

    ", - "FleetAttributes$ServerLaunchPath": "

    Path to the launch executable for the game server. A game server is built into a C:\\game drive. This value must be expressed as C:\\game\\[launchpath]. Example: If, when built, your game server files are in a folder called \"MyGame\", your log path should be C:\\game\\MyGame\\server.exe.

    ", - "FleetAttributes$ServerLaunchParameters": "

    Parameters required to launch your game server. These parameters should be expressed as a string of command-line parameters. Example: \"+sv_port 33435 +start_lobby\".

    ", - "GameSession$Name": "

    Descriptive label associated with this game session. Session names do not need to be unique.

    ", - "GetGameSessionLogUrlOutput$PreSignedUrl": "

    Location of the requested game session logs, available for download.

    ", - "ListFleetsInput$NextToken": "

    Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.

    ", - "ListFleetsOutput$NextToken": "

    Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.

    If a request has a limit that exactly matches the number of remaining results, a token is returned even though there are no more results to retrieve.

    ", - "PlayerIdList$member": null, - "PlayerSession$PlayerId": "

    Unique identifier for a player.

    ", - "PutScalingPolicyInput$Name": "

    Descriptive label associated with this scaling policy. Policy names do not need to be unique. A fleet can have only one scaling policy with the same name.

    ", - "PutScalingPolicyOutput$Name": "

    Descriptive label associated with this scaling policy. Policy names do not need to be unique.

    ", - "ScalingPolicy$Name": "

    Descriptive label associated with this scaling policy. Policy names do not need to be unique.

    ", - "StringList$member": null, - "UpdateAliasInput$Name": "

    Descriptive label associated with this alias. Alias names do not need to be unique.

    ", - "UpdateAliasInput$Description": "

    Human-readable description of the alias.

    ", - "UpdateBuildInput$Name": "

    Descriptive label associated with this build. Build names do not need to be unique.

    ", - "UpdateBuildInput$Version": "

    Version associated with this build. Version strings do not need to be unique to a build.

    ", - "UpdateFleetAttributesInput$Name": "

    Descriptive label associated with this fleet. Fleet names do not need to be unique.

    ", - "UpdateFleetAttributesInput$Description": "

    Human-readable description of the fleet.

    ", - "UpdateGameSessionInput$Name": "

    Descriptive label associated with this game session. Session names do not need to be unique.

    " - } - }, - "NotFoundException": { - "base": "

    A service resource associated with the request could not be found. Such requests should not be retried by clients.

    ", - "refs": { - } - }, - "PlayerIdList": { - "base": null, - "refs": { - "CreatePlayerSessionsInput$PlayerIds": "

    List of unique identifiers for the players to be added.

    " - } - }, - "PlayerSession": { - "base": "

    Properties describing a player session.

    ", - "refs": { - "CreatePlayerSessionOutput$PlayerSession": "

    Object containing the newly created player session record.

    ", - "PlayerSessionList$member": null - } - }, - "PlayerSessionCreationPolicy": { - "base": null, - "refs": { - "GameSession$PlayerSessionCreationPolicy": "

    Indicates whether or not the game session is accepting new players.

    ", - "UpdateGameSessionInput$PlayerSessionCreationPolicy": "

    Policy determining whether or not the game session accepts new players.

    " - } - }, - "PlayerSessionId": { - "base": null, - "refs": { - "DescribePlayerSessionsInput$PlayerSessionId": "

    Unique identifier for a player session.

    ", - "PlayerSession$PlayerSessionId": "

    Unique identifier for a player session.

    " - } - }, - "PlayerSessionList": { - "base": null, - "refs": { - "CreatePlayerSessionsOutput$PlayerSessions": "

    Collection of player session objects created for the added players.

    ", - "DescribePlayerSessionsOutput$PlayerSessions": "

    Collection of objects containing properties for each player session that matches the request.

    " - } - }, - "PlayerSessionStatus": { - "base": null, - "refs": { - "PlayerSession$Status": "

    Current status of the player session. Possible player session states include:

    • RESERVED: The player session request has been received, but the player has not yet connected to the game server and/or been validated.
    • ACTIVE: The player has been validated by the game server and is currently connected.
    • COMPLETED: The player connection has been dropped.
    • TIMEDOUT: A player session request was received, but the player did not connect and/or was not validated within the time-out limit (60 seconds).

    " - } - }, - "PortNumber": { - "base": null, - "refs": { - "IpPermission$FromPort": "

    Starting value for a range of allowed port numbers.

    ", - "IpPermission$ToPort": "

    Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.

    " - } - }, - "PositiveInteger": { - "base": null, - "refs": { - "DescribeFleetAttributesInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages. This parameter is ignored when the request specifies one or a list of fleet IDs.

    ", - "DescribeFleetCapacityInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages. This parameter is ignored when the request specifies one or a list of fleet IDs.

    ", - "DescribeFleetEventsInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages.

    ", - "DescribeFleetUtilizationInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages. This parameter is ignored when the request specifies one or a list of fleet IDs.

    ", - "DescribeGameSessionDetailsInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages.

    ", - "DescribeGameSessionsInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages.

    ", - "DescribePlayerSessionsInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages. If a player session ID is specified, this parameter is ignored.

    ", - "DescribeScalingPoliciesInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages.

    ", - "ListAliasesInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages.

    ", - "ListBuildsInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages.

    ", - "ListFleetsInput$Limit": "

    Maximum number of results to return. You can use this parameter with NextToken to get results as a set of sequential pages.

    ", - "PutScalingPolicyInput$EvaluationPeriods": "

    Length of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered.

    ", - "ScalingPolicy$EvaluationPeriods": "

    Length of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered.

    " - } - }, - "PositiveLong": { - "base": null, - "refs": { - "Build$SizeOnDisk": "

    File size of the uploaded game build, expressed in bytes. When the build state is INITIALIZED, this value is 0.

    " - } - }, - "ProtectionPolicy": { - "base": null, - "refs": { - "CreateFleetInput$NewGameSessionProtectionPolicy": "

    Game session protection policy to apply to all instances created in this fleet. If this parameter is not set, new instances in this fleet will default to no protection. Protection can be set for individual instances using UpdateGameSession.

    • NoProtection: The game session can be terminated during a scale-down event.
    • FullProtection: If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

    ", - "FleetAttributes$NewGameSessionProtectionPolicy": "

    Type of game session protection to set for all new instances started in the fleet.

    • NoProtection: The game session can be terminated during a scale-down event.
    • FullProtection: If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

    ", - "GameSessionDetail$ProtectionPolicy": "

    Current status of protection for the game session.

    • NoProtection: The game session can be terminated during a scale-down event.
    • FullProtection: If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

    ", - "UpdateFleetAttributesInput$NewGameSessionProtectionPolicy": "

    Game session protection policy to apply to all new instances created in this fleet. Instances that already exist will not be affected. You can set protection for individual instances using UpdateGameSession.

    • NoProtection: The game session can be terminated during a scale-down event.
    • FullProtection: If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

    ", - "UpdateGameSessionInput$ProtectionPolicy": "

    Game session protection policy to apply to this game session only.

    • NoProtection: The game session can be terminated during a scale-down event.
    • FullProtection: If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

    " - } - }, - "PutScalingPolicyInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "PutScalingPolicyOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "RequestUploadCredentialsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "RequestUploadCredentialsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "ResolveAliasInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "ResolveAliasOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "RoutingStrategy": { - "base": "

    Routing configuration for a fleet alias.

    ", - "refs": { - "Alias$RoutingStrategy": null, - "CreateAliasInput$RoutingStrategy": "

    Object specifying the fleet and routing type to use for the alias.

    ", - "UpdateAliasInput$RoutingStrategy": "

    Object specifying the fleet and routing type to use for the alias.

    " - } - }, - "RoutingStrategyType": { - "base": null, - "refs": { - "ListAliasesInput$RoutingStrategyType": "

    Type of routing to filter results on. Use this parameter to retrieve only aliases of a certain type. To retrieve all aliases, leave this parameter empty. Possible routing types include:

    • SIMPLE: The alias resolves to one specific fleet. Use this type when routing to active fleets.
    • TERMINAL: The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded.

    ", - "RoutingStrategy$Type": "

    Type of routing strategy. Possible routing types include:

    • SIMPLE: The alias resolves to one specific fleet. Use this type when routing to active fleets.
    • TERMINAL: The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded.

    " - } - }, - "S3Location": { - "base": "

    Location in Amazon Simple Storage Service (Amazon S3) where a build's files are stored. This location is assigned in response to a CreateBuild call, and is always in the same region as the service used to create the build. For more details see the Amazon S3 documentation.

    ", - "refs": { - "CreateBuildInput$StorageLocation": null, - "CreateBuildOutput$StorageLocation": "

    Amazon S3 path and key, identifying where the game build files are stored.

    ", - "RequestUploadCredentialsOutput$StorageLocation": "

    Amazon S3 path and key, identifying where the game build files are stored.

    " - } - }, - "ScalingAdjustmentType": { - "base": null, - "refs": { - "PutScalingPolicyInput$ScalingAdjustmentType": "

    Type of adjustment to make to a fleet's instance count (see FleetCapacity):

    • ChangeInCapacity: add (or subtract) the scaling adjustment value from the current instance count. Positive values scale up while negative values scale down.
    • ExactCapacity: set the instance count to the scaling adjustment value.
    • PercentChangeInCapacity: increase or reduce the current instance count by the scaling adjustment, read as a percentage. Positive values scale up while negative values scale down; for example, a value of \"-10\" scales the fleet down by 10%.

    ", - "ScalingPolicy$ScalingAdjustmentType": "

    Type of adjustment to make to a fleet's instance count (see FleetCapacity):

    • ChangeInCapacity: add (or subtract) the scaling adjustment value from the current instance count. Positive values scale up while negative values scale down.
    • ExactCapacity: set the instance count to the scaling adjustment value.
    • PercentChangeInCapacity: increase or reduce the current instance count by the scaling adjustment, read as a percentage. Positive values scale up while negative values scale down.

    " - } - }, - "ScalingPolicy": { - "base": "

    Rule that controls how a fleet is scaled. Scaling policies are uniquely identified by the combination of name and fleet ID.

    ", - "refs": { - "ScalingPolicyList$member": null - } - }, - "ScalingPolicyList": { - "base": null, - "refs": { - "DescribeScalingPoliciesOutput$ScalingPolicies": "

    Collection of objects containing the scaling policies matching the request.

    " - } - }, - "ScalingStatusType": { - "base": null, - "refs": { - "DescribeScalingPoliciesInput$StatusFilter": "

    Game session status to filter results on. A scaling policy is only in force when in an Active state.

    • ACTIVE: The scaling policy is currently in force.
    • UPDATEREQUESTED: A request to update the scaling policy has been received.
    • UPDATING: A change is being made to the scaling policy.
    • DELETEREQUESTED: A request to delete the scaling policy has been received.
    • DELETING: The scaling policy is being deleted.
    • DELETED: The scaling policy has been deleted.
    • ERROR: An error occurred in creating the policy. It should be removed and recreated.

    ", - "ScalingPolicy$Status": "

    Current status of the scaling policy. The scaling policy is only in force when in an Active state.

    • ACTIVE: The scaling policy is currently in force.
    • UPDATEREQUESTED: A request to update the scaling policy has been received.
    • UPDATING: A change is being made to the scaling policy.
    • DELETEREQUESTED: A request to delete the scaling policy has been received.
    • DELETING: The scaling policy is being deleted.
    • DELETED: The scaling policy has been deleted.
    • ERROR: An error occurred in creating the policy. It should be removed and recreated.

    " - } - }, - "StringList": { - "base": null, - "refs": { - "CreateFleetInput$LogPaths": "

    Path to game-session log files generated by your game server. Once a game session has been terminated, Amazon GameLift captures and stores the logs on Amazon S3. Use the GameLift console to access the stored logs.

    ", - "FleetAttributes$LogPaths": "

    Path to game-session log files generated by your game server. Once a game session has been terminated, Amazon GameLift captures and stores the logs on Amazon S3. Use the GameLift console to access the stored logs.

    " - } - }, - "TerminalRoutingStrategyException": { - "base": "

    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 TerminalRoutingStrategy itself. Such requests should only be retried if the routing strategy for the specified alias is modified.

    ", - "refs": { - } - }, - "Timestamp": { - "base": null, - "refs": { - "Alias$CreationTime": "

    Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "Alias$LastUpdatedTime": "

    Time stamp indicating when this object was last modified. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "Build$CreationTime": "

    Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "DescribeFleetEventsInput$StartTime": "

    Earliest date to retrieve event logs for. If no start time is specified, this call returns entries starting from when the fleet was created to the specified end time. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "DescribeFleetEventsInput$EndTime": "

    Most recent date to retrieve event logs for. If no end time is specified, this call returns entries from the specified start time up to the present. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "Event$EventTime": "

    Time stamp indicating when this event occurred. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "FleetAttributes$CreationTime": "

    Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "FleetAttributes$TerminationTime": "

    Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "GameSession$CreationTime": "

    Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "GameSession$TerminationTime": "

    Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "PlayerSession$CreationTime": "

    Time stamp indicating when this object was created. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    ", - "PlayerSession$TerminationTime": "

    Time stamp indicating when this fleet was terminated. Format is an integer representing the number of seconds since the Unix epoch (Unix time).

    " - } - }, - "UnauthorizedException": { - "base": "

    The client failed authentication. Such requests should not be retried without valid authentication credentials.

    ", - "refs": { - } - }, - "UpdateAliasInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "UpdateAliasOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "UpdateBuildInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "UpdateBuildOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "UpdateFleetAttributesInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "UpdateFleetAttributesOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "UpdateFleetCapacityInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "UpdateFleetCapacityOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "UpdateFleetPortSettingsInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "UpdateFleetPortSettingsOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "UpdateGameSessionInput": { - "base": "

    Represents the input for a request action.

    ", - "refs": { - } - }, - "UpdateGameSessionOutput": { - "base": "

    Represents the returned data in response to a request action.

    ", - "refs": { - } - }, - "WholeNumber": { - "base": null, - "refs": { - "CreateGameSessionInput$MaximumPlayerSessionCount": "

    Maximum number of players that can be connected simultaneously to the game session.

    ", - "EC2InstanceCounts$DESIRED": "

    Ideal number of active instances in the fleet.

    ", - "EC2InstanceCounts$MINIMUM": "

    Minimum value allowed for the fleet's instance count.

    ", - "EC2InstanceCounts$MAXIMUM": "

    Maximum value allowed for the fleet's instance count.

    ", - "EC2InstanceCounts$PENDING": "

    Number of instances in the fleet that are starting but not yet active.

    ", - "EC2InstanceCounts$ACTIVE": "

    Actual number of active instances in the fleet.

    ", - "EC2InstanceCounts$IDLE": "

    Number of active instances in the fleet that are not currently hosting a game session.

    ", - "EC2InstanceCounts$TERMINATING": "

    Number of instances in the fleet that are no longer active but haven't yet been terminated.

    ", - "EC2InstanceLimit$CurrentInstances": "

    Number of instances of the specified type that are currently in use by this AWS account.

    ", - "EC2InstanceLimit$InstanceLimit": "

    Number of instances allowed.

    ", - "FleetUtilization$ActiveGameSessionCount": "

    Number of active game sessions currently being hosted on fleet game servers.

    ", - "FleetUtilization$CurrentPlayerSessionCount": "

    Number of active player sessions currently being hosted on fleet game servers.

    ", - "FleetUtilization$MaximumPlayerSessionCount": "

    Maximum players allowed across all game sessions currently hosted in the fleet.

    ", - "GameSession$CurrentPlayerSessionCount": "

    Number of players currently in the game session.

    ", - "GameSession$MaximumPlayerSessionCount": "

    Maximum number of players allowed in the game session.

    ", - "UpdateFleetCapacityInput$DesiredInstances": "

    Number of EC2 instances you want this fleet to host.

    ", - "UpdateFleetCapacityInput$MinSize": "

    Minimum value allowed for the fleet's instance count. Default if not set is 0.

    ", - "UpdateFleetCapacityInput$MaxSize": "

    Maximum value allowed for the fleet's instance count. Default if not set is 1.

    ", - "UpdateGameSessionInput$MaximumPlayerSessionCount": "

    Maximum number of players that can be simultaneously connected to the game session.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/examples-1.json deleted file mode 100644 index faff76894..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/gamelift/2015-10-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version":"1.0", - "examples":{ - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json deleted file mode 100644 index a32adda6c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/docs-2.json +++ /dev/null @@ -1,2523 +0,0 @@ -{ - "version": "2.0", - "service": "AWS Identity and Access Management

    AWS Identity and Access Management (IAM) is a web service that you can use to manage users and user permissions under your AWS account. This guide provides descriptions of IAM actions that you can call programmatically. For general information about IAM, see AWS Identity and Access Management (IAM). For the user guide for IAM, see Using IAM.

    AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to IAM and AWS. For example, the SDKs take care of tasks such as cryptographically signing requests (see below), managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page.

    We recommend that you use the AWS SDKs to make programmatic API calls to IAM. However, you can also use the IAM Query API to make direct calls to the IAM web service. To learn more about the IAM Query API, see Making Query Requests in the Using IAM guide. IAM supports GET and POST requests for all actions. That is, the API does not require you to use GET for some actions and POST for others. However, GET requests are subject to the limitation size of a URL. Therefore, for operations that require larger sizes, use a POST request.

    Signing Requests

    Requests must be signed using an access key ID and a secret access key. We strongly recommend that you do not use your AWS account access key ID and secret access key for everyday work with IAM. You can use the access key ID and secret access key for an IAM user or you can use the AWS Security Token Service to generate temporary security credentials and use those to sign requests.

    To sign requests, we recommend that you use Signature Version 4. If you have an existing application that uses Signature Version 2, you do not have to update it to use Signature Version 4. However, some operations now require Signature Version 4. The documentation for operations that require version 4 indicate this requirement.

    Additional Resources

    For more information, see the following:

    • AWS Security Credentials. This topic provides general information about the types of credentials used for accessing AWS.

    • IAM Best Practices. This topic presents a list of suggestions for using the IAM service to help secure your AWS resources.

    • Signing AWS API Requests. This set of topics walk you through the process of signing a request using an access key ID and secret access key.

    ", - "operations": { - "AddClientIDToOpenIDConnectProvider": "

    Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect (OIDC) provider resource.

    This action is idempotent; it does not fail or return an error if you add an existing client ID to the provider.

    ", - "AddRoleToInstanceProfile": "

    Adds the specified IAM role to the specified instance profile.

    The caller of this API must be granted the PassRole permission on the IAM role by a permission policy.

    For more information about roles, go to Working with Roles. For more information about instance profiles, go to About Instance Profiles.

    ", - "AddUserToGroup": "

    Adds the specified user to the specified group.

    ", - "AttachGroupPolicy": "

    Attaches the specified managed policy to the specified IAM group.

    You use this API to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy.

    For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "AttachRolePolicy": "

    Attaches the specified managed policy to the specified IAM role.

    When you attach a managed policy to a role, the managed policy becomes part of the role's permission (access) policy. You cannot use a managed policy as the role's trust policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy.

    Use this API to attach a managed policy to a role. To embed an inline policy in a role, use PutRolePolicy. For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "AttachUserPolicy": "

    Attaches the specified managed policy to the specified user.

    You use this API to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.

    For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "ChangePassword": "

    Changes the password of the IAM user who is calling this action. The root account password is not affected by this action.

    To change the password for a different user, see UpdateLoginProfile. For more information about modifying passwords, see Managing Passwords in the IAM User Guide.

    ", - "CreateAccessKey": "

    Creates a new AWS secret access key and corresponding AWS access key ID for the specified user. The default status for new keys is Active.

    If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

    For information about limits on the number of keys you can create, see Limitations on IAM Entities in the IAM User Guide.

    To ensure the security of your AWS account, the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys.

    ", - "CreateAccountAlias": "

    Creates an alias for your AWS account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide.

    ", - "CreateGroup": "

    Creates a new group.

    For information about the number of groups you can create, see Limitations on IAM Entities in the IAM User Guide.

    ", - "CreateInstanceProfile": "

    Creates a new instance profile. For information about instance profiles, go to About Instance Profiles.

    For information about the number of instance profiles you can create, see Limitations on IAM Entities in the IAM User Guide.

    ", - "CreateLoginProfile": "

    Creates a password for the specified user, giving the user the ability to access AWS services through the AWS Management Console. For more information about managing passwords, see Managing Passwords in the IAM User Guide.

    ", - "CreateOpenIDConnectProvider": "

    Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).

    The OIDC provider that you create with this operation can be used as a principal in a role's trust policy to establish a trust relationship between AWS and the OIDC provider.

    When you create the IAM OIDC provider, you specify the URL of the OIDC identity provider (IdP) to trust, a list of client IDs (also known as audiences) that identify the application or applications that are allowed to authenticate using the OIDC provider, and a list of thumbprints of the server certificate(s) that the IdP uses. You get all of this information from the OIDC IdP that you want to use for access to AWS.

    Because trust for the OIDC provider is ultimately derived from the IAM provider that this action creates, it is a best practice to limit access to the CreateOpenIDConnectProvider action to highly-privileged users.

    ", - "CreatePolicy": "

    Creates a new managed policy for your AWS account.

    This operation creates a policy version with a version identifier of v1 and sets v1 as the policy's default version. For more information about policy versions, see Versioning for Managed Policies in the IAM User Guide.

    For more information about managed policies in general, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "CreatePolicyVersion": "

    Creates a new version of the specified managed policy. To update a managed policy, you create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must delete an existing version using DeletePolicyVersion before you create a new version.

    Optionally, you can set the new version as the policy's default version. The default version is the version that is in effect for the IAM users, groups, and roles to which the policy is attached.

    For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

    ", - "CreateRole": "

    Creates a new role for your AWS account. For more information about roles, go to Working with Roles. For information about limitations on role names and the number of roles you can create, go to Limitations on IAM Entities in the IAM User Guide.

    ", - "CreateSAMLProvider": "

    Creates an IAM resource that describes an identity provider (IdP) that supports SAML 2.0.

    The SAML provider resource that you create with this operation can be used as a principal in an IAM role's trust policy to enable federated users who sign-in using the SAML IdP to assume the role. You can create an IAM role that supports Web-based single sign-on (SSO) to the AWS Management Console or one that supports API access to AWS.

    When you create the SAML provider resource, you upload an a SAML metadata document that you get from your IdP and that includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that the IdP sends. You must generate the metadata document using the identity management software that is used as your organization's IdP.

    This operation requires Signature Version 4.

    For more information, see Enabling SAML 2.0 Federated Users to Access the AWS Management Console and About SAML 2.0-based Federation in the IAM User Guide.

    ", - "CreateUser": "

    Creates a new IAM user for your AWS account.

    For information about limitations on the number of IAM users you can create, see Limitations on IAM Entities in the IAM User Guide.

    ", - "CreateVirtualMFADevice": "

    Creates a new virtual MFA device for the AWS account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide.

    For information about limits on the number of MFA devices you can create, see Limitations on Entities in the IAM User Guide.

    The seed information contained in the QR code and the Base32 string should be treated like any other secret access information, such as your AWS access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures.

    ", - "DeactivateMFADevice": "

    Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.

    For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide.

    ", - "DeleteAccessKey": "

    Deletes the access key pair associated with the specified IAM user.

    If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

    ", - "DeleteAccountAlias": "

    Deletes the specified AWS account alias. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide.

    ", - "DeleteAccountPasswordPolicy": "

    Deletes the password policy for the AWS account. There are no parameters.

    ", - "DeleteGroup": "

    Deletes the specified IAM group. The group must not contain any users or have any attached policies.

    ", - "DeleteGroupPolicy": "

    Deletes the specified inline policy that is embedded in the specified IAM group.

    A group can also have managed policies attached to it. To detach a managed policy from a group, use DetachGroupPolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide.

    ", - "DeleteInstanceProfile": "

    Deletes the specified instance profile. The instance profile must not have an associated role.

    Make sure you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

    For more information about instance profiles, go to About Instance Profiles.

    ", - "DeleteLoginProfile": "

    Deletes the password for the specified IAM user, which terminates the user's ability to access AWS services through the AWS Management Console.

    Deleting a user's password does not prevent a user from accessing AWS through the command line interface or the API. To prevent all user access you must also either make any access keys inactive or delete them. For more information about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey.

    ", - "DeleteOpenIDConnectProvider": "

    Deletes an OpenID Connect identity provider (IdP) resource object in IAM.

    Deleting an IAM OIDC provider resource does not update any roles that reference the provider as a principal in their trust policies. Any attempt to assume a role that references a deleted provider fails.

    This action is idempotent; it does not fail or return an error if you call the action for a provider that does not exist.

    ", - "DeletePolicy": "

    Deletes the specified managed policy.

    Before you can delete a managed policy, you must first detach the policy from all users, groups, and roles that it is attached to, and you must delete all of the policy's versions. The following steps describe the process for deleting a managed policy:

    • Detach the policy from all users, groups, and roles that the policy is attached to, using the DetachUserPolicy, DetachGroupPolicy, or DetachRolePolicy APIs. To list all the users, groups, and roles that a policy is attached to, use ListEntitiesForPolicy.

    • Delete all versions of the policy using DeletePolicyVersion. To list the policy's versions, use ListPolicyVersions. You cannot use DeletePolicyVersion to delete the version that is marked as the default version. You delete the policy's default version in the next step of the process.

    • Delete the policy (this automatically deletes the policy's default version) using this API.

    For information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "DeletePolicyVersion": "

    Deletes the specified version from the specified managed policy.

    You cannot delete the default version from a policy using this API. To delete the default version from a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.

    For information about versions for managed policies, see Versioning for Managed Policies in the IAM User Guide.

    ", - "DeleteRole": "

    Deletes the specified role. The role must not have any policies attached. For more information about roles, go to Working with Roles.

    Make sure you do not have any Amazon EC2 instances running with the role you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

    ", - "DeleteRolePolicy": "

    Deletes the specified inline policy that is embedded in the specified IAM role.

    A role can also have managed policies attached to it. To detach a managed policy from a role, use DetachRolePolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide.

    ", - "DeleteSAMLProvider": "

    Deletes a SAML provider resource in IAM.

    Deleting the provider resource from IAM does not update any roles that reference the SAML provider resource's ARN as a principal in their trust policies. Any attempt to assume a role that references a non-existent provider resource ARN fails.

    This operation requires Signature Version 4.

    ", - "DeleteSSHPublicKey": "

    Deletes the specified SSH public key.

    The SSH public key deleted by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

    ", - "DeleteServerCertificate": "

    Deletes the specified server certificate.

    For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

    If you are using a server certificate with Elastic Load Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn't detect the deletion of bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more information, go to DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference.

    ", - "DeleteSigningCertificate": "

    Deletes a signing certificate associated with the specified IAM user.

    If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated IAM users.

    ", - "DeleteUser": "

    Deletes the specified IAM user. The user must not belong to any groups or have any access keys, signing certificates, or attached policies.

    ", - "DeleteUserPolicy": "

    Deletes the specified inline policy that is embedded in the specified IAM user.

    A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide.

    ", - "DeleteVirtualMFADevice": "

    Deletes a virtual MFA device.

    You must deactivate a user's virtual MFA device before you can delete it. For information about deactivating MFA devices, see DeactivateMFADevice.

    ", - "DetachGroupPolicy": "

    Removes the specified managed policy from the specified IAM group.

    A group can also have inline policies embedded with it. To delete an inline policy, use the DeleteGroupPolicy API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "DetachRolePolicy": "

    Removes the specified managed policy from the specified role.

    A role can also have inline policies embedded with it. To delete an inline policy, use the DeleteRolePolicy API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "DetachUserPolicy": "

    Removes the specified managed policy from the specified user.

    A user can also have inline policies embedded with it. To delete an inline policy, use the DeleteUserPolicy API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "EnableMFADevice": "

    Enables the specified MFA device and associates it with the specified IAM user. When enabled, the MFA device is required for every subsequent login by the IAM user associated with the device.

    ", - "GenerateCredentialReport": "

    Generates a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports in the IAM User Guide.

    ", - "GetAccessKeyLastUsed": "

    Retrieves information about when the specified access key was last used. The information includes the date and time of last use, along with the AWS service and region that were specified in the last request made with that key.

    ", - "GetAccountAuthorizationDetails": "

    Retrieves information about all IAM users, groups, roles, and policies in your AWS account, including their relationships to one another. Use this API to obtain a snapshot of the configuration of IAM permissions (users, groups, roles, and policies) in your account.

    You can optionally filter the results using the Filter parameter. You can paginate the results using the MaxItems and Marker parameters.

    ", - "GetAccountPasswordPolicy": "

    Retrieves the password policy for the AWS account. For more information about using a password policy, go to Managing an IAM Password Policy.

    ", - "GetAccountSummary": "

    Retrieves information about IAM entity usage and IAM quotas in the AWS account.

    For information about limitations on IAM entities, see Limitations on IAM Entities in the IAM User Guide.

    ", - "GetContextKeysForCustomPolicy": "

    Gets a list of all of the context keys referenced in the input policies. The policies are supplied as a list of one or more strings. To get the context keys from policies associated with an IAM user, group, or role, use GetContextKeysForPrincipalPolicy.

    Context keys are variables maintained by AWS and its services that provide details about the context of an API query request, and can be evaluated by testing against a value specified in an IAM policy. Use GetContextKeysForCustomPolicy to understand what key names and values you must supply when you call SimulateCustomPolicy. Note that all parameters are shown in unencoded form here for clarity, but must be URL encoded to be included as a part of a real HTML request.

    ", - "GetContextKeysForPrincipalPolicy": "

    Gets a list of all of the context keys referenced in all of the IAM policies attached to the specified IAM entity. The entity can be an IAM user, group, or role. If you specify a user, then the request also includes all of the policies attached to groups that the user is a member of.

    You can optionally include a list of one or more additional policies, specified as strings. If you want to include only a list of policies by string, use GetContextKeysForCustomPolicy instead.

    Note: This API discloses information about the permissions granted to other users. If you do not want users to see other user's permissions, then consider allowing them to use GetContextKeysForCustomPolicy instead.

    Context keys are variables maintained by AWS and its services that provide details about the context of an API query request, and can be evaluated by testing against a value in an IAM policy. Use GetContextKeysForPrincipalPolicy to understand what key names and values you must supply when you call SimulatePrincipalPolicy.

    ", - "GetCredentialReport": "

    Retrieves a credential report for the AWS account. For more information about the credential report, see Getting Credential Reports in the IAM User Guide.

    ", - "GetGroup": "

    Returns a list of IAM users that are in the specified IAM group. You can paginate the results using the MaxItems and Marker parameters.

    ", - "GetGroupPolicy": "

    Retrieves the specified inline policy document that is embedded in the specified IAM group.

    An IAM group can also have managed policies attached to it. To retrieve a managed policy document that is attached to a group, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.

    For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "GetInstanceProfile": "

    Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, see About Instance Profiles in the IAM User Guide.

    ", - "GetLoginProfile": "

    Retrieves the user name and password-creation date for the specified IAM user. If the user has not been assigned a password, the action returns a 404 (NoSuchEntity) error.

    ", - "GetOpenIDConnectProvider": "

    Returns information about the specified OpenID Connect (OIDC) provider resource object in IAM.

    ", - "GetPolicy": "

    Retrieves information about the specified managed policy, including the policy's default version and the total number of IAM users, groups, and roles to which the policy is attached. To retrieve the list of the specific users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API. This API returns metadata about the policy. To retrieve the actual policy document for a specific version of the policy, use GetPolicyVersion.

    This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded with an IAM user, group, or role, use the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API.

    For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "GetPolicyVersion": "

    Retrieves information about the specified version of the specified managed policy, including the policy document.

    To list the available versions for a policy, use ListPolicyVersions.

    This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded in a user, group, or role, use the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API.

    For more information about the types of policies, see Managed Policies and Inline Policies in the IAM User Guide.

    For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

    ", - "GetRole": "

    Retrieves information about the specified role, including the role's path, GUID, ARN, and the role's trust policy that grants permission to assume the role. For more information about roles, see Working with Roles.

    ", - "GetRolePolicy": "

    Retrieves the specified inline policy document that is embedded with the specified IAM role.

    An IAM role can also have managed policies attached to it. To retrieve a managed policy document that is attached to a role, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.

    For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    For more information about roles, see Using Roles to Delegate Permissions and Federate Identities.

    ", - "GetSAMLProvider": "

    Returns the SAML provider metadocument that was uploaded when the IAM SAML provider resource object was created or updated.

    This operation requires Signature Version 4.

    ", - "GetSSHPublicKey": "

    Retrieves the specified SSH public key, including metadata about the key.

    The SSH public key retrieved by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

    ", - "GetServerCertificate": "

    Retrieves information about the specified server certificate stored in IAM.

    For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

    ", - "GetUser": "

    Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN.

    If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID used to sign the request to this API.

    ", - "GetUserPolicy": "

    Retrieves the specified inline policy document that is embedded in the specified IAM user.

    An IAM user can also have managed policies attached to it. To retrieve a managed policy document that is attached to a user, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.

    For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "ListAccessKeys": "

    Returns information about the access key IDs associated with the specified IAM user. If there are none, the action returns an empty list.

    Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.

    If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

    To ensure the security of your AWS account, the secret access key is accessible only during key and user creation.

    ", - "ListAccountAliases": "

    Lists the account alias associated with the AWS account (Note: you can have only one). For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the IAM User Guide.

    ", - "ListAttachedGroupPolicies": "

    Lists all managed policies that are attached to the specified IAM group.

    An IAM group can also have inline policies embedded with it. To list the inline policies for a group, use the ListGroupPolicies API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified group (or none that match the specified path prefix), the action returns an empty list.

    ", - "ListAttachedRolePolicies": "

    Lists all managed policies that are attached to the specified IAM role.

    An IAM role can also have inline policies embedded with it. To list the inline policies for a role, use the ListRolePolicies API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified role (or none that match the specified path prefix), the action returns an empty list.

    ", - "ListAttachedUserPolicies": "

    Lists all managed policies that are attached to the specified IAM user.

    An IAM user can also have inline policies embedded with it. To list the inline policies for a user, use the ListUserPolicies API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified group (or none that match the specified path prefix), the action returns an empty list.

    ", - "ListEntitiesForPolicy": "

    Lists all IAM users, groups, and roles that the specified managed policy is attached to.

    You can use the optional EntityFilter parameter to limit the results to a particular type of entity (users, groups, or roles). For example, to list only the roles that are attached to the specified policy, set EntityFilter to Role.

    You can paginate the results using the MaxItems and Marker parameters.

    ", - "ListGroupPolicies": "

    Lists the names of the inline policies that are embedded in the specified IAM group.

    An IAM group can also have managed policies attached to it. To list the managed policies that are attached to a group, use ListAttachedGroupPolicies. For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified group, the action returns an empty list.

    ", - "ListGroups": "

    Lists the IAM groups that have the specified path prefix.

    You can paginate the results using the MaxItems and Marker parameters.

    ", - "ListGroupsForUser": "

    Lists the IAM groups that the specified IAM user belongs to.

    You can paginate the results using the MaxItems and Marker parameters.

    ", - "ListInstanceProfiles": "

    Lists the instance profiles that have the specified path prefix. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles.

    You can paginate the results using the MaxItems and Marker parameters.

    ", - "ListInstanceProfilesForRole": "

    Lists the instance profiles that have the specified associated IAM role. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles.

    You can paginate the results using the MaxItems and Marker parameters.

    ", - "ListMFADevices": "

    Lists the MFA devices for an IAM user. If the request includes a IAM user name, then this action lists all the MFA devices associated with the specified user. If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request for this API.

    You can paginate the results using the MaxItems and Marker parameters.

    ", - "ListOpenIDConnectProviders": "

    Lists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the AWS account.

    ", - "ListPolicies": "

    Lists all the managed policies that are available in your AWS account, including your own customer-defined managed policies and all AWS managed policies.

    You can filter the list of policies that is returned using the optional OnlyAttached, Scope, and PathPrefix parameters. For example, to list only the customer managed policies in your AWS account, set Scope to Local. To list only AWS managed policies, set Scope to AWS.

    You can paginate the results using the MaxItems and Marker parameters.

    For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "ListPolicyVersions": "

    Lists information about the versions of the specified managed policy, including the version that is currently set as the policy's default version.

    For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "ListRolePolicies": "

    Lists the names of the inline policies that are embedded in the specified IAM role.

    An IAM role can also have managed policies attached to it. To list the managed policies that are attached to a role, use ListAttachedRolePolicies. For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified role, the action returns an empty list.

    ", - "ListRoles": "

    Lists the IAM roles that have the specified path prefix. If there are none, the action returns an empty list. For more information about roles, go to Working with Roles.

    You can paginate the results using the MaxItems and Marker parameters.

    ", - "ListSAMLProviders": "

    Lists the SAML provider resource objects defined in IAM in the account.

    This operation requires Signature Version 4.

    ", - "ListSSHPublicKeys": "

    Returns information about the SSH public keys associated with the specified IAM user. If there are none, the action returns an empty list.

    The SSH public keys returned by this action are used only for authenticating the IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

    Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.

    ", - "ListServerCertificates": "

    Lists the server certificates stored in IAM that have the specified path prefix. If none exist, the action returns an empty list.

    You can paginate the results using the MaxItems and Marker parameters.

    For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

    ", - "ListSigningCertificates": "

    Returns information about the signing certificates associated with the specified IAM user. If there are none, the action returns an empty list.

    Although each user is limited to a small number of signing certificates, you can still paginate the results using the MaxItems and Marker parameters.

    If the UserName field is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request for this API. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

    ", - "ListUserPolicies": "

    Lists the names of the inline policies embedded in the specified IAM user.

    An IAM user can also have managed policies attached to it. To list the managed policies that are attached to a user, use ListAttachedUserPolicies. For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified user, the action returns an empty list.

    ", - "ListUsers": "

    Lists the IAM users that have the specified path prefix. If no path prefix is specified, the action returns all users in the AWS account. If there are none, the action returns an empty list.

    You can paginate the results using the MaxItems and Marker parameters.

    ", - "ListVirtualMFADevices": "

    Lists the virtual MFA devices defined in the AWS account by assignment status. If you do not specify an assignment status, the action returns a list of all virtual MFA devices. Assignment status can be Assigned, Unassigned, or Any.

    You can paginate the results using the MaxItems and Marker parameters.

    ", - "PutGroupPolicy": "

    Adds or updates an inline policy document that is embedded in the specified IAM group.

    A user can also have managed policies attached to it. To attach a managed policy to a group, use AttachGroupPolicy. To create a new managed policy, use CreatePolicy. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    For information about limits on the number of inline policies that you can embed in a group, see Limitations on IAM Entities in the IAM User Guide.

    Because policy documents can be large, you should use POST rather than GET when calling PutGroupPolicy. For general information about using the Query API with IAM, go to Making Query Requests in the IAM User Guide.

    ", - "PutRolePolicy": "

    Adds or updates an inline policy document that is embedded in the specified IAM role.

    When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. For more information about IAM roles, go to Using Roles to Delegate Permissions and Federate Identities.

    A role can also have a managed policy attached to it. To attach a managed policy to a role, use AttachRolePolicy. To create a new managed policy, use CreatePolicy. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    For information about limits on the number of inline policies that you can embed with a role, see Limitations on IAM Entities in the IAM User Guide.

    Because policy documents can be large, you should use POST rather than GET when calling PutRolePolicy. For general information about using the Query API with IAM, go to Making Query Requests in the IAM User Guide.

    ", - "PutUserPolicy": "

    Adds or updates an inline policy document that is embedded in the specified IAM user.

    An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AttachUserPolicy. To create a new managed policy, use CreatePolicy. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

    For information about limits on the number of inline policies that you can embed in a user, see Limitations on IAM Entities in the IAM User Guide.

    Because policy documents can be large, you should use POST rather than GET when calling PutUserPolicy. For general information about using the Query API with IAM, go to Making Query Requests in the IAM User Guide.

    ", - "RemoveClientIDFromOpenIDConnectProvider": "

    Removes the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect (OIDC) provider resource object.

    This action is idempotent; it does not fail or return an error if you try to remove a client ID that does not exist.

    ", - "RemoveRoleFromInstanceProfile": "

    Removes the specified IAM role from the specified EC2 instance profile.

    Make sure you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance break any applications running on the instance.

    For more information about IAM roles, go to Working with Roles. For more information about instance profiles, go to About Instance Profiles.

    ", - "RemoveUserFromGroup": "

    Removes the specified user from the specified group.

    ", - "ResyncMFADevice": "

    Synchronizes the specified MFA device with its IAM resource object on the AWS servers.

    For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide.

    ", - "SetDefaultPolicyVersion": "

    Sets the specified version of the specified policy as the policy's default (operative) version.

    This action affects all users, groups, and roles that the policy is attached to. To list the users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API.

    For information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide.

    ", - "SimulateCustomPolicy": "

    Simulate how a set of IAM policies and optionally a resource-based policy works with a list of API actions and AWS resources to determine the policies' effective permissions. The policies are provided as strings.

    The simulation does not perform the API actions; it only checks the authorization to determine if the simulated policies allow or deny the actions.

    If you want to simulate existing policies attached to an IAM user, group, or role, use SimulatePrincipalPolicy instead.

    Context keys are variables maintained by AWS and its services that provide details about the context of an API query request. You can use the Condition element of an IAM policy to evaluate context keys. To get the list of context keys that the policies require for correct simulation, use GetContextKeysForCustomPolicy.

    If the output is long, you can use MaxItems and Marker parameters to paginate the results.

    ", - "SimulatePrincipalPolicy": "

    Simulate how a set of IAM policies attached to an IAM entity works with a list of API actions and AWS resources to determine the policies' effective permissions. The entity can be an IAM user, group, or role. If you specify a user, then the simulation also includes all of the policies that are attached to groups that the user belongs to .

    You can optionally include a list of one or more additional policies specified as strings to include in the simulation. If you want to simulate only policies specified as strings, use SimulateCustomPolicy instead.

    You can also optionally include one resource-based policy to be evaluated with each of the resources included in the simulation.

    The simulation does not perform the API actions, it only checks the authorization to determine if the simulated policies allow or deny the actions.

    Note: This API discloses information about the permissions granted to other users. If you do not want users to see other user's permissions, then consider allowing them to use SimulateCustomPolicy instead.

    Context keys are variables maintained by AWS and its services that provide details about the context of an API query request. You can use the Condition element of an IAM policy to evaluate context keys. To get the list of context keys that the policies require for correct simulation, use GetContextKeysForPrincipalPolicy.

    If the output is long, you can use the MaxItems and Marker parameters to paginate the results.

    ", - "UpdateAccessKey": "

    Changes the status of the specified access key from Active to Inactive, or vice versa. This action can be used to disable a user's key as part of a key rotation work flow.

    If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

    For information about rotating keys, see Managing Keys and Certificates in the IAM User Guide.

    ", - "UpdateAccountPasswordPolicy": "

    Updates the password policy settings for the AWS account.

    This action does not support partial updates. No parameters are required, but if you do not specify a parameter, that parameter's value reverts to its default value. See the Request Parameters section for each parameter's default value.

    For more information about using a password policy, see Managing an IAM Password Policy in the IAM User Guide.

    ", - "UpdateAssumeRolePolicy": "

    Updates the policy that grants an IAM entity permission to assume a role. This is typically referred to as the \"role trust policy\". For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities.

    ", - "UpdateGroup": "

    Updates the name and/or the path of the specified IAM group.

    You should understand the implications of changing a group's path or name. For more information, see Renaming Users and Groups in the IAM User Guide.

    To change an IAM group name the requester must have appropriate permissions on both the source object and the target object. For example, to change \"Managers\" to \"MGRs\", the entity making the request must have permission on both \"Managers\" and \"MGRs\", or must have permission on all (*). For more information about permissions, see Permissions and Policies.

    ", - "UpdateLoginProfile": "

    Changes the password for the specified IAM user.

    IAM users can change their own passwords by calling ChangePassword. For more information about modifying passwords, see Managing Passwords in the IAM User Guide.

    ", - "UpdateOpenIDConnectProviderThumbprint": "

    Replaces the existing list of server certificate thumbprints associated with an OpenID Connect (OIDC) provider resource object with a new list of thumbprints.

    The list that you pass with this action completely replaces the existing list of thumbprints. (The lists are not merged.)

    Typically, you need to update a thumbprint only when the identity provider's certificate changes, which occurs rarely. However, if the provider's certificate does change, any attempt to assume an IAM role that specifies the OIDC provider as a principal fails until the certificate thumbprint is updated.

    Because trust for the OIDC provider is ultimately derived from the provider's certificate and is validated by the thumbprint, it is a best practice to limit access to the UpdateOpenIDConnectProviderThumbprint action to highly-privileged users.

    ", - "UpdateSAMLProvider": "

    Updates the metadata document for an existing SAML provider resource object.

    This operation requires Signature Version 4.

    ", - "UpdateSSHPublicKey": "

    Sets the status of an IAM user's SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This action can be used to disable a user's SSH public key as part of a key rotation work flow.

    The SSH public key affected by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

    ", - "UpdateServerCertificate": "

    Updates the name and/or the path of the specified server certificate stored in IAM.

    For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

    You should understand the implications of changing a server certificate's path or name. For more information, see Renaming a Server Certificate in the IAM User Guide.

    To change a server certificate name the requester must have appropriate permissions on both the source object and the target object. For example, to change the name from \"ProductionCert\" to \"ProdCert\", the entity making the request must have permission on \"ProductionCert\" and \"ProdCert\", or must have permission on all (*). For more information about permissions, see Access Management in the IAM User Guide.

    ", - "UpdateSigningCertificate": "

    Changes the status of the specified user signing certificate from active to disabled, or vice versa. This action can be used to disable an IAM user's signing certificate as part of a certificate rotation work flow.

    If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

    ", - "UpdateUser": "

    Updates the name and/or the path of the specified IAM user.

    You should understand the implications of changing an IAM user's path or name. For more information, see Renaming an IAM User and Renaming an IAM Group in the IAM User Guide.

    To change a user name the requester must have appropriate permissions on both the source object and the target object. For example, to change Bob to Robert, the entity making the request must have permission on Bob and Robert, or must have permission on all (*). For more information about permissions, see Permissions and Policies.

    ", - "UploadSSHPublicKey": "

    Uploads an SSH public key and associates it with the specified IAM user.

    The SSH public key uploaded by this action can be used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

    ", - "UploadServerCertificate": "

    Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.

    For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

    For information about the number of server certificates you can upload, see Limitations on IAM Entities and Objects in the IAM User Guide.

    Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling UploadServerCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Calling the API by Making HTTP Query Requests in the IAM User Guide.

    ", - "UploadSigningCertificate": "

    Uploads an X.509 signing certificate and associates it with the specified IAM user. Some AWS services use X.509 signing certificates to validate requests that are signed with a corresponding private key. When you upload the certificate, its default status is Active.

    If the UserName field is not specified, the IAM user name is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

    Because the body of a X.509 certificate can be large, you should use POST rather than GET when calling UploadSigningCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in the IAM User Guide.

    " - }, - "shapes": { - "AccessKey": { - "base": "

    Contains information about an AWS access key.

    This data type is used as a response element in the CreateAccessKey and ListAccessKeys actions.

    The SecretAccessKey value is returned only in response to CreateAccessKey. You can get a secret access key only when you first create an access key; you cannot recover the secret access key later. If you lose a secret access key, you must create a new access key.

    ", - "refs": { - "CreateAccessKeyResponse$AccessKey": "

    A structure with details about the access key.

    " - } - }, - "AccessKeyLastUsed": { - "base": "

    Contains information about the last time an AWS access key was used.

    This data type is used as a response element in the GetAccessKeyLastUsed action.

    ", - "refs": { - "GetAccessKeyLastUsedResponse$AccessKeyLastUsed": "

    Contains information about the last time the access key was used.

    " - } - }, - "AccessKeyMetadata": { - "base": "

    Contains information about an AWS access key, without its secret key.

    This data type is used as a response element in the ListAccessKeys action.

    ", - "refs": { - "accessKeyMetadataListType$member": null - } - }, - "ActionNameListType": { - "base": null, - "refs": { - "SimulateCustomPolicyRequest$ActionNames": "

    A list of names of API actions to evaluate in the simulation. Each action is evaluated against each resource. Each action must include the service identifier, such as iam:CreateUser.

    ", - "SimulatePrincipalPolicyRequest$ActionNames": "

    A list of names of API actions to evaluate in the simulation. Each action is evaluated for each resource. Each action must include the service identifier, such as iam:CreateUser.

    " - } - }, - "ActionNameType": { - "base": null, - "refs": { - "ActionNameListType$member": null, - "EvaluationResult$EvalActionName": "

    The name of the API action tested on the indicated resource.

    " - } - }, - "AddClientIDToOpenIDConnectProviderRequest": { - "base": null, - "refs": { - } - }, - "AddRoleToInstanceProfileRequest": { - "base": null, - "refs": { - } - }, - "AddUserToGroupRequest": { - "base": null, - "refs": { - } - }, - "AttachGroupPolicyRequest": { - "base": null, - "refs": { - } - }, - "AttachRolePolicyRequest": { - "base": null, - "refs": { - } - }, - "AttachUserPolicyRequest": { - "base": null, - "refs": { - } - }, - "AttachedPolicy": { - "base": "

    Contains information about an attached policy.

    An attached policy is a managed policy that has been attached to a user, group, or role. This data type is used as a response element in the ListAttachedGroupPolicies, ListAttachedRolePolicies, ListAttachedUserPolicies, and GetAccountAuthorizationDetails actions.

    For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

    ", - "refs": { - "attachedPoliciesListType$member": null - } - }, - "BootstrapDatum": { - "base": null, - "refs": { - "VirtualMFADevice$Base32StringSeed": "

    The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.

    ", - "VirtualMFADevice$QRCodePNG": "

    A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments, AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in Base32 format. The Base32String value is Base64-encoded.

    " - } - }, - "ChangePasswordRequest": { - "base": null, - "refs": { - } - }, - "ColumnNumber": { - "base": null, - "refs": { - "Position$Column": "

    The column in the line containing the specified position in the document.

    " - } - }, - "ContextEntry": { - "base": "

    Contains information about a condition context key. It includes the name of the key and specifies the value (or values, if the context key supports multiple values) to use in the simulation. This information is used when evaluating the Condition elements of the input policies.

    This data type is used as an input parameter to SimulateCustomPolicy and SimulateCustomPolicy .

    ", - "refs": { - "ContextEntryListType$member": null - } - }, - "ContextEntryListType": { - "base": null, - "refs": { - "SimulateCustomPolicyRequest$ContextEntries": "

    A list of context keys and corresponding values for the simulation to use. Whenever a context key is evaluated in one of the simulated IAM permission policies, the corresponding value is supplied.

    ", - "SimulatePrincipalPolicyRequest$ContextEntries": "

    A list of context keys and corresponding values for the simulation to use. Whenever a context key is evaluated in one of the simulated IAM permission policies, the corresponding value is supplied.

    " - } - }, - "ContextKeyNameType": { - "base": null, - "refs": { - "ContextEntry$ContextKeyName": "

    The full name of a condition context key, including the service prefix. For example, aws:SourceIp or s3:VersionId.

    ", - "ContextKeyNamesResultListType$member": null - } - }, - "ContextKeyNamesResultListType": { - "base": null, - "refs": { - "EvaluationResult$MissingContextValues": "

    A list of context keys that are required by the included input policies but that were not provided by one of the input parameters. This list is used when the resource in a simulation is \"*\", either explicitly, or when the ResourceArns parameter blank. If you include a list of resources, then any missing context values are instead included under the ResourceSpecificResults section. To discover the context keys used by a set of policies, you can call GetContextKeysForCustomPolicy or GetContextKeysForPrincipalPolicy.

    ", - "GetContextKeysForPolicyResponse$ContextKeyNames": "

    The list of context keys that are referenced in the input policies.

    ", - "ResourceSpecificResult$MissingContextValues": "

    A list of context keys that are required by the included input policies but that were not provided by one of the input parameters. This list is used when a list of ARNs is included in the ResourceArns parameter instead of \"*\". If you do not specify individual resources, by setting ResourceArns to \"*\" or by not including the ResourceArns parameter, then any missing context values are instead included under the EvaluationResults section. To discover the context keys used by a set of policies, you can call GetContextKeysForCustomPolicy or GetContextKeysForPrincipalPolicy.

    " - } - }, - "ContextKeyTypeEnum": { - "base": null, - "refs": { - "ContextEntry$ContextKeyType": "

    The data type of the value (or values) specified in the ContextKeyValues parameter.

    " - } - }, - "ContextKeyValueListType": { - "base": null, - "refs": { - "ContextEntry$ContextKeyValues": "

    The value (or values, if the condition context key supports multiple values) to provide to the simulation for use when the key is referenced by a Condition element in an input policy.

    " - } - }, - "ContextKeyValueType": { - "base": null, - "refs": { - "ContextKeyValueListType$member": null - } - }, - "CreateAccessKeyRequest": { - "base": null, - "refs": { - } - }, - "CreateAccessKeyResponse": { - "base": "

    Contains the response to a successful CreateAccessKey request.

    ", - "refs": { - } - }, - "CreateAccountAliasRequest": { - "base": null, - "refs": { - } - }, - "CreateGroupRequest": { - "base": null, - "refs": { - } - }, - "CreateGroupResponse": { - "base": "

    Contains the response to a successful CreateGroup request.

    ", - "refs": { - } - }, - "CreateInstanceProfileRequest": { - "base": null, - "refs": { - } - }, - "CreateInstanceProfileResponse": { - "base": "

    Contains the response to a successful CreateInstanceProfile request.

    ", - "refs": { - } - }, - "CreateLoginProfileRequest": { - "base": null, - "refs": { - } - }, - "CreateLoginProfileResponse": { - "base": "

    Contains the response to a successful CreateLoginProfile request.

    ", - "refs": { - } - }, - "CreateOpenIDConnectProviderRequest": { - "base": null, - "refs": { - } - }, - "CreateOpenIDConnectProviderResponse": { - "base": "

    Contains the response to a successful CreateOpenIDConnectProvider request.

    ", - "refs": { - } - }, - "CreatePolicyRequest": { - "base": null, - "refs": { - } - }, - "CreatePolicyResponse": { - "base": "

    Contains the response to a successful CreatePolicy request.

    ", - "refs": { - } - }, - "CreatePolicyVersionRequest": { - "base": null, - "refs": { - } - }, - "CreatePolicyVersionResponse": { - "base": "

    Contains the response to a successful CreatePolicyVersion request.

    ", - "refs": { - } - }, - "CreateRoleRequest": { - "base": null, - "refs": { - } - }, - "CreateRoleResponse": { - "base": "

    Contains the response to a successful CreateRole request.

    ", - "refs": { - } - }, - "CreateSAMLProviderRequest": { - "base": null, - "refs": { - } - }, - "CreateSAMLProviderResponse": { - "base": "

    Contains the response to a successful CreateSAMLProvider request.

    ", - "refs": { - } - }, - "CreateUserRequest": { - "base": null, - "refs": { - } - }, - "CreateUserResponse": { - "base": "

    Contains the response to a successful CreateUser request.

    ", - "refs": { - } - }, - "CreateVirtualMFADeviceRequest": { - "base": null, - "refs": { - } - }, - "CreateVirtualMFADeviceResponse": { - "base": "

    Contains the response to a successful CreateVirtualMFADevice request.

    ", - "refs": { - } - }, - "CredentialReportExpiredException": { - "base": "

    The request was rejected because the most recent credential report has expired. To generate a new credential report, use GenerateCredentialReport. For more information about credential report expiration, see Getting Credential Reports in the IAM User Guide.

    ", - "refs": { - } - }, - "CredentialReportNotPresentException": { - "base": "

    The request was rejected because the credential report does not exist. To generate a credential report, use GenerateCredentialReport.

    ", - "refs": { - } - }, - "CredentialReportNotReadyException": { - "base": "

    The request was rejected because the credential report is still being generated.

    ", - "refs": { - } - }, - "DeactivateMFADeviceRequest": { - "base": null, - "refs": { - } - }, - "DeleteAccessKeyRequest": { - "base": null, - "refs": { - } - }, - "DeleteAccountAliasRequest": { - "base": null, - "refs": { - } - }, - "DeleteConflictException": { - "base": "

    The request was rejected because it attempted to delete a resource that has attached subordinate entities. The error message describes these entities.

    ", - "refs": { - } - }, - "DeleteGroupPolicyRequest": { - "base": null, - "refs": { - } - }, - "DeleteGroupRequest": { - "base": null, - "refs": { - } - }, - "DeleteInstanceProfileRequest": { - "base": null, - "refs": { - } - }, - "DeleteLoginProfileRequest": { - "base": null, - "refs": { - } - }, - "DeleteOpenIDConnectProviderRequest": { - "base": null, - "refs": { - } - }, - "DeletePolicyRequest": { - "base": null, - "refs": { - } - }, - "DeletePolicyVersionRequest": { - "base": null, - "refs": { - } - }, - "DeleteRolePolicyRequest": { - "base": null, - "refs": { - } - }, - "DeleteRoleRequest": { - "base": null, - "refs": { - } - }, - "DeleteSAMLProviderRequest": { - "base": null, - "refs": { - } - }, - "DeleteSSHPublicKeyRequest": { - "base": null, - "refs": { - } - }, - "DeleteServerCertificateRequest": { - "base": null, - "refs": { - } - }, - "DeleteSigningCertificateRequest": { - "base": null, - "refs": { - } - }, - "DeleteUserPolicyRequest": { - "base": null, - "refs": { - } - }, - "DeleteUserRequest": { - "base": null, - "refs": { - } - }, - "DeleteVirtualMFADeviceRequest": { - "base": null, - "refs": { - } - }, - "DetachGroupPolicyRequest": { - "base": null, - "refs": { - } - }, - "DetachRolePolicyRequest": { - "base": null, - "refs": { - } - }, - "DetachUserPolicyRequest": { - "base": null, - "refs": { - } - }, - "DuplicateCertificateException": { - "base": "

    The request was rejected because the same certificate is associated with an IAM user in the account.

    ", - "refs": { - } - }, - "DuplicateSSHPublicKeyException": { - "base": "

    The request was rejected because the SSH public key is already associated with the specified IAM user.

    ", - "refs": { - } - }, - "EnableMFADeviceRequest": { - "base": null, - "refs": { - } - }, - "EntityAlreadyExistsException": { - "base": "

    The request was rejected because it attempted to create a resource that already exists.

    ", - "refs": { - } - }, - "EntityTemporarilyUnmodifiableException": { - "base": "

    The request was rejected because it referenced an entity that is temporarily unmodifiable, such as a user name that was deleted and then recreated. The error indicates that the request is likely to succeed if you try again after waiting several minutes. The error message describes the entity.

    ", - "refs": { - } - }, - "EntityType": { - "base": null, - "refs": { - "ListEntitiesForPolicyRequest$EntityFilter": "

    The entity type to use for filtering the results.

    For example, when EntityFilter is Role, only the roles that are attached to the specified policy are returned. This parameter is optional. If it is not included, all attached entities (users, groups, and roles) are returned. The argument for this parameter must be one of the valid values listed below.

    ", - "entityListType$member": null - } - }, - "EvalDecisionDetailsType": { - "base": null, - "refs": { - "EvaluationResult$EvalDecisionDetails": "

    Additional details about the results of the evaluation decision. When there are both IAM policies and resource policies, this parameter explains how each set of policies contributes to the final evaluation decision. When simulating cross-account access to a resource, both the resource-based policy and the caller's IAM policy must grant access. See How IAM Roles Differ from Resource-based Policies

    ", - "ResourceSpecificResult$EvalDecisionDetails": "

    Additional details about the results of the evaluation decision. When there are both IAM policies and resource policies, this parameter explains how each set of policies contributes to the final evaluation decision. When simulating cross-account access to a resource, both the resource-based policy and the caller's IAM policy must grant access.

    " - } - }, - "EvalDecisionSourceType": { - "base": null, - "refs": { - "EvalDecisionDetailsType$key": null - } - }, - "EvaluationResult": { - "base": "

    Contains the results of a simulation.

    This data type is used by the return parameter of SimulateCustomPolicy and SimulatePrincipalPolicy .

    ", - "refs": { - "EvaluationResultsListType$member": null - } - }, - "EvaluationResultsListType": { - "base": null, - "refs": { - "SimulatePolicyResponse$EvaluationResults": "

    The results of the simulation.

    " - } - }, - "GenerateCredentialReportResponse": { - "base": "

    Contains the response to a successful GenerateCredentialReport request.

    ", - "refs": { - } - }, - "GetAccessKeyLastUsedRequest": { - "base": null, - "refs": { - } - }, - "GetAccessKeyLastUsedResponse": { - "base": "

    Contains the response to a successful GetAccessKeyLastUsed request. It is also returned as a member of the AccessKeyMetaData structure returned by the ListAccessKeys action.

    ", - "refs": { - } - }, - "GetAccountAuthorizationDetailsRequest": { - "base": null, - "refs": { - } - }, - "GetAccountAuthorizationDetailsResponse": { - "base": "

    Contains the response to a successful GetAccountAuthorizationDetails request.

    ", - "refs": { - } - }, - "GetAccountPasswordPolicyResponse": { - "base": "

    Contains the response to a successful GetAccountPasswordPolicy request.

    ", - "refs": { - } - }, - "GetAccountSummaryResponse": { - "base": "

    Contains the response to a successful GetAccountSummary request.

    ", - "refs": { - } - }, - "GetContextKeysForCustomPolicyRequest": { - "base": null, - "refs": { - } - }, - "GetContextKeysForPolicyResponse": { - "base": "

    Contains the response to a successful GetContextKeysForPrincipalPolicy or GetContextKeysForCustomPolicy request.

    ", - "refs": { - } - }, - "GetContextKeysForPrincipalPolicyRequest": { - "base": null, - "refs": { - } - }, - "GetCredentialReportResponse": { - "base": "

    Contains the response to a successful GetCredentialReport request.

    ", - "refs": { - } - }, - "GetGroupPolicyRequest": { - "base": null, - "refs": { - } - }, - "GetGroupPolicyResponse": { - "base": "

    Contains the response to a successful GetGroupPolicy request.

    ", - "refs": { - } - }, - "GetGroupRequest": { - "base": null, - "refs": { - } - }, - "GetGroupResponse": { - "base": "

    Contains the response to a successful GetGroup request.

    ", - "refs": { - } - }, - "GetInstanceProfileRequest": { - "base": null, - "refs": { - } - }, - "GetInstanceProfileResponse": { - "base": "

    Contains the response to a successful GetInstanceProfile request.

    ", - "refs": { - } - }, - "GetLoginProfileRequest": { - "base": null, - "refs": { - } - }, - "GetLoginProfileResponse": { - "base": "

    Contains the response to a successful GetLoginProfile request.

    ", - "refs": { - } - }, - "GetOpenIDConnectProviderRequest": { - "base": null, - "refs": { - } - }, - "GetOpenIDConnectProviderResponse": { - "base": "

    Contains the response to a successful GetOpenIDConnectProvider request.

    ", - "refs": { - } - }, - "GetPolicyRequest": { - "base": null, - "refs": { - } - }, - "GetPolicyResponse": { - "base": "

    Contains the response to a successful GetPolicy request.

    ", - "refs": { - } - }, - "GetPolicyVersionRequest": { - "base": null, - "refs": { - } - }, - "GetPolicyVersionResponse": { - "base": "

    Contains the response to a successful GetPolicyVersion request.

    ", - "refs": { - } - }, - "GetRolePolicyRequest": { - "base": null, - "refs": { - } - }, - "GetRolePolicyResponse": { - "base": "

    Contains the response to a successful GetRolePolicy request.

    ", - "refs": { - } - }, - "GetRoleRequest": { - "base": null, - "refs": { - } - }, - "GetRoleResponse": { - "base": "

    Contains the response to a successful GetRole request.

    ", - "refs": { - } - }, - "GetSAMLProviderRequest": { - "base": null, - "refs": { - } - }, - "GetSAMLProviderResponse": { - "base": "

    Contains the response to a successful GetSAMLProvider request.

    ", - "refs": { - } - }, - "GetSSHPublicKeyRequest": { - "base": null, - "refs": { - } - }, - "GetSSHPublicKeyResponse": { - "base": "

    Contains the response to a successful GetSSHPublicKey request.

    ", - "refs": { - } - }, - "GetServerCertificateRequest": { - "base": null, - "refs": { - } - }, - "GetServerCertificateResponse": { - "base": "

    Contains the response to a successful GetServerCertificate request.

    ", - "refs": { - } - }, - "GetUserPolicyRequest": { - "base": null, - "refs": { - } - }, - "GetUserPolicyResponse": { - "base": "

    Contains the response to a successful GetUserPolicy request.

    ", - "refs": { - } - }, - "GetUserRequest": { - "base": null, - "refs": { - } - }, - "GetUserResponse": { - "base": "

    Contains the response to a successful GetUser request.

    ", - "refs": { - } - }, - "Group": { - "base": "

    Contains information about an IAM group entity.

    This data type is used as a response element in the following actions:

    ", - "refs": { - "CreateGroupResponse$Group": "

    A structure containing details about the new group.

    ", - "GetGroupResponse$Group": "

    A structure that contains details about the group.

    ", - "groupListType$member": null - } - }, - "GroupDetail": { - "base": "

    Contains information about an IAM group, including all of the group's policies.

    This data type is used as a response element in the GetAccountAuthorizationDetails action.

    ", - "refs": { - "groupDetailListType$member": null - } - }, - "InstanceProfile": { - "base": "

    Contains information about an instance profile.

    This data type is used as a response element in the following actions:

    ", - "refs": { - "CreateInstanceProfileResponse$InstanceProfile": "

    A structure containing details about the new instance profile.

    ", - "GetInstanceProfileResponse$InstanceProfile": "

    A structure containing details about the instance profile.

    ", - "instanceProfileListType$member": null - } - }, - "InvalidAuthenticationCodeException": { - "base": "

    The request was rejected because the authentication code was not recognized. The error message describes the specific error.

    ", - "refs": { - } - }, - "InvalidCertificateException": { - "base": "

    The request was rejected because the certificate is invalid.

    ", - "refs": { - } - }, - "InvalidInputException": { - "base": "

    The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

    ", - "refs": { - } - }, - "InvalidPublicKeyException": { - "base": "

    The request was rejected because the public key is malformed or otherwise invalid.

    ", - "refs": { - } - }, - "InvalidUserTypeException": { - "base": "

    The request was rejected because the type of user for the transaction was incorrect.

    ", - "refs": { - } - }, - "KeyPairMismatchException": { - "base": "

    The request was rejected because the public key certificate and the private key do not match.

    ", - "refs": { - } - }, - "LimitExceededException": { - "base": "

    The request was rejected because it attempted to create resources beyond the current AWS account limits. The error message describes the limit exceeded.

    ", - "refs": { - } - }, - "LineNumber": { - "base": null, - "refs": { - "Position$Line": "

    The line containing the specified position in the document.

    " - } - }, - "ListAccessKeysRequest": { - "base": null, - "refs": { - } - }, - "ListAccessKeysResponse": { - "base": "

    Contains the response to a successful ListAccessKeys request.

    ", - "refs": { - } - }, - "ListAccountAliasesRequest": { - "base": null, - "refs": { - } - }, - "ListAccountAliasesResponse": { - "base": "

    Contains the response to a successful ListAccountAliases request.

    ", - "refs": { - } - }, - "ListAttachedGroupPoliciesRequest": { - "base": null, - "refs": { - } - }, - "ListAttachedGroupPoliciesResponse": { - "base": "

    Contains the response to a successful ListAttachedGroupPolicies request.

    ", - "refs": { - } - }, - "ListAttachedRolePoliciesRequest": { - "base": null, - "refs": { - } - }, - "ListAttachedRolePoliciesResponse": { - "base": "

    Contains the response to a successful ListAttachedRolePolicies request.

    ", - "refs": { - } - }, - "ListAttachedUserPoliciesRequest": { - "base": null, - "refs": { - } - }, - "ListAttachedUserPoliciesResponse": { - "base": "

    Contains the response to a successful ListAttachedUserPolicies request.

    ", - "refs": { - } - }, - "ListEntitiesForPolicyRequest": { - "base": null, - "refs": { - } - }, - "ListEntitiesForPolicyResponse": { - "base": "

    Contains the response to a successful ListEntitiesForPolicy request.

    ", - "refs": { - } - }, - "ListGroupPoliciesRequest": { - "base": null, - "refs": { - } - }, - "ListGroupPoliciesResponse": { - "base": "

    Contains the response to a successful ListGroupPolicies request.

    ", - "refs": { - } - }, - "ListGroupsForUserRequest": { - "base": null, - "refs": { - } - }, - "ListGroupsForUserResponse": { - "base": "

    Contains the response to a successful ListGroupsForUser request.

    ", - "refs": { - } - }, - "ListGroupsRequest": { - "base": null, - "refs": { - } - }, - "ListGroupsResponse": { - "base": "

    Contains the response to a successful ListGroups request.

    ", - "refs": { - } - }, - "ListInstanceProfilesForRoleRequest": { - "base": null, - "refs": { - } - }, - "ListInstanceProfilesForRoleResponse": { - "base": "

    Contains the response to a successful ListInstanceProfilesForRole request.

    ", - "refs": { - } - }, - "ListInstanceProfilesRequest": { - "base": null, - "refs": { - } - }, - "ListInstanceProfilesResponse": { - "base": "

    Contains the response to a successful ListInstanceProfiles request.

    ", - "refs": { - } - }, - "ListMFADevicesRequest": { - "base": null, - "refs": { - } - }, - "ListMFADevicesResponse": { - "base": "

    Contains the response to a successful ListMFADevices request.

    ", - "refs": { - } - }, - "ListOpenIDConnectProvidersRequest": { - "base": null, - "refs": { - } - }, - "ListOpenIDConnectProvidersResponse": { - "base": "

    Contains the response to a successful ListOpenIDConnectProviders request.

    ", - "refs": { - } - }, - "ListPoliciesRequest": { - "base": null, - "refs": { - } - }, - "ListPoliciesResponse": { - "base": "

    Contains the response to a successful ListPolicies request.

    ", - "refs": { - } - }, - "ListPolicyVersionsRequest": { - "base": null, - "refs": { - } - }, - "ListPolicyVersionsResponse": { - "base": "

    Contains the response to a successful ListPolicyVersions request.

    ", - "refs": { - } - }, - "ListRolePoliciesRequest": { - "base": null, - "refs": { - } - }, - "ListRolePoliciesResponse": { - "base": "

    Contains the response to a successful ListRolePolicies request.

    ", - "refs": { - } - }, - "ListRolesRequest": { - "base": null, - "refs": { - } - }, - "ListRolesResponse": { - "base": "

    Contains the response to a successful ListRoles request.

    ", - "refs": { - } - }, - "ListSAMLProvidersRequest": { - "base": null, - "refs": { - } - }, - "ListSAMLProvidersResponse": { - "base": "

    Contains the response to a successful ListSAMLProviders request.

    ", - "refs": { - } - }, - "ListSSHPublicKeysRequest": { - "base": null, - "refs": { - } - }, - "ListSSHPublicKeysResponse": { - "base": "

    Contains the response to a successful ListSSHPublicKeys request.

    ", - "refs": { - } - }, - "ListServerCertificatesRequest": { - "base": null, - "refs": { - } - }, - "ListServerCertificatesResponse": { - "base": "

    Contains the response to a successful ListServerCertificates request.

    ", - "refs": { - } - }, - "ListSigningCertificatesRequest": { - "base": null, - "refs": { - } - }, - "ListSigningCertificatesResponse": { - "base": "

    Contains the response to a successful ListSigningCertificates request.

    ", - "refs": { - } - }, - "ListUserPoliciesRequest": { - "base": null, - "refs": { - } - }, - "ListUserPoliciesResponse": { - "base": "

    Contains the response to a successful ListUserPolicies request.

    ", - "refs": { - } - }, - "ListUsersRequest": { - "base": null, - "refs": { - } - }, - "ListUsersResponse": { - "base": "

    Contains the response to a successful ListUsers request.

    ", - "refs": { - } - }, - "ListVirtualMFADevicesRequest": { - "base": null, - "refs": { - } - }, - "ListVirtualMFADevicesResponse": { - "base": "

    Contains the response to a successful ListVirtualMFADevices request.

    ", - "refs": { - } - }, - "LoginProfile": { - "base": "

    Contains the user name and password create date for a user.

    This data type is used as a response element in the CreateLoginProfile and GetLoginProfile actions.

    ", - "refs": { - "CreateLoginProfileResponse$LoginProfile": "

    A structure containing the user name and password create date.

    ", - "GetLoginProfileResponse$LoginProfile": "

    A structure containing the user name and password create date for the user.

    " - } - }, - "MFADevice": { - "base": "

    Contains information about an MFA device.

    This data type is used as a response element in the ListMFADevices action.

    ", - "refs": { - "mfaDeviceListType$member": null - } - }, - "MalformedCertificateException": { - "base": "

    The request was rejected because the certificate was malformed or expired. The error message describes the specific error.

    ", - "refs": { - } - }, - "MalformedPolicyDocumentException": { - "base": "

    The request was rejected because the policy document was malformed. The error message describes the specific error.

    ", - "refs": { - } - }, - "ManagedPolicyDetail": { - "base": "

    Contains information about a managed policy, including the policy's ARN, versions, and the number of principal entities (users, groups, and roles) that the policy is attached to.

    This data type is used as a response element in the GetAccountAuthorizationDetails action.

    For more information about managed policies, see Managed Policies and Inline Policies in the Using IAM guide.

    ", - "refs": { - "ManagedPolicyDetailListType$member": null - } - }, - "ManagedPolicyDetailListType": { - "base": null, - "refs": { - "GetAccountAuthorizationDetailsResponse$Policies": "

    A list containing information about managed policies.

    " - } - }, - "NoSuchEntityException": { - "base": "

    The request was rejected because it referenced an entity that does not exist. The error message describes the entity.

    ", - "refs": { - } - }, - "OpenIDConnectProviderListEntry": { - "base": "

    Contains the Amazon Resource Name (ARN) for an IAM OpenID Connect provider.

    ", - "refs": { - "OpenIDConnectProviderListType$member": null - } - }, - "OpenIDConnectProviderListType": { - "base": "

    Contains a list of IAM OpenID Connect providers.

    ", - "refs": { - "ListOpenIDConnectProvidersResponse$OpenIDConnectProviderList": "

    The list of IAM OIDC provider resource objects defined in the AWS account.

    " - } - }, - "OpenIDConnectProviderUrlType": { - "base": "

    Contains a URL that specifies the endpoint for an OpenID Connect provider.

    ", - "refs": { - "CreateOpenIDConnectProviderRequest$Url": "

    The URL of the identity provider. The URL must begin with \"https://\" and should correspond to the iss claim in the provider's OpenID Connect ID tokens. Per the OIDC standard, path components are allowed but query parameters are not. Typically the URL consists of only a host name, like \"https://server.example.org\" or \"https://example.com\".

    You cannot register the same provider multiple times in a single AWS account. If you try to submit a URL that has already been used for an OpenID Connect provider in the AWS account, you will get an error.

    ", - "GetOpenIDConnectProviderResponse$Url": "

    The URL that the IAM OIDC provider resource object is associated with. For more information, see CreateOpenIDConnectProvider.

    " - } - }, - "PasswordPolicy": { - "base": "

    Contains information about the account password policy.

    This data type is used as a response element in the GetAccountPasswordPolicy action.

    ", - "refs": { - "GetAccountPasswordPolicyResponse$PasswordPolicy": null - } - }, - "PasswordPolicyViolationException": { - "base": "

    The request was rejected because the provided password did not meet the requirements imposed by the account password policy.

    ", - "refs": { - } - }, - "Policy": { - "base": "

    Contains information about a managed policy.

    This data type is used as a response element in the CreatePolicy, GetPolicy, and ListPolicies actions.

    For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

    ", - "refs": { - "CreatePolicyResponse$Policy": "

    A structure containing details about the new policy.

    ", - "GetPolicyResponse$Policy": "

    A structure containing details about the policy.

    ", - "policyListType$member": null - } - }, - "PolicyDetail": { - "base": "

    Contains information about an IAM policy, including the policy document.

    This data type is used as a response element in the GetAccountAuthorizationDetails action.

    ", - "refs": { - "policyDetailListType$member": null - } - }, - "PolicyEvaluationDecisionType": { - "base": null, - "refs": { - "EvalDecisionDetailsType$value": null, - "EvaluationResult$EvalDecision": "

    The result of the simulation.

    ", - "ResourceSpecificResult$EvalResourceDecision": "

    The result of the simulation of the simulated API action on the resource specified in EvalResourceName.

    " - } - }, - "PolicyEvaluationException": { - "base": "

    The request failed because a provided policy could not be successfully evaluated. An additional detail message indicates the source of the failure.

    ", - "refs": { - } - }, - "PolicyGroup": { - "base": "

    Contains information about a group that a managed policy is attached to.

    This data type is used as a response element in the ListEntitiesForPolicy action.

    For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

    ", - "refs": { - "PolicyGroupListType$member": null - } - }, - "PolicyGroupListType": { - "base": null, - "refs": { - "ListEntitiesForPolicyResponse$PolicyGroups": "

    A list of IAM groups that the policy is attached to.

    " - } - }, - "PolicyIdentifierType": { - "base": null, - "refs": { - "Statement$SourcePolicyId": "

    The identifier of the policy that was provided as an input.

    " - } - }, - "PolicyRole": { - "base": "

    Contains information about a role that a managed policy is attached to.

    This data type is used as a response element in the ListEntitiesForPolicy action.

    For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

    ", - "refs": { - "PolicyRoleListType$member": null - } - }, - "PolicyRoleListType": { - "base": null, - "refs": { - "ListEntitiesForPolicyResponse$PolicyRoles": "

    A list of IAM roles that the policy is attached to.

    " - } - }, - "PolicySourceType": { - "base": null, - "refs": { - "Statement$SourcePolicyType": "

    The type of the policy.

    " - } - }, - "PolicyUser": { - "base": "

    Contains information about a user that a managed policy is attached to.

    This data type is used as a response element in the ListEntitiesForPolicy action.

    For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

    ", - "refs": { - "PolicyUserListType$member": null - } - }, - "PolicyUserListType": { - "base": null, - "refs": { - "ListEntitiesForPolicyResponse$PolicyUsers": "

    A list of IAM users that the policy is attached to.

    " - } - }, - "PolicyVersion": { - "base": "

    Contains information about a version of a managed policy.

    This data type is used as a response element in the CreatePolicyVersion, GetPolicyVersion, ListPolicyVersions, and GetAccountAuthorizationDetails actions.

    For more information about managed policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

    ", - "refs": { - "CreatePolicyVersionResponse$PolicyVersion": "

    A structure containing details about the new policy version.

    ", - "GetPolicyVersionResponse$PolicyVersion": "

    A structure containing details about the policy version.

    ", - "policyDocumentVersionListType$member": null - } - }, - "Position": { - "base": "

    Contains the row and column of a location of a Statement element in a policy document.

    This data type is used as a member of the Statement type.

    ", - "refs": { - "Statement$StartPosition": "

    The row and column of the beginning of the Statement in an IAM policy.

    ", - "Statement$EndPosition": "

    The row and column of the end of a Statement in an IAM policy.

    " - } - }, - "PutGroupPolicyRequest": { - "base": null, - "refs": { - } - }, - "PutRolePolicyRequest": { - "base": null, - "refs": { - } - }, - "PutUserPolicyRequest": { - "base": null, - "refs": { - } - }, - "RemoveClientIDFromOpenIDConnectProviderRequest": { - "base": null, - "refs": { - } - }, - "RemoveRoleFromInstanceProfileRequest": { - "base": null, - "refs": { - } - }, - "RemoveUserFromGroupRequest": { - "base": null, - "refs": { - } - }, - "ReportContentType": { - "base": null, - "refs": { - "GetCredentialReportResponse$Content": "

    Contains the credential report. The report is Base64-encoded.

    " - } - }, - "ReportFormatType": { - "base": null, - "refs": { - "GetCredentialReportResponse$ReportFormat": "

    The format (MIME type) of the credential report.

    " - } - }, - "ReportStateDescriptionType": { - "base": null, - "refs": { - "GenerateCredentialReportResponse$Description": "

    Information about the credential report.

    " - } - }, - "ReportStateType": { - "base": null, - "refs": { - "GenerateCredentialReportResponse$State": "

    Information about the state of the credential report.

    " - } - }, - "ResourceHandlingOptionType": { - "base": null, - "refs": { - "SimulateCustomPolicyRequest$ResourceHandlingOption": "

    Specifies the type of simulation to run. Different APIs that support resource-based policies require different combinations of resources. By specifying the type of simulation to run, you enable the policy simulator to enforce the presence of the required resources to ensure reliable simulation results. If your simulation does not match one of the following scenarios, then you can omit this parameter. The following list shows each of the supported scenario values and the resources that you must define to run the simulation.

    Each of the EC2 scenarios requires that you specify instance, image, and security-group resources. If your scenario includes an EBS volume, then you must specify that volume as a resource. If the EC2 scenario includes VPC, then you must supply the network-interface resource. If it includes an IP subnet, then you must specify the subnet resource. For more information on the EC2 scenario options, see Supported Platforms in the AWS EC2 User Guide.

    • EC2-Classic-InstanceStore

      instance, image, security-group

    • EC2-Classic-EBS

      instance, image, security-group, volume

    • EC2-VPC-InstanceStore

      instance, image, security-group, network-interface

    • EC2-VPC-InstanceStore-Subnet

      instance, image, security-group, network-interface, subnet

    • EC2-VPC-EBS

      instance, image, security-group, network-interface, volume

    • EC2-VPC-EBS-Subnet

      instance, image, security-group, network-interface, subnet, volume

    ", - "SimulatePrincipalPolicyRequest$ResourceHandlingOption": "

    Specifies the type of simulation to run. Different APIs that support resource-based policies require different combinations of resources. By specifying the type of simulation to run, you enable the policy simulator to enforce the presence of the required resources to ensure reliable simulation results. If your simulation does not match one of the following scenarios, then you can omit this parameter. The following list shows each of the supported scenario values and the resources that you must define to run the simulation.

    Each of the EC2 scenarios requires that you specify instance, image, and security-group resources. If your scenario includes an EBS volume, then you must specify that volume as a resource. If the EC2 scenario includes VPC, then you must supply the network-interface resource. If it includes an IP subnet, then you must specify the subnet resource. For more information on the EC2 scenario options, see Supported Platforms in the AWS EC2 User Guide.

    • EC2-Classic-InstanceStore

      instance, image, security-group

    • EC2-Classic-EBS

      instance, image, security-group, volume

    • EC2-VPC-InstanceStore

      instance, image, security-group, network-interface

    • EC2-VPC-InstanceStore-Subnet

      instance, image, security-group, network-interface, subnet

    • EC2-VPC-EBS

      instance, image, security-group, network-interface, volume

    • EC2-VPC-EBS-Subnet

      instance, image, security-group, network-interface, subnet, volume

    " - } - }, - "ResourceNameListType": { - "base": null, - "refs": { - "SimulateCustomPolicyRequest$ResourceArns": "

    A list of ARNs of AWS resources to include in the simulation. If this parameter is not provided then the value defaults to * (all resources). Each API in the ActionNames parameter is evaluated for each resource in this list. The simulation determines the access result (allowed or denied) of each combination and reports it in the response.

    The simulation does not automatically retrieve policies for the specified resources. If you want to include a resource policy in the simulation, then you must include the policy as a string in the ResourcePolicy parameter.

    If you include a ResourcePolicy, then it must be applicable to all of the resources included in the simulation or you receive an invalid input error.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "SimulatePrincipalPolicyRequest$ResourceArns": "

    A list of ARNs of AWS resources to include in the simulation. If this parameter is not provided then the value defaults to * (all resources). Each API in the ActionNames parameter is evaluated for each resource in this list. The simulation determines the access result (allowed or denied) of each combination and reports it in the response.

    The simulation does not automatically retrieve policies for the specified resources. If you want to include a resource policy in the simulation, then you must include the policy as a string in the ResourcePolicy parameter.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    " - } - }, - "ResourceNameType": { - "base": null, - "refs": { - "EvaluationResult$EvalResourceName": "

    The ARN of the resource that the indicated API action was tested on.

    ", - "ResourceNameListType$member": null, - "ResourceSpecificResult$EvalResourceName": "

    The name of the simulated resource, in Amazon Resource Name (ARN) format.

    ", - "SimulateCustomPolicyRequest$ResourceOwner": "

    An AWS account ID that specifies the owner of any simulated resource that does not identify its owner in the resource ARN, such as an S3 bucket or object. If ResourceOwner is specified, it is also used as the account owner of any ResourcePolicy included in the simulation. If the ResourceOwner parameter is not specified, then the owner of the resources and the resource policy defaults to the account of the identity provided in CallerArn. This parameter is required only if you specify a resource-based policy and account that owns the resource is different from the account that owns the simulated calling user CallerArn.

    ", - "SimulateCustomPolicyRequest$CallerArn": "

    The ARN of the IAM user that you want to use as the simulated caller of the APIs. CallerArn is required if you include a ResourcePolicy so that the policy's Principal element has a value to use in evaluating the policy.

    You can specify only the ARN of an IAM user. You cannot specify the ARN of an assumed role, federated user, or a service principal.

    ", - "SimulatePrincipalPolicyRequest$ResourceOwner": "

    An AWS account ID that specifies the owner of any simulated resource that does not identify its owner in the resource ARN, such as an S3 bucket or object. If ResourceOwner is specified, it is also used as the account owner of any ResourcePolicy included in the simulation. If the ResourceOwner parameter is not specified, then the owner of the resources and the resource policy defaults to the account of the identity provided in CallerArn. This parameter is required only if you specify a resource-based policy and account that owns the resource is different from the account that owns the simulated calling user CallerArn.

    ", - "SimulatePrincipalPolicyRequest$CallerArn": "

    The ARN of the IAM user that you want to specify as the simulated caller of the APIs. If you do not specify a CallerArn, it defaults to the ARN of the user that you specify in PolicySourceArn, if you specified a user. If you include both a PolicySourceArn (for example, arn:aws:iam::123456789012:user/David) and a CallerArn (for example, arn:aws:iam::123456789012:user/Bob), the result is that you simulate calling the APIs as Bob, as if Bob had David's policies.

    You can specify only the ARN of an IAM user. You cannot specify the ARN of an assumed role, federated user, or a service principal.

    CallerArn is required if you include a ResourcePolicy and the PolicySourceArn is not the ARN for an IAM user. This is required so that the resource-based policy's Principal element has a value to use in evaluating the policy.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    " - } - }, - "ResourceSpecificResult": { - "base": "

    Contains the result of the simulation of a single API action call on a single resource.

    This data type is used by a member of the EvaluationResult data type.

    ", - "refs": { - "ResourceSpecificResultListType$member": null - } - }, - "ResourceSpecificResultListType": { - "base": null, - "refs": { - "EvaluationResult$ResourceSpecificResults": "

    The individual results of the simulation of the API action specified in EvalActionName on each resource.

    " - } - }, - "ResyncMFADeviceRequest": { - "base": null, - "refs": { - } - }, - "Role": { - "base": "

    Contains information about an IAM role.

    This data type is used as a response element in the following actions:

    ", - "refs": { - "CreateRoleResponse$Role": "

    A structure containing details about the new role.

    ", - "GetRoleResponse$Role": "

    A structure containing details about the IAM role.

    ", - "roleListType$member": null - } - }, - "RoleDetail": { - "base": "

    Contains information about an IAM role, including all of the role's policies.

    This data type is used as a response element in the GetAccountAuthorizationDetails action.

    ", - "refs": { - "roleDetailListType$member": null - } - }, - "SAMLMetadataDocumentType": { - "base": null, - "refs": { - "CreateSAMLProviderRequest$SAMLMetadataDocument": "

    An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.

    For more information, see About SAML 2.0-based Federation in the IAM User Guide

    ", - "GetSAMLProviderResponse$SAMLMetadataDocument": "

    The XML metadata document that includes information about an identity provider.

    ", - "UpdateSAMLProviderRequest$SAMLMetadataDocument": "

    An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.

    " - } - }, - "SAMLProviderListEntry": { - "base": "

    Contains the list of SAML providers for this account.

    ", - "refs": { - "SAMLProviderListType$member": null - } - }, - "SAMLProviderListType": { - "base": null, - "refs": { - "ListSAMLProvidersResponse$SAMLProviderList": "

    The list of SAML provider resource objects defined in IAM for this AWS account.

    " - } - }, - "SAMLProviderNameType": { - "base": null, - "refs": { - "CreateSAMLProviderRequest$Name": "

    The name of the provider to create.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    " - } - }, - "SSHPublicKey": { - "base": "

    Contains information about an SSH public key.

    This data type is used as a response element in the GetSSHPublicKey and UploadSSHPublicKey actions.

    ", - "refs": { - "GetSSHPublicKeyResponse$SSHPublicKey": "

    A structure containing details about the SSH public key.

    ", - "UploadSSHPublicKeyResponse$SSHPublicKey": "

    Contains information about the SSH public key.

    " - } - }, - "SSHPublicKeyListType": { - "base": null, - "refs": { - "ListSSHPublicKeysResponse$SSHPublicKeys": "

    A list of the SSH public keys assigned to IAM user.

    " - } - }, - "SSHPublicKeyMetadata": { - "base": "

    Contains information about an SSH public key, without the key's body or fingerprint.

    This data type is used as a response element in the ListSSHPublicKeys action.

    ", - "refs": { - "SSHPublicKeyListType$member": null - } - }, - "ServerCertificate": { - "base": "

    Contains information about a server certificate.

    This data type is used as a response element in the GetServerCertificate action.

    ", - "refs": { - "GetServerCertificateResponse$ServerCertificate": "

    A structure containing details about the server certificate.

    " - } - }, - "ServerCertificateMetadata": { - "base": "

    Contains information about a server certificate without its certificate body, certificate chain, and private key.

    This data type is used as a response element in the UploadServerCertificate and ListServerCertificates actions.

    ", - "refs": { - "ServerCertificate$ServerCertificateMetadata": "

    The meta information of the server certificate, such as its name, path, ID, and ARN.

    ", - "UploadServerCertificateResponse$ServerCertificateMetadata": "

    The meta information of the uploaded server certificate without its certificate body, certificate chain, and private key.

    ", - "serverCertificateMetadataListType$member": null - } - }, - "ServiceFailureException": { - "base": "

    The request processing has failed because of an unknown error, exception or failure.

    ", - "refs": { - } - }, - "SetDefaultPolicyVersionRequest": { - "base": null, - "refs": { - } - }, - "SigningCertificate": { - "base": "

    Contains information about an X.509 signing certificate.

    This data type is used as a response element in the UploadSigningCertificate and ListSigningCertificates actions.

    ", - "refs": { - "UploadSigningCertificateResponse$Certificate": "

    Information about the certificate.

    ", - "certificateListType$member": null - } - }, - "SimulateCustomPolicyRequest": { - "base": null, - "refs": { - } - }, - "SimulatePolicyResponse": { - "base": "

    Contains the response to a successful SimulatePrincipalPolicy or SimulateCustomPolicy request.

    ", - "refs": { - } - }, - "SimulatePrincipalPolicyRequest": { - "base": null, - "refs": { - } - }, - "SimulationPolicyListType": { - "base": null, - "refs": { - "GetContextKeysForCustomPolicyRequest$PolicyInputList": "

    A list of policies for which you want the list of context keys referenced in those policies. Each document is specified as a string containing the complete, valid JSON text of an IAM policy.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "GetContextKeysForPrincipalPolicyRequest$PolicyInputList": "

    An optional list of additional policies for which you want the list of context keys that are referenced.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "SimulateCustomPolicyRequest$PolicyInputList": "

    A list of policy documents to include in the simulation. Each document is specified as a string containing the complete, valid JSON text of an IAM policy. Do not include any resource-based policies in this parameter. Any resource-based policy must be submitted with the ResourcePolicy parameter. The policies cannot be \"scope-down\" policies, such as you could include in a call to GetFederationToken or one of the AssumeRole APIs to restrict what a user can do while using the temporary credentials.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "SimulatePrincipalPolicyRequest$PolicyInputList": "

    An optional list of additional policy documents to include in the simulation. Each document is specified as a string containing the complete, valid JSON text of an IAM policy.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    " - } - }, - "Statement": { - "base": "

    Contains a reference to a Statement element in a policy document that determines the result of the simulation.

    This data type is used by the MatchedStatements member of the EvaluationResult type.

    ", - "refs": { - "StatementListType$member": null - } - }, - "StatementListType": { - "base": null, - "refs": { - "EvaluationResult$MatchedStatements": "

    A list of the statements in the input policies that determine the result for this scenario. Remember that even if multiple statements allow the action on the resource, if only one statement denies that action, then the explicit deny overrides any allow, and the deny statement is the only entry included in the result.

    ", - "ResourceSpecificResult$MatchedStatements": "

    A list of the statements in the input policies that determine the result for this part of the simulation. Remember that even if multiple statements allow the action on the resource, if any statement denies that action, then the explicit deny overrides any allow, and the deny statement is the only entry included in the result.

    " - } - }, - "UnrecognizedPublicKeyEncodingException": { - "base": "

    The request was rejected because the public key encoding format is unsupported or unrecognized.

    ", - "refs": { - } - }, - "UpdateAccessKeyRequest": { - "base": null, - "refs": { - } - }, - "UpdateAccountPasswordPolicyRequest": { - "base": null, - "refs": { - } - }, - "UpdateAssumeRolePolicyRequest": { - "base": null, - "refs": { - } - }, - "UpdateGroupRequest": { - "base": null, - "refs": { - } - }, - "UpdateLoginProfileRequest": { - "base": null, - "refs": { - } - }, - "UpdateOpenIDConnectProviderThumbprintRequest": { - "base": null, - "refs": { - } - }, - "UpdateSAMLProviderRequest": { - "base": null, - "refs": { - } - }, - "UpdateSAMLProviderResponse": { - "base": "

    Contains the response to a successful UpdateSAMLProvider request.

    ", - "refs": { - } - }, - "UpdateSSHPublicKeyRequest": { - "base": null, - "refs": { - } - }, - "UpdateServerCertificateRequest": { - "base": null, - "refs": { - } - }, - "UpdateSigningCertificateRequest": { - "base": null, - "refs": { - } - }, - "UpdateUserRequest": { - "base": null, - "refs": { - } - }, - "UploadSSHPublicKeyRequest": { - "base": null, - "refs": { - } - }, - "UploadSSHPublicKeyResponse": { - "base": "

    Contains the response to a successful UploadSSHPublicKey request.

    ", - "refs": { - } - }, - "UploadServerCertificateRequest": { - "base": null, - "refs": { - } - }, - "UploadServerCertificateResponse": { - "base": "

    Contains the response to a successful UploadServerCertificate request.

    ", - "refs": { - } - }, - "UploadSigningCertificateRequest": { - "base": null, - "refs": { - } - }, - "UploadSigningCertificateResponse": { - "base": "

    Contains the response to a successful UploadSigningCertificate request.

    ", - "refs": { - } - }, - "User": { - "base": "

    Contains information about an IAM user entity.

    This data type is used as a response element in the following actions:

    ", - "refs": { - "CreateUserResponse$User": "

    A structure with details about the new IAM user.

    ", - "GetUserResponse$User": "

    A structure containing details about the IAM user.

    ", - "VirtualMFADevice$User": null, - "userListType$member": null - } - }, - "UserDetail": { - "base": "

    Contains information about an IAM user, including all the user's policies and all the IAM groups the user is in.

    This data type is used as a response element in the GetAccountAuthorizationDetails action.

    ", - "refs": { - "userDetailListType$member": null - } - }, - "VirtualMFADevice": { - "base": "

    Contains information about a virtual MFA device.

    ", - "refs": { - "CreateVirtualMFADeviceResponse$VirtualMFADevice": "

    A structure containing details about the new virtual MFA device.

    ", - "virtualMFADeviceListType$member": null - } - }, - "accessKeyIdType": { - "base": null, - "refs": { - "AccessKey$AccessKeyId": "

    The ID for this access key.

    ", - "AccessKeyMetadata$AccessKeyId": "

    The ID for this access key.

    ", - "DeleteAccessKeyRequest$AccessKeyId": "

    The access key ID for the access key ID and secret access key you want to delete.

    The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

    ", - "GetAccessKeyLastUsedRequest$AccessKeyId": "

    The identifier of an access key.

    The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

    ", - "UpdateAccessKeyRequest$AccessKeyId": "

    The access key ID of the secret access key you want to update.

    The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

    " - } - }, - "accessKeyMetadataListType": { - "base": "

    Contains a list of access key metadata.

    This data type is used as a response element in the ListAccessKeys action.

    ", - "refs": { - "ListAccessKeysResponse$AccessKeyMetadata": "

    A list of objects containing metadata about the access keys.

    " - } - }, - "accessKeySecretType": { - "base": null, - "refs": { - "AccessKey$SecretAccessKey": "

    The secret key used to sign requests.

    " - } - }, - "accountAliasListType": { - "base": null, - "refs": { - "ListAccountAliasesResponse$AccountAliases": "

    A list of aliases associated with the account. AWS supports only one alias per account.

    " - } - }, - "accountAliasType": { - "base": null, - "refs": { - "CreateAccountAliasRequest$AccountAlias": "

    The account alias to create.

    The regex pattern for this parameter is a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.

    ", - "DeleteAccountAliasRequest$AccountAlias": "

    The name of the account alias to delete.

    The regex pattern for this parameter is a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.

    ", - "accountAliasListType$member": null - } - }, - "arnType": { - "base": "

    The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources.

    For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "refs": { - "AddClientIDToOpenIDConnectProviderRequest$OpenIDConnectProviderArn": "

    The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider resource to add the client ID to. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders action.

    ", - "AttachGroupPolicyRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy you want to attach.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "AttachRolePolicyRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy you want to attach.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "AttachUserPolicyRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy you want to attach.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "AttachedPolicy$PolicyArn": null, - "CreateOpenIDConnectProviderResponse$OpenIDConnectProviderArn": "

    The Amazon Resource Name (ARN) of the new IAM OpenID Connect provider that is created. For more information, see OpenIDConnectProviderListEntry.

    ", - "CreatePolicyVersionRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "CreateSAMLProviderResponse$SAMLProviderArn": "

    The Amazon Resource Name (ARN) of the new SAML provider resource in IAM.

    ", - "DeleteOpenIDConnectProviderRequest$OpenIDConnectProviderArn": "

    The Amazon Resource Name (ARN) of the IAM OpenID Connect provider resource object to delete. You can get a list of OpenID Connect provider resource ARNs by using the ListOpenIDConnectProviders action.

    ", - "DeletePolicyRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy you want to delete.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "DeletePolicyVersionRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy from which you want to delete a version.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "DeleteSAMLProviderRequest$SAMLProviderArn": "

    The Amazon Resource Name (ARN) of the SAML provider to delete.

    ", - "DetachGroupPolicyRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy you want to detach.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "DetachRolePolicyRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy you want to detach.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "DetachUserPolicyRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy you want to detach.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "GetContextKeysForPrincipalPolicyRequest$PolicySourceArn": "

    The ARN of a user, group, or role whose policies contain the context keys that you want listed. If you specify a user, the list includes context keys that are found in all policies attached to the user as well as to all groups that the user is a member of. If you pick a group or a role, then it includes only those context keys that are found in policies attached to that entity. Note that all parameters are shown in unencoded form here for clarity, but must be URL encoded to be included as a part of a real HTML request.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "GetOpenIDConnectProviderRequest$OpenIDConnectProviderArn": "

    The Amazon Resource Name (ARN) of the OIDC provider resource object in IAM to get information for. You can get a list of OIDC provider resource ARNs by using the ListOpenIDConnectProviders action.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "GetPolicyRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the managed policy that you want information about.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "GetPolicyVersionRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the managed policy that you want information about.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "GetSAMLProviderRequest$SAMLProviderArn": "

    The Amazon Resource Name (ARN) of the SAML provider resource object in IAM to get information about.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "Group$Arn": "

    The Amazon Resource Name (ARN) specifying the group. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.

    ", - "GroupDetail$Arn": null, - "InstanceProfile$Arn": "

    The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.

    ", - "ListEntitiesForPolicyRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy for which you want the versions.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "ListPolicyVersionsRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy for which you want the versions.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "ManagedPolicyDetail$Arn": null, - "OpenIDConnectProviderListEntry$Arn": null, - "Policy$Arn": null, - "RemoveClientIDFromOpenIDConnectProviderRequest$OpenIDConnectProviderArn": "

    The Amazon Resource Name (ARN) of the IAM OIDC provider resource to remove the client ID from. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders action.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "Role$Arn": "

    The Amazon Resource Name (ARN) specifying the role. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.

    ", - "RoleDetail$Arn": null, - "SAMLProviderListEntry$Arn": "

    The Amazon Resource Name (ARN) of the SAML provider.

    ", - "ServerCertificateMetadata$Arn": "

    The Amazon Resource Name (ARN) specifying the server certificate. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.

    ", - "SetDefaultPolicyVersionRequest$PolicyArn": "

    The Amazon Resource Name (ARN) of the IAM policy whose default version you want to set.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "SimulatePrincipalPolicyRequest$PolicySourceArn": "

    The Amazon Resource Name (ARN) of a user, group, or role whose policies you want to include in the simulation. If you specify a user, group, or role, the simulation includes all policies that are associated with that entity. If you specify a user, the simulation also includes all policies that are attached to any groups the user belongs to.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "UpdateOpenIDConnectProviderThumbprintRequest$OpenIDConnectProviderArn": "

    The Amazon Resource Name (ARN) of the IAM OIDC provider resource object for which you want to update the thumbprint. You can get a list of OIDC provider ARNs by using the ListOpenIDConnectProviders action.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "UpdateSAMLProviderRequest$SAMLProviderArn": "

    The Amazon Resource Name (ARN) of the SAML provider to update.

    For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

    ", - "UpdateSAMLProviderResponse$SAMLProviderArn": "

    The Amazon Resource Name (ARN) of the SAML provider that was updated.

    ", - "User$Arn": "

    The Amazon Resource Name (ARN) that identifies the user. For more information about ARNs and how to use ARNs in policies, see IAM Identifiers in the Using IAM guide.

    ", - "UserDetail$Arn": null - } - }, - "assignmentStatusType": { - "base": null, - "refs": { - "ListVirtualMFADevicesRequest$AssignmentStatus": "

    The status (Unassigned or Assigned) of the devices to list. If you do not specify an AssignmentStatus, the action defaults to Any which lists both assigned and unassigned virtual MFA devices.

    " - } - }, - "attachedPoliciesListType": { - "base": null, - "refs": { - "GroupDetail$AttachedManagedPolicies": "

    A list of the managed policies attached to the group.

    ", - "ListAttachedGroupPoliciesResponse$AttachedPolicies": "

    A list of the attached policies.

    ", - "ListAttachedRolePoliciesResponse$AttachedPolicies": "

    A list of the attached policies.

    ", - "ListAttachedUserPoliciesResponse$AttachedPolicies": "

    A list of the attached policies.

    ", - "RoleDetail$AttachedManagedPolicies": "

    A list of managed policies attached to the role. These policies are the role's access (permissions) policies.

    ", - "UserDetail$AttachedManagedPolicies": "

    A list of the managed policies attached to the user.

    " - } - }, - "attachmentCountType": { - "base": null, - "refs": { - "ManagedPolicyDetail$AttachmentCount": "

    The number of principal entities (users, groups, and roles) that the policy is attached to.

    ", - "Policy$AttachmentCount": "

    The number of entities (users, groups, and roles) that the policy is attached to.

    " - } - }, - "authenticationCodeType": { - "base": null, - "refs": { - "EnableMFADeviceRequest$AuthenticationCode1": "

    An authentication code emitted by the device.

    The format for this parameter is a string of 6 digits.

    ", - "EnableMFADeviceRequest$AuthenticationCode2": "

    A subsequent authentication code emitted by the device.

    The format for this parameter is a string of 6 digits.

    ", - "ResyncMFADeviceRequest$AuthenticationCode1": "

    An authentication code emitted by the device.

    The format for this parameter is a sequence of six digits.

    ", - "ResyncMFADeviceRequest$AuthenticationCode2": "

    A subsequent authentication code emitted by the device.

    The format for this parameter is a sequence of six digits.

    " - } - }, - "booleanObjectType": { - "base": null, - "refs": { - "PasswordPolicy$HardExpiry": "

    Specifies whether IAM users are prevented from setting a new password after their password has expired.

    ", - "UpdateAccountPasswordPolicyRequest$HardExpiry": "

    Prevents IAM users from setting a new password after their password has expired.

    Default value: false

    ", - "UpdateLoginProfileRequest$PasswordResetRequired": "

    Allows this new password to be used only once by requiring the specified IAM user to set a new password on next sign-in.

    " - } - }, - "booleanType": { - "base": null, - "refs": { - "CreateLoginProfileRequest$PasswordResetRequired": "

    Specifies whether the user is required to set a new password on next sign-in.

    ", - "CreatePolicyVersionRequest$SetAsDefault": "

    Specifies whether to set this version as the policy's default version.

    When this parameter is true, the new policy version becomes the operative version; that is, the version that is in effect for the IAM users, groups, and roles that the policy is attached to.

    For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

    ", - "GetAccountAuthorizationDetailsResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "GetGroupResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListAccessKeysResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListAccountAliasesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListAttachedGroupPoliciesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListAttachedRolePoliciesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListAttachedUserPoliciesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListEntitiesForPolicyResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListGroupPoliciesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListGroupsForUserResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListGroupsResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListInstanceProfilesForRoleResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListInstanceProfilesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListMFADevicesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListPoliciesRequest$OnlyAttached": "

    A flag to filter the results to only the attached policies.

    When OnlyAttached is true, the returned list contains only the policies that are attached to an IAM user, group, or role. When OnlyAttached is false, or when the parameter is not included, all policies are returned.

    ", - "ListPoliciesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListPolicyVersionsResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListRolePoliciesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListRolesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListSSHPublicKeysResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListServerCertificatesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListSigningCertificatesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListUserPoliciesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListUsersResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "ListVirtualMFADevicesResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "LoginProfile$PasswordResetRequired": "

    Specifies whether the user is required to set a new password on next sign-in.

    ", - "ManagedPolicyDetail$IsAttachable": "

    Specifies whether the policy can be attached to an IAM user, group, or role.

    ", - "PasswordPolicy$RequireSymbols": "

    Specifies whether to require symbols for IAM user passwords.

    ", - "PasswordPolicy$RequireNumbers": "

    Specifies whether to require numbers for IAM user passwords.

    ", - "PasswordPolicy$RequireUppercaseCharacters": "

    Specifies whether to require uppercase characters for IAM user passwords.

    ", - "PasswordPolicy$RequireLowercaseCharacters": "

    Specifies whether to require lowercase characters for IAM user passwords.

    ", - "PasswordPolicy$AllowUsersToChangePassword": "

    Specifies whether IAM users are allowed to change their own password.

    ", - "PasswordPolicy$ExpirePasswords": "

    Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.

    ", - "Policy$IsAttachable": "

    Specifies whether the policy can be attached to an IAM user, group, or role.

    ", - "PolicyVersion$IsDefaultVersion": "

    Specifies whether the policy version is set as the policy's default version.

    ", - "SimulatePolicyResponse$IsTruncated": "

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

    ", - "UpdateAccountPasswordPolicyRequest$RequireSymbols": "

    Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters:

    ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | '

    Default value: false

    ", - "UpdateAccountPasswordPolicyRequest$RequireNumbers": "

    Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).

    Default value: false

    ", - "UpdateAccountPasswordPolicyRequest$RequireUppercaseCharacters": "

    Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin alphabet (A to Z).

    Default value: false

    ", - "UpdateAccountPasswordPolicyRequest$RequireLowercaseCharacters": "

    Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin alphabet (a to z).

    Default value: false

    ", - "UpdateAccountPasswordPolicyRequest$AllowUsersToChangePassword": "

    Allows all IAM users in your account to use the AWS Management Console to change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the IAM User Guide.

    Default value: false

    " - } - }, - "certificateBodyType": { - "base": null, - "refs": { - "ServerCertificate$CertificateBody": "

    The contents of the public key certificate.

    ", - "SigningCertificate$CertificateBody": "

    The contents of the signing certificate.

    ", - "UploadServerCertificateRequest$CertificateBody": "

    The contents of the public key certificate in PEM-encoded format.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "UploadSigningCertificateRequest$CertificateBody": "

    The contents of the signing certificate.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    " - } - }, - "certificateChainType": { - "base": null, - "refs": { - "ServerCertificate$CertificateChain": "

    The contents of the public key certificate chain.

    ", - "UploadServerCertificateRequest$CertificateChain": "

    The contents of the certificate chain. This is typically a concatenation of the PEM-encoded public key certificates of the chain.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    " - } - }, - "certificateIdType": { - "base": null, - "refs": { - "DeleteSigningCertificateRequest$CertificateId": "

    The ID of the signing certificate to delete.

    The format of this parameter, as described by its regex pattern, is a string of characters that can be upper- or lower-cased letters or digits.

    ", - "SigningCertificate$CertificateId": "

    The ID for the signing certificate.

    ", - "UpdateSigningCertificateRequest$CertificateId": "

    The ID of the signing certificate you want to update.

    The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

    " - } - }, - "certificateListType": { - "base": "

    Contains a list of signing certificates.

    This data type is used as a response element in the ListSigningCertificates action.

    ", - "refs": { - "ListSigningCertificatesResponse$Certificates": "

    A list of the user's signing certificate information.

    " - } - }, - "clientIDListType": { - "base": null, - "refs": { - "CreateOpenIDConnectProviderRequest$ClientIDList": "

    A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.)

    You can register multiple client IDs with the same provider. For example, you might have multiple applications that use the same OIDC provider. You cannot register more than 100 client IDs with a single IAM OIDC provider.

    There is no defined format for a client ID. The CreateOpenIDConnectProviderRequest action accepts client IDs up to 255 characters long.

    ", - "GetOpenIDConnectProviderResponse$ClientIDList": "

    A list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.

    " - } - }, - "clientIDType": { - "base": null, - "refs": { - "AddClientIDToOpenIDConnectProviderRequest$ClientID": "

    The client ID (also known as audience) to add to the IAM OpenID Connect provider resource.

    ", - "RemoveClientIDFromOpenIDConnectProviderRequest$ClientID": "

    The client ID (also known as audience) to remove from the IAM OIDC provider resource. For more information about client IDs, see CreateOpenIDConnectProvider.

    ", - "clientIDListType$member": null - } - }, - "credentialReportExpiredExceptionMessage": { - "base": null, - "refs": { - "CredentialReportExpiredException$message": null - } - }, - "credentialReportNotPresentExceptionMessage": { - "base": null, - "refs": { - "CredentialReportNotPresentException$message": null - } - }, - "credentialReportNotReadyExceptionMessage": { - "base": null, - "refs": { - "CredentialReportNotReadyException$message": null - } - }, - "dateType": { - "base": null, - "refs": { - "AccessKey$CreateDate": "

    The date when the access key was created.

    ", - "AccessKeyLastUsed$LastUsedDate": "

    The date and time, in ISO 8601 date-time format, when the access key was most recently used. This field is null when:

    • The user does not have an access key.

    • An access key exists but has never been used, at least not since IAM started tracking this information on April 22nd, 2015.

    • There is no sign-in data associated with the user

    ", - "AccessKeyMetadata$CreateDate": "

    The date when the access key was created.

    ", - "GetCredentialReportResponse$GeneratedTime": "

    The date and time when the credential report was created, in ISO 8601 date-time format.

    ", - "GetOpenIDConnectProviderResponse$CreateDate": "

    The date and time when the IAM OIDC provider resource object was created in the AWS account.

    ", - "GetSAMLProviderResponse$CreateDate": "

    The date and time when the SAML provider was created.

    ", - "GetSAMLProviderResponse$ValidUntil": "

    The expiration date and time for the SAML provider.

    ", - "Group$CreateDate": "

    The date and time, in ISO 8601 date-time format, when the group was created.

    ", - "GroupDetail$CreateDate": "

    The date and time, in ISO 8601 date-time format, when the group was created.

    ", - "InstanceProfile$CreateDate": "

    The date when the instance profile was created.

    ", - "LoginProfile$CreateDate": "

    The date when the password for the user was created.

    ", - "MFADevice$EnableDate": "

    The date when the MFA device was enabled for the user.

    ", - "ManagedPolicyDetail$CreateDate": "

    The date and time, in ISO 8601 date-time format, when the policy was created.

    ", - "ManagedPolicyDetail$UpdateDate": "

    The date and time, in ISO 8601 date-time format, when the policy was last updated.

    When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

    ", - "Policy$CreateDate": "

    The date and time, in ISO 8601 date-time format, when the policy was created.

    ", - "Policy$UpdateDate": "

    The date and time, in ISO 8601 date-time format, when the policy was last updated.

    When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

    ", - "PolicyVersion$CreateDate": "

    The date and time, in ISO 8601 date-time format, when the policy version was created.

    ", - "Role$CreateDate": "

    The date and time, in ISO 8601 date-time format, when the role was created.

    ", - "RoleDetail$CreateDate": "

    The date and time, in ISO 8601 date-time format, when the role was created.

    ", - "SAMLProviderListEntry$ValidUntil": "

    The expiration date and time for the SAML provider.

    ", - "SAMLProviderListEntry$CreateDate": "

    The date and time when the SAML provider was created.

    ", - "SSHPublicKey$UploadDate": "

    The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.

    ", - "SSHPublicKeyMetadata$UploadDate": "

    The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.

    ", - "ServerCertificateMetadata$UploadDate": "

    The date when the server certificate was uploaded.

    ", - "ServerCertificateMetadata$Expiration": "

    The date on which the certificate is set to expire.

    ", - "SigningCertificate$UploadDate": "

    The date when the signing certificate was uploaded.

    ", - "User$CreateDate": "

    The date and time, in ISO 8601 date-time format, when the user was created.

    ", - "User$PasswordLastUsed": "

    The date and time, in ISO 8601 date-time format, when the user's password was last used to sign in to an AWS website. For a list of AWS websites that capture a user's last sign-in time, see the Credential Reports topic in the Using IAM guide. If a password is used more than once in a five-minute span, only the first use is returned in this field. This field is null (not present) when:

    • The user does not have a password

    • The password exists but has never been used (at least not since IAM started tracking this information on October 20th, 2014

    • there is no sign-in data associated with the user

    This value is returned only in the GetUser and ListUsers actions.

    ", - "UserDetail$CreateDate": "

    The date and time, in ISO 8601 date-time format, when the user was created.

    ", - "VirtualMFADevice$EnableDate": "

    The date and time on which the virtual MFA device was enabled.

    " - } - }, - "deleteConflictMessage": { - "base": null, - "refs": { - "DeleteConflictException$message": null - } - }, - "duplicateCertificateMessage": { - "base": null, - "refs": { - "DuplicateCertificateException$message": null - } - }, - "duplicateSSHPublicKeyMessage": { - "base": null, - "refs": { - "DuplicateSSHPublicKeyException$message": null - } - }, - "encodingType": { - "base": null, - "refs": { - "GetSSHPublicKeyRequest$Encoding": "

    Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM.

    " - } - }, - "entityAlreadyExistsMessage": { - "base": null, - "refs": { - "EntityAlreadyExistsException$message": null - } - }, - "entityListType": { - "base": null, - "refs": { - "GetAccountAuthorizationDetailsRequest$Filter": "

    A list of entity types (user, group, role, local managed policy, or AWS managed policy) for filtering the results.

    The format for this parameter is a comma-separated (if more than one) list of strings. Each string value in the list must be one of the valid values listed below.

    " - } - }, - "entityTemporarilyUnmodifiableMessage": { - "base": null, - "refs": { - "EntityTemporarilyUnmodifiableException$message": null - } - }, - "existingUserNameType": { - "base": null, - "refs": { - "AddUserToGroupRequest$UserName": "

    The name of the user to add.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "CreateAccessKeyRequest$UserName": "

    The name of the IAM user that the new key will belong to.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeactivateMFADeviceRequest$UserName": "

    The name of the user whose MFA device you want to deactivate.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteAccessKeyRequest$UserName": "

    The name of the user whose access key pair you want to delete.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteSigningCertificateRequest$UserName": "

    The name of the user the signing certificate belongs to.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteUserPolicyRequest$UserName": "

    The name (friendly name, not ARN) identifying the user that the policy is embedded in.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteUserRequest$UserName": "

    The name of the user to delete.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "EnableMFADeviceRequest$UserName": "

    The name of the IAM user for whom you want to enable the MFA device.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetAccessKeyLastUsedResponse$UserName": "

    The name of the AWS IAM user that owns this access key.

    ", - "GetUserPolicyRequest$UserName": "

    The name of the user who the policy is associated with.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetUserPolicyResponse$UserName": "

    The user the policy is associated with.

    ", - "GetUserRequest$UserName": "

    The name of the user to get information about.

    This parameter is optional. If it is not included, it defaults to the user making the request. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListAccessKeysRequest$UserName": "

    The name of the user.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListGroupsForUserRequest$UserName": "

    The name of the user to list groups for.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListMFADevicesRequest$UserName": "

    The name of the user whose MFA devices you want to list.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListSigningCertificatesRequest$UserName": "

    The name of the IAM user whose signing certificates you want to examine.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListUserPoliciesRequest$UserName": "

    The name of the user to list policies for.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "PutUserPolicyRequest$UserName": "

    The name of the user to associate the policy with.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "RemoveUserFromGroupRequest$UserName": "

    The name of the user to remove.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ResyncMFADeviceRequest$UserName": "

    The name of the user whose MFA device you want to resynchronize.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UpdateAccessKeyRequest$UserName": "

    The name of the user whose key you want to update.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UpdateSigningCertificateRequest$UserName": "

    The name of the IAM user the signing certificate belongs to.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UpdateUserRequest$UserName": "

    Name of the user to update. If you're changing the name of the user, this is the original user name.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UploadSigningCertificateRequest$UserName": "

    The name of the user the signing certificate is for.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    " - } - }, - "groupDetailListType": { - "base": null, - "refs": { - "GetAccountAuthorizationDetailsResponse$GroupDetailList": "

    A list containing information about IAM groups.

    " - } - }, - "groupListType": { - "base": "

    Contains a list of IAM groups.

    This data type is used as a response element in the ListGroups action.

    ", - "refs": { - "ListGroupsForUserResponse$Groups": "

    A list of groups.

    ", - "ListGroupsResponse$Groups": "

    A list of groups.

    " - } - }, - "groupNameListType": { - "base": null, - "refs": { - "UserDetail$GroupList": "

    A list of IAM groups that the user is in.

    " - } - }, - "groupNameType": { - "base": null, - "refs": { - "AddUserToGroupRequest$GroupName": "

    The name of the group to update.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "AttachGroupPolicyRequest$GroupName": "

    The name (friendly name, not ARN) of the group to attach the policy to.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "CreateGroupRequest$GroupName": "

    The name of the group to create. Do not include the path in this value.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteGroupPolicyRequest$GroupName": "

    The name (friendly name, not ARN) identifying the group that the policy is embedded in.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteGroupRequest$GroupName": "

    The name of the IAM group to delete.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DetachGroupPolicyRequest$GroupName": "

    The name (friendly name, not ARN) of the IAM group to detach the policy from.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetGroupPolicyRequest$GroupName": "

    The name of the group the policy is associated with.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetGroupPolicyResponse$GroupName": "

    The group the policy is associated with.

    ", - "GetGroupRequest$GroupName": "

    The name of the group.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "Group$GroupName": "

    The friendly name that identifies the group.

    ", - "GroupDetail$GroupName": "

    The friendly name that identifies the group.

    ", - "ListAttachedGroupPoliciesRequest$GroupName": "

    The name (friendly name, not ARN) of the group to list attached policies for.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListGroupPoliciesRequest$GroupName": "

    The name of the group to list policies for.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "PolicyGroup$GroupName": "

    The name (friendly name, not ARN) identifying the group.

    ", - "PutGroupPolicyRequest$GroupName": "

    The name of the group to associate the policy with.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "RemoveUserFromGroupRequest$GroupName": "

    The name of the group to update.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UpdateGroupRequest$GroupName": "

    Name of the IAM group to update. If you're changing the name of the group, this is the original name.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UpdateGroupRequest$NewGroupName": "

    New name for the IAM group. Only include this if changing the group's name.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "groupNameListType$member": null - } - }, - "idType": { - "base": null, - "refs": { - "Group$GroupId": "

    The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.

    ", - "GroupDetail$GroupId": "

    The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.

    ", - "InstanceProfile$InstanceProfileId": "

    The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.

    ", - "ManagedPolicyDetail$PolicyId": "

    The stable and unique string identifying the policy.

    For more information about IDs, see IAM Identifiers in the Using IAM guide.

    ", - "Policy$PolicyId": "

    The stable and unique string identifying the policy.

    For more information about IDs, see IAM Identifiers in the Using IAM guide.

    ", - "PolicyGroup$GroupId": "

    The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the IAM User Guide.

    ", - "PolicyRole$RoleId": "

    The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the IAM User Guide.

    ", - "PolicyUser$UserId": "

    The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the IAM User Guide.

    ", - "Role$RoleId": "

    The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.

    ", - "RoleDetail$RoleId": "

    The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.

    ", - "ServerCertificateMetadata$ServerCertificateId": "

    The stable and unique string identifying the server certificate. For more information about IDs, see IAM Identifiers in the Using IAM guide.

    ", - "User$UserId": "

    The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.

    ", - "UserDetail$UserId": "

    The stable and unique string identifying the user. For more information about IDs, see IAM Identifiers in the Using IAM guide.

    " - } - }, - "instanceProfileListType": { - "base": "

    Contains a list of instance profiles.

    ", - "refs": { - "ListInstanceProfilesForRoleResponse$InstanceProfiles": "

    A list of instance profiles.

    ", - "ListInstanceProfilesResponse$InstanceProfiles": "

    A list of instance profiles.

    ", - "RoleDetail$InstanceProfileList": null - } - }, - "instanceProfileNameType": { - "base": null, - "refs": { - "AddRoleToInstanceProfileRequest$InstanceProfileName": "

    The name of the instance profile to update.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "CreateInstanceProfileRequest$InstanceProfileName": "

    The name of the instance profile to create.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteInstanceProfileRequest$InstanceProfileName": "

    The name of the instance profile to delete.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetInstanceProfileRequest$InstanceProfileName": "

    The name of the instance profile to get information about.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "InstanceProfile$InstanceProfileName": "

    The name identifying the instance profile.

    ", - "RemoveRoleFromInstanceProfileRequest$InstanceProfileName": "

    The name of the instance profile to update.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    " - } - }, - "invalidAuthenticationCodeMessage": { - "base": null, - "refs": { - "InvalidAuthenticationCodeException$message": null - } - }, - "invalidCertificateMessage": { - "base": null, - "refs": { - "InvalidCertificateException$message": null - } - }, - "invalidInputMessage": { - "base": null, - "refs": { - "InvalidInputException$message": null - } - }, - "invalidPublicKeyMessage": { - "base": null, - "refs": { - "InvalidPublicKeyException$message": null - } - }, - "invalidUserTypeMessage": { - "base": null, - "refs": { - "InvalidUserTypeException$message": null - } - }, - "keyPairMismatchMessage": { - "base": null, - "refs": { - "KeyPairMismatchException$message": null - } - }, - "limitExceededMessage": { - "base": null, - "refs": { - "LimitExceededException$message": null - } - }, - "malformedCertificateMessage": { - "base": null, - "refs": { - "MalformedCertificateException$message": null - } - }, - "malformedPolicyDocumentMessage": { - "base": null, - "refs": { - "MalformedPolicyDocumentException$message": null - } - }, - "markerType": { - "base": null, - "refs": { - "GetAccountAuthorizationDetailsRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "GetAccountAuthorizationDetailsResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "GetGroupRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "GetGroupResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListAccessKeysRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListAccessKeysResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListAccountAliasesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListAccountAliasesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListAttachedGroupPoliciesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListAttachedGroupPoliciesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListAttachedRolePoliciesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListAttachedRolePoliciesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListAttachedUserPoliciesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListAttachedUserPoliciesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListEntitiesForPolicyRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListEntitiesForPolicyResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListGroupPoliciesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListGroupPoliciesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListGroupsForUserRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListGroupsForUserResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListGroupsRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListGroupsResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListInstanceProfilesForRoleRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListInstanceProfilesForRoleResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListInstanceProfilesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListInstanceProfilesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListMFADevicesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListMFADevicesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListPoliciesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListPoliciesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListPolicyVersionsRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListPolicyVersionsResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListRolePoliciesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListRolePoliciesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListRolesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListRolesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListSSHPublicKeysRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListSSHPublicKeysResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListServerCertificatesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListServerCertificatesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListSigningCertificatesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListSigningCertificatesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListUserPoliciesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListUserPoliciesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListUsersRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListUsersResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListVirtualMFADevicesRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "ListVirtualMFADevicesResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "SimulateCustomPolicyRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    ", - "SimulatePolicyResponse$Marker": "

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "SimulatePrincipalPolicyRequest$Marker": "

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

    " - } - }, - "maxItemsType": { - "base": null, - "refs": { - "GetAccountAuthorizationDetailsRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "GetGroupRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListAccessKeysRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListAccountAliasesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListAttachedGroupPoliciesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListAttachedRolePoliciesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListAttachedUserPoliciesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListEntitiesForPolicyRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListGroupPoliciesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListGroupsForUserRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListGroupsRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListInstanceProfilesForRoleRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListInstanceProfilesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListMFADevicesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListPoliciesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListPolicyVersionsRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListRolePoliciesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListRolesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListSSHPublicKeysRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListServerCertificatesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListSigningCertificatesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListUserPoliciesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListUsersRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "ListVirtualMFADevicesRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "SimulateCustomPolicyRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    ", - "SimulatePrincipalPolicyRequest$MaxItems": "

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

    " - } - }, - "maxPasswordAgeType": { - "base": null, - "refs": { - "PasswordPolicy$MaxPasswordAge": "

    The number of days that an IAM user password is valid.

    ", - "UpdateAccountPasswordPolicyRequest$MaxPasswordAge": "

    The number of days that an IAM user password is valid. The default value of 0 means IAM user passwords never expire.

    Default value: 0

    " - } - }, - "mfaDeviceListType": { - "base": "

    Contains a list of MFA devices.

    This data type is used as a response element in the ListMFADevices and ListVirtualMFADevices actions.

    ", - "refs": { - "ListMFADevicesResponse$MFADevices": "

    A list of MFA devices.

    " - } - }, - "minimumPasswordLengthType": { - "base": null, - "refs": { - "PasswordPolicy$MinimumPasswordLength": "

    Minimum length to require for IAM user passwords.

    ", - "UpdateAccountPasswordPolicyRequest$MinimumPasswordLength": "

    The minimum number of characters allowed in an IAM user password.

    Default value: 6

    " - } - }, - "noSuchEntityMessage": { - "base": null, - "refs": { - "NoSuchEntityException$message": null - } - }, - "passwordPolicyViolationMessage": { - "base": null, - "refs": { - "PasswordPolicyViolationException$message": null - } - }, - "passwordReusePreventionType": { - "base": null, - "refs": { - "PasswordPolicy$PasswordReusePrevention": "

    Specifies the number of previous passwords that IAM users are prevented from reusing.

    ", - "UpdateAccountPasswordPolicyRequest$PasswordReusePrevention": "

    Specifies the number of previous passwords that IAM users are prevented from reusing. The default value of 0 means IAM users are not prevented from reusing previous passwords.

    Default value: 0

    " - } - }, - "passwordType": { - "base": null, - "refs": { - "ChangePasswordRequest$OldPassword": "

    The IAM user's current password.

    ", - "ChangePasswordRequest$NewPassword": "

    The new password. The new password must conform to the AWS account's password policy, if one exists.

    The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space (\\u0020) through the end of the ASCII character range (\\u00FF). You can also include the tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

    ", - "CreateLoginProfileRequest$Password": "

    The new password for the user.

    The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space (\\u0020) through the end of the ASCII character range (\\u00FF). You can also include the tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

    ", - "UpdateLoginProfileRequest$Password": "

    The new password for the specified IAM user.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D). However, the format can be further restricted by the account administrator by setting a password policy on the AWS account. For more information, see UpdateAccountPasswordPolicy.

    " - } - }, - "pathPrefixType": { - "base": null, - "refs": { - "ListGroupsRequest$PathPrefix": "

    The path prefix for filtering the results. For example, the prefix /division_abc/subdivision_xyz/ gets all groups whose path starts with /division_abc/subdivision_xyz/.

    This parameter is optional. If it is not included, it defaults to a slash (/), listing all groups. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "ListInstanceProfilesRequest$PathPrefix": "

    The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ gets all instance profiles whose path starts with /application_abc/component_xyz/.

    This parameter is optional. If it is not included, it defaults to a slash (/), listing all instance profiles. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "ListRolesRequest$PathPrefix": "

    The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ gets all roles whose path starts with /application_abc/component_xyz/.

    This parameter is optional. If it is not included, it defaults to a slash (/), listing all roles. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "ListServerCertificatesRequest$PathPrefix": "

    The path prefix for filtering the results. For example: /company/servercerts would get all server certificates for which the path starts with /company/servercerts.

    This parameter is optional. If it is not included, it defaults to a slash (/), listing all server certificates. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "ListUsersRequest$PathPrefix": "

    The path prefix for filtering the results. For example: /division_abc/subdivision_xyz/, which would get all user names whose path starts with /division_abc/subdivision_xyz/.

    This parameter is optional. If it is not included, it defaults to a slash (/), listing all user names. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    " - } - }, - "pathType": { - "base": null, - "refs": { - "CreateGroupRequest$Path": "

    The path to the group. For more information about paths, see IAM Identifiers in the IAM User Guide.

    This parameter is optional. If it is not included, it defaults to a slash (/).

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "CreateInstanceProfileRequest$Path": "

    The path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide.

    This parameter is optional. If it is not included, it defaults to a slash (/).

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "CreateRoleRequest$Path": "

    The path to the role. For more information about paths, see IAM Identifiers in the IAM User Guide.

    This parameter is optional. If it is not included, it defaults to a slash (/).

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "CreateUserRequest$Path": "

    The path for the user name. For more information about paths, see IAM Identifiers in the IAM User Guide.

    This parameter is optional. If it is not included, it defaults to a slash (/).

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "CreateVirtualMFADeviceRequest$Path": "

    The path for the virtual MFA device. For more information about paths, see IAM Identifiers in the IAM User Guide.

    This parameter is optional. If it is not included, it defaults to a slash (/).

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "Group$Path": "

    The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.

    ", - "GroupDetail$Path": "

    The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.

    ", - "InstanceProfile$Path": "

    The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.

    ", - "ListEntitiesForPolicyRequest$PathPrefix": "

    The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all entities.

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "Role$Path": "

    The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.

    ", - "RoleDetail$Path": "

    The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.

    ", - "ServerCertificateMetadata$Path": "

    The path to the server certificate. For more information about paths, see IAM Identifiers in the Using IAM guide.

    ", - "UpdateGroupRequest$NewPath": "

    New path for the IAM group. Only include this if changing the group's path.

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "UpdateServerCertificateRequest$NewPath": "

    The new path for the server certificate. Include this only if you are updating the server certificate's path.

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "UpdateUserRequest$NewPath": "

    New path for the IAM user. Include this parameter only if you're changing the user's path.

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "UploadServerCertificateRequest$Path": "

    The path for the server certificate. For more information about paths, see IAM Identifiers in the IAM User Guide.

    This parameter is optional. If it is not included, it defaults to a slash (/). The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    If you are uploading a server certificate specifically for use with Amazon CloudFront distributions, you must specify a path using the --path option. The path must begin with /cloudfront and must include a trailing slash (for example, /cloudfront/test/).

    ", - "User$Path": "

    The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.

    ", - "UserDetail$Path": "

    The path to the user. For more information about paths, see IAM Identifiers in the Using IAM guide.

    " - } - }, - "policyDescriptionType": { - "base": null, - "refs": { - "CreatePolicyRequest$Description": "

    A friendly description of the policy.

    Typically used to store information about the permissions defined in the policy. For example, \"Grants access to production DynamoDB tables.\"

    The policy description is immutable. After a value is assigned, it cannot be changed.

    ", - "ManagedPolicyDetail$Description": "

    A friendly description of the policy.

    ", - "Policy$Description": "

    A friendly description of the policy.

    This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

    " - } - }, - "policyDetailListType": { - "base": null, - "refs": { - "GroupDetail$GroupPolicyList": "

    A list of the inline policies embedded in the group.

    ", - "RoleDetail$RolePolicyList": "

    A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.

    ", - "UserDetail$UserPolicyList": "

    A list of the inline policies embedded in the user.

    " - } - }, - "policyDocumentType": { - "base": null, - "refs": { - "CreatePolicyRequest$PolicyDocument": "

    The JSON policy document that you want to use as the content for the new policy.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "CreatePolicyVersionRequest$PolicyDocument": "

    The JSON policy document that you want to use as the content for this new version of the policy.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "CreateRoleRequest$AssumeRolePolicyDocument": "

    The trust relationship policy document that grants an entity permission to assume the role.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "GetGroupPolicyResponse$PolicyDocument": "

    The policy document.

    ", - "GetRolePolicyResponse$PolicyDocument": "

    The policy document.

    ", - "GetUserPolicyResponse$PolicyDocument": "

    The policy document.

    ", - "PolicyDetail$PolicyDocument": "

    The policy document.

    ", - "PolicyVersion$Document": "

    The policy document.

    The policy document is returned in the response to the GetPolicyVersion and GetAccountAuthorizationDetails operations. It is not returned in the response to the CreatePolicyVersion or ListPolicyVersions operations.

    ", - "PutGroupPolicyRequest$PolicyDocument": "

    The policy document.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "PutRolePolicyRequest$PolicyDocument": "

    The policy document.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "PutUserPolicyRequest$PolicyDocument": "

    The policy document.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "Role$AssumeRolePolicyDocument": "

    The policy that grants an entity permission to assume the role.

    ", - "RoleDetail$AssumeRolePolicyDocument": "

    The trust policy that grants permission to assume the role.

    ", - "SimulateCustomPolicyRequest$ResourcePolicy": "

    A resource-based policy to include in the simulation provided as a string. Each resource in the simulation is treated as if it had this policy attached. You can include only one resource-based policy in a simulation.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "SimulatePrincipalPolicyRequest$ResourcePolicy": "

    A resource-based policy to include in the simulation provided as a string. Each resource in the simulation is treated as if it had this policy attached. You can include only one resource-based policy in a simulation.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    ", - "SimulationPolicyListType$member": null, - "UpdateAssumeRolePolicyRequest$PolicyDocument": "

    The policy that grants an entity permission to assume the role.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    " - } - }, - "policyDocumentVersionListType": { - "base": null, - "refs": { - "ListPolicyVersionsResponse$Versions": "

    A list of policy versions.

    For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

    ", - "ManagedPolicyDetail$PolicyVersionList": "

    A list containing information about the versions of the policy.

    " - } - }, - "policyEvaluationErrorMessage": { - "base": null, - "refs": { - "PolicyEvaluationException$message": null - } - }, - "policyListType": { - "base": null, - "refs": { - "ListPoliciesResponse$Policies": "

    A list of policies.

    " - } - }, - "policyNameListType": { - "base": "

    Contains a list of policy names.

    This data type is used as a response element in the ListPolicies action.

    ", - "refs": { - "ListGroupPoliciesResponse$PolicyNames": "

    A list of policy names.

    ", - "ListRolePoliciesResponse$PolicyNames": "

    A list of policy names.

    ", - "ListUserPoliciesResponse$PolicyNames": "

    A list of policy names.

    " - } - }, - "policyNameType": { - "base": null, - "refs": { - "AttachedPolicy$PolicyName": "

    The friendly name of the attached policy.

    ", - "CreatePolicyRequest$PolicyName": "

    The friendly name of the policy.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteGroupPolicyRequest$PolicyName": "

    The name identifying the policy document to delete.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteRolePolicyRequest$PolicyName": "

    The name of the inline policy to delete from the specified IAM role.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteUserPolicyRequest$PolicyName": "

    The name identifying the policy document to delete.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetGroupPolicyRequest$PolicyName": "

    The name of the policy document to get.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetGroupPolicyResponse$PolicyName": "

    The name of the policy.

    ", - "GetRolePolicyRequest$PolicyName": "

    The name of the policy document to get.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetRolePolicyResponse$PolicyName": "

    The name of the policy.

    ", - "GetUserPolicyRequest$PolicyName": "

    The name of the policy document to get.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetUserPolicyResponse$PolicyName": "

    The name of the policy.

    ", - "ManagedPolicyDetail$PolicyName": "

    The friendly name (not ARN) identifying the policy.

    ", - "Policy$PolicyName": "

    The friendly name (not ARN) identifying the policy.

    ", - "PolicyDetail$PolicyName": "

    The name of the policy.

    ", - "PutGroupPolicyRequest$PolicyName": "

    The name of the policy document.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "PutRolePolicyRequest$PolicyName": "

    The name of the policy document.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "PutUserPolicyRequest$PolicyName": "

    The name of the policy document.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "policyNameListType$member": null - } - }, - "policyPathType": { - "base": null, - "refs": { - "CreatePolicyRequest$Path": "

    The path for the policy.

    For more information about paths, see IAM Identifiers in the IAM User Guide.

    This parameter is optional. If it is not included, it defaults to a slash (/).

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "ListAttachedGroupPoliciesRequest$PathPrefix": "

    The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "ListAttachedRolePoliciesRequest$PathPrefix": "

    The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "ListAttachedUserPoliciesRequest$PathPrefix": "

    The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies.

    The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "ListPoliciesRequest$PathPrefix": "

    The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies. The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\\u0021) thru the DEL character (\\u007F), including most punctuation characters, digits, and upper and lowercased letters.

    ", - "ManagedPolicyDetail$Path": "

    The path to the policy.

    For more information about paths, see IAM Identifiers in the Using IAM guide.

    ", - "Policy$Path": "

    The path to the policy.

    For more information about paths, see IAM Identifiers in the Using IAM guide.

    " - } - }, - "policyScopeType": { - "base": null, - "refs": { - "ListPoliciesRequest$Scope": "

    The scope to use for filtering the results.

    To list only AWS managed policies, set Scope to AWS. To list only the customer managed policies in your AWS account, set Scope to Local.

    This parameter is optional. If it is not included, or if it is set to All, all policies are returned.

    " - } - }, - "policyVersionIdType": { - "base": null, - "refs": { - "DeletePolicyVersionRequest$VersionId": "

    The policy version to delete.

    The regex pattern for this parameter is a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.

    For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

    ", - "GetPolicyVersionRequest$VersionId": "

    Identifies the policy version to retrieve.

    The regex pattern for this parameter is a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.

    ", - "ManagedPolicyDetail$DefaultVersionId": "

    The identifier for the version of the policy that is set as the default (operative) version.

    For more information about policy versions, see Versioning for Managed Policies in the Using IAM guide.

    ", - "Policy$DefaultVersionId": "

    The identifier for the version of the policy that is set as the default version.

    ", - "PolicyVersion$VersionId": "

    The identifier for the policy version.

    Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1.

    ", - "SetDefaultPolicyVersionRequest$VersionId": "

    The version of the policy to set as the default (operative) version.

    For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

    " - } - }, - "privateKeyType": { - "base": null, - "refs": { - "UploadServerCertificateRequest$PrivateKey": "

    The contents of the private key in PEM-encoded format.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    " - } - }, - "publicKeyFingerprintType": { - "base": null, - "refs": { - "SSHPublicKey$Fingerprint": "

    The MD5 message digest of the SSH public key.

    " - } - }, - "publicKeyIdType": { - "base": null, - "refs": { - "DeleteSSHPublicKeyRequest$SSHPublicKeyId": "

    The unique identifier for the SSH public key.

    The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

    ", - "GetSSHPublicKeyRequest$SSHPublicKeyId": "

    The unique identifier for the SSH public key.

    The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

    ", - "SSHPublicKey$SSHPublicKeyId": "

    The unique identifier for the SSH public key.

    ", - "SSHPublicKeyMetadata$SSHPublicKeyId": "

    The unique identifier for the SSH public key.

    ", - "UpdateSSHPublicKeyRequest$SSHPublicKeyId": "

    The unique identifier for the SSH public key.

    The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

    " - } - }, - "publicKeyMaterialType": { - "base": null, - "refs": { - "SSHPublicKey$SSHPublicKeyBody": "

    The SSH public key.

    ", - "UploadSSHPublicKeyRequest$SSHPublicKeyBody": "

    The SSH public key. The public key must be encoded in ssh-rsa format or PEM format.

    The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (\\u0020) through end of the ASCII character range (\\u00FF). It also includes the special characters tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D).

    " - } - }, - "roleDetailListType": { - "base": null, - "refs": { - "GetAccountAuthorizationDetailsResponse$RoleDetailList": "

    A list containing information about IAM roles.

    " - } - }, - "roleListType": { - "base": "

    Contains a list of IAM roles.

    This data type is used as a response element in the ListRoles action.

    ", - "refs": { - "InstanceProfile$Roles": "

    The role associated with the instance profile.

    ", - "ListRolesResponse$Roles": "

    A list of roles.

    " - } - }, - "roleNameType": { - "base": null, - "refs": { - "AddRoleToInstanceProfileRequest$RoleName": "

    The name of the role to add.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "AttachRolePolicyRequest$RoleName": "

    The name (friendly name, not ARN) of the role to attach the policy to.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "CreateRoleRequest$RoleName": "

    The name of the role to create.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteRolePolicyRequest$RoleName": "

    The name (friendly name, not ARN) identifying the role that the policy is embedded in.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteRoleRequest$RoleName": "

    The name of the role to delete.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DetachRolePolicyRequest$RoleName": "

    The name (friendly name, not ARN) of the IAM role to detach the policy from.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetRolePolicyRequest$RoleName": "

    The name of the role associated with the policy.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetRolePolicyResponse$RoleName": "

    The role the policy is associated with.

    ", - "GetRoleRequest$RoleName": "

    The name of the IAM role to get information about.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListAttachedRolePoliciesRequest$RoleName": "

    The name (friendly name, not ARN) of the role to list attached policies for.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListInstanceProfilesForRoleRequest$RoleName": "

    The name of the role to list instance profiles for.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListRolePoliciesRequest$RoleName": "

    The name of the role to list policies for.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "PolicyRole$RoleName": "

    The name (friendly name, not ARN) identifying the role.

    ", - "PutRolePolicyRequest$RoleName": "

    The name of the role to associate the policy with.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "RemoveRoleFromInstanceProfileRequest$RoleName": "

    The name of the role to remove.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "Role$RoleName": "

    The friendly name that identifies the role.

    ", - "RoleDetail$RoleName": "

    The friendly name that identifies the role.

    ", - "UpdateAssumeRolePolicyRequest$RoleName": "

    The name of the role to update with the new policy.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    " - } - }, - "serialNumberType": { - "base": null, - "refs": { - "DeactivateMFADeviceRequest$SerialNumber": "

    The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =/:,.@-

    ", - "DeleteVirtualMFADeviceRequest$SerialNumber": "

    The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the same as the ARN.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =/:,.@-

    ", - "EnableMFADeviceRequest$SerialNumber": "

    The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =/:,.@-

    ", - "MFADevice$SerialNumber": "

    The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

    ", - "ResyncMFADeviceRequest$SerialNumber": "

    Serial number that uniquely identifies the MFA device.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "VirtualMFADevice$SerialNumber": "

    The serial number associated with VirtualMFADevice.

    " - } - }, - "serverCertificateMetadataListType": { - "base": null, - "refs": { - "ListServerCertificatesResponse$ServerCertificateMetadataList": "

    A list of server certificates.

    " - } - }, - "serverCertificateNameType": { - "base": null, - "refs": { - "DeleteServerCertificateRequest$ServerCertificateName": "

    The name of the server certificate you want to delete.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetServerCertificateRequest$ServerCertificateName": "

    The name of the server certificate you want to retrieve information about.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ServerCertificateMetadata$ServerCertificateName": "

    The name that identifies the server certificate.

    ", - "UpdateServerCertificateRequest$ServerCertificateName": "

    The name of the server certificate that you want to update.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UpdateServerCertificateRequest$NewServerCertificateName": "

    The new name for the server certificate. Include this only if you are updating the server certificate's name. The name of the certificate cannot contain any spaces.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UploadServerCertificateRequest$ServerCertificateName": "

    The name for the server certificate. Do not include the path in this value. The name of the certificate cannot contain any spaces.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    " - } - }, - "serviceFailureExceptionMessage": { - "base": null, - "refs": { - "ServiceFailureException$message": null - } - }, - "statusType": { - "base": null, - "refs": { - "AccessKey$Status": "

    The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.

    ", - "AccessKeyMetadata$Status": "

    The status of the access key. Active means the key is valid for API calls; Inactive means it is not.

    ", - "SSHPublicKey$Status": "

    The status of the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used.

    ", - "SSHPublicKeyMetadata$Status": "

    The status of the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used.

    ", - "SigningCertificate$Status": "

    The status of the signing certificate. Active means the key is valid for API calls, while Inactive means it is not.

    ", - "UpdateAccessKeyRequest$Status": "

    The status you want to assign to the secret access key. Active means the key can be used for API calls to AWS, while Inactive means the key cannot be used.

    ", - "UpdateSSHPublicKeyRequest$Status": "

    The status to assign to the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means the key cannot be used.

    ", - "UpdateSigningCertificateRequest$Status": "

    The status you want to assign to the certificate. Active means the certificate can be used for API calls to AWS, while Inactive means the certificate cannot be used.

    " - } - }, - "stringType": { - "base": null, - "refs": { - "AccessKeyLastUsed$ServiceName": "

    The name of the AWS service with which this access key was most recently used. This field is null when:

    • The user does not have an access key.

    • An access key exists but has never been used, at least not since IAM started tracking this information on April 22nd, 2015.

    • There is no sign-in data associated with the user

    ", - "AccessKeyLastUsed$Region": "

    The AWS region where this access key was most recently used. This field is null when:

    • The user does not have an access key.

    • An access key exists but has never been used, at least not since IAM started tracking this information on April 22nd, 2015.

    • There is no sign-in data associated with the user

    For more information about AWS regions, see Regions and Endpoints in the Amazon Web Services General Reference.

    " - } - }, - "summaryKeyType": { - "base": null, - "refs": { - "summaryMapType$key": null - } - }, - "summaryMapType": { - "base": null, - "refs": { - "GetAccountSummaryResponse$SummaryMap": "

    A set of key value pairs containing information about IAM entity usage and IAM quotas.

    " - } - }, - "summaryValueType": { - "base": null, - "refs": { - "summaryMapType$value": null - } - }, - "thumbprintListType": { - "base": "

    Contains a list of thumbprints of identity provider server certificates.

    ", - "refs": { - "CreateOpenIDConnectProviderRequest$ThumbprintList": "

    A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s). Typically this list includes only one entry. However, IAM lets you have up to five thumbprints for an OIDC provider. This lets you maintain multiple thumbprints if the identity provider is rotating certificates.

    The server certificate thumbprint is the hex-encoded SHA-1 hash value of the X.509 certificate used by the domain where the OpenID Connect provider makes its keys available. It is always a 40-character string.

    You must provide at least one thumbprint when creating an IAM OIDC provider. For example, if the OIDC provider is server.example.com and the provider stores its keys at \"https://keys.server.example.com/openid-connect\", the thumbprint string would be the hex-encoded SHA-1 hash value of the certificate used by https://keys.server.example.com.

    For more information about obtaining the OIDC provider's thumbprint, see Obtaining the Thumbprint for an OpenID Connect Provider in the IAM User Guide.

    ", - "GetOpenIDConnectProviderResponse$ThumbprintList": "

    A list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.

    ", - "UpdateOpenIDConnectProviderThumbprintRequest$ThumbprintList": "

    A list of certificate thumbprints that are associated with the specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider.

    " - } - }, - "thumbprintType": { - "base": "

    Contains a thumbprint for an identity provider's server certificate.

    The identity provider's server certificate thumbprint is the hex-encoded SHA-1 hash value of the self-signed X.509 certificate used by the domain where the OpenID Connect provider makes its keys available. It is always a 40-character string.

    ", - "refs": { - "thumbprintListType$member": null - } - }, - "unrecognizedPublicKeyEncodingMessage": { - "base": null, - "refs": { - "UnrecognizedPublicKeyEncodingException$message": null - } - }, - "userDetailListType": { - "base": null, - "refs": { - "GetAccountAuthorizationDetailsResponse$UserDetailList": "

    A list containing information about IAM users.

    " - } - }, - "userListType": { - "base": "

    Contains a list of users.

    This data type is used as a response element in the GetGroup and ListUsers actions.

    ", - "refs": { - "GetGroupResponse$Users": "

    A list of users in the group.

    ", - "ListUsersResponse$Users": "

    A list of users.

    " - } - }, - "userNameType": { - "base": null, - "refs": { - "AccessKey$UserName": "

    The name of the IAM user that the access key is associated with.

    ", - "AccessKeyMetadata$UserName": "

    The name of the IAM user that the key is associated with.

    ", - "AttachUserPolicyRequest$UserName": "

    The name (friendly name, not ARN) of the IAM user to attach the policy to.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "CreateLoginProfileRequest$UserName": "

    The name of the IAM user to create a password for. The user must already exist.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "CreateUserRequest$UserName": "

    The name of the user to create.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteLoginProfileRequest$UserName": "

    The name of the user whose password you want to delete.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DeleteSSHPublicKeyRequest$UserName": "

    The name of the IAM user associated with the SSH public key.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "DetachUserPolicyRequest$UserName": "

    The name (friendly name, not ARN) of the IAM user to detach the policy from.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetLoginProfileRequest$UserName": "

    The name of the user whose login profile you want to retrieve.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetSSHPublicKeyRequest$UserName": "

    The name of the IAM user associated with the SSH public key.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListAttachedUserPoliciesRequest$UserName": "

    The name (friendly name, not ARN) of the user to list attached policies for.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "ListSSHPublicKeysRequest$UserName": "

    The name of the IAM user to list SSH public keys for. If none is specified, the UserName field is determined implicitly based on the AWS access key used to sign the request.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "LoginProfile$UserName": "

    The name of the user, which can be used for signing in to the AWS Management Console.

    ", - "MFADevice$UserName": "

    The user with whom the MFA device is associated.

    ", - "PolicyUser$UserName": "

    The name (friendly name, not ARN) identifying the user.

    ", - "SSHPublicKey$UserName": "

    The name of the IAM user associated with the SSH public key.

    ", - "SSHPublicKeyMetadata$UserName": "

    The name of the IAM user associated with the SSH public key.

    ", - "SigningCertificate$UserName": "

    The name of the user the signing certificate is associated with.

    ", - "UpdateLoginProfileRequest$UserName": "

    The name of the user whose password you want to update.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UpdateSSHPublicKeyRequest$UserName": "

    The name of the IAM user associated with the SSH public key.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UpdateUserRequest$NewUserName": "

    New name for the user. Include this parameter only if you're changing the user's name.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "UploadSSHPublicKeyRequest$UserName": "

    The name of the IAM user to associate the SSH public key with.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "User$UserName": "

    The friendly name identifying the user.

    ", - "UserDetail$UserName": "

    The friendly name identifying the user.

    " - } - }, - "virtualMFADeviceListType": { - "base": null, - "refs": { - "ListVirtualMFADevicesResponse$VirtualMFADevices": "

    The list of virtual MFA devices in the current account that match the AssignmentStatus value that was passed in the request.

    " - } - }, - "virtualMFADeviceName": { - "base": null, - "refs": { - "CreateVirtualMFADeviceRequest$VirtualMFADeviceName": "

    The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.

    The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/api-2.json deleted file mode 100644 index d1a6d91b2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/api-2.json +++ /dev/null @@ -1,1426 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-08-18", - "endpointPrefix":"inspector", - "jsonVersion":"1.1", - "protocol":"json", - "serviceFullName":"Amazon Inspector", - "signatureVersion":"v4", - "targetPrefix":"InspectorService" - }, - "operations":{ - "AddAttributesToFindings":{ - "name":"AddAttributesToFindings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddAttributesToFindingsRequest"}, - "output":{"shape":"AddAttributesToFindingsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "AttachAssessmentAndRulesPackage":{ - "name":"AttachAssessmentAndRulesPackage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AttachAssessmentAndRulesPackageRequest"}, - "output":{"shape":"AttachAssessmentAndRulesPackageResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "CreateApplication":{ - "name":"CreateApplication", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateApplicationRequest"}, - "output":{"shape":"CreateApplicationResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "CreateAssessment":{ - "name":"CreateAssessment", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateAssessmentRequest"}, - "output":{"shape":"CreateAssessmentResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "CreateResourceGroup":{ - "name":"CreateResourceGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateResourceGroupRequest"}, - "output":{"shape":"CreateResourceGroupResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"} - ] - }, - "DeleteApplication":{ - "name":"DeleteApplication", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteApplicationRequest"}, - "output":{"shape":"DeleteApplicationResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"OperationInProgressException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DeleteAssessment":{ - "name":"DeleteAssessment", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteAssessmentRequest"}, - "output":{"shape":"DeleteAssessmentResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"OperationInProgressException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DeleteRun":{ - "name":"DeleteRun", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRunRequest"}, - "output":{"shape":"DeleteRunResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DescribeApplication":{ - "name":"DescribeApplication", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeApplicationRequest"}, - "output":{"shape":"DescribeApplicationResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DescribeAssessment":{ - "name":"DescribeAssessment", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAssessmentRequest"}, - "output":{"shape":"DescribeAssessmentResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DescribeCrossAccountAccessRole":{ - "name":"DescribeCrossAccountAccessRole", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "output":{"shape":"DescribeCrossAccountAccessRoleResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"AccessDeniedException"} - ] - }, - "DescribeFinding":{ - "name":"DescribeFinding", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeFindingRequest"}, - "output":{"shape":"DescribeFindingResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DescribeResourceGroup":{ - "name":"DescribeResourceGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeResourceGroupRequest"}, - "output":{"shape":"DescribeResourceGroupResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DescribeRulesPackage":{ - "name":"DescribeRulesPackage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeRulesPackageRequest"}, - "output":{"shape":"DescribeRulesPackageResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DescribeRun":{ - "name":"DescribeRun", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeRunRequest"}, - "output":{"shape":"DescribeRunResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DetachAssessmentAndRulesPackage":{ - "name":"DetachAssessmentAndRulesPackage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DetachAssessmentAndRulesPackageRequest"}, - "output":{"shape":"DetachAssessmentAndRulesPackageResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "GetAssessmentTelemetry":{ - "name":"GetAssessmentTelemetry", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetAssessmentTelemetryRequest"}, - "output":{"shape":"GetAssessmentTelemetryResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListApplications":{ - "name":"ListApplications", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListApplicationsRequest"}, - "output":{"shape":"ListApplicationsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"} - ] - }, - "ListAssessmentAgents":{ - "name":"ListAssessmentAgents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAssessmentAgentsRequest"}, - "output":{"shape":"ListAssessmentAgentsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListAssessments":{ - "name":"ListAssessments", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAssessmentsRequest"}, - "output":{"shape":"ListAssessmentsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListAttachedAssessments":{ - "name":"ListAttachedAssessments", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAttachedAssessmentsRequest"}, - "output":{"shape":"ListAttachedAssessmentsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListAttachedRulesPackages":{ - "name":"ListAttachedRulesPackages", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAttachedRulesPackagesRequest"}, - "output":{"shape":"ListAttachedRulesPackagesResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListFindings":{ - "name":"ListFindings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListFindingsRequest"}, - "output":{"shape":"ListFindingsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListRulesPackages":{ - "name":"ListRulesPackages", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRulesPackagesRequest"}, - "output":{"shape":"ListRulesPackagesResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"} - ] - }, - "ListRuns":{ - "name":"ListRuns", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRunsRequest"}, - "output":{"shape":"ListRunsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceRequest"}, - "output":{"shape":"ListTagsForResourceResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "LocalizeText":{ - "name":"LocalizeText", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"LocalizeTextRequest"}, - "output":{"shape":"LocalizeTextResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "PreviewAgentsForResourceGroup":{ - "name":"PreviewAgentsForResourceGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PreviewAgentsForResourceGroupRequest"}, - "output":{"shape":"PreviewAgentsForResourceGroupResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidCrossAccountRoleException"} - ] - }, - "RegisterCrossAccountAccessRole":{ - "name":"RegisterCrossAccountAccessRole", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RegisterCrossAccountAccessRoleRequest"}, - "output":{"shape":"RegisterCrossAccountAccessRoleResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"InvalidCrossAccountRoleException"} - ] - }, - "RemoveAttributesFromFindings":{ - "name":"RemoveAttributesFromFindings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveAttributesFromFindingsRequest"}, - "output":{"shape":"RemoveAttributesFromFindingsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "RunAssessment":{ - "name":"RunAssessment", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RunAssessmentRequest"}, - "output":{"shape":"RunAssessmentResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "SetTagsForResource":{ - "name":"SetTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetTagsForResourceRequest"}, - "output":{"shape":"SetTagsForResourceResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "StartDataCollection":{ - "name":"StartDataCollection", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StartDataCollectionRequest"}, - "output":{"shape":"StartDataCollectionResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidCrossAccountRoleException"} - ] - }, - "StopDataCollection":{ - "name":"StopDataCollection", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StopDataCollectionRequest"}, - "output":{"shape":"StopDataCollectionResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "UpdateApplication":{ - "name":"UpdateApplication", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateApplicationRequest"}, - "output":{"shape":"UpdateApplicationResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "UpdateAssessment":{ - "name":"UpdateAssessment", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateAssessmentRequest"}, - "output":{"shape":"UpdateAssessmentResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - } - }, - "shapes":{ - "AccessDeniedException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "AddAttributesToFindingsRequest":{ - "type":"structure", - "required":[ - "findingArns", - "attributes" - ], - "members":{ - "findingArns":{"shape":"ArnList"}, - "attributes":{"shape":"AttributeList"} - } - }, - "AddAttributesToFindingsResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "Agent":{ - "type":"structure", - "members":{ - "agentId":{"shape":"AgentId"}, - "assessmentArn":{"shape":"Arn"}, - "agentHealth":{"shape":"AgentHealth"}, - "agentHealthCode":{"shape":"AgentHealthCode"}, - "agentHealthDetails":{"shape":"AgentHealthDetails"}, - "autoScalingGroup":{"shape":"AutoScalingGroup"}, - "accountId":{"shape":"AwsAccount"}, - "telemetry":{"shape":"TelemetryList"} - } - }, - "AgentHealth":{"type":"string"}, - "AgentHealthCode":{"type":"string"}, - "AgentHealthDetails":{"type":"string"}, - "AgentHealthList":{ - "type":"list", - "member":{"shape":"AgentHealth"} - }, - "AgentId":{"type":"string"}, - "AgentList":{ - "type":"list", - "member":{"shape":"Agent"} - }, - "AgentPreview":{ - "type":"structure", - "members":{ - "agentId":{"shape":"AgentId"}, - "autoScalingGroup":{"shape":"AutoScalingGroup"} - } - }, - "AgentPreviewList":{ - "type":"list", - "member":{"shape":"AgentPreview"} - }, - "AgentsFilter":{ - "type":"structure", - "members":{ - "agentHealthList":{"shape":"AgentHealthList"} - } - }, - "Application":{ - "type":"structure", - "members":{ - "applicationArn":{"shape":"Arn"}, - "applicationName":{"shape":"Name"}, - "resourceGroupArn":{"shape":"Arn"} - } - }, - "ApplicationsFilter":{ - "type":"structure", - "members":{ - "applicationNamePatterns":{"shape":"NamePatternList"} - } - }, - "Arn":{"type":"string"}, - "ArnList":{ - "type":"list", - "member":{"shape":"Arn"} - }, - "Assessment":{ - "type":"structure", - "members":{ - "assessmentArn":{"shape":"Arn"}, - "assessmentName":{"shape":"Name"}, - "applicationArn":{"shape":"Arn"}, - "assessmentState":{"shape":"AssessmentState"}, - "failureMessage":{"shape":"FailureMessage"}, - "dataCollected":{"shape":"Bool"}, - "startTime":{"shape":"Timestamp"}, - "endTime":{"shape":"Timestamp"}, - "durationInSeconds":{"shape":"Duration"}, - "userAttributesForFindings":{"shape":"AttributeList"} - } - }, - "AssessmentState":{"type":"string"}, - "AssessmentStateList":{ - "type":"list", - "member":{"shape":"AssessmentState"} - }, - "AssessmentsFilter":{ - "type":"structure", - "members":{ - "assessmentNamePatterns":{"shape":"NamePatternList"}, - "assessmentStates":{"shape":"AssessmentStateList"}, - "dataCollected":{"shape":"Bool"}, - "startTimeRange":{"shape":"TimestampRange"}, - "endTimeRange":{"shape":"TimestampRange"}, - "durationRange":{"shape":"DurationRange"} - } - }, - "AttachAssessmentAndRulesPackageRequest":{ - "type":"structure", - "required":[ - "assessmentArn", - "rulesPackageArn" - ], - "members":{ - "assessmentArn":{"shape":"Arn"}, - "rulesPackageArn":{"shape":"Arn"} - } - }, - "AttachAssessmentAndRulesPackageResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "Attribute":{ - "type":"structure", - "members":{ - "key":{"shape":"AttributeKey"}, - "value":{"shape":"AttributeValue"} - } - }, - "AttributeKey":{"type":"string"}, - "AttributeKeyList":{ - "type":"list", - "member":{"shape":"AttributeKey"} - }, - "AttributeList":{ - "type":"list", - "member":{"shape":"Attribute"} - }, - "AttributeValue":{"type":"string"}, - "AutoScalingGroup":{"type":"string"}, - "AwsAccount":{"type":"string"}, - "Bool":{"type":"boolean"}, - "CreateApplicationRequest":{ - "type":"structure", - "required":[ - "applicationName", - "resourceGroupArn" - ], - "members":{ - "applicationName":{"shape":"Name"}, - "resourceGroupArn":{"shape":"Arn"} - } - }, - "CreateApplicationResponse":{ - "type":"structure", - "members":{ - "applicationArn":{"shape":"Arn"} - } - }, - "CreateAssessmentRequest":{ - "type":"structure", - "required":[ - "applicationArn", - "assessmentName", - "durationInSeconds" - ], - "members":{ - "applicationArn":{"shape":"Arn"}, - "assessmentName":{"shape":"Name"}, - "durationInSeconds":{"shape":"Duration"}, - "userAttributesForFindings":{"shape":"AttributeList"} - } - }, - "CreateAssessmentResponse":{ - "type":"structure", - "members":{ - "assessmentArn":{"shape":"Arn"} - } - }, - "CreateResourceGroupRequest":{ - "type":"structure", - "required":["resourceGroupTags"], - "members":{ - "resourceGroupTags":{"shape":"ResourceGroupTags"} - } - }, - "CreateResourceGroupResponse":{ - "type":"structure", - "members":{ - "resourceGroupArn":{"shape":"Arn"} - } - }, - "DeleteApplicationRequest":{ - "type":"structure", - "required":["applicationArn"], - "members":{ - "applicationArn":{"shape":"Arn"} - } - }, - "DeleteApplicationResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "DeleteAssessmentRequest":{ - "type":"structure", - "required":["assessmentArn"], - "members":{ - "assessmentArn":{"shape":"Arn"} - } - }, - "DeleteAssessmentResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "DeleteRunRequest":{ - "type":"structure", - "required":["runArn"], - "members":{ - "runArn":{"shape":"Arn"} - } - }, - "DeleteRunResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "DescribeApplicationRequest":{ - "type":"structure", - "required":["applicationArn"], - "members":{ - "applicationArn":{"shape":"Arn"} - } - }, - "DescribeApplicationResponse":{ - "type":"structure", - "members":{ - "application":{"shape":"Application"} - } - }, - "DescribeAssessmentRequest":{ - "type":"structure", - "required":["assessmentArn"], - "members":{ - "assessmentArn":{"shape":"Arn"} - } - }, - "DescribeAssessmentResponse":{ - "type":"structure", - "members":{ - "assessment":{"shape":"Assessment"} - } - }, - "DescribeCrossAccountAccessRoleResponse":{ - "type":"structure", - "members":{ - "roleArn":{"shape":"Arn"}, - "valid":{"shape":"Bool"} - } - }, - "DescribeFindingRequest":{ - "type":"structure", - "required":["findingArn"], - "members":{ - "findingArn":{"shape":"Arn"} - } - }, - "DescribeFindingResponse":{ - "type":"structure", - "members":{ - "finding":{"shape":"Finding"} - } - }, - "DescribeResourceGroupRequest":{ - "type":"structure", - "required":["resourceGroupArn"], - "members":{ - "resourceGroupArn":{"shape":"Arn"} - } - }, - "DescribeResourceGroupResponse":{ - "type":"structure", - "members":{ - "resourceGroup":{"shape":"ResourceGroup"} - } - }, - "DescribeRulesPackageRequest":{ - "type":"structure", - "required":["rulesPackageArn"], - "members":{ - "rulesPackageArn":{"shape":"Arn"} - } - }, - "DescribeRulesPackageResponse":{ - "type":"structure", - "members":{ - "rulesPackage":{"shape":"RulesPackage"} - } - }, - "DescribeRunRequest":{ - "type":"structure", - "required":["runArn"], - "members":{ - "runArn":{"shape":"Arn"} - } - }, - "DescribeRunResponse":{ - "type":"structure", - "members":{ - "run":{"shape":"Run"} - } - }, - "DetachAssessmentAndRulesPackageRequest":{ - "type":"structure", - "required":[ - "assessmentArn", - "rulesPackageArn" - ], - "members":{ - "assessmentArn":{"shape":"Arn"}, - "rulesPackageArn":{"shape":"Arn"} - } - }, - "DetachAssessmentAndRulesPackageResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "Duration":{"type":"integer"}, - "DurationRange":{ - "type":"structure", - "members":{ - "minimum":{"shape":"Duration"}, - "maximum":{"shape":"Duration"} - } - }, - "FailureMessage":{"type":"string"}, - "Finding":{ - "type":"structure", - "members":{ - "findingArn":{"shape":"Arn"}, - "runArn":{"shape":"Arn"}, - "rulesPackageArn":{"shape":"Arn"}, - "ruleName":{"shape":"Name"}, - "agentId":{"shape":"AgentId"}, - "autoScalingGroup":{"shape":"AutoScalingGroup"}, - "severity":{"shape":"Severity"}, - "finding":{"shape":"LocalizedText"}, - "description":{"shape":"LocalizedText"}, - "recommendation":{"shape":"LocalizedText"}, - "attributes":{"shape":"AttributeList"}, - "userAttributes":{"shape":"AttributeList"} - } - }, - "FindingsFilter":{ - "type":"structure", - "members":{ - "rulesPackageArns":{"shape":"ArnList"}, - "ruleNames":{"shape":"NameList"}, - "severities":{"shape":"SeverityList"}, - "attributes":{"shape":"AttributeList"}, - "userAttributes":{"shape":"AttributeList"} - } - }, - "GetAssessmentTelemetryRequest":{ - "type":"structure", - "required":["assessmentArn"], - "members":{ - "assessmentArn":{"shape":"Arn"} - } - }, - "GetAssessmentTelemetryResponse":{ - "type":"structure", - "members":{ - "telemetry":{"shape":"TelemetryList"} - } - }, - "Integer":{"type":"integer"}, - "InternalException":{ - "type":"structure", - "members":{ - }, - "exception":true, - "fault":true - }, - "InvalidCrossAccountRoleException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidInputException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "ListApplicationsRequest":{ - "type":"structure", - "members":{ - "filter":{"shape":"ApplicationsFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"Integer"} - } - }, - "ListApplicationsResponse":{ - "type":"structure", - "members":{ - "applicationArnList":{"shape":"ArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListAssessmentAgentsRequest":{ - "type":"structure", - "required":["assessmentArn"], - "members":{ - "assessmentArn":{"shape":"Arn"}, - "filter":{"shape":"AgentsFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"Integer"} - } - }, - "ListAssessmentAgentsResponse":{ - "type":"structure", - "members":{ - "agentList":{"shape":"AgentList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListAssessmentsRequest":{ - "type":"structure", - "members":{ - "applicationArns":{"shape":"ArnList"}, - "filter":{"shape":"AssessmentsFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"Integer"} - } - }, - "ListAssessmentsResponse":{ - "type":"structure", - "members":{ - "assessmentArnList":{"shape":"ArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListAttachedAssessmentsRequest":{ - "type":"structure", - "required":["rulesPackageArn"], - "members":{ - "rulesPackageArn":{"shape":"Arn"}, - "filter":{"shape":"AssessmentsFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"Integer"} - } - }, - "ListAttachedAssessmentsResponse":{ - "type":"structure", - "members":{ - "assessmentArnList":{"shape":"ArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListAttachedRulesPackagesRequest":{ - "type":"structure", - "required":["assessmentArn"], - "members":{ - "assessmentArn":{"shape":"Arn"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"Integer"} - } - }, - "ListAttachedRulesPackagesResponse":{ - "type":"structure", - "members":{ - "rulesPackageArnList":{"shape":"ArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListFindingsRequest":{ - "type":"structure", - "members":{ - "runArns":{"shape":"ArnList"}, - "filter":{"shape":"FindingsFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"Integer"} - } - }, - "ListFindingsResponse":{ - "type":"structure", - "members":{ - "findingArnList":{"shape":"ArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListRulesPackagesRequest":{ - "type":"structure", - "members":{ - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"Integer"} - } - }, - "ListRulesPackagesResponse":{ - "type":"structure", - "members":{ - "rulesPackageArnList":{"shape":"ArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListRunsRequest":{ - "type":"structure", - "members":{ - "assessmentArns":{"shape":"ArnList"}, - "filter":{"shape":"RunsFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"Integer"} - } - }, - "ListRunsResponse":{ - "type":"structure", - "members":{ - "runArnList":{"shape":"ArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListTagsForResourceRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{"shape":"Arn"} - } - }, - "ListTagsForResourceResponse":{ - "type":"structure", - "members":{ - "tagList":{"shape":"TagList"} - } - }, - "Locale":{"type":"string"}, - "LocalizeTextRequest":{ - "type":"structure", - "required":[ - "localizedTexts", - "locale" - ], - "members":{ - "localizedTexts":{"shape":"LocalizedTextList"}, - "locale":{"shape":"Locale"} - } - }, - "LocalizeTextResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"}, - "results":{"shape":"TextList"} - } - }, - "LocalizedFacility":{"type":"string"}, - "LocalizedText":{ - "type":"structure", - "members":{ - "key":{"shape":"LocalizedTextKey"}, - "parameters":{"shape":"ParameterList"} - } - }, - "LocalizedTextId":{"type":"string"}, - "LocalizedTextKey":{ - "type":"structure", - "members":{ - "facility":{"shape":"LocalizedFacility"}, - "id":{"shape":"LocalizedTextId"} - } - }, - "LocalizedTextList":{ - "type":"list", - "member":{"shape":"LocalizedText"} - }, - "Long":{"type":"long"}, - "Message":{"type":"string"}, - "MessageType":{"type":"string"}, - "MessageTypeTelemetry":{ - "type":"structure", - "members":{ - "messageType":{"shape":"MessageType"}, - "count":{"shape":"Long"}, - "dataSize":{"shape":"Long"} - } - }, - "MessageTypeTelemetryList":{ - "type":"list", - "member":{"shape":"MessageTypeTelemetry"} - }, - "Name":{"type":"string"}, - "NameList":{ - "type":"list", - "member":{"shape":"Name"} - }, - "NamePattern":{"type":"string"}, - "NamePatternList":{ - "type":"list", - "member":{"shape":"NamePattern"} - }, - "NoSuchEntityException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "OperationInProgressException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "PaginationToken":{"type":"string"}, - "Parameter":{ - "type":"structure", - "members":{ - "name":{"shape":"ParameterName"}, - "value":{"shape":"ParameterValue"} - } - }, - "ParameterList":{ - "type":"list", - "member":{"shape":"Parameter"} - }, - "ParameterName":{"type":"string"}, - "ParameterValue":{"type":"string"}, - "PreviewAgentsForResourceGroupRequest":{ - "type":"structure", - "required":["resourceGroupArn"], - "members":{ - "resourceGroupArn":{"shape":"Arn"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"Integer"} - } - }, - "PreviewAgentsForResourceGroupResponse":{ - "type":"structure", - "members":{ - "agentPreviewList":{"shape":"AgentPreviewList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "RegisterCrossAccountAccessRoleRequest":{ - "type":"structure", - "required":["roleArn"], - "members":{ - "roleArn":{"shape":"Arn"} - } - }, - "RegisterCrossAccountAccessRoleResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "RemoveAttributesFromFindingsRequest":{ - "type":"structure", - "required":[ - "findingArns", - "attributeKeys" - ], - "members":{ - "findingArns":{"shape":"ArnList"}, - "attributeKeys":{"shape":"AttributeKeyList"} - } - }, - "RemoveAttributesFromFindingsResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "ResourceGroup":{ - "type":"structure", - "members":{ - "resourceGroupArn":{"shape":"Arn"}, - "resourceGroupTags":{"shape":"ResourceGroupTags"} - } - }, - "ResourceGroupTags":{"type":"string"}, - "RulesPackage":{ - "type":"structure", - "members":{ - "rulesPackageArn":{"shape":"Arn"}, - "rulesPackageName":{"shape":"Name"}, - "version":{"shape":"Version"}, - "provider":{"shape":"Name"}, - "description":{"shape":"LocalizedText"} - } - }, - "Run":{ - "type":"structure", - "members":{ - "runArn":{"shape":"Arn"}, - "runName":{"shape":"Name"}, - "assessmentArn":{"shape":"Arn"}, - "runState":{"shape":"RunState"}, - "rulesPackages":{"shape":"ArnList"}, - "creationTime":{"shape":"Timestamp"}, - "completionTime":{"shape":"Timestamp"} - } - }, - "RunAssessmentRequest":{ - "type":"structure", - "required":[ - "assessmentArn", - "runName" - ], - "members":{ - "assessmentArn":{"shape":"Arn"}, - "runName":{"shape":"Name"} - } - }, - "RunAssessmentResponse":{ - "type":"structure", - "members":{ - "runArn":{"shape":"Arn"} - } - }, - "RunState":{"type":"string"}, - "RunStateList":{ - "type":"list", - "member":{"shape":"RunState"} - }, - "RunsFilter":{ - "type":"structure", - "members":{ - "runNamePatterns":{"shape":"NamePatternList"}, - "runStates":{"shape":"RunStateList"}, - "rulesPackages":{"shape":"ArnList"}, - "creationTime":{"shape":"TimestampRange"}, - "completionTime":{"shape":"TimestampRange"} - } - }, - "SetTagsForResourceRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{"shape":"Arn"}, - "tags":{"shape":"TagList"} - } - }, - "SetTagsForResourceResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "Severity":{"type":"string"}, - "SeverityList":{ - "type":"list", - "member":{"shape":"Severity"} - }, - "StartDataCollectionRequest":{ - "type":"structure", - "required":["assessmentArn"], - "members":{ - "assessmentArn":{"shape":"Arn"} - } - }, - "StartDataCollectionResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "StopDataCollectionRequest":{ - "type":"structure", - "required":["assessmentArn"], - "members":{ - "assessmentArn":{"shape":"Arn"} - } - }, - "StopDataCollectionResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "Tag":{ - "type":"structure", - "members":{ - "Key":{"shape":"TagKey"}, - "Value":{"shape":"TagValue"} - } - }, - "TagKey":{"type":"string"}, - "TagList":{ - "type":"list", - "member":{"shape":"Tag"} - }, - "TagValue":{"type":"string"}, - "Telemetry":{ - "type":"structure", - "members":{ - "status":{"shape":"TelemetryStatus"}, - "messageTypeTelemetries":{"shape":"MessageTypeTelemetryList"} - } - }, - "TelemetryList":{ - "type":"list", - "member":{"shape":"Telemetry"} - }, - "TelemetryStatus":{"type":"string"}, - "Text":{"type":"string"}, - "TextList":{ - "type":"list", - "member":{"shape":"Text"} - }, - "Timestamp":{"type":"timestamp"}, - "TimestampRange":{ - "type":"structure", - "members":{ - "minimum":{"shape":"Timestamp"}, - "maximum":{"shape":"Timestamp"} - } - }, - "UpdateApplicationRequest":{ - "type":"structure", - "required":[ - "applicationArn", - "applicationName", - "resourceGroupArn" - ], - "members":{ - "applicationArn":{"shape":"Arn"}, - "applicationName":{"shape":"Name"}, - "resourceGroupArn":{"shape":"Arn"} - } - }, - "UpdateApplicationResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "UpdateAssessmentRequest":{ - "type":"structure", - "required":[ - "assessmentArn", - "assessmentName", - "durationInSeconds" - ], - "members":{ - "assessmentArn":{"shape":"Arn"}, - "assessmentName":{"shape":"Name"}, - "durationInSeconds":{"shape":"Duration"} - } - }, - "UpdateAssessmentResponse":{ - "type":"structure", - "members":{ - "message":{"shape":"Message"} - } - }, - "Version":{"type":"string"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/docs-2.json deleted file mode 100644 index a7ef77a7e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/docs-2.json +++ /dev/null @@ -1,1016 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon Inspector

    Amazon Inspector enables you to analyze the behavior of the applications you run in AWS and to identify potential security issues. For more information, see Amazon Inspector User Guide.

    ", - "operations": { - "AddAttributesToFindings": "

    Assigns attributes (key and value pair) to the findings specified by the findings' ARNs.

    ", - "AttachAssessmentAndRulesPackage": "

    Attaches the rules package specified by the rules package ARN to the assessment specified by the assessment ARN.

    ", - "CreateApplication": "

    Creates a new application using the resource group ARN generated by CreateResourceGroup. You can create up to 50 applications per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Inspector Applications.

    ", - "CreateAssessment": "

    Creates an assessment for the application specified by the application ARN. You can create up to 500 assessments per AWS account.

    ", - "CreateResourceGroup": "

    Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Inspector application. The created resource group is then used to create an Inspector application.

    ", - "DeleteApplication": "

    Deletes the application specified by the application ARN.

    ", - "DeleteAssessment": "

    Deletes the assessment specified by the assessment ARN.

    ", - "DeleteRun": "

    Deletes the assessment run specified by the run ARN.

    ", - "DescribeApplication": "

    Describes the application specified by the application ARN.

    ", - "DescribeAssessment": "

    Describes the assessment specified by the assessment ARN.

    ", - "DescribeCrossAccountAccessRole": "

    Describes the IAM role that enables Inspector to access your AWS account.

    ", - "DescribeFinding": "

    Describes the finding specified by the finding ARN.

    ", - "DescribeResourceGroup": "

    Describes the resource group specified by the resource group ARN.

    ", - "DescribeRulesPackage": "

    Describes the rules package specified by the rules package ARN.

    ", - "DescribeRun": "

    Describes the assessment run specified by the run ARN.

    ", - "DetachAssessmentAndRulesPackage": "

    Detaches the rules package specified by the rules package ARN from the assessment specified by the assessment ARN.

    ", - "GetAssessmentTelemetry": "

    Returns the metadata about the telemetry (application behavioral data) for the assessment specified by the assessment ARN.

    ", - "ListApplications": "

    Lists the ARNs of the applications within this AWS account. For more information about applications, see Inspector Applications.

    ", - "ListAssessmentAgents": "

    Lists the agents of the assessment specified by the assessment ARN.

    ", - "ListAssessments": "

    Lists the assessments corresponding to applications specified by the applications' ARNs.

    ", - "ListAttachedAssessments": "

    Lists the assessments attached to the rules package specified by the rules package ARN.

    ", - "ListAttachedRulesPackages": "

    Lists the rules packages attached to the assessment specified by the assessment ARN.

    ", - "ListFindings": "

    Lists findings generated by the assessment run specified by the run ARNs.

    ", - "ListRulesPackages": "

    Lists all available Inspector rules packages.

    ", - "ListRuns": "

    Lists the assessment runs associated with the assessments specified by the assessment ARNs.

    ", - "ListTagsForResource": "

    Lists all tags associated with a resource.

    ", - "LocalizeText": "

    Translates a textual identifier into a user-readable text in a specified locale.

    ", - "PreviewAgentsForResourceGroup": "

    Previews the agents installed on the EC2 instances that are included in the application created with the specified resource group.

    ", - "RegisterCrossAccountAccessRole": "

    Register the role that Inspector uses to list your EC2 instances during the assessment.

    ", - "RemoveAttributesFromFindings": "

    Removes the entire attribute (key and value pair) from the findings specified by the finding ARNs where an attribute with the specified key exists.

    ", - "RunAssessment": "

    Starts the analysis of the application’s behavior against selected rule packages for the assessment specified by the assessment ARN.

    ", - "SetTagsForResource": "

    Sets tags (key and value pairs) to the assessment specified by the assessment ARN.

    ", - "StartDataCollection": "

    Starts data collection for the assessment specified by the assessment ARN. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.

    ", - "StopDataCollection": "

    Stop data collection for the assessment specified by the assessment ARN.

    ", - "UpdateApplication": "

    Updates application specified by the application ARN.

    ", - "UpdateAssessment": "

    Updates the assessment specified by the assessment ARN.

    " - }, - "shapes": { - "AccessDeniedException": { - "base": null, - "refs": { - } - }, - "AddAttributesToFindingsRequest": { - "base": null, - "refs": { - } - }, - "AddAttributesToFindingsResponse": { - "base": null, - "refs": { - } - }, - "Agent": { - "base": "

    Contains information about an Inspector agent. This data type is used as a response element in the ListAssessmentAgents action.

    ", - "refs": { - "AgentList$member": null - } - }, - "AgentHealth": { - "base": null, - "refs": { - "Agent$agentHealth": "

    The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.

    ", - "AgentHealthList$member": null - } - }, - "AgentHealthCode": { - "base": null, - "refs": { - "Agent$agentHealthCode": "

    The detailed health state of the agent. Values can be set to RUNNING, HEALTHY, UNHEALTHY, UNKNOWN, BLACKLISTED, SHUTDOWN, THROTTLED.

    " - } - }, - "AgentHealthDetails": { - "base": null, - "refs": { - "Agent$agentHealthDetails": "

    The description for the agent health code.

    " - } - }, - "AgentHealthList": { - "base": null, - "refs": { - "AgentsFilter$agentHealthList": "

    For a record to match a filter, the value specified for this data type property must be the exact match of the value of the agentHealth property of the Agent data type.

    " - } - }, - "AgentId": { - "base": null, - "refs": { - "Agent$agentId": "

    The EC2 instance ID where the agent is installed.

    ", - "AgentPreview$agentId": "

    The id of the EC2 instance where the agent is intalled.

    ", - "Finding$agentId": "

    The EC2 instance ID where the agent is installed that is used during the assessment that generates the finding.

    " - } - }, - "AgentList": { - "base": null, - "refs": { - "ListAssessmentAgentsResponse$agentList": "

    A list of ARNs specifying the agents returned by the action.

    " - } - }, - "AgentPreview": { - "base": "

    This data type is used as a response element in the PreviewAgentsForResourceGroup action.

    ", - "refs": { - "AgentPreviewList$member": null - } - }, - "AgentPreviewList": { - "base": null, - "refs": { - "PreviewAgentsForResourceGroupResponse$agentPreviewList": "

    The resulting list of agents.

    " - } - }, - "AgentsFilter": { - "base": "

    This data type is used as a response element in the ListAssessmentAgents action.

    ", - "refs": { - "ListAssessmentAgentsRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    " - } - }, - "Application": { - "base": "

    Contains information about an Inspector application.

    This data type is used as the response element in the DescribeApplication action.

    ", - "refs": { - "DescribeApplicationResponse$application": "

    Information about the application.

    " - } - }, - "ApplicationsFilter": { - "base": "

    This data type is used as the request parameter in the ListApplications action.

    ", - "refs": { - "ListApplicationsRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    " - } - }, - "Arn": { - "base": null, - "refs": { - "Agent$assessmentArn": "

    The ARN of the assessment that is associated with the agent.

    ", - "Application$applicationArn": "

    The ARN specifying the Inspector application.

    ", - "Application$resourceGroupArn": "

    The ARN specifying the resource group that is associated with the application.

    ", - "ArnList$member": null, - "Assessment$assessmentArn": "

    The ARN of the assessment.

    ", - "Assessment$applicationArn": "

    The ARN of the application that corresponds to this assessment.

    ", - "AttachAssessmentAndRulesPackageRequest$assessmentArn": "

    The ARN specifying the assessment to which you want to attach a rules package.

    ", - "AttachAssessmentAndRulesPackageRequest$rulesPackageArn": "

    The ARN specifying the rules package that you want to attach to the assessment.

    ", - "CreateApplicationRequest$resourceGroupArn": "

    The ARN specifying the resource group that is used to create the application.

    ", - "CreateApplicationResponse$applicationArn": "

    The ARN specifying the application that is created.

    ", - "CreateAssessmentRequest$applicationArn": "

    The ARN specifying the application for which you want to create an assessment.

    ", - "CreateAssessmentResponse$assessmentArn": "

    The ARN specifying the assessment that is created.

    ", - "CreateResourceGroupResponse$resourceGroupArn": "

    The ARN specifying the resource group that is created.

    ", - "DeleteApplicationRequest$applicationArn": "

    The ARN specifying the application that you want to delete.

    ", - "DeleteAssessmentRequest$assessmentArn": "

    The ARN specifying the assessment that you want to delete.

    ", - "DeleteRunRequest$runArn": "

    The ARN specifying the assessment run that you want to delete.

    ", - "DescribeApplicationRequest$applicationArn": "

    The ARN specifying the application that you want to describe.

    ", - "DescribeAssessmentRequest$assessmentArn": "

    The ARN specifying the assessment that you want to describe.

    ", - "DescribeCrossAccountAccessRoleResponse$roleArn": "

    The ARN specifying the IAM role that Inspector uses to access your AWS account.

    ", - "DescribeFindingRequest$findingArn": "

    The ARN specifying the finding that you want to describe.

    ", - "DescribeResourceGroupRequest$resourceGroupArn": "

    The ARN specifying the resource group that you want to describe.

    ", - "DescribeRulesPackageRequest$rulesPackageArn": "

    The ARN specifying the rules package that you want to describe.

    ", - "DescribeRunRequest$runArn": "

    The ARN specifying the assessment run that you want to describe.

    ", - "DetachAssessmentAndRulesPackageRequest$assessmentArn": "

    The ARN specifying the assessment from which you want to detach a rules package.

    ", - "DetachAssessmentAndRulesPackageRequest$rulesPackageArn": "

    The ARN specifying the rules package that you want to detach from the assessment.

    ", - "Finding$findingArn": "

    The ARN specifying the finding.

    ", - "Finding$runArn": "

    The ARN of the assessment run that generated the finding.

    ", - "Finding$rulesPackageArn": "

    The ARN of the rules package that is used to generate the finding.

    ", - "GetAssessmentTelemetryRequest$assessmentArn": "

    The ARN specifying the assessment the telemetry of which you want to obtain.

    ", - "ListAssessmentAgentsRequest$assessmentArn": "

    The ARN specifying the assessment whose agents you want to list.

    ", - "ListAttachedAssessmentsRequest$rulesPackageArn": "

    The ARN specifying the rules package whose assessments you want to list.

    ", - "ListAttachedRulesPackagesRequest$assessmentArn": "

    The ARN specifying the assessment whose rules packages you want to list.

    ", - "ListTagsForResourceRequest$resourceArn": "

    The ARN specifying the resource whose tags you want to list.

    ", - "PreviewAgentsForResourceGroupRequest$resourceGroupArn": "

    The ARN of the resource group that is used to create an application.

    ", - "RegisterCrossAccountAccessRoleRequest$roleArn": "The ARN of the IAM role that Inspector uses to list your EC2 instances during the assessment.", - "ResourceGroup$resourceGroupArn": "

    The ARN of the resource group.

    ", - "RulesPackage$rulesPackageArn": "

    The ARN of the rules package.

    ", - "Run$runArn": "

    The ARN of the run.

    ", - "Run$assessmentArn": "

    The ARN of the assessment that is associated with the run.

    ", - "RunAssessmentRequest$assessmentArn": "

    The ARN of the assessment that you want to run.

    ", - "RunAssessmentResponse$runArn": "

    The ARN specifying the run of the assessment.

    ", - "SetTagsForResourceRequest$resourceArn": "

    The ARN of the assessment that you want to set tags to.

    ", - "StartDataCollectionRequest$assessmentArn": "

    The ARN of the assessment for which you want to start the data collection process.

    ", - "StopDataCollectionRequest$assessmentArn": "

    The ARN of the assessment for which you want to stop the data collection process.

    ", - "UpdateApplicationRequest$applicationArn": "

    Application ARN that you want to update.

    ", - "UpdateApplicationRequest$resourceGroupArn": "

    The resource group ARN that you want to update.

    ", - "UpdateAssessmentRequest$assessmentArn": "

    Asessment ARN that you want to update.

    " - } - }, - "ArnList": { - "base": null, - "refs": { - "AddAttributesToFindingsRequest$findingArns": "

    The ARNs specifying the findings that you want to assign attributes to.

    ", - "FindingsFilter$rulesPackageArns": "

    For a record to match a filter, the value specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.

    ", - "ListApplicationsResponse$applicationArnList": "

    A list of ARNs specifying the applications returned by the action.

    ", - "ListAssessmentsRequest$applicationArns": "

    A list of ARNs specifying the applications the assessments of which you want to list.

    ", - "ListAssessmentsResponse$assessmentArnList": "

    A list of ARNs specifying the assessments returned by the action.

    ", - "ListAttachedAssessmentsResponse$assessmentArnList": "

    A list of ARNs specifying the assessments returned by the action.

    ", - "ListAttachedRulesPackagesResponse$rulesPackageArnList": "

    A list of ARNs specifying the rules packages returned by the action.

    ", - "ListFindingsRequest$runArns": "

    The ARNs of the assessment runs that generate the findings that you want to list.

    ", - "ListFindingsResponse$findingArnList": "

    A list of ARNs specifying the findings returned by the action.

    ", - "ListRulesPackagesResponse$rulesPackageArnList": "

    The list of ARNs specifying the rules packages returned by the action.

    ", - "ListRunsRequest$assessmentArns": "

    The ARNs specifying the assessments whose runs you want to list.

    ", - "ListRunsResponse$runArnList": "

    A list of ARNs specifying the assessment runs returned by the action.

    ", - "RemoveAttributesFromFindingsRequest$findingArns": "

    The ARNs specifying the findings that you want to remove attributes from.

    ", - "Run$rulesPackages": "

    Rules packages selected for the run of the assessment.

    ", - "RunsFilter$rulesPackages": "

    For a record to match a filter, the value specified for this data type property must match a list of values of the rulesPackages property of the Run data type.

    " - } - }, - "Assessment": { - "base": "

    Contains information about an Inspector assessment.

    This data type is used as the response element in the DescribeAssessment action.

    ", - "refs": { - "DescribeAssessmentResponse$assessment": "

    Information about the assessment.

    " - } - }, - "AssessmentState": { - "base": null, - "refs": { - "Assessment$assessmentState": "

    The state of the assessment. Values can be set to Created, Collecting Data, Stopping, and Completed.

    ", - "AssessmentStateList$member": null - } - }, - "AssessmentStateList": { - "base": null, - "refs": { - "AssessmentsFilter$assessmentStates": "

    For a record to match a filter, the value specified for this data type property must be the exact match of the value of the assessmentState property of the Assessment data type.

    " - } - }, - "AssessmentsFilter": { - "base": "

    This data type is used as the request parameter in the ListAssessments and ListAttachedAssessments actions.

    ", - "refs": { - "ListAssessmentsRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    ", - "ListAttachedAssessmentsRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    " - } - }, - "AttachAssessmentAndRulesPackageRequest": { - "base": null, - "refs": { - } - }, - "AttachAssessmentAndRulesPackageResponse": { - "base": null, - "refs": { - } - }, - "Attribute": { - "base": "

    This data type is used as a response element in the AddAttributesToFindings action and a request parameter in the CreateAssessment action.

    ", - "refs": { - "AttributeList$member": null - } - }, - "AttributeKey": { - "base": null, - "refs": { - "Attribute$key": "

    The attribute key.

    ", - "AttributeKeyList$member": null - } - }, - "AttributeKeyList": { - "base": null, - "refs": { - "RemoveAttributesFromFindingsRequest$attributeKeys": "

    The array of attribute keys that you want to remove from specified findings.

    " - } - }, - "AttributeList": { - "base": null, - "refs": { - "AddAttributesToFindingsRequest$attributes": "

    The array of attributes that you want to assign to specified findings.

    ", - "Assessment$userAttributesForFindings": "

    The user-defined attributes that are assigned to every generated finding.

    ", - "CreateAssessmentRequest$userAttributesForFindings": "

    The user-defined attributes that are assigned to every finding generated by running this assessment.

    ", - "Finding$attributes": "

    The system-defined attributes for the finding.

    ", - "Finding$userAttributes": "

    The user-defined attributes that are assigned to the finding.

    ", - "FindingsFilter$attributes": "

    For a record to match a filter, the value specified for this data type property must be the exact match of the value of the attributes property of the Finding data type.

    ", - "FindingsFilter$userAttributes": "

    For a record to match a filter, the value specified for this data type property must be the exact match of the value of the userAttributes property of the Finding data type.

    " - } - }, - "AttributeValue": { - "base": null, - "refs": { - "Attribute$value": "

    The value assigned to the attribute key.

    " - } - }, - "AutoScalingGroup": { - "base": null, - "refs": { - "Agent$autoScalingGroup": "

    This data type property is currently not used.

    ", - "AgentPreview$autoScalingGroup": "

    The autoscaling group for the EC2 instance where the agent is installed.

    ", - "Finding$autoScalingGroup": "

    The autoscaling group of the EC2 instance where the agent is installed that is used during the assessment that generates the finding.

    " - } - }, - "AwsAccount": { - "base": null, - "refs": { - "Agent$accountId": "

    AWS account of the EC2 instance where the agent is installed.

    " - } - }, - "Bool": { - "base": null, - "refs": { - "Assessment$dataCollected": "

    Boolean value (true or false) specifying whether the data collection process is completed.

    ", - "AssessmentsFilter$dataCollected": "

    For a record to match a filter, the value specified for this data type property must be the exact match of the value of the dataCollected property of the Assessment data type.

    ", - "DescribeCrossAccountAccessRoleResponse$valid": "

    A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Inspector to access your AWS account.

    " - } - }, - "CreateApplicationRequest": { - "base": null, - "refs": { - } - }, - "CreateApplicationResponse": { - "base": null, - "refs": { - } - }, - "CreateAssessmentRequest": { - "base": null, - "refs": { - } - }, - "CreateAssessmentResponse": { - "base": null, - "refs": { - } - }, - "CreateResourceGroupRequest": { - "base": null, - "refs": { - } - }, - "CreateResourceGroupResponse": { - "base": null, - "refs": { - } - }, - "DeleteApplicationRequest": { - "base": null, - "refs": { - } - }, - "DeleteApplicationResponse": { - "base": null, - "refs": { - } - }, - "DeleteAssessmentRequest": { - "base": null, - "refs": { - } - }, - "DeleteAssessmentResponse": { - "base": null, - "refs": { - } - }, - "DeleteRunRequest": { - "base": null, - "refs": { - } - }, - "DeleteRunResponse": { - "base": null, - "refs": { - } - }, - "DescribeApplicationRequest": { - "base": null, - "refs": { - } - }, - "DescribeApplicationResponse": { - "base": null, - "refs": { - } - }, - "DescribeAssessmentRequest": { - "base": null, - "refs": { - } - }, - "DescribeAssessmentResponse": { - "base": null, - "refs": { - } - }, - "DescribeCrossAccountAccessRoleResponse": { - "base": null, - "refs": { - } - }, - "DescribeFindingRequest": { - "base": null, - "refs": { - } - }, - "DescribeFindingResponse": { - "base": null, - "refs": { - } - }, - "DescribeResourceGroupRequest": { - "base": null, - "refs": { - } - }, - "DescribeResourceGroupResponse": { - "base": null, - "refs": { - } - }, - "DescribeRulesPackageRequest": { - "base": null, - "refs": { - } - }, - "DescribeRulesPackageResponse": { - "base": null, - "refs": { - } - }, - "DescribeRunRequest": { - "base": null, - "refs": { - } - }, - "DescribeRunResponse": { - "base": null, - "refs": { - } - }, - "DetachAssessmentAndRulesPackageRequest": { - "base": null, - "refs": { - } - }, - "DetachAssessmentAndRulesPackageResponse": { - "base": null, - "refs": { - } - }, - "Duration": { - "base": null, - "refs": { - "Assessment$durationInSeconds": "

    The assessment duration in seconds. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).

    ", - "CreateAssessmentRequest$durationInSeconds": "

    The duration of the assessment in seconds. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).

    ", - "DurationRange$minimum": "

    The minimum value of the duration range. Must be greater than zero.

    ", - "DurationRange$maximum": "

    The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).

    ", - "UpdateAssessmentRequest$durationInSeconds": "

    Assessment duration in seconds that you want to update. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).

    " - } - }, - "DurationRange": { - "base": "

    This data type is used in the AssessmentsFilter data type.

    ", - "refs": { - "AssessmentsFilter$durationRange": "

    For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the Assessment data type.

    " - } - }, - "FailureMessage": { - "base": null, - "refs": { - "Assessment$failureMessage": "

    This data type property is not currently used.

    " - } - }, - "Finding": { - "base": "

    Contains information about an Inspector finding.

    This data type is used as the response element in the DescribeFinding action.

    ", - "refs": { - "DescribeFindingResponse$finding": "

    Information about the finding.

    " - } - }, - "FindingsFilter": { - "base": "

    This data type is used as a request parameter in the ListFindings action.

    ", - "refs": { - "ListFindingsRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    " - } - }, - "GetAssessmentTelemetryRequest": { - "base": null, - "refs": { - } - }, - "GetAssessmentTelemetryResponse": { - "base": null, - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "ListApplicationsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListAssessmentAgentsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListAssessmentsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListAttachedAssessmentsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListAttachedRulesPackagesRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListFindingsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListRulesPackagesRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListRunsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "PreviewAgentsForResourceGroupRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    " - } - }, - "InternalException": { - "base": null, - "refs": { - } - }, - "InvalidCrossAccountRoleException": { - "base": null, - "refs": { - } - }, - "InvalidInputException": { - "base": null, - "refs": { - } - }, - "ListApplicationsRequest": { - "base": null, - "refs": { - } - }, - "ListApplicationsResponse": { - "base": null, - "refs": { - } - }, - "ListAssessmentAgentsRequest": { - "base": null, - "refs": { - } - }, - "ListAssessmentAgentsResponse": { - "base": null, - "refs": { - } - }, - "ListAssessmentsRequest": { - "base": null, - "refs": { - } - }, - "ListAssessmentsResponse": { - "base": null, - "refs": { - } - }, - "ListAttachedAssessmentsRequest": { - "base": null, - "refs": { - } - }, - "ListAttachedAssessmentsResponse": { - "base": null, - "refs": { - } - }, - "ListAttachedRulesPackagesRequest": { - "base": null, - "refs": { - } - }, - "ListAttachedRulesPackagesResponse": { - "base": null, - "refs": { - } - }, - "ListFindingsRequest": { - "base": null, - "refs": { - } - }, - "ListFindingsResponse": { - "base": null, - "refs": { - } - }, - "ListRulesPackagesRequest": { - "base": null, - "refs": { - } - }, - "ListRulesPackagesResponse": { - "base": null, - "refs": { - } - }, - "ListRunsRequest": { - "base": null, - "refs": { - } - }, - "ListRunsResponse": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceRequest": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceResponse": { - "base": null, - "refs": { - } - }, - "Locale": { - "base": null, - "refs": { - "LocalizeTextRequest$locale": "

    The locale that you want to translate a textual identifier into.

    " - } - }, - "LocalizeTextRequest": { - "base": null, - "refs": { - } - }, - "LocalizeTextResponse": { - "base": null, - "refs": { - } - }, - "LocalizedFacility": { - "base": null, - "refs": { - "LocalizedTextKey$facility": "

    The module response source of the text.

    " - } - }, - "LocalizedText": { - "base": "

    The textual identifier. This data type is used as the request parameter in the LocalizeText action.

    ", - "refs": { - "Finding$finding": "

    A short description that identifies the finding.

    ", - "Finding$description": "

    The description of the finding.

    ", - "Finding$recommendation": "

    The recommendation for the finding.

    ", - "LocalizedTextList$member": null, - "RulesPackage$description": "

    The description of the rules package.

    " - } - }, - "LocalizedTextId": { - "base": null, - "refs": { - "LocalizedTextKey$id": "

    Part of the module response source of the text.

    " - } - }, - "LocalizedTextKey": { - "base": "

    This data type is used in the LocalizedText data type.

    ", - "refs": { - "LocalizedText$key": "

    The facility and id properties of the LocalizedTextKey data type.

    " - } - }, - "LocalizedTextList": { - "base": null, - "refs": { - "LocalizeTextRequest$localizedTexts": "

    A list of textual identifiers.

    " - } - }, - "Long": { - "base": null, - "refs": { - "MessageTypeTelemetry$count": "

    The number of times that the behavioral data is collected by the agent during an assessment.

    ", - "MessageTypeTelemetry$dataSize": "

    The total size of the behavioral data that is collected by the agent during an assessment.

    " - } - }, - "Message": { - "base": null, - "refs": { - "AddAttributesToFindingsResponse$message": "

    Confirmation details of the action performed.

    ", - "AttachAssessmentAndRulesPackageResponse$message": "

    Confirmation details of the action performed.

    ", - "DeleteApplicationResponse$message": "

    Confirmation details of the action performed.

    ", - "DeleteAssessmentResponse$message": "

    Confirmation details of the action performed.

    ", - "DeleteRunResponse$message": "

    Confirmation details of the action performed.

    ", - "DetachAssessmentAndRulesPackageResponse$message": "

    Confirmation details of the action performed.

    ", - "LocalizeTextResponse$message": "

    Confirmation details of the action performed.

    ", - "RegisterCrossAccountAccessRoleResponse$message": "

    Confirmation details of the action performed.

    ", - "RemoveAttributesFromFindingsResponse$message": "

    Confirmation details of the action performed.

    ", - "SetTagsForResourceResponse$message": "

    Confirmation details of the action performed.

    ", - "StartDataCollectionResponse$message": "

    Confirmation details of the action performed.

    ", - "StopDataCollectionResponse$message": "

    Confirmation details of the action performed.

    ", - "UpdateApplicationResponse$message": "

    Confirmation details of the action performed.

    ", - "UpdateAssessmentResponse$message": "

    Confirmation details of the action performed.

    " - } - }, - "MessageType": { - "base": null, - "refs": { - "MessageTypeTelemetry$messageType": "

    A specific type of behavioral data that is collected by the agent.

    " - } - }, - "MessageTypeTelemetry": { - "base": "

    This data type is used in the Telemetry data type.

    This is metadata about the behavioral data collected by the Inspector agent on your EC2 instances during an assessment and passed to the Inspector service for analysis.

    ", - "refs": { - "MessageTypeTelemetryList$member": null - } - }, - "MessageTypeTelemetryList": { - "base": null, - "refs": { - "Telemetry$messageTypeTelemetries": "

    Counts of individual metrics received by Inspector from the agent.

    " - } - }, - "Name": { - "base": null, - "refs": { - "Application$applicationName": "

    The name of the Inspector application.

    ", - "Assessment$assessmentName": "

    The name of the assessment.

    ", - "CreateApplicationRequest$applicationName": "

    The user-defined name identifying the application that you want to create. The name must be unique within the AWS account.

    ", - "CreateAssessmentRequest$assessmentName": "

    The user-defined name identifying the assessment that you want to create. You can create several assessments for an application. The names of the assessments corresponding to a particular application must be unique.

    ", - "Finding$ruleName": "

    The rule name that is used to generate the finding.

    ", - "NameList$member": null, - "RulesPackage$rulesPackageName": "

    The name of the rules package.

    ", - "RulesPackage$provider": "

    The provider of the rules package.

    ", - "Run$runName": "

    The auto-generated name for the run.

    ", - "RunAssessmentRequest$runName": "

    A name specifying the run of the assessment.

    ", - "UpdateApplicationRequest$applicationName": "

    Application name that you want to update.

    ", - "UpdateAssessmentRequest$assessmentName": "

    Assessment name that you want to update.

    " - } - }, - "NameList": { - "base": null, - "refs": { - "FindingsFilter$ruleNames": "

    For a record to match a filter, the value specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.

    " - } - }, - "NamePattern": { - "base": null, - "refs": { - "NamePatternList$member": null - } - }, - "NamePatternList": { - "base": null, - "refs": { - "ApplicationsFilter$applicationNamePatterns": "

    For a record to match a filter, an explicit value or a string containing a wildcard specified for this data type property must match the value of the applicationName property of the Application data type.

    ", - "AssessmentsFilter$assessmentNamePatterns": "

    For a record to match a filter, an explicit value or a string containing a wildcard specified for this data type property must match the value of the assessmentName property of the Assessment data type.

    ", - "RunsFilter$runNamePatterns": "

    For a record to match a filter, an explicit value or a string containing a wildcard specified for this data type property must match the value of the runName property of the Run data type.

    " - } - }, - "NoSuchEntityException": { - "base": null, - "refs": { - } - }, - "OperationInProgressException": { - "base": null, - "refs": { - } - }, - "PaginationToken": { - "base": null, - "refs": { - "ListApplicationsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to 'null' on your first call to the ListApplications action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from previous response to continue listing data.

    ", - "ListApplicationsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to 'null'.

    ", - "ListAssessmentAgentsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to 'null' on your first call to the ListAssessmentAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from previous response to continue listing data.

    ", - "ListAssessmentAgentsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to 'null'.

    ", - "ListAssessmentsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to 'null' on your first call to the ListAssessments action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from previous response to continue listing data.

    ", - "ListAssessmentsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to 'null'.

    ", - "ListAttachedAssessmentsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to 'null' on your first call to the ListAttachedAssessments action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from previous response to continue listing data.

    ", - "ListAttachedAssessmentsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to 'null'.

    ", - "ListAttachedRulesPackagesRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to 'null' on your first call to the ListAttachedRulesPackages action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from previous response to continue listing data.

    ", - "ListAttachedRulesPackagesResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to 'null'.

    ", - "ListFindingsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to 'null' on your first call to the ListFindings action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from previous response to continue listing data.

    ", - "ListFindingsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to 'null'.

    ", - "ListRulesPackagesRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to 'null' on your first call to the ListRulesPackages action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from previous response to continue listing data.

    ", - "ListRulesPackagesResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to 'null'.

    ", - "ListRunsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to 'null' on your first call to the ListRuns action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from previous response to continue listing data.

    ", - "ListRunsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to 'null'.

    ", - "PreviewAgentsForResourceGroupRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to 'null' on your first call to the PreviewAgentsForResourceGroup action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from previous response to continue listing data.

    ", - "PreviewAgentsForResourceGroupResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to 'null'.

    " - } - }, - "Parameter": { - "base": "

    This data type is used in the LocalizedText data type.

    ", - "refs": { - "ParameterList$member": null - } - }, - "ParameterList": { - "base": null, - "refs": { - "LocalizedText$parameters": "

    Values for the dynamic elements of the string specified by the textual identifier.

    " - } - }, - "ParameterName": { - "base": null, - "refs": { - "Parameter$name": "

    The name of the variable that is being replaced.

    " - } - }, - "ParameterValue": { - "base": null, - "refs": { - "Parameter$value": "

    The value assigned to the variable that is being replaced.

    " - } - }, - "PreviewAgentsForResourceGroupRequest": { - "base": null, - "refs": { - } - }, - "PreviewAgentsForResourceGroupResponse": { - "base": null, - "refs": { - } - }, - "RegisterCrossAccountAccessRoleRequest": { - "base": null, - "refs": { - } - }, - "RegisterCrossAccountAccessRoleResponse": { - "base": null, - "refs": { - } - }, - "RemoveAttributesFromFindingsRequest": { - "base": null, - "refs": { - } - }, - "RemoveAttributesFromFindingsResponse": { - "base": null, - "refs": { - } - }, - "ResourceGroup": { - "base": "

    Contains information about a resource group. The resource group defines a set of tags that, when queried, identify the AWS resources that comprise the application.

    This data type is used as the response element in the DescribeResourceGroup action.

    ", - "refs": { - "DescribeResourceGroupResponse$resourceGroup": "

    Information about the resource group.

    " - } - }, - "ResourceGroupTags": { - "base": null, - "refs": { - "CreateResourceGroupRequest$resourceGroupTags": "

    A collection of keys and an array of possible values in JSON format.

    For example, [{ \"key1\" : [\"Value1\",\"Value2\"]},{\"Key2\": [\"Value3\"]}]

    ", - "ResourceGroup$resourceGroupTags": "

    The tags (key and value pairs) of the resource group.

    This data type property is used in the CreateResourceGroup action.

    A collection of keys and an array of possible values in JSON format.

    For example, [{ \"key1\" : [\"Value1\",\"Value2\"]},{\"Key2\": [\"Value3\"]}]

    " - } - }, - "RulesPackage": { - "base": "

    Contains information about an Inspector rules package.

    This data type is used as the response element in the DescribeRulesPackage action.

    ", - "refs": { - "DescribeRulesPackageResponse$rulesPackage": "

    Information about the rules package.

    " - } - }, - "Run": { - "base": "

    A snapshot of an Inspector assessment that contains the assessment's findings.

    This data type is used as the response element in the DescribeRun action.

    ", - "refs": { - "DescribeRunResponse$run": "

    Information about the assessment run.

    " - } - }, - "RunAssessmentRequest": { - "base": null, - "refs": { - } - }, - "RunAssessmentResponse": { - "base": null, - "refs": { - } - }, - "RunState": { - "base": null, - "refs": { - "Run$runState": "

    The state of the run. Values can be set to DataCollectionComplete, EvaluatingPolicies, EvaluatingPoliciesErrorCanRetry, Completed, Failed, TombStoned.

    ", - "RunStateList$member": null - } - }, - "RunStateList": { - "base": null, - "refs": { - "RunsFilter$runStates": "

    For a record to match a filter, the value specified for this data type property must be the exact match of the value of the runState property of the Run data type.

    " - } - }, - "RunsFilter": { - "base": "

    This data type is used as the request parameter in the ListRuns action.

    ", - "refs": { - "ListRunsRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    " - } - }, - "SetTagsForResourceRequest": { - "base": null, - "refs": { - } - }, - "SetTagsForResourceResponse": { - "base": null, - "refs": { - } - }, - "Severity": { - "base": null, - "refs": { - "Finding$severity": "

    The finding severity. Values can be set to High, Medium, Low, and Informational.

    ", - "SeverityList$member": null - } - }, - "SeverityList": { - "base": null, - "refs": { - "FindingsFilter$severities": "

    For a record to match a filter, the value specified for this data type property must be the exact match of the value of the severity property of the Finding data type.

    " - } - }, - "StartDataCollectionRequest": { - "base": null, - "refs": { - } - }, - "StartDataCollectionResponse": { - "base": null, - "refs": { - } - }, - "StopDataCollectionRequest": { - "base": null, - "refs": { - } - }, - "StopDataCollectionResponse": { - "base": null, - "refs": { - } - }, - "Tag": { - "base": "

    A key and value pair.

    This data type is used as a request parameter in the SetTagsForResource action and a response element in the ListTagsForResource action.

    ", - "refs": { - "TagList$member": null - } - }, - "TagKey": { - "base": null, - "refs": { - "Tag$Key": "

    The tag key.

    " - } - }, - "TagList": { - "base": null, - "refs": { - "ListTagsForResourceResponse$tagList": "

    A collection of key and value pairs.

    ", - "SetTagsForResourceRequest$tags": "

    A collection of key and value pairs that you want to set to an assessment.

    " - } - }, - "TagValue": { - "base": null, - "refs": { - "Tag$Value": "

    The value assigned to a tag key.

    " - } - }, - "Telemetry": { - "base": "

    The metadata about the Inspector application data metrics collected by the agent.

    This data type is used as the response element in the GetAssessmentTelemetry action.

    ", - "refs": { - "TelemetryList$member": null - } - }, - "TelemetryList": { - "base": null, - "refs": { - "Agent$telemetry": "

    The Inspector application data metrics collected by the agent.

    ", - "GetAssessmentTelemetryResponse$telemetry": "

    Telemetry details.

    " - } - }, - "TelemetryStatus": { - "base": null, - "refs": { - "Telemetry$status": "

    The category of the individual metrics that together constitute the telemetry that Inspector received from the agent.

    " - } - }, - "Text": { - "base": null, - "refs": { - "TextList$member": null - } - }, - "TextList": { - "base": null, - "refs": { - "LocalizeTextResponse$results": "

    The resulting list of user-readable texts.

    " - } - }, - "Timestamp": { - "base": null, - "refs": { - "Assessment$startTime": "

    The assessment start time.

    ", - "Assessment$endTime": "

    The assessment end time.

    ", - "Run$creationTime": "

    Run creation time that corresponds to the data collection completion time or failure.

    ", - "Run$completionTime": "

    Run completion time that corresponds to the rules packages evaluation completion time or failure.

    ", - "TimestampRange$minimum": "

    The minimum value of the timestamp range.

    ", - "TimestampRange$maximum": "

    The maximum value of the timestamp range.

    " - } - }, - "TimestampRange": { - "base": "

    This data type is used in the AssessmentsFilter and RunsFilter data types.

    ", - "refs": { - "AssessmentsFilter$startTimeRange": "

    For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the Assessment data type.

    ", - "AssessmentsFilter$endTimeRange": "

    For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the endTime property of the Assessment data type.

    ", - "RunsFilter$creationTime": "

    For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the creationTime property of the Run data type.

    ", - "RunsFilter$completionTime": "

    For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completionTime property of the Run data type.

    " - } - }, - "UpdateApplicationRequest": { - "base": null, - "refs": { - } - }, - "UpdateApplicationResponse": { - "base": null, - "refs": { - } - }, - "UpdateAssessmentRequest": { - "base": null, - "refs": { - } - }, - "UpdateAssessmentResponse": { - "base": null, - "refs": { - } - }, - "Version": { - "base": null, - "refs": { - "RulesPackage$version": "

    The version id of the rules package.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2015-08-18/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/api-2.json deleted file mode 100644 index 43e7b62be..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/api-2.json +++ /dev/null @@ -1,1964 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2016-02-16", - "endpointPrefix":"inspector", - "jsonVersion":"1.1", - "protocol":"json", - "serviceFullName":"Amazon Inspector", - "signatureVersion":"v4", - "targetPrefix":"InspectorService" - }, - "operations":{ - "AddAttributesToFindings":{ - "name":"AddAttributesToFindings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddAttributesToFindingsRequest"}, - "output":{"shape":"AddAttributesToFindingsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "CreateAssessmentTarget":{ - "name":"CreateAssessmentTarget", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateAssessmentTargetRequest"}, - "output":{"shape":"CreateAssessmentTargetResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "CreateAssessmentTemplate":{ - "name":"CreateAssessmentTemplate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateAssessmentTemplateRequest"}, - "output":{"shape":"CreateAssessmentTemplateResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "CreateResourceGroup":{ - "name":"CreateResourceGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateResourceGroupRequest"}, - "output":{"shape":"CreateResourceGroupResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"AccessDeniedException"} - ] - }, - "DeleteAssessmentRun":{ - "name":"DeleteAssessmentRun", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteAssessmentRunRequest"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AssessmentRunInProgressException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DeleteAssessmentTarget":{ - "name":"DeleteAssessmentTarget", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteAssessmentTargetRequest"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AssessmentRunInProgressException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DeleteAssessmentTemplate":{ - "name":"DeleteAssessmentTemplate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteAssessmentTemplateRequest"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AssessmentRunInProgressException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "DescribeAssessmentRuns":{ - "name":"DescribeAssessmentRuns", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAssessmentRunsRequest"}, - "output":{"shape":"DescribeAssessmentRunsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"} - ] - }, - "DescribeAssessmentTargets":{ - "name":"DescribeAssessmentTargets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAssessmentTargetsRequest"}, - "output":{"shape":"DescribeAssessmentTargetsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"} - ] - }, - "DescribeAssessmentTemplates":{ - "name":"DescribeAssessmentTemplates", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAssessmentTemplatesRequest"}, - "output":{"shape":"DescribeAssessmentTemplatesResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"} - ] - }, - "DescribeCrossAccountAccessRole":{ - "name":"DescribeCrossAccountAccessRole", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "output":{"shape":"DescribeCrossAccountAccessRoleResponse"}, - "errors":[ - {"shape":"InternalException"} - ] - }, - "DescribeFindings":{ - "name":"DescribeFindings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeFindingsRequest"}, - "output":{"shape":"DescribeFindingsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"} - ] - }, - "DescribeResourceGroups":{ - "name":"DescribeResourceGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeResourceGroupsRequest"}, - "output":{"shape":"DescribeResourceGroupsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"} - ] - }, - "DescribeRulesPackages":{ - "name":"DescribeRulesPackages", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeRulesPackagesRequest"}, - "output":{"shape":"DescribeRulesPackagesResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"} - ] - }, - "GetTelemetryMetadata":{ - "name":"GetTelemetryMetadata", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetTelemetryMetadataRequest"}, - "output":{"shape":"GetTelemetryMetadataResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListAssessmentRunAgents":{ - "name":"ListAssessmentRunAgents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAssessmentRunAgentsRequest"}, - "output":{"shape":"ListAssessmentRunAgentsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListAssessmentRuns":{ - "name":"ListAssessmentRuns", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAssessmentRunsRequest"}, - "output":{"shape":"ListAssessmentRunsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListAssessmentTargets":{ - "name":"ListAssessmentTargets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAssessmentTargetsRequest"}, - "output":{"shape":"ListAssessmentTargetsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"} - ] - }, - "ListAssessmentTemplates":{ - "name":"ListAssessmentTemplates", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAssessmentTemplatesRequest"}, - "output":{"shape":"ListAssessmentTemplatesResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListEventSubscriptions":{ - "name":"ListEventSubscriptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListEventSubscriptionsRequest"}, - "output":{"shape":"ListEventSubscriptionsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListFindings":{ - "name":"ListFindings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListFindingsRequest"}, - "output":{"shape":"ListFindingsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "ListRulesPackages":{ - "name":"ListRulesPackages", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRulesPackagesRequest"}, - "output":{"shape":"ListRulesPackagesResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceRequest"}, - "output":{"shape":"ListTagsForResourceResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "PreviewAgents":{ - "name":"PreviewAgents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PreviewAgentsRequest"}, - "output":{"shape":"PreviewAgentsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidCrossAccountRoleException"} - ] - }, - "RegisterCrossAccountAccessRole":{ - "name":"RegisterCrossAccountAccessRole", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RegisterCrossAccountAccessRoleRequest"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"InvalidCrossAccountRoleException"} - ] - }, - "RemoveAttributesFromFindings":{ - "name":"RemoveAttributesFromFindings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveAttributesFromFindingsRequest"}, - "output":{"shape":"RemoveAttributesFromFindingsResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "SetTagsForResource":{ - "name":"SetTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SetTagsForResourceRequest"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "StartAssessmentRun":{ - "name":"StartAssessmentRun", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StartAssessmentRunRequest"}, - "output":{"shape":"StartAssessmentRunResponse"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"}, - {"shape":"InvalidCrossAccountRoleException"}, - {"shape":"AgentsAlreadyRunningAssessmentException"} - ] - }, - "StopAssessmentRun":{ - "name":"StopAssessmentRun", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StopAssessmentRunRequest"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "SubscribeToEvent":{ - "name":"SubscribeToEvent", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SubscribeToEventRequest"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "UnsubscribeFromEvent":{ - "name":"UnsubscribeFromEvent", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UnsubscribeFromEventRequest"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - }, - "UpdateAssessmentTarget":{ - "name":"UpdateAssessmentTarget", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateAssessmentTargetRequest"}, - "errors":[ - {"shape":"InternalException"}, - {"shape":"InvalidInputException"}, - {"shape":"AccessDeniedException"}, - {"shape":"NoSuchEntityException"} - ] - } - }, - "shapes":{ - "AccessDeniedErrorCode":{ - "type":"string", - "enum":[ - "ACCESS_DENIED_TO_ASSESSMENT_TARGET", - "ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE", - "ACCESS_DENIED_TO_ASSESSMENT_RUN", - "ACCESS_DENIED_TO_FINDING", - "ACCESS_DENIED_TO_RESOURCE_GROUP", - "ACCESS_DENIED_TO_RULES_PACKAGE", - "ACCESS_DENIED_TO_SNS_TOPIC", - "ACCESS_DENIED_TO_IAM_ROLE" - ] - }, - "AccessDeniedException":{ - "type":"structure", - "required":[ - "message", - "errorCode", - "canRetry" - ], - "members":{ - "message":{"shape":"ErrorMessage"}, - "errorCode":{"shape":"AccessDeniedErrorCode"}, - "canRetry":{"shape":"Bool"} - }, - "exception":true - }, - "AddAttributesToFindingsRequest":{ - "type":"structure", - "required":[ - "findingArns", - "attributes" - ], - "members":{ - "findingArns":{"shape":"AddRemoveAttributesFindingArnList"}, - "attributes":{"shape":"UserAttributeList"} - } - }, - "AddAttributesToFindingsResponse":{ - "type":"structure", - "required":["failedItems"], - "members":{ - "failedItems":{"shape":"FailedItems"} - } - }, - "AddRemoveAttributesFindingArnList":{ - "type":"list", - "member":{"shape":"Arn"}, - "max":10, - "min":1 - }, - "AgentAlreadyRunningAssessment":{ - "type":"structure", - "required":[ - "agentId", - "assessmentRunArn" - ], - "members":{ - "agentId":{"shape":"AgentId"}, - "assessmentRunArn":{"shape":"Arn"} - } - }, - "AgentAlreadyRunningAssessmentList":{ - "type":"list", - "member":{"shape":"AgentAlreadyRunningAssessment"}, - "max":10, - "min":1 - }, - "AgentFilter":{ - "type":"structure", - "required":[ - "agentHealths", - "agentHealthCodes" - ], - "members":{ - "agentHealths":{"shape":"AgentHealthList"}, - "agentHealthCodes":{"shape":"AgentHealthCodeList"} - } - }, - "AgentHealth":{ - "type":"string", - "enum":[ - "HEALTHY", - "UNHEALTHY" - ] - }, - "AgentHealthCode":{ - "type":"string", - "enum":[ - "IDLE", - "RUNNING", - "SHUTDOWN", - "UNHEALTHY", - "THROTTLED", - "UNKNOWN" - ] - }, - "AgentHealthCodeList":{ - "type":"list", - "member":{"shape":"AgentHealthCode"}, - "max":10, - "min":0 - }, - "AgentHealthList":{ - "type":"list", - "member":{"shape":"AgentHealth"}, - "max":10, - "min":0 - }, - "AgentId":{ - "type":"string", - "max":128, - "min":1 - }, - "AgentIdList":{ - "type":"list", - "member":{"shape":"AgentId"}, - "max":500, - "min":0 - }, - "AgentPreview":{ - "type":"structure", - "required":["agentId"], - "members":{ - "agentId":{"shape":"AgentId"}, - "autoScalingGroup":{"shape":"AutoScalingGroup"} - } - }, - "AgentPreviewList":{ - "type":"list", - "member":{"shape":"AgentPreview"}, - "max":100, - "min":0 - }, - "AgentsAlreadyRunningAssessmentException":{ - "type":"structure", - "required":[ - "message", - "agents", - "agentsTruncated", - "canRetry" - ], - "members":{ - "message":{"shape":"ErrorMessage"}, - "agents":{"shape":"AgentAlreadyRunningAssessmentList"}, - "agentsTruncated":{"shape":"Bool"}, - "canRetry":{"shape":"Bool"} - }, - "exception":true - }, - "AmiId":{ - "type":"string", - "max":256, - "min":0 - }, - "Arn":{ - "type":"string", - "max":300, - "min":1 - }, - "AssessmentRulesPackageArnList":{ - "type":"list", - "member":{"shape":"Arn"}, - "max":50, - "min":1 - }, - "AssessmentRun":{ - "type":"structure", - "required":[ - "arn", - "name", - "assessmentTemplateArn", - "state", - "durationInSeconds", - "rulesPackageArns", - "userAttributesForFindings", - "createdAt", - "stateChangedAt", - "dataCollected", - "stateChanges", - "notifications" - ], - "members":{ - "arn":{"shape":"Arn"}, - "name":{"shape":"AssessmentRunName"}, - "assessmentTemplateArn":{"shape":"Arn"}, - "state":{"shape":"AssessmentRunState"}, - "durationInSeconds":{"shape":"AssessmentRunDuration"}, - "rulesPackageArns":{"shape":"AssessmentRulesPackageArnList"}, - "userAttributesForFindings":{"shape":"UserAttributeList"}, - "createdAt":{"shape":"Timestamp"}, - "startedAt":{"shape":"Timestamp"}, - "completedAt":{"shape":"Timestamp"}, - "stateChangedAt":{"shape":"Timestamp"}, - "dataCollected":{"shape":"Bool"}, - "stateChanges":{"shape":"AssessmentRunStateChangeList"}, - "notifications":{"shape":"AssessmentRunNotificationList"} - } - }, - "AssessmentRunAgent":{ - "type":"structure", - "required":[ - "agentId", - "assessmentRunArn", - "agentHealth", - "agentHealthCode", - "telemetryMetadata" - ], - "members":{ - "agentId":{"shape":"AgentId"}, - "assessmentRunArn":{"shape":"Arn"}, - "agentHealth":{"shape":"AgentHealth"}, - "agentHealthCode":{"shape":"AgentHealthCode"}, - "agentHealthDetails":{"shape":"Message"}, - "autoScalingGroup":{"shape":"AutoScalingGroup"}, - "telemetryMetadata":{"shape":"TelemetryMetadataList"} - } - }, - "AssessmentRunAgentList":{ - "type":"list", - "member":{"shape":"AssessmentRunAgent"}, - "max":500, - "min":0 - }, - "AssessmentRunDuration":{ - "type":"integer", - "max":86400, - "min":180 - }, - "AssessmentRunFilter":{ - "type":"structure", - "members":{ - "namePattern":{"shape":"NamePattern"}, - "states":{"shape":"AssessmentRunStateList"}, - "durationRange":{"shape":"DurationRange"}, - "rulesPackageArns":{"shape":"FilterRulesPackageArnList"}, - "startTimeRange":{"shape":"TimestampRange"}, - "completionTimeRange":{"shape":"TimestampRange"}, - "stateChangeTimeRange":{"shape":"TimestampRange"} - } - }, - "AssessmentRunInProgressArnList":{ - "type":"list", - "member":{"shape":"Arn"}, - "max":10, - "min":1 - }, - "AssessmentRunInProgressException":{ - "type":"structure", - "required":[ - "message", - "assessmentRunArns", - "assessmentRunArnsTruncated", - "canRetry" - ], - "members":{ - "message":{"shape":"ErrorMessage"}, - "assessmentRunArns":{"shape":"AssessmentRunInProgressArnList"}, - "assessmentRunArnsTruncated":{"shape":"Bool"}, - "canRetry":{"shape":"Bool"} - }, - "exception":true - }, - "AssessmentRunList":{ - "type":"list", - "member":{"shape":"AssessmentRun"}, - "max":10, - "min":0 - }, - "AssessmentRunName":{ - "type":"string", - "max":140, - "min":1 - }, - "AssessmentRunNotification":{ - "type":"structure", - "required":[ - "date", - "event", - "error" - ], - "members":{ - "date":{"shape":"Timestamp"}, - "event":{"shape":"InspectorEvent"}, - "message":{"shape":"Message"}, - "error":{"shape":"Bool"}, - "snsTopicArn":{"shape":"Arn"}, - "snsPublishStatusCode":{"shape":"AssessmentRunNotificationSnsStatusCode"} - } - }, - "AssessmentRunNotificationList":{ - "type":"list", - "member":{"shape":"AssessmentRunNotification"}, - "max":50, - "min":0 - }, - "AssessmentRunNotificationSnsStatusCode":{ - "type":"string", - "enum":[ - "SUCCESS", - "TOPIC_DOES_NOT_EXIST", - "ACCESS_DENIED", - "INTERNAL_ERROR" - ] - }, - "AssessmentRunState":{ - "type":"string", - "enum":[ - "CREATED", - "START_DATA_COLLECTION_PENDING", - "START_DATA_COLLECTION_IN_PROGRESS", - "COLLECTING_DATA", - "STOP_DATA_COLLECTION_PENDING", - "DATA_COLLECTED", - "EVALUATING_RULES", - "FAILED", - "COMPLETED", - "COMPLETED_WITH_ERRORS" - ] - }, - "AssessmentRunStateChange":{ - "type":"structure", - "required":[ - "stateChangedAt", - "state" - ], - "members":{ - "stateChangedAt":{"shape":"Timestamp"}, - "state":{"shape":"AssessmentRunState"} - } - }, - "AssessmentRunStateChangeList":{ - "type":"list", - "member":{"shape":"AssessmentRunStateChange"}, - "max":50, - "min":0 - }, - "AssessmentRunStateList":{ - "type":"list", - "member":{"shape":"AssessmentRunState"}, - "max":50, - "min":0 - }, - "AssessmentTarget":{ - "type":"structure", - "required":[ - "arn", - "name", - "resourceGroupArn", - "createdAt", - "updatedAt" - ], - "members":{ - "arn":{"shape":"Arn"}, - "name":{"shape":"AssessmentTargetName"}, - "resourceGroupArn":{"shape":"Arn"}, - "createdAt":{"shape":"Timestamp"}, - "updatedAt":{"shape":"Timestamp"} - } - }, - "AssessmentTargetFilter":{ - "type":"structure", - "members":{ - "assessmentTargetNamePattern":{"shape":"NamePattern"} - } - }, - "AssessmentTargetList":{ - "type":"list", - "member":{"shape":"AssessmentTarget"}, - "max":10, - "min":0 - }, - "AssessmentTargetName":{ - "type":"string", - "max":140, - "min":1 - }, - "AssessmentTemplate":{ - "type":"structure", - "required":[ - "arn", - "name", - "assessmentTargetArn", - "durationInSeconds", - "rulesPackageArns", - "userAttributesForFindings", - "createdAt" - ], - "members":{ - "arn":{"shape":"Arn"}, - "name":{"shape":"AssessmentTemplateName"}, - "assessmentTargetArn":{"shape":"Arn"}, - "durationInSeconds":{"shape":"AssessmentRunDuration"}, - "rulesPackageArns":{"shape":"AssessmentTemplateRulesPackageArnList"}, - "userAttributesForFindings":{"shape":"UserAttributeList"}, - "createdAt":{"shape":"Timestamp"} - } - }, - "AssessmentTemplateFilter":{ - "type":"structure", - "members":{ - "namePattern":{"shape":"NamePattern"}, - "durationRange":{"shape":"DurationRange"}, - "rulesPackageArns":{"shape":"FilterRulesPackageArnList"} - } - }, - "AssessmentTemplateList":{ - "type":"list", - "member":{"shape":"AssessmentTemplate"}, - "max":10, - "min":0 - }, - "AssessmentTemplateName":{ - "type":"string", - "max":140, - "min":1 - }, - "AssessmentTemplateRulesPackageArnList":{ - "type":"list", - "member":{"shape":"Arn"}, - "max":50, - "min":0 - }, - "AssetAttributes":{ - "type":"structure", - "required":["schemaVersion"], - "members":{ - "schemaVersion":{"shape":"NumericVersion"}, - "agentId":{"shape":"AgentId"}, - "autoScalingGroup":{"shape":"AutoScalingGroup"}, - "amiId":{"shape":"AmiId"}, - "hostname":{"shape":"Hostname"}, - "ipv4Addresses":{"shape":"Ipv4AddressList"} - } - }, - "AssetType":{ - "type":"string", - "enum":["ec2-instance"] - }, - "Attribute":{ - "type":"structure", - "required":["key"], - "members":{ - "key":{"shape":"AttributeKey"}, - "value":{"shape":"AttributeValue"} - } - }, - "AttributeKey":{ - "type":"string", - "max":128, - "min":1 - }, - "AttributeList":{ - "type":"list", - "member":{"shape":"Attribute"}, - "max":50, - "min":0 - }, - "AttributeValue":{ - "type":"string", - "max":256, - "min":1 - }, - "AutoScalingGroup":{ - "type":"string", - "max":256, - "min":1 - }, - "AutoScalingGroupList":{ - "type":"list", - "member":{"shape":"AutoScalingGroup"}, - "max":20, - "min":0 - }, - "BatchDescribeArnList":{ - "type":"list", - "member":{"shape":"Arn"}, - "max":10, - "min":1 - }, - "Bool":{"type":"boolean"}, - "CreateAssessmentTargetRequest":{ - "type":"structure", - "required":[ - "assessmentTargetName", - "resourceGroupArn" - ], - "members":{ - "assessmentTargetName":{"shape":"AssessmentTargetName"}, - "resourceGroupArn":{"shape":"Arn"} - } - }, - "CreateAssessmentTargetResponse":{ - "type":"structure", - "required":["assessmentTargetArn"], - "members":{ - "assessmentTargetArn":{"shape":"Arn"} - } - }, - "CreateAssessmentTemplateRequest":{ - "type":"structure", - "required":[ - "assessmentTargetArn", - "assessmentTemplateName", - "durationInSeconds", - "rulesPackageArns" - ], - "members":{ - "assessmentTargetArn":{"shape":"Arn"}, - "assessmentTemplateName":{"shape":"AssessmentTemplateName"}, - "durationInSeconds":{"shape":"AssessmentRunDuration"}, - "rulesPackageArns":{"shape":"AssessmentTemplateRulesPackageArnList"}, - "userAttributesForFindings":{"shape":"UserAttributeList"} - } - }, - "CreateAssessmentTemplateResponse":{ - "type":"structure", - "required":["assessmentTemplateArn"], - "members":{ - "assessmentTemplateArn":{"shape":"Arn"} - } - }, - "CreateResourceGroupRequest":{ - "type":"structure", - "required":["resourceGroupTags"], - "members":{ - "resourceGroupTags":{"shape":"ResourceGroupTags"} - } - }, - "CreateResourceGroupResponse":{ - "type":"structure", - "required":["resourceGroupArn"], - "members":{ - "resourceGroupArn":{"shape":"Arn"} - } - }, - "DeleteAssessmentRunRequest":{ - "type":"structure", - "required":["assessmentRunArn"], - "members":{ - "assessmentRunArn":{"shape":"Arn"} - } - }, - "DeleteAssessmentTargetRequest":{ - "type":"structure", - "required":["assessmentTargetArn"], - "members":{ - "assessmentTargetArn":{"shape":"Arn"} - } - }, - "DeleteAssessmentTemplateRequest":{ - "type":"structure", - "required":["assessmentTemplateArn"], - "members":{ - "assessmentTemplateArn":{"shape":"Arn"} - } - }, - "DescribeAssessmentRunsRequest":{ - "type":"structure", - "required":["assessmentRunArns"], - "members":{ - "assessmentRunArns":{"shape":"BatchDescribeArnList"} - } - }, - "DescribeAssessmentRunsResponse":{ - "type":"structure", - "required":[ - "assessmentRuns", - "failedItems" - ], - "members":{ - "assessmentRuns":{"shape":"AssessmentRunList"}, - "failedItems":{"shape":"FailedItems"} - } - }, - "DescribeAssessmentTargetsRequest":{ - "type":"structure", - "required":["assessmentTargetArns"], - "members":{ - "assessmentTargetArns":{"shape":"BatchDescribeArnList"} - } - }, - "DescribeAssessmentTargetsResponse":{ - "type":"structure", - "required":[ - "assessmentTargets", - "failedItems" - ], - "members":{ - "assessmentTargets":{"shape":"AssessmentTargetList"}, - "failedItems":{"shape":"FailedItems"} - } - }, - "DescribeAssessmentTemplatesRequest":{ - "type":"structure", - "required":["assessmentTemplateArns"], - "members":{ - "assessmentTemplateArns":{"shape":"BatchDescribeArnList"} - } - }, - "DescribeAssessmentTemplatesResponse":{ - "type":"structure", - "required":[ - "assessmentTemplates", - "failedItems" - ], - "members":{ - "assessmentTemplates":{"shape":"AssessmentTemplateList"}, - "failedItems":{"shape":"FailedItems"} - } - }, - "DescribeCrossAccountAccessRoleResponse":{ - "type":"structure", - "required":[ - "roleArn", - "valid", - "registeredAt" - ], - "members":{ - "roleArn":{"shape":"Arn"}, - "valid":{"shape":"Bool"}, - "registeredAt":{"shape":"Timestamp"} - } - }, - "DescribeFindingsRequest":{ - "type":"structure", - "required":["findingArns"], - "members":{ - "findingArns":{"shape":"BatchDescribeArnList"}, - "locale":{"shape":"Locale"} - } - }, - "DescribeFindingsResponse":{ - "type":"structure", - "required":[ - "findings", - "failedItems" - ], - "members":{ - "findings":{"shape":"FindingList"}, - "failedItems":{"shape":"FailedItems"} - } - }, - "DescribeResourceGroupsRequest":{ - "type":"structure", - "required":["resourceGroupArns"], - "members":{ - "resourceGroupArns":{"shape":"BatchDescribeArnList"} - } - }, - "DescribeResourceGroupsResponse":{ - "type":"structure", - "required":[ - "resourceGroups", - "failedItems" - ], - "members":{ - "resourceGroups":{"shape":"ResourceGroupList"}, - "failedItems":{"shape":"FailedItems"} - } - }, - "DescribeRulesPackagesRequest":{ - "type":"structure", - "required":["rulesPackageArns"], - "members":{ - "rulesPackageArns":{"shape":"BatchDescribeArnList"}, - "locale":{"shape":"Locale"} - } - }, - "DescribeRulesPackagesResponse":{ - "type":"structure", - "required":[ - "rulesPackages", - "failedItems" - ], - "members":{ - "rulesPackages":{"shape":"RulesPackageList"}, - "failedItems":{"shape":"FailedItems"} - } - }, - "DurationRange":{ - "type":"structure", - "members":{ - "minSeconds":{"shape":"AssessmentRunDuration"}, - "maxSeconds":{"shape":"AssessmentRunDuration"} - } - }, - "ErrorMessage":{ - "type":"string", - "max":1000, - "min":0 - }, - "EventSubscription":{ - "type":"structure", - "required":[ - "event", - "subscribedAt" - ], - "members":{ - "event":{"shape":"InspectorEvent"}, - "subscribedAt":{"shape":"Timestamp"} - } - }, - "EventSubscriptionList":{ - "type":"list", - "member":{"shape":"EventSubscription"}, - "max":50, - "min":1 - }, - "FailedItemDetails":{ - "type":"structure", - "required":[ - "failureCode", - "retryable" - ], - "members":{ - "failureCode":{"shape":"FailedItemErrorCode"}, - "retryable":{"shape":"Bool"} - } - }, - "FailedItemErrorCode":{ - "type":"string", - "enum":[ - "INVALID_ARN", - "DUPLICATE_ARN", - "ITEM_DOES_NOT_EXIST", - "ACCESS_DENIED", - "LIMIT_EXCEEDED", - "INTERNAL_ERROR" - ] - }, - "FailedItems":{ - "type":"map", - "key":{"shape":"Arn"}, - "value":{"shape":"FailedItemDetails"} - }, - "FilterRulesPackageArnList":{ - "type":"list", - "member":{"shape":"Arn"}, - "max":50, - "min":0 - }, - "Finding":{ - "type":"structure", - "required":[ - "arn", - "attributes", - "userAttributes", - "createdAt", - "updatedAt" - ], - "members":{ - "arn":{"shape":"Arn"}, - "schemaVersion":{"shape":"NumericVersion"}, - "service":{"shape":"ServiceName"}, - "serviceAttributes":{"shape":"InspectorServiceAttributes"}, - "assetType":{"shape":"AssetType"}, - "assetAttributes":{"shape":"AssetAttributes"}, - "id":{"shape":"FindingId"}, - "title":{"shape":"Text"}, - "description":{"shape":"Text"}, - "recommendation":{"shape":"Text"}, - "severity":{"shape":"Severity"}, - "numericSeverity":{"shape":"NumericSeverity"}, - "confidence":{"shape":"IocConfidence"}, - "indicatorOfCompromise":{"shape":"Bool"}, - "attributes":{"shape":"AttributeList"}, - "userAttributes":{"shape":"UserAttributeList"}, - "createdAt":{"shape":"Timestamp"}, - "updatedAt":{"shape":"Timestamp"} - } - }, - "FindingFilter":{ - "type":"structure", - "members":{ - "agentIds":{"shape":"AgentIdList"}, - "autoScalingGroups":{"shape":"AutoScalingGroupList"}, - "ruleNames":{"shape":"RuleNameList"}, - "severities":{"shape":"SeverityList"}, - "rulesPackageArns":{"shape":"FilterRulesPackageArnList"}, - "attributes":{"shape":"AttributeList"}, - "userAttributes":{"shape":"AttributeList"}, - "creationTimeRange":{"shape":"TimestampRange"} - } - }, - "FindingId":{ - "type":"string", - "max":128, - "min":0 - }, - "FindingList":{ - "type":"list", - "member":{"shape":"Finding"}, - "max":10, - "min":0 - }, - "GetTelemetryMetadataRequest":{ - "type":"structure", - "required":["assessmentRunArn"], - "members":{ - "assessmentRunArn":{"shape":"Arn"} - } - }, - "GetTelemetryMetadataResponse":{ - "type":"structure", - "required":["telemetryMetadata"], - "members":{ - "telemetryMetadata":{"shape":"TelemetryMetadataList"} - } - }, - "Hostname":{ - "type":"string", - "max":256, - "min":0 - }, - "InspectorEvent":{ - "type":"string", - "enum":[ - "ASSESSMENT_RUN_STARTED", - "ASSESSMENT_RUN_COMPLETED", - "ASSESSMENT_RUN_STATE_CHANGED", - "FINDING_REPORTED", - "OTHER" - ] - }, - "InspectorServiceAttributes":{ - "type":"structure", - "required":["schemaVersion"], - "members":{ - "schemaVersion":{"shape":"NumericVersion"}, - "assessmentRunArn":{"shape":"Arn"}, - "rulesPackageArn":{"shape":"Arn"} - } - }, - "InternalException":{ - "type":"structure", - "required":[ - "message", - "canRetry" - ], - "members":{ - "message":{"shape":"ErrorMessage"}, - "canRetry":{"shape":"Bool"} - }, - "exception":true, - "fault":true - }, - "InvalidCrossAccountRoleErrorCode":{ - "type":"string", - "enum":[ - "ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP", - "ROLE_DOES_NOT_HAVE_CORRECT_POLICY" - ] - }, - "InvalidCrossAccountRoleException":{ - "type":"structure", - "required":[ - "message", - "errorCode", - "canRetry" - ], - "members":{ - "message":{"shape":"ErrorMessage"}, - "errorCode":{"shape":"InvalidCrossAccountRoleErrorCode"}, - "canRetry":{"shape":"Bool"} - }, - "exception":true - }, - "InvalidInputErrorCode":{ - "type":"string", - "enum":[ - "INVALID_ASSESSMENT_TARGET_ARN", - "INVALID_ASSESSMENT_TEMPLATE_ARN", - "INVALID_ASSESSMENT_RUN_ARN", - "INVALID_FINDING_ARN", - "INVALID_RESOURCE_GROUP_ARN", - "INVALID_RULES_PACKAGE_ARN", - "INVALID_RESOURCE_ARN", - "INVALID_SNS_TOPIC_ARN", - "INVALID_IAM_ROLE_ARN", - "INVALID_ASSESSMENT_TARGET_NAME", - "INVALID_ASSESSMENT_TARGET_NAME_PATTERN", - "INVALID_ASSESSMENT_TEMPLATE_NAME", - "INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN", - "INVALID_ASSESSMENT_TEMPLATE_DURATION", - "INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE", - "INVALID_ASSESSMENT_RUN_DURATION_RANGE", - "INVALID_ASSESSMENT_RUN_START_TIME_RANGE", - "INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE", - "INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE", - "INVALID_ASSESSMENT_RUN_STATE", - "INVALID_TAG", - "INVALID_TAG_KEY", - "INVALID_TAG_VALUE", - "INVALID_RESOURCE_GROUP_TAG_KEY", - "INVALID_RESOURCE_GROUP_TAG_VALUE", - "INVALID_ATTRIBUTE", - "INVALID_USER_ATTRIBUTE", - "INVALID_USER_ATTRIBUTE_KEY", - "INVALID_USER_ATTRIBUTE_VALUE", - "INVALID_PAGINATION_TOKEN", - "INVALID_MAX_RESULTS", - "INVALID_AGENT_ID", - "INVALID_AUTO_SCALING_GROUP", - "INVALID_RULE_NAME", - "INVALID_SEVERITY", - "INVALID_LOCALE", - "INVALID_EVENT", - "ASSESSMENT_TARGET_NAME_ALREADY_TAKEN", - "ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN", - "INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS", - "INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS", - "INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS", - "INVALID_NUMBER_OF_FINDING_ARNS", - "INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS", - "INVALID_NUMBER_OF_RULES_PACKAGE_ARNS", - "INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES", - "INVALID_NUMBER_OF_TAGS", - "INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS", - "INVALID_NUMBER_OF_ATTRIBUTES", - "INVALID_NUMBER_OF_USER_ATTRIBUTES", - "INVALID_NUMBER_OF_AGENT_IDS", - "INVALID_NUMBER_OF_AUTO_SCALING_GROUPS", - "INVALID_NUMBER_OF_RULE_NAMES", - "INVALID_NUMBER_OF_SEVERITIES" - ] - }, - "InvalidInputException":{ - "type":"structure", - "required":[ - "message", - "errorCode", - "canRetry" - ], - "members":{ - "message":{"shape":"ErrorMessage"}, - "errorCode":{"shape":"InvalidInputErrorCode"}, - "canRetry":{"shape":"Bool"} - }, - "exception":true - }, - "IocConfidence":{ - "type":"integer", - "max":10, - "min":0 - }, - "Ipv4Address":{ - "type":"string", - "max":15, - "min":7 - }, - "Ipv4AddressList":{ - "type":"list", - "member":{"shape":"Ipv4Address"}, - "max":50, - "min":0 - }, - "LimitExceededErrorCode":{ - "type":"string", - "enum":[ - "ASSESSMENT_TARGET_LIMIT_EXCEEDED", - "ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED", - "ASSESSMENT_RUN_LIMIT_EXCEEDED", - "RESOURCE_GROUP_LIMIT_EXCEEDED", - "EVENT_SUBSCRIPTION_LIMIT_EXCEEDED" - ] - }, - "LimitExceededException":{ - "type":"structure", - "required":[ - "message", - "errorCode", - "canRetry" - ], - "members":{ - "message":{"shape":"ErrorMessage"}, - "errorCode":{"shape":"LimitExceededErrorCode"}, - "canRetry":{"shape":"Bool"} - }, - "exception":true - }, - "ListAssessmentRunAgentsRequest":{ - "type":"structure", - "required":["assessmentRunArn"], - "members":{ - "assessmentRunArn":{"shape":"Arn"}, - "filter":{"shape":"AgentFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"ListMaxResults"} - } - }, - "ListAssessmentRunAgentsResponse":{ - "type":"structure", - "required":["assessmentRunAgents"], - "members":{ - "assessmentRunAgents":{"shape":"AssessmentRunAgentList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListAssessmentRunsRequest":{ - "type":"structure", - "members":{ - "assessmentTemplateArns":{"shape":"ListParentArnList"}, - "filter":{"shape":"AssessmentRunFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"ListMaxResults"} - } - }, - "ListAssessmentRunsResponse":{ - "type":"structure", - "required":["assessmentRunArns"], - "members":{ - "assessmentRunArns":{"shape":"ListReturnedArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListAssessmentTargetsRequest":{ - "type":"structure", - "members":{ - "filter":{"shape":"AssessmentTargetFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"ListMaxResults"} - } - }, - "ListAssessmentTargetsResponse":{ - "type":"structure", - "required":["assessmentTargetArns"], - "members":{ - "assessmentTargetArns":{"shape":"ListReturnedArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListAssessmentTemplatesRequest":{ - "type":"structure", - "members":{ - "assessmentTargetArns":{"shape":"ListParentArnList"}, - "filter":{"shape":"AssessmentTemplateFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"ListMaxResults"} - } - }, - "ListAssessmentTemplatesResponse":{ - "type":"structure", - "required":["assessmentTemplateArns"], - "members":{ - "assessmentTemplateArns":{"shape":"ListReturnedArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListEventSubscriptionsMaxResults":{"type":"integer"}, - "ListEventSubscriptionsRequest":{ - "type":"structure", - "members":{ - "resourceArn":{"shape":"Arn"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"ListEventSubscriptionsMaxResults"} - } - }, - "ListEventSubscriptionsResponse":{ - "type":"structure", - "required":["subscriptions"], - "members":{ - "subscriptions":{"shape":"SubscriptionList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListFindingsRequest":{ - "type":"structure", - "members":{ - "assessmentRunArns":{"shape":"ListParentArnList"}, - "filter":{"shape":"FindingFilter"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"ListMaxResults"} - } - }, - "ListFindingsResponse":{ - "type":"structure", - "required":["findingArns"], - "members":{ - "findingArns":{"shape":"ListReturnedArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListMaxResults":{"type":"integer"}, - "ListParentArnList":{ - "type":"list", - "member":{"shape":"Arn"}, - "max":50, - "min":0 - }, - "ListReturnedArnList":{ - "type":"list", - "member":{"shape":"Arn"}, - "max":100, - "min":0 - }, - "ListRulesPackagesRequest":{ - "type":"structure", - "members":{ - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"ListMaxResults"} - } - }, - "ListRulesPackagesResponse":{ - "type":"structure", - "required":["rulesPackageArns"], - "members":{ - "rulesPackageArns":{"shape":"ListReturnedArnList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ListTagsForResourceRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{"shape":"Arn"} - } - }, - "ListTagsForResourceResponse":{ - "type":"structure", - "required":["tags"], - "members":{ - "tags":{"shape":"TagList"} - } - }, - "Locale":{ - "type":"string", - "enum":["EN_US"] - }, - "Long":{"type":"long"}, - "Message":{ - "type":"string", - "max":1000, - "min":0 - }, - "MessageType":{ - "type":"string", - "max":300, - "min":1 - }, - "NamePattern":{ - "type":"string", - "max":140, - "min":1 - }, - "NoSuchEntityErrorCode":{ - "type":"string", - "enum":[ - "ASSESSMENT_TARGET_DOES_NOT_EXIST", - "ASSESSMENT_TEMPLATE_DOES_NOT_EXIST", - "ASSESSMENT_RUN_DOES_NOT_EXIST", - "FINDING_DOES_NOT_EXIST", - "RESOURCE_GROUP_DOES_NOT_EXIST", - "RULES_PACKAGE_DOES_NOT_EXIST", - "SNS_TOPIC_DOES_NOT_EXIST", - "IAM_ROLE_DOES_NOT_EXIST" - ] - }, - "NoSuchEntityException":{ - "type":"structure", - "required":[ - "message", - "errorCode", - "canRetry" - ], - "members":{ - "message":{"shape":"ErrorMessage"}, - "errorCode":{"shape":"NoSuchEntityErrorCode"}, - "canRetry":{"shape":"Bool"} - }, - "exception":true - }, - "NumericSeverity":{ - "type":"double", - "max":10.0, - "min":0.0 - }, - "NumericVersion":{ - "type":"integer", - "min":0 - }, - "PaginationToken":{ - "type":"string", - "max":300, - "min":1 - }, - "PreviewAgentsMaxResults":{"type":"integer"}, - "PreviewAgentsRequest":{ - "type":"structure", - "required":["previewAgentsArn"], - "members":{ - "previewAgentsArn":{"shape":"Arn"}, - "nextToken":{"shape":"PaginationToken"}, - "maxResults":{"shape":"PreviewAgentsMaxResults"} - } - }, - "PreviewAgentsResponse":{ - "type":"structure", - "required":["agentPreviews"], - "members":{ - "agentPreviews":{"shape":"AgentPreviewList"}, - "nextToken":{"shape":"PaginationToken"} - } - }, - "ProviderName":{ - "type":"string", - "max":1000, - "min":0 - }, - "RegisterCrossAccountAccessRoleRequest":{ - "type":"structure", - "required":["roleArn"], - "members":{ - "roleArn":{"shape":"Arn"} - } - }, - "RemoveAttributesFromFindingsRequest":{ - "type":"structure", - "required":[ - "findingArns", - "attributeKeys" - ], - "members":{ - "findingArns":{"shape":"AddRemoveAttributesFindingArnList"}, - "attributeKeys":{"shape":"UserAttributeKeyList"} - } - }, - "RemoveAttributesFromFindingsResponse":{ - "type":"structure", - "required":["failedItems"], - "members":{ - "failedItems":{"shape":"FailedItems"} - } - }, - "ResourceGroup":{ - "type":"structure", - "required":[ - "arn", - "tags", - "createdAt" - ], - "members":{ - "arn":{"shape":"Arn"}, - "tags":{"shape":"ResourceGroupTags"}, - "createdAt":{"shape":"Timestamp"} - } - }, - "ResourceGroupList":{ - "type":"list", - "member":{"shape":"ResourceGroup"}, - "max":10, - "min":0 - }, - "ResourceGroupTag":{ - "type":"structure", - "required":["key"], - "members":{ - "key":{"shape":"TagKey"}, - "value":{"shape":"TagValue"} - } - }, - "ResourceGroupTags":{ - "type":"list", - "member":{"shape":"ResourceGroupTag"}, - "max":10, - "min":1 - }, - "RuleName":{ - "type":"string", - "max":1000 - }, - "RuleNameList":{ - "type":"list", - "member":{"shape":"RuleName"}, - "max":50, - "min":0 - }, - "RulesPackage":{ - "type":"structure", - "required":[ - "arn", - "name", - "version", - "provider" - ], - "members":{ - "arn":{"shape":"Arn"}, - "name":{"shape":"RulesPackageName"}, - "version":{"shape":"Version"}, - "provider":{"shape":"ProviderName"}, - "description":{"shape":"Text"} - } - }, - "RulesPackageList":{ - "type":"list", - "member":{"shape":"RulesPackage"}, - "max":10, - "min":0 - }, - "RulesPackageName":{ - "type":"string", - "max":1000, - "min":0 - }, - "ServiceName":{ - "type":"string", - "max":128, - "min":0 - }, - "SetTagsForResourceRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{"shape":"Arn"}, - "tags":{"shape":"TagList"} - } - }, - "Severity":{ - "type":"string", - "enum":[ - "Low", - "Medium", - "High", - "Informational", - "Undefined" - ] - }, - "SeverityList":{ - "type":"list", - "member":{"shape":"Severity"}, - "max":50, - "min":0 - }, - "StartAssessmentRunRequest":{ - "type":"structure", - "required":["assessmentTemplateArn"], - "members":{ - "assessmentTemplateArn":{"shape":"Arn"}, - "assessmentRunName":{"shape":"AssessmentRunName"} - } - }, - "StartAssessmentRunResponse":{ - "type":"structure", - "required":["assessmentRunArn"], - "members":{ - "assessmentRunArn":{"shape":"Arn"} - } - }, - "StopAssessmentRunRequest":{ - "type":"structure", - "required":["assessmentRunArn"], - "members":{ - "assessmentRunArn":{"shape":"Arn"} - } - }, - "SubscribeToEventRequest":{ - "type":"structure", - "required":[ - "resourceArn", - "event", - "topicArn" - ], - "members":{ - "resourceArn":{"shape":"Arn"}, - "event":{"shape":"InspectorEvent"}, - "topicArn":{"shape":"Arn"} - } - }, - "Subscription":{ - "type":"structure", - "required":[ - "resourceArn", - "topicArn", - "eventSubscriptions" - ], - "members":{ - "resourceArn":{"shape":"Arn"}, - "topicArn":{"shape":"Arn"}, - "eventSubscriptions":{"shape":"EventSubscriptionList"} - } - }, - "SubscriptionList":{ - "type":"list", - "member":{"shape":"Subscription"}, - "max":50, - "min":0 - }, - "Tag":{ - "type":"structure", - "required":["key"], - "members":{ - "key":{"shape":"TagKey"}, - "value":{"shape":"TagValue"} - } - }, - "TagKey":{ - "type":"string", - "max":128, - "min":1 - }, - "TagList":{ - "type":"list", - "member":{"shape":"Tag"}, - "max":10, - "min":0 - }, - "TagValue":{ - "type":"string", - "max":256, - "min":1 - }, - "TelemetryMetadata":{ - "type":"structure", - "required":[ - "messageType", - "count" - ], - "members":{ - "messageType":{"shape":"MessageType"}, - "count":{"shape":"Long"}, - "dataSize":{"shape":"Long"} - } - }, - "TelemetryMetadataList":{ - "type":"list", - "member":{"shape":"TelemetryMetadata"}, - "max":5000, - "min":0 - }, - "Text":{ - "type":"string", - "max":20000, - "min":0 - }, - "Timestamp":{"type":"timestamp"}, - "TimestampRange":{ - "type":"structure", - "members":{ - "beginDate":{"shape":"Timestamp"}, - "endDate":{"shape":"Timestamp"} - } - }, - "UnsubscribeFromEventRequest":{ - "type":"structure", - "required":[ - "resourceArn", - "event", - "topicArn" - ], - "members":{ - "resourceArn":{"shape":"Arn"}, - "event":{"shape":"InspectorEvent"}, - "topicArn":{"shape":"Arn"} - } - }, - "UpdateAssessmentTargetRequest":{ - "type":"structure", - "required":[ - "assessmentTargetArn", - "assessmentTargetName", - "resourceGroupArn" - ], - "members":{ - "assessmentTargetArn":{"shape":"Arn"}, - "assessmentTargetName":{"shape":"AssessmentTargetName"}, - "resourceGroupArn":{"shape":"Arn"} - } - }, - "UserAttributeKeyList":{ - "type":"list", - "member":{"shape":"AttributeKey"}, - "max":10, - "min":0 - }, - "UserAttributeList":{ - "type":"list", - "member":{"shape":"Attribute"}, - "max":10, - "min":0 - }, - "Version":{ - "type":"string", - "max":1000, - "min":0 - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/docs-2.json deleted file mode 100644 index 2f3ec30b7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/docs-2.json +++ /dev/null @@ -1,1199 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon Inspector

    Amazon Inspector enables you to analyze the behavior of your AWS resources and to identify potential security issues. For more information, see Amazon Inspector User Guide.

    ", - "operations": { - "AddAttributesToFindings": "

    Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.

    ", - "CreateAssessmentTarget": "

    Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.

    ", - "CreateAssessmentTemplate": "

    Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.

    ", - "CreateResourceGroup": "

    Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target. For more information, see CreateAssessmentTarget.

    ", - "DeleteAssessmentRun": "

    Deletes the assessment run that is specified by the ARN of the assessment run.

    ", - "DeleteAssessmentTarget": "

    Deletes the assessment target that is specified by the ARN of the assessment target.

    ", - "DeleteAssessmentTemplate": "

    Deletes the assessment template that is specified by the ARN of the assessment template.

    ", - "DescribeAssessmentRuns": "

    Describes the assessment runs that are specified by the ARNs of the assessment runs.

    ", - "DescribeAssessmentTargets": "

    Describes the assessment targets that are specified by the ARNs of the assessment targets.

    ", - "DescribeAssessmentTemplates": "

    Describes the assessment templates that are specified by the ARNs of the assessment templates.

    ", - "DescribeCrossAccountAccessRole": "

    Describes the IAM role that enables Amazon Inspector to access your AWS account.

    ", - "DescribeFindings": "

    Describes the findings that are specified by the ARNs of the findings.

    ", - "DescribeResourceGroups": "

    Describes the resource groups that are specified by the ARNs of the resource groups.

    ", - "DescribeRulesPackages": "

    Describes the rules packages that are specified by the ARNs of the rules packages.

    ", - "GetTelemetryMetadata": "

    Information about the data that is collected for the specified assessment run.

    ", - "ListAssessmentRunAgents": "

    Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.

    ", - "ListAssessmentRuns": "

    Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.

    ", - "ListAssessmentTargets": "

    Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.

    ", - "ListAssessmentTemplates": "

    Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.

    ", - "ListEventSubscriptions": "

    Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent.

    ", - "ListFindings": "

    Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.

    ", - "ListRulesPackages": "

    Lists all available Amazon Inspector rules packages.

    ", - "ListTagsForResource": "

    Lists all tags associated with an assessment template.

    ", - "PreviewAgents": "

    Previews the agents installed on the EC2 instances that are part of the specified assessment target.

    ", - "RegisterCrossAccountAccessRole": "

    Registers the IAM role that Amazon Inspector uses to list your EC2 instances at the start of the assessment run or when you call the PreviewAgents action.

    ", - "RemoveAttributesFromFindings": "

    Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.

    ", - "SetTagsForResource": "

    Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.

    ", - "StartAssessmentRun": "

    Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.

    ", - "StopAssessmentRun": "

    Stops the assessment run that is specified by the ARN of the assessment run.

    ", - "SubscribeToEvent": "

    Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.

    ", - "UnsubscribeFromEvent": "

    Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.

    ", - "UpdateAssessmentTarget": "

    Updates the assessment target that is specified by the ARN of the assessment target.

    " - }, - "shapes": { - "AccessDeniedErrorCode": { - "base": null, - "refs": { - "AccessDeniedException$errorCode": "

    Code that indicates the type of error that is generated.

    " - } - }, - "AccessDeniedException": { - "base": "

    You do not have required permissions to access the requested resource.

    ", - "refs": { - } - }, - "AddAttributesToFindingsRequest": { - "base": null, - "refs": { - } - }, - "AddAttributesToFindingsResponse": { - "base": null, - "refs": { - } - }, - "AddRemoveAttributesFindingArnList": { - "base": null, - "refs": { - "AddAttributesToFindingsRequest$findingArns": "

    The ARNs that specify the findings that you want to assign attributes to.

    ", - "RemoveAttributesFromFindingsRequest$findingArns": "

    The ARNs that specify the findings that you want to remove attributes from.

    " - } - }, - "AgentAlreadyRunningAssessment": { - "base": "

    Used in the exception error that is thrown if you start an assessment run for an assessment target that includes an EC2 instance that is already participating in another started assessment run.

    ", - "refs": { - "AgentAlreadyRunningAssessmentList$member": null - } - }, - "AgentAlreadyRunningAssessmentList": { - "base": null, - "refs": { - "AgentsAlreadyRunningAssessmentException$agents": "

    " - } - }, - "AgentFilter": { - "base": "

    Contains information about an Amazon Inspector agent. This data type is used as a request parameter in the ListAssessmentRunAgents action.

    ", - "refs": { - "ListAssessmentRunAgentsRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    " - } - }, - "AgentHealth": { - "base": null, - "refs": { - "AgentHealthList$member": null, - "AssessmentRunAgent$agentHealth": "

    The current health state of the agent.

    " - } - }, - "AgentHealthCode": { - "base": null, - "refs": { - "AgentHealthCodeList$member": null, - "AssessmentRunAgent$agentHealthCode": "

    The detailed health state of the agent.

    " - } - }, - "AgentHealthCodeList": { - "base": null, - "refs": { - "AgentFilter$agentHealthCodes": "

    The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.

    " - } - }, - "AgentHealthList": { - "base": null, - "refs": { - "AgentFilter$agentHealths": "

    The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.

    " - } - }, - "AgentId": { - "base": null, - "refs": { - "AgentAlreadyRunningAssessment$agentId": "

    ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.

    ", - "AgentIdList$member": null, - "AgentPreview$agentId": "

    The ID of the EC2 instance where the agent is installed.

    ", - "AssessmentRunAgent$agentId": "

    The AWS account of the EC2 instance where the agent is installed.

    ", - "AssetAttributes$agentId": "

    The ID of the agent that is installed on the EC2 instance where the finding is generated.

    " - } - }, - "AgentIdList": { - "base": null, - "refs": { - "FindingFilter$agentIds": "

    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.

    " - } - }, - "AgentPreview": { - "base": "

    Used as a response element in the PreviewAgents action.

    ", - "refs": { - "AgentPreviewList$member": null - } - }, - "AgentPreviewList": { - "base": null, - "refs": { - "PreviewAgentsResponse$agentPreviews": "

    The resulting list of agents.

    " - } - }, - "AgentsAlreadyRunningAssessmentException": { - "base": "

    You started an assessment run, but one of the instances is already participating in another assessment run.

    ", - "refs": { - } - }, - "AmiId": { - "base": null, - "refs": { - "AssetAttributes$amiId": "

    The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.

    " - } - }, - "Arn": { - "base": null, - "refs": { - "AddRemoveAttributesFindingArnList$member": null, - "AgentAlreadyRunningAssessment$assessmentRunArn": "

    The ARN of the assessment run that has already been started.

    ", - "AssessmentRulesPackageArnList$member": null, - "AssessmentRun$arn": "

    The ARN of the assessment run.

    ", - "AssessmentRun$assessmentTemplateArn": "

    The ARN of the assessment template that is associated with the assessment run.

    ", - "AssessmentRunAgent$assessmentRunArn": "

    The ARN of the assessment run that is associated with the agent.

    ", - "AssessmentRunInProgressArnList$member": null, - "AssessmentRunNotification$snsTopicArn": "

    The SNS topic to which the SNS notification is sent.

    ", - "AssessmentTarget$arn": "

    The ARN that specifies the Amazon Inspector assessment target.

    ", - "AssessmentTarget$resourceGroupArn": "

    The ARN that specifies the resource group that is associated with the assessment target.

    ", - "AssessmentTemplate$arn": "

    The ARN of the assessment template.

    ", - "AssessmentTemplate$assessmentTargetArn": "

    The ARN of the assessment target that corresponds to this assessment template.

    ", - "AssessmentTemplateRulesPackageArnList$member": null, - "BatchDescribeArnList$member": null, - "CreateAssessmentTargetRequest$resourceGroupArn": "

    The ARN that specifies the resource group that is used to create the assessment target.

    ", - "CreateAssessmentTargetResponse$assessmentTargetArn": "

    The ARN that specifies the assessment target that is created.

    ", - "CreateAssessmentTemplateRequest$assessmentTargetArn": "

    The ARN that specifies the assessment target for which you want to create the assessment template.

    ", - "CreateAssessmentTemplateResponse$assessmentTemplateArn": "

    The ARN that specifies the assessment template that is created.

    ", - "CreateResourceGroupResponse$resourceGroupArn": "

    The ARN that specifies the resource group that is created.

    ", - "DeleteAssessmentRunRequest$assessmentRunArn": "

    The ARN that specifies the assessment run that you want to delete.

    ", - "DeleteAssessmentTargetRequest$assessmentTargetArn": "

    The ARN that specifies the assessment target that you want to delete.

    ", - "DeleteAssessmentTemplateRequest$assessmentTemplateArn": "

    The ARN that specifies the assessment template that you want to delete.

    ", - "DescribeCrossAccountAccessRoleResponse$roleArn": "

    The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.

    ", - "FailedItems$key": null, - "FilterRulesPackageArnList$member": null, - "Finding$arn": "

    The ARN that specifies the finding.

    ", - "GetTelemetryMetadataRequest$assessmentRunArn": "

    The ARN that specifies the assessment run that has the telemetry data that you want to obtain.

    ", - "InspectorServiceAttributes$assessmentRunArn": "

    The ARN of the assessment run during which the finding is generated.

    ", - "InspectorServiceAttributes$rulesPackageArn": "

    The ARN of the rules package that is used to generate the finding.

    ", - "ListAssessmentRunAgentsRequest$assessmentRunArn": "

    The ARN that specifies the assessment run whose agents you want to list.

    ", - "ListEventSubscriptionsRequest$resourceArn": "

    The ARN of the assessment template for which you want to list the existing event subscriptions.

    ", - "ListParentArnList$member": null, - "ListReturnedArnList$member": null, - "ListTagsForResourceRequest$resourceArn": "

    The ARN that specifies the assessment template whose tags you want to list.

    ", - "PreviewAgentsRequest$previewAgentsArn": "

    The ARN of the assessment target whose agents you want to preview.

    ", - "RegisterCrossAccountAccessRoleRequest$roleArn": "

    The ARN of the IAM role that Amazon Inspector uses to list your EC2 instances during the assessment run or when you call the PreviewAgents action.

    ", - "ResourceGroup$arn": "

    The ARN of the resource group.

    ", - "RulesPackage$arn": "

    The ARN of the rules package.

    ", - "SetTagsForResourceRequest$resourceArn": "

    The ARN of the assessment template that you want to set tags to.

    ", - "StartAssessmentRunRequest$assessmentTemplateArn": "

    The ARN of the assessment template of the assessment run that you want to start.

    ", - "StartAssessmentRunResponse$assessmentRunArn": "

    The ARN of the assessment run that has been started.

    ", - "StopAssessmentRunRequest$assessmentRunArn": "

    The ARN of the assessment run that you want to stop.

    ", - "SubscribeToEventRequest$resourceArn": "

    The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.

    ", - "SubscribeToEventRequest$topicArn": "

    The ARN of the SNS topic to which the SNS notifications are sent.

    ", - "Subscription$resourceArn": "

    The ARN of the assessment template that is used during the event for which the SNS notification is sent.

    ", - "Subscription$topicArn": "

    The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.

    ", - "UnsubscribeFromEventRequest$resourceArn": "

    The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.

    ", - "UnsubscribeFromEventRequest$topicArn": "

    The ARN of the SNS topic to which SNS notifications are sent.

    ", - "UpdateAssessmentTargetRequest$assessmentTargetArn": "

    The ARN of the assessment target that you want to update.

    ", - "UpdateAssessmentTargetRequest$resourceGroupArn": "

    The ARN of the resource group that is used to specify the new resource group to associate with the assessment target.

    " - } - }, - "AssessmentRulesPackageArnList": { - "base": null, - "refs": { - "AssessmentRun$rulesPackageArns": "

    The rules packages selected for the assessment run.

    " - } - }, - "AssessmentRun": { - "base": "

    A snapshot of an Amazon Inspector assessment run that contains the findings of the assessment run .

    Used as the response element in the DescribeAssessmentRuns action.

    ", - "refs": { - "AssessmentRunList$member": null - } - }, - "AssessmentRunAgent": { - "base": "

    Contains information about an Amazon Inspector agent. This data type is used as a response element in the ListAssessmentRunAgents action.

    ", - "refs": { - "AssessmentRunAgentList$member": null - } - }, - "AssessmentRunAgentList": { - "base": null, - "refs": { - "ListAssessmentRunAgentsResponse$assessmentRunAgents": "

    A list of ARNs that specifies the agents returned by the action.

    " - } - }, - "AssessmentRunDuration": { - "base": null, - "refs": { - "AssessmentRun$durationInSeconds": "

    The duration of the assessment run.

    ", - "AssessmentTemplate$durationInSeconds": "

    The duration in seconds specified for this assessment tempate. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).

    ", - "CreateAssessmentTemplateRequest$durationInSeconds": "

    The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).

    ", - "DurationRange$minSeconds": "

    The minimum value of the duration range. Must be greater than zero.

    ", - "DurationRange$maxSeconds": "

    The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).

    " - } - }, - "AssessmentRunFilter": { - "base": "

    Used as the request parameter in the ListAssessmentRuns action.

    ", - "refs": { - "ListAssessmentRunsRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    " - } - }, - "AssessmentRunInProgressArnList": { - "base": null, - "refs": { - "AssessmentRunInProgressException$assessmentRunArns": "

    The ARNs of the assessment runs that are currently in progress.

    " - } - }, - "AssessmentRunInProgressException": { - "base": "

    You cannot perform a specified action if an assessment run is currently in progress.

    ", - "refs": { - } - }, - "AssessmentRunList": { - "base": null, - "refs": { - "DescribeAssessmentRunsResponse$assessmentRuns": "

    Information about the assessment run.

    " - } - }, - "AssessmentRunName": { - "base": null, - "refs": { - "AssessmentRun$name": "

    The auto-generated name for the assessment run.

    ", - "StartAssessmentRunRequest$assessmentRunName": "

    You can specify the name for the assessment run, or you can use the auto-generated name that is based on the assessment template name. The name must be unique for the assessment template.

    " - } - }, - "AssessmentRunNotification": { - "base": "

    Used as one of the elements of the AssessmentRun data type.

    ", - "refs": { - "AssessmentRunNotificationList$member": null - } - }, - "AssessmentRunNotificationList": { - "base": null, - "refs": { - "AssessmentRun$notifications": "

    A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.

    " - } - }, - "AssessmentRunNotificationSnsStatusCode": { - "base": null, - "refs": { - "AssessmentRunNotification$snsPublishStatusCode": "

    The status code of the SNS notification.

    " - } - }, - "AssessmentRunState": { - "base": null, - "refs": { - "AssessmentRun$state": "

    The state of the assessment run.

    ", - "AssessmentRunStateChange$state": "

    The assessment run state.

    ", - "AssessmentRunStateList$member": null - } - }, - "AssessmentRunStateChange": { - "base": "

    Used as one of the elements of the AssessmentRun data type.

    ", - "refs": { - "AssessmentRunStateChangeList$member": null - } - }, - "AssessmentRunStateChangeList": { - "base": null, - "refs": { - "AssessmentRun$stateChanges": "

    A list of the assessment run state changes.

    " - } - }, - "AssessmentRunStateList": { - "base": null, - "refs": { - "AssessmentRunFilter$states": "

    For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.

    " - } - }, - "AssessmentTarget": { - "base": "

    Contains information about an Amazon Inspector application. This data type is used as the response element in the DescribeAssessmentTargets action.

    ", - "refs": { - "AssessmentTargetList$member": null - } - }, - "AssessmentTargetFilter": { - "base": "

    Used as the request parameter in the ListAssessmentTargets action.

    ", - "refs": { - "ListAssessmentTargetsRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    " - } - }, - "AssessmentTargetList": { - "base": null, - "refs": { - "DescribeAssessmentTargetsResponse$assessmentTargets": "

    Information about the assessment targets.

    " - } - }, - "AssessmentTargetName": { - "base": null, - "refs": { - "AssessmentTarget$name": "

    The name of the Amazon Inspector assessment target.

    ", - "CreateAssessmentTargetRequest$assessmentTargetName": "

    The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.

    ", - "UpdateAssessmentTargetRequest$assessmentTargetName": "

    The name of the assessment target that you want to update.

    " - } - }, - "AssessmentTemplate": { - "base": "

    Contains information about an Amazon Inspector assessment template. This data type is used as the response element in the DescribeAssessmentTemplates action.

    ", - "refs": { - "AssessmentTemplateList$member": null - } - }, - "AssessmentTemplateFilter": { - "base": "

    Used as the request parameter in the ListAssessmentTemplates action.

    ", - "refs": { - "ListAssessmentTemplatesRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    " - } - }, - "AssessmentTemplateList": { - "base": null, - "refs": { - "DescribeAssessmentTemplatesResponse$assessmentTemplates": "

    Information about the assessment templates.

    " - } - }, - "AssessmentTemplateName": { - "base": null, - "refs": { - "AssessmentTemplate$name": "

    The name of the assessment template.

    ", - "CreateAssessmentTemplateRequest$assessmentTemplateName": "

    The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.

    " - } - }, - "AssessmentTemplateRulesPackageArnList": { - "base": null, - "refs": { - "AssessmentTemplate$rulesPackageArns": "

    The rules packages that are specified for this assessment template.

    ", - "CreateAssessmentTemplateRequest$rulesPackageArns": "

    The ARNs that specify the rules packages that you want to attach to the assessment template.

    " - } - }, - "AssetAttributes": { - "base": "

    A collection of attributes of the host from which the finding is generated.

    ", - "refs": { - "Finding$assetAttributes": "

    A collection of attributes of the host from which the finding is generated.

    " - } - }, - "AssetType": { - "base": null, - "refs": { - "Finding$assetType": "

    The type of the host from which the finding is generated.

    " - } - }, - "Attribute": { - "base": "

    This data type is used as a request parameter in the AddAttributesToFindings and CreateAssessmentTemplate actions.

    ", - "refs": { - "AttributeList$member": null, - "UserAttributeList$member": null - } - }, - "AttributeKey": { - "base": null, - "refs": { - "Attribute$key": "

    The attribute key.

    ", - "UserAttributeKeyList$member": null - } - }, - "AttributeList": { - "base": null, - "refs": { - "Finding$attributes": "

    The system-defined attributes for the finding.

    ", - "FindingFilter$attributes": "

    For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.

    ", - "FindingFilter$userAttributes": "

    For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the userAttributes property of the Finding data type.

    " - } - }, - "AttributeValue": { - "base": null, - "refs": { - "Attribute$value": "

    The value assigned to the attribute key.

    " - } - }, - "AutoScalingGroup": { - "base": null, - "refs": { - "AgentPreview$autoScalingGroup": "

    The Auto Scaling group for the EC2 instance where the agent is installed.

    ", - "AssessmentRunAgent$autoScalingGroup": "

    The Auto Scaling group of the EC2 instance that is specified by the agent ID.

    ", - "AssetAttributes$autoScalingGroup": "

    The Auto Scaling group of the EC2 instance where the finding is generated.

    ", - "AutoScalingGroupList$member": null - } - }, - "AutoScalingGroupList": { - "base": null, - "refs": { - "FindingFilter$autoScalingGroups": "

    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.

    " - } - }, - "BatchDescribeArnList": { - "base": null, - "refs": { - "DescribeAssessmentRunsRequest$assessmentRunArns": "

    The ARN that specifies the assessment run that you want to describe.

    ", - "DescribeAssessmentTargetsRequest$assessmentTargetArns": "

    The ARNs that specifies the assessment targets that you want to describe.

    ", - "DescribeAssessmentTemplatesRequest$assessmentTemplateArns": "

    The ARN that specifiesthe assessment templates that you want to describe.

    ", - "DescribeFindingsRequest$findingArns": "

    The ARN that specifies the finding that you want to describe.

    ", - "DescribeResourceGroupsRequest$resourceGroupArns": "

    The ARN that specifies the resource group that you want to describe.

    ", - "DescribeRulesPackagesRequest$rulesPackageArns": "

    The ARN that specifies the rules package that you want to describe.

    " - } - }, - "Bool": { - "base": null, - "refs": { - "AccessDeniedException$canRetry": "

    You can immediately retry your request.

    ", - "AgentsAlreadyRunningAssessmentException$agentsTruncated": "

    ", - "AgentsAlreadyRunningAssessmentException$canRetry": "

    You can immediately retry your request.

    ", - "AssessmentRun$dataCollected": "

    A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.

    ", - "AssessmentRunInProgressException$assessmentRunArnsTruncated": "

    Boolean value that indicates whether the ARN list of the assessment runs is truncated.

    ", - "AssessmentRunInProgressException$canRetry": "

    You can immediately retry your request.

    ", - "AssessmentRunNotification$error": "

    The Boolean value that specifies whether the notification represents an error.

    ", - "DescribeCrossAccountAccessRoleResponse$valid": "

    A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.

    ", - "FailedItemDetails$retryable": "

    Indicates whether you can immediately retry a request for this item for a specified resource.

    ", - "Finding$indicatorOfCompromise": "

    This data element is currently not used.

    ", - "InternalException$canRetry": "

    You can immediately retry your request.

    ", - "InvalidCrossAccountRoleException$canRetry": "

    You can immediately retry your request.

    ", - "InvalidInputException$canRetry": "

    You can immediately retry your request.

    ", - "LimitExceededException$canRetry": "

    You can immediately retry your request.

    ", - "NoSuchEntityException$canRetry": "

    You can immediately retry your request.

    " - } - }, - "CreateAssessmentTargetRequest": { - "base": null, - "refs": { - } - }, - "CreateAssessmentTargetResponse": { - "base": null, - "refs": { - } - }, - "CreateAssessmentTemplateRequest": { - "base": null, - "refs": { - } - }, - "CreateAssessmentTemplateResponse": { - "base": null, - "refs": { - } - }, - "CreateResourceGroupRequest": { - "base": null, - "refs": { - } - }, - "CreateResourceGroupResponse": { - "base": null, - "refs": { - } - }, - "DeleteAssessmentRunRequest": { - "base": null, - "refs": { - } - }, - "DeleteAssessmentTargetRequest": { - "base": null, - "refs": { - } - }, - "DeleteAssessmentTemplateRequest": { - "base": null, - "refs": { - } - }, - "DescribeAssessmentRunsRequest": { - "base": null, - "refs": { - } - }, - "DescribeAssessmentRunsResponse": { - "base": null, - "refs": { - } - }, - "DescribeAssessmentTargetsRequest": { - "base": null, - "refs": { - } - }, - "DescribeAssessmentTargetsResponse": { - "base": null, - "refs": { - } - }, - "DescribeAssessmentTemplatesRequest": { - "base": null, - "refs": { - } - }, - "DescribeAssessmentTemplatesResponse": { - "base": null, - "refs": { - } - }, - "DescribeCrossAccountAccessRoleResponse": { - "base": null, - "refs": { - } - }, - "DescribeFindingsRequest": { - "base": null, - "refs": { - } - }, - "DescribeFindingsResponse": { - "base": null, - "refs": { - } - }, - "DescribeResourceGroupsRequest": { - "base": null, - "refs": { - } - }, - "DescribeResourceGroupsResponse": { - "base": null, - "refs": { - } - }, - "DescribeRulesPackagesRequest": { - "base": null, - "refs": { - } - }, - "DescribeRulesPackagesResponse": { - "base": null, - "refs": { - } - }, - "DurationRange": { - "base": "

    This data type is used in the AssessmentTemplateFilter data type.

    ", - "refs": { - "AssessmentRunFilter$durationRange": "

    For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.

    ", - "AssessmentTemplateFilter$durationRange": "

    For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.

    " - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "AccessDeniedException$message": "

    Details of the exception error.

    ", - "AgentsAlreadyRunningAssessmentException$message": "

    Details of the exception error.

    ", - "AssessmentRunInProgressException$message": "

    Details of the exception error.

    ", - "InternalException$message": "

    Details of the exception error.

    ", - "InvalidCrossAccountRoleException$message": "

    Details of the exception error.

    ", - "InvalidInputException$message": "

    Details of the exception error.

    ", - "LimitExceededException$message": "

    Details of the exception error.

    ", - "NoSuchEntityException$message": "

    Details of the exception error.

    " - } - }, - "EventSubscription": { - "base": "

    This data type is used in the Subscription data type.

    ", - "refs": { - "EventSubscriptionList$member": null - } - }, - "EventSubscriptionList": { - "base": null, - "refs": { - "Subscription$eventSubscriptions": "

    The list of existing event subscriptions.

    " - } - }, - "FailedItemDetails": { - "base": "

    Includes details about the failed items.

    ", - "refs": { - "FailedItems$value": null - } - }, - "FailedItemErrorCode": { - "base": null, - "refs": { - "FailedItemDetails$failureCode": "

    The status code of a failed item.

    " - } - }, - "FailedItems": { - "base": null, - "refs": { - "AddAttributesToFindingsResponse$failedItems": "

    Attribute details that cannot be described. An error code is provided for each failed item.

    ", - "DescribeAssessmentRunsResponse$failedItems": "

    Assessment run details that cannot be described. An error code is provided for each failed item.

    ", - "DescribeAssessmentTargetsResponse$failedItems": "

    Assessment target details that cannot be described. An error code is provided for each failed item.

    ", - "DescribeAssessmentTemplatesResponse$failedItems": "

    Assessment template details that cannot be described. An error code is provided for each failed item.

    ", - "DescribeFindingsResponse$failedItems": "

    Finding details that cannot be described. An error code is provided for each failed item.

    ", - "DescribeResourceGroupsResponse$failedItems": "

    Resource group details that cannot be described. An error code is provided for each failed item.

    ", - "DescribeRulesPackagesResponse$failedItems": "

    Rules package details that cannot be described. An error code is provided for each failed item.

    ", - "RemoveAttributesFromFindingsResponse$failedItems": "

    Attributes details that cannot be described. An error code is provided for each failed item.

    " - } - }, - "FilterRulesPackageArnList": { - "base": null, - "refs": { - "AssessmentRunFilter$rulesPackageArns": "

    For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.

    ", - "AssessmentTemplateFilter$rulesPackageArns": "

    For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.

    ", - "FindingFilter$rulesPackageArns": "

    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.

    " - } - }, - "Finding": { - "base": "

    Contains information about an Amazon Inspector finding. This data type is used as the response element in the DescribeFindings action.

    ", - "refs": { - "FindingList$member": null - } - }, - "FindingFilter": { - "base": "

    This data type is used as a request parameter in the ListFindings action.

    ", - "refs": { - "ListFindingsRequest$filter": "

    You can use this parameter to specify a subset of data to be included in the action's response.

    For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.

    " - } - }, - "FindingId": { - "base": null, - "refs": { - "Finding$id": "

    The ID of the finding.

    " - } - }, - "FindingList": { - "base": null, - "refs": { - "DescribeFindingsResponse$findings": "

    Information about the finding.

    " - } - }, - "GetTelemetryMetadataRequest": { - "base": null, - "refs": { - } - }, - "GetTelemetryMetadataResponse": { - "base": null, - "refs": { - } - }, - "Hostname": { - "base": null, - "refs": { - "AssetAttributes$hostname": "

    The hostname of the EC2 instance where the finding is generated.

    " - } - }, - "InspectorEvent": { - "base": null, - "refs": { - "AssessmentRunNotification$event": "

    The event for which a notification is sent.

    ", - "EventSubscription$event": "

    The event for which Amazon Simple Notification Service (SNS) notifications are sent.

    ", - "SubscribeToEventRequest$event": "

    The event for which you want to receive SNS notifications.

    ", - "UnsubscribeFromEventRequest$event": "

    The event for which you want to stop receiving SNS notifications.

    " - } - }, - "InspectorServiceAttributes": { - "base": "

    This data type is used in the Finding data type.

    ", - "refs": { - "Finding$serviceAttributes": null - } - }, - "InternalException": { - "base": "

    Internal server error.

    ", - "refs": { - } - }, - "InvalidCrossAccountRoleErrorCode": { - "base": null, - "refs": { - "InvalidCrossAccountRoleException$errorCode": "

    Code that indicates the type of error that is generated.

    " - } - }, - "InvalidCrossAccountRoleException": { - "base": "

    Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.

    ", - "refs": { - } - }, - "InvalidInputErrorCode": { - "base": null, - "refs": { - "InvalidInputException$errorCode": "

    Code that indicates the type of error that is generated.

    " - } - }, - "InvalidInputException": { - "base": "

    The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

    ", - "refs": { - } - }, - "IocConfidence": { - "base": null, - "refs": { - "Finding$confidence": "

    This data element is currently not used.

    " - } - }, - "Ipv4Address": { - "base": null, - "refs": { - "Ipv4AddressList$member": null - } - }, - "Ipv4AddressList": { - "base": null, - "refs": { - "AssetAttributes$ipv4Addresses": "

    The list of IP v4 addresses of the EC2 instance where the finding is generated.

    " - } - }, - "LimitExceededErrorCode": { - "base": null, - "refs": { - "LimitExceededException$errorCode": "

    Code that indicates the type of error that is generated.

    " - } - }, - "LimitExceededException": { - "base": "

    The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.

    ", - "refs": { - } - }, - "ListAssessmentRunAgentsRequest": { - "base": null, - "refs": { - } - }, - "ListAssessmentRunAgentsResponse": { - "base": null, - "refs": { - } - }, - "ListAssessmentRunsRequest": { - "base": null, - "refs": { - } - }, - "ListAssessmentRunsResponse": { - "base": null, - "refs": { - } - }, - "ListAssessmentTargetsRequest": { - "base": null, - "refs": { - } - }, - "ListAssessmentTargetsResponse": { - "base": null, - "refs": { - } - }, - "ListAssessmentTemplatesRequest": { - "base": null, - "refs": { - } - }, - "ListAssessmentTemplatesResponse": { - "base": null, - "refs": { - } - }, - "ListEventSubscriptionsMaxResults": { - "base": null, - "refs": { - "ListEventSubscriptionsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    " - } - }, - "ListEventSubscriptionsRequest": { - "base": null, - "refs": { - } - }, - "ListEventSubscriptionsResponse": { - "base": null, - "refs": { - } - }, - "ListFindingsRequest": { - "base": null, - "refs": { - } - }, - "ListFindingsResponse": { - "base": null, - "refs": { - } - }, - "ListMaxResults": { - "base": null, - "refs": { - "ListAssessmentRunAgentsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListAssessmentRunsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListAssessmentTargetsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListAssessmentTemplatesRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListFindingsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    ", - "ListRulesPackagesRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    " - } - }, - "ListParentArnList": { - "base": null, - "refs": { - "ListAssessmentRunsRequest$assessmentTemplateArns": "

    The ARNs that specify the assessment templates whose assessment runs you want to list.

    ", - "ListAssessmentTemplatesRequest$assessmentTargetArns": "

    A list of ARNs that specifies the assessment targets whose assessment templates you want to list.

    ", - "ListFindingsRequest$assessmentRunArns": "

    The ARNs of the assessment runs that generate the findings that you want to list.

    " - } - }, - "ListReturnedArnList": { - "base": null, - "refs": { - "ListAssessmentRunsResponse$assessmentRunArns": "

    A list of ARNs that specifies the assessment runs that are returned by the action.

    ", - "ListAssessmentTargetsResponse$assessmentTargetArns": "

    A list of ARNs that specifies the assessment targets that are returned by the action.

    ", - "ListAssessmentTemplatesResponse$assessmentTemplateArns": "

    A list of ARNs that specifies the assessment templates returned by the action.

    ", - "ListFindingsResponse$findingArns": "

    A list of ARNs that specifies the findings returned by the action.

    ", - "ListRulesPackagesResponse$rulesPackageArns": "

    The list of ARNs that specifies the rules packages returned by the action.

    " - } - }, - "ListRulesPackagesRequest": { - "base": null, - "refs": { - } - }, - "ListRulesPackagesResponse": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceRequest": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceResponse": { - "base": null, - "refs": { - } - }, - "Locale": { - "base": null, - "refs": { - "DescribeFindingsRequest$locale": "

    The locale into which you want to translate a finding description, recommendation, and the short description that identifies the finding.

    ", - "DescribeRulesPackagesRequest$locale": "

    The locale that you want to translate a rules package description into.

    " - } - }, - "Long": { - "base": null, - "refs": { - "TelemetryMetadata$count": "

    The count of messages that the agent sends to the Amazon Inspector service.

    ", - "TelemetryMetadata$dataSize": "

    The data size of messages that the agent sends to the Amazon Inspector service.

    " - } - }, - "Message": { - "base": null, - "refs": { - "AssessmentRunAgent$agentHealthDetails": "

    The description for the agent health code.

    ", - "AssessmentRunNotification$message": null - } - }, - "MessageType": { - "base": null, - "refs": { - "TelemetryMetadata$messageType": "

    A specific type of behavioral data that is collected by the agent.

    " - } - }, - "NamePattern": { - "base": null, - "refs": { - "AssessmentRunFilter$namePattern": "

    For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.

    ", - "AssessmentTargetFilter$assessmentTargetNamePattern": "

    For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTargetName property of the AssessmentTarget data type.

    ", - "AssessmentTemplateFilter$namePattern": "

    For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.

    " - } - }, - "NoSuchEntityErrorCode": { - "base": null, - "refs": { - "NoSuchEntityException$errorCode": "

    Code that indicates the type of error that is generated.

    " - } - }, - "NoSuchEntityException": { - "base": "

    The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

    ", - "refs": { - } - }, - "NumericSeverity": { - "base": null, - "refs": { - "Finding$numericSeverity": "

    The numeric value of the finding severity.

    " - } - }, - "NumericVersion": { - "base": null, - "refs": { - "AssetAttributes$schemaVersion": "

    The schema version of this data type.

    ", - "Finding$schemaVersion": "

    The schema version of this data type.

    ", - "InspectorServiceAttributes$schemaVersion": "

    The schema version of this data type.

    " - } - }, - "PaginationToken": { - "base": null, - "refs": { - "ListAssessmentRunAgentsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentRunAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    ", - "ListAssessmentRunAgentsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    ", - "ListAssessmentRunsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentRuns action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    ", - "ListAssessmentRunsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    ", - "ListAssessmentTargetsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentTargets action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    ", - "ListAssessmentTargetsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    ", - "ListAssessmentTemplatesRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentTemplates action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    ", - "ListAssessmentTemplatesResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    ", - "ListEventSubscriptionsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListEventSubscriptions action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    ", - "ListEventSubscriptionsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    ", - "ListFindingsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListFindings action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    ", - "ListFindingsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    ", - "ListRulesPackagesRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListRulesPackages action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    ", - "ListRulesPackagesResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    ", - "PreviewAgentsRequest$nextToken": "

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the PreviewAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

    ", - "PreviewAgentsResponse$nextToken": "

    When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

    " - } - }, - "PreviewAgentsMaxResults": { - "base": null, - "refs": { - "PreviewAgentsRequest$maxResults": "

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.

    " - } - }, - "PreviewAgentsRequest": { - "base": null, - "refs": { - } - }, - "PreviewAgentsResponse": { - "base": null, - "refs": { - } - }, - "ProviderName": { - "base": null, - "refs": { - "RulesPackage$provider": "

    The provider of the rules package.

    " - } - }, - "RegisterCrossAccountAccessRoleRequest": { - "base": null, - "refs": { - } - }, - "RemoveAttributesFromFindingsRequest": { - "base": null, - "refs": { - } - }, - "RemoveAttributesFromFindingsResponse": { - "base": null, - "refs": { - } - }, - "ResourceGroup": { - "base": "

    Contains information about a resource group. The resource group defines a set of tags that, when queried, identify the AWS resources that make up the assessment target. This data type is used as the response element in the DescribeResourceGroups action.

    ", - "refs": { - "ResourceGroupList$member": null - } - }, - "ResourceGroupList": { - "base": null, - "refs": { - "DescribeResourceGroupsResponse$resourceGroups": "

    Information about a resource group.

    " - } - }, - "ResourceGroupTag": { - "base": "

    This data type is used as one of the elements of the ResourceGroup data type.

    ", - "refs": { - "ResourceGroupTags$member": null - } - }, - "ResourceGroupTags": { - "base": null, - "refs": { - "CreateResourceGroupRequest$resourceGroupTags": "

    A collection of keys and an array of possible values, '[{\"key\":\"key1\",\"values\":[\"Value1\",\"Value2\"]},{\"key\":\"Key2\",\"values\":[\"Value3\"]}]'.

    For example,'[{\"key\":\"Name\",\"values\":[\"TestEC2Instance\"]}]'.

    ", - "ResourceGroup$tags": "

    The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.

    " - } - }, - "RuleName": { - "base": null, - "refs": { - "RuleNameList$member": null - } - }, - "RuleNameList": { - "base": null, - "refs": { - "FindingFilter$ruleNames": "

    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.

    " - } - }, - "RulesPackage": { - "base": "

    Contains information about an Amazon Inspector rules package. This data type is used as the response element in the DescribeRulesPackages action.

    ", - "refs": { - "RulesPackageList$member": null - } - }, - "RulesPackageList": { - "base": null, - "refs": { - "DescribeRulesPackagesResponse$rulesPackages": "

    Information about the rules package.

    " - } - }, - "RulesPackageName": { - "base": null, - "refs": { - "RulesPackage$name": "

    The name of the rules package.

    " - } - }, - "ServiceName": { - "base": null, - "refs": { - "Finding$service": "

    The data element is set to \"Inspector\".

    " - } - }, - "SetTagsForResourceRequest": { - "base": null, - "refs": { - } - }, - "Severity": { - "base": null, - "refs": { - "Finding$severity": "

    The finding severity. Values can be set to High, Medium, Low, and Informational.

    ", - "SeverityList$member": null - } - }, - "SeverityList": { - "base": null, - "refs": { - "FindingFilter$severities": "

    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.

    " - } - }, - "StartAssessmentRunRequest": { - "base": null, - "refs": { - } - }, - "StartAssessmentRunResponse": { - "base": null, - "refs": { - } - }, - "StopAssessmentRunRequest": { - "base": null, - "refs": { - } - }, - "SubscribeToEventRequest": { - "base": null, - "refs": { - } - }, - "Subscription": { - "base": "

    This data type is used as a response element in the ListEventSubscriptions action.

    ", - "refs": { - "SubscriptionList$member": null - } - }, - "SubscriptionList": { - "base": null, - "refs": { - "ListEventSubscriptionsResponse$subscriptions": "

    Details of the returned event subscriptions.

    " - } - }, - "Tag": { - "base": "

    A key and value pair. This data type is used as a request parameter in the SetTagsForResource action and a response element in the ListTagsForResource action.

    ", - "refs": { - "TagList$member": null - } - }, - "TagKey": { - "base": null, - "refs": { - "ResourceGroupTag$key": "

    A tag key.

    ", - "Tag$key": "

    A tag key.

    " - } - }, - "TagList": { - "base": null, - "refs": { - "ListTagsForResourceResponse$tags": "

    A collection of key and value pairs.

    ", - "SetTagsForResourceRequest$tags": "

    A collection of key and value pairs that you want to set to the assessment template.

    " - } - }, - "TagValue": { - "base": null, - "refs": { - "ResourceGroupTag$value": "

    The value assigned to a tag key.

    ", - "Tag$value": "

    A value assigned to a tag key.

    " - } - }, - "TelemetryMetadata": { - "base": "

    The metadata about the Amazon Inspector application data metrics collected by the agent. This data type is used as the response element in the GetTelemetryMetadata action.

    ", - "refs": { - "TelemetryMetadataList$member": null - } - }, - "TelemetryMetadataList": { - "base": null, - "refs": { - "AssessmentRunAgent$telemetryMetadata": "

    The Amazon Inspector application data metrics that are collected by the agent.

    ", - "GetTelemetryMetadataResponse$telemetryMetadata": "

    Telemetry details.

    " - } - }, - "Text": { - "base": null, - "refs": { - "Finding$title": "

    The name of the finding.

    ", - "Finding$description": "

    The description of the finding.

    ", - "Finding$recommendation": "

    The recommendation for the finding.

    ", - "RulesPackage$description": "

    The description of the rules package.

    " - } - }, - "Timestamp": { - "base": null, - "refs": { - "AssessmentRun$createdAt": "

    The time when StartAssessmentRun was called.

    ", - "AssessmentRun$startedAt": "

    The time when StartAssessmentRun was called.

    ", - "AssessmentRun$completedAt": "

    The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.

    ", - "AssessmentRun$stateChangedAt": "

    The last time when the assessment run's state changed.

    ", - "AssessmentRunNotification$date": "

    The date of the notification.

    ", - "AssessmentRunStateChange$stateChangedAt": "

    The last time the assessment run state changed.

    ", - "AssessmentTarget$createdAt": "

    The time at which the assessment target is created.

    ", - "AssessmentTarget$updatedAt": "

    The time at which UpdateAssessmentTarget is called.

    ", - "AssessmentTemplate$createdAt": "

    The time at which the assessment template is created.

    ", - "DescribeCrossAccountAccessRoleResponse$registeredAt": "

    The date when the cross-account access role was registered.

    ", - "EventSubscription$subscribedAt": "

    The time at which SubscribeToEvent is called.

    ", - "Finding$createdAt": "

    The time when the finding was generated.

    ", - "Finding$updatedAt": "

    The time when AddAttributesToFindings is called.

    ", - "ResourceGroup$createdAt": "

    The time at which resource group is created.

    ", - "TimestampRange$beginDate": "

    The minimum value of the timestamp range.

    ", - "TimestampRange$endDate": "

    The maximum value of the timestamp range.

    " - } - }, - "TimestampRange": { - "base": "

    This data type is used in the AssessmentRunFilter data type.

    ", - "refs": { - "AssessmentRunFilter$startTimeRange": "

    For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.

    ", - "AssessmentRunFilter$completionTimeRange": "

    For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.

    ", - "AssessmentRunFilter$stateChangeTimeRange": "

    For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.

    ", - "FindingFilter$creationTimeRange": "

    The time range during which the finding is generated.

    " - } - }, - "UnsubscribeFromEventRequest": { - "base": null, - "refs": { - } - }, - "UpdateAssessmentTargetRequest": { - "base": null, - "refs": { - } - }, - "UserAttributeKeyList": { - "base": null, - "refs": { - "RemoveAttributesFromFindingsRequest$attributeKeys": "

    The array of attribute keys that you want to remove from specified findings.

    " - } - }, - "UserAttributeList": { - "base": null, - "refs": { - "AddAttributesToFindingsRequest$attributes": "

    The array of attributes that you want to assign to specified findings.

    ", - "AssessmentRun$userAttributesForFindings": "

    The user-defined attributes that are assigned to every generated finding.

    ", - "AssessmentTemplate$userAttributesForFindings": "

    The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.

    ", - "CreateAssessmentTemplateRequest$userAttributesForFindings": "

    The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.

    ", - "Finding$userAttributes": "

    The user-defined attributes that are assigned to the finding.

    " - } - }, - "Version": { - "base": null, - "refs": { - "RulesPackage$version": "

    The version ID of the rules package.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/inspector/2016-02-16/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/api-2.json deleted file mode 100644 index 9f6a9f4af..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/api-2.json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-05-28", - "endpointPrefix":"data.iot", - "protocol":"rest-json", - "serviceFullName":"AWS IoT Data Plane", - "signatureVersion":"v4", - "signingName":"iotdata" - }, - "operations":{ - "DeleteThingShadow":{ - "name":"DeleteThingShadow", - "http":{ - "method":"DELETE", - "requestUri":"/things/{thingName}/shadow" - }, - "input":{"shape":"DeleteThingShadowRequest"}, - "output":{"shape":"DeleteThingShadowResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ThrottlingException"}, - {"shape":"UnauthorizedException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"InternalFailureException"}, - {"shape":"MethodNotAllowedException"}, - {"shape":"UnsupportedDocumentEncodingException"} - ] - }, - "GetThingShadow":{ - "name":"GetThingShadow", - "http":{ - "method":"GET", - "requestUri":"/things/{thingName}/shadow" - }, - "input":{"shape":"GetThingShadowRequest"}, - "output":{"shape":"GetThingShadowResponse"}, - "errors":[ - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"}, - {"shape":"UnauthorizedException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"InternalFailureException"}, - {"shape":"MethodNotAllowedException"}, - {"shape":"UnsupportedDocumentEncodingException"} - ] - }, - "Publish":{ - "name":"Publish", - "http":{ - "method":"POST", - "requestUri":"/topics/{topic}" - }, - "input":{"shape":"PublishRequest"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"UnauthorizedException"}, - {"shape":"MethodNotAllowedException"} - ] - }, - "UpdateThingShadow":{ - "name":"UpdateThingShadow", - "http":{ - "method":"POST", - "requestUri":"/things/{thingName}/shadow" - }, - "input":{"shape":"UpdateThingShadowRequest"}, - "output":{"shape":"UpdateThingShadowResponse"}, - "errors":[ - {"shape":"ConflictException"}, - {"shape":"RequestEntityTooLargeException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ThrottlingException"}, - {"shape":"UnauthorizedException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"InternalFailureException"}, - {"shape":"MethodNotAllowedException"}, - {"shape":"UnsupportedDocumentEncodingException"} - ] - } - }, - "shapes":{ - "ConflictException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DeleteThingShadowRequest":{ - "type":"structure", - "required":["thingName"], - "members":{ - "thingName":{ - "shape":"ThingName", - "location":"uri", - "locationName":"thingName" - } - } - }, - "DeleteThingShadowResponse":{ - "type":"structure", - "required":["payload"], - "members":{ - "payload":{"shape":"JsonDocument"} - }, - "payload":"payload" - }, - "ErrorMessage":{"type":"string"}, - "GetThingShadowRequest":{ - "type":"structure", - "required":["thingName"], - "members":{ - "thingName":{ - "shape":"ThingName", - "location":"uri", - "locationName":"thingName" - } - } - }, - "GetThingShadowResponse":{ - "type":"structure", - "members":{ - "payload":{"shape":"JsonDocument"} - }, - "payload":"payload" - }, - "InternalFailureException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - "InvalidRequestException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "JsonDocument":{"type":"blob"}, - "MethodNotAllowedException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":405}, - "exception":true - }, - "Payload":{"type":"blob"}, - "PublishRequest":{ - "type":"structure", - "required":["topic"], - "members":{ - "topic":{ - "shape":"Topic", - "location":"uri", - "locationName":"topic" - }, - "qos":{ - "shape":"Qos", - "location":"querystring", - "locationName":"qos" - }, - "payload":{"shape":"Payload"} - }, - "payload":"payload" - }, - "Qos":{ - "type":"integer", - "max":1, - "min":0 - }, - "RequestEntityTooLargeException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "error":{"httpStatusCode":413}, - "exception":true - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "ServiceUnavailableException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - "ThingName":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[a-zA-Z0-9_-]+" - }, - "ThrottlingException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":429}, - "exception":true - }, - "Topic":{"type":"string"}, - "UnauthorizedException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":401}, - "exception":true - }, - "UnsupportedDocumentEncodingException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":415}, - "exception":true - }, - "UpdateThingShadowRequest":{ - "type":"structure", - "required":[ - "thingName", - "payload" - ], - "members":{ - "thingName":{ - "shape":"ThingName", - "location":"uri", - "locationName":"thingName" - }, - "payload":{"shape":"JsonDocument"} - }, - "payload":"payload" - }, - "UpdateThingShadowResponse":{ - "type":"structure", - "members":{ - "payload":{"shape":"JsonDocument"} - }, - "payload":"payload" - }, - "errorMessage":{"type":"string"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/docs-2.json deleted file mode 100644 index 09e16dbd7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/docs-2.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "version": "2.0", - "service": "AWS IoT

    AWS IoT-Data enables secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smart appliances) and the AWS cloud. It implements a broker for applications and things to publish messages over HTTP (Publish) and retrieve, update, and delete thing shadows. A thing shadow is a persistent representation of your things and their state in the AWS cloud.

    ", - "operations": { - "DeleteThingShadow": "

    Deletes the thing shadow for the specified thing.

    For more information, see DeleteThingShadow in the AWS IoT Developer Guide.

    ", - "GetThingShadow": "

    Gets the thing shadow for the specified thing.

    For more information, see GetThingShadow in the AWS IoT Developer Guide.

    ", - "Publish": "

    Publishes state information.

    For more information, see HTTP Protocol in the AWS IoT Developer Guide.

    ", - "UpdateThingShadow": "

    Updates the thing shadow for the specified thing.

    For more information, see UpdateThingShadow in the AWS IoT Developer Guide.

    " - }, - "shapes": { - "ConflictException": { - "base": "

    The specified version does not match the version of the document.

    ", - "refs": { - } - }, - "DeleteThingShadowRequest": { - "base": "

    The input for the DeleteThingShadow operation.

    ", - "refs": { - } - }, - "DeleteThingShadowResponse": { - "base": "

    The output from the DeleteThingShadow operation.

    ", - "refs": { - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "ConflictException$message": "

    The message for the exception.

    ", - "MethodNotAllowedException$message": "

    The message for the exception.

    ", - "RequestEntityTooLargeException$message": "

    The message for the exception.

    " - } - }, - "GetThingShadowRequest": { - "base": "

    The input for the GetThingShadow operation.

    ", - "refs": { - } - }, - "GetThingShadowResponse": { - "base": "

    The output from the GetThingShadow operation.

    ", - "refs": { - } - }, - "InternalFailureException": { - "base": "

    An unexpected error has occurred.

    ", - "refs": { - } - }, - "InvalidRequestException": { - "base": "

    The request is not valid.

    ", - "refs": { - } - }, - "JsonDocument": { - "base": null, - "refs": { - "DeleteThingShadowResponse$payload": "

    The state information, in JSON format.

    ", - "GetThingShadowResponse$payload": "

    The state information, in JSON format.

    ", - "UpdateThingShadowRequest$payload": "

    The state information, in JSON format.

    ", - "UpdateThingShadowResponse$payload": "

    The state information, in JSON format.

    " - } - }, - "MethodNotAllowedException": { - "base": "

    The specified combination of HTTP verb and URI is not supported.

    ", - "refs": { - } - }, - "Payload": { - "base": null, - "refs": { - "PublishRequest$payload": "

    The state information, in JSON format.

    " - } - }, - "PublishRequest": { - "base": "

    The input for the Publish operation.

    ", - "refs": { - } - }, - "Qos": { - "base": null, - "refs": { - "PublishRequest$qos": "

    The Quality of Service (QoS) level.

    " - } - }, - "RequestEntityTooLargeException": { - "base": "

    The payload exceeds the maximum size allowed.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    The specified resource does not exist.

    ", - "refs": { - } - }, - "ServiceUnavailableException": { - "base": "

    The service is temporarily unavailable.

    ", - "refs": { - } - }, - "ThingName": { - "base": null, - "refs": { - "DeleteThingShadowRequest$thingName": "

    The name of the thing.

    ", - "GetThingShadowRequest$thingName": "

    The name of the thing.

    ", - "UpdateThingShadowRequest$thingName": "

    The name of the thing.

    " - } - }, - "ThrottlingException": { - "base": "

    The rate exceeds the limit.

    ", - "refs": { - } - }, - "Topic": { - "base": null, - "refs": { - "PublishRequest$topic": "

    The name of the MQTT topic.

    " - } - }, - "UnauthorizedException": { - "base": "

    You are not authorized to perform this operation.

    ", - "refs": { - } - }, - "UnsupportedDocumentEncodingException": { - "base": "

    The document encoding is not supported.

    ", - "refs": { - } - }, - "UpdateThingShadowRequest": { - "base": "

    The input for the UpdateThingShadow operation.

    ", - "refs": { - } - }, - "UpdateThingShadowResponse": { - "base": "

    The output from the UpdateThingShadow operation.

    ", - "refs": { - } - }, - "errorMessage": { - "base": null, - "refs": { - "InternalFailureException$message": "

    The message for the exception.

    ", - "InvalidRequestException$message": "

    The message for the exception.

    ", - "ResourceNotFoundException$message": "

    The message for the exception.

    ", - "ServiceUnavailableException$message": "

    The message for the exception.

    ", - "ThrottlingException$message": "

    The message for the exception.

    ", - "UnauthorizedException$message": "

    The message for the exception.

    ", - "UnsupportedDocumentEncodingException$message": "

    The message for the exception.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-data/2015-05-28/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/api-2.json deleted file mode 100644 index 0c7b25a84..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/api-2.json +++ /dev/null @@ -1,3710 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-05-28", - "endpointPrefix":"iot", - "serviceFullName":"AWS IoT", - "signatureVersion":"v4", - "signingName":"execute-api", - "protocol":"rest-json" - }, - "operations":{ - "AcceptCertificateTransfer":{ - "name":"AcceptCertificateTransfer", - "http":{ - "method":"PATCH", - "requestUri":"/accept-certificate-transfer/{certificateId}" - }, - "input":{"shape":"AcceptCertificateTransferRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"TransferAlreadyCompletedException", - "error":{"httpStatusCode":410}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "AttachPrincipalPolicy":{ - "name":"AttachPrincipalPolicy", - "http":{ - "method":"PUT", - "requestUri":"/principal-policies/{policyName}" - }, - "input":{"shape":"AttachPrincipalPolicyRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"LimitExceededException", - "error":{"httpStatusCode":410}, - "exception":true - } - ] - }, - "AttachThingPrincipal":{ - "name":"AttachThingPrincipal", - "http":{ - "method":"PUT", - "requestUri":"/things/{thingName}/principals" - }, - "input":{"shape":"AttachThingPrincipalRequest"}, - "output":{"shape":"AttachThingPrincipalResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "CancelCertificateTransfer":{ - "name":"CancelCertificateTransfer", - "http":{ - "method":"PATCH", - "requestUri":"/cancel-certificate-transfer/{certificateId}" - }, - "input":{"shape":"CancelCertificateTransferRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"TransferAlreadyCompletedException", - "error":{"httpStatusCode":410}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "CreateCertificateFromCsr":{ - "name":"CreateCertificateFromCsr", - "http":{ - "method":"POST", - "requestUri":"/certificates" - }, - "input":{"shape":"CreateCertificateFromCsrRequest"}, - "output":{"shape":"CreateCertificateFromCsrResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "CreateKeysAndCertificate":{ - "name":"CreateKeysAndCertificate", - "http":{ - "method":"POST", - "requestUri":"/keys-and-certificate" - }, - "input":{"shape":"CreateKeysAndCertificateRequest"}, - "output":{"shape":"CreateKeysAndCertificateResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "CreatePolicy":{ - "name":"CreatePolicy", - "http":{ - "method":"POST", - "requestUri":"/policies/{policyName}" - }, - "input":{"shape":"CreatePolicyRequest"}, - "output":{"shape":"CreatePolicyResponse"}, - "errors":[ - { - "shape":"ResourceAlreadyExistsException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"MalformedPolicyException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "CreatePolicyVersion":{ - "name":"CreatePolicyVersion", - "http":{ - "method":"POST", - "requestUri":"/policies/{policyName}/version" - }, - "input":{"shape":"CreatePolicyVersionRequest"}, - "output":{"shape":"CreatePolicyVersionResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"MalformedPolicyException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"VersionsLimitExceededException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "CreateThing":{ - "name":"CreateThing", - "http":{ - "method":"POST", - "requestUri":"/things/{thingName}" - }, - "input":{"shape":"CreateThingRequest"}, - "output":{"shape":"CreateThingResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"ResourceAlreadyExistsException", - "error":{"httpStatusCode":409}, - "exception":true - } - ] - }, - "CreateTopicRule":{ - "name":"CreateTopicRule", - "http":{ - "method":"POST", - "requestUri":"/rules/{ruleName}" - }, - "input":{"shape":"CreateTopicRuleRequest"}, - "errors":[ - { - "shape":"SqlParseException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ResourceAlreadyExistsException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - } - ] - }, - "DeleteCACertificate":{ - "name":"DeleteCACertificate", - "http":{ - "method":"DELETE", - "requestUri":"/cacertificate/{certificateId}" - }, - "input":{"shape":"DeleteCACertificateRequest"}, - "output":{"shape":"DeleteCACertificateResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"CertificateStateException", - "error":{"httpStatusCode":406}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - } - ] - }, - "DeleteCertificate":{ - "name":"DeleteCertificate", - "http":{ - "method":"DELETE", - "requestUri":"/certificates/{certificateId}" - }, - "input":{"shape":"DeleteCertificateRequest"}, - "errors":[ - { - "shape":"CertificateStateException", - "error":{"httpStatusCode":406}, - "exception":true - }, - { - "shape":"DeleteConflictException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - } - ] - }, - "DeletePolicy":{ - "name":"DeletePolicy", - "http":{ - "method":"DELETE", - "requestUri":"/policies/{policyName}" - }, - "input":{"shape":"DeletePolicyRequest"}, - "errors":[ - { - "shape":"DeleteConflictException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "DeletePolicyVersion":{ - "name":"DeletePolicyVersion", - "http":{ - "method":"DELETE", - "requestUri":"/policies/{policyName}/version/{policyVersionId}" - }, - "input":{"shape":"DeletePolicyVersionRequest"}, - "errors":[ - { - "shape":"DeleteConflictException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "DeleteRegistrationCode":{ - "name":"DeleteRegistrationCode", - "http":{ - "method":"DELETE", - "requestUri":"/registrationcode" - }, - "input":{"shape":"DeleteRegistrationCodeRequest"}, - "output":{"shape":"DeleteRegistrationCodeResponse"}, - "errors":[ - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "DeleteThing":{ - "name":"DeleteThing", - "http":{ - "method":"DELETE", - "requestUri":"/things/{thingName}" - }, - "input":{"shape":"DeleteThingRequest"}, - "output":{"shape":"DeleteThingResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "DeleteTopicRule":{ - "name":"DeleteTopicRule", - "http":{ - "method":"DELETE", - "requestUri":"/rules/{ruleName}" - }, - "input":{"shape":"DeleteTopicRuleRequest"}, - "errors":[ - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - } - ] - }, - "DescribeCACertificate":{ - "name":"DescribeCACertificate", - "http":{ - "method":"GET", - "requestUri":"/cacertificate/{certificateId}" - }, - "input":{"shape":"DescribeCACertificateRequest"}, - "output":{"shape":"DescribeCACertificateResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - } - ] - }, - "DescribeCertificate":{ - "name":"DescribeCertificate", - "http":{ - "method":"GET", - "requestUri":"/certificates/{certificateId}" - }, - "input":{"shape":"DescribeCertificateRequest"}, - "output":{"shape":"DescribeCertificateResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - } - ] - }, - "DescribeEndpoint":{ - "name":"DescribeEndpoint", - "http":{ - "method":"GET", - "requestUri":"/endpoint" - }, - "input":{"shape":"DescribeEndpointRequest"}, - "output":{"shape":"DescribeEndpointResponse"}, - "errors":[ - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - } - ] - }, - "DescribeThing":{ - "name":"DescribeThing", - "http":{ - "method":"GET", - "requestUri":"/things/{thingName}" - }, - "input":{"shape":"DescribeThingRequest"}, - "output":{"shape":"DescribeThingResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "DetachPrincipalPolicy":{ - "name":"DetachPrincipalPolicy", - "http":{ - "method":"DELETE", - "requestUri":"/principal-policies/{policyName}" - }, - "input":{"shape":"DetachPrincipalPolicyRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "DetachThingPrincipal":{ - "name":"DetachThingPrincipal", - "http":{ - "method":"DELETE", - "requestUri":"/things/{thingName}/principals" - }, - "input":{"shape":"DetachThingPrincipalRequest"}, - "output":{"shape":"DetachThingPrincipalResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "DisableTopicRule":{ - "name":"DisableTopicRule", - "http":{ - "method":"POST", - "requestUri":"/rules/{ruleName}/disable" - }, - "input":{"shape":"DisableTopicRuleRequest"}, - "errors":[ - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - } - ] - }, - "EnableTopicRule":{ - "name":"EnableTopicRule", - "http":{ - "method":"POST", - "requestUri":"/rules/{ruleName}/enable" - }, - "input":{"shape":"EnableTopicRuleRequest"}, - "errors":[ - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - } - ] - }, - "GetLoggingOptions":{ - "name":"GetLoggingOptions", - "http":{ - "method":"GET", - "requestUri":"/loggingOptions" - }, - "input":{"shape":"GetLoggingOptionsRequest"}, - "output":{"shape":"GetLoggingOptionsResponse"}, - "errors":[ - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - } - ] - }, - "GetPolicy":{ - "name":"GetPolicy", - "http":{ - "method":"GET", - "requestUri":"/policies/{policyName}" - }, - "input":{"shape":"GetPolicyRequest"}, - "output":{"shape":"GetPolicyResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "GetPolicyVersion":{ - "name":"GetPolicyVersion", - "http":{ - "method":"GET", - "requestUri":"/policies/{policyName}/version/{policyVersionId}" - }, - "input":{"shape":"GetPolicyVersionRequest"}, - "output":{"shape":"GetPolicyVersionResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "GetRegistrationCode":{ - "name":"GetRegistrationCode", - "http":{ - "method":"GET", - "requestUri":"/registrationcode" - }, - "input":{"shape":"GetRegistrationCodeRequest"}, - "output":{"shape":"GetRegistrationCodeResponse"}, - "errors":[ - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "GetTopicRule":{ - "name":"GetTopicRule", - "http":{ - "method":"GET", - "requestUri":"/rules/{ruleName}" - }, - "input":{"shape":"GetTopicRuleRequest"}, - "output":{"shape":"GetTopicRuleResponse"}, - "errors":[ - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - } - ] - }, - "ListCACertificates":{ - "name":"ListCACertificates", - "http":{ - "method":"GET", - "requestUri":"/cacertificates" - }, - "input":{"shape":"ListCACertificatesRequest"}, - "output":{"shape":"ListCACertificatesResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "ListCertificates":{ - "name":"ListCertificates", - "http":{ - "method":"GET", - "requestUri":"/certificates" - }, - "input":{"shape":"ListCertificatesRequest"}, - "output":{"shape":"ListCertificatesResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "ListCertificatesByCA":{ - "name":"ListCertificatesByCA", - "http":{ - "method":"GET", - "requestUri":"/certificates-by-ca/{caCertificateId}" - }, - "input":{"shape":"ListCertificatesByCARequest"}, - "output":{"shape":"ListCertificatesByCAResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "ListPolicies":{ - "name":"ListPolicies", - "http":{ - "method":"GET", - "requestUri":"/policies" - }, - "input":{"shape":"ListPoliciesRequest"}, - "output":{"shape":"ListPoliciesResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "ListPolicyVersions":{ - "name":"ListPolicyVersions", - "http":{ - "method":"GET", - "requestUri":"/policies/{policyName}/version" - }, - "input":{"shape":"ListPolicyVersionsRequest"}, - "output":{"shape":"ListPolicyVersionsResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "ListPrincipalPolicies":{ - "name":"ListPrincipalPolicies", - "http":{ - "method":"GET", - "requestUri":"/principal-policies" - }, - "input":{"shape":"ListPrincipalPoliciesRequest"}, - "output":{"shape":"ListPrincipalPoliciesResponse"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "ListPrincipalThings":{ - "name":"ListPrincipalThings", - "http":{ - "method":"GET", - "requestUri":"/principals/things" - }, - "input":{"shape":"ListPrincipalThingsRequest"}, - "output":{"shape":"ListPrincipalThingsResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "ListThingPrincipals":{ - "name":"ListThingPrincipals", - "http":{ - "method":"GET", - "requestUri":"/things/{thingName}/principals" - }, - "input":{"shape":"ListThingPrincipalsRequest"}, - "output":{"shape":"ListThingPrincipalsResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "ListThings":{ - "name":"ListThings", - "http":{ - "method":"GET", - "requestUri":"/things" - }, - "input":{"shape":"ListThingsRequest"}, - "output":{"shape":"ListThingsResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "ListTopicRules":{ - "name":"ListTopicRules", - "http":{ - "method":"GET", - "requestUri":"/rules" - }, - "input":{"shape":"ListTopicRulesRequest"}, - "output":{"shape":"ListTopicRulesResponse"}, - "errors":[ - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - } - ] - }, - "RegisterCACertificate":{ - "name":"RegisterCACertificate", - "http":{ - "method":"POST", - "requestUri":"/cacertificate" - }, - "input":{"shape":"RegisterCACertificateRequest"}, - "output":{"shape":"RegisterCACertificateResponse"}, - "errors":[ - { - "shape":"ResourceAlreadyExistsException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"RegistrationCodeValidationException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"CertificateValidationException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"LimitExceededException", - "error":{"httpStatusCode":410}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "RegisterCertificate":{ - "name":"RegisterCertificate", - "http":{ - "method":"POST", - "requestUri":"/certificate/register" - }, - "input":{"shape":"RegisterCertificateRequest"}, - "output":{"shape":"RegisterCertificateResponse"}, - "errors":[ - { - "shape":"ResourceAlreadyExistsException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"CertificateValidationException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"CertificateStateException", - "error":{"httpStatusCode":406}, - "exception":true - }, - { - "shape":"CertificateConflictException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "RejectCertificateTransfer":{ - "name":"RejectCertificateTransfer", - "http":{ - "method":"PATCH", - "requestUri":"/reject-certificate-transfer/{certificateId}" - }, - "input":{"shape":"RejectCertificateTransferRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"TransferAlreadyCompletedException", - "error":{"httpStatusCode":410}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "ReplaceTopicRule":{ - "name":"ReplaceTopicRule", - "http":{ - "method":"PATCH", - "requestUri":"/rules/{ruleName}" - }, - "input":{"shape":"ReplaceTopicRuleRequest"}, - "errors":[ - { - "shape":"SqlParseException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - } - ] - }, - "SetDefaultPolicyVersion":{ - "name":"SetDefaultPolicyVersion", - "http":{ - "method":"PATCH", - "requestUri":"/policies/{policyName}/version/{policyVersionId}" - }, - "input":{"shape":"SetDefaultPolicyVersionRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "SetLoggingOptions":{ - "name":"SetLoggingOptions", - "http":{ - "method":"POST", - "requestUri":"/loggingOptions" - }, - "input":{"shape":"SetLoggingOptionsRequest"}, - "errors":[ - { - "shape":"InternalException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - } - ] - }, - "TransferCertificate":{ - "name":"TransferCertificate", - "http":{ - "method":"PATCH", - "requestUri":"/transfer-certificate/{certificateId}" - }, - "input":{"shape":"TransferCertificateRequest"}, - "output":{"shape":"TransferCertificateResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"CertificateStateException", - "error":{"httpStatusCode":406}, - "exception":true - }, - { - "shape":"TransferConflictException", - "error":{"httpStatusCode":409}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "UpdateCACertificate":{ - "name":"UpdateCACertificate", - "http":{ - "method":"PUT", - "requestUri":"/cacertificate/{certificateId}" - }, - "input":{"shape":"UpdateCACertificateRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "UpdateCertificate":{ - "name":"UpdateCertificate", - "http":{ - "method":"PUT", - "requestUri":"/certificates/{certificateId}" - }, - "input":{"shape":"UpdateCertificateRequest"}, - "errors":[ - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - }, - { - "shape":"CertificateStateException", - "error":{"httpStatusCode":406}, - "exception":true - }, - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - } - ] - }, - "UpdateThing":{ - "name":"UpdateThing", - "http":{ - "method":"PATCH", - "requestUri":"/things/{thingName}" - }, - "input":{"shape":"UpdateThingRequest"}, - "output":{"shape":"UpdateThingResponse"}, - "errors":[ - { - "shape":"InvalidRequestException", - "error":{"httpStatusCode":400}, - "exception":true - }, - { - "shape":"ThrottlingException", - "error":{"httpStatusCode":429}, - "exception":true - }, - { - "shape":"UnauthorizedException", - "error":{"httpStatusCode":401}, - "exception":true - }, - { - "shape":"ServiceUnavailableException", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - { - "shape":"InternalFailureException", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - { - "shape":"ResourceNotFoundException", - "error":{"httpStatusCode":404}, - "exception":true - } - ] - } - }, - "shapes":{ - "AcceptCertificateTransferRequest":{ - "type":"structure", - "required":["certificateId"], - "members":{ - "certificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"certificateId" - }, - "setAsActive":{ - "shape":"SetAsActive", - "location":"querystring", - "locationName":"setAsActive" - } - } - }, - "Action":{ - "type":"structure", - "members":{ - "dynamoDB":{"shape":"DynamoDBAction"}, - "lambda":{"shape":"LambdaAction"}, - "sns":{"shape":"SnsAction"}, - "sqs":{"shape":"SqsAction"}, - "kinesis":{"shape":"KinesisAction"}, - "republish":{"shape":"RepublishAction"}, - "s3":{"shape":"S3Action"}, - "firehose":{"shape":"FirehoseAction"}, - "cloudwatchMetric":{"shape":"CloudwatchMetricAction"}, - "cloudwatchAlarm":{"shape":"CloudwatchAlarmAction"}, - "elasticsearch":{"shape":"ElasticsearchAction"} - } - }, - "ActionList":{ - "type":"list", - "member":{"shape":"Action"}, - "min":0, - "max":10 - }, - "AlarmName":{"type":"string"}, - "AscendingOrder":{"type":"boolean"}, - "AttachPrincipalPolicyRequest":{ - "type":"structure", - "required":[ - "policyName", - "principal" - ], - "members":{ - "policyName":{ - "shape":"PolicyName", - "location":"uri", - "locationName":"policyName" - }, - "principal":{ - "shape":"Principal", - "location":"header", - "locationName":"x-amzn-iot-principal" - } - } - }, - "AttachThingPrincipalRequest":{ - "type":"structure", - "required":[ - "thingName", - "principal" - ], - "members":{ - "thingName":{ - "shape":"ThingName", - "location":"uri", - "locationName":"thingName" - }, - "principal":{ - "shape":"Principal", - "location":"header", - "locationName":"x-amzn-principal" - } - } - }, - "AttachThingPrincipalResponse":{ - "type":"structure", - "members":{ - } - }, - "AttributeName":{ - "type":"string", - "max":128, - "pattern":"[a-zA-Z0-9_.,@/:#-]+" - }, - "AttributePayload":{ - "type":"structure", - "members":{ - "attributes":{"shape":"Attributes"} - } - }, - "AttributeValue":{ - "type":"string", - "max":1024, - "pattern":"[a-zA-Z0-9_.,@/:#-]+" - }, - "Attributes":{ - "type":"map", - "key":{"shape":"AttributeName"}, - "value":{"shape":"AttributeValue"} - }, - "AwsAccountId":{ - "type":"string", - "pattern":"[0-9]{12}" - }, - "AwsArn":{"type":"string"}, - "AwsIotSqlVersion":{"type":"string"}, - "BucketName":{"type":"string"}, - "CACertificate":{ - "type":"structure", - "members":{ - "certificateArn":{"shape":"CertificateArn"}, - "certificateId":{"shape":"CertificateId"}, - "status":{"shape":"CACertificateStatus"}, - "creationDate":{"shape":"DateType"} - } - }, - "CACertificateDescription":{ - "type":"structure", - "members":{ - "certificateArn":{"shape":"CertificateArn"}, - "certificateId":{"shape":"CertificateId"}, - "status":{"shape":"CACertificateStatus"}, - "certificatePem":{"shape":"CertificatePem"}, - "ownedBy":{"shape":"AwsAccountId"}, - "creationDate":{"shape":"DateType"} - } - }, - "CACertificateStatus":{ - "type":"string", - "enum":[ - "ACTIVE", - "INACTIVE" - ] - }, - "CACertificates":{ - "type":"list", - "member":{"shape":"CACertificate"} - }, - "CancelCertificateTransferRequest":{ - "type":"structure", - "required":["certificateId"], - "members":{ - "certificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"certificateId" - } - } - }, - "Certificate":{ - "type":"structure", - "members":{ - "certificateArn":{"shape":"CertificateArn"}, - "certificateId":{"shape":"CertificateId"}, - "status":{"shape":"CertificateStatus"}, - "creationDate":{"shape":"DateType"} - } - }, - "CertificateArn":{"type":"string"}, - "CertificateConflictException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "CertificateDescription":{ - "type":"structure", - "members":{ - "certificateArn":{"shape":"CertificateArn"}, - "certificateId":{"shape":"CertificateId"}, - "caCertificateId":{"shape":"CertificateId"}, - "status":{"shape":"CertificateStatus"}, - "certificatePem":{"shape":"CertificatePem"}, - "ownedBy":{"shape":"AwsAccountId"}, - "previousOwnedBy":{"shape":"AwsAccountId"}, - "creationDate":{"shape":"DateType"}, - "lastModifiedDate":{"shape":"DateType"}, - "transferData":{"shape":"TransferData"} - } - }, - "CertificateId":{ - "type":"string", - "min":64, - "max":64, - "pattern":"(0x)?[a-fA-F0-9]+" - }, - "CertificatePem":{ - "type":"string", - "min":1, - "max":65536 - }, - "CertificateSigningRequest":{ - "type":"string", - "min":1 - }, - "CertificateStateException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":406}, - "exception":true - }, - "CertificateStatus":{ - "type":"string", - "enum":[ - "ACTIVE", - "INACTIVE", - "REVOKED", - "PENDING_TRANSFER", - "REGISTER_INACTIVE" - ] - }, - "CertificateValidationException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "Certificates":{ - "type":"list", - "member":{"shape":"Certificate"} - }, - "ClientId":{"type":"string"}, - "CloudwatchAlarmAction":{ - "type":"structure", - "required":[ - "roleArn", - "alarmName", - "stateReason", - "stateValue" - ], - "members":{ - "roleArn":{"shape":"AwsArn"}, - "alarmName":{"shape":"AlarmName"}, - "stateReason":{"shape":"StateReason"}, - "stateValue":{"shape":"StateValue"} - } - }, - "CloudwatchMetricAction":{ - "type":"structure", - "required":[ - "roleArn", - "metricNamespace", - "metricName", - "metricValue", - "metricUnit" - ], - "members":{ - "roleArn":{"shape":"AwsArn"}, - "metricNamespace":{"shape":"MetricNamespace"}, - "metricName":{"shape":"MetricName"}, - "metricValue":{"shape":"MetricValue"}, - "metricUnit":{"shape":"MetricUnit"}, - "metricTimestamp":{"shape":"MetricTimestamp"} - } - }, - "CreateCertificateFromCsrRequest":{ - "type":"structure", - "required":["certificateSigningRequest"], - "members":{ - "certificateSigningRequest":{"shape":"CertificateSigningRequest"}, - "setAsActive":{ - "shape":"SetAsActive", - "location":"querystring", - "locationName":"setAsActive" - } - } - }, - "CreateCertificateFromCsrResponse":{ - "type":"structure", - "members":{ - "certificateArn":{"shape":"CertificateArn"}, - "certificateId":{"shape":"CertificateId"}, - "certificatePem":{"shape":"CertificatePem"} - } - }, - "CreateKeysAndCertificateRequest":{ - "type":"structure", - "members":{ - "setAsActive":{ - "shape":"SetAsActive", - "location":"querystring", - "locationName":"setAsActive" - } - } - }, - "CreateKeysAndCertificateResponse":{ - "type":"structure", - "members":{ - "certificateArn":{"shape":"CertificateArn"}, - "certificateId":{"shape":"CertificateId"}, - "certificatePem":{"shape":"CertificatePem"}, - "keyPair":{"shape":"KeyPair"} - } - }, - "CreatePolicyRequest":{ - "type":"structure", - "required":[ - "policyName", - "policyDocument" - ], - "members":{ - "policyName":{ - "shape":"PolicyName", - "location":"uri", - "locationName":"policyName" - }, - "policyDocument":{"shape":"PolicyDocument"} - } - }, - "CreatePolicyResponse":{ - "type":"structure", - "members":{ - "policyName":{"shape":"PolicyName"}, - "policyArn":{"shape":"PolicyArn"}, - "policyDocument":{"shape":"PolicyDocument"}, - "policyVersionId":{"shape":"PolicyVersionId"} - } - }, - "CreatePolicyVersionRequest":{ - "type":"structure", - "required":[ - "policyName", - "policyDocument" - ], - "members":{ - "policyName":{ - "shape":"PolicyName", - "location":"uri", - "locationName":"policyName" - }, - "policyDocument":{"shape":"PolicyDocument"}, - "setAsDefault":{ - "shape":"SetAsDefault", - "location":"querystring", - "locationName":"setAsDefault" - } - } - }, - "CreatePolicyVersionResponse":{ - "type":"structure", - "members":{ - "policyArn":{"shape":"PolicyArn"}, - "policyDocument":{"shape":"PolicyDocument"}, - "policyVersionId":{"shape":"PolicyVersionId"}, - "isDefaultVersion":{"shape":"IsDefaultVersion"} - } - }, - "CreateThingRequest":{ - "type":"structure", - "required":["thingName"], - "members":{ - "thingName":{ - "shape":"ThingName", - "location":"uri", - "locationName":"thingName" - }, - "attributePayload":{"shape":"AttributePayload"} - } - }, - "CreateThingResponse":{ - "type":"structure", - "members":{ - "thingName":{"shape":"ThingName"}, - "thingArn":{"shape":"ThingArn"} - } - }, - "CreateTopicRuleRequest":{ - "type":"structure", - "required":[ - "ruleName", - "topicRulePayload" - ], - "members":{ - "ruleName":{ - "shape":"RuleName", - "location":"uri", - "locationName":"ruleName" - }, - "topicRulePayload":{"shape":"TopicRulePayload"} - }, - "payload":"topicRulePayload" - }, - "CreatedAtDate":{"type":"timestamp"}, - "DateType":{"type":"timestamp"}, - "DeleteCACertificateRequest":{ - "type":"structure", - "required":["certificateId"], - "members":{ - "certificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"certificateId" - } - } - }, - "DeleteCACertificateResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteCertificateRequest":{ - "type":"structure", - "required":["certificateId"], - "members":{ - "certificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"certificateId" - } - } - }, - "DeleteConflictException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "DeletePolicyRequest":{ - "type":"structure", - "required":["policyName"], - "members":{ - "policyName":{ - "shape":"PolicyName", - "location":"uri", - "locationName":"policyName" - } - } - }, - "DeletePolicyVersionRequest":{ - "type":"structure", - "required":[ - "policyName", - "policyVersionId" - ], - "members":{ - "policyName":{ - "shape":"PolicyName", - "location":"uri", - "locationName":"policyName" - }, - "policyVersionId":{ - "shape":"PolicyVersionId", - "location":"uri", - "locationName":"policyVersionId" - } - } - }, - "DeleteRegistrationCodeRequest":{ - "type":"structure", - "members":{ - } - }, - "DeleteRegistrationCodeResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteThingRequest":{ - "type":"structure", - "required":["thingName"], - "members":{ - "thingName":{ - "shape":"ThingName", - "location":"uri", - "locationName":"thingName" - } - } - }, - "DeleteThingResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteTopicRuleRequest":{ - "type":"structure", - "members":{ - "ruleName":{ - "shape":"RuleName", - "location":"uri", - "locationName":"ruleName" - } - }, - "required":["ruleName"] - }, - "DeliveryStreamName":{"type":"string"}, - "DescribeCACertificateRequest":{ - "type":"structure", - "required":["certificateId"], - "members":{ - "certificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"certificateId" - } - } - }, - "DescribeCACertificateResponse":{ - "type":"structure", - "members":{ - "certificateDescription":{"shape":"CACertificateDescription"} - } - }, - "DescribeCertificateRequest":{ - "type":"structure", - "required":["certificateId"], - "members":{ - "certificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"certificateId" - } - } - }, - "DescribeCertificateResponse":{ - "type":"structure", - "members":{ - "certificateDescription":{"shape":"CertificateDescription"} - } - }, - "DescribeEndpointRequest":{ - "type":"structure", - "members":{ - } - }, - "DescribeEndpointResponse":{ - "type":"structure", - "members":{ - "endpointAddress":{"shape":"EndpointAddress"} - } - }, - "DescribeThingRequest":{ - "type":"structure", - "required":["thingName"], - "members":{ - "thingName":{ - "shape":"ThingName", - "location":"uri", - "locationName":"thingName" - } - } - }, - "DescribeThingResponse":{ - "type":"structure", - "members":{ - "defaultClientId":{"shape":"ClientId"}, - "thingName":{"shape":"ThingName"}, - "attributes":{"shape":"Attributes"} - } - }, - "Description":{"type":"string"}, - "DetachPrincipalPolicyRequest":{ - "type":"structure", - "required":[ - "policyName", - "principal" - ], - "members":{ - "policyName":{ - "shape":"PolicyName", - "location":"uri", - "locationName":"policyName" - }, - "principal":{ - "shape":"Principal", - "location":"header", - "locationName":"x-amzn-iot-principal" - } - } - }, - "DetachThingPrincipalRequest":{ - "type":"structure", - "required":[ - "thingName", - "principal" - ], - "members":{ - "thingName":{ - "shape":"ThingName", - "location":"uri", - "locationName":"thingName" - }, - "principal":{ - "shape":"Principal", - "location":"header", - "locationName":"x-amzn-principal" - } - } - }, - "DetachThingPrincipalResponse":{ - "type":"structure", - "members":{ - } - }, - "DisableTopicRuleRequest":{ - "type":"structure", - "required":["ruleName"], - "members":{ - "ruleName":{ - "shape":"RuleName", - "location":"uri", - "locationName":"ruleName" - } - } - }, - "DynamoDBAction":{ - "type":"structure", - "required":[ - "tableName", - "roleArn", - "hashKeyField", - "hashKeyValue", - "rangeKeyField", - "rangeKeyValue" - ], - "members":{ - "tableName":{"shape":"TableName"}, - "roleArn":{"shape":"AwsArn"}, - "hashKeyField":{"shape":"HashKeyField"}, - "hashKeyValue":{"shape":"HashKeyValue"}, - "rangeKeyField":{"shape":"RangeKeyField"}, - "rangeKeyValue":{"shape":"RangeKeyValue"}, - "payloadField":{"shape":"PayloadField"} - } - }, - "ElasticsearchAction":{ - "type":"structure", - "required":[ - "roleArn", - "endpoint", - "index", - "type", - "id" - ], - "members":{ - "roleArn":{"shape":"AwsArn"}, - "endpoint":{"shape":"ElasticsearchEndpoint"}, - "index":{"shape":"ElasticsearchIndex"}, - "type":{"shape":"ElasticsearchType"}, - "id":{"shape":"ElasticsearchId"} - } - }, - "ElasticsearchEndpoint":{ - "type":"string", - "pattern":"https?://.*" - }, - "ElasticsearchId":{"type":"string"}, - "ElasticsearchIndex":{"type":"string"}, - "ElasticsearchType":{"type":"string"}, - "EnableTopicRuleRequest":{ - "type":"structure", - "required":["ruleName"], - "members":{ - "ruleName":{ - "shape":"RuleName", - "location":"uri", - "locationName":"ruleName" - } - } - }, - "EndpointAddress":{"type":"string"}, - "FirehoseAction":{ - "type":"structure", - "required":[ - "roleArn", - "deliveryStreamName" - ], - "members":{ - "roleArn":{"shape":"AwsArn"}, - "deliveryStreamName":{"shape":"DeliveryStreamName"} - } - }, - "FunctionArn":{"type":"string"}, - "GetLoggingOptionsRequest":{ - "type":"structure", - "members":{ - } - }, - "GetLoggingOptionsResponse":{ - "type":"structure", - "members":{ - "roleArn":{"shape":"AwsArn"}, - "logLevel":{"shape":"LogLevel"} - } - }, - "GetPolicyRequest":{ - "type":"structure", - "required":["policyName"], - "members":{ - "policyName":{ - "shape":"PolicyName", - "location":"uri", - "locationName":"policyName" - } - } - }, - "GetPolicyResponse":{ - "type":"structure", - "members":{ - "policyName":{"shape":"PolicyName"}, - "policyArn":{"shape":"PolicyArn"}, - "policyDocument":{"shape":"PolicyDocument"}, - "defaultVersionId":{"shape":"PolicyVersionId"} - } - }, - "GetPolicyVersionRequest":{ - "type":"structure", - "required":[ - "policyName", - "policyVersionId" - ], - "members":{ - "policyName":{ - "shape":"PolicyName", - "location":"uri", - "locationName":"policyName" - }, - "policyVersionId":{ - "shape":"PolicyVersionId", - "location":"uri", - "locationName":"policyVersionId" - } - } - }, - "GetPolicyVersionResponse":{ - "type":"structure", - "members":{ - "policyArn":{"shape":"PolicyArn"}, - "policyName":{"shape":"PolicyName"}, - "policyDocument":{"shape":"PolicyDocument"}, - "policyVersionId":{"shape":"PolicyVersionId"}, - "isDefaultVersion":{"shape":"IsDefaultVersion"} - } - }, - "GetRegistrationCodeRequest":{ - "type":"structure", - "members":{ - } - }, - "GetRegistrationCodeResponse":{ - "type":"structure", - "members":{ - "registrationCode":{"shape":"RegistrationCode"} - } - }, - "GetTopicRuleRequest":{ - "type":"structure", - "required":["ruleName"], - "members":{ - "ruleName":{ - "shape":"RuleName", - "location":"uri", - "locationName":"ruleName" - } - } - }, - "GetTopicRuleResponse":{ - "type":"structure", - "members":{ - "ruleArn":{"shape":"RuleArn"}, - "rule":{"shape":"TopicRule"} - } - }, - "HashKeyField":{"type":"string"}, - "HashKeyValue":{"type":"string"}, - "InternalException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - "InternalFailureException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - "InvalidRequestException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "IsDefaultVersion":{"type":"boolean"}, - "IsDisabled":{"type":"boolean"}, - "Key":{"type":"string"}, - "KeyPair":{ - "type":"structure", - "members":{ - "PublicKey":{"shape":"PublicKey"}, - "PrivateKey":{"shape":"PrivateKey"} - } - }, - "KinesisAction":{ - "type":"structure", - "required":[ - "roleArn", - "streamName" - ], - "members":{ - "roleArn":{"shape":"AwsArn"}, - "streamName":{"shape":"StreamName"}, - "partitionKey":{"shape":"PartitionKey"} - } - }, - "LambdaAction":{ - "type":"structure", - "required":["functionArn"], - "members":{ - "functionArn":{"shape":"FunctionArn"} - } - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":410}, - "exception":true - }, - "ListCACertificatesRequest":{ - "type":"structure", - "members":{ - "pageSize":{ - "shape":"PageSize", - "location":"querystring", - "locationName":"pageSize" - }, - "marker":{ - "shape":"Marker", - "location":"querystring", - "locationName":"marker" - }, - "ascendingOrder":{ - "shape":"AscendingOrder", - "location":"querystring", - "locationName":"isAscendingOrder" - } - } - }, - "ListCACertificatesResponse":{ - "type":"structure", - "members":{ - "certificates":{"shape":"CACertificates"}, - "nextMarker":{"shape":"Marker"} - } - }, - "ListCertificatesByCARequest":{ - "type":"structure", - "required":["caCertificateId"], - "members":{ - "caCertificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"caCertificateId" - }, - "pageSize":{ - "shape":"PageSize", - "location":"querystring", - "locationName":"pageSize" - }, - "marker":{ - "shape":"Marker", - "location":"querystring", - "locationName":"marker" - }, - "ascendingOrder":{ - "shape":"AscendingOrder", - "location":"querystring", - "locationName":"isAscendingOrder" - } - } - }, - "ListCertificatesByCAResponse":{ - "type":"structure", - "members":{ - "certificates":{"shape":"Certificates"}, - "nextMarker":{"shape":"Marker"} - } - }, - "ListCertificatesRequest":{ - "type":"structure", - "members":{ - "pageSize":{ - "shape":"PageSize", - "location":"querystring", - "locationName":"pageSize" - }, - "marker":{ - "shape":"Marker", - "location":"querystring", - "locationName":"marker" - }, - "ascendingOrder":{ - "shape":"AscendingOrder", - "location":"querystring", - "locationName":"isAscendingOrder" - } - } - }, - "ListCertificatesResponse":{ - "type":"structure", - "members":{ - "certificates":{"shape":"Certificates"}, - "nextMarker":{"shape":"Marker"} - } - }, - "ListPoliciesRequest":{ - "type":"structure", - "members":{ - "marker":{ - "shape":"Marker", - "location":"querystring", - "locationName":"marker" - }, - "pageSize":{ - "shape":"PageSize", - "location":"querystring", - "locationName":"pageSize" - }, - "ascendingOrder":{ - "shape":"AscendingOrder", - "location":"querystring", - "locationName":"isAscendingOrder" - } - } - }, - "ListPoliciesResponse":{ - "type":"structure", - "members":{ - "policies":{"shape":"Policies"}, - "nextMarker":{"shape":"Marker"} - } - }, - "ListPolicyVersionsRequest":{ - "type":"structure", - "required":["policyName"], - "members":{ - "policyName":{ - "shape":"PolicyName", - "location":"uri", - "locationName":"policyName" - } - } - }, - "ListPolicyVersionsResponse":{ - "type":"structure", - "members":{ - "policyVersions":{"shape":"PolicyVersions"} - } - }, - "ListPrincipalPoliciesRequest":{ - "type":"structure", - "required":["principal"], - "members":{ - "principal":{ - "shape":"Principal", - "location":"header", - "locationName":"x-amzn-iot-principal" - }, - "marker":{ - "shape":"Marker", - "location":"querystring", - "locationName":"marker" - }, - "pageSize":{ - "shape":"PageSize", - "location":"querystring", - "locationName":"pageSize" - }, - "ascendingOrder":{ - "shape":"AscendingOrder", - "location":"querystring", - "locationName":"isAscendingOrder" - } - } - }, - "ListPrincipalPoliciesResponse":{ - "type":"structure", - "members":{ - "policies":{"shape":"Policies"}, - "nextMarker":{"shape":"Marker"} - } - }, - "ListPrincipalThingsRequest":{ - "type":"structure", - "required":["principal"], - "members":{ - "nextToken":{ - "shape":"NextToken", - "location":"querystring", - "locationName":"nextToken" - }, - "maxResults":{ - "shape":"MaxResults", - "location":"querystring", - "locationName":"maxResults" - }, - "principal":{ - "shape":"Principal", - "location":"header", - "locationName":"x-amzn-principal" - } - } - }, - "ListPrincipalThingsResponse":{ - "type":"structure", - "members":{ - "things":{"shape":"ThingNameList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "ListThingPrincipalsRequest":{ - "type":"structure", - "required":["thingName"], - "members":{ - "thingName":{ - "shape":"ThingName", - "location":"uri", - "locationName":"thingName" - } - } - }, - "ListThingPrincipalsResponse":{ - "type":"structure", - "members":{ - "principals":{"shape":"Principals"} - } - }, - "ListThingsRequest":{ - "type":"structure", - "members":{ - "nextToken":{ - "shape":"NextToken", - "location":"querystring", - "locationName":"nextToken" - }, - "maxResults":{ - "shape":"MaxResults", - "location":"querystring", - "locationName":"maxResults" - }, - "attributeName":{ - "shape":"AttributeName", - "location":"querystring", - "locationName":"attributeName" - }, - "attributeValue":{ - "shape":"AttributeValue", - "location":"querystring", - "locationName":"attributeValue" - } - } - }, - "ListThingsResponse":{ - "type":"structure", - "members":{ - "things":{"shape":"ThingAttributeList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "ListTopicRulesRequest":{ - "type":"structure", - "members":{ - "topic":{ - "shape":"Topic", - "location":"querystring", - "locationName":"topic" - }, - "maxResults":{ - "shape":"MaxResults", - "location":"querystring", - "locationName":"maxResults" - }, - "nextToken":{ - "shape":"NextToken", - "location":"querystring", - "locationName":"nextToken" - }, - "ruleDisabled":{ - "shape":"IsDisabled", - "location":"querystring", - "locationName":"ruleDisabled" - } - } - }, - "ListTopicRulesResponse":{ - "type":"structure", - "members":{ - "rules":{"shape":"TopicRuleList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "LogLevel":{ - "type":"string", - "enum":[ - "DEBUG", - "INFO", - "ERROR", - "WARN", - "DISABLED" - ] - }, - "LoggingOptionsPayload":{ - "type":"structure", - "required":["roleArn"], - "members":{ - "roleArn":{"shape":"AwsArn"}, - "logLevel":{"shape":"LogLevel"} - } - }, - "MalformedPolicyException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "Marker":{"type":"string"}, - "MaxResults":{ - "type":"integer", - "min":1, - "max":10000 - }, - "Message":{ - "type":"string", - "max":128 - }, - "MessageFormat":{ - "type":"string", - "enum":[ - "RAW", - "JSON" - ] - }, - "MetricName":{"type":"string"}, - "MetricNamespace":{"type":"string"}, - "MetricTimestamp":{"type":"string"}, - "MetricUnit":{"type":"string"}, - "MetricValue":{"type":"string"}, - "NextToken":{"type":"string"}, - "PageSize":{ - "type":"integer", - "min":1, - "max":250 - }, - "PartitionKey":{"type":"string"}, - "PayloadField":{"type":"string"}, - "Policies":{ - "type":"list", - "member":{"shape":"Policy"} - }, - "Policy":{ - "type":"structure", - "members":{ - "policyName":{"shape":"PolicyName"}, - "policyArn":{"shape":"PolicyArn"} - } - }, - "PolicyArn":{"type":"string"}, - "PolicyDocument":{"type":"string"}, - "PolicyName":{ - "type":"string", - "min":1, - "max":128, - "pattern":"[\\w+=,.@-]+" - }, - "PolicyVersion":{ - "type":"structure", - "members":{ - "versionId":{"shape":"PolicyVersionId"}, - "isDefaultVersion":{"shape":"IsDefaultVersion"}, - "createDate":{"shape":"DateType"} - } - }, - "PolicyVersionId":{ - "type":"string", - "pattern":"[0-9]+" - }, - "PolicyVersions":{ - "type":"list", - "member":{"shape":"PolicyVersion"} - }, - "Principal":{"type":"string"}, - "PrincipalArn":{"type":"string"}, - "Principals":{ - "type":"list", - "member":{"shape":"PrincipalArn"} - }, - "PrivateKey":{ - "type":"string", - "min":1, - "sensitive":true - }, - "PublicKey":{ - "type":"string", - "min":1 - }, - "QueueUrl":{"type":"string"}, - "RangeKeyField":{"type":"string"}, - "RangeKeyValue":{"type":"string"}, - "RegisterCACertificateRequest":{ - "type":"structure", - "required":[ - "caCertificate", - "verificationCertificate" - ], - "members":{ - "caCertificate":{"shape":"CertificatePem"}, - "verificationCertificate":{"shape":"CertificatePem"}, - "setAsActive":{ - "shape":"SetAsActive", - "location":"querystring", - "locationName":"setAsActive" - } - } - }, - "RegisterCACertificateResponse":{ - "type":"structure", - "members":{ - "certificateArn":{"shape":"CertificateArn"}, - "certificateId":{"shape":"CertificateId"} - } - }, - "RegisterCertificateRequest":{ - "type":"structure", - "required":["certificatePem"], - "members":{ - "certificatePem":{"shape":"CertificatePem"}, - "caCertificatePem":{"shape":"CertificatePem"}, - "setAsActive":{ - "shape":"SetAsActive", - "location":"querystring", - "locationName":"setAsActive" - } - } - }, - "RegisterCertificateResponse":{ - "type":"structure", - "members":{ - "certificateArn":{"shape":"CertificateArn"}, - "certificateId":{"shape":"CertificateId"} - } - }, - "RegistrationCode":{ - "type":"string", - "min":64, - "max":64, - "pattern":"(0x)?[a-fA-F0-9]+" - }, - "RegistrationCodeValidationException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "RejectCertificateTransferRequest":{ - "type":"structure", - "required":["certificateId"], - "members":{ - "certificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"certificateId" - }, - "rejectReason":{"shape":"Message"} - } - }, - "ReplaceTopicRuleRequest":{ - "type":"structure", - "required":[ - "ruleName", - "topicRulePayload" - ], - "members":{ - "ruleName":{ - "shape":"RuleName", - "location":"uri", - "locationName":"ruleName" - }, - "topicRulePayload":{"shape":"TopicRulePayload"} - }, - "payload":"topicRulePayload" - }, - "RepublishAction":{ - "type":"structure", - "required":[ - "roleArn", - "topic" - ], - "members":{ - "roleArn":{"shape":"AwsArn"}, - "topic":{"shape":"TopicPattern"} - } - }, - "ResourceAlreadyExistsException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "RuleArn":{"type":"string"}, - "RuleName":{ - "type":"string", - "min":1, - "max":128, - "pattern":"^[a-zA-Z0-9_]+$" - }, - "S3Action":{ - "type":"structure", - "required":[ - "roleArn", - "bucketName", - "key" - ], - "members":{ - "roleArn":{"shape":"AwsArn"}, - "bucketName":{"shape":"BucketName"}, - "key":{"shape":"Key"} - } - }, - "SQL":{"type":"string"}, - "ServiceUnavailableException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - "SetAsActive":{"type":"boolean"}, - "SetAsDefault":{"type":"boolean"}, - "SetDefaultPolicyVersionRequest":{ - "type":"structure", - "required":[ - "policyName", - "policyVersionId" - ], - "members":{ - "policyName":{ - "shape":"PolicyName", - "location":"uri", - "locationName":"policyName" - }, - "policyVersionId":{ - "shape":"PolicyVersionId", - "location":"uri", - "locationName":"policyVersionId" - } - } - }, - "SetLoggingOptionsRequest":{ - "type":"structure", - "required":["loggingOptionsPayload"], - "members":{ - "loggingOptionsPayload":{"shape":"LoggingOptionsPayload"} - }, - "payload":"loggingOptionsPayload" - }, - "SnsAction":{ - "type":"structure", - "required":[ - "targetArn", - "roleArn" - ], - "members":{ - "targetArn":{"shape":"AwsArn"}, - "roleArn":{"shape":"AwsArn"}, - "messageFormat":{"shape":"MessageFormat"} - } - }, - "SqlParseException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "SqsAction":{ - "type":"structure", - "required":[ - "roleArn", - "queueUrl" - ], - "members":{ - "roleArn":{"shape":"AwsArn"}, - "queueUrl":{"shape":"QueueUrl"}, - "useBase64":{"shape":"UseBase64"} - } - }, - "StateReason":{"type":"string"}, - "StateValue":{"type":"string"}, - "StreamName":{"type":"string"}, - "TableName":{"type":"string"}, - "ThingArn":{"type":"string"}, - "ThingAttribute":{ - "type":"structure", - "members":{ - "thingName":{"shape":"ThingName"}, - "attributes":{"shape":"Attributes"} - } - }, - "ThingAttributeList":{ - "type":"list", - "member":{"shape":"ThingAttribute"} - }, - "ThingName":{ - "type":"string", - "min":1, - "max":128, - "pattern":"[a-zA-Z0-9_-]+" - }, - "ThingNameList":{ - "type":"list", - "member":{"shape":"ThingName"} - }, - "ThrottlingException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":429}, - "exception":true - }, - "Topic":{"type":"string"}, - "TopicPattern":{"type":"string"}, - "TopicRule":{ - "type":"structure", - "members":{ - "ruleName":{"shape":"RuleName"}, - "sql":{"shape":"SQL"}, - "description":{"shape":"Description"}, - "createdAt":{"shape":"CreatedAtDate"}, - "actions":{"shape":"ActionList"}, - "ruleDisabled":{"shape":"IsDisabled"}, - "awsIotSqlVersion":{"shape":"AwsIotSqlVersion"} - } - }, - "TopicRuleList":{ - "type":"list", - "member":{"shape":"TopicRuleListItem"} - }, - "TopicRuleListItem":{ - "type":"structure", - "members":{ - "ruleArn":{"shape":"RuleArn"}, - "ruleName":{"shape":"RuleName"}, - "topicPattern":{"shape":"TopicPattern"}, - "createdAt":{"shape":"CreatedAtDate"}, - "ruleDisabled":{"shape":"IsDisabled"} - } - }, - "TopicRulePayload":{ - "type":"structure", - "required":[ - "sql", - "actions" - ], - "members":{ - "sql":{"shape":"SQL"}, - "description":{"shape":"Description"}, - "actions":{"shape":"ActionList"}, - "ruleDisabled":{"shape":"IsDisabled"}, - "awsIotSqlVersion":{"shape":"AwsIotSqlVersion"} - } - }, - "TransferAlreadyCompletedException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":410}, - "exception":true - }, - "TransferCertificateRequest":{ - "type":"structure", - "required":[ - "certificateId", - "targetAwsAccount" - ], - "members":{ - "certificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"certificateId" - }, - "targetAwsAccount":{ - "shape":"AwsAccountId", - "location":"querystring", - "locationName":"targetAwsAccount" - }, - "transferMessage":{"shape":"Message"} - } - }, - "TransferCertificateResponse":{ - "type":"structure", - "members":{ - "transferredCertificateArn":{"shape":"CertificateArn"} - } - }, - "TransferConflictException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "TransferData":{ - "type":"structure", - "members":{ - "transferMessage":{"shape":"Message"}, - "rejectReason":{"shape":"Message"}, - "transferDate":{"shape":"DateType"}, - "acceptDate":{"shape":"DateType"}, - "rejectDate":{"shape":"DateType"} - } - }, - "UnauthorizedException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":401}, - "exception":true - }, - "UpdateCACertificateRequest":{ - "type":"structure", - "required":[ - "certificateId", - "newStatus" - ], - "members":{ - "certificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"certificateId" - }, - "newStatus":{ - "shape":"CACertificateStatus", - "location":"querystring", - "locationName":"newStatus" - } - } - }, - "UpdateCertificateRequest":{ - "type":"structure", - "required":[ - "certificateId", - "newStatus" - ], - "members":{ - "certificateId":{ - "shape":"CertificateId", - "location":"uri", - "locationName":"certificateId" - }, - "newStatus":{ - "shape":"CertificateStatus", - "location":"querystring", - "locationName":"newStatus" - } - } - }, - "UpdateThingRequest":{ - "type":"structure", - "required":[ - "thingName", - "attributePayload" - ], - "members":{ - "thingName":{ - "shape":"ThingName", - "location":"uri", - "locationName":"thingName" - }, - "attributePayload":{"shape":"AttributePayload"} - } - }, - "UpdateThingResponse":{ - "type":"structure", - "members":{ - } - }, - "UseBase64":{"type":"boolean"}, - "VersionsLimitExceededException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "errorMessage":{"type":"string"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/docs-2.json deleted file mode 100644 index 8566bbdb8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/docs-2.json +++ /dev/null @@ -1,1392 +0,0 @@ -{ - "version": "2.0", - "operations": { - "AcceptCertificateTransfer": "

    Accepts a pending certificate transfer. The default state of the certificate is INACTIVE.

    To check for pending certificate transfers, call ListCertificates to enumerate your certificates.

    ", - "AttachPrincipalPolicy": "

    Attaches the specified policy to the specified principal (certificate or other credential).

    ", - "AttachThingPrincipal": "

    Attaches the specified principal to the specified thing.

    ", - "CancelCertificateTransfer": "

    Cancels a pending transfer for the specified certificate.

    Note Only the transfer source account can use this operation to cancel a transfer. (Transfer destinations can use RejectCertificateTransfer instead.) After transfer, AWS IoT returns the certificate to the source account in the INACTIVE state. After the destination account has accepted the transfer, the transfer cannot be cancelled.

    After a certificate transfer is cancelled, the status of the certificate changes from PENDING_TRANSFER to INACTIVE.

    ", - "CreateCertificateFromCsr": "

    Creates an X.509 certificate using the specified certificate signing request.

    Note Reusing the same certificate signing request (CSR) results in a distinct certificate.

    You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into that directory, and then specifying that directory on the command line. The following commands show how to create a batch of certificates given a batch of CSRs.

    Assuming a set of CSRs are located inside of the directory my-csr-directory:

    >

    On Linux and OS X, the command is:

    $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{}

    This command lists all of the CSRs in my-csr-directory and pipes each CSR file name to the aws iot create-certificate-from-csr AWS CLI command to create a certificate for the corresponding CSR.

    The aws iot create-certificate-from-csr part of the command can also be run in parallel to speed up the certificate creation process:

    $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{}

    On Windows PowerShell, the command to create certificates for all CSRs in my-csr-directory is:

    > ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/$_}

    On a Windows command prompt, the command to create certificates for all CSRs in my-csr-directory is:

    > forfiles /p my-csr-directory /c \"cmd /c aws iot create-certificate-from-csr --certificate-signing-request file://@path\"

    ", - "CreateKeysAndCertificate": "

    Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key.

    Note This is the only time AWS IoT issues the private key for this certificate, so it is important to keep it in a secure location.

    ", - "CreatePolicy": "

    Creates an AWS IoT policy.

    The created policy is the default version for the policy. This operation creates a policy version with a version identifier of 1 and sets 1 as the policy's default version.

    ", - "CreatePolicyVersion": "

    Creates a new version of the specified AWS IoT policy. To update a policy, create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must use DeletePolicyVersion to delete an existing version before you create a new one.

    Optionally, you can set the new version as the policy's default version. The default version is the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

    ", - "CreateThing": "

    Creates a thing in the Thing Registry.

    ", - "CreateTopicRule": "

    Creates a rule. Creating rules is an administrator-level action. Any user who has permission to create rules will be able to access data processed by the rule.

    ", - "DeleteCACertificate": "

    Deletes a registered CA certificate.

    ", - "DeleteCertificate": "

    Deletes the specified certificate.

    A certificate cannot be deleted if it has a policy attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy API to detach all policies. Next, use the UpdateCertificate API to set the certificate to the INACTIVE status.

    ", - "DeletePolicy": "

    Deletes the specified policy.

    A policy cannot be deleted if it has non-default versions or it is attached to any certificate.

    To delete a policy, use the DeletePolicyVersion API to delete all non-default versions of the policy; use the DetachPrincipalPolicy API to detach the policy from any certificate; and then use the DeletePolicy API to delete the policy.

    When a policy is deleted using DeletePolicy, its default version is deleted with it.

    ", - "DeletePolicyVersion": "

    Deletes the specified version of the specified policy. You cannot delete the default version of a policy using this API. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.

    ", - "DeleteRegistrationCode": "

    Deletes a CA certificate registration code.

    ", - "DeleteThing": "

    Deletes the specified thing from the Thing Registry.

    ", - "DeleteTopicRule": "

    Deletes the specified rule.

    ", - "DescribeCACertificate": "

    Describes a registered CA certificate.

    ", - "DescribeCertificate": "

    Gets information about the specified certificate.

    ", - "DescribeEndpoint": "

    Returns a unique endpoint specific to the AWS account making the call. You specify the following URI when updating state information for your thing: https://endpoint/things/thingName/shadow.

    ", - "DescribeThing": "

    Gets information about the specified thing.

    ", - "DetachPrincipalPolicy": "

    Removes the specified policy from the specified certificate.

    ", - "DetachThingPrincipal": "

    Detaches the specified principal from the specified thing.

    ", - "DisableTopicRule": "

    Disables the specified rule.

    ", - "EnableTopicRule": "

    Enables the specified rule.

    ", - "GetLoggingOptions": "

    Gets the logging options.

    ", - "GetPolicy": "

    Gets information about the specified policy with the policy document of the default version.

    ", - "GetPolicyVersion": "

    Gets information about the specified policy version.

    ", - "GetRegistrationCode": "

    Gets a registration code used to register a CA certificate with AWS IoT.

    ", - "GetTopicRule": "

    Gets information about the specified rule.

    ", - "ListCACertificates": "

    Lists the CA certificates registered for your AWS account.

    The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

    ", - "ListCertificates": "

    Lists the certificates registered in your AWS account.

    The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

    ", - "ListCertificatesByCA": "

    List the device certificates signed by the specified CA certificate.

    ", - "ListPolicies": "

    Lists your policies.

    ", - "ListPolicyVersions": "

    Lists the versions of the specified policy, and identifies the default version.

    ", - "ListPrincipalPolicies": "

    Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in AmazonCognito Identity format.

    ", - "ListPrincipalThings": "

    Lists the things associated with the specified principal.

    ", - "ListThingPrincipals": "

    Lists the principals associated with the specified thing.

    ", - "ListThings": "

    Lists your things. You can pass an AttributeName or AttributeValue to filter your things (for example, \"ListThings where AttributeName=Color and AttributeValue=Red\").

    ", - "ListTopicRules": "

    Lists the rules for the specific topic.

    ", - "RegisterCACertificate": "

    Registers a CA certificate with AWS IoT. This CA certificate can then be used to sign device certificates, which can be then registered with AWS IoT. You can register up to 10 CA certificates per AWS account that have the same subject field and public key. This enables you to have up to 10 certificate authorities sign your device certificates. If you have more than one CA certificate registered, make sure you pass the CA certificate when you register your device certificates with the RegisterCertificate API.

    ", - "RegisterCertificate": "

    Registers a device certificate with AWS IoT. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.

    ", - "RejectCertificateTransfer": "

    Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE.

    To check for pending certificate transfers, call ListCertificates to enumerate your certificates.

    This operation can only be called by the transfer destination. After it is called, the certificate will be returned to the source's account in the INACTIVE state.

    ", - "ReplaceTopicRule": "

    Replaces the specified rule. You must specify all parameters for the new rule. Creating rules is an administrator-level action. Any user who has permission to create rules will be able to access data processed by the rule.

    ", - "SetDefaultPolicyVersion": "

    Sets the specified version of the specified policy as the policy's default (operative) version. This action affects all certificates to which the policy is attached. To list the principals the policy is attached to, use the ListPrincipalPolicy API.

    ", - "SetLoggingOptions": "

    Sets the logging options.

    ", - "TransferCertificate": "

    Transfers the specified certificate to the specified AWS account.

    You can cancel the transfer until it is acknowledged by the recipient.

    No notification is sent to the transfer destination's account. It is up to the caller to notify the transfer target.

    The certificate being transferred must not be in the ACTIVE state. You can use the UpdateCertificate API to deactivate it.

    The certificate must not have any policies attached to it. You can use the DetachPrincipalPolicy API to detach them.

    ", - "UpdateCACertificate": "

    Updates a registered CA certificate.

    ", - "UpdateCertificate": "

    Updates the status of the specified certificate. This operation is idempotent.

    Moving a certificate from the ACTIVE state (including REVOKED) will not disconnect currently connected devices, but these devices will be unable to reconnect.

    The ACTIVE state is required to authenticate devices connecting to AWS IoT using a certificate.

    ", - "UpdateThing": "

    Updates the data for a thing.

    " - }, - "service": "AWS IoT

    AWS IoT provides secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smart appliances) and the AWS cloud. You can discover your custom IoT-Data endpoint to communicate with, configure rules for data processing and integration with other services, organize resources associated with each thing (Thing Registry), configure logging, and create and manage policies and credentials to authenticate things.

    For more information about how AWS IoT works, see the Developer Guide.

    ", - "shapes": { - "AcceptCertificateTransferRequest": { - "base": "

    The input for the AcceptCertificateTransfer operation.

    ", - "refs": { - } - }, - "Action": { - "base": "

    Describes the actions associated with a rule.

    ", - "refs": { - "ActionList$member": null - } - }, - "ActionList": { - "base": null, - "refs": { - "TopicRule$actions": "

    The actions associated with the rule.

    ", - "TopicRulePayload$actions": "

    The actions associated with the rule.

    " - } - }, - "AlarmName": { - "base": null, - "refs": { - "CloudwatchAlarmAction$alarmName": "

    The CloudWatch alarm name.

    " - } - }, - "AscendingOrder": { - "base": null, - "refs": { - "ListCACertificatesRequest$ascendingOrder": "

    Determines the order of the results.

    ", - "ListCertificatesByCARequest$ascendingOrder": "

    Specifies the order for results. If True, the results are returned in ascending order, based on the creation date.

    ", - "ListCertificatesRequest$ascendingOrder": "

    Specifies the order for results. If True, the results are returned in ascending order, based on the creation date.

    ", - "ListPoliciesRequest$ascendingOrder": "

    Specifies the order for results. If true, the results are returned in ascending creation order.

    ", - "ListPrincipalPoliciesRequest$ascendingOrder": "

    Specifies the order for results. If true, results are returned in ascending creation order.

    " - } - }, - "AttachPrincipalPolicyRequest": { - "base": "

    The input for the AttachPrincipalPolicy operation.

    ", - "refs": { - } - }, - "AttachThingPrincipalRequest": { - "base": "

    The input for the AttachThingPrincipal operation.

    ", - "refs": { - } - }, - "AttachThingPrincipalResponse": { - "base": "

    The output from the AttachThingPrincipal operation.

    ", - "refs": { - } - }, - "AttributeName": { - "base": null, - "refs": { - "Attributes$key": null, - "ListThingsRequest$attributeName": "

    The attribute name.

    " - } - }, - "AttributePayload": { - "base": "

    The attribute payload, a JSON string containing up to three key-value pairs (for example, {\\\"attributes\\\":{\\\"string1\\\":\\\"string2\\\"}}).

    ", - "refs": { - "CreateThingRequest$attributePayload": "

    The attribute payload, which consists of up to 3 name/value pairs in a JSON document (for example, {\\\"attributes\\\":{\\\"string1\\\":\\\"string2\\\"}}).

    ", - "UpdateThingRequest$attributePayload": "

    The attribute payload, a JSON string containing up to three key-value pairs (for example, {\\\"attributes\\\":{\\\"string1\\\":\\\"string2\\\"}}).

    " - } - }, - "AttributeValue": { - "base": null, - "refs": { - "Attributes$value": null, - "ListThingsRequest$attributeValue": "

    The attribute value.

    " - } - }, - "Attributes": { - "base": null, - "refs": { - "AttributePayload$attributes": "

    A JSON string containing up to three key-value pair in JSON format (for example, {\\\"attributes\\\":{\\\"string1\\\":\\\"string2\\\"}}).

    ", - "DescribeThingResponse$attributes": "

    The attributes, which are name/value pairs in JSON format (for example: {\\\"attributes\\\":{\\\"some-name1\\\":\\\"some-value1\\\"}, {\\\"some-name2\\\":\\\"some-value2\\\"}, {\\\"some-name3\\\":\\\"some-value3\\\"}})

    ", - "ThingAttribute$attributes": "

    The attributes.

    " - } - }, - "AwsAccountId": { - "base": null, - "refs": { - "CACertificateDescription$ownedBy": "

    The owner of the CA certificate.

    ", - "CertificateDescription$ownedBy": "

    The ID of the AWS account that owns the certificate.

    ", - "CertificateDescription$previousOwnedBy": "

    The ID of the AWS account of the previous owner of the certificate.

    ", - "TransferCertificateRequest$targetAwsAccount": "

    The AWS account.

    " - } - }, - "AwsArn": { - "base": null, - "refs": { - "CloudwatchAlarmAction$roleArn": "

    The IAM role that allows access to the CloudWatch alarm.

    ", - "CloudwatchMetricAction$roleArn": "

    The IAM role that allows access to the CloudWatch metric.

    ", - "DynamoDBAction$roleArn": "

    The ARN of the IAM role that grants access to the DynamoDB table.

    ", - "ElasticsearchAction$roleArn": "

    The IAM role ARN that has access to Elasticsearch.

    ", - "FirehoseAction$roleArn": "

    The IAM role that grants access to the Amazon Kinesis Firehost stream.

    ", - "GetLoggingOptionsResponse$roleArn": "

    The ARN of the IAM role that grants access.

    ", - "KinesisAction$roleArn": "

    The ARN of the IAM role that grants access to the Amazon Kinesis stream.

    ", - "LoggingOptionsPayload$roleArn": "

    The ARN of the IAM role that grants access.

    ", - "RepublishAction$roleArn": "

    The ARN of the IAM role that grants access.

    ", - "S3Action$roleArn": "

    The ARN of the IAM role that grants access.

    ", - "SnsAction$targetArn": "

    The ARN of the SNS topic.

    ", - "SnsAction$roleArn": "

    The ARN of the IAM role that grants access.

    ", - "SqsAction$roleArn": "

    The ARN of the IAM role that grants access.

    " - } - }, - "AwsIotSqlVersion": { - "base": null, - "refs": { - "TopicRule$awsIotSqlVersion": "

    The version of the SQL rules engine to use when evaluating the rule.

    ", - "TopicRulePayload$awsIotSqlVersion": "

    The version of the SQL rules engine to use when evaluating the rule.

    " - } - }, - "BucketName": { - "base": null, - "refs": { - "S3Action$bucketName": "

    The Amazon S3 bucket.

    " - } - }, - "CACertificate": { - "base": "

    A CA certificate.

    ", - "refs": { - "CACertificates$member": null - } - }, - "CACertificateDescription": { - "base": "

    Describes a CA certificate.

    ", - "refs": { - "DescribeCACertificateResponse$certificateDescription": "

    The CA certificate description.

    " - } - }, - "CACertificateStatus": { - "base": null, - "refs": { - "CACertificate$status": "

    The status of the CA certificate.

    ", - "CACertificateDescription$status": "

    The status of a CA certificate.

    ", - "UpdateCACertificateRequest$newStatus": "

    The updated status of the CA certificate.

    " - } - }, - "CACertificates": { - "base": null, - "refs": { - "ListCACertificatesResponse$certificates": "

    The CA certificates registered in your AWS account.

    " - } - }, - "CancelCertificateTransferRequest": { - "base": "

    The input for the CancelCertificateTransfer operation.

    ", - "refs": { - } - }, - "Certificate": { - "base": "

    Information about a certificate.

    ", - "refs": { - "Certificates$member": null - } - }, - "CertificateArn": { - "base": null, - "refs": { - "CACertificate$certificateArn": "

    The ARN of the CA certificate.

    ", - "CACertificateDescription$certificateArn": "

    The CA certificate ARN.

    ", - "Certificate$certificateArn": "

    The ARN of the certificate.

    ", - "CertificateDescription$certificateArn": "

    The ARN of the certificate.

    ", - "CreateCertificateFromCsrResponse$certificateArn": "

    The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a principal for policy operations.

    ", - "CreateKeysAndCertificateResponse$certificateArn": "

    The ARN of the certificate.

    ", - "RegisterCACertificateResponse$certificateArn": "

    The CA certificate ARN.

    ", - "RegisterCertificateResponse$certificateArn": "

    The certificate ARN.

    ", - "TransferCertificateResponse$transferredCertificateArn": "

    The ARN of the certificate.

    " - } - }, - "CertificateConflictException": { - "base": "

    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.

    ", - "refs": { - } - }, - "CertificateDescription": { - "base": "

    Describes a certificate.

    ", - "refs": { - "DescribeCertificateResponse$certificateDescription": "

    The description of the certificate.

    " - } - }, - "CertificateId": { - "base": null, - "refs": { - "AcceptCertificateTransferRequest$certificateId": "

    The ID of the certificate.

    ", - "CACertificate$certificateId": "

    The ID of the CA certificate.

    ", - "CACertificateDescription$certificateId": "

    The CA certificate ID.

    ", - "CancelCertificateTransferRequest$certificateId": "

    The ID of the certificate.

    ", - "Certificate$certificateId": "

    The ID of the certificate.

    ", - "CertificateDescription$certificateId": "

    The ID of the certificate.

    ", - "CertificateDescription$caCertificateId": "

    The certificate ID of the CA certificate used to sign this certificate.

    ", - "CreateCertificateFromCsrResponse$certificateId": "

    The ID of the certificate. Certificate management operations only take a certificateId.

    ", - "CreateKeysAndCertificateResponse$certificateId": "

    The ID of the certificate. AWS IoT issues a default subject name for the certificate (for example, AWS IoT Certificate).

    ", - "DeleteCACertificateRequest$certificateId": "

    The ID of the certificate to delete.

    ", - "DeleteCertificateRequest$certificateId": "

    The ID of the certificate.

    ", - "DescribeCACertificateRequest$certificateId": "

    The CA certificate identifier.

    ", - "DescribeCertificateRequest$certificateId": "

    The ID of the certificate.

    ", - "ListCertificatesByCARequest$caCertificateId": "

    The ID of the CA certificate. This operation will list all registered device certificate that were signed by this CA certificate.

    ", - "RegisterCACertificateResponse$certificateId": "

    The CA certificate identifier.

    ", - "RegisterCertificateResponse$certificateId": "

    The certificate identifier.

    ", - "RejectCertificateTransferRequest$certificateId": "

    The ID of the certificate.

    ", - "TransferCertificateRequest$certificateId": "

    The ID of the certificate.

    ", - "UpdateCACertificateRequest$certificateId": "

    The CA certificate identifier.

    ", - "UpdateCertificateRequest$certificateId": "

    The ID of the certificate.

    " - } - }, - "CertificatePem": { - "base": null, - "refs": { - "CACertificateDescription$certificatePem": "

    The CA certificate data, in PEM format.

    ", - "CertificateDescription$certificatePem": "

    The certificate data, in PEM format.

    ", - "CreateCertificateFromCsrResponse$certificatePem": "

    The certificate data, in PEM format.

    ", - "CreateKeysAndCertificateResponse$certificatePem": "

    The certificate data, in PEM format.

    ", - "RegisterCACertificateRequest$caCertificate": "

    The CA certificate.

    ", - "RegisterCACertificateRequest$verificationCertificate": "

    The private key verification certificate.

    ", - "RegisterCertificateRequest$certificatePem": "

    The certificate data, in PEM format.

    ", - "RegisterCertificateRequest$caCertificatePem": "

    The CA certificate used to sign the device certificate being registered.

    " - } - }, - "CertificateSigningRequest": { - "base": null, - "refs": { - "CreateCertificateFromCsrRequest$certificateSigningRequest": "

    The certificate signing request (CSR).

    " - } - }, - "CertificateStateException": { - "base": "

    The certificate operation is not allowed.

    ", - "refs": { - } - }, - "CertificateStatus": { - "base": null, - "refs": { - "Certificate$status": "

    The status of the certificate.

    ", - "CertificateDescription$status": "

    The status of the certificate.

    ", - "UpdateCertificateRequest$newStatus": "

    The new status.

    Note: Setting the status to PENDING_TRANSFER will result in an exception being thrown. PENDING_TRANSFER is a status used internally by AWS IoT. It is not intended for developer use.

    " - } - }, - "CertificateValidationException": { - "base": "

    The certificate is invalid.

    ", - "refs": { - } - }, - "Certificates": { - "base": null, - "refs": { - "ListCertificatesByCAResponse$certificates": "

    The device certificates signed by the specified CA certificate.

    ", - "ListCertificatesResponse$certificates": "

    The descriptions of the certificates.

    " - } - }, - "ClientId": { - "base": null, - "refs": { - "DescribeThingResponse$defaultClientId": "

    The default client ID.

    " - } - }, - "CloudwatchAlarmAction": { - "base": "

    Describes an action that updates a CloudWatch alarm.

    ", - "refs": { - "Action$cloudwatchAlarm": "

    Change the state of a CloudWatch alarm.

    " - } - }, - "CloudwatchMetricAction": { - "base": "

    Describes an action that captures a CloudWatch metric.

    ", - "refs": { - "Action$cloudwatchMetric": "

    Capture a CloudWatch metric.

    " - } - }, - "CreateCertificateFromCsrRequest": { - "base": "

    The input for the CreateCertificateFromCsr operation.

    ", - "refs": { - } - }, - "CreateCertificateFromCsrResponse": { - "base": "

    The output from the CreateCertificateFromCsr operation.

    ", - "refs": { - } - }, - "CreateKeysAndCertificateRequest": { - "base": "

    The input for the CreateKeysAndCertificate operation.

    ", - "refs": { - } - }, - "CreateKeysAndCertificateResponse": { - "base": "

    The output of the CreateKeysAndCertificate operation.

    ", - "refs": { - } - }, - "CreatePolicyRequest": { - "base": "

    The input for the CreatePolicy operation.

    ", - "refs": { - } - }, - "CreatePolicyResponse": { - "base": "

    The output from the CreatePolicy operation.

    ", - "refs": { - } - }, - "CreatePolicyVersionRequest": { - "base": "

    The input for the CreatePolicyVersion operation.

    ", - "refs": { - } - }, - "CreatePolicyVersionResponse": { - "base": "

    The output of the CreatePolicyVersion operation.

    ", - "refs": { - } - }, - "CreateThingRequest": { - "base": "

    The input for the CreateThing operation.

    ", - "refs": { - } - }, - "CreateThingResponse": { - "base": "

    The output of the CreateThing operation.

    ", - "refs": { - } - }, - "CreateTopicRuleRequest": { - "base": "

    The input for the CreateTopicRule operation.

    ", - "refs": { - } - }, - "CreatedAtDate": { - "base": null, - "refs": { - "TopicRule$createdAt": "

    The date and time the rule was created.

    ", - "TopicRuleListItem$createdAt": "

    The date and time the rule was created.

    " - } - }, - "DateType": { - "base": null, - "refs": { - "CACertificate$creationDate": "

    The date the CA certificate was created.

    ", - "CACertificateDescription$creationDate": "

    The date the CA certificate was created.

    ", - "Certificate$creationDate": "

    The date and time the certificate was created.

    ", - "CertificateDescription$creationDate": "

    The date and time the certificate was created.

    ", - "CertificateDescription$lastModifiedDate": "

    The date and time the certificate was last modified.

    ", - "PolicyVersion$createDate": "

    The date and time the policy was created.

    ", - "TransferData$transferDate": "

    The date the transfer took place.

    ", - "TransferData$acceptDate": "

    The date the transfer was accepted.

    ", - "TransferData$rejectDate": "

    The date the transfer was rejected.

    " - } - }, - "DeleteCACertificateRequest": { - "base": "

    Input for the DeleteCACertificate operation.

    ", - "refs": { - } - }, - "DeleteCACertificateResponse": { - "base": "

    The output for the DeleteCACertificate operation.

    ", - "refs": { - } - }, - "DeleteCertificateRequest": { - "base": "

    The input for the DeleteCertificate operation.

    ", - "refs": { - } - }, - "DeleteConflictException": { - "base": "

    You can't delete the resource because it is attached to one or more resources.

    ", - "refs": { - } - }, - "DeletePolicyRequest": { - "base": "

    The input for the DeletePolicy operation.

    ", - "refs": { - } - }, - "DeletePolicyVersionRequest": { - "base": "

    The input for the DeletePolicyVersion operation.

    ", - "refs": { - } - }, - "DeleteRegistrationCodeRequest": { - "base": "

    The input for the DeleteRegistrationCode operation.

    ", - "refs": { - } - }, - "DeleteRegistrationCodeResponse": { - "base": "

    The output for the DeleteRegistrationCode operation.

    ", - "refs": { - } - }, - "DeleteThingRequest": { - "base": "

    The input for the DeleteThing operation.

    ", - "refs": { - } - }, - "DeleteThingResponse": { - "base": "

    The output of the DeleteThing operation.

    ", - "refs": { - } - }, - "DeleteTopicRuleRequest": { - "base": "

    The input for the DeleteTopicRule operation.

    ", - "refs": { - } - }, - "DeliveryStreamName": { - "base": null, - "refs": { - "FirehoseAction$deliveryStreamName": "

    The delivery stream name.

    " - } - }, - "DescribeCACertificateRequest": { - "base": "

    The input for the DescribeCACertificate operation.

    ", - "refs": { - } - }, - "DescribeCACertificateResponse": { - "base": "

    The output from the DescribeCACertificate operation.

    ", - "refs": { - } - }, - "DescribeCertificateRequest": { - "base": "

    The input for the DescribeCertificate operation.

    ", - "refs": { - } - }, - "DescribeCertificateResponse": { - "base": "

    The output of the DescribeCertificate operation.

    ", - "refs": { - } - }, - "DescribeEndpointRequest": { - "base": "

    The input for the DescribeEndpoint operation.

    ", - "refs": { - } - }, - "DescribeEndpointResponse": { - "base": "

    The output from the DescribeEndpoint operation.

    ", - "refs": { - } - }, - "DescribeThingRequest": { - "base": "

    The input for the DescribeThing operation.

    ", - "refs": { - } - }, - "DescribeThingResponse": { - "base": "

    The output from the DescribeThing operation.

    ", - "refs": { - } - }, - "Description": { - "base": null, - "refs": { - "TopicRule$description": "

    The description of the rule.

    ", - "TopicRulePayload$description": "

    The description of the rule.

    " - } - }, - "DetachPrincipalPolicyRequest": { - "base": "

    The input for the DetachPrincipalPolicy operation.

    ", - "refs": { - } - }, - "DetachThingPrincipalRequest": { - "base": "

    The input for the DetachThingPrincipal operation.

    ", - "refs": { - } - }, - "DetachThingPrincipalResponse": { - "base": "

    The output from the DetachThingPrincipal operation.

    ", - "refs": { - } - }, - "DisableTopicRuleRequest": { - "base": "

    The input for the DisableTopicRuleRequest operation.

    ", - "refs": { - } - }, - "DynamoDBAction": { - "base": "

    Describes an action to write to a DynamoDB table.

    The tableName, hashKeyField, and rangeKeyField values must match the values used when you created the table.

    The hashKeyValue and rangeKeyvalue fields use a substitution template syntax. These templates provide data at runtime. The syntax is as follows: ${sql-expression}.

    You can specify any valid expression in a WHERE or SELECT clause, including JSON properties, comparisons, calculations, and functions. For example, the following field uses the third level of the topic:

    \"hashKeyValue\": \"${topic(3)}\"

    The following field uses the timestamp:

    \"rangeKeyValue\": \"${timestamp()}\"

    ", - "refs": { - "Action$dynamoDB": "

    Write to a DynamoDB table.

    " - } - }, - "ElasticsearchAction": { - "base": "

    Describes an action that writes data to an Amazon Elasticsearch Service; domain.

    ", - "refs": { - "Action$elasticsearch": "

    Write data to an Amazon Elasticsearch Service; domain.

    " - } - }, - "ElasticsearchEndpoint": { - "base": null, - "refs": { - "ElasticsearchAction$endpoint": "

    The endpoint of your Elasticsearch domain.

    " - } - }, - "ElasticsearchId": { - "base": null, - "refs": { - "ElasticsearchAction$id": "

    The unique identifier for the document you are storing.

    " - } - }, - "ElasticsearchIndex": { - "base": null, - "refs": { - "ElasticsearchAction$index": "

    The Elasticsearch index where you want to store your data.

    " - } - }, - "ElasticsearchType": { - "base": null, - "refs": { - "ElasticsearchAction$type": "

    The type of document you are storing.

    " - } - }, - "EnableTopicRuleRequest": { - "base": "

    The input for the EnableTopicRuleRequest operation.

    ", - "refs": { - } - }, - "EndpointAddress": { - "base": null, - "refs": { - "DescribeEndpointResponse$endpointAddress": "

    The endpoint. The format of the endpoint is as follows: identifier.iot.region.amazonaws.com.

    " - } - }, - "FirehoseAction": { - "base": "

    Describes an action that writes data to an Amazon Kinesis Firehose stream.

    ", - "refs": { - "Action$firehose": "

    Write to an Amazon Kinesis Firehose stream.

    " - } - }, - "FunctionArn": { - "base": null, - "refs": { - "LambdaAction$functionArn": "

    The ARN of the Lambda function.

    " - } - }, - "GetLoggingOptionsRequest": { - "base": "

    The input for the GetLoggingOptions operation.

    ", - "refs": { - } - }, - "GetLoggingOptionsResponse": { - "base": "

    The output from the GetLoggingOptions operation.

    ", - "refs": { - } - }, - "GetPolicyRequest": { - "base": "

    The input for the GetPolicy operation.

    ", - "refs": { - } - }, - "GetPolicyResponse": { - "base": "

    The output from the GetPolicy operation.

    ", - "refs": { - } - }, - "GetPolicyVersionRequest": { - "base": "

    The input for the GetPolicyVersion operation.

    ", - "refs": { - } - }, - "GetPolicyVersionResponse": { - "base": "

    The output from the GetPolicyVersion operation.

    ", - "refs": { - } - }, - "GetRegistrationCodeRequest": { - "base": "

    The input to the GetRegistrationCode operation.

    ", - "refs": { - } - }, - "GetRegistrationCodeResponse": { - "base": "

    The output from the GetRegistrationCode operation.

    ", - "refs": { - } - }, - "GetTopicRuleRequest": { - "base": "

    The input for the GetTopicRule operation.

    ", - "refs": { - } - }, - "GetTopicRuleResponse": { - "base": "

    The output from the GetTopicRule operation.

    ", - "refs": { - } - }, - "HashKeyField": { - "base": null, - "refs": { - "DynamoDBAction$hashKeyField": "

    The hash key name.

    " - } - }, - "HashKeyValue": { - "base": null, - "refs": { - "DynamoDBAction$hashKeyValue": "

    The hash key value.

    " - } - }, - "InternalException": { - "base": "

    An unexpected error has occurred.

    ", - "refs": { - } - }, - "InternalFailureException": { - "base": "

    An unexpected error has occurred.

    ", - "refs": { - } - }, - "InvalidRequestException": { - "base": "

    The request is not valid.

    ", - "refs": { - } - }, - "IsDefaultVersion": { - "base": null, - "refs": { - "CreatePolicyVersionResponse$isDefaultVersion": "

    Specifies whether the policy version is the default.

    ", - "GetPolicyVersionResponse$isDefaultVersion": "

    Specifies whether the policy version is the default.

    ", - "PolicyVersion$isDefaultVersion": "

    Specifies whether the policy version is the default.

    " - } - }, - "IsDisabled": { - "base": null, - "refs": { - "ListTopicRulesRequest$ruleDisabled": "

    Specifies whether the rule is disabled.

    ", - "TopicRule$ruleDisabled": "

    Specifies whether the rule is disabled.

    ", - "TopicRuleListItem$ruleDisabled": "

    Specifies whether the rule is disabled.

    ", - "TopicRulePayload$ruleDisabled": "

    Specifies whether the rule is disabled.

    " - } - }, - "Key": { - "base": null, - "refs": { - "S3Action$key": "

    The object key.

    " - } - }, - "KeyPair": { - "base": "

    Describes a key pair.

    ", - "refs": { - "CreateKeysAndCertificateResponse$keyPair": "

    The generated key pair.

    " - } - }, - "KinesisAction": { - "base": "

    Describes an action to write data to an Amazon Kinesis stream.

    ", - "refs": { - "Action$kinesis": "

    Write data to an Amazon Kinesis stream.

    " - } - }, - "LambdaAction": { - "base": "

    Describes an action to invoke a Lambda function.

    ", - "refs": { - "Action$lambda": "

    Invoke a Lambda function.

    " - } - }, - "LimitExceededException": { - "base": "

    The number of attached entities exceeds the limit.

    ", - "refs": { - } - }, - "ListCACertificatesRequest": { - "base": "

    Input for the ListCACertificates operation.

    ", - "refs": { - } - }, - "ListCACertificatesResponse": { - "base": "

    The output from the ListCACertificates operation.

    ", - "refs": { - } - }, - "ListCertificatesByCARequest": { - "base": "

    The input to the ListCertificatesByCA operation.

    ", - "refs": { - } - }, - "ListCertificatesByCAResponse": { - "base": "

    The output of the ListCertificatesByCA operation.

    ", - "refs": { - } - }, - "ListCertificatesRequest": { - "base": "

    The input for the ListCertificates operation.

    ", - "refs": { - } - }, - "ListCertificatesResponse": { - "base": "

    The output of the ListCertificates operation.

    ", - "refs": { - } - }, - "ListPoliciesRequest": { - "base": "

    The input for the ListPolicies operation.

    ", - "refs": { - } - }, - "ListPoliciesResponse": { - "base": "

    The output from the ListPolicies operation.

    ", - "refs": { - } - }, - "ListPolicyVersionsRequest": { - "base": "

    The input for the ListPolicyVersions operation.

    ", - "refs": { - } - }, - "ListPolicyVersionsResponse": { - "base": "

    The output from the ListPolicyVersions operation.

    ", - "refs": { - } - }, - "ListPrincipalPoliciesRequest": { - "base": "

    The input for the ListPrincipalPolicies operation.

    ", - "refs": { - } - }, - "ListPrincipalPoliciesResponse": { - "base": "

    The output from the ListPrincipalPolicies operation.

    ", - "refs": { - } - }, - "ListPrincipalThingsRequest": { - "base": "

    The input for the ListPrincipalThings operation.

    ", - "refs": { - } - }, - "ListPrincipalThingsResponse": { - "base": "

    The output from the ListPrincipalThings operation.

    ", - "refs": { - } - }, - "ListThingPrincipalsRequest": { - "base": "

    The input for the ListThingPrincipal operation.

    ", - "refs": { - } - }, - "ListThingPrincipalsResponse": { - "base": "

    The output from the ListThingPrincipals operation.

    ", - "refs": { - } - }, - "ListThingsRequest": { - "base": "

    The input for the ListThings operation.

    ", - "refs": { - } - }, - "ListThingsResponse": { - "base": "

    The output from the ListThings operation.

    ", - "refs": { - } - }, - "ListTopicRulesRequest": { - "base": "

    The input for the ListTopicRules operation.

    ", - "refs": { - } - }, - "ListTopicRulesResponse": { - "base": "

    The output from the ListTopicRules operation.

    ", - "refs": { - } - }, - "LogLevel": { - "base": null, - "refs": { - "GetLoggingOptionsResponse$logLevel": "

    The logging level.

    ", - "LoggingOptionsPayload$logLevel": "

    The logging level.

    " - } - }, - "LoggingOptionsPayload": { - "base": "

    Describes the logging options payload.

    ", - "refs": { - "SetLoggingOptionsRequest$loggingOptionsPayload": "

    The logging options payload.

    " - } - }, - "MalformedPolicyException": { - "base": "

    The policy documentation is not valid.

    ", - "refs": { - } - }, - "Marker": { - "base": null, - "refs": { - "ListCACertificatesRequest$marker": "

    The marker for the next set of results.

    ", - "ListCACertificatesResponse$nextMarker": "

    The current position within the list of CA certificates.

    ", - "ListCertificatesByCARequest$marker": "

    The marker for the next set of results.

    ", - "ListCertificatesByCAResponse$nextMarker": "

    The marker for the next set of results, or null if there are no additional results.

    ", - "ListCertificatesRequest$marker": "

    The marker for the next set of results.

    ", - "ListCertificatesResponse$nextMarker": "

    The marker for the next set of results, or null if there are no additional results.

    ", - "ListPoliciesRequest$marker": "

    The marker for the next set of results.

    ", - "ListPoliciesResponse$nextMarker": "

    The marker for the next set of results, or null if there are no additional results.

    ", - "ListPrincipalPoliciesRequest$marker": "

    The marker for the next set of results.

    ", - "ListPrincipalPoliciesResponse$nextMarker": "

    The marker for the next set of results, or null if there are no additional results.

    " - } - }, - "MaxResults": { - "base": null, - "refs": { - "ListPrincipalThingsRequest$maxResults": "

    The maximum number of principals to return.

    ", - "ListThingsRequest$maxResults": "

    The maximum number of results.

    ", - "ListTopicRulesRequest$maxResults": "

    The maximum number of results to return.

    " - } - }, - "Message": { - "base": null, - "refs": { - "RejectCertificateTransferRequest$rejectReason": "

    The reason the certificate transfer was rejected.

    ", - "TransferCertificateRequest$transferMessage": "

    The transfer message.

    ", - "TransferData$transferMessage": "

    The transfer message.

    ", - "TransferData$rejectReason": "

    The reason why the transfer was rejected.

    " - } - }, - "MessageFormat": { - "base": null, - "refs": { - "SnsAction$messageFormat": "

    The message format of the message to publish. Optional. Accepted values are \"JSON\" and \"RAW\". The default value of the attribute is \"RAW\". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see refer to their official documentation.

    " - } - }, - "MetricName": { - "base": null, - "refs": { - "CloudwatchMetricAction$metricName": "

    The CloudWatch metric name.

    " - } - }, - "MetricNamespace": { - "base": null, - "refs": { - "CloudwatchMetricAction$metricNamespace": "

    The CloudWatch metric namespace name.

    " - } - }, - "MetricTimestamp": { - "base": null, - "refs": { - "CloudwatchMetricAction$metricTimestamp": "

    An optional Unix timestamp.

    " - } - }, - "MetricUnit": { - "base": null, - "refs": { - "CloudwatchMetricAction$metricUnit": "

    The metric unit supported by CloudWatch.

    " - } - }, - "MetricValue": { - "base": null, - "refs": { - "CloudwatchMetricAction$metricValue": "

    The CloudWatch metric value.

    " - } - }, - "NextToken": { - "base": null, - "refs": { - "ListPrincipalThingsRequest$nextToken": "

    A token used to retrieve the next value.

    ", - "ListPrincipalThingsResponse$nextToken": "

    A token used to retrieve the next value.

    ", - "ListThingsRequest$nextToken": "

    The token for the next value.

    ", - "ListThingsResponse$nextToken": "

    A token used to retrieve the next value.

    ", - "ListTopicRulesRequest$nextToken": "

    A token used to retrieve the next value.

    ", - "ListTopicRulesResponse$nextToken": "

    A token used to retrieve the next value.

    " - } - }, - "PageSize": { - "base": null, - "refs": { - "ListCACertificatesRequest$pageSize": "

    The result page size.

    ", - "ListCertificatesByCARequest$pageSize": "

    The result page size.

    ", - "ListCertificatesRequest$pageSize": "

    The result page size.

    ", - "ListPoliciesRequest$pageSize": "

    The result page size.

    ", - "ListPrincipalPoliciesRequest$pageSize": "

    The result page size.

    " - } - }, - "PartitionKey": { - "base": null, - "refs": { - "KinesisAction$partitionKey": "

    The partition key.

    " - } - }, - "PayloadField": { - "base": null, - "refs": { - "DynamoDBAction$payloadField": "

    The action payload. This name can be customized.

    " - } - }, - "Policies": { - "base": null, - "refs": { - "ListPoliciesResponse$policies": "

    The descriptions of the policies.

    ", - "ListPrincipalPoliciesResponse$policies": "

    The policies.

    " - } - }, - "Policy": { - "base": "

    Describes an AWS IoT policy.

    ", - "refs": { - "Policies$member": null - } - }, - "PolicyArn": { - "base": null, - "refs": { - "CreatePolicyResponse$policyArn": "

    The policy ARN.

    ", - "CreatePolicyVersionResponse$policyArn": "

    The policy ARN.

    ", - "GetPolicyResponse$policyArn": "

    The policy ARN.

    ", - "GetPolicyVersionResponse$policyArn": "

    The policy ARN.

    ", - "Policy$policyArn": "

    The policy ARN.

    " - } - }, - "PolicyDocument": { - "base": null, - "refs": { - "CreatePolicyRequest$policyDocument": "

    The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.

    ", - "CreatePolicyResponse$policyDocument": "

    The JSON document that describes the policy.

    ", - "CreatePolicyVersionRequest$policyDocument": "

    The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces

    ", - "CreatePolicyVersionResponse$policyDocument": "

    The JSON document that describes the policy.

    ", - "GetPolicyResponse$policyDocument": "

    The JSON document that describes the policy.

    ", - "GetPolicyVersionResponse$policyDocument": "

    The JSON document that describes the policy.

    " - } - }, - "PolicyName": { - "base": null, - "refs": { - "AttachPrincipalPolicyRequest$policyName": "

    The policy name.

    ", - "CreatePolicyRequest$policyName": "

    The policy name.

    ", - "CreatePolicyResponse$policyName": "

    The policy name.

    ", - "CreatePolicyVersionRequest$policyName": "

    The policy name.

    ", - "DeletePolicyRequest$policyName": "

    The name of the policy to delete.

    ", - "DeletePolicyVersionRequest$policyName": "

    The name of the policy.

    ", - "DetachPrincipalPolicyRequest$policyName": "

    The name of the policy to detach.

    ", - "GetPolicyRequest$policyName": "

    The name of the policy.

    ", - "GetPolicyResponse$policyName": "

    The policy name.

    ", - "GetPolicyVersionRequest$policyName": "

    The name of the policy.

    ", - "GetPolicyVersionResponse$policyName": "

    The policy name.

    ", - "ListPolicyVersionsRequest$policyName": "

    The policy name.

    ", - "Policy$policyName": "

    The policy name.

    ", - "SetDefaultPolicyVersionRequest$policyName": "

    The policy name.

    " - } - }, - "PolicyVersion": { - "base": "

    Describes a policy version.

    ", - "refs": { - "PolicyVersions$member": null - } - }, - "PolicyVersionId": { - "base": null, - "refs": { - "CreatePolicyResponse$policyVersionId": "

    The policy version ID.

    ", - "CreatePolicyVersionResponse$policyVersionId": "

    The policy version ID.

    ", - "DeletePolicyVersionRequest$policyVersionId": "

    The policy version ID.

    ", - "GetPolicyResponse$defaultVersionId": "

    The default policy version ID.

    ", - "GetPolicyVersionRequest$policyVersionId": "

    The policy version ID.

    ", - "GetPolicyVersionResponse$policyVersionId": "

    The policy version ID.

    ", - "PolicyVersion$versionId": "

    The policy version ID.

    ", - "SetDefaultPolicyVersionRequest$policyVersionId": "

    The policy version ID.

    " - } - }, - "PolicyVersions": { - "base": null, - "refs": { - "ListPolicyVersionsResponse$policyVersions": "

    The policy versions.

    " - } - }, - "Principal": { - "base": null, - "refs": { - "AttachPrincipalPolicyRequest$principal": "

    The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.

    ", - "AttachThingPrincipalRequest$principal": "

    The principal (certificate or other credential).

    ", - "DetachPrincipalPolicyRequest$principal": "

    The principal.

    If the principal is a certificate, specify the certificate ARN. If the principal is an Amazon Cognito identity, specify the identity ID.

    ", - "DetachThingPrincipalRequest$principal": "

    The principal.

    ", - "ListPrincipalPoliciesRequest$principal": "

    The principal.

    ", - "ListPrincipalThingsRequest$principal": "

    The principal.

    " - } - }, - "PrincipalArn": { - "base": null, - "refs": { - "Principals$member": null - } - }, - "Principals": { - "base": null, - "refs": { - "ListThingPrincipalsResponse$principals": "

    The principals.

    " - } - }, - "PrivateKey": { - "base": null, - "refs": { - "KeyPair$PrivateKey": "

    The private key.

    " - } - }, - "PublicKey": { - "base": null, - "refs": { - "KeyPair$PublicKey": "

    The public key.

    " - } - }, - "QueueUrl": { - "base": null, - "refs": { - "SqsAction$queueUrl": "

    The URL of the Amazon SQS queue.

    " - } - }, - "RangeKeyField": { - "base": null, - "refs": { - "DynamoDBAction$rangeKeyField": "

    The range key name.

    " - } - }, - "RangeKeyValue": { - "base": null, - "refs": { - "DynamoDBAction$rangeKeyValue": "

    The range key value.

    " - } - }, - "RegisterCACertificateRequest": { - "base": "

    The input to the RegisterCACertificate operation.

    ", - "refs": { - } - }, - "RegisterCACertificateResponse": { - "base": "

    The output from the RegisterCACertificateResponse operation.

    ", - "refs": { - } - }, - "RegisterCertificateRequest": { - "base": "

    The input to the RegisterCertificate operation.

    ", - "refs": { - } - }, - "RegisterCertificateResponse": { - "base": "

    The output from the RegisterCertificate operation.

    ", - "refs": { - } - }, - "RegistrationCode": { - "base": null, - "refs": { - "GetRegistrationCodeResponse$registrationCode": "

    The CA certificate registration code.

    " - } - }, - "RegistrationCodeValidationException": { - "base": "

    The registration code is invalid.

    ", - "refs": { - } - }, - "RejectCertificateTransferRequest": { - "base": "

    The input for the RejectCertificateTransfer operation.

    ", - "refs": { - } - }, - "ReplaceTopicRuleRequest": { - "base": "

    The input for the ReplaceTopicRule operation.

    ", - "refs": { - } - }, - "RepublishAction": { - "base": "

    Describes an action to republish to another topic.

    ", - "refs": { - "Action$republish": "

    Publish to another MQTT topic.

    " - } - }, - "ResourceAlreadyExistsException": { - "base": "

    The resource already exists.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    The specified resource does not exist.

    ", - "refs": { - } - }, - "RuleArn": { - "base": null, - "refs": { - "GetTopicRuleResponse$ruleArn": "

    The rule ARN.

    ", - "TopicRuleListItem$ruleArn": "

    The rule ARN.

    " - } - }, - "RuleName": { - "base": null, - "refs": { - "CreateTopicRuleRequest$ruleName": "

    The name of the rule.

    ", - "DeleteTopicRuleRequest$ruleName": "

    The name of the rule.

    ", - "DisableTopicRuleRequest$ruleName": "

    The name of the rule to disable.

    ", - "EnableTopicRuleRequest$ruleName": "

    The name of the topic rule to enable.

    ", - "GetTopicRuleRequest$ruleName": "

    The name of the rule.

    ", - "ReplaceTopicRuleRequest$ruleName": "

    The name of the rule.

    ", - "TopicRule$ruleName": "

    The name of the rule.

    ", - "TopicRuleListItem$ruleName": "

    The name of the rule.

    " - } - }, - "S3Action": { - "base": "

    Describes an action to write data to an Amazon S3 bucket.

    ", - "refs": { - "Action$s3": "

    Write to an Amazon S3 bucket.

    " - } - }, - "SQL": { - "base": null, - "refs": { - "TopicRule$sql": "

    The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.

    ", - "TopicRulePayload$sql": "

    The SQL statement used to query the topic. For more information, see AWS IoT SQL Reference in the AWS IoT Developer Guide.

    " - } - }, - "ServiceUnavailableException": { - "base": "

    The service is temporarily unavailable.

    ", - "refs": { - } - }, - "SetAsActive": { - "base": null, - "refs": { - "AcceptCertificateTransferRequest$setAsActive": "

    Specifies whether the certificate is active.

    ", - "CreateCertificateFromCsrRequest$setAsActive": "

    Specifies whether the certificate is active.

    ", - "CreateKeysAndCertificateRequest$setAsActive": "

    Specifies whether the certificate is active.

    ", - "RegisterCACertificateRequest$setAsActive": "

    A boolean value that specifies if the CA certificate is set to active.

    ", - "RegisterCertificateRequest$setAsActive": "

    A boolean value that specifies if the CA certificate is set to active.

    " - } - }, - "SetAsDefault": { - "base": null, - "refs": { - "CreatePolicyVersionRequest$setAsDefault": "

    Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

    " - } - }, - "SetDefaultPolicyVersionRequest": { - "base": "

    The input for the SetDefaultPolicyVersion operation.

    ", - "refs": { - } - }, - "SetLoggingOptionsRequest": { - "base": "

    The input for the SetLoggingOptions operation.

    ", - "refs": { - } - }, - "SnsAction": { - "base": "

    Describes an action to publish to an Amazon SNS topic.

    ", - "refs": { - "Action$sns": "

    Publish to an Amazon SNS topic.

    " - } - }, - "SqlParseException": { - "base": "

    The Rule-SQL expression can't be parsed correctly.

    ", - "refs": { - } - }, - "SqsAction": { - "base": "

    Describes an action to publish data to an Amazon SQS queue.

    ", - "refs": { - "Action$sqs": "

    Publish to an Amazon SQS queue.

    " - } - }, - "StateReason": { - "base": null, - "refs": { - "CloudwatchAlarmAction$stateReason": "

    The reason for the alarm change.

    " - } - }, - "StateValue": { - "base": null, - "refs": { - "CloudwatchAlarmAction$stateValue": "

    The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.

    " - } - }, - "StreamName": { - "base": null, - "refs": { - "KinesisAction$streamName": "

    The name of the Amazon Kinesis stream.

    " - } - }, - "TableName": { - "base": null, - "refs": { - "DynamoDBAction$tableName": "

    The name of the DynamoDB table.

    " - } - }, - "ThingArn": { - "base": null, - "refs": { - "CreateThingResponse$thingArn": "

    The thing ARN.

    " - } - }, - "ThingAttribute": { - "base": "

    Describes a thing attribute.

    ", - "refs": { - "ThingAttributeList$member": null - } - }, - "ThingAttributeList": { - "base": null, - "refs": { - "ListThingsResponse$things": "

    The things.

    " - } - }, - "ThingName": { - "base": null, - "refs": { - "AttachThingPrincipalRequest$thingName": "

    The name of the thing.

    ", - "CreateThingRequest$thingName": "

    The name of the thing.

    ", - "CreateThingResponse$thingName": "

    The name of the thing.

    ", - "DeleteThingRequest$thingName": "

    The thing name.

    ", - "DescribeThingRequest$thingName": "

    The name of the thing.

    ", - "DescribeThingResponse$thingName": "

    The name of the thing.

    ", - "DetachThingPrincipalRequest$thingName": "

    The name of the thing.

    ", - "ListThingPrincipalsRequest$thingName": "

    The name of the thing.

    ", - "ThingAttribute$thingName": "

    The name of the thing.

    ", - "ThingNameList$member": null, - "UpdateThingRequest$thingName": "

    The thing name.

    " - } - }, - "ThingNameList": { - "base": null, - "refs": { - "ListPrincipalThingsResponse$things": "

    The things.

    " - } - }, - "ThrottlingException": { - "base": "

    The rate exceeds the limit.

    ", - "refs": { - } - }, - "Topic": { - "base": null, - "refs": { - "ListTopicRulesRequest$topic": "

    The topic.

    " - } - }, - "TopicPattern": { - "base": null, - "refs": { - "RepublishAction$topic": "

    The name of the MQTT topic.

    ", - "TopicRuleListItem$topicPattern": "

    The pattern for the topic names that apply.

    " - } - }, - "TopicRule": { - "base": "

    Describes a rule.

    ", - "refs": { - "GetTopicRuleResponse$rule": "

    The rule.

    " - } - }, - "TopicRuleList": { - "base": null, - "refs": { - "ListTopicRulesResponse$rules": "

    The rules.

    " - } - }, - "TopicRuleListItem": { - "base": "

    Describes a rule.

    ", - "refs": { - "TopicRuleList$member": null - } - }, - "TopicRulePayload": { - "base": "

    Describes a rule.

    ", - "refs": { - "CreateTopicRuleRequest$topicRulePayload": "

    The rule payload.

    ", - "ReplaceTopicRuleRequest$topicRulePayload": "

    The rule payload.

    " - } - }, - "TransferAlreadyCompletedException": { - "base": "

    You can't revert the certificate transfer because the transfer is already complete.

    ", - "refs": { - } - }, - "TransferCertificateRequest": { - "base": "

    The input for the TransferCertificate operation.

    ", - "refs": { - } - }, - "TransferCertificateResponse": { - "base": "

    The output from the TransferCertificate operation.

    ", - "refs": { - } - }, - "TransferConflictException": { - "base": "

    You can't transfer the certificate because authorization policies are still attached.

    ", - "refs": { - } - }, - "TransferData": { - "base": "

    Data used to transfer a certificate to an AWS account.

    ", - "refs": { - "CertificateDescription$transferData": "

    The transfer data.

    " - } - }, - "UnauthorizedException": { - "base": "

    You are not authorized to perform this operation.

    ", - "refs": { - } - }, - "UpdateCACertificateRequest": { - "base": "

    The input to the UpdateCACertificate operation.

    ", - "refs": { - } - }, - "UpdateCertificateRequest": { - "base": "

    The input for the UpdateCertificate operation.

    ", - "refs": { - } - }, - "UpdateThingRequest": { - "base": "

    The input for the UpdateThing operation.

    ", - "refs": { - } - }, - "UpdateThingResponse": { - "base": "

    The output from the UpdateThing operation.

    ", - "refs": { - } - }, - "UseBase64": { - "base": null, - "refs": { - "SqsAction$useBase64": "

    Specifies whether to use Base64 encoding.

    " - } - }, - "VersionsLimitExceededException": { - "base": "

    The number of policy versions exceeds the limit.

    ", - "refs": { - } - }, - "errorMessage": { - "base": null, - "refs": { - "CertificateConflictException$message": "

    The message for the exception.

    ", - "CertificateStateException$message": "

    The message for the exception.

    ", - "CertificateValidationException$message": "

    Additional information about the exception.

    ", - "DeleteConflictException$message": "

    The message for the exception.

    ", - "InternalException$message": "

    The message for the exception.

    ", - "InternalFailureException$message": "

    The message for the exception.

    ", - "InvalidRequestException$message": "

    The message for the exception.

    ", - "LimitExceededException$message": "

    The message for the exception.

    ", - "MalformedPolicyException$message": "

    The message for the exception.

    ", - "RegistrationCodeValidationException$message": "

    Additional information about the exception.

    ", - "ResourceAlreadyExistsException$message": "

    The message for the exception.

    ", - "ResourceNotFoundException$message": "

    The message for the exception.

    ", - "ServiceUnavailableException$message": "

    The message for the exception.

    ", - "SqlParseException$message": "

    The message for the exception.

    ", - "ThrottlingException$message": "

    The message for the exception.

    ", - "TransferAlreadyCompletedException$message": "

    The message for the exception.

    ", - "TransferConflictException$message": "

    The message for the exception.

    ", - "UnauthorizedException$message": "

    The message for the exception.

    ", - "VersionsLimitExceededException$message": "

    The message for the exception.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/examples-1.json deleted file mode 100644 index faff76894..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version":"1.0", - "examples":{ - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/docs-2.json deleted file mode 100644 index 09cf0fc16..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/docs-2.json +++ /dev/null @@ -1,506 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon Kinesis Streams Service API Reference

    Amazon Kinesis Streams is a managed service that scales elastically for real time processing of streaming big data.

    ", - "operations": { - "AddTagsToStream": "

    Adds or updates tags for the specified Amazon Kinesis stream. Each stream can have up to 10 tags.

    If tags have already been assigned to the stream, AddTagsToStream overwrites any existing tags that correspond to the specified tag keys.

    ", - "CreateStream": "

    Creates an Amazon Kinesis stream. A stream captures and transports data records that are continuously emitted from different data sources or producers. Scale-out within a stream is explicitly supported by means of shards, which are uniquely identified groups of data records in a stream.

    You specify and control the number of shards that a stream is composed of. Each shard can support reads up to 5 transactions per second, up to a maximum data read total of 2 MB per second. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second. You can add shards to a stream if the amount of data input increases and you can remove shards if the amount of data input decreases.

    The stream name identifies the stream. The name is scoped to the AWS account used by the application. It is also scoped by region. That is, two streams in two different accounts can have the same name, and two streams in the same account, but in two different regions, can have the same name.

    CreateStream is an asynchronous operation. Upon receiving a CreateStream request, Amazon Kinesis immediately returns and sets the stream status to CREATING. After the stream is created, Amazon Kinesis sets the stream status to ACTIVE. You should perform read and write operations only on an ACTIVE stream.

    You receive a LimitExceededException when making a CreateStream request if you try to do one of the following:

    • Have more than five streams in the CREATING state at any point in time.
    • Create more shards than are authorized for your account.

    For the default shard limit for an AWS account, see Streams Limits in the Amazon Kinesis Streams Developer Guide. If you need to increase this limit, contact AWS Support.

    You can use DescribeStream to check the stream status, which is returned in StreamStatus.

    CreateStream has a limit of 5 transactions per second per account.

    ", - "DecreaseStreamRetentionPeriod": "

    Decreases the Amazon Kinesis stream's retention period, which is the length of time data records are accessible after they are added to the stream. The minimum value of a stream's retention period is 24 hours.

    This operation may result in lost data. For example, if the stream's retention period is 48 hours and is decreased to 24 hours, any data already in the stream that is older than 24 hours is inaccessible.

    ", - "DeleteStream": "

    Deletes an Amazon Kinesis stream and all its shards and data. You must shut down any applications that are operating on the stream before you delete the stream. If an application attempts to operate on a deleted stream, it will receive the exception ResourceNotFoundException.

    If the stream is in the ACTIVE state, you can delete it. After a DeleteStream request, the specified stream is in the DELETING state until Amazon Kinesis completes the deletion.

    Note: Amazon Kinesis might continue to accept data read and write operations, such as PutRecord, PutRecords, and GetRecords, on a stream in the DELETING state until the stream deletion is complete.

    When you delete a stream, any shards in that stream are also deleted, and any tags are dissociated from the stream.

    You can use the DescribeStream operation to check the state of the stream, which is returned in StreamStatus.

    DeleteStream has a limit of 5 transactions per second per account.

    ", - "DescribeStream": "

    Describes the specified Amazon Kinesis stream.

    The information about the stream includes its current status, its Amazon Resource Name (ARN), and an array of shard objects. For each shard object, there is information about the hash key and sequence number ranges that the shard spans, and the IDs of any earlier shards that played in a role in creating the shard. A sequence number is the identifier associated with every record ingested in the stream. The sequence number is assigned when a record is put into the stream.

    You can limit the number of returned shards using the Limit parameter. The number of shards in a stream may be too large to return from a single call to DescribeStream. You can detect this by using the HasMoreShards flag in the returned output. HasMoreShards is set to true when there is more data available.

    DescribeStream is a paginated operation. If there are more shards available, you can request them using the shard ID of the last shard returned. Specify this ID in the ExclusiveStartShardId parameter in a subsequent request to DescribeStream.

    There are no guarantees about the chronological order shards returned in DescribeStream results. If you want to process shards in chronological order, use ParentShardId to track lineage to the oldest shard.

    DescribeStream has a limit of 10 transactions per second per account.

    ", - "DisableEnhancedMonitoring": "

    Disables enhanced monitoring.

    ", - "EnableEnhancedMonitoring": "

    Enables enhanced Amazon Kinesis stream monitoring for shard-level metrics.

    ", - "GetRecords": "

    Gets data records from an Amazon Kinesis stream's shard.

    Specify a shard iterator using the ShardIterator parameter. The shard iterator specifies the position in the shard from which you want to start reading data records sequentially. If there are no records available in the portion of the shard that the iterator points to, GetRecords returns an empty list. Note that it might take multiple calls to get to a portion of the shard that contains records.

    You can scale by provisioning multiple shards per stream while considering service limits (for more information, see Streams Limits in the Amazon Kinesis Streams Developer Guide). Your application should have one thread per shard, each reading continuously from its stream. To read from a stream continually, call GetRecords in a loop. Use GetShardIterator to get the shard iterator to specify in the first GetRecords call. GetRecords returns a new shard iterator in NextShardIterator. Specify the shard iterator returned in NextShardIterator in subsequent calls to GetRecords. Note that if the shard has been closed, the shard iterator can't return more data and GetRecords returns null in NextShardIterator. You can terminate the loop when the shard is closed, or when the shard iterator reaches the record with the sequence number or other attribute that marks it as the last record to process.

    Each data record can be up to 1 MB in size, and each shard can read up to 2 MB per second. You can ensure that your calls don't exceed the maximum supported size or throughput by using the Limit parameter to specify the maximum number of records that GetRecords can return. Consider your average record size when determining this limit.

    The size of the data returned by GetRecords varies depending on the utilization of the shard. The maximum size of data that GetRecords can return is 10 MB. If a call returns this amount of data, subsequent calls made within the next 5 seconds throw ProvisionedThroughputExceededException. If there is insufficient provisioned throughput on the shard, subsequent calls made within the next 1 second throw ProvisionedThroughputExceededException. Note that GetRecords won't return any data when it throws an exception. For this reason, we recommend that you wait one second between calls to GetRecords; however, it's possible that the application will get exceptions for longer than 1 second.

    To detect whether the application is falling behind in processing, you can use the MillisBehindLatest response attribute. You can also monitor the stream using CloudWatch metrics and other mechanisms (see Monitoring in the Amazon Kinesis Streams Developer Guide).

    Each Amazon Kinesis record includes a value, ApproximateArrivalTimestamp, that is set when a stream successfully receives and stores a record. This is commonly referred to as a server-side timestamp, whereas a client-side timestamp is set when a data producer creates or sends the record to a stream (a data producer is any data source putting data records into a stream, for example with PutRecords). The timestamp has millisecond precision. There are no guarantees about the timestamp accuracy, or that the timestamp is always increasing. For example, records in a shard or across a stream might have timestamps that are out of order.

    ", - "GetShardIterator": "

    Gets an Amazon Kinesis shard iterator. A shard iterator expires five minutes after it is returned to the requester.

    A shard iterator specifies the shard position from which to start reading data records sequentially. The position is specified using the sequence number of a data record in a shard. A sequence number is the identifier associated with every record ingested in the stream, and is assigned when a record is put into the stream. Each stream has one or more shards.

    You must specify the shard iterator type. For example, you can set the ShardIteratorType parameter to read exactly from the position denoted by a specific sequence number by using the AT_SEQUENCE_NUMBER shard iterator type, or right after the sequence number by using the AFTER_SEQUENCE_NUMBER shard iterator type, using sequence numbers returned by earlier calls to PutRecord, PutRecords, GetRecords, or DescribeStream. In the request, you can specify the shard iterator type AT_TIMESTAMP to read records from an arbitrary point in time, TRIM_HORIZON to cause ShardIterator to point to the last untrimmed record in the shard in the system (the oldest data record in the shard), or LATEST so that you always read the most recent data in the shard.

    When you read repeatedly from a stream, use a GetShardIterator request to get the first shard iterator for use in your first GetRecords request and for subsequent reads use the shard iterator returned by the GetRecords request in NextShardIterator. A new shard iterator is returned by every GetRecords request in NextShardIterator, which you use in the ShardIterator parameter of the next GetRecords request.

    If a GetShardIterator request is made too often, you receive a ProvisionedThroughputExceededException. For more information about throughput limits, see GetRecords, and Streams Limits in the Amazon Kinesis Streams Developer Guide.

    If the shard is closed, GetShardIterator returns a valid iterator for the last sequence number of the shard. Note that a shard can be closed as a result of using SplitShard or MergeShards.

    GetShardIterator has a limit of 5 transactions per second per account per open shard.

    ", - "IncreaseStreamRetentionPeriod": "

    Increases the Amazon Kinesis stream's retention period, which is the length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 168 hours (7 days).

    Upon choosing a longer stream retention period, this operation will increase the time period records are accessible that have not yet expired. However, it will not make previous data that has expired (older than the stream's previous retention period) accessible after the operation has been called. For example, if a stream's retention period is set to 24 hours and is increased to 168 hours, any data that is older than 24 hours will remain inaccessible to consumer applications.

    ", - "ListStreams": "

    Lists your Amazon Kinesis streams.

    The number of streams may be too large to return from a single call to ListStreams. You can limit the number of returned streams using the Limit parameter. If you do not specify a value for the Limit parameter, Amazon Kinesis uses the default limit, which is currently 10.

    You can detect if there are more streams available to list by using the HasMoreStreams flag from the returned output. If there are more streams available, you can request more streams by using the name of the last stream returned by the ListStreams request in the ExclusiveStartStreamName parameter in a subsequent request to ListStreams. The group of stream names returned by the subsequent request is then added to the list. You can continue this process until all the stream names have been collected in the list.

    ListStreams has a limit of 5 transactions per second per account.

    ", - "ListTagsForStream": "

    Lists the tags for the specified Amazon Kinesis stream.

    ", - "MergeShards": "

    Merges two adjacent shards in an Amazon Kinesis stream and combines them into a single shard to reduce the stream's capacity to ingest and transport data. Two shards are considered adjacent if the union of the hash key ranges for the two shards form a contiguous set with no gaps. For example, if you have two shards, one with a hash key range of 276...381 and the other with a hash key range of 382...454, then you could merge these two shards into a single shard that would have a hash key range of 276...454. After the merge, the single child shard receives data for all hash key values covered by the two parent shards.

    MergeShards is called when there is a need to reduce the overall capacity of a stream because of excess capacity that is not being used. You must specify the shard to be merged and the adjacent shard for a stream. For more information about merging shards, see Merge Two Shards in the Amazon Kinesis Streams Developer Guide.

    If the stream is in the ACTIVE state, you can call MergeShards. If a stream is in the CREATING, UPDATING, or DELETING state, MergeShards returns a ResourceInUseException. If the specified stream does not exist, MergeShards returns a ResourceNotFoundException.

    You can use DescribeStream to check the state of the stream, which is returned in StreamStatus.

    MergeShards is an asynchronous operation. Upon receiving a MergeShards request, Amazon Kinesis immediately returns a response and sets the StreamStatus to UPDATING. After the operation is completed, Amazon Kinesis sets the StreamStatus to ACTIVE. Read and write operations continue to work while the stream is in the UPDATING state.

    You use DescribeStream to determine the shard IDs that are specified in the MergeShards request.

    If you try to operate on too many streams in parallel using CreateStream, DeleteStream, MergeShards or SplitShard, you will receive a LimitExceededException.

    MergeShards has limit of 5 transactions per second per account.

    ", - "PutRecord": "

    Writes a single data record into an Amazon Kinesis stream. Call PutRecord to send data into the stream for real-time ingestion and subsequent processing, one record at a time. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second.

    You must specify the name of the stream that captures, stores, and transports the data; a partition key; and the data blob itself.

    The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.

    The partition key is used by Amazon Kinesis to distribute data across shards. Amazon Kinesis segregates the data records that belong to a stream into multiple shards, using the partition key associated with each data record to determine which shard a given data record belongs to.

    Partition keys are Unicode strings, with a maximum length limit of 256 characters for each key. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards using the hash key ranges of the shards. You can override hashing the partition key to determine the shard by explicitly specifying a hash value using the ExplicitHashKey parameter. For more information, see Adding Data to a Stream in the Amazon Kinesis Streams Developer Guide.

    PutRecord returns the shard ID of where the data record was placed and the sequence number that was assigned to the data record.

    Sequence numbers increase over time and are specific to a shard within a stream, not across all shards within a stream. To guarantee strictly increasing ordering, write serially to a shard and use the SequenceNumberForOrdering parameter. For more information, see Adding Data to a Stream in the Amazon Kinesis Streams Developer Guide.

    If a PutRecord request cannot be processed because of insufficient provisioned throughput on the shard involved in the request, PutRecord throws ProvisionedThroughputExceededException.

    Data records are accessible for only 24 hours from the time that they are added to a stream.

    ", - "PutRecords": "

    Writes multiple data records into an Amazon Kinesis stream in a single call (also referred to as a PutRecords request). Use this operation to send data into the stream for data ingestion and processing.

    Each PutRecords request can support up to 500 records. Each record in the request can be as large as 1 MB, up to a limit of 5 MB for the entire request, including partition keys. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MB per second.

    You must specify the name of the stream that captures, stores, and transports the data; and an array of request Records, with each record in the array requiring a partition key and data blob. The record size limit applies to the total size of the partition key and data blob.

    The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.

    The partition key is used by Amazon Kinesis as input to a hash function that maps the partition key and associated data to a specific shard. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream. For more information, see Adding Data to a Stream in the Amazon Kinesis Streams Developer Guide.

    Each record in the Records array may include an optional parameter, ExplicitHashKey, which overrides the partition key to shard mapping. This parameter allows a data producer to determine explicitly the shard where the record is stored. For more information, see Adding Multiple Records with PutRecords in the Amazon Kinesis Streams Developer Guide.

    The PutRecords response includes an array of response Records. Each record in the response array directly correlates with a record in the request array using natural ordering, from the top to the bottom of the request and response. The response Records array always includes the same number of records as the request array.

    The response Records array includes both successfully and unsuccessfully processed records. Amazon Kinesis attempts to process all records in each PutRecords request. A single record failure does not stop the processing of subsequent records.

    A successfully-processed record includes ShardId and SequenceNumber values. The ShardId parameter identifies the shard in the stream where the record is stored. The SequenceNumber parameter is an identifier assigned to the put record, unique to all records in the stream.

    An unsuccessfully-processed record includes ErrorCode and ErrorMessage values. ErrorCode reflects the type of error and can be one of the following values: ProvisionedThroughputExceededException or InternalFailure. ErrorMessage provides more detailed information about the ProvisionedThroughputExceededException exception including the account ID, stream name, and shard ID of the record that was throttled. For more information about partially successful responses, see Adding Multiple Records with PutRecords in the Amazon Kinesis Streams Developer Guide.

    By default, data records are accessible for only 24 hours from the time that they are added to an Amazon Kinesis stream. This retention period can be modified using the DecreaseStreamRetentionPeriod and IncreaseStreamRetentionPeriod operations.

    ", - "RemoveTagsFromStream": "

    Removes tags from the specified Amazon Kinesis stream. Removed tags are deleted and cannot be recovered after this operation successfully completes.

    If you specify a tag that does not exist, it is ignored.

    ", - "SplitShard": "

    Splits a shard into two new shards in the Amazon Kinesis stream to increase the stream's capacity to ingest and transport data. SplitShard is called when there is a need to increase the overall capacity of a stream because of an expected increase in the volume of data records being ingested.

    You can also use SplitShard when a shard appears to be approaching its maximum utilization; for example, the producers sending data into the specific shard are suddenly sending more than previously anticipated. You can also call SplitShard to increase stream capacity, so that more Amazon Kinesis applications can simultaneously read data from the stream for real-time processing.

    You must specify the shard to be split and the new hash key, which is the position in the shard where the shard gets split in two. In many cases, the new hash key might simply be the average of the beginning and ending hash key, but it can be any hash key value in the range being mapped into the shard. For more information about splitting shards, see Split a Shard in the Amazon Kinesis Streams Developer Guide.

    You can use DescribeStream to determine the shard ID and hash key values for the ShardToSplit and NewStartingHashKey parameters that are specified in the SplitShard request.

    SplitShard is an asynchronous operation. Upon receiving a SplitShard request, Amazon Kinesis immediately returns a response and sets the stream status to UPDATING. After the operation is completed, Amazon Kinesis sets the stream status to ACTIVE. Read and write operations continue to work while the stream is in the UPDATING state.

    You can use DescribeStream to check the status of the stream, which is returned in StreamStatus. If the stream is in the ACTIVE state, you can call SplitShard. If a stream is in CREATING or UPDATING or DELETING states, DescribeStream returns a ResourceInUseException.

    If the specified stream does not exist, DescribeStream returns a ResourceNotFoundException. If you try to create more shards than are authorized for your account, you receive a LimitExceededException.

    For the default shard limit for an AWS account, see Streams Limits in the Amazon Kinesis Streams Developer Guide. If you need to increase this limit, contact AWS Support.

    If you try to operate on too many streams simultaneously using CreateStream, DeleteStream, MergeShards, and/or SplitShard, you receive a LimitExceededException.

    SplitShard has limit of 5 transactions per second per account.

    " - }, - "shapes": { - "AddTagsToStreamInput": { - "base": "

    Represents the input for AddTagsToStream.

    ", - "refs": { - } - }, - "ApproximateArrivalTimestamp": { - "base": null, - "refs": { - "Record$ApproximateArrivalTimestamp": "

    The approximate time that the record was inserted into the stream.

    " - } - }, - "BooleanObject": { - "base": null, - "refs": { - "ListStreamsOutput$HasMoreStreams": "

    If set to true, there are more streams available to list.

    ", - "ListTagsForStreamOutput$HasMoreTags": "

    If set to true, more tags are available. To request additional tags, set ExclusiveStartTagKey to the key of the last tag returned.

    ", - "StreamDescription$HasMoreShards": "

    If set to true, more shards in the stream are available to describe.

    " - } - }, - "CreateStreamInput": { - "base": "

    Represents the input for CreateStream.

    ", - "refs": { - } - }, - "Data": { - "base": null, - "refs": { - "PutRecordInput$Data": "

    The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).

    ", - "PutRecordsRequestEntry$Data": "

    The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).

    ", - "Record$Data": "

    The data blob. The data in the blob is both opaque and immutable to the Amazon Kinesis service, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MB).

    " - } - }, - "DecreaseStreamRetentionPeriodInput": { - "base": "

    Represents the input for DecreaseStreamRetentionPeriod.

    ", - "refs": { - } - }, - "DeleteStreamInput": { - "base": "

    Represents the input for DeleteStream.

    ", - "refs": { - } - }, - "DescribeStreamInput": { - "base": "

    Represents the input for DescribeStream.

    ", - "refs": { - } - }, - "DescribeStreamInputLimit": { - "base": null, - "refs": { - "DescribeStreamInput$Limit": "

    The maximum number of shards to return.

    " - } - }, - "DescribeStreamOutput": { - "base": "

    Represents the output for DescribeStream.

    ", - "refs": { - } - }, - "DisableEnhancedMonitoringInput": { - "base": "

    Represents the input for DisableEnhancedMonitoring.

    ", - "refs": { - } - }, - "EnableEnhancedMonitoringInput": { - "base": "

    Represents the input for EnableEnhancedMonitoring.

    ", - "refs": { - } - }, - "EnhancedMetrics": { - "base": "

    Represents enhanced metrics types.

    ", - "refs": { - "EnhancedMonitoringList$member": null - } - }, - "EnhancedMonitoringList": { - "base": null, - "refs": { - "StreamDescription$EnhancedMonitoring": "

    Represents the current enhanced monitoring settings of the stream.

    " - } - }, - "EnhancedMonitoringOutput": { - "base": "

    Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring.

    ", - "refs": { - } - }, - "ErrorCode": { - "base": null, - "refs": { - "PutRecordsResultEntry$ErrorCode": "

    The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.

    " - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "ExpiredIteratorException$message": "

    A message that provides information about the error.

    ", - "InvalidArgumentException$message": "

    A message that provides information about the error.

    ", - "LimitExceededException$message": "

    A message that provides information about the error.

    ", - "ProvisionedThroughputExceededException$message": "

    A message that provides information about the error.

    ", - "PutRecordsResultEntry$ErrorMessage": "

    The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message \"Internal Service Failure\".

    ", - "ResourceInUseException$message": "

    A message that provides information about the error.

    ", - "ResourceNotFoundException$message": "

    A message that provides information about the error.

    " - } - }, - "ExpiredIteratorException": { - "base": "

    The provided iterator exceeds the maximum age allowed.

    ", - "refs": { - } - }, - "GetRecordsInput": { - "base": "

    Represents the input for GetRecords.

    ", - "refs": { - } - }, - "GetRecordsInputLimit": { - "base": null, - "refs": { - "GetRecordsInput$Limit": "

    The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater than 10,000, GetRecords throws InvalidArgumentException.

    " - } - }, - "GetRecordsOutput": { - "base": "

    Represents the output for GetRecords.

    ", - "refs": { - } - }, - "GetShardIteratorInput": { - "base": "

    Represents the input for GetShardIterator.

    ", - "refs": { - } - }, - "GetShardIteratorOutput": { - "base": "

    Represents the output for GetShardIterator.

    ", - "refs": { - } - }, - "HashKey": { - "base": null, - "refs": { - "HashKeyRange$StartingHashKey": "

    The starting hash key of the hash key range.

    ", - "HashKeyRange$EndingHashKey": "

    The ending hash key of the hash key range.

    ", - "PutRecordInput$ExplicitHashKey": "

    The hash value used to explicitly determine the shard the data record is assigned to by overriding the partition key hash.

    ", - "PutRecordsRequestEntry$ExplicitHashKey": "

    The hash value used to determine explicitly the shard that the data record is assigned to by overriding the partition key hash.

    ", - "SplitShardInput$NewStartingHashKey": "

    A hash key value for the starting hash key of one of the child shards created by the split. The hash key range for a given shard constitutes a set of ordered contiguous positive integers. The value for NewStartingHashKey must be in the range of hash keys being mapped into the shard. The NewStartingHashKey hash key value and all higher hash key values in hash key range are distributed to one of the child shards. All the lower hash key values in the range are distributed to the other child shard.

    " - } - }, - "HashKeyRange": { - "base": "

    The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.

    ", - "refs": { - "Shard$HashKeyRange": "

    The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.

    " - } - }, - "IncreaseStreamRetentionPeriodInput": { - "base": "

    Represents the input for IncreaseStreamRetentionPeriod.

    ", - "refs": { - } - }, - "InvalidArgumentException": { - "base": "

    A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.

    ", - "refs": { - } - }, - "LimitExceededException": { - "base": "

    The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed (5).

    ", - "refs": { - } - }, - "ListStreamsInput": { - "base": "

    Represents the input for ListStreams.

    ", - "refs": { - } - }, - "ListStreamsInputLimit": { - "base": null, - "refs": { - "ListStreamsInput$Limit": "

    The maximum number of streams to list.

    " - } - }, - "ListStreamsOutput": { - "base": "

    Represents the output for ListStreams.

    ", - "refs": { - } - }, - "ListTagsForStreamInput": { - "base": "

    Represents the input for ListTagsForStream.

    ", - "refs": { - } - }, - "ListTagsForStreamInputLimit": { - "base": null, - "refs": { - "ListTagsForStreamInput$Limit": "

    The number of tags to return. If this number is less than the total number of tags associated with the stream, HasMoreTags is set to true. To list additional tags, set ExclusiveStartTagKey to the last key in the response.

    " - } - }, - "ListTagsForStreamOutput": { - "base": "

    Represents the output for ListTagsForStream.

    ", - "refs": { - } - }, - "MergeShardsInput": { - "base": "

    Represents the input for MergeShards.

    ", - "refs": { - } - }, - "MetricsName": { - "base": null, - "refs": { - "MetricsNameList$member": null - } - }, - "MetricsNameList": { - "base": null, - "refs": { - "DisableEnhancedMonitoringInput$ShardLevelMetrics": "

    List of shard-level metrics to disable.

    The following are the valid shard-level metrics. The value \"ALL\" disables every metric.

    • IncomingBytes
    • IncomingRecords
    • OutgoingBytes
    • OutgoingRecords
    • WriteProvisionedThroughputExceeded
    • ReadProvisionedThroughputExceeded
    • IteratorAgeMilliseconds
    • ALL

    For more information, see Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch in the Amazon Kinesis Streams Developer Guide.

    ", - "EnableEnhancedMonitoringInput$ShardLevelMetrics": "

    List of shard-level metrics to enable.

    The following are the valid shard-level metrics. The value \"ALL\" enables every metric.

    • IncomingBytes
    • IncomingRecords
    • OutgoingBytes
    • OutgoingRecords
    • WriteProvisionedThroughputExceeded
    • ReadProvisionedThroughputExceeded
    • IteratorAgeMilliseconds
    • ALL

    For more information, see Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch in the Amazon Kinesis Streams Developer Guide.

    ", - "EnhancedMetrics$ShardLevelMetrics": "

    List of shard-level metrics.

    The following are the valid shard-level metrics. The value \"ALL\" enhances every metric.

    • IncomingBytes
    • IncomingRecords
    • OutgoingBytes
    • OutgoingRecords
    • WriteProvisionedThroughputExceeded
    • ReadProvisionedThroughputExceeded
    • IteratorAgeMilliseconds
    • ALL

    For more information, see Monitoring the Amazon Kinesis Streams Service with Amazon CloudWatch in the Amazon Kinesis Streams Developer Guide.

    ", - "EnhancedMonitoringOutput$CurrentShardLevelMetrics": "

    Represents the current state of the metrics that are in the enhanced state before the operation.

    ", - "EnhancedMonitoringOutput$DesiredShardLevelMetrics": "

    Represents the list of all the metrics that would be in the enhanced state after the operation.

    " - } - }, - "MillisBehindLatest": { - "base": null, - "refs": { - "GetRecordsOutput$MillisBehindLatest": "

    The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates record processing is caught up, and there are no new records to process at this moment.

    " - } - }, - "PartitionKey": { - "base": null, - "refs": { - "PutRecordInput$PartitionKey": "

    Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.

    ", - "PutRecordsRequestEntry$PartitionKey": "

    Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.

    ", - "Record$PartitionKey": "

    Identifies which shard in the stream the data record is assigned to.

    " - } - }, - "PositiveIntegerObject": { - "base": null, - "refs": { - "CreateStreamInput$ShardCount": "

    The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput.

    DefaultShardLimit;

    ", - "PutRecordsOutput$FailedRecordCount": "

    The number of unsuccessfully processed records in a PutRecords request.

    " - } - }, - "ProvisionedThroughputExceededException": { - "base": "

    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 in the Amazon Kinesis Streams Developer Guide, and Error Retries and Exponential Backoff in AWS in the AWS General Reference.

    ", - "refs": { - } - }, - "PutRecordInput": { - "base": "

    Represents the input for PutRecord.

    ", - "refs": { - } - }, - "PutRecordOutput": { - "base": "

    Represents the output for PutRecord.

    ", - "refs": { - } - }, - "PutRecordsInput": { - "base": "

    A PutRecords request.

    ", - "refs": { - } - }, - "PutRecordsOutput": { - "base": "

    PutRecords results.

    ", - "refs": { - } - }, - "PutRecordsRequestEntry": { - "base": "

    Represents the output for PutRecords.

    ", - "refs": { - "PutRecordsRequestEntryList$member": null - } - }, - "PutRecordsRequestEntryList": { - "base": null, - "refs": { - "PutRecordsInput$Records": "

    The records associated with the request.

    " - } - }, - "PutRecordsResultEntry": { - "base": "

    Represents the result of an individual record from a PutRecords request. A record that is successfully added to a stream includes SequenceNumber and ShardId in the result. A record that fails to be added to the stream includes ErrorCode and ErrorMessage in the result.

    ", - "refs": { - "PutRecordsResultEntryList$member": null - } - }, - "PutRecordsResultEntryList": { - "base": null, - "refs": { - "PutRecordsOutput$Records": "

    An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering. A record that is successfully added to a stream includes SequenceNumber and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage in the result.

    " - } - }, - "Record": { - "base": "

    The unit of data of the Amazon Kinesis stream, which is composed of a sequence number, a partition key, and a data blob.

    ", - "refs": { - "RecordList$member": null - } - }, - "RecordList": { - "base": null, - "refs": { - "GetRecordsOutput$Records": "

    The data records retrieved from the shard.

    " - } - }, - "RemoveTagsFromStreamInput": { - "base": "

    Represents the input for RemoveTagsFromStream.

    ", - "refs": { - } - }, - "ResourceInUseException": { - "base": "

    The resource is not available for this operation. For successful operation, the resource needs to be in the ACTIVE state.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    The requested resource could not be found. The stream might not be specified correctly, or it might not be in the ACTIVE state if the operation requires it.

    ", - "refs": { - } - }, - "RetentionPeriodHours": { - "base": null, - "refs": { - "DecreaseStreamRetentionPeriodInput$RetentionPeriodHours": "

    The new retention period of the stream, in hours. Must be less than the current retention period.

    ", - "IncreaseStreamRetentionPeriodInput$RetentionPeriodHours": "

    The new retention period of the stream, in hours. Must be more than the current retention period.

    ", - "StreamDescription$RetentionPeriodHours": "

    The current retention period, in hours.

    " - } - }, - "SequenceNumber": { - "base": null, - "refs": { - "GetShardIteratorInput$StartingSequenceNumber": "

    The sequence number of the data record in the shard from which to start reading. Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.

    ", - "PutRecordInput$SequenceNumberForOrdering": "

    Guarantees strictly increasing sequence numbers, for puts from the same client and to the same partition key. Usage: set the SequenceNumberForOrdering of record n to the sequence number of record n-1 (as returned in the result when putting record n-1). If this parameter is not set, records will be coarsely ordered based on arrival time.

    ", - "PutRecordOutput$SequenceNumber": "

    The sequence number identifier that was assigned to the put data record. The sequence number for the record is unique across all records in the stream. A sequence number is the identifier associated with every record put into the stream.

    ", - "PutRecordsResultEntry$SequenceNumber": "

    The sequence number for an individual record result.

    ", - "Record$SequenceNumber": "

    The unique identifier of the record in the stream.

    ", - "SequenceNumberRange$StartingSequenceNumber": "

    The starting sequence number for the range.

    ", - "SequenceNumberRange$EndingSequenceNumber": "

    The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of null.

    " - } - }, - "SequenceNumberRange": { - "base": "

    The range of possible sequence numbers for the shard.

    ", - "refs": { - "Shard$SequenceNumberRange": "

    The range of possible sequence numbers for the shard.

    " - } - }, - "Shard": { - "base": "

    A uniquely identified group of data records in an Amazon Kinesis stream.

    ", - "refs": { - "ShardList$member": null - } - }, - "ShardId": { - "base": null, - "refs": { - "DescribeStreamInput$ExclusiveStartShardId": "

    The shard ID of the shard to start with.

    ", - "GetShardIteratorInput$ShardId": "

    The shard ID of the Amazon Kinesis shard to get the iterator for.

    ", - "MergeShardsInput$ShardToMerge": "

    The shard ID of the shard to combine with the adjacent shard for the merge.

    ", - "MergeShardsInput$AdjacentShardToMerge": "

    The shard ID of the adjacent shard for the merge.

    ", - "PutRecordOutput$ShardId": "

    The shard ID of the shard where the data record was placed.

    ", - "PutRecordsResultEntry$ShardId": "

    The shard ID for an individual record result.

    ", - "Shard$ShardId": "

    The unique identifier of the shard within the stream.

    ", - "Shard$ParentShardId": "

    The shard ID of the shard's parent.

    ", - "Shard$AdjacentParentShardId": "

    The shard ID of the shard adjacent to the shard's parent.

    ", - "SplitShardInput$ShardToSplit": "

    The shard ID of the shard to split.

    " - } - }, - "ShardIterator": { - "base": null, - "refs": { - "GetRecordsInput$ShardIterator": "

    The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard.

    ", - "GetRecordsOutput$NextShardIterator": "

    The next position in the shard from which to start sequentially reading data records. If set to null, the shard has been closed and the requested iterator will not return any more data.

    ", - "GetShardIteratorOutput$ShardIterator": "

    The position in the shard from which to start reading data records sequentially. A shard iterator specifies this position using the sequence number of a data record in a shard.

    " - } - }, - "ShardIteratorType": { - "base": null, - "refs": { - "GetShardIteratorInput$ShardIteratorType": "

    Determines how the shard iterator is used to start reading data records from the shard.

    The following are the valid Amazon Kinesis shard iterator types:

    • AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value StartingSequenceNumber.
    • AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in the value StartingSequenceNumber.
    • AT_TIMESTAMP - Start reading from the position denoted by a specific timestamp, provided in the value Timestamp.
    • TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
    • LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
    " - } - }, - "ShardList": { - "base": null, - "refs": { - "StreamDescription$Shards": "

    The shards that comprise the stream.

    " - } - }, - "SplitShardInput": { - "base": "

    Represents the input for SplitShard.

    ", - "refs": { - } - }, - "StreamARN": { - "base": null, - "refs": { - "StreamDescription$StreamARN": "

    The Amazon Resource Name (ARN) for the stream being described.

    " - } - }, - "StreamDescription": { - "base": "

    Represents the output for DescribeStream.

    ", - "refs": { - "DescribeStreamOutput$StreamDescription": "

    The current status of the stream, the stream ARN, an array of shard objects that comprise the stream, and states whether there are more shards available.

    " - } - }, - "StreamName": { - "base": null, - "refs": { - "AddTagsToStreamInput$StreamName": "

    The name of the stream.

    ", - "CreateStreamInput$StreamName": "

    A name to identify the stream. The stream name is scoped to the AWS account used by the application that creates the stream. It is also scoped by region. That is, two streams in two different AWS accounts can have the same name, and two streams in the same AWS account but in two different regions can have the same name.

    ", - "DecreaseStreamRetentionPeriodInput$StreamName": "

    The name of the stream to modify.

    ", - "DeleteStreamInput$StreamName": "

    The name of the stream to delete.

    ", - "DescribeStreamInput$StreamName": "

    The name of the stream to describe.

    ", - "DisableEnhancedMonitoringInput$StreamName": "

    The name of the Amazon Kinesis stream for which to disable enhanced monitoring.

    ", - "EnableEnhancedMonitoringInput$StreamName": "

    The name of the stream for which to enable enhanced monitoring.

    ", - "EnhancedMonitoringOutput$StreamName": "

    The name of the Amazon Kinesis stream.

    ", - "GetShardIteratorInput$StreamName": "

    The name of the Amazon Kinesis stream.

    ", - "IncreaseStreamRetentionPeriodInput$StreamName": "

    The name of the stream to modify.

    ", - "ListStreamsInput$ExclusiveStartStreamName": "

    The name of the stream to start the list with.

    ", - "ListTagsForStreamInput$StreamName": "

    The name of the stream.

    ", - "MergeShardsInput$StreamName": "

    The name of the stream for the merge.

    ", - "PutRecordInput$StreamName": "

    The name of the stream to put the data record into.

    ", - "PutRecordsInput$StreamName": "

    The stream name associated with the request.

    ", - "RemoveTagsFromStreamInput$StreamName": "

    The name of the stream.

    ", - "SplitShardInput$StreamName": "

    The name of the stream for the shard split.

    ", - "StreamDescription$StreamName": "

    The name of the stream being described.

    ", - "StreamNameList$member": null - } - }, - "StreamNameList": { - "base": null, - "refs": { - "ListStreamsOutput$StreamNames": "

    The names of the streams that are associated with the AWS account making the ListStreams request.

    " - } - }, - "StreamStatus": { - "base": null, - "refs": { - "StreamDescription$StreamStatus": "

    The current status of the stream being described. The stream status is one of the following states:

    • CREATING - The stream is being created. Amazon Kinesis immediately returns and sets StreamStatus to CREATING.
    • DELETING - The stream is being deleted. The specified stream is in the DELETING state until Amazon Kinesis completes the deletion.
    • ACTIVE - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an ACTIVE stream.
    • UPDATING - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the UPDATING state.
    " - } - }, - "Tag": { - "base": "

    Metadata assigned to the stream, consisting of a key-value pair.

    ", - "refs": { - "TagList$member": null - } - }, - "TagKey": { - "base": null, - "refs": { - "ListTagsForStreamInput$ExclusiveStartTagKey": "

    The key to use as the starting point for the list of tags. If this parameter is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey.

    ", - "Tag$Key": "

    A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @

    ", - "TagKeyList$member": null, - "TagMap$key": null - } - }, - "TagKeyList": { - "base": null, - "refs": { - "RemoveTagsFromStreamInput$TagKeys": "

    A list of tag keys. Each corresponding tag is removed from the stream.

    " - } - }, - "TagList": { - "base": null, - "refs": { - "ListTagsForStreamOutput$Tags": "

    A list of tags associated with StreamName, starting with the first tag after ExclusiveStartTagKey and up to the specified Limit.

    " - } - }, - "TagMap": { - "base": null, - "refs": { - "AddTagsToStreamInput$Tags": "

    The set of key-value pairs to use to create the tags.

    " - } - }, - "TagValue": { - "base": null, - "refs": { - "Tag$Value": "

    An optional string, typically used to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @

    ", - "TagMap$value": null - } - }, - "Timestamp": { - "base": null, - "refs": { - "GetShardIteratorInput$Timestamp": "

    The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A timestamp is the Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or 1459799926.480. If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/api-2.json deleted file mode 100644 index e956fc6b6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/api-2.json +++ /dev/null @@ -1,1209 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2014-11-01", - "endpointPrefix":"kms", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"KMS", - "serviceFullName":"AWS Key Management Service", - "signatureVersion":"v4", - "targetPrefix":"TrentService" - }, - "operations":{ - "CancelKeyDeletion":{ - "name":"CancelKeyDeletion", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CancelKeyDeletionRequest"}, - "output":{"shape":"CancelKeyDeletionResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "CreateAlias":{ - "name":"CreateAlias", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateAliasRequest"}, - "errors":[ - {"shape":"DependencyTimeoutException"}, - {"shape":"AlreadyExistsException"}, - {"shape":"NotFoundException"}, - {"shape":"InvalidAliasNameException"}, - {"shape":"KMSInternalException"}, - {"shape":"LimitExceededException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "CreateGrant":{ - "name":"CreateGrant", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateGrantRequest"}, - "output":{"shape":"CreateGrantResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"DisabledException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidArnException"}, - {"shape":"KMSInternalException"}, - {"shape":"InvalidGrantTokenException"}, - {"shape":"LimitExceededException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "CreateKey":{ - "name":"CreateKey", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateKeyRequest"}, - "output":{"shape":"CreateKeyResponse"}, - "errors":[ - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidArnException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"KMSInternalException"}, - {"shape":"LimitExceededException"} - ] - }, - "Decrypt":{ - "name":"Decrypt", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DecryptRequest"}, - "output":{"shape":"DecryptResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"DisabledException"}, - {"shape":"InvalidCiphertextException"}, - {"shape":"KeyUnavailableException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidGrantTokenException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "DeleteAlias":{ - "name":"DeleteAlias", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteAliasRequest"}, - "errors":[ - {"shape":"DependencyTimeoutException"}, - {"shape":"NotFoundException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "DescribeKey":{ - "name":"DescribeKey", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeKeyRequest"}, - "output":{"shape":"DescribeKeyResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"} - ] - }, - "DisableKey":{ - "name":"DisableKey", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DisableKeyRequest"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "DisableKeyRotation":{ - "name":"DisableKeyRotation", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DisableKeyRotationRequest"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"DisabledException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "EnableKey":{ - "name":"EnableKey", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"EnableKeyRequest"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"LimitExceededException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "EnableKeyRotation":{ - "name":"EnableKeyRotation", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"EnableKeyRotationRequest"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"DisabledException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "Encrypt":{ - "name":"Encrypt", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"EncryptRequest"}, - "output":{"shape":"EncryptResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"DisabledException"}, - {"shape":"KeyUnavailableException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidKeyUsageException"}, - {"shape":"InvalidGrantTokenException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "GenerateDataKey":{ - "name":"GenerateDataKey", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GenerateDataKeyRequest"}, - "output":{"shape":"GenerateDataKeyResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"DisabledException"}, - {"shape":"KeyUnavailableException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidKeyUsageException"}, - {"shape":"InvalidGrantTokenException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "GenerateDataKeyWithoutPlaintext":{ - "name":"GenerateDataKeyWithoutPlaintext", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GenerateDataKeyWithoutPlaintextRequest"}, - "output":{"shape":"GenerateDataKeyWithoutPlaintextResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"DisabledException"}, - {"shape":"KeyUnavailableException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidKeyUsageException"}, - {"shape":"InvalidGrantTokenException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "GenerateRandom":{ - "name":"GenerateRandom", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GenerateRandomRequest"}, - "output":{"shape":"GenerateRandomResponse"}, - "errors":[ - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"} - ] - }, - "GetKeyPolicy":{ - "name":"GetKeyPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetKeyPolicyRequest"}, - "output":{"shape":"GetKeyPolicyResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "GetKeyRotationStatus":{ - "name":"GetKeyRotationStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetKeyRotationStatusRequest"}, - "output":{"shape":"GetKeyRotationStatusResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "ListAliases":{ - "name":"ListAliases", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAliasesRequest"}, - "output":{"shape":"ListAliasesResponse"}, - "errors":[ - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidMarkerException"}, - {"shape":"KMSInternalException"} - ] - }, - "ListGrants":{ - "name":"ListGrants", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListGrantsRequest"}, - "output":{"shape":"ListGrantsResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidMarkerException"}, - {"shape":"InvalidArnException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "ListKeyPolicies":{ - "name":"ListKeyPolicies", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListKeyPoliciesRequest"}, - "output":{"shape":"ListKeyPoliciesResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "ListKeys":{ - "name":"ListKeys", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListKeysRequest"}, - "output":{"shape":"ListKeysResponse"}, - "errors":[ - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"} - ] - }, - "ListRetirableGrants":{ - "name":"ListRetirableGrants", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRetirableGrantsRequest"}, - "output":{"shape":"ListGrantsResponse"}, - "errors":[ - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidMarkerException"}, - {"shape":"InvalidArnException"}, - {"shape":"NotFoundException"}, - {"shape":"KMSInternalException"} - ] - }, - "PutKeyPolicy":{ - "name":"PutKeyPolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutKeyPolicyRequest"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"MalformedPolicyDocumentException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"UnsupportedOperationException"}, - {"shape":"KMSInternalException"}, - {"shape":"LimitExceededException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "ReEncrypt":{ - "name":"ReEncrypt", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ReEncryptRequest"}, - "output":{"shape":"ReEncryptResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"DisabledException"}, - {"shape":"InvalidCiphertextException"}, - {"shape":"KeyUnavailableException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidKeyUsageException"}, - {"shape":"InvalidGrantTokenException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "RetireGrant":{ - "name":"RetireGrant", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RetireGrantRequest"}, - "errors":[ - {"shape":"InvalidGrantTokenException"}, - {"shape":"InvalidGrantIdException"}, - {"shape":"NotFoundException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "RevokeGrant":{ - "name":"RevokeGrant", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RevokeGrantRequest"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"InvalidArnException"}, - {"shape":"InvalidGrantIdException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "ScheduleKeyDeletion":{ - "name":"ScheduleKeyDeletion", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ScheduleKeyDeletionRequest"}, - "output":{"shape":"ScheduleKeyDeletionResponse"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "UpdateAlias":{ - "name":"UpdateAlias", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateAliasRequest"}, - "errors":[ - {"shape":"DependencyTimeoutException"}, - {"shape":"NotFoundException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - }, - "UpdateKeyDescription":{ - "name":"UpdateKeyDescription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateKeyDescriptionRequest"}, - "errors":[ - {"shape":"NotFoundException"}, - {"shape":"InvalidArnException"}, - {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"}, - {"shape":"KMSInvalidStateException"} - ] - } - }, - "shapes":{ - "AWSAccountIdType":{"type":"string"}, - "AliasList":{ - "type":"list", - "member":{"shape":"AliasListEntry"} - }, - "AliasListEntry":{ - "type":"structure", - "members":{ - "AliasName":{"shape":"AliasNameType"}, - "AliasArn":{"shape":"ArnType"}, - "TargetKeyId":{"shape":"KeyIdType"} - } - }, - "AliasNameType":{ - "type":"string", - "max":256, - "min":1, - "pattern":"^[a-zA-Z0-9:/_-]+$" - }, - "AlreadyExistsException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "ArnType":{ - "type":"string", - "max":2048, - "min":20 - }, - "BooleanType":{"type":"boolean"}, - "CancelKeyDeletionRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"} - } - }, - "CancelKeyDeletionResponse":{ - "type":"structure", - "members":{ - "KeyId":{"shape":"KeyIdType"} - } - }, - "CiphertextType":{ - "type":"blob", - "max":6144, - "min":1 - }, - "CreateAliasRequest":{ - "type":"structure", - "required":[ - "AliasName", - "TargetKeyId" - ], - "members":{ - "AliasName":{"shape":"AliasNameType"}, - "TargetKeyId":{"shape":"KeyIdType"} - } - }, - "CreateGrantRequest":{ - "type":"structure", - "required":[ - "KeyId", - "GranteePrincipal" - ], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "GranteePrincipal":{"shape":"PrincipalIdType"}, - "RetiringPrincipal":{"shape":"PrincipalIdType"}, - "Operations":{"shape":"GrantOperationList"}, - "Constraints":{"shape":"GrantConstraints"}, - "GrantTokens":{"shape":"GrantTokenList"}, - "Name":{"shape":"GrantNameType"} - } - }, - "CreateGrantResponse":{ - "type":"structure", - "members":{ - "GrantToken":{"shape":"GrantTokenType"}, - "GrantId":{"shape":"GrantIdType"} - } - }, - "CreateKeyRequest":{ - "type":"structure", - "members":{ - "Policy":{"shape":"PolicyType"}, - "Description":{"shape":"DescriptionType"}, - "KeyUsage":{"shape":"KeyUsageType"}, - "BypassPolicyLockoutSafetyCheck":{"shape":"BooleanType"} - } - }, - "CreateKeyResponse":{ - "type":"structure", - "members":{ - "KeyMetadata":{"shape":"KeyMetadata"} - } - }, - "DataKeySpec":{ - "type":"string", - "enum":[ - "AES_256", - "AES_128" - ] - }, - "DateType":{"type":"timestamp"}, - "DecryptRequest":{ - "type":"structure", - "required":["CiphertextBlob"], - "members":{ - "CiphertextBlob":{"shape":"CiphertextType"}, - "EncryptionContext":{"shape":"EncryptionContextType"}, - "GrantTokens":{"shape":"GrantTokenList"} - } - }, - "DecryptResponse":{ - "type":"structure", - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "Plaintext":{"shape":"PlaintextType"} - } - }, - "DeleteAliasRequest":{ - "type":"structure", - "required":["AliasName"], - "members":{ - "AliasName":{"shape":"AliasNameType"} - } - }, - "DependencyTimeoutException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true, - "fault":true - }, - "DescribeKeyRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "GrantTokens":{"shape":"GrantTokenList"} - } - }, - "DescribeKeyResponse":{ - "type":"structure", - "members":{ - "KeyMetadata":{"shape":"KeyMetadata"} - } - }, - "DescriptionType":{ - "type":"string", - "max":8192, - "min":0 - }, - "DisableKeyRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"} - } - }, - "DisableKeyRotationRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"} - } - }, - "DisabledException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "EnableKeyRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"} - } - }, - "EnableKeyRotationRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"} - } - }, - "EncryptRequest":{ - "type":"structure", - "required":[ - "KeyId", - "Plaintext" - ], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "Plaintext":{"shape":"PlaintextType"}, - "EncryptionContext":{"shape":"EncryptionContextType"}, - "GrantTokens":{"shape":"GrantTokenList"} - } - }, - "EncryptResponse":{ - "type":"structure", - "members":{ - "CiphertextBlob":{"shape":"CiphertextType"}, - "KeyId":{"shape":"KeyIdType"} - } - }, - "EncryptionContextKey":{"type":"string"}, - "EncryptionContextType":{ - "type":"map", - "key":{"shape":"EncryptionContextKey"}, - "value":{"shape":"EncryptionContextValue"} - }, - "EncryptionContextValue":{"type":"string"}, - "ErrorMessageType":{"type":"string"}, - "GenerateDataKeyRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "EncryptionContext":{"shape":"EncryptionContextType"}, - "NumberOfBytes":{"shape":"NumberOfBytesType"}, - "KeySpec":{"shape":"DataKeySpec"}, - "GrantTokens":{"shape":"GrantTokenList"} - } - }, - "GenerateDataKeyResponse":{ - "type":"structure", - "members":{ - "CiphertextBlob":{"shape":"CiphertextType"}, - "Plaintext":{"shape":"PlaintextType"}, - "KeyId":{"shape":"KeyIdType"} - } - }, - "GenerateDataKeyWithoutPlaintextRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "EncryptionContext":{"shape":"EncryptionContextType"}, - "KeySpec":{"shape":"DataKeySpec"}, - "NumberOfBytes":{"shape":"NumberOfBytesType"}, - "GrantTokens":{"shape":"GrantTokenList"} - } - }, - "GenerateDataKeyWithoutPlaintextResponse":{ - "type":"structure", - "members":{ - "CiphertextBlob":{"shape":"CiphertextType"}, - "KeyId":{"shape":"KeyIdType"} - } - }, - "GenerateRandomRequest":{ - "type":"structure", - "members":{ - "NumberOfBytes":{"shape":"NumberOfBytesType"} - } - }, - "GenerateRandomResponse":{ - "type":"structure", - "members":{ - "Plaintext":{"shape":"PlaintextType"} - } - }, - "GetKeyPolicyRequest":{ - "type":"structure", - "required":[ - "KeyId", - "PolicyName" - ], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "PolicyName":{"shape":"PolicyNameType"} - } - }, - "GetKeyPolicyResponse":{ - "type":"structure", - "members":{ - "Policy":{"shape":"PolicyType"} - } - }, - "GetKeyRotationStatusRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"} - } - }, - "GetKeyRotationStatusResponse":{ - "type":"structure", - "members":{ - "KeyRotationEnabled":{"shape":"BooleanType"} - } - }, - "GrantConstraints":{ - "type":"structure", - "members":{ - "EncryptionContextSubset":{"shape":"EncryptionContextType"}, - "EncryptionContextEquals":{"shape":"EncryptionContextType"} - } - }, - "GrantIdType":{ - "type":"string", - "max":128, - "min":1 - }, - "GrantList":{ - "type":"list", - "member":{"shape":"GrantListEntry"} - }, - "GrantListEntry":{ - "type":"structure", - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "GrantId":{"shape":"GrantIdType"}, - "Name":{"shape":"GrantNameType"}, - "CreationDate":{"shape":"DateType"}, - "GranteePrincipal":{"shape":"PrincipalIdType"}, - "RetiringPrincipal":{"shape":"PrincipalIdType"}, - "IssuingAccount":{"shape":"PrincipalIdType"}, - "Operations":{"shape":"GrantOperationList"}, - "Constraints":{"shape":"GrantConstraints"} - } - }, - "GrantNameType":{ - "type":"string", - "max":256, - "min":1, - "pattern":"^[a-zA-Z0-9:/_-]+$" - }, - "GrantOperation":{ - "type":"string", - "enum":[ - "Decrypt", - "Encrypt", - "GenerateDataKey", - "GenerateDataKeyWithoutPlaintext", - "ReEncryptFrom", - "ReEncryptTo", - "CreateGrant", - "RetireGrant", - "DescribeKey" - ] - }, - "GrantOperationList":{ - "type":"list", - "member":{"shape":"GrantOperation"} - }, - "GrantTokenList":{ - "type":"list", - "member":{"shape":"GrantTokenType"}, - "max":10, - "min":0 - }, - "GrantTokenType":{ - "type":"string", - "max":8192, - "min":1 - }, - "InvalidAliasNameException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "InvalidArnException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "InvalidCiphertextException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "InvalidGrantIdException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "InvalidGrantTokenException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "InvalidKeyUsageException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "InvalidMarkerException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "KMSInternalException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "KMSInvalidStateException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "KeyIdType":{ - "type":"string", - "max":256, - "min":1 - }, - "KeyList":{ - "type":"list", - "member":{"shape":"KeyListEntry"} - }, - "KeyListEntry":{ - "type":"structure", - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "KeyArn":{"shape":"ArnType"} - } - }, - "KeyMetadata":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "AWSAccountId":{"shape":"AWSAccountIdType"}, - "KeyId":{"shape":"KeyIdType"}, - "Arn":{"shape":"ArnType"}, - "CreationDate":{"shape":"DateType"}, - "Enabled":{"shape":"BooleanType"}, - "Description":{"shape":"DescriptionType"}, - "KeyUsage":{"shape":"KeyUsageType"}, - "KeyState":{"shape":"KeyState"}, - "DeletionDate":{"shape":"DateType"} - } - }, - "KeyState":{ - "type":"string", - "enum":[ - "Enabled", - "Disabled", - "PendingDeletion" - ] - }, - "KeyUnavailableException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true, - "fault":true - }, - "KeyUsageType":{ - "type":"string", - "enum":["ENCRYPT_DECRYPT"] - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "LimitType":{ - "type":"integer", - "max":1000, - "min":1 - }, - "ListAliasesRequest":{ - "type":"structure", - "members":{ - "Limit":{"shape":"LimitType"}, - "Marker":{"shape":"MarkerType"} - } - }, - "ListAliasesResponse":{ - "type":"structure", - "members":{ - "Aliases":{"shape":"AliasList"}, - "NextMarker":{"shape":"MarkerType"}, - "Truncated":{"shape":"BooleanType"} - } - }, - "ListGrantsRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "Limit":{"shape":"LimitType"}, - "Marker":{"shape":"MarkerType"}, - "KeyId":{"shape":"KeyIdType"} - } - }, - "ListGrantsResponse":{ - "type":"structure", - "members":{ - "Grants":{"shape":"GrantList"}, - "NextMarker":{"shape":"MarkerType"}, - "Truncated":{"shape":"BooleanType"} - } - }, - "ListKeyPoliciesRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "Limit":{"shape":"LimitType"}, - "Marker":{"shape":"MarkerType"} - } - }, - "ListKeyPoliciesResponse":{ - "type":"structure", - "members":{ - "PolicyNames":{"shape":"PolicyNameList"}, - "NextMarker":{"shape":"MarkerType"}, - "Truncated":{"shape":"BooleanType"} - } - }, - "ListKeysRequest":{ - "type":"structure", - "members":{ - "Limit":{"shape":"LimitType"}, - "Marker":{"shape":"MarkerType"} - } - }, - "ListKeysResponse":{ - "type":"structure", - "members":{ - "Keys":{"shape":"KeyList"}, - "NextMarker":{"shape":"MarkerType"}, - "Truncated":{"shape":"BooleanType"} - } - }, - "ListRetirableGrantsRequest":{ - "type":"structure", - "required":["RetiringPrincipal"], - "members":{ - "Limit":{"shape":"LimitType"}, - "Marker":{"shape":"MarkerType"}, - "RetiringPrincipal":{"shape":"PrincipalIdType"} - } - }, - "MalformedPolicyDocumentException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "MarkerType":{ - "type":"string", - "max":320, - "min":1, - "pattern":"[\\u0020-\\u00FF]*" - }, - "NotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "NumberOfBytesType":{ - "type":"integer", - "max":1024, - "min":1 - }, - "PendingWindowInDaysType":{ - "type":"integer", - "max":365, - "min":1 - }, - "PlaintextType":{ - "type":"blob", - "max":4096, - "min":1, - "sensitive":true - }, - "PolicyNameList":{ - "type":"list", - "member":{"shape":"PolicyNameType"} - }, - "PolicyNameType":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[\\w]+" - }, - "PolicyType":{ - "type":"string", - "max":131072, - "min":1, - "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" - }, - "PrincipalIdType":{ - "type":"string", - "max":256, - "min":1 - }, - "PutKeyPolicyRequest":{ - "type":"structure", - "required":[ - "KeyId", - "PolicyName", - "Policy" - ], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "PolicyName":{"shape":"PolicyNameType"}, - "Policy":{"shape":"PolicyType"}, - "BypassPolicyLockoutSafetyCheck":{"shape":"BooleanType"} - } - }, - "ReEncryptRequest":{ - "type":"structure", - "required":[ - "CiphertextBlob", - "DestinationKeyId" - ], - "members":{ - "CiphertextBlob":{"shape":"CiphertextType"}, - "SourceEncryptionContext":{"shape":"EncryptionContextType"}, - "DestinationKeyId":{"shape":"KeyIdType"}, - "DestinationEncryptionContext":{"shape":"EncryptionContextType"}, - "GrantTokens":{"shape":"GrantTokenList"} - } - }, - "ReEncryptResponse":{ - "type":"structure", - "members":{ - "CiphertextBlob":{"shape":"CiphertextType"}, - "SourceKeyId":{"shape":"KeyIdType"}, - "KeyId":{"shape":"KeyIdType"} - } - }, - "RetireGrantRequest":{ - "type":"structure", - "members":{ - "GrantToken":{"shape":"GrantTokenType"}, - "KeyId":{"shape":"KeyIdType"}, - "GrantId":{"shape":"GrantIdType"} - } - }, - "RevokeGrantRequest":{ - "type":"structure", - "required":[ - "KeyId", - "GrantId" - ], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "GrantId":{"shape":"GrantIdType"} - } - }, - "ScheduleKeyDeletionRequest":{ - "type":"structure", - "required":["KeyId"], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "PendingWindowInDays":{"shape":"PendingWindowInDaysType"} - } - }, - "ScheduleKeyDeletionResponse":{ - "type":"structure", - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "DeletionDate":{"shape":"DateType"} - } - }, - "UnsupportedOperationException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessageType"} - }, - "exception":true - }, - "UpdateAliasRequest":{ - "type":"structure", - "required":[ - "AliasName", - "TargetKeyId" - ], - "members":{ - "AliasName":{"shape":"AliasNameType"}, - "TargetKeyId":{"shape":"KeyIdType"} - } - }, - "UpdateKeyDescriptionRequest":{ - "type":"structure", - "required":[ - "KeyId", - "Description" - ], - "members":{ - "KeyId":{"shape":"KeyIdType"}, - "Description":{"shape":"DescriptionType"} - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/docs-2.json deleted file mode 100644 index 024d33b7d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/docs-2.json +++ /dev/null @@ -1,701 +0,0 @@ -{ - "version": "2.0", - "service": "AWS Key Management Service

    AWS Key Management Service (AWS KMS) is an encryption and key management web service. This guide describes the AWS KMS operations that you can call programmatically. For general information about AWS KMS, see the AWS Key Management Service Developer Guide.

    AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWS KMS and other AWS services. For example, the SDKs take care of tasks such as signing requests (see below), managing errors, and retrying requests automatically. For more information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web Services.

    We recommend that you use the AWS SDKs to make programmatic API calls to AWS KMS.

    Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support these modes.

    Signing Requests

    Requests must be signed by using an access key ID and a secret access key. We strongly recommend that you do not use your AWS account (root) access key ID and secret key for everyday work with AWS KMS. Instead, use the access key ID and secret access key for an IAM user, or you can use the AWS Security Token Service to generate temporary security credentials that you can use to sign requests.

    All AWS KMS operations require Signature Version 4.

    Logging API Requests

    AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and related events for your AWS account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to AWS KMS, who made the request, when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find your log files, see the AWS CloudTrail User Guide.

    Additional Resources

    For more information about credentials and request signing, see the following:

    Commonly Used APIs

    Of the APIs discussed in this guide, the following will prove the most useful for most applications. You will likely perform actions other than these, such as creating keys and assigning policies, by using the console.

    ", - "operations": { - "CancelKeyDeletion": "

    Cancels the deletion of a customer master key (CMK). When this operation is successful, the CMK is set to the Disabled state. To enable a CMK, use EnableKey.

    For more information about scheduling and canceling deletion of a CMK, see Deleting Customer Master Keys in the AWS Key Management Service Developer Guide.

    ", - "CreateAlias": "

    Creates a display name for a customer master key. An alias can be used to identify a key and should be unique. The console enforces a one-to-one mapping between the alias and a key. An alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). An alias must start with the word \"alias\" followed by a forward slash (alias/). An alias that begins with \"aws\" after the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS).

    The alias and the key it is mapped to must be in the same AWS account and the same region.

    To map an alias to a different key, call UpdateAlias.

    ", - "CreateGrant": "

    Adds a grant to a key to specify who can use the key and under what conditions. Grants are alternate permission mechanisms to key policies.

    For more information about grants, see Grants in the AWS Key Management Service Developer Guide.

    ", - "CreateKey": "

    Creates a customer master key (CMK).

    You can use a CMK to encrypt small amounts of data (4 KiB or less) directly, but CMKs are more commonly used to encrypt data encryption keys (DEKs), which are used to encrypt raw data. For more information about DEKs and the difference between CMKs and DEKs, see the following:

    ", - "Decrypt": "

    Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted by using any of the following functions:

    Note that if a caller has been granted access permissions to all keys (through, for example, IAM user policies that grant Decrypt permission on all resources), then ciphertext encrypted by using keys in other accounts where the key grants access to the caller can be decrypted. To remedy this, we recommend that you do not grant Decrypt access in an IAM user policy. Instead grant Decrypt access only in key policies. If you must grant Decrypt access in an IAM user policy, you should scope the resource to specific keys or to specific trusted accounts.

    ", - "DeleteAlias": "

    Deletes the specified alias. To map an alias to a different key, call UpdateAlias.

    ", - "DescribeKey": "

    Provides detailed information about the specified customer master key.

    ", - "DisableKey": "

    Sets the state of a customer master key (CMK) to disabled, thereby preventing its use for cryptographic operations. For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

    ", - "DisableKeyRotation": "

    Disables rotation of the specified key.

    ", - "EnableKey": "

    Marks a key as enabled, thereby permitting its use.

    ", - "EnableKeyRotation": "

    Enables rotation of the specified customer master key.

    ", - "Encrypt": "

    Encrypts plaintext into ciphertext by using a customer master key. The Encrypt function has two primary use cases:

    • You can encrypt up to 4 KB of arbitrary data such as an RSA key, a database password, or other sensitive customer information.

    • If you are moving encrypted data from one region to another, you can use this API to encrypt in the new region the plaintext data key that was used to encrypt the data in the original region. This provides you with an encrypted copy of the data key that can be decrypted in the new region and used there to decrypt the encrypted data.

    Unless you are moving encrypted data from one region to another, you don't use this function to encrypt a generated data key within a region. You retrieve data keys already encrypted by calling the GenerateDataKey or GenerateDataKeyWithoutPlaintext function. Data keys don't need to be encrypted again by calling Encrypt.

    If you want to encrypt data locally in your application, you can use the GenerateDataKey function to return a plaintext data encryption key and a copy of the key encrypted under the customer master key (CMK) of your choosing.

    ", - "GenerateDataKey": "

    Generates a data key that you can use in your application to locally encrypt data. This call returns a plaintext version of the key in the Plaintext field of the response object and an encrypted copy of the key in the CiphertextBlob field. The key is encrypted by using the master key specified by the KeyId field. To decrypt the encrypted key, pass it to the Decrypt API.

    We recommend that you use the following pattern to locally encrypt data: call the GenerateDataKey API, use the key returned in the Plaintext response field to locally encrypt data, and then erase the plaintext data key from memory. Store the encrypted data key (contained in the CiphertextBlob field) alongside of the locally encrypted data.

    You should not call the Encrypt function to re-encrypt your data keys within a region. GenerateDataKey always returns the data key encrypted and tied to the customer master key that will be used to decrypt it. There is no need to decrypt it twice.

    If you decide to use the optional EncryptionContext parameter, you must also store the context in full or at least store enough information along with the encrypted data to be able to reconstruct the context when submitting the ciphertext to the Decrypt API. It is a good practice to choose a context that you can reconstruct on the fly to better secure the ciphertext. For more information about how this parameter is used, see Encryption Context.

    To decrypt data, pass the encrypted data key to the Decrypt API. Decrypt uses the associated master key to decrypt the encrypted data key and returns it as plaintext. Use the plaintext data key to locally decrypt your data and then erase the key from memory. You must specify the encryption context, if any, that you specified when you generated the key. The encryption context is logged by CloudTrail, and you can use this log to help track the use of particular data.

    ", - "GenerateDataKeyWithoutPlaintext": "

    Returns a data key encrypted by a customer master key without the plaintext copy of that key. Otherwise, this API functions exactly like GenerateDataKey. You can use this API to, for example, satisfy an audit requirement that an encrypted key be made available without exposing the plaintext copy of that key.

    ", - "GenerateRandom": "

    Generates an unpredictable byte string.

    ", - "GetKeyPolicy": "

    Retrieves a policy attached to the specified key.

    ", - "GetKeyRotationStatus": "

    Retrieves a Boolean value that indicates whether key rotation is enabled for the specified key.

    ", - "ListAliases": "

    Lists all of the key aliases in the account.

    ", - "ListGrants": "

    List the grants for a specified key.

    ", - "ListKeyPolicies": "

    Retrieves a list of policies attached to a key.

    ", - "ListKeys": "

    Lists the customer master keys.

    ", - "ListRetirableGrants": "

    Returns a list of all grants for which the grant's RetiringPrincipal matches the one specified.

    A typical use is to list all grants that you are able to retire. To retire a grant, use RetireGrant.

    ", - "PutKeyPolicy": "

    Attaches a key policy to the specified customer master key (CMK).

    For more information about key policies, see Key Policies in the AWS Key Management Service Developer Guide.

    ", - "ReEncrypt": "

    Encrypts data on the server side with a new customer master key without exposing the plaintext of the data on the client side. The data is first decrypted and then encrypted. This operation can also be used to change the encryption context of a ciphertext.

    Unlike other actions, ReEncrypt is authorized twice - once as ReEncryptFrom on the source key and once as ReEncryptTo on the destination key. We therefore recommend that you include the \"action\":\"kms:ReEncrypt*\" statement in your key policies to permit re-encryption from or to the key. The statement is included automatically when you authorize use of the key through the console but must be included manually when you set a policy by using the PutKeyPolicy function.

    ", - "RetireGrant": "

    Retires a grant. You can retire a grant when you're done using it to clean up. You should revoke a grant when you intend to actively deny operations that depend on it. The following are permitted to call this API:

    • The account that created the grant

    • The RetiringPrincipal, if present

    • The GranteePrincipal, if RetireGrant is a grantee operation

    The grant to retire must be identified by its grant token or by a combination of the key ARN and the grant ID. A grant token is a unique variable-length base64-encoded string. A grant ID is a 64 character unique identifier of a grant. Both are returned by the CreateGrant function.

    ", - "RevokeGrant": "

    Revokes a grant. You can revoke a grant to actively deny operations that depend on it.

    ", - "ScheduleKeyDeletion": "

    Schedules the deletion of a customer master key (CMK). You may provide a waiting period, specified in days, before deletion occurs. If you do not provide a waiting period, the default period of 30 days is used. When this operation is successful, the state of the CMK changes to PendingDeletion. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the CMK. After the waiting period ends, AWS KMS deletes the CMK and all AWS KMS data associated with it, including all aliases that point to it.

    Deleting a CMK is a destructive and potentially dangerous operation. When a CMK is deleted, all data that was encrypted under the CMK is rendered unrecoverable. To restrict the use of a CMK without deleting it, use DisableKey.

    For more information about scheduling a CMK for deletion, see Deleting Customer Master Keys in the AWS Key Management Service Developer Guide.

    ", - "UpdateAlias": "

    Updates an alias to map it to a different key.

    An alias is not a property of a key. Therefore, an alias can be mapped to and unmapped from an existing key without changing the properties of the key.

    An alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). An alias must start with the word \"alias\" followed by a forward slash (alias/). An alias that begins with \"aws\" after the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS).

    The alias and the key it is mapped to must be in the same AWS account and the same region.

    ", - "UpdateKeyDescription": "

    Updates the description of a key.

    " - }, - "shapes": { - "AWSAccountIdType": { - "base": null, - "refs": { - "KeyMetadata$AWSAccountId": "

    The twelve-digit account ID of the AWS account that owns the key.

    " - } - }, - "AliasList": { - "base": null, - "refs": { - "ListAliasesResponse$Aliases": "

    A list of key aliases in the user's account.

    " - } - }, - "AliasListEntry": { - "base": "

    Contains information about an alias.

    ", - "refs": { - "AliasList$member": null - } - }, - "AliasNameType": { - "base": null, - "refs": { - "AliasListEntry$AliasName": "

    String that contains the alias.

    ", - "CreateAliasRequest$AliasName": "

    String that contains the display name. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/AWS\" are reserved.

    ", - "DeleteAliasRequest$AliasName": "

    The alias to be deleted. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/AWS\" are reserved.

    ", - "UpdateAliasRequest$AliasName": "

    String that contains the name of the alias to be modified. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/aws\" are reserved.

    " - } - }, - "AlreadyExistsException": { - "base": "

    The request was rejected because it attempted to create a resource that already exists.

    ", - "refs": { - } - }, - "ArnType": { - "base": null, - "refs": { - "AliasListEntry$AliasArn": "

    String that contains the key ARN.

    ", - "KeyListEntry$KeyArn": "

    ARN of the key.

    ", - "KeyMetadata$Arn": "

    The Amazon Resource Name (ARN) of the key. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.

    " - } - }, - "BooleanType": { - "base": null, - "refs": { - "CreateKeyRequest$BypassPolicyLockoutSafetyCheck": "

    A flag to indicate whether to bypass the key policy lockout safety check.

    Setting this value to true increases the likelihood that the CMK becomes unmanageable. Do not set this value to true indiscriminately.

    For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

    Use this parameter only when you include a policy in the request and you intend to prevent the principal making the request from making a subsequent PutKeyPolicy request on the CMK.

    The default value is false.

    ", - "GetKeyRotationStatusResponse$KeyRotationEnabled": "

    A Boolean value that specifies whether key rotation is enabled.

    ", - "KeyMetadata$Enabled": "

    Specifies whether the key is enabled. When KeyState is Enabled this value is true, otherwise it is false.

    ", - "ListAliasesResponse$Truncated": "

    A flag that indicates whether there are more items in the list. If your results were truncated, you can use the Marker parameter to make a subsequent pagination request to retrieve more items in the list.

    ", - "ListGrantsResponse$Truncated": "

    A flag that indicates whether there are more items in the list. If your results were truncated, you can use the Marker parameter to make a subsequent pagination request to retrieve more items in the list.

    ", - "ListKeyPoliciesResponse$Truncated": "

    A flag that indicates whether there are more items in the list. If your results were truncated, you can use the Marker parameter to make a subsequent pagination request to retrieve more items in the list.

    ", - "ListKeysResponse$Truncated": "

    A flag that indicates whether there are more items in the list. If your results were truncated, you can use the Marker parameter to make a subsequent pagination request to retrieve more items in the list.

    ", - "PutKeyPolicyRequest$BypassPolicyLockoutSafetyCheck": "

    A flag to indicate whether to bypass the key policy lockout safety check.

    Setting this value to true increases the likelihood that the CMK becomes unmanageable. Do not set this value to true indiscriminately.

    For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

    Use this parameter only when you intend to prevent the principal making the request from making a subsequent PutKeyPolicy request on the CMK.

    The default value is false.

    " - } - }, - "CancelKeyDeletionRequest": { - "base": null, - "refs": { - } - }, - "CancelKeyDeletionResponse": { - "base": null, - "refs": { - } - }, - "CiphertextType": { - "base": null, - "refs": { - "DecryptRequest$CiphertextBlob": "

    Ciphertext to be decrypted. The blob includes metadata.

    ", - "EncryptResponse$CiphertextBlob": "

    The encrypted plaintext. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

    ", - "GenerateDataKeyResponse$CiphertextBlob": "

    Ciphertext that contains the encrypted data key. You must store the blob and enough information to reconstruct the encryption context so that the data encrypted by using the key can later be decrypted. You must provide both the ciphertext blob and the encryption context to the Decrypt API to recover the plaintext data key and decrypt the object.

    If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

    ", - "GenerateDataKeyWithoutPlaintextResponse$CiphertextBlob": "

    Ciphertext that contains the wrapped data key. You must store the blob and encryption context so that the key can be used in a future decrypt operation.

    If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

    ", - "ReEncryptRequest$CiphertextBlob": "

    Ciphertext of the data to re-encrypt.

    ", - "ReEncryptResponse$CiphertextBlob": "

    The re-encrypted data. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

    " - } - }, - "CreateAliasRequest": { - "base": null, - "refs": { - } - }, - "CreateGrantRequest": { - "base": null, - "refs": { - } - }, - "CreateGrantResponse": { - "base": null, - "refs": { - } - }, - "CreateKeyRequest": { - "base": null, - "refs": { - } - }, - "CreateKeyResponse": { - "base": null, - "refs": { - } - }, - "DataKeySpec": { - "base": null, - "refs": { - "GenerateDataKeyRequest$KeySpec": "

    Value that identifies the encryption algorithm and key size to generate a data key for. Currently this can be AES_128 or AES_256.

    ", - "GenerateDataKeyWithoutPlaintextRequest$KeySpec": "

    Value that identifies the encryption algorithm and key size. Currently this can be AES_128 or AES_256.

    " - } - }, - "DateType": { - "base": null, - "refs": { - "GrantListEntry$CreationDate": "

    The date and time when the grant was created.

    ", - "KeyMetadata$CreationDate": "

    The date and time when the key was created.

    ", - "KeyMetadata$DeletionDate": "

    The date and time after which AWS KMS deletes the customer master key (CMK). This value is present only when KeyState is PendingDeletion, otherwise this value is null.

    ", - "ScheduleKeyDeletionResponse$DeletionDate": "

    The date and time after which AWS KMS deletes the customer master key (CMK).

    " - } - }, - "DecryptRequest": { - "base": null, - "refs": { - } - }, - "DecryptResponse": { - "base": null, - "refs": { - } - }, - "DeleteAliasRequest": { - "base": null, - "refs": { - } - }, - "DependencyTimeoutException": { - "base": "

    The system timed out while trying to fulfill the request. The request can be retried.

    ", - "refs": { - } - }, - "DescribeKeyRequest": { - "base": null, - "refs": { - } - }, - "DescribeKeyResponse": { - "base": null, - "refs": { - } - }, - "DescriptionType": { - "base": null, - "refs": { - "CreateKeyRequest$Description": "

    A description of the CMK.

    Use a description that helps you decide whether the CMK is appropriate for a task.

    ", - "KeyMetadata$Description": "

    The friendly description of the key.

    ", - "UpdateKeyDescriptionRequest$Description": "

    New description for the key.

    " - } - }, - "DisableKeyRequest": { - "base": null, - "refs": { - } - }, - "DisableKeyRotationRequest": { - "base": null, - "refs": { - } - }, - "DisabledException": { - "base": "

    The request was rejected because the specified key was marked as disabled.

    ", - "refs": { - } - }, - "EnableKeyRequest": { - "base": null, - "refs": { - } - }, - "EnableKeyRotationRequest": { - "base": null, - "refs": { - } - }, - "EncryptRequest": { - "base": null, - "refs": { - } - }, - "EncryptResponse": { - "base": null, - "refs": { - } - }, - "EncryptionContextKey": { - "base": null, - "refs": { - "EncryptionContextType$key": null - } - }, - "EncryptionContextType": { - "base": null, - "refs": { - "DecryptRequest$EncryptionContext": "

    The encryption context. If this was specified in the Encrypt function, it must be specified here or the decryption operation will fail. For more information, see Encryption Context.

    ", - "EncryptRequest$EncryptionContext": "

    Name/value pair that specifies the encryption context to be used for authenticated encryption. If used here, the same value must be supplied to the Decrypt API or decryption will fail. For more information, see Encryption Context.

    ", - "GenerateDataKeyRequest$EncryptionContext": "

    Name/value pair that contains additional data to be authenticated during the encryption and decryption processes that use the key. This value is logged by AWS CloudTrail to provide context around the data encrypted by the key.

    ", - "GenerateDataKeyWithoutPlaintextRequest$EncryptionContext": "

    Name:value pair that contains additional data to be authenticated during the encryption and decryption processes.

    ", - "GrantConstraints$EncryptionContextSubset": "

    Contains a list of key-value pairs, a subset of which must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list or is a subset of this list, the grant allows the operation. Otherwise, the operation is not allowed.

    ", - "GrantConstraints$EncryptionContextEquals": "

    Contains a list of key-value pairs that must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list, the grant allows the operation. Otherwise, the operation is not allowed.

    ", - "ReEncryptRequest$SourceEncryptionContext": "

    Encryption context used to encrypt and decrypt the data specified in the CiphertextBlob parameter.

    ", - "ReEncryptRequest$DestinationEncryptionContext": "

    Encryption context to be used when the data is re-encrypted.

    " - } - }, - "EncryptionContextValue": { - "base": null, - "refs": { - "EncryptionContextType$value": null - } - }, - "ErrorMessageType": { - "base": null, - "refs": { - "AlreadyExistsException$message": null, - "DependencyTimeoutException$message": null, - "DisabledException$message": null, - "InvalidAliasNameException$message": null, - "InvalidArnException$message": null, - "InvalidCiphertextException$message": null, - "InvalidGrantIdException$message": null, - "InvalidGrantTokenException$message": null, - "InvalidKeyUsageException$message": null, - "InvalidMarkerException$message": null, - "KMSInternalException$message": null, - "KMSInvalidStateException$message": null, - "KeyUnavailableException$message": null, - "LimitExceededException$message": null, - "MalformedPolicyDocumentException$message": null, - "NotFoundException$message": null, - "UnsupportedOperationException$message": null - } - }, - "GenerateDataKeyRequest": { - "base": null, - "refs": { - } - }, - "GenerateDataKeyResponse": { - "base": null, - "refs": { - } - }, - "GenerateDataKeyWithoutPlaintextRequest": { - "base": null, - "refs": { - } - }, - "GenerateDataKeyWithoutPlaintextResponse": { - "base": null, - "refs": { - } - }, - "GenerateRandomRequest": { - "base": null, - "refs": { - } - }, - "GenerateRandomResponse": { - "base": null, - "refs": { - } - }, - "GetKeyPolicyRequest": { - "base": null, - "refs": { - } - }, - "GetKeyPolicyResponse": { - "base": null, - "refs": { - } - }, - "GetKeyRotationStatusRequest": { - "base": null, - "refs": { - } - }, - "GetKeyRotationStatusResponse": { - "base": null, - "refs": { - } - }, - "GrantConstraints": { - "base": "

    A structure for specifying the conditions under which the operations permitted by the grant are allowed.

    You can use this structure to allow the operations permitted by the grant only when a specified encryption context is present. For more information about encryption context, see Encryption Context in the AWS Key Management Service Developer Guide.

    ", - "refs": { - "CreateGrantRequest$Constraints": "

    The conditions under which the operations permitted by the grant are allowed.

    You can use this value to allow the operations permitted by the grant only when a specified encryption context is present. For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

    ", - "GrantListEntry$Constraints": "

    The conditions under which the grant's operations are allowed.

    " - } - }, - "GrantIdType": { - "base": null, - "refs": { - "CreateGrantResponse$GrantId": "

    The unique identifier for the grant.

    You can use the GrantId in a subsequent RetireGrant or RevokeGrant operation.

    ", - "GrantListEntry$GrantId": "

    The unique identifier for the grant.

    ", - "RetireGrantRequest$GrantId": "

    Unique identifier of the grant to be retired. The grant ID is returned by the CreateGrant function.

    • Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123

    ", - "RevokeGrantRequest$GrantId": "

    Identifier of the grant to be revoked.

    " - } - }, - "GrantList": { - "base": null, - "refs": { - "ListGrantsResponse$Grants": "

    A list of grants.

    " - } - }, - "GrantListEntry": { - "base": "

    Contains information about an entry in a list of grants.

    ", - "refs": { - "GrantList$member": null - } - }, - "GrantNameType": { - "base": null, - "refs": { - "CreateGrantRequest$Name": "

    A friendly name for identifying the grant. Use this value to prevent unintended creation of duplicate grants when retrying this request.

    When this value is absent, all CreateGrant requests result in a new grant with a unique GrantId even if all the supplied parameters are identical. This can result in unintended duplicates when you retry the CreateGrant request.

    When this value is present, you can retry a CreateGrant request with identical parameters; if the grant already exists, the original GrantId is returned without creating a new grant. Note that the returned grant token is unique with every CreateGrant request, even when a duplicate GrantId is returned. All grant tokens obtained in this way can be used interchangeably.

    ", - "GrantListEntry$Name": "

    The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null.

    " - } - }, - "GrantOperation": { - "base": null, - "refs": { - "GrantOperationList$member": null - } - }, - "GrantOperationList": { - "base": null, - "refs": { - "CreateGrantRequest$Operations": "

    A list of operations that the grant permits. The list can contain any combination of one or more of the following values:

    ", - "GrantListEntry$Operations": "

    The list of operations permitted by the grant.

    " - } - }, - "GrantTokenList": { - "base": null, - "refs": { - "CreateGrantRequest$GrantTokens": "

    A list of grant tokens.

    For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

    ", - "DecryptRequest$GrantTokens": "

    A list of grant tokens.

    For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

    ", - "DescribeKeyRequest$GrantTokens": "

    A list of grant tokens.

    For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

    ", - "EncryptRequest$GrantTokens": "

    A list of grant tokens.

    For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

    ", - "GenerateDataKeyRequest$GrantTokens": "

    A list of grant tokens.

    For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

    ", - "GenerateDataKeyWithoutPlaintextRequest$GrantTokens": "

    A list of grant tokens.

    For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

    ", - "ReEncryptRequest$GrantTokens": "

    A list of grant tokens.

    For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

    " - } - }, - "GrantTokenType": { - "base": null, - "refs": { - "CreateGrantResponse$GrantToken": "

    The grant token.

    For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

    ", - "GrantTokenList$member": null, - "RetireGrantRequest$GrantToken": "

    Token that identifies the grant to be retired.

    " - } - }, - "InvalidAliasNameException": { - "base": "

    The request was rejected because the specified alias name is not valid.

    ", - "refs": { - } - }, - "InvalidArnException": { - "base": "

    The request was rejected because a specified ARN was not valid.

    ", - "refs": { - } - }, - "InvalidCiphertextException": { - "base": "

    The request was rejected because the specified ciphertext has been corrupted or is otherwise invalid.

    ", - "refs": { - } - }, - "InvalidGrantIdException": { - "base": "

    The request was rejected because the specified GrantId is not valid.

    ", - "refs": { - } - }, - "InvalidGrantTokenException": { - "base": "

    The request was rejected because a grant token provided as part of the request is invalid.

    ", - "refs": { - } - }, - "InvalidKeyUsageException": { - "base": "

    The request was rejected because the specified KeySpec parameter is not valid. The currently supported value is ENCRYPT/DECRYPT.

    ", - "refs": { - } - }, - "InvalidMarkerException": { - "base": "

    The request was rejected because the marker that specifies where pagination should next begin is not valid.

    ", - "refs": { - } - }, - "KMSInternalException": { - "base": "

    The request was rejected because an internal exception occurred. The request can be retried.

    ", - "refs": { - } - }, - "KMSInvalidStateException": { - "base": "

    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 customer master key (CMK), see How Key State Affects the Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

    ", - "refs": { - } - }, - "KeyIdType": { - "base": null, - "refs": { - "AliasListEntry$TargetKeyId": "

    String that contains the key identifier pointed to by the alias.

    ", - "CancelKeyDeletionRequest$KeyId": "

    The unique identifier for the customer master key (CMK) for which to cancel deletion.

    To specify this value, use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

    • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

    • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

    To obtain the unique key ID and key ARN for a given CMK, use ListKeys or DescribeKey.

    ", - "CancelKeyDeletionResponse$KeyId": "

    The unique identifier of the master key for which deletion is canceled.

    ", - "CreateAliasRequest$TargetKeyId": "

    An identifier of the key for which you are creating the alias. This value cannot be another alias but can be a globally unique identifier or a fully specified ARN to a key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    ", - "CreateGrantRequest$KeyId": "

    The unique identifier for the customer master key (CMK) that the grant applies to.

    To specify this value, use the globally unique key ID or the Amazon Resource Name (ARN) of the key. Examples:

    • Globally unique key ID: 12345678-1234-1234-1234-123456789012

    • Key ARN: arn:aws:kms:us-west-2:123456789012:key/12345678-1234-1234-1234-123456789012

    ", - "DecryptResponse$KeyId": "

    ARN of the key used to perform the decryption. This value is returned if no errors are encountered during the operation.

    ", - "DescribeKeyRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    • Alias Name Example - alias/MyAliasName

    ", - "DisableKeyRequest$KeyId": "

    A unique identifier for the CMK.

    Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example:

    • Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab

    • ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

    ", - "DisableKeyRotationRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    ", - "EnableKeyRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    ", - "EnableKeyRotationRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    ", - "EncryptRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    • Alias Name Example - alias/MyAliasName

    ", - "EncryptResponse$KeyId": "

    The ID of the key used during encryption.

    ", - "GenerateDataKeyRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    • Alias Name Example - alias/MyAliasName

    ", - "GenerateDataKeyResponse$KeyId": "

    System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key.

    ", - "GenerateDataKeyWithoutPlaintextRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    • Alias Name Example - alias/MyAliasName

    ", - "GenerateDataKeyWithoutPlaintextResponse$KeyId": "

    System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key.

    ", - "GetKeyPolicyRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    ", - "GetKeyRotationStatusRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    ", - "GrantListEntry$KeyId": "

    The unique identifier for the customer master key (CMK) to which the grant applies.

    ", - "KeyListEntry$KeyId": "

    Unique identifier of the key.

    ", - "KeyMetadata$KeyId": "

    The globally unique identifier for the key.

    ", - "ListGrantsRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    ", - "ListKeyPoliciesRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    • Alias Name Example - alias/MyAliasName

    ", - "PutKeyPolicyRequest$KeyId": "

    A unique identifier for the CMK.

    Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example:

    • Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab

    • ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

    ", - "ReEncryptRequest$DestinationKeyId": "

    A unique identifier for the customer master key used to re-encrypt the data. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    • Alias Name Example - alias/MyAliasName

    ", - "ReEncryptResponse$SourceKeyId": "

    Unique identifier of the key used to originally encrypt the data.

    ", - "ReEncryptResponse$KeyId": "

    Unique identifier of the key used to re-encrypt the data.

    ", - "RetireGrantRequest$KeyId": "

    A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or a fully specified ARN of the key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    ", - "RevokeGrantRequest$KeyId": "

    A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    ", - "ScheduleKeyDeletionRequest$KeyId": "

    The unique identifier for the customer master key (CMK) to delete.

    To specify this value, use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:

    • Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

    • Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

    To obtain the unique key ID and key ARN for a given CMK, use ListKeys or DescribeKey.

    ", - "ScheduleKeyDeletionResponse$KeyId": "

    The unique identifier of the customer master key (CMK) for which deletion is scheduled.

    ", - "UpdateAliasRequest$TargetKeyId": "

    Unique identifier of the customer master key to be mapped to the alias. This value can be a globally unique identifier or the fully specified ARN of a key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    You can call ListAliases to verify that the alias is mapped to the correct TargetKeyId.

    ", - "UpdateKeyDescriptionRequest$KeyId": "

    A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

    • Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

    • Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012

    " - } - }, - "KeyList": { - "base": null, - "refs": { - "ListKeysResponse$Keys": "

    A list of keys.

    " - } - }, - "KeyListEntry": { - "base": "

    Contains information about each entry in the key list.

    ", - "refs": { - "KeyList$member": null - } - }, - "KeyMetadata": { - "base": "

    Contains metadata about a customer master key (CMK).

    This data type is used as a response element for the CreateKey and DescribeKey operations.

    ", - "refs": { - "CreateKeyResponse$KeyMetadata": "

    Metadata associated with the CMK.

    ", - "DescribeKeyResponse$KeyMetadata": "

    Metadata associated with the key.

    " - } - }, - "KeyState": { - "base": null, - "refs": { - "KeyMetadata$KeyState": "

    The state of the customer master key (CMK).

    For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

    " - } - }, - "KeyUnavailableException": { - "base": "

    The request was rejected because the key was not available. The request can be retried.

    ", - "refs": { - } - }, - "KeyUsageType": { - "base": null, - "refs": { - "CreateKeyRequest$KeyUsage": "

    The intended use of the CMK.

    You can use CMKs only for symmetric encryption and decryption.

    ", - "KeyMetadata$KeyUsage": "

    The cryptographic operations for which you can use the key. Currently the only allowed value is ENCRYPT_DECRYPT, which means you can use the key for the Encrypt and Decrypt operations.

    " - } - }, - "LimitExceededException": { - "base": "

    The request was rejected because a limit was exceeded. For more information, see Limits in the AWS Key Management Service Developer Guide.

    ", - "refs": { - } - }, - "LimitType": { - "base": null, - "refs": { - "ListAliasesRequest$Limit": "

    When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

    This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

    ", - "ListGrantsRequest$Limit": "

    When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

    This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

    ", - "ListKeyPoliciesRequest$Limit": "

    When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

    This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.

    Currently only 1 policy can be attached to a key.

    ", - "ListKeysRequest$Limit": "

    When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

    This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.

    ", - "ListRetirableGrantsRequest$Limit": "

    When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

    This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

    " - } - }, - "ListAliasesRequest": { - "base": null, - "refs": { - } - }, - "ListAliasesResponse": { - "base": null, - "refs": { - } - }, - "ListGrantsRequest": { - "base": null, - "refs": { - } - }, - "ListGrantsResponse": { - "base": null, - "refs": { - } - }, - "ListKeyPoliciesRequest": { - "base": null, - "refs": { - } - }, - "ListKeyPoliciesResponse": { - "base": null, - "refs": { - } - }, - "ListKeysRequest": { - "base": null, - "refs": { - } - }, - "ListKeysResponse": { - "base": null, - "refs": { - } - }, - "ListRetirableGrantsRequest": { - "base": null, - "refs": { - } - }, - "MalformedPolicyDocumentException": { - "base": "

    The request was rejected because the specified policy is not syntactically or semantically correct.

    ", - "refs": { - } - }, - "MarkerType": { - "base": null, - "refs": { - "ListAliasesRequest$Marker": "

    Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

    ", - "ListAliasesResponse$NextMarker": "

    When Truncated is true, this value is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListGrantsRequest$Marker": "

    Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

    ", - "ListGrantsResponse$NextMarker": "

    When Truncated is true, this value is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListKeyPoliciesRequest$Marker": "

    Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

    ", - "ListKeyPoliciesResponse$NextMarker": "

    When Truncated is true, this value is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListKeysRequest$Marker": "

    Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

    ", - "ListKeysResponse$NextMarker": "

    When Truncated is true, this value is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    ", - "ListRetirableGrantsRequest$Marker": "

    Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

    " - } - }, - "NotFoundException": { - "base": "

    The request was rejected because the specified entity or resource could not be found.

    ", - "refs": { - } - }, - "NumberOfBytesType": { - "base": null, - "refs": { - "GenerateDataKeyRequest$NumberOfBytes": "

    Integer that contains the number of bytes to generate. Common values are 128, 256, 512, and 1024. 1024 is the current limit. We recommend that you use the KeySpec parameter instead.

    ", - "GenerateDataKeyWithoutPlaintextRequest$NumberOfBytes": "

    Integer that contains the number of bytes to generate. Common values are 128, 256, 512, 1024 and so on. We recommend that you use the KeySpec parameter instead.

    ", - "GenerateRandomRequest$NumberOfBytes": "

    Integer that contains the number of bytes to generate. Common values are 128, 256, 512, 1024 and so on. The current limit is 1024 bytes.

    " - } - }, - "PendingWindowInDaysType": { - "base": null, - "refs": { - "ScheduleKeyDeletionRequest$PendingWindowInDays": "

    The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the customer master key (CMK).

    This value is optional. If you include a value, it must be between 7 and 30, inclusive. If you do not include a value, it defaults to 30.

    " - } - }, - "PlaintextType": { - "base": null, - "refs": { - "DecryptResponse$Plaintext": "

    Decrypted plaintext data. This value may not be returned if the customer master key is not available or if you didn't have permission to use it.

    ", - "EncryptRequest$Plaintext": "

    Data to be encrypted.

    ", - "GenerateDataKeyResponse$Plaintext": "

    Plaintext that contains the data key. Use this for encryption and decryption and then remove it from memory as soon as possible.

    ", - "GenerateRandomResponse$Plaintext": "

    Plaintext that contains the unpredictable byte string.

    " - } - }, - "PolicyNameList": { - "base": null, - "refs": { - "ListKeyPoliciesResponse$PolicyNames": "

    A list of policy names. Currently, there is only one policy and it is named \"Default\".

    " - } - }, - "PolicyNameType": { - "base": null, - "refs": { - "GetKeyPolicyRequest$PolicyName": "

    String that contains the name of the policy. Currently, this must be \"default\". Policy names can be discovered by calling ListKeyPolicies.

    ", - "PolicyNameList$member": null, - "PutKeyPolicyRequest$PolicyName": "

    The name of the key policy.

    This value must be default.

    " - } - }, - "PolicyType": { - "base": null, - "refs": { - "CreateKeyRequest$Policy": "

    The key policy to attach to the CMK.

    If you specify a key policy, it must meet the following criteria:

    • It must allow the principal making the CreateKey request to make a subsequent PutKeyPolicy request on the CMK. This reduces the likelihood that the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

    • The principal(s) specified in the key policy must exist and be visible to AWS KMS. When you create a new AWS principal (for example, an IAM user or role), you might need to enforce a delay before specifying the new principal in a key policy because the new principal might not immediately be visible to AWS KMS. For more information, see Changes that I make are not always immediately visible in the IAM User Guide.

    If you do not specify a policy, AWS KMS attaches a default key policy to the CMK. For more information, see Default Key Policy in the AWS Key Management Service Developer Guide.

    The policy size limit is 32 KiB (32768 bytes).

    ", - "GetKeyPolicyResponse$Policy": "

    A policy document in JSON format.

    ", - "PutKeyPolicyRequest$Policy": "

    The key policy to attach to the CMK.

    The key policy must meet the following criteria:

    • It must allow the principal making the PutKeyPolicy request to make a subsequent PutKeyPolicy request on the CMK. This reduces the likelihood that the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the AWS Key Management Service Developer Guide.

    • The principal(s) specified in the key policy must exist and be visible to AWS KMS. When you create a new AWS principal (for example, an IAM user or role), you might need to enforce a delay before specifying the new principal in a key policy because the new principal might not immediately be visible to AWS KMS. For more information, see Changes that I make are not always immediately visible in the IAM User Guide.

    The policy size limit is 32 KiB (32768 bytes).

    " - } - }, - "PrincipalIdType": { - "base": null, - "refs": { - "CreateGrantRequest$GranteePrincipal": "

    The principal that is given permission to perform the operations that the grant permits.

    To specify the principal, use the Amazon Resource Name (ARN) of an AWS principal. Valid AWS principals include AWS accounts (root), IAM users, federated users, and assumed role users. For examples of the ARN syntax to use for specifying a principal, see AWS Identity and Access Management (IAM) in the Example ARNs section of the AWS General Reference.

    ", - "CreateGrantRequest$RetiringPrincipal": "

    The principal that is given permission to retire the grant by using RetireGrant operation.

    To specify the principal, use the Amazon Resource Name (ARN) of an AWS principal. Valid AWS principals include AWS accounts (root), IAM users, federated users, and assumed role users. For examples of the ARN syntax to use for specifying a principal, see AWS Identity and Access Management (IAM) in the Example ARNs section of the AWS General Reference.

    ", - "GrantListEntry$GranteePrincipal": "

    The principal that receives the grant's permissions.

    ", - "GrantListEntry$RetiringPrincipal": "

    The principal that can retire the grant.

    ", - "GrantListEntry$IssuingAccount": "

    The AWS account under which the grant was issued.

    ", - "ListRetirableGrantsRequest$RetiringPrincipal": "

    The retiring principal for which to list grants.

    To specify the retiring principal, use the Amazon Resource Name (ARN) of an AWS principal. Valid AWS principals include AWS accounts (root), IAM users, federated users, and assumed role users. For examples of the ARN syntax for specifying a principal, see AWS Identity and Access Management (IAM) in the Example ARNs section of the Amazon Web Services General Reference.

    " - } - }, - "PutKeyPolicyRequest": { - "base": null, - "refs": { - } - }, - "ReEncryptRequest": { - "base": null, - "refs": { - } - }, - "ReEncryptResponse": { - "base": null, - "refs": { - } - }, - "RetireGrantRequest": { - "base": null, - "refs": { - } - }, - "RevokeGrantRequest": { - "base": null, - "refs": { - } - }, - "ScheduleKeyDeletionRequest": { - "base": null, - "refs": { - } - }, - "ScheduleKeyDeletionResponse": { - "base": null, - "refs": { - } - }, - "UnsupportedOperationException": { - "base": "

    The request was rejected because a specified parameter is not supported.

    ", - "refs": { - } - }, - "UpdateAliasRequest": { - "base": null, - "refs": { - } - }, - "UpdateKeyDescriptionRequest": { - "base": null, - "refs": { - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/docs-2.json deleted file mode 100644 index 14aea9167..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/docs-2.json +++ /dev/null @@ -1,716 +0,0 @@ -{ - "version": "2.0", - "service": "AWS Lambda

    Overview

    This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, go to What is AWS Lambda, and for information about how the service works, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide.

    ", - "operations": { - "AddPermission": "

    Adds a permission to the resource policy associated with the specified AWS Lambda function. You use resource policies to grant permissions to event sources that use push model. In a push model, event sources (such as Amazon S3 and custom applications) invoke your Lambda function. Each permission you add to the resource policy allows an event source, permission to invoke the Lambda function.

    For information about the push model, see AWS Lambda: How it Works.

    If you are using versioning, the permissions you add are specific to the Lambda function version or alias you specify in the AddPermission request via the Qualifier parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

    This operation requires permission for the lambda:AddPermission action.

    ", - "CreateAlias": "

    Creates an alias that points to the specified Lambda function version. For more information, see Introduction to AWS Lambda Aliases.

    Alias names are unique for a given function.

    This requires permission for the lambda:CreateAlias action.

    ", - "CreateEventSourceMapping": "

    Identifies a stream as an event source for a Lambda function. It can be either an Amazon Kinesis stream or an Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream.

    This association between a stream source and a Lambda function is called the event source mapping.

    This event source mapping is relevant only in the AWS Lambda pull model, where AWS Lambda invokes the function. For more information, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide.

    You provide mapping information (for example, which stream to read from and which Lambda function to invoke) in the request body.

    Each event source, such as an Amazon Kinesis or a DynamoDB stream, can be associated with multiple AWS Lambda function. A given Lambda function can be associated with multiple AWS event sources.

    If you are using versioning, you can specify a specific function version or an alias via the function name parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

    This operation requires permission for the lambda:CreateEventSourceMapping action.

    ", - "CreateFunction": "

    Creates a new Lambda function. The function metadata is created from the request parameters, and the code for the function is provided by a .zip file in the request body. If the function name already exists, the operation will fail. Note that the function name is case-sensitive.

    If you are using versioning, you can also publish a version of the Lambda function you are creating using the Publish parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

    This operation requires permission for the lambda:CreateFunction action.

    ", - "DeleteAlias": "

    Deletes the specified Lambda function alias. For more information, see Introduction to AWS Lambda Aliases.

    This requires permission for the lambda:DeleteAlias action.

    ", - "DeleteEventSourceMapping": "

    Removes an event source mapping. This means AWS Lambda will no longer invoke the function for events in the associated source.

    This operation requires permission for the lambda:DeleteEventSourceMapping action.

    ", - "DeleteFunction": "

    Deletes the specified Lambda function code and configuration.

    If you are using the versioning feature and you don't specify a function version in your DeleteFunction request, AWS Lambda will delete the function, including all its versions, and any aliases pointing to the function versions. To delete a specific function version, you must provide the function version via the Qualifier parameter. For information about function versioning, see AWS Lambda Function Versioning and Aliases.

    When you delete a function the associated resource policy is also deleted. You will need to delete the event source mappings explicitly.

    This operation requires permission for the lambda:DeleteFunction action.

    ", - "GetAlias": "

    Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see Introduction to AWS Lambda Aliases.

    This requires permission for the lambda:GetAlias action.

    ", - "GetEventSourceMapping": "

    Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).

    This operation requires permission for the lambda:GetEventSourceMapping action.

    ", - "GetFunction": "

    Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.

    Using the optional Qualifier parameter, you can specify a specific function version for which you want this information. If you don't specify this parameter, the API uses unqualified function ARN which return information about the $LATEST version of the Lambda function. For more information, see AWS Lambda Function Versioning and Aliases.

    This operation requires permission for the lambda:GetFunction action.

    ", - "GetFunctionConfiguration": "

    Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.

    If you are using the versioning feature, you can retrieve this information for a specific function version by using the optional Qualifier parameter and specifying the function version or alias that points to it. If you don't provide it, the API returns information about the $LATEST version of the function. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

    This operation requires permission for the lambda:GetFunctionConfiguration operation.

    ", - "GetPolicy": "

    Returns the resource policy associated with the specified Lambda function.

    If you are using the versioning feature, you can get the resource policy associated with the specific Lambda function version or alias by specifying the version or alias name using the Qualifier parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

    For information about adding permissions, see AddPermission.

    You need permission for the lambda:GetPolicy action.

    ", - "Invoke": "

    Invokes a specific Lambda function.

    If you are using the versioning feature, you can invoke the specific function version by providing function version or alias name that is pointing to the function version using the Qualifier parameter in the request. If you don't provide the Qualifier parameter, the $LATEST version of the Lambda function is invoked. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

    This operation requires permission for the lambda:InvokeFunction action.

    ", - "InvokeAsync": "This API is deprecated. We recommend you use Invoke API (see Invoke).

    Submits an invocation request to AWS Lambda. Upon receiving the request, Lambda executes the specified function asynchronously. To see the logs generated by the Lambda function execution, see the CloudWatch Logs console.

    This operation requires permission for the lambda:InvokeFunction action.

    ", - "ListAliases": "

    Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see Introduction to AWS Lambda Aliases.

    This requires permission for the lambda:ListAliases action.

    ", - "ListEventSourceMappings": "

    Returns a list of event source mappings you created using the CreateEventSourceMapping (see CreateEventSourceMapping).

    For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.

    If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function version or an alias as described in the FunctionName parameter. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

    This operation requires permission for the lambda:ListEventSourceMappings action.

    ", - "ListFunctions": "

    Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function.

    This operation requires permission for the lambda:ListFunctions action.

    If you are using versioning feature, the response returns list of $LATEST versions of your functions. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

    ", - "ListVersionsByFunction": "

    List all versions of a function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

    ", - "PublishVersion": "

    Publishes a version of your function from the current snapshot of $LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from $LATEST and publishes a new version. The code and configuration cannot be modified after publication. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

    ", - "RemovePermission": "

    You can remove individual permissions from an resource policy associated with a Lambda function by providing a statement ID that you provided when you added the permission.

    If you are using versioning, the permissions you remove are specific to the Lambda function version or alias you specify in the AddPermission request via the Qualifier parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

    Note that removal of a permission will cause an active event source to lose permission to the function.

    You need permission for the lambda:RemovePermission action.

    ", - "UpdateAlias": "

    Using this API you can update the function version to which the alias points and the alias description. For more information, see Introduction to AWS Lambda Aliases.

    This requires permission for the lambda:UpdateAlias action.

    ", - "UpdateEventSourceMapping": "

    You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping.

    If you are using the versioning feature, you can update the event source mapping to map to a specific Lambda function version or alias as described in the FunctionName parameter. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

    If you disable the event source mapping, AWS Lambda stops polling. If you enable again, it will resume polling from the time it had stopped polling, so you don't lose processing of any records. However, if you delete event source mapping and create it again, it will reset.

    This operation requires permission for the lambda:UpdateEventSourceMapping action.

    ", - "UpdateFunctionCode": "

    Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration.

    If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

    This operation requires permission for the lambda:UpdateFunctionCode action.

    ", - "UpdateFunctionConfiguration": "

    Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function's code.

    If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

    This operation requires permission for the lambda:UpdateFunctionConfiguration action.

    " - }, - "shapes": { - "Action": { - "base": null, - "refs": { - "AddPermissionRequest$Action": "

    The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with lambda: followed by the API name (see Operations). For example, lambda:CreateFunction. You can use wildcard (lambda:*) to grant permission for all AWS Lambda actions.

    " - } - }, - "AddPermissionRequest": { - "base": null, - "refs": { - } - }, - "AddPermissionResponse": { - "base": null, - "refs": { - } - }, - "Alias": { - "base": null, - "refs": { - "AliasConfiguration$Name": "

    Alias name.

    ", - "CreateAliasRequest$Name": "

    Name for the alias you are creating.

    ", - "DeleteAliasRequest$Name": "

    Name of the alias to delete.

    ", - "GetAliasRequest$Name": "

    Name of the alias for which you want to retrieve information.

    ", - "UpdateAliasRequest$Name": "

    The alias name.

    " - } - }, - "AliasConfiguration": { - "base": "

    Provides configuration information about a Lambda function version alias.

    ", - "refs": { - "AliasList$member": null - } - }, - "AliasList": { - "base": null, - "refs": { - "ListAliasesResponse$Aliases": "

    A list of aliases.

    " - } - }, - "Arn": { - "base": null, - "refs": { - "AddPermissionRequest$SourceArn": "

    This is optional; however, when granting Amazon S3 permission to invoke your function, you should specify this field with the bucket Amazon Resource Name (ARN) as its value. This ensures that only events generated from the specified bucket can invoke the function.

    If you add a permission for the Amazon S3 principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can send events to invoke your Lambda function from Amazon S3.", - "CreateEventSourceMappingRequest$EventSourceArn": "

    The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on the BatchSize. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.

    ", - "EventSourceMappingConfiguration$EventSourceArn": "

    The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source of events.

    ", - "ListEventSourceMappingsRequest$EventSourceArn": "

    The Amazon Resource Name (ARN) of the Amazon Kinesis stream.

    " - } - }, - "BatchSize": { - "base": null, - "refs": { - "CreateEventSourceMappingRequest$BatchSize": "

    The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. The default is 100 records.

    ", - "EventSourceMappingConfiguration$BatchSize": "

    The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.

    ", - "UpdateEventSourceMappingRequest$BatchSize": "

    The maximum number of stream records that can be sent to your Lambda function for a single invocation.

    " - } - }, - "Blob": { - "base": null, - "refs": { - "FunctionCode$ZipFile": "

    A zip file containing your deployment package. If you are using the API directly, the zip file must be base64-encoded (if you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you). For more information about creating a .zip file, go to Execution Permissions in the AWS Lambda Developer Guide.

    ", - "InvocationRequest$Payload": "

    JSON that you want to provide to your Lambda function as input.

    ", - "InvocationResponse$Payload": "

    It is the JSON representation of the object returned by the Lambda function. In This is present only if the invocation type is RequestResponse.

    In the event of a function error this field contains a message describing the error. For the Handled errors the Lambda function will report this message. For Unhandled errors AWS Lambda reports the message.

    ", - "UpdateFunctionCodeRequest$ZipFile": "

    Based64-encoded .zip file containing your packaged source code.

    " - } - }, - "BlobStream": { - "base": null, - "refs": { - "InvokeAsyncRequest$InvokeArgs": "

    JSON that you want to provide to your Lambda function as input.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "CreateFunctionRequest$Publish": "

    This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.

    ", - "UpdateFunctionCodeRequest$Publish": "

    This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.

    " - } - }, - "CodeStorageExceededException": { - "base": "

    You have exceeded your maximum total code size per account. Limits

    ", - "refs": { - } - }, - "CreateAliasRequest": { - "base": null, - "refs": { - } - }, - "CreateEventSourceMappingRequest": { - "base": null, - "refs": { - } - }, - "CreateFunctionRequest": { - "base": null, - "refs": { - } - }, - "Date": { - "base": null, - "refs": { - "EventSourceMappingConfiguration$LastModified": "

    The UTC time string indicating the last time the event mapping was updated.

    " - } - }, - "DeleteAliasRequest": { - "base": null, - "refs": { - } - }, - "DeleteEventSourceMappingRequest": { - "base": null, - "refs": { - } - }, - "DeleteFunctionRequest": { - "base": null, - "refs": { - } - }, - "Description": { - "base": null, - "refs": { - "AliasConfiguration$Description": "

    Alias description.

    ", - "CreateAliasRequest$Description": "

    Description of the alias.

    ", - "CreateFunctionRequest$Description": "

    A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.

    ", - "FunctionConfiguration$Description": "

    The user-provided description.

    ", - "PublishVersionRequest$Description": "

    The description for the version you are publishing. If not provided, AWS Lambda copies the description from the $LATEST version.

    ", - "UpdateAliasRequest$Description": "

    You can change the description of the alias using this parameter.

    ", - "UpdateFunctionConfigurationRequest$Description": "

    A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.

    " - } - }, - "EC2AccessDeniedException": { - "base": null, - "refs": { - } - }, - "EC2ThrottledException": { - "base": "

    AWS Lambda was throttled by Amazon EC2 during Lambda function initiatization using the execution role provided for the Lambda function.

    ", - "refs": { - } - }, - "EC2UnexpectedException": { - "base": "

    AWS Lambda received an unexpected EC2 client exception while setting up for the Lambda function.

    ", - "refs": { - } - }, - "ENILimitReachedException": { - "base": "

    AWS Lambda was not able to create an Elastic Network Interface (ENI) in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached.

    ", - "refs": { - } - }, - "Enabled": { - "base": null, - "refs": { - "CreateEventSourceMappingRequest$Enabled": "

    Indicates whether AWS Lambda should begin polling the event source. By default, Enabled is true.

    ", - "UpdateEventSourceMappingRequest$Enabled": "

    Specifies whether AWS Lambda should actively poll the stream or not. If disabled, AWS Lambda will not poll the stream.

    " - } - }, - "EventSourceMappingConfiguration": { - "base": "

    Describes mapping between an Amazon Kinesis stream and a Lambda function.

    ", - "refs": { - "EventSourceMappingsList$member": null - } - }, - "EventSourceMappingsList": { - "base": null, - "refs": { - "ListEventSourceMappingsResponse$EventSourceMappings": "

    An array of EventSourceMappingConfiguration objects.

    " - } - }, - "EventSourcePosition": { - "base": null, - "refs": { - "CreateEventSourceMappingRequest$StartingPosition": "

    The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.

    " - } - }, - "EventSourceToken": { - "base": null, - "refs": { - "AddPermissionRequest$EventSourceToken": null - } - }, - "FunctionArn": { - "base": null, - "refs": { - "AliasConfiguration$AliasArn": "

    Lambda function ARN that is qualified using the alias name as the suffix. For example, if you create an alias called BETA that points to a helloworld function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA.

    ", - "EventSourceMappingConfiguration$FunctionArn": "

    The Lambda function to invoke when AWS Lambda detects an event on the stream.

    ", - "FunctionConfiguration$FunctionArn": "

    The Amazon Resource Name (ARN) assigned to the function.

    " - } - }, - "FunctionCode": { - "base": "

    The code for the Lambda function.

    ", - "refs": { - "CreateFunctionRequest$Code": "

    The code for the Lambda function.

    " - } - }, - "FunctionCodeLocation": { - "base": "

    The object for the Lambda function location.

    ", - "refs": { - "GetFunctionResponse$Code": null - } - }, - "FunctionConfiguration": { - "base": "

    A complex type that describes function metadata.

    ", - "refs": { - "FunctionList$member": null, - "GetFunctionResponse$Configuration": null - } - }, - "FunctionList": { - "base": null, - "refs": { - "ListFunctionsResponse$Functions": "

    A list of Lambda functions.

    ", - "ListVersionsByFunctionResponse$Versions": "

    A list of Lambda function versions.

    " - } - }, - "FunctionName": { - "base": null, - "refs": { - "AddPermissionRequest$FunctionName": "

    Name of the Lambda function whose resource policy you are updating by adding a new permission.

    You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "CreateAliasRequest$FunctionName": "

    Name of the Lambda function for which you want to create an alias.

    ", - "CreateEventSourceMappingRequest$FunctionName": "

    The Lambda function to invoke when AWS Lambda detects an event on the stream.

    You can specify the function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).

    If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see AWS Lambda Function Versioning and Aliases

    AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, account-id:Thumbnail).

    Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "CreateFunctionRequest$FunctionName": "

    The name you want to assign to the function you are uploading. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as Invoke.

    ", - "DeleteAliasRequest$FunctionName": "

    The Lambda function name for which the alias is created. Deleting an alias does not delete the function version to which it is pointing.

    ", - "DeleteFunctionRequest$FunctionName": "

    The Lambda function to delete.

    You can specify the function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "FunctionConfiguration$FunctionName": "

    The name of the function.

    ", - "GetAliasRequest$FunctionName": "

    Function name for which the alias is created. An alias is a subresource that exists only in the context of an existing Lambda function so you must specify the function name.

    ", - "GetFunctionConfigurationRequest$FunctionName": "

    The name of the Lambda function for which you want to retrieve the configuration information.

    You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "GetFunctionRequest$FunctionName": "

    The Lambda function name.

    You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "GetPolicyRequest$FunctionName": "

    Function name whose resource policy you want to retrieve.

    You can specify the function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "InvocationRequest$FunctionName": "

    The Lambda function name.

    You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "InvokeAsyncRequest$FunctionName": "

    The Lambda function name.

    ", - "ListAliasesRequest$FunctionName": "

    Lambda function name for which the alias is created.

    ", - "ListEventSourceMappingsRequest$FunctionName": "

    The name of the Lambda function.

    You can specify the function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "ListVersionsByFunctionRequest$FunctionName": "

    Function name whose versions to list. You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "PublishVersionRequest$FunctionName": "

    The Lambda function name. You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "RemovePermissionRequest$FunctionName": "

    Lambda function whose resource policy you want to remove a permission from.

    You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "UpdateAliasRequest$FunctionName": "

    The function name for which the alias is created.

    ", - "UpdateEventSourceMappingRequest$FunctionName": "

    The Lambda function to which you want the stream records sent.

    You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail).

    If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see AWS Lambda Function Versioning and Aliases

    Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "UpdateFunctionCodeRequest$FunctionName": "

    The existing Lambda function name whose code you want to replace.

    You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    ", - "UpdateFunctionConfigurationRequest$FunctionName": "

    The name of the Lambda function.

    You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

    " - } - }, - "GetAliasRequest": { - "base": null, - "refs": { - } - }, - "GetEventSourceMappingRequest": { - "base": null, - "refs": { - } - }, - "GetFunctionConfigurationRequest": { - "base": null, - "refs": { - } - }, - "GetFunctionRequest": { - "base": null, - "refs": { - } - }, - "GetFunctionResponse": { - "base": "

    This response contains the object for the Lambda function location (see API_FunctionCodeLocation.

    ", - "refs": { - } - }, - "GetPolicyRequest": { - "base": null, - "refs": { - } - }, - "GetPolicyResponse": { - "base": null, - "refs": { - } - }, - "Handler": { - "base": null, - "refs": { - "CreateFunctionRequest$Handler": "

    The function within your code that Lambda calls to begin execution. For Node.js, it is the module-name.export value in your function. For Java, it can be package.class-name::handler or package.class-name. For more information, see Lambda Function Handler (Java).

    ", - "FunctionConfiguration$Handler": "

    The function Lambda calls to begin executing your function.

    ", - "UpdateFunctionConfigurationRequest$Handler": "

    The function that Lambda calls to begin executing your function. For Node.js, it is the module-name.export value in your function.

    " - } - }, - "HttpStatus": { - "base": null, - "refs": { - "InvokeAsyncResponse$Status": "

    It will be 202 upon success.

    " - } - }, - "Integer": { - "base": null, - "refs": { - "InvocationResponse$StatusCode": "

    The HTTP status code will be in the 200 range for successful request. For the RequestResonse invocation type this status code will be 200. For the Event invocation type this status code will be 202. For the DryRun invocation type the status code will be 204.

    " - } - }, - "InvalidParameterValueException": { - "base": "

    One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration API, that AWS Lambda is unable to assume you will get this exception.

    ", - "refs": { - } - }, - "InvalidRequestContentException": { - "base": "

    The request body could not be parsed as JSON.

    ", - "refs": { - } - }, - "InvalidSecurityGroupIDException": { - "base": "

    The Security Group ID provided in the Lambda function VPC configuration is invalid.

    ", - "refs": { - } - }, - "InvalidSubnetIDException": { - "base": "

    The Subnet ID provided in the Lambda function VPC configuration is invalid.

    ", - "refs": { - } - }, - "InvocationRequest": { - "base": null, - "refs": { - } - }, - "InvocationResponse": { - "base": "

    Upon success, returns an empty response. Otherwise, throws an exception.

    ", - "refs": { - } - }, - "InvocationType": { - "base": null, - "refs": { - "InvocationRequest$InvocationType": "

    By default, the Invoke API assumes RequestResponse invocation type. You can optionally request asynchronous execution by specifying Event as the InvocationType. You can also use this parameter to request AWS Lambda to not execute the function but do some verification, such as if the caller is authorized to invoke the function and if the inputs are valid. You request this by specifying DryRun as the InvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.

    " - } - }, - "InvokeAsyncRequest": { - "base": null, - "refs": { - } - }, - "InvokeAsyncResponse": { - "base": "

    Upon success, it returns empty response. Otherwise, throws an exception.

    ", - "refs": { - } - }, - "ListAliasesRequest": { - "base": null, - "refs": { - } - }, - "ListAliasesResponse": { - "base": null, - "refs": { - } - }, - "ListEventSourceMappingsRequest": { - "base": null, - "refs": { - } - }, - "ListEventSourceMappingsResponse": { - "base": "

    Contains a list of event sources (see API_EventSourceMappingConfiguration)

    ", - "refs": { - } - }, - "ListFunctionsRequest": { - "base": null, - "refs": { - } - }, - "ListFunctionsResponse": { - "base": "

    Contains a list of AWS Lambda function configurations (see FunctionConfiguration.

    ", - "refs": { - } - }, - "ListVersionsByFunctionRequest": { - "base": null, - "refs": { - } - }, - "ListVersionsByFunctionResponse": { - "base": null, - "refs": { - } - }, - "LogType": { - "base": null, - "refs": { - "InvocationRequest$LogType": "

    You can set this optional parameter to Tail in the request only if you specify the InvocationType parameter with value RequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in the x-amz-log-results header.

    " - } - }, - "Long": { - "base": null, - "refs": { - "FunctionConfiguration$CodeSize": "

    The size, in bytes, of the function .zip file you uploaded.

    " - } - }, - "MaxListItems": { - "base": null, - "refs": { - "ListAliasesRequest$MaxItems": "

    Optional integer. Specifies the maximum number of aliases to return in response. This parameter value must be greater than 0.

    ", - "ListEventSourceMappingsRequest$MaxItems": "

    Optional integer. Specifies the maximum number of event sources to return in response. This value must be greater than 0.

    ", - "ListFunctionsRequest$MaxItems": "

    Optional integer. Specifies the maximum number of AWS Lambda functions to return in response. This parameter value must be greater than 0.

    ", - "ListVersionsByFunctionRequest$MaxItems": "

    Optional integer. Specifies the maximum number of AWS Lambda function versions to return in response. This parameter value must be greater than 0.

    " - } - }, - "MemorySize": { - "base": null, - "refs": { - "CreateFunctionRequest$MemorySize": "

    The amount of memory, in MB, your Lambda function is given. Lambda uses this memory size to infer the amount of CPU and memory allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.

    ", - "FunctionConfiguration$MemorySize": "

    The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

    ", - "UpdateFunctionConfigurationRequest$MemorySize": "

    The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.

    " - } - }, - "PolicyLengthExceededException": { - "base": "

    Lambda function access policy is limited to 20 KB.

    ", - "refs": { - } - }, - "Principal": { - "base": null, - "refs": { - "AddPermissionRequest$Principal": "

    The principal who is getting this permission. It can be Amazon S3 service Principal (s3.amazonaws.com) if you want Amazon S3 to invoke the function, an AWS account ID if you are granting cross-account permission, or any valid AWS service principal such as sns.amazonaws.com. For example, you might want to allow a custom application in another AWS account to push events to AWS Lambda by invoking your function.

    " - } - }, - "PublishVersionRequest": { - "base": null, - "refs": { - } - }, - "Qualifier": { - "base": null, - "refs": { - "AddPermissionRequest$Qualifier": "

    You can use this optional query parameter to describe a qualified ARN using a function version or an alias name. The permission will then apply to the specific qualified ARN. For example, if you specify function version 2 as the qualifier, then permission applies only when request is made using qualified function ARN:

    arn:aws:lambda:aws-region:acct-id:function:function-name:2

    If you specify an alias name, for example PROD, then the permission is valid only for requests made using the alias ARN:

    arn:aws:lambda:aws-region:acct-id:function:function-name:PROD

    If the qualifier is not specified, the permission is valid only when requests is made using unqualified function ARN.

    arn:aws:lambda:aws-region:acct-id:function:function-name

    ", - "DeleteFunctionRequest$Qualifier": "

    Using this optional parameter you can specify a function version (but not the $LATEST version) to direct AWS Lambda to delete a specific function version. If the function version has one or more aliases pointing to it, you will get an error because you cannot have aliases pointing to it. You can delete any function version but not the $LATEST, that is, you cannot specify $LATEST as the value of this parameter. The $LATEST version can be deleted only when you want to delete all the function versions and aliases.

    You can only specify a function version, not an alias name, using this parameter. You cannot delete a function version using its alias.

    If you don't specify this parameter, AWS Lambda will delete the function, including all of its versions and aliases.

    ", - "GetFunctionConfigurationRequest$Qualifier": "

    Using this optional parameter you can specify a function version or an alias name. If you specify function version, the API uses qualified function ARN and returns information about the specific function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points.

    If you don't specify this parameter, the API uses unqualified function ARN, and returns information about the $LATEST function version.

    ", - "GetFunctionRequest$Qualifier": "

    Using this optional parameter to specify a function version or an alias name. If you specify function version, the API uses qualified function ARN for the request and returns information about the specific Lambda function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points. If you don't provide this parameter, the API uses unqualified function ARN and returns information about the $LATEST version of the Lambda function.

    ", - "GetPolicyRequest$Qualifier": "

    You can specify this optional query parameter to specify a function version or an alias name in which case this API will return all permissions associated with the specific qualified ARN. If you don't provide this parameter, the API will return permissions that apply to the unqualified function ARN.

    ", - "InvocationRequest$Qualifier": "

    You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.

    If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the $LATEST version.

    ", - "RemovePermissionRequest$Qualifier": "

    You can specify this optional parameter to remove permission associated with a specific function version or function alias. If you don't specify this parameter, the API removes permission associated with the unqualified function ARN.

    " - } - }, - "RemovePermissionRequest": { - "base": null, - "refs": { - } - }, - "RequestTooLargeException": { - "base": "

    The request payload exceeded the Invoke request body JSON input limit. For more information, see Limits.

    ", - "refs": { - } - }, - "ResourceConflictException": { - "base": "

    The resource already exists.

    ", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

    The resource (for example, a Lambda function or access policy statement) specified in the request does not exist.

    ", - "refs": { - } - }, - "RoleArn": { - "base": null, - "refs": { - "CreateFunctionRequest$Role": "

    The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources. For more information, see AWS Lambda: How it Works.

    ", - "FunctionConfiguration$Role": "

    The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

    ", - "UpdateFunctionConfigurationRequest$Role": "

    The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.

    " - } - }, - "Runtime": { - "base": null, - "refs": { - "CreateFunctionRequest$Runtime": "

    The runtime environment for the Lambda function you are uploading.

    ", - "FunctionConfiguration$Runtime": "

    The runtime environment for the Lambda function.

    ", - "UpdateFunctionConfigurationRequest$Runtime": null - } - }, - "S3Bucket": { - "base": null, - "refs": { - "FunctionCode$S3Bucket": "

    Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.

    ", - "UpdateFunctionCodeRequest$S3Bucket": "

    Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.

    " - } - }, - "S3Key": { - "base": null, - "refs": { - "FunctionCode$S3Key": "

    The Amazon S3 object (the deployment package) key name you want to upload.

    ", - "UpdateFunctionCodeRequest$S3Key": "

    The Amazon S3 object (the deployment package) key name you want to upload.

    " - } - }, - "S3ObjectVersion": { - "base": null, - "refs": { - "FunctionCode$S3ObjectVersion": "

    The Amazon S3 object (the deployment package) version you want to upload.

    ", - "UpdateFunctionCodeRequest$S3ObjectVersion": "

    The Amazon S3 object (the deployment package) version you want to upload.

    " - } - }, - "SecurityGroupId": { - "base": null, - "refs": { - "SecurityGroupIds$member": null - } - }, - "SecurityGroupIds": { - "base": null, - "refs": { - "VpcConfig$SecurityGroupIds": "

    A list of one or more security groups IDs in your VPC.

    ", - "VpcConfigResponse$SecurityGroupIds": "

    A list of security group IDs associated with the Lambda function.

    " - } - }, - "ServiceException": { - "base": "

    The AWS Lambda service encountered an internal error.

    ", - "refs": { - } - }, - "SourceOwner": { - "base": null, - "refs": { - "AddPermissionRequest$SourceAccount": "

    The AWS account ID (without a hyphen) of the source owner. For example, if the SourceArn identifies a bucket, then this is the bucket owner's account ID. You can use this additional condition to ensure the bucket you specify is owned by a specific account (it is possible the bucket owner deleted the bucket and some other AWS account created the bucket). You can also use this condition to specify all sources (that is, you don't specify the SourceArn) owned by a specific account.

    " - } - }, - "StatementId": { - "base": null, - "refs": { - "AddPermissionRequest$StatementId": "

    A unique statement identifier.

    ", - "RemovePermissionRequest$StatementId": "

    Statement ID of the permission to remove.

    " - } - }, - "String": { - "base": null, - "refs": { - "AddPermissionResponse$Statement": "

    The permission statement you specified in the request. The response returns the same as a string using a backslash (\"\\\") as an escape character in the JSON.

    ", - "CodeStorageExceededException$Type": null, - "CodeStorageExceededException$message": null, - "DeleteEventSourceMappingRequest$UUID": "

    The event source mapping ID.

    ", - "EC2AccessDeniedException$Type": null, - "EC2AccessDeniedException$Message": null, - "EC2ThrottledException$Type": null, - "EC2ThrottledException$Message": null, - "EC2UnexpectedException$Type": null, - "EC2UnexpectedException$Message": null, - "EC2UnexpectedException$EC2ErrorCode": null, - "ENILimitReachedException$Type": null, - "ENILimitReachedException$Message": null, - "EventSourceMappingConfiguration$UUID": "

    The AWS Lambda assigned opaque identifier for the mapping.

    ", - "EventSourceMappingConfiguration$LastProcessingResult": "

    The result of the last AWS Lambda invocation of your Lambda function.

    ", - "EventSourceMappingConfiguration$State": "

    The state of the event source mapping. It can be Creating, Enabled, Disabled, Enabling, Disabling, Updating, or Deleting.

    ", - "EventSourceMappingConfiguration$StateTransitionReason": "

    The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.

    ", - "FunctionCodeLocation$RepositoryType": "

    The repository from which you can download the function.

    ", - "FunctionCodeLocation$Location": "

    The presigned URL you can use to download the function's .zip file that you previously uploaded. The URL is valid for up to 10 minutes.

    ", - "FunctionConfiguration$CodeSha256": "

    It is the SHA256 hash of your function deployment package.

    ", - "GetEventSourceMappingRequest$UUID": "

    The AWS Lambda assigned ID of the event source mapping.

    ", - "GetPolicyResponse$Policy": "

    The resource policy associated with the specified function. The response returns the same as a string using a backslash (\"\\\") as an escape character in the JSON.

    ", - "InvalidParameterValueException$Type": null, - "InvalidParameterValueException$message": null, - "InvalidRequestContentException$Type": null, - "InvalidRequestContentException$message": null, - "InvalidSecurityGroupIDException$Type": null, - "InvalidSecurityGroupIDException$Message": null, - "InvalidSubnetIDException$Type": null, - "InvalidSubnetIDException$Message": null, - "InvocationRequest$ClientContext": "

    Using the ClientContext you can pass client-specific information to the Lambda function you are invoking. You can then process the client information in your Lambda function as you choose through the context variable. For an example of a ClientContext JSON, see PutEvents in the Amazon Mobile Analytics API Reference and User Guide.

    The ClientContext JSON must be base64-encoded.

    ", - "InvocationResponse$FunctionError": "

    Indicates whether an error occurred while executing the Lambda function. If an error occurred this field will have one of two values; Handled or Unhandled. Handled errors are errors that are reported by the function while the Unhandled errors are those detected and reported by AWS Lambda. Unhandled errors include out of memory errors and function timeouts. For information about how to report an Handled error, see Programming Model.

    ", - "InvocationResponse$LogResult": "

    It is the base64-encoded logs for the Lambda function invocation. This is present only if the invocation type is RequestResponse and the logs were requested.

    ", - "ListAliasesRequest$Marker": "

    Optional string. An opaque pagination token returned from a previous ListAliases operation. If present, indicates where to continue the listing.

    ", - "ListAliasesResponse$NextMarker": "

    A string, present if there are more aliases.

    ", - "ListEventSourceMappingsRequest$Marker": "

    Optional string. An opaque pagination token returned from a previous ListEventSourceMappings operation. If present, specifies to continue the list from where the returning call left off.

    ", - "ListEventSourceMappingsResponse$NextMarker": "

    A string, present if there are more event source mappings.

    ", - "ListFunctionsRequest$Marker": "

    Optional string. An opaque pagination token returned from a previous ListFunctions operation. If present, indicates where to continue the listing.

    ", - "ListFunctionsResponse$NextMarker": "

    A string, present if there are more functions.

    ", - "ListVersionsByFunctionRequest$Marker": "

    Optional string. An opaque pagination token returned from a previous ListVersionsByFunction operation. If present, indicates where to continue the listing.

    ", - "ListVersionsByFunctionResponse$NextMarker": "

    A string, present if there are more function versions.

    ", - "PolicyLengthExceededException$Type": null, - "PolicyLengthExceededException$message": null, - "PublishVersionRequest$CodeSha256": "

    The SHA256 hash of the deployment package you want to publish. This provides validation on the code you are publishing. If you provide this parameter value must match the SHA256 of the $LATEST version for the publication to succeed.

    ", - "RequestTooLargeException$Type": null, - "RequestTooLargeException$message": null, - "ResourceConflictException$Type": null, - "ResourceConflictException$message": null, - "ResourceNotFoundException$Type": null, - "ResourceNotFoundException$Message": null, - "ServiceException$Type": null, - "ServiceException$Message": null, - "SubnetIPAddressLimitReachedException$Type": null, - "SubnetIPAddressLimitReachedException$Message": null, - "TooManyRequestsException$retryAfterSeconds": "

    The number of seconds the caller should wait before retrying.

    ", - "TooManyRequestsException$Type": null, - "TooManyRequestsException$message": null, - "UnsupportedMediaTypeException$Type": null, - "UnsupportedMediaTypeException$message": null, - "UpdateEventSourceMappingRequest$UUID": "

    The event source mapping identifier.

    " - } - }, - "SubnetIPAddressLimitReachedException": { - "base": "

    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.

    ", - "refs": { - } - }, - "SubnetId": { - "base": null, - "refs": { - "SubnetIds$member": null - } - }, - "SubnetIds": { - "base": null, - "refs": { - "VpcConfig$SubnetIds": "

    A list of one or more subnet IDs in your VPC.

    ", - "VpcConfigResponse$SubnetIds": "

    A list of subnet IDs associated with the Lambda function.

    " - } - }, - "Timeout": { - "base": null, - "refs": { - "CreateFunctionRequest$Timeout": "

    The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

    ", - "FunctionConfiguration$Timeout": "

    The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

    ", - "UpdateFunctionConfigurationRequest$Timeout": "

    The function execution time at which AWS Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

    " - } - }, - "Timestamp": { - "base": null, - "refs": { - "FunctionConfiguration$LastModified": "

    The time stamp of the last time you updated the function.

    " - } - }, - "TooManyRequestsException": { - "base": null, - "refs": { - } - }, - "UnsupportedMediaTypeException": { - "base": "

    The content type of the Invoke request body is not JSON.

    ", - "refs": { - } - }, - "UpdateAliasRequest": { - "base": null, - "refs": { - } - }, - "UpdateEventSourceMappingRequest": { - "base": null, - "refs": { - } - }, - "UpdateFunctionCodeRequest": { - "base": null, - "refs": { - } - }, - "UpdateFunctionConfigurationRequest": { - "base": null, - "refs": { - } - }, - "Version": { - "base": null, - "refs": { - "AliasConfiguration$FunctionVersion": "

    Function version to which the alias points.

    ", - "CreateAliasRequest$FunctionVersion": "

    Lambda function version for which you are creating the alias.

    ", - "FunctionConfiguration$Version": "

    The version of the Lambda function.

    ", - "ListAliasesRequest$FunctionVersion": "

    If you specify this optional parameter, the API returns only the aliases that are pointing to the specific Lambda function version, otherwise the API returns all of the aliases created for the Lambda function.

    ", - "UpdateAliasRequest$FunctionVersion": "

    Using this parameter you can change the Lambda function version to which the alias points.

    " - } - }, - "VpcConfig": { - "base": "

    If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.

    ", - "refs": { - "CreateFunctionRequest$VpcConfig": "

    If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.

    ", - "UpdateFunctionConfigurationRequest$VpcConfig": null - } - }, - "VpcConfigResponse": { - "base": "

    VPC configuration associated with your Lambda function.

    ", - "refs": { - "FunctionConfiguration$VpcConfig": "

    VPC configuration associated with your Lambda function.

    " - } - }, - "VpcId": { - "base": null, - "refs": { - "VpcConfigResponse$VpcId": "

    The VPC ID associated with you Lambda function.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/logs/2014-03-28/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/waiters-2.json deleted file mode 100644 index da6b1c951..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/waiters-2.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "version": 2, - "waiters": { - "DataSourceAvailable": { - "delay": 30, - "operation": "DescribeDataSources", - "maxAttempts": 60, - "acceptors": [ - { - "expected": "COMPLETED", - "matcher": "pathAll", - "state": "success", - "argument": "Results[].Status" - }, - { - "expected": "FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Results[].Status" - } - ] - }, - "MLModelAvailable": { - "delay": 30, - "operation": "DescribeMLModels", - "maxAttempts": 60, - "acceptors": [ - { - "expected": "COMPLETED", - "matcher": "pathAll", - "state": "success", - "argument": "Results[].Status" - }, - { - "expected": "FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Results[].Status" - } - ] - }, - "EvaluationAvailable": { - "delay": 30, - "operation": "DescribeEvaluations", - "maxAttempts": 60, - "acceptors": [ - { - "expected": "COMPLETED", - "matcher": "pathAll", - "state": "success", - "argument": "Results[].Status" - }, - { - "expected": "FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Results[].Status" - } - ] - }, - "BatchPredictionAvailable": { - "delay": 30, - "operation": "DescribeBatchPredictions", - "maxAttempts": 60, - "acceptors": [ - { - "expected": "COMPLETED", - "matcher": "pathAll", - "state": "success", - "argument": "Results[].Status" - }, - { - "expected": "FAILED", - "matcher": "pathAny", - "state": "failure", - "argument": "Results[].Status" - } - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/api-2.json deleted file mode 100644 index fa343e101..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/api-2.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-07-01", - "endpointPrefix":"marketplacecommerceanalytics", - "jsonVersion":"1.1", - "protocol":"json", - "serviceFullName":"AWS Marketplace Commerce Analytics", - "signatureVersion":"v4", - "signingName":"marketplacecommerceanalytics", - "targetPrefix":"MarketplaceCommerceAnalytics20150701" - }, - "operations":{ - "GenerateDataSet":{ - "name":"GenerateDataSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GenerateDataSetRequest"}, - "output":{"shape":"GenerateDataSetResult"}, - "errors":[ - {"shape":"MarketplaceCommerceAnalyticsException"} - ] - } - }, - "shapes":{ - "CustomerDefinedValues":{ - "type":"map", - "key":{"shape":"OptionalKey"}, - "value":{"shape":"OptionalValue"}, - "max":5, - "min":1 - }, - "DataSetPublicationDate":{"type":"timestamp"}, - "DataSetRequestId":{"type":"string"}, - "DataSetType":{ - "type":"string", - "enum":[ - "customer_subscriber_hourly_monthly_subscriptions", - "customer_subscriber_annual_subscriptions", - "daily_business_usage_by_instance_type", - "daily_business_fees", - "daily_business_free_trial_conversions", - "daily_business_new_instances", - "daily_business_new_product_subscribers", - "daily_business_canceled_product_subscribers", - "monthly_revenue_billing_and_revenue_data", - "monthly_revenue_annual_subscriptions", - "disbursed_amount_by_product", - "disbursed_amount_by_product_with_uncollected_funds", - "disbursed_amount_by_customer_geo", - "disbursed_amount_by_age_of_uncollected_funds", - "disbursed_amount_by_age_of_disbursed_funds", - "customer_profile_by_industry", - "customer_profile_by_revenue", - "customer_profile_by_geography" - ], - "max":255, - "min":1 - }, - "DestinationS3BucketName":{ - "type":"string", - "min":1 - }, - "DestinationS3Prefix":{"type":"string"}, - "ExceptionMessage":{"type":"string"}, - "GenerateDataSetRequest":{ - "type":"structure", - "required":[ - "dataSetType", - "dataSetPublicationDate", - "roleNameArn", - "destinationS3BucketName", - "snsTopicArn" - ], - "members":{ - "dataSetType":{"shape":"DataSetType"}, - "dataSetPublicationDate":{"shape":"DataSetPublicationDate"}, - "roleNameArn":{"shape":"RoleNameArn"}, - "destinationS3BucketName":{"shape":"DestinationS3BucketName"}, - "destinationS3Prefix":{"shape":"DestinationS3Prefix"}, - "snsTopicArn":{"shape":"SnsTopicArn"}, - "customerDefinedValues":{"shape":"CustomerDefinedValues"} - } - }, - "GenerateDataSetResult":{ - "type":"structure", - "members":{ - "dataSetRequestId":{"shape":"DataSetRequestId"} - } - }, - "MarketplaceCommerceAnalyticsException":{ - "type":"structure", - "members":{ - "message":{"shape":"ExceptionMessage"} - }, - "exception":true, - "fault":true - }, - "OptionalKey":{ - "type":"string", - "max":255, - "min":1 - }, - "OptionalValue":{ - "type":"string", - "max":255, - "min":1 - }, - "RoleNameArn":{ - "type":"string", - "min":1 - }, - "SnsTopicArn":{ - "type":"string", - "min":1 - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/docs-2.json deleted file mode 100644 index 8d17a391f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/docs-2.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "version": "2.0", - "service": "Provides AWS Marketplace business intelligence data on-demand.", - "operations": { - "GenerateDataSet": "Given a data set type and data set publication date, asynchronously publishes the requested data set to the specified S3 bucket and notifies the specified SNS topic once the data is available. Returns a unique request identifier that can be used to correlate requests with notifications from the SNS topic. Data sets will be published in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv. If a file with the same name already exists (e.g. if the same data set is requested twice), the original file will be overwritten by the new file. Requires a Role with an attached permissions policy providing Allow permissions for the following actions: s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy." - }, - "shapes": { - "CustomerDefinedValues": { - "base": null, - "refs": { - "GenerateDataSetRequest$customerDefinedValues": "(Optional) Key-value pairs which will be returned, unmodified, in the Amazon SNS notification message and the data set metadata file. These key-value pairs can be used to correlated responses with tracking information from other systems." - } - }, - "DataSetPublicationDate": { - "base": null, - "refs": { - "GenerateDataSetRequest$dataSetPublicationDate": "The date a data set was published. For daily data sets, provide a date with day-level granularity for the desired day. For weekly data sets, provide a date with day-level granularity within the desired week (the day value will be ignored). For monthly data sets, provide a date with month-level granularity for the desired month (the day value will be ignored)." - } - }, - "DataSetRequestId": { - "base": null, - "refs": { - "GenerateDataSetResult$dataSetRequestId": "A unique identifier representing a specific request to the GenerateDataSet operation. This identifier can be used to correlate a request with notifications from the SNS topic." - } - }, - "DataSetType": { - "base": null, - "refs": { - "GenerateDataSetRequest$dataSetType": "

    The desired data set type.

    • customer_subscriber_hourly_monthly_subscriptions - Available daily by 5:00 PM Pacific Time since 2014-07-21.
    • customer_subscriber_annual_subscriptions - Available daily by 5:00 PM Pacific Time since 2014-07-21.
    • daily_business_usage_by_instance_type - Available daily by 5:00 PM Pacific Time since 2015-01-26.
    • daily_business_fees - Available daily by 5:00 PM Pacific Time since 2015-01-26.
    • daily_business_free_trial_conversions - Available daily by 5:00 PM Pacific Time since 2015-01-26.
    • daily_business_new_instances - Available daily by 5:00 PM Pacific Time since 2015-01-26.
    • daily_business_new_product_subscribers - Available daily by 5:00 PM Pacific Time since 2015-01-26.
    • daily_business_canceled_product_subscribers - Available daily by 5:00 PM Pacific Time since 2015-01-26.
    • monthly_revenue_billing_and_revenue_data - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2015-02.
    • monthly_revenue_annual_subscriptions - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2015-02.
    • disbursed_amount_by_product - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26.
    • disbursed_amount_by_product_with_uncollected_funds -This data set is only available from 2012-04-19 until 2015-01-25. After 2015-01-25, this data set was split into three data sets: disbursed_amount_by_product, disbursed_amount_by_age_of_uncollected_funds, and disbursed_amount_by_age_of_disbursed_funds.
    • disbursed_amount_by_customer_geo - Available every 30 days by 5:00 PM Pacific Time since 2012-04-19.
    • disbursed_amount_by_age_of_uncollected_funds - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26.
    • disbursed_amount_by_age_of_disbursed_funds - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26.
    • customer_profile_by_industry - Available daily by 5:00 PM Pacific Time since 2015-10-01.
    • customer_profile_by_revenue - Available daily by 5:00 PM Pacific Time since 2015-10-01.
    • customer_profile_by_geography - Available daily by 5:00 PM Pacific Time since 2015-10-01.

    " - } - }, - "DestinationS3BucketName": { - "base": null, - "refs": { - "GenerateDataSetRequest$destinationS3BucketName": "The name (friendly name, not ARN) of the destination S3 bucket." - } - }, - "DestinationS3Prefix": { - "base": null, - "refs": { - "GenerateDataSetRequest$destinationS3Prefix": "(Optional) The desired S3 prefix for the published data set, similar to a directory path in standard file systems. For example, if given the bucket name \"mybucket\" and the prefix \"myprefix/mydatasets\", the output file \"outputfile\" would be published to \"s3://mybucket/myprefix/mydatasets/outputfile\". If the prefix directory structure does not exist, it will be created. If no prefix is provided, the data set will be published to the S3 bucket root." - } - }, - "ExceptionMessage": { - "base": null, - "refs": { - "MarketplaceCommerceAnalyticsException$message": null - } - }, - "GenerateDataSetRequest": { - "base": "Container for the parameters to the GenerateDataSet operation.", - "refs": { - } - }, - "GenerateDataSetResult": { - "base": "Container for the result of the GenerateDataSet operation.", - "refs": { - } - }, - "MarketplaceCommerceAnalyticsException": { - "base": "This exception is thrown when an internal service error occurs.", - "refs": { - } - }, - "OptionalKey": { - "base": null, - "refs": { - "CustomerDefinedValues$key": null - } - }, - "OptionalValue": { - "base": null, - "refs": { - "CustomerDefinedValues$value": null - } - }, - "RoleNameArn": { - "base": null, - "refs": { - "GenerateDataSetRequest$roleNameArn": "The Amazon Resource Name (ARN) of the Role with an attached permissions policy to interact with the provided AWS services." - } - }, - "SnsTopicArn": { - "base": null, - "refs": { - "GenerateDataSetRequest$snsTopicArn": "Amazon Resource Name (ARN) for the SNS Topic that will be notified when the data set has been published or if an error has occurred." - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/marketplacecommerceanalytics/2015-07-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/api-2.json deleted file mode 100644 index e389a233e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/api-2.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2016-01-14", - "endpointPrefix":"metering.marketplace", - "jsonVersion":"1.1", - "protocol":"json", - "serviceFullName":"AWSMarketplace Metering", - "signatureVersion":"v4", - "signingName":"aws-marketplace", - "targetPrefix":"AWSMPMeteringService" - }, - "operations":{ - "MeterUsage":{ - "name":"MeterUsage", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"MeterUsageRequest"}, - "output":{"shape":"MeterUsageResult"}, - "errors":[ - {"shape":"InternalServiceErrorException"}, - {"shape":"InvalidProductCodeException"}, - {"shape":"InvalidUsageDimensionException"}, - {"shape":"InvalidEndpointRegionException"}, - {"shape":"TimestampOutOfBoundsException"}, - {"shape":"DuplicateRequestException"}, - {"shape":"ThrottlingException"} - ] - } - }, - "shapes":{ - "Boolean":{"type":"boolean"}, - "DuplicateRequestException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "InternalServiceErrorException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true, - "fault":true - }, - "InvalidEndpointRegionException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "InvalidProductCodeException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "InvalidUsageDimensionException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "MeterUsageRequest":{ - "type":"structure", - "required":[ - "ProductCode", - "Timestamp", - "UsageDimension", - "UsageQuantity", - "DryRun" - ], - "members":{ - "ProductCode":{"shape":"ProductCode"}, - "Timestamp":{"shape":"Timestamp"}, - "UsageDimension":{"shape":"UsageDimension"}, - "UsageQuantity":{"shape":"UsageQuantity"}, - "DryRun":{"shape":"Boolean"} - } - }, - "MeterUsageResult":{ - "type":"structure", - "members":{ - "MeteringRecordId":{"shape":"String"} - } - }, - "ProductCode":{ - "type":"string", - "max":255, - "min":1 - }, - "String":{"type":"string"}, - "ThrottlingException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "Timestamp":{"type":"timestamp"}, - "TimestampOutOfBoundsException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "UsageDimension":{ - "type":"string", - "max":255, - "min":1 - }, - "UsageQuantity":{ - "type":"integer", - "max":10000, - "min":0 - }, - "errorMessage":{"type":"string"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/docs-2.json deleted file mode 100644 index c71903432..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/docs-2.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "version": "2.0", - "service": "AWS Marketplace Metering Service

    This reference provides descriptions of the low-level AWS Marketplace Metering Service API.

    AWS Marketplace sellers can use this API to submit usage data for custom usage dimensions.

    Submitting Metering Records

    • MeterUsage- Submits the metering record for a Marketplace product.

    ", - "operations": { - "MeterUsage": "

    API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.

    " - }, - "shapes": { - "Boolean": { - "base": null, - "refs": { - "MeterUsageRequest$DryRun": "

    Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException.

    " - } - }, - "DuplicateRequestException": { - "base": "

    A metering record has already been emitted by the same EC2 instance for the given {usageDimension, timestamp} with a different usageQuantity.

    ", - "refs": { - } - }, - "InternalServiceErrorException": { - "base": "

    An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums.

    ", - "refs": { - } - }, - "InvalidEndpointRegionException": { - "base": "

    The endpoint being called is in a region different from your EC2 instance. The region of the Metering service endpoint and the region of the EC2 instance must match.

    ", - "refs": { - } - }, - "InvalidProductCodeException": { - "base": "

    The product code passed does not match the product code used for publishing the product.

    ", - "refs": { - } - }, - "InvalidUsageDimensionException": { - "base": "

    The usage dimension does not match one of the UsageDimensions associated with products.

    ", - "refs": { - } - }, - "MeterUsageRequest": { - "base": null, - "refs": { - } - }, - "MeterUsageResult": { - "base": null, - "refs": { - } - }, - "ProductCode": { - "base": null, - "refs": { - "MeterUsageRequest$ProductCode": "

    Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.

    " - } - }, - "String": { - "base": null, - "refs": { - "MeterUsageResult$MeteringRecordId": null - } - }, - "ThrottlingException": { - "base": "

    The calls to the MeterUsage API are throttled.

    ", - "refs": { - } - }, - "Timestamp": { - "base": null, - "refs": { - "MeterUsageRequest$Timestamp": "

    Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.

    " - } - }, - "TimestampOutOfBoundsException": { - "base": "

    The timestamp value passed in the meterUsage() is out of allowed range.

    ", - "refs": { - } - }, - "UsageDimension": { - "base": null, - "refs": { - "MeterUsageRequest$UsageDimension": "

    It will be one of the 'fcp dimension name' provided during the publishing of the product.

    " - } - }, - "UsageQuantity": { - "base": null, - "refs": { - "MeterUsageRequest$UsageQuantity": "

    Consumption value for the hour.

    " - } - }, - "errorMessage": { - "base": null, - "refs": { - "DuplicateRequestException$message": null, - "InternalServiceErrorException$message": null, - "InvalidEndpointRegionException$message": null, - "InvalidProductCodeException$message": null, - "InvalidUsageDimensionException$message": null, - "ThrottlingException$message": null, - "TimestampOutOfBoundsException$message": null - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/opsworks/2013-02-18/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/api-2.json deleted file mode 100644 index 3868a93c7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/api-2.json +++ /dev/null @@ -1,2901 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2013-01-10", - "endpointPrefix":"rds", - "protocol":"query", - "serviceAbbreviation":"Amazon RDS", - "serviceFullName":"Amazon Relational Database Service", - "signatureVersion":"v4", - "xmlNamespace":"http://rds.amazonaws.com/doc/2013-01-10/" - }, - "operations":{ - "AddSourceIdentifierToSubscription":{ - "name":"AddSourceIdentifierToSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddSourceIdentifierToSubscriptionMessage"}, - "output":{ - "shape":"AddSourceIdentifierToSubscriptionResult", - "resultWrapper":"AddSourceIdentifierToSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "AddTagsToResource":{ - "name":"AddTagsToResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddTagsToResourceMessage"}, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "AuthorizeDBSecurityGroupIngress":{ - "name":"AuthorizeDBSecurityGroupIngress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AuthorizeDBSecurityGroupIngressMessage"}, - "output":{ - "shape":"AuthorizeDBSecurityGroupIngressResult", - "resultWrapper":"AuthorizeDBSecurityGroupIngressResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"AuthorizationAlreadyExistsFault"}, - {"shape":"AuthorizationQuotaExceededFault"} - ] - }, - "CopyDBSnapshot":{ - "name":"CopyDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CopyDBSnapshotMessage"}, - "output":{ - "shape":"CopyDBSnapshotResult", - "resultWrapper":"CopyDBSnapshotResult" - }, - "errors":[ - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "CreateDBInstance":{ - "name":"CreateDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBInstanceMessage"}, - "output":{ - "shape":"CreateDBInstanceResult", - "resultWrapper":"CreateDBInstanceResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "CreateDBInstanceReadReplica":{ - "name":"CreateDBInstanceReadReplica", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBInstanceReadReplicaMessage"}, - "output":{ - "shape":"CreateDBInstanceReadReplicaResult", - "resultWrapper":"CreateDBInstanceReadReplicaResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "CreateDBParameterGroup":{ - "name":"CreateDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBParameterGroupMessage"}, - "output":{ - "shape":"CreateDBParameterGroupResult", - "resultWrapper":"CreateDBParameterGroupResult" - }, - "errors":[ - {"shape":"DBParameterGroupQuotaExceededFault"}, - {"shape":"DBParameterGroupAlreadyExistsFault"} - ] - }, - "CreateDBSecurityGroup":{ - "name":"CreateDBSecurityGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSecurityGroupMessage"}, - "output":{ - "shape":"CreateDBSecurityGroupResult", - "resultWrapper":"CreateDBSecurityGroupResult" - }, - "errors":[ - {"shape":"DBSecurityGroupAlreadyExistsFault"}, - {"shape":"DBSecurityGroupQuotaExceededFault"}, - {"shape":"DBSecurityGroupNotSupportedFault"} - ] - }, - "CreateDBSnapshot":{ - "name":"CreateDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSnapshotMessage"}, - "output":{ - "shape":"CreateDBSnapshotResult", - "resultWrapper":"CreateDBSnapshotResult" - }, - "errors":[ - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "CreateDBSubnetGroup":{ - "name":"CreateDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSubnetGroupMessage"}, - "output":{ - "shape":"CreateDBSubnetGroupResult", - "resultWrapper":"CreateDBSubnetGroupResult" - }, - "errors":[ - {"shape":"DBSubnetGroupAlreadyExistsFault"}, - {"shape":"DBSubnetGroupQuotaExceededFault"}, - {"shape":"DBSubnetQuotaExceededFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} - ] - }, - "CreateEventSubscription":{ - "name":"CreateEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateEventSubscriptionMessage"}, - "output":{ - "shape":"CreateEventSubscriptionResult", - "resultWrapper":"CreateEventSubscriptionResult" - }, - "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionAlreadyExistFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "CreateOptionGroup":{ - "name":"CreateOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateOptionGroupMessage"}, - "output":{ - "shape":"CreateOptionGroupResult", - "resultWrapper":"CreateOptionGroupResult" - }, - "errors":[ - {"shape":"OptionGroupAlreadyExistsFault"}, - {"shape":"OptionGroupQuotaExceededFault"} - ] - }, - "DeleteDBInstance":{ - "name":"DeleteDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBInstanceMessage"}, - "output":{ - "shape":"DeleteDBInstanceResult", - "resultWrapper":"DeleteDBInstanceResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "DeleteDBParameterGroup":{ - "name":"DeleteDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBParameterGroupMessage"}, - "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DeleteDBSecurityGroup":{ - "name":"DeleteDBSecurityGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSecurityGroupMessage"}, - "errors":[ - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"DBSecurityGroupNotFoundFault"} - ] - }, - "DeleteDBSnapshot":{ - "name":"DeleteDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSnapshotMessage"}, - "output":{ - "shape":"DeleteDBSnapshotResult", - "resultWrapper":"DeleteDBSnapshotResult" - }, - "errors":[ - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "DeleteDBSubnetGroup":{ - "name":"DeleteDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSubnetGroupMessage"}, - "errors":[ - {"shape":"InvalidDBSubnetGroupStateFault"}, - {"shape":"InvalidDBSubnetStateFault"}, - {"shape":"DBSubnetGroupNotFoundFault"} - ] - }, - "DeleteEventSubscription":{ - "name":"DeleteEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteEventSubscriptionMessage"}, - "output":{ - "shape":"DeleteEventSubscriptionResult", - "resultWrapper":"DeleteEventSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"InvalidEventSubscriptionStateFault"} - ] - }, - "DeleteOptionGroup":{ - "name":"DeleteOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteOptionGroupMessage"}, - "errors":[ - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"InvalidOptionGroupStateFault"} - ] - }, - "DescribeDBEngineVersions":{ - "name":"DescribeDBEngineVersions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBEngineVersionsMessage"}, - "output":{ - "shape":"DBEngineVersionMessage", - "resultWrapper":"DescribeDBEngineVersionsResult" - } - }, - "DescribeDBInstances":{ - "name":"DescribeDBInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBInstancesMessage"}, - "output":{ - "shape":"DBInstanceMessage", - "resultWrapper":"DescribeDBInstancesResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "DescribeDBParameterGroups":{ - "name":"DescribeDBParameterGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBParameterGroupsMessage"}, - "output":{ - "shape":"DBParameterGroupsMessage", - "resultWrapper":"DescribeDBParameterGroupsResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DescribeDBParameters":{ - "name":"DescribeDBParameters", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBParametersMessage"}, - "output":{ - "shape":"DBParameterGroupDetails", - "resultWrapper":"DescribeDBParametersResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DescribeDBSecurityGroups":{ - "name":"DescribeDBSecurityGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSecurityGroupsMessage"}, - "output":{ - "shape":"DBSecurityGroupMessage", - "resultWrapper":"DescribeDBSecurityGroupsResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"} - ] - }, - "DescribeDBSnapshots":{ - "name":"DescribeDBSnapshots", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSnapshotsMessage"}, - "output":{ - "shape":"DBSnapshotMessage", - "resultWrapper":"DescribeDBSnapshotsResult" - }, - "errors":[ - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "DescribeDBSubnetGroups":{ - "name":"DescribeDBSubnetGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSubnetGroupsMessage"}, - "output":{ - "shape":"DBSubnetGroupMessage", - "resultWrapper":"DescribeDBSubnetGroupsResult" - }, - "errors":[ - {"shape":"DBSubnetGroupNotFoundFault"} - ] - }, - "DescribeEngineDefaultParameters":{ - "name":"DescribeEngineDefaultParameters", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEngineDefaultParametersMessage"}, - "output":{ - "shape":"DescribeEngineDefaultParametersResult", - "resultWrapper":"DescribeEngineDefaultParametersResult" - } - }, - "DescribeEventCategories":{ - "name":"DescribeEventCategories", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventCategoriesMessage"}, - "output":{ - "shape":"EventCategoriesMessage", - "resultWrapper":"DescribeEventCategoriesResult" - } - }, - "DescribeEventSubscriptions":{ - "name":"DescribeEventSubscriptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventSubscriptionsMessage"}, - "output":{ - "shape":"EventSubscriptionsMessage", - "resultWrapper":"DescribeEventSubscriptionsResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"} - ] - }, - "DescribeEvents":{ - "name":"DescribeEvents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventsMessage"}, - "output":{ - "shape":"EventsMessage", - "resultWrapper":"DescribeEventsResult" - } - }, - "DescribeOptionGroupOptions":{ - "name":"DescribeOptionGroupOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOptionGroupOptionsMessage"}, - "output":{ - "shape":"OptionGroupOptionsMessage", - "resultWrapper":"DescribeOptionGroupOptionsResult" - } - }, - "DescribeOptionGroups":{ - "name":"DescribeOptionGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOptionGroupsMessage"}, - "output":{ - "shape":"OptionGroups", - "resultWrapper":"DescribeOptionGroupsResult" - }, - "errors":[ - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "DescribeOrderableDBInstanceOptions":{ - "name":"DescribeOrderableDBInstanceOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOrderableDBInstanceOptionsMessage"}, - "output":{ - "shape":"OrderableDBInstanceOptionsMessage", - "resultWrapper":"DescribeOrderableDBInstanceOptionsResult" - } - }, - "DescribeReservedDBInstances":{ - "name":"DescribeReservedDBInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedDBInstancesMessage"}, - "output":{ - "shape":"ReservedDBInstanceMessage", - "resultWrapper":"DescribeReservedDBInstancesResult" - }, - "errors":[ - {"shape":"ReservedDBInstanceNotFoundFault"} - ] - }, - "DescribeReservedDBInstancesOfferings":{ - "name":"DescribeReservedDBInstancesOfferings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedDBInstancesOfferingsMessage"}, - "output":{ - "shape":"ReservedDBInstancesOfferingMessage", - "resultWrapper":"DescribeReservedDBInstancesOfferingsResult" - }, - "errors":[ - {"shape":"ReservedDBInstancesOfferingNotFoundFault"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceMessage"}, - "output":{ - "shape":"TagListMessage", - "resultWrapper":"ListTagsForResourceResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "ModifyDBInstance":{ - "name":"ModifyDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBInstanceMessage"}, - "output":{ - "shape":"ModifyDBInstanceResult", - "resultWrapper":"ModifyDBInstanceResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"DBUpgradeDependencyFailureFault"} - ] - }, - "ModifyDBParameterGroup":{ - "name":"ModifyDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBParameterGroupMessage"}, - "output":{ - "shape":"DBParameterGroupNameMessage", - "resultWrapper":"ModifyDBParameterGroupResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InvalidDBParameterGroupStateFault"} - ] - }, - "ModifyDBSubnetGroup":{ - "name":"ModifyDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBSubnetGroupMessage"}, - "output":{ - "shape":"ModifyDBSubnetGroupResult", - "resultWrapper":"ModifyDBSubnetGroupResult" - }, - "errors":[ - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetQuotaExceededFault"}, - {"shape":"SubnetAlreadyInUse"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} - ] - }, - "ModifyEventSubscription":{ - "name":"ModifyEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyEventSubscriptionMessage"}, - "output":{ - "shape":"ModifyEventSubscriptionResult", - "resultWrapper":"ModifyEventSubscriptionResult" - }, - "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"} - ] - }, - "ModifyOptionGroup":{ - "name":"ModifyOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyOptionGroupMessage"}, - "output":{ - "shape":"ModifyOptionGroupResult", - "resultWrapper":"ModifyOptionGroupResult" - }, - "errors":[ - {"shape":"InvalidOptionGroupStateFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "PromoteReadReplica":{ - "name":"PromoteReadReplica", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PromoteReadReplicaMessage"}, - "output":{ - "shape":"PromoteReadReplicaResult", - "resultWrapper":"PromoteReadReplicaResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "PurchaseReservedDBInstancesOffering":{ - "name":"PurchaseReservedDBInstancesOffering", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PurchaseReservedDBInstancesOfferingMessage"}, - "output":{ - "shape":"PurchaseReservedDBInstancesOfferingResult", - "resultWrapper":"PurchaseReservedDBInstancesOfferingResult" - }, - "errors":[ - {"shape":"ReservedDBInstancesOfferingNotFoundFault"}, - {"shape":"ReservedDBInstanceAlreadyExistsFault"}, - {"shape":"ReservedDBInstanceQuotaExceededFault"} - ] - }, - "RebootDBInstance":{ - "name":"RebootDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RebootDBInstanceMessage"}, - "output":{ - "shape":"RebootDBInstanceResult", - "resultWrapper":"RebootDBInstanceResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "RemoveSourceIdentifierFromSubscription":{ - "name":"RemoveSourceIdentifierFromSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveSourceIdentifierFromSubscriptionMessage"}, - "output":{ - "shape":"RemoveSourceIdentifierFromSubscriptionResult", - "resultWrapper":"RemoveSourceIdentifierFromSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "RemoveTagsFromResource":{ - "name":"RemoveTagsFromResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTagsFromResourceMessage"}, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "ResetDBParameterGroup":{ - "name":"ResetDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResetDBParameterGroupMessage"}, - "output":{ - "shape":"DBParameterGroupNameMessage", - "resultWrapper":"ResetDBParameterGroupResult" - }, - "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "RestoreDBInstanceFromDBSnapshot":{ - "name":"RestoreDBInstanceFromDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreDBInstanceFromDBSnapshotMessage"}, - "output":{ - "shape":"RestoreDBInstanceFromDBSnapshotResult", - "resultWrapper":"RestoreDBInstanceFromDBSnapshotResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "RestoreDBInstanceToPointInTime":{ - "name":"RestoreDBInstanceToPointInTime", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreDBInstanceToPointInTimeMessage"}, - "output":{ - "shape":"RestoreDBInstanceToPointInTimeResult", - "resultWrapper":"RestoreDBInstanceToPointInTimeResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"PointInTimeRestoreNotEnabledFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "RevokeDBSecurityGroupIngress":{ - "name":"RevokeDBSecurityGroupIngress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RevokeDBSecurityGroupIngressMessage"}, - "output":{ - "shape":"RevokeDBSecurityGroupIngressResult", - "resultWrapper":"RevokeDBSecurityGroupIngressResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"} - ] - } - }, - "shapes":{ - "AddSourceIdentifierToSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SourceIdentifier" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SourceIdentifier":{"shape":"String"} - } - }, - "AddSourceIdentifierToSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "AddTagsToResourceMessage":{ - "type":"structure", - "required":[ - "ResourceName", - "Tags" - ], - "members":{ - "ResourceName":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "ApplyMethod":{ - "type":"string", - "enum":[ - "immediate", - "pending-reboot" - ] - }, - "AuthorizationAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "AuthorizationNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "AuthorizationQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "AuthorizeDBSecurityGroupIngressMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "CIDRIP":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "AuthorizeDBSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "AvailabilityZone":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "ProvisionedIopsCapable":{"shape":"Boolean"} - }, - "wrapper":true - }, - "AvailabilityZoneList":{ - "type":"list", - "member":{ - "shape":"AvailabilityZone", - "locationName":"AvailabilityZone" - } - }, - "Boolean":{"type":"boolean"}, - "BooleanOptional":{"type":"boolean"}, - "CharacterSet":{ - "type":"structure", - "members":{ - "CharacterSetName":{"shape":"String"}, - "CharacterSetDescription":{"shape":"String"} - } - }, - "CopyDBSnapshotMessage":{ - "type":"structure", - "required":[ - "SourceDBSnapshotIdentifier", - "TargetDBSnapshotIdentifier" - ], - "members":{ - "SourceDBSnapshotIdentifier":{"shape":"String"}, - "TargetDBSnapshotIdentifier":{"shape":"String"} - } - }, - "CopyDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "CreateDBInstanceMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "AllocatedStorage", - "DBInstanceClass", - "Engine", - "MasterUsername", - "MasterUserPassword" - ], - "members":{ - "DBName":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "DBInstanceClass":{"shape":"String"}, - "Engine":{"shape":"String"}, - "MasterUsername":{"shape":"String"}, - "MasterUserPassword":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "DBParameterGroupName":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "CharacterSetName":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"} - } - }, - "CreateDBInstanceReadReplicaMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "SourceDBInstanceIdentifier" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "SourceDBInstanceIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "AvailabilityZone":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"} - } - }, - "CreateDBInstanceReadReplicaResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "CreateDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "CreateDBParameterGroupMessage":{ - "type":"structure", - "required":[ - "DBParameterGroupName", - "DBParameterGroupFamily", - "Description" - ], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "Description":{"shape":"String"} - } - }, - "CreateDBParameterGroupResult":{ - "type":"structure", - "members":{ - "DBParameterGroup":{"shape":"DBParameterGroup"} - } - }, - "CreateDBSecurityGroupMessage":{ - "type":"structure", - "required":[ - "DBSecurityGroupName", - "DBSecurityGroupDescription" - ], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "DBSecurityGroupDescription":{"shape":"String"} - } - }, - "CreateDBSecurityGroupResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "CreateDBSnapshotMessage":{ - "type":"structure", - "required":[ - "DBSnapshotIdentifier", - "DBInstanceIdentifier" - ], - "members":{ - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"} - } - }, - "CreateDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "CreateDBSubnetGroupMessage":{ - "type":"structure", - "required":[ - "DBSubnetGroupName", - "DBSubnetGroupDescription", - "SubnetIds" - ], - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "SubnetIds":{"shape":"SubnetIdentifierList"} - } - }, - "CreateDBSubnetGroupResult":{ - "type":"structure", - "members":{ - "DBSubnetGroup":{"shape":"DBSubnetGroup"} - } - }, - "CreateEventSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SnsTopicArn" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "SourceIds":{"shape":"SourceIdsList"}, - "Enabled":{"shape":"BooleanOptional"} - } - }, - "CreateEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "CreateOptionGroupMessage":{ - "type":"structure", - "required":[ - "OptionGroupName", - "EngineName", - "MajorEngineVersion", - "OptionGroupDescription" - ], - "members":{ - "OptionGroupName":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "OptionGroupDescription":{"shape":"String"} - } - }, - "CreateOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, - "DBEngineVersion":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "DBEngineDescription":{"shape":"String"}, - "DBEngineVersionDescription":{"shape":"String"}, - "DefaultCharacterSet":{"shape":"CharacterSet"}, - "SupportedCharacterSets":{"shape":"SupportedCharacterSetsList"} - } - }, - "DBEngineVersionList":{ - "type":"list", - "member":{ - "shape":"DBEngineVersion", - "locationName":"DBEngineVersion" - } - }, - "DBEngineVersionMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBEngineVersions":{"shape":"DBEngineVersionList"} - } - }, - "DBInstance":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Engine":{"shape":"String"}, - "DBInstanceStatus":{"shape":"String"}, - "MasterUsername":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Endpoint":{"shape":"Endpoint"}, - "AllocatedStorage":{"shape":"Integer"}, - "InstanceCreateTime":{"shape":"TStamp"}, - "PreferredBackupWindow":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"Integer"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupMembershipList"}, - "VpcSecurityGroups":{"shape":"VpcSecurityGroupMembershipList"}, - "DBParameterGroups":{"shape":"DBParameterGroupStatusList"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroup":{"shape":"DBSubnetGroup"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "PendingModifiedValues":{"shape":"PendingModifiedValues"}, - "LatestRestorableTime":{"shape":"TStamp"}, - "MultiAZ":{"shape":"Boolean"}, - "EngineVersion":{"shape":"String"}, - "AutoMinorVersionUpgrade":{"shape":"Boolean"}, - "ReadReplicaSourceDBInstanceIdentifier":{"shape":"String"}, - "ReadReplicaDBInstanceIdentifiers":{"shape":"ReadReplicaDBInstanceIdentifierList"}, - "LicenseModel":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupMembership":{"shape":"OptionGroupMembership"}, - "CharacterSetName":{"shape":"String"}, - "SecondaryAvailabilityZone":{"shape":"String"}, - "PubliclyAccessible":{"shape":"Boolean"} - }, - "wrapper":true - }, - "DBInstanceAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBInstanceAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBInstanceList":{ - "type":"list", - "member":{ - "shape":"DBInstance", - "locationName":"DBInstance" - } - }, - "DBInstanceMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBInstances":{"shape":"DBInstanceList"} - } - }, - "DBInstanceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBInstanceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroup":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "Description":{"shape":"String"} - }, - "wrapper":true - }, - "DBParameterGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupDetails":{ - "type":"structure", - "members":{ - "Parameters":{"shape":"ParametersList"}, - "Marker":{"shape":"String"} - } - }, - "DBParameterGroupList":{ - "type":"list", - "member":{ - "shape":"DBParameterGroup", - "locationName":"DBParameterGroup" - } - }, - "DBParameterGroupNameMessage":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"} - } - }, - "DBParameterGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupStatus":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "ParameterApplyStatus":{"shape":"String"} - } - }, - "DBParameterGroupStatusList":{ - "type":"list", - "member":{ - "shape":"DBParameterGroupStatus", - "locationName":"DBParameterGroup" - } - }, - "DBParameterGroupsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBParameterGroups":{"shape":"DBParameterGroupList"} - } - }, - "DBSecurityGroup":{ - "type":"structure", - "members":{ - "OwnerId":{"shape":"String"}, - "DBSecurityGroupName":{"shape":"String"}, - "DBSecurityGroupDescription":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "EC2SecurityGroups":{"shape":"EC2SecurityGroupList"}, - "IPRanges":{"shape":"IPRangeList"} - }, - "wrapper":true - }, - "DBSecurityGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupMembership":{ - "type":"structure", - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "DBSecurityGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"DBSecurityGroupMembership", - "locationName":"DBSecurityGroup" - } - }, - "DBSecurityGroupMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroups"} - } - }, - "DBSecurityGroupNameList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"DBSecurityGroupName" - } - }, - "DBSecurityGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupNotSupportedFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupNotSupported", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"QuotaExceeded.DBSecurityGroup", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroups":{ - "type":"list", - "member":{ - "shape":"DBSecurityGroup", - "locationName":"DBSecurityGroup" - } - }, - "DBSnapshot":{ - "type":"structure", - "members":{ - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"}, - "SnapshotCreateTime":{"shape":"TStamp"}, - "Engine":{"shape":"String"}, - "AllocatedStorage":{"shape":"Integer"}, - "Status":{"shape":"String"}, - "Port":{"shape":"Integer"}, - "AvailabilityZone":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "InstanceCreateTime":{"shape":"TStamp"}, - "MasterUsername":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "SnapshotType":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"} - }, - "wrapper":true - }, - "DBSnapshotAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSnapshotAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSnapshotList":{ - "type":"list", - "member":{ - "shape":"DBSnapshot", - "locationName":"DBSnapshot" - } - }, - "DBSnapshotMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSnapshots":{"shape":"DBSnapshotList"} - } - }, - "DBSnapshotNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSnapshotNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroup":{ - "type":"structure", - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "SubnetGroupStatus":{"shape":"String"}, - "Subnets":{"shape":"SubnetList"} - }, - "wrapper":true - }, - "DBSubnetGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupDoesNotCoverEnoughAZs":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupDoesNotCoverEnoughAZs", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSubnetGroups":{"shape":"DBSubnetGroups"} - } - }, - "DBSubnetGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroups":{ - "type":"list", - "member":{ - "shape":"DBSubnetGroup", - "locationName":"DBSubnetGroup" - } - }, - "DBSubnetQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetQuotaExceededFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBUpgradeDependencyFailureFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBUpgradeDependencyFailure", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DeleteDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "SkipFinalSnapshot":{"shape":"Boolean"}, - "FinalDBSnapshotIdentifier":{"shape":"String"} - } - }, - "DeleteDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "DeleteDBParameterGroupMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"} - } - }, - "DeleteDBSecurityGroupMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"} - } - }, - "DeleteDBSnapshotMessage":{ - "type":"structure", - "required":["DBSnapshotIdentifier"], - "members":{ - "DBSnapshotIdentifier":{"shape":"String"} - } - }, - "DeleteDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "DeleteDBSubnetGroupMessage":{ - "type":"structure", - "required":["DBSubnetGroupName"], - "members":{ - "DBSubnetGroupName":{"shape":"String"} - } - }, - "DeleteEventSubscriptionMessage":{ - "type":"structure", - "required":["SubscriptionName"], - "members":{ - "SubscriptionName":{"shape":"String"} - } - }, - "DeleteEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "DeleteOptionGroupMessage":{ - "type":"structure", - "required":["OptionGroupName"], - "members":{ - "OptionGroupName":{"shape":"String"} - } - }, - "DescribeDBEngineVersionsMessage":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"}, - "DefaultOnly":{"shape":"Boolean"}, - "ListSupportedCharacterSets":{"shape":"BooleanOptional"} - } - }, - "DescribeDBInstancesMessage":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBParameterGroupsMessage":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBParametersMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "Source":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSecurityGroupsMessage":{ - "type":"structure", - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSnapshotsMessage":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBSnapshotIdentifier":{"shape":"String"}, - "SnapshotType":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSubnetGroupsMessage":{ - "type":"structure", - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEngineDefaultParametersMessage":{ - "type":"structure", - "required":["DBParameterGroupFamily"], - "members":{ - "DBParameterGroupFamily":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEngineDefaultParametersResult":{ - "type":"structure", - "members":{ - "EngineDefaults":{"shape":"EngineDefaults"} - } - }, - "DescribeEventCategoriesMessage":{ - "type":"structure", - "members":{ - "SourceType":{"shape":"String"} - } - }, - "DescribeEventSubscriptionsMessage":{ - "type":"structure", - "members":{ - "SubscriptionName":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEventsMessage":{ - "type":"structure", - "members":{ - "SourceIdentifier":{"shape":"String"}, - "SourceType":{"shape":"SourceType"}, - "StartTime":{"shape":"TStamp"}, - "EndTime":{"shape":"TStamp"}, - "Duration":{"shape":"IntegerOptional"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeOptionGroupOptionsMessage":{ - "type":"structure", - "required":["EngineName"], - "members":{ - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeOptionGroupsMessage":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "Marker":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"} - } - }, - "DescribeOrderableDBInstanceOptionsMessage":{ - "type":"structure", - "required":["Engine"], - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "Vpc":{"shape":"BooleanOptional"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReservedDBInstancesMessage":{ - "type":"structure", - "members":{ - "ReservedDBInstanceId":{"shape":"String"}, - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReservedDBInstancesOfferingsMessage":{ - "type":"structure", - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "Double":{"type":"double"}, - "EC2SecurityGroup":{ - "type":"structure", - "members":{ - "Status":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "EC2SecurityGroupList":{ - "type":"list", - "member":{ - "shape":"EC2SecurityGroup", - "locationName":"EC2SecurityGroup" - } - }, - "Endpoint":{ - "type":"structure", - "members":{ - "Address":{"shape":"String"}, - "Port":{"shape":"Integer"} - } - }, - "EngineDefaults":{ - "type":"structure", - "members":{ - "DBParameterGroupFamily":{"shape":"String"}, - "Marker":{"shape":"String"}, - "Parameters":{"shape":"ParametersList"} - }, - "wrapper":true - }, - "Event":{ - "type":"structure", - "members":{ - "SourceIdentifier":{"shape":"String"}, - "SourceType":{"shape":"SourceType"}, - "Message":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "Date":{"shape":"TStamp"} - } - }, - "EventCategoriesList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"EventCategory" - } - }, - "EventCategoriesMap":{ - "type":"structure", - "members":{ - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"} - }, - "wrapper":true - }, - "EventCategoriesMapList":{ - "type":"list", - "member":{ - "shape":"EventCategoriesMap", - "locationName":"EventCategoriesMap" - } - }, - "EventCategoriesMessage":{ - "type":"structure", - "members":{ - "EventCategoriesMapList":{"shape":"EventCategoriesMapList"} - } - }, - "EventList":{ - "type":"list", - "member":{ - "shape":"Event", - "locationName":"Event" - } - }, - "EventSubscription":{ - "type":"structure", - "members":{ - "Id":{"shape":"String"}, - "CustomerAwsId":{"shape":"String"}, - "CustSubscriptionId":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "Status":{"shape":"String"}, - "SubscriptionCreationTime":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "SourceIdsList":{"shape":"SourceIdsList"}, - "EventCategoriesList":{"shape":"EventCategoriesList"}, - "Enabled":{"shape":"Boolean"} - }, - "wrapper":true - }, - "EventSubscriptionQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"EventSubscriptionQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "EventSubscriptionsList":{ - "type":"list", - "member":{ - "shape":"EventSubscription", - "locationName":"EventSubscription" - } - }, - "EventSubscriptionsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "EventSubscriptionsList":{"shape":"EventSubscriptionsList"} - } - }, - "EventsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "Events":{"shape":"EventList"} - } - }, - "IPRange":{ - "type":"structure", - "members":{ - "Status":{"shape":"String"}, - "CIDRIP":{"shape":"String"} - } - }, - "IPRangeList":{ - "type":"list", - "member":{ - "shape":"IPRange", - "locationName":"IPRange" - } - }, - "InstanceQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InstanceQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InsufficientDBInstanceCapacityFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InsufficientDBInstanceCapacity", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "Integer":{"type":"integer"}, - "IntegerOptional":{"type":"integer"}, - "InvalidDBInstanceStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBInstanceState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBParameterGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBParameterGroupState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSecurityGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSecurityGroupState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSnapshotStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSnapshotState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSubnetGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSubnetGroupStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSubnetStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSubnetStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidEventSubscriptionStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidEventSubscriptionState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidOptionGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidOptionGroupStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidRestoreFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidRestoreFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidSubnet":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidSubnet", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidVPCNetworkStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidVPCNetworkStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "KeyList":{ - "type":"list", - "member":{"shape":"String"} - }, - "ListTagsForResourceMessage":{ - "type":"structure", - "required":["ResourceName"], - "members":{ - "ResourceName":{"shape":"String"} - } - }, - "ModifyDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "DBInstanceClass":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "ApplyImmediately":{"shape":"Boolean"}, - "MasterUserPassword":{"shape":"String"}, - "DBParameterGroupName":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "AllowMajorVersionUpgrade":{"shape":"Boolean"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "NewDBInstanceIdentifier":{"shape":"String"} - } - }, - "ModifyDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "ModifyDBParameterGroupMessage":{ - "type":"structure", - "required":[ - "DBParameterGroupName", - "Parameters" - ], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "Parameters":{"shape":"ParametersList"} - } - }, - "ModifyDBSubnetGroupMessage":{ - "type":"structure", - "required":[ - "DBSubnetGroupName", - "SubnetIds" - ], - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "SubnetIds":{"shape":"SubnetIdentifierList"} - } - }, - "ModifyDBSubnetGroupResult":{ - "type":"structure", - "members":{ - "DBSubnetGroup":{"shape":"DBSubnetGroup"} - } - }, - "ModifyEventSubscriptionMessage":{ - "type":"structure", - "required":["SubscriptionName"], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "Enabled":{"shape":"BooleanOptional"} - } - }, - "ModifyEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "ModifyOptionGroupMessage":{ - "type":"structure", - "required":["OptionGroupName"], - "members":{ - "OptionGroupName":{"shape":"String"}, - "OptionsToInclude":{"shape":"OptionConfigurationList"}, - "OptionsToRemove":{"shape":"OptionNamesList"}, - "ApplyImmediately":{"shape":"Boolean"} - } - }, - "ModifyOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, - "Option":{ - "type":"structure", - "members":{ - "OptionName":{"shape":"String"}, - "OptionDescription":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "DBSecurityGroupMemberships":{"shape":"DBSecurityGroupMembershipList"}, - "VpcSecurityGroupMemberships":{"shape":"VpcSecurityGroupMembershipList"} - } - }, - "OptionConfiguration":{ - "type":"structure", - "required":["OptionName"], - "members":{ - "OptionName":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "DBSecurityGroupMemberships":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupMemberships":{"shape":"VpcSecurityGroupIdList"} - } - }, - "OptionConfigurationList":{ - "type":"list", - "member":{ - "shape":"OptionConfiguration", - "locationName":"OptionConfiguration" - } - }, - "OptionGroup":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "OptionGroupDescription":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "Options":{"shape":"OptionsList"}, - "AllowsVpcAndNonVpcInstanceMemberships":{"shape":"Boolean"}, - "VpcId":{"shape":"String"} - }, - "wrapper":true - }, - "OptionGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupAlreadyExistsFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "OptionGroupMembership":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "OptionGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "OptionGroupOption":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "Description":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "MinimumRequiredMinorEngineVersion":{"shape":"String"}, - "PortRequired":{"shape":"Boolean"}, - "DefaultPort":{"shape":"IntegerOptional"}, - "OptionsDependedOn":{"shape":"OptionsDependedOn"} - } - }, - "OptionGroupOptionsList":{ - "type":"list", - "member":{ - "shape":"OptionGroupOption", - "locationName":"OptionGroupOption" - } - }, - "OptionGroupOptionsMessage":{ - "type":"structure", - "members":{ - "OptionGroupOptions":{"shape":"OptionGroupOptionsList"}, - "Marker":{"shape":"String"} - } - }, - "OptionGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupQuotaExceededFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "OptionGroups":{ - "type":"structure", - "members":{ - "OptionGroupsList":{"shape":"OptionGroupsList"}, - "Marker":{"shape":"String"} - } - }, - "OptionGroupsList":{ - "type":"list", - "member":{ - "shape":"OptionGroup", - "locationName":"OptionGroup" - } - }, - "OptionNamesList":{ - "type":"list", - "member":{"shape":"String"} - }, - "OptionsDependedOn":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"OptionName" - } - }, - "OptionsList":{ - "type":"list", - "member":{ - "shape":"Option", - "locationName":"Option" - } - }, - "OrderableDBInstanceOption":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "AvailabilityZones":{"shape":"AvailabilityZoneList"}, - "MultiAZCapable":{"shape":"Boolean"}, - "ReadReplicaCapable":{"shape":"Boolean"}, - "Vpc":{"shape":"Boolean"} - }, - "wrapper":true - }, - "OrderableDBInstanceOptionsList":{ - "type":"list", - "member":{ - "shape":"OrderableDBInstanceOption", - "locationName":"OrderableDBInstanceOption" - } - }, - "OrderableDBInstanceOptionsMessage":{ - "type":"structure", - "members":{ - "OrderableDBInstanceOptions":{"shape":"OrderableDBInstanceOptionsList"}, - "Marker":{"shape":"String"} - } - }, - "Parameter":{ - "type":"structure", - "members":{ - "ParameterName":{"shape":"String"}, - "ParameterValue":{"shape":"String"}, - "Description":{"shape":"String"}, - "Source":{"shape":"String"}, - "ApplyType":{"shape":"String"}, - "DataType":{"shape":"String"}, - "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"}, - "MinimumEngineVersion":{"shape":"String"}, - "ApplyMethod":{"shape":"ApplyMethod"} - } - }, - "ParametersList":{ - "type":"list", - "member":{ - "shape":"Parameter", - "locationName":"Parameter" - } - }, - "PendingModifiedValues":{ - "type":"structure", - "members":{ - "DBInstanceClass":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "MasterUserPassword":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "DBInstanceIdentifier":{"shape":"String"} - } - }, - "PointInTimeRestoreNotEnabledFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"PointInTimeRestoreNotEnabled", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "PromoteReadReplicaMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"} - } - }, - "PromoteReadReplicaResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "ProvisionedIopsNotAvailableInAZFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ProvisionedIopsNotAvailableInAZFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "PurchaseReservedDBInstancesOfferingMessage":{ - "type":"structure", - "required":["ReservedDBInstancesOfferingId"], - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "ReservedDBInstanceId":{"shape":"String"}, - "DBInstanceCount":{"shape":"IntegerOptional"} - } - }, - "PurchaseReservedDBInstancesOfferingResult":{ - "type":"structure", - "members":{ - "ReservedDBInstance":{"shape":"ReservedDBInstance"} - } - }, - "ReadReplicaDBInstanceIdentifierList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ReadReplicaDBInstanceIdentifier" - } - }, - "RebootDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "ForceFailover":{"shape":"BooleanOptional"} - } - }, - "RebootDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RecurringCharge":{ - "type":"structure", - "members":{ - "RecurringChargeAmount":{"shape":"Double"}, - "RecurringChargeFrequency":{"shape":"String"} - }, - "wrapper":true - }, - "RecurringChargeList":{ - "type":"list", - "member":{ - "shape":"RecurringCharge", - "locationName":"RecurringCharge" - } - }, - "RemoveSourceIdentifierFromSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SourceIdentifier" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SourceIdentifier":{"shape":"String"} - } - }, - "RemoveSourceIdentifierFromSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "RemoveTagsFromResourceMessage":{ - "type":"structure", - "required":[ - "ResourceName", - "TagKeys" - ], - "members":{ - "ResourceName":{"shape":"String"}, - "TagKeys":{"shape":"KeyList"} - } - }, - "ReservedDBInstance":{ - "type":"structure", - "members":{ - "ReservedDBInstanceId":{"shape":"String"}, - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "StartTime":{"shape":"TStamp"}, - "Duration":{"shape":"Integer"}, - "FixedPrice":{"shape":"Double"}, - "UsagePrice":{"shape":"Double"}, - "CurrencyCode":{"shape":"String"}, - "DBInstanceCount":{"shape":"Integer"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"Boolean"}, - "State":{"shape":"String"}, - "RecurringCharges":{"shape":"RecurringChargeList"} - }, - "wrapper":true - }, - "ReservedDBInstanceAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceAlreadyExists", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstanceList":{ - "type":"list", - "member":{ - "shape":"ReservedDBInstance", - "locationName":"ReservedDBInstance" - } - }, - "ReservedDBInstanceMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReservedDBInstances":{"shape":"ReservedDBInstanceList"} - } - }, - "ReservedDBInstanceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstanceQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstancesOffering":{ - "type":"structure", - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"Integer"}, - "FixedPrice":{"shape":"Double"}, - "UsagePrice":{"shape":"Double"}, - "CurrencyCode":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"Boolean"}, - "RecurringCharges":{"shape":"RecurringChargeList"} - }, - "wrapper":true - }, - "ReservedDBInstancesOfferingList":{ - "type":"list", - "member":{ - "shape":"ReservedDBInstancesOffering", - "locationName":"ReservedDBInstancesOffering" - } - }, - "ReservedDBInstancesOfferingMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReservedDBInstancesOfferings":{"shape":"ReservedDBInstancesOfferingList"} - } - }, - "ReservedDBInstancesOfferingNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstancesOfferingNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ResetDBParameterGroupMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "ResetAllParameters":{"shape":"Boolean"}, - "Parameters":{"shape":"ParametersList"} - } - }, - "RestoreDBInstanceFromDBSnapshotMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "DBSnapshotIdentifier" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Engine":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"} - } - }, - "RestoreDBInstanceFromDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RestoreDBInstanceToPointInTimeMessage":{ - "type":"structure", - "required":[ - "SourceDBInstanceIdentifier", - "TargetDBInstanceIdentifier" - ], - "members":{ - "SourceDBInstanceIdentifier":{"shape":"String"}, - "TargetDBInstanceIdentifier":{"shape":"String"}, - "RestoreTime":{"shape":"TStamp"}, - "UseLatestRestorableTime":{"shape":"Boolean"}, - "DBInstanceClass":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Engine":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"} - } - }, - "RestoreDBInstanceToPointInTimeResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RevokeDBSecurityGroupIngressMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "CIDRIP":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "RevokeDBSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "SNSInvalidTopicFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSInvalidTopic", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SNSNoAuthorizationFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSNoAuthorization", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SNSTopicArnNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSTopicArnNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SnapshotQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SnapshotQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SourceIdsList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SourceId" - } - }, - "SourceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SourceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SourceType":{ - "type":"string", - "enum":[ - "db-instance", - "db-parameter-group", - "db-security-group", - "db-snapshot" - ] - }, - "StorageQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"StorageQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "String":{"type":"string"}, - "Subnet":{ - "type":"structure", - "members":{ - "SubnetIdentifier":{"shape":"String"}, - "SubnetAvailabilityZone":{"shape":"AvailabilityZone"}, - "SubnetStatus":{"shape":"String"} - } - }, - "SubnetAlreadyInUse":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubnetAlreadyInUse", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SubnetIdentifierList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SubnetIdentifier" - } - }, - "SubnetList":{ - "type":"list", - "member":{ - "shape":"Subnet", - "locationName":"Subnet" - } - }, - "SubscriptionAlreadyExistFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionAlreadyExist", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SubscriptionCategoryNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionCategoryNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SubscriptionNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SupportedCharacterSetsList":{ - "type":"list", - "member":{ - "shape":"CharacterSet", - "locationName":"CharacterSet" - } - }, - "TStamp":{"type":"timestamp"}, - "Tag":{ - "type":"structure", - "members":{ - "Key":{"shape":"String"}, - "Value":{"shape":"String"} - } - }, - "TagList":{ - "type":"list", - "member":{ - "shape":"Tag", - "locationName":"Tag" - } - }, - "TagListMessage":{ - "type":"structure", - "members":{ - "TagList":{"shape":"TagList"} - } - }, - "VpcSecurityGroupIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"VpcSecurityGroupId" - } - }, - "VpcSecurityGroupMembership":{ - "type":"structure", - "members":{ - "VpcSecurityGroupId":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "VpcSecurityGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"VpcSecurityGroupMembership", - "locationName":"VpcSecurityGroupMembership" - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/docs-2.json deleted file mode 100644 index b955e246d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/docs-2.json +++ /dev/null @@ -1,1681 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon Relational Database Service

    Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

    Amazon RDS gives you access to the capabilities of a familiar MySQL or Oracle database server. This means the code, applications, and tools you already use today with your existing MySQL or Oracle databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB Instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

    This is the Amazon RDS API Reference. It contains a comprehensive description of all Amazon RDS Query APIs and data types. Note that this API is asynchronous and some actions may require polling to determine when an action has been applied. See the parameter description to determine if a change is applied immediately or on the next instance reboot or during the maintenance window. To get started with Amazon RDS, go to the Amazon RDS Getting Started Guide. For more information on Amazon RDS concepts and usage scenarios, go to the Amazon RDS User Guide.

    ", - "operations": { - "AddSourceIdentifierToSubscription": "

    Adds a source identifier to an existing RDS event notification subscription.

    ", - "AddTagsToResource": "

    Adds metadata tags to a DB Instance. These tags can also be used with cost allocation reporting to track cost associated with a DB Instance.

    For an overview on tagging DB Instances, see DB Instance Tags.

    ", - "AuthorizeDBSecurityGroupIngress": "

    Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC Security Groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

    You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB Instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB Instance in another.

    For an overview of CIDR ranges, go to the Wikipedia Tutorial.

    ", - "CopyDBSnapshot": "

    Copies the specified DBSnapshot. The source DBSnapshot must be in the \"available\" state.

    ", - "CreateDBInstance": "

    Creates a new DB instance.

    ", - "CreateDBInstanceReadReplica": "

    Creates a DB Instance that acts as a Read Replica of a source DB Instance.

    All Read Replica DB Instances are created as Single-AZ deployments with backups disabled. All other DB Instance attributes (including DB Security Groups and DB Parameter Groups) are inherited from the source DB Instance, except as specified below.

    The source DB Instance must have backup retention enabled.

    ", - "CreateDBParameterGroup": "

    Creates a new DB Parameter Group.

    A DB Parameter Group is initially created with the default parameters for the database engine used by the DB Instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB Parameter Group, you need to associate it with your DB Instance using ModifyDBInstance. When you associate a new DB Parameter Group with a running DB Instance, you need to reboot the DB Instance for the new DB Parameter Group and associated settings to take effect.

    ", - "CreateDBSecurityGroup": "

    Creates a new DB Security Group. DB Security Groups control access to a DB Instance.

    ", - "CreateDBSnapshot": "

    Creates a DBSnapshot. The source DBInstance must be in \"available\" state.

    ", - "CreateDBSubnetGroup": "

    Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

    ", - "CreateEventSubscription": "

    Creates an RDS event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the RDS console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

    You can specify the type of source (SourceType) you want to be notified of, provide a list of RDS sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

    If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you will receive notice of the events for that source type for all your RDS sources. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all RDS sources belonging to your customer account.

    ", - "CreateOptionGroup": "

    Creates a new Option Group.

    ", - "DeleteDBInstance": "

    The DeleteDBInstance API deletes a previously provisioned RDS instance. A successful response from the web service indicates the request was received correctly. If a final DBSnapshot is requested the status of the RDS instance will be \"deleting\" until the DBSnapshot is created. DescribeDBInstance is used to monitor the status of this operation. This cannot be canceled or reverted once submitted.

    ", - "DeleteDBParameterGroup": "

    Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted.

    The specified DB Parameter Group cannot be associated with any DB Instances. ", - "DeleteDBSecurityGroup": "

    Deletes a DB Security Group.

    The specified DB Security Group must not be associated with any DB Instances.", - "DeleteDBSnapshot": "

    Deletes a DBSnapshot.

    The DBSnapshot must be in the available state to be deleted.", - "DeleteDBSubnetGroup": "

    Deletes a DB subnet group.

    The specified database subnet group must not be associated with any DB instances.", - "DeleteEventSubscription": "

    Deletes an RDS event notification subscription.

    ", - "DeleteOptionGroup": "

    Deletes an existing Option Group.

    ", - "DescribeDBEngineVersions": "

    Returns a list of the available DB engines.

    ", - "DescribeDBInstances": "

    Returns information about provisioned RDS instances. This API supports pagination.

    ", - "DescribeDBParameterGroups": "

    Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName is specified, the list will contain only the description of the specified DBParameterGroup.

    ", - "DescribeDBParameters": "

    Returns the detailed parameter list for a particular DBParameterGroup.

    ", - "DescribeDBSecurityGroups": "

    Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DBSecurityGroup.

    For an overview of CIDR ranges, go to the Wikipedia Tutorial.

    ", - "DescribeDBSnapshots": "

    Returns information about DBSnapshots. This API supports pagination.

    ", - "DescribeDBSubnetGroups": "

    Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.

    For an overview of CIDR ranges, go to the Wikipedia Tutorial.

    ", - "DescribeEngineDefaultParameters": "

    Returns the default engine and system parameter information for the specified database engine.

    ", - "DescribeEventCategories": "

    Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

    ", - "DescribeEventSubscriptions": "

    Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

    If you specify a SubscriptionName, lists the description for that subscription.

    ", - "DescribeEvents": "

    Returns events related to DB instances, DB security groups, DB Snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB Iinstance, DB security group, DB Snapshot, or DB parameter group can be obtained by providing the source identifier as a parameter. By default, the past hour of events are returned.

    You can see a list of event categories and source types in the Events topic in the Amazon RDS User Guide.

    ", - "DescribeOptionGroupOptions": "

    Describes all available options.

    ", - "DescribeOptionGroups": "

    Describes the available option groups.

    ", - "DescribeOrderableDBInstanceOptions": "

    Returns a list of orderable DB Instance options for the specified engine.

    ", - "DescribeReservedDBInstances": "

    Returns information about reserved DB Instances for this account, or about a specified reserved DB Instance.

    ", - "DescribeReservedDBInstancesOfferings": "

    Lists available reserved DB Instance offerings.

    ", - "ListTagsForResource": "

    Lists all tags on a DB Instance.

    For an overview on tagging DB Instances, see DB Instance Tags.

    ", - "ModifyDBInstance": "

    Modify settings for a DB Instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

    ", - "ModifyDBParameterGroup": "

    Modifies the parameters of a DBParameterGroup. To modify more than one parameter submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

    The apply-immediate method can be used only for dynamic parameters; the pending-reboot method can be used with MySQL and Oracle DB Instances for either dynamic or static parameters. For Microsoft SQL Server DB Instances, the pending-reboot method can be used only for static parameters.

    ", - "ModifyDBSubnetGroup": "

    Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

    ", - "ModifyEventSubscription": "

    Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

    You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    ", - "ModifyOptionGroup": "

    Modifies an existing Option Group.

    ", - "PromoteReadReplica": "

    Promotes a Read Replica DB Instance to a standalone DB Instance.

    ", - "PurchaseReservedDBInstancesOffering": "

    Purchases a reserved DB Instance offering.

    ", - "RebootDBInstance": "

    Reboots a previously provisioned RDS instance. This API results in the application of modified DBParameterGroup parameters with ApplyStatus of pending-reboot to the RDS instance. This action is taken as soon as possible, and results in a momentary outage to the RDS instance during which the RDS instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. A DBInstance event is created when the reboot is completed.

    ", - "RemoveSourceIdentifierFromSubscription": "

    Removes a source identifier from an existing RDS event notification subscription.

    ", - "RemoveTagsFromResource": "

    Removes metadata tags from a DB Instance.

    For an overview on tagging DB Instances, see DB Instance Tags.

    ", - "ResetDBParameterGroup": "

    Modifies the parameters of a DBParameterGroup to the engine/system default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DBParameterGroup specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

    ", - "RestoreDBInstanceFromDBSnapshot": "

    Creates a new DB Instance from a DB snapshot. The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.

    ", - "RestoreDBInstanceToPointInTime": "

    Restores a DB Instance to an arbitrary point-in-time. Users can restore to any point in time before the latestRestorableTime for up to backupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.

    ", - "RevokeDBSecurityGroupIngress": "

    Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

    " - }, - "shapes": { - "AddSourceIdentifierToSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "AddSourceIdentifierToSubscriptionResult": { - "base": null, - "refs": { - } - }, - "AddTagsToResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "ApplyMethod": { - "base": null, - "refs": { - "Parameter$ApplyMethod": "

    Indicates when to apply parameter updates.

    " - } - }, - "AuthorizationAlreadyExistsFault": { - "base": "

    The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

    ", - "refs": { - } - }, - "AuthorizationNotFoundFault": { - "base": "

    Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

    RDS may not also be authorized via IAM to perform necessary actions on your behalf.

    ", - "refs": { - } - }, - "AuthorizationQuotaExceededFault": { - "base": "

    DB security group authorization quota has been reached.

    ", - "refs": { - } - }, - "AuthorizeDBSecurityGroupIngressMessage": { - "base": "

    ", - "refs": { - } - }, - "AuthorizeDBSecurityGroupIngressResult": { - "base": null, - "refs": { - } - }, - "AvailabilityZone": { - "base": "

    Contains Availability Zone information.

    This data type is used as an element in the following data type:

    ", - "refs": { - "AvailabilityZoneList$member": null, - "Subnet$SubnetAvailabilityZone": null - } - }, - "AvailabilityZoneList": { - "base": null, - "refs": { - "OrderableDBInstanceOption$AvailabilityZones": "

    A list of availability zones for the orderable DB Instance.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "AvailabilityZone$ProvisionedIopsCapable": "

    True indicates the availability zone is capable of provisioned IOPs.

    ", - "DBInstance$MultiAZ": "

    Specifies if the DB Instance is a Multi-AZ deployment.

    ", - "DBInstance$AutoMinorVersionUpgrade": "

    Indicates that minor version patches are applied automatically.

    ", - "DBInstance$PubliclyAccessible": null, - "DeleteDBInstanceMessage$SkipFinalSnapshot": "

    Determines whether a final DB Snapshot is created before the DB Instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB Snapshot is created before the DB Instance is deleted.

    The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

    Default: false

    ", - "DescribeDBEngineVersionsMessage$DefaultOnly": "

    Indicates that only the default version of the specified engine or engine and major version combination is returned.

    ", - "EventSubscription$Enabled": "

    A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

    ", - "ModifyDBInstanceMessage$ApplyImmediately": "

    Specifies whether or not the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB Instance.

    If this parameter is passed as false, changes to the DB Instance are applied on the next call to RebootDBInstance, the next maintenance reboot, or the next failure reboot, whichever occurs first. See each parameter to determine when a change is applied.

    Default: false

    ", - "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": "

    Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB Instance's current version.

    ", - "ModifyOptionGroupMessage$ApplyImmediately": "

    Indicates whether the changes should be applied immediately, or during the next maintenance window for each instance associated with the Option Group.

    ", - "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": "

    Indicates whether this option group can be applied to both VPC and non-VPC instances. The value 'true' indicates the option group can be applied to both VPC and non-VPC instances.

    ", - "OptionGroupOption$PortRequired": "

    Specifies whether the option requires a port.

    ", - "OrderableDBInstanceOption$MultiAZCapable": "

    Indicates whether this orderable DB Instance is multi-AZ capable.

    ", - "OrderableDBInstanceOption$ReadReplicaCapable": "

    Indicates whether this orderable DB Instance can have a read replica.

    ", - "OrderableDBInstanceOption$Vpc": "

    Indicates whether this is a VPC orderable DB Instance.

    ", - "Parameter$IsModifiable": "

    Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

    ", - "ReservedDBInstance$MultiAZ": "

    Indicates if the reservation applies to Multi-AZ deployments.

    ", - "ReservedDBInstancesOffering$MultiAZ": "

    Indicates if the offering applies to Multi-AZ deployments.

    ", - "ResetDBParameterGroupMessage$ResetAllParameters": "

    Specifies whether (true) or not (false) to reset all parameters in the DB Parameter Group to default values.

    Default: true

    ", - "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": "

    Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

    Default: false

    Constraints: Cannot be specified if RestoreTime parameter is provided.

    " - } - }, - "BooleanOptional": { - "base": null, - "refs": { - "CreateDBInstanceMessage$MultiAZ": "

    Specifies if the DB Instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "

    Indicates that minor engine upgrades will be applied automatically to the DB Instance during the maintenance window.

    Default: true

    ", - "CreateDBInstanceMessage$PubliclyAccessible": null, - "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": "

    Indicates that minor engine upgrades will be applied automatically to the Read Replica during the maintenance window.

    Default: Inherits from the source DB Instance

    ", - "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": null, - "CreateEventSubscriptionMessage$Enabled": "

    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

    ", - "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

    If this parameter is specified, and if the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Vpc": "

    The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

    ", - "DescribeReservedDBInstancesMessage$MultiAZ": "

    The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter.

    ", - "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": "

    The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter.

    ", - "ModifyDBInstanceMessage$MultiAZ": "

    Specifies if the DB Instance is a Multi-AZ deployment. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Constraints: Cannot be specified if the DB Instance is a read replica.

    ", - "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and RDS has enabled auto patching for that engine version.

    ", - "ModifyEventSubscriptionMessage$Enabled": "

    A Boolean value; set to true to activate the subscription.

    ", - "PendingModifiedValues$MultiAZ": "

    Indicates that the Single-AZ DB Instance is to change to a Multi-AZ deployment.

    ", - "RebootDBInstanceMessage$ForceFailover": "

    When true, the reboot will be conducted through a MultiAZ failover.

    Constraint: You cannot specify true if the instance is not configured for MultiAZ.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": "

    Specifies if the DB Instance is a Multi-AZ deployment.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": null, - "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

    ", - "RestoreDBInstanceToPointInTimeMessage$MultiAZ": "

    Specifies if the DB Instance is a Multi-AZ deployment.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": null, - "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

    " - } - }, - "CharacterSet": { - "base": "

    This data type is used as a response element in the action DescribeDBEngineVersions.

    ", - "refs": { - "DBEngineVersion$DefaultCharacterSet": "

    The default character set for new instances of this engine version, if the CharacterSetName parameter of the CreateDBInstance API is not specified.

    ", - "SupportedCharacterSetsList$member": null - } - }, - "CopyDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "CopyDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBInstanceReadReplicaMessage": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceReadReplicaResult": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceResult": { - "base": null, - "refs": { - } - }, - "CreateDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBParameterGroupResult": { - "base": null, - "refs": { - } - }, - "CreateDBSecurityGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSecurityGroupResult": { - "base": null, - "refs": { - } - }, - "CreateDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "CreateDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSubnetGroupResult": { - "base": null, - "refs": { - } - }, - "CreateEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "CreateOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateOptionGroupResult": { - "base": null, - "refs": { - } - }, - "DBEngineVersion": { - "base": "

    This data type is used as a response element in the action DescribeDBEngineVersions.

    ", - "refs": { - "DBEngineVersionList$member": null - } - }, - "DBEngineVersionList": { - "base": null, - "refs": { - "DBEngineVersionMessage$DBEngineVersions": "

    A list of DBEngineVersion elements.

    " - } - }, - "DBEngineVersionMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBEngineVersions action.

    ", - "refs": { - } - }, - "DBInstance": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBInstances action.

    ", - "refs": { - "CreateDBInstanceReadReplicaResult$DBInstance": null, - "CreateDBInstanceResult$DBInstance": null, - "DBInstanceList$member": null, - "DeleteDBInstanceResult$DBInstance": null, - "ModifyDBInstanceResult$DBInstance": null, - "PromoteReadReplicaResult$DBInstance": null, - "RebootDBInstanceResult$DBInstance": null, - "RestoreDBInstanceFromDBSnapshotResult$DBInstance": null, - "RestoreDBInstanceToPointInTimeResult$DBInstance": null - } - }, - "DBInstanceAlreadyExistsFault": { - "base": "

    User already has a DB instance with the given identifier.

    ", - "refs": { - } - }, - "DBInstanceList": { - "base": null, - "refs": { - "DBInstanceMessage$DBInstances": "

    A list of DBInstance instances.

    " - } - }, - "DBInstanceMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBInstances action.

    ", - "refs": { - } - }, - "DBInstanceNotFoundFault": { - "base": "

    DBInstanceIdentifier does not refer to an existing DB instance.

    ", - "refs": { - } - }, - "DBParameterGroup": { - "base": "

    Contains the result of a successful invocation of the CreateDBParameterGroup action.

    This data type is used as a request parameter in the DeleteDBParameterGroup action, and as a response element in the DescribeDBParameterGroups action.

    ", - "refs": { - "CreateDBParameterGroupResult$DBParameterGroup": null, - "DBParameterGroupList$member": null - } - }, - "DBParameterGroupAlreadyExistsFault": { - "base": "

    A DB parameter group with the same name exists.

    ", - "refs": { - } - }, - "DBParameterGroupDetails": { - "base": "

    Contains the result of a successful invocation of the DescribeDBParameters action.

    ", - "refs": { - } - }, - "DBParameterGroupList": { - "base": null, - "refs": { - "DBParameterGroupsMessage$DBParameterGroups": "

    A list of DBParameterGroup instances.

    " - } - }, - "DBParameterGroupNameMessage": { - "base": "

    Contains the result of a successful invocation of the ModifyDBParameterGroup or ResetDBParameterGroup action.

    ", - "refs": { - } - }, - "DBParameterGroupNotFoundFault": { - "base": "

    DBParameterGroupName does not refer to an existing DB parameter group.

    ", - "refs": { - } - }, - "DBParameterGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB parameter groups.

    ", - "refs": { - } - }, - "DBParameterGroupStatus": { - "base": "

    The status of the DB Parameter Group.

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBParameterGroupStatusList$member": null - } - }, - "DBParameterGroupStatusList": { - "base": null, - "refs": { - "DBInstance$DBParameterGroups": "

    Provides the list of DB Parameter Groups applied to this DB Instance.

    " - } - }, - "DBParameterGroupsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBParameterGroups action.

    ", - "refs": { - } - }, - "DBSecurityGroup": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSecurityGroups action.

    ", - "refs": { - "AuthorizeDBSecurityGroupIngressResult$DBSecurityGroup": null, - "CreateDBSecurityGroupResult$DBSecurityGroup": null, - "DBSecurityGroups$member": null, - "RevokeDBSecurityGroupIngressResult$DBSecurityGroup": null - } - }, - "DBSecurityGroupAlreadyExistsFault": { - "base": "

    A DB security group with the name specified in DBSecurityGroupName already exists.

    ", - "refs": { - } - }, - "DBSecurityGroupMembership": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBSecurityGroupMembershipList$member": null - } - }, - "DBSecurityGroupMembershipList": { - "base": null, - "refs": { - "DBInstance$DBSecurityGroups": "

    Provides List of DB Security Group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

    ", - "Option$DBSecurityGroupMemberships": "

    If the Option requires access to a port, then this DB Security Group allows access to the port.

    " - } - }, - "DBSecurityGroupMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSecurityGroups action.

    ", - "refs": { - } - }, - "DBSecurityGroupNameList": { - "base": null, - "refs": { - "CreateDBInstanceMessage$DBSecurityGroups": "

    A list of DB Security Groups to associate with this DB Instance.

    Default: The default DB Security Group for the database engine.

    ", - "ModifyDBInstanceMessage$DBSecurityGroups": "

    A list of DB Security Groups to authorize on this DB Instance. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "OptionConfiguration$DBSecurityGroupMemberships": "

    A list of DBSecurityGroupMemebrship name strings used for this option.

    " - } - }, - "DBSecurityGroupNotFoundFault": { - "base": "

    DBSecurityGroupName does not refer to an existing DB security group.

    ", - "refs": { - } - }, - "DBSecurityGroupNotSupportedFault": { - "base": "

    A DB security group is not allowed for this action.

    ", - "refs": { - } - }, - "DBSecurityGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB security groups.

    ", - "refs": { - } - }, - "DBSecurityGroups": { - "base": null, - "refs": { - "DBSecurityGroupMessage$DBSecurityGroups": "

    A list of DBSecurityGroup instances.

    " - } - }, - "DBSnapshot": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSnapshots action.

    ", - "refs": { - "CopyDBSnapshotResult$DBSnapshot": null, - "CreateDBSnapshotResult$DBSnapshot": null, - "DBSnapshotList$member": null, - "DeleteDBSnapshotResult$DBSnapshot": null - } - }, - "DBSnapshotAlreadyExistsFault": { - "base": "

    DBSnapshotIdentifier is already used by an existing snapshot.

    ", - "refs": { - } - }, - "DBSnapshotList": { - "base": null, - "refs": { - "DBSnapshotMessage$DBSnapshots": "

    A list of DBSnapshot instances.

    " - } - }, - "DBSnapshotMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSnapshots action.

    ", - "refs": { - } - }, - "DBSnapshotNotFoundFault": { - "base": "

    DBSnapshotIdentifier does not refer to an existing DB snapshot.

    ", - "refs": { - } - }, - "DBSubnetGroup": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSubnetGroups action.

    ", - "refs": { - "CreateDBSubnetGroupResult$DBSubnetGroup": null, - "DBInstance$DBSubnetGroup": "

    Provides the inforamtion of the subnet group associated with the DB instance, including the name, descrption and subnets in the subnet group.

    ", - "DBSubnetGroups$member": null, - "ModifyDBSubnetGroupResult$DBSubnetGroup": null - } - }, - "DBSubnetGroupAlreadyExistsFault": { - "base": "

    DBSubnetGroupName is already used by an existing DB subnet group.

    ", - "refs": { - } - }, - "DBSubnetGroupDoesNotCoverEnoughAZs": { - "base": "

    Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

    ", - "refs": { - } - }, - "DBSubnetGroupMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSubnetGroups action.

    ", - "refs": { - } - }, - "DBSubnetGroupNotFoundFault": { - "base": "

    DBSubnetGroupName does not refer to an existing DB subnet group.

    ", - "refs": { - } - }, - "DBSubnetGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB subnet groups.

    ", - "refs": { - } - }, - "DBSubnetGroups": { - "base": null, - "refs": { - "DBSubnetGroupMessage$DBSubnetGroups": "

    A list of DBSubnetGroup instances.

    " - } - }, - "DBSubnetQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

    ", - "refs": { - } - }, - "DBUpgradeDependencyFailureFault": { - "base": "

    The DB upgrade failed because a resource the DB depends on could not be modified.

    ", - "refs": { - } - }, - "DeleteDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBInstanceResult": { - "base": null, - "refs": { - } - }, - "DeleteDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSecurityGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "DeleteDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "DeleteOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBEngineVersionsMessage": { - "base": null, - "refs": { - } - }, - "DescribeDBInstancesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBParameterGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBParametersMessage": { - "base": null, - "refs": { - } - }, - "DescribeDBSecurityGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBSnapshotsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBSubnetGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEngineDefaultParametersMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEngineDefaultParametersResult": { - "base": null, - "refs": { - } - }, - "DescribeEventCategoriesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEventSubscriptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEventsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOptionGroupOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOptionGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeReservedDBInstancesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeReservedDBInstancesOfferingsMessage": { - "base": "

    ", - "refs": { - } - }, - "Double": { - "base": null, - "refs": { - "RecurringCharge$RecurringChargeAmount": "

    The amount of the recurring charge.

    ", - "ReservedDBInstance$FixedPrice": "

    The fixed price charged for this reserved DB Instance.

    ", - "ReservedDBInstance$UsagePrice": "

    The hourly price charged for this reserved DB Instance.

    ", - "ReservedDBInstancesOffering$FixedPrice": "

    The fixed price charged for this offering.

    ", - "ReservedDBInstancesOffering$UsagePrice": "

    The hourly price charged for this offering.

    " - } - }, - "EC2SecurityGroup": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "EC2SecurityGroupList$member": null - } - }, - "EC2SecurityGroupList": { - "base": null, - "refs": { - "DBSecurityGroup$EC2SecurityGroups": "

    Contains a list of EC2SecurityGroup elements.

    " - } - }, - "Endpoint": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBInstance$Endpoint": "

    Specifies the connection endpoint.

    " - } - }, - "EngineDefaults": { - "base": "

    Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

    ", - "refs": { - "DescribeEngineDefaultParametersResult$EngineDefaults": null - } - }, - "Event": { - "base": "

    This data type is used as a response element in the DescribeEvents action.

    ", - "refs": { - "EventList$member": null - } - }, - "EventCategoriesList": { - "base": null, - "refs": { - "CreateEventSubscriptionMessage$EventCategories": "

    A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    ", - "DescribeEventsMessage$EventCategories": "

    A list of event categories that trigger notifications for a event notification subscription.

    ", - "Event$EventCategories": "

    Specifies the category for the event.

    ", - "EventCategoriesMap$EventCategories": "

    The event categories for the specified source type

    ", - "EventSubscription$EventCategoriesList": "

    A list of event categories for the RDS event notification subscription.

    ", - "ModifyEventSubscriptionMessage$EventCategories": "

    A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    " - } - }, - "EventCategoriesMap": { - "base": "

    Contains the results of a successful invocation of the DescribeEventCategories action.

    ", - "refs": { - "EventCategoriesMapList$member": null - } - }, - "EventCategoriesMapList": { - "base": null, - "refs": { - "EventCategoriesMessage$EventCategoriesMapList": "

    A list of EventCategoriesMap data types.

    " - } - }, - "EventCategoriesMessage": { - "base": "

    Data returned from the DescribeEventCategories action.

    ", - "refs": { - } - }, - "EventList": { - "base": null, - "refs": { - "EventsMessage$Events": "

    A list of Event instances.

    " - } - }, - "EventSubscription": { - "base": "

    Contains the results of a successful invocation of the DescribeEventSubscriptions action.

    ", - "refs": { - "AddSourceIdentifierToSubscriptionResult$EventSubscription": null, - "CreateEventSubscriptionResult$EventSubscription": null, - "DeleteEventSubscriptionResult$EventSubscription": null, - "EventSubscriptionsList$member": null, - "ModifyEventSubscriptionResult$EventSubscription": null, - "RemoveSourceIdentifierFromSubscriptionResult$EventSubscription": null - } - }, - "EventSubscriptionQuotaExceededFault": { - "base": "

    You have reached the maximum number of event subscriptions.

    ", - "refs": { - } - }, - "EventSubscriptionsList": { - "base": null, - "refs": { - "EventSubscriptionsMessage$EventSubscriptionsList": "

    A list of EventSubscriptions data types.

    " - } - }, - "EventSubscriptionsMessage": { - "base": "

    Data returned by the DescribeEventSubscriptions action.

    ", - "refs": { - } - }, - "EventsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeEvents action.

    ", - "refs": { - } - }, - "IPRange": { - "base": "

    This data type is used as a response element in the DescribeDBSecurityGroups action.

    ", - "refs": { - "IPRangeList$member": null - } - }, - "IPRangeList": { - "base": null, - "refs": { - "DBSecurityGroup$IPRanges": "

    Contains a list of IPRange elements.

    " - } - }, - "InstanceQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB instances.

    ", - "refs": { - } - }, - "InsufficientDBInstanceCapacityFault": { - "base": "

    Specified DB instance class is not available in the specified Availability Zone.

    ", - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "DBInstance$AllocatedStorage": "

    Specifies the allocated storage size specified in gigabytes.

    ", - "DBInstance$BackupRetentionPeriod": "

    Specifies the number of days for which automatic DB Snapshots are retained.

    ", - "DBSnapshot$AllocatedStorage": "

    Specifies the allocated storage size in gigabytes (GB).

    ", - "DBSnapshot$Port": "

    Specifies the port that the database engine was listening on at the time of the snapshot.

    ", - "Endpoint$Port": "

    Specifies the port that the database engine is listening on.

    ", - "ReservedDBInstance$Duration": "

    The duration of the reservation in seconds.

    ", - "ReservedDBInstance$DBInstanceCount": "

    The number of reserved DB Instances.

    ", - "ReservedDBInstancesOffering$Duration": "

    The duration of the offering in seconds.

    " - } - }, - "IntegerOptional": { - "base": null, - "refs": { - "CreateDBInstanceMessage$AllocatedStorage": "

    The amount of storage (in gigabytes) to be initially allocated for the database instance.

    MySQL

    Constraints: Must be an integer from 5 to 1024.

    Type: Integer

    Oracle

    Constraints: Must be an integer from 10 to 1024.

    SQL Server

    Constraints: Must be an integer from 200 to 1024 (Standard Edition and Enterprise Edition) or from 30 to 1024 (Express Edition and Web Edition)

    ", - "CreateDBInstanceMessage$BackupRetentionPeriod": "

    The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Default: 1

    Constraints:

    • Must be a value from 0 to 8
    • Cannot be set to 0 if the DB Instance is a master instance with read replicas
    ", - "CreateDBInstanceMessage$Port": "

    The port number on which the database accepts connections.

    MySQL

    Default: 3306

    Valid Values: 1150-65535

    Type: Integer

    Oracle

    Default: 1521

    Valid Values: 1150-65535

    SQL Server

    Default: 1433

    Valid Values: 1150-65535 except for 1434 and 3389.

    ", - "CreateDBInstanceMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

    Constraints: Must be an integer greater than 1000.

    ", - "CreateDBInstanceReadReplicaMessage$Port": "

    The port number that the DB Instance uses for connections.

    Default: Inherits from the source DB Instance

    Valid Values: 1150-65535

    ", - "CreateDBInstanceReadReplicaMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

    ", - "DBInstance$Iops": "

    Specifies the Provisioned IOPS (I/O operations per second) value.

    ", - "DBSnapshot$Iops": "

    Specifies the Provisioned IOPS (I/O operations per second) value of the DB Instance at the time of the snapshot.

    ", - "DescribeDBEngineVersionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBInstancesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBParameterGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBParametersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBSecurityGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBSnapshotsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBSubnetGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeEngineDefaultParametersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeEventSubscriptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeEventsMessage$Duration": "

    The number of minutes to retrieve events for.

    Default: 60

    ", - "DescribeEventsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeOptionGroupOptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeOptionGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeReservedDBInstancesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "ModifyDBInstanceMessage$AllocatedStorage": "

    The new storage capacity of the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    MySQL

    Default: Uses existing setting

    Valid Values: 5-1024

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    Type: Integer

    Oracle

    Default: Uses existing setting

    Valid Values: 10-1024

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    SQL Server

    Cannot be modified.

    ", - "ModifyDBInstanceMessage$BackupRetentionPeriod": "

    The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Changing this parameter can result in an outage if you change from 0 to a non-zero value or from a non-zero value to 0. These changes are applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.

    Default: Uses existing setting

    Constraints:

    • Must be a value from 0 to 8
    • Cannot be set to 0 if the DB Instance is a master instance with read replicas or if the DB Instance is a read replica
    ", - "ModifyDBInstanceMessage$Iops": "

    The new Provisioned IOPS (I/O operations per second) value for the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Default: Uses existing setting

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    Type: Integer

    ", - "Option$Port": "

    If required, the port configured for this option to use.

    ", - "OptionConfiguration$Port": "

    The optional port for the option.

    ", - "OptionGroupOption$DefaultPort": "

    If the option requires a port, specifies the default port for the option.

    ", - "PendingModifiedValues$AllocatedStorage": "

    Contains the new AllocatedStorage size for the DB Instance that will be applied or is in progress.

    ", - "PendingModifiedValues$Port": "

    Specifies the pending port for the DB Instance.

    ", - "PendingModifiedValues$BackupRetentionPeriod": "

    Specifies the pending number of days for which automated backups are retained.

    ", - "PendingModifiedValues$Iops": "

    Specifies the new Provisioned IOPS value for the DB Instance that will be applied or is being applied.

    ", - "PromoteReadReplicaMessage$BackupRetentionPeriod": "

    The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Default: 1

    Constraints:

    • Must be a value from 0 to 8
    ", - "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": "

    The number of instances to reserve.

    Default: 1

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Port": "

    The port number on which the database accepts connections.

    Default: The same port as the original DB Instance

    Constraints: Value must be 1150-65535

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

    Constraints: Must be an integer greater than 1000.

    ", - "RestoreDBInstanceToPointInTimeMessage$Port": "

    The port number on which the database accepts connections.

    Constraints: Value must be 1150-65535

    Default: The same port as the original DB Instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

    Constraints: Must be an integer greater than 1000.

    " - } - }, - "InvalidDBInstanceStateFault": { - "base": "

    The specified DB instance is not in the available state.

    ", - "refs": { - } - }, - "InvalidDBParameterGroupStateFault": { - "base": "

    The DB parameter group cannot be deleted because it is in use.

    ", - "refs": { - } - }, - "InvalidDBSecurityGroupStateFault": { - "base": "

    The state of the DB security group does not allow deletion.

    ", - "refs": { - } - }, - "InvalidDBSnapshotStateFault": { - "base": "

    The state of the DB snapshot does not allow deletion.

    ", - "refs": { - } - }, - "InvalidDBSubnetGroupStateFault": { - "base": "

    The DB subnet group cannot be deleted because it is in use.

    ", - "refs": { - } - }, - "InvalidDBSubnetStateFault": { - "base": "

    The DB subnet is not in the available state.

    ", - "refs": { - } - }, - "InvalidEventSubscriptionStateFault": { - "base": "

    This error can occur if someone else is modifying a subscription. You should retry the action.

    ", - "refs": { - } - }, - "InvalidOptionGroupStateFault": { - "base": "

    The option group is not in the available state.

    ", - "refs": { - } - }, - "InvalidRestoreFault": { - "base": "

    Cannot restore from vpc backup to non-vpc DB instance.

    ", - "refs": { - } - }, - "InvalidSubnet": { - "base": "

    The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

    ", - "refs": { - } - }, - "InvalidVPCNetworkStateFault": { - "base": "

    DB subnet group does not cover all Availability Zones after it is created because users' change.

    ", - "refs": { - } - }, - "KeyList": { - "base": null, - "refs": { - "RemoveTagsFromResourceMessage$TagKeys": "

    The tag key (name) of the tag to be removed.

    " - } - }, - "ListTagsForResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBInstanceResult": { - "base": null, - "refs": { - } - }, - "ModifyDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBSubnetGroupResult": { - "base": null, - "refs": { - } - }, - "ModifyEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "ModifyOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyOptionGroupResult": { - "base": null, - "refs": { - } - }, - "Option": { - "base": "

    Option details.

    ", - "refs": { - "OptionsList$member": null - } - }, - "OptionConfiguration": { - "base": "

    A list of all available options

    ", - "refs": { - "OptionConfigurationList$member": null - } - }, - "OptionConfigurationList": { - "base": null, - "refs": { - "ModifyOptionGroupMessage$OptionsToInclude": "

    Options in this list are added to the Option Group or, if already present, the specified configuration is used to update the existing configuration.

    " - } - }, - "OptionGroup": { - "base": "

    ", - "refs": { - "CreateOptionGroupResult$OptionGroup": null, - "ModifyOptionGroupResult$OptionGroup": null, - "OptionGroupsList$member": null - } - }, - "OptionGroupAlreadyExistsFault": { - "base": "

    The option group you are trying to create already exists.

    ", - "refs": { - } - }, - "OptionGroupMembership": { - "base": null, - "refs": { - "DBInstance$OptionGroupMembership": "

    Specifies the name and status of the option group that this instance belongs to.

    " - } - }, - "OptionGroupNotFoundFault": { - "base": "

    The specified option group could not be found.

    ", - "refs": { - } - }, - "OptionGroupOption": { - "base": "

    Available option.

    ", - "refs": { - "OptionGroupOptionsList$member": null - } - }, - "OptionGroupOptionsList": { - "base": "

    List of available options.

    ", - "refs": { - "OptionGroupOptionsMessage$OptionGroupOptions": null - } - }, - "OptionGroupOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "OptionGroupQuotaExceededFault": { - "base": "

    The quota of 20 option groups was exceeded for this AWS account.

    ", - "refs": { - } - }, - "OptionGroups": { - "base": "

    List of option groups.

    ", - "refs": { - } - }, - "OptionGroupsList": { - "base": null, - "refs": { - "OptionGroups$OptionGroupsList": "

    List of option groups.

    " - } - }, - "OptionNamesList": { - "base": null, - "refs": { - "ModifyOptionGroupMessage$OptionsToRemove": "

    Options in this list are removed from the Option Group.

    " - } - }, - "OptionsDependedOn": { - "base": null, - "refs": { - "OptionGroupOption$OptionsDependedOn": "

    List of all options that are prerequisites for this option.

    " - } - }, - "OptionsList": { - "base": null, - "refs": { - "OptionGroup$Options": "

    Indicates what options are available in the option group.

    " - } - }, - "OrderableDBInstanceOption": { - "base": "

    Contains a list of available options for a DB Instance

    This data type is used as a response element in the DescribeOrderableDBInstanceOptions action.

    ", - "refs": { - "OrderableDBInstanceOptionsList$member": null - } - }, - "OrderableDBInstanceOptionsList": { - "base": null, - "refs": { - "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": "

    An OrderableDBInstanceOption structure containing information about orderable options for the DB Instance.

    " - } - }, - "OrderableDBInstanceOptionsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions action.

    ", - "refs": { - } - }, - "Parameter": { - "base": "

    This data type is used as a request parameter in the ModifyDBParameterGroup and ResetDBParameterGroup actions.

    This data type is used as a response element in the DescribeEngineDefaultParameters and DescribeDBParameters actions.

    ", - "refs": { - "ParametersList$member": null - } - }, - "ParametersList": { - "base": null, - "refs": { - "DBParameterGroupDetails$Parameters": "

    A list of Parameter instances.

    ", - "EngineDefaults$Parameters": "

    Contains a list of engine default parameters.

    ", - "ModifyDBParameterGroupMessage$Parameters": "

    An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

    Valid Values (for the application method): immediate | pending-reboot

    You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB Instance reboots. ", - "ResetDBParameterGroupMessage$Parameters": "

    An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

    MySQL

    Valid Values (for Apply method): immediate | pending-reboot

    You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB Instance reboots.

    Oracle

    Valid Values (for Apply method): pending-reboot

    " - } - }, - "PendingModifiedValues": { - "base": "

    This data type is used as a response element in the ModifyDBInstance action.

    ", - "refs": { - "DBInstance$PendingModifiedValues": "

    Specifies that changes to the DB Instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

    " - } - }, - "PointInTimeRestoreNotEnabledFault": { - "base": "

    SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod equal to 0.

    ", - "refs": { - } - }, - "PromoteReadReplicaMessage": { - "base": "

    ", - "refs": { - } - }, - "PromoteReadReplicaResult": { - "base": null, - "refs": { - } - }, - "ProvisionedIopsNotAvailableInAZFault": { - "base": "

    Provisioned IOPS not available in the specified Availability Zone.

    ", - "refs": { - } - }, - "PurchaseReservedDBInstancesOfferingMessage": { - "base": "

    ", - "refs": { - } - }, - "PurchaseReservedDBInstancesOfferingResult": { - "base": null, - "refs": { - } - }, - "ReadReplicaDBInstanceIdentifierList": { - "base": null, - "refs": { - "DBInstance$ReadReplicaDBInstanceIdentifiers": "

    Contains one or more identifiers of the Read Replicas associated with this DB Instance.

    " - } - }, - "RebootDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "RebootDBInstanceResult": { - "base": null, - "refs": { - } - }, - "RecurringCharge": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstances and DescribeReservedDBInstancesOfferings actions.

    ", - "refs": { - "RecurringChargeList$member": null - } - }, - "RecurringChargeList": { - "base": null, - "refs": { - "ReservedDBInstance$RecurringCharges": "

    The recurring price charged to run this reserved DB Instance.

    ", - "ReservedDBInstancesOffering$RecurringCharges": "

    The recurring price charged to run this reserved DB Instance.

    " - } - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "base": null, - "refs": { - } - }, - "RemoveTagsFromResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "ReservedDBInstance": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.

    ", - "refs": { - "PurchaseReservedDBInstancesOfferingResult$ReservedDBInstance": null, - "ReservedDBInstanceList$member": null - } - }, - "ReservedDBInstanceAlreadyExistsFault": { - "base": "

    User already has a reservation with the given identifier.

    ", - "refs": { - } - }, - "ReservedDBInstanceList": { - "base": null, - "refs": { - "ReservedDBInstanceMessage$ReservedDBInstances": "

    A list of of reserved DB Instances.

    " - } - }, - "ReservedDBInstanceMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeReservedDBInstances action.

    ", - "refs": { - } - }, - "ReservedDBInstanceNotFoundFault": { - "base": "

    The specified reserved DB Instance not found.

    ", - "refs": { - } - }, - "ReservedDBInstanceQuotaExceededFault": { - "base": "

    Request would exceed the user's DB Instance quota.

    ", - "refs": { - } - }, - "ReservedDBInstancesOffering": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstancesOfferings action.

    ", - "refs": { - "ReservedDBInstancesOfferingList$member": null - } - }, - "ReservedDBInstancesOfferingList": { - "base": null, - "refs": { - "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": "

    A list of reserved DB Instance offerings.

    " - } - }, - "ReservedDBInstancesOfferingMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings action.

    ", - "refs": { - } - }, - "ReservedDBInstancesOfferingNotFoundFault": { - "base": "

    Specified offering does not exist.

    ", - "refs": { - } - }, - "ResetDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceFromDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceFromDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "RestoreDBInstanceToPointInTimeMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceToPointInTimeResult": { - "base": null, - "refs": { - } - }, - "RevokeDBSecurityGroupIngressMessage": { - "base": "

    ", - "refs": { - } - }, - "RevokeDBSecurityGroupIngressResult": { - "base": null, - "refs": { - } - }, - "SNSInvalidTopicFault": { - "base": "

    SNS has responded that there is a problem with the SND topic specified.

    ", - "refs": { - } - }, - "SNSNoAuthorizationFault": { - "base": "

    You do not have permission to publish to the SNS topic ARN.

    ", - "refs": { - } - }, - "SNSTopicArnNotFoundFault": { - "base": "

    The SNS topic ARN does not exist.

    ", - "refs": { - } - }, - "SnapshotQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB snapshots.

    ", - "refs": { - } - }, - "SourceIdsList": { - "base": null, - "refs": { - "CreateEventSubscriptionMessage$SourceIds": "

    The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

    Constraints:

    • If SourceIds are supplied, SourceType must also be provided.
    • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
    • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
    • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
    • If the source type is a DB Snapshot, a DBSnapshotIdentifier must be supplied.
    ", - "EventSubscription$SourceIdsList": "

    A list of source Ids for the RDS event notification subscription.

    " - } - }, - "SourceNotFoundFault": { - "base": "

    The requested source could not be found.

    ", - "refs": { - } - }, - "SourceType": { - "base": null, - "refs": { - "DescribeEventsMessage$SourceType": "

    The event source to retrieve events for. If no value is specified, all events are returned.

    ", - "Event$SourceType": "

    Specifies the source type for this event.

    " - } - }, - "StorageQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed amount of storage available across all DB instances.

    ", - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to add a source identifier to.

    ", - "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": "

    The identifier of the event source to be added. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

    Constraints:

    • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
    • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
    • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
    • If the source type is a DB Snapshot, a DBSnapshotIdentifier must be supplied.
    ", - "AddTagsToResourceMessage$ResourceName": "

    The DB Instance the tags will be added to.

    ", - "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

    The name of the DB Security Group to add authorization to.

    ", - "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": "

    The IP range to authorize.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

    Name of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

    Id of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

    AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AvailabilityZone$Name": "

    The name of the availability zone.

    ", - "CharacterSet$CharacterSetName": "

    The name of the character set.

    ", - "CharacterSet$CharacterSetDescription": "

    The description of the character set.

    ", - "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

    The identifier for the source DB snapshot.

    Constraints:

    • Must be the identifier for a valid system snapshot in the \"available\" state.

    Example: rds:mydb-2012-04-02-00-01

    ", - "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

    The identifier for the copied snapshot.

    Constraints:

    • Cannot be null, empty, or blank
    • Must contain from 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-db-snapshot

    ", - "CreateDBInstanceMessage$DBName": "

    The meaning of this parameter differs according to the database engine you use.

    MySQL

    The name of the database to create when the DB Instance is created. If this parameter is not specified, no database is created in the DB Instance.

    Constraints:

    • Must contain 1 to 64 alphanumeric characters
    • Cannot be a word reserved by the specified database engine

    Type: String

    Oracle

    The Oracle System ID (SID) of the created DB Instance.

    Default: ORCL

    Constraints:

    • Cannot be longer than 8 characters

    SQL Server

    Not applicable. Must be null.

    ", - "CreateDBInstanceMessage$DBInstanceIdentifier": "

    The DB Instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server).
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: mydbinstance

    ", - "CreateDBInstanceMessage$DBInstanceClass": "

    The compute and memory capacity of the DB Instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge

    ", - "CreateDBInstanceMessage$Engine": "

    The name of the database engine to be used for this instance.

    Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web

    ", - "CreateDBInstanceMessage$MasterUsername": "

    The name of master user for the client DB Instance.

    MySQL

    Constraints:

    • Must be 1 to 16 alphanumeric characters.
    • First character must be a letter.
    • Cannot be a reserved word for the chosen database engine.

    Type: String

    Oracle

    Constraints:

    • Must be 1 to 30 alphanumeric characters.
    • First character must be a letter.
    • Cannot be a reserved word for the chosen database engine.

    SQL Server

    Constraints:

    • Must be 1 to 128 alphanumeric characters.
    • First character must be a letter.
    • Cannot be a reserved word for the chosen database engine.
    ", - "CreateDBInstanceMessage$MasterUserPassword": "

    The password for the master database user. Can be any printable ASCII character except \"/\", \"\\\", or \"@\".

    Type: String

    MySQL

    Constraints: Must contain from 8 to 41 alphanumeric characters.

    Oracle

    Constraints: Must contain from 8 to 30 alphanumeric characters.

    SQL Server

    Constraints: Must contain from 8 to 128 alphanumeric characters.

    ", - "CreateDBInstanceMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone in the endpoint's region.

    Example: us-east-1d

    Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same region as the current endpoint.

    ", - "CreateDBInstanceMessage$DBSubnetGroupName": "

    A DB Subnet Group to associate with this DB Instance.

    If there is no DB Subnet Group, then it is a non-VPC DB instance.

    ", - "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

    The weekly time range (in UTC) during which system maintenance can occur.

    Format: ddd:hh24:mi-ddd:hh24:mi

    Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. The following list shows the time blocks for each region from which the default maintenance windows are assigned.

    • US-East (Northern Virginia) Region: 03:00-11:00 UTC
    • US-West (Northern California) Region: 06:00-14:00 UTC
    • EU (Ireland) Region: 22:00-06:00 UTC
    • Asia Pacific (Singapore) Region: 14:00-22:00 UTC
    • Asia Pacific (Tokyo) Region: 17:00-03:00 UTC

    Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

    Constraints: Minimum 30-minute window.

    ", - "CreateDBInstanceMessage$DBParameterGroupName": "

    The name of the DB Parameter Group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "CreateDBInstanceMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

    Default: A 30-minute window selected at random from an 8-hour block of time per region. The following list shows the time blocks for each region from which the default backup windows are assigned.

    • US-East (Northern Virginia) Region: 03:00-11:00 UTC
    • US-West (Northern California) Region: 06:00-14:00 UTC
    • EU (Ireland) Region: 22:00-06:00 UTC
    • Asia Pacific (Singapore) Region: 14:00-22:00 UTC
    • Asia Pacific (Tokyo) Region: 17:00-03:00 UTC

    Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

    ", - "CreateDBInstanceMessage$EngineVersion": "

    The version number of the database engine to use.

    MySQL

    Example: 5.1.42

    Type: String

    Oracle

    Example: 11.2.0.2.v2

    Type: String

    SQL Server

    Example: 10.50.2789.0.v1

    ", - "CreateDBInstanceMessage$LicenseModel": "

    License model information for this DB Instance.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "CreateDBInstanceMessage$OptionGroupName": "

    Indicates that the DB Instance should be associated with the specified option group.

    ", - "CreateDBInstanceMessage$CharacterSetName": "

    For supported engines, indicates that the DB Instance should be associated with the specified CharacterSet.

    ", - "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

    The DB Instance identifier of the Read Replica. This is the unique key that identifies a DB Instance. This parameter is stored as a lowercase string.

    ", - "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

    The identifier of the DB Instance that will act as the source for the Read Replica. Each DB Instance can have up to five Read Replicas.

    Constraints: Must be the identifier of an existing DB Instance that is not already a Read Replica DB Instance.

    ", - "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

    The compute and memory capacity of the Read Replica.

    Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge

    Default: Inherits from the source DB Instance.

    ", - "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

    The Amazon EC2 Availability Zone that the Read Replica will be created in.

    Default: A random, system-chosen Availability Zone in the endpoint's region.

    Example: us-east-1d

    ", - "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

    The option group the DB instance will be associated with. If omitted, the default Option Group for the engine specified will be used.

    ", - "CreateDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB Parameter Group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    This value is stored as a lower-case string.", - "CreateDBParameterGroupMessage$DBParameterGroupFamily": "

    The DB Parameter Group Family name. A DB Parameter Group can be associated with one and only one DB Parameter Group Family, and can be applied only to a DB Instance running a database engine and engine version compatible with that DB Parameter Group Family.

    ", - "CreateDBParameterGroupMessage$Description": "

    The description for the DB Parameter Group.

    ", - "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

    The name for the DB Security Group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

    Example: mysecuritygroup

    ", - "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": "

    The description for the DB Security Group.

    ", - "CreateDBSnapshotMessage$DBSnapshotIdentifier": "

    The identifier for the DB Snapshot.

    Constraints:

    • Cannot be null, empty, or blank
    • Must contain from 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

    ", - "CreateDBSnapshotMessage$DBInstanceIdentifier": "

    The DB Instance identifier. This is the unique key that identifies a DB Instance. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "CreateDBSubnetGroupMessage$DBSubnetGroupName": "

    The name for the DB Subnet Group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

    Example: mySubnetgroup

    ", - "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": "

    The description for the DB Subnet Group.

    ", - "CreateEventSubscriptionMessage$SubscriptionName": "

    The name of the subscription.

    Constraints: The name must be less than 255 characters.

    ", - "CreateEventSubscriptionMessage$SnsTopicArn": "

    The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

    ", - "CreateEventSubscriptionMessage$SourceType": "

    The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "CreateOptionGroupMessage$OptionGroupName": "

    Specifies the name of the option group to be created.

    Constraints:

    • Must be 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: myOptiongroup

    ", - "CreateOptionGroupMessage$EngineName": "

    Specifies the name of the engine that this option group should be associated with.

    ", - "CreateOptionGroupMessage$MajorEngineVersion": "

    Specifies the major version of the engine that this option group should be associated with.

    ", - "CreateOptionGroupMessage$OptionGroupDescription": "

    The description of the option group.

    ", - "DBEngineVersion$Engine": "

    The name of the database engine.

    ", - "DBEngineVersion$EngineVersion": "

    The version number of the database engine.

    ", - "DBEngineVersion$DBParameterGroupFamily": "

    The name of the DBParameterGroupFamily for the database engine.

    ", - "DBEngineVersion$DBEngineDescription": "

    The description of the database engine.

    ", - "DBEngineVersion$DBEngineVersionDescription": "

    The description of the database engine version.

    ", - "DBEngineVersionMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBInstance$DBInstanceIdentifier": "

    Contains a user-supplied database identifier. This is the unique key that identifies a DB Instance.

    ", - "DBInstance$DBInstanceClass": "

    Contains the name of the compute and memory capacity class of the DB Instance.

    ", - "DBInstance$Engine": "

    Provides the name of the database engine to be used for this DB Instance.

    ", - "DBInstance$DBInstanceStatus": "

    Specifies the current state of this database.

    ", - "DBInstance$MasterUsername": "

    Contains the master username for the DB Instance.

    ", - "DBInstance$DBName": "

    The meaning of this parameter differs according to the database engine you use.

    MySQL

    Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB Instance was created. This same name is returned for the life of the DB Instance.

    Type: String

    Oracle

    Contains the Oracle System ID (SID) of the created DB Instance.

    ", - "DBInstance$PreferredBackupWindow": "

    Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

    ", - "DBInstance$AvailabilityZone": "

    Specifies the name of the Availability Zone the DB Instance is located in.

    ", - "DBInstance$PreferredMaintenanceWindow": "

    Specifies the weekly time range (in UTC) during which system maintenance can occur.

    ", - "DBInstance$EngineVersion": "

    Indicates the database engine version.

    ", - "DBInstance$ReadReplicaSourceDBInstanceIdentifier": "

    Contains the identifier of the source DB Instance if this DB Instance is a Read Replica.

    ", - "DBInstance$LicenseModel": "

    License model information for this DB Instance.

    ", - "DBInstance$CharacterSetName": "

    If present, specifies the name of the character set that this instance is associated with.

    ", - "DBInstance$SecondaryAvailabilityZone": "

    If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

    ", - "DBInstanceMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DBParameterGroup$DBParameterGroupName": "

    Provides the name of the DB Parameter Group.

    ", - "DBParameterGroup$DBParameterGroupFamily": "

    Provides the name of the DB Parameter Group Family that this DB Parameter Group is compatible with.

    ", - "DBParameterGroup$Description": "

    Provides the customer-specified description for this DB Parameter Group.

    ", - "DBParameterGroupDetails$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBParameterGroupNameMessage$DBParameterGroupName": "

    The name of the DB Parameter Group.

    ", - "DBParameterGroupStatus$DBParameterGroupName": "

    The name of the DP Parameter Group.

    ", - "DBParameterGroupStatus$ParameterApplyStatus": "

    The status of parameter updates.

    ", - "DBParameterGroupsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSecurityGroup$OwnerId": "

    Provides the AWS ID of the owner of a specific DB Security Group.

    ", - "DBSecurityGroup$DBSecurityGroupName": "

    Specifies the name of the DB Security Group.

    ", - "DBSecurityGroup$DBSecurityGroupDescription": "

    Provides the description of the DB Security Group.

    ", - "DBSecurityGroup$VpcId": "

    Provides the VpcId of the DB Security Group.

    ", - "DBSecurityGroupMembership$DBSecurityGroupName": "

    The name of the DB Security Group.

    ", - "DBSecurityGroupMembership$Status": "

    The status of the DB Security Group.

    ", - "DBSecurityGroupMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSecurityGroupNameList$member": null, - "DBSnapshot$DBSnapshotIdentifier": "

    Specifies the identifier for the DB Snapshot.

    ", - "DBSnapshot$DBInstanceIdentifier": "

    Specifies the the DBInstanceIdentifier of the DB Instance this DB Snapshot was created from.

    ", - "DBSnapshot$Engine": "

    Specifies the name of the database engine.

    ", - "DBSnapshot$Status": "

    Specifies the status of this DB Snapshot.

    ", - "DBSnapshot$AvailabilityZone": "

    Specifies the name of the Availability Zone the DB Instance was located in at the time of the DB Snapshot.

    ", - "DBSnapshot$VpcId": "

    Provides the Vpc Id associated with the DB Snapshot.

    ", - "DBSnapshot$MasterUsername": "

    Provides the master username for the DB Instance.

    ", - "DBSnapshot$EngineVersion": "

    Specifies the version of the database engine.

    ", - "DBSnapshot$LicenseModel": "

    License model information for the restored DB Instance.

    ", - "DBSnapshot$SnapshotType": "

    Provides the type of the DB Snapshot.

    ", - "DBSnapshotMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSubnetGroup$DBSubnetGroupName": "

    Specifies the name of the DB Subnet Group.

    ", - "DBSubnetGroup$DBSubnetGroupDescription": "

    Provides the description of the DB Subnet Group.

    ", - "DBSubnetGroup$VpcId": "

    Provides the VpcId of the DB Subnet Group.

    ", - "DBSubnetGroup$SubnetGroupStatus": "

    Provides the status of the DB Subnet Group.

    ", - "DBSubnetGroupMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DeleteDBInstanceMessage$DBInstanceIdentifier": "

    The DB Instance identifier for the DB Instance to be deleted. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": "

    The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false.

    Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DeleteDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB Parameter Group.

    Constraints:

    • Must be the name of an existing DB Parameter Group
    • You cannot delete a default DB Parameter Group
    • Cannot be associated with any DB Instances
    ", - "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

    The name of the DB Security Group to delete.

    You cannot delete the default DB Security Group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

    The DBSnapshot identifier.

    Constraints: Must be the name of an existing DB Snapshot in the available state.

    ", - "DeleteDBSubnetGroupMessage$DBSubnetGroupName": "

    The name of the database subnet group to delete.

    You cannot delete the default subnet group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DeleteEventSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to delete.

    ", - "DeleteOptionGroupMessage$OptionGroupName": "

    The name of the option group to be deleted.

    You cannot delete default Option Groups.", - "DescribeDBEngineVersionsMessage$Engine": "

    The database engine to return.

    ", - "DescribeDBEngineVersionsMessage$EngineVersion": "

    The database engine version to return.

    Example: 5.1.49

    ", - "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": "

    The name of a specific DB Parameter Group family to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBEngineVersionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBInstancesMessage$DBInstanceIdentifier": "

    The user-supplied instance identifier. If this parameter is specified, information from only the specific DB Instance is returned. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBInstancesMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribeDBParameterGroupsMessage$DBParameterGroupName": "

    The name of a specific DB Parameter Group to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBParameterGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBParametersMessage$DBParameterGroupName": "

    The name of a specific DB Parameter Group to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBParametersMessage$Source": "

    The parameter types to return.

    Default: All parameter types returned

    Valid Values: user | system | engine-default

    ", - "DescribeDBParametersMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": "

    The name of the DB Security Group to return details for.

    ", - "DescribeDBSecurityGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSecurityGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSnapshotsMessage$DBInstanceIdentifier": "

    A DB Instance Identifier to retrieve the list of DB Snapshots for. Cannot be used in conjunction with DBSnapshotIdentifier. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

    A specific DB Snapshot Identifier to describe. Cannot be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    • If this is the identifier of an automated snapshot, the SnapshotType parameter must also be specified.
    ", - "DescribeDBSnapshotsMessage$SnapshotType": "

    An optional snapshot type for which snapshots will be returned. If not specified, the returned results will include snapshots of all types.

    ", - "DescribeDBSnapshotsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": "

    The name of the DB Subnet Group to return details for.

    ", - "DescribeDBSubnetGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSubnetGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": "

    The name of the DB Parameter Group Family.

    ", - "DescribeEngineDefaultParametersMessage$Marker": "

    An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEventCategoriesMessage$SourceType": "

    The type of source that will be generating the events.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "DescribeEventSubscriptionsMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to describe.

    ", - "DescribeEventSubscriptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribeEventsMessage$SourceIdentifier": "

    The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.

    Constraints:

    • If SourceIdentifier is supplied, SourceType must also be provided.
    • If the source type is DBInstance, then a DBInstanceIdentifier must be supplied.
    • If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied.
    • If the source type is DBParameterGroup, a DBParameterGroupName must be supplied.
    • If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
    • Cannot end with a hyphen or contain two consecutive hyphens.
    ", - "DescribeEventsMessage$Marker": "

    An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupOptionsMessage$EngineName": "

    Options available for the given DB engine name to be described.

    ", - "DescribeOptionGroupOptionsMessage$MajorEngineVersion": "

    If specified, filters the results to include only options for the specified major engine version.

    ", - "DescribeOptionGroupOptionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupsMessage$OptionGroupName": "

    The name of the option group to describe. Cannot be supplied together with EngineName or MajorEngineVersion.

    ", - "DescribeOptionGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOptionGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupsMessage$EngineName": "

    Filters the list of option groups to only include groups associated with a specific database engine.

    ", - "DescribeOptionGroupsMessage$MajorEngineVersion": "

    Filters the list of option groups to only include groups associated with a specific database engine version. If specified, then EngineName must also be specified.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Engine": "

    The name of the engine to retrieve DB Instance options for.

    ", - "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": "

    The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

    ", - "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": "

    The DB Instance class filter value. Specify this parameter to show only the available offerings matching the specified DB Instance class.

    ", - "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": "

    The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": "

    The reserved DB Instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.

    ", - "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": "

    The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

    ", - "DescribeReservedDBInstancesMessage$DBInstanceClass": "

    The DB Instance class filter value. Specify this parameter to show only those reservations matching the specified DB Instances class.

    ", - "DescribeReservedDBInstancesMessage$Duration": "

    The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

    Valid Values: 1 | 3 | 31536000 | 94608000

    ", - "DescribeReservedDBInstancesMessage$ProductDescription": "

    The product description filter value. Specify this parameter to show only those reservations matching the specified product description.

    ", - "DescribeReservedDBInstancesMessage$OfferingType": "

    The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

    Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

    ", - "DescribeReservedDBInstancesMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": "

    The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

    Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

    ", - "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": "

    The DB Instance class filter value. Specify this parameter to show only the available offerings matching the specified DB Instance class.

    ", - "DescribeReservedDBInstancesOfferingsMessage$Duration": "

    Duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

    Valid Values: 1 | 3 | 31536000 | 94608000

    ", - "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": "

    Product description filter value. Specify this parameter to show only the available offerings matching the specified product description.

    ", - "DescribeReservedDBInstancesOfferingsMessage$OfferingType": "

    The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

    Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

    ", - "DescribeReservedDBInstancesOfferingsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "EC2SecurityGroup$Status": "

    Provides the status of the EC2 security group. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

    ", - "EC2SecurityGroup$EC2SecurityGroupName": "

    Specifies the name of the EC2 Security Group.

    ", - "EC2SecurityGroup$EC2SecurityGroupId": "

    Specifies the id of the EC2 Security Group.

    ", - "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

    Specifies the AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

    ", - "Endpoint$Address": "

    Specifies the DNS address of the DB Instance.

    ", - "EngineDefaults$DBParameterGroupFamily": "

    Specifies the name of the DB Parameter Group Family which the engine default parameters apply to.

    ", - "EngineDefaults$Marker": "

    An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "Event$SourceIdentifier": "

    Provides the identifier for the source of the event.

    ", - "Event$Message": "

    Provides the text of this event.

    ", - "EventCategoriesList$member": null, - "EventCategoriesMap$SourceType": "

    The source type that the returned categories belong to

    ", - "EventSubscription$Id": "

    Not used.

    ", - "EventSubscription$CustomerAwsId": "

    The AWS customer account associated with the RDS event notification subscription.

    ", - "EventSubscription$CustSubscriptionId": "

    The RDS event notification subscription Id.

    ", - "EventSubscription$SnsTopicArn": "

    The topic ARN of the RDS event notification subscription.

    ", - "EventSubscription$Status": "

    The status of the RDS event notification subscription.

    Constraints:

    Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

    The status \"no-permission\" indicates that RDS no longer has permission to post to the SNS topic. The status \"topic-not-exist\" indicates that the topic was deleted after the subscription was created.

    ", - "EventSubscription$SubscriptionCreationTime": "

    The time the RDS event notification subscription was created.

    ", - "EventSubscription$SourceType": "

    The source type for the RDS event notification subscription.

    ", - "EventSubscriptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "EventsMessage$Marker": "

    An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "IPRange$Status": "

    Specifies the status of the IP range. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

    ", - "IPRange$CIDRIP": "

    Specifies the IP range.

    ", - "KeyList$member": null, - "ListTagsForResourceMessage$ResourceName": "

    The DB Instance with tags to be listed.

    ", - "ModifyDBInstanceMessage$DBInstanceIdentifier": "

    The DB Instance identifier. This value is stored as a lowercase string.

    Constraints:

    • Must be the identifier for an existing DB Instance
    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "ModifyDBInstanceMessage$DBInstanceClass": "

    The new compute and memory capacity of the DB Instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action.

    Passing a value for this parameter causes an outage during the change and is applied during the next maintenance window, unless the ApplyImmediately parameter is specified as true for this request.

    Default: Uses existing setting

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge

    ", - "ModifyDBInstanceMessage$MasterUserPassword": "

    The new password for the DB Instance master user. Can be any printable ASCII character except \"/\", \"\\\", or \"@\".

    Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

    Default: Uses existing setting

    Constraints: Must be 8 to 41 alphanumeric characters (MySQL), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

    Amazon RDS API actions never return the password, so this action provides a way to regain access to a master instance user if the password is lost. ", - "ModifyDBInstanceMessage$DBParameterGroupName": "

    The name of the DB Parameter Group to apply to this DB Instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Default: Uses existing setting

    Constraints: The DB Parameter Group must be in the same DB Parameter Group family as this DB Instance.

    ", - "ModifyDBInstanceMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints:

    • Must be in the format hh24:mi-hh24:mi
    • Times should be Universal Time Coordinated (UTC)
    • Must not conflict with the preferred maintenance window
    • Must be at least 30 minutes
    ", - "ModifyDBInstanceMessage$PreferredMaintenanceWindow": "

    The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB Instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

    Default: Uses existing setting

    Format: ddd:hh24:mi-ddd:hh24:mi

    Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

    Constraints: Must be at least 30 minutes

    ", - "ModifyDBInstanceMessage$EngineVersion": "

    The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    For major version upgrades, if a nondefault DB Parameter Group is currently in use, a new DB Parameter Group in the DB Parameter Group Family for the new engine version must be specified. The new DB Parameter Group can be the default for that DB Parameter Group Family.

    Example: 5.1.42

    ", - "ModifyDBInstanceMessage$OptionGroupName": "

    Indicates that the DB Instance should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

    ", - "ModifyDBInstanceMessage$NewDBInstanceIdentifier": "

    The new DB Instance identifier for the DB Instance when renaming a DB Instance. This value is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "ModifyDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB Parameter Group.

    Constraints:

    • Must be the name of an existing DB Parameter Group
    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "ModifyDBSubnetGroupMessage$DBSubnetGroupName": "

    The name for the DB Subnet Group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

    Example: mySubnetgroup

    ", - "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "

    The description for the DB Subnet Group.

    ", - "ModifyEventSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription.

    ", - "ModifyEventSubscriptionMessage$SnsTopicArn": "

    The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

    ", - "ModifyEventSubscriptionMessage$SourceType": "

    The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "ModifyOptionGroupMessage$OptionGroupName": "

    The name of the option group to be modified.

    ", - "Option$OptionName": "

    The name of the option.

    ", - "Option$OptionDescription": "

    The description of the option.

    ", - "OptionConfiguration$OptionName": "

    The configuration of options to include in a group.

    ", - "OptionGroup$OptionGroupName": "

    Specifies the name of the option group.

    ", - "OptionGroup$OptionGroupDescription": "

    Provides the description of the option group.

    ", - "OptionGroup$EngineName": "

    Engine name that this option group can be applied to.

    ", - "OptionGroup$MajorEngineVersion": "

    Indicates the major engine version associated with this option group.

    ", - "OptionGroup$VpcId": "

    If AllowsVpcAndNonVpcInstanceMemberships is 'false', this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is 'true' and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.

    ", - "OptionGroupMembership$OptionGroupName": "

    The name of the option group that the instance belongs to.

    ", - "OptionGroupMembership$Status": "

    The status of the DB Instance's option group membership (e.g. in-sync, pending, pending-maintenance, applying).

    ", - "OptionGroupOption$Name": "

    The name of the option.

    ", - "OptionGroupOption$Description": "

    The description of the option.

    ", - "OptionGroupOption$EngineName": "

    Engine name that this option can be applied to.

    ", - "OptionGroupOption$MajorEngineVersion": "

    Indicates the major engine version that the option is available for.

    ", - "OptionGroupOption$MinimumRequiredMinorEngineVersion": "

    The minimum required engine version for the option to be applied.

    ", - "OptionGroupOptionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "OptionGroups$Marker": null, - "OptionNamesList$member": null, - "OptionsDependedOn$member": null, - "OrderableDBInstanceOption$Engine": "

    The engine type of the orderable DB Instance.

    ", - "OrderableDBInstanceOption$EngineVersion": "

    The engine version of the orderable DB Instance.

    ", - "OrderableDBInstanceOption$DBInstanceClass": "

    The DB Instance Class for the orderable DB Instance

    ", - "OrderableDBInstanceOption$LicenseModel": "

    The license model for the orderable DB Instance.

    ", - "OrderableDBInstanceOptionsMessage$Marker": "

    An optional pagination token provided by a previous OrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "Parameter$ParameterName": "

    Specifies the name of the parameter.

    ", - "Parameter$ParameterValue": "

    Specifies the value of the parameter.

    ", - "Parameter$Description": "

    Provides a description of the parameter.

    ", - "Parameter$Source": "

    Indicates the source of the parameter value.

    ", - "Parameter$ApplyType": "

    Specifies the engine specific parameters type.

    ", - "Parameter$DataType": "

    Specifies the valid data type for the parameter.

    ", - "Parameter$AllowedValues": "

    Specifies the valid range of values for the parameter.

    ", - "Parameter$MinimumEngineVersion": "

    The earliest engine version to which the parameter can apply.

    ", - "PendingModifiedValues$DBInstanceClass": "

    Contains the new DBInstanceClass for the DB Instance that will be applied or is in progress.

    ", - "PendingModifiedValues$MasterUserPassword": "

    Contains the pending or in-progress change of the master credentials for the DB Instance.

    ", - "PendingModifiedValues$EngineVersion": "

    Indicates the database engine version.

    ", - "PendingModifiedValues$DBInstanceIdentifier": "

    Contains the new DBInstanceIdentifier for the DB Instance that will be applied or is in progress.

    ", - "PromoteReadReplicaMessage$DBInstanceIdentifier": "

    The DB Instance identifier. This value is stored as a lowercase string.

    Constraints:

    • Must be the identifier for an existing Read Replica DB Instance
    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: mydbinstance

    ", - "PromoteReadReplicaMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

    Default: A 30-minute window selected at random from an 8-hour block of time per region. The following list shows the time blocks for each region from which the default backup windows are assigned.

    • US-East (Northern Virginia) Region: 03:00-11:00 UTC
    • US-West (Northern California) Region: 06:00-14:00 UTC
    • EU (Ireland) Region: 22:00-06:00 UTC
    • Asia Pacific (Singapore) Region: 14:00-22:00 UTC
    • Asia Pacific (Tokyo) Region: 17:00-03:00 UTC

    Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

    ", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": "

    The ID of the Reserved DB Instance offering to purchase.

    Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

    ", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "

    Customer-specified identifier to track this reservation.

    Example: myreservationID

    ", - "ReadReplicaDBInstanceIdentifierList$member": null, - "RebootDBInstanceMessage$DBInstanceIdentifier": "

    The DB Instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RecurringCharge$RecurringChargeFrequency": "

    The frequency of the recurring charge.

    ", - "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to remove a source identifier from.

    ", - "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": "

    The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

    ", - "RemoveTagsFromResourceMessage$ResourceName": "

    The DB Instance the tags will be removed from.

    ", - "ReservedDBInstance$ReservedDBInstanceId": "

    The unique identifier for the reservation.

    ", - "ReservedDBInstance$ReservedDBInstancesOfferingId": "

    The offering identifier.

    ", - "ReservedDBInstance$DBInstanceClass": "

    The DB instance class for the reserved DB Instance.

    ", - "ReservedDBInstance$CurrencyCode": "

    The currency code for the reserved DB Instance.

    ", - "ReservedDBInstance$ProductDescription": "

    The description of the reserved DB Instance.

    ", - "ReservedDBInstance$OfferingType": "

    The offering type of this reserved DB Instance.

    ", - "ReservedDBInstance$State": "

    The state of the reserved DB Instance.

    ", - "ReservedDBInstanceMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": "

    The offering identifier.

    ", - "ReservedDBInstancesOffering$DBInstanceClass": "

    The DB instance class for the reserved DB Instance.

    ", - "ReservedDBInstancesOffering$CurrencyCode": "

    The currency code for the reserved DB Instance offering.

    ", - "ReservedDBInstancesOffering$ProductDescription": "

    The database engine used by the offering.

    ", - "ReservedDBInstancesOffering$OfferingType": "

    The offering type.

    ", - "ReservedDBInstancesOfferingMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "ResetDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB Parameter Group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": "

    The identifier for the DB Snapshot to restore from.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": "

    Name of the DB Instance to create from the DB Snapshot. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": "

    The compute and memory capacity of the Amazon RDS DB instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge

    ", - "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    Example: us-east-1a

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": "

    The DB Subnet Group name to use for the new instance.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

    License model information for the restored DB Instance.

    Default: Same as source.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBName": "

    The database name for the restored DB Instance.

    This parameter doesn't apply to the MySQL engine.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

    The database engine to use for the new instance.

    Default: The same as source

    Constraint: Must be compatible with the engine of the source

    Example: oracle-ee

    ", - "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": null, - "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": "

    The identifier of the source DB Instance from which to restore.

    Constraints:

    • Must be the identifier of an existing database instance
    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": "

    The name of the new database instance to be created.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": "

    The compute and memory capacity of the Amazon RDS DB instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge

    Default: The same DBInstanceClass as the original DB Instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    Example: us-east-1a

    ", - "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": "

    The DB subnet group name to use for the new instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$LicenseModel": "

    License model information for the restored DB Instance.

    Default: Same as source.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "RestoreDBInstanceToPointInTimeMessage$DBName": "

    The database name for the restored DB Instance.

    This parameter is not used for the MySQL engine.

    ", - "RestoreDBInstanceToPointInTimeMessage$Engine": "

    The database engine to use for the new instance.

    Default: The same as source

    Constraint: Must be compatible with the engine of the source

    Example: oracle-ee

    ", - "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": null, - "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

    The name of the DB Security Group to revoke ingress from.

    ", - "RevokeDBSecurityGroupIngressMessage$CIDRIP": "

    The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

    The name of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

    The id of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

    The AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "SourceIdsList$member": null, - "Subnet$SubnetIdentifier": "

    Specifies the identifier of the subnet.

    ", - "Subnet$SubnetStatus": "

    Specifies the status of the subnet.

    ", - "SubnetIdentifierList$member": null, - "Tag$Key": "

    A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", - "Tag$Value": "

    A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", - "VpcSecurityGroupIdList$member": null, - "VpcSecurityGroupMembership$VpcSecurityGroupId": "

    The name of the VPC security group.

    ", - "VpcSecurityGroupMembership$Status": "

    The status of the VPC Security Group.

    " - } - }, - "Subnet": { - "base": "

    This data type is used as a response element in the DescribeDBSubnetGroups action.

    ", - "refs": { - "SubnetList$member": null - } - }, - "SubnetAlreadyInUse": { - "base": "

    The DB subnet is already in use in the Availability Zone.

    ", - "refs": { - } - }, - "SubnetIdentifierList": { - "base": null, - "refs": { - "CreateDBSubnetGroupMessage$SubnetIds": "

    The EC2 Subnet IDs for the DB Subnet Group.

    ", - "ModifyDBSubnetGroupMessage$SubnetIds": "

    The EC2 Subnet IDs for the DB Subnet Group.

    " - } - }, - "SubnetList": { - "base": null, - "refs": { - "DBSubnetGroup$Subnets": "

    Contains a list of Subnet elements.

    " - } - }, - "SubscriptionAlreadyExistFault": { - "base": "

    The supplied subscription name already exists.

    ", - "refs": { - } - }, - "SubscriptionCategoryNotFoundFault": { - "base": "

    The supplied category does not exist.

    ", - "refs": { - } - }, - "SubscriptionNotFoundFault": { - "base": "

    The subscription name does not exist.

    ", - "refs": { - } - }, - "SupportedCharacterSetsList": { - "base": null, - "refs": { - "DBEngineVersion$SupportedCharacterSets": "

    A list of the character sets supported by this engine for the CharacterSetName parameter of the CreateDBInstance API.

    " - } - }, - "TStamp": { - "base": null, - "refs": { - "DBInstance$InstanceCreateTime": "

    Provides the date and time the DB Instance was created.

    ", - "DBInstance$LatestRestorableTime": "

    Specifies the latest time to which a database can be restored with point-in-time restore.

    ", - "DBSnapshot$SnapshotCreateTime": "

    Provides the time (UTC) when the snapshot was taken.

    ", - "DBSnapshot$InstanceCreateTime": "

    Specifies the time (UTC) when the snapshot was taken.

    ", - "DescribeEventsMessage$StartTime": "

    The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

    ", - "DescribeEventsMessage$EndTime": "

    The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

    ", - "Event$Date": "

    Specifies the date and time of the event.

    ", - "ReservedDBInstance$StartTime": "

    The time the reservation started.

    ", - "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

    The date and time to restore from.

    Valid Values: Value must be a UTC time

    Constraints:

    • Must be before the latest restorable time for the DB Instance
    • Cannot be specified if UseLatestRestorableTime parameter is true

    Example: 2009-09-07T23:45:00Z

    " - } - }, - "Tag": { - "base": "

    Metadata assigned to a DB Instance consisting of a key-value pair.

    ", - "refs": { - "TagList$member": null - } - }, - "TagList": { - "base": "

    A list of tags.

    ", - "refs": { - "AddTagsToResourceMessage$Tags": "

    The tags to be assigned to the DB Instance.

    ", - "TagListMessage$TagList": "

    List of tags returned by the ListTagsForResource operation.

    " - } - }, - "TagListMessage": { - "base": "

    ", - "refs": { - } - }, - "VpcSecurityGroupIdList": { - "base": null, - "refs": { - "CreateDBInstanceMessage$VpcSecurityGroupIds": "

    A list of EC2 VPC Security Groups to associate with this DB Instance.

    Default: The default EC2 VPC Security Group for the DB Subnet group's VPC.

    ", - "ModifyDBInstanceMessage$VpcSecurityGroupIds": "

    A list of EC2 VPC Security Groups to authorize on this DB Instance. This change is asynchronously applied as soon as possible.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "OptionConfiguration$VpcSecurityGroupMemberships": "

    A list of VpcSecurityGroupMemebrship name strings used for this option.

    " - } - }, - "VpcSecurityGroupMembership": { - "base": "

    This data type is used as a response element for queries on VPC security group membership.

    ", - "refs": { - "VpcSecurityGroupMembershipList$member": null - } - }, - "VpcSecurityGroupMembershipList": { - "base": null, - "refs": { - "DBInstance$VpcSecurityGroups": "

    Provides List of VPC security group elements that the DB Instance belongs to.

    ", - "Option$VpcSecurityGroupMemberships": "

    If the Option requires access to a port, then this VPC Security Group allows access to the port.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/paginators-1.json deleted file mode 100644 index e70d762e0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-01-10/paginators-1.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "pagination": { - "DescribeDBEngineVersions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBEngineVersions" - }, - "DescribeDBInstances": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBInstances" - }, - "DescribeDBParameterGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBParameterGroups" - }, - "DescribeDBParameters": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "Parameters" - }, - "DescribeDBSecurityGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBSecurityGroups" - }, - "DescribeDBSnapshots": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBSnapshots" - }, - "DescribeDBSubnetGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBSubnetGroups" - }, - "DescribeEngineDefaultParameters": { - "input_token": "Marker", - "output_token": "EngineDefaults.Marker", - "limit_key": "MaxRecords", - "result_key": "EngineDefaults.Parameters" - }, - "DescribeEventSubscriptions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "EventSubscriptionsList" - }, - "DescribeEvents": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "Events" - }, - "DescribeOptionGroupOptions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "OptionGroupOptions" - }, - "DescribeOptionGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "OptionGroupsList" - }, - "DescribeOrderableDBInstanceOptions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "OrderableDBInstanceOptions" - }, - "DescribeReservedDBInstances": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "ReservedDBInstances" - }, - "DescribeReservedDBInstancesOfferings": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "ReservedDBInstancesOfferings" - }, - "ListTagsForResource": { - "result_key": "TagList" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/api-2.json deleted file mode 100644 index 50bb7e4ce..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/api-2.json +++ /dev/null @@ -1,3057 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2013-02-12", - "endpointPrefix":"rds", - "protocol":"query", - "serviceAbbreviation":"Amazon RDS", - "serviceFullName":"Amazon Relational Database Service", - "signatureVersion":"v4", - "xmlNamespace":"http://rds.amazonaws.com/doc/2013-02-12/" - }, - "operations":{ - "AddSourceIdentifierToSubscription":{ - "name":"AddSourceIdentifierToSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddSourceIdentifierToSubscriptionMessage"}, - "output":{ - "shape":"AddSourceIdentifierToSubscriptionResult", - "resultWrapper":"AddSourceIdentifierToSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "AddTagsToResource":{ - "name":"AddTagsToResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddTagsToResourceMessage"}, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "AuthorizeDBSecurityGroupIngress":{ - "name":"AuthorizeDBSecurityGroupIngress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AuthorizeDBSecurityGroupIngressMessage"}, - "output":{ - "shape":"AuthorizeDBSecurityGroupIngressResult", - "resultWrapper":"AuthorizeDBSecurityGroupIngressResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"AuthorizationAlreadyExistsFault"}, - {"shape":"AuthorizationQuotaExceededFault"} - ] - }, - "CopyDBSnapshot":{ - "name":"CopyDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CopyDBSnapshotMessage"}, - "output":{ - "shape":"CopyDBSnapshotResult", - "resultWrapper":"CopyDBSnapshotResult" - }, - "errors":[ - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "CreateDBInstance":{ - "name":"CreateDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBInstanceMessage"}, - "output":{ - "shape":"CreateDBInstanceResult", - "resultWrapper":"CreateDBInstanceResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "CreateDBInstanceReadReplica":{ - "name":"CreateDBInstanceReadReplica", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBInstanceReadReplicaMessage"}, - "output":{ - "shape":"CreateDBInstanceReadReplicaResult", - "resultWrapper":"CreateDBInstanceReadReplicaResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "CreateDBParameterGroup":{ - "name":"CreateDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBParameterGroupMessage"}, - "output":{ - "shape":"CreateDBParameterGroupResult", - "resultWrapper":"CreateDBParameterGroupResult" - }, - "errors":[ - {"shape":"DBParameterGroupQuotaExceededFault"}, - {"shape":"DBParameterGroupAlreadyExistsFault"} - ] - }, - "CreateDBSecurityGroup":{ - "name":"CreateDBSecurityGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSecurityGroupMessage"}, - "output":{ - "shape":"CreateDBSecurityGroupResult", - "resultWrapper":"CreateDBSecurityGroupResult" - }, - "errors":[ - {"shape":"DBSecurityGroupAlreadyExistsFault"}, - {"shape":"DBSecurityGroupQuotaExceededFault"}, - {"shape":"DBSecurityGroupNotSupportedFault"} - ] - }, - "CreateDBSnapshot":{ - "name":"CreateDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSnapshotMessage"}, - "output":{ - "shape":"CreateDBSnapshotResult", - "resultWrapper":"CreateDBSnapshotResult" - }, - "errors":[ - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "CreateDBSubnetGroup":{ - "name":"CreateDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSubnetGroupMessage"}, - "output":{ - "shape":"CreateDBSubnetGroupResult", - "resultWrapper":"CreateDBSubnetGroupResult" - }, - "errors":[ - {"shape":"DBSubnetGroupAlreadyExistsFault"}, - {"shape":"DBSubnetGroupQuotaExceededFault"}, - {"shape":"DBSubnetQuotaExceededFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} - ] - }, - "CreateEventSubscription":{ - "name":"CreateEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateEventSubscriptionMessage"}, - "output":{ - "shape":"CreateEventSubscriptionResult", - "resultWrapper":"CreateEventSubscriptionResult" - }, - "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionAlreadyExistFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "CreateOptionGroup":{ - "name":"CreateOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateOptionGroupMessage"}, - "output":{ - "shape":"CreateOptionGroupResult", - "resultWrapper":"CreateOptionGroupResult" - }, - "errors":[ - {"shape":"OptionGroupAlreadyExistsFault"}, - {"shape":"OptionGroupQuotaExceededFault"} - ] - }, - "DeleteDBInstance":{ - "name":"DeleteDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBInstanceMessage"}, - "output":{ - "shape":"DeleteDBInstanceResult", - "resultWrapper":"DeleteDBInstanceResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "DeleteDBParameterGroup":{ - "name":"DeleteDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBParameterGroupMessage"}, - "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DeleteDBSecurityGroup":{ - "name":"DeleteDBSecurityGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSecurityGroupMessage"}, - "errors":[ - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"DBSecurityGroupNotFoundFault"} - ] - }, - "DeleteDBSnapshot":{ - "name":"DeleteDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSnapshotMessage"}, - "output":{ - "shape":"DeleteDBSnapshotResult", - "resultWrapper":"DeleteDBSnapshotResult" - }, - "errors":[ - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "DeleteDBSubnetGroup":{ - "name":"DeleteDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSubnetGroupMessage"}, - "errors":[ - {"shape":"InvalidDBSubnetGroupStateFault"}, - {"shape":"InvalidDBSubnetStateFault"}, - {"shape":"DBSubnetGroupNotFoundFault"} - ] - }, - "DeleteEventSubscription":{ - "name":"DeleteEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteEventSubscriptionMessage"}, - "output":{ - "shape":"DeleteEventSubscriptionResult", - "resultWrapper":"DeleteEventSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"InvalidEventSubscriptionStateFault"} - ] - }, - "DeleteOptionGroup":{ - "name":"DeleteOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteOptionGroupMessage"}, - "errors":[ - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"InvalidOptionGroupStateFault"} - ] - }, - "DescribeDBEngineVersions":{ - "name":"DescribeDBEngineVersions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBEngineVersionsMessage"}, - "output":{ - "shape":"DBEngineVersionMessage", - "resultWrapper":"DescribeDBEngineVersionsResult" - } - }, - "DescribeDBInstances":{ - "name":"DescribeDBInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBInstancesMessage"}, - "output":{ - "shape":"DBInstanceMessage", - "resultWrapper":"DescribeDBInstancesResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "DescribeDBLogFiles":{ - "name":"DescribeDBLogFiles", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBLogFilesMessage"}, - "output":{ - "shape":"DescribeDBLogFilesResponse", - "resultWrapper":"DescribeDBLogFilesResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "DescribeDBParameterGroups":{ - "name":"DescribeDBParameterGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBParameterGroupsMessage"}, - "output":{ - "shape":"DBParameterGroupsMessage", - "resultWrapper":"DescribeDBParameterGroupsResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DescribeDBParameters":{ - "name":"DescribeDBParameters", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBParametersMessage"}, - "output":{ - "shape":"DBParameterGroupDetails", - "resultWrapper":"DescribeDBParametersResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DescribeDBSecurityGroups":{ - "name":"DescribeDBSecurityGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSecurityGroupsMessage"}, - "output":{ - "shape":"DBSecurityGroupMessage", - "resultWrapper":"DescribeDBSecurityGroupsResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"} - ] - }, - "DescribeDBSnapshots":{ - "name":"DescribeDBSnapshots", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSnapshotsMessage"}, - "output":{ - "shape":"DBSnapshotMessage", - "resultWrapper":"DescribeDBSnapshotsResult" - }, - "errors":[ - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "DescribeDBSubnetGroups":{ - "name":"DescribeDBSubnetGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSubnetGroupsMessage"}, - "output":{ - "shape":"DBSubnetGroupMessage", - "resultWrapper":"DescribeDBSubnetGroupsResult" - }, - "errors":[ - {"shape":"DBSubnetGroupNotFoundFault"} - ] - }, - "DescribeEngineDefaultParameters":{ - "name":"DescribeEngineDefaultParameters", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEngineDefaultParametersMessage"}, - "output":{ - "shape":"DescribeEngineDefaultParametersResult", - "resultWrapper":"DescribeEngineDefaultParametersResult" - } - }, - "DescribeEventCategories":{ - "name":"DescribeEventCategories", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventCategoriesMessage"}, - "output":{ - "shape":"EventCategoriesMessage", - "resultWrapper":"DescribeEventCategoriesResult" - } - }, - "DescribeEventSubscriptions":{ - "name":"DescribeEventSubscriptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventSubscriptionsMessage"}, - "output":{ - "shape":"EventSubscriptionsMessage", - "resultWrapper":"DescribeEventSubscriptionsResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"} - ] - }, - "DescribeEvents":{ - "name":"DescribeEvents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventsMessage"}, - "output":{ - "shape":"EventsMessage", - "resultWrapper":"DescribeEventsResult" - } - }, - "DescribeOptionGroupOptions":{ - "name":"DescribeOptionGroupOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOptionGroupOptionsMessage"}, - "output":{ - "shape":"OptionGroupOptionsMessage", - "resultWrapper":"DescribeOptionGroupOptionsResult" - } - }, - "DescribeOptionGroups":{ - "name":"DescribeOptionGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOptionGroupsMessage"}, - "output":{ - "shape":"OptionGroups", - "resultWrapper":"DescribeOptionGroupsResult" - }, - "errors":[ - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "DescribeOrderableDBInstanceOptions":{ - "name":"DescribeOrderableDBInstanceOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOrderableDBInstanceOptionsMessage"}, - "output":{ - "shape":"OrderableDBInstanceOptionsMessage", - "resultWrapper":"DescribeOrderableDBInstanceOptionsResult" - } - }, - "DescribeReservedDBInstances":{ - "name":"DescribeReservedDBInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedDBInstancesMessage"}, - "output":{ - "shape":"ReservedDBInstanceMessage", - "resultWrapper":"DescribeReservedDBInstancesResult" - }, - "errors":[ - {"shape":"ReservedDBInstanceNotFoundFault"} - ] - }, - "DescribeReservedDBInstancesOfferings":{ - "name":"DescribeReservedDBInstancesOfferings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedDBInstancesOfferingsMessage"}, - "output":{ - "shape":"ReservedDBInstancesOfferingMessage", - "resultWrapper":"DescribeReservedDBInstancesOfferingsResult" - }, - "errors":[ - {"shape":"ReservedDBInstancesOfferingNotFoundFault"} - ] - }, - "DownloadDBLogFilePortion":{ - "name":"DownloadDBLogFilePortion", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DownloadDBLogFilePortionMessage"}, - "output":{ - "shape":"DownloadDBLogFilePortionDetails", - "resultWrapper":"DownloadDBLogFilePortionResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBLogFileNotFoundFault"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceMessage"}, - "output":{ - "shape":"TagListMessage", - "resultWrapper":"ListTagsForResourceResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "ModifyDBInstance":{ - "name":"ModifyDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBInstanceMessage"}, - "output":{ - "shape":"ModifyDBInstanceResult", - "resultWrapper":"ModifyDBInstanceResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"DBUpgradeDependencyFailureFault"} - ] - }, - "ModifyDBParameterGroup":{ - "name":"ModifyDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBParameterGroupMessage"}, - "output":{ - "shape":"DBParameterGroupNameMessage", - "resultWrapper":"ModifyDBParameterGroupResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InvalidDBParameterGroupStateFault"} - ] - }, - "ModifyDBSubnetGroup":{ - "name":"ModifyDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBSubnetGroupMessage"}, - "output":{ - "shape":"ModifyDBSubnetGroupResult", - "resultWrapper":"ModifyDBSubnetGroupResult" - }, - "errors":[ - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetQuotaExceededFault"}, - {"shape":"SubnetAlreadyInUse"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} - ] - }, - "ModifyEventSubscription":{ - "name":"ModifyEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyEventSubscriptionMessage"}, - "output":{ - "shape":"ModifyEventSubscriptionResult", - "resultWrapper":"ModifyEventSubscriptionResult" - }, - "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"} - ] - }, - "ModifyOptionGroup":{ - "name":"ModifyOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyOptionGroupMessage"}, - "output":{ - "shape":"ModifyOptionGroupResult", - "resultWrapper":"ModifyOptionGroupResult" - }, - "errors":[ - {"shape":"InvalidOptionGroupStateFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "PromoteReadReplica":{ - "name":"PromoteReadReplica", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PromoteReadReplicaMessage"}, - "output":{ - "shape":"PromoteReadReplicaResult", - "resultWrapper":"PromoteReadReplicaResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "PurchaseReservedDBInstancesOffering":{ - "name":"PurchaseReservedDBInstancesOffering", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PurchaseReservedDBInstancesOfferingMessage"}, - "output":{ - "shape":"PurchaseReservedDBInstancesOfferingResult", - "resultWrapper":"PurchaseReservedDBInstancesOfferingResult" - }, - "errors":[ - {"shape":"ReservedDBInstancesOfferingNotFoundFault"}, - {"shape":"ReservedDBInstanceAlreadyExistsFault"}, - {"shape":"ReservedDBInstanceQuotaExceededFault"} - ] - }, - "RebootDBInstance":{ - "name":"RebootDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RebootDBInstanceMessage"}, - "output":{ - "shape":"RebootDBInstanceResult", - "resultWrapper":"RebootDBInstanceResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "RemoveSourceIdentifierFromSubscription":{ - "name":"RemoveSourceIdentifierFromSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveSourceIdentifierFromSubscriptionMessage"}, - "output":{ - "shape":"RemoveSourceIdentifierFromSubscriptionResult", - "resultWrapper":"RemoveSourceIdentifierFromSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "RemoveTagsFromResource":{ - "name":"RemoveTagsFromResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTagsFromResourceMessage"}, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "ResetDBParameterGroup":{ - "name":"ResetDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResetDBParameterGroupMessage"}, - "output":{ - "shape":"DBParameterGroupNameMessage", - "resultWrapper":"ResetDBParameterGroupResult" - }, - "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "RestoreDBInstanceFromDBSnapshot":{ - "name":"RestoreDBInstanceFromDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreDBInstanceFromDBSnapshotMessage"}, - "output":{ - "shape":"RestoreDBInstanceFromDBSnapshotResult", - "resultWrapper":"RestoreDBInstanceFromDBSnapshotResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "RestoreDBInstanceToPointInTime":{ - "name":"RestoreDBInstanceToPointInTime", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreDBInstanceToPointInTimeMessage"}, - "output":{ - "shape":"RestoreDBInstanceToPointInTimeResult", - "resultWrapper":"RestoreDBInstanceToPointInTimeResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"PointInTimeRestoreNotEnabledFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "RevokeDBSecurityGroupIngress":{ - "name":"RevokeDBSecurityGroupIngress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RevokeDBSecurityGroupIngressMessage"}, - "output":{ - "shape":"RevokeDBSecurityGroupIngressResult", - "resultWrapper":"RevokeDBSecurityGroupIngressResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"} - ] - } - }, - "shapes":{ - "AddSourceIdentifierToSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SourceIdentifier" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SourceIdentifier":{"shape":"String"} - } - }, - "AddSourceIdentifierToSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "AddTagsToResourceMessage":{ - "type":"structure", - "required":[ - "ResourceName", - "Tags" - ], - "members":{ - "ResourceName":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "ApplyMethod":{ - "type":"string", - "enum":[ - "immediate", - "pending-reboot" - ] - }, - "AuthorizationAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "AuthorizationNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "AuthorizationQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "AuthorizeDBSecurityGroupIngressMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "CIDRIP":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "AuthorizeDBSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "AvailabilityZone":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "ProvisionedIopsCapable":{"shape":"Boolean"} - }, - "wrapper":true - }, - "AvailabilityZoneList":{ - "type":"list", - "member":{ - "shape":"AvailabilityZone", - "locationName":"AvailabilityZone" - } - }, - "Boolean":{"type":"boolean"}, - "BooleanOptional":{"type":"boolean"}, - "CharacterSet":{ - "type":"structure", - "members":{ - "CharacterSetName":{"shape":"String"}, - "CharacterSetDescription":{"shape":"String"} - } - }, - "CopyDBSnapshotMessage":{ - "type":"structure", - "required":[ - "SourceDBSnapshotIdentifier", - "TargetDBSnapshotIdentifier" - ], - "members":{ - "SourceDBSnapshotIdentifier":{"shape":"String"}, - "TargetDBSnapshotIdentifier":{"shape":"String"} - } - }, - "CopyDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "CreateDBInstanceMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "AllocatedStorage", - "DBInstanceClass", - "Engine", - "MasterUsername", - "MasterUserPassword" - ], - "members":{ - "DBName":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "DBInstanceClass":{"shape":"String"}, - "Engine":{"shape":"String"}, - "MasterUsername":{"shape":"String"}, - "MasterUserPassword":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "DBParameterGroupName":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "CharacterSetName":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"} - } - }, - "CreateDBInstanceReadReplicaMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "SourceDBInstanceIdentifier" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "SourceDBInstanceIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "AvailabilityZone":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"} - } - }, - "CreateDBInstanceReadReplicaResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "CreateDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "CreateDBParameterGroupMessage":{ - "type":"structure", - "required":[ - "DBParameterGroupName", - "DBParameterGroupFamily", - "Description" - ], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "Description":{"shape":"String"} - } - }, - "CreateDBParameterGroupResult":{ - "type":"structure", - "members":{ - "DBParameterGroup":{"shape":"DBParameterGroup"} - } - }, - "CreateDBSecurityGroupMessage":{ - "type":"structure", - "required":[ - "DBSecurityGroupName", - "DBSecurityGroupDescription" - ], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "DBSecurityGroupDescription":{"shape":"String"} - } - }, - "CreateDBSecurityGroupResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "CreateDBSnapshotMessage":{ - "type":"structure", - "required":[ - "DBSnapshotIdentifier", - "DBInstanceIdentifier" - ], - "members":{ - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"} - } - }, - "CreateDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "CreateDBSubnetGroupMessage":{ - "type":"structure", - "required":[ - "DBSubnetGroupName", - "DBSubnetGroupDescription", - "SubnetIds" - ], - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "SubnetIds":{"shape":"SubnetIdentifierList"} - } - }, - "CreateDBSubnetGroupResult":{ - "type":"structure", - "members":{ - "DBSubnetGroup":{"shape":"DBSubnetGroup"} - } - }, - "CreateEventSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SnsTopicArn" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "SourceIds":{"shape":"SourceIdsList"}, - "Enabled":{"shape":"BooleanOptional"} - } - }, - "CreateEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "CreateOptionGroupMessage":{ - "type":"structure", - "required":[ - "OptionGroupName", - "EngineName", - "MajorEngineVersion", - "OptionGroupDescription" - ], - "members":{ - "OptionGroupName":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "OptionGroupDescription":{"shape":"String"} - } - }, - "CreateOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, - "DBEngineVersion":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "DBEngineDescription":{"shape":"String"}, - "DBEngineVersionDescription":{"shape":"String"}, - "DefaultCharacterSet":{"shape":"CharacterSet"}, - "SupportedCharacterSets":{"shape":"SupportedCharacterSetsList"} - } - }, - "DBEngineVersionList":{ - "type":"list", - "member":{ - "shape":"DBEngineVersion", - "locationName":"DBEngineVersion" - } - }, - "DBEngineVersionMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBEngineVersions":{"shape":"DBEngineVersionList"} - } - }, - "DBInstance":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Engine":{"shape":"String"}, - "DBInstanceStatus":{"shape":"String"}, - "MasterUsername":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Endpoint":{"shape":"Endpoint"}, - "AllocatedStorage":{"shape":"Integer"}, - "InstanceCreateTime":{"shape":"TStamp"}, - "PreferredBackupWindow":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"Integer"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupMembershipList"}, - "VpcSecurityGroups":{"shape":"VpcSecurityGroupMembershipList"}, - "DBParameterGroups":{"shape":"DBParameterGroupStatusList"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroup":{"shape":"DBSubnetGroup"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "PendingModifiedValues":{"shape":"PendingModifiedValues"}, - "LatestRestorableTime":{"shape":"TStamp"}, - "MultiAZ":{"shape":"Boolean"}, - "EngineVersion":{"shape":"String"}, - "AutoMinorVersionUpgrade":{"shape":"Boolean"}, - "ReadReplicaSourceDBInstanceIdentifier":{"shape":"String"}, - "ReadReplicaDBInstanceIdentifiers":{"shape":"ReadReplicaDBInstanceIdentifierList"}, - "LicenseModel":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupMemberships":{"shape":"OptionGroupMembershipList"}, - "CharacterSetName":{"shape":"String"}, - "SecondaryAvailabilityZone":{"shape":"String"}, - "PubliclyAccessible":{"shape":"Boolean"} - }, - "wrapper":true - }, - "DBInstanceAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBInstanceAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBInstanceList":{ - "type":"list", - "member":{ - "shape":"DBInstance", - "locationName":"DBInstance" - } - }, - "DBInstanceMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBInstances":{"shape":"DBInstanceList"} - } - }, - "DBInstanceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBInstanceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBLogFileNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBLogFileNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroup":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "Description":{"shape":"String"} - }, - "wrapper":true - }, - "DBParameterGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupDetails":{ - "type":"structure", - "members":{ - "Parameters":{"shape":"ParametersList"}, - "Marker":{"shape":"String"} - } - }, - "DBParameterGroupList":{ - "type":"list", - "member":{ - "shape":"DBParameterGroup", - "locationName":"DBParameterGroup" - } - }, - "DBParameterGroupNameMessage":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"} - } - }, - "DBParameterGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupStatus":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "ParameterApplyStatus":{"shape":"String"} - } - }, - "DBParameterGroupStatusList":{ - "type":"list", - "member":{ - "shape":"DBParameterGroupStatus", - "locationName":"DBParameterGroup" - } - }, - "DBParameterGroupsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBParameterGroups":{"shape":"DBParameterGroupList"} - } - }, - "DBSecurityGroup":{ - "type":"structure", - "members":{ - "OwnerId":{"shape":"String"}, - "DBSecurityGroupName":{"shape":"String"}, - "DBSecurityGroupDescription":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "EC2SecurityGroups":{"shape":"EC2SecurityGroupList"}, - "IPRanges":{"shape":"IPRangeList"} - }, - "wrapper":true - }, - "DBSecurityGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupMembership":{ - "type":"structure", - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "DBSecurityGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"DBSecurityGroupMembership", - "locationName":"DBSecurityGroup" - } - }, - "DBSecurityGroupMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroups"} - } - }, - "DBSecurityGroupNameList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"DBSecurityGroupName" - } - }, - "DBSecurityGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupNotSupportedFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupNotSupported", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"QuotaExceeded.DBSecurityGroup", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroups":{ - "type":"list", - "member":{ - "shape":"DBSecurityGroup", - "locationName":"DBSecurityGroup" - } - }, - "DBSnapshot":{ - "type":"structure", - "members":{ - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"}, - "SnapshotCreateTime":{"shape":"TStamp"}, - "Engine":{"shape":"String"}, - "AllocatedStorage":{"shape":"Integer"}, - "Status":{"shape":"String"}, - "Port":{"shape":"Integer"}, - "AvailabilityZone":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "InstanceCreateTime":{"shape":"TStamp"}, - "MasterUsername":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "SnapshotType":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"} - }, - "wrapper":true - }, - "DBSnapshotAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSnapshotAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSnapshotList":{ - "type":"list", - "member":{ - "shape":"DBSnapshot", - "locationName":"DBSnapshot" - } - }, - "DBSnapshotMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSnapshots":{"shape":"DBSnapshotList"} - } - }, - "DBSnapshotNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSnapshotNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroup":{ - "type":"structure", - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "SubnetGroupStatus":{"shape":"String"}, - "Subnets":{"shape":"SubnetList"} - }, - "wrapper":true - }, - "DBSubnetGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupDoesNotCoverEnoughAZs":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupDoesNotCoverEnoughAZs", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSubnetGroups":{"shape":"DBSubnetGroups"} - } - }, - "DBSubnetGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroups":{ - "type":"list", - "member":{ - "shape":"DBSubnetGroup", - "locationName":"DBSubnetGroup" - } - }, - "DBSubnetQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetQuotaExceededFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBUpgradeDependencyFailureFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBUpgradeDependencyFailure", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DeleteDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "SkipFinalSnapshot":{"shape":"Boolean"}, - "FinalDBSnapshotIdentifier":{"shape":"String"} - } - }, - "DeleteDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "DeleteDBParameterGroupMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"} - } - }, - "DeleteDBSecurityGroupMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"} - } - }, - "DeleteDBSnapshotMessage":{ - "type":"structure", - "required":["DBSnapshotIdentifier"], - "members":{ - "DBSnapshotIdentifier":{"shape":"String"} - } - }, - "DeleteDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "DeleteDBSubnetGroupMessage":{ - "type":"structure", - "required":["DBSubnetGroupName"], - "members":{ - "DBSubnetGroupName":{"shape":"String"} - } - }, - "DeleteEventSubscriptionMessage":{ - "type":"structure", - "required":["SubscriptionName"], - "members":{ - "SubscriptionName":{"shape":"String"} - } - }, - "DeleteEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "DeleteOptionGroupMessage":{ - "type":"structure", - "required":["OptionGroupName"], - "members":{ - "OptionGroupName":{"shape":"String"} - } - }, - "DescribeDBEngineVersionsMessage":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"}, - "DefaultOnly":{"shape":"Boolean"}, - "ListSupportedCharacterSets":{"shape":"BooleanOptional"} - } - }, - "DescribeDBInstancesMessage":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBLogFilesDetails":{ - "type":"structure", - "members":{ - "LogFileName":{"shape":"String"}, - "LastWritten":{"shape":"Long"}, - "Size":{"shape":"Long"} - } - }, - "DescribeDBLogFilesList":{ - "type":"list", - "member":{ - "shape":"DescribeDBLogFilesDetails", - "locationName":"DescribeDBLogFilesDetails" - } - }, - "DescribeDBLogFilesMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "FilenameContains":{"shape":"String"}, - "FileLastWritten":{"shape":"Long"}, - "FileSize":{"shape":"Long"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBLogFilesResponse":{ - "type":"structure", - "members":{ - "DescribeDBLogFiles":{"shape":"DescribeDBLogFilesList"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBParameterGroupsMessage":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBParametersMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "Source":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSecurityGroupsMessage":{ - "type":"structure", - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSnapshotsMessage":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBSnapshotIdentifier":{"shape":"String"}, - "SnapshotType":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSubnetGroupsMessage":{ - "type":"structure", - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEngineDefaultParametersMessage":{ - "type":"structure", - "required":["DBParameterGroupFamily"], - "members":{ - "DBParameterGroupFamily":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEngineDefaultParametersResult":{ - "type":"structure", - "members":{ - "EngineDefaults":{"shape":"EngineDefaults"} - } - }, - "DescribeEventCategoriesMessage":{ - "type":"structure", - "members":{ - "SourceType":{"shape":"String"} - } - }, - "DescribeEventSubscriptionsMessage":{ - "type":"structure", - "members":{ - "SubscriptionName":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEventsMessage":{ - "type":"structure", - "members":{ - "SourceIdentifier":{"shape":"String"}, - "SourceType":{"shape":"SourceType"}, - "StartTime":{"shape":"TStamp"}, - "EndTime":{"shape":"TStamp"}, - "Duration":{"shape":"IntegerOptional"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeOptionGroupOptionsMessage":{ - "type":"structure", - "required":["EngineName"], - "members":{ - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeOptionGroupsMessage":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "Marker":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"} - } - }, - "DescribeOrderableDBInstanceOptionsMessage":{ - "type":"structure", - "required":["Engine"], - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "Vpc":{"shape":"BooleanOptional"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReservedDBInstancesMessage":{ - "type":"structure", - "members":{ - "ReservedDBInstanceId":{"shape":"String"}, - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReservedDBInstancesOfferingsMessage":{ - "type":"structure", - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "Double":{"type":"double"}, - "DownloadDBLogFilePortionDetails":{ - "type":"structure", - "members":{ - "LogFileData":{"shape":"String"}, - "Marker":{"shape":"String"}, - "AdditionalDataPending":{"shape":"Boolean"} - } - }, - "DownloadDBLogFilePortionMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "LogFileName" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "LogFileName":{"shape":"String"}, - "Marker":{"shape":"String"}, - "NumberOfLines":{"shape":"Integer"} - } - }, - "EC2SecurityGroup":{ - "type":"structure", - "members":{ - "Status":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "EC2SecurityGroupList":{ - "type":"list", - "member":{ - "shape":"EC2SecurityGroup", - "locationName":"EC2SecurityGroup" - } - }, - "Endpoint":{ - "type":"structure", - "members":{ - "Address":{"shape":"String"}, - "Port":{"shape":"Integer"} - } - }, - "EngineDefaults":{ - "type":"structure", - "members":{ - "DBParameterGroupFamily":{"shape":"String"}, - "Marker":{"shape":"String"}, - "Parameters":{"shape":"ParametersList"} - }, - "wrapper":true - }, - "Event":{ - "type":"structure", - "members":{ - "SourceIdentifier":{"shape":"String"}, - "SourceType":{"shape":"SourceType"}, - "Message":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "Date":{"shape":"TStamp"} - } - }, - "EventCategoriesList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"EventCategory" - } - }, - "EventCategoriesMap":{ - "type":"structure", - "members":{ - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"} - }, - "wrapper":true - }, - "EventCategoriesMapList":{ - "type":"list", - "member":{ - "shape":"EventCategoriesMap", - "locationName":"EventCategoriesMap" - } - }, - "EventCategoriesMessage":{ - "type":"structure", - "members":{ - "EventCategoriesMapList":{"shape":"EventCategoriesMapList"} - } - }, - "EventList":{ - "type":"list", - "member":{ - "shape":"Event", - "locationName":"Event" - } - }, - "EventSubscription":{ - "type":"structure", - "members":{ - "CustomerAwsId":{"shape":"String"}, - "CustSubscriptionId":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "Status":{"shape":"String"}, - "SubscriptionCreationTime":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "SourceIdsList":{"shape":"SourceIdsList"}, - "EventCategoriesList":{"shape":"EventCategoriesList"}, - "Enabled":{"shape":"Boolean"} - }, - "wrapper":true - }, - "EventSubscriptionQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"EventSubscriptionQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "EventSubscriptionsList":{ - "type":"list", - "member":{ - "shape":"EventSubscription", - "locationName":"EventSubscription" - } - }, - "EventSubscriptionsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "EventSubscriptionsList":{"shape":"EventSubscriptionsList"} - } - }, - "EventsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "Events":{"shape":"EventList"} - } - }, - "IPRange":{ - "type":"structure", - "members":{ - "Status":{"shape":"String"}, - "CIDRIP":{"shape":"String"} - } - }, - "IPRangeList":{ - "type":"list", - "member":{ - "shape":"IPRange", - "locationName":"IPRange" - } - }, - "InstanceQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InstanceQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InsufficientDBInstanceCapacityFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InsufficientDBInstanceCapacity", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "Integer":{"type":"integer"}, - "IntegerOptional":{"type":"integer"}, - "InvalidDBInstanceStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBInstanceState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBParameterGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBParameterGroupState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSecurityGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSecurityGroupState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSnapshotStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSnapshotState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSubnetGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSubnetGroupStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSubnetStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSubnetStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidEventSubscriptionStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidEventSubscriptionState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidOptionGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidOptionGroupStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidRestoreFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidRestoreFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidSubnet":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidSubnet", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidVPCNetworkStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidVPCNetworkStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "KeyList":{ - "type":"list", - "member":{"shape":"String"} - }, - "ListTagsForResourceMessage":{ - "type":"structure", - "required":["ResourceName"], - "members":{ - "ResourceName":{"shape":"String"} - } - }, - "Long":{"type":"long"}, - "ModifyDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "DBInstanceClass":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "ApplyImmediately":{"shape":"Boolean"}, - "MasterUserPassword":{"shape":"String"}, - "DBParameterGroupName":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "AllowMajorVersionUpgrade":{"shape":"Boolean"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "NewDBInstanceIdentifier":{"shape":"String"} - } - }, - "ModifyDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "ModifyDBParameterGroupMessage":{ - "type":"structure", - "required":[ - "DBParameterGroupName", - "Parameters" - ], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "Parameters":{"shape":"ParametersList"} - } - }, - "ModifyDBSubnetGroupMessage":{ - "type":"structure", - "required":[ - "DBSubnetGroupName", - "SubnetIds" - ], - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "SubnetIds":{"shape":"SubnetIdentifierList"} - } - }, - "ModifyDBSubnetGroupResult":{ - "type":"structure", - "members":{ - "DBSubnetGroup":{"shape":"DBSubnetGroup"} - } - }, - "ModifyEventSubscriptionMessage":{ - "type":"structure", - "required":["SubscriptionName"], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "Enabled":{"shape":"BooleanOptional"} - } - }, - "ModifyEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "ModifyOptionGroupMessage":{ - "type":"structure", - "required":["OptionGroupName"], - "members":{ - "OptionGroupName":{"shape":"String"}, - "OptionsToInclude":{"shape":"OptionConfigurationList"}, - "OptionsToRemove":{"shape":"OptionNamesList"}, - "ApplyImmediately":{"shape":"Boolean"} - } - }, - "ModifyOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, - "Option":{ - "type":"structure", - "members":{ - "OptionName":{"shape":"String"}, - "OptionDescription":{"shape":"String"}, - "Persistent":{"shape":"Boolean"}, - "Port":{"shape":"IntegerOptional"}, - "OptionSettings":{"shape":"OptionSettingConfigurationList"}, - "DBSecurityGroupMemberships":{"shape":"DBSecurityGroupMembershipList"}, - "VpcSecurityGroupMemberships":{"shape":"VpcSecurityGroupMembershipList"} - } - }, - "OptionConfiguration":{ - "type":"structure", - "required":["OptionName"], - "members":{ - "OptionName":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "DBSecurityGroupMemberships":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupMemberships":{"shape":"VpcSecurityGroupIdList"}, - "OptionSettings":{"shape":"OptionSettingsList"} - } - }, - "OptionConfigurationList":{ - "type":"list", - "member":{ - "shape":"OptionConfiguration", - "locationName":"OptionConfiguration" - } - }, - "OptionGroup":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "OptionGroupDescription":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "Options":{"shape":"OptionsList"}, - "AllowsVpcAndNonVpcInstanceMemberships":{"shape":"Boolean"}, - "VpcId":{"shape":"String"} - }, - "wrapper":true - }, - "OptionGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupAlreadyExistsFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "OptionGroupMembership":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "OptionGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"OptionGroupMembership", - "locationName":"OptionGroupMembership" - } - }, - "OptionGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "OptionGroupOption":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "Description":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "MinimumRequiredMinorEngineVersion":{"shape":"String"}, - "PortRequired":{"shape":"Boolean"}, - "DefaultPort":{"shape":"IntegerOptional"}, - "OptionsDependedOn":{"shape":"OptionsDependedOn"}, - "Persistent":{"shape":"Boolean"}, - "OptionGroupOptionSettings":{"shape":"OptionGroupOptionSettingsList"} - } - }, - "OptionGroupOptionSetting":{ - "type":"structure", - "members":{ - "SettingName":{"shape":"String"}, - "SettingDescription":{"shape":"String"}, - "DefaultValue":{"shape":"String"}, - "ApplyType":{"shape":"String"}, - "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"} - } - }, - "OptionGroupOptionSettingsList":{ - "type":"list", - "member":{ - "shape":"OptionGroupOptionSetting", - "locationName":"OptionGroupOptionSetting" - } - }, - "OptionGroupOptionsList":{ - "type":"list", - "member":{ - "shape":"OptionGroupOption", - "locationName":"OptionGroupOption" - } - }, - "OptionGroupOptionsMessage":{ - "type":"structure", - "members":{ - "OptionGroupOptions":{"shape":"OptionGroupOptionsList"}, - "Marker":{"shape":"String"} - } - }, - "OptionGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupQuotaExceededFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "OptionGroups":{ - "type":"structure", - "members":{ - "OptionGroupsList":{"shape":"OptionGroupsList"}, - "Marker":{"shape":"String"} - } - }, - "OptionGroupsList":{ - "type":"list", - "member":{ - "shape":"OptionGroup", - "locationName":"OptionGroup" - } - }, - "OptionNamesList":{ - "type":"list", - "member":{"shape":"String"} - }, - "OptionSetting":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "Value":{"shape":"String"}, - "DefaultValue":{"shape":"String"}, - "Description":{"shape":"String"}, - "ApplyType":{"shape":"String"}, - "DataType":{"shape":"String"}, - "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"}, - "IsCollection":{"shape":"Boolean"} - } - }, - "OptionSettingConfigurationList":{ - "type":"list", - "member":{ - "shape":"OptionSetting", - "locationName":"OptionSetting" - } - }, - "OptionSettingsList":{ - "type":"list", - "member":{ - "shape":"OptionSetting", - "locationName":"OptionSetting" - } - }, - "OptionsDependedOn":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"OptionName" - } - }, - "OptionsList":{ - "type":"list", - "member":{ - "shape":"Option", - "locationName":"Option" - } - }, - "OrderableDBInstanceOption":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "AvailabilityZones":{"shape":"AvailabilityZoneList"}, - "MultiAZCapable":{"shape":"Boolean"}, - "ReadReplicaCapable":{"shape":"Boolean"}, - "Vpc":{"shape":"Boolean"} - }, - "wrapper":true - }, - "OrderableDBInstanceOptionsList":{ - "type":"list", - "member":{ - "shape":"OrderableDBInstanceOption", - "locationName":"OrderableDBInstanceOption" - } - }, - "OrderableDBInstanceOptionsMessage":{ - "type":"structure", - "members":{ - "OrderableDBInstanceOptions":{"shape":"OrderableDBInstanceOptionsList"}, - "Marker":{"shape":"String"} - } - }, - "Parameter":{ - "type":"structure", - "members":{ - "ParameterName":{"shape":"String"}, - "ParameterValue":{"shape":"String"}, - "Description":{"shape":"String"}, - "Source":{"shape":"String"}, - "ApplyType":{"shape":"String"}, - "DataType":{"shape":"String"}, - "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"}, - "MinimumEngineVersion":{"shape":"String"}, - "ApplyMethod":{"shape":"ApplyMethod"} - } - }, - "ParametersList":{ - "type":"list", - "member":{ - "shape":"Parameter", - "locationName":"Parameter" - } - }, - "PendingModifiedValues":{ - "type":"structure", - "members":{ - "DBInstanceClass":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "MasterUserPassword":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "DBInstanceIdentifier":{"shape":"String"} - } - }, - "PointInTimeRestoreNotEnabledFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"PointInTimeRestoreNotEnabled", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "PromoteReadReplicaMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"} - } - }, - "PromoteReadReplicaResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "ProvisionedIopsNotAvailableInAZFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ProvisionedIopsNotAvailableInAZFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "PurchaseReservedDBInstancesOfferingMessage":{ - "type":"structure", - "required":["ReservedDBInstancesOfferingId"], - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "ReservedDBInstanceId":{"shape":"String"}, - "DBInstanceCount":{"shape":"IntegerOptional"} - } - }, - "PurchaseReservedDBInstancesOfferingResult":{ - "type":"structure", - "members":{ - "ReservedDBInstance":{"shape":"ReservedDBInstance"} - } - }, - "ReadReplicaDBInstanceIdentifierList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ReadReplicaDBInstanceIdentifier" - } - }, - "RebootDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "ForceFailover":{"shape":"BooleanOptional"} - } - }, - "RebootDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RecurringCharge":{ - "type":"structure", - "members":{ - "RecurringChargeAmount":{"shape":"Double"}, - "RecurringChargeFrequency":{"shape":"String"} - }, - "wrapper":true - }, - "RecurringChargeList":{ - "type":"list", - "member":{ - "shape":"RecurringCharge", - "locationName":"RecurringCharge" - } - }, - "RemoveSourceIdentifierFromSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SourceIdentifier" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SourceIdentifier":{"shape":"String"} - } - }, - "RemoveSourceIdentifierFromSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "RemoveTagsFromResourceMessage":{ - "type":"structure", - "required":[ - "ResourceName", - "TagKeys" - ], - "members":{ - "ResourceName":{"shape":"String"}, - "TagKeys":{"shape":"KeyList"} - } - }, - "ReservedDBInstance":{ - "type":"structure", - "members":{ - "ReservedDBInstanceId":{"shape":"String"}, - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "StartTime":{"shape":"TStamp"}, - "Duration":{"shape":"Integer"}, - "FixedPrice":{"shape":"Double"}, - "UsagePrice":{"shape":"Double"}, - "CurrencyCode":{"shape":"String"}, - "DBInstanceCount":{"shape":"Integer"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"Boolean"}, - "State":{"shape":"String"}, - "RecurringCharges":{"shape":"RecurringChargeList"} - }, - "wrapper":true - }, - "ReservedDBInstanceAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceAlreadyExists", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstanceList":{ - "type":"list", - "member":{ - "shape":"ReservedDBInstance", - "locationName":"ReservedDBInstance" - } - }, - "ReservedDBInstanceMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReservedDBInstances":{"shape":"ReservedDBInstanceList"} - } - }, - "ReservedDBInstanceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstanceQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstancesOffering":{ - "type":"structure", - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"Integer"}, - "FixedPrice":{"shape":"Double"}, - "UsagePrice":{"shape":"Double"}, - "CurrencyCode":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"Boolean"}, - "RecurringCharges":{"shape":"RecurringChargeList"} - }, - "wrapper":true - }, - "ReservedDBInstancesOfferingList":{ - "type":"list", - "member":{ - "shape":"ReservedDBInstancesOffering", - "locationName":"ReservedDBInstancesOffering" - } - }, - "ReservedDBInstancesOfferingMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReservedDBInstancesOfferings":{"shape":"ReservedDBInstancesOfferingList"} - } - }, - "ReservedDBInstancesOfferingNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstancesOfferingNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ResetDBParameterGroupMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "ResetAllParameters":{"shape":"Boolean"}, - "Parameters":{"shape":"ParametersList"} - } - }, - "RestoreDBInstanceFromDBSnapshotMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "DBSnapshotIdentifier" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Engine":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"} - } - }, - "RestoreDBInstanceFromDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RestoreDBInstanceToPointInTimeMessage":{ - "type":"structure", - "required":[ - "SourceDBInstanceIdentifier", - "TargetDBInstanceIdentifier" - ], - "members":{ - "SourceDBInstanceIdentifier":{"shape":"String"}, - "TargetDBInstanceIdentifier":{"shape":"String"}, - "RestoreTime":{"shape":"TStamp"}, - "UseLatestRestorableTime":{"shape":"Boolean"}, - "DBInstanceClass":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Engine":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"} - } - }, - "RestoreDBInstanceToPointInTimeResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RevokeDBSecurityGroupIngressMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "CIDRIP":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "RevokeDBSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "SNSInvalidTopicFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSInvalidTopic", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SNSNoAuthorizationFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSNoAuthorization", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SNSTopicArnNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSTopicArnNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SnapshotQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SnapshotQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SourceIdsList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SourceId" - } - }, - "SourceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SourceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SourceType":{ - "type":"string", - "enum":[ - "db-instance", - "db-parameter-group", - "db-security-group", - "db-snapshot" - ] - }, - "StorageQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"StorageQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "String":{"type":"string"}, - "Subnet":{ - "type":"structure", - "members":{ - "SubnetIdentifier":{"shape":"String"}, - "SubnetAvailabilityZone":{"shape":"AvailabilityZone"}, - "SubnetStatus":{"shape":"String"} - } - }, - "SubnetAlreadyInUse":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubnetAlreadyInUse", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SubnetIdentifierList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SubnetIdentifier" - } - }, - "SubnetList":{ - "type":"list", - "member":{ - "shape":"Subnet", - "locationName":"Subnet" - } - }, - "SubscriptionAlreadyExistFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionAlreadyExist", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SubscriptionCategoryNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionCategoryNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SubscriptionNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SupportedCharacterSetsList":{ - "type":"list", - "member":{ - "shape":"CharacterSet", - "locationName":"CharacterSet" - } - }, - "TStamp":{"type":"timestamp"}, - "Tag":{ - "type":"structure", - "members":{ - "Key":{"shape":"String"}, - "Value":{"shape":"String"} - } - }, - "TagList":{ - "type":"list", - "member":{ - "shape":"Tag", - "locationName":"Tag" - } - }, - "TagListMessage":{ - "type":"structure", - "members":{ - "TagList":{"shape":"TagList"} - } - }, - "VpcSecurityGroupIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"VpcSecurityGroupId" - } - }, - "VpcSecurityGroupMembership":{ - "type":"structure", - "members":{ - "VpcSecurityGroupId":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "VpcSecurityGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"VpcSecurityGroupMembership", - "locationName":"VpcSecurityGroupMembership" - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/docs-2.json deleted file mode 100644 index 31661545e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/docs-2.json +++ /dev/null @@ -1,1796 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon Relational Database Service

    Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

    Amazon RDS gives you access to the capabilities of a familiar MySQL or Oracle database server. This means the code, applications, and tools you already use today with your existing MySQL or Oracle databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB Instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

    This is the Amazon RDS API Reference. It contains a comprehensive description of all Amazon RDS Query APIs and data types. Note that this API is asynchronous and some actions may require polling to determine when an action has been applied. See the parameter description to determine if a change is applied immediately or on the next instance reboot or during the maintenance window. For more information on Amazon RDS concepts and usage scenarios, see the Amazon RDS User Guide.

    ", - "operations": { - "AddSourceIdentifierToSubscription": "

    Adds a source identifier to an existing RDS event notification subscription.

    ", - "AddTagsToResource": "

    Adds metadata tags to a DB Instance. These tags can also be used with cost allocation reporting to track cost associated with a DB Instance.

    ", - "AuthorizeDBSecurityGroupIngress": "

    Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC Security Groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

    You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB Instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB Instance in another.

    For an overview of CIDR ranges, go to the Wikipedia Tutorial.

    ", - "CopyDBSnapshot": "

    Copies the specified DBSnapshot. The source DBSnapshot must be in the \"available\" state.

    ", - "CreateDBInstance": "

    Creates a new DB instance.

    ", - "CreateDBInstanceReadReplica": "

    Creates a DB Instance that acts as a Read Replica of a source DB Instance.

    All Read Replica DB Instances are created as Single-AZ deployments with backups disabled. All other DB Instance attributes (including DB Security Groups and DB Parameter Groups) are inherited from the source DB Instance, except as specified below.

    The source DB Instance must have backup retention enabled.

    ", - "CreateDBParameterGroup": "

    Creates a new DB Parameter Group.

    A DB Parameter Group is initially created with the default parameters for the database engine used by the DB Instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB Parameter Group, you need to associate it with your DB Instance using ModifyDBInstance. When you associate a new DB Parameter Group with a running DB Instance, you need to reboot the DB Instance for the new DB Parameter Group and associated settings to take effect.

    ", - "CreateDBSecurityGroup": "

    Creates a new DB Security Group. DB Security Groups control access to a DB Instance.

    ", - "CreateDBSnapshot": "

    Creates a DBSnapshot. The source DBInstance must be in \"available\" state.

    ", - "CreateDBSubnetGroup": "

    Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

    ", - "CreateEventSubscription": "

    Creates an RDS event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the RDS console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

    You can specify the type of source (SourceType) you want to be notified of, provide a list of RDS sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

    If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you will receive notice of the events for that source type for all your RDS sources. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all RDS sources belonging to your customer account.

    ", - "CreateOptionGroup": "

    Creates a new Option Group. You can create up to 20 option groups.

    ", - "DeleteDBInstance": "

    The DeleteDBInstance action deletes a previously provisioned DB instance. A successful response from the web service indicates the request was received correctly. When you delete a DB instance, all automated backups for that instance are deleted and cannot be recovered. Manual DB Snapshots of the DB instance to be deleted are not deleted.

    If a final DBSnapshot is requested the status of the RDS instance will be \"deleting\" until the DBSnapshot is created. DescribeDBInstance is used to monitor the status of this operation. This cannot be canceled or reverted once submitted.

    ", - "DeleteDBParameterGroup": "

    Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted.

    The specified DB Parameter Group cannot be associated with any DB Instances. ", - "DeleteDBSecurityGroup": "

    Deletes a DB Security Group.

    The specified DB Security Group must not be associated with any DB Instances.", - "DeleteDBSnapshot": "

    Deletes a DBSnapshot.

    The DBSnapshot must be in the available state to be deleted.", - "DeleteDBSubnetGroup": "

    Deletes a DB subnet group.

    The specified database subnet group must not be associated with any DB instances.", - "DeleteEventSubscription": "

    Deletes an RDS event notification subscription.

    ", - "DeleteOptionGroup": "

    Deletes an existing Option Group.

    ", - "DescribeDBEngineVersions": "

    Returns a list of the available DB engines.

    ", - "DescribeDBInstances": "

    Returns information about provisioned RDS instances. This API supports pagination.

    ", - "DescribeDBLogFiles": "

    Returns a list of DB log files for the DB instance.

    ", - "DescribeDBParameterGroups": "

    Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName is specified, the list will contain only the description of the specified DBParameterGroup.

    ", - "DescribeDBParameters": "

    Returns the detailed parameter list for a particular DBParameterGroup.

    ", - "DescribeDBSecurityGroups": "

    Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DBSecurityGroup.

    For an overview of CIDR ranges, go to the Wikipedia Tutorial.

    ", - "DescribeDBSnapshots": "

    Returns information about DBSnapshots. This API supports pagination.

    ", - "DescribeDBSubnetGroups": "

    Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.

    For an overview of CIDR ranges, go to the Wikipedia Tutorial.

    ", - "DescribeEngineDefaultParameters": "

    Returns the default engine and system parameter information for the specified database engine.

    ", - "DescribeEventCategories": "

    Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

    ", - "DescribeEventSubscriptions": "

    Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

    If you specify a SubscriptionName, lists the description for that subscription.

    ", - "DescribeEvents": "

    Returns events related to DB Instances, DB Security Groups, DB Snapshots and DB Parameter Groups for the past 14 days. Events specific to a particular DB Instance, DB Security Group, database snapshot or DB Parameter Group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

    ", - "DescribeOptionGroupOptions": "

    Describes all available options.

    ", - "DescribeOptionGroups": "

    Describes the available option groups.

    ", - "DescribeOrderableDBInstanceOptions": "

    Returns a list of orderable DB Instance options for the specified engine.

    ", - "DescribeReservedDBInstances": "

    Returns information about reserved DB Instances for this account, or about a specified reserved DB Instance.

    ", - "DescribeReservedDBInstancesOfferings": "

    Lists available reserved DB Instance offerings.

    ", - "DownloadDBLogFilePortion": "

    Downloads the last line of the specified log file.

    ", - "ListTagsForResource": "

    Lists all tags on a DB Instance.

    ", - "ModifyDBInstance": "

    Modify settings for a DB Instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

    ", - "ModifyDBParameterGroup": "

    Modifies the parameters of a DBParameterGroup. To modify more than one parameter submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

    The apply-immediate method can be used only for dynamic parameters; the pending-reboot method can be used with MySQL and Oracle DB Instances for either dynamic or static parameters. For Microsoft SQL Server DB Instances, the pending-reboot method can be used only for static parameters.

    ", - "ModifyDBSubnetGroup": "

    Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

    ", - "ModifyEventSubscription": "

    Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

    You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    ", - "ModifyOptionGroup": "

    Modifies an existing Option Group.

    ", - "PromoteReadReplica": "

    Promotes a Read Replica DB Instance to a standalone DB Instance.

    ", - "PurchaseReservedDBInstancesOffering": "

    Purchases a reserved DB Instance offering.

    ", - "RebootDBInstance": "

    Reboots a previously provisioned RDS instance. This API results in the application of modified DBParameterGroup parameters with ApplyStatus of pending-reboot to the RDS instance. This action is taken as soon as possible, and results in a momentary outage to the RDS instance during which the RDS instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. A DBInstance event is created when the reboot is completed.

    ", - "RemoveSourceIdentifierFromSubscription": "

    Removes a source identifier from an existing RDS event notification subscription.

    ", - "RemoveTagsFromResource": "

    Removes metadata tags from a DB Instance.

    ", - "ResetDBParameterGroup": "

    Modifies the parameters of a DBParameterGroup to the engine/system default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DBParameterGroup specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

    ", - "RestoreDBInstanceFromDBSnapshot": "

    Creates a new DB Instance from a DB snapshot. The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.

    ", - "RestoreDBInstanceToPointInTime": "

    Restores a DB Instance to an arbitrary point-in-time. Users can restore to any point in time before the latestRestorableTime for up to backupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.

    ", - "RevokeDBSecurityGroupIngress": "

    Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

    " - }, - "shapes": { - "AddSourceIdentifierToSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "AddSourceIdentifierToSubscriptionResult": { - "base": null, - "refs": { - } - }, - "AddTagsToResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "ApplyMethod": { - "base": null, - "refs": { - "Parameter$ApplyMethod": "

    Indicates when to apply parameter updates.

    " - } - }, - "AuthorizationAlreadyExistsFault": { - "base": "

    The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

    ", - "refs": { - } - }, - "AuthorizationNotFoundFault": { - "base": "

    Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

    RDS may not also be authorized via IAM to perform necessary actions on your behalf.

    ", - "refs": { - } - }, - "AuthorizationQuotaExceededFault": { - "base": "

    DB security group authorization quota has been reached.

    ", - "refs": { - } - }, - "AuthorizeDBSecurityGroupIngressMessage": { - "base": "

    ", - "refs": { - } - }, - "AuthorizeDBSecurityGroupIngressResult": { - "base": null, - "refs": { - } - }, - "AvailabilityZone": { - "base": "

    Contains Availability Zone information.

    This data type is used as an element in the following data type:

    ", - "refs": { - "AvailabilityZoneList$member": null, - "Subnet$SubnetAvailabilityZone": null - } - }, - "AvailabilityZoneList": { - "base": null, - "refs": { - "OrderableDBInstanceOption$AvailabilityZones": "

    A list of availability zones for the orderable DB Instance.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "AvailabilityZone$ProvisionedIopsCapable": "

    True indicates the availability zone is capable of provisioned IOPs.

    ", - "DBInstance$MultiAZ": "

    Specifies if the DB Instance is a Multi-AZ deployment.

    ", - "DBInstance$AutoMinorVersionUpgrade": "

    Indicates that minor version patches are applied automatically.

    ", - "DBInstance$PubliclyAccessible": "

    Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true
    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "DeleteDBInstanceMessage$SkipFinalSnapshot": "

    Determines whether a final DB Snapshot is created before the DB Instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB Snapshot is created before the DB Instance is deleted.

    The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

    Default: false

    ", - "DescribeDBEngineVersionsMessage$DefaultOnly": "

    Indicates that only the default version of the specified engine or engine and major version combination is returned.

    ", - "DownloadDBLogFilePortionDetails$AdditionalDataPending": "

    Boolean value that if true, indicates there is more data to be downloaded.

    ", - "EventSubscription$Enabled": "

    A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

    ", - "ModifyDBInstanceMessage$ApplyImmediately": "

    Specifies whether or not the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB Instance.

    If this parameter is passed as false, changes to the DB Instance are applied on the next call to RebootDBInstance, the next maintenance reboot, or the next failure reboot, whichever occurs first. See each parameter to determine when a change is applied.

    Default: false

    ", - "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": "

    Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB Instance's current version.

    ", - "ModifyOptionGroupMessage$ApplyImmediately": "

    Indicates whether the changes should be applied immediately, or during the next maintenance window for each instance associated with the Option Group.

    ", - "Option$Persistent": "

    Indicate if this option is persistent.

    ", - "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": "

    Indicates whether this option group can be applied to both VPC and non-VPC instances. The value 'true' indicates the option group can be applied to both VPC and non-VPC instances.

    ", - "OptionGroupOption$PortRequired": "

    Specifies whether the option requires a port.

    ", - "OptionGroupOption$Persistent": "

    Specifies whether the option is persistent in an option group.

    ", - "OptionGroupOptionSetting$IsModifiable": "

    Boolean value where true indicates that this option group option can be changed from the default value.

    ", - "OptionSetting$IsModifiable": "

    A Boolean value that, when true, indicates the option setting can be modified from the default.

    ", - "OptionSetting$IsCollection": "

    Indicates if the option setting is part of a collection.

    ", - "OrderableDBInstanceOption$MultiAZCapable": "

    Indicates whether this orderable DB Instance is multi-AZ capable.

    ", - "OrderableDBInstanceOption$ReadReplicaCapable": "

    Indicates whether this orderable DB Instance can have a read replica.

    ", - "OrderableDBInstanceOption$Vpc": "

    Indicates whether this is a VPC orderable DB Instance.

    ", - "Parameter$IsModifiable": "

    Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

    ", - "ReservedDBInstance$MultiAZ": "

    Indicates if the reservation applies to Multi-AZ deployments.

    ", - "ReservedDBInstancesOffering$MultiAZ": "

    Indicates if the offering applies to Multi-AZ deployments.

    ", - "ResetDBParameterGroupMessage$ResetAllParameters": "

    Specifies whether (true) or not (false) to reset all parameters in the DB Parameter Group to default values.

    Default: true

    ", - "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": "

    Specifies whether (true) or not (false) the DB Instance is restored from the latest backup time.

    Default: false

    Constraints: Cannot be specified if RestoreTime parameter is provided.

    " - } - }, - "BooleanOptional": { - "base": null, - "refs": { - "CreateDBInstanceMessage$MultiAZ": "

    Specifies if the DB Instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "

    Indicates that minor engine upgrades will be applied automatically to the DB Instance during the maintenance window.

    Default: true

    ", - "CreateDBInstanceMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true
    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": "

    Indicates that minor engine upgrades will be applied automatically to the Read Replica during the maintenance window.

    Default: Inherits from the source DB Instance

    ", - "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true
    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "CreateEventSubscriptionMessage$Enabled": "

    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

    ", - "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

    If this parameter is specified, and if the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Vpc": "

    The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

    ", - "DescribeReservedDBInstancesMessage$MultiAZ": "

    The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter.

    ", - "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": "

    The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter.

    ", - "ModifyDBInstanceMessage$MultiAZ": "

    Specifies if the DB Instance is a Multi-AZ deployment. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Constraints: Cannot be specified if the DB Instance is a read replica.

    ", - "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and RDS has enabled auto patching for that engine version.

    ", - "ModifyEventSubscriptionMessage$Enabled": "

    A Boolean value; set to true to activate the subscription.

    ", - "PendingModifiedValues$MultiAZ": "

    Indicates that the Single-AZ DB Instance is to change to a Multi-AZ deployment.

    ", - "RebootDBInstanceMessage$ForceFailover": "

    When true, the reboot will be conducted through a MultiAZ failover.

    Constraint: You cannot specify true if the instance is not configured for MultiAZ.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": "

    Specifies if the DB Instance is a Multi-AZ deployment.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true
    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

    ", - "RestoreDBInstanceToPointInTimeMessage$MultiAZ": "

    Specifies if the DB Instance is a Multi-AZ deployment.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true
    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.

    " - } - }, - "CharacterSet": { - "base": "

    This data type is used as a response element in the action DescribeDBEngineVersions.

    ", - "refs": { - "DBEngineVersion$DefaultCharacterSet": "

    The default character set for new instances of this engine version, if the CharacterSetName parameter of the CreateDBInstance API is not specified.

    ", - "SupportedCharacterSetsList$member": null - } - }, - "CopyDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "CopyDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBInstanceReadReplicaMessage": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceReadReplicaResult": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceResult": { - "base": null, - "refs": { - } - }, - "CreateDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBParameterGroupResult": { - "base": null, - "refs": { - } - }, - "CreateDBSecurityGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSecurityGroupResult": { - "base": null, - "refs": { - } - }, - "CreateDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "CreateDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSubnetGroupResult": { - "base": null, - "refs": { - } - }, - "CreateEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "CreateOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateOptionGroupResult": { - "base": null, - "refs": { - } - }, - "DBEngineVersion": { - "base": "

    This data type is used as a response element in the action DescribeDBEngineVersions.

    ", - "refs": { - "DBEngineVersionList$member": null - } - }, - "DBEngineVersionList": { - "base": null, - "refs": { - "DBEngineVersionMessage$DBEngineVersions": "

    A list of DBEngineVersion elements.

    " - } - }, - "DBEngineVersionMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBEngineVersions action.

    ", - "refs": { - } - }, - "DBInstance": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBInstances action.

    ", - "refs": { - "CreateDBInstanceReadReplicaResult$DBInstance": null, - "CreateDBInstanceResult$DBInstance": null, - "DBInstanceList$member": null, - "DeleteDBInstanceResult$DBInstance": null, - "ModifyDBInstanceResult$DBInstance": null, - "PromoteReadReplicaResult$DBInstance": null, - "RebootDBInstanceResult$DBInstance": null, - "RestoreDBInstanceFromDBSnapshotResult$DBInstance": null, - "RestoreDBInstanceToPointInTimeResult$DBInstance": null - } - }, - "DBInstanceAlreadyExistsFault": { - "base": "

    User already has a DB instance with the given identifier.

    ", - "refs": { - } - }, - "DBInstanceList": { - "base": null, - "refs": { - "DBInstanceMessage$DBInstances": "

    A list of DBInstance instances.

    " - } - }, - "DBInstanceMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBInstances action.

    ", - "refs": { - } - }, - "DBInstanceNotFoundFault": { - "base": "

    DBInstanceIdentifier does not refer to an existing DB instance.

    ", - "refs": { - } - }, - "DBLogFileNotFoundFault": { - "base": "

    LogFileName does not refer to an existing DB log file.

    ", - "refs": { - } - }, - "DBParameterGroup": { - "base": "

    Contains the result of a successful invocation of the CreateDBParameterGroup action.

    This data type is used as a request parameter in the DeleteDBParameterGroup action, and as a response element in the DescribeDBParameterGroups action.

    ", - "refs": { - "CreateDBParameterGroupResult$DBParameterGroup": null, - "DBParameterGroupList$member": null - } - }, - "DBParameterGroupAlreadyExistsFault": { - "base": "

    A DB parameter group with the same name exists.

    ", - "refs": { - } - }, - "DBParameterGroupDetails": { - "base": "

    Contains the result of a successful invocation of the DescribeDBParameters action.

    ", - "refs": { - } - }, - "DBParameterGroupList": { - "base": null, - "refs": { - "DBParameterGroupsMessage$DBParameterGroups": "

    A list of DBParameterGroup instances.

    " - } - }, - "DBParameterGroupNameMessage": { - "base": "

    Contains the result of a successful invocation of the ModifyDBParameterGroup or ResetDBParameterGroup action.

    ", - "refs": { - } - }, - "DBParameterGroupNotFoundFault": { - "base": "

    DBParameterGroupName does not refer to an existing DB parameter group.

    ", - "refs": { - } - }, - "DBParameterGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB parameter groups.

    ", - "refs": { - } - }, - "DBParameterGroupStatus": { - "base": "

    The status of the DB Parameter Group.

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBParameterGroupStatusList$member": null - } - }, - "DBParameterGroupStatusList": { - "base": null, - "refs": { - "DBInstance$DBParameterGroups": "

    Provides the list of DB Parameter Groups applied to this DB Instance.

    " - } - }, - "DBParameterGroupsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBParameterGroups action.

    ", - "refs": { - } - }, - "DBSecurityGroup": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSecurityGroups action.

    ", - "refs": { - "AuthorizeDBSecurityGroupIngressResult$DBSecurityGroup": null, - "CreateDBSecurityGroupResult$DBSecurityGroup": null, - "DBSecurityGroups$member": null, - "RevokeDBSecurityGroupIngressResult$DBSecurityGroup": null - } - }, - "DBSecurityGroupAlreadyExistsFault": { - "base": "

    A DB security group with the name specified in DBSecurityGroupName already exists.

    ", - "refs": { - } - }, - "DBSecurityGroupMembership": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBSecurityGroupMembershipList$member": null - } - }, - "DBSecurityGroupMembershipList": { - "base": null, - "refs": { - "DBInstance$DBSecurityGroups": "

    Provides List of DB Security Group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

    ", - "Option$DBSecurityGroupMemberships": "

    If the option requires access to a port, then this DB Security Group allows access to the port.

    " - } - }, - "DBSecurityGroupMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSecurityGroups action.

    ", - "refs": { - } - }, - "DBSecurityGroupNameList": { - "base": null, - "refs": { - "CreateDBInstanceMessage$DBSecurityGroups": "

    A list of DB Security Groups to associate with this DB Instance.

    Default: The default DB Security Group for the database engine.

    ", - "ModifyDBInstanceMessage$DBSecurityGroups": "

    A list of DB Security Groups to authorize on this DB Instance. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "OptionConfiguration$DBSecurityGroupMemberships": "

    A list of DBSecurityGroupMemebrship name strings used for this option.

    " - } - }, - "DBSecurityGroupNotFoundFault": { - "base": "

    DBSecurityGroupName does not refer to an existing DB security group.

    ", - "refs": { - } - }, - "DBSecurityGroupNotSupportedFault": { - "base": "

    A DB security group is not allowed for this action.

    ", - "refs": { - } - }, - "DBSecurityGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB security groups.

    ", - "refs": { - } - }, - "DBSecurityGroups": { - "base": null, - "refs": { - "DBSecurityGroupMessage$DBSecurityGroups": "

    A list of DBSecurityGroup instances.

    " - } - }, - "DBSnapshot": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSnapshots action.

    ", - "refs": { - "CopyDBSnapshotResult$DBSnapshot": null, - "CreateDBSnapshotResult$DBSnapshot": null, - "DBSnapshotList$member": null, - "DeleteDBSnapshotResult$DBSnapshot": null - } - }, - "DBSnapshotAlreadyExistsFault": { - "base": "

    DBSnapshotIdentifier is already used by an existing snapshot.

    ", - "refs": { - } - }, - "DBSnapshotList": { - "base": null, - "refs": { - "DBSnapshotMessage$DBSnapshots": "

    A list of DBSnapshot instances.

    " - } - }, - "DBSnapshotMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSnapshots action.

    ", - "refs": { - } - }, - "DBSnapshotNotFoundFault": { - "base": "

    DBSnapshotIdentifier does not refer to an existing DB snapshot.

    ", - "refs": { - } - }, - "DBSubnetGroup": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSubnetGroups action.

    ", - "refs": { - "CreateDBSubnetGroupResult$DBSubnetGroup": null, - "DBInstance$DBSubnetGroup": "

    Provides the inforamtion of the subnet group associated with the DB instance, including the name, descrption and subnets in the subnet group.

    ", - "DBSubnetGroups$member": null, - "ModifyDBSubnetGroupResult$DBSubnetGroup": null - } - }, - "DBSubnetGroupAlreadyExistsFault": { - "base": "

    DBSubnetGroupName is already used by an existing DB subnet group.

    ", - "refs": { - } - }, - "DBSubnetGroupDoesNotCoverEnoughAZs": { - "base": "

    Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

    ", - "refs": { - } - }, - "DBSubnetGroupMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSubnetGroups action.

    ", - "refs": { - } - }, - "DBSubnetGroupNotFoundFault": { - "base": "

    DBSubnetGroupName does not refer to an existing DB subnet group.

    ", - "refs": { - } - }, - "DBSubnetGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB subnet groups.

    ", - "refs": { - } - }, - "DBSubnetGroups": { - "base": null, - "refs": { - "DBSubnetGroupMessage$DBSubnetGroups": "

    A list of DBSubnetGroup instances.

    " - } - }, - "DBSubnetQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

    ", - "refs": { - } - }, - "DBUpgradeDependencyFailureFault": { - "base": "

    The DB upgrade failed because a resource the DB depends on could not be modified.

    ", - "refs": { - } - }, - "DeleteDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBInstanceResult": { - "base": null, - "refs": { - } - }, - "DeleteDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSecurityGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "DeleteDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "DeleteOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBEngineVersionsMessage": { - "base": null, - "refs": { - } - }, - "DescribeDBInstancesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBLogFilesDetails": { - "base": "

    This data type is used as a response element to DescribeDBLogFiles.

    ", - "refs": { - "DescribeDBLogFilesList$member": null - } - }, - "DescribeDBLogFilesList": { - "base": null, - "refs": { - "DescribeDBLogFilesResponse$DescribeDBLogFiles": "

    The DB log files returned.

    " - } - }, - "DescribeDBLogFilesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBLogFilesResponse": { - "base": "

    The response from a call to DescribeDBLogFiles.

    ", - "refs": { - } - }, - "DescribeDBParameterGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBParametersMessage": { - "base": null, - "refs": { - } - }, - "DescribeDBSecurityGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBSnapshotsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBSubnetGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEngineDefaultParametersMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEngineDefaultParametersResult": { - "base": null, - "refs": { - } - }, - "DescribeEventCategoriesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEventSubscriptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEventsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOptionGroupOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOptionGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeReservedDBInstancesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeReservedDBInstancesOfferingsMessage": { - "base": "

    ", - "refs": { - } - }, - "Double": { - "base": null, - "refs": { - "RecurringCharge$RecurringChargeAmount": "

    The amount of the recurring charge.

    ", - "ReservedDBInstance$FixedPrice": "

    The fixed price charged for this reserved DB Instance.

    ", - "ReservedDBInstance$UsagePrice": "

    The hourly price charged for this reserved DB Instance.

    ", - "ReservedDBInstancesOffering$FixedPrice": "

    The fixed price charged for this offering.

    ", - "ReservedDBInstancesOffering$UsagePrice": "

    The hourly price charged for this offering.

    " - } - }, - "DownloadDBLogFilePortionDetails": { - "base": "

    This data type is used as a response element to DownloadDBLogFilePortion.

    ", - "refs": { - } - }, - "DownloadDBLogFilePortionMessage": { - "base": "

    ", - "refs": { - } - }, - "EC2SecurityGroup": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "EC2SecurityGroupList$member": null - } - }, - "EC2SecurityGroupList": { - "base": null, - "refs": { - "DBSecurityGroup$EC2SecurityGroups": "

    Contains a list of EC2SecurityGroup elements.

    " - } - }, - "Endpoint": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBInstance$Endpoint": "

    Specifies the connection endpoint.

    " - } - }, - "EngineDefaults": { - "base": "

    Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

    ", - "refs": { - "DescribeEngineDefaultParametersResult$EngineDefaults": null - } - }, - "Event": { - "base": "

    This data type is used as a response element in the DescribeEvents action.

    ", - "refs": { - "EventList$member": null - } - }, - "EventCategoriesList": { - "base": null, - "refs": { - "CreateEventSubscriptionMessage$EventCategories": "

    A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    ", - "DescribeEventsMessage$EventCategories": "

    A list of event categories that trigger notifications for a event notification subscription.

    ", - "Event$EventCategories": "

    Specifies the category for the event.

    ", - "EventCategoriesMap$EventCategories": "

    The event categories for the specified source type

    ", - "EventSubscription$EventCategoriesList": "

    A list of event categories for the RDS event notification subscription.

    ", - "ModifyEventSubscriptionMessage$EventCategories": "

    A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    " - } - }, - "EventCategoriesMap": { - "base": "

    Contains the results of a successful invocation of the DescribeEventCategories action.

    ", - "refs": { - "EventCategoriesMapList$member": null - } - }, - "EventCategoriesMapList": { - "base": null, - "refs": { - "EventCategoriesMessage$EventCategoriesMapList": "

    A list of EventCategoriesMap data types.

    " - } - }, - "EventCategoriesMessage": { - "base": "

    Data returned from the DescribeEventCategories action.

    ", - "refs": { - } - }, - "EventList": { - "base": null, - "refs": { - "EventsMessage$Events": "

    A list of Event instances.

    " - } - }, - "EventSubscription": { - "base": "

    Contains the results of a successful invocation of the DescribeEventSubscriptions action.

    ", - "refs": { - "AddSourceIdentifierToSubscriptionResult$EventSubscription": null, - "CreateEventSubscriptionResult$EventSubscription": null, - "DeleteEventSubscriptionResult$EventSubscription": null, - "EventSubscriptionsList$member": null, - "ModifyEventSubscriptionResult$EventSubscription": null, - "RemoveSourceIdentifierFromSubscriptionResult$EventSubscription": null - } - }, - "EventSubscriptionQuotaExceededFault": { - "base": "

    You have reached the maximum number of event subscriptions.

    ", - "refs": { - } - }, - "EventSubscriptionsList": { - "base": null, - "refs": { - "EventSubscriptionsMessage$EventSubscriptionsList": "

    A list of EventSubscriptions data types.

    " - } - }, - "EventSubscriptionsMessage": { - "base": "

    Data returned by the DescribeEventSubscriptions action.

    ", - "refs": { - } - }, - "EventsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeEvents action.

    ", - "refs": { - } - }, - "IPRange": { - "base": "

    This data type is used as a response element in the DescribeDBSecurityGroups action.

    ", - "refs": { - "IPRangeList$member": null - } - }, - "IPRangeList": { - "base": null, - "refs": { - "DBSecurityGroup$IPRanges": "

    Contains a list of IPRange elements.

    " - } - }, - "InstanceQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB instances.

    ", - "refs": { - } - }, - "InsufficientDBInstanceCapacityFault": { - "base": "

    Specified DB instance class is not available in the specified Availability Zone.

    ", - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "DBInstance$AllocatedStorage": "

    Specifies the allocated storage size specified in gigabytes.

    ", - "DBInstance$BackupRetentionPeriod": "

    Specifies the number of days for which automatic DB Snapshots are retained.

    ", - "DBSnapshot$AllocatedStorage": "

    Specifies the allocated storage size in gigabytes (GB).

    ", - "DBSnapshot$Port": "

    Specifies the port that the database engine was listening on at the time of the snapshot.

    ", - "DownloadDBLogFilePortionMessage$NumberOfLines": "

    The number of lines remaining to be downloaded.

    ", - "Endpoint$Port": "

    Specifies the port that the database engine is listening on.

    ", - "ReservedDBInstance$Duration": "

    The duration of the reservation in seconds.

    ", - "ReservedDBInstance$DBInstanceCount": "

    The number of reserved DB Instances.

    ", - "ReservedDBInstancesOffering$Duration": "

    The duration of the offering in seconds.

    " - } - }, - "IntegerOptional": { - "base": null, - "refs": { - "CreateDBInstanceMessage$AllocatedStorage": "

    The amount of storage (in gigabytes) to be initially allocated for the database instance.

    MySQL

    Constraints: Must be an integer from 5 to 1024.

    Type: Integer

    Oracle

    Constraints: Must be an integer from 10 to 1024.

    SQL Server

    Constraints: Must be an integer from 200 to 1024 (Standard Edition and Enterprise Edition) or from 30 to 1024 (Express Edition and Web Edition)

    ", - "CreateDBInstanceMessage$BackupRetentionPeriod": "

    The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Default: 1

    Constraints:

    • Must be a value from 0 to 8
    • Cannot be set to 0 if the DB Instance is a master instance with read replicas
    ", - "CreateDBInstanceMessage$Port": "

    The port number on which the database accepts connections.

    MySQL

    Default: 3306

    Valid Values: 1150-65535

    Type: Integer

    Oracle

    Default: 1521

    Valid Values: 1150-65535

    SQL Server

    Default: 1433

    Valid Values: 1150-65535 except for 1434 and 3389.

    ", - "CreateDBInstanceMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

    Constraints: Must be an integer greater than 1000.

    ", - "CreateDBInstanceReadReplicaMessage$Port": "

    The port number that the DB Instance uses for connections.

    Default: Inherits from the source DB Instance

    Valid Values: 1150-65535

    ", - "CreateDBInstanceReadReplicaMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

    ", - "DBInstance$Iops": "

    Specifies the Provisioned IOPS (I/O operations per second) value.

    ", - "DBSnapshot$Iops": "

    Specifies the Provisioned IOPS (I/O operations per second) value of the DB Instance at the time of the snapshot.

    ", - "DescribeDBEngineVersionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBInstancesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBLogFilesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    ", - "DescribeDBParameterGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBParametersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBSecurityGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBSnapshotsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBSubnetGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeEngineDefaultParametersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeEventSubscriptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeEventsMessage$Duration": "

    The number of minutes to retrieve events for.

    Default: 60

    ", - "DescribeEventsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeOptionGroupOptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeOptionGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeReservedDBInstancesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "ModifyDBInstanceMessage$AllocatedStorage": "

    The new storage capacity of the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    MySQL

    Default: Uses existing setting

    Valid Values: 5-1024

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    Type: Integer

    Oracle

    Default: Uses existing setting

    Valid Values: 10-1024

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    SQL Server

    Cannot be modified.

    If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

    ", - "ModifyDBInstanceMessage$BackupRetentionPeriod": "

    The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Changing this parameter can result in an outage if you change from 0 to a non-zero value or from a non-zero value to 0. These changes are applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.

    Default: Uses existing setting

    Constraints:

    • Must be a value from 0 to 8
    • Cannot be set to 0 if the DB Instance is a master instance with read replicas or if the DB Instance is a read replica
    ", - "ModifyDBInstanceMessage$Iops": "

    The new Provisioned IOPS (I/O operations per second) value for the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Default: Uses existing setting

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    Type: Integer

    If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

    ", - "Option$Port": "

    If required, the port configured for this option to use.

    ", - "OptionConfiguration$Port": "

    The optional port for the option.

    ", - "OptionGroupOption$DefaultPort": "

    If the option requires a port, specifies the default port for the option.

    ", - "PendingModifiedValues$AllocatedStorage": "

    Contains the new AllocatedStorage size for the DB Instance that will be applied or is in progress.

    ", - "PendingModifiedValues$Port": "

    Specifies the pending port for the DB Instance.

    ", - "PendingModifiedValues$BackupRetentionPeriod": "

    Specifies the pending number of days for which automated backups are retained.

    ", - "PendingModifiedValues$Iops": "

    Specifies the new Provisioned IOPS value for the DB Instance that will be applied or is being applied.

    ", - "PromoteReadReplicaMessage$BackupRetentionPeriod": "

    The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Default: 1

    Constraints:

    • Must be a value from 0 to 8
    ", - "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": "

    The number of instances to reserve.

    Default: 1

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Port": "

    The port number on which the database accepts connections.

    Default: The same port as the original DB Instance

    Constraints: Value must be 1150-65535

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Iops": "

    Specifies the amount of provisioned IOPS for the DB Instance, expressed in I/O operations per second. If this parameter is not specified, the IOPS value will be taken from the backup. If this parameter is set to 0, the new instance will be converted to a non-PIOPS instance, which will take additional time, though your DB instance will be available for connections before the conversion starts.

    Constraints: Must be an integer greater than 1000.

    ", - "RestoreDBInstanceToPointInTimeMessage$Port": "

    The port number on which the database accepts connections.

    Constraints: Value must be 1150-65535

    Default: The same port as the original DB Instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.

    Constraints: Must be an integer greater than 1000.

    " - } - }, - "InvalidDBInstanceStateFault": { - "base": "

    The specified DB instance is not in the available state.

    ", - "refs": { - } - }, - "InvalidDBParameterGroupStateFault": { - "base": "

    The DB parameter group cannot be deleted because it is in use.

    ", - "refs": { - } - }, - "InvalidDBSecurityGroupStateFault": { - "base": "

    The state of the DB security group does not allow deletion.

    ", - "refs": { - } - }, - "InvalidDBSnapshotStateFault": { - "base": "

    The state of the DB snapshot does not allow deletion.

    ", - "refs": { - } - }, - "InvalidDBSubnetGroupStateFault": { - "base": "

    The DB subnet group cannot be deleted because it is in use.

    ", - "refs": { - } - }, - "InvalidDBSubnetStateFault": { - "base": "

    The DB subnet is not in the available state.

    ", - "refs": { - } - }, - "InvalidEventSubscriptionStateFault": { - "base": "

    This error can occur if someone else is modifying a subscription. You should retry the action.

    ", - "refs": { - } - }, - "InvalidOptionGroupStateFault": { - "base": "

    The option group is not in the available state.

    ", - "refs": { - } - }, - "InvalidRestoreFault": { - "base": "

    Cannot restore from vpc backup to non-vpc DB instance.

    ", - "refs": { - } - }, - "InvalidSubnet": { - "base": "

    The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

    ", - "refs": { - } - }, - "InvalidVPCNetworkStateFault": { - "base": "

    DB subnet group does not cover all Availability Zones after it is created because users' change.

    ", - "refs": { - } - }, - "KeyList": { - "base": null, - "refs": { - "RemoveTagsFromResourceMessage$TagKeys": "

    The tag key (name) of the tag to be removed.

    " - } - }, - "ListTagsForResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "Long": { - "base": null, - "refs": { - "DescribeDBLogFilesDetails$LastWritten": "

    The date and time that the last log entry was written.

    ", - "DescribeDBLogFilesDetails$Size": "

    The size, in bytes, of the log file for the specified DB instance.

    ", - "DescribeDBLogFilesMessage$FileLastWritten": "

    Filters the available log files for files written since the specified date.

    ", - "DescribeDBLogFilesMessage$FileSize": "

    Filters the available log files for files larger than the specified size.

    " - } - }, - "ModifyDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBInstanceResult": { - "base": null, - "refs": { - } - }, - "ModifyDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBSubnetGroupResult": { - "base": null, - "refs": { - } - }, - "ModifyEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "ModifyOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyOptionGroupResult": { - "base": null, - "refs": { - } - }, - "Option": { - "base": "

    Option details.

    ", - "refs": { - "OptionsList$member": null - } - }, - "OptionConfiguration": { - "base": "

    A list of all available options

    ", - "refs": { - "OptionConfigurationList$member": null - } - }, - "OptionConfigurationList": { - "base": null, - "refs": { - "ModifyOptionGroupMessage$OptionsToInclude": "

    Options in this list are added to the Option Group or, if already present, the specified configuration is used to update the existing configuration.

    " - } - }, - "OptionGroup": { - "base": "

    ", - "refs": { - "CreateOptionGroupResult$OptionGroup": null, - "ModifyOptionGroupResult$OptionGroup": null, - "OptionGroupsList$member": null - } - }, - "OptionGroupAlreadyExistsFault": { - "base": "

    The option group you are trying to create already exists.

    ", - "refs": { - } - }, - "OptionGroupMembership": { - "base": "

    Provides information on the option groups the DB instance is a member of.

    ", - "refs": { - "OptionGroupMembershipList$member": null - } - }, - "OptionGroupMembershipList": { - "base": null, - "refs": { - "DBInstance$OptionGroupMemberships": "

    Provides the list of option group memberships for this DB Instance.

    " - } - }, - "OptionGroupNotFoundFault": { - "base": "

    The specified option group could not be found.

    ", - "refs": { - } - }, - "OptionGroupOption": { - "base": "

    Available option.

    ", - "refs": { - "OptionGroupOptionsList$member": null - } - }, - "OptionGroupOptionSetting": { - "base": "

    Option Group option settings are used to display settings available for each option with their default values and other information. These values are used with the DescribeOptionGroupOptions action.

    ", - "refs": { - "OptionGroupOptionSettingsList$member": null - } - }, - "OptionGroupOptionSettingsList": { - "base": null, - "refs": { - "OptionGroupOption$OptionGroupOptionSettings": "

    Specifies the option settings that are available (and the default value) for each option in an option group.

    " - } - }, - "OptionGroupOptionsList": { - "base": "

    List of available option group options.

    ", - "refs": { - "OptionGroupOptionsMessage$OptionGroupOptions": null - } - }, - "OptionGroupOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "OptionGroupQuotaExceededFault": { - "base": "

    The quota of 20 option groups was exceeded for this AWS account.

    ", - "refs": { - } - }, - "OptionGroups": { - "base": "

    List of option groups.

    ", - "refs": { - } - }, - "OptionGroupsList": { - "base": null, - "refs": { - "OptionGroups$OptionGroupsList": "

    List of option groups.

    " - } - }, - "OptionNamesList": { - "base": null, - "refs": { - "ModifyOptionGroupMessage$OptionsToRemove": "

    Options in this list are removed from the Option Group.

    " - } - }, - "OptionSetting": { - "base": "

    Option settings are the actual settings being applied or configured for that option. It is used when you modify an option group or describe option groups. For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER that can have several different values.

    ", - "refs": { - "OptionSettingConfigurationList$member": null, - "OptionSettingsList$member": null - } - }, - "OptionSettingConfigurationList": { - "base": null, - "refs": { - "Option$OptionSettings": "

    The option settings for this option.

    " - } - }, - "OptionSettingsList": { - "base": null, - "refs": { - "OptionConfiguration$OptionSettings": "

    The option settings to include in an option group.

    " - } - }, - "OptionsDependedOn": { - "base": null, - "refs": { - "OptionGroupOption$OptionsDependedOn": "

    List of all options that are prerequisites for this option.

    " - } - }, - "OptionsList": { - "base": null, - "refs": { - "OptionGroup$Options": "

    Indicates what options are available in the option group.

    " - } - }, - "OrderableDBInstanceOption": { - "base": "

    Contains a list of available options for a DB Instance

    This data type is used as a response element in the DescribeOrderableDBInstanceOptions action.

    ", - "refs": { - "OrderableDBInstanceOptionsList$member": null - } - }, - "OrderableDBInstanceOptionsList": { - "base": null, - "refs": { - "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": "

    An OrderableDBInstanceOption structure containing information about orderable options for the DB Instance.

    " - } - }, - "OrderableDBInstanceOptionsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions action.

    ", - "refs": { - } - }, - "Parameter": { - "base": "

    This data type is used as a request parameter in the ModifyDBParameterGroup and ResetDBParameterGroup actions.

    This data type is used as a response element in the DescribeEngineDefaultParameters and DescribeDBParameters actions.

    ", - "refs": { - "ParametersList$member": null - } - }, - "ParametersList": { - "base": null, - "refs": { - "DBParameterGroupDetails$Parameters": "

    A list of Parameter instances.

    ", - "EngineDefaults$Parameters": "

    Contains a list of engine default parameters.

    ", - "ModifyDBParameterGroupMessage$Parameters": "

    An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

    Valid Values (for the application method): immediate | pending-reboot

    You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB Instance reboots. ", - "ResetDBParameterGroupMessage$Parameters": "

    An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

    MySQL

    Valid Values (for Apply method): immediate | pending-reboot

    You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB Instance reboots.

    Oracle

    Valid Values (for Apply method): pending-reboot

    " - } - }, - "PendingModifiedValues": { - "base": "

    This data type is used as a response element in the ModifyDBInstance action.

    ", - "refs": { - "DBInstance$PendingModifiedValues": "

    Specifies that changes to the DB Instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

    " - } - }, - "PointInTimeRestoreNotEnabledFault": { - "base": "

    SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod equal to 0.

    ", - "refs": { - } - }, - "PromoteReadReplicaMessage": { - "base": "

    ", - "refs": { - } - }, - "PromoteReadReplicaResult": { - "base": null, - "refs": { - } - }, - "ProvisionedIopsNotAvailableInAZFault": { - "base": "

    Provisioned IOPS not available in the specified Availability Zone.

    ", - "refs": { - } - }, - "PurchaseReservedDBInstancesOfferingMessage": { - "base": "

    ", - "refs": { - } - }, - "PurchaseReservedDBInstancesOfferingResult": { - "base": null, - "refs": { - } - }, - "ReadReplicaDBInstanceIdentifierList": { - "base": null, - "refs": { - "DBInstance$ReadReplicaDBInstanceIdentifiers": "

    Contains one or more identifiers of the Read Replicas associated with this DB Instance.

    " - } - }, - "RebootDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "RebootDBInstanceResult": { - "base": null, - "refs": { - } - }, - "RecurringCharge": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstances and DescribeReservedDBInstancesOfferings actions.

    ", - "refs": { - "RecurringChargeList$member": null - } - }, - "RecurringChargeList": { - "base": null, - "refs": { - "ReservedDBInstance$RecurringCharges": "

    The recurring price charged to run this reserved DB Instance.

    ", - "ReservedDBInstancesOffering$RecurringCharges": "

    The recurring price charged to run this reserved DB Instance.

    " - } - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "base": null, - "refs": { - } - }, - "RemoveTagsFromResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "ReservedDBInstance": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.

    ", - "refs": { - "PurchaseReservedDBInstancesOfferingResult$ReservedDBInstance": null, - "ReservedDBInstanceList$member": null - } - }, - "ReservedDBInstanceAlreadyExistsFault": { - "base": "

    User already has a reservation with the given identifier.

    ", - "refs": { - } - }, - "ReservedDBInstanceList": { - "base": null, - "refs": { - "ReservedDBInstanceMessage$ReservedDBInstances": "

    A list of of reserved DB Instances.

    " - } - }, - "ReservedDBInstanceMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeReservedDBInstances action.

    ", - "refs": { - } - }, - "ReservedDBInstanceNotFoundFault": { - "base": "

    The specified reserved DB Instance not found.

    ", - "refs": { - } - }, - "ReservedDBInstanceQuotaExceededFault": { - "base": "

    Request would exceed the user's DB Instance quota.

    ", - "refs": { - } - }, - "ReservedDBInstancesOffering": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstancesOfferings action.

    ", - "refs": { - "ReservedDBInstancesOfferingList$member": null - } - }, - "ReservedDBInstancesOfferingList": { - "base": null, - "refs": { - "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": "

    A list of reserved DB Instance offerings.

    " - } - }, - "ReservedDBInstancesOfferingMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings action.

    ", - "refs": { - } - }, - "ReservedDBInstancesOfferingNotFoundFault": { - "base": "

    Specified offering does not exist.

    ", - "refs": { - } - }, - "ResetDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceFromDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceFromDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "RestoreDBInstanceToPointInTimeMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceToPointInTimeResult": { - "base": null, - "refs": { - } - }, - "RevokeDBSecurityGroupIngressMessage": { - "base": "

    ", - "refs": { - } - }, - "RevokeDBSecurityGroupIngressResult": { - "base": null, - "refs": { - } - }, - "SNSInvalidTopicFault": { - "base": "

    SNS has responded that there is a problem with the SND topic specified.

    ", - "refs": { - } - }, - "SNSNoAuthorizationFault": { - "base": "

    You do not have permission to publish to the SNS topic ARN.

    ", - "refs": { - } - }, - "SNSTopicArnNotFoundFault": { - "base": "

    The SNS topic ARN does not exist.

    ", - "refs": { - } - }, - "SnapshotQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB snapshots.

    ", - "refs": { - } - }, - "SourceIdsList": { - "base": null, - "refs": { - "CreateEventSubscriptionMessage$SourceIds": "

    The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

    Constraints:

    • If SourceIds are supplied, SourceType must also be provided.
    • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
    • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
    • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
    • If the source type is a DB Snapshot, a DBSnapshotIdentifier must be supplied.
    ", - "EventSubscription$SourceIdsList": "

    A list of source Ids for the RDS event notification subscription.

    " - } - }, - "SourceNotFoundFault": { - "base": "

    The requested source could not be found.

    ", - "refs": { - } - }, - "SourceType": { - "base": null, - "refs": { - "DescribeEventsMessage$SourceType": "

    The event source to retrieve events for. If no value is specified, all events are returned.

    ", - "Event$SourceType": "

    Specifies the source type for this event.

    " - } - }, - "StorageQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed amount of storage available across all DB instances.

    ", - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to add a source identifier to.

    ", - "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": "

    The identifier of the event source to be added. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

    Constraints:

    • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
    • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
    • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
    • If the source type is a DB Snapshot, a DBSnapshotIdentifier must be supplied.
    ", - "AddTagsToResourceMessage$ResourceName": "

    The DB Instance the tags will be added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    ", - "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

    The name of the DB Security Group to add authorization to.

    ", - "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": "

    The IP range to authorize.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

    Name of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

    Id of the EC2 Security Group to authorize. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

    AWS Account Number of the owner of the EC2 Security Group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AvailabilityZone$Name": "

    The name of the availability zone.

    ", - "CharacterSet$CharacterSetName": "

    The name of the character set.

    ", - "CharacterSet$CharacterSetDescription": "

    The description of the character set.

    ", - "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

    The identifier for the source DB snapshot.

    Constraints:

    • Must be the identifier for a valid system snapshot in the \"available\" state.

    Example: rds:mydb-2012-04-02-00-01

    ", - "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

    The identifier for the copied snapshot.

    Constraints:

    • Cannot be null, empty, or blank
    • Must contain from 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-db-snapshot

    ", - "CreateDBInstanceMessage$DBName": "

    The meaning of this parameter differs according to the database engine you use.

    MySQL

    The name of the database to create when the DB Instance is created. If this parameter is not specified, no database is created in the DB Instance.

    Constraints:

    • Must contain 1 to 64 alphanumeric characters
    • Cannot be a word reserved by the specified database engine

    Type: String

    Oracle

    The Oracle System ID (SID) of the created DB Instance.

    Default: ORCL

    Constraints:

    • Cannot be longer than 8 characters

    SQL Server

    Not applicable. Must be null.

    ", - "CreateDBInstanceMessage$DBInstanceIdentifier": "

    The DB Instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server).
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: mydbinstance

    ", - "CreateDBInstanceMessage$DBInstanceClass": "

    The compute and memory capacity of the DB Instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge

    ", - "CreateDBInstanceMessage$Engine": "

    The name of the database engine to be used for this instance.

    Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web

    ", - "CreateDBInstanceMessage$MasterUsername": "

    The name of master user for the client DB Instance.

    MySQL

    Constraints:

    • Must be 1 to 16 alphanumeric characters.
    • First character must be a letter.
    • Cannot be a reserved word for the chosen database engine.

    Type: String

    Oracle

    Constraints:

    • Must be 1 to 30 alphanumeric characters.
    • First character must be a letter.
    • Cannot be a reserved word for the chosen database engine.

    SQL Server

    Constraints:

    • Must be 1 to 128 alphanumeric characters.
    • First character must be a letter.
    • Cannot be a reserved word for the chosen database engine.
    ", - "CreateDBInstanceMessage$MasterUserPassword": "

    The password for the master database user. Can be any printable ASCII character except \"/\", \"\\\", or \"@\".

    Type: String

    MySQL

    Constraints: Must contain from 8 to 41 alphanumeric characters.

    Oracle

    Constraints: Must contain from 8 to 30 alphanumeric characters.

    SQL Server

    Constraints: Must contain from 8 to 128 alphanumeric characters.

    ", - "CreateDBInstanceMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone in the endpoint's region.

    Example: us-east-1d

    Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same region as the current endpoint.

    ", - "CreateDBInstanceMessage$DBSubnetGroupName": "

    A DB Subnet Group to associate with this DB Instance.

    If there is no DB Subnet Group, then it is a non-VPC DB instance.

    ", - "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

    The weekly time range (in UTC) during which system maintenance can occur.

    Format: ddd:hh24:mi-ddd:hh24:mi

    Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

    Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

    Constraints: Minimum 30-minute window.

    ", - "CreateDBInstanceMessage$DBParameterGroupName": "

    The name of the DB Parameter Group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "CreateDBInstanceMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

    Default: A 30-minute window selected at random from an 8-hour block of time per region. The following list shows the time blocks for each region from which the default backup windows are assigned.

    • US-East (Northern Virginia) Region: 03:00-11:00 UTC
    • US-West (Northern California) Region: 06:00-14:00 UTC
    • EU (Ireland) Region: 22:00-06:00 UTC
    • Asia Pacific (Singapore) Region: 14:00-22:00 UTC
    • Asia Pacific (Tokyo) Region: 17:00-03:00 UTC

    Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

    ", - "CreateDBInstanceMessage$EngineVersion": "

    The version number of the database engine to use.

    MySQL

    Example: 5.1.42

    Type: String

    Oracle

    Example: 11.2.0.2.v2

    Type: String

    SQL Server

    Example: 10.50.2789.0.v1

    ", - "CreateDBInstanceMessage$LicenseModel": "

    License model information for this DB Instance.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "CreateDBInstanceMessage$OptionGroupName": "

    Indicates that the DB Instance should be associated with the specified option group.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "CreateDBInstanceMessage$CharacterSetName": "

    For supported engines, indicates that the DB Instance should be associated with the specified CharacterSet.

    ", - "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

    The DB Instance identifier of the Read Replica. This is the unique key that identifies a DB Instance. This parameter is stored as a lowercase string.

    ", - "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

    The identifier of the DB Instance that will act as the source for the Read Replica. Each DB Instance can have up to five Read Replicas.

    Constraints: Must be the identifier of an existing DB Instance that is not already a Read Replica DB Instance.

    ", - "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

    The compute and memory capacity of the Read Replica.

    Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge

    Default: Inherits from the source DB Instance.

    ", - "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

    The Amazon EC2 Availability Zone that the Read Replica will be created in.

    Default: A random, system-chosen Availability Zone in the endpoint's region.

    Example: us-east-1d

    ", - "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

    The option group the DB instance will be associated with. If omitted, the default Option Group for the engine specified will be used.

    ", - "CreateDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB Parameter Group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    This value is stored as a lower-case string.", - "CreateDBParameterGroupMessage$DBParameterGroupFamily": "

    The DB Parameter Group Family name. A DB Parameter Group can be associated with one and only one DB Parameter Group Family, and can be applied only to a DB Instance running a database engine and engine version compatible with that DB Parameter Group Family.

    ", - "CreateDBParameterGroupMessage$Description": "

    The description for the DB Parameter Group.

    ", - "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

    The name for the DB Security Group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

    Example: mysecuritygroup

    ", - "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": "

    The description for the DB Security Group.

    ", - "CreateDBSnapshotMessage$DBSnapshotIdentifier": "

    The identifier for the DB Snapshot.

    Constraints:

    • Cannot be null, empty, or blank
    • Must contain from 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

    ", - "CreateDBSnapshotMessage$DBInstanceIdentifier": "

    The DB Instance identifier. This is the unique key that identifies a DB Instance. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "CreateDBSubnetGroupMessage$DBSubnetGroupName": "

    The name for the DB Subnet Group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

    Example: mySubnetgroup

    ", - "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": "

    The description for the DB Subnet Group.

    ", - "CreateEventSubscriptionMessage$SubscriptionName": "

    The name of the subscription.

    Constraints: The name must be less than 255 characters.

    ", - "CreateEventSubscriptionMessage$SnsTopicArn": "

    The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

    ", - "CreateEventSubscriptionMessage$SourceType": "

    The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "CreateOptionGroupMessage$OptionGroupName": "

    Specifies the name of the option group to be created.

    Constraints:

    • Must be 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: myOptiongroup

    ", - "CreateOptionGroupMessage$EngineName": "

    Specifies the name of the engine that this option group should be associated with.

    ", - "CreateOptionGroupMessage$MajorEngineVersion": "

    Specifies the major version of the engine that this option group should be associated with.

    ", - "CreateOptionGroupMessage$OptionGroupDescription": "

    The description of the option group.

    ", - "DBEngineVersion$Engine": "

    The name of the database engine.

    ", - "DBEngineVersion$EngineVersion": "

    The version number of the database engine.

    ", - "DBEngineVersion$DBParameterGroupFamily": "

    The name of the DBParameterGroupFamily for the database engine.

    ", - "DBEngineVersion$DBEngineDescription": "

    The description of the database engine.

    ", - "DBEngineVersion$DBEngineVersionDescription": "

    The description of the database engine version.

    ", - "DBEngineVersionMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBInstance$DBInstanceIdentifier": "

    Contains a user-supplied database identifier. This is the unique key that identifies a DB Instance.

    ", - "DBInstance$DBInstanceClass": "

    Contains the name of the compute and memory capacity class of the DB Instance.

    ", - "DBInstance$Engine": "

    Provides the name of the database engine to be used for this DB Instance.

    ", - "DBInstance$DBInstanceStatus": "

    Specifies the current state of this database.

    ", - "DBInstance$MasterUsername": "

    Contains the master username for the DB Instance.

    ", - "DBInstance$DBName": "

    The meaning of this parameter differs according to the database engine you use.

    MySQL

    Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB Instance was created. This same name is returned for the life of the DB Instance.

    Type: String

    Oracle

    Contains the Oracle System ID (SID) of the created DB Instance.

    ", - "DBInstance$PreferredBackupWindow": "

    Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

    ", - "DBInstance$AvailabilityZone": "

    Specifies the name of the Availability Zone the DB Instance is located in.

    ", - "DBInstance$PreferredMaintenanceWindow": "

    Specifies the weekly time range (in UTC) during which system maintenance can occur.

    ", - "DBInstance$EngineVersion": "

    Indicates the database engine version.

    ", - "DBInstance$ReadReplicaSourceDBInstanceIdentifier": "

    Contains the identifier of the source DB Instance if this DB Instance is a Read Replica.

    ", - "DBInstance$LicenseModel": "

    License model information for this DB Instance.

    ", - "DBInstance$CharacterSetName": "

    If present, specifies the name of the character set that this instance is associated with.

    ", - "DBInstance$SecondaryAvailabilityZone": "

    If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

    ", - "DBInstanceMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DBParameterGroup$DBParameterGroupName": "

    Provides the name of the DB Parameter Group.

    ", - "DBParameterGroup$DBParameterGroupFamily": "

    Provides the name of the DB Parameter Group Family that this DB Parameter Group is compatible with.

    ", - "DBParameterGroup$Description": "

    Provides the customer-specified description for this DB Parameter Group.

    ", - "DBParameterGroupDetails$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBParameterGroupNameMessage$DBParameterGroupName": "

    The name of the DB Parameter Group.

    ", - "DBParameterGroupStatus$DBParameterGroupName": "

    The name of the DP Parameter Group.

    ", - "DBParameterGroupStatus$ParameterApplyStatus": "

    The status of parameter updates.

    ", - "DBParameterGroupsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSecurityGroup$OwnerId": "

    Provides the AWS ID of the owner of a specific DB Security Group.

    ", - "DBSecurityGroup$DBSecurityGroupName": "

    Specifies the name of the DB Security Group.

    ", - "DBSecurityGroup$DBSecurityGroupDescription": "

    Provides the description of the DB Security Group.

    ", - "DBSecurityGroup$VpcId": "

    Provides the VpcId of the DB Security Group.

    ", - "DBSecurityGroupMembership$DBSecurityGroupName": "

    The name of the DB Security Group.

    ", - "DBSecurityGroupMembership$Status": "

    The status of the DB Security Group.

    ", - "DBSecurityGroupMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSecurityGroupNameList$member": null, - "DBSnapshot$DBSnapshotIdentifier": "

    Specifies the identifier for the DB Snapshot.

    ", - "DBSnapshot$DBInstanceIdentifier": "

    Specifies the the DBInstanceIdentifier of the DB Instance this DB Snapshot was created from.

    ", - "DBSnapshot$Engine": "

    Specifies the name of the database engine.

    ", - "DBSnapshot$Status": "

    Specifies the status of this DB Snapshot.

    ", - "DBSnapshot$AvailabilityZone": "

    Specifies the name of the Availability Zone the DB Instance was located in at the time of the DB Snapshot.

    ", - "DBSnapshot$VpcId": "

    Provides the Vpc Id associated with the DB Snapshot.

    ", - "DBSnapshot$MasterUsername": "

    Provides the master username for the DB Snapshot.

    ", - "DBSnapshot$EngineVersion": "

    Specifies the version of the database engine.

    ", - "DBSnapshot$LicenseModel": "

    License model information for the restored DB Instance.

    ", - "DBSnapshot$SnapshotType": "

    Provides the type of the DB Snapshot.

    ", - "DBSnapshot$OptionGroupName": "

    Provides the option group name for the DB Snapshot.

    ", - "DBSnapshotMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSubnetGroup$DBSubnetGroupName": "

    Specifies the name of the DB Subnet Group.

    ", - "DBSubnetGroup$DBSubnetGroupDescription": "

    Provides the description of the DB Subnet Group.

    ", - "DBSubnetGroup$VpcId": "

    Provides the VpcId of the DB Subnet Group.

    ", - "DBSubnetGroup$SubnetGroupStatus": "

    Provides the status of the DB Subnet Group.

    ", - "DBSubnetGroupMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DeleteDBInstanceMessage$DBInstanceIdentifier": "

    The DB Instance identifier for the DB Instance to be deleted. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": "

    The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false.

    Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DeleteDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB Parameter Group.

    Constraints:

    • Must be the name of an existing DB Parameter Group
    • You cannot delete a default DB Parameter Group
    • Cannot be associated with any DB Instances
    ", - "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

    The name of the DB Security Group to delete.

    You cannot delete the default DB Security Group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

    The DBSnapshot identifier.

    Constraints: Must be the name of an existing DB Snapshot in the available state.

    ", - "DeleteDBSubnetGroupMessage$DBSubnetGroupName": "

    The name of the database subnet group to delete.

    You cannot delete the default subnet group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DeleteEventSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to delete.

    ", - "DeleteOptionGroupMessage$OptionGroupName": "

    The name of the option group to be deleted.

    You cannot delete default Option Groups.", - "DescribeDBEngineVersionsMessage$Engine": "

    The database engine to return.

    ", - "DescribeDBEngineVersionsMessage$EngineVersion": "

    The database engine version to return.

    Example: 5.1.49

    ", - "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": "

    The name of a specific DB Parameter Group family to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBEngineVersionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBInstancesMessage$DBInstanceIdentifier": "

    The user-supplied instance identifier. If this parameter is specified, information from only the specific DB Instance is returned. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBInstancesMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribeDBLogFilesDetails$LogFileName": "

    The name of the log file for the specified DB instance.

    ", - "DescribeDBLogFilesMessage$DBInstanceIdentifier": "

    The customer-assigned name of the DB Instance that contains the log files you want to list.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBLogFilesMessage$FilenameContains": "

    Filters the available log files for log file names that contain the specified string.

    ", - "DescribeDBLogFilesMessage$Marker": "

    The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.

    ", - "DescribeDBLogFilesResponse$Marker": "

    An optional paging token.

    ", - "DescribeDBParameterGroupsMessage$DBParameterGroupName": "

    The name of a specific DB Parameter Group to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBParameterGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBParametersMessage$DBParameterGroupName": "

    The name of a specific DB Parameter Group to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBParametersMessage$Source": "

    The parameter types to return.

    Default: All parameter types returned

    Valid Values: user | system | engine-default

    ", - "DescribeDBParametersMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": "

    The name of the DB Security Group to return details for.

    ", - "DescribeDBSecurityGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSecurityGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSnapshotsMessage$DBInstanceIdentifier": "

    A DB Instance Identifier to retrieve the list of DB Snapshots for. Cannot be used in conjunction with DBSnapshotIdentifier. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

    A specific DB Snapshot Identifier to describe. Cannot be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    • If this is the identifier of an automated snapshot, the SnapshotType parameter must also be specified.
    ", - "DescribeDBSnapshotsMessage$SnapshotType": "

    An optional snapshot type for which snapshots will be returned. If not specified, the returned results will include snapshots of all types.

    ", - "DescribeDBSnapshotsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": "

    The name of the DB Subnet Group to return details for.

    ", - "DescribeDBSubnetGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSubnetGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": "

    The name of the DB Parameter Group Family.

    ", - "DescribeEngineDefaultParametersMessage$Marker": "

    An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEventCategoriesMessage$SourceType": "

    The type of source that will be generating the events.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "DescribeEventSubscriptionsMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to describe.

    ", - "DescribeEventSubscriptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribeEventsMessage$SourceIdentifier": "

    The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.

    Constraints:

    • If SourceIdentifier is supplied, SourceType must also be provided.
    • If the source type is DBInstance, then a DBInstanceIdentifier must be supplied.
    • If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied.
    • If the source type is DBParameterGroup, a DBParameterGroupName must be supplied.
    • If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
    • Cannot end with a hyphen or contain two consecutive hyphens.
    ", - "DescribeEventsMessage$Marker": "

    An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupOptionsMessage$EngineName": "

    A required parameter. Options available for the given Engine name will be described.

    ", - "DescribeOptionGroupOptionsMessage$MajorEngineVersion": "

    If specified, filters the results to include only options for the specified major engine version.

    ", - "DescribeOptionGroupOptionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupsMessage$OptionGroupName": "

    The name of the option group to describe. Cannot be supplied together with EngineName or MajorEngineVersion.

    ", - "DescribeOptionGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOptionGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupsMessage$EngineName": "

    Filters the list of option groups to only include groups associated with a specific database engine.

    ", - "DescribeOptionGroupsMessage$MajorEngineVersion": "

    Filters the list of option groups to only include groups associated with a specific database engine version. If specified, then EngineName must also be specified.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Engine": "

    The name of the engine to retrieve DB Instance options for.

    ", - "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": "

    The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

    ", - "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": "

    The DB Instance class filter value. Specify this parameter to show only the available offerings matching the specified DB Instance class.

    ", - "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": "

    The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": "

    The reserved DB Instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.

    ", - "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": "

    The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

    ", - "DescribeReservedDBInstancesMessage$DBInstanceClass": "

    The DB Instance class filter value. Specify this parameter to show only those reservations matching the specified DB Instances class.

    ", - "DescribeReservedDBInstancesMessage$Duration": "

    The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

    Valid Values: 1 | 3 | 31536000 | 94608000

    ", - "DescribeReservedDBInstancesMessage$ProductDescription": "

    The product description filter value. Specify this parameter to show only those reservations matching the specified product description.

    ", - "DescribeReservedDBInstancesMessage$OfferingType": "

    The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

    Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

    ", - "DescribeReservedDBInstancesMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": "

    The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

    Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

    ", - "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": "

    The DB Instance class filter value. Specify this parameter to show only the available offerings matching the specified DB Instance class.

    ", - "DescribeReservedDBInstancesOfferingsMessage$Duration": "

    Duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

    Valid Values: 1 | 3 | 31536000 | 94608000

    ", - "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": "

    Product description filter value. Specify this parameter to show only the available offerings matching the specified product description.

    ", - "DescribeReservedDBInstancesOfferingsMessage$OfferingType": "

    The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

    Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

    ", - "DescribeReservedDBInstancesOfferingsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DownloadDBLogFilePortionDetails$LogFileData": "

    Entries from the specified log file.

    ", - "DownloadDBLogFilePortionDetails$Marker": "

    An optional pagination token provided by a previous DownloadDBLogFilePortion request.

    ", - "DownloadDBLogFilePortionMessage$DBInstanceIdentifier": "

    The customer-assigned name of the DB Instance that contains the log files you want to list.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DownloadDBLogFilePortionMessage$LogFileName": "

    The name of the log file to be downloaded.

    ", - "DownloadDBLogFilePortionMessage$Marker": "

    The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.

    ", - "EC2SecurityGroup$Status": "

    Provides the status of the EC2 security group. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

    ", - "EC2SecurityGroup$EC2SecurityGroupName": "

    Specifies the name of the EC2 Security Group.

    ", - "EC2SecurityGroup$EC2SecurityGroupId": "

    Specifies the id of the EC2 Security Group.

    ", - "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

    Specifies the AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

    ", - "Endpoint$Address": "

    Specifies the DNS address of the DB Instance.

    ", - "EngineDefaults$DBParameterGroupFamily": "

    Specifies the name of the DB Parameter Group Family which the engine default parameters apply to.

    ", - "EngineDefaults$Marker": "

    An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "Event$SourceIdentifier": "

    Provides the identifier for the source of the event.

    ", - "Event$Message": "

    Provides the text of this event.

    ", - "EventCategoriesList$member": null, - "EventCategoriesMap$SourceType": "

    The source type that the returned categories belong to

    ", - "EventSubscription$CustomerAwsId": "

    The AWS customer account associated with the RDS event notification subscription.

    ", - "EventSubscription$CustSubscriptionId": "

    The RDS event notification subscription Id.

    ", - "EventSubscription$SnsTopicArn": "

    The topic ARN of the RDS event notification subscription.

    ", - "EventSubscription$Status": "

    The status of the RDS event notification subscription.

    Constraints:

    Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

    The status \"no-permission\" indicates that RDS no longer has permission to post to the SNS topic. The status \"topic-not-exist\" indicates that the topic was deleted after the subscription was created.

    ", - "EventSubscription$SubscriptionCreationTime": "

    The time the RDS event notification subscription was created.

    ", - "EventSubscription$SourceType": "

    The source type for the RDS event notification subscription.

    ", - "EventSubscriptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "EventsMessage$Marker": "

    An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "IPRange$Status": "

    Specifies the status of the IP range. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

    ", - "IPRange$CIDRIP": "

    Specifies the IP range.

    ", - "KeyList$member": null, - "ListTagsForResourceMessage$ResourceName": "

    The DB Instance with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    ", - "ModifyDBInstanceMessage$DBInstanceIdentifier": "

    The DB Instance identifier. This value is stored as a lowercase string.

    Constraints:

    • Must be the identifier for an existing DB Instance
    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "ModifyDBInstanceMessage$DBInstanceClass": "

    The new compute and memory capacity of the DB Instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action.

    Passing a value for this parameter causes an outage during the change and is applied during the next maintenance window, unless the ApplyImmediately parameter is specified as true for this request.

    Default: Uses existing setting

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge

    ", - "ModifyDBInstanceMessage$MasterUserPassword": "

    The new password for the DB Instance master user. Can be any printable ASCII character except \"/\", \"\\\", or \"@\".

    Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

    Default: Uses existing setting

    Constraints: Must be 8 to 41 alphanumeric characters (MySQL), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

    Amazon RDS API actions never return the password, so this action provides a way to regain access to a master instance user if the password is lost. ", - "ModifyDBInstanceMessage$DBParameterGroupName": "

    The name of the DB Parameter Group to apply to this DB Instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Default: Uses existing setting

    Constraints: The DB Parameter Group must be in the same DB Parameter Group family as this DB Instance.

    ", - "ModifyDBInstanceMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints:

    • Must be in the format hh24:mi-hh24:mi
    • Times should be Universal Time Coordinated (UTC)
    • Must not conflict with the preferred maintenance window
    • Must be at least 30 minutes
    ", - "ModifyDBInstanceMessage$PreferredMaintenanceWindow": "

    The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB Instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

    Default: Uses existing setting

    Format: ddd:hh24:mi-ddd:hh24:mi

    Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

    Constraints: Must be at least 30 minutes

    ", - "ModifyDBInstanceMessage$EngineVersion": "

    The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    For major version upgrades, if a nondefault DB Parameter Group is currently in use, a new DB Parameter Group in the DB Parameter Group Family for the new engine version must be specified. The new DB Parameter Group can be the default for that DB Parameter Group Family.

    Example: 5.1.42

    ", - "ModifyDBInstanceMessage$OptionGroupName": "

    Indicates that the DB Instance should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "ModifyDBInstanceMessage$NewDBInstanceIdentifier": "

    The new DB Instance identifier for the DB Instance when renaming a DB Instance. This value is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "ModifyDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB Parameter Group.

    Constraints:

    • Must be the name of an existing DB Parameter Group
    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "ModifyDBSubnetGroupMessage$DBSubnetGroupName": "

    The name for the DB Subnet Group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

    Example: mySubnetgroup

    ", - "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "

    The description for the DB Subnet Group.

    ", - "ModifyEventSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription.

    ", - "ModifyEventSubscriptionMessage$SnsTopicArn": "

    The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

    ", - "ModifyEventSubscriptionMessage$SourceType": "

    The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "ModifyOptionGroupMessage$OptionGroupName": "

    The name of the option group to be modified.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "Option$OptionName": "

    The name of the option.

    ", - "Option$OptionDescription": "

    The description of the option.

    ", - "OptionConfiguration$OptionName": "

    The configuration of options to include in a group.

    ", - "OptionGroup$OptionGroupName": "

    Specifies the name of the option group.

    ", - "OptionGroup$OptionGroupDescription": "

    Provides the description of the option group.

    ", - "OptionGroup$EngineName": "

    Engine name that this option group can be applied to.

    ", - "OptionGroup$MajorEngineVersion": "

    Indicates the major engine version associated with this option group.

    ", - "OptionGroup$VpcId": "

    If AllowsVpcAndNonVpcInstanceMemberships is 'false', this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is 'true' and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.

    ", - "OptionGroupMembership$OptionGroupName": "

    The name of the option group that the instance belongs to.

    ", - "OptionGroupMembership$Status": "

    The status of the DB Instance's option group membership (e.g. in-sync, pending, pending-maintenance, applying).

    ", - "OptionGroupOption$Name": "

    The name of the option.

    ", - "OptionGroupOption$Description": "

    The description of the option.

    ", - "OptionGroupOption$EngineName": "

    Engine name that this option can be applied to.

    ", - "OptionGroupOption$MajorEngineVersion": "

    Indicates the major engine version that the option is available for.

    ", - "OptionGroupOption$MinimumRequiredMinorEngineVersion": "

    The minimum required engine version for the option to be applied.

    ", - "OptionGroupOptionSetting$SettingName": "

    The name of the option group option.

    ", - "OptionGroupOptionSetting$SettingDescription": "

    The description of the option group option.

    ", - "OptionGroupOptionSetting$DefaultValue": "

    The default value for the option group option.

    ", - "OptionGroupOptionSetting$ApplyType": "

    The DB engine specific parameter type for the option group option.

    ", - "OptionGroupOptionSetting$AllowedValues": "

    Indicates the acceptable values for the option group option.

    ", - "OptionGroupOptionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "OptionGroups$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "OptionNamesList$member": null, - "OptionSetting$Name": "

    The name of the option that has settings that you can set.

    ", - "OptionSetting$Value": "

    The current value of the option setting.

    ", - "OptionSetting$DefaultValue": "

    The default value of the option setting.

    ", - "OptionSetting$Description": "

    The description of the option setting.

    ", - "OptionSetting$ApplyType": "

    The DB engine specific parameter type.

    ", - "OptionSetting$DataType": "

    The data type of the option setting.

    ", - "OptionSetting$AllowedValues": "

    The allowed values of the option setting.

    ", - "OptionsDependedOn$member": null, - "OrderableDBInstanceOption$Engine": "

    The engine type of the orderable DB Instance.

    ", - "OrderableDBInstanceOption$EngineVersion": "

    The engine version of the orderable DB Instance.

    ", - "OrderableDBInstanceOption$DBInstanceClass": "

    The DB Instance Class for the orderable DB Instance

    ", - "OrderableDBInstanceOption$LicenseModel": "

    The license model for the orderable DB Instance.

    ", - "OrderableDBInstanceOptionsMessage$Marker": "

    An optional pagination token provided by a previous OrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "Parameter$ParameterName": "

    Specifies the name of the parameter.

    ", - "Parameter$ParameterValue": "

    Specifies the value of the parameter.

    ", - "Parameter$Description": "

    Provides a description of the parameter.

    ", - "Parameter$Source": "

    Indicates the source of the parameter value.

    ", - "Parameter$ApplyType": "

    Specifies the engine specific parameters type.

    ", - "Parameter$DataType": "

    Specifies the valid data type for the parameter.

    ", - "Parameter$AllowedValues": "

    Specifies the valid range of values for the parameter.

    ", - "Parameter$MinimumEngineVersion": "

    The earliest engine version to which the parameter can apply.

    ", - "PendingModifiedValues$DBInstanceClass": "

    Contains the new DBInstanceClass for the DB Instance that will be applied or is in progress.

    ", - "PendingModifiedValues$MasterUserPassword": "

    Contains the pending or in-progress change of the master credentials for the DB Instance.

    ", - "PendingModifiedValues$EngineVersion": "

    Indicates the database engine version.

    ", - "PendingModifiedValues$DBInstanceIdentifier": "

    Contains the new DBInstanceIdentifier for the DB Instance that will be applied or is in progress.

    ", - "PromoteReadReplicaMessage$DBInstanceIdentifier": "

    The DB Instance identifier. This value is stored as a lowercase string.

    Constraints:

    • Must be the identifier for an existing Read Replica DB Instance
    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: mydbinstance

    ", - "PromoteReadReplicaMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

    Default: A 30-minute window selected at random from an 8-hour block of time per region. The following list shows the time blocks for each region from which the default backup windows are assigned.

    • US-East (Northern Virginia) Region: 03:00-11:00 UTC
    • US-West (Northern California) Region: 06:00-14:00 UTC
    • EU (Ireland) Region: 22:00-06:00 UTC
    • Asia Pacific (Singapore) Region: 14:00-22:00 UTC
    • Asia Pacific (Tokyo) Region: 17:00-03:00 UTC

    Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

    ", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": "

    The ID of the Reserved DB Instance offering to purchase.

    Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

    ", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "

    Customer-specified identifier to track this reservation.

    Example: myreservationID

    ", - "ReadReplicaDBInstanceIdentifierList$member": null, - "RebootDBInstanceMessage$DBInstanceIdentifier": "

    The DB Instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RecurringCharge$RecurringChargeFrequency": "

    The frequency of the recurring charge.

    ", - "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to remove a source identifier from.

    ", - "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": "

    The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

    ", - "RemoveTagsFromResourceMessage$ResourceName": "

    The DB Instance the tags will be removed from. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    ", - "ReservedDBInstance$ReservedDBInstanceId": "

    The unique identifier for the reservation.

    ", - "ReservedDBInstance$ReservedDBInstancesOfferingId": "

    The offering identifier.

    ", - "ReservedDBInstance$DBInstanceClass": "

    The DB instance class for the reserved DB Instance.

    ", - "ReservedDBInstance$CurrencyCode": "

    The currency code for the reserved DB Instance.

    ", - "ReservedDBInstance$ProductDescription": "

    The description of the reserved DB Instance.

    ", - "ReservedDBInstance$OfferingType": "

    The offering type of this reserved DB Instance.

    ", - "ReservedDBInstance$State": "

    The state of the reserved DB Instance.

    ", - "ReservedDBInstanceMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": "

    The offering identifier.

    ", - "ReservedDBInstancesOffering$DBInstanceClass": "

    The DB instance class for the reserved DB Instance.

    ", - "ReservedDBInstancesOffering$CurrencyCode": "

    The currency code for the reserved DB Instance offering.

    ", - "ReservedDBInstancesOffering$ProductDescription": "

    The database engine used by the offering.

    ", - "ReservedDBInstancesOffering$OfferingType": "

    The offering type.

    ", - "ReservedDBInstancesOfferingMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "ResetDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB Parameter Group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": "

    The identifier for the DB Snapshot to restore from.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": "

    Name of the DB Instance to create from the DB Snapshot. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": "

    The compute and memory capacity of the Amazon RDS DB instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge

    ", - "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    Example: us-east-1a

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": "

    The DB Subnet Group name to use for the new instance.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

    License model information for the restored DB Instance.

    Default: Same as source.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBName": "

    The database name for the restored DB Instance.

    This parameter doesn't apply to the MySQL engine.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

    The database engine to use for the new instance.

    Default: The same as source

    Constraint: Must be compatible with the engine of the source

    Example: oracle-ee

    ", - "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": "

    The name of the option group to be used for the restored DB instance.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": "

    The identifier of the source DB Instance from which to restore.

    Constraints:

    • Must be the identifier of an existing database instance
    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": "

    The name of the new database instance to be created.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": "

    The compute and memory capacity of the Amazon RDS DB instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge

    Default: The same DBInstanceClass as the original DB Instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    Example: us-east-1a

    ", - "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": "

    The DB subnet group name to use for the new instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$LicenseModel": "

    License model information for the restored DB Instance.

    Default: Same as source.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "RestoreDBInstanceToPointInTimeMessage$DBName": "

    The database name for the restored DB Instance.

    This parameter is not used for the MySQL engine.

    ", - "RestoreDBInstanceToPointInTimeMessage$Engine": "

    The database engine to use for the new instance.

    Default: The same as source

    Constraint: Must be compatible with the engine of the source

    Example: oracle-ee

    ", - "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": "

    The name of the option group to be used for the restored DB instance.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

    The name of the DB Security Group to revoke ingress from.

    ", - "RevokeDBSecurityGroupIngressMessage$CIDRIP": "

    The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

    The name of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

    The id of the EC2 Security Group to revoke access from. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

    The AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB Security Groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "SourceIdsList$member": null, - "Subnet$SubnetIdentifier": "

    Specifies the identifier of the subnet.

    ", - "Subnet$SubnetStatus": "

    Specifies the status of the subnet.

    ", - "SubnetIdentifierList$member": null, - "Tag$Key": "

    A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", - "Tag$Value": "

    A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", - "VpcSecurityGroupIdList$member": null, - "VpcSecurityGroupMembership$VpcSecurityGroupId": "

    The name of the VPC security group.

    ", - "VpcSecurityGroupMembership$Status": "

    The status of the VPC Security Group.

    " - } - }, - "Subnet": { - "base": "

    This data type is used as a response element in the DescribeDBSubnetGroups action.

    ", - "refs": { - "SubnetList$member": null - } - }, - "SubnetAlreadyInUse": { - "base": "

    The DB subnet is already in use in the Availability Zone.

    ", - "refs": { - } - }, - "SubnetIdentifierList": { - "base": null, - "refs": { - "CreateDBSubnetGroupMessage$SubnetIds": "

    The EC2 Subnet IDs for the DB Subnet Group.

    ", - "ModifyDBSubnetGroupMessage$SubnetIds": "

    The EC2 Subnet IDs for the DB Subnet Group.

    " - } - }, - "SubnetList": { - "base": null, - "refs": { - "DBSubnetGroup$Subnets": "

    Contains a list of Subnet elements.

    " - } - }, - "SubscriptionAlreadyExistFault": { - "base": "

    The supplied subscription name already exists.

    ", - "refs": { - } - }, - "SubscriptionCategoryNotFoundFault": { - "base": "

    The supplied category does not exist.

    ", - "refs": { - } - }, - "SubscriptionNotFoundFault": { - "base": "

    The subscription name does not exist.

    ", - "refs": { - } - }, - "SupportedCharacterSetsList": { - "base": null, - "refs": { - "DBEngineVersion$SupportedCharacterSets": "

    A list of the character sets supported by this engine for the CharacterSetName parameter of the CreateDBInstance API.

    " - } - }, - "TStamp": { - "base": null, - "refs": { - "DBInstance$InstanceCreateTime": "

    Provides the date and time the DB Instance was created.

    ", - "DBInstance$LatestRestorableTime": "

    Specifies the latest time to which a database can be restored with point-in-time restore.

    ", - "DBSnapshot$SnapshotCreateTime": "

    Provides the time (UTC) when the snapshot was taken.

    ", - "DBSnapshot$InstanceCreateTime": "

    Specifies the time (UTC) when the snapshot was taken.

    ", - "DescribeEventsMessage$StartTime": "

    The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

    ", - "DescribeEventsMessage$EndTime": "

    The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

    ", - "Event$Date": "

    Specifies the date and time of the event.

    ", - "ReservedDBInstance$StartTime": "

    The time the reservation started.

    ", - "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

    The date and time to restore from.

    Valid Values: Value must be a UTC time

    Constraints:

    • Must be before the latest restorable time for the DB Instance
    • Cannot be specified if UseLatestRestorableTime parameter is true

    Example: 2009-09-07T23:45:00Z

    " - } - }, - "Tag": { - "base": "

    Metadata assigned to a DB Instance consisting of a key-value pair.

    ", - "refs": { - "TagList$member": null - } - }, - "TagList": { - "base": "

    A list of tags.

    ", - "refs": { - "AddTagsToResourceMessage$Tags": "

    The tags to be assigned to the DB Instance.

    ", - "TagListMessage$TagList": "

    List of tags returned by the ListTagsForResource operation.

    " - } - }, - "TagListMessage": { - "base": "

    ", - "refs": { - } - }, - "VpcSecurityGroupIdList": { - "base": null, - "refs": { - "CreateDBInstanceMessage$VpcSecurityGroupIds": "

    A list of EC2 VPC Security Groups to associate with this DB Instance.

    Default: The default EC2 VPC Security Group for the DB Subnet group's VPC.

    ", - "ModifyDBInstanceMessage$VpcSecurityGroupIds": "

    A list of EC2 VPC Security Groups to authorize on this DB Instance. This change is asynchronously applied as soon as possible.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "OptionConfiguration$VpcSecurityGroupMemberships": "

    A list of VpcSecurityGroupMemebrship name strings used for this option.

    " - } - }, - "VpcSecurityGroupMembership": { - "base": "

    This data type is used as a response element for queries on VPC security group membership.

    ", - "refs": { - "VpcSecurityGroupMembershipList$member": null - } - }, - "VpcSecurityGroupMembershipList": { - "base": null, - "refs": { - "DBInstance$VpcSecurityGroups": "

    Provides List of VPC security group elements that the DB Instance belongs to.

    ", - "Option$VpcSecurityGroupMemberships": "

    If the option requires access to a port, then this VPC Security Group allows access to the port.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-02-12/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/api-2.json deleted file mode 100644 index 264239184..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/api-2.json +++ /dev/null @@ -1,3158 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2013-09-09", - "endpointPrefix":"rds", - "protocol":"query", - "serviceAbbreviation":"Amazon RDS", - "serviceFullName":"Amazon Relational Database Service", - "signatureVersion":"v4", - "xmlNamespace":"http://rds.amazonaws.com/doc/2013-09-09/" - }, - "operations":{ - "AddSourceIdentifierToSubscription":{ - "name":"AddSourceIdentifierToSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddSourceIdentifierToSubscriptionMessage"}, - "output":{ - "shape":"AddSourceIdentifierToSubscriptionResult", - "resultWrapper":"AddSourceIdentifierToSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "AddTagsToResource":{ - "name":"AddTagsToResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddTagsToResourceMessage"}, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "AuthorizeDBSecurityGroupIngress":{ - "name":"AuthorizeDBSecurityGroupIngress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AuthorizeDBSecurityGroupIngressMessage"}, - "output":{ - "shape":"AuthorizeDBSecurityGroupIngressResult", - "resultWrapper":"AuthorizeDBSecurityGroupIngressResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"AuthorizationAlreadyExistsFault"}, - {"shape":"AuthorizationQuotaExceededFault"} - ] - }, - "CopyDBSnapshot":{ - "name":"CopyDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CopyDBSnapshotMessage"}, - "output":{ - "shape":"CopyDBSnapshotResult", - "resultWrapper":"CopyDBSnapshotResult" - }, - "errors":[ - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "CreateDBInstance":{ - "name":"CreateDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBInstanceMessage"}, - "output":{ - "shape":"CreateDBInstanceResult", - "resultWrapper":"CreateDBInstanceResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "CreateDBInstanceReadReplica":{ - "name":"CreateDBInstanceReadReplica", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBInstanceReadReplicaMessage"}, - "output":{ - "shape":"CreateDBInstanceReadReplicaResult", - "resultWrapper":"CreateDBInstanceReadReplicaResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"DBSubnetGroupNotAllowedFault"}, - {"shape":"InvalidDBSubnetGroupFault"} - ] - }, - "CreateDBParameterGroup":{ - "name":"CreateDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBParameterGroupMessage"}, - "output":{ - "shape":"CreateDBParameterGroupResult", - "resultWrapper":"CreateDBParameterGroupResult" - }, - "errors":[ - {"shape":"DBParameterGroupQuotaExceededFault"}, - {"shape":"DBParameterGroupAlreadyExistsFault"} - ] - }, - "CreateDBSecurityGroup":{ - "name":"CreateDBSecurityGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSecurityGroupMessage"}, - "output":{ - "shape":"CreateDBSecurityGroupResult", - "resultWrapper":"CreateDBSecurityGroupResult" - }, - "errors":[ - {"shape":"DBSecurityGroupAlreadyExistsFault"}, - {"shape":"DBSecurityGroupQuotaExceededFault"}, - {"shape":"DBSecurityGroupNotSupportedFault"} - ] - }, - "CreateDBSnapshot":{ - "name":"CreateDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSnapshotMessage"}, - "output":{ - "shape":"CreateDBSnapshotResult", - "resultWrapper":"CreateDBSnapshotResult" - }, - "errors":[ - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "CreateDBSubnetGroup":{ - "name":"CreateDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSubnetGroupMessage"}, - "output":{ - "shape":"CreateDBSubnetGroupResult", - "resultWrapper":"CreateDBSubnetGroupResult" - }, - "errors":[ - {"shape":"DBSubnetGroupAlreadyExistsFault"}, - {"shape":"DBSubnetGroupQuotaExceededFault"}, - {"shape":"DBSubnetQuotaExceededFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} - ] - }, - "CreateEventSubscription":{ - "name":"CreateEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateEventSubscriptionMessage"}, - "output":{ - "shape":"CreateEventSubscriptionResult", - "resultWrapper":"CreateEventSubscriptionResult" - }, - "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionAlreadyExistFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "CreateOptionGroup":{ - "name":"CreateOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateOptionGroupMessage"}, - "output":{ - "shape":"CreateOptionGroupResult", - "resultWrapper":"CreateOptionGroupResult" - }, - "errors":[ - {"shape":"OptionGroupAlreadyExistsFault"}, - {"shape":"OptionGroupQuotaExceededFault"} - ] - }, - "DeleteDBInstance":{ - "name":"DeleteDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBInstanceMessage"}, - "output":{ - "shape":"DeleteDBInstanceResult", - "resultWrapper":"DeleteDBInstanceResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "DeleteDBParameterGroup":{ - "name":"DeleteDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBParameterGroupMessage"}, - "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DeleteDBSecurityGroup":{ - "name":"DeleteDBSecurityGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSecurityGroupMessage"}, - "errors":[ - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"DBSecurityGroupNotFoundFault"} - ] - }, - "DeleteDBSnapshot":{ - "name":"DeleteDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSnapshotMessage"}, - "output":{ - "shape":"DeleteDBSnapshotResult", - "resultWrapper":"DeleteDBSnapshotResult" - }, - "errors":[ - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "DeleteDBSubnetGroup":{ - "name":"DeleteDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSubnetGroupMessage"}, - "errors":[ - {"shape":"InvalidDBSubnetGroupStateFault"}, - {"shape":"InvalidDBSubnetStateFault"}, - {"shape":"DBSubnetGroupNotFoundFault"} - ] - }, - "DeleteEventSubscription":{ - "name":"DeleteEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteEventSubscriptionMessage"}, - "output":{ - "shape":"DeleteEventSubscriptionResult", - "resultWrapper":"DeleteEventSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"InvalidEventSubscriptionStateFault"} - ] - }, - "DeleteOptionGroup":{ - "name":"DeleteOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteOptionGroupMessage"}, - "errors":[ - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"InvalidOptionGroupStateFault"} - ] - }, - "DescribeDBEngineVersions":{ - "name":"DescribeDBEngineVersions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBEngineVersionsMessage"}, - "output":{ - "shape":"DBEngineVersionMessage", - "resultWrapper":"DescribeDBEngineVersionsResult" - } - }, - "DescribeDBInstances":{ - "name":"DescribeDBInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBInstancesMessage"}, - "output":{ - "shape":"DBInstanceMessage", - "resultWrapper":"DescribeDBInstancesResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "DescribeDBLogFiles":{ - "name":"DescribeDBLogFiles", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBLogFilesMessage"}, - "output":{ - "shape":"DescribeDBLogFilesResponse", - "resultWrapper":"DescribeDBLogFilesResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "DescribeDBParameterGroups":{ - "name":"DescribeDBParameterGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBParameterGroupsMessage"}, - "output":{ - "shape":"DBParameterGroupsMessage", - "resultWrapper":"DescribeDBParameterGroupsResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DescribeDBParameters":{ - "name":"DescribeDBParameters", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBParametersMessage"}, - "output":{ - "shape":"DBParameterGroupDetails", - "resultWrapper":"DescribeDBParametersResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DescribeDBSecurityGroups":{ - "name":"DescribeDBSecurityGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSecurityGroupsMessage"}, - "output":{ - "shape":"DBSecurityGroupMessage", - "resultWrapper":"DescribeDBSecurityGroupsResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"} - ] - }, - "DescribeDBSnapshots":{ - "name":"DescribeDBSnapshots", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSnapshotsMessage"}, - "output":{ - "shape":"DBSnapshotMessage", - "resultWrapper":"DescribeDBSnapshotsResult" - }, - "errors":[ - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "DescribeDBSubnetGroups":{ - "name":"DescribeDBSubnetGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSubnetGroupsMessage"}, - "output":{ - "shape":"DBSubnetGroupMessage", - "resultWrapper":"DescribeDBSubnetGroupsResult" - }, - "errors":[ - {"shape":"DBSubnetGroupNotFoundFault"} - ] - }, - "DescribeEngineDefaultParameters":{ - "name":"DescribeEngineDefaultParameters", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEngineDefaultParametersMessage"}, - "output":{ - "shape":"DescribeEngineDefaultParametersResult", - "resultWrapper":"DescribeEngineDefaultParametersResult" - } - }, - "DescribeEventCategories":{ - "name":"DescribeEventCategories", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventCategoriesMessage"}, - "output":{ - "shape":"EventCategoriesMessage", - "resultWrapper":"DescribeEventCategoriesResult" - } - }, - "DescribeEventSubscriptions":{ - "name":"DescribeEventSubscriptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventSubscriptionsMessage"}, - "output":{ - "shape":"EventSubscriptionsMessage", - "resultWrapper":"DescribeEventSubscriptionsResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"} - ] - }, - "DescribeEvents":{ - "name":"DescribeEvents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventsMessage"}, - "output":{ - "shape":"EventsMessage", - "resultWrapper":"DescribeEventsResult" - } - }, - "DescribeOptionGroupOptions":{ - "name":"DescribeOptionGroupOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOptionGroupOptionsMessage"}, - "output":{ - "shape":"OptionGroupOptionsMessage", - "resultWrapper":"DescribeOptionGroupOptionsResult" - } - }, - "DescribeOptionGroups":{ - "name":"DescribeOptionGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOptionGroupsMessage"}, - "output":{ - "shape":"OptionGroups", - "resultWrapper":"DescribeOptionGroupsResult" - }, - "errors":[ - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "DescribeOrderableDBInstanceOptions":{ - "name":"DescribeOrderableDBInstanceOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOrderableDBInstanceOptionsMessage"}, - "output":{ - "shape":"OrderableDBInstanceOptionsMessage", - "resultWrapper":"DescribeOrderableDBInstanceOptionsResult" - } - }, - "DescribeReservedDBInstances":{ - "name":"DescribeReservedDBInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedDBInstancesMessage"}, - "output":{ - "shape":"ReservedDBInstanceMessage", - "resultWrapper":"DescribeReservedDBInstancesResult" - }, - "errors":[ - {"shape":"ReservedDBInstanceNotFoundFault"} - ] - }, - "DescribeReservedDBInstancesOfferings":{ - "name":"DescribeReservedDBInstancesOfferings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedDBInstancesOfferingsMessage"}, - "output":{ - "shape":"ReservedDBInstancesOfferingMessage", - "resultWrapper":"DescribeReservedDBInstancesOfferingsResult" - }, - "errors":[ - {"shape":"ReservedDBInstancesOfferingNotFoundFault"} - ] - }, - "DownloadDBLogFilePortion":{ - "name":"DownloadDBLogFilePortion", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DownloadDBLogFilePortionMessage"}, - "output":{ - "shape":"DownloadDBLogFilePortionDetails", - "resultWrapper":"DownloadDBLogFilePortionResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBLogFileNotFoundFault"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceMessage"}, - "output":{ - "shape":"TagListMessage", - "resultWrapper":"ListTagsForResourceResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "ModifyDBInstance":{ - "name":"ModifyDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBInstanceMessage"}, - "output":{ - "shape":"ModifyDBInstanceResult", - "resultWrapper":"ModifyDBInstanceResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"DBUpgradeDependencyFailureFault"} - ] - }, - "ModifyDBParameterGroup":{ - "name":"ModifyDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBParameterGroupMessage"}, - "output":{ - "shape":"DBParameterGroupNameMessage", - "resultWrapper":"ModifyDBParameterGroupResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InvalidDBParameterGroupStateFault"} - ] - }, - "ModifyDBSubnetGroup":{ - "name":"ModifyDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBSubnetGroupMessage"}, - "output":{ - "shape":"ModifyDBSubnetGroupResult", - "resultWrapper":"ModifyDBSubnetGroupResult" - }, - "errors":[ - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetQuotaExceededFault"}, - {"shape":"SubnetAlreadyInUse"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} - ] - }, - "ModifyEventSubscription":{ - "name":"ModifyEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyEventSubscriptionMessage"}, - "output":{ - "shape":"ModifyEventSubscriptionResult", - "resultWrapper":"ModifyEventSubscriptionResult" - }, - "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"} - ] - }, - "ModifyOptionGroup":{ - "name":"ModifyOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyOptionGroupMessage"}, - "output":{ - "shape":"ModifyOptionGroupResult", - "resultWrapper":"ModifyOptionGroupResult" - }, - "errors":[ - {"shape":"InvalidOptionGroupStateFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "PromoteReadReplica":{ - "name":"PromoteReadReplica", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PromoteReadReplicaMessage"}, - "output":{ - "shape":"PromoteReadReplicaResult", - "resultWrapper":"PromoteReadReplicaResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "PurchaseReservedDBInstancesOffering":{ - "name":"PurchaseReservedDBInstancesOffering", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PurchaseReservedDBInstancesOfferingMessage"}, - "output":{ - "shape":"PurchaseReservedDBInstancesOfferingResult", - "resultWrapper":"PurchaseReservedDBInstancesOfferingResult" - }, - "errors":[ - {"shape":"ReservedDBInstancesOfferingNotFoundFault"}, - {"shape":"ReservedDBInstanceAlreadyExistsFault"}, - {"shape":"ReservedDBInstanceQuotaExceededFault"} - ] - }, - "RebootDBInstance":{ - "name":"RebootDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RebootDBInstanceMessage"}, - "output":{ - "shape":"RebootDBInstanceResult", - "resultWrapper":"RebootDBInstanceResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "RemoveSourceIdentifierFromSubscription":{ - "name":"RemoveSourceIdentifierFromSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveSourceIdentifierFromSubscriptionMessage"}, - "output":{ - "shape":"RemoveSourceIdentifierFromSubscriptionResult", - "resultWrapper":"RemoveSourceIdentifierFromSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "RemoveTagsFromResource":{ - "name":"RemoveTagsFromResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTagsFromResourceMessage"}, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "ResetDBParameterGroup":{ - "name":"ResetDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResetDBParameterGroupMessage"}, - "output":{ - "shape":"DBParameterGroupNameMessage", - "resultWrapper":"ResetDBParameterGroupResult" - }, - "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "RestoreDBInstanceFromDBSnapshot":{ - "name":"RestoreDBInstanceFromDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreDBInstanceFromDBSnapshotMessage"}, - "output":{ - "shape":"RestoreDBInstanceFromDBSnapshotResult", - "resultWrapper":"RestoreDBInstanceFromDBSnapshotResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "RestoreDBInstanceToPointInTime":{ - "name":"RestoreDBInstanceToPointInTime", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreDBInstanceToPointInTimeMessage"}, - "output":{ - "shape":"RestoreDBInstanceToPointInTimeResult", - "resultWrapper":"RestoreDBInstanceToPointInTimeResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"PointInTimeRestoreNotEnabledFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "RevokeDBSecurityGroupIngress":{ - "name":"RevokeDBSecurityGroupIngress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RevokeDBSecurityGroupIngressMessage"}, - "output":{ - "shape":"RevokeDBSecurityGroupIngressResult", - "resultWrapper":"RevokeDBSecurityGroupIngressResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"} - ] - } - }, - "shapes":{ - "AddSourceIdentifierToSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SourceIdentifier" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SourceIdentifier":{"shape":"String"} - } - }, - "AddSourceIdentifierToSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "AddTagsToResourceMessage":{ - "type":"structure", - "required":[ - "ResourceName", - "Tags" - ], - "members":{ - "ResourceName":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "ApplyMethod":{ - "type":"string", - "enum":[ - "immediate", - "pending-reboot" - ] - }, - "AuthorizationAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "AuthorizationNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "AuthorizationQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "AuthorizeDBSecurityGroupIngressMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "CIDRIP":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "AuthorizeDBSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "AvailabilityZone":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "ProvisionedIopsCapable":{"shape":"Boolean"} - }, - "wrapper":true - }, - "AvailabilityZoneList":{ - "type":"list", - "member":{ - "shape":"AvailabilityZone", - "locationName":"AvailabilityZone" - } - }, - "Boolean":{"type":"boolean"}, - "BooleanOptional":{"type":"boolean"}, - "CharacterSet":{ - "type":"structure", - "members":{ - "CharacterSetName":{"shape":"String"}, - "CharacterSetDescription":{"shape":"String"} - } - }, - "CopyDBSnapshotMessage":{ - "type":"structure", - "required":[ - "SourceDBSnapshotIdentifier", - "TargetDBSnapshotIdentifier" - ], - "members":{ - "SourceDBSnapshotIdentifier":{"shape":"String"}, - "TargetDBSnapshotIdentifier":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CopyDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "CreateDBInstanceMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "AllocatedStorage", - "DBInstanceClass", - "Engine", - "MasterUsername", - "MasterUserPassword" - ], - "members":{ - "DBName":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "DBInstanceClass":{"shape":"String"}, - "Engine":{"shape":"String"}, - "MasterUsername":{"shape":"String"}, - "MasterUserPassword":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "DBParameterGroupName":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "CharacterSetName":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateDBInstanceReadReplicaMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "SourceDBInstanceIdentifier" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "SourceDBInstanceIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "AvailabilityZone":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "Tags":{"shape":"TagList"}, - "DBSubnetGroupName":{"shape":"String"} - } - }, - "CreateDBInstanceReadReplicaResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "CreateDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "CreateDBParameterGroupMessage":{ - "type":"structure", - "required":[ - "DBParameterGroupName", - "DBParameterGroupFamily", - "Description" - ], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "Description":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateDBParameterGroupResult":{ - "type":"structure", - "members":{ - "DBParameterGroup":{"shape":"DBParameterGroup"} - } - }, - "CreateDBSecurityGroupMessage":{ - "type":"structure", - "required":[ - "DBSecurityGroupName", - "DBSecurityGroupDescription" - ], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "DBSecurityGroupDescription":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateDBSecurityGroupResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "CreateDBSnapshotMessage":{ - "type":"structure", - "required":[ - "DBSnapshotIdentifier", - "DBInstanceIdentifier" - ], - "members":{ - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "CreateDBSubnetGroupMessage":{ - "type":"structure", - "required":[ - "DBSubnetGroupName", - "DBSubnetGroupDescription", - "SubnetIds" - ], - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "SubnetIds":{"shape":"SubnetIdentifierList"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateDBSubnetGroupResult":{ - "type":"structure", - "members":{ - "DBSubnetGroup":{"shape":"DBSubnetGroup"} - } - }, - "CreateEventSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SnsTopicArn" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "SourceIds":{"shape":"SourceIdsList"}, - "Enabled":{"shape":"BooleanOptional"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "CreateOptionGroupMessage":{ - "type":"structure", - "required":[ - "OptionGroupName", - "EngineName", - "MajorEngineVersion", - "OptionGroupDescription" - ], - "members":{ - "OptionGroupName":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "OptionGroupDescription":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, - "DBEngineVersion":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "DBEngineDescription":{"shape":"String"}, - "DBEngineVersionDescription":{"shape":"String"}, - "DefaultCharacterSet":{"shape":"CharacterSet"}, - "SupportedCharacterSets":{"shape":"SupportedCharacterSetsList"} - } - }, - "DBEngineVersionList":{ - "type":"list", - "member":{ - "shape":"DBEngineVersion", - "locationName":"DBEngineVersion" - } - }, - "DBEngineVersionMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBEngineVersions":{"shape":"DBEngineVersionList"} - } - }, - "DBInstance":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Engine":{"shape":"String"}, - "DBInstanceStatus":{"shape":"String"}, - "MasterUsername":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Endpoint":{"shape":"Endpoint"}, - "AllocatedStorage":{"shape":"Integer"}, - "InstanceCreateTime":{"shape":"TStamp"}, - "PreferredBackupWindow":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"Integer"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupMembershipList"}, - "VpcSecurityGroups":{"shape":"VpcSecurityGroupMembershipList"}, - "DBParameterGroups":{"shape":"DBParameterGroupStatusList"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroup":{"shape":"DBSubnetGroup"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "PendingModifiedValues":{"shape":"PendingModifiedValues"}, - "LatestRestorableTime":{"shape":"TStamp"}, - "MultiAZ":{"shape":"Boolean"}, - "EngineVersion":{"shape":"String"}, - "AutoMinorVersionUpgrade":{"shape":"Boolean"}, - "ReadReplicaSourceDBInstanceIdentifier":{"shape":"String"}, - "ReadReplicaDBInstanceIdentifiers":{"shape":"ReadReplicaDBInstanceIdentifierList"}, - "LicenseModel":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupMemberships":{"shape":"OptionGroupMembershipList"}, - "CharacterSetName":{"shape":"String"}, - "SecondaryAvailabilityZone":{"shape":"String"}, - "PubliclyAccessible":{"shape":"Boolean"}, - "StatusInfos":{"shape":"DBInstanceStatusInfoList"} - }, - "wrapper":true - }, - "DBInstanceAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBInstanceAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBInstanceList":{ - "type":"list", - "member":{ - "shape":"DBInstance", - "locationName":"DBInstance" - } - }, - "DBInstanceMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBInstances":{"shape":"DBInstanceList"} - } - }, - "DBInstanceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBInstanceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBInstanceStatusInfo":{ - "type":"structure", - "members":{ - "StatusType":{"shape":"String"}, - "Normal":{"shape":"Boolean"}, - "Status":{"shape":"String"}, - "Message":{"shape":"String"} - } - }, - "DBInstanceStatusInfoList":{ - "type":"list", - "member":{ - "shape":"DBInstanceStatusInfo", - "locationName":"DBInstanceStatusInfo" - } - }, - "DBLogFileNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBLogFileNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroup":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "Description":{"shape":"String"} - }, - "wrapper":true - }, - "DBParameterGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupDetails":{ - "type":"structure", - "members":{ - "Parameters":{"shape":"ParametersList"}, - "Marker":{"shape":"String"} - } - }, - "DBParameterGroupList":{ - "type":"list", - "member":{ - "shape":"DBParameterGroup", - "locationName":"DBParameterGroup" - } - }, - "DBParameterGroupNameMessage":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"} - } - }, - "DBParameterGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupStatus":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "ParameterApplyStatus":{"shape":"String"} - } - }, - "DBParameterGroupStatusList":{ - "type":"list", - "member":{ - "shape":"DBParameterGroupStatus", - "locationName":"DBParameterGroup" - } - }, - "DBParameterGroupsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBParameterGroups":{"shape":"DBParameterGroupList"} - } - }, - "DBSecurityGroup":{ - "type":"structure", - "members":{ - "OwnerId":{"shape":"String"}, - "DBSecurityGroupName":{"shape":"String"}, - "DBSecurityGroupDescription":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "EC2SecurityGroups":{"shape":"EC2SecurityGroupList"}, - "IPRanges":{"shape":"IPRangeList"} - }, - "wrapper":true - }, - "DBSecurityGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupMembership":{ - "type":"structure", - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "DBSecurityGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"DBSecurityGroupMembership", - "locationName":"DBSecurityGroup" - } - }, - "DBSecurityGroupMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroups"} - } - }, - "DBSecurityGroupNameList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"DBSecurityGroupName" - } - }, - "DBSecurityGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupNotSupportedFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupNotSupported", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"QuotaExceeded.DBSecurityGroup", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroups":{ - "type":"list", - "member":{ - "shape":"DBSecurityGroup", - "locationName":"DBSecurityGroup" - } - }, - "DBSnapshot":{ - "type":"structure", - "members":{ - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"}, - "SnapshotCreateTime":{"shape":"TStamp"}, - "Engine":{"shape":"String"}, - "AllocatedStorage":{"shape":"Integer"}, - "Status":{"shape":"String"}, - "Port":{"shape":"Integer"}, - "AvailabilityZone":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "InstanceCreateTime":{"shape":"TStamp"}, - "MasterUsername":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "SnapshotType":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "PercentProgress":{"shape":"Integer"}, - "SourceRegion":{"shape":"String"} - }, - "wrapper":true - }, - "DBSnapshotAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSnapshotAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSnapshotList":{ - "type":"list", - "member":{ - "shape":"DBSnapshot", - "locationName":"DBSnapshot" - } - }, - "DBSnapshotMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSnapshots":{"shape":"DBSnapshotList"} - } - }, - "DBSnapshotNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSnapshotNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroup":{ - "type":"structure", - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "SubnetGroupStatus":{"shape":"String"}, - "Subnets":{"shape":"SubnetList"} - }, - "wrapper":true - }, - "DBSubnetGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupDoesNotCoverEnoughAZs":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupDoesNotCoverEnoughAZs", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSubnetGroups":{"shape":"DBSubnetGroups"} - } - }, - "DBSubnetGroupNotAllowedFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupNotAllowedFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroups":{ - "type":"list", - "member":{ - "shape":"DBSubnetGroup", - "locationName":"DBSubnetGroup" - } - }, - "DBSubnetQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetQuotaExceededFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBUpgradeDependencyFailureFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBUpgradeDependencyFailure", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DeleteDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "SkipFinalSnapshot":{"shape":"Boolean"}, - "FinalDBSnapshotIdentifier":{"shape":"String"} - } - }, - "DeleteDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "DeleteDBParameterGroupMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"} - } - }, - "DeleteDBSecurityGroupMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"} - } - }, - "DeleteDBSnapshotMessage":{ - "type":"structure", - "required":["DBSnapshotIdentifier"], - "members":{ - "DBSnapshotIdentifier":{"shape":"String"} - } - }, - "DeleteDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "DeleteDBSubnetGroupMessage":{ - "type":"structure", - "required":["DBSubnetGroupName"], - "members":{ - "DBSubnetGroupName":{"shape":"String"} - } - }, - "DeleteEventSubscriptionMessage":{ - "type":"structure", - "required":["SubscriptionName"], - "members":{ - "SubscriptionName":{"shape":"String"} - } - }, - "DeleteEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "DeleteOptionGroupMessage":{ - "type":"structure", - "required":["OptionGroupName"], - "members":{ - "OptionGroupName":{"shape":"String"} - } - }, - "DescribeDBEngineVersionsMessage":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"}, - "DefaultOnly":{"shape":"Boolean"}, - "ListSupportedCharacterSets":{"shape":"BooleanOptional"} - } - }, - "DescribeDBInstancesMessage":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBLogFilesDetails":{ - "type":"structure", - "members":{ - "LogFileName":{"shape":"String"}, - "LastWritten":{"shape":"Long"}, - "Size":{"shape":"Long"} - } - }, - "DescribeDBLogFilesList":{ - "type":"list", - "member":{ - "shape":"DescribeDBLogFilesDetails", - "locationName":"DescribeDBLogFilesDetails" - } - }, - "DescribeDBLogFilesMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "FilenameContains":{"shape":"String"}, - "FileLastWritten":{"shape":"Long"}, - "FileSize":{"shape":"Long"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBLogFilesResponse":{ - "type":"structure", - "members":{ - "DescribeDBLogFiles":{"shape":"DescribeDBLogFilesList"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBParameterGroupsMessage":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBParametersMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "Source":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSecurityGroupsMessage":{ - "type":"structure", - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSnapshotsMessage":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBSnapshotIdentifier":{"shape":"String"}, - "SnapshotType":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSubnetGroupsMessage":{ - "type":"structure", - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEngineDefaultParametersMessage":{ - "type":"structure", - "required":["DBParameterGroupFamily"], - "members":{ - "DBParameterGroupFamily":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEngineDefaultParametersResult":{ - "type":"structure", - "members":{ - "EngineDefaults":{"shape":"EngineDefaults"} - } - }, - "DescribeEventCategoriesMessage":{ - "type":"structure", - "members":{ - "SourceType":{"shape":"String"}, - "Filters":{"shape":"FilterList"} - } - }, - "DescribeEventSubscriptionsMessage":{ - "type":"structure", - "members":{ - "SubscriptionName":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEventsMessage":{ - "type":"structure", - "members":{ - "SourceIdentifier":{"shape":"String"}, - "SourceType":{"shape":"SourceType"}, - "StartTime":{"shape":"TStamp"}, - "EndTime":{"shape":"TStamp"}, - "Duration":{"shape":"IntegerOptional"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeOptionGroupOptionsMessage":{ - "type":"structure", - "required":["EngineName"], - "members":{ - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeOptionGroupsMessage":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "Marker":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"} - } - }, - "DescribeOrderableDBInstanceOptionsMessage":{ - "type":"structure", - "required":["Engine"], - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "Vpc":{"shape":"BooleanOptional"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReservedDBInstancesMessage":{ - "type":"structure", - "members":{ - "ReservedDBInstanceId":{"shape":"String"}, - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReservedDBInstancesOfferingsMessage":{ - "type":"structure", - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "Double":{"type":"double"}, - "DownloadDBLogFilePortionDetails":{ - "type":"structure", - "members":{ - "LogFileData":{"shape":"String"}, - "Marker":{"shape":"String"}, - "AdditionalDataPending":{"shape":"Boolean"} - } - }, - "DownloadDBLogFilePortionMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "LogFileName" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "LogFileName":{"shape":"String"}, - "Marker":{"shape":"String"}, - "NumberOfLines":{"shape":"Integer"} - } - }, - "EC2SecurityGroup":{ - "type":"structure", - "members":{ - "Status":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "EC2SecurityGroupList":{ - "type":"list", - "member":{ - "shape":"EC2SecurityGroup", - "locationName":"EC2SecurityGroup" - } - }, - "Endpoint":{ - "type":"structure", - "members":{ - "Address":{"shape":"String"}, - "Port":{"shape":"Integer"} - } - }, - "EngineDefaults":{ - "type":"structure", - "members":{ - "DBParameterGroupFamily":{"shape":"String"}, - "Marker":{"shape":"String"}, - "Parameters":{"shape":"ParametersList"} - }, - "wrapper":true - }, - "Event":{ - "type":"structure", - "members":{ - "SourceIdentifier":{"shape":"String"}, - "SourceType":{"shape":"SourceType"}, - "Message":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "Date":{"shape":"TStamp"} - } - }, - "EventCategoriesList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"EventCategory" - } - }, - "EventCategoriesMap":{ - "type":"structure", - "members":{ - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"} - }, - "wrapper":true - }, - "EventCategoriesMapList":{ - "type":"list", - "member":{ - "shape":"EventCategoriesMap", - "locationName":"EventCategoriesMap" - } - }, - "EventCategoriesMessage":{ - "type":"structure", - "members":{ - "EventCategoriesMapList":{"shape":"EventCategoriesMapList"} - } - }, - "EventList":{ - "type":"list", - "member":{ - "shape":"Event", - "locationName":"Event" - } - }, - "EventSubscription":{ - "type":"structure", - "members":{ - "CustomerAwsId":{"shape":"String"}, - "CustSubscriptionId":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "Status":{"shape":"String"}, - "SubscriptionCreationTime":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "SourceIdsList":{"shape":"SourceIdsList"}, - "EventCategoriesList":{"shape":"EventCategoriesList"}, - "Enabled":{"shape":"Boolean"} - }, - "wrapper":true - }, - "EventSubscriptionQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"EventSubscriptionQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "EventSubscriptionsList":{ - "type":"list", - "member":{ - "shape":"EventSubscription", - "locationName":"EventSubscription" - } - }, - "EventSubscriptionsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "EventSubscriptionsList":{"shape":"EventSubscriptionsList"} - } - }, - "EventsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "Events":{"shape":"EventList"} - } - }, - "Filter":{ - "type":"structure", - "required":[ - "Name", - "Values" - ], - "members":{ - "Name":{"shape":"String"}, - "Values":{"shape":"FilterValueList"} - } - }, - "FilterList":{ - "type":"list", - "member":{ - "shape":"Filter", - "locationName":"Filter" - } - }, - "FilterValueList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"Value" - } - }, - "IPRange":{ - "type":"structure", - "members":{ - "Status":{"shape":"String"}, - "CIDRIP":{"shape":"String"} - } - }, - "IPRangeList":{ - "type":"list", - "member":{ - "shape":"IPRange", - "locationName":"IPRange" - } - }, - "InstanceQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InstanceQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InsufficientDBInstanceCapacityFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InsufficientDBInstanceCapacity", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "Integer":{"type":"integer"}, - "IntegerOptional":{"type":"integer"}, - "InvalidDBInstanceStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBInstanceState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBParameterGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBParameterGroupState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSecurityGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSecurityGroupState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSnapshotStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSnapshotState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSubnetGroupFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSubnetGroupFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSubnetGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSubnetGroupStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSubnetStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSubnetStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidEventSubscriptionStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidEventSubscriptionState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidOptionGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidOptionGroupStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidRestoreFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidRestoreFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidSubnet":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidSubnet", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidVPCNetworkStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidVPCNetworkStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "KeyList":{ - "type":"list", - "member":{"shape":"String"} - }, - "ListTagsForResourceMessage":{ - "type":"structure", - "required":["ResourceName"], - "members":{ - "ResourceName":{"shape":"String"}, - "Filters":{"shape":"FilterList"} - } - }, - "Long":{"type":"long"}, - "ModifyDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "DBInstanceClass":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "ApplyImmediately":{"shape":"Boolean"}, - "MasterUserPassword":{"shape":"String"}, - "DBParameterGroupName":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "AllowMajorVersionUpgrade":{"shape":"Boolean"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "NewDBInstanceIdentifier":{"shape":"String"} - } - }, - "ModifyDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "ModifyDBParameterGroupMessage":{ - "type":"structure", - "required":[ - "DBParameterGroupName", - "Parameters" - ], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "Parameters":{"shape":"ParametersList"} - } - }, - "ModifyDBSubnetGroupMessage":{ - "type":"structure", - "required":[ - "DBSubnetGroupName", - "SubnetIds" - ], - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "SubnetIds":{"shape":"SubnetIdentifierList"} - } - }, - "ModifyDBSubnetGroupResult":{ - "type":"structure", - "members":{ - "DBSubnetGroup":{"shape":"DBSubnetGroup"} - } - }, - "ModifyEventSubscriptionMessage":{ - "type":"structure", - "required":["SubscriptionName"], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "Enabled":{"shape":"BooleanOptional"} - } - }, - "ModifyEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "ModifyOptionGroupMessage":{ - "type":"structure", - "required":["OptionGroupName"], - "members":{ - "OptionGroupName":{"shape":"String"}, - "OptionsToInclude":{"shape":"OptionConfigurationList"}, - "OptionsToRemove":{"shape":"OptionNamesList"}, - "ApplyImmediately":{"shape":"Boolean"} - } - }, - "ModifyOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, - "Option":{ - "type":"structure", - "members":{ - "OptionName":{"shape":"String"}, - "OptionDescription":{"shape":"String"}, - "Persistent":{"shape":"Boolean"}, - "Permanent":{"shape":"Boolean"}, - "Port":{"shape":"IntegerOptional"}, - "OptionSettings":{"shape":"OptionSettingConfigurationList"}, - "DBSecurityGroupMemberships":{"shape":"DBSecurityGroupMembershipList"}, - "VpcSecurityGroupMemberships":{"shape":"VpcSecurityGroupMembershipList"} - } - }, - "OptionConfiguration":{ - "type":"structure", - "required":["OptionName"], - "members":{ - "OptionName":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "DBSecurityGroupMemberships":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupMemberships":{"shape":"VpcSecurityGroupIdList"}, - "OptionSettings":{"shape":"OptionSettingsList"} - } - }, - "OptionConfigurationList":{ - "type":"list", - "member":{ - "shape":"OptionConfiguration", - "locationName":"OptionConfiguration" - } - }, - "OptionGroup":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "OptionGroupDescription":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "Options":{"shape":"OptionsList"}, - "AllowsVpcAndNonVpcInstanceMemberships":{"shape":"Boolean"}, - "VpcId":{"shape":"String"} - }, - "wrapper":true - }, - "OptionGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupAlreadyExistsFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "OptionGroupMembership":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "OptionGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"OptionGroupMembership", - "locationName":"OptionGroupMembership" - } - }, - "OptionGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "OptionGroupOption":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "Description":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "MinimumRequiredMinorEngineVersion":{"shape":"String"}, - "PortRequired":{"shape":"Boolean"}, - "DefaultPort":{"shape":"IntegerOptional"}, - "OptionsDependedOn":{"shape":"OptionsDependedOn"}, - "Persistent":{"shape":"Boolean"}, - "Permanent":{"shape":"Boolean"}, - "OptionGroupOptionSettings":{"shape":"OptionGroupOptionSettingsList"} - } - }, - "OptionGroupOptionSetting":{ - "type":"structure", - "members":{ - "SettingName":{"shape":"String"}, - "SettingDescription":{"shape":"String"}, - "DefaultValue":{"shape":"String"}, - "ApplyType":{"shape":"String"}, - "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"} - } - }, - "OptionGroupOptionSettingsList":{ - "type":"list", - "member":{ - "shape":"OptionGroupOptionSetting", - "locationName":"OptionGroupOptionSetting" - } - }, - "OptionGroupOptionsList":{ - "type":"list", - "member":{ - "shape":"OptionGroupOption", - "locationName":"OptionGroupOption" - } - }, - "OptionGroupOptionsMessage":{ - "type":"structure", - "members":{ - "OptionGroupOptions":{"shape":"OptionGroupOptionsList"}, - "Marker":{"shape":"String"} - } - }, - "OptionGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupQuotaExceededFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "OptionGroups":{ - "type":"structure", - "members":{ - "OptionGroupsList":{"shape":"OptionGroupsList"}, - "Marker":{"shape":"String"} - } - }, - "OptionGroupsList":{ - "type":"list", - "member":{ - "shape":"OptionGroup", - "locationName":"OptionGroup" - } - }, - "OptionNamesList":{ - "type":"list", - "member":{"shape":"String"} - }, - "OptionSetting":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "Value":{"shape":"String"}, - "DefaultValue":{"shape":"String"}, - "Description":{"shape":"String"}, - "ApplyType":{"shape":"String"}, - "DataType":{"shape":"String"}, - "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"}, - "IsCollection":{"shape":"Boolean"} - } - }, - "OptionSettingConfigurationList":{ - "type":"list", - "member":{ - "shape":"OptionSetting", - "locationName":"OptionSetting" - } - }, - "OptionSettingsList":{ - "type":"list", - "member":{ - "shape":"OptionSetting", - "locationName":"OptionSetting" - } - }, - "OptionsDependedOn":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"OptionName" - } - }, - "OptionsList":{ - "type":"list", - "member":{ - "shape":"Option", - "locationName":"Option" - } - }, - "OrderableDBInstanceOption":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "AvailabilityZones":{"shape":"AvailabilityZoneList"}, - "MultiAZCapable":{"shape":"Boolean"}, - "ReadReplicaCapable":{"shape":"Boolean"}, - "Vpc":{"shape":"Boolean"} - }, - "wrapper":true - }, - "OrderableDBInstanceOptionsList":{ - "type":"list", - "member":{ - "shape":"OrderableDBInstanceOption", - "locationName":"OrderableDBInstanceOption" - } - }, - "OrderableDBInstanceOptionsMessage":{ - "type":"structure", - "members":{ - "OrderableDBInstanceOptions":{"shape":"OrderableDBInstanceOptionsList"}, - "Marker":{"shape":"String"} - } - }, - "Parameter":{ - "type":"structure", - "members":{ - "ParameterName":{"shape":"String"}, - "ParameterValue":{"shape":"String"}, - "Description":{"shape":"String"}, - "Source":{"shape":"String"}, - "ApplyType":{"shape":"String"}, - "DataType":{"shape":"String"}, - "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"}, - "MinimumEngineVersion":{"shape":"String"}, - "ApplyMethod":{"shape":"ApplyMethod"} - } - }, - "ParametersList":{ - "type":"list", - "member":{ - "shape":"Parameter", - "locationName":"Parameter" - } - }, - "PendingModifiedValues":{ - "type":"structure", - "members":{ - "DBInstanceClass":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "MasterUserPassword":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "DBInstanceIdentifier":{"shape":"String"} - } - }, - "PointInTimeRestoreNotEnabledFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"PointInTimeRestoreNotEnabled", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "PromoteReadReplicaMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"} - } - }, - "PromoteReadReplicaResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "ProvisionedIopsNotAvailableInAZFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ProvisionedIopsNotAvailableInAZFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "PurchaseReservedDBInstancesOfferingMessage":{ - "type":"structure", - "required":["ReservedDBInstancesOfferingId"], - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "ReservedDBInstanceId":{"shape":"String"}, - "DBInstanceCount":{"shape":"IntegerOptional"}, - "Tags":{"shape":"TagList"} - } - }, - "PurchaseReservedDBInstancesOfferingResult":{ - "type":"structure", - "members":{ - "ReservedDBInstance":{"shape":"ReservedDBInstance"} - } - }, - "ReadReplicaDBInstanceIdentifierList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ReadReplicaDBInstanceIdentifier" - } - }, - "RebootDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "ForceFailover":{"shape":"BooleanOptional"} - } - }, - "RebootDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RecurringCharge":{ - "type":"structure", - "members":{ - "RecurringChargeAmount":{"shape":"Double"}, - "RecurringChargeFrequency":{"shape":"String"} - }, - "wrapper":true - }, - "RecurringChargeList":{ - "type":"list", - "member":{ - "shape":"RecurringCharge", - "locationName":"RecurringCharge" - } - }, - "RemoveSourceIdentifierFromSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SourceIdentifier" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SourceIdentifier":{"shape":"String"} - } - }, - "RemoveSourceIdentifierFromSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "RemoveTagsFromResourceMessage":{ - "type":"structure", - "required":[ - "ResourceName", - "TagKeys" - ], - "members":{ - "ResourceName":{"shape":"String"}, - "TagKeys":{"shape":"KeyList"} - } - }, - "ReservedDBInstance":{ - "type":"structure", - "members":{ - "ReservedDBInstanceId":{"shape":"String"}, - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "StartTime":{"shape":"TStamp"}, - "Duration":{"shape":"Integer"}, - "FixedPrice":{"shape":"Double"}, - "UsagePrice":{"shape":"Double"}, - "CurrencyCode":{"shape":"String"}, - "DBInstanceCount":{"shape":"Integer"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"Boolean"}, - "State":{"shape":"String"}, - "RecurringCharges":{"shape":"RecurringChargeList"} - }, - "wrapper":true - }, - "ReservedDBInstanceAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceAlreadyExists", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstanceList":{ - "type":"list", - "member":{ - "shape":"ReservedDBInstance", - "locationName":"ReservedDBInstance" - } - }, - "ReservedDBInstanceMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReservedDBInstances":{"shape":"ReservedDBInstanceList"} - } - }, - "ReservedDBInstanceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstanceQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstancesOffering":{ - "type":"structure", - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"Integer"}, - "FixedPrice":{"shape":"Double"}, - "UsagePrice":{"shape":"Double"}, - "CurrencyCode":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"Boolean"}, - "RecurringCharges":{"shape":"RecurringChargeList"} - }, - "wrapper":true - }, - "ReservedDBInstancesOfferingList":{ - "type":"list", - "member":{ - "shape":"ReservedDBInstancesOffering", - "locationName":"ReservedDBInstancesOffering" - } - }, - "ReservedDBInstancesOfferingMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReservedDBInstancesOfferings":{"shape":"ReservedDBInstancesOfferingList"} - } - }, - "ReservedDBInstancesOfferingNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstancesOfferingNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ResetDBParameterGroupMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "ResetAllParameters":{"shape":"Boolean"}, - "Parameters":{"shape":"ParametersList"} - } - }, - "RestoreDBInstanceFromDBSnapshotMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "DBSnapshotIdentifier" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Engine":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "RestoreDBInstanceFromDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RestoreDBInstanceToPointInTimeMessage":{ - "type":"structure", - "required":[ - "SourceDBInstanceIdentifier", - "TargetDBInstanceIdentifier" - ], - "members":{ - "SourceDBInstanceIdentifier":{"shape":"String"}, - "TargetDBInstanceIdentifier":{"shape":"String"}, - "RestoreTime":{"shape":"TStamp"}, - "UseLatestRestorableTime":{"shape":"Boolean"}, - "DBInstanceClass":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Engine":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "RestoreDBInstanceToPointInTimeResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RevokeDBSecurityGroupIngressMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "CIDRIP":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "RevokeDBSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "SNSInvalidTopicFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSInvalidTopic", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SNSNoAuthorizationFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSNoAuthorization", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SNSTopicArnNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSTopicArnNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SnapshotQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SnapshotQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SourceIdsList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SourceId" - } - }, - "SourceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SourceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SourceType":{ - "type":"string", - "enum":[ - "db-instance", - "db-parameter-group", - "db-security-group", - "db-snapshot" - ] - }, - "StorageQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"StorageQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "String":{"type":"string"}, - "Subnet":{ - "type":"structure", - "members":{ - "SubnetIdentifier":{"shape":"String"}, - "SubnetAvailabilityZone":{"shape":"AvailabilityZone"}, - "SubnetStatus":{"shape":"String"} - } - }, - "SubnetAlreadyInUse":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubnetAlreadyInUse", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SubnetIdentifierList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SubnetIdentifier" - } - }, - "SubnetList":{ - "type":"list", - "member":{ - "shape":"Subnet", - "locationName":"Subnet" - } - }, - "SubscriptionAlreadyExistFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionAlreadyExist", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SubscriptionCategoryNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionCategoryNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SubscriptionNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SupportedCharacterSetsList":{ - "type":"list", - "member":{ - "shape":"CharacterSet", - "locationName":"CharacterSet" - } - }, - "TStamp":{"type":"timestamp"}, - "Tag":{ - "type":"structure", - "members":{ - "Key":{"shape":"String"}, - "Value":{"shape":"String"} - } - }, - "TagList":{ - "type":"list", - "member":{ - "shape":"Tag", - "locationName":"Tag" - } - }, - "TagListMessage":{ - "type":"structure", - "members":{ - "TagList":{"shape":"TagList"} - } - }, - "VpcSecurityGroupIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"VpcSecurityGroupId" - } - }, - "VpcSecurityGroupMembership":{ - "type":"structure", - "members":{ - "VpcSecurityGroupId":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "VpcSecurityGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"VpcSecurityGroupMembership", - "locationName":"VpcSecurityGroupMembership" - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/docs-2.json deleted file mode 100644 index f0a22a6eb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/docs-2.json +++ /dev/null @@ -1,1876 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon Relational Database Service

    Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

    Amazon RDS gives you access to the capabilities of a MySQL, PostgreSQL, Microsoft SQL Server, or Oracle database server. This means the code, applications, and tools you already use today with your existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

    This is an interface reference for Amazon RDS. It contains documentation for a programming or command line interface you can use to manage Amazon RDS. Note that Amazon RDS is asynchronous, which means that some interfaces may require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. For a summary of the Amazon RDS interfaces, go to Available RDS Interfaces.

    ", - "operations": { - "AddSourceIdentifierToSubscription": "

    Adds a source identifier to an existing RDS event notification subscription.

    ", - "AddTagsToResource": "

    Adds metadata tags to an Amazon RDS resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon RDS resources, or used in Condition statement in IAM policy for Amazon RDS.

    For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources.

    ", - "AuthorizeDBSecurityGroupIngress": "

    Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

    You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

    For an overview of CIDR ranges, go to the Wikipedia Tutorial.

    ", - "CopyDBSnapshot": "

    Copies the specified DBSnapshot. The source DBSnapshot must be in the \"available\" state.

    ", - "CreateDBInstance": "

    Creates a new DB instance.

    ", - "CreateDBInstanceReadReplica": "

    Creates a DB instance that acts as a read replica of a source DB instance.

    All read replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance, except as specified below.

    The source DB instance must have backup retention enabled.

    ", - "CreateDBParameterGroup": "

    Creates a new DB parameter group.

    A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance. When you associate a new DB parameter group with a running DB instance, you need to reboot the DB Instance for the new DB parameter group and associated settings to take effect.

    After you create a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

    ", - "CreateDBSecurityGroup": "

    Creates a new DB security group. DB security groups control access to a DB instance.

    ", - "CreateDBSnapshot": "

    Creates a DBSnapshot. The source DBInstance must be in \"available\" state.

    ", - "CreateDBSubnetGroup": "

    Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

    ", - "CreateEventSubscription": "

    Creates an RDS event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the RDS console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

    You can specify the type of source (SourceType) you want to be notified of, provide a list of RDS sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

    If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you will receive notice of the events for that source type for all your RDS sources. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all RDS sources belonging to your customer account.

    ", - "CreateOptionGroup": "

    Creates a new option group. You can create up to 20 option groups.

    ", - "DeleteDBInstance": "

    The DeleteDBInstance action deletes a previously provisioned DB instance. A successful response from the web service indicates the request was received correctly. When you delete a DB instance, all automated backups for that instance are deleted and cannot be recovered. Manual DB snapshots of the DB instance to be deleted are not deleted.

    If a final DB snapshot is requested the status of the RDS instance will be \"deleting\" until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action cannot be canceled or reverted once submitted.

    ", - "DeleteDBParameterGroup": "

    Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted.

    The specified DB parameter group cannot be associated with any DB instances. ", - "DeleteDBSecurityGroup": "

    Deletes a DB security group.

    The specified DB security group must not be associated with any DB instances.", - "DeleteDBSnapshot": "

    Deletes a DBSnapshot. If the snapshot is being copied, the copy operation is terminated.

    The DBSnapshot must be in the available state to be deleted.", - "DeleteDBSubnetGroup": "

    Deletes a DB subnet group.

    The specified database subnet group must not be associated with any DB instances.", - "DeleteEventSubscription": "

    Deletes an RDS event notification subscription.

    ", - "DeleteOptionGroup": "

    Deletes an existing option group.

    ", - "DescribeDBEngineVersions": "

    Returns a list of the available DB engines.

    ", - "DescribeDBInstances": "

    Returns information about provisioned RDS instances. This API supports pagination.

    ", - "DescribeDBLogFiles": "

    Returns a list of DB log files for the DB instance.

    ", - "DescribeDBParameterGroups": "

    Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName is specified, the list will contain only the description of the specified DB parameter group.

    ", - "DescribeDBParameters": "

    Returns the detailed parameter list for a particular DB parameter group.

    ", - "DescribeDBSecurityGroups": "

    Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DB security group.

    ", - "DescribeDBSnapshots": "

    Returns information about DB snapshots. This API supports pagination.

    ", - "DescribeDBSubnetGroups": "

    Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.

    For an overview of CIDR ranges, go to the Wikipedia Tutorial.

    ", - "DescribeEngineDefaultParameters": "

    Returns the default engine and system parameter information for the specified database engine.

    ", - "DescribeEventCategories": "

    Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

    ", - "DescribeEventSubscriptions": "

    Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

    If you specify a SubscriptionName, lists the description for that subscription.

    ", - "DescribeEvents": "

    Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB instance, DB security group, database snapshot, or DB parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

    ", - "DescribeOptionGroupOptions": "

    Describes all available options.

    ", - "DescribeOptionGroups": "

    Describes the available option groups.

    ", - "DescribeOrderableDBInstanceOptions": "

    Returns a list of orderable DB instance options for the specified engine.

    ", - "DescribeReservedDBInstances": "

    Returns information about reserved DB instances for this account, or about a specified reserved DB instance.

    ", - "DescribeReservedDBInstancesOfferings": "

    Lists available reserved DB instance offerings.

    ", - "DownloadDBLogFilePortion": "

    Downloads all or a portion of the specified log file.

    ", - "ListTagsForResource": "

    Lists all tags on an Amazon RDS resource.

    For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

    ", - "ModifyDBInstance": "

    Modify settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

    ", - "ModifyDBParameterGroup": "

    Modifies the parameters of a DB parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

    The apply-immediate method can be used only for dynamic parameters; the pending-reboot method can be used with MySQL, PostgreSQL, and Oracle DB instances for either dynamic or static parameters. For Microsoft SQL Server DB instances, the pending-reboot method can be used only for static parameters.

    After you modify a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the modify action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

    ", - "ModifyDBSubnetGroup": "

    Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

    ", - "ModifyEventSubscription": "

    Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

    You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    ", - "ModifyOptionGroup": "

    Modifies an existing option group.

    ", - "PromoteReadReplica": "

    Promotes a read replica DB instance to a standalone DB instance.

    We recommend that you enable automated backups on your read replica before promoting the read replica. This ensures that no backup is taken during the promotion process. Once the instance is promoted to a primary instance, backups are taken based on your backup settings.

    ", - "PurchaseReservedDBInstancesOffering": "

    Purchases a reserved DB instance offering.

    ", - "RebootDBInstance": "

    Rebooting a DB instance restarts the database engine service. A reboot also applies to the DB instance any modifications to the associated DB parameter group that were pending. Rebooting a DB instance results in a momentary outage of the instance, during which the DB instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. An Amazon RDS event is created when the reboot is completed.

    If your DB instance is deployed in multiple Availability Zones, you can force a failover from one AZ to the other during the reboot. You might force a failover to test the availability of your DB instance deployment or to restore operations to the original AZ after a failover occurs.

    The time required to reboot is a function of the specific database engine's crash recovery process. To improve the reboot time, we recommend that you reduce database activities as much as possible during the reboot process to reduce rollback activity for in-transit transactions.

    ", - "RemoveSourceIdentifierFromSubscription": "

    Removes a source identifier from an existing RDS event notification subscription.

    ", - "RemoveTagsFromResource": "

    Removes metadata tags from an Amazon RDS resource.

    For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

    ", - "ResetDBParameterGroup": "

    Modifies the parameters of a DB parameter group to the engine/system default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

    ", - "RestoreDBInstanceFromDBSnapshot": "

    Creates a new DB instance from a DB snapshot. The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.

    ", - "RestoreDBInstanceToPointInTime": "

    Restores a DB instance to an arbitrary point-in-time. Users can restore to any point in time before the latestRestorableTime for up to backupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.

    ", - "RevokeDBSecurityGroupIngress": "

    Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

    " - }, - "shapes": { - "AddSourceIdentifierToSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "AddSourceIdentifierToSubscriptionResult": { - "base": null, - "refs": { - } - }, - "AddTagsToResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "ApplyMethod": { - "base": null, - "refs": { - "Parameter$ApplyMethod": "

    Indicates when to apply parameter updates.

    " - } - }, - "AuthorizationAlreadyExistsFault": { - "base": "

    The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

    ", - "refs": { - } - }, - "AuthorizationNotFoundFault": { - "base": "

    Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

    RDS may not also be authorized via IAM to perform necessary actions on your behalf.

    ", - "refs": { - } - }, - "AuthorizationQuotaExceededFault": { - "base": "

    DB security group authorization quota has been reached.

    ", - "refs": { - } - }, - "AuthorizeDBSecurityGroupIngressMessage": { - "base": "

    ", - "refs": { - } - }, - "AuthorizeDBSecurityGroupIngressResult": { - "base": null, - "refs": { - } - }, - "AvailabilityZone": { - "base": "

    Contains Availability Zone information.

    This data type is used as an element in the following data type:

    ", - "refs": { - "AvailabilityZoneList$member": null, - "Subnet$SubnetAvailabilityZone": null - } - }, - "AvailabilityZoneList": { - "base": null, - "refs": { - "OrderableDBInstanceOption$AvailabilityZones": "

    A list of availability zones for the orderable DB instance.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "AvailabilityZone$ProvisionedIopsCapable": "

    True indicates the availability zone is capable of provisioned IOPs.

    ", - "DBInstance$MultiAZ": "

    Specifies if the DB instance is a Multi-AZ deployment.

    ", - "DBInstance$AutoMinorVersionUpgrade": "

    Indicates that minor version patches are applied automatically.

    ", - "DBInstance$PubliclyAccessible": "

    Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true
    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "DBInstanceStatusInfo$Normal": "

    Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

    ", - "DeleteDBInstanceMessage$SkipFinalSnapshot": "

    Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted.

    Specify true when deleting a read replica.

    The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

    Default: false

    ", - "DescribeDBEngineVersionsMessage$DefaultOnly": "

    Indicates that only the default version of the specified engine or engine and major version combination is returned.

    ", - "DownloadDBLogFilePortionDetails$AdditionalDataPending": "

    Boolean value that if true, indicates there is more data to be downloaded.

    ", - "EventSubscription$Enabled": "

    A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

    ", - "ModifyDBInstanceMessage$ApplyImmediately": "

    Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB instance.

    If this parameter is set to false, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and will be applied on the next call to RebootDBInstance, or the next failure reboot. Review the table of parameters in Modifying a DB Instance and Using the Apply Immediately Parameter to see the impact that setting ApplyImmediately to true or false has for each modified parameter and to determine when the changes will be applied.

    Default: false

    ", - "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": "

    Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.

    ", - "ModifyOptionGroupMessage$ApplyImmediately": "

    Indicates whether the changes should be applied immediately, or during the next maintenance window for each instance associated with the option group.

    ", - "Option$Persistent": "

    Indicate if this option is persistent.

    ", - "Option$Permanent": "

    Indicate if this option is permanent.

    ", - "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": "

    Indicates whether this option group can be applied to both VPC and non-VPC instances. The value 'true' indicates the option group can be applied to both VPC and non-VPC instances.

    ", - "OptionGroupOption$PortRequired": "

    Specifies whether the option requires a port.

    ", - "OptionGroupOption$Persistent": "

    A persistent option cannot be removed from the option group once the option group is used, but this option can be removed from the db instance while modifying the related data and assigning another option group without this option.

    ", - "OptionGroupOption$Permanent": "

    A permanent option cannot be removed from the option group once the option group is used, and it cannot be removed from the db instance after assigning an option group with this permanent option.

    ", - "OptionGroupOptionSetting$IsModifiable": "

    Boolean value where true indicates that this option group option can be changed from the default value.

    ", - "OptionSetting$IsModifiable": "

    A Boolean value that, when true, indicates the option setting can be modified from the default.

    ", - "OptionSetting$IsCollection": "

    Indicates if the option setting is part of a collection.

    ", - "OrderableDBInstanceOption$MultiAZCapable": "

    Indicates whether this orderable DB instance is multi-AZ capable.

    ", - "OrderableDBInstanceOption$ReadReplicaCapable": "

    Indicates whether this orderable DB instance can have a read replica.

    ", - "OrderableDBInstanceOption$Vpc": "

    Indicates whether this is a VPC orderable DB instance.

    ", - "Parameter$IsModifiable": "

    Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

    ", - "ReservedDBInstance$MultiAZ": "

    Indicates if the reservation applies to Multi-AZ deployments.

    ", - "ReservedDBInstancesOffering$MultiAZ": "

    Indicates if the offering applies to Multi-AZ deployments.

    ", - "ResetDBParameterGroupMessage$ResetAllParameters": "

    Specifies whether (true) or not (false) to reset all parameters in the DB parameter group to default values.

    Default: true

    ", - "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": "

    Specifies whether (true) or not (false) the DB instance is restored from the latest backup time.

    Default: false

    Constraints: Cannot be specified if RestoreTime parameter is provided.

    " - } - }, - "BooleanOptional": { - "base": null, - "refs": { - "CreateDBInstanceMessage$MultiAZ": "

    Specifies if the DB instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "

    Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window.

    Default: true

    ", - "CreateDBInstanceMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true
    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": "

    Indicates that minor engine upgrades will be applied automatically to the read replica during the maintenance window.

    Default: Inherits from the source DB instance

    ", - "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true
    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "CreateEventSubscriptionMessage$Enabled": "

    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

    ", - "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

    If this parameter is specified, and if the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Vpc": "

    The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

    ", - "DescribeReservedDBInstancesMessage$MultiAZ": "

    The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter.

    ", - "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": "

    The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter.

    ", - "ModifyDBInstanceMessage$MultiAZ": "

    Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Constraints: Cannot be specified if the DB instance is a read replica.

    ", - "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and RDS has enabled auto patching for that engine version.

    ", - "ModifyEventSubscriptionMessage$Enabled": "

    A Boolean value; set to true to activate the subscription.

    ", - "PendingModifiedValues$MultiAZ": "

    Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

    ", - "RebootDBInstanceMessage$ForceFailover": "

    When true, the reboot will be conducted through a MultiAZ failover.

    Constraint: You cannot specify true if the instance is not configured for MultiAZ.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": "

    Specifies if the DB instance is a Multi-AZ deployment.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true
    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window.

    ", - "RestoreDBInstanceToPointInTimeMessage$MultiAZ": "

    Specifies if the DB instance is a Multi-AZ deployment.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true
    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window.

    " - } - }, - "CharacterSet": { - "base": "

    This data type is used as a response element in the action DescribeDBEngineVersions.

    ", - "refs": { - "DBEngineVersion$DefaultCharacterSet": "

    The default character set for new instances of this engine version, if the CharacterSetName parameter of the CreateDBInstance API is not specified.

    ", - "SupportedCharacterSetsList$member": null - } - }, - "CopyDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "CopyDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBInstanceReadReplicaMessage": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceReadReplicaResult": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceResult": { - "base": null, - "refs": { - } - }, - "CreateDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBParameterGroupResult": { - "base": null, - "refs": { - } - }, - "CreateDBSecurityGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSecurityGroupResult": { - "base": null, - "refs": { - } - }, - "CreateDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "CreateDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSubnetGroupResult": { - "base": null, - "refs": { - } - }, - "CreateEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "CreateOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateOptionGroupResult": { - "base": null, - "refs": { - } - }, - "DBEngineVersion": { - "base": "

    This data type is used as a response element in the action DescribeDBEngineVersions.

    ", - "refs": { - "DBEngineVersionList$member": null - } - }, - "DBEngineVersionList": { - "base": null, - "refs": { - "DBEngineVersionMessage$DBEngineVersions": "

    A list of DBEngineVersion elements.

    " - } - }, - "DBEngineVersionMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBEngineVersions action.

    ", - "refs": { - } - }, - "DBInstance": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBInstances action.

    ", - "refs": { - "CreateDBInstanceReadReplicaResult$DBInstance": null, - "CreateDBInstanceResult$DBInstance": null, - "DBInstanceList$member": null, - "DeleteDBInstanceResult$DBInstance": null, - "ModifyDBInstanceResult$DBInstance": null, - "PromoteReadReplicaResult$DBInstance": null, - "RebootDBInstanceResult$DBInstance": null, - "RestoreDBInstanceFromDBSnapshotResult$DBInstance": null, - "RestoreDBInstanceToPointInTimeResult$DBInstance": null - } - }, - "DBInstanceAlreadyExistsFault": { - "base": "

    User already has a DB instance with the given identifier.

    ", - "refs": { - } - }, - "DBInstanceList": { - "base": null, - "refs": { - "DBInstanceMessage$DBInstances": "

    A list of DBInstance instances.

    " - } - }, - "DBInstanceMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBInstances action.

    ", - "refs": { - } - }, - "DBInstanceNotFoundFault": { - "base": "

    DBInstanceIdentifier does not refer to an existing DB instance.

    ", - "refs": { - } - }, - "DBInstanceStatusInfo": { - "base": "

    Provides a list of status information for a DB instance.

    ", - "refs": { - "DBInstanceStatusInfoList$member": null - } - }, - "DBInstanceStatusInfoList": { - "base": null, - "refs": { - "DBInstance$StatusInfos": "

    The status of a read replica. If the instance is not a read replica, this will be blank.

    " - } - }, - "DBLogFileNotFoundFault": { - "base": "

    LogFileName does not refer to an existing DB log file.

    ", - "refs": { - } - }, - "DBParameterGroup": { - "base": "

    Contains the result of a successful invocation of the CreateDBParameterGroup action.

    This data type is used as a request parameter in the DeleteDBParameterGroup action, and as a response element in the DescribeDBParameterGroups action.

    ", - "refs": { - "CreateDBParameterGroupResult$DBParameterGroup": null, - "DBParameterGroupList$member": null - } - }, - "DBParameterGroupAlreadyExistsFault": { - "base": "

    A DB parameter group with the same name exists.

    ", - "refs": { - } - }, - "DBParameterGroupDetails": { - "base": "

    Contains the result of a successful invocation of the DescribeDBParameters action.

    ", - "refs": { - } - }, - "DBParameterGroupList": { - "base": null, - "refs": { - "DBParameterGroupsMessage$DBParameterGroups": "

    A list of DBParameterGroup instances.

    " - } - }, - "DBParameterGroupNameMessage": { - "base": "

    Contains the result of a successful invocation of the ModifyDBParameterGroup or ResetDBParameterGroup action.

    ", - "refs": { - } - }, - "DBParameterGroupNotFoundFault": { - "base": "

    DBParameterGroupName does not refer to an existing DB parameter group.

    ", - "refs": { - } - }, - "DBParameterGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB parameter groups.

    ", - "refs": { - } - }, - "DBParameterGroupStatus": { - "base": "

    The status of the DB parameter group.

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBParameterGroupStatusList$member": null - } - }, - "DBParameterGroupStatusList": { - "base": null, - "refs": { - "DBInstance$DBParameterGroups": "

    Provides the list of DB parameter groups applied to this DB instance.

    " - } - }, - "DBParameterGroupsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBParameterGroups action.

    ", - "refs": { - } - }, - "DBSecurityGroup": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSecurityGroups action.

    ", - "refs": { - "AuthorizeDBSecurityGroupIngressResult$DBSecurityGroup": null, - "CreateDBSecurityGroupResult$DBSecurityGroup": null, - "DBSecurityGroups$member": null, - "RevokeDBSecurityGroupIngressResult$DBSecurityGroup": null - } - }, - "DBSecurityGroupAlreadyExistsFault": { - "base": "

    A DB security group with the name specified in DBSecurityGroupName already exists.

    ", - "refs": { - } - }, - "DBSecurityGroupMembership": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBSecurityGroupMembershipList$member": null - } - }, - "DBSecurityGroupMembershipList": { - "base": null, - "refs": { - "DBInstance$DBSecurityGroups": "

    Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

    ", - "Option$DBSecurityGroupMemberships": "

    If the option requires access to a port, then this DB security group allows access to the port.

    " - } - }, - "DBSecurityGroupMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSecurityGroups action.

    ", - "refs": { - } - }, - "DBSecurityGroupNameList": { - "base": null, - "refs": { - "CreateDBInstanceMessage$DBSecurityGroups": "

    A list of DB security groups to associate with this DB instance.

    Default: The default DB security group for the database engine.

    ", - "ModifyDBInstanceMessage$DBSecurityGroups": "

    A list of DB security groups to authorize on this DB instance. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "OptionConfiguration$DBSecurityGroupMemberships": "

    A list of DBSecurityGroupMemebrship name strings used for this option.

    " - } - }, - "DBSecurityGroupNotFoundFault": { - "base": "

    DBSecurityGroupName does not refer to an existing DB security group.

    ", - "refs": { - } - }, - "DBSecurityGroupNotSupportedFault": { - "base": "

    A DB security group is not allowed for this action.

    ", - "refs": { - } - }, - "DBSecurityGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB security groups.

    ", - "refs": { - } - }, - "DBSecurityGroups": { - "base": null, - "refs": { - "DBSecurityGroupMessage$DBSecurityGroups": "

    A list of DBSecurityGroup instances.

    " - } - }, - "DBSnapshot": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSnapshots action.

    ", - "refs": { - "CopyDBSnapshotResult$DBSnapshot": null, - "CreateDBSnapshotResult$DBSnapshot": null, - "DBSnapshotList$member": null, - "DeleteDBSnapshotResult$DBSnapshot": null - } - }, - "DBSnapshotAlreadyExistsFault": { - "base": "

    DBSnapshotIdentifier is already used by an existing snapshot.

    ", - "refs": { - } - }, - "DBSnapshotList": { - "base": null, - "refs": { - "DBSnapshotMessage$DBSnapshots": "

    A list of DBSnapshot instances.

    " - } - }, - "DBSnapshotMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSnapshots action.

    ", - "refs": { - } - }, - "DBSnapshotNotFoundFault": { - "base": "

    DBSnapshotIdentifier does not refer to an existing DB snapshot.

    ", - "refs": { - } - }, - "DBSubnetGroup": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSubnetGroups action.

    ", - "refs": { - "CreateDBSubnetGroupResult$DBSubnetGroup": null, - "DBInstance$DBSubnetGroup": "

    Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

    ", - "DBSubnetGroups$member": null, - "ModifyDBSubnetGroupResult$DBSubnetGroup": null - } - }, - "DBSubnetGroupAlreadyExistsFault": { - "base": "

    DBSubnetGroupName is already used by an existing DB subnet group.

    ", - "refs": { - } - }, - "DBSubnetGroupDoesNotCoverEnoughAZs": { - "base": "

    Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

    ", - "refs": { - } - }, - "DBSubnetGroupMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSubnetGroups action.

    ", - "refs": { - } - }, - "DBSubnetGroupNotAllowedFault": { - "base": "

    Indicates that the DBSubnetGroup should not be specified while creating read replicas that lie in the same region as the source instance.

    ", - "refs": { - } - }, - "DBSubnetGroupNotFoundFault": { - "base": "

    DBSubnetGroupName does not refer to an existing DB subnet group.

    ", - "refs": { - } - }, - "DBSubnetGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB subnet groups.

    ", - "refs": { - } - }, - "DBSubnetGroups": { - "base": null, - "refs": { - "DBSubnetGroupMessage$DBSubnetGroups": "

    A list of DBSubnetGroup instances.

    " - } - }, - "DBSubnetQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

    ", - "refs": { - } - }, - "DBUpgradeDependencyFailureFault": { - "base": "

    The DB upgrade failed because a resource the DB depends on could not be modified.

    ", - "refs": { - } - }, - "DeleteDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBInstanceResult": { - "base": null, - "refs": { - } - }, - "DeleteDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSecurityGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "DeleteDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "DeleteOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBEngineVersionsMessage": { - "base": null, - "refs": { - } - }, - "DescribeDBInstancesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBLogFilesDetails": { - "base": "

    This data type is used as a response element to DescribeDBLogFiles.

    ", - "refs": { - "DescribeDBLogFilesList$member": null - } - }, - "DescribeDBLogFilesList": { - "base": null, - "refs": { - "DescribeDBLogFilesResponse$DescribeDBLogFiles": "

    The DB log files returned.

    " - } - }, - "DescribeDBLogFilesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBLogFilesResponse": { - "base": "

    The response from a call to DescribeDBLogFiles.

    ", - "refs": { - } - }, - "DescribeDBParameterGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBParametersMessage": { - "base": null, - "refs": { - } - }, - "DescribeDBSecurityGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBSnapshotsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBSubnetGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEngineDefaultParametersMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEngineDefaultParametersResult": { - "base": null, - "refs": { - } - }, - "DescribeEventCategoriesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEventSubscriptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEventsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOptionGroupOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOptionGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeReservedDBInstancesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeReservedDBInstancesOfferingsMessage": { - "base": "

    ", - "refs": { - } - }, - "Double": { - "base": null, - "refs": { - "RecurringCharge$RecurringChargeAmount": "

    The amount of the recurring charge.

    ", - "ReservedDBInstance$FixedPrice": "

    The fixed price charged for this reserved DB instance.

    ", - "ReservedDBInstance$UsagePrice": "

    The hourly price charged for this reserved DB instance.

    ", - "ReservedDBInstancesOffering$FixedPrice": "

    The fixed price charged for this offering.

    ", - "ReservedDBInstancesOffering$UsagePrice": "

    The hourly price charged for this offering.

    " - } - }, - "DownloadDBLogFilePortionDetails": { - "base": "

    This data type is used as a response element to DownloadDBLogFilePortion.

    ", - "refs": { - } - }, - "DownloadDBLogFilePortionMessage": { - "base": "

    ", - "refs": { - } - }, - "EC2SecurityGroup": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "EC2SecurityGroupList$member": null - } - }, - "EC2SecurityGroupList": { - "base": null, - "refs": { - "DBSecurityGroup$EC2SecurityGroups": "

    Contains a list of EC2SecurityGroup elements.

    " - } - }, - "Endpoint": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBInstance$Endpoint": "

    Specifies the connection endpoint.

    " - } - }, - "EngineDefaults": { - "base": "

    Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

    ", - "refs": { - "DescribeEngineDefaultParametersResult$EngineDefaults": null - } - }, - "Event": { - "base": "

    This data type is used as a response element in the DescribeEvents action.

    ", - "refs": { - "EventList$member": null - } - }, - "EventCategoriesList": { - "base": null, - "refs": { - "CreateEventSubscriptionMessage$EventCategories": "

    A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    ", - "DescribeEventsMessage$EventCategories": "

    A list of event categories that trigger notifications for a event notification subscription.

    ", - "Event$EventCategories": "

    Specifies the category for the event.

    ", - "EventCategoriesMap$EventCategories": "

    The event categories for the specified source type

    ", - "EventSubscription$EventCategoriesList": "

    A list of event categories for the RDS event notification subscription.

    ", - "ModifyEventSubscriptionMessage$EventCategories": "

    A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    " - } - }, - "EventCategoriesMap": { - "base": "

    Contains the results of a successful invocation of the DescribeEventCategories action.

    ", - "refs": { - "EventCategoriesMapList$member": null - } - }, - "EventCategoriesMapList": { - "base": null, - "refs": { - "EventCategoriesMessage$EventCategoriesMapList": "

    A list of EventCategoriesMap data types.

    " - } - }, - "EventCategoriesMessage": { - "base": "

    Data returned from the DescribeEventCategories action.

    ", - "refs": { - } - }, - "EventList": { - "base": null, - "refs": { - "EventsMessage$Events": "

    A list of Event instances.

    " - } - }, - "EventSubscription": { - "base": "

    Contains the results of a successful invocation of the DescribeEventSubscriptions action.

    ", - "refs": { - "AddSourceIdentifierToSubscriptionResult$EventSubscription": null, - "CreateEventSubscriptionResult$EventSubscription": null, - "DeleteEventSubscriptionResult$EventSubscription": null, - "EventSubscriptionsList$member": null, - "ModifyEventSubscriptionResult$EventSubscription": null, - "RemoveSourceIdentifierFromSubscriptionResult$EventSubscription": null - } - }, - "EventSubscriptionQuotaExceededFault": { - "base": "

    You have reached the maximum number of event subscriptions.

    ", - "refs": { - } - }, - "EventSubscriptionsList": { - "base": null, - "refs": { - "EventSubscriptionsMessage$EventSubscriptionsList": "

    A list of EventSubscriptions data types.

    " - } - }, - "EventSubscriptionsMessage": { - "base": "

    Data returned by the DescribeEventSubscriptions action.

    ", - "refs": { - } - }, - "EventsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeEvents action.

    ", - "refs": { - } - }, - "Filter": { - "base": null, - "refs": { - "FilterList$member": null - } - }, - "FilterList": { - "base": null, - "refs": { - "DescribeDBEngineVersionsMessage$Filters": "

    Not currently supported.

    ", - "DescribeDBInstancesMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBLogFilesMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBParameterGroupsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBParametersMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBSecurityGroupsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBSnapshotsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBSubnetGroupsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeEngineDefaultParametersMessage$Filters": "

    Not currently supported.

    ", - "DescribeEventCategoriesMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeEventSubscriptionsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeEventsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeOptionGroupOptionsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeOptionGroupsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeReservedDBInstancesMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeReservedDBInstancesOfferingsMessage$Filters": "

    This parameter is not currently supported.

    ", - "ListTagsForResourceMessage$Filters": "

    This parameter is not currently supported.

    " - } - }, - "FilterValueList": { - "base": null, - "refs": { - "Filter$Values": "

    This parameter is not currently supported.

    " - } - }, - "IPRange": { - "base": "

    This data type is used as a response element in the DescribeDBSecurityGroups action.

    ", - "refs": { - "IPRangeList$member": null - } - }, - "IPRangeList": { - "base": null, - "refs": { - "DBSecurityGroup$IPRanges": "

    Contains a list of IPRange elements.

    " - } - }, - "InstanceQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB instances.

    ", - "refs": { - } - }, - "InsufficientDBInstanceCapacityFault": { - "base": "

    Specified DB instance class is not available in the specified Availability Zone.

    ", - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "DBInstance$AllocatedStorage": "

    Specifies the allocated storage size specified in gigabytes.

    ", - "DBInstance$BackupRetentionPeriod": "

    Specifies the number of days for which automatic DB snapshots are retained.

    ", - "DBSnapshot$AllocatedStorage": "

    Specifies the allocated storage size in gigabytes (GB).

    ", - "DBSnapshot$Port": "

    Specifies the port that the database engine was listening on at the time of the snapshot.

    ", - "DBSnapshot$PercentProgress": "

    The percentage of the estimated data that has been transferred.

    ", - "DownloadDBLogFilePortionMessage$NumberOfLines": "

    The number of lines to download.

    If the NumberOfLines parameter is specified, then the block of lines returned can be from the beginning or the end of the log file, depending on the value of the Marker parameter.

    • If neither Marker or NumberOfLines are specified, the entire log file is returned.

    • If NumberOfLines is specified and Marker is not specified, then the most recent lines from the end of the log file are returned.

    • If Marker is specified as \"0\", then the specified number of lines from the beginning of the log file are returned.

    • You can download the log file in blocks of lines by specifying the size of the block using the NumberOfLines parameter, and by specifying a value of \"0\" for the Marker parameter in your first request. Include the Marker value returned in the response as the Marker value for the next request, continuing until the AdditionalDataPending response element returns false.

    ", - "Endpoint$Port": "

    Specifies the port that the database engine is listening on.

    ", - "ReservedDBInstance$Duration": "

    The duration of the reservation in seconds.

    ", - "ReservedDBInstance$DBInstanceCount": "

    The number of reserved DB instances.

    ", - "ReservedDBInstancesOffering$Duration": "

    The duration of the offering in seconds.

    " - } - }, - "IntegerOptional": { - "base": null, - "refs": { - "CreateDBInstanceMessage$AllocatedStorage": "

    The amount of storage (in gigabytes) to be initially allocated for the database instance.

    Type: Integer

    MySQL

    Constraints: Must be an integer from 5 to 3072.

    PostgreSQL

    Constraints: Must be an integer from 5 to 3072.

    Oracle

    Constraints: Must be an integer from 10 to 3072.

    SQL Server

    Constraints: Must be an integer from 200 to 1024 (Standard Edition and Enterprise Edition) or from 30 to 1024 (Express Edition and Web Edition)

    ", - "CreateDBInstanceMessage$BackupRetentionPeriod": "

    The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Default: 1

    Constraints:

    • Must be a value from 0 to 35
    • Cannot be set to 0 if the DB instance is a source to read replicas
    ", - "CreateDBInstanceMessage$Port": "

    The port number on which the database accepts connections.

    MySQL

    Default: 3306

    Valid Values: 1150-65535

    Type: Integer

    PostgreSQL

    Default: 5432

    Valid Values: 1150-65535

    Type: Integer

    Oracle

    Default: 1521

    Valid Values: 1150-65535

    SQL Server

    Default: 1433

    Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through 49156.

    ", - "CreateDBInstanceMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

    Constraints: To use PIOPS, this value must be an integer greater than 1000.

    ", - "CreateDBInstanceReadReplicaMessage$Port": "

    The port number that the DB instance uses for connections.

    Default: Inherits from the source DB instance

    Valid Values: 1150-65535

    ", - "CreateDBInstanceReadReplicaMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

    ", - "DBInstance$Iops": "

    Specifies the Provisioned IOPS (I/O operations per second) value.

    ", - "DBSnapshot$Iops": "

    Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

    ", - "DescribeDBEngineVersionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBInstancesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBLogFilesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    ", - "DescribeDBParameterGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBParametersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBSecurityGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBSnapshotsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeDBSubnetGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeEngineDefaultParametersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeEventSubscriptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeEventsMessage$Duration": "

    The number of minutes to retrieve events for.

    Default: 60

    ", - "DescribeEventsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results may be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeOptionGroupOptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeOptionGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeReservedDBInstancesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: minimum 20, maximum 100

    ", - "ModifyDBInstanceMessage$AllocatedStorage": "

    The new storage capacity of the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    MySQL

    Default: Uses existing setting

    Valid Values: 5-3072

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    Type: Integer

    PostgreSQL

    Default: Uses existing setting

    Valid Values: 5-3072

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    Type: Integer

    Oracle

    Default: Uses existing setting

    Valid Values: 10-3072

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    SQL Server

    Cannot be modified.

    If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

    ", - "ModifyDBInstanceMessage$BackupRetentionPeriod": "

    The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Changing this parameter can result in an outage if you change from 0 to a non-zero value or from a non-zero value to 0. These changes are applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.

    Default: Uses existing setting

    Constraints:

    • Must be a value from 0 to 35
    • Can be specified for a read replica only if the source is running MySQL 5.6
    • Cannot be set to 0 if the DB instance is a source to read replicas
    ", - "ModifyDBInstanceMessage$Iops": "

    The new Provisioned IOPS (I/O operations per second) value for the RDS instance. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Default: Uses existing setting

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value. If you are migrating from Provisioned IOPS to standard storage, set this value to 0.

    SQL Server

    Setting the IOPS value for the SQL Server database engine is not supported.

    Type: Integer

    If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but may experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.

    ", - "Option$Port": "

    If required, the port configured for this option to use.

    ", - "OptionConfiguration$Port": "

    The optional port for the option.

    ", - "OptionGroupOption$DefaultPort": "

    If the option requires a port, specifies the default port for the option.

    ", - "PendingModifiedValues$AllocatedStorage": "

    Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.

    ", - "PendingModifiedValues$Port": "

    Specifies the pending port for the DB instance.

    ", - "PendingModifiedValues$BackupRetentionPeriod": "

    Specifies the pending number of days for which automated backups are retained.

    ", - "PendingModifiedValues$Iops": "

    Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.

    ", - "PromoteReadReplicaMessage$BackupRetentionPeriod": "

    The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Default: 1

    Constraints:

    • Must be a value from 0 to 8
    ", - "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": "

    The number of instances to reserve.

    Default: 1

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Port": "

    The port number on which the database accepts connections.

    Default: The same port as the original DB instance

    Constraints: Value must be 1150-65535

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Iops": "

    Specifies the amount of provisioned IOPS for the DB instance, expressed in I/O operations per second. If this parameter is not specified, the IOPS value will be taken from the backup. If this parameter is set to 0, the new instance will be converted to a non-PIOPS instance, which will take additional time, though your DB instance will be available for connections before the conversion starts.

    Constraints: Must be an integer greater than 1000.

    SQL Server

    Setting the IOPS value for the SQL Server database engine is not supported.

    ", - "RestoreDBInstanceToPointInTimeMessage$Port": "

    The port number on which the database accepts connections.

    Constraints: Value must be 1150-65535

    Default: The same port as the original DB instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

    Constraints: Must be an integer greater than 1000.

    SQL Server

    Setting the IOPS value for the SQL Server database engine is not supported.

    " - } - }, - "InvalidDBInstanceStateFault": { - "base": "

    The specified DB instance is not in the available state.

    ", - "refs": { - } - }, - "InvalidDBParameterGroupStateFault": { - "base": "

    The DB parameter group cannot be deleted because it is in use.

    ", - "refs": { - } - }, - "InvalidDBSecurityGroupStateFault": { - "base": "

    The state of the DB security group does not allow deletion.

    ", - "refs": { - } - }, - "InvalidDBSnapshotStateFault": { - "base": "

    The state of the DB snapshot does not allow deletion.

    ", - "refs": { - } - }, - "InvalidDBSubnetGroupFault": { - "base": "

    Indicates the DBSubnetGroup does not belong to the same VPC as that of an existing cross region read replica of the same source instance.

    ", - "refs": { - } - }, - "InvalidDBSubnetGroupStateFault": { - "base": "

    The DB subnet group cannot be deleted because it is in use.

    ", - "refs": { - } - }, - "InvalidDBSubnetStateFault": { - "base": "

    The DB subnet is not in the available state.

    ", - "refs": { - } - }, - "InvalidEventSubscriptionStateFault": { - "base": "

    This error can occur if someone else is modifying a subscription. You should retry the action.

    ", - "refs": { - } - }, - "InvalidOptionGroupStateFault": { - "base": "

    The option group is not in the available state.

    ", - "refs": { - } - }, - "InvalidRestoreFault": { - "base": "

    Cannot restore from vpc backup to non-vpc DB instance.

    ", - "refs": { - } - }, - "InvalidSubnet": { - "base": "

    The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

    ", - "refs": { - } - }, - "InvalidVPCNetworkStateFault": { - "base": "

    DB subnet group does not cover all Availability Zones after it is created because users' change.

    ", - "refs": { - } - }, - "KeyList": { - "base": null, - "refs": { - "RemoveTagsFromResourceMessage$TagKeys": "

    The tag key (name) of the tag to be removed.

    " - } - }, - "ListTagsForResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "Long": { - "base": null, - "refs": { - "DescribeDBLogFilesDetails$LastWritten": "

    A POSIX timestamp when the last log entry was written.

    ", - "DescribeDBLogFilesDetails$Size": "

    The size, in bytes, of the log file for the specified DB instance.

    ", - "DescribeDBLogFilesMessage$FileLastWritten": "

    Filters the available log files for files written since the specified date, in POSIX timestamp format.

    ", - "DescribeDBLogFilesMessage$FileSize": "

    Filters the available log files for files larger than the specified size.

    " - } - }, - "ModifyDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBInstanceResult": { - "base": null, - "refs": { - } - }, - "ModifyDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBSubnetGroupResult": { - "base": null, - "refs": { - } - }, - "ModifyEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "ModifyOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyOptionGroupResult": { - "base": null, - "refs": { - } - }, - "Option": { - "base": "

    Option details.

    ", - "refs": { - "OptionsList$member": null - } - }, - "OptionConfiguration": { - "base": "

    A list of all available options

    ", - "refs": { - "OptionConfigurationList$member": null - } - }, - "OptionConfigurationList": { - "base": null, - "refs": { - "ModifyOptionGroupMessage$OptionsToInclude": "

    Options in this list are added to the option group or, if already present, the specified configuration is used to update the existing configuration.

    " - } - }, - "OptionGroup": { - "base": "

    ", - "refs": { - "CreateOptionGroupResult$OptionGroup": null, - "ModifyOptionGroupResult$OptionGroup": null, - "OptionGroupsList$member": null - } - }, - "OptionGroupAlreadyExistsFault": { - "base": "

    The option group you are trying to create already exists.

    ", - "refs": { - } - }, - "OptionGroupMembership": { - "base": "

    Provides information on the option groups the DB instance is a member of.

    ", - "refs": { - "OptionGroupMembershipList$member": null - } - }, - "OptionGroupMembershipList": { - "base": null, - "refs": { - "DBInstance$OptionGroupMemberships": "

    Provides the list of option group memberships for this DB instance.

    " - } - }, - "OptionGroupNotFoundFault": { - "base": "

    The specified option group could not be found.

    ", - "refs": { - } - }, - "OptionGroupOption": { - "base": "

    Available option.

    ", - "refs": { - "OptionGroupOptionsList$member": null - } - }, - "OptionGroupOptionSetting": { - "base": "

    option group option settings are used to display settings available for each option with their default values and other information. These values are used with the DescribeOptionGroupOptions action.

    ", - "refs": { - "OptionGroupOptionSettingsList$member": null - } - }, - "OptionGroupOptionSettingsList": { - "base": null, - "refs": { - "OptionGroupOption$OptionGroupOptionSettings": "

    Specifies the option settings that are available (and the default value) for each option in an option group.

    " - } - }, - "OptionGroupOptionsList": { - "base": "

    List of available option group options.

    ", - "refs": { - "OptionGroupOptionsMessage$OptionGroupOptions": null - } - }, - "OptionGroupOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "OptionGroupQuotaExceededFault": { - "base": "

    The quota of 20 option groups was exceeded for this AWS account.

    ", - "refs": { - } - }, - "OptionGroups": { - "base": "

    List of option groups.

    ", - "refs": { - } - }, - "OptionGroupsList": { - "base": null, - "refs": { - "OptionGroups$OptionGroupsList": "

    List of option groups.

    " - } - }, - "OptionNamesList": { - "base": null, - "refs": { - "ModifyOptionGroupMessage$OptionsToRemove": "

    Options in this list are removed from the option group.

    " - } - }, - "OptionSetting": { - "base": "

    Option settings are the actual settings being applied or configured for that option. It is used when you modify an option group or describe option groups. For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER that can have several different values.

    ", - "refs": { - "OptionSettingConfigurationList$member": null, - "OptionSettingsList$member": null - } - }, - "OptionSettingConfigurationList": { - "base": null, - "refs": { - "Option$OptionSettings": "

    The option settings for this option.

    " - } - }, - "OptionSettingsList": { - "base": null, - "refs": { - "OptionConfiguration$OptionSettings": "

    The option settings to include in an option group.

    " - } - }, - "OptionsDependedOn": { - "base": null, - "refs": { - "OptionGroupOption$OptionsDependedOn": "

    List of all options that are prerequisites for this option.

    " - } - }, - "OptionsList": { - "base": null, - "refs": { - "OptionGroup$Options": "

    Indicates what options are available in the option group.

    " - } - }, - "OrderableDBInstanceOption": { - "base": "

    Contains a list of available options for a DB instance

    This data type is used as a response element in the DescribeOrderableDBInstanceOptions action.

    ", - "refs": { - "OrderableDBInstanceOptionsList$member": null - } - }, - "OrderableDBInstanceOptionsList": { - "base": null, - "refs": { - "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": "

    An OrderableDBInstanceOption structure containing information about orderable options for the DB instance.

    " - } - }, - "OrderableDBInstanceOptionsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions action.

    ", - "refs": { - } - }, - "Parameter": { - "base": "

    This data type is used as a request parameter in the ModifyDBParameterGroup and ResetDBParameterGroup actions.

    This data type is used as a response element in the DescribeEngineDefaultParameters and DescribeDBParameters actions.

    ", - "refs": { - "ParametersList$member": null - } - }, - "ParametersList": { - "base": null, - "refs": { - "DBParameterGroupDetails$Parameters": "

    A list of Parameter values.

    ", - "EngineDefaults$Parameters": "

    Contains a list of engine default parameters.

    ", - "ModifyDBParameterGroupMessage$Parameters": "

    An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

    Valid Values (for the application method): immediate | pending-reboot

    You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB instance reboots. ", - "ResetDBParameterGroupMessage$Parameters": "

    An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

    MySQL

    Valid Values (for Apply method): immediate | pending-reboot

    You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB instance reboots.

    Oracle

    Valid Values (for Apply method): pending-reboot

    " - } - }, - "PendingModifiedValues": { - "base": "

    This data type is used as a response element in the ModifyDBInstance action.

    ", - "refs": { - "DBInstance$PendingModifiedValues": "

    Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

    " - } - }, - "PointInTimeRestoreNotEnabledFault": { - "base": "

    SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod equal to 0.

    ", - "refs": { - } - }, - "PromoteReadReplicaMessage": { - "base": "

    ", - "refs": { - } - }, - "PromoteReadReplicaResult": { - "base": null, - "refs": { - } - }, - "ProvisionedIopsNotAvailableInAZFault": { - "base": "

    Provisioned IOPS not available in the specified Availability Zone.

    ", - "refs": { - } - }, - "PurchaseReservedDBInstancesOfferingMessage": { - "base": "

    ", - "refs": { - } - }, - "PurchaseReservedDBInstancesOfferingResult": { - "base": null, - "refs": { - } - }, - "ReadReplicaDBInstanceIdentifierList": { - "base": null, - "refs": { - "DBInstance$ReadReplicaDBInstanceIdentifiers": "

    Contains one or more identifiers of the read replicas associated with this DB instance.

    " - } - }, - "RebootDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "RebootDBInstanceResult": { - "base": null, - "refs": { - } - }, - "RecurringCharge": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstances and DescribeReservedDBInstancesOfferings actions.

    ", - "refs": { - "RecurringChargeList$member": null - } - }, - "RecurringChargeList": { - "base": null, - "refs": { - "ReservedDBInstance$RecurringCharges": "

    The recurring price charged to run this reserved DB instance.

    ", - "ReservedDBInstancesOffering$RecurringCharges": "

    The recurring price charged to run this reserved DB instance.

    " - } - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "base": null, - "refs": { - } - }, - "RemoveTagsFromResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "ReservedDBInstance": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.

    ", - "refs": { - "PurchaseReservedDBInstancesOfferingResult$ReservedDBInstance": null, - "ReservedDBInstanceList$member": null - } - }, - "ReservedDBInstanceAlreadyExistsFault": { - "base": "

    User already has a reservation with the given identifier.

    ", - "refs": { - } - }, - "ReservedDBInstanceList": { - "base": null, - "refs": { - "ReservedDBInstanceMessage$ReservedDBInstances": "

    A list of reserved DB instances.

    " - } - }, - "ReservedDBInstanceMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeReservedDBInstances action.

    ", - "refs": { - } - }, - "ReservedDBInstanceNotFoundFault": { - "base": "

    The specified reserved DB Instance not found.

    ", - "refs": { - } - }, - "ReservedDBInstanceQuotaExceededFault": { - "base": "

    Request would exceed the user's DB Instance quota.

    ", - "refs": { - } - }, - "ReservedDBInstancesOffering": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstancesOfferings action.

    ", - "refs": { - "ReservedDBInstancesOfferingList$member": null - } - }, - "ReservedDBInstancesOfferingList": { - "base": null, - "refs": { - "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": "

    A list of reserved DB instance offerings.

    " - } - }, - "ReservedDBInstancesOfferingMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings action.

    ", - "refs": { - } - }, - "ReservedDBInstancesOfferingNotFoundFault": { - "base": "

    Specified offering does not exist.

    ", - "refs": { - } - }, - "ResetDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceFromDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceFromDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "RestoreDBInstanceToPointInTimeMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceToPointInTimeResult": { - "base": null, - "refs": { - } - }, - "RevokeDBSecurityGroupIngressMessage": { - "base": "

    ", - "refs": { - } - }, - "RevokeDBSecurityGroupIngressResult": { - "base": null, - "refs": { - } - }, - "SNSInvalidTopicFault": { - "base": "

    SNS has responded that there is a problem with the SND topic specified.

    ", - "refs": { - } - }, - "SNSNoAuthorizationFault": { - "base": "

    You do not have permission to publish to the SNS topic ARN.

    ", - "refs": { - } - }, - "SNSTopicArnNotFoundFault": { - "base": "

    The SNS topic ARN does not exist.

    ", - "refs": { - } - }, - "SnapshotQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB snapshots.

    ", - "refs": { - } - }, - "SourceIdsList": { - "base": null, - "refs": { - "CreateEventSubscriptionMessage$SourceIds": "

    The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

    Constraints:

    • If SourceIds are supplied, SourceType must also be provided.
    • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
    • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
    • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
    • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
    ", - "EventSubscription$SourceIdsList": "

    A list of source Ids for the RDS event notification subscription.

    " - } - }, - "SourceNotFoundFault": { - "base": "

    The requested source could not be found.

    ", - "refs": { - } - }, - "SourceType": { - "base": null, - "refs": { - "DescribeEventsMessage$SourceType": "

    The event source to retrieve events for. If no value is specified, all events are returned.

    ", - "Event$SourceType": "

    Specifies the source type for this event.

    " - } - }, - "StorageQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed amount of storage available across all DB instances.

    ", - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to add a source identifier to.

    ", - "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": "

    The identifier of the event source to be added. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

    Constraints:

    • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.
    • If the source type is a DB security group, a DBSecurityGroupName must be supplied.
    • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.
    • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
    ", - "AddTagsToResourceMessage$ResourceName": "

    The Amazon RDS resource the tags will be added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    ", - "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

    The name of the DB security group to add authorization to.

    ", - "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": "

    The IP range to authorize.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

    Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

    Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

    AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AvailabilityZone$Name": "

    The name of the availability zone.

    ", - "CharacterSet$CharacterSetName": "

    The name of the character set.

    ", - "CharacterSet$CharacterSetDescription": "

    The description of the character set.

    ", - "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

    The identifier for the source DB snapshot.

    Constraints:

    • Must specify a valid system snapshot in the \"available\" state.
    • If the source snapshot is in the same region as the copy, specify a valid DB snapshot identifier.
    • If the source snapshot is in a different region than the copy, specify a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot.

    Example: rds:mydb-2012-04-02-00-01

    Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805

    ", - "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

    The identifier for the copied snapshot.

    Constraints:

    • Cannot be null, empty, or blank
    • Must contain from 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-db-snapshot

    ", - "CreateDBInstanceMessage$DBName": "

    The meaning of this parameter differs according to the database engine you use.

    Type: String

    MySQL

    The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

    Constraints:

    • Must contain 1 to 64 alphanumeric characters
    • Cannot be a word reserved by the specified database engine

    PostgreSQL

    The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

    Constraints:

    • Must contain 1 to 63 alphanumeric characters
    • Must begin with a letter or an underscore. Subsequent characters can be letters, underscores, or digits (0-9).
    • Cannot be a word reserved by the specified database engine

    Oracle

    The Oracle System ID (SID) of the created DB instance.

    Default: ORCL

    Constraints:

    • Cannot be longer than 8 characters

    SQL Server

    Not applicable. Must be null.

    ", - "CreateDBInstanceMessage$DBInstanceIdentifier": "

    The DB instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server).
    • First character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: mydbinstance

    ", - "CreateDBInstanceMessage$DBInstanceClass": "

    The compute and memory capacity of the DB instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge

    ", - "CreateDBInstanceMessage$Engine": "

    The name of the database engine to be used for this instance.

    Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres

    ", - "CreateDBInstanceMessage$MasterUsername": "

    The name of master user for the client DB instance.

    MySQL

    Constraints:

    • Must be 1 to 16 alphanumeric characters.
    • First character must be a letter.
    • Cannot be a reserved word for the chosen database engine.

    Type: String

    Oracle

    Constraints:

    • Must be 1 to 30 alphanumeric characters.
    • First character must be a letter.
    • Cannot be a reserved word for the chosen database engine.

    SQL Server

    Constraints:

    • Must be 1 to 128 alphanumeric characters.
    • First character must be a letter.
    • Cannot be a reserved word for the chosen database engine.
    ", - "CreateDBInstanceMessage$MasterUserPassword": "

    The password for the master database user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

    Type: String

    MySQL

    Constraints: Must contain from 8 to 41 characters.

    Oracle

    Constraints: Must contain from 8 to 30 characters.

    SQL Server

    Constraints: Must contain from 8 to 128 characters.

    ", - "CreateDBInstanceMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone in the endpoint's region.

    Example: us-east-1d

    Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same region as the current endpoint.

    ", - "CreateDBInstanceMessage$DBSubnetGroupName": "

    A DB subnet group to associate with this DB instance.

    If there is no DB subnet group, then it is a non-VPC DB instance.

    ", - "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

    The weekly time range (in UTC) during which system maintenance can occur.

    Format: ddd:hh24:mi-ddd:hh24:mi

    Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

    Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

    Constraints: Minimum 30-minute window.

    ", - "CreateDBInstanceMessage$DBParameterGroupName": "

    The name of the DB parameter group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "CreateDBInstanceMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

    Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.

    Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

    ", - "CreateDBInstanceMessage$EngineVersion": "

    The version number of the database engine to use.

    MySQL

    Example: 5.1.42

    Type: String

    PostgreSQL

    Example: 9.3

    Type: String

    Oracle

    Example: 11.2.0.2.v2

    Type: String

    SQL Server

    Example: 10.50.2789.0.v1

    ", - "CreateDBInstanceMessage$LicenseModel": "

    License model information for this DB instance.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "CreateDBInstanceMessage$OptionGroupName": "

    Indicates that the DB instance should be associated with the specified option group.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "CreateDBInstanceMessage$CharacterSetName": "

    For supported engines, indicates that the DB instance should be associated with the specified CharacterSet.

    ", - "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

    The DB instance identifier of the read replica. This is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.

    ", - "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

    The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up to five read replicas.

    Constraints:

    • Must be the identifier of an existing DB instance.
    • Can specify a DB instance that is a read replica only if the source is running MySQL 5.6.
    • The specified DB instance must have automatic backups enabled, its backup retention period must be greater than 0.
    • If the source DB instance is in the same region as the read replica, specify a valid DB instance identifier.
    • If the source DB instance is in a different region than the read replica, specify a valid DB instance ARN. For more information, go to Constructing a Amazon RDS Amazon Resource Name (ARN).
    ", - "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

    The compute and memory capacity of the read replica.

    Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge

    Default: Inherits from the source DB instance.

    ", - "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

    The Amazon EC2 Availability Zone that the read replica will be created in.

    Default: A random, system-chosen Availability Zone in the endpoint's region.

    Example: us-east-1d

    ", - "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

    The option group the DB instance will be associated with. If omitted, the default option group for the engine specified will be used.

    ", - "CreateDBInstanceReadReplicaMessage$DBSubnetGroupName": "

    Specifies a DB subnet group for the DB instance. The new DB instance will be created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance is not created in a VPC.

    Constraints:

    • Can only be specified if the source DB instance identifier specifies a DB instance in another region.
    • The specified DB subnet group must be in the same region in which the operation is running.
    • All read replicas in one region that are created from the same source DB instance must either:
      • Specify DB subnet groups from the same VPC. All these read replicas will be created in the same VPC.
      • Not specify a DB subnet group. All these read replicas will be created outside of any VPC.
    ", - "CreateDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB parameter group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    This value is stored as a lower-case string.", - "CreateDBParameterGroupMessage$DBParameterGroupFamily": "

    The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.

    ", - "CreateDBParameterGroupMessage$Description": "

    The description for the DB parameter group.

    ", - "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

    The name for the DB security group. This value is stored as a lowercase string.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    • Must not be \"Default\"
    • May not contain spaces

    Example: mysecuritygroup

    ", - "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": "

    The description for the DB security group.

    ", - "CreateDBSnapshotMessage$DBSnapshotIdentifier": "

    The identifier for the DB snapshot.

    Constraints:

    • Cannot be null, empty, or blank
    • Must contain from 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

    ", - "CreateDBSnapshotMessage$DBInstanceIdentifier": "

    The DB instance identifier. This is the unique key that identifies a DB instance.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "CreateDBSubnetGroupMessage$DBSubnetGroupName": "

    The name for the DB subnet group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

    Example: mySubnetgroup

    ", - "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": "

    The description for the DB subnet group.

    ", - "CreateEventSubscriptionMessage$SubscriptionName": "

    The name of the subscription.

    Constraints: The name must be less than 255 characters.

    ", - "CreateEventSubscriptionMessage$SnsTopicArn": "

    The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

    ", - "CreateEventSubscriptionMessage$SourceType": "

    The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "CreateOptionGroupMessage$OptionGroupName": "

    Specifies the name of the option group to be created.

    Constraints:

    • Must be 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: myoptiongroup

    ", - "CreateOptionGroupMessage$EngineName": "

    Specifies the name of the engine that this option group should be associated with.

    ", - "CreateOptionGroupMessage$MajorEngineVersion": "

    Specifies the major version of the engine that this option group should be associated with.

    ", - "CreateOptionGroupMessage$OptionGroupDescription": "

    The description of the option group.

    ", - "DBEngineVersion$Engine": "

    The name of the database engine.

    ", - "DBEngineVersion$EngineVersion": "

    The version number of the database engine.

    ", - "DBEngineVersion$DBParameterGroupFamily": "

    The name of the DB parameter group family for the database engine.

    ", - "DBEngineVersion$DBEngineDescription": "

    The description of the database engine.

    ", - "DBEngineVersion$DBEngineVersionDescription": "

    The description of the database engine version.

    ", - "DBEngineVersionMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBInstance$DBInstanceIdentifier": "

    Contains a user-supplied database identifier. This is the unique key that identifies a DB instance.

    ", - "DBInstance$DBInstanceClass": "

    Contains the name of the compute and memory capacity class of the DB instance.

    ", - "DBInstance$Engine": "

    Provides the name of the database engine to be used for this DB instance.

    ", - "DBInstance$DBInstanceStatus": "

    Specifies the current state of this database.

    ", - "DBInstance$MasterUsername": "

    Contains the master username for the DB instance.

    ", - "DBInstance$DBName": "

    The meaning of this parameter differs according to the database engine you use. For example, this value returns only MySQL information when returning values from CreateDBInstanceReadReplica since read replicas are only supported for MySQL.

    MySQL

    Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB instance was created. This same name is returned for the life of the DB instance.

    Type: String

    Oracle

    Contains the Oracle System ID (SID) of the created DB instance. Not shown when the returned parameters do not apply to an Oracle DB instance.

    ", - "DBInstance$PreferredBackupWindow": "

    Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

    ", - "DBInstance$AvailabilityZone": "

    Specifies the name of the Availability Zone the DB instance is located in.

    ", - "DBInstance$PreferredMaintenanceWindow": "

    Specifies the weekly time range (in UTC) during which system maintenance can occur.

    ", - "DBInstance$EngineVersion": "

    Indicates the database engine version.

    ", - "DBInstance$ReadReplicaSourceDBInstanceIdentifier": "

    Contains the identifier of the source DB instance if this DB instance is a read replica.

    ", - "DBInstance$LicenseModel": "

    License model information for this DB instance.

    ", - "DBInstance$CharacterSetName": "

    If present, specifies the name of the character set that this instance is associated with.

    ", - "DBInstance$SecondaryAvailabilityZone": "

    If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

    ", - "DBInstanceMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DBInstanceStatusInfo$StatusType": "

    This value is currently \"read replication.\"

    ", - "DBInstanceStatusInfo$Status": "

    Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

    ", - "DBInstanceStatusInfo$Message": "

    Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.

    ", - "DBParameterGroup$DBParameterGroupName": "

    Provides the name of the DB parameter group.

    ", - "DBParameterGroup$DBParameterGroupFamily": "

    Provides the name of the DB parameter group family that this DB parameter group is compatible with.

    ", - "DBParameterGroup$Description": "

    Provides the customer-specified description for this DB parameter group.

    ", - "DBParameterGroupDetails$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBParameterGroupNameMessage$DBParameterGroupName": "

    The name of the DB parameter group.

    ", - "DBParameterGroupStatus$DBParameterGroupName": "

    The name of the DP parameter group.

    ", - "DBParameterGroupStatus$ParameterApplyStatus": "

    The status of parameter updates.

    ", - "DBParameterGroupsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSecurityGroup$OwnerId": "

    Provides the AWS ID of the owner of a specific DB security group.

    ", - "DBSecurityGroup$DBSecurityGroupName": "

    Specifies the name of the DB security group.

    ", - "DBSecurityGroup$DBSecurityGroupDescription": "

    Provides the description of the DB security group.

    ", - "DBSecurityGroup$VpcId": "

    Provides the VpcId of the DB security group.

    ", - "DBSecurityGroupMembership$DBSecurityGroupName": "

    The name of the DB security group.

    ", - "DBSecurityGroupMembership$Status": "

    The status of the DB security group.

    ", - "DBSecurityGroupMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSecurityGroupNameList$member": null, - "DBSnapshot$DBSnapshotIdentifier": "

    Specifies the identifier for the DB snapshot.

    ", - "DBSnapshot$DBInstanceIdentifier": "

    Specifies the DB instance identifier of the DB instance this DB snapshot was created from.

    ", - "DBSnapshot$Engine": "

    Specifies the name of the database engine.

    ", - "DBSnapshot$Status": "

    Specifies the status of this DB snapshot.

    ", - "DBSnapshot$AvailabilityZone": "

    Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.

    ", - "DBSnapshot$VpcId": "

    Provides the Vpc Id associated with the DB snapshot.

    ", - "DBSnapshot$MasterUsername": "

    Provides the master username for the DB snapshot.

    ", - "DBSnapshot$EngineVersion": "

    Specifies the version of the database engine.

    ", - "DBSnapshot$LicenseModel": "

    License model information for the restored DB instance.

    ", - "DBSnapshot$SnapshotType": "

    Provides the type of the DB snapshot.

    ", - "DBSnapshot$OptionGroupName": "

    Provides the option group name for the DB snapshot.

    ", - "DBSnapshot$SourceRegion": "

    The region that the DB snapshot was created in or copied from.

    ", - "DBSnapshotMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSubnetGroup$DBSubnetGroupName": "

    Specifies the name of the DB subnet group.

    ", - "DBSubnetGroup$DBSubnetGroupDescription": "

    Provides the description of the DB subnet group.

    ", - "DBSubnetGroup$VpcId": "

    Provides the VpcId of the DB subnet group.

    ", - "DBSubnetGroup$SubnetGroupStatus": "

    Provides the status of the DB subnet group.

    ", - "DBSubnetGroupMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DeleteDBInstanceMessage$DBInstanceIdentifier": "

    The DB instance identifier for the DB instance to be deleted. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": "

    The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false.

    Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    • Cannot be specified when deleting a read replica.
    ", - "DeleteDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB parameter group.

    Constraints:

    • Must be the name of an existing DB parameter group
    • You cannot delete a default DB parameter group
    • Cannot be associated with any DB instances
    ", - "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

    The name of the DB security group to delete.

    You cannot delete the default DB security group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    • Must not be \"Default\"
    • May not contain spaces
    ", - "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

    The DBSnapshot identifier.

    Constraints: Must be the name of an existing DB snapshot in the available state.

    ", - "DeleteDBSubnetGroupMessage$DBSubnetGroupName": "

    The name of the database subnet group to delete.

    You cannot delete the default subnet group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DeleteEventSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to delete.

    ", - "DeleteOptionGroupMessage$OptionGroupName": "

    The name of the option group to be deleted.

    You cannot delete default option groups.", - "DescribeDBEngineVersionsMessage$Engine": "

    The database engine to return.

    ", - "DescribeDBEngineVersionsMessage$EngineVersion": "

    The database engine version to return.

    Example: 5.1.49

    ", - "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": "

    The name of a specific DB parameter group family to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBEngineVersionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBInstancesMessage$DBInstanceIdentifier": "

    The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBInstancesMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribeDBLogFilesDetails$LogFileName": "

    The name of the log file for the specified DB instance.

    ", - "DescribeDBLogFilesMessage$DBInstanceIdentifier": "

    The customer-assigned name of the DB instance that contains the log files you want to list.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBLogFilesMessage$FilenameContains": "

    Filters the available log files for log file names that contain the specified string.

    ", - "DescribeDBLogFilesMessage$Marker": "

    The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.

    ", - "DescribeDBLogFilesResponse$Marker": "

    A pagination token that can be used in a subsequent DescribeDBLogFiles request.

    ", - "DescribeDBParameterGroupsMessage$DBParameterGroupName": "

    The name of a specific DB parameter group to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBParameterGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBParametersMessage$DBParameterGroupName": "

    The name of a specific DB parameter group to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBParametersMessage$Source": "

    The parameter types to return.

    Default: All parameter types returned

    Valid Values: user | system | engine-default

    ", - "DescribeDBParametersMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": "

    The name of the DB security group to return details for.

    ", - "DescribeDBSecurityGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSecurityGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSnapshotsMessage$DBInstanceIdentifier": "

    A DB instance identifier to retrieve the list of DB snapshots for. Cannot be used in conjunction with DBSnapshotIdentifier. This parameter is not case sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

    A specific DB snapshot identifier to describe. Cannot be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    • If this is the identifier of an automated snapshot, the SnapshotType parameter must also be specified.
    ", - "DescribeDBSnapshotsMessage$SnapshotType": "

    The type of snapshots that will be returned. Values can be \"automated\" or \"manual.\" If not specified, the returned results will include all snapshots types.

    ", - "DescribeDBSnapshotsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": "

    The name of the DB subnet group to return details for.

    ", - "DescribeDBSubnetGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSubnetGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": "

    The name of the DB parameter group family.

    ", - "DescribeEngineDefaultParametersMessage$Marker": "

    An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEventCategoriesMessage$SourceType": "

    The type of source that will be generating the events.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "DescribeEventSubscriptionsMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to describe.

    ", - "DescribeEventSubscriptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribeEventsMessage$SourceIdentifier": "

    The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.

    Constraints:

    • If SourceIdentifier is supplied, SourceType must also be provided.
    • If the source type is DBInstance, then a DBInstanceIdentifier must be supplied.
    • If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied.
    • If the source type is DBParameterGroup, a DBParameterGroupName must be supplied.
    • If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
    • Cannot end with a hyphen or contain two consecutive hyphens.
    ", - "DescribeEventsMessage$Marker": "

    An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupOptionsMessage$EngineName": "

    A required parameter. Options available for the given Engine name will be described.

    ", - "DescribeOptionGroupOptionsMessage$MajorEngineVersion": "

    If specified, filters the results to include only options for the specified major engine version.

    ", - "DescribeOptionGroupOptionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupsMessage$OptionGroupName": "

    The name of the option group to describe. Cannot be supplied together with EngineName or MajorEngineVersion.

    ", - "DescribeOptionGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOptionGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupsMessage$EngineName": "

    Filters the list of option groups to only include groups associated with a specific database engine.

    ", - "DescribeOptionGroupsMessage$MajorEngineVersion": "

    Filters the list of option groups to only include groups associated with a specific database engine version. If specified, then EngineName must also be specified.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Engine": "

    The name of the engine to retrieve DB instance options for.

    ", - "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": "

    The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

    ", - "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": "

    The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

    ", - "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": "

    The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": "

    The reserved DB instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.

    ", - "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": "

    The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

    ", - "DescribeReservedDBInstancesMessage$DBInstanceClass": "

    The DB instance class filter value. Specify this parameter to show only those reservations matching the specified DB instances class.

    ", - "DescribeReservedDBInstancesMessage$Duration": "

    The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

    Valid Values: 1 | 3 | 31536000 | 94608000

    ", - "DescribeReservedDBInstancesMessage$ProductDescription": "

    The product description filter value. Specify this parameter to show only those reservations matching the specified product description.

    ", - "DescribeReservedDBInstancesMessage$OfferingType": "

    The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

    Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

    ", - "DescribeReservedDBInstancesMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": "

    The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

    Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

    ", - "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": "

    The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

    ", - "DescribeReservedDBInstancesOfferingsMessage$Duration": "

    Duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

    Valid Values: 1 | 3 | 31536000 | 94608000

    ", - "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": "

    Product description filter value. Specify this parameter to show only the available offerings matching the specified product description.

    ", - "DescribeReservedDBInstancesOfferingsMessage$OfferingType": "

    The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

    Valid Values: \"Light Utilization\" | \"Medium Utilization\" | \"Heavy Utilization\"

    ", - "DescribeReservedDBInstancesOfferingsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DownloadDBLogFilePortionDetails$LogFileData": "

    Entries from the specified log file.

    ", - "DownloadDBLogFilePortionDetails$Marker": "

    A pagination token that can be used in a subsequent DownloadDBLogFilePortion request.

    ", - "DownloadDBLogFilePortionMessage$DBInstanceIdentifier": "

    The customer-assigned name of the DB instance that contains the log files you want to list.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "DownloadDBLogFilePortionMessage$LogFileName": "

    The name of the log file to be downloaded.

    ", - "DownloadDBLogFilePortionMessage$Marker": "

    The pagination token provided in the previous request or \"0\". If the Marker parameter is specified the response includes only records beyond the marker until the end of the file or up to NumberOfLines.

    ", - "EC2SecurityGroup$Status": "

    Provides the status of the EC2 security group. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

    ", - "EC2SecurityGroup$EC2SecurityGroupName": "

    Specifies the name of the EC2 security group.

    ", - "EC2SecurityGroup$EC2SecurityGroupId": "

    Specifies the id of the EC2 security group.

    ", - "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

    Specifies the AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

    ", - "Endpoint$Address": "

    Specifies the DNS address of the DB instance.

    ", - "EngineDefaults$DBParameterGroupFamily": "

    Specifies the name of the DB parameter group family which the engine default parameters apply to.

    ", - "EngineDefaults$Marker": "

    An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "Event$SourceIdentifier": "

    Provides the identifier for the source of the event.

    ", - "Event$Message": "

    Provides the text of this event.

    ", - "EventCategoriesList$member": null, - "EventCategoriesMap$SourceType": "

    The source type that the returned categories belong to

    ", - "EventSubscription$CustomerAwsId": "

    The AWS customer account associated with the RDS event notification subscription.

    ", - "EventSubscription$CustSubscriptionId": "

    The RDS event notification subscription Id.

    ", - "EventSubscription$SnsTopicArn": "

    The topic ARN of the RDS event notification subscription.

    ", - "EventSubscription$Status": "

    The status of the RDS event notification subscription.

    Constraints:

    Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

    The status \"no-permission\" indicates that RDS no longer has permission to post to the SNS topic. The status \"topic-not-exist\" indicates that the topic was deleted after the subscription was created.

    ", - "EventSubscription$SubscriptionCreationTime": "

    The time the RDS event notification subscription was created.

    ", - "EventSubscription$SourceType": "

    The source type for the RDS event notification subscription.

    ", - "EventSubscriptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "EventsMessage$Marker": "

    An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "Filter$Name": "

    This parameter is not currently supported.

    ", - "FilterValueList$member": null, - "IPRange$Status": "

    Specifies the status of the IP range. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

    ", - "IPRange$CIDRIP": "

    Specifies the IP range.

    ", - "KeyList$member": null, - "ListTagsForResourceMessage$ResourceName": "

    The Amazon RDS resource with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    ", - "ModifyDBInstanceMessage$DBInstanceIdentifier": "

    The DB instance identifier. This value is stored as a lowercase string.

    Constraints:

    • Must be the identifier for an existing DB instance
    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "ModifyDBInstanceMessage$DBInstanceClass": "

    The new compute and memory capacity of the DB instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action.

    Passing a value for this parameter causes an outage during the change and is applied during the next maintenance window, unless the ApplyImmediately parameter is specified as true for this request.

    Default: Uses existing setting

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge

    ", - "ModifyDBInstanceMessage$MasterUserPassword": "

    The new password for the DB instance master user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

    Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

    Default: Uses existing setting

    Constraints: Must be 8 to 41 alphanumeric characters (MySQL), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

    Amazon RDS API actions never return the password, so this action provides a way to regain access to a master instance user if the password is lost. ", - "ModifyDBInstanceMessage$DBParameterGroupName": "

    The name of the DB parameter group to apply to the DB instance. Changing this setting does not result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. The DB instance will NOT be rebooted automatically and the parameter changes will NOT be applied during the next maintenance window.

    Default: Uses existing setting

    Constraints: The DB parameter group must be in the same DB parameter group family as the DB instance.

    ", - "ModifyDBInstanceMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints:

    • Must be in the format hh24:mi-hh24:mi
    • Times should be Universal Time Coordinated (UTC)
    • Must not conflict with the preferred maintenance window
    • Must be at least 30 minutes
    ", - "ModifyDBInstanceMessage$PreferredMaintenanceWindow": "

    The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

    Default: Uses existing setting

    Format: ddd:hh24:mi-ddd:hh24:mi

    Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

    Constraints: Must be at least 30 minutes

    ", - "ModifyDBInstanceMessage$EngineVersion": "

    The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    For major version upgrades, if a non-default DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.

    Example: 5.1.42

    ", - "ModifyDBInstanceMessage$OptionGroupName": "

    Indicates that the DB instance should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "ModifyDBInstanceMessage$NewDBInstanceIdentifier": "

    The new DB instance identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot will occur immediately if you set Apply Immediately to true, or will occur during the next maintenance window if Apply Immediately to false. This value is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "ModifyDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB parameter group.

    Constraints:

    • Must be the name of an existing DB parameter group
    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "ModifyDBSubnetGroupMessage$DBSubnetGroupName": "

    The name for the DB subnet group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be \"Default\".

    Example: mySubnetgroup

    ", - "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "

    The description for the DB subnet group.

    ", - "ModifyEventSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription.

    ", - "ModifyEventSubscriptionMessage$SnsTopicArn": "

    The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

    ", - "ModifyEventSubscriptionMessage$SourceType": "

    The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "ModifyOptionGroupMessage$OptionGroupName": "

    The name of the option group to be modified.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "Option$OptionName": "

    The name of the option.

    ", - "Option$OptionDescription": "

    The description of the option.

    ", - "OptionConfiguration$OptionName": "

    The configuration of options to include in a group.

    ", - "OptionGroup$OptionGroupName": "

    Specifies the name of the option group.

    ", - "OptionGroup$OptionGroupDescription": "

    Provides the description of the option group.

    ", - "OptionGroup$EngineName": "

    Engine name that this option group can be applied to.

    ", - "OptionGroup$MajorEngineVersion": "

    Indicates the major engine version associated with this option group.

    ", - "OptionGroup$VpcId": "

    If AllowsVpcAndNonVpcInstanceMemberships is 'false', this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is 'true' and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.

    ", - "OptionGroupMembership$OptionGroupName": "

    The name of the option group that the instance belongs to.

    ", - "OptionGroupMembership$Status": "

    The status of the DB instance's option group membership (e.g. in-sync, pending, pending-maintenance, applying).

    ", - "OptionGroupOption$Name": "

    The name of the option.

    ", - "OptionGroupOption$Description": "

    The description of the option.

    ", - "OptionGroupOption$EngineName": "

    Engine name that this option can be applied to.

    ", - "OptionGroupOption$MajorEngineVersion": "

    Indicates the major engine version that the option is available for.

    ", - "OptionGroupOption$MinimumRequiredMinorEngineVersion": "

    The minimum required engine version for the option to be applied.

    ", - "OptionGroupOptionSetting$SettingName": "

    The name of the option group option.

    ", - "OptionGroupOptionSetting$SettingDescription": "

    The description of the option group option.

    ", - "OptionGroupOptionSetting$DefaultValue": "

    The default value for the option group option.

    ", - "OptionGroupOptionSetting$ApplyType": "

    The DB engine specific parameter type for the option group option.

    ", - "OptionGroupOptionSetting$AllowedValues": "

    Indicates the acceptable values for the option group option.

    ", - "OptionGroupOptionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "OptionGroups$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "OptionNamesList$member": null, - "OptionSetting$Name": "

    The name of the option that has settings that you can set.

    ", - "OptionSetting$Value": "

    The current value of the option setting.

    ", - "OptionSetting$DefaultValue": "

    The default value of the option setting.

    ", - "OptionSetting$Description": "

    The description of the option setting.

    ", - "OptionSetting$ApplyType": "

    The DB engine specific parameter type.

    ", - "OptionSetting$DataType": "

    The data type of the option setting.

    ", - "OptionSetting$AllowedValues": "

    The allowed values of the option setting.

    ", - "OptionsDependedOn$member": null, - "OrderableDBInstanceOption$Engine": "

    The engine type of the orderable DB instance.

    ", - "OrderableDBInstanceOption$EngineVersion": "

    The engine version of the orderable DB instance.

    ", - "OrderableDBInstanceOption$DBInstanceClass": "

    The DB instance Class for the orderable DB instance

    ", - "OrderableDBInstanceOption$LicenseModel": "

    The license model for the orderable DB instance.

    ", - "OrderableDBInstanceOptionsMessage$Marker": "

    An optional pagination token provided by a previous OrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "Parameter$ParameterName": "

    Specifies the name of the parameter.

    ", - "Parameter$ParameterValue": "

    Specifies the value of the parameter.

    ", - "Parameter$Description": "

    Provides a description of the parameter.

    ", - "Parameter$Source": "

    Indicates the source of the parameter value.

    ", - "Parameter$ApplyType": "

    Specifies the engine specific parameters type.

    ", - "Parameter$DataType": "

    Specifies the valid data type for the parameter.

    ", - "Parameter$AllowedValues": "

    Specifies the valid range of values for the parameter.

    ", - "Parameter$MinimumEngineVersion": "

    The earliest engine version to which the parameter can apply.

    ", - "PendingModifiedValues$DBInstanceClass": "

    Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.

    ", - "PendingModifiedValues$MasterUserPassword": "

    Contains the pending or in-progress change of the master credentials for the DB instance.

    ", - "PendingModifiedValues$EngineVersion": "

    Indicates the database engine version.

    ", - "PendingModifiedValues$DBInstanceIdentifier": "

    Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.

    ", - "PromoteReadReplicaMessage$DBInstanceIdentifier": "

    The DB instance identifier. This value is stored as a lowercase string.

    Constraints:

    • Must be the identifier for an existing read replica DB instance
    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: mydbinstance

    ", - "PromoteReadReplicaMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

    Default: A 30-minute window selected at random from an 8-hour block of time per region. See the Amazon RDS User Guide for the time blocks for each region from which the default backup windows are assigned.

    Constraints: Must be in the format hh24:mi-hh24:mi. Times should be Universal Time Coordinated (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.

    ", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": "

    The ID of the Reserved DB instance offering to purchase.

    Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

    ", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "

    Customer-specified identifier to track this reservation.

    Example: myreservationID

    ", - "ReadReplicaDBInstanceIdentifierList$member": null, - "RebootDBInstanceMessage$DBInstanceIdentifier": "

    The DB instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RecurringCharge$RecurringChargeFrequency": "

    The frequency of the recurring charge.

    ", - "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to remove a source identifier from.

    ", - "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": "

    The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

    ", - "RemoveTagsFromResourceMessage$ResourceName": "

    The Amazon RDS resource the tags will be removed from. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    ", - "ReservedDBInstance$ReservedDBInstanceId": "

    The unique identifier for the reservation.

    ", - "ReservedDBInstance$ReservedDBInstancesOfferingId": "

    The offering identifier.

    ", - "ReservedDBInstance$DBInstanceClass": "

    The DB instance class for the reserved DB instance.

    ", - "ReservedDBInstance$CurrencyCode": "

    The currency code for the reserved DB instance.

    ", - "ReservedDBInstance$ProductDescription": "

    The description of the reserved DB instance.

    ", - "ReservedDBInstance$OfferingType": "

    The offering type of this reserved DB instance.

    ", - "ReservedDBInstance$State": "

    The state of the reserved DB instance.

    ", - "ReservedDBInstanceMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": "

    The offering identifier.

    ", - "ReservedDBInstancesOffering$DBInstanceClass": "

    The DB instance class for the reserved DB instance.

    ", - "ReservedDBInstancesOffering$CurrencyCode": "

    The currency code for the reserved DB instance offering.

    ", - "ReservedDBInstancesOffering$ProductDescription": "

    The database engine used by the offering.

    ", - "ReservedDBInstancesOffering$OfferingType": "

    The offering type.

    ", - "ReservedDBInstancesOfferingMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "ResetDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB parameter group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": "

    Name of the DB instance to create from the DB snapshot. This parameter isn't case sensitive.

    Constraints:

    • Must contain from 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": "

    The identifier for the DB snapshot to restore from.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": "

    The compute and memory capacity of the Amazon RDS DB instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge

    ", - "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    Example: us-east-1a

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": "

    The DB subnet group name to use for the new instance.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

    License model information for the restored DB instance.

    Default: Same as source.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBName": "

    The database name for the restored DB instance.

    This parameter doesn't apply to the MySQL engine.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

    The database engine to use for the new instance.

    Default: The same as source

    Constraint: Must be compatible with the engine of the source

    Example: oracle-ee

    ", - "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": "

    The name of the option group to be used for the restored DB instance.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": "

    The identifier of the source DB instance from which to restore.

    Constraints:

    • Must be the identifier of an existing database instance
    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": "

    The name of the new database instance to be created.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": "

    The compute and memory capacity of the Amazon RDS DB instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge

    Default: The same DBInstanceClass as the original DB instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    Example: us-east-1a

    ", - "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": "

    The DB subnet group name to use for the new instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$LicenseModel": "

    License model information for the restored DB instance.

    Default: Same as source.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "RestoreDBInstanceToPointInTimeMessage$DBName": "

    The database name for the restored DB instance.

    This parameter is not used for the MySQL engine.

    ", - "RestoreDBInstanceToPointInTimeMessage$Engine": "

    The database engine to use for the new instance.

    Default: The same as source

    Constraint: Must be compatible with the engine of the source

    Example: oracle-ee

    ", - "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": "

    The name of the option group to be used for the restored DB instance.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

    The name of the DB security group to revoke ingress from.

    ", - "RevokeDBSecurityGroupIngressMessage$CIDRIP": "

    The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

    The name of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

    The id of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

    The AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "SourceIdsList$member": null, - "Subnet$SubnetIdentifier": "

    Specifies the identifier of the subnet.

    ", - "Subnet$SubnetStatus": "

    Specifies the status of the subnet.

    ", - "SubnetIdentifierList$member": null, - "Tag$Key": "

    A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", - "Tag$Value": "

    A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string may only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", - "VpcSecurityGroupIdList$member": null, - "VpcSecurityGroupMembership$VpcSecurityGroupId": "

    The name of the VPC security group.

    ", - "VpcSecurityGroupMembership$Status": "

    The status of the VPC security group.

    " - } - }, - "Subnet": { - "base": "

    This data type is used as a response element in the DescribeDBSubnetGroups action.

    ", - "refs": { - "SubnetList$member": null - } - }, - "SubnetAlreadyInUse": { - "base": "

    The DB subnet is already in use in the Availability Zone.

    ", - "refs": { - } - }, - "SubnetIdentifierList": { - "base": null, - "refs": { - "CreateDBSubnetGroupMessage$SubnetIds": "

    The EC2 Subnet IDs for the DB subnet group.

    ", - "ModifyDBSubnetGroupMessage$SubnetIds": "

    The EC2 subnet IDs for the DB subnet group.

    " - } - }, - "SubnetList": { - "base": null, - "refs": { - "DBSubnetGroup$Subnets": "

    Contains a list of Subnet elements.

    " - } - }, - "SubscriptionAlreadyExistFault": { - "base": "

    The supplied subscription name already exists.

    ", - "refs": { - } - }, - "SubscriptionCategoryNotFoundFault": { - "base": "

    The supplied category does not exist.

    ", - "refs": { - } - }, - "SubscriptionNotFoundFault": { - "base": "

    The subscription name does not exist.

    ", - "refs": { - } - }, - "SupportedCharacterSetsList": { - "base": null, - "refs": { - "DBEngineVersion$SupportedCharacterSets": "

    A list of the character sets supported by this engine for the CharacterSetName parameter of the CreateDBInstance API.

    " - } - }, - "TStamp": { - "base": null, - "refs": { - "DBInstance$InstanceCreateTime": "

    Provides the date and time the DB instance was created.

    ", - "DBInstance$LatestRestorableTime": "

    Specifies the latest time to which a database can be restored with point-in-time restore.

    ", - "DBSnapshot$SnapshotCreateTime": "

    Provides the time (UTC) when the snapshot was taken.

    ", - "DBSnapshot$InstanceCreateTime": "

    Specifies the time (UTC) when the snapshot was taken.

    ", - "DescribeEventsMessage$StartTime": "

    The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

    ", - "DescribeEventsMessage$EndTime": "

    The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

    ", - "Event$Date": "

    Specifies the date and time of the event.

    ", - "ReservedDBInstance$StartTime": "

    The time the reservation started.

    ", - "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

    The date and time to restore from.

    Valid Values: Value must be a UTC time

    Constraints:

    • Must be before the latest restorable time for the DB instance
    • Cannot be specified if UseLatestRestorableTime parameter is true

    Example: 2009-09-07T23:45:00Z

    " - } - }, - "Tag": { - "base": "

    Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

    ", - "refs": { - "TagList$member": null - } - }, - "TagList": { - "base": "

    A list of tags.

    ", - "refs": { - "AddTagsToResourceMessage$Tags": "

    The tags to be assigned to the Amazon RDS resource.

    ", - "CopyDBSnapshotMessage$Tags": null, - "CreateDBInstanceMessage$Tags": null, - "CreateDBInstanceReadReplicaMessage$Tags": null, - "CreateDBParameterGroupMessage$Tags": null, - "CreateDBSecurityGroupMessage$Tags": null, - "CreateDBSnapshotMessage$Tags": null, - "CreateDBSubnetGroupMessage$Tags": null, - "CreateEventSubscriptionMessage$Tags": null, - "CreateOptionGroupMessage$Tags": null, - "PurchaseReservedDBInstancesOfferingMessage$Tags": null, - "RestoreDBInstanceFromDBSnapshotMessage$Tags": null, - "RestoreDBInstanceToPointInTimeMessage$Tags": null, - "TagListMessage$TagList": "

    List of tags returned by the ListTagsForResource operation.

    " - } - }, - "TagListMessage": { - "base": "

    ", - "refs": { - } - }, - "VpcSecurityGroupIdList": { - "base": null, - "refs": { - "CreateDBInstanceMessage$VpcSecurityGroupIds": "

    A list of EC2 VPC security groups to associate with this DB instance.

    Default: The default EC2 VPC security group for the DB subnet group's VPC.

    ", - "ModifyDBInstanceMessage$VpcSecurityGroupIds": "

    A list of EC2 VPC security groups to authorize on this DB instance. This change is asynchronously applied as soon as possible.

    Constraints:

    • Must be 1 to 255 alphanumeric characters
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens
    ", - "OptionConfiguration$VpcSecurityGroupMemberships": "

    A list of VpcSecurityGroupMemebrship name strings used for this option.

    " - } - }, - "VpcSecurityGroupMembership": { - "base": "

    This data type is used as a response element for queries on VPC security group membership.

    ", - "refs": { - "VpcSecurityGroupMembershipList$member": null - } - }, - "VpcSecurityGroupMembershipList": { - "base": null, - "refs": { - "DBInstance$VpcSecurityGroups": "

    Provides List of VPC security group elements that the DB instance belongs to.

    ", - "Option$VpcSecurityGroupMemberships": "

    If the option requires access to a port, then this VPC security group allows access to the port.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/paginators-1.json deleted file mode 100644 index 662845c12..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2013-09-09/paginators-1.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "pagination": { - "DescribeDBEngineVersions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBEngineVersions" - }, - "DescribeDBInstances": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBInstances" - }, - "DescribeDBLogFiles": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DescribeDBLogFiles" - }, - "DescribeDBParameterGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBParameterGroups" - }, - "DescribeDBParameters": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "Parameters" - }, - "DescribeDBSecurityGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBSecurityGroups" - }, - "DescribeDBSnapshots": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBSnapshots" - }, - "DescribeDBSubnetGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBSubnetGroups" - }, - "DescribeEngineDefaultParameters": { - "input_token": "Marker", - "output_token": "EngineDefaults.Marker", - "limit_key": "MaxRecords", - "result_key": "EngineDefaults.Parameters" - }, - "DescribeEventSubscriptions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "EventSubscriptionsList" - }, - "DescribeEvents": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "Events" - }, - "DescribeOptionGroupOptions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "OptionGroupOptions" - }, - "DescribeOptionGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "OptionGroupsList" - }, - "DescribeOrderableDBInstanceOptions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "OrderableDBInstanceOptions" - }, - "DescribeReservedDBInstances": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "ReservedDBInstances" - }, - "DescribeReservedDBInstancesOfferings": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "ReservedDBInstancesOfferings" - }, - "DownloadDBLogFilePortion": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "NumberOfLines", - "more_results": "AdditionalDataPending", - "result_key": "LogFileData" - }, - "ListTagsForResource": { - "result_key": "TagList" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/api-2.json deleted file mode 100644 index 45271a77a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/api-2.json +++ /dev/null @@ -1,3271 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2014-09-01", - "endpointPrefix":"rds", - "protocol":"query", - "serviceAbbreviation":"Amazon RDS", - "serviceFullName":"Amazon Relational Database Service", - "signatureVersion":"v4", - "xmlNamespace":"http://rds.amazonaws.com/doc/2014-09-01/" - }, - "operations":{ - "AddSourceIdentifierToSubscription":{ - "name":"AddSourceIdentifierToSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddSourceIdentifierToSubscriptionMessage"}, - "output":{ - "shape":"AddSourceIdentifierToSubscriptionResult", - "resultWrapper":"AddSourceIdentifierToSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "AddTagsToResource":{ - "name":"AddTagsToResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AddTagsToResourceMessage"}, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "AuthorizeDBSecurityGroupIngress":{ - "name":"AuthorizeDBSecurityGroupIngress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AuthorizeDBSecurityGroupIngressMessage"}, - "output":{ - "shape":"AuthorizeDBSecurityGroupIngressResult", - "resultWrapper":"AuthorizeDBSecurityGroupIngressResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"AuthorizationAlreadyExistsFault"}, - {"shape":"AuthorizationQuotaExceededFault"} - ] - }, - "CopyDBParameterGroup":{ - "name":"CopyDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CopyDBParameterGroupMessage"}, - "output":{ - "shape":"CopyDBParameterGroupResult", - "resultWrapper":"CopyDBParameterGroupResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBParameterGroupAlreadyExistsFault"}, - {"shape":"DBParameterGroupQuotaExceededFault"} - ] - }, - "CopyDBSnapshot":{ - "name":"CopyDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CopyDBSnapshotMessage"}, - "output":{ - "shape":"CopyDBSnapshotResult", - "resultWrapper":"CopyDBSnapshotResult" - }, - "errors":[ - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "CopyOptionGroup":{ - "name":"CopyOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CopyOptionGroupMessage"}, - "output":{ - "shape":"CopyOptionGroupResult", - "resultWrapper":"CopyOptionGroupResult" - }, - "errors":[ - {"shape":"OptionGroupAlreadyExistsFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"OptionGroupQuotaExceededFault"} - ] - }, - "CreateDBInstance":{ - "name":"CreateDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBInstanceMessage"}, - "output":{ - "shape":"CreateDBInstanceResult", - "resultWrapper":"CreateDBInstanceResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"StorageTypeNotSupportedFault"}, - {"shape":"AuthorizationNotFoundFault"} - ] - }, - "CreateDBInstanceReadReplica":{ - "name":"CreateDBInstanceReadReplica", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBInstanceReadReplicaMessage"}, - "output":{ - "shape":"CreateDBInstanceReadReplicaResult", - "resultWrapper":"CreateDBInstanceReadReplicaResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"DBSubnetGroupNotAllowedFault"}, - {"shape":"InvalidDBSubnetGroupFault"}, - {"shape":"StorageTypeNotSupportedFault"} - ] - }, - "CreateDBParameterGroup":{ - "name":"CreateDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBParameterGroupMessage"}, - "output":{ - "shape":"CreateDBParameterGroupResult", - "resultWrapper":"CreateDBParameterGroupResult" - }, - "errors":[ - {"shape":"DBParameterGroupQuotaExceededFault"}, - {"shape":"DBParameterGroupAlreadyExistsFault"} - ] - }, - "CreateDBSecurityGroup":{ - "name":"CreateDBSecurityGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSecurityGroupMessage"}, - "output":{ - "shape":"CreateDBSecurityGroupResult", - "resultWrapper":"CreateDBSecurityGroupResult" - }, - "errors":[ - {"shape":"DBSecurityGroupAlreadyExistsFault"}, - {"shape":"DBSecurityGroupQuotaExceededFault"}, - {"shape":"DBSecurityGroupNotSupportedFault"} - ] - }, - "CreateDBSnapshot":{ - "name":"CreateDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSnapshotMessage"}, - "output":{ - "shape":"CreateDBSnapshotResult", - "resultWrapper":"CreateDBSnapshotResult" - }, - "errors":[ - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "CreateDBSubnetGroup":{ - "name":"CreateDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDBSubnetGroupMessage"}, - "output":{ - "shape":"CreateDBSubnetGroupResult", - "resultWrapper":"CreateDBSubnetGroupResult" - }, - "errors":[ - {"shape":"DBSubnetGroupAlreadyExistsFault"}, - {"shape":"DBSubnetGroupQuotaExceededFault"}, - {"shape":"DBSubnetQuotaExceededFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} - ] - }, - "CreateEventSubscription":{ - "name":"CreateEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateEventSubscriptionMessage"}, - "output":{ - "shape":"CreateEventSubscriptionResult", - "resultWrapper":"CreateEventSubscriptionResult" - }, - "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionAlreadyExistFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "CreateOptionGroup":{ - "name":"CreateOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateOptionGroupMessage"}, - "output":{ - "shape":"CreateOptionGroupResult", - "resultWrapper":"CreateOptionGroupResult" - }, - "errors":[ - {"shape":"OptionGroupAlreadyExistsFault"}, - {"shape":"OptionGroupQuotaExceededFault"} - ] - }, - "DeleteDBInstance":{ - "name":"DeleteDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBInstanceMessage"}, - "output":{ - "shape":"DeleteDBInstanceResult", - "resultWrapper":"DeleteDBInstanceResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBSnapshotAlreadyExistsFault"}, - {"shape":"SnapshotQuotaExceededFault"} - ] - }, - "DeleteDBParameterGroup":{ - "name":"DeleteDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBParameterGroupMessage"}, - "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DeleteDBSecurityGroup":{ - "name":"DeleteDBSecurityGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSecurityGroupMessage"}, - "errors":[ - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"DBSecurityGroupNotFoundFault"} - ] - }, - "DeleteDBSnapshot":{ - "name":"DeleteDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSnapshotMessage"}, - "output":{ - "shape":"DeleteDBSnapshotResult", - "resultWrapper":"DeleteDBSnapshotResult" - }, - "errors":[ - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "DeleteDBSubnetGroup":{ - "name":"DeleteDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDBSubnetGroupMessage"}, - "errors":[ - {"shape":"InvalidDBSubnetGroupStateFault"}, - {"shape":"InvalidDBSubnetStateFault"}, - {"shape":"DBSubnetGroupNotFoundFault"} - ] - }, - "DeleteEventSubscription":{ - "name":"DeleteEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteEventSubscriptionMessage"}, - "output":{ - "shape":"DeleteEventSubscriptionResult", - "resultWrapper":"DeleteEventSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"InvalidEventSubscriptionStateFault"} - ] - }, - "DeleteOptionGroup":{ - "name":"DeleteOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteOptionGroupMessage"}, - "errors":[ - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"InvalidOptionGroupStateFault"} - ] - }, - "DescribeDBEngineVersions":{ - "name":"DescribeDBEngineVersions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBEngineVersionsMessage"}, - "output":{ - "shape":"DBEngineVersionMessage", - "resultWrapper":"DescribeDBEngineVersionsResult" - } - }, - "DescribeDBInstances":{ - "name":"DescribeDBInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBInstancesMessage"}, - "output":{ - "shape":"DBInstanceMessage", - "resultWrapper":"DescribeDBInstancesResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "DescribeDBLogFiles":{ - "name":"DescribeDBLogFiles", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBLogFilesMessage"}, - "output":{ - "shape":"DescribeDBLogFilesResponse", - "resultWrapper":"DescribeDBLogFilesResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "DescribeDBParameterGroups":{ - "name":"DescribeDBParameterGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBParameterGroupsMessage"}, - "output":{ - "shape":"DBParameterGroupsMessage", - "resultWrapper":"DescribeDBParameterGroupsResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DescribeDBParameters":{ - "name":"DescribeDBParameters", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBParametersMessage"}, - "output":{ - "shape":"DBParameterGroupDetails", - "resultWrapper":"DescribeDBParametersResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "DescribeDBSecurityGroups":{ - "name":"DescribeDBSecurityGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSecurityGroupsMessage"}, - "output":{ - "shape":"DBSecurityGroupMessage", - "resultWrapper":"DescribeDBSecurityGroupsResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"} - ] - }, - "DescribeDBSnapshots":{ - "name":"DescribeDBSnapshots", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSnapshotsMessage"}, - "output":{ - "shape":"DBSnapshotMessage", - "resultWrapper":"DescribeDBSnapshotsResult" - }, - "errors":[ - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "DescribeDBSubnetGroups":{ - "name":"DescribeDBSubnetGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDBSubnetGroupsMessage"}, - "output":{ - "shape":"DBSubnetGroupMessage", - "resultWrapper":"DescribeDBSubnetGroupsResult" - }, - "errors":[ - {"shape":"DBSubnetGroupNotFoundFault"} - ] - }, - "DescribeEngineDefaultParameters":{ - "name":"DescribeEngineDefaultParameters", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEngineDefaultParametersMessage"}, - "output":{ - "shape":"DescribeEngineDefaultParametersResult", - "resultWrapper":"DescribeEngineDefaultParametersResult" - } - }, - "DescribeEventCategories":{ - "name":"DescribeEventCategories", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventCategoriesMessage"}, - "output":{ - "shape":"EventCategoriesMessage", - "resultWrapper":"DescribeEventCategoriesResult" - } - }, - "DescribeEventSubscriptions":{ - "name":"DescribeEventSubscriptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventSubscriptionsMessage"}, - "output":{ - "shape":"EventSubscriptionsMessage", - "resultWrapper":"DescribeEventSubscriptionsResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"} - ] - }, - "DescribeEvents":{ - "name":"DescribeEvents", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeEventsMessage"}, - "output":{ - "shape":"EventsMessage", - "resultWrapper":"DescribeEventsResult" - } - }, - "DescribeOptionGroupOptions":{ - "name":"DescribeOptionGroupOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOptionGroupOptionsMessage"}, - "output":{ - "shape":"OptionGroupOptionsMessage", - "resultWrapper":"DescribeOptionGroupOptionsResult" - } - }, - "DescribeOptionGroups":{ - "name":"DescribeOptionGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOptionGroupsMessage"}, - "output":{ - "shape":"OptionGroups", - "resultWrapper":"DescribeOptionGroupsResult" - }, - "errors":[ - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "DescribeOrderableDBInstanceOptions":{ - "name":"DescribeOrderableDBInstanceOptions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeOrderableDBInstanceOptionsMessage"}, - "output":{ - "shape":"OrderableDBInstanceOptionsMessage", - "resultWrapper":"DescribeOrderableDBInstanceOptionsResult" - } - }, - "DescribeReservedDBInstances":{ - "name":"DescribeReservedDBInstances", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedDBInstancesMessage"}, - "output":{ - "shape":"ReservedDBInstanceMessage", - "resultWrapper":"DescribeReservedDBInstancesResult" - }, - "errors":[ - {"shape":"ReservedDBInstanceNotFoundFault"} - ] - }, - "DescribeReservedDBInstancesOfferings":{ - "name":"DescribeReservedDBInstancesOfferings", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeReservedDBInstancesOfferingsMessage"}, - "output":{ - "shape":"ReservedDBInstancesOfferingMessage", - "resultWrapper":"DescribeReservedDBInstancesOfferingsResult" - }, - "errors":[ - {"shape":"ReservedDBInstancesOfferingNotFoundFault"} - ] - }, - "DownloadDBLogFilePortion":{ - "name":"DownloadDBLogFilePortion", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DownloadDBLogFilePortionMessage"}, - "output":{ - "shape":"DownloadDBLogFilePortionDetails", - "resultWrapper":"DownloadDBLogFilePortionResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBLogFileNotFoundFault"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceMessage"}, - "output":{ - "shape":"TagListMessage", - "resultWrapper":"ListTagsForResourceResult" - }, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "ModifyDBInstance":{ - "name":"ModifyDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBInstanceMessage"}, - "output":{ - "shape":"ModifyDBInstanceResult", - "resultWrapper":"ModifyDBInstanceResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"}, - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"DBUpgradeDependencyFailureFault"}, - {"shape":"StorageTypeNotSupportedFault"}, - {"shape":"AuthorizationNotFoundFault"} - ] - }, - "ModifyDBParameterGroup":{ - "name":"ModifyDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBParameterGroupMessage"}, - "output":{ - "shape":"DBParameterGroupNameMessage", - "resultWrapper":"ModifyDBParameterGroupResult" - }, - "errors":[ - {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"InvalidDBParameterGroupStateFault"} - ] - }, - "ModifyDBSubnetGroup":{ - "name":"ModifyDBSubnetGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDBSubnetGroupMessage"}, - "output":{ - "shape":"ModifyDBSubnetGroupResult", - "resultWrapper":"ModifyDBSubnetGroupResult" - }, - "errors":[ - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetQuotaExceededFault"}, - {"shape":"SubnetAlreadyInUse"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"} - ] - }, - "ModifyEventSubscription":{ - "name":"ModifyEventSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyEventSubscriptionMessage"}, - "output":{ - "shape":"ModifyEventSubscriptionResult", - "resultWrapper":"ModifyEventSubscriptionResult" - }, - "errors":[ - {"shape":"EventSubscriptionQuotaExceededFault"}, - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SNSInvalidTopicFault"}, - {"shape":"SNSNoAuthorizationFault"}, - {"shape":"SNSTopicArnNotFoundFault"}, - {"shape":"SubscriptionCategoryNotFoundFault"} - ] - }, - "ModifyOptionGroup":{ - "name":"ModifyOptionGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyOptionGroupMessage"}, - "output":{ - "shape":"ModifyOptionGroupResult", - "resultWrapper":"ModifyOptionGroupResult" - }, - "errors":[ - {"shape":"InvalidOptionGroupStateFault"}, - {"shape":"OptionGroupNotFoundFault"} - ] - }, - "PromoteReadReplica":{ - "name":"PromoteReadReplica", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PromoteReadReplicaMessage"}, - "output":{ - "shape":"PromoteReadReplicaResult", - "resultWrapper":"PromoteReadReplicaResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "PurchaseReservedDBInstancesOffering":{ - "name":"PurchaseReservedDBInstancesOffering", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PurchaseReservedDBInstancesOfferingMessage"}, - "output":{ - "shape":"PurchaseReservedDBInstancesOfferingResult", - "resultWrapper":"PurchaseReservedDBInstancesOfferingResult" - }, - "errors":[ - {"shape":"ReservedDBInstancesOfferingNotFoundFault"}, - {"shape":"ReservedDBInstanceAlreadyExistsFault"}, - {"shape":"ReservedDBInstanceQuotaExceededFault"} - ] - }, - "RebootDBInstance":{ - "name":"RebootDBInstance", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RebootDBInstanceMessage"}, - "output":{ - "shape":"RebootDBInstanceResult", - "resultWrapper":"RebootDBInstanceResult" - }, - "errors":[ - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"DBInstanceNotFoundFault"} - ] - }, - "RemoveSourceIdentifierFromSubscription":{ - "name":"RemoveSourceIdentifierFromSubscription", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveSourceIdentifierFromSubscriptionMessage"}, - "output":{ - "shape":"RemoveSourceIdentifierFromSubscriptionResult", - "resultWrapper":"RemoveSourceIdentifierFromSubscriptionResult" - }, - "errors":[ - {"shape":"SubscriptionNotFoundFault"}, - {"shape":"SourceNotFoundFault"} - ] - }, - "RemoveTagsFromResource":{ - "name":"RemoveTagsFromResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RemoveTagsFromResourceMessage"}, - "errors":[ - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSnapshotNotFoundFault"} - ] - }, - "ResetDBParameterGroup":{ - "name":"ResetDBParameterGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ResetDBParameterGroupMessage"}, - "output":{ - "shape":"DBParameterGroupNameMessage", - "resultWrapper":"ResetDBParameterGroupResult" - }, - "errors":[ - {"shape":"InvalidDBParameterGroupStateFault"}, - {"shape":"DBParameterGroupNotFoundFault"} - ] - }, - "RestoreDBInstanceFromDBSnapshot":{ - "name":"RestoreDBInstanceFromDBSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreDBInstanceFromDBSnapshotMessage"}, - "output":{ - "shape":"RestoreDBInstanceFromDBSnapshotResult", - "resultWrapper":"RestoreDBInstanceFromDBSnapshotResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBSnapshotNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"InvalidDBSnapshotStateFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"StorageTypeNotSupportedFault"}, - {"shape":"AuthorizationNotFoundFault"} - ] - }, - "RestoreDBInstanceToPointInTime":{ - "name":"RestoreDBInstanceToPointInTime", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreDBInstanceToPointInTimeMessage"}, - "output":{ - "shape":"RestoreDBInstanceToPointInTimeResult", - "resultWrapper":"RestoreDBInstanceToPointInTimeResult" - }, - "errors":[ - {"shape":"DBInstanceAlreadyExistsFault"}, - {"shape":"DBInstanceNotFoundFault"}, - {"shape":"InstanceQuotaExceededFault"}, - {"shape":"InsufficientDBInstanceCapacityFault"}, - {"shape":"InvalidDBInstanceStateFault"}, - {"shape":"PointInTimeRestoreNotEnabledFault"}, - {"shape":"StorageQuotaExceededFault"}, - {"shape":"InvalidVPCNetworkStateFault"}, - {"shape":"InvalidRestoreFault"}, - {"shape":"DBSubnetGroupNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, - {"shape":"InvalidSubnet"}, - {"shape":"ProvisionedIopsNotAvailableInAZFault"}, - {"shape":"OptionGroupNotFoundFault"}, - {"shape":"StorageTypeNotSupportedFault"}, - {"shape":"AuthorizationNotFoundFault"} - ] - }, - "RevokeDBSecurityGroupIngress":{ - "name":"RevokeDBSecurityGroupIngress", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RevokeDBSecurityGroupIngressMessage"}, - "output":{ - "shape":"RevokeDBSecurityGroupIngressResult", - "resultWrapper":"RevokeDBSecurityGroupIngressResult" - }, - "errors":[ - {"shape":"DBSecurityGroupNotFoundFault"}, - {"shape":"AuthorizationNotFoundFault"}, - {"shape":"InvalidDBSecurityGroupStateFault"} - ] - } - }, - "shapes":{ - "AddSourceIdentifierToSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SourceIdentifier" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SourceIdentifier":{"shape":"String"} - } - }, - "AddSourceIdentifierToSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "AddTagsToResourceMessage":{ - "type":"structure", - "required":[ - "ResourceName", - "Tags" - ], - "members":{ - "ResourceName":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "ApplyMethod":{ - "type":"string", - "enum":[ - "immediate", - "pending-reboot" - ] - }, - "AuthorizationAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "AuthorizationNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "AuthorizationQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"AuthorizationQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "AuthorizeDBSecurityGroupIngressMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "CIDRIP":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "AuthorizeDBSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "AvailabilityZone":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"} - }, - "wrapper":true - }, - "AvailabilityZoneList":{ - "type":"list", - "member":{ - "shape":"AvailabilityZone", - "locationName":"AvailabilityZone" - } - }, - "Boolean":{"type":"boolean"}, - "BooleanOptional":{"type":"boolean"}, - "CharacterSet":{ - "type":"structure", - "members":{ - "CharacterSetName":{"shape":"String"}, - "CharacterSetDescription":{"shape":"String"} - } - }, - "CopyDBParameterGroupMessage":{ - "type":"structure", - "required":[ - "SourceDBParameterGroupIdentifier", - "TargetDBParameterGroupIdentifier", - "TargetDBParameterGroupDescription" - ], - "members":{ - "SourceDBParameterGroupIdentifier":{"shape":"String"}, - "TargetDBParameterGroupIdentifier":{"shape":"String"}, - "TargetDBParameterGroupDescription":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CopyDBParameterGroupResult":{ - "type":"structure", - "members":{ - "DBParameterGroup":{"shape":"DBParameterGroup"} - } - }, - "CopyDBSnapshotMessage":{ - "type":"structure", - "required":[ - "SourceDBSnapshotIdentifier", - "TargetDBSnapshotIdentifier" - ], - "members":{ - "SourceDBSnapshotIdentifier":{"shape":"String"}, - "TargetDBSnapshotIdentifier":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CopyDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "CopyOptionGroupMessage":{ - "type":"structure", - "required":[ - "SourceOptionGroupIdentifier", - "TargetOptionGroupIdentifier", - "TargetOptionGroupDescription" - ], - "members":{ - "SourceOptionGroupIdentifier":{"shape":"String"}, - "TargetOptionGroupIdentifier":{"shape":"String"}, - "TargetOptionGroupDescription":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CopyOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, - "CreateDBInstanceMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "AllocatedStorage", - "DBInstanceClass", - "Engine", - "MasterUsername", - "MasterUserPassword" - ], - "members":{ - "DBName":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "DBInstanceClass":{"shape":"String"}, - "Engine":{"shape":"String"}, - "MasterUsername":{"shape":"String"}, - "MasterUserPassword":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "DBParameterGroupName":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "CharacterSetName":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "Tags":{"shape":"TagList"}, - "StorageType":{"shape":"String"}, - "TdeCredentialArn":{"shape":"String"}, - "TdeCredentialPassword":{"shape":"String"} - } - }, - "CreateDBInstanceReadReplicaMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "SourceDBInstanceIdentifier" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "SourceDBInstanceIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "AvailabilityZone":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "Tags":{"shape":"TagList"}, - "DBSubnetGroupName":{"shape":"String"}, - "StorageType":{"shape":"String"} - } - }, - "CreateDBInstanceReadReplicaResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "CreateDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "CreateDBParameterGroupMessage":{ - "type":"structure", - "required":[ - "DBParameterGroupName", - "DBParameterGroupFamily", - "Description" - ], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "Description":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateDBParameterGroupResult":{ - "type":"structure", - "members":{ - "DBParameterGroup":{"shape":"DBParameterGroup"} - } - }, - "CreateDBSecurityGroupMessage":{ - "type":"structure", - "required":[ - "DBSecurityGroupName", - "DBSecurityGroupDescription" - ], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "DBSecurityGroupDescription":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateDBSecurityGroupResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "CreateDBSnapshotMessage":{ - "type":"structure", - "required":[ - "DBSnapshotIdentifier", - "DBInstanceIdentifier" - ], - "members":{ - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "CreateDBSubnetGroupMessage":{ - "type":"structure", - "required":[ - "DBSubnetGroupName", - "DBSubnetGroupDescription", - "SubnetIds" - ], - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "SubnetIds":{"shape":"SubnetIdentifierList"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateDBSubnetGroupResult":{ - "type":"structure", - "members":{ - "DBSubnetGroup":{"shape":"DBSubnetGroup"} - } - }, - "CreateEventSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SnsTopicArn" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "SourceIds":{"shape":"SourceIdsList"}, - "Enabled":{"shape":"BooleanOptional"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "CreateOptionGroupMessage":{ - "type":"structure", - "required":[ - "OptionGroupName", - "EngineName", - "MajorEngineVersion", - "OptionGroupDescription" - ], - "members":{ - "OptionGroupName":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "OptionGroupDescription":{"shape":"String"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, - "DBEngineVersion":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "DBEngineDescription":{"shape":"String"}, - "DBEngineVersionDescription":{"shape":"String"}, - "DefaultCharacterSet":{"shape":"CharacterSet"}, - "SupportedCharacterSets":{"shape":"SupportedCharacterSetsList"} - } - }, - "DBEngineVersionList":{ - "type":"list", - "member":{ - "shape":"DBEngineVersion", - "locationName":"DBEngineVersion" - } - }, - "DBEngineVersionMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBEngineVersions":{"shape":"DBEngineVersionList"} - } - }, - "DBInstance":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Engine":{"shape":"String"}, - "DBInstanceStatus":{"shape":"String"}, - "MasterUsername":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Endpoint":{"shape":"Endpoint"}, - "AllocatedStorage":{"shape":"Integer"}, - "InstanceCreateTime":{"shape":"TStamp"}, - "PreferredBackupWindow":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"Integer"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupMembershipList"}, - "VpcSecurityGroups":{"shape":"VpcSecurityGroupMembershipList"}, - "DBParameterGroups":{"shape":"DBParameterGroupStatusList"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroup":{"shape":"DBSubnetGroup"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "PendingModifiedValues":{"shape":"PendingModifiedValues"}, - "LatestRestorableTime":{"shape":"TStamp"}, - "MultiAZ":{"shape":"Boolean"}, - "EngineVersion":{"shape":"String"}, - "AutoMinorVersionUpgrade":{"shape":"Boolean"}, - "ReadReplicaSourceDBInstanceIdentifier":{"shape":"String"}, - "ReadReplicaDBInstanceIdentifiers":{"shape":"ReadReplicaDBInstanceIdentifierList"}, - "LicenseModel":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupMemberships":{"shape":"OptionGroupMembershipList"}, - "CharacterSetName":{"shape":"String"}, - "SecondaryAvailabilityZone":{"shape":"String"}, - "PubliclyAccessible":{"shape":"Boolean"}, - "StatusInfos":{"shape":"DBInstanceStatusInfoList"}, - "StorageType":{"shape":"String"}, - "TdeCredentialArn":{"shape":"String"} - }, - "wrapper":true - }, - "DBInstanceAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBInstanceAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBInstanceList":{ - "type":"list", - "member":{ - "shape":"DBInstance", - "locationName":"DBInstance" - } - }, - "DBInstanceMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBInstances":{"shape":"DBInstanceList"} - } - }, - "DBInstanceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBInstanceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBInstanceStatusInfo":{ - "type":"structure", - "members":{ - "StatusType":{"shape":"String"}, - "Normal":{"shape":"Boolean"}, - "Status":{"shape":"String"}, - "Message":{"shape":"String"} - } - }, - "DBInstanceStatusInfoList":{ - "type":"list", - "member":{ - "shape":"DBInstanceStatusInfo", - "locationName":"DBInstanceStatusInfo" - } - }, - "DBLogFileNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBLogFileNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroup":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "Description":{"shape":"String"} - }, - "wrapper":true - }, - "DBParameterGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupDetails":{ - "type":"structure", - "members":{ - "Parameters":{"shape":"ParametersList"}, - "Marker":{"shape":"String"} - } - }, - "DBParameterGroupList":{ - "type":"list", - "member":{ - "shape":"DBParameterGroup", - "locationName":"DBParameterGroup" - } - }, - "DBParameterGroupNameMessage":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"} - } - }, - "DBParameterGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBParameterGroupQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBParameterGroupStatus":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "ParameterApplyStatus":{"shape":"String"} - } - }, - "DBParameterGroupStatusList":{ - "type":"list", - "member":{ - "shape":"DBParameterGroupStatus", - "locationName":"DBParameterGroup" - } - }, - "DBParameterGroupsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBParameterGroups":{"shape":"DBParameterGroupList"} - } - }, - "DBSecurityGroup":{ - "type":"structure", - "members":{ - "OwnerId":{"shape":"String"}, - "DBSecurityGroupName":{"shape":"String"}, - "DBSecurityGroupDescription":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "EC2SecurityGroups":{"shape":"EC2SecurityGroupList"}, - "IPRanges":{"shape":"IPRangeList"} - }, - "wrapper":true - }, - "DBSecurityGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupMembership":{ - "type":"structure", - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "DBSecurityGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"DBSecurityGroupMembership", - "locationName":"DBSecurityGroup" - } - }, - "DBSecurityGroupMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroups"} - } - }, - "DBSecurityGroupNameList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"DBSecurityGroupName" - } - }, - "DBSecurityGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupNotSupportedFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSecurityGroupNotSupported", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"QuotaExceeded.DBSecurityGroup", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSecurityGroups":{ - "type":"list", - "member":{ - "shape":"DBSecurityGroup", - "locationName":"DBSecurityGroup" - } - }, - "DBSnapshot":{ - "type":"structure", - "members":{ - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceIdentifier":{"shape":"String"}, - "SnapshotCreateTime":{"shape":"TStamp"}, - "Engine":{"shape":"String"}, - "AllocatedStorage":{"shape":"Integer"}, - "Status":{"shape":"String"}, - "Port":{"shape":"Integer"}, - "AvailabilityZone":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "InstanceCreateTime":{"shape":"TStamp"}, - "MasterUsername":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "SnapshotType":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "PercentProgress":{"shape":"Integer"}, - "SourceRegion":{"shape":"String"}, - "StorageType":{"shape":"String"}, - "TdeCredentialArn":{"shape":"String"} - }, - "wrapper":true - }, - "DBSnapshotAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSnapshotAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSnapshotList":{ - "type":"list", - "member":{ - "shape":"DBSnapshot", - "locationName":"DBSnapshot" - } - }, - "DBSnapshotMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSnapshots":{"shape":"DBSnapshotList"} - } - }, - "DBSnapshotNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSnapshotNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroup":{ - "type":"structure", - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "VpcId":{"shape":"String"}, - "SubnetGroupStatus":{"shape":"String"}, - "Subnets":{"shape":"SubnetList"} - }, - "wrapper":true - }, - "DBSubnetGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupAlreadyExists", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupDoesNotCoverEnoughAZs":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupDoesNotCoverEnoughAZs", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "DBSubnetGroups":{"shape":"DBSubnetGroups"} - } - }, - "DBSubnetGroupNotAllowedFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupNotAllowedFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetGroupQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBSubnetGroups":{ - "type":"list", - "member":{ - "shape":"DBSubnetGroup", - "locationName":"DBSubnetGroup" - } - }, - "DBSubnetQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBSubnetQuotaExceededFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DBUpgradeDependencyFailureFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"DBUpgradeDependencyFailure", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "DeleteDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "SkipFinalSnapshot":{"shape":"Boolean"}, - "FinalDBSnapshotIdentifier":{"shape":"String"} - } - }, - "DeleteDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "DeleteDBParameterGroupMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"} - } - }, - "DeleteDBSecurityGroupMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"} - } - }, - "DeleteDBSnapshotMessage":{ - "type":"structure", - "required":["DBSnapshotIdentifier"], - "members":{ - "DBSnapshotIdentifier":{"shape":"String"} - } - }, - "DeleteDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBSnapshot":{"shape":"DBSnapshot"} - } - }, - "DeleteDBSubnetGroupMessage":{ - "type":"structure", - "required":["DBSubnetGroupName"], - "members":{ - "DBSubnetGroupName":{"shape":"String"} - } - }, - "DeleteEventSubscriptionMessage":{ - "type":"structure", - "required":["SubscriptionName"], - "members":{ - "SubscriptionName":{"shape":"String"} - } - }, - "DeleteEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "DeleteOptionGroupMessage":{ - "type":"structure", - "required":["OptionGroupName"], - "members":{ - "OptionGroupName":{"shape":"String"} - } - }, - "DescribeDBEngineVersionsMessage":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBParameterGroupFamily":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"}, - "DefaultOnly":{"shape":"Boolean"}, - "ListSupportedCharacterSets":{"shape":"BooleanOptional"} - } - }, - "DescribeDBInstancesMessage":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBLogFilesDetails":{ - "type":"structure", - "members":{ - "LogFileName":{"shape":"String"}, - "LastWritten":{"shape":"Long"}, - "Size":{"shape":"Long"} - } - }, - "DescribeDBLogFilesList":{ - "type":"list", - "member":{ - "shape":"DescribeDBLogFilesDetails", - "locationName":"DescribeDBLogFilesDetails" - } - }, - "DescribeDBLogFilesMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "FilenameContains":{"shape":"String"}, - "FileLastWritten":{"shape":"Long"}, - "FileSize":{"shape":"Long"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBLogFilesResponse":{ - "type":"structure", - "members":{ - "DescribeDBLogFiles":{"shape":"DescribeDBLogFilesList"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBParameterGroupsMessage":{ - "type":"structure", - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBParametersMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "Source":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSecurityGroupsMessage":{ - "type":"structure", - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSnapshotsMessage":{ - "type":"structure", - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBSnapshotIdentifier":{"shape":"String"}, - "SnapshotType":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeDBSubnetGroupsMessage":{ - "type":"structure", - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEngineDefaultParametersMessage":{ - "type":"structure", - "required":["DBParameterGroupFamily"], - "members":{ - "DBParameterGroupFamily":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEngineDefaultParametersResult":{ - "type":"structure", - "members":{ - "EngineDefaults":{"shape":"EngineDefaults"} - } - }, - "DescribeEventCategoriesMessage":{ - "type":"structure", - "members":{ - "SourceType":{"shape":"String"}, - "Filters":{"shape":"FilterList"} - } - }, - "DescribeEventSubscriptionsMessage":{ - "type":"structure", - "members":{ - "SubscriptionName":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeEventsMessage":{ - "type":"structure", - "members":{ - "SourceIdentifier":{"shape":"String"}, - "SourceType":{"shape":"SourceType"}, - "StartTime":{"shape":"TStamp"}, - "EndTime":{"shape":"TStamp"}, - "Duration":{"shape":"IntegerOptional"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeOptionGroupOptionsMessage":{ - "type":"structure", - "required":["EngineName"], - "members":{ - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeOptionGroupsMessage":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "Filters":{"shape":"FilterList"}, - "Marker":{"shape":"String"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"} - } - }, - "DescribeOrderableDBInstanceOptionsMessage":{ - "type":"structure", - "required":["Engine"], - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "Vpc":{"shape":"BooleanOptional"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReservedDBInstancesMessage":{ - "type":"structure", - "members":{ - "ReservedDBInstanceId":{"shape":"String"}, - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "DescribeReservedDBInstancesOfferingsMessage":{ - "type":"structure", - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "Filters":{"shape":"FilterList"}, - "MaxRecords":{"shape":"IntegerOptional"}, - "Marker":{"shape":"String"} - } - }, - "Double":{"type":"double"}, - "DownloadDBLogFilePortionDetails":{ - "type":"structure", - "members":{ - "LogFileData":{"shape":"String"}, - "Marker":{"shape":"String"}, - "AdditionalDataPending":{"shape":"Boolean"} - } - }, - "DownloadDBLogFilePortionMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "LogFileName" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "LogFileName":{"shape":"String"}, - "Marker":{"shape":"String"}, - "NumberOfLines":{"shape":"Integer"} - } - }, - "EC2SecurityGroup":{ - "type":"structure", - "members":{ - "Status":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "EC2SecurityGroupList":{ - "type":"list", - "member":{ - "shape":"EC2SecurityGroup", - "locationName":"EC2SecurityGroup" - } - }, - "Endpoint":{ - "type":"structure", - "members":{ - "Address":{"shape":"String"}, - "Port":{"shape":"Integer"} - } - }, - "EngineDefaults":{ - "type":"structure", - "members":{ - "DBParameterGroupFamily":{"shape":"String"}, - "Marker":{"shape":"String"}, - "Parameters":{"shape":"ParametersList"} - }, - "wrapper":true - }, - "Event":{ - "type":"structure", - "members":{ - "SourceIdentifier":{"shape":"String"}, - "SourceType":{"shape":"SourceType"}, - "Message":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "Date":{"shape":"TStamp"} - } - }, - "EventCategoriesList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"EventCategory" - } - }, - "EventCategoriesMap":{ - "type":"structure", - "members":{ - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"} - }, - "wrapper":true - }, - "EventCategoriesMapList":{ - "type":"list", - "member":{ - "shape":"EventCategoriesMap", - "locationName":"EventCategoriesMap" - } - }, - "EventCategoriesMessage":{ - "type":"structure", - "members":{ - "EventCategoriesMapList":{"shape":"EventCategoriesMapList"} - } - }, - "EventList":{ - "type":"list", - "member":{ - "shape":"Event", - "locationName":"Event" - } - }, - "EventSubscription":{ - "type":"structure", - "members":{ - "CustomerAwsId":{"shape":"String"}, - "CustSubscriptionId":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "Status":{"shape":"String"}, - "SubscriptionCreationTime":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "SourceIdsList":{"shape":"SourceIdsList"}, - "EventCategoriesList":{"shape":"EventCategoriesList"}, - "Enabled":{"shape":"Boolean"} - }, - "wrapper":true - }, - "EventSubscriptionQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"EventSubscriptionQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "EventSubscriptionsList":{ - "type":"list", - "member":{ - "shape":"EventSubscription", - "locationName":"EventSubscription" - } - }, - "EventSubscriptionsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "EventSubscriptionsList":{"shape":"EventSubscriptionsList"} - } - }, - "EventsMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "Events":{"shape":"EventList"} - } - }, - "Filter":{ - "type":"structure", - "required":[ - "Name", - "Values" - ], - "members":{ - "Name":{"shape":"String"}, - "Values":{"shape":"FilterValueList"} - } - }, - "FilterList":{ - "type":"list", - "member":{ - "shape":"Filter", - "locationName":"Filter" - } - }, - "FilterValueList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"Value" - } - }, - "IPRange":{ - "type":"structure", - "members":{ - "Status":{"shape":"String"}, - "CIDRIP":{"shape":"String"} - } - }, - "IPRangeList":{ - "type":"list", - "member":{ - "shape":"IPRange", - "locationName":"IPRange" - } - }, - "InstanceQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InstanceQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InsufficientDBInstanceCapacityFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InsufficientDBInstanceCapacity", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "Integer":{"type":"integer"}, - "IntegerOptional":{"type":"integer"}, - "InvalidDBInstanceStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBInstanceState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBParameterGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBParameterGroupState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSecurityGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSecurityGroupState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSnapshotStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSnapshotState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSubnetGroupFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSubnetGroupFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSubnetGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSubnetGroupStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidDBSubnetStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidDBSubnetStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidEventSubscriptionStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidEventSubscriptionState", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidOptionGroupStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidOptionGroupStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidRestoreFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidRestoreFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidSubnet":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidSubnet", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "InvalidVPCNetworkStateFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"InvalidVPCNetworkStateFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "KeyList":{ - "type":"list", - "member":{"shape":"String"} - }, - "ListTagsForResourceMessage":{ - "type":"structure", - "required":["ResourceName"], - "members":{ - "ResourceName":{"shape":"String"}, - "Filters":{"shape":"FilterList"} - } - }, - "Long":{"type":"long"}, - "ModifyDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "DBInstanceClass":{"shape":"String"}, - "DBSecurityGroups":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "ApplyImmediately":{"shape":"Boolean"}, - "MasterUserPassword":{"shape":"String"}, - "DBParameterGroupName":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"}, - "PreferredMaintenanceWindow":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "AllowMajorVersionUpgrade":{"shape":"Boolean"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "NewDBInstanceIdentifier":{"shape":"String"}, - "StorageType":{"shape":"String"}, - "TdeCredentialArn":{"shape":"String"}, - "TdeCredentialPassword":{"shape":"String"} - } - }, - "ModifyDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "ModifyDBParameterGroupMessage":{ - "type":"structure", - "required":[ - "DBParameterGroupName", - "Parameters" - ], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "Parameters":{"shape":"ParametersList"} - } - }, - "ModifyDBSubnetGroupMessage":{ - "type":"structure", - "required":[ - "DBSubnetGroupName", - "SubnetIds" - ], - "members":{ - "DBSubnetGroupName":{"shape":"String"}, - "DBSubnetGroupDescription":{"shape":"String"}, - "SubnetIds":{"shape":"SubnetIdentifierList"} - } - }, - "ModifyDBSubnetGroupResult":{ - "type":"structure", - "members":{ - "DBSubnetGroup":{"shape":"DBSubnetGroup"} - } - }, - "ModifyEventSubscriptionMessage":{ - "type":"structure", - "required":["SubscriptionName"], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SnsTopicArn":{"shape":"String"}, - "SourceType":{"shape":"String"}, - "EventCategories":{"shape":"EventCategoriesList"}, - "Enabled":{"shape":"BooleanOptional"} - } - }, - "ModifyEventSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "ModifyOptionGroupMessage":{ - "type":"structure", - "required":["OptionGroupName"], - "members":{ - "OptionGroupName":{"shape":"String"}, - "OptionsToInclude":{"shape":"OptionConfigurationList"}, - "OptionsToRemove":{"shape":"OptionNamesList"}, - "ApplyImmediately":{"shape":"Boolean"} - } - }, - "ModifyOptionGroupResult":{ - "type":"structure", - "members":{ - "OptionGroup":{"shape":"OptionGroup"} - } - }, - "Option":{ - "type":"structure", - "members":{ - "OptionName":{"shape":"String"}, - "OptionDescription":{"shape":"String"}, - "Persistent":{"shape":"Boolean"}, - "Permanent":{"shape":"Boolean"}, - "Port":{"shape":"IntegerOptional"}, - "OptionSettings":{"shape":"OptionSettingConfigurationList"}, - "DBSecurityGroupMemberships":{"shape":"DBSecurityGroupMembershipList"}, - "VpcSecurityGroupMemberships":{"shape":"VpcSecurityGroupMembershipList"} - } - }, - "OptionConfiguration":{ - "type":"structure", - "required":["OptionName"], - "members":{ - "OptionName":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "DBSecurityGroupMemberships":{"shape":"DBSecurityGroupNameList"}, - "VpcSecurityGroupMemberships":{"shape":"VpcSecurityGroupIdList"}, - "OptionSettings":{"shape":"OptionSettingsList"} - } - }, - "OptionConfigurationList":{ - "type":"list", - "member":{ - "shape":"OptionConfiguration", - "locationName":"OptionConfiguration" - } - }, - "OptionGroup":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "OptionGroupDescription":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "Options":{"shape":"OptionsList"}, - "AllowsVpcAndNonVpcInstanceMemberships":{"shape":"Boolean"}, - "VpcId":{"shape":"String"} - }, - "wrapper":true - }, - "OptionGroupAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupAlreadyExistsFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "OptionGroupMembership":{ - "type":"structure", - "members":{ - "OptionGroupName":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "OptionGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"OptionGroupMembership", - "locationName":"OptionGroupMembership" - } - }, - "OptionGroupNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupNotFoundFault", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "OptionGroupOption":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "Description":{"shape":"String"}, - "EngineName":{"shape":"String"}, - "MajorEngineVersion":{"shape":"String"}, - "MinimumRequiredMinorEngineVersion":{"shape":"String"}, - "PortRequired":{"shape":"Boolean"}, - "DefaultPort":{"shape":"IntegerOptional"}, - "OptionsDependedOn":{"shape":"OptionsDependedOn"}, - "Persistent":{"shape":"Boolean"}, - "Permanent":{"shape":"Boolean"}, - "OptionGroupOptionSettings":{"shape":"OptionGroupOptionSettingsList"} - } - }, - "OptionGroupOptionSetting":{ - "type":"structure", - "members":{ - "SettingName":{"shape":"String"}, - "SettingDescription":{"shape":"String"}, - "DefaultValue":{"shape":"String"}, - "ApplyType":{"shape":"String"}, - "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"} - } - }, - "OptionGroupOptionSettingsList":{ - "type":"list", - "member":{ - "shape":"OptionGroupOptionSetting", - "locationName":"OptionGroupOptionSetting" - } - }, - "OptionGroupOptionsList":{ - "type":"list", - "member":{ - "shape":"OptionGroupOption", - "locationName":"OptionGroupOption" - } - }, - "OptionGroupOptionsMessage":{ - "type":"structure", - "members":{ - "OptionGroupOptions":{"shape":"OptionGroupOptionsList"}, - "Marker":{"shape":"String"} - } - }, - "OptionGroupQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"OptionGroupQuotaExceededFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "OptionGroups":{ - "type":"structure", - "members":{ - "OptionGroupsList":{"shape":"OptionGroupsList"}, - "Marker":{"shape":"String"} - } - }, - "OptionGroupsList":{ - "type":"list", - "member":{ - "shape":"OptionGroup", - "locationName":"OptionGroup" - } - }, - "OptionNamesList":{ - "type":"list", - "member":{"shape":"String"} - }, - "OptionSetting":{ - "type":"structure", - "members":{ - "Name":{"shape":"String"}, - "Value":{"shape":"String"}, - "DefaultValue":{"shape":"String"}, - "Description":{"shape":"String"}, - "ApplyType":{"shape":"String"}, - "DataType":{"shape":"String"}, - "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"}, - "IsCollection":{"shape":"Boolean"} - } - }, - "OptionSettingConfigurationList":{ - "type":"list", - "member":{ - "shape":"OptionSetting", - "locationName":"OptionSetting" - } - }, - "OptionSettingsList":{ - "type":"list", - "member":{ - "shape":"OptionSetting", - "locationName":"OptionSetting" - } - }, - "OptionsDependedOn":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"OptionName" - } - }, - "OptionsList":{ - "type":"list", - "member":{ - "shape":"Option", - "locationName":"Option" - } - }, - "OrderableDBInstanceOption":{ - "type":"structure", - "members":{ - "Engine":{"shape":"String"}, - "EngineVersion":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "LicenseModel":{"shape":"String"}, - "AvailabilityZones":{"shape":"AvailabilityZoneList"}, - "MultiAZCapable":{"shape":"Boolean"}, - "ReadReplicaCapable":{"shape":"Boolean"}, - "Vpc":{"shape":"Boolean"}, - "StorageType":{"shape":"String"}, - "SupportsIops":{"shape":"Boolean"} - }, - "wrapper":true - }, - "OrderableDBInstanceOptionsList":{ - "type":"list", - "member":{ - "shape":"OrderableDBInstanceOption", - "locationName":"OrderableDBInstanceOption" - } - }, - "OrderableDBInstanceOptionsMessage":{ - "type":"structure", - "members":{ - "OrderableDBInstanceOptions":{"shape":"OrderableDBInstanceOptionsList"}, - "Marker":{"shape":"String"} - } - }, - "Parameter":{ - "type":"structure", - "members":{ - "ParameterName":{"shape":"String"}, - "ParameterValue":{"shape":"String"}, - "Description":{"shape":"String"}, - "Source":{"shape":"String"}, - "ApplyType":{"shape":"String"}, - "DataType":{"shape":"String"}, - "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"}, - "MinimumEngineVersion":{"shape":"String"}, - "ApplyMethod":{"shape":"ApplyMethod"} - } - }, - "ParametersList":{ - "type":"list", - "member":{ - "shape":"Parameter", - "locationName":"Parameter" - } - }, - "PendingModifiedValues":{ - "type":"structure", - "members":{ - "DBInstanceClass":{"shape":"String"}, - "AllocatedStorage":{"shape":"IntegerOptional"}, - "MasterUserPassword":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "EngineVersion":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "DBInstanceIdentifier":{"shape":"String"}, - "StorageType":{"shape":"String"} - } - }, - "PointInTimeRestoreNotEnabledFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"PointInTimeRestoreNotEnabled", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "PromoteReadReplicaMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "BackupRetentionPeriod":{"shape":"IntegerOptional"}, - "PreferredBackupWindow":{"shape":"String"} - } - }, - "PromoteReadReplicaResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "ProvisionedIopsNotAvailableInAZFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ProvisionedIopsNotAvailableInAZFault", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "PurchaseReservedDBInstancesOfferingMessage":{ - "type":"structure", - "required":["ReservedDBInstancesOfferingId"], - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "ReservedDBInstanceId":{"shape":"String"}, - "DBInstanceCount":{"shape":"IntegerOptional"}, - "Tags":{"shape":"TagList"} - } - }, - "PurchaseReservedDBInstancesOfferingResult":{ - "type":"structure", - "members":{ - "ReservedDBInstance":{"shape":"ReservedDBInstance"} - } - }, - "ReadReplicaDBInstanceIdentifierList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"ReadReplicaDBInstanceIdentifier" - } - }, - "RebootDBInstanceMessage":{ - "type":"structure", - "required":["DBInstanceIdentifier"], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "ForceFailover":{"shape":"BooleanOptional"} - } - }, - "RebootDBInstanceResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RecurringCharge":{ - "type":"structure", - "members":{ - "RecurringChargeAmount":{"shape":"Double"}, - "RecurringChargeFrequency":{"shape":"String"} - }, - "wrapper":true - }, - "RecurringChargeList":{ - "type":"list", - "member":{ - "shape":"RecurringCharge", - "locationName":"RecurringCharge" - } - }, - "RemoveSourceIdentifierFromSubscriptionMessage":{ - "type":"structure", - "required":[ - "SubscriptionName", - "SourceIdentifier" - ], - "members":{ - "SubscriptionName":{"shape":"String"}, - "SourceIdentifier":{"shape":"String"} - } - }, - "RemoveSourceIdentifierFromSubscriptionResult":{ - "type":"structure", - "members":{ - "EventSubscription":{"shape":"EventSubscription"} - } - }, - "RemoveTagsFromResourceMessage":{ - "type":"structure", - "required":[ - "ResourceName", - "TagKeys" - ], - "members":{ - "ResourceName":{"shape":"String"}, - "TagKeys":{"shape":"KeyList"} - } - }, - "ReservedDBInstance":{ - "type":"structure", - "members":{ - "ReservedDBInstanceId":{"shape":"String"}, - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "StartTime":{"shape":"TStamp"}, - "Duration":{"shape":"Integer"}, - "FixedPrice":{"shape":"Double"}, - "UsagePrice":{"shape":"Double"}, - "CurrencyCode":{"shape":"String"}, - "DBInstanceCount":{"shape":"Integer"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"Boolean"}, - "State":{"shape":"String"}, - "RecurringCharges":{"shape":"RecurringChargeList"} - }, - "wrapper":true - }, - "ReservedDBInstanceAlreadyExistsFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceAlreadyExists", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstanceList":{ - "type":"list", - "member":{ - "shape":"ReservedDBInstance", - "locationName":"ReservedDBInstance" - } - }, - "ReservedDBInstanceMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReservedDBInstances":{"shape":"ReservedDBInstanceList"} - } - }, - "ReservedDBInstanceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstanceQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstanceQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "ReservedDBInstancesOffering":{ - "type":"structure", - "members":{ - "ReservedDBInstancesOfferingId":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Duration":{"shape":"Integer"}, - "FixedPrice":{"shape":"Double"}, - "UsagePrice":{"shape":"Double"}, - "CurrencyCode":{"shape":"String"}, - "ProductDescription":{"shape":"String"}, - "OfferingType":{"shape":"String"}, - "MultiAZ":{"shape":"Boolean"}, - "RecurringCharges":{"shape":"RecurringChargeList"} - }, - "wrapper":true - }, - "ReservedDBInstancesOfferingList":{ - "type":"list", - "member":{ - "shape":"ReservedDBInstancesOffering", - "locationName":"ReservedDBInstancesOffering" - } - }, - "ReservedDBInstancesOfferingMessage":{ - "type":"structure", - "members":{ - "Marker":{"shape":"String"}, - "ReservedDBInstancesOfferings":{"shape":"ReservedDBInstancesOfferingList"} - } - }, - "ReservedDBInstancesOfferingNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"ReservedDBInstancesOfferingNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ResetDBParameterGroupMessage":{ - "type":"structure", - "required":["DBParameterGroupName"], - "members":{ - "DBParameterGroupName":{"shape":"String"}, - "ResetAllParameters":{"shape":"Boolean"}, - "Parameters":{"shape":"ParametersList"} - } - }, - "RestoreDBInstanceFromDBSnapshotMessage":{ - "type":"structure", - "required":[ - "DBInstanceIdentifier", - "DBSnapshotIdentifier" - ], - "members":{ - "DBInstanceIdentifier":{"shape":"String"}, - "DBSnapshotIdentifier":{"shape":"String"}, - "DBInstanceClass":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Engine":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "Tags":{"shape":"TagList"}, - "StorageType":{"shape":"String"}, - "TdeCredentialArn":{"shape":"String"}, - "TdeCredentialPassword":{"shape":"String"} - } - }, - "RestoreDBInstanceFromDBSnapshotResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RestoreDBInstanceToPointInTimeMessage":{ - "type":"structure", - "required":[ - "SourceDBInstanceIdentifier", - "TargetDBInstanceIdentifier" - ], - "members":{ - "SourceDBInstanceIdentifier":{"shape":"String"}, - "TargetDBInstanceIdentifier":{"shape":"String"}, - "RestoreTime":{"shape":"TStamp"}, - "UseLatestRestorableTime":{"shape":"Boolean"}, - "DBInstanceClass":{"shape":"String"}, - "Port":{"shape":"IntegerOptional"}, - "AvailabilityZone":{"shape":"String"}, - "DBSubnetGroupName":{"shape":"String"}, - "MultiAZ":{"shape":"BooleanOptional"}, - "PubliclyAccessible":{"shape":"BooleanOptional"}, - "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, - "LicenseModel":{"shape":"String"}, - "DBName":{"shape":"String"}, - "Engine":{"shape":"String"}, - "Iops":{"shape":"IntegerOptional"}, - "OptionGroupName":{"shape":"String"}, - "Tags":{"shape":"TagList"}, - "StorageType":{"shape":"String"}, - "TdeCredentialArn":{"shape":"String"}, - "TdeCredentialPassword":{"shape":"String"} - } - }, - "RestoreDBInstanceToPointInTimeResult":{ - "type":"structure", - "members":{ - "DBInstance":{"shape":"DBInstance"} - } - }, - "RevokeDBSecurityGroupIngressMessage":{ - "type":"structure", - "required":["DBSecurityGroupName"], - "members":{ - "DBSecurityGroupName":{"shape":"String"}, - "CIDRIP":{"shape":"String"}, - "EC2SecurityGroupName":{"shape":"String"}, - "EC2SecurityGroupId":{"shape":"String"}, - "EC2SecurityGroupOwnerId":{"shape":"String"} - } - }, - "RevokeDBSecurityGroupIngressResult":{ - "type":"structure", - "members":{ - "DBSecurityGroup":{"shape":"DBSecurityGroup"} - } - }, - "SNSInvalidTopicFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSInvalidTopic", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SNSNoAuthorizationFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSNoAuthorization", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SNSTopicArnNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SNSTopicArnNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SnapshotQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SnapshotQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SourceIdsList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SourceId" - } - }, - "SourceNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SourceNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SourceType":{ - "type":"string", - "enum":[ - "db-instance", - "db-parameter-group", - "db-security-group", - "db-snapshot" - ] - }, - "StorageQuotaExceededFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"StorageQuotaExceeded", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "StorageTypeNotSupportedFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"StorageTypeNotSupported", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "String":{"type":"string"}, - "Subnet":{ - "type":"structure", - "members":{ - "SubnetIdentifier":{"shape":"String"}, - "SubnetAvailabilityZone":{"shape":"AvailabilityZone"}, - "SubnetStatus":{"shape":"String"} - } - }, - "SubnetAlreadyInUse":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubnetAlreadyInUse", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SubnetIdentifierList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"SubnetIdentifier" - } - }, - "SubnetList":{ - "type":"list", - "member":{ - "shape":"Subnet", - "locationName":"Subnet" - } - }, - "SubscriptionAlreadyExistFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionAlreadyExist", - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "SubscriptionCategoryNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionCategoryNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SubscriptionNotFoundFault":{ - "type":"structure", - "members":{ - }, - "error":{ - "code":"SubscriptionNotFound", - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "SupportedCharacterSetsList":{ - "type":"list", - "member":{ - "shape":"CharacterSet", - "locationName":"CharacterSet" - } - }, - "TStamp":{"type":"timestamp"}, - "Tag":{ - "type":"structure", - "members":{ - "Key":{"shape":"String"}, - "Value":{"shape":"String"} - } - }, - "TagList":{ - "type":"list", - "member":{ - "shape":"Tag", - "locationName":"Tag" - } - }, - "TagListMessage":{ - "type":"structure", - "members":{ - "TagList":{"shape":"TagList"} - } - }, - "VpcSecurityGroupIdList":{ - "type":"list", - "member":{ - "shape":"String", - "locationName":"VpcSecurityGroupId" - } - }, - "VpcSecurityGroupMembership":{ - "type":"structure", - "members":{ - "VpcSecurityGroupId":{"shape":"String"}, - "Status":{"shape":"String"} - } - }, - "VpcSecurityGroupMembershipList":{ - "type":"list", - "member":{ - "shape":"VpcSecurityGroupMembership", - "locationName":"VpcSecurityGroupMembership" - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-09-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/docs-2.json deleted file mode 100644 index be59400d4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/docs-2.json +++ /dev/null @@ -1,2734 +0,0 @@ -{ - "version": "2.0", - "service": "Amazon Relational Database Service

    Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizeable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

    Amazon RDS gives you access to the capabilities of a MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, Oracle, or Amazon Aurora database server. These capabilities mean that the code, applications, and tools you already use today with your existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

    This interface reference for Amazon RDS contains documentation for a programming or command line interface you can use to manage Amazon RDS. Note that Amazon RDS is asynchronous, which means that some interfaces might require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. The reference structure is as follows, and we list following some related topics from the user guide.

    Amazon RDS API Reference

    Amazon RDS User Guide

    ", - "operations": { - "AddSourceIdentifierToSubscription": "

    Adds a source identifier to an existing RDS event notification subscription.

    ", - "AddTagsToResource": "

    Adds metadata tags to an Amazon RDS resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon RDS resources, or used in a Condition statement in an IAM policy for Amazon RDS.

    For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources.

    ", - "ApplyPendingMaintenanceAction": "

    Applies a pending maintenance action to a resource (for example, to a DB instance).

    ", - "AuthorizeDBSecurityGroupIngress": "

    Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

    You cannot authorize ingress from an EC2 security group in one region to an Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

    For an overview of CIDR ranges, go to the Wikipedia Tutorial.

    ", - "CopyDBClusterSnapshot": "

    Creates a snapshot of a DB cluster. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "CopyDBParameterGroup": "

    Copies the specified DB parameter group.

    ", - "CopyDBSnapshot": "

    Copies the specified DB snapshot. The source DB snapshot must be in the \"available\" state.

    If you are copying from a shared manual DB snapshot, the SourceDBSnapshotIdentifier must be the ARN of the shared DB snapshot.

    ", - "CopyOptionGroup": "

    Copies the specified option group.

    ", - "CreateDBCluster": "

    Creates a new Amazon Aurora DB cluster.

    You can use the ReplicationSourceIdentifier parameter to create the DB cluster as a Read Replica of another DB cluster.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "CreateDBClusterParameterGroup": "

    Creates a new DB cluster parameter group.

    Parameters in a DB cluster parameter group apply to all of the instances in a DB cluster.

    A DB cluster parameter group is initially created with the default parameters for the database engine used by instances in the DB cluster. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBClusterParameterGroup. Once you've created a DB cluster parameter group, you need to associate it with your DB cluster using ModifyDBCluster. When you associate a new DB cluster parameter group with a running DB cluster, you need to reboot the DB instances in the DB cluster without failover for the new DB cluster parameter group and associated settings to take effect.

    After you create a DB cluster parameter group, you should wait at least 5 minutes before creating your first DB cluster that uses that DB cluster parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the DB cluster parameter group is used as the default for a new DB cluster. This is especially important for parameters that are critical when creating the default database for a DB cluster, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBClusterParameters command to verify that your DB cluster parameter group has been created or modified.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "CreateDBClusterSnapshot": "

    Creates a snapshot of a DB cluster. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "CreateDBInstance": "

    Creates a new DB instance.

    ", - "CreateDBInstanceReadReplica": "

    Creates a DB instance for a DB instance running MySQL, MariaDB, or PostgreSQL that acts as a Read Replica of a source DB instance.

    All Read Replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance, except as specified below.

    The source DB instance must have backup retention enabled.

    ", - "CreateDBParameterGroup": "

    Creates a new DB parameter group.

    A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance. When you associate a new DB parameter group with a running DB instance, you need to reboot the DB instance without failover for the new DB parameter group and associated settings to take effect.

    After you create a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

    ", - "CreateDBSecurityGroup": "

    Creates a new DB security group. DB security groups control access to a DB instance.

    ", - "CreateDBSnapshot": "

    Creates a DBSnapshot. The source DBInstance must be in \"available\" state.

    ", - "CreateDBSubnetGroup": "

    Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

    ", - "CreateEventSubscription": "

    Creates an RDS event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the RDS console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

    You can specify the type of source (SourceType) you want to be notified of, provide a list of RDS sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

    If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you will receive notice of the events for that source type for all your RDS sources. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all RDS sources belonging to your customer account.

    ", - "CreateOptionGroup": "

    Creates a new option group. You can create up to 20 option groups.

    ", - "DeleteDBCluster": "

    The DeleteDBCluster action deletes a previously provisioned DB cluster. When you delete a DB cluster, all automated backups for that DB cluster are deleted and cannot be recovered. Manual DB cluster snapshots of the specified DB cluster are not deleted.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "DeleteDBClusterParameterGroup": "

    Deletes a specified DB cluster parameter group. The DB cluster parameter group to be deleted cannot be associated with any DB clusters.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "DeleteDBClusterSnapshot": "

    Deletes a DB cluster snapshot. If the snapshot is being copied, the copy operation is terminated.

    The DB cluster snapshot must be in the available state to be deleted.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "DeleteDBInstance": "

    The DeleteDBInstance action deletes a previously provisioned DB instance. When you delete a DB instance, all automated backups for that instance are deleted and cannot be recovered. Manual DB snapshots of the DB instance to be deleted are not deleted.

    If a final DB snapshot is requested the status of the RDS instance will be deleting until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action cannot be canceled or reverted once submitted.

    Note that when a DB instance is in a failure state and has a status of failed, incompatible-restore, or incompatible-network, it can only be deleted when the SkipFinalSnapshot parameter is set to true.

    ", - "DeleteDBParameterGroup": "

    Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted cannot be associated with any DB instances.

    ", - "DeleteDBSecurityGroup": "

    Deletes a DB security group.

    The specified DB security group must not be associated with any DB instances.

    ", - "DeleteDBSnapshot": "

    Deletes a DBSnapshot. If the snapshot is being copied, the copy operation is terminated.

    The DBSnapshot must be in the available state to be deleted.

    ", - "DeleteDBSubnetGroup": "

    Deletes a DB subnet group.

    The specified database subnet group must not be associated with any DB instances.

    ", - "DeleteEventSubscription": "

    Deletes an RDS event notification subscription.

    ", - "DeleteOptionGroup": "

    Deletes an existing option group.

    ", - "DescribeAccountAttributes": "

    Lists all of the attributes for a customer account. The attributes include Amazon RDS quotas for the account, such as the number of DB instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value.

    This command does not take any parameters.

    ", - "DescribeCertificates": "

    Lists the set of CA certificates provided by Amazon RDS for this AWS account.

    ", - "DescribeDBClusterParameterGroups": "

    Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName parameter is specified, the list will contain only the description of the specified DB cluster parameter group.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "DescribeDBClusterParameters": "

    Returns the detailed parameter list for a particular DB cluster parameter group.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "DescribeDBClusterSnapshotAttributes": "

    Returns a list of DB cluster snapshot attribute names and values for a manual DB cluster snapshot.

    When sharing snapshots with other AWS accounts, DescribeDBClusterSnapshotAttributes returns the restore attribute and a list of IDs for the AWS accounts that are authorized to copy or restore the manual DB cluster snapshot. If all is included in the list of values for the restore attribute, then the manual DB cluster snapshot is public and can be copied or restored by all AWS accounts.

    To add or remove access for an AWS account to copy or restore a manual DB cluster snapshot, or to make the manual DB cluster snapshot public or private, use the ModifyDBClusterSnapshotAttribute API action.

    ", - "DescribeDBClusterSnapshots": "

    Returns information about DB cluster snapshots. This API action supports pagination.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "DescribeDBClusters": "

    Returns information about provisioned Aurora DB clusters. This API supports pagination.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "DescribeDBEngineVersions": "

    Returns a list of the available DB engines.

    ", - "DescribeDBInstances": "

    Returns information about provisioned RDS instances. This API supports pagination.

    ", - "DescribeDBLogFiles": "

    Returns a list of DB log files for the DB instance.

    ", - "DescribeDBParameterGroups": "

    Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName is specified, the list will contain only the description of the specified DB parameter group.

    ", - "DescribeDBParameters": "

    Returns the detailed parameter list for a particular DB parameter group.

    ", - "DescribeDBSecurityGroups": "

    Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName is specified, the list will contain only the descriptions of the specified DB security group.

    ", - "DescribeDBSnapshotAttributes": "

    Returns a list of DB snapshot attribute names and values for a manual DB snapshot.

    When sharing snapshots with other AWS accounts, DescribeDBSnapshotAttributes returns the restore attribute and a list of IDs for the AWS accounts that are authorized to copy or restore the manual DB snapshot. If all is included in the list of values for the restore attribute, then the manual DB snapshot is public and can be copied or restored by all AWS accounts.

    To add or remove access for an AWS account to copy or restore a manual DB snapshot, or to make the manual DB snapshot public or private, use the ModifyDBSnapshotAttribute API action.

    ", - "DescribeDBSnapshots": "

    Returns information about DB snapshots. This API action supports pagination.

    ", - "DescribeDBSubnetGroups": "

    Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup.

    For an overview of CIDR ranges, go to the Wikipedia Tutorial.

    ", - "DescribeEngineDefaultClusterParameters": "

    Returns the default engine and system parameter information for the cluster database engine.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "DescribeEngineDefaultParameters": "

    Returns the default engine and system parameter information for the specified database engine.

    ", - "DescribeEventCategories": "

    Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

    ", - "DescribeEventSubscriptions": "

    Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

    If you specify a SubscriptionName, lists the description for that subscription.

    ", - "DescribeEvents": "

    Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB instance, DB security group, database snapshot, or DB parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

    ", - "DescribeOptionGroupOptions": "

    Describes all available options.

    ", - "DescribeOptionGroups": "

    Describes the available option groups.

    ", - "DescribeOrderableDBInstanceOptions": "

    Returns a list of orderable DB instance options for the specified engine.

    ", - "DescribePendingMaintenanceActions": "

    Returns a list of resources (for example, DB instances) that have at least one pending maintenance action.

    ", - "DescribeReservedDBInstances": "

    Returns information about reserved DB instances for this account, or about a specified reserved DB instance.

    ", - "DescribeReservedDBInstancesOfferings": "

    Lists available reserved DB instance offerings.

    ", - "DownloadDBLogFilePortion": "

    Downloads all or a portion of the specified log file, up to 1 MB in size.

    ", - "FailoverDBCluster": "

    Forces a failover for a DB cluster.

    A failover for a DB cluster promotes one of the read-only instances in the DB cluster to the master DB instance (the cluster writer) and deletes the current primary instance.

    Amazon Aurora will automatically fail over to a read-only instance, if one exists, when the primary instance fails. You can force a failover when you want to simulate a failure of a DB instance for testing. Because each instance in a DB cluster has its own endpoint address, you will need to clean up and re-establish any existing connections that use those endpoint addresses when the failover is complete.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "ListTagsForResource": "

    Lists all tags on an Amazon RDS resource.

    For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

    ", - "ModifyDBCluster": "

    Modify a setting for an Amazon Aurora DB cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "ModifyDBClusterParameterGroup": "

    Modifies the parameters of a DB cluster parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot without failover to the DB cluster associated with the parameter group before the change can take effect.

    After you create a DB cluster parameter group, you should wait at least 5 minutes before creating your first DB cluster that uses that DB cluster parameter group as the default parameter group. This allows Amazon RDS to fully complete the create action before the parameter group is used as the default for a new DB cluster. This is especially important for parameters that are critical when creating the default database for a DB cluster, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBClusterParameters command to verify that your DB cluster parameter group has been created or modified.

    ", - "ModifyDBClusterSnapshotAttribute": "

    Adds an attribute and values to, or removes an attribute and values from, a manual DB cluster snapshot.

    To share a manual DB cluster snapshot with other AWS accounts, specify restore as the AttributeName and use the ValuesToAdd parameter to add a list of IDs of the AWS accounts that are authorized to restore the manual DB cluster snapshot. Use the value all to make the manual DB cluster snapshot public, which means that it can be copied or restored by all AWS accounts. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all AWS accounts.

    To view which AWS accounts have access to copy or restore a manual DB cluster snapshot, or whether a manual DB cluster snapshot public or private, use the DescribeDBClusterSnapshotAttributes API action.

    If a manual DB cluster snapshot is encrypted, it cannot be shared.

    ", - "ModifyDBInstance": "

    Modify settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

    ", - "ModifyDBParameterGroup": "

    Modifies the parameters of a DB parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

    Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot without failover to the DB instance associated with the parameter group before the change can take effect.

    After you modify a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon RDS to fully complete the modify action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon RDS console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

    ", - "ModifyDBSnapshotAttribute": "

    Adds an attribute and values to, or removes an attribute and values from, a manual DB snapshot.

    To share a manual DB snapshot with other AWS accounts, specify restore as the AttributeName and use the ValuesToAdd parameter to add a list of IDs of the AWS accounts that are authorized to restore the manual DB snapshot. Uses the value all to make the manual DB snapshot public, which means it can be copied or restored by all AWS accounts. Do not add the all value for any manual DB snapshots that contain private information that you don't want available to all AWS accounts.

    To view which AWS accounts have access to copy or restore a manual DB snapshot, or whether a manual DB snapshot public or private, use the DescribeDBSnapshotAttributes API action.

    If the manual DB snapshot is encrypted, it cannot be shared.

    ", - "ModifyDBSubnetGroup": "

    Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the region.

    ", - "ModifyEventSubscription": "

    Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

    You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    ", - "ModifyOptionGroup": "

    Modifies an existing option group.

    ", - "PromoteReadReplica": "

    Promotes a Read Replica DB instance to a standalone DB instance.

    We recommend that you enable automated backups on your Read Replica before promoting the Read Replica. This ensures that no backup is taken during the promotion process. Once the instance is promoted to a primary instance, backups are taken based on your backup settings.

    ", - "PurchaseReservedDBInstancesOffering": "

    Purchases a reserved DB instance offering.

    ", - "RebootDBInstance": "

    Rebooting a DB instance restarts the database engine service. A reboot also applies to the DB instance any modifications to the associated DB parameter group that were pending. Rebooting a DB instance results in a momentary outage of the instance, during which the DB instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. An Amazon RDS event is created when the reboot is completed.

    If your DB instance is deployed in multiple Availability Zones, you can force a failover from one AZ to the other during the reboot. You might force a failover to test the availability of your DB instance deployment or to restore operations to the original AZ after a failover occurs.

    The time required to reboot is a function of the specific database engine's crash recovery process. To improve the reboot time, we recommend that you reduce database activities as much as possible during the reboot process to reduce rollback activity for in-transit transactions.

    ", - "RemoveSourceIdentifierFromSubscription": "

    Removes a source identifier from an existing RDS event notification subscription.

    ", - "RemoveTagsFromResource": "

    Removes metadata tags from an Amazon RDS resource.

    For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources.

    ", - "ResetDBClusterParameterGroup": "

    Modifies the parameters of a DB cluster parameter group to the default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DB cluster parameter group, specify the DBClusterParameterGroupName and ResetAllParameters parameters.

    When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request. You must call RebootDBInstance for every DB instance in your DB cluster that you want the updated static parameter to apply to.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "ResetDBParameterGroup": "

    Modifies the parameters of a DB parameter group to the engine/system default value. To reset specific parameters submit a list of the following: ParameterName and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup name and ResetAllParameters parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to take effect on the next DB instance restart or RebootDBInstance request.

    ", - "RestoreDBClusterFromSnapshot": "

    Creates a new DB cluster from a DB cluster snapshot. The target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "RestoreDBClusterToPointInTime": "

    Restores a DB cluster to an arbitrary point in time. Users can restore to any point in time before LatestRestorableTime for up to BackupRetentionPeriod days. The target DB cluster is created from the source DB cluster with the same configuration as the original DB cluster, except that the new DB cluster is created with the default DB security group.

    For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.

    ", - "RestoreDBInstanceFromDBSnapshot": "

    Creates a new DB instance from a DB snapshot. The target database is created from the source database restore point with the most of original configuration with the default security group and the default DB parameter group. By default, the new DB instance is created as a single-AZ deployment except when the instance is a SQL Server instance that has an option group that is associated with mirroring; in this case, the instance becomes a mirrored AZ deployment and not a single-AZ deployment.

    If your intent is to replace your original DB instance with the new, restored DB instance, then rename your original DB instance before you call the RestoreDBInstanceFromDBSnapshot action. RDS does not allow two DB instances with the same name. Once you have renamed your original DB instance with a different identifier, then you can pass the original name of the DB instance as the DBInstanceIdentifier in the call to the RestoreDBInstanceFromDBSnapshot action. The result is that you will replace the original DB instance with the DB instance created from the snapshot.

    If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier must be the ARN of the shared DB snapshot.

    ", - "RestoreDBInstanceToPointInTime": "

    Restores a DB instance to an arbitrary point in time. You can restore to any point in time before the time identified by the LatestRestorableTime property. You can restore to a point up to the number of days specified by the BackupRetentionPeriod property.

    The target database is created with most of the original configuration, but in a system-selected availability zone, with the default security group, the default subnet group, and the default DB parameter group. By default, the new DB instance is created as a single-AZ deployment except when the instance is a SQL Server instance that has an option group that is associated with mirroring; in this case, the instance becomes a mirrored deployment and not a single-AZ deployment.

    ", - "RevokeDBSecurityGroupIngress": "

    Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).

    " - }, - "shapes": { - "AccountAttributesMessage": { - "base": "

    Data returned by the DescribeAccountAttributes action.

    ", - "refs": { - } - }, - "AccountQuota": { - "base": "

    Describes a quota for an AWS account, for example, the number of DB instances allowed.

    ", - "refs": { - "AccountQuotaList$member": null - } - }, - "AccountQuotaList": { - "base": null, - "refs": { - "AccountAttributesMessage$AccountQuotas": "

    A list of AccountQuota objects. Within this list, each quota has a name, a count of usage toward the quota maximum, and a maximum value for the quota.

    " - } - }, - "AddSourceIdentifierToSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "AddSourceIdentifierToSubscriptionResult": { - "base": null, - "refs": { - } - }, - "AddTagsToResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "ApplyMethod": { - "base": null, - "refs": { - "Parameter$ApplyMethod": "

    Indicates when to apply parameter updates.

    " - } - }, - "ApplyPendingMaintenanceActionMessage": { - "base": "

    ", - "refs": { - } - }, - "ApplyPendingMaintenanceActionResult": { - "base": null, - "refs": { - } - }, - "AttributeValueList": { - "base": null, - "refs": { - "DBClusterSnapshotAttribute$AttributeValues": "

    The value(s) for the manual DB cluster snapshot attribute.

    If the AttributeName field is set to restore, then this element returns a list of IDs of the AWS accounts that are authorized to copy or restore the manual DB cluster snapshot. If a value of all is in the list, then the manual DB cluster snapshot is public and available for any AWS account to copy or restore.

    ", - "DBSnapshotAttribute$AttributeValues": "

    The value or values for the manual DB snapshot attribute.

    If the AttributeName field is set to restore, then this element returns a list of IDs of the AWS accounts that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.

    ", - "ModifyDBClusterSnapshotAttributeMessage$ValuesToAdd": "

    A list of DB cluster snapshot attributes to add to the attribute specified by AttributeName.

    To authorize other AWS accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more AWS account IDs, or all to make the manual DB cluster snapshot restorable by any AWS account. Do not add the all value for any manual DB cluster snapshots that contain private information that you don't want available to all AWS accounts.

    ", - "ModifyDBClusterSnapshotAttributeMessage$ValuesToRemove": "

    A list of DB cluster snapshot attributes to remove from the attribute specified by AttributeName.

    To remove authorization for other AWS accounts to copy or restore a manual DB cluster snapshot, set this list to include one or more AWS account identifiers, or all to remove authorization for any AWS account to copy or restore the DB cluster snapshot. If you specify all, an AWS account whose account ID is explicitly added to the restore attribute can still copy or restore a manual DB cluster snapshot.

    ", - "ModifyDBSnapshotAttributeMessage$ValuesToAdd": "

    A list of DB snapshot attributes to add to the attribute specified by AttributeName.

    To authorize other AWS accounts to copy or restore a manual snapshot, set this list to include one or more AWS account IDs, or all to make the manual DB snapshot restorable by any AWS account. Do not add the all value for any manual DB snapshots that contain private information that you don't want available to all AWS accounts.

    ", - "ModifyDBSnapshotAttributeMessage$ValuesToRemove": "

    A list of DB snapshot attributes to remove from the attribute specified by AttributeName.

    To remove authorization for other AWS accounts to copy or restore a manual snapshot, set this list to include one or more AWS account identifiers, or all to remove authorization for any AWS account to copy or restore the DB snapshot. If you specify all, an AWS account whose account ID is explicitly added to the restore attribute can still copy or restore the manual DB snapshot.

    " - } - }, - "AuthorizationAlreadyExistsFault": { - "base": "

    The specified CIDRIP or EC2 security group is already authorized for the specified DB security group.

    ", - "refs": { - } - }, - "AuthorizationNotFoundFault": { - "base": "

    Specified CIDRIP or EC2 security group is not authorized for the specified DB security group.

    RDS may not also be authorized via IAM to perform necessary actions on your behalf.

    ", - "refs": { - } - }, - "AuthorizationQuotaExceededFault": { - "base": "

    DB security group authorization quota has been reached.

    ", - "refs": { - } - }, - "AuthorizeDBSecurityGroupIngressMessage": { - "base": "

    ", - "refs": { - } - }, - "AuthorizeDBSecurityGroupIngressResult": { - "base": null, - "refs": { - } - }, - "AvailabilityZone": { - "base": "

    Contains Availability Zone information.

    This data type is used as an element in the following data type:

    ", - "refs": { - "AvailabilityZoneList$member": null, - "Subnet$SubnetAvailabilityZone": null - } - }, - "AvailabilityZoneList": { - "base": null, - "refs": { - "OrderableDBInstanceOption$AvailabilityZones": "

    A list of Availability Zones for the orderable DB instance.

    " - } - }, - "AvailabilityZones": { - "base": null, - "refs": { - "CreateDBClusterMessage$AvailabilityZones": "

    A list of EC2 Availability Zones that instances in the DB cluster can be created in. For information on regions and Availability Zones, see Regions and Availability Zones.

    ", - "DBCluster$AvailabilityZones": "

    Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

    ", - "DBClusterSnapshot$AvailabilityZones": "

    Provides the list of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

    ", - "RestoreDBClusterFromSnapshotMessage$AvailabilityZones": "

    Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "DBCluster$StorageEncrypted": "

    Specifies whether the DB cluster is encrypted.

    ", - "DBClusterMember$IsClusterWriter": "

    Value that is true if the cluster member is the primary instance for the DB cluster and false otherwise.

    ", - "DBClusterSnapshot$StorageEncrypted": "

    Specifies whether the DB cluster snapshot is encrypted.

    ", - "DBInstance$MultiAZ": "

    Specifies if the DB instance is a Multi-AZ deployment.

    ", - "DBInstance$AutoMinorVersionUpgrade": "

    Indicates that minor version patches are applied automatically.

    ", - "DBInstance$PubliclyAccessible": "

    Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true

    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "DBInstance$StorageEncrypted": "

    Specifies whether the DB instance is encrypted.

    ", - "DBInstance$CopyTagsToSnapshot": "

    Specifies whether tags are copied from the DB instance to snapshots of the DB instance.

    ", - "DBInstanceStatusInfo$Normal": "

    Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

    ", - "DBSnapshot$Encrypted": "

    Specifies whether the DB snapshot is encrypted.

    ", - "DeleteDBClusterMessage$SkipFinalSnapshot": "

    Determines whether a final DB cluster snapshot is created before the DB cluster is deleted. If true is specified, no DB cluster snapshot is created. If false is specified, a DB cluster snapshot is created before the DB cluster is deleted.

    You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot is false.

    Default: false

    ", - "DeleteDBInstanceMessage$SkipFinalSnapshot": "

    Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted.

    Note that when a DB instance is in a failure state and has a status of 'failed', 'incompatible-restore', or 'incompatible-network', it can only be deleted when the SkipFinalSnapshot parameter is set to \"true\".

    Specify true when deleting a Read Replica.

    The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

    Default: false

    ", - "DescribeDBClusterSnapshotsMessage$IncludeShared": "

    Set this value to true to include shared manual DB cluster snapshots from other AWS accounts that this AWS account has been given permission to copy or restore, otherwise set this value to false. The default is false.

    You can give an AWS account permission to restore a manual DB cluster snapshot from another AWS account by the ModifyDBClusterSnapshotAttribute API action.

    ", - "DescribeDBClusterSnapshotsMessage$IncludePublic": "

    Set this value to true to include manual DB cluster snapshots that are public and can be copied or restored by any AWS account, otherwise set this value to false. The default is false. The default is false.

    You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute API action.

    ", - "DescribeDBEngineVersionsMessage$DefaultOnly": "

    Indicates that only the default version of the specified engine or engine and major version combination is returned.

    ", - "DescribeDBSnapshotsMessage$IncludeShared": "

    Set this value to true to include shared manual DB snapshots from other AWS accounts that this AWS account has been given permission to copy or restore, otherwise set this value to false. The default is false.

    You can give an AWS account permission to restore a manual DB snapshot from another AWS account by using the ModifyDBSnapshotAttribute API action.

    ", - "DescribeDBSnapshotsMessage$IncludePublic": "

    Set this value to true to include manual DB snapshots that are public and can be copied or restored by any AWS account, otherwise set this value to false. The default is false.

    You can share a manual DB snapshot as public by using the ModifyDBSnapshotAttribute API.

    ", - "DownloadDBLogFilePortionDetails$AdditionalDataPending": "

    Boolean value that if true, indicates there is more data to be downloaded.

    ", - "EventSubscription$Enabled": "

    A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

    ", - "ModifyDBClusterMessage$ApplyImmediately": "

    A value that specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB cluster. If this parameter is set to false, changes to the DB cluster are applied during the next maintenance window.

    The ApplyImmediately parameter only affects the NewDBClusterIdentifier and MasterUserPassword values. If you set the ApplyImmediately parameter value to false, then changes to the NewDBClusterIdentifier and MasterUserPassword values are applied during the next maintenance window. All other changes are applied immediately, regardless of the value of the ApplyImmediately parameter.

    Default: false

    ", - "ModifyDBInstanceMessage$ApplyImmediately": "

    Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB instance.

    If this parameter is set to false, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and will be applied on the next call to RebootDBInstance, or the next failure reboot. Review the table of parameters in Modifying a DB Instance and Using the Apply Immediately Parameter to see the impact that setting ApplyImmediately to true or false has for each modified parameter and to determine when the changes will be applied.

    Default: false

    ", - "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": "

    Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints: This parameter must be set to true when specifying a value for the EngineVersion parameter that is a different major version than the DB instance's current version.

    ", - "ModifyOptionGroupMessage$ApplyImmediately": "

    Indicates whether the changes should be applied immediately, or during the next maintenance window for each instance associated with the option group.

    ", - "Option$Persistent": "

    Indicate if this option is persistent.

    ", - "Option$Permanent": "

    Indicate if this option is permanent.

    ", - "OptionGroup$AllowsVpcAndNonVpcInstanceMemberships": "

    Indicates whether this option group can be applied to both VPC and non-VPC instances. The value true indicates the option group can be applied to both VPC and non-VPC instances.

    ", - "OptionGroupOption$PortRequired": "

    Specifies whether the option requires a port.

    ", - "OptionGroupOption$Persistent": "

    A persistent option cannot be removed from the option group once the option group is used, but this option can be removed from the db instance while modifying the related data and assigning another option group without this option.

    ", - "OptionGroupOption$Permanent": "

    A permanent option cannot be removed from the option group once the option group is used, and it cannot be removed from the db instance after assigning an option group with this permanent option.

    ", - "OptionGroupOptionSetting$IsModifiable": "

    Boolean value where true indicates that this option group option can be changed from the default value.

    ", - "OptionSetting$IsModifiable": "

    A Boolean value that, when true, indicates the option setting can be modified from the default.

    ", - "OptionSetting$IsCollection": "

    Indicates if the option setting is part of a collection.

    ", - "OrderableDBInstanceOption$MultiAZCapable": "

    Indicates whether this orderable DB instance is multi-AZ capable.

    ", - "OrderableDBInstanceOption$ReadReplicaCapable": "

    Indicates whether this orderable DB instance can have a Read Replica.

    ", - "OrderableDBInstanceOption$Vpc": "

    Indicates whether this is a VPC orderable DB instance.

    ", - "OrderableDBInstanceOption$SupportsStorageEncryption": "

    Indicates whether this orderable DB instance supports encrypted storage.

    ", - "OrderableDBInstanceOption$SupportsIops": "

    Indicates whether this orderable DB instance supports provisioned IOPS.

    ", - "OrderableDBInstanceOption$SupportsEnhancedMonitoring": "

    Indicates whether the DB instance supports enhanced monitoring at intervals from 1 to 60 seconds.

    ", - "Parameter$IsModifiable": "

    Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

    ", - "ReservedDBInstance$MultiAZ": "

    Indicates if the reservation applies to Multi-AZ deployments.

    ", - "ReservedDBInstancesOffering$MultiAZ": "

    Indicates if the offering applies to Multi-AZ deployments.

    ", - "ResetDBClusterParameterGroupMessage$ResetAllParameters": "

    A value that is set to true to reset all parameters in the DB cluster parameter group to their default values, and false otherwise. You cannot use this parameter if there is a list of parameter names specified for the Parameters parameter.

    ", - "ResetDBParameterGroupMessage$ResetAllParameters": "

    Specifies whether (true) or not (false) to reset all parameters in the DB parameter group to default values.

    Default: true

    ", - "RestoreDBClusterToPointInTimeMessage$UseLatestRestorableTime": "

    A value that is set to true to restore the DB cluster to the latest restorable backup time, and false otherwise.

    Default: false

    Constraints: Cannot be specified if RestoreToTime parameter is provided.

    ", - "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": "

    Specifies whether (true) or not (false) the DB instance is restored from the latest backup time.

    Default: false

    Constraints: Cannot be specified if RestoreTime parameter is provided.

    ", - "UpgradeTarget$AutoUpgrade": "

    A value that indicates whether the target version will be applied to any source DB instances that have AutoMinorVersionUpgrade set to true.

    ", - "UpgradeTarget$IsMajorVersionUpgrade": "

    A value that indicates whether a database engine will be upgraded to a major version.

    " - } - }, - "BooleanOptional": { - "base": null, - "refs": { - "CopyDBSnapshotMessage$CopyTags": "

    True to copy all tags from the source DB snapshot to the target DB snapshot; otherwise false. The default is false.

    ", - "CreateDBClusterMessage$StorageEncrypted": "

    Specifies whether the DB cluster is encrypted.

    ", - "CreateDBInstanceMessage$MultiAZ": "

    Specifies if the DB instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the MultiAZ parameter is set to true. Do not set this value if you want a Multi-AZ deployment for a SQL Server DB instance. Multi-AZ for SQL Server is set using the Mirroring option in an option group.

    ", - "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "

    Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window.

    Default: true

    ", - "CreateDBInstanceMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC: true

    • VPC: false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "CreateDBInstanceMessage$StorageEncrypted": "

    Specifies whether the DB instance is encrypted.

    Default: false

    ", - "CreateDBInstanceMessage$CopyTagsToSnapshot": "

    True to copy all tags from the DB instance to snapshots of the DB instance; otherwise false. The default is false.

    ", - "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": "

    Indicates that minor engine upgrades will be applied automatically to the Read Replica during the maintenance window.

    Default: Inherits from the source DB instance

    ", - "CreateDBInstanceReadReplicaMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true

    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "CreateDBInstanceReadReplicaMessage$CopyTagsToSnapshot": "

    True to copy all tags from the Read Replica to snapshots of the Read Replica; otherwise false. The default is false.

    ", - "CreateEventSubscriptionMessage$Enabled": "

    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

    ", - "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

    If this parameter is specified, and if the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Vpc": "

    The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

    ", - "DescribeReservedDBInstancesMessage$MultiAZ": "

    The Multi-AZ filter value. Specify this parameter to show only those reservations matching the specified Multi-AZ parameter.

    ", - "DescribeReservedDBInstancesOfferingsMessage$MultiAZ": "

    The Multi-AZ filter value. Specify this parameter to show only the available offerings matching the specified Multi-AZ parameter.

    ", - "ModifyDBInstanceMessage$MultiAZ": "

    Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Constraints: Cannot be specified if the DB instance is a Read Replica. This parameter cannot be used with SQL Server DB instances. Multi-AZ for SQL Server DB instances is set using the Mirroring option in an option group associated with the DB instance.

    ", - "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to true during the maintenance window, and a newer minor version is available, and RDS has enabled auto patching for that engine version.

    ", - "ModifyDBInstanceMessage$CopyTagsToSnapshot": "

    True to copy all tags from the DB instance to snapshots of the DB instance; otherwise false. The default is false.

    ", - "ModifyDBInstanceMessage$PubliclyAccessible": "

    Boolean value that indicates if the DB instance has a publicly resolvable DNS name. Set to True to make the DB instance Internet-facing with a publicly resolvable DNS name, which resolves to a public IP address. Set to False to make the DB instance internal with a DNS name that resolves to a private IP address.

    PubliclyAccessible only applies to DB instances in a VPC. The DB instance must be part of a public subnet and PubliclyAccessible must be true in order for it to be publicly accessible.

    Changes to the PubliclyAccessible parameter are applied immediately regardless of the value of the ApplyImmediately parameter.

    Default: false

    ", - "ModifyEventSubscriptionMessage$Enabled": "

    A Boolean value; set to true to activate the subscription.

    ", - "PendingModifiedValues$MultiAZ": "

    Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

    ", - "RebootDBInstanceMessage$ForceFailover": "

    When true, the reboot will be conducted through a MultiAZ failover.

    Constraint: You cannot specify true if the instance is not configured for MultiAZ.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": "

    Specifies if the DB instance is a Multi-AZ deployment.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC: true

    • VPC: false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$CopyTagsToSnapshot": "

    True to copy all tags from the restored DB instance to snapshots of the DB instance; otherwise false. The default is false.

    ", - "RestoreDBInstanceToPointInTimeMessage$MultiAZ": "

    Specifies if the DB instance is a Multi-AZ deployment.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    ", - "RestoreDBInstanceToPointInTimeMessage$PubliclyAccessible": "

    Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.

    Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.

    • Default VPC:true

    • VPC:false

    If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.

    ", - "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": "

    Indicates that minor version upgrades will be applied automatically to the DB instance during the maintenance window.

    ", - "RestoreDBInstanceToPointInTimeMessage$CopyTagsToSnapshot": "

    True to copy all tags from the restored DB instance to snapshots of the DB instance; otherwise false. The default is false.

    " - } - }, - "Certificate": { - "base": "

    A CA certificate for an AWS account.

    ", - "refs": { - "CertificateList$member": null - } - }, - "CertificateList": { - "base": null, - "refs": { - "CertificateMessage$Certificates": "

    The list of Certificate objects for the AWS account.

    " - } - }, - "CertificateMessage": { - "base": "

    Data returned by the DescribeCertificates action.

    ", - "refs": { - } - }, - "CertificateNotFoundFault": { - "base": "

    CertificateIdentifier does not refer to an existing certificate.

    ", - "refs": { - } - }, - "CharacterSet": { - "base": "

    This data type is used as a response element in the action DescribeDBEngineVersions.

    ", - "refs": { - "DBEngineVersion$DefaultCharacterSet": "

    The default character set for new instances of this engine version, if the CharacterSetName parameter of the CreateDBInstance API is not specified.

    ", - "SupportedCharacterSetsList$member": null - } - }, - "CopyDBClusterSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "CopyDBClusterSnapshotResult": { - "base": null, - "refs": { - } - }, - "CopyDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CopyDBParameterGroupResult": { - "base": null, - "refs": { - } - }, - "CopyDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "CopyDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "CopyOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CopyOptionGroupResult": { - "base": null, - "refs": { - } - }, - "CreateDBClusterMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBClusterParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBClusterParameterGroupResult": { - "base": null, - "refs": { - } - }, - "CreateDBClusterResult": { - "base": null, - "refs": { - } - }, - "CreateDBClusterSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBClusterSnapshotResult": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBInstanceReadReplicaMessage": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceReadReplicaResult": { - "base": null, - "refs": { - } - }, - "CreateDBInstanceResult": { - "base": null, - "refs": { - } - }, - "CreateDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBParameterGroupResult": { - "base": null, - "refs": { - } - }, - "CreateDBSecurityGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSecurityGroupResult": { - "base": null, - "refs": { - } - }, - "CreateDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "CreateDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateDBSubnetGroupResult": { - "base": null, - "refs": { - } - }, - "CreateEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "CreateOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "CreateOptionGroupResult": { - "base": null, - "refs": { - } - }, - "DBCluster": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBClusters action.

    ", - "refs": { - "CreateDBClusterResult$DBCluster": null, - "DBClusterList$member": null, - "DeleteDBClusterResult$DBCluster": null, - "FailoverDBClusterResult$DBCluster": null, - "ModifyDBClusterResult$DBCluster": null, - "RestoreDBClusterFromSnapshotResult$DBCluster": null, - "RestoreDBClusterToPointInTimeResult$DBCluster": null - } - }, - "DBClusterAlreadyExistsFault": { - "base": "

    User already has a DB cluster with the given identifier.

    ", - "refs": { - } - }, - "DBClusterList": { - "base": null, - "refs": { - "DBClusterMessage$DBClusters": "

    Contains a list of DB clusters for the user.

    " - } - }, - "DBClusterMember": { - "base": "

    Contains information about an instance that is part of a DB cluster.

    ", - "refs": { - "DBClusterMemberList$member": null - } - }, - "DBClusterMemberList": { - "base": null, - "refs": { - "DBCluster$DBClusterMembers": "

    Provides the list of instances that make up the DB cluster.

    " - } - }, - "DBClusterMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBClusters action.

    ", - "refs": { - } - }, - "DBClusterNotFoundFault": { - "base": "

    DBClusterIdentifier does not refer to an existing DB cluster.

    ", - "refs": { - } - }, - "DBClusterOptionGroupMemberships": { - "base": null, - "refs": { - "DBCluster$DBClusterOptionGroupMemberships": "

    Provides the list of option group memberships for this DB cluster.

    " - } - }, - "DBClusterOptionGroupStatus": { - "base": "

    Contains status information for a DB cluster option group.

    ", - "refs": { - "DBClusterOptionGroupMemberships$member": null - } - }, - "DBClusterParameterGroup": { - "base": "

    Contains the result of a successful invocation of the CreateDBClusterParameterGroup action.

    This data type is used as a request parameter in the DeleteDBClusterParameterGroup action, and as a response element in the DescribeDBClusterParameterGroups action.

    ", - "refs": { - "CreateDBClusterParameterGroupResult$DBClusterParameterGroup": null, - "DBClusterParameterGroupList$member": null - } - }, - "DBClusterParameterGroupDetails": { - "base": "

    Provides details about a DB cluster parameter group including the parameters in the DB cluster parameter group.

    ", - "refs": { - } - }, - "DBClusterParameterGroupList": { - "base": null, - "refs": { - "DBClusterParameterGroupsMessage$DBClusterParameterGroups": "

    A list of DB cluster parameter groups.

    " - } - }, - "DBClusterParameterGroupNameMessage": { - "base": "

    ", - "refs": { - } - }, - "DBClusterParameterGroupNotFoundFault": { - "base": "

    DBClusterParameterGroupName does not refer to an existing DB Cluster parameter group.

    ", - "refs": { - } - }, - "DBClusterParameterGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DBClusterQuotaExceededFault": { - "base": "

    User attempted to create a new DB cluster and the user has already reached the maximum allowed DB cluster quota.

    ", - "refs": { - } - }, - "DBClusterSnapshot": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBClusterSnapshots action.

    ", - "refs": { - "CopyDBClusterSnapshotResult$DBClusterSnapshot": null, - "CreateDBClusterSnapshotResult$DBClusterSnapshot": null, - "DBClusterSnapshotList$member": null, - "DeleteDBClusterSnapshotResult$DBClusterSnapshot": null - } - }, - "DBClusterSnapshotAlreadyExistsFault": { - "base": "

    User already has a DB cluster snapshot with the given identifier.

    ", - "refs": { - } - }, - "DBClusterSnapshotAttribute": { - "base": "

    Contains the name and values of a manual DB cluster snapshot attribute.

    Manual DB cluster snapshot attributes are used to authorize other AWS accounts to restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute API action.

    ", - "refs": { - "DBClusterSnapshotAttributeList$member": null - } - }, - "DBClusterSnapshotAttributeList": { - "base": null, - "refs": { - "DBClusterSnapshotAttributesResult$DBClusterSnapshotAttributes": "

    The list of attributes and values for the manual DB cluster snapshot.

    " - } - }, - "DBClusterSnapshotAttributesResult": { - "base": "

    Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes API action.

    Manual DB cluster snapshot attributes are used to authorize other AWS accounts to copy or restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute API action.

    ", - "refs": { - "DescribeDBClusterSnapshotAttributesResult$DBClusterSnapshotAttributesResult": null, - "ModifyDBClusterSnapshotAttributeResult$DBClusterSnapshotAttributesResult": null - } - }, - "DBClusterSnapshotList": { - "base": null, - "refs": { - "DBClusterSnapshotMessage$DBClusterSnapshots": "

    Provides a list of DB cluster snapshots for the user.

    " - } - }, - "DBClusterSnapshotMessage": { - "base": "

    Provides a list of DB cluster snapshots for the user as the result of a call to the DescribeDBClusterSnapshots action.

    ", - "refs": { - } - }, - "DBClusterSnapshotNotFoundFault": { - "base": "

    DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.

    ", - "refs": { - } - }, - "DBEngineVersion": { - "base": "

    This data type is used as a response element in the action DescribeDBEngineVersions.

    ", - "refs": { - "DBEngineVersionList$member": null - } - }, - "DBEngineVersionList": { - "base": null, - "refs": { - "DBEngineVersionMessage$DBEngineVersions": "

    A list of DBEngineVersion elements.

    " - } - }, - "DBEngineVersionMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBEngineVersions action.

    ", - "refs": { - } - }, - "DBInstance": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBInstances action.

    ", - "refs": { - "CreateDBInstanceReadReplicaResult$DBInstance": null, - "CreateDBInstanceResult$DBInstance": null, - "DBInstanceList$member": null, - "DeleteDBInstanceResult$DBInstance": null, - "ModifyDBInstanceResult$DBInstance": null, - "PromoteReadReplicaResult$DBInstance": null, - "RebootDBInstanceResult$DBInstance": null, - "RestoreDBInstanceFromDBSnapshotResult$DBInstance": null, - "RestoreDBInstanceToPointInTimeResult$DBInstance": null - } - }, - "DBInstanceAlreadyExistsFault": { - "base": "

    User already has a DB instance with the given identifier.

    ", - "refs": { - } - }, - "DBInstanceList": { - "base": null, - "refs": { - "DBInstanceMessage$DBInstances": "

    A list of DBInstance instances.

    " - } - }, - "DBInstanceMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBInstances action.

    ", - "refs": { - } - }, - "DBInstanceNotFoundFault": { - "base": "

    DBInstanceIdentifier does not refer to an existing DB instance.

    ", - "refs": { - } - }, - "DBInstanceStatusInfo": { - "base": "

    Provides a list of status information for a DB instance.

    ", - "refs": { - "DBInstanceStatusInfoList$member": null - } - }, - "DBInstanceStatusInfoList": { - "base": null, - "refs": { - "DBInstance$StatusInfos": "

    The status of a Read Replica. If the instance is not a Read Replica, this will be blank.

    " - } - }, - "DBLogFileNotFoundFault": { - "base": "

    LogFileName does not refer to an existing DB log file.

    ", - "refs": { - } - }, - "DBParameterGroup": { - "base": "

    Contains the result of a successful invocation of the CreateDBParameterGroup action.

    This data type is used as a request parameter in the DeleteDBParameterGroup action, and as a response element in the DescribeDBParameterGroups action.

    ", - "refs": { - "CopyDBParameterGroupResult$DBParameterGroup": null, - "CreateDBParameterGroupResult$DBParameterGroup": null, - "DBParameterGroupList$member": null - } - }, - "DBParameterGroupAlreadyExistsFault": { - "base": "

    A DB parameter group with the same name exists.

    ", - "refs": { - } - }, - "DBParameterGroupDetails": { - "base": "

    Contains the result of a successful invocation of the DescribeDBParameters action.

    ", - "refs": { - } - }, - "DBParameterGroupList": { - "base": null, - "refs": { - "DBParameterGroupsMessage$DBParameterGroups": "

    A list of DBParameterGroup instances.

    " - } - }, - "DBParameterGroupNameMessage": { - "base": "

    Contains the result of a successful invocation of the ModifyDBParameterGroup or ResetDBParameterGroup action.

    ", - "refs": { - } - }, - "DBParameterGroupNotFoundFault": { - "base": "

    DBParameterGroupName does not refer to an existing DB parameter group.

    ", - "refs": { - } - }, - "DBParameterGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB parameter groups.

    ", - "refs": { - } - }, - "DBParameterGroupStatus": { - "base": "

    The status of the DB parameter group.

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBParameterGroupStatusList$member": null - } - }, - "DBParameterGroupStatusList": { - "base": null, - "refs": { - "DBInstance$DBParameterGroups": "

    Provides the list of DB parameter groups applied to this DB instance.

    " - } - }, - "DBParameterGroupsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBParameterGroups action.

    ", - "refs": { - } - }, - "DBSecurityGroup": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSecurityGroups action.

    ", - "refs": { - "AuthorizeDBSecurityGroupIngressResult$DBSecurityGroup": null, - "CreateDBSecurityGroupResult$DBSecurityGroup": null, - "DBSecurityGroups$member": null, - "RevokeDBSecurityGroupIngressResult$DBSecurityGroup": null - } - }, - "DBSecurityGroupAlreadyExistsFault": { - "base": "

    A DB security group with the name specified in DBSecurityGroupName already exists.

    ", - "refs": { - } - }, - "DBSecurityGroupMembership": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBSecurityGroupMembershipList$member": null - } - }, - "DBSecurityGroupMembershipList": { - "base": null, - "refs": { - "DBInstance$DBSecurityGroups": "

    Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

    ", - "Option$DBSecurityGroupMemberships": "

    If the option requires access to a port, then this DB security group allows access to the port.

    " - } - }, - "DBSecurityGroupMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSecurityGroups action.

    ", - "refs": { - } - }, - "DBSecurityGroupNameList": { - "base": null, - "refs": { - "CreateDBInstanceMessage$DBSecurityGroups": "

    A list of DB security groups to associate with this DB instance.

    Default: The default DB security group for the database engine.

    ", - "ModifyDBInstanceMessage$DBSecurityGroups": "

    A list of DB security groups to authorize on this DB instance. Changing this setting does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "OptionConfiguration$DBSecurityGroupMemberships": "

    A list of DBSecurityGroupMemebrship name strings used for this option.

    " - } - }, - "DBSecurityGroupNotFoundFault": { - "base": "

    DBSecurityGroupName does not refer to an existing DB security group.

    ", - "refs": { - } - }, - "DBSecurityGroupNotSupportedFault": { - "base": "

    A DB security group is not allowed for this action.

    ", - "refs": { - } - }, - "DBSecurityGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB security groups.

    ", - "refs": { - } - }, - "DBSecurityGroups": { - "base": null, - "refs": { - "DBSecurityGroupMessage$DBSecurityGroups": "

    A list of DBSecurityGroup instances.

    " - } - }, - "DBSnapshot": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSnapshots action.

    ", - "refs": { - "CopyDBSnapshotResult$DBSnapshot": null, - "CreateDBSnapshotResult$DBSnapshot": null, - "DBSnapshotList$member": null, - "DeleteDBSnapshotResult$DBSnapshot": null - } - }, - "DBSnapshotAlreadyExistsFault": { - "base": "

    DBSnapshotIdentifier is already used by an existing snapshot.

    ", - "refs": { - } - }, - "DBSnapshotAttribute": { - "base": "

    Contains the name and values of a manual DB snapshot attribute

    Manual DB snapshot attributes are used to authorize other AWS accounts to restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute API.

    ", - "refs": { - "DBSnapshotAttributeList$member": null - } - }, - "DBSnapshotAttributeList": { - "base": null, - "refs": { - "DBSnapshotAttributesResult$DBSnapshotAttributes": "

    The list of attributes and values for the manual DB snapshot.

    " - } - }, - "DBSnapshotAttributesResult": { - "base": "

    Contains the results of a successful call to the DescribeDBSnapshotAttributes API action.

    Manual DB snapshot attributes are used to authorize other AWS accounts to copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute API action.

    ", - "refs": { - "DescribeDBSnapshotAttributesResult$DBSnapshotAttributesResult": null, - "ModifyDBSnapshotAttributeResult$DBSnapshotAttributesResult": null - } - }, - "DBSnapshotList": { - "base": null, - "refs": { - "DBSnapshotMessage$DBSnapshots": "

    A list of DBSnapshot instances.

    " - } - }, - "DBSnapshotMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSnapshots action.

    ", - "refs": { - } - }, - "DBSnapshotNotFoundFault": { - "base": "

    DBSnapshotIdentifier does not refer to an existing DB snapshot.

    ", - "refs": { - } - }, - "DBSubnetGroup": { - "base": "

    Contains the result of a successful invocation of the following actions:

    This data type is used as a response element in the DescribeDBSubnetGroups action.

    ", - "refs": { - "CreateDBSubnetGroupResult$DBSubnetGroup": null, - "DBInstance$DBSubnetGroup": "

    Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

    ", - "DBSubnetGroups$member": null, - "ModifyDBSubnetGroupResult$DBSubnetGroup": null - } - }, - "DBSubnetGroupAlreadyExistsFault": { - "base": "

    DBSubnetGroupName is already used by an existing DB subnet group.

    ", - "refs": { - } - }, - "DBSubnetGroupDoesNotCoverEnoughAZs": { - "base": "

    Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

    ", - "refs": { - } - }, - "DBSubnetGroupMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeDBSubnetGroups action.

    ", - "refs": { - } - }, - "DBSubnetGroupNotAllowedFault": { - "base": "

    Indicates that the DBSubnetGroup should not be specified while creating read replicas that lie in the same region as the source instance.

    ", - "refs": { - } - }, - "DBSubnetGroupNotFoundFault": { - "base": "

    DBSubnetGroupName does not refer to an existing DB subnet group.

    ", - "refs": { - } - }, - "DBSubnetGroupQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB subnet groups.

    ", - "refs": { - } - }, - "DBSubnetGroups": { - "base": null, - "refs": { - "DBSubnetGroupMessage$DBSubnetGroups": "

    A list of DBSubnetGroup instances.

    " - } - }, - "DBSubnetQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of subnets in a DB subnet groups.

    ", - "refs": { - } - }, - "DBUpgradeDependencyFailureFault": { - "base": "

    The DB upgrade failed because a resource the DB depends on could not be modified.

    ", - "refs": { - } - }, - "DeleteDBClusterMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBClusterParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBClusterResult": { - "base": null, - "refs": { - } - }, - "DeleteDBClusterSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBClusterSnapshotResult": { - "base": null, - "refs": { - } - }, - "DeleteDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBInstanceResult": { - "base": null, - "refs": { - } - }, - "DeleteDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSecurityGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "DeleteDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "DeleteEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "DeleteOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeAccountAttributesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeCertificatesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBClusterParameterGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBClusterParametersMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBClusterSnapshotAttributesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBClusterSnapshotAttributesResult": { - "base": null, - "refs": { - } - }, - "DescribeDBClusterSnapshotsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBClustersMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBEngineVersionsMessage": { - "base": null, - "refs": { - } - }, - "DescribeDBInstancesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBLogFilesDetails": { - "base": "

    This data type is used as a response element to DescribeDBLogFiles.

    ", - "refs": { - "DescribeDBLogFilesList$member": null - } - }, - "DescribeDBLogFilesList": { - "base": null, - "refs": { - "DescribeDBLogFilesResponse$DescribeDBLogFiles": "

    The DB log files returned.

    " - } - }, - "DescribeDBLogFilesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBLogFilesResponse": { - "base": "

    The response from a call to DescribeDBLogFiles.

    ", - "refs": { - } - }, - "DescribeDBParameterGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBParametersMessage": { - "base": null, - "refs": { - } - }, - "DescribeDBSecurityGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBSnapshotAttributesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBSnapshotAttributesResult": { - "base": null, - "refs": { - } - }, - "DescribeDBSnapshotsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeDBSubnetGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEngineDefaultClusterParametersMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEngineDefaultClusterParametersResult": { - "base": null, - "refs": { - } - }, - "DescribeEngineDefaultParametersMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEngineDefaultParametersResult": { - "base": null, - "refs": { - } - }, - "DescribeEventCategoriesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEventSubscriptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeEventsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOptionGroupOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOptionGroupsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeOrderableDBInstanceOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribePendingMaintenanceActionsMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeReservedDBInstancesMessage": { - "base": "

    ", - "refs": { - } - }, - "DescribeReservedDBInstancesOfferingsMessage": { - "base": "

    ", - "refs": { - } - }, - "DomainMembership": { - "base": "

    An Active Directory Domain membership record associated with the DB instance.

    ", - "refs": { - "DomainMembershipList$member": null - } - }, - "DomainMembershipList": { - "base": "

    List of Active Directory Domain membership records associated with a DB instance.

    ", - "refs": { - "DBInstance$DomainMemberships": "

    The Active Directory Domain membership records associated with the DB instance.

    " - } - }, - "DomainNotFoundFault": { - "base": "

    Domain does not refer to an existing Active Directory Domain.

    ", - "refs": { - } - }, - "Double": { - "base": null, - "refs": { - "RecurringCharge$RecurringChargeAmount": "

    The amount of the recurring charge.

    ", - "ReservedDBInstance$FixedPrice": "

    The fixed price charged for this reserved DB instance.

    ", - "ReservedDBInstance$UsagePrice": "

    The hourly price charged for this reserved DB instance.

    ", - "ReservedDBInstancesOffering$FixedPrice": "

    The fixed price charged for this offering.

    ", - "ReservedDBInstancesOffering$UsagePrice": "

    The hourly price charged for this offering.

    " - } - }, - "DownloadDBLogFilePortionDetails": { - "base": "

    This data type is used as a response element to DownloadDBLogFilePortion.

    ", - "refs": { - } - }, - "DownloadDBLogFilePortionMessage": { - "base": "

    ", - "refs": { - } - }, - "EC2SecurityGroup": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "EC2SecurityGroupList$member": null - } - }, - "EC2SecurityGroupList": { - "base": null, - "refs": { - "DBSecurityGroup$EC2SecurityGroups": "

    Contains a list of EC2SecurityGroup elements.

    " - } - }, - "Endpoint": { - "base": "

    This data type is used as a response element in the following actions:

    ", - "refs": { - "DBInstance$Endpoint": "

    Specifies the connection endpoint.

    " - } - }, - "EngineDefaults": { - "base": "

    Contains the result of a successful invocation of the DescribeEngineDefaultParameters action.

    ", - "refs": { - "DescribeEngineDefaultClusterParametersResult$EngineDefaults": null, - "DescribeEngineDefaultParametersResult$EngineDefaults": null - } - }, - "Event": { - "base": "

    This data type is used as a response element in the DescribeEvents action.

    ", - "refs": { - "EventList$member": null - } - }, - "EventCategoriesList": { - "base": null, - "refs": { - "CreateEventSubscriptionMessage$EventCategories": "

    A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    ", - "DescribeEventsMessage$EventCategories": "

    A list of event categories that trigger notifications for a event notification subscription.

    ", - "Event$EventCategories": "

    Specifies the category for the event.

    ", - "EventCategoriesMap$EventCategories": "

    The event categories for the specified source type

    ", - "EventSubscription$EventCategoriesList": "

    A list of event categories for the RDS event notification subscription.

    ", - "ModifyEventSubscriptionMessage$EventCategories": "

    A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

    " - } - }, - "EventCategoriesMap": { - "base": "

    Contains the results of a successful invocation of the DescribeEventCategories action.

    ", - "refs": { - "EventCategoriesMapList$member": null - } - }, - "EventCategoriesMapList": { - "base": null, - "refs": { - "EventCategoriesMessage$EventCategoriesMapList": "

    A list of EventCategoriesMap data types.

    " - } - }, - "EventCategoriesMessage": { - "base": "

    Data returned from the DescribeEventCategories action.

    ", - "refs": { - } - }, - "EventList": { - "base": null, - "refs": { - "EventsMessage$Events": "

    A list of Event instances.

    " - } - }, - "EventSubscription": { - "base": "

    Contains the results of a successful invocation of the DescribeEventSubscriptions action.

    ", - "refs": { - "AddSourceIdentifierToSubscriptionResult$EventSubscription": null, - "CreateEventSubscriptionResult$EventSubscription": null, - "DeleteEventSubscriptionResult$EventSubscription": null, - "EventSubscriptionsList$member": null, - "ModifyEventSubscriptionResult$EventSubscription": null, - "RemoveSourceIdentifierFromSubscriptionResult$EventSubscription": null - } - }, - "EventSubscriptionQuotaExceededFault": { - "base": "

    You have reached the maximum number of event subscriptions.

    ", - "refs": { - } - }, - "EventSubscriptionsList": { - "base": null, - "refs": { - "EventSubscriptionsMessage$EventSubscriptionsList": "

    A list of EventSubscriptions data types.

    " - } - }, - "EventSubscriptionsMessage": { - "base": "

    Data returned by the DescribeEventSubscriptions action.

    ", - "refs": { - } - }, - "EventsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeEvents action.

    ", - "refs": { - } - }, - "FailoverDBClusterMessage": { - "base": "

    ", - "refs": { - } - }, - "FailoverDBClusterResult": { - "base": null, - "refs": { - } - }, - "Filter": { - "base": "

    This type is not currently supported.

    ", - "refs": { - "FilterList$member": null - } - }, - "FilterList": { - "base": null, - "refs": { - "DescribeCertificatesMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBClusterParameterGroupsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBClusterParametersMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBClusterSnapshotsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBClustersMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBEngineVersionsMessage$Filters": "

    Not currently supported.

    ", - "DescribeDBInstancesMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBLogFilesMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBParameterGroupsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBParametersMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBSecurityGroupsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBSnapshotsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeDBSubnetGroupsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeEngineDefaultClusterParametersMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeEngineDefaultParametersMessage$Filters": "

    Not currently supported.

    ", - "DescribeEventCategoriesMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeEventSubscriptionsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeEventsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeOptionGroupOptionsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeOptionGroupsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribePendingMaintenanceActionsMessage$Filters": "

    A filter that specifies one or more resources to return pending maintenance actions for.

    Supported filters:

    • db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs). The results list will only include pending maintenance actions for the DB instances identified by these ARNs.

    ", - "DescribeReservedDBInstancesMessage$Filters": "

    This parameter is not currently supported.

    ", - "DescribeReservedDBInstancesOfferingsMessage$Filters": "

    This parameter is not currently supported.

    ", - "ListTagsForResourceMessage$Filters": "

    This parameter is not currently supported.

    " - } - }, - "FilterValueList": { - "base": null, - "refs": { - "Filter$Values": "

    This parameter is not currently supported.

    " - } - }, - "IPRange": { - "base": "

    This data type is used as a response element in the DescribeDBSecurityGroups action.

    ", - "refs": { - "IPRangeList$member": null - } - }, - "IPRangeList": { - "base": null, - "refs": { - "DBSecurityGroup$IPRanges": "

    Contains a list of IPRange elements.

    " - } - }, - "InstanceQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB instances.

    ", - "refs": { - } - }, - "InsufficientDBClusterCapacityFault": { - "base": "

    The DB cluster does not have enough capacity for the current operation.

    ", - "refs": { - } - }, - "InsufficientDBInstanceCapacityFault": { - "base": "

    Specified DB instance class is not available in the specified Availability Zone.

    ", - "refs": { - } - }, - "InsufficientStorageClusterCapacityFault": { - "base": "

    There is insufficient storage available for the current action. You may be able to resolve this error by updating your subnet group to use different Availability Zones that have more storage available.

    ", - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "DBClusterSnapshot$AllocatedStorage": "

    Specifies the allocated storage size in gigabytes (GB).

    ", - "DBClusterSnapshot$Port": "

    Specifies the port that the DB cluster was listening on at the time of the snapshot.

    ", - "DBClusterSnapshot$PercentProgress": "

    Specifies the percentage of the estimated data that has been transferred.

    ", - "DBInstance$AllocatedStorage": "

    Specifies the allocated storage size specified in gigabytes.

    ", - "DBInstance$BackupRetentionPeriod": "

    Specifies the number of days for which automatic DB snapshots are retained.

    ", - "DBInstance$DbInstancePort": "

    Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this can be a different port than the DB cluster port.

    ", - "DBSnapshot$AllocatedStorage": "

    Specifies the allocated storage size in gigabytes (GB).

    ", - "DBSnapshot$Port": "

    Specifies the port that the database engine was listening on at the time of the snapshot.

    ", - "DBSnapshot$PercentProgress": "

    The percentage of the estimated data that has been transferred.

    ", - "DownloadDBLogFilePortionMessage$NumberOfLines": "

    The number of lines to download. If the number of lines specified results in a file over 1 MB in size, the file will be truncated at 1 MB in size.

    If the NumberOfLines parameter is specified, then the block of lines returned can be from the beginning or the end of the log file, depending on the value of the Marker parameter.

    • If neither Marker or NumberOfLines are specified, the entire log file is returned up to a maximum of 10000 lines, starting with the most recent log entries first.

    • If NumberOfLines is specified and Marker is not specified, then the most recent lines from the end of the log file are returned.

    • If Marker is specified as \"0\", then the specified number of lines from the beginning of the log file are returned.

    • You can download the log file in blocks of lines by specifying the size of the block using the NumberOfLines parameter, and by specifying a value of \"0\" for the Marker parameter in your first request. Include the Marker value returned in the response as the Marker value for the next request, continuing until the AdditionalDataPending response element returns false.

    ", - "Endpoint$Port": "

    Specifies the port that the database engine is listening on.

    ", - "ReservedDBInstance$Duration": "

    The duration of the reservation in seconds.

    ", - "ReservedDBInstance$DBInstanceCount": "

    The number of reserved DB instances.

    ", - "ReservedDBInstancesOffering$Duration": "

    The duration of the offering in seconds.

    " - } - }, - "IntegerOptional": { - "base": null, - "refs": { - "CreateDBClusterMessage$BackupRetentionPeriod": "

    The number of days for which automated backups are retained. You must specify a minimum value of 1.

    Default: 1

    Constraints:

    • Must be a value from 1 to 35

    ", - "CreateDBClusterMessage$Port": "

    The port number on which the instances in the DB cluster accept connections.

    Default: 3306

    ", - "CreateDBInstanceMessage$AllocatedStorage": "

    The amount of storage (in gigabytes) to be initially allocated for the database instance.

    Type: Integer

    MySQL

    Constraints: Must be an integer from 5 to 6144.

    MariaDB

    Constraints: Must be an integer from 5 to 6144.

    PostgreSQL

    Constraints: Must be an integer from 5 to 6144.

    Oracle

    Constraints: Must be an integer from 10 to 6144.

    SQL Server

    Constraints: Must be an integer from 200 to 4096 (Standard Edition and Enterprise Edition) or from 20 to 4096 (Express Edition and Web Edition)

    ", - "CreateDBInstanceMessage$BackupRetentionPeriod": "

    The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Default: 1

    Constraints:

    • Must be a value from 0 to 35

    • Cannot be set to 0 if the DB instance is a source to Read Replicas

    ", - "CreateDBInstanceMessage$Port": "

    The port number on which the database accepts connections.

    MySQL

    Default: 3306

    Valid Values: 1150-65535

    Type: Integer

    MariaDB

    Default: 3306

    Valid Values: 1150-65535

    Type: Integer

    PostgreSQL

    Default: 5432

    Valid Values: 1150-65535

    Type: Integer

    Oracle

    Default: 1521

    Valid Values: 1150-65535

    SQL Server

    Default: 1433

    Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through 49156.

    Amazon Aurora

    Default: 3306

    Valid Values: 1150-65535

    Type: Integer

    ", - "CreateDBInstanceMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

    Constraints: Must be a multiple between 3 and 10 of the storage amount for the DB instance. Must also be an integer multiple of 1000. For example, if the size of your DB instance is 500 GB, then your Iops value can be 2000, 3000, 4000, or 5000.

    ", - "CreateDBInstanceMessage$MonitoringInterval": "

    The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.

    If MonitoringRoleArn is specified, then you must also set MonitoringInterval to a value other than 0.

    Valid Values: 0, 1, 5, 10, 15, 30, 60

    ", - "CreateDBInstanceMessage$PromotionTier": "

    A value that specifies the order in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see Fault Tolerance for an Aurora DB Cluster.

    Default: 1

    Valid Values: 0 - 15

    ", - "CreateDBInstanceReadReplicaMessage$Port": "

    The port number that the DB instance uses for connections.

    Default: Inherits from the source DB instance

    Valid Values: 1150-65535

    ", - "CreateDBInstanceReadReplicaMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

    ", - "CreateDBInstanceReadReplicaMessage$MonitoringInterval": "

    The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the Read Replica. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.

    If MonitoringRoleArn is specified, then you must also set MonitoringInterval to a value other than 0.

    Valid Values: 0, 1, 5, 10, 15, 30, 60

    ", - "DBCluster$AllocatedStorage": "

    Specifies the allocated storage size in gigabytes (GB).

    ", - "DBCluster$BackupRetentionPeriod": "

    Specifies the number of days for which automatic DB snapshots are retained.

    ", - "DBCluster$Port": "

    Specifies the port that the database engine is listening on.

    ", - "DBClusterMember$PromotionTier": "

    A value that specifies the order in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see Fault Tolerance for an Aurora DB Cluster.

    ", - "DBInstance$Iops": "

    Specifies the Provisioned IOPS (I/O operations per second) value.

    ", - "DBInstance$MonitoringInterval": "

    The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

    ", - "DBInstance$PromotionTier": "

    A value that specifies the order in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see Fault Tolerance for an Aurora DB Cluster.

    ", - "DBSnapshot$Iops": "

    Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

    ", - "DescribeCertificatesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBClusterParameterGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBClusterParametersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBClusterSnapshotsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBClustersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBEngineVersionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBInstancesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBLogFilesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    ", - "DescribeDBParameterGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBParametersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBSecurityGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBSnapshotsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeDBSubnetGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeEngineDefaultClusterParametersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeEngineDefaultParametersMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeEventSubscriptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeEventsMessage$Duration": "

    The number of minutes to retrieve events for.

    Default: 60

    ", - "DescribeEventsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeOptionGroupOptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeOptionGroupsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribePendingMaintenanceActionsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeReservedDBInstancesMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "DescribeReservedDBInstancesOfferingsMessage$MaxRecords": "

    The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so that the following results can be retrieved.

    Default: 100

    Constraints: Minimum 20, maximum 100.

    ", - "ModifyDBClusterMessage$BackupRetentionPeriod": "

    The number of days for which automated backups are retained. You must specify a minimum value of 1.

    Default: 1

    Constraints:

    • Must be a value from 1 to 35

    ", - "ModifyDBClusterMessage$Port": "

    The port number on which the DB cluster accepts connections.

    Constraints: Value must be 1150-65535

    Default: The same port as the original DB cluster.

    ", - "ModifyDBInstanceMessage$AllocatedStorage": "

    The new storage capacity of the RDS instance. Changing this setting does not result in an outage and the change is applied during the next maintenance window unless ApplyImmediately is set to true for this request.

    MySQL

    Default: Uses existing setting

    Valid Values: 5-6144

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    Type: Integer

    MariaDB

    Default: Uses existing setting

    Valid Values: 5-6144

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    Type: Integer

    PostgreSQL

    Default: Uses existing setting

    Valid Values: 5-6144

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    Type: Integer

    Oracle

    Default: Uses existing setting

    Valid Values: 10-6144

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.

    SQL Server

    Cannot be modified.

    If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a Read Replica for the instance, and creating a DB snapshot of the instance.

    ", - "ModifyDBInstanceMessage$BackupRetentionPeriod": "

    The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Changing this parameter can result in an outage if you change from 0 to a non-zero value or from a non-zero value to 0. These changes are applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.

    Default: Uses existing setting

    Constraints:

    • Must be a value from 0 to 35

    • Can be specified for a MySQL Read Replica only if the source is running MySQL 5.6

    • Can be specified for a PostgreSQL Read Replica only if the source is running PostgreSQL 9.3.5

    • Cannot be set to 0 if the DB instance is a source to Read Replicas

    ", - "ModifyDBInstanceMessage$Iops": "

    The new Provisioned IOPS (I/O operations per second) value for the RDS instance. Changing this setting does not result in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    Default: Uses existing setting

    Constraints: Value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value. If you are migrating from Provisioned IOPS to standard storage, set this value to 0. The DB instance will require a reboot for the change in storage type to take effect.

    SQL Server

    Setting the IOPS value for the SQL Server database engine is not supported.

    Type: Integer

    If you choose to migrate your DB instance from using standard storage to using Provisioned IOPS, or from using Provisioned IOPS to using standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance will be available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance will be suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a Read Replica for the instance, and creating a DB snapshot of the instance.

    ", - "ModifyDBInstanceMessage$MonitoringInterval": "

    The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.

    If MonitoringRoleArn is specified, then you must also set MonitoringInterval to a value other than 0.

    Valid Values: 0, 1, 5, 10, 15, 30, 60

    ", - "ModifyDBInstanceMessage$DBPortNumber": "

    The port number on which the database accepts connections.

    The value of the DBPortNumber parameter must not match any of the port values specified for options in the option group for the DB instance.

    Your database will restart when you change the DBPortNumber value regardless of the value of the ApplyImmediately parameter.

    MySQL

    Default: 3306

    Valid Values: 1150-65535

    MariaDB

    Default: 3306

    Valid Values: 1150-65535

    PostgreSQL

    Default: 5432

    Valid Values: 1150-65535

    Type: Integer

    Oracle

    Default: 1521

    Valid Values: 1150-65535

    SQL Server

    Default: 1433

    Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through 49156.

    Amazon Aurora

    Default: 3306

    Valid Values: 1150-65535

    ", - "ModifyDBInstanceMessage$PromotionTier": "

    A value that specifies the order in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see Fault Tolerance for an Aurora DB Cluster.

    Default: 1

    Valid Values: 0 - 15

    ", - "Option$Port": "

    If required, the port configured for this option to use.

    ", - "OptionConfiguration$Port": "

    The optional port for the option.

    ", - "OptionGroupOption$DefaultPort": "

    If the option requires a port, specifies the default port for the option.

    ", - "PendingModifiedValues$AllocatedStorage": "

    Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.

    ", - "PendingModifiedValues$Port": "

    Specifies the pending port for the DB instance.

    ", - "PendingModifiedValues$BackupRetentionPeriod": "

    Specifies the pending number of days for which automated backups are retained.

    ", - "PendingModifiedValues$Iops": "

    Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.

    ", - "PromoteReadReplicaMessage$BackupRetentionPeriod": "

    The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

    Default: 1

    Constraints:

    • Must be a value from 0 to 8

    ", - "PurchaseReservedDBInstancesOfferingMessage$DBInstanceCount": "

    The number of instances to reserve.

    Default: 1

    ", - "RestoreDBClusterFromSnapshotMessage$Port": "

    The port number on which the new DB cluster accepts connections.

    Constraints: Value must be 1150-65535

    Default: The same port as the original DB cluster.

    ", - "RestoreDBClusterToPointInTimeMessage$Port": "

    The port number on which the new DB cluster accepts connections.

    Constraints: Value must be 1150-65535

    Default: The same port as the original DB cluster.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Port": "

    The port number on which the database accepts connections.

    Default: The same port as the original DB instance

    Constraints: Value must be 1150-65535

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Iops": "

    Specifies the amount of provisioned IOPS for the DB instance, expressed in I/O operations per second. If this parameter is not specified, the IOPS value will be taken from the backup. If this parameter is set to 0, the new instance will be converted to a non-PIOPS instance, which will take additional time, though your DB instance will be available for connections before the conversion starts.

    Constraints: Must be an integer greater than 1000.

    SQL Server

    Setting the IOPS value for the SQL Server database engine is not supported.

    ", - "RestoreDBInstanceToPointInTimeMessage$Port": "

    The port number on which the database accepts connections.

    Constraints: Value must be 1150-65535

    Default: The same port as the original DB instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$Iops": "

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

    Constraints: Must be an integer greater than 1000.

    SQL Server

    Setting the IOPS value for the SQL Server database engine is not supported.

    " - } - }, - "InvalidDBClusterSnapshotStateFault": { - "base": "

    The supplied value is not a valid DB cluster snapshot state.

    ", - "refs": { - } - }, - "InvalidDBClusterStateFault": { - "base": "

    The DB cluster is not in a valid state.

    ", - "refs": { - } - }, - "InvalidDBInstanceStateFault": { - "base": "

    The specified DB instance is not in the available state.

    ", - "refs": { - } - }, - "InvalidDBParameterGroupStateFault": { - "base": "

    The DB parameter group cannot be deleted because it is in use.

    ", - "refs": { - } - }, - "InvalidDBSecurityGroupStateFault": { - "base": "

    The state of the DB security group does not allow deletion.

    ", - "refs": { - } - }, - "InvalidDBSnapshotStateFault": { - "base": "

    The state of the DB snapshot does not allow deletion.

    ", - "refs": { - } - }, - "InvalidDBSubnetGroupFault": { - "base": "

    Indicates the DBSubnetGroup does not belong to the same VPC as that of an existing cross region read replica of the same source instance.

    ", - "refs": { - } - }, - "InvalidDBSubnetGroupStateFault": { - "base": "

    The DB subnet group cannot be deleted because it is in use.

    ", - "refs": { - } - }, - "InvalidDBSubnetStateFault": { - "base": "

    The DB subnet is not in the available state.

    ", - "refs": { - } - }, - "InvalidEventSubscriptionStateFault": { - "base": "

    This error can occur if someone else is modifying a subscription. You should retry the action.

    ", - "refs": { - } - }, - "InvalidOptionGroupStateFault": { - "base": "

    The option group is not in the available state.

    ", - "refs": { - } - }, - "InvalidRestoreFault": { - "base": "

    Cannot restore from vpc backup to non-vpc DB instance.

    ", - "refs": { - } - }, - "InvalidSubnet": { - "base": "

    The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.

    ", - "refs": { - } - }, - "InvalidVPCNetworkStateFault": { - "base": "

    DB subnet group does not cover all Availability Zones after it is created because users' change.

    ", - "refs": { - } - }, - "KMSKeyNotAccessibleFault": { - "base": "

    Error accessing KMS key.

    ", - "refs": { - } - }, - "KeyList": { - "base": null, - "refs": { - "RemoveTagsFromResourceMessage$TagKeys": "

    The tag key (name) of the tag to be removed.

    " - } - }, - "ListTagsForResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "Long": { - "base": null, - "refs": { - "AccountQuota$Used": "

    The amount currently used toward the quota maximum.

    ", - "AccountQuota$Max": "

    The maximum allowed value for the quota.

    ", - "DescribeDBLogFilesDetails$LastWritten": "

    A POSIX timestamp when the last log entry was written.

    ", - "DescribeDBLogFilesDetails$Size": "

    The size, in bytes, of the log file for the specified DB instance.

    ", - "DescribeDBLogFilesMessage$FileLastWritten": "

    Filters the available log files for files written since the specified date, in POSIX timestamp format with milliseconds.

    ", - "DescribeDBLogFilesMessage$FileSize": "

    Filters the available log files for files larger than the specified size.

    " - } - }, - "ModifyDBClusterMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBClusterParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBClusterResult": { - "base": null, - "refs": { - } - }, - "ModifyDBClusterSnapshotAttributeMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBClusterSnapshotAttributeResult": { - "base": null, - "refs": { - } - }, - "ModifyDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBInstanceResult": { - "base": null, - "refs": { - } - }, - "ModifyDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBSnapshotAttributeMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBSnapshotAttributeResult": { - "base": null, - "refs": { - } - }, - "ModifyDBSubnetGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyDBSubnetGroupResult": { - "base": null, - "refs": { - } - }, - "ModifyEventSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyEventSubscriptionResult": { - "base": null, - "refs": { - } - }, - "ModifyOptionGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ModifyOptionGroupResult": { - "base": null, - "refs": { - } - }, - "Option": { - "base": "

    Option details.

    ", - "refs": { - "OptionsList$member": null - } - }, - "OptionConfiguration": { - "base": "

    A list of all available options

    ", - "refs": { - "OptionConfigurationList$member": null - } - }, - "OptionConfigurationList": { - "base": null, - "refs": { - "ModifyOptionGroupMessage$OptionsToInclude": "

    Options in this list are added to the option group or, if already present, the specified configuration is used to update the existing configuration.

    " - } - }, - "OptionGroup": { - "base": "

    ", - "refs": { - "CopyOptionGroupResult$OptionGroup": null, - "CreateOptionGroupResult$OptionGroup": null, - "ModifyOptionGroupResult$OptionGroup": null, - "OptionGroupsList$member": null - } - }, - "OptionGroupAlreadyExistsFault": { - "base": "

    The option group you are trying to create already exists.

    ", - "refs": { - } - }, - "OptionGroupMembership": { - "base": "

    Provides information on the option groups the DB instance is a member of.

    ", - "refs": { - "OptionGroupMembershipList$member": null - } - }, - "OptionGroupMembershipList": { - "base": null, - "refs": { - "DBInstance$OptionGroupMemberships": "

    Provides the list of option group memberships for this DB instance.

    " - } - }, - "OptionGroupNotFoundFault": { - "base": "

    The specified option group could not be found.

    ", - "refs": { - } - }, - "OptionGroupOption": { - "base": "

    Available option.

    ", - "refs": { - "OptionGroupOptionsList$member": null - } - }, - "OptionGroupOptionSetting": { - "base": "

    Option group option settings are used to display settings available for each option with their default values and other information. These values are used with the DescribeOptionGroupOptions action.

    ", - "refs": { - "OptionGroupOptionSettingsList$member": null - } - }, - "OptionGroupOptionSettingsList": { - "base": null, - "refs": { - "OptionGroupOption$OptionGroupOptionSettings": "

    Specifies the option settings that are available (and the default value) for each option in an option group.

    " - } - }, - "OptionGroupOptionsList": { - "base": "

    List of available option group options.

    ", - "refs": { - "OptionGroupOptionsMessage$OptionGroupOptions": null - } - }, - "OptionGroupOptionsMessage": { - "base": "

    ", - "refs": { - } - }, - "OptionGroupQuotaExceededFault": { - "base": "

    The quota of 20 option groups was exceeded for this AWS account.

    ", - "refs": { - } - }, - "OptionGroups": { - "base": "

    List of option groups.

    ", - "refs": { - } - }, - "OptionGroupsList": { - "base": null, - "refs": { - "OptionGroups$OptionGroupsList": "

    List of option groups.

    " - } - }, - "OptionNamesList": { - "base": null, - "refs": { - "ModifyOptionGroupMessage$OptionsToRemove": "

    Options in this list are removed from the option group.

    " - } - }, - "OptionSetting": { - "base": "

    Option settings are the actual settings being applied or configured for that option. It is used when you modify an option group or describe option groups. For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER that can have several different values.

    ", - "refs": { - "OptionSettingConfigurationList$member": null, - "OptionSettingsList$member": null - } - }, - "OptionSettingConfigurationList": { - "base": null, - "refs": { - "Option$OptionSettings": "

    The option settings for this option.

    " - } - }, - "OptionSettingsList": { - "base": null, - "refs": { - "OptionConfiguration$OptionSettings": "

    The option settings to include in an option group.

    " - } - }, - "OptionsDependedOn": { - "base": null, - "refs": { - "OptionGroupOption$OptionsDependedOn": "

    List of all options that are prerequisites for this option.

    " - } - }, - "OptionsList": { - "base": null, - "refs": { - "OptionGroup$Options": "

    Indicates what options are available in the option group.

    " - } - }, - "OrderableDBInstanceOption": { - "base": "

    Contains a list of available options for a DB instance

    This data type is used as a response element in the DescribeOrderableDBInstanceOptions action.

    ", - "refs": { - "OrderableDBInstanceOptionsList$member": null - } - }, - "OrderableDBInstanceOptionsList": { - "base": null, - "refs": { - "OrderableDBInstanceOptionsMessage$OrderableDBInstanceOptions": "

    An OrderableDBInstanceOption structure containing information about orderable options for the DB instance.

    " - } - }, - "OrderableDBInstanceOptionsMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions action.

    ", - "refs": { - } - }, - "Parameter": { - "base": "

    This data type is used as a request parameter in the ModifyDBParameterGroup and ResetDBParameterGroup actions.

    This data type is used as a response element in the DescribeEngineDefaultParameters and DescribeDBParameters actions.

    ", - "refs": { - "ParametersList$member": null - } - }, - "ParametersList": { - "base": null, - "refs": { - "DBClusterParameterGroupDetails$Parameters": "

    Provides a list of parameters for the DB cluster parameter group.

    ", - "DBParameterGroupDetails$Parameters": "

    A list of Parameter values.

    ", - "EngineDefaults$Parameters": "

    Contains a list of engine default parameters.

    ", - "ModifyDBClusterParameterGroupMessage$Parameters": "

    A list of parameters in the DB cluster parameter group to modify.

    ", - "ModifyDBParameterGroupMessage$Parameters": "

    An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters can be modified in a single request.

    Valid Values (for the application method): immediate | pending-reboot

    You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when you reboot the DB instance without failover.

    ", - "ResetDBClusterParameterGroupMessage$Parameters": "

    A list of parameter names in the DB cluster parameter group to reset to the default values. You cannot use this parameter if the ResetAllParameters parameter is set to true.

    ", - "ResetDBParameterGroupMessage$Parameters": "

    An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters can be modified in a single request.

    MySQL

    Valid Values (for Apply method): immediate | pending-reboot

    You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB instance reboots.

    MariaDB

    Valid Values (for Apply method): immediate | pending-reboot

    You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when DB instance reboots.

    Oracle

    Valid Values (for Apply method): pending-reboot

    " - } - }, - "PendingMaintenanceAction": { - "base": "

    Provides information about a pending maintenance action for a resource.

    ", - "refs": { - "PendingMaintenanceActionDetails$member": null - } - }, - "PendingMaintenanceActionDetails": { - "base": null, - "refs": { - "ResourcePendingMaintenanceActions$PendingMaintenanceActionDetails": "

    A list that provides details about the pending maintenance actions for the resource.

    " - } - }, - "PendingMaintenanceActions": { - "base": null, - "refs": { - "PendingMaintenanceActionsMessage$PendingMaintenanceActions": "

    A list of the pending maintenance actions for the resource.

    " - } - }, - "PendingMaintenanceActionsMessage": { - "base": "

    Data returned from the DescribePendingMaintenanceActions action.

    ", - "refs": { - } - }, - "PendingModifiedValues": { - "base": "

    This data type is used as a response element in the ModifyDBInstance action.

    ", - "refs": { - "DBInstance$PendingModifiedValues": "

    Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

    " - } - }, - "PointInTimeRestoreNotEnabledFault": { - "base": "

    SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod equal to 0.

    ", - "refs": { - } - }, - "PromoteReadReplicaMessage": { - "base": "

    ", - "refs": { - } - }, - "PromoteReadReplicaResult": { - "base": null, - "refs": { - } - }, - "ProvisionedIopsNotAvailableInAZFault": { - "base": "

    Provisioned IOPS not available in the specified Availability Zone.

    ", - "refs": { - } - }, - "PurchaseReservedDBInstancesOfferingMessage": { - "base": "

    ", - "refs": { - } - }, - "PurchaseReservedDBInstancesOfferingResult": { - "base": null, - "refs": { - } - }, - "ReadReplicaDBInstanceIdentifierList": { - "base": null, - "refs": { - "DBInstance$ReadReplicaDBInstanceIdentifiers": "

    Contains one or more identifiers of the Read Replicas associated with this DB instance.

    " - } - }, - "RebootDBInstanceMessage": { - "base": "

    ", - "refs": { - } - }, - "RebootDBInstanceResult": { - "base": null, - "refs": { - } - }, - "RecurringCharge": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstances and DescribeReservedDBInstancesOfferings actions.

    ", - "refs": { - "RecurringChargeList$member": null - } - }, - "RecurringChargeList": { - "base": null, - "refs": { - "ReservedDBInstance$RecurringCharges": "

    The recurring price charged to run this reserved DB instance.

    ", - "ReservedDBInstancesOffering$RecurringCharges": "

    The recurring price charged to run this reserved DB instance.

    " - } - }, - "RemoveSourceIdentifierFromSubscriptionMessage": { - "base": "

    ", - "refs": { - } - }, - "RemoveSourceIdentifierFromSubscriptionResult": { - "base": null, - "refs": { - } - }, - "RemoveTagsFromResourceMessage": { - "base": "

    ", - "refs": { - } - }, - "ReservedDBInstance": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.

    ", - "refs": { - "PurchaseReservedDBInstancesOfferingResult$ReservedDBInstance": null, - "ReservedDBInstanceList$member": null - } - }, - "ReservedDBInstanceAlreadyExistsFault": { - "base": "

    User already has a reservation with the given identifier.

    ", - "refs": { - } - }, - "ReservedDBInstanceList": { - "base": null, - "refs": { - "ReservedDBInstanceMessage$ReservedDBInstances": "

    A list of reserved DB instances.

    " - } - }, - "ReservedDBInstanceMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeReservedDBInstances action.

    ", - "refs": { - } - }, - "ReservedDBInstanceNotFoundFault": { - "base": "

    The specified reserved DB Instance not found.

    ", - "refs": { - } - }, - "ReservedDBInstanceQuotaExceededFault": { - "base": "

    Request would exceed the user's DB Instance quota.

    ", - "refs": { - } - }, - "ReservedDBInstancesOffering": { - "base": "

    This data type is used as a response element in the DescribeReservedDBInstancesOfferings action.

    ", - "refs": { - "ReservedDBInstancesOfferingList$member": null - } - }, - "ReservedDBInstancesOfferingList": { - "base": null, - "refs": { - "ReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferings": "

    A list of reserved DB instance offerings.

    " - } - }, - "ReservedDBInstancesOfferingMessage": { - "base": "

    Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings action.

    ", - "refs": { - } - }, - "ReservedDBInstancesOfferingNotFoundFault": { - "base": "

    Specified offering does not exist.

    ", - "refs": { - } - }, - "ResetDBClusterParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ResetDBParameterGroupMessage": { - "base": "

    ", - "refs": { - } - }, - "ResourceNotFoundFault": { - "base": "

    The specified resource ID was not found.

    ", - "refs": { - } - }, - "ResourcePendingMaintenanceActions": { - "base": "

    Describes the pending maintenance actions for a resource.

    ", - "refs": { - "ApplyPendingMaintenanceActionResult$ResourcePendingMaintenanceActions": null, - "PendingMaintenanceActions$member": null - } - }, - "RestoreDBClusterFromSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBClusterFromSnapshotResult": { - "base": null, - "refs": { - } - }, - "RestoreDBClusterToPointInTimeMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBClusterToPointInTimeResult": { - "base": null, - "refs": { - } - }, - "RestoreDBInstanceFromDBSnapshotMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceFromDBSnapshotResult": { - "base": null, - "refs": { - } - }, - "RestoreDBInstanceToPointInTimeMessage": { - "base": "

    ", - "refs": { - } - }, - "RestoreDBInstanceToPointInTimeResult": { - "base": null, - "refs": { - } - }, - "RevokeDBSecurityGroupIngressMessage": { - "base": "

    ", - "refs": { - } - }, - "RevokeDBSecurityGroupIngressResult": { - "base": null, - "refs": { - } - }, - "SNSInvalidTopicFault": { - "base": "

    SNS has responded that there is a problem with the SND topic specified.

    ", - "refs": { - } - }, - "SNSNoAuthorizationFault": { - "base": "

    You do not have permission to publish to the SNS topic ARN.

    ", - "refs": { - } - }, - "SNSTopicArnNotFoundFault": { - "base": "

    The SNS topic ARN does not exist.

    ", - "refs": { - } - }, - "SharedSnapshotQuotaExceededFault": { - "base": "

    You have exceeded the maximum number of accounts that you can share a manual DB snapshot with.

    ", - "refs": { - } - }, - "SnapshotQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed number of DB snapshots.

    ", - "refs": { - } - }, - "SourceIdsList": { - "base": null, - "refs": { - "CreateEventSubscriptionMessage$SourceIds": "

    The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

    Constraints:

    • If SourceIds are supplied, SourceType must also be provided.

    • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.

    • If the source type is a DB security group, a DBSecurityGroupName must be supplied.

    • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.

    • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.

    ", - "EventSubscription$SourceIdsList": "

    A list of source IDs for the RDS event notification subscription.

    " - } - }, - "SourceNotFoundFault": { - "base": "

    The requested source could not be found.

    ", - "refs": { - } - }, - "SourceType": { - "base": null, - "refs": { - "DescribeEventsMessage$SourceType": "

    The event source to retrieve events for. If no value is specified, all events are returned.

    ", - "Event$SourceType": "

    Specifies the source type for this event.

    " - } - }, - "StorageQuotaExceededFault": { - "base": "

    Request would result in user exceeding the allowed amount of storage available across all DB instances.

    ", - "refs": { - } - }, - "StorageTypeNotSupportedFault": { - "base": "

    StorageType specified cannot be associated with the DB Instance.

    ", - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "AccountQuota$AccountQuotaName": "

    The name of the Amazon RDS quota for this AWS account.

    ", - "AddSourceIdentifierToSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to add a source identifier to.

    ", - "AddSourceIdentifierToSubscriptionMessage$SourceIdentifier": "

    The identifier of the event source to be added. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.

    Constraints:

    • If the source type is a DB instance, then a DBInstanceIdentifier must be supplied.

    • If the source type is a DB security group, a DBSecurityGroupName must be supplied.

    • If the source type is a DB parameter group, a DBParameterGroupName must be supplied.

    • If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.

    ", - "AddTagsToResourceMessage$ResourceName": "

    The Amazon RDS resource the tags will be added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    ", - "ApplyPendingMaintenanceActionMessage$ResourceIdentifier": "

    The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    ", - "ApplyPendingMaintenanceActionMessage$ApplyAction": "

    The pending maintenance action to apply to this resource.

    Valid values: system-update, db-upgrade

    ", - "ApplyPendingMaintenanceActionMessage$OptInType": "

    A value that specifies the type of opt-in request, or undoes an opt-in request. An opt-in request of type immediate cannot be undone.

    Valid values:

    • immediate - Apply the maintenance action immediately.

    • next-maintenance - Apply the maintenance action during the next maintenance window for the resource.

    • undo-opt-in - Cancel any existing next-maintenance opt-in requests.

    ", - "AttributeValueList$member": null, - "AuthorizeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

    The name of the DB security group to add authorization to.

    ", - "AuthorizeDBSecurityGroupIngressMessage$CIDRIP": "

    The IP range to authorize.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

    Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

    Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AuthorizeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

    AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "AvailabilityZone$Name": "

    The name of the availability zone.

    ", - "AvailabilityZones$member": null, - "Certificate$CertificateIdentifier": "

    The unique key that identifies a certificate.

    ", - "Certificate$CertificateType": "

    The type of the certificate.

    ", - "Certificate$Thumbprint": "

    The thumbprint of the certificate.

    ", - "CertificateMessage$Marker": "

    An optional pagination token provided by a previous DescribeCertificates request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "CharacterSet$CharacterSetName": "

    The name of the character set.

    ", - "CharacterSet$CharacterSetDescription": "

    The description of the character set.

    ", - "CopyDBClusterSnapshotMessage$SourceDBClusterSnapshotIdentifier": "

    The identifier of the DB cluster snapshot to copy. This parameter is not case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens.

    • First character must be a letter.

    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: my-cluster-snapshot1

    ", - "CopyDBClusterSnapshotMessage$TargetDBClusterSnapshotIdentifier": "

    The identifier of the new DB cluster snapshot to create from the source DB cluster snapshot. This parameter is not case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens.

    • First character must be a letter.

    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: my-cluster-snapshot2

    ", - "CopyDBParameterGroupMessage$SourceDBParameterGroupIdentifier": "

    The identifier or ARN for the source DB parameter group. For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    Constraints:

    • Must specify a valid DB parameter group.

    • If the source DB parameter group is in the same region as the copy, specify a valid DB parameter group identifier, for example my-db-param-group, or a valid ARN.

    • If the source DB parameter group is in a different region than the copy, specify a valid DB parameter group ARN, for example arn:aws:rds:us-west-2:123456789012:pg:special-parameters.

    ", - "CopyDBParameterGroupMessage$TargetDBParameterGroupIdentifier": "

    The identifier for the copied DB parameter group.

    Constraints:

    • Cannot be null, empty, or blank

    • Must contain from 1 to 255 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-db-parameter-group

    ", - "CopyDBParameterGroupMessage$TargetDBParameterGroupDescription": "

    A description for the copied DB parameter group.

    ", - "CopyDBSnapshotMessage$SourceDBSnapshotIdentifier": "

    The identifier for the source DB snapshot.

    If you are copying from a shared manual DB snapshot, this must be the ARN of the shared DB snapshot.

    Constraints:

    • Must specify a valid system snapshot in the \"available\" state.

    • If the source snapshot is in the same region as the copy, specify a valid DB snapshot identifier.

    • If the source snapshot is in a different region than the copy, specify a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot.

    Example: rds:mydb-2012-04-02-00-01

    Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805

    ", - "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

    The identifier for the copied snapshot.

    Constraints:

    • Cannot be null, empty, or blank

    • Must contain from 1 to 255 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-db-snapshot

    ", - "CopyDBSnapshotMessage$KmsKeyId": "

    The AWS Key Management Service (AWS KMS) key identifier for an encrypted DB snapshot. The KMS key identifier is the Amazon Resource Name (ARN) or the KMS key alias for the KMS encryption key.

    If you copy an unencrypted DB snapshot and specify a value for the KmsKeyId parameter, Amazon RDS encrypts the target DB snapshot using the specified KMS encryption key.

    If you copy an encrypted DB snapshot from your AWS account, you can specify a value for KmsKeyId to encrypt the copy with a new KMS encryption key. If you don't specify a value for KmsKeyId then the copy of the DB snapshot is encrypted with the same KMS key as the source DB snapshot.

    If you copy an encrypted DB snapshot that is shared from another AWS account, then you must specify a value for KmsKeyId.

    ", - "CopyOptionGroupMessage$SourceOptionGroupIdentifier": "

    The identifier or ARN for the source option group. For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    Constraints:

    • Must specify a valid option group.

    • If the source option group is in the same region as the copy, specify a valid option group identifier, for example my-option-group, or a valid ARN.

    • If the source option group is in a different region than the copy, specify a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options.

    ", - "CopyOptionGroupMessage$TargetOptionGroupIdentifier": "

    The identifier for the copied option group.

    Constraints:

    • Cannot be null, empty, or blank

    • Must contain from 1 to 255 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-option-group

    ", - "CopyOptionGroupMessage$TargetOptionGroupDescription": "

    The description for the copied option group.

    ", - "CreateDBClusterMessage$CharacterSetName": "

    A value that indicates that the DB cluster should be associated with the specified CharacterSet.

    ", - "CreateDBClusterMessage$DatabaseName": "

    The name for your database of up to 8 alpha-numeric characters. If you do not provide a name, Amazon RDS will not create a database in the DB cluster you are creating.

    ", - "CreateDBClusterMessage$DBClusterIdentifier": "

    The DB cluster identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens.

    • First character must be a letter.

    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: my-cluster1

    ", - "CreateDBClusterMessage$DBClusterParameterGroupName": "

    The name of the DB cluster parameter group to associate with this DB cluster. If this argument is omitted, default.aurora5.6 for the specified engine will be used.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "CreateDBClusterMessage$DBSubnetGroupName": "

    A DB subnet group to associate with this DB cluster.

    Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

    ", - "CreateDBClusterMessage$Engine": "

    The name of the database engine to be used for this DB cluster.

    Valid Values: aurora

    ", - "CreateDBClusterMessage$EngineVersion": "

    The version number of the database engine to use.

    Aurora

    Example: 5.6.10a

    ", - "CreateDBClusterMessage$MasterUsername": "

    The name of the master user for the client DB cluster.

    Constraints:

    • Must be 1 to 16 alphanumeric characters.

    • First character must be a letter.

    • Cannot be a reserved word for the chosen database engine.

    ", - "CreateDBClusterMessage$MasterUserPassword": "

    The password for the master database user. This password can contain any printable ASCII character except \"/\", \"\"\", or \"@\".

    Constraints: Must contain from 8 to 41 characters.

    ", - "CreateDBClusterMessage$OptionGroupName": "

    A value that indicates that the DB cluster should be associated with the specified option group.

    Permanent options cannot be removed from an option group. The option group cannot be removed from a DB cluster once it is associated with a DB cluster.

    ", - "CreateDBClusterMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.

    Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

    Constraints:

    • Must be in the format hh24:mi-hh24:mi.

    • Times should be in Universal Coordinated Time (UTC).

    • Must not conflict with the preferred maintenance window.

    • Must be at least 30 minutes.

    ", - "CreateDBClusterMessage$PreferredMaintenanceWindow": "

    The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

    Format: ddd:hh24:mi-ddd:hh24:mi

    Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

    Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

    Constraints: Minimum 30-minute window.

    ", - "CreateDBClusterMessage$ReplicationSourceIdentifier": "

    The Amazon Resource Name (ARN) of the source DB cluster if this DB cluster is created as a Read Replica.

    ", - "CreateDBClusterMessage$KmsKeyId": "

    The KMS key identifier for an encrypted DB cluster.

    The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a DB cluster with the same AWS account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KM encryption key.

    If the StorageEncrypted parameter is true, and you do not specify a value for the KmsKeyId parameter, then Amazon RDS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

    ", - "CreateDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

    The name of the DB cluster parameter group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    This value is stored as a lowercase string.

    ", - "CreateDBClusterParameterGroupMessage$DBParameterGroupFamily": "

    The DB cluster parameter group family name. A DB cluster parameter group can be associated with one and only one DB cluster parameter group family, and can be applied only to a DB cluster running a database engine and engine version compatible with that DB cluster parameter group family.

    ", - "CreateDBClusterParameterGroupMessage$Description": "

    The description for the DB cluster parameter group.

    ", - "CreateDBClusterSnapshotMessage$DBClusterSnapshotIdentifier": "

    The identifier of the DB cluster snapshot. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens.

    • First character must be a letter.

    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: my-cluster1-snapshot1

    ", - "CreateDBClusterSnapshotMessage$DBClusterIdentifier": "

    The identifier of the DB cluster to create a snapshot for. This parameter is not case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens.

    • First character must be a letter.

    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: my-cluster1

    ", - "CreateDBInstanceMessage$DBName": "

    The meaning of this parameter differs according to the database engine you use.

    Type: String

    MySQL

    The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

    Constraints:

    • Must contain 1 to 64 alphanumeric characters

    • Cannot be a word reserved by the specified database engine

    MariaDB

    The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.

    Constraints:

    • Must contain 1 to 64 alphanumeric characters

    • Cannot be a word reserved by the specified database engine

    PostgreSQL

    The name of the database to create when the DB instance is created. If this parameter is not specified, the default \"postgres\" database is created in the DB instance.

    Constraints:

    • Must contain 1 to 63 alphanumeric characters

    • Must begin with a letter or an underscore. Subsequent characters can be letters, underscores, or digits (0-9).

    • Cannot be a word reserved by the specified database engine

    Oracle

    The Oracle System ID (SID) of the created DB instance.

    Default: ORCL

    Constraints:

    • Cannot be longer than 8 characters

    SQL Server

    Not applicable. Must be null.

    Amazon Aurora

    The name of the database to create when the primary instance of the DB cluster is created. If this parameter is not specified, no database is created in the DB instance.

    Constraints:

    • Must contain 1 to 64 alphanumeric characters

    • Cannot be a word reserved by the specified database engine

    ", - "CreateDBInstanceMessage$DBInstanceIdentifier": "

    The DB instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server).

    • First character must be a letter.

    • Cannot end with a hyphen or contain two consecutive hyphens.

    Example: mydbinstance

    ", - "CreateDBInstanceMessage$DBInstanceClass": "

    The compute and memory capacity of the DB instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

    ", - "CreateDBInstanceMessage$Engine": "

    The name of the database engine to be used for this instance.

    Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora

    Not every database engine is available for every AWS region.

    ", - "CreateDBInstanceMessage$MasterUsername": "

    The name of master user for the client DB instance.

    MySQL

    Constraints:

    • Must be 1 to 16 alphanumeric characters.

    • First character must be a letter.

    • Cannot be a reserved word for the chosen database engine.

    MariaDB

    Constraints:

    • Must be 1 to 16 alphanumeric characters.

    • Cannot be a reserved word for the chosen database engine.

    Type: String

    Oracle

    Constraints:

    • Must be 1 to 30 alphanumeric characters.

    • First character must be a letter.

    • Cannot be a reserved word for the chosen database engine.

    SQL Server

    Constraints:

    • Must be 1 to 128 alphanumeric characters.

    • First character must be a letter.

    • Cannot be a reserved word for the chosen database engine.

    PostgreSQL

    Constraints:

    • Must be 1 to 63 alphanumeric characters.

    • First character must be a letter.

    • Cannot be a reserved word for the chosen database engine.

    ", - "CreateDBInstanceMessage$MasterUserPassword": "

    The password for the master database user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

    Type: String

    MySQL

    Constraints: Must contain from 8 to 41 characters.

    MariaDB

    Constraints: Must contain from 8 to 41 characters.

    Oracle

    Constraints: Must contain from 8 to 30 characters.

    SQL Server

    Constraints: Must contain from 8 to 128 characters.

    PostgreSQL

    Constraints: Must contain from 8 to 128 characters.

    Amazon Aurora

    Constraints: Must contain from 8 to 41 characters.

    ", - "CreateDBInstanceMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in. For information on regions and Availability Zones, see Regions and Availability Zones.

    Default: A random, system-chosen Availability Zone in the endpoint's region.

    Example: us-east-1d

    Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same region as the current endpoint.

    ", - "CreateDBInstanceMessage$DBSubnetGroupName": "

    A DB subnet group to associate with this DB instance.

    If there is no DB subnet group, then it is a non-VPC DB instance.

    ", - "CreateDBInstanceMessage$PreferredMaintenanceWindow": "

    The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). For more information, see DB Instance Maintenance.

    Format: ddd:hh24:mi-ddd:hh24:mi

    Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

    Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

    Constraints: Minimum 30-minute window.

    ", - "CreateDBInstanceMessage$DBParameterGroupName": "

    The name of the DB parameter group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine will be used.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "CreateDBInstanceMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter. For more information, see DB Instance Backups.

    Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

    Constraints:

    • Must be in the format hh24:mi-hh24:mi.

    • Times should be in Universal Coordinated Time (UTC).

    • Must not conflict with the preferred maintenance window.

    • Must be at least 30 minutes.

    ", - "CreateDBInstanceMessage$EngineVersion": "

    The version number of the database engine to use.

    The following are the database engines and major and minor versions that are available with Amazon RDS. Not every database engine is available for every AWS region.

    Amazon Aurora

    • Version 5.6 (only available in AWS regions ap-northeast-1, ap-northeast-2, ap-southeast-2, eu-west-1, us-east-1, us-west-2): 5.6.10a

    MariaDB

    • Version 10.0 (available in all AWS regions): 10.0.17 | 10.0.24

    Microsoft SQL Server Enterprise Edition (sqlserver-ee)

    • Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 | 11.00.6020.0.v1

    • Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 | 10.50.6529.0.v1

    Microsoft SQL Server Express Edition (sqlserver-ex)

    • Version 12.00 (available in all AWS regions): 12.00.4422.0.v1

    • Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 | 11.00.6020.0.v1

    • Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 | 10.50.6529.0.v1

    Microsoft SQL Server Standard Edition (sqlserver-se)

    • Version 12.00 (available in all AWS regions): 12.00.4422.0.v1

    • Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 | 11.00.6020.0.v1

    • Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 | 10.50.6529.0.v1

    Microsoft SQL Server Web Edition (sqlserver-web)

    • Version 12.00 (available in all AWS regions): 12.00.4422.0.v1

    • Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 | 11.00.6020.0.v1

    • Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 | 10.50.6529.0.v1

    MySQL

    • Version 5.7 (available in all AWS regions): 5.7.10 | 5.7.11

    • Version 5.6 (available in all AWS regions except ap-northeast-2): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22

    • Version 5.6 (available in all AWS regions): 5.6.23 | 5.6.27 | 5.6.29

    • Version 5.5 (available in all AWS regions except eu-central-1, ap-northeast-2): 5.5.40 | 5.5.40a

    • Version 5.5 (available in all AWS regions except ap-northeast-2): 5.5.40b | 5.5.41

    • Version 5.5 (available in all AWS regions): 5.5.42 | 5.5.46

    • Version 5.1 (available in all AWS regions except eu-central-1, ap-northeast-2): 5.1.73a | 5.1.73b

    Oracle Database Enterprise Edition (oracle-ee)

    • Version 12.1 (available in all AWS regions except ap-northeast-2): 12.1.0.1.v1 | 12.1.0.1.v2

    • Version 12.1 (available in all AWS regions except ap-northeast-2, us-gov-west-1): 12.1.0.1.v3 | 12.1.0.1.v4

    • Version 12.1 (available in all AWS regions): 12.1.0.2.v1

    • Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 | 12.1.0.2.v3

    • Version 11.2 (available in all AWS regions except eu-central-1, ap-northeast-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7

    • Version 11.2 (available in all AWS regions except ap-northeast-2): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3

    • Version 11.2 (available in all AWS regions except ap-northeast-2, us-gov-west-1): 11.2.0.3.v4

    • Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 | 11.2.0.4.v4

    • Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 | 11.2.0.4.v6 | 11.2.0.4.v7

    Oracle Database Standard Edition (oracle-se)

    • Version 12.1 (available in all AWS regions except ap-northeast-2): 12.1.0.1.v1 | 12.1.0.1.v2

    • Version 12.1 (available in all AWS regions except ap-northeast-2, us-gov-west-1): 12.1.0.1.v3 | 12.1.0.1.v4

    • Version 11.2 (available in all AWS regions except eu-central-1, ap-northeast-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7

    • Version 11.2 (available in all AWS regions except ap-northeast-2): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3

    • Version 11.2 (available in all AWS regions except ap-northeast-2, us-gov-west-1): 11.2.0.3.v4

    • Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 | 11.2.0.4.v4

    • Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 | 11.2.0.4.v6 | 11.2.0.4.v7

    Oracle Database Standard Edition One (oracle-se1)

    • Version 12.1 (available in all AWS regions except ap-northeast-2): 12.1.0.1.v1 | 12.1.0.1.v2

    • Version 12.1 (available in all AWS regions except ap-northeast-2, us-gov-west-1): 12.1.0.1.v3 | 12.1.0.1.v4

    • Version 11.2 (available in all AWS regions except eu-central-1, ap-northeast-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7

    • Version 11.2 (available in all AWS regions except ap-northeast-2): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3

    • Version 11.2 (available in all AWS regions except ap-northeast-2, us-gov-west-1): 11.2.0.3.v4

    • Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 | 11.2.0.4.v4

    • Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 | 11.2.0.4.v6 | 11.2.0.4.v7

    Oracle Database Standard Edition Two (oracle-se2)

    • Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 | 12.1.0.2.v3

    PostgreSQL

    • Version 9.5 (available in all AWS regions except us-gov-west-1): 9.5.2

    • Version 9.4 (available in all AWS regions): 9.4.1 | 9.4.4 | 9.4.5

    • Version 9.4 (available in all AWS regions except us-gov-west-1): 9.4.7

    • Version 9.3 (available in all AWS regions except eu-central-1, ap-northeast-2): 9.3.1 | 9.3.2

    • Version 9.3 (available in all AWS regions except ap-northeast-2): 9.3.10 | 9.3.3 | 9.3.5 | 9.3.6 | 9.3.9

    • Version 9.3 (available in all AWS regions except ap-northeast-2, us-gov-west-1): 9.3.12

    ", - "CreateDBInstanceMessage$LicenseModel": "

    License model information for this DB instance.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "CreateDBInstanceMessage$OptionGroupName": "

    Indicates that the DB instance should be associated with the specified option group.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "CreateDBInstanceMessage$CharacterSetName": "

    For supported engines, indicates that the DB instance should be associated with the specified CharacterSet.

    ", - "CreateDBInstanceMessage$DBClusterIdentifier": "

    The identifier of the DB cluster that the instance will belong to.

    For information on creating a DB cluster, see CreateDBCluster.

    Type: String

    ", - "CreateDBInstanceMessage$StorageType": "

    Specifies the storage type to be associated with the DB instance.

    Valid values: standard | gp2 | io1

    If you specify io1, you must also include a value for the Iops parameter.

    Default: io1 if the Iops parameter is specified; otherwise standard

    ", - "CreateDBInstanceMessage$TdeCredentialArn": "

    The ARN from the Key Store with which to associate the instance for TDE encryption.

    ", - "CreateDBInstanceMessage$TdeCredentialPassword": "

    The password for the given ARN from the Key Store in order to access the device.

    ", - "CreateDBInstanceMessage$KmsKeyId": "

    The KMS key identifier for an encrypted DB instance.

    The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a DB instance with the same AWS account that owns the KMS encryption key used to encrypt the new DB instance, then you can use the KMS key alias instead of the ARN for the KM encryption key.

    If the StorageEncrypted parameter is true, and you do not specify a value for the KmsKeyId parameter, then Amazon RDS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.

    ", - "CreateDBInstanceMessage$Domain": "

    Specify the Active Directory Domain to create the instance in.

    ", - "CreateDBInstanceMessage$MonitoringRoleArn": "

    The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess. For information on creating a monitoring role, go to To create an IAM role for Amazon RDS Enhanced Monitoring.

    If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.

    ", - "CreateDBInstanceMessage$DomainIAMRoleName": "

    Specify the name of the IAM role to be used when making API calls to the Directory Service.

    ", - "CreateDBInstanceReadReplicaMessage$DBInstanceIdentifier": "

    The DB instance identifier of the Read Replica. This identifier is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.

    ", - "CreateDBInstanceReadReplicaMessage$SourceDBInstanceIdentifier": "

    The identifier of the DB instance that will act as the source for the Read Replica. Each DB instance can have up to five Read Replicas.

    Constraints:

    • Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL DB instance.

    • Can specify a DB instance that is a MySQL Read Replica only if the source is running MySQL 5.6.

    • Can specify a DB instance that is a PostgreSQL Read Replica only if the source is running PostgreSQL 9.3.5.

    • The specified DB instance must have automatic backups enabled, its backup retention period must be greater than 0.

    • If the source DB instance is in the same region as the Read Replica, specify a valid DB instance identifier.

    • If the source DB instance is in a different region than the Read Replica, specify a valid DB instance ARN. For more information, go to Constructing a Amazon RDS Amazon Resource Name (ARN).

    ", - "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

    The compute and memory capacity of the Read Replica.

    Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

    Default: Inherits from the source DB instance.

    ", - "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

    The Amazon EC2 Availability Zone that the Read Replica will be created in.

    Default: A random, system-chosen Availability Zone in the endpoint's region.

    Example: us-east-1d

    ", - "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

    The option group the DB instance will be associated with. If omitted, the default option group for the engine specified will be used.

    ", - "CreateDBInstanceReadReplicaMessage$DBSubnetGroupName": "

    Specifies a DB subnet group for the DB instance. The new DB instance will be created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance is not created in a VPC.

    Constraints:

    • Can only be specified if the source DB instance identifier specifies a DB instance in another region.

    • The specified DB subnet group must be in the same region in which the operation is running.

    • All Read Replicas in one region that are created from the same source DB instance must either:>

      • Specify DB subnet groups from the same VPC. All these Read Replicas will be created in the same VPC.

      • Not specify a DB subnet group. All these Read Replicas will be created outside of any VPC.

    Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

    ", - "CreateDBInstanceReadReplicaMessage$StorageType": "

    Specifies the storage type to be associated with the Read Replica.

    Valid values: standard | gp2 | io1

    If you specify io1, you must also include a value for the Iops parameter.

    Default: io1 if the Iops parameter is specified; otherwise standard

    ", - "CreateDBInstanceReadReplicaMessage$MonitoringRoleArn": "

    The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess. For information on creating a monitoring role, go to To create an IAM role for Amazon RDS Enhanced Monitoring.

    If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.

    ", - "CreateDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB parameter group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    This value is stored as a lowercase string.

    ", - "CreateDBParameterGroupMessage$DBParameterGroupFamily": "

    The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.

    ", - "CreateDBParameterGroupMessage$Description": "

    The description for the DB parameter group.

    ", - "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

    The name for the DB security group. This value is stored as a lowercase string.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    • Must not be \"Default\"

    • Cannot contain spaces

    Example: mysecuritygroup

    ", - "CreateDBSecurityGroupMessage$DBSecurityGroupDescription": "

    The description for the DB security group.

    ", - "CreateDBSnapshotMessage$DBSnapshotIdentifier": "

    The identifier for the DB snapshot.

    Constraints:

    • Cannot be null, empty, or blank

    • Must contain from 1 to 255 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

    ", - "CreateDBSnapshotMessage$DBInstanceIdentifier": "

    The DB instance identifier. This is the unique key that identifies a DB instance.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "CreateDBSubnetGroupMessage$DBSubnetGroupName": "

    The name for the DB subnet group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

    ", - "CreateDBSubnetGroupMessage$DBSubnetGroupDescription": "

    The description for the DB subnet group.

    ", - "CreateEventSubscriptionMessage$SubscriptionName": "

    The name of the subscription.

    Constraints: The name must be less than 255 characters.

    ", - "CreateEventSubscriptionMessage$SnsTopicArn": "

    The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

    ", - "CreateEventSubscriptionMessage$SourceType": "

    The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "CreateOptionGroupMessage$OptionGroupName": "

    Specifies the name of the option group to be created.

    Constraints:

    • Must be 1 to 255 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: myoptiongroup

    ", - "CreateOptionGroupMessage$EngineName": "

    Specifies the name of the engine that this option group should be associated with.

    ", - "CreateOptionGroupMessage$MajorEngineVersion": "

    Specifies the major version of the engine that this option group should be associated with.

    ", - "CreateOptionGroupMessage$OptionGroupDescription": "

    The description of the option group.

    ", - "DBCluster$CharacterSetName": "

    If present, specifies the name of the character set that this cluster is associated with.

    ", - "DBCluster$DatabaseName": "

    Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

    ", - "DBCluster$DBClusterIdentifier": "

    Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.

    ", - "DBCluster$DBClusterParameterGroup": "

    Specifies the name of the DB cluster parameter group for the DB cluster.

    ", - "DBCluster$DBSubnetGroup": "

    Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

    ", - "DBCluster$Status": "

    Specifies the current state of this DB cluster.

    ", - "DBCluster$PercentProgress": "

    Specifies the progress of the operation as a percentage.

    ", - "DBCluster$Endpoint": "

    Specifies the connection endpoint for the primary instance of the DB cluster.

    ", - "DBCluster$Engine": "

    Provides the name of the database engine to be used for this DB cluster.

    ", - "DBCluster$EngineVersion": "

    Indicates the database engine version.

    ", - "DBCluster$MasterUsername": "

    Contains the master username for the DB cluster.

    ", - "DBCluster$PreferredBackupWindow": "

    Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

    ", - "DBCluster$PreferredMaintenanceWindow": "

    Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

    ", - "DBCluster$HostedZoneId": "

    Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

    ", - "DBCluster$KmsKeyId": "

    If StorageEncrypted is true, the KMS key identifier for the encrypted DB cluster.

    ", - "DBCluster$DbClusterResourceId": "

    The region-unique, immutable identifier for the DB cluster. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster is accessed.

    ", - "DBClusterMember$DBInstanceIdentifier": "

    Specifies the instance identifier for this member of the DB cluster.

    ", - "DBClusterMember$DBClusterParameterGroupStatus": "

    Specifies the status of the DB cluster parameter group for this member of the DB cluster.

    ", - "DBClusterMessage$Marker": "

    A pagination token that can be used in a subsequent DescribeDBClusters request.

    ", - "DBClusterOptionGroupStatus$DBClusterOptionGroupName": "

    Specifies the name of the DB cluster option group.

    ", - "DBClusterOptionGroupStatus$Status": "

    Specifies the status of the DB cluster option group.

    ", - "DBClusterParameterGroup$DBClusterParameterGroupName": "

    Provides the name of the DB cluster parameter group.

    ", - "DBClusterParameterGroup$DBParameterGroupFamily": "

    Provides the name of the DB parameter group family that this DB cluster parameter group is compatible with.

    ", - "DBClusterParameterGroup$Description": "

    Provides the customer-specified description for this DB cluster parameter group.

    ", - "DBClusterParameterGroupDetails$Marker": "

    An optional pagination token provided by a previous DescribeDBClusterParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DBClusterParameterGroupNameMessage$DBClusterParameterGroupName": "

    The name of the DB cluster parameter group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    This value is stored as a lowercase string.

    ", - "DBClusterParameterGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBClusterParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBClusterSnapshot$DBClusterSnapshotIdentifier": "

    Specifies the identifier for the DB cluster snapshot.

    ", - "DBClusterSnapshot$DBClusterIdentifier": "

    Specifies the DB cluster identifier of the DB cluster that this DB cluster snapshot was created from.

    ", - "DBClusterSnapshot$Engine": "

    Specifies the name of the database engine.

    ", - "DBClusterSnapshot$Status": "

    Specifies the status of this DB cluster snapshot.

    ", - "DBClusterSnapshot$VpcId": "

    Provides the VPC ID associated with the DB cluster snapshot.

    ", - "DBClusterSnapshot$MasterUsername": "

    Provides the master username for the DB cluster snapshot.

    ", - "DBClusterSnapshot$EngineVersion": "

    Provides the version of the database engine for this DB cluster snapshot.

    ", - "DBClusterSnapshot$LicenseModel": "

    Provides the license model information for this DB cluster snapshot.

    ", - "DBClusterSnapshot$SnapshotType": "

    Provides the type of the DB cluster snapshot.

    ", - "DBClusterSnapshot$KmsKeyId": "

    If StorageEncrypted is true, the KMS key identifier for the encrypted DB cluster snapshot.

    ", - "DBClusterSnapshotAttribute$AttributeName": "

    The name of the manual DB cluster snapshot attribute.

    The attribute named restore refers to the list of AWS accounts that have permission to copy or restore the manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute API action.

    ", - "DBClusterSnapshotAttributesResult$DBClusterSnapshotIdentifier": "

    The identifier of the manual DB cluster snapshot that the attributes apply to.

    ", - "DBClusterSnapshotMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBClusterSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBEngineVersion$Engine": "

    The name of the database engine.

    ", - "DBEngineVersion$EngineVersion": "

    The version number of the database engine.

    ", - "DBEngineVersion$DBParameterGroupFamily": "

    The name of the DB parameter group family for the database engine.

    ", - "DBEngineVersion$DBEngineDescription": "

    The description of the database engine.

    ", - "DBEngineVersion$DBEngineVersionDescription": "

    The description of the database engine version.

    ", - "DBEngineVersionMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBInstance$DBInstanceIdentifier": "

    Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.

    ", - "DBInstance$DBInstanceClass": "

    Contains the name of the compute and memory capacity class of the DB instance.

    ", - "DBInstance$Engine": "

    Provides the name of the database engine to be used for this DB instance.

    ", - "DBInstance$DBInstanceStatus": "

    Specifies the current state of this database.

    ", - "DBInstance$MasterUsername": "

    Contains the master username for the DB instance.

    ", - "DBInstance$DBName": "

    The meaning of this parameter differs according to the database engine you use. For example, this value returns MySQL, MariaDB, or PostgreSQL information when returning values from CreateDBInstanceReadReplica since Read Replicas are only supported for these engines.

    MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora

    Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB instance was created. This same name is returned for the life of the DB instance.

    Type: String

    Oracle

    Contains the Oracle System ID (SID) of the created DB instance. Not shown when the returned parameters do not apply to an Oracle DB instance.

    ", - "DBInstance$PreferredBackupWindow": "

    Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

    ", - "DBInstance$AvailabilityZone": "

    Specifies the name of the Availability Zone the DB instance is located in.

    ", - "DBInstance$PreferredMaintenanceWindow": "

    Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

    ", - "DBInstance$EngineVersion": "

    Indicates the database engine version.

    ", - "DBInstance$ReadReplicaSourceDBInstanceIdentifier": "

    Contains the identifier of the source DB instance if this DB instance is a Read Replica.

    ", - "DBInstance$LicenseModel": "

    License model information for this DB instance.

    ", - "DBInstance$CharacterSetName": "

    If present, specifies the name of the character set that this instance is associated with.

    ", - "DBInstance$SecondaryAvailabilityZone": "

    If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

    ", - "DBInstance$StorageType": "

    Specifies the storage type associated with DB instance.

    ", - "DBInstance$TdeCredentialArn": "

    The ARN from the Key Store with which the instance is associated for TDE encryption.

    ", - "DBInstance$DBClusterIdentifier": "

    If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.

    ", - "DBInstance$KmsKeyId": "

    If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance.

    ", - "DBInstance$DbiResourceId": "

    The region-unique, immutable identifier for the DB instance. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB instance is accessed.

    ", - "DBInstance$CACertificateIdentifier": "

    The identifier of the CA certificate for this DB instance.

    ", - "DBInstance$EnhancedMonitoringResourceArn": "

    The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.

    ", - "DBInstance$MonitoringRoleArn": "

    The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to CloudWatch Logs.

    ", - "DBInstanceMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DBInstanceStatusInfo$StatusType": "

    This value is currently \"read replication.\"

    ", - "DBInstanceStatusInfo$Status": "

    Status of the DB instance. For a StatusType of read replica, the values can be replicating, error, stopped, or terminated.

    ", - "DBInstanceStatusInfo$Message": "

    Details of the error if there is an error for the instance. If the instance is not in an error state, this value is blank.

    ", - "DBParameterGroup$DBParameterGroupName": "

    Provides the name of the DB parameter group.

    ", - "DBParameterGroup$DBParameterGroupFamily": "

    Provides the name of the DB parameter group family that this DB parameter group is compatible with.

    ", - "DBParameterGroup$Description": "

    Provides the customer-specified description for this DB parameter group.

    ", - "DBParameterGroupDetails$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBParameterGroupNameMessage$DBParameterGroupName": "

    Provides the name of the DB parameter group.

    ", - "DBParameterGroupStatus$DBParameterGroupName": "

    The name of the DP parameter group.

    ", - "DBParameterGroupStatus$ParameterApplyStatus": "

    The status of parameter updates.

    ", - "DBParameterGroupsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSecurityGroup$OwnerId": "

    Provides the AWS ID of the owner of a specific DB security group.

    ", - "DBSecurityGroup$DBSecurityGroupName": "

    Specifies the name of the DB security group.

    ", - "DBSecurityGroup$DBSecurityGroupDescription": "

    Provides the description of the DB security group.

    ", - "DBSecurityGroup$VpcId": "

    Provides the VpcId of the DB security group.

    ", - "DBSecurityGroupMembership$DBSecurityGroupName": "

    The name of the DB security group.

    ", - "DBSecurityGroupMembership$Status": "

    The status of the DB security group.

    ", - "DBSecurityGroupMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSecurityGroupNameList$member": null, - "DBSnapshot$DBSnapshotIdentifier": "

    Specifies the identifier for the DB snapshot.

    ", - "DBSnapshot$DBInstanceIdentifier": "

    Specifies the DB instance identifier of the DB instance this DB snapshot was created from.

    ", - "DBSnapshot$Engine": "

    Specifies the name of the database engine.

    ", - "DBSnapshot$Status": "

    Specifies the status of this DB snapshot.

    ", - "DBSnapshot$AvailabilityZone": "

    Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.

    ", - "DBSnapshot$VpcId": "

    Provides the VPC ID associated with the DB snapshot.

    ", - "DBSnapshot$MasterUsername": "

    Provides the master username for the DB snapshot.

    ", - "DBSnapshot$EngineVersion": "

    Specifies the version of the database engine.

    ", - "DBSnapshot$LicenseModel": "

    License model information for the restored DB instance.

    ", - "DBSnapshot$SnapshotType": "

    Provides the type of the DB snapshot.

    ", - "DBSnapshot$OptionGroupName": "

    Provides the option group name for the DB snapshot.

    ", - "DBSnapshot$SourceRegion": "

    The region that the DB snapshot was created in or copied from.

    ", - "DBSnapshot$SourceDBSnapshotIdentifier": "

    The DB snapshot Arn that the DB snapshot was copied from. It only has value in case of cross customer or cross region copy.

    ", - "DBSnapshot$StorageType": "

    Specifies the storage type associated with DB Snapshot.

    ", - "DBSnapshot$TdeCredentialArn": "

    The ARN from the Key Store with which to associate the instance for TDE encryption.

    ", - "DBSnapshot$KmsKeyId": "

    If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.

    ", - "DBSnapshotAttribute$AttributeName": "

    The name of the manual DB snapshot attribute.

    The attribute named restore refers to the list of AWS accounts that have permission to copy or restore the manual DB cluster snapshot. For more information, see the ModifyDBSnapshotAttribute API action.

    ", - "DBSnapshotAttributesResult$DBSnapshotIdentifier": "

    The identifier of the manual DB snapshot that the attributes apply to.

    ", - "DBSnapshotMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DBSubnetGroup$DBSubnetGroupName": "

    The name of the DB subnet group.

    ", - "DBSubnetGroup$DBSubnetGroupDescription": "

    Provides the description of the DB subnet group.

    ", - "DBSubnetGroup$VpcId": "

    Provides the VpcId of the DB subnet group.

    ", - "DBSubnetGroup$SubnetGroupStatus": "

    Provides the status of the DB subnet group.

    ", - "DBSubnetGroupMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DeleteDBClusterMessage$DBClusterIdentifier": "

    The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DeleteDBClusterMessage$FinalDBSnapshotIdentifier": "

    The DB cluster snapshot identifier of the new DB cluster snapshot created when SkipFinalSnapshot is set to false.

    Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DeleteDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

    The name of the DB cluster parameter group.

    Constraints:

    • Must be the name of an existing DB cluster parameter group.

    • You cannot delete a default DB cluster parameter group.

    • Cannot be associated with any DB clusters.

    ", - "DeleteDBClusterSnapshotMessage$DBClusterSnapshotIdentifier": "

    The identifier of the DB cluster snapshot to delete.

    Constraints: Must be the name of an existing DB cluster snapshot in the available state.

    ", - "DeleteDBInstanceMessage$DBInstanceIdentifier": "

    The DB instance identifier for the DB instance to be deleted. This parameter isn't case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": "

    The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot is set to false.

    Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    • Cannot be specified when deleting a Read Replica.

    ", - "DeleteDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB parameter group.

    Constraints:

    • Must be the name of an existing DB parameter group

    • You cannot delete a default DB parameter group

    • Cannot be associated with any DB instances

    ", - "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

    The name of the DB security group to delete.

    You cannot delete the default DB security group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    • Must not be \"Default\"

    • Cannot contain spaces

    ", - "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

    The DBSnapshot identifier.

    Constraints: Must be the name of an existing DB snapshot in the available state.

    ", - "DeleteDBSubnetGroupMessage$DBSubnetGroupName": "

    The name of the database subnet group to delete.

    You cannot delete the default subnet group.

    Constraints:

    Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

    ", - "DeleteEventSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to delete.

    ", - "DeleteOptionGroupMessage$OptionGroupName": "

    The name of the option group to be deleted.

    You cannot delete default option groups.

    ", - "DescribeCertificatesMessage$CertificateIdentifier": "

    The user-supplied certificate identifier. If this parameter is specified, information for only the identified certificate is returned. This parameter isn't case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeCertificatesMessage$Marker": "

    An optional pagination token provided by a previous DescribeCertificates request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBClusterParameterGroupsMessage$DBClusterParameterGroupName": "

    The name of a specific DB cluster parameter group to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeDBClusterParameterGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBClusterParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBClusterParametersMessage$DBClusterParameterGroupName": "

    The name of a specific DB cluster parameter group to return parameter details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeDBClusterParametersMessage$Source": "

    A value that indicates to return only parameters for a specific source. Parameter sources can be engine, service, or customer.

    ", - "DescribeDBClusterParametersMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBClusterParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBClusterSnapshotAttributesMessage$DBClusterSnapshotIdentifier": "

    The identifier for the DB cluster snapshot to describe the attributes for.

    ", - "DescribeDBClusterSnapshotsMessage$DBClusterIdentifier": "

    The ID of the DB cluster to retrieve the list of DB cluster snapshots for. This parameter cannot be used in conjunction with the DBClusterSnapshotIdentifier parameter. This parameter is not case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeDBClusterSnapshotsMessage$DBClusterSnapshotIdentifier": "

    A specific DB cluster snapshot identifier to describe. This parameter cannot be used in conjunction with the DBClusterIdentifier parameter. This value is stored as a lowercase string.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    • If this identifier is for an automated snapshot, the SnapshotType parameter must also be specified.

    ", - "DescribeDBClusterSnapshotsMessage$SnapshotType": "

    The type of DB cluster snapshots to be returned. You can specify one of the following values:

    • automated - Return all DB cluster snapshots that have been automatically taken by Amazon RDS for my AWS account.

    • manual - Return all DB cluster snapshots that have been taken by my AWS account.

    • shared - Return all manual DB cluster snapshots that have been shared to my AWS account.

    • public - Return all DB cluster snapshots that have been marked as public.

    If you don't specify a SnapshotType value, then both automated and manual DB cluster snapshots are returned. You can include shared DB cluster snapshots with these results by setting the IncludeShared parameter to true. You can include public DB cluster snapshots with these results by setting the IncludePublic parameter to true.

    The IncludeShared and IncludePublic parameters don't apply for SnapshotType values of manual or automated. The IncludePublic parameter doesn't apply when SnapshotType is set to shared. The IncludeShared parameter doesn't apply when SnapshotType is set to public.

    ", - "DescribeDBClusterSnapshotsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBClusterSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBClustersMessage$DBClusterIdentifier": "

    The user-supplied DB cluster identifier. If this parameter is specified, information from only the specific DB cluster is returned. This parameter isn't case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeDBClustersMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBClusters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBEngineVersionsMessage$Engine": "

    The database engine to return.

    ", - "DescribeDBEngineVersionsMessage$EngineVersion": "

    The database engine version to return.

    Example: 5.1.49

    ", - "DescribeDBEngineVersionsMessage$DBParameterGroupFamily": "

    The name of a specific DB parameter group family to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeDBEngineVersionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBInstancesMessage$DBInstanceIdentifier": "

    The user-supplied instance identifier. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeDBInstancesMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBLogFilesDetails$LogFileName": "

    The name of the log file for the specified DB instance.

    ", - "DescribeDBLogFilesMessage$DBInstanceIdentifier": "

    The customer-assigned name of the DB instance that contains the log files you want to list.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeDBLogFilesMessage$FilenameContains": "

    Filters the available log files for log file names that contain the specified string.

    ", - "DescribeDBLogFilesMessage$Marker": "

    The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.

    ", - "DescribeDBLogFilesResponse$Marker": "

    A pagination token that can be used in a subsequent DescribeDBLogFiles request.

    ", - "DescribeDBParameterGroupsMessage$DBParameterGroupName": "

    The name of a specific DB parameter group to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeDBParameterGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBParametersMessage$DBParameterGroupName": "

    The name of a specific DB parameter group to return details for.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeDBParametersMessage$Source": "

    The parameter types to return.

    Default: All parameter types returned

    Valid Values: user | system | engine-default

    ", - "DescribeDBParametersMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSecurityGroupsMessage$DBSecurityGroupName": "

    The name of the DB security group to return details for.

    ", - "DescribeDBSecurityGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSecurityGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSnapshotAttributesMessage$DBSnapshotIdentifier": "

    The identifier for the DB snapshot to describe the attributes for.

    ", - "DescribeDBSnapshotsMessage$DBInstanceIdentifier": "

    The ID of the DB instance to retrieve the list of DB snapshots for. This parameter cannot be used in conjunction with DBSnapshotIdentifier. This parameter is not case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

    A specific DB snapshot identifier to describe. This parameter cannot be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

    Constraints:

    • Must be 1 to 255 alphanumeric characters.

    • First character must be a letter.

    • Cannot end with a hyphen or contain two consecutive hyphens.

    • If this identifier is for an automated snapshot, the SnapshotType parameter must also be specified.

    ", - "DescribeDBSnapshotsMessage$SnapshotType": "

    The type of snapshots to be returned. You can specify one of the following values:

    • automated - Return all DB snapshots that have been automatically taken by Amazon RDS for my AWS account.

    • manual - Return all DB snapshots that have been taken by my AWS account.

    • shared - Return all manual DB snapshots that have been shared to my AWS account.

    • public - Return all DB snapshots that have been marked as public.

    If you don't specify a SnapshotType value, then both automated and manual snapshots are returned. You can include shared snapshots with these results by setting the IncludeShared parameter to true. You can include public snapshots with these results by setting the IncludePublic parameter to true.

    The IncludeShared and IncludePublic parameters don't apply for SnapshotType values of manual or automated. The IncludePublic parameter doesn't apply when SnapshotType is set to shared. The IncludeShared parameter doesn't apply when SnapshotType is set to public.

    ", - "DescribeDBSnapshotsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeDBSubnetGroupsMessage$DBSubnetGroupName": "

    The name of the DB subnet group to return details for.

    ", - "DescribeDBSubnetGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeDBSubnetGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEngineDefaultClusterParametersMessage$DBParameterGroupFamily": "

    The name of the DB cluster parameter group family to return engine parameter information for.

    ", - "DescribeEngineDefaultClusterParametersMessage$Marker": "

    An optional pagination token provided by a previous DescribeEngineDefaultClusterParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEngineDefaultParametersMessage$DBParameterGroupFamily": "

    The name of the DB parameter group family.

    ", - "DescribeEngineDefaultParametersMessage$Marker": "

    An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeEventCategoriesMessage$SourceType": "

    The type of source that will be generating the events.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "DescribeEventSubscriptionsMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to describe.

    ", - "DescribeEventSubscriptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribeEventsMessage$SourceIdentifier": "

    The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.

    Constraints:

    • If SourceIdentifier is supplied, SourceType must also be provided.

    • If the source type is DBInstance, then a DBInstanceIdentifier must be supplied.

    • If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied.

    • If the source type is DBParameterGroup, a DBParameterGroupName must be supplied.

    • If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.

    • Cannot end with a hyphen or contain two consecutive hyphens.

    ", - "DescribeEventsMessage$Marker": "

    An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupOptionsMessage$EngineName": "

    A required parameter. Options available for the given engine name will be described.

    ", - "DescribeOptionGroupOptionsMessage$MajorEngineVersion": "

    If specified, filters the results to include only options for the specified major engine version.

    ", - "DescribeOptionGroupOptionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupsMessage$OptionGroupName": "

    The name of the option group to describe. Cannot be supplied together with EngineName or MajorEngineVersion.

    ", - "DescribeOptionGroupsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOptionGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeOptionGroupsMessage$EngineName": "

    Filters the list of option groups to only include groups associated with a specific database engine.

    ", - "DescribeOptionGroupsMessage$MajorEngineVersion": "

    Filters the list of option groups to only include groups associated with a specific database engine version. If specified, then EngineName must also be specified.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Engine": "

    The name of the engine to retrieve DB instance options for.

    ", - "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": "

    The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

    ", - "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": "

    The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

    ", - "DescribeOrderableDBInstanceOptionsMessage$LicenseModel": "

    The license model filter value. Specify this parameter to show only the available offerings matching the specified license model.

    ", - "DescribeOrderableDBInstanceOptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "DescribePendingMaintenanceActionsMessage$ResourceIdentifier": "

    The ARN of a resource to return pending maintenance actions for.

    ", - "DescribePendingMaintenanceActionsMessage$Marker": "

    An optional pagination token provided by a previous DescribePendingMaintenanceActions request. If this parameter is specified, the response includes only records beyond the marker, up to a number of records specified by MaxRecords.

    ", - "DescribeReservedDBInstancesMessage$ReservedDBInstanceId": "

    The reserved DB instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.

    ", - "DescribeReservedDBInstancesMessage$ReservedDBInstancesOfferingId": "

    The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

    ", - "DescribeReservedDBInstancesMessage$DBInstanceClass": "

    The DB instance class filter value. Specify this parameter to show only those reservations matching the specified DB instances class.

    ", - "DescribeReservedDBInstancesMessage$Duration": "

    The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

    Valid Values: 1 | 3 | 31536000 | 94608000

    ", - "DescribeReservedDBInstancesMessage$ProductDescription": "

    The product description filter value. Specify this parameter to show only those reservations matching the specified product description.

    ", - "DescribeReservedDBInstancesMessage$OfferingType": "

    The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

    Valid Values: \"Partial Upfront\" | \"All Upfront\" | \"No Upfront\"

    ", - "DescribeReservedDBInstancesMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DescribeReservedDBInstancesOfferingsMessage$ReservedDBInstancesOfferingId": "

    The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

    Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

    ", - "DescribeReservedDBInstancesOfferingsMessage$DBInstanceClass": "

    The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

    ", - "DescribeReservedDBInstancesOfferingsMessage$Duration": "

    Duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.

    Valid Values: 1 | 3 | 31536000 | 94608000

    ", - "DescribeReservedDBInstancesOfferingsMessage$ProductDescription": "

    Product description filter value. Specify this parameter to show only the available offerings matching the specified product description.

    ", - "DescribeReservedDBInstancesOfferingsMessage$OfferingType": "

    The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.

    Valid Values: \"Partial Upfront\" | \"All Upfront\" | \"No Upfront\"

    ", - "DescribeReservedDBInstancesOfferingsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "DomainMembership$Domain": "

    The identifier of the Active Directory Domain.

    ", - "DomainMembership$Status": "

    The status of the DB instance's Active Directory Domain membership, such as joined, pending-join, failed etc).

    ", - "DomainMembership$FQDN": "

    The fully qualified domain name of the Active Directory Domain.

    ", - "DomainMembership$IAMRoleName": "

    The name of the IAM role to be used when making API calls to the Directory Service.

    ", - "DownloadDBLogFilePortionDetails$LogFileData": "

    Entries from the specified log file.

    ", - "DownloadDBLogFilePortionDetails$Marker": "

    A pagination token that can be used in a subsequent DownloadDBLogFilePortion request.

    ", - "DownloadDBLogFilePortionMessage$DBInstanceIdentifier": "

    The customer-assigned name of the DB instance that contains the log files you want to list.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "DownloadDBLogFilePortionMessage$LogFileName": "

    The name of the log file to be downloaded.

    ", - "DownloadDBLogFilePortionMessage$Marker": "

    The pagination token provided in the previous request or \"0\". If the Marker parameter is specified the response includes only records beyond the marker until the end of the file or up to NumberOfLines.

    ", - "EC2SecurityGroup$Status": "

    Provides the status of the EC2 security group. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

    ", - "EC2SecurityGroup$EC2SecurityGroupName": "

    Specifies the name of the EC2 security group.

    ", - "EC2SecurityGroup$EC2SecurityGroupId": "

    Specifies the id of the EC2 security group.

    ", - "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

    Specifies the AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName field.

    ", - "Endpoint$Address": "

    Specifies the DNS address of the DB instance.

    ", - "Endpoint$HostedZoneId": "

    Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.

    ", - "EngineDefaults$DBParameterGroupFamily": "

    Specifies the name of the DB parameter group family that the engine default parameters apply to.

    ", - "EngineDefaults$Marker": "

    An optional pagination token provided by a previous EngineDefaults request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "Event$SourceIdentifier": "

    Provides the identifier for the source of the event.

    ", - "Event$Message": "

    Provides the text of this event.

    ", - "EventCategoriesList$member": null, - "EventCategoriesMap$SourceType": "

    The source type that the returned categories belong to

    ", - "EventSubscription$CustomerAwsId": "

    The AWS customer account associated with the RDS event notification subscription.

    ", - "EventSubscription$CustSubscriptionId": "

    The RDS event notification subscription Id.

    ", - "EventSubscription$SnsTopicArn": "

    The topic ARN of the RDS event notification subscription.

    ", - "EventSubscription$Status": "

    The status of the RDS event notification subscription.

    Constraints:

    Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist

    The status \"no-permission\" indicates that RDS no longer has permission to post to the SNS topic. The status \"topic-not-exist\" indicates that the topic was deleted after the subscription was created.

    ", - "EventSubscription$SubscriptionCreationTime": "

    The time the RDS event notification subscription was created.

    ", - "EventSubscription$SourceType": "

    The source type for the RDS event notification subscription.

    ", - "EventSubscriptionsMessage$Marker": "

    An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "EventsMessage$Marker": "

    An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "FailoverDBClusterMessage$DBClusterIdentifier": "

    A DB cluster identifier to force a failover for. This parameter is not case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "Filter$Name": "

    This parameter is not currently supported.

    ", - "FilterValueList$member": null, - "IPRange$Status": "

    Specifies the status of the IP range. Status can be \"authorizing\", \"authorized\", \"revoking\", and \"revoked\".

    ", - "IPRange$CIDRIP": "

    Specifies the IP range.

    ", - "KeyList$member": null, - "ListTagsForResourceMessage$ResourceName": "

    The Amazon RDS resource with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    ", - "ModifyDBClusterMessage$DBClusterIdentifier": "

    The DB cluster identifier for the cluster being modified. This parameter is not case-sensitive.

    Constraints:

    • Must be the identifier for an existing DB cluster.

    • Must contain from 1 to 63 alphanumeric characters or hyphens.

    • First character must be a letter.

    • Cannot end with a hyphen or contain two consecutive hyphens.

    ", - "ModifyDBClusterMessage$NewDBClusterIdentifier": "

    The new DB cluster identifier for the DB cluster when renaming a DB cluster. This value is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-cluster2

    ", - "ModifyDBClusterMessage$DBClusterParameterGroupName": "

    The name of the DB cluster parameter group to use for the DB cluster.

    ", - "ModifyDBClusterMessage$MasterUserPassword": "

    The new password for the master database user. This password can contain any printable ASCII character except \"/\", \"\"\", or \"@\".

    Constraints: Must contain from 8 to 41 characters.

    ", - "ModifyDBClusterMessage$OptionGroupName": "

    A value that indicates that the DB cluster should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case, and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

    Permanent options cannot be removed from an option group. The option group cannot be removed from a DB cluster once it is associated with a DB cluster.

    ", - "ModifyDBClusterMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

    Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

    Constraints:

    • Must be in the format hh24:mi-hh24:mi.

    • Times should be in Universal Coordinated Time (UTC).

    • Must not conflict with the preferred maintenance window.

    • Must be at least 30 minutes.

    ", - "ModifyDBClusterMessage$PreferredMaintenanceWindow": "

    The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

    Format: ddd:hh24:mi-ddd:hh24:mi

    Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

    Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

    Constraints: Minimum 30-minute window.

    ", - "ModifyDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

    The name of the DB cluster parameter group to modify.

    ", - "ModifyDBClusterSnapshotAttributeMessage$DBClusterSnapshotIdentifier": "

    The identifier for the DB cluster snapshot to modify the attributes for.

    ", - "ModifyDBClusterSnapshotAttributeMessage$AttributeName": "

    The name of the DB cluster snapshot attribute to modify.

    To manage authorization for other AWS accounts to copy or restore a manual DB cluster snapshot, set this value to restore.

    ", - "ModifyDBInstanceMessage$DBInstanceIdentifier": "

    The DB instance identifier. This value is stored as a lowercase string.

    Constraints:

    • Must be the identifier for an existing DB instance

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "ModifyDBInstanceMessage$DBInstanceClass": "

    The new compute and memory capacity of the DB instance. To determine the instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions action.

    Passing a value for this setting causes an outage during the change and is applied during the next maintenance window, unless ApplyImmediately is specified as true for this request.

    Default: Uses existing setting

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

    ", - "ModifyDBInstanceMessage$MasterUserPassword": "

    The new password for the DB instance master user. Can be any printable ASCII character except \"/\", \"\"\", or \"@\".

    Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

    Default: Uses existing setting

    Constraints: Must be 8 to 41 alphanumeric characters (MySQL, MariaDB, and Amazon Aurora), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server).

    Amazon RDS API actions never return the password, so this action provides a way to regain access to a primary instance user if the password is lost. This includes restoring privileges that might have been accidentally revoked.

    ", - "ModifyDBInstanceMessage$DBParameterGroupName": "

    The name of the DB parameter group to apply to the DB instance. Changing this setting does not result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. The db instance will NOT be rebooted automatically and the parameter changes will NOT be applied during the next maintenance window.

    Default: Uses existing setting

    Constraints: The DB parameter group must be in the same DB parameter group family as this DB instance.

    ", - "ModifyDBInstanceMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod parameter. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.

    Constraints:

    • Must be in the format hh24:mi-hh24:mi

    • Times should be in Universal Time Coordinated (UTC)

    • Must not conflict with the preferred maintenance window

    • Must be at least 30 minutes

    ", - "ModifyDBInstanceMessage$PreferredMaintenanceWindow": "

    The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter will cause a reboot of the DB instance. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.

    Default: Uses existing setting

    Format: ddd:hh24:mi-ddd:hh24:mi

    Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

    Constraints: Must be at least 30 minutes

    ", - "ModifyDBInstanceMessage$EngineVersion": "

    The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request.

    For major version upgrades, if a non-default DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.

    For a list of valid engine versions, see CreateDBInstance.

    ", - "ModifyDBInstanceMessage$OptionGroupName": "

    Indicates that the DB instance should be associated with the specified option group. Changing this parameter does not result in an outage except in the following case and the change is applied during the next maintenance window unless the ApplyImmediately parameter is set to true for this request. If the parameter change results in an option group that enables OEM, this change can cause a brief (sub-second) period during which new connections are rejected but existing connections are not interrupted.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "ModifyDBInstanceMessage$NewDBInstanceIdentifier": "

    The new DB instance identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot will occur immediately if you set Apply Immediately to true, or will occur during the next maintenance window if Apply Immediately to false. This value is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "ModifyDBInstanceMessage$StorageType": "

    Specifies the storage type to be associated with the DB instance.

    Valid values: standard | gp2 | io1

    If you specify io1, you must also include a value for the Iops parameter.

    Default: io1 if the Iops parameter is specified; otherwise standard

    ", - "ModifyDBInstanceMessage$TdeCredentialArn": "

    The ARN from the Key Store with which to associate the instance for TDE encryption.

    ", - "ModifyDBInstanceMessage$TdeCredentialPassword": "

    The password for the given ARN from the Key Store in order to access the device.

    ", - "ModifyDBInstanceMessage$CACertificateIdentifier": "

    Indicates the certificate that needs to be associated with the instance.

    ", - "ModifyDBInstanceMessage$Domain": "

    Specify the Active Directory Domain to move the instance to.

    The specified Active Directory Domain must be created prior to this operation. Currently only a SQL Server instance can be created in a Active Directory Domain.

    ", - "ModifyDBInstanceMessage$MonitoringRoleArn": "

    The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess. For information on creating a monitoring role, go to To create an IAM role for Amazon RDS Enhanced Monitoring.

    If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.

    ", - "ModifyDBInstanceMessage$DomainIAMRoleName": "

    Specify the name of the IAM role to be used when making API calls to the Directory Service.

    ", - "ModifyDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB parameter group.

    Constraints:

    • Must be the name of an existing DB parameter group

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "ModifyDBSnapshotAttributeMessage$DBSnapshotIdentifier": "

    The identifier for the DB snapshot to modify the attributes for.

    ", - "ModifyDBSnapshotAttributeMessage$AttributeName": "

    The name of the DB snapshot attribute to modify.

    To manage authorization for other AWS accounts to copy or restore a manual DB snapshot, set this value to restore.

    ", - "ModifyDBSubnetGroupMessage$DBSubnetGroupName": "

    The name for the DB subnet group. This value is stored as a lowercase string.

    Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

    ", - "ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "

    The description for the DB subnet group.

    ", - "ModifyEventSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription.

    ", - "ModifyEventSubscriptionMessage$SnsTopicArn": "

    The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

    ", - "ModifyEventSubscriptionMessage$SourceType": "

    The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

    Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

    ", - "ModifyOptionGroupMessage$OptionGroupName": "

    The name of the option group to be modified.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "Option$OptionName": "

    The name of the option.

    ", - "Option$OptionDescription": "

    The description of the option.

    ", - "OptionConfiguration$OptionName": "

    The configuration of options to include in a group.

    ", - "OptionGroup$OptionGroupName": "

    Specifies the name of the option group.

    ", - "OptionGroup$OptionGroupDescription": "

    Provides a description of the option group.

    ", - "OptionGroup$EngineName": "

    Indicates the name of the engine that this option group can be applied to.

    ", - "OptionGroup$MajorEngineVersion": "

    Indicates the major engine version associated with this option group.

    ", - "OptionGroup$VpcId": "

    If AllowsVpcAndNonVpcInstanceMemberships is false, this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is true and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.

    ", - "OptionGroupMembership$OptionGroupName": "

    The name of the option group that the instance belongs to.

    ", - "OptionGroupMembership$Status": "

    The status of the DB instance's option group membership. Valid values are: in-sync, pending-apply, pending-removal, pending-maintenance-apply, pending-maintenance-removal, applying, removing, and failed.

    ", - "OptionGroupOption$Name": "

    The name of the option.

    ", - "OptionGroupOption$Description": "

    The description of the option.

    ", - "OptionGroupOption$EngineName": "

    The name of the engine that this option can be applied to.

    ", - "OptionGroupOption$MajorEngineVersion": "

    Indicates the major engine version that the option is available for.

    ", - "OptionGroupOption$MinimumRequiredMinorEngineVersion": "

    The minimum required engine version for the option to be applied.

    ", - "OptionGroupOptionSetting$SettingName": "

    The name of the option group option.

    ", - "OptionGroupOptionSetting$SettingDescription": "

    The description of the option group option.

    ", - "OptionGroupOptionSetting$DefaultValue": "

    The default value for the option group option.

    ", - "OptionGroupOptionSetting$ApplyType": "

    The DB engine specific parameter type for the option group option.

    ", - "OptionGroupOptionSetting$AllowedValues": "

    Indicates the acceptable values for the option group option.

    ", - "OptionGroupOptionsMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "OptionGroups$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "OptionNamesList$member": null, - "OptionSetting$Name": "

    The name of the option that has settings that you can set.

    ", - "OptionSetting$Value": "

    The current value of the option setting.

    ", - "OptionSetting$DefaultValue": "

    The default value of the option setting.

    ", - "OptionSetting$Description": "

    The description of the option setting.

    ", - "OptionSetting$ApplyType": "

    The DB engine specific parameter type.

    ", - "OptionSetting$DataType": "

    The data type of the option setting.

    ", - "OptionSetting$AllowedValues": "

    The allowed values of the option setting.

    ", - "OptionsDependedOn$member": null, - "OrderableDBInstanceOption$Engine": "

    The engine type of the orderable DB instance.

    ", - "OrderableDBInstanceOption$EngineVersion": "

    The engine version of the orderable DB instance.

    ", - "OrderableDBInstanceOption$DBInstanceClass": "

    The DB instance class for the orderable DB instance.

    ", - "OrderableDBInstanceOption$LicenseModel": "

    The license model for the orderable DB instance.

    ", - "OrderableDBInstanceOption$StorageType": "

    Indicates the storage type for this orderable DB instance.

    ", - "OrderableDBInstanceOptionsMessage$Marker": "

    An optional pagination token provided by a previous OrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

    ", - "Parameter$ParameterName": "

    Specifies the name of the parameter.

    ", - "Parameter$ParameterValue": "

    Specifies the value of the parameter.

    ", - "Parameter$Description": "

    Provides a description of the parameter.

    ", - "Parameter$Source": "

    Indicates the source of the parameter value.

    ", - "Parameter$ApplyType": "

    Specifies the engine specific parameters type.

    ", - "Parameter$DataType": "

    Specifies the valid data type for the parameter.

    ", - "Parameter$AllowedValues": "

    Specifies the valid range of values for the parameter.

    ", - "Parameter$MinimumEngineVersion": "

    The earliest engine version to which the parameter can apply.

    ", - "PendingMaintenanceAction$Action": "

    The type of pending maintenance action that is available for the resource.

    ", - "PendingMaintenanceAction$OptInStatus": "

    Indicates the type of opt-in request that has been received for the resource.

    ", - "PendingMaintenanceAction$Description": "

    A description providing more detail about the maintenance action.

    ", - "PendingMaintenanceActionsMessage$Marker": "

    An optional pagination token provided by a previous DescribePendingMaintenanceActions request. If this parameter is specified, the response includes only records beyond the marker, up to a number of records specified by MaxRecords.

    ", - "PendingModifiedValues$DBInstanceClass": "

    Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.

    ", - "PendingModifiedValues$MasterUserPassword": "

    Contains the pending or in-progress change of the master credentials for the DB instance.

    ", - "PendingModifiedValues$EngineVersion": "

    Indicates the database engine version.

    ", - "PendingModifiedValues$DBInstanceIdentifier": "

    Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.

    ", - "PendingModifiedValues$StorageType": "

    Specifies the storage type to be associated with the DB instance.

    ", - "PendingModifiedValues$CACertificateIdentifier": "

    Specifies the identifier of the CA certificate for the DB instance.

    ", - "PromoteReadReplicaMessage$DBInstanceIdentifier": "

    The DB instance identifier. This value is stored as a lowercase string.

    Constraints:

    • Must be the identifier for an existing Read Replica DB instance

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: mydbinstance

    ", - "PromoteReadReplicaMessage$PreferredBackupWindow": "

    The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

    Default: A 30-minute window selected at random from an 8-hour block of time per region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.

    Constraints:

    • Must be in the format hh24:mi-hh24:mi.

    • Times should be in Universal Coordinated Time (UTC).

    • Must not conflict with the preferred maintenance window.

    • Must be at least 30 minutes.

    ", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstancesOfferingId": "

    The ID of the Reserved DB instance offering to purchase.

    Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

    ", - "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "

    Customer-specified identifier to track this reservation.

    Example: myreservationID

    ", - "ReadReplicaDBInstanceIdentifierList$member": null, - "RebootDBInstanceMessage$DBInstanceIdentifier": "

    The DB instance identifier. This parameter is stored as a lowercase string.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "RecurringCharge$RecurringChargeFrequency": "

    The frequency of the recurring charge.

    ", - "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": "

    The name of the RDS event notification subscription you want to remove a source identifier from.

    ", - "RemoveSourceIdentifierFromSubscriptionMessage$SourceIdentifier": "

    The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

    ", - "RemoveTagsFromResourceMessage$ResourceName": "

    The Amazon RDS resource the tags will be removed from. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).

    ", - "ReservedDBInstance$ReservedDBInstanceId": "

    The unique identifier for the reservation.

    ", - "ReservedDBInstance$ReservedDBInstancesOfferingId": "

    The offering identifier.

    ", - "ReservedDBInstance$DBInstanceClass": "

    The DB instance class for the reserved DB instance.

    ", - "ReservedDBInstance$CurrencyCode": "

    The currency code for the reserved DB instance.

    ", - "ReservedDBInstance$ProductDescription": "

    The description of the reserved DB instance.

    ", - "ReservedDBInstance$OfferingType": "

    The offering type of this reserved DB instance.

    ", - "ReservedDBInstance$State": "

    The state of the reserved DB instance.

    ", - "ReservedDBInstanceMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "ReservedDBInstancesOffering$ReservedDBInstancesOfferingId": "

    The offering identifier.

    ", - "ReservedDBInstancesOffering$DBInstanceClass": "

    The DB instance class for the reserved DB instance.

    ", - "ReservedDBInstancesOffering$CurrencyCode": "

    The currency code for the reserved DB instance offering.

    ", - "ReservedDBInstancesOffering$ProductDescription": "

    The database engine used by the offering.

    ", - "ReservedDBInstancesOffering$OfferingType": "

    The offering type.

    ", - "ReservedDBInstancesOfferingMessage$Marker": "

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    ", - "ResetDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

    The name of the DB cluster parameter group to reset.

    ", - "ResetDBParameterGroupMessage$DBParameterGroupName": "

    The name of the DB parameter group.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "ResourcePendingMaintenanceActions$ResourceIdentifier": "

    The ARN of the resource that has pending maintenance actions.

    ", - "RestoreDBClusterFromSnapshotMessage$DBClusterIdentifier": "

    The name of the DB cluster to create from the DB cluster snapshot. This parameter isn't case-sensitive.

    Constraints:

    • Must contain from 1 to 255 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

    ", - "RestoreDBClusterFromSnapshotMessage$SnapshotIdentifier": "

    The identifier for the DB cluster snapshot to restore from.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "RestoreDBClusterFromSnapshotMessage$Engine": "

    The database engine to use for the new DB cluster.

    Default: The same as source

    Constraint: Must be compatible with the engine of the source

    ", - "RestoreDBClusterFromSnapshotMessage$EngineVersion": "

    The version of the database engine to use for the new DB cluster.

    ", - "RestoreDBClusterFromSnapshotMessage$DBSubnetGroupName": "

    The name of the DB subnet group to use for the new DB cluster.

    Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

    ", - "RestoreDBClusterFromSnapshotMessage$DatabaseName": "

    The database name for the restored DB cluster.

    ", - "RestoreDBClusterFromSnapshotMessage$OptionGroupName": "

    The name of the option group to use for the restored DB cluster.

    ", - "RestoreDBClusterFromSnapshotMessage$KmsKeyId": "

    The KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster snapshot.

    The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same AWS account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.

    If you do not specify a value for the KmsKeyId parameter, then the following will occur:

    • If the DB cluster snapshot is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to encrypt the DB cluster snapshot.

    • If the DB cluster snapshot is not encrypted, then the restored DB cluster is not encrypted.

    If SnapshotIdentifier refers to a DB cluster snapshot that is not encrypted, and you specify a value for the KmsKeyId parameter, then the restore request is rejected.

    ", - "RestoreDBClusterToPointInTimeMessage$DBClusterIdentifier": "

    The name of the new DB cluster to be created.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "RestoreDBClusterToPointInTimeMessage$SourceDBClusterIdentifier": "

    The identifier of the source DB cluster from which to restore.

    Constraints:

    • Must be the identifier of an existing database instance

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "RestoreDBClusterToPointInTimeMessage$DBSubnetGroupName": "

    The DB subnet group name to use for the new DB cluster.

    Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

    ", - "RestoreDBClusterToPointInTimeMessage$OptionGroupName": "

    The name of the option group for the new DB cluster.

    ", - "RestoreDBClusterToPointInTimeMessage$KmsKeyId": "

    The KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster.

    The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same AWS account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.

    You can restore to a new DB cluster and encrypt the new DB cluster with a KMS key that is different than the KMS key used to encrypt the source DB cluster. The new DB cluster will be encrypted with the KMS key identified by the KmsKeyId parameter.

    If you do not specify a value for the KmsKeyId parameter, then the following will occur:

    • If the DB cluster is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to encrypt the source DB cluster.

    • If the DB cluster is not encrypted, then the restored DB cluster is not encrypted.

    If DBClusterIdentifier refers to a DB cluster that is note encrypted, then the restore request is rejected.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceIdentifier": "

    Name of the DB instance to create from the DB snapshot. This parameter isn't case-sensitive.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for SQL Server)

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBSnapshotIdentifier": "

    The identifier for the DB snapshot to restore from.

    Constraints:

    • Must contain from 1 to 255 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier must be the ARN of the shared DB snapshot.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": "

    The compute and memory capacity of the Amazon RDS DB instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

    ", - "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    Example: us-east-1a

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBSubnetGroupName": "

    The DB subnet group name to use for the new instance.

    Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

    ", - "RestoreDBInstanceFromDBSnapshotMessage$LicenseModel": "

    License model information for the restored DB instance.

    Default: Same as source.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DBName": "

    The database name for the restored DB instance.

    This parameter doesn't apply to the MySQL or MariaDB engines.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Engine": "

    The database engine to use for the new instance.

    Default: The same as source

    Constraint: Must be compatible with the engine of the source

    Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora

    ", - "RestoreDBInstanceFromDBSnapshotMessage$OptionGroupName": "

    The name of the option group to be used for the restored DB instance.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "RestoreDBInstanceFromDBSnapshotMessage$StorageType": "

    Specifies the storage type to be associated with the DB instance.

    Valid values: standard | gp2 | io1

    If you specify io1, you must also include a value for the Iops parameter.

    Default: io1 if the Iops parameter is specified; otherwise standard

    ", - "RestoreDBInstanceFromDBSnapshotMessage$TdeCredentialArn": "

    The ARN from the Key Store with which to associate the instance for TDE encryption.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$TdeCredentialPassword": "

    The password for the given ARN from the Key Store in order to access the device.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$Domain": "

    Specify the Active Directory Domain to restore the instance in.

    ", - "RestoreDBInstanceFromDBSnapshotMessage$DomainIAMRoleName": "

    Specify the name of the IAM role to be used when making API calls to the Directory Service.

    ", - "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": "

    The identifier of the source DB instance from which to restore.

    Constraints:

    • Must be the identifier of an existing database instance

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": "

    The name of the new database instance to be created.

    Constraints:

    • Must contain from 1 to 63 alphanumeric characters or hyphens

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": "

    The compute and memory capacity of the Amazon RDS DB instance.

    Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large

    Default: The same DBInstanceClass as the original DB instance.

    ", - "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": "

    The EC2 Availability Zone that the database instance will be created in.

    Default: A random, system-chosen Availability Zone.

    Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

    Example: us-east-1a

    ", - "RestoreDBInstanceToPointInTimeMessage$DBSubnetGroupName": "

    The DB subnet group name to use for the new instance.

    Constraints: Must contain no more than 255 alphanumeric characters, periods, underscores, spaces, or hyphens. Must not be default.

    Example: mySubnetgroup

    ", - "RestoreDBInstanceToPointInTimeMessage$LicenseModel": "

    License model information for the restored DB instance.

    Default: Same as source.

    Valid values: license-included | bring-your-own-license | general-public-license

    ", - "RestoreDBInstanceToPointInTimeMessage$DBName": "

    The database name for the restored DB instance.

    This parameter is not used for the MySQL or MariaDB engines.

    ", - "RestoreDBInstanceToPointInTimeMessage$Engine": "

    The database engine to use for the new instance.

    Default: The same as source

    Constraint: Must be compatible with the engine of the source

    Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora

    ", - "RestoreDBInstanceToPointInTimeMessage$OptionGroupName": "

    The name of the option group to be used for the restored DB instance.

    Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance

    ", - "RestoreDBInstanceToPointInTimeMessage$StorageType": "

    Specifies the storage type to be associated with the DB instance.

    Valid values: standard | gp2 | io1

    If you specify io1, you must also include a value for the Iops parameter.

    Default: io1 if the Iops parameter is specified; otherwise standard

    ", - "RestoreDBInstanceToPointInTimeMessage$TdeCredentialArn": "

    The ARN from the Key Store with which to associate the instance for TDE encryption.

    ", - "RestoreDBInstanceToPointInTimeMessage$TdeCredentialPassword": "

    The password for the given ARN from the Key Store in order to access the device.

    ", - "RestoreDBInstanceToPointInTimeMessage$Domain": "

    Specify the Active Directory Domain to restore the instance in.

    ", - "RestoreDBInstanceToPointInTimeMessage$DomainIAMRoleName": "

    Specify the name of the IAM role to be used when making API calls to the Directory Service.

    ", - "RevokeDBSecurityGroupIngressMessage$DBSecurityGroupName": "

    The name of the DB security group to revoke ingress from.

    ", - "RevokeDBSecurityGroupIngressMessage$CIDRIP": "

    The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId cannot be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupName": "

    The name of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupId": "

    The id of the EC2 security group to revoke access from. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "RevokeDBSecurityGroupIngressMessage$EC2SecurityGroupOwnerId": "

    The AWS Account Number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

    ", - "SourceIdsList$member": null, - "Subnet$SubnetIdentifier": "

    Specifies the identifier of the subnet.

    ", - "Subnet$SubnetStatus": "

    Specifies the status of the subnet.

    ", - "SubnetIdentifierList$member": null, - "Tag$Key": "

    A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", - "Tag$Value": "

    A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with \"aws:\" or \"rds:\". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").

    ", - "UpgradeTarget$Engine": "

    The name of the upgrade target database engine.

    ", - "UpgradeTarget$EngineVersion": "

    The version number of the upgrade target database engine.

    ", - "UpgradeTarget$Description": "

    The version of the database engine that a DB instance can be upgraded to.

    ", - "VpcSecurityGroupIdList$member": null, - "VpcSecurityGroupMembership$VpcSecurityGroupId": "

    The name of the VPC security group.

    ", - "VpcSecurityGroupMembership$Status": "

    The status of the VPC security group.

    " - } - }, - "Subnet": { - "base": "

    This data type is used as a response element in the DescribeDBSubnetGroups action.

    ", - "refs": { - "SubnetList$member": null - } - }, - "SubnetAlreadyInUse": { - "base": "

    The DB subnet is already in use in the Availability Zone.

    ", - "refs": { - } - }, - "SubnetIdentifierList": { - "base": null, - "refs": { - "CreateDBSubnetGroupMessage$SubnetIds": "

    The EC2 Subnet IDs for the DB subnet group.

    ", - "ModifyDBSubnetGroupMessage$SubnetIds": "

    The EC2 subnet IDs for the DB subnet group.

    " - } - }, - "SubnetList": { - "base": null, - "refs": { - "DBSubnetGroup$Subnets": "

    Contains a list of Subnet elements.

    " - } - }, - "SubscriptionAlreadyExistFault": { - "base": "

    The supplied subscription name already exists.

    ", - "refs": { - } - }, - "SubscriptionCategoryNotFoundFault": { - "base": "

    The supplied category does not exist.

    ", - "refs": { - } - }, - "SubscriptionNotFoundFault": { - "base": "

    The subscription name does not exist.

    ", - "refs": { - } - }, - "SupportedCharacterSetsList": { - "base": null, - "refs": { - "DBEngineVersion$SupportedCharacterSets": "

    A list of the character sets supported by this engine for the CharacterSetName parameter of the CreateDBInstance API.

    " - } - }, - "TStamp": { - "base": null, - "refs": { - "Certificate$ValidFrom": "

    The starting date from which the certificate is valid.

    ", - "Certificate$ValidTill": "

    The final date that the certificate continues to be valid.

    ", - "DBCluster$EarliestRestorableTime": "

    Specifies the earliest time to which a database can be restored with point-in-time restore.

    ", - "DBCluster$LatestRestorableTime": "

    Specifies the latest time to which a database can be restored with point-in-time restore.

    ", - "DBClusterSnapshot$SnapshotCreateTime": "

    Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

    ", - "DBClusterSnapshot$ClusterCreateTime": "

    Specifies the time when the DB cluster was created, in Universal Coordinated Time (UTC).

    ", - "DBInstance$InstanceCreateTime": "

    Provides the date and time the DB instance was created.

    ", - "DBInstance$LatestRestorableTime": "

    Specifies the latest time to which a database can be restored with point-in-time restore.

    ", - "DBSnapshot$SnapshotCreateTime": "

    Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

    ", - "DBSnapshot$InstanceCreateTime": "

    Specifies the time when the snapshot was taken, in Universal Coordinated Time (UTC).

    ", - "DescribeEventsMessage$StartTime": "

    The beginning of the time interval to retrieve events for, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

    ", - "DescribeEventsMessage$EndTime": "

    The end of the time interval for which to retrieve events, specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

    Example: 2009-07-08T18:00Z

    ", - "Event$Date": "

    Specifies the date and time of the event.

    ", - "PendingMaintenanceAction$AutoAppliedAfterDate": "

    The date of the maintenance window when the action will be applied. The maintenance action will be applied to the resource during its first maintenance window after this date. If this date is specified, any next-maintenance opt-in requests are ignored.

    ", - "PendingMaintenanceAction$ForcedApplyDate": "

    The date when the maintenance action will be automatically applied. The maintenance action will be applied to the resource on this date regardless of the maintenance window for the resource. If this date is specified, any immediate opt-in requests are ignored.

    ", - "PendingMaintenanceAction$CurrentApplyDate": "

    The effective date when the pending maintenance action will be applied to the resource. This date takes into account opt-in requests received from the ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate, and the ForcedApplyDate. This value is blank if an opt-in request has not been received and nothing has been specified as AutoAppliedAfterDate or ForcedApplyDate.

    ", - "ReservedDBInstance$StartTime": "

    The time the reservation started.

    ", - "RestoreDBClusterToPointInTimeMessage$RestoreToTime": "

    The date and time to restore the DB cluster to.

    Valid Values: Value must be a time in Universal Coordinated Time (UTC) format

    Constraints:

    • Must be before the latest restorable time for the DB instance

    • Cannot be specified if UseLatestRestorableTime parameter is true

    Example: 2015-03-07T23:45:00Z

    ", - "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

    The date and time to restore from.

    Valid Values: Value must be a time in Universal Coordinated Time (UTC) format

    Constraints:

    • Must be before the latest restorable time for the DB instance

    • Cannot be specified if UseLatestRestorableTime parameter is true

    Example: 2009-09-07T23:45:00Z

    " - } - }, - "Tag": { - "base": "

    Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

    ", - "refs": { - "TagList$member": null - } - }, - "TagList": { - "base": "

    A list of tags.

    ", - "refs": { - "AddTagsToResourceMessage$Tags": "

    The tags to be assigned to the Amazon RDS resource.

    ", - "CopyDBClusterSnapshotMessage$Tags": null, - "CopyDBParameterGroupMessage$Tags": null, - "CopyDBSnapshotMessage$Tags": null, - "CopyOptionGroupMessage$Tags": null, - "CreateDBClusterMessage$Tags": null, - "CreateDBClusterParameterGroupMessage$Tags": null, - "CreateDBClusterSnapshotMessage$Tags": "

    The tags to be assigned to the DB cluster snapshot.

    ", - "CreateDBInstanceMessage$Tags": null, - "CreateDBInstanceReadReplicaMessage$Tags": null, - "CreateDBParameterGroupMessage$Tags": null, - "CreateDBSecurityGroupMessage$Tags": null, - "CreateDBSnapshotMessage$Tags": null, - "CreateDBSubnetGroupMessage$Tags": null, - "CreateEventSubscriptionMessage$Tags": null, - "CreateOptionGroupMessage$Tags": null, - "PurchaseReservedDBInstancesOfferingMessage$Tags": null, - "RestoreDBClusterFromSnapshotMessage$Tags": "

    The tags to be assigned to the restored DB cluster.

    ", - "RestoreDBClusterToPointInTimeMessage$Tags": null, - "RestoreDBInstanceFromDBSnapshotMessage$Tags": null, - "RestoreDBInstanceToPointInTimeMessage$Tags": null, - "TagListMessage$TagList": "

    List of tags returned by the ListTagsForResource operation.

    " - } - }, - "TagListMessage": { - "base": "

    ", - "refs": { - } - }, - "UpgradeTarget": { - "base": "

    The version of the database engine that a DB instance can be upgraded to.

    ", - "refs": { - "ValidUpgradeTargetList$member": null - } - }, - "ValidUpgradeTargetList": { - "base": null, - "refs": { - "DBEngineVersion$ValidUpgradeTarget": "

    A list of engine versions that this database engine version can be upgraded to.

    " - } - }, - "VpcSecurityGroupIdList": { - "base": null, - "refs": { - "CreateDBClusterMessage$VpcSecurityGroupIds": "

    A list of EC2 VPC security groups to associate with this DB cluster.

    ", - "CreateDBInstanceMessage$VpcSecurityGroupIds": "

    A list of EC2 VPC security groups to associate with this DB instance.

    Default: The default EC2 VPC security group for the DB subnet group's VPC.

    ", - "ModifyDBClusterMessage$VpcSecurityGroupIds": "

    A lst of VPC security groups that the DB cluster will belong to.

    ", - "ModifyDBInstanceMessage$VpcSecurityGroupIds": "

    A list of EC2 VPC security groups to authorize on this DB instance. This change is asynchronously applied as soon as possible.

    Constraints:

    • Must be 1 to 255 alphanumeric characters

    • First character must be a letter

    • Cannot end with a hyphen or contain two consecutive hyphens

    ", - "OptionConfiguration$VpcSecurityGroupMemberships": "

    A list of VpcSecurityGroupMemebrship name strings used for this option.

    ", - "RestoreDBClusterFromSnapshotMessage$VpcSecurityGroupIds": "

    A list of VPC security groups that the new DB cluster will belong to.

    ", - "RestoreDBClusterToPointInTimeMessage$VpcSecurityGroupIds": "

    A lst of VPC security groups that the new DB cluster belongs to.

    " - } - }, - "VpcSecurityGroupMembership": { - "base": "

    This data type is used as a response element for queries on VPC security group membership.

    ", - "refs": { - "VpcSecurityGroupMembershipList$member": null - } - }, - "VpcSecurityGroupMembershipList": { - "base": null, - "refs": { - "DBCluster$VpcSecurityGroups": "

    Provides a list of VPC security groups that the DB cluster belongs to.

    ", - "DBInstance$VpcSecurityGroups": "

    Provides List of VPC security group elements that the DB instance belongs to.

    ", - "Option$VpcSecurityGroupMemberships": "

    If the option requires access to a port, then this VPC security group allows access to the port.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/paginators-1.json deleted file mode 100644 index 662845c12..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/paginators-1.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "pagination": { - "DescribeDBEngineVersions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBEngineVersions" - }, - "DescribeDBInstances": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBInstances" - }, - "DescribeDBLogFiles": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DescribeDBLogFiles" - }, - "DescribeDBParameterGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBParameterGroups" - }, - "DescribeDBParameters": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "Parameters" - }, - "DescribeDBSecurityGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBSecurityGroups" - }, - "DescribeDBSnapshots": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBSnapshots" - }, - "DescribeDBSubnetGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "DBSubnetGroups" - }, - "DescribeEngineDefaultParameters": { - "input_token": "Marker", - "output_token": "EngineDefaults.Marker", - "limit_key": "MaxRecords", - "result_key": "EngineDefaults.Parameters" - }, - "DescribeEventSubscriptions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "EventSubscriptionsList" - }, - "DescribeEvents": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "Events" - }, - "DescribeOptionGroupOptions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "OptionGroupOptions" - }, - "DescribeOptionGroups": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "OptionGroupsList" - }, - "DescribeOrderableDBInstanceOptions": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "OrderableDBInstanceOptions" - }, - "DescribeReservedDBInstances": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "ReservedDBInstances" - }, - "DescribeReservedDBInstancesOfferings": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "MaxRecords", - "result_key": "ReservedDBInstancesOfferings" - }, - "DownloadDBLogFilePortion": { - "input_token": "Marker", - "output_token": "Marker", - "limit_key": "NumberOfLines", - "more_results": "AdditionalDataPending", - "result_key": "LogFileData" - }, - "ListTagsForResource": { - "result_key": "TagList" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/waiters-2.json deleted file mode 100644 index 4f403ac05..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/rds/2014-10-31/waiters-2.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "version": 2, - "waiters": { - "DBInstanceAvailable": { - "delay": 30, - "operation": "DescribeDBInstances", - "maxAttempts": 60, - "acceptors": [ - { - "expected": "available", - "matcher": "pathAll", - "state": "success", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "deleted", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "deleting", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "failed", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "incompatible-restore", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "incompatible-parameters", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "incompatible-parameters", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "incompatible-restore", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - } - ] - }, - "DBInstanceDeleted": { - "delay": 30, - "operation": "DescribeDBInstances", - "maxAttempts": 60, - "acceptors": [ - { - "expected": "deleted", - "matcher": "pathAll", - "state": "success", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "DBInstanceNotFound", - "matcher": "error", - "state": "success" - }, - { - "expected": "creating", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "modifying", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "rebooting", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - }, - { - "expected": "resetting-master-credentials", - "matcher": "pathAny", - "state": "failure", - "argument": "DBInstances[].DBInstanceStatus" - } - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json deleted file mode 100644 index 801d2c7bd..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/docs-2.json +++ /dev/null @@ -1,1794 +0,0 @@ -{ - "version": "2.0", - "service": null, - "operations": { - "AssociateVPCWithHostedZone": "

    This action associates a VPC with an hosted zone.

    To associate a VPC with an hosted zone, send a POST request to the /Route 53 API version/hostedzone/hosted zone ID/associatevpc resource. The request body must include a document with a AssociateVPCWithHostedZoneRequest element. The response returns the AssociateVPCWithHostedZoneResponse element that contains ChangeInfo for you to track the progress of the AssociateVPCWithHostedZoneRequest you made. See GetChange operation for how to track the progress of your change.

    ", - "ChangeResourceRecordSets": "

    Use this action to create or change your authoritative DNS information. To use this action, send a POST request to the /Route 53 API version/hostedzone/hosted Zone ID/rrset resource. The request body must include a document with a ChangeResourceRecordSetsRequest element.

    Changes are a list of change items and are considered transactional. For more information on transactional changes, also known as change batches, see POST ChangeResourceRecordSets in the Amazon Route 53 API Reference.

    Due to the nature of transactional changes, you cannot delete the same resource record set more than once in a single change batch. If you attempt to delete the same change batch more than once, Amazon Route 53 returns an InvalidChangeBatch error.

    In response to a ChangeResourceRecordSets request, your DNS data is changed on all Amazon Route 53 DNS servers. Initially, the status of a change is PENDING. This means the change has not yet propagated to all the authoritative Amazon Route 53 DNS servers. When the change is propagated to all hosts, the change returns a status of INSYNC.

    Note the following limitations on a ChangeResourceRecordSets request:

    • A request cannot contain more than 100 Change elements.
    • A request cannot contain more than 1000 ResourceRecord elements.
    • The sum of the number of characters (including spaces) in all Value elements in a request cannot exceed 32,000 characters.
    ", - "ChangeTagsForResource": null, - "CreateHealthCheck": "

    This action creates a new health check.

    To create a new health check, send a POST request to the /Route 53 API version/healthcheck resource. The request body must include a document with a CreateHealthCheckRequest element. The response returns the CreateHealthCheckResponse element that contains metadata about the health check.

    ", - "CreateHostedZone": "

    This action creates a new hosted zone.

    To create a new hosted zone, send a POST request to the /Route 53 API version/hostedzone resource. The request body must include a document with a CreateHostedZoneRequest element. The response returns the CreateHostedZoneResponse element that contains metadata about the hosted zone.

    Amazon Route 53 automatically creates a default SOA record and four NS records for the zone. The NS records in the hosted zone are the name servers you give your registrar to delegate your domain to. For more information about SOA and NS records, see NS and SOA Records that Amazon Route 53 Creates for a Hosted Zone in the Amazon Route 53 Developer Guide.

    When you create a zone, its initial status is PENDING. This means that it is not yet available on all DNS servers. The status of the zone changes to INSYNC when the NS and SOA records are available on all Amazon Route 53 DNS servers.

    When trying to create a hosted zone using a reusable delegation set, you could specify an optional DelegationSetId, and Route53 would assign those 4 NS records for the zone, instead of alloting a new one.

    ", - "CreateReusableDelegationSet": "

    This action creates a reusable delegationSet.

    To create a new reusable delegationSet, send a POST request to the /Route 53 API version/delegationset resource. The request body must include a document with a CreateReusableDelegationSetRequest element. The response returns the CreateReusableDelegationSetResponse element that contains metadata about the delegationSet.

    If the optional parameter HostedZoneId is specified, it marks the delegationSet associated with that particular hosted zone as reusable.

    ", - "CreateTrafficPolicy": "

    Creates a traffic policy, which you use to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com).

    To create a traffic policy, send a POST request to the /Route 53 API version/trafficpolicy resource. The request body must include a document with a CreateTrafficPolicyRequest element. The response includes the CreateTrafficPolicyResponse element, which contains information about the new traffic policy.

    ", - "CreateTrafficPolicyInstance": "

    Creates resource record sets in a specified hosted zone based on the settings in a specified traffic policy version. In addition, CreateTrafficPolicyInstance associates the resource record sets with a specified domain name (such as example.com) or subdomain name (such as www.example.com). Amazon Route 53 responds to DNS queries for the domain or subdomain name by using the resource record sets that CreateTrafficPolicyInstance created.

    To create a traffic policy instance, send a POST request to the /Route 53 API version/trafficpolicyinstance resource. The request body must include a document with a CreateTrafficPolicyRequest element. The response returns the CreateTrafficPolicyInstanceResponse element, which contains information about the traffic policy instance.

    ", - "CreateTrafficPolicyVersion": "

    Creates a new version of an existing traffic policy. When you create a new version of a traffic policy, you specify the ID of the traffic policy that you want to update and a JSON-formatted document that describes the new version.

    You use traffic policies to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com).

    To create a new version, send a POST request to the /Route 53 API version/trafficpolicy/ resource. The request body includes a document with a CreateTrafficPolicyVersionRequest element. The response returns the CreateTrafficPolicyVersionResponse element, which contains information about the new version of the traffic policy.

    ", - "DeleteHealthCheck": "

    This action deletes a health check. To delete a health check, send a DELETE request to the /Route 53 API version/healthcheck/health check ID resource.

    You can delete a health check only if there are no resource record sets associated with this health check. If resource record sets are associated with this health check, you must disassociate them before you can delete your health check. If you try to delete a health check that is associated with resource record sets, Amazon Route 53 will deny your request with a HealthCheckInUse error. For information about disassociating the records from your health check, see ChangeResourceRecordSets.", - "DeleteHostedZone": "

    This action deletes a hosted zone. To delete a hosted zone, send a DELETE request to the /Route 53 API version/hostedzone/hosted zone ID resource.

    For more information about deleting a hosted zone, see Deleting a Hosted Zone in the Amazon Route 53 Developer Guide.

    You can delete a hosted zone only if there are no resource record sets other than the default SOA record and NS resource record sets. If your hosted zone contains other resource record sets, you must delete them before you can delete your hosted zone. If you try to delete a hosted zone that contains other resource record sets, Amazon Route 53 will deny your request with a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.", - "DeleteReusableDelegationSet": "

    This action deletes a reusable delegation set. To delete a reusable delegation set, send a DELETE request to the /Route 53 API version/delegationset/delegation set ID resource.

    You can delete a reusable delegation set only if there are no associated hosted zones. If your reusable delegation set contains associated hosted zones, you must delete them before you can delete your reusable delegation set. If you try to delete a reusable delegation set that contains associated hosted zones, Amazon Route 53 will deny your request with a DelegationSetInUse error.", - "DeleteTrafficPolicy": "

    Deletes a traffic policy. To delete a traffic policy, send a DELETE request to the /Route 53 API version/trafficpolicy resource.

    ", - "DeleteTrafficPolicyInstance": "

    Deletes a traffic policy instance and all of the resource record sets that Amazon Route 53 created when you created the instance.

    To delete a traffic policy instance, send a DELETE request to the /Route 53 API version/trafficpolicy/traffic policy instance ID resource.

    When you delete a traffic policy instance, Amazon Route 53 also deletes all of the resource record sets that were created when you created the traffic policy instance.", - "DisassociateVPCFromHostedZone": "

    This action disassociates a VPC from an hosted zone.

    To disassociate a VPC to a hosted zone, send a POST request to the /Route 53 API version/hostedzone/hosted zone ID/disassociatevpc resource. The request body must include a document with a DisassociateVPCFromHostedZoneRequest element. The response returns the DisassociateVPCFromHostedZoneResponse element that contains ChangeInfo for you to track the progress of the DisassociateVPCFromHostedZoneRequest you made. See GetChange operation for how to track the progress of your change.

    ", - "GetChange": "

    This action returns the current status of a change batch request. The status is one of the following values:

    - PENDING indicates that the changes in this request have not replicated to all Amazon Route 53 DNS servers. This is the initial status of all change batch requests.

    - INSYNC indicates that the changes have replicated to all Amazon Route 53 DNS servers.

    ", - "GetChangeDetails": "

    This action returns the status and changes of a change batch request.

    ", - "GetCheckerIpRanges": "

    To retrieve a list of the IP ranges used by Amazon Route 53 health checkers to check the health of your resources, send a GET request to the /Route 53 API version/checkeripranges resource. You can use these IP addresses to configure router and firewall rules to allow health checkers to check the health of your resources.

    ", - "GetGeoLocation": "

    To retrieve a single geo location, send a GET request to the /Route 53 API version/geolocation resource with one of these options: continentcode | countrycode | countrycode and subdivisioncode.

    ", - "GetHealthCheck": "

    To retrieve the health check, send a GET request to the /Route 53 API version/healthcheck/health check ID resource.

    ", - "GetHealthCheckCount": "

    To retrieve a count of all your health checks, send a GET request to the /Route 53 API version/healthcheckcount resource.

    ", - "GetHealthCheckLastFailureReason": "

    If you want to learn why a health check is currently failing or why it failed most recently (if at all), you can get the failure reason for the most recent failure. Send a GET request to the /Route 53 API version/healthcheck/health check ID/lastfailurereason resource.

    ", - "GetHealthCheckStatus": "

    To retrieve the health check status, send a GET request to the /Route 53 API version/healthcheck/health check ID/status resource. You can use this call to get a health check's current status.

    ", - "GetHostedZone": "

    To retrieve the delegation set for a hosted zone, send a GET request to the /Route 53 API version/hostedzone/hosted zone ID resource. The delegation set is the four Amazon Route 53 name servers that were assigned to the hosted zone when you created it.

    ", - "GetHostedZoneCount": "

    To retrieve a count of all your hosted zones, send a GET request to the /Route 53 API version/hostedzonecount resource.

    ", - "GetReusableDelegationSet": "

    To retrieve the reusable delegation set, send a GET request to the /Route 53 API version/delegationset/delegation set ID resource.

    ", - "GetTrafficPolicy": "

    Gets information about a specific traffic policy version. To get the information, send a GET request to the /Route 53 API version/trafficpolicy resource.

    ", - "GetTrafficPolicyInstance": "

    Gets information about a specified traffic policy instance.

    To get information about the traffic policy instance, send a GET request to the /Route 53 API version/trafficpolicyinstance resource.

    After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element. ", - "GetTrafficPolicyInstanceCount": "

    Gets the number of traffic policy instances that are associated with the current AWS account.

    To get the number of traffic policy instances, send a GET request to the /Route 53 API version/trafficpolicyinstancecount resource.

    ", - "ListChangeBatchesByHostedZone": "

    This action gets the list of ChangeBatches in a given time period for a given hosted zone.

    ", - "ListChangeBatchesByRRSet": "

    This action gets the list of ChangeBatches in a given time period for a given hosted zone and RRSet.

    ", - "ListGeoLocations": "

    To retrieve a list of supported geo locations, send a GET request to the /Route 53 API version/geolocations resource. The response to this request includes a GeoLocationDetailsList element with zero, one, or multiple GeoLocationDetails child elements. The list is sorted by country code, and then subdivision code, followed by continents at the end of the list.

    By default, the list of geo locations is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. If the list is truncated, IsTruncated will be set to true and a combination of NextContinentCode, NextCountryCode, NextSubdivisionCode will be populated. You can pass these as parameters to StartContinentCode, StartCountryCode, StartSubdivisionCode to control the geo location that the list begins with.

    ", - "ListHealthChecks": "

    To retrieve a list of your health checks, send a GET request to the /Route 53 API version/healthcheck resource. The response to this request includes a HealthChecks element with zero, one, or multiple HealthCheck child elements. By default, the list of health checks is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the health check that the list begins with.

    Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", - "ListHostedZones": "

    To retrieve a list of your hosted zones, send a GET request to the /Route 53 API version/hostedzone resource. The response to this request includes a HostedZones element with zero, one, or multiple HostedZone child elements. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the hosted zone that the list begins with.

    Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", - "ListHostedZonesByName": "

    To retrieve a list of your hosted zones in lexicographic order, send a GET request to the /Route 53 API version/hostedzonesbyname resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements lexicographically ordered by DNS name. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the DNSName and HostedZoneId parameters to control the hosted zone that the list begins with.

    Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", - "ListResourceRecordSets": "

    Imagine all the resource record sets in a zone listed out in front of you. Imagine them sorted lexicographically first by DNS name (with the labels reversed, like \"com.amazon.www\" for example), and secondarily, lexicographically by record type. This operation retrieves at most MaxItems resource record sets from this list, in order, starting at a position specified by the Name and Type arguments:

    • If both Name and Type are omitted, this means start the results at the first RRSET in the HostedZone.
    • If Name is specified but Type is omitted, this means start the results at the first RRSET in the list whose name is greater than or equal to Name.
    • If both Name and Type are specified, this means start the results at the first RRSET in the list whose name is greater than or equal to Name and whose type is greater than or equal to Type.
    • It is an error to specify the Type but not the Name.

    Use ListResourceRecordSets to retrieve a single known record set by specifying the record set's name and type, and setting MaxItems = 1

    To retrieve all the records in a HostedZone, first pause any processes making calls to ChangeResourceRecordSets. Initially call ListResourceRecordSets without a Name and Type to get the first page of record sets. For subsequent calls, set Name and Type to the NextName and NextType values returned by the previous response.

    In the presence of concurrent ChangeResourceRecordSets calls, there is no consistency of results across calls to ListResourceRecordSets. The only way to get a consistent multi-page snapshot of all RRSETs in a zone is to stop making changes while pagination is in progress.

    However, the results from ListResourceRecordSets are consistent within a page. If MakeChange calls are taking place concurrently, the result of each one will either be completely visible in your results or not at all. You will not see partial changes, or changes that do not ultimately succeed. (This follows from the fact that MakeChange is atomic)

    The results from ListResourceRecordSets are strongly consistent with ChangeResourceRecordSets. To be precise, if a single process makes a call to ChangeResourceRecordSets and receives a successful response, the effects of that change will be visible in a subsequent call to ListResourceRecordSets by that process.

    ", - "ListReusableDelegationSets": "

    To retrieve a list of your reusable delegation sets, send a GET request to the /Route 53 API version/delegationset resource. The response to this request includes a DelegationSets element with zero, one, or multiple DelegationSet child elements. By default, the list of delegation sets is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the delegation set that the list begins with.

    Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", - "ListTagsForResource": null, - "ListTagsForResources": null, - "ListTrafficPolicies": "

    Gets information about the latest version for every traffic policy that is associated with the current AWS account. To get the information, send a GET request to the /Route 53 API version/trafficpolicy resource.

    Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policies, you can use the maxitems parameter to list them in groups of up to 100.

    The response includes three values that help you navigate from one group of maxitems traffic policies to the next:

    • IsTruncated
    • If the value of IsTruncated in the response is true, there are more traffic policies associated with the current AWS account.

      If IsTruncated is false, this response includes the last traffic policy that is associated with the current account.

    • TrafficPolicyIdMarker
    • If IsTruncated is true, TrafficPolicyIdMarker is the ID of the first traffic policy in the next group of MaxItems traffic policies. If you want to list more traffic policies, make another call to ListTrafficPolicies, and specify the value of the TrafficPolicyIdMarker element from the response in the TrafficPolicyIdMarker request parameter.

      If IsTruncated is false, the TrafficPolicyIdMarker element is omitted from the response.

    • MaxItems
    • The value that you specified for the MaxItems parameter in the request that produced the current response.

    ", - "ListTrafficPolicyInstances": "

    Gets information about the traffic policy instances that you created by using the current AWS account.

    After you submit an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element.

    To get information about the traffic policy instances that are associated with the current AWS account, send a GET request to the /Route 53 API version/trafficpolicyinstance resource.

    Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the MaxItems parameter to list them in groups of up to 100.

    The response includes five values that help you navigate from one group of MaxItems traffic policy instances to the next:

    • IsTruncated
    • If the value of IsTruncated in the response is true, there are more traffic policy instances associated with the current AWS account.

      If IsTruncated is false, this response includes the last traffic policy instance that is associated with the current account.

    • MaxItems
    • The value that you specified for the MaxItems parameter in the request that produced the current response.

    • HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
    • If IsTruncated is true, these three values in the response represent the first traffic policy instance in the next group of MaxItems traffic policy instances. To list more traffic policy instances, make another call to ListTrafficPolicyInstances, and specify these values in the corresponding request parameters.

      If IsTruncated is false, all three elements are omitted from the response.

    ", - "ListTrafficPolicyInstancesByHostedZone": "

    Gets information about the traffic policy instances that you created in a specified hosted zone.

    After you submit an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element.

    To get information about the traffic policy instances that you created in a specified hosted zone, send a GET request to the /Route 53 API version/trafficpolicyinstance resource and include the ID of the hosted zone.

    Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the MaxItems parameter to list them in groups of up to 100.

    The response includes four values that help you navigate from one group of MaxItems traffic policy instances to the next:

    • IsTruncated
    • If the value of IsTruncated in the response is true, there are more traffic policy instances associated with the current AWS account.

      If IsTruncated is false, this response includes the last traffic policy instance that is associated with the current account.

    • MaxItems
    • The value that you specified for the MaxItems parameter in the request that produced the current response.

    • TrafficPolicyInstanceNameMarker and TrafficPolicyInstanceTypeMarker
    • If IsTruncated is true, these two values in the response represent the first traffic policy instance in the next group of MaxItems traffic policy instances. To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByHostedZone, and specify these values in the corresponding request parameters.

      If IsTruncated is false, all three elements are omitted from the response.

    ", - "ListTrafficPolicyInstancesByPolicy": "

    Gets information about the traffic policy instances that you created by using a specify traffic policy version.

    After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element.

    To get information about the traffic policy instances that you created by using a specify traffic policy version, send a GET request to the /Route 53 API version/trafficpolicyinstance resource and include the ID and version of the traffic policy.

    Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the MaxItems parameter to list them in groups of up to 100.

    The response includes five values that help you navigate from one group of MaxItems traffic policy instances to the next:

    • IsTruncated

      If the value of IsTruncated in the response is true, there are more traffic policy instances associated with the specified traffic policy.

      If IsTruncated is false, this response includes the last traffic policy instance that is associated with the specified traffic policy.

    • MaxItems

      The value that you specified for the MaxItems parameter in the request that produced the current response.

    • HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker

      If IsTruncated is true, these values in the response represent the first traffic policy instance in the next group of MaxItems traffic policy instances. To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByPolicy, and specify these values in the corresponding request parameters.

      If IsTruncated is false, all three elements are omitted from the response.

    ", - "ListTrafficPolicyVersions": "

    Gets information about all of the versions for a specified traffic policy. ListTrafficPolicyVersions lists only versions that have not been deleted.

    Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policies, you can use the maxitems parameter to list them in groups of up to 100.

    The response includes three values that help you navigate from one group of maxitemsmaxitems traffic policies to the next:

    • IsTruncated
    • If the value of IsTruncated in the response is true, there are more traffic policy versions associated with the specified traffic policy.

      If IsTruncated is false, this response includes the last traffic policy version that is associated with the specified traffic policy.

    • TrafficPolicyVersionMarker
    • The ID of the next traffic policy version that is associated with the current AWS account. If you want to list more traffic policies, make another call to ListTrafficPolicyVersions, and specify the value of the TrafficPolicyVersionMarker element in the TrafficPolicyVersionMarker request parameter.

      If IsTruncated is false, Amazon Route 53 omits the TrafficPolicyVersionMarker element from the response.

    • MaxItems
    • The value that you specified for the MaxItems parameter in the request that produced the current response.

    ", - "UpdateHealthCheck": "

    This action updates an existing health check.

    To update a health check, send a POST request to the /Route 53 API version/healthcheck/health check ID resource. The request body must include a document with an UpdateHealthCheckRequest element. The response returns an UpdateHealthCheckResponse element, which contains metadata about the health check.

    ", - "UpdateHostedZoneComment": "

    To update the hosted zone comment, send a POST request to the /Route 53 API version/hostedzone/hosted zone ID resource. The request body must include a document with a UpdateHostedZoneCommentRequest element. The response to this request includes the modified HostedZone element.

    The comment can have a maximum length of 256 characters.", - "UpdateTrafficPolicyComment": "

    Updates the comment for a specified traffic policy version.

    To update the comment, send a POST request to the /Route 53 API version/trafficpolicy/ resource.

    The request body must include a document with an UpdateTrafficPolicyCommentRequest element.

    ", - "UpdateTrafficPolicyInstance": "

    Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.

    The DNS type of the resource record sets that you're updating must match the DNS type in the JSON document that is associated with the traffic policy version that you're using to update the traffic policy instance.

    When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Amazon Route 53 performs the following operations:

    1. Amazon Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how substantial the differences are between the existing resource record sets and the new resource record sets.
    2. When all of the new resource record sets have been created, Amazon Route 53 starts to respond to DNS queries for the root resource record set name (such as example.com) by using the new resource record sets.
    3. Amazon Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.

    To update a traffic policy instance, send a POST request to the /Route 53 API version/trafficpolicyinstance/traffic policy ID resource. The request body must include a document with an UpdateTrafficPolicyInstanceRequest element.

    " - }, - "shapes": { - "AWSAccountID": { - "base": null, - "refs": { - "ChangeBatchRecord$Submitter": "

    The AWS account ID attached to the changes.

    " - } - }, - "AlarmIdentifier": { - "base": "

    A complex type that contains information to uniquely identify the CloudWatch alarm that you're associating with a Route 53 health check.

    ", - "refs": { - "HealthCheckConfig$AlarmIdentifier": "

    A complex type that contains information to uniquely identify the CloudWatch alarm that you're associating with a Route 53 health check.

    ", - "UpdateHealthCheckRequest$AlarmIdentifier": null - } - }, - "AlarmName": { - "base": null, - "refs": { - "AlarmIdentifier$Name": "

    The name of the CloudWatch alarm.

    " - } - }, - "AliasHealthEnabled": { - "base": null, - "refs": { - "AliasTarget$EvaluateTargetHealth": "

    Alias resource record sets only: If you set the value of EvaluateTargetHealth to true for the resource record set or sets in an alias, weighted alias, latency alias, or failover alias resource record set, and if you specify a value for HealthCheckId for every resource record set that is referenced by these alias resource record sets, the alias resource record sets inherit the health of the referenced resource record sets.

    In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:

    1. Amazon Route 53 looks at the resource record sets that are referenced by the alias resource record sets to determine which health checks they're using.
    2. Amazon Route 53 checks the current status of each health check. (Amazon Route 53 periodically checks the health of the endpoint that is specified in a health check; it doesn't perform the health check when the DNS query arrives.)
    3. Based on the status of the health checks, Amazon Route 53 determines which resource record sets are healthy. Unhealthy resource record sets are immediately removed from consideration. In addition, if all of the resource record sets that are referenced by an alias resource record set are unhealthy, that alias resource record set also is immediately removed from consideration.
    4. Based on the configuration of the alias resource record sets (weighted alias or latency alias, for example) and the configuration of the resource record sets that they reference, Amazon Route 53 chooses a resource record set from the healthy resource record sets, and responds to the query.

    Note the following:

    • You cannot set EvaluateTargetHealth to true when the alias target is a CloudFront distribution.
    • If the AWS resource that you specify in AliasTarget is a resource record set or a group of resource record sets (for example, a group of weighted resource record sets), but it is not another alias resource record set, we recommend that you associate a health check with all of the resource record sets in the alias target. For more information, see What Happens When You Omit Health Checks? in the Amazon Route 53 Developer Guide.
    • If you specify an ELB load balancer in AliasTarget, Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. If no Amazon EC2 instances are healthy or if the load balancer itself is unhealthy, and if EvaluateTargetHealth is true for the corresponding alias resource record set, Amazon Route 53 routes queries to other resources.
    • When you create a load balancer, you configure settings for Elastic Load Balancing health checks; they're not Amazon Route 53 health checks, but they perform a similar function. Do not create Amazon Route 53 health checks for the Amazon EC2 instances that you register with an ELB load balancer. For more information, see How Health Checks Work in More Complex Amazon Route 53 Configurations in the Amazon Route 53 Developer Guide.

    We recommend that you set EvaluateTargetHealth to true only when you have enough idle capacity to handle the failure of one or more endpoints.

    For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.

    " - } - }, - "AliasTarget": { - "base": "

    Alias resource record sets only: Information about the CloudFront distribution, ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set to which you are routing traffic.

    If you're creating resource record sets for a private hosted zone, note the following:

    • You can create alias resource record sets only for Amazon Route 53 resource record sets in the same private hosted zone. Creating alias resource record sets for CloudFront distributions, ELB load balancers, and Amazon S3 buckets is not supported.
    • You can't create alias resource record sets for failover, geolocation, or latency resource record sets in a private hosted zone.

    For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.

    ", - "refs": { - "ResourceRecordSet$AliasTarget": "

    Alias resource record sets only: Information about the AWS resource to which you are redirecting traffic.

    " - } - }, - "AssociateVPCComment": { - "base": null, - "refs": { - "AssociateVPCWithHostedZoneRequest$Comment": "

    Optional: Any comments you want to include about a AssociateVPCWithHostedZoneRequest.

    " - } - }, - "AssociateVPCWithHostedZoneRequest": { - "base": "

    A complex type that contains information about the request to associate a VPC with an hosted zone.

    ", - "refs": { - } - }, - "AssociateVPCWithHostedZoneResponse": { - "base": "

    A complex type containing the response information for the request.

    ", - "refs": { - } - }, - "Change": { - "base": "

    A complex type that contains the information for each change in a change batch request.

    ", - "refs": { - "Changes$member": null - } - }, - "ChangeAction": { - "base": null, - "refs": { - "Change$Action": "

    The action to perform:

    • CREATE: Creates a resource record set that has the specified values.
    • DELETE: Deletes a existing resource record set that has the specified values for Name, Type, SetIdentifier (for latency, weighted, geolocation, and failover resource record sets), and TTL (except alias resource record sets, for which the TTL is determined by the AWS resource that you're routing DNS queries to).
    • UPSERT: If a resource record set does not already exist, Amazon Route 53 creates it. If a resource record set does exist, Amazon Route 53 updates it with the values in the request. Amazon Route 53 can update an existing resource record set only when all of the following values match: Name, Type, and SetIdentifier (for weighted, latency, geolocation, and failover resource record sets).
    " - } - }, - "ChangeBatch": { - "base": "

    A complex type that contains an optional comment and the changes that you want to make with a change batch request.

    ", - "refs": { - "ChangeResourceRecordSetsRequest$ChangeBatch": "

    A complex type that contains an optional comment and the Changes element.

    " - } - }, - "ChangeBatchRecord": { - "base": "

    A complex type that lists the changes and information for a ChangeBatch.

    ", - "refs": { - "ChangeBatchRecords$member": null, - "GetChangeDetailsResponse$ChangeBatchRecord": "

    A complex type that contains information about the specified change batch, including the change batch ID, the status of the change, and the contained changes.

    " - } - }, - "ChangeBatchRecords": { - "base": null, - "refs": { - "ListChangeBatchesByHostedZoneResponse$ChangeBatchRecords": "

    The change batches within the given hosted zone and time period.

    ", - "ListChangeBatchesByRRSetResponse$ChangeBatchRecords": "

    The change batches within the given hosted zone and time period.

    " - } - }, - "ChangeInfo": { - "base": "

    A complex type that describes change information about changes made to your hosted zone.

    This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

    ", - "refs": { - "AssociateVPCWithHostedZoneResponse$ChangeInfo": "

    A complex type that contains the ID, the status, and the date and time of your AssociateVPCWithHostedZoneRequest.

    ", - "ChangeResourceRecordSetsResponse$ChangeInfo": "

    A complex type that contains information about changes made to your hosted zone.

    This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

    ", - "CreateHostedZoneResponse$ChangeInfo": "

    A complex type that contains information about the request to create a hosted zone. This includes an ID that you use when you call the GetChange action to get the current status of the change request.

    ", - "DeleteHostedZoneResponse$ChangeInfo": "

    A complex type that contains the ID, the status, and the date and time of your delete request.

    ", - "DisassociateVPCFromHostedZoneResponse$ChangeInfo": "

    A complex type that contains the ID, the status, and the date and time of your DisassociateVPCFromHostedZoneRequest.

    ", - "GetChangeResponse$ChangeInfo": "

    A complex type that contains information about the specified change batch, including the change batch ID, the status of the change, and the date and time of the request.

    " - } - }, - "ChangeResourceRecordSetsRequest": { - "base": "

    A complex type that contains a change batch.

    ", - "refs": { - } - }, - "ChangeResourceRecordSetsResponse": { - "base": "

    A complex type containing the response for the request.

    ", - "refs": { - } - }, - "ChangeStatus": { - "base": null, - "refs": { - "ChangeBatchRecord$Status": "

    The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

    Valid Values: PENDING | INSYNC

    ", - "ChangeInfo$Status": "

    The current state of the request. PENDING indicates that this request has not yet been applied to all Amazon Route 53 DNS servers.

    Valid Values: PENDING | INSYNC

    " - } - }, - "ChangeTagsForResourceRequest": { - "base": "

    A complex type containing information about a request to add, change, or delete the tags that are associated with a resource.

    ", - "refs": { - } - }, - "ChangeTagsForResourceResponse": { - "base": "

    Empty response for the request.

    ", - "refs": { - } - }, - "Changes": { - "base": null, - "refs": { - "ChangeBatch$Changes": "

    A complex type that contains one Change element for each resource record set that you want to create or delete.

    ", - "ChangeBatchRecord$Changes": "

    A list of changes made in the ChangeBatch.

    " - } - }, - "CheckerIpRanges": { - "base": null, - "refs": { - "GetCheckerIpRangesResponse$CheckerIpRanges": "

    A complex type that contains sorted list of IP ranges in CIDR format for Amazon Route 53 health checkers.

    " - } - }, - "ChildHealthCheckList": { - "base": null, - "refs": { - "HealthCheckConfig$ChildHealthChecks": "

    For a specified parent health check, a list of HealthCheckId values for the associated child health checks.

    ", - "UpdateHealthCheckRequest$ChildHealthChecks": "

    For a specified parent health check, a list of HealthCheckId values for the associated child health checks.

    Specify this value only if you want to change it.

    " - } - }, - "CloudWatchAlarmConfiguration": { - "base": "

    For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.

    ", - "refs": { - "HealthCheck$CloudWatchAlarmConfiguration": "

    For CLOUDWATCH_METRIC health checks, a complex type that contains information about the CloudWatch alarm that you're associating with the health check.

    " - } - }, - "CloudWatchRegion": { - "base": null, - "refs": { - "AlarmIdentifier$Region": "

    The CloudWatchRegion that the CloudWatch alarm was created in.

    " - } - }, - "ComparisonOperator": { - "base": null, - "refs": { - "CloudWatchAlarmConfiguration$ComparisonOperator": "

    The arithmetic operation to use when comparing the specified Statistic and Threshold.

    Valid Values are GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold and LessThanOrEqualToThreshold

    " - } - }, - "ConcurrentModification": { - "base": "

    Another user submitted a request to update the object at the same time that you did. Retry the request.

    ", - "refs": { - } - }, - "ConflictingDomainExists": { - "base": null, - "refs": { - } - }, - "ConflictingTypes": { - "base": "

    You tried to update a traffic policy instance by using a traffic policy version that has a different DNS type than the current type for the instance. You specified the type in the JSON document in the CreateTrafficPolicy or CreateTrafficPolicyVersionrequest.

    ", - "refs": { - } - }, - "CreateHealthCheckRequest": { - "base": "

    >A complex type that contains information about the request to create a health check.

    ", - "refs": { - } - }, - "CreateHealthCheckResponse": { - "base": "

    A complex type containing the response information for the new health check.

    ", - "refs": { - } - }, - "CreateHostedZoneRequest": { - "base": "

    A complex type that contains information about the request to create a hosted zone.

    ", - "refs": { - } - }, - "CreateHostedZoneResponse": { - "base": "

    A complex type containing the response information for the new hosted zone.

    ", - "refs": { - } - }, - "CreateReusableDelegationSetRequest": { - "base": null, - "refs": { - } - }, - "CreateReusableDelegationSetResponse": { - "base": null, - "refs": { - } - }, - "CreateTrafficPolicyInstanceRequest": { - "base": "

    A complex type that contains information about the resource record sets that you want to create based on a specified traffic policy.

    ", - "refs": { - } - }, - "CreateTrafficPolicyInstanceResponse": { - "base": "

    A complex type that contains the response information for the CreateTrafficPolicyInstance request.

    ", - "refs": { - } - }, - "CreateTrafficPolicyRequest": { - "base": "

    A complex type that contains information about the traffic policy that you want to create.

    ", - "refs": { - } - }, - "CreateTrafficPolicyResponse": { - "base": "

    A complex type that contains the response information for the CreateTrafficPolicy request.

    ", - "refs": { - } - }, - "CreateTrafficPolicyVersionRequest": { - "base": "

    A complex type that contains information about the traffic policy for which you want to create a new version.

    ", - "refs": { - } - }, - "CreateTrafficPolicyVersionResponse": { - "base": "

    A complex type that contains the response information for the CreateTrafficPolicyVersion request.

    ", - "refs": { - } - }, - "DNSName": { - "base": null, - "refs": { - "AliasTarget$DNSName": "

    Alias resource record sets only: The external DNS name associated with the AWS Resource. The value that you specify depends on where you want to route queries:

    • A CloudFront distribution: Specify the domain name that CloudFront assigned when you created your distribution. Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. For example, if the name of the resource record set is acme.example.com, your CloudFront distribution must include acme.example.com as one of the alternate domain names. For more information, see Using Alternate Domain Names (CNAMEs) in the Amazon CloudFront Developer Guide.
    • An ELB load balancer: Specify the DNS name associated with the load balancer. You can get the DNS name by using the AWS Management Console, the ELB API, or the AWS CLI. Use the same method to get values for HostedZoneId and DNSName. If you get one value from the console and the other value from the API or the CLI, creating the resource record set will fail.
    • An Elastic Beanstalk environment: Specify the CNAME attribute for the environment. (The environment must have a regionalized domain name.)
    • An Amazon S3 bucket that is configured as a static website: Specify the domain name of the Amazon S3 website endpoint in which you created the bucket; for example, s3-website-us-east-1.amazonaws.com. For more information about valid values, see the table Amazon Simple Storage Service (S3) Website Endpoints in the Amazon Web Services General Reference. For more information about using Amazon S3 buckets for websites, see Hosting a Static Website on Amazon S3 in the Amazon Simple Storage Service Developer Guide.
    • Another Amazon Route 53 resource record set: Specify the value of the Name element for a resource record set in the current hosted zone.

    For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.

    ", - "CreateHostedZoneRequest$Name": "

    The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

    This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

    ", - "CreateTrafficPolicyInstanceRequest$Name": "

    The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 responds to DNS queries by using the resource record sets that Amazon Route 53 creates for this traffic policy instance.

    ", - "DelegationSetNameServers$member": null, - "HostedZone$Name": "

    The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

    This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned in DelegationSet.

    ", - "ListChangeBatchesByRRSetRequest$Name": "

    The name of the RRSet that you want to see changes for.

    ", - "ListHostedZonesByNameRequest$DNSName": "

    The first name in the lexicographic ordering of domain names that you want the ListHostedZonesByNameRequest request to list.

    If the request returned more than one page of results, submit another request and specify the value of NextDNSName and NextHostedZoneId from the last response in the DNSName and HostedZoneId parameters to get the next page of results.

    ", - "ListHostedZonesByNameResponse$DNSName": "

    The DNSName value sent in the request.

    ", - "ListHostedZonesByNameResponse$NextDNSName": "

    If ListHostedZonesByNameResponse$IsTruncated is true, there are more hosted zones associated with the current AWS account. To get the next page of results, make another request to ListHostedZonesByName. Specify the value of ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

    ", - "ListResourceRecordSetsRequest$StartRecordName": "

    The first name in the lexicographic ordering of domain names that you want the ListResourceRecordSets request to list.

    ", - "ListResourceRecordSetsResponse$NextRecordName": "

    If the results were truncated, the name of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

    ", - "ListTrafficPolicyInstancesByHostedZoneRequest$TrafficPolicyInstanceNameMarker": "

    For the first request to ListTrafficPolicyInstancesByHostedZone, omit this value.

    If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker is the name of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get for this hosted zone.

    If the value of IsTruncated in the previous response was false, omit this value.

    ", - "ListTrafficPolicyInstancesByHostedZoneResponse$TrafficPolicyInstanceNameMarker": "

    If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "ListTrafficPolicyInstancesByPolicyRequest$TrafficPolicyInstanceNameMarker": "

    For the first request to ListTrafficPolicyInstancesByPolicy, omit this value.

    If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker is the name of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get for this hosted zone.

    If the value of IsTruncated in the previous response was false, omit this value.

    ", - "ListTrafficPolicyInstancesByPolicyResponse$TrafficPolicyInstanceNameMarker": "

    If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "ListTrafficPolicyInstancesRequest$TrafficPolicyInstanceNameMarker": "

    For the first request to ListTrafficPolicyInstances, omit this value.

    If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker is the name of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get.

    ", - "ListTrafficPolicyInstancesResponse$TrafficPolicyInstanceNameMarker": "

    If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "ResourceRecordSet$Name": "

    The name of the domain you want to perform the action on.

    Enter a fully qualified domain name, for example, www.example.com. You can optionally include a trailing dot. If you omit the trailing dot, Amazon Route 53 still assumes that the domain name that you specify is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

    For information about how to specify characters other than a-z, 0-9, and - (hyphen) and how to specify internationalized domain names, see DNS Domain Name Format in the Amazon Route 53 Developer Guide.

    You can use an asterisk (*) character in the name. DNS treats the * character either as a wildcard or as the * character (ASCII 42), depending on where it appears in the name. For more information, see Using an Asterisk (*) in the Names of Hosted Zones and Resource Record Sets in the Amazon Route 53 Developer Guide

    You can't use the * wildcard for resource records sets that have a type of NS.", - "TrafficPolicyInstance$Name": null - } - }, - "Date": { - "base": null, - "refs": { - "ListChangeBatchesByHostedZoneRequest$StartDate": "

    The start of the time period you want to see changes for.

    ", - "ListChangeBatchesByHostedZoneRequest$EndDate": "

    The end of the time period you want to see changes for.

    ", - "ListChangeBatchesByRRSetRequest$StartDate": "

    The start of the time period you want to see changes for.

    ", - "ListChangeBatchesByRRSetRequest$EndDate": "

    The end of the time period you want to see changes for.

    " - } - }, - "DelegationSet": { - "base": "

    A complex type that contains name server information.

    ", - "refs": { - "CreateHostedZoneResponse$DelegationSet": "

    A complex type that contains name server information.

    ", - "CreateReusableDelegationSetResponse$DelegationSet": "

    A complex type that contains name server information.

    ", - "DelegationSets$member": null, - "GetHostedZoneResponse$DelegationSet": "

    A complex type that contains information about the name servers for the specified hosted zone.

    ", - "GetReusableDelegationSetResponse$DelegationSet": "

    A complex type that contains the information about the nameservers for the specified delegation set ID.

    " - } - }, - "DelegationSetAlreadyCreated": { - "base": "

    A delegation set with the same owner and caller reference combination has already been created.

    ", - "refs": { - } - }, - "DelegationSetAlreadyReusable": { - "base": "

    The specified delegation set has already been marked as reusable.

    ", - "refs": { - } - }, - "DelegationSetInUse": { - "base": "

    The specified delegation contains associated hosted zones which must be deleted before the reusable delegation set can be deleted.

    ", - "refs": { - } - }, - "DelegationSetNameServers": { - "base": null, - "refs": { - "DelegationSet$NameServers": "

    A complex type that contains the authoritative name servers for the hosted zone. Use the method provided by your domain registrar to add an NS record to your domain for each NameServer that is assigned to your hosted zone.

    " - } - }, - "DelegationSetNotAvailable": { - "base": "

    Amazon Route 53 allows some duplicate domain names, but there is a maximum number of duplicate names. This error indicates that you have reached that maximum. If you want to create another hosted zone with the same name and Amazon Route 53 generates this error, you can request an increase to the limit on the Contact Us page.

    ", - "refs": { - } - }, - "DelegationSetNotReusable": { - "base": "

    The specified delegation set has not been marked as reusable.

    ", - "refs": { - } - }, - "DelegationSets": { - "base": null, - "refs": { - "ListReusableDelegationSetsResponse$DelegationSets": "

    A complex type that contains information about the reusable delegation sets associated with the current AWS account.

    " - } - }, - "DeleteHealthCheckRequest": { - "base": "

    A complex type containing the request information for delete health check.

    ", - "refs": { - } - }, - "DeleteHealthCheckResponse": { - "base": "

    Empty response for the request.

    ", - "refs": { - } - }, - "DeleteHostedZoneRequest": { - "base": "

    A complex type that contains information about the hosted zone that you want to delete.

    ", - "refs": { - } - }, - "DeleteHostedZoneResponse": { - "base": "

    A complex type containing the response information for the request.

    ", - "refs": { - } - }, - "DeleteReusableDelegationSetRequest": { - "base": "

    A complex type containing the information for the delete request.

    ", - "refs": { - } - }, - "DeleteReusableDelegationSetResponse": { - "base": "

    Empty response for the request.

    ", - "refs": { - } - }, - "DeleteTrafficPolicyInstanceRequest": { - "base": "

    A complex type that contains information about the traffic policy instance that you want to delete.

    ", - "refs": { - } - }, - "DeleteTrafficPolicyInstanceResponse": { - "base": "

    An empty element.

    ", - "refs": { - } - }, - "DeleteTrafficPolicyRequest": { - "base": "

    A request to delete a specified traffic policy version.

    ", - "refs": { - } - }, - "DeleteTrafficPolicyResponse": { - "base": "

    An empty element.

    ", - "refs": { - } - }, - "Dimension": { - "base": "

    The name and value of a dimension for a CloudWatch metric.

    ", - "refs": { - "DimensionList$member": null - } - }, - "DimensionField": { - "base": null, - "refs": { - "Dimension$Name": "

    The name of the dimension.

    ", - "Dimension$Value": "

    The value of the dimension.

    " - } - }, - "DimensionList": { - "base": null, - "refs": { - "CloudWatchAlarmConfiguration$Dimensions": "

    A list of Dimension elements for the CloudWatch metric that is associated with the CloudWatch alarm. For information about the metrics and dimensions that CloudWatch supports, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference.

    " - } - }, - "DisassociateVPCComment": { - "base": null, - "refs": { - "DisassociateVPCFromHostedZoneRequest$Comment": "

    Optional: Any comments you want to include about a DisassociateVPCFromHostedZoneRequest.

    " - } - }, - "DisassociateVPCFromHostedZoneRequest": { - "base": "

    A complex type that contains information about the request to disassociate a VPC from an hosted zone.

    ", - "refs": { - } - }, - "DisassociateVPCFromHostedZoneResponse": { - "base": "

    A complex type containing the response information for the request.

    ", - "refs": { - } - }, - "EnableSNI": { - "base": null, - "refs": { - "HealthCheckConfig$EnableSNI": "

    Specify whether you want Amazon Route 53 to send the value of FullyQualifiedDomainName to the endpoint in the client_hello message during TLS negotiation. If you don't specify a value for EnableSNI, Amazon Route 53 defaults to true when Type is HTTPS or HTTPS_STR_MATCH and defaults to false when Type is any other value.

    ", - "UpdateHealthCheckRequest$EnableSNI": "

    Specify whether you want Amazon Route 53 to send the value of FullyQualifiedDomainName to the endpoint in the client_hello message during TLS negotiation. If you don't specify a value for EnableSNI, Amazon Route 53 defaults to true when Type is HTTPS or HTTPS_STR_MATCH and defaults to false when Type is any other value.

    Specify this value only if you want to change it.

    " - } - }, - "ErrorMessage": { - "base": null, - "refs": { - "ConcurrentModification$message": "

    Descriptive message for the error response.

    ", - "ConflictingDomainExists$message": null, - "ConflictingTypes$message": "

    Descriptive message for the error response.

    ", - "DelegationSetAlreadyCreated$message": "

    Descriptive message for the error response.

    ", - "DelegationSetAlreadyReusable$message": "

    Descriptive message for the error response.

    ", - "DelegationSetInUse$message": "

    Descriptive message for the error response.

    ", - "DelegationSetNotAvailable$message": "

    Descriptive message for the error response.

    ", - "DelegationSetNotReusable$message": "

    Descriptive message for the error response.

    ", - "ErrorMessages$member": null, - "HealthCheckAlreadyExists$message": "

    Descriptive message for the error response.

    ", - "HealthCheckInUse$message": "

    Descriptive message for the error response.

    ", - "HealthCheckVersionMismatch$message": null, - "HostedZoneAlreadyExists$message": "

    Descriptive message for the error response.

    ", - "HostedZoneNotEmpty$message": "

    Descriptive message for the error response.

    ", - "HostedZoneNotFound$message": "

    Descriptive message for the error response.

    ", - "IncompatibleVersion$message": null, - "InvalidArgument$message": "

    Descriptive message for the error response.

    ", - "InvalidDomainName$message": "

    Descriptive message for the error response.

    ", - "InvalidInput$message": "

    Descriptive message for the error response.

    ", - "InvalidTrafficPolicyDocument$message": "

    Descriptive message for the error response.

    ", - "InvalidVPCId$message": "

    Descriptive message for the error response.

    ", - "LastVPCAssociation$message": "

    Descriptive message for the error response.

    ", - "LimitsExceeded$message": "

    Descriptive message for the error response.

    ", - "NoSuchChange$message": null, - "NoSuchDelegationSet$message": "

    Descriptive message for the error response.

    ", - "NoSuchGeoLocation$message": "

    Descriptive message for the error response.

    ", - "NoSuchHealthCheck$message": "

    Descriptive message for the error response.

    ", - "NoSuchHostedZone$message": null, - "NoSuchTrafficPolicy$message": "

    Descriptive message for the error response.

    ", - "NoSuchTrafficPolicyInstance$message": "

    Descriptive message for the error response.

    ", - "PriorRequestNotComplete$message": null, - "PublicZoneVPCAssociation$message": "

    Descriptive message for the error response.

    ", - "ThrottlingException$message": null, - "TooManyHealthChecks$message": null, - "TooManyHostedZones$message": "

    Descriptive message for the error response.

    ", - "TooManyTrafficPolicies$message": "

    Descriptive message for the error response.

    ", - "TooManyTrafficPolicyInstances$message": "

    Descriptive message for the error response.

    ", - "TrafficPolicyAlreadyExists$message": "

    Descriptive message for the error response.

    ", - "TrafficPolicyInUse$message": "

    Descriptive message for the error response.

    ", - "TrafficPolicyInstanceAlreadyExists$message": "

    Descriptive message for the error response.

    ", - "VPCAssociationNotFound$message": "

    Descriptive message for the error response.

    " - } - }, - "ErrorMessages": { - "base": null, - "refs": { - "InvalidChangeBatch$messages": "

    Descriptive message for the error response.

    " - } - }, - "EvaluationPeriods": { - "base": null, - "refs": { - "CloudWatchAlarmConfiguration$EvaluationPeriods": "

    The number of periods over which data is compared to the specified threshold.

    " - } - }, - "FailureThreshold": { - "base": null, - "refs": { - "HealthCheckConfig$FailureThreshold": "

    The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa.

    Valid values are integers between 1 and 10. For more information, see \"How Amazon Route 53 Determines Whether an Endpoint Is Healthy\" in the Amazon Route 53 Developer Guide.

    ", - "UpdateHealthCheckRequest$FailureThreshold": "

    The number of consecutive health checks that an endpoint must pass or fail for Amazon Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa.

    Valid values are integers between 1 and 10. For more information, see \"How Amazon Route 53 Determines Whether an Endpoint Is Healthy\" in the Amazon Route 53 Developer Guide.

    Specify this value only if you want to change it.

    " - } - }, - "FullyQualifiedDomainName": { - "base": null, - "refs": { - "HealthCheckConfig$FullyQualifiedDomainName": "

    Fully qualified domain name of the instance to be health checked.

    ", - "UpdateHealthCheckRequest$FullyQualifiedDomainName": "

    Fully qualified domain name of the instance to be health checked.

    Specify this value only if you want to change it.

    " - } - }, - "GeoLocation": { - "base": "

    A complex type that contains information about a geo location.

    ", - "refs": { - "ResourceRecordSet$GeoLocation": "

    Geo location resource record sets only: A complex type that lets you control how Amazon Route 53 responds to DNS queries based on the geographic origin of the query. For example, if you want all queries from Africa to be routed to a web server with an IP address of 192.0.2.111, create a resource record set with a Type of A and a ContinentCode of AF.

    You can create geolocation and geolocation alias resource record sets only in public hosted zones.

    If you create separate resource record sets for overlapping geographic regions (for example, one resource record set for a continent and one for a country on the same continent), priority goes to the smallest geographic region. This allows you to route most queries for a continent to one resource and to route queries for a country on that continent to a different resource.

    You cannot create two geolocation resource record sets that specify the same geographic location.

    The value * in the CountryCode element matches all geographic locations that aren't specified in other geolocation resource record sets that have the same values for the Name and Type elements.

    Geolocation works by mapping IP addresses to locations. However, some IP addresses aren't mapped to geographic locations, so even if you create geolocation resource record sets that cover all seven continents, Amazon Route 53 will receive some DNS queries from locations that it can't identify. We recommend that you create a resource record set for which the value of CountryCode is *, which handles both queries that come from locations for which you haven't created geolocation resource record sets and queries from IP addresses that aren't mapped to a location. If you don't create a * resource record set, Amazon Route 53 returns a \"no answer\" response for queries from those locations.

    You cannot create non-geolocation resource record sets that have the same values for the Name and Type elements as geolocation resource record sets.

    " - } - }, - "GeoLocationContinentCode": { - "base": null, - "refs": { - "GeoLocation$ContinentCode": "

    The code for a continent geo location. Note: only continent locations have a continent code.

    Valid values: AF | AN | AS | EU | OC | NA | SA

    Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

    ", - "GeoLocationDetails$ContinentCode": "

    The code for a continent geo location. Note: only continent locations have a continent code.

    ", - "GetGeoLocationRequest$ContinentCode": "

    The code for a continent geo location. Note: only continent locations have a continent code.

    Valid values: AF | AN | AS | EU | OC | NA | SA

    Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

    ", - "ListGeoLocationsRequest$StartContinentCode": "

    The first continent code in the lexicographic ordering of geo locations that you want the ListGeoLocations request to list. For non-continent geo locations, this should be null.

    Valid values: AF | AN | AS | EU | OC | NA | SA

    Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

    ", - "ListGeoLocationsResponse$NextContinentCode": "

    If the results were truncated, the continent code of the next geo location in the list. This element is present only if ListGeoLocationsResponse$IsTruncated is true and the next geo location to list is a continent location.

    " - } - }, - "GeoLocationContinentName": { - "base": null, - "refs": { - "GeoLocationDetails$ContinentName": "

    The name of the continent. This element is only present if ContinentCode is also present.

    " - } - }, - "GeoLocationCountryCode": { - "base": null, - "refs": { - "GeoLocation$CountryCode": "

    The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

    The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

    ", - "GeoLocationDetails$CountryCode": "

    The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

    The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

    ", - "GetGeoLocationRequest$CountryCode": "

    The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

    The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

    ", - "ListGeoLocationsRequest$StartCountryCode": "

    The first country code in the lexicographic ordering of geo locations that you want the ListGeoLocations request to list.

    The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

    ", - "ListGeoLocationsResponse$NextCountryCode": "

    If the results were truncated, the country code of the next geo location in the list. This element is present only if ListGeoLocationsResponse$IsTruncated is true and the next geo location to list is not a continent location.

    " - } - }, - "GeoLocationCountryName": { - "base": null, - "refs": { - "GeoLocationDetails$CountryName": "

    The name of the country. This element is only present if CountryCode is also present.

    " - } - }, - "GeoLocationDetails": { - "base": "

    A complex type that contains information about a GeoLocation.

    ", - "refs": { - "GeoLocationDetailsList$member": null, - "GetGeoLocationResponse$GeoLocationDetails": "

    A complex type that contains the information about the specified geo location.

    " - } - }, - "GeoLocationDetailsList": { - "base": null, - "refs": { - "ListGeoLocationsResponse$GeoLocationDetailsList": "

    A complex type that contains information about the geo locations that are returned by the request.

    " - } - }, - "GeoLocationSubdivisionCode": { - "base": null, - "refs": { - "GeoLocation$SubdivisionCode": "

    The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

    Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

    ", - "GeoLocationDetails$SubdivisionCode": "

    The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

    ", - "GetGeoLocationRequest$SubdivisionCode": "

    The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

    Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

    ", - "ListGeoLocationsRequest$StartSubdivisionCode": "

    The first subdivision code in the lexicographic ordering of geo locations that you want the ListGeoLocations request to list.

    Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

    ", - "ListGeoLocationsResponse$NextSubdivisionCode": "

    If the results were truncated, the subdivision code of the next geo location in the list. This element is present only if ListGeoLocationsResponse$IsTruncated is true and the next geo location has a subdivision.

    " - } - }, - "GeoLocationSubdivisionName": { - "base": null, - "refs": { - "GeoLocationDetails$SubdivisionName": "

    The name of the subdivision. This element is only present if SubdivisionCode is also present.

    " - } - }, - "GetChangeDetailsRequest": { - "base": "

    The input for a GetChangeDetails request.

    ", - "refs": { - } - }, - "GetChangeDetailsResponse": { - "base": "

    A complex type that contains the ChangeBatchRecord element.

    ", - "refs": { - } - }, - "GetChangeRequest": { - "base": "

    The input for a GetChange request.

    ", - "refs": { - } - }, - "GetChangeResponse": { - "base": "

    A complex type that contains the ChangeInfo element.

    ", - "refs": { - } - }, - "GetCheckerIpRangesRequest": { - "base": "

    Empty request.

    ", - "refs": { - } - }, - "GetCheckerIpRangesResponse": { - "base": "

    A complex type that contains the CheckerIpRanges element.

    ", - "refs": { - } - }, - "GetGeoLocationRequest": { - "base": "

    A complex type that contains information about the request to get a geo location.

    ", - "refs": { - } - }, - "GetGeoLocationResponse": { - "base": "

    A complex type containing information about the specified geo location.

    ", - "refs": { - } - }, - "GetHealthCheckCountRequest": { - "base": "

    To retrieve a count of all your health checks, send a GET request to the /Route 53 API version/healthcheckcount resource.

    ", - "refs": { - } - }, - "GetHealthCheckCountResponse": { - "base": "

    A complex type that contains the count of health checks associated with the current AWS account.

    ", - "refs": { - } - }, - "GetHealthCheckLastFailureReasonRequest": { - "base": "

    A complex type that contains information about the request to get the most recent failure reason for a health check.

    ", - "refs": { - } - }, - "GetHealthCheckLastFailureReasonResponse": { - "base": "

    A complex type that contains information about the most recent failure for the specified health check.

    ", - "refs": { - } - }, - "GetHealthCheckRequest": { - "base": "

    A complex type that contains information about the request to get a health check.

    ", - "refs": { - } - }, - "GetHealthCheckResponse": { - "base": "

    A complex type containing information about the specified health check.

    ", - "refs": { - } - }, - "GetHealthCheckStatusRequest": { - "base": "

    A complex type that contains information about the request to get health check status for a health check.

    ", - "refs": { - } - }, - "GetHealthCheckStatusResponse": { - "base": "

    A complex type that contains information about the status of the specified health check.

    ", - "refs": { - } - }, - "GetHostedZoneCountRequest": { - "base": "

    To retrieve a count of all your hosted zones, send a GET request to the /Route 53 API version/hostedzonecount resource.

    ", - "refs": { - } - }, - "GetHostedZoneCountResponse": { - "base": "

    A complex type that contains the count of hosted zones associated with the current AWS account.

    ", - "refs": { - } - }, - "GetHostedZoneRequest": { - "base": "

    The input for a GetHostedZone request.

    ", - "refs": { - } - }, - "GetHostedZoneResponse": { - "base": "

    A complex type containing information about the specified hosted zone.

    ", - "refs": { - } - }, - "GetReusableDelegationSetRequest": { - "base": "

    The input for a GetReusableDelegationSet request.

    ", - "refs": { - } - }, - "GetReusableDelegationSetResponse": { - "base": "

    A complex type containing information about the specified reusable delegation set.

    ", - "refs": { - } - }, - "GetTrafficPolicyInstanceCountRequest": { - "base": "

    To retrieve a count of all your traffic policy instances, send a GET request to the /Route 53 API version/trafficpolicyinstancecount resource.

    ", - "refs": { - } - }, - "GetTrafficPolicyInstanceCountResponse": { - "base": "

    A complex type that contains information about the number of traffic policy instances that are associated with the current AWS account.

    ", - "refs": { - } - }, - "GetTrafficPolicyInstanceRequest": { - "base": "

    Gets information about a specified traffic policy instance.

    To get information about a traffic policy instance, send a GET request to the /Route 53 API version/trafficpolicyinstance/Id resource.

    ", - "refs": { - } - }, - "GetTrafficPolicyInstanceResponse": { - "base": "

    A complex type that contains information about the resource record sets that Amazon Route 53 created based on a specified traffic policy.

    ", - "refs": { - } - }, - "GetTrafficPolicyRequest": { - "base": "

    Gets information about a specific traffic policy version. To get the information, send a GET request to the /Route 53 API version/trafficpolicy resource, and specify the ID and the version of the traffic policy.

    ", - "refs": { - } - }, - "GetTrafficPolicyResponse": { - "base": "

    A complex type that contains the response information for the request.

    ", - "refs": { - } - }, - "HealthCheck": { - "base": "

    A complex type that contains identifying information about the health check.

    ", - "refs": { - "CreateHealthCheckResponse$HealthCheck": "

    A complex type that contains identifying information about the health check.

    ", - "GetHealthCheckResponse$HealthCheck": "

    A complex type that contains the information about the specified health check.

    ", - "HealthChecks$member": null, - "UpdateHealthCheckResponse$HealthCheck": null - } - }, - "HealthCheckAlreadyExists": { - "base": "

    The health check you are trying to create already exists. Amazon Route 53 returns this error when a health check has already been created with the specified CallerReference.

    ", - "refs": { - } - }, - "HealthCheckConfig": { - "base": "

    A complex type that contains the health check configuration.

    ", - "refs": { - "CreateHealthCheckRequest$HealthCheckConfig": "

    A complex type that contains health check configuration.

    ", - "HealthCheck$HealthCheckConfig": "

    A complex type that contains the health check configuration.

    " - } - }, - "HealthCheckCount": { - "base": null, - "refs": { - "GetHealthCheckCountResponse$HealthCheckCount": "

    The number of health checks associated with the current AWS account.

    " - } - }, - "HealthCheckId": { - "base": null, - "refs": { - "ChildHealthCheckList$member": null, - "DeleteHealthCheckRequest$HealthCheckId": "

    The ID of the health check to delete.

    ", - "GetHealthCheckLastFailureReasonRequest$HealthCheckId": "

    The ID of the health check for which you want to retrieve the reason for the most recent failure.

    ", - "GetHealthCheckRequest$HealthCheckId": "

    The ID of the health check to retrieve.

    ", - "GetHealthCheckStatusRequest$HealthCheckId": "

    If you want Amazon Route 53 to return this resource record set in response to a DNS query only when a health check is passing, include the HealthCheckId element and specify the ID of the applicable health check.

    Amazon Route 53 determines whether a resource record set is healthy by periodically sending a request to the endpoint that is specified in the health check. If that endpoint returns an HTTP status code of 2xx or 3xx, the endpoint is healthy. If the endpoint returns an HTTP status code of 400 or greater, or if the endpoint doesn't respond for a certain amount of time, Amazon Route 53 considers the endpoint unhealthy and also considers the resource record set unhealthy.

    The HealthCheckId element is only useful when Amazon Route 53 is choosing between two or more resource record sets to respond to a DNS query, and you want Amazon Route 53 to base the choice in part on the status of a health check. Configuring health checks only makes sense in the following configurations:

    • You're checking the health of the resource record sets in a weighted, latency, geolocation, or failover resource record set, and you specify health check IDs for all of the resource record sets. If the health check for one resource record set specifies an endpoint that is not healthy, Amazon Route 53 stops responding to queries using the value for that resource record set.
    • You set EvaluateTargetHealth to true for the resource record sets in an alias, weighted alias, latency alias, geolocation alias, or failover alias resource record set, and you specify health check IDs for all of the resource record sets that are referenced by the alias resource record sets. For more information about this configuration, see EvaluateTargetHealth.

      Amazon Route 53 doesn't check the health of the endpoint specified in the resource record set, for example, the endpoint specified by the IP address in the Value element. When you add a HealthCheckId element to a resource record set, Amazon Route 53 checks the health of the endpoint that you specified in the health check.

    For geolocation resource record sets, if an endpoint is unhealthy, Amazon Route 53 looks for a resource record set for the larger, associated geographic region. For example, suppose you have resource record sets for a state in the United States, for the United States, for North America, and for all locations. If the endpoint for the state resource record set is unhealthy, Amazon Route 53 checks the resource record sets for the United States, for North America, and for all locations (a resource record set for which the value of CountryCode is *), in that order, until it finds a resource record set for which the endpoint is healthy.

    If your health checks specify the endpoint only by domain name, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of FullyQualifiedDomainName, specify the domain name of the server (such as us-east-1-www.example.com), not the name of the resource record sets (example.com).

    In this configuration, if you create a health check for which the value of FullyQualifiedDomainName matches the name of the resource record sets and then associate the health check with those resource record sets, health check results will be unpredictable.", - "HealthCheck$Id": "

    The ID of the specified health check.

    ", - "ResourceRecordSet$HealthCheckId": "

    Health Check resource record sets only, not required for alias resource record sets: An identifier that is used to identify health check associated with the resource record set.

    ", - "UpdateHealthCheckRequest$HealthCheckId": "

    The ID of the health check to update.

    " - } - }, - "HealthCheckInUse": { - "base": "

    There are resource records associated with this health check. Before you can delete the health check, you must disassociate it from the resource record sets.

    ", - "refs": { - } - }, - "HealthCheckNonce": { - "base": null, - "refs": { - "CreateHealthCheckRequest$CallerReference": "

    A unique string that identifies the request and that allows failed CreateHealthCheck requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a health check. CallerReference can be any unique string; you might choose to use a string that identifies your project.

    Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

    ", - "HealthCheck$CallerReference": "

    A unique string that identifies the request to create the health check.

    " - } - }, - "HealthCheckObservation": { - "base": "

    A complex type that contains the IP address of a Amazon Route 53 health checker and the reason for the health check status.

    ", - "refs": { - "HealthCheckObservations$member": null - } - }, - "HealthCheckObservations": { - "base": null, - "refs": { - "GetHealthCheckLastFailureReasonResponse$HealthCheckObservations": "

    A list that contains one HealthCheckObservation element for each Amazon Route 53 health checker.

    ", - "GetHealthCheckStatusResponse$HealthCheckObservations": "

    A list that contains one HealthCheckObservation element for each Amazon Route 53 health checker.

    " - } - }, - "HealthCheckRegion": { - "base": "

    An Amazon EC2 region that you want Amazon Route 53 to use to perform health checks.

    ", - "refs": { - "HealthCheckObservation$Region": "

    The HealthCheckRegion of the Amazon Route 53 health checker that performed this health check.

    ", - "HealthCheckRegionList$member": null - } - }, - "HealthCheckRegionList": { - "base": null, - "refs": { - "HealthCheckConfig$Regions": "

    A list of HealthCheckRegion values that you want Amazon Route 53 to use to perform health checks for the specified endpoint. You must specify at least three regions.

    ", - "UpdateHealthCheckRequest$Regions": "

    A list of HealthCheckRegion values that specify the Amazon EC2 regions that you want Amazon Route 53 to use to perform health checks. You must specify at least three regions.

    When you remove a region from the list, Amazon Route 53 will briefly continue to check your endpoint from that region.

    Specify this value only if you want to change it.

    " - } - }, - "HealthCheckType": { - "base": null, - "refs": { - "HealthCheckConfig$Type": "

    The type of health check to be performed. Currently supported types are TCP, HTTP, HTTPS, HTTP_STR_MATCH, HTTPS_STR_MATCH, CALCULATED and CLOUDWATCH_METRIC.

    " - } - }, - "HealthCheckVersion": { - "base": null, - "refs": { - "HealthCheck$HealthCheckVersion": "

    The version of the health check. You can optionally pass this value in a call to UpdateHealthCheck to prevent overwriting another change to the health check.

    ", - "UpdateHealthCheckRequest$HealthCheckVersion": "

    Optional. When you specify a health check version, Amazon Route 53 compares this value with the current value in the health check, which prevents you from updating the health check when the versions don't match. Using HealthCheckVersion lets you prevent overwriting another change to the health check.

    " - } - }, - "HealthCheckVersionMismatch": { - "base": null, - "refs": { - } - }, - "HealthChecks": { - "base": null, - "refs": { - "ListHealthChecksResponse$HealthChecks": "

    A complex type that contains information about the health checks associated with the current AWS account.

    " - } - }, - "HealthThreshold": { - "base": null, - "refs": { - "HealthCheckConfig$HealthThreshold": "

    The minimum number of child health checks that must be healthy for Amazon Route 53 to consider the parent health check to be healthy. Valid values are integers between 0 and 256, inclusive.

    ", - "UpdateHealthCheckRequest$HealthThreshold": "

    The minimum number of child health checks that must be healthy for Amazon Route 53 to consider the parent health check to be healthy. Valid values are integers between 0 and 256, inclusive.

    Specify this value only if you want to change it.

    " - } - }, - "HostedZone": { - "base": "

    A complex type that contain information about the specified hosted zone.

    ", - "refs": { - "CreateHostedZoneResponse$HostedZone": "

    A complex type that contains identifying information about the hosted zone.

    ", - "GetHostedZoneResponse$HostedZone": "

    A complex type that contains the information about the specified hosted zone.

    ", - "HostedZones$member": null, - "UpdateHostedZoneCommentResponse$HostedZone": null - } - }, - "HostedZoneAlreadyExists": { - "base": "

    The hosted zone you are trying to create already exists. Amazon Route 53 returns this error when a hosted zone has already been created with the specified CallerReference.

    ", - "refs": { - } - }, - "HostedZoneConfig": { - "base": "

    A complex type that contains an optional comment about your hosted zone. If you don't want to specify a comment, you can omit the HostedZoneConfig and Comment elements from the XML document.

    ", - "refs": { - "CreateHostedZoneRequest$HostedZoneConfig": "

    A complex type that contains an optional comment about your hosted zone.

    ", - "HostedZone$Config": "

    A complex type that contains the Comment element.

    " - } - }, - "HostedZoneCount": { - "base": null, - "refs": { - "GetHostedZoneCountResponse$HostedZoneCount": "

    The number of hosted zones associated with the current AWS account.

    " - } - }, - "HostedZoneNotEmpty": { - "base": "

    The hosted zone contains resource record sets in addition to the default NS and SOA resource record sets. Before you can delete the hosted zone, you must delete the additional resource record sets.

    ", - "refs": { - } - }, - "HostedZoneNotFound": { - "base": "

    The specified HostedZone cannot be found.

    ", - "refs": { - } - }, - "HostedZoneRRSetCount": { - "base": null, - "refs": { - "HostedZone$ResourceRecordSetCount": "

    Total number of resource record sets in the hosted zone.

    " - } - }, - "HostedZones": { - "base": null, - "refs": { - "ListHostedZonesByNameResponse$HostedZones": "

    A complex type that contains information about the hosted zones associated with the current AWS account.

    ", - "ListHostedZonesResponse$HostedZones": "

    A complex type that contains information about the hosted zones associated with the current AWS account.

    " - } - }, - "IPAddress": { - "base": null, - "refs": { - "HealthCheckConfig$IPAddress": "

    IP Address of the instance being checked.

    ", - "HealthCheckObservation$IPAddress": "

    The IP address of the Amazon Route 53 health checker that performed this health check.

    ", - "UpdateHealthCheckRequest$IPAddress": "

    The IP address of the resource that you want to check.

    Specify this value only if you want to change it.

    " - } - }, - "IPAddressCidr": { - "base": null, - "refs": { - "CheckerIpRanges$member": null - } - }, - "IncompatibleVersion": { - "base": "

    The resource you are trying to access is unsupported on this Amazon Route 53 endpoint. Please consider using a newer endpoint or a tool that does so.

    ", - "refs": { - } - }, - "InsufficientDataHealthStatus": { - "base": null, - "refs": { - "HealthCheckConfig$InsufficientDataHealthStatus": "

    The status of the health check when CloudWatch has insufficient data about the state of associated alarm. Valid values are Healthy, Unhealthy and LastKnownStatus.

    ", - "UpdateHealthCheckRequest$InsufficientDataHealthStatus": null - } - }, - "InvalidArgument": { - "base": "

    At least one of the specified arguments is invalid.

    ", - "refs": { - } - }, - "InvalidChangeBatch": { - "base": "

    This error contains a list of one or more error messages. Each error message indicates one error in the change batch. For more information, see Example InvalidChangeBatch Errors.

    ", - "refs": { - } - }, - "InvalidDomainName": { - "base": "

    This error indicates that the specified domain name is not valid.

    ", - "refs": { - } - }, - "InvalidInput": { - "base": "

    Some value specified in the request is invalid or the XML document is malformed.

    ", - "refs": { - } - }, - "InvalidTrafficPolicyDocument": { - "base": "

    The format of the traffic policy document that you specified in the Document element is invalid.

    ", - "refs": { - } - }, - "InvalidVPCId": { - "base": "

    The hosted zone you are trying to create for your VPC_ID does not belong to you. Amazon Route 53 returns this error when the VPC specified by VPCId does not belong to you.

    ", - "refs": { - } - }, - "Inverted": { - "base": null, - "refs": { - "HealthCheckConfig$Inverted": "

    A boolean value that indicates whether the status of health check should be inverted. For example, if a health check is healthy but Inverted is True, then Amazon Route 53 considers the health check to be unhealthy.

    ", - "UpdateHealthCheckRequest$Inverted": "

    A boolean value that indicates whether the status of health check should be inverted. For example, if a health check is healthy but Inverted is True, then Amazon Route 53 considers the health check to be unhealthy.

    Specify this value only if you want to change it.

    " - } - }, - "IsPrivateZone": { - "base": null, - "refs": { - "HostedZoneConfig$PrivateZone": null - } - }, - "LastVPCAssociation": { - "base": "

    The VPC you are trying to disassociate from the hosted zone is the last the VPC that is associated with the hosted zone. Amazon Route 53 currently doesn't support disassociate the last VPC from the hosted zone.

    ", - "refs": { - } - }, - "LimitsExceeded": { - "base": "

    The limits specified for a resource have been exceeded.

    ", - "refs": { - } - }, - "ListChangeBatchesByHostedZoneRequest": { - "base": "

    The input for a ListChangeBatchesByHostedZone request.

    ", - "refs": { - } - }, - "ListChangeBatchesByHostedZoneResponse": { - "base": "

    The input for a ListChangeBatchesByHostedZone request.

    ", - "refs": { - } - }, - "ListChangeBatchesByRRSetRequest": { - "base": "

    The input for a ListChangeBatchesByRRSet request.

    ", - "refs": { - } - }, - "ListChangeBatchesByRRSetResponse": { - "base": "

    The input for a ListChangeBatchesByRRSet request.

    ", - "refs": { - } - }, - "ListGeoLocationsRequest": { - "base": "

    The input for a ListGeoLocations request.

    ", - "refs": { - } - }, - "ListGeoLocationsResponse": { - "base": "

    A complex type that contains information about the geo locations that are returned by the request and information about the response.

    ", - "refs": { - } - }, - "ListHealthChecksRequest": { - "base": "

    To retrieve a list of your health checks, send a GET request to the /Route 53 API version/healthcheck resource. The response to this request includes a HealthChecks element with zero or more HealthCheck child elements. By default, the list of health checks is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the health check that the list begins with.

    Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", - "refs": { - } - }, - "ListHealthChecksResponse": { - "base": "

    A complex type that contains the response for the request.

    ", - "refs": { - } - }, - "ListHostedZonesByNameRequest": { - "base": "

    To retrieve a list of your hosted zones in lexicographic order, send a GET request to the /Route 53 API version/hostedzonesbyname resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements lexicographically ordered by DNS name. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the DNSName and HostedZoneId parameters to control the hosted zone that the list begins with.

    For more information about listing hosted zones, see Listing the Hosted Zones for an AWS Account in the Amazon Route 53 Developer Guide.

    ", - "refs": { - } - }, - "ListHostedZonesByNameResponse": { - "base": "

    A complex type that contains the response for the request.

    ", - "refs": { - } - }, - "ListHostedZonesRequest": { - "base": "

    To retrieve a list of your hosted zones, send a GET request to the /Route 53 API version/hostedzone resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the hosted zone that the list begins with. For more information about listing hosted zones, see Listing the Hosted Zones for an AWS Account in the Amazon Route 53 Developer Guide.

    Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", - "refs": { - } - }, - "ListHostedZonesResponse": { - "base": "

    A complex type that contains the response for the request.

    ", - "refs": { - } - }, - "ListResourceRecordSetsRequest": { - "base": "

    The input for a ListResourceRecordSets request.

    ", - "refs": { - } - }, - "ListResourceRecordSetsResponse": { - "base": "

    A complex type that contains information about the resource record sets that are returned by the request and information about the response.

    ", - "refs": { - } - }, - "ListReusableDelegationSetsRequest": { - "base": "

    To retrieve a list of your reusable delegation sets, send a GET request to the /Route 53 API version/delegationset resource. The response to this request includes a DelegationSets element with zero or more DelegationSet child elements. By default, the list of reusable delegation sets is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the Marker parameter to control the delegation set that the list begins with.

    Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.", - "refs": { - } - }, - "ListReusableDelegationSetsResponse": { - "base": "

    A complex type that contains the response for the request.

    ", - "refs": { - } - }, - "ListTagsForResourceRequest": { - "base": "

    A complex type containing information about a request for a list of the tags that are associated with an individual resource.

    ", - "refs": { - } - }, - "ListTagsForResourceResponse": { - "base": "

    A complex type containing tags for the specified resource.

    ", - "refs": { - } - }, - "ListTagsForResourcesRequest": { - "base": "

    A complex type containing information about a request for a list of the tags that are associated with up to 10 specified resources.

    ", - "refs": { - } - }, - "ListTagsForResourcesResponse": { - "base": "

    A complex type containing tags for the specified resources.

    ", - "refs": { - } - }, - "ListTrafficPoliciesRequest": { - "base": "

    A complex type that contains the information about the request to list the traffic policies that are associated with the current AWS account.

    ", - "refs": { - } - }, - "ListTrafficPoliciesResponse": { - "base": "

    A complex type that contains the response information for the request.

    ", - "refs": { - } - }, - "ListTrafficPolicyInstancesByHostedZoneRequest": { - "base": "

    A request for the traffic policy instances that you created in a specified hosted zone.

    ", - "refs": { - } - }, - "ListTrafficPolicyInstancesByHostedZoneResponse": { - "base": "

    A complex type that contains the response information for the request.

    ", - "refs": { - } - }, - "ListTrafficPolicyInstancesByPolicyRequest": { - "base": "

    A complex type that contains the information about the request to list your traffic policy instances.

    ", - "refs": { - } - }, - "ListTrafficPolicyInstancesByPolicyResponse": { - "base": "

    A complex type that contains the response information for the request.

    ", - "refs": { - } - }, - "ListTrafficPolicyInstancesRequest": { - "base": "

    A complex type that contains the information about the request to list your traffic policy instances.

    ", - "refs": { - } - }, - "ListTrafficPolicyInstancesResponse": { - "base": "

    A complex type that contains the response information for the request.

    ", - "refs": { - } - }, - "ListTrafficPolicyVersionsRequest": { - "base": "

    A complex type that contains the information about the request to list your traffic policies.

    ", - "refs": { - } - }, - "ListTrafficPolicyVersionsResponse": { - "base": "

    A complex type that contains the response information for the request.

    ", - "refs": { - } - }, - "MeasureLatency": { - "base": null, - "refs": { - "HealthCheckConfig$MeasureLatency": "

    A Boolean value that indicates whether you want Amazon Route 53 to measure the latency between health checkers in multiple AWS regions and your endpoint and to display CloudWatch latency graphs in the Amazon Route 53 console.

    " - } - }, - "Message": { - "base": null, - "refs": { - "TrafficPolicyInstance$Message": null - } - }, - "MetricName": { - "base": null, - "refs": { - "CloudWatchAlarmConfiguration$MetricName": "

    The name of the CloudWatch metric that is associated with the CloudWatch alarm.

    " - } - }, - "Namespace": { - "base": null, - "refs": { - "CloudWatchAlarmConfiguration$Namespace": "

    The namespace of the CloudWatch metric that is associated with the CloudWatch alarm.

    " - } - }, - "NoSuchChange": { - "base": null, - "refs": { - } - }, - "NoSuchDelegationSet": { - "base": "

    The specified delegation set does not exist.

    ", - "refs": { - } - }, - "NoSuchGeoLocation": { - "base": "

    The geo location you are trying to get does not exist.

    ", - "refs": { - } - }, - "NoSuchHealthCheck": { - "base": "

    The health check you are trying to get or delete does not exist.

    ", - "refs": { - } - }, - "NoSuchHostedZone": { - "base": null, - "refs": { - } - }, - "NoSuchTrafficPolicy": { - "base": "

    No traffic policy exists with the specified ID.

    ", - "refs": { - } - }, - "NoSuchTrafficPolicyInstance": { - "base": "

    No traffic policy instance exists with the specified ID.

    ", - "refs": { - } - }, - "Nonce": { - "base": null, - "refs": { - "CreateHostedZoneRequest$CallerReference": "

    A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a hosted zone. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

    Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

    ", - "CreateReusableDelegationSetRequest$CallerReference": "

    A unique string that identifies the request and that allows failed CreateReusableDelegationSet requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you create a reusable delegation set. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

    Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

    ", - "DelegationSet$CallerReference": null, - "HostedZone$CallerReference": "

    A unique string that identifies the request to create the hosted zone.

    " - } - }, - "PageMarker": { - "base": null, - "refs": { - "ListChangeBatchesByHostedZoneRequest$Marker": "

    The page marker.

    ", - "ListChangeBatchesByHostedZoneResponse$Marker": "

    The page marker.

    ", - "ListChangeBatchesByHostedZoneResponse$NextMarker": "

    The next page marker.

    ", - "ListChangeBatchesByRRSetRequest$Marker": "

    The page marker.

    ", - "ListChangeBatchesByRRSetResponse$Marker": "

    The page marker.

    ", - "ListChangeBatchesByRRSetResponse$NextMarker": "

    The next page marker.

    ", - "ListHealthChecksRequest$Marker": "

    If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

    ", - "ListHealthChecksResponse$Marker": "

    If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

    ", - "ListHealthChecksResponse$NextMarker": "

    Indicates where to continue listing health checks. If ListHealthChecksResponse$IsTruncated is true, make another request to ListHealthChecks and include the value of the NextMarker element in the Marker element to get the next page of results.

    ", - "ListHostedZonesRequest$Marker": "

    If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

    ", - "ListHostedZonesResponse$Marker": "

    If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

    ", - "ListHostedZonesResponse$NextMarker": "

    Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated is true, make another request to ListHostedZones and include the value of the NextMarker element in the Marker element to get the next page of results.

    ", - "ListReusableDelegationSetsRequest$Marker": "

    If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

    ", - "ListReusableDelegationSetsResponse$Marker": "

    If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

    ", - "ListReusableDelegationSetsResponse$NextMarker": "

    Indicates where to continue listing reusable delegation sets. If ListReusableDelegationSetsResponse$IsTruncated is true, make another request to ListReusableDelegationSets and include the value of the NextMarker element in the Marker element to get the next page of results.

    " - } - }, - "PageMaxItems": { - "base": null, - "refs": { - "ListChangeBatchesByHostedZoneRequest$MaxItems": "

    The maximum number of items on a page.

    ", - "ListChangeBatchesByHostedZoneResponse$MaxItems": "

    The maximum number of items on a page.

    ", - "ListChangeBatchesByRRSetRequest$MaxItems": "

    The maximum number of items on a page.

    ", - "ListChangeBatchesByRRSetResponse$MaxItems": "

    The maximum number of items on a page.

    ", - "ListGeoLocationsRequest$MaxItems": "

    The maximum number of geo locations you want in the response body.

    ", - "ListGeoLocationsResponse$MaxItems": "

    The maximum number of records you requested. The maximum value of MaxItems is 100.

    ", - "ListHealthChecksRequest$MaxItems": "

    Specify the maximum number of health checks to return per page of results.

    ", - "ListHealthChecksResponse$MaxItems": "

    The maximum number of health checks to be included in the response body. If the number of health checks associated with this AWS account exceeds MaxItems, the value of ListHealthChecksResponse$IsTruncated in the response is true. Call ListHealthChecks again and specify the value of ListHealthChecksResponse$NextMarker in the ListHostedZonesRequest$Marker element to get the next page of results.

    ", - "ListHostedZonesByNameRequest$MaxItems": "

    Specify the maximum number of hosted zones to return per page of results.

    ", - "ListHostedZonesByNameResponse$MaxItems": "

    The maximum number of hosted zones to be included in the response body. If the number of hosted zones associated with this AWS account exceeds MaxItems, the value of ListHostedZonesByNameResponse$IsTruncated in the response is true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively to get the next page of results.

    ", - "ListHostedZonesRequest$MaxItems": "

    Specify the maximum number of hosted zones to return per page of results.

    ", - "ListHostedZonesResponse$MaxItems": "

    The maximum number of hosted zones to be included in the response body. If the number of hosted zones associated with this AWS account exceeds MaxItems, the value of ListHostedZonesResponse$IsTruncated in the response is true. Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker in the ListHostedZonesRequest$Marker element to get the next page of results.

    ", - "ListResourceRecordSetsRequest$MaxItems": "

    The maximum number of records you want in the response body.

    ", - "ListResourceRecordSetsResponse$MaxItems": "

    The maximum number of records you requested. The maximum value of MaxItems is 100.

    ", - "ListReusableDelegationSetsRequest$MaxItems": "

    Specify the maximum number of reusable delegation sets to return per page of results.

    ", - "ListReusableDelegationSetsResponse$MaxItems": "

    The maximum number of reusable delegation sets to be included in the response body. If the number of reusable delegation sets associated with this AWS account exceeds MaxItems, the value of ListReusablDelegationSetsResponse$IsTruncated in the response is true. Call ListReusableDelegationSets again and specify the value of ListReusableDelegationSetsResponse$NextMarker in the ListReusableDelegationSetsRequest$Marker element to get the next page of results.

    ", - "ListTrafficPoliciesRequest$MaxItems": "

    The maximum number of traffic policies to be included in the response body for this request. If you have more than MaxItems traffic policies, the value of the IsTruncated element in the response is true, and the value of the TrafficPolicyIdMarker element is the ID of the first traffic policy in the next group of MaxItems traffic policies.

    ", - "ListTrafficPoliciesResponse$MaxItems": "

    The value that you specified for the MaxItems parameter in the call to ListTrafficPolicies that produced the current response.

    ", - "ListTrafficPolicyInstancesByHostedZoneRequest$MaxItems": "

    The maximum number of traffic policy instances to be included in the response body for this request. If you have more than MaxItems traffic policy instances, the value of the IsTruncated element in the response is true, and the values of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker represent the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "ListTrafficPolicyInstancesByHostedZoneResponse$MaxItems": "

    The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstancesByHostedZone that produced the current response.

    ", - "ListTrafficPolicyInstancesByPolicyRequest$MaxItems": "

    The maximum number of traffic policy instances to be included in the response body for this request. If you have more than MaxItems traffic policy instances, the value of the IsTruncated element in the response is true, and the values of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker represent the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "ListTrafficPolicyInstancesByPolicyResponse$MaxItems": "

    The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstancesByPolicy that produced the current response.

    ", - "ListTrafficPolicyInstancesRequest$MaxItems": "

    The maximum number of traffic policy instances to be included in the response body for this request. If you have more than MaxItems traffic policy instances, the value of the IsTruncated element in the response is true, and the values of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker represent the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "ListTrafficPolicyInstancesResponse$MaxItems": "

    The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstances that produced the current response.

    ", - "ListTrafficPolicyVersionsRequest$MaxItems": "

    The maximum number of traffic policy versions that you want Amazon Route 53 to include in the response body for this request. If the specified traffic policy has more than MaxItems versions, the value of the IsTruncated element in the response is true, and the value of the TrafficPolicyVersionMarker element is the ID of the first version in the next group of MaxItems traffic policy versions.

    ", - "ListTrafficPolicyVersionsResponse$MaxItems": "

    The value that you specified for the maxitems parameter in the call to ListTrafficPolicyVersions that produced the current response.

    " - } - }, - "PageTruncated": { - "base": null, - "refs": { - "ListChangeBatchesByHostedZoneResponse$IsTruncated": "

    A flag that indicates if there are more change batches to list.

    ", - "ListChangeBatchesByRRSetResponse$IsTruncated": "

    A flag that indicates if there are more change batches to list.

    ", - "ListGeoLocationsResponse$IsTruncated": "

    A flag that indicates whether there are more geo locations to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the values included in the ListGeoLocationsResponse$NextContinentCode, ListGeoLocationsResponse$NextCountryCode and ListGeoLocationsResponse$NextSubdivisionCode elements.

    Valid Values: true | false

    ", - "ListHealthChecksResponse$IsTruncated": "

    A flag indicating whether there are more health checks to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the Marker element.

    Valid Values: true | false

    ", - "ListHostedZonesByNameResponse$IsTruncated": "

    A flag indicating whether there are more hosted zones to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the NextDNSName and NextHostedZoneId elements.

    Valid Values: true | false

    ", - "ListHostedZonesResponse$IsTruncated": "

    A flag indicating whether there are more hosted zones to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the Marker element.

    Valid Values: true | false

    ", - "ListResourceRecordSetsResponse$IsTruncated": "

    A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

    Valid Values: true | false

    ", - "ListReusableDelegationSetsResponse$IsTruncated": "

    A flag indicating whether there are more reusable delegation sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the Marker element.

    Valid Values: true | false

    ", - "ListTrafficPoliciesResponse$IsTruncated": "

    A flag that indicates whether there are more traffic policies to be listed. If the response was truncated, you can get the next group of MaxItems traffic policies by calling ListTrafficPolicies again and specifying the value of the TrafficPolicyIdMarker element in the TrafficPolicyIdMarker request parameter.

    Valid Values: true | false

    ", - "ListTrafficPolicyInstancesByHostedZoneResponse$IsTruncated": "

    A flag that indicates whether there are more traffic policy instances to be listed. If the response was truncated, you can get the next group of MaxItems traffic policy instances by calling ListTrafficPolicyInstancesByHostedZone again and specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters.

    Valid Values: true | false

    ", - "ListTrafficPolicyInstancesByPolicyResponse$IsTruncated": "

    A flag that indicates whether there are more traffic policy instances to be listed. If the response was truncated, you can get the next group of MaxItems traffic policy instances by calling ListTrafficPolicyInstancesByPolicy again and specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters.

    Valid Values: true | false

    ", - "ListTrafficPolicyInstancesResponse$IsTruncated": "

    A flag that indicates whether there are more traffic policy instances to be listed. If the response was truncated, you can get the next group of MaxItems traffic policy instances by calling ListTrafficPolicyInstances again and specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters.

    Valid Values: true | false

    ", - "ListTrafficPolicyVersionsResponse$IsTruncated": "

    A flag that indicates whether there are more traffic policies to be listed. If the response was truncated, you can get the next group of maxitems traffic policies by calling ListTrafficPolicyVersions again and specifying the value of the NextMarker element in the marker parameter.

    Valid Values: true | false

    " - } - }, - "Period": { - "base": null, - "refs": { - "CloudWatchAlarmConfiguration$Period": "

    An integer that represents the period in seconds over which the statistic is applied.

    " - } - }, - "Port": { - "base": null, - "refs": { - "HealthCheckConfig$Port": "

    Port on which connection will be opened to the instance to health check. For HTTP and HTTP_STR_MATCH this defaults to 80 if the port is not specified. For HTTPS and HTTPS_STR_MATCH this defaults to 443 if the port is not specified.

    ", - "UpdateHealthCheckRequest$Port": "

    The port on which you want Amazon Route 53 to open a connection to perform health checks.

    Specify this value only if you want to change it.

    " - } - }, - "PriorRequestNotComplete": { - "base": "

    The request was rejected because Amazon Route 53 was still processing a prior request.

    ", - "refs": { - } - }, - "PublicZoneVPCAssociation": { - "base": "

    The hosted zone you are trying to associate VPC with doesn't have any VPC association. Amazon Route 53 currently doesn't support associate a VPC with a public hosted zone.

    ", - "refs": { - } - }, - "RData": { - "base": null, - "refs": { - "ResourceRecord$Value": "

    The current or new DNS record value, not to exceed 4,000 characters. In the case of a DELETE action, if the current value does not match the actual value, an error is returned. For descriptions about how to format Value for different record types, see Supported DNS Resource Record Types in the Amazon Route 53 Developer Guide.

    You can specify more than one value for all record types except CNAME and SOA.

    " - } - }, - "RRType": { - "base": null, - "refs": { - "ListChangeBatchesByRRSetRequest$Type": "

    The type of the RRSet that you want to see changes for.

    ", - "ListResourceRecordSetsRequest$StartRecordType": "

    The DNS type at which to begin the listing of resource record sets.

    Valid values: A | AAAA | CNAME | MX | NS | PTR | SOA | SPF | SRV | TXT

    Values for Weighted Resource Record Sets: A | AAAA | CNAME | TXT

    Values for Regional Resource Record Sets: A | AAAA | CNAME | TXT

    Values for Alias Resource Record Sets: A | AAAA

    Constraint: Specifying type without specifying name returns an InvalidInput error.

    ", - "ListResourceRecordSetsResponse$NextRecordType": "

    If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

    ", - "ListTrafficPolicyInstancesByHostedZoneRequest$TrafficPolicyInstanceTypeMarker": "

    For the first request to ListTrafficPolicyInstancesByHostedZone, omit this value.

    If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker is the DNS type of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get for this hosted zone.

    ", - "ListTrafficPolicyInstancesByHostedZoneResponse$TrafficPolicyInstanceTypeMarker": "

    If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of the resource record sets that are associated with the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "ListTrafficPolicyInstancesByPolicyRequest$TrafficPolicyInstanceTypeMarker": "

    For the first request to ListTrafficPolicyInstancesByPolicy, omit this value.

    If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker is the DNS type of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get for this hosted zone.

    ", - "ListTrafficPolicyInstancesByPolicyResponse$TrafficPolicyInstanceTypeMarker": "

    If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of the resource record sets that are associated with the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "ListTrafficPolicyInstancesRequest$TrafficPolicyInstanceTypeMarker": "

    For the first request to ListTrafficPolicyInstances, omit this value.

    If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker is the DNS type of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get.

    ", - "ListTrafficPolicyInstancesResponse$TrafficPolicyInstanceTypeMarker": "

    If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of the resource record sets that are associated with the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "ResourceRecordSet$Type": "

    The DNS record type. For information about different record types and how data is encoded for them, see Supported DNS Resource Record Types in the Amazon Route 53 Developer Guide.

    Valid values for basic resource record sets: A | AAAA | CNAME | MX | NS | PTR | SOA | SPF | SRV | TXT

    Values for weighted, latency, geolocation, and failover resource record sets: A | AAAA | CNAME | MX | PTR | SPF | SRV | TXT. When creating a group of weighted, latency, geolocation, or failover resource record sets, specify the same value for all of the resource record sets in the group.

    SPF records were formerly used to verify the identity of the sender of email messages. However, we no longer recommend that you create resource record sets for which the value of Type is SPF. RFC 7208, Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1, has been updated to say, \"...[I]ts existence and mechanism defined in [RFC4408] have led to some interoperability issues. Accordingly, its use is no longer appropriate for SPF version 1; implementations are not to use it.\" In RFC 7208, see section 14.1, The SPF DNS Record Type.

    Values for alias resource record sets:

    • CloudFront distributions: A
    • ELB load balancers: A | AAAA
    • Amazon S3 buckets: A
    • Another resource record set in this hosted zone: Specify the type of the resource record set for which you're creating the alias. Specify any value except NS or SOA.
    ", - "TrafficPolicy$Type": null, - "TrafficPolicyInstance$TrafficPolicyType": null, - "TrafficPolicySummary$Type": null - } - }, - "RequestInterval": { - "base": null, - "refs": { - "HealthCheckConfig$RequestInterval": "

    The number of seconds between the time that Amazon Route 53 gets a response from your endpoint and the time that it sends the next health-check request.

    Each Amazon Route 53 health checker makes requests at this interval. Valid values are 10 and 30. The default value is 30.

    " - } - }, - "ResourceDescription": { - "base": null, - "refs": { - "ChangeBatch$Comment": "

    Optional: Any comments you want to include about a change batch request.

    ", - "ChangeBatchRecord$Comment": "

    A complex type that describes change information about changes made to your hosted zone.

    This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

    ", - "ChangeInfo$Comment": "

    A complex type that describes change information about changes made to your hosted zone.

    This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

    ", - "HostedZoneConfig$Comment": "

    An optional comment about your hosted zone. If you don't want to specify a comment, you can omit the HostedZoneConfig and Comment elements from the XML document.

    ", - "UpdateHostedZoneCommentRequest$Comment": "

    A comment about your hosted zone.

    " - } - }, - "ResourceId": { - "base": null, - "refs": { - "AliasTarget$HostedZoneId": "

    Alias resource record sets only: The value you use depends on where you want to route queries:

    • A CloudFront distribution: Specify Z2FDTNDATAQYW2.
    • An ELB load balancer: Specify the value of the hosted zone ID for the load balancer. You can get the hosted zone ID by using the AWS Management Console, the ELB API, or the AWS CLI. Use the same method to get values for HostedZoneId and DNSName. If you get one value from the console and the other value from the API or the CLI, creating the resource record set will fail.
    • An Amazon S3 bucket that is configured as a static website: Specify the hosted zone ID for the Amazon S3 website endpoint in which you created the bucket. For more information about valid values, see the table Amazon Simple Storage Service (S3) Website Endpoints in the Amazon Web Services General Reference.
    • Another Amazon Route 53 resource record set in your hosted zone: Specify the hosted zone ID of your hosted zone. (An alias resource record set cannot reference a resource record set in a different hosted zone.)

    For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.

    ", - "AssociateVPCWithHostedZoneRequest$HostedZoneId": "

    The ID of the hosted zone you want to associate your VPC with.

    Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.

    ", - "ChangeBatchRecord$Id": "

    The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.

    ", - "ChangeInfo$Id": "

    The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.

    ", - "ChangeResourceRecordSetsRequest$HostedZoneId": "

    The ID of the hosted zone that contains the resource record sets that you want to change.

    ", - "CreateHostedZoneRequest$DelegationSetId": "

    The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.

    ", - "CreateReusableDelegationSetRequest$HostedZoneId": "

    The ID of the hosted zone whose delegation set you want to mark as reusable. It is an optional parameter.

    ", - "CreateTrafficPolicyInstanceRequest$HostedZoneId": "

    The ID of the hosted zone in which you want Amazon Route 53 to create resource record sets by using the configuration in a traffic policy.

    ", - "DelegationSet$Id": null, - "DeleteHostedZoneRequest$Id": "

    The ID of the hosted zone you want to delete.

    ", - "DeleteReusableDelegationSetRequest$Id": "

    The ID of the reusable delegation set you want to delete.

    ", - "DisassociateVPCFromHostedZoneRequest$HostedZoneId": "

    The ID of the hosted zone you want to disassociate your VPC from.

    Note that you cannot disassociate the last VPC from a hosted zone.

    ", - "GetChangeDetailsRequest$Id": "

    The ID of the change batch request. The value that you specify here is the value that ChangeResourceRecordSets returned in the Id element when you submitted the request.

    ", - "GetChangeRequest$Id": "

    The ID of the change batch request. The value that you specify here is the value that ChangeResourceRecordSets returned in the Id element when you submitted the request.

    ", - "GetHostedZoneRequest$Id": "

    The ID of the hosted zone for which you want to get a list of the name servers in the delegation set.

    ", - "GetReusableDelegationSetRequest$Id": "

    The ID of the reusable delegation set for which you want to get a list of the name server.

    ", - "HostedZone$Id": "

    The ID of the specified hosted zone.

    ", - "ListChangeBatchesByHostedZoneRequest$HostedZoneId": "

    The ID of the hosted zone that you want to see changes for.

    ", - "ListChangeBatchesByRRSetRequest$HostedZoneId": "

    The ID of the hosted zone that you want to see changes for.

    ", - "ListHostedZonesByNameRequest$HostedZoneId": "

    If the request returned more than one page of results, submit another request and specify the value of NextDNSName and NextHostedZoneId from the last response in the DNSName and HostedZoneId parameters to get the next page of results.

    ", - "ListHostedZonesByNameResponse$HostedZoneId": "

    The HostedZoneId value sent in the request.

    ", - "ListHostedZonesByNameResponse$NextHostedZoneId": "

    If ListHostedZonesByNameResponse$IsTruncated is true, there are more hosted zones associated with the current AWS account. To get the next page of results, make another request to ListHostedZonesByName. Specify the value of ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

    ", - "ListHostedZonesRequest$DelegationSetId": null, - "ListResourceRecordSetsRequest$HostedZoneId": "

    The ID of the hosted zone that contains the resource record sets that you want to get.

    ", - "ListTrafficPolicyInstancesByHostedZoneRequest$HostedZoneId": "

    The ID of the hosted zone for which you want to list traffic policy instances.

    ", - "ListTrafficPolicyInstancesByPolicyRequest$HostedZoneIdMarker": "

    For the first request to ListTrafficPolicyInstancesByPolicy, omit this value.

    If the value of IsTruncated in the previous response was true, HostedZoneIdMarker is the ID of the hosted zone for the first traffic policy instance in the next group of MaxItems traffic policy instances.

    If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get for this hosted zone.

    If the value of IsTruncated in the previous response was false, omit this value.

    ", - "ListTrafficPolicyInstancesByPolicyResponse$HostedZoneIdMarker": "

    If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "ListTrafficPolicyInstancesRequest$HostedZoneIdMarker": "

    For the first request to ListTrafficPolicyInstances, omit this value.

    If the value of IsTruncated in the previous response was true, you have more traffic policy instances. To get the next group of MaxItems traffic policy instances, submit another ListTrafficPolicyInstances request. For the value of HostedZoneIdMarker, specify the value of HostedZoneIdMarker from the previous response, which is the hosted zone ID of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get.

    ", - "ListTrafficPolicyInstancesResponse$HostedZoneIdMarker": "

    If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of the first traffic policy instance in the next group of MaxItems traffic policy instances.

    ", - "TrafficPolicyInstance$HostedZoneId": null, - "UpdateHostedZoneCommentRequest$Id": "

    The ID of the hosted zone you want to update.

    " - } - }, - "ResourcePath": { - "base": null, - "refs": { - "HealthCheckConfig$ResourcePath": "

    Path to ping on the instance to check the health. Required for HTTP, HTTPS, HTTP_STR_MATCH, and HTTPS_STR_MATCH health checks. The HTTP request is issued to the instance on the given port and path.

    ", - "UpdateHealthCheckRequest$ResourcePath": "

    The path that you want Amazon Route 53 to request when performing health checks. The path can be any value for which your endpoint will return an HTTP status code of 2xx or 3xx when the endpoint is healthy, for example the file /docs/route53-health-check.html.

    Specify this value only if you want to change it.

    " - } - }, - "ResourceRecord": { - "base": "

    A complex type that contains the value of the Value element for the current resource record set.

    ", - "refs": { - "ResourceRecords$member": null - } - }, - "ResourceRecordSet": { - "base": "

    A complex type that contains information about the current resource record set.

    ", - "refs": { - "Change$ResourceRecordSet": "

    Information about the resource record set to create or delete.

    ", - "ResourceRecordSets$member": null - } - }, - "ResourceRecordSetFailover": { - "base": null, - "refs": { - "ResourceRecordSet$Failover": "

    Failover resource record sets only: To configure failover, you add the Failover element to two resource record sets. For one resource record set, you specify PRIMARY as the value for Failover; for the other resource record set, you specify SECONDARY. In addition, you include the HealthCheckId element and specify the health check that you want Amazon Route 53 to perform for each resource record set.

    You can create failover and failover alias resource record sets only in public hosted zones.

    Except where noted, the following failover behaviors assume that you have included the HealthCheckId element in both resource record sets:

    • When the primary resource record set is healthy, Amazon Route 53 responds to DNS queries with the applicable value from the primary resource record set regardless of the health of the secondary resource record set.
    • When the primary resource record set is unhealthy and the secondary resource record set is healthy, Amazon Route 53 responds to DNS queries with the applicable value from the secondary resource record set.
    • When the secondary resource record set is unhealthy, Amazon Route 53 responds to DNS queries with the applicable value from the primary resource record set regardless of the health of the primary resource record set.
    • If you omit the HealthCheckId element for the secondary resource record set, and if the primary resource record set is unhealthy, Amazon Route 53 always responds to DNS queries with the applicable value from the secondary resource record set. This is true regardless of the health of the associated endpoint.

    You cannot create non-failover resource record sets that have the same values for the Name and Type elements as failover resource record sets.

    For failover alias resource record sets, you must also include the EvaluateTargetHealth element and set the value to true.

    For more information about configuring failover for Amazon Route 53, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.

    Valid values: PRIMARY | SECONDARY

    " - } - }, - "ResourceRecordSetIdentifier": { - "base": null, - "refs": { - "ListChangeBatchesByRRSetRequest$SetIdentifier": "

    The identifier of the RRSet that you want to see changes for.

    ", - "ListResourceRecordSetsRequest$StartRecordIdentifier": "

    Weighted resource record sets only: If results were truncated for a given DNS name and type, specify the value of ListResourceRecordSetsResponse$NextRecordIdentifier from the previous response to get the next resource record set that has the current DNS name and type.

    ", - "ListResourceRecordSetsResponse$NextRecordIdentifier": "

    Weighted resource record sets only: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.

    ", - "ResourceRecordSet$SetIdentifier": "

    Weighted, Latency, Geo, and Failover resource record sets only: An identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type. The value of SetIdentifier must be unique for each resource record set that has the same combination of DNS name and type.

    " - } - }, - "ResourceRecordSetRegion": { - "base": null, - "refs": { - "ResourceRecordSet$Region": "

    Latency-based resource record sets only: The Amazon EC2 region where the resource that is specified in this resource record set resides. The resource typically is an AWS resource, such as an Amazon EC2 instance or an ELB load balancer, and is referred to by an IP address or a DNS domain name, depending on the record type.

    You can create latency and latency alias resource record sets only in public hosted zones.

    When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Amazon Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 region. Amazon Route 53 then returns the value that is associated with the selected resource record set.

    Note the following:

    • You can only specify one ResourceRecord per latency resource record set.
    • You can only create one latency resource record set for each Amazon EC2 region.
    • You are not required to create latency resource record sets for all Amazon EC2 regions. Amazon Route 53 will choose the region with the best latency from among the regions for which you create latency resource record sets.
    • You cannot create non-latency resource record sets that have the same values for the Name and Type elements as latency resource record sets.
    " - } - }, - "ResourceRecordSetWeight": { - "base": null, - "refs": { - "ResourceRecordSet$Weight": "

    Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines the proportion of DNS queries that Amazon Route 53 responds to using the current resource record set. Amazon Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Amazon Route 53 then responds to queries based on the ratio of a resource's weight to the total. Note the following:

    • You must specify a value for the Weight element for every weighted resource record set.
    • You can only specify one ResourceRecord per weighted resource record set.
    • You cannot create latency, failover, or geolocation resource record sets that have the same values for the Name and Type elements as weighted resource record sets.
    • You can create a maximum of 100 weighted resource record sets that have the same values for the Name and Type elements.
    • For weighted (but not weighted alias) resource record sets, if you set Weight to 0 for a resource record set, Amazon Route 53 never responds to queries with the applicable value for that resource record set. However, if you set Weight to 0 for all resource record sets that have the same combination of DNS name and type, traffic is routed to all resources with equal probability.

      The effect of setting Weight to 0 is different when you associate health checks with weighted resource record sets. For more information, see Options for Configuring Amazon Route 53 Active-Active and Active-Passive Failover in the Amazon Route 53 Developer Guide.

    " - } - }, - "ResourceRecordSets": { - "base": null, - "refs": { - "ListResourceRecordSetsResponse$ResourceRecordSets": "

    A complex type that contains information about the resource record sets that are returned by the request.

    " - } - }, - "ResourceRecords": { - "base": null, - "refs": { - "ResourceRecordSet$ResourceRecords": "

    A complex type that contains the resource records for the current resource record set.

    " - } - }, - "ResourceTagSet": { - "base": "

    A complex type containing a resource and its associated tags.

    ", - "refs": { - "ListTagsForResourceResponse$ResourceTagSet": "

    A ResourceTagSet containing tags associated with the specified resource.

    ", - "ResourceTagSetList$member": null - } - }, - "ResourceTagSetList": { - "base": null, - "refs": { - "ListTagsForResourcesResponse$ResourceTagSets": "

    A list of ResourceTagSets containing tags associated with the specified resources.

    " - } - }, - "ResourceURI": { - "base": null, - "refs": { - "CreateHealthCheckResponse$Location": "

    The unique URL representing the new health check.

    ", - "CreateHostedZoneResponse$Location": "

    The unique URL representing the new hosted zone.

    ", - "CreateReusableDelegationSetResponse$Location": "

    The unique URL representing the new reusbale delegation set.

    ", - "CreateTrafficPolicyInstanceResponse$Location": "

    A unique URL that represents a new traffic policy instance.

    ", - "CreateTrafficPolicyResponse$Location": null, - "CreateTrafficPolicyVersionResponse$Location": null - } - }, - "SearchString": { - "base": null, - "refs": { - "HealthCheckConfig$SearchString": "

    A string to search for in the body of a health check response. Required for HTTP_STR_MATCH and HTTPS_STR_MATCH health checks. Amazon Route 53 considers case when searching for SearchString in the response body.

    ", - "UpdateHealthCheckRequest$SearchString": "

    If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that you want Amazon Route 53 to search for in the response body from the specified resource. If the string appears in the response body, Amazon Route 53 considers the resource healthy. Amazon Route 53 considers case when searching for SearchString in the response body.

    Specify this value only if you want to change it.

    " - } - }, - "Statistic": { - "base": null, - "refs": { - "CloudWatchAlarmConfiguration$Statistic": "

    The statistic to apply to the CloudWatch metric that is associated with the CloudWatch alarm.

    Valid Values are SampleCount, Average, Sum, Minimum and Maximum

    " - } - }, - "Status": { - "base": null, - "refs": { - "StatusReport$Status": "

    The observed health check status.

    " - } - }, - "StatusReport": { - "base": "

    A complex type that contains information about the health check status for the current observation.

    ", - "refs": { - "HealthCheckObservation$StatusReport": "

    A complex type that contains information about the health check status for the current observation.

    " - } - }, - "TTL": { - "base": null, - "refs": { - "CreateTrafficPolicyInstanceRequest$TTL": "

    The TTL that you want Amazon Route 53 to assign to all of the resource record sets that it creates in the specified hosted zone.

    ", - "ResourceRecordSet$TTL": "

    The cache time to live for the current resource record set. Note the following:

    • If you're creating an alias resource record set, omit TTL. Amazon Route 53 uses the value of TTL for the alias target.
    • If you're associating this resource record set with a health check (if you're adding a HealthCheckId element), we recommend that you specify a TTL of 60 seconds or less so clients respond quickly to changes in health status.
    • All of the resource record sets in a group of weighted, latency, geolocation, or failover resource record sets must have the same value for TTL.
    • If a group of weighted resource record sets includes one or more weighted alias resource record sets for which the alias target is an ELB load balancer, we recommend that you specify a TTL of 60 seconds for all of the non-alias weighted resource record sets that have the same name and type. Values other than 60 seconds (the TTL for load balancers) will change the effect of the values that you specify for Weight.
    ", - "TrafficPolicyInstance$TTL": null, - "UpdateTrafficPolicyInstanceRequest$TTL": "

    The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.

    " - } - }, - "Tag": { - "base": "

    A single tag containing a key and value.

    ", - "refs": { - "TagList$member": null - } - }, - "TagKey": { - "base": null, - "refs": { - "Tag$Key": "

    The key for a Tag.

    ", - "TagKeyList$member": null - } - }, - "TagKeyList": { - "base": null, - "refs": { - "ChangeTagsForResourceRequest$RemoveTagKeys": "

    A list of Tag keys that you want to remove from the specified resource.

    " - } - }, - "TagList": { - "base": null, - "refs": { - "ChangeTagsForResourceRequest$AddTags": "

    A complex type that contains a list of Tag elements. Each Tag element identifies a tag that you want to add or update for the specified resource.

    ", - "ResourceTagSet$Tags": "

    The tags associated with the specified resource.

    " - } - }, - "TagResourceId": { - "base": null, - "refs": { - "ChangeTagsForResourceRequest$ResourceId": "

    The ID of the resource for which you want to add, change, or delete tags.

    ", - "ListTagsForResourceRequest$ResourceId": "

    The ID of the resource for which you want to retrieve tags.

    ", - "ResourceTagSet$ResourceId": "

    The ID for the specified resource.

    ", - "TagResourceIdList$member": null - } - }, - "TagResourceIdList": { - "base": null, - "refs": { - "ListTagsForResourcesRequest$ResourceIds": "

    A complex type that contains the ResourceId element for each resource for which you want to get a list of tags.

    " - } - }, - "TagResourceType": { - "base": null, - "refs": { - "ChangeTagsForResourceRequest$ResourceType": "

    The type of the resource.

    - The resource type for health checks is healthcheck.

    - The resource type for hosted zones is hostedzone.

    ", - "ListTagsForResourceRequest$ResourceType": "

    The type of the resource.

    - The resource type for health checks is healthcheck.

    - The resource type for hosted zones is hostedzone.

    ", - "ListTagsForResourcesRequest$ResourceType": "

    The type of the resources.

    - The resource type for health checks is healthcheck.

    - The resource type for hosted zones is hostedzone.

    ", - "ResourceTagSet$ResourceType": "

    The type of the resource.

    - The resource type for health checks is healthcheck.

    - The resource type for hosted zones is hostedzone.

    " - } - }, - "TagValue": { - "base": null, - "refs": { - "Tag$Value": "

    The value for a Tag.

    " - } - }, - "Threshold": { - "base": null, - "refs": { - "CloudWatchAlarmConfiguration$Threshold": "

    The value that the metric is compared with to determine the state of the alarm. For example, if you want the health check to fail if the average TCP connection time is greater than 500 milliseconds for more than 60 seconds, the threshold is 500.

    " - } - }, - "ThrottlingException": { - "base": null, - "refs": { - } - }, - "TimeStamp": { - "base": null, - "refs": { - "ChangeBatchRecord$SubmittedAt": "

    The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC).

    ", - "ChangeInfo$SubmittedAt": "

    The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC).

    ", - "StatusReport$CheckedTime": "

    The date and time the health check status was observed, in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The Z after the time indicates that the time is listed in Coordinated Universal Time (UTC).

    " - } - }, - "TooManyHealthChecks": { - "base": null, - "refs": { - } - }, - "TooManyHostedZones": { - "base": "

    This error indicates that you've reached the maximum number of hosted zones that can be created for the current AWS account. You can request an increase to the limit on the Contact Us page.

    ", - "refs": { - } - }, - "TooManyTrafficPolicies": { - "base": "

    You've created the maximum number of traffic policies that can be created for the current AWS account. You can request an increase to the limit on the Contact Us page.

    ", - "refs": { - } - }, - "TooManyTrafficPolicyInstances": { - "base": "

    You've created the maximum number of traffic policy instances that can be created for the current AWS account. You can request an increase to the limit on the Contact Us page.

    ", - "refs": { - } - }, - "TrafficPolicies": { - "base": null, - "refs": { - "ListTrafficPolicyVersionsResponse$TrafficPolicies": "

    A list that contains one TrafficPolicy element for each traffic policy version that is associated with the specified traffic policy.

    " - } - }, - "TrafficPolicy": { - "base": null, - "refs": { - "CreateTrafficPolicyResponse$TrafficPolicy": "

    A complex type that contains settings for the new traffic policy.

    ", - "CreateTrafficPolicyVersionResponse$TrafficPolicy": "

    A complex type that contains settings for the new version of the traffic policy.

    ", - "GetTrafficPolicyResponse$TrafficPolicy": "

    A complex type that contains settings for the specified traffic policy.

    ", - "TrafficPolicies$member": null, - "UpdateTrafficPolicyCommentResponse$TrafficPolicy": "

    A complex type that contains settings for the specified traffic policy.

    " - } - }, - "TrafficPolicyAlreadyExists": { - "base": "

    A traffic policy that has the same value for Name already exists.

    ", - "refs": { - } - }, - "TrafficPolicyComment": { - "base": null, - "refs": { - "CreateTrafficPolicyRequest$Comment": "

    Any comments that you want to include about the traffic policy.

    ", - "CreateTrafficPolicyVersionRequest$Comment": "

    Any comments that you want to include about the new traffic policy version.

    ", - "TrafficPolicy$Comment": null, - "UpdateTrafficPolicyCommentRequest$Comment": "

    The new comment for the specified traffic policy and version.

    " - } - }, - "TrafficPolicyDocument": { - "base": null, - "refs": { - "CreateTrafficPolicyRequest$Document": "

    The definition of this traffic policy in JSON format.

    ", - "CreateTrafficPolicyVersionRequest$Document": "

    The definition of a new traffic policy version, in JSON format. You must specify the full definition of the new traffic policy. You cannot specify just the differences between the new version and a previous version.

    ", - "TrafficPolicy$Document": null - } - }, - "TrafficPolicyId": { - "base": null, - "refs": { - "CreateTrafficPolicyInstanceRequest$TrafficPolicyId": "

    The ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

    ", - "CreateTrafficPolicyVersionRequest$Id": "

    The ID of the traffic policy for which you want to create a new version.

    ", - "DeleteTrafficPolicyRequest$Id": "

    The ID of the traffic policy that you want to delete.

    ", - "GetTrafficPolicyRequest$Id": "

    The ID of the traffic policy that you want to get information about.

    ", - "ListTrafficPoliciesRequest$TrafficPolicyIdMarker": "

    For your first request to ListTrafficPolicies, do not include the TrafficPolicyIdMarker parameter.

    If you have more traffic policies than the value of MaxItems, ListTrafficPolicies returns only the first MaxItems traffic policies. To get the next group of MaxItems policies, submit another request to ListTrafficPolicies. For the value of TrafficPolicyIdMarker, specify the value of the TrafficPolicyIdMarker element that was returned in the previous response.

    Policies are listed in the order in which they were created.

    ", - "ListTrafficPoliciesResponse$TrafficPolicyIdMarker": "

    If the value of IsTruncated is true, TrafficPolicyIdMarker is the ID of the first traffic policy in the next group of MaxItems traffic policies.

    ", - "ListTrafficPolicyInstancesByPolicyRequest$TrafficPolicyId": "

    The ID of the traffic policy for which you want to list traffic policy instances.

    ", - "ListTrafficPolicyVersionsRequest$Id": "

    Specify the value of Id of the traffic policy for which you want to list all versions.

    ", - "TrafficPolicy$Id": null, - "TrafficPolicyInstance$TrafficPolicyId": null, - "TrafficPolicySummary$Id": null, - "UpdateTrafficPolicyCommentRequest$Id": "

    The value of Id for the traffic policy for which you want to update the comment.

    ", - "UpdateTrafficPolicyInstanceRequest$TrafficPolicyId": "

    The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

    " - } - }, - "TrafficPolicyInUse": { - "base": "

    One or more traffic policy instances were created by using the specified traffic policy.

    ", - "refs": { - } - }, - "TrafficPolicyInstance": { - "base": null, - "refs": { - "CreateTrafficPolicyInstanceResponse$TrafficPolicyInstance": "

    A complex type that contains settings for the new traffic policy instance.

    ", - "GetTrafficPolicyInstanceResponse$TrafficPolicyInstance": "

    A complex type that contains settings for the traffic policy instance.

    ", - "TrafficPolicyInstances$member": null, - "UpdateTrafficPolicyInstanceResponse$TrafficPolicyInstance": "

    A complex type that contains settings for the updated traffic policy instance.

    " - } - }, - "TrafficPolicyInstanceAlreadyExists": { - "base": "

    Traffic policy instance with given Id already exists.

    ", - "refs": { - } - }, - "TrafficPolicyInstanceCount": { - "base": null, - "refs": { - "GetTrafficPolicyInstanceCountResponse$TrafficPolicyInstanceCount": "

    The number of traffic policy instances that are associated with the current AWS account.

    " - } - }, - "TrafficPolicyInstanceId": { - "base": null, - "refs": { - "DeleteTrafficPolicyInstanceRequest$Id": "

    The ID of the traffic policy instance that you want to delete.

    When you delete a traffic policy instance, Amazon Route 53 also deletes all of the resource record sets that were created when you created the traffic policy instance.", - "GetTrafficPolicyInstanceRequest$Id": "

    The ID of the traffic policy instance that you want to get information about.

    ", - "ResourceRecordSet$TrafficPolicyInstanceId": null, - "TrafficPolicyInstance$Id": null, - "UpdateTrafficPolicyInstanceRequest$Id": "

    The ID of the traffic policy instance that you want to update.

    " - } - }, - "TrafficPolicyInstanceState": { - "base": null, - "refs": { - "TrafficPolicyInstance$State": null - } - }, - "TrafficPolicyInstances": { - "base": null, - "refs": { - "ListTrafficPolicyInstancesByHostedZoneResponse$TrafficPolicyInstances": "

    A list that contains one TrafficPolicyInstance element for each traffic policy instance that matches the elements in the request.

    ", - "ListTrafficPolicyInstancesByPolicyResponse$TrafficPolicyInstances": "

    A list that contains one TrafficPolicyInstance element for each traffic policy instance that matches the elements in the request.

    ", - "ListTrafficPolicyInstancesResponse$TrafficPolicyInstances": "

    A list that contains one TrafficPolicyInstance element for each traffic policy instance that matches the elements in the request.

    " - } - }, - "TrafficPolicyName": { - "base": null, - "refs": { - "CreateTrafficPolicyRequest$Name": "

    The name of the traffic policy.

    ", - "TrafficPolicy$Name": null, - "TrafficPolicySummary$Name": null - } - }, - "TrafficPolicySummaries": { - "base": null, - "refs": { - "ListTrafficPoliciesResponse$TrafficPolicySummaries": "

    A list that contains one TrafficPolicySummary element for each traffic policy that was created by the current AWS account.

    " - } - }, - "TrafficPolicySummary": { - "base": null, - "refs": { - "TrafficPolicySummaries$member": null - } - }, - "TrafficPolicyVersion": { - "base": null, - "refs": { - "CreateTrafficPolicyInstanceRequest$TrafficPolicyVersion": "

    The version of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

    ", - "DeleteTrafficPolicyRequest$Version": "

    The version number of the traffic policy that you want to delete.

    ", - "GetTrafficPolicyRequest$Version": "

    The version number of the traffic policy that you want to get information about.

    ", - "ListTrafficPolicyInstancesByPolicyRequest$TrafficPolicyVersion": "

    The version of the traffic policy for which you want to list traffic policy instances. The version must be associated with the traffic policy that is specified by TrafficPolicyId.

    ", - "TrafficPolicy$Version": null, - "TrafficPolicyInstance$TrafficPolicyVersion": null, - "TrafficPolicySummary$LatestVersion": null, - "TrafficPolicySummary$TrafficPolicyCount": null, - "UpdateTrafficPolicyCommentRequest$Version": "

    The value of Version for the traffic policy for which you want to update the comment.

    ", - "UpdateTrafficPolicyInstanceRequest$TrafficPolicyVersion": "

    The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

    " - } - }, - "TrafficPolicyVersionMarker": { - "base": null, - "refs": { - "ListTrafficPolicyVersionsRequest$TrafficPolicyVersionMarker": "

    For your first request to ListTrafficPolicyVersions, do not include the TrafficPolicyVersionMarker parameter.

    If you have more traffic policy versions than the value of MaxItems, ListTrafficPolicyVersions returns only the first group of MaxItems versions. To get the next group of MaxItems traffic policy versions, submit another request to ListTrafficPolicyVersions. For the value of TrafficPolicyVersionMarker, specify the value of the TrafficPolicyVersionMarker element that was returned in the previous response.

    Traffic policy versions are listed in sequential order.

    ", - "ListTrafficPolicyVersionsResponse$TrafficPolicyVersionMarker": "

    If IsTruncated is true, the value of TrafficPolicyVersionMarker identifies the first traffic policy in the next group of MaxItems traffic policies. Call ListTrafficPolicyVersions again and specify the value of TrafficPolicyVersionMarker in the TrafficPolicyVersionMarker request parameter.

    This element is present only if IsTruncated is true.

    " - } - }, - "UpdateHealthCheckRequest": { - "base": "

    >A complex type that contains information about the request to update a health check.

    ", - "refs": { - } - }, - "UpdateHealthCheckResponse": { - "base": null, - "refs": { - } - }, - "UpdateHostedZoneCommentRequest": { - "base": "

    A complex type that contains information about the request to update a hosted zone comment.

    ", - "refs": { - } - }, - "UpdateHostedZoneCommentResponse": { - "base": "

    A complex type containing information about the specified hosted zone after the update.

    ", - "refs": { - } - }, - "UpdateTrafficPolicyCommentRequest": { - "base": "

    A complex type that contains information about the traffic policy for which you want to update the comment.

    ", - "refs": { - } - }, - "UpdateTrafficPolicyCommentResponse": { - "base": "

    A complex type that contains the response information for the traffic policy.

    ", - "refs": { - } - }, - "UpdateTrafficPolicyInstanceRequest": { - "base": "

    A complex type that contains information about the resource record sets that you want to update based on a specified traffic policy instance.

    ", - "refs": { - } - }, - "UpdateTrafficPolicyInstanceResponse": { - "base": "

    A complex type that contains information about the resource record sets that Amazon Route 53 created based on a specified traffic policy.

    ", - "refs": { - } - }, - "VPC": { - "base": null, - "refs": { - "AssociateVPCWithHostedZoneRequest$VPC": "

    The VPC that you want your hosted zone to be associated with.

    ", - "CreateHostedZoneRequest$VPC": "

    The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.

    ", - "CreateHostedZoneResponse$VPC": null, - "DisassociateVPCFromHostedZoneRequest$VPC": "

    The VPC that you want your hosted zone to be disassociated from.

    ", - "VPCs$member": null - } - }, - "VPCAssociationNotFound": { - "base": "

    The VPC you specified is not currently associated with the hosted zone.

    ", - "refs": { - } - }, - "VPCId": { - "base": "

    A VPC ID

    ", - "refs": { - "VPC$VPCId": null - } - }, - "VPCRegion": { - "base": null, - "refs": { - "VPC$VPCRegion": null - } - }, - "VPCs": { - "base": "

    A list of VPCs

    ", - "refs": { - "GetHostedZoneResponse$VPCs": "

    A complex type that contains information about VPCs associated with the specified hosted zone.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/waiters-2.json deleted file mode 100644 index 94aad399e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/waiters-2.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 2, - "waiters": { - "ResourceRecordSetsChanged": { - "delay": 30, - "maxAttempts": 60, - "operation": "GetChange", - "acceptors": [ - { - "matcher": "path", - "expected": "INSYNC", - "argument": "ChangeInfo.Status", - "state": "success" - } - ] - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/examples-1.json deleted file mode 100644 index ec813934f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/examples-1.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "version": "1.0", - "examples": { - "CreateQueue": [ - { - "input": { - "QueueName": "MyQueue" - }, - "output": { - "QueueUrl": "https://queue.amazonaws.com/012345678910/MyQueue" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following operation creates an SQS queue named MyQueue.", - "id": "create-an-sqs-queue-1445915686197", - "title": "Create an SQS queue" - } - ], - "GetQueueUrl": [ - { - "input": { - "QueueName": "MyQueue", - "QueueOwnerAWSAccountId": "12345678910" - }, - "output": { - "QueueUrl": "https://queue.amazonaws.com/12345678910/MyQueue" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following example retrieves the queue ARN.", - "id": "retrieve-queue-attributes-from-an-sqs-queue-1445915930574", - "title": "Retrieve queue attributes from an SQS queue" - } - ] - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/api-2.json deleted file mode 100644 index cdd3ae412..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/api-2.json +++ /dev/null @@ -1,1323 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2014-11-06", - "endpointPrefix":"ssm", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"Amazon SSM", - "serviceFullName":"Amazon Simple Systems Management Service", - "signatureVersion":"v4", - "targetPrefix":"AmazonSSM" - }, - "operations":{ - "CancelCommand":{ - "name":"CancelCommand", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CancelCommandRequest"}, - "output":{"shape":"CancelCommandResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidCommandId"}, - {"shape":"InvalidInstanceId"}, - {"shape":"DuplicateInstanceId"} - ] - }, - "CreateAssociation":{ - "name":"CreateAssociation", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateAssociationRequest"}, - "output":{"shape":"CreateAssociationResult"}, - "errors":[ - {"shape":"AssociationAlreadyExists"}, - {"shape":"AssociationLimitExceeded"}, - {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"}, - {"shape":"InvalidInstanceId"}, - {"shape":"UnsupportedPlatformType"}, - {"shape":"InvalidParameters"} - ] - }, - "CreateAssociationBatch":{ - "name":"CreateAssociationBatch", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateAssociationBatchRequest"}, - "output":{"shape":"CreateAssociationBatchResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"}, - {"shape":"InvalidInstanceId"}, - {"shape":"InvalidParameters"}, - {"shape":"DuplicateInstanceId"}, - {"shape":"AssociationLimitExceeded"}, - {"shape":"UnsupportedPlatformType"} - ] - }, - "CreateDocument":{ - "name":"CreateDocument", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateDocumentRequest"}, - "output":{"shape":"CreateDocumentResult"}, - "errors":[ - {"shape":"DocumentAlreadyExists"}, - {"shape":"MaxDocumentSizeExceeded"}, - {"shape":"InternalServerError"}, - {"shape":"InvalidDocumentContent"}, - {"shape":"DocumentLimitExceeded"} - ] - }, - "DeleteAssociation":{ - "name":"DeleteAssociation", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteAssociationRequest"}, - "output":{"shape":"DeleteAssociationResult"}, - "errors":[ - {"shape":"AssociationDoesNotExist"}, - {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"}, - {"shape":"InvalidInstanceId"}, - {"shape":"TooManyUpdates"} - ] - }, - "DeleteDocument":{ - "name":"DeleteDocument", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteDocumentRequest"}, - "output":{"shape":"DeleteDocumentResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"}, - {"shape":"InvalidDocumentOperation"}, - {"shape":"AssociatedInstances"} - ] - }, - "DescribeAssociation":{ - "name":"DescribeAssociation", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeAssociationRequest"}, - "output":{"shape":"DescribeAssociationResult"}, - "errors":[ - {"shape":"AssociationDoesNotExist"}, - {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"}, - {"shape":"InvalidInstanceId"} - ] - }, - "DescribeDocument":{ - "name":"DescribeDocument", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDocumentRequest"}, - "output":{"shape":"DescribeDocumentResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"} - ] - }, - "DescribeDocumentPermission":{ - "name":"DescribeDocumentPermission", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeDocumentPermissionRequest"}, - "output":{"shape":"DescribeDocumentPermissionResponse"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"}, - {"shape":"InvalidPermissionType"} - ] - }, - "DescribeInstanceInformation":{ - "name":"DescribeInstanceInformation", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeInstanceInformationRequest"}, - "output":{"shape":"DescribeInstanceInformationResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidInstanceId"}, - {"shape":"InvalidNextToken"}, - {"shape":"InvalidInstanceInformationFilterValue"}, - {"shape":"InvalidFilterKey"} - ] - }, - "GetDocument":{ - "name":"GetDocument", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetDocumentRequest"}, - "output":{"shape":"GetDocumentResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"} - ] - }, - "ListAssociations":{ - "name":"ListAssociations", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListAssociationsRequest"}, - "output":{"shape":"ListAssociationsResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidNextToken"} - ] - }, - "ListCommandInvocations":{ - "name":"ListCommandInvocations", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListCommandInvocationsRequest"}, - "output":{"shape":"ListCommandInvocationsResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidCommandId"}, - {"shape":"InvalidInstanceId"}, - {"shape":"InvalidFilterKey"}, - {"shape":"InvalidNextToken"} - ] - }, - "ListCommands":{ - "name":"ListCommands", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListCommandsRequest"}, - "output":{"shape":"ListCommandsResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidCommandId"}, - {"shape":"InvalidInstanceId"}, - {"shape":"InvalidFilterKey"}, - {"shape":"InvalidNextToken"} - ] - }, - "ListDocuments":{ - "name":"ListDocuments", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListDocumentsRequest"}, - "output":{"shape":"ListDocumentsResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidNextToken"}, - {"shape":"InvalidFilterKey"} - ] - }, - "ModifyDocumentPermission":{ - "name":"ModifyDocumentPermission", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ModifyDocumentPermissionRequest"}, - "output":{"shape":"ModifyDocumentPermissionResponse"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidDocument"}, - {"shape":"InvalidPermissionType"}, - {"shape":"DocumentPermissionLimit"}, - {"shape":"DocumentLimitExceeded"} - ] - }, - "SendCommand":{ - "name":"SendCommand", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"SendCommandRequest"}, - "output":{"shape":"SendCommandResult"}, - "errors":[ - {"shape":"DuplicateInstanceId"}, - {"shape":"InternalServerError"}, - {"shape":"InvalidInstanceId"}, - {"shape":"InvalidDocument"}, - {"shape":"InvalidOutputFolder"}, - {"shape":"InvalidParameters"}, - {"shape":"UnsupportedPlatformType"}, - {"shape":"MaxDocumentSizeExceeded"} - ] - }, - "UpdateAssociationStatus":{ - "name":"UpdateAssociationStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateAssociationStatusRequest"}, - "output":{"shape":"UpdateAssociationStatusResult"}, - "errors":[ - {"shape":"InternalServerError"}, - {"shape":"InvalidInstanceId"}, - {"shape":"InvalidDocument"}, - {"shape":"AssociationDoesNotExist"}, - {"shape":"StatusUnchanged"}, - {"shape":"TooManyUpdates"} - ] - } - }, - "shapes":{ - "AccountId":{ - "type":"string", - "pattern":"(?i)all|[0-9]{12}" - }, - "AccountIdList":{ - "type":"list", - "member":{ - "shape":"AccountId", - "locationName":"AccountId" - }, - "max":20 - }, - "AssociatedInstances":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "Association":{ - "type":"structure", - "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"} - } - }, - "AssociationAlreadyExists":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "AssociationDescription":{ - "type":"structure", - "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"}, - "Date":{"shape":"DateTime"}, - "Status":{"shape":"AssociationStatus"}, - "Parameters":{"shape":"Parameters"} - } - }, - "AssociationDescriptionList":{ - "type":"list", - "member":{ - "shape":"AssociationDescription", - "locationName":"AssociationDescription" - } - }, - "AssociationDoesNotExist":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "AssociationFilter":{ - "type":"structure", - "required":[ - "key", - "value" - ], - "members":{ - "key":{"shape":"AssociationFilterKey"}, - "value":{"shape":"AssociationFilterValue"} - } - }, - "AssociationFilterKey":{ - "type":"string", - "enum":[ - "InstanceId", - "Name" - ] - }, - "AssociationFilterList":{ - "type":"list", - "member":{ - "shape":"AssociationFilter", - "locationName":"AssociationFilter" - }, - "min":1 - }, - "AssociationFilterValue":{ - "type":"string", - "min":1 - }, - "AssociationLimitExceeded":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "AssociationList":{ - "type":"list", - "member":{ - "shape":"Association", - "locationName":"Association" - } - }, - "AssociationStatus":{ - "type":"structure", - "required":[ - "Date", - "Name", - "Message" - ], - "members":{ - "Date":{"shape":"DateTime"}, - "Name":{"shape":"AssociationStatusName"}, - "Message":{"shape":"StatusMessage"}, - "AdditionalInfo":{"shape":"StatusAdditionalInfo"} - } - }, - "AssociationStatusName":{ - "type":"string", - "enum":[ - "Pending", - "Success", - "Failed" - ] - }, - "BatchErrorMessage":{"type":"string"}, - "Boolean":{"type":"boolean"}, - "CancelCommandRequest":{ - "type":"structure", - "required":["CommandId"], - "members":{ - "CommandId":{"shape":"CommandId"}, - "InstanceIds":{"shape":"InstanceIdList"} - } - }, - "CancelCommandResult":{ - "type":"structure", - "members":{ - } - }, - "Command":{ - "type":"structure", - "members":{ - "CommandId":{"shape":"CommandId"}, - "DocumentName":{"shape":"DocumentName"}, - "Comment":{"shape":"Comment"}, - "ExpiresAfter":{"shape":"DateTime"}, - "Parameters":{"shape":"Parameters"}, - "InstanceIds":{"shape":"InstanceIdList"}, - "RequestedDateTime":{"shape":"DateTime"}, - "Status":{"shape":"CommandStatus"}, - "OutputS3BucketName":{"shape":"S3BucketName"}, - "OutputS3KeyPrefix":{"shape":"S3KeyPrefix"} - } - }, - "CommandFilter":{ - "type":"structure", - "required":[ - "key", - "value" - ], - "members":{ - "key":{"shape":"CommandFilterKey"}, - "value":{"shape":"CommandFilterValue"} - } - }, - "CommandFilterKey":{ - "type":"string", - "enum":[ - "InvokedAfter", - "InvokedBefore", - "Status" - ] - }, - "CommandFilterList":{ - "type":"list", - "member":{"shape":"CommandFilter"}, - "max":3, - "min":1 - }, - "CommandFilterValue":{ - "type":"string", - "min":1 - }, - "CommandId":{ - "type":"string", - "max":36, - "min":36 - }, - "CommandInvocation":{ - "type":"structure", - "members":{ - "CommandId":{"shape":"CommandId"}, - "InstanceId":{"shape":"InstanceId"}, - "Comment":{"shape":"Comment"}, - "DocumentName":{"shape":"DocumentName"}, - "RequestedDateTime":{"shape":"DateTime"}, - "Status":{"shape":"CommandInvocationStatus"}, - "TraceOutput":{"shape":"InvocationTraceOutput"}, - "CommandPlugins":{"shape":"CommandPluginList"} - } - }, - "CommandInvocationList":{ - "type":"list", - "member":{"shape":"CommandInvocation"} - }, - "CommandInvocationStatus":{ - "type":"string", - "enum":[ - "Pending", - "InProgress", - "Cancelling", - "Success", - "TimedOut", - "Cancelled", - "Failed" - ] - }, - "CommandList":{ - "type":"list", - "member":{"shape":"Command"} - }, - "CommandMaxResults":{ - "type":"integer", - "max":50, - "min":1 - }, - "CommandPlugin":{ - "type":"structure", - "members":{ - "Name":{"shape":"CommandPluginName"}, - "Status":{"shape":"CommandPluginStatus"}, - "ResponseCode":{"shape":"ResponseCode"}, - "ResponseStartDateTime":{"shape":"DateTime"}, - "ResponseFinishDateTime":{"shape":"DateTime"}, - "Output":{"shape":"CommandPluginOutput"}, - "OutputS3BucketName":{"shape":"S3BucketName"}, - "OutputS3KeyPrefix":{"shape":"S3KeyPrefix"} - } - }, - "CommandPluginList":{ - "type":"list", - "member":{"shape":"CommandPlugin"} - }, - "CommandPluginName":{ - "type":"string", - "min":4 - }, - "CommandPluginOutput":{ - "type":"string", - "max":2500 - }, - "CommandPluginStatus":{ - "type":"string", - "enum":[ - "Pending", - "InProgress", - "Success", - "TimedOut", - "Cancelled", - "Failed" - ] - }, - "CommandStatus":{ - "type":"string", - "enum":[ - "Pending", - "InProgress", - "Cancelling", - "Success", - "TimedOut", - "Cancelled", - "Failed" - ] - }, - "Comment":{ - "type":"string", - "max":100 - }, - "CreateAssociationBatchRequest":{ - "type":"structure", - "required":["Entries"], - "members":{ - "Entries":{"shape":"CreateAssociationBatchRequestEntries"} - } - }, - "CreateAssociationBatchRequestEntries":{ - "type":"list", - "member":{ - "shape":"CreateAssociationBatchRequestEntry", - "locationName":"entries" - } - }, - "CreateAssociationBatchRequestEntry":{ - "type":"structure", - "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"}, - "Parameters":{"shape":"Parameters"} - } - }, - "CreateAssociationBatchResult":{ - "type":"structure", - "members":{ - "Successful":{"shape":"AssociationDescriptionList"}, - "Failed":{"shape":"FailedCreateAssociationList"} - } - }, - "CreateAssociationRequest":{ - "type":"structure", - "required":[ - "Name", - "InstanceId" - ], - "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"}, - "Parameters":{"shape":"Parameters"} - } - }, - "CreateAssociationResult":{ - "type":"structure", - "members":{ - "AssociationDescription":{"shape":"AssociationDescription"} - } - }, - "CreateDocumentRequest":{ - "type":"structure", - "required":[ - "Content", - "Name" - ], - "members":{ - "Content":{"shape":"DocumentContent"}, - "Name":{"shape":"DocumentName"} - } - }, - "CreateDocumentResult":{ - "type":"structure", - "members":{ - "DocumentDescription":{"shape":"DocumentDescription"} - } - }, - "DateTime":{"type":"timestamp"}, - "DeleteAssociationRequest":{ - "type":"structure", - "required":[ - "Name", - "InstanceId" - ], - "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"} - } - }, - "DeleteAssociationResult":{ - "type":"structure", - "members":{ - } - }, - "DeleteDocumentRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"DocumentName"} - } - }, - "DeleteDocumentResult":{ - "type":"structure", - "members":{ - } - }, - "DescribeAssociationRequest":{ - "type":"structure", - "required":[ - "Name", - "InstanceId" - ], - "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"} - } - }, - "DescribeAssociationResult":{ - "type":"structure", - "members":{ - "AssociationDescription":{"shape":"AssociationDescription"} - } - }, - "DescribeDocumentPermissionRequest":{ - "type":"structure", - "required":[ - "Name", - "PermissionType" - ], - "members":{ - "Name":{"shape":"DocumentName"}, - "PermissionType":{"shape":"DocumentPermissionType"} - } - }, - "DescribeDocumentPermissionResponse":{ - "type":"structure", - "members":{ - "AccountIds":{"shape":"AccountIdList"} - } - }, - "DescribeDocumentRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"DocumentARN"} - } - }, - "DescribeDocumentResult":{ - "type":"structure", - "members":{ - "Document":{"shape":"DocumentDescription"} - } - }, - "DescribeInstanceInformationRequest":{ - "type":"structure", - "members":{ - "InstanceInformationFilterList":{"shape":"InstanceInformationFilterList"}, - "MaxResults":{ - "shape":"MaxResultsEC2Compatible", - "box":true - }, - "NextToken":{"shape":"NextToken"} - } - }, - "DescribeInstanceInformationResult":{ - "type":"structure", - "members":{ - "InstanceInformationList":{"shape":"InstanceInformationList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "DescriptionInDocument":{"type":"string"}, - "DocumentARN":{ - "type":"string", - "pattern":"^[a-zA-Z0-9_\\-.:/]{3,128}$" - }, - "DocumentAlreadyExists":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "DocumentContent":{ - "type":"string", - "min":1 - }, - "DocumentDescription":{ - "type":"structure", - "members":{ - "Sha1":{"shape":"DocumentSha1"}, - "Hash":{"shape":"DocumentHash"}, - "HashType":{"shape":"DocumentHashType"}, - "Name":{"shape":"DocumentARN"}, - "Owner":{"shape":"DocumentOwner"}, - "CreatedDate":{"shape":"DateTime"}, - "Status":{"shape":"DocumentStatus"}, - "Description":{"shape":"DescriptionInDocument"}, - "Parameters":{"shape":"DocumentParameterList"}, - "PlatformTypes":{"shape":"PlatformTypeList"} - } - }, - "DocumentFilter":{ - "type":"structure", - "required":[ - "key", - "value" - ], - "members":{ - "key":{"shape":"DocumentFilterKey"}, - "value":{"shape":"DocumentFilterValue"} - } - }, - "DocumentFilterKey":{ - "type":"string", - "enum":[ - "Name", - "Owner", - "PlatformTypes" - ] - }, - "DocumentFilterList":{ - "type":"list", - "member":{ - "shape":"DocumentFilter", - "locationName":"DocumentFilter" - }, - "min":1 - }, - "DocumentFilterValue":{ - "type":"string", - "min":1 - }, - "DocumentHash":{ - "type":"string", - "max":256 - }, - "DocumentHashType":{ - "type":"string", - "enum":[ - "Sha256", - "Sha1" - ] - }, - "DocumentIdentifier":{ - "type":"structure", - "members":{ - "Name":{"shape":"DocumentARN"}, - "Owner":{"shape":"DocumentOwner"}, - "PlatformTypes":{"shape":"PlatformTypeList"} - } - }, - "DocumentIdentifierList":{ - "type":"list", - "member":{ - "shape":"DocumentIdentifier", - "locationName":"DocumentIdentifier" - } - }, - "DocumentLimitExceeded":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "DocumentName":{ - "type":"string", - "pattern":"^[a-zA-Z0-9_\\-.]{3,128}$" - }, - "DocumentOwner":{"type":"string"}, - "DocumentParameter":{ - "type":"structure", - "members":{ - "Name":{"shape":"DocumentParameterName"}, - "Type":{"shape":"DocumentParameterType"}, - "Description":{"shape":"DocumentParameterDescrption"}, - "DefaultValue":{"shape":"DocumentParameterDefaultValue"} - } - }, - "DocumentParameterDefaultValue":{"type":"string"}, - "DocumentParameterDescrption":{"type":"string"}, - "DocumentParameterList":{ - "type":"list", - "member":{ - "shape":"DocumentParameter", - "locationName":"DocumentParameter" - } - }, - "DocumentParameterName":{"type":"string"}, - "DocumentParameterType":{ - "type":"string", - "enum":[ - "String", - "StringList" - ] - }, - "DocumentPermissionLimit":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "DocumentPermissionType":{ - "type":"string", - "enum":["Share"] - }, - "DocumentSha1":{"type":"string"}, - "DocumentStatus":{ - "type":"string", - "enum":[ - "Creating", - "Active", - "Deleting" - ] - }, - "DuplicateInstanceId":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "FailedCreateAssociation":{ - "type":"structure", - "members":{ - "Entry":{"shape":"CreateAssociationBatchRequestEntry"}, - "Message":{"shape":"BatchErrorMessage"}, - "Fault":{"shape":"Fault"} - } - }, - "FailedCreateAssociationList":{ - "type":"list", - "member":{ - "shape":"FailedCreateAssociation", - "locationName":"FailedCreateAssociationEntry" - } - }, - "Fault":{ - "type":"string", - "enum":[ - "Client", - "Server", - "Unknown" - ] - }, - "GetDocumentRequest":{ - "type":"structure", - "required":["Name"], - "members":{ - "Name":{"shape":"DocumentARN"} - } - }, - "GetDocumentResult":{ - "type":"structure", - "members":{ - "Name":{"shape":"DocumentARN"}, - "Content":{"shape":"DocumentContent"} - } - }, - "InstanceId":{ - "type":"string", - "pattern":"(^i-(\\w{8}|\\w{17})$)|(^op-\\w{17}$)" - }, - "InstanceIdList":{ - "type":"list", - "member":{"shape":"InstanceId"}, - "max":50, - "min":1 - }, - "InstanceInformation":{ - "type":"structure", - "members":{ - "InstanceId":{"shape":"InstanceId"}, - "PingStatus":{"shape":"PingStatus"}, - "LastPingDateTime":{ - "shape":"DateTime", - "box":true - }, - "AgentVersion":{"shape":"Version"}, - "IsLatestVersion":{ - "shape":"Boolean", - "box":true - }, - "PlatformType":{"shape":"PlatformType"}, - "PlatformName":{"shape":"String"}, - "PlatformVersion":{"shape":"String"} - } - }, - "InstanceInformationFilter":{ - "type":"structure", - "required":[ - "key", - "valueSet" - ], - "members":{ - "key":{"shape":"InstanceInformationFilterKey"}, - "valueSet":{"shape":"InstanceInformationFilterValueSet"} - } - }, - "InstanceInformationFilterKey":{ - "type":"string", - "enum":[ - "InstanceIds", - "AgentVersion", - "PingStatus", - "PlatformTypes" - ] - }, - "InstanceInformationFilterList":{ - "type":"list", - "member":{ - "shape":"InstanceInformationFilter", - "locationName":"InstanceInformationFilter" - }, - "min":1 - }, - "InstanceInformationFilterValue":{ - "type":"string", - "min":1 - }, - "InstanceInformationFilterValueSet":{ - "type":"list", - "member":{ - "shape":"InstanceInformationFilterValue", - "locationName":"InstanceInformationFilterValue" - }, - "max":100, - "min":1 - }, - "InstanceInformationList":{ - "type":"list", - "member":{ - "shape":"InstanceInformation", - "locationName":"InstanceInformation" - } - }, - "InternalServerError":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "InvalidCommandId":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidDocument":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "InvalidDocumentContent":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "InvalidDocumentOperation":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "InvalidFilterKey":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidInstanceId":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "InvalidInstanceInformationFilterValue":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "InvalidNextToken":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidOutputFolder":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "InvalidParameters":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "InvalidPermissionType":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "InvocationTraceOutput":{ - "type":"string", - "max":2500 - }, - "ListAssociationsRequest":{ - "type":"structure", - "required":["AssociationFilterList"], - "members":{ - "AssociationFilterList":{"shape":"AssociationFilterList"}, - "MaxResults":{ - "shape":"MaxResults", - "box":true - }, - "NextToken":{"shape":"NextToken"} - } - }, - "ListAssociationsResult":{ - "type":"structure", - "members":{ - "Associations":{"shape":"AssociationList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "ListCommandInvocationsRequest":{ - "type":"structure", - "members":{ - "CommandId":{"shape":"CommandId"}, - "InstanceId":{"shape":"InstanceId"}, - "MaxResults":{ - "shape":"CommandMaxResults", - "box":true - }, - "NextToken":{"shape":"NextToken"}, - "Filters":{"shape":"CommandFilterList"}, - "Details":{"shape":"Boolean"} - } - }, - "ListCommandInvocationsResult":{ - "type":"structure", - "members":{ - "CommandInvocations":{"shape":"CommandInvocationList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "ListCommandsRequest":{ - "type":"structure", - "members":{ - "CommandId":{"shape":"CommandId"}, - "InstanceId":{"shape":"InstanceId"}, - "MaxResults":{ - "shape":"CommandMaxResults", - "box":true - }, - "NextToken":{"shape":"NextToken"}, - "Filters":{"shape":"CommandFilterList"} - } - }, - "ListCommandsResult":{ - "type":"structure", - "members":{ - "Commands":{"shape":"CommandList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "ListDocumentsMaxResults":{ - "type":"integer", - "max":50, - "min":1 - }, - "ListDocumentsRequest":{ - "type":"structure", - "members":{ - "DocumentFilterList":{"shape":"DocumentFilterList"}, - "MaxResults":{ - "shape":"ListDocumentsMaxResults", - "box":true - }, - "NextToken":{"shape":"NextToken"} - } - }, - "ListDocumentsResult":{ - "type":"structure", - "members":{ - "DocumentIdentifiers":{"shape":"DocumentIdentifierList"}, - "NextToken":{"shape":"NextToken"} - } - }, - "MaxDocumentSizeExceeded":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "MaxResults":{ - "type":"integer", - "max":25, - "min":1 - }, - "MaxResultsEC2Compatible":{ - "type":"integer", - "max":50, - "min":5 - }, - "ModifyDocumentPermissionRequest":{ - "type":"structure", - "required":[ - "Name", - "PermissionType" - ], - "members":{ - "Name":{"shape":"DocumentName"}, - "PermissionType":{"shape":"DocumentPermissionType"}, - "AccountIdsToAdd":{"shape":"AccountIdList"}, - "AccountIdsToRemove":{"shape":"AccountIdList"} - } - }, - "ModifyDocumentPermissionResponse":{ - "type":"structure", - "members":{ - } - }, - "NextToken":{"type":"string"}, - "ParameterName":{"type":"string"}, - "ParameterValue":{"type":"string"}, - "ParameterValueList":{ - "type":"list", - "member":{"shape":"ParameterValue"} - }, - "Parameters":{ - "type":"map", - "key":{"shape":"ParameterName"}, - "value":{"shape":"ParameterValueList"} - }, - "PingStatus":{ - "type":"string", - "enum":[ - "Online", - "ConnectionLost", - "Inactive" - ] - }, - "PlatformType":{ - "type":"string", - "enum":[ - "Windows", - "Linux" - ] - }, - "PlatformTypeList":{ - "type":"list", - "member":{ - "shape":"PlatformType", - "locationName":"PlatformType" - } - }, - "ResponseCode":{"type":"integer"}, - "S3BucketName":{ - "type":"string", - "max":63, - "min":3 - }, - "S3KeyPrefix":{ - "type":"string", - "max":500 - }, - "SendCommandRequest":{ - "type":"structure", - "required":[ - "InstanceIds", - "DocumentName" - ], - "members":{ - "InstanceIds":{"shape":"InstanceIdList"}, - "DocumentName":{"shape":"DocumentARN"}, - "DocumentHash":{"shape":"DocumentHash"}, - "DocumentHashType":{"shape":"DocumentHashType"}, - "TimeoutSeconds":{ - "shape":"TimeoutSeconds", - "box":true - }, - "Comment":{"shape":"Comment"}, - "Parameters":{"shape":"Parameters"}, - "OutputS3BucketName":{"shape":"S3BucketName"}, - "OutputS3KeyPrefix":{"shape":"S3KeyPrefix"} - } - }, - "SendCommandResult":{ - "type":"structure", - "members":{ - "Command":{"shape":"Command"} - } - }, - "StatusAdditionalInfo":{ - "type":"string", - "max":1024 - }, - "StatusMessage":{ - "type":"string", - "max":1024 - }, - "StatusUnchanged":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "String":{"type":"string"}, - "TimeoutSeconds":{ - "type":"integer", - "max":2592000, - "min":30 - }, - "TooManyUpdates":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "UnsupportedPlatformType":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "exception":true - }, - "UpdateAssociationStatusRequest":{ - "type":"structure", - "required":[ - "Name", - "InstanceId", - "AssociationStatus" - ], - "members":{ - "Name":{"shape":"DocumentName"}, - "InstanceId":{"shape":"InstanceId"}, - "AssociationStatus":{"shape":"AssociationStatus"} - } - }, - "UpdateAssociationStatusResult":{ - "type":"structure", - "members":{ - "AssociationDescription":{"shape":"AssociationDescription"} - } - }, - "Version":{ - "type":"string", - "pattern":"^[0-9]{1,6}(\\.[0-9]{1,6}){2,3}$" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/docs-2.json deleted file mode 100644 index 04bf310f0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/docs-2.json +++ /dev/null @@ -1,960 +0,0 @@ -{ - "version": "2.0", - "service": "

    This is the Amazon Simple Systems Manager (SSM) API Reference. SSM enables you to remotely manage the configuration of your Amazon EC2 instance using scripts or commands with either an on-demand solution called SSM Run Command or a lightweight instance configuration solution called SSM Config.

    This references is intended to be used with the SSM User Guide for Linux or Windows.

    Run Command

    Run Command provides an on-demand experience for executing commands. You can use pre-defined Amazon SSM documents to perform the actions listed later in this section, or you can create your own documents. With these documents, you can remotely configure your instances by sending commands using the Commands page in the Amazon EC2 console, AWS Tools for Windows PowerShell, the AWS CLI, or AWS SDKs.

    Run Command reports the status of the command execution for each instance targeted by a command. You can also audit the command execution to understand who executed commands, when, and what changes were made. By switching between different SSM documents, you can quickly configure your instances with different types of commands. To get started with Run Command, verify that your environment meets the prerequisites for remotely running commands on EC2 instances (Linux or Windows).

    SSM Config

    SSM Config is a lightweight instance configuration solution. SSM Config is currently only available for Windows instances. With SSM Config, you can specify a setup configuration for your instances. SSM Config is similar to EC2 User Data, which is another way of running one-time scripts or applying settings during instance launch. SSM Config is an extension of this capability. Using SSM documents, you can specify which actions the system should perform on your instances, including which applications to install, which AWS Directory Service directory to join, which Microsoft PowerShell modules to install, etc. If an instance is missing one or more of these configurations, the system makes those changes. By default, the system checks every five minutes to see if there is a new configuration to apply as defined in a new SSM document. If so, the system updates the instances accordingly. In this way, you can remotely maintain a consistent configuration baseline on your instances. SSM Config is available using the AWS CLI or the AWS Tools for Windows PowerShell. For more information, see Managing Windows Instance Configuration.

    SSM Config and SSM Run Command include the following pre-defined documents.

    Linux

    • AWS-RunShellScript to run shell scripts

    • AWS-UpdateSSMAgent to update the Amazon SSM agent

    Windows

    • AWS-JoinDirectoryServiceDomain to join an AWS Directory

    • AWS-RunPowerShellScript to run PowerShell commands or scripts

    • AWS-UpdateEC2Config to update the EC2Config service

    • AWS-ConfigureWindowsUpdate to configure Windows Update settings

    • AWS-InstallApplication to install, repair, or uninstall software using an MSI package

    • AWS-InstallPowerShellModule to install PowerShell modules

    • AWS-ConfigureCloudWatch to configure Amazon CloudWatch Logs to monitor applications and systems

    • AWS-ListWindowsInventory to collect information about an EC2 instance running in Windows.

    • AWS-FindWindowsUpdates to scan an instance and determines which updates are missing.

    • AWS-InstallMissingWindowsUpdates to install missing updates on your EC2 instance.

    • AWS-InstallSpecificWindowsUpdates to install one or more specific updates.

    The commands or scripts specified in SSM documents run with administrative privilege on your instances because the Amazon SSM agent runs as root on Linux and the EC2Config service runs in the Local System account on Windows. If a user has permission to execute any of the pre-defined SSM documents (any document that begins with AWS-*) then that user also has administrator access to the instance. Delegate access to SSM and Run Command judiciously. This becomes extremely important if you create your own SSM documents. Amazon Web Services does not provide guidance about how to create secure SSM documents. You create SSM documents and delegate access to Run Command at your own risk. As a security best practice, we recommend that you assign access to \"AWS-*\" documents, especially the AWS-RunShellScript document on Linux and the AWS-RunPowerShellScript document on Windows, to trusted administrators only. You can create SSM documents for specific tasks and delegate access to non-administrators.

    For information about creating and sharing SSM documents, see the following topics in the SSM User Guide:

    ", - "operations": { - "CancelCommand": "

    Attempts to cancel the command specified by the Command ID. There is no guarantee that the command will be terminated and the underlying process stopped.

    ", - "CreateAssociation": "

    Associates the specified SSM document with the specified instance.

    When you associate an SSM document with an instance, the configuration agent on the instance processes the document and configures the instance as specified.

    If you associate a document with an instance that already has an associated document, the system throws the AssociationAlreadyExists exception.

    ", - "CreateAssociationBatch": "

    Associates the specified SSM document with the specified instances.

    When you associate an SSM document with an instance, the configuration agent on the instance processes the document and configures the instance as specified.

    If you associate a document with an instance that already has an associated document, the system throws the AssociationAlreadyExists exception.

    ", - "CreateDocument": "

    Creates an SSM document.

    After you create an SSM document, you can use CreateAssociation to associate it with one or more running instances.

    ", - "DeleteAssociation": "

    Disassociates the specified SSM document from the specified instance.

    When you disassociate an SSM document from an instance, it does not change the configuration of the instance. To change the configuration state of an instance after you disassociate a document, you must create a new document with the desired configuration and associate it with the instance.

    ", - "DeleteDocument": "

    Deletes the SSM document and all instance associations to the document.

    Before you delete the SSM document, we recommend that you use DeleteAssociation to disassociate all instances that are associated with the document.

    ", - "DescribeAssociation": "

    Describes the associations for the specified SSM document or instance.

    ", - "DescribeDocument": "

    Describes the specified SSM document.

    ", - "DescribeDocumentPermission": "

    Describes the permissions for an SSM document. If you created the document, you are the owner. If a document is shared, it can either be shared privately (by specifying a user’s AWS account ID) or publicly (All).

    ", - "DescribeInstanceInformation": "

    Describes one or more of your instances. You can use this to get information about instances like the operating system platform, the SSM agent version, status etc. If you specify one or more instance IDs, it returns information for those instances. If you do not specify instance IDs, it returns information for all your instances. If you specify an instance ID that is not valid or an instance that you do not own, you receive an error.

    ", - "GetDocument": "

    Gets the contents of the specified SSM document.

    ", - "ListAssociations": "

    Lists the associations for the specified SSM document or instance.

    ", - "ListCommandInvocations": "

    An invocation is copy of a command sent to a specific instance. A command can apply to one or more instances. A command invocation applies to one instance. For example, if a user executes SendCommand against three instances, then a command invocation is created for each requested instance ID. ListCommandInvocations provide status about command execution.

    ", - "ListCommands": "

    Lists the commands requested by users of the AWS account.

    ", - "ListDocuments": "

    Describes one or more of your SSM documents.

    ", - "ModifyDocumentPermission": "

    Share a document publicly or privately. If you share a document privately, you must specify the AWS user account IDs for those people who can use the document. If you share a document publicly, you must specify All as the account ID.

    ", - "SendCommand": "

    Executes commands on one or more remote instances.

    ", - "UpdateAssociationStatus": "

    Updates the status of the SSM document associated with the specified instance.

    " - }, - "shapes": { - "AccountId": { - "base": null, - "refs": { - "AccountIdList$member": null - } - }, - "AccountIdList": { - "base": null, - "refs": { - "DescribeDocumentPermissionResponse$AccountIds": "

    The account IDs that have permission to use this document. The ID can be either an AWS account or All.

    ", - "ModifyDocumentPermissionRequest$AccountIdsToAdd": "

    The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All.

    ", - "ModifyDocumentPermissionRequest$AccountIdsToRemove": "

    The AWS user accounts that should no longer have access to the document. The AWS user account can either be a group of account IDs or All. This action has a higher priority than AccountIdsToAdd. If you specify an account ID to add and the same ID to remove, the system removes access to the document.

    " - } - }, - "AssociatedInstances": { - "base": "

    You must disassociate an SSM document from all instances before you can delete it.

    ", - "refs": { - } - }, - "Association": { - "base": "

    Describes an association of an SSM document and an instance.

    ", - "refs": { - "AssociationList$member": null - } - }, - "AssociationAlreadyExists": { - "base": "

    The specified association already exists.

    ", - "refs": { - } - }, - "AssociationDescription": { - "base": "

    Describes the parameters for a document.

    ", - "refs": { - "AssociationDescriptionList$member": null, - "CreateAssociationResult$AssociationDescription": "

    Information about the association.

    ", - "DescribeAssociationResult$AssociationDescription": "

    Information about the association.

    ", - "UpdateAssociationStatusResult$AssociationDescription": "

    Information about the association.

    " - } - }, - "AssociationDescriptionList": { - "base": null, - "refs": { - "CreateAssociationBatchResult$Successful": "

    Information about the associations that succeeded.

    " - } - }, - "AssociationDoesNotExist": { - "base": "

    The specified association does not exist.

    ", - "refs": { - } - }, - "AssociationFilter": { - "base": "

    Describes a filter.

    ", - "refs": { - "AssociationFilterList$member": null - } - }, - "AssociationFilterKey": { - "base": null, - "refs": { - "AssociationFilter$key": "

    The name of the filter.

    " - } - }, - "AssociationFilterList": { - "base": null, - "refs": { - "ListAssociationsRequest$AssociationFilterList": "

    One or more filters. Use a filter to return a more specific list of results.

    " - } - }, - "AssociationFilterValue": { - "base": null, - "refs": { - "AssociationFilter$value": "

    The filter value.

    " - } - }, - "AssociationLimitExceeded": { - "base": "

    You can have at most 2,000 active associations.

    ", - "refs": { - } - }, - "AssociationList": { - "base": null, - "refs": { - "ListAssociationsResult$Associations": "

    The associations.

    " - } - }, - "AssociationStatus": { - "base": "

    Describes an association status.

    ", - "refs": { - "AssociationDescription$Status": "

    The association status.

    ", - "UpdateAssociationStatusRequest$AssociationStatus": "

    The association status.

    " - } - }, - "AssociationStatusName": { - "base": null, - "refs": { - "AssociationStatus$Name": "

    The status.

    " - } - }, - "BatchErrorMessage": { - "base": null, - "refs": { - "FailedCreateAssociation$Message": "

    A description of the failure.

    " - } - }, - "Boolean": { - "base": null, - "refs": { - "InstanceInformation$IsLatestVersion": "

    Indicates whether latest version of the SSM agent is running on your instance.

    ", - "ListCommandInvocationsRequest$Details": "

    (Optional) If set this returns the response of the command executions and any command output. By default this is set to False.

    " - } - }, - "CancelCommandRequest": { - "base": "

    ", - "refs": { - } - }, - "CancelCommandResult": { - "base": "

    Whether or not the command was successfully canceled. There is no guarantee that a request can be canceled.

    ", - "refs": { - } - }, - "Command": { - "base": "

    Describes a command request.

    ", - "refs": { - "CommandList$member": null, - "SendCommandResult$Command": "

    The request as it was received by SSM. Also provides the command ID which can be used future references to this request.

    " - } - }, - "CommandFilter": { - "base": "

    Describes a command filter.

    ", - "refs": { - "CommandFilterList$member": null - } - }, - "CommandFilterKey": { - "base": null, - "refs": { - "CommandFilter$key": "

    The name of the filter. For example, requested date and time.

    " - } - }, - "CommandFilterList": { - "base": null, - "refs": { - "ListCommandInvocationsRequest$Filters": "

    (Optional) One or more filters. Use a filter to return a more specific list of results.

    ", - "ListCommandsRequest$Filters": "

    (Optional) One or more filters. Use a filter to return a more specific list of results.

    " - } - }, - "CommandFilterValue": { - "base": null, - "refs": { - "CommandFilter$value": "

    The filter value. For example: June 30, 2015.

    " - } - }, - "CommandId": { - "base": null, - "refs": { - "CancelCommandRequest$CommandId": "

    The ID of the command you want to cancel.

    ", - "Command$CommandId": "

    A unique identifier for this command.

    ", - "CommandInvocation$CommandId": "

    The command against which this invocation was requested.

    ", - "ListCommandInvocationsRequest$CommandId": "

    (Optional) The invocations for a specific command ID.

    ", - "ListCommandsRequest$CommandId": "

    (Optional) If provided, lists only the specified command.

    " - } - }, - "CommandInvocation": { - "base": "

    An invocation is copy of a command sent to a specific instance. A command can apply to one or more instances. A command invocation applies to one instance. For example, if a user executes SendCommand against three instances, then a command invocation is created for each requested instance ID. A command invocation returns status and detail information about a command you executed.

    ", - "refs": { - "CommandInvocationList$member": null - } - }, - "CommandInvocationList": { - "base": null, - "refs": { - "ListCommandInvocationsResult$CommandInvocations": "

    (Optional) A list of all invocations.

    " - } - }, - "CommandInvocationStatus": { - "base": null, - "refs": { - "CommandInvocation$Status": "

    Whether or not the invocation succeeded, failed, or is pending.

    " - } - }, - "CommandList": { - "base": null, - "refs": { - "ListCommandsResult$Commands": "

    (Optional) The list of commands requested by the user.

    " - } - }, - "CommandMaxResults": { - "base": null, - "refs": { - "ListCommandInvocationsRequest$MaxResults": "

    (Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

    ", - "ListCommandsRequest$MaxResults": "

    (Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

    " - } - }, - "CommandPlugin": { - "base": "

    Describes plugin details.

    ", - "refs": { - "CommandPluginList$member": null - } - }, - "CommandPluginList": { - "base": null, - "refs": { - "CommandInvocation$CommandPlugins": null - } - }, - "CommandPluginName": { - "base": null, - "refs": { - "CommandPlugin$Name": "

    The name of the plugin. Must be one of the following: aws:updateAgent, aws:domainjoin, aws:applications, aws:runPowerShellScript, aws:psmodule, aws:cloudWatch, aws:runShellScript, or aws:updateSSMAgent.

    " - } - }, - "CommandPluginOutput": { - "base": null, - "refs": { - "CommandPlugin$Output": "

    Output of the plugin execution.

    " - } - }, - "CommandPluginStatus": { - "base": null, - "refs": { - "CommandPlugin$Status": "

    The status of this plugin. You can execute a document with multiple plugins.

    " - } - }, - "CommandStatus": { - "base": null, - "refs": { - "Command$Status": "

    The status of the command.

    " - } - }, - "Comment": { - "base": null, - "refs": { - "Command$Comment": "

    User-specified information about the command, such as a brief description of what the command should do.

    ", - "CommandInvocation$Comment": "

    User-specified information about the command, such as a brief description of what the command should do.

    ", - "SendCommandRequest$Comment": "

    User-specified information about the command, such as a brief description of what the command should do.

    " - } - }, - "CreateAssociationBatchRequest": { - "base": null, - "refs": { - } - }, - "CreateAssociationBatchRequestEntries": { - "base": null, - "refs": { - "CreateAssociationBatchRequest$Entries": "

    One or more associations.

    " - } - }, - "CreateAssociationBatchRequestEntry": { - "base": "

    Describes the association of an SSM document and an instance.

    ", - "refs": { - "CreateAssociationBatchRequestEntries$member": null, - "FailedCreateAssociation$Entry": "

    The association.

    " - } - }, - "CreateAssociationBatchResult": { - "base": null, - "refs": { - } - }, - "CreateAssociationRequest": { - "base": null, - "refs": { - } - }, - "CreateAssociationResult": { - "base": null, - "refs": { - } - }, - "CreateDocumentRequest": { - "base": null, - "refs": { - } - }, - "CreateDocumentResult": { - "base": null, - "refs": { - } - }, - "DateTime": { - "base": null, - "refs": { - "AssociationDescription$Date": "

    The date when the association was made.

    ", - "AssociationStatus$Date": "

    The date when the status changed.

    ", - "Command$ExpiresAfter": "

    If this time is reached and the command has not already started executing, it will not execute. Calculated based on the ExpiresAfter user input provided as part of the SendCommand API.

    ", - "Command$RequestedDateTime": "

    The date and time the command was requested.

    ", - "CommandInvocation$RequestedDateTime": "

    The time and date the request was sent to this instance.

    ", - "CommandPlugin$ResponseStartDateTime": "

    The time the plugin started executing.

    ", - "CommandPlugin$ResponseFinishDateTime": "

    The time the plugin stopped executing. Could stop prematurely if, for example, a cancel command was sent.

    ", - "DocumentDescription$CreatedDate": "

    The date when the SSM document was created.

    ", - "InstanceInformation$LastPingDateTime": "

    The date and time when agent last pinged SSM service.

    " - } - }, - "DeleteAssociationRequest": { - "base": null, - "refs": { - } - }, - "DeleteAssociationResult": { - "base": null, - "refs": { - } - }, - "DeleteDocumentRequest": { - "base": null, - "refs": { - } - }, - "DeleteDocumentResult": { - "base": null, - "refs": { - } - }, - "DescribeAssociationRequest": { - "base": null, - "refs": { - } - }, - "DescribeAssociationResult": { - "base": null, - "refs": { - } - }, - "DescribeDocumentPermissionRequest": { - "base": null, - "refs": { - } - }, - "DescribeDocumentPermissionResponse": { - "base": null, - "refs": { - } - }, - "DescribeDocumentRequest": { - "base": null, - "refs": { - } - }, - "DescribeDocumentResult": { - "base": null, - "refs": { - } - }, - "DescribeInstanceInformationRequest": { - "base": null, - "refs": { - } - }, - "DescribeInstanceInformationResult": { - "base": null, - "refs": { - } - }, - "DescriptionInDocument": { - "base": null, - "refs": { - "DocumentDescription$Description": "

    A description of the document.

    " - } - }, - "DocumentARN": { - "base": null, - "refs": { - "DescribeDocumentRequest$Name": "

    The name of the SSM document.

    ", - "DocumentDescription$Name": "

    The name of the SSM document.

    ", - "DocumentIdentifier$Name": "

    The name of the SSM document.

    ", - "GetDocumentRequest$Name": "

    The name of the SSM document.

    ", - "GetDocumentResult$Name": "

    The name of the SSM document.

    ", - "SendCommandRequest$DocumentName": "

    Required. The name of the SSM document to execute. This can be an SSM public document or a custom document.

    " - } - }, - "DocumentAlreadyExists": { - "base": "

    The specified SSM document already exists.

    ", - "refs": { - } - }, - "DocumentContent": { - "base": null, - "refs": { - "CreateDocumentRequest$Content": "

    A valid JSON string.

    ", - "GetDocumentResult$Content": "

    The contents of the SSM document.

    " - } - }, - "DocumentDescription": { - "base": "

    Describes an SSM document.

    ", - "refs": { - "CreateDocumentResult$DocumentDescription": "

    Information about the SSM document.

    ", - "DescribeDocumentResult$Document": "

    Information about the SSM document.

    " - } - }, - "DocumentFilter": { - "base": "

    Describes a filter.

    ", - "refs": { - "DocumentFilterList$member": null - } - }, - "DocumentFilterKey": { - "base": null, - "refs": { - "DocumentFilter$key": "

    The name of the filter.

    " - } - }, - "DocumentFilterList": { - "base": null, - "refs": { - "ListDocumentsRequest$DocumentFilterList": "

    One or more filters. Use a filter to return a more specific list of results.

    " - } - }, - "DocumentFilterValue": { - "base": null, - "refs": { - "DocumentFilter$value": "

    The value of the filter.

    " - } - }, - "DocumentHash": { - "base": null, - "refs": { - "DocumentDescription$Hash": "

    The Sha256 or Sha1 hash created by the system when the document was created.

    Sha1 hashes have been deprecated.

    ", - "SendCommandRequest$DocumentHash": "

    The Sha256 or Sha1 hash created by the system when the document was created.

    Sha1 hashes have been deprecated.

    " - } - }, - "DocumentHashType": { - "base": null, - "refs": { - "DocumentDescription$HashType": "

    Sha256 or Sha1.

    Sha1 hashes have been deprecated.

    ", - "SendCommandRequest$DocumentHashType": "

    Sha256 or Sha1.

    Sha1 hashes have been deprecated.

    " - } - }, - "DocumentIdentifier": { - "base": "

    Describes the name of an SSM document.

    ", - "refs": { - "DocumentIdentifierList$member": null - } - }, - "DocumentIdentifierList": { - "base": null, - "refs": { - "ListDocumentsResult$DocumentIdentifiers": "

    The names of the SSM documents.

    " - } - }, - "DocumentLimitExceeded": { - "base": "

    You can have at most 100 active SSM documents.

    ", - "refs": { - } - }, - "DocumentName": { - "base": null, - "refs": { - "Association$Name": "

    The name of the SSM document.

    ", - "AssociationDescription$Name": "

    The name of the SSM document.

    ", - "Command$DocumentName": "

    The name of the SSM document requested for execution.

    ", - "CommandInvocation$DocumentName": "

    The document name that was requested for execution.

    ", - "CreateAssociationBatchRequestEntry$Name": "

    The name of the configuration document.

    ", - "CreateAssociationRequest$Name": "

    The name of the SSM document.

    ", - "CreateDocumentRequest$Name": "

    A name for the SSM document.

    ", - "DeleteAssociationRequest$Name": "

    The name of the SSM document.

    ", - "DeleteDocumentRequest$Name": "

    The name of the SSM document.

    ", - "DescribeAssociationRequest$Name": "

    The name of the SSM document.

    ", - "DescribeDocumentPermissionRequest$Name": "

    The name of the document for which you are the owner.

    ", - "ModifyDocumentPermissionRequest$Name": "

    The name of the document that you want to share.

    ", - "UpdateAssociationStatusRequest$Name": "

    The name of the SSM document.

    " - } - }, - "DocumentOwner": { - "base": null, - "refs": { - "DocumentDescription$Owner": "

    The AWS user account of the person who created the document.

    ", - "DocumentIdentifier$Owner": "

    The AWS user account of the person who created the document.

    " - } - }, - "DocumentParameter": { - "base": "

    Parameters specified in the SSM document that execute on the server when the command is run.

    ", - "refs": { - "DocumentParameterList$member": null - } - }, - "DocumentParameterDefaultValue": { - "base": null, - "refs": { - "DocumentParameter$DefaultValue": "

    If specified, the default values for the parameters. Parameters without a default value are required. Parameters with a default value are optional.

    " - } - }, - "DocumentParameterDescrption": { - "base": null, - "refs": { - "DocumentParameter$Description": "

    A description of what the parameter does, how to use it, the default value, and whether or not the parameter is optional.

    " - } - }, - "DocumentParameterList": { - "base": null, - "refs": { - "DocumentDescription$Parameters": "

    A description of the parameters for a document.

    " - } - }, - "DocumentParameterName": { - "base": null, - "refs": { - "DocumentParameter$Name": "

    The name of the parameter.

    " - } - }, - "DocumentParameterType": { - "base": null, - "refs": { - "DocumentParameter$Type": "

    The type of parameter. The type can be either “String” or “StringList”.

    " - } - }, - "DocumentPermissionLimit": { - "base": "

    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.

    ", - "refs": { - } - }, - "DocumentPermissionType": { - "base": null, - "refs": { - "DescribeDocumentPermissionRequest$PermissionType": "

    The permission type for the document. The permission type can be Share.

    ", - "ModifyDocumentPermissionRequest$PermissionType": "

    The permission type for the document. The permission type can be Share.

    " - } - }, - "DocumentSha1": { - "base": null, - "refs": { - "DocumentDescription$Sha1": "

    The SHA1 hash of the document, which you can use for verification purposes.

    " - } - }, - "DocumentStatus": { - "base": null, - "refs": { - "DocumentDescription$Status": "

    The status of the SSM document.

    " - } - }, - "DuplicateInstanceId": { - "base": "

    You cannot specify an instance ID in more than one association.

    ", - "refs": { - } - }, - "FailedCreateAssociation": { - "base": "

    Describes a failed association.

    ", - "refs": { - "FailedCreateAssociationList$member": null - } - }, - "FailedCreateAssociationList": { - "base": null, - "refs": { - "CreateAssociationBatchResult$Failed": "

    Information about the associations that failed.

    " - } - }, - "Fault": { - "base": null, - "refs": { - "FailedCreateAssociation$Fault": "

    The source of the failure.

    " - } - }, - "GetDocumentRequest": { - "base": null, - "refs": { - } - }, - "GetDocumentResult": { - "base": null, - "refs": { - } - }, - "InstanceId": { - "base": null, - "refs": { - "Association$InstanceId": "

    The ID of the instance.

    ", - "AssociationDescription$InstanceId": "

    The ID of the instance.

    ", - "CommandInvocation$InstanceId": "

    The instance ID in which this invocation was requested.

    ", - "CreateAssociationBatchRequestEntry$InstanceId": "

    The ID of the instance.

    ", - "CreateAssociationRequest$InstanceId": "

    The instance ID.

    ", - "DeleteAssociationRequest$InstanceId": "

    The ID of the instance.

    ", - "DescribeAssociationRequest$InstanceId": "

    The instance ID.

    ", - "InstanceIdList$member": null, - "InstanceInformation$InstanceId": "

    The instance ID.

    ", - "ListCommandInvocationsRequest$InstanceId": "

    (Optional) The command execution details for a specific instance ID.

    ", - "ListCommandsRequest$InstanceId": "

    (Optional) Lists commands issued against this instance ID.

    ", - "UpdateAssociationStatusRequest$InstanceId": "

    The ID of the instance.

    " - } - }, - "InstanceIdList": { - "base": null, - "refs": { - "CancelCommandRequest$InstanceIds": "

    (Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.

    ", - "Command$InstanceIds": "

    The instance IDs against which this command was requested.

    ", - "SendCommandRequest$InstanceIds": "

    Required. The instance IDs where the command should execute.

    " - } - }, - "InstanceInformation": { - "base": "

    Describes a filter for a specific list of instances.

    ", - "refs": { - "InstanceInformationList$member": null - } - }, - "InstanceInformationFilter": { - "base": "

    Describes a filter for a specific list of instances.

    ", - "refs": { - "InstanceInformationFilterList$member": null - } - }, - "InstanceInformationFilterKey": { - "base": null, - "refs": { - "InstanceInformationFilter$key": "

    The name of the filter.

    " - } - }, - "InstanceInformationFilterList": { - "base": null, - "refs": { - "DescribeInstanceInformationRequest$InstanceInformationFilterList": "

    One or more filters. Use a filter to return a more specific list of instances.

    " - } - }, - "InstanceInformationFilterValue": { - "base": null, - "refs": { - "InstanceInformationFilterValueSet$member": null - } - }, - "InstanceInformationFilterValueSet": { - "base": null, - "refs": { - "InstanceInformationFilter$valueSet": "

    The filter values.

    " - } - }, - "InstanceInformationList": { - "base": null, - "refs": { - "DescribeInstanceInformationResult$InstanceInformationList": "

    The instance information list.

    " - } - }, - "InternalServerError": { - "base": "

    An error occurred on the server side.

    ", - "refs": { - } - }, - "InvalidCommandId": { - "base": null, - "refs": { - } - }, - "InvalidDocument": { - "base": "

    The specified document does not exist.

    ", - "refs": { - } - }, - "InvalidDocumentContent": { - "base": "

    The content for the SSM document is not valid.

    ", - "refs": { - } - }, - "InvalidDocumentOperation": { - "base": "

    You attempted to delete a document while it is still shared. You must stop sharing the document before you can delete it.

    ", - "refs": { - } - }, - "InvalidFilterKey": { - "base": "

    The specified key is not valid.

    ", - "refs": { - } - }, - "InvalidInstanceId": { - "base": "

    The instance is not in valid state. Valid states are: Running, Pending, Stopped, Stopping. Invalid states are: Shutting-down and Terminated.

    ", - "refs": { - } - }, - "InvalidInstanceInformationFilterValue": { - "base": "

    The specified filter value is not valid.

    ", - "refs": { - } - }, - "InvalidNextToken": { - "base": "

    The specified token is not valid.

    ", - "refs": { - } - }, - "InvalidOutputFolder": { - "base": "

    The S3 bucket does not exist.

    ", - "refs": { - } - }, - "InvalidParameters": { - "base": "

    You must specify values for all required parameters in the SSM document. You can only supply values to parameters defined in the SSM document.

    ", - "refs": { - } - }, - "InvalidPermissionType": { - "base": "

    The permission type is not supported. Share is the only supported permission type.

    ", - "refs": { - } - }, - "InvocationTraceOutput": { - "base": null, - "refs": { - "CommandInvocation$TraceOutput": "

    Gets the trace output sent by the agent.

    " - } - }, - "ListAssociationsRequest": { - "base": null, - "refs": { - } - }, - "ListAssociationsResult": { - "base": null, - "refs": { - } - }, - "ListCommandInvocationsRequest": { - "base": null, - "refs": { - } - }, - "ListCommandInvocationsResult": { - "base": null, - "refs": { - } - }, - "ListCommandsRequest": { - "base": null, - "refs": { - } - }, - "ListCommandsResult": { - "base": null, - "refs": { - } - }, - "ListDocumentsMaxResults": { - "base": null, - "refs": { - "ListDocumentsRequest$MaxResults": "

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

    " - } - }, - "ListDocumentsRequest": { - "base": null, - "refs": { - } - }, - "ListDocumentsResult": { - "base": null, - "refs": { - } - }, - "MaxDocumentSizeExceeded": { - "base": "

    The size limit of an SSM document is 64 KB.

    ", - "refs": { - } - }, - "MaxResults": { - "base": null, - "refs": { - "ListAssociationsRequest$MaxResults": "

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

    " - } - }, - "MaxResultsEC2Compatible": { - "base": null, - "refs": { - "DescribeInstanceInformationRequest$MaxResults": "

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

    " - } - }, - "ModifyDocumentPermissionRequest": { - "base": null, - "refs": { - } - }, - "ModifyDocumentPermissionResponse": { - "base": null, - "refs": { - } - }, - "NextToken": { - "base": null, - "refs": { - "DescribeInstanceInformationRequest$NextToken": "

    The token for the next set of items to return. (You received this token from a previous call.)

    ", - "DescribeInstanceInformationResult$NextToken": "

    The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

    ", - "ListAssociationsRequest$NextToken": "

    The token for the next set of items to return. (You received this token from a previous call.)

    ", - "ListAssociationsResult$NextToken": "

    The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

    ", - "ListCommandInvocationsRequest$NextToken": "

    (Optional) The token for the next set of items to return. (You received this token from a previous call.)

    ", - "ListCommandInvocationsResult$NextToken": "

    (Optional) The token for the next set of items to return. (You received this token from a previous call.)

    ", - "ListCommandsRequest$NextToken": "

    (Optional) The token for the next set of items to return. (You received this token from a previous call.)

    ", - "ListCommandsResult$NextToken": "

    (Optional) The token for the next set of items to return. (You received this token from a previous call.)

    ", - "ListDocumentsRequest$NextToken": "

    The token for the next set of items to return. (You received this token from a previous call.)

    ", - "ListDocumentsResult$NextToken": "

    The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

    " - } - }, - "ParameterName": { - "base": null, - "refs": { - "Parameters$key": null - } - }, - "ParameterValue": { - "base": null, - "refs": { - "ParameterValueList$member": null - } - }, - "ParameterValueList": { - "base": null, - "refs": { - "Parameters$value": null - } - }, - "Parameters": { - "base": null, - "refs": { - "AssociationDescription$Parameters": "

    A description of the parameters for a document.

    ", - "Command$Parameters": "

    The parameter values to be inserted in the SSM document when executing the command.

    ", - "CreateAssociationBatchRequestEntry$Parameters": "

    A description of the parameters for a document.

    ", - "CreateAssociationRequest$Parameters": "

    The parameters for the documents runtime configuration.

    ", - "SendCommandRequest$Parameters": "

    The required and optional parameters specified in the SSM document being executed.

    " - } - }, - "PingStatus": { - "base": null, - "refs": { - "InstanceInformation$PingStatus": "

    Connection status of the SSM agent.

    " - } - }, - "PlatformType": { - "base": null, - "refs": { - "InstanceInformation$PlatformType": "

    The operating system platform type.

    ", - "PlatformTypeList$member": null - } - }, - "PlatformTypeList": { - "base": null, - "refs": { - "DocumentDescription$PlatformTypes": "

    The list of OS platforms compatible with this SSM document.

    ", - "DocumentIdentifier$PlatformTypes": "

    The operating system platform.

    " - } - }, - "ResponseCode": { - "base": null, - "refs": { - "CommandPlugin$ResponseCode": "

    A numeric response code generated after executing the plugin.

    " - } - }, - "S3BucketName": { - "base": null, - "refs": { - "Command$OutputS3BucketName": "

    The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.

    ", - "CommandPlugin$OutputS3BucketName": "

    The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.

    ", - "SendCommandRequest$OutputS3BucketName": "

    The name of the S3 bucket where command execution responses should be stored.

    " - } - }, - "S3KeyPrefix": { - "base": null, - "refs": { - "Command$OutputS3KeyPrefix": "

    The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.

    ", - "CommandPlugin$OutputS3KeyPrefix": "

    The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.

    ", - "SendCommandRequest$OutputS3KeyPrefix": "

    The directory structure within the S3 bucket where the responses should be stored.

    " - } - }, - "SendCommandRequest": { - "base": null, - "refs": { - } - }, - "SendCommandResult": { - "base": null, - "refs": { - } - }, - "StatusAdditionalInfo": { - "base": null, - "refs": { - "AssociationStatus$AdditionalInfo": "

    A user-defined string.

    " - } - }, - "StatusMessage": { - "base": null, - "refs": { - "AssociationStatus$Message": "

    The reason for the status.

    " - } - }, - "StatusUnchanged": { - "base": "

    The updated status is the same as the current status.

    ", - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "DocumentAlreadyExists$Message": null, - "DocumentLimitExceeded$Message": null, - "DocumentPermissionLimit$Message": null, - "InstanceInformation$PlatformName": "

    The name of the operating system platform running on your instance.

    ", - "InstanceInformation$PlatformVersion": "

    The version of the OS platform running on your instance.

    ", - "InternalServerError$Message": null, - "InvalidDocument$Message": "

    The SSM 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.

    ", - "InvalidDocumentContent$Message": "

    A description of the validation error.

    ", - "InvalidDocumentOperation$Message": null, - "InvalidInstanceId$Message": null, - "InvalidInstanceInformationFilterValue$message": null, - "InvalidParameters$Message": null, - "InvalidPermissionType$Message": null, - "MaxDocumentSizeExceeded$Message": null, - "UnsupportedPlatformType$Message": null - } - }, - "TimeoutSeconds": { - "base": null, - "refs": { - "SendCommandRequest$TimeoutSeconds": "

    If this time is reached and the command has not already started executing, it will not execute.

    " - } - }, - "TooManyUpdates": { - "base": "

    There are concurrent updates for a resource that supports one update at a time.

    ", - "refs": { - } - }, - "UnsupportedPlatformType": { - "base": "

    The document does not support the platform type of the given instance ID(s). For example, you sent an SSM document for a Windows instance to a Linux instance.

    ", - "refs": { - } - }, - "UpdateAssociationStatusRequest": { - "base": null, - "refs": { - } - }, - "UpdateAssociationStatusResult": { - "base": null, - "refs": { - } - }, - "Version": { - "base": null, - "refs": { - "InstanceInformation$AgentVersion": "

    The version of the SSM agent running on your instance.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/paginators-1.json deleted file mode 100644 index 1abbbeb06..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ssm/2014-11-06/paginators-1.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "pagination": { - "ListAssociations": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Associations" - }, - "ListCommandInvocations": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "CommandInvocations" - }, - "ListCommands": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Commands" - }, - "ListDocuments": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "DocumentIdentifiers" - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/storagegateway/2013-06-30/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/docs-2.json deleted file mode 100644 index e93e88489..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/docs-2.json +++ /dev/null @@ -1,391 +0,0 @@ -{ - "version": "2.0", - "service": "AWS Security Token Service

    The AWS Security Token Service (STS) is a web service that enables you to request temporary, limited-privilege credentials for AWS Identity and Access Management (IAM) users or for users that you authenticate (federated users). This guide provides descriptions of the STS API. For more detailed information about using this service, go to Temporary Security Credentials.

    As an alternative to using the API, you can use one of the AWS SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to STS. For example, the SDKs take care of cryptographically signing requests, managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page.

    For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about the Query API, go to Making Query Requests in Using IAM. For information about using security tokens with other AWS products, go to AWS Services That Work with IAM in the IAM User Guide.

    If you're new to AWS and need additional technical information about a specific AWS product, you can find the product's technical documentation at http://aws.amazon.com/documentation/.

    Endpoints

    The AWS Security Token Service (STS) has a default endpoint of https://sts.amazonaws.com that maps to the US East (N. Virginia) region. Additional regions are available and are activated by default. For more information, see Activating and Deactivating AWS STS in an AWS Region in the IAM User Guide.

    For information about STS endpoints, see Regions and Endpoints in the AWS General Reference.

    Recording API requests

    STS supports AWS CloudTrail, which is a service that records AWS calls for your AWS account and delivers log files to an Amazon S3 bucket. By using information collected by CloudTrail, you can determine what requests were successfully made to STS, who made the request, when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find your log files, see the AWS CloudTrail User Guide.

    ", - "operations": { - "AssumeRole": "

    Returns a set of temporary security credentials (consisting of an access key ID, a secret access key, and a security token) that you can use to access AWS resources that you might not normally have access to. Typically, you use AssumeRole for cross-account access or federation. For a comparison of AssumeRole with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

    Important: You cannot call AssumeRole by using AWS root account credentials; access is denied. You must use credentials for an IAM user or an IAM role to call AssumeRole.

    For cross-account access, imagine that you own multiple accounts and need to access resources in each account. You could create long-term credentials in each account to access those resources. However, managing all those credentials and remembering which one can access which account can be time consuming. Instead, you can create one set of long-term credentials in one account and then use temporary security credentials to access all the other accounts by assuming roles in those accounts. For more information about roles, see IAM Roles (Delegation and Federation) in the IAM User Guide.

    For federation, you can, for example, grant single sign-on access to the AWS Management Console. If you already have an identity and authentication system in your corporate network, you don't have to recreate user identities in AWS in order to grant those user identities access to AWS. Instead, after a user has been authenticated, you call AssumeRole (and specify the role with the appropriate permissions) to get temporary security credentials for that user. With those temporary security credentials, you construct a sign-in URL that users can use to access the console. For more information, see Common Scenarios for Temporary Credentials in the IAM User Guide.

    The temporary security credentials are valid for the duration that you specified when calling AssumeRole, which can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour). The default is 1 hour.

    The temporary security credentials created by AssumeRole can be used to make API calls to any AWS service with the following exception: you cannot call the STS service's GetFederationToken or GetSessionToken APIs.

    Optionally, you can pass an IAM access policy to this operation. If you choose not to pass a policy, the temporary security credentials that are returned by the operation have the permissions that are defined in the access policy of the role that is being assumed. If you pass a policy to this operation, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in the IAM User Guide.

    To assume a role, your AWS account must be trusted by the role. The trust relationship is defined in the role's trust policy when the role is created. That trust policy states which accounts are allowed to delegate access to this account's role.

    The user who wants to access the role must also have permissions delegated from the role's administrator. If the user is in a different account than the role, then the user's administrator must attach a policy that allows the user to call AssumeRole on the ARN of the role in the other account. If the user is in the same account as the role, then you can either attach a policy to the user (identical to the previous different account user), or you can add the user as a principal directly in the role's trust policy

    Using MFA with AssumeRole

    You can optionally include multi-factor authentication (MFA) information when you call AssumeRole. This is useful for cross-account scenarios in which you want to make sure that the user who is assuming the role has been authenticated using an AWS MFA device. In that scenario, the trust policy of the role being assumed includes a condition that tests for MFA authentication; if the caller does not include valid MFA information, the request to assume the role is denied. The condition in a trust policy that tests for MFA authentication might look like the following example.

    \"Condition\": {\"Bool\": {\"aws:MultiFactorAuthPresent\": true}}

    For more information, see Configuring MFA-Protected API Access in the IAM User Guide guide.

    To use MFA with AssumeRole, you pass values for the SerialNumber and TokenCode parameters. The SerialNumber value identifies the user's hardware or virtual MFA device. The TokenCode is the time-based one-time password (TOTP) that the MFA devices produces.

    ", - "AssumeRoleWithSAML": "

    Returns a set of temporary security credentials for users who have been authenticated via a SAML authentication response. This operation provides a mechanism for tying an enterprise identity store or directory to role-based AWS access without user-specific credentials or configuration. For a comparison of AssumeRoleWithSAML with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

    The temporary security credentials returned by this operation consist of an access key ID, a secret access key, and a security token. Applications can use these temporary security credentials to sign calls to AWS services.

    The temporary security credentials are valid for the duration that you specified when calling AssumeRole, or until the time specified in the SAML authentication response's SessionNotOnOrAfter value, whichever is shorter. The duration can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour). The default is 1 hour.

    The temporary security credentials created by AssumeRoleWithSAML can be used to make API calls to any AWS service with the following exception: you cannot call the STS service's GetFederationToken or GetSessionToken APIs.

    Optionally, you can pass an IAM access policy to this operation. If you choose not to pass a policy, the temporary security credentials that are returned by the operation have the permissions that are defined in the access policy of the role that is being assumed. If you pass a policy to this operation, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in the IAM User Guide.

    Before your application can call AssumeRoleWithSAML, you must configure your SAML identity provider (IdP) to issue the claims required by AWS. Additionally, you must use AWS Identity and Access Management (IAM) to create a SAML provider entity in your AWS account that represents your identity provider, and create an IAM role that specifies this SAML provider in its trust policy.

    Calling AssumeRoleWithSAML does not require the use of AWS security credentials. The identity of the caller is validated by using keys in the metadata document that is uploaded for the SAML provider entity for your identity provider.

    Calling AssumeRoleWithSAML can result in an entry in your AWS CloudTrail logs. The entry includes the value in the NameID element of the SAML assertion. We recommend that you use a NameIDType that is not associated with any personally identifiable information (PII). For example, you could instead use the Persistent Identifier (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent).

    For more information, see the following resources:

    ", - "AssumeRoleWithWebIdentity": "

    Returns a set of temporary security credentials for users who have been authenticated in a mobile or web application with a web identity provider, such as Amazon Cognito, Login with Amazon, Facebook, Google, or any OpenID Connect-compatible identity provider.

    For mobile applications, we recommend that you use Amazon Cognito. You can use Amazon Cognito with the AWS SDK for iOS and the AWS SDK for Android to uniquely identify a user and supply the user with a consistent identity throughout the lifetime of an application.

    To learn more about Amazon Cognito, see Amazon Cognito Overview in the AWS SDK for Android Developer Guide guide and Amazon Cognito Overview in the AWS SDK for iOS Developer Guide.

    Calling AssumeRoleWithWebIdentity does not require the use of AWS security credentials. Therefore, you can distribute an application (for example, on mobile devices) that requests temporary security credentials without including long-term AWS credentials in the application, and without deploying server-based proxy services that use long-term AWS credentials. Instead, the identity of the caller is validated by using a token from the web identity provider. For a comparison of AssumeRoleWithWebIdentity with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

    The temporary security credentials returned by this API consist of an access key ID, a secret access key, and a security token. Applications can use these temporary security credentials to sign calls to AWS service APIs.

    The credentials are valid for the duration that you specified when calling AssumeRoleWithWebIdentity, which can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour). The default is 1 hour.

    The temporary security credentials created by AssumeRoleWithWebIdentity can be used to make API calls to any AWS service with the following exception: you cannot call the STS service's GetFederationToken or GetSessionToken APIs.

    Optionally, you can pass an IAM access policy to this operation. If you choose not to pass a policy, the temporary security credentials that are returned by the operation have the permissions that are defined in the access policy of the role that is being assumed. If you pass a policy to this operation, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in the IAM User Guide.

    Before your application can call AssumeRoleWithWebIdentity, you must have an identity token from a supported identity provider and create a role that the application can assume. The role that your application assumes must trust the identity provider that is associated with the identity token. In other words, the identity provider must be specified in the role's trust policy.

    Calling AssumeRoleWithWebIdentity can result in an entry in your AWS CloudTrail logs. The entry includes the Subject of the provided Web Identity Token. We recommend that you avoid using any personally identifiable information (PII) in this field. For example, you could instead use a GUID or a pairwise identifier, as suggested in the OIDC specification.

    For more information about how to use web identity federation and the AssumeRoleWithWebIdentity API, see the following resources:

    ", - "DecodeAuthorizationMessage": "

    Decodes additional information about the authorization status of a request from an encoded message returned in response to an AWS request.

    For example, if a user is not authorized to perform an action that he or she has requested, the request returns a Client.UnauthorizedOperation response (an HTTP 403 response). Some AWS actions additionally return an encoded message that can provide details about this authorization failure.

    Only certain AWS actions return an encoded authorization message. The documentation for an individual action indicates whether that action returns an encoded message in addition to returning an HTTP code.

    The message is encoded because the details of the authorization status can constitute privileged information that the user who requested the action should not see. To decode an authorization status message, a user must be granted permissions via an IAM policy to request the DecodeAuthorizationMessage (sts:DecodeAuthorizationMessage) action.

    The decoded message includes the following type of information:

    • Whether the request was denied due to an explicit deny or due to the absence of an explicit allow. For more information, see Determining Whether a Request is Allowed or Denied in the IAM User Guide.

    • The principal who made the request.

    • The requested action.

    • The requested resource.

    • The values of condition keys in the context of the user's request.

    ", - "GetCallerIdentity": "

    Returns details about the IAM identity whose credentials are used to call the API.

    ", - "GetFederationToken": "

    Returns a set of temporary security credentials (consisting of an access key ID, a secret access key, and a security token) for a federated user. A typical use is in a proxy application that gets temporary security credentials on behalf of distributed applications inside a corporate network. Because you must call the GetFederationToken action using the long-term security credentials of an IAM user, this call is appropriate in contexts where those credentials can be safely stored, usually in a server-based application. For a comparison of GetFederationToken with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

    If you are creating a mobile-based or browser-based app that can authenticate users using a web identity provider like Login with Amazon, Facebook, Google, or an OpenID Connect-compatible identity provider, we recommend that you use Amazon Cognito or AssumeRoleWithWebIdentity. For more information, see Federation Through a Web-based Identity Provider.

    The GetFederationToken action must be called by using the long-term AWS security credentials of an IAM user. You can also call GetFederationToken using the security credentials of an AWS root account, but we do not recommended it. Instead, we recommend that you create an IAM user for the purpose of the proxy application and then attach a policy to the IAM user that limits federated users to only the actions and resources that they need access to. For more information, see IAM Best Practices in the IAM User Guide.

    The temporary security credentials that are obtained by using the long-term credentials of an IAM user are valid for the specified duration, from 900 seconds (15 minutes) up to a maximium of 129600 seconds (36 hours). The default is 43200 seconds (12 hours). Temporary credentials that are obtained by using AWS root account credentials have a maximum duration of 3600 seconds (1 hour).

    The temporary security credentials created by GetFederationToken can be used to make API calls to any AWS service with the following exceptions:

    • You cannot use these credentials to call any IAM APIs.

    • You cannot call any STS APIs.

    Permissions

    The permissions for the temporary security credentials returned by GetFederationToken are determined by a combination of the following:

    • The policy or policies that are attached to the IAM user whose credentials are used to call GetFederationToken.

    • The policy that is passed as a parameter in the call.

    The passed policy is attached to the temporary security credentials that result from the GetFederationToken API call--that is, to the federated user. When the federated user makes an AWS request, AWS evaluates the policy attached to the federated user in combination with the policy or policies attached to the IAM user whose credentials were used to call GetFederationToken. AWS allows the federated user's request only when both the federated user and the IAM user are explicitly allowed to perform the requested action. The passed policy cannot grant more permissions than those that are defined in the IAM user policy.

    A typical use case is that the permissions of the IAM user whose credentials are used to call GetFederationToken are designed to allow access to all the actions and resources that any federated user will need. Then, for individual users, you pass a policy to the operation that scopes down the permissions to a level that's appropriate to that individual user, using a policy that allows only a subset of permissions that are granted to the IAM user.

    If you do not pass a policy, the resulting temporary security credentials have no effective permissions. The only exception is when the temporary security credentials are used to access a resource that has a resource-based policy that specifically allows the federated user to access the resource.

    For more information about how permissions work, see Permissions for GetFederationToken. For information about using GetFederationToken to create temporary security credentials, see GetFederationToken—Federation Through a Custom Identity Broker.

    ", - "GetSessionToken": "

    Returns a set of temporary credentials for an AWS account or IAM user. The credentials consist of an access key ID, a secret access key, and a security token. Typically, you use GetSessionToken if you want to use MFA to protect programmatic calls to specific AWS APIs like Amazon EC2 StopInstances. MFA-enabled IAM users would need to call GetSessionToken and submit an MFA code that is associated with their MFA device. Using the temporary security credentials that are returned from the call, IAM users can then make programmatic calls to APIs that require MFA authentication. If you do not supply a correct MFA code, then the API returns an access denied error. For a comparison of GetSessionToken with the other APIs that produce temporary credentials, see Requesting Temporary Security Credentials and Comparing the AWS STS APIs in the IAM User Guide.

    The GetSessionToken action must be called by using the long-term AWS security credentials of the AWS account or an IAM user. Credentials that are created by IAM users are valid for the duration that you specify, from 900 seconds (15 minutes) up to a maximum of 129600 seconds (36 hours), with a default of 43200 seconds (12 hours); credentials that are created by using account credentials can range from 900 seconds (15 minutes) up to a maximum of 3600 seconds (1 hour), with a default of 1 hour.

    The temporary security credentials created by GetSessionToken can be used to make API calls to any AWS service with the following exceptions:

    • You cannot call any IAM APIs unless MFA authentication information is included in the request.

    • You cannot call any STS API except AssumeRole.

    We recommend that you do not call GetSessionToken with root account credentials. Instead, follow our best practices by creating one or more IAM users, giving them the necessary permissions, and using IAM users for everyday interaction with AWS.

    The permissions associated with the temporary security credentials returned by GetSessionToken are based on the permissions associated with account or IAM user whose credentials are used to call the action. If GetSessionToken is called using root account credentials, the temporary credentials have root account permissions. Similarly, if GetSessionToken is called using the credentials of an IAM user, the temporary credentials have the same permissions as the IAM user.

    For more information about using GetSessionToken to create temporary credentials, go to Temporary Credentials for Users in Untrusted Environments in the IAM User Guide.

    " - }, - "shapes": { - "AssumeRoleRequest": { - "base": null, - "refs": { - } - }, - "AssumeRoleResponse": { - "base": "

    Contains the response to a successful AssumeRole request, including temporary AWS credentials that can be used to make AWS requests.

    ", - "refs": { - } - }, - "AssumeRoleWithSAMLRequest": { - "base": null, - "refs": { - } - }, - "AssumeRoleWithSAMLResponse": { - "base": "

    Contains the response to a successful AssumeRoleWithSAML request, including temporary AWS credentials that can be used to make AWS requests.

    ", - "refs": { - } - }, - "AssumeRoleWithWebIdentityRequest": { - "base": null, - "refs": { - } - }, - "AssumeRoleWithWebIdentityResponse": { - "base": "

    Contains the response to a successful AssumeRoleWithWebIdentity request, including temporary AWS credentials that can be used to make AWS requests.

    ", - "refs": { - } - }, - "AssumedRoleUser": { - "base": "

    The identifiers for the temporary security credentials that the operation returns.

    ", - "refs": { - "AssumeRoleResponse$AssumedRoleUser": "

    The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers that you can use to refer to the resulting temporary security credentials. For example, you can reference these credentials as a principal in a resource-based policy by using the ARN or assumed role ID. The ARN and ID include the RoleSessionName that you specified when you called AssumeRole.

    ", - "AssumeRoleWithSAMLResponse$AssumedRoleUser": "

    The identifiers for the temporary security credentials that the operation returns.

    ", - "AssumeRoleWithWebIdentityResponse$AssumedRoleUser": "

    The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers that you can use to refer to the resulting temporary security credentials. For example, you can reference these credentials as a principal in a resource-based policy by using the ARN or assumed role ID. The ARN and ID include the RoleSessionName that you specified when you called AssumeRole.

    " - } - }, - "Audience": { - "base": null, - "refs": { - "AssumeRoleWithSAMLResponse$Audience": "

    The value of the Recipient attribute of the SubjectConfirmationData element of the SAML assertion.

    ", - "AssumeRoleWithWebIdentityResponse$Audience": "

    The intended audience (also known as client ID) of the web identity token. This is traditionally the client identifier issued to the application that requested the web identity token.

    " - } - }, - "Credentials": { - "base": "

    AWS credentials for API authentication.

    ", - "refs": { - "AssumeRoleResponse$Credentials": "

    The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.

    Note: The size of the security token that STS APIs return is not fixed. We strongly recommend that you make no assumptions about the maximum size. As of this writing, the typical size is less than 4096 bytes, but that can vary. Also, future updates to AWS might require larger sizes.

    ", - "AssumeRoleWithSAMLResponse$Credentials": "

    The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.

    Note: The size of the security token that STS APIs return is not fixed. We strongly recommend that you make no assumptions about the maximum size. As of this writing, the typical size is less than 4096 bytes, but that can vary. Also, future updates to AWS might require larger sizes.

    ", - "AssumeRoleWithWebIdentityResponse$Credentials": "

    The temporary security credentials, which include an access key ID, a secret access key, and a security token.

    Note: The size of the security token that STS APIs return is not fixed. We strongly recommend that you make no assumptions about the maximum size. As of this writing, the typical size is less than 4096 bytes, but that can vary. Also, future updates to AWS might require larger sizes.

    ", - "GetFederationTokenResponse$Credentials": "

    The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.

    Note: The size of the security token that STS APIs return is not fixed. We strongly recommend that you make no assumptions about the maximum size. As of this writing, the typical size is less than 4096 bytes, but that can vary. Also, future updates to AWS might require larger sizes.

    ", - "GetSessionTokenResponse$Credentials": "

    The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.

    Note: The size of the security token that STS APIs return is not fixed. We strongly recommend that you make no assumptions about the maximum size. As of this writing, the typical size is less than 4096 bytes, but that can vary. Also, future updates to AWS might require larger sizes.

    " - } - }, - "DecodeAuthorizationMessageRequest": { - "base": null, - "refs": { - } - }, - "DecodeAuthorizationMessageResponse": { - "base": "

    A document that contains additional information about the authorization status of a request from an encoded message that is returned in response to an AWS request.

    ", - "refs": { - } - }, - "ExpiredTokenException": { - "base": "

    The web identity token that was passed is expired or is not valid. Get a new identity token from the identity provider and then retry the request.

    ", - "refs": { - } - }, - "FederatedUser": { - "base": "

    Identifiers for the federated user that is associated with the credentials.

    ", - "refs": { - "GetFederationTokenResponse$FederatedUser": "

    Identifiers for the federated user associated with the credentials (such as arn:aws:sts::123456789012:federated-user/Bob or 123456789012:Bob). You can use the federated user's ARN in your resource-based policies, such as an Amazon S3 bucket policy.

    " - } - }, - "GetCallerIdentityRequest": { - "base": null, - "refs": { - } - }, - "GetCallerIdentityResponse": { - "base": "

    Contains the response to a successful GetCallerIdentity request, including information about the entity making the request.

    ", - "refs": { - } - }, - "GetFederationTokenRequest": { - "base": null, - "refs": { - } - }, - "GetFederationTokenResponse": { - "base": "

    Contains the response to a successful GetFederationToken request, including temporary AWS credentials that can be used to make AWS requests.

    ", - "refs": { - } - }, - "GetSessionTokenRequest": { - "base": null, - "refs": { - } - }, - "GetSessionTokenResponse": { - "base": "

    Contains the response to a successful GetSessionToken request, including temporary AWS credentials that can be used to make AWS requests.

    ", - "refs": { - } - }, - "IDPCommunicationErrorException": { - "base": "

    The request could not be fulfilled because the non-AWS identity provider (IDP) that was asked to verify the incoming identity token could not be reached. This is often a transient error caused by network conditions. Retry the request a limited number of times so that you don't exceed the request rate. If the error persists, the non-AWS identity provider might be down or not responding.

    ", - "refs": { - } - }, - "IDPRejectedClaimException": { - "base": "

    The identity provider (IdP) reported that authentication failed. This might be because the claim is invalid.

    If this error is returned for the AssumeRoleWithWebIdentity operation, it can also mean that the claim has expired or has been explicitly revoked.

    ", - "refs": { - } - }, - "InvalidAuthorizationMessageException": { - "base": "

    The error returned if the message passed to DecodeAuthorizationMessage was invalid. This can happen if the token contains invalid characters, such as linebreaks.

    ", - "refs": { - } - }, - "InvalidIdentityTokenException": { - "base": "

    The web identity token that was passed could not be validated by AWS. Get a new identity token from the identity provider and then retry the request.

    ", - "refs": { - } - }, - "Issuer": { - "base": null, - "refs": { - "AssumeRoleWithSAMLResponse$Issuer": "

    The value of the Issuer element of the SAML assertion.

    ", - "AssumeRoleWithWebIdentityResponse$Provider": "

    The issuing authority of the web identity token presented. For OpenID Connect ID Tokens this contains the value of the iss field. For OAuth 2.0 access tokens, this contains the value of the ProviderId parameter that was passed in the AssumeRoleWithWebIdentity request.

    " - } - }, - "MalformedPolicyDocumentException": { - "base": "

    The request was rejected because the policy document was malformed. The error message describes the specific error.

    ", - "refs": { - } - }, - "NameQualifier": { - "base": null, - "refs": { - "AssumeRoleWithSAMLResponse$NameQualifier": "

    A hash value based on the concatenation of the Issuer response value, the AWS account ID, and the friendly name (the last part of the ARN) of the SAML provider in IAM. The combination of NameQualifier and Subject can be used to uniquely identify a federated user.

    The following pseudocode shows how the hash value is calculated:

    BASE64 ( SHA1 ( \"https://example.com/saml\" + \"123456789012\" + \"/MySAMLIdP\" ) )

    " - } - }, - "PackedPolicyTooLargeException": { - "base": "

    The request was rejected because the policy document was too large. The error message describes how big the policy document is, in packed form, as a percentage of what the API allows.

    ", - "refs": { - } - }, - "RegionDisabledException": { - "base": "

    STS is not activated in the requested region for the account that is being asked to generate credentials. The account administrator must use the IAM console to activate STS in that region. For more information, see Activating and Deactivating AWS STS in an AWS Region in the IAM User Guide.

    ", - "refs": { - } - }, - "SAMLAssertionType": { - "base": null, - "refs": { - "AssumeRoleWithSAMLRequest$SAMLAssertion": "

    The base-64 encoded SAML authentication response provided by the IdP.

    For more information, see Configuring a Relying Party and Adding Claims in the Using IAM guide.

    " - } - }, - "Subject": { - "base": null, - "refs": { - "AssumeRoleWithSAMLResponse$Subject": "

    The value of the NameID element in the Subject element of the SAML assertion.

    " - } - }, - "SubjectType": { - "base": null, - "refs": { - "AssumeRoleWithSAMLResponse$SubjectType": "

    The format of the name ID, as defined by the Format attribute in the NameID element of the SAML assertion. Typical examples of the format are transient or persistent.

    If the format includes the prefix urn:oasis:names:tc:SAML:2.0:nameid-format, that prefix is removed. For example, urn:oasis:names:tc:SAML:2.0:nameid-format:transient is returned as transient. If the format includes any other prefix, the format is returned with no modifications.

    " - } - }, - "accessKeyIdType": { - "base": null, - "refs": { - "Credentials$AccessKeyId": "

    The access key ID that identifies the temporary security credentials.

    " - } - }, - "accessKeySecretType": { - "base": null, - "refs": { - "Credentials$SecretAccessKey": "

    The secret access key that can be used to sign requests.

    " - } - }, - "accountType": { - "base": null, - "refs": { - "GetCallerIdentityResponse$Account": "

    The AWS account ID number of the account that owns or contains the calling entity.

    " - } - }, - "arnType": { - "base": null, - "refs": { - "AssumeRoleRequest$RoleArn": "

    The Amazon Resource Name (ARN) of the role to assume.

    ", - "AssumeRoleWithSAMLRequest$RoleArn": "

    The Amazon Resource Name (ARN) of the role that the caller is assuming.

    ", - "AssumeRoleWithSAMLRequest$PrincipalArn": "

    The Amazon Resource Name (ARN) of the SAML provider in IAM that describes the IdP.

    ", - "AssumeRoleWithWebIdentityRequest$RoleArn": "

    The Amazon Resource Name (ARN) of the role that the caller is assuming.

    ", - "AssumedRoleUser$Arn": "

    The ARN of the temporary security credentials that are returned from the AssumeRole action. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.

    ", - "FederatedUser$Arn": "

    The ARN that specifies the federated user that is associated with the credentials. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.

    ", - "GetCallerIdentityResponse$Arn": "

    The AWS ARN associated with the calling entity.

    " - } - }, - "assumedRoleIdType": { - "base": null, - "refs": { - "AssumedRoleUser$AssumedRoleId": "

    A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by AWS when the role is created.

    " - } - }, - "clientTokenType": { - "base": null, - "refs": { - "AssumeRoleWithWebIdentityRequest$WebIdentityToken": "

    The OAuth 2.0 access token or OpenID Connect ID token that is provided by the identity provider. Your application must get this token by authenticating the user who is using your application with a web identity provider before the application makes an AssumeRoleWithWebIdentity call.

    " - } - }, - "dateType": { - "base": null, - "refs": { - "Credentials$Expiration": "

    The date on which the current credentials expire.

    " - } - }, - "decodedMessageType": { - "base": null, - "refs": { - "DecodeAuthorizationMessageResponse$DecodedMessage": "

    An XML document that contains the decoded message.

    " - } - }, - "durationSecondsType": { - "base": null, - "refs": { - "GetFederationTokenRequest$DurationSeconds": "

    The duration, in seconds, that the session should last. Acceptable durations for federation sessions range from 900 seconds (15 minutes) to 129600 seconds (36 hours), with 43200 seconds (12 hours) as the default. Sessions obtained using AWS account (root) credentials are restricted to a maximum of 3600 seconds (one hour). If the specified duration is longer than one hour, the session obtained by using AWS account (root) credentials defaults to one hour.

    ", - "GetSessionTokenRequest$DurationSeconds": "

    The duration, in seconds, that the credentials should remain valid. Acceptable durations for IAM user sessions range from 900 seconds (15 minutes) to 129600 seconds (36 hours), with 43200 seconds (12 hours) as the default. Sessions for AWS account owners are restricted to a maximum of 3600 seconds (one hour). If the duration is longer than one hour, the session for AWS account owners defaults to one hour.

    " - } - }, - "encodedMessageType": { - "base": null, - "refs": { - "DecodeAuthorizationMessageRequest$EncodedMessage": "

    The encoded message that was returned with the response.

    " - } - }, - "expiredIdentityTokenMessage": { - "base": null, - "refs": { - "ExpiredTokenException$message": null - } - }, - "externalIdType": { - "base": null, - "refs": { - "AssumeRoleRequest$ExternalId": "

    A unique identifier that is used by third parties when assuming roles in their customers' accounts. For each role that the third party can assume, they should instruct their customers to ensure the role's trust policy checks for the external ID that the third party generated. Each time the third party assumes the role, they should pass the customer's external ID. The external ID is useful in order to help third parties bind a role to the customer who created it. For more information about the external ID, see How to Use an External ID When Granting Access to Your AWS Resources to a Third Party in the IAM User Guide.

    The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:\\/-

    " - } - }, - "federatedIdType": { - "base": null, - "refs": { - "FederatedUser$FederatedUserId": "

    The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.

    " - } - }, - "idpCommunicationErrorMessage": { - "base": null, - "refs": { - "IDPCommunicationErrorException$message": null - } - }, - "idpRejectedClaimMessage": { - "base": null, - "refs": { - "IDPRejectedClaimException$message": null - } - }, - "invalidAuthorizationMessage": { - "base": null, - "refs": { - "InvalidAuthorizationMessageException$message": null - } - }, - "invalidIdentityTokenMessage": { - "base": null, - "refs": { - "InvalidIdentityTokenException$message": null - } - }, - "malformedPolicyDocumentMessage": { - "base": null, - "refs": { - "MalformedPolicyDocumentException$message": null - } - }, - "nonNegativeIntegerType": { - "base": null, - "refs": { - "AssumeRoleResponse$PackedPolicySize": "

    A percentage value that indicates the size of the policy in packed form. The service rejects any policy with a packed size greater than 100 percent, which means the policy exceeded the allowed space.

    ", - "AssumeRoleWithSAMLResponse$PackedPolicySize": "

    A percentage value that indicates the size of the policy in packed form. The service rejects any policy with a packed size greater than 100 percent, which means the policy exceeded the allowed space.

    ", - "AssumeRoleWithWebIdentityResponse$PackedPolicySize": "

    A percentage value that indicates the size of the policy in packed form. The service rejects any policy with a packed size greater than 100 percent, which means the policy exceeded the allowed space.

    ", - "GetFederationTokenResponse$PackedPolicySize": "

    A percentage value indicating the size of the policy in packed form. The service rejects policies for which the packed size is greater than 100 percent of the allowed value.

    " - } - }, - "packedPolicyTooLargeMessage": { - "base": null, - "refs": { - "PackedPolicyTooLargeException$message": null - } - }, - "regionDisabledMessage": { - "base": null, - "refs": { - "RegionDisabledException$message": null - } - }, - "roleDurationSecondsType": { - "base": null, - "refs": { - "AssumeRoleRequest$DurationSeconds": "

    The duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set to 3600 seconds.

    ", - "AssumeRoleWithSAMLRequest$DurationSeconds": "

    The duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set to 3600 seconds. An expiration can also be specified in the SAML authentication response's SessionNotOnOrAfter value. The actual expiration time is whichever value is shorter.

    The maximum duration for a session is 1 hour, and the minimum duration is 15 minutes, even if values outside this range are specified.

    ", - "AssumeRoleWithWebIdentityRequest$DurationSeconds": "

    The duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set to 3600 seconds.

    " - } - }, - "roleSessionNameType": { - "base": null, - "refs": { - "AssumeRoleRequest$RoleSessionName": "

    An identifier for the assumed role session.

    Use the role session name to uniquely identify a session when the same role is assumed by different principals or for different reasons. In cross-account scenarios, the role session name is visible to, and can be logged by the account that owns the role. The role session name is also used in the ARN of the assumed role principal. This means that subsequent cross-account API requests using the temporary security credentials will expose the role session name to the external account in their CloudTrail logs.

    The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "AssumeRoleWithWebIdentityRequest$RoleSessionName": "

    An identifier for the assumed role session. Typically, you pass the name or identifier that is associated with the user who is using your application. That way, the temporary security credentials that your application will use are associated with that user. This session name is included as part of the ARN and assumed role ID in the AssumedRoleUser response element.

    The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    " - } - }, - "serialNumberType": { - "base": null, - "refs": { - "AssumeRoleRequest$SerialNumber": "

    The identification number of the MFA device that is associated with the user who is making the AssumeRole call. Specify this value if the trust policy of the role being assumed includes a condition that requires MFA authentication. The value is either the serial number for a hardware device (such as GAHT12345678) or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user).

    The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    ", - "GetSessionTokenRequest$SerialNumber": "

    The identification number of the MFA device that is associated with the IAM user who is making the GetSessionToken call. Specify this value if the IAM user has a policy that requires MFA authentication. The value is either the serial number for a hardware device (such as GAHT12345678) or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user). You can find the device for an IAM user by going to the AWS Management Console and viewing the user's security credentials.

    The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    " - } - }, - "sessionPolicyDocumentType": { - "base": null, - "refs": { - "AssumeRoleRequest$Policy": "

    An IAM policy in JSON format.

    This parameter is optional. If you pass a policy, the temporary security credentials that are returned by the operation have the permissions that are allowed by both (the intersection of) the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in the IAM User Guide.

    The format for this parameter, as described by its regex pattern, is a string of characters up to 2048 characters in length. The characters can be any ASCII character from the space character to the end of the valid character list (\\u0020-\\u00FF). It can also include the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D) characters.

    The policy plain text must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed binary format with a separate limit. The PackedPolicySize response element indicates by percentage how close to the upper size limit the policy is, with 100% equaling the maximum allowed size.

    ", - "AssumeRoleWithSAMLRequest$Policy": "

    An IAM policy in JSON format.

    The policy parameter is optional. If you pass a policy, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity in the IAM User Guide.

    The format for this parameter, as described by its regex pattern, is a string of characters up to 2048 characters in length. The characters can be any ASCII character from the space character to the end of the valid character list (\\u0020-\\u00FF). It can also include the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D) characters.

    The policy plain text must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed binary format with a separate limit. The PackedPolicySize response element indicates by percentage how close to the upper size limit the policy is, with 100% equaling the maximum allowed size.

    ", - "AssumeRoleWithWebIdentityRequest$Policy": "

    An IAM policy in JSON format.

    The policy parameter is optional. If you pass a policy, the temporary security credentials that are returned by the operation have the permissions that are allowed by both the access policy of the role that is being assumed, and the policy that you pass. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use the passed policy to grant permissions that are in excess of those allowed by the access policy of the role that is being assumed. For more information, see Permissions for AssumeRoleWithWebIdentity in the IAM User Guide.

    The format for this parameter, as described by its regex pattern, is a string of characters up to 2048 characters in length. The characters can be any ASCII character from the space character to the end of the valid character list (\\u0020-\\u00FF). It can also include the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D) characters.

    The policy plain text must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed binary format with a separate limit. The PackedPolicySize response element indicates by percentage how close to the upper size limit the policy is, with 100% equaling the maximum allowed size.

    ", - "GetFederationTokenRequest$Policy": "

    An IAM policy in JSON format that is passed with the GetFederationToken call and evaluated along with the policy or policies that are attached to the IAM user whose credentials are used to call GetFederationToken. The passed policy is used to scope down the permissions that are available to the IAM user, by allowing only a subset of the permissions that are granted to the IAM user. The passed policy cannot grant more permissions than those granted to the IAM user. The final permissions for the federated user are the most restrictive set based on the intersection of the passed policy and the IAM user policy.

    If you do not pass a policy, the resulting temporary security credentials have no effective permissions. The only exception is when the temporary security credentials are used to access a resource that has a resource-based policy that specifically allows the federated user to access the resource.

    The format for this parameter, as described by its regex pattern, is a string of characters up to 2048 characters in length. The characters can be any ASCII character from the space character to the end of the valid character list (\\u0020-\\u00FF). It can also include the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D) characters.

    The policy plain text must be 2048 bytes or shorter. However, an internal conversion compresses it into a packed binary format with a separate limit. The PackedPolicySize response element indicates by percentage how close to the upper size limit the policy is, with 100% equaling the maximum allowed size.

    For more information about how permissions work, see Permissions for GetFederationToken.

    " - } - }, - "tokenCodeType": { - "base": null, - "refs": { - "AssumeRoleRequest$TokenCode": "

    The value provided by the MFA device, if the trust policy of the role being assumed requires MFA (that is, if the policy includes a condition that tests for MFA). If the role being assumed requires MFA and if the TokenCode value is missing or expired, the AssumeRole call returns an \"access denied\" error.

    The format for this parameter, as described by its regex pattern, is a sequence of six numeric digits.

    ", - "GetSessionTokenRequest$TokenCode": "

    The value provided by the MFA device, if MFA is required. If any policy requires the IAM user to submit an MFA code, specify this value. If MFA authentication is required, and the user does not provide a code when requesting a set of temporary security credentials, the user will receive an \"access denied\" response when requesting resources that require MFA authentication.

    The format for this parameter, as described by its regex pattern, is a sequence of six numeric digits.

    " - } - }, - "tokenType": { - "base": null, - "refs": { - "Credentials$SessionToken": "

    The token that users must pass to the service API to use the temporary credentials.

    " - } - }, - "urlType": { - "base": null, - "refs": { - "AssumeRoleWithWebIdentityRequest$ProviderId": "

    The fully qualified host component of the domain name of the identity provider.

    Specify this value only for OAuth 2.0 access tokens. Currently www.amazon.com and graph.facebook.com are the only supported identity providers for OAuth 2.0 access tokens. Do not include URL schemes and port numbers.

    Do not specify this value for OpenID Connect ID tokens.

    " - } - }, - "userIdType": { - "base": null, - "refs": { - "GetCallerIdentityResponse$UserId": "

    The unique identifier of the calling entity. The exact value depends on the type of entity making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide.

    " - } - }, - "userNameType": { - "base": null, - "refs": { - "GetFederationTokenRequest$Name": "

    The name of the federated user. The name is used as an identifier for the temporary security credentials (such as Bob). For example, you can reference the federated user name in a resource-based policy, such as in an Amazon S3 bucket policy.

    The format for this parameter, as described by its regex pattern, is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

    " - } - }, - "webIdentitySubjectType": { - "base": null, - "refs": { - "AssumeRoleWithWebIdentityResponse$SubjectFromWebIdentityToken": "

    The unique user identifier that is returned by the identity provider. This identifier is associated with the WebIdentityToken that was submitted with the AssumeRoleWithWebIdentity call. The identifier is typically unique to the user and the application that acquired the WebIdentityToken (pairwise identifier). For OpenID Connect ID tokens, this field contains the value returned by the identity provider as the token's sub (Subject) claim.

    " - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sts/2011-06-15/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json deleted file mode 100644 index b51ee18ed..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/api-2.json +++ /dev/null @@ -1,1959 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2015-08-24", - "endpointPrefix":"waf", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"WAF", - "serviceFullName":"AWS WAF", - "signatureVersion":"v4", - "targetPrefix":"AWSWAF_20150824" - }, - "operations":{ - "CreateByteMatchSet":{ - "name":"CreateByteMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateByteMatchSetRequest"}, - "output":{"shape":"CreateByteMatchSetResponse"}, - "errors":[ - {"shape":"WAFDisallowedNameException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFStaleDataException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "CreateIPSet":{ - "name":"CreateIPSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateIPSetRequest"}, - "output":{"shape":"CreateIPSetResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFDisallowedNameException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "CreateRule":{ - "name":"CreateRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateRuleRequest"}, - "output":{"shape":"CreateRuleResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFDisallowedNameException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "CreateSizeConstraintSet":{ - "name":"CreateSizeConstraintSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateSizeConstraintSetRequest"}, - "output":{"shape":"CreateSizeConstraintSetResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFDisallowedNameException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "CreateSqlInjectionMatchSet":{ - "name":"CreateSqlInjectionMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateSqlInjectionMatchSetRequest"}, - "output":{"shape":"CreateSqlInjectionMatchSetResponse"}, - "errors":[ - {"shape":"WAFDisallowedNameException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFStaleDataException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "CreateWebACL":{ - "name":"CreateWebACL", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateWebACLRequest"}, - "output":{"shape":"CreateWebACLResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFDisallowedNameException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "CreateXssMatchSet":{ - "name":"CreateXssMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateXssMatchSetRequest"}, - "output":{"shape":"CreateXssMatchSetResponse"}, - "errors":[ - {"shape":"WAFDisallowedNameException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFStaleDataException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "DeleteByteMatchSet":{ - "name":"DeleteByteMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteByteMatchSetRequest"}, - "output":{"shape":"DeleteByteMatchSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFStaleDataException"}, - {"shape":"WAFNonEmptyEntityException"} - ] - }, - "DeleteIPSet":{ - "name":"DeleteIPSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteIPSetRequest"}, - "output":{"shape":"DeleteIPSetResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFNonEmptyEntityException"} - ] - }, - "DeleteRule":{ - "name":"DeleteRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRuleRequest"}, - "output":{"shape":"DeleteRuleResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFNonEmptyEntityException"} - ] - }, - "DeleteSizeConstraintSet":{ - "name":"DeleteSizeConstraintSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteSizeConstraintSetRequest"}, - "output":{"shape":"DeleteSizeConstraintSetResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFNonEmptyEntityException"} - ] - }, - "DeleteSqlInjectionMatchSet":{ - "name":"DeleteSqlInjectionMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteSqlInjectionMatchSetRequest"}, - "output":{"shape":"DeleteSqlInjectionMatchSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFStaleDataException"}, - {"shape":"WAFNonEmptyEntityException"} - ] - }, - "DeleteWebACL":{ - "name":"DeleteWebACL", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteWebACLRequest"}, - "output":{"shape":"DeleteWebACLResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFNonEmptyEntityException"} - ] - }, - "DeleteXssMatchSet":{ - "name":"DeleteXssMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteXssMatchSetRequest"}, - "output":{"shape":"DeleteXssMatchSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFStaleDataException"}, - {"shape":"WAFNonEmptyEntityException"} - ] - }, - "GetByteMatchSet":{ - "name":"GetByteMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetByteMatchSetRequest"}, - "output":{"shape":"GetByteMatchSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"} - ] - }, - "GetChangeToken":{ - "name":"GetChangeToken", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetChangeTokenRequest"}, - "output":{"shape":"GetChangeTokenResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"} - ] - }, - "GetChangeTokenStatus":{ - "name":"GetChangeTokenStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetChangeTokenStatusRequest"}, - "output":{"shape":"GetChangeTokenStatusResponse"}, - "errors":[ - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFInternalErrorException"} - ] - }, - "GetIPSet":{ - "name":"GetIPSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetIPSetRequest"}, - "output":{"shape":"GetIPSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"} - ] - }, - "GetRule":{ - "name":"GetRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetRuleRequest"}, - "output":{"shape":"GetRuleResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"} - ] - }, - "GetSampledRequests":{ - "name":"GetSampledRequests", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetSampledRequestsRequest"}, - "output":{"shape":"GetSampledRequestsResponse"}, - "errors":[ - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFInternalErrorException"} - ] - }, - "GetSizeConstraintSet":{ - "name":"GetSizeConstraintSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetSizeConstraintSetRequest"}, - "output":{"shape":"GetSizeConstraintSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"} - ] - }, - "GetSqlInjectionMatchSet":{ - "name":"GetSqlInjectionMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetSqlInjectionMatchSetRequest"}, - "output":{"shape":"GetSqlInjectionMatchSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"} - ] - }, - "GetWebACL":{ - "name":"GetWebACL", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetWebACLRequest"}, - "output":{"shape":"GetWebACLResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"} - ] - }, - "GetXssMatchSet":{ - "name":"GetXssMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetXssMatchSetRequest"}, - "output":{"shape":"GetXssMatchSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"} - ] - }, - "ListByteMatchSets":{ - "name":"ListByteMatchSets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListByteMatchSetsRequest"}, - "output":{"shape":"ListByteMatchSetsResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"} - ] - }, - "ListIPSets":{ - "name":"ListIPSets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListIPSetsRequest"}, - "output":{"shape":"ListIPSetsResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"} - ] - }, - "ListRules":{ - "name":"ListRules", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRulesRequest"}, - "output":{"shape":"ListRulesResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"} - ] - }, - "ListSizeConstraintSets":{ - "name":"ListSizeConstraintSets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListSizeConstraintSetsRequest"}, - "output":{"shape":"ListSizeConstraintSetsResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"} - ] - }, - "ListSqlInjectionMatchSets":{ - "name":"ListSqlInjectionMatchSets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListSqlInjectionMatchSetsRequest"}, - "output":{"shape":"ListSqlInjectionMatchSetsResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"} - ] - }, - "ListWebACLs":{ - "name":"ListWebACLs", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListWebACLsRequest"}, - "output":{"shape":"ListWebACLsResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"} - ] - }, - "ListXssMatchSets":{ - "name":"ListXssMatchSets", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListXssMatchSetsRequest"}, - "output":{"shape":"ListXssMatchSetsResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"} - ] - }, - "UpdateByteMatchSet":{ - "name":"UpdateByteMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateByteMatchSetRequest"}, - "output":{"shape":"UpdateByteMatchSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFInvalidOperationException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFNonexistentContainerException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFStaleDataException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "UpdateIPSet":{ - "name":"UpdateIPSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateIPSetRequest"}, - "output":{"shape":"UpdateIPSetResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFInvalidOperationException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFNonexistentContainerException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "UpdateRule":{ - "name":"UpdateRule", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateRuleRequest"}, - "output":{"shape":"UpdateRuleResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFInvalidOperationException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFNonexistentContainerException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "UpdateSizeConstraintSet":{ - "name":"UpdateSizeConstraintSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateSizeConstraintSetRequest"}, - "output":{"shape":"UpdateSizeConstraintSetResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFInvalidOperationException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFNonexistentContainerException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "UpdateSqlInjectionMatchSet":{ - "name":"UpdateSqlInjectionMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateSqlInjectionMatchSetRequest"}, - "output":{"shape":"UpdateSqlInjectionMatchSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFInvalidOperationException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFNonexistentContainerException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFStaleDataException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "UpdateWebACL":{ - "name":"UpdateWebACL", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateWebACLRequest"}, - "output":{"shape":"UpdateWebACLResponse"}, - "errors":[ - {"shape":"WAFStaleDataException"}, - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFInvalidOperationException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFNonexistentContainerException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFReferencedItemException"}, - {"shape":"WAFLimitsExceededException"} - ] - }, - "UpdateXssMatchSet":{ - "name":"UpdateXssMatchSet", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateXssMatchSetRequest"}, - "output":{"shape":"UpdateXssMatchSetResponse"}, - "errors":[ - {"shape":"WAFInternalErrorException"}, - {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFInvalidOperationException"}, - {"shape":"WAFInvalidParameterException"}, - {"shape":"WAFNonexistentContainerException"}, - {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFStaleDataException"}, - {"shape":"WAFLimitsExceededException"} - ] - } - }, - "shapes":{ - "Action":{"type":"string"}, - "ActivatedRule":{ - "type":"structure", - "required":[ - "Priority", - "RuleId", - "Action" - ], - "members":{ - "Priority":{"shape":"RulePriority"}, - "RuleId":{"shape":"ResourceId"}, - "Action":{"shape":"WafAction"} - } - }, - "ActivatedRules":{ - "type":"list", - "member":{"shape":"ActivatedRule"} - }, - "ByteMatchSet":{ - "type":"structure", - "required":[ - "ByteMatchSetId", - "ByteMatchTuples" - ], - "members":{ - "ByteMatchSetId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"}, - "ByteMatchTuples":{"shape":"ByteMatchTuples"} - } - }, - "ByteMatchSetSummaries":{ - "type":"list", - "member":{"shape":"ByteMatchSetSummary"} - }, - "ByteMatchSetSummary":{ - "type":"structure", - "required":[ - "ByteMatchSetId", - "Name" - ], - "members":{ - "ByteMatchSetId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"} - } - }, - "ByteMatchSetUpdate":{ - "type":"structure", - "required":[ - "Action", - "ByteMatchTuple" - ], - "members":{ - "Action":{"shape":"ChangeAction"}, - "ByteMatchTuple":{"shape":"ByteMatchTuple"} - } - }, - "ByteMatchSetUpdates":{ - "type":"list", - "member":{"shape":"ByteMatchSetUpdate"} - }, - "ByteMatchTargetString":{"type":"blob"}, - "ByteMatchTuple":{ - "type":"structure", - "required":[ - "FieldToMatch", - "TargetString", - "TextTransformation", - "PositionalConstraint" - ], - "members":{ - "FieldToMatch":{"shape":"FieldToMatch"}, - "TargetString":{"shape":"ByteMatchTargetString"}, - "TextTransformation":{"shape":"TextTransformation"}, - "PositionalConstraint":{"shape":"PositionalConstraint"} - } - }, - "ByteMatchTuples":{ - "type":"list", - "member":{"shape":"ByteMatchTuple"} - }, - "ChangeAction":{ - "type":"string", - "enum":[ - "INSERT", - "DELETE" - ] - }, - "ChangeToken":{"type":"string"}, - "ChangeTokenStatus":{ - "type":"string", - "enum":[ - "PROVISIONED", - "PENDING", - "INSYNC" - ] - }, - "ComparisonOperator":{ - "type":"string", - "enum":[ - "EQ", - "NE", - "LE", - "LT", - "GE", - "GT" - ] - }, - "Country":{"type":"string"}, - "CreateByteMatchSetRequest":{ - "type":"structure", - "required":[ - "Name", - "ChangeToken" - ], - "members":{ - "Name":{"shape":"ResourceName"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateByteMatchSetResponse":{ - "type":"structure", - "members":{ - "ByteMatchSet":{"shape":"ByteMatchSet"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateIPSetRequest":{ - "type":"structure", - "required":[ - "Name", - "ChangeToken" - ], - "members":{ - "Name":{"shape":"ResourceName"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateIPSetResponse":{ - "type":"structure", - "members":{ - "IPSet":{"shape":"IPSet"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateRuleRequest":{ - "type":"structure", - "required":[ - "Name", - "MetricName", - "ChangeToken" - ], - "members":{ - "Name":{"shape":"ResourceName"}, - "MetricName":{"shape":"MetricName"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateRuleResponse":{ - "type":"structure", - "members":{ - "Rule":{"shape":"Rule"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateSizeConstraintSetRequest":{ - "type":"structure", - "required":[ - "Name", - "ChangeToken" - ], - "members":{ - "Name":{"shape":"ResourceName"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateSizeConstraintSetResponse":{ - "type":"structure", - "members":{ - "SizeConstraintSet":{"shape":"SizeConstraintSet"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateSqlInjectionMatchSetRequest":{ - "type":"structure", - "required":[ - "Name", - "ChangeToken" - ], - "members":{ - "Name":{"shape":"ResourceName"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateSqlInjectionMatchSetResponse":{ - "type":"structure", - "members":{ - "SqlInjectionMatchSet":{"shape":"SqlInjectionMatchSet"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateWebACLRequest":{ - "type":"structure", - "required":[ - "Name", - "MetricName", - "DefaultAction", - "ChangeToken" - ], - "members":{ - "Name":{"shape":"ResourceName"}, - "MetricName":{"shape":"MetricName"}, - "DefaultAction":{"shape":"WafAction"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateWebACLResponse":{ - "type":"structure", - "members":{ - "WebACL":{"shape":"WebACL"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateXssMatchSetRequest":{ - "type":"structure", - "required":[ - "Name", - "ChangeToken" - ], - "members":{ - "Name":{"shape":"ResourceName"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "CreateXssMatchSetResponse":{ - "type":"structure", - "members":{ - "XssMatchSet":{"shape":"XssMatchSet"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteByteMatchSetRequest":{ - "type":"structure", - "required":[ - "ByteMatchSetId", - "ChangeToken" - ], - "members":{ - "ByteMatchSetId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteByteMatchSetResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteIPSetRequest":{ - "type":"structure", - "required":[ - "IPSetId", - "ChangeToken" - ], - "members":{ - "IPSetId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteIPSetResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteRuleRequest":{ - "type":"structure", - "required":[ - "RuleId", - "ChangeToken" - ], - "members":{ - "RuleId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteRuleResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteSizeConstraintSetRequest":{ - "type":"structure", - "required":[ - "SizeConstraintSetId", - "ChangeToken" - ], - "members":{ - "SizeConstraintSetId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteSizeConstraintSetResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteSqlInjectionMatchSetRequest":{ - "type":"structure", - "required":[ - "SqlInjectionMatchSetId", - "ChangeToken" - ], - "members":{ - "SqlInjectionMatchSetId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteSqlInjectionMatchSetResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteWebACLRequest":{ - "type":"structure", - "required":[ - "WebACLId", - "ChangeToken" - ], - "members":{ - "WebACLId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteWebACLResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteXssMatchSetRequest":{ - "type":"structure", - "required":[ - "XssMatchSetId", - "ChangeToken" - ], - "members":{ - "XssMatchSetId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "DeleteXssMatchSetResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "FieldToMatch":{ - "type":"structure", - "required":["Type"], - "members":{ - "Type":{"shape":"MatchFieldType"}, - "Data":{"shape":"MatchFieldData"} - } - }, - "GetByteMatchSetRequest":{ - "type":"structure", - "required":["ByteMatchSetId"], - "members":{ - "ByteMatchSetId":{"shape":"ResourceId"} - } - }, - "GetByteMatchSetResponse":{ - "type":"structure", - "members":{ - "ByteMatchSet":{"shape":"ByteMatchSet"} - } - }, - "GetChangeTokenRequest":{ - "type":"structure", - "members":{ - } - }, - "GetChangeTokenResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "GetChangeTokenStatusRequest":{ - "type":"structure", - "required":["ChangeToken"], - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "GetChangeTokenStatusResponse":{ - "type":"structure", - "members":{ - "ChangeTokenStatus":{"shape":"ChangeTokenStatus"} - } - }, - "GetIPSetRequest":{ - "type":"structure", - "required":["IPSetId"], - "members":{ - "IPSetId":{"shape":"ResourceId"} - } - }, - "GetIPSetResponse":{ - "type":"structure", - "members":{ - "IPSet":{"shape":"IPSet"} - } - }, - "GetRuleRequest":{ - "type":"structure", - "required":["RuleId"], - "members":{ - "RuleId":{"shape":"ResourceId"} - } - }, - "GetRuleResponse":{ - "type":"structure", - "members":{ - "Rule":{"shape":"Rule"} - } - }, - "GetSampledRequestsRequest":{ - "type":"structure", - "required":[ - "WebAclId", - "RuleId", - "TimeWindow", - "MaxItems" - ], - "members":{ - "WebAclId":{"shape":"ResourceId"}, - "RuleId":{"shape":"ResourceId"}, - "TimeWindow":{"shape":"TimeWindow"}, - "MaxItems":{"shape":"ListMaxItems"} - } - }, - "GetSampledRequestsResponse":{ - "type":"structure", - "members":{ - "SampledRequests":{"shape":"SampledHTTPRequests"}, - "PopulationSize":{"shape":"PopulationSize"}, - "TimeWindow":{"shape":"TimeWindow"} - } - }, - "GetSizeConstraintSetRequest":{ - "type":"structure", - "required":["SizeConstraintSetId"], - "members":{ - "SizeConstraintSetId":{"shape":"ResourceId"} - } - }, - "GetSizeConstraintSetResponse":{ - "type":"structure", - "members":{ - "SizeConstraintSet":{"shape":"SizeConstraintSet"} - } - }, - "GetSqlInjectionMatchSetRequest":{ - "type":"structure", - "required":["SqlInjectionMatchSetId"], - "members":{ - "SqlInjectionMatchSetId":{"shape":"ResourceId"} - } - }, - "GetSqlInjectionMatchSetResponse":{ - "type":"structure", - "members":{ - "SqlInjectionMatchSet":{"shape":"SqlInjectionMatchSet"} - } - }, - "GetWebACLRequest":{ - "type":"structure", - "required":["WebACLId"], - "members":{ - "WebACLId":{"shape":"ResourceId"} - } - }, - "GetWebACLResponse":{ - "type":"structure", - "members":{ - "WebACL":{"shape":"WebACL"} - } - }, - "GetXssMatchSetRequest":{ - "type":"structure", - "required":["XssMatchSetId"], - "members":{ - "XssMatchSetId":{"shape":"ResourceId"} - } - }, - "GetXssMatchSetResponse":{ - "type":"structure", - "members":{ - "XssMatchSet":{"shape":"XssMatchSet"} - } - }, - "HTTPHeader":{ - "type":"structure", - "members":{ - "Name":{"shape":"HeaderName"}, - "Value":{"shape":"HeaderValue"} - } - }, - "HTTPHeaders":{ - "type":"list", - "member":{"shape":"HTTPHeader"} - }, - "HTTPMethod":{"type":"string"}, - "HTTPRequest":{ - "type":"structure", - "members":{ - "ClientIP":{"shape":"IPString"}, - "Country":{"shape":"Country"}, - "URI":{"shape":"URIString"}, - "Method":{"shape":"HTTPMethod"}, - "HTTPVersion":{"shape":"HTTPVersion"}, - "Headers":{"shape":"HTTPHeaders"} - } - }, - "HTTPVersion":{"type":"string"}, - "HeaderName":{"type":"string"}, - "HeaderValue":{"type":"string"}, - "IPSet":{ - "type":"structure", - "required":[ - "IPSetId", - "IPSetDescriptors" - ], - "members":{ - "IPSetId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"}, - "IPSetDescriptors":{"shape":"IPSetDescriptors"} - } - }, - "IPSetDescriptor":{ - "type":"structure", - "required":[ - "Type", - "Value" - ], - "members":{ - "Type":{"shape":"IPSetDescriptorType"}, - "Value":{"shape":"IPSetDescriptorValue"} - } - }, - "IPSetDescriptorType":{ - "type":"string", - "enum":["IPV4"] - }, - "IPSetDescriptorValue":{"type":"string"}, - "IPSetDescriptors":{ - "type":"list", - "member":{"shape":"IPSetDescriptor"} - }, - "IPSetSummaries":{ - "type":"list", - "member":{"shape":"IPSetSummary"} - }, - "IPSetSummary":{ - "type":"structure", - "required":[ - "IPSetId", - "Name" - ], - "members":{ - "IPSetId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"} - } - }, - "IPSetUpdate":{ - "type":"structure", - "required":[ - "Action", - "IPSetDescriptor" - ], - "members":{ - "Action":{"shape":"ChangeAction"}, - "IPSetDescriptor":{"shape":"IPSetDescriptor"} - } - }, - "IPSetUpdates":{ - "type":"list", - "member":{"shape":"IPSetUpdate"} - }, - "IPString":{"type":"string"}, - "ListByteMatchSetsRequest":{ - "type":"structure", - "required":["Limit"], - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "Limit":{"shape":"PaginationLimit"} - } - }, - "ListByteMatchSetsResponse":{ - "type":"structure", - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "ByteMatchSets":{"shape":"ByteMatchSetSummaries"} - } - }, - "ListIPSetsRequest":{ - "type":"structure", - "required":["Limit"], - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "Limit":{"shape":"PaginationLimit"} - } - }, - "ListIPSetsResponse":{ - "type":"structure", - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "IPSets":{"shape":"IPSetSummaries"} - } - }, - "ListMaxItems":{ - "type":"long", - "max":100, - "min":1 - }, - "ListRulesRequest":{ - "type":"structure", - "required":["Limit"], - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "Limit":{"shape":"PaginationLimit"} - } - }, - "ListRulesResponse":{ - "type":"structure", - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "Rules":{"shape":"RuleSummaries"} - } - }, - "ListSizeConstraintSetsRequest":{ - "type":"structure", - "required":["Limit"], - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "Limit":{"shape":"PaginationLimit"} - } - }, - "ListSizeConstraintSetsResponse":{ - "type":"structure", - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "SizeConstraintSets":{"shape":"SizeConstraintSetSummaries"} - } - }, - "ListSqlInjectionMatchSetsRequest":{ - "type":"structure", - "required":["Limit"], - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "Limit":{"shape":"PaginationLimit"} - } - }, - "ListSqlInjectionMatchSetsResponse":{ - "type":"structure", - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "SqlInjectionMatchSets":{"shape":"SqlInjectionMatchSetSummaries"} - } - }, - "ListWebACLsRequest":{ - "type":"structure", - "required":["Limit"], - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "Limit":{"shape":"PaginationLimit"} - } - }, - "ListWebACLsResponse":{ - "type":"structure", - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "WebACLs":{"shape":"WebACLSummaries"} - } - }, - "ListXssMatchSetsRequest":{ - "type":"structure", - "required":["Limit"], - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "Limit":{"shape":"PaginationLimit"} - } - }, - "ListXssMatchSetsResponse":{ - "type":"structure", - "members":{ - "NextMarker":{"shape":"NextMarker"}, - "XssMatchSets":{"shape":"XssMatchSetSummaries"} - } - }, - "MatchFieldData":{"type":"string"}, - "MatchFieldType":{ - "type":"string", - "enum":[ - "URI", - "QUERY_STRING", - "HEADER", - "METHOD", - "BODY" - ] - }, - "MetricName":{"type":"string"}, - "Negated":{"type":"boolean"}, - "NextMarker":{ - "type":"string", - "min":1 - }, - "PaginationLimit":{ - "type":"integer", - "max":100, - "min":1 - }, - "ParameterExceptionField":{ - "type":"string", - "enum":[ - "CHANGE_ACTION", - "WAF_ACTION", - "PREDICATE_TYPE", - "IPSET_TYPE", - "BYTE_MATCH_FIELD_TYPE", - "SQL_INJECTION_MATCH_FIELD_TYPE", - "BYTE_MATCH_TEXT_TRANSFORMATION", - "BYTE_MATCH_POSITIONAL_CONSTRAINT", - "SIZE_CONSTRAINT_COMPARISON_OPERATOR" - ] - }, - "ParameterExceptionParameter":{ - "type":"string", - "min":1 - }, - "ParameterExceptionReason":{ - "type":"string", - "enum":[ - "INVALID_OPTION", - "ILLEGAL_COMBINATION" - ] - }, - "PopulationSize":{"type":"long"}, - "PositionalConstraint":{ - "type":"string", - "enum":[ - "EXACTLY", - "STARTS_WITH", - "ENDS_WITH", - "CONTAINS", - "CONTAINS_WORD" - ] - }, - "Predicate":{ - "type":"structure", - "required":[ - "Negated", - "Type", - "DataId" - ], - "members":{ - "Negated":{"shape":"Negated"}, - "Type":{"shape":"PredicateType"}, - "DataId":{"shape":"ResourceId"} - } - }, - "PredicateType":{ - "type":"string", - "enum":[ - "IPMatch", - "ByteMatch", - "SqlInjectionMatch", - "SizeConstraint", - "XssMatch" - ] - }, - "Predicates":{ - "type":"list", - "member":{"shape":"Predicate"} - }, - "ResourceId":{ - "type":"string", - "max":128, - "min":1 - }, - "ResourceName":{ - "type":"string", - "max":128, - "min":1 - }, - "Rule":{ - "type":"structure", - "required":[ - "RuleId", - "Predicates" - ], - "members":{ - "RuleId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"}, - "MetricName":{"shape":"MetricName"}, - "Predicates":{"shape":"Predicates"} - } - }, - "RulePriority":{"type":"integer"}, - "RuleSummaries":{ - "type":"list", - "member":{"shape":"RuleSummary"} - }, - "RuleSummary":{ - "type":"structure", - "required":[ - "RuleId", - "Name" - ], - "members":{ - "RuleId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"} - } - }, - "RuleUpdate":{ - "type":"structure", - "required":[ - "Action", - "Predicate" - ], - "members":{ - "Action":{"shape":"ChangeAction"}, - "Predicate":{"shape":"Predicate"} - } - }, - "RuleUpdates":{ - "type":"list", - "member":{"shape":"RuleUpdate"} - }, - "SampleWeight":{ - "type":"long", - "min":0 - }, - "SampledHTTPRequest":{ - "type":"structure", - "required":[ - "Request", - "Weight" - ], - "members":{ - "Request":{"shape":"HTTPRequest"}, - "Weight":{"shape":"SampleWeight"}, - "Timestamp":{"shape":"Timestamp"}, - "Action":{"shape":"Action"} - } - }, - "SampledHTTPRequests":{ - "type":"list", - "member":{"shape":"SampledHTTPRequest"} - }, - "Size":{ - "type":"long", - "max":21474836480, - "min":0 - }, - "SizeConstraint":{ - "type":"structure", - "required":[ - "FieldToMatch", - "TextTransformation", - "ComparisonOperator", - "Size" - ], - "members":{ - "FieldToMatch":{"shape":"FieldToMatch"}, - "TextTransformation":{"shape":"TextTransformation"}, - "ComparisonOperator":{"shape":"ComparisonOperator"}, - "Size":{"shape":"Size"} - } - }, - "SizeConstraintSet":{ - "type":"structure", - "required":[ - "SizeConstraintSetId", - "SizeConstraints" - ], - "members":{ - "SizeConstraintSetId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"}, - "SizeConstraints":{"shape":"SizeConstraints"} - } - }, - "SizeConstraintSetSummaries":{ - "type":"list", - "member":{"shape":"SizeConstraintSetSummary"} - }, - "SizeConstraintSetSummary":{ - "type":"structure", - "required":[ - "SizeConstraintSetId", - "Name" - ], - "members":{ - "SizeConstraintSetId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"} - } - }, - "SizeConstraintSetUpdate":{ - "type":"structure", - "required":[ - "Action", - "SizeConstraint" - ], - "members":{ - "Action":{"shape":"ChangeAction"}, - "SizeConstraint":{"shape":"SizeConstraint"} - } - }, - "SizeConstraintSetUpdates":{ - "type":"list", - "member":{"shape":"SizeConstraintSetUpdate"} - }, - "SizeConstraints":{ - "type":"list", - "member":{"shape":"SizeConstraint"} - }, - "SqlInjectionMatchSet":{ - "type":"structure", - "required":[ - "SqlInjectionMatchSetId", - "SqlInjectionMatchTuples" - ], - "members":{ - "SqlInjectionMatchSetId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"}, - "SqlInjectionMatchTuples":{"shape":"SqlInjectionMatchTuples"} - } - }, - "SqlInjectionMatchSetSummaries":{ - "type":"list", - "member":{"shape":"SqlInjectionMatchSetSummary"} - }, - "SqlInjectionMatchSetSummary":{ - "type":"structure", - "required":[ - "SqlInjectionMatchSetId", - "Name" - ], - "members":{ - "SqlInjectionMatchSetId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"} - } - }, - "SqlInjectionMatchSetUpdate":{ - "type":"structure", - "required":[ - "Action", - "SqlInjectionMatchTuple" - ], - "members":{ - "Action":{"shape":"ChangeAction"}, - "SqlInjectionMatchTuple":{"shape":"SqlInjectionMatchTuple"} - } - }, - "SqlInjectionMatchSetUpdates":{ - "type":"list", - "member":{"shape":"SqlInjectionMatchSetUpdate"} - }, - "SqlInjectionMatchTuple":{ - "type":"structure", - "required":[ - "FieldToMatch", - "TextTransformation" - ], - "members":{ - "FieldToMatch":{"shape":"FieldToMatch"}, - "TextTransformation":{"shape":"TextTransformation"} - } - }, - "SqlInjectionMatchTuples":{ - "type":"list", - "member":{"shape":"SqlInjectionMatchTuple"} - }, - "TextTransformation":{ - "type":"string", - "enum":[ - "NONE", - "COMPRESS_WHITE_SPACE", - "HTML_ENTITY_DECODE", - "LOWERCASE", - "CMD_LINE", - "URL_DECODE" - ] - }, - "TimeWindow":{ - "type":"structure", - "required":[ - "StartTime", - "EndTime" - ], - "members":{ - "StartTime":{"shape":"Timestamp"}, - "EndTime":{"shape":"Timestamp"} - } - }, - "Timestamp":{"type":"timestamp"}, - "URIString":{"type":"string"}, - "UpdateByteMatchSetRequest":{ - "type":"structure", - "required":[ - "ByteMatchSetId", - "ChangeToken", - "Updates" - ], - "members":{ - "ByteMatchSetId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"}, - "Updates":{"shape":"ByteMatchSetUpdates"} - } - }, - "UpdateByteMatchSetResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "UpdateIPSetRequest":{ - "type":"structure", - "required":[ - "IPSetId", - "ChangeToken", - "Updates" - ], - "members":{ - "IPSetId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"}, - "Updates":{"shape":"IPSetUpdates"} - } - }, - "UpdateIPSetResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "UpdateRuleRequest":{ - "type":"structure", - "required":[ - "RuleId", - "ChangeToken", - "Updates" - ], - "members":{ - "RuleId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"}, - "Updates":{"shape":"RuleUpdates"} - } - }, - "UpdateRuleResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "UpdateSizeConstraintSetRequest":{ - "type":"structure", - "required":[ - "SizeConstraintSetId", - "ChangeToken", - "Updates" - ], - "members":{ - "SizeConstraintSetId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"}, - "Updates":{"shape":"SizeConstraintSetUpdates"} - } - }, - "UpdateSizeConstraintSetResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "UpdateSqlInjectionMatchSetRequest":{ - "type":"structure", - "required":[ - "SqlInjectionMatchSetId", - "ChangeToken", - "Updates" - ], - "members":{ - "SqlInjectionMatchSetId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"}, - "Updates":{"shape":"SqlInjectionMatchSetUpdates"} - } - }, - "UpdateSqlInjectionMatchSetResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "UpdateWebACLRequest":{ - "type":"structure", - "required":[ - "WebACLId", - "ChangeToken" - ], - "members":{ - "WebACLId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"}, - "Updates":{"shape":"WebACLUpdates"}, - "DefaultAction":{"shape":"WafAction"} - } - }, - "UpdateWebACLResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "UpdateXssMatchSetRequest":{ - "type":"structure", - "required":[ - "XssMatchSetId", - "ChangeToken", - "Updates" - ], - "members":{ - "XssMatchSetId":{"shape":"ResourceId"}, - "ChangeToken":{"shape":"ChangeToken"}, - "Updates":{"shape":"XssMatchSetUpdates"} - } - }, - "UpdateXssMatchSetResponse":{ - "type":"structure", - "members":{ - "ChangeToken":{"shape":"ChangeToken"} - } - }, - "WAFDisallowedNameException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "WAFInternalErrorException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true, - "fault":true - }, - "WAFInvalidAccountException":{ - "type":"structure", - "members":{ - }, - "exception":true - }, - "WAFInvalidOperationException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "WAFInvalidParameterException":{ - "type":"structure", - "members":{ - "field":{"shape":"ParameterExceptionField"}, - "parameter":{"shape":"ParameterExceptionParameter"}, - "reason":{"shape":"ParameterExceptionReason"} - }, - "exception":true - }, - "WAFLimitsExceededException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "WAFNonEmptyEntityException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "WAFNonexistentContainerException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "WAFNonexistentItemException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "WAFReferencedItemException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "WAFStaleDataException":{ - "type":"structure", - "members":{ - "message":{"shape":"errorMessage"} - }, - "exception":true - }, - "WafAction":{ - "type":"structure", - "required":["Type"], - "members":{ - "Type":{"shape":"WafActionType"} - } - }, - "WafActionType":{ - "type":"string", - "enum":[ - "BLOCK", - "ALLOW", - "COUNT" - ] - }, - "WebACL":{ - "type":"structure", - "required":[ - "WebACLId", - "DefaultAction", - "Rules" - ], - "members":{ - "WebACLId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"}, - "MetricName":{"shape":"MetricName"}, - "DefaultAction":{"shape":"WafAction"}, - "Rules":{"shape":"ActivatedRules"} - } - }, - "WebACLSummaries":{ - "type":"list", - "member":{"shape":"WebACLSummary"} - }, - "WebACLSummary":{ - "type":"structure", - "required":[ - "WebACLId", - "Name" - ], - "members":{ - "WebACLId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"} - } - }, - "WebACLUpdate":{ - "type":"structure", - "required":[ - "Action", - "ActivatedRule" - ], - "members":{ - "Action":{"shape":"ChangeAction"}, - "ActivatedRule":{"shape":"ActivatedRule"} - } - }, - "WebACLUpdates":{ - "type":"list", - "member":{"shape":"WebACLUpdate"} - }, - "XssMatchSet":{ - "type":"structure", - "required":[ - "XssMatchSetId", - "XssMatchTuples" - ], - "members":{ - "XssMatchSetId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"}, - "XssMatchTuples":{"shape":"XssMatchTuples"} - } - }, - "XssMatchSetSummaries":{ - "type":"list", - "member":{"shape":"XssMatchSetSummary"} - }, - "XssMatchSetSummary":{ - "type":"structure", - "required":[ - "XssMatchSetId", - "Name" - ], - "members":{ - "XssMatchSetId":{"shape":"ResourceId"}, - "Name":{"shape":"ResourceName"} - } - }, - "XssMatchSetUpdate":{ - "type":"structure", - "required":[ - "Action", - "XssMatchTuple" - ], - "members":{ - "Action":{"shape":"ChangeAction"}, - "XssMatchTuple":{"shape":"XssMatchTuple"} - } - }, - "XssMatchSetUpdates":{ - "type":"list", - "member":{"shape":"XssMatchSetUpdate"} - }, - "XssMatchTuple":{ - "type":"structure", - "required":[ - "FieldToMatch", - "TextTransformation" - ], - "members":{ - "FieldToMatch":{"shape":"FieldToMatch"}, - "TextTransformation":{"shape":"TextTransformation"} - } - }, - "XssMatchTuples":{ - "type":"list", - "member":{"shape":"XssMatchTuple"} - }, - "errorMessage":{"type":"string"} - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json deleted file mode 100644 index a580dc663..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/docs-2.json +++ /dev/null @@ -1,1208 +0,0 @@ -{ - "version": "2.0", - "service": "

    This is the AWS WAF API Reference. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the AWS WAF Developer Guide.

    ", - "operations": { - "CreateByteMatchSet": "

    Creates a ByteMatchSet. You then use UpdateByteMatchSet to identify the part of a web request that you want AWS WAF to inspect, such as the values of the User-Agent header or the query string. For example, you can create a ByteMatchSet that matches any requests with User-Agent headers that contain the string BadBot. You can then configure AWS WAF to reject those requests.

    To create and configure a ByteMatchSet, perform the following steps:

    1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateByteMatchSet request.
    2. Submit a CreateByteMatchSet request.
    3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateByteMatchSet request.
    4. Submit an UpdateByteMatchSet request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "CreateIPSet": "

    Creates an IPSet, which you use to specify which web requests you want to allow or block based on the IP addresses that the requests originate from. For example, if you're receiving a lot of requests from one or more individual IP addresses or one or more ranges of IP addresses and you want to block the requests, you can create an IPSet that contains those IP addresses and then configure AWS WAF to block the requests.

    To create and configure an IPSet, perform the following steps:

    1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateIPSet request.
    2. Submit a CreateIPSet request.
    3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.
    4. Submit an UpdateIPSet request to specify the IP addresses that you want AWS WAF to watch for.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "CreateRule": "

    Creates a Rule, which contains the IPSet objects, ByteMatchSet objects, and other predicates that identify the requests that you want to block. If you add more than one predicate to a Rule, a request must match all of the specifications to be allowed or blocked. For example, suppose you add the following to a Rule:

    • An IPSet that matches the IP address 192.0.2.44/32
    • A ByteMatchSet that matches BadBot in the User-Agent header

    You then add the Rule to a WebACL and specify that you want to blocks requests that satisfy the Rule. For a request to be blocked, it must come from the IP address 192.0.2.44 and the User-Agent header in the request must contain the value BadBot.

    To create and configure a Rule, perform the following steps:

    1. Create and update the predicates that you want to include in the Rule. For more information, see CreateByteMatchSet, CreateIPSet, and CreateSqlInjectionMatchSet.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateRule request.
    3. Submit a CreateRule request.
    4. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateRule request.
    5. Submit an UpdateRule request to specify the predicates that you want to include in the Rule.
    6. Create and update a WebACL that contains the Rule. For more information, see CreateWebACL.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "CreateSizeConstraintSet": "

    Creates a SizeConstraintSet. You then use UpdateSizeConstraintSet to identify the part of a web request that you want AWS WAF to check for length, such as the length of the User-Agent header or the length of the query string. For example, you can create a SizeConstraintSet that matches any requests that have a query string that is longer than 100 bytes. You can then configure AWS WAF to reject those requests.

    To create and configure a SizeConstraintSet, perform the following steps:

    1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateSizeConstraintSet request.
    2. Submit a CreateSizeConstraintSet request.
    3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateSizeConstraintSet request.
    4. Submit an UpdateSizeConstraintSet request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "CreateSqlInjectionMatchSet": "

    Creates a SqlInjectionMatchSet, which you use to allow, block, or count requests that contain snippets of SQL code in a specified part of web requests. AWS WAF searches for character sequences that are likely to be malicious strings.

    To create and configure a SqlInjectionMatchSet, perform the following steps:

    1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateSqlInjectionMatchSet request.
    2. Submit a CreateSqlInjectionMatchSet request.
    3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateSqlInjectionMatchSet request.
    4. Submit an UpdateSqlInjectionMatchSet request to specify the parts of web requests in which you want to allow, block, or count malicious SQL code.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "CreateWebACL": "

    Creates a WebACL, which contains the Rules that identify the CloudFront web requests that you want to allow, block, or count. AWS WAF evaluates Rules in order based on the value of Priority for each Rule.

    You also specify a default action, either ALLOW or BLOCK. If a web request doesn't match any of the Rules in a WebACL, AWS WAF responds to the request with the default action.

    To create and configure a WebACL, perform the following steps:

    1. Create and update the ByteMatchSet objects and other predicates that you want to include in Rules. For more information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet.
    2. Create and update the Rules that you want to include in the WebACL. For more information, see CreateRule and UpdateRule.
    3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateWebACL request.
    4. Submit a CreateWebACL request.
    5. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateWebACL request.
    6. Submit an UpdateWebACL request to specify the Rules that you want to include in the WebACL, to specify the default action, and to associate the WebACL with a CloudFront distribution.

    For more information about how to use the AWS WAF API, see the AWS WAF Developer Guide.

    ", - "CreateXssMatchSet": "

    Creates an XssMatchSet, which you use to allow, block, or count requests that contain cross-site scripting attacks in the specified part of web requests. AWS WAF searches for character sequences that are likely to be malicious strings.

    To create and configure an XssMatchSet, perform the following steps:

    1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateXssMatchSet request.
    2. Submit a CreateXssMatchSet request.
    3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateXssMatchSet request.
    4. Submit an UpdateXssMatchSet request to specify the parts of web requests in which you want to allow, block, or count cross-site scripting attacks.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "DeleteByteMatchSet": "

    Permanently deletes a ByteMatchSet. You can't delete a ByteMatchSet if it's still used in any Rules or if it still includes any ByteMatchTuple objects (any filters).

    If you just want to remove a ByteMatchSet from a Rule, use UpdateRule.

    To permanently delete a ByteMatchSet, perform the following steps:

    1. Update the ByteMatchSet to remove filters, if any. For more information, see UpdateByteMatchSet.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteByteMatchSet request.
    3. Submit a DeleteByteMatchSet request.
    ", - "DeleteIPSet": "

    Permanently deletes an IPSet. You can't delete an IPSet if it's still used in any Rules or if it still includes any IP addresses.

    If you just want to remove an IPSet from a Rule, use UpdateRule.

    To permanently delete an IPSet from AWS WAF, perform the following steps:

    1. Update the IPSet to remove IP address ranges, if any. For more information, see UpdateIPSet.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteIPSet request.
    3. Submit a DeleteIPSet request.
    ", - "DeleteRule": "

    Permanently deletes a Rule. You can't delete a Rule if it's still used in any WebACL objects or if it still includes any predicates, such as ByteMatchSet objects.

    If you just want to remove a Rule from a WebACL, use UpdateWebACL.

    To permanently delete a Rule from AWS WAF, perform the following steps:

    1. Update the Rule to remove predicates, if any. For more information, see UpdateRule.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteRule request.
    3. Submit a DeleteRule request.
    ", - "DeleteSizeConstraintSet": "

    Permanently deletes a SizeConstraintSet. You can't delete a SizeConstraintSet if it's still used in any Rules or if it still includes any SizeConstraint objects (any filters).

    If you just want to remove a SizeConstraintSet from a Rule, use UpdateRule.

    To permanently delete a SizeConstraintSet, perform the following steps:

    1. Update the SizeConstraintSet to remove filters, if any. For more information, see UpdateSizeConstraintSet.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteSizeConstraintSet request.
    3. Submit a DeleteSizeConstraintSet request.
    ", - "DeleteSqlInjectionMatchSet": "

    Permanently deletes a SqlInjectionMatchSet. You can't delete a SqlInjectionMatchSet if it's still used in any Rules or if it still contains any SqlInjectionMatchTuple objects.

    If you just want to remove a SqlInjectionMatchSet from a Rule, use UpdateRule.

    To permanently delete a SqlInjectionMatchSet from AWS WAF, perform the following steps:

    1. Update the SqlInjectionMatchSet to remove filters, if any. For more information, see UpdateSqlInjectionMatchSet.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteSqlInjectionMatchSet request.
    3. Submit a DeleteSqlInjectionMatchSet request.
    ", - "DeleteWebACL": "

    Permanently deletes a WebACL. You can't delete a WebACL if it still contains any Rules.

    To delete a WebACL, perform the following steps:

    1. Update the WebACL to remove Rules, if any. For more information, see UpdateWebACL.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteWebACL request.
    3. Submit a DeleteWebACL request.
    ", - "DeleteXssMatchSet": "

    Permanently deletes an XssMatchSet. You can't delete an XssMatchSet if it's still used in any Rules or if it still contains any XssMatchTuple objects.

    If you just want to remove an XssMatchSet from a Rule, use UpdateRule.

    To permanently delete an XssMatchSet from AWS WAF, perform the following steps:

    1. Update the XssMatchSet to remove filters, if any. For more information, see UpdateXssMatchSet.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteXssMatchSet request.
    3. Submit a DeleteXssMatchSet request.
    ", - "GetByteMatchSet": "

    Returns the ByteMatchSet specified by ByteMatchSetId.

    ", - "GetChangeToken": "

    When you want to create, update, or delete AWS WAF objects, get a change token and include the change token in the create, update, or delete request. Change tokens ensure that your application doesn't submit conflicting requests to AWS WAF.

    Each create, update, or delete request must use a unique change token. If your application submits a GetChangeToken request and then submits a second GetChangeToken request before submitting a create, update, or delete request, the second GetChangeToken request returns the same value as the first GetChangeToken request.

    When you use a change token in a create, update, or delete request, the status of the change token changes to PENDING, which indicates that AWS WAF is propagating the change to all AWS WAF servers. Use GetChangeTokenStatus to determine the status of your change token.

    ", - "GetChangeTokenStatus": "

    Returns the status of a ChangeToken that you got by calling GetChangeToken. ChangeTokenStatus is one of the following values:

    • PROVISIONED: You requested the change token by calling GetChangeToken, but you haven't used it yet in a call to create, update, or delete an AWS WAF object.
    • PENDING: AWS WAF is propagating the create, update, or delete request to all AWS WAF servers.
    • IN_SYNC: Propagation is complete.
    ", - "GetIPSet": "

    Returns the IPSet that is specified by IPSetId.

    ", - "GetRule": "

    Returns the Rule that is specified by the RuleId that you included in the GetRule request.

    ", - "GetSampledRequests": "

    Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received during a time range that you choose. You can specify a sample size of up to 100 requests, and you can specify any time range in the previous three hours.

    GetSampledRequests returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, GetSampledRequests returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.

    ", - "GetSizeConstraintSet": "

    Returns the SizeConstraintSet specified by SizeConstraintSetId.

    ", - "GetSqlInjectionMatchSet": "

    Returns the SqlInjectionMatchSet that is specified by SqlInjectionMatchSetId.

    ", - "GetWebACL": "

    Returns the WebACL that is specified by WebACLId.

    ", - "GetXssMatchSet": "

    Returns the XssMatchSet that is specified by XssMatchSetId.

    ", - "ListByteMatchSets": "

    Returns an array of ByteMatchSetSummary objects.

    ", - "ListIPSets": "

    Returns an array of IPSetSummary objects in the response.

    ", - "ListRules": "

    Returns an array of RuleSummary objects.

    ", - "ListSizeConstraintSets": "

    Returns an array of SizeConstraintSetSummary objects.

    ", - "ListSqlInjectionMatchSets": "

    Returns an array of SqlInjectionMatchSet objects.

    ", - "ListWebACLs": "

    Returns an array of WebACLSummary objects in the response.

    ", - "ListXssMatchSets": "

    Returns an array of XssMatchSet objects.

    ", - "UpdateByteMatchSet": "

    Inserts or deletes ByteMatchTuple objects (filters) in a ByteMatchSet. For each ByteMatchTuple object, you specify the following values:

    • Whether to insert or delete the object from the array. If you want to change a ByteMatchSetUpdate object, you delete the existing object and add a new one.
    • The part of a web request that you want AWS WAF to inspect, such as a query string or the value of the User-Agent header.
    • The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to look for. For more information, including how you specify the values for the AWS WAF API and the AWS CLI or SDKs, see TargetString in the ByteMatchTuple data type.
    • Where to look, such as at the beginning or the end of a query string.
    • Whether to perform any conversions on the request, such as converting it to lowercase, before inspecting it for the specified string.

    For example, you can add a ByteMatchSetUpdate object that matches web requests in which User-Agent headers contain the string BadBot. You can then configure AWS WAF to block those requests.

    To create and configure a ByteMatchSet, perform the following steps:

    1. Create a ByteMatchSet. For more information, see CreateByteMatchSet.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateByteMatchSet request.
    3. Submit an UpdateByteMatchSet request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "UpdateIPSet": "

    Inserts or deletes IPSetDescriptor objects in an IPSet. For each IPSetDescriptor object, you specify the following values:

    • Whether to insert or delete the object from the array. If you want to change an IPSetDescriptor object, you delete the existing object and add a new one.
    • The IP address version, IPv4.
    • The IP address in CIDR notation, for example, 192.0.2.0/24 (for the range of IP addresses from 192.0.2.0 to 192.0.2.255) or 192.0.2.44/32 (for the individual IP address 192.0.2.44).

    AWS WAF supports /8, /16, /24, and /32 IP address ranges. For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

    You use an IPSet to specify which web requests you want to allow or block based on the IP addresses that the requests originated from. For example, if you're receiving a lot of requests from one or a small number of IP addresses and you want to block the requests, you can create an IPSet that specifies those IP addresses, and then configure AWS WAF to block the requests.

    To create and configure an IPSet, perform the following steps:

    1. Submit a CreateIPSet request.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.
    3. Submit an UpdateIPSet request to specify the IP addresses that you want AWS WAF to watch for.

    When you update an IPSet, you specify the IP addresses that you want to add and/or the IP addresses that you want to delete. If you want to change an IP address, you delete the existing IP address and add the new one.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "UpdateRule": "

    Inserts or deletes Predicate objects in a Rule. Each Predicate object identifies a predicate, such as a ByteMatchSet or an IPSet, that specifies the web requests that you want to allow, block, or count. If you add more than one predicate to a Rule, a request must match all of the specifications to be allowed, blocked, or counted. For example, suppose you add the following to a Rule:

    • A ByteMatchSet that matches the value BadBot in the User-Agent header
    • An IPSet that matches the IP address 192.0.2.44

    You then add the Rule to a WebACL and specify that you want to block requests that satisfy the Rule. For a request to be blocked, the User-Agent header in the request must contain the value BadBot and the request must originate from the IP address 192.0.2.44.

    To create and configure a Rule, perform the following steps:

    1. Create and update the predicates that you want to include in the Rule.
    2. Create the Rule. See CreateRule.
    3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateRule request.
    4. Submit an UpdateRule request to add predicates to the Rule.
    5. Create and update a WebACL that contains the Rule. See CreateWebACL.

    If you want to replace one ByteMatchSet or IPSet with another, you delete the existing one and add the new one.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "UpdateSizeConstraintSet": "

    Inserts or deletes SizeConstraint objects (filters) in a SizeConstraintSet. For each SizeConstraint object, you specify the following values:

    • Whether to insert or delete the object from the array. If you want to change a SizeConstraintSetUpdate object, you delete the existing object and add a new one.
    • The part of a web request that you want AWS WAF to evaluate, such as the length of a query string or the length of the User-Agent header.
    • Whether to perform any transformations on the request, such as converting it to lowercase, before checking its length. Note that transformations of the request body are not supported because the AWS resource forwards only the first 8192 bytes of your request to AWS WAF.
    • A ComparisonOperator used for evaluating the selected part of the request against the specified Size, such as equals, greater than, less than, and so on.
    • The length, in bytes, that you want AWS WAF to watch for in selected part of the request. The length is computed after applying the transformation.

    For example, you can add a SizeConstraintSetUpdate object that matches web requests in which the length of the User-Agent header is greater than 100 bytes. You can then configure AWS WAF to block those requests.

    To create and configure a SizeConstraintSet, perform the following steps:

    1. Create a SizeConstraintSet. For more information, see CreateSizeConstraintSet.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateSizeConstraintSet request.
    3. Submit an UpdateSizeConstraintSet request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "UpdateSqlInjectionMatchSet": "

    Inserts or deletes SqlInjectionMatchTuple objects (filters) in a SqlInjectionMatchSet. For each SqlInjectionMatchTuple object, you specify the following values:

    • Action: Whether to insert the object into or delete the object from the array. To change a SqlInjectionMatchTuple, you delete the existing object and add a new one.
    • FieldToMatch: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.
    • TextTransformation: Which text transformation, if any, to perform on the web request before inspecting the request for snippets of malicious SQL code.

    You use SqlInjectionMatchSet objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain snippets of SQL code in the query string and you want to block the requests, you can create a SqlInjectionMatchSet with the applicable settings, and then configure AWS WAF to block the requests.

    To create and configure a SqlInjectionMatchSet, perform the following steps:

    1. Submit a CreateSqlInjectionMatchSet request.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.
    3. Submit an UpdateSqlInjectionMatchSet request to specify the parts of web requests that you want AWS WAF to inspect for snippets of SQL code.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "UpdateWebACL": "

    Inserts or deletes ActivatedRule objects in a WebACL. Each Rule identifies web requests that you want to allow, block, or count. When you update a WebACL, you specify the following values:

    • A default action for the WebACL, either ALLOW or BLOCK. AWS WAF performs the default action if a request doesn't match the criteria in any of the Rules in a WebACL.
    • The Rules that you want to add and/or delete. If you want to replace one Rule with another, you delete the existing Rule and add the new one.
    • For each Rule, whether you want AWS WAF to allow requests, block requests, or count requests that match the conditions in the Rule.
    • The order in which you want AWS WAF to evaluate the Rules in a WebACL. If you add more than one Rule to a WebACL, AWS WAF evaluates each request against the Rules in order based on the value of Priority. (The Rule that has the lowest value for Priority is evaluated first.) When a web request matches all of the predicates (such as ByteMatchSets and IPSets) in a Rule, AWS WAF immediately takes the corresponding action, allow or block, and doesn't evaluate the request against the remaining Rules in the WebACL, if any.
    • The CloudFront distribution that you want to associate with the WebACL.

    To create and configure a WebACL, perform the following steps:

    1. Create and update the predicates that you want to include in Rules. For more information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet.
    2. Create and update the Rules that you want to include in the WebACL. For more information, see CreateRule and UpdateRule.
    3. Create a WebACL. See CreateWebACL.
    4. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateWebACL request.
    5. Submit an UpdateWebACL request to specify the Rules that you want to include in the WebACL, to specify the default action, and to associate the WebACL with a CloudFront distribution.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    ", - "UpdateXssMatchSet": "

    Inserts or deletes XssMatchTuple objects (filters) in an XssMatchSet. For each XssMatchTuple object, you specify the following values:

    • Action: Whether to insert the object into or delete the object from the array. To change a XssMatchTuple, you delete the existing object and add a new one.
    • FieldToMatch: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.
    • TextTransformation: Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks.

    You use XssMatchSet objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain cross-site scripting attacks in the request body and you want to block the requests, you can create an XssMatchSet with the applicable settings, and then configure AWS WAF to block the requests.

    To create and configure an XssMatchSet, perform the following steps:

    1. Submit a CreateXssMatchSet request.
    2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.
    3. Submit an UpdateXssMatchSet request to specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks.

    For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.

    " - }, - "shapes": { - "Action": { - "base": null, - "refs": { - "SampledHTTPRequest$Action": "

    The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT.

    " - } - }, - "ActivatedRule": { - "base": "

    The ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL, and the action that you want AWS WAF to take when a web request matches the Rule (ALLOW, BLOCK, or COUNT).

    To specify whether to insert or delete a Rule, use the Action parameter in the WebACLUpdate data type.

    ", - "refs": { - "ActivatedRules$member": null, - "WebACLUpdate$ActivatedRule": null - } - }, - "ActivatedRules": { - "base": null, - "refs": { - "WebACL$Rules": "

    An array that contains the action for each Rule in a WebACL, the priority of the Rule, and the ID of the Rule.

    " - } - }, - "ByteMatchSet": { - "base": "

    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.

    A complex type that contains ByteMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect and the values that you want AWS WAF to search for. If a ByteMatchSet contains more than one ByteMatchTuple object, a request needs to match the settings in only one ByteMatchTuple to be considered a match.

    ", - "refs": { - "CreateByteMatchSetResponse$ByteMatchSet": "

    A ByteMatchSet that contains no ByteMatchTuple objects.

    ", - "GetByteMatchSetResponse$ByteMatchSet": "

    Information about the ByteMatchSet that you specified in the GetByteMatchSet request. For more information, see the following topics:

    • ByteMatchSet: Contains ByteMatchSetId, ByteMatchTuples, and Name
    • ByteMatchTuples: Contains an array of ByteMatchTuple objects. Each ByteMatchTuple object contains FieldToMatch, PositionalConstraint, TargetString, and TextTransformation
    • FieldToMatch: Contains Data and Type
    " - } - }, - "ByteMatchSetSummaries": { - "base": null, - "refs": { - "ListByteMatchSetsResponse$ByteMatchSets": "

    An array of ByteMatchSetSummary objects.

    " - } - }, - "ByteMatchSetSummary": { - "base": "

    Returned by ListByteMatchSets. Each ByteMatchSetSummary object includes the Name and ByteMatchSetId for one ByteMatchSet.

    ", - "refs": { - "ByteMatchSetSummaries$member": null - } - }, - "ByteMatchSetUpdate": { - "base": "

    In an UpdateByteMatchSet request, ByteMatchSetUpdate specifies whether to insert or delete a ByteMatchTuple and includes the settings for the ByteMatchTuple.

    ", - "refs": { - "ByteMatchSetUpdates$member": null - } - }, - "ByteMatchSetUpdates": { - "base": null, - "refs": { - "UpdateByteMatchSetRequest$Updates": "

    An array of ByteMatchSetUpdate objects that you want to insert into or delete from a ByteMatchSet. For more information, see the applicable data types:

    " - } - }, - "ByteMatchTargetString": { - "base": null, - "refs": { - "ByteMatchTuple$TargetString": "

    The value that you want AWS WAF to search for. AWS WAF searches for the specified string in the part of web requests that you specified in FieldToMatch. The maximum length of the value is 50 bytes.

    Valid values depend on the values that you specified for FieldToMatch:

    • HEADER: The value that you want AWS WAF to search for in the request header that you specified in FieldToMatch, for example, the value of the User-Agent or Referer header.
    • METHOD: The HTTP method, which indicates the type of operation specified in the request. CloudFront supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.
    • QUERY_STRING: The value that you want AWS WAF to search for in the query string, which is the part of a URL that appears after a ? character.
    • URI: The value that you want AWS WAF to search for in the part of a URL that identifies a resource, for example, /images/daily-ad.jpg.
    • BODY: The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first 8192 bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see CreateSizeConstraintSet.

    If TargetString includes alphabetic characters A-Z and a-z, note that the value is case sensitive.

    If you're using the AWS WAF API

    Specify a base64-encoded version of the value. The maximum length of the value before you base64-encode it is 50 bytes.

    For example, suppose the value of Type is HEADER and the value of Data is User-Agent. If you want to search the User-Agent header for the value BadBot, you base64-encode BadBot using MIME base64 encoding and include the resulting value, QmFkQm90, in the value of TargetString.

    If you're using the AWS CLI or one of the AWS SDKs

    The value that you want AWS WAF to search for. The SDK automatically base64 encodes the value.

    " - } - }, - "ByteMatchTuple": { - "base": "

    The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.

    ", - "refs": { - "ByteMatchSetUpdate$ByteMatchTuple": "

    Information about the part of a web request that you want AWS WAF to inspect and the value that you want AWS WAF to search for. If you specify DELETE for the value of Action, the ByteMatchTuple values must exactly match the values in the ByteMatchTuple that you want to delete from the ByteMatchSet.

    ", - "ByteMatchTuples$member": null - } - }, - "ByteMatchTuples": { - "base": null, - "refs": { - "ByteMatchSet$ByteMatchTuples": "

    Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.

    " - } - }, - "ChangeAction": { - "base": null, - "refs": { - "ByteMatchSetUpdate$Action": "

    Specifies whether to insert or delete a ByteMatchTuple.

    ", - "IPSetUpdate$Action": "

    Specifies whether to insert or delete an IP address with UpdateIPSet.

    ", - "RuleUpdate$Action": "

    Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.

    ", - "SizeConstraintSetUpdate$Action": "

    Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet.

    ", - "SqlInjectionMatchSetUpdate$Action": "

    Specify INSERT to add a SqlInjectionMatchSetUpdate to a SqlInjectionMatchSet. Use DELETE to remove a SqlInjectionMatchSetUpdate from a SqlInjectionMatchSet.

    ", - "WebACLUpdate$Action": "

    Specifies whether to insert a Rule into or delete a Rule from a WebACL.

    ", - "XssMatchSetUpdate$Action": "

    Specify INSERT to add a XssMatchSetUpdate to an XssMatchSet. Use DELETE to remove a XssMatchSetUpdate from an XssMatchSet.

    " - } - }, - "ChangeToken": { - "base": null, - "refs": { - "CreateByteMatchSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "CreateByteMatchSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the CreateByteMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "CreateIPSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "CreateIPSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the CreateIPSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "CreateRuleRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "CreateRuleResponse$ChangeToken": "

    The ChangeToken that you used to submit the CreateRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "CreateSizeConstraintSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "CreateSizeConstraintSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the CreateSizeConstraintSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "CreateSqlInjectionMatchSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "CreateSqlInjectionMatchSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the CreateSqlInjectionMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "CreateWebACLRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "CreateWebACLResponse$ChangeToken": "

    The ChangeToken that you used to submit the CreateWebACL request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "CreateXssMatchSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "CreateXssMatchSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the CreateXssMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "DeleteByteMatchSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "DeleteByteMatchSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the DeleteByteMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "DeleteIPSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "DeleteIPSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the DeleteIPSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "DeleteRuleRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "DeleteRuleResponse$ChangeToken": "

    The ChangeToken that you used to submit the DeleteRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "DeleteSizeConstraintSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "DeleteSizeConstraintSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the DeleteSizeConstraintSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "DeleteSqlInjectionMatchSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "DeleteSqlInjectionMatchSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the DeleteSqlInjectionMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "DeleteWebACLRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "DeleteWebACLResponse$ChangeToken": "

    The ChangeToken that you used to submit the DeleteWebACL request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "DeleteXssMatchSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "DeleteXssMatchSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the DeleteXssMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "GetChangeTokenResponse$ChangeToken": "

    The ChangeToken that you used in the request. Use this value in a GetChangeTokenStatus request to get the current status of the request.

    ", - "GetChangeTokenStatusRequest$ChangeToken": "

    The change token for which you want to get the status. This change token was previously returned in the GetChangeToken response.

    ", - "UpdateByteMatchSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "UpdateByteMatchSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the UpdateByteMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "UpdateIPSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "UpdateIPSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the UpdateIPSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "UpdateRuleRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "UpdateRuleResponse$ChangeToken": "

    The ChangeToken that you used to submit the UpdateRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "UpdateSizeConstraintSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "UpdateSizeConstraintSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the UpdateSizeConstraintSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "UpdateSqlInjectionMatchSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "UpdateSqlInjectionMatchSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the UpdateSqlInjectionMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "UpdateWebACLRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "UpdateWebACLResponse$ChangeToken": "

    The ChangeToken that you used to submit the UpdateWebACL request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    ", - "UpdateXssMatchSetRequest$ChangeToken": "

    The value returned by the most recent call to GetChangeToken.

    ", - "UpdateXssMatchSetResponse$ChangeToken": "

    The ChangeToken that you used to submit the UpdateXssMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

    " - } - }, - "ChangeTokenStatus": { - "base": null, - "refs": { - "GetChangeTokenStatusResponse$ChangeTokenStatus": "

    The status of the change token.

    " - } - }, - "ComparisonOperator": { - "base": null, - "refs": { - "SizeConstraint$ComparisonOperator": "

    The type of comparison you want AWS WAF to perform. AWS WAF uses this in combination with the provided Size and FieldToMatch to build an expression in the form of \"Size ComparisonOperator size in bytes of FieldToMatch\". If that expression is true, the SizeConstraint is considered to match.

    EQ: Used to test if the Size is equal to the size of the FieldToMatch

    NE: Used to test if the Size is not equal to the size of the FieldToMatch

    LE: Used to test if the Size is less than or equal to the size of the FieldToMatch

    LT: Used to test if the Size is strictly less than the size of the FieldToMatch

    GE: Used to test if the Size is greater than or equal to the size of the FieldToMatch

    GT: Used to test if the Size is strictly greater than the size of the FieldToMatch

    " - } - }, - "Country": { - "base": null, - "refs": { - "HTTPRequest$Country": "

    The two-letter country code for the country that the request originated from. For a current list of country codes, see the Wikipedia entry ISO 3166-1 alpha-2.

    " - } - }, - "CreateByteMatchSetRequest": { - "base": null, - "refs": { - } - }, - "CreateByteMatchSetResponse": { - "base": null, - "refs": { - } - }, - "CreateIPSetRequest": { - "base": null, - "refs": { - } - }, - "CreateIPSetResponse": { - "base": null, - "refs": { - } - }, - "CreateRuleRequest": { - "base": null, - "refs": { - } - }, - "CreateRuleResponse": { - "base": null, - "refs": { - } - }, - "CreateSizeConstraintSetRequest": { - "base": null, - "refs": { - } - }, - "CreateSizeConstraintSetResponse": { - "base": null, - "refs": { - } - }, - "CreateSqlInjectionMatchSetRequest": { - "base": "

    A request to create a SqlInjectionMatchSet.

    ", - "refs": { - } - }, - "CreateSqlInjectionMatchSetResponse": { - "base": "

    The response to a CreateSqlInjectionMatchSet request.

    ", - "refs": { - } - }, - "CreateWebACLRequest": { - "base": null, - "refs": { - } - }, - "CreateWebACLResponse": { - "base": null, - "refs": { - } - }, - "CreateXssMatchSetRequest": { - "base": "

    A request to create an XssMatchSet.

    ", - "refs": { - } - }, - "CreateXssMatchSetResponse": { - "base": "

    The response to a CreateXssMatchSet request.

    ", - "refs": { - } - }, - "DeleteByteMatchSetRequest": { - "base": null, - "refs": { - } - }, - "DeleteByteMatchSetResponse": { - "base": null, - "refs": { - } - }, - "DeleteIPSetRequest": { - "base": null, - "refs": { - } - }, - "DeleteIPSetResponse": { - "base": null, - "refs": { - } - }, - "DeleteRuleRequest": { - "base": null, - "refs": { - } - }, - "DeleteRuleResponse": { - "base": null, - "refs": { - } - }, - "DeleteSizeConstraintSetRequest": { - "base": null, - "refs": { - } - }, - "DeleteSizeConstraintSetResponse": { - "base": null, - "refs": { - } - }, - "DeleteSqlInjectionMatchSetRequest": { - "base": "

    A request to delete a SqlInjectionMatchSet from AWS WAF.

    ", - "refs": { - } - }, - "DeleteSqlInjectionMatchSetResponse": { - "base": "

    The response to a request to delete a SqlInjectionMatchSet from AWS WAF.

    ", - "refs": { - } - }, - "DeleteWebACLRequest": { - "base": null, - "refs": { - } - }, - "DeleteWebACLResponse": { - "base": null, - "refs": { - } - }, - "DeleteXssMatchSetRequest": { - "base": "

    A request to delete an XssMatchSet from AWS WAF.

    ", - "refs": { - } - }, - "DeleteXssMatchSetResponse": { - "base": "

    The response to a request to delete an XssMatchSet from AWS WAF.

    ", - "refs": { - } - }, - "FieldToMatch": { - "base": "

    Specifies where in a web request to look for TargetString.

    ", - "refs": { - "ByteMatchTuple$FieldToMatch": "

    The part of a web request that you want AWS WAF to search, such as a specified header or a query string. For more information, see FieldToMatch.

    ", - "SizeConstraint$FieldToMatch": null, - "SqlInjectionMatchTuple$FieldToMatch": null, - "XssMatchTuple$FieldToMatch": null - } - }, - "GetByteMatchSetRequest": { - "base": null, - "refs": { - } - }, - "GetByteMatchSetResponse": { - "base": null, - "refs": { - } - }, - "GetChangeTokenRequest": { - "base": null, - "refs": { - } - }, - "GetChangeTokenResponse": { - "base": null, - "refs": { - } - }, - "GetChangeTokenStatusRequest": { - "base": null, - "refs": { - } - }, - "GetChangeTokenStatusResponse": { - "base": null, - "refs": { - } - }, - "GetIPSetRequest": { - "base": null, - "refs": { - } - }, - "GetIPSetResponse": { - "base": null, - "refs": { - } - }, - "GetRuleRequest": { - "base": null, - "refs": { - } - }, - "GetRuleResponse": { - "base": null, - "refs": { - } - }, - "GetSampledRequestsRequest": { - "base": null, - "refs": { - } - }, - "GetSampledRequestsResponse": { - "base": null, - "refs": { - } - }, - "GetSizeConstraintSetRequest": { - "base": null, - "refs": { - } - }, - "GetSizeConstraintSetResponse": { - "base": null, - "refs": { - } - }, - "GetSqlInjectionMatchSetRequest": { - "base": "

    A request to get a SqlInjectionMatchSet.

    ", - "refs": { - } - }, - "GetSqlInjectionMatchSetResponse": { - "base": "

    The response to a GetSqlInjectionMatchSet request.

    ", - "refs": { - } - }, - "GetWebACLRequest": { - "base": null, - "refs": { - } - }, - "GetWebACLResponse": { - "base": null, - "refs": { - } - }, - "GetXssMatchSetRequest": { - "base": "

    A request to get an XssMatchSet.

    ", - "refs": { - } - }, - "GetXssMatchSetResponse": { - "base": "

    The response to a GetXssMatchSet request.

    ", - "refs": { - } - }, - "HTTPHeader": { - "base": "

    The response from a GetSampledRequests request includes an HTTPHeader complex type that appears as Headers in the response syntax. HTTPHeader contains the names and values of all of the headers that appear in one of the web requests that were returned by GetSampledRequests.

    ", - "refs": { - "HTTPHeaders$member": null - } - }, - "HTTPHeaders": { - "base": null, - "refs": { - "HTTPRequest$Headers": "

    A complex type that contains two values for each header in the sampled web request: the name of the header and the value of the header.

    " - } - }, - "HTTPMethod": { - "base": null, - "refs": { - "HTTPRequest$Method": "

    The HTTP method specified in the sampled web request. CloudFront supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.

    " - } - }, - "HTTPRequest": { - "base": "

    The response from a GetSampledRequests request includes an HTTPRequest complex type that appears as Request in the response syntax. HTTPRequest contains information about one of the web requests that were returned by GetSampledRequests.

    ", - "refs": { - "SampledHTTPRequest$Request": "

    A complex type that contains detailed information about the request.

    " - } - }, - "HTTPVersion": { - "base": null, - "refs": { - "HTTPRequest$HTTPVersion": "

    The HTTP version specified in the sampled web request, for example, HTTP/1.1.

    " - } - }, - "HeaderName": { - "base": null, - "refs": { - "HTTPHeader$Name": "

    The name of one of the headers in the sampled web request.

    " - } - }, - "HeaderValue": { - "base": null, - "refs": { - "HTTPHeader$Value": "

    The value of one of the headers in the sampled web request.

    " - } - }, - "IPSet": { - "base": "

    Contains one or more IP addresses or blocks of IP addresses specified in Classless Inter-Domain Routing (CIDR) notation. To specify an individual IP address, you specify the four-part IP address followed by a /32, for example, 192.0.2.0/31. To block a range of IP addresses, you can specify a /24, a /16, or a /8 CIDR. For more information about CIDR notation, perform an Internet search on cidr notation.

    ", - "refs": { - "CreateIPSetResponse$IPSet": "

    The IPSet returned in the CreateIPSet response.

    ", - "GetIPSetResponse$IPSet": "

    Information about the IPSet that you specified in the GetIPSet request. For more information, see the following topics:

    • IPSet: Contains IPSetDescriptors, IPSetId, and Name
    • IPSetDescriptors: Contains an array of IPSetDescriptor objects. Each IPSetDescriptor object contains Type and Value
    " - } - }, - "IPSetDescriptor": { - "base": "

    Specifies the IP address type (IPV4) and the IP address range (in CIDR format) that web requests originate from.

    ", - "refs": { - "IPSetDescriptors$member": null, - "IPSetUpdate$IPSetDescriptor": "

    The IP address type (IPV4) and the IP address range (in CIDR notation) that web requests originate from.

    " - } - }, - "IPSetDescriptorType": { - "base": null, - "refs": { - "IPSetDescriptor$Type": "

    Specify IPV4.

    " - } - }, - "IPSetDescriptorValue": { - "base": null, - "refs": { - "IPSetDescriptor$Value": "

    Specify an IPv4 address by using CIDR notation. For example:

    • To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.
    • To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

    AWS WAF supports only /8, /16, /24, and /32 IP addresses.

    For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing.

    " - } - }, - "IPSetDescriptors": { - "base": null, - "refs": { - "IPSet$IPSetDescriptors": "

    The IP address type (IPV4) and the IP address range (in CIDR notation) that web requests originate from. If the WebACL is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:

    • c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the request
    • x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
    " - } - }, - "IPSetSummaries": { - "base": null, - "refs": { - "ListIPSetsResponse$IPSets": "

    An array of IPSetSummary objects.

    " - } - }, - "IPSetSummary": { - "base": "

    Contains the identifier and the name of the IPSet.

    ", - "refs": { - "IPSetSummaries$member": null - } - }, - "IPSetUpdate": { - "base": "

    Specifies the type of update to perform to an IPSet with UpdateIPSet.

    ", - "refs": { - "IPSetUpdates$member": null - } - }, - "IPSetUpdates": { - "base": null, - "refs": { - "UpdateIPSetRequest$Updates": "

    An array of IPSetUpdate objects that you want to insert into or delete from an IPSet. For more information, see the applicable data types:

    " - } - }, - "IPString": { - "base": null, - "refs": { - "HTTPRequest$ClientIP": "

    The IP address that the request originated from. If the WebACL is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:

    • c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the request
    • x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
    " - } - }, - "ListByteMatchSetsRequest": { - "base": null, - "refs": { - } - }, - "ListByteMatchSetsResponse": { - "base": null, - "refs": { - } - }, - "ListIPSetsRequest": { - "base": null, - "refs": { - } - }, - "ListIPSetsResponse": { - "base": null, - "refs": { - } - }, - "ListMaxItems": { - "base": null, - "refs": { - "GetSampledRequestsRequest$MaxItems": "

    The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of MaxItems, GetSampledRequests returns information about all of them.

    " - } - }, - "ListRulesRequest": { - "base": null, - "refs": { - } - }, - "ListRulesResponse": { - "base": null, - "refs": { - } - }, - "ListSizeConstraintSetsRequest": { - "base": null, - "refs": { - } - }, - "ListSizeConstraintSetsResponse": { - "base": null, - "refs": { - } - }, - "ListSqlInjectionMatchSetsRequest": { - "base": "

    A request to list the SqlInjectionMatchSet objects created by the current AWS account.

    ", - "refs": { - } - }, - "ListSqlInjectionMatchSetsResponse": { - "base": "

    The response to a ListSqlInjectionMatchSets request.

    ", - "refs": { - } - }, - "ListWebACLsRequest": { - "base": null, - "refs": { - } - }, - "ListWebACLsResponse": { - "base": null, - "refs": { - } - }, - "ListXssMatchSetsRequest": { - "base": "

    A request to list the XssMatchSet objects created by the current AWS account.

    ", - "refs": { - } - }, - "ListXssMatchSetsResponse": { - "base": "

    The response to a ListXssMatchSets request.

    ", - "refs": { - } - }, - "MatchFieldData": { - "base": null, - "refs": { - "FieldToMatch$Data": "

    When the value of Type is HEADER, enter the name of the header that you want AWS WAF to search, for example, User-Agent or Referer. If the value of Type is any other value, omit Data.

    The name of the header is not case sensitive.

    " - } - }, - "MatchFieldType": { - "base": null, - "refs": { - "FieldToMatch$Type": "

    The part of the web request that you want AWS WAF to search for a specified string. Parts of a request that you can search include the following:

    • HEADER: A specified request header, for example, the value of the User-Agent or Referer header. If you choose HEADER for the type, specify the name of the header in Data.
    • METHOD: The HTTP method, which indicated the type of operation that the request is asking the origin to perform. Amazon CloudFront supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.
    • QUERY_STRING: A query string, which is the part of a URL that appears after a ? character, if any.
    • URI: The part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
    • BODY: The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first 8192 bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see CreateSizeConstraintSet.
    " - } - }, - "MetricName": { - "base": null, - "refs": { - "CreateRuleRequest$MetricName": "

    A friendly name or description for the metrics for this Rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the metric after you create the Rule.

    ", - "CreateWebACLRequest$MetricName": "

    A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change MetricName after you create the WebACL.

    ", - "Rule$MetricName": null, - "WebACL$MetricName": null - } - }, - "Negated": { - "base": null, - "refs": { - "Predicate$Negated": "

    Set Negated to False if you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address.

    Set Negated to True if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44.

    " - } - }, - "NextMarker": { - "base": null, - "refs": { - "ListByteMatchSetsRequest$NextMarker": "

    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.

    ", - "ListByteMatchSetsResponse$NextMarker": "

    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.

    ", - "ListIPSetsRequest$NextMarker": "

    If you specify a value for Limit and you have more IPSets than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of IPSets. For the second and subsequent ListIPSets requests, specify the value of NextMarker from the previous response to get information about another batch of ByteMatchSets.

    ", - "ListIPSetsResponse$NextMarker": "

    If you have more IPSet objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more IPSet objects, submit another ListIPSets request, and specify the NextMarker value from the response in the NextMarker value in the next request.

    ", - "ListRulesRequest$NextMarker": "

    If you specify a value for Limit and you have more Rules than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of Rules. For the second and subsequent ListRules requests, specify the value of NextMarker from the previous response to get information about another batch of Rules.

    ", - "ListRulesResponse$NextMarker": "

    If you have more Rules than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more Rules, submit another ListRules request, and specify the NextMarker value from the response in the NextMarker value in the next request.

    ", - "ListSizeConstraintSetsRequest$NextMarker": "

    If you specify a value for Limit and you have more SizeConstraintSets than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of SizeConstraintSets. For the second and subsequent ListSizeConstraintSets requests, specify the value of NextMarker from the previous response to get information about another batch of SizeConstraintSets.

    ", - "ListSizeConstraintSetsResponse$NextMarker": "

    If you have more SizeConstraintSet objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more SizeConstraintSet objects, submit another ListSizeConstraintSets request, and specify the NextMarker value from the response in the NextMarker value in the next request.

    ", - "ListSqlInjectionMatchSetsRequest$NextMarker": "

    If you specify a value for Limit and you have more SqlInjectionMatchSet objects than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of SqlInjectionMatchSets. For the second and subsequent ListSqlInjectionMatchSets requests, specify the value of NextMarker from the previous response to get information about another batch of SqlInjectionMatchSets.

    ", - "ListSqlInjectionMatchSetsResponse$NextMarker": "

    If you have more SqlInjectionMatchSet objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more SqlInjectionMatchSet objects, submit another ListSqlInjectionMatchSets request, and specify the NextMarker value from the response in the NextMarker value in the next request.

    ", - "ListWebACLsRequest$NextMarker": "

    If you specify a value for Limit and you have more WebACL objects than the number that you specify for Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of WebACL objects. For the second and subsequent ListWebACLs requests, specify the value of NextMarker from the previous response to get information about another batch of WebACL objects.

    ", - "ListWebACLsResponse$NextMarker": "

    If you have more WebACL objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more WebACL objects, submit another ListWebACLs request, and specify the NextMarker value from the response in the NextMarker value in the next request.

    ", - "ListXssMatchSetsRequest$NextMarker": "

    If you specify a value for Limit and you have more XssMatchSet objects than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of XssMatchSets. For the second and subsequent ListXssMatchSets requests, specify the value of NextMarker from the previous response to get information about another batch of XssMatchSets.

    ", - "ListXssMatchSetsResponse$NextMarker": "

    If you have more XssMatchSet objects than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more XssMatchSet objects, submit another ListXssMatchSets request, and specify the NextMarker value from the response in the NextMarker value in the next request.

    " - } - }, - "PaginationLimit": { - "base": null, - "refs": { - "ListByteMatchSetsRequest$Limit": "

    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.

    ", - "ListIPSetsRequest$Limit": "

    Specifies the number of IPSet objects that you want AWS WAF to return for this request. If you have more IPSet objects than the number you specify for Limit, the response includes a NextMarker value that you can use to get another batch of IPSet objects.

    ", - "ListRulesRequest$Limit": "

    Specifies the number of Rules that you want AWS WAF to return for this request. If you have more Rules than the number that you specify for Limit, the response includes a NextMarker value that you can use to get another batch of Rules.

    ", - "ListSizeConstraintSetsRequest$Limit": "

    Specifies the number of SizeConstraintSet objects that you want AWS WAF to return for this request. If you have more SizeConstraintSets objects than the number you specify for Limit, the response includes a NextMarker value that you can use to get another batch of SizeConstraintSet objects.

    ", - "ListSqlInjectionMatchSetsRequest$Limit": "

    Specifies the number of SqlInjectionMatchSet objects that you want AWS WAF to return for this request. If you have more SqlInjectionMatchSet objects than the number you specify for Limit, the response includes a NextMarker value that you can use to get another batch of Rules.

    ", - "ListWebACLsRequest$Limit": "

    Specifies the number of WebACL objects that you want AWS WAF to return for this request. If you have more WebACL objects than the number that you specify for Limit, the response includes a NextMarker value that you can use to get another batch of WebACL objects.

    ", - "ListXssMatchSetsRequest$Limit": "

    Specifies the number of XssMatchSet objects that you want AWS WAF to return for this request. If you have more XssMatchSet objects than the number you specify for Limit, the response includes a NextMarker value that you can use to get another batch of Rules.

    " - } - }, - "ParameterExceptionField": { - "base": null, - "refs": { - "WAFInvalidParameterException$field": null - } - }, - "ParameterExceptionParameter": { - "base": null, - "refs": { - "WAFInvalidParameterException$parameter": null - } - }, - "ParameterExceptionReason": { - "base": null, - "refs": { - "WAFInvalidParameterException$reason": null - } - }, - "PopulationSize": { - "base": null, - "refs": { - "GetSampledRequestsResponse$PopulationSize": "

    The total number of requests from which GetSampledRequests got a sample of MaxItems requests. If PopulationSize is less than MaxItems, the sample includes every request that your AWS resource received during the specified time range.

    " - } - }, - "PositionalConstraint": { - "base": null, - "refs": { - "ByteMatchTuple$PositionalConstraint": "

    Within the portion of a web request that you want to search (for example, in the query string, if any), specify where you want AWS WAF to search. Valid values include the following:

    CONTAINS

    The specified part of the web request must include the value of TargetString, but the location doesn't matter.

    CONTAINS_WORD

    The specified part of the web request must include the value of TargetString, and TargetString must contain only alphanumeric characters or underscore (A-Z, a-z, 0-9, or _). In addition, TargetString must be a word, which means one of the following:

    • TargetString exactly matches the value of the specified part of the web request, such as the value of a header.
    • TargetString is at the beginning of the specified part of the web request and is followed by a character other than an alphanumeric character or underscore (_), for example, BadBot;.
    • TargetString is at the end of the specified part of the web request and is preceded by a character other than an alphanumeric character or underscore (_), for example, ;BadBot.
    • TargetString is in the middle of the specified part of the web request and is preceded and followed by characters other than alphanumeric characters or underscore (_), for example, -BadBot;.

    EXACTLY

    The value of the specified part of the web request must exactly match the value of TargetString.

    STARTS_WITH

    The value of TargetString must appear at the beginning of the specified part of the web request.

    ENDS_WITH

    The value of TargetString must appear at the end of the specified part of the web request.

    " - } - }, - "Predicate": { - "base": "

    Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, and SizeConstraintSet objects that you want to add to a Rule and, for each object, indicates whether you want to negate the settings, for example, requests that do NOT originate from the IP address 192.0.2.44.

    ", - "refs": { - "Predicates$member": null, - "RuleUpdate$Predicate": "

    The ID of the Predicate (such as an IPSet) that you want to add to a Rule.

    " - } - }, - "PredicateType": { - "base": null, - "refs": { - "Predicate$Type": "

    The type of predicate in a Rule, such as ByteMatchSet or IPSet.

    " - } - }, - "Predicates": { - "base": null, - "refs": { - "Rule$Predicates": "

    The Predicates object contains one Predicate element for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in a Rule.

    " - } - }, - "ResourceId": { - "base": null, - "refs": { - "ActivatedRule$RuleId": "

    The RuleId for a Rule. You use RuleId to get more information about a Rule (see GetRule), update a Rule (see UpdateRule), insert a Rule into a WebACL or delete a one from a WebACL (see UpdateWebACL), or delete a Rule from AWS WAF (see DeleteRule).

    RuleId is returned by CreateRule and by ListRules.

    ", - "ByteMatchSet$ByteMatchSetId": "

    The ByteMatchSetId for a ByteMatchSet. You use ByteMatchSetId to get information about a ByteMatchSet (see GetByteMatchSet), update a ByteMatchSet (see UpdateByteMatchSet), insert a ByteMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a ByteMatchSet from AWS WAF (see DeleteByteMatchSet).

    ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

    ", - "ByteMatchSetSummary$ByteMatchSetId": "

    The ByteMatchSetId for a ByteMatchSet. You use ByteMatchSetId to get information about a ByteMatchSet, update a ByteMatchSet, remove a ByteMatchSet from a Rule, and delete a ByteMatchSet from AWS WAF.

    ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

    ", - "DeleteByteMatchSetRequest$ByteMatchSetId": "

    The ByteMatchSetId of the ByteMatchSet that you want to delete. ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

    ", - "DeleteIPSetRequest$IPSetId": "

    The IPSetId of the IPSet that you want to delete. IPSetId is returned by CreateIPSet and by ListIPSets.

    ", - "DeleteRuleRequest$RuleId": "

    The RuleId of the Rule that you want to delete. RuleId is returned by CreateRule and by ListRules.

    ", - "DeleteSizeConstraintSetRequest$SizeConstraintSetId": "

    The SizeConstraintSetId of the SizeConstraintSet that you want to delete. SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

    ", - "DeleteSqlInjectionMatchSetRequest$SqlInjectionMatchSetId": "

    The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to delete. SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

    ", - "DeleteWebACLRequest$WebACLId": "

    The WebACLId of the WebACL that you want to delete. WebACLId is returned by CreateWebACL and by ListWebACLs.

    ", - "DeleteXssMatchSetRequest$XssMatchSetId": "

    The XssMatchSetId of the XssMatchSet that you want to delete. XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

    ", - "GetByteMatchSetRequest$ByteMatchSetId": "

    The ByteMatchSetId of the ByteMatchSet that you want to get. ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

    ", - "GetIPSetRequest$IPSetId": "

    The IPSetId of the IPSet that you want to get. IPSetId is returned by CreateIPSet and by ListIPSets.

    ", - "GetRuleRequest$RuleId": "

    The RuleId of the Rule that you want to get. RuleId is returned by CreateRule and by ListRules.

    ", - "GetSampledRequestsRequest$WebAclId": "

    The WebACLId of the WebACL for which you want GetSampledRequests to return a sample of requests.

    ", - "GetSampledRequestsRequest$RuleId": "

    RuleId is one of two values:

    • The RuleId of the Rule for which you want GetSampledRequests to return a sample of requests.
    • Default_Action, which causes GetSampledRequests to return a sample of the requests that didn't match any of the rules in the specified WebACL.
    ", - "GetSizeConstraintSetRequest$SizeConstraintSetId": "

    The SizeConstraintSetId of the SizeConstraintSet that you want to get. SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

    ", - "GetSqlInjectionMatchSetRequest$SqlInjectionMatchSetId": "

    The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to get. SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

    ", - "GetWebACLRequest$WebACLId": "

    The WebACLId of the WebACL that you want to get. WebACLId is returned by CreateWebACL and by ListWebACLs.

    ", - "GetXssMatchSetRequest$XssMatchSetId": "

    The XssMatchSetId of the XssMatchSet that you want to get. XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

    ", - "IPSet$IPSetId": "

    The IPSetId for an IPSet. You use IPSetId to get information about an IPSet (see GetIPSet), update an IPSet (see UpdateIPSet), insert an IPSet into a Rule or delete one from a Rule (see UpdateRule), and delete an IPSet from AWS WAF (see DeleteIPSet).

    IPSetId is returned by CreateIPSet and by ListIPSets.

    ", - "IPSetSummary$IPSetId": "

    The IPSetId for an IPSet. You can use IPSetId in a GetIPSet request to get detailed information about an IPSet.

    ", - "Predicate$DataId": "

    A unique identifier for a predicate in a Rule, such as ByteMatchSetId or IPSetId. The ID is returned by the corresponding Create or List command.

    ", - "Rule$RuleId": "

    A unique identifier for a Rule. You use RuleId to get more information about a Rule (see GetRule), update a Rule (see UpdateRule), insert a Rule into a WebACL or delete a one from a WebACL (see UpdateWebACL), or delete a Rule from AWS WAF (see DeleteRule).

    RuleId is returned by CreateRule and by ListRules.

    ", - "RuleSummary$RuleId": "

    A unique identifier for a Rule. You use RuleId to get more information about a Rule (see GetRule), update a Rule (see UpdateRule), insert a Rule into a WebACL or delete one from a WebACL (see UpdateWebACL), or delete a Rule from AWS WAF (see DeleteRule).

    RuleId is returned by CreateRule and by ListRules.

    ", - "SizeConstraintSet$SizeConstraintSetId": "

    A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId to get information about a SizeConstraintSet (see GetSizeConstraintSet), update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet from AWS WAF (see DeleteSizeConstraintSet).

    SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

    ", - "SizeConstraintSetSummary$SizeConstraintSetId": "

    A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId to get information about a SizeConstraintSet (see GetSizeConstraintSet), update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet from AWS WAF (see DeleteSizeConstraintSet).

    SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

    ", - "SqlInjectionMatchSet$SqlInjectionMatchSetId": "

    A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet).

    SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

    ", - "SqlInjectionMatchSetSummary$SqlInjectionMatchSetId": "

    A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet).

    SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

    ", - "UpdateByteMatchSetRequest$ByteMatchSetId": "

    The ByteMatchSetId of the ByteMatchSet that you want to update. ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.

    ", - "UpdateIPSetRequest$IPSetId": "

    The IPSetId of the IPSet that you want to update. IPSetId is returned by CreateIPSet and by ListIPSets.

    ", - "UpdateRuleRequest$RuleId": "

    The RuleId of the Rule that you want to update. RuleId is returned by CreateRule and by ListRules.

    ", - "UpdateSizeConstraintSetRequest$SizeConstraintSetId": "

    The SizeConstraintSetId of the SizeConstraintSet that you want to update. SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

    ", - "UpdateSqlInjectionMatchSetRequest$SqlInjectionMatchSetId": "

    The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to update. SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

    ", - "UpdateWebACLRequest$WebACLId": "

    The WebACLId of the WebACL that you want to update. WebACLId is returned by CreateWebACL and by ListWebACLs.

    ", - "UpdateXssMatchSetRequest$XssMatchSetId": "

    The XssMatchSetId of the XssMatchSet that you want to update. XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

    ", - "WebACL$WebACLId": "

    A unique identifier for a WebACL. You use WebACLId to get information about a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL from AWS WAF (see DeleteWebACL).

    WebACLId is returned by CreateWebACL and by ListWebACLs.

    ", - "WebACLSummary$WebACLId": "

    A unique identifier for a WebACL. You use WebACLId to get information about a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL from AWS WAF (see DeleteWebACL).

    WebACLId is returned by CreateWebACL and by ListWebACLs.

    ", - "XssMatchSet$XssMatchSetId": "

    A unique identifier for an XssMatchSet. You use XssMatchSetId to get information about an XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet).

    XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

    ", - "XssMatchSetSummary$XssMatchSetId": "

    A unique identifier for an XssMatchSet. You use XssMatchSetId to get information about a XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet).

    XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

    " - } - }, - "ResourceName": { - "base": null, - "refs": { - "ByteMatchSet$Name": "

    A friendly name or description of the ByteMatchSet. You can't change Name after you create a ByteMatchSet.

    ", - "ByteMatchSetSummary$Name": "

    A friendly name or description of the ByteMatchSet. You can't change Name after you create a ByteMatchSet.

    ", - "CreateByteMatchSetRequest$Name": "

    A friendly name or description of the ByteMatchSet. You can't change Name after you create a ByteMatchSet.

    ", - "CreateIPSetRequest$Name": "

    A friendly name or description of the IPSet. You can't change Name after you create the IPSet.

    ", - "CreateRuleRequest$Name": "

    A friendly name or description of the Rule. You can't change the name of a Rule after you create it.

    ", - "CreateSizeConstraintSetRequest$Name": "

    A friendly name or description of the SizeConstraintSet. You can't change Name after you create a SizeConstraintSet.

    ", - "CreateSqlInjectionMatchSetRequest$Name": "

    A friendly name or description for the SqlInjectionMatchSet that you're creating. You can't change Name after you create the SqlInjectionMatchSet.

    ", - "CreateWebACLRequest$Name": "

    A friendly name or description of the WebACL. You can't change Name after you create the WebACL.

    ", - "CreateXssMatchSetRequest$Name": "

    A friendly name or description for the XssMatchSet that you're creating. You can't change Name after you create the XssMatchSet.

    ", - "IPSet$Name": "

    A friendly name or description of the IPSet. You can't change the name of an IPSet after you create it.

    ", - "IPSetSummary$Name": "

    A friendly name or description of the IPSet. You can't change the name of an IPSet after you create it.

    ", - "Rule$Name": "

    The friendly name or description for the Rule. You can't change the name of a Rule after you create it.

    ", - "RuleSummary$Name": "

    A friendly name or description of the Rule. You can't change the name of a Rule after you create it.

    ", - "SizeConstraintSet$Name": "

    The name, if any, of the SizeConstraintSet.

    ", - "SizeConstraintSetSummary$Name": "

    The name of the SizeConstraintSet, if any.

    ", - "SqlInjectionMatchSet$Name": "

    The name, if any, of the SqlInjectionMatchSet.

    ", - "SqlInjectionMatchSetSummary$Name": "

    The name of the SqlInjectionMatchSet, if any, specified by Id.

    ", - "WebACL$Name": "

    A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.

    ", - "WebACLSummary$Name": "

    A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.

    ", - "XssMatchSet$Name": "

    The name, if any, of the XssMatchSet.

    ", - "XssMatchSetSummary$Name": "

    The name of the XssMatchSet, if any, specified by Id.

    " - } - }, - "Rule": { - "base": "

    A combination of ByteMatchSet, IPSet, and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count. For example, you might create a Rule that includes the following predicates:

    • An IPSet that causes AWS WAF to search for web requests that originate from the IP address 192.0.2.44
    • A ByteMatchSet that causes AWS WAF to search for web requests for which the value of the User-Agent header is BadBot.

    To match the settings in this Rule, a request must originate from 192.0.2.44 AND include a User-Agent header for which the value is BadBot.

    ", - "refs": { - "CreateRuleResponse$Rule": "

    The Rule returned in the CreateRule response.

    ", - "GetRuleResponse$Rule": "

    Information about the Rule that you specified in the GetRule request. For more information, see the following topics:

    • Rule: Contains MetricName, Name, an array of Predicate objects, and RuleId
    • Predicate: Each Predicate object contains DataId, Negated, and Type
    " - } - }, - "RulePriority": { - "base": null, - "refs": { - "ActivatedRule$Priority": "

    Specifies the order in which the Rules in a WebACL are evaluated. Rules with a lower value for Priority are evaluated before Rules with a higher value. The value must be a unique integer. If you add multiple Rules to a WebACL, the values don't need to be consecutive.

    " - } - }, - "RuleSummaries": { - "base": null, - "refs": { - "ListRulesResponse$Rules": "

    An array of RuleSummary objects.

    " - } - }, - "RuleSummary": { - "base": "

    Contains the identifier and the friendly name or description of the Rule.

    ", - "refs": { - "RuleSummaries$member": null - } - }, - "RuleUpdate": { - "base": "

    Specifies a Predicate (such as an IPSet) and indicates whether you want to add it to a Rule or delete it from a Rule.

    ", - "refs": { - "RuleUpdates$member": null - } - }, - "RuleUpdates": { - "base": null, - "refs": { - "UpdateRuleRequest$Updates": "

    An array of RuleUpdate objects that you want to insert into or delete from a Rule. For more information, see the applicable data types:

    " - } - }, - "SampleWeight": { - "base": null, - "refs": { - "SampledHTTPRequest$Weight": "

    A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of 2 represents roughly twice as many CloudFront web requests as a result that has a weight of 1.

    " - } - }, - "SampledHTTPRequest": { - "base": "

    The response from a GetSampledRequests request includes a SampledHTTPRequests complex type that appears as SampledRequests in the response syntax. SampledHTTPRequests contains one SampledHTTPRequest object for each web request that is returned by GetSampledRequests.

    ", - "refs": { - "SampledHTTPRequests$member": null - } - }, - "SampledHTTPRequests": { - "base": null, - "refs": { - "GetSampledRequestsResponse$SampledRequests": "

    A complex type that contains detailed information about each of the requests in the sample.

    " - } - }, - "Size": { - "base": null, - "refs": { - "SizeConstraint$Size": "

    The size in bytes that you want AWS WAF to compare against the size of the specified FieldToMatch. AWS WAF uses this in combination with ComparisonOperator and FieldToMatch to build an expression in the form of \"Size ComparisonOperator size in bytes of FieldToMatch\". If that expression is true, the SizeConstraint is considered to match.

    Valid values for size are 0 - 21474836480 bytes (0 - 20 GB).

    If you specify URI for the value of Type, the / in the URI counts as one character. For example, the URI /logo.jpg is nine characters long.

    " - } - }, - "SizeConstraint": { - "base": "

    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 that expression is true, the SizeConstraint is considered to match.

    ", - "refs": { - "SizeConstraintSetUpdate$SizeConstraint": "

    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 that expression is true, the SizeConstraint is considered to match.

    ", - "SizeConstraints$member": null - } - }, - "SizeConstraintSet": { - "base": "

    A complex type that contains SizeConstraint objects, which specify the parts of web requests that you want AWS WAF to inspect the size of. If a SizeConstraintSet contains more than one SizeConstraint object, a request only needs to match one constraint to be considered a match.

    ", - "refs": { - "CreateSizeConstraintSetResponse$SizeConstraintSet": "

    A SizeConstraintSet that contains no SizeConstraint objects.

    ", - "GetSizeConstraintSetResponse$SizeConstraintSet": "

    Information about the SizeConstraintSet that you specified in the GetSizeConstraintSet request. For more information, see the following topics:

    " - } - }, - "SizeConstraintSetSummaries": { - "base": null, - "refs": { - "ListSizeConstraintSetsResponse$SizeConstraintSets": "

    An array of SizeConstraintSetSummary objects.

    " - } - }, - "SizeConstraintSetSummary": { - "base": "

    The Id and Name of a SizeConstraintSet.

    ", - "refs": { - "SizeConstraintSetSummaries$member": null - } - }, - "SizeConstraintSetUpdate": { - "base": "

    Specifies the part of a web request that you want to inspect the size of and indicates whether you want to add the specification to a SizeConstraintSet or delete it from a SizeConstraintSet.

    ", - "refs": { - "SizeConstraintSetUpdates$member": null - } - }, - "SizeConstraintSetUpdates": { - "base": null, - "refs": { - "UpdateSizeConstraintSetRequest$Updates": "

    An array of SizeConstraintSetUpdate objects that you want to insert into or delete from a SizeConstraintSet. For more information, see the applicable data types:

    " - } - }, - "SizeConstraints": { - "base": null, - "refs": { - "SizeConstraintSet$SizeConstraints": "

    Specifies the parts of web requests that you want to inspect the size of.

    " - } - }, - "SqlInjectionMatchSet": { - "base": "

    A complex type that contains SqlInjectionMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. If a SqlInjectionMatchSet contains more than one SqlInjectionMatchTuple object, a request needs to include snippets of SQL code in only one of the specified parts of the request to be considered a match.

    ", - "refs": { - "CreateSqlInjectionMatchSetResponse$SqlInjectionMatchSet": "

    A SqlInjectionMatchSet.

    ", - "GetSqlInjectionMatchSetResponse$SqlInjectionMatchSet": "

    Information about the SqlInjectionMatchSet that you specified in the GetSqlInjectionMatchSet request. For more information, see the following topics:

    " - } - }, - "SqlInjectionMatchSetSummaries": { - "base": null, - "refs": { - "ListSqlInjectionMatchSetsResponse$SqlInjectionMatchSets": "

    An array of SqlInjectionMatchSetSummary objects.

    " - } - }, - "SqlInjectionMatchSetSummary": { - "base": "

    The Id and Name of a SqlInjectionMatchSet.

    ", - "refs": { - "SqlInjectionMatchSetSummaries$member": null - } - }, - "SqlInjectionMatchSetUpdate": { - "base": "

    Specifies the part of a web request that you want to inspect for snippets of malicious SQL code and indicates whether you want to add the specification to a SqlInjectionMatchSet or delete it from a SqlInjectionMatchSet.

    ", - "refs": { - "SqlInjectionMatchSetUpdates$member": null - } - }, - "SqlInjectionMatchSetUpdates": { - "base": null, - "refs": { - "UpdateSqlInjectionMatchSetRequest$Updates": "

    An array of SqlInjectionMatchSetUpdate objects that you want to insert into or delete from a SqlInjectionMatchSet. For more information, see the applicable data types:

    " - } - }, - "SqlInjectionMatchTuple": { - "base": "

    Specifies the part of a web request that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header.

    ", - "refs": { - "SqlInjectionMatchSetUpdate$SqlInjectionMatchTuple": "

    Specifies the part of a web request that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header.

    ", - "SqlInjectionMatchTuples$member": null - } - }, - "SqlInjectionMatchTuples": { - "base": null, - "refs": { - "SqlInjectionMatchSet$SqlInjectionMatchTuples": "

    Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.

    " - } - }, - "TextTransformation": { - "base": null, - "refs": { - "ByteMatchTuple$TextTransformation": "

    Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on TargetString before inspecting a request for a match.

    CMD_LINE

    When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:

    • Delete the following characters: \\ \" ' ^
    • Delete spaces before the following characters: / (
    • Replace the following characters with a space: , ;
    • Replace multiple spaces with one space
    • Convert uppercase letters (A-Z) to lowercase (a-z)

    COMPRESS_WHITE_SPACE

    Use this option to replace the following characters with a space character (decimal 32):

    • \\f, formfeed, decimal 12
    • \\t, tab, decimal 9
    • \\n, newline, decimal 10
    • \\r, carriage return, decimal 13
    • \\v, vertical tab, decimal 11
    • non-breaking space, decimal 160

    COMPRESS_WHITE_SPACE also replaces multiple spaces with one space.

    HTML_ENTITY_DECODE

    Use this option to replace HTML-encoded characters with unencoded characters. HTML_ENTITY_DECODE performs the following operations:

    • Replaces (ampersand)quot; with \"
    • Replaces (ampersand)nbsp; with a non-breaking space, decimal 160
    • Replaces (ampersand)lt; with a \"less than\" symbol
    • Replaces (ampersand)gt; with >
    • Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, with the corresponding characters
    • Replaces characters that are represented in decimal format, (ampersand)#nnnn;, with the corresponding characters

    LOWERCASE

    Use this option to convert uppercase letters (A-Z) to lowercase (a-z).

    URL_DECODE

    Use this option to decode a URL-encoded value.

    NONE

    Specify NONE if you don't want to perform any text transformations.

    ", - "SizeConstraint$TextTransformation": "

    Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on FieldToMatch before inspecting a request for a match.

    Note that if you choose BODY for the value of Type, you must choose NONE for TextTransformation because CloudFront forwards only the first 8192 bytes for inspection.

    NONE

    Specify NONE if you don't want to perform any text transformations.

    CMD_LINE

    When you're concerned that attackers are injecting an operating system command line command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:

    • Delete the following characters: \\ \" ' ^
    • Delete spaces before the following characters: / (
    • Replace the following characters with a space: , ;
    • Replace multiple spaces with one space
    • Convert uppercase letters (A-Z) to lowercase (a-z)

    COMPRESS_WHITE_SPACE

    Use this option to replace the following characters with a space character (decimal 32):

    • \\f, formfeed, decimal 12
    • \\t, tab, decimal 9
    • \\n, newline, decimal 10
    • \\r, carriage return, decimal 13
    • \\v, vertical tab, decimal 11
    • non-breaking space, decimal 160

    COMPRESS_WHITE_SPACE also replaces multiple spaces with one space.

    HTML_ENTITY_DECODE

    Use this option to replace HTML-encoded characters with unencoded characters. HTML_ENTITY_DECODE performs the following operations:

    • Replaces (ampersand)quot; with \"
    • Replaces (ampersand)nbsp; with a non-breaking space, decimal 160
    • Replaces (ampersand)lt; with a \"less than\" symbol
    • Replaces (ampersand)gt; with >
    • Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, with the corresponding characters
    • Replaces characters that are represented in decimal format, (ampersand)#nnnn;, with the corresponding characters

    LOWERCASE

    Use this option to convert uppercase letters (A-Z) to lowercase (a-z).

    URL_DECODE

    Use this option to decode a URL-encoded value.

    ", - "SqlInjectionMatchTuple$TextTransformation": "

    Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on FieldToMatch before inspecting a request for a match.

    CMD_LINE

    When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:

    • Delete the following characters: \\ \" ' ^
    • Delete spaces before the following characters: / (
    • Replace the following characters with a space: , ;
    • Replace multiple spaces with one space
    • Convert uppercase letters (A-Z) to lowercase (a-z)

    COMPRESS_WHITE_SPACE

    Use this option to replace the following characters with a space character (decimal 32):

    • \\f, formfeed, decimal 12
    • \\t, tab, decimal 9
    • \\n, newline, decimal 10
    • \\r, carriage return, decimal 13
    • \\v, vertical tab, decimal 11
    • non-breaking space, decimal 160

    COMPRESS_WHITE_SPACE also replaces multiple spaces with one space.

    HTML_ENTITY_DECODE

    Use this option to replace HTML-encoded characters with unencoded characters. HTML_ENTITY_DECODE performs the following operations:

    • Replaces (ampersand)quot; with \"
    • Replaces (ampersand)nbsp; with a non-breaking space, decimal 160
    • Replaces (ampersand)lt; with a \"less than\" symbol
    • Replaces (ampersand)gt; with >
    • Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, with the corresponding characters
    • Replaces characters that are represented in decimal format, (ampersand)#nnnn;, with the corresponding characters

    LOWERCASE

    Use this option to convert uppercase letters (A-Z) to lowercase (a-z).

    URL_DECODE

    Use this option to decode a URL-encoded value.

    NONE

    Specify NONE if you don't want to perform any text transformations.

    ", - "XssMatchTuple$TextTransformation": "

    Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on FieldToMatch before inspecting a request for a match.

    CMD_LINE

    When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:

    • Delete the following characters: \\ \" ' ^
    • Delete spaces before the following characters: / (
    • Replace the following characters with a space: , ;
    • Replace multiple spaces with one space
    • Convert uppercase letters (A-Z) to lowercase (a-z)

    COMPRESS_WHITE_SPACE

    Use this option to replace the following characters with a space character (decimal 32):

    • \\f, formfeed, decimal 12
    • \\t, tab, decimal 9
    • \\n, newline, decimal 10
    • \\r, carriage return, decimal 13
    • \\v, vertical tab, decimal 11
    • non-breaking space, decimal 160

    COMPRESS_WHITE_SPACE also replaces multiple spaces with one space.

    HTML_ENTITY_DECODE

    Use this option to replace HTML-encoded characters with unencoded characters. HTML_ENTITY_DECODE performs the following operations:

    • Replaces (ampersand)quot; with \"
    • Replaces (ampersand)nbsp; with a non-breaking space, decimal 160
    • Replaces (ampersand)lt; with a \"less than\" symbol
    • Replaces (ampersand)gt; with >
    • Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;, with the corresponding characters
    • Replaces characters that are represented in decimal format, (ampersand)#nnnn;, with the corresponding characters

    LOWERCASE

    Use this option to convert uppercase letters (A-Z) to lowercase (a-z).

    URL_DECODE

    Use this option to decode a URL-encoded value.

    NONE

    Specify NONE if you don't want to perform any text transformations.

    " - } - }, - "TimeWindow": { - "base": "

    In a GetSampledRequests request, the StartTime and EndTime objects specify the time range for which you want AWS WAF to return a sample of web requests.

    In a GetSampledRequests response, the StartTime and EndTime objects specify the time range for which AWS WAF actually returned a sample of web requests. AWS WAF gets the specified number of requests from among the first 5,000 requests that your AWS resource receives during the specified time period. If your resource receives more than 5,000 requests during that period, AWS WAF stops sampling after the 5,000th request. In that case, EndTime is the time that AWS WAF received the 5,000th request.

    ", - "refs": { - "GetSampledRequestsRequest$TimeWindow": "

    The start date and time and the end date and time of the range for which you want GetSampledRequests to return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.

    ", - "GetSampledRequestsResponse$TimeWindow": "

    Usually, TimeWindow is the time range that you specified in the GetSampledRequests request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request, GetSampledRequests returns the time range for the first 5,000 requests.

    " - } - }, - "Timestamp": { - "base": null, - "refs": { - "SampledHTTPRequest$Timestamp": "

    The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).

    ", - "TimeWindow$StartTime": "

    The beginning of the time range from which you want GetSampledRequests to return a sample of the requests that your AWS resource received. You can specify any time range in the previous three hours.

    ", - "TimeWindow$EndTime": "

    The end of the time range from which you want GetSampledRequests to return a sample of the requests that your AWS resource received. You can specify any time range in the previous three hours.

    " - } - }, - "URIString": { - "base": null, - "refs": { - "HTTPRequest$URI": "

    The part of a web request that identifies the resource, for example, /images/daily-ad.jpg.

    " - } - }, - "UpdateByteMatchSetRequest": { - "base": null, - "refs": { - } - }, - "UpdateByteMatchSetResponse": { - "base": null, - "refs": { - } - }, - "UpdateIPSetRequest": { - "base": null, - "refs": { - } - }, - "UpdateIPSetResponse": { - "base": null, - "refs": { - } - }, - "UpdateRuleRequest": { - "base": null, - "refs": { - } - }, - "UpdateRuleResponse": { - "base": null, - "refs": { - } - }, - "UpdateSizeConstraintSetRequest": { - "base": null, - "refs": { - } - }, - "UpdateSizeConstraintSetResponse": { - "base": null, - "refs": { - } - }, - "UpdateSqlInjectionMatchSetRequest": { - "base": "

    A request to update a SqlInjectionMatchSet.

    ", - "refs": { - } - }, - "UpdateSqlInjectionMatchSetResponse": { - "base": "

    The response to an UpdateSqlInjectionMatchSets request.

    ", - "refs": { - } - }, - "UpdateWebACLRequest": { - "base": null, - "refs": { - } - }, - "UpdateWebACLResponse": { - "base": null, - "refs": { - } - }, - "UpdateXssMatchSetRequest": { - "base": "

    A request to update an XssMatchSet.

    ", - "refs": { - } - }, - "UpdateXssMatchSetResponse": { - "base": "

    The response to an UpdateXssMatchSets request.

    ", - "refs": { - } - }, - "WAFDisallowedNameException": { - "base": "

    The name specified is invalid.

    ", - "refs": { - } - }, - "WAFInternalErrorException": { - "base": "

    The operation failed because of a system problem, even though the request was valid. Retry your request.

    ", - "refs": { - } - }, - "WAFInvalidAccountException": { - "base": "

    The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.

    ", - "refs": { - } - }, - "WAFInvalidOperationException": { - "base": "

    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 an IP address to an IPSet, but the IP address already exists in the specified IPSet.
    • You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple already exists in the specified WebACL.
    ", - "refs": { - } - }, - "WAFInvalidParameterException": { - "base": "

    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 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, QUERY_STRING, or URI.
    • You tried to update a ByteMatchSet with a Field of HEADER but no value for Data.
    ", - "refs": { - } - }, - "WAFLimitsExceededException": { - "base": "

    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 in the AWS WAF Developer Guide.

    ", - "refs": { - } - }, - "WAFNonEmptyEntityException": { - "base": "

    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.
    ", - "refs": { - } - }, - "WAFNonexistentContainerException": { - "base": "

    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.
    ", - "refs": { - } - }, - "WAFNonexistentItemException": { - "base": "

    The operation failed because the referenced object doesn't exist.

    ", - "refs": { - } - }, - "WAFReferencedItemException": { - "base": "

    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.

    ", - "refs": { - } - }, - "WAFStaleDataException": { - "base": "

    The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.

    ", - "refs": { - } - }, - "WafAction": { - "base": "

    For the action that is associated with a rule in a WebACL, specifies the action that you want AWS WAF to perform when a web request matches all of the conditions in a rule. For the default action in a WebACL, specifies the action that you want AWS WAF to take when a web request doesn't match all of the conditions in any of the rules in a WebACL.

    ", - "refs": { - "ActivatedRule$Action": "

    Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the Rule. Valid values for Action include the following:

    • ALLOW: CloudFront responds with the requested object.
    • BLOCK: CloudFront responds with an HTTP 403 (Forbidden) status code.
    • COUNT: AWS WAF increments a counter of requests that match the conditions in the rule and then continues to inspect the web request based on the remaining rules in the web ACL.
    ", - "CreateWebACLRequest$DefaultAction": "

    The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.

    ", - "UpdateWebACLRequest$DefaultAction": null, - "WebACL$DefaultAction": "

    The action to perform if none of the Rules contained in the WebACL match. The action is specified by the WafAction object.

    " - } - }, - "WafActionType": { - "base": null, - "refs": { - "WafAction$Type": "

    Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

    • ALLOW: AWS WAF allows requests
    • BLOCK: AWS WAF blocks requests
    • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.
    " - } - }, - "WebACL": { - "base": "

    Contains the Rules that identify the requests that you want to allow, block, or count. In a WebACL, you also specify a default action (ALLOW or BLOCK), and the action for each Rule that you add to a WebACL, for example, block requests from specified IP addresses or block requests from specified referrers. You also associate the WebACL with a CloudFront distribution to identify the requests that you want AWS WAF to filter. If you add more than one Rule to a WebACL, a request needs to match only one of the specifications to be allowed, blocked, or counted. For more information, see UpdateWebACL.

    ", - "refs": { - "CreateWebACLResponse$WebACL": "

    The WebACL returned in the CreateWebACL response.

    ", - "GetWebACLResponse$WebACL": "

    Information about the WebACL that you specified in the GetWebACL request. For more information, see the following topics:

    • WebACL: Contains DefaultAction, MetricName, Name, an array of Rule objects, and WebACLId
    • DefaultAction (Data type is WafAction): Contains Type
    • Rules: Contains an array of ActivatedRule objects, which contain Action, Priority, and RuleId
    • Action: Contains Type
    " - } - }, - "WebACLSummaries": { - "base": null, - "refs": { - "ListWebACLsResponse$WebACLs": "

    An array of WebACLSummary objects.

    " - } - }, - "WebACLSummary": { - "base": "

    Contains the identifier and the name or description of the WebACL.

    ", - "refs": { - "WebACLSummaries$member": null - } - }, - "WebACLUpdate": { - "base": "

    Specifies whether to insert a Rule into or delete a Rule from a WebACL.

    ", - "refs": { - "WebACLUpdates$member": null - } - }, - "WebACLUpdates": { - "base": null, - "refs": { - "UpdateWebACLRequest$Updates": "

    An array of updates to make to the WebACL.

    An array of WebACLUpdate objects that you want to insert into or delete from a WebACL. For more information, see the applicable data types:

    " - } - }, - "XssMatchSet": { - "base": "

    A complex type that contains XssMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header. If a XssMatchSet contains more than one XssMatchTuple object, a request needs to include cross-site scripting attacks in only one of the specified parts of the request to be considered a match.

    ", - "refs": { - "CreateXssMatchSetResponse$XssMatchSet": "

    An XssMatchSet.

    ", - "GetXssMatchSetResponse$XssMatchSet": "

    Information about the XssMatchSet that you specified in the GetXssMatchSet request. For more information, see the following topics:

    • XssMatchSet: Contains Name, XssMatchSetId, and an array of XssMatchTuple objects
    • XssMatchTuple: Each XssMatchTuple object contains FieldToMatch and TextTransformation
    • FieldToMatch: Contains Data and Type
    " - } - }, - "XssMatchSetSummaries": { - "base": null, - "refs": { - "ListXssMatchSetsResponse$XssMatchSets": "

    An array of XssMatchSetSummary objects.

    " - } - }, - "XssMatchSetSummary": { - "base": "

    The Id and Name of an XssMatchSet.

    ", - "refs": { - "XssMatchSetSummaries$member": null - } - }, - "XssMatchSetUpdate": { - "base": "

    Specifies the part of a web request that you want to inspect for cross-site scripting attacks and indicates whether you want to add the specification to an XssMatchSet or delete it from an XssMatchSet.

    ", - "refs": { - "XssMatchSetUpdates$member": null - } - }, - "XssMatchSetUpdates": { - "base": null, - "refs": { - "UpdateXssMatchSetRequest$Updates": "

    An array of XssMatchSetUpdate objects that you want to insert into or delete from a XssMatchSet. For more information, see the applicable data types:

    " - } - }, - "XssMatchTuple": { - "base": "

    Specifies the part of a web request that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header.

    ", - "refs": { - "XssMatchSetUpdate$XssMatchTuple": "

    Specifies the part of a web request that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header.

    ", - "XssMatchTuples$member": null - } - }, - "XssMatchTuples": { - "base": null, - "refs": { - "XssMatchSet$XssMatchTuples": "

    Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.

    " - } - }, - "errorMessage": { - "base": null, - "refs": { - "WAFDisallowedNameException$message": null, - "WAFInternalErrorException$message": null, - "WAFInvalidOperationException$message": null, - "WAFLimitsExceededException$message": null, - "WAFNonEmptyEntityException$message": null, - "WAFNonexistentContainerException$message": null, - "WAFNonexistentItemException$message": null, - "WAFReferencedItemException$message": null, - "WAFStaleDataException$message": null - } - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/waf/2015-08-24/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/examples-1.json deleted file mode 100644 index 0ea7e3b0b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/README.md b/vendor/github.com/aws/aws-sdk-go/private/README.md deleted file mode 100644 index 5bdb4c50a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/README.md +++ /dev/null @@ -1,4 +0,0 @@ -## AWS SDK for Go Private packages ## -`private` is a collection of packages used internally by the SDK, and is subject to have breaking changes. This package is not `internal` so that if you really need to use its functionality, and understand breaking changes will be made, you are able to. - -These packages will be refactored in the future so that the API generator and model parsers are exposed cleanly on their own. Making it easier for you to generate your own code based on the API models. diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go deleted file mode 100644 index 2b279e659..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go +++ /dev/null @@ -1,65 +0,0 @@ -// Package endpoints validates regional endpoints for services. -package endpoints - -//go:generate go run ../model/cli/gen-endpoints/main.go endpoints.json endpoints_map.go -//go:generate gofmt -s -w endpoints_map.go - -import ( - "fmt" - "regexp" - "strings" -) - -// NormalizeEndpoint takes and endpoint and service API information to return a -// normalized endpoint and signing region. If the endpoint is not an empty string -// the service name and region will be used to look up the service's API endpoint. -// If the endpoint is provided the scheme will be added if it is not present. -func NormalizeEndpoint(endpoint, serviceName, region string, disableSSL bool) (normEndpoint, signingRegion string) { - if endpoint == "" { - return EndpointForRegion(serviceName, region, disableSSL) - } - - return AddScheme(endpoint, disableSSL), "" -} - -// EndpointForRegion returns an endpoint and its signing region for a service and region. -// if the service and region pair are not found endpoint and signingRegion will be empty. -func EndpointForRegion(svcName, region string, disableSSL bool) (endpoint, signingRegion string) { - derivedKeys := []string{ - region + "/" + svcName, - region + "/*", - "*/" + svcName, - "*/*", - } - - for _, key := range derivedKeys { - if val, ok := endpointsMap.Endpoints[key]; ok { - ep := val.Endpoint - ep = strings.Replace(ep, "{region}", region, -1) - ep = strings.Replace(ep, "{service}", svcName, -1) - - endpoint = ep - signingRegion = val.SigningRegion - break - } - } - - return AddScheme(endpoint, disableSSL), signingRegion -} - -// Regular expression to determine if the endpoint string is prefixed with a scheme. -var schemeRE = regexp.MustCompile("^([^:]+)://") - -// AddScheme adds the HTTP or HTTPS schemes to a endpoint URL if there is no -// scheme. If disableSSL is true HTTP will be added instead of the default HTTPS. -func AddScheme(endpoint string, disableSSL bool) string { - if endpoint != "" && !schemeRE.MatchString(endpoint) { - scheme := "https" - if disableSSL { - scheme = "http" - } - endpoint = fmt.Sprintf("%s://%s", scheme, endpoint) - } - - return endpoint -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_test.go b/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_test.go deleted file mode 100644 index 0c43c589f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package endpoints_test - -import ( - "fmt" - "testing" - - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/private/endpoints" -) - -func TestGenericEndpoint(t *testing.T) { - name := "service" - region := "mock-region-1" - - ep, sr := endpoints.EndpointForRegion(name, region, false) - assert.Equal(t, fmt.Sprintf("https://%s.%s.amazonaws.com", name, region), ep) - assert.Empty(t, sr) -} - -func TestGlobalEndpoints(t *testing.T) { - region := "mock-region-1" - svcs := []string{"cloudfront", "iam", "importexport", "route53", "sts", "waf"} - - for _, name := range svcs { - ep, sr := endpoints.EndpointForRegion(name, region, false) - assert.Equal(t, fmt.Sprintf("https://%s.amazonaws.com", name), ep) - assert.Equal(t, "us-east-1", sr) - } -} - -func TestServicesInCN(t *testing.T) { - region := "cn-north-1" - svcs := []string{"cloudfront", "iam", "importexport", "route53", "sts", "s3", "waf"} - - for _, name := range svcs { - ep, sr := endpoints.EndpointForRegion(name, region, false) - assert.Equal(t, fmt.Sprintf("https://%s.%s.amazonaws.com.cn", name, region), ep) - assert.Empty(t, sr) - } -} - -func TestEC2MetadataEndpoints(t *testing.T) { - regions := []string{"us-east-1", "us-gov-west-1", "cn-north-1", "mock-region-1"} - - for _, region := range regions { - ep, sr := endpoints.EndpointForRegion("ec2metadata", region, false) - assert.Equal(t, "http://169.254.169.254/latest", ep) - assert.Equal(t, "", sr) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go deleted file mode 100644 index 7a9d850dd..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape.go +++ /dev/null @@ -1,505 +0,0 @@ -package api - -import ( - "bytes" - "fmt" - "path" - "regexp" - "sort" - "strings" - "text/template" -) - -// A ShapeRef defines the usage of a shape within the API. -type ShapeRef struct { - API *API `json:"-"` - Shape *Shape `json:"-"` - Documentation string - ShapeName string `json:"shape"` - Location string - LocationName string - QueryName string - Flattened bool - Streaming bool - XMLAttribute bool - XMLNamespace XMLInfo - Payload string - IdempotencyToken bool `json:"idempotencyToken"` - Deprecated bool `json:"deprecated"` -} - -// A XMLInfo defines URL and prefix for Shapes when rendered as XML -type XMLInfo struct { - Prefix string - URI string -} - -// A Shape defines the definition of a shape type -type Shape struct { - API *API `json:"-"` - ShapeName string - Documentation string - MemberRefs map[string]*ShapeRef `json:"members"` - MemberRef ShapeRef `json:"member"` - KeyRef ShapeRef `json:"key"` - ValueRef ShapeRef `json:"value"` - Required []string - Payload string - Type string - Exception bool - Enum []string - EnumConsts []string - Flattened bool - Streaming bool - Location string - LocationName string - IdempotencyToken bool `json:"idempotencyToken"` - XMLNamespace XMLInfo - Min float64 // optional Minimum length (string, list) or value (number) - Max float64 // optional Maximum length (string, list) or value (number) - - refs []*ShapeRef // References to this shape - resolvePkg string // use this package in the goType() if present - - // Defines if the shape is a placeholder and should not be used directly - Placeholder bool - - Deprecated bool `json:"deprecated"` - - Validations ShapeValidations -} - -// GoTags returns the struct tags for a shape. -func (s *Shape) GoTags(root, required bool) string { - ref := &ShapeRef{ShapeName: s.ShapeName, API: s.API, Shape: s} - return ref.GoTags(root, required) -} - -// Rename changes the name of the Shape to newName. Also updates -// the associated API's reference to use newName. -func (s *Shape) Rename(newName string) { - for _, r := range s.refs { - r.ShapeName = newName - } - - delete(s.API.Shapes, s.ShapeName) - s.API.Shapes[newName] = s - s.ShapeName = newName -} - -// MemberNames returns a slice of struct member names. -func (s *Shape) MemberNames() []string { - i, names := 0, make([]string, len(s.MemberRefs)) - for n := range s.MemberRefs { - names[i] = n - i++ - } - sort.Strings(names) - return names -} - -// GoTypeWithPkgName returns a shape's type as a string with the package name in -// . format. Package naming only applies to structures. -func (s *Shape) GoTypeWithPkgName() string { - return goType(s, true) -} - -// GoStructType returns the type of a struct field based on the API -// model definition. -func (s *Shape) GoStructType(name string, ref *ShapeRef) string { - if (ref.Streaming || ref.Shape.Streaming) && s.Payload == name { - rtype := "io.ReadSeeker" - if len(s.refs) > 1 { - rtype = "aws.ReaderSeekCloser" - } else if strings.HasSuffix(s.ShapeName, "Output") { - rtype = "io.ReadCloser" - } - - s.API.imports["io"] = true - return rtype - } - - for _, v := range s.Validations { - // TODO move this to shape validation resolution - if (v.Ref.Shape.Type == "map" || v.Ref.Shape.Type == "list") && v.Type == ShapeValidationNested { - s.API.imports["fmt"] = true - } - } - - return ref.GoType() -} - -// GoType returns a shape's Go type -func (s *Shape) GoType() string { - return goType(s, false) -} - -// GoType returns a shape ref's Go type. -func (ref *ShapeRef) GoType() string { - if ref.Shape == nil { - panic(fmt.Errorf("missing shape definition on reference for %#v", ref)) - } - - return ref.Shape.GoType() -} - -// GoTypeWithPkgName returns a shape's type as a string with the package name in -// . format. Package naming only applies to structures. -func (ref *ShapeRef) GoTypeWithPkgName() string { - if ref.Shape == nil { - panic(fmt.Errorf("missing shape definition on reference for %#v", ref)) - } - - return ref.Shape.GoTypeWithPkgName() -} - -// Returns a string version of the Shape's type. -// If withPkgName is true, the package name will be added as a prefix -func goType(s *Shape, withPkgName bool) string { - switch s.Type { - case "structure": - if withPkgName || s.resolvePkg != "" { - pkg := s.resolvePkg - if pkg != "" { - s.API.imports[pkg] = true - pkg = path.Base(pkg) - } else { - pkg = s.API.PackageName() - } - return fmt.Sprintf("*%s.%s", pkg, s.ShapeName) - } - return "*" + s.ShapeName - case "map": - return "map[string]" + s.ValueRef.GoType() - case "list": - return "[]" + s.MemberRef.GoType() - case "boolean": - return "*bool" - case "string", "character": - return "*string" - case "blob": - return "[]byte" - case "integer", "long": - return "*int64" - case "float", "double": - return "*float64" - case "timestamp": - s.API.imports["time"] = true - return "*time.Time" - default: - panic("Unsupported shape type: " + s.Type) - } -} - -// GoTypeElem returns the Go type for the Shape. If the shape type is a pointer just -// the type will be returned minus the pointer *. -func (s *Shape) GoTypeElem() string { - t := s.GoType() - if strings.HasPrefix(t, "*") { - return t[1:] - } - return t -} - -// GoTypeElem returns the Go type for the Shape. If the shape type is a pointer just -// the type will be returned minus the pointer *. -func (ref *ShapeRef) GoTypeElem() string { - if ref.Shape == nil { - panic(fmt.Errorf("missing shape definition on reference for %#v", ref)) - } - - return ref.Shape.GoTypeElem() -} - -// ShapeTag is a struct tag that will be applied to a shape's generated code -type ShapeTag struct { - Key, Val string -} - -// String returns the string representation of the shape tag -func (s ShapeTag) String() string { - return fmt.Sprintf(`%s:"%s"`, s.Key, s.Val) -} - -// ShapeTags is a collection of shape tags and provides serialization of the -// tags in an ordered list. -type ShapeTags []ShapeTag - -// Join returns an ordered serialization of the shape tags with the provided -// seperator. -func (s ShapeTags) Join(sep string) string { - o := &bytes.Buffer{} - for i, t := range s { - o.WriteString(t.String()) - if i < len(s)-1 { - o.WriteString(sep) - } - } - - return o.String() -} - -// String is an alias for Join with the empty space seperator. -func (s ShapeTags) String() string { - return s.Join(" ") -} - -// GoTags returns the rendered tags string for the ShapeRef -func (ref *ShapeRef) GoTags(toplevel bool, isRequired bool) string { - tags := ShapeTags{} - - if ref.Location != "" { - tags = append(tags, ShapeTag{"location", ref.Location}) - } else if ref.Shape.Location != "" { - tags = append(tags, ShapeTag{"location", ref.Shape.Location}) - } - - if ref.LocationName != "" { - tags = append(tags, ShapeTag{"locationName", ref.LocationName}) - } else if ref.Shape.LocationName != "" { - tags = append(tags, ShapeTag{"locationName", ref.Shape.LocationName}) - } - - if ref.QueryName != "" { - tags = append(tags, ShapeTag{"queryName", ref.QueryName}) - } - if ref.Shape.MemberRef.LocationName != "" { - tags = append(tags, ShapeTag{"locationNameList", ref.Shape.MemberRef.LocationName}) - } - if ref.Shape.KeyRef.LocationName != "" { - tags = append(tags, ShapeTag{"locationNameKey", ref.Shape.KeyRef.LocationName}) - } - if ref.Shape.ValueRef.LocationName != "" { - tags = append(tags, ShapeTag{"locationNameValue", ref.Shape.ValueRef.LocationName}) - } - if ref.Shape.Min > 0 { - tags = append(tags, ShapeTag{"min", fmt.Sprintf("%v", ref.Shape.Min)}) - } - - if ref.Deprecated || ref.Shape.Deprecated { - tags = append(tags, ShapeTag{"deprecated", "true"}) - } - // All shapes have a type - tags = append(tags, ShapeTag{"type", ref.Shape.Type}) - - // embed the timestamp type for easier lookups - if ref.Shape.Type == "timestamp" { - t := ShapeTag{Key: "timestampFormat"} - if ref.Location == "header" { - t.Val = "rfc822" - } else { - switch ref.API.Metadata.Protocol { - case "json", "rest-json": - t.Val = "unix" - case "rest-xml", "ec2", "query": - t.Val = "iso8601" - } - } - tags = append(tags, t) - } - - if ref.Shape.Flattened || ref.Flattened { - tags = append(tags, ShapeTag{"flattened", "true"}) - } - if ref.XMLAttribute { - tags = append(tags, ShapeTag{"xmlAttribute", "true"}) - } - if isRequired { - tags = append(tags, ShapeTag{"required", "true"}) - } - if ref.Shape.IsEnum() { - tags = append(tags, ShapeTag{"enum", ref.ShapeName}) - } - - if toplevel { - if ref.Shape.Payload != "" { - tags = append(tags, ShapeTag{"payload", ref.Shape.Payload}) - } - if ref.XMLNamespace.Prefix != "" { - tags = append(tags, ShapeTag{"xmlPrefix", ref.XMLNamespace.Prefix}) - } else if ref.Shape.XMLNamespace.Prefix != "" { - tags = append(tags, ShapeTag{"xmlPrefix", ref.Shape.XMLNamespace.Prefix}) - } - if ref.XMLNamespace.URI != "" { - tags = append(tags, ShapeTag{"xmlURI", ref.XMLNamespace.URI}) - } else if ref.Shape.XMLNamespace.URI != "" { - tags = append(tags, ShapeTag{"xmlURI", ref.Shape.XMLNamespace.URI}) - } - } - - if ref.IdempotencyToken || ref.Shape.IdempotencyToken { - tags = append(tags, ShapeTag{"idempotencyToken", "true"}) - } - - return fmt.Sprintf("`%s`", tags) -} - -// Docstring returns the godocs formated documentation -func (ref *ShapeRef) Docstring() string { - if ref.Documentation != "" { - return strings.Trim(ref.Documentation, "\n ") - } - return ref.Shape.Docstring() -} - -// Docstring returns the godocs formated documentation -func (s *Shape) Docstring() string { - return strings.Trim(s.Documentation, "\n ") -} - -var goCodeStringerTmpl = template.Must(template.New("goCodeStringerTmpl").Parse(` -// String returns the string representation -func (s {{ .ShapeName }}) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s {{ .ShapeName }}) GoString() string { - return s.String() -} -`)) - -// GoCodeStringers renders the Stringers for API input/output shapes -func (s *Shape) GoCodeStringers() string { - w := bytes.Buffer{} - if err := goCodeStringerTmpl.Execute(&w, s); err != nil { - panic(fmt.Sprintln("Unexpected error executing GoCodeStringers template", err)) - } - - return w.String() -} - -var enumStrip = regexp.MustCompile(`[^a-zA-Z0-9_:\./-]`) -var enumDelims = regexp.MustCompile(`[-_:\./]+`) -var enumCamelCase = regexp.MustCompile(`([a-z])([A-Z])`) - -// EnumName returns the Nth enum in the shapes Enum list -func (s *Shape) EnumName(n int) string { - enum := s.Enum[n] - enum = enumStrip.ReplaceAllLiteralString(enum, "") - enum = enumCamelCase.ReplaceAllString(enum, "$1-$2") - parts := enumDelims.Split(enum, -1) - for i, v := range parts { - v = strings.ToLower(v) - parts[i] = "" - if len(v) > 0 { - parts[i] = strings.ToUpper(v[0:1]) - } - if len(v) > 1 { - parts[i] += v[1:] - } - } - enum = strings.Join(parts, "") - enum = strings.ToUpper(enum[0:1]) + enum[1:] - return enum -} - -// NestedShape returns the shape pointer value for the shape which is nested -// under the current shape. If the shape is not nested nil will be returned. -// -// strucutures, the current shape is returned -// map: the value shape of the map is returned -// list: the element shape of the list is returned -func (s *Shape) NestedShape() *Shape { - var nestedShape *Shape - switch s.Type { - case "structure": - nestedShape = s - case "map": - nestedShape = s.ValueRef.Shape - case "list": - nestedShape = s.MemberRef.Shape - } - - return nestedShape -} - -var structShapeTmpl = template.Must(template.New("StructShape").Parse(` -{{ .Docstring }} -type {{ .ShapeName }} struct { - _ struct{} {{ .GoTags true false }} - - {{ $context := . -}} - {{ range $_, $name := $context.MemberNames -}} - {{ $elem := index $context.MemberRefs $name }} - {{ $isRequired := $context.IsRequired $name }} - {{ $elem.Docstring }} - {{ $name }} {{ $context.GoStructType $name $elem }} {{ $elem.GoTags false $isRequired }} - {{ end }} -} -{{ if not .API.NoStringerMethods }} - {{ .GoCodeStringers }} -{{ end }} -{{ if not .API.NoValidataShapeMethods }} - {{ if .Validations -}} - {{ .Validations.GoCode . }} - {{ end }} -{{ end }} -`)) - -var enumShapeTmpl = template.Must(template.New("EnumShape").Parse(` -{{ .Docstring }} -const ( - {{ $context := . -}} - {{ range $index, $elem := .Enum -}} - // @enum {{ $context.ShapeName }} - {{ index $context.EnumConsts $index }} = "{{ $elem }}" - {{ end }} -) -`)) - -// GoCode returns the rendered Go code for the Shape. -func (s *Shape) GoCode() string { - b := &bytes.Buffer{} - - switch { - case s.Type == "structure": - if err := structShapeTmpl.Execute(b, s); err != nil { - panic(fmt.Sprintf("Failed to generate struct shape %s, %v\n", s.ShapeName, err)) - } - case s.IsEnum(): - if err := enumShapeTmpl.Execute(b, s); err != nil { - panic(fmt.Sprintf("Failed to generate enum shape %s, %v\n", s.ShapeName, err)) - } - default: - panic(fmt.Sprintln("Cannot generate toplevel shape for", s.Type)) - } - - return b.String() -} - -// IsEnum returns whether this shape is an enum list -func (s *Shape) IsEnum() bool { - return s.Type == "string" && len(s.Enum) > 0 -} - -// IsRequired returns if member is a required field. -func (s *Shape) IsRequired(member string) bool { - for _, n := range s.Required { - if n == member { - return true - } - } - return false -} - -// IsInternal returns whether the shape was defined in this package -func (s *Shape) IsInternal() bool { - return s.resolvePkg == "" -} - -// removeRef removes a shape reference from the list of references this -// shape is used in. -func (s *Shape) removeRef(ref *ShapeRef) { - r := s.refs - for i := 0; i < len(r); i++ { - if r[i] == ref { - j := i + 1 - copy(r[i:], r[j:]) - for k, n := len(r)-j+i, len(r); k < n; k++ { - r[k] = nil // free up the end of the list - } // for k - s.refs = r[:len(r)-j+i] - break - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape_validation.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/shape_validation.go deleted file mode 100644 index 97093ab2a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape_validation.go +++ /dev/null @@ -1,153 +0,0 @@ -package api - -import ( - "bytes" - "fmt" - "text/template" -) - -// A ShapeValidationType is the type of validation that a shape needs -type ShapeValidationType int - -const ( - // ShapeValidationRequired states the shape must be set - ShapeValidationRequired = iota - - // ShapeValidationMinVal states the shape must have at least a number of - // elements, or for numbers a minimum value - ShapeValidationMinVal - - // ShapeValidationNested states the shape has nested values that need - // to be validated - ShapeValidationNested -) - -// A ShapeValidation contains information about a shape and the type of validation -// that is needed -type ShapeValidation struct { - // Name of the shape to be validated - Name string - // Reference to the shape within the context the shape is referenced - Ref *ShapeRef - // Type of validation needed - Type ShapeValidationType -} - -var validationGoCodeTmpls = template.Must(template.New("validationGoCodeTmpls").Parse(` -{{ define "requiredValue" -}} - if s.{{ .Name }} == nil { - invalidParams.Add(request.NewErrParamRequired("{{ .Name }}")) - } -{{- end }} -{{ define "minLen" -}} - if s.{{ .Name }} != nil && len(s.{{ .Name }}) < {{ .Ref.Shape.Min }} { - invalidParams.Add(request.NewErrParamMinLen("{{ .Name }}", {{ .Ref.Shape.Min }})) - } -{{- end }} -{{ define "minLenString" -}} - if s.{{ .Name }} != nil && len(*s.{{ .Name }}) < {{ .Ref.Shape.Min }} { - invalidParams.Add(request.NewErrParamMinLen("{{ .Name }}", {{ .Ref.Shape.Min }})) - } -{{- end }} -{{ define "minVal" -}} - if s.{{ .Name }} != nil && *s.{{ .Name }} < {{ .Ref.Shape.Min }} { - invalidParams.Add(request.NewErrParamMinValue("{{ .Name }}", {{ .Ref.Shape.Min }})) - } -{{- end }} -{{ define "nestedMapList" -}} - if s.{{ .Name }} != nil { - for i, v := range s.{{ .Name }} { - if v == nil { continue } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "{{ .Name }}", i), err.(request.ErrInvalidParams)) - } - } - } -{{- end }} -{{ define "nestedStruct" -}} - if s.{{ .Name }} != nil { - if err := s.{{ .Name }}.Validate(); err != nil { - invalidParams.AddNested("{{ .Name }}", err.(request.ErrInvalidParams)) - } - } -{{- end }} -`)) - -// GoCode returns the generated Go code for the Shape with its validation type. -func (sv ShapeValidation) GoCode() string { - var err error - - w := &bytes.Buffer{} - switch sv.Type { - case ShapeValidationRequired: - err = validationGoCodeTmpls.ExecuteTemplate(w, "requiredValue", sv) - case ShapeValidationMinVal: - switch sv.Ref.Shape.Type { - case "list", "map", "blob": - err = validationGoCodeTmpls.ExecuteTemplate(w, "minLen", sv) - case "string": - err = validationGoCodeTmpls.ExecuteTemplate(w, "minLenString", sv) - case "integer", "long", "float", "double": - err = validationGoCodeTmpls.ExecuteTemplate(w, "minVal", sv) - default: - panic(fmt.Sprintf("ShapeValidation.GoCode, %s's type %s, no min value handling", - sv.Name, sv.Ref.Shape.Type)) - } - case ShapeValidationNested: - switch sv.Ref.Shape.Type { - case "map", "list": - err = validationGoCodeTmpls.ExecuteTemplate(w, "nestedMapList", sv) - default: - err = validationGoCodeTmpls.ExecuteTemplate(w, "nestedStruct", sv) - } - default: - panic(fmt.Sprintf("ShapeValidation.GoCode, %s's type %d, unknown validation type", - sv.Name, sv.Type)) - } - - if err != nil { - panic(fmt.Sprintf("ShapeValidation.GoCode failed, err: %v", err)) - } - - return w.String() -} - -// A ShapeValidations is a collection of shape validations needed nested within -// a parent shape -type ShapeValidations []ShapeValidation - -var validateShapeTmpl = template.Must(template.New("ValidateShape").Parse(` -// Validate inspects the fields of the type to determine if they are valid. -func (s *{{ .Shape.ShapeName }}) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "{{ .Shape.ShapeName }}"} - {{ range $_, $v := .Validations -}} - {{ $v.GoCode }} - {{ end }} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} -`)) - -// GoCode generates the Go code needed to perform validations for the -// shape and its nested fields. -func (vs ShapeValidations) GoCode(shape *Shape) string { - buf := &bytes.Buffer{} - validateShapeTmpl.Execute(buf, map[string]interface{}{ - "Shape": shape, - "Validations": vs, - }) - return buf.String() -} - -// Has returns true or false if the ShapeValidations already contains the -// the reference and validation type. -func (vs ShapeValidations) Has(ref *ShapeRef, typ ShapeValidationType) bool { - for _, v := range vs { - if v.Ref == ref && v.Type == typ { - return true - } - } - return false -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/shapetag_test.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/shapetag_test.go deleted file mode 100644 index d00547be9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/shapetag_test.go +++ /dev/null @@ -1,25 +0,0 @@ -// +build 1.6 - -package api_test - -import ( - "testing" - - "github.com/aws/aws-sdk-go/private/model/api" - "github.com/stretchr/testify/assert" -) - -func TestShapeTagJoin(t *testing.T) { - s := api.ShapeTags{ - {Key: "location", Val: "query"}, - {Key: "locationName", Val: "abc"}, - {Key: "type", Val: "string"}, - } - - expected := `location:"query" locationName:"abc" type:"string"` - - o := s.Join(" ") - o2 := s.String() - assert.Equal(t, expected, o) - assert.Equal(t, expected, o2) -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/waiters.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/waiters.go deleted file mode 100644 index ab33c92af..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/waiters.go +++ /dev/null @@ -1,133 +0,0 @@ -package api - -import ( - "bytes" - "encoding/json" - "fmt" - "os" - "sort" - "text/template" -) - -// A Waiter is an individual waiter definition. -type Waiter struct { - Name string - Delay int - MaxAttempts int - OperationName string `json:"operation"` - Operation *Operation - Acceptors []WaitAcceptor -} - -// A WaitAcceptor is an individual wait acceptor definition. -type WaitAcceptor struct { - Expected interface{} - Matcher string - State string - Argument string -} - -// WaitersGoCode generates and returns Go code for each of the waiters of -// this API. -func (a *API) WaitersGoCode() string { - var buf bytes.Buffer - fmt.Fprintf(&buf, "import (\n\t%q\n)", - "github.com/aws/aws-sdk-go/private/waiter") - - for _, w := range a.Waiters { - buf.WriteString(w.GoCode()) - } - return buf.String() -} - -// used for unmarshaling from the waiter JSON file -type waiterDefinitions struct { - *API - Waiters map[string]Waiter -} - -// AttachWaiters reads a file of waiter definitions, and adds those to the API. -// Will panic if an error occurs. -func (a *API) AttachWaiters(filename string) { - p := waiterDefinitions{API: a} - - f, err := os.Open(filename) - defer f.Close() - if err != nil { - panic(err) - } - err = json.NewDecoder(f).Decode(&p) - if err != nil { - panic(err) - } - - p.setup() -} - -func (p *waiterDefinitions) setup() { - p.API.Waiters = []Waiter{} - i, keys := 0, make([]string, len(p.Waiters)) - for k := range p.Waiters { - keys[i] = k - i++ - } - sort.Strings(keys) - - for _, n := range keys { - e := p.Waiters[n] - n = p.ExportableName(n) - e.Name = n - e.OperationName = p.ExportableName(e.OperationName) - e.Operation = p.API.Operations[e.OperationName] - if e.Operation == nil { - panic("unknown operation " + e.OperationName + " for waiter " + n) - } - p.API.Waiters = append(p.API.Waiters, e) - } -} - -// ExpectedString returns the string that was expected by the WaitAcceptor -func (a *WaitAcceptor) ExpectedString() string { - switch a.Expected.(type) { - case string: - return fmt.Sprintf("%q", a.Expected) - default: - return fmt.Sprintf("%v", a.Expected) - } -} - -var tplWaiter = template.Must(template.New("waiter").Parse(` -func (c *{{ .Operation.API.StructName }}) WaitUntil{{ .Name }}(input {{ .Operation.InputRef.GoType }}) error { - waiterCfg := waiter.Config{ - Operation: "{{ .OperationName }}", - Delay: {{ .Delay }}, - MaxAttempts: {{ .MaxAttempts }}, - Acceptors: []waiter.WaitAcceptor{ - {{ range $_, $a := .Acceptors }}waiter.WaitAcceptor{ - State: "{{ .State }}", - Matcher: "{{ .Matcher }}", - Argument: "{{ .Argument }}", - Expected: {{ .ExpectedString }}, - }, - {{ end }} - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} -`)) - -// GoCode returns the generated Go code for an individual waiter. -func (w *Waiter) GoCode() string { - var buf bytes.Buffer - if err := tplWaiter.Execute(&buf, w); err != nil { - panic(err) - } - - return buf.String() -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_test.go deleted file mode 100644 index 140efb53d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/build_test.go +++ /dev/null @@ -1,1170 +0,0 @@ -package ec2query_test - -import ( - "bytes" - "encoding/json" - "encoding/xml" - "fmt" - "io" - "io/ioutil" - "net/http" - "net/url" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/ec2query" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" - "github.com/aws/aws-sdk-go/private/signer/v4" - "github.com/aws/aws-sdk-go/private/util" - "github.com/stretchr/testify/assert" -) - -var _ bytes.Buffer // always import bytes -var _ http.Request -var _ json.Marshaler -var _ time.Time -var _ xmlutil.XMLNode -var _ xml.Attr -var _ = ioutil.Discard -var _ = util.Trim("") -var _ = url.Values{} -var _ = io.EOF -var _ = aws.String -var _ = fmt.Println - -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService1ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService1ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService1ProtocolTest client from just a session. -// svc := inputservice1protocoltest.New(mySession) -// -// // Create a InputService1ProtocolTest client with additional configuration -// svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { - c := p.ClientConfig("inputservice1protocoltest", cfgs...) - return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest { - svc := &InputService1ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice1protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService1ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService1TestCaseOperation1 = "OperationName" - -// InputService1TestCaseOperation1Request generates a request for the InputService1TestCaseOperation1 operation. -func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService1TestCaseOperation1, - } - - if input == nil { - input = &InputService1TestShapeInputService1TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { - req, out := c.InputService1TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService1TestShapeInputService1TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - Bar *string `type:"string"` - - Foo *string `type:"string"` -} - -type InputService1TestShapeInputService1TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService2ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService2ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService2ProtocolTest client from just a session. -// svc := inputservice2protocoltest.New(mySession) -// -// // Create a InputService2ProtocolTest client with additional configuration -// svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { - c := p.ClientConfig("inputservice2protocoltest", cfgs...) - return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest { - svc := &InputService2ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice2protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService2ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService2TestCaseOperation1 = "OperationName" - -// InputService2TestCaseOperation1Request generates a request for the InputService2TestCaseOperation1 operation. -func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService2TestCaseOperation1, - } - - if input == nil { - input = &InputService2TestShapeInputService2TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService2TestShapeInputService2TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { - req, out := c.InputService2TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService2TestShapeInputService2TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - Bar *string `locationName:"barLocationName" type:"string"` - - Foo *string `type:"string"` - - Yuck *string `locationName:"yuckLocationName" queryName:"yuckQueryName" type:"string"` -} - -type InputService2TestShapeInputService2TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService3ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService3ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService3ProtocolTest client from just a session. -// svc := inputservice3protocoltest.New(mySession) -// -// // Create a InputService3ProtocolTest client with additional configuration -// svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { - c := p.ClientConfig("inputservice3protocoltest", cfgs...) - return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest { - svc := &InputService3ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice3protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService3ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService3TestCaseOperation1 = "OperationName" - -// InputService3TestCaseOperation1Request generates a request for the InputService3TestCaseOperation1 operation. -func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService3TestCaseOperation1, - } - - if input == nil { - input = &InputService3TestShapeInputService3TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { - req, out := c.InputService3TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService3TestShapeInputService3TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - StructArg *InputService3TestShapeStructType `locationName:"Struct" type:"structure"` -} - -type InputService3TestShapeInputService3TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService3TestShapeStructType struct { - _ struct{} `type:"structure"` - - ScalarArg *string `locationName:"Scalar" type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService4ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService4ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService4ProtocolTest client from just a session. -// svc := inputservice4protocoltest.New(mySession) -// -// // Create a InputService4ProtocolTest client with additional configuration -// svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { - c := p.ClientConfig("inputservice4protocoltest", cfgs...) - return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest { - svc := &InputService4ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice4protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService4ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService4TestCaseOperation1 = "OperationName" - -// InputService4TestCaseOperation1Request generates a request for the InputService4TestCaseOperation1 operation. -func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService4TestCaseOperation1, - } - - if input == nil { - input = &InputService4TestShapeInputService4TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { - req, out := c.InputService4TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService4TestShapeInputService4TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - ListArg []*string `type:"list"` -} - -type InputService4TestShapeInputService4TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService5ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService5ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService5ProtocolTest client from just a session. -// svc := inputservice5protocoltest.New(mySession) -// -// // Create a InputService5ProtocolTest client with additional configuration -// svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { - c := p.ClientConfig("inputservice5protocoltest", cfgs...) - return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest { - svc := &InputService5ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice5protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService5ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService5TestCaseOperation1 = "OperationName" - -// InputService5TestCaseOperation1Request generates a request for the InputService5TestCaseOperation1 operation. -func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService5TestCaseOperation1, - } - - if input == nil { - input = &InputService5TestShapeInputService5TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { - req, out := c.InputService5TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService5TestShapeInputService5TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - ListArg []*string `locationName:"ListMemberName" locationNameList:"item" type:"list"` -} - -type InputService5TestShapeInputService5TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService6ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService6ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService6ProtocolTest client from just a session. -// svc := inputservice6protocoltest.New(mySession) -// -// // Create a InputService6ProtocolTest client with additional configuration -// svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { - c := p.ClientConfig("inputservice6protocoltest", cfgs...) - return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest { - svc := &InputService6ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice6protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService6ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService6TestCaseOperation1 = "OperationName" - -// InputService6TestCaseOperation1Request generates a request for the InputService6TestCaseOperation1 operation. -func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService6TestCaseOperation1, - } - - if input == nil { - input = &InputService6TestShapeInputService6TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService6TestShapeInputService6TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { - req, out := c.InputService6TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService6TestShapeInputService6TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - ListArg []*string `locationName:"ListMemberName" queryName:"ListQueryName" locationNameList:"item" type:"list"` -} - -type InputService6TestShapeInputService6TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService7ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService7ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService7ProtocolTest client from just a session. -// svc := inputservice7protocoltest.New(mySession) -// -// // Create a InputService7ProtocolTest client with additional configuration -// svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { - c := p.ClientConfig("inputservice7protocoltest", cfgs...) - return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest { - svc := &InputService7ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice7protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService7ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService7TestCaseOperation1 = "OperationName" - -// InputService7TestCaseOperation1Request generates a request for the InputService7TestCaseOperation1 operation. -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService7TestCaseOperation1, - } - - if input == nil { - input = &InputService7TestShapeInputService7TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { - req, out := c.InputService7TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService7TestShapeInputService7TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - // BlobArg is automatically base64 encoded/decoded by the SDK. - BlobArg []byte `type:"blob"` -} - -type InputService7TestShapeInputService7TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService8ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService8ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService8ProtocolTest client from just a session. -// svc := inputservice8protocoltest.New(mySession) -// -// // Create a InputService8ProtocolTest client with additional configuration -// svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { - c := p.ClientConfig("inputservice8protocoltest", cfgs...) - return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest { - svc := &InputService8ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice8protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService8ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService8TestCaseOperation1 = "OperationName" - -// InputService8TestCaseOperation1Request generates a request for the InputService8TestCaseOperation1 operation. -func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService8TestCaseOperation1, - } - - if input == nil { - input = &InputService8TestShapeInputService8TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService8TestShapeInputService8TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { - req, out := c.InputService8TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService8TestShapeInputService8TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"` -} - -type InputService8TestShapeInputService8TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService9ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService9ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService9ProtocolTest client from just a session. -// svc := inputservice9protocoltest.New(mySession) -// -// // Create a InputService9ProtocolTest client with additional configuration -// svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { - c := p.ClientConfig("inputservice9protocoltest", cfgs...) - return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest { - svc := &InputService9ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice9protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService9ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService9TestCaseOperation1 = "OperationName" - -// InputService9TestCaseOperation1Request generates a request for the InputService9TestCaseOperation1 operation. -func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService9TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService9TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService9TestShapeInputService9TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { - req, out := c.InputService9TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService9TestCaseOperation2 = "OperationName" - -// InputService9TestCaseOperation2Request generates a request for the InputService9TestCaseOperation2 operation. -func (c *InputService9ProtocolTest) InputService9TestCaseOperation2Request(input *InputService9TestShapeInputShape) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService9TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService9TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService9TestShapeInputService9TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService9ProtocolTest) InputService9TestCaseOperation2(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation2Output, error) { - req, out := c.InputService9TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService9TestShapeInputService9TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService9TestShapeInputService9TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService9TestShapeInputShape struct { - _ struct{} `type:"structure"` - - Token *string `type:"string" idempotencyToken:"true"` -} - -// -// Tests begin here -// - -func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) { - sess := session.New() - svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService1TestShapeInputService1TestCaseOperation1Input{ - Bar: aws.String("val2"), - Foo: aws.String("val1"), - } - req, _ := svc.InputService1TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - ec2query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&Bar=val2&Foo=val1&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService2ProtocolTestStructureWithLocationNameAndQueryNameAppliedToMembersCase1(t *testing.T) { - sess := session.New() - svc := NewInputService2ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService2TestShapeInputService2TestCaseOperation1Input{ - Bar: aws.String("val2"), - Foo: aws.String("val1"), - Yuck: aws.String("val3"), - } - req, _ := svc.InputService2TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - ec2query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&BarLocationName=val2&Foo=val1&Version=2014-01-01&yuckQueryName=val3`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService3ProtocolTestNestedStructureMembersCase1(t *testing.T) { - sess := session.New() - svc := NewInputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService3TestShapeInputService3TestCaseOperation1Input{ - StructArg: &InputService3TestShapeStructType{ - ScalarArg: aws.String("foo"), - }, - } - req, _ := svc.InputService3TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - ec2query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&Struct.Scalar=foo&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService4ProtocolTestListTypesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService4TestShapeInputService4TestCaseOperation1Input{ - ListArg: []*string{ - aws.String("foo"), - aws.String("bar"), - aws.String("baz"), - }, - } - req, _ := svc.InputService4TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - ec2query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&ListArg.1=foo&ListArg.2=bar&ListArg.3=baz&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService5ProtocolTestListWithLocationNameAppliedToMemberCase1(t *testing.T) { - sess := session.New() - svc := NewInputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService5TestShapeInputService5TestCaseOperation1Input{ - ListArg: []*string{ - aws.String("a"), - aws.String("b"), - aws.String("c"), - }, - } - req, _ := svc.InputService5TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - ec2query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&ListMemberName.1=a&ListMemberName.2=b&ListMemberName.3=c&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService6ProtocolTestListWithLocationNameAndQueryNameCase1(t *testing.T) { - sess := session.New() - svc := NewInputService6ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService6TestShapeInputService6TestCaseOperation1Input{ - ListArg: []*string{ - aws.String("a"), - aws.String("b"), - aws.String("c"), - }, - } - req, _ := svc.InputService6TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - ec2query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&ListQueryName.1=a&ListQueryName.2=b&ListQueryName.3=c&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService7ProtocolTestBase64EncodedBlobsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService7ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService7TestShapeInputService7TestCaseOperation1Input{ - BlobArg: []byte("foo"), - } - req, _ := svc.InputService7TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - ec2query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&BlobArg=Zm9v&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService8ProtocolTestTimestampValuesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService8ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService8TestShapeInputService8TestCaseOperation1Input{ - TimeArg: aws.Time(time.Unix(1422172800, 0)), - } - req, _ := svc.InputService8TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - ec2query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService9ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { - sess := session.New() - svc := NewInputService9ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService9TestShapeInputShape{ - Token: aws.String("abc123"), - } - req, _ := svc.InputService9TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - ec2query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Token=abc123`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService9ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { - sess := session.New() - svc := NewInputService9ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService9TestShapeInputShape{} - req, _ := svc.InputService9TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - ec2query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Token=00000000-0000-4000-8000-000000000000`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal_test.go deleted file mode 100644 index 78bcc878d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal_test.go +++ /dev/null @@ -1,1063 +0,0 @@ -package ec2query_test - -import ( - "bytes" - "encoding/json" - "encoding/xml" - "fmt" - "io" - "io/ioutil" - "net/http" - "net/url" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/ec2query" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" - "github.com/aws/aws-sdk-go/private/signer/v4" - "github.com/aws/aws-sdk-go/private/util" - "github.com/stretchr/testify/assert" -) - -var _ bytes.Buffer // always import bytes -var _ http.Request -var _ json.Marshaler -var _ time.Time -var _ xmlutil.XMLNode -var _ xml.Attr -var _ = ioutil.Discard -var _ = util.Trim("") -var _ = url.Values{} -var _ = io.EOF -var _ = aws.String -var _ = fmt.Println - -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService1ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService1ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService1ProtocolTest client from just a session. -// svc := outputservice1protocoltest.New(mySession) -// -// // Create a OutputService1ProtocolTest client with additional configuration -// svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { - c := p.ClientConfig("outputservice1protocoltest", cfgs...) - return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService1ProtocolTest { - svc := &OutputService1ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice1protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService1ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService1TestCaseOperation1 = "OperationName" - -// OutputService1TestCaseOperation1Request generates a request for the OutputService1TestCaseOperation1 operation. -func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService1TestCaseOperation1, - } - - if input == nil { - input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { - req, out := c.OutputService1TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService1TestShapeOutputService1TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - Char *string `type:"character"` - - Double *float64 `type:"double"` - - FalseBool *bool `type:"boolean"` - - Float *float64 `type:"float"` - - Long *int64 `type:"long"` - - Num *int64 `locationName:"FooNum" type:"integer"` - - Str *string `type:"string"` - - TrueBool *bool `type:"boolean"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService2ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService2ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService2ProtocolTest client from just a session. -// svc := outputservice2protocoltest.New(mySession) -// -// // Create a OutputService2ProtocolTest client with additional configuration -// svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { - c := p.ClientConfig("outputservice2protocoltest", cfgs...) - return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService2ProtocolTest { - svc := &OutputService2ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice2protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService2ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService2TestCaseOperation1 = "OperationName" - -// OutputService2TestCaseOperation1Request generates a request for the OutputService2TestCaseOperation1 operation. -func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService2TestCaseOperation1, - } - - if input == nil { - input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { - req, out := c.OutputService2TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService2TestShapeOutputService2TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - // Blob is automatically base64 encoded/decoded by the SDK. - Blob []byte `type:"blob"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService3ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService3ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService3ProtocolTest client from just a session. -// svc := outputservice3protocoltest.New(mySession) -// -// // Create a OutputService3ProtocolTest client with additional configuration -// svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { - c := p.ClientConfig("outputservice3protocoltest", cfgs...) - return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService3ProtocolTest { - svc := &OutputService3ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice3protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService3ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService3TestCaseOperation1 = "OperationName" - -// OutputService3TestCaseOperation1Request generates a request for the OutputService3TestCaseOperation1 operation. -func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService3TestCaseOperation1, - } - - if input == nil { - input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { - req, out := c.OutputService3TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService3TestShapeOutputService3TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - ListMember []*string `type:"list"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService4ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService4ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService4ProtocolTest client from just a session. -// svc := outputservice4protocoltest.New(mySession) -// -// // Create a OutputService4ProtocolTest client with additional configuration -// svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { - c := p.ClientConfig("outputservice4protocoltest", cfgs...) - return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService4ProtocolTest { - svc := &OutputService4ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice4protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService4ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService4TestCaseOperation1 = "OperationName" - -// OutputService4TestCaseOperation1Request generates a request for the OutputService4TestCaseOperation1 operation. -func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService4TestCaseOperation1, - } - - if input == nil { - input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { - req, out := c.OutputService4TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService4TestShapeOutputService4TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService4TestShapeOutputService4TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - ListMember []*string `locationNameList:"item" type:"list"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService5ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService5ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService5ProtocolTest client from just a session. -// svc := outputservice5protocoltest.New(mySession) -// -// // Create a OutputService5ProtocolTest client with additional configuration -// svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { - c := p.ClientConfig("outputservice5protocoltest", cfgs...) - return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService5ProtocolTest { - svc := &OutputService5ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice5protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService5ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService5TestCaseOperation1 = "OperationName" - -// OutputService5TestCaseOperation1Request generates a request for the OutputService5TestCaseOperation1 operation. -func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService5TestCaseOperation1, - } - - if input == nil { - input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { - req, out := c.OutputService5TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService5TestShapeOutputService5TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - ListMember []*string `type:"list" flattened:"true"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService6ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService6ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService6ProtocolTest client from just a session. -// svc := outputservice6protocoltest.New(mySession) -// -// // Create a OutputService6ProtocolTest client with additional configuration -// svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { - c := p.ClientConfig("outputservice6protocoltest", cfgs...) - return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService6ProtocolTest { - svc := &OutputService6ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice6protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService6ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService6TestCaseOperation1 = "OperationName" - -// OutputService6TestCaseOperation1Request generates a request for the OutputService6TestCaseOperation1 operation. -func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService6TestCaseOperation1, - } - - if input == nil { - input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { - req, out := c.OutputService6TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService6TestShapeOutputService6TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - Map map[string]*OutputService6TestShapeStructureType `type:"map"` -} - -type OutputService6TestShapeStructureType struct { - _ struct{} `type:"structure"` - - Foo *string `locationName:"foo" type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService7ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService7ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService7ProtocolTest client from just a session. -// svc := outputservice7protocoltest.New(mySession) -// -// // Create a OutputService7ProtocolTest client with additional configuration -// svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest { - c := p.ClientConfig("outputservice7protocoltest", cfgs...) - return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService7ProtocolTest { - svc := &OutputService7ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice7protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService7ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService7TestCaseOperation1 = "OperationName" - -// OutputService7TestCaseOperation1Request generates a request for the OutputService7TestCaseOperation1 operation. -func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (req *request.Request, output *OutputService7TestShapeOutputService7TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService7TestCaseOperation1, - } - - if input == nil { - input = &OutputService7TestShapeOutputService7TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService7TestShapeOutputService7TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) { - req, out := c.OutputService7TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService7TestShapeOutputService7TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService7TestShapeOutputService7TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - Map map[string]*string `type:"map" flattened:"true"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService8ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService8ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService8ProtocolTest client from just a session. -// svc := outputservice8protocoltest.New(mySession) -// -// // Create a OutputService8ProtocolTest client with additional configuration -// svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest { - c := p.ClientConfig("outputservice8protocoltest", cfgs...) - return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService8ProtocolTest { - svc := &OutputService8ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice8protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService8ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService8TestCaseOperation1 = "OperationName" - -// OutputService8TestCaseOperation1Request generates a request for the OutputService8TestCaseOperation1 operation. -func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService8TestCaseOperation1, - } - - if input == nil { - input = &OutputService8TestShapeOutputService8TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService8TestShapeOutputService8TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) { - req, out := c.OutputService8TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService8TestShapeOutputService8TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService8TestShapeOutputService8TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - Map map[string]*string `locationNameKey:"foo" locationNameValue:"bar" type:"map" flattened:"true"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService9ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService9ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService9ProtocolTest client from just a session. -// svc := outputservice9protocoltest.New(mySession) -// -// // Create a OutputService9ProtocolTest client with additional configuration -// svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest { - c := p.ClientConfig("outputservice9protocoltest", cfgs...) - return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService9ProtocolTest { - svc := &OutputService9ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice9protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService9ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService9TestCaseOperation1 = "OperationName" - -// OutputService9TestCaseOperation1Request generates a request for the OutputService9TestCaseOperation1 operation. -func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (req *request.Request, output *OutputService9TestShapeOutputService9TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService9TestCaseOperation1, - } - - if input == nil { - input = &OutputService9TestShapeOutputService9TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService9TestShapeOutputService9TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) { - req, out := c.OutputService9TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService9TestShapeOutputService9TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService9TestShapeOutputService9TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - Foo *string `type:"string"` -} - -// -// Tests begin here -// - -func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("myname123falsetrue1.21.3200arequest-id")) - req, out := svc.OutputService1TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - ec2query.UnmarshalMeta(req) - ec2query.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "a", *out.Char) - assert.Equal(t, 1.3, *out.Double) - assert.Equal(t, false, *out.FalseBool) - assert.Equal(t, 1.2, *out.Float) - assert.Equal(t, int64(200), *out.Long) - assert.Equal(t, int64(123), *out.Num) - assert.Equal(t, "myname", *out.Str) - assert.Equal(t, true, *out.TrueBool) - -} - -func TestOutputService2ProtocolTestBlobCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService2ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("dmFsdWU=requestid")) - req, out := svc.OutputService2TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - ec2query.UnmarshalMeta(req) - ec2query.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "value", string(out.Blob)) - -} - -func TestOutputService3ProtocolTestListsCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("abc123requestid")) - req, out := svc.OutputService3TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - ec2query.UnmarshalMeta(req) - ec2query.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "abc", *out.ListMember[0]) - assert.Equal(t, "123", *out.ListMember[1]) - -} - -func TestOutputService4ProtocolTestListWithCustomMemberNameCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("abc123requestid")) - req, out := svc.OutputService4TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - ec2query.UnmarshalMeta(req) - ec2query.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "abc", *out.ListMember[0]) - assert.Equal(t, "123", *out.ListMember[1]) - -} - -func TestOutputService5ProtocolTestFlattenedListCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("abc123requestid")) - req, out := svc.OutputService5TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - ec2query.UnmarshalMeta(req) - ec2query.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "abc", *out.ListMember[0]) - assert.Equal(t, "123", *out.ListMember[1]) - -} - -func TestOutputService6ProtocolTestNormalMapCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService6ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("quxbarbazbamrequestid")) - req, out := svc.OutputService6TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - ec2query.UnmarshalMeta(req) - ec2query.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "bam", *out.Map["baz"].Foo) - assert.Equal(t, "bar", *out.Map["qux"].Foo) - -} - -func TestOutputService7ProtocolTestFlattenedMapCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService7ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("quxbarbazbamrequestid")) - req, out := svc.OutputService7TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - ec2query.UnmarshalMeta(req) - ec2query.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "bam", *out.Map["baz"]) - assert.Equal(t, "bar", *out.Map["qux"]) - -} - -func TestOutputService8ProtocolTestNamedMapCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService8ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("quxbarbazbamrequestid")) - req, out := svc.OutputService8TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - ec2query.UnmarshalMeta(req) - ec2query.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "bam", *out.Map["baz"]) - assert.Equal(t, "bar", *out.Map["qux"]) - -} - -func TestOutputService9ProtocolTestEmptyStringCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService9ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("requestid")) - req, out := svc.OutputService9TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - ec2query.UnmarshalMeta(req) - ec2query.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "", *out.Foo) - -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/idempotency.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/idempotency.go deleted file mode 100644 index 53831dff9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/idempotency.go +++ /dev/null @@ -1,75 +0,0 @@ -package protocol - -import ( - "crypto/rand" - "fmt" - "reflect" -) - -// RandReader is the random reader the protocol package will use to read -// random bytes from. This is exported for testing, and should not be used. -var RandReader = rand.Reader - -const idempotencyTokenFillTag = `idempotencyToken` - -// CanSetIdempotencyToken returns true if the struct field should be -// automatically populated with a Idempotency token. -// -// Only *string and string type fields that are tagged with idempotencyToken -// which are not already set can be auto filled. -func CanSetIdempotencyToken(v reflect.Value, f reflect.StructField) bool { - switch u := v.Interface().(type) { - // To auto fill an Idempotency token the field must be a string, - // tagged for auto fill, and have a zero value. - case *string: - return u == nil && len(f.Tag.Get(idempotencyTokenFillTag)) != 0 - case string: - return len(u) == 0 && len(f.Tag.Get(idempotencyTokenFillTag)) != 0 - } - - return false -} - -// GetIdempotencyToken returns a randomly generated idempotency token. -func GetIdempotencyToken() string { - b := make([]byte, 16) - RandReader.Read(b) - - return UUIDVersion4(b) -} - -// SetIdempotencyToken will set the value provided with a Idempotency Token. -// Given that the value can be set. Will panic if value is not setable. -func SetIdempotencyToken(v reflect.Value) { - if v.Kind() == reflect.Ptr { - if v.IsNil() && v.CanSet() { - v.Set(reflect.New(v.Type().Elem())) - } - v = v.Elem() - } - v = reflect.Indirect(v) - - if !v.CanSet() { - panic(fmt.Sprintf("unable to set idempotnecy token %v", v)) - } - - b := make([]byte, 16) - _, err := rand.Read(b) - if err != nil { - // TODO handle error - return - } - - v.Set(reflect.ValueOf(UUIDVersion4(b))) -} - -// UUIDVersion4 returns a Version 4 random UUID from the byte slice provided -func UUIDVersion4(u []byte) string { - // https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29 - // 13th character is "4" - u[6] = (u[6] | 0x40) & 0x4F - // 17th character is "8", "9", "a", or "b" - u[8] = (u[8] | 0x80) & 0xBF - - return fmt.Sprintf(`%X-%X-%X-%X-%X`, u[0:4], u[4:6], u[6:8], u[8:10], u[10:]) -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/idempotency_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/idempotency_test.go deleted file mode 100644 index b6ea23562..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/idempotency_test.go +++ /dev/null @@ -1,106 +0,0 @@ -package protocol_test - -import ( - "reflect" - "testing" - - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/stretchr/testify/assert" -) - -func TestCanSetIdempotencyToken(t *testing.T) { - cases := []struct { - CanSet bool - Case interface{} - }{ - { - true, - struct { - Field *string `idempotencyToken:"true"` - }{}, - }, - { - true, - struct { - Field string `idempotencyToken:"true"` - }{}, - }, - { - false, - struct { - Field *string `idempotencyToken:"true"` - }{Field: new(string)}, - }, - { - false, - struct { - Field string `idempotencyToken:"true"` - }{Field: "value"}, - }, - { - false, - struct { - Field *int `idempotencyToken:"true"` - }{}, - }, - { - false, - struct { - Field *string - }{}, - }, - } - - for i, c := range cases { - v := reflect.Indirect(reflect.ValueOf(c.Case)) - ty := v.Type() - canSet := protocol.CanSetIdempotencyToken(v.Field(0), ty.Field(0)) - assert.Equal(t, c.CanSet, canSet, "Expect case %d can set to match", i) - } -} - -func TestSetIdempotencyToken(t *testing.T) { - cases := []struct { - Case interface{} - }{ - { - &struct { - Field *string `idempotencyToken:"true"` - }{}, - }, - { - &struct { - Field string `idempotencyToken:"true"` - }{}, - }, - { - &struct { - Field *string `idempotencyToken:"true"` - }{Field: new(string)}, - }, - { - &struct { - Field string `idempotencyToken:"true"` - }{Field: ""}, - }, - } - - for i, c := range cases { - v := reflect.Indirect(reflect.ValueOf(c.Case)) - - protocol.SetIdempotencyToken(v.Field(0)) - assert.NotEmpty(t, v.Field(0).Interface(), "Expect case %d to be set", i) - } -} - -func TestUUIDVersion4(t *testing.T) { - uuid := protocol.UUIDVersion4(make([]byte, 16)) - assert.Equal(t, `00000000-0000-4000-8000-000000000000`, uuid) - - b := make([]byte, 16) - for i := 0; i < len(b); i++ { - b[i] = 1 - } - uuid = protocol.UUIDVersion4(b) - assert.Equal(t, `01010101-0101-4101-8101-010101010101`, uuid) -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/unmarshal_test.go deleted file mode 100644 index 43045a703..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/unmarshal_test.go +++ /dev/null @@ -1,820 +0,0 @@ -package jsonrpc_test - -import ( - "bytes" - "encoding/json" - "encoding/xml" - "fmt" - "io" - "io/ioutil" - "net/http" - "net/url" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" - "github.com/aws/aws-sdk-go/private/signer/v4" - "github.com/aws/aws-sdk-go/private/util" - "github.com/stretchr/testify/assert" -) - -var _ bytes.Buffer // always import bytes -var _ http.Request -var _ json.Marshaler -var _ time.Time -var _ xmlutil.XMLNode -var _ xml.Attr -var _ = ioutil.Discard -var _ = util.Trim("") -var _ = url.Values{} -var _ = io.EOF -var _ = aws.String -var _ = fmt.Println - -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService1ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService1ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService1ProtocolTest client from just a session. -// svc := outputservice1protocoltest.New(mySession) -// -// // Create a OutputService1ProtocolTest client with additional configuration -// svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest { - c := p.ClientConfig("outputservice1protocoltest", cfgs...) - return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService1ProtocolTest { - svc := &OutputService1ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice1protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "", - TargetPrefix: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService1ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService1TestCaseOperation1 = "OperationName" - -// OutputService1TestCaseOperation1Request generates a request for the OutputService1TestCaseOperation1 operation. -func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService1TestCaseOperation1, - } - - if input == nil { - input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { - req, out := c.OutputService1TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService1TestShapeOutputService1TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService1TestShapeOutputService1TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - Char *string `type:"character"` - - Double *float64 `type:"double"` - - FalseBool *bool `type:"boolean"` - - Float *float64 `type:"float"` - - Long *int64 `type:"long"` - - Num *int64 `type:"integer"` - - Str *string `type:"string"` - - TrueBool *bool `type:"boolean"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService2ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService2ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService2ProtocolTest client from just a session. -// svc := outputservice2protocoltest.New(mySession) -// -// // Create a OutputService2ProtocolTest client with additional configuration -// svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest { - c := p.ClientConfig("outputservice2protocoltest", cfgs...) - return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService2ProtocolTest { - svc := &OutputService2ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice2protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "", - TargetPrefix: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService2ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService2TestCaseOperation1 = "OperationName" - -// OutputService2TestCaseOperation1Request generates a request for the OutputService2TestCaseOperation1 operation. -func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService2TestCaseOperation1, - } - - if input == nil { - input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { - req, out := c.OutputService2TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService2TestShapeBlobContainer struct { - _ struct{} `type:"structure"` - - // Foo is automatically base64 encoded/decoded by the SDK. - Foo []byte `locationName:"foo" type:"blob"` -} - -type OutputService2TestShapeOutputService2TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService2TestShapeOutputService2TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - // BlobMember is automatically base64 encoded/decoded by the SDK. - BlobMember []byte `type:"blob"` - - StructMember *OutputService2TestShapeBlobContainer `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService3ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService3ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService3ProtocolTest client from just a session. -// svc := outputservice3protocoltest.New(mySession) -// -// // Create a OutputService3ProtocolTest client with additional configuration -// svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest { - c := p.ClientConfig("outputservice3protocoltest", cfgs...) - return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService3ProtocolTest { - svc := &OutputService3ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice3protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "", - TargetPrefix: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService3ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService3TestCaseOperation1 = "OperationName" - -// OutputService3TestCaseOperation1Request generates a request for the OutputService3TestCaseOperation1 operation. -func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService3TestCaseOperation1, - } - - if input == nil { - input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { - req, out := c.OutputService3TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService3TestShapeOutputService3TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService3TestShapeOutputService3TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - StructMember *OutputService3TestShapeTimeContainer `type:"structure"` - - TimeMember *time.Time `type:"timestamp" timestampFormat:"unix"` -} - -type OutputService3TestShapeTimeContainer struct { - _ struct{} `type:"structure"` - - Foo *time.Time `locationName:"foo" type:"timestamp" timestampFormat:"unix"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService4ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService4ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService4ProtocolTest client from just a session. -// svc := outputservice4protocoltest.New(mySession) -// -// // Create a OutputService4ProtocolTest client with additional configuration -// svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest { - c := p.ClientConfig("outputservice4protocoltest", cfgs...) - return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService4ProtocolTest { - svc := &OutputService4ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice4protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "", - TargetPrefix: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService4ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService4TestCaseOperation1 = "OperationName" - -// OutputService4TestCaseOperation1Request generates a request for the OutputService4TestCaseOperation1 operation. -func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputShape) { - op := &request.Operation{ - Name: opOutputService4TestCaseOperation1, - } - - if input == nil { - input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService4TestShapeOutputShape{} - req.Data = output - return -} - -func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputShape, error) { - req, out := c.OutputService4TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opOutputService4TestCaseOperation2 = "OperationName" - -// OutputService4TestCaseOperation2Request generates a request for the OutputService4TestCaseOperation2 operation. -func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2Request(input *OutputService4TestShapeOutputService4TestCaseOperation2Input) (req *request.Request, output *OutputService4TestShapeOutputShape) { - op := &request.Operation{ - Name: opOutputService4TestCaseOperation2, - } - - if input == nil { - input = &OutputService4TestShapeOutputService4TestCaseOperation2Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService4TestShapeOutputShape{} - req.Data = output - return -} - -func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2(input *OutputService4TestShapeOutputService4TestCaseOperation2Input) (*OutputService4TestShapeOutputShape, error) { - req, out := c.OutputService4TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type OutputService4TestShapeOutputService4TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService4TestShapeOutputService4TestCaseOperation2Input struct { - _ struct{} `type:"structure"` -} - -type OutputService4TestShapeOutputShape struct { - _ struct{} `type:"structure"` - - ListMember []*string `type:"list"` - - ListMemberMap []map[string]*string `type:"list"` - - ListMemberStruct []*OutputService4TestShapeStructType `type:"list"` -} - -type OutputService4TestShapeStructType struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService5ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService5ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService5ProtocolTest client from just a session. -// svc := outputservice5protocoltest.New(mySession) -// -// // Create a OutputService5ProtocolTest client with additional configuration -// svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest { - c := p.ClientConfig("outputservice5protocoltest", cfgs...) - return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService5ProtocolTest { - svc := &OutputService5ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice5protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "", - TargetPrefix: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService5ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService5TestCaseOperation1 = "OperationName" - -// OutputService5TestCaseOperation1Request generates a request for the OutputService5TestCaseOperation1 operation. -func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService5TestCaseOperation1, - } - - if input == nil { - input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { - req, out := c.OutputService5TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService5TestShapeOutputService5TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService5TestShapeOutputService5TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - MapMember map[string][]*int64 `type:"map"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type OutputService6ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the OutputService6ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OutputService6ProtocolTest client from just a session. -// svc := outputservice6protocoltest.New(mySession) -// -// // Create a OutputService6ProtocolTest client with additional configuration -// svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest { - c := p.ClientConfig("outputservice6protocoltest", cfgs...) - return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OutputService6ProtocolTest { - svc := &OutputService6ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "outputservice6protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "", - JSONVersion: "", - TargetPrefix: "", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a OutputService6ProtocolTest operation and runs any -// custom request initialization. -func (c *OutputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opOutputService6TestCaseOperation1 = "OperationName" - -// OutputService6TestCaseOperation1Request generates a request for the OutputService6TestCaseOperation1 operation. -func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) { - op := &request.Operation{ - Name: opOutputService6TestCaseOperation1, - } - - if input == nil { - input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { - req, out := c.OutputService6TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type OutputService6TestShapeOutputService6TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type OutputService6TestShapeOutputService6TestCaseOperation1Output struct { - _ struct{} `type:"structure"` - - StrType *string `type:"string"` -} - -// -// Tests begin here -// - -func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("{\"Str\": \"myname\", \"Num\": 123, \"FalseBool\": false, \"TrueBool\": true, \"Float\": 1.2, \"Double\": 1.3, \"Long\": 200, \"Char\": \"a\"}")) - req, out := svc.OutputService1TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - jsonrpc.UnmarshalMeta(req) - jsonrpc.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "a", *out.Char) - assert.Equal(t, 1.3, *out.Double) - assert.Equal(t, false, *out.FalseBool) - assert.Equal(t, 1.2, *out.Float) - assert.Equal(t, int64(200), *out.Long) - assert.Equal(t, int64(123), *out.Num) - assert.Equal(t, "myname", *out.Str) - assert.Equal(t, true, *out.TrueBool) - -} - -func TestOutputService2ProtocolTestBlobMembersCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService2ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("{\"BlobMember\": \"aGkh\", \"StructMember\": {\"foo\": \"dGhlcmUh\"}}")) - req, out := svc.OutputService2TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - jsonrpc.UnmarshalMeta(req) - jsonrpc.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "hi!", string(out.BlobMember)) - assert.Equal(t, "there!", string(out.StructMember.Foo)) - -} - -func TestOutputService3ProtocolTestTimestampMembersCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("{\"TimeMember\": 1398796238, \"StructMember\": {\"foo\": 1398796238}}")) - req, out := svc.OutputService3TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - jsonrpc.UnmarshalMeta(req) - jsonrpc.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.String()) - assert.Equal(t, time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeMember.String()) - -} - -func TestOutputService4ProtocolTestListsCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("{\"ListMember\": [\"a\", \"b\"]}")) - req, out := svc.OutputService4TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - jsonrpc.UnmarshalMeta(req) - jsonrpc.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "a", *out.ListMember[0]) - assert.Equal(t, "b", *out.ListMember[1]) - -} - -func TestOutputService4ProtocolTestListsCase2(t *testing.T) { - sess := session.New() - svc := NewOutputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("{\"ListMember\": [\"a\", null], \"ListMemberMap\": [{}, null, null, {}], \"ListMemberStruct\": [{}, null, null, {}]}")) - req, out := svc.OutputService4TestCaseOperation2Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - jsonrpc.UnmarshalMeta(req) - jsonrpc.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, "a", *out.ListMember[0]) - assert.Nil(t, out.ListMember[1]) - assert.Nil(t, out.ListMemberMap[1]) - assert.Nil(t, out.ListMemberMap[2]) - assert.Nil(t, out.ListMemberStruct[1]) - assert.Nil(t, out.ListMemberStruct[2]) - -} - -func TestOutputService5ProtocolTestMapsCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("{\"MapMember\": {\"a\": [1, 2], \"b\": [3, 4]}}")) - req, out := svc.OutputService5TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - jsonrpc.UnmarshalMeta(req) - jsonrpc.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - assert.Equal(t, int64(1), *out.MapMember["a"][0]) - assert.Equal(t, int64(2), *out.MapMember["a"][1]) - assert.Equal(t, int64(3), *out.MapMember["b"][0]) - assert.Equal(t, int64(4), *out.MapMember["b"][1]) - -} - -func TestOutputService6ProtocolTestIgnoresExtraDataCase1(t *testing.T) { - sess := session.New() - svc := NewOutputService6ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - - buf := bytes.NewReader([]byte("{\"foo\": \"bar\"}")) - req, out := svc.OutputService6TestCaseOperation1Request(nil) - req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}} - - // set headers - - // unmarshal response - jsonrpc.UnmarshalMeta(req) - jsonrpc.Unmarshal(req) - assert.NoError(t, req.Error) - - // assert response - assert.NotNil(t, out) // ensure out variable is used - -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/protocol_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/protocol_test.go deleted file mode 100644 index 6ba44124a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/protocol_test.go +++ /dev/null @@ -1,203 +0,0 @@ -package protocol_test - -import ( - "fmt" - "net/http" - "net/url" - "testing" - - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/ec2query" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/protocol/rest" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/protocol/restxml" -) - -func xmlData(set bool, b []byte, size, delta int) { - if !set { - copy(b, []byte("")) - } - if size == 0 { - copy(b[delta-len(""):], []byte("")) - } -} - -func jsonData(set bool, b []byte, size, delta int) { - if !set { - copy(b, []byte("{\"A\": \"")) - } - if size == 0 { - copy(b[delta-len("\"}"):], []byte("\"}")) - } -} - -func buildNewRequest(data interface{}) *request.Request { - v := url.Values{} - v.Set("test", "TEST") - v.Add("test1", "TEST1") - - req := &request.Request{ - HTTPRequest: &http.Request{ - Header: make(http.Header), - Body: &awstesting.ReadCloser{Size: 2048}, - URL: &url.URL{ - RawQuery: v.Encode(), - }, - }, - Params: &struct { - LocationName string `locationName:"test"` - }{ - "Test", - }, - ClientInfo: metadata.ClientInfo{ - ServiceName: "test", - TargetPrefix: "test", - JSONVersion: "test", - APIVersion: "test", - Endpoint: "test", - SigningName: "test", - SigningRegion: "test", - }, - Operation: &request.Operation{ - Name: "test", - }, - } - req.HTTPResponse = &http.Response{ - Body: &awstesting.ReadCloser{Size: 2048}, - Header: http.Header{ - "X-Amzn-Requestid": []string{"1"}, - }, - StatusCode: http.StatusOK, - } - - if data == nil { - data = &struct { - _ struct{} `type:"structure"` - LocationName *string `locationName:"testName"` - Location *string `location:"statusCode"` - A *string `type:"string"` - }{} - } - - req.Data = data - - return req -} - -type expected struct { - dataType int - closed bool - size int - errExists bool -} - -const ( - jsonType = iota - xmlType -) - -func checkForLeak(data interface{}, build, fn func(*request.Request), t *testing.T, result expected) { - req := buildNewRequest(data) - reader := req.HTTPResponse.Body.(*awstesting.ReadCloser) - switch result.dataType { - case jsonType: - reader.FillData = jsonData - case xmlType: - reader.FillData = xmlData - } - build(req) - fn(req) - - if result.errExists { - assert.NotNil(t, req.Error) - } else { - fmt.Println(req.Error) - assert.Nil(t, req.Error) - } - - assert.Equal(t, reader.Closed, result.closed) - assert.Equal(t, reader.Size, result.size) -} - -func TestJSONRpc(t *testing.T) { - checkForLeak(nil, jsonrpc.Build, jsonrpc.Unmarshal, t, expected{jsonType, true, 0, false}) - checkForLeak(nil, jsonrpc.Build, jsonrpc.UnmarshalMeta, t, expected{jsonType, false, 2048, false}) - checkForLeak(nil, jsonrpc.Build, jsonrpc.UnmarshalError, t, expected{jsonType, true, 0, true}) -} - -func TestQuery(t *testing.T) { - checkForLeak(nil, query.Build, query.Unmarshal, t, expected{jsonType, true, 0, false}) - checkForLeak(nil, query.Build, query.UnmarshalMeta, t, expected{jsonType, false, 2048, false}) - checkForLeak(nil, query.Build, query.UnmarshalError, t, expected{jsonType, true, 0, true}) -} - -func TestRest(t *testing.T) { - // case 1: Payload io.ReadSeeker - checkForLeak(nil, rest.Build, rest.Unmarshal, t, expected{jsonType, false, 2048, false}) - checkForLeak(nil, query.Build, query.UnmarshalMeta, t, expected{jsonType, false, 2048, false}) - - // case 2: Payload *string - // should close the body - dataStr := struct { - _ struct{} `type:"structure" payload:"Payload"` - LocationName *string `locationName:"testName"` - Location *string `location:"statusCode"` - A *string `type:"string"` - Payload *string `locationName:"payload" type:"blob" required:"true"` - }{} - checkForLeak(&dataStr, rest.Build, rest.Unmarshal, t, expected{jsonType, true, 0, false}) - checkForLeak(&dataStr, query.Build, query.UnmarshalMeta, t, expected{jsonType, false, 2048, false}) - - // case 3: Payload []byte - // should close the body - dataBytes := struct { - _ struct{} `type:"structure" payload:"Payload"` - LocationName *string `locationName:"testName"` - Location *string `location:"statusCode"` - A *string `type:"string"` - Payload []byte `locationName:"payload" type:"blob" required:"true"` - }{} - checkForLeak(&dataBytes, rest.Build, rest.Unmarshal, t, expected{jsonType, true, 0, false}) - checkForLeak(&dataBytes, query.Build, query.UnmarshalMeta, t, expected{jsonType, false, 2048, false}) - - // case 4: Payload unsupported type - // should close the body - dataUnsupported := struct { - _ struct{} `type:"structure" payload:"Payload"` - LocationName *string `locationName:"testName"` - Location *string `location:"statusCode"` - A *string `type:"string"` - Payload string `locationName:"payload" type:"blob" required:"true"` - }{} - checkForLeak(&dataUnsupported, rest.Build, rest.Unmarshal, t, expected{jsonType, true, 0, true}) - checkForLeak(&dataUnsupported, query.Build, query.UnmarshalMeta, t, expected{jsonType, false, 2048, false}) -} - -func TestRestJSON(t *testing.T) { - checkForLeak(nil, restjson.Build, restjson.Unmarshal, t, expected{jsonType, true, 0, false}) - checkForLeak(nil, restjson.Build, restjson.UnmarshalMeta, t, expected{jsonType, false, 2048, false}) - checkForLeak(nil, restjson.Build, restjson.UnmarshalError, t, expected{jsonType, true, 0, true}) -} - -func TestRestXML(t *testing.T) { - checkForLeak(nil, restxml.Build, restxml.Unmarshal, t, expected{xmlType, true, 0, false}) - checkForLeak(nil, restxml.Build, restxml.UnmarshalMeta, t, expected{xmlType, false, 2048, false}) - checkForLeak(nil, restxml.Build, restxml.UnmarshalError, t, expected{xmlType, true, 0, true}) -} - -func TestXML(t *testing.T) { - checkForLeak(nil, ec2query.Build, ec2query.Unmarshal, t, expected{jsonType, true, 0, false}) - checkForLeak(nil, ec2query.Build, ec2query.UnmarshalMeta, t, expected{jsonType, false, 2048, false}) - checkForLeak(nil, ec2query.Build, ec2query.UnmarshalError, t, expected{jsonType, true, 0, true}) -} - -func TestProtocol(t *testing.T) { - checkForLeak(nil, restxml.Build, protocol.UnmarshalDiscardBody, t, expected{xmlType, true, 0, false}) -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build_test.go deleted file mode 100644 index f0da8bf95..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/build_test.go +++ /dev/null @@ -1,2199 +0,0 @@ -package query_test - -import ( - "bytes" - "encoding/json" - "encoding/xml" - "fmt" - "io" - "io/ioutil" - "net/http" - "net/url" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" - "github.com/aws/aws-sdk-go/private/signer/v4" - "github.com/aws/aws-sdk-go/private/util" - "github.com/stretchr/testify/assert" -) - -var _ bytes.Buffer // always import bytes -var _ http.Request -var _ json.Marshaler -var _ time.Time -var _ xmlutil.XMLNode -var _ xml.Attr -var _ = ioutil.Discard -var _ = util.Trim("") -var _ = url.Values{} -var _ = io.EOF -var _ = aws.String -var _ = fmt.Println - -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService1ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService1ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService1ProtocolTest client from just a session. -// svc := inputservice1protocoltest.New(mySession) -// -// // Create a InputService1ProtocolTest client with additional configuration -// svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { - c := p.ClientConfig("inputservice1protocoltest", cfgs...) - return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest { - svc := &InputService1ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice1protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService1ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService1TestCaseOperation1 = "OperationName" - -// InputService1TestCaseOperation1Request generates a request for the InputService1TestCaseOperation1 operation. -func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService1TestCaseOperation1, - } - - if input == nil { - input = &InputService1TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { - req, out := c.InputService1TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService1TestCaseOperation2 = "OperationName" - -// InputService1TestCaseOperation2Request generates a request for the InputService1TestCaseOperation2 operation. -func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService1TestCaseOperation2, - } - - if input == nil { - input = &InputService1TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) { - req, out := c.InputService1TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -const opInputService1TestCaseOperation3 = "OperationName" - -// InputService1TestCaseOperation3Request generates a request for the InputService1TestCaseOperation3 operation. -func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) { - op := &request.Operation{ - Name: opInputService1TestCaseOperation3, - } - - if input == nil { - input = &InputService1TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation3Output{} - req.Data = output - return -} - -func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) { - req, out := c.InputService1TestCaseOperation3Request(input) - err := req.Send() - return out, err -} - -type InputService1TestShapeInputService1TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService1TestShapeInputService1TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService1TestShapeInputService1TestCaseOperation3Output struct { - _ struct{} `type:"structure"` -} - -type InputService1TestShapeInputShape struct { - _ struct{} `type:"structure"` - - Bar *string `type:"string"` - - Baz *bool `type:"boolean"` - - Foo *string `type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService2ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService2ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService2ProtocolTest client from just a session. -// svc := inputservice2protocoltest.New(mySession) -// -// // Create a InputService2ProtocolTest client with additional configuration -// svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { - c := p.ClientConfig("inputservice2protocoltest", cfgs...) - return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest { - svc := &InputService2ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice2protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService2ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService2TestCaseOperation1 = "OperationName" - -// InputService2TestCaseOperation1Request generates a request for the InputService2TestCaseOperation1 operation. -func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService2TestCaseOperation1, - } - - if input == nil { - input = &InputService2TestShapeInputService2TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService2TestShapeInputService2TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { - req, out := c.InputService2TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService2TestShapeInputService2TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - StructArg *InputService2TestShapeStructType `type:"structure"` -} - -type InputService2TestShapeInputService2TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService2TestShapeStructType struct { - _ struct{} `type:"structure"` - - ScalarArg *string `type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService3ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService3ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService3ProtocolTest client from just a session. -// svc := inputservice3protocoltest.New(mySession) -// -// // Create a InputService3ProtocolTest client with additional configuration -// svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { - c := p.ClientConfig("inputservice3protocoltest", cfgs...) - return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest { - svc := &InputService3ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice3protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService3ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService3TestCaseOperation1 = "OperationName" - -// InputService3TestCaseOperation1Request generates a request for the InputService3TestCaseOperation1 operation. -func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService3TestCaseOperation1, - } - - if input == nil { - input = &InputService3TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { - req, out := c.InputService3TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService3TestCaseOperation2 = "OperationName" - -// InputService3TestCaseOperation2Request generates a request for the InputService3TestCaseOperation2 operation. -func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService3TestCaseOperation2, - } - - if input == nil { - input = &InputService3TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) { - req, out := c.InputService3TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService3TestShapeInputService3TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService3TestShapeInputService3TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService3TestShapeInputShape struct { - _ struct{} `type:"structure"` - - ListArg []*string `type:"list"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService4ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService4ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService4ProtocolTest client from just a session. -// svc := inputservice4protocoltest.New(mySession) -// -// // Create a InputService4ProtocolTest client with additional configuration -// svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { - c := p.ClientConfig("inputservice4protocoltest", cfgs...) - return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest { - svc := &InputService4ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice4protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService4ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService4TestCaseOperation1 = "OperationName" - -// InputService4TestCaseOperation1Request generates a request for the InputService4TestCaseOperation1 operation. -func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputShape) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService4TestCaseOperation1, - } - - if input == nil { - input = &InputService4TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputShape) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { - req, out := c.InputService4TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService4TestCaseOperation2 = "OperationName" - -// InputService4TestCaseOperation2Request generates a request for the InputService4TestCaseOperation2 operation. -func (c *InputService4ProtocolTest) InputService4TestCaseOperation2Request(input *InputService4TestShapeInputShape) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService4TestCaseOperation2, - } - - if input == nil { - input = &InputService4TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService4ProtocolTest) InputService4TestCaseOperation2(input *InputService4TestShapeInputShape) (*InputService4TestShapeInputService4TestCaseOperation2Output, error) { - req, out := c.InputService4TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService4TestShapeInputService4TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService4TestShapeInputService4TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService4TestShapeInputShape struct { - _ struct{} `type:"structure"` - - ListArg []*string `type:"list" flattened:"true"` - - NamedListArg []*string `locationNameList:"Foo" type:"list" flattened:"true"` - - ScalarArg *string `type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService5ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService5ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService5ProtocolTest client from just a session. -// svc := inputservice5protocoltest.New(mySession) -// -// // Create a InputService5ProtocolTest client with additional configuration -// svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { - c := p.ClientConfig("inputservice5protocoltest", cfgs...) - return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest { - svc := &InputService5ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice5protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService5ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService5TestCaseOperation1 = "OperationName" - -// InputService5TestCaseOperation1Request generates a request for the InputService5TestCaseOperation1 operation. -func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService5TestCaseOperation1, - } - - if input == nil { - input = &InputService5TestShapeInputService5TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { - req, out := c.InputService5TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService5TestShapeInputService5TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - MapArg map[string]*string `type:"map" flattened:"true"` -} - -type InputService5TestShapeInputService5TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService6ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService6ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService6ProtocolTest client from just a session. -// svc := inputservice6protocoltest.New(mySession) -// -// // Create a InputService6ProtocolTest client with additional configuration -// svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { - c := p.ClientConfig("inputservice6protocoltest", cfgs...) - return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest { - svc := &InputService6ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice6protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService6ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService6TestCaseOperation1 = "OperationName" - -// InputService6TestCaseOperation1Request generates a request for the InputService6TestCaseOperation1 operation. -func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService6TestCaseOperation1, - } - - if input == nil { - input = &InputService6TestShapeInputService6TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService6TestShapeInputService6TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { - req, out := c.InputService6TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService6TestShapeInputService6TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - ListArg []*string `locationNameList:"item" type:"list"` -} - -type InputService6TestShapeInputService6TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService7ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService7ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService7ProtocolTest client from just a session. -// svc := inputservice7protocoltest.New(mySession) -// -// // Create a InputService7ProtocolTest client with additional configuration -// svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { - c := p.ClientConfig("inputservice7protocoltest", cfgs...) - return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest { - svc := &InputService7ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice7protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService7ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService7TestCaseOperation1 = "OperationName" - -// InputService7TestCaseOperation1Request generates a request for the InputService7TestCaseOperation1 operation. -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService7TestCaseOperation1, - } - - if input == nil { - input = &InputService7TestShapeInputService7TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { - req, out := c.InputService7TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService7TestShapeInputService7TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - ListArg []*string `locationNameList:"ListArgLocation" type:"list" flattened:"true"` - - ScalarArg *string `type:"string"` -} - -type InputService7TestShapeInputService7TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService8ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService8ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService8ProtocolTest client from just a session. -// svc := inputservice8protocoltest.New(mySession) -// -// // Create a InputService8ProtocolTest client with additional configuration -// svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { - c := p.ClientConfig("inputservice8protocoltest", cfgs...) - return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest { - svc := &InputService8ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice8protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService8ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService8TestCaseOperation1 = "OperationName" - -// InputService8TestCaseOperation1Request generates a request for the InputService8TestCaseOperation1 operation. -func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService8TestCaseOperation1, - } - - if input == nil { - input = &InputService8TestShapeInputService8TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService8TestShapeInputService8TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { - req, out := c.InputService8TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService8TestShapeInputService8TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - MapArg map[string]*string `type:"map"` -} - -type InputService8TestShapeInputService8TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService9ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService9ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService9ProtocolTest client from just a session. -// svc := inputservice9protocoltest.New(mySession) -// -// // Create a InputService9ProtocolTest client with additional configuration -// svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { - c := p.ClientConfig("inputservice9protocoltest", cfgs...) - return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest { - svc := &InputService9ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice9protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService9ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService9TestCaseOperation1 = "OperationName" - -// InputService9TestCaseOperation1Request generates a request for the InputService9TestCaseOperation1 operation. -func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService9TestCaseOperation1, - } - - if input == nil { - input = &InputService9TestShapeInputService9TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService9TestShapeInputService9TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { - req, out := c.InputService9TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService9TestShapeInputService9TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - MapArg map[string]*string `locationNameKey:"TheKey" locationNameValue:"TheValue" type:"map"` -} - -type InputService9TestShapeInputService9TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService10ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService10ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService10ProtocolTest client from just a session. -// svc := inputservice10protocoltest.New(mySession) -// -// // Create a InputService10ProtocolTest client with additional configuration -// svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest { - c := p.ClientConfig("inputservice10protocoltest", cfgs...) - return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest { - svc := &InputService10ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice10protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService10ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService10TestCaseOperation1 = "OperationName" - -// InputService10TestCaseOperation1Request generates a request for the InputService10TestCaseOperation1 operation. -func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService10TestCaseOperation1, - } - - if input == nil { - input = &InputService10TestShapeInputService10TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService10TestShapeInputService10TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { - req, out := c.InputService10TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService10TestShapeInputService10TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - // BlobArg is automatically base64 encoded/decoded by the SDK. - BlobArg []byte `type:"blob"` -} - -type InputService10TestShapeInputService10TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService11ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService11ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService11ProtocolTest client from just a session. -// svc := inputservice11protocoltest.New(mySession) -// -// // Create a InputService11ProtocolTest client with additional configuration -// svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest { - c := p.ClientConfig("inputservice11protocoltest", cfgs...) - return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest { - svc := &InputService11ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice11protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService11ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService11TestCaseOperation1 = "OperationName" - -// InputService11TestCaseOperation1Request generates a request for the InputService11TestCaseOperation1 operation. -func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService11TestCaseOperation1, - } - - if input == nil { - input = &InputService11TestShapeInputService11TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService11TestShapeInputService11TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { - req, out := c.InputService11TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService11TestShapeInputService11TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"` -} - -type InputService11TestShapeInputService11TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService12ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService12ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService12ProtocolTest client from just a session. -// svc := inputservice12protocoltest.New(mySession) -// -// // Create a InputService12ProtocolTest client with additional configuration -// svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest { - c := p.ClientConfig("inputservice12protocoltest", cfgs...) - return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest { - svc := &InputService12ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice12protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService12ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService12TestCaseOperation1 = "OperationName" - -// InputService12TestCaseOperation1Request generates a request for the InputService12TestCaseOperation1 operation. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService12TestCaseOperation1, - } - - if input == nil { - input = &InputService12TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { - req, out := c.InputService12TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService12TestCaseOperation2 = "OperationName" - -// InputService12TestCaseOperation2Request generates a request for the InputService12TestCaseOperation2 operation. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService12TestCaseOperation2, - } - - if input == nil { - input = &InputService12TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) { - req, out := c.InputService12TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -const opInputService12TestCaseOperation3 = "OperationName" - -// InputService12TestCaseOperation3Request generates a request for the InputService12TestCaseOperation3 operation. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation3Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation3Output) { - op := &request.Operation{ - Name: opInputService12TestCaseOperation3, - } - - if input == nil { - input = &InputService12TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation3Output{} - req.Data = output - return -} - -func (c *InputService12ProtocolTest) InputService12TestCaseOperation3(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation3Output, error) { - req, out := c.InputService12TestCaseOperation3Request(input) - err := req.Send() - return out, err -} - -const opInputService12TestCaseOperation4 = "OperationName" - -// InputService12TestCaseOperation4Request generates a request for the InputService12TestCaseOperation4 operation. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation4Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation4Output) { - op := &request.Operation{ - Name: opInputService12TestCaseOperation4, - } - - if input == nil { - input = &InputService12TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation4Output{} - req.Data = output - return -} - -func (c *InputService12ProtocolTest) InputService12TestCaseOperation4(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation4Output, error) { - req, out := c.InputService12TestCaseOperation4Request(input) - err := req.Send() - return out, err -} - -const opInputService12TestCaseOperation5 = "OperationName" - -// InputService12TestCaseOperation5Request generates a request for the InputService12TestCaseOperation5 operation. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation5Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation5Output) { - op := &request.Operation{ - Name: opInputService12TestCaseOperation5, - } - - if input == nil { - input = &InputService12TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation5Output{} - req.Data = output - return -} - -func (c *InputService12ProtocolTest) InputService12TestCaseOperation5(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation5Output, error) { - req, out := c.InputService12TestCaseOperation5Request(input) - err := req.Send() - return out, err -} - -const opInputService12TestCaseOperation6 = "OperationName" - -// InputService12TestCaseOperation6Request generates a request for the InputService12TestCaseOperation6 operation. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation6Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation6Output) { - op := &request.Operation{ - Name: opInputService12TestCaseOperation6, - } - - if input == nil { - input = &InputService12TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation6Output{} - req.Data = output - return -} - -func (c *InputService12ProtocolTest) InputService12TestCaseOperation6(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation6Output, error) { - req, out := c.InputService12TestCaseOperation6Request(input) - err := req.Send() - return out, err -} - -type InputService12TestShapeInputService12TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService12TestShapeInputService12TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService12TestShapeInputService12TestCaseOperation3Output struct { - _ struct{} `type:"structure"` -} - -type InputService12TestShapeInputService12TestCaseOperation4Output struct { - _ struct{} `type:"structure"` -} - -type InputService12TestShapeInputService12TestCaseOperation5Output struct { - _ struct{} `type:"structure"` -} - -type InputService12TestShapeInputService12TestCaseOperation6Output struct { - _ struct{} `type:"structure"` -} - -type InputService12TestShapeInputShape struct { - _ struct{} `type:"structure"` - - RecursiveStruct *InputService12TestShapeRecursiveStructType `type:"structure"` -} - -type InputService12TestShapeRecursiveStructType struct { - _ struct{} `type:"structure"` - - NoRecurse *string `type:"string"` - - RecursiveList []*InputService12TestShapeRecursiveStructType `type:"list"` - - RecursiveMap map[string]*InputService12TestShapeRecursiveStructType `type:"map"` - - RecursiveStruct *InputService12TestShapeRecursiveStructType `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService13ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService13ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService13ProtocolTest client from just a session. -// svc := inputservice13protocoltest.New(mySession) -// -// // Create a InputService13ProtocolTest client with additional configuration -// svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest { - c := p.ClientConfig("inputservice13protocoltest", cfgs...) - return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest { - svc := &InputService13ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice13protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService13ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService13TestCaseOperation1 = "OperationName" - -// InputService13TestCaseOperation1Request generates a request for the InputService13TestCaseOperation1 operation. -func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService13TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService13TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService13TestShapeInputService13TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) { - req, out := c.InputService13TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService13TestCaseOperation2 = "OperationName" - -// InputService13TestCaseOperation2Request generates a request for the InputService13TestCaseOperation2 operation. -func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService13TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService13TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService13TestShapeInputService13TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) { - req, out := c.InputService13TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService13TestShapeInputService13TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService13TestShapeInputService13TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService13TestShapeInputShape struct { - _ struct{} `type:"structure"` - - Token *string `type:"string" idempotencyToken:"true"` -} - -// -// Tests begin here -// - -func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) { - sess := session.New() - svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService1TestShapeInputShape{ - Bar: aws.String("val2"), - Foo: aws.String("val1"), - } - req, _ := svc.InputService1TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&Bar=val2&Foo=val1&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService1ProtocolTestScalarMembersCase2(t *testing.T) { - sess := session.New() - svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService1TestShapeInputShape{ - Baz: aws.Bool(true), - } - req, _ := svc.InputService1TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&Baz=true&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService1ProtocolTestScalarMembersCase3(t *testing.T) { - sess := session.New() - svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService1TestShapeInputShape{ - Baz: aws.Bool(false), - } - req, _ := svc.InputService1TestCaseOperation3Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&Baz=false&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService2ProtocolTestNestedStructureMembersCase1(t *testing.T) { - sess := session.New() - svc := NewInputService2ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService2TestShapeInputService2TestCaseOperation1Input{ - StructArg: &InputService2TestShapeStructType{ - ScalarArg: aws.String("foo"), - }, - } - req, _ := svc.InputService2TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&StructArg.ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService3ProtocolTestListTypesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService3TestShapeInputShape{ - ListArg: []*string{ - aws.String("foo"), - aws.String("bar"), - aws.String("baz"), - }, - } - req, _ := svc.InputService3TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService3ProtocolTestListTypesCase2(t *testing.T) { - sess := session.New() - svc := NewInputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService3TestShapeInputShape{ - ListArg: []*string{}, - } - req, _ := svc.InputService3TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&ListArg=&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService4ProtocolTestFlattenedListCase1(t *testing.T) { - sess := session.New() - svc := NewInputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService4TestShapeInputShape{ - ListArg: []*string{ - aws.String("a"), - aws.String("b"), - aws.String("c"), - }, - ScalarArg: aws.String("foo"), - } - req, _ := svc.InputService4TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&ListArg.1=a&ListArg.2=b&ListArg.3=c&ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService4ProtocolTestFlattenedListCase2(t *testing.T) { - sess := session.New() - svc := NewInputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService4TestShapeInputShape{ - NamedListArg: []*string{ - aws.String("a"), - }, - } - req, _ := svc.InputService4TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&Foo.1=a&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService5ProtocolTestSerializeFlattenedMapTypeCase1(t *testing.T) { - sess := session.New() - svc := NewInputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService5TestShapeInputService5TestCaseOperation1Input{ - MapArg: map[string]*string{ - "key1": aws.String("val1"), - "key2": aws.String("val2"), - }, - } - req, _ := svc.InputService5TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&MapArg.1.key=key1&MapArg.1.value=val1&MapArg.2.key=key2&MapArg.2.value=val2&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService6ProtocolTestNonFlattenedListWithLocationNameCase1(t *testing.T) { - sess := session.New() - svc := NewInputService6ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService6TestShapeInputService6TestCaseOperation1Input{ - ListArg: []*string{ - aws.String("a"), - aws.String("b"), - aws.String("c"), - }, - } - req, _ := svc.InputService6TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&ListArg.item.1=a&ListArg.item.2=b&ListArg.item.3=c&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService7ProtocolTestFlattenedListWithLocationNameCase1(t *testing.T) { - sess := session.New() - svc := NewInputService7ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService7TestShapeInputService7TestCaseOperation1Input{ - ListArg: []*string{ - aws.String("a"), - aws.String("b"), - aws.String("c"), - }, - ScalarArg: aws.String("foo"), - } - req, _ := svc.InputService7TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&ListArgLocation.1=a&ListArgLocation.2=b&ListArgLocation.3=c&ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService8ProtocolTestSerializeMapTypeCase1(t *testing.T) { - sess := session.New() - svc := NewInputService8ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService8TestShapeInputService8TestCaseOperation1Input{ - MapArg: map[string]*string{ - "key1": aws.String("val1"), - "key2": aws.String("val2"), - }, - } - req, _ := svc.InputService8TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&MapArg.entry.1.key=key1&MapArg.entry.1.value=val1&MapArg.entry.2.key=key2&MapArg.entry.2.value=val2&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService9ProtocolTestSerializeMapTypeWithLocationNameCase1(t *testing.T) { - sess := session.New() - svc := NewInputService9ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService9TestShapeInputService9TestCaseOperation1Input{ - MapArg: map[string]*string{ - "key1": aws.String("val1"), - "key2": aws.String("val2"), - }, - } - req, _ := svc.InputService9TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&MapArg.entry.1.TheKey=key1&MapArg.entry.1.TheValue=val1&MapArg.entry.2.TheKey=key2&MapArg.entry.2.TheValue=val2&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService10ProtocolTestBase64EncodedBlobsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService10ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService10TestShapeInputService10TestCaseOperation1Input{ - BlobArg: []byte("foo"), - } - req, _ := svc.InputService10TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&BlobArg=Zm9v&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService11ProtocolTestTimestampValuesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService11ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService11TestShapeInputService11TestCaseOperation1Input{ - TimeArg: aws.Time(time.Unix(1422172800, 0)), - } - req, _ := svc.InputService11TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService12ProtocolTestRecursiveShapesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputShape{ - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - NoRecurse: aws.String("foo"), - }, - } - req, _ := svc.InputService12TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService12ProtocolTestRecursiveShapesCase2(t *testing.T) { - sess := session.New() - svc := NewInputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputShape{ - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - NoRecurse: aws.String("foo"), - }, - }, - } - req, _ := svc.InputService12TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService12ProtocolTestRecursiveShapesCase3(t *testing.T) { - sess := session.New() - svc := NewInputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputShape{ - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - NoRecurse: aws.String("foo"), - }, - }, - }, - }, - } - req, _ := svc.InputService12TestCaseOperation3Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveStruct.RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService12ProtocolTestRecursiveShapesCase4(t *testing.T) { - sess := session.New() - svc := NewInputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputShape{ - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - RecursiveList: []*InputService12TestShapeRecursiveStructType{ - { - NoRecurse: aws.String("foo"), - }, - { - NoRecurse: aws.String("bar"), - }, - }, - }, - } - req, _ := svc.InputService12TestCaseOperation4Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService12ProtocolTestRecursiveShapesCase5(t *testing.T) { - sess := session.New() - svc := NewInputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputShape{ - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - RecursiveList: []*InputService12TestShapeRecursiveStructType{ - { - NoRecurse: aws.String("foo"), - }, - { - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - NoRecurse: aws.String("bar"), - }, - }, - }, - }, - } - req, _ := svc.InputService12TestCaseOperation5Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.RecursiveStruct.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService12ProtocolTestRecursiveShapesCase6(t *testing.T) { - sess := session.New() - svc := NewInputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputShape{ - RecursiveStruct: &InputService12TestShapeRecursiveStructType{ - RecursiveMap: map[string]*InputService12TestShapeRecursiveStructType{ - "bar": { - NoRecurse: aws.String("bar"), - }, - "foo": { - NoRecurse: aws.String("foo"), - }, - }, - }, - } - req, _ := svc.InputService12TestCaseOperation6Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveMap.entry.1.key=foo&RecursiveStruct.RecursiveMap.entry.1.value.NoRecurse=foo&RecursiveStruct.RecursiveMap.entry.2.key=bar&RecursiveStruct.RecursiveMap.entry.2.value.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService13ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { - sess := session.New() - svc := NewInputService13ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService13TestShapeInputShape{ - Token: aws.String("abc123"), - } - req, _ := svc.InputService13TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Token=abc123`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService13ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { - sess := session.New() - svc := NewInputService13ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService13TestShapeInputShape{} - req, _ := svc.InputService13TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - query.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Token=00000000-0000-4000-8000-000000000000`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go deleted file mode 100644 index f21429617..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go +++ /dev/null @@ -1,66 +0,0 @@ -package query - -import ( - "encoding/xml" - "io/ioutil" - - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/request" -) - -type xmlErrorResponse struct { - XMLName xml.Name `xml:"ErrorResponse"` - Code string `xml:"Error>Code"` - Message string `xml:"Error>Message"` - RequestID string `xml:"RequestId"` -} - -type xmlServiceUnavailableResponse struct { - XMLName xml.Name `xml:"ServiceUnavailableException"` -} - -// UnmarshalErrorHandler is a name request handler to unmarshal request errors -var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.query.UnmarshalError", Fn: UnmarshalError} - -// UnmarshalError unmarshals an error response for an AWS Query service. -func UnmarshalError(r *request.Request) { - defer r.HTTPResponse.Body.Close() - - bodyBytes, err := ioutil.ReadAll(r.HTTPResponse.Body) - if err != nil { - r.Error = awserr.New("SerializationError", "failed to read from query HTTP response body", err) - return - } - - // First check for specific error - resp := xmlErrorResponse{} - decodeErr := xml.Unmarshal(bodyBytes, &resp) - if decodeErr == nil { - reqID := resp.RequestID - if reqID == "" { - reqID = r.RequestID - } - r.Error = awserr.NewRequestFailure( - awserr.New(resp.Code, resp.Message, nil), - r.HTTPResponse.StatusCode, - reqID, - ) - return - } - - // Check for unhandled error - servUnavailResp := xmlServiceUnavailableResponse{} - unavailErr := xml.Unmarshal(bodyBytes, &servUnavailResp) - if unavailErr == nil { - r.Error = awserr.NewRequestFailure( - awserr.New("ServiceUnavailableException", "service is unavailable", nil), - r.HTTPResponse.StatusCode, - r.RequestID, - ) - return - } - - // Failed to retrieve any error message from the response body - r.Error = awserr.New("SerializationError", - "failed to decode query XML error response", decodeErr) -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_test.go deleted file mode 100644 index cc9337489..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/build_test.go +++ /dev/null @@ -1,2942 +0,0 @@ -package restjson_test - -import ( - "bytes" - "encoding/json" - "encoding/xml" - "fmt" - "io" - "io/ioutil" - "net/http" - "net/url" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" - "github.com/aws/aws-sdk-go/private/signer/v4" - "github.com/aws/aws-sdk-go/private/util" - "github.com/stretchr/testify/assert" -) - -var _ bytes.Buffer // always import bytes -var _ http.Request -var _ json.Marshaler -var _ time.Time -var _ xmlutil.XMLNode -var _ xml.Attr -var _ = ioutil.Discard -var _ = util.Trim("") -var _ = url.Values{} -var _ = io.EOF -var _ = aws.String -var _ = fmt.Println - -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService1ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService1ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService1ProtocolTest client from just a session. -// svc := inputservice1protocoltest.New(mySession) -// -// // Create a InputService1ProtocolTest client with additional configuration -// svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { - c := p.ClientConfig("inputservice1protocoltest", cfgs...) - return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest { - svc := &InputService1ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice1protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService1ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService1TestCaseOperation1 = "OperationName" - -// InputService1TestCaseOperation1Request generates a request for the InputService1TestCaseOperation1 operation. -func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService1TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/jobs", - } - - if input == nil { - input = &InputService1TestShapeInputService1TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { - req, out := c.InputService1TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService1TestShapeInputService1TestCaseOperation1Input struct { - _ struct{} `type:"structure"` -} - -type InputService1TestShapeInputService1TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService2ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService2ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService2ProtocolTest client from just a session. -// svc := inputservice2protocoltest.New(mySession) -// -// // Create a InputService2ProtocolTest client with additional configuration -// svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { - c := p.ClientConfig("inputservice2protocoltest", cfgs...) - return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest { - svc := &InputService2ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice2protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService2ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService2TestCaseOperation1 = "OperationName" - -// InputService2TestCaseOperation1Request generates a request for the InputService2TestCaseOperation1 operation. -func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService2TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", - } - - if input == nil { - input = &InputService2TestShapeInputService2TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService2TestShapeInputService2TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { - req, out := c.InputService2TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService2TestShapeInputService2TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - PipelineId *string `location:"uri" type:"string"` -} - -type InputService2TestShapeInputService2TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService3ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService3ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService3ProtocolTest client from just a session. -// svc := inputservice3protocoltest.New(mySession) -// -// // Create a InputService3ProtocolTest client with additional configuration -// svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { - c := p.ClientConfig("inputservice3protocoltest", cfgs...) - return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest { - svc := &InputService3ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice3protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService3ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService3TestCaseOperation1 = "OperationName" - -// InputService3TestCaseOperation1Request generates a request for the InputService3TestCaseOperation1 operation. -func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService3TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", - } - - if input == nil { - input = &InputService3TestShapeInputService3TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { - req, out := c.InputService3TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService3TestShapeInputService3TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - Foo *string `location:"uri" locationName:"PipelineId" type:"string"` -} - -type InputService3TestShapeInputService3TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService4ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService4ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService4ProtocolTest client from just a session. -// svc := inputservice4protocoltest.New(mySession) -// -// // Create a InputService4ProtocolTest client with additional configuration -// svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { - c := p.ClientConfig("inputservice4protocoltest", cfgs...) - return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest { - svc := &InputService4ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice4protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService4ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService4TestCaseOperation1 = "OperationName" - -// InputService4TestCaseOperation1Request generates a request for the InputService4TestCaseOperation1 operation. -func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService4TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService4TestShapeInputService4TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { - req, out := c.InputService4TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService4TestShapeInputService4TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - Items []*string `location:"querystring" locationName:"item" type:"list"` -} - -type InputService4TestShapeInputService4TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService5ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService5ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService5ProtocolTest client from just a session. -// svc := inputservice5protocoltest.New(mySession) -// -// // Create a InputService5ProtocolTest client with additional configuration -// svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { - c := p.ClientConfig("inputservice5protocoltest", cfgs...) - return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest { - svc := &InputService5ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice5protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService5ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService5TestCaseOperation1 = "OperationName" - -// InputService5TestCaseOperation1Request generates a request for the InputService5TestCaseOperation1 operation. -func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService5TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", - } - - if input == nil { - input = &InputService5TestShapeInputService5TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { - req, out := c.InputService5TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService5TestShapeInputService5TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - PipelineId *string `location:"uri" type:"string"` - - QueryDoc map[string]*string `location:"querystring" type:"map"` -} - -type InputService5TestShapeInputService5TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService6ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService6ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService6ProtocolTest client from just a session. -// svc := inputservice6protocoltest.New(mySession) -// -// // Create a InputService6ProtocolTest client with additional configuration -// svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { - c := p.ClientConfig("inputservice6protocoltest", cfgs...) - return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest { - svc := &InputService6ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice6protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService6ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService6TestCaseOperation1 = "OperationName" - -// InputService6TestCaseOperation1Request generates a request for the InputService6TestCaseOperation1 operation. -func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService6TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", - } - - if input == nil { - input = &InputService6TestShapeInputService6TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService6TestShapeInputService6TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { - req, out := c.InputService6TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService6TestShapeInputService6TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - PipelineId *string `location:"uri" type:"string"` - - QueryDoc map[string][]*string `location:"querystring" type:"map"` -} - -type InputService6TestShapeInputService6TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService7ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService7ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService7ProtocolTest client from just a session. -// svc := inputservice7protocoltest.New(mySession) -// -// // Create a InputService7ProtocolTest client with additional configuration -// svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { - c := p.ClientConfig("inputservice7protocoltest", cfgs...) - return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest { - svc := &InputService7ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice7protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService7ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService7TestCaseOperation1 = "OperationName" - -// InputService7TestCaseOperation1Request generates a request for the InputService7TestCaseOperation1 operation. -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService7TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", - } - - if input == nil { - input = &InputService7TestShapeInputService7TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { - req, out := c.InputService7TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService7TestShapeInputService7TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` - - PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` - - PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` -} - -type InputService7TestShapeInputService7TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService8ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService8ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService8ProtocolTest client from just a session. -// svc := inputservice8protocoltest.New(mySession) -// -// // Create a InputService8ProtocolTest client with additional configuration -// svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { - c := p.ClientConfig("inputservice8protocoltest", cfgs...) - return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest { - svc := &InputService8ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice8protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService8ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService8TestCaseOperation1 = "OperationName" - -// InputService8TestCaseOperation1Request generates a request for the InputService8TestCaseOperation1 operation. -func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService8TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", - } - - if input == nil { - input = &InputService8TestShapeInputService8TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService8TestShapeInputService8TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { - req, out := c.InputService8TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService8TestShapeInputService8TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` - - Config *InputService8TestShapeStructType `type:"structure"` - - PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` - - PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` -} - -type InputService8TestShapeInputService8TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService8TestShapeStructType struct { - _ struct{} `type:"structure"` - - A *string `type:"string"` - - B *string `type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService9ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService9ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService9ProtocolTest client from just a session. -// svc := inputservice9protocoltest.New(mySession) -// -// // Create a InputService9ProtocolTest client with additional configuration -// svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { - c := p.ClientConfig("inputservice9protocoltest", cfgs...) - return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest { - svc := &InputService9ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice9protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService9ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService9TestCaseOperation1 = "OperationName" - -// InputService9TestCaseOperation1Request generates a request for the InputService9TestCaseOperation1 operation. -func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService9TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", - } - - if input == nil { - input = &InputService9TestShapeInputService9TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService9TestShapeInputService9TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { - req, out := c.InputService9TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService9TestShapeInputService9TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` - - Checksum *string `location:"header" locationName:"x-amz-checksum" type:"string"` - - Config *InputService9TestShapeStructType `type:"structure"` - - PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` - - PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` -} - -type InputService9TestShapeInputService9TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService9TestShapeStructType struct { - _ struct{} `type:"structure"` - - A *string `type:"string"` - - B *string `type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService10ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService10ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService10ProtocolTest client from just a session. -// svc := inputservice10protocoltest.New(mySession) -// -// // Create a InputService10ProtocolTest client with additional configuration -// svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest { - c := p.ClientConfig("inputservice10protocoltest", cfgs...) - return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest { - svc := &InputService10ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice10protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService10ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService10TestCaseOperation1 = "OperationName" - -// InputService10TestCaseOperation1Request generates a request for the InputService10TestCaseOperation1 operation. -func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService10TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/vaults/{vaultName}/archives", - } - - if input == nil { - input = &InputService10TestShapeInputService10TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService10TestShapeInputService10TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { - req, out := c.InputService10TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService10TestShapeInputService10TestCaseOperation1Input struct { - _ struct{} `type:"structure" payload:"Body"` - - Body io.ReadSeeker `locationName:"body" type:"blob"` - - Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"` - - VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *InputService10TestShapeInputService10TestCaseOperation1Input) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InputService10TestShapeInputService10TestCaseOperation1Input"} - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type InputService10TestShapeInputService10TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService11ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService11ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService11ProtocolTest client from just a session. -// svc := inputservice11protocoltest.New(mySession) -// -// // Create a InputService11ProtocolTest client with additional configuration -// svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest { - c := p.ClientConfig("inputservice11protocoltest", cfgs...) - return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest { - svc := &InputService11ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice11protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService11ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService11TestCaseOperation1 = "OperationName" - -// InputService11TestCaseOperation1Request generates a request for the InputService11TestCaseOperation1 operation. -func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService11TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/{Foo}", - } - - if input == nil { - input = &InputService11TestShapeInputService11TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService11TestShapeInputService11TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { - req, out := c.InputService11TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService11TestShapeInputService11TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - // Bar is automatically base64 encoded/decoded by the SDK. - Bar []byte `type:"blob"` - - Foo *string `location:"uri" locationName:"Foo" type:"string" required:"true"` -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *InputService11TestShapeInputService11TestCaseOperation1Input) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InputService11TestShapeInputService11TestCaseOperation1Input"} - if s.Foo == nil { - invalidParams.Add(request.NewErrParamRequired("Foo")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type InputService11TestShapeInputService11TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService12ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService12ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService12ProtocolTest client from just a session. -// svc := inputservice12protocoltest.New(mySession) -// -// // Create a InputService12ProtocolTest client with additional configuration -// svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest { - c := p.ClientConfig("inputservice12protocoltest", cfgs...) - return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest { - svc := &InputService12ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice12protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService12ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService12TestCaseOperation1 = "OperationName" - -// InputService12TestCaseOperation1Request generates a request for the InputService12TestCaseOperation1 operation. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService12TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService12TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { - req, out := c.InputService12TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService12TestCaseOperation2 = "OperationName" - -// InputService12TestCaseOperation2Request generates a request for the InputService12TestCaseOperation2 operation. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService12TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService12TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) { - req, out := c.InputService12TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService12TestShapeInputService12TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService12TestShapeInputService12TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService12TestShapeInputShape struct { - _ struct{} `type:"structure" payload:"Foo"` - - Foo []byte `locationName:"foo" type:"blob"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService13ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService13ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService13ProtocolTest client from just a session. -// svc := inputservice13protocoltest.New(mySession) -// -// // Create a InputService13ProtocolTest client with additional configuration -// svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest { - c := p.ClientConfig("inputservice13protocoltest", cfgs...) - return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest { - svc := &InputService13ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice13protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService13ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService13TestCaseOperation1 = "OperationName" - -// InputService13TestCaseOperation1Request generates a request for the InputService13TestCaseOperation1 operation. -func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService13TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService13TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService13TestShapeInputService13TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) { - req, out := c.InputService13TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService13TestCaseOperation2 = "OperationName" - -// InputService13TestCaseOperation2Request generates a request for the InputService13TestCaseOperation2 operation. -func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService13TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService13TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService13TestShapeInputService13TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) { - req, out := c.InputService13TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService13TestShapeFooShape struct { - _ struct{} `locationName:"foo" type:"structure"` - - Baz *string `locationName:"baz" type:"string"` -} - -type InputService13TestShapeInputService13TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService13TestShapeInputService13TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService13TestShapeInputShape struct { - _ struct{} `type:"structure" payload:"Foo"` - - Foo *InputService13TestShapeFooShape `locationName:"foo" type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService14ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService14ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService14ProtocolTest client from just a session. -// svc := inputservice14protocoltest.New(mySession) -// -// // Create a InputService14ProtocolTest client with additional configuration -// svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest { - c := p.ClientConfig("inputservice14protocoltest", cfgs...) - return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService14ProtocolTest { - svc := &InputService14ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice14protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService14ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService14TestCaseOperation1 = "OperationName" - -// InputService14TestCaseOperation1Request generates a request for the InputService14TestCaseOperation1 operation. -func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputShape) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService14TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService14TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService14TestShapeInputService14TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputShape) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) { - req, out := c.InputService14TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService14TestCaseOperation2 = "OperationName" - -// InputService14TestCaseOperation2Request generates a request for the InputService14TestCaseOperation2 operation. -func (c *InputService14ProtocolTest) InputService14TestCaseOperation2Request(input *InputService14TestShapeInputShape) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService14TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path?abc=mno", - } - - if input == nil { - input = &InputService14TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService14TestShapeInputService14TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService14ProtocolTest) InputService14TestCaseOperation2(input *InputService14TestShapeInputShape) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) { - req, out := c.InputService14TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService14TestShapeInputService14TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService14TestShapeInputService14TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService14TestShapeInputShape struct { - _ struct{} `type:"structure"` - - Foo *string `location:"querystring" locationName:"param-name" type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService15ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService15ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService15ProtocolTest client from just a session. -// svc := inputservice15protocoltest.New(mySession) -// -// // Create a InputService15ProtocolTest client with additional configuration -// svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest { - c := p.ClientConfig("inputservice15protocoltest", cfgs...) - return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService15ProtocolTest { - svc := &InputService15ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice15protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService15ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService15TestCaseOperation1 = "OperationName" - -// InputService15TestCaseOperation1Request generates a request for the InputService15TestCaseOperation1 operation. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService15TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService15TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) { - req, out := c.InputService15TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService15TestCaseOperation2 = "OperationName" - -// InputService15TestCaseOperation2Request generates a request for the InputService15TestCaseOperation2 operation. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation2Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService15TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService15TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService15ProtocolTest) InputService15TestCaseOperation2(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) { - req, out := c.InputService15TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -const opInputService15TestCaseOperation3 = "OperationName" - -// InputService15TestCaseOperation3Request generates a request for the InputService15TestCaseOperation3 operation. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation3Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation3Output) { - op := &request.Operation{ - Name: opInputService15TestCaseOperation3, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService15TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation3Output{} - req.Data = output - return -} - -func (c *InputService15ProtocolTest) InputService15TestCaseOperation3(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation3Output, error) { - req, out := c.InputService15TestCaseOperation3Request(input) - err := req.Send() - return out, err -} - -const opInputService15TestCaseOperation4 = "OperationName" - -// InputService15TestCaseOperation4Request generates a request for the InputService15TestCaseOperation4 operation. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation4Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation4Output) { - op := &request.Operation{ - Name: opInputService15TestCaseOperation4, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService15TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation4Output{} - req.Data = output - return -} - -func (c *InputService15ProtocolTest) InputService15TestCaseOperation4(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation4Output, error) { - req, out := c.InputService15TestCaseOperation4Request(input) - err := req.Send() - return out, err -} - -const opInputService15TestCaseOperation5 = "OperationName" - -// InputService15TestCaseOperation5Request generates a request for the InputService15TestCaseOperation5 operation. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation5Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation5Output) { - op := &request.Operation{ - Name: opInputService15TestCaseOperation5, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService15TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation5Output{} - req.Data = output - return -} - -func (c *InputService15ProtocolTest) InputService15TestCaseOperation5(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation5Output, error) { - req, out := c.InputService15TestCaseOperation5Request(input) - err := req.Send() - return out, err -} - -const opInputService15TestCaseOperation6 = "OperationName" - -// InputService15TestCaseOperation6Request generates a request for the InputService15TestCaseOperation6 operation. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation6Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation6Output) { - op := &request.Operation{ - Name: opInputService15TestCaseOperation6, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService15TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation6Output{} - req.Data = output - return -} - -func (c *InputService15ProtocolTest) InputService15TestCaseOperation6(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation6Output, error) { - req, out := c.InputService15TestCaseOperation6Request(input) - err := req.Send() - return out, err -} - -type InputService15TestShapeInputService15TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputService15TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputService15TestCaseOperation3Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputService15TestCaseOperation4Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputService15TestCaseOperation5Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputService15TestCaseOperation6Output struct { - _ struct{} `type:"structure"` -} - -type InputService15TestShapeInputShape struct { - _ struct{} `type:"structure"` - - RecursiveStruct *InputService15TestShapeRecursiveStructType `type:"structure"` -} - -type InputService15TestShapeRecursiveStructType struct { - _ struct{} `type:"structure"` - - NoRecurse *string `type:"string"` - - RecursiveList []*InputService15TestShapeRecursiveStructType `type:"list"` - - RecursiveMap map[string]*InputService15TestShapeRecursiveStructType `type:"map"` - - RecursiveStruct *InputService15TestShapeRecursiveStructType `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService16ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService16ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService16ProtocolTest client from just a session. -// svc := inputservice16protocoltest.New(mySession) -// -// // Create a InputService16ProtocolTest client with additional configuration -// svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest { - c := p.ClientConfig("inputservice16protocoltest", cfgs...) - return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService16ProtocolTest { - svc := &InputService16ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice16protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService16ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService16TestCaseOperation1 = "OperationName" - -// InputService16TestCaseOperation1Request generates a request for the InputService16TestCaseOperation1 operation. -func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService16TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService16TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService16TestShapeInputService16TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { - req, out := c.InputService16TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService16TestCaseOperation2 = "OperationName" - -// InputService16TestCaseOperation2Request generates a request for the InputService16TestCaseOperation2 operation. -func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService16TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService16TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService16TestShapeInputService16TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { - req, out := c.InputService16TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService16TestShapeInputService16TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService16TestShapeInputService16TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService16TestShapeInputShape struct { - _ struct{} `type:"structure"` - - TimeArg *time.Time `type:"timestamp" timestampFormat:"unix"` - - TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService17ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService17ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService17ProtocolTest client from just a session. -// svc := inputservice17protocoltest.New(mySession) -// -// // Create a InputService17ProtocolTest client with additional configuration -// svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest { - c := p.ClientConfig("inputservice17protocoltest", cfgs...) - return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService17ProtocolTest { - svc := &InputService17ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice17protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService17ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService17ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService17TestCaseOperation1 = "OperationName" - -// InputService17TestCaseOperation1Request generates a request for the InputService17TestCaseOperation1 operation. -func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputService17TestCaseOperation1Input) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService17TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService17TestShapeInputService17TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService17TestShapeInputService17TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputService17TestCaseOperation1Input) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) { - req, out := c.InputService17TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService17TestShapeInputService17TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - TimeArg *time.Time `locationName:"timestamp_location" type:"timestamp" timestampFormat:"unix"` -} - -type InputService17TestShapeInputService17TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService18ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService18ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService18ProtocolTest client from just a session. -// svc := inputservice18protocoltest.New(mySession) -// -// // Create a InputService18ProtocolTest client with additional configuration -// svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest { - c := p.ClientConfig("inputservice18protocoltest", cfgs...) - return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService18ProtocolTest { - svc := &InputService18ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice18protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService18ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService18ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService18TestCaseOperation1 = "OperationName" - -// InputService18TestCaseOperation1Request generates a request for the InputService18TestCaseOperation1 operation. -func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputService18TestCaseOperation1Input) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService18TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService18TestShapeInputService18TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService18TestShapeInputService18TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) { - req, out := c.InputService18TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService18TestShapeInputService18TestCaseOperation1Input struct { - _ struct{} `type:"structure" payload:"Foo"` - - Foo *string `locationName:"foo" type:"string"` -} - -type InputService18TestShapeInputService18TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService19ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService19ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService19ProtocolTest client from just a session. -// svc := inputservice19protocoltest.New(mySession) -// -// // Create a InputService19ProtocolTest client with additional configuration -// svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest { - c := p.ClientConfig("inputservice19protocoltest", cfgs...) - return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService19ProtocolTest { - svc := &InputService19ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice19protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService19ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService19ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService19TestCaseOperation1 = "OperationName" - -// InputService19TestCaseOperation1Request generates a request for the InputService19TestCaseOperation1 operation. -func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputShape) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService19TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService19TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService19TestShapeInputService19TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputShape) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { - req, out := c.InputService19TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService19TestCaseOperation2 = "OperationName" - -// InputService19TestCaseOperation2Request generates a request for the InputService19TestCaseOperation2 operation. -func (c *InputService19ProtocolTest) InputService19TestCaseOperation2Request(input *InputService19TestShapeInputShape) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService19TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService19TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService19TestShapeInputService19TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService19ProtocolTest) InputService19TestCaseOperation2(input *InputService19TestShapeInputShape) (*InputService19TestShapeInputService19TestCaseOperation2Output, error) { - req, out := c.InputService19TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService19TestShapeInputService19TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService19TestShapeInputService19TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService19TestShapeInputShape struct { - _ struct{} `type:"structure"` - - Token *string `type:"string" idempotencyToken:"true"` -} - -// -// Tests begin here -// - -func TestInputService1ProtocolTestNoParametersCase1(t *testing.T) { - sess := session.New() - svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - req, _ := svc.InputService1TestCaseOperation1Request(nil) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/jobs", r.URL.String()) - - // assert headers - -} - -func TestInputService2ProtocolTestURIParameterOnlyWithNoLocationNameCase1(t *testing.T) { - sess := session.New() - svc := NewInputService2ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService2TestShapeInputService2TestCaseOperation1Input{ - PipelineId: aws.String("foo"), - } - req, _ := svc.InputService2TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo", r.URL.String()) - - // assert headers - -} - -func TestInputService3ProtocolTestURIParameterOnlyWithLocationNameCase1(t *testing.T) { - sess := session.New() - svc := NewInputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService3TestShapeInputService3TestCaseOperation1Input{ - Foo: aws.String("bar"), - } - req, _ := svc.InputService3TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/bar", r.URL.String()) - - // assert headers - -} - -func TestInputService4ProtocolTestQuerystringListOfStringsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService4TestShapeInputService4TestCaseOperation1Input{ - Items: []*string{ - aws.String("value1"), - aws.String("value2"), - }, - } - req, _ := svc.InputService4TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/path?item=value1&item=value2", r.URL.String()) - - // assert headers - -} - -func TestInputService5ProtocolTestStringToStringMapsInQuerystringCase1(t *testing.T) { - sess := session.New() - svc := NewInputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService5TestShapeInputService5TestCaseOperation1Input{ - PipelineId: aws.String("foo"), - QueryDoc: map[string]*string{ - "bar": aws.String("baz"), - "fizz": aws.String("buzz"), - }, - } - req, _ := svc.InputService5TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz", r.URL.String()) - - // assert headers - -} - -func TestInputService6ProtocolTestStringToStringListMapsInQuerystringCase1(t *testing.T) { - sess := session.New() - svc := NewInputService6ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService6TestShapeInputService6TestCaseOperation1Input{ - PipelineId: aws.String("id"), - QueryDoc: map[string][]*string{ - "fizz": { - aws.String("buzz"), - aws.String("pop"), - }, - "foo": { - aws.String("bar"), - aws.String("baz"), - }, - }, - } - req, _ := svc.InputService6TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop", r.URL.String()) - - // assert headers - -} - -func TestInputService7ProtocolTestURIParameterAndQuerystringParamsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService7ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService7TestShapeInputService7TestCaseOperation1Input{ - Ascending: aws.String("true"), - PageToken: aws.String("bar"), - PipelineId: aws.String("foo"), - } - req, _ := svc.InputService7TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String()) - - // assert headers - -} - -func TestInputService8ProtocolTestURIParameterQuerystringParamsAndJSONBodyCase1(t *testing.T) { - sess := session.New() - svc := NewInputService8ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService8TestShapeInputService8TestCaseOperation1Input{ - Ascending: aws.String("true"), - Config: &InputService8TestShapeStructType{ - A: aws.String("one"), - B: aws.String("two"), - }, - PageToken: aws.String("bar"), - PipelineId: aws.String("foo"), - } - req, _ := svc.InputService8TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"Config":{"A":"one","B":"two"}}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String()) - - // assert headers - -} - -func TestInputService9ProtocolTestURIParameterQuerystringParamsHeadersAndJSONBodyCase1(t *testing.T) { - sess := session.New() - svc := NewInputService9ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService9TestShapeInputService9TestCaseOperation1Input{ - Ascending: aws.String("true"), - Checksum: aws.String("12345"), - Config: &InputService9TestShapeStructType{ - A: aws.String("one"), - B: aws.String("two"), - }, - PageToken: aws.String("bar"), - PipelineId: aws.String("foo"), - } - req, _ := svc.InputService9TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"Config":{"A":"one","B":"two"}}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String()) - - // assert headers - assert.Equal(t, "12345", r.Header.Get("x-amz-checksum")) - -} - -func TestInputService10ProtocolTestStreamingPayloadCase1(t *testing.T) { - sess := session.New() - svc := NewInputService10ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService10TestShapeInputService10TestCaseOperation1Input{ - Body: aws.ReadSeekCloser(bytes.NewBufferString("contents")), - Checksum: aws.String("foo"), - VaultName: aws.String("name"), - } - req, _ := svc.InputService10TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - assert.Equal(t, `contents`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/vaults/name/archives", r.URL.String()) - - // assert headers - assert.Equal(t, "foo", r.Header.Get("x-amz-sha256-tree-hash")) - -} - -func TestInputService11ProtocolTestSerializeBlobsInBodyCase1(t *testing.T) { - sess := session.New() - svc := NewInputService11ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService11TestShapeInputService11TestCaseOperation1Input{ - Bar: []byte("Blob param"), - Foo: aws.String("foo_name"), - } - req, _ := svc.InputService11TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"Bar":"QmxvYiBwYXJhbQ=="}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/foo_name", r.URL.String()) - - // assert headers - -} - -func TestInputService12ProtocolTestBlobPayloadCase1(t *testing.T) { - sess := session.New() - svc := NewInputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputShape{ - Foo: []byte("bar"), - } - req, _ := svc.InputService12TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - assert.Equal(t, `bar`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService12ProtocolTestBlobPayloadCase2(t *testing.T) { - sess := session.New() - svc := NewInputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputShape{} - req, _ := svc.InputService12TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService13ProtocolTestStructurePayloadCase1(t *testing.T) { - sess := session.New() - svc := NewInputService13ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService13TestShapeInputShape{ - Foo: &InputService13TestShapeFooShape{ - Baz: aws.String("bar"), - }, - } - req, _ := svc.InputService13TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"baz":"bar"}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService13ProtocolTestStructurePayloadCase2(t *testing.T) { - sess := session.New() - svc := NewInputService13ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService13TestShapeInputShape{} - req, _ := svc.InputService13TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService14ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService14ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService14TestShapeInputShape{} - req, _ := svc.InputService14TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService14ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) { - sess := session.New() - svc := NewInputService14ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService14TestShapeInputShape{ - Foo: aws.String(""), - } - req, _ := svc.InputService14TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/path?abc=mno¶m-name=", r.URL.String()) - - // assert headers - -} - -func TestInputService15ProtocolTestRecursiveShapesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService15ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - NoRecurse: aws.String("foo"), - }, - } - req, _ := svc.InputService15TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"NoRecurse":"foo"}}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService15ProtocolTestRecursiveShapesCase2(t *testing.T) { - sess := session.New() - svc := NewInputService15ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - NoRecurse: aws.String("foo"), - }, - }, - } - req, _ := svc.InputService15TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService15ProtocolTestRecursiveShapesCase3(t *testing.T) { - sess := session.New() - svc := NewInputService15ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - NoRecurse: aws.String("foo"), - }, - }, - }, - }, - } - req, _ := svc.InputService15TestCaseOperation3Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}}}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService15ProtocolTestRecursiveShapesCase4(t *testing.T) { - sess := session.New() - svc := NewInputService15ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveList: []*InputService15TestShapeRecursiveStructType{ - { - NoRecurse: aws.String("foo"), - }, - { - NoRecurse: aws.String("bar"), - }, - }, - }, - } - req, _ := svc.InputService15TestCaseOperation4Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"NoRecurse":"bar"}]}}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService15ProtocolTestRecursiveShapesCase5(t *testing.T) { - sess := session.New() - svc := NewInputService15ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveList: []*InputService15TestShapeRecursiveStructType{ - { - NoRecurse: aws.String("foo"), - }, - { - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - NoRecurse: aws.String("bar"), - }, - }, - }, - }, - } - req, _ := svc.InputService15TestCaseOperation5Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"RecursiveStruct":{"NoRecurse":"bar"}}]}}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService15ProtocolTestRecursiveShapesCase6(t *testing.T) { - sess := session.New() - svc := NewInputService15ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputShape{ - RecursiveStruct: &InputService15TestShapeRecursiveStructType{ - RecursiveMap: map[string]*InputService15TestShapeRecursiveStructType{ - "bar": { - NoRecurse: aws.String("bar"), - }, - "foo": { - NoRecurse: aws.String("foo"), - }, - }, - }, - } - req, _ := svc.InputService15TestCaseOperation6Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveMap":{"foo":{"NoRecurse":"foo"},"bar":{"NoRecurse":"bar"}}}}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService16ProtocolTestTimestampValuesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService16ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService16TestShapeInputShape{ - TimeArg: aws.Time(time.Unix(1422172800, 0)), - } - req, _ := svc.InputService16TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"TimeArg":1422172800}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService16ProtocolTestTimestampValuesCase2(t *testing.T) { - sess := session.New() - svc := NewInputService16ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService16TestShapeInputShape{ - TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)), - } - req, _ := svc.InputService16TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - assert.Equal(t, "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg")) - -} - -func TestInputService17ProtocolTestNamedLocationsInJSONBodyCase1(t *testing.T) { - sess := session.New() - svc := NewInputService17ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService17TestShapeInputService17TestCaseOperation1Input{ - TimeArg: aws.Time(time.Unix(1422172800, 0)), - } - req, _ := svc.InputService17TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"timestamp_location":1422172800}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService18ProtocolTestStringPayloadCase1(t *testing.T) { - sess := session.New() - svc := NewInputService18ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService18TestShapeInputService18TestCaseOperation1Input{ - Foo: aws.String("bar"), - } - req, _ := svc.InputService18TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - assert.Equal(t, `bar`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService19ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { - sess := session.New() - svc := NewInputService19ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService19TestShapeInputShape{ - Token: aws.String("abc123"), - } - req, _ := svc.InputService19TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"Token":"abc123"}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService19ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { - sess := session.New() - svc := NewInputService19ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService19TestShapeInputShape{} - req, _ := svc.InputService19TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restjson.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertJSON(t, `{"Token":"00000000-0000-4000-8000-000000000000"}`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_test.go deleted file mode 100644 index 5cff58102..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml/build_test.go +++ /dev/null @@ -1,3666 +0,0 @@ -package restxml_test - -import ( - "bytes" - "encoding/json" - "encoding/xml" - "fmt" - "io" - "io/ioutil" - "net/http" - "net/url" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/restxml" - "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" - "github.com/aws/aws-sdk-go/private/signer/v4" - "github.com/aws/aws-sdk-go/private/util" - "github.com/stretchr/testify/assert" -) - -var _ bytes.Buffer // always import bytes -var _ http.Request -var _ json.Marshaler -var _ time.Time -var _ xmlutil.XMLNode -var _ xml.Attr -var _ = ioutil.Discard -var _ = util.Trim("") -var _ = url.Values{} -var _ = io.EOF -var _ = aws.String -var _ = fmt.Println - -func init() { - protocol.RandReader = &awstesting.ZeroReader{} -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService1ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService1ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService1ProtocolTest client from just a session. -// svc := inputservice1protocoltest.New(mySession) -// -// // Create a InputService1ProtocolTest client with additional configuration -// svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest { - c := p.ClientConfig("inputservice1protocoltest", cfgs...) - return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest { - svc := &InputService1ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice1protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService1ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService1TestCaseOperation1 = "OperationName" - -// InputService1TestCaseOperation1Request generates a request for the InputService1TestCaseOperation1 operation. -func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService1TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService1TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { - req, out := c.InputService1TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService1TestCaseOperation2 = "OperationName" - -// InputService1TestCaseOperation2Request generates a request for the InputService1TestCaseOperation2 operation. -func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService1TestCaseOperation2, - HTTPMethod: "PUT", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService1TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) { - req, out := c.InputService1TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -const opInputService1TestCaseOperation3 = "OperationName" - -// InputService1TestCaseOperation3Request generates a request for the InputService1TestCaseOperation3 operation. -func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputService1TestCaseOperation3Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) { - op := &request.Operation{ - Name: opInputService1TestCaseOperation3, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService1TestShapeInputService1TestCaseOperation3Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService1TestShapeInputService1TestCaseOperation3Output{} - req.Data = output - return -} - -func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputService1TestCaseOperation3Input) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) { - req, out := c.InputService1TestCaseOperation3Request(input) - err := req.Send() - return out, err -} - -type InputService1TestShapeInputService1TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService1TestShapeInputService1TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService1TestShapeInputService1TestCaseOperation3Input struct { - _ struct{} `type:"structure"` -} - -type InputService1TestShapeInputService1TestCaseOperation3Output struct { - _ struct{} `type:"structure"` -} - -type InputService1TestShapeInputShape struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - Description *string `type:"string"` - - Name *string `type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService2ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService2ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService2ProtocolTest client from just a session. -// svc := inputservice2protocoltest.New(mySession) -// -// // Create a InputService2ProtocolTest client with additional configuration -// svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest { - c := p.ClientConfig("inputservice2protocoltest", cfgs...) - return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest { - svc := &InputService2ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice2protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService2ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService2TestCaseOperation1 = "OperationName" - -// InputService2TestCaseOperation1Request generates a request for the InputService2TestCaseOperation1 operation. -func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService2TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService2TestShapeInputService2TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService2TestShapeInputService2TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { - req, out := c.InputService2TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService2TestShapeInputService2TestCaseOperation1Input struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - First *bool `type:"boolean"` - - Fourth *int64 `type:"integer"` - - Second *bool `type:"boolean"` - - Third *float64 `type:"float"` -} - -type InputService2TestShapeInputService2TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService3ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService3ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService3ProtocolTest client from just a session. -// svc := inputservice3protocoltest.New(mySession) -// -// // Create a InputService3ProtocolTest client with additional configuration -// svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest { - c := p.ClientConfig("inputservice3protocoltest", cfgs...) - return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest { - svc := &InputService3ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice3protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService3ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService3TestCaseOperation1 = "OperationName" - -// InputService3TestCaseOperation1Request generates a request for the InputService3TestCaseOperation1 operation. -func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService3TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService3TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { - req, out := c.InputService3TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService3TestCaseOperation2 = "OperationName" - -// InputService3TestCaseOperation2Request generates a request for the InputService3TestCaseOperation2 operation. -func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService3TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService3TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService3TestShapeInputService3TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) { - req, out := c.InputService3TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService3TestShapeInputService3TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService3TestShapeInputService3TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService3TestShapeInputShape struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - Description *string `type:"string"` - - SubStructure *InputService3TestShapeSubStructure `type:"structure"` -} - -type InputService3TestShapeSubStructure struct { - _ struct{} `type:"structure"` - - Bar *string `type:"string"` - - Foo *string `type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService4ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService4ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService4ProtocolTest client from just a session. -// svc := inputservice4protocoltest.New(mySession) -// -// // Create a InputService4ProtocolTest client with additional configuration -// svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest { - c := p.ClientConfig("inputservice4protocoltest", cfgs...) - return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest { - svc := &InputService4ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice4protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService4ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService4TestCaseOperation1 = "OperationName" - -// InputService4TestCaseOperation1Request generates a request for the InputService4TestCaseOperation1 operation. -func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService4TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService4TestShapeInputService4TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService4TestShapeInputService4TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { - req, out := c.InputService4TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService4TestShapeInputService4TestCaseOperation1Input struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - Description *string `type:"string"` - - SubStructure *InputService4TestShapeSubStructure `type:"structure"` -} - -type InputService4TestShapeInputService4TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService4TestShapeSubStructure struct { - _ struct{} `type:"structure"` - - Bar *string `type:"string"` - - Foo *string `type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService5ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService5ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService5ProtocolTest client from just a session. -// svc := inputservice5protocoltest.New(mySession) -// -// // Create a InputService5ProtocolTest client with additional configuration -// svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest { - c := p.ClientConfig("inputservice5protocoltest", cfgs...) - return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest { - svc := &InputService5ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice5protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService5ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService5TestCaseOperation1 = "OperationName" - -// InputService5TestCaseOperation1Request generates a request for the InputService5TestCaseOperation1 operation. -func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService5TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService5TestShapeInputService5TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService5TestShapeInputService5TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { - req, out := c.InputService5TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService5TestShapeInputService5TestCaseOperation1Input struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - ListParam []*string `type:"list"` -} - -type InputService5TestShapeInputService5TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService6ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService6ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService6ProtocolTest client from just a session. -// svc := inputservice6protocoltest.New(mySession) -// -// // Create a InputService6ProtocolTest client with additional configuration -// svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest { - c := p.ClientConfig("inputservice6protocoltest", cfgs...) - return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest { - svc := &InputService6ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice6protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService6ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService6TestCaseOperation1 = "OperationName" - -// InputService6TestCaseOperation1Request generates a request for the InputService6TestCaseOperation1 operation. -func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService6TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService6TestShapeInputService6TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService6TestShapeInputService6TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { - req, out := c.InputService6TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService6TestShapeInputService6TestCaseOperation1Input struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - ListParam []*string `locationName:"AlternateName" locationNameList:"NotMember" type:"list"` -} - -type InputService6TestShapeInputService6TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService7ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService7ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService7ProtocolTest client from just a session. -// svc := inputservice7protocoltest.New(mySession) -// -// // Create a InputService7ProtocolTest client with additional configuration -// svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest { - c := p.ClientConfig("inputservice7protocoltest", cfgs...) - return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest { - svc := &InputService7ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice7protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService7ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService7TestCaseOperation1 = "OperationName" - -// InputService7TestCaseOperation1Request generates a request for the InputService7TestCaseOperation1 operation. -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService7TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService7TestShapeInputService7TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService7TestShapeInputService7TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { - req, out := c.InputService7TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService7TestShapeInputService7TestCaseOperation1Input struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - ListParam []*string `type:"list" flattened:"true"` -} - -type InputService7TestShapeInputService7TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService8ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService8ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService8ProtocolTest client from just a session. -// svc := inputservice8protocoltest.New(mySession) -// -// // Create a InputService8ProtocolTest client with additional configuration -// svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest { - c := p.ClientConfig("inputservice8protocoltest", cfgs...) - return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest { - svc := &InputService8ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice8protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService8ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService8TestCaseOperation1 = "OperationName" - -// InputService8TestCaseOperation1Request generates a request for the InputService8TestCaseOperation1 operation. -func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService8TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService8TestShapeInputService8TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService8TestShapeInputService8TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { - req, out := c.InputService8TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService8TestShapeInputService8TestCaseOperation1Input struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - ListParam []*string `locationName:"item" type:"list" flattened:"true"` -} - -type InputService8TestShapeInputService8TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService9ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService9ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService9ProtocolTest client from just a session. -// svc := inputservice9protocoltest.New(mySession) -// -// // Create a InputService9ProtocolTest client with additional configuration -// svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest { - c := p.ClientConfig("inputservice9protocoltest", cfgs...) - return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest { - svc := &InputService9ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice9protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService9ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService9TestCaseOperation1 = "OperationName" - -// InputService9TestCaseOperation1Request generates a request for the InputService9TestCaseOperation1 operation. -func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService9TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService9TestShapeInputService9TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService9TestShapeInputService9TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { - req, out := c.InputService9TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService9TestShapeInputService9TestCaseOperation1Input struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - ListParam []*InputService9TestShapeSingleFieldStruct `locationName:"item" type:"list" flattened:"true"` -} - -type InputService9TestShapeInputService9TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService9TestShapeSingleFieldStruct struct { - _ struct{} `type:"structure"` - - Element *string `locationName:"value" type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService10ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService10ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService10ProtocolTest client from just a session. -// svc := inputservice10protocoltest.New(mySession) -// -// // Create a InputService10ProtocolTest client with additional configuration -// svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest { - c := p.ClientConfig("inputservice10protocoltest", cfgs...) - return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest { - svc := &InputService10ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice10protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService10ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService10TestCaseOperation1 = "OperationName" - -// InputService10TestCaseOperation1Request generates a request for the InputService10TestCaseOperation1 operation. -func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService10TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/2014-01-01/hostedzone", - } - - if input == nil { - input = &InputService10TestShapeInputService10TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService10TestShapeInputService10TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { - req, out := c.InputService10TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService10TestShapeInputService10TestCaseOperation1Input struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - StructureParam *InputService10TestShapeStructureShape `type:"structure"` -} - -type InputService10TestShapeInputService10TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService10TestShapeStructureShape struct { - _ struct{} `type:"structure"` - - // B is automatically base64 encoded/decoded by the SDK. - B []byte `locationName:"b" type:"blob"` - - T *time.Time `locationName:"t" type:"timestamp" timestampFormat:"iso8601"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService11ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService11ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService11ProtocolTest client from just a session. -// svc := inputservice11protocoltest.New(mySession) -// -// // Create a InputService11ProtocolTest client with additional configuration -// svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest { - c := p.ClientConfig("inputservice11protocoltest", cfgs...) - return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest { - svc := &InputService11ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice11protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService11ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService11TestCaseOperation1 = "OperationName" - -// InputService11TestCaseOperation1Request generates a request for the InputService11TestCaseOperation1 operation. -func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService11TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService11TestShapeInputService11TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService11TestShapeInputService11TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { - req, out := c.InputService11TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService11TestShapeInputService11TestCaseOperation1Input struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - Foo map[string]*string `location:"headers" locationName:"x-foo-" type:"map"` -} - -type InputService11TestShapeInputService11TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService12ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService12ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService12ProtocolTest client from just a session. -// svc := inputservice12protocoltest.New(mySession) -// -// // Create a InputService12ProtocolTest client with additional configuration -// svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest { - c := p.ClientConfig("inputservice12protocoltest", cfgs...) - return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest { - svc := &InputService12ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice12protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService12ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService12TestCaseOperation1 = "OperationName" - -// InputService12TestCaseOperation1Request generates a request for the InputService12TestCaseOperation1 operation. -func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService12TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService12TestShapeInputService12TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService12TestShapeInputService12TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { - req, out := c.InputService12TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService12TestShapeInputService12TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - Items []*string `location:"querystring" locationName:"item" type:"list"` -} - -type InputService12TestShapeInputService12TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService13ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService13ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService13ProtocolTest client from just a session. -// svc := inputservice13protocoltest.New(mySession) -// -// // Create a InputService13ProtocolTest client with additional configuration -// svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest { - c := p.ClientConfig("inputservice13protocoltest", cfgs...) - return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest { - svc := &InputService13ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice13protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService13ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService13TestCaseOperation1 = "OperationName" - -// InputService13TestCaseOperation1Request generates a request for the InputService13TestCaseOperation1 operation. -func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputService13TestCaseOperation1Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService13TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", - } - - if input == nil { - input = &InputService13TestShapeInputService13TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService13TestShapeInputService13TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputService13TestCaseOperation1Input) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) { - req, out := c.InputService13TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService13TestShapeInputService13TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - PipelineId *string `location:"uri" type:"string"` - - QueryDoc map[string]*string `location:"querystring" type:"map"` -} - -type InputService13TestShapeInputService13TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService14ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService14ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService14ProtocolTest client from just a session. -// svc := inputservice14protocoltest.New(mySession) -// -// // Create a InputService14ProtocolTest client with additional configuration -// svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest { - c := p.ClientConfig("inputservice14protocoltest", cfgs...) - return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService14ProtocolTest { - svc := &InputService14ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice14protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService14ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService14TestCaseOperation1 = "OperationName" - -// InputService14TestCaseOperation1Request generates a request for the InputService14TestCaseOperation1 operation. -func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputService14TestCaseOperation1Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService14TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}", - } - - if input == nil { - input = &InputService14TestShapeInputService14TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService14TestShapeInputService14TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputService14TestCaseOperation1Input) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) { - req, out := c.InputService14TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService14TestShapeInputService14TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - PipelineId *string `location:"uri" type:"string"` - - QueryDoc map[string][]*string `location:"querystring" type:"map"` -} - -type InputService14TestShapeInputService14TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService15ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService15ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService15ProtocolTest client from just a session. -// svc := inputservice15protocoltest.New(mySession) -// -// // Create a InputService15ProtocolTest client with additional configuration -// svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest { - c := p.ClientConfig("inputservice15protocoltest", cfgs...) - return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService15ProtocolTest { - svc := &InputService15ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice15protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService15ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService15TestCaseOperation1 = "OperationName" - -// InputService15TestCaseOperation1Request generates a request for the InputService15TestCaseOperation1 operation. -func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputService15TestCaseOperation1Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService15TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService15TestShapeInputService15TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService15TestShapeInputService15TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) { - req, out := c.InputService15TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService15TestShapeInputService15TestCaseOperation1Input struct { - _ struct{} `type:"structure" payload:"Foo"` - - Foo *string `locationName:"foo" type:"string"` -} - -type InputService15TestShapeInputService15TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService16ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService16ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService16ProtocolTest client from just a session. -// svc := inputservice16protocoltest.New(mySession) -// -// // Create a InputService16ProtocolTest client with additional configuration -// svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest { - c := p.ClientConfig("inputservice16protocoltest", cfgs...) - return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService16ProtocolTest { - svc := &InputService16ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice16protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService16ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService16TestCaseOperation1 = "OperationName" - -// InputService16TestCaseOperation1Request generates a request for the InputService16TestCaseOperation1 operation. -func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService16TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService16TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService16TestShapeInputService16TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { - req, out := c.InputService16TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService16TestCaseOperation2 = "OperationName" - -// InputService16TestCaseOperation2Request generates a request for the InputService16TestCaseOperation2 operation. -func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService16TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService16TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService16TestShapeInputService16TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { - req, out := c.InputService16TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService16TestShapeInputService16TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService16TestShapeInputService16TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService16TestShapeInputShape struct { - _ struct{} `type:"structure" payload:"Foo"` - - Foo []byte `locationName:"foo" type:"blob"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService17ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService17ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService17ProtocolTest client from just a session. -// svc := inputservice17protocoltest.New(mySession) -// -// // Create a InputService17ProtocolTest client with additional configuration -// svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest { - c := p.ClientConfig("inputservice17protocoltest", cfgs...) - return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService17ProtocolTest { - svc := &InputService17ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice17protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService17ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService17ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService17TestCaseOperation1 = "OperationName" - -// InputService17TestCaseOperation1Request generates a request for the InputService17TestCaseOperation1 operation. -func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService17TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService17TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService17TestShapeInputService17TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) { - req, out := c.InputService17TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService17TestCaseOperation2 = "OperationName" - -// InputService17TestCaseOperation2Request generates a request for the InputService17TestCaseOperation2 operation. -func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService17TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService17TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService17TestShapeInputService17TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService17ProtocolTest) InputService17TestCaseOperation2(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation2Output, error) { - req, out := c.InputService17TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -const opInputService17TestCaseOperation3 = "OperationName" - -// InputService17TestCaseOperation3Request generates a request for the InputService17TestCaseOperation3 operation. -func (c *InputService17ProtocolTest) InputService17TestCaseOperation3Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation3Output) { - op := &request.Operation{ - Name: opInputService17TestCaseOperation3, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService17TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService17TestShapeInputService17TestCaseOperation3Output{} - req.Data = output - return -} - -func (c *InputService17ProtocolTest) InputService17TestCaseOperation3(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation3Output, error) { - req, out := c.InputService17TestCaseOperation3Request(input) - err := req.Send() - return out, err -} - -const opInputService17TestCaseOperation4 = "OperationName" - -// InputService17TestCaseOperation4Request generates a request for the InputService17TestCaseOperation4 operation. -func (c *InputService17ProtocolTest) InputService17TestCaseOperation4Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation4Output) { - op := &request.Operation{ - Name: opInputService17TestCaseOperation4, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService17TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService17TestShapeInputService17TestCaseOperation4Output{} - req.Data = output - return -} - -func (c *InputService17ProtocolTest) InputService17TestCaseOperation4(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation4Output, error) { - req, out := c.InputService17TestCaseOperation4Request(input) - err := req.Send() - return out, err -} - -type InputService17TestShapeFooShape struct { - _ struct{} `locationName:"foo" type:"structure"` - - Baz *string `locationName:"baz" type:"string"` -} - -type InputService17TestShapeInputService17TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService17TestShapeInputService17TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService17TestShapeInputService17TestCaseOperation3Output struct { - _ struct{} `type:"structure"` -} - -type InputService17TestShapeInputService17TestCaseOperation4Output struct { - _ struct{} `type:"structure"` -} - -type InputService17TestShapeInputShape struct { - _ struct{} `type:"structure" payload:"Foo"` - - Foo *InputService17TestShapeFooShape `locationName:"foo" type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService18ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService18ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService18ProtocolTest client from just a session. -// svc := inputservice18protocoltest.New(mySession) -// -// // Create a InputService18ProtocolTest client with additional configuration -// svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest { - c := p.ClientConfig("inputservice18protocoltest", cfgs...) - return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService18ProtocolTest { - svc := &InputService18ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice18protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService18ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService18ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService18TestCaseOperation1 = "OperationName" - -// InputService18TestCaseOperation1Request generates a request for the InputService18TestCaseOperation1 operation. -func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputService18TestCaseOperation1Input) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService18TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InputService18TestShapeInputService18TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService18TestShapeInputService18TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) { - req, out := c.InputService18TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService18TestShapeGrant struct { - _ struct{} `locationName:"Grant" type:"structure"` - - Grantee *InputService18TestShapeGrantee `type:"structure"` -} - -type InputService18TestShapeGrantee struct { - _ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"` - - EmailAddress *string `type:"string"` - - Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true"` -} - -type InputService18TestShapeInputService18TestCaseOperation1Input struct { - _ struct{} `type:"structure" payload:"Grant"` - - Grant *InputService18TestShapeGrant `locationName:"Grant" type:"structure"` -} - -type InputService18TestShapeInputService18TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService19ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService19ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService19ProtocolTest client from just a session. -// svc := inputservice19protocoltest.New(mySession) -// -// // Create a InputService19ProtocolTest client with additional configuration -// svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest { - c := p.ClientConfig("inputservice19protocoltest", cfgs...) - return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService19ProtocolTest { - svc := &InputService19ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice19protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService19ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService19ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService19TestCaseOperation1 = "OperationName" - -// InputService19TestCaseOperation1Request generates a request for the InputService19TestCaseOperation1 operation. -func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService19TestCaseOperation1, - HTTPMethod: "GET", - HTTPPath: "/{Bucket}/{Key+}", - } - - if input == nil { - input = &InputService19TestShapeInputService19TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService19TestShapeInputService19TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { - req, out := c.InputService19TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService19TestShapeInputService19TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - Bucket *string `location:"uri" type:"string"` - - Key *string `location:"uri" type:"string"` -} - -type InputService19TestShapeInputService19TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService20ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService20ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService20ProtocolTest client from just a session. -// svc := inputservice20protocoltest.New(mySession) -// -// // Create a InputService20ProtocolTest client with additional configuration -// svc := inputservice20protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService20ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService20ProtocolTest { - c := p.ClientConfig("inputservice20protocoltest", cfgs...) - return newInputService20ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService20ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService20ProtocolTest { - svc := &InputService20ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice20protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService20ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService20ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService20TestCaseOperation1 = "OperationName" - -// InputService20TestCaseOperation1Request generates a request for the InputService20TestCaseOperation1 operation. -func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(input *InputService20TestShapeInputShape) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService20TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService20TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService20TestShapeInputService20TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService20ProtocolTest) InputService20TestCaseOperation1(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) { - req, out := c.InputService20TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService20TestCaseOperation2 = "OperationName" - -// InputService20TestCaseOperation2Request generates a request for the InputService20TestCaseOperation2 operation. -func (c *InputService20ProtocolTest) InputService20TestCaseOperation2Request(input *InputService20TestShapeInputShape) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService20TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path?abc=mno", - } - - if input == nil { - input = &InputService20TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService20TestShapeInputService20TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService20ProtocolTest) InputService20TestCaseOperation2(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation2Output, error) { - req, out := c.InputService20TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService20TestShapeInputService20TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService20TestShapeInputService20TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService20TestShapeInputShape struct { - _ struct{} `type:"structure"` - - Foo *string `location:"querystring" locationName:"param-name" type:"string"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService21ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService21ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService21ProtocolTest client from just a session. -// svc := inputservice21protocoltest.New(mySession) -// -// // Create a InputService21ProtocolTest client with additional configuration -// svc := inputservice21protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService21ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService21ProtocolTest { - c := p.ClientConfig("inputservice21protocoltest", cfgs...) - return newInputService21ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService21ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService21ProtocolTest { - svc := &InputService21ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice21protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService21ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService21ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService21TestCaseOperation1 = "OperationName" - -// InputService21TestCaseOperation1Request generates a request for the InputService21TestCaseOperation1 operation. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService21TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService21TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService21ProtocolTest) InputService21TestCaseOperation1(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) { - req, out := c.InputService21TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService21TestCaseOperation2 = "OperationName" - -// InputService21TestCaseOperation2Request generates a request for the InputService21TestCaseOperation2 operation. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation2Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService21TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService21TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService21ProtocolTest) InputService21TestCaseOperation2(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation2Output, error) { - req, out := c.InputService21TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -const opInputService21TestCaseOperation3 = "OperationName" - -// InputService21TestCaseOperation3Request generates a request for the InputService21TestCaseOperation3 operation. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation3Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation3Output) { - op := &request.Operation{ - Name: opInputService21TestCaseOperation3, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService21TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation3Output{} - req.Data = output - return -} - -func (c *InputService21ProtocolTest) InputService21TestCaseOperation3(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation3Output, error) { - req, out := c.InputService21TestCaseOperation3Request(input) - err := req.Send() - return out, err -} - -const opInputService21TestCaseOperation4 = "OperationName" - -// InputService21TestCaseOperation4Request generates a request for the InputService21TestCaseOperation4 operation. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation4Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation4Output) { - op := &request.Operation{ - Name: opInputService21TestCaseOperation4, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService21TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation4Output{} - req.Data = output - return -} - -func (c *InputService21ProtocolTest) InputService21TestCaseOperation4(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation4Output, error) { - req, out := c.InputService21TestCaseOperation4Request(input) - err := req.Send() - return out, err -} - -const opInputService21TestCaseOperation5 = "OperationName" - -// InputService21TestCaseOperation5Request generates a request for the InputService21TestCaseOperation5 operation. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation5Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation5Output) { - op := &request.Operation{ - Name: opInputService21TestCaseOperation5, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService21TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation5Output{} - req.Data = output - return -} - -func (c *InputService21ProtocolTest) InputService21TestCaseOperation5(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation5Output, error) { - req, out := c.InputService21TestCaseOperation5Request(input) - err := req.Send() - return out, err -} - -const opInputService21TestCaseOperation6 = "OperationName" - -// InputService21TestCaseOperation6Request generates a request for the InputService21TestCaseOperation6 operation. -func (c *InputService21ProtocolTest) InputService21TestCaseOperation6Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation6Output) { - op := &request.Operation{ - Name: opInputService21TestCaseOperation6, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService21TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService21TestShapeInputService21TestCaseOperation6Output{} - req.Data = output - return -} - -func (c *InputService21ProtocolTest) InputService21TestCaseOperation6(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation6Output, error) { - req, out := c.InputService21TestCaseOperation6Request(input) - err := req.Send() - return out, err -} - -type InputService21TestShapeInputService21TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService21TestShapeInputService21TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService21TestShapeInputService21TestCaseOperation3Output struct { - _ struct{} `type:"structure"` -} - -type InputService21TestShapeInputService21TestCaseOperation4Output struct { - _ struct{} `type:"structure"` -} - -type InputService21TestShapeInputService21TestCaseOperation5Output struct { - _ struct{} `type:"structure"` -} - -type InputService21TestShapeInputService21TestCaseOperation6Output struct { - _ struct{} `type:"structure"` -} - -type InputService21TestShapeInputShape struct { - _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"` - - RecursiveStruct *InputService21TestShapeRecursiveStructType `type:"structure"` -} - -type InputService21TestShapeRecursiveStructType struct { - _ struct{} `type:"structure"` - - NoRecurse *string `type:"string"` - - RecursiveList []*InputService21TestShapeRecursiveStructType `type:"list"` - - RecursiveMap map[string]*InputService21TestShapeRecursiveStructType `type:"map"` - - RecursiveStruct *InputService21TestShapeRecursiveStructType `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService22ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService22ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService22ProtocolTest client from just a session. -// svc := inputservice22protocoltest.New(mySession) -// -// // Create a InputService22ProtocolTest client with additional configuration -// svc := inputservice22protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService22ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService22ProtocolTest { - c := p.ClientConfig("inputservice22protocoltest", cfgs...) - return newInputService22ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService22ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService22ProtocolTest { - svc := &InputService22ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice22protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService22ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService22ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService22TestCaseOperation1 = "OperationName" - -// InputService22TestCaseOperation1Request generates a request for the InputService22TestCaseOperation1 operation. -func (c *InputService22ProtocolTest) InputService22TestCaseOperation1Request(input *InputService22TestShapeInputService22TestCaseOperation1Input) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService22TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService22TestShapeInputService22TestCaseOperation1Input{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService22TestShapeInputService22TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService22ProtocolTest) InputService22TestCaseOperation1(input *InputService22TestShapeInputService22TestCaseOperation1Input) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) { - req, out := c.InputService22TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -type InputService22TestShapeInputService22TestCaseOperation1Input struct { - _ struct{} `type:"structure"` - - TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"` -} - -type InputService22TestShapeInputService22TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type InputService23ProtocolTest struct { - *client.Client -} - -// New creates a new instance of the InputService23ProtocolTest client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a InputService23ProtocolTest client from just a session. -// svc := inputservice23protocoltest.New(mySession) -// -// // Create a InputService23ProtocolTest client with additional configuration -// svc := inputservice23protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func NewInputService23ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService23ProtocolTest { - c := p.ClientConfig("inputservice23protocoltest", cfgs...) - return newInputService23ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newInputService23ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService23ProtocolTest { - svc := &InputService23ProtocolTest{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: "inputservice23protocoltest", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - return svc -} - -// newRequest creates a new request for a InputService23ProtocolTest operation and runs any -// custom request initialization. -func (c *InputService23ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - return req -} - -const opInputService23TestCaseOperation1 = "OperationName" - -// InputService23TestCaseOperation1Request generates a request for the InputService23TestCaseOperation1 operation. -func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(input *InputService23TestShapeInputShape) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation1Output) { - op := &request.Operation{ - Name: opInputService23TestCaseOperation1, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService23TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService23TestShapeInputService23TestCaseOperation1Output{} - req.Data = output - return -} - -func (c *InputService23ProtocolTest) InputService23TestCaseOperation1(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) { - req, out := c.InputService23TestCaseOperation1Request(input) - err := req.Send() - return out, err -} - -const opInputService23TestCaseOperation2 = "OperationName" - -// InputService23TestCaseOperation2Request generates a request for the InputService23TestCaseOperation2 operation. -func (c *InputService23ProtocolTest) InputService23TestCaseOperation2Request(input *InputService23TestShapeInputShape) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation2Output) { - op := &request.Operation{ - Name: opInputService23TestCaseOperation2, - HTTPMethod: "POST", - HTTPPath: "/path", - } - - if input == nil { - input = &InputService23TestShapeInputShape{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &InputService23TestShapeInputService23TestCaseOperation2Output{} - req.Data = output - return -} - -func (c *InputService23ProtocolTest) InputService23TestCaseOperation2(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) { - req, out := c.InputService23TestCaseOperation2Request(input) - err := req.Send() - return out, err -} - -type InputService23TestShapeInputService23TestCaseOperation1Output struct { - _ struct{} `type:"structure"` -} - -type InputService23TestShapeInputService23TestCaseOperation2Output struct { - _ struct{} `type:"structure"` -} - -type InputService23TestShapeInputShape struct { - _ struct{} `type:"structure"` - - Token *string `type:"string" idempotencyToken:"true"` -} - -// -// Tests begin here -// - -func TestInputService1ProtocolTestBasicXMLSerializationCase1(t *testing.T) { - sess := session.New() - svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService1TestShapeInputShape{ - Description: aws.String("bar"), - Name: aws.String("foo"), - } - req, _ := svc.InputService1TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `barfoo`, util.Trim(string(body)), InputService1TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService1ProtocolTestBasicXMLSerializationCase2(t *testing.T) { - sess := session.New() - svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService1TestShapeInputShape{ - Description: aws.String("bar"), - Name: aws.String("foo"), - } - req, _ := svc.InputService1TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `barfoo`, util.Trim(string(body)), InputService1TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService1ProtocolTestBasicXMLSerializationCase3(t *testing.T) { - sess := session.New() - svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService1TestShapeInputService1TestCaseOperation3Input{} - req, _ := svc.InputService1TestCaseOperation3Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService2ProtocolTestSerializeOtherScalarTypesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService2ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService2TestShapeInputService2TestCaseOperation1Input{ - First: aws.Bool(true), - Fourth: aws.Int64(3), - Second: aws.Bool(false), - Third: aws.Float64(1.2), - } - req, _ := svc.InputService2TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `true3false1.2`, util.Trim(string(body)), InputService2TestShapeInputService2TestCaseOperation1Input{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService3ProtocolTestNestedStructuresCase1(t *testing.T) { - sess := session.New() - svc := NewInputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService3TestShapeInputShape{ - Description: aws.String("baz"), - SubStructure: &InputService3TestShapeSubStructure{ - Bar: aws.String("b"), - Foo: aws.String("a"), - }, - } - req, _ := svc.InputService3TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `bazba`, util.Trim(string(body)), InputService3TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService3ProtocolTestNestedStructuresCase2(t *testing.T) { - sess := session.New() - svc := NewInputService3ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService3TestShapeInputShape{ - Description: aws.String("baz"), - SubStructure: &InputService3TestShapeSubStructure{ - Foo: aws.String("a"), - }, - } - req, _ := svc.InputService3TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `baza`, util.Trim(string(body)), InputService3TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService4ProtocolTestNestedStructuresCase1(t *testing.T) { - sess := session.New() - svc := NewInputService4ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService4TestShapeInputService4TestCaseOperation1Input{ - Description: aws.String("baz"), - SubStructure: &InputService4TestShapeSubStructure{}, - } - req, _ := svc.InputService4TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `baz`, util.Trim(string(body)), InputService4TestShapeInputService4TestCaseOperation1Input{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService5ProtocolTestNonFlattenedListsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService5ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService5TestShapeInputService5TestCaseOperation1Input{ - ListParam: []*string{ - aws.String("one"), - aws.String("two"), - aws.String("three"), - }, - } - req, _ := svc.InputService5TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `onetwothree`, util.Trim(string(body)), InputService5TestShapeInputService5TestCaseOperation1Input{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService6ProtocolTestNonFlattenedListsWithLocationNameCase1(t *testing.T) { - sess := session.New() - svc := NewInputService6ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService6TestShapeInputService6TestCaseOperation1Input{ - ListParam: []*string{ - aws.String("one"), - aws.String("two"), - aws.String("three"), - }, - } - req, _ := svc.InputService6TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `onetwothree`, util.Trim(string(body)), InputService6TestShapeInputService6TestCaseOperation1Input{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService7ProtocolTestFlattenedListsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService7ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService7TestShapeInputService7TestCaseOperation1Input{ - ListParam: []*string{ - aws.String("one"), - aws.String("two"), - aws.String("three"), - }, - } - req, _ := svc.InputService7TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `onetwothree`, util.Trim(string(body)), InputService7TestShapeInputService7TestCaseOperation1Input{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService8ProtocolTestFlattenedListsWithLocationNameCase1(t *testing.T) { - sess := session.New() - svc := NewInputService8ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService8TestShapeInputService8TestCaseOperation1Input{ - ListParam: []*string{ - aws.String("one"), - aws.String("two"), - aws.String("three"), - }, - } - req, _ := svc.InputService8TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `onetwothree`, util.Trim(string(body)), InputService8TestShapeInputService8TestCaseOperation1Input{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService9ProtocolTestListOfStructuresCase1(t *testing.T) { - sess := session.New() - svc := NewInputService9ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService9TestShapeInputService9TestCaseOperation1Input{ - ListParam: []*InputService9TestShapeSingleFieldStruct{ - { - Element: aws.String("one"), - }, - { - Element: aws.String("two"), - }, - { - Element: aws.String("three"), - }, - }, - } - req, _ := svc.InputService9TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `onetwothree`, util.Trim(string(body)), InputService9TestShapeInputService9TestCaseOperation1Input{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService10ProtocolTestBlobAndTimestampShapesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService10ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService10TestShapeInputService10TestCaseOperation1Input{ - StructureParam: &InputService10TestShapeStructureShape{ - B: []byte("foo"), - T: aws.Time(time.Unix(1422172800, 0)), - }, - } - req, _ := svc.InputService10TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `Zm9v2015-01-25T08:00:00Z`, util.Trim(string(body)), InputService10TestShapeInputService10TestCaseOperation1Input{}) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String()) - - // assert headers - -} - -func TestInputService11ProtocolTestHeaderMapsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService11ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService11TestShapeInputService11TestCaseOperation1Input{ - Foo: map[string]*string{ - "a": aws.String("b"), - "c": aws.String("d"), - }, - } - req, _ := svc.InputService11TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - assert.Equal(t, "b", r.Header.Get("x-foo-a")) - assert.Equal(t, "d", r.Header.Get("x-foo-c")) - -} - -func TestInputService12ProtocolTestQuerystringListOfStringsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService12ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService12TestShapeInputService12TestCaseOperation1Input{ - Items: []*string{ - aws.String("value1"), - aws.String("value2"), - }, - } - req, _ := svc.InputService12TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/path?item=value1&item=value2", r.URL.String()) - - // assert headers - -} - -func TestInputService13ProtocolTestStringToStringMapsInQuerystringCase1(t *testing.T) { - sess := session.New() - svc := NewInputService13ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService13TestShapeInputService13TestCaseOperation1Input{ - PipelineId: aws.String("foo"), - QueryDoc: map[string]*string{ - "bar": aws.String("baz"), - "fizz": aws.String("buzz"), - }, - } - req, _ := svc.InputService13TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz", r.URL.String()) - - // assert headers - -} - -func TestInputService14ProtocolTestStringToStringListMapsInQuerystringCase1(t *testing.T) { - sess := session.New() - svc := NewInputService14ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService14TestShapeInputService14TestCaseOperation1Input{ - PipelineId: aws.String("id"), - QueryDoc: map[string][]*string{ - "fizz": { - aws.String("buzz"), - aws.String("pop"), - }, - "foo": { - aws.String("bar"), - aws.String("baz"), - }, - }, - } - req, _ := svc.InputService14TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop", r.URL.String()) - - // assert headers - -} - -func TestInputService15ProtocolTestStringPayloadCase1(t *testing.T) { - sess := session.New() - svc := NewInputService15ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService15TestShapeInputService15TestCaseOperation1Input{ - Foo: aws.String("bar"), - } - req, _ := svc.InputService15TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - assert.Equal(t, `bar`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService16ProtocolTestBlobPayloadCase1(t *testing.T) { - sess := session.New() - svc := NewInputService16ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService16TestShapeInputShape{ - Foo: []byte("bar"), - } - req, _ := svc.InputService16TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - assert.Equal(t, `bar`, util.Trim(string(body))) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService16ProtocolTestBlobPayloadCase2(t *testing.T) { - sess := session.New() - svc := NewInputService16ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService16TestShapeInputShape{} - req, _ := svc.InputService16TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService17ProtocolTestStructurePayloadCase1(t *testing.T) { - sess := session.New() - svc := NewInputService17ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService17TestShapeInputShape{ - Foo: &InputService17TestShapeFooShape{ - Baz: aws.String("bar"), - }, - } - req, _ := svc.InputService17TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `bar`, util.Trim(string(body)), InputService17TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService17ProtocolTestStructurePayloadCase2(t *testing.T) { - sess := session.New() - svc := NewInputService17ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService17TestShapeInputShape{} - req, _ := svc.InputService17TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService17ProtocolTestStructurePayloadCase3(t *testing.T) { - sess := session.New() - svc := NewInputService17ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService17TestShapeInputShape{ - Foo: &InputService17TestShapeFooShape{}, - } - req, _ := svc.InputService17TestCaseOperation3Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, ``, util.Trim(string(body)), InputService17TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService17ProtocolTestStructurePayloadCase4(t *testing.T) { - sess := session.New() - svc := NewInputService17ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService17TestShapeInputShape{} - req, _ := svc.InputService17TestCaseOperation4Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService18ProtocolTestXMLAttributeCase1(t *testing.T) { - sess := session.New() - svc := NewInputService18ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService18TestShapeInputService18TestCaseOperation1Input{ - Grant: &InputService18TestShapeGrant{ - Grantee: &InputService18TestShapeGrantee{ - EmailAddress: aws.String("foo@example.com"), - Type: aws.String("CanonicalUser"), - }, - }, - } - req, _ := svc.InputService18TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foo@example.com`, util.Trim(string(body)), InputService18TestShapeInputService18TestCaseOperation1Input{}) - - // assert URL - awstesting.AssertURL(t, "https://test/", r.URL.String()) - - // assert headers - -} - -func TestInputService19ProtocolTestGreedyKeysCase1(t *testing.T) { - sess := session.New() - svc := NewInputService19ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService19TestShapeInputService19TestCaseOperation1Input{ - Bucket: aws.String("my/bucket"), - Key: aws.String("testing /123"), - } - req, _ := svc.InputService19TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/my%2Fbucket/testing%20/123", r.URL.String()) - - // assert headers - -} - -func TestInputService20ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) { - sess := session.New() - svc := NewInputService20ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService20TestShapeInputShape{} - req, _ := svc.InputService20TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService20ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) { - sess := session.New() - svc := NewInputService20ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService20TestShapeInputShape{ - Foo: aws.String(""), - } - req, _ := svc.InputService20TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/path?abc=mno¶m-name=", r.URL.String()) - - // assert headers - -} - -func TestInputService21ProtocolTestRecursiveShapesCase1(t *testing.T) { - sess := session.New() - svc := NewInputService21ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - NoRecurse: aws.String("foo"), - }, - } - req, _ := svc.InputService21TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService21TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService21ProtocolTestRecursiveShapesCase2(t *testing.T) { - sess := session.New() - svc := NewInputService21ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - NoRecurse: aws.String("foo"), - }, - }, - } - req, _ := svc.InputService21TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService21TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService21ProtocolTestRecursiveShapesCase3(t *testing.T) { - sess := session.New() - svc := NewInputService21ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - NoRecurse: aws.String("foo"), - }, - }, - }, - }, - } - req, _ := svc.InputService21TestCaseOperation3Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foo`, util.Trim(string(body)), InputService21TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService21ProtocolTestRecursiveShapesCase4(t *testing.T) { - sess := session.New() - svc := NewInputService21ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveList: []*InputService21TestShapeRecursiveStructType{ - { - NoRecurse: aws.String("foo"), - }, - { - NoRecurse: aws.String("bar"), - }, - }, - }, - } - req, _ := svc.InputService21TestCaseOperation4Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foobar`, util.Trim(string(body)), InputService21TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService21ProtocolTestRecursiveShapesCase5(t *testing.T) { - sess := session.New() - svc := NewInputService21ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveList: []*InputService21TestShapeRecursiveStructType{ - { - NoRecurse: aws.String("foo"), - }, - { - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - NoRecurse: aws.String("bar"), - }, - }, - }, - }, - } - req, _ := svc.InputService21TestCaseOperation5Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foobar`, util.Trim(string(body)), InputService21TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService21ProtocolTestRecursiveShapesCase6(t *testing.T) { - sess := session.New() - svc := NewInputService21ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService21TestShapeInputShape{ - RecursiveStruct: &InputService21TestShapeRecursiveStructType{ - RecursiveMap: map[string]*InputService21TestShapeRecursiveStructType{ - "bar": { - NoRecurse: aws.String("bar"), - }, - "foo": { - NoRecurse: aws.String("foo"), - }, - }, - }, - } - req, _ := svc.InputService21TestCaseOperation6Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `foofoobarbar`, util.Trim(string(body)), InputService21TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService22ProtocolTestTimestampInHeaderCase1(t *testing.T) { - sess := session.New() - svc := NewInputService22ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService22TestShapeInputService22TestCaseOperation1Input{ - TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)), - } - req, _ := svc.InputService22TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - assert.Equal(t, "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg")) - -} - -func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { - sess := session.New() - svc := NewInputService23ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService23TestShapeInputShape{ - Token: aws.String("abc123"), - } - req, _ := svc.InputService23TestCaseOperation1Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `abc123`, util.Trim(string(body)), InputService23TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} - -func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { - sess := session.New() - svc := NewInputService23ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService23TestShapeInputShape{} - req, _ := svc.InputService23TestCaseOperation2Request(input) - r := req.HTTPRequest - - // build request - restxml.Build(req) - assert.NoError(t, req.Error) - - // assert body - assert.NotNil(t, r.Body) - body := util.SortXML(r.Body) - awstesting.AssertXML(t, `00000000-0000-4000-8000-000000000000`, util.Trim(string(body)), InputService23TestShapeInputShape{}) - - // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) - - // assert headers - -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal.go deleted file mode 100644 index da1a68111..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal.go +++ /dev/null @@ -1,21 +0,0 @@ -package protocol - -import ( - "io" - "io/ioutil" - - "github.com/aws/aws-sdk-go/aws/request" -) - -// UnmarshalDiscardBodyHandler is a named request handler to empty and close a response's body -var UnmarshalDiscardBodyHandler = request.NamedHandler{Name: "awssdk.shared.UnmarshalDiscardBody", Fn: UnmarshalDiscardBody} - -// UnmarshalDiscardBody is a request handler to empty a response's body and closing it. -func UnmarshalDiscardBody(r *request.Request) { - if r.HTTPResponse == nil || r.HTTPResponse.Body == nil { - return - } - - io.Copy(ioutil.Discard, r.HTTPResponse.Body) - r.HTTPResponse.Body.Close() -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal_test.go deleted file mode 100644 index 2733e993d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package protocol_test - -import ( - "net/http" - "strings" - "testing" - - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/stretchr/testify/assert" -) - -type mockCloser struct { - *strings.Reader - Closed bool -} - -func (m *mockCloser) Close() error { - m.Closed = true - return nil -} - -func TestUnmarshalDrainBody(t *testing.T) { - b := &mockCloser{Reader: strings.NewReader("example body")} - r := &request.Request{HTTPResponse: &http.Response{ - Body: b, - }} - - protocol.UnmarshalDiscardBody(r) - assert.NoError(t, r.Error) - assert.Equal(t, 0, b.Len()) - assert.True(t, b.Closed) -} - -func TestUnmarshalDrainBodyNoBody(t *testing.T) { - r := &request.Request{HTTPResponse: &http.Response{}} - - protocol.UnmarshalDiscardBody(r) - assert.NoError(t, r.Error) -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/signer/v2/v2.go b/vendor/github.com/aws/aws-sdk-go/private/signer/v2/v2.go deleted file mode 100644 index 97658ffb9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/signer/v2/v2.go +++ /dev/null @@ -1,174 +0,0 @@ -package v2 - -import ( - "crypto/hmac" - "crypto/sha256" - "encoding/base64" - "errors" - "fmt" - "net/http" - "net/url" - "sort" - "strings" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/credentials" - "github.com/aws/aws-sdk-go/aws/request" -) - -var ( - errInvalidMethod = errors.New("v2 signer only handles HTTP POST") -) - -const ( - signatureVersion = "2" - signatureMethod = "HmacSHA256" - timeFormat = "2006-01-02T15:04:05Z" -) - -type signer struct { - // Values that must be populated from the request - Request *http.Request - Time time.Time - Credentials *credentials.Credentials - Debug aws.LogLevelType - Logger aws.Logger - - Query url.Values - stringToSign string - signature string -} - -// Sign requests with signature version 2. -// -// Will sign the requests with the service config's Credentials object -// Signing is skipped if the credentials is the credentials.AnonymousCredentials -// object. -func Sign(req *request.Request) { - // If the request does not need to be signed ignore the signing of the - // request if the AnonymousCredentials object is used. - if req.Config.Credentials == credentials.AnonymousCredentials { - return - } - - if req.HTTPRequest.Method != "POST" && req.HTTPRequest.Method != "GET" { - // The V2 signer only supports GET and POST - req.Error = errInvalidMethod - return - } - - v2 := signer{ - Request: req.HTTPRequest, - Time: req.Time, - Credentials: req.Config.Credentials, - Debug: req.Config.LogLevel.Value(), - Logger: req.Config.Logger, - } - - req.Error = v2.Sign() - - if req.Error != nil { - return - } - - if req.HTTPRequest.Method == "POST" { - // Set the body of the request based on the modified query parameters - req.SetStringBody(v2.Query.Encode()) - - // Now that the body has changed, remove any Content-Length header, - // because it will be incorrect - req.HTTPRequest.ContentLength = 0 - req.HTTPRequest.Header.Del("Content-Length") - } else { - req.HTTPRequest.URL.RawQuery = v2.Query.Encode() - } -} - -func (v2 *signer) Sign() error { - credValue, err := v2.Credentials.Get() - if err != nil { - return err - } - - if v2.Request.Method == "POST" { - // Parse the HTTP request to obtain the query parameters that will - // be used to build the string to sign. Note that because the HTTP - // request will need to be modified, the PostForm and Form properties - // are reset to nil after parsing. - v2.Request.ParseForm() - v2.Query = v2.Request.PostForm - v2.Request.PostForm = nil - v2.Request.Form = nil - } else { - v2.Query = v2.Request.URL.Query() - } - - // Set new query parameters - v2.Query.Set("AWSAccessKeyId", credValue.AccessKeyID) - v2.Query.Set("SignatureVersion", signatureVersion) - v2.Query.Set("SignatureMethod", signatureMethod) - v2.Query.Set("Timestamp", v2.Time.UTC().Format(timeFormat)) - if credValue.SessionToken != "" { - v2.Query.Set("SecurityToken", credValue.SessionToken) - } - - // in case this is a retry, ensure no signature present - v2.Query.Del("Signature") - - method := v2.Request.Method - host := v2.Request.URL.Host - path := v2.Request.URL.Path - if path == "" { - path = "/" - } - - // obtain all of the query keys and sort them - queryKeys := make([]string, 0, len(v2.Query)) - for key := range v2.Query { - queryKeys = append(queryKeys, key) - } - sort.Strings(queryKeys) - - // build URL-encoded query keys and values - queryKeysAndValues := make([]string, len(queryKeys)) - for i, key := range queryKeys { - k := strings.Replace(url.QueryEscape(key), "+", "%20", -1) - v := strings.Replace(url.QueryEscape(v2.Query.Get(key)), "+", "%20", -1) - queryKeysAndValues[i] = k + "=" + v - } - - // join into one query string - query := strings.Join(queryKeysAndValues, "&") - - // build the canonical string for the V2 signature - v2.stringToSign = strings.Join([]string{ - method, - host, - path, - query, - }, "\n") - - hash := hmac.New(sha256.New, []byte(credValue.SecretAccessKey)) - hash.Write([]byte(v2.stringToSign)) - v2.signature = base64.StdEncoding.EncodeToString(hash.Sum(nil)) - v2.Query.Set("Signature", v2.signature) - - if v2.Debug.Matches(aws.LogDebugWithSigning) { - v2.logSigningInfo() - } - - return nil -} - -const logSignInfoMsg = `DEBUG: Request Signature: ----[ STRING TO SIGN ]-------------------------------- -%s ----[ SIGNATURE ]------------------------------------- -%s ------------------------------------------------------` - -func (v2 *signer) logSigningInfo() { - msg := fmt.Sprintf(logSignInfoMsg, v2.stringToSign, v2.Query.Get("Signature")) - v2.Logger.Log(msg) -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/signer/v2/v2_test.go b/vendor/github.com/aws/aws-sdk-go/private/signer/v2/v2_test.go deleted file mode 100644 index c407416be..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/signer/v2/v2_test.go +++ /dev/null @@ -1,195 +0,0 @@ -package v2 - -import ( - "bytes" - "net/http" - "net/url" - "os" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/credentials" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/stretchr/testify/assert" -) - -type signerBuilder struct { - ServiceName string - Region string - SignTime time.Time - Query url.Values - Method string - SessionToken string -} - -func (sb signerBuilder) BuildSigner() signer { - endpoint := "https://" + sb.ServiceName + "." + sb.Region + ".amazonaws.com" - var req *http.Request - if sb.Method == "POST" { - body := []byte(sb.Query.Encode()) - reader := bytes.NewReader(body) - req, _ = http.NewRequest(sb.Method, endpoint, reader) - req.Header.Add("Content-Type", "application/x-www-form-urlencoded") - req.Header.Add("Content-Length", string(len(body))) - } else { - req, _ = http.NewRequest(sb.Method, endpoint, nil) - req.URL.RawQuery = sb.Query.Encode() - } - - sig := signer{ - Request: req, - Time: sb.SignTime, - Credentials: credentials.NewStaticCredentials( - "AKID", - "SECRET", - sb.SessionToken), - } - - if os.Getenv("DEBUG") != "" { - sig.Debug = aws.LogDebug - sig.Logger = aws.NewDefaultLogger() - } - - return sig -} - -func TestSignRequestWithAndWithoutSession(t *testing.T) { - assert := assert.New(t) - - // have to create more than once, so use a function - newQuery := func() url.Values { - query := make(url.Values) - query.Add("Action", "CreateDomain") - query.Add("DomainName", "TestDomain-1437033376") - query.Add("Version", "2009-04-15") - return query - } - - // create request without a SecurityToken (session) in the credentials - - query := newQuery() - timestamp := time.Date(2015, 7, 16, 7, 56, 16, 0, time.UTC) - builder := signerBuilder{ - Method: "POST", - ServiceName: "sdb", - Region: "ap-southeast-2", - SignTime: timestamp, - Query: query, - } - - signer := builder.BuildSigner() - - err := signer.Sign() - assert.NoError(err) - assert.Equal("tm4dX8Ks7pzFSVHz7qHdoJVXKRLuC4gWz9eti60d8ks=", signer.signature) - assert.Equal(8, len(signer.Query)) - assert.Equal("AKID", signer.Query.Get("AWSAccessKeyId")) - assert.Equal("2015-07-16T07:56:16Z", signer.Query.Get("Timestamp")) - assert.Equal("HmacSHA256", signer.Query.Get("SignatureMethod")) - assert.Equal("2", signer.Query.Get("SignatureVersion")) - assert.Equal("tm4dX8Ks7pzFSVHz7qHdoJVXKRLuC4gWz9eti60d8ks=", signer.Query.Get("Signature")) - assert.Equal("CreateDomain", signer.Query.Get("Action")) - assert.Equal("TestDomain-1437033376", signer.Query.Get("DomainName")) - assert.Equal("2009-04-15", signer.Query.Get("Version")) - - // should not have a SecurityToken parameter - _, ok := signer.Query["SecurityToken"] - assert.False(ok) - - // now sign again, this time with a security token (session) - - query = newQuery() - builder.SessionToken = "SESSION" - signer = builder.BuildSigner() - - err = signer.Sign() - assert.NoError(err) - assert.Equal("Ch6qv3rzXB1SLqY2vFhsgA1WQ9rnQIE2WJCigOvAJwI=", signer.signature) - assert.Equal(9, len(signer.Query)) // expect one more parameter - assert.Equal("Ch6qv3rzXB1SLqY2vFhsgA1WQ9rnQIE2WJCigOvAJwI=", signer.Query.Get("Signature")) - assert.Equal("SESSION", signer.Query.Get("SecurityToken")) -} - -func TestMoreComplexSignRequest(t *testing.T) { - assert := assert.New(t) - query := make(url.Values) - query.Add("Action", "PutAttributes") - query.Add("DomainName", "TestDomain-1437041569") - query.Add("Version", "2009-04-15") - query.Add("Attribute.2.Name", "Attr2") - query.Add("Attribute.2.Value", "Value2") - query.Add("Attribute.2.Replace", "true") - query.Add("Attribute.1.Name", "Attr1-%\\+ %") - query.Add("Attribute.1.Value", " \tValue1 +!@#$%^&*(){}[]\"';:?/.>,<\x12\x00") - query.Add("Attribute.1.Replace", "true") - query.Add("ItemName", "Item 1") - - timestamp := time.Date(2015, 7, 16, 10, 12, 51, 0, time.UTC) - builder := signerBuilder{ - Method: "POST", - ServiceName: "sdb", - Region: "ap-southeast-2", - SignTime: timestamp, - Query: query, - SessionToken: "SESSION", - } - - signer := builder.BuildSigner() - - err := signer.Sign() - assert.NoError(err) - assert.Equal("WNdE62UJKLKoA6XncVY/9RDbrKmcVMdQPQOTAs8SgwQ=", signer.signature) -} - -func TestGet(t *testing.T) { - assert := assert.New(t) - svc := awstesting.NewClient(&aws.Config{ - Credentials: credentials.NewStaticCredentials("AKID", "SECRET", "SESSION"), - Region: aws.String("ap-southeast-2"), - }) - r := svc.NewRequest( - &request.Operation{ - Name: "OpName", - HTTPMethod: "GET", - HTTPPath: "/", - }, - nil, - nil, - ) - - r.Build() - assert.Equal("GET", r.HTTPRequest.Method) - assert.Equal("", r.HTTPRequest.URL.Query().Get("Signature")) - - Sign(r) - assert.NoError(r.Error) - t.Logf("Signature: %s", r.HTTPRequest.URL.Query().Get("Signature")) - assert.NotEqual("", r.HTTPRequest.URL.Query().Get("Signature")) -} - -func TestAnonymousCredentials(t *testing.T) { - assert := assert.New(t) - svc := awstesting.NewClient(&aws.Config{ - Credentials: credentials.AnonymousCredentials, - Region: aws.String("ap-southeast-2"), - }) - r := svc.NewRequest( - &request.Operation{ - Name: "PutAttributes", - HTTPMethod: "POST", - HTTPPath: "/", - }, - nil, - nil, - ) - r.Build() - - Sign(r) - - req := r.HTTPRequest - req.ParseForm() - - assert.Empty(req.PostForm.Get("Signature")) -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/functional_test.go b/vendor/github.com/aws/aws-sdk-go/private/signer/v4/functional_test.go deleted file mode 100644 index e5f42e8ca..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/functional_test.go +++ /dev/null @@ -1,77 +0,0 @@ -package v4_test - -import ( - "net/http" - "net/url" - "testing" - "time" - - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/unit" - "github.com/aws/aws-sdk-go/service/s3" -) - -func TestPresignHandler(t *testing.T) { - svc := s3.New(unit.Session) - req, _ := svc.PutObjectRequest(&s3.PutObjectInput{ - Bucket: aws.String("bucket"), - Key: aws.String("key"), - ContentDisposition: aws.String("a+b c$d"), - ACL: aws.String("public-read"), - }) - req.Time = time.Unix(0, 0) - urlstr, err := req.Presign(5 * time.Minute) - - assert.NoError(t, err) - - expectedDate := "19700101T000000Z" - expectedHeaders := "content-disposition;host;x-amz-acl" - expectedSig := "b2754ba8ffeb74a40b94767017e24c4672107d6d5a894648d5d332ca61f5ffe4" - expectedCred := "AKID/19700101/mock-region/s3/aws4_request" - - u, _ := url.Parse(urlstr) - urlQ := u.Query() - assert.Equal(t, expectedSig, urlQ.Get("X-Amz-Signature")) - assert.Equal(t, expectedCred, urlQ.Get("X-Amz-Credential")) - assert.Equal(t, expectedHeaders, urlQ.Get("X-Amz-SignedHeaders")) - assert.Equal(t, expectedDate, urlQ.Get("X-Amz-Date")) - assert.Equal(t, "300", urlQ.Get("X-Amz-Expires")) - - assert.NotContains(t, urlstr, "+") // + encoded as %20 -} - -func TestPresignRequest(t *testing.T) { - svc := s3.New(unit.Session) - req, _ := svc.PutObjectRequest(&s3.PutObjectInput{ - Bucket: aws.String("bucket"), - Key: aws.String("key"), - ContentDisposition: aws.String("a+b c$d"), - ACL: aws.String("public-read"), - }) - req.Time = time.Unix(0, 0) - urlstr, headers, err := req.PresignRequest(5 * time.Minute) - - assert.NoError(t, err) - - expectedDate := "19700101T000000Z" - expectedHeaders := "content-disposition;host;x-amz-acl" - expectedSig := "b2754ba8ffeb74a40b94767017e24c4672107d6d5a894648d5d332ca61f5ffe4" - expectedCred := "AKID/19700101/mock-region/s3/aws4_request" - expectedHeaderMap := http.Header{ - "x-amz-acl": []string{"public-read"}, - "content-disposition": []string{"a+b c$d"}, - } - - u, _ := url.Parse(urlstr) - urlQ := u.Query() - assert.Equal(t, expectedSig, urlQ.Get("X-Amz-Signature")) - assert.Equal(t, expectedCred, urlQ.Get("X-Amz-Credential")) - assert.Equal(t, expectedHeaders, urlQ.Get("X-Amz-SignedHeaders")) - assert.Equal(t, expectedDate, urlQ.Get("X-Amz-Date")) - assert.Equal(t, expectedHeaderMap, headers) - assert.Equal(t, "300", urlQ.Get("X-Amz-Expires")) - - assert.NotContains(t, urlstr, "+") // + encoded as %20 -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/header_rules.go b/vendor/github.com/aws/aws-sdk-go/private/signer/v4/header_rules.go deleted file mode 100644 index 244c86da0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/header_rules.go +++ /dev/null @@ -1,82 +0,0 @@ -package v4 - -import ( - "net/http" - "strings" -) - -// validator houses a set of rule needed for validation of a -// string value -type rules []rule - -// rule interface allows for more flexible rules and just simply -// checks whether or not a value adheres to that rule -type rule interface { - IsValid(value string) bool -} - -// IsValid will iterate through all rules and see if any rules -// apply to the value and supports nested rules -func (r rules) IsValid(value string) bool { - for _, rule := range r { - if rule.IsValid(value) { - return true - } - } - return false -} - -// mapRule generic rule for maps -type mapRule map[string]struct{} - -// IsValid for the map rule satisfies whether it exists in the map -func (m mapRule) IsValid(value string) bool { - _, ok := m[value] - return ok -} - -// whitelist is a generic rule for whitelisting -type whitelist struct { - rule -} - -// IsValid for whitelist checks if the value is within the whitelist -func (w whitelist) IsValid(value string) bool { - return w.rule.IsValid(value) -} - -// blacklist is a generic rule for blacklisting -type blacklist struct { - rule -} - -// IsValid for whitelist checks if the value is within the whitelist -func (b blacklist) IsValid(value string) bool { - return !b.rule.IsValid(value) -} - -type patterns []string - -// IsValid for patterns checks each pattern and returns if a match has -// been found -func (p patterns) IsValid(value string) bool { - for _, pattern := range p { - if strings.HasPrefix(http.CanonicalHeaderKey(value), pattern) { - return true - } - } - return false -} - -// inclusiveRules rules allow for rules to depend on one another -type inclusiveRules []rule - -// IsValid will return true if all rules are true -func (r inclusiveRules) IsValid(value string) bool { - for _, rule := range r { - if !rule.IsValid(value) { - return false - } - } - return true -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/header_rules_test.go b/vendor/github.com/aws/aws-sdk-go/private/signer/v4/header_rules_test.go deleted file mode 100644 index 7dfddc87e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/signer/v4/header_rules_test.go +++ /dev/null @@ -1,57 +0,0 @@ -package v4 - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestRuleCheckWhitelist(t *testing.T) { - w := whitelist{ - mapRule{ - "Cache-Control": struct{}{}, - }, - } - - assert.True(t, w.IsValid("Cache-Control")) - assert.False(t, w.IsValid("Cache-")) -} - -func TestRuleCheckBlacklist(t *testing.T) { - b := blacklist{ - mapRule{ - "Cache-Control": struct{}{}, - }, - } - - assert.False(t, b.IsValid("Cache-Control")) - assert.True(t, b.IsValid("Cache-")) -} - -func TestRuleCheckPattern(t *testing.T) { - p := patterns{"X-Amz-Meta-"} - - assert.True(t, p.IsValid("X-Amz-Meta-")) - assert.True(t, p.IsValid("X-Amz-Meta-Star")) - assert.False(t, p.IsValid("Cache-")) -} - -func TestRuleComplexWhitelist(t *testing.T) { - w := rules{ - whitelist{ - mapRule{ - "Cache-Control": struct{}{}, - }, - }, - patterns{"X-Amz-Meta-"}, - } - - r := rules{ - inclusiveRules{patterns{"X-Amz-"}, blacklist{w}}, - } - - assert.True(t, r.IsValid("X-Amz-Blah")) - assert.False(t, r.IsValid("X-Amz-Meta-")) - assert.False(t, r.IsValid("X-Amz-Meta-Star")) - assert.False(t, r.IsValid("Cache-Control")) -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/waiter/waiter.go b/vendor/github.com/aws/aws-sdk-go/private/waiter/waiter.go deleted file mode 100644 index b51e9449c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/waiter/waiter.go +++ /dev/null @@ -1,134 +0,0 @@ -package waiter - -import ( - "fmt" - "reflect" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" -) - -// A Config provides a collection of configuration values to setup a generated -// waiter code with. -type Config struct { - Name string - Delay int - MaxAttempts int - Operation string - Acceptors []WaitAcceptor -} - -// A WaitAcceptor provides the information needed to wait for an API operation -// to complete. -type WaitAcceptor struct { - Expected interface{} - Matcher string - State string - Argument string -} - -// A Waiter provides waiting for an operation to complete. -type Waiter struct { - Config - Client interface{} - Input interface{} -} - -// Wait waits for an operation to complete, expire max attempts, or fail. Error -// is returned if the operation fails. -func (w *Waiter) Wait() error { - client := reflect.ValueOf(w.Client) - in := reflect.ValueOf(w.Input) - method := client.MethodByName(w.Config.Operation + "Request") - - for i := 0; i < w.MaxAttempts; i++ { - res := method.Call([]reflect.Value{in}) - req := res[0].Interface().(*request.Request) - req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Waiter")) - - err := req.Send() - for _, a := range w.Acceptors { - result := false - var vals []interface{} - switch a.Matcher { - case "pathAll", "path": - // Require all matches to be equal for result to match - vals, _ = awsutil.ValuesAtPath(req.Data, a.Argument) - if len(vals) == 0 { - break - } - result = true - for _, val := range vals { - if !awsutil.DeepEqual(val, a.Expected) { - result = false - break - } - } - case "pathAny": - // Only a single match needs to equal for the result to match - vals, _ = awsutil.ValuesAtPath(req.Data, a.Argument) - for _, val := range vals { - if awsutil.DeepEqual(val, a.Expected) { - result = true - break - } - } - case "status": - s := a.Expected.(int) - result = s == req.HTTPResponse.StatusCode - case "error": - if aerr, ok := err.(awserr.Error); ok { - result = aerr.Code() == a.Expected.(string) - } - case "pathList": - // ignored matcher - default: - logf(client, "WARNING: Waiter for %s encountered unexpected matcher: %s", - w.Config.Operation, a.Matcher) - } - - if !result { - // If there was no matching result found there is nothing more to do - // for this response, retry the request. - continue - } - - switch a.State { - case "success": - // waiter completed - return nil - case "failure": - // Waiter failure state triggered - return awserr.New("ResourceNotReady", - fmt.Sprintf("failed waiting for successful resource state"), err) - case "retry": - // clear the error and retry the operation - err = nil - default: - logf(client, "WARNING: Waiter for %s encountered unexpected state: %s", - w.Config.Operation, a.State) - } - } - if err != nil { - return err - } - - time.Sleep(time.Second * time.Duration(w.Delay)) - } - - return awserr.New("ResourceNotReady", - fmt.Sprintf("exceeded %d wait attempts", w.MaxAttempts), nil) -} - -func logf(client reflect.Value, msg string, args ...interface{}) { - cfgVal := client.FieldByName("Config") - if !cfgVal.IsValid() { - return - } - if cfg, ok := cfgVal.Interface().(*aws.Config); ok && cfg.Logger != nil { - cfg.Logger.Log(fmt.Sprintf(msg, args...)) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/private/waiter/waiter_test.go b/vendor/github.com/aws/aws-sdk-go/private/waiter/waiter_test.go deleted file mode 100644 index 28fac2595..000000000 --- a/vendor/github.com/aws/aws-sdk-go/private/waiter/waiter_test.go +++ /dev/null @@ -1,401 +0,0 @@ -package waiter_test - -import ( - "bytes" - "io/ioutil" - "net/http" - "testing" - - "github.com/stretchr/testify/assert" - - "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/awstesting" - "github.com/aws/aws-sdk-go/private/waiter" -) - -type mockClient struct { - *client.Client -} -type MockInput struct{} -type MockOutput struct { - States []*MockState -} -type MockState struct { - State *string -} - -func (c *mockClient) MockRequest(input *MockInput) (*request.Request, *MockOutput) { - op := &request.Operation{ - Name: "Mock", - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &MockInput{} - } - - output := &MockOutput{} - req := c.NewRequest(op, input, output) - req.Data = output - return req, output -} - -func TestWaiterPathAll(t *testing.T) { - svc := &mockClient{Client: awstesting.NewClient(&aws.Config{ - Region: aws.String("mock-region"), - })} - svc.Handlers.Send.Clear() // mock sending - svc.Handlers.Unmarshal.Clear() - svc.Handlers.UnmarshalMeta.Clear() - svc.Handlers.ValidateResponse.Clear() - - reqNum := 0 - resps := []*MockOutput{ - { // Request 1 - States: []*MockState{ - {State: aws.String("pending")}, - {State: aws.String("pending")}, - }, - }, - { // Request 2 - States: []*MockState{ - {State: aws.String("running")}, - {State: aws.String("pending")}, - }, - }, - { // Request 3 - States: []*MockState{ - {State: aws.String("running")}, - {State: aws.String("running")}, - }, - }, - } - - numBuiltReq := 0 - svc.Handlers.Build.PushBack(func(r *request.Request) { - numBuiltReq++ - }) - svc.Handlers.Unmarshal.PushBack(func(r *request.Request) { - if reqNum >= len(resps) { - assert.Fail(t, "too many polling requests made") - return - } - r.Data = resps[reqNum] - reqNum++ - }) - - waiterCfg := waiter.Config{ - Operation: "Mock", - Delay: 0, - MaxAttempts: 10, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "States[].State", - Expected: "running", - }, - }, - } - w := waiter.Waiter{ - Client: svc, - Input: &MockInput{}, - Config: waiterCfg, - } - - err := w.Wait() - assert.NoError(t, err) - assert.Equal(t, 3, numBuiltReq) - assert.Equal(t, 3, reqNum) -} - -func TestWaiterPath(t *testing.T) { - svc := &mockClient{Client: awstesting.NewClient(&aws.Config{ - Region: aws.String("mock-region"), - })} - svc.Handlers.Send.Clear() // mock sending - svc.Handlers.Unmarshal.Clear() - svc.Handlers.UnmarshalMeta.Clear() - svc.Handlers.ValidateResponse.Clear() - - reqNum := 0 - resps := []*MockOutput{ - { // Request 1 - States: []*MockState{ - {State: aws.String("pending")}, - {State: aws.String("pending")}, - }, - }, - { // Request 2 - States: []*MockState{ - {State: aws.String("running")}, - {State: aws.String("pending")}, - }, - }, - { // Request 3 - States: []*MockState{ - {State: aws.String("running")}, - {State: aws.String("running")}, - }, - }, - } - - numBuiltReq := 0 - svc.Handlers.Build.PushBack(func(r *request.Request) { - numBuiltReq++ - }) - svc.Handlers.Unmarshal.PushBack(func(r *request.Request) { - if reqNum >= len(resps) { - assert.Fail(t, "too many polling requests made") - return - } - r.Data = resps[reqNum] - reqNum++ - }) - - waiterCfg := waiter.Config{ - Operation: "Mock", - Delay: 0, - MaxAttempts: 10, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "States[].State", - Expected: "running", - }, - }, - } - w := waiter.Waiter{ - Client: svc, - Input: &MockInput{}, - Config: waiterCfg, - } - - err := w.Wait() - assert.NoError(t, err) - assert.Equal(t, 3, numBuiltReq) - assert.Equal(t, 3, reqNum) -} - -func TestWaiterFailure(t *testing.T) { - svc := &mockClient{Client: awstesting.NewClient(&aws.Config{ - Region: aws.String("mock-region"), - })} - svc.Handlers.Send.Clear() // mock sending - svc.Handlers.Unmarshal.Clear() - svc.Handlers.UnmarshalMeta.Clear() - svc.Handlers.ValidateResponse.Clear() - - reqNum := 0 - resps := []*MockOutput{ - { // Request 1 - States: []*MockState{ - {State: aws.String("pending")}, - {State: aws.String("pending")}, - }, - }, - { // Request 2 - States: []*MockState{ - {State: aws.String("running")}, - {State: aws.String("pending")}, - }, - }, - { // Request 3 - States: []*MockState{ - {State: aws.String("running")}, - {State: aws.String("stopping")}, - }, - }, - } - - numBuiltReq := 0 - svc.Handlers.Build.PushBack(func(r *request.Request) { - numBuiltReq++ - }) - svc.Handlers.Unmarshal.PushBack(func(r *request.Request) { - if reqNum >= len(resps) { - assert.Fail(t, "too many polling requests made") - return - } - r.Data = resps[reqNum] - reqNum++ - }) - - waiterCfg := waiter.Config{ - Operation: "Mock", - Delay: 0, - MaxAttempts: 10, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "States[].State", - Expected: "running", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "States[].State", - Expected: "stopping", - }, - }, - } - w := waiter.Waiter{ - Client: svc, - Input: &MockInput{}, - Config: waiterCfg, - } - - err := w.Wait().(awserr.Error) - assert.Error(t, err) - assert.Equal(t, "ResourceNotReady", err.Code()) - assert.Equal(t, "failed waiting for successful resource state", err.Message()) - assert.Equal(t, 3, numBuiltReq) - assert.Equal(t, 3, reqNum) -} - -func TestWaiterError(t *testing.T) { - svc := &mockClient{Client: awstesting.NewClient(&aws.Config{ - Region: aws.String("mock-region"), - })} - svc.Handlers.Send.Clear() // mock sending - svc.Handlers.Unmarshal.Clear() - svc.Handlers.UnmarshalMeta.Clear() - svc.Handlers.UnmarshalError.Clear() - svc.Handlers.ValidateResponse.Clear() - - reqNum := 0 - resps := []*MockOutput{ - { // Request 1 - States: []*MockState{ - {State: aws.String("pending")}, - {State: aws.String("pending")}, - }, - }, - { // Request 2, error case - }, - { // Request 3 - States: []*MockState{ - {State: aws.String("running")}, - {State: aws.String("running")}, - }, - }, - } - - numBuiltReq := 0 - svc.Handlers.Build.PushBack(func(r *request.Request) { - numBuiltReq++ - }) - svc.Handlers.Send.PushBack(func(r *request.Request) { - code := 200 - if reqNum == 1 { - code = 400 - } - r.HTTPResponse = &http.Response{ - StatusCode: code, - Status: http.StatusText(code), - Body: ioutil.NopCloser(bytes.NewReader([]byte{})), - } - }) - svc.Handlers.Unmarshal.PushBack(func(r *request.Request) { - if reqNum >= len(resps) { - assert.Fail(t, "too many polling requests made") - return - } - r.Data = resps[reqNum] - reqNum++ - }) - svc.Handlers.UnmarshalMeta.PushBack(func(r *request.Request) { - if reqNum == 1 { - r.Error = awserr.New("MockException", "mock exception message", nil) - // If there was an error unmarshal error will be called instead of unmarshal - // need to increment count here also - reqNum++ - } - }) - - waiterCfg := waiter.Config{ - Operation: "Mock", - Delay: 0, - MaxAttempts: 10, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "States[].State", - Expected: "running", - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "MockException", - }, - }, - } - w := waiter.Waiter{ - Client: svc, - Input: &MockInput{}, - Config: waiterCfg, - } - - err := w.Wait() - assert.NoError(t, err) - assert.Equal(t, 3, numBuiltReq) - assert.Equal(t, 3, reqNum) -} - -func TestWaiterStatus(t *testing.T) { - svc := &mockClient{Client: awstesting.NewClient(&aws.Config{ - Region: aws.String("mock-region"), - })} - svc.Handlers.Send.Clear() // mock sending - svc.Handlers.Unmarshal.Clear() - svc.Handlers.UnmarshalMeta.Clear() - svc.Handlers.ValidateResponse.Clear() - - reqNum := 0 - svc.Handlers.Build.PushBack(func(r *request.Request) { - reqNum++ - }) - svc.Handlers.Send.PushBack(func(r *request.Request) { - code := 200 - if reqNum == 3 { - code = 404 - r.Error = awserr.New("NotFound", "Not Found", nil) - } - r.HTTPResponse = &http.Response{ - StatusCode: code, - Status: http.StatusText(code), - Body: ioutil.NopCloser(bytes.NewReader([]byte{})), - } - }) - - waiterCfg := waiter.Config{ - Operation: "Mock", - Delay: 0, - MaxAttempts: 10, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 404, - }, - }, - } - w := waiter.Waiter{ - Client: svc, - Input: &MockInput{}, - Config: waiterCfg, - } - - err := w.Wait() - assert.NoError(t, err) - assert.Equal(t, 3, reqNum) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go deleted file mode 100644 index bd4a5c0a4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/acmiface/interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package acmiface provides an interface for the AWS Certificate Manager. -package acmiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/acm" -) - -// ACMAPI is the interface type for acm.ACM. -type ACMAPI interface { - AddTagsToCertificateRequest(*acm.AddTagsToCertificateInput) (*request.Request, *acm.AddTagsToCertificateOutput) - - AddTagsToCertificate(*acm.AddTagsToCertificateInput) (*acm.AddTagsToCertificateOutput, error) - - DeleteCertificateRequest(*acm.DeleteCertificateInput) (*request.Request, *acm.DeleteCertificateOutput) - - DeleteCertificate(*acm.DeleteCertificateInput) (*acm.DeleteCertificateOutput, error) - - DescribeCertificateRequest(*acm.DescribeCertificateInput) (*request.Request, *acm.DescribeCertificateOutput) - - DescribeCertificate(*acm.DescribeCertificateInput) (*acm.DescribeCertificateOutput, error) - - GetCertificateRequest(*acm.GetCertificateInput) (*request.Request, *acm.GetCertificateOutput) - - GetCertificate(*acm.GetCertificateInput) (*acm.GetCertificateOutput, error) - - ListCertificatesRequest(*acm.ListCertificatesInput) (*request.Request, *acm.ListCertificatesOutput) - - ListCertificates(*acm.ListCertificatesInput) (*acm.ListCertificatesOutput, error) - - ListCertificatesPages(*acm.ListCertificatesInput, func(*acm.ListCertificatesOutput, bool) bool) error - - ListTagsForCertificateRequest(*acm.ListTagsForCertificateInput) (*request.Request, *acm.ListTagsForCertificateOutput) - - ListTagsForCertificate(*acm.ListTagsForCertificateInput) (*acm.ListTagsForCertificateOutput, error) - - RemoveTagsFromCertificateRequest(*acm.RemoveTagsFromCertificateInput) (*request.Request, *acm.RemoveTagsFromCertificateOutput) - - RemoveTagsFromCertificate(*acm.RemoveTagsFromCertificateInput) (*acm.RemoveTagsFromCertificateOutput, error) - - RequestCertificateRequest(*acm.RequestCertificateInput) (*request.Request, *acm.RequestCertificateOutput) - - RequestCertificate(*acm.RequestCertificateInput) (*acm.RequestCertificateOutput, error) - - ResendValidationEmailRequest(*acm.ResendValidationEmailInput) (*request.Request, *acm.ResendValidationEmailOutput) - - ResendValidationEmail(*acm.ResendValidationEmailInput) (*acm.ResendValidationEmailOutput, error) -} - -var _ ACMAPI = (*acm.ACM)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go b/vendor/github.com/aws/aws-sdk-go/service/acm/api.go deleted file mode 100644 index 21df8a898..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/api.go +++ /dev/null @@ -1,1295 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package acm provides a client for AWS Certificate Manager. -package acm - -import ( - "fmt" - "time" - - "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/private/protocol/jsonrpc" -) - -const opAddTagsToCertificate = "AddTagsToCertificate" - -// AddTagsToCertificateRequest generates a request for the AddTagsToCertificate operation. -func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req *request.Request, output *AddTagsToCertificateOutput) { - op := &request.Operation{ - Name: opAddTagsToCertificate, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AddTagsToCertificateInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddTagsToCertificateOutput{} - req.Data = output - return -} - -// Adds one or more tags to an ACM Certificate. Tags are labels that you can -// use to identify and organize your AWS resources. Each tag consists of a key -// and an optional value. You specify the certificate on input by its Amazon -// Resource Name (ARN). You specify the tag by using a key-value pair. -// -// You can apply a tag to just one certificate if you want to identify a specific -// characteristic of that certificate, or you can apply the same tag to multiple -// certificates if you want to filter for a common relationship among those -// certificates. Similarly, you can apply the same tag to multiple resources -// if you want to specify a relationship among those resources. For example, -// you can add the same tag to an ACM Certificate and an Elastic Load Balancing -// load balancer to indicate that they are both used by the same website. For -// more information, see Tagging ACM Certificates (http://docs.aws.amazon.com/acm/latest/userguide/tags.html). -// -// To remove one or more tags, use the RemoveTagsFromCertificate action. To -// view all of the tags that have been applied to the certificate, use the ListTagsForCertificate -// action. -func (c *ACM) AddTagsToCertificate(input *AddTagsToCertificateInput) (*AddTagsToCertificateOutput, error) { - req, out := c.AddTagsToCertificateRequest(input) - err := req.Send() - return out, err -} - -const opDeleteCertificate = "DeleteCertificate" - -// DeleteCertificateRequest generates a request for the DeleteCertificate operation. -func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *request.Request, output *DeleteCertificateOutput) { - op := &request.Operation{ - Name: opDeleteCertificate, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteCertificateInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteCertificateOutput{} - req.Data = output - return -} - -// Deletes an ACM Certificate and its associated private key. If this action -// succeeds, the certificate no longer appears in the list of ACM Certificates -// that can be displayed by calling the ListCertificates action or be retrieved -// by calling the GetCertificate action. The certificate will not be available -// for use by other AWS services. -// -// You cannot delete an ACM Certificate that is being used by another AWS service. -// To delete a certificate that is in use, the certificate association must -// first be removed. -func (c *ACM) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { - req, out := c.DeleteCertificateRequest(input) - err := req.Send() - return out, err -} - -const opDescribeCertificate = "DescribeCertificate" - -// DescribeCertificateRequest generates a request for the DescribeCertificate operation. -func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req *request.Request, output *DescribeCertificateOutput) { - op := &request.Operation{ - Name: opDescribeCertificate, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeCertificateOutput{} - req.Data = output - return -} - -// Returns a list of the fields contained in the specified ACM Certificate. -// For example, this action returns the certificate status, a flag that indicates -// whether the certificate is associated with any other AWS service, and the -// date at which the certificate request was created. You specify the ACM Certificate -// on input by its Amazon Resource Name (ARN). -func (c *ACM) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) { - req, out := c.DescribeCertificateRequest(input) - err := req.Send() - return out, err -} - -const opGetCertificate = "GetCertificate" - -// GetCertificateRequest generates a request for the GetCertificate operation. -func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Request, output *GetCertificateOutput) { - op := &request.Operation{ - Name: opGetCertificate, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &GetCertificateOutput{} - req.Data = output - return -} - -// Retrieves an ACM Certificate and certificate chain for the certificate specified -// by an ARN. The chain is an ordered list of certificates that contains the -// root certificate, intermediate certificates of subordinate CAs, and the ACM -// Certificate. The certificate and certificate chain are base64 encoded. If -// you want to decode the certificate chain to see the individual certificate -// fields, you can use OpenSSL. -// -// Currently, ACM Certificates can be used only with Elastic Load Balancing -// and Amazon CloudFront. -func (c *ACM) GetCertificate(input *GetCertificateInput) (*GetCertificateOutput, error) { - req, out := c.GetCertificateRequest(input) - err := req.Send() - return out, err -} - -const opListCertificates = "ListCertificates" - -// ListCertificatesRequest generates a request for the ListCertificates operation. -func (c *ACM) ListCertificatesRequest(input *ListCertificatesInput) (req *request.Request, output *ListCertificatesOutput) { - op := &request.Operation{ - Name: opListCertificates, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxItems", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListCertificatesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListCertificatesOutput{} - req.Data = output - return -} - -// Retrieves a list of the ACM Certificate ARNs, and the domain name for each -// ARN, owned by the calling account. You can filter the list based on the CertificateStatuses -// parameter, and you can display up to MaxItems certificates at one time. If -// you have more than MaxItems certificates, use the NextToken marker from the -// response object in your next call to the ListCertificates action to retrieve -// the next set of certificate ARNs. -func (c *ACM) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) { - req, out := c.ListCertificatesRequest(input) - err := req.Send() - return out, err -} - -func (c *ACM) ListCertificatesPages(input *ListCertificatesInput, fn func(p *ListCertificatesOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListCertificatesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListCertificatesOutput), lastPage) - }) -} - -const opListTagsForCertificate = "ListTagsForCertificate" - -// ListTagsForCertificateRequest generates a request for the ListTagsForCertificate operation. -func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) (req *request.Request, output *ListTagsForCertificateOutput) { - op := &request.Operation{ - Name: opListTagsForCertificate, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListTagsForCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTagsForCertificateOutput{} - req.Data = output - return -} - -// Lists the tags that have been applied to the ACM Certificate. Use the certificate -// ARN to specify the certificate. To add a tag to an ACM Certificate, use the -// AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate -// action. -func (c *ACM) ListTagsForCertificate(input *ListTagsForCertificateInput) (*ListTagsForCertificateOutput, error) { - req, out := c.ListTagsForCertificateRequest(input) - err := req.Send() - return out, err -} - -const opRemoveTagsFromCertificate = "RemoveTagsFromCertificate" - -// RemoveTagsFromCertificateRequest generates a request for the RemoveTagsFromCertificate operation. -func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateInput) (req *request.Request, output *RemoveTagsFromCertificateOutput) { - op := &request.Operation{ - Name: opRemoveTagsFromCertificate, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RemoveTagsFromCertificateInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveTagsFromCertificateOutput{} - req.Data = output - return -} - -// Remove one or more tags from an ACM Certificate. A tag consists of a key-value -// pair. If you do not specify the value portion of the tag when calling this -// function, the tag will be removed regardless of value. If you specify a value, -// the tag is removed only if it is associated with the specified value. -// -// To add tags to a certificate, use the AddTagsToCertificate action. To view -// all of the tags that have been applied to a specific ACM Certificate, use -// the ListTagsForCertificate action. -func (c *ACM) RemoveTagsFromCertificate(input *RemoveTagsFromCertificateInput) (*RemoveTagsFromCertificateOutput, error) { - req, out := c.RemoveTagsFromCertificateRequest(input) - err := req.Send() - return out, err -} - -const opRequestCertificate = "RequestCertificate" - -// RequestCertificateRequest generates a request for the RequestCertificate operation. -func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *request.Request, output *RequestCertificateOutput) { - op := &request.Operation{ - Name: opRequestCertificate, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RequestCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &RequestCertificateOutput{} - req.Data = output - return -} - -// Requests an ACM Certificate for use with other AWS services. To request an -// ACM Certificate, you must specify the fully qualified domain name (FQDN) -// for your site. You can also specify additional FQDNs if users can reach your -// site by using other names. For each domain name you specify, email is sent -// to the domain owner to request approval to issue the certificate. After receiving -// approval from the domain owner, the ACM Certificate is issued. For more information, -// see the AWS Certificate Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/overview.html). -func (c *ACM) RequestCertificate(input *RequestCertificateInput) (*RequestCertificateOutput, error) { - req, out := c.RequestCertificateRequest(input) - err := req.Send() - return out, err -} - -const opResendValidationEmail = "ResendValidationEmail" - -// ResendValidationEmailRequest generates a request for the ResendValidationEmail operation. -func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (req *request.Request, output *ResendValidationEmailOutput) { - op := &request.Operation{ - Name: opResendValidationEmail, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ResendValidationEmailInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ResendValidationEmailOutput{} - req.Data = output - return -} - -// Resends the email that requests domain ownership validation. The domain owner -// or an authorized representative must approve the ACM Certificate before it -// can be issued. The certificate can be approved by clicking a link in the -// mail to navigate to the Amazon certificate approval website and then clicking -// I Approve. However, the validation email can be blocked by spam filters. -// Therefore, if you do not receive the original mail, you can request that -// the mail be resent within 72 hours of requesting the ACM Certificate. If -// more than 72 hours have elapsed since your original request or since your -// last attempt to resend validation mail, you must request a new certificate. -func (c *ACM) ResendValidationEmail(input *ResendValidationEmailInput) (*ResendValidationEmailOutput, error) { - req, out := c.ResendValidationEmailRequest(input) - err := req.Send() - return out, err -} - -type AddTagsToCertificateInput struct { - _ struct{} `type:"structure"` - - // String that contains the ARN of the ACM Certificate to which the tag is to - // be applied. This must be of the form: - // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). - CertificateArn *string `min:"20" type:"string" required:"true"` - - // The key-value pair that defines the tag. The tag value is optional. - Tags []*Tag `min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s AddTagsToCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsToCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToCertificateInput"} - if s.CertificateArn == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateArn")) - } - if s.CertificateArn != nil && len(*s.CertificateArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type AddTagsToCertificateOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AddTagsToCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsToCertificateOutput) GoString() string { - return s.String() -} - -// This structure is returned in the response object of the DescribeCertificate -// action. -type CertificateDetail struct { - _ struct{} `type:"structure"` - - // Amazon Resource Name (ARN) of the certificate. This is of the form: - // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). - CertificateArn *string `min:"20" type:"string"` - - // Time at which the certificate was requested. - CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Fully qualified domain name (FQDN), such as www.example.com or example.com, - // for the certificate. - DomainName *string `min:"1" type:"string"` - - // References a DomainValidation structure that contains the domain name in - // the certificate and the email address that can be used for validation. - DomainValidationOptions []*DomainValidation `min:"1" type:"list"` - - // List that identifies ARNs that are using the certificate. A single ACM Certificate - // can be used by multiple AWS resources. - InUseBy []*string `type:"list"` - - // Time at which the certificate was issued. - IssuedAt *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The X.500 distinguished name of the CA that issued and signed the certificate. - Issuer *string `type:"string"` - - // Asymmetric algorithm used to generate the public and private key pair. Currently - // the only supported value is RSA_2048. - KeyAlgorithm *string `type:"string" enum:"KeyAlgorithm"` - - // Time after which the certificate is not valid. - NotAfter *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Time before which the certificate is not valid. - NotBefore *time.Time `type:"timestamp" timestampFormat:"unix"` - - // A RevocationReason enumeration value that indicates why the certificate was - // revoked. This value exists only if the certificate has been revoked. This - // can be one of the following vales: UNSPECIFIED - // - // KEY_COMPROMISE - // - // CA_COMPROMISE - // - // AFFILIATION_CHANGED - // - // SUPERCEDED - // - // CESSATION_OF_OPERATION - // - // CERTIFICATE_HOLD - // - // REMOVE_FROM_CRL - // - // PRIVILEGE_WITHDRAWN - // - // A_A_COMPROMISE - RevocationReason *string `type:"string" enum:"RevocationReason"` - - // The time, if any, at which the certificate was revoked. This value exists - // only if the certificate has been revoked. - RevokedAt *time.Time `type:"timestamp" timestampFormat:"unix"` - - // String that contains the serial number of the certificate. - Serial *string `type:"string"` - - // Algorithm used to generate a signature. Currently the only supported value - // is SHA256WITHRSA. - SignatureAlgorithm *string `type:"string"` - - // A CertificateStatus enumeration value that can contain one of the following: - // PENDING_VALIDATION - // - // ISSUED - // - // INACTIVE - // - // EXPIRED - // - // REVOKED - // - // FAILED - // - // VALIDATION_TIMED_OUT - Status *string `type:"string" enum:"CertificateStatus"` - - // The X.500 distinguished name of the entity associated with the public key - // contained in the certificate. - Subject *string `type:"string"` - - // One or more domain names (subject alternative names) included in the certificate - // request. After the certificate is issued, this list includes the domain names - // bound to the public key contained in the certificate. The subject alternative - // names include the canonical domain name (CN) of the certificate and additional - // domain names that can be used to connect to the website. - SubjectAlternativeNames []*string `min:"1" type:"list"` -} - -// String returns the string representation -func (s CertificateDetail) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CertificateDetail) GoString() string { - return s.String() -} - -// This structure is returned in the response object of ListCertificates action. -type CertificateSummary struct { - _ struct{} `type:"structure"` - - // Amazon Resource Name (ARN) of the certificate. This is of the form: - // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). - CertificateArn *string `min:"20" type:"string"` - - // Fully qualified domain name (FQDN), such as www.example.com or example.com, - // for the certificate. - DomainName *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s CertificateSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CertificateSummary) GoString() string { - return s.String() -} - -type DeleteCertificateInput struct { - _ struct{} `type:"structure"` - - // String that contains the ARN of the ACM Certificate to be deleted. This must - // be of the form: - // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). - CertificateArn *string `min:"20" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCertificateInput"} - if s.CertificateArn == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateArn")) - } - if s.CertificateArn != nil && len(*s.CertificateArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteCertificateOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteCertificateOutput) GoString() string { - return s.String() -} - -type DescribeCertificateInput struct { - _ struct{} `type:"structure"` - - // String that contains an ACM Certificate ARN. The ARN must be of the form: - // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). - CertificateArn *string `min:"20" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeCertificateInput"} - if s.CertificateArn == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateArn")) - } - if s.CertificateArn != nil && len(*s.CertificateArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeCertificateOutput struct { - _ struct{} `type:"structure"` - - // Contains a CertificateDetail structure that lists the fields of an ACM Certificate. - Certificate *CertificateDetail `type:"structure"` -} - -// String returns the string representation -func (s DescribeCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeCertificateOutput) GoString() string { - return s.String() -} - -// Structure that contains the domain name, the base validation domain to which -// validation email is sent, and the email addresses used to validate the domain -// identity. -type DomainValidation struct { - _ struct{} `type:"structure"` - - // Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com - DomainName *string `min:"1" type:"string" required:"true"` - - // The base validation domain that acts as the suffix of the email addresses - // that are used to send the emails. - ValidationDomain *string `min:"1" type:"string"` - - // A list of contact address for the domain registrant. - ValidationEmails []*string `type:"list"` -} - -// String returns the string representation -func (s DomainValidation) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DomainValidation) GoString() string { - return s.String() -} - -// This structure is used in the request object of the RequestCertificate action. -type DomainValidationOption struct { - _ struct{} `type:"structure"` - - // Fully Qualified Domain Name (FQDN) of the certificate being requested. - DomainName *string `min:"1" type:"string" required:"true"` - - // The domain to which validation email is sent. This is the base validation - // domain that will act as the suffix of the email addresses. This must be the - // same as the DomainName value or a superdomain of the DomainName value. For - // example, if you requested a certificate for site.subdomain.example.com and - // specify a ValidationDomain of subdomain.example.com, ACM sends email to the - // domain registrant, technical contact, and administrative contact in WHOIS - // for the base domain and the following five addresses: admin@subdomain.example.com - // - // administrator@subdomain.example.com - // - // hostmaster@subdomain.example.com - // - // postmaster@subdomain.example.com - // - // webmaster@subdomain.example.com - ValidationDomain *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DomainValidationOption) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DomainValidationOption) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DomainValidationOption) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DomainValidationOption"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) - } - if s.ValidationDomain == nil { - invalidParams.Add(request.NewErrParamRequired("ValidationDomain")) - } - if s.ValidationDomain != nil && len(*s.ValidationDomain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ValidationDomain", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetCertificateInput struct { - _ struct{} `type:"structure"` - - // String that contains a certificate ARN in the following format: - // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). - CertificateArn *string `min:"20" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCertificateInput"} - if s.CertificateArn == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateArn")) - } - if s.CertificateArn != nil && len(*s.CertificateArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetCertificateOutput struct { - _ struct{} `type:"structure"` - - // String that contains the ACM Certificate represented by the ARN specified - // at input. - Certificate *string `min:"1" type:"string"` - - // The certificate chain that contains the root certificate issued by the certificate - // authority (CA). - CertificateChain *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s GetCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetCertificateOutput) GoString() string { - return s.String() -} - -type ListCertificatesInput struct { - _ struct{} `type:"structure"` - - // Identifies the statuses of the ACM Certificates for which you want to retrieve - // the ARNs. This can be one or more of the following values: PENDING_VALIDATION - // - // ISSUED - // - // INACTIVE - // - // EXPIRED - // - // VALIDATION_TIMED_OUT - // - // REVOKED - // - // FAILED - CertificateStatuses []*string `type:"list"` - - // Specify this parameter when paginating results to indicate the maximum number - // of ACM Certificates that you want to display for each response. If there - // are additional certificates beyond the maximum you specify, use the NextToken - // value in your next call to the ListCertificates action. - MaxItems *int64 `min:"1" type:"integer"` - - // String that contains an opaque marker of the next ACM Certificate ARN to - // be displayed. Use this parameter when paginating results, and only in a subsequent - // request after you've received a response where the results have been truncated. - // Set it to an empty string the first time you call this action, and set it - // to the value of the NextToken element you receive in the response object - // for subsequent calls. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListCertificatesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListCertificatesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListCertificatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListCertificatesInput"} - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListCertificatesOutput struct { - _ struct{} `type:"structure"` - - // A list of the certificate ARNs. - CertificateSummaryList []*CertificateSummary `type:"list"` - - // If the list has been truncated, this value is present and should be used - // for the NextToken input parameter on your next call to ListCertificates. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListCertificatesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListCertificatesOutput) GoString() string { - return s.String() -} - -type ListTagsForCertificateInput struct { - _ struct{} `type:"structure"` - - // String that contains the ARN of the ACM Certificate for which you want to - // list the tags. This must be of the form: - // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). - CertificateArn *string `min:"20" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListTagsForCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListTagsForCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForCertificateInput"} - if s.CertificateArn == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateArn")) - } - if s.CertificateArn != nil && len(*s.CertificateArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListTagsForCertificateOutput struct { - _ struct{} `type:"structure"` - - // The key-value pairs that define the applied tags. - Tags []*Tag `min:"1" type:"list"` -} - -// String returns the string representation -func (s ListTagsForCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListTagsForCertificateOutput) GoString() string { - return s.String() -} - -type RemoveTagsFromCertificateInput struct { - _ struct{} `type:"structure"` - - // String that contains the ARN of the ACM Certificate with one or more tags - // that you want to remove. This must be of the form: - // - // arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). - CertificateArn *string `min:"20" type:"string" required:"true"` - - // The key-value pair that defines the tag to remove. - Tags []*Tag `min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s RemoveTagsFromCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTagsFromCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsFromCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromCertificateInput"} - if s.CertificateArn == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateArn")) - } - if s.CertificateArn != nil && len(*s.CertificateArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RemoveTagsFromCertificateOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s RemoveTagsFromCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTagsFromCertificateOutput) GoString() string { - return s.String() -} - -type RequestCertificateInput struct { - _ struct{} `type:"structure"` - - // Fully qualified domain name (FQDN), such as www.example.com, of the site - // you want to secure with an ACM Certificate. Use an asterisk (*) to create - // a wildcard certificate that protects several sites in the same domain. For - // example, *.example.com protects www.example.com, site.example.com, and images.example.com. - DomainName *string `min:"1" type:"string" required:"true"` - - // The base validation domain that will act as the suffix of the email addresses - // that are used to send the emails. This must be the same as the Domain value - // or a superdomain of the Domain value. For example, if you requested a certificate - // for test.example.com and specify DomainValidationOptions of example.com, - // ACM sends email to the domain registrant, technical contact, and administrative - // contact in WHOIS and the following five addresses: admin@example.com - // - // administrator@example.com - // - // hostmaster@example.com - // - // postmaster@example.com - // - // webmaster@example.com - DomainValidationOptions []*DomainValidationOption `min:"1" type:"list"` - - // Customer chosen string that can be used to distinguish between calls to RequestCertificate. - // Idempotency tokens time out after one hour. Therefore, if you call RequestCertificate - // multiple times with the same idempotency token within one hour, ACM recognizes - // that you are requesting only one certificate and will issue only one. If - // you change the idempotency token for each call, ACM recognizes that you are - // requesting multiple certificates. - IdempotencyToken *string `min:"1" type:"string"` - - // Additional FQDNs to be included in the Subject Alternative Name extension - // of the ACM Certificate. For example, add the name www.example.net to a certificate - // for which the DomainName field is www.example.com if users can reach your - // site by using either name. - SubjectAlternativeNames []*string `min:"1" type:"list"` -} - -// String returns the string representation -func (s RequestCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RequestCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RequestCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RequestCertificateInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) - } - if s.DomainValidationOptions != nil && len(s.DomainValidationOptions) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DomainValidationOptions", 1)) - } - if s.IdempotencyToken != nil && len(*s.IdempotencyToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdempotencyToken", 1)) - } - if s.SubjectAlternativeNames != nil && len(s.SubjectAlternativeNames) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SubjectAlternativeNames", 1)) - } - if s.DomainValidationOptions != nil { - for i, v := range s.DomainValidationOptions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DomainValidationOptions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RequestCertificateOutput struct { - _ struct{} `type:"structure"` - - // String that contains the ARN of the issued certificate. This must be of the - // form: - // - // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 - CertificateArn *string `min:"20" type:"string"` -} - -// String returns the string representation -func (s RequestCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RequestCertificateOutput) GoString() string { - return s.String() -} - -type ResendValidationEmailInput struct { - _ struct{} `type:"structure"` - - // String that contains the ARN of the requested certificate. The certificate - // ARN is generated and returned by the RequestCertificate action as soon as - // the request is made. By default, using this parameter causes email to be - // sent to all top-level domains you specified in the certificate request. - // - // The ARN must be of the form: - // - // arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 - CertificateArn *string `min:"20" type:"string" required:"true"` - - // The Fully Qualified Domain Name (FQDN) of the certificate that needs to be - // validated. - Domain *string `min:"1" type:"string" required:"true"` - - // The base validation domain that will act as the suffix of the email addresses - // that are used to send the emails. This must be the same as the Domain value - // or a superdomain of the Domain value. For example, if you requested a certificate - // for site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com, - // ACM sends email to the domain registrant, technical contact, and administrative - // contact in WHOIS and the following five addresses: admin@subdomain.example.com - // - // administrator@subdomain.example.com - // - // hostmaster@subdomain.example.com - // - // postmaster@subdomain.example.com - // - // webmaster@subdomain.example.com - ValidationDomain *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ResendValidationEmailInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResendValidationEmailInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResendValidationEmailInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResendValidationEmailInput"} - if s.CertificateArn == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateArn")) - } - if s.CertificateArn != nil && len(*s.CertificateArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20)) - } - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.ValidationDomain == nil { - invalidParams.Add(request.NewErrParamRequired("ValidationDomain")) - } - if s.ValidationDomain != nil && len(*s.ValidationDomain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ValidationDomain", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ResendValidationEmailOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ResendValidationEmailOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResendValidationEmailOutput) GoString() string { - return s.String() -} - -// A key-value pair that identifies or specifies metadata about an ACM resource. -type Tag struct { - _ struct{} `type:"structure"` - - // The key of the tag. - Key *string `min:"1" type:"string" required:"true"` - - // The value of the tag. - Value *string `type:"string"` -} - -// String returns the string representation -func (s Tag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Tag) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -const ( - // @enum CertificateStatus - CertificateStatusPendingValidation = "PENDING_VALIDATION" - // @enum CertificateStatus - CertificateStatusIssued = "ISSUED" - // @enum CertificateStatus - CertificateStatusInactive = "INACTIVE" - // @enum CertificateStatus - CertificateStatusExpired = "EXPIRED" - // @enum CertificateStatus - CertificateStatusValidationTimedOut = "VALIDATION_TIMED_OUT" - // @enum CertificateStatus - CertificateStatusRevoked = "REVOKED" - // @enum CertificateStatus - CertificateStatusFailed = "FAILED" -) - -const ( - // @enum KeyAlgorithm - KeyAlgorithmRsa2048 = "RSA_2048" - // @enum KeyAlgorithm - KeyAlgorithmEcPrime256v1 = "EC_prime256v1" -) - -const ( - // @enum RevocationReason - RevocationReasonUnspecified = "UNSPECIFIED" - // @enum RevocationReason - RevocationReasonKeyCompromise = "KEY_COMPROMISE" - // @enum RevocationReason - RevocationReasonCaCompromise = "CA_COMPROMISE" - // @enum RevocationReason - RevocationReasonAffiliationChanged = "AFFILIATION_CHANGED" - // @enum RevocationReason - RevocationReasonSuperceded = "SUPERCEDED" - // @enum RevocationReason - RevocationReasonCessationOfOperation = "CESSATION_OF_OPERATION" - // @enum RevocationReason - RevocationReasonCertificateHold = "CERTIFICATE_HOLD" - // @enum RevocationReason - RevocationReasonRemoveFromCrl = "REMOVE_FROM_CRL" - // @enum RevocationReason - RevocationReasonPrivilegeWithdrawn = "PRIVILEGE_WITHDRAWN" - // @enum RevocationReason - RevocationReasonAACompromise = "A_A_COMPROMISE" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go deleted file mode 100644 index 438ee76b6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/examples_test.go +++ /dev/null @@ -1,220 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package acm_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/acm" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleACM_AddTagsToCertificate() { - svc := acm.New(session.New()) - - params := &acm.AddTagsToCertificateInput{ - CertificateArn: aws.String("Arn"), // Required - Tags: []*acm.Tag{ // Required - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), - }, - // More values... - }, - } - resp, err := svc.AddTagsToCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleACM_DeleteCertificate() { - svc := acm.New(session.New()) - - params := &acm.DeleteCertificateInput{ - CertificateArn: aws.String("Arn"), // Required - } - resp, err := svc.DeleteCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleACM_DescribeCertificate() { - svc := acm.New(session.New()) - - params := &acm.DescribeCertificateInput{ - CertificateArn: aws.String("Arn"), // Required - } - resp, err := svc.DescribeCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleACM_GetCertificate() { - svc := acm.New(session.New()) - - params := &acm.GetCertificateInput{ - CertificateArn: aws.String("Arn"), // Required - } - resp, err := svc.GetCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleACM_ListCertificates() { - svc := acm.New(session.New()) - - params := &acm.ListCertificatesInput{ - CertificateStatuses: []*string{ - aws.String("CertificateStatus"), // Required - // More values... - }, - MaxItems: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListCertificates(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleACM_ListTagsForCertificate() { - svc := acm.New(session.New()) - - params := &acm.ListTagsForCertificateInput{ - CertificateArn: aws.String("Arn"), // Required - } - resp, err := svc.ListTagsForCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleACM_RemoveTagsFromCertificate() { - svc := acm.New(session.New()) - - params := &acm.RemoveTagsFromCertificateInput{ - CertificateArn: aws.String("Arn"), // Required - Tags: []*acm.Tag{ // Required - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), - }, - // More values... - }, - } - resp, err := svc.RemoveTagsFromCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleACM_RequestCertificate() { - svc := acm.New(session.New()) - - params := &acm.RequestCertificateInput{ - DomainName: aws.String("DomainNameString"), // Required - DomainValidationOptions: []*acm.DomainValidationOption{ - { // Required - DomainName: aws.String("DomainNameString"), // Required - ValidationDomain: aws.String("DomainNameString"), // Required - }, - // More values... - }, - IdempotencyToken: aws.String("IdempotencyToken"), - SubjectAlternativeNames: []*string{ - aws.String("DomainNameString"), // Required - // More values... - }, - } - resp, err := svc.RequestCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleACM_ResendValidationEmail() { - svc := acm.New(session.New()) - - params := &acm.ResendValidationEmailInput{ - CertificateArn: aws.String("Arn"), // Required - Domain: aws.String("DomainNameString"), // Required - ValidationDomain: aws.String("DomainNameString"), // Required - } - resp, err := svc.ResendValidationEmail(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/service.go b/vendor/github.com/aws/aws-sdk-go/service/acm/service.go deleted file mode 100644 index 465904262..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/acm/service.go +++ /dev/null @@ -1,95 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package acm - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// Welcome to the AWS Certificate Manager (ACM) Command Reference. This guide -// provides descriptions, syntax, and usage examples for each ACM command. You -// can use AWS Certificate Manager to request ACM Certificates for your AWS-based -// websites and applications. For general information about using ACM and for -// more information about using the console, see the AWS Certificate Manager -// User Guide (http://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html). -// For more information about using the ACM API, see the AWS Certificate Manager -// API Reference (http://docs.aws.amazon.com/acm/latest/APIReference/Welcome.html). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type ACM struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "acm" - -// New creates a new instance of the ACM client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ACM client from just a session. -// svc := acm.New(mySession) -// -// // Create a ACM client with additional configuration -// svc := acm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ACM { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ACM { - svc := &ACM{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-12-08", - JSONVersion: "1.1", - TargetPrefix: "CertificateManager", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a ACM operation and runs any -// custom request initialization. -func (c *ACM) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go deleted file mode 100644 index 477fe71bb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go +++ /dev/null @@ -1,6855 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package apigateway provides a client for Amazon API Gateway. -package apigateway - -import ( - "time" - - "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/private/protocol/restjson" -) - -const opCreateApiKey = "CreateApiKey" - -// CreateApiKeyRequest generates a request for the CreateApiKey operation. -func (c *APIGateway) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request.Request, output *ApiKey) { - op := &request.Operation{ - Name: opCreateApiKey, - HTTPMethod: "POST", - HTTPPath: "/apikeys", - } - - if input == nil { - input = &CreateApiKeyInput{} - } - - req = c.newRequest(op, input, output) - output = &ApiKey{} - req.Data = output - return -} - -// Create an ApiKey resource. -func (c *APIGateway) CreateApiKey(input *CreateApiKeyInput) (*ApiKey, error) { - req, out := c.CreateApiKeyRequest(input) - err := req.Send() - return out, err -} - -const opCreateAuthorizer = "CreateAuthorizer" - -// CreateAuthorizerRequest generates a request for the CreateAuthorizer operation. -func (c *APIGateway) CreateAuthorizerRequest(input *CreateAuthorizerInput) (req *request.Request, output *Authorizer) { - op := &request.Operation{ - Name: opCreateAuthorizer, - HTTPMethod: "POST", - HTTPPath: "/restapis/{restapi_id}/authorizers", - } - - if input == nil { - input = &CreateAuthorizerInput{} - } - - req = c.newRequest(op, input, output) - output = &Authorizer{} - req.Data = output - return -} - -// Adds a new Authorizer resource to an existing RestApi resource. -func (c *APIGateway) CreateAuthorizer(input *CreateAuthorizerInput) (*Authorizer, error) { - req, out := c.CreateAuthorizerRequest(input) - err := req.Send() - return out, err -} - -const opCreateBasePathMapping = "CreateBasePathMapping" - -// CreateBasePathMappingRequest generates a request for the CreateBasePathMapping operation. -func (c *APIGateway) CreateBasePathMappingRequest(input *CreateBasePathMappingInput) (req *request.Request, output *BasePathMapping) { - op := &request.Operation{ - Name: opCreateBasePathMapping, - HTTPMethod: "POST", - HTTPPath: "/domainnames/{domain_name}/basepathmappings", - } - - if input == nil { - input = &CreateBasePathMappingInput{} - } - - req = c.newRequest(op, input, output) - output = &BasePathMapping{} - req.Data = output - return -} - -// Creates a new BasePathMapping resource. -func (c *APIGateway) CreateBasePathMapping(input *CreateBasePathMappingInput) (*BasePathMapping, error) { - req, out := c.CreateBasePathMappingRequest(input) - err := req.Send() - return out, err -} - -const opCreateDeployment = "CreateDeployment" - -// CreateDeploymentRequest generates a request for the CreateDeployment operation. -func (c *APIGateway) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *Deployment) { - op := &request.Operation{ - Name: opCreateDeployment, - HTTPMethod: "POST", - HTTPPath: "/restapis/{restapi_id}/deployments", - } - - if input == nil { - input = &CreateDeploymentInput{} - } - - req = c.newRequest(op, input, output) - output = &Deployment{} - req.Data = output - return -} - -// Creates a Deployment resource, which makes a specified RestApi callable over -// the internet. -func (c *APIGateway) CreateDeployment(input *CreateDeploymentInput) (*Deployment, error) { - req, out := c.CreateDeploymentRequest(input) - err := req.Send() - return out, err -} - -const opCreateDomainName = "CreateDomainName" - -// CreateDomainNameRequest generates a request for the CreateDomainName operation. -func (c *APIGateway) CreateDomainNameRequest(input *CreateDomainNameInput) (req *request.Request, output *DomainName) { - op := &request.Operation{ - Name: opCreateDomainName, - HTTPMethod: "POST", - HTTPPath: "/domainnames", - } - - if input == nil { - input = &CreateDomainNameInput{} - } - - req = c.newRequest(op, input, output) - output = &DomainName{} - req.Data = output - return -} - -// Creates a new domain name. -func (c *APIGateway) CreateDomainName(input *CreateDomainNameInput) (*DomainName, error) { - req, out := c.CreateDomainNameRequest(input) - err := req.Send() - return out, err -} - -const opCreateModel = "CreateModel" - -// CreateModelRequest generates a request for the CreateModel operation. -func (c *APIGateway) CreateModelRequest(input *CreateModelInput) (req *request.Request, output *Model) { - op := &request.Operation{ - Name: opCreateModel, - HTTPMethod: "POST", - HTTPPath: "/restapis/{restapi_id}/models", - } - - if input == nil { - input = &CreateModelInput{} - } - - req = c.newRequest(op, input, output) - output = &Model{} - req.Data = output - return -} - -// Adds a new Model resource to an existing RestApi resource. -func (c *APIGateway) CreateModel(input *CreateModelInput) (*Model, error) { - req, out := c.CreateModelRequest(input) - err := req.Send() - return out, err -} - -const opCreateResource = "CreateResource" - -// CreateResourceRequest generates a request for the CreateResource operation. -func (c *APIGateway) CreateResourceRequest(input *CreateResourceInput) (req *request.Request, output *Resource) { - op := &request.Operation{ - Name: opCreateResource, - HTTPMethod: "POST", - HTTPPath: "/restapis/{restapi_id}/resources/{parent_id}", - } - - if input == nil { - input = &CreateResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &Resource{} - req.Data = output - return -} - -// Creates a Resource resource. -func (c *APIGateway) CreateResource(input *CreateResourceInput) (*Resource, error) { - req, out := c.CreateResourceRequest(input) - err := req.Send() - return out, err -} - -const opCreateRestApi = "CreateRestApi" - -// CreateRestApiRequest generates a request for the CreateRestApi operation. -func (c *APIGateway) CreateRestApiRequest(input *CreateRestApiInput) (req *request.Request, output *RestApi) { - op := &request.Operation{ - Name: opCreateRestApi, - HTTPMethod: "POST", - HTTPPath: "/restapis", - } - - if input == nil { - input = &CreateRestApiInput{} - } - - req = c.newRequest(op, input, output) - output = &RestApi{} - req.Data = output - return -} - -// Creates a new RestApi resource. -func (c *APIGateway) CreateRestApi(input *CreateRestApiInput) (*RestApi, error) { - req, out := c.CreateRestApiRequest(input) - err := req.Send() - return out, err -} - -const opCreateStage = "CreateStage" - -// CreateStageRequest generates a request for the CreateStage operation. -func (c *APIGateway) CreateStageRequest(input *CreateStageInput) (req *request.Request, output *Stage) { - op := &request.Operation{ - Name: opCreateStage, - HTTPMethod: "POST", - HTTPPath: "/restapis/{restapi_id}/stages", - } - - if input == nil { - input = &CreateStageInput{} - } - - req = c.newRequest(op, input, output) - output = &Stage{} - req.Data = output - return -} - -// Creates a new Stage resource that references a pre-existing Deployment for -// the API. -func (c *APIGateway) CreateStage(input *CreateStageInput) (*Stage, error) { - req, out := c.CreateStageRequest(input) - err := req.Send() - return out, err -} - -const opDeleteApiKey = "DeleteApiKey" - -// DeleteApiKeyRequest generates a request for the DeleteApiKey operation. -func (c *APIGateway) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request.Request, output *DeleteApiKeyOutput) { - op := &request.Operation{ - Name: opDeleteApiKey, - HTTPMethod: "DELETE", - HTTPPath: "/apikeys/{api_Key}", - } - - if input == nil { - input = &DeleteApiKeyInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteApiKeyOutput{} - req.Data = output - return -} - -// Deletes the ApiKey resource. -func (c *APIGateway) DeleteApiKey(input *DeleteApiKeyInput) (*DeleteApiKeyOutput, error) { - req, out := c.DeleteApiKeyRequest(input) - err := req.Send() - return out, err -} - -const opDeleteAuthorizer = "DeleteAuthorizer" - -// DeleteAuthorizerRequest generates a request for the DeleteAuthorizer operation. -func (c *APIGateway) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (req *request.Request, output *DeleteAuthorizerOutput) { - op := &request.Operation{ - Name: opDeleteAuthorizer, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/authorizers/{authorizer_id}", - } - - if input == nil { - input = &DeleteAuthorizerInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAuthorizerOutput{} - req.Data = output - return -} - -// Deletes an existing Authorizer resource. -func (c *APIGateway) DeleteAuthorizer(input *DeleteAuthorizerInput) (*DeleteAuthorizerOutput, error) { - req, out := c.DeleteAuthorizerRequest(input) - err := req.Send() - return out, err -} - -const opDeleteBasePathMapping = "DeleteBasePathMapping" - -// DeleteBasePathMappingRequest generates a request for the DeleteBasePathMapping operation. -func (c *APIGateway) DeleteBasePathMappingRequest(input *DeleteBasePathMappingInput) (req *request.Request, output *DeleteBasePathMappingOutput) { - op := &request.Operation{ - Name: opDeleteBasePathMapping, - HTTPMethod: "DELETE", - HTTPPath: "/domainnames/{domain_name}/basepathmappings/{base_path}", - } - - if input == nil { - input = &DeleteBasePathMappingInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBasePathMappingOutput{} - req.Data = output - return -} - -// Deletes the BasePathMapping resource. -func (c *APIGateway) DeleteBasePathMapping(input *DeleteBasePathMappingInput) (*DeleteBasePathMappingOutput, error) { - req, out := c.DeleteBasePathMappingRequest(input) - err := req.Send() - return out, err -} - -const opDeleteClientCertificate = "DeleteClientCertificate" - -// DeleteClientCertificateRequest generates a request for the DeleteClientCertificate operation. -func (c *APIGateway) DeleteClientCertificateRequest(input *DeleteClientCertificateInput) (req *request.Request, output *DeleteClientCertificateOutput) { - op := &request.Operation{ - Name: opDeleteClientCertificate, - HTTPMethod: "DELETE", - HTTPPath: "/clientcertificates/{clientcertificate_id}", - } - - if input == nil { - input = &DeleteClientCertificateInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteClientCertificateOutput{} - req.Data = output - return -} - -// Deletes the ClientCertificate resource. -func (c *APIGateway) DeleteClientCertificate(input *DeleteClientCertificateInput) (*DeleteClientCertificateOutput, error) { - req, out := c.DeleteClientCertificateRequest(input) - err := req.Send() - return out, err -} - -const opDeleteDeployment = "DeleteDeployment" - -// DeleteDeploymentRequest generates a request for the DeleteDeployment operation. -func (c *APIGateway) DeleteDeploymentRequest(input *DeleteDeploymentInput) (req *request.Request, output *DeleteDeploymentOutput) { - op := &request.Operation{ - Name: opDeleteDeployment, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/deployments/{deployment_id}", - } - - if input == nil { - input = &DeleteDeploymentInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDeploymentOutput{} - req.Data = output - return -} - -// Deletes a Deployment resource. Deleting a deployment will only succeed if -// there are no Stage resources associated with it. -func (c *APIGateway) DeleteDeployment(input *DeleteDeploymentInput) (*DeleteDeploymentOutput, error) { - req, out := c.DeleteDeploymentRequest(input) - err := req.Send() - return out, err -} - -const opDeleteDomainName = "DeleteDomainName" - -// DeleteDomainNameRequest generates a request for the DeleteDomainName operation. -func (c *APIGateway) DeleteDomainNameRequest(input *DeleteDomainNameInput) (req *request.Request, output *DeleteDomainNameOutput) { - op := &request.Operation{ - Name: opDeleteDomainName, - HTTPMethod: "DELETE", - HTTPPath: "/domainnames/{domain_name}", - } - - if input == nil { - input = &DeleteDomainNameInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDomainNameOutput{} - req.Data = output - return -} - -// Deletes the DomainName resource. -func (c *APIGateway) DeleteDomainName(input *DeleteDomainNameInput) (*DeleteDomainNameOutput, error) { - req, out := c.DeleteDomainNameRequest(input) - err := req.Send() - return out, err -} - -const opDeleteIntegration = "DeleteIntegration" - -// DeleteIntegrationRequest generates a request for the DeleteIntegration operation. -func (c *APIGateway) DeleteIntegrationRequest(input *DeleteIntegrationInput) (req *request.Request, output *DeleteIntegrationOutput) { - op := &request.Operation{ - Name: opDeleteIntegration, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", - } - - if input == nil { - input = &DeleteIntegrationInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteIntegrationOutput{} - req.Data = output - return -} - -// Represents a delete integration. -func (c *APIGateway) DeleteIntegration(input *DeleteIntegrationInput) (*DeleteIntegrationOutput, error) { - req, out := c.DeleteIntegrationRequest(input) - err := req.Send() - return out, err -} - -const opDeleteIntegrationResponse = "DeleteIntegrationResponse" - -// DeleteIntegrationResponseRequest generates a request for the DeleteIntegrationResponse operation. -func (c *APIGateway) DeleteIntegrationResponseRequest(input *DeleteIntegrationResponseInput) (req *request.Request, output *DeleteIntegrationResponseOutput) { - op := &request.Operation{ - Name: opDeleteIntegrationResponse, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}", - } - - if input == nil { - input = &DeleteIntegrationResponseInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteIntegrationResponseOutput{} - req.Data = output - return -} - -// Represents a delete integration response. -func (c *APIGateway) DeleteIntegrationResponse(input *DeleteIntegrationResponseInput) (*DeleteIntegrationResponseOutput, error) { - req, out := c.DeleteIntegrationResponseRequest(input) - err := req.Send() - return out, err -} - -const opDeleteMethod = "DeleteMethod" - -// DeleteMethodRequest generates a request for the DeleteMethod operation. -func (c *APIGateway) DeleteMethodRequest(input *DeleteMethodInput) (req *request.Request, output *DeleteMethodOutput) { - op := &request.Operation{ - Name: opDeleteMethod, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}", - } - - if input == nil { - input = &DeleteMethodInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteMethodOutput{} - req.Data = output - return -} - -// Deletes an existing Method resource. -func (c *APIGateway) DeleteMethod(input *DeleteMethodInput) (*DeleteMethodOutput, error) { - req, out := c.DeleteMethodRequest(input) - err := req.Send() - return out, err -} - -const opDeleteMethodResponse = "DeleteMethodResponse" - -// DeleteMethodResponseRequest generates a request for the DeleteMethodResponse operation. -func (c *APIGateway) DeleteMethodResponseRequest(input *DeleteMethodResponseInput) (req *request.Request, output *DeleteMethodResponseOutput) { - op := &request.Operation{ - Name: opDeleteMethodResponse, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", - } - - if input == nil { - input = &DeleteMethodResponseInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteMethodResponseOutput{} - req.Data = output - return -} - -// Deletes an existing MethodResponse resource. -func (c *APIGateway) DeleteMethodResponse(input *DeleteMethodResponseInput) (*DeleteMethodResponseOutput, error) { - req, out := c.DeleteMethodResponseRequest(input) - err := req.Send() - return out, err -} - -const opDeleteModel = "DeleteModel" - -// DeleteModelRequest generates a request for the DeleteModel operation. -func (c *APIGateway) DeleteModelRequest(input *DeleteModelInput) (req *request.Request, output *DeleteModelOutput) { - op := &request.Operation{ - Name: opDeleteModel, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/models/{model_name}", - } - - if input == nil { - input = &DeleteModelInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteModelOutput{} - req.Data = output - return -} - -// Deletes a model. -func (c *APIGateway) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) { - req, out := c.DeleteModelRequest(input) - err := req.Send() - return out, err -} - -const opDeleteResource = "DeleteResource" - -// DeleteResourceRequest generates a request for the DeleteResource operation. -func (c *APIGateway) DeleteResourceRequest(input *DeleteResourceInput) (req *request.Request, output *DeleteResourceOutput) { - op := &request.Operation{ - Name: opDeleteResource, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}", - } - - if input == nil { - input = &DeleteResourceInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteResourceOutput{} - req.Data = output - return -} - -// Deletes a Resource resource. -func (c *APIGateway) DeleteResource(input *DeleteResourceInput) (*DeleteResourceOutput, error) { - req, out := c.DeleteResourceRequest(input) - err := req.Send() - return out, err -} - -const opDeleteRestApi = "DeleteRestApi" - -// DeleteRestApiRequest generates a request for the DeleteRestApi operation. -func (c *APIGateway) DeleteRestApiRequest(input *DeleteRestApiInput) (req *request.Request, output *DeleteRestApiOutput) { - op := &request.Operation{ - Name: opDeleteRestApi, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}", - } - - if input == nil { - input = &DeleteRestApiInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteRestApiOutput{} - req.Data = output - return -} - -// Deletes the specified API. -func (c *APIGateway) DeleteRestApi(input *DeleteRestApiInput) (*DeleteRestApiOutput, error) { - req, out := c.DeleteRestApiRequest(input) - err := req.Send() - return out, err -} - -const opDeleteStage = "DeleteStage" - -// DeleteStageRequest generates a request for the DeleteStage operation. -func (c *APIGateway) DeleteStageRequest(input *DeleteStageInput) (req *request.Request, output *DeleteStageOutput) { - op := &request.Operation{ - Name: opDeleteStage, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}", - } - - if input == nil { - input = &DeleteStageInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteStageOutput{} - req.Data = output - return -} - -// Deletes a Stage resource. -func (c *APIGateway) DeleteStage(input *DeleteStageInput) (*DeleteStageOutput, error) { - req, out := c.DeleteStageRequest(input) - err := req.Send() - return out, err -} - -const opFlushStageAuthorizersCache = "FlushStageAuthorizersCache" - -// FlushStageAuthorizersCacheRequest generates a request for the FlushStageAuthorizersCache operation. -func (c *APIGateway) FlushStageAuthorizersCacheRequest(input *FlushStageAuthorizersCacheInput) (req *request.Request, output *FlushStageAuthorizersCacheOutput) { - op := &request.Operation{ - Name: opFlushStageAuthorizersCache, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers", - } - - if input == nil { - input = &FlushStageAuthorizersCacheInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &FlushStageAuthorizersCacheOutput{} - req.Data = output - return -} - -// Flushes all authorizer cache entries on a stage. -func (c *APIGateway) FlushStageAuthorizersCache(input *FlushStageAuthorizersCacheInput) (*FlushStageAuthorizersCacheOutput, error) { - req, out := c.FlushStageAuthorizersCacheRequest(input) - err := req.Send() - return out, err -} - -const opFlushStageCache = "FlushStageCache" - -// FlushStageCacheRequest generates a request for the FlushStageCache operation. -func (c *APIGateway) FlushStageCacheRequest(input *FlushStageCacheInput) (req *request.Request, output *FlushStageCacheOutput) { - op := &request.Operation{ - Name: opFlushStageCache, - HTTPMethod: "DELETE", - HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}/cache/data", - } - - if input == nil { - input = &FlushStageCacheInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &FlushStageCacheOutput{} - req.Data = output - return -} - -// Flushes a stage's cache. -func (c *APIGateway) FlushStageCache(input *FlushStageCacheInput) (*FlushStageCacheOutput, error) { - req, out := c.FlushStageCacheRequest(input) - err := req.Send() - return out, err -} - -const opGenerateClientCertificate = "GenerateClientCertificate" - -// GenerateClientCertificateRequest generates a request for the GenerateClientCertificate operation. -func (c *APIGateway) GenerateClientCertificateRequest(input *GenerateClientCertificateInput) (req *request.Request, output *ClientCertificate) { - op := &request.Operation{ - Name: opGenerateClientCertificate, - HTTPMethod: "POST", - HTTPPath: "/clientcertificates", - } - - if input == nil { - input = &GenerateClientCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &ClientCertificate{} - req.Data = output - return -} - -// Generates a ClientCertificate resource. -func (c *APIGateway) GenerateClientCertificate(input *GenerateClientCertificateInput) (*ClientCertificate, error) { - req, out := c.GenerateClientCertificateRequest(input) - err := req.Send() - return out, err -} - -const opGetAccount = "GetAccount" - -// GetAccountRequest generates a request for the GetAccount operation. -func (c *APIGateway) GetAccountRequest(input *GetAccountInput) (req *request.Request, output *Account) { - op := &request.Operation{ - Name: opGetAccount, - HTTPMethod: "GET", - HTTPPath: "/account", - } - - if input == nil { - input = &GetAccountInput{} - } - - req = c.newRequest(op, input, output) - output = &Account{} - req.Data = output - return -} - -// Gets information about the current Account resource. -func (c *APIGateway) GetAccount(input *GetAccountInput) (*Account, error) { - req, out := c.GetAccountRequest(input) - err := req.Send() - return out, err -} - -const opGetApiKey = "GetApiKey" - -// GetApiKeyRequest generates a request for the GetApiKey operation. -func (c *APIGateway) GetApiKeyRequest(input *GetApiKeyInput) (req *request.Request, output *ApiKey) { - op := &request.Operation{ - Name: opGetApiKey, - HTTPMethod: "GET", - HTTPPath: "/apikeys/{api_Key}", - } - - if input == nil { - input = &GetApiKeyInput{} - } - - req = c.newRequest(op, input, output) - output = &ApiKey{} - req.Data = output - return -} - -// Gets information about the current ApiKey resource. -func (c *APIGateway) GetApiKey(input *GetApiKeyInput) (*ApiKey, error) { - req, out := c.GetApiKeyRequest(input) - err := req.Send() - return out, err -} - -const opGetApiKeys = "GetApiKeys" - -// GetApiKeysRequest generates a request for the GetApiKeys operation. -func (c *APIGateway) GetApiKeysRequest(input *GetApiKeysInput) (req *request.Request, output *GetApiKeysOutput) { - op := &request.Operation{ - Name: opGetApiKeys, - HTTPMethod: "GET", - HTTPPath: "/apikeys", - Paginator: &request.Paginator{ - InputTokens: []string{"position"}, - OutputTokens: []string{"position"}, - LimitToken: "limit", - TruncationToken: "", - }, - } - - if input == nil { - input = &GetApiKeysInput{} - } - - req = c.newRequest(op, input, output) - output = &GetApiKeysOutput{} - req.Data = output - return -} - -// Gets information about the current ApiKeys resource. -func (c *APIGateway) GetApiKeys(input *GetApiKeysInput) (*GetApiKeysOutput, error) { - req, out := c.GetApiKeysRequest(input) - err := req.Send() - return out, err -} - -func (c *APIGateway) GetApiKeysPages(input *GetApiKeysInput, fn func(p *GetApiKeysOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.GetApiKeysRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*GetApiKeysOutput), lastPage) - }) -} - -const opGetAuthorizer = "GetAuthorizer" - -// GetAuthorizerRequest generates a request for the GetAuthorizer operation. -func (c *APIGateway) GetAuthorizerRequest(input *GetAuthorizerInput) (req *request.Request, output *Authorizer) { - op := &request.Operation{ - Name: opGetAuthorizer, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/authorizers/{authorizer_id}", - } - - if input == nil { - input = &GetAuthorizerInput{} - } - - req = c.newRequest(op, input, output) - output = &Authorizer{} - req.Data = output - return -} - -// Describe an existing Authorizer resource. -func (c *APIGateway) GetAuthorizer(input *GetAuthorizerInput) (*Authorizer, error) { - req, out := c.GetAuthorizerRequest(input) - err := req.Send() - return out, err -} - -const opGetAuthorizers = "GetAuthorizers" - -// GetAuthorizersRequest generates a request for the GetAuthorizers operation. -func (c *APIGateway) GetAuthorizersRequest(input *GetAuthorizersInput) (req *request.Request, output *GetAuthorizersOutput) { - op := &request.Operation{ - Name: opGetAuthorizers, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/authorizers", - } - - if input == nil { - input = &GetAuthorizersInput{} - } - - req = c.newRequest(op, input, output) - output = &GetAuthorizersOutput{} - req.Data = output - return -} - -// Describe an existing Authorizers resource. -func (c *APIGateway) GetAuthorizers(input *GetAuthorizersInput) (*GetAuthorizersOutput, error) { - req, out := c.GetAuthorizersRequest(input) - err := req.Send() - return out, err -} - -const opGetBasePathMapping = "GetBasePathMapping" - -// GetBasePathMappingRequest generates a request for the GetBasePathMapping operation. -func (c *APIGateway) GetBasePathMappingRequest(input *GetBasePathMappingInput) (req *request.Request, output *BasePathMapping) { - op := &request.Operation{ - Name: opGetBasePathMapping, - HTTPMethod: "GET", - HTTPPath: "/domainnames/{domain_name}/basepathmappings/{base_path}", - } - - if input == nil { - input = &GetBasePathMappingInput{} - } - - req = c.newRequest(op, input, output) - output = &BasePathMapping{} - req.Data = output - return -} - -// Describe a BasePathMapping resource. -func (c *APIGateway) GetBasePathMapping(input *GetBasePathMappingInput) (*BasePathMapping, error) { - req, out := c.GetBasePathMappingRequest(input) - err := req.Send() - return out, err -} - -const opGetBasePathMappings = "GetBasePathMappings" - -// GetBasePathMappingsRequest generates a request for the GetBasePathMappings operation. -func (c *APIGateway) GetBasePathMappingsRequest(input *GetBasePathMappingsInput) (req *request.Request, output *GetBasePathMappingsOutput) { - op := &request.Operation{ - Name: opGetBasePathMappings, - HTTPMethod: "GET", - HTTPPath: "/domainnames/{domain_name}/basepathmappings", - Paginator: &request.Paginator{ - InputTokens: []string{"position"}, - OutputTokens: []string{"position"}, - LimitToken: "limit", - TruncationToken: "", - }, - } - - if input == nil { - input = &GetBasePathMappingsInput{} - } - - req = c.newRequest(op, input, output) - output = &GetBasePathMappingsOutput{} - req.Data = output - return -} - -// Represents a collection of BasePathMapping resources. -func (c *APIGateway) GetBasePathMappings(input *GetBasePathMappingsInput) (*GetBasePathMappingsOutput, error) { - req, out := c.GetBasePathMappingsRequest(input) - err := req.Send() - return out, err -} - -func (c *APIGateway) GetBasePathMappingsPages(input *GetBasePathMappingsInput, fn func(p *GetBasePathMappingsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.GetBasePathMappingsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*GetBasePathMappingsOutput), lastPage) - }) -} - -const opGetClientCertificate = "GetClientCertificate" - -// GetClientCertificateRequest generates a request for the GetClientCertificate operation. -func (c *APIGateway) GetClientCertificateRequest(input *GetClientCertificateInput) (req *request.Request, output *ClientCertificate) { - op := &request.Operation{ - Name: opGetClientCertificate, - HTTPMethod: "GET", - HTTPPath: "/clientcertificates/{clientcertificate_id}", - } - - if input == nil { - input = &GetClientCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &ClientCertificate{} - req.Data = output - return -} - -// Gets information about the current ClientCertificate resource. -func (c *APIGateway) GetClientCertificate(input *GetClientCertificateInput) (*ClientCertificate, error) { - req, out := c.GetClientCertificateRequest(input) - err := req.Send() - return out, err -} - -const opGetClientCertificates = "GetClientCertificates" - -// GetClientCertificatesRequest generates a request for the GetClientCertificates operation. -func (c *APIGateway) GetClientCertificatesRequest(input *GetClientCertificatesInput) (req *request.Request, output *GetClientCertificatesOutput) { - op := &request.Operation{ - Name: opGetClientCertificates, - HTTPMethod: "GET", - HTTPPath: "/clientcertificates", - Paginator: &request.Paginator{ - InputTokens: []string{"position"}, - OutputTokens: []string{"position"}, - LimitToken: "limit", - TruncationToken: "", - }, - } - - if input == nil { - input = &GetClientCertificatesInput{} - } - - req = c.newRequest(op, input, output) - output = &GetClientCertificatesOutput{} - req.Data = output - return -} - -// Gets a collection of ClientCertificate resources. -func (c *APIGateway) GetClientCertificates(input *GetClientCertificatesInput) (*GetClientCertificatesOutput, error) { - req, out := c.GetClientCertificatesRequest(input) - err := req.Send() - return out, err -} - -func (c *APIGateway) GetClientCertificatesPages(input *GetClientCertificatesInput, fn func(p *GetClientCertificatesOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.GetClientCertificatesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*GetClientCertificatesOutput), lastPage) - }) -} - -const opGetDeployment = "GetDeployment" - -// GetDeploymentRequest generates a request for the GetDeployment operation. -func (c *APIGateway) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *Deployment) { - op := &request.Operation{ - Name: opGetDeployment, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/deployments/{deployment_id}", - } - - if input == nil { - input = &GetDeploymentInput{} - } - - req = c.newRequest(op, input, output) - output = &Deployment{} - req.Data = output - return -} - -// Gets information about a Deployment resource. -func (c *APIGateway) GetDeployment(input *GetDeploymentInput) (*Deployment, error) { - req, out := c.GetDeploymentRequest(input) - err := req.Send() - return out, err -} - -const opGetDeployments = "GetDeployments" - -// GetDeploymentsRequest generates a request for the GetDeployments operation. -func (c *APIGateway) GetDeploymentsRequest(input *GetDeploymentsInput) (req *request.Request, output *GetDeploymentsOutput) { - op := &request.Operation{ - Name: opGetDeployments, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/deployments", - Paginator: &request.Paginator{ - InputTokens: []string{"position"}, - OutputTokens: []string{"position"}, - LimitToken: "limit", - TruncationToken: "", - }, - } - - if input == nil { - input = &GetDeploymentsInput{} - } - - req = c.newRequest(op, input, output) - output = &GetDeploymentsOutput{} - req.Data = output - return -} - -// Gets information about a Deployments collection. -func (c *APIGateway) GetDeployments(input *GetDeploymentsInput) (*GetDeploymentsOutput, error) { - req, out := c.GetDeploymentsRequest(input) - err := req.Send() - return out, err -} - -func (c *APIGateway) GetDeploymentsPages(input *GetDeploymentsInput, fn func(p *GetDeploymentsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.GetDeploymentsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*GetDeploymentsOutput), lastPage) - }) -} - -const opGetDomainName = "GetDomainName" - -// GetDomainNameRequest generates a request for the GetDomainName operation. -func (c *APIGateway) GetDomainNameRequest(input *GetDomainNameInput) (req *request.Request, output *DomainName) { - op := &request.Operation{ - Name: opGetDomainName, - HTTPMethod: "GET", - HTTPPath: "/domainnames/{domain_name}", - } - - if input == nil { - input = &GetDomainNameInput{} - } - - req = c.newRequest(op, input, output) - output = &DomainName{} - req.Data = output - return -} - -// Represents a domain name that is contained in a simpler, more intuitive URL -// that can be called. -func (c *APIGateway) GetDomainName(input *GetDomainNameInput) (*DomainName, error) { - req, out := c.GetDomainNameRequest(input) - err := req.Send() - return out, err -} - -const opGetDomainNames = "GetDomainNames" - -// GetDomainNamesRequest generates a request for the GetDomainNames operation. -func (c *APIGateway) GetDomainNamesRequest(input *GetDomainNamesInput) (req *request.Request, output *GetDomainNamesOutput) { - op := &request.Operation{ - Name: opGetDomainNames, - HTTPMethod: "GET", - HTTPPath: "/domainnames", - Paginator: &request.Paginator{ - InputTokens: []string{"position"}, - OutputTokens: []string{"position"}, - LimitToken: "limit", - TruncationToken: "", - }, - } - - if input == nil { - input = &GetDomainNamesInput{} - } - - req = c.newRequest(op, input, output) - output = &GetDomainNamesOutput{} - req.Data = output - return -} - -// Represents a collection of DomainName resources. -func (c *APIGateway) GetDomainNames(input *GetDomainNamesInput) (*GetDomainNamesOutput, error) { - req, out := c.GetDomainNamesRequest(input) - err := req.Send() - return out, err -} - -func (c *APIGateway) GetDomainNamesPages(input *GetDomainNamesInput, fn func(p *GetDomainNamesOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.GetDomainNamesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*GetDomainNamesOutput), lastPage) - }) -} - -const opGetExport = "GetExport" - -// GetExportRequest generates a request for the GetExport operation. -func (c *APIGateway) GetExportRequest(input *GetExportInput) (req *request.Request, output *GetExportOutput) { - op := &request.Operation{ - Name: opGetExport, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type}", - } - - if input == nil { - input = &GetExportInput{} - } - - req = c.newRequest(op, input, output) - output = &GetExportOutput{} - req.Data = output - return -} - -// Exports a deployed version of a RestApi in a specified format. -func (c *APIGateway) GetExport(input *GetExportInput) (*GetExportOutput, error) { - req, out := c.GetExportRequest(input) - err := req.Send() - return out, err -} - -const opGetIntegration = "GetIntegration" - -// GetIntegrationRequest generates a request for the GetIntegration operation. -func (c *APIGateway) GetIntegrationRequest(input *GetIntegrationInput) (req *request.Request, output *Integration) { - op := &request.Operation{ - Name: opGetIntegration, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", - } - - if input == nil { - input = &GetIntegrationInput{} - } - - req = c.newRequest(op, input, output) - output = &Integration{} - req.Data = output - return -} - -// Represents a get integration. -func (c *APIGateway) GetIntegration(input *GetIntegrationInput) (*Integration, error) { - req, out := c.GetIntegrationRequest(input) - err := req.Send() - return out, err -} - -const opGetIntegrationResponse = "GetIntegrationResponse" - -// GetIntegrationResponseRequest generates a request for the GetIntegrationResponse operation. -func (c *APIGateway) GetIntegrationResponseRequest(input *GetIntegrationResponseInput) (req *request.Request, output *IntegrationResponse) { - op := &request.Operation{ - Name: opGetIntegrationResponse, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}", - } - - if input == nil { - input = &GetIntegrationResponseInput{} - } - - req = c.newRequest(op, input, output) - output = &IntegrationResponse{} - req.Data = output - return -} - -// Represents a get integration response. -func (c *APIGateway) GetIntegrationResponse(input *GetIntegrationResponseInput) (*IntegrationResponse, error) { - req, out := c.GetIntegrationResponseRequest(input) - err := req.Send() - return out, err -} - -const opGetMethod = "GetMethod" - -// GetMethodRequest generates a request for the GetMethod operation. -func (c *APIGateway) GetMethodRequest(input *GetMethodInput) (req *request.Request, output *Method) { - op := &request.Operation{ - Name: opGetMethod, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}", - } - - if input == nil { - input = &GetMethodInput{} - } - - req = c.newRequest(op, input, output) - output = &Method{} - req.Data = output - return -} - -// Describe an existing Method resource. -func (c *APIGateway) GetMethod(input *GetMethodInput) (*Method, error) { - req, out := c.GetMethodRequest(input) - err := req.Send() - return out, err -} - -const opGetMethodResponse = "GetMethodResponse" - -// GetMethodResponseRequest generates a request for the GetMethodResponse operation. -func (c *APIGateway) GetMethodResponseRequest(input *GetMethodResponseInput) (req *request.Request, output *MethodResponse) { - op := &request.Operation{ - Name: opGetMethodResponse, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", - } - - if input == nil { - input = &GetMethodResponseInput{} - } - - req = c.newRequest(op, input, output) - output = &MethodResponse{} - req.Data = output - return -} - -// Describes a MethodResponse resource. -func (c *APIGateway) GetMethodResponse(input *GetMethodResponseInput) (*MethodResponse, error) { - req, out := c.GetMethodResponseRequest(input) - err := req.Send() - return out, err -} - -const opGetModel = "GetModel" - -// GetModelRequest generates a request for the GetModel operation. -func (c *APIGateway) GetModelRequest(input *GetModelInput) (req *request.Request, output *Model) { - op := &request.Operation{ - Name: opGetModel, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/models/{model_name}", - } - - if input == nil { - input = &GetModelInput{} - } - - req = c.newRequest(op, input, output) - output = &Model{} - req.Data = output - return -} - -// Describes an existing model defined for a RestApi resource. -func (c *APIGateway) GetModel(input *GetModelInput) (*Model, error) { - req, out := c.GetModelRequest(input) - err := req.Send() - return out, err -} - -const opGetModelTemplate = "GetModelTemplate" - -// GetModelTemplateRequest generates a request for the GetModelTemplate operation. -func (c *APIGateway) GetModelTemplateRequest(input *GetModelTemplateInput) (req *request.Request, output *GetModelTemplateOutput) { - op := &request.Operation{ - Name: opGetModelTemplate, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/models/{model_name}/default_template", - } - - if input == nil { - input = &GetModelTemplateInput{} - } - - req = c.newRequest(op, input, output) - output = &GetModelTemplateOutput{} - req.Data = output - return -} - -// Generates a sample mapping template that can be used to transform a payload -// into the structure of a model. -func (c *APIGateway) GetModelTemplate(input *GetModelTemplateInput) (*GetModelTemplateOutput, error) { - req, out := c.GetModelTemplateRequest(input) - err := req.Send() - return out, err -} - -const opGetModels = "GetModels" - -// GetModelsRequest generates a request for the GetModels operation. -func (c *APIGateway) GetModelsRequest(input *GetModelsInput) (req *request.Request, output *GetModelsOutput) { - op := &request.Operation{ - Name: opGetModels, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/models", - Paginator: &request.Paginator{ - InputTokens: []string{"position"}, - OutputTokens: []string{"position"}, - LimitToken: "limit", - TruncationToken: "", - }, - } - - if input == nil { - input = &GetModelsInput{} - } - - req = c.newRequest(op, input, output) - output = &GetModelsOutput{} - req.Data = output - return -} - -// Describes existing Models defined for a RestApi resource. -func (c *APIGateway) GetModels(input *GetModelsInput) (*GetModelsOutput, error) { - req, out := c.GetModelsRequest(input) - err := req.Send() - return out, err -} - -func (c *APIGateway) GetModelsPages(input *GetModelsInput, fn func(p *GetModelsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.GetModelsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*GetModelsOutput), lastPage) - }) -} - -const opGetResource = "GetResource" - -// GetResourceRequest generates a request for the GetResource operation. -func (c *APIGateway) GetResourceRequest(input *GetResourceInput) (req *request.Request, output *Resource) { - op := &request.Operation{ - Name: opGetResource, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}", - } - - if input == nil { - input = &GetResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &Resource{} - req.Data = output - return -} - -// Lists information about a resource. -func (c *APIGateway) GetResource(input *GetResourceInput) (*Resource, error) { - req, out := c.GetResourceRequest(input) - err := req.Send() - return out, err -} - -const opGetResources = "GetResources" - -// GetResourcesRequest generates a request for the GetResources operation. -func (c *APIGateway) GetResourcesRequest(input *GetResourcesInput) (req *request.Request, output *GetResourcesOutput) { - op := &request.Operation{ - Name: opGetResources, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/resources", - Paginator: &request.Paginator{ - InputTokens: []string{"position"}, - OutputTokens: []string{"position"}, - LimitToken: "limit", - TruncationToken: "", - }, - } - - if input == nil { - input = &GetResourcesInput{} - } - - req = c.newRequest(op, input, output) - output = &GetResourcesOutput{} - req.Data = output - return -} - -// Lists information about a collection of Resource resources. -func (c *APIGateway) GetResources(input *GetResourcesInput) (*GetResourcesOutput, error) { - req, out := c.GetResourcesRequest(input) - err := req.Send() - return out, err -} - -func (c *APIGateway) GetResourcesPages(input *GetResourcesInput, fn func(p *GetResourcesOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.GetResourcesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*GetResourcesOutput), lastPage) - }) -} - -const opGetRestApi = "GetRestApi" - -// GetRestApiRequest generates a request for the GetRestApi operation. -func (c *APIGateway) GetRestApiRequest(input *GetRestApiInput) (req *request.Request, output *RestApi) { - op := &request.Operation{ - Name: opGetRestApi, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}", - } - - if input == nil { - input = &GetRestApiInput{} - } - - req = c.newRequest(op, input, output) - output = &RestApi{} - req.Data = output - return -} - -// Lists the RestApi resource in the collection. -func (c *APIGateway) GetRestApi(input *GetRestApiInput) (*RestApi, error) { - req, out := c.GetRestApiRequest(input) - err := req.Send() - return out, err -} - -const opGetRestApis = "GetRestApis" - -// GetRestApisRequest generates a request for the GetRestApis operation. -func (c *APIGateway) GetRestApisRequest(input *GetRestApisInput) (req *request.Request, output *GetRestApisOutput) { - op := &request.Operation{ - Name: opGetRestApis, - HTTPMethod: "GET", - HTTPPath: "/restapis", - Paginator: &request.Paginator{ - InputTokens: []string{"position"}, - OutputTokens: []string{"position"}, - LimitToken: "limit", - TruncationToken: "", - }, - } - - if input == nil { - input = &GetRestApisInput{} - } - - req = c.newRequest(op, input, output) - output = &GetRestApisOutput{} - req.Data = output - return -} - -// Lists the RestApis resources for your collection. -func (c *APIGateway) GetRestApis(input *GetRestApisInput) (*GetRestApisOutput, error) { - req, out := c.GetRestApisRequest(input) - err := req.Send() - return out, err -} - -func (c *APIGateway) GetRestApisPages(input *GetRestApisInput, fn func(p *GetRestApisOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.GetRestApisRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*GetRestApisOutput), lastPage) - }) -} - -const opGetSdk = "GetSdk" - -// GetSdkRequest generates a request for the GetSdk operation. -func (c *APIGateway) GetSdkRequest(input *GetSdkInput) (req *request.Request, output *GetSdkOutput) { - op := &request.Operation{ - Name: opGetSdk, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}/sdks/{sdk_type}", - } - - if input == nil { - input = &GetSdkInput{} - } - - req = c.newRequest(op, input, output) - output = &GetSdkOutput{} - req.Data = output - return -} - -// Generates a client SDK for a RestApi and Stage. -func (c *APIGateway) GetSdk(input *GetSdkInput) (*GetSdkOutput, error) { - req, out := c.GetSdkRequest(input) - err := req.Send() - return out, err -} - -const opGetStage = "GetStage" - -// GetStageRequest generates a request for the GetStage operation. -func (c *APIGateway) GetStageRequest(input *GetStageInput) (req *request.Request, output *Stage) { - op := &request.Operation{ - Name: opGetStage, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}", - } - - if input == nil { - input = &GetStageInput{} - } - - req = c.newRequest(op, input, output) - output = &Stage{} - req.Data = output - return -} - -// Gets information about a Stage resource. -func (c *APIGateway) GetStage(input *GetStageInput) (*Stage, error) { - req, out := c.GetStageRequest(input) - err := req.Send() - return out, err -} - -const opGetStages = "GetStages" - -// GetStagesRequest generates a request for the GetStages operation. -func (c *APIGateway) GetStagesRequest(input *GetStagesInput) (req *request.Request, output *GetStagesOutput) { - op := &request.Operation{ - Name: opGetStages, - HTTPMethod: "GET", - HTTPPath: "/restapis/{restapi_id}/stages", - } - - if input == nil { - input = &GetStagesInput{} - } - - req = c.newRequest(op, input, output) - output = &GetStagesOutput{} - req.Data = output - return -} - -// Gets information about one or more Stage resources. -func (c *APIGateway) GetStages(input *GetStagesInput) (*GetStagesOutput, error) { - req, out := c.GetStagesRequest(input) - err := req.Send() - return out, err -} - -const opImportRestApi = "ImportRestApi" - -// ImportRestApiRequest generates a request for the ImportRestApi operation. -func (c *APIGateway) ImportRestApiRequest(input *ImportRestApiInput) (req *request.Request, output *RestApi) { - op := &request.Operation{ - Name: opImportRestApi, - HTTPMethod: "POST", - HTTPPath: "/restapis?mode=import", - } - - if input == nil { - input = &ImportRestApiInput{} - } - - req = c.newRequest(op, input, output) - output = &RestApi{} - req.Data = output - return -} - -// A feature of the Amazon API Gateway control service for creating a new API -// from an external API definition file. -func (c *APIGateway) ImportRestApi(input *ImportRestApiInput) (*RestApi, error) { - req, out := c.ImportRestApiRequest(input) - err := req.Send() - return out, err -} - -const opPutIntegration = "PutIntegration" - -// PutIntegrationRequest generates a request for the PutIntegration operation. -func (c *APIGateway) PutIntegrationRequest(input *PutIntegrationInput) (req *request.Request, output *Integration) { - op := &request.Operation{ - Name: opPutIntegration, - HTTPMethod: "PUT", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", - } - - if input == nil { - input = &PutIntegrationInput{} - } - - req = c.newRequest(op, input, output) - output = &Integration{} - req.Data = output - return -} - -// Represents a put integration. -func (c *APIGateway) PutIntegration(input *PutIntegrationInput) (*Integration, error) { - req, out := c.PutIntegrationRequest(input) - err := req.Send() - return out, err -} - -const opPutIntegrationResponse = "PutIntegrationResponse" - -// PutIntegrationResponseRequest generates a request for the PutIntegrationResponse operation. -func (c *APIGateway) PutIntegrationResponseRequest(input *PutIntegrationResponseInput) (req *request.Request, output *IntegrationResponse) { - op := &request.Operation{ - Name: opPutIntegrationResponse, - HTTPMethod: "PUT", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}", - } - - if input == nil { - input = &PutIntegrationResponseInput{} - } - - req = c.newRequest(op, input, output) - output = &IntegrationResponse{} - req.Data = output - return -} - -// Represents a put integration. -func (c *APIGateway) PutIntegrationResponse(input *PutIntegrationResponseInput) (*IntegrationResponse, error) { - req, out := c.PutIntegrationResponseRequest(input) - err := req.Send() - return out, err -} - -const opPutMethod = "PutMethod" - -// PutMethodRequest generates a request for the PutMethod operation. -func (c *APIGateway) PutMethodRequest(input *PutMethodInput) (req *request.Request, output *Method) { - op := &request.Operation{ - Name: opPutMethod, - HTTPMethod: "PUT", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}", - } - - if input == nil { - input = &PutMethodInput{} - } - - req = c.newRequest(op, input, output) - output = &Method{} - req.Data = output - return -} - -// Add a method to an existing Resource resource. -func (c *APIGateway) PutMethod(input *PutMethodInput) (*Method, error) { - req, out := c.PutMethodRequest(input) - err := req.Send() - return out, err -} - -const opPutMethodResponse = "PutMethodResponse" - -// PutMethodResponseRequest generates a request for the PutMethodResponse operation. -func (c *APIGateway) PutMethodResponseRequest(input *PutMethodResponseInput) (req *request.Request, output *MethodResponse) { - op := &request.Operation{ - Name: opPutMethodResponse, - HTTPMethod: "PUT", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", - } - - if input == nil { - input = &PutMethodResponseInput{} - } - - req = c.newRequest(op, input, output) - output = &MethodResponse{} - req.Data = output - return -} - -// Adds a MethodResponse to an existing Method resource. -func (c *APIGateway) PutMethodResponse(input *PutMethodResponseInput) (*MethodResponse, error) { - req, out := c.PutMethodResponseRequest(input) - err := req.Send() - return out, err -} - -const opPutRestApi = "PutRestApi" - -// PutRestApiRequest generates a request for the PutRestApi operation. -func (c *APIGateway) PutRestApiRequest(input *PutRestApiInput) (req *request.Request, output *RestApi) { - op := &request.Operation{ - Name: opPutRestApi, - HTTPMethod: "PUT", - HTTPPath: "/restapis/{restapi_id}", - } - - if input == nil { - input = &PutRestApiInput{} - } - - req = c.newRequest(op, input, output) - output = &RestApi{} - req.Data = output - return -} - -// A feature of the Amazon API Gateway control service for updating an existing -// API with an input of external API definitions. The update can take the form -// of merging the supplied definition into the existing API or overwriting the -// existing API. -func (c *APIGateway) PutRestApi(input *PutRestApiInput) (*RestApi, error) { - req, out := c.PutRestApiRequest(input) - err := req.Send() - return out, err -} - -const opTestInvokeAuthorizer = "TestInvokeAuthorizer" - -// TestInvokeAuthorizerRequest generates a request for the TestInvokeAuthorizer operation. -func (c *APIGateway) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInput) (req *request.Request, output *TestInvokeAuthorizerOutput) { - op := &request.Operation{ - Name: opTestInvokeAuthorizer, - HTTPMethod: "POST", - HTTPPath: "/restapis/{restapi_id}/authorizers/{authorizer_id}", - } - - if input == nil { - input = &TestInvokeAuthorizerInput{} - } - - req = c.newRequest(op, input, output) - output = &TestInvokeAuthorizerOutput{} - req.Data = output - return -} - -// Simulate the execution of an Authorizer in your RestApi with headers, parameters, -// and an incoming request body. -func (c *APIGateway) TestInvokeAuthorizer(input *TestInvokeAuthorizerInput) (*TestInvokeAuthorizerOutput, error) { - req, out := c.TestInvokeAuthorizerRequest(input) - err := req.Send() - return out, err -} - -const opTestInvokeMethod = "TestInvokeMethod" - -// TestInvokeMethodRequest generates a request for the TestInvokeMethod operation. -func (c *APIGateway) TestInvokeMethodRequest(input *TestInvokeMethodInput) (req *request.Request, output *TestInvokeMethodOutput) { - op := &request.Operation{ - Name: opTestInvokeMethod, - HTTPMethod: "POST", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}", - } - - if input == nil { - input = &TestInvokeMethodInput{} - } - - req = c.newRequest(op, input, output) - output = &TestInvokeMethodOutput{} - req.Data = output - return -} - -// Simulate the execution of a Method in your RestApi with headers, parameters, -// and an incoming request body. -func (c *APIGateway) TestInvokeMethod(input *TestInvokeMethodInput) (*TestInvokeMethodOutput, error) { - req, out := c.TestInvokeMethodRequest(input) - err := req.Send() - return out, err -} - -const opUpdateAccount = "UpdateAccount" - -// UpdateAccountRequest generates a request for the UpdateAccount operation. -func (c *APIGateway) UpdateAccountRequest(input *UpdateAccountInput) (req *request.Request, output *Account) { - op := &request.Operation{ - Name: opUpdateAccount, - HTTPMethod: "PATCH", - HTTPPath: "/account", - } - - if input == nil { - input = &UpdateAccountInput{} - } - - req = c.newRequest(op, input, output) - output = &Account{} - req.Data = output - return -} - -// Changes information about the current Account resource. -func (c *APIGateway) UpdateAccount(input *UpdateAccountInput) (*Account, error) { - req, out := c.UpdateAccountRequest(input) - err := req.Send() - return out, err -} - -const opUpdateApiKey = "UpdateApiKey" - -// UpdateApiKeyRequest generates a request for the UpdateApiKey operation. -func (c *APIGateway) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request.Request, output *ApiKey) { - op := &request.Operation{ - Name: opUpdateApiKey, - HTTPMethod: "PATCH", - HTTPPath: "/apikeys/{api_Key}", - } - - if input == nil { - input = &UpdateApiKeyInput{} - } - - req = c.newRequest(op, input, output) - output = &ApiKey{} - req.Data = output - return -} - -// Changes information about an ApiKey resource. -func (c *APIGateway) UpdateApiKey(input *UpdateApiKeyInput) (*ApiKey, error) { - req, out := c.UpdateApiKeyRequest(input) - err := req.Send() - return out, err -} - -const opUpdateAuthorizer = "UpdateAuthorizer" - -// UpdateAuthorizerRequest generates a request for the UpdateAuthorizer operation. -func (c *APIGateway) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (req *request.Request, output *Authorizer) { - op := &request.Operation{ - Name: opUpdateAuthorizer, - HTTPMethod: "PATCH", - HTTPPath: "/restapis/{restapi_id}/authorizers/{authorizer_id}", - } - - if input == nil { - input = &UpdateAuthorizerInput{} - } - - req = c.newRequest(op, input, output) - output = &Authorizer{} - req.Data = output - return -} - -// Updates an existing Authorizer resource. -func (c *APIGateway) UpdateAuthorizer(input *UpdateAuthorizerInput) (*Authorizer, error) { - req, out := c.UpdateAuthorizerRequest(input) - err := req.Send() - return out, err -} - -const opUpdateBasePathMapping = "UpdateBasePathMapping" - -// UpdateBasePathMappingRequest generates a request for the UpdateBasePathMapping operation. -func (c *APIGateway) UpdateBasePathMappingRequest(input *UpdateBasePathMappingInput) (req *request.Request, output *BasePathMapping) { - op := &request.Operation{ - Name: opUpdateBasePathMapping, - HTTPMethod: "PATCH", - HTTPPath: "/domainnames/{domain_name}/basepathmappings/{base_path}", - } - - if input == nil { - input = &UpdateBasePathMappingInput{} - } - - req = c.newRequest(op, input, output) - output = &BasePathMapping{} - req.Data = output - return -} - -// Changes information about the BasePathMapping resource. -func (c *APIGateway) UpdateBasePathMapping(input *UpdateBasePathMappingInput) (*BasePathMapping, error) { - req, out := c.UpdateBasePathMappingRequest(input) - err := req.Send() - return out, err -} - -const opUpdateClientCertificate = "UpdateClientCertificate" - -// UpdateClientCertificateRequest generates a request for the UpdateClientCertificate operation. -func (c *APIGateway) UpdateClientCertificateRequest(input *UpdateClientCertificateInput) (req *request.Request, output *ClientCertificate) { - op := &request.Operation{ - Name: opUpdateClientCertificate, - HTTPMethod: "PATCH", - HTTPPath: "/clientcertificates/{clientcertificate_id}", - } - - if input == nil { - input = &UpdateClientCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &ClientCertificate{} - req.Data = output - return -} - -// Changes information about an ClientCertificate resource. -func (c *APIGateway) UpdateClientCertificate(input *UpdateClientCertificateInput) (*ClientCertificate, error) { - req, out := c.UpdateClientCertificateRequest(input) - err := req.Send() - return out, err -} - -const opUpdateDeployment = "UpdateDeployment" - -// UpdateDeploymentRequest generates a request for the UpdateDeployment operation. -func (c *APIGateway) UpdateDeploymentRequest(input *UpdateDeploymentInput) (req *request.Request, output *Deployment) { - op := &request.Operation{ - Name: opUpdateDeployment, - HTTPMethod: "PATCH", - HTTPPath: "/restapis/{restapi_id}/deployments/{deployment_id}", - } - - if input == nil { - input = &UpdateDeploymentInput{} - } - - req = c.newRequest(op, input, output) - output = &Deployment{} - req.Data = output - return -} - -// Changes information about a Deployment resource. -func (c *APIGateway) UpdateDeployment(input *UpdateDeploymentInput) (*Deployment, error) { - req, out := c.UpdateDeploymentRequest(input) - err := req.Send() - return out, err -} - -const opUpdateDomainName = "UpdateDomainName" - -// UpdateDomainNameRequest generates a request for the UpdateDomainName operation. -func (c *APIGateway) UpdateDomainNameRequest(input *UpdateDomainNameInput) (req *request.Request, output *DomainName) { - op := &request.Operation{ - Name: opUpdateDomainName, - HTTPMethod: "PATCH", - HTTPPath: "/domainnames/{domain_name}", - } - - if input == nil { - input = &UpdateDomainNameInput{} - } - - req = c.newRequest(op, input, output) - output = &DomainName{} - req.Data = output - return -} - -// Changes information about the DomainName resource. -func (c *APIGateway) UpdateDomainName(input *UpdateDomainNameInput) (*DomainName, error) { - req, out := c.UpdateDomainNameRequest(input) - err := req.Send() - return out, err -} - -const opUpdateIntegration = "UpdateIntegration" - -// UpdateIntegrationRequest generates a request for the UpdateIntegration operation. -func (c *APIGateway) UpdateIntegrationRequest(input *UpdateIntegrationInput) (req *request.Request, output *Integration) { - op := &request.Operation{ - Name: opUpdateIntegration, - HTTPMethod: "PATCH", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", - } - - if input == nil { - input = &UpdateIntegrationInput{} - } - - req = c.newRequest(op, input, output) - output = &Integration{} - req.Data = output - return -} - -// Represents an update integration. -func (c *APIGateway) UpdateIntegration(input *UpdateIntegrationInput) (*Integration, error) { - req, out := c.UpdateIntegrationRequest(input) - err := req.Send() - return out, err -} - -const opUpdateIntegrationResponse = "UpdateIntegrationResponse" - -// UpdateIntegrationResponseRequest generates a request for the UpdateIntegrationResponse operation. -func (c *APIGateway) UpdateIntegrationResponseRequest(input *UpdateIntegrationResponseInput) (req *request.Request, output *IntegrationResponse) { - op := &request.Operation{ - Name: opUpdateIntegrationResponse, - HTTPMethod: "PATCH", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}", - } - - if input == nil { - input = &UpdateIntegrationResponseInput{} - } - - req = c.newRequest(op, input, output) - output = &IntegrationResponse{} - req.Data = output - return -} - -// Represents an update integration response. -func (c *APIGateway) UpdateIntegrationResponse(input *UpdateIntegrationResponseInput) (*IntegrationResponse, error) { - req, out := c.UpdateIntegrationResponseRequest(input) - err := req.Send() - return out, err -} - -const opUpdateMethod = "UpdateMethod" - -// UpdateMethodRequest generates a request for the UpdateMethod operation. -func (c *APIGateway) UpdateMethodRequest(input *UpdateMethodInput) (req *request.Request, output *Method) { - op := &request.Operation{ - Name: opUpdateMethod, - HTTPMethod: "PATCH", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}", - } - - if input == nil { - input = &UpdateMethodInput{} - } - - req = c.newRequest(op, input, output) - output = &Method{} - req.Data = output - return -} - -// Updates an existing Method resource. -func (c *APIGateway) UpdateMethod(input *UpdateMethodInput) (*Method, error) { - req, out := c.UpdateMethodRequest(input) - err := req.Send() - return out, err -} - -const opUpdateMethodResponse = "UpdateMethodResponse" - -// UpdateMethodResponseRequest generates a request for the UpdateMethodResponse operation. -func (c *APIGateway) UpdateMethodResponseRequest(input *UpdateMethodResponseInput) (req *request.Request, output *MethodResponse) { - op := &request.Operation{ - Name: opUpdateMethodResponse, - HTTPMethod: "PATCH", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", - } - - if input == nil { - input = &UpdateMethodResponseInput{} - } - - req = c.newRequest(op, input, output) - output = &MethodResponse{} - req.Data = output - return -} - -// Updates an existing MethodResponse resource. -func (c *APIGateway) UpdateMethodResponse(input *UpdateMethodResponseInput) (*MethodResponse, error) { - req, out := c.UpdateMethodResponseRequest(input) - err := req.Send() - return out, err -} - -const opUpdateModel = "UpdateModel" - -// UpdateModelRequest generates a request for the UpdateModel operation. -func (c *APIGateway) UpdateModelRequest(input *UpdateModelInput) (req *request.Request, output *Model) { - op := &request.Operation{ - Name: opUpdateModel, - HTTPMethod: "PATCH", - HTTPPath: "/restapis/{restapi_id}/models/{model_name}", - } - - if input == nil { - input = &UpdateModelInput{} - } - - req = c.newRequest(op, input, output) - output = &Model{} - req.Data = output - return -} - -// Changes information about a model. -func (c *APIGateway) UpdateModel(input *UpdateModelInput) (*Model, error) { - req, out := c.UpdateModelRequest(input) - err := req.Send() - return out, err -} - -const opUpdateResource = "UpdateResource" - -// UpdateResourceRequest generates a request for the UpdateResource operation. -func (c *APIGateway) UpdateResourceRequest(input *UpdateResourceInput) (req *request.Request, output *Resource) { - op := &request.Operation{ - Name: opUpdateResource, - HTTPMethod: "PATCH", - HTTPPath: "/restapis/{restapi_id}/resources/{resource_id}", - } - - if input == nil { - input = &UpdateResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &Resource{} - req.Data = output - return -} - -// Changes information about a Resource resource. -func (c *APIGateway) UpdateResource(input *UpdateResourceInput) (*Resource, error) { - req, out := c.UpdateResourceRequest(input) - err := req.Send() - return out, err -} - -const opUpdateRestApi = "UpdateRestApi" - -// UpdateRestApiRequest generates a request for the UpdateRestApi operation. -func (c *APIGateway) UpdateRestApiRequest(input *UpdateRestApiInput) (req *request.Request, output *RestApi) { - op := &request.Operation{ - Name: opUpdateRestApi, - HTTPMethod: "PATCH", - HTTPPath: "/restapis/{restapi_id}", - } - - if input == nil { - input = &UpdateRestApiInput{} - } - - req = c.newRequest(op, input, output) - output = &RestApi{} - req.Data = output - return -} - -// Changes information about the specified API. -func (c *APIGateway) UpdateRestApi(input *UpdateRestApiInput) (*RestApi, error) { - req, out := c.UpdateRestApiRequest(input) - err := req.Send() - return out, err -} - -const opUpdateStage = "UpdateStage" - -// UpdateStageRequest generates a request for the UpdateStage operation. -func (c *APIGateway) UpdateStageRequest(input *UpdateStageInput) (req *request.Request, output *Stage) { - op := &request.Operation{ - Name: opUpdateStage, - HTTPMethod: "PATCH", - HTTPPath: "/restapis/{restapi_id}/stages/{stage_name}", - } - - if input == nil { - input = &UpdateStageInput{} - } - - req = c.newRequest(op, input, output) - output = &Stage{} - req.Data = output - return -} - -// Changes information about a Stage resource. -func (c *APIGateway) UpdateStage(input *UpdateStageInput) (*Stage, error) { - req, out := c.UpdateStageRequest(input) - err := req.Send() - return out, err -} - -// Represents an AWS account that is associated with Amazon API Gateway. -type Account struct { - _ struct{} `type:"structure"` - - // Specifies the Amazon resource name (ARN) of an Amazon CloudWatch role for - // the current Account resource. - CloudwatchRoleArn *string `locationName:"cloudwatchRoleArn" type:"string"` - - // Specifies the application programming interface (API) throttle settings for - // the current Account resource. - ThrottleSettings *ThrottleSettings `locationName:"throttleSettings" type:"structure"` -} - -// String returns the string representation -func (s Account) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Account) GoString() string { - return s.String() -} - -// A resource that can be distributed to callers for executing Method resources -// that require an API key. API keys can be mapped to any Stage on any RestApi, -// which indicates that the callers with the API key can make requests to that -// stage. -type ApiKey struct { - _ struct{} `type:"structure"` - - // The date when the API Key was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). - CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` - - // The description of the API Key. - Description *string `locationName:"description" type:"string"` - - // Specifies whether the API Key can be used by callers. - Enabled *bool `locationName:"enabled" type:"boolean"` - - // The identifier of the API Key. - Id *string `locationName:"id" type:"string"` - - // When the API Key was last updated, in ISO 8601 format. - LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"` - - // The name of the API Key. - Name *string `locationName:"name" type:"string"` - - // A list of Stage resources that are associated with the ApiKey resource. - StageKeys []*string `locationName:"stageKeys" type:"list"` -} - -// String returns the string representation -func (s ApiKey) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ApiKey) GoString() string { - return s.String() -} - -// Represents an authorization layer for methods. If enabled on a method, API -// Gateway will activate the authorizer when a client calls the method. -type Authorizer struct { - _ struct{} `type:"structure"` - - // Optional customer-defined field, used in Swagger imports/exports. Has no - // functional impact. - AuthType *string `locationName:"authType" type:"string"` - - // Specifies the credentials required for the authorizer, if any. Two options - // are available. To specify an IAM Role for Amazon API Gateway to assume, use - // the role's Amazon Resource Name (ARN). To use resource-based permissions - // on the Lambda function, specify null. - AuthorizerCredentials *string `locationName:"authorizerCredentials" type:"string"` - - // The TTL in seconds of cached authorizer results. If greater than 0, API Gateway - // will cache authorizer responses. If this field is not set, the default value - // is 300. The maximum value is 3600, or 1 hour. - AuthorizerResultTtlInSeconds *int64 `locationName:"authorizerResultTtlInSeconds" type:"integer"` - - // [Required] Specifies the authorizer's Uniform Resource Identifier (URI). - // For TOKEN authorizers, this must be a well-formed Lambda function URI. The - // URI should be of the form arn:aws:apigateway:{region}:lambda:path/{service_api}. - // Region is used to determine the right endpoint. In this case, path is used - // to indicate that the remaining substring in the URI should be treated as - // the path to the resource, including the initial /. For Lambda functions, - // this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations - AuthorizerUri *string `locationName:"authorizerUri" type:"string"` - - // The identifier for the authorizer resource. - Id *string `locationName:"id" type:"string"` - - // [Required] The source of the identity in an incoming request. For TOKEN authorizers, - // this value is a mapping expression with the same syntax as integration parameter - // mappings. The only valid source for tokens is 'header', so the expression - // should match 'method.request.header.[headerName]'. The value of the header - // '[headerName]' will be interpreted as the incoming token. - IdentitySource *string `locationName:"identitySource" type:"string"` - - // A validation expression for the incoming identity. For TOKEN authorizers, - // this value should be a regular expression. The incoming token from the client - // is matched against this expression, and will proceed if the token matches. - // If the token doesn't match, the client receives a 401 Unauthorized response. - IdentityValidationExpression *string `locationName:"identityValidationExpression" type:"string"` - - // [Required] The name of the authorizer. - Name *string `locationName:"name" type:"string"` - - // [Required] The type of the authorizer. Currently, the only valid type is - // TOKEN. - Type *string `locationName:"type" type:"string" enum:"AuthorizerType"` -} - -// String returns the string representation -func (s Authorizer) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Authorizer) GoString() string { - return s.String() -} - -// Represents the base path that callers of the API that must provide as part -// of the URL after the domain name. -type BasePathMapping struct { - _ struct{} `type:"structure"` - - // The base path name that callers of the API must provide as part of the URL - // after the domain name. - BasePath *string `locationName:"basePath" type:"string"` - - // The name of the API. - RestApiId *string `locationName:"restApiId" type:"string"` - - // The name of the API's stage. - Stage *string `locationName:"stage" type:"string"` -} - -// String returns the string representation -func (s BasePathMapping) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BasePathMapping) GoString() string { - return s.String() -} - -// Represents a Client Certificate used to configure client-side SSL authentication -// while sending requests to the integration endpoint. -type ClientCertificate struct { - _ struct{} `type:"structure"` - - // The identifier of the Client Certificate. - ClientCertificateId *string `locationName:"clientCertificateId" type:"string"` - - // The date when the Client Certificate was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). - CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` - - // The description of the Client Certificate. - Description *string `locationName:"description" type:"string"` - - // The date when the Client Certificate will expire, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). - ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp" timestampFormat:"unix"` - - // The PEM-encoded public key of the Client Certificate, that can be used to - // configure certificate authentication in the integration endpoint . - PemEncodedCertificate *string `locationName:"pemEncodedCertificate" type:"string"` -} - -// String returns the string representation -func (s ClientCertificate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ClientCertificate) GoString() string { - return s.String() -} - -// Request to create an ApiKey resource. -type CreateApiKeyInput struct { - _ struct{} `type:"structure"` - - // The description of the ApiKey. - Description *string `locationName:"description" type:"string"` - - // Specifies whether the ApiKey can be used by callers. - Enabled *bool `locationName:"enabled" type:"boolean"` - - // The name of the ApiKey. - Name *string `locationName:"name" type:"string"` - - // Specifies whether the ApiKey can be used by callers. - StageKeys []*StageKey `locationName:"stageKeys" type:"list"` -} - -// String returns the string representation -func (s CreateApiKeyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateApiKeyInput) GoString() string { - return s.String() -} - -// Request to add a new Authorizer to an existing RestApi resource. -type CreateAuthorizerInput struct { - _ struct{} `type:"structure"` - - // Optional customer-defined field, used in Swagger imports/exports. Has no - // functional impact. - AuthType *string `locationName:"authType" type:"string"` - - // Specifies the credentials required for the authorizer, if any. - AuthorizerCredentials *string `locationName:"authorizerCredentials" type:"string"` - - // The TTL of cached authorizer results. - AuthorizerResultTtlInSeconds *int64 `locationName:"authorizerResultTtlInSeconds" type:"integer"` - - // [Required] Specifies the authorizer's Uniform Resource Identifier (URI). - AuthorizerUri *string `locationName:"authorizerUri" type:"string" required:"true"` - - // [Required] The source of the identity in an incoming request. - IdentitySource *string `locationName:"identitySource" type:"string" required:"true"` - - // A validation expression for the incoming identity. - IdentityValidationExpression *string `locationName:"identityValidationExpression" type:"string"` - - // [Required] The name of the authorizer. - Name *string `locationName:"name" type:"string" required:"true"` - - // The RestApi identifier under which the Authorizer will be created. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // [Required] The type of the authorizer. - Type *string `locationName:"type" type:"string" required:"true" enum:"AuthorizerType"` -} - -// String returns the string representation -func (s CreateAuthorizerInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAuthorizerInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAuthorizerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAuthorizerInput"} - if s.AuthorizerUri == nil { - invalidParams.Add(request.NewErrParamRequired("AuthorizerUri")) - } - if s.IdentitySource == nil { - invalidParams.Add(request.NewErrParamRequired("IdentitySource")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Requests Amazon API Gateway to create a new BasePathMapping resource. -type CreateBasePathMappingInput struct { - _ struct{} `type:"structure"` - - // The base path name that callers of the API must provide as part of the URL - // after the domain name. This value must be unique for all of the mappings - // across a single API. Leave this blank if you do not want callers to specify - // a base path name after the domain name. - BasePath *string `locationName:"basePath" type:"string"` - - // The domain name of the BasePathMapping resource to create. - DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"` - - // The name of the API that you want to apply this mapping to. - RestApiId *string `locationName:"restApiId" type:"string" required:"true"` - - // The name of the API's stage that you want to use for this mapping. Leave - // this blank if you do not want callers to explicitly specify the stage name - // after any base path name. - Stage *string `locationName:"stage" type:"string"` -} - -// String returns the string representation -func (s CreateBasePathMappingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateBasePathMappingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateBasePathMappingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateBasePathMappingInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Requests Amazon API Gateway to create a Deployment resource. -type CreateDeploymentInput struct { - _ struct{} `type:"structure"` - - // Enables a cache cluster for the Stage resource specified in the input. - CacheClusterEnabled *bool `locationName:"cacheClusterEnabled" type:"boolean"` - - // Specifies the cache cluster size for the Stage resource specified in the - // input, if a cache cluster is enabled. - CacheClusterSize *string `locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize"` - - // The description for the Deployment resource to create. - Description *string `locationName:"description" type:"string"` - - // The RestApi resource identifier for the Deployment resource to create. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The description of the Stage resource for the Deployment resource to create. - StageDescription *string `locationName:"stageDescription" type:"string"` - - // The name of the Stage resource for the Deployment resource to create. - StageName *string `locationName:"stageName" type:"string" required:"true"` - - // A map that defines the stage variables for the Stage resource that is associated - // with the new deployment. Variable names can have alphanumeric characters, - // and the values must match [A-Za-z0-9-._~:/?#&=,]+. - Variables map[string]*string `locationName:"variables" type:"map"` -} - -// String returns the string representation -func (s CreateDeploymentInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateDeploymentInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A request to create a new domain name. -type CreateDomainNameInput struct { - _ struct{} `type:"structure"` - - // The body of the server certificate provided by your certificate authority. - CertificateBody *string `locationName:"certificateBody" type:"string" required:"true"` - - // The intermediate certificates and optionally the root certificate, one after - // the other without any blank lines. If you include the root certificate, your - // certificate chain must start with intermediate certificates and end with - // the root certificate. Use the intermediate certificates that were provided - // by your certificate authority. Do not include any intermediaries that are - // not in the chain of trust path. - CertificateChain *string `locationName:"certificateChain" type:"string" required:"true"` - - // The name of the certificate. - CertificateName *string `locationName:"certificateName" type:"string" required:"true"` - - // Your certificate's private key. - CertificatePrivateKey *string `locationName:"certificatePrivateKey" type:"string" required:"true"` - - // The name of the DomainName resource. - DomainName *string `locationName:"domainName" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateDomainNameInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateDomainNameInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDomainNameInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDomainNameInput"} - if s.CertificateBody == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateBody")) - } - if s.CertificateChain == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateChain")) - } - if s.CertificateName == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateName")) - } - if s.CertificatePrivateKey == nil { - invalidParams.Add(request.NewErrParamRequired("CertificatePrivateKey")) - } - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to add a new Model to an existing RestApi resource. -type CreateModelInput struct { - _ struct{} `type:"structure"` - - // The content-type for the model. - ContentType *string `locationName:"contentType" type:"string" required:"true"` - - // The description of the model. - Description *string `locationName:"description" type:"string"` - - // The name of the model. - Name *string `locationName:"name" type:"string" required:"true"` - - // The RestApi identifier under which the Model will be created. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The schema for the model. For application/json models, this should be JSON-schema - // draft v4 (http://json-schema.org/documentation.html" target="_blank) model. - Schema *string `locationName:"schema" type:"string"` -} - -// String returns the string representation -func (s CreateModelInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateModelInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"} - if s.ContentType == nil { - invalidParams.Add(request.NewErrParamRequired("ContentType")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Requests Amazon API Gateway to create a Resource resource. -type CreateResourceInput struct { - _ struct{} `type:"structure"` - - // The parent resource's identifier. - ParentId *string `location:"uri" locationName:"parent_id" type:"string" required:"true"` - - // The last path segment for this resource. - PathPart *string `locationName:"pathPart" type:"string" required:"true"` - - // The identifier of the RestApi for the resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateResourceInput"} - if s.ParentId == nil { - invalidParams.Add(request.NewErrParamRequired("ParentId")) - } - if s.PathPart == nil { - invalidParams.Add(request.NewErrParamRequired("PathPart")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The POST Request to add a new RestApi resource to your collection. -type CreateRestApiInput struct { - _ struct{} `type:"structure"` - - // The Id of the RestApi that you want to clone from. - CloneFrom *string `locationName:"cloneFrom" type:"string"` - - // The description of the RestApi. - Description *string `locationName:"description" type:"string"` - - // The name of the RestApi. - Name *string `locationName:"name" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateRestApiInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateRestApiInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRestApiInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRestApiInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Requests Amazon API Gateway to create a Stage resource. -type CreateStageInput struct { - _ struct{} `type:"structure"` - - // Whether cache clustering is enabled for the stage. - CacheClusterEnabled *bool `locationName:"cacheClusterEnabled" type:"boolean"` - - // The stage's cache cluster size. - CacheClusterSize *string `locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize"` - - // The identifier of the Deployment resource for the Stage resource. - DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` - - // The description of the Stage resource. - Description *string `locationName:"description" type:"string"` - - // The identifier of the RestApi resource for the Stage resource to create. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The name for the Stage resource. - StageName *string `locationName:"stageName" type:"string" required:"true"` - - // A map that defines the stage variables for the new Stage resource. Variable - // names can have alphanumeric characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+. - Variables map[string]*string `locationName:"variables" type:"map"` -} - -// String returns the string representation -func (s CreateStageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateStageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateStageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateStageInput"} - if s.DeploymentId == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A request to delete the ApiKey resource. -type DeleteApiKeyInput struct { - _ struct{} `type:"structure"` - - // The identifier of the ApiKey resource to be deleted. - ApiKey *string `location:"uri" locationName:"api_Key" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteApiKeyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteApiKeyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteApiKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteApiKeyInput"} - if s.ApiKey == nil { - invalidParams.Add(request.NewErrParamRequired("ApiKey")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteApiKeyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteApiKeyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteApiKeyOutput) GoString() string { - return s.String() -} - -// Request to delete an existing Authorizer resource. -type DeleteAuthorizerInput struct { - _ struct{} `type:"structure"` - - // The identifier of the Authorizer resource. - AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"` - - // The RestApi identifier for the Authorizer resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteAuthorizerInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAuthorizerInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAuthorizerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAuthorizerInput"} - if s.AuthorizerId == nil { - invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteAuthorizerOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteAuthorizerOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAuthorizerOutput) GoString() string { - return s.String() -} - -// A request to delete the BasePathMapping resource. -type DeleteBasePathMappingInput struct { - _ struct{} `type:"structure"` - - // The base path name of the BasePathMapping resource to delete. - BasePath *string `location:"uri" locationName:"base_path" type:"string" required:"true"` - - // The domain name of the BasePathMapping resource to delete. - DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteBasePathMappingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteBasePathMappingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBasePathMappingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBasePathMappingInput"} - if s.BasePath == nil { - invalidParams.Add(request.NewErrParamRequired("BasePath")) - } - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteBasePathMappingOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteBasePathMappingOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteBasePathMappingOutput) GoString() string { - return s.String() -} - -// A request to delete the ClientCertificate resource. -type DeleteClientCertificateInput struct { - _ struct{} `type:"structure"` - - // The identifier of the ClientCertificate resource to be deleted. - ClientCertificateId *string `location:"uri" locationName:"clientcertificate_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteClientCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteClientCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteClientCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteClientCertificateInput"} - if s.ClientCertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientCertificateId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteClientCertificateOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteClientCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteClientCertificateOutput) GoString() string { - return s.String() -} - -// Requests Amazon API Gateway to delete a Deployment resource. -type DeleteDeploymentInput struct { - _ struct{} `type:"structure"` - - // The identifier of the Deployment resource to delete. - DeploymentId *string `location:"uri" locationName:"deployment_id" type:"string" required:"true"` - - // The identifier of the RestApi resource for the Deployment resource to delete. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteDeploymentInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteDeploymentInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentInput"} - if s.DeploymentId == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteDeploymentOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteDeploymentOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteDeploymentOutput) GoString() string { - return s.String() -} - -// A request to delete the DomainName resource. -type DeleteDomainNameInput struct { - _ struct{} `type:"structure"` - - // The name of the DomainName resource to be deleted. - DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteDomainNameInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteDomainNameInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDomainNameInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDomainNameInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteDomainNameOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteDomainNameOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteDomainNameOutput) GoString() string { - return s.String() -} - -// Represents a delete integration request. -type DeleteIntegrationInput struct { - _ struct{} `type:"structure"` - - // Specifies a delete integration request's HTTP method. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // Specifies a delete integration request's resource identifier. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // Specifies a delete integration request's API identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteIntegrationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteIntegrationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteIntegrationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteIntegrationInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteIntegrationOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteIntegrationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteIntegrationOutput) GoString() string { - return s.String() -} - -// Represents a delete integration response request. -type DeleteIntegrationResponseInput struct { - _ struct{} `type:"structure"` - - // Specifies a delete integration response request's HTTP method. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // Specifies a delete integration response request's resource identifier. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // Specifies a delete integration response request's API identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // Specifies a delete integration response request's status code. - StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteIntegrationResponseInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteIntegrationResponseInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteIntegrationResponseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteIntegrationResponseInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StatusCode == nil { - invalidParams.Add(request.NewErrParamRequired("StatusCode")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteIntegrationResponseOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteIntegrationResponseOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteIntegrationResponseOutput) GoString() string { - return s.String() -} - -// Request to delete an existing Method resource. -type DeleteMethodInput struct { - _ struct{} `type:"structure"` - - // The HTTP verb that identifies the Method resource. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // The Resource identifier for the Method resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // The RestApi identifier for the Method resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteMethodInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteMethodInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMethodInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMethodInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteMethodOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteMethodOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteMethodOutput) GoString() string { - return s.String() -} - -// A request to delete an existing MethodResponse resource. -type DeleteMethodResponseInput struct { - _ struct{} `type:"structure"` - - // The HTTP verb identifier for the parent Method resource. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // The Resource identifier for the MethodResponse resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // The RestApi identifier for the MethodResponse resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The status code identifier for the MethodResponse resource. - StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteMethodResponseInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteMethodResponseInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMethodResponseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMethodResponseInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StatusCode == nil { - invalidParams.Add(request.NewErrParamRequired("StatusCode")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteMethodResponseOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteMethodResponseOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteMethodResponseOutput) GoString() string { - return s.String() -} - -// Request to delete an existing model in an existing RestApi resource. -type DeleteModelInput struct { - _ struct{} `type:"structure"` - - // The name of the model to delete. - ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"` - - // The RestApi under which the model will be deleted. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteModelInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteModelInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"} - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteModelOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteModelOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteModelOutput) GoString() string { - return s.String() -} - -// Request to delete a Resource. -type DeleteResourceInput struct { - _ struct{} `type:"structure"` - - // The identifier of the Resource resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // The RestApi identifier for the Resource resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteResourceInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteResourceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteResourceOutput) GoString() string { - return s.String() -} - -// Request to delete the specified API from your collection. -type DeleteRestApiInput struct { - _ struct{} `type:"structure"` - - // The ID of the RestApi you want to delete. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteRestApiInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRestApiInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRestApiInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRestApiInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteRestApiOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteRestApiOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRestApiOutput) GoString() string { - return s.String() -} - -// Requests Amazon API Gateway to delete a Stage resource. -type DeleteStageInput struct { - _ struct{} `type:"structure"` - - // The identifier of the RestApi resource for the Stage resource to delete. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The name of the Stage resource to delete. - StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteStageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteStageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteStageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteStageInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteStageOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteStageOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteStageOutput) GoString() string { - return s.String() -} - -// An immutable representation of a RestApi resource that can be called by users -// using Stages. A deployment must be associated with a Stage for it to be callable -// over the Internet. -type Deployment struct { - _ struct{} `type:"structure"` - - // Gets a summary of the RestApi at the date and time that the deployment resource - // was created. - ApiSummary map[string]map[string]*MethodSnapshot `locationName:"apiSummary" type:"map"` - - // The date and time that the deployment resource was created. - CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` - - // The description for the deployment resource. - Description *string `locationName:"description" type:"string"` - - // The identifier for the deployment resource. - Id *string `locationName:"id" type:"string"` -} - -// String returns the string representation -func (s Deployment) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Deployment) GoString() string { - return s.String() -} - -// Represents a domain name that is contained in a simpler, more intuitive URL -// that can be called. -type DomainName struct { - _ struct{} `type:"structure"` - - // The name of the certificate. - CertificateName *string `locationName:"certificateName" type:"string"` - - // The date when the certificate was uploaded, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). - CertificateUploadDate *time.Time `locationName:"certificateUploadDate" type:"timestamp" timestampFormat:"unix"` - - // The domain name of the Amazon CloudFront distribution. For more information, - // see the Amazon CloudFront documentation (http://aws.amazon.com/documentation/cloudfront/" - // target="_blank). - DistributionDomainName *string `locationName:"distributionDomainName" type:"string"` - - // The name of the DomainName resource. - DomainName *string `locationName:"domainName" type:"string"` -} - -// String returns the string representation -func (s DomainName) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DomainName) GoString() string { - return s.String() -} - -// Request to flush authorizer cache entries on a specified stage. -type FlushStageAuthorizersCacheInput struct { - _ struct{} `type:"structure"` - - // The API identifier of the stage to flush. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The name of the stage to flush. - StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s FlushStageAuthorizersCacheInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FlushStageAuthorizersCacheInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *FlushStageAuthorizersCacheInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FlushStageAuthorizersCacheInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type FlushStageAuthorizersCacheOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s FlushStageAuthorizersCacheOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FlushStageAuthorizersCacheOutput) GoString() string { - return s.String() -} - -// Requests Amazon API Gateway to flush a stage's cache. -type FlushStageCacheInput struct { - _ struct{} `type:"structure"` - - // The API identifier of the stage to flush its cache. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The name of the stage to flush its cache. - StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s FlushStageCacheInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FlushStageCacheInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *FlushStageCacheInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FlushStageCacheInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type FlushStageCacheOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s FlushStageCacheOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FlushStageCacheOutput) GoString() string { - return s.String() -} - -// A request to generate a ClientCertificate resource. -type GenerateClientCertificateInput struct { - _ struct{} `type:"structure"` - - // The description of the ClientCertificate. - Description *string `locationName:"description" type:"string"` -} - -// String returns the string representation -func (s GenerateClientCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GenerateClientCertificateInput) GoString() string { - return s.String() -} - -// Requests Amazon API Gateway to get information about the current Account -// resource. -type GetAccountInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s GetAccountInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetAccountInput) GoString() string { - return s.String() -} - -// A request to get information about the current ApiKey resource. -type GetApiKeyInput struct { - _ struct{} `type:"structure"` - - // The identifier of the ApiKey resource. - ApiKey *string `location:"uri" locationName:"api_Key" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetApiKeyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetApiKeyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetApiKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetApiKeyInput"} - if s.ApiKey == nil { - invalidParams.Add(request.NewErrParamRequired("ApiKey")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A request to get information about the current ApiKeys resource. -type GetApiKeysInput struct { - _ struct{} `type:"structure"` - - // The maximum number of ApiKeys to get information about. - Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - - // The position of the current ApiKeys resource to get information about. - Position *string `location:"querystring" locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetApiKeysInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetApiKeysInput) GoString() string { - return s.String() -} - -// Represents a collection of ApiKey resources. -type GetApiKeysOutput struct { - _ struct{} `type:"structure"` - - // The current page of any ApiKey resources in the collection of ApiKey resources. - Items []*ApiKey `locationName:"item" type:"list"` - - Position *string `locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetApiKeysOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetApiKeysOutput) GoString() string { - return s.String() -} - -// Request to describe an existing Authorizer resource. -type GetAuthorizerInput struct { - _ struct{} `type:"structure"` - - // The identifier of the Authorizer resource. - AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"` - - // The RestApi identifier for the Authorizer resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetAuthorizerInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetAuthorizerInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetAuthorizerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAuthorizerInput"} - if s.AuthorizerId == nil { - invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to describe an existing Authorizers resource. -type GetAuthorizersInput struct { - _ struct{} `type:"structure"` - - // Limit the number of Authorizer resources in the response. - Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - - // If not all Authorizer resources in the response were present, the position - // will specificy where to start the next page of results. - Position *string `location:"querystring" locationName:"position" type:"string"` - - // The RestApi identifier for the Authorizers resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetAuthorizersInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetAuthorizersInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetAuthorizersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAuthorizersInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents a collection of Authorizer resources. -type GetAuthorizersOutput struct { - _ struct{} `type:"structure"` - - // Gets the current list of Authorizer resources in the collection. - Items []*Authorizer `locationName:"item" type:"list"` - - Position *string `locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetAuthorizersOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetAuthorizersOutput) GoString() string { - return s.String() -} - -// Request to describe a BasePathMapping resource. -type GetBasePathMappingInput struct { - _ struct{} `type:"structure"` - - // The base path name that callers of the API must provide as part of the URL - // after the domain name. This value must be unique for all of the mappings - // across a single API. Leave this blank if you do not want callers to specify - // any base path name after the domain name. - BasePath *string `location:"uri" locationName:"base_path" type:"string" required:"true"` - - // The domain name of the BasePathMapping resource to be described. - DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetBasePathMappingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetBasePathMappingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBasePathMappingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBasePathMappingInput"} - if s.BasePath == nil { - invalidParams.Add(request.NewErrParamRequired("BasePath")) - } - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A request to get information about a collection of BasePathMapping resources. -type GetBasePathMappingsInput struct { - _ struct{} `type:"structure"` - - // The domain name of a BasePathMapping resource. - DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"` - - // The maximum number of BasePathMapping resources in the collection to get - // information about. The default limit is 25. It should be an integer between - // 1 - 500. - Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - - // The position of the current BasePathMapping resource in the collection to - // get information about. - Position *string `location:"querystring" locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetBasePathMappingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetBasePathMappingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBasePathMappingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBasePathMappingsInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents a collection of BasePathMapping resources. -type GetBasePathMappingsOutput struct { - _ struct{} `type:"structure"` - - // The current page of any BasePathMapping resources in the collection of base - // path mapping resources. - Items []*BasePathMapping `locationName:"item" type:"list"` - - Position *string `locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetBasePathMappingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetBasePathMappingsOutput) GoString() string { - return s.String() -} - -// A request to get information about the current ClientCertificate resource. -type GetClientCertificateInput struct { - _ struct{} `type:"structure"` - - // The identifier of the ClientCertificate resource to be described. - ClientCertificateId *string `location:"uri" locationName:"clientcertificate_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetClientCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetClientCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetClientCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetClientCertificateInput"} - if s.ClientCertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientCertificateId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A request to get information about a collection of ClientCertificate resources. -type GetClientCertificatesInput struct { - _ struct{} `type:"structure"` - - // The maximum number of ClientCertificate resources in the collection to get - // information about. The default limit is 25. It should be an integer between - // 1 - 500. - Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - - // The position of the current ClientCertificate resource in the collection - // to get information about. - Position *string `location:"querystring" locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetClientCertificatesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetClientCertificatesInput) GoString() string { - return s.String() -} - -// Represents a collection of ClientCertificate resources. -type GetClientCertificatesOutput struct { - _ struct{} `type:"structure"` - - // The current page of any ClientCertificate resources in the collection of - // ClientCertificate resources. - Items []*ClientCertificate `locationName:"item" type:"list"` - - Position *string `locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetClientCertificatesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetClientCertificatesOutput) GoString() string { - return s.String() -} - -// Requests Amazon API Gateway to get information about a Deployment resource. -type GetDeploymentInput struct { - _ struct{} `type:"structure"` - - // The identifier of the Deployment resource to get information about. - DeploymentId *string `location:"uri" locationName:"deployment_id" type:"string" required:"true"` - - // The identifier of the RestApi resource for the Deployment resource to get - // information about. - RestApiId *string `location:"uri" locationName:"restapi_id" 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 s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Requests Amazon API Gateway to get information about a Deployments collection. -type GetDeploymentsInput struct { - _ struct{} `type:"structure"` - - // The maximum number of Deployment resources in the collection to get information - // about. The default limit is 25. It should be an integer between 1 - 500. - Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - - // The position of the current Deployment resource in the collection to get - // information about. - Position *string `location:"querystring" locationName:"position" type:"string"` - - // The identifier of the RestApi resource for the collection of Deployment resources - // to get information about. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetDeploymentsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetDeploymentsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDeploymentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDeploymentsInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents a collection resource that contains zero or more references to -// your existing deployments, and links that guide you on ways to interact with -// your collection. The collection offers a paginated view of the contained -// deployments. -type GetDeploymentsOutput struct { - _ struct{} `type:"structure"` - - // The current page of any Deployment resources in the collection of deployment - // resources. - Items []*Deployment `locationName:"item" type:"list"` - - Position *string `locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetDeploymentsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetDeploymentsOutput) GoString() string { - return s.String() -} - -// Request to get the name of a DomainName resource. -type GetDomainNameInput struct { - _ struct{} `type:"structure"` - - // The name of the DomainName resource. - DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetDomainNameInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetDomainNameInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDomainNameInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDomainNameInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to describe a collection of DomainName resources. -type GetDomainNamesInput struct { - _ struct{} `type:"structure"` - - // The maximum number of DomainName resources in the collection to get information - // about. The default limit is 25. It should be an integer between 1 - 500. - Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - - // The position of the current domain names to get information about. - Position *string `location:"querystring" locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetDomainNamesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetDomainNamesInput) GoString() string { - return s.String() -} - -// Represents a collection of DomainName resources. -type GetDomainNamesOutput struct { - _ struct{} `type:"structure"` - - // The current page of any DomainName resources in the collection of DomainName - // resources. - Items []*DomainName `locationName:"item" type:"list"` - - Position *string `locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetDomainNamesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetDomainNamesOutput) GoString() string { - return s.String() -} - -// Request a new export of a RestApi for a particular Stage. -type GetExportInput struct { - _ struct{} `type:"structure"` - - // The content-type of the export, for example 'application/json'. Currently - // 'application/json' and 'application/yaml' are supported for exportType 'swagger'. - // Should be specifed in the 'Accept' header for direct API requests. - Accepts *string `location:"header" locationName:"Accept" type:"string"` - - // The type of export. Currently only 'swagger' is supported. - ExportType *string `location:"uri" locationName:"export_type" type:"string" required:"true"` - - // A key-value map of query string parameters that specify properties of the - // export, depending on the requested exportType. For exportType 'swagger', - // any combination of the following parameters are supported: 'integrations' - // will export x-amazon-apigateway-integration extensions 'authorizers' will - // export x-amazon-apigateway-authorizer extensions 'postman' will export with - // Postman extensions, allowing for import to the Postman tool - Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"` - - // The identifier of the RestApi to be exported. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The name of the Stage that will be exported. - StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetExportInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetExportInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetExportInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetExportInput"} - if s.ExportType == nil { - invalidParams.Add(request.NewErrParamRequired("ExportType")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The binary blob response to GetExport, which contains the generated SDK. -type GetExportOutput struct { - _ struct{} `type:"structure" payload:"Body"` - - // The binary blob response to GetExport, which contains the export. - Body []byte `locationName:"body" type:"blob"` - - // The content-disposition header value in the HTTP reseponse. - ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"` - - // The content-type header value in the HTTP response. This will correspond - // to a valid 'accept' type in the request. - ContentType *string `location:"header" locationName:"Content-Type" type:"string"` -} - -// String returns the string representation -func (s GetExportOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetExportOutput) GoString() string { - return s.String() -} - -// Represents a get integration request. -type GetIntegrationInput struct { - _ struct{} `type:"structure"` - - // Specifies a get integration request's HTTP method. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // Specifies a get integration request's resource identifier - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // Specifies a get integration request's API identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetIntegrationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIntegrationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIntegrationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIntegrationInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents a get integration response request. -type GetIntegrationResponseInput struct { - _ struct{} `type:"structure"` - - // Specifies a get integration response request's HTTP method. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // Specifies a get integration response request's resource identifier. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // Specifies a get integration response request's API identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // Specifies a get integration response request's status code. - StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetIntegrationResponseInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIntegrationResponseInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIntegrationResponseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIntegrationResponseInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StatusCode == nil { - invalidParams.Add(request.NewErrParamRequired("StatusCode")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to describe an existing Method resource. -type GetMethodInput struct { - _ struct{} `type:"structure"` - - // Specifies the put method request's HTTP method type. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // The Resource identifier for the Method resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // The RestApi identifier for the Method resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetMethodInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetMethodInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetMethodInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMethodInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to describe a MethodResponse resource. -type GetMethodResponseInput struct { - _ struct{} `type:"structure"` - - // The HTTP verb identifier for the parent Method resource. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // The Resource identifier for the MethodResponse resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // The RestApi identifier for the MethodResponse resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The status code identifier for the MethodResponse resource. - StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetMethodResponseInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetMethodResponseInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetMethodResponseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMethodResponseInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StatusCode == nil { - invalidParams.Add(request.NewErrParamRequired("StatusCode")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to list information about a model in an existing RestApi resource. -type GetModelInput struct { - _ struct{} `type:"structure"` - - // Resolves all external model references and returns a flattened model schema. - Flatten *bool `location:"querystring" locationName:"flatten" type:"boolean"` - - // The name of the model as an identifier. - ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"` - - // The RestApi identifier under which the Model exists. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetModelInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetModelInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetModelInput"} - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to generate a sample mapping template used to transform the payload. -type GetModelTemplateInput struct { - _ struct{} `type:"structure"` - - // The name of the model for which to generate a template. - ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"` - - // The ID of the RestApi under which the model exists. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetModelTemplateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetModelTemplateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetModelTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetModelTemplateInput"} - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents a mapping template used to transform a payload. -type GetModelTemplateOutput struct { - _ struct{} `type:"structure"` - - // The Apache Velocity Template Language (VTL) (http://velocity.apache.org/engine/devel/vtl-reference-guide.html" - // target="_blank) template content used for the template resource. - Value *string `locationName:"value" type:"string"` -} - -// String returns the string representation -func (s GetModelTemplateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetModelTemplateOutput) GoString() string { - return s.String() -} - -// Request to list existing Models defined for a RestApi resource. -type GetModelsInput struct { - _ struct{} `type:"structure"` - - // The maximum number of models in the collection to get information about. - // The default limit is 25. It should be an integer between 1 - 500. - Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - - // The position of the next set of results in the Models resource to get information - // about. - Position *string `location:"querystring" locationName:"position" type:"string"` - - // The RestApi identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetModelsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetModelsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetModelsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetModelsInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents a collection of Model resources. -type GetModelsOutput struct { - _ struct{} `type:"structure"` - - // Gets the current Model resource in the collection. - Items []*Model `locationName:"item" type:"list"` - - Position *string `locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetModelsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetModelsOutput) GoString() string { - return s.String() -} - -// Request to list information about a resource. -type GetResourceInput struct { - _ struct{} `type:"structure"` - - // The identifier for the Resource resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // The RestApi identifier for the resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetResourceInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to list information about a collection of resources. -type GetResourcesInput struct { - _ struct{} `type:"structure"` - - // The maximum number of Resource resources in the collection to get information - // about. The default limit is 25. It should be an integer between 1 - 500. - Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - - // The position of the next set of results in the current Resources resource - // to get information about. - Position *string `location:"querystring" locationName:"position" type:"string"` - - // The RestApi identifier for the Resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetResourcesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetResourcesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetResourcesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetResourcesInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents a collection of Resource resources. -type GetResourcesOutput struct { - _ struct{} `type:"structure"` - - // Gets the current Resource resource in the collection. - Items []*Resource `locationName:"item" type:"list"` - - Position *string `locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetResourcesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetResourcesOutput) GoString() string { - return s.String() -} - -// The GET request to list an existing RestApi defined for your collection. -type GetRestApiInput struct { - _ struct{} `type:"structure"` - - // The identifier of the RestApi resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetRestApiInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetRestApiInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRestApiInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRestApiInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The GET request to list existing RestApis defined for your collection. -type GetRestApisInput struct { - _ struct{} `type:"structure"` - - // The maximum number of RestApi resources in the collection to get information - // about. The default limit is 25. It should be an integer between 1 - 500. - Limit *int64 `location:"querystring" locationName:"limit" type:"integer"` - - // The position of the current RestApis resource in the collection to get information - // about. - Position *string `location:"querystring" locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetRestApisInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetRestApisInput) GoString() string { - return s.String() -} - -// Contains references to your APIs and links that guide you in ways to interact -// with your collection. A collection offers a paginated view of your APIs. -type GetRestApisOutput struct { - _ struct{} `type:"structure"` - - // An array of links to the current page of RestApi resources. - Items []*RestApi `locationName:"item" type:"list"` - - Position *string `locationName:"position" type:"string"` -} - -// String returns the string representation -func (s GetRestApisOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetRestApisOutput) GoString() string { - return s.String() -} - -// Request a new generated client SDK for a RestApi and Stage. -type GetSdkInput struct { - _ struct{} `type:"structure"` - - // A key-value map of query string parameters that specify properties of the - // SDK, depending on the requested sdkType. For sdkType 'objectivec', a parameter - // named "classPrefix" is required. For sdkType 'android', parameters named - // "groupId", "artifactId", "artifactVersion", and "invokerPackage" are required. - Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"` - - // The identifier of the RestApi that the SDK will use. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The language for the generated SDK. Currently javascript, android, and objectivec - // (for iOS) are supported. - SdkType *string `location:"uri" locationName:"sdk_type" type:"string" required:"true"` - - // The name of the Stage that the SDK will use. - StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetSdkInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSdkInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSdkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSdkInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.SdkType == nil { - invalidParams.Add(request.NewErrParamRequired("SdkType")) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The binary blob response to GetSdk, which contains the generated SDK. -type GetSdkOutput struct { - _ struct{} `type:"structure" payload:"Body"` - - // The binary blob response to GetSdk, which contains the generated SDK. - Body []byte `locationName:"body" type:"blob"` - - // The content-disposition header value in the HTTP reseponse. - ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"` - - // The content-type header value in the HTTP response. - ContentType *string `location:"header" locationName:"Content-Type" type:"string"` -} - -// String returns the string representation -func (s GetSdkOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSdkOutput) GoString() string { - return s.String() -} - -// Requests Amazon API Gateway to get information about a Stage resource. -type GetStageInput struct { - _ struct{} `type:"structure"` - - // The identifier of the RestApi resource for the Stage resource to get information - // about. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The name of the Stage resource to get information about. - StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetStageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetStageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetStageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetStageInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Requests Amazon API Gateway to get information about one or more Stage resources. -type GetStagesInput struct { - _ struct{} `type:"structure"` - - // The stages' deployment identifiers. - DeploymentId *string `location:"querystring" locationName:"deploymentId" type:"string"` - - // The stages' API identifiers. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetStagesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetStagesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetStagesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetStagesInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A list of Stage resource that are associated with the ApiKey resource. -type GetStagesOutput struct { - _ struct{} `type:"structure"` - - // An individual Stage resource. - Item []*Stage `locationName:"item" type:"list"` -} - -// String returns the string representation -func (s GetStagesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetStagesOutput) GoString() string { - return s.String() -} - -// A POST request to import an API to Amazon API Gateway using an input of an -// API definition file. -type ImportRestApiInput struct { - _ struct{} `type:"structure" payload:"Body"` - - // The POST request body containing external API definitions. Currently, only - // Swagger definition JSON files are supported. - Body []byte `locationName:"body" type:"blob" required:"true"` - - // A query parameter to indicate whether to rollback the API creation (true) - // or not (false) when a warning is encountered. The default value is false. - FailOnWarnings *bool `location:"querystring" locationName:"failonwarnings" type:"boolean"` - - // Custom header parameters as part of the request. - Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"` -} - -// String returns the string representation -func (s ImportRestApiInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ImportRestApiInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ImportRestApiInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ImportRestApiInput"} - if s.Body == nil { - invalidParams.Add(request.NewErrParamRequired("Body")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents a HTTP, AWS, or Mock integration. -type Integration struct { - _ struct{} `type:"structure"` - - // Specifies the integration's cache key parameters. - CacheKeyParameters []*string `locationName:"cacheKeyParameters" type:"list"` - - // Specifies the integration's cache namespace. - CacheNamespace *string `locationName:"cacheNamespace" type:"string"` - - // Specifies the credentials required for the integration, if any. For AWS integrations, - // three options are available. To specify an IAM Role for Amazon API Gateway - // to assume, use the role's Amazon Resource Name (ARN). To require that the - // caller's identity be passed through from the request, specify the string - // arn:aws:iam::\*:user/\*. To use resource-based permissions on supported AWS - // services, specify null. - Credentials *string `locationName:"credentials" type:"string"` - - // Specifies the integration's HTTP method type. - HttpMethod *string `locationName:"httpMethod" type:"string"` - - // Specifies the integration's responses. - IntegrationResponses map[string]*IntegrationResponse `locationName:"integrationResponses" type:"map"` - - // Specifies the pass-through behavior for incoming requests based on the Content-Type - // header in the request, and the available requestTemplates defined on the - // Integration. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, - // and NEVER. - // - // WHEN_NO_MATCH passes the request body for unmapped content types through - // to the Integration backend without transformation. - // - // NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media - // Type' response. - // - // WHEN_NO_TEMPLATES will allow pass-through when the Integration has NO content - // types mapped to templates. However if there is at least one content type - // defined, unmapped content types will be rejected with the same 415 response. - PassthroughBehavior *string `locationName:"passthroughBehavior" type:"string"` - - // Represents requests parameters that are sent with the backend request. Request - // parameters are represented as a key/value map, with a destination as the - // key and a source as the value. A source must match an existing method request - // parameter, or a static value. Static values must be enclosed with single - // quotes, and be pre-encoded based on their destination in the request. The - // destination must match the pattern integration.request.{location}.{name}, - // where location is either querystring, path, or header. name must be a valid, - // unique parameter name. - RequestParameters map[string]*string `locationName:"requestParameters" type:"map"` - - // Represents a map of Velocity templates that are applied on the request payload - // based on the value of the Content-Type header sent by the client. The content - // type value is the key in this map, and the template (as a String) is the - // value. - RequestTemplates map[string]*string `locationName:"requestTemplates" type:"map"` - - // Specifies the integration's type. The valid value is HTTP, AWS, or MOCK. - Type *string `locationName:"type" type:"string" enum:"IntegrationType"` - - // Specifies the integration's Uniform Resource Identifier (URI). For HTTP integrations, - // the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 - // specification (https://www.ietf.org/rfc/rfc3986.txt" target="_blank). For - // AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. - // Region, subdomain and service are used to determine the right endpoint. For - // AWS services that use the Action= query string parameter, service_api should - // be a valid action for the desired service. For RESTful AWS service APIs, - // path is used to indicate that the remaining substring in the URI should be - // treated as the path to the resource, including the initial /. - Uri *string `locationName:"uri" type:"string"` -} - -// String returns the string representation -func (s Integration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Integration) GoString() string { - return s.String() -} - -// Represents an integration response. The status code must map to an existing -// MethodResponse, and parameters and templates can be used to transform the -// backend response. -type IntegrationResponse struct { - _ struct{} `type:"structure"` - - // Represents response parameters that can be read from the backend response. - // Response parameters are represented as a key/value map, with a destination - // as the key and a source as the value. A destination must match an existing - // response parameter in the MethodResponse. The source can be a header from - // the backend response, or a static value. Static values are specified using - // enclosing single quotes, and backend response headers can be read using the - // pattern integration.response.header.{name}. - ResponseParameters map[string]*string `locationName:"responseParameters" type:"map"` - - // Specifies the templates used to transform the integration response body. - // Response templates are represented as a key/value map, with a content-type - // as the key and a template as the value. - ResponseTemplates map[string]*string `locationName:"responseTemplates" type:"map"` - - // Specifies the regular expression (regex) pattern used to choose an integration - // response based on the response from the backend. If the backend is an AWS - // Lambda function, the AWS Lambda function error header is matched. For all - // other HTTP and AWS backends, the HTTP status code is matched. - SelectionPattern *string `locationName:"selectionPattern" type:"string"` - - // Specifies the status code that is used to map the integration response to - // an existing MethodResponse. - StatusCode *string `locationName:"statusCode" type:"string"` -} - -// String returns the string representation -func (s IntegrationResponse) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IntegrationResponse) GoString() string { - return s.String() -} - -// Represents a method. -type Method struct { - _ struct{} `type:"structure"` - - // Specifies whether the method requires a valid ApiKey. - ApiKeyRequired *bool `locationName:"apiKeyRequired" type:"boolean"` - - // The method's authorization type. - AuthorizationType *string `locationName:"authorizationType" type:"string"` - - // Specifies the identifier of an Authorizer to use on this Method. The authorizationType - // must be CUSTOM. - AuthorizerId *string `locationName:"authorizerId" type:"string"` - - // The HTTP method. - HttpMethod *string `locationName:"httpMethod" type:"string"` - - // The method's integration. - MethodIntegration *Integration `locationName:"methodIntegration" type:"structure"` - - // Represents available responses that can be sent to the caller. Method responses - // are represented as a key/value map, with an HTTP status code as the key and - // a MethodResponse as the value. The status codes are available for the Integration - // responses to map to. - MethodResponses map[string]*MethodResponse `locationName:"methodResponses" type:"map"` - - // Specifies the Model resources used for the request's content type. Request - // models are represented as a key/value map, with a content type as the key - // and a Model name as the value. - RequestModels map[string]*string `locationName:"requestModels" type:"map"` - - // Represents request parameters that can be accepted by Amazon API Gateway. - // Request parameters are represented as a key/value map, with a source as the - // key and a Boolean flag as the value. The Boolean flag is used to specify - // whether the parameter is required. A source must match the pattern method.request.{location}.{name}, - // where location is either querystring, path, or header. name is a valid, unique - // parameter name. Sources specified here are available to the integration for - // mapping to integration request parameters or templates. - RequestParameters map[string]*bool `locationName:"requestParameters" type:"map"` -} - -// String returns the string representation -func (s Method) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Method) GoString() string { - return s.String() -} - -// Represents a method response. Amazon API Gateway sends back the status code -// to the caller as the HTTP status code. Parameters and models can be used -// to transform the response from the method's integration. -type MethodResponse struct { - _ struct{} `type:"structure"` - - // Specifies the Model resources used for the response's content-type. Response - // models are represented as a key/value map, with a content-type as the key - // and a Model name as the value. - ResponseModels map[string]*string `locationName:"responseModels" type:"map"` - - // Represents response parameters that can be sent back to the caller by Amazon - // API Gateway. Response parameters are represented as a key/value map, with - // a destination as the key and a boolean flag as the value, which is used to - // specify whether the parameter is required. A destination must match the pattern - // method.response.header.{name}, where name is a valid, unique header name. - // Destinations specified here are available to the integration for mapping - // from integration response parameters. - ResponseParameters map[string]*bool `locationName:"responseParameters" type:"map"` - - // The method response's status code. - StatusCode *string `locationName:"statusCode" type:"string"` -} - -// String returns the string representation -func (s MethodResponse) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MethodResponse) GoString() string { - return s.String() -} - -// Specifies the method setting properties. -type MethodSetting struct { - _ struct{} `type:"structure"` - - // Specifies whether the cached responses are encrypted. The PATCH path for - // this setting is /{method_setting_key}/caching/dataEncrypted, and the value - // is a Boolean. - CacheDataEncrypted *bool `locationName:"cacheDataEncrypted" type:"boolean"` - - // Specifies the time to live (TTL) in seconds, for cached responses. The higher - // a the TTL, the longer the response will be cached. The PATCH path for this - // setting is /{method_setting_key}/caching/ttlInSeconds, and the value is an - // integer. - CacheTtlInSeconds *int64 `locationName:"cacheTtlInSeconds" type:"integer"` - - // Specifies whether responses should be cached and returned for requests. A - // cache cluster must be enabled on the stage for responses to be cached. The - // PATCH path for this setting is /{method_setting_key}/caching/enabled, and - // the value is a Boolean. - CachingEnabled *bool `locationName:"cachingEnabled" type:"boolean"` - - // Specifies the whether data trace logging is enabled for this method, which - // effects the log entries pushed to Amazon CloudWatch Logs. The PATCH path - // for this setting is /{method_setting_key}/logging/dataTrace, and the value - // is a Boolean. - DataTraceEnabled *bool `locationName:"dataTraceEnabled" type:"boolean"` - - // Specifies the logging level for this method, which effects the log entries - // pushed to Amazon CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel, - // and the available levels are OFF, ERROR, and INFO. - LoggingLevel *string `locationName:"loggingLevel" type:"string"` - - // Specifies whether Amazon CloudWatch metrics are enabled for this method. - // The PATCH path for this setting is /{method_setting_key}/metrics/enabled, - // and the value is a Boolean. - MetricsEnabled *bool `locationName:"metricsEnabled" type:"boolean"` - - // Specifies whether authorization is required for a cache invalidation request. - // The PATCH path for this setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl, - // and the value is a Boolean. - RequireAuthorizationForCacheControl *bool `locationName:"requireAuthorizationForCacheControl" type:"boolean"` - - // Specifies the throttling burst limit. The PATCH path for this setting is - // /{method_setting_key}/throttling/burstLimit, and the value is an integer. - ThrottlingBurstLimit *int64 `locationName:"throttlingBurstLimit" type:"integer"` - - // Specifies the throttling rate limit. The PATCH path for this setting is /{method_setting_key}/throttling/rateLimit, - // and the value is a double. - ThrottlingRateLimit *float64 `locationName:"throttlingRateLimit" type:"double"` - - // Specifies the strategy on how to handle the unauthorized requests for cache - // invalidation. The PATCH path for this setting is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy, - // and the available values are FAIL_WITH_403, SUCCEED_WITH_RESPONSE_HEADER, - // SUCCEED_WITHOUT_RESPONSE_HEADER. - UnauthorizedCacheControlHeaderStrategy *string `locationName:"unauthorizedCacheControlHeaderStrategy" type:"string" enum:"UnauthorizedCacheControlHeaderStrategy"` -} - -// String returns the string representation -func (s MethodSetting) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MethodSetting) GoString() string { - return s.String() -} - -// Represents a summary of a Method resource, given a particular date and time. -type MethodSnapshot struct { - _ struct{} `type:"structure"` - - // Specifies whether the method requires a valid ApiKey. - ApiKeyRequired *bool `locationName:"apiKeyRequired" type:"boolean"` - - // Specifies the type of authorization used for the method. - AuthorizationType *string `locationName:"authorizationType" type:"string"` -} - -// String returns the string representation -func (s MethodSnapshot) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MethodSnapshot) GoString() string { - return s.String() -} - -// Represents the structure of a request or response payload for a method. -type Model struct { - _ struct{} `type:"structure"` - - // The content-type for the model. - ContentType *string `locationName:"contentType" type:"string"` - - // The description of the model. - Description *string `locationName:"description" type:"string"` - - // The identifier for the model resource. - Id *string `locationName:"id" type:"string"` - - // The name of the model. - Name *string `locationName:"name" type:"string"` - - // The schema for the model. For application/json models, this should be JSON-schema - // draft v4 (http://json-schema.org/documentation.html" target="_blank) model. - Schema *string `locationName:"schema" type:"string"` -} - -// String returns the string representation -func (s Model) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Model) GoString() string { - return s.String() -} - -// 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. -type PatchOperation struct { - _ struct{} `type:"structure"` - - // The "move" and "copy" operation object MUST contain a "from" member, which - // is a string containing a JSON Pointer value that references the location - // in the target document to move the value from. - From *string `locationName:"from" type:"string"` - - // A patch operation whose value indicates the operation to perform. Its value - // MUST be one of "add", "remove", "replace", "move", "copy", or "test"; other - // values are errors. - Op *string `locationName:"op" type:"string" enum:"op"` - - // Operation objects MUST have exactly one "path" member. That member's value - // is a string containing a `JSON-Pointer` value that references a location - // within the target document (the "target location") where the operation is - // performed. - Path *string `locationName:"path" type:"string"` - - // The actual value content. - Value *string `locationName:"value" type:"string"` -} - -// String returns the string representation -func (s PatchOperation) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PatchOperation) GoString() string { - return s.String() -} - -// Represents a put integration request. -type PutIntegrationInput struct { - _ struct{} `type:"structure"` - - // Specifies a put integration input's cache key parameters. - CacheKeyParameters []*string `locationName:"cacheKeyParameters" type:"list"` - - // Specifies a put integration input's cache namespace. - CacheNamespace *string `locationName:"cacheNamespace" type:"string"` - - // Specifies whether credentials are required for a put integration. - Credentials *string `locationName:"credentials" type:"string"` - - // Specifies a put integration request's HTTP method. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // Specifies a put integration HTTP method. When the integration type is HTTP - // or AWS, this field is required. - IntegrationHttpMethod *string `locationName:"httpMethod" type:"string"` - - // Specifies the pass-through behavior for incoming requests based on the Content-Type - // header in the request, and the available requestTemplates defined on the - // Integration. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, - // and NEVER. - // - // WHEN_NO_MATCH passes the request body for unmapped content types through - // to the Integration backend without transformation. - // - // NEVER rejects unmapped content types with an HTTP 415 'Unsupported Media - // Type' response. - // - // WHEN_NO_TEMPLATES will allow pass-through when the Integration has NO content - // types mapped to templates. However if there is at least one content type - // defined, unmapped content types will be rejected with the same 415 response. - PassthroughBehavior *string `locationName:"passthroughBehavior" type:"string"` - - // Represents request parameters that are sent with the backend request. Request - // parameters are represented as a key/value map, with a destination as the - // key and a source as the value. A source must match an existing method request - // parameter, or a static value. Static values must be enclosed with single - // quotes, and be pre-encoded based on their destination in the request. The - // destination must match the pattern integration.request.{location}.{name}, - // where location is either querystring, path, or header. name must be a valid, - // unique parameter name. - RequestParameters map[string]*string `locationName:"requestParameters" type:"map"` - - // Represents a map of Velocity templates that are applied on the request payload - // based on the value of the Content-Type header sent by the client. The content - // type value is the key in this map, and the template (as a String) is the - // value. - RequestTemplates map[string]*string `locationName:"requestTemplates" type:"map"` - - // Specifies a put integration request's resource ID. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // Specifies a put integration request's API identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // Specifies a put integration input's type. - Type *string `locationName:"type" type:"string" required:"true" enum:"IntegrationType"` - - // Specifies a put integration input's Uniform Resource Identifier (URI). When - // the integration type is HTTP or AWS, this field is required. For integration - // with Lambda as an AWS service proxy, this value is of the 'arn:aws:apigateway::lambda:path/2015-03-31/functions//invocations' - // format. - Uri *string `locationName:"uri" type:"string"` -} - -// String returns the string representation -func (s PutIntegrationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutIntegrationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutIntegrationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutIntegrationInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents a put integration response request. -type PutIntegrationResponseInput struct { - _ struct{} `type:"structure"` - - // Specifies a put integration response request's HTTP method. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // Specifies a put integration response request's resource identifier. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // Represents response parameters that can be read from the backend response. - // Response parameters are represented as a key/value map, with a destination - // as the key and a source as the value. A destination must match an existing - // response parameter in the Method. The source can be a header from the backend - // response, or a static value. Static values are specified using enclosing - // single quotes, and backend response headers can be read using the pattern - // integration.response.header.{name}. - ResponseParameters map[string]*string `locationName:"responseParameters" type:"map"` - - // Specifies a put integration response's templates. - ResponseTemplates map[string]*string `locationName:"responseTemplates" type:"map"` - - // Specifies a put integration response request's API identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // Specifies the selection pattern of a put integration response. - SelectionPattern *string `locationName:"selectionPattern" type:"string"` - - // Specifies the status code that is used to map the integration response to - // an existing MethodResponse. - StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"` -} - -// String returns the string representation -func (s PutIntegrationResponseInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutIntegrationResponseInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutIntegrationResponseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutIntegrationResponseInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StatusCode == nil { - invalidParams.Add(request.NewErrParamRequired("StatusCode")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to add a method to an existing Resource resource. -type PutMethodInput struct { - _ struct{} `type:"structure"` - - // Specifies whether the method required a valid ApiKey. - ApiKeyRequired *bool `locationName:"apiKeyRequired" type:"boolean"` - - // Specifies the type of authorization used for the method. - AuthorizationType *string `locationName:"authorizationType" type:"string" required:"true"` - - // Specifies the identifier of an Authorizer to use on this Method, if the type - // is CUSTOM. - AuthorizerId *string `locationName:"authorizerId" type:"string"` - - // Specifies the put method request's HTTP method type. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // Specifies the Model resources used for the request's content type. Request - // models are represented as a key/value map, with a content type as the key - // and a Model name as the value. - RequestModels map[string]*string `locationName:"requestModels" type:"map"` - - // Represents requests parameters that are sent with the backend request. Request - // parameters are represented as a key/value map, with a destination as the - // key and a source as the value. A source must match an existing method request - // parameter, or a static value. Static values must be enclosed with single - // quotes, and be pre-encoded based on their destination in the request. The - // destination must match the pattern integration.request.{location}.{name}, - // where location is either querystring, path, or header. name must be a valid, - // unique parameter name. - RequestParameters map[string]*bool `locationName:"requestParameters" type:"map"` - - // The Resource identifier for the new Method resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // The RestApi identifier for the new Method resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s PutMethodInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutMethodInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutMethodInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutMethodInput"} - if s.AuthorizationType == nil { - invalidParams.Add(request.NewErrParamRequired("AuthorizationType")) - } - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to add a MethodResponse to an existing Method resource. -type PutMethodResponseInput struct { - _ struct{} `type:"structure"` - - // The HTTP verb that identifies the Method resource. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // The Resource identifier for the Method resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // Specifies the Model resources used for the response's content type. Response - // models are represented as a key/value map, with a content type as the key - // and a Model name as the value. - ResponseModels map[string]*string `locationName:"responseModels" type:"map"` - - // Represents response parameters that can be sent back to the caller by Amazon - // API Gateway. Response parameters are represented as a key/value map, with - // a destination as the key and a Boolean flag as the value. The Boolean flag - // is used to specify whether the parameter is required. A destination must - // match the pattern method.response.header.{name}, where name is a valid, unique - // header name. Destinations specified here are available to the integration - // for mapping from integration response parameters. - ResponseParameters map[string]*bool `locationName:"responseParameters" type:"map"` - - // The RestApi identifier for the Method resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The method response's status code. - StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"` -} - -// String returns the string representation -func (s PutMethodResponseInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutMethodResponseInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutMethodResponseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutMethodResponseInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StatusCode == nil { - invalidParams.Add(request.NewErrParamRequired("StatusCode")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A PUT request to update an existing API, with external API definitions specified -// as the request body. -type PutRestApiInput struct { - _ struct{} `type:"structure" payload:"Body"` - - // The PUT request body containing external API definitions. Currently, only - // Swagger definition JSON files are supported. - Body []byte `locationName:"body" type:"blob" required:"true"` - - // A query parameter to indicate whether to rollback the API update (true) or - // not (false) when a warning is encountered. The default value is false. - FailOnWarnings *bool `location:"querystring" locationName:"failonwarnings" type:"boolean"` - - // The mode query parameter to specify the update mode. Valid values are "merge" - // and "overwrite". By default, the update mode is "merge". - Mode *string `location:"querystring" locationName:"mode" type:"string" enum:"PutMode"` - - // Custom headers supplied as part of the request. - Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"` - - // The identifier of the RestApi to be updated. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s PutRestApiInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutRestApiInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRestApiInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRestApiInput"} - if s.Body == nil { - invalidParams.Add(request.NewErrParamRequired("Body")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents a resource. -type Resource struct { - _ struct{} `type:"structure"` - - // The resource's identifier. - Id *string `locationName:"id" type:"string"` - - // The parent resource's identifier. - ParentId *string `locationName:"parentId" type:"string"` - - // The full path for this resource. - Path *string `locationName:"path" type:"string"` - - // The last path segment for this resource. - PathPart *string `locationName:"pathPart" type:"string"` - - // Map of methods for this resource, which is included only if the request uses - // the embed query option. - ResourceMethods map[string]*Method `locationName:"resourceMethods" type:"map"` -} - -// String returns the string representation -func (s Resource) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Resource) GoString() string { - return s.String() -} - -// Represents a REST API. -type RestApi struct { - _ struct{} `type:"structure"` - - // The date when the API was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). - CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` - - // The API's description. - Description *string `locationName:"description" type:"string"` - - // The API's identifier. This identifier is unique across all of your APIs in - // Amazon API Gateway. - Id *string `locationName:"id" type:"string"` - - // The API's name. - Name *string `locationName:"name" type:"string"` - - Warnings []*string `locationName:"warnings" type:"list"` -} - -// String returns the string representation -func (s RestApi) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RestApi) GoString() string { - return s.String() -} - -// Represents a unique identifier for a version of a deployed RestApi that is -// callable by users. -type Stage struct { - _ struct{} `type:"structure"` - - // Specifies whether a cache cluster is enabled for the stage. - CacheClusterEnabled *bool `locationName:"cacheClusterEnabled" type:"boolean"` - - // The size of the cache cluster for the stage, if enabled. - CacheClusterSize *string `locationName:"cacheClusterSize" type:"string" enum:"CacheClusterSize"` - - // The status of the cache cluster for the stage, if enabled. - CacheClusterStatus *string `locationName:"cacheClusterStatus" type:"string" enum:"CacheClusterStatus"` - - ClientCertificateId *string `locationName:"clientCertificateId" type:"string"` - - // The date and time that the stage was created, in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" - // target="_blank). - CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"` - - // The identifier of the Deployment that the stage points to. - DeploymentId *string `locationName:"deploymentId" type:"string"` - - // The stage's description. - Description *string `locationName:"description" type:"string"` - - // The date and time that information about the stage was last updated, in ISO - // 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm" target="_blank). - LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"` - - // A map that defines the method settings for a Stage resource. Keys are defined - // as {resource_path}/{http_method} for an individual method override, or \*/\* - // for the settings applied to all methods in the stage. - MethodSettings map[string]*MethodSetting `locationName:"methodSettings" type:"map"` - - // The name of the stage is the first path segment in the Uniform Resource Identifier - // (URI) of a call to Amazon API Gateway. - StageName *string `locationName:"stageName" type:"string"` - - // A map that defines the stage variables for a Stage resource. Variable names - // can have alphanumeric characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+. - Variables map[string]*string `locationName:"variables" type:"map"` -} - -// String returns the string representation -func (s Stage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Stage) GoString() string { - return s.String() -} - -// A reference to a unique stage identified in the format {restApiId}/{stage}. -type StageKey struct { - _ struct{} `type:"structure"` - - // A list of Stage resources that are associated with the ApiKey resource. - RestApiId *string `locationName:"restApiId" type:"string"` - - // The stage name in the RestApi that the stage key references. - StageName *string `locationName:"stageName" type:"string"` -} - -// String returns the string representation -func (s StageKey) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StageKey) GoString() string { - return s.String() -} - -// Make a request to simulate the execution of an Authorizer. -type TestInvokeAuthorizerInput struct { - _ struct{} `type:"structure"` - - // [Optional] A key-value map of additional context variables. - AdditionalContext map[string]*string `locationName:"additionalContext" type:"map"` - - // Specifies a test invoke authorizer request's Authorizer ID. - AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"` - - // [Optional] The simulated request body of an incoming invocation request. - Body *string `locationName:"body" type:"string"` - - // [Required] A key-value map of headers to simulate an incoming invocation - // request. This is where the incoming authorization token, or identity source, - // should be specified. - Headers map[string]*string `locationName:"headers" type:"map"` - - // [Optional] The URI path, including query string, of the simulated invocation - // request. Use this to specify path parameters and query string parameters. - PathWithQueryString *string `locationName:"pathWithQueryString" type:"string"` - - // Specifies a test invoke authorizer request's RestApi identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // A key-value map of stage variables to simulate an invocation on a deployed - // Stage. - StageVariables map[string]*string `locationName:"stageVariables" type:"map"` -} - -// String returns the string representation -func (s TestInvokeAuthorizerInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TestInvokeAuthorizerInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TestInvokeAuthorizerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TestInvokeAuthorizerInput"} - if s.AuthorizerId == nil { - invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response of the test invoke request in for a custom Authorizer -type TestInvokeAuthorizerOutput struct { - _ struct{} `type:"structure"` - - Authorization map[string][]*string `locationName:"authorization" type:"map"` - - // The HTTP status code that the client would have received. Value is 0 if the - // authorizer succeeded. - ClientStatus *int64 `locationName:"clientStatus" type:"integer"` - - // The execution latency of the test authorizer request - Latency *int64 `locationName:"latency" type:"long"` - - // The Amazon API Gateway execution log for the test authorizer request. - Log *string `locationName:"log" type:"string"` - - // The policy JSON document returned by the Authorizer - Policy *string `locationName:"policy" type:"string"` - - // The principal identity returned by the Authorizer - PrincipalId *string `locationName:"principalId" type:"string"` -} - -// String returns the string representation -func (s TestInvokeAuthorizerOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TestInvokeAuthorizerOutput) GoString() string { - return s.String() -} - -// Make a request to simulate the execution of a Method. -type TestInvokeMethodInput struct { - _ struct{} `type:"structure"` - - // The simulated request body of an incoming invocation request. - Body *string `locationName:"body" type:"string"` - - // A ClientCertificate identifier to use in the test invocation. API Gateway - // will use use the certificate when making the HTTPS request to the defined - // backend endpoint. - ClientCertificateId *string `locationName:"clientCertificateId" type:"string"` - - // A key-value map of headers to simulate an incoming invocation request. - Headers map[string]*string `locationName:"headers" type:"map"` - - // Specifies a test invoke method request's HTTP method. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // The URI path, including query string, of the simulated invocation request. - // Use this to specify path parameters and query string parameters. - PathWithQueryString *string `locationName:"pathWithQueryString" type:"string"` - - // Specifies a test invoke method request's resource ID. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // Specifies a test invoke method request's API identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // A key-value map of stage variables to simulate an invocation on a deployed - // Stage. - StageVariables map[string]*string `locationName:"stageVariables" type:"map"` -} - -// String returns the string representation -func (s TestInvokeMethodInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TestInvokeMethodInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TestInvokeMethodInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TestInvokeMethodInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response of the test invoke request in HTTP method. -type TestInvokeMethodOutput struct { - _ struct{} `type:"structure"` - - // The body of HTTP response. - Body *string `locationName:"body" type:"string"` - - // The headers of HTTP response. - Headers map[string]*string `locationName:"headers" type:"map"` - - // The execution latency of the test invoke request. - Latency *int64 `locationName:"latency" type:"long"` - - // The Amazon API Gateway execution log for the test invoke request. - Log *string `locationName:"log" type:"string"` - - // The HTTP status code. - Status *int64 `locationName:"status" type:"integer"` -} - -// String returns the string representation -func (s TestInvokeMethodOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TestInvokeMethodOutput) GoString() string { - return s.String() -} - -// Returns the throttle settings. -type ThrottleSettings struct { - _ struct{} `type:"structure"` - - // Returns the burstLimit when ThrottleSettings is called. - BurstLimit *int64 `locationName:"burstLimit" type:"integer"` - - // Returns the rateLimit when ThrottleSettings is called. - RateLimit *float64 `locationName:"rateLimit" type:"double"` -} - -// String returns the string representation -func (s ThrottleSettings) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ThrottleSettings) GoString() string { - return s.String() -} - -// Requests Amazon API Gateway to change information about the current Account -// resource. -type UpdateAccountInput struct { - _ struct{} `type:"structure"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` -} - -// String returns the string representation -func (s UpdateAccountInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateAccountInput) GoString() string { - return s.String() -} - -// A request to change information about an ApiKey resource. -type UpdateApiKeyInput struct { - _ struct{} `type:"structure"` - - // The identifier of the ApiKey resource to be updated. - ApiKey *string `location:"uri" locationName:"api_Key" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` -} - -// String returns the string representation -func (s UpdateApiKeyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateApiKeyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateApiKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateApiKeyInput"} - if s.ApiKey == nil { - invalidParams.Add(request.NewErrParamRequired("ApiKey")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to update an existing Authorizer resource. -type UpdateAuthorizerInput struct { - _ struct{} `type:"structure"` - - // The identifier of the Authorizer resource. - AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` - - // The RestApi identifier for the Authorizer resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateAuthorizerInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateAuthorizerInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAuthorizerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAuthorizerInput"} - if s.AuthorizerId == nil { - invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A request to change information about the BasePathMapping resource. -type UpdateBasePathMappingInput struct { - _ struct{} `type:"structure"` - - // The base path of the BasePathMapping resource to change. - BasePath *string `location:"uri" locationName:"base_path" type:"string" required:"true"` - - // The domain name of the BasePathMapping resource to change. - DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` -} - -// String returns the string representation -func (s UpdateBasePathMappingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateBasePathMappingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateBasePathMappingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateBasePathMappingInput"} - if s.BasePath == nil { - invalidParams.Add(request.NewErrParamRequired("BasePath")) - } - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A request to change information about an ClientCertificate resource. -type UpdateClientCertificateInput struct { - _ struct{} `type:"structure"` - - // The identifier of the ClientCertificate resource to be updated. - ClientCertificateId *string `location:"uri" locationName:"clientcertificate_id" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` -} - -// String returns the string representation -func (s UpdateClientCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateClientCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateClientCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateClientCertificateInput"} - if s.ClientCertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientCertificateId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Requests Amazon API Gateway to change information about a Deployment resource. -type UpdateDeploymentInput struct { - _ struct{} `type:"structure"` - - // The replacment identifier for the Deployment resource to change information - // about. - DeploymentId *string `location:"uri" locationName:"deployment_id" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` - - // The replacement identifier of the RestApi resource for the Deployment resource - // to change information about. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateDeploymentInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateDeploymentInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDeploymentInput"} - if s.DeploymentId == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A request to change information about the DomainName resource. -type UpdateDomainNameInput struct { - _ struct{} `type:"structure"` - - // The name of the DomainName resource to be changed. - DomainName *string `location:"uri" locationName:"domain_name" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` -} - -// String returns the string representation -func (s UpdateDomainNameInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateDomainNameInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDomainNameInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDomainNameInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents an update integration request. -type UpdateIntegrationInput struct { - _ struct{} `type:"structure"` - - // Represents an update integration request's HTTP method. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` - - // Represents an update integration request's resource identifier. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // Represents an update integration request's API identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateIntegrationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateIntegrationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateIntegrationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateIntegrationInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents an update integration response request. -type UpdateIntegrationResponseInput struct { - _ struct{} `type:"structure"` - - // Specifies an update integration response request's HTTP method. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` - - // Specifies an update integration response request's resource identifier. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // Specifies an update integration response request's API identifier. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // Specifies an update integration response request's status code. - StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateIntegrationResponseInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateIntegrationResponseInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateIntegrationResponseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateIntegrationResponseInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StatusCode == nil { - invalidParams.Add(request.NewErrParamRequired("StatusCode")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to update an existing Method resource. -type UpdateMethodInput struct { - _ struct{} `type:"structure"` - - // The HTTP verb that identifies the Method resource. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` - - // The Resource identifier for the Method resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // The RestApi identifier for the Method resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateMethodInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateMethodInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateMethodInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateMethodInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A request to update an existing MethodResponse resource. -type UpdateMethodResponseInput struct { - _ struct{} `type:"structure"` - - // The HTTP verb identifier for the parent Method resource. - HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` - - // The Resource identifier for the MethodResponse resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // The RestApi identifier for the MethodResponse resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The status code identifier for the MethodResponse resource. - StatusCode *string `location:"uri" locationName:"status_code" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateMethodResponseInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateMethodResponseInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateMethodResponseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateMethodResponseInput"} - if s.HttpMethod == nil { - invalidParams.Add(request.NewErrParamRequired("HttpMethod")) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StatusCode == nil { - invalidParams.Add(request.NewErrParamRequired("StatusCode")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to update an existing model in an existing RestApi resource. -type UpdateModelInput struct { - _ struct{} `type:"structure"` - - // The name of the model to update. - ModelName *string `location:"uri" locationName:"model_name" type:"string" required:"true"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` - - // The RestApi identifier under which the model exists. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateModelInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateModelInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateModelInput"} - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to change information about a Resource resource. -type UpdateResourceInput struct { - _ struct{} `type:"structure"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` - - // The identifier of the Resource resource. - ResourceId *string `location:"uri" locationName:"resource_id" type:"string" required:"true"` - - // The RestApi identifier for the Resource resource. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateResourceInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to update an existing RestApi resource in your collection. -type UpdateRestApiInput struct { - _ struct{} `type:"structure"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` - - // The ID of the RestApi you want to update. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateRestApiInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateRestApiInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateRestApiInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateRestApiInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Requests Amazon API Gateway to change information about a Stage resource. -type UpdateStageInput struct { - _ struct{} `type:"structure"` - - // A list of operations describing the updates to apply to the specified resource. - // The patches are applied in the order specified in the list. - PatchOperations []*PatchOperation `locationName:"patchOperations" type:"list"` - - // The identifier of the RestApi resource for the Stage resource to change information - // about. - RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` - - // The name of the Stage resource to change information about. - StageName *string `location:"uri" locationName:"stage_name" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateStageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateStageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateStageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateStageInput"} - if s.RestApiId == nil { - invalidParams.Add(request.NewErrParamRequired("RestApiId")) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The authorizer type. Only current value is TOKEN. -const ( - // @enum AuthorizerType - AuthorizerTypeToken = "TOKEN" -) - -// Returns the size of the CacheCluster. -const ( - // @enum CacheClusterSize - CacheClusterSize05 = "0.5" - // @enum CacheClusterSize - CacheClusterSize16 = "1.6" - // @enum CacheClusterSize - CacheClusterSize61 = "6.1" - // @enum CacheClusterSize - CacheClusterSize135 = "13.5" - // @enum CacheClusterSize - CacheClusterSize284 = "28.4" - // @enum CacheClusterSize - CacheClusterSize582 = "58.2" - // @enum CacheClusterSize - CacheClusterSize118 = "118" - // @enum CacheClusterSize - CacheClusterSize237 = "237" -) - -// Returns the status of the CacheCluster. -const ( - // @enum CacheClusterStatus - CacheClusterStatusCreateInProgress = "CREATE_IN_PROGRESS" - // @enum CacheClusterStatus - CacheClusterStatusAvailable = "AVAILABLE" - // @enum CacheClusterStatus - CacheClusterStatusDeleteInProgress = "DELETE_IN_PROGRESS" - // @enum CacheClusterStatus - CacheClusterStatusNotAvailable = "NOT_AVAILABLE" - // @enum CacheClusterStatus - CacheClusterStatusFlushInProgress = "FLUSH_IN_PROGRESS" -) - -// The integration type. The valid value is HTTP, AWS, or MOCK. -const ( - // @enum IntegrationType - IntegrationTypeHttp = "HTTP" - // @enum IntegrationType - IntegrationTypeAws = "AWS" - // @enum IntegrationType - IntegrationTypeMock = "MOCK" -) - -const ( - // @enum PutMode - PutModeMerge = "merge" - // @enum PutMode - PutModeOverwrite = "overwrite" -) - -const ( - // @enum UnauthorizedCacheControlHeaderStrategy - UnauthorizedCacheControlHeaderStrategyFailWith403 = "FAIL_WITH_403" - // @enum UnauthorizedCacheControlHeaderStrategy - UnauthorizedCacheControlHeaderStrategySucceedWithResponseHeader = "SUCCEED_WITH_RESPONSE_HEADER" - // @enum UnauthorizedCacheControlHeaderStrategy - UnauthorizedCacheControlHeaderStrategySucceedWithoutResponseHeader = "SUCCEED_WITHOUT_RESPONSE_HEADER" -) - -const ( - // @enum op - OpAdd = "add" - // @enum op - OpRemove = "remove" - // @enum op - OpReplace = "replace" - // @enum op - OpMove = "move" - // @enum op - OpCopy = "copy" - // @enum op - OpTest = "test" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go deleted file mode 100644 index 7f43df8ec..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface.go +++ /dev/null @@ -1,338 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package apigatewayiface provides an interface for the Amazon API Gateway. -package apigatewayiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/apigateway" -) - -// APIGatewayAPI is the interface type for apigateway.APIGateway. -type APIGatewayAPI interface { - CreateApiKeyRequest(*apigateway.CreateApiKeyInput) (*request.Request, *apigateway.ApiKey) - - CreateApiKey(*apigateway.CreateApiKeyInput) (*apigateway.ApiKey, error) - - CreateAuthorizerRequest(*apigateway.CreateAuthorizerInput) (*request.Request, *apigateway.Authorizer) - - CreateAuthorizer(*apigateway.CreateAuthorizerInput) (*apigateway.Authorizer, error) - - CreateBasePathMappingRequest(*apigateway.CreateBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping) - - CreateBasePathMapping(*apigateway.CreateBasePathMappingInput) (*apigateway.BasePathMapping, error) - - CreateDeploymentRequest(*apigateway.CreateDeploymentInput) (*request.Request, *apigateway.Deployment) - - CreateDeployment(*apigateway.CreateDeploymentInput) (*apigateway.Deployment, error) - - CreateDomainNameRequest(*apigateway.CreateDomainNameInput) (*request.Request, *apigateway.DomainName) - - CreateDomainName(*apigateway.CreateDomainNameInput) (*apigateway.DomainName, error) - - CreateModelRequest(*apigateway.CreateModelInput) (*request.Request, *apigateway.Model) - - CreateModel(*apigateway.CreateModelInput) (*apigateway.Model, error) - - CreateResourceRequest(*apigateway.CreateResourceInput) (*request.Request, *apigateway.Resource) - - CreateResource(*apigateway.CreateResourceInput) (*apigateway.Resource, error) - - CreateRestApiRequest(*apigateway.CreateRestApiInput) (*request.Request, *apigateway.RestApi) - - CreateRestApi(*apigateway.CreateRestApiInput) (*apigateway.RestApi, error) - - CreateStageRequest(*apigateway.CreateStageInput) (*request.Request, *apigateway.Stage) - - CreateStage(*apigateway.CreateStageInput) (*apigateway.Stage, error) - - DeleteApiKeyRequest(*apigateway.DeleteApiKeyInput) (*request.Request, *apigateway.DeleteApiKeyOutput) - - DeleteApiKey(*apigateway.DeleteApiKeyInput) (*apigateway.DeleteApiKeyOutput, error) - - DeleteAuthorizerRequest(*apigateway.DeleteAuthorizerInput) (*request.Request, *apigateway.DeleteAuthorizerOutput) - - DeleteAuthorizer(*apigateway.DeleteAuthorizerInput) (*apigateway.DeleteAuthorizerOutput, error) - - DeleteBasePathMappingRequest(*apigateway.DeleteBasePathMappingInput) (*request.Request, *apigateway.DeleteBasePathMappingOutput) - - DeleteBasePathMapping(*apigateway.DeleteBasePathMappingInput) (*apigateway.DeleteBasePathMappingOutput, error) - - DeleteClientCertificateRequest(*apigateway.DeleteClientCertificateInput) (*request.Request, *apigateway.DeleteClientCertificateOutput) - - DeleteClientCertificate(*apigateway.DeleteClientCertificateInput) (*apigateway.DeleteClientCertificateOutput, error) - - DeleteDeploymentRequest(*apigateway.DeleteDeploymentInput) (*request.Request, *apigateway.DeleteDeploymentOutput) - - DeleteDeployment(*apigateway.DeleteDeploymentInput) (*apigateway.DeleteDeploymentOutput, error) - - DeleteDomainNameRequest(*apigateway.DeleteDomainNameInput) (*request.Request, *apigateway.DeleteDomainNameOutput) - - DeleteDomainName(*apigateway.DeleteDomainNameInput) (*apigateway.DeleteDomainNameOutput, error) - - DeleteIntegrationRequest(*apigateway.DeleteIntegrationInput) (*request.Request, *apigateway.DeleteIntegrationOutput) - - DeleteIntegration(*apigateway.DeleteIntegrationInput) (*apigateway.DeleteIntegrationOutput, error) - - DeleteIntegrationResponseRequest(*apigateway.DeleteIntegrationResponseInput) (*request.Request, *apigateway.DeleteIntegrationResponseOutput) - - DeleteIntegrationResponse(*apigateway.DeleteIntegrationResponseInput) (*apigateway.DeleteIntegrationResponseOutput, error) - - DeleteMethodRequest(*apigateway.DeleteMethodInput) (*request.Request, *apigateway.DeleteMethodOutput) - - DeleteMethod(*apigateway.DeleteMethodInput) (*apigateway.DeleteMethodOutput, error) - - DeleteMethodResponseRequest(*apigateway.DeleteMethodResponseInput) (*request.Request, *apigateway.DeleteMethodResponseOutput) - - DeleteMethodResponse(*apigateway.DeleteMethodResponseInput) (*apigateway.DeleteMethodResponseOutput, error) - - DeleteModelRequest(*apigateway.DeleteModelInput) (*request.Request, *apigateway.DeleteModelOutput) - - DeleteModel(*apigateway.DeleteModelInput) (*apigateway.DeleteModelOutput, error) - - DeleteResourceRequest(*apigateway.DeleteResourceInput) (*request.Request, *apigateway.DeleteResourceOutput) - - DeleteResource(*apigateway.DeleteResourceInput) (*apigateway.DeleteResourceOutput, error) - - DeleteRestApiRequest(*apigateway.DeleteRestApiInput) (*request.Request, *apigateway.DeleteRestApiOutput) - - DeleteRestApi(*apigateway.DeleteRestApiInput) (*apigateway.DeleteRestApiOutput, error) - - DeleteStageRequest(*apigateway.DeleteStageInput) (*request.Request, *apigateway.DeleteStageOutput) - - DeleteStage(*apigateway.DeleteStageInput) (*apigateway.DeleteStageOutput, error) - - FlushStageAuthorizersCacheRequest(*apigateway.FlushStageAuthorizersCacheInput) (*request.Request, *apigateway.FlushStageAuthorizersCacheOutput) - - FlushStageAuthorizersCache(*apigateway.FlushStageAuthorizersCacheInput) (*apigateway.FlushStageAuthorizersCacheOutput, error) - - FlushStageCacheRequest(*apigateway.FlushStageCacheInput) (*request.Request, *apigateway.FlushStageCacheOutput) - - FlushStageCache(*apigateway.FlushStageCacheInput) (*apigateway.FlushStageCacheOutput, error) - - GenerateClientCertificateRequest(*apigateway.GenerateClientCertificateInput) (*request.Request, *apigateway.ClientCertificate) - - GenerateClientCertificate(*apigateway.GenerateClientCertificateInput) (*apigateway.ClientCertificate, error) - - GetAccountRequest(*apigateway.GetAccountInput) (*request.Request, *apigateway.Account) - - GetAccount(*apigateway.GetAccountInput) (*apigateway.Account, error) - - GetApiKeyRequest(*apigateway.GetApiKeyInput) (*request.Request, *apigateway.ApiKey) - - GetApiKey(*apigateway.GetApiKeyInput) (*apigateway.ApiKey, error) - - GetApiKeysRequest(*apigateway.GetApiKeysInput) (*request.Request, *apigateway.GetApiKeysOutput) - - GetApiKeys(*apigateway.GetApiKeysInput) (*apigateway.GetApiKeysOutput, error) - - GetApiKeysPages(*apigateway.GetApiKeysInput, func(*apigateway.GetApiKeysOutput, bool) bool) error - - GetAuthorizerRequest(*apigateway.GetAuthorizerInput) (*request.Request, *apigateway.Authorizer) - - GetAuthorizer(*apigateway.GetAuthorizerInput) (*apigateway.Authorizer, error) - - GetAuthorizersRequest(*apigateway.GetAuthorizersInput) (*request.Request, *apigateway.GetAuthorizersOutput) - - GetAuthorizers(*apigateway.GetAuthorizersInput) (*apigateway.GetAuthorizersOutput, error) - - GetBasePathMappingRequest(*apigateway.GetBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping) - - GetBasePathMapping(*apigateway.GetBasePathMappingInput) (*apigateway.BasePathMapping, error) - - GetBasePathMappingsRequest(*apigateway.GetBasePathMappingsInput) (*request.Request, *apigateway.GetBasePathMappingsOutput) - - GetBasePathMappings(*apigateway.GetBasePathMappingsInput) (*apigateway.GetBasePathMappingsOutput, error) - - GetBasePathMappingsPages(*apigateway.GetBasePathMappingsInput, func(*apigateway.GetBasePathMappingsOutput, bool) bool) error - - GetClientCertificateRequest(*apigateway.GetClientCertificateInput) (*request.Request, *apigateway.ClientCertificate) - - GetClientCertificate(*apigateway.GetClientCertificateInput) (*apigateway.ClientCertificate, error) - - GetClientCertificatesRequest(*apigateway.GetClientCertificatesInput) (*request.Request, *apigateway.GetClientCertificatesOutput) - - GetClientCertificates(*apigateway.GetClientCertificatesInput) (*apigateway.GetClientCertificatesOutput, error) - - GetClientCertificatesPages(*apigateway.GetClientCertificatesInput, func(*apigateway.GetClientCertificatesOutput, bool) bool) error - - GetDeploymentRequest(*apigateway.GetDeploymentInput) (*request.Request, *apigateway.Deployment) - - GetDeployment(*apigateway.GetDeploymentInput) (*apigateway.Deployment, error) - - GetDeploymentsRequest(*apigateway.GetDeploymentsInput) (*request.Request, *apigateway.GetDeploymentsOutput) - - GetDeployments(*apigateway.GetDeploymentsInput) (*apigateway.GetDeploymentsOutput, error) - - GetDeploymentsPages(*apigateway.GetDeploymentsInput, func(*apigateway.GetDeploymentsOutput, bool) bool) error - - GetDomainNameRequest(*apigateway.GetDomainNameInput) (*request.Request, *apigateway.DomainName) - - GetDomainName(*apigateway.GetDomainNameInput) (*apigateway.DomainName, error) - - GetDomainNamesRequest(*apigateway.GetDomainNamesInput) (*request.Request, *apigateway.GetDomainNamesOutput) - - GetDomainNames(*apigateway.GetDomainNamesInput) (*apigateway.GetDomainNamesOutput, error) - - GetDomainNamesPages(*apigateway.GetDomainNamesInput, func(*apigateway.GetDomainNamesOutput, bool) bool) error - - GetExportRequest(*apigateway.GetExportInput) (*request.Request, *apigateway.GetExportOutput) - - GetExport(*apigateway.GetExportInput) (*apigateway.GetExportOutput, error) - - GetIntegrationRequest(*apigateway.GetIntegrationInput) (*request.Request, *apigateway.Integration) - - GetIntegration(*apigateway.GetIntegrationInput) (*apigateway.Integration, error) - - GetIntegrationResponseRequest(*apigateway.GetIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse) - - GetIntegrationResponse(*apigateway.GetIntegrationResponseInput) (*apigateway.IntegrationResponse, error) - - GetMethodRequest(*apigateway.GetMethodInput) (*request.Request, *apigateway.Method) - - GetMethod(*apigateway.GetMethodInput) (*apigateway.Method, error) - - GetMethodResponseRequest(*apigateway.GetMethodResponseInput) (*request.Request, *apigateway.MethodResponse) - - GetMethodResponse(*apigateway.GetMethodResponseInput) (*apigateway.MethodResponse, error) - - GetModelRequest(*apigateway.GetModelInput) (*request.Request, *apigateway.Model) - - GetModel(*apigateway.GetModelInput) (*apigateway.Model, error) - - GetModelTemplateRequest(*apigateway.GetModelTemplateInput) (*request.Request, *apigateway.GetModelTemplateOutput) - - GetModelTemplate(*apigateway.GetModelTemplateInput) (*apigateway.GetModelTemplateOutput, error) - - GetModelsRequest(*apigateway.GetModelsInput) (*request.Request, *apigateway.GetModelsOutput) - - GetModels(*apigateway.GetModelsInput) (*apigateway.GetModelsOutput, error) - - GetModelsPages(*apigateway.GetModelsInput, func(*apigateway.GetModelsOutput, bool) bool) error - - GetResourceRequest(*apigateway.GetResourceInput) (*request.Request, *apigateway.Resource) - - GetResource(*apigateway.GetResourceInput) (*apigateway.Resource, error) - - GetResourcesRequest(*apigateway.GetResourcesInput) (*request.Request, *apigateway.GetResourcesOutput) - - GetResources(*apigateway.GetResourcesInput) (*apigateway.GetResourcesOutput, error) - - GetResourcesPages(*apigateway.GetResourcesInput, func(*apigateway.GetResourcesOutput, bool) bool) error - - GetRestApiRequest(*apigateway.GetRestApiInput) (*request.Request, *apigateway.RestApi) - - GetRestApi(*apigateway.GetRestApiInput) (*apigateway.RestApi, error) - - GetRestApisRequest(*apigateway.GetRestApisInput) (*request.Request, *apigateway.GetRestApisOutput) - - GetRestApis(*apigateway.GetRestApisInput) (*apigateway.GetRestApisOutput, error) - - GetRestApisPages(*apigateway.GetRestApisInput, func(*apigateway.GetRestApisOutput, bool) bool) error - - GetSdkRequest(*apigateway.GetSdkInput) (*request.Request, *apigateway.GetSdkOutput) - - GetSdk(*apigateway.GetSdkInput) (*apigateway.GetSdkOutput, error) - - GetStageRequest(*apigateway.GetStageInput) (*request.Request, *apigateway.Stage) - - GetStage(*apigateway.GetStageInput) (*apigateway.Stage, error) - - GetStagesRequest(*apigateway.GetStagesInput) (*request.Request, *apigateway.GetStagesOutput) - - GetStages(*apigateway.GetStagesInput) (*apigateway.GetStagesOutput, error) - - ImportRestApiRequest(*apigateway.ImportRestApiInput) (*request.Request, *apigateway.RestApi) - - ImportRestApi(*apigateway.ImportRestApiInput) (*apigateway.RestApi, error) - - PutIntegrationRequest(*apigateway.PutIntegrationInput) (*request.Request, *apigateway.Integration) - - PutIntegration(*apigateway.PutIntegrationInput) (*apigateway.Integration, error) - - PutIntegrationResponseRequest(*apigateway.PutIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse) - - PutIntegrationResponse(*apigateway.PutIntegrationResponseInput) (*apigateway.IntegrationResponse, error) - - PutMethodRequest(*apigateway.PutMethodInput) (*request.Request, *apigateway.Method) - - PutMethod(*apigateway.PutMethodInput) (*apigateway.Method, error) - - PutMethodResponseRequest(*apigateway.PutMethodResponseInput) (*request.Request, *apigateway.MethodResponse) - - PutMethodResponse(*apigateway.PutMethodResponseInput) (*apigateway.MethodResponse, error) - - PutRestApiRequest(*apigateway.PutRestApiInput) (*request.Request, *apigateway.RestApi) - - PutRestApi(*apigateway.PutRestApiInput) (*apigateway.RestApi, error) - - TestInvokeAuthorizerRequest(*apigateway.TestInvokeAuthorizerInput) (*request.Request, *apigateway.TestInvokeAuthorizerOutput) - - TestInvokeAuthorizer(*apigateway.TestInvokeAuthorizerInput) (*apigateway.TestInvokeAuthorizerOutput, error) - - TestInvokeMethodRequest(*apigateway.TestInvokeMethodInput) (*request.Request, *apigateway.TestInvokeMethodOutput) - - TestInvokeMethod(*apigateway.TestInvokeMethodInput) (*apigateway.TestInvokeMethodOutput, error) - - UpdateAccountRequest(*apigateway.UpdateAccountInput) (*request.Request, *apigateway.Account) - - UpdateAccount(*apigateway.UpdateAccountInput) (*apigateway.Account, error) - - UpdateApiKeyRequest(*apigateway.UpdateApiKeyInput) (*request.Request, *apigateway.ApiKey) - - UpdateApiKey(*apigateway.UpdateApiKeyInput) (*apigateway.ApiKey, error) - - UpdateAuthorizerRequest(*apigateway.UpdateAuthorizerInput) (*request.Request, *apigateway.Authorizer) - - UpdateAuthorizer(*apigateway.UpdateAuthorizerInput) (*apigateway.Authorizer, error) - - UpdateBasePathMappingRequest(*apigateway.UpdateBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping) - - UpdateBasePathMapping(*apigateway.UpdateBasePathMappingInput) (*apigateway.BasePathMapping, error) - - UpdateClientCertificateRequest(*apigateway.UpdateClientCertificateInput) (*request.Request, *apigateway.ClientCertificate) - - UpdateClientCertificate(*apigateway.UpdateClientCertificateInput) (*apigateway.ClientCertificate, error) - - UpdateDeploymentRequest(*apigateway.UpdateDeploymentInput) (*request.Request, *apigateway.Deployment) - - UpdateDeployment(*apigateway.UpdateDeploymentInput) (*apigateway.Deployment, error) - - UpdateDomainNameRequest(*apigateway.UpdateDomainNameInput) (*request.Request, *apigateway.DomainName) - - UpdateDomainName(*apigateway.UpdateDomainNameInput) (*apigateway.DomainName, error) - - UpdateIntegrationRequest(*apigateway.UpdateIntegrationInput) (*request.Request, *apigateway.Integration) - - UpdateIntegration(*apigateway.UpdateIntegrationInput) (*apigateway.Integration, error) - - UpdateIntegrationResponseRequest(*apigateway.UpdateIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse) - - UpdateIntegrationResponse(*apigateway.UpdateIntegrationResponseInput) (*apigateway.IntegrationResponse, error) - - UpdateMethodRequest(*apigateway.UpdateMethodInput) (*request.Request, *apigateway.Method) - - UpdateMethod(*apigateway.UpdateMethodInput) (*apigateway.Method, error) - - UpdateMethodResponseRequest(*apigateway.UpdateMethodResponseInput) (*request.Request, *apigateway.MethodResponse) - - UpdateMethodResponse(*apigateway.UpdateMethodResponseInput) (*apigateway.MethodResponse, error) - - UpdateModelRequest(*apigateway.UpdateModelInput) (*request.Request, *apigateway.Model) - - UpdateModel(*apigateway.UpdateModelInput) (*apigateway.Model, error) - - UpdateResourceRequest(*apigateway.UpdateResourceInput) (*request.Request, *apigateway.Resource) - - UpdateResource(*apigateway.UpdateResourceInput) (*apigateway.Resource, error) - - UpdateRestApiRequest(*apigateway.UpdateRestApiInput) (*request.Request, *apigateway.RestApi) - - UpdateRestApi(*apigateway.UpdateRestApiInput) (*apigateway.RestApi, error) - - UpdateStageRequest(*apigateway.UpdateStageInput) (*request.Request, *apigateway.Stage) - - UpdateStage(*apigateway.UpdateStageInput) (*apigateway.Stage, error) -} - -var _ APIGatewayAPI = (*apigateway.APIGateway)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/customization.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/customization.go deleted file mode 100644 index 2dc4a7c44..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/customization.go +++ /dev/null @@ -1,14 +0,0 @@ -package apigateway - -import ( - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/request" -) - -func init() { - initClient = func(c *client.Client) { - c.Handlers.Build.PushBack(func(r *request.Request) { - r.HTTPRequest.Header.Add("Accept", "application/json") - }) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go deleted file mode 100644 index 69e9685d4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/examples_test.go +++ /dev/null @@ -1,1837 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package apigateway_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/apigateway" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleAPIGateway_CreateApiKey() { - svc := apigateway.New(session.New()) - - params := &apigateway.CreateApiKeyInput{ - Description: aws.String("String"), - Enabled: aws.Bool(true), - Name: aws.String("String"), - StageKeys: []*apigateway.StageKey{ - { // Required - RestApiId: aws.String("String"), - StageName: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.CreateApiKey(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_CreateAuthorizer() { - svc := apigateway.New(session.New()) - - params := &apigateway.CreateAuthorizerInput{ - AuthorizerUri: aws.String("String"), // Required - IdentitySource: aws.String("String"), // Required - Name: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - Type: aws.String("AuthorizerType"), // Required - AuthType: aws.String("String"), - AuthorizerCredentials: aws.String("String"), - AuthorizerResultTtlInSeconds: aws.Int64(1), - IdentityValidationExpression: aws.String("String"), - } - resp, err := svc.CreateAuthorizer(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_CreateBasePathMapping() { - svc := apigateway.New(session.New()) - - params := &apigateway.CreateBasePathMappingInput{ - DomainName: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - BasePath: aws.String("String"), - Stage: aws.String("String"), - } - resp, err := svc.CreateBasePathMapping(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_CreateDeployment() { - svc := apigateway.New(session.New()) - - params := &apigateway.CreateDeploymentInput{ - RestApiId: aws.String("String"), // Required - StageName: aws.String("String"), // Required - CacheClusterEnabled: aws.Bool(true), - CacheClusterSize: aws.String("CacheClusterSize"), - Description: aws.String("String"), - StageDescription: aws.String("String"), - Variables: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.CreateDeployment(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_CreateDomainName() { - svc := apigateway.New(session.New()) - - params := &apigateway.CreateDomainNameInput{ - CertificateBody: aws.String("String"), // Required - CertificateChain: aws.String("String"), // Required - CertificateName: aws.String("String"), // Required - CertificatePrivateKey: aws.String("String"), // Required - DomainName: aws.String("String"), // Required - } - resp, err := svc.CreateDomainName(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_CreateModel() { - svc := apigateway.New(session.New()) - - params := &apigateway.CreateModelInput{ - ContentType: aws.String("String"), // Required - Name: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - Description: aws.String("String"), - Schema: aws.String("String"), - } - resp, err := svc.CreateModel(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_CreateResource() { - svc := apigateway.New(session.New()) - - params := &apigateway.CreateResourceInput{ - ParentId: aws.String("String"), // Required - PathPart: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.CreateResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_CreateRestApi() { - svc := apigateway.New(session.New()) - - params := &apigateway.CreateRestApiInput{ - Name: aws.String("String"), // Required - CloneFrom: aws.String("String"), - Description: aws.String("String"), - } - resp, err := svc.CreateRestApi(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_CreateStage() { - svc := apigateway.New(session.New()) - - params := &apigateway.CreateStageInput{ - DeploymentId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StageName: aws.String("String"), // Required - CacheClusterEnabled: aws.Bool(true), - CacheClusterSize: aws.String("CacheClusterSize"), - Description: aws.String("String"), - Variables: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.CreateStage(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteApiKey() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteApiKeyInput{ - ApiKey: aws.String("String"), // Required - } - resp, err := svc.DeleteApiKey(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteAuthorizer() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteAuthorizerInput{ - AuthorizerId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.DeleteAuthorizer(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteBasePathMapping() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteBasePathMappingInput{ - BasePath: aws.String("String"), // Required - DomainName: aws.String("String"), // Required - } - resp, err := svc.DeleteBasePathMapping(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteClientCertificate() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteClientCertificateInput{ - ClientCertificateId: aws.String("String"), // Required - } - resp, err := svc.DeleteClientCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteDeployment() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteDeploymentInput{ - DeploymentId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.DeleteDeployment(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteDomainName() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteDomainNameInput{ - DomainName: aws.String("String"), // Required - } - resp, err := svc.DeleteDomainName(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteIntegration() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteIntegrationInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.DeleteIntegration(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteIntegrationResponse() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteIntegrationResponseInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StatusCode: aws.String("StatusCode"), // Required - } - resp, err := svc.DeleteIntegrationResponse(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteMethod() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteMethodInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.DeleteMethod(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteMethodResponse() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteMethodResponseInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StatusCode: aws.String("StatusCode"), // Required - } - resp, err := svc.DeleteMethodResponse(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteModel() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteModelInput{ - ModelName: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.DeleteModel(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteResource() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteResourceInput{ - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.DeleteResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteRestApi() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteRestApiInput{ - RestApiId: aws.String("String"), // Required - } - resp, err := svc.DeleteRestApi(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_DeleteStage() { - svc := apigateway.New(session.New()) - - params := &apigateway.DeleteStageInput{ - RestApiId: aws.String("String"), // Required - StageName: aws.String("String"), // Required - } - resp, err := svc.DeleteStage(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_FlushStageAuthorizersCache() { - svc := apigateway.New(session.New()) - - params := &apigateway.FlushStageAuthorizersCacheInput{ - RestApiId: aws.String("String"), // Required - StageName: aws.String("String"), // Required - } - resp, err := svc.FlushStageAuthorizersCache(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_FlushStageCache() { - svc := apigateway.New(session.New()) - - params := &apigateway.FlushStageCacheInput{ - RestApiId: aws.String("String"), // Required - StageName: aws.String("String"), // Required - } - resp, err := svc.FlushStageCache(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GenerateClientCertificate() { - svc := apigateway.New(session.New()) - - params := &apigateway.GenerateClientCertificateInput{ - Description: aws.String("String"), - } - resp, err := svc.GenerateClientCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetAccount() { - svc := apigateway.New(session.New()) - - var params *apigateway.GetAccountInput - resp, err := svc.GetAccount(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetApiKey() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetApiKeyInput{ - ApiKey: aws.String("String"), // Required - } - resp, err := svc.GetApiKey(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetApiKeys() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetApiKeysInput{ - Limit: aws.Int64(1), - Position: aws.String("String"), - } - resp, err := svc.GetApiKeys(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetAuthorizer() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetAuthorizerInput{ - AuthorizerId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.GetAuthorizer(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetAuthorizers() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetAuthorizersInput{ - RestApiId: aws.String("String"), // Required - Limit: aws.Int64(1), - Position: aws.String("String"), - } - resp, err := svc.GetAuthorizers(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetBasePathMapping() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetBasePathMappingInput{ - BasePath: aws.String("String"), // Required - DomainName: aws.String("String"), // Required - } - resp, err := svc.GetBasePathMapping(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetBasePathMappings() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetBasePathMappingsInput{ - DomainName: aws.String("String"), // Required - Limit: aws.Int64(1), - Position: aws.String("String"), - } - resp, err := svc.GetBasePathMappings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetClientCertificate() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetClientCertificateInput{ - ClientCertificateId: aws.String("String"), // Required - } - resp, err := svc.GetClientCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetClientCertificates() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetClientCertificatesInput{ - Limit: aws.Int64(1), - Position: aws.String("String"), - } - resp, err := svc.GetClientCertificates(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetDeployment() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetDeploymentInput{ - DeploymentId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.GetDeployment(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetDeployments() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetDeploymentsInput{ - RestApiId: aws.String("String"), // Required - Limit: aws.Int64(1), - Position: aws.String("String"), - } - resp, err := svc.GetDeployments(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetDomainName() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetDomainNameInput{ - DomainName: aws.String("String"), // Required - } - resp, err := svc.GetDomainName(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetDomainNames() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetDomainNamesInput{ - Limit: aws.Int64(1), - Position: aws.String("String"), - } - resp, err := svc.GetDomainNames(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetExport() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetExportInput{ - ExportType: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StageName: aws.String("String"), // Required - Accepts: aws.String("String"), - Parameters: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.GetExport(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetIntegration() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetIntegrationInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.GetIntegration(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetIntegrationResponse() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetIntegrationResponseInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StatusCode: aws.String("StatusCode"), // Required - } - resp, err := svc.GetIntegrationResponse(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetMethod() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetMethodInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.GetMethod(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetMethodResponse() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetMethodResponseInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StatusCode: aws.String("StatusCode"), // Required - } - resp, err := svc.GetMethodResponse(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetModel() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetModelInput{ - ModelName: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - Flatten: aws.Bool(true), - } - resp, err := svc.GetModel(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetModelTemplate() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetModelTemplateInput{ - ModelName: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.GetModelTemplate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetModels() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetModelsInput{ - RestApiId: aws.String("String"), // Required - Limit: aws.Int64(1), - Position: aws.String("String"), - } - resp, err := svc.GetModels(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetResource() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetResourceInput{ - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - } - resp, err := svc.GetResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetResources() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetResourcesInput{ - RestApiId: aws.String("String"), // Required - Limit: aws.Int64(1), - Position: aws.String("String"), - } - resp, err := svc.GetResources(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetRestApi() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetRestApiInput{ - RestApiId: aws.String("String"), // Required - } - resp, err := svc.GetRestApi(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetRestApis() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetRestApisInput{ - Limit: aws.Int64(1), - Position: aws.String("String"), - } - resp, err := svc.GetRestApis(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetSdk() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetSdkInput{ - RestApiId: aws.String("String"), // Required - SdkType: aws.String("String"), // Required - StageName: aws.String("String"), // Required - Parameters: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.GetSdk(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetStage() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetStageInput{ - RestApiId: aws.String("String"), // Required - StageName: aws.String("String"), // Required - } - resp, err := svc.GetStage(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_GetStages() { - svc := apigateway.New(session.New()) - - params := &apigateway.GetStagesInput{ - RestApiId: aws.String("String"), // Required - DeploymentId: aws.String("String"), - } - resp, err := svc.GetStages(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_ImportRestApi() { - svc := apigateway.New(session.New()) - - params := &apigateway.ImportRestApiInput{ - Body: []byte("PAYLOAD"), // Required - FailOnWarnings: aws.Bool(true), - Parameters: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.ImportRestApi(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_PutIntegration() { - svc := apigateway.New(session.New()) - - params := &apigateway.PutIntegrationInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - Type: aws.String("IntegrationType"), // Required - CacheKeyParameters: []*string{ - aws.String("String"), // Required - // More values... - }, - CacheNamespace: aws.String("String"), - Credentials: aws.String("String"), - IntegrationHttpMethod: aws.String("String"), - PassthroughBehavior: aws.String("String"), - RequestParameters: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - RequestTemplates: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - Uri: aws.String("String"), - } - resp, err := svc.PutIntegration(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_PutIntegrationResponse() { - svc := apigateway.New(session.New()) - - params := &apigateway.PutIntegrationResponseInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StatusCode: aws.String("StatusCode"), // Required - ResponseParameters: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - ResponseTemplates: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - SelectionPattern: aws.String("String"), - } - resp, err := svc.PutIntegrationResponse(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_PutMethod() { - svc := apigateway.New(session.New()) - - params := &apigateway.PutMethodInput{ - AuthorizationType: aws.String("String"), // Required - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - ApiKeyRequired: aws.Bool(true), - AuthorizerId: aws.String("String"), - RequestModels: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - RequestParameters: map[string]*bool{ - "Key": aws.Bool(true), // Required - // More values... - }, - } - resp, err := svc.PutMethod(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_PutMethodResponse() { - svc := apigateway.New(session.New()) - - params := &apigateway.PutMethodResponseInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StatusCode: aws.String("StatusCode"), // Required - ResponseModels: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - ResponseParameters: map[string]*bool{ - "Key": aws.Bool(true), // Required - // More values... - }, - } - resp, err := svc.PutMethodResponse(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_PutRestApi() { - svc := apigateway.New(session.New()) - - params := &apigateway.PutRestApiInput{ - Body: []byte("PAYLOAD"), // Required - RestApiId: aws.String("String"), // Required - FailOnWarnings: aws.Bool(true), - Mode: aws.String("PutMode"), - Parameters: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.PutRestApi(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_TestInvokeAuthorizer() { - svc := apigateway.New(session.New()) - - params := &apigateway.TestInvokeAuthorizerInput{ - AuthorizerId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - AdditionalContext: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - Body: aws.String("String"), - Headers: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - PathWithQueryString: aws.String("String"), - StageVariables: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.TestInvokeAuthorizer(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_TestInvokeMethod() { - svc := apigateway.New(session.New()) - - params := &apigateway.TestInvokeMethodInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - Body: aws.String("String"), - ClientCertificateId: aws.String("String"), - Headers: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - PathWithQueryString: aws.String("String"), - StageVariables: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.TestInvokeMethod(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateAccount() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateAccountInput{ - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateAccount(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateApiKey() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateApiKeyInput{ - ApiKey: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateApiKey(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateAuthorizer() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateAuthorizerInput{ - AuthorizerId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateAuthorizer(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateBasePathMapping() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateBasePathMappingInput{ - BasePath: aws.String("String"), // Required - DomainName: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateBasePathMapping(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateClientCertificate() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateClientCertificateInput{ - ClientCertificateId: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateClientCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateDeployment() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateDeploymentInput{ - DeploymentId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateDeployment(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateDomainName() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateDomainNameInput{ - DomainName: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateDomainName(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateIntegration() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateIntegrationInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateIntegration(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateIntegrationResponse() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateIntegrationResponseInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StatusCode: aws.String("StatusCode"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateIntegrationResponse(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateMethod() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateMethodInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateMethod(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateMethodResponse() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateMethodResponseInput{ - HttpMethod: aws.String("String"), // Required - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - StatusCode: aws.String("StatusCode"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateMethodResponse(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateModel() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateModelInput{ - ModelName: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateModel(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateResource() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateResourceInput{ - ResourceId: aws.String("String"), // Required - RestApiId: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateRestApi() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateRestApiInput{ - RestApiId: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateRestApi(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleAPIGateway_UpdateStage() { - svc := apigateway.New(session.New()) - - params := &apigateway.UpdateStageInput{ - RestApiId: aws.String("String"), // Required - StageName: aws.String("String"), // Required - PatchOperations: []*apigateway.PatchOperation{ - { // Required - From: aws.String("String"), - Op: aws.String("op"), - Path: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateStage(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/service.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/service.go deleted file mode 100644 index 6e6c8cfb3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/apigateway/service.go +++ /dev/null @@ -1,90 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package apigateway - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// Amazon API Gateway helps developers deliver robust, secure and scalable mobile -// and web application backends. Amazon API Gateway allows developers to securely -// connect mobile and web applications to APIs that run on AWS Lambda, Amazon -// EC2, or other publicly addressable web services that are hosted outside of -// AWS. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type APIGateway struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "apigateway" - -// New creates a new instance of the APIGateway client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a APIGateway client from just a session. -// svc := apigateway.New(mySession) -// -// // Create a APIGateway client with additional configuration -// svc := apigateway.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *APIGateway { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *APIGateway { - svc := &APIGateway{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-07-09", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a APIGateway operation and runs any -// custom request initialization. -func (c *APIGateway) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go deleted file mode 100644 index 9e3de189c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/api.go +++ /dev/null @@ -1,1252 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package applicationautoscaling provides a client for Application Auto Scaling. -package applicationautoscaling - -import ( - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" -) - -const opDeleteScalingPolicy = "DeleteScalingPolicy" - -// DeleteScalingPolicyRequest generates a request for the DeleteScalingPolicy operation. -func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) (req *request.Request, output *DeleteScalingPolicyOutput) { - op := &request.Operation{ - Name: opDeleteScalingPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteScalingPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteScalingPolicyOutput{} - req.Data = output - return -} - -// Deletes an Application Auto Scaling scaling policy that was previously created. -// If you are no longer using a scaling policy, you can delete it with this -// operation. -// -// Deleting a policy deletes the underlying alarm action, but does not delete -// the CloudWatch alarm, even if it no longer has an associated action. -// -// To create a new scaling policy or update an existing one, see PutScalingPolicy. -func (c *ApplicationAutoScaling) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) { - req, out := c.DeleteScalingPolicyRequest(input) - err := req.Send() - return out, err -} - -const opDeregisterScalableTarget = "DeregisterScalableTarget" - -// DeregisterScalableTargetRequest generates a request for the DeregisterScalableTarget operation. -func (c *ApplicationAutoScaling) DeregisterScalableTargetRequest(input *DeregisterScalableTargetInput) (req *request.Request, output *DeregisterScalableTargetOutput) { - op := &request.Operation{ - Name: opDeregisterScalableTarget, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeregisterScalableTargetInput{} - } - - req = c.newRequest(op, input, output) - output = &DeregisterScalableTargetOutput{} - req.Data = output - return -} - -// Deregisters a scalable target that was previously registered. If you are -// no longer using a scalable target, you can delete it with this operation. -// When you deregister a scalable target, all of the scaling policies that are -// associated with that scalable target are deleted. -// -// To create a new scalable target or update an existing one, see RegisterScalableTarget. -func (c *ApplicationAutoScaling) DeregisterScalableTarget(input *DeregisterScalableTargetInput) (*DeregisterScalableTargetOutput, error) { - req, out := c.DeregisterScalableTargetRequest(input) - err := req.Send() - return out, err -} - -const opDescribeScalableTargets = "DescribeScalableTargets" - -// DescribeScalableTargetsRequest generates a request for the DescribeScalableTargets operation. -func (c *ApplicationAutoScaling) DescribeScalableTargetsRequest(input *DescribeScalableTargetsInput) (req *request.Request, output *DescribeScalableTargetsOutput) { - op := &request.Operation{ - Name: opDescribeScalableTargets, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &DescribeScalableTargetsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeScalableTargetsOutput{} - req.Data = output - return -} - -// Provides descriptive information for scalable targets with a specified service -// namespace. -// -// You can filter the results in a service namespace with the ResourceIds and -// ScalableDimension parameters. -// -// To create a new scalable target or update an existing one, see RegisterScalableTarget. -// If you are no longer using a scalable target, you can deregister it with -// DeregisterScalableTarget. -func (c *ApplicationAutoScaling) DescribeScalableTargets(input *DescribeScalableTargetsInput) (*DescribeScalableTargetsOutput, error) { - req, out := c.DescribeScalableTargetsRequest(input) - err := req.Send() - return out, err -} - -func (c *ApplicationAutoScaling) DescribeScalableTargetsPages(input *DescribeScalableTargetsInput, fn func(p *DescribeScalableTargetsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.DescribeScalableTargetsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*DescribeScalableTargetsOutput), lastPage) - }) -} - -const opDescribeScalingActivities = "DescribeScalingActivities" - -// DescribeScalingActivitiesRequest generates a request for the DescribeScalingActivities operation. -func (c *ApplicationAutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingActivitiesInput) (req *request.Request, output *DescribeScalingActivitiesOutput) { - op := &request.Operation{ - Name: opDescribeScalingActivities, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &DescribeScalingActivitiesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeScalingActivitiesOutput{} - req.Data = output - return -} - -// Provides descriptive information for scaling activities with a specified -// service namespace. -// -// You can filter the results in a service namespace with the ResourceId and -// ScalableDimension parameters. -// -// Scaling activities are triggered by CloudWatch alarms that are associated -// with scaling policies. To view the existing scaling policies for a service -// namespace, see DescribeScalingPolicies. To create a new scaling policy or -// update an existing one, see PutScalingPolicy. -func (c *ApplicationAutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) { - req, out := c.DescribeScalingActivitiesRequest(input) - err := req.Send() - return out, err -} - -func (c *ApplicationAutoScaling) DescribeScalingActivitiesPages(input *DescribeScalingActivitiesInput, fn func(p *DescribeScalingActivitiesOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.DescribeScalingActivitiesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*DescribeScalingActivitiesOutput), lastPage) - }) -} - -const opDescribeScalingPolicies = "DescribeScalingPolicies" - -// DescribeScalingPoliciesRequest generates a request for the DescribeScalingPolicies operation. -func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeScalingPoliciesInput) (req *request.Request, output *DescribeScalingPoliciesOutput) { - op := &request.Operation{ - Name: opDescribeScalingPolicies, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &DescribeScalingPoliciesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeScalingPoliciesOutput{} - req.Data = output - return -} - -// Provides descriptive information for scaling policies with a specified service -// namespace. -// -// You can filter the results in a service namespace with the ResourceId, ScalableDimension, -// and PolicyNames parameters. -// -// To create a new scaling policy or update an existing one, see PutScalingPolicy. -// If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy. -func (c *ApplicationAutoScaling) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) { - req, out := c.DescribeScalingPoliciesRequest(input) - err := req.Send() - return out, err -} - -func (c *ApplicationAutoScaling) DescribeScalingPoliciesPages(input *DescribeScalingPoliciesInput, fn func(p *DescribeScalingPoliciesOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.DescribeScalingPoliciesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*DescribeScalingPoliciesOutput), lastPage) - }) -} - -const opPutScalingPolicy = "PutScalingPolicy" - -// PutScalingPolicyRequest generates a request for the PutScalingPolicy operation. -func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *request.Request, output *PutScalingPolicyOutput) { - op := &request.Operation{ - Name: opPutScalingPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutScalingPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &PutScalingPolicyOutput{} - req.Data = output - return -} - -// Creates or updates a policy for an existing Application Auto Scaling scalable -// target. Each scalable target is identified by service namespace, a resource -// ID, and a scalable dimension, and a scaling policy applies to a scalable -// target that is identified by those three attributes. You cannot create a -// scaling policy without first registering a scalable target with RegisterScalableTarget. -// -// To update an existing policy, use the existing policy name and set the parameters -// you want to change. Any existing parameter not changed in an update to an -// existing policy is not changed in this update request. -// -// You can view the existing scaling policies for a service namespace with -// DescribeScalingPolicies. If you are no longer using a scaling policy, you -// can delete it with DeleteScalingPolicy. -func (c *ApplicationAutoScaling) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { - req, out := c.PutScalingPolicyRequest(input) - err := req.Send() - return out, err -} - -const opRegisterScalableTarget = "RegisterScalableTarget" - -// RegisterScalableTargetRequest generates a request for the RegisterScalableTarget operation. -func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterScalableTargetInput) (req *request.Request, output *RegisterScalableTargetOutput) { - op := &request.Operation{ - Name: opRegisterScalableTarget, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RegisterScalableTargetInput{} - } - - req = c.newRequest(op, input, output) - output = &RegisterScalableTargetOutput{} - req.Data = output - return -} - -// Registers or updates a scalable target. A scalable target is a resource that -// can be scaled up or down with Application Auto Scaling. After you have registered -// a scalable target, you can use this command to update the minimum and maximum -// values for your scalable dimension. -// -// At this time, Application Auto Scaling only supports scaling Amazon ECS -// services. -// -// After you register a scalable target with Application Auto Scaling, you -// can create and apply scaling policies to it with PutScalingPolicy. You can -// view the existing scaling policies for a service namespace with DescribeScalableTargets. -// If you are no longer using a scalable target, you can deregister it with -// DeregisterScalableTarget. -func (c *ApplicationAutoScaling) RegisterScalableTarget(input *RegisterScalableTargetInput) (*RegisterScalableTargetOutput, error) { - req, out := c.RegisterScalableTargetRequest(input) - err := req.Send() - return out, err -} - -// An object representing a CloudWatch alarm associated with a scaling policy. -type Alarm struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the alarm. - AlarmARN *string `type:"string" required:"true"` - - // The name of the alarm. - AlarmName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s Alarm) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Alarm) GoString() string { - return s.String() -} - -type DeleteScalingPolicyInput struct { - _ struct{} `type:"structure"` - - // The name of the scaling policy to delete. - PolicyName *string `min:"1" type:"string" required:"true"` - - // The unique identifier string for the resource associated with the scaling - // policy. For Amazon ECS services, this value is the resource type, followed - // by the cluster name and service name, such as service/default/sample-webapp. - ResourceId *string `min:"1" type:"string" required:"true"` - - // The scalable dimension associated with the scaling policy. The scalable dimension - // contains the service namespace, resource type, and scaling property, such - // as ecs:service:DesiredCount for the desired task count of an Amazon ECS service. - ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - - // The namespace for the AWS service that the scaling policy is associated with. - // For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) - // in the Amazon Web Services General Reference. - ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` -} - -// String returns the string representation -func (s DeleteScalingPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteScalingPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteScalingPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteScalingPolicyInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.ScalableDimension == nil { - invalidParams.Add(request.NewErrParamRequired("ScalableDimension")) - } - if s.ServiceNamespace == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceNamespace")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteScalingPolicyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteScalingPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteScalingPolicyOutput) GoString() string { - return s.String() -} - -type DeregisterScalableTargetInput struct { - _ struct{} `type:"structure"` - - // The unique identifier string for the resource associated with the scalable - // target. For Amazon ECS services, this value is the resource type, followed - // by the cluster name and service name, such as service/default/sample-webapp. - ResourceId *string `min:"1" type:"string" required:"true"` - - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service. - ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - - // The namespace for the AWS service that the scalable target is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) - // in the Amazon Web Services General Reference. - ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` -} - -// String returns the string representation -func (s DeregisterScalableTargetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeregisterScalableTargetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterScalableTargetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterScalableTargetInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.ScalableDimension == nil { - invalidParams.Add(request.NewErrParamRequired("ScalableDimension")) - } - if s.ServiceNamespace == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceNamespace")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeregisterScalableTargetOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeregisterScalableTargetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeregisterScalableTargetOutput) GoString() string { - return s.String() -} - -type DescribeScalableTargetsInput struct { - _ struct{} `type:"structure"` - - // The maximum number of scalable target results returned by DescribeScalableTargets - // in paginated output. When this parameter is used, DescribeScalableTargets - // returns up to MaxResults results in a single page along with a NextToken - // response element. The remaining results of the initial request can be seen - // by sending another DescribeScalableTargets request with the returned NextToken - // value. This value can be between 1 and 50. If this parameter is not used, - // then DescribeScalableTargets returns up to 50 results and a NextToken value, - // if applicable. - MaxResults *int64 `type:"integer"` - - // The NextToken value returned from a previous paginated DescribeScalableTargets - // request. Pagination continues from the end of the previous results that returned - // the NextToken value. This value is null when there are no more results to - // return. - NextToken *string `type:"string"` - - // The unique identifier string for the resource associated with the scalable - // target. For Amazon ECS services, this value is the resource type, followed - // by the cluster name and service name, such as service/default/sample-webapp. - // If you specify a scalable dimension, you must also specify a resource ID. - ResourceIds []*string `type:"list"` - - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service. If you specify a scalable dimension, you must also specify a - // resource ID. - ScalableDimension *string `type:"string" enum:"ScalableDimension"` - - // The namespace for the AWS service that the scalable target is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) - // in the Amazon Web Services General Reference. - ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` -} - -// String returns the string representation -func (s DescribeScalableTargetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScalableTargetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeScalableTargetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeScalableTargetsInput"} - if s.ServiceNamespace == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceNamespace")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeScalableTargetsOutput struct { - _ struct{} `type:"structure"` - - // The NextToken value to include in a future DescribeScalableTargets request. - // When the results of a DescribeScalableTargets request exceed MaxResults, - // this value can be used to retrieve the next page of results. This value is - // null when there are no more results to return. - NextToken *string `type:"string"` - - // The list of scalable targets that matches the request parameters. - ScalableTargets []*ScalableTarget `type:"list"` -} - -// String returns the string representation -func (s DescribeScalableTargetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScalableTargetsOutput) GoString() string { - return s.String() -} - -type DescribeScalingActivitiesInput struct { - _ struct{} `type:"structure"` - - // The maximum number of scaling activity results returned by DescribeScalingActivities - // in paginated output. When this parameter is used, DescribeScalingActivities - // returns up to MaxResults results in a single page along with a NextToken - // response element. The remaining results of the initial request can be seen - // by sending another DescribeScalingActivities request with the returned NextToken - // value. This value can be between 1 and 50. If this parameter is not used, - // then DescribeScalingActivities returns up to 50 results and a NextToken value, - // if applicable. - MaxResults *int64 `type:"integer"` - - // The NextToken value returned from a previous paginated DescribeScalingActivities - // request. Pagination continues from the end of the previous results that returned - // the NextToken value. This value is null when there are no more results to - // return. - NextToken *string `type:"string"` - - // The unique identifier string for the resource associated with the scaling - // activity. For Amazon ECS services, this value is the resource type, followed - // by the cluster name and service name, such as service/default/sample-webapp. - // If you specify a scalable dimension, you must also specify a resource ID. - ResourceId *string `min:"1" type:"string"` - - // The scalable dimension associated with the scaling activity. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service. If you specify a scalable dimension, you must also specify a - // resource ID. - ScalableDimension *string `type:"string" enum:"ScalableDimension"` - - // The namespace for the AWS service that the scaling activity is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) - // in the Amazon Web Services General Reference. - ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` -} - -// String returns the string representation -func (s DescribeScalingActivitiesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScalingActivitiesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeScalingActivitiesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeScalingActivitiesInput"} - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.ServiceNamespace == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceNamespace")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeScalingActivitiesOutput struct { - _ struct{} `type:"structure"` - - // The NextToken value to include in a future DescribeScalingActivities request. - // When the results of a DescribeScalingActivities request exceed MaxResults, - // this value can be used to retrieve the next page of results. This value is - // null when there are no more results to return. - NextToken *string `type:"string"` - - // A list of scaling activity objects. - ScalingActivities []*ScalingActivity `type:"list"` -} - -// String returns the string representation -func (s DescribeScalingActivitiesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScalingActivitiesOutput) GoString() string { - return s.String() -} - -type DescribeScalingPoliciesInput struct { - _ struct{} `type:"structure"` - - // The maximum number of scaling policy results returned by DescribeScalingPolicies - // in paginated output. When this parameter is used, DescribeScalingPolicies - // returns up to MaxResults results in a single page along with a NextToken - // response element. The remaining results of the initial request can be seen - // by sending another DescribeScalingPolicies request with the returned NextToken - // value. This value can be between 1 and 50. If this parameter is not used, - // then DescribeScalingPolicies returns up to 50 results and a NextToken value, - // if applicable. - MaxResults *int64 `type:"integer"` - - // The NextToken value returned from a previous paginated DescribeScalingPolicies - // request. Pagination continues from the end of the previous results that returned - // the NextToken value. This value is null when there are no more results to - // return. - NextToken *string `type:"string"` - - // The names of the scaling policies to describe. - PolicyNames []*string `type:"list"` - - // The unique resource identifier string of the scalable target that the scaling - // policy is associated with. For Amazon ECS services, this value is the resource - // type, followed by the cluster name and service name, such as service/default/sample-webapp. - // If you specify a scalable dimension, you must also specify a resource ID. - ResourceId *string `min:"1" type:"string"` - - // The scalable dimension of the scalable target that the scaling policy is - // associated with. The scalable dimension contains the service namespace, resource - // type, and scaling property, such as ecs:service:DesiredCount for the desired - // task count of an Amazon ECS service. If you specify a scalable dimension, - // you must also specify a resource ID. - ScalableDimension *string `type:"string" enum:"ScalableDimension"` - - // The AWS service namespace of the scalable target that the scaling policy - // is associated with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) - // in the Amazon Web Services General Reference. - ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` -} - -// String returns the string representation -func (s DescribeScalingPoliciesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScalingPoliciesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeScalingPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeScalingPoliciesInput"} - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.ServiceNamespace == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceNamespace")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeScalingPoliciesOutput struct { - _ struct{} `type:"structure"` - - // The NextToken value to include in a future DescribeScalingPolicies request. - // When the results of a DescribeScalingPolicies request exceed MaxResults, - // this value can be used to retrieve the next page of results. This value is - // null when there are no more results to return. - NextToken *string `type:"string"` - - // A list of scaling policy objects. - ScalingPolicies []*ScalingPolicy `type:"list"` -} - -// String returns the string representation -func (s DescribeScalingPoliciesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScalingPoliciesOutput) GoString() string { - return s.String() -} - -type PutScalingPolicyInput struct { - _ struct{} `type:"structure"` - - // The name of the scaling policy. - PolicyName *string `min:"1" type:"string" required:"true"` - - // The policy type. This parameter is required if you are creating a new policy. - PolicyType *string `type:"string" enum:"PolicyType"` - - // The unique resource identifier string for the scalable target that this scaling - // policy applies to. For Amazon ECS services, this value is the resource type, - // followed by the cluster name and service name, such as service/default/sample-webapp. - ResourceId *string `min:"1" type:"string" required:"true"` - - // The scalable dimension of the scalable target that this scaling policy applies - // to. The scalable dimension contains the service namespace, resource type, - // and scaling property, such as ecs:service:DesiredCount for the desired task - // count of an Amazon ECS service. - ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - - // The AWS service namespace of the scalable target that this scaling policy - // applies to. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) - // in the Amazon Web Services General Reference. - ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` - - // The configuration for the step scaling policy. This parameter is required - // if you are creating a new policy. For more information, see StepScalingPolicyConfiguration - // and StepAdjustment. - StepScalingPolicyConfiguration *StepScalingPolicyConfiguration `type:"structure"` -} - -// String returns the string representation -func (s PutScalingPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutScalingPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutScalingPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutScalingPolicyInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.ScalableDimension == nil { - invalidParams.Add(request.NewErrParamRequired("ScalableDimension")) - } - if s.ServiceNamespace == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceNamespace")) - } - if s.StepScalingPolicyConfiguration != nil { - if err := s.StepScalingPolicyConfiguration.Validate(); err != nil { - invalidParams.AddNested("StepScalingPolicyConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type PutScalingPolicyOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resulting scaling policy. - PolicyARN *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s PutScalingPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutScalingPolicyOutput) GoString() string { - return s.String() -} - -type RegisterScalableTargetInput struct { - _ struct{} `type:"structure"` - - // The maximum value for this scalable target to scale out to in response to - // scaling activities. This parameter is required if you are registering a new - // scalable target, and it is optional if you are updating an existing one. - MaxCapacity *int64 `type:"integer"` - - // The minimum value for this scalable target to scale in to in response to - // scaling activities. This parameter is required if you are registering a new - // scalable target, and it is optional if you are updating an existing one. - MinCapacity *int64 `type:"integer"` - - // The unique identifier string for the resource to associate with the scalable - // target. For Amazon ECS services, this value is the resource type, followed - // by the cluster name and service name, such as service/default/sample-webapp. - ResourceId *string `min:"1" type:"string" required:"true"` - - // The ARN of the IAM role that allows Application Auto Scaling to modify your - // scalable target on your behalf. This parameter is required if you are registering - // a new scalable target, and it is optional if you are updating an existing - // one. - RoleARN *string `min:"1" type:"string"` - - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service. - ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - - // The namespace for the AWS service that the scalable target is associated - // with. For Amazon ECS services, the namespace value is ecs. For more information, - // see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) - // in the Amazon Web Services General Reference. - ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` -} - -// String returns the string representation -func (s RegisterScalableTargetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegisterScalableTargetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterScalableTargetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterScalableTargetInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.RoleARN != nil && len(*s.RoleARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) - } - if s.ScalableDimension == nil { - invalidParams.Add(request.NewErrParamRequired("ScalableDimension")) - } - if s.ServiceNamespace == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceNamespace")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RegisterScalableTargetOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s RegisterScalableTargetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegisterScalableTargetOutput) GoString() string { - return s.String() -} - -// An object representing a scalable target. -type ScalableTarget struct { - _ struct{} `type:"structure"` - - // The Unix timestamp for when the scalable target was created. - CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - - // The maximum value for this scalable target to scale out to in response to - // scaling activities. - MaxCapacity *int64 `type:"integer" required:"true"` - - // The minimum value for this scalable target to scale in to in response to - // scaling activities. - MinCapacity *int64 `type:"integer" required:"true"` - - // The unique identifier string for the resource associated with the scalable - // target. For Amazon ECS services, this value is the resource type, followed - // by the cluster name and service name, such as service/default/sample-webapp. - ResourceId *string `min:"1" type:"string" required:"true"` - - // The ARN of the IAM role that allows Application Auto Scaling to modify your - // scalable target on your behalf. - RoleARN *string `min:"1" type:"string" required:"true"` - - // The scalable dimension associated with the scalable target. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service. - ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - - // The namespace for the AWS service that the scalable target is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) - // in the Amazon Web Services General Reference. - ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` -} - -// String returns the string representation -func (s ScalableTarget) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScalableTarget) GoString() string { - return s.String() -} - -// An object representing a scaling activity. -type ScalingActivity struct { - _ struct{} `type:"structure"` - - // The unique identifier string for the scaling activity. - ActivityId *string `type:"string" required:"true"` - - // A simple description of what caused the scaling activity to happen. - Cause *string `type:"string" required:"true"` - - // A simple description of what action the scaling activity intends to accomplish. - Description *string `type:"string" required:"true"` - - // The details about the scaling activity. - Details *string `type:"string"` - - // The Unix timestamp for when the scaling activity ended. - EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The unique identifier string for the resource associated with the scaling - // activity. For Amazon ECS services, this value is the resource type, followed - // by the cluster name and service name, such as service/default/sample-webapp. - ResourceId *string `min:"1" type:"string" required:"true"` - - // The scalable dimension associated with the scaling activity. The scalable - // dimension contains the service namespace, resource type, and scaling property, - // such as ecs:service:DesiredCount for the desired task count of an Amazon - // ECS service. - ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - - // The namespace for the AWS service that the scaling activity is associated - // with. For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) - // in the Amazon Web Services General Reference. - ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` - - // The Unix timestamp for when the scaling activity began. - StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - - // Indicates the status of the scaling activity. - StatusCode *string `type:"string" required:"true" enum:"ScalingActivityStatusCode"` - - // A simple message about the current status of the scaling activity. - StatusMessage *string `type:"string"` -} - -// String returns the string representation -func (s ScalingActivity) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScalingActivity) GoString() string { - return s.String() -} - -// An object representing a scaling policy. -type ScalingPolicy struct { - _ struct{} `type:"structure"` - - // The CloudWatch alarms that are associated with the scaling policy. - Alarms []*Alarm `type:"list"` - - // The Unix timestamp for when the scaling policy was created. - CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - - // The Amazon Resource Name (ARN) of the scaling policy. - PolicyARN *string `min:"1" type:"string" required:"true"` - - // The name of the scaling policy. - PolicyName *string `min:"1" type:"string" required:"true"` - - // The scaling policy type. - PolicyType *string `type:"string" required:"true" enum:"PolicyType"` - - // The unique identifier string for the resource associated with the scaling - // policy. For Amazon ECS services, this value is the resource type, followed - // by the cluster name and service name, such as service/default/sample-webapp. - ResourceId *string `min:"1" type:"string" required:"true"` - - // The scalable dimension associated with the scaling policy. The scalable dimension - // contains the service namespace, resource type, and scaling property, such - // as ecs:service:DesiredCount for the desired task count of an Amazon ECS service. - ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` - - // The namespace for the AWS service that the scaling policy is associated with. - // For more information, see AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) - // in the Amazon Web Services General Reference. - ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` - - // The configuration for the step scaling policy. - StepScalingPolicyConfiguration *StepScalingPolicyConfiguration `type:"structure"` -} - -// String returns the string representation -func (s ScalingPolicy) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScalingPolicy) GoString() string { - return s.String() -} - -// An object representing a step adjustment for a StepScalingPolicyConfiguration. -// Describes an adjustment based on the difference between the value of the -// aggregated CloudWatch metric and the breach threshold that you've defined -// for the alarm. -// -// For the following examples, suppose that you have an alarm with a breach -// threshold of 50: -// -// If you want the adjustment to be triggered when the metric is greater -// than or equal to 50 and less than 60, specify a lower bound of 0 and an upper -// bound of 10. -// -// If you want the adjustment to be triggered when the metric is greater -// than 40 and less than or equal to 50, specify a lower bound of -10 and an -// upper bound of 0. -// -// There are a few rules for the step adjustments for your step policy: -// -// The ranges of your step adjustments can't overlap or have a gap. -// -// At most one step adjustment can have a null lower bound. If one step adjustment -// has a negative lower bound, then there must be a step adjustment with a null -// lower bound. -// -// At most one step adjustment can have a null upper bound. If one step adjustment -// has a positive upper bound, then there must be a step adjustment with a null -// upper bound. -// -// The upper and lower bound can't be null in the same step adjustment. -type StepAdjustment struct { - _ struct{} `type:"structure"` - - // The lower bound for the difference between the alarm threshold and the CloudWatch - // metric. If the metric value is above the breach threshold, the lower bound - // is inclusive (the metric must be greater than or equal to the threshold plus - // the lower bound). Otherwise, it is exclusive (the metric must be greater - // than the threshold plus the lower bound). A null value indicates negative - // infinity. - MetricIntervalLowerBound *float64 `type:"double"` - - // The upper bound for the difference between the alarm threshold and the CloudWatch - // metric. If the metric value is above the breach threshold, the upper bound - // is exclusive (the metric must be less than the threshold plus the upper bound). - // Otherwise, it is inclusive (the metric must be less than or equal to the - // threshold plus the upper bound). A null value indicates positive infinity. - // - // The upper bound must be greater than the lower bound. - MetricIntervalUpperBound *float64 `type:"double"` - - // The amount by which to scale, based on the specified adjustment type. A positive - // value adds to the current scalable dimension while a negative number removes - // from the current scalable dimension. - ScalingAdjustment *int64 `type:"integer" required:"true"` -} - -// String returns the string representation -func (s StepAdjustment) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StepAdjustment) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StepAdjustment) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StepAdjustment"} - if s.ScalingAdjustment == nil { - invalidParams.Add(request.NewErrParamRequired("ScalingAdjustment")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// An object representing a step scaling policy configuration. -type StepScalingPolicyConfiguration struct { - _ struct{} `type:"structure"` - - // The adjustment type, which specifies how the ScalingAdjustment parameter - // in a StepAdjustment is interpreted. - AdjustmentType *string `type:"string" enum:"AdjustmentType"` - - // The amount of time, in seconds, after a scaling activity completes where - // previous trigger-related scaling activities can influence future scaling - // events. - // - // For scale out policies, while Cooldown is in effect, the capacity that has - // been added by the previous scale out event that initiated the Cooldown is - // calculated as part of the desired capacity for the next scale out. The intention - // is to continuously (but not excessively) scale out. For example, an alarm - // triggers a step scaling policy to scale out an Amazon ECS service by 2 tasks, - // the scaling activity completes successfully, and a Cooldown period of 5 minutes - // starts. During the Cooldown period, if the alarm triggers the same policy - // again but at a more aggressive step adjustment to scale out the service by - // 3 tasks, the 2 tasks that were added in the previous scale out event are - // considered part of that capacity and only 1 additional task is added to the - // desired count. - // - // For scale in policies, the Cooldown period is used to block subsequent scale - // in requests until it has expired. The intention is to scale in conservatively - // to protect your application's availability. However, if another alarm triggers - // a scale out policy during the Cooldown period after a scale-in, Application - // Auto Scaling scales out your scalable target immediately. - Cooldown *int64 `type:"integer"` - - // The aggregation type for the CloudWatch metrics. Valid values are Minimum, - // Maximum, and Average. - MetricAggregationType *string `type:"string" enum:"MetricAggregationType"` - - // The minimum number to adjust your scalable dimension as a result of a scaling - // activity. If the adjustment type is PercentChangeInCapacity, the scaling - // policy changes the scalable dimension of the scalable target by this amount. - MinAdjustmentMagnitude *int64 `type:"integer"` - - // A set of adjustments that enable you to scale based on the size of the alarm - // breach. - StepAdjustments []*StepAdjustment `type:"list"` -} - -// String returns the string representation -func (s StepScalingPolicyConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StepScalingPolicyConfiguration) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StepScalingPolicyConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StepScalingPolicyConfiguration"} - if s.StepAdjustments != nil { - for i, v := range s.StepAdjustments { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StepAdjustments", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -const ( - // @enum AdjustmentType - AdjustmentTypeChangeInCapacity = "ChangeInCapacity" - // @enum AdjustmentType - AdjustmentTypePercentChangeInCapacity = "PercentChangeInCapacity" - // @enum AdjustmentType - AdjustmentTypeExactCapacity = "ExactCapacity" -) - -const ( - // @enum MetricAggregationType - MetricAggregationTypeAverage = "Average" - // @enum MetricAggregationType - MetricAggregationTypeMinimum = "Minimum" - // @enum MetricAggregationType - MetricAggregationTypeMaximum = "Maximum" -) - -const ( - // @enum PolicyType - PolicyTypeStepScaling = "StepScaling" -) - -const ( - // @enum ScalableDimension - ScalableDimensionEcsServiceDesiredCount = "ecs:service:DesiredCount" -) - -const ( - // @enum ScalingActivityStatusCode - ScalingActivityStatusCodePending = "Pending" - // @enum ScalingActivityStatusCode - ScalingActivityStatusCodeInProgress = "InProgress" - // @enum ScalingActivityStatusCode - ScalingActivityStatusCodeSuccessful = "Successful" - // @enum ScalingActivityStatusCode - ScalingActivityStatusCodeOverridden = "Overridden" - // @enum ScalingActivityStatusCode - ScalingActivityStatusCodeUnfulfilled = "Unfulfilled" - // @enum ScalingActivityStatusCode - ScalingActivityStatusCodeFailed = "Failed" -) - -const ( - // @enum ServiceNamespace - ServiceNamespaceEcs = "ecs" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go deleted file mode 100644 index fef485163..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface/interface.go +++ /dev/null @@ -1,48 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package applicationautoscalingiface provides an interface for the Application Auto Scaling. -package applicationautoscalingiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/applicationautoscaling" -) - -// ApplicationAutoScalingAPI is the interface type for applicationautoscaling.ApplicationAutoScaling. -type ApplicationAutoScalingAPI interface { - DeleteScalingPolicyRequest(*applicationautoscaling.DeleteScalingPolicyInput) (*request.Request, *applicationautoscaling.DeleteScalingPolicyOutput) - - DeleteScalingPolicy(*applicationautoscaling.DeleteScalingPolicyInput) (*applicationautoscaling.DeleteScalingPolicyOutput, error) - - DeregisterScalableTargetRequest(*applicationautoscaling.DeregisterScalableTargetInput) (*request.Request, *applicationautoscaling.DeregisterScalableTargetOutput) - - DeregisterScalableTarget(*applicationautoscaling.DeregisterScalableTargetInput) (*applicationautoscaling.DeregisterScalableTargetOutput, error) - - DescribeScalableTargetsRequest(*applicationautoscaling.DescribeScalableTargetsInput) (*request.Request, *applicationautoscaling.DescribeScalableTargetsOutput) - - DescribeScalableTargets(*applicationautoscaling.DescribeScalableTargetsInput) (*applicationautoscaling.DescribeScalableTargetsOutput, error) - - DescribeScalableTargetsPages(*applicationautoscaling.DescribeScalableTargetsInput, func(*applicationautoscaling.DescribeScalableTargetsOutput, bool) bool) error - - DescribeScalingActivitiesRequest(*applicationautoscaling.DescribeScalingActivitiesInput) (*request.Request, *applicationautoscaling.DescribeScalingActivitiesOutput) - - DescribeScalingActivities(*applicationautoscaling.DescribeScalingActivitiesInput) (*applicationautoscaling.DescribeScalingActivitiesOutput, error) - - DescribeScalingActivitiesPages(*applicationautoscaling.DescribeScalingActivitiesInput, func(*applicationautoscaling.DescribeScalingActivitiesOutput, bool) bool) error - - DescribeScalingPoliciesRequest(*applicationautoscaling.DescribeScalingPoliciesInput) (*request.Request, *applicationautoscaling.DescribeScalingPoliciesOutput) - - DescribeScalingPolicies(*applicationautoscaling.DescribeScalingPoliciesInput) (*applicationautoscaling.DescribeScalingPoliciesOutput, error) - - DescribeScalingPoliciesPages(*applicationautoscaling.DescribeScalingPoliciesInput, func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool) error - - PutScalingPolicyRequest(*applicationautoscaling.PutScalingPolicyInput) (*request.Request, *applicationautoscaling.PutScalingPolicyOutput) - - PutScalingPolicy(*applicationautoscaling.PutScalingPolicyInput) (*applicationautoscaling.PutScalingPolicyOutput, error) - - RegisterScalableTargetRequest(*applicationautoscaling.RegisterScalableTargetInput) (*request.Request, *applicationautoscaling.RegisterScalableTargetOutput) - - RegisterScalableTarget(*applicationautoscaling.RegisterScalableTargetInput) (*applicationautoscaling.RegisterScalableTargetOutput, error) -} - -var _ ApplicationAutoScalingAPI = (*applicationautoscaling.ApplicationAutoScaling)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go deleted file mode 100644 index d3249c9a3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/examples_test.go +++ /dev/null @@ -1,196 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package applicationautoscaling_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/applicationautoscaling" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleApplicationAutoScaling_DeleteScalingPolicy() { - svc := applicationautoscaling.New(session.New()) - - params := &applicationautoscaling.DeleteScalingPolicyInput{ - PolicyName: aws.String("ResourceIdMaxLen1600"), // Required - ResourceId: aws.String("ResourceIdMaxLen1600"), // Required - ScalableDimension: aws.String("ScalableDimension"), // Required - ServiceNamespace: aws.String("ServiceNamespace"), // Required - } - resp, err := svc.DeleteScalingPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationAutoScaling_DeregisterScalableTarget() { - svc := applicationautoscaling.New(session.New()) - - params := &applicationautoscaling.DeregisterScalableTargetInput{ - ResourceId: aws.String("ResourceIdMaxLen1600"), // Required - ScalableDimension: aws.String("ScalableDimension"), // Required - ServiceNamespace: aws.String("ServiceNamespace"), // Required - } - resp, err := svc.DeregisterScalableTarget(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationAutoScaling_DescribeScalableTargets() { - svc := applicationautoscaling.New(session.New()) - - params := &applicationautoscaling.DescribeScalableTargetsInput{ - ServiceNamespace: aws.String("ServiceNamespace"), // Required - MaxResults: aws.Int64(1), - NextToken: aws.String("XmlString"), - ResourceIds: []*string{ - aws.String("ResourceIdMaxLen1600"), // Required - // More values... - }, - ScalableDimension: aws.String("ScalableDimension"), - } - resp, err := svc.DescribeScalableTargets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationAutoScaling_DescribeScalingActivities() { - svc := applicationautoscaling.New(session.New()) - - params := &applicationautoscaling.DescribeScalingActivitiesInput{ - ServiceNamespace: aws.String("ServiceNamespace"), // Required - MaxResults: aws.Int64(1), - NextToken: aws.String("XmlString"), - ResourceId: aws.String("ResourceIdMaxLen1600"), - ScalableDimension: aws.String("ScalableDimension"), - } - resp, err := svc.DescribeScalingActivities(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationAutoScaling_DescribeScalingPolicies() { - svc := applicationautoscaling.New(session.New()) - - params := &applicationautoscaling.DescribeScalingPoliciesInput{ - ServiceNamespace: aws.String("ServiceNamespace"), // Required - MaxResults: aws.Int64(1), - NextToken: aws.String("XmlString"), - PolicyNames: []*string{ - aws.String("ResourceIdMaxLen1600"), // Required - // More values... - }, - ResourceId: aws.String("ResourceIdMaxLen1600"), - ScalableDimension: aws.String("ScalableDimension"), - } - resp, err := svc.DescribeScalingPolicies(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationAutoScaling_PutScalingPolicy() { - svc := applicationautoscaling.New(session.New()) - - params := &applicationautoscaling.PutScalingPolicyInput{ - PolicyName: aws.String("PolicyName"), // Required - ResourceId: aws.String("ResourceIdMaxLen1600"), // Required - ScalableDimension: aws.String("ScalableDimension"), // Required - ServiceNamespace: aws.String("ServiceNamespace"), // Required - PolicyType: aws.String("PolicyType"), - StepScalingPolicyConfiguration: &applicationautoscaling.StepScalingPolicyConfiguration{ - AdjustmentType: aws.String("AdjustmentType"), - Cooldown: aws.Int64(1), - MetricAggregationType: aws.String("MetricAggregationType"), - MinAdjustmentMagnitude: aws.Int64(1), - StepAdjustments: []*applicationautoscaling.StepAdjustment{ - { // Required - ScalingAdjustment: aws.Int64(1), // Required - MetricIntervalLowerBound: aws.Float64(1.0), - MetricIntervalUpperBound: aws.Float64(1.0), - }, - // More values... - }, - }, - } - resp, err := svc.PutScalingPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationAutoScaling_RegisterScalableTarget() { - svc := applicationautoscaling.New(session.New()) - - params := &applicationautoscaling.RegisterScalableTargetInput{ - ResourceId: aws.String("ResourceIdMaxLen1600"), // Required - ScalableDimension: aws.String("ScalableDimension"), // Required - ServiceNamespace: aws.String("ServiceNamespace"), // Required - MaxCapacity: aws.Int64(1), - MinCapacity: aws.Int64(1), - RoleARN: aws.String("ResourceIdMaxLen1600"), - } - resp, err := svc.RegisterScalableTarget(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go deleted file mode 100644 index 7a989c14b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go +++ /dev/null @@ -1,112 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package applicationautoscaling - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// Application Auto Scaling is a general purpose Auto Scaling service for supported -// elastic AWS resources. With Application Auto Scaling, you can automatically -// scale your AWS resources, with an experience similar to that of Auto Scaling. -// -// At this time, Application Auto Scaling only supports scaling Amazon ECS -// services. -// -// For example, you can use Application Auto Scaling to accomplish the following -// tasks: -// -// Define scaling policies for automatically adjusting your application’s -// resources -// -// Scale your resources in response to CloudWatch alarms -// -// View history of your scaling events -// -// Application Auto Scaling is available in the following regions: -// -// us-east-1 -// -// us-west-2 -// -// eu-west-1 -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type ApplicationAutoScaling struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "autoscaling" - -// New creates a new instance of the ApplicationAutoScaling client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ApplicationAutoScaling client from just a session. -// svc := applicationautoscaling.New(mySession) -// -// // Create a ApplicationAutoScaling client with additional configuration -// svc := applicationautoscaling.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationAutoScaling { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ApplicationAutoScaling { - svc := &ApplicationAutoScaling{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningName: "application-autoscaling", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2016-02-06", - JSONVersion: "1.1", - TargetPrefix: "AnyScaleFrontendService", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a ApplicationAutoScaling operation and runs any -// custom request initialization. -func (c *ApplicationAutoScaling) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/api.go deleted file mode 100644 index 6ecb6371f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/api.go +++ /dev/null @@ -1,1220 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package applicationdiscoveryservice provides a client for AWS Application Discovery Service. -package applicationdiscoveryservice - -import ( - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" -) - -const opCreateTags = "CreateTags" - -// CreateTagsRequest generates a request for the CreateTags operation. -func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) { - op := &request.Operation{ - Name: opCreateTags, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateTagsInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateTagsOutput{} - req.Data = output - return -} - -// Creates one or more tags for configuration items. Tags are metadata that -// help you categorize IT assets. This API accepts a list of multiple configuration -// items. -func (c *ApplicationDiscoveryService) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { - req, out := c.CreateTagsRequest(input) - err := req.Send() - return out, err -} - -const opDeleteTags = "DeleteTags" - -// DeleteTagsRequest generates a request for the DeleteTags operation. -func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { - op := &request.Operation{ - Name: opDeleteTags, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteTagsInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteTagsOutput{} - req.Data = output - return -} - -// Deletes the association between configuration items and one or more tags. -// This API accepts a list of multiple configuration items. -func (c *ApplicationDiscoveryService) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { - req, out := c.DeleteTagsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeAgents = "DescribeAgents" - -// DescribeAgentsRequest generates a request for the DescribeAgents operation. -func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgentsInput) (req *request.Request, output *DescribeAgentsOutput) { - op := &request.Operation{ - Name: opDescribeAgents, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeAgentsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeAgentsOutput{} - req.Data = output - return -} - -// Lists AWS agents by ID or lists all agents associated with your user account -// if you did not specify an agent ID. -func (c *ApplicationDiscoveryService) DescribeAgents(input *DescribeAgentsInput) (*DescribeAgentsOutput, error) { - req, out := c.DescribeAgentsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeConfigurations = "DescribeConfigurations" - -// DescribeConfigurationsRequest generates a request for the DescribeConfigurations operation. -func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *DescribeConfigurationsInput) (req *request.Request, output *DescribeConfigurationsOutput) { - op := &request.Operation{ - Name: opDescribeConfigurations, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeConfigurationsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeConfigurationsOutput{} - req.Data = output - return -} - -// Retrieves a list of attributes for a specific configuration ID. For example, -// the output for a server configuration item includes a list of attributes -// about the server, including host name, operating system, number of network -// cards, etc. -func (c *ApplicationDiscoveryService) DescribeConfigurations(input *DescribeConfigurationsInput) (*DescribeConfigurationsOutput, error) { - req, out := c.DescribeConfigurationsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeExportConfigurations = "DescribeExportConfigurations" - -// DescribeExportConfigurationsRequest generates a request for the DescribeExportConfigurations operation. -func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input *DescribeExportConfigurationsInput) (req *request.Request, output *DescribeExportConfigurationsOutput) { - op := &request.Operation{ - Name: opDescribeExportConfigurations, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeExportConfigurationsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeExportConfigurationsOutput{} - req.Data = output - return -} - -// Retrieves the status of a given export process. You can retrieve status from -// a maximum of 100 processes. -func (c *ApplicationDiscoveryService) DescribeExportConfigurations(input *DescribeExportConfigurationsInput) (*DescribeExportConfigurationsOutput, error) { - req, out := c.DescribeExportConfigurationsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeTags = "DescribeTags" - -// DescribeTagsRequest generates a request for the DescribeTags operation. -func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { - op := &request.Operation{ - Name: opDescribeTags, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeTagsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeTagsOutput{} - req.Data = output - return -} - -// Retrieves a list of configuration items that are tagged with a specific tag. -// Or retrieves a list of all tags assigned to a specific configuration item. -func (c *ApplicationDiscoveryService) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { - req, out := c.DescribeTagsRequest(input) - err := req.Send() - return out, err -} - -const opExportConfigurations = "ExportConfigurations" - -// ExportConfigurationsRequest generates a request for the ExportConfigurations operation. -func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportConfigurationsInput) (req *request.Request, output *ExportConfigurationsOutput) { - op := &request.Operation{ - Name: opExportConfigurations, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ExportConfigurationsInput{} - } - - req = c.newRequest(op, input, output) - output = &ExportConfigurationsOutput{} - req.Data = output - return -} - -// Exports all discovered configuration data to an Amazon S3 bucket or an application -// that enables you to view and evaluate the data. Data includes tags and tag -// associations, processes, connections, servers, and system performance. This -// API returns an export ID which you can query using the GetExportStatus API. -// The system imposes a limit of two configuration exports in six hours. -func (c *ApplicationDiscoveryService) ExportConfigurations(input *ExportConfigurationsInput) (*ExportConfigurationsOutput, error) { - req, out := c.ExportConfigurationsRequest(input) - err := req.Send() - return out, err -} - -const opListConfigurations = "ListConfigurations" - -// ListConfigurationsRequest generates a request for the ListConfigurations operation. -func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsOutput) { - op := &request.Operation{ - Name: opListConfigurations, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListConfigurationsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListConfigurationsOutput{} - req.Data = output - return -} - -// Retrieves a list of configurations items according to the criteria you specify -// in a filter. The filter criteria identify relationship requirements. -func (c *ApplicationDiscoveryService) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsOutput, error) { - req, out := c.ListConfigurationsRequest(input) - err := req.Send() - return out, err -} - -const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds" - -// StartDataCollectionByAgentIdsRequest generates a request for the StartDataCollectionByAgentIds operation. -func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input *StartDataCollectionByAgentIdsInput) (req *request.Request, output *StartDataCollectionByAgentIdsOutput) { - op := &request.Operation{ - Name: opStartDataCollectionByAgentIds, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &StartDataCollectionByAgentIdsInput{} - } - - req = c.newRequest(op, input, output) - output = &StartDataCollectionByAgentIdsOutput{} - req.Data = output - return -} - -// Instructs the specified agents to start collecting data. Agents can reside -// on host servers or virtual machines in your data center. -func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIds(input *StartDataCollectionByAgentIdsInput) (*StartDataCollectionByAgentIdsOutput, error) { - req, out := c.StartDataCollectionByAgentIdsRequest(input) - err := req.Send() - return out, err -} - -const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds" - -// StopDataCollectionByAgentIdsRequest generates a request for the StopDataCollectionByAgentIds operation. -func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input *StopDataCollectionByAgentIdsInput) (req *request.Request, output *StopDataCollectionByAgentIdsOutput) { - op := &request.Operation{ - Name: opStopDataCollectionByAgentIds, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &StopDataCollectionByAgentIdsInput{} - } - - req = c.newRequest(op, input, output) - output = &StopDataCollectionByAgentIdsOutput{} - req.Data = output - return -} - -// Instructs the specified agents to stop collecting data. -func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIds(input *StopDataCollectionByAgentIdsInput) (*StopDataCollectionByAgentIdsOutput, error) { - req, out := c.StopDataCollectionByAgentIdsRequest(input) - err := req.Send() - return out, err -} - -// Information about agents that were instructed to start collecting data. Information -// includes the agent ID, a description of the operation, and whether or not -// the agent configuration was updated. -type AgentConfigurationStatus struct { - _ struct{} `type:"structure"` - - // The agent ID. - AgentId *string `locationName:"agentId" type:"string"` - - // A description of the operation performed. - Description *string `locationName:"description" type:"string"` - - // Information about the status of the StartDataCollection and StopDataCollection - // operations. The system has recorded the data collection operation. The agent - // receives this command the next time it polls for a new command. - OperationSucceeded *bool `locationName:"operationSucceeded" type:"boolean"` -} - -// String returns the string representation -func (s AgentConfigurationStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AgentConfigurationStatus) GoString() string { - return s.String() -} - -// Information about agents associated with the user’s AWS account. Information -// includes agent IDs, IP addresses, media access control (MAC) addresses, agent -// health, hostname where the agent resides, and agent version for each agent. -type AgentInfo struct { - _ struct{} `type:"structure"` - - // The agent ID. - AgentId *string `locationName:"agentId" type:"string"` - - // Network details about the host where the agent resides. - AgentNetworkInfoList []*AgentNetworkInfo `locationName:"agentNetworkInfoList" type:"list"` - - // This data type is currently not valid. - ConnectorId *string `locationName:"connectorId" type:"string"` - - // The health of the agent. - Health *string `locationName:"health" type:"string" enum:"AgentStatus"` - - // The name of the host where the agent resides. The host can be a server or - // virtual machine. - HostName *string `locationName:"hostName" type:"string"` - - // The agent version. - Version *string `locationName:"version" type:"string"` -} - -// String returns the string representation -func (s AgentInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AgentInfo) GoString() string { - return s.String() -} - -// Network details about the host where the agent resides. -type AgentNetworkInfo struct { - _ struct{} `type:"structure"` - - // The IP address for the host where the agent resides. - IpAddress *string `locationName:"ipAddress" type:"string"` - - // The MAC address for the host where the agent resides. - MacAddress *string `locationName:"macAddress" type:"string"` -} - -// String returns the string representation -func (s AgentNetworkInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AgentNetworkInfo) GoString() string { - return s.String() -} - -// Tags for a configuration item. Tags are metadata that help you categorize -// IT assets. -type ConfigurationTag struct { - _ struct{} `type:"structure"` - - // The configuration ID for the item you want to tag. You can specify a list - // of keys and values. - ConfigurationId *string `locationName:"configurationId" type:"string"` - - // A type of IT asset that you want to tag. - ConfigurationType *string `locationName:"configurationType" type:"string" enum:"ConfigurationItemType"` - - // A type of tag to filter on. For example, serverType. - Key *string `locationName:"key" type:"string"` - - // The time the configuration tag was created in Coordinated Universal Time - // (UTC). - TimeOfCreation *time.Time `locationName:"timeOfCreation" type:"timestamp" timestampFormat:"unix"` - - // A value to filter on. For example key = serverType and value = web server. - Value *string `locationName:"value" type:"string"` -} - -// String returns the string representation -func (s ConfigurationTag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfigurationTag) GoString() string { - return s.String() -} - -type CreateTagsInput struct { - _ struct{} `type:"structure"` - - // A list of configuration items that you want to tag. - ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` - - // Tags that you want to associate with one or more configuration items. Specify - // the tags that you want to create in a key-value format. For example: - // - // {"key": "serverType", "value": "webServer"} - Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list" required:"true"` -} - -// String returns the string representation -func (s CreateTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateTagsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"} - if s.ConfigurationIds == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateTagsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s CreateTagsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateTagsOutput) GoString() string { - return s.String() -} - -type DeleteTagsInput struct { - _ struct{} `type:"structure"` - - // A list of configuration items with tags that you want to delete. - ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` - - // Tags that you want to delete from one or more configuration items. Specify - // the tags that you want to delete in a key-value format. For example: - // - // {"key": "serverType", "value": "webServer"} - Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list"` -} - -// String returns the string representation -func (s DeleteTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteTagsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} - if s.ConfigurationIds == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteTagsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteTagsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteTagsOutput) GoString() string { - return s.String() -} - -type DescribeAgentsInput struct { - _ struct{} `type:"structure"` - - // The agent IDs for which you want information. If you specify no IDs, the - // system returns information about all agents associated with your AWS user - // account. - AgentIds []*string `locationName:"agentIds" type:"list"` - - // The total number of agents to return. The maximum value is 100. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // A token to start the list. Use this token to get the next set of results. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s DescribeAgentsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAgentsInput) GoString() string { - return s.String() -} - -type DescribeAgentsOutput struct { - _ struct{} `type:"structure"` - - // Lists AWS agents by ID or lists all agents associated with your user account - // if you did not specify an agent ID. The output includes agent IDs, IP addresses, - // media access control (MAC) addresses, agent health, host name where the agent - // resides, and the version number of each agent. - AgentsInfo []*AgentInfo `locationName:"agentsInfo" type:"list"` - - // The call returns a token. Use this token to get the next set of results. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s DescribeAgentsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAgentsOutput) GoString() string { - return s.String() -} - -type DescribeConfigurationsInput struct { - _ struct{} `type:"structure"` - - // One or more configuration IDs. - ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeConfigurationsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeConfigurationsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeConfigurationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationsInput"} - if s.ConfigurationIds == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeConfigurationsOutput struct { - _ struct{} `type:"structure"` - - // A key in the response map. The value is an array of data. - Configurations []map[string]*string `locationName:"configurations" type:"list"` -} - -// String returns the string representation -func (s DescribeConfigurationsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeConfigurationsOutput) GoString() string { - return s.String() -} - -type DescribeExportConfigurationsInput struct { - _ struct{} `type:"structure"` - - // A unique identifier that you can use to query the export status. - ExportIds []*string `locationName:"exportIds" type:"list"` - - // The maximum number of results that you want to display as a part of the query. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // A token to get the next set of results. For example, if you specified 100 - // IDs for DescribeConfigurationsRequest$configurationIds but set DescribeExportConfigurationsRequest$maxResults - // to 10, you will get results in a set of 10. Use the token in the query to - // get the next set of 10. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s DescribeExportConfigurationsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeExportConfigurationsInput) GoString() string { - return s.String() -} - -type DescribeExportConfigurationsOutput struct { - _ struct{} `type:"structure"` - - // Returns export details. When the status is complete, the response includes - // a URL for an Amazon S3 bucket where you can view the data in a CSV file. - ExportsInfo []*ExportInfo `locationName:"exportsInfo" type:"list"` - - // A token to get the next set of results. For example, if you specified 100 - // IDs for DescribeConfigurationsRequest$configurationIds but set DescribeExportConfigurationsRequest$maxResults - // to 10, you will get results in a set of 10. Use the token in the query to - // get the next set of 10. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s DescribeExportConfigurationsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeExportConfigurationsOutput) GoString() string { - return s.String() -} - -type DescribeTagsInput struct { - _ struct{} `type:"structure"` - - // You can filter the list using a key-value format. You can separate these - // items by using logical operators. Allowed filters include tagKey, tagValue, - // and configurationId. - Filters []*TagFilter `locationName:"filters" type:"list"` - - // The total number of items to return. The maximum value is 100. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // A token to start the list. Use this token to get the next set of results. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s DescribeTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeTagsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeTagsOutput struct { - _ struct{} `type:"structure"` - - // The call returns a token. Use this token to get the next set of results. - NextToken *string `locationName:"nextToken" type:"string"` - - // Depending on the input, this is a list of configuration items tagged with - // a specific tag, or a list of tags for a specific configuration item. - Tags []*ConfigurationTag `locationName:"tags" locationNameList:"item" type:"list"` -} - -// String returns the string representation -func (s DescribeTagsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeTagsOutput) GoString() string { - return s.String() -} - -type ExportConfigurationsInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ExportConfigurationsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ExportConfigurationsInput) GoString() string { - return s.String() -} - -type ExportConfigurationsOutput struct { - _ struct{} `type:"structure"` - - // A unique identifier that you can use to query the export status. - ExportId *string `locationName:"exportId" type:"string"` -} - -// String returns the string representation -func (s ExportConfigurationsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ExportConfigurationsOutput) GoString() string { - return s.String() -} - -// Information regarding the export status of the discovered data. The value -// is an array of objects. -type ExportInfo struct { - _ struct{} `type:"structure"` - - // A URL for an Amazon S3 bucket where you can review the configuration data. - // The URL is displayed only if the export succeeded. - ConfigurationsDownloadUrl *string `locationName:"configurationsDownloadUrl" type:"string"` - - // A unique identifier that you can use to query the export. - ExportId *string `locationName:"exportId" type:"string" required:"true"` - - // The time the configuration data export was initiated. - ExportRequestTime *time.Time `locationName:"exportRequestTime" type:"timestamp" timestampFormat:"unix" required:"true"` - - // The status of the configuration data export. The status can succeed, fail, - // or be in-progress. - ExportStatus *string `locationName:"exportStatus" type:"string" required:"true" enum:"ExportStatus"` - - // Helpful status messages for API callers. For example: Too many exports in - // the last 6 hours. Export in progress. Export was successful. - StatusMessage *string `locationName:"statusMessage" type:"string" required:"true"` -} - -// String returns the string representation -func (s ExportInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ExportInfo) GoString() string { - return s.String() -} - -// A filter that can use conditional operators. -type Filter struct { - _ struct{} `type:"structure"` - - // A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, - // CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes - // all filters as though concatenated by AND. If you specify multiple values - // for a particular filter, the system differentiates the values using OR. Calling - // either DescribeConfigurations or ListConfigurations returns attributes of - // matching configuration items. - Condition *string `locationName:"condition" type:"string" required:"true"` - - // The name of the filter. The following filter names are allowed for SERVER - // configuration items. - // - // Server server.hostName - // - // server.osName - // - // server.osVersion - // - // server.configurationid - // - // server.agentid - // - // The name of the filter. The following filter names are allowed for PROCESS - // configuration items. - // - // Process process.configurationid - // - // process.name - // - // process.commandLine - // - // server.configurationid - // - // server.hostName - // - // server.osName - // - // server.osVersion - // - // server.agentId - // - // The name of the filter. The following filter names are allowed for CONNECTION - // configuration items. - // - // Connection connection.sourceIp - // - // connection.destinationIp - // - // connection.destinationPort - // - // sourceProcess.configurationId - // - // sourceProcess.name - // - // sourceProcess.commandLine - // - // destinationProcess.configurationId - // - // destinationProcess.name - // - // destinationProcess.commandLine - // - // sourceServer.configurationId - // - // sourceServer.hostName - // - // sourceServer.osName - // - // sourceServer.osVersion - // - // sourceServer.agentId - // - // destinationServer.configurationId - // - // destinationServer.hostName - // - // destinationServer.osName - // - // destinationServer.osVersion - // - // destinationServer.agentId - Name *string `locationName:"name" type:"string" required:"true"` - - // A string value that you want to filter on. For example, if you choose the - // destinationServer.osVersion filter name, you could specify Ubuntu for the - // value. - Values []*string `locationName:"values" locationNameList:"item" type:"list" required:"true"` -} - -// 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() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Filter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Filter"} - if s.Condition == nil { - invalidParams.Add(request.NewErrParamRequired("Condition")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Values == nil { - invalidParams.Add(request.NewErrParamRequired("Values")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListConfigurationsInput struct { - _ struct{} `type:"structure"` - - // A valid configuration identified by the Discovery Service. - ConfigurationType *string `locationName:"configurationType" type:"string" required:"true" enum:"ConfigurationItemType"` - - // You can filter the list using a key-value format. For example: - // - // {"key": "serverType", "value": "webServer"} - // - // You can separate these items by using logical operators. - Filters []*Filter `locationName:"filters" type:"list"` - - // The total number of items to return. The maximum value is 100. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // A token to start the list. Use this token to get the next set of results. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s ListConfigurationsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListConfigurationsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListConfigurationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListConfigurationsInput"} - if s.ConfigurationType == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigurationType")) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListConfigurationsOutput struct { - _ struct{} `type:"structure"` - - // Returns configuration details, including the configuration ID, attribute - // names, and attribute values. - Configurations []map[string]*string `locationName:"configurations" type:"list"` - - // The call returns a token. Use this token to get the next set of results. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s ListConfigurationsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListConfigurationsOutput) GoString() string { - return s.String() -} - -type StartDataCollectionByAgentIdsInput struct { - _ struct{} `type:"structure"` - - // The IDs of the agents that you want to start collecting data. If you send - // a request to an AWS agent ID that you do not have permission to contact, - // according to your AWS account, the service does not throw an exception. Instead, - // it returns the error in the Description field. If you send a request to multiple - // agents and you do not have permission to contact some of those agents, the - // system does not throw an exception. Instead, the system shows Failed in the - // Description field. - AgentIds []*string `locationName:"agentIds" type:"list" required:"true"` -} - -// String returns the string representation -func (s StartDataCollectionByAgentIdsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StartDataCollectionByAgentIdsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartDataCollectionByAgentIdsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartDataCollectionByAgentIdsInput"} - if s.AgentIds == nil { - invalidParams.Add(request.NewErrParamRequired("AgentIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type StartDataCollectionByAgentIdsOutput struct { - _ struct{} `type:"structure"` - - // Information about agents that were instructed to start collecting data. Information - // includes the agent ID, a description of the operation performed, and whether - // or not the agent configuration was updated. - AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"` -} - -// String returns the string representation -func (s StartDataCollectionByAgentIdsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StartDataCollectionByAgentIdsOutput) GoString() string { - return s.String() -} - -type StopDataCollectionByAgentIdsInput struct { - _ struct{} `type:"structure"` - - // The IDs of the agents that you want to stop collecting data. - AgentIds []*string `locationName:"agentIds" type:"list" required:"true"` -} - -// String returns the string representation -func (s StopDataCollectionByAgentIdsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StopDataCollectionByAgentIdsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopDataCollectionByAgentIdsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopDataCollectionByAgentIdsInput"} - if s.AgentIds == nil { - invalidParams.Add(request.NewErrParamRequired("AgentIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type StopDataCollectionByAgentIdsOutput struct { - _ struct{} `type:"structure"` - - // Information about agents that were instructed to stop collecting data. Information - // includes the agent ID, a description of the operation performed, and whether - // or not the agent configuration was updated. - AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"` -} - -// String returns the string representation -func (s StopDataCollectionByAgentIdsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StopDataCollectionByAgentIdsOutput) GoString() string { - return s.String() -} - -// Metadata that help you categorize IT assets. -type Tag struct { - _ struct{} `type:"structure"` - - // A type of tag to filter on. - Key *string `locationName:"key" type:"string" required:"true"` - - // A value for a tag key to filter on. - Value *string `locationName:"value" type:"string" required:"true"` -} - -// String returns the string representation -func (s Tag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Tag) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The name of a tag filter. Valid names are: tagKey, tagValue, configurationId. -type TagFilter struct { - _ struct{} `type:"structure"` - - // A name of a tag filter. - Name *string `locationName:"name" type:"string" required:"true"` - - // Values of a tag filter. - Values []*string `locationName:"values" locationNameList:"item" type:"list" required:"true"` -} - -// String returns the string representation -func (s TagFilter) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TagFilter) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TagFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagFilter"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Values == nil { - invalidParams.Add(request.NewErrParamRequired("Values")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -const ( - // @enum AgentStatus - AgentStatusHealthy = "HEALTHY" - // @enum AgentStatus - AgentStatusUnhealthy = "UNHEALTHY" - // @enum AgentStatus - AgentStatusRunning = "RUNNING" - // @enum AgentStatus - AgentStatusUnknown = "UNKNOWN" - // @enum AgentStatus - AgentStatusBlacklisted = "BLACKLISTED" - // @enum AgentStatus - AgentStatusShutdown = "SHUTDOWN" -) - -const ( - // @enum ConfigurationItemType - ConfigurationItemTypeServer = "SERVER" - // @enum ConfigurationItemType - ConfigurationItemTypeProcess = "PROCESS" - // @enum ConfigurationItemType - ConfigurationItemTypeConnection = "CONNECTION" -) - -const ( - // @enum ExportStatus - ExportStatusFailed = "FAILED" - // @enum ExportStatus - ExportStatusSucceeded = "SUCCEEDED" - // @enum ExportStatus - ExportStatusInProgress = "IN_PROGRESS" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go deleted file mode 100644 index b389d1634..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface/interface.go +++ /dev/null @@ -1,54 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package applicationdiscoveryserviceiface provides an interface for the AWS Application Discovery Service. -package applicationdiscoveryserviceiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/applicationdiscoveryservice" -) - -// ApplicationDiscoveryServiceAPI is the interface type for applicationdiscoveryservice.ApplicationDiscoveryService. -type ApplicationDiscoveryServiceAPI interface { - CreateTagsRequest(*applicationdiscoveryservice.CreateTagsInput) (*request.Request, *applicationdiscoveryservice.CreateTagsOutput) - - CreateTags(*applicationdiscoveryservice.CreateTagsInput) (*applicationdiscoveryservice.CreateTagsOutput, error) - - DeleteTagsRequest(*applicationdiscoveryservice.DeleteTagsInput) (*request.Request, *applicationdiscoveryservice.DeleteTagsOutput) - - DeleteTags(*applicationdiscoveryservice.DeleteTagsInput) (*applicationdiscoveryservice.DeleteTagsOutput, error) - - DescribeAgentsRequest(*applicationdiscoveryservice.DescribeAgentsInput) (*request.Request, *applicationdiscoveryservice.DescribeAgentsOutput) - - DescribeAgents(*applicationdiscoveryservice.DescribeAgentsInput) (*applicationdiscoveryservice.DescribeAgentsOutput, error) - - DescribeConfigurationsRequest(*applicationdiscoveryservice.DescribeConfigurationsInput) (*request.Request, *applicationdiscoveryservice.DescribeConfigurationsOutput) - - DescribeConfigurations(*applicationdiscoveryservice.DescribeConfigurationsInput) (*applicationdiscoveryservice.DescribeConfigurationsOutput, error) - - DescribeExportConfigurationsRequest(*applicationdiscoveryservice.DescribeExportConfigurationsInput) (*request.Request, *applicationdiscoveryservice.DescribeExportConfigurationsOutput) - - DescribeExportConfigurations(*applicationdiscoveryservice.DescribeExportConfigurationsInput) (*applicationdiscoveryservice.DescribeExportConfigurationsOutput, error) - - DescribeTagsRequest(*applicationdiscoveryservice.DescribeTagsInput) (*request.Request, *applicationdiscoveryservice.DescribeTagsOutput) - - DescribeTags(*applicationdiscoveryservice.DescribeTagsInput) (*applicationdiscoveryservice.DescribeTagsOutput, error) - - ExportConfigurationsRequest(*applicationdiscoveryservice.ExportConfigurationsInput) (*request.Request, *applicationdiscoveryservice.ExportConfigurationsOutput) - - ExportConfigurations(*applicationdiscoveryservice.ExportConfigurationsInput) (*applicationdiscoveryservice.ExportConfigurationsOutput, error) - - ListConfigurationsRequest(*applicationdiscoveryservice.ListConfigurationsInput) (*request.Request, *applicationdiscoveryservice.ListConfigurationsOutput) - - ListConfigurations(*applicationdiscoveryservice.ListConfigurationsInput) (*applicationdiscoveryservice.ListConfigurationsOutput, error) - - StartDataCollectionByAgentIdsRequest(*applicationdiscoveryservice.StartDataCollectionByAgentIdsInput) (*request.Request, *applicationdiscoveryservice.StartDataCollectionByAgentIdsOutput) - - StartDataCollectionByAgentIds(*applicationdiscoveryservice.StartDataCollectionByAgentIdsInput) (*applicationdiscoveryservice.StartDataCollectionByAgentIdsOutput, error) - - StopDataCollectionByAgentIdsRequest(*applicationdiscoveryservice.StopDataCollectionByAgentIdsInput) (*request.Request, *applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput) - - StopDataCollectionByAgentIds(*applicationdiscoveryservice.StopDataCollectionByAgentIdsInput) (*applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput, error) -} - -var _ ApplicationDiscoveryServiceAPI = (*applicationdiscoveryservice.ApplicationDiscoveryService)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go deleted file mode 100644 index 0f09bcc6f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/examples_test.go +++ /dev/null @@ -1,267 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package applicationdiscoveryservice_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/applicationdiscoveryservice" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleApplicationDiscoveryService_CreateTags() { - svc := applicationdiscoveryservice.New(session.New()) - - params := &applicationdiscoveryservice.CreateTagsInput{ - ConfigurationIds: []*string{ // Required - aws.String("ConfigurationId"), // Required - // More values... - }, - Tags: []*applicationdiscoveryservice.Tag{ // Required - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), // Required - }, - // More values... - }, - } - resp, err := svc.CreateTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationDiscoveryService_DeleteTags() { - svc := applicationdiscoveryservice.New(session.New()) - - params := &applicationdiscoveryservice.DeleteTagsInput{ - ConfigurationIds: []*string{ // Required - aws.String("ConfigurationId"), // Required - // More values... - }, - Tags: []*applicationdiscoveryservice.Tag{ - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), // Required - }, - // More values... - }, - } - resp, err := svc.DeleteTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationDiscoveryService_DescribeAgents() { - svc := applicationdiscoveryservice.New(session.New()) - - params := &applicationdiscoveryservice.DescribeAgentsInput{ - AgentIds: []*string{ - aws.String("AgentId"), // Required - // More values... - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.DescribeAgents(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationDiscoveryService_DescribeConfigurations() { - svc := applicationdiscoveryservice.New(session.New()) - - params := &applicationdiscoveryservice.DescribeConfigurationsInput{ - ConfigurationIds: []*string{ // Required - aws.String("ConfigurationId"), // Required - // More values... - }, - } - resp, err := svc.DescribeConfigurations(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationDiscoveryService_DescribeExportConfigurations() { - svc := applicationdiscoveryservice.New(session.New()) - - params := &applicationdiscoveryservice.DescribeExportConfigurationsInput{ - ExportIds: []*string{ - aws.String("ConfigurationsExportId"), // Required - // More values... - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.DescribeExportConfigurations(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationDiscoveryService_DescribeTags() { - svc := applicationdiscoveryservice.New(session.New()) - - params := &applicationdiscoveryservice.DescribeTagsInput{ - Filters: []*applicationdiscoveryservice.TagFilter{ - { // Required - Name: aws.String("FilterName"), // Required - Values: []*string{ // Required - aws.String("FilterValue"), // Required - // More values... - }, - }, - // More values... - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.DescribeTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationDiscoveryService_ExportConfigurations() { - svc := applicationdiscoveryservice.New(session.New()) - - var params *applicationdiscoveryservice.ExportConfigurationsInput - resp, err := svc.ExportConfigurations(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationDiscoveryService_ListConfigurations() { - svc := applicationdiscoveryservice.New(session.New()) - - params := &applicationdiscoveryservice.ListConfigurationsInput{ - ConfigurationType: aws.String("ConfigurationItemType"), // Required - Filters: []*applicationdiscoveryservice.Filter{ - { // Required - Condition: aws.String("Condition"), // Required - Name: aws.String("String"), // Required - Values: []*string{ // Required - aws.String("FilterValue"), // Required - // More values... - }, - }, - // More values... - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListConfigurations(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationDiscoveryService_StartDataCollectionByAgentIds() { - svc := applicationdiscoveryservice.New(session.New()) - - params := &applicationdiscoveryservice.StartDataCollectionByAgentIdsInput{ - AgentIds: []*string{ // Required - aws.String("AgentId"), // Required - // More values... - }, - } - resp, err := svc.StartDataCollectionByAgentIds(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleApplicationDiscoveryService_StopDataCollectionByAgentIds() { - svc := applicationdiscoveryservice.New(session.New()) - - params := &applicationdiscoveryservice.StopDataCollectionByAgentIdsInput{ - AgentIds: []*string{ // Required - aws.String("AgentId"), // Required - // More values... - }, - } - resp, err := svc.StopDataCollectionByAgentIds(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go deleted file mode 100644 index ea983d9e7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go +++ /dev/null @@ -1,282 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package applicationdiscoveryservice - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// The AWS Application Discovery Service helps Systems Integrators quickly and -// reliably plan application migration projects by automatically identifying -// applications running in on-premises data centers, their associated dependencies, -// and their performance profile. -// -// Planning data center migrations can involve thousands of workloads that -// are often deeply interdependent. Application discovery and dependency mapping -// are important early first steps in the migration process, but difficult to -// perform at scale due to the lack of automated tools. -// -// The AWS Application Discovery Service automatically collects configuration -// and usage data from servers to develop a list of applications, how they perform, -// and how they are interdependent. This information is securely retained in -// an AWS Application Discovery Service database which you can export as a CSV -// file into your preferred visualization tool or cloud migration solution to -// help reduce the complexity and time in planning your cloud migration. -// -// The Application Discovery Service is currently available for preview. Only -// customers who are engaged with AWS Professional Services (https://aws.amazon.com/professional-services/) -// or a certified AWS partner can use the service. To see the list of certified -// partners and request access to the Application Discovery Service, complete -// the following preview form (http://aws.amazon.com/application-discovery/preview/). -// -// This API reference provides descriptions, syntax, and usage examples for -// each of the actions and data types for the Discovery Service. The topic for -// each action shows the API request parameters and the response. Alternatively, -// you can use one of the AWS SDKs to access an API that is tailored to the -// programming language or platform that you're using. For more information, -// see AWS SDKs (http://aws.amazon.com/tools/#SDKs). -// -// This guide is intended for use with the AWS Discovery Service User Guide -// (http://docs.aws.amazon.com/application-discovery/latest/userguide/what-is-appdiscovery.html). -// -// The following are short descriptions of each API action, organized by function. -// -// Managing AWS Agents Using the Application Discovery Service -// -// An AWS agent is software that you install on on-premises servers and virtual -// machines that are targeted for discovery and migration. Agents run on Linux -// and Windows Server and collect server configuration and activity information -// about your applications and infrastructure. Specifically, agents collect -// the following information and send it to the Application Discovery Service -// using Secure Sockets Layer (SSL) encryption: -// -// User information (user name, home directory) -// -// Group information (name) -// -// List of installed packages -// -// List of kernel modules -// -// All create and stop process events -// -// DNS queries -// -// NIC information -// -// TCP/UDP process listening ports -// -// TCPV4/V6 connections -// -// Operating system information -// -// System performance -// -// Process performance -// -// The Application Discovery Service API includes the following actions to -// manage AWS agents: -// -// StartDataCollectionByAgentIds: Instructs the specified agents to start -// collecting data. The Application Discovery Service takes several minutes -// to receive and process data after you initiate data collection. -// -// StopDataCollectionByAgentIds: Instructs the specified agents to stop -// collecting data. -// -// DescribeAgents: Lists AWS agents by ID or lists all agents associated -// with your user account if you did not specify an agent ID. The output includes -// agent IDs, IP addresses, media access control (MAC) addresses, agent health, -// host name where the agent resides, and the version number of each agent. -// -// Querying Configuration Items -// -// A configuration item is an IT asset that was discovered in your data center -// by an AWS agent. When you use the Application Discovery Service, you can -// specify filters and query specific configuration items. The service supports -// Server, Process, and Connection configuration items. This means you can specify -// a value for the following keys and query your IT assets: -// -// Server server.HostName -// -// server.osName -// -// server.osVersion -// -// server.configurationId -// -// server.agentId -// -// Process process.name -// -// process.CommandLine -// -// process.configurationId -// -// server.hostName -// -// server.osName -// -// server.osVersion -// -// server.configurationId -// -// server.agentId -// -// Connection connection.sourceIp -// -// connection.sourcePort -// -// connection.destinationIp -// -// connection.destinationPort -// -// sourceProcess.configurationId -// -// sourceProcess.commandLine -// -// sourceProcess.name -// -// destinationProcessId.configurationId -// -// destinationProcess.commandLine -// -// destinationProcess.name -// -// sourceServer.configurationId -// -// sourceServer.hostName -// -// sourceServer.osName -// -// sourceServer.osVersion -// -// destinationServer.configurationId -// -// destinationServer.hostName -// -// destinationServer.osName -// -// destinationServer.osVersion -// -// The Application Discovery Service includes the following actions for querying -// configuration items. -// -// DescribeConfigurations: Retrieves a list of attributes for a specific -// configuration ID. For example, the output for a server configuration item -// includes a list of attributes about the server, including host name, operating -// system, number of network cards, etc. -// -// ListConfigurations: Retrieves a list of configuration items according -// to the criteria you specify in a filter. The filter criteria identify relationship -// requirements. For example, you can specify filter criteria of process.name -// with values of nginx and apache. -// -// Tagging Discovered Configuration Items -// -// You can tag discovered configuration items. Tags are metadata that help -// you categorize IT assets in your data center. Tags use a key-value format. -// For example, {"key": "serverType", "value": "webServer"}. -// -// CreateTags: Creates one or more tags for a configuration items. -// -// DescribeTags: Retrieves a list of configuration items that are tagged -// with a specific tag. Or, retrieves a list of all tags assigned to a specific -// configuration item. -// -// DeleteTags: Deletes the association between a configuration item and -// one or more tags. -// -// Exporting Data -// -// You can export data as a CSV file to an Amazon S3 bucket or into your preferred -// visualization tool or cloud migration solution to help reduce the complexity -// and time in planning your cloud migration. -// -// ExportConfigurations: Exports all discovered configuration data to an -// Amazon S3 bucket. Data includes tags and tag associations, processes, connections, -// servers, and system performance. This API returns an export ID which you -// can query using the GetExportStatus API. -// -// DescribeExportConfigurations: Gets the status of the data export. When -// the export is complete, the service returns an Amazon S3 URL where you can -// download CSV files that include the data. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type ApplicationDiscoveryService struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "discovery" - -// New creates a new instance of the ApplicationDiscoveryService client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ApplicationDiscoveryService client from just a session. -// svc := applicationdiscoveryservice.New(mySession) -// -// // Create a ApplicationDiscoveryService client with additional configuration -// svc := applicationdiscoveryservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationDiscoveryService { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ApplicationDiscoveryService { - svc := &ApplicationDiscoveryService{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-11-01", - JSONVersion: "1.1", - TargetPrefix: "AWSPoseidonService_V2015_11_01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a ApplicationDiscoveryService operation and runs any -// custom request initialization. -func (c *ApplicationDiscoveryService) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go index 87ee5ab6e..5eff8bfd1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/api.go @@ -4,13 +4,10 @@ package autoscaling import ( - "fmt" "time" "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/private/protocol/query" ) const opAttachInstances = "AttachInstances" @@ -28,8 +25,6 @@ func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req * } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AttachInstancesOutput{} req.Data = output return @@ -37,11 +32,6 @@ func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req * // Attaches one or more EC2 instances to the specified Auto Scaling group. // -// When you attach instances, Auto Scaling increases the desired capacity of -// the group by the number of instances being attached. If the number of instances -// being attached plus the desired capacity of the group exceeds the maximum -// size of the group, the operation fails. -// // For more information, see Attach EC2 Instances to Your Auto Scaling Group // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-instance-asg.html) // in the Auto Scaling Developer Guide. @@ -105,22 +95,20 @@ func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleAct return } -// Completes the lifecycle action for the specified token or instance with the -// specified result. +// Completes the lifecycle action for the associated token initiated under the +// given lifecycle hook with the specified result. // -// This step is a part of the procedure for adding a lifecycle hook to an Auto -// Scaling group: +// This operation is a part of the basic sequence for adding a lifecycle hook +// to an Auto Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch Events -// to invoke your Lambda function when Auto Scaling launches or terminates instances. -// (Optional) Create a notification target and an IAM role. The target can be -// either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling -// to publish lifecycle notifications to the target. Create the lifecycle hook. -// Specify whether the hook is used when the instances launch or terminate. -// If you need more time, record the lifecycle action heartbeat to keep the -// instance in a pending state. If you finish before the timeout period ends, -// complete the lifecycle action. For more information, see Auto Scaling Lifecycle -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// Create a notification target. A target can be either an Amazon SQS queue +// or an Amazon SNS topic. Create an IAM role. This role allows Auto Scaling +// to publish lifecycle notifications to the designated SQS queue or SNS topic. +// Create the lifecycle hook. You can create a hook that acts when instances +// launch or when instances terminate. If necessary, record the lifecycle action +// heartbeat to keep the instance in a pending state. Complete the lifecycle +// action. For more information, see Auto Scaling Pending State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingPendingState.html) +// and Auto Scaling Terminating State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingTerminatingState.html) // in the Auto Scaling Developer Guide. func (c *AutoScaling) CompleteLifecycleAction(input *CompleteLifecycleActionInput) (*CompleteLifecycleActionOutput, error) { req, out := c.CompleteLifecycleActionRequest(input) @@ -143,8 +131,6 @@ func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGrou } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateAutoScalingGroupOutput{} req.Data = output return @@ -179,8 +165,6 @@ func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfig } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateLaunchConfigurationOutput{} req.Data = output return @@ -215,8 +199,6 @@ func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateOrUpdateTagsOutput{} req.Data = output return @@ -224,6 +206,13 @@ func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) // Creates or updates tags for the specified Auto Scaling group. // +// A tag is defined by its resource ID, resource type, key, value, and propagate +// flag. The value and the propagate flag are optional parameters. The only +// supported resource type is auto-scaling-group, and the resource ID must be +// the name of the group. The PropagateAtLaunch flag determines whether the +// tag is added to instances launched in the group. Valid values are true or +// false. +// // When you specify a tag with a key that already exists, the operation overwrites // the previous tag definition, and you do not get an error message. // @@ -250,8 +239,6 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteAutoScalingGroupOutput{} req.Data = output return @@ -259,20 +246,10 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou // Deletes the specified Auto Scaling group. // -// If the group has instances or scaling activities in progress, you must specify -// the option to force the deletion in order for it to succeed. -// -// If the group has policies, deleting the group deletes the policies, the -// underlying alarm actions, and any alarm that no longer has an associated -// action. -// -// To remove instances from the Auto Scaling group before deleting it, call -// DetachInstances with the list of instances and the option to decrement the -// desired capacity so that Auto Scaling does not launch replacement instances. +// The group must have no instances and no scaling activities in progress. // -// To terminate all instances before deleting the Auto Scaling group, call -// UpdateAutoScalingGroup and set the minimum size and desired capacity of the -// Auto Scaling group to zero. +// To remove all instances before calling DeleteAutoScalingGroup, call UpdateAutoScalingGroup +// to set the minimum and maximum size of the Auto Scaling group to zero. func (c *AutoScaling) DeleteAutoScalingGroup(input *DeleteAutoScalingGroupInput) (*DeleteAutoScalingGroupOutput, error) { req, out := c.DeleteAutoScalingGroupRequest(input) err := req.Send() @@ -294,8 +271,6 @@ func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfig } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteLaunchConfigurationOutput{} req.Data = output return @@ -357,8 +332,6 @@ func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotifi } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteNotificationConfigurationOutput{} req.Data = output return @@ -386,17 +359,12 @@ func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeletePolicyOutput{} req.Data = output return } // Deletes the specified Auto Scaling policy. -// -// Deleting a policy deletes the underlying alarm action, but does not delete -// the alarm, even if it no longer has an associated action. func (c *AutoScaling) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { req, out := c.DeletePolicyRequest(input) err := req.Send() @@ -418,8 +386,6 @@ func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionI } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteScheduledActionOutput{} req.Data = output return @@ -447,8 +413,6 @@ func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteTagsOutput{} req.Data = output return @@ -555,7 +519,6 @@ func (c *AutoScaling) DescribeAutoScalingGroups(input *DescribeAutoScalingGroups func (c *AutoScaling) DescribeAutoScalingGroupsPages(input *DescribeAutoScalingGroupsInput, fn func(p *DescribeAutoScalingGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeAutoScalingGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeAutoScalingGroupsOutput), lastPage) }) @@ -597,7 +560,6 @@ func (c *AutoScaling) DescribeAutoScalingInstances(input *DescribeAutoScalingIns func (c *AutoScaling) DescribeAutoScalingInstancesPages(input *DescribeAutoScalingInstancesInput, fn func(p *DescribeAutoScalingInstancesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeAutoScalingInstancesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeAutoScalingInstancesOutput), lastPage) }) @@ -666,7 +628,6 @@ func (c *AutoScaling) DescribeLaunchConfigurations(input *DescribeLaunchConfigur func (c *AutoScaling) DescribeLaunchConfigurationsPages(input *DescribeLaunchConfigurationsInput, fn func(p *DescribeLaunchConfigurationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeLaunchConfigurationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeLaunchConfigurationsOutput), lastPage) }) @@ -819,7 +780,6 @@ func (c *AutoScaling) DescribeNotificationConfigurations(input *DescribeNotifica func (c *AutoScaling) DescribeNotificationConfigurationsPages(input *DescribeNotificationConfigurationsInput, fn func(p *DescribeNotificationConfigurationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeNotificationConfigurationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeNotificationConfigurationsOutput), lastPage) }) @@ -860,7 +820,6 @@ func (c *AutoScaling) DescribePolicies(input *DescribePoliciesInput) (*DescribeP func (c *AutoScaling) DescribePoliciesPages(input *DescribePoliciesInput, fn func(p *DescribePoliciesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribePoliciesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribePoliciesOutput), lastPage) }) @@ -904,7 +863,6 @@ func (c *AutoScaling) DescribeScalingActivities(input *DescribeScalingActivities func (c *AutoScaling) DescribeScalingActivitiesPages(input *DescribeScalingActivitiesInput, fn func(p *DescribeScalingActivitiesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeScalingActivitiesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeScalingActivitiesOutput), lastPage) }) @@ -973,7 +931,6 @@ func (c *AutoScaling) DescribeScheduledActions(input *DescribeScheduledActionsIn func (c *AutoScaling) DescribeScheduledActionsPages(input *DescribeScheduledActionsInput, fn func(p *DescribeScheduledActionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeScheduledActionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeScheduledActionsOutput), lastPage) }) @@ -1023,7 +980,6 @@ func (c *AutoScaling) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutpu func (c *AutoScaling) DescribeTagsPages(input *DescribeTagsInput, fn func(p *DescribeTagsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeTagsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeTagsOutput), lastPage) }) @@ -1076,13 +1032,9 @@ func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req * return } -// Removes one or more instances from the specified Auto Scaling group. -// -// After the instances are detached, you can manage them independently from -// the rest of the Auto Scaling group. -// -// If you do not specify the option to decrement the desired capacity, Auto -// Scaling launches instances to replace the ones that are detached. +// Removes one or more instances from the specified Auto Scaling group. After +// the instances are detached, you can manage them independently from the rest +// of the Auto Scaling group. // // For more information, see Detach EC2 Instances from Your Auto Scaling Group // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/detach-instance-asg.html) @@ -1140,8 +1092,6 @@ func (c *AutoScaling) DisableMetricsCollectionRequest(input *DisableMetricsColle } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DisableMetricsCollectionOutput{} req.Data = output return @@ -1170,8 +1120,6 @@ func (c *AutoScaling) EnableMetricsCollectionRequest(input *EnableMetricsCollect } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &EnableMetricsCollectionOutput{} req.Data = output return @@ -1210,7 +1158,7 @@ func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *reques // Moves the specified instances into Standby mode. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling InService State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingInServiceState.html) // in the Auto Scaling Developer Guide. func (c *AutoScaling) EnterStandby(input *EnterStandbyInput) (*EnterStandbyOutput, error) { req, out := c.EnterStandbyRequest(input) @@ -1233,8 +1181,6 @@ func (c *AutoScaling) ExecutePolicyRequest(input *ExecutePolicyInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ExecutePolicyOutput{} req.Data = output return @@ -1269,7 +1215,7 @@ func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request. // Moves the specified instances out of Standby mode. // -// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// For more information, see Auto Scaling InService State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingInServiceState.html) // in the Auto Scaling Developer Guide. func (c *AutoScaling) ExitStandby(input *ExitStandbyInput) (*ExitStandbyOutput, error) { req, out := c.ExitStandbyRequest(input) @@ -1303,19 +1249,17 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req // an instance that is not actively in service; for example, either when the // instance launches or before the instance terminates. // -// This step is a part of the procedure for adding a lifecycle hook to an Auto -// Scaling group: +// This operation is a part of the basic sequence for adding a lifecycle hook +// to an Auto Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch Events -// to invoke your Lambda function when Auto Scaling launches or terminates instances. -// (Optional) Create a notification target and an IAM role. The target can be -// either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling -// to publish lifecycle notifications to the target. Create the lifecycle hook. -// Specify whether the hook is used when the instances launch or terminate. -// If you need more time, record the lifecycle action heartbeat to keep the -// instance in a pending state. If you finish before the timeout period ends, -// complete the lifecycle action. For more information, see Auto Scaling Lifecycle -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// Create a notification target. A target can be either an Amazon SQS queue +// or an Amazon SNS topic. Create an IAM role. This role allows Auto Scaling +// to publish lifecycle notifications to the designated SQS queue or SNS topic. +// Create the lifecycle hook. You can create a hook that acts when instances +// launch or when instances terminate. If necessary, record the lifecycle action +// heartbeat to keep the instance in a pending state. Complete the lifecycle +// action. For more information, see Auto Scaling Pending State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingPendingState.html) +// and Auto Scaling Terminating State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingTerminatingState.html) // in the Auto Scaling Developer Guide. // // If you exceed your maximum limit of lifecycle hooks, which by default is @@ -1343,8 +1287,6 @@ func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotification } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutNotificationConfigurationOutput{} req.Data = output return @@ -1415,8 +1357,6 @@ func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutScheduledUpdateGroupActionOutput{} req.Data = output return @@ -1454,23 +1394,21 @@ func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecyc return } -// Records a heartbeat for the lifecycle action associated with the specified -// token or instance. This extends the timeout by the length of time defined -// using PutLifecycleHook. +// Records a heartbeat for the lifecycle action associated with a specific token. +// This extends the timeout by the length of time defined by the HeartbeatTimeout +// parameter of PutLifecycleHook. // -// This step is a part of the procedure for adding a lifecycle hook to an Auto -// Scaling group: +// This operation is a part of the basic sequence for adding a lifecycle hook +// to an Auto Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch Events -// to invoke your Lambda function when Auto Scaling launches or terminates instances. -// (Optional) Create a notification target and an IAM role. The target can be -// either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling -// to publish lifecycle notifications to the target. Create the lifecycle hook. -// Specify whether the hook is used when the instances launch or terminate. -// If you need more time, record the lifecycle action heartbeat to keep the -// instance in a pending state. If you finish before the timeout period ends, -// complete the lifecycle action. For more information, see Auto Scaling Lifecycle -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// Create a notification target. A target can be either an Amazon SQS queue +// or an Amazon SNS topic. Create an IAM role. This role allows Auto Scaling +// to publish lifecycle notifications to the designated SQS queue or SNS topic. +// Create the lifecycle hook. You can create a hook that acts when instances +// launch or when instances terminate. If necessary, record the lifecycle action +// heartbeat to keep the instance in a pending state. Complete the lifecycle +// action. For more information, see Auto Scaling Pending State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingPendingState.html) +// and Auto Scaling Terminating State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingTerminatingState.html) // in the Auto Scaling Developer Guide. func (c *AutoScaling) RecordLifecycleActionHeartbeat(input *RecordLifecycleActionHeartbeatInput) (*RecordLifecycleActionHeartbeatOutput, error) { req, out := c.RecordLifecycleActionHeartbeatRequest(input) @@ -1493,18 +1431,15 @@ func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ResumeProcessesOutput{} req.Data = output return } -// Resumes the specified suspended Auto Scaling processes, or all suspended -// process, for the specified Auto Scaling group. -// -// For more information, see Suspending and Resuming Auto Scaling Processes -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html) +// Resumes the specified suspended Auto Scaling processes for the specified +// Auto Scaling group. To resume specific processes, use the ScalingProcesses +// parameter. To resume all processes, omit the ScalingProcesses parameter. +// For more information, see Suspend and Resume Auto Scaling Processes (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html) // in the Auto Scaling Developer Guide. func (c *AutoScaling) ResumeProcesses(input *ScalingProcessQuery) (*ResumeProcessesOutput, error) { req, out := c.ResumeProcessesRequest(input) @@ -1527,8 +1462,6 @@ func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetDesiredCapacityOutput{} req.Data = output return @@ -1559,8 +1492,6 @@ func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetInstanceHealthOutput{} req.Data = output return @@ -1576,36 +1507,6 @@ func (c *AutoScaling) SetInstanceHealth(input *SetInstanceHealthInput) (*SetInst return out, err } -const opSetInstanceProtection = "SetInstanceProtection" - -// SetInstanceProtectionRequest generates a request for the SetInstanceProtection operation. -func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionInput) (req *request.Request, output *SetInstanceProtectionOutput) { - op := &request.Operation{ - Name: opSetInstanceProtection, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SetInstanceProtectionInput{} - } - - req = c.newRequest(op, input, output) - output = &SetInstanceProtectionOutput{} - req.Data = output - return -} - -// Updates the instance protection settings of the specified instances. -// -// For more information, see Instance Protection (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html#instance-protection) -// in the Auto Scaling Developer Guide. -func (c *AutoScaling) SetInstanceProtection(input *SetInstanceProtectionInput) (*SetInstanceProtectionOutput, error) { - req, out := c.SetInstanceProtectionRequest(input) - err := req.Send() - return out, err -} - const opSuspendProcesses = "SuspendProcesses" // SuspendProcessesRequest generates a request for the SuspendProcesses operation. @@ -1621,23 +1522,21 @@ func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req * } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SuspendProcessesOutput{} req.Data = output return } -// Suspends the specified Auto Scaling processes, or all processes, for the -// specified Auto Scaling group. +// Suspends the specified Auto Scaling processes for the specified Auto Scaling +// group. To suspend specific processes, use the ScalingProcesses parameter. +// To suspend all processes, omit the ScalingProcesses parameter. // // Note that if you suspend either the Launch or Terminate process types, it // can prevent other process types from functioning properly. // // To resume processes that have been suspended, use ResumeProcesses. // -// For more information, see Suspending and Resuming Auto Scaling Processes -// (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html) +// For more information, see Suspend and Resume Auto Scaling Processes (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html) // in the Auto Scaling Developer Guide. func (c *AutoScaling) SuspendProcesses(input *ScalingProcessQuery) (*SuspendProcessesOutput, error) { req, out := c.SuspendProcessesRequest(input) @@ -1668,7 +1567,7 @@ func (c *AutoScaling) TerminateInstanceInAutoScalingGroupRequest(input *Terminat // Terminates the specified instance and optionally adjusts the desired group // size. // -// This call simply makes a termination request. The instance is not terminated +// This call simply makes a termination request. The instances is not terminated // immediately. func (c *AutoScaling) TerminateInstanceInAutoScalingGroup(input *TerminateInstanceInAutoScalingGroupInput) (*TerminateInstanceInAutoScalingGroupOutput, error) { req, out := c.TerminateInstanceInAutoScalingGroupRequest(input) @@ -1691,8 +1590,6 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateAutoScalingGroupOutput{} req.Data = output return @@ -1732,16 +1629,14 @@ func (c *AutoScaling) UpdateAutoScalingGroup(input *UpdateAutoScalingGroupInput) // a change to your Auto Scaling group, such as changing its size or replacing // an instance. type Activity struct { - _ struct{} `type:"structure"` - // The ID of the activity. ActivityId *string `type:"string" required:"true"` // The name of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The reason the activity began. - Cause *string `min:"1" type:"string" required:"true"` + Cause *string `type:"string" required:"true"` // A friendly, more verbose description of the activity. Description *string `type:"string"` @@ -1762,7 +1657,13 @@ type Activity struct { StatusCode *string `type:"string" required:"true" enum:"ScalingActivityStatusCode"` // A friendly, more verbose description of the activity status. - StatusMessage *string `min:"1" type:"string"` + StatusMessage *string `type:"string"` + + metadataActivity `json:"-" xml:"-"` +} + +type metadataActivity struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1780,11 +1681,15 @@ func (s Activity) GoString() string { // For more information, see Dynamic Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html) // in the Auto Scaling Developer Guide. type AdjustmentType struct { - _ struct{} `type:"structure"` - // The policy adjustment type. The valid values are ChangeInCapacity, ExactCapacity, // and PercentChangeInCapacity. - AdjustmentType *string `min:"1" type:"string"` + AdjustmentType *string `type:"string"` + + metadataAdjustmentType `json:"-" xml:"-"` +} + +type metadataAdjustmentType struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1799,13 +1704,17 @@ func (s AdjustmentType) GoString() string { // Describes an alarm. type Alarm struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the alarm. - AlarmARN *string `min:"1" type:"string"` + AlarmARN *string `type:"string"` // The name of the alarm. - AlarmName *string `min:"1" type:"string"` + AlarmName *string `type:"string"` + + metadataAlarm `json:"-" xml:"-"` +} + +type metadataAlarm struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1819,13 +1728,17 @@ func (s Alarm) GoString() string { } type AttachInstancesInput struct { - _ struct{} `type:"structure"` - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` - // One or more instance IDs. + // One or more EC2 instance IDs. InstanceIds []*string `type:"list"` + + metadataAttachInstancesInput `json:"-" xml:"-"` +} + +type metadataAttachInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1838,24 +1751,12 @@ func (s AttachInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachInstancesInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AttachInstancesOutput struct { + metadataAttachInstancesOutput `json:"-" xml:"-"` } -type AttachInstancesOutput struct { - _ struct{} `type:"structure"` +type metadataAttachInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1869,13 +1770,17 @@ func (s AttachInstancesOutput) GoString() string { } type AttachLoadBalancersInput struct { - _ struct{} `type:"structure"` - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // One or more load balancer names. LoadBalancerNames []*string `type:"list"` + + metadataAttachLoadBalancersInput `json:"-" xml:"-"` +} + +type metadataAttachLoadBalancersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1888,21 +1793,12 @@ func (s AttachLoadBalancersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachLoadBalancersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachLoadBalancersInput"} - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AttachLoadBalancersOutput struct { + metadataAttachLoadBalancersOutput `json:"-" xml:"-"` } -type AttachLoadBalancersOutput struct { - _ struct{} `type:"structure"` +type metadataAttachLoadBalancersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1917,10 +1813,8 @@ func (s AttachLoadBalancersOutput) GoString() string { // Describes a block device mapping. type BlockDeviceMapping struct { - _ struct{} `type:"structure"` - // The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh). - DeviceName *string `min:"1" type:"string" required:"true"` + DeviceName *string `type:"string" required:"true"` // The information about the Amazon EBS volume. Ebs *Ebs `type:"structure"` @@ -1932,8 +1826,14 @@ type BlockDeviceMapping struct { // fails the health check. NoDevice *bool `type:"boolean"` - // The name of the virtual device (for example, ephemeral0). - VirtualName *string `min:"1" type:"string"` + // The name of the virtual device, ephemeral0 to ephemeral3. + VirtualName *string `type:"string"` + + metadataBlockDeviceMapping `json:"-" xml:"-"` +} + +type metadataBlockDeviceMapping struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1946,38 +1846,9 @@ func (s BlockDeviceMapping) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BlockDeviceMapping) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BlockDeviceMapping"} - if s.DeviceName == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceName")) - } - if s.DeviceName != nil && len(*s.DeviceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceName", 1)) - } - if s.VirtualName != nil && len(*s.VirtualName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VirtualName", 1)) - } - if s.Ebs != nil { - if err := s.Ebs.Validate(); err != nil { - invalidParams.AddNested("Ebs", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CompleteLifecycleActionInput struct { - _ struct{} `type:"structure"` - // The name of the group for the lifecycle hook. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` - - // The ID of the instance. - InstanceId *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string" required:"true"` // The action for the group to take. This parameter can be either CONTINUE or // ABANDON. @@ -1986,10 +1857,16 @@ type CompleteLifecycleActionInput struct { // A universally unique identifier (UUID) that identifies a specific lifecycle // action associated with an instance. Auto Scaling sends this token to the // notification target you specified when you created the lifecycle hook. - LifecycleActionToken *string `min:"36" type:"string"` + LifecycleActionToken *string `type:"string" required:"true"` // The name of the lifecycle hook. - LifecycleHookName *string `min:"1" type:"string" required:"true"` + LifecycleHookName *string `type:"string" required:"true"` + + metadataCompleteLifecycleActionInput `json:"-" xml:"-"` +} + +type metadataCompleteLifecycleActionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2002,39 +1879,12 @@ func (s CompleteLifecycleActionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CompleteLifecycleActionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CompleteLifecycleActionInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.InstanceId != nil && len(*s.InstanceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) - } - if s.LifecycleActionResult == nil { - invalidParams.Add(request.NewErrParamRequired("LifecycleActionResult")) - } - if s.LifecycleActionToken != nil && len(*s.LifecycleActionToken) < 36 { - invalidParams.Add(request.NewErrParamMinLen("LifecycleActionToken", 36)) - } - if s.LifecycleHookName == nil { - invalidParams.Add(request.NewErrParamRequired("LifecycleHookName")) - } - if s.LifecycleHookName != nil && len(*s.LifecycleHookName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LifecycleHookName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CompleteLifecycleActionOutput struct { + metadataCompleteLifecycleActionOutput `json:"-" xml:"-"` } -type CompleteLifecycleActionOutput struct { - _ struct{} `type:"structure"` +type metadataCompleteLifecycleActionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2048,20 +1898,19 @@ func (s CompleteLifecycleActionOutput) GoString() string { } type CreateAutoScalingGroupInput struct { - _ struct{} `type:"structure"` - // The name of the group. This name must be unique within the scope of your // AWS account. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // One or more Availability Zones for the group. This parameter is optional - // if you specify one or more subnets. - AvailabilityZones []*string `min:"1" type:"list"` + // if you specify subnets using the VPCZoneIdentifier parameter. + AvailabilityZones []*string `type:"list"` // The amount of time, in seconds, after a scaling activity completes before - // another scaling activity can start. The default is 300. + // another scaling activity can start. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // If this parameter is not specified, the default value is 300. For more information, + // see Understanding Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) // in the Auto Scaling Developer Guide. DefaultCooldown *int64 `type:"integer"` @@ -2070,45 +1919,47 @@ type CreateAutoScalingGroupInput struct { // or equal to the maximum size of the group. DesiredCapacity *int64 `type:"integer"` - // The amount of time, in seconds, that Auto Scaling waits before checking the - // health status of an EC2 instance that has come into service. During this - // time, any health check failures for the instance are ignored. The default - // is 300. + // The amount of time, in seconds, after an EC2 instance comes into service + // that Auto Scaling starts checking its health. During this time, any health + // check failures for the instance are ignored. // - // This parameter is required if you are adding an ELB health check. + // This parameter is required if you are adding an ELB health check. Frequently, + // new instances need to warm up, briefly, before they can pass a health check. + // To provide ample warm-up time, set the health check grace period of the group + // to match the expected startup period of your application. // - // For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) + // For more information, see Add an Elastic Load Balancing Health Check to + // Your Auto Scaling Group (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-add-elb-healthcheck.html) // in the Auto Scaling Developer Guide. HealthCheckGracePeriod *int64 `type:"integer"` // The service to use for the health checks. The valid values are EC2 and ELB. // // By default, health checks use Amazon EC2 instance status checks to determine - // the health of an instance. For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) - // in the Auto Scaling Developer Guide. - HealthCheckType *string `min:"1" type:"string"` + // the health of an instance. For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html). + HealthCheckType *string `type:"string"` - // The ID of the instance used to create a launch configuration for the group. - // Alternatively, specify a launch configuration instead of an EC2 instance. + // The ID of the EC2 instance used to create a launch configuration for the + // group. Alternatively, use the LaunchConfigurationName parameter to specify + // a launch configuration instead of an EC2 instance. // // When you specify an ID of an instance, Auto Scaling creates a new launch // configuration and associates it with the group. This launch configuration // derives its attributes from the specified instance, with the exception of // the block device mapping. // - // For more information, see Create an Auto Scaling Group Using an EC2 Instance + // For more information, see Create an Auto Scaling Group from an EC2 Instance // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-asg-from-instance.html) // in the Auto Scaling Developer Guide. - InstanceId *string `min:"1" type:"string"` + InstanceId *string `type:"string"` - // The name of the launch configuration. Alternatively, specify an EC2 instance - // instead of a launch configuration. - LaunchConfigurationName *string `min:"1" type:"string"` + // The name of the launch configuration. Alternatively, use the InstanceId parameter + // to specify an EC2 instance instead of a launch configuration. + LaunchConfigurationName *string `type:"string"` // One or more load balancers. // - // For more information, see Using a Load Balancer With an Auto Scaling Group - // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SetUpASLBApp.html) + // For more information, see Load Balance Your Auto Scaling Group (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SetUpASLBApp.html) // in the Auto Scaling Developer Guide. LoadBalancerNames []*string `type:"list"` @@ -2118,16 +1969,14 @@ type CreateAutoScalingGroupInput struct { // The minimum size of the group. MinSize *int64 `type:"integer" required:"true"` - // Indicates whether newly launched instances are protected from termination - // by Auto Scaling when scaling in. - NewInstancesProtectedFromScaleIn *bool `type:"boolean"` - // The name of the placement group into which you'll launch your instances, // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) // in the Amazon Elastic Compute Cloud User Guide. - PlacementGroup *string `min:"1" type:"string"` + PlacementGroup *string `type:"string"` - // One or more tags. + // The tag to be created or updated. Each tag should be defined by its resource + // type, resource ID, key, value, and a propagate flag. Valid values: key=value, + // value=value, propagate=true or false. Value and propagate are optional parameters. // // For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html) // in the Auto Scaling Developer Guide. @@ -2136,8 +1985,8 @@ type CreateAutoScalingGroupInput struct { // One or more termination policies used to select the instance to terminate. // These policies are executed in the order that they are listed. // - // For more information, see Controlling Which Instances Auto Scaling Terminates - // During Scale In (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html) + // For more information, see Choosing a Termination Policy for Your Auto Scaling + // Group (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-termination-policy.html) // in the Auto Scaling Developer Guide. TerminationPolicies []*string `type:"list"` @@ -2147,9 +1996,16 @@ type CreateAutoScalingGroupInput struct { // If you specify subnets and Availability Zones with this call, ensure that // the subnets' Availability Zones match the Availability Zones specified. // - // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // For more information, see Auto Scaling and Amazon Virtual Private Cloud + // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/autoscalingsubnets.html) // in the Auto Scaling Developer Guide. - VPCZoneIdentifier *string `min:"1" type:"string"` + VPCZoneIdentifier *string `type:"string"` + + metadataCreateAutoScalingGroupInput `json:"-" xml:"-"` +} + +type metadataCreateAutoScalingGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2162,58 +2018,12 @@ func (s CreateAutoScalingGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAutoScalingGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAutoScalingGroupInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.AvailabilityZones != nil && len(s.AvailabilityZones) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AvailabilityZones", 1)) - } - if s.HealthCheckType != nil && len(*s.HealthCheckType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("HealthCheckType", 1)) - } - if s.InstanceId != nil && len(*s.InstanceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) - } - if s.LaunchConfigurationName != nil && len(*s.LaunchConfigurationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LaunchConfigurationName", 1)) - } - if s.MaxSize == nil { - invalidParams.Add(request.NewErrParamRequired("MaxSize")) - } - if s.MinSize == nil { - invalidParams.Add(request.NewErrParamRequired("MinSize")) - } - if s.PlacementGroup != nil && len(*s.PlacementGroup) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PlacementGroup", 1)) - } - if s.VPCZoneIdentifier != nil && len(*s.VPCZoneIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VPCZoneIdentifier", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateAutoScalingGroupOutput struct { + metadataCreateAutoScalingGroupOutput `json:"-" xml:"-"` } -type CreateAutoScalingGroupOutput struct { - _ struct{} `type:"structure"` +type metadataCreateAutoScalingGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2227,15 +2037,13 @@ func (s CreateAutoScalingGroupOutput) GoString() string { } type CreateLaunchConfigurationInput struct { - _ struct{} `type:"structure"` - // Used for groups that launch instances into a virtual private cloud (VPC). // Specifies whether to assign a public IP address to each instance. For more - // information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // information, see Auto Scaling and Amazon Virtual Private Cloud (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/autoscalingsubnets.html) // in the Auto Scaling Developer Guide. // - // If you specify this parameter, be sure to specify at least one subnet when - // you create your group. + // If you specify a value for this parameter, be sure to specify at least one + // subnet using the VPCZoneIdentifier parameter when you create your group. // // Default: If the instance is launched into a default subnet, the default // is true. If the instance is launched into a nondefault subnet, the default @@ -2252,11 +2060,11 @@ type CreateLaunchConfigurationInput struct { // This parameter is supported only if you are launching EC2-Classic instances. // For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon Elastic Compute Cloud User Guide. - ClassicLinkVPCId *string `min:"1" type:"string"` + ClassicLinkVPCId *string `type:"string"` - // The IDs of one or more security groups for the specified ClassicLink-enabled - // VPC. This parameter is required if you specify a ClassicLink-enabled VPC, - // and is not supported otherwise. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) + // The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. + // This parameter is required if ClassicLinkVPCId is specified, and is not supported + // otherwise. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon Elastic Compute Cloud User Guide. ClassicLinkVPCSecurityGroups []*string `type:"list"` @@ -2278,14 +2086,14 @@ type CreateLaunchConfigurationInput struct { // AWS resources. For more information, see Launch Auto Scaling Instances with // an IAM Role (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html) // in the Auto Scaling Developer Guide. - IamInstanceProfile *string `min:"1" type:"string"` + IamInstanceProfile *string `type:"string"` // The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. // For more information, see Finding an AMI (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html) // in the Amazon Elastic Compute Cloud User Guide. - ImageId *string `min:"1" type:"string"` + ImageId *string `type:"string"` - // The ID of the instance to use to create the launch configuration. + // The ID of the EC2 instance to use to create the launch configuration. // // The new launch configuration derives attributes from the instance, with // the exception of the block device mapping. @@ -2296,7 +2104,7 @@ type CreateLaunchConfigurationInput struct { // For more information, see Create a Launch Configuration Using an EC2 Instance // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html) // in the Auto Scaling Developer Guide. - InstanceId *string `min:"1" type:"string"` + InstanceId *string `type:"string"` // Enables detailed monitoring if it is disabled. Detailed monitoring is enabled // by default. @@ -2304,27 +2112,26 @@ type CreateLaunchConfigurationInput struct { // When detailed monitoring is enabled, Amazon CloudWatch generates metrics // every minute and your account is charged a fee. When you disable detailed // monitoring, by specifying False, CloudWatch generates metrics every 5 minutes. - // For more information, see Monitoring Your Auto Scaling Instances and Groups - // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html) + // For more information, see Monitor Your Auto Scaling Instances (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html) // in the Auto Scaling Developer Guide. InstanceMonitoring *InstanceMonitoring `type:"structure"` // The instance type of the EC2 instance. For information about available instance // types, see Available Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes) - // in the Amazon Elastic Compute Cloud User Guide. - InstanceType *string `min:"1" type:"string"` + // in the Amazon Elastic Cloud Compute User Guide. + InstanceType *string `type:"string"` // The ID of the kernel associated with the AMI. - KernelId *string `min:"1" type:"string"` + KernelId *string `type:"string"` // The name of the key pair. For more information, see Amazon EC2 Key Pairs // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in // the Amazon Elastic Compute Cloud User Guide. - KeyName *string `min:"1" type:"string"` + KeyName *string `type:"string"` // The name of the launch configuration. This name must be unique within the // scope of your AWS account. - LaunchConfigurationName *string `min:"1" type:"string" required:"true"` + LaunchConfigurationName *string `type:"string" required:"true"` // The tenancy of the instance. An instance with a tenancy of dedicated runs // on single-tenant hardware and can only be launched into a VPC. @@ -2333,17 +2140,18 @@ type CreateLaunchConfigurationInput struct { // Dedicated Instances into a shared tenancy VPC (VPC with instance placement // tenancy attribute set to default). // - // If you specify this parameter, be sure to specify at least one subnet when - // you create your group. + // If you specify a value for this parameter, be sure to specify at least one + // subnet using the VPCZoneIdentifier parameter when you create your group. // - // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // For more information, see Auto Scaling and Amazon Virtual Private Cloud + // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/autoscalingsubnets.html) // in the Auto Scaling Developer Guide. // // Valid values: default | dedicated - PlacementTenancy *string `min:"1" type:"string"` + PlacementTenancy *string `type:"string"` // The ID of the RAM disk associated with the AMI. - RamdiskId *string `min:"1" type:"string"` + RamdiskId *string `type:"string"` // One or more security groups with which to associate the instances. // @@ -2359,15 +2167,24 @@ type CreateLaunchConfigurationInput struct { // The maximum hourly price to be paid for any Spot Instance launched to fulfill // the request. Spot Instances are launched when the price you specify exceeds - // the current Spot market price. For more information, see Launching Spot Instances + // the current Spot market price. For more information, see Launch Spot Instances // in Your Auto Scaling Group (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html) // in the Auto Scaling Developer Guide. - SpotPrice *string `min:"1" type:"string"` + SpotPrice *string `type:"string"` // The user data to make available to the launched EC2 instances. For more information, // see Instance Metadata and User Data (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) // in the Amazon Elastic Compute Cloud User Guide. + // + // At this time, launch configurations don't support compressed (zipped) user + // data files. UserData *string `type:"string"` + + metadataCreateLaunchConfigurationInput `json:"-" xml:"-"` +} + +type metadataCreateLaunchConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2380,64 +2197,12 @@ func (s CreateLaunchConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLaunchConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLaunchConfigurationInput"} - if s.ClassicLinkVPCId != nil && len(*s.ClassicLinkVPCId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClassicLinkVPCId", 1)) - } - if s.IamInstanceProfile != nil && len(*s.IamInstanceProfile) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IamInstanceProfile", 1)) - } - if s.ImageId != nil && len(*s.ImageId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ImageId", 1)) - } - if s.InstanceId != nil && len(*s.InstanceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) - } - if s.InstanceType != nil && len(*s.InstanceType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) - } - if s.KernelId != nil && len(*s.KernelId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KernelId", 1)) - } - if s.KeyName != nil && len(*s.KeyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyName", 1)) - } - if s.LaunchConfigurationName == nil { - invalidParams.Add(request.NewErrParamRequired("LaunchConfigurationName")) - } - if s.LaunchConfigurationName != nil && len(*s.LaunchConfigurationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LaunchConfigurationName", 1)) - } - if s.PlacementTenancy != nil && len(*s.PlacementTenancy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PlacementTenancy", 1)) - } - if s.RamdiskId != nil && len(*s.RamdiskId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RamdiskId", 1)) - } - if s.SpotPrice != nil && len(*s.SpotPrice) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SpotPrice", 1)) - } - if s.BlockDeviceMappings != nil { - for i, v := range s.BlockDeviceMappings { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "BlockDeviceMappings", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateLaunchConfigurationOutput struct { + metadataCreateLaunchConfigurationOutput `json:"-" xml:"-"` } -type CreateLaunchConfigurationOutput struct { - _ struct{} `type:"structure"` +type metadataCreateLaunchConfigurationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2451,10 +2216,14 @@ func (s CreateLaunchConfigurationOutput) GoString() string { } type CreateOrUpdateTagsInput struct { - _ struct{} `type:"structure"` - // One or more tags. Tags []*Tag `type:"list" required:"true"` + + metadataCreateOrUpdateTagsInput `json:"-" xml:"-"` +} + +type metadataCreateOrUpdateTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2467,31 +2236,12 @@ func (s CreateOrUpdateTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateOrUpdateTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateOrUpdateTagsInput"} - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateOrUpdateTagsOutput struct { + metadataCreateOrUpdateTagsOutput `json:"-" xml:"-"` } -type CreateOrUpdateTagsOutput struct { - _ struct{} `type:"structure"` +type metadataCreateOrUpdateTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2505,15 +2255,19 @@ func (s CreateOrUpdateTagsOutput) GoString() string { } type DeleteAutoScalingGroupInput struct { - _ struct{} `type:"structure"` - // The name of the group to delete. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // Specifies that the group will be deleted along with all instances associated // with the group, without waiting for all instances to be terminated. This // parameter also deletes any lifecycle actions associated with the group. ForceDelete *bool `type:"boolean"` + + metadataDeleteAutoScalingGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteAutoScalingGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2526,24 +2280,12 @@ func (s DeleteAutoScalingGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAutoScalingGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAutoScalingGroupInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteAutoScalingGroupOutput struct { + metadataDeleteAutoScalingGroupOutput `json:"-" xml:"-"` } -type DeleteAutoScalingGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteAutoScalingGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2557,10 +2299,14 @@ func (s DeleteAutoScalingGroupOutput) GoString() string { } type DeleteLaunchConfigurationInput struct { - _ struct{} `type:"structure"` - // The name of the launch configuration. - LaunchConfigurationName *string `min:"1" type:"string" required:"true"` + LaunchConfigurationName *string `type:"string" required:"true"` + + metadataDeleteLaunchConfigurationInput `json:"-" xml:"-"` +} + +type metadataDeleteLaunchConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2573,24 +2319,12 @@ func (s DeleteLaunchConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLaunchConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchConfigurationInput"} - if s.LaunchConfigurationName == nil { - invalidParams.Add(request.NewErrParamRequired("LaunchConfigurationName")) - } - if s.LaunchConfigurationName != nil && len(*s.LaunchConfigurationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LaunchConfigurationName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteLaunchConfigurationOutput struct { + metadataDeleteLaunchConfigurationOutput `json:"-" xml:"-"` } -type DeleteLaunchConfigurationOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteLaunchConfigurationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2604,13 +2338,17 @@ func (s DeleteLaunchConfigurationOutput) GoString() string { } type DeleteLifecycleHookInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group for the lifecycle hook. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The name of the lifecycle hook. - LifecycleHookName *string `min:"1" type:"string" required:"true"` + LifecycleHookName *string `type:"string" required:"true"` + + metadataDeleteLifecycleHookInput `json:"-" xml:"-"` +} + +type metadataDeleteLifecycleHookInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2623,30 +2361,12 @@ func (s DeleteLifecycleHookInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLifecycleHookInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLifecycleHookInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.LifecycleHookName == nil { - invalidParams.Add(request.NewErrParamRequired("LifecycleHookName")) - } - if s.LifecycleHookName != nil && len(*s.LifecycleHookName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LifecycleHookName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteLifecycleHookOutput struct { + metadataDeleteLifecycleHookOutput `json:"-" xml:"-"` } -type DeleteLifecycleHookOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteLifecycleHookOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2660,14 +2380,18 @@ func (s DeleteLifecycleHookOutput) GoString() string { } type DeleteNotificationConfigurationInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (SNS) topic. - TopicARN *string `min:"1" type:"string" required:"true"` + TopicARN *string `type:"string" required:"true"` + + metadataDeleteNotificationConfigurationInput `json:"-" xml:"-"` +} + +type metadataDeleteNotificationConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2680,30 +2404,12 @@ func (s DeleteNotificationConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteNotificationConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteNotificationConfigurationInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.TopicARN == nil { - invalidParams.Add(request.NewErrParamRequired("TopicARN")) - } - if s.TopicARN != nil && len(*s.TopicARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TopicARN", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteNotificationConfigurationOutput struct { + metadataDeleteNotificationConfigurationOutput `json:"-" xml:"-"` } -type DeleteNotificationConfigurationOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteNotificationConfigurationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2717,13 +2423,17 @@ func (s DeleteNotificationConfigurationOutput) GoString() string { } type DeletePolicyInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // The name or Amazon Resource Name (ARN) of the policy. - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` + + metadataDeletePolicyInput `json:"-" xml:"-"` +} + +type metadataDeletePolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2736,27 +2446,12 @@ func (s DeletePolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePolicyInput"} - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeletePolicyOutput struct { + metadataDeletePolicyOutput `json:"-" xml:"-"` } -type DeletePolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDeletePolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2770,13 +2465,17 @@ func (s DeletePolicyOutput) GoString() string { } type DeleteScheduledActionInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // The name of the action to delete. - ScheduledActionName *string `min:"1" type:"string" required:"true"` + ScheduledActionName *string `type:"string" required:"true"` + + metadataDeleteScheduledActionInput `json:"-" xml:"-"` +} + +type metadataDeleteScheduledActionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2789,27 +2488,12 @@ func (s DeleteScheduledActionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteScheduledActionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteScheduledActionInput"} - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.ScheduledActionName == nil { - invalidParams.Add(request.NewErrParamRequired("ScheduledActionName")) - } - if s.ScheduledActionName != nil && len(*s.ScheduledActionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ScheduledActionName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteScheduledActionOutput struct { + metadataDeleteScheduledActionOutput `json:"-" xml:"-"` } -type DeleteScheduledActionOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteScheduledActionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2823,10 +2507,17 @@ func (s DeleteScheduledActionOutput) GoString() string { } type DeleteTagsInput struct { - _ struct{} `type:"structure"` - - // One or more tags. + // Each tag should be defined by its resource type, resource ID, key, value, + // and a propagate flag. Valid values are: Resource type = auto-scaling-group, + // Resource ID = AutoScalingGroupName, key=value, value=value, propagate=true + // or false. Tags []*Tag `type:"list" required:"true"` + + metadataDeleteTagsInput `json:"-" xml:"-"` +} + +type metadataDeleteTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2839,31 +2530,12 @@ func (s DeleteTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteTagsOutput struct { + metadataDeleteTagsOutput `json:"-" xml:"-"` } -type DeleteTagsOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2877,7 +2549,11 @@ func (s DeleteTagsOutput) GoString() string { } type DescribeAccountLimitsInput struct { - _ struct{} `type:"structure"` + metadataDescribeAccountLimitsInput `json:"-" xml:"-"` +} + +type metadataDescribeAccountLimitsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2891,8 +2567,6 @@ func (s DescribeAccountLimitsInput) GoString() string { } type DescribeAccountLimitsOutput struct { - _ struct{} `type:"structure"` - // The maximum number of groups allowed for your AWS account. The default limit // is 20 per region. MaxNumberOfAutoScalingGroups *int64 `type:"integer"` @@ -2901,11 +2575,11 @@ type DescribeAccountLimitsOutput struct { // The default limit is 100 per region. MaxNumberOfLaunchConfigurations *int64 `type:"integer"` - // The current number of groups for your AWS account. - NumberOfAutoScalingGroups *int64 `type:"integer"` + metadataDescribeAccountLimitsOutput `json:"-" xml:"-"` +} - // The current number of launch configurations for your AWS account. - NumberOfLaunchConfigurations *int64 `type:"integer"` +type metadataDescribeAccountLimitsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2919,7 +2593,11 @@ func (s DescribeAccountLimitsOutput) GoString() string { } type DescribeAdjustmentTypesInput struct { - _ struct{} `type:"structure"` + metadataDescribeAdjustmentTypesInput `json:"-" xml:"-"` +} + +type metadataDescribeAdjustmentTypesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2933,10 +2611,14 @@ func (s DescribeAdjustmentTypesInput) GoString() string { } type DescribeAdjustmentTypesOutput struct { - _ struct{} `type:"structure"` - // The policy adjustment types. AdjustmentTypes []*AdjustmentType `type:"list"` + + metadataDescribeAdjustmentTypesOutput `json:"-" xml:"-"` +} + +type metadataDescribeAdjustmentTypesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2950,8 +2632,6 @@ func (s DescribeAdjustmentTypesOutput) GoString() string { } type DescribeAutoScalingGroupsInput struct { - _ struct{} `type:"structure"` - // The group names. AutoScalingGroupNames []*string `type:"list"` @@ -2961,6 +2641,12 @@ type DescribeAutoScalingGroupsInput struct { // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` + + metadataDescribeAutoScalingGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeAutoScalingGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2974,14 +2660,18 @@ func (s DescribeAutoScalingGroupsInput) GoString() string { } type DescribeAutoScalingGroupsOutput struct { - _ struct{} `type:"structure"` - // The groups. AutoScalingGroups []*Group `type:"list" required:"true"` // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `type:"string"` + + metadataDescribeAutoScalingGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeAutoScalingGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2995,11 +2685,9 @@ func (s DescribeAutoScalingGroupsOutput) GoString() string { } type DescribeAutoScalingInstancesInput struct { - _ struct{} `type:"structure"` - - // The instances to describe; up to 50 instance IDs. If you omit this parameter, - // all Auto Scaling instances are described. If you specify an ID that does - // not exist, it is ignored with no error. + // One or more Auto Scaling instances to describe, up to 50 instances. If you + // omit this parameter, all Auto Scaling instances are described. If you specify + // an ID that does not exist, it is ignored with no error. InstanceIds []*string `type:"list"` // The maximum number of items to return with this call. @@ -3008,6 +2696,12 @@ type DescribeAutoScalingInstancesInput struct { // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` + + metadataDescribeAutoScalingInstancesInput `json:"-" xml:"-"` +} + +type metadataDescribeAutoScalingInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3021,14 +2715,18 @@ func (s DescribeAutoScalingInstancesInput) GoString() string { } type DescribeAutoScalingInstancesOutput struct { - _ struct{} `type:"structure"` - // The instances. AutoScalingInstances []*InstanceDetails `type:"list"` // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `type:"string"` + + metadataDescribeAutoScalingInstancesOutput `json:"-" xml:"-"` +} + +type metadataDescribeAutoScalingInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3042,7 +2740,11 @@ func (s DescribeAutoScalingInstancesOutput) GoString() string { } type DescribeAutoScalingNotificationTypesInput struct { - _ struct{} `type:"structure"` + metadataDescribeAutoScalingNotificationTypesInput `json:"-" xml:"-"` +} + +type metadataDescribeAutoScalingNotificationTypesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3056,8 +2758,6 @@ func (s DescribeAutoScalingNotificationTypesInput) GoString() string { } type DescribeAutoScalingNotificationTypesOutput struct { - _ struct{} `type:"structure"` - // One or more of the following notification types: // // autoscaling:EC2_INSTANCE_LAUNCH @@ -3070,6 +2770,12 @@ type DescribeAutoScalingNotificationTypesOutput struct { // // autoscaling:TEST_NOTIFICATION AutoScalingNotificationTypes []*string `type:"list"` + + metadataDescribeAutoScalingNotificationTypesOutput `json:"-" xml:"-"` +} + +type metadataDescribeAutoScalingNotificationTypesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3083,8 +2789,6 @@ func (s DescribeAutoScalingNotificationTypesOutput) GoString() string { } type DescribeLaunchConfigurationsInput struct { - _ struct{} `type:"structure"` - // The launch configuration names. LaunchConfigurationNames []*string `type:"list"` @@ -3094,6 +2798,12 @@ type DescribeLaunchConfigurationsInput struct { // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` + + metadataDescribeLaunchConfigurationsInput `json:"-" xml:"-"` +} + +type metadataDescribeLaunchConfigurationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3107,14 +2817,18 @@ func (s DescribeLaunchConfigurationsInput) GoString() string { } type DescribeLaunchConfigurationsOutput struct { - _ struct{} `type:"structure"` - // The launch configurations. LaunchConfigurations []*LaunchConfiguration `type:"list" required:"true"` // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `type:"string"` + + metadataDescribeLaunchConfigurationsOutput `json:"-" xml:"-"` +} + +type metadataDescribeLaunchConfigurationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3128,7 +2842,11 @@ func (s DescribeLaunchConfigurationsOutput) GoString() string { } type DescribeLifecycleHookTypesInput struct { - _ struct{} `type:"structure"` + metadataDescribeLifecycleHookTypesInput `json:"-" xml:"-"` +} + +type metadataDescribeLifecycleHookTypesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3142,14 +2860,18 @@ func (s DescribeLifecycleHookTypesInput) GoString() string { } type DescribeLifecycleHookTypesOutput struct { - _ struct{} `type:"structure"` - // One or more of the following notification types: // // autoscaling:EC2_INSTANCE_LAUNCHING // // autoscaling:EC2_INSTANCE_TERMINATING LifecycleHookTypes []*string `type:"list"` + + metadataDescribeLifecycleHookTypesOutput `json:"-" xml:"-"` +} + +type metadataDescribeLifecycleHookTypesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3163,13 +2885,17 @@ func (s DescribeLifecycleHookTypesOutput) GoString() string { } type DescribeLifecycleHooksInput struct { - _ struct{} `type:"structure"` - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The names of one or more lifecycle hooks. LifecycleHookNames []*string `type:"list"` + + metadataDescribeLifecycleHooksInput `json:"-" xml:"-"` +} + +type metadataDescribeLifecycleHooksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3182,27 +2908,15 @@ func (s DescribeLifecycleHooksInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeLifecycleHooksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeLifecycleHooksInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeLifecycleHooksOutput struct { - _ struct{} `type:"structure"` - // The lifecycle hooks for the specified group. LifecycleHooks []*LifecycleHook `type:"list"` + + metadataDescribeLifecycleHooksOutput `json:"-" xml:"-"` +} + +type metadataDescribeLifecycleHooksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3216,10 +2930,8 @@ func (s DescribeLifecycleHooksOutput) GoString() string { } type DescribeLoadBalancersInput struct { - _ struct{} `type:"structure"` - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The maximum number of items to return with this call. MaxRecords *int64 `type:"integer"` @@ -3227,6 +2939,12 @@ type DescribeLoadBalancersInput struct { // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` + + metadataDescribeLoadBalancersInput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBalancersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3239,31 +2957,19 @@ func (s DescribeLoadBalancersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeLoadBalancersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancersInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeLoadBalancersOutput struct { - _ struct{} `type:"structure"` - // The load balancers. LoadBalancers []*LoadBalancerState `type:"list"` // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `type:"string"` + + metadataDescribeLoadBalancersOutput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBalancersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3277,7 +2983,11 @@ func (s DescribeLoadBalancersOutput) GoString() string { } type DescribeMetricCollectionTypesInput struct { - _ struct{} `type:"structure"` + metadataDescribeMetricCollectionTypesInput `json:"-" xml:"-"` +} + +type metadataDescribeMetricCollectionTypesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3291,13 +3001,17 @@ func (s DescribeMetricCollectionTypesInput) GoString() string { } type DescribeMetricCollectionTypesOutput struct { - _ struct{} `type:"structure"` - // The granularities for the metrics. Granularities []*MetricGranularityType `type:"list"` // One or more metrics. Metrics []*MetricCollectionType `type:"list"` + + metadataDescribeMetricCollectionTypesOutput `json:"-" xml:"-"` +} + +type metadataDescribeMetricCollectionTypesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3311,8 +3025,6 @@ func (s DescribeMetricCollectionTypesOutput) GoString() string { } type DescribeNotificationConfigurationsInput struct { - _ struct{} `type:"structure"` - // The name of the group. AutoScalingGroupNames []*string `type:"list"` @@ -3322,6 +3034,12 @@ type DescribeNotificationConfigurationsInput struct { // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` + + metadataDescribeNotificationConfigurationsInput `json:"-" xml:"-"` +} + +type metadataDescribeNotificationConfigurationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3335,14 +3053,18 @@ func (s DescribeNotificationConfigurationsInput) GoString() string { } type DescribeNotificationConfigurationsOutput struct { - _ struct{} `type:"structure"` - // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `type:"string"` // The notification configurations. NotificationConfigurations []*NotificationConfiguration `type:"list" required:"true"` + + metadataDescribeNotificationConfigurationsOutput `json:"-" xml:"-"` +} + +type metadataDescribeNotificationConfigurationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3356,10 +3078,8 @@ func (s DescribeNotificationConfigurationsOutput) GoString() string { } type DescribePoliciesInput struct { - _ struct{} `type:"structure"` - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // The maximum number of items to be returned with each call. MaxRecords *int64 `type:"integer"` @@ -3376,6 +3096,12 @@ type DescribePoliciesInput struct { // One or more policy types. Valid values are SimpleScaling and StepScaling. PolicyTypes []*string `type:"list"` + + metadataDescribePoliciesInput `json:"-" xml:"-"` +} + +type metadataDescribePoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3388,28 +3114,19 @@ func (s DescribePoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribePoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribePoliciesInput"} - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribePoliciesOutput struct { - _ struct{} `type:"structure"` - // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `type:"string"` // The scaling policies. ScalingPolicies []*ScalingPolicy `type:"list"` + + metadataDescribePoliciesOutput `json:"-" xml:"-"` +} + +type metadataDescribePoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3423,17 +3140,15 @@ func (s DescribePoliciesOutput) GoString() string { } type DescribeScalingActivitiesInput struct { - _ struct{} `type:"structure"` - // The activity IDs of the desired scaling activities. If this list is omitted, - // all activities are described. If you specify an Auto Scaling group, the results - // are limited to that group. The list of requested activities cannot contain - // more than 50 items. If unknown activities are requested, they are ignored - // with no error. + // all activities are described. If the AutoScalingGroupName parameter is provided, + // the results are limited to that group. The list of requested activities cannot + // contain more than 50 items. If unknown activities are requested, they are + // ignored with no error. ActivityIds []*string `type:"list"` // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // The maximum number of items to return with this call. MaxRecords *int64 `type:"integer"` @@ -3441,6 +3156,12 @@ type DescribeScalingActivitiesInput struct { // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` + + metadataDescribeScalingActivitiesInput `json:"-" xml:"-"` +} + +type metadataDescribeScalingActivitiesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3453,28 +3174,19 @@ func (s DescribeScalingActivitiesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeScalingActivitiesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeScalingActivitiesInput"} - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeScalingActivitiesOutput struct { - _ struct{} `type:"structure"` - // The scaling activities. Activities []*Activity `type:"list" required:"true"` // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `type:"string"` + + metadataDescribeScalingActivitiesOutput `json:"-" xml:"-"` +} + +type metadataDescribeScalingActivitiesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3488,7 +3200,11 @@ func (s DescribeScalingActivitiesOutput) GoString() string { } type DescribeScalingProcessTypesInput struct { - _ struct{} `type:"structure"` + metadataDescribeScalingProcessTypesInput `json:"-" xml:"-"` +} + +type metadataDescribeScalingProcessTypesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3502,10 +3218,14 @@ func (s DescribeScalingProcessTypesInput) GoString() string { } type DescribeScalingProcessTypesOutput struct { - _ struct{} `type:"structure"` - // The names of the process types. Processes []*ProcessType `type:"list"` + + metadataDescribeScalingProcessTypesOutput `json:"-" xml:"-"` +} + +type metadataDescribeScalingProcessTypesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3519,10 +3239,8 @@ func (s DescribeScalingProcessTypesOutput) GoString() string { } type DescribeScheduledActionsInput struct { - _ struct{} `type:"structure"` - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // The latest scheduled start time to return. If scheduled action names are // provided, this parameter is ignored. @@ -3541,12 +3259,18 @@ type DescribeScheduledActionsInput struct { // // You can describe up to a maximum of 50 instances with a single call. If // there are more items to return, the call returns a token. To get the next - // set of items, repeat the call with the returned token. + // set of items, repeat the call with the returned token in the NextToken parameter. ScheduledActionNames []*string `type:"list"` // The earliest scheduled start time to return. If scheduled action names are // provided, this parameter is ignored. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataDescribeScheduledActionsInput `json:"-" xml:"-"` +} + +type metadataDescribeScheduledActionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3559,28 +3283,19 @@ func (s DescribeScheduledActionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeScheduledActionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledActionsInput"} - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeScheduledActionsOutput struct { - _ struct{} `type:"structure"` - // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `type:"string"` // The scheduled actions. ScheduledUpdateGroupActions []*ScheduledUpdateGroupAction `type:"list"` + + metadataDescribeScheduledActionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeScheduledActionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3594,8 +3309,6 @@ func (s DescribeScheduledActionsOutput) GoString() string { } type DescribeTagsInput struct { - _ struct{} `type:"structure"` - // A filter used to scope the tags to return. Filters []*Filter `type:"list"` @@ -3605,6 +3318,12 @@ type DescribeTagsInput struct { // The token for the next set of items to return. (You received this token from // a previous call.) NextToken *string `type:"string"` + + metadataDescribeTagsInput `json:"-" xml:"-"` +} + +type metadataDescribeTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3618,14 +3337,18 @@ func (s DescribeTagsInput) GoString() string { } type DescribeTagsOutput struct { - _ struct{} `type:"structure"` - // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `type:"string"` - // One or more tags. + // The tags. Tags []*TagDescription `type:"list"` + + metadataDescribeTagsOutput `json:"-" xml:"-"` +} + +type metadataDescribeTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3639,7 +3362,11 @@ func (s DescribeTagsOutput) GoString() string { } type DescribeTerminationPolicyTypesInput struct { - _ struct{} `type:"structure"` + metadataDescribeTerminationPolicyTypesInput `json:"-" xml:"-"` +} + +type metadataDescribeTerminationPolicyTypesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3653,11 +3380,15 @@ func (s DescribeTerminationPolicyTypesInput) GoString() string { } type DescribeTerminationPolicyTypesOutput struct { - _ struct{} `type:"structure"` - // The termination policies supported by Auto Scaling (OldestInstance, OldestLaunchConfiguration, // NewestInstance, ClosestToNextInstanceHour, and Default). TerminationPolicyTypes []*string `type:"list"` + + metadataDescribeTerminationPolicyTypesOutput `json:"-" xml:"-"` +} + +type metadataDescribeTerminationPolicyTypesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3671,10 +3402,8 @@ func (s DescribeTerminationPolicyTypesOutput) GoString() string { } type DetachInstancesInput struct { - _ struct{} `type:"structure"` - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // One or more instance IDs. InstanceIds []*string `type:"list"` @@ -3682,6 +3411,12 @@ type DetachInstancesInput struct { // If True, the Auto Scaling group decrements the desired capacity value by // the number of instances detached. ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"` + + metadataDetachInstancesInput `json:"-" xml:"-"` +} + +type metadataDetachInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3694,30 +3429,15 @@ func (s DetachInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachInstancesInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.ShouldDecrementDesiredCapacity == nil { - invalidParams.Add(request.NewErrParamRequired("ShouldDecrementDesiredCapacity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DetachInstancesOutput struct { - _ struct{} `type:"structure"` - // The activities related to detaching the instances from the Auto Scaling group. Activities []*Activity `type:"list"` + + metadataDetachInstancesOutput `json:"-" xml:"-"` +} + +type metadataDetachInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3731,13 +3451,17 @@ func (s DetachInstancesOutput) GoString() string { } type DetachLoadBalancersInput struct { - _ struct{} `type:"structure"` - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // One or more load balancer names. LoadBalancerNames []*string `type:"list"` + + metadataDetachLoadBalancersInput `json:"-" xml:"-"` +} + +type metadataDetachLoadBalancersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3750,21 +3474,12 @@ func (s DetachLoadBalancersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachLoadBalancersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachLoadBalancersInput"} - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DetachLoadBalancersOutput struct { + metadataDetachLoadBalancersOutput `json:"-" xml:"-"` } -type DetachLoadBalancersOutput struct { - _ struct{} `type:"structure"` +type metadataDetachLoadBalancersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3778,13 +3493,10 @@ func (s DetachLoadBalancersOutput) GoString() string { } type DisableMetricsCollectionInput struct { - _ struct{} `type:"structure"` - // The name or Amazon Resource Name (ARN) of the group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` - // One or more of the following metrics. If you omit this parameter, all metrics - // are disabled. + // One or more metrics. If you omit this parameter, all metrics are disabled. // // GroupMinSize // @@ -3802,6 +3514,12 @@ type DisableMetricsCollectionInput struct { // // GroupTotalInstances Metrics []*string `type:"list"` + + metadataDisableMetricsCollectionInput `json:"-" xml:"-"` +} + +type metadataDisableMetricsCollectionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3814,24 +3532,12 @@ func (s DisableMetricsCollectionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableMetricsCollectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableMetricsCollectionInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DisableMetricsCollectionOutput struct { + metadataDisableMetricsCollectionOutput `json:"-" xml:"-"` } -type DisableMetricsCollectionOutput struct { - _ struct{} `type:"structure"` +type metadataDisableMetricsCollectionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3846,46 +3552,46 @@ func (s DisableMetricsCollectionOutput) GoString() string { // Describes an Amazon EBS volume. type Ebs struct { - _ struct{} `type:"structure"` - - // Indicates whether the volume is deleted on instance termination. + // Indicates whether to delete the volume on instance termination. // // Default: true DeleteOnTermination *bool `type:"boolean"` - // Indicates whether the volume should be encrypted. Encrypted EBS volumes must - // be attached to instances that support Amazon EBS encryption. Volumes that - // are created from encrypted snapshots are automatically encrypted. There is - // no way to create an encrypted volume from an unencrypted snapshot or an unencrypted - // volume from an encrypted snapshot. For more information, see Amazon EBS Encryption - // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in - // the Amazon Elastic Compute Cloud User Guide. - Encrypted *bool `type:"boolean"` - - // The number of I/O operations per second (IOPS) to provision for the volume. + // For Provisioned IOPS (SSD) volumes only. The number of I/O operations per + // second (IOPS) to provision for the volume. + // + // Valid values: Range is 100 to 4000. // - // Constraint: Required when the volume type is io1. - Iops *int64 `min:"100" type:"integer"` + // Default: None + Iops *int64 `type:"integer"` // The ID of the snapshot. - SnapshotId *string `min:"1" type:"string"` + SnapshotId *string `type:"string"` - // The volume size, in GiB. For standard volumes, specify a value from 1 to - // 1,024. For io1 volumes, specify a value from 4 to 16,384. For gp2 volumes, - // specify a value from 1 to 16,384. If you specify a snapshot, the volume size - // must be equal to or larger than the snapshot size. + // The volume size, in gigabytes. + // + // Valid values: If the volume type is io1, the minimum size of the volume + // is 10 GiB. If you specify SnapshotId and VolumeSize, VolumeSize must be equal + // to or larger than the size of the snapshot. // // Default: If you create a volume from a snapshot and you don't specify a - // volume size, the default is the snapshot size. - VolumeSize *int64 `min:"1" type:"integer"` + // volume size, the default is the size of the snapshot. + // + // Required: Required when the volume type is io1. + VolumeSize *int64 `type:"integer"` - // The volume type. For more information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) - // in the Amazon Elastic Compute Cloud User Guide. + // The volume type. // // Valid values: standard | io1 | gp2 // // Default: standard - VolumeType *string `min:"1" type:"string"` + VolumeType *string `type:"string"` + + metadataEbs `json:"-" xml:"-"` +} + +type metadataEbs struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3898,40 +3604,15 @@ func (s Ebs) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Ebs) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Ebs"} - if s.Iops != nil && *s.Iops < 100 { - invalidParams.Add(request.NewErrParamMinValue("Iops", 100)) - } - if s.SnapshotId != nil && len(*s.SnapshotId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SnapshotId", 1)) - } - if s.VolumeSize != nil && *s.VolumeSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("VolumeSize", 1)) - } - if s.VolumeType != nil && len(*s.VolumeType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VolumeType", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type EnableMetricsCollectionInput struct { - _ struct{} `type:"structure"` - // The name or ARN of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The granularity to associate with the metrics to collect. The only valid // value is 1Minute. - Granularity *string `min:"1" type:"string" required:"true"` + Granularity *string `type:"string" required:"true"` - // One or more of the following metrics. If you omit this parameter, all metrics - // are enabled. + // One or more metrics. If you omit this parameter, all metrics are enabled. // // GroupMinSize // @@ -3952,6 +3633,12 @@ type EnableMetricsCollectionInput struct { // Note that the GroupStandbyInstances metric is not enabled by default. You // must explicitly request this metric. Metrics []*string `type:"list"` + + metadataEnableMetricsCollectionInput `json:"-" xml:"-"` +} + +type metadataEnableMetricsCollectionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3964,30 +3651,12 @@ func (s EnableMetricsCollectionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableMetricsCollectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableMetricsCollectionInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.Granularity == nil { - invalidParams.Add(request.NewErrParamRequired("Granularity")) - } - if s.Granularity != nil && len(*s.Granularity) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Granularity", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type EnableMetricsCollectionOutput struct { + metadataEnableMetricsCollectionOutput `json:"-" xml:"-"` } -type EnableMetricsCollectionOutput struct { - _ struct{} `type:"structure"` +type metadataEnableMetricsCollectionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4002,12 +3671,10 @@ func (s EnableMetricsCollectionOutput) GoString() string { // Describes an enabled metric. type EnabledMetric struct { - _ struct{} `type:"structure"` - // The granularity of the metric. The only valid value is 1Minute. - Granularity *string `min:"1" type:"string"` + Granularity *string `type:"string"` - // One of the following metrics: + // The name of the metric. // // GroupMinSize // @@ -4024,7 +3691,13 @@ type EnabledMetric struct { // GroupTerminatingInstances // // GroupTotalInstances - Metric *string `min:"1" type:"string"` + Metric *string `type:"string"` + + metadataEnabledMetric `json:"-" xml:"-"` +} + +type metadataEnabledMetric struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4038,10 +3711,8 @@ func (s EnabledMetric) GoString() string { } type EnterStandbyInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // One or more instances to move into Standby mode. You must specify at least // one instance ID. @@ -4052,6 +3723,12 @@ type EnterStandbyInput struct { // Auto Scaling group decrements by the number of instances moved to Standby // mode. ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"` + + metadataEnterStandbyInput `json:"-" xml:"-"` +} + +type metadataEnterStandbyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4064,30 +3741,15 @@ func (s EnterStandbyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnterStandbyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnterStandbyInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.ShouldDecrementDesiredCapacity == nil { - invalidParams.Add(request.NewErrParamRequired("ShouldDecrementDesiredCapacity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type EnterStandbyOutput struct { - _ struct{} `type:"structure"` - // The activities related to moving instances into Standby mode. Activities []*Activity `type:"list"` + + metadataEnterStandbyOutput `json:"-" xml:"-"` +} + +type metadataEnterStandbyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4101,10 +3763,8 @@ func (s EnterStandbyOutput) GoString() string { } type ExecutePolicyInput struct { - _ struct{} `type:"structure"` - // The name or Amazon Resource Name (ARN) of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // The breach threshold for the alarm. // @@ -4118,7 +3778,7 @@ type ExecutePolicyInput struct { // // This parameter is not supported if the policy type is StepScaling. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // For more information, see Understanding Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) // in the Auto Scaling Developer Guide. HonorCooldown *bool `type:"boolean"` @@ -4136,7 +3796,13 @@ type ExecutePolicyInput struct { MetricValue *float64 `type:"double"` // The name or ARN of the policy. - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` + + metadataExecutePolicyInput `json:"-" xml:"-"` +} + +type metadataExecutePolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4149,27 +3815,12 @@ func (s ExecutePolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ExecutePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ExecutePolicyInput"} - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ExecutePolicyOutput struct { + metadataExecutePolicyOutput `json:"-" xml:"-"` } -type ExecutePolicyOutput struct { - _ struct{} `type:"structure"` +type metadataExecutePolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4183,13 +3834,17 @@ func (s ExecutePolicyOutput) GoString() string { } type ExitStandbyInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // One or more instance IDs. You must specify at least one instance ID. InstanceIds []*string `type:"list"` + + metadataExitStandbyInput `json:"-" xml:"-"` +} + +type metadataExitStandbyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4202,27 +3857,15 @@ func (s ExitStandbyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ExitStandbyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ExitStandbyInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ExitStandbyOutput struct { - _ struct{} `type:"structure"` - // The activities related to moving instances out of Standby mode. Activities []*Activity `type:"list"` + + metadataExitStandbyOutput `json:"-" xml:"-"` +} + +type metadataExitStandbyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4237,14 +3880,18 @@ func (s ExitStandbyOutput) GoString() string { // Describes a filter. type Filter struct { - _ struct{} `type:"structure"` - // The name of the filter. The valid values are: "auto-scaling-group", "key", // "value", and "propagate-at-launch". Name *string `type:"string"` // The value of the filter. Values []*string `type:"list"` + + metadataFilter `json:"-" xml:"-"` +} + +type metadataFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4259,22 +3906,20 @@ func (s Filter) GoString() string { // Describes an Auto Scaling group. type Group struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the group. - AutoScalingGroupARN *string `min:"1" type:"string"` + AutoScalingGroupARN *string `type:"string"` // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // One or more Availability Zones for the group. - AvailabilityZones []*string `min:"1" type:"list" required:"true"` + AvailabilityZones []*string `type:"list" required:"true"` // The date and time the group was created. CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` - // The amount of time, in seconds, after a scaling activity completes before - // another scaling activity can start. + // The number of seconds after a scaling activity completes before any further + // scaling activities can start. DefaultCooldown *int64 `type:"integer" required:"true"` // The desired size of the group. @@ -4283,18 +3928,19 @@ type Group struct { // The metrics enabled for the group. EnabledMetrics []*EnabledMetric `type:"list"` - // The amount of time, in seconds, that Auto Scaling waits before checking the - // health status of an EC2 instance that has come into service. + // The amount of time that Auto Scaling waits before checking an instance's + // health status. The grace period begins when an instance comes into service. HealthCheckGracePeriod *int64 `type:"integer"` - // The service to use for the health checks. The valid values are EC2 and ELB. - HealthCheckType *string `min:"1" type:"string" required:"true"` + // The service of interest for the health status check, which can be either + // EC2 for Amazon EC2 or ELB for Elastic Load Balancing. + HealthCheckType *string `type:"string" required:"true"` // The EC2 instances associated with the group. Instances []*Instance `type:"list"` // The name of the associated launch configuration. - LaunchConfigurationName *string `min:"1" type:"string"` + LaunchConfigurationName *string `type:"string" required:"true"` // One or more load balancers associated with the group. LoadBalancerNames []*string `type:"list"` @@ -4305,17 +3951,12 @@ type Group struct { // The minimum size of the group. MinSize *int64 `type:"integer" required:"true"` - // Indicates whether newly launched instances are protected from termination - // by Auto Scaling when scaling in. - NewInstancesProtectedFromScaleIn *bool `type:"boolean"` - // The name of the placement group into which you'll launch your instances, - // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) - // in the Amazon Elastic Compute Cloud User Guide. - PlacementGroup *string `min:"1" type:"string"` + // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html). + PlacementGroup *string `type:"string"` // The current state of the group when DeleteAutoScalingGroup is in progress. - Status *string `min:"1" type:"string"` + Status *string `type:"string"` // The suspended processes associated with the group. SuspendedProcesses []*SuspendedProcess `type:"list"` @@ -4330,7 +3971,13 @@ type Group struct { // // If you specify VPCZoneIdentifier and AvailabilityZones, ensure that the // Availability Zones of the subnets match the values for AvailabilityZones. - VPCZoneIdentifier *string `min:"1" type:"string"` + VPCZoneIdentifier *string `type:"string"` + + metadataGroup `json:"-" xml:"-"` +} + +type metadataGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4345,29 +3992,27 @@ func (s Group) GoString() string { // Describes an EC2 instance. type Instance struct { - _ struct{} `type:"structure"` - // The Availability Zone in which the instance is running. - AvailabilityZone *string `min:"1" type:"string" required:"true"` + AvailabilityZone *string `type:"string" required:"true"` - // The health status of the instance. "Healthy" means that the instance is healthy - // and should remain in service. "Unhealthy" means that the instance is unhealthy - // and Auto Scaling should terminate and replace it. - HealthStatus *string `min:"1" type:"string" required:"true"` + // The health status of the instance. + HealthStatus *string `type:"string" required:"true"` // The ID of the instance. - InstanceId *string `min:"1" type:"string" required:"true"` + InstanceId *string `type:"string" required:"true"` // The launch configuration associated with the instance. - LaunchConfigurationName *string `min:"1" type:"string" required:"true"` + LaunchConfigurationName *string `type:"string" required:"true"` // A description of the current lifecycle state. Note that the Quarantined state // is not used. LifecycleState *string `type:"string" required:"true" enum:"LifecycleState"` - // Indicates whether the instance is protected from termination by Auto Scaling - // when scaling in. - ProtectedFromScaleIn *bool `type:"boolean" required:"true"` + metadataInstance `json:"-" xml:"-"` +} + +type metadataInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4382,33 +4027,33 @@ func (s Instance) GoString() string { // Describes an EC2 instance associated with an Auto Scaling group. type InstanceDetails struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group associated with the instance. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The Availability Zone for the instance. - AvailabilityZone *string `min:"1" type:"string" required:"true"` + AvailabilityZone *string `type:"string" required:"true"` // The health status of this instance. "Healthy" means that the instance is // healthy and should remain in service. "Unhealthy" means that the instance // is unhealthy and Auto Scaling should terminate and replace it. - HealthStatus *string `min:"1" type:"string" required:"true"` + HealthStatus *string `type:"string" required:"true"` // The ID of the instance. - InstanceId *string `min:"1" type:"string" required:"true"` + InstanceId *string `type:"string" required:"true"` // The launch configuration associated with the instance. - LaunchConfigurationName *string `min:"1" type:"string" required:"true"` + LaunchConfigurationName *string `type:"string" required:"true"` // The lifecycle state for the instance. For more information, see Auto Scaling - // Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) + // Instance States (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html#AutoScalingStates) // in the Auto Scaling Developer Guide. - LifecycleState *string `min:"1" type:"string" required:"true"` + LifecycleState *string `type:"string" required:"true"` - // Indicates whether the instance is protected from termination by Auto Scaling - // when scaling in. - ProtectedFromScaleIn *bool `type:"boolean" required:"true"` + metadataInstanceDetails `json:"-" xml:"-"` +} + +type metadataInstanceDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4423,10 +4068,14 @@ func (s InstanceDetails) GoString() string { // Describes whether instance monitoring is enabled. type InstanceMonitoring struct { - _ struct{} `type:"structure"` - // If True, instance monitoring is enabled. Enabled *bool `type:"boolean"` + + metadataInstanceMonitoring `json:"-" xml:"-"` +} + +type metadataInstanceMonitoring struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4441,9 +4090,8 @@ func (s InstanceMonitoring) GoString() string { // Describes a launch configuration. type LaunchConfiguration struct { - _ struct{} `type:"structure"` - - // [EC2-VPC] Indicates whether to assign a public IP address to each instance. + // Specifies whether the instances are associated with a public IP address (true) + // or not (false). AssociatePublicIpAddress *bool `type:"boolean"` // A block device mapping, which specifies the block devices for the instance. @@ -4453,11 +4101,11 @@ type LaunchConfiguration struct { // This parameter can only be used if you are launching EC2-Classic instances. // For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon Elastic Compute Cloud User Guide. - ClassicLinkVPCId *string `min:"1" type:"string"` + ClassicLinkVPCId *string `type:"string"` // The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId. - // This parameter is required if you specify a ClassicLink-enabled VPC, and - // cannot be used otherwise. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) + // This parameter is required if ClassicLinkVPCId is specified, and cannot be + // used otherwise. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon Elastic Compute Cloud User Guide. ClassicLinkVPCSecurityGroups []*string `type:"list"` @@ -4469,45 +4117,51 @@ type LaunchConfiguration struct { // The name or Amazon Resource Name (ARN) of the instance profile associated // with the IAM role for the instance. - IamInstanceProfile *string `min:"1" type:"string"` + IamInstanceProfile *string `type:"string"` // The ID of the Amazon Machine Image (AMI). - ImageId *string `min:"1" type:"string" required:"true"` + ImageId *string `type:"string" required:"true"` // Controls whether instances in this group are launched with detailed monitoring. InstanceMonitoring *InstanceMonitoring `type:"structure"` // The instance type for the instances. - InstanceType *string `min:"1" type:"string" required:"true"` + InstanceType *string `type:"string" required:"true"` // The ID of the kernel associated with the AMI. - KernelId *string `min:"1" type:"string"` + KernelId *string `type:"string"` // The name of the key pair. - KeyName *string `min:"1" type:"string"` + KeyName *string `type:"string"` // The Amazon Resource Name (ARN) of the launch configuration. - LaunchConfigurationARN *string `min:"1" type:"string"` + LaunchConfigurationARN *string `type:"string"` // The name of the launch configuration. - LaunchConfigurationName *string `min:"1" type:"string" required:"true"` + LaunchConfigurationName *string `type:"string" required:"true"` // The tenancy of the instance, either default or dedicated. An instance with // dedicated tenancy runs in an isolated, single-tenant hardware and can only // be launched into a VPC. - PlacementTenancy *string `min:"1" type:"string"` + PlacementTenancy *string `type:"string"` // The ID of the RAM disk associated with the AMI. - RamdiskId *string `min:"1" type:"string"` + RamdiskId *string `type:"string"` // The security groups to associate with the instances. SecurityGroups []*string `type:"list"` // The price to bid when launching Spot Instances. - SpotPrice *string `min:"1" type:"string"` + SpotPrice *string `type:"string"` // The user data available to the instances. UserData *string `type:"string"` + + metadataLaunchConfiguration `json:"-" xml:"-"` +} + +type metadataLaunchConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4526,31 +4180,30 @@ func (s LaunchConfiguration) GoString() string { // // Pause the instance after it launches, but before it is put into service // Pause the instance as it terminates, but before it is fully terminated For -// more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) +// more information, see Auto Scaling Pending State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingPendingState.html) +// and Auto Scaling Terminating State (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingTerminatingState.html) // in the Auto Scaling Developer Guide. type LifecycleHook struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group for the lifecycle hook. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // Defines the action the Auto Scaling group should take when the lifecycle // hook timeout elapses or if an unexpected failure occurs. The valid values // are CONTINUE and ABANDON. The default value is CONTINUE. DefaultResult *string `type:"string"` - // The maximum time, in seconds, that an instance can remain in a Pending:Wait - // or Terminating:Wait state. The default is 172800 seconds (48 hours). + // The maximum length of time an instance can remain in a Pending:Wait or Terminating:Wait + // state. Currently, the maximum is set to 48 hours. GlobalTimeout *int64 `type:"integer"` - // The maximum time, in seconds, that can elapse before the lifecycle hook times - // out. The default is 3600 seconds (1 hour). When the lifecycle hook times - // out, Auto Scaling performs the default action. You can prevent the lifecycle - // hook from timing out by calling RecordLifecycleActionHeartbeat. + // The amount of time that can elapse before the lifecycle hook times out. When + // the lifecycle hook times out, Auto Scaling performs the action defined in + // the DefaultResult parameter. You can prevent the lifecycle hook from timing + // out by calling RecordLifecycleActionHeartbeat. HeartbeatTimeout *int64 `type:"integer"` // The name of the lifecycle hook. - LifecycleHookName *string `min:"1" type:"string"` + LifecycleHookName *string `type:"string"` // The state of the EC2 instance to which you want to attach the lifecycle hook. // For a list of lifecycle hook types, see DescribeLifecycleHookTypes. @@ -4558,7 +4211,7 @@ type LifecycleHook struct { // Additional information that you want to include any time Auto Scaling sends // a message to the notification target. - NotificationMetadata *string `min:"1" type:"string"` + NotificationMetadata *string `type:"string"` // The ARN of the notification target that Auto Scaling uses to notify you when // an instance is in the transition state for the lifecycle hook. This ARN target @@ -4567,11 +4220,17 @@ type LifecycleHook struct { // // Lifecycle action token User account ID Name of the Auto Scaling group Lifecycle // hook name EC2 instance ID Lifecycle transition Notification metadata - NotificationTargetARN *string `min:"1" type:"string"` + NotificationTargetARN *string `type:"string"` // The ARN of the IAM role that allows the Auto Scaling group to publish to // the specified notification target. - RoleARN *string `min:"1" type:"string"` + RoleARN *string `type:"string"` + + metadataLifecycleHook `json:"-" xml:"-"` +} + +type metadataLifecycleHook struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4586,12 +4245,10 @@ func (s LifecycleHook) GoString() string { // Describes the state of a load balancer. type LoadBalancerState struct { - _ struct{} `type:"structure"` - // The name of the load balancer. - LoadBalancerName *string `min:"1" type:"string"` + LoadBalancerName *string `type:"string"` - // One of the following load balancer states: + // The state of the load balancer. // // Adding - The instances in the group are being registered with the load // balancer. @@ -4603,7 +4260,13 @@ type LoadBalancerState struct { // Removing - The instances are being deregistered from the load balancer. // If connection draining is enabled, Elastic Load Balancing waits for in-flight // requests to complete before deregistering the instances. - State *string `min:"1" type:"string"` + State *string `type:"string"` + + metadataLoadBalancerState `json:"-" xml:"-"` +} + +type metadataLoadBalancerState struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4618,9 +4281,7 @@ func (s LoadBalancerState) GoString() string { // Describes a metric. type MetricCollectionType struct { - _ struct{} `type:"structure"` - - // One of the following metrics: + // The metric. // // GroupMinSize // @@ -4637,7 +4298,13 @@ type MetricCollectionType struct { // GroupTerminatingInstances // // GroupTotalInstances - Metric *string `min:"1" type:"string"` + Metric *string `type:"string"` + + metadataMetricCollectionType `json:"-" xml:"-"` +} + +type metadataMetricCollectionType struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4652,10 +4319,14 @@ func (s MetricCollectionType) GoString() string { // Describes a granularity of a metric. type MetricGranularityType struct { - _ struct{} `type:"structure"` - // The granularity. The only valid value is 1Minute. - Granularity *string `min:"1" type:"string"` + Granularity *string `type:"string"` + + metadataMetricGranularityType `json:"-" xml:"-"` +} + +type metadataMetricGranularityType struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4670,12 +4341,10 @@ func (s MetricGranularityType) GoString() string { // Describes a notification. type NotificationConfiguration struct { - _ struct{} `type:"structure"` - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` - // One of the following event notification types: + // The types of events for an action to start. // // autoscaling:EC2_INSTANCE_LAUNCH // @@ -4686,11 +4355,17 @@ type NotificationConfiguration struct { // autoscaling:EC2_INSTANCE_TERMINATE_ERROR // // autoscaling:TEST_NOTIFICATION - NotificationType *string `min:"1" type:"string"` + NotificationType *string `type:"string"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (SNS) topic. - TopicARN *string `min:"1" type:"string"` + TopicARN *string `type:"string"` + + metadataNotificationConfiguration `json:"-" xml:"-"` +} + +type metadataNotificationConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4708,9 +4383,7 @@ func (s NotificationConfiguration) GoString() string { // For more information, see Auto Scaling Processes (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html#process-types) // in the Auto Scaling Developer Guide. type ProcessType struct { - _ struct{} `type:"structure"` - - // One of the following processes: + // The name of the process. // // Launch // @@ -4727,7 +4400,13 @@ type ProcessType struct { // ReplaceUnhealthy // // ScheduledActions - ProcessName *string `min:"1" type:"string" required:"true"` + ProcessName *string `type:"string" required:"true"` + + metadataProcessType `json:"-" xml:"-"` +} + +type metadataProcessType struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4741,25 +4420,25 @@ func (s ProcessType) GoString() string { } type PutLifecycleHookInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group to which you want to assign the lifecycle // hook. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // Defines the action the Auto Scaling group should take when the lifecycle - // hook timeout elapses or if an unexpected failure occurs. This parameter can - // be either CONTINUE or ABANDON. The default value is ABANDON. + // hook timeout elapses or if an unexpected failure occurs. The value for this + // parameter can be either CONTINUE or ABANDON. The default value for this parameter + // is ABANDON. DefaultResult *string `type:"string"` - // The amount of time, in seconds, that can elapse before the lifecycle hook - // times out. When the lifecycle hook times out, Auto Scaling performs the default - // action. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat. - // The default is 3600 seconds (1 hour). + // Defines the amount of time, in seconds, that can elapse before the lifecycle + // hook times out. When the lifecycle hook times out, Auto Scaling performs + // the action defined in the DefaultResult parameter. You can prevent the lifecycle + // hook from timing out by calling RecordLifecycleActionHeartbeat. The default + // value for this parameter is 3600 seconds (1 hour). HeartbeatTimeout *int64 `type:"integer"` // The name of the lifecycle hook. - LifecycleHookName *string `min:"1" type:"string" required:"true"` + LifecycleHookName *string `type:"string" required:"true"` // The instance state to which you want to attach the lifecycle hook. For a // list of lifecycle hook types, see DescribeLifecycleHookTypes. @@ -4770,26 +4449,27 @@ type PutLifecycleHookInput struct { // Contains additional information that you want to include any time Auto Scaling // sends a message to the notification target. - NotificationMetadata *string `min:"1" type:"string"` + NotificationMetadata *string `type:"string"` // The ARN of the notification target that Auto Scaling will use to notify you // when an instance is in the transition state for the lifecycle hook. This - // target can be either an SQS queue or an SNS topic. If you specify an empty - // string, this overrides the current ARN. + // ARN target can be either an SQS queue or an SNS topic. // - // The notification messages sent to the target include the following information: + // This parameter is required for new lifecycle hooks, but optional when updating + // existing hooks. // - // AutoScalingGroupName. The name of the Auto Scaling group. AccountId. The - // AWS account ID. LifecycleTransition. The lifecycle hook type. LifecycleActionToken. - // The lifecycle action token. EC2InstanceId. The EC2 instance ID. LifecycleHookName. - // The name of the lifecycle hook. NotificationMetadata. User-defined information. + // The notification message sent to the target will include: + // + // LifecycleActionToken. The Lifecycle action token. AccountId. The user + // account ID. AutoScalingGroupName. The name of the Auto Scaling group. LifecycleHookName. + // The lifecycle hook name. EC2InstanceId. The EC2 instance ID. LifecycleTransition. + // The lifecycle transition. NotificationMetadata. The notification metadata. // This operation uses the JSON format when sending notifications to an Amazon // SQS queue, and an email key/value pair format when sending notifications // to an Amazon SNS topic. // - // When you specify a notification target, Auto Scaling sends it a test message. - // Test messages contains the following additional key/value pair: "Event": - // "autoscaling:TEST_NOTIFICATION". + // When you call this operation, a test message is sent to the notification + // target. This test message contains an additional key/value pair: Event:autoscaling:TEST_NOTIFICATION. NotificationTargetARN *string `type:"string"` // The ARN of the IAM role that allows the Auto Scaling group to publish to @@ -4797,7 +4477,13 @@ type PutLifecycleHookInput struct { // // This parameter is required for new lifecycle hooks, but optional when updating // existing hooks. - RoleARN *string `min:"1" type:"string"` + RoleARN *string `type:"string"` + + metadataPutLifecycleHookInput `json:"-" xml:"-"` +} + +type metadataPutLifecycleHookInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4810,36 +4496,12 @@ func (s PutLifecycleHookInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutLifecycleHookInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutLifecycleHookInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.LifecycleHookName == nil { - invalidParams.Add(request.NewErrParamRequired("LifecycleHookName")) - } - if s.LifecycleHookName != nil && len(*s.LifecycleHookName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LifecycleHookName", 1)) - } - if s.NotificationMetadata != nil && len(*s.NotificationMetadata) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NotificationMetadata", 1)) - } - if s.RoleARN != nil && len(*s.RoleARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutLifecycleHookOutput struct { + metadataPutLifecycleHookOutput `json:"-" xml:"-"` } -type PutLifecycleHookOutput struct { - _ struct{} `type:"structure"` +type metadataPutLifecycleHookOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4853,10 +4515,8 @@ func (s PutLifecycleHookOutput) GoString() string { } type PutNotificationConfigurationInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The type of event that will cause the notification to be sent. For details // about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes. @@ -4864,7 +4524,13 @@ type PutNotificationConfigurationInput struct { // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (SNS) topic. - TopicARN *string `min:"1" type:"string" required:"true"` + TopicARN *string `type:"string" required:"true"` + + metadataPutNotificationConfigurationInput `json:"-" xml:"-"` +} + +type metadataPutNotificationConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4877,33 +4543,12 @@ func (s PutNotificationConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutNotificationConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutNotificationConfigurationInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.NotificationTypes == nil { - invalidParams.Add(request.NewErrParamRequired("NotificationTypes")) - } - if s.TopicARN == nil { - invalidParams.Add(request.NewErrParamRequired("TopicARN")) - } - if s.TopicARN != nil && len(*s.TopicARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TopicARN", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutNotificationConfigurationOutput struct { + metadataPutNotificationConfigurationOutput `json:"-" xml:"-"` } -type PutNotificationConfigurationOutput struct { - _ struct{} `type:"structure"` +type metadataPutNotificationConfigurationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4917,17 +4562,15 @@ func (s PutNotificationConfigurationOutput) GoString() string { } type PutScalingPolicyInput struct { - _ struct{} `type:"structure"` - // The adjustment type. Valid values are ChangeInCapacity, ExactCapacity, and // PercentChangeInCapacity. // // For more information, see Dynamic Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html) // in the Auto Scaling Developer Guide. - AdjustmentType *string `min:"1" type:"string" required:"true"` + AdjustmentType *string `type:"string" required:"true"` // The name or ARN of the group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The amount of time, in seconds, after a scaling activity completes and before // the next scaling activity can start. If this parameter is not specified, @@ -4935,7 +4578,7 @@ type PutScalingPolicyInput struct { // // This parameter is not supported unless the policy type is SimpleScaling. // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) + // For more information, see Understanding Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) // in the Auto Scaling Developer Guide. Cooldown *int64 `type:"integer"` @@ -4951,7 +4594,7 @@ type PutScalingPolicyInput struct { // as Average. // // This parameter is not supported if the policy type is SimpleScaling. - MetricAggregationType *string `min:"1" type:"string"` + MetricAggregationType *string `type:"string"` // The minimum number of instances to scale. If the value of AdjustmentType // is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity @@ -4960,14 +4603,14 @@ type PutScalingPolicyInput struct { MinAdjustmentMagnitude *int64 `type:"integer"` // Available for backward compatibility. Use MinAdjustmentMagnitude instead. - MinAdjustmentStep *int64 `deprecated:"true" type:"integer"` + MinAdjustmentStep *int64 `type:"integer"` // The name of the policy. - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` // The policy type. Valid values are SimpleScaling and StepScaling. If the policy // type is null, the value is treated as SimpleScaling. - PolicyType *string `min:"1" type:"string"` + PolicyType *string `type:"string"` // The amount by which to scale, based on the specified adjustment type. A positive // value adds to the current capacity while a negative number removes from the @@ -4983,6 +4626,12 @@ type PutScalingPolicyInput struct { // This parameter is required if the policy type is StepScaling and not supported // otherwise. StepAdjustments []*StepAdjustment `type:"list"` + + metadataPutScalingPolicyInput `json:"-" xml:"-"` +} + +type metadataPutScalingPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4995,55 +4644,15 @@ func (s PutScalingPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutScalingPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutScalingPolicyInput"} - if s.AdjustmentType == nil { - invalidParams.Add(request.NewErrParamRequired("AdjustmentType")) - } - if s.AdjustmentType != nil && len(*s.AdjustmentType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AdjustmentType", 1)) - } - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.MetricAggregationType != nil && len(*s.MetricAggregationType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MetricAggregationType", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.PolicyType != nil && len(*s.PolicyType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyType", 1)) - } - if s.StepAdjustments != nil { - for i, v := range s.StepAdjustments { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StepAdjustments", i), err.(request.ErrInvalidParams)) - } - } - } +type PutScalingPolicyOutput struct { + // The Amazon Resource Name (ARN) of the policy. + PolicyARN *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataPutScalingPolicyOutput `json:"-" xml:"-"` } -type PutScalingPolicyOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the policy. - PolicyARN *string `min:"1" type:"string"` +type metadataPutScalingPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5057,10 +4666,8 @@ func (s PutScalingPolicyOutput) GoString() string { } type PutScheduledUpdateGroupActionInput struct { - _ struct{} `type:"structure"` - // The name or Amazon Resource Name (ARN) of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The number of EC2 instances that should be running in the group. DesiredCapacity *int64 `type:"integer"` @@ -5080,10 +4687,10 @@ type PutScheduledUpdateGroupActionInput struct { // // When StartTime and EndTime are specified with Recurrence, they form the // boundaries of when the recurring action will start and stop. - Recurrence *string `min:"1" type:"string"` + Recurrence *string `type:"string"` // The name of this scaling action. - ScheduledActionName *string `min:"1" type:"string" required:"true"` + ScheduledActionName *string `type:"string" required:"true"` // The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT // only (for example, 2014-06-01T00:00:00Z). @@ -5095,8 +4702,17 @@ type PutScheduledUpdateGroupActionInput struct { // boundaries of when the recurring action starts and stops. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // This parameter is deprecated. + // This parameter is deprecated; use StartTime instead. + // + // The time for this action to start. If both Time and StartTime are specified, + // their values must be identical. Time *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataPutScheduledUpdateGroupActionInput `json:"-" xml:"-"` +} + +type metadataPutScheduledUpdateGroupActionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5109,33 +4725,12 @@ func (s PutScheduledUpdateGroupActionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutScheduledUpdateGroupActionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutScheduledUpdateGroupActionInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.Recurrence != nil && len(*s.Recurrence) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Recurrence", 1)) - } - if s.ScheduledActionName == nil { - invalidParams.Add(request.NewErrParamRequired("ScheduledActionName")) - } - if s.ScheduledActionName != nil && len(*s.ScheduledActionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ScheduledActionName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutScheduledUpdateGroupActionOutput struct { + metadataPutScheduledUpdateGroupActionOutput `json:"-" xml:"-"` } -type PutScheduledUpdateGroupActionOutput struct { - _ struct{} `type:"structure"` +type metadataPutScheduledUpdateGroupActionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5149,21 +4744,22 @@ func (s PutScheduledUpdateGroupActionOutput) GoString() string { } type RecordLifecycleActionHeartbeatInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group for the hook. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` - - // The ID of the instance. - InstanceId *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string" required:"true"` // A token that uniquely identifies a specific lifecycle action associated with // an instance. Auto Scaling sends this token to the notification target you // specified when you created the lifecycle hook. - LifecycleActionToken *string `min:"36" type:"string"` + LifecycleActionToken *string `type:"string" required:"true"` // The name of the lifecycle hook. - LifecycleHookName *string `min:"1" type:"string" required:"true"` + LifecycleHookName *string `type:"string" required:"true"` + + metadataRecordLifecycleActionHeartbeatInput `json:"-" xml:"-"` +} + +type metadataRecordLifecycleActionHeartbeatInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5176,36 +4772,12 @@ func (s RecordLifecycleActionHeartbeatInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RecordLifecycleActionHeartbeatInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RecordLifecycleActionHeartbeatInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.InstanceId != nil && len(*s.InstanceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) - } - if s.LifecycleActionToken != nil && len(*s.LifecycleActionToken) < 36 { - invalidParams.Add(request.NewErrParamMinLen("LifecycleActionToken", 36)) - } - if s.LifecycleHookName == nil { - invalidParams.Add(request.NewErrParamRequired("LifecycleHookName")) - } - if s.LifecycleHookName != nil && len(*s.LifecycleHookName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LifecycleHookName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RecordLifecycleActionHeartbeatOutput struct { + metadataRecordLifecycleActionHeartbeatOutput `json:"-" xml:"-"` } -type RecordLifecycleActionHeartbeatOutput struct { - _ struct{} `type:"structure"` +type metadataRecordLifecycleActionHeartbeatOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5219,7 +4791,11 @@ func (s RecordLifecycleActionHeartbeatOutput) GoString() string { } type ResumeProcessesOutput struct { - _ struct{} `type:"structure"` + metadataResumeProcessesOutput `json:"-" xml:"-"` +} + +type metadataResumeProcessesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5234,17 +4810,15 @@ func (s ResumeProcessesOutput) GoString() string { // Describes a scaling policy. type ScalingPolicy struct { - _ struct{} `type:"structure"` - // The adjustment type, which specifies how ScalingAdjustment is interpreted. // Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. - AdjustmentType *string `min:"1" type:"string"` + AdjustmentType *string `type:"string"` // The CloudWatch alarms related to the policy. Alarms []*Alarm `type:"list"` // The name of the Auto Scaling group associated with this scaling policy. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // The amount of time, in seconds, after a scaling activity completes before // any further trigger-related scaling activities can start. @@ -5256,7 +4830,7 @@ type ScalingPolicy struct { // The aggregation type for the CloudWatch metrics. Valid values are Minimum, // Maximum, and Average. - MetricAggregationType *string `min:"1" type:"string"` + MetricAggregationType *string `type:"string"` // The minimum number of instances to scale. If the value of AdjustmentType // is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity @@ -5265,16 +4839,16 @@ type ScalingPolicy struct { MinAdjustmentMagnitude *int64 `type:"integer"` // Available for backward compatibility. Use MinAdjustmentMagnitude instead. - MinAdjustmentStep *int64 `deprecated:"true" type:"integer"` + MinAdjustmentStep *int64 `type:"integer"` // The Amazon Resource Name (ARN) of the policy. - PolicyARN *string `min:"1" type:"string"` + PolicyARN *string `type:"string"` // The name of the scaling policy. - PolicyName *string `min:"1" type:"string"` + PolicyName *string `type:"string"` // The policy type. Valid values are SimpleScaling and StepScaling. - PolicyType *string `min:"1" type:"string"` + PolicyType *string `type:"string"` // The amount by which to scale, based on the specified adjustment type. A positive // value adds to the current capacity while a negative number removes from the @@ -5284,6 +4858,12 @@ type ScalingPolicy struct { // A set of adjustments that enable you to scale based on the size of the alarm // breach. StepAdjustments []*StepAdjustment `type:"list"` + + metadataScalingPolicy `json:"-" xml:"-"` +} + +type metadataScalingPolicy struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5297,10 +4877,8 @@ func (s ScalingPolicy) GoString() string { } type ScalingProcessQuery struct { - _ struct{} `type:"structure"` - // The name or Amazon Resource Name (ARN) of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // One or more of the following processes: // @@ -5320,6 +4898,12 @@ type ScalingProcessQuery struct { // // AddToLoadBalancer ScalingProcesses []*string `type:"list"` + + metadataScalingProcessQuery `json:"-" xml:"-"` +} + +type metadataScalingProcessQuery struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5332,28 +4916,10 @@ func (s ScalingProcessQuery) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ScalingProcessQuery) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ScalingProcessQuery"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a scheduled update to an Auto Scaling group. type ScheduledUpdateGroupAction struct { - _ struct{} `type:"structure"` - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string"` + AutoScalingGroupName *string `type:"string"` // The number of instances you prefer to maintain in the group. DesiredCapacity *int64 `type:"integer"` @@ -5369,13 +4935,13 @@ type ScheduledUpdateGroupAction struct { MinSize *int64 `type:"integer"` // The recurring schedule for the action. - Recurrence *string `min:"1" type:"string"` + Recurrence *string `type:"string"` // The Amazon Resource Name (ARN) of the scheduled action. - ScheduledActionARN *string `min:"1" type:"string"` + ScheduledActionARN *string `type:"string"` // The name of the scheduled action. - ScheduledActionName *string `min:"1" type:"string"` + ScheduledActionName *string `type:"string"` // The date and time that the action is scheduled to begin. This date and time // can be up to one month in the future. @@ -5384,8 +4950,14 @@ type ScheduledUpdateGroupAction struct { // boundaries of when the recurring action will start and stop. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // This parameter is deprecated. + // This parameter is deprecated; use StartTime instead. Time *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataScheduledUpdateGroupAction `json:"-" xml:"-"` +} + +type metadataScheduledUpdateGroupAction struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5399,10 +4971,8 @@ func (s ScheduledUpdateGroupAction) GoString() string { } type SetDesiredCapacityInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // The number of EC2 instances that should be running in the Auto Scaling group. DesiredCapacity *int64 `type:"integer" required:"true"` @@ -5412,6 +4982,12 @@ type SetDesiredCapacityInput struct { // cool-down period associated with the Auto Scaling group to complete before // initiating a scaling activity to set your Auto Scaling group to its new capacity. HonorCooldown *bool `type:"boolean"` + + metadataSetDesiredCapacityInput `json:"-" xml:"-"` +} + +type metadataSetDesiredCapacityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5424,27 +5000,12 @@ func (s SetDesiredCapacityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetDesiredCapacityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetDesiredCapacityInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.DesiredCapacity == nil { - invalidParams.Add(request.NewErrParamRequired("DesiredCapacity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetDesiredCapacityOutput struct { + metadataSetDesiredCapacityOutput `json:"-" xml:"-"` } -type SetDesiredCapacityOutput struct { - _ struct{} `type:"structure"` +type metadataSetDesiredCapacityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5458,24 +5019,28 @@ func (s SetDesiredCapacityOutput) GoString() string { } type SetInstanceHealthInput struct { - _ struct{} `type:"structure"` - // The health status of the instance. Set to Healthy if you want the instance // to remain in service. Set to Unhealthy if you want the instance to be out // of service. Auto Scaling will terminate and replace the unhealthy instance. - HealthStatus *string `min:"1" type:"string" required:"true"` + HealthStatus *string `type:"string" required:"true"` - // The ID of the instance. - InstanceId *string `min:"1" type:"string" required:"true"` + // The ID of the EC2 instance. + InstanceId *string `type:"string" required:"true"` // If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod // specified for the group, by default, this call will respect the grace period. // Set this to False, if you do not want the call to respect the grace period // associated with the group. // - // For more information, see the description of the health check grace period + // For more information, see the HealthCheckGracePeriod parameter description // for CreateAutoScalingGroup. ShouldRespectGracePeriod *bool `type:"boolean"` + + metadataSetInstanceHealthInput `json:"-" xml:"-"` +} + +type metadataSetInstanceHealthInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5488,30 +5053,12 @@ func (s SetInstanceHealthInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetInstanceHealthInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetInstanceHealthInput"} - if s.HealthStatus == nil { - invalidParams.Add(request.NewErrParamRequired("HealthStatus")) - } - if s.HealthStatus != nil && len(*s.HealthStatus) < 1 { - invalidParams.Add(request.NewErrParamMinLen("HealthStatus", 1)) - } - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.InstanceId != nil && len(*s.InstanceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetInstanceHealthOutput struct { + metadataSetInstanceHealthOutput `json:"-" xml:"-"` } -type SetInstanceHealthOutput struct { - _ struct{} `type:"structure"` +type metadataSetInstanceHealthOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5524,66 +5071,6 @@ func (s SetInstanceHealthOutput) GoString() string { return s.String() } -type SetInstanceProtectionInput struct { - _ struct{} `type:"structure"` - - // The name of the group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` - - // One or more instance IDs. - InstanceIds []*string `type:"list" required:"true"` - - // Indicates whether the instance is protected from termination by Auto Scaling - // when scaling in. - ProtectedFromScaleIn *bool `type:"boolean" required:"true"` -} - -// String returns the string representation -func (s SetInstanceProtectionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetInstanceProtectionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetInstanceProtectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetInstanceProtectionInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } - if s.ProtectedFromScaleIn == nil { - invalidParams.Add(request.NewErrParamRequired("ProtectedFromScaleIn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type SetInstanceProtectionOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s SetInstanceProtectionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetInstanceProtectionOutput) GoString() string { - return s.String() -} - // Describes an adjustment based on the difference between the value of the // aggregated CloudWatch metric and the breach threshold that you've defined // for the alarm. @@ -5613,8 +5100,6 @@ func (s SetInstanceProtectionOutput) GoString() string { // // The upper and lower bound can't be null in the same step adjustment. type StepAdjustment struct { - _ struct{} `type:"structure"` - // The lower bound for the difference between the alarm threshold and the CloudWatch // metric. If the metric value is above the breach threshold, the lower bound // is inclusive (the metric must be greater than or equal to the threshold plus @@ -5636,6 +5121,12 @@ type StepAdjustment struct { // value adds to the current capacity while a negative number removes from the // current capacity. ScalingAdjustment *int64 `type:"integer" required:"true"` + + metadataStepAdjustment `json:"-" xml:"-"` +} + +type metadataStepAdjustment struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5648,21 +5139,12 @@ func (s StepAdjustment) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StepAdjustment) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StepAdjustment"} - if s.ScalingAdjustment == nil { - invalidParams.Add(request.NewErrParamRequired("ScalingAdjustment")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SuspendProcessesOutput struct { + metadataSuspendProcessesOutput `json:"-" xml:"-"` } -type SuspendProcessesOutput struct { - _ struct{} `type:"structure"` +type metadataSuspendProcessesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5678,13 +5160,17 @@ func (s SuspendProcessesOutput) GoString() string { // Describes an Auto Scaling process that has been suspended. For more information, // see ProcessType. type SuspendedProcess struct { - _ struct{} `type:"structure"` - // The name of the suspended process. - ProcessName *string `min:"1" type:"string"` + ProcessName *string `type:"string"` // The reason that the process was suspended. - SuspensionReason *string `min:"1" type:"string"` + SuspensionReason *string `type:"string"` + + metadataSuspendedProcess `json:"-" xml:"-"` +} + +type metadataSuspendedProcess struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5699,10 +5185,8 @@ func (s SuspendedProcess) GoString() string { // Describes a tag for an Auto Scaling group. type Tag struct { - _ struct{} `type:"structure"` - // The tag key. - Key *string `min:"1" type:"string" required:"true"` + Key *string `type:"string" required:"true"` // Determines whether the tag is added to new instances as they are launched // in the group. @@ -5716,6 +5200,12 @@ type Tag struct { // The tag value. Value *string `type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5728,28 +5218,10 @@ func (s Tag) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a tag for an Auto Scaling group. type TagDescription struct { - _ struct{} `type:"structure"` - // The tag key. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // Determines whether the tag is added to new instances as they are launched // in the group. @@ -5763,6 +5235,12 @@ type TagDescription struct { // The tag value. Value *string `type:"string"` + + metadataTagDescription `json:"-" xml:"-"` +} + +type metadataTagDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5776,14 +5254,18 @@ func (s TagDescription) GoString() string { } type TerminateInstanceInAutoScalingGroupInput struct { - _ struct{} `type:"structure"` - - // The ID of the instance. - InstanceId *string `min:"1" type:"string" required:"true"` + // The ID of the EC2 instance. + InstanceId *string `type:"string" required:"true"` - // If true, terminating the instance also decrements the size of the Auto Scaling + // If true, terminating this instance also decrements the size of the Auto Scaling // group. ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"` + + metadataTerminateInstanceInAutoScalingGroupInput `json:"-" xml:"-"` +} + +type metadataTerminateInstanceInAutoScalingGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5796,30 +5278,15 @@ func (s TerminateInstanceInAutoScalingGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TerminateInstanceInAutoScalingGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TerminateInstanceInAutoScalingGroupInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.InstanceId != nil && len(*s.InstanceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) - } - if s.ShouldDecrementDesiredCapacity == nil { - invalidParams.Add(request.NewErrParamRequired("ShouldDecrementDesiredCapacity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type TerminateInstanceInAutoScalingGroupOutput struct { - _ struct{} `type:"structure"` - // A scaling activity. Activity *Activity `type:"structure"` + + metadataTerminateInstanceInAutoScalingGroupOutput `json:"-" xml:"-"` +} + +type metadataTerminateInstanceInAutoScalingGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5833,19 +5300,15 @@ func (s TerminateInstanceInAutoScalingGroupOutput) GoString() string { } type UpdateAutoScalingGroupInput struct { - _ struct{} `type:"structure"` - // The name of the Auto Scaling group. - AutoScalingGroupName *string `min:"1" type:"string" required:"true"` + AutoScalingGroupName *string `type:"string" required:"true"` // One or more Availability Zones for the group. - AvailabilityZones []*string `min:"1" type:"list"` + AvailabilityZones []*string `type:"list"` // The amount of time, in seconds, after a scaling activity completes before - // another scaling activity can start. The default is 300. - // - // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html) - // in the Auto Scaling Developer Guide. + // another scaling activity can start. For more information, see Understanding + // Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html). DefaultCooldown *int64 `type:"integer"` // The number of EC2 instances that should be running in the Auto Scaling group. @@ -5854,18 +5317,18 @@ type UpdateAutoScalingGroupInput struct { DesiredCapacity *int64 `type:"integer"` // The amount of time, in seconds, that Auto Scaling waits before checking the - // health status of an EC2 instance that has come into service. The default - // is 300. - // - // For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) - // in the Auto Scaling Developer Guide. + // health status of an instance. The grace period begins when the instance passes + // the system status and instance status checks from Amazon EC2. For more information, + // see . HealthCheckGracePeriod *int64 `type:"integer"` - // The service to use for the health checks. The valid values are EC2 and ELB. - HealthCheckType *string `min:"1" type:"string"` + // The type of health check for the instances in the Auto Scaling group. The + // health check type can either be EC2 for Amazon EC2 or ELB for Elastic Load + // Balancing. + HealthCheckType *string `type:"string"` // The name of the launch configuration. - LaunchConfigurationName *string `min:"1" type:"string"` + LaunchConfigurationName *string `type:"string"` // The maximum size of the Auto Scaling group. MaxSize *int64 `type:"integer"` @@ -5873,21 +5336,16 @@ type UpdateAutoScalingGroupInput struct { // The minimum size of the Auto Scaling group. MinSize *int64 `type:"integer"` - // Indicates whether newly launched instances are protected from termination - // by Auto Scaling when scaling in. - NewInstancesProtectedFromScaleIn *bool `type:"boolean"` - // The name of the placement group into which you'll launch your instances, - // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) - // in the Amazon Elastic Compute Cloud User Guide. - PlacementGroup *string `min:"1" type:"string"` + // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html). + PlacementGroup *string `type:"string"` // A standalone termination policy or a list of termination policies used to // select the instance to terminate. The policies are executed in the order // that they are listed. // - // For more information, see Controlling Which Instances Auto Scaling Terminates - // During Scale In (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html) + // For more information, see Choosing a Termination Policy for Your Auto Scaling + // Group (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-termination-policy.html) // in the Auto Scaling Developer Guide. TerminationPolicies []*string `type:"list"` @@ -5897,9 +5355,16 @@ type UpdateAutoScalingGroupInput struct { // When you specify VPCZoneIdentifier with AvailabilityZones, ensure that the // subnets' Availability Zones match the values you specify for AvailabilityZones. // - // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html) + // For more information, see Auto Scaling and Amazon Virtual Private Cloud + // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/autoscalingsubnets.html) // in the Auto Scaling Developer Guide. - VPCZoneIdentifier *string `min:"1" type:"string"` + VPCZoneIdentifier *string `type:"string"` + + metadataUpdateAutoScalingGroupInput `json:"-" xml:"-"` +} + +type metadataUpdateAutoScalingGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5912,39 +5377,12 @@ func (s UpdateAutoScalingGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAutoScalingGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAutoScalingGroupInput"} - if s.AutoScalingGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName")) - } - if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1)) - } - if s.AvailabilityZones != nil && len(s.AvailabilityZones) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AvailabilityZones", 1)) - } - if s.HealthCheckType != nil && len(*s.HealthCheckType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("HealthCheckType", 1)) - } - if s.LaunchConfigurationName != nil && len(*s.LaunchConfigurationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LaunchConfigurationName", 1)) - } - if s.PlacementGroup != nil && len(*s.PlacementGroup) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PlacementGroup", 1)) - } - if s.VPCZoneIdentifier != nil && len(*s.VPCZoneIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VPCZoneIdentifier", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateAutoScalingGroupOutput struct { + metadataUpdateAutoScalingGroupOutput `json:"-" xml:"-"` } -type UpdateAutoScalingGroupOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateAutoScalingGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5987,8 +5425,6 @@ const ( ) const ( - // @enum ScalingActivityStatusCode - ScalingActivityStatusCodePendingSpotBidPlacement = "PendingSpotBidPlacement" // @enum ScalingActivityStatusCode ScalingActivityStatusCodeWaitingForSpotInstanceRequestId = "WaitingForSpotInstanceRequestId" // @enum ScalingActivityStatusCode diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go index 5f9ed8e60..2de4f9e7e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go @@ -206,10 +206,6 @@ type AutoScalingAPI interface { SetInstanceHealth(*autoscaling.SetInstanceHealthInput) (*autoscaling.SetInstanceHealthOutput, error) - SetInstanceProtectionRequest(*autoscaling.SetInstanceProtectionInput) (*request.Request, *autoscaling.SetInstanceProtectionOutput) - - SetInstanceProtection(*autoscaling.SetInstanceProtectionInput) (*autoscaling.SetInstanceProtectionOutput, error) - SuspendProcessesRequest(*autoscaling.ScalingProcessQuery) (*request.Request, *autoscaling.SuspendProcessesOutput) SuspendProcesses(*autoscaling.ScalingProcessQuery) (*autoscaling.SuspendProcessesOutput, error) @@ -222,5 +218,3 @@ type AutoScalingAPI interface { UpdateAutoScalingGroup(*autoscaling.UpdateAutoScalingGroupInput) (*autoscaling.UpdateAutoScalingGroupOutput, error) } - -var _ AutoScalingAPI = (*autoscaling.AutoScaling)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface_test.go new file mode 100644 index 000000000..0c36b19cc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package autoscalingiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/autoscaling" + "github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*autoscalingiface.AutoScalingAPI)(nil), autoscaling.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go index 24b9ee9a8..bdcac9be0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/autoscaling" ) @@ -16,12 +15,12 @@ var _ time.Duration var _ bytes.Buffer func ExampleAutoScaling_AttachInstances() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.AttachInstancesInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required InstanceIds: []*string{ - aws.String("XmlStringMaxLen19"), // Required + aws.String("XmlStringMaxLen16"), // Required // More values... }, } @@ -39,7 +38,7 @@ func ExampleAutoScaling_AttachInstances() { } func ExampleAutoScaling_AttachLoadBalancers() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.AttachLoadBalancersInput{ AutoScalingGroupName: aws.String("ResourceName"), @@ -62,14 +61,13 @@ func ExampleAutoScaling_AttachLoadBalancers() { } func ExampleAutoScaling_CompleteLifecycleAction() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.CompleteLifecycleActionInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required LifecycleActionResult: aws.String("LifecycleActionResult"), // Required + LifecycleActionToken: aws.String("LifecycleActionToken"), // Required LifecycleHookName: aws.String("AsciiStringMaxLen255"), // Required - InstanceId: aws.String("XmlStringMaxLen19"), - LifecycleActionToken: aws.String("LifecycleActionToken"), } resp, err := svc.CompleteLifecycleAction(params) @@ -85,7 +83,7 @@ func ExampleAutoScaling_CompleteLifecycleAction() { } func ExampleAutoScaling_CreateAutoScalingGroup() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.CreateAutoScalingGroupInput{ AutoScalingGroupName: aws.String("XmlStringMaxLen255"), // Required @@ -99,14 +97,13 @@ func ExampleAutoScaling_CreateAutoScalingGroup() { DesiredCapacity: aws.Int64(1), HealthCheckGracePeriod: aws.Int64(1), HealthCheckType: aws.String("XmlStringMaxLen32"), - InstanceId: aws.String("XmlStringMaxLen19"), + InstanceId: aws.String("XmlStringMaxLen16"), LaunchConfigurationName: aws.String("ResourceName"), LoadBalancerNames: []*string{ aws.String("XmlStringMaxLen255"), // Required // More values... }, - NewInstancesProtectedFromScaleIn: aws.Bool(true), - PlacementGroup: aws.String("XmlStringMaxLen255"), + PlacementGroup: aws.String("XmlStringMaxLen255"), Tags: []*autoscaling.Tag{ { // Required Key: aws.String("TagKey"), // Required @@ -137,7 +134,7 @@ func ExampleAutoScaling_CreateAutoScalingGroup() { } func ExampleAutoScaling_CreateLaunchConfiguration() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.CreateLaunchConfigurationInput{ LaunchConfigurationName: aws.String("XmlStringMaxLen255"), // Required @@ -147,7 +144,6 @@ func ExampleAutoScaling_CreateLaunchConfiguration() { DeviceName: aws.String("XmlStringMaxLen255"), // Required Ebs: &autoscaling.Ebs{ DeleteOnTermination: aws.Bool(true), - Encrypted: aws.Bool(true), Iops: aws.Int64(1), SnapshotId: aws.String("XmlStringMaxLen255"), VolumeSize: aws.Int64(1), @@ -166,7 +162,7 @@ func ExampleAutoScaling_CreateLaunchConfiguration() { EbsOptimized: aws.Bool(true), IamInstanceProfile: aws.String("XmlStringMaxLen1600"), ImageId: aws.String("XmlStringMaxLen255"), - InstanceId: aws.String("XmlStringMaxLen19"), + InstanceId: aws.String("XmlStringMaxLen16"), InstanceMonitoring: &autoscaling.InstanceMonitoring{ Enabled: aws.Bool(true), }, @@ -196,7 +192,7 @@ func ExampleAutoScaling_CreateLaunchConfiguration() { } func ExampleAutoScaling_CreateOrUpdateTags() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.CreateOrUpdateTagsInput{ Tags: []*autoscaling.Tag{ // Required @@ -224,7 +220,7 @@ func ExampleAutoScaling_CreateOrUpdateTags() { } func ExampleAutoScaling_DeleteAutoScalingGroup() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DeleteAutoScalingGroupInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -244,7 +240,7 @@ func ExampleAutoScaling_DeleteAutoScalingGroup() { } func ExampleAutoScaling_DeleteLaunchConfiguration() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DeleteLaunchConfigurationInput{ LaunchConfigurationName: aws.String("ResourceName"), // Required @@ -263,7 +259,7 @@ func ExampleAutoScaling_DeleteLaunchConfiguration() { } func ExampleAutoScaling_DeleteLifecycleHook() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DeleteLifecycleHookInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -283,7 +279,7 @@ func ExampleAutoScaling_DeleteLifecycleHook() { } func ExampleAutoScaling_DeleteNotificationConfiguration() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DeleteNotificationConfigurationInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -303,7 +299,7 @@ func ExampleAutoScaling_DeleteNotificationConfiguration() { } func ExampleAutoScaling_DeletePolicy() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DeletePolicyInput{ PolicyName: aws.String("ResourceName"), // Required @@ -323,7 +319,7 @@ func ExampleAutoScaling_DeletePolicy() { } func ExampleAutoScaling_DeleteScheduledAction() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DeleteScheduledActionInput{ ScheduledActionName: aws.String("ResourceName"), // Required @@ -343,7 +339,7 @@ func ExampleAutoScaling_DeleteScheduledAction() { } func ExampleAutoScaling_DeleteTags() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DeleteTagsInput{ Tags: []*autoscaling.Tag{ // Required @@ -371,7 +367,7 @@ func ExampleAutoScaling_DeleteTags() { } func ExampleAutoScaling_DescribeAccountLimits() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) var params *autoscaling.DescribeAccountLimitsInput resp, err := svc.DescribeAccountLimits(params) @@ -388,7 +384,7 @@ func ExampleAutoScaling_DescribeAccountLimits() { } func ExampleAutoScaling_DescribeAdjustmentTypes() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) var params *autoscaling.DescribeAdjustmentTypesInput resp, err := svc.DescribeAdjustmentTypes(params) @@ -405,7 +401,7 @@ func ExampleAutoScaling_DescribeAdjustmentTypes() { } func ExampleAutoScaling_DescribeAutoScalingGroups() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DescribeAutoScalingGroupsInput{ AutoScalingGroupNames: []*string{ @@ -429,11 +425,11 @@ func ExampleAutoScaling_DescribeAutoScalingGroups() { } func ExampleAutoScaling_DescribeAutoScalingInstances() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DescribeAutoScalingInstancesInput{ InstanceIds: []*string{ - aws.String("XmlStringMaxLen19"), // Required + aws.String("XmlStringMaxLen16"), // Required // More values... }, MaxRecords: aws.Int64(1), @@ -453,7 +449,7 @@ func ExampleAutoScaling_DescribeAutoScalingInstances() { } func ExampleAutoScaling_DescribeAutoScalingNotificationTypes() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) var params *autoscaling.DescribeAutoScalingNotificationTypesInput resp, err := svc.DescribeAutoScalingNotificationTypes(params) @@ -470,7 +466,7 @@ func ExampleAutoScaling_DescribeAutoScalingNotificationTypes() { } func ExampleAutoScaling_DescribeLaunchConfigurations() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DescribeLaunchConfigurationsInput{ LaunchConfigurationNames: []*string{ @@ -494,7 +490,7 @@ func ExampleAutoScaling_DescribeLaunchConfigurations() { } func ExampleAutoScaling_DescribeLifecycleHookTypes() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) var params *autoscaling.DescribeLifecycleHookTypesInput resp, err := svc.DescribeLifecycleHookTypes(params) @@ -511,7 +507,7 @@ func ExampleAutoScaling_DescribeLifecycleHookTypes() { } func ExampleAutoScaling_DescribeLifecycleHooks() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DescribeLifecycleHooksInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -534,7 +530,7 @@ func ExampleAutoScaling_DescribeLifecycleHooks() { } func ExampleAutoScaling_DescribeLoadBalancers() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DescribeLoadBalancersInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -555,7 +551,7 @@ func ExampleAutoScaling_DescribeLoadBalancers() { } func ExampleAutoScaling_DescribeMetricCollectionTypes() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) var params *autoscaling.DescribeMetricCollectionTypesInput resp, err := svc.DescribeMetricCollectionTypes(params) @@ -572,7 +568,7 @@ func ExampleAutoScaling_DescribeMetricCollectionTypes() { } func ExampleAutoScaling_DescribeNotificationConfigurations() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DescribeNotificationConfigurationsInput{ AutoScalingGroupNames: []*string{ @@ -596,7 +592,7 @@ func ExampleAutoScaling_DescribeNotificationConfigurations() { } func ExampleAutoScaling_DescribePolicies() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DescribePoliciesInput{ AutoScalingGroupName: aws.String("ResourceName"), @@ -625,7 +621,7 @@ func ExampleAutoScaling_DescribePolicies() { } func ExampleAutoScaling_DescribeScalingActivities() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DescribeScalingActivitiesInput{ ActivityIds: []*string{ @@ -650,7 +646,7 @@ func ExampleAutoScaling_DescribeScalingActivities() { } func ExampleAutoScaling_DescribeScalingProcessTypes() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) var params *autoscaling.DescribeScalingProcessTypesInput resp, err := svc.DescribeScalingProcessTypes(params) @@ -667,7 +663,7 @@ func ExampleAutoScaling_DescribeScalingProcessTypes() { } func ExampleAutoScaling_DescribeScheduledActions() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DescribeScheduledActionsInput{ AutoScalingGroupName: aws.String("ResourceName"), @@ -694,7 +690,7 @@ func ExampleAutoScaling_DescribeScheduledActions() { } func ExampleAutoScaling_DescribeTags() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DescribeTagsInput{ Filters: []*autoscaling.Filter{ @@ -724,7 +720,7 @@ func ExampleAutoScaling_DescribeTags() { } func ExampleAutoScaling_DescribeTerminationPolicyTypes() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) var params *autoscaling.DescribeTerminationPolicyTypesInput resp, err := svc.DescribeTerminationPolicyTypes(params) @@ -741,13 +737,13 @@ func ExampleAutoScaling_DescribeTerminationPolicyTypes() { } func ExampleAutoScaling_DetachInstances() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DetachInstancesInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required ShouldDecrementDesiredCapacity: aws.Bool(true), // Required InstanceIds: []*string{ - aws.String("XmlStringMaxLen19"), // Required + aws.String("XmlStringMaxLen16"), // Required // More values... }, } @@ -765,7 +761,7 @@ func ExampleAutoScaling_DetachInstances() { } func ExampleAutoScaling_DetachLoadBalancers() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DetachLoadBalancersInput{ AutoScalingGroupName: aws.String("ResourceName"), @@ -788,7 +784,7 @@ func ExampleAutoScaling_DetachLoadBalancers() { } func ExampleAutoScaling_DisableMetricsCollection() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.DisableMetricsCollectionInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -811,7 +807,7 @@ func ExampleAutoScaling_DisableMetricsCollection() { } func ExampleAutoScaling_EnableMetricsCollection() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.EnableMetricsCollectionInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -835,13 +831,13 @@ func ExampleAutoScaling_EnableMetricsCollection() { } func ExampleAutoScaling_EnterStandby() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.EnterStandbyInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required ShouldDecrementDesiredCapacity: aws.Bool(true), // Required InstanceIds: []*string{ - aws.String("XmlStringMaxLen19"), // Required + aws.String("XmlStringMaxLen16"), // Required // More values... }, } @@ -859,7 +855,7 @@ func ExampleAutoScaling_EnterStandby() { } func ExampleAutoScaling_ExecutePolicy() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.ExecutePolicyInput{ PolicyName: aws.String("ResourceName"), // Required @@ -882,12 +878,12 @@ func ExampleAutoScaling_ExecutePolicy() { } func ExampleAutoScaling_ExitStandby() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.ExitStandbyInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required InstanceIds: []*string{ - aws.String("XmlStringMaxLen19"), // Required + aws.String("XmlStringMaxLen16"), // Required // More values... }, } @@ -905,7 +901,7 @@ func ExampleAutoScaling_ExitStandby() { } func ExampleAutoScaling_PutLifecycleHook() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.PutLifecycleHookInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -914,7 +910,7 @@ func ExampleAutoScaling_PutLifecycleHook() { HeartbeatTimeout: aws.Int64(1), LifecycleTransition: aws.String("LifecycleTransition"), NotificationMetadata: aws.String("XmlStringMaxLen1023"), - NotificationTargetARN: aws.String("NotificationTargetResourceName"), + NotificationTargetARN: aws.String("ResourceName"), RoleARN: aws.String("ResourceName"), } resp, err := svc.PutLifecycleHook(params) @@ -931,7 +927,7 @@ func ExampleAutoScaling_PutLifecycleHook() { } func ExampleAutoScaling_PutNotificationConfiguration() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.PutNotificationConfigurationInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -955,7 +951,7 @@ func ExampleAutoScaling_PutNotificationConfiguration() { } func ExampleAutoScaling_PutScalingPolicy() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.PutScalingPolicyInput{ AdjustmentType: aws.String("XmlStringMaxLen255"), // Required @@ -991,7 +987,7 @@ func ExampleAutoScaling_PutScalingPolicy() { } func ExampleAutoScaling_PutScheduledUpdateGroupAction() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.PutScheduledUpdateGroupActionInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -1018,13 +1014,12 @@ func ExampleAutoScaling_PutScheduledUpdateGroupAction() { } func ExampleAutoScaling_RecordLifecycleActionHeartbeat() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.RecordLifecycleActionHeartbeatInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required + LifecycleActionToken: aws.String("LifecycleActionToken"), // Required LifecycleHookName: aws.String("AsciiStringMaxLen255"), // Required - InstanceId: aws.String("XmlStringMaxLen19"), - LifecycleActionToken: aws.String("LifecycleActionToken"), } resp, err := svc.RecordLifecycleActionHeartbeat(params) @@ -1040,7 +1035,7 @@ func ExampleAutoScaling_RecordLifecycleActionHeartbeat() { } func ExampleAutoScaling_ResumeProcesses() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.ScalingProcessQuery{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -1063,7 +1058,7 @@ func ExampleAutoScaling_ResumeProcesses() { } func ExampleAutoScaling_SetDesiredCapacity() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.SetDesiredCapacityInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -1084,11 +1079,11 @@ func ExampleAutoScaling_SetDesiredCapacity() { } func ExampleAutoScaling_SetInstanceHealth() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.SetInstanceHealthInput{ HealthStatus: aws.String("XmlStringMaxLen32"), // Required - InstanceId: aws.String("XmlStringMaxLen19"), // Required + InstanceId: aws.String("XmlStringMaxLen16"), // Required ShouldRespectGracePeriod: aws.Bool(true), } resp, err := svc.SetInstanceHealth(params) @@ -1104,32 +1099,8 @@ func ExampleAutoScaling_SetInstanceHealth() { fmt.Println(resp) } -func ExampleAutoScaling_SetInstanceProtection() { - svc := autoscaling.New(session.New()) - - params := &autoscaling.SetInstanceProtectionInput{ - AutoScalingGroupName: aws.String("ResourceName"), // Required - InstanceIds: []*string{ // Required - aws.String("XmlStringMaxLen19"), // Required - // More values... - }, - ProtectedFromScaleIn: aws.Bool(true), // Required - } - resp, err := svc.SetInstanceProtection(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleAutoScaling_SuspendProcesses() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.ScalingProcessQuery{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -1152,10 +1123,10 @@ func ExampleAutoScaling_SuspendProcesses() { } func ExampleAutoScaling_TerminateInstanceInAutoScalingGroup() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.TerminateInstanceInAutoScalingGroupInput{ - InstanceId: aws.String("XmlStringMaxLen19"), // Required + InstanceId: aws.String("XmlStringMaxLen16"), // Required ShouldDecrementDesiredCapacity: aws.Bool(true), // Required } resp, err := svc.TerminateInstanceInAutoScalingGroup(params) @@ -1172,7 +1143,7 @@ func ExampleAutoScaling_TerminateInstanceInAutoScalingGroup() { } func ExampleAutoScaling_UpdateAutoScalingGroup() { - svc := autoscaling.New(session.New()) + svc := autoscaling.New(nil) params := &autoscaling.UpdateAutoScalingGroupInput{ AutoScalingGroupName: aws.String("ResourceName"), // Required @@ -1187,8 +1158,7 @@ func ExampleAutoScaling_UpdateAutoScalingGroup() { LaunchConfigurationName: aws.String("ResourceName"), MaxSize: aws.Int64(1), MinSize: aws.Int64(1), - NewInstancesProtectedFromScaleIn: aws.Bool(true), - PlacementGroup: aws.String("XmlStringMaxLen255"), + PlacementGroup: aws.String("XmlStringMaxLen255"), TerminationPolicies: []*string{ aws.String("XmlStringMaxLen1600"), // Required // More values... diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/service.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/service.go index bb58f66ed..d17015ad7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/service.go @@ -4,74 +4,51 @@ package autoscaling import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Auto Scaling is designed to automatically launch or terminate EC2 instances // based on user-defined policies, schedules, and health checks. Use this service // in conjunction with the Amazon CloudWatch and Elastic Load Balancing services. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type AutoScaling struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "autoscaling" - -// New creates a new instance of the AutoScaling client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a AutoScaling client from just a session. -// svc := autoscaling.New(mySession) -// -// // Create a AutoScaling client with additional configuration -// svc := autoscaling.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *AutoScaling { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *AutoScaling { - svc := &AutoScaling{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2011-01-01", - }, - handlers, - ), +// New returns a new AutoScaling client. +func New(config *aws.Config) *AutoScaling { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "autoscaling", + APIVersion: "2011-01-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &AutoScaling{service} } // newRequest creates a new request for a AutoScaling operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/waiters.go deleted file mode 100644 index 42595d217..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/waiters.go +++ /dev/null @@ -1,94 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package autoscaling - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *AutoScaling) WaitUntilGroupExists(input *DescribeAutoScalingGroupsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeAutoScalingGroups", - Delay: 5, - MaxAttempts: 10, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "length(AutoScalingGroups) > `0`", - Expected: true, - }, - { - State: "retry", - Matcher: "path", - Argument: "length(AutoScalingGroups) > `0`", - Expected: false, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *AutoScaling) WaitUntilGroupInService(input *DescribeAutoScalingGroupsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeAutoScalingGroups", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)", - Expected: false, - }, - { - State: "retry", - Matcher: "path", - Argument: "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)", - Expected: true, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *AutoScaling) WaitUntilGroupNotExists(input *DescribeAutoScalingGroupsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeAutoScalingGroups", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "length(AutoScalingGroups) > `0`", - Expected: false, - }, - { - State: "retry", - Matcher: "path", - Argument: "length(AutoScalingGroups) > `0`", - Expected: true, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go index ca1a44ae0..44ae4c11c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go @@ -8,8 +8,6 @@ import ( "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/private/protocol/query" ) const opCancelUpdateStack = "CancelUpdateStack" @@ -27,102 +25,21 @@ func (c *CloudFormation) CancelUpdateStackRequest(input *CancelUpdateStackInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CancelUpdateStackOutput{} req.Data = output return } // Cancels an update on the specified stack. If the call completes successfully, -// the stack rolls back the update and reverts to the previous stack configuration. +// the stack will roll back the update and revert to the previous stack configuration. // -// You can cancel only stacks that are in the UPDATE_IN_PROGRESS state. +// Only stacks that are in the UPDATE_IN_PROGRESS state can be canceled. func (c *CloudFormation) CancelUpdateStack(input *CancelUpdateStackInput) (*CancelUpdateStackOutput, error) { req, out := c.CancelUpdateStackRequest(input) err := req.Send() return out, err } -const opContinueUpdateRollback = "ContinueUpdateRollback" - -// ContinueUpdateRollbackRequest generates a request for the ContinueUpdateRollback operation. -func (c *CloudFormation) ContinueUpdateRollbackRequest(input *ContinueUpdateRollbackInput) (req *request.Request, output *ContinueUpdateRollbackOutput) { - op := &request.Operation{ - Name: opContinueUpdateRollback, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ContinueUpdateRollbackInput{} - } - - req = c.newRequest(op, input, output) - output = &ContinueUpdateRollbackOutput{} - req.Data = output - return -} - -// For a specified stack that is in the UPDATE_ROLLBACK_FAILED state, continues -// rolling it back to the UPDATE_ROLLBACK_COMPLETE state. Depending on the cause -// of the failure, you can manually fix the error (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed) -// and continue the rollback. By continuing the rollback, you can return your -// stack to a working state (the UPDATE_ROLLBACK_COMPLETE state), and then try -// to update the stack again. -// -// A stack goes into the UPDATE_ROLLBACK_FAILED state when AWS CloudFormation -// cannot roll back all changes after a failed stack update. For example, you -// might have a stack that is rolling back to an old database instance that -// was deleted outside of AWS CloudFormation. Because AWS CloudFormation doesn't -// know the database was deleted, it assumes that the database instance still -// exists and attempts to roll back to it, causing the update rollback to fail. -func (c *CloudFormation) ContinueUpdateRollback(input *ContinueUpdateRollbackInput) (*ContinueUpdateRollbackOutput, error) { - req, out := c.ContinueUpdateRollbackRequest(input) - err := req.Send() - return out, err -} - -const opCreateChangeSet = "CreateChangeSet" - -// CreateChangeSetRequest generates a request for the CreateChangeSet operation. -func (c *CloudFormation) CreateChangeSetRequest(input *CreateChangeSetInput) (req *request.Request, output *CreateChangeSetOutput) { - op := &request.Operation{ - Name: opCreateChangeSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateChangeSetInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateChangeSetOutput{} - req.Data = output - return -} - -// Creates a list of changes for a stack. AWS CloudFormation generates the change -// set by comparing the stack's information with the information that you submit. -// A change set can help you understand which resources AWS CloudFormation will -// change and how it will change them before you update your stack. Change sets -// allow you to check before you make a change so that you don't delete or replace -// critical resources. -// -// AWS CloudFormation doesn't make any changes to the stack when you create -// a change set. To make the specified changes, you must execute the change -// set by using the ExecuteChangeSet action. -// -// After the call successfully completes, AWS CloudFormation starts creating -// the change set. To check the status of the change set, use the DescribeChangeSet -// action. -func (c *CloudFormation) CreateChangeSet(input *CreateChangeSetInput) (*CreateChangeSetOutput, error) { - req, out := c.CreateChangeSetRequest(input) - err := req.Send() - return out, err -} - const opCreateStack = "CreateStack" // CreateStackRequest generates a request for the CreateStack operation. @@ -152,37 +69,6 @@ func (c *CloudFormation) CreateStack(input *CreateStackInput) (*CreateStackOutpu return out, err } -const opDeleteChangeSet = "DeleteChangeSet" - -// DeleteChangeSetRequest generates a request for the DeleteChangeSet operation. -func (c *CloudFormation) DeleteChangeSetRequest(input *DeleteChangeSetInput) (req *request.Request, output *DeleteChangeSetOutput) { - op := &request.Operation{ - Name: opDeleteChangeSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteChangeSetInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteChangeSetOutput{} - req.Data = output - return -} - -// Deletes the specified change set. Deleting change sets ensures that no one -// executes the wrong change set. -// -// If the call successfully completes, AWS CloudFormation successfully deleted -// the change set. -func (c *CloudFormation) DeleteChangeSet(input *DeleteChangeSetInput) (*DeleteChangeSetOutput, error) { - req, out := c.DeleteChangeSetRequest(input) - err := req.Send() - return out, err -} - const opDeleteStack = "DeleteStack" // DeleteStackRequest generates a request for the DeleteStack operation. @@ -198,8 +84,6 @@ func (c *CloudFormation) DeleteStackRequest(input *DeleteStackInput) (req *reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteStackOutput{} req.Data = output return @@ -214,64 +98,6 @@ func (c *CloudFormation) DeleteStack(input *DeleteStackInput) (*DeleteStackOutpu return out, err } -const opDescribeAccountLimits = "DescribeAccountLimits" - -// DescribeAccountLimitsRequest generates a request for the DescribeAccountLimits operation. -func (c *CloudFormation) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput) { - op := &request.Operation{ - Name: opDescribeAccountLimits, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeAccountLimitsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeAccountLimitsOutput{} - req.Data = output - return -} - -// Retrieves your account's AWS CloudFormation limits, such as the maximum number -// of stacks that you can create in your account. -func (c *CloudFormation) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) { - req, out := c.DescribeAccountLimitsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeChangeSet = "DescribeChangeSet" - -// DescribeChangeSetRequest generates a request for the DescribeChangeSet operation. -func (c *CloudFormation) DescribeChangeSetRequest(input *DescribeChangeSetInput) (req *request.Request, output *DescribeChangeSetOutput) { - op := &request.Operation{ - Name: opDescribeChangeSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeChangeSetInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeChangeSetOutput{} - req.Data = output - return -} - -// Returns the inputs for the change set and a list of changes that AWS CloudFormation -// will make if you execute the change set. For more information, see Updating -// Stacks Using Change Sets (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html) -// in the AWS CloudFormation User Guide. -func (c *CloudFormation) DescribeChangeSet(input *DescribeChangeSetInput) (*DescribeChangeSetOutput, error) { - req, out := c.DescribeChangeSetRequest(input) - err := req.Send() - return out, err -} - const opDescribeStackEvents = "DescribeStackEvents" // DescribeStackEventsRequest generates a request for the DescribeStackEvents operation. @@ -298,12 +124,12 @@ func (c *CloudFormation) DescribeStackEventsRequest(input *DescribeStackEventsIn return } -// Returns all stack related events for a specified stack in reverse chronological -// order. For more information about a stack's event history, go to Stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html) +// Returns all stack related events for a specified stack. For more information +// about a stack's event history, go to Stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html) // in the AWS CloudFormation User Guide. // -// You can list events for stacks that have failed to create or have been -// deleted by specifying the unique stack identifier (stack ID). +// You can list events for stacks that have failed to create or have been deleted +// by specifying the unique stack identifier (stack ID). func (c *CloudFormation) DescribeStackEvents(input *DescribeStackEventsInput) (*DescribeStackEventsOutput, error) { req, out := c.DescribeStackEventsRequest(input) err := req.Send() @@ -312,7 +138,6 @@ func (c *CloudFormation) DescribeStackEvents(input *DescribeStackEventsInput) (* func (c *CloudFormation) DescribeStackEventsPages(input *DescribeStackEventsInput, fn func(p *DescribeStackEventsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeStackEventsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeStackEventsOutput), lastPage) }) @@ -373,18 +198,17 @@ func (c *CloudFormation) DescribeStackResourcesRequest(input *DescribeStackResou // returned. If PhysicalResourceId is specified, the associated resources of // the stack that the resource belongs to are returned. // -// Only the first 100 resources will be returned. If your stack has more resources -// than this, you should use ListStackResources instead. -// -// For deleted stacks, DescribeStackResources returns resource information -// for up to 90 days after the stack has been deleted. +// Only the first 100 resources will be returned. If your stack has more resources +// than this, you should use ListStackResources instead. For deleted stacks, +// DescribeStackResources returns resource information for up to 90 days after +// the stack has been deleted. // // You must specify either StackName or PhysicalResourceId, but not both. In // addition, you can specify LogicalResourceId to filter the returned result. // For more information about resources, the LogicalResourceId and PhysicalResourceId, -// go to the AWS CloudFormation User Guide (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/). +// go to the AWS CloudFormation User Guide (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide). // -// A ValidationError is returned if you specify both StackName and PhysicalResourceId +// A ValidationError is returned if you specify both StackName and PhysicalResourceId // in the same request. func (c *CloudFormation) DescribeStackResources(input *DescribeStackResourcesInput) (*DescribeStackResourcesOutput, error) { req, out := c.DescribeStackResourcesRequest(input) @@ -428,7 +252,6 @@ func (c *CloudFormation) DescribeStacks(input *DescribeStacksInput) (*DescribeSt func (c *CloudFormation) DescribeStacksPages(input *DescribeStacksInput, fn func(p *DescribeStacksOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeStacksRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeStacksOutput), lastPage) }) @@ -463,44 +286,6 @@ func (c *CloudFormation) EstimateTemplateCost(input *EstimateTemplateCostInput) return out, err } -const opExecuteChangeSet = "ExecuteChangeSet" - -// ExecuteChangeSetRequest generates a request for the ExecuteChangeSet operation. -func (c *CloudFormation) ExecuteChangeSetRequest(input *ExecuteChangeSetInput) (req *request.Request, output *ExecuteChangeSetOutput) { - op := &request.Operation{ - Name: opExecuteChangeSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ExecuteChangeSetInput{} - } - - req = c.newRequest(op, input, output) - output = &ExecuteChangeSetOutput{} - req.Data = output - return -} - -// Updates a stack using the input information that was provided when the specified -// change set was created. After the call successfully completes, AWS CloudFormation -// starts updating the stack. Use the DescribeStacks action to view the status -// of the update. -// -// When you execute a change set, AWS CloudFormation deletes all other change -// sets associated with the stack because they aren't valid for the updated -// stack. -// -// If a stack policy is associated with the stack, AWS CloudFormation enforces -// the policy during the update. You can't specify a temporary stack policy -// that overrides the current policy. -func (c *CloudFormation) ExecuteChangeSet(input *ExecuteChangeSetInput) (*ExecuteChangeSetOutput, error) { - req, out := c.ExecuteChangeSetRequest(input) - err := req.Send() - return out, err -} - const opGetStackPolicy = "GetStackPolicy" // GetStackPolicyRequest generates a request for the GetStackPolicy operation. @@ -555,7 +340,7 @@ func (c *CloudFormation) GetTemplateRequest(input *GetTemplateInput) (req *reque // For deleted stacks, GetTemplate returns the template for up to 90 days after // the stack has been deleted. // -// If the template does not exist, a ValidationError is returned. +// If the template does not exist, a ValidationError is returned. func (c *CloudFormation) GetTemplate(input *GetTemplateInput) (*GetTemplateOutput, error) { req, out := c.GetTemplateRequest(input) err := req.Send() @@ -598,35 +383,6 @@ func (c *CloudFormation) GetTemplateSummary(input *GetTemplateSummaryInput) (*Ge return out, err } -const opListChangeSets = "ListChangeSets" - -// ListChangeSetsRequest generates a request for the ListChangeSets operation. -func (c *CloudFormation) ListChangeSetsRequest(input *ListChangeSetsInput) (req *request.Request, output *ListChangeSetsOutput) { - op := &request.Operation{ - Name: opListChangeSets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListChangeSetsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListChangeSetsOutput{} - req.Data = output - return -} - -// Returns the ID and status of each active change set for a stack. For example, -// AWS CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or -// CREATE_PENDING state. -func (c *CloudFormation) ListChangeSets(input *ListChangeSetsInput) (*ListChangeSetsOutput, error) { - req, out := c.ListChangeSetsRequest(input) - err := req.Send() - return out, err -} - const opListStackResources = "ListStackResources" // ListStackResourcesRequest generates a request for the ListStackResources operation. @@ -665,7 +421,6 @@ func (c *CloudFormation) ListStackResources(input *ListStackResourcesInput) (*Li func (c *CloudFormation) ListStackResourcesPages(input *ListStackResourcesInput, fn func(p *ListStackResourcesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListStackResourcesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListStackResourcesOutput), lastPage) }) @@ -710,7 +465,6 @@ func (c *CloudFormation) ListStacks(input *ListStacksInput) (*ListStacksOutput, func (c *CloudFormation) ListStacksPages(input *ListStacksInput, fn func(p *ListStacksOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListStacksRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListStacksOutput), lastPage) }) @@ -731,8 +485,6 @@ func (c *CloudFormation) SetStackPolicyRequest(input *SetStackPolicyInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetStackPolicyOutput{} req.Data = output return @@ -760,8 +512,6 @@ func (c *CloudFormation) SignalResourceRequest(input *SignalResourceInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SignalResourceOutput{} req.Data = output return @@ -806,6 +556,9 @@ func (c *CloudFormation) UpdateStackRequest(input *UpdateStackInput) (req *reque // To get a copy of the template for an existing stack, you can use the GetTemplate // action. // +// Tags that were associated with this stack during creation time will still +// be associated with the stack after an UpdateStack operation. +// // For more information about creating an update template, updating a stack, // and monitoring the progress of the update, see Updating a Stack (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html). func (c *CloudFormation) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) { @@ -841,33 +594,16 @@ func (c *CloudFormation) ValidateTemplate(input *ValidateTemplateInput) (*Valida return out, err } -// The AccountLimit data type. -type AccountLimit struct { - _ struct{} `type:"structure"` - - // The name of the account limit. Currently, the only account limit is StackLimit. - Name *string `type:"string"` - - // The value that is associated with the account limit name. - Value *int64 `type:"integer"` -} - -// String returns the string representation -func (s AccountLimit) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AccountLimit) GoString() string { - return s.String() -} - -// The input for the CancelUpdateStack action. +// The input for CancelUpdateStack action. type CancelUpdateStackInput struct { - _ struct{} `type:"structure"` - // The name or the unique stack ID that is associated with the stack. StackName *string `type:"string" required:"true"` + + metadataCancelUpdateStackInput `json:"-" xml:"-"` +} + +type metadataCancelUpdateStackInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -880,21 +616,12 @@ func (s CancelUpdateStackInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelUpdateStackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelUpdateStackInput"} - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CancelUpdateStackOutput struct { + metadataCancelUpdateStackOutput `json:"-" xml:"-"` } -type CancelUpdateStackOutput struct { - _ struct{} `type:"structure"` +type metadataCancelUpdateStackOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -907,552 +634,162 @@ func (s CancelUpdateStackOutput) GoString() string { return s.String() } -// The Change structure describes the changes AWS CloudFormation will perform -// if you execute the change set. -type Change struct { - _ struct{} `type:"structure"` - - // A ResourceChange structure that describes the resource and action that AWS - // CloudFormation will perform. - ResourceChange *ResourceChange `type:"structure"` +// The input for CreateStack action. +type CreateStackInput struct { + // A list of capabilities that you must specify before AWS CloudFormation can + // create or update certain stacks. Some stack templates might include resources + // that can affect permissions in your AWS account. For those stacks, you must + // explicitly acknowledge their capabilities by specifying this parameter. + // + // Currently, the only valid value is CAPABILITY_IAM, which is required for + // the following resources: AWS::IAM::AccessKey (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html), + // AWS::IAM::Group (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html), + // AWS::IAM::InstanceProfile (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html), + // AWS::IAM::Policy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html), + // AWS::IAM::Role (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html), + // AWS::IAM::User (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html), + // and AWS::IAM::UserToGroupAddition (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html). + // If your stack template contains these resources, we recommend that you review + // any permissions associated with them. If you don't specify this parameter, + // this action returns an InsufficientCapabilities error. + Capabilities []*string `type:"list"` - // The type of entity that AWS CloudFormation changes. Currently, the only entity - // type is Resource. - Type *string `type:"string" enum:"ChangeType"` -} + // Set to true to disable rollback of the stack if stack creation failed. You + // can specify either DisableRollback or OnFailure, but not both. + // + // Default: false + DisableRollback *bool `type:"boolean"` -// String returns the string representation -func (s Change) String() string { - return awsutil.Prettify(s) -} + // The Simple Notification Service (SNS) topic ARNs to publish stack related + // events. You can find your SNS topic ARNs using the SNS console (http://console.aws.amazon.com/sns) + // or your Command Line Interface (CLI). + NotificationARNs []*string `type:"list"` -// GoString returns the string representation -func (s Change) GoString() string { - return s.String() -} + // Determines what action will be taken if stack creation fails. This must be + // one of: DO_NOTHING, ROLLBACK, or DELETE. You can specify either OnFailure + // or DisableRollback, but not both. + // + // Default: ROLLBACK + OnFailure *string `type:"string" enum:"OnFailure"` -// The ChangeSetSummary structure describes a change set, its status, and the -// stack with which it's associated. -type ChangeSetSummary struct { - _ struct{} `type:"structure"` + // A list of Parameter structures that specify input parameters for the stack. + Parameters []*Parameter `type:"list"` - // The ID of the change set. - ChangeSetId *string `min:"1" type:"string"` + // The name that is associated with the stack. The name must be unique in the + // region in which you are creating the stack. + // + // A stack name can contain only alphanumeric characters (case sensitive) and + // hyphens. It must start with an alphabetic character and cannot be longer + // than 255 characters. + StackName *string `type:"string" required:"true"` - // The name of the change set. - ChangeSetName *string `min:"1" type:"string"` + // Structure containing the stack policy body. For more information, go to + // Prevent Updates to Stack Resources (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) + // in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody + // or the StackPolicyURL parameter, but not both. + StackPolicyBody *string `type:"string"` - // The start time when the change set was created, in UTC. - CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // Location of a file containing the stack policy. The URL must point to a policy + // (max size: 16KB) located in an S3 bucket in the same region as the stack. + // You can specify either the StackPolicyBody or the StackPolicyURL parameter, + // but not both. + StackPolicyURL *string `type:"string"` - // Descriptive information about the change set. - Description *string `min:"1" type:"string"` + // A set of user-defined Tags to associate with this stack, represented by key/value + // pairs. Tags defined for the stack are propagated to EC2 resources that are + // created as part of the stack. A maximum number of 10 tags can be specified. + Tags []*Tag `type:"list"` - // If the change set execution status is AVAILABLE, you can execute the change - // set. If you can’t execute the change set, the status indicates why. For example, - // a change set might be in an UNAVAILABLE state because AWS CloudFormation - // is still creating it or in an OBSOLETE state because the stack was already - // updated. - ExecutionStatus *string `type:"string" enum:"ExecutionStatus"` + // Structure containing the template body with a minimum length of 1 byte and + // a maximum length of 51,200 bytes. For more information, go to Template Anatomy + // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) + // in the AWS CloudFormation User Guide. + // + // Conditional: You must specify either the TemplateBody or the TemplateURL + // parameter, but not both. + TemplateBody *string `type:"string"` - // The ID of the stack with which the change set is associated. - StackId *string `type:"string"` + // Location of file containing the template body. The URL must point to a template + // (max size: 460,800 bytes) located in an S3 bucket in the same region as the + // stack. For more information, go to the Template Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) + // in the AWS CloudFormation User Guide. + // + // Conditional: You must specify either the TemplateBody or the TemplateURL + // parameter, but not both. + TemplateURL *string `type:"string"` - // The name of the stack with which the change set is associated. - StackName *string `type:"string"` + // The amount of time that can pass before the stack status becomes CREATE_FAILED; + // if DisableRollback is not set or is set to false, the stack will be rolled + // back. + TimeoutInMinutes *int64 `type:"integer"` - // The state of the change set, such as CREATE_IN_PROGRESS, CREATE_COMPLETE, - // or FAILED. - Status *string `type:"string" enum:"ChangeSetStatus"` + metadataCreateStackInput `json:"-" xml:"-"` +} - // A description of the change set's status. For example, if your change set - // is in the FAILED state, AWS CloudFormation shows the error message. - StatusReason *string `type:"string"` +type metadataCreateStackInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ChangeSetSummary) String() string { +func (s CreateStackInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ChangeSetSummary) GoString() string { +func (s CreateStackInput) GoString() string { return s.String() } -// The input for the ContinueUpdateRollback action. -type ContinueUpdateRollbackInput struct { - _ struct{} `type:"structure"` +// The output for a CreateStack action. +type CreateStackOutput struct { + // Unique identifier of the stack. + StackId *string `type:"string"` + + metadataCreateStackOutput `json:"-" xml:"-"` +} - // The name or the unique ID of the stack that you want to continue rolling - // back. - StackName *string `min:"1" type:"string" required:"true"` +type metadataCreateStackOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ContinueUpdateRollbackInput) String() string { +func (s CreateStackOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ContinueUpdateRollbackInput) GoString() string { +func (s CreateStackOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ContinueUpdateRollbackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContinueUpdateRollbackInput"} - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - if s.StackName != nil && len(*s.StackName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) - } +// The input for DeleteStack action. +type DeleteStackInput struct { + // The name or the unique stack ID that is associated with the stack. + StackName *string `type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeleteStackInput `json:"-" xml:"-"` } -// The output for a ContinueUpdateRollback action. -type ContinueUpdateRollbackOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteStackInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ContinueUpdateRollbackOutput) String() string { +func (s DeleteStackInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ContinueUpdateRollbackOutput) GoString() string { +func (s DeleteStackInput) GoString() string { return s.String() } -// The input for the CreateChangeSet action. -type CreateChangeSetInput struct { - _ struct{} `type:"structure"` +type DeleteStackOutput struct { + metadataDeleteStackOutput `json:"-" xml:"-"` +} - // A list of capabilities that you must specify before AWS CloudFormation can - // update certain stacks. Some stack templates might include resources that - // can affect permissions in your AWS account, for example, by creating new - // AWS Identity and Access Management (IAM) users. For those stacks, you must - // explicitly acknowledge their capabilities by specifying this parameter. - // - // Currently, the only valid value is CAPABILITY_IAM, which is required for - // the following resources: AWS::IAM::AccessKey (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html), - // AWS::IAM::Group (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html), - // AWS::IAM::InstanceProfile (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html), - // AWS::IAM::Policy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html), - // AWS::IAM::Role (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html), - // AWS::IAM::User (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html), - // and AWS::IAM::UserToGroupAddition (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html). - // If your stack template contains these resources, we recommend that you review - // all permissions associated with them and edit their permissions if necessary. - // If your template contains any of the listed resources and you don't specify - // this parameter, this action returns an InsufficientCapabilities error. - Capabilities []*string `type:"list"` - - // The name of the change set. The name must be unique among all change sets - // that are associated with the specified stack. - // - // A change set name can contain only alphanumeric, case sensitive characters - // and hyphens. It must start with an alphabetic character and cannot exceed - // 128 characters. - ChangeSetName *string `min:"1" type:"string" required:"true"` - - // A unique identifier for this CreateChangeSet request. Specify this token - // if you plan to retry requests so that AWS CloudFormation knows that you're - // not attempting to create another change set with the same name. You might - // retry CreateChangeSet requests to ensure that AWS CloudFormation successfully - // received them. - ClientToken *string `min:"1" type:"string"` - - // A description to help you identify this change set. - Description *string `min:"1" type:"string"` - - // The Amazon Resource Names (ARNs) of Amazon Simple Notification Service (Amazon - // SNS) topics that AWS CloudFormation associates with the stack. To remove - // all associated notification topics, specify an empty list. - NotificationARNs []*string `type:"list"` - - // A list of Parameter structures that specify input parameters for the change - // set. For more information, see the Parameter (http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html) - // data type. - Parameters []*Parameter `type:"list"` - - // The template resource types that you have permissions to work with if you - // execute this change set, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. - // - // If the list of resource types doesn't include a resource type that you're - // updating, the stack update fails. By default, AWS CloudFormation grants permissions - // to all resource types. AWS Identity and Access Management (IAM) uses this - // parameter for condition keys in IAM policies for AWS CloudFormation. For - // more information, see Controlling Access with AWS Identity and Access Management - // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html) - // in the AWS CloudFormation User Guide. - ResourceTypes []*string `type:"list"` - - // The name or the unique ID of the stack for which you are creating a change - // set. AWS CloudFormation generates the change set by comparing this stack's - // information with the information that you submit, such as a modified template - // or different parameter input values. - StackName *string `min:"1" type:"string" required:"true"` - - // Key-value pairs to associate with this stack. AWS CloudFormation also propagates - // these tags to resources in the stack. You can specify a maximum of 10 tags. - Tags []*Tag `type:"list"` - - // A structure that contains the body of the revised template, with a minimum - // length of 1 byte and a maximum length of 51,200 bytes. AWS CloudFormation - // generates the change set by comparing this template with the template of - // the stack that you specified. - // - // Conditional: You must specify only TemplateBody or TemplateURL. - TemplateBody *string `min:"1" type:"string"` - - // The location of the file that contains the revised template. The URL must - // point to a template (max size: 460,800 bytes) that is located in an S3 bucket. - // AWS CloudFormation generates the change set by comparing this template with - // the stack that you specified. - // - // Conditional: You must specify only TemplateBody or TemplateURL. - TemplateURL *string `min:"1" type:"string"` - - // Whether to reuse the template that is associated with the stack to create - // the change set. - UsePreviousTemplate *bool `type:"boolean"` -} - -// String returns the string representation -func (s CreateChangeSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateChangeSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateChangeSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateChangeSetInput"} - if s.ChangeSetName == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeSetName")) - } - if s.ChangeSetName != nil && len(*s.ChangeSetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ChangeSetName", 1)) - } - if s.ClientToken != nil && len(*s.ClientToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) - } - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - if s.StackName != nil && len(*s.StackName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) - } - if s.TemplateBody != nil && len(*s.TemplateBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateBody", 1)) - } - if s.TemplateURL != nil && len(*s.TemplateURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateURL", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output for the CreateChangeSet action. -type CreateChangeSetOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the change set. - Id *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s CreateChangeSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateChangeSetOutput) GoString() string { - return s.String() -} - -// The input for CreateStack action. -type CreateStackInput struct { - _ struct{} `type:"structure"` - - // A list of capabilities that you must specify before AWS CloudFormation can - // create certain stacks. Some stack templates might include resources that - // can affect permissions in your AWS account, for example, by creating new - // AWS Identity and Access Management (IAM) users. For those stacks, you must - // explicitly acknowledge their capabilities by specifying this parameter. - // - // Currently, the only valid value is CAPABILITY_IAM, which is required for - // the following resources: AWS::IAM::AccessKey (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html), - // AWS::IAM::Group (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html), - // AWS::IAM::InstanceProfile (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html), - // AWS::IAM::Policy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html), - // AWS::IAM::Role (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html), - // AWS::IAM::User (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html), - // and AWS::IAM::UserToGroupAddition (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html). - // If your stack template contains these resources, we recommend that you review - // all permissions associated with them and edit their permissions if necessary. - // If your template contains any of the listed resources and you don't specify - // this parameter, this action returns an InsufficientCapabilities error. - Capabilities []*string `type:"list"` - - // Set to true to disable rollback of the stack if stack creation failed. You - // can specify either DisableRollback or OnFailure, but not both. - // - // Default: false - DisableRollback *bool `type:"boolean"` - - // The Simple Notification Service (SNS) topic ARNs to publish stack related - // events. You can find your SNS topic ARNs using the SNS console (https://console.aws.amazon.com/sns) - // or your Command Line Interface (CLI). - NotificationARNs []*string `type:"list"` - - // Determines what action will be taken if stack creation fails. This must be - // one of: DO_NOTHING, ROLLBACK, or DELETE. You can specify either OnFailure - // or DisableRollback, but not both. - // - // Default: ROLLBACK - OnFailure *string `type:"string" enum:"OnFailure"` - - // A list of Parameter structures that specify input parameters for the stack. - // For more information, see the Parameter (http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html) - // data type. - Parameters []*Parameter `type:"list"` - - // The template resource types that you have permissions to work with for this - // create stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. - // Use the following syntax to describe template resource types: AWS::* (for - // all AWS resource), Custom::* (for all custom resources), Custom::logical_ID - // (for a specific custom resource), AWS::service_name::* (for all resources - // of a particular AWS service), and AWS::service_name::resource_logical_ID - // (for a specific AWS resource). - // - // If the list of resource types doesn't include a resource that you're creating, - // the stack creation fails. By default, AWS CloudFormation grants permissions - // to all resource types. AWS Identity and Access Management (IAM) uses this - // parameter for AWS CloudFormation-specific condition keys in IAM policies. - // For more information, see Controlling Access with AWS Identity and Access - // Management (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html). - ResourceTypes []*string `type:"list"` - - // The name that is associated with the stack. The name must be unique in the - // region in which you are creating the stack. - // - // A stack name can contain only alphanumeric characters (case sensitive) - // and hyphens. It must start with an alphabetic character and cannot be longer - // than 128 characters. - StackName *string `type:"string" required:"true"` - - // Structure containing the stack policy body. For more information, go to - // Prevent Updates to Stack Resources (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) - // in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody - // or the StackPolicyURL parameter, but not both. - StackPolicyBody *string `min:"1" type:"string"` - - // Location of a file containing the stack policy. The URL must point to a policy - // (max size: 16KB) located in an S3 bucket in the same region as the stack. - // You can specify either the StackPolicyBody or the StackPolicyURL parameter, - // but not both. - StackPolicyURL *string `min:"1" type:"string"` - - // Key-value pairs to associate with this stack. AWS CloudFormation also propagates - // these tags to the resources created in the stack. A maximum number of 10 - // tags can be specified. - Tags []*Tag `type:"list"` - - // Structure containing the template body with a minimum length of 1 byte and - // a maximum length of 51,200 bytes. For more information, go to Template Anatomy - // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. - // - // Conditional: You must specify either the TemplateBody or the TemplateURL - // parameter, but not both. - TemplateBody *string `min:"1" type:"string"` - - // Location of file containing the template body. The URL must point to a template - // (max size: 460,800 bytes) that is located in an Amazon S3 bucket. For more - // information, go to the Template Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) - // in the AWS CloudFormation User Guide. - // - // Conditional: You must specify either the TemplateBody or the TemplateURL - // parameter, but not both. - TemplateURL *string `min:"1" type:"string"` - - // The amount of time that can pass before the stack status becomes CREATE_FAILED; - // if DisableRollback is not set or is set to false, the stack will be rolled - // back. - TimeoutInMinutes *int64 `min:"1" type:"integer"` -} - -// String returns the string representation -func (s CreateStackInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateStackInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateStackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateStackInput"} - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - if s.StackPolicyBody != nil && len(*s.StackPolicyBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackPolicyBody", 1)) - } - if s.StackPolicyURL != nil && len(*s.StackPolicyURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackPolicyURL", 1)) - } - if s.TemplateBody != nil && len(*s.TemplateBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateBody", 1)) - } - if s.TemplateURL != nil && len(*s.TemplateURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateURL", 1)) - } - if s.TimeoutInMinutes != nil && *s.TimeoutInMinutes < 1 { - invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutes", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output for a CreateStack action. -type CreateStackOutput struct { - _ struct{} `type:"structure"` - - // Unique identifier of the stack. - StackId *string `type:"string"` -} - -// String returns the string representation -func (s CreateStackOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateStackOutput) GoString() string { - return s.String() -} - -// The input for the DeleteChangeSet action. -type DeleteChangeSetInput struct { - _ struct{} `type:"structure"` - - // The name or Amazon Resource Name (ARN) of the change set that you want to - // delete. - ChangeSetName *string `min:"1" type:"string" required:"true"` - - // If you specified the name of a change set to delete, specify the stack name - // or ID (ARN) that is associated with it. - StackName *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DeleteChangeSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteChangeSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteChangeSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteChangeSetInput"} - if s.ChangeSetName == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeSetName")) - } - if s.ChangeSetName != nil && len(*s.ChangeSetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ChangeSetName", 1)) - } - if s.StackName != nil && len(*s.StackName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output for the DeleteChangeSet action. -type DeleteChangeSetOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteChangeSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteChangeSetOutput) GoString() string { - return s.String() -} - -// The input for DeleteStack action. -type DeleteStackInput struct { - _ struct{} `type:"structure"` - - // For stacks in the DELETE_FAILED state, a list of resource logical IDs that - // are associated with the resources you want to retain. During deletion, AWS - // CloudFormation deletes the stack but does not delete the retained resources. - // - // Retaining resources is useful when you cannot delete a resource, such as - // a non-empty S3 bucket, but you want to delete the stack. - RetainResources []*string `type:"list"` - - // The name or the unique stack ID that is associated with the stack. - StackName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteStackInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteStackInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteStackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteStackInput"} - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteStackOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteStackOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1465,200 +802,27 @@ func (s DeleteStackOutput) GoString() string { return s.String() } -// The input for the DescribeAccountLimits action. -type DescribeAccountLimitsInput struct { - _ struct{} `type:"structure"` - - // A string that identifies the next page of limits that you want to retrieve. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeAccountLimitsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAccountLimitsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAccountLimitsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAccountLimitsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output for the DescribeAccountLimits action. -type DescribeAccountLimitsOutput struct { - _ struct{} `type:"structure"` - - // An account limit structure that contain a list of AWS CloudFormation account - // limits and their values. - AccountLimits []*AccountLimit `type:"list"` - - // If the output exceeds 1 MB in size, a string that identifies the next page - // of limits. If no additional page exists, this value is null. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeAccountLimitsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAccountLimitsOutput) GoString() string { - return s.String() -} - -// The input for the DescribeChangeSet action. -type DescribeChangeSetInput struct { - _ struct{} `type:"structure"` - - // The name or Amazon Resource Name (ARN) of the change set that you want to - // describe. - ChangeSetName *string `min:"1" type:"string" required:"true"` - - // A string (provided by the DescribeChangeSet response output) that identifies - // the next page of information that you want to retrieve. - NextToken *string `min:"1" type:"string"` - - // If you specified the name of a change set, specify the stack name or ID (ARN) - // of the change set you want to describe. - StackName *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeChangeSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeChangeSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeChangeSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeChangeSetInput"} - if s.ChangeSetName == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeSetName")) - } - if s.ChangeSetName != nil && len(*s.ChangeSetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ChangeSetName", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.StackName != nil && len(*s.StackName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output for the DescribeChangeSet action. -type DescribeChangeSetOutput struct { - _ struct{} `type:"structure"` - - // If you execute the change set, the list of capabilities that were explicitly - // acknowledged when the change set was created. - Capabilities []*string `type:"list"` - - // The ARN of the change set. - ChangeSetId *string `min:"1" type:"string"` - - // The name of the change set. - ChangeSetName *string `min:"1" type:"string"` - - // A list of Change structures that describes the resources AWS CloudFormation - // changes if you execute the change set. - Changes []*Change `type:"list"` - - // The start time when the change set was created, in UTC. - CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // Information about the change set. - Description *string `min:"1" type:"string"` - - // If the change set execution status is AVAILABLE, you can execute the change - // set. If you can’t execute the change set, the status indicates why. For example, - // a change set might be in an UNAVAILABLE state because AWS CloudFormation - // is still creating it or in an OBSOLETE state because the stack was already - // updated. - ExecutionStatus *string `type:"string" enum:"ExecutionStatus"` - - // If the output exceeds 1 MB, a string that identifies the next page of changes. - // If there is no additional page, this value is null. - NextToken *string `min:"1" type:"string"` - - // The ARNs of the Amazon Simple Notification Service (Amazon SNS) topics that - // will be associated with the stack if you execute the change set. - NotificationARNs []*string `type:"list"` - - // A list of Parameter structures that describes the input parameters and their - // values used to create the change set. For more information, see the Parameter - // (http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html) - // data type. - Parameters []*Parameter `type:"list"` - - // The ARN of the stack that is associated with the change set. - StackId *string `type:"string"` - - // The name of the stack that is associated with the change set. - StackName *string `type:"string"` - - // The current status of the change set, such as CREATE_IN_PROGRESS, CREATE_COMPLETE, - // or FAILED. - Status *string `type:"string" enum:"ChangeSetStatus"` - - // A description of the change set's status. For example, if your attempt to - // create a change set failed, AWS CloudFormation shows the error message. - StatusReason *string `type:"string"` - - // If you execute the change set, the tags that will be associated with the - // stack. - Tags []*Tag `type:"list"` -} - -// String returns the string representation -func (s DescribeChangeSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeChangeSetOutput) GoString() string { - return s.String() -} - // The input for DescribeStackEvents action. type DescribeStackEventsInput struct { - _ struct{} `type:"structure"` - - // A string that identifies the next page of events that you want to retrieve. - NextToken *string `min:"1" type:"string"` + // String that identifies the start of the next list of events, if there is + // one. + // + // Default: There is no default value. + NextToken *string `type:"string"` // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. - // - // Deleted stacks: You must specify the unique stack ID. - // - // Default: There is no default value. + // Running stacks: You can specify either the stack's name or its unique stack + // ID. Deleted stacks: You must specify the unique stack ID. Default: There + // is no default value. StackName *string `type:"string"` + + metadataDescribeStackEventsInput `json:"-" xml:"-"` +} + +type metadataDescribeStackEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1671,29 +835,20 @@ func (s DescribeStackEventsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStackEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStackEventsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for a DescribeStackEvents action. type DescribeStackEventsOutput struct { - _ struct{} `type:"structure"` - - // If the output exceeds 1 MB in size, a string that identifies the next page - // of events. If no additional page exists, this value is null. - NextToken *string `min:"1" type:"string"` + // String that identifies the start of the next list of events, if there is + // one. + NextToken *string `type:"string"` // A list of StackEvents structures. StackEvents []*StackEvent `type:"list"` + + metadataDescribeStackEventsOutput `json:"-" xml:"-"` +} + +type metadataDescribeStackEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1708,8 +863,6 @@ func (s DescribeStackEventsOutput) GoString() string { // The input for DescribeStackResource action. type DescribeStackResourceInput struct { - _ struct{} `type:"structure"` - // The logical name of the resource as specified in the template. // // Default: There is no default value. @@ -1718,13 +871,16 @@ type DescribeStackResourceInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. - // - // Deleted stacks: You must specify the unique stack ID. - // - // Default: There is no default value. + // Running stacks: You can specify either the stack's name or its unique stack + // ID. Deleted stacks: You must specify the unique stack ID. Default: There + // is no default value. StackName *string `type:"string" required:"true"` + + metadataDescribeStackResourceInput `json:"-" xml:"-"` +} + +type metadataDescribeStackResourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1737,29 +893,17 @@ func (s DescribeStackResourceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStackResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStackResourceInput"} - if s.LogicalResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("LogicalResourceId")) - } - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for a DescribeStackResource action. type DescribeStackResourceOutput struct { - _ struct{} `type:"structure"` - // A StackResourceDetail structure containing the description of the specified // resource in the specified stack. StackResourceDetail *StackResourceDetail `type:"structure"` + + metadataDescribeStackResourceOutput `json:"-" xml:"-"` +} + +type metadataDescribeStackResourceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1774,8 +918,6 @@ func (s DescribeStackResourceOutput) GoString() string { // The input for DescribeStackResources action. type DescribeStackResourcesInput struct { - _ struct{} `type:"structure"` - // The logical name of the resource as specified in the template. // // Default: There is no default value. @@ -1798,16 +940,19 @@ type DescribeStackResourcesInput struct { // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. - // - // Deleted stacks: You must specify the unique stack ID. - // - // Default: There is no default value. + // Running stacks: You can specify either the stack's name or its unique stack + // ID. Deleted stacks: You must specify the unique stack ID. Default: There + // is no default value. // // Required: Conditional. If you do not specify StackName, you must specify // PhysicalResourceId. StackName *string `type:"string"` + + metadataDescribeStackResourcesInput `json:"-" xml:"-"` +} + +type metadataDescribeStackResourcesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1822,10 +967,14 @@ func (s DescribeStackResourcesInput) GoString() string { // The output for a DescribeStackResources action. type DescribeStackResourcesOutput struct { - _ struct{} `type:"structure"` - // A list of StackResource structures. StackResources []*StackResource `type:"list"` + + metadataDescribeStackResourcesOutput `json:"-" xml:"-"` +} + +type metadataDescribeStackResourcesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1840,21 +989,23 @@ func (s DescribeStackResourcesOutput) GoString() string { // The input for DescribeStacks action. type DescribeStacksInput struct { - _ struct{} `type:"structure"` - - // A string that identifies the next page of stacks that you want to retrieve. - NextToken *string `min:"1" type:"string"` + // String that identifies the start of the next list of stacks, if there is + // one. + NextToken *string `type:"string"` // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. - // - // Deleted stacks: You must specify the unique stack ID. - // - // Default: There is no default value. + // Running stacks: You can specify either the stack's name or its unique stack + // ID. Deleted stacks: You must specify the unique stack ID. Default: There + // is no default value. StackName *string `type:"string"` + + metadataDescribeStacksInput `json:"-" xml:"-"` +} + +type metadataDescribeStacksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1867,29 +1018,20 @@ func (s DescribeStacksInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStacksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStacksInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for a DescribeStacks action. type DescribeStacksOutput struct { - _ struct{} `type:"structure"` - - // If the output exceeds 1 MB in size, a string that identifies the next page - // of stacks. If no additional page exists, this value is null. - NextToken *string `min:"1" type:"string"` + // String that identifies the start of the next list of stacks, if there is + // one. + NextToken *string `type:"string"` // A list of stack structures. Stacks []*Stack `type:"list"` + + metadataDescribeStacksOutput `json:"-" xml:"-"` +} + +type metadataDescribeStacksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1902,10 +1044,7 @@ func (s DescribeStacksOutput) GoString() string { return s.String() } -// The input for an EstimateTemplateCost action. type EstimateTemplateCostInput struct { - _ struct{} `type:"structure"` - // A list of Parameter structures that specify input parameters. Parameters []*Parameter `type:"list"` @@ -1916,16 +1055,22 @@ type EstimateTemplateCostInput struct { // // Conditional: You must pass TemplateBody or TemplateURL. If both are passed, // only TemplateBody is used. - TemplateBody *string `min:"1" type:"string"` + TemplateBody *string `type:"string"` // Location of file containing the template body. The URL must point to a template - // that is located in an Amazon S3 bucket. For more information, go to Template - // Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) + // located in an S3 bucket in the same region as the stack. For more information, + // go to Template Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) // in the AWS CloudFormation User Guide. // // Conditional: You must pass TemplateURL or TemplateBody. If both are passed, // only TemplateBody is used. - TemplateURL *string `min:"1" type:"string"` + TemplateURL *string `type:"string"` + + metadataEstimateTemplateCostInput `json:"-" xml:"-"` +} + +type metadataEstimateTemplateCostInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1938,105 +1083,40 @@ func (s EstimateTemplateCostInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EstimateTemplateCostInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EstimateTemplateCostInput"} - if s.TemplateBody != nil && len(*s.TemplateBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateBody", 1)) - } - if s.TemplateURL != nil && len(*s.TemplateURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateURL", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for a EstimateTemplateCost action. type EstimateTemplateCostOutput struct { - _ struct{} `type:"structure"` - // An AWS Simple Monthly Calculator URL with a query string that describes the // resources required to run the template. Url *string `type:"string"` -} -// String returns the string representation -func (s EstimateTemplateCostOutput) String() string { - return awsutil.Prettify(s) + metadataEstimateTemplateCostOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s EstimateTemplateCostOutput) GoString() string { - return s.String() -} - -// The input for the ExecuteChangeSet action. -type ExecuteChangeSetInput struct { - _ struct{} `type:"structure"` - - // The name or ARN of the change set that you want use to update the specified - // stack. - ChangeSetName *string `min:"1" type:"string" required:"true"` - - // If you specified the name of a change set, specify the stack name or ID (ARN) - // that is associated with the change set you want to execute. - StackName *string `min:"1" type:"string"` +type metadataEstimateTemplateCostOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ExecuteChangeSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ExecuteChangeSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ExecuteChangeSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ExecuteChangeSetInput"} - if s.ChangeSetName == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeSetName")) - } - if s.ChangeSetName != nil && len(*s.ChangeSetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ChangeSetName", 1)) - } - if s.StackName != nil && len(*s.StackName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output for the ExecuteChangeSet action. -type ExecuteChangeSetOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ExecuteChangeSetOutput) String() string { +func (s EstimateTemplateCostOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ExecuteChangeSetOutput) GoString() string { +func (s EstimateTemplateCostOutput) GoString() string { return s.String() } // The input for the GetStackPolicy action. type GetStackPolicyInput struct { - _ struct{} `type:"structure"` - // The name or unique stack ID that is associated with the stack whose policy // you want to get. StackName *string `type:"string" required:"true"` + + metadataGetStackPolicyInput `json:"-" xml:"-"` +} + +type metadataGetStackPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2049,27 +1129,18 @@ func (s GetStackPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetStackPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetStackPolicyInput"} - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the GetStackPolicy action. type GetStackPolicyOutput struct { - _ struct{} `type:"structure"` - // Structure containing the stack policy body. (For more information, go to // Prevent Updates to Stack Resources (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) // in the AWS CloudFormation User Guide.) - StackPolicyBody *string `min:"1" type:"string"` + StackPolicyBody *string `type:"string"` + + metadataGetStackPolicyOutput `json:"-" xml:"-"` +} + +type metadataGetStackPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2084,18 +1155,19 @@ func (s GetStackPolicyOutput) GoString() string { // The input for a GetTemplate action. type GetTemplateInput struct { - _ struct{} `type:"structure"` - // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. - // - // Deleted stacks: You must specify the unique stack ID. - // - // Default: There is no default value. + // Running stacks: You can specify either the stack's name or its unique stack + // ID. Deleted stacks: You must specify the unique stack ID. Default: There + // is no default value. StackName *string `type:"string" required:"true"` + + metadataGetTemplateInput `json:"-" xml:"-"` +} + +type metadataGetTemplateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2108,27 +1180,18 @@ func (s GetTemplateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTemplateInput"} - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for GetTemplate action. type GetTemplateOutput struct { - _ struct{} `type:"structure"` - // Structure containing the template body. (For more information, go to Template // Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) // in the AWS CloudFormation User Guide.) - TemplateBody *string `min:"1" type:"string"` + TemplateBody *string `type:"string"` + + metadataGetTemplateOutput `json:"-" xml:"-"` +} + +type metadataGetTemplateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2143,8 +1206,6 @@ func (s GetTemplateOutput) GoString() string { // The input for the GetTemplateSummary action. type GetTemplateSummaryInput struct { - _ struct{} `type:"structure"` - // The name or the stack ID that is associated with the stack, which are not // always interchangeable. For running stacks, you can specify either the stack's // name or its unique stack ID. For deleted stack, you must specify the unique @@ -2152,7 +1213,7 @@ type GetTemplateSummaryInput struct { // // Conditional: You must specify only one of the following parameters: StackName, // TemplateBody, or TemplateURL. - StackName *string `min:"1" type:"string"` + StackName *string `type:"string"` // Structure containing the template body with a minimum length of 1 byte and // a maximum length of 51,200 bytes. For more information about templates, see @@ -2161,16 +1222,22 @@ type GetTemplateSummaryInput struct { // // Conditional: You must specify only one of the following parameters: StackName, // TemplateBody, or TemplateURL. - TemplateBody *string `min:"1" type:"string"` + TemplateBody *string `type:"string"` // Location of file containing the template body. The URL must point to a template - // (max size: 460,800 bytes) that is located in an Amazon S3 bucket. For more - // information about templates, see Template Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) + // (max size: 460,800 bytes) located in an Amazon S3 bucket. For more information + // about templates, see Template Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) // in the AWS CloudFormation User Guide. // // Conditional: You must specify only one of the following parameters: StackName, // TemplateBody, or TemplateURL. - TemplateURL *string `min:"1" type:"string"` + TemplateURL *string `type:"string"` + + metadataGetTemplateSummaryInput `json:"-" xml:"-"` +} + +type metadataGetTemplateSummaryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2183,29 +1250,8 @@ func (s GetTemplateSummaryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTemplateSummaryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTemplateSummaryInput"} - if s.StackName != nil && len(*s.StackName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) - } - if s.TemplateBody != nil && len(*s.TemplateBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateBody", 1)) - } - if s.TemplateURL != nil && len(*s.TemplateURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateURL", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the GetTemplateSummary action. type GetTemplateSummaryOutput struct { - _ struct{} `type:"structure"` - // The capabilities found within the template. Currently, AWS CloudFormation // supports only the CAPABILITY_IAM capability. If your template contains IAM // resources, you must specify the CAPABILITY_IAM value for this parameter when @@ -2214,121 +1260,61 @@ type GetTemplateSummaryOutput struct { Capabilities []*string `type:"list"` // The list of resources that generated the values in the Capabilities response - // element. - CapabilitiesReason *string `type:"string"` - - // The value that is defined in the Description property of the template. - Description *string `min:"1" type:"string"` - - // The value that is defined for the Metadata property of the template. - Metadata *string `type:"string"` - - // A list of parameter declarations that describe various properties for each - // parameter. - Parameters []*ParameterDeclaration `type:"list"` - - // A list of all the template resource types that are defined in the template, - // such as AWS::EC2::Instance, AWS::Dynamo::Table, and Custom::MyCustomInstance. - ResourceTypes []*string `type:"list"` - - // The AWS template format version, which identifies the capabilities of the - // template. - Version *string `type:"string"` -} - -// String returns the string representation -func (s GetTemplateSummaryOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTemplateSummaryOutput) GoString() string { - return s.String() -} - -// The input for the ListChangeSets action. -type ListChangeSetsInput struct { - _ struct{} `type:"structure"` - - // A string (provided by the ListChangeSets response output) that identifies - // the next page of change sets that you want to retrieve. - NextToken *string `min:"1" type:"string"` - - // The name or the Amazon Resource Name (ARN) of the stack for which you want - // to list change sets. - StackName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListChangeSetsInput) String() string { - return awsutil.Prettify(s) -} + // element. + CapabilitiesReason *string `type:"string"` -// GoString returns the string representation -func (s ListChangeSetsInput) GoString() string { - return s.String() -} + // The value that is defined in the Description property of the template. + Description *string `type:"string"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListChangeSetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListChangeSetsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - if s.StackName != nil && len(*s.StackName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) - } + // The value that is defined for the Metadata property of the template. + Metadata *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // A list of parameter declarations that describe various properties for each + // parameter. + Parameters []*ParameterDeclaration `type:"list"` -// The output for the ListChangeSets action. -type ListChangeSetsOutput struct { - _ struct{} `type:"structure"` + // The AWS template format version, which identifies the capabilities of the + // template. + Version *string `type:"string"` - // If the output exceeds 1 MB, a string that identifies the next page of change - // sets. If there is no additional page, this value is null. - NextToken *string `min:"1" type:"string"` + metadataGetTemplateSummaryOutput `json:"-" xml:"-"` +} - // A list of ChangeSetSummary structures that provides the ID and status of - // each change set for the specified stack. - Summaries []*ChangeSetSummary `type:"list"` +type metadataGetTemplateSummaryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListChangeSetsOutput) String() string { +func (s GetTemplateSummaryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListChangeSetsOutput) GoString() string { +func (s GetTemplateSummaryOutput) GoString() string { return s.String() } // The input for the ListStackResource action. type ListStackResourcesInput struct { - _ struct{} `type:"structure"` - - // A string that identifies the next page of stack resources that you want to - // retrieve. - NextToken *string `min:"1" type:"string"` + // String that identifies the start of the next list of stack resource summaries, + // if there is one. + // + // Default: There is no default value. + NextToken *string `type:"string"` // The name or the unique stack ID that is associated with the stack, which // are not always interchangeable: // - // Running stacks: You can specify either the stack's name or its unique - // stack ID. - // - // Deleted stacks: You must specify the unique stack ID. - // - // Default: There is no default value. + // Running stacks: You can specify either the stack's name or its unique stack + // ID. Deleted stacks: You must specify the unique stack ID. Default: There + // is no default value. StackName *string `type:"string" required:"true"` + + metadataListStackResourcesInput `json:"-" xml:"-"` +} + +type metadataListStackResourcesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2341,32 +1327,20 @@ func (s ListStackResourcesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListStackResourcesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListStackResourcesInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for a ListStackResources action. type ListStackResourcesOutput struct { - _ struct{} `type:"structure"` - - // If the output exceeds 1 MB, a string that identifies the next page of stack - // resources. If no additional page exists, this value is null. - NextToken *string `min:"1" type:"string"` + // String that identifies the start of the next list of stack resources, if + // there is one. + NextToken *string `type:"string"` // A list of StackResourceSummary structures. StackResourceSummaries []*StackResourceSummary `type:"list"` + + metadataListStackResourcesOutput `json:"-" xml:"-"` +} + +type metadataListStackResourcesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2381,15 +1355,22 @@ func (s ListStackResourcesOutput) GoString() string { // The input for ListStacks action. type ListStacksInput struct { - _ struct{} `type:"structure"` - - // A string that identifies the next page of stacks that you want to retrieve. - NextToken *string `min:"1" type:"string"` + // String that identifies the start of the next list of stacks, if there is + // one. + // + // Default: There is no default value. + NextToken *string `type:"string"` // Stack status to use as a filter. Specify one or more stack status codes to // list only stacks with the specified status codes. For a complete list of // stack status codes, see the StackStatus parameter of the Stack data type. StackStatusFilter []*string `type:"list"` + + metadataListStacksInput `json:"-" xml:"-"` +} + +type metadataListStacksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2402,30 +1383,21 @@ func (s ListStacksInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListStacksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListStacksInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for ListStacks action. type ListStacksOutput struct { - _ struct{} `type:"structure"` - - // If the output exceeds 1 MB in size, a string that identifies the next page - // of stacks. If no additional page exists, this value is null. - NextToken *string `min:"1" type:"string"` + // String that identifies the start of the next list of stacks, if there is + // one. + NextToken *string `type:"string"` // A list of StackSummary structures containing information about the specified // stacks. StackSummaries []*StackSummary `type:"list"` + + metadataListStacksOutput `json:"-" xml:"-"` +} + +type metadataListStacksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2440,16 +1412,20 @@ func (s ListStacksOutput) GoString() string { // The Output data type. type Output struct { - _ struct{} `type:"structure"` - // User defined description associated with the output. - Description *string `min:"1" type:"string"` + Description *string `type:"string"` // The key associated with the output. OutputKey *string `type:"string"` // The value associated with the output. OutputValue *string `type:"string"` + + metadataOutput `json:"-" xml:"-"` +} + +type metadataOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2464,8 +1440,6 @@ func (s Output) GoString() string { // The Parameter data type. type Parameter struct { - _ struct{} `type:"structure"` - // The key associated with the parameter. If you don't specify a key and value // for a particular parameter, AWS CloudFormation uses the default value that // is specified in your template. @@ -2478,6 +1452,12 @@ type Parameter struct { // using for a given parameter key. If you specify true, do not specify a parameter // value. UsePreviousValue *bool `type:"boolean"` + + metadataParameter `json:"-" xml:"-"` +} + +type metadataParameter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2494,10 +1474,14 @@ func (s Parameter) GoString() string { // Although other constraints might be defined in the stack template, AWS CloudFormation // returns only the AllowedValues property. type ParameterConstraints struct { - _ struct{} `type:"structure"` - // A list of values that are permitted for a parameter. AllowedValues []*string `type:"list"` + + metadataParameterConstraints `json:"-" xml:"-"` +} + +type metadataParameterConstraints struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2512,13 +1496,11 @@ func (s ParameterConstraints) GoString() string { // The ParameterDeclaration data type. type ParameterDeclaration struct { - _ struct{} `type:"structure"` - // The default value of the parameter. DefaultValue *string `type:"string"` // The description that is associate with the parameter. - Description *string `min:"1" type:"string"` + Description *string `type:"string"` // Flag that indicates whether the parameter value is shown as plain text in // logs and in the AWS Management Console. @@ -2532,174 +1514,26 @@ type ParameterDeclaration struct { // The type of parameter. ParameterType *string `type:"string"` -} - -// String returns the string representation -func (s ParameterDeclaration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ParameterDeclaration) GoString() string { - return s.String() -} - -// The ResourceChange structure describes the resource and the action that AWS -// CloudFormation will perform on it if you execute this change set. -type ResourceChange struct { - _ struct{} `type:"structure"` - - // The action that AWS CloudFormation takes on the resource, such as Add (adds - // a new resource), Modify (changes a resource), or Remove (deletes a resource). - Action *string `type:"string" enum:"ChangeAction"` - - // For the Modify action, a list of ResourceChangeDetail structures that describes - // the changes that AWS CloudFormation will make to the resource. - Details []*ResourceChangeDetail `type:"list"` - - // The resource's logical ID, which is defined in the stack's template. - LogicalResourceId *string `type:"string"` - - // The resource's physical ID (resource name). Resources that you are adding - // don't have physical IDs because they haven't been created. - PhysicalResourceId *string `type:"string"` - - // For the Modify action, indicates whether AWS CloudFormation will replace - // the resource by creating a new one and deleting the old one. This value depends - // on the value of the RequiresRecreation property in the ResourceTargetDefinition - // structure. For example, if the RequiresRecreation field is Always and the - // Evaluation field is Static, Replacement is True. If the RequiresRecreation - // field is Always and the Evaluation field is Dynamic, Replacement is Conditionally. - // - // If you have multiple changes with different RequiresRecreation values, the - // Replacement value depends on the change with the most impact. A RequiresRecreation - // value of Always has the most impact, followed by Conditionally, and then - // Never. - Replacement *string `type:"string" enum:"Replacement"` - - // The type of AWS CloudFormation resource, such as AWS::S3::Bucket. - ResourceType *string `min:"1" type:"string"` - - // For the Modify action, indicates which resource attribute is triggering this - // update, such as a change in the resource attribute's Metadata, Properties, - // or Tags. - Scope []*string `type:"list"` -} - -// String returns the string representation -func (s ResourceChange) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s ResourceChange) GoString() string { - return s.String() -} - -// For a resource with Modify as the action, the ResourceChange structure describes -// the changes AWS CloudFormation will make to that resource. -type ResourceChangeDetail struct { - _ struct{} `type:"structure"` - - // The identity of the entity that triggered this change. This entity is a member - // of the group that is specified by the ChangeSource field. For example, if - // you modified the value of the KeyPairName parameter, the CausingEntity is - // the name of the parameter (KeyPairName). - // - // If the ChangeSource value is DirectModification, no value is given for CausingEntity. - CausingEntity *string `type:"string"` - - // The group to which the CausingEntity value belongs. There are five entity - // groups: - // - // ResourceReference entities are Ref intrinsic functions that refer to - // resources in the template, such as { "Ref" : "MyEC2InstanceResource" }. - // - // ParameterReference entities are Ref intrinsic functions that get template - // parameter values, such as { "Ref" : "MyPasswordParameter" }. - // - // ResourceAttribute entities are Fn::GetAtt intrinsic functions that get - // resource attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", - // "PublicDnsName" ] }. - // - // DirectModification entities are changes that are made directly to the - // template. - // - // Automatic entities are AWS::CloudFormation::Stack resource types, which - // are also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack - // resource, AWS CloudFormation sets the ChangeSource to Automatic because the - // nested stack's template might have changed. Changes to a nested stack's template - // aren't visible to AWS CloudFormation until you run an update on the parent - // stack. - ChangeSource *string `type:"string" enum:"ChangeSource"` - - // Indicates whether AWS CloudFormation can determine the target value, and - // whether the target value will change before you execute a change set. - // - // For Static evaluations, AWS CloudFormation can determine that the target - // value will change, and its value. For example, if you directly modify the - // InstanceType property of an EC2 instance, AWS CloudFormation knows that this - // property value will change, and its value, so this is a Static evaluation. - // - // For Dynamic evaluations, cannot determine the target value because it depends - // on the result of an intrinsic function, such as a Ref or Fn::GetAtt intrinsic - // function, when the stack is updated. For example, if your template includes - // a reference to a resource that is conditionally recreated, the value of the - // reference (the physical ID of the resource) might change, depending on if - // the resource is recreated. If the resource is recreated, it will have a new - // physical ID, so all references to that resource will also be updated. - Evaluation *string `type:"string" enum:"EvaluationType"` - - // A ResourceTargetDefinition structure that describes the field that AWS CloudFormation - // will change and whether the resource will be recreated. - Target *ResourceTargetDefinition `type:"structure"` + metadataParameterDeclaration `json:"-" xml:"-"` } -// String returns the string representation -func (s ResourceChangeDetail) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResourceChangeDetail) GoString() string { - return s.String() -} - -// The field that AWS CloudFormation will change, such as the name of a resource's -// property, and whether the resource will be recreated. -type ResourceTargetDefinition struct { - _ struct{} `type:"structure"` - - // Indicates which resource attribute is triggering this update, such as a change - // in the resource attribute's Metadata, Properties, or Tags. - Attribute *string `type:"string" enum:"ResourceAttribute"` - - // If the Attribute value is Properties, the name of the property. For all other - // attributes, the value is null. - Name *string `type:"string"` - - // If the Attribute value is Properties, indicates whether a change to this - // property causes the resource to be recreated. The value can be Never, Always, - // or Conditionally. To determine the conditions for a Conditionally recreation, - // see the update behavior for that property (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) - // in the AWS CloudFormation User Guide. - RequiresRecreation *string `type:"string" enum:"RequiresRecreation"` +type metadataParameterDeclaration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ResourceTargetDefinition) String() string { +func (s ParameterDeclaration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResourceTargetDefinition) GoString() string { +func (s ParameterDeclaration) GoString() string { return s.String() } // The input for the SetStackPolicy action. type SetStackPolicyInput struct { - _ struct{} `type:"structure"` - // The name or unique stack ID that you want to associate a policy with. StackName *string `type:"string" required:"true"` @@ -2707,13 +1541,19 @@ type SetStackPolicyInput struct { // Prevent Updates to Stack Resources (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) // in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody // or the StackPolicyURL parameter, but not both. - StackPolicyBody *string `min:"1" type:"string"` + StackPolicyBody *string `type:"string"` // Location of a file containing the stack policy. The URL must point to a policy - // (maximum size: 16 KB) located in an S3 bucket in the same region as the stack. + // (max size: 16KB) located in an S3 bucket in the same region as the stack. // You can specify either the StackPolicyBody or the StackPolicyURL parameter, // but not both. - StackPolicyURL *string `min:"1" type:"string"` + StackPolicyURL *string `type:"string"` + + metadataSetStackPolicyInput `json:"-" xml:"-"` +} + +type metadataSetStackPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2726,27 +1566,12 @@ func (s SetStackPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetStackPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetStackPolicyInput"} - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - if s.StackPolicyBody != nil && len(*s.StackPolicyBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackPolicyBody", 1)) - } - if s.StackPolicyURL != nil && len(*s.StackPolicyURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackPolicyURL", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetStackPolicyOutput struct { + metadataSetStackPolicyOutput `json:"-" xml:"-"` } -type SetStackPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataSetStackPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2761,15 +1586,13 @@ func (s SetStackPolicyOutput) GoString() string { // The input for the SignalResource action. type SignalResourceInput struct { - _ struct{} `type:"structure"` - // The logical ID of the resource that you want to signal. The logical ID is // the name of the resource that given in the template. LogicalResourceId *string `type:"string" required:"true"` // The stack name or unique stack ID that includes the resource that you want // to signal. - StackName *string `min:"1" type:"string" required:"true"` + StackName *string `type:"string" required:"true"` // The status of the signal, which is either success or failure. A failure signal // causes AWS CloudFormation to immediately fail the stack creation or update. @@ -2779,7 +1602,13 @@ type SignalResourceInput struct { // groups, specify the instance ID that you are signaling as the unique ID. // If you send multiple signals to a single resource (such as signaling a wait // condition), each signal requires a different unique ID. - UniqueId *string `min:"1" type:"string" required:"true"` + UniqueId *string `type:"string" required:"true"` + + metadataSignalResourceInput `json:"-" xml:"-"` +} + +type metadataSignalResourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2792,36 +1621,12 @@ func (s SignalResourceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SignalResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SignalResourceInput"} - if s.LogicalResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("LogicalResourceId")) - } - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - if s.StackName != nil && len(*s.StackName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - if s.UniqueId == nil { - invalidParams.Add(request.NewErrParamRequired("UniqueId")) - } - if s.UniqueId != nil && len(*s.UniqueId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UniqueId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SignalResourceOutput struct { + metadataSignalResourceOutput `json:"-" xml:"-"` } -type SignalResourceOutput struct { - _ struct{} `type:"structure"` +type metadataSignalResourceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2836,22 +1641,18 @@ func (s SignalResourceOutput) GoString() string { // The Stack data type. type Stack struct { - _ struct{} `type:"structure"` - // The capabilities allowed in the stack. Capabilities []*string `type:"list"` - // The time at which the stack was created. + // Time at which the stack was created. CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` - // A user-defined description associated with the stack. - Description *string `min:"1" type:"string"` + // User defined description associated with the stack. + Description *string `type:"string"` // Boolean to enable or disable rollback on stack creation failures: // - // true: disable rollback - // - // false: enable rollback + // true: disable rollback false: enable rollback DisableRollback *bool `type:"boolean"` // The time the stack was last updated. This field will only be returned if @@ -2879,11 +1680,17 @@ type Stack struct { // Success/failure message associated with the stack status. StackStatusReason *string `type:"string"` - // A list of Tags that specify information about the stack. + // A list of Tags that specify cost allocation information for the stack. Tags []*Tag `type:"list"` // The amount of time within which stack creation should complete. - TimeoutInMinutes *int64 `min:"1" type:"integer"` + TimeoutInMinutes *int64 `type:"integer"` + + metadataStack `json:"-" xml:"-"` +} + +type metadataStack struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2898,8 +1705,6 @@ func (s Stack) GoString() string { // The StackEvent data type. type StackEvent struct { - _ struct{} `type:"structure"` - // The unique ID of this event. EventId *string `type:"string" required:"true"` @@ -2922,7 +1727,7 @@ type StackEvent struct { // Type of resource. (For more information, go to AWS Resource Types Reference // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) // in the AWS CloudFormation User Guide.) - ResourceType *string `min:"1" type:"string"` + ResourceType *string `type:"string"` // The unique ID name of the instance of the stack. StackId *string `type:"string" required:"true"` @@ -2932,6 +1737,12 @@ type StackEvent struct { // Time the status was updated. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + metadataStackEvent `json:"-" xml:"-"` +} + +type metadataStackEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2946,10 +1757,8 @@ func (s StackEvent) GoString() string { // The StackResource data type. type StackResource struct { - _ struct{} `type:"structure"` - // User defined description associated with the resource. - Description *string `min:"1" type:"string"` + Description *string `type:"string"` // The logical name of the resource specified in the template. LogicalResourceId *string `type:"string" required:"true"` @@ -2967,7 +1776,7 @@ type StackResource struct { // Type of resource. (For more information, go to AWS Resource Types Reference // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) // in the AWS CloudFormation User Guide.) - ResourceType *string `min:"1" type:"string" required:"true"` + ResourceType *string `type:"string" required:"true"` // Unique identifier of the stack. StackId *string `type:"string"` @@ -2977,6 +1786,12 @@ type StackResource struct { // Time the status was updated. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + metadataStackResource `json:"-" xml:"-"` +} + +type metadataStackResource struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2991,10 +1806,8 @@ func (s StackResource) GoString() string { // Contains detailed information about the specified stack resource. type StackResourceDetail struct { - _ struct{} `type:"structure"` - // User defined description associated with the resource. - Description *string `min:"1" type:"string"` + Description *string `type:"string"` // Time the status was updated. LastUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` @@ -3020,13 +1833,19 @@ type StackResourceDetail struct { // Type of resource. ((For more information, go to AWS Resource Types Reference // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) // in the AWS CloudFormation User Guide.) - ResourceType *string `min:"1" type:"string" required:"true"` + ResourceType *string `type:"string" required:"true"` // Unique identifier of the stack. StackId *string `type:"string"` // The name associated with the stack. StackName *string `type:"string"` + + metadataStackResourceDetail `json:"-" xml:"-"` +} + +type metadataStackResourceDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3041,8 +1860,6 @@ func (s StackResourceDetail) GoString() string { // Contains high-level information about the specified stack resource. type StackResourceSummary struct { - _ struct{} `type:"structure"` - // Time the status was updated. LastUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` @@ -3062,7 +1879,13 @@ type StackResourceSummary struct { // Type of resource. (For more information, go to AWS Resource Types Reference // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) // in the AWS CloudFormation User Guide.) - ResourceType *string `min:"1" type:"string" required:"true"` + ResourceType *string `type:"string" required:"true"` + + metadataStackResourceSummary `json:"-" xml:"-"` +} + +type metadataStackResourceSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3077,8 +1900,6 @@ func (s StackResourceSummary) GoString() string { // The StackSummary Data Type type StackSummary struct { - _ struct{} `type:"structure"` - // The time the stack was created. CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` @@ -3103,6 +1924,12 @@ type StackSummary struct { // The template description of the template used to create the stack. TemplateDescription *string `type:"string"` + + metadataStackSummary `json:"-" xml:"-"` +} + +type metadataStackSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3115,11 +1942,10 @@ func (s StackSummary) GoString() string { return s.String() } -// The Tag type enables you to specify a key-value pair that can be used to -// store information about an AWS CloudFormation stack. +// The Tag type is used by CreateStack in the Tags parameter. It allows you +// to specify a key/value pair that can be used to store information related +// to cost allocation for an AWS CloudFormation stack. type Tag struct { - _ struct{} `type:"structure"` - // Required. A string used to identify this tag. You can specify a maximum of // 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have // the reserved prefix: aws:. @@ -3128,6 +1954,12 @@ type Tag struct { // Required. A string containing the value for this tag. You can specify a maximum // of 256 characters for a tag value. Value *string `type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3142,13 +1974,11 @@ func (s Tag) GoString() string { // The TemplateParameter data type. type TemplateParameter struct { - _ struct{} `type:"structure"` - // The default value associated with the parameter. DefaultValue *string `type:"string"` // User defined description associated with the parameter. - Description *string `min:"1" type:"string"` + Description *string `type:"string"` // Flag indicating whether the parameter should be displayed as plain text in // logs and UIs. @@ -3156,6 +1986,12 @@ type TemplateParameter struct { // The name associated with the parameter. ParameterKey *string `type:"string"` + + metadataTemplateParameter `json:"-" xml:"-"` +} + +type metadataTemplateParameter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3168,18 +2004,14 @@ func (s TemplateParameter) GoString() string { return s.String() } -// The input for an UpdateStack action. +// The input for UpdateStack action. type UpdateStackInput struct { - _ struct{} `type:"structure"` - // A list of capabilities that you must specify before AWS CloudFormation can - // update certain stacks. Some stack templates might include resources that - // can affect permissions in your AWS account, for example, by creating new - // AWS Identity and Access Management (IAM) users. For those stacks, you must - // explicitly acknowledge their capabilities by specifying this parameter. - // - // Currently, the only valid value is CAPABILITY_IAM, which is required for - // the following resources: AWS::IAM::AccessKey (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html), + // create or update certain stacks. Some stack templates might include resources + // that can affect permissions in your AWS account. For those stacks, you must + // explicitly acknowledge their capabilities by specifying this parameter. Currently, + // the only valid value is CAPABILITY_IAM, which is required for the following + // resources: AWS::IAM::AccessKey (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html), // AWS::IAM::Group (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html), // AWS::IAM::InstanceProfile (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html), // AWS::IAM::Policy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html), @@ -3187,14 +2019,11 @@ type UpdateStackInput struct { // AWS::IAM::User (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html), // and AWS::IAM::UserToGroupAddition (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html). // If your stack template contains these resources, we recommend that you review - // all permissions associated with them and edit their permissions if necessary. - // If your template contains any of the listed resources and you don't specify - // this parameter, this action returns an InsufficientCapabilities error. + // any permissions associated with them. If you don't specify this parameter, + // this action returns an InsufficientCapabilities error. Capabilities []*string `type:"list"` - // Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that - // AWS CloudFormation associates with the stack. Specify an empty list to remove - // all notification topics. + // Update the ARNs for the Amazon SNS topics that are associated with the stack. NotificationARNs []*string `type:"list"` // A list of Parameter structures that specify input parameters for the stack. @@ -3202,17 +2031,6 @@ type UpdateStackInput struct { // data type. Parameters []*Parameter `type:"list"` - // The template resource types that you have permissions to work with for this - // update stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. - // - // If the list of resource types doesn't include a resource that you're updating, - // the stack update fails. By default, AWS CloudFormation grants permissions - // to all resource types. AWS Identity and Access Management (IAM) uses this - // parameter for AWS CloudFormation-specific condition keys in IAM policies. - // For more information, see Controlling Access with AWS Identity and Access - // Management (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html). - ResourceTypes []*string `type:"list"` - // The name or unique stack ID of the stack to update. StackName *string `type:"string" required:"true"` @@ -3222,7 +2040,7 @@ type UpdateStackInput struct { // You might update the stack policy, for example, in order to protect a new // resource that you created during a stack update. If you do not specify a // stack policy, the current policy that is associated with the stack is unchanged. - StackPolicyBody *string `min:"1" type:"string"` + StackPolicyBody *string `type:"string"` // Structure containing the temporary overriding stack policy body. You can // specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL @@ -3231,7 +2049,7 @@ type UpdateStackInput struct { // If you want to update protected resources, specify a temporary overriding // stack policy during this update. If you do not specify a stack policy, the // current policy that is associated with the stack will be used. - StackPolicyDuringUpdateBody *string `min:"1" type:"string"` + StackPolicyDuringUpdateBody *string `type:"string"` // Location of a file containing the temporary overriding stack policy. The // URL must point to a policy (max size: 16KB) located in an S3 bucket in the @@ -3241,7 +2059,7 @@ type UpdateStackInput struct { // If you want to update protected resources, specify a temporary overriding // stack policy during this update. If you do not specify a stack policy, the // current policy that is associated with the stack will be used. - StackPolicyDuringUpdateURL *string `min:"1" type:"string"` + StackPolicyDuringUpdateURL *string `type:"string"` // Location of a file containing the updated stack policy. The URL must point // to a policy (max size: 16KB) located in an S3 bucket in the same region as @@ -3251,16 +2069,7 @@ type UpdateStackInput struct { // You might update the stack policy, for example, in order to protect a new // resource that you created during a stack update. If you do not specify a // stack policy, the current policy that is associated with the stack is unchanged. - StackPolicyURL *string `min:"1" type:"string"` - - // Key-value pairs to associate with this stack. AWS CloudFormation also propagates - // these tags to supported resources in the stack. You can specify a maximum - // number of 10 tags. - // - // If you don't specify this parameter, AWS CloudFormation doesn't modify the - // stack's tags. If you specify an empty value, AWS CloudFormation removes all - // associated tags. - Tags []*Tag `type:"list"` + StackPolicyURL *string `type:"string"` // Structure containing the template body with a minimum length of 1 byte and // a maximum length of 51,200 bytes. (For more information, go to Template Anatomy @@ -3269,20 +2078,26 @@ type UpdateStackInput struct { // // Conditional: You must specify either the TemplateBody or the TemplateURL // parameter, but not both. - TemplateBody *string `min:"1" type:"string"` + TemplateBody *string `type:"string"` // Location of file containing the template body. The URL must point to a template - // that is located in an Amazon S3 bucket. For more information, go to Template - // Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) + // located in an S3 bucket in the same region as the stack. For more information, + // go to Template Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) // in the AWS CloudFormation User Guide. // // Conditional: You must specify either the TemplateBody or the TemplateURL // parameter, but not both. - TemplateURL *string `min:"1" type:"string"` + TemplateURL *string `type:"string"` // Reuse the existing template that is associated with the stack that you are // updating. UsePreviousTemplate *bool `type:"boolean"` + + metadataUpdateStackInput `json:"-" xml:"-"` +} + +type metadataUpdateStackInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3295,43 +2110,16 @@ func (s UpdateStackInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateStackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateStackInput"} - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - if s.StackPolicyBody != nil && len(*s.StackPolicyBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackPolicyBody", 1)) - } - if s.StackPolicyDuringUpdateBody != nil && len(*s.StackPolicyDuringUpdateBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackPolicyDuringUpdateBody", 1)) - } - if s.StackPolicyDuringUpdateURL != nil && len(*s.StackPolicyDuringUpdateURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackPolicyDuringUpdateURL", 1)) - } - if s.StackPolicyURL != nil && len(*s.StackPolicyURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StackPolicyURL", 1)) - } - if s.TemplateBody != nil && len(*s.TemplateBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateBody", 1)) - } - if s.TemplateURL != nil && len(*s.TemplateURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateURL", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output for an UpdateStack action. +// The output for a UpdateStack action. type UpdateStackOutput struct { - _ struct{} `type:"structure"` - // Unique identifier of the stack. StackId *string `type:"string"` + + metadataUpdateStackOutput `json:"-" xml:"-"` +} + +type metadataUpdateStackOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3346,8 +2134,6 @@ func (s UpdateStackOutput) GoString() string { // The input for ValidateTemplate action. type ValidateTemplateInput struct { - _ struct{} `type:"structure"` - // Structure containing the template body with a minimum length of 1 byte and // a maximum length of 51,200 bytes. For more information, go to Template Anatomy // (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) @@ -3355,16 +2141,22 @@ type ValidateTemplateInput struct { // // Conditional: You must pass TemplateURL or TemplateBody. If both are passed, // only TemplateBody is used. - TemplateBody *string `min:"1" type:"string"` + TemplateBody *string `type:"string"` // Location of file containing the template body. The URL must point to a template - // (max size: 460,800 bytes) that is located in an Amazon S3 bucket. For more - // information, go to Template Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) + // (max size: 460,800 bytes) located in an S3 bucket in the same region as the + // stack. For more information, go to Template Anatomy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) // in the AWS CloudFormation User Guide. // // Conditional: You must pass TemplateURL or TemplateBody. If both are passed, // only TemplateBody is used. - TemplateURL *string `min:"1" type:"string"` + TemplateURL *string `type:"string"` + + metadataValidateTemplateInput `json:"-" xml:"-"` +} + +type metadataValidateTemplateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3377,26 +2169,8 @@ func (s ValidateTemplateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ValidateTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ValidateTemplateInput"} - if s.TemplateBody != nil && len(*s.TemplateBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateBody", 1)) - } - if s.TemplateURL != nil && len(*s.TemplateURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateURL", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for ValidateTemplate action. type ValidateTemplateOutput struct { - _ struct{} `type:"structure"` - // The capabilities found within the template. Currently, AWS CloudFormation // supports only the CAPABILITY_IAM capability. If your template contains IAM // resources, you must specify the CAPABILITY_IAM value for this parameter when @@ -3409,10 +2183,16 @@ type ValidateTemplateOutput struct { CapabilitiesReason *string `type:"string"` // The description found within the template. - Description *string `min:"1" type:"string"` + Description *string `type:"string"` // A list of TemplateParameter structures. Parameters []*TemplateParameter `type:"list"` + + metadataValidateTemplateOutput `json:"-" xml:"-"` +} + +type metadataValidateTemplateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3430,68 +2210,6 @@ const ( CapabilityCapabilityIam = "CAPABILITY_IAM" ) -const ( - // @enum ChangeAction - ChangeActionAdd = "Add" - // @enum ChangeAction - ChangeActionModify = "Modify" - // @enum ChangeAction - ChangeActionRemove = "Remove" -) - -const ( - // @enum ChangeSetStatus - ChangeSetStatusCreatePending = "CREATE_PENDING" - // @enum ChangeSetStatus - ChangeSetStatusCreateInProgress = "CREATE_IN_PROGRESS" - // @enum ChangeSetStatus - ChangeSetStatusCreateComplete = "CREATE_COMPLETE" - // @enum ChangeSetStatus - ChangeSetStatusDeleteComplete = "DELETE_COMPLETE" - // @enum ChangeSetStatus - ChangeSetStatusFailed = "FAILED" -) - -const ( - // @enum ChangeSource - ChangeSourceResourceReference = "ResourceReference" - // @enum ChangeSource - ChangeSourceParameterReference = "ParameterReference" - // @enum ChangeSource - ChangeSourceResourceAttribute = "ResourceAttribute" - // @enum ChangeSource - ChangeSourceDirectModification = "DirectModification" - // @enum ChangeSource - ChangeSourceAutomatic = "Automatic" -) - -const ( - // @enum ChangeType - ChangeTypeResource = "Resource" -) - -const ( - // @enum EvaluationType - EvaluationTypeStatic = "Static" - // @enum EvaluationType - EvaluationTypeDynamic = "Dynamic" -) - -const ( - // @enum ExecutionStatus - ExecutionStatusUnavailable = "UNAVAILABLE" - // @enum ExecutionStatus - ExecutionStatusAvailable = "AVAILABLE" - // @enum ExecutionStatus - ExecutionStatusExecuteInProgress = "EXECUTE_IN_PROGRESS" - // @enum ExecutionStatus - ExecutionStatusExecuteComplete = "EXECUTE_COMPLETE" - // @enum ExecutionStatus - ExecutionStatusExecuteFailed = "EXECUTE_FAILED" - // @enum ExecutionStatus - ExecutionStatusObsolete = "OBSOLETE" -) - const ( // @enum OnFailure OnFailureDoNothing = "DO_NOTHING" @@ -3501,39 +2219,6 @@ const ( OnFailureDelete = "DELETE" ) -const ( - // @enum Replacement - ReplacementTrue = "True" - // @enum Replacement - ReplacementFalse = "False" - // @enum Replacement - ReplacementConditional = "Conditional" -) - -const ( - // @enum RequiresRecreation - RequiresRecreationNever = "Never" - // @enum RequiresRecreation - RequiresRecreationConditionally = "Conditionally" - // @enum RequiresRecreation - RequiresRecreationAlways = "Always" -) - -const ( - // @enum ResourceAttribute - ResourceAttributeProperties = "Properties" - // @enum ResourceAttribute - ResourceAttributeMetadata = "Metadata" - // @enum ResourceAttribute - ResourceAttributeCreationPolicy = "CreationPolicy" - // @enum ResourceAttribute - ResourceAttributeUpdatePolicy = "UpdatePolicy" - // @enum ResourceAttribute - ResourceAttributeDeletionPolicy = "DeletionPolicy" - // @enum ResourceAttribute - ResourceAttributeTags = "Tags" -) - const ( // @enum ResourceSignalStatus ResourceSignalStatusSuccess = "SUCCESS" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go index 5f078d68d..428528576 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface.go @@ -14,34 +14,14 @@ type CloudFormationAPI interface { CancelUpdateStack(*cloudformation.CancelUpdateStackInput) (*cloudformation.CancelUpdateStackOutput, error) - ContinueUpdateRollbackRequest(*cloudformation.ContinueUpdateRollbackInput) (*request.Request, *cloudformation.ContinueUpdateRollbackOutput) - - ContinueUpdateRollback(*cloudformation.ContinueUpdateRollbackInput) (*cloudformation.ContinueUpdateRollbackOutput, error) - - CreateChangeSetRequest(*cloudformation.CreateChangeSetInput) (*request.Request, *cloudformation.CreateChangeSetOutput) - - CreateChangeSet(*cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error) - CreateStackRequest(*cloudformation.CreateStackInput) (*request.Request, *cloudformation.CreateStackOutput) CreateStack(*cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) - DeleteChangeSetRequest(*cloudformation.DeleteChangeSetInput) (*request.Request, *cloudformation.DeleteChangeSetOutput) - - DeleteChangeSet(*cloudformation.DeleteChangeSetInput) (*cloudformation.DeleteChangeSetOutput, error) - DeleteStackRequest(*cloudformation.DeleteStackInput) (*request.Request, *cloudformation.DeleteStackOutput) DeleteStack(*cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) - DescribeAccountLimitsRequest(*cloudformation.DescribeAccountLimitsInput) (*request.Request, *cloudformation.DescribeAccountLimitsOutput) - - DescribeAccountLimits(*cloudformation.DescribeAccountLimitsInput) (*cloudformation.DescribeAccountLimitsOutput, error) - - DescribeChangeSetRequest(*cloudformation.DescribeChangeSetInput) (*request.Request, *cloudformation.DescribeChangeSetOutput) - - DescribeChangeSet(*cloudformation.DescribeChangeSetInput) (*cloudformation.DescribeChangeSetOutput, error) - DescribeStackEventsRequest(*cloudformation.DescribeStackEventsInput) (*request.Request, *cloudformation.DescribeStackEventsOutput) DescribeStackEvents(*cloudformation.DescribeStackEventsInput) (*cloudformation.DescribeStackEventsOutput, error) @@ -66,10 +46,6 @@ type CloudFormationAPI interface { EstimateTemplateCost(*cloudformation.EstimateTemplateCostInput) (*cloudformation.EstimateTemplateCostOutput, error) - ExecuteChangeSetRequest(*cloudformation.ExecuteChangeSetInput) (*request.Request, *cloudformation.ExecuteChangeSetOutput) - - ExecuteChangeSet(*cloudformation.ExecuteChangeSetInput) (*cloudformation.ExecuteChangeSetOutput, error) - GetStackPolicyRequest(*cloudformation.GetStackPolicyInput) (*request.Request, *cloudformation.GetStackPolicyOutput) GetStackPolicy(*cloudformation.GetStackPolicyInput) (*cloudformation.GetStackPolicyOutput, error) @@ -82,10 +58,6 @@ type CloudFormationAPI interface { GetTemplateSummary(*cloudformation.GetTemplateSummaryInput) (*cloudformation.GetTemplateSummaryOutput, error) - ListChangeSetsRequest(*cloudformation.ListChangeSetsInput) (*request.Request, *cloudformation.ListChangeSetsOutput) - - ListChangeSets(*cloudformation.ListChangeSetsInput) (*cloudformation.ListChangeSetsOutput, error) - ListStackResourcesRequest(*cloudformation.ListStackResourcesInput) (*request.Request, *cloudformation.ListStackResourcesOutput) ListStackResources(*cloudformation.ListStackResourcesInput) (*cloudformation.ListStackResourcesOutput, error) @@ -114,5 +86,3 @@ type CloudFormationAPI interface { ValidateTemplate(*cloudformation.ValidateTemplateInput) (*cloudformation.ValidateTemplateOutput, error) } - -var _ CloudFormationAPI = (*cloudformation.CloudFormation)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface_test.go new file mode 100644 index 000000000..fd99345b6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudformationiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/cloudformation" + "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*cloudformationiface.CloudFormationAPI)(nil), cloudformation.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go index 695686a05..1b3c6ed1e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudformation" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudFormation_CancelUpdateStack() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.CancelUpdateStackInput{ StackName: aws.String("StackName"), // Required @@ -34,79 +33,8 @@ func ExampleCloudFormation_CancelUpdateStack() { fmt.Println(resp) } -func ExampleCloudFormation_ContinueUpdateRollback() { - svc := cloudformation.New(session.New()) - - params := &cloudformation.ContinueUpdateRollbackInput{ - StackName: aws.String("StackNameOrId"), // Required - } - resp, err := svc.ContinueUpdateRollback(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudFormation_CreateChangeSet() { - svc := cloudformation.New(session.New()) - - params := &cloudformation.CreateChangeSetInput{ - ChangeSetName: aws.String("ChangeSetName"), // Required - StackName: aws.String("StackNameOrId"), // Required - Capabilities: []*string{ - aws.String("Capability"), // Required - // More values... - }, - ClientToken: aws.String("ClientToken"), - Description: aws.String("Description"), - NotificationARNs: []*string{ - aws.String("NotificationARN"), // Required - // More values... - }, - Parameters: []*cloudformation.Parameter{ - { // Required - ParameterKey: aws.String("ParameterKey"), - ParameterValue: aws.String("ParameterValue"), - UsePreviousValue: aws.Bool(true), - }, - // More values... - }, - ResourceTypes: []*string{ - aws.String("ResourceType"), // Required - // More values... - }, - Tags: []*cloudformation.Tag{ - { // Required - Key: aws.String("TagKey"), - Value: aws.String("TagValue"), - }, - // More values... - }, - TemplateBody: aws.String("TemplateBody"), - TemplateURL: aws.String("TemplateURL"), - UsePreviousTemplate: aws.Bool(true), - } - resp, err := svc.CreateChangeSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudFormation_CreateStack() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.CreateStackInput{ StackName: aws.String("StackName"), // Required @@ -128,10 +56,6 @@ func ExampleCloudFormation_CreateStack() { }, // More values... }, - ResourceTypes: []*string{ - aws.String("ResourceType"), // Required - // More values... - }, StackPolicyBody: aws.String("StackPolicyBody"), StackPolicyURL: aws.String("StackPolicyURL"), Tags: []*cloudformation.Tag{ @@ -158,35 +82,11 @@ func ExampleCloudFormation_CreateStack() { fmt.Println(resp) } -func ExampleCloudFormation_DeleteChangeSet() { - svc := cloudformation.New(session.New()) - - params := &cloudformation.DeleteChangeSetInput{ - ChangeSetName: aws.String("ChangeSetNameOrId"), // Required - StackName: aws.String("StackNameOrId"), - } - resp, err := svc.DeleteChangeSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudFormation_DeleteStack() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.DeleteStackInput{ StackName: aws.String("StackName"), // Required - RetainResources: []*string{ - aws.String("LogicalResourceId"), // Required - // More values... - }, } resp, err := svc.DeleteStack(params) @@ -201,48 +101,8 @@ func ExampleCloudFormation_DeleteStack() { fmt.Println(resp) } -func ExampleCloudFormation_DescribeAccountLimits() { - svc := cloudformation.New(session.New()) - - params := &cloudformation.DescribeAccountLimitsInput{ - NextToken: aws.String("NextToken"), - } - resp, err := svc.DescribeAccountLimits(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudFormation_DescribeChangeSet() { - svc := cloudformation.New(session.New()) - - params := &cloudformation.DescribeChangeSetInput{ - ChangeSetName: aws.String("ChangeSetNameOrId"), // Required - NextToken: aws.String("NextToken"), - StackName: aws.String("StackNameOrId"), - } - resp, err := svc.DescribeChangeSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudFormation_DescribeStackEvents() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.DescribeStackEventsInput{ NextToken: aws.String("NextToken"), @@ -262,7 +122,7 @@ func ExampleCloudFormation_DescribeStackEvents() { } func ExampleCloudFormation_DescribeStackResource() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.DescribeStackResourceInput{ LogicalResourceId: aws.String("LogicalResourceId"), // Required @@ -282,7 +142,7 @@ func ExampleCloudFormation_DescribeStackResource() { } func ExampleCloudFormation_DescribeStackResources() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.DescribeStackResourcesInput{ LogicalResourceId: aws.String("LogicalResourceId"), @@ -303,7 +163,7 @@ func ExampleCloudFormation_DescribeStackResources() { } func ExampleCloudFormation_DescribeStacks() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.DescribeStacksInput{ NextToken: aws.String("NextToken"), @@ -323,7 +183,7 @@ func ExampleCloudFormation_DescribeStacks() { } func ExampleCloudFormation_EstimateTemplateCost() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.EstimateTemplateCostInput{ Parameters: []*cloudformation.Parameter{ @@ -350,28 +210,8 @@ func ExampleCloudFormation_EstimateTemplateCost() { fmt.Println(resp) } -func ExampleCloudFormation_ExecuteChangeSet() { - svc := cloudformation.New(session.New()) - - params := &cloudformation.ExecuteChangeSetInput{ - ChangeSetName: aws.String("ChangeSetNameOrId"), // Required - StackName: aws.String("StackNameOrId"), - } - resp, err := svc.ExecuteChangeSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudFormation_GetStackPolicy() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.GetStackPolicyInput{ StackName: aws.String("StackName"), // Required @@ -390,7 +230,7 @@ func ExampleCloudFormation_GetStackPolicy() { } func ExampleCloudFormation_GetTemplate() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.GetTemplateInput{ StackName: aws.String("StackName"), // Required @@ -409,7 +249,7 @@ func ExampleCloudFormation_GetTemplate() { } func ExampleCloudFormation_GetTemplateSummary() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.GetTemplateSummaryInput{ StackName: aws.String("StackNameOrId"), @@ -429,28 +269,8 @@ func ExampleCloudFormation_GetTemplateSummary() { fmt.Println(resp) } -func ExampleCloudFormation_ListChangeSets() { - svc := cloudformation.New(session.New()) - - params := &cloudformation.ListChangeSetsInput{ - StackName: aws.String("StackNameOrId"), // Required - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListChangeSets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudFormation_ListStackResources() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.ListStackResourcesInput{ StackName: aws.String("StackName"), // Required @@ -470,7 +290,7 @@ func ExampleCloudFormation_ListStackResources() { } func ExampleCloudFormation_ListStacks() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.ListStacksInput{ NextToken: aws.String("NextToken"), @@ -493,7 +313,7 @@ func ExampleCloudFormation_ListStacks() { } func ExampleCloudFormation_SetStackPolicy() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.SetStackPolicyInput{ StackName: aws.String("StackName"), // Required @@ -514,7 +334,7 @@ func ExampleCloudFormation_SetStackPolicy() { } func ExampleCloudFormation_SignalResource() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.SignalResourceInput{ LogicalResourceId: aws.String("LogicalResourceId"), // Required @@ -536,7 +356,7 @@ func ExampleCloudFormation_SignalResource() { } func ExampleCloudFormation_UpdateStack() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.UpdateStackInput{ StackName: aws.String("StackName"), // Required @@ -556,24 +376,13 @@ func ExampleCloudFormation_UpdateStack() { }, // More values... }, - ResourceTypes: []*string{ - aws.String("ResourceType"), // Required - // More values... - }, StackPolicyBody: aws.String("StackPolicyBody"), StackPolicyDuringUpdateBody: aws.String("StackPolicyDuringUpdateBody"), StackPolicyDuringUpdateURL: aws.String("StackPolicyDuringUpdateURL"), StackPolicyURL: aws.String("StackPolicyURL"), - Tags: []*cloudformation.Tag{ - { // Required - Key: aws.String("TagKey"), - Value: aws.String("TagValue"), - }, - // More values... - }, - TemplateBody: aws.String("TemplateBody"), - TemplateURL: aws.String("TemplateURL"), - UsePreviousTemplate: aws.Bool(true), + TemplateBody: aws.String("TemplateBody"), + TemplateURL: aws.String("TemplateURL"), + UsePreviousTemplate: aws.Bool(true), } resp, err := svc.UpdateStack(params) @@ -589,7 +398,7 @@ func ExampleCloudFormation_UpdateStack() { } func ExampleCloudFormation_ValidateTemplate() { - svc := cloudformation.New(session.New()) + svc := cloudformation.New(nil) params := &cloudformation.ValidateTemplateInput{ TemplateBody: aws.String("TemplateBody"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go index 8e9ca6521..83e230bbf 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go @@ -4,11 +4,12 @@ package cloudformation import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // AWS CloudFormation enables you to create and manage AWS infrastructure deployments @@ -28,65 +29,41 @@ import ( // // Amazon CloudFormation makes use of other AWS products. If you need additional // technical information about a specific AWS product, you can find the product's -// technical documentation at http://docs.aws.amazon.com/ (http://docs.aws.amazon.com/). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// technical documentation at http://aws.amazon.com/documentation/ (http://aws.amazon.com/documentation/). type CloudFormation struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudformation" - -// New creates a new instance of the CloudFormation client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CloudFormation client from just a session. -// svc := cloudformation.New(mySession) -// -// // Create a CloudFormation client with additional configuration -// svc := cloudformation.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudFormation { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudFormation { - svc := &CloudFormation{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2010-05-15", - }, - handlers, - ), +// New returns a new CloudFormation client. +func New(config *aws.Config) *CloudFormation { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "cloudformation", + APIVersion: "2010-05-15", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CloudFormation{service} } // newRequest creates a new request for a CloudFormation operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go deleted file mode 100644 index f8ca67514..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudformation/waiters.go +++ /dev/null @@ -1,279 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package cloudformation - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *CloudFormation) WaitUntilStackCreateComplete(input *DescribeStacksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeStacks", - Delay: 30, - MaxAttempts: 120, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Stacks[].StackStatus", - Expected: "CREATE_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "CREATE_FAILED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "DELETE_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "DELETE_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "DELETE_FAILED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_FAILED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "error", - Argument: "", - Expected: "ValidationError", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *CloudFormation) WaitUntilStackDeleteComplete(input *DescribeStacksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeStacks", - Delay: 30, - MaxAttempts: 120, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Stacks[].StackStatus", - Expected: "DELETE_COMPLETE", - }, - { - State: "success", - Matcher: "error", - Argument: "", - Expected: "ValidationError", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "DELETE_FAILED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "CREATE_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "CREATE_FAILED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "CREATE_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_FAILED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "ROLLBACK_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_FAILED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_IN_PROGRESS", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *CloudFormation) WaitUntilStackExists(input *DescribeStacksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeStacks", - Delay: 5, - MaxAttempts: 20, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 200, - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "ValidationError", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *CloudFormation) WaitUntilStackUpdateComplete(input *DescribeStacksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeStacks", - Delay: 30, - MaxAttempts: 120, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_FAILED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_FAILED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Stacks[].StackStatus", - Expected: "UPDATE_ROLLBACK_IN_PROGRESS", - }, - { - State: "failure", - Matcher: "error", - Argument: "", - Expected: "ValidationError", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go index 246909143..328b2eeed 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go @@ -4,23 +4,20 @@ package cloudfront import ( - "fmt" "time" "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/private/protocol/restxml" ) -const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIdentity2016_01_28" +const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIdentity2015_04_17" // CreateCloudFrontOriginAccessIdentityRequest generates a request for the CreateCloudFrontOriginAccessIdentity operation. func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCloudFrontOriginAccessIdentityInput) (req *request.Request, output *CreateCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opCreateCloudFrontOriginAccessIdentity, HTTPMethod: "POST", - HTTPPath: "/2016-01-28/origin-access-identity/cloudfront", + HTTPPath: "/2015-04-17/origin-access-identity/cloudfront", } if input == nil { @@ -40,14 +37,14 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentity(input *CreateCloudFron return out, err } -const opCreateDistribution = "CreateDistribution2016_01_28" +const opCreateDistribution = "CreateDistribution2015_04_17" // CreateDistributionRequest generates a request for the CreateDistribution operation. func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) (req *request.Request, output *CreateDistributionOutput) { op := &request.Operation{ Name: opCreateDistribution, HTTPMethod: "POST", - HTTPPath: "/2016-01-28/distribution", + HTTPPath: "/2015-04-17/distribution", } if input == nil { @@ -67,14 +64,14 @@ func (c *CloudFront) CreateDistribution(input *CreateDistributionInput) (*Create return out, err } -const opCreateInvalidation = "CreateInvalidation2016_01_28" +const opCreateInvalidation = "CreateInvalidation2015_04_17" // CreateInvalidationRequest generates a request for the CreateInvalidation operation. func (c *CloudFront) CreateInvalidationRequest(input *CreateInvalidationInput) (req *request.Request, output *CreateInvalidationOutput) { op := &request.Operation{ Name: opCreateInvalidation, HTTPMethod: "POST", - HTTPPath: "/2016-01-28/distribution/{DistributionId}/invalidation", + HTTPPath: "/2015-04-17/distribution/{DistributionId}/invalidation", } if input == nil { @@ -94,14 +91,14 @@ func (c *CloudFront) CreateInvalidation(input *CreateInvalidationInput) (*Create return out, err } -const opCreateStreamingDistribution = "CreateStreamingDistribution2016_01_28" +const opCreateStreamingDistribution = "CreateStreamingDistribution2015_04_17" // CreateStreamingDistributionRequest generates a request for the CreateStreamingDistribution operation. func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDistributionInput) (req *request.Request, output *CreateStreamingDistributionOutput) { op := &request.Operation{ Name: opCreateStreamingDistribution, HTTPMethod: "POST", - HTTPPath: "/2016-01-28/streaming-distribution", + HTTPPath: "/2015-04-17/streaming-distribution", } if input == nil { @@ -121,14 +118,14 @@ func (c *CloudFront) CreateStreamingDistribution(input *CreateStreamingDistribut return out, err } -const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIdentity2016_01_28" +const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIdentity2015_04_17" // DeleteCloudFrontOriginAccessIdentityRequest generates a request for the DeleteCloudFrontOriginAccessIdentity operation. func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCloudFrontOriginAccessIdentityInput) (req *request.Request, output *DeleteCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opDeleteCloudFrontOriginAccessIdentity, HTTPMethod: "DELETE", - HTTPPath: "/2016-01-28/origin-access-identity/cloudfront/{Id}", + HTTPPath: "/2015-04-17/origin-access-identity/cloudfront/{Id}", } if input == nil { @@ -136,8 +133,6 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCl } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteCloudFrontOriginAccessIdentityOutput{} req.Data = output return @@ -150,14 +145,14 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentity(input *DeleteCloudFron return out, err } -const opDeleteDistribution = "DeleteDistribution2016_01_28" +const opDeleteDistribution = "DeleteDistribution2015_04_17" // DeleteDistributionRequest generates a request for the DeleteDistribution operation. func (c *CloudFront) DeleteDistributionRequest(input *DeleteDistributionInput) (req *request.Request, output *DeleteDistributionOutput) { op := &request.Operation{ Name: opDeleteDistribution, HTTPMethod: "DELETE", - HTTPPath: "/2016-01-28/distribution/{Id}", + HTTPPath: "/2015-04-17/distribution/{Id}", } if input == nil { @@ -165,8 +160,6 @@ func (c *CloudFront) DeleteDistributionRequest(input *DeleteDistributionInput) ( } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteDistributionOutput{} req.Data = output return @@ -179,14 +172,14 @@ func (c *CloudFront) DeleteDistribution(input *DeleteDistributionInput) (*Delete return out, err } -const opDeleteStreamingDistribution = "DeleteStreamingDistribution2016_01_28" +const opDeleteStreamingDistribution = "DeleteStreamingDistribution2015_04_17" // DeleteStreamingDistributionRequest generates a request for the DeleteStreamingDistribution operation. func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDistributionInput) (req *request.Request, output *DeleteStreamingDistributionOutput) { op := &request.Operation{ Name: opDeleteStreamingDistribution, HTTPMethod: "DELETE", - HTTPPath: "/2016-01-28/streaming-distribution/{Id}", + HTTPPath: "/2015-04-17/streaming-distribution/{Id}", } if input == nil { @@ -194,8 +187,6 @@ func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDi } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteStreamingDistributionOutput{} req.Data = output return @@ -208,14 +199,14 @@ func (c *CloudFront) DeleteStreamingDistribution(input *DeleteStreamingDistribut return out, err } -const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity2016_01_28" +const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity2015_04_17" // GetCloudFrontOriginAccessIdentityRequest generates a request for the GetCloudFrontOriginAccessIdentity operation. func (c *CloudFront) GetCloudFrontOriginAccessIdentityRequest(input *GetCloudFrontOriginAccessIdentityInput) (req *request.Request, output *GetCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opGetCloudFrontOriginAccessIdentity, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/origin-access-identity/cloudfront/{Id}", + HTTPPath: "/2015-04-17/origin-access-identity/cloudfront/{Id}", } if input == nil { @@ -235,14 +226,14 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentity(input *GetCloudFrontOrigi return out, err } -const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIdentityConfig2016_01_28" +const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIdentityConfig2015_04_17" // GetCloudFrontOriginAccessIdentityConfigRequest generates a request for the GetCloudFrontOriginAccessIdentityConfig operation. func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(input *GetCloudFrontOriginAccessIdentityConfigInput) (req *request.Request, output *GetCloudFrontOriginAccessIdentityConfigOutput) { op := &request.Operation{ Name: opGetCloudFrontOriginAccessIdentityConfig, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/origin-access-identity/cloudfront/{Id}/config", + HTTPPath: "/2015-04-17/origin-access-identity/cloudfront/{Id}/config", } if input == nil { @@ -262,14 +253,14 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfig(input *GetCloudFron return out, err } -const opGetDistribution = "GetDistribution2016_01_28" +const opGetDistribution = "GetDistribution2015_04_17" // GetDistributionRequest generates a request for the GetDistribution operation. func (c *CloudFront) GetDistributionRequest(input *GetDistributionInput) (req *request.Request, output *GetDistributionOutput) { op := &request.Operation{ Name: opGetDistribution, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/distribution/{Id}", + HTTPPath: "/2015-04-17/distribution/{Id}", } if input == nil { @@ -289,14 +280,14 @@ func (c *CloudFront) GetDistribution(input *GetDistributionInput) (*GetDistribut return out, err } -const opGetDistributionConfig = "GetDistributionConfig2016_01_28" +const opGetDistributionConfig = "GetDistributionConfig2015_04_17" // GetDistributionConfigRequest generates a request for the GetDistributionConfig operation. func (c *CloudFront) GetDistributionConfigRequest(input *GetDistributionConfigInput) (req *request.Request, output *GetDistributionConfigOutput) { op := &request.Operation{ Name: opGetDistributionConfig, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/distribution/{Id}/config", + HTTPPath: "/2015-04-17/distribution/{Id}/config", } if input == nil { @@ -316,14 +307,14 @@ func (c *CloudFront) GetDistributionConfig(input *GetDistributionConfigInput) (* return out, err } -const opGetInvalidation = "GetInvalidation2016_01_28" +const opGetInvalidation = "GetInvalidation2015_04_17" // GetInvalidationRequest generates a request for the GetInvalidation operation. func (c *CloudFront) GetInvalidationRequest(input *GetInvalidationInput) (req *request.Request, output *GetInvalidationOutput) { op := &request.Operation{ Name: opGetInvalidation, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/distribution/{DistributionId}/invalidation/{Id}", + HTTPPath: "/2015-04-17/distribution/{DistributionId}/invalidation/{Id}", } if input == nil { @@ -343,14 +334,14 @@ func (c *CloudFront) GetInvalidation(input *GetInvalidationInput) (*GetInvalidat return out, err } -const opGetStreamingDistribution = "GetStreamingDistribution2016_01_28" +const opGetStreamingDistribution = "GetStreamingDistribution2015_04_17" // GetStreamingDistributionRequest generates a request for the GetStreamingDistribution operation. func (c *CloudFront) GetStreamingDistributionRequest(input *GetStreamingDistributionInput) (req *request.Request, output *GetStreamingDistributionOutput) { op := &request.Operation{ Name: opGetStreamingDistribution, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/streaming-distribution/{Id}", + HTTPPath: "/2015-04-17/streaming-distribution/{Id}", } if input == nil { @@ -370,14 +361,14 @@ func (c *CloudFront) GetStreamingDistribution(input *GetStreamingDistributionInp return out, err } -const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2016_01_28" +const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2015_04_17" // GetStreamingDistributionConfigRequest generates a request for the GetStreamingDistributionConfig operation. func (c *CloudFront) GetStreamingDistributionConfigRequest(input *GetStreamingDistributionConfigInput) (req *request.Request, output *GetStreamingDistributionConfigOutput) { op := &request.Operation{ Name: opGetStreamingDistributionConfig, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/streaming-distribution/{Id}/config", + HTTPPath: "/2015-04-17/streaming-distribution/{Id}/config", } if input == nil { @@ -397,14 +388,14 @@ func (c *CloudFront) GetStreamingDistributionConfig(input *GetStreamingDistribut return out, err } -const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdentities2016_01_28" +const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdentities2015_04_17" // ListCloudFrontOriginAccessIdentitiesRequest generates a request for the ListCloudFrontOriginAccessIdentities operation. func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListCloudFrontOriginAccessIdentitiesInput) (req *request.Request, output *ListCloudFrontOriginAccessIdentitiesOutput) { op := &request.Operation{ Name: opListCloudFrontOriginAccessIdentities, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/origin-access-identity/cloudfront", + HTTPPath: "/2015-04-17/origin-access-identity/cloudfront", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"CloudFrontOriginAccessIdentityList.NextMarker"}, @@ -432,20 +423,19 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentities(input *ListCloudFrontO func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesPages(input *ListCloudFrontOriginAccessIdentitiesInput, fn func(p *ListCloudFrontOriginAccessIdentitiesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListCloudFrontOriginAccessIdentitiesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListCloudFrontOriginAccessIdentitiesOutput), lastPage) }) } -const opListDistributions = "ListDistributions2016_01_28" +const opListDistributions = "ListDistributions2015_04_17" // ListDistributionsRequest generates a request for the ListDistributions operation. func (c *CloudFront) ListDistributionsRequest(input *ListDistributionsInput) (req *request.Request, output *ListDistributionsOutput) { op := &request.Operation{ Name: opListDistributions, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/distribution", + HTTPPath: "/2015-04-17/distribution", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"DistributionList.NextMarker"}, @@ -473,47 +463,19 @@ func (c *CloudFront) ListDistributions(input *ListDistributionsInput) (*ListDist func (c *CloudFront) ListDistributionsPages(input *ListDistributionsInput, fn func(p *ListDistributionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListDistributionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListDistributionsOutput), lastPage) }) } -const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2016_01_28" - -// ListDistributionsByWebACLIdRequest generates a request for the ListDistributionsByWebACLId operation. -func (c *CloudFront) ListDistributionsByWebACLIdRequest(input *ListDistributionsByWebACLIdInput) (req *request.Request, output *ListDistributionsByWebACLIdOutput) { - op := &request.Operation{ - Name: opListDistributionsByWebACLId, - HTTPMethod: "GET", - HTTPPath: "/2016-01-28/distributionsByWebACLId/{WebACLId}", - } - - if input == nil { - input = &ListDistributionsByWebACLIdInput{} - } - - req = c.newRequest(op, input, output) - output = &ListDistributionsByWebACLIdOutput{} - req.Data = output - return -} - -// List the distributions that are associated with a specified AWS WAF web ACL. -func (c *CloudFront) ListDistributionsByWebACLId(input *ListDistributionsByWebACLIdInput) (*ListDistributionsByWebACLIdOutput, error) { - req, out := c.ListDistributionsByWebACLIdRequest(input) - err := req.Send() - return out, err -} - -const opListInvalidations = "ListInvalidations2016_01_28" +const opListInvalidations = "ListInvalidations2015_04_17" // ListInvalidationsRequest generates a request for the ListInvalidations operation. func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (req *request.Request, output *ListInvalidationsOutput) { op := &request.Operation{ Name: opListInvalidations, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/distribution/{DistributionId}/invalidation", + HTTPPath: "/2015-04-17/distribution/{DistributionId}/invalidation", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"InvalidationList.NextMarker"}, @@ -541,20 +503,19 @@ func (c *CloudFront) ListInvalidations(input *ListInvalidationsInput) (*ListInva func (c *CloudFront) ListInvalidationsPages(input *ListInvalidationsInput, fn func(p *ListInvalidationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListInvalidationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListInvalidationsOutput), lastPage) }) } -const opListStreamingDistributions = "ListStreamingDistributions2016_01_28" +const opListStreamingDistributions = "ListStreamingDistributions2015_04_17" // ListStreamingDistributionsRequest generates a request for the ListStreamingDistributions operation. func (c *CloudFront) ListStreamingDistributionsRequest(input *ListStreamingDistributionsInput) (req *request.Request, output *ListStreamingDistributionsOutput) { op := &request.Operation{ Name: opListStreamingDistributions, HTTPMethod: "GET", - HTTPPath: "/2016-01-28/streaming-distribution", + HTTPPath: "/2015-04-17/streaming-distribution", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"StreamingDistributionList.NextMarker"}, @@ -582,20 +543,19 @@ func (c *CloudFront) ListStreamingDistributions(input *ListStreamingDistribution func (c *CloudFront) ListStreamingDistributionsPages(input *ListStreamingDistributionsInput, fn func(p *ListStreamingDistributionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListStreamingDistributionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListStreamingDistributionsOutput), lastPage) }) } -const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIdentity2016_01_28" +const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIdentity2015_04_17" // UpdateCloudFrontOriginAccessIdentityRequest generates a request for the UpdateCloudFrontOriginAccessIdentity operation. func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityRequest(input *UpdateCloudFrontOriginAccessIdentityInput) (req *request.Request, output *UpdateCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opUpdateCloudFrontOriginAccessIdentity, HTTPMethod: "PUT", - HTTPPath: "/2016-01-28/origin-access-identity/cloudfront/{Id}/config", + HTTPPath: "/2015-04-17/origin-access-identity/cloudfront/{Id}/config", } if input == nil { @@ -615,14 +575,14 @@ func (c *CloudFront) UpdateCloudFrontOriginAccessIdentity(input *UpdateCloudFron return out, err } -const opUpdateDistribution = "UpdateDistribution2016_01_28" +const opUpdateDistribution = "UpdateDistribution2015_04_17" // UpdateDistributionRequest generates a request for the UpdateDistribution operation. func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) (req *request.Request, output *UpdateDistributionOutput) { op := &request.Operation{ Name: opUpdateDistribution, HTTPMethod: "PUT", - HTTPPath: "/2016-01-28/distribution/{Id}/config", + HTTPPath: "/2015-04-17/distribution/{Id}/config", } if input == nil { @@ -642,14 +602,14 @@ func (c *CloudFront) UpdateDistribution(input *UpdateDistributionInput) (*Update return out, err } -const opUpdateStreamingDistribution = "UpdateStreamingDistribution2016_01_28" +const opUpdateStreamingDistribution = "UpdateStreamingDistribution2015_04_17" // UpdateStreamingDistributionRequest generates a request for the UpdateStreamingDistribution operation. func (c *CloudFront) UpdateStreamingDistributionRequest(input *UpdateStreamingDistributionInput) (req *request.Request, output *UpdateStreamingDistributionOutput) { op := &request.Operation{ Name: opUpdateStreamingDistribution, HTTPMethod: "PUT", - HTTPPath: "/2016-01-28/streaming-distribution/{Id}/config", + HTTPPath: "/2015-04-17/streaming-distribution/{Id}/config", } if input == nil { @@ -674,8 +634,6 @@ func (c *CloudFront) UpdateStreamingDistribution(input *UpdateStreamingDistribut // of the other cache behaviors for this distribution. These are accounts that // you want to allow to create signed URLs for private content. type ActiveTrustedSigners struct { - _ struct{} `type:"structure"` - // Each active trusted signer. Enabled *bool `type:"boolean" required:"true"` @@ -688,6 +646,12 @@ type ActiveTrustedSigners struct { // example, if three cache behaviors all list the same three AWS accounts, the // value of Quantity for ActiveTrustedSigners will be 3. Quantity *int64 `type:"integer" required:"true"` + + metadataActiveTrustedSigners `json:"-" xml:"-"` +} + +type metadataActiveTrustedSigners struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -703,14 +667,18 @@ func (s ActiveTrustedSigners) GoString() string { // A complex type that contains information about CNAMEs (alternate domain names), // if any, for this distribution. type Aliases struct { - _ struct{} `type:"structure"` - // Optional: A complex type that contains CNAME elements, if any, for this distribution. // If Quantity is 0, you can omit Items. Items []*string `locationNameList:"CNAME" type:"list"` // The number of CNAMEs, if any, for this distribution. Quantity *int64 `type:"integer" required:"true"` + + metadataAliases `json:"-" xml:"-"` +} + +type metadataAliases struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -723,19 +691,6 @@ func (s Aliases) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Aliases) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Aliases"} - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that controls which HTTP methods CloudFront processes and // forwards to your Amazon S3 bucket or your custom origin. There are three // choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards @@ -745,8 +700,6 @@ func (s *Aliases) Validate() error { // so users can't perform operations that you don't want them to. For example, // you may not want users to have permission to delete objects from your origin. type AllowedMethods struct { - _ struct{} `type:"structure"` - // A complex type that controls whether CloudFront caches the response to requests // using the specified HTTP methods. There are two choices: - CloudFront caches // responses to GET and HEAD requests. - CloudFront caches responses to GET, @@ -763,6 +716,12 @@ type AllowedMethods struct { // Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD and OPTIONS // requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests). Quantity *int64 `type:"integer" required:"true"` + + metadataAllowedMethods `json:"-" xml:"-"` +} + +type metadataAllowedMethods struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -775,27 +734,6 @@ func (s AllowedMethods) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AllowedMethods) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AllowedMethods"} - if s.Items == nil { - invalidParams.Add(request.NewErrParamRequired("Items")) - } - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - if s.CachedMethods != nil { - if err := s.CachedMethods.Validate(); err != nil { - invalidParams.AddNested("CachedMethods", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that describes how CloudFront processes requests. You can // create up to 10 cache behaviors.You must create at least as many cache behaviors // (including the default cache behavior) as you have origins if you want CloudFront @@ -811,8 +749,6 @@ func (s *AllowedMethods) Validate() error { // one or more cache behaviors, update the distribution configuration and specify // all of the cache behaviors that you want to include in the updated distribution. type CacheBehavior struct { - _ struct{} `type:"structure"` - // A complex type that controls which HTTP methods CloudFront processes and // forwards to your Amazon S3 bucket or your custom origin. There are three // choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards @@ -823,23 +759,6 @@ type CacheBehavior struct { // you may not want users to have permission to delete objects from your origin. AllowedMethods *AllowedMethods `type:"structure"` - // Whether you want CloudFront to automatically compress content for web requests - // that include Accept-Encoding: gzip in the request header. If so, specify - // true; if not, specify false. CloudFront compresses files larger than 1000 - // bytes and less than 1 megabyte for both Amazon S3 and custom origins. When - // a CloudFront edge location is unusually busy, some files might not be compressed. - // The value of the Content-Type header must be on the list of file types that - // CloudFront will compress. For the current list, see Serving Compressed Content - // (http://docs.aws.amazon.com/console/cloudfront/compressed-content) in the - // Amazon CloudFront Developer Guide. If you configure CloudFront to compress - // content, CloudFront removes the ETag response header from the objects that - // it compresses. The ETag header indicates that the version in a CloudFront - // edge cache is identical to the version on the origin server, but after compression - // the two versions are no longer identical. As a result, for compressed objects, - // CloudFront can't use the ETag header to determine whether an expired object - // in the CloudFront edge cache is still the latest version. - Compress *bool `type:"boolean"` - // If you don't configure your origin to add a Cache-Control max-age directive // or an Expires header, DefaultTTL is the default amount of time (in seconds) // that an object is in a CloudFront cache before CloudFront forwards another @@ -908,6 +827,12 @@ type CacheBehavior struct { // URL, specify redirect-to-https. The viewer then resubmits the request using // the HTTPS URL. ViewerProtocolPolicy *string `type:"string" required:"true" enum:"ViewerProtocolPolicy"` + + metadataCacheBehavior `json:"-" xml:"-"` +} + +type metadataCacheBehavior struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -920,59 +845,20 @@ func (s CacheBehavior) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CacheBehavior) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CacheBehavior"} - if s.ForwardedValues == nil { - invalidParams.Add(request.NewErrParamRequired("ForwardedValues")) - } - if s.MinTTL == nil { - invalidParams.Add(request.NewErrParamRequired("MinTTL")) - } - if s.PathPattern == nil { - invalidParams.Add(request.NewErrParamRequired("PathPattern")) - } - if s.TargetOriginId == nil { - invalidParams.Add(request.NewErrParamRequired("TargetOriginId")) - } - if s.TrustedSigners == nil { - invalidParams.Add(request.NewErrParamRequired("TrustedSigners")) - } - if s.ViewerProtocolPolicy == nil { - invalidParams.Add(request.NewErrParamRequired("ViewerProtocolPolicy")) - } - if s.AllowedMethods != nil { - if err := s.AllowedMethods.Validate(); err != nil { - invalidParams.AddNested("AllowedMethods", err.(request.ErrInvalidParams)) - } - } - if s.ForwardedValues != nil { - if err := s.ForwardedValues.Validate(); err != nil { - invalidParams.AddNested("ForwardedValues", err.(request.ErrInvalidParams)) - } - } - if s.TrustedSigners != nil { - if err := s.TrustedSigners.Validate(); err != nil { - invalidParams.AddNested("TrustedSigners", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains zero or more CacheBehavior elements. type CacheBehaviors struct { - _ struct{} `type:"structure"` - // Optional: A complex type that contains cache behaviors for this distribution. // If Quantity is 0, you can omit Items. Items []*CacheBehavior `locationNameList:"CacheBehavior" type:"list"` // The number of cache behaviors for this distribution. Quantity *int64 `type:"integer" required:"true"` + + metadataCacheBehaviors `json:"-" xml:"-"` +} + +type metadataCacheBehaviors struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -985,29 +871,6 @@ func (s CacheBehaviors) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CacheBehaviors) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CacheBehaviors"} - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - if s.Items != nil { - for i, v := range s.Items { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Items", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that controls whether CloudFront caches the response to requests // using the specified HTTP methods. There are two choices: - CloudFront caches // responses to GET and HEAD requests. - CloudFront caches responses to GET, @@ -1015,8 +878,6 @@ func (s *CacheBehaviors) Validate() error { // you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers // and Origin headers for the responses to be cached correctly. type CachedMethods struct { - _ struct{} `type:"structure"` - // A complex type that contains the HTTP methods that you want CloudFront to // cache responses to. Items []*string `locationNameList:"Method" type:"list" required:"true"` @@ -1025,6 +886,12 @@ type CachedMethods struct { // Valid values are 2 (for caching responses to GET and HEAD requests) and 3 // (for caching responses to GET, HEAD, and OPTIONS requests). Quantity *int64 `type:"integer" required:"true"` + + metadataCachedMethods `json:"-" xml:"-"` +} + +type metadataCachedMethods struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1037,33 +904,21 @@ func (s CachedMethods) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CachedMethods) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CachedMethods"} - if s.Items == nil { - invalidParams.Add(request.NewErrParamRequired("Items")) - } - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that specifies the whitelisted cookies, if any, that you want // CloudFront to forward to your origin that is associated with this cache behavior. type CookieNames struct { - _ struct{} `type:"structure"` - // Optional: A complex type that contains whitelisted cookies for this cache // behavior. If Quantity is 0, you can omit Items. Items []*string `locationNameList:"Name" type:"list"` // The number of whitelisted cookies for this cache behavior. Quantity *int64 `type:"integer" required:"true"` + + metadataCookieNames `json:"-" xml:"-"` +} + +type metadataCookieNames struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1076,24 +931,9 @@ func (s CookieNames) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CookieNames) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CookieNames"} - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that specifies the cookie preferences associated with this // cache behavior. type CookiePreference struct { - _ struct{} `type:"structure"` - // Use this element to specify whether you want CloudFront to forward cookies // to the origin that is associated with this cache behavior. You can specify // all, none or whitelist. If you choose All, CloudFront forwards all cookies @@ -1103,6 +943,12 @@ type CookiePreference struct { // A complex type that specifies the whitelisted cookies, if any, that you want // CloudFront to forward to your origin that is associated with this cache behavior. WhitelistedNames *CookieNames `type:"structure"` + + metadataCookiePreference `json:"-" xml:"-"` +} + +type metadataCookiePreference struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1115,30 +961,16 @@ func (s CookiePreference) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CookiePreference) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CookiePreference"} - if s.Forward == nil { - invalidParams.Add(request.NewErrParamRequired("Forward")) - } - if s.WhitelistedNames != nil { - if err := s.WhitelistedNames.Validate(); err != nil { - invalidParams.AddNested("WhitelistedNames", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The request to create a new origin access identity. type CreateCloudFrontOriginAccessIdentityInput struct { - _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` - // The origin access identity's configuration information. CloudFrontOriginAccessIdentityConfig *OriginAccessIdentityConfig `locationName:"CloudFrontOriginAccessIdentityConfig" type:"structure" required:"true"` + + metadataCreateCloudFrontOriginAccessIdentityInput `json:"-" xml:"-"` +} + +type metadataCreateCloudFrontOriginAccessIdentityInput struct { + SDKShapeTraits bool `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` } // String returns the string representation @@ -1151,28 +983,8 @@ func (s CreateCloudFrontOriginAccessIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCloudFrontOriginAccessIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCloudFrontOriginAccessIdentityInput"} - if s.CloudFrontOriginAccessIdentityConfig == nil { - invalidParams.Add(request.NewErrParamRequired("CloudFrontOriginAccessIdentityConfig")) - } - if s.CloudFrontOriginAccessIdentityConfig != nil { - if err := s.CloudFrontOriginAccessIdentityConfig.Validate(); err != nil { - invalidParams.AddNested("CloudFrontOriginAccessIdentityConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type CreateCloudFrontOriginAccessIdentityOutput struct { - _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentity"` - // The origin access identity's information. CloudFrontOriginAccessIdentity *OriginAccessIdentity `type:"structure"` @@ -1182,6 +994,12 @@ type CreateCloudFrontOriginAccessIdentityOutput struct { // The fully qualified URI of the new origin access identity just created. For // example: https://cloudfront.amazonaws.com/2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A. Location *string `location:"header" locationName:"Location" type:"string"` + + metadataCreateCloudFrontOriginAccessIdentityOutput `json:"-" xml:"-"` +} + +type metadataCreateCloudFrontOriginAccessIdentityOutput struct { + SDKShapeTraits bool `type:"structure" payload:"CloudFrontOriginAccessIdentity"` } // String returns the string representation @@ -1196,10 +1014,14 @@ func (s CreateCloudFrontOriginAccessIdentityOutput) GoString() string { // The request to create a new distribution. type CreateDistributionInput struct { - _ struct{} `type:"structure" payload:"DistributionConfig"` - // The distribution's configuration information. DistributionConfig *DistributionConfig `locationName:"DistributionConfig" type:"structure" required:"true"` + + metadataCreateDistributionInput `json:"-" xml:"-"` +} + +type metadataCreateDistributionInput struct { + SDKShapeTraits bool `type:"structure" payload:"DistributionConfig"` } // String returns the string representation @@ -1212,28 +1034,8 @@ func (s CreateDistributionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDistributionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDistributionInput"} - if s.DistributionConfig == nil { - invalidParams.Add(request.NewErrParamRequired("DistributionConfig")) - } - if s.DistributionConfig != nil { - if err := s.DistributionConfig.Validate(); err != nil { - invalidParams.AddNested("DistributionConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type CreateDistributionOutput struct { - _ struct{} `type:"structure" payload:"Distribution"` - // The distribution's information. Distribution *Distribution `type:"structure"` @@ -1243,6 +1045,12 @@ type CreateDistributionOutput struct { // The fully qualified URI of the new distribution resource just created. For // example: https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5. Location *string `location:"header" locationName:"Location" type:"string"` + + metadataCreateDistributionOutput `json:"-" xml:"-"` +} + +type metadataCreateDistributionOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Distribution"` } // String returns the string representation @@ -1257,13 +1065,17 @@ func (s CreateDistributionOutput) GoString() string { // The request to create an invalidation. type CreateInvalidationInput struct { - _ struct{} `type:"structure" payload:"InvalidationBatch"` - // The distribution's id. DistributionId *string `location:"uri" locationName:"DistributionId" type:"string" required:"true"` // The batch information for the invalidation. InvalidationBatch *InvalidationBatch `locationName:"InvalidationBatch" type:"structure" required:"true"` + + metadataCreateInvalidationInput `json:"-" xml:"-"` +} + +type metadataCreateInvalidationInput struct { + SDKShapeTraits bool `type:"structure" payload:"InvalidationBatch"` } // String returns the string representation @@ -1276,37 +1088,20 @@ func (s CreateInvalidationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateInvalidationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateInvalidationInput"} - if s.DistributionId == nil { - invalidParams.Add(request.NewErrParamRequired("DistributionId")) - } - if s.InvalidationBatch == nil { - invalidParams.Add(request.NewErrParamRequired("InvalidationBatch")) - } - if s.InvalidationBatch != nil { - if err := s.InvalidationBatch.Validate(); err != nil { - invalidParams.AddNested("InvalidationBatch", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type CreateInvalidationOutput struct { - _ struct{} `type:"structure" payload:"Invalidation"` - // The invalidation's information. Invalidation *Invalidation `type:"structure"` // The fully qualified URI of the distribution and invalidation batch request, // including the Invalidation ID. Location *string `location:"header" locationName:"Location" type:"string"` + + metadataCreateInvalidationOutput `json:"-" xml:"-"` +} + +type metadataCreateInvalidationOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Invalidation"` } // String returns the string representation @@ -1321,10 +1116,14 @@ func (s CreateInvalidationOutput) GoString() string { // The request to create a new streaming distribution. type CreateStreamingDistributionInput struct { - _ struct{} `type:"structure" payload:"StreamingDistributionConfig"` - // The streaming distribution's configuration information. StreamingDistributionConfig *StreamingDistributionConfig `locationName:"StreamingDistributionConfig" type:"structure" required:"true"` + + metadataCreateStreamingDistributionInput `json:"-" xml:"-"` +} + +type metadataCreateStreamingDistributionInput struct { + SDKShapeTraits bool `type:"structure" payload:"StreamingDistributionConfig"` } // String returns the string representation @@ -1337,28 +1136,8 @@ func (s CreateStreamingDistributionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateStreamingDistributionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateStreamingDistributionInput"} - if s.StreamingDistributionConfig == nil { - invalidParams.Add(request.NewErrParamRequired("StreamingDistributionConfig")) - } - if s.StreamingDistributionConfig != nil { - if err := s.StreamingDistributionConfig.Validate(); err != nil { - invalidParams.AddNested("StreamingDistributionConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type CreateStreamingDistributionOutput struct { - _ struct{} `type:"structure" payload:"StreamingDistribution"` - // The current version of the streaming distribution created. ETag *string `location:"header" locationName:"ETag" type:"string"` @@ -1368,6 +1147,12 @@ type CreateStreamingDistributionOutput struct { // The streaming distribution's information. StreamingDistribution *StreamingDistribution `type:"structure"` + + metadataCreateStreamingDistributionOutput `json:"-" xml:"-"` +} + +type metadataCreateStreamingDistributionOutput struct { + SDKShapeTraits bool `type:"structure" payload:"StreamingDistribution"` } // String returns the string representation @@ -1392,8 +1177,6 @@ func (s CreateStreamingDistributionOutput) GoString() string { // specify all of the custom error responses that you want to include in the // updated distribution. type CustomErrorResponse struct { - _ struct{} `type:"structure"` - // The minimum amount of time you want HTTP error codes to stay in CloudFront // caches before CloudFront queries your origin to see whether the object has // been updated. You can specify a value from 0 to 31,536,000. @@ -1415,6 +1198,12 @@ type CustomErrorResponse struct { // Do not URL encode any other characters in the path, or CloudFront will not // return the custom error page to the viewer. ResponsePagePath *string `type:"string"` + + metadataCustomErrorResponse `json:"-" xml:"-"` +} + +type metadataCustomErrorResponse struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1427,112 +1216,34 @@ func (s CustomErrorResponse) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CustomErrorResponse) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CustomErrorResponse"} - if s.ErrorCode == nil { - invalidParams.Add(request.NewErrParamRequired("ErrorCode")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains zero or more CustomErrorResponse elements. type CustomErrorResponses struct { - _ struct{} `type:"structure"` - // Optional: A complex type that contains custom error responses for this distribution. // If Quantity is 0, you can omit Items. Items []*CustomErrorResponse `locationNameList:"CustomErrorResponse" type:"list"` // The number of custom error responses for this distribution. Quantity *int64 `type:"integer" required:"true"` -} - -// String returns the string representation -func (s CustomErrorResponses) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CustomErrorResponses) GoString() string { - return s.String() -} -// Validate inspects the fields of the type to determine if they are valid. -func (s *CustomErrorResponses) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CustomErrorResponses"} - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - if s.Items != nil { - for i, v := range s.Items { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Items", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCustomErrorResponses `json:"-" xml:"-"` } -// A complex type that contains the list of Custom Headers for each origin. -type CustomHeaders struct { - _ struct{} `type:"structure"` - - // A complex type that contains the custom headers for this Origin. - Items []*OriginCustomHeader `locationNameList:"OriginCustomHeader" type:"list"` - - // The number of custom headers for this origin. - Quantity *int64 `type:"integer" required:"true"` +type metadataCustomErrorResponses struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CustomHeaders) String() string { +func (s CustomErrorResponses) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CustomHeaders) GoString() string { +func (s CustomErrorResponses) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CustomHeaders) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CustomHeaders"} - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - if s.Items != nil { - for i, v := range s.Items { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Items", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A customer origin. type CustomOriginConfig struct { - _ struct{} `type:"structure"` - // The HTTP port the custom origin listens on. HTTPPort *int64 `type:"integer" required:"true"` @@ -1542,9 +1253,11 @@ type CustomOriginConfig struct { // The origin protocol policy to apply to your origin. OriginProtocolPolicy *string `type:"string" required:"true" enum:"OriginProtocolPolicy"` - // The SSL/TLS protocols that you want CloudFront to use when communicating - // with your origin over HTTPS. - OriginSslProtocols *OriginSslProtocols `type:"structure"` + metadataCustomOriginConfig `json:"-" xml:"-"` +} + +type metadataCustomOriginConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1557,36 +1270,10 @@ func (s CustomOriginConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CustomOriginConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CustomOriginConfig"} - if s.HTTPPort == nil { - invalidParams.Add(request.NewErrParamRequired("HTTPPort")) - } - if s.HTTPSPort == nil { - invalidParams.Add(request.NewErrParamRequired("HTTPSPort")) - } - if s.OriginProtocolPolicy == nil { - invalidParams.Add(request.NewErrParamRequired("OriginProtocolPolicy")) - } - if s.OriginSslProtocols != nil { - if err := s.OriginSslProtocols.Validate(); err != nil { - invalidParams.AddNested("OriginSslProtocols", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that describes the default cache behavior if you do not specify // a CacheBehavior element or if files don't match any of the values of PathPattern // in CacheBehavior elements.You must create exactly one default cache behavior. type DefaultCacheBehavior struct { - _ struct{} `type:"structure"` - // A complex type that controls which HTTP methods CloudFront processes and // forwards to your Amazon S3 bucket or your custom origin. There are three // choices: - CloudFront forwards only GET and HEAD requests. - CloudFront forwards @@ -1597,23 +1284,6 @@ type DefaultCacheBehavior struct { // you may not want users to have permission to delete objects from your origin. AllowedMethods *AllowedMethods `type:"structure"` - // Whether you want CloudFront to automatically compress content for web requests - // that include Accept-Encoding: gzip in the request header. If so, specify - // true; if not, specify false. CloudFront compresses files larger than 1000 - // bytes and less than 1 megabyte for both Amazon S3 and custom origins. When - // a CloudFront edge location is unusually busy, some files might not be compressed. - // The value of the Content-Type header must be on the list of file types that - // CloudFront will compress. For the current list, see Serving Compressed Content - // (http://docs.aws.amazon.com/console/cloudfront/compressed-content) in the - // Amazon CloudFront Developer Guide. If you configure CloudFront to compress - // content, CloudFront removes the ETag response header from the objects that - // it compresses. The ETag header indicates that the version in a CloudFront - // edge cache is identical to the version on the origin server, but after compression - // the two versions are no longer identical. As a result, for compressed objects, - // CloudFront can't use the ETag header to determine whether an expired object - // in the CloudFront edge cache is still the latest version. - Compress *bool `type:"boolean"` - // If you don't configure your origin to add a Cache-Control max-age directive // or an Expires header, DefaultTTL is the default amount of time (in seconds) // that an object is in a CloudFront cache before CloudFront forwards another @@ -1673,6 +1343,12 @@ type DefaultCacheBehavior struct { // URL, specify redirect-to-https. The viewer then resubmits the request using // the HTTPS URL. ViewerProtocolPolicy *string `type:"string" required:"true" enum:"ViewerProtocolPolicy"` + + metadataDefaultCacheBehavior `json:"-" xml:"-"` +} + +type metadataDefaultCacheBehavior struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1685,56 +1361,20 @@ func (s DefaultCacheBehavior) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DefaultCacheBehavior) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DefaultCacheBehavior"} - if s.ForwardedValues == nil { - invalidParams.Add(request.NewErrParamRequired("ForwardedValues")) - } - if s.MinTTL == nil { - invalidParams.Add(request.NewErrParamRequired("MinTTL")) - } - if s.TargetOriginId == nil { - invalidParams.Add(request.NewErrParamRequired("TargetOriginId")) - } - if s.TrustedSigners == nil { - invalidParams.Add(request.NewErrParamRequired("TrustedSigners")) - } - if s.ViewerProtocolPolicy == nil { - invalidParams.Add(request.NewErrParamRequired("ViewerProtocolPolicy")) - } - if s.AllowedMethods != nil { - if err := s.AllowedMethods.Validate(); err != nil { - invalidParams.AddNested("AllowedMethods", err.(request.ErrInvalidParams)) - } - } - if s.ForwardedValues != nil { - if err := s.ForwardedValues.Validate(); err != nil { - invalidParams.AddNested("ForwardedValues", err.(request.ErrInvalidParams)) - } - } - if s.TrustedSigners != nil { - if err := s.TrustedSigners.Validate(); err != nil { - invalidParams.AddNested("TrustedSigners", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The request to delete a origin access identity. type DeleteCloudFrontOriginAccessIdentityInput struct { - _ struct{} `type:"structure"` - // The origin access identity's id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` // The value of the ETag header you received from a previous GET or PUT request. // For example: E2QWRUHAPOMQZL. IfMatch *string `location:"header" locationName:"If-Match" type:"string"` + + metadataDeleteCloudFrontOriginAccessIdentityInput `json:"-" xml:"-"` +} + +type metadataDeleteCloudFrontOriginAccessIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1747,21 +1387,12 @@ func (s DeleteCloudFrontOriginAccessIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCloudFrontOriginAccessIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCloudFrontOriginAccessIdentityInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteCloudFrontOriginAccessIdentityOutput struct { + metadataDeleteCloudFrontOriginAccessIdentityOutput `json:"-" xml:"-"` } -type DeleteCloudFrontOriginAccessIdentityOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteCloudFrontOriginAccessIdentityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1776,14 +1407,18 @@ func (s DeleteCloudFrontOriginAccessIdentityOutput) GoString() string { // The request to delete a distribution. type DeleteDistributionInput struct { - _ struct{} `type:"structure"` - // The distribution id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` // The value of the ETag header you received when you disabled the distribution. // For example: E2QWRUHAPOMQZL. IfMatch *string `location:"header" locationName:"If-Match" type:"string"` + + metadataDeleteDistributionInput `json:"-" xml:"-"` +} + +type metadataDeleteDistributionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1796,21 +1431,12 @@ func (s DeleteDistributionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDistributionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDistributionInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteDistributionOutput struct { + metadataDeleteDistributionOutput `json:"-" xml:"-"` } -type DeleteDistributionOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteDistributionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1825,14 +1451,18 @@ func (s DeleteDistributionOutput) GoString() string { // The request to delete a streaming distribution. type DeleteStreamingDistributionInput struct { - _ struct{} `type:"structure"` - // The distribution id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` // The value of the ETag header you received when you disabled the streaming // distribution. For example: E2QWRUHAPOMQZL. IfMatch *string `location:"header" locationName:"If-Match" type:"string"` + + metadataDeleteStreamingDistributionInput `json:"-" xml:"-"` +} + +type metadataDeleteStreamingDistributionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1845,21 +1475,12 @@ func (s DeleteStreamingDistributionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteStreamingDistributionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteStreamingDistributionInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteStreamingDistributionOutput struct { + metadataDeleteStreamingDistributionOutput `json:"-" xml:"-"` } -type DeleteStreamingDistributionOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteStreamingDistributionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1874,8 +1495,6 @@ func (s DeleteStreamingDistributionOutput) GoString() string { // A distribution. type Distribution struct { - _ struct{} `type:"structure"` - // CloudFront automatically adds this element to the response only if you've // set up the distribution to serve private content with signed URLs. The element // lists the key pair IDs that CloudFront is aware of for each trusted signer. @@ -1905,6 +1524,12 @@ type Distribution struct { // the status is Deployed, the distribution's information is fully propagated // throughout the Amazon CloudFront system. Status *string `type:"string" required:"true"` + + metadataDistribution `json:"-" xml:"-"` +} + +type metadataDistribution struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1919,8 +1544,6 @@ func (s Distribution) GoString() string { // A distribution Configuration. type DistributionConfig struct { - _ struct{} `type:"structure"` - // A complex type that contains information about CNAMEs (alternate domain names), // if any, for this distribution. Aliases *Aliases `type:"structure"` @@ -1981,9 +1604,11 @@ type DistributionConfig struct { // distribution. ViewerCertificate *ViewerCertificate `type:"structure"` - // (Optional) If you're using AWS WAF to filter CloudFront requests, the Id - // of the AWS WAF web ACL that is associated with the distribution. - WebACLId *string `type:"string"` + metadataDistributionConfig `json:"-" xml:"-"` +} + +type metadataDistributionConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1996,70 +1621,8 @@ func (s DistributionConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DistributionConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DistributionConfig"} - if s.CallerReference == nil { - invalidParams.Add(request.NewErrParamRequired("CallerReference")) - } - if s.Comment == nil { - invalidParams.Add(request.NewErrParamRequired("Comment")) - } - if s.DefaultCacheBehavior == nil { - invalidParams.Add(request.NewErrParamRequired("DefaultCacheBehavior")) - } - if s.Enabled == nil { - invalidParams.Add(request.NewErrParamRequired("Enabled")) - } - if s.Origins == nil { - invalidParams.Add(request.NewErrParamRequired("Origins")) - } - if s.Aliases != nil { - if err := s.Aliases.Validate(); err != nil { - invalidParams.AddNested("Aliases", err.(request.ErrInvalidParams)) - } - } - if s.CacheBehaviors != nil { - if err := s.CacheBehaviors.Validate(); err != nil { - invalidParams.AddNested("CacheBehaviors", err.(request.ErrInvalidParams)) - } - } - if s.CustomErrorResponses != nil { - if err := s.CustomErrorResponses.Validate(); err != nil { - invalidParams.AddNested("CustomErrorResponses", err.(request.ErrInvalidParams)) - } - } - if s.DefaultCacheBehavior != nil { - if err := s.DefaultCacheBehavior.Validate(); err != nil { - invalidParams.AddNested("DefaultCacheBehavior", err.(request.ErrInvalidParams)) - } - } - if s.Logging != nil { - if err := s.Logging.Validate(); err != nil { - invalidParams.AddNested("Logging", err.(request.ErrInvalidParams)) - } - } - if s.Origins != nil { - if err := s.Origins.Validate(); err != nil { - invalidParams.AddNested("Origins", err.(request.ErrInvalidParams)) - } - } - if s.Restrictions != nil { - if err := s.Restrictions.Validate(); err != nil { - invalidParams.AddNested("Restrictions", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A distribution list. type DistributionList struct { - _ struct{} `type:"structure"` - // A flag that indicates whether more distributions remain to be listed. If // your results were truncated, you can make a follow-up pagination request // using the Marker request parameter to retrieve more distributions in the @@ -2083,6 +1646,12 @@ type DistributionList struct { // The number of distributions that were created by the current AWS account. Quantity *int64 `type:"integer" required:"true"` + + metadataDistributionList `json:"-" xml:"-"` +} + +type metadataDistributionList struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2097,8 +1666,6 @@ func (s DistributionList) GoString() string { // A summary of the information for an Amazon CloudFront distribution. type DistributionSummary struct { - _ struct{} `type:"structure"` - // A complex type that contains information about CNAMEs (alternate domain names), // if any, for this distribution. Aliases *Aliases `type:"structure" required:"true"` @@ -2147,8 +1714,11 @@ type DistributionSummary struct { // distribution. ViewerCertificate *ViewerCertificate `type:"structure" required:"true"` - // The Web ACL Id (if any) associated with the distribution. - WebACLId *string `type:"string" required:"true"` + metadataDistributionSummary `json:"-" xml:"-"` +} + +type metadataDistributionSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2164,8 +1734,6 @@ func (s DistributionSummary) GoString() string { // A complex type that specifies how CloudFront handles query strings, cookies // and headers. type ForwardedValues struct { - _ struct{} `type:"structure"` - // A complex type that specifies how CloudFront handles cookies. Cookies *CookiePreference `type:"structure" required:"true"` @@ -2177,6 +1745,12 @@ type ForwardedValues struct { // that is associated with this cache behavior. If so, specify true; if not, // specify false. QueryString *bool `type:"boolean" required:"true"` + + metadataForwardedValues `json:"-" xml:"-"` +} + +type metadataForwardedValues struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2189,32 +1763,6 @@ func (s ForwardedValues) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ForwardedValues) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ForwardedValues"} - if s.Cookies == nil { - invalidParams.Add(request.NewErrParamRequired("Cookies")) - } - if s.QueryString == nil { - invalidParams.Add(request.NewErrParamRequired("QueryString")) - } - if s.Cookies != nil { - if err := s.Cookies.Validate(); err != nil { - invalidParams.AddNested("Cookies", err.(request.ErrInvalidParams)) - } - } - if s.Headers != nil { - if err := s.Headers.Validate(); err != nil { - invalidParams.AddNested("Headers", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that controls the countries in which your content is distributed. // For more information about geo restriction, go to Customizing Error Responses // in the Amazon CloudFront Developer Guide. CloudFront determines the location @@ -2222,8 +1770,6 @@ func (s *ForwardedValues) Validate() error { // of these databases, see How accurate are your GeoIP databases? on the MaxMind // website. type GeoRestriction struct { - _ struct{} `type:"structure"` - // A complex type that contains a Location element for each country in which // you want CloudFront either to distribute your content (whitelist) or not // distribute your content (blacklist). The Location element is a two-letter, @@ -2247,6 +1793,12 @@ type GeoRestriction struct { // content. - whitelist: The Location elements specify the countries in which // you want CloudFront to distribute your content. RestrictionType *string `type:"string" required:"true" enum:"GeoRestrictionType"` + + metadataGeoRestriction `json:"-" xml:"-"` +} + +type metadataGeoRestriction struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2259,28 +1811,16 @@ func (s GeoRestriction) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GeoRestriction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GeoRestriction"} - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - if s.RestrictionType == nil { - invalidParams.Add(request.NewErrParamRequired("RestrictionType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The request to get an origin access identity's configuration. type GetCloudFrontOriginAccessIdentityConfigInput struct { - _ struct{} `type:"structure"` - // The identity's id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataGetCloudFrontOriginAccessIdentityConfigInput `json:"-" xml:"-"` +} + +type metadataGetCloudFrontOriginAccessIdentityConfigInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2293,28 +1833,19 @@ func (s GetCloudFrontOriginAccessIdentityConfigInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetCloudFrontOriginAccessIdentityConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCloudFrontOriginAccessIdentityConfigInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type GetCloudFrontOriginAccessIdentityConfigOutput struct { - _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` - // The origin access identity's configuration information. CloudFrontOriginAccessIdentityConfig *OriginAccessIdentityConfig `type:"structure"` // The current version of the configuration. For example: E2QWRUHAPOMQZL. ETag *string `location:"header" locationName:"ETag" type:"string"` + + metadataGetCloudFrontOriginAccessIdentityConfigOutput `json:"-" xml:"-"` +} + +type metadataGetCloudFrontOriginAccessIdentityConfigOutput struct { + SDKShapeTraits bool `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` } // String returns the string representation @@ -2329,10 +1860,14 @@ func (s GetCloudFrontOriginAccessIdentityConfigOutput) GoString() string { // The request to get an origin access identity's information. type GetCloudFrontOriginAccessIdentityInput struct { - _ struct{} `type:"structure"` - // The identity's id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataGetCloudFrontOriginAccessIdentityInput `json:"-" xml:"-"` +} + +type metadataGetCloudFrontOriginAccessIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2345,29 +1880,20 @@ func (s GetCloudFrontOriginAccessIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetCloudFrontOriginAccessIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCloudFrontOriginAccessIdentityInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type GetCloudFrontOriginAccessIdentityOutput struct { - _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentity"` - // The origin access identity's information. CloudFrontOriginAccessIdentity *OriginAccessIdentity `type:"structure"` // The current version of the origin access identity's information. For example: // E2QWRUHAPOMQZL. ETag *string `location:"header" locationName:"ETag" type:"string"` + + metadataGetCloudFrontOriginAccessIdentityOutput `json:"-" xml:"-"` +} + +type metadataGetCloudFrontOriginAccessIdentityOutput struct { + SDKShapeTraits bool `type:"structure" payload:"CloudFrontOriginAccessIdentity"` } // String returns the string representation @@ -2382,10 +1908,14 @@ func (s GetCloudFrontOriginAccessIdentityOutput) GoString() string { // The request to get a distribution configuration. type GetDistributionConfigInput struct { - _ struct{} `type:"structure"` - // The distribution's id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataGetDistributionConfigInput `json:"-" xml:"-"` +} + +type metadataGetDistributionConfigInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2398,28 +1928,19 @@ func (s GetDistributionConfigInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDistributionConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDistributionConfigInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type GetDistributionConfigOutput struct { - _ struct{} `type:"structure" payload:"DistributionConfig"` - // The distribution's configuration information. DistributionConfig *DistributionConfig `type:"structure"` // The current version of the configuration. For example: E2QWRUHAPOMQZL. ETag *string `location:"header" locationName:"ETag" type:"string"` + + metadataGetDistributionConfigOutput `json:"-" xml:"-"` +} + +type metadataGetDistributionConfigOutput struct { + SDKShapeTraits bool `type:"structure" payload:"DistributionConfig"` } // String returns the string representation @@ -2434,10 +1955,14 @@ func (s GetDistributionConfigOutput) GoString() string { // The request to get a distribution's information. type GetDistributionInput struct { - _ struct{} `type:"structure"` - // The distribution's id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataGetDistributionInput `json:"-" xml:"-"` +} + +type metadataGetDistributionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2450,28 +1975,19 @@ func (s GetDistributionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDistributionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDistributionInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type GetDistributionOutput struct { - _ struct{} `type:"structure" payload:"Distribution"` - // The distribution's information. Distribution *Distribution `type:"structure"` // The current version of the distribution's information. For example: E2QWRUHAPOMQZL. ETag *string `location:"header" locationName:"ETag" type:"string"` + + metadataGetDistributionOutput `json:"-" xml:"-"` +} + +type metadataGetDistributionOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Distribution"` } // String returns the string representation @@ -2486,13 +2002,17 @@ func (s GetDistributionOutput) GoString() string { // The request to get an invalidation's information. type GetInvalidationInput struct { - _ struct{} `type:"structure"` - // The distribution's id. DistributionId *string `location:"uri" locationName:"DistributionId" type:"string" required:"true"` // The invalidation's id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataGetInvalidationInput `json:"-" xml:"-"` +} + +type metadataGetInvalidationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2505,28 +2025,16 @@ func (s GetInvalidationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetInvalidationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetInvalidationInput"} - if s.DistributionId == nil { - invalidParams.Add(request.NewErrParamRequired("DistributionId")) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type GetInvalidationOutput struct { - _ struct{} `type:"structure" payload:"Invalidation"` - // The invalidation's information. Invalidation *Invalidation `type:"structure"` + + metadataGetInvalidationOutput `json:"-" xml:"-"` +} + +type metadataGetInvalidationOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Invalidation"` } // String returns the string representation @@ -2541,10 +2049,14 @@ func (s GetInvalidationOutput) GoString() string { // To request to get a streaming distribution configuration. type GetStreamingDistributionConfigInput struct { - _ struct{} `type:"structure"` - // The streaming distribution's id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataGetStreamingDistributionConfigInput `json:"-" xml:"-"` +} + +type metadataGetStreamingDistributionConfigInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2557,28 +2069,19 @@ func (s GetStreamingDistributionConfigInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetStreamingDistributionConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetStreamingDistributionConfigInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type GetStreamingDistributionConfigOutput struct { - _ struct{} `type:"structure" payload:"StreamingDistributionConfig"` - // The current version of the configuration. For example: E2QWRUHAPOMQZL. ETag *string `location:"header" locationName:"ETag" type:"string"` // The streaming distribution's configuration information. StreamingDistributionConfig *StreamingDistributionConfig `type:"structure"` + + metadataGetStreamingDistributionConfigOutput `json:"-" xml:"-"` +} + +type metadataGetStreamingDistributionConfigOutput struct { + SDKShapeTraits bool `type:"structure" payload:"StreamingDistributionConfig"` } // String returns the string representation @@ -2593,10 +2096,14 @@ func (s GetStreamingDistributionConfigOutput) GoString() string { // The request to get a streaming distribution's information. type GetStreamingDistributionInput struct { - _ struct{} `type:"structure"` - // The streaming distribution's id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataGetStreamingDistributionInput `json:"-" xml:"-"` +} + +type metadataGetStreamingDistributionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2609,29 +2116,20 @@ func (s GetStreamingDistributionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetStreamingDistributionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetStreamingDistributionInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type GetStreamingDistributionOutput struct { - _ struct{} `type:"structure" payload:"StreamingDistribution"` - // The current version of the streaming distribution's information. For example: // E2QWRUHAPOMQZL. ETag *string `location:"header" locationName:"ETag" type:"string"` // The streaming distribution's information. StreamingDistribution *StreamingDistribution `type:"structure"` + + metadataGetStreamingDistributionOutput `json:"-" xml:"-"` +} + +type metadataGetStreamingDistributionOutput struct { + SDKShapeTraits bool `type:"structure" payload:"StreamingDistribution"` } // String returns the string representation @@ -2653,8 +2151,6 @@ func (s GetStreamingDistributionOutput) GoString() string { // on the Product header. CloudFront forwards the Product header to the origin // and caches the response from the origin once for each header value. type Headers struct { - _ struct{} `type:"structure"` - // Optional: A complex type that contains a Name element for each header that // you want CloudFront to forward to the origin and to vary on for this cache // behavior. If Quantity is 0, omit Items. @@ -2668,6 +2164,12 @@ type Headers struct { // to the origin or to vary on any headers, specify 0 for Quantity and omit // Items. Quantity *int64 `type:"integer" required:"true"` + + metadataHeaders `json:"-" xml:"-"` +} + +type metadataHeaders struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2680,23 +2182,8 @@ func (s Headers) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Headers) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Headers"} - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // An invalidation. type Invalidation struct { - _ struct{} `type:"structure"` - // The date and time the invalidation request was first made. CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` @@ -2709,6 +2196,12 @@ type Invalidation struct { // The status of the invalidation request. When the invalidation batch is finished, // the status is Completed. Status *string `type:"string" required:"true"` + + metadataInvalidation `json:"-" xml:"-"` +} + +type metadataInvalidation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2723,8 +2216,6 @@ func (s Invalidation) GoString() string { // An invalidation batch. type InvalidationBatch struct { - _ struct{} `type:"structure"` - // A unique name that ensures the request can't be replayed. If the CallerReference // is new (no matter the content of the Path object), a new distribution is // created. If the CallerReference is a value you already sent in a previous @@ -2743,6 +2234,12 @@ type InvalidationBatch struct { // URL encode those characters. Do not URL encode any other characters in the // path, or CloudFront will not invalidate the old version of the updated object. Paths *Paths `type:"structure" required:"true"` + + metadataInvalidationBatch `json:"-" xml:"-"` +} + +type metadataInvalidationBatch struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2755,31 +2252,8 @@ func (s InvalidationBatch) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InvalidationBatch) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InvalidationBatch"} - if s.CallerReference == nil { - invalidParams.Add(request.NewErrParamRequired("CallerReference")) - } - if s.Paths == nil { - invalidParams.Add(request.NewErrParamRequired("Paths")) - } - if s.Paths != nil { - if err := s.Paths.Validate(); err != nil { - invalidParams.AddNested("Paths", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // An invalidation list. type InvalidationList struct { - _ struct{} `type:"structure"` - // A flag that indicates whether more invalidation batch requests remain to // be listed. If your results were truncated, you can make a follow-up pagination // request using the Marker request parameter to retrieve more invalidation @@ -2803,6 +2277,12 @@ type InvalidationList struct { // The number of invalidation batches that were created by the current AWS account. Quantity *int64 `type:"integer" required:"true"` + + metadataInvalidationList `json:"-" xml:"-"` +} + +type metadataInvalidationList struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2817,8 +2297,6 @@ func (s InvalidationList) GoString() string { // Summary of an invalidation request. type InvalidationSummary struct { - _ struct{} `type:"structure"` - CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` // The unique ID for an invalidation request. @@ -2826,6 +2304,12 @@ type InvalidationSummary struct { // The status of an invalidation request. Status *string `type:"string" required:"true"` + + metadataInvalidationSummary `json:"-" xml:"-"` +} + +type metadataInvalidationSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2841,14 +2325,18 @@ func (s InvalidationSummary) GoString() string { // A complex type that lists the active CloudFront key pairs, if any, that are // associated with AwsAccountNumber. type KeyPairIds struct { - _ struct{} `type:"structure"` - // A complex type that lists the active CloudFront key pairs, if any, that are // associated with AwsAccountNumber. Items []*string `locationNameList:"KeyPairId" type:"list"` // The number of active CloudFront key pairs for AwsAccountNumber. Quantity *int64 `type:"integer" required:"true"` + + metadataKeyPairIds `json:"-" xml:"-"` +} + +type metadataKeyPairIds struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2863,8 +2351,6 @@ func (s KeyPairIds) GoString() string { // The request to list origin access identities. type ListCloudFrontOriginAccessIdentitiesInput struct { - _ struct{} `type:"structure"` - // Use this when paginating results to indicate where to begin in your list // of origin access identities. The results include identities in the list that // occur after the marker. To get the next page of results, set the Marker to @@ -2874,6 +2360,12 @@ type ListCloudFrontOriginAccessIdentitiesInput struct { // The maximum number of origin access identities you want in the response body. MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` + + metadataListCloudFrontOriginAccessIdentitiesInput `json:"-" xml:"-"` +} + +type metadataListCloudFrontOriginAccessIdentitiesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2888,100 +2380,43 @@ func (s ListCloudFrontOriginAccessIdentitiesInput) GoString() string { // The returned result of the corresponding request. type ListCloudFrontOriginAccessIdentitiesOutput struct { - _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityList"` - // The CloudFrontOriginAccessIdentityList type. CloudFrontOriginAccessIdentityList *OriginAccessIdentityList `type:"structure"` -} -// String returns the string representation -func (s ListCloudFrontOriginAccessIdentitiesOutput) String() string { - return awsutil.Prettify(s) + metadataListCloudFrontOriginAccessIdentitiesOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s ListCloudFrontOriginAccessIdentitiesOutput) GoString() string { - return s.String() -} - -// The request to list distributions that are associated with a specified AWS -// WAF web ACL. -type ListDistributionsByWebACLIdInput struct { - _ struct{} `type:"structure"` - - // Use Marker and MaxItems to control pagination of results. If you have more - // than MaxItems distributions that satisfy the request, the response includes - // a NextMarker element. To get the next page of results, submit another request. - // For the value of Marker, specify the value of NextMarker from the last response. - // (For the first request, omit Marker.) - Marker *string `location:"querystring" locationName:"Marker" type:"string"` - - // The maximum number of distributions that you want CloudFront to return in - // the response body. The maximum and default values are both 100. - MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` - - // The Id of the AWS WAF web ACL for which you want to list the associated distributions. - // If you specify "null" for the Id, the request returns a list of the distributions - // that aren't associated with a web ACL. - WebACLId *string `location:"uri" locationName:"WebACLId" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListDistributionsByWebACLIdInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListDistributionsByWebACLIdInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDistributionsByWebACLIdInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDistributionsByWebACLIdInput"} - if s.WebACLId == nil { - invalidParams.Add(request.NewErrParamRequired("WebACLId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to a request to list the distributions that are associated with -// a specified AWS WAF web ACL. -type ListDistributionsByWebACLIdOutput struct { - _ struct{} `type:"structure" payload:"DistributionList"` - - // The DistributionList type. - DistributionList *DistributionList `type:"structure"` +type metadataListCloudFrontOriginAccessIdentitiesOutput struct { + SDKShapeTraits bool `type:"structure" payload:"CloudFrontOriginAccessIdentityList"` } // String returns the string representation -func (s ListDistributionsByWebACLIdOutput) String() string { +func (s ListCloudFrontOriginAccessIdentitiesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDistributionsByWebACLIdOutput) GoString() string { +func (s ListCloudFrontOriginAccessIdentitiesOutput) GoString() string { return s.String() } // The request to list your distributions. type ListDistributionsInput struct { - _ struct{} `type:"structure"` - - // Use Marker and MaxItems to control pagination of results. If you have more - // than MaxItems distributions that satisfy the request, the response includes - // a NextMarker element. To get the next page of results, submit another request. - // For the value of Marker, specify the value of NextMarker from the last response. - // (For the first request, omit Marker.) + // Use this when paginating results to indicate where to begin in your list + // of distributions. The results include distributions in the list that occur + // after the marker. To get the next page of results, set the Marker to the + // value of the NextMarker from the current page's response (which is also the + // ID of the last distribution on that page). Marker *string `location:"querystring" locationName:"Marker" type:"string"` - // The maximum number of distributions that you want CloudFront to return in - // the response body. The maximum and default values are both 100. + // The maximum number of distributions you want in the response body. MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` + + metadataListDistributionsInput `json:"-" xml:"-"` +} + +type metadataListDistributionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2996,10 +2431,14 @@ func (s ListDistributionsInput) GoString() string { // The returned result of the corresponding request. type ListDistributionsOutput struct { - _ struct{} `type:"structure" payload:"DistributionList"` - // The DistributionList type. DistributionList *DistributionList `type:"structure"` + + metadataListDistributionsOutput `json:"-" xml:"-"` +} + +type metadataListDistributionsOutput struct { + SDKShapeTraits bool `type:"structure" payload:"DistributionList"` } // String returns the string representation @@ -3014,8 +2453,6 @@ func (s ListDistributionsOutput) GoString() string { // The request to list invalidations. type ListInvalidationsInput struct { - _ struct{} `type:"structure"` - // The distribution's id. DistributionId *string `location:"uri" locationName:"DistributionId" type:"string" required:"true"` @@ -3030,6 +2467,12 @@ type ListInvalidationsInput struct { // The maximum number of invalidation batches you want in the response body. MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` + + metadataListInvalidationsInput `json:"-" xml:"-"` +} + +type metadataListInvalidationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3042,25 +2485,16 @@ func (s ListInvalidationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListInvalidationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListInvalidationsInput"} - if s.DistributionId == nil { - invalidParams.Add(request.NewErrParamRequired("DistributionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type ListInvalidationsOutput struct { - _ struct{} `type:"structure" payload:"InvalidationList"` - // Information about invalidation batches. InvalidationList *InvalidationList `type:"structure"` + + metadataListInvalidationsOutput `json:"-" xml:"-"` +} + +type metadataListInvalidationsOutput struct { + SDKShapeTraits bool `type:"structure" payload:"InvalidationList"` } // String returns the string representation @@ -3075,8 +2509,6 @@ func (s ListInvalidationsOutput) GoString() string { // The request to list your streaming distributions. type ListStreamingDistributionsInput struct { - _ struct{} `type:"structure"` - // Use this when paginating results to indicate where to begin in your list // of streaming distributions. The results include distributions in the list // that occur after the marker. To get the next page of results, set the Marker @@ -3086,6 +2518,12 @@ type ListStreamingDistributionsInput struct { // The maximum number of streaming distributions you want in the response body. MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` + + metadataListStreamingDistributionsInput `json:"-" xml:"-"` +} + +type metadataListStreamingDistributionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3100,10 +2538,14 @@ func (s ListStreamingDistributionsInput) GoString() string { // The returned result of the corresponding request. type ListStreamingDistributionsOutput struct { - _ struct{} `type:"structure" payload:"StreamingDistributionList"` - // The StreamingDistributionList type. StreamingDistributionList *StreamingDistributionList `type:"structure"` + + metadataListStreamingDistributionsOutput `json:"-" xml:"-"` +} + +type metadataListStreamingDistributionsOutput struct { + SDKShapeTraits bool `type:"structure" payload:"StreamingDistributionList"` } // String returns the string representation @@ -3118,8 +2560,6 @@ func (s ListStreamingDistributionsOutput) GoString() string { // A complex type that controls whether access logs are written for the distribution. type LoggingConfig struct { - _ struct{} `type:"structure"` - // The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com. Bucket *string `type:"string" required:"true"` @@ -3144,6 +2584,12 @@ type LoggingConfig struct { // but you do not want to specify a prefix, you still must include an empty // Prefix element in the Logging element. Prefix *string `type:"string" required:"true"` + + metadataLoggingConfig `json:"-" xml:"-"` +} + +type metadataLoggingConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3156,38 +2602,10 @@ func (s LoggingConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LoggingConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LoggingConfig"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Enabled == nil { - invalidParams.Add(request.NewErrParamRequired("Enabled")) - } - if s.IncludeCookies == nil { - invalidParams.Add(request.NewErrParamRequired("IncludeCookies")) - } - if s.Prefix == nil { - invalidParams.Add(request.NewErrParamRequired("Prefix")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that describes the Amazon S3 bucket or the HTTP server (for // example, a web server) from which CloudFront gets your files.You must create // at least one origin. type Origin struct { - _ struct{} `type:"structure"` - - // A complex type that contains information about the custom headers associated - // with this Origin. - CustomHeaders *CustomHeaders `type:"structure"` - // A complex type that contains information about a custom origin. If the origin // is an Amazon S3 bucket, use the S3OriginConfig element instead. CustomOriginConfig *CustomOriginConfig `type:"structure"` @@ -3213,6 +2631,12 @@ type Origin struct { // A complex type that contains information about the Amazon S3 origin. If the // origin is a custom origin, use the CustomOriginConfig element instead. S3OriginConfig *S3OriginConfig `type:"structure"` + + metadataOrigin `json:"-" xml:"-"` +} + +type metadataOrigin struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3225,41 +2649,8 @@ func (s Origin) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Origin) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Origin"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.CustomHeaders != nil { - if err := s.CustomHeaders.Validate(); err != nil { - invalidParams.AddNested("CustomHeaders", err.(request.ErrInvalidParams)) - } - } - if s.CustomOriginConfig != nil { - if err := s.CustomOriginConfig.Validate(); err != nil { - invalidParams.AddNested("CustomOriginConfig", err.(request.ErrInvalidParams)) - } - } - if s.S3OriginConfig != nil { - if err := s.S3OriginConfig.Validate(); err != nil { - invalidParams.AddNested("S3OriginConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // CloudFront origin access identity. type OriginAccessIdentity struct { - _ struct{} `type:"structure"` - // The current configuration information for the identity. CloudFrontOriginAccessIdentityConfig *OriginAccessIdentityConfig `type:"structure"` @@ -3270,6 +2661,12 @@ type OriginAccessIdentity struct { // use when giving the origin access identity read permission to an object in // Amazon S3. S3CanonicalUserId *string `type:"string" required:"true"` + + metadataOriginAccessIdentity `json:"-" xml:"-"` +} + +type metadataOriginAccessIdentity struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3284,8 +2681,6 @@ func (s OriginAccessIdentity) GoString() string { // Origin access identity configuration. type OriginAccessIdentityConfig struct { - _ struct{} `type:"structure"` - // A unique number that ensures the request can't be replayed. If the CallerReference // is new (no matter the content of the CloudFrontOriginAccessIdentityConfig // object), a new origin access identity is created. If the CallerReference @@ -3301,6 +2696,12 @@ type OriginAccessIdentityConfig struct { // Any comments you want to include about the origin access identity. Comment *string `type:"string" required:"true"` + + metadataOriginAccessIdentityConfig `json:"-" xml:"-"` +} + +type metadataOriginAccessIdentityConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3313,26 +2714,8 @@ func (s OriginAccessIdentityConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *OriginAccessIdentityConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OriginAccessIdentityConfig"} - if s.CallerReference == nil { - invalidParams.Add(request.NewErrParamRequired("CallerReference")) - } - if s.Comment == nil { - invalidParams.Add(request.NewErrParamRequired("Comment")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The CloudFrontOriginAccessIdentityList type. type OriginAccessIdentityList struct { - _ struct{} `type:"structure"` - // A flag that indicates whether more origin access identities remain to be // listed. If your results were truncated, you can make a follow-up pagination // request using the Marker request parameter to retrieve more items in the @@ -3357,6 +2740,12 @@ type OriginAccessIdentityList struct { // The number of CloudFront origin access identities that were created by the // current AWS account. Quantity *int64 `type:"integer" required:"true"` + + metadataOriginAccessIdentityList `json:"-" xml:"-"` +} + +type metadataOriginAccessIdentityList struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3371,8 +2760,6 @@ func (s OriginAccessIdentityList) GoString() string { // Summary of the information about a CloudFront origin access identity. type OriginAccessIdentitySummary struct { - _ struct{} `type:"structure"` - // The comment for this origin access identity, as originally specified when // created. Comment *string `type:"string" required:"true"` @@ -3384,105 +2771,37 @@ type OriginAccessIdentitySummary struct { // use when giving the origin access identity read permission to an object in // Amazon S3. S3CanonicalUserId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s OriginAccessIdentitySummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s OriginAccessIdentitySummary) GoString() string { - return s.String() -} - -// A complex type that contains information related to a Header -type OriginCustomHeader struct { - _ struct{} `type:"structure"` - - // The header's name. - HeaderName *string `type:"string" required:"true"` - - // The header's value. - HeaderValue *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s OriginCustomHeader) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s OriginCustomHeader) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *OriginCustomHeader) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OriginCustomHeader"} - if s.HeaderName == nil { - invalidParams.Add(request.NewErrParamRequired("HeaderName")) - } - if s.HeaderValue == nil { - invalidParams.Add(request.NewErrParamRequired("HeaderValue")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataOriginAccessIdentitySummary `json:"-" xml:"-"` } -// A complex type that contains the list of SSL/TLS protocols that you want -// CloudFront to use when communicating with your origin over HTTPS. -type OriginSslProtocols struct { - _ struct{} `type:"structure"` - - // A complex type that contains one SslProtocol element for each SSL/TLS protocol - // that you want to allow CloudFront to use when establishing an HTTPS connection - // with this origin. - Items []*string `locationNameList:"SslProtocol" type:"list" required:"true"` - - // The number of SSL/TLS protocols that you want to allow CloudFront to use - // when establishing an HTTPS connection with this origin. - Quantity *int64 `type:"integer" required:"true"` +type metadataOriginAccessIdentitySummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s OriginSslProtocols) String() string { +func (s OriginAccessIdentitySummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s OriginSslProtocols) GoString() string { +func (s OriginAccessIdentitySummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *OriginSslProtocols) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OriginSslProtocols"} - if s.Items == nil { - invalidParams.Add(request.NewErrParamRequired("Items")) - } - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains information about origins for this distribution. type Origins struct { - _ struct{} `type:"structure"` - // A complex type that contains origins for this distribution. - Items []*Origin `locationNameList:"Origin" min:"1" type:"list"` + Items []*Origin `locationNameList:"Origin" type:"list"` // The number of origins for this distribution. Quantity *int64 `type:"integer" required:"true"` + + metadataOrigins `json:"-" xml:"-"` +} + +type metadataOrigins struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3495,42 +2814,20 @@ func (s Origins) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Origins) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Origins"} - if s.Items != nil && len(s.Items) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Items", 1)) - } - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - if s.Items != nil { - for i, v := range s.Items { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Items", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains information about the objects that you want // to invalidate. type Paths struct { - _ struct{} `type:"structure"` - // A complex type that contains a list of the objects that you want to invalidate. Items []*string `locationNameList:"Path" type:"list"` // The number of objects that you want to invalidate. Quantity *int64 `type:"integer" required:"true"` + + metadataPaths `json:"-" xml:"-"` +} + +type metadataPaths struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3543,24 +2840,9 @@ func (s Paths) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Paths) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Paths"} - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that identifies ways in which you want to restrict distribution // of your content. type Restrictions struct { - _ struct{} `type:"structure"` - // A complex type that controls the countries in which your content is distributed. // For more information about geo restriction, go to Customizing Error Responses // in the Amazon CloudFront Developer Guide. CloudFront determines the location @@ -3568,6 +2850,12 @@ type Restrictions struct { // of these databases, see How accurate are your GeoIP databases? on the MaxMind // website. GeoRestriction *GeoRestriction `type:"structure" required:"true"` + + metadataRestrictions `json:"-" xml:"-"` +} + +type metadataRestrictions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3580,34 +2868,20 @@ func (s Restrictions) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Restrictions) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Restrictions"} - if s.GeoRestriction == nil { - invalidParams.Add(request.NewErrParamRequired("GeoRestriction")) - } - if s.GeoRestriction != nil { - if err := s.GeoRestriction.Validate(); err != nil { - invalidParams.AddNested("GeoRestriction", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains information about the Amazon S3 bucket from // which you want CloudFront to get your media files for distribution. type S3Origin struct { - _ struct{} `type:"structure"` - // The DNS name of the S3 origin. DomainName *string `type:"string" required:"true"` // Your S3 origin's origin access identity. OriginAccessIdentity *string `type:"string" required:"true"` + + metadataS3Origin `json:"-" xml:"-"` +} + +type metadataS3Origin struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3620,27 +2894,9 @@ func (s S3Origin) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *S3Origin) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3Origin"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.OriginAccessIdentity == nil { - invalidParams.Add(request.NewErrParamRequired("OriginAccessIdentity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains information about the Amazon S3 origin. If the // origin is a custom origin, use the CustomOriginConfig element instead. type S3OriginConfig struct { - _ struct{} `type:"structure"` - // The CloudFront origin access identity to associate with the origin. Use an // origin access identity to configure the origin so that end users can only // access objects in an Amazon S3 bucket through CloudFront. If you want end @@ -3653,6 +2909,12 @@ type S3OriginConfig struct { // where Id is the value that CloudFront returned in the Id element when you // created the origin access identity. OriginAccessIdentity *string `type:"string" required:"true"` + + metadataS3OriginConfig `json:"-" xml:"-"` +} + +type metadataS3OriginConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3665,24 +2927,9 @@ func (s S3OriginConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *S3OriginConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3OriginConfig"} - if s.OriginAccessIdentity == nil { - invalidParams.Add(request.NewErrParamRequired("OriginAccessIdentity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that lists the AWS accounts that were included in the TrustedSigners // complex type, as well as their active CloudFront key pair IDs, if any. type Signer struct { - _ struct{} `type:"structure"` - // Specifies an AWS account that can create signed URLs. Values: self, which // indicates that the AWS account that was used to create the distribution can // created signed URLs, or an AWS account number. Omit the dashes in the account @@ -3692,6 +2939,12 @@ type Signer struct { // A complex type that lists the active CloudFront key pairs, if any, that are // associated with AwsAccountNumber. KeyPairIds *KeyPairIds `type:"structure"` + + metadataSigner `json:"-" xml:"-"` +} + +type metadataSigner struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3706,8 +2959,6 @@ func (s Signer) GoString() string { // A streaming distribution. type StreamingDistribution struct { - _ struct{} `type:"structure"` - // CloudFront automatically adds this element to the response only if you've // set up the distribution to serve private content with signed URLs. The element // lists the key pair IDs that CloudFront is aware of for each trusted signer. @@ -3735,6 +2986,12 @@ type StreamingDistribution struct { // The current configuration information for the streaming distribution. StreamingDistributionConfig *StreamingDistributionConfig `type:"structure" required:"true"` + + metadataStreamingDistribution `json:"-" xml:"-"` +} + +type metadataStreamingDistribution struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3749,8 +3006,6 @@ func (s StreamingDistribution) GoString() string { // The configuration for the streaming distribution. type StreamingDistributionConfig struct { - _ struct{} `type:"structure"` - // A complex type that contains information about CNAMEs (alternate domain names), // if any, for this streaming distribution. Aliases *Aliases `type:"structure"` @@ -3798,6 +3053,12 @@ type StreamingDistributionConfig struct { // (if it's currently false), change Quantity as applicable, and specify all // of the trusted signers that you want to include in the updated distribution. TrustedSigners *TrustedSigners `type:"structure" required:"true"` + + metadataStreamingDistributionConfig `json:"-" xml:"-"` +} + +type metadataStreamingDistributionConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3810,55 +3071,8 @@ func (s StreamingDistributionConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StreamingDistributionConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StreamingDistributionConfig"} - if s.CallerReference == nil { - invalidParams.Add(request.NewErrParamRequired("CallerReference")) - } - if s.Comment == nil { - invalidParams.Add(request.NewErrParamRequired("Comment")) - } - if s.Enabled == nil { - invalidParams.Add(request.NewErrParamRequired("Enabled")) - } - if s.S3Origin == nil { - invalidParams.Add(request.NewErrParamRequired("S3Origin")) - } - if s.TrustedSigners == nil { - invalidParams.Add(request.NewErrParamRequired("TrustedSigners")) - } - if s.Aliases != nil { - if err := s.Aliases.Validate(); err != nil { - invalidParams.AddNested("Aliases", err.(request.ErrInvalidParams)) - } - } - if s.Logging != nil { - if err := s.Logging.Validate(); err != nil { - invalidParams.AddNested("Logging", err.(request.ErrInvalidParams)) - } - } - if s.S3Origin != nil { - if err := s.S3Origin.Validate(); err != nil { - invalidParams.AddNested("S3Origin", err.(request.ErrInvalidParams)) - } - } - if s.TrustedSigners != nil { - if err := s.TrustedSigners.Validate(); err != nil { - invalidParams.AddNested("TrustedSigners", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A streaming distribution list. type StreamingDistributionList struct { - _ struct{} `type:"structure"` - // A flag that indicates whether more streaming distributions remain to be listed. // If your results were truncated, you can make a follow-up pagination request // using the Marker request parameter to retrieve more distributions in the @@ -3883,6 +3097,12 @@ type StreamingDistributionList struct { // The number of streaming distributions that were created by the current AWS // account. Quantity *int64 `type:"integer" required:"true"` + + metadataStreamingDistributionList `json:"-" xml:"-"` +} + +type metadataStreamingDistributionList struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3897,8 +3117,6 @@ func (s StreamingDistributionList) GoString() string { // A summary of the information for an Amazon CloudFront streaming distribution. type StreamingDistributionSummary struct { - _ struct{} `type:"structure"` - // A complex type that contains information about CNAMEs (alternate domain names), // if any, for this streaming distribution. Aliases *Aliases `type:"structure" required:"true"` @@ -3941,6 +3159,12 @@ type StreamingDistributionSummary struct { // (if it's currently false), change Quantity as applicable, and specify all // of the trusted signers that you want to include in the updated distribution. TrustedSigners *TrustedSigners `type:"structure" required:"true"` + + metadataStreamingDistributionSummary `json:"-" xml:"-"` +} + +type metadataStreamingDistributionSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3956,8 +3180,6 @@ func (s StreamingDistributionSummary) GoString() string { // A complex type that controls whether access logs are written for this streaming // distribution. type StreamingLoggingConfig struct { - _ struct{} `type:"structure"` - // The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com. Bucket *string `type:"string" required:"true"` @@ -3974,6 +3196,12 @@ type StreamingLoggingConfig struct { // logging, but you do not want to specify a prefix, you still must include // an empty Prefix element in the Logging element. Prefix *string `type:"string" required:"true"` + + metadataStreamingLoggingConfig `json:"-" xml:"-"` +} + +type metadataStreamingLoggingConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3986,25 +3214,6 @@ func (s StreamingLoggingConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StreamingLoggingConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StreamingLoggingConfig"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Enabled == nil { - invalidParams.Add(request.NewErrParamRequired("Enabled")) - } - if s.Prefix == nil { - invalidParams.Add(request.NewErrParamRequired("Prefix")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that specifies the AWS accounts, if any, that you want to // allow to create signed URLs for private content. If you want to require signed // URLs in requests for objects in the target origin that match the PathPattern @@ -4017,8 +3226,6 @@ func (s *StreamingLoggingConfig) Validate() error { // (if it's currently false), change Quantity as applicable, and specify all // of the trusted signers that you want to include in the updated distribution. type TrustedSigners struct { - _ struct{} `type:"structure"` - // Specifies whether you want to require end users to use signed URLs to access // the files specified by PathPattern and TargetOriginId. Enabled *bool `type:"boolean" required:"true"` @@ -4029,6 +3236,12 @@ type TrustedSigners struct { // The number of trusted signers for this cache behavior. Quantity *int64 `type:"integer" required:"true"` + + metadataTrustedSigners `json:"-" xml:"-"` +} + +type metadataTrustedSigners struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4041,26 +3254,8 @@ func (s TrustedSigners) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TrustedSigners) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TrustedSigners"} - if s.Enabled == nil { - invalidParams.Add(request.NewErrParamRequired("Enabled")) - } - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The request to update an origin access identity. type UpdateCloudFrontOriginAccessIdentityInput struct { - _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` - // The identity's configuration information. CloudFrontOriginAccessIdentityConfig *OriginAccessIdentityConfig `locationName:"CloudFrontOriginAccessIdentityConfig" type:"structure" required:"true"` @@ -4070,6 +3265,12 @@ type UpdateCloudFrontOriginAccessIdentityInput struct { // The value of the ETag header you received when retrieving the identity's // configuration. For example: E2QWRUHAPOMQZL. IfMatch *string `location:"header" locationName:"If-Match" type:"string"` + + metadataUpdateCloudFrontOriginAccessIdentityInput `json:"-" xml:"-"` +} + +type metadataUpdateCloudFrontOriginAccessIdentityInput struct { + SDKShapeTraits bool `type:"structure" payload:"CloudFrontOriginAccessIdentityConfig"` } // String returns the string representation @@ -4082,36 +3283,19 @@ func (s UpdateCloudFrontOriginAccessIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateCloudFrontOriginAccessIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateCloudFrontOriginAccessIdentityInput"} - if s.CloudFrontOriginAccessIdentityConfig == nil { - invalidParams.Add(request.NewErrParamRequired("CloudFrontOriginAccessIdentityConfig")) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.CloudFrontOriginAccessIdentityConfig != nil { - if err := s.CloudFrontOriginAccessIdentityConfig.Validate(); err != nil { - invalidParams.AddNested("CloudFrontOriginAccessIdentityConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type UpdateCloudFrontOriginAccessIdentityOutput struct { - _ struct{} `type:"structure" payload:"CloudFrontOriginAccessIdentity"` - // The origin access identity's information. CloudFrontOriginAccessIdentity *OriginAccessIdentity `type:"structure"` // The current version of the configuration. For example: E2QWRUHAPOMQZL. ETag *string `location:"header" locationName:"ETag" type:"string"` + + metadataUpdateCloudFrontOriginAccessIdentityOutput `json:"-" xml:"-"` +} + +type metadataUpdateCloudFrontOriginAccessIdentityOutput struct { + SDKShapeTraits bool `type:"structure" payload:"CloudFrontOriginAccessIdentity"` } // String returns the string representation @@ -4126,8 +3310,6 @@ func (s UpdateCloudFrontOriginAccessIdentityOutput) GoString() string { // The request to update a distribution. type UpdateDistributionInput struct { - _ struct{} `type:"structure" payload:"DistributionConfig"` - // The distribution's configuration information. DistributionConfig *DistributionConfig `locationName:"DistributionConfig" type:"structure" required:"true"` @@ -4137,6 +3319,12 @@ type UpdateDistributionInput struct { // The value of the ETag header you received when retrieving the distribution's // configuration. For example: E2QWRUHAPOMQZL. IfMatch *string `location:"header" locationName:"If-Match" type:"string"` + + metadataUpdateDistributionInput `json:"-" xml:"-"` +} + +type metadataUpdateDistributionInput struct { + SDKShapeTraits bool `type:"structure" payload:"DistributionConfig"` } // String returns the string representation @@ -4149,36 +3337,19 @@ func (s UpdateDistributionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDistributionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDistributionInput"} - if s.DistributionConfig == nil { - invalidParams.Add(request.NewErrParamRequired("DistributionConfig")) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.DistributionConfig != nil { - if err := s.DistributionConfig.Validate(); err != nil { - invalidParams.AddNested("DistributionConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type UpdateDistributionOutput struct { - _ struct{} `type:"structure" payload:"Distribution"` - // The distribution's information. Distribution *Distribution `type:"structure"` // The current version of the configuration. For example: E2QWRUHAPOMQZL. ETag *string `location:"header" locationName:"ETag" type:"string"` + + metadataUpdateDistributionOutput `json:"-" xml:"-"` +} + +type metadataUpdateDistributionOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Distribution"` } // String returns the string representation @@ -4193,8 +3364,6 @@ func (s UpdateDistributionOutput) GoString() string { // The request to update a streaming distribution. type UpdateStreamingDistributionInput struct { - _ struct{} `type:"structure" payload:"StreamingDistributionConfig"` - // The streaming distribution's id. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -4204,6 +3373,12 @@ type UpdateStreamingDistributionInput struct { // The streaming distribution's configuration information. StreamingDistributionConfig *StreamingDistributionConfig `locationName:"StreamingDistributionConfig" type:"structure" required:"true"` + + metadataUpdateStreamingDistributionInput `json:"-" xml:"-"` +} + +type metadataUpdateStreamingDistributionInput struct { + SDKShapeTraits bool `type:"structure" payload:"StreamingDistributionConfig"` } // String returns the string representation @@ -4216,36 +3391,19 @@ func (s UpdateStreamingDistributionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateStreamingDistributionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateStreamingDistributionInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.StreamingDistributionConfig == nil { - invalidParams.Add(request.NewErrParamRequired("StreamingDistributionConfig")) - } - if s.StreamingDistributionConfig != nil { - if err := s.StreamingDistributionConfig.Validate(); err != nil { - invalidParams.AddNested("StreamingDistributionConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The returned result of the corresponding request. type UpdateStreamingDistributionOutput struct { - _ struct{} `type:"structure" payload:"StreamingDistribution"` - // The current version of the configuration. For example: E2QWRUHAPOMQZL. ETag *string `location:"header" locationName:"ETag" type:"string"` // The streaming distribution's information. StreamingDistribution *StreamingDistribution `type:"structure"` + + metadataUpdateStreamingDistributionOutput `json:"-" xml:"-"` +} + +type metadataUpdateStreamingDistributionOutput struct { + SDKShapeTraits bool `type:"structure" payload:"StreamingDistribution"` } // String returns the string representation @@ -4261,32 +3419,16 @@ func (s UpdateStreamingDistributionOutput) GoString() string { // A complex type that contains information about viewer certificates for this // distribution. type ViewerCertificate struct { - _ struct{} `type:"structure"` - - // If you want viewers to use HTTPS to request your objects and you're using - // an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), - // specify the ACM certificate ARN of the custom viewer certificate for this - // distribution. Specify either this value, IAMCertificateId, or CloudFrontDefaultCertificate. - ACMCertificateArn *string `type:"string"` - - // Note: this field is deprecated. Please use one of [ACMCertificateArn, IAMCertificateId, - // CloudFrontDefaultCertificate]. - Certificate *string `deprecated:"true" type:"string"` - - // Note: this field is deprecated. Please use one of [ACMCertificateArn, IAMCertificateId, - // CloudFrontDefaultCertificate]. - CertificateSource *string `deprecated:"true" type:"string" enum:"CertificateSource"` - // If you want viewers to use HTTPS to request your objects and you're using // the CloudFront domain name of your distribution in your object URLs (for // example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true. Omit - // this value if you are setting an ACMCertificateArn or IAMCertificateId. + // this value if you are setting an IAMCertificateId. CloudFrontDefaultCertificate *bool `type:"boolean"` // If you want viewers to use HTTPS to request your objects and you're using // an alternate domain name in your object URLs (for example, https://example.com/logo.jpg), // specify the IAM certificate identifier of the custom viewer certificate for - // this distribution. Specify either this value, ACMCertificateArn, or CloudFrontDefaultCertificate. + // this distribution. Specify either this value or CloudFrontDefaultCertificate. IAMCertificateId *string `type:"string"` // Specify the minimum version of the SSL protocol that you want CloudFront @@ -4312,6 +3454,12 @@ type ViewerCertificate struct { // SNI, but some browsers still in use don't support SNI. Do not specify a value // for SSLSupportMethod if you specified true for CloudFrontDefaultCertificate. SSLSupportMethod *string `type:"string" enum:"SSLSupportMethod"` + + metadataViewerCertificate `json:"-" xml:"-"` +} + +type metadataViewerCertificate struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4324,15 +3472,6 @@ func (s ViewerCertificate) GoString() string { return s.String() } -const ( - // @enum CertificateSource - CertificateSourceCloudfront = "cloudfront" - // @enum CertificateSource - CertificateSourceIam = "iam" - // @enum CertificateSource - CertificateSourceAcm = "acm" -) - const ( // @enum GeoRestrictionType GeoRestrictionTypeBlacklist = "blacklist" @@ -4380,8 +3519,6 @@ const ( OriginProtocolPolicyHttpOnly = "http-only" // @enum OriginProtocolPolicy OriginProtocolPolicyMatchViewer = "match-viewer" - // @enum OriginProtocolPolicy - OriginProtocolPolicyHttpsOnly = "https-only" ) const ( @@ -4400,17 +3537,6 @@ const ( SSLSupportMethodVip = "vip" ) -const ( - // @enum SslProtocol - SslProtocolSslv3 = "SSLv3" - // @enum SslProtocol - SslProtocolTlsv1 = "TLSv1" - // @enum SslProtocol - SslProtocolTlsv11 = "TLSv1.1" - // @enum SslProtocol - SslProtocolTlsv12 = "TLSv1.2" -) - const ( // @enum ViewerProtocolPolicy ViewerProtocolPolicyAllowAll = "allow-all" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go index 117091437..4cdbfe86c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface.go @@ -78,10 +78,6 @@ type CloudFrontAPI interface { ListDistributionsPages(*cloudfront.ListDistributionsInput, func(*cloudfront.ListDistributionsOutput, bool) bool) error - ListDistributionsByWebACLIdRequest(*cloudfront.ListDistributionsByWebACLIdInput) (*request.Request, *cloudfront.ListDistributionsByWebACLIdOutput) - - ListDistributionsByWebACLId(*cloudfront.ListDistributionsByWebACLIdInput) (*cloudfront.ListDistributionsByWebACLIdOutput, error) - ListInvalidationsRequest(*cloudfront.ListInvalidationsInput) (*request.Request, *cloudfront.ListInvalidationsOutput) ListInvalidations(*cloudfront.ListInvalidationsInput) (*cloudfront.ListInvalidationsOutput, error) @@ -106,5 +102,3 @@ type CloudFrontAPI interface { UpdateStreamingDistribution(*cloudfront.UpdateStreamingDistributionInput) (*cloudfront.UpdateStreamingDistributionOutput, error) } - -var _ CloudFrontAPI = (*cloudfront.CloudFront)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface_test.go new file mode 100644 index 000000000..fe7361de4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudfrontiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*cloudfrontiface.CloudFrontAPI)(nil), cloudfront.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go index a10507eb5..26dd261db 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudfront" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudFront_CreateCloudFrontOriginAccessIdentity() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.CreateCloudFrontOriginAccessIdentityInput{ CloudFrontOriginAccessIdentityConfig: &cloudfront.OriginAccessIdentityConfig{ // Required @@ -38,7 +37,7 @@ func ExampleCloudFront_CreateCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_CreateDistribution() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.CreateDistributionInput{ DistributionConfig: &cloudfront.DistributionConfig{ // Required @@ -90,7 +89,6 @@ func ExampleCloudFront_CreateDistribution() { Quantity: aws.Int64(1), // Required }, }, - Compress: aws.Bool(true), DefaultTTL: aws.Int64(1), MaxTTL: aws.Int64(1), SmoothStreaming: aws.Bool(true), @@ -102,27 +100,10 @@ func ExampleCloudFront_CreateDistribution() { { // Required DomainName: aws.String("string"), // Required Id: aws.String("string"), // Required - CustomHeaders: &cloudfront.CustomHeaders{ - Quantity: aws.Int64(1), // Required - Items: []*cloudfront.OriginCustomHeader{ - { // Required - HeaderName: aws.String("string"), // Required - HeaderValue: aws.String("string"), // Required - }, - // More values... - }, - }, CustomOriginConfig: &cloudfront.CustomOriginConfig{ HTTPPort: aws.Int64(1), // Required HTTPSPort: aws.Int64(1), // Required OriginProtocolPolicy: aws.String("OriginProtocolPolicy"), // Required - OriginSslProtocols: &cloudfront.OriginSslProtocols{ - Items: []*string{ // Required - aws.String("SslProtocol"), // Required - // More values... - }, - Quantity: aws.Int64(1), // Required - }, }, OriginPath: aws.String("string"), S3OriginConfig: &cloudfront.S3OriginConfig{ @@ -189,7 +170,6 @@ func ExampleCloudFront_CreateDistribution() { Quantity: aws.Int64(1), // Required }, }, - Compress: aws.Bool(true), DefaultTTL: aws.Int64(1), MaxTTL: aws.Int64(1), SmoothStreaming: aws.Bool(true), @@ -228,15 +208,11 @@ func ExampleCloudFront_CreateDistribution() { }, }, ViewerCertificate: &cloudfront.ViewerCertificate{ - ACMCertificateArn: aws.String("string"), - Certificate: aws.String("string"), - CertificateSource: aws.String("CertificateSource"), CloudFrontDefaultCertificate: aws.Bool(true), IAMCertificateId: aws.String("string"), MinimumProtocolVersion: aws.String("MinimumProtocolVersion"), SSLSupportMethod: aws.String("SSLSupportMethod"), }, - WebACLId: aws.String("string"), }, } resp, err := svc.CreateDistribution(params) @@ -253,7 +229,7 @@ func ExampleCloudFront_CreateDistribution() { } func ExampleCloudFront_CreateInvalidation() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.CreateInvalidationInput{ DistributionId: aws.String("string"), // Required @@ -282,7 +258,7 @@ func ExampleCloudFront_CreateInvalidation() { } func ExampleCloudFront_CreateStreamingDistribution() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.CreateStreamingDistributionInput{ StreamingDistributionConfig: &cloudfront.StreamingDistributionConfig{ // Required @@ -330,7 +306,7 @@ func ExampleCloudFront_CreateStreamingDistribution() { } func ExampleCloudFront_DeleteCloudFrontOriginAccessIdentity() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.DeleteCloudFrontOriginAccessIdentityInput{ Id: aws.String("string"), // Required @@ -350,7 +326,7 @@ func ExampleCloudFront_DeleteCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_DeleteDistribution() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.DeleteDistributionInput{ Id: aws.String("string"), // Required @@ -370,7 +346,7 @@ func ExampleCloudFront_DeleteDistribution() { } func ExampleCloudFront_DeleteStreamingDistribution() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.DeleteStreamingDistributionInput{ Id: aws.String("string"), // Required @@ -390,7 +366,7 @@ func ExampleCloudFront_DeleteStreamingDistribution() { } func ExampleCloudFront_GetCloudFrontOriginAccessIdentity() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.GetCloudFrontOriginAccessIdentityInput{ Id: aws.String("string"), // Required @@ -409,7 +385,7 @@ func ExampleCloudFront_GetCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_GetCloudFrontOriginAccessIdentityConfig() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.GetCloudFrontOriginAccessIdentityConfigInput{ Id: aws.String("string"), // Required @@ -428,7 +404,7 @@ func ExampleCloudFront_GetCloudFrontOriginAccessIdentityConfig() { } func ExampleCloudFront_GetDistribution() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.GetDistributionInput{ Id: aws.String("string"), // Required @@ -447,7 +423,7 @@ func ExampleCloudFront_GetDistribution() { } func ExampleCloudFront_GetDistributionConfig() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.GetDistributionConfigInput{ Id: aws.String("string"), // Required @@ -466,7 +442,7 @@ func ExampleCloudFront_GetDistributionConfig() { } func ExampleCloudFront_GetInvalidation() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.GetInvalidationInput{ DistributionId: aws.String("string"), // Required @@ -486,7 +462,7 @@ func ExampleCloudFront_GetInvalidation() { } func ExampleCloudFront_GetStreamingDistribution() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.GetStreamingDistributionInput{ Id: aws.String("string"), // Required @@ -505,7 +481,7 @@ func ExampleCloudFront_GetStreamingDistribution() { } func ExampleCloudFront_GetStreamingDistributionConfig() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.GetStreamingDistributionConfigInput{ Id: aws.String("string"), // Required @@ -524,7 +500,7 @@ func ExampleCloudFront_GetStreamingDistributionConfig() { } func ExampleCloudFront_ListCloudFrontOriginAccessIdentities() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.ListCloudFrontOriginAccessIdentitiesInput{ Marker: aws.String("string"), @@ -544,7 +520,7 @@ func ExampleCloudFront_ListCloudFrontOriginAccessIdentities() { } func ExampleCloudFront_ListDistributions() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.ListDistributionsInput{ Marker: aws.String("string"), @@ -563,29 +539,8 @@ func ExampleCloudFront_ListDistributions() { fmt.Println(resp) } -func ExampleCloudFront_ListDistributionsByWebACLId() { - svc := cloudfront.New(session.New()) - - params := &cloudfront.ListDistributionsByWebACLIdInput{ - WebACLId: aws.String("string"), // Required - Marker: aws.String("string"), - MaxItems: aws.Int64(1), - } - resp, err := svc.ListDistributionsByWebACLId(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudFront_ListInvalidations() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.ListInvalidationsInput{ DistributionId: aws.String("string"), // Required @@ -606,7 +561,7 @@ func ExampleCloudFront_ListInvalidations() { } func ExampleCloudFront_ListStreamingDistributions() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.ListStreamingDistributionsInput{ Marker: aws.String("string"), @@ -626,7 +581,7 @@ func ExampleCloudFront_ListStreamingDistributions() { } func ExampleCloudFront_UpdateCloudFrontOriginAccessIdentity() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.UpdateCloudFrontOriginAccessIdentityInput{ CloudFrontOriginAccessIdentityConfig: &cloudfront.OriginAccessIdentityConfig{ // Required @@ -650,7 +605,7 @@ func ExampleCloudFront_UpdateCloudFrontOriginAccessIdentity() { } func ExampleCloudFront_UpdateDistribution() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.UpdateDistributionInput{ DistributionConfig: &cloudfront.DistributionConfig{ // Required @@ -702,7 +657,6 @@ func ExampleCloudFront_UpdateDistribution() { Quantity: aws.Int64(1), // Required }, }, - Compress: aws.Bool(true), DefaultTTL: aws.Int64(1), MaxTTL: aws.Int64(1), SmoothStreaming: aws.Bool(true), @@ -714,27 +668,10 @@ func ExampleCloudFront_UpdateDistribution() { { // Required DomainName: aws.String("string"), // Required Id: aws.String("string"), // Required - CustomHeaders: &cloudfront.CustomHeaders{ - Quantity: aws.Int64(1), // Required - Items: []*cloudfront.OriginCustomHeader{ - { // Required - HeaderName: aws.String("string"), // Required - HeaderValue: aws.String("string"), // Required - }, - // More values... - }, - }, CustomOriginConfig: &cloudfront.CustomOriginConfig{ HTTPPort: aws.Int64(1), // Required HTTPSPort: aws.Int64(1), // Required OriginProtocolPolicy: aws.String("OriginProtocolPolicy"), // Required - OriginSslProtocols: &cloudfront.OriginSslProtocols{ - Items: []*string{ // Required - aws.String("SslProtocol"), // Required - // More values... - }, - Quantity: aws.Int64(1), // Required - }, }, OriginPath: aws.String("string"), S3OriginConfig: &cloudfront.S3OriginConfig{ @@ -801,7 +738,6 @@ func ExampleCloudFront_UpdateDistribution() { Quantity: aws.Int64(1), // Required }, }, - Compress: aws.Bool(true), DefaultTTL: aws.Int64(1), MaxTTL: aws.Int64(1), SmoothStreaming: aws.Bool(true), @@ -840,15 +776,11 @@ func ExampleCloudFront_UpdateDistribution() { }, }, ViewerCertificate: &cloudfront.ViewerCertificate{ - ACMCertificateArn: aws.String("string"), - Certificate: aws.String("string"), - CertificateSource: aws.String("CertificateSource"), CloudFrontDefaultCertificate: aws.Bool(true), IAMCertificateId: aws.String("string"), MinimumProtocolVersion: aws.String("MinimumProtocolVersion"), SSLSupportMethod: aws.String("SSLSupportMethod"), }, - WebACLId: aws.String("string"), }, Id: aws.String("string"), // Required IfMatch: aws.String("string"), @@ -867,7 +799,7 @@ func ExampleCloudFront_UpdateDistribution() { } func ExampleCloudFront_UpdateStreamingDistribution() { - svc := cloudfront.New(session.New()) + svc := cloudfront.New(nil) params := &cloudfront.UpdateStreamingDistributionInput{ Id: aws.String("string"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go index 51b73c6ef..ce4bfd2e4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go @@ -4,72 +4,49 @@ package cloudfront import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restxml" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restxml" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // CloudFront is a client for CloudFront. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type CloudFront struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudfront" - -// New creates a new instance of the CloudFront client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CloudFront client from just a session. -// svc := cloudfront.New(mySession) -// -// // Create a CloudFront client with additional configuration -// svc := cloudfront.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudFront { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudFront { - svc := &CloudFront{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2016-01-28", - }, - handlers, - ), +// New returns a new CloudFront client. +func New(config *aws.Config) *CloudFront { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "cloudfront", + APIVersion: "2015-04-17", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CloudFront{service} } // newRequest creates a new request for a CloudFront operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy.go index 75263b1b6..5c8daa60c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy.go @@ -13,7 +13,6 @@ import ( "net/url" "strings" "time" - "unicode" ) // An AWSEpochTime wraps a time value providing JSON serialization needed for @@ -80,8 +79,11 @@ var randReader = rand.Reader // guidelines in: // http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.html func (p *Policy) Sign(privKey *rsa.PrivateKey) (b64Signature, b64Policy []byte, err error) { - if err = p.Validate(); err != nil { - return nil, nil, err + if len(p.Statements) != 1 { + return nil, nil, fmt.Errorf("invalid number of policy statements expected 1 got %d", len(p.Statements)) + } + if p.Statements[0].Resource == "" { + return nil, nil, fmt.Errorf("no resource in profile statement") } // Build and escape the policy @@ -101,33 +103,12 @@ func (p *Policy) Sign(privKey *rsa.PrivateKey) (b64Signature, b64Policy []byte, return b64Signature, b64Policy, nil } -// Validate verifies that the policy is valid and usable, and returns an -// error if there is a problem. -func (p *Policy) Validate() error { - if len(p.Statements) == 0 { - return fmt.Errorf("at least one policy statement is required") - } - for i, s := range p.Statements { - if s.Resource == "" { - return fmt.Errorf("statement at index %d does not have a resource", i) - } - if !isASCII(s.Resource) { - return fmt.Errorf("unable to sign resource, [%s]. "+ - "Resources must only contain ascii characters. "+ - "Hostnames with unicode should be encoded as Punycode, (e.g. golang.org/x/net/idna), "+ - "and URL unicode path/query characters should be escaped.", s.Resource) - } - } - - return nil -} - // CreateResource constructs, validates, and returns a resource URL string. An // error will be returned if unable to create the resource string. func CreateResource(scheme, u string) (string, error) { scheme = strings.ToLower(scheme) - if scheme == "http" || scheme == "https" || scheme == "http*" || scheme == "*" { + if scheme == "http" || scheme == "https" { return u, nil } @@ -215,12 +196,3 @@ func awsEscapeEncoded(b []byte) { } } } - -func isASCII(u string) bool { - for _, c := range u { - if c > unicode.MaxASCII { - return false - } - } - return true -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_test.go index 7f335aafc..d5c0ae2eb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_test.go @@ -115,7 +115,7 @@ func TestSignEncodedPolicy(t *testing.T) { } hash := sha1.New() - if _, err = bytes.NewReader(jsonPolicy).WriteTo(hash); err != nil { + if _, err := bytes.NewReader(jsonPolicy).WriteTo(hash); err != nil { t.Fatalf("Unexpected hash error, %#v", err) } diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie.go deleted file mode 100644 index 9b2deadf1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie.go +++ /dev/null @@ -1,241 +0,0 @@ -package sign - -import ( - "crypto/rsa" - "fmt" - "net/http" - "strings" - "time" -) - -const ( - // CookiePolicyName name of the policy cookie - CookiePolicyName = "CloudFront-Policy" - // CookieSignatureName name of the signature cookie - CookieSignatureName = "CloudFront-Signature" - // CookieKeyIDName name of the signing Key ID cookie - CookieKeyIDName = "CloudFront-Key-Pair-Id" -) - -// A CookieOptions optional additonal options that can be applied to the signed -// cookies. -type CookieOptions struct { - Path string - Domain string - Secure bool -} - -// apply will integration the options provided into the base cookie options -// a new copy will be returned. The base CookieOption will not be modified. -func (o CookieOptions) apply(opts ...func(*CookieOptions)) CookieOptions { - if len(opts) == 0 { - return o - } - - for _, opt := range opts { - opt(&o) - } - - return o -} - -// A CookieSigner provides signing utilities to sign Cookies for Amazon CloudFront -// resources. Using a private key and Credential Key Pair key ID the CookieSigner -// only needs to be created once per Credential Key Pair key ID and private key. -// -// More information about signed Cookies and their structure can be found at: -// http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-setting-signed-cookie-custom-policy.html -// -// To sign a Cookie, create a CookieSigner with your private key and credential -// pair key ID. Once you have a CookieSigner instance you can call Sign or -// SignWithPolicy to sign the URLs. -// -// The signer is safe to use concurrently, but the optional cookies options -// are not safe to modify concurrently. -type CookieSigner struct { - keyID string - privKey *rsa.PrivateKey - - Opts CookieOptions -} - -// NewCookieSigner constructs and returns a new CookieSigner to be used to for -// signing Amazon CloudFront URL resources with. -func NewCookieSigner(keyID string, privKey *rsa.PrivateKey, opts ...func(*CookieOptions)) *CookieSigner { - signer := &CookieSigner{ - keyID: keyID, - privKey: privKey, - Opts: CookieOptions{}.apply(opts...), - } - - return signer -} - -// Sign returns the cookies needed to allow user agents to make arbetrary -// requests to cloudfront for the resource(s) defined by the policy. -// -// Sign will create a CloudFront policy with only a resource and condition of -// DateLessThan equal to the expires time provided. -// -// The returned slice cookies should all be added to the Client's cookies or -// server's response. -// -// Example: -// s := NewCookieSigner(keyID, privKey) -// -// // Get Signed cookies for a resource that will expire in 1 hour -// cookies, err := s.Sign("*", time.Now().Add(1 * time.Hour)) -// if err != nil { -// fmt.Println("failed to create signed cookies", err) -// return -// } -// -// // Or get Signed cookies for a resource that will expire in 1 hour -// // and set path and domain of cookies -// cookies, err := s.Sign("*", time.Now().Add(1 * time.Hour), func(o *sign.CookieOptions) { -// o.Path = "/" -// o.Domain = ".example.com" -// }) -// if err != nil { -// fmt.Println("failed to create signed cookies", err) -// return -// } -// -// // Server Response via http.ResponseWriter -// for _, c := range cookies { -// http.SetCookie(w, c) -// } -// -// // Client request via the cookie jar -// if client.CookieJar != nil { -// for _, c := range cookies { -// client.Cookie(w, c) -// } -// } -func (s CookieSigner) Sign(u string, expires time.Time, opts ...func(*CookieOptions)) ([]*http.Cookie, error) { - scheme, err := cookieURLScheme(u) - if err != nil { - return nil, err - } - - resource, err := CreateResource(scheme, u) - if err != nil { - return nil, err - } - - p := NewCannedPolicy(resource, expires) - return createCookies(p, s.keyID, s.privKey, s.Opts.apply(opts...)) -} - -// Returns and validates the URL's scheme. -// http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-setting-signed-cookie-custom-policy.html#private-content-custom-policy-statement-cookies -func cookieURLScheme(u string) (string, error) { - parts := strings.SplitN(u, "://", 2) - if len(parts) != 2 { - return "", fmt.Errorf("invalid cookie URL, missing scheme") - } - - scheme := strings.ToLower(parts[0]) - if scheme != "http" && scheme != "https" && scheme != "http*" { - return "", fmt.Errorf("invalid cookie URL scheme. Expect http, https, or http*. Go, %s", scheme) - } - - return scheme, nil -} - -// SignWithPolicy returns the cookies needed to allow user agents to make -// arbetrairy requets to cloudfront for the resource(s) defined by the policy. -// -// The returned slice cookies should all be added to the Client's cookies or -// server's response. -// -// Example: -// s := NewCookieSigner(keyID, privKey) -// -// policy := &sign.Policy{ -// Statements: []sign.Statement{ -// { -// // Read the provided documentation on how to set this -// // correctly, you'll probably want to use wildcards. -// Resource: RawCloudFrontURL, -// Condition: sign.Condition{ -// // Optional IP source address range -// IPAddress: &sign.IPAddress{SourceIP: "192.0.2.0/24"}, -// // Optional date URL is not valid until -// DateGreaterThan: &sign.AWSEpochTime{time.Now().Add(30 * time.Minute)}, -// // Required date the URL will expire after -// DateLessThan: &sign.AWSEpochTime{time.Now().Add(1 * time.Hour)}, -// }, -// }, -// }, -// } -// -// // Get Signed cookies for a resource that will expire in 1 hour -// cookies, err := s.SignWithPolicy(policy) -// if err != nil { -// fmt.Println("failed to create signed cookies", err) -// return -// } -// -// // Or get Signed cookies for a resource that will expire in 1 hour -// // and set path and domain of cookies -// cookies, err := s.Sign(policy, func(o *sign.CookieOptions) { -// o.Path = "/" -// o.Domain = ".example.com" -// }) -// if err != nil { -// fmt.Println("failed to create signed cookies", err) -// return -// } -// -// // Server Response via http.ResponseWriter -// for _, c := range cookies { -// http.SetCookie(w, c) -// } -// -// // Client request via the cookie jar -// if client.CookieJar != nil { -// for _, c := range cookies { -// client.Cookie(w, c) -// } -// } -func (s CookieSigner) SignWithPolicy(p *Policy, opts ...func(*CookieOptions)) ([]*http.Cookie, error) { - return createCookies(p, s.keyID, s.privKey, s.Opts.apply(opts...)) -} - -// Prepares the cookies to be attached to the header. An (optional) options -// struct is provided in case people don't want to manually edit their cookies. -func createCookies(p *Policy, keyID string, privKey *rsa.PrivateKey, opt CookieOptions) ([]*http.Cookie, error) { - b64Sig, b64Policy, err := p.Sign(privKey) - if err != nil { - return nil, err - } - - // Creates proper cookies - cPolicy := &http.Cookie{ - Name: CookiePolicyName, - Value: string(b64Policy), - HttpOnly: true, - } - cSignature := &http.Cookie{ - Name: CookieSignatureName, - Value: string(b64Sig), - HttpOnly: true, - } - cKey := &http.Cookie{ - Name: CookieKeyIDName, - Value: keyID, - HttpOnly: true, - } - - cookies := []*http.Cookie{cPolicy, cSignature, cKey} - - // Applie the cookie options - for _, c := range cookies { - c.Path = opt.Path - c.Domain = opt.Domain - c.Secure = opt.Secure - } - - return cookies, nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie_example_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie_example_test.go deleted file mode 100644 index 3683360e8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie_example_test.go +++ /dev/null @@ -1,163 +0,0 @@ -package sign - -import ( - "fmt" - "io" - "math/rand" - "net/http" - "time" -) - -func examplePEMReader() io.Reader { - reader, err := generatePEM(randReader, nil) - if err != nil { - panic(fmt.Sprintf("Unexpected pem generation err %v", err)) - } - - return reader -} - -func ExampleCookieSigner_Sign() { - origRandReader := randReader - randReader = newRandomReader(rand.New(rand.NewSource(1))) - defer func() { - randReader = origRandReader - }() - - // Load your private key so it can be used by the CookieSigner - // To load private key from file use `sign.LoadPEMPrivKeyFile`. - privKey, err := LoadPEMPrivKey(examplePEMReader()) - if err != nil { - fmt.Println("failed to load private key", err) - return - } - - cookieSigner := NewCookieSigner("keyID", privKey) - - // Use the signer to sign the URL - cookies, err := cookieSigner.Sign("http://example.com/somepath/*", testSignTime.Add(30*time.Minute)) - if err != nil { - fmt.Println("failed to sign cookies with policy,", err) - return - } - - printExampleCookies(cookies) - // Output: - // Cookies: - // CloudFront-Policy: eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDovL2V4YW1wbGUuY29tL3NvbWVwYXRoLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjEyNTc4OTU4MDB9fX1dfQ__, , , false - // CloudFront-Signature: o~jvj~CFkvGZB~yYED3elicKZag-CRijy8yD2E5yF1s7VNV7kNeQWC7MDtEcBQ8-eh7Xgjh0wMPQdAVdh09gBObd-hXDpKUyh8YKxogj~oloV~8KOvqE5xzWiKcqjdfJjmT5iEqIui~H1ExYjyKjgir79npmlyYkaJS5s62EQa8_, , , false - // CloudFront-Key-Pair-Id: keyID, , , false -} - -func ExampleCookieSigner_SignWithPolicy() { - origRandReader := randReader - randReader = newRandomReader(rand.New(rand.NewSource(1))) - defer func() { - randReader = origRandReader - }() - - // Sign cookie to be valid for 30 minutes from now, expires one hour - // from now, and restricted to the 192.0.2.0/24 IP address range. - // http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-setting-signed-cookie-custom-policy.html - p := &Policy{ - // Only a single policy statement can be used with CloudFront - // cookie signatures. - Statements: []Statement{{ - // Read the provided documentation on how to set this correctly, - // you'll probably want to use wildcards - Resource: "http://sub.cloudfront.com", - Condition: Condition{ - // Optional IP source address range - IPAddress: &IPAddress{SourceIP: "192.0.2.0/24"}, - // Optional date URL is not valid until - DateGreaterThan: &AWSEpochTime{testSignTime.Add(30 * time.Minute)}, - // Required date the URL will expire after - DateLessThan: &AWSEpochTime{testSignTime.Add(1 * time.Hour)}, - }, - }, - }, - } - - // Load your private key so it can be used by the CookieSigner - // To load private key from file use `sign.LoadPEMPrivKeyFile`. - privKey, err := LoadPEMPrivKey(examplePEMReader()) - if err != nil { - fmt.Println("failed to load private key", err) - return - } - - // Key ID that represents the key pair associated with the private key - keyID := "privateKeyID" - - // Set credentials to the CookieSigner. - cookieSigner := NewCookieSigner(keyID, privKey) - - // Avoid adding an Expire or MaxAge. See provided AWS Documentation for - // more info. - cookies, err := cookieSigner.SignWithPolicy(p) - if err != nil { - fmt.Println("failed to sign cookies with policy,", err) - return - } - - printExampleCookies(cookies) - // Output: - // Cookies: - // CloudFront-Policy: eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDovL3N1Yi5jbG91ZGZyb250LmNvbSIsIkNvbmRpdGlvbiI6eyJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMTkyLjAuMi4wLzI0In0sIkRhdGVHcmVhdGVyVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxMjU3ODk1ODAwfSwiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjEyNTc4OTc2MDB9fX1dfQ__, , , false - // CloudFront-Signature: JaWdcbr98colrDAhOpkyxqCZev2IAxURu1RKKo1wS~sI5XdNXWYbZJs2FdpbJ475ZvmhZ1-r4ENUqBXAlRfPfOc21Hm4~24jRmPTO3512D4uuJHrPVxSfgeGuFeigfCGWAqyfYYH1DsFl5JQDpzetsNI3ZhGRkQb8V-oYFanddg_, , , false - // CloudFront-Key-Pair-Id: privateKeyID, , , false -} - -func ExampleCookieSigner_SignOptions() { - origRandReader := randReader - randReader = newRandomReader(rand.New(rand.NewSource(1))) - defer func() { - randReader = origRandReader - }() - - // Load your private key so it can be used by the CookieSigner - // To load private key from file use `sign.LoadPEMPrivKeyFile`. - privKey, err := LoadPEMPrivKey(examplePEMReader()) - if err != nil { - fmt.Println("failed to load private key", err) - return - } - - // Create the CookieSigner with options set. These options can be set - // directly with cookieSigner.Opts. These values can be overriden on - // individual Sign and SignWithProfile calls. - cookieSigner := NewCookieSigner("keyID", privKey, func(o *CookieOptions) { - //provide an optional struct fields to specify other options - o.Path = "/" - - // http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html - o.Domain = ".cNameAssociatedWithMyDistribution.com" - - // Make sure your app/site can handle https payloads, otherwise - // set this to false. - o.Secure = true - }) - - // Use the signer to sign the URL - cookies, err := cookieSigner.Sign("http*://*", testSignTime.Add(30*time.Minute), func(o *CookieOptions) { - o.Path = "/mypath/" - }) - if err != nil { - fmt.Println("failed to sign cookies with policy,", err) - return - } - - printExampleCookies(cookies) - // Output: - // Cookies: - // CloudFront-Policy: eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cCo6Ly8qIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxMjU3ODk1ODAwfX19XX0_, /mypath/, .cNameAssociatedWithMyDistribution.com, true - // CloudFront-Signature: Yco06vgowwvSYgTSY9XbXpBcTlUlqpyyYXgRhus3nfnC74A7oQ~fMBH0we-rGxvph8ZyHnTxC5ubbPKSzo3EHUm2IcQeEo4p6WCgZZMzCuLlkpeMKhMAkCqX7rmUfkXhTslBHe~ylcmaZqo-hdnOiWrXk2U974ZQbbt5cOjwQG0_, /mypath/, .cNameAssociatedWithMyDistribution.com, true - // CloudFront-Key-Pair-Id: keyID, /mypath/, .cNameAssociatedWithMyDistribution.com, true -} - -func printExampleCookies(cookies []*http.Cookie) { - fmt.Println("Cookies:") - for _, c := range cookies { - fmt.Printf("%s: %s, %s, %s, %t\n", c.Name, c.Value, c.Path, c.Domain, c.Secure) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie_test.go deleted file mode 100644 index 3bcd8672f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_cookie_test.go +++ /dev/null @@ -1,83 +0,0 @@ -package sign - -import ( - "crypto/rsa" - "testing" - "time" - - "github.com/stretchr/testify/assert" -) - -func TestNewCookieSigner(t *testing.T) { - privKey, err := rsa.GenerateKey(randReader, 1024) - if err != nil { - t.Fatalf("Unexpected priv key error, %#v", err) - } - - signer := NewCookieSigner("keyID", privKey) - assert.Equal(t, "keyID", signer.keyID) - assert.Equal(t, privKey, signer.privKey) -} - -func TestSignCookie(t *testing.T) { - privKey, err := rsa.GenerateKey(randReader, 1024) - assert.NoError(t, err) - - signer := NewCookieSigner("keyID", privKey) - cookies, err := signer.Sign("http*://*", time.Now().Add(1*time.Hour)) - - assert.NoError(t, err) - assert.Equal(t, CookiePolicyName, cookies[0].Name) - assert.Equal(t, CookieSignatureName, cookies[1].Name) - assert.Equal(t, CookieKeyIDName, cookies[2].Name) -} - -func TestSignCookie_WithPolicy(t *testing.T) { - privKey, err := rsa.GenerateKey(randReader, 1024) - assert.NoError(t, err) - - p := &Policy{ - Statements: []Statement{ - { - Resource: "*", - Condition: Condition{ - DateLessThan: &AWSEpochTime{time.Now().Add(1 * time.Hour)}, - }, - }, - }, - } - - signer := NewCookieSigner("keyID", privKey) - cookies, err := signer.SignWithPolicy(p) - - assert.NoError(t, err) - assert.Equal(t, CookiePolicyName, cookies[0].Name) - assert.Equal(t, CookieSignatureName, cookies[1].Name) - assert.Equal(t, CookieKeyIDName, cookies[2].Name) -} - -func TestSignCookie_WithCookieOptions(t *testing.T) { - privKey, err := rsa.GenerateKey(randReader, 1024) - assert.NoError(t, err) - - expires := time.Now().Add(1 * time.Hour) - - signer := NewCookieSigner("keyID", privKey) - cookies, err := signer.Sign("https://example.com/*", expires, func(o *CookieOptions) { - o.Path = "/" - o.Domain = ".example.com" - o.Secure = true - - }) - - assert.NoError(t, err) - assert.Equal(t, CookiePolicyName, cookies[0].Name) - assert.Equal(t, CookieSignatureName, cookies[1].Name) - assert.Equal(t, CookieKeyIDName, cookies[2].Name) - - for _, c := range cookies { - assert.Equal(t, "/", c.Path) - assert.Equal(t, ".example.com", c.Domain) - assert.True(t, c.Secure) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url.go index ba56b4a78..79069568d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url.go @@ -81,7 +81,7 @@ func (s URLSigner) Sign(url string, expires time.Time) (string, error) { // Use this signing method if you are looking to sign a URL with more than just // the URL's expiry time, or reusing Policies between multiple URL signings. // If only the expiry time is needed you can use Sign and provide just the -// URL's expiry time. A minimum of at least one policy statement is required for a signed URL. +// URL's expiry time. // // Note: It is not safe to use Polices between multiple signers concurrently // @@ -90,19 +90,19 @@ func (s URLSigner) Sign(url string, expires time.Time) (string, error) { // // Sign URL to be valid for 30 minutes from now, expires one hour from now, and // // restricted to the 192.0.2.0/24 IP address range. // policy := &sign.Policy{ -// Statements: []sign.Statement{ +// Statements: []Statement{ // { // Resource: rawURL, -// Condition: sign.Condition{ +// Condition: Condition{ // // Optional IP source address range -// IPAddress: &sign.IPAddress{SourceIP: "192.0.2.0/24"}, +// IPAddress: &IPAddress{SourceIP: "192.0.2.0/24"}, // // Optional date URL is not valid until -// DateGreaterThan: &sign.AWSEpochTime{time.Now().Add(30 * time.Minute)}, +// DateGreaterThan: &AWSEpochTime{time.Now().Add(30 * time.Minute)}, // // Required date the URL will expire after -// DateLessThan: &sign.AWSEpochTime{time.Now().Add(1 * time.Hour)}, -// }, -// }, -// }, +// DateLessThan: &AWSEpochTime{time.Now().Add(1 * time.Hour)}, +// } +// } +// } // } // // signer := sign.NewURLSigner(keyID, privKey) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url_test.go index 21acfabb3..0da021f0c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url_test.go @@ -26,10 +26,6 @@ var testSignURL = []struct { "http://example.com/a", nil, testSignTime, false, false, "http://example.com/a?Expires=1257894000&Signature=Y6qvWOZNl99uNPMGprvrKXEmXpLWJ-xXKVHL~nmF0BR1jPb2XA2jor0MUYKBE4ViTkWZZ1dz46zSFMsEEfw~n6-SVYXZ2QHBBTkSAoxGtH6dH33Ph9pz~f9Wy7aYXq~9I-Ah0E6yC~BMiQuXe5qAOucuMPorKgPfC0dvLMw2EF0_&Key-Pair-Id=KeyID", }, - { - "http://example.com/Ƿ", nil, testSignTime, false, true, - "http://example.com/Ƿ?Expires=1257894000&Signature=Y6qvWOZNl99uNPMGprvrKXEmXpLWJ-xXKVHL~nmF0BR1jPb2XA2jor0MUYKBE4ViTkWZZ1dz46zSFMsEEfw~n6-SVYXZ2QHBBTkSAoxGtH6dH33Ph9pz~f9Wy7aYXq~9I-Ah0E6yC~BMiQuXe5qAOucuMPorKgPfC0dvLMw2EF0_&Key-Pair-Id=KeyID", - }, { "http://example.com/a", &Policy{}, time.Time{}, true, true, "http://example.com/a?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDovL2V4YW1wbGUuY29tL2EiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjEyNTc4OTQwMDB9fX1dfQ__&Signature=Y6qvWOZNl99uNPMGprvrKXEmXpLWJ-xXKVHL~nmF0BR1jPb2XA2jor0MUYKBE4ViTkWZZ1dz46zSFMsEEfw~n6-SVYXZ2QHBBTkSAoxGtH6dH33Ph9pz~f9Wy7aYXq~9I-Ah0E6yC~BMiQuXe5qAOucuMPorKgPfC0dvLMw2EF0_&Key-Pair-Id=KeyID", diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/waiters.go deleted file mode 100644 index 7a0525d17..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/waiters.go +++ /dev/null @@ -1,76 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package cloudfront - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *CloudFront) WaitUntilDistributionDeployed(input *GetDistributionInput) error { - waiterCfg := waiter.Config{ - Operation: "GetDistribution", - Delay: 60, - MaxAttempts: 25, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "Distribution.Status", - Expected: "Deployed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *CloudFront) WaitUntilInvalidationCompleted(input *GetInvalidationInput) error { - waiterCfg := waiter.Config{ - Operation: "GetInvalidation", - Delay: 20, - MaxAttempts: 30, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "Invalidation.Status", - Expected: "Completed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *CloudFront) WaitUntilStreamingDistributionDeployed(input *GetStreamingDistributionInput) error { - waiterCfg := waiter.Config{ - Operation: "GetStreamingDistribution", - Delay: 60, - MaxAttempts: 25, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "StreamingDistribution.Status", - Expected: "Deployed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/api.go index 795a45bde..6463d5416 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/api.go @@ -4,42 +4,10 @@ package cloudhsm import ( - "fmt" - "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" ) -const opAddTagsToResource = "AddTagsToResource" - -// AddTagsToResourceRequest generates a request for the AddTagsToResource operation. -func (c *CloudHSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) { - op := &request.Operation{ - Name: opAddTagsToResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AddTagsToResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &AddTagsToResourceOutput{} - req.Data = output - return -} - -// Adds or overwrites one or more tags for the specified AWS CloudHSM resource. -// -// Each tag consists of a key and a value. Tag keys must be unique to each -// resource. -func (c *CloudHSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { - req, out := c.AddTagsToResourceRequest(input) - err := req.Send() - return out, err -} - const opCreateHapg = "CreateHapg" // CreateHapgRequest generates a request for the CreateHapg operation. @@ -96,7 +64,7 @@ func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request // the AWS Support Center (https://console.aws.amazon.com/support/home#/), create // a new case, and select Account and Billing Support. // -// It can take up to 20 minutes to create and provision an HSM. You can monitor +// It can take up to 20 minutes to create and provision an HSM. You can monitor // the status of the HSM with the DescribeHsm operation. The HSM is ready to // be initialized when the status changes to RUNNING. func (c *CloudHSM) CreateHsm(input *CreateHsmInput) (*CreateHsmOutput, error) { @@ -448,33 +416,6 @@ func (c *CloudHSM) ListLunaClients(input *ListLunaClientsInput) (*ListLunaClient return out, err } -const opListTagsForResource = "ListTagsForResource" - -// ListTagsForResourceRequest generates a request for the ListTagsForResource operation. -func (c *CloudHSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { - op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListTagsForResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTagsForResourceOutput{} - req.Data = output - return -} - -// Returns a list of all tags for the specified AWS CloudHSM resource. -func (c *CloudHSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) - err := req.Send() - return out, err -} - const opModifyHapg = "ModifyHapg" // ModifyHapgRequest generates a request for the ModifyHapg operation. @@ -524,8 +465,8 @@ func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request // Modifies an HSM. // -// This operation can result in the HSM being offline for up to 15 minutes -// while the AWS CloudHSM service is reconfigured. If you are modifying a production +// This operation can result in the HSM being offline for up to 15 minutes +// while the AWS CloudHSM service is reconfigured. If you are modifying a production // HSM, you should ensure that your AWS CloudHSM service is configured for high // availability, and consider executing this operation during a maintenance // window. @@ -565,105 +506,16 @@ func (c *CloudHSM) ModifyLunaClient(input *ModifyLunaClientInput) (*ModifyLunaCl return out, err } -const opRemoveTagsFromResource = "RemoveTagsFromResource" - -// RemoveTagsFromResourceRequest generates a request for the RemoveTagsFromResource operation. -func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { - op := &request.Operation{ - Name: opRemoveTagsFromResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RemoveTagsFromResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &RemoveTagsFromResourceOutput{} - req.Data = output - return -} - -// Removes one or more tags from the specified AWS CloudHSM resource. -// -// To remove a tag, specify only the tag key to remove (not the value). To -// overwrite the value for an existing tag, use AddTagsToResource. -func (c *CloudHSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { - req, out := c.RemoveTagsFromResourceRequest(input) - err := req.Send() - return out, err -} - -type AddTagsToResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag. - ResourceArn *string `type:"string" required:"true"` - - // One or more tags. - TagList []*Tag `type:"list" required:"true"` -} - -// String returns the string representation -func (s AddTagsToResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsToResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.TagList == nil { - invalidParams.Add(request.NewErrParamRequired("TagList")) - } - if s.TagList != nil { - for i, v := range s.TagList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagList", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type AddTagsToResourceOutput struct { - _ struct{} `type:"structure"` - - // The status of the operation. - Status *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s AddTagsToResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsToResourceOutput) GoString() string { - return s.String() -} - // Contains the inputs for the CreateHapgRequest action. type CreateHapgInput struct { - _ struct{} `type:"structure"` - // The label of the new high-availability partition group. Label *string `type:"string" required:"true"` + + metadataCreateHapgInput `json:"-" xml:"-"` +} + +type metadataCreateHapgInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -676,25 +528,16 @@ func (s CreateHapgInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateHapgInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateHapgInput"} - if s.Label == nil { - invalidParams.Add(request.NewErrParamRequired("Label")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of the CreateHAPartitionGroup action. type CreateHapgOutput struct { - _ struct{} `type:"structure"` - // The ARN of the high-availability partition group. HapgArn *string `type:"string"` + + metadataCreateHapgOutput `json:"-" xml:"-"` +} + +type metadataCreateHapgOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -709,8 +552,6 @@ func (s CreateHapgOutput) GoString() string { // Contains the inputs for the CreateHsm operation. type CreateHsmInput struct { - _ struct{} `locationName:"CreateHsmRequest" type:"structure"` - // A user-defined token to ensure idempotence. Subsequent calls to this operation // with the same token will be ignored. ClientToken *string `locationName:"ClientToken" type:"string"` @@ -736,13 +577,19 @@ type CreateHsmInput struct { // Specifies the type of subscription for the HSM. // - // PRODUCTION - The HSM is being used in a production environment. TRIAL - - // The HSM is being used in a product trial. + // PRODUCTION - The HSM is being used in a production environment. TRIAL + // - The HSM is being used in a product trial. SubscriptionType *string `locationName:"SubscriptionType" type:"string" required:"true" enum:"SubscriptionType"` // The IP address for the syslog monitoring server. The AWS CloudHSM service // only supports one syslog monitoring server. SyslogIp *string `locationName:"SyslogIp" type:"string"` + + metadataCreateHsmInput `json:"-" xml:"-"` +} + +type metadataCreateHsmInput struct { + SDKShapeTraits bool `locationName:"CreateHsmRequest" type:"structure"` } // String returns the string representation @@ -755,34 +602,16 @@ func (s CreateHsmInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateHsmInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateHsmInput"} - if s.IamRoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("IamRoleArn")) - } - if s.SshKey == nil { - invalidParams.Add(request.NewErrParamRequired("SshKey")) - } - if s.SubnetId == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetId")) - } - if s.SubscriptionType == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of the CreateHsm operation. type CreateHsmOutput struct { - _ struct{} `type:"structure"` - // The ARN of the HSM. HsmArn *string `type:"string"` + + metadataCreateHsmOutput `json:"-" xml:"-"` +} + +type metadataCreateHsmOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -797,14 +626,18 @@ func (s CreateHsmOutput) GoString() string { // Contains the inputs for the CreateLunaClient action. type CreateLunaClientInput struct { - _ struct{} `type:"structure"` - // The contents of a Base64-Encoded X.509 v3 certificate to be installed on // the HSMs used by this client. - Certificate *string `min:"600" type:"string" required:"true"` + Certificate *string `type:"string" required:"true"` // The label for the client. Label *string `type:"string"` + + metadataCreateLunaClientInput `json:"-" xml:"-"` +} + +type metadataCreateLunaClientInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -817,28 +650,16 @@ func (s CreateLunaClientInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLunaClientInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLunaClientInput"} - if s.Certificate == nil { - invalidParams.Add(request.NewErrParamRequired("Certificate")) - } - if s.Certificate != nil && len(*s.Certificate) < 600 { - invalidParams.Add(request.NewErrParamMinLen("Certificate", 600)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of the CreateLunaClient action. type CreateLunaClientOutput struct { - _ struct{} `type:"structure"` - // The ARN of the client. ClientArn *string `type:"string"` + + metadataCreateLunaClientOutput `json:"-" xml:"-"` +} + +type metadataCreateLunaClientOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -853,10 +674,14 @@ func (s CreateLunaClientOutput) GoString() string { // Contains the inputs for the DeleteHapg action. type DeleteHapgInput struct { - _ struct{} `type:"structure"` - // The ARN of the high-availability partition group to delete. HapgArn *string `type:"string" required:"true"` + + metadataDeleteHapgInput `json:"-" xml:"-"` +} + +type metadataDeleteHapgInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -869,25 +694,16 @@ func (s DeleteHapgInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteHapgInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteHapgInput"} - if s.HapgArn == nil { - invalidParams.Add(request.NewErrParamRequired("HapgArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of the DeleteHapg action. type DeleteHapgOutput struct { - _ struct{} `type:"structure"` - // The status of the action. Status *string `type:"string" required:"true"` + + metadataDeleteHapgOutput `json:"-" xml:"-"` +} + +type metadataDeleteHapgOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -902,10 +718,14 @@ func (s DeleteHapgOutput) GoString() string { // Contains the inputs for the DeleteHsm operation. type DeleteHsmInput struct { - _ struct{} `locationName:"DeleteHsmRequest" type:"structure"` - // The ARN of the HSM to delete. HsmArn *string `locationName:"HsmArn" type:"string" required:"true"` + + metadataDeleteHsmInput `json:"-" xml:"-"` +} + +type metadataDeleteHsmInput struct { + SDKShapeTraits bool `locationName:"DeleteHsmRequest" type:"structure"` } // String returns the string representation @@ -918,25 +738,16 @@ func (s DeleteHsmInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteHsmInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteHsmInput"} - if s.HsmArn == nil { - invalidParams.Add(request.NewErrParamRequired("HsmArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of the DeleteHsm operation. type DeleteHsmOutput struct { - _ struct{} `type:"structure"` - // The status of the operation. Status *string `type:"string" required:"true"` + + metadataDeleteHsmOutput `json:"-" xml:"-"` +} + +type metadataDeleteHsmOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -950,10 +761,14 @@ func (s DeleteHsmOutput) GoString() string { } type DeleteLunaClientInput struct { - _ struct{} `type:"structure"` - // The ARN of the client to delete. ClientArn *string `type:"string" required:"true"` + + metadataDeleteLunaClientInput `json:"-" xml:"-"` +} + +type metadataDeleteLunaClientInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -966,24 +781,15 @@ func (s DeleteLunaClientInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLunaClientInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLunaClientInput"} - if s.ClientArn == nil { - invalidParams.Add(request.NewErrParamRequired("ClientArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteLunaClientOutput struct { - _ struct{} `type:"structure"` - // The status of the action. Status *string `type:"string" required:"true"` + + metadataDeleteLunaClientOutput `json:"-" xml:"-"` +} + +type metadataDeleteLunaClientOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -998,10 +804,14 @@ func (s DeleteLunaClientOutput) GoString() string { // Contains the inputs for the DescribeHapg action. type DescribeHapgInput struct { - _ struct{} `type:"structure"` - // The ARN of the high-availability partition group to describe. HapgArn *string `type:"string" required:"true"` + + metadataDescribeHapgInput `json:"-" xml:"-"` +} + +type metadataDescribeHapgInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1014,23 +824,8 @@ func (s DescribeHapgInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeHapgInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeHapgInput"} - if s.HapgArn == nil { - invalidParams.Add(request.NewErrParamRequired("HapgArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of the DescribeHapg action. type DescribeHapgOutput struct { - _ struct{} `type:"structure"` - // The ARN of the high-availability partition group. HapgArn *string `type:"string"` @@ -1058,6 +853,12 @@ type DescribeHapgOutput struct { // The state of the high-availability partition group. State *string `type:"string" enum:"CloudHsmObjectState"` + + metadataDescribeHapgOutput `json:"-" xml:"-"` +} + +type metadataDescribeHapgOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1072,8 +873,6 @@ func (s DescribeHapgOutput) GoString() string { // Contains the inputs for the DescribeHsm operation. type DescribeHsmInput struct { - _ struct{} `type:"structure"` - // The ARN of the HSM. Either the HsmArn or the SerialNumber parameter must // be specified. HsmArn *string `type:"string"` @@ -1081,6 +880,12 @@ type DescribeHsmInput struct { // The serial number of the HSM. Either the HsmArn or the HsmSerialNumber parameter // must be specified. HsmSerialNumber *string `type:"string"` + + metadataDescribeHsmInput `json:"-" xml:"-"` +} + +type metadataDescribeHsmInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1095,8 +900,6 @@ func (s DescribeHsmInput) GoString() string { // Contains the output of the DescribeHsm operation. type DescribeHsmOutput struct { - _ struct{} `type:"structure"` - // The Availability Zone that the HSM is in. AvailabilityZone *string `type:"string"` @@ -1153,8 +956,8 @@ type DescribeHsmOutput struct { // Specifies the type of subscription for the HSM. // - // PRODUCTION - The HSM is being used in a production environment. TRIAL - - // The HSM is being used in a product trial. + // PRODUCTION - The HSM is being used in a production environment. TRIAL + // - The HSM is being used in a product trial. SubscriptionType *string `type:"string" enum:"SubscriptionType"` // The name of the HSM vendor. @@ -1162,6 +965,12 @@ type DescribeHsmOutput struct { // The identifier of the VPC that the HSM is in. VpcId *string `type:"string"` + + metadataDescribeHsmOutput `json:"-" xml:"-"` +} + +type metadataDescribeHsmOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1175,13 +984,17 @@ func (s DescribeHsmOutput) GoString() string { } type DescribeLunaClientInput struct { - _ struct{} `type:"structure"` - // The certificate fingerprint. CertificateFingerprint *string `type:"string"` // The ARN of the client. ClientArn *string `type:"string"` + + metadataDescribeLunaClientInput `json:"-" xml:"-"` +} + +type metadataDescribeLunaClientInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1195,10 +1008,8 @@ func (s DescribeLunaClientInput) GoString() string { } type DescribeLunaClientOutput struct { - _ struct{} `type:"structure"` - // The certificate installed on the HSMs used by this client. - Certificate *string `min:"600" type:"string"` + Certificate *string `type:"string"` // The certificate fingerprint. CertificateFingerprint *string `type:"string"` @@ -1211,6 +1022,12 @@ type DescribeLunaClientOutput struct { // The date and time the client was last modified. LastModifiedTimestamp *string `type:"string"` + + metadataDescribeLunaClientOutput `json:"-" xml:"-"` +} + +type metadataDescribeLunaClientOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1224,8 +1041,6 @@ func (s DescribeLunaClientOutput) GoString() string { } type GetConfigInput struct { - _ struct{} `type:"structure"` - // The ARN of the client. ClientArn *string `type:"string" required:"true"` @@ -1235,6 +1050,12 @@ type GetConfigInput struct { // A list of ARNs that identify the high-availability partition groups that // are associated with the client. HapgList []*string `type:"list" required:"true"` + + metadataGetConfigInput `json:"-" xml:"-"` +} + +type metadataGetConfigInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1247,28 +1068,7 @@ func (s GetConfigInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetConfigInput"} - if s.ClientArn == nil { - invalidParams.Add(request.NewErrParamRequired("ClientArn")) - } - if s.ClientVersion == nil { - invalidParams.Add(request.NewErrParamRequired("ClientVersion")) - } - if s.HapgList == nil { - invalidParams.Add(request.NewErrParamRequired("HapgList")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetConfigOutput struct { - _ struct{} `type:"structure"` - // The certificate file containing the server.pem files of the HSMs. ConfigCred *string `type:"string"` @@ -1277,6 +1077,12 @@ type GetConfigOutput struct { // The type of credentials. ConfigType *string `type:"string"` + + metadataGetConfigOutput `json:"-" xml:"-"` +} + +type metadataGetConfigOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1291,7 +1097,11 @@ func (s GetConfigOutput) GoString() string { // Contains the inputs for the ListAvailableZones action. type ListAvailableZonesInput struct { - _ struct{} `type:"structure"` + metadataListAvailableZonesInput `json:"-" xml:"-"` +} + +type metadataListAvailableZonesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1305,10 +1115,14 @@ func (s ListAvailableZonesInput) GoString() string { } type ListAvailableZonesOutput struct { - _ struct{} `type:"structure"` - // The list of Availability Zones that have available AWS CloudHSM capacity. AZList []*string `type:"list"` + + metadataListAvailableZonesOutput `json:"-" xml:"-"` +} + +type metadataListAvailableZonesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1322,11 +1136,15 @@ func (s ListAvailableZonesOutput) GoString() string { } type ListHapgsInput struct { - _ struct{} `type:"structure"` - // The NextToken value from a previous call to ListHapgs. Pass null if this // is the first call. NextToken *string `type:"string"` + + metadataListHapgsInput `json:"-" xml:"-"` +} + +type metadataListHapgsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1340,14 +1158,18 @@ func (s ListHapgsInput) GoString() string { } type ListHapgsOutput struct { - _ struct{} `type:"structure"` - // The list of high-availability partition groups. HapgList []*string `type:"list" required:"true"` // If not null, more results are available. Pass this value to ListHapgs to // retrieve the next set of items. NextToken *string `type:"string"` + + metadataListHapgsOutput `json:"-" xml:"-"` +} + +type metadataListHapgsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1361,11 +1183,15 @@ func (s ListHapgsOutput) GoString() string { } type ListHsmsInput struct { - _ struct{} `type:"structure"` - // The NextToken value from a previous call to ListHsms. Pass null if this is // the first call. NextToken *string `type:"string"` + + metadataListHsmsInput `json:"-" xml:"-"` +} + +type metadataListHsmsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1380,14 +1206,18 @@ func (s ListHsmsInput) GoString() string { // Contains the output of the ListHsms operation. type ListHsmsOutput struct { - _ struct{} `type:"structure"` - // The list of ARNs that identify the HSMs. HsmList []*string `type:"list"` // If not null, more results are available. Pass this value to ListHsms to retrieve // the next set of items. NextToken *string `type:"string"` + + metadataListHsmsOutput `json:"-" xml:"-"` +} + +type metadataListHsmsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1401,11 +1231,15 @@ func (s ListHsmsOutput) GoString() string { } type ListLunaClientsInput struct { - _ struct{} `type:"structure"` - // The NextToken value from a previous call to ListLunaClients. Pass null if // this is the first call. NextToken *string `type:"string"` + + metadataListLunaClientsInput `json:"-" xml:"-"` +} + +type metadataListLunaClientsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1419,76 +1253,31 @@ func (s ListLunaClientsInput) GoString() string { } type ListLunaClientsOutput struct { - _ struct{} `type:"structure"` - // The list of clients. ClientList []*string `type:"list" required:"true"` // If not null, more results are available. Pass this to ListLunaClients to // retrieve the next set of items. NextToken *string `type:"string"` -} -// String returns the string representation -func (s ListLunaClientsOutput) String() string { - return awsutil.Prettify(s) + metadataListLunaClientsOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s ListLunaClientsOutput) GoString() string { - return s.String() -} - -type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the AWS CloudHSM resource. - 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 -} - -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - - // One or more tags. - TagList []*Tag `type:"list" required:"true"` +type metadataListLunaClientsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTagsForResourceOutput) String() string { +func (s ListLunaClientsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourceOutput) GoString() string { +func (s ListLunaClientsOutput) GoString() string { return s.String() } type ModifyHapgInput struct { - _ struct{} `type:"structure"` - // The ARN of the high-availability partition group to modify. HapgArn *string `type:"string" required:"true"` @@ -1498,6 +1287,12 @@ type ModifyHapgInput struct { // The list of partition serial numbers to make members of the high-availability // partition group. PartitionSerialList []*string `type:"list"` + + metadataModifyHapgInput `json:"-" xml:"-"` +} + +type metadataModifyHapgInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1510,24 +1305,15 @@ func (s ModifyHapgInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyHapgInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyHapgInput"} - if s.HapgArn == nil { - invalidParams.Add(request.NewErrParamRequired("HapgArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyHapgOutput struct { - _ struct{} `type:"structure"` - // The ARN of the high-availability partition group. HapgArn *string `type:"string"` + + metadataModifyHapgOutput `json:"-" xml:"-"` +} + +type metadataModifyHapgOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1542,8 +1328,6 @@ func (s ModifyHapgOutput) GoString() string { // Contains the inputs for the ModifyHsm operation. type ModifyHsmInput struct { - _ struct{} `locationName:"ModifyHsmRequest" type:"structure"` - // The new IP address for the elastic network interface (ENI) attached to the // HSM. // @@ -1567,6 +1351,12 @@ type ModifyHsmInput struct { // The new IP address for the syslog monitoring server. The AWS CloudHSM service // only supports one syslog monitoring server. SyslogIp *string `locationName:"SyslogIp" type:"string"` + + metadataModifyHsmInput `json:"-" xml:"-"` +} + +type metadataModifyHsmInput struct { + SDKShapeTraits bool `locationName:"ModifyHsmRequest" type:"structure"` } // String returns the string representation @@ -1579,25 +1369,16 @@ func (s ModifyHsmInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyHsmInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyHsmInput"} - if s.HsmArn == nil { - invalidParams.Add(request.NewErrParamRequired("HsmArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of the ModifyHsm operation. type ModifyHsmOutput struct { - _ struct{} `type:"structure"` - // The ARN of the HSM. HsmArn *string `type:"string"` + + metadataModifyHsmOutput `json:"-" xml:"-"` +} + +type metadataModifyHsmOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1611,13 +1392,17 @@ func (s ModifyHsmOutput) GoString() string { } type ModifyLunaClientInput struct { - _ struct{} `type:"structure"` - // The new certificate for the client. - Certificate *string `min:"600" type:"string" required:"true"` + Certificate *string `type:"string" required:"true"` // The ARN of the client. ClientArn *string `type:"string" required:"true"` + + metadataModifyLunaClientInput `json:"-" xml:"-"` +} + +type metadataModifyLunaClientInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1630,139 +1415,27 @@ func (s ModifyLunaClientInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyLunaClientInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyLunaClientInput"} - if s.Certificate == nil { - invalidParams.Add(request.NewErrParamRequired("Certificate")) - } - if s.Certificate != nil && len(*s.Certificate) < 600 { - invalidParams.Add(request.NewErrParamMinLen("Certificate", 600)) - } - if s.ClientArn == nil { - invalidParams.Add(request.NewErrParamRequired("ClientArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyLunaClientOutput struct { - _ struct{} `type:"structure"` - // The ARN of the client. ClientArn *string `type:"string"` -} - -// String returns the string representation -func (s ModifyLunaClientOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyLunaClientOutput) GoString() string { - return s.String() -} - -type RemoveTagsFromResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the AWS CloudHSM resource. - ResourceArn *string `type:"string" required:"true"` - // The tag key or keys to remove. - // - // Specify only the tag key to remove (not the value). To overwrite the value - // for an existing tag, use AddTagsToResource. - TagKeyList []*string `type:"list" required:"true"` + metadataModifyLunaClientOutput `json:"-" xml:"-"` } -// String returns the string representation -func (s RemoveTagsFromResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTagsFromResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsFromResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.TagKeyList == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeyList")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RemoveTagsFromResourceOutput struct { - _ struct{} `type:"structure"` - - // The status of the operation. - Status *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s RemoveTagsFromResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTagsFromResourceOutput) GoString() string { - return s.String() -} - -// A key-value pair that identifies or specifies metadata about an AWS CloudHSM -// resource. -type Tag struct { - _ struct{} `type:"structure"` - - // The key of the tag. - Key *string `min:"1" type:"string" required:"true"` - - // The value of the tag. - Value *string `type:"string" required:"true"` +type metadataModifyLunaClientOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Tag) String() string { +func (s ModifyLunaClientOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Tag) GoString() string { +func (s ModifyLunaClientOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - 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.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - const ( // @enum ClientVersion ClientVersion51 = "5.1" @@ -1798,8 +1471,8 @@ const ( // Specifies the type of subscription for the HSM. // -// PRODUCTION - The HSM is being used in a production environment. TRIAL - -// The HSM is being used in a product trial. +// PRODUCTION - The HSM is being used in a production environment. TRIAL +// - The HSM is being used in a product trial. const ( // @enum SubscriptionType SubscriptionTypeProduction = "PRODUCTION" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go index c7155e543..9478da3bc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface.go @@ -10,10 +10,6 @@ import ( // CloudHSMAPI is the interface type for cloudhsm.CloudHSM. type CloudHSMAPI interface { - AddTagsToResourceRequest(*cloudhsm.AddTagsToResourceInput) (*request.Request, *cloudhsm.AddTagsToResourceOutput) - - AddTagsToResource(*cloudhsm.AddTagsToResourceInput) (*cloudhsm.AddTagsToResourceOutput, error) - CreateHapgRequest(*cloudhsm.CreateHapgInput) (*request.Request, *cloudhsm.CreateHapgOutput) CreateHapg(*cloudhsm.CreateHapgInput) (*cloudhsm.CreateHapgOutput, error) @@ -70,10 +66,6 @@ type CloudHSMAPI interface { ListLunaClients(*cloudhsm.ListLunaClientsInput) (*cloudhsm.ListLunaClientsOutput, error) - ListTagsForResourceRequest(*cloudhsm.ListTagsForResourceInput) (*request.Request, *cloudhsm.ListTagsForResourceOutput) - - ListTagsForResource(*cloudhsm.ListTagsForResourceInput) (*cloudhsm.ListTagsForResourceOutput, error) - ModifyHapgRequest(*cloudhsm.ModifyHapgInput) (*request.Request, *cloudhsm.ModifyHapgOutput) ModifyHapg(*cloudhsm.ModifyHapgInput) (*cloudhsm.ModifyHapgOutput, error) @@ -85,10 +77,4 @@ type CloudHSMAPI interface { ModifyLunaClientRequest(*cloudhsm.ModifyLunaClientInput) (*request.Request, *cloudhsm.ModifyLunaClientOutput) ModifyLunaClient(*cloudhsm.ModifyLunaClientInput) (*cloudhsm.ModifyLunaClientOutput, error) - - RemoveTagsFromResourceRequest(*cloudhsm.RemoveTagsFromResourceInput) (*request.Request, *cloudhsm.RemoveTagsFromResourceOutput) - - RemoveTagsFromResource(*cloudhsm.RemoveTagsFromResourceInput) (*cloudhsm.RemoveTagsFromResourceOutput, error) } - -var _ CloudHSMAPI = (*cloudhsm.CloudHSM)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface_test.go new file mode 100644 index 000000000..7eea246f3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudhsmiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/cloudhsm" + "github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*cloudhsmiface.CloudHSMAPI)(nil), cloudhsm.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go index 186378923..2103e86a1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/examples_test.go @@ -8,41 +8,14 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudhsm" ) var _ time.Duration var _ bytes.Buffer -func ExampleCloudHSM_AddTagsToResource() { - svc := cloudhsm.New(session.New()) - - params := &cloudhsm.AddTagsToResourceInput{ - ResourceArn: aws.String("String"), // Required - TagList: []*cloudhsm.Tag{ // Required - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), // Required - }, - // More values... - }, - } - resp, err := svc.AddTagsToResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudHSM_CreateHapg() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.CreateHapgInput{ Label: aws.String("Label"), // Required @@ -61,7 +34,7 @@ func ExampleCloudHSM_CreateHapg() { } func ExampleCloudHSM_CreateHsm() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.CreateHsmInput{ IamRoleArn: aws.String("IamRoleArn"), // Required @@ -87,7 +60,7 @@ func ExampleCloudHSM_CreateHsm() { } func ExampleCloudHSM_CreateLunaClient() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.CreateLunaClientInput{ Certificate: aws.String("Certificate"), // Required @@ -107,7 +80,7 @@ func ExampleCloudHSM_CreateLunaClient() { } func ExampleCloudHSM_DeleteHapg() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.DeleteHapgInput{ HapgArn: aws.String("HapgArn"), // Required @@ -126,7 +99,7 @@ func ExampleCloudHSM_DeleteHapg() { } func ExampleCloudHSM_DeleteHsm() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.DeleteHsmInput{ HsmArn: aws.String("HsmArn"), // Required @@ -145,7 +118,7 @@ func ExampleCloudHSM_DeleteHsm() { } func ExampleCloudHSM_DeleteLunaClient() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.DeleteLunaClientInput{ ClientArn: aws.String("ClientArn"), // Required @@ -164,7 +137,7 @@ func ExampleCloudHSM_DeleteLunaClient() { } func ExampleCloudHSM_DescribeHapg() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.DescribeHapgInput{ HapgArn: aws.String("HapgArn"), // Required @@ -183,7 +156,7 @@ func ExampleCloudHSM_DescribeHapg() { } func ExampleCloudHSM_DescribeHsm() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.DescribeHsmInput{ HsmArn: aws.String("HsmArn"), @@ -203,7 +176,7 @@ func ExampleCloudHSM_DescribeHsm() { } func ExampleCloudHSM_DescribeLunaClient() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.DescribeLunaClientInput{ CertificateFingerprint: aws.String("CertificateFingerprint"), @@ -223,7 +196,7 @@ func ExampleCloudHSM_DescribeLunaClient() { } func ExampleCloudHSM_GetConfig() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.GetConfigInput{ ClientArn: aws.String("ClientArn"), // Required @@ -247,7 +220,7 @@ func ExampleCloudHSM_GetConfig() { } func ExampleCloudHSM_ListAvailableZones() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) var params *cloudhsm.ListAvailableZonesInput resp, err := svc.ListAvailableZones(params) @@ -264,7 +237,7 @@ func ExampleCloudHSM_ListAvailableZones() { } func ExampleCloudHSM_ListHapgs() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.ListHapgsInput{ NextToken: aws.String("PaginationToken"), @@ -283,7 +256,7 @@ func ExampleCloudHSM_ListHapgs() { } func ExampleCloudHSM_ListHsms() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.ListHsmsInput{ NextToken: aws.String("PaginationToken"), @@ -302,7 +275,7 @@ func ExampleCloudHSM_ListHsms() { } func ExampleCloudHSM_ListLunaClients() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.ListLunaClientsInput{ NextToken: aws.String("PaginationToken"), @@ -320,27 +293,8 @@ func ExampleCloudHSM_ListLunaClients() { fmt.Println(resp) } -func ExampleCloudHSM_ListTagsForResource() { - svc := cloudhsm.New(session.New()) - - params := &cloudhsm.ListTagsForResourceInput{ - ResourceArn: aws.String("String"), // Required - } - resp, err := svc.ListTagsForResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudHSM_ModifyHapg() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.ModifyHapgInput{ HapgArn: aws.String("HapgArn"), // Required @@ -364,7 +318,7 @@ func ExampleCloudHSM_ModifyHapg() { } func ExampleCloudHSM_ModifyHsm() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.ModifyHsmInput{ HsmArn: aws.String("HsmArn"), // Required @@ -388,7 +342,7 @@ func ExampleCloudHSM_ModifyHsm() { } func ExampleCloudHSM_ModifyLunaClient() { - svc := cloudhsm.New(session.New()) + svc := cloudhsm.New(nil) params := &cloudhsm.ModifyLunaClientInput{ Certificate: aws.String("Certificate"), // Required @@ -406,26 +360,3 @@ func ExampleCloudHSM_ModifyLunaClient() { // Pretty-print the response data. fmt.Println(resp) } - -func ExampleCloudHSM_RemoveTagsFromResource() { - svc := cloudhsm.New(session.New()) - - params := &cloudhsm.RemoveTagsFromResourceInput{ - ResourceArn: aws.String("String"), // Required - TagKeyList: []*string{ // Required - aws.String("TagKey"), // Required - // More values... - }, - } - resp, err := svc.RemoveTagsFromResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/service.go index f52aa7a5a..c417aad61 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsm/service.go @@ -4,73 +4,50 @@ package cloudhsm import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type CloudHSM struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudhsm" - -// New creates a new instance of the CloudHSM client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CloudHSM client from just a session. -// svc := cloudhsm.New(mySession) -// -// // Create a CloudHSM client with additional configuration -// svc := cloudhsm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudHSM { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudHSM { - svc := &CloudHSM{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-05-30", - JSONVersion: "1.1", - TargetPrefix: "CloudHsmFrontendService", - }, - handlers, - ), +// New returns a new CloudHSM client. +func New(config *aws.Config) *CloudHSM { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "cloudhsm", + APIVersion: "2014-05-30", + JSONVersion: "1.1", + TargetPrefix: "CloudHsmFrontendService", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CloudHSM{service} } // newRequest creates a new request for a CloudHSM operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/api.go index 6f1cb9939..9bf9bf93e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/api.go @@ -750,8 +750,6 @@ func (c *CloudSearch) UpdateServiceAccessPolicies(input *UpdateServiceAccessPoli // The configured access rules for the domain's document and search endpoints, // and the current status of those rules. type AccessPoliciesStatus struct { - _ struct{} `type:"structure"` - // Access rules for a domain's document or search service endpoints. For more // information, see Configuring Access for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" // target="_blank) in the Amazon CloudSearch Developer Guide. The maximum size @@ -760,6 +758,12 @@ type AccessPoliciesStatus struct { // The status of domain configuration option. Status *OptionStatus `type:"structure" required:"true"` + + metadataAccessPoliciesStatus `json:"-" xml:"-"` +} + +type metadataAccessPoliciesStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -775,8 +779,6 @@ func (s AccessPoliciesStatus) GoString() string { // Synonyms, stopwords, and stemming options for an analysis scheme. Includes // tokenization dictionary for Japanese. type AnalysisOptions struct { - _ struct{} `type:"structure"` - // The level of algorithmic stemming to perform: none, minimal, light, or full. // The available levels vary depending on the language. For more information, // see Language Specific Text Processing Settings (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/text-processing.html#text-processing-settings" @@ -812,6 +814,12 @@ type AnalysisOptions struct { // about specifying synonyms, see Synonyms (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html#synonyms) // in the Amazon CloudSearch Developer Guide. Synonyms *string `type:"string"` + + metadataAnalysisOptions `json:"-" xml:"-"` +} + +type metadataAnalysisOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -829,8 +837,6 @@ func (s AnalysisOptions) GoString() string { // following options can be configured for an analysis scheme: Synonyms, Stopwords, // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming. type AnalysisScheme struct { - _ struct{} `type:"structure"` - // Synonyms, stopwords, and stemming options for an analysis scheme. Includes // tokenization dictionary for Japanese. AnalysisOptions *AnalysisOptions `type:"structure"` @@ -841,7 +847,13 @@ type AnalysisScheme struct { // Names must begin with a letter and can contain the following characters: // a-z (lowercase), 0-9, and _ (underscore). - AnalysisSchemeName *string `min:"1" type:"string" required:"true"` + AnalysisSchemeName *string `type:"string" required:"true"` + + metadataAnalysisScheme `json:"-" xml:"-"` +} + +type metadataAnalysisScheme struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -854,29 +866,8 @@ func (s AnalysisScheme) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AnalysisScheme) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AnalysisScheme"} - if s.AnalysisSchemeLanguage == nil { - invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeLanguage")) - } - if s.AnalysisSchemeName == nil { - invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName")) - } - if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The status and configuration of an AnalysisScheme. type AnalysisSchemeStatus struct { - _ struct{} `type:"structure"` - // Configuration information for an analysis scheme. Each analysis scheme has // a unique name and specifies the language of the text to be processed. The // following options can be configured for an analysis scheme: Synonyms, Stopwords, @@ -885,6 +876,12 @@ type AnalysisSchemeStatus struct { // The status of domain configuration option. Status *OptionStatus `type:"structure" required:"true"` + + metadataAnalysisSchemeStatus `json:"-" xml:"-"` +} + +type metadataAnalysisSchemeStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -899,13 +896,17 @@ func (s AnalysisSchemeStatus) GoString() string { // The status and configuration of the domain's availability options. type AvailabilityOptionsStatus struct { - _ struct{} `type:"structure"` - // The availability options configured for the domain. Options *bool `type:"boolean" required:"true"` // The status of domain configuration option. Status *OptionStatus `type:"structure" required:"true"` + + metadataAvailabilityOptionsStatus `json:"-" xml:"-"` +} + +type metadataAvailabilityOptionsStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -921,13 +922,17 @@ func (s AvailabilityOptionsStatus) GoString() string { // Container for the parameters to the BuildSuggester operation. Specifies the // name of the domain you want to update. type BuildSuggestersInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataBuildSuggestersInput `json:"-" xml:"-"` +} + +type metadataBuildSuggestersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -940,29 +945,17 @@ func (s BuildSuggestersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BuildSuggestersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BuildSuggestersInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a BuildSuggester request. Contains a list of the fields used // for suggestions. type BuildSuggestersOutput struct { - _ struct{} `type:"structure"` - // A list of field names. FieldNames []*string `type:"list"` + + metadataBuildSuggestersOutput `json:"-" xml:"-"` +} + +type metadataBuildSuggestersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -978,12 +971,16 @@ func (s BuildSuggestersOutput) GoString() string { // Container for the parameters to the CreateDomain operation. Specifies a name // for the new search domain. type CreateDomainInput struct { - _ struct{} `type:"structure"` - // A name for the domain you are creating. Allowed characters are a-z (lower-case // letters), 0-9, and hyphen (-). Domain names must start with a letter or number // and be at least 3 and no more than 28 characters long. - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataCreateDomainInput `json:"-" xml:"-"` +} + +type metadataCreateDomainInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -996,29 +993,17 @@ func (s CreateDomainInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a CreateDomainRequest. Contains the status of a newly created // domain. type CreateDomainOutput struct { - _ struct{} `type:"structure"` - // The current status of the search domain. DomainStatus *DomainStatus `type:"structure"` + + metadataCreateDomainOutput `json:"-" xml:"-"` +} + +type metadataCreateDomainOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1034,8 +1019,6 @@ func (s CreateDomainOutput) GoString() string { // Options for a field that contains an array of dates. Present if IndexFieldType // specifies the field is of type date-array. All options are enabled by default. type DateArrayOptions struct { - _ struct{} `type:"structure"` - // A value to use for the field if the field isn't specified for a document. DefaultValue *string `type:"string"` @@ -1050,6 +1033,12 @@ type DateArrayOptions struct { // A list of source fields to map to the field. SourceFields *string `type:"string"` + + metadataDateArrayOptions `json:"-" xml:"-"` +} + +type metadataDateArrayOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1067,8 +1056,6 @@ func (s DateArrayOptions) GoString() string { // if IndexFieldType specifies the field is of type date. All options are enabled // by default. type DateOptions struct { - _ struct{} `type:"structure"` - // A value to use for the field if the field isn't specified for a document. DefaultValue *string `type:"string"` @@ -1098,7 +1085,13 @@ type DateOptions struct { // // The name score is reserved and cannot be used as a field name. To reference // a document's ID, you can use the name _id. - SourceField *string `min:"1" type:"string"` + SourceField *string `type:"string"` + + metadataDateOptions `json:"-" xml:"-"` +} + +type metadataDateOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1111,24 +1104,9 @@ func (s DateOptions) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DateOptions) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DateOptions"} - if s.SourceField != nil && len(*s.SourceField) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the DefineAnalysisScheme operation. Specifies // the name of the domain you want to update and the analysis scheme configuration. type DefineAnalysisSchemeInput struct { - _ struct{} `type:"structure"` - // Configuration information for an analysis scheme. Each analysis scheme has // a unique name and specifies the language of the text to be processed. The // following options can be configured for an analysis scheme: Synonyms, Stopwords, @@ -1139,7 +1117,13 @@ type DefineAnalysisSchemeInput struct { // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataDefineAnalysisSchemeInput `json:"-" xml:"-"` +} + +type metadataDefineAnalysisSchemeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1152,37 +1136,17 @@ func (s DefineAnalysisSchemeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DefineAnalysisSchemeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DefineAnalysisSchemeInput"} - if s.AnalysisScheme == nil { - invalidParams.Add(request.NewErrParamRequired("AnalysisScheme")) - } - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - if s.AnalysisScheme != nil { - if err := s.AnalysisScheme.Validate(); err != nil { - invalidParams.AddNested("AnalysisScheme", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DefineAnalysisScheme request. Contains the status of the // newly-configured analysis scheme. type DefineAnalysisSchemeOutput struct { - _ struct{} `type:"structure"` - // The status and configuration of an AnalysisScheme. AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"` + + metadataDefineAnalysisSchemeOutput `json:"-" xml:"-"` +} + +type metadataDefineAnalysisSchemeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1199,18 +1163,22 @@ func (s DefineAnalysisSchemeOutput) GoString() string { // the name of the domain you want to update and the expression you want to // configure. type DefineExpressionInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // A named expression that can be evaluated at search time. Can be used to sort // the search results, define other expressions, or return computed information // in the search results. Expression *Expression `type:"structure" required:"true"` + + metadataDefineExpressionInput `json:"-" xml:"-"` +} + +type metadataDefineExpressionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1223,37 +1191,17 @@ func (s DefineExpressionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DefineExpressionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DefineExpressionInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - if s.Expression == nil { - invalidParams.Add(request.NewErrParamRequired("Expression")) - } - if s.Expression != nil { - if err := s.Expression.Validate(); err != nil { - invalidParams.AddNested("Expression", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DefineExpression request. Contains the status of the newly-configured // expression. type DefineExpressionOutput struct { - _ struct{} `type:"structure"` - // The value of an Expression and its current status. Expression *ExpressionStatus `type:"structure" required:"true"` + + metadataDefineExpressionOutput `json:"-" xml:"-"` +} + +type metadataDefineExpressionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1269,16 +1217,20 @@ func (s DefineExpressionOutput) GoString() string { // Container for the parameters to the DefineIndexField operation. Specifies // the name of the domain you want to update and the index field configuration. type DefineIndexFieldInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // The index field and field options you want to configure. IndexField *IndexField `type:"structure" required:"true"` + + metadataDefineIndexFieldInput `json:"-" xml:"-"` +} + +type metadataDefineIndexFieldInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1291,37 +1243,17 @@ func (s DefineIndexFieldInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DefineIndexFieldInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DefineIndexFieldInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - if s.IndexField == nil { - invalidParams.Add(request.NewErrParamRequired("IndexField")) - } - if s.IndexField != nil { - if err := s.IndexField.Validate(); err != nil { - invalidParams.AddNested("IndexField", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DefineIndexField request. Contains the status of the newly-configured // index field. type DefineIndexFieldOutput struct { - _ struct{} `type:"structure"` - // The value of an IndexField and its current status. IndexField *IndexFieldStatus `type:"structure" required:"true"` + + metadataDefineIndexFieldOutput `json:"-" xml:"-"` +} + +type metadataDefineIndexFieldOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1337,18 +1269,22 @@ func (s DefineIndexFieldOutput) GoString() string { // Container for the parameters to the DefineSuggester operation. Specifies // the name of the domain you want to update and the suggester configuration. type DefineSuggesterInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // Configuration information for a search suggester. Each suggester has a unique // name and specifies the text field you want to use for suggestions. The following // options can be configured for a suggester: FuzzyMatching, SortExpression. Suggester *Suggester `type:"structure" required:"true"` + + metadataDefineSuggesterInput `json:"-" xml:"-"` +} + +type metadataDefineSuggesterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1361,37 +1297,17 @@ func (s DefineSuggesterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DefineSuggesterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DefineSuggesterInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - if s.Suggester == nil { - invalidParams.Add(request.NewErrParamRequired("Suggester")) - } - if s.Suggester != nil { - if err := s.Suggester.Validate(); err != nil { - invalidParams.AddNested("Suggester", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DefineSuggester request. Contains the status of the newly-configured // suggester. type DefineSuggesterOutput struct { - _ struct{} `type:"structure"` - // The value of a Suggester and its current status. Suggester *SuggesterStatus `type:"structure" required:"true"` + + metadataDefineSuggesterOutput `json:"-" xml:"-"` +} + +type metadataDefineSuggesterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1408,16 +1324,20 @@ func (s DefineSuggesterOutput) GoString() string { // the name of the domain you want to update and the analysis scheme you want // to delete. type DeleteAnalysisSchemeInput struct { - _ struct{} `type:"structure"` - // The name of the analysis scheme you want to delete. - AnalysisSchemeName *string `min:"1" type:"string" required:"true"` + AnalysisSchemeName *string `type:"string" required:"true"` // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataDeleteAnalysisSchemeInput `json:"-" xml:"-"` +} + +type metadataDeleteAnalysisSchemeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1430,35 +1350,17 @@ func (s DeleteAnalysisSchemeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAnalysisSchemeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAnalysisSchemeInput"} - if s.AnalysisSchemeName == nil { - invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName")) - } - if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1)) - } - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DeleteAnalysisScheme request. Contains the status of the // deleted analysis scheme. type DeleteAnalysisSchemeOutput struct { - _ struct{} `type:"structure"` - // The status of the analysis scheme being deleted. AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"` + + metadataDeleteAnalysisSchemeOutput `json:"-" xml:"-"` +} + +type metadataDeleteAnalysisSchemeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1474,10 +1376,14 @@ func (s DeleteAnalysisSchemeOutput) GoString() string { // Container for the parameters to the DeleteDomain operation. Specifies the // name of the domain you want to delete. type DeleteDomainInput struct { - _ struct{} `type:"structure"` - // The name of the domain you want to permanently delete. - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataDeleteDomainInput `json:"-" xml:"-"` +} + +type metadataDeleteDomainInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1490,29 +1396,17 @@ func (s DeleteDomainInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DeleteDomain request. Contains the status of a newly deleted // domain, or no status if the domain has already been completely deleted. type DeleteDomainOutput struct { - _ struct{} `type:"structure"` - // The current status of the search domain. DomainStatus *DomainStatus `type:"structure"` + + metadataDeleteDomainOutput `json:"-" xml:"-"` +} + +type metadataDeleteDomainOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1529,16 +1423,20 @@ func (s DeleteDomainOutput) GoString() string { // the name of the domain you want to update and the name of the expression // you want to delete. type DeleteExpressionInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // The name of the Expression to delete. - ExpressionName *string `min:"1" type:"string" required:"true"` + ExpressionName *string `type:"string" required:"true"` + + metadataDeleteExpressionInput `json:"-" xml:"-"` +} + +type metadataDeleteExpressionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1551,35 +1449,17 @@ func (s DeleteExpressionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteExpressionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteExpressionInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - if s.ExpressionName == nil { - invalidParams.Add(request.NewErrParamRequired("ExpressionName")) - } - if s.ExpressionName != nil && len(*s.ExpressionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DeleteExpression request. Specifies the expression being // deleted. type DeleteExpressionOutput struct { - _ struct{} `type:"structure"` - // The status of the expression being deleted. Expression *ExpressionStatus `type:"structure" required:"true"` + + metadataDeleteExpressionOutput `json:"-" xml:"-"` +} + +type metadataDeleteExpressionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1596,17 +1476,21 @@ func (s DeleteExpressionOutput) GoString() string { // the name of the domain you want to update and the name of the index field // you want to delete. type DeleteIndexFieldInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // The name of the index field your want to remove from the domain's indexing // options. - IndexFieldName *string `min:"1" type:"string" required:"true"` + IndexFieldName *string `type:"string" required:"true"` + + metadataDeleteIndexFieldInput `json:"-" xml:"-"` +} + +type metadataDeleteIndexFieldInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1619,34 +1503,16 @@ func (s DeleteIndexFieldInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteIndexFieldInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteIndexFieldInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - if s.IndexFieldName == nil { - invalidParams.Add(request.NewErrParamRequired("IndexFieldName")) - } - if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DeleteIndexField request. type DeleteIndexFieldOutput struct { - _ struct{} `type:"structure"` - // The status of the index field being deleted. IndexField *IndexFieldStatus `type:"structure" required:"true"` + + metadataDeleteIndexFieldOutput `json:"-" xml:"-"` +} + +type metadataDeleteIndexFieldOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1663,16 +1529,20 @@ func (s DeleteIndexFieldOutput) GoString() string { // the name of the domain you want to update and name of the suggester you want // to delete. type DeleteSuggesterInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // Specifies the name of the suggester you want to delete. - SuggesterName *string `min:"1" type:"string" required:"true"` + SuggesterName *string `type:"string" required:"true"` + + metadataDeleteSuggesterInput `json:"-" xml:"-"` +} + +type metadataDeleteSuggesterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1685,35 +1555,17 @@ func (s DeleteSuggesterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSuggesterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSuggesterInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - if s.SuggesterName == nil { - invalidParams.Add(request.NewErrParamRequired("SuggesterName")) - } - if s.SuggesterName != nil && len(*s.SuggesterName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DeleteSuggester request. Contains the status of the deleted // suggester. type DeleteSuggesterOutput struct { - _ struct{} `type:"structure"` - // The status of the suggester being deleted. Suggester *SuggesterStatus `type:"structure" required:"true"` + + metadataDeleteSuggesterOutput `json:"-" xml:"-"` +} + +type metadataDeleteSuggesterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1732,8 +1584,6 @@ func (s DeleteSuggesterOutput) GoString() string { // To show the active configuration and exclude any pending changes, set the // Deployed option to true. type DescribeAnalysisSchemesInput struct { - _ struct{} `type:"structure"` - // The analysis schemes you want to describe. AnalysisSchemeNames []*string `type:"list"` @@ -1742,7 +1592,13 @@ type DescribeAnalysisSchemesInput struct { Deployed *bool `type:"boolean"` // The name of the domain you want to describe. - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataDescribeAnalysisSchemesInput `json:"-" xml:"-"` +} + +type metadataDescribeAnalysisSchemesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1755,29 +1611,17 @@ func (s DescribeAnalysisSchemesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAnalysisSchemesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAnalysisSchemesInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DescribeAnalysisSchemes request. Contains the analysis schemes // configured for the domain specified in the request. type DescribeAnalysisSchemesOutput struct { - _ struct{} `type:"structure"` - // The analysis scheme descriptions. AnalysisSchemes []*AnalysisSchemeStatus `type:"list" required:"true"` + + metadataDescribeAnalysisSchemesOutput `json:"-" xml:"-"` +} + +type metadataDescribeAnalysisSchemesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1795,14 +1639,18 @@ func (s DescribeAnalysisSchemesOutput) GoString() string { // configuration and exclude any pending changes, set the Deployed option to // true. type DescribeAvailabilityOptionsInput struct { - _ struct{} `type:"structure"` - // Whether to display the deployed configuration (true) or include any pending // changes (false). Defaults to false. Deployed *bool `type:"boolean"` // The name of the domain you want to describe. - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataDescribeAvailabilityOptionsInput `json:"-" xml:"-"` +} + +type metadataDescribeAvailabilityOptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1815,30 +1663,18 @@ func (s DescribeAvailabilityOptionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAvailabilityOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAvailabilityOptionsInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DescribeAvailabilityOptions request. Indicates whether or // not the Multi-AZ option is enabled for the domain specified in the request. type DescribeAvailabilityOptionsOutput struct { - _ struct{} `type:"structure"` - // The availability options configured for the domain. Indicates whether Multi-AZ // is enabled for the domain. AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"` + + metadataDescribeAvailabilityOptionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeAvailabilityOptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1855,10 +1691,14 @@ func (s DescribeAvailabilityOptionsOutput) GoString() string { // shows the status of all domains. To restrict the response to particular domains, // specify the names of the domains you want to describe. type DescribeDomainsInput struct { - _ struct{} `type:"structure"` - // The names of the domains you want to include in the response. DomainNames []*string `type:"list"` + + metadataDescribeDomainsInput `json:"-" xml:"-"` +} + +type metadataDescribeDomainsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1874,10 +1714,14 @@ func (s DescribeDomainsInput) GoString() string { // The result of a DescribeDomains request. Contains the status of the domains // specified in the request or all domains owned by the account. type DescribeDomainsOutput struct { - _ struct{} `type:"structure"` - // A list that contains the status of each requested domain. DomainStatusList []*DomainStatus `type:"list" required:"true"` + + metadataDescribeDomainsOutput `json:"-" xml:"-"` +} + +type metadataDescribeDomainsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1896,18 +1740,22 @@ func (s DescribeDomainsOutput) GoString() string { // describe. To show the active configuration and exclude any pending changes, // set the Deployed option to true. type DescribeExpressionsInput struct { - _ struct{} `type:"structure"` - // Whether to display the deployed configuration (true) or include any pending // changes (false). Defaults to false. Deployed *bool `type:"boolean"` // The name of the domain you want to describe. - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // Limits the DescribeExpressions response to the specified expressions. If // not specified, all expressions are shown. ExpressionNames []*string `type:"list"` + + metadataDescribeExpressionsInput `json:"-" xml:"-"` +} + +type metadataDescribeExpressionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1920,29 +1768,17 @@ func (s DescribeExpressionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeExpressionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeExpressionsInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DescribeExpressions request. Contains the expressions configured // for the domain specified in the request. type DescribeExpressionsOutput struct { - _ struct{} `type:"structure"` - // The expressions configured for the domain. Expressions []*ExpressionStatus `type:"list" required:"true"` + + metadataDescribeExpressionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeExpressionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1961,18 +1797,22 @@ func (s DescribeExpressionsOutput) GoString() string { // describe. To show the active configuration and exclude any pending changes, // set the Deployed option to true. type DescribeIndexFieldsInput struct { - _ struct{} `type:"structure"` - // Whether to display the deployed configuration (true) or include any pending // changes (false). Defaults to false. Deployed *bool `type:"boolean"` // The name of the domain you want to describe. - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // A list of the index fields you want to describe. If not specified, information // is returned for all configured index fields. FieldNames []*string `type:"list"` + + metadataDescribeIndexFieldsInput `json:"-" xml:"-"` +} + +type metadataDescribeIndexFieldsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1985,29 +1825,17 @@ func (s DescribeIndexFieldsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeIndexFieldsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeIndexFieldsInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DescribeIndexFields request. Contains the index fields configured // for the domain specified in the request. type DescribeIndexFieldsOutput struct { - _ struct{} `type:"structure"` - // The index fields configured for the domain. IndexFields []*IndexFieldStatus `type:"list" required:"true"` + + metadataDescribeIndexFieldsOutput `json:"-" xml:"-"` +} + +type metadataDescribeIndexFieldsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2023,13 +1851,17 @@ func (s DescribeIndexFieldsOutput) GoString() string { // Container for the parameters to the DescribeScalingParameters operation. // Specifies the name of the domain you want to describe. type DescribeScalingParametersInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataDescribeScalingParametersInput `json:"-" xml:"-"` +} + +type metadataDescribeScalingParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2042,29 +1874,17 @@ func (s DescribeScalingParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeScalingParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeScalingParametersInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DescribeScalingParameters request. Contains the scaling parameters // configured for the domain specified in the request. type DescribeScalingParametersOutput struct { - _ struct{} `type:"structure"` - // The status and configuration of a search domain's scaling parameters. ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"` + + metadataDescribeScalingParametersOutput `json:"-" xml:"-"` +} + +type metadataDescribeScalingParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2082,14 +1902,18 @@ func (s DescribeScalingParametersOutput) GoString() string { // configuration and exclude any pending changes, set the Deployed option to // true. type DescribeServiceAccessPoliciesInput struct { - _ struct{} `type:"structure"` - // Whether to display the deployed configuration (true) or include any pending // changes (false). Defaults to false. Deployed *bool `type:"boolean"` // The name of the domain you want to describe. - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataDescribeServiceAccessPoliciesInput `json:"-" xml:"-"` +} + +type metadataDescribeServiceAccessPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2102,28 +1926,16 @@ func (s DescribeServiceAccessPoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeServiceAccessPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeServiceAccessPoliciesInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DescribeServiceAccessPolicies request. type DescribeServiceAccessPoliciesOutput struct { - _ struct{} `type:"structure"` - // The access rules configured for the domain specified in the request. AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"` + + metadataDescribeServiceAccessPoliciesOutput `json:"-" xml:"-"` +} + +type metadataDescribeServiceAccessPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2142,17 +1954,21 @@ func (s DescribeServiceAccessPoliciesOutput) GoString() string { // To show the active configuration and exclude any pending changes, set the // Deployed option to true. type DescribeSuggestersInput struct { - _ struct{} `type:"structure"` - // Whether to display the deployed configuration (true) or include any pending // changes (false). Defaults to false. Deployed *bool `type:"boolean"` // The name of the domain you want to describe. - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // The suggesters you want to describe. SuggesterNames []*string `type:"list"` + + metadataDescribeSuggestersInput `json:"-" xml:"-"` +} + +type metadataDescribeSuggestersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2165,28 +1981,16 @@ func (s DescribeSuggestersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeSuggestersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeSuggestersInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a DescribeSuggesters request. type DescribeSuggestersOutput struct { - _ struct{} `type:"structure"` - // The suggesters configured for the domain specified in the request. Suggesters []*SuggesterStatus `type:"list" required:"true"` + + metadataDescribeSuggestersOutput `json:"-" xml:"-"` +} + +type metadataDescribeSuggestersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2201,8 +2005,6 @@ func (s DescribeSuggestersOutput) GoString() string { // Options for a search suggester. type DocumentSuggesterOptions struct { - _ struct{} `type:"structure"` - // The level of fuzziness allowed when suggesting matches for a string: none, // low, or high. With none, the specified string is treated as an exact prefix. // With low, suggestions must differ from the specified string by no more than @@ -2220,7 +2022,13 @@ type DocumentSuggesterOptions struct { SortExpression *string `type:"string"` // The name of the index field you want to use for suggestions. - SourceField *string `min:"1" type:"string" required:"true"` + SourceField *string `type:"string" required:"true"` + + metadataDocumentSuggesterOptions `json:"-" xml:"-"` +} + +type metadataDocumentSuggesterOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2233,26 +2041,8 @@ func (s DocumentSuggesterOptions) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DocumentSuggesterOptions) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DocumentSuggesterOptions"} - if s.SourceField == nil { - invalidParams.Add(request.NewErrParamRequired("SourceField")) - } - if s.SourceField != nil && len(*s.SourceField) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The current status of the search domain. type DomainStatus struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the search domain. See Identifiers for // IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html" // target="_blank) in Using AWS Identity and Access Management for more information. @@ -2274,13 +2064,13 @@ type DomainStatus struct { DocService *ServiceEndpoint `type:"structure"` // An internally generated unique identifier for a domain. - DomainId *string `min:"1" type:"string" required:"true"` + DomainId *string `type:"string" required:"true"` // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` Limits *Limits `type:"structure"` @@ -2292,16 +2082,22 @@ type DomainStatus struct { RequiresIndexDocuments *bool `type:"boolean" required:"true"` // The number of search instances that are available to process search requests. - SearchInstanceCount *int64 `min:"1" type:"integer"` + SearchInstanceCount *int64 `type:"integer"` // The instance type that is being used to process search requests. SearchInstanceType *string `type:"string"` // The number of partitions across which the search index is spread. - SearchPartitionCount *int64 `min:"1" type:"integer"` + SearchPartitionCount *int64 `type:"integer"` // The service endpoint for requesting search results from a search domain. SearchService *ServiceEndpoint `type:"structure"` + + metadataDomainStatus `json:"-" xml:"-"` +} + +type metadataDomainStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2318,8 +2114,6 @@ func (s DomainStatus) GoString() string { // point values. Present if IndexFieldType specifies the field is of type double-array. // All options are enabled by default. type DoubleArrayOptions struct { - _ struct{} `type:"structure"` - // A value to use for the field if the field isn't specified for a document. DefaultValue *float64 `type:"double"` @@ -2334,6 +2128,12 @@ type DoubleArrayOptions struct { // A list of source fields to map to the field. SourceFields *string `type:"string"` + + metadataDoubleArrayOptions `json:"-" xml:"-"` +} + +type metadataDoubleArrayOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2349,8 +2149,6 @@ func (s DoubleArrayOptions) GoString() string { // Options for a double-precision 64-bit floating point field. Present if IndexFieldType // specifies the field is of type double. All options are enabled by default. type DoubleOptions struct { - _ struct{} `type:"structure"` - // A value to use for the field if the field isn't specified for a document. // This can be important if you are using the field in an expression and that // field is not present in every document. @@ -2369,7 +2167,13 @@ type DoubleOptions struct { SortEnabled *bool `type:"boolean"` // The name of the source field to map to the field. - SourceField *string `min:"1" type:"string"` + SourceField *string `type:"string"` + + metadataDoubleOptions `json:"-" xml:"-"` +} + +type metadataDoubleOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2382,34 +2186,25 @@ func (s DoubleOptions) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DoubleOptions) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DoubleOptions"} - if s.SourceField != nil && len(*s.SourceField) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A named expression that can be evaluated at search time. Can be used to sort // the search results, define other expressions, or return computed information // in the search results. type Expression struct { - _ struct{} `type:"structure"` - // Names must begin with a letter and can contain the following characters: // a-z (lowercase), 0-9, and _ (underscore). - ExpressionName *string `min:"1" type:"string" required:"true"` + ExpressionName *string `type:"string" required:"true"` // The expression to evaluate for sorting while processing a search request. // The Expression syntax is based on JavaScript expressions. For more information, // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" // target="_blank) in the Amazon CloudSearch Developer Guide. - ExpressionValue *string `min:"1" type:"string" required:"true"` + ExpressionValue *string `type:"string" required:"true"` + + metadataExpression `json:"-" xml:"-"` +} + +type metadataExpression struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2422,37 +2217,19 @@ func (s Expression) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Expression) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Expression"} - if s.ExpressionName == nil { - invalidParams.Add(request.NewErrParamRequired("ExpressionName")) - } - if s.ExpressionName != nil && len(*s.ExpressionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1)) - } - if s.ExpressionValue == nil { - invalidParams.Add(request.NewErrParamRequired("ExpressionValue")) - } - if s.ExpressionValue != nil && len(*s.ExpressionValue) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExpressionValue", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The value of an Expression and its current status. type ExpressionStatus struct { - _ struct{} `type:"structure"` - // The expression that is evaluated for sorting while processing a search request. Options *Expression `type:"structure" required:"true"` // The status of domain configuration option. Status *OptionStatus `type:"structure" required:"true"` + + metadataExpressionStatus `json:"-" xml:"-"` +} + +type metadataExpressionStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2468,13 +2245,17 @@ func (s ExpressionStatus) GoString() string { // Container for the parameters to the IndexDocuments operation. Specifies the // name of the domain you want to re-index. type IndexDocumentsInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataIndexDocumentsInput `json:"-" xml:"-"` +} + +type metadataIndexDocumentsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2487,29 +2268,17 @@ func (s IndexDocumentsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *IndexDocumentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IndexDocumentsInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of an IndexDocuments request. Contains the status of the indexing // operation, including the fields being indexed. type IndexDocumentsOutput struct { - _ struct{} `type:"structure"` - // The names of the fields that are currently being indexed. FieldNames []*string `type:"list"` + + metadataIndexDocumentsOutput `json:"-" xml:"-"` +} + +type metadataIndexDocumentsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2525,8 +2294,6 @@ func (s IndexDocumentsOutput) GoString() string { // Configuration information for a field in the index, including its name, type, // and options. The supported options depend on the IndexFieldType. type IndexField struct { - _ struct{} `type:"structure"` - // Options for a field that contains an array of dates. Present if IndexFieldType // specifies the field is of type date-array. All options are enabled by default. DateArrayOptions *DateArrayOptions `type:"structure"` @@ -2560,7 +2327,7 @@ type IndexField struct { // // The name score is reserved and cannot be used as a field name. To reference // a document's ID, you can use the name _id. - IndexFieldName *string `min:"1" type:"string" required:"true"` + IndexFieldName *string `type:"string" required:"true"` // The type of field. The valid options for a field depend on the field type. // For more information about the supported field types, see Configuring Index @@ -2600,6 +2367,12 @@ type IndexField struct { // of type text. A text field is always searchable. All options are enabled // by default. TextOptions *TextOptions `type:"structure"` + + metadataIndexField `json:"-" xml:"-"` +} + +type metadataIndexField struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2612,65 +2385,20 @@ func (s IndexField) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *IndexField) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IndexField"} - if s.IndexFieldName == nil { - invalidParams.Add(request.NewErrParamRequired("IndexFieldName")) - } - if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1)) - } - if s.IndexFieldType == nil { - invalidParams.Add(request.NewErrParamRequired("IndexFieldType")) - } - if s.DateOptions != nil { - if err := s.DateOptions.Validate(); err != nil { - invalidParams.AddNested("DateOptions", err.(request.ErrInvalidParams)) - } - } - if s.DoubleOptions != nil { - if err := s.DoubleOptions.Validate(); err != nil { - invalidParams.AddNested("DoubleOptions", err.(request.ErrInvalidParams)) - } - } - if s.IntOptions != nil { - if err := s.IntOptions.Validate(); err != nil { - invalidParams.AddNested("IntOptions", err.(request.ErrInvalidParams)) - } - } - if s.LatLonOptions != nil { - if err := s.LatLonOptions.Validate(); err != nil { - invalidParams.AddNested("LatLonOptions", err.(request.ErrInvalidParams)) - } - } - if s.LiteralOptions != nil { - if err := s.LiteralOptions.Validate(); err != nil { - invalidParams.AddNested("LiteralOptions", err.(request.ErrInvalidParams)) - } - } - if s.TextOptions != nil { - if err := s.TextOptions.Validate(); err != nil { - invalidParams.AddNested("TextOptions", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The value of an IndexField and its current status. type IndexFieldStatus struct { - _ struct{} `type:"structure"` - // Configuration information for a field in the index, including its name, type, // and options. The supported options depend on the IndexFieldType. Options *IndexField `type:"structure" required:"true"` // The status of domain configuration option. Status *OptionStatus `type:"structure" required:"true"` + + metadataIndexFieldStatus `json:"-" xml:"-"` +} + +type metadataIndexFieldStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2687,8 +2415,6 @@ func (s IndexFieldStatus) GoString() string { // if IndexFieldType specifies the field is of type int-array. All options are // enabled by default. type IntArrayOptions struct { - _ struct{} `type:"structure"` - // A value to use for the field if the field isn't specified for a document. DefaultValue *int64 `type:"long"` @@ -2703,6 +2429,12 @@ type IntArrayOptions struct { // A list of source fields to map to the field. SourceFields *string `type:"string"` + + metadataIntArrayOptions `json:"-" xml:"-"` +} + +type metadataIntArrayOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2718,8 +2450,6 @@ func (s IntArrayOptions) GoString() string { // Options for a 64-bit signed integer field. Present if IndexFieldType specifies // the field is of type int. All options are enabled by default. type IntOptions struct { - _ struct{} `type:"structure"` - // A value to use for the field if the field isn't specified for a document. // This can be important if you are using the field in an expression and that // field is not present in every document. @@ -2738,7 +2468,13 @@ type IntOptions struct { SortEnabled *bool `type:"boolean"` // The name of the source field to map to the field. - SourceField *string `min:"1" type:"string"` + SourceField *string `type:"string"` + + metadataIntOptions `json:"-" xml:"-"` +} + +type metadataIntOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2751,25 +2487,10 @@ func (s IntOptions) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *IntOptions) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IntOptions"} - if s.SourceField != nil && len(*s.SourceField) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Options for a latlon field. A latlon field contains a location stored as // a latitude and longitude value pair. Present if IndexFieldType specifies // the field is of type latlon. All options are enabled by default. type LatLonOptions struct { - _ struct{} `type:"structure"` - // A value to use for the field if the field isn't specified for a document. DefaultValue *string `type:"string"` @@ -2799,7 +2520,13 @@ type LatLonOptions struct { // // The name score is reserved and cannot be used as a field name. To reference // a document's ID, you can use the name _id. - SourceField *string `min:"1" type:"string"` + SourceField *string `type:"string"` + + metadataLatLonOptions `json:"-" xml:"-"` +} + +type metadataLatLonOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2812,25 +2539,16 @@ func (s LatLonOptions) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LatLonOptions) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LatLonOptions"} - if s.SourceField != nil && len(*s.SourceField) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type Limits struct { - _ struct{} `type:"structure"` + MaximumPartitionCount *int64 `type:"integer" required:"true"` + + MaximumReplicationCount *int64 `type:"integer" required:"true"` - MaximumPartitionCount *int64 `min:"1" type:"integer" required:"true"` + metadataLimits `json:"-" xml:"-"` +} - MaximumReplicationCount *int64 `min:"1" type:"integer" required:"true"` +type metadataLimits struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2844,7 +2562,11 @@ func (s Limits) GoString() string { } type ListDomainNamesInput struct { - _ struct{} `type:"structure"` + metadataListDomainNamesInput `json:"-" xml:"-"` +} + +type metadataListDomainNamesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2860,10 +2582,14 @@ func (s ListDomainNamesInput) GoString() string { // The result of a ListDomainNames request. Contains a list of the domains owned // by an account. type ListDomainNamesOutput struct { - _ struct{} `type:"structure"` - // The names of the search domains owned by an account. DomainNames map[string]*string `type:"map"` + + metadataListDomainNamesOutput `json:"-" xml:"-"` +} + +type metadataListDomainNamesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2880,8 +2606,6 @@ func (s ListDomainNamesOutput) GoString() string { // IndexFieldType specifies the field is of type literal-array. All options // are enabled by default. type LiteralArrayOptions struct { - _ struct{} `type:"structure"` - // A value to use for the field if the field isn't specified for a document. DefaultValue *string `type:"string"` @@ -2896,6 +2620,12 @@ type LiteralArrayOptions struct { // A list of source fields to map to the field. SourceFields *string `type:"string"` + + metadataLiteralArrayOptions `json:"-" xml:"-"` +} + +type metadataLiteralArrayOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2911,8 +2641,6 @@ func (s LiteralArrayOptions) GoString() string { // Options for literal field. Present if IndexFieldType specifies the field // is of type literal. All options are enabled by default. type LiteralOptions struct { - _ struct{} `type:"structure"` - // A value to use for the field if the field isn't specified for a document. DefaultValue *string `type:"string"` @@ -2942,7 +2670,13 @@ type LiteralOptions struct { // // The name score is reserved and cannot be used as a field name. To reference // a document's ID, you can use the name _id. - SourceField *string `min:"1" type:"string"` + SourceField *string `type:"string"` + + metadataLiteralOptions `json:"-" xml:"-"` +} + +type metadataLiteralOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2955,23 +2689,8 @@ func (s LiteralOptions) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LiteralOptions) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LiteralOptions"} - if s.SourceField != nil && len(*s.SourceField) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The status of domain configuration option. type OptionStatus struct { - _ struct{} `type:"structure"` - // A timestamp for when this option was created. CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` @@ -2994,6 +2713,12 @@ type OptionStatus struct { // A unique integer that indicates when this option was last updated. UpdateVersion *int64 `type:"integer"` + + metadataOptionStatus `json:"-" xml:"-"` +} + +type metadataOptionStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3008,8 +2733,6 @@ func (s OptionStatus) GoString() string { // The desired instance type and desired number of replicas of each index partition. type ScalingParameters struct { - _ struct{} `type:"structure"` - // The instance type that you want to preconfigure for your domain. For example, // search.m1.small. DesiredInstanceType *string `type:"string" enum:"PartitionInstanceType"` @@ -3020,6 +2743,12 @@ type ScalingParameters struct { // The number of replicas you want to preconfigure for each index partition. DesiredReplicationCount *int64 `type:"integer"` + + metadataScalingParameters `json:"-" xml:"-"` +} + +type metadataScalingParameters struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3034,13 +2763,17 @@ func (s ScalingParameters) GoString() string { // The status and configuration of a search domain's scaling parameters. type ScalingParametersStatus struct { - _ struct{} `type:"structure"` - // The desired instance type and desired number of replicas of each index partition. Options *ScalingParameters `type:"structure" required:"true"` // The status of domain configuration option. Status *OptionStatus `type:"structure" required:"true"` + + metadataScalingParametersStatus `json:"-" xml:"-"` +} + +type metadataScalingParametersStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3055,11 +2788,15 @@ func (s ScalingParametersStatus) GoString() string { // The endpoint to which service requests can be submitted. type ServiceEndpoint struct { - _ struct{} `type:"structure"` - // The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com // or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com. Endpoint *string `type:"string"` + + metadataServiceEndpoint `json:"-" xml:"-"` +} + +type metadataServiceEndpoint struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3076,14 +2813,18 @@ func (s ServiceEndpoint) GoString() string { // name and specifies the text field you want to use for suggestions. The following // options can be configured for a suggester: FuzzyMatching, SortExpression. type Suggester struct { - _ struct{} `type:"structure"` - // Options for a search suggester. DocumentSuggesterOptions *DocumentSuggesterOptions `type:"structure" required:"true"` // Names must begin with a letter and can contain the following characters: // a-z (lowercase), 0-9, and _ (underscore). - SuggesterName *string `min:"1" type:"string" required:"true"` + SuggesterName *string `type:"string" required:"true"` + + metadataSuggester `json:"-" xml:"-"` +} + +type metadataSuggester struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3096,34 +2837,8 @@ func (s Suggester) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Suggester) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Suggester"} - if s.DocumentSuggesterOptions == nil { - invalidParams.Add(request.NewErrParamRequired("DocumentSuggesterOptions")) - } - if s.SuggesterName == nil { - invalidParams.Add(request.NewErrParamRequired("SuggesterName")) - } - if s.SuggesterName != nil && len(*s.SuggesterName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1)) - } - if s.DocumentSuggesterOptions != nil { - if err := s.DocumentSuggesterOptions.Validate(); err != nil { - invalidParams.AddNested("DocumentSuggesterOptions", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The value of a Suggester and its current status. type SuggesterStatus struct { - _ struct{} `type:"structure"` - // Configuration information for a search suggester. Each suggester has a unique // name and specifies the text field you want to use for suggestions. The following // options can be configured for a suggester: FuzzyMatching, SortExpression. @@ -3131,6 +2846,12 @@ type SuggesterStatus struct { // The status of domain configuration option. Status *OptionStatus `type:"structure" required:"true"` + + metadataSuggesterStatus `json:"-" xml:"-"` +} + +type metadataSuggesterStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3147,8 +2868,6 @@ func (s SuggesterStatus) GoString() string { // specifies the field is of type text-array. A text-array field is always searchable. // All options are enabled by default. type TextArrayOptions struct { - _ struct{} `type:"structure"` - // The name of an analysis scheme for a text-array field. AnalysisScheme *string `type:"string"` @@ -3163,6 +2882,12 @@ type TextArrayOptions struct { // A list of source fields to map to the field. SourceFields *string `type:"string"` + + metadataTextArrayOptions `json:"-" xml:"-"` +} + +type metadataTextArrayOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3179,8 +2904,6 @@ func (s TextArrayOptions) GoString() string { // of type text. A text field is always searchable. All options are enabled // by default. type TextOptions struct { - _ struct{} `type:"structure"` - // The name of an analysis scheme for a text field. AnalysisScheme *string `type:"string"` @@ -3210,7 +2933,13 @@ type TextOptions struct { // // The name score is reserved and cannot be used as a field name. To reference // a document's ID, you can use the name _id. - SourceField *string `min:"1" type:"string"` + SourceField *string `type:"string"` + + metadataTextOptions `json:"-" xml:"-"` +} + +type metadataTextOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3223,36 +2952,27 @@ func (s TextOptions) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TextOptions) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TextOptions"} - if s.SourceField != nil && len(*s.SourceField) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceField", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the UpdateAvailabilityOptions operation. // Specifies the name of the domain you want to update and the Multi-AZ availability // option. type UpdateAvailabilityOptionsInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // You expand an existing search domain to a second Availability Zone by setting // the Multi-AZ option to true. Similarly, you can turn off the Multi-AZ option // to downgrade the domain to a single Availability Zone by setting the Multi-AZ // option to false. MultiAZ *bool `type:"boolean" required:"true"` + + metadataUpdateAvailabilityOptionsInput `json:"-" xml:"-"` +} + +type metadataUpdateAvailabilityOptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3265,33 +2985,18 @@ func (s UpdateAvailabilityOptionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAvailabilityOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAvailabilityOptionsInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - if s.MultiAZ == nil { - invalidParams.Add(request.NewErrParamRequired("MultiAZ")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a UpdateAvailabilityOptions request. Contains the status of // the domain's availability options. type UpdateAvailabilityOptionsOutput struct { - _ struct{} `type:"structure"` - // The newly-configured availability options. Indicates whether Multi-AZ is // enabled for the domain. AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"` + + metadataUpdateAvailabilityOptionsOutput `json:"-" xml:"-"` +} + +type metadataUpdateAvailabilityOptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3308,16 +3013,20 @@ func (s UpdateAvailabilityOptionsOutput) GoString() string { // the name of the domain you want to update and the scaling parameters you // want to configure. type UpdateScalingParametersInput struct { - _ struct{} `type:"structure"` - // A string that represents the name of a domain. Domain names are unique across // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` // The desired instance type and desired number of replicas of each index partition. ScalingParameters *ScalingParameters `type:"structure" required:"true"` + + metadataUpdateScalingParametersInput `json:"-" xml:"-"` +} + +type metadataUpdateScalingParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3330,32 +3039,17 @@ func (s UpdateScalingParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateScalingParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateScalingParametersInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - if s.ScalingParameters == nil { - invalidParams.Add(request.NewErrParamRequired("ScalingParameters")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a UpdateScalingParameters request. Contains the status of the // newly-configured scaling parameters. type UpdateScalingParametersOutput struct { - _ struct{} `type:"structure"` - // The status and configuration of a search domain's scaling parameters. ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"` + + metadataUpdateScalingParametersOutput `json:"-" xml:"-"` +} + +type metadataUpdateScalingParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3372,8 +3066,6 @@ func (s UpdateScalingParametersOutput) GoString() string { // Specifies the name of the domain you want to update and the access rules // you want to configure. type UpdateServiceAccessPoliciesInput struct { - _ struct{} `type:"structure"` - // The access rules you want to configure. These rules replace any existing // rules. AccessPolicies *string `type:"string" required:"true"` @@ -3382,7 +3074,13 @@ type UpdateServiceAccessPoliciesInput struct { // the domains owned by an account within an AWS region. Domain names start // with a letter or number and can contain the following characters: a-z (lowercase), // 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` + DomainName *string `type:"string" required:"true"` + + metadataUpdateServiceAccessPoliciesInput `json:"-" xml:"-"` +} + +type metadataUpdateServiceAccessPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3395,32 +3093,17 @@ func (s UpdateServiceAccessPoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateServiceAccessPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateServiceAccessPoliciesInput"} - if s.AccessPolicies == nil { - invalidParams.Add(request.NewErrParamRequired("AccessPolicies")) - } - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of an UpdateServiceAccessPolicies request. Contains the new access // policies. type UpdateServiceAccessPoliciesOutput struct { - _ struct{} `type:"structure"` - // The access rules configured for the domain. AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"` + + metadataUpdateServiceAccessPoliciesOutput `json:"-" xml:"-"` +} + +type metadataUpdateServiceAccessPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go index 5b3369562..340b01a7e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface.go @@ -106,5 +106,3 @@ type CloudSearchAPI interface { UpdateServiceAccessPolicies(*cloudsearch.UpdateServiceAccessPoliciesInput) (*cloudsearch.UpdateServiceAccessPoliciesOutput, error) } - -var _ CloudSearchAPI = (*cloudsearch.CloudSearch)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface_test.go new file mode 100644 index 000000000..62c7b077b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudsearchiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/cloudsearch" + "github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*cloudsearchiface.CloudSearchAPI)(nil), cloudsearch.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go index d91e62d1c..45c0383c3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudsearch" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudSearch_BuildSuggesters() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.BuildSuggestersInput{ DomainName: aws.String("DomainName"), // Required @@ -35,7 +34,7 @@ func ExampleCloudSearch_BuildSuggesters() { } func ExampleCloudSearch_CreateDomain() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.CreateDomainInput{ DomainName: aws.String("DomainName"), // Required @@ -54,7 +53,7 @@ func ExampleCloudSearch_CreateDomain() { } func ExampleCloudSearch_DefineAnalysisScheme() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DefineAnalysisSchemeInput{ AnalysisScheme: &cloudsearch.AnalysisScheme{ // Required @@ -84,7 +83,7 @@ func ExampleCloudSearch_DefineAnalysisScheme() { } func ExampleCloudSearch_DefineExpression() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DefineExpressionInput{ DomainName: aws.String("DomainName"), // Required @@ -107,7 +106,7 @@ func ExampleCloudSearch_DefineExpression() { } func ExampleCloudSearch_DefineIndexField() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DefineIndexFieldInput{ DomainName: aws.String("DomainName"), // Required @@ -213,7 +212,7 @@ func ExampleCloudSearch_DefineIndexField() { } func ExampleCloudSearch_DefineSuggester() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DefineSuggesterInput{ DomainName: aws.String("DomainName"), // Required @@ -240,7 +239,7 @@ func ExampleCloudSearch_DefineSuggester() { } func ExampleCloudSearch_DeleteAnalysisScheme() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DeleteAnalysisSchemeInput{ AnalysisSchemeName: aws.String("StandardName"), // Required @@ -260,7 +259,7 @@ func ExampleCloudSearch_DeleteAnalysisScheme() { } func ExampleCloudSearch_DeleteDomain() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DeleteDomainInput{ DomainName: aws.String("DomainName"), // Required @@ -279,7 +278,7 @@ func ExampleCloudSearch_DeleteDomain() { } func ExampleCloudSearch_DeleteExpression() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DeleteExpressionInput{ DomainName: aws.String("DomainName"), // Required @@ -299,7 +298,7 @@ func ExampleCloudSearch_DeleteExpression() { } func ExampleCloudSearch_DeleteIndexField() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DeleteIndexFieldInput{ DomainName: aws.String("DomainName"), // Required @@ -319,7 +318,7 @@ func ExampleCloudSearch_DeleteIndexField() { } func ExampleCloudSearch_DeleteSuggester() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DeleteSuggesterInput{ DomainName: aws.String("DomainName"), // Required @@ -339,7 +338,7 @@ func ExampleCloudSearch_DeleteSuggester() { } func ExampleCloudSearch_DescribeAnalysisSchemes() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DescribeAnalysisSchemesInput{ DomainName: aws.String("DomainName"), // Required @@ -363,7 +362,7 @@ func ExampleCloudSearch_DescribeAnalysisSchemes() { } func ExampleCloudSearch_DescribeAvailabilityOptions() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DescribeAvailabilityOptionsInput{ DomainName: aws.String("DomainName"), // Required @@ -383,7 +382,7 @@ func ExampleCloudSearch_DescribeAvailabilityOptions() { } func ExampleCloudSearch_DescribeDomains() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DescribeDomainsInput{ DomainNames: []*string{ @@ -405,7 +404,7 @@ func ExampleCloudSearch_DescribeDomains() { } func ExampleCloudSearch_DescribeExpressions() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DescribeExpressionsInput{ DomainName: aws.String("DomainName"), // Required @@ -429,7 +428,7 @@ func ExampleCloudSearch_DescribeExpressions() { } func ExampleCloudSearch_DescribeIndexFields() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DescribeIndexFieldsInput{ DomainName: aws.String("DomainName"), // Required @@ -453,7 +452,7 @@ func ExampleCloudSearch_DescribeIndexFields() { } func ExampleCloudSearch_DescribeScalingParameters() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DescribeScalingParametersInput{ DomainName: aws.String("DomainName"), // Required @@ -472,7 +471,7 @@ func ExampleCloudSearch_DescribeScalingParameters() { } func ExampleCloudSearch_DescribeServiceAccessPolicies() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DescribeServiceAccessPoliciesInput{ DomainName: aws.String("DomainName"), // Required @@ -492,7 +491,7 @@ func ExampleCloudSearch_DescribeServiceAccessPolicies() { } func ExampleCloudSearch_DescribeSuggesters() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.DescribeSuggestersInput{ DomainName: aws.String("DomainName"), // Required @@ -516,7 +515,7 @@ func ExampleCloudSearch_DescribeSuggesters() { } func ExampleCloudSearch_IndexDocuments() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.IndexDocumentsInput{ DomainName: aws.String("DomainName"), // Required @@ -535,7 +534,7 @@ func ExampleCloudSearch_IndexDocuments() { } func ExampleCloudSearch_ListDomainNames() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) var params *cloudsearch.ListDomainNamesInput resp, err := svc.ListDomainNames(params) @@ -552,7 +551,7 @@ func ExampleCloudSearch_ListDomainNames() { } func ExampleCloudSearch_UpdateAvailabilityOptions() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.UpdateAvailabilityOptionsInput{ DomainName: aws.String("DomainName"), // Required @@ -572,7 +571,7 @@ func ExampleCloudSearch_UpdateAvailabilityOptions() { } func ExampleCloudSearch_UpdateScalingParameters() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.UpdateScalingParametersInput{ DomainName: aws.String("DomainName"), // Required @@ -596,7 +595,7 @@ func ExampleCloudSearch_UpdateScalingParameters() { } func ExampleCloudSearch_UpdateServiceAccessPolicies() { - svc := cloudsearch.New(session.New()) + svc := cloudsearch.New(nil) params := &cloudsearch.UpdateServiceAccessPoliciesInput{ AccessPolicies: aws.String("PolicyDocument"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/service.go index f4333a836..9ad9ee5db 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearch/service.go @@ -4,11 +4,12 @@ package cloudsearch import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // You use the Amazon CloudSearch configuration service to create, configure, @@ -20,64 +21,40 @@ import ( // For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported // regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" // target="_blank). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type CloudSearch struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudsearch" - -// New creates a new instance of the CloudSearch client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CloudSearch client from just a session. -// svc := cloudsearch.New(mySession) -// -// // Create a CloudSearch client with additional configuration -// svc := cloudsearch.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudSearch { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudSearch { - svc := &CloudSearch{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2013-01-01", - }, - handlers, - ), +// New returns a new CloudSearch client. +func New(config *aws.Config) *CloudSearch { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "cloudsearch", + APIVersion: "2013-01-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CloudSearch{service} } // newRequest creates a new request for a CloudSearch operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/api.go index 19fb6e538..5b1a45997 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/api.go @@ -34,14 +34,14 @@ func (c *CloudSearchDomain) SearchRequest(input *SearchInput) (req *request.Requ // you specify the search criteria depends on which query parser you use. Amazon // CloudSearch supports four query parsers: // -// simple: search all text and text-array fields for the specified string. -// Search for phrases, individual terms, and prefixes. structured: search specific -// fields, construct compound queries using Boolean operators, and use advanced -// features such as term boosting and proximity searching. lucene: specify search -// criteria using the Apache Lucene query parser syntax. dismax: specify search -// criteria using the simplified subset of the Apache Lucene query parser syntax -// defined by the DisMax query parser. For more information, see Searching -// Your Data (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html) +// simple: search all text and text-array fields for the specified string. +// Search for phrases, individual terms, and prefixes. structured: search +// specific fields, construct compound queries using Boolean operators, and +// use advanced features such as term boosting and proximity searching. lucene: +// specify search criteria using the Apache Lucene query parser syntax. dismax: +// specify search criteria using the simplified subset of the Apache Lucene +// query parser syntax defined by the DisMax query parser. For more information, +// see Searching Your Data (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/searching.html) // in the Amazon CloudSearch Developer Guide. // // The endpoint for submitting Search requests is domain-specific. You submit @@ -148,13 +148,17 @@ func (c *CloudSearchDomain) UploadDocuments(input *UploadDocumentsInput) (*Uploa // A container for facet information. type Bucket struct { - _ struct{} `type:"structure"` - // The number of hits that contain the facet value in the specified facet field. Count *int64 `locationName:"count" type:"long"` // The facet value being counted. Value *string `locationName:"value" type:"string"` + + metadataBucket `json:"-" xml:"-"` +} + +type metadataBucket struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -169,10 +173,14 @@ func (s Bucket) GoString() string { // A container for the calculated facet values and counts. type BucketInfo struct { - _ struct{} `type:"structure"` - // A list of the calculated facet values and counts. Buckets []*Bucket `locationName:"buckets" type:"list"` + + metadataBucketInfo `json:"-" xml:"-"` +} + +type metadataBucketInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -188,87 +196,28 @@ func (s BucketInfo) GoString() string { // A warning returned by the document service when an issue is discovered while // processing an upload request. type DocumentServiceWarning struct { - _ struct{} `type:"structure"` - // The description for a warning returned by the document service. Message *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s DocumentServiceWarning) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DocumentServiceWarning) GoString() string { - return s.String() + metadataDocumentServiceWarning `json:"-" xml:"-"` } -// The statistics for a field calculated in the request. -type FieldStats struct { - _ struct{} `type:"structure"` - - // The number of documents that contain a value in the specified field in the - // result set. - Count *int64 `locationName:"count" type:"long"` - - // The maximum value found in the specified field in the result set. - // - // If the field is numeric (int, int-array, double, or double-array), max is - // the string representation of a double-precision 64-bit floating point value. - // If the field is date or date-array, max is the string representation of a - // date with the format specified in IETF RFC3339 (http://tools.ietf.org/html/rfc3339): - // yyyy-mm-ddTHH:mm:ss.SSSZ. - Max *string `locationName:"max" type:"string"` - - // The average of the values found in the specified field in the result set. - // - // If the field is numeric (int, int-array, double, or double-array), mean - // is the string representation of a double-precision 64-bit floating point - // value. If the field is date or date-array, mean is the string representation - // of a date with the format specified in IETF RFC3339 (http://tools.ietf.org/html/rfc3339): - // yyyy-mm-ddTHH:mm:ss.SSSZ. - Mean *string `locationName:"mean" type:"string"` - - // The minimum value found in the specified field in the result set. - // - // If the field is numeric (int, int-array, double, or double-array), min is - // the string representation of a double-precision 64-bit floating point value. - // If the field is date or date-array, min is the string representation of a - // date with the format specified in IETF RFC3339 (http://tools.ietf.org/html/rfc3339): - // yyyy-mm-ddTHH:mm:ss.SSSZ. - Min *string `locationName:"min" type:"string"` - - // The number of documents that do not contain a value in the specified field - // in the result set. - Missing *int64 `locationName:"missing" type:"long"` - - // The standard deviation of the values in the specified field in the result - // set. - Stddev *float64 `locationName:"stddev" type:"double"` - - // The sum of the field values across the documents in the result set. null - // for date fields. - Sum *float64 `locationName:"sum" type:"double"` - - // The sum of all field values in the result set squared. - SumOfSquares *float64 `locationName:"sumOfSquares" type:"double"` +type metadataDocumentServiceWarning struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s FieldStats) String() string { +func (s DocumentServiceWarning) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FieldStats) GoString() string { +func (s DocumentServiceWarning) GoString() string { return s.String() } // Information about a document that matches the search request. type Hit struct { - _ struct{} `type:"structure"` - // The expressions returned from a document that matches the search request. Exprs map[string]*string `locationName:"exprs" type:"map"` @@ -280,6 +229,12 @@ type Hit struct { // The document ID of a document that matches the search request. Id *string `locationName:"id" type:"string"` + + metadataHit `json:"-" xml:"-"` +} + +type metadataHit struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -294,8 +249,6 @@ func (s Hit) GoString() string { // The collection of documents that match the search request. type Hits struct { - _ struct{} `type:"structure"` - // A cursor that can be used to retrieve the next set of matching documents // when you want to page through a large result set. Cursor *string `locationName:"cursor" type:"string"` @@ -308,6 +261,12 @@ type Hits struct { // The index of the first matching document. Start *int64 `locationName:"start" type:"long"` + + metadataHits `json:"-" xml:"-"` +} + +type metadataHits struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -322,8 +281,6 @@ func (s Hits) GoString() string { // Container for the parameters to the Search request. type SearchInput struct { - _ struct{} `type:"structure"` - // Retrieves a cursor value you can use to page through large result sets. Use // the size parameter to control the number of hits to include in each response. // You can specify either the cursor or start parameter in a request; they are @@ -469,7 +426,7 @@ type SearchInput struct { // // The options you can configure vary according to which parser you use: // - // defaultOperator: The default operator used to combine individual terms + // defaultOperator: The default operator used to combine individual terms // in the search string. For example: defaultOperator: 'or'. For the dismax // parser, you specify a percentage that represents the percentage of terms // in the search string (rounded down) that must match, rather than a default @@ -478,17 +435,17 @@ type SearchInput struct { // by the percent (%) symbol. For example, defaultOperator: 50%. Valid values: // and, or, a percentage in the range 0%-100% (dismax). Default: and (simple, // structured, lucene) or 100 (dismax). Valid for: simple, structured, lucene, - // and dismax. fields: An array of the fields to search when no fields are specified - // in a search. If no fields are specified in a search and this option is not - // specified, all text and text-array fields are searched. You can specify a - // weight for each field to control the relative importance of each field when - // Amazon CloudSearch calculates relevance scores. To specify a field weight, + // and dismax. fields: An array of the fields to search when no fields are + // specified in a search. If no fields are specified in a search and this option + // is not specified, all text and text-array fields are searched. You can specify + // a weight for each field to control the relative importance of each field + // when Amazon CloudSearch calculates relevance scores. To specify a field weight, // append a caret (^) symbol and the weight to the field name. For example, // to boost the importance of the title field over the description field you // could specify: "fields":["title^5","description"]. Valid values: The name // of any configured field and an optional numeric value greater than zero. // Default: All text and text-array fields. Valid for: simple, structured, lucene, - // and dismax. operators: An array of the operators or special characters you + // and dismax. operators: An array of the operators or special characters you // want to disable for the simple query parser. If you disable the and, or, // or not operators, the corresponding operators (+, |, -) have no special meaning // and are dropped from the search string. Similarly, disabling prefix disables @@ -505,7 +462,7 @@ type SearchInput struct { // the phrase operator to support just simple term and phrase queries: "operators":["and","not","or", // "prefix"]. Valid values: and, escape, fuzzy, near, not, or, phrase, precedence, // prefix, whitespace. Default: All operators and special characters are enabled. - // Valid for: simple. phraseFields: An array of the text or text-array fields + // Valid for: simple. phraseFields: An array of the text or text-array fields // you want to use for phrase searches. When the terms in the search string // appear in close proximity within a field, the field scores higher. You can // specify a weight for each field to boost that score. The phraseSlop option @@ -516,17 +473,17 @@ type SearchInput struct { // "plot"] Valid values: The name of any text or text-array field and an optional // numeric value greater than zero. Default: No fields. If you don't specify // any fields with phraseFields, proximity scoring is disabled even if phraseSlop - // is specified. Valid for: dismax. phraseSlop: An integer value that specifies + // is specified. Valid for: dismax. phraseSlop: An integer value that specifies // how much matches can deviate from the search phrase and still be boosted // according to the weights specified in the phraseFields option; for example, // phraseSlop: 2. You must also specify phraseFields to enable proximity scoring. - // Valid values: positive integers. Default: 0. Valid for: dismax. explicitPhraseSlop: + // Valid values: positive integers. Default: 0. Valid for: dismax. explicitPhraseSlop: // An integer value that specifies how much a match can deviate from the search // phrase when the phrase is enclosed in double quotes in the search string. // (Phrases that exceed this proximity distance are not considered a match.) // For example, to specify a slop of three for dismax phrase queries, you would // specify "explicitPhraseSlop":3. Valid values: positive integers. Default: - // 0. Valid for: dismax. tieBreaker: When a term in the search string is found + // 0. Valid for: dismax. tieBreaker: When a term in the search string is found // in a document's field, a score is calculated for that field based on how // common the word is in that field compared to other documents. If the term // occurs in multiple fields within a document, by default only the highest @@ -601,13 +558,11 @@ type SearchInput struct { // in the Amazon CloudSearch Developer Guide. Start *int64 `location:"querystring" locationName:"start" type:"long"` - // Specifies one or more fields for which to get statistics information. Each - // specified field must be facet-enabled in the domain configuration. The fields - // are specified in JSON using the form: - // - // {"FIELD-A":{},"FIELD-B":{}} There are currently no options supported for - // statistics. - Stats *string `location:"querystring" locationName:"stats" type:"string"` + metadataSearchInput `json:"-" xml:"-"` +} + +type metadataSearchInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -620,35 +575,23 @@ func (s SearchInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SearchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SearchInput"} - if s.Query == nil { - invalidParams.Add(request.NewErrParamRequired("Query")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a Search request. Contains the documents that match the specified // search criteria and any requested fields, highlights, and facet information. type SearchOutput struct { - _ struct{} `type:"structure"` - // The requested facet information. Facets map[string]*BucketInfo `locationName:"facets" type:"map"` // The documents that match the search criteria. Hits *Hits `locationName:"hits" type:"structure"` - // The requested field statistics information. - Stats map[string]*FieldStats `locationName:"stats" type:"map"` - // The status information returned for the search request. Status *SearchStatus `locationName:"status" type:"structure"` + + metadataSearchOutput `json:"-" xml:"-"` +} + +type metadataSearchOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -664,13 +607,17 @@ func (s SearchOutput) GoString() string { // Contains the resource id (rid) and the time it took to process the request // (timems). type SearchStatus struct { - _ struct{} `type:"structure"` - // The encrypted resource ID for the request. Rid *string `locationName:"rid" type:"string"` // How long it took to process the request, in milliseconds. Timems *int64 `locationName:"timems" type:"long"` + + metadataSearchStatus `json:"-" xml:"-"` +} + +type metadataSearchStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -685,8 +632,6 @@ func (s SearchStatus) GoString() string { // Container for the parameters to the Suggest request. type SuggestInput struct { - _ struct{} `type:"structure"` - // Specifies the string for which you want to get suggestions. Query *string `location:"querystring" locationName:"q" type:"string" required:"true"` @@ -695,6 +640,12 @@ type SuggestInput struct { // Specifies the name of the suggester to use to find suggested matches. Suggester *string `location:"querystring" locationName:"suggester" type:"string" required:"true"` + + metadataSuggestInput `json:"-" xml:"-"` +} + +type metadataSuggestInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -707,26 +658,8 @@ func (s SuggestInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SuggestInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SuggestInput"} - if s.Query == nil { - invalidParams.Add(request.NewErrParamRequired("Query")) - } - if s.Suggester == nil { - invalidParams.Add(request.NewErrParamRequired("Suggester")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the suggestion information returned in a SuggestResponse. type SuggestModel struct { - _ struct{} `type:"structure"` - // The number of documents that were found to match the query string. Found *int64 `locationName:"found" type:"long"` @@ -735,6 +668,12 @@ type SuggestModel struct { // The documents that match the query string. Suggestions []*SuggestionMatch `locationName:"suggestions" type:"list"` + + metadataSuggestModel `json:"-" xml:"-"` +} + +type metadataSuggestModel struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -749,14 +688,18 @@ func (s SuggestModel) GoString() string { // Contains the response to a Suggest request. type SuggestOutput struct { - _ struct{} `type:"structure"` - // The status of a SuggestRequest. Contains the resource ID (rid) and how long // it took to process the request (timems). Status *SuggestStatus `locationName:"status" type:"structure"` // Container for the matching search suggestion information. Suggest *SuggestModel `locationName:"suggest" type:"structure"` + + metadataSuggestOutput `json:"-" xml:"-"` +} + +type metadataSuggestOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -772,13 +715,17 @@ func (s SuggestOutput) GoString() string { // Contains the resource id (rid) and the time it took to process the request // (timems). type SuggestStatus struct { - _ struct{} `type:"structure"` - // The encrypted resource ID for the request. Rid *string `locationName:"rid" type:"string"` // How long it took to process the request, in milliseconds. Timems *int64 `locationName:"timems" type:"long"` + + metadataSuggestStatus `json:"-" xml:"-"` +} + +type metadataSuggestStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -793,8 +740,6 @@ func (s SuggestStatus) GoString() string { // An autocomplete suggestion that matches the query string specified in a SuggestRequest. type SuggestionMatch struct { - _ struct{} `type:"structure"` - // The document ID of the suggested document. Id *string `locationName:"id" type:"string"` @@ -803,6 +748,12 @@ type SuggestionMatch struct { // The string that matches the query string specified in the SuggestRequest. Suggestion *string `locationName:"suggestion" type:"string"` + + metadataSuggestionMatch `json:"-" xml:"-"` +} + +type metadataSuggestionMatch struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -817,8 +768,6 @@ func (s SuggestionMatch) GoString() string { // Container for the parameters to the UploadDocuments request. type UploadDocumentsInput struct { - _ struct{} `type:"structure" payload:"Documents"` - // The format of the batch you are uploading. Amazon CloudSearch supports two // document batch formats: // @@ -827,6 +776,12 @@ type UploadDocumentsInput struct { // A batch of documents formatted in JSON or HTML. Documents io.ReadSeeker `locationName:"documents" type:"blob" required:"true"` + + metadataUploadDocumentsInput `json:"-" xml:"-"` +} + +type metadataUploadDocumentsInput struct { + SDKShapeTraits bool `type:"structure" payload:"Documents"` } // String returns the string representation @@ -839,26 +794,8 @@ func (s UploadDocumentsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UploadDocumentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UploadDocumentsInput"} - if s.ContentType == nil { - invalidParams.Add(request.NewErrParamRequired("ContentType")) - } - if s.Documents == nil { - invalidParams.Add(request.NewErrParamRequired("Documents")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to an UploadDocuments request. type UploadDocumentsOutput struct { - _ struct{} `type:"structure"` - // The number of documents that were added to the search domain. Adds *int64 `locationName:"adds" type:"long"` @@ -870,6 +807,12 @@ type UploadDocumentsOutput struct { // Any warnings returned by the document service about the documents being uploaded. Warnings []*DocumentServiceWarning `locationName:"warnings" type:"list"` + + metadataUploadDocumentsOutput `json:"-" xml:"-"` +} + +type metadataUploadDocumentsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go index 4b80f620b..e327dd3ee 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface.go @@ -22,5 +22,3 @@ type CloudSearchDomainAPI interface { UploadDocuments(*cloudsearchdomain.UploadDocumentsInput) (*cloudsearchdomain.UploadDocumentsOutput, error) } - -var _ CloudSearchDomainAPI = (*cloudsearchdomain.CloudSearchDomain)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface_test.go new file mode 100644 index 000000000..8d6d1331a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudsearchdomainiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/cloudsearchdomain" + "github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*cloudsearchdomainiface.CloudSearchDomainAPI)(nil), cloudsearchdomain.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/customizations_test.go index 49bfeb8b4..2c1c131ea 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/customizations_test.go @@ -3,15 +3,13 @@ package cloudsearchdomain_test import ( "testing" - "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/unit" "github.com/aws/aws-sdk-go/service/cloudsearchdomain" + "github.com/stretchr/testify/assert" ) func TestRequireEndpointIfRegionProvided(t *testing.T) { - svc := cloudsearchdomain.New(unit.Session, &aws.Config{ + svc := cloudsearchdomain.New(&aws.Config{ Region: aws.String("mock-region"), DisableParamValidation: aws.Bool(true), }) @@ -24,7 +22,7 @@ func TestRequireEndpointIfRegionProvided(t *testing.T) { } func TestRequireEndpointIfNoRegionProvided(t *testing.T) { - svc := cloudsearchdomain.New(unit.Session, &aws.Config{ + svc := cloudsearchdomain.New(&aws.Config{ Region: aws.String(""), DisableParamValidation: aws.Bool(true), }) @@ -37,7 +35,7 @@ func TestRequireEndpointIfNoRegionProvided(t *testing.T) { } func TestRequireEndpointUsed(t *testing.T) { - svc := cloudsearchdomain.New(unit.Session, &aws.Config{ + svc := cloudsearchdomain.New(&aws.Config{ Region: aws.String("mock-region"), DisableParamValidation: aws.Bool(true), Endpoint: aws.String("https://endpoint"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go index 84c94c9a5..bd10702ae 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudsearchdomain" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudSearchDomain_Search() { - svc := cloudsearchdomain.New(session.New()) + svc := cloudsearchdomain.New(nil) params := &cloudsearchdomain.SearchInput{ Query: aws.String("Query"), // Required @@ -32,7 +31,6 @@ func ExampleCloudSearchDomain_Search() { Size: aws.Int64(1), Sort: aws.String("Sort"), Start: aws.Int64(1), - Stats: aws.String("Stat"), } resp, err := svc.Search(params) @@ -48,7 +46,7 @@ func ExampleCloudSearchDomain_Search() { } func ExampleCloudSearchDomain_Suggest() { - svc := cloudsearchdomain.New(session.New()) + svc := cloudsearchdomain.New(nil) params := &cloudsearchdomain.SuggestInput{ Query: aws.String("Query"), // Required @@ -69,7 +67,7 @@ func ExampleCloudSearchDomain_Suggest() { } func ExampleCloudSearchDomain_UploadDocuments() { - svc := cloudsearchdomain.New(session.New()) + svc := cloudsearchdomain.New(nil) params := &cloudsearchdomain.UploadDocumentsInput{ ContentType: aws.String("ContentType"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/service.go index df719b1a4..35e015717 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/service.go @@ -4,11 +4,12 @@ package cloudsearchdomain import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restjson" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // You use the AmazonCloudSearch2013 API to upload documents to a search domain @@ -21,65 +22,41 @@ import ( // You submit suggest requests to the search endpoint. // // For more information, see the Amazon CloudSearch Developer Guide (http://docs.aws.amazon.com/cloudsearch/latest/developerguide). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type CloudSearchDomain struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudsearchdomain" - -// New creates a new instance of the CloudSearchDomain client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CloudSearchDomain client from just a session. -// svc := cloudsearchdomain.New(mySession) -// -// // Create a CloudSearchDomain client with additional configuration -// svc := cloudsearchdomain.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudSearchDomain { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudSearchDomain { - svc := &CloudSearchDomain{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningName: "cloudsearch", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2013-01-01", - }, - handlers, - ), +// New returns a new CloudSearchDomain client. +func New(config *aws.Config) *CloudSearchDomain { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "cloudsearchdomain", + SigningName: "cloudsearch", + APIVersion: "2013-01-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CloudSearchDomain{service} } // newRequest creates a new request for a CloudSearchDomain operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go index 60f20f4d1..9b8812eb7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go @@ -4,45 +4,12 @@ package cloudtrail import ( - "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" ) -const opAddTags = "AddTags" - -// AddTagsRequest generates a request for the AddTags operation. -func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { - op := &request.Operation{ - Name: opAddTags, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AddTagsInput{} - } - - req = c.newRequest(op, input, output) - output = &AddTagsOutput{} - req.Data = output - return -} - -// Adds one or more tags to a trail, up to a limit of 10. Tags must be unique -// per trail. Overwrites an existing tag's value when a new value is specified -// for an existing tag key. If you specify a key without a value, the tag will -// be created with the specified key and a value of null. You can tag a trail -// that applies to all regions only from the region in which the trail was created -// (that is, from its home region). -func (c *CloudTrail) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { - req, out := c.AddTagsRequest(input) - err := req.Send() - return out, err -} - const opCreateTrail = "CreateTrail" // CreateTrailRequest generates a request for the CreateTrail operation. @@ -63,9 +30,10 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R return } -// Creates a trail that specifies the settings for delivery of log data to an -// Amazon S3 bucket. A maximum of five trails can exist in a region, irrespective -// of the region in which they were created. +// From the command line, use create-subscription. +// +// Creates a trail that specifies the settings for delivery of log data to +// an Amazon S3 bucket. func (c *CloudTrail) CreateTrail(input *CreateTrailInput) (*CreateTrailOutput, error) { req, out := c.CreateTrailRequest(input) err := req.Send() @@ -92,9 +60,7 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R return } -// Deletes a trail. This operation must be called from the region in which the -// trail was created. DeleteTrail cannot be called on the shadow trails (replicated -// trails in other regions) of a trail that is enabled in all regions. +// Deletes a trail. func (c *CloudTrail) DeleteTrail(input *DeleteTrailInput) (*DeleteTrailOutput, error) { req, out := c.DeleteTrailRequest(input) err := req.Send() @@ -151,76 +117,13 @@ func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *req // Returns a JSON-formatted list of information about the specified trail. Fields // include information on delivery errors, Amazon SNS and Amazon S3 errors, -// and start and stop logging times for each trail. This operation returns trail -// status from a single region. To return trail status from all regions, you -// must call the operation on each region. +// and start and stop logging times for each trail. func (c *CloudTrail) GetTrailStatus(input *GetTrailStatusInput) (*GetTrailStatusOutput, error) { req, out := c.GetTrailStatusRequest(input) err := req.Send() return out, err } -const opListPublicKeys = "ListPublicKeys" - -// ListPublicKeysRequest generates a request for the ListPublicKeys operation. -func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *request.Request, output *ListPublicKeysOutput) { - op := &request.Operation{ - Name: opListPublicKeys, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListPublicKeysInput{} - } - - req = c.newRequest(op, input, output) - output = &ListPublicKeysOutput{} - req.Data = output - return -} - -// Returns all public keys whose private keys were used to sign the digest files -// within the specified time range. The public key is needed to validate digest -// files that were signed with its corresponding private key. -// -// CloudTrail uses different private/public key pairs per region. Each digest -// file is signed with a private key unique to its region. Therefore, when you -// validate a digest file from a particular region, you must look in the same -// region for its corresponding public key. -func (c *CloudTrail) ListPublicKeys(input *ListPublicKeysInput) (*ListPublicKeysOutput, error) { - req, out := c.ListPublicKeysRequest(input) - err := req.Send() - return out, err -} - -const opListTags = "ListTags" - -// ListTagsRequest generates a request for the ListTags operation. -func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { - op := &request.Operation{ - Name: opListTags, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListTagsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTagsOutput{} - req.Data = output - return -} - -// Lists the tags for the trail in the current region. -func (c *CloudTrail) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { - req, out := c.ListTagsRequest(input) - err := req.Send() - return out, err -} - const opLookupEvents = "LookupEvents" // LookupEventsRequest generates a request for the LookupEvents operation. @@ -250,12 +153,10 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request // that can be specified in any one lookup request are time range and one other // attribute. The default number of results returned is 10, with a maximum of // 50 possible. The response includes a token that you can use to get the next -// page of results. -// -// The rate of lookup requests is limited to one per second per account. If -// this limit is exceeded, a throttling error occurs. +// page of results. The rate of lookup requests is limited to one per second +// per account. // -// Events that occurred during the selected time range will not be available +// Events that occurred during the selected time range will not be available // for lookup if CloudTrail logging was not enabled when the events occurred. func (c *CloudTrail) LookupEvents(input *LookupEventsInput) (*LookupEventsOutput, error) { req, out := c.LookupEventsRequest(input) @@ -263,33 +164,6 @@ func (c *CloudTrail) LookupEvents(input *LookupEventsInput) (*LookupEventsOutput return out, err } -const opRemoveTags = "RemoveTags" - -// RemoveTagsRequest generates a request for the RemoveTags operation. -func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) { - op := &request.Operation{ - Name: opRemoveTags, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RemoveTagsInput{} - } - - req = c.newRequest(op, input, output) - output = &RemoveTagsOutput{} - req.Data = output - return -} - -// Removes the specified tags from a trail. -func (c *CloudTrail) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { - req, out := c.RemoveTagsRequest(input) - err := req.Send() - return out, err -} - const opStartLogging = "StartLogging" // StartLoggingRequest generates a request for the StartLogging operation. @@ -311,10 +185,6 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request } // Starts the recording of AWS API calls and log file delivery for a trail. -// For a trail that is enabled in all regions, this operation must be called -// from the region in which the trail was created. This operation cannot be -// called on the shadow trails (replicated trails in other regions) of a trail -// that is enabled in all regions. func (c *CloudTrail) StartLogging(input *StartLoggingInput) (*StartLoggingOutput, error) { req, out := c.StartLoggingRequest(input) err := req.Send() @@ -344,10 +214,7 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R // Suspends the recording of AWS API calls and log file delivery for the specified // trail. Under most circumstances, there is no need to use this action. You // can update a trail without stopping it first. This action is the only way -// to stop recording. For a trail enabled in all regions, this operation must -// be called from the region in which the trail was created, or an InvalidHomeRegionException -// will occur. This operation cannot be called on the shadow trails (replicated -// trails in other regions) of a trail enabled in all regions. +// to stop recording. func (c *CloudTrail) StopLogging(input *StopLoggingInput) (*StopLoggingOutput, error) { req, out := c.StopLoggingRequest(input) err := req.Send() @@ -374,158 +241,53 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R return } +// From the command line, use update-subscription. +// // Updates the settings that specify delivery of log files. Changes to a trail // do not require stopping the CloudTrail service. Use this action to designate // an existing bucket for log delivery. If the existing bucket has previously // been a target for CloudTrail log files, an IAM policy exists for the bucket. -// UpdateTrail must be called from the region in which the trail was created; -// otherwise, an InvalidHomeRegionException is thrown. func (c *CloudTrail) UpdateTrail(input *UpdateTrailInput) (*UpdateTrailOutput, error) { req, out := c.UpdateTrailRequest(input) err := req.Send() return out, err } -// Specifies the tags to add to a trail. -type AddTagsInput struct { - _ struct{} `type:"structure"` - - // Specifies the ARN of the trail to which one or more tags will be added. The - // format of a trail ARN is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail - ResourceId *string `type:"string" required:"true"` - - // Contains a list of CloudTrail tags, up to a limit of 10. - TagsList []*Tag `type:"list"` -} - -// String returns the string representation -func (s AddTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.TagsList != nil { - for i, v := range s.TagsList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagsList", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Returns the objects or data listed below if successful. Otherwise, returns -// an error. -type AddTagsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AddTagsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsOutput) GoString() string { - return s.String() -} - // Specifies the settings for each trail. type CreateTrailInput struct { - _ struct{} `type:"structure"` - // Specifies a log group name using an Amazon Resource Name (ARN), a unique // identifier that represents the log group to which CloudTrail logs will be // delivered. Not required unless you specify CloudWatchLogsRoleArn. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to - // a user's log group. + // a user’s log group. CloudWatchLogsRoleArn *string `type:"string"` - // Specifies whether log file integrity validation is enabled. The default is - // false. - // - // When you disable log file integrity validation, the chain of digest files - // is broken after one hour. CloudTrail will not create digest files for log - // files that were delivered during a period in which log file integrity validation - // was disabled. For example, if you enable log file integrity validation at - // noon on January 1, disable it at noon on January 2, and re-enable it at noon - // on January 10, digest files will not be created for the log files delivered - // from noon on January 2 to noon on January 10. The same applies whenever you - // stop CloudTrail logging or delete a trail. - EnableLogFileValidation *bool `type:"boolean"` - // Specifies whether the trail is publishing events from global services such // as IAM to the log files. IncludeGlobalServiceEvents *bool `type:"boolean"` - // Specifies whether the trail is created in the current region or in all regions. - // The default is false. - IsMultiRegionTrail *bool `type:"boolean"` - - // Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. - // The value can be a an alias name prefixed by "alias/", a fully specified - // ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. - // - // Examples: - // - // alias/MyAliasName - // - // arn:aws:kms:us-east-1:123456789012:alias/MyAliasName - // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // 12345678-1234-1234-1234-123456789012 - KmsKeyId *string `type:"string"` - - // Specifies the name of the trail. The name 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) + // Specifies the name of the trail. Name *string `type:"string" required:"true"` // Specifies the name of the Amazon S3 bucket designated for publishing log - // files. See Amazon S3 Bucket Naming Requirements (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html). + // files. S3BucketName *string `type:"string" required:"true"` - // Specifies the Amazon S3 key prefix that comes after the name of the bucket - // you have designated for log file delivery. For more information, see Finding - // Your CloudTrail Log Files (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html). - // The maximum length is 200 characters. + // Specifies the Amazon S3 key prefix that precedes the name of the bucket you + // have designated for log file delivery. S3KeyPrefix *string `type:"string"` // Specifies the name of the Amazon SNS topic defined for notification of log - // file delivery. The maximum length is 256 characters. + // file delivery. SnsTopicName *string `type:"string"` + + metadataCreateTrailInput `json:"-" xml:"-"` +} + +type metadataCreateTrailInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -538,51 +300,21 @@ func (s CreateTrailInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTrailInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTrailInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.S3BucketName == nil { - invalidParams.Add(request.NewErrParamRequired("S3BucketName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returns the objects or data listed below if successful. Otherwise, returns // an error. type CreateTrailOutput struct { - _ struct{} `type:"structure"` - // Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail // logs will be delivered. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to - // a user's log group. + // a user’s log group. CloudWatchLogsRoleArn *string `type:"string"` // Specifies whether the trail is publishing events from global services such // as IAM to the log files. IncludeGlobalServiceEvents *bool `type:"boolean"` - // Specifies whether the trail exists in one region or in all regions. - IsMultiRegionTrail *bool `type:"boolean"` - - // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. - // The value is a fully specified ARN to a KMS key in the format: - // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - KmsKeyId *string `type:"string"` - - // Specifies whether log file integrity validation is enabled. - LogFileValidationEnabled *bool `type:"boolean"` - // Specifies the name of the trail. Name *string `type:"string"` @@ -590,26 +322,19 @@ type CreateTrailOutput struct { // files. S3BucketName *string `type:"string"` - // Specifies the Amazon S3 key prefix that comes after the name of the bucket - // you have designated for log file delivery. For more information, see Finding - // Your CloudTrail Log Files (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html). + // Specifies the Amazon S3 key prefix that precedes the name of the bucket you + // have designated for log file delivery. S3KeyPrefix *string `type:"string"` - // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications - // when log files are delivered. The format of a topic ARN is: - // - // arn:aws:sns:us-east-1:123456789012:MyTopic - SnsTopicARN *string `type:"string"` + // Specifies the name of the Amazon SNS topic defined for notification of log + // file delivery. + SnsTopicName *string `type:"string"` - // Specifies the name of the Amazon SNS topic that CloudTrail uses to send notifications - // when log files are delivered. - SnsTopicName *string `deprecated:"true" type:"string"` + metadataCreateTrailOutput `json:"-" xml:"-"` +} - // Specifies the ARN of the trail that was created. The format of a trail ARN - // is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail - TrailARN *string `type:"string"` +type metadataCreateTrailOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -624,13 +349,14 @@ func (s CreateTrailOutput) GoString() string { // The request that specifies the name of a trail to delete. type DeleteTrailInput struct { - _ struct{} `type:"structure"` - - // Specifies the name or the CloudTrail ARN of the trail to be deleted. The - // format of a trail ARN is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // The name of a trail to be deleted. Name *string `type:"string" required:"true"` + + metadataDeleteTrailInput `json:"-" xml:"-"` +} + +type metadataDeleteTrailInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -643,23 +369,14 @@ func (s DeleteTrailInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTrailInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTrailInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returns the objects or data listed below if successful. Otherwise, returns // an error. type DeleteTrailOutput struct { - _ struct{} `type:"structure"` + metadataDeleteTrailOutput `json:"-" xml:"-"` +} + +type metadataDeleteTrailOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -674,33 +391,14 @@ func (s DeleteTrailOutput) GoString() string { // Returns information about the trail. type DescribeTrailsInput struct { - _ struct{} `type:"structure"` - - // Specifies whether to include shadow trails in the response. A shadow trail - // is the replication in a region of a trail that was created in a different - // region. The default is true. - IncludeShadowTrails *bool `locationName:"includeShadowTrails" type:"boolean"` - - // Specifies a list of trail names, trail ARNs, or both, of the trails to describe. - // The format of a trail ARN is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail - // - // If an empty list is specified, information for the trail in the current - // region is returned. - // - // If an empty list is specified and IncludeShadowTrails is false, then information - // for all trails in the current region is returned. - // - // If an empty list is specified and IncludeShadowTrails is null or true, - // then information for all trails in the current region and any associated - // shadow trails in other regions is returned. - // - // If one or more trail names are specified, information is returned only - // if the names match the names of trails belonging only to the current region. - // To return information about a trail in another region, you must specify its - // trail ARN. + // The trail returned. TrailNameList []*string `locationName:"trailNameList" type:"list"` + + metadataDescribeTrailsInput `json:"-" xml:"-"` +} + +type metadataDescribeTrailsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -716,10 +414,14 @@ func (s DescribeTrailsInput) GoString() string { // Returns the objects or data listed below if successful. Otherwise, returns // an error. type DescribeTrailsOutput struct { - _ struct{} `type:"structure"` - - // The list of trail objects. + // The list of trails. TrailList []*Trail `locationName:"trailList" type:"list"` + + metadataDescribeTrailsOutput `json:"-" xml:"-"` +} + +type metadataDescribeTrailsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -735,8 +437,6 @@ func (s DescribeTrailsOutput) GoString() string { // Contains information about an event that was returned by a lookup request. // The result includes a representation of a CloudTrail event. type Event struct { - _ struct{} `type:"structure"` - // A JSON string that contains a representation of the event returned. CloudTrailEvent *string `type:"string"` @@ -755,6 +455,12 @@ type Event struct { // A user name or role name of the requester that called the API in the event // returned. Username *string `type:"string"` + + metadataEvent `json:"-" xml:"-"` +} + +type metadataEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -769,14 +475,14 @@ func (s Event) GoString() string { // The name of a trail about which you want the current status. type GetTrailStatusInput struct { - _ struct{} `type:"structure"` - - // Specifies the name or the CloudTrail ARN of the trail for which you are requesting - // status. To get the status of a shadow trail (a replication of the trail in - // another region), you must specify its ARN. The format of a trail ARN is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // The name of the trail for which you are requesting the current status. Name *string `type:"string" required:"true"` + + metadataGetTrailStatusInput `json:"-" xml:"-"` +} + +type metadataGetTrailStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -789,24 +495,9 @@ func (s GetTrailStatusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTrailStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTrailStatusInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returns the objects or data listed below if successful. Otherwise, returns // an error. type GetTrailStatusOutput struct { - _ struct{} `type:"structure"` - // Whether the CloudTrail is currently logging AWS API calls. IsLogging *bool `type:"boolean"` @@ -818,48 +509,16 @@ type GetTrailStatusOutput struct { // CloudWatch Logs. LatestCloudWatchLogsDeliveryTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // This field is deprecated. - LatestDeliveryAttemptSucceeded *string `type:"string"` - - // This field is deprecated. - LatestDeliveryAttemptTime *string `type:"string"` - // Displays any Amazon S3 error that CloudTrail encountered when attempting // to deliver log files to the designated bucket. For more information see the // topic Error Responses (http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html) // in the Amazon S3 API Reference. - // - // This error occurs only when there is a problem with the destination S3 - // bucket and will not occur for timeouts. To resolve the issue, create a new - // bucket and call UpdateTrail to specify the new bucket, or fix the existing - // objects so that CloudTrail can again write to the bucket. LatestDeliveryError *string `type:"string"` // Specifies the date and time that CloudTrail last delivered log files to an // account's Amazon S3 bucket. LatestDeliveryTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // Displays any Amazon S3 error that CloudTrail encountered when attempting - // to deliver a digest file to the designated bucket. For more information see - // the topic Error Responses (http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html) - // in the Amazon S3 API Reference. - // - // This error occurs only when there is a problem with the destination S3 - // bucket and will not occur for timeouts. To resolve the issue, create a new - // bucket and call UpdateTrail to specify the new bucket, or fix the existing - // objects so that CloudTrail can again write to the bucket. - LatestDigestDeliveryError *string `type:"string"` - - // Specifies the date and time that CloudTrail last delivered a digest file - // to an account's Amazon S3 bucket. - LatestDigestDeliveryTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // This field is deprecated. - LatestNotificationAttemptSucceeded *string `type:"string"` - - // This field is deprecated. - LatestNotificationAttemptTime *string `type:"string"` - // Displays any Amazon SNS error that CloudTrail encountered when attempting // to send a notification. For more information about Amazon SNS errors, see // the Amazon SNS Developer Guide (http://docs.aws.amazon.com/sns/latest/dg/welcome.html). @@ -877,11 +536,11 @@ type GetTrailStatusOutput struct { // API calls for an AWS account. StopLoggingTime *time.Time `type:"timestamp" timestampFormat:"unix"` - // This field is deprecated. - TimeLoggingStarted *string `type:"string"` + metadataGetTrailStatusOutput `json:"-" xml:"-"` +} - // This field is deprecated. - TimeLoggingStopped *string `type:"string"` +type metadataGetTrailStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -894,125 +553,19 @@ func (s GetTrailStatusOutput) GoString() string { return s.String() } -// 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" timestampFormat:"unix"` - - // 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" timestampFormat:"unix"` -} - -// 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() -} - -// 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() -} - -// 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-1:123456789012:trail/MyTrail - 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 -} - -// 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() -} - // Specifies an attribute and value that filter the events returned. type LookupAttribute struct { - _ struct{} `type:"structure"` - // Specifies an attribute on which to filter the events returned. AttributeKey *string `type:"string" required:"true" enum:"LookupAttributeKey"` // Specifies a value for the specified AttributeKey. AttributeValue *string `type:"string" required:"true"` + + metadataLookupAttribute `json:"-" xml:"-"` +} + +type metadataLookupAttribute struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1025,26 +578,8 @@ func (s LookupAttribute) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LookupAttribute) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LookupAttribute"} - if s.AttributeKey == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeKey")) - } - if s.AttributeValue == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeValue")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains a request for LookupEvents. type LookupEventsInput struct { - _ struct{} `type:"structure"` - // Specifies that only events that occur before or at the specified time are // returned. If the specified end time is before the specified start time, an // error is returned. @@ -1056,7 +591,7 @@ type LookupEventsInput struct { // The number of events to return. Possible values are 1 through 50. The default // is 10. - MaxResults *int64 `min:"1" type:"integer"` + MaxResults *int64 `type:"integer"` // 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 @@ -1069,6 +604,12 @@ type LookupEventsInput struct { // returned. If the specified start time is after the specified end time, an // error is returned. StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + metadataLookupEventsInput `json:"-" xml:"-"` +} + +type metadataLookupEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1081,33 +622,8 @@ func (s LookupEventsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LookupEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LookupEventsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.LookupAttributes != nil { - for i, v := range s.LookupAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LookupAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // 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. @@ -1119,114 +635,26 @@ type LookupEventsOutput struct { // 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) + metadataLookupEventsOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s LookupEventsOutput) GoString() string { - return s.String() -} - -// Contains information about a returned public key. -type PublicKey struct { - _ struct{} `type:"structure"` - - // The fingerprint of the public key. - Fingerprint *string `type:"string"` - - // The ending time of validity of the public key. - ValidityEndTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The starting time of validity of the public key. - ValidityStartTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The DER encoded public key value in PKCS#1 format. - // - // Value is automatically base64 encoded/decoded by the SDK. - Value []byte `type:"blob"` +type metadataLookupEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s PublicKey) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PublicKey) GoString() string { - return s.String() -} - -// Specifies the tags to remove from a trail. -type RemoveTagsInput struct { - _ struct{} `type:"structure"` - - // Specifies the ARN of the trail from which tags should be removed. The format - // of a trail ARN is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail - ResourceId *string `type:"string" required:"true"` - - // Specifies a list of tags to be removed. - TagsList []*Tag `type:"list"` -} - -// String returns the string representation -func (s RemoveTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTagsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.TagsList != nil { - for i, v := range s.TagsList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagsList", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Returns the objects or data listed below if successful. Otherwise, returns -// an error. -type RemoveTagsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s RemoveTagsOutput) String() string { +func (s LookupEventsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RemoveTagsOutput) GoString() string { +func (s LookupEventsOutput) GoString() string { return s.String() } // Specifies the type and name of a resource referenced by an event. type Resource struct { - _ struct{} `type:"structure"` - // The name of the resource referenced by the event returned. These are user-created // names whose values will depend on the environment. For example, the resource // name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" @@ -1239,48 +667,34 @@ type Resource struct { // for IAM. For a list of resource types supported for event lookup, see Resource // Types Supported for Event Lookup (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/lookup_supported_resourcetypes.html). ResourceType *string `type:"string"` -} -// String returns the string representation -func (s Resource) String() string { - return awsutil.Prettify(s) + metadataResource `json:"-" xml:"-"` } -// GoString returns the string representation -func (s Resource) GoString() string { - return s.String() -} - -// A resource tag. -type ResourceTag struct { - _ struct{} `type:"structure"` - - // Specifies the ARN of the resource. - ResourceId *string `type:"string"` - - // A list of tags. - TagsList []*Tag `type:"list"` +type metadataResource struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ResourceTag) String() string { +func (s Resource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResourceTag) GoString() string { +func (s Resource) GoString() string { return s.String() } // The request to CloudTrail to start logging AWS API calls for an account. type StartLoggingInput struct { - _ struct{} `type:"structure"` - - // Specifies the name or the CloudTrail ARN of the trail for which CloudTrail - // logs AWS API calls. The format of a trail ARN is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // The name of the trail for which CloudTrail logs AWS API calls. Name *string `type:"string" required:"true"` + + metadataStartLoggingInput `json:"-" xml:"-"` +} + +type metadataStartLoggingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1293,23 +707,14 @@ func (s StartLoggingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartLoggingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartLoggingInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returns the objects or data listed below if successful. Otherwise, returns // an error. type StartLoggingOutput struct { - _ struct{} `type:"structure"` + metadataStartLoggingOutput `json:"-" xml:"-"` +} + +type metadataStartLoggingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1325,13 +730,15 @@ func (s StartLoggingOutput) GoString() string { // Passes the request to CloudTrail to stop logging AWS API calls for the specified // account. type StopLoggingInput struct { - _ struct{} `type:"structure"` - - // Specifies the name or the CloudTrail ARN of the trail for which CloudTrail - // will stop logging AWS API calls. The format of a trail ARN is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // Communicates to CloudTrail the name of the trail for which to stop logging + // AWS API calls. Name *string `type:"string" required:"true"` + + metadataStopLoggingInput `json:"-" xml:"-"` +} + +type metadataStopLoggingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1344,129 +751,58 @@ func (s StopLoggingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopLoggingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopLoggingInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returns the objects or data listed below if successful. Otherwise, returns // an error. type StopLoggingOutput struct { - _ struct{} `type:"structure"` + metadataStopLoggingOutput `json:"-" xml:"-"` } -// String returns the string representation -func (s StopLoggingOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StopLoggingOutput) GoString() string { - return s.String() -} - -// A custom key-value pair associated with a resource such as a CloudTrail trail. -type Tag struct { - _ struct{} `type:"structure"` - - // The key in a key-value pair. The key must be must be no longer than 128 Unicode - // characters. The key must be unique for the resource to which it applies. - Key *string `type:"string" required:"true"` - - // The value in a key-value pair of a tag. The value must be no longer than - // 256 Unicode characters. - Value *string `type:"string"` +type metadataStopLoggingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Tag) String() string { +func (s StopLoggingOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Tag) GoString() string { +func (s StopLoggingOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The settings for a trail. type Trail struct { - _ struct{} `type:"structure"` - // Specifies an Amazon Resource Name (ARN), a unique identifier that represents // the log group to which CloudTrail logs will be delivered. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to - // a user's log group. + // a user’s log group. CloudWatchLogsRoleArn *string `type:"string"` - // The region in which the trail was created. - HomeRegion *string `type:"string"` - // Set to True to include AWS API calls from AWS global services such as IAM. // Otherwise, False. IncludeGlobalServiceEvents *bool `type:"boolean"` - // Specifies whether the trail belongs only to one region or exists in all regions. - IsMultiRegionTrail *bool `type:"boolean"` - - // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. - // The value is a fully specified ARN to a KMS key in the format: - // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - KmsKeyId *string `type:"string"` - - // Specifies whether log file validation is enabled. - LogFileValidationEnabled *bool `type:"boolean"` - - // Name of the trail set by calling CreateTrail. The maximum length is 128 characters. + // Name of the trail set by calling CreateTrail. Name *string `type:"string"` // Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. - // See Amazon S3 Bucket Naming Requirements (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html). S3BucketName *string `type:"string"` - // Specifies the Amazon S3 key prefix that comes after the name of the bucket - // you have designated for log file delivery. For more information, see Finding - // Your CloudTrail Log Files (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html).The - // maximum length is 200 characters. + // Value of the Amazon S3 prefix. S3KeyPrefix *string `type:"string"` - // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications - // when log files are delivered. The format of a topic ARN is: - // - // arn:aws:sns:us-east-1:123456789012:MyTopic - SnsTopicARN *string `type:"string"` + // Name of the existing Amazon SNS topic that CloudTrail uses to notify the + // account owner when new CloudTrail log files have been delivered. + SnsTopicName *string `type:"string"` - // Specifies the name of the Amazon SNS topic that CloudTrail uses to send notifications - // when log files are delivered. - SnsTopicName *string `deprecated:"true" type:"string"` + metadataTrail `json:"-" xml:"-"` +} - // Specifies the ARN of the trail. The format of a trail ARN is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail - TrailARN *string `type:"string"` +type metadataTrail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1481,89 +817,39 @@ func (s Trail) GoString() string { // Specifies settings to update for the trail. type UpdateTrailInput struct { - _ struct{} `type:"structure"` - // Specifies a log group name using an Amazon Resource Name (ARN), a unique // identifier that represents the log group to which CloudTrail logs will be // delivered. Not required unless you specify CloudWatchLogsRoleArn. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to - // a user's log group. + // a user’s log group. CloudWatchLogsRoleArn *string `type:"string"` - // Specifies whether log file validation is enabled. The default is false. - // - // When you disable log file integrity validation, the chain of digest files - // is broken after one hour. CloudTrail will not create digest files for log - // files that were delivered during a period in which log file integrity validation - // was disabled. For example, if you enable log file integrity validation at - // noon on January 1, disable it at noon on January 2, and re-enable it at noon - // on January 10, digest files will not be created for the log files delivered - // from noon on January 2 to noon on January 10. The same applies whenever you - // stop CloudTrail logging or delete a trail. - EnableLogFileValidation *bool `type:"boolean"` - // Specifies whether the trail is publishing events from global services such // as IAM to the log files. IncludeGlobalServiceEvents *bool `type:"boolean"` - // Specifies whether the trail applies only to the current region or to all - // regions. The default is false. If the trail exists only in the current region - // and this value is set to true, shadow trails (replications of the trail) - // will be created in the other regions. If the trail exists in all regions - // and this value is set to false, the trail will remain in the region where - // it was created, and its shadow trails in other regions will be deleted. - IsMultiRegionTrail *bool `type:"boolean"` - - // Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. - // The value can be a an alias name prefixed by "alias/", a fully specified - // ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. - // - // Examples: - // - // alias/MyAliasName - // - // arn:aws:kms:us-east-1:123456789012:alias/MyAliasName - // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // 12345678-1234-1234-1234-123456789012 - KmsKeyId *string `type:"string"` - - // Specifies the name of the trail or trail ARN. If Name is a trail name, the - // string 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) - // - // If Name is a trail ARN, it must be in the format: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // Specifies the name of the trail. Name *string `type:"string" required:"true"` // Specifies the name of the Amazon S3 bucket designated for publishing log - // files. See Amazon S3 Bucket Naming Requirements (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html). + // files. S3BucketName *string `type:"string"` - // Specifies the Amazon S3 key prefix that comes after the name of the bucket - // you have designated for log file delivery. For more information, see Finding - // Your CloudTrail Log Files (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html). - // The maximum length is 200 characters. + // Specifies the Amazon S3 key prefix that precedes the name of the bucket you + // have designated for log file delivery. S3KeyPrefix *string `type:"string"` // Specifies the name of the Amazon SNS topic defined for notification of log - // file delivery. The maximum length is 256 characters. + // file delivery. SnsTopicName *string `type:"string"` + + metadataUpdateTrailInput `json:"-" xml:"-"` +} + +type metadataUpdateTrailInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1576,48 +862,21 @@ func (s UpdateTrailInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateTrailInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateTrailInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returns the objects or data listed below if successful. Otherwise, returns // an error. type UpdateTrailOutput struct { - _ struct{} `type:"structure"` - // Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail // logs will be delivered. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to - // a user's log group. + // a user’s log group. CloudWatchLogsRoleArn *string `type:"string"` // Specifies whether the trail is publishing events from global services such // as IAM to the log files. IncludeGlobalServiceEvents *bool `type:"boolean"` - // Specifies whether the trail exists in one region or in all regions. - IsMultiRegionTrail *bool `type:"boolean"` - - // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. - // The value is a fully specified ARN to a KMS key in the format: - // - // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - KmsKeyId *string `type:"string"` - - // Specifies whether log file integrity validation is enabled. - LogFileValidationEnabled *bool `type:"boolean"` - // Specifies the name of the trail. Name *string `type:"string"` @@ -1625,26 +884,19 @@ type UpdateTrailOutput struct { // files. S3BucketName *string `type:"string"` - // Specifies the Amazon S3 key prefix that comes after the name of the bucket - // you have designated for log file delivery. For more information, see Finding - // Your CloudTrail Log Files (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html). + // Specifies the Amazon S3 key prefix that precedes the name of the bucket you + // have designated for log file delivery. S3KeyPrefix *string `type:"string"` - // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications - // when log files are delivered. The format of a topic ARN is: - // - // arn:aws:sns:us-east-1:123456789012:MyTopic - SnsTopicARN *string `type:"string"` - - // Specifies the name of the Amazon SNS topic that CloudTrail uses to send notifications - // when log files are delivered. - SnsTopicName *string `deprecated:"true" type:"string"` - - // Specifies the ARN of the trail that was updated. The format of a trail ARN - // is: - // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail - TrailARN *string `type:"string"` + // Specifies the name of the Amazon SNS topic defined for notification of log + // file delivery. + SnsTopicName *string `type:"string"` + + metadataUpdateTrailOutput `json:"-" xml:"-"` +} + +type metadataUpdateTrailOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go index 3100f701a..aeaa558e8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface.go @@ -10,10 +10,6 @@ import ( // CloudTrailAPI is the interface type for cloudtrail.CloudTrail. type CloudTrailAPI interface { - AddTagsRequest(*cloudtrail.AddTagsInput) (*request.Request, *cloudtrail.AddTagsOutput) - - AddTags(*cloudtrail.AddTagsInput) (*cloudtrail.AddTagsOutput, error) - CreateTrailRequest(*cloudtrail.CreateTrailInput) (*request.Request, *cloudtrail.CreateTrailOutput) CreateTrail(*cloudtrail.CreateTrailInput) (*cloudtrail.CreateTrailOutput, error) @@ -30,22 +26,10 @@ type CloudTrailAPI interface { GetTrailStatus(*cloudtrail.GetTrailStatusInput) (*cloudtrail.GetTrailStatusOutput, error) - ListPublicKeysRequest(*cloudtrail.ListPublicKeysInput) (*request.Request, *cloudtrail.ListPublicKeysOutput) - - ListPublicKeys(*cloudtrail.ListPublicKeysInput) (*cloudtrail.ListPublicKeysOutput, error) - - ListTagsRequest(*cloudtrail.ListTagsInput) (*request.Request, *cloudtrail.ListTagsOutput) - - ListTags(*cloudtrail.ListTagsInput) (*cloudtrail.ListTagsOutput, error) - LookupEventsRequest(*cloudtrail.LookupEventsInput) (*request.Request, *cloudtrail.LookupEventsOutput) LookupEvents(*cloudtrail.LookupEventsInput) (*cloudtrail.LookupEventsOutput, error) - RemoveTagsRequest(*cloudtrail.RemoveTagsInput) (*request.Request, *cloudtrail.RemoveTagsOutput) - - RemoveTags(*cloudtrail.RemoveTagsInput) (*cloudtrail.RemoveTagsOutput, error) - StartLoggingRequest(*cloudtrail.StartLoggingInput) (*request.Request, *cloudtrail.StartLoggingOutput) StartLogging(*cloudtrail.StartLoggingInput) (*cloudtrail.StartLoggingOutput, error) @@ -58,5 +42,3 @@ type CloudTrailAPI interface { UpdateTrail(*cloudtrail.UpdateTrailInput) (*cloudtrail.UpdateTrailOutput, error) } - -var _ CloudTrailAPI = (*cloudtrail.CloudTrail)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface_test.go new file mode 100644 index 000000000..0bda9e017 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudtrailiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/cloudtrail" + "github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*cloudtrailiface.CloudTrailAPI)(nil), cloudtrail.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go index 2a78c44e7..2e2627a3a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go @@ -8,51 +8,21 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudtrail" ) var _ time.Duration var _ bytes.Buffer -func ExampleCloudTrail_AddTags() { - svc := cloudtrail.New(session.New()) - - params := &cloudtrail.AddTagsInput{ - ResourceId: aws.String("String"), // Required - TagsList: []*cloudtrail.Tag{ - { // Required - Key: aws.String("String"), // Required - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.AddTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudTrail_CreateTrail() { - svc := cloudtrail.New(session.New()) + svc := cloudtrail.New(nil) params := &cloudtrail.CreateTrailInput{ Name: aws.String("String"), // Required S3BucketName: aws.String("String"), // Required CloudWatchLogsLogGroupArn: aws.String("String"), CloudWatchLogsRoleArn: aws.String("String"), - EnableLogFileValidation: aws.Bool(true), IncludeGlobalServiceEvents: aws.Bool(true), - IsMultiRegionTrail: aws.Bool(true), - KmsKeyId: aws.String("String"), S3KeyPrefix: aws.String("String"), SnsTopicName: aws.String("String"), } @@ -70,7 +40,7 @@ func ExampleCloudTrail_CreateTrail() { } func ExampleCloudTrail_DeleteTrail() { - svc := cloudtrail.New(session.New()) + svc := cloudtrail.New(nil) params := &cloudtrail.DeleteTrailInput{ Name: aws.String("String"), // Required @@ -89,10 +59,9 @@ func ExampleCloudTrail_DeleteTrail() { } func ExampleCloudTrail_DescribeTrails() { - svc := cloudtrail.New(session.New()) + svc := cloudtrail.New(nil) params := &cloudtrail.DescribeTrailsInput{ - IncludeShadowTrails: aws.Bool(true), TrailNameList: []*string{ aws.String("String"), // Required // More values... @@ -112,7 +81,7 @@ func ExampleCloudTrail_DescribeTrails() { } func ExampleCloudTrail_GetTrailStatus() { - svc := cloudtrail.New(session.New()) + svc := cloudtrail.New(nil) params := &cloudtrail.GetTrailStatusInput{ Name: aws.String("String"), // Required @@ -130,52 +99,8 @@ func ExampleCloudTrail_GetTrailStatus() { fmt.Println(resp) } -func ExampleCloudTrail_ListPublicKeys() { - svc := cloudtrail.New(session.New()) - - params := &cloudtrail.ListPublicKeysInput{ - EndTime: aws.Time(time.Now()), - NextToken: aws.String("String"), - StartTime: aws.Time(time.Now()), - } - resp, err := svc.ListPublicKeys(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudTrail_ListTags() { - svc := cloudtrail.New(session.New()) - - params := &cloudtrail.ListTagsInput{ - ResourceIdList: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - NextToken: aws.String("String"), - } - resp, err := svc.ListTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudTrail_LookupEvents() { - svc := cloudtrail.New(session.New()) + svc := cloudtrail.New(nil) params := &cloudtrail.LookupEventsInput{ EndTime: aws.Time(time.Now()), @@ -203,34 +128,8 @@ func ExampleCloudTrail_LookupEvents() { fmt.Println(resp) } -func ExampleCloudTrail_RemoveTags() { - svc := cloudtrail.New(session.New()) - - params := &cloudtrail.RemoveTagsInput{ - ResourceId: aws.String("String"), // Required - TagsList: []*cloudtrail.Tag{ - { // Required - Key: aws.String("String"), // Required - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.RemoveTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudTrail_StartLogging() { - svc := cloudtrail.New(session.New()) + svc := cloudtrail.New(nil) params := &cloudtrail.StartLoggingInput{ Name: aws.String("String"), // Required @@ -249,7 +148,7 @@ func ExampleCloudTrail_StartLogging() { } func ExampleCloudTrail_StopLogging() { - svc := cloudtrail.New(session.New()) + svc := cloudtrail.New(nil) params := &cloudtrail.StopLoggingInput{ Name: aws.String("String"), // Required @@ -268,16 +167,13 @@ func ExampleCloudTrail_StopLogging() { } func ExampleCloudTrail_UpdateTrail() { - svc := cloudtrail.New(session.New()) + svc := cloudtrail.New(nil) params := &cloudtrail.UpdateTrailInput{ Name: aws.String("String"), // Required CloudWatchLogsLogGroupArn: aws.String("String"), CloudWatchLogsRoleArn: aws.String("String"), - EnableLogFileValidation: aws.Bool(true), IncludeGlobalServiceEvents: aws.Bool(true), - IsMultiRegionTrail: aws.Bool(true), - KmsKeyId: aws.String("String"), S3BucketName: aws.String("String"), S3KeyPrefix: aws.String("String"), SnsTopicName: aws.String("String"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go index eddc99e3e..1f983fc68 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go @@ -4,11 +4,12 @@ package cloudtrail import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // This is the CloudTrail API Reference. It provides descriptions of actions, @@ -20,77 +21,52 @@ import ( // IP address, the request parameters, and the response elements returned by // the service. // -// As an alternative to the API, you can use one of the AWS SDKs, which consist -// of libraries and sample code for various programming languages and platforms -// (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way -// to create programmatic access to AWSCloudTrail. For example, the SDKs take -// care of cryptographically signing requests, managing errors, and retrying +// As an alternative to using the API, you can use one of the AWS SDKs, which +// consist of libraries and sample code for various programming languages and +// platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient +// way to create programmatic access to AWSCloudTrail. For example, the SDKs +// take care of cryptographically signing requests, managing errors, and retrying // requests automatically. For information about the AWS SDKs, including how // to download and install them, see the Tools for Amazon Web Services page -// (http://aws.amazon.com/tools/). -// -// See the CloudTrail User Guide for information about the data that is included -// with each AWS API call listed in the log files. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// (http://aws.amazon.com/tools/). See the CloudTrail User Guide for information +// about the data that is included with each AWS API call listed in the log +// files. type CloudTrail struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cloudtrail" - -// New creates a new instance of the CloudTrail client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CloudTrail client from just a session. -// svc := cloudtrail.New(mySession) -// -// // Create a CloudTrail client with additional configuration -// svc := cloudtrail.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudTrail { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudTrail { - svc := &CloudTrail{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2013-11-01", - JSONVersion: "1.1", - TargetPrefix: "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101", - }, - handlers, - ), +// New returns a new CloudTrail client. +func New(config *aws.Config) *CloudTrail { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "cloudtrail", + APIVersion: "2013-11-01", + JSONVersion: "1.1", + TargetPrefix: "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CloudTrail{service} } // newRequest creates a new request for a CloudTrail operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go index e36887cc1..3ac4490d7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/api.go @@ -4,13 +4,10 @@ package cloudwatch import ( - "fmt" "time" "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/private/protocol/query" ) const opDeleteAlarms = "DeleteAlarms" @@ -28,8 +25,6 @@ func (c *CloudWatch) DeleteAlarmsRequest(input *DeleteAlarmsInput) (req *request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteAlarmsOutput{} req.Data = output return @@ -71,9 +66,6 @@ func (c *CloudWatch) DescribeAlarmHistoryRequest(input *DescribeAlarmHistoryInpu // Retrieves history for the specified alarm. Filter alarms by date range or // item type. If an alarm name is not specified, Amazon CloudWatch returns histories // for all of the owner's alarms. -// -// Amazon CloudWatch retains the history of an alarm for two weeks, whether -// or not you delete the alarm. func (c *CloudWatch) DescribeAlarmHistory(input *DescribeAlarmHistoryInput) (*DescribeAlarmHistoryOutput, error) { req, out := c.DescribeAlarmHistoryRequest(input) err := req.Send() @@ -82,7 +74,6 @@ func (c *CloudWatch) DescribeAlarmHistory(input *DescribeAlarmHistoryInput) (*De func (c *CloudWatch) DescribeAlarmHistoryPages(input *DescribeAlarmHistoryInput, fn func(p *DescribeAlarmHistoryOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeAlarmHistoryRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeAlarmHistoryOutput), lastPage) }) @@ -125,7 +116,6 @@ func (c *CloudWatch) DescribeAlarms(input *DescribeAlarmsInput) (*DescribeAlarms func (c *CloudWatch) DescribeAlarmsPages(input *DescribeAlarmsInput, fn func(p *DescribeAlarmsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeAlarmsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeAlarmsOutput), lastPage) }) @@ -174,8 +164,6 @@ func (c *CloudWatch) DisableAlarmActionsRequest(input *DisableAlarmActionsInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DisableAlarmActionsOutput{} req.Data = output return @@ -204,8 +192,6 @@ func (c *CloudWatch) EnableAlarmActionsRequest(input *EnableAlarmActionsInput) ( } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &EnableAlarmActionsOutput{} req.Data = output return @@ -240,13 +226,12 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) // Gets statistics for the specified metric. // -// The maximum number of data points that can be queried is 50,850, whereas -// the maximum number of data points returned from a single GetMetricStatistics -// request is 1,440. If you make a request that generates more than 1,440 data -// points, Amazon CloudWatch returns an error. In such a case, you can alter -// the request by narrowing the specified time range or increasing the specified -// period. Alternatively, you can make multiple requests across adjacent time -// ranges. GetMetricStatistics does not return the data in chronological order. +// The maximum number of data points returned from a single GetMetricStatistics +// request is 1,440, wereas the maximum number of data points that can be queried +// is 50,850. If you make a request that generates more than 1,440 data points, +// Amazon CloudWatch returns an error. In such a case, you can alter the request +// by narrowing the specified time range or increasing the specified period. +// Alternatively, you can make multiple requests across adjacent time ranges. // // Amazon CloudWatch aggregates data points based on the length of the period // that you specify. For example, if you request statistics with a one-minute @@ -262,7 +247,7 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) // up to 35 instances over a span of 24 hours Statistics for up to 2 instances // over a span of 2 weeks For information about the namespace, metric names, // and dimensions that other Amazon Web Services products use to send metrics -// to CloudWatch, go to Amazon CloudWatch Metrics, Namespaces, and Dimensions +// to Cloudwatch, go to Amazon CloudWatch Metrics, Namespaces, and Dimensions // Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) // in the Amazon CloudWatch Developer Guide. func (c *CloudWatch) GetMetricStatistics(input *GetMetricStatisticsInput) (*GetMetricStatisticsOutput, error) { @@ -300,12 +285,6 @@ func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.R // Returns a list of valid metrics stored for the AWS account owner. Returned // metrics can be used with GetMetricStatistics to obtain statistical data for // a given metric. -// -// Up to 500 results are returned for any one call. To retrieve further results, -// use returned NextToken values with subsequent ListMetrics operations. If -// you create a metric with the PutMetricData action, allow up to fifteen minutes -// for the metric to appear in calls to the ListMetrics action. Statistics about -// the metric, however, are available sooner using GetMetricStatistics. func (c *CloudWatch) ListMetrics(input *ListMetricsInput) (*ListMetricsOutput, error) { req, out := c.ListMetricsRequest(input) err := req.Send() @@ -314,7 +293,6 @@ func (c *CloudWatch) ListMetrics(input *ListMetricsInput) (*ListMetricsOutput, e func (c *CloudWatch) ListMetricsPages(input *ListMetricsInput, fn func(p *ListMetricsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListMetricsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListMetricsOutput), lastPage) }) @@ -335,8 +313,6 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutMetricAlarmOutput{} req.Data = output return @@ -349,30 +325,6 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req // When this operation creates an alarm, the alarm state is immediately set // to INSUFFICIENT_DATA. The alarm is evaluated and its StateValue is set appropriately. // Any actions associated with the StateValue is then executed. -// -// When updating an existing alarm, its StateValue is left unchanged. If -// you are using an AWS Identity and Access Management (IAM) account to create -// or modify an alarm, you must have the following Amazon EC2 permissions: -// ec2:DescribeInstanceStatus and ec2:DescribeInstances for all alarms on Amazon -// EC2 instance status metrics. ec2:StopInstances for alarms with stop actions. -// ec2:TerminateInstances for alarms with terminate actions. ec2:DescribeInstanceRecoveryAttribute, -// and ec2:RecoverInstances for alarms with recover actions. If you have read/write -// permissions for Amazon CloudWatch but not for Amazon EC2, you can still create -// an alarm but the stop or terminate actions won't be performed on the Amazon -// EC2 instance. However, if you are later granted permission to use the associated -// Amazon EC2 APIs, the alarm actions you created earlier will be performed. -// For more information about IAM permissions, see Permissions and Policies -// (http://docs.aws.amazon.com//IAM/latest/UserGuide/PermissionsAndPolicies.html) -// in Using IAM. -// -// If you are using an IAM role (e.g., an Amazon EC2 instance profile), you -// cannot stop or terminate the instance using alarm actions. However, you can -// still see the alarm state and perform any other actions such as Amazon SNS -// notifications or Auto Scaling policies. -// -// If you are using temporary security credentials granted using the AWS Security -// Token Service (AWS STS), you cannot stop or terminate an Amazon EC2 instance -// using alarm actions. func (c *CloudWatch) PutMetricAlarm(input *PutMetricAlarmInput) (*PutMetricAlarmOutput, error) { req, out := c.PutMetricAlarmRequest(input) err := req.Send() @@ -394,29 +346,25 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutMetricDataOutput{} req.Data = output return } -// Publishes metric data points to Amazon CloudWatch. Amazon CloudWatch associates +// Publishes metric data points to Amazon CloudWatch. Amazon Cloudwatch associates // the data points with the specified metric. If the specified metric does not -// exist, Amazon CloudWatch creates the metric. When Amazon CloudWatch creates -// a metric, it can take up to fifteen minutes for the metric to appear in calls -// to the ListMetrics action. +// exist, Amazon CloudWatch creates the metric. It can take up to fifteen minutes +// for a new metric to appear in calls to the ListMetrics action. // -// Each PutMetricData request is limited to 8 KB in size for HTTP GET requests -// and is limited to 40 KB in size for HTTP POST requests. +// The size of a PutMetricData request is limited to 8 KB for HTTP GET requests +// and 40 KB for HTTP POST requests. // -// Although the Value parameter accepts numbers of type Double, Amazon CloudWatch -// rejects values that are either too small or too large. Values must be in -// the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 -// (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are -// not supported. Data that is timestamped 24 hours or more in the past may -// take in excess of 48 hours to become available from submission time using -// GetMetricStatistics. +// Although the Value parameter accepts numbers of type Double, Amazon CloudWatch +// truncates values with very large exponents. Values with base-10 exponents +// greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 +// exponents less than -130 (1 x 10^-130) are also truncated. Data that is +// timestamped 24 hours or more in the past may take in excess of 48 hours to +// become available from submission time using GetMetricStatistics. func (c *CloudWatch) PutMetricData(input *PutMetricDataInput) (*PutMetricDataOutput, error) { req, out := c.PutMetricDataRequest(input) err := req.Send() @@ -438,8 +386,6 @@ func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetAlarmStateOutput{} req.Data = output return @@ -447,13 +393,8 @@ func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *reque // Temporarily sets the state of an alarm. When the updated StateValue differs // from the previous value, the action configured for the appropriate state -// is invoked. For example, if your alarm is configured to send an Amazon SNS -// message when an alarm is triggered, temporarily changing the alarm's state -// to ALARM will send an Amazon SNS message. This is not a permanent change. -// The next periodic alarm check (in about a minute) will set the alarm to its -// actual state. Because the alarm state change happens very quickly, it is -// typically only visibile in the alarm's History tab in the Amazon CloudWatch -// console or through DescribeAlarmHistory. +// is invoked. This is not a permanent change. The next periodic alarm check +// (in about a minute) will set the alarm to its actual state. func (c *CloudWatch) SetAlarmState(input *SetAlarmStateInput) (*SetAlarmStateOutput, error) { req, out := c.SetAlarmStateRequest(input) err := req.Send() @@ -464,22 +405,30 @@ func (c *CloudWatch) SetAlarmState(input *SetAlarmStateInput) (*SetAlarmStateOut // history of a specific alarm. If you call DescribeAlarmHistory, Amazon CloudWatch // returns this data type as part of the DescribeAlarmHistoryResult data type. type AlarmHistoryItem struct { - _ struct{} `type:"structure"` - // The descriptive name for the alarm. - AlarmName *string `min:"1" type:"string"` + AlarmName *string `type:"string"` // Machine-readable data about the alarm in JSON format. - HistoryData *string `min:"1" type:"string"` + HistoryData *string `type:"string"` // The type of alarm history item. HistoryItemType *string `type:"string" enum:"HistoryItemType"` // A human-readable summary of the alarm history. - HistorySummary *string `min:"1" type:"string"` + HistorySummary *string `type:"string"` - // The time stamp for the alarm history item. + // The time stamp for the alarm history item. Amazon CloudWatch uses Coordinated + // Universal Time (UTC) when returning time stamps, which do not accommodate + // seasonal adjustments such as daylight savings time. For more information, + // see Time stamps (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp) + // in the Amazon CloudWatch Developer Guide. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataAlarmHistoryItem `json:"-" xml:"-"` +} + +type metadataAlarmHistoryItem struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -495,8 +444,6 @@ func (s AlarmHistoryItem) GoString() string { // The Datapoint data type encapsulates the statistical data that Amazon CloudWatch // computes from metric data. type Datapoint struct { - _ struct{} `type:"structure"` - // The average of metric values that correspond to the datapoint. Average *float64 `type:"double"` @@ -513,11 +460,21 @@ type Datapoint struct { // The sum of metric values used for the datapoint. Sum *float64 `type:"double"` - // The time stamp used for the datapoint. + // The time stamp used for the datapoint. Amazon CloudWatch uses Coordinated + // Universal Time (UTC) when returning time stamps, which do not accommodate + // seasonal adjustments such as daylight savings time. For more information, + // see Time stamps (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp) + // in the Amazon CloudWatch Developer Guide. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The standard unit used for the datapoint. Unit *string `type:"string" enum:"StandardUnit"` + + metadataDatapoint `json:"-" xml:"-"` +} + +type metadataDatapoint struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -531,10 +488,14 @@ func (s Datapoint) GoString() string { } type DeleteAlarmsInput struct { - _ struct{} `type:"structure"` - // A list of alarms to be deleted. AlarmNames []*string `type:"list" required:"true"` + + metadataDeleteAlarmsInput `json:"-" xml:"-"` +} + +type metadataDeleteAlarmsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -547,21 +508,12 @@ func (s DeleteAlarmsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAlarmsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAlarmsInput"} - if s.AlarmNames == nil { - invalidParams.Add(request.NewErrParamRequired("AlarmNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteAlarmsOutput struct { + metadataDeleteAlarmsOutput `json:"-" xml:"-"` } -type DeleteAlarmsOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteAlarmsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -575,10 +527,8 @@ func (s DeleteAlarmsOutput) GoString() string { } type DescribeAlarmHistoryInput struct { - _ struct{} `type:"structure"` - // The name of the alarm. - AlarmName *string `min:"1" type:"string"` + AlarmName *string `type:"string"` // The ending date to retrieve alarm history. EndDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -587,7 +537,7 @@ type DescribeAlarmHistoryInput struct { HistoryItemType *string `type:"string" enum:"HistoryItemType"` // The maximum number of alarm history records to retrieve. - MaxRecords *int64 `min:"1" type:"integer"` + MaxRecords *int64 `type:"integer"` // The token returned by a previous call to indicate that there is more data // available. @@ -595,6 +545,12 @@ type DescribeAlarmHistoryInput struct { // The starting date to retrieve alarm history. StartDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataDescribeAlarmHistoryInput `json:"-" xml:"-"` +} + +type metadataDescribeAlarmHistoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -607,31 +563,19 @@ func (s DescribeAlarmHistoryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAlarmHistoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAlarmHistoryInput"} - if s.AlarmName != nil && len(*s.AlarmName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AlarmName", 1)) - } - if s.MaxRecords != nil && *s.MaxRecords < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxRecords", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the DescribeAlarmHistory action. type DescribeAlarmHistoryOutput struct { - _ struct{} `type:"structure"` - // A list of alarm histories in JSON format. AlarmHistoryItems []*AlarmHistoryItem `type:"list"` // A string that marks the start of the next batch of returned results. NextToken *string `type:"string"` + + metadataDescribeAlarmHistoryOutput `json:"-" xml:"-"` +} + +type metadataDescribeAlarmHistoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -645,27 +589,29 @@ func (s DescribeAlarmHistoryOutput) GoString() string { } type DescribeAlarmsForMetricInput struct { - _ struct{} `type:"structure"` - - // The list of dimensions associated with the metric. If the metric has any - // associated dimensions, you must specify them in order for the DescribeAlarmsForMetric - // to succeed. + // The list of dimensions associated with the metric. Dimensions []*Dimension `type:"list"` // The name of the metric. - MetricName *string `min:"1" type:"string" required:"true"` + MetricName *string `type:"string" required:"true"` // The namespace of the metric. - Namespace *string `min:"1" type:"string" required:"true"` + Namespace *string `type:"string" required:"true"` // The period in seconds over which the statistic is applied. - Period *int64 `min:"60" type:"integer"` + Period *int64 `type:"integer"` // The statistic for the metric. Statistic *string `type:"string" enum:"Statistic"` // The unit for the metric. Unit *string `type:"string" enum:"StandardUnit"` + + metadataDescribeAlarmsForMetricInput `json:"-" xml:"-"` +} + +type metadataDescribeAlarmsForMetricInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -678,47 +624,16 @@ func (s DescribeAlarmsForMetricInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAlarmsForMetricInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAlarmsForMetricInput"} - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } - if s.MetricName != nil && len(*s.MetricName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) - } - if s.Namespace == nil { - invalidParams.Add(request.NewErrParamRequired("Namespace")) - } - if s.Namespace != nil && len(*s.Namespace) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) - } - if s.Period != nil && *s.Period < 60 { - invalidParams.Add(request.NewErrParamMinValue("Period", 60)) - } - if s.Dimensions != nil { - for i, v := range s.Dimensions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Dimensions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the DescribeAlarmsForMetric action. type DescribeAlarmsForMetricOutput struct { - _ struct{} `type:"structure"` - // A list of information for each alarm with the specified metric. MetricAlarms []*MetricAlarm `type:"list"` + + metadataDescribeAlarmsForMetricOutput `json:"-" xml:"-"` +} + +type metadataDescribeAlarmsForMetricOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -732,20 +647,18 @@ func (s DescribeAlarmsForMetricOutput) GoString() string { } type DescribeAlarmsInput struct { - _ struct{} `type:"structure"` - // The action name prefix. - ActionPrefix *string `min:"1" type:"string"` + ActionPrefix *string `type:"string"` // The alarm name prefix. AlarmNames cannot be specified if this parameter is // specified. - AlarmNamePrefix *string `min:"1" type:"string"` + AlarmNamePrefix *string `type:"string"` // A list of alarm names to retrieve information for. AlarmNames []*string `type:"list"` // The maximum number of alarm descriptions to retrieve. - MaxRecords *int64 `min:"1" type:"integer"` + MaxRecords *int64 `type:"integer"` // The token returned by a previous call to indicate that there is more data // available. @@ -753,6 +666,12 @@ type DescribeAlarmsInput struct { // The state value to be used in matching alarms. StateValue *string `type:"string" enum:"StateValue"` + + metadataDescribeAlarmsInput `json:"-" xml:"-"` +} + +type metadataDescribeAlarmsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -765,34 +684,19 @@ func (s DescribeAlarmsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAlarmsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAlarmsInput"} - if s.ActionPrefix != nil && len(*s.ActionPrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ActionPrefix", 1)) - } - if s.AlarmNamePrefix != nil && len(*s.AlarmNamePrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AlarmNamePrefix", 1)) - } - if s.MaxRecords != nil && *s.MaxRecords < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxRecords", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the DescribeAlarms action. type DescribeAlarmsOutput struct { - _ struct{} `type:"structure"` - // A list of information for the specified alarms. MetricAlarms []*MetricAlarm `type:"list"` // A string that marks the start of the next batch of returned results. NextToken *string `type:"string"` + + metadataDescribeAlarmsOutput `json:"-" xml:"-"` +} + +type metadataDescribeAlarmsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -810,13 +714,17 @@ func (s DescribeAlarmsOutput) GoString() string { // // For examples that use one or more dimensions, see PutMetricData. type Dimension struct { - _ struct{} `type:"structure"` - // The name of the dimension. - Name *string `min:"1" type:"string" required:"true"` + Name *string `type:"string" required:"true"` // The value representing the dimension measurement - Value *string `min:"1" type:"string" required:"true"` + Value *string `type:"string" required:"true"` + + metadataDimension `json:"-" xml:"-"` +} + +type metadataDimension struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -829,40 +737,19 @@ func (s Dimension) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Dimension) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Dimension"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The DimensionFilter data type is used to filter ListMetrics results. type DimensionFilter struct { - _ struct{} `type:"structure"` - // The dimension name to be matched. - Name *string `min:"1" type:"string" required:"true"` + Name *string `type:"string" required:"true"` // The value of the dimension to be matched. - // - // Specifying a Name without specifying a Value returns all values associated - // with that Name. - Value *string `min:"1" type:"string"` + Value *string `type:"string"` + + metadataDimensionFilter `json:"-" xml:"-"` +} + +type metadataDimensionFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -875,30 +762,15 @@ func (s DimensionFilter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DimensionFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DimensionFilter"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DisableAlarmActionsInput struct { - _ struct{} `type:"structure"` - // The names of the alarms to disable actions for. AlarmNames []*string `type:"list" required:"true"` + + metadataDisableAlarmActionsInput `json:"-" xml:"-"` +} + +type metadataDisableAlarmActionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -911,21 +783,12 @@ func (s DisableAlarmActionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableAlarmActionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableAlarmActionsInput"} - if s.AlarmNames == nil { - invalidParams.Add(request.NewErrParamRequired("AlarmNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DisableAlarmActionsOutput struct { + metadataDisableAlarmActionsOutput `json:"-" xml:"-"` } -type DisableAlarmActionsOutput struct { - _ struct{} `type:"structure"` +type metadataDisableAlarmActionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -939,10 +802,14 @@ func (s DisableAlarmActionsOutput) GoString() string { } type EnableAlarmActionsInput struct { - _ struct{} `type:"structure"` - // The names of the alarms to enable actions for. AlarmNames []*string `type:"list" required:"true"` + + metadataEnableAlarmActionsInput `json:"-" xml:"-"` +} + +type metadataEnableAlarmActionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -955,21 +822,12 @@ func (s EnableAlarmActionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableAlarmActionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableAlarmActionsInput"} - if s.AlarmNames == nil { - invalidParams.Add(request.NewErrParamRequired("AlarmNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type EnableAlarmActionsOutput struct { + metadataEnableAlarmActionsOutput `json:"-" xml:"-"` } -type EnableAlarmActionsOutput struct { - _ struct{} `type:"structure"` +type metadataEnableAlarmActionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -983,45 +841,44 @@ func (s EnableAlarmActionsOutput) GoString() string { } type GetMetricStatisticsInput struct { - _ struct{} `type:"structure"` - // A list of dimensions describing qualities of the metric. Dimensions []*Dimension `type:"list"` // The time stamp to use for determining the last datapoint to return. The value // specified is exclusive; results will include datapoints up to the time stamp - // specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z). + // specified. EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` // The name of the metric, with or without spaces. - MetricName *string `min:"1" type:"string" required:"true"` + MetricName *string `type:"string" required:"true"` // The namespace of the metric, with or without spaces. - Namespace *string `min:"1" type:"string" required:"true"` + Namespace *string `type:"string" required:"true"` // The granularity, in seconds, of the returned datapoints. Period must be at // least 60 seconds and must be a multiple of 60. The default value is 60. - Period *int64 `min:"60" type:"integer" required:"true"` + Period *int64 `type:"integer" required:"true"` // The time stamp to use for determining the first datapoint to return. The // value specified is inclusive; results include datapoints with the time stamp - // specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z). - // - // The specified start time is rounded down to the nearest value. Datapoints - // are returned for start times up to two weeks in the past. Specified start - // times that are more than two weeks in the past will not return datapoints - // for metrics that are older than two weeks. Data that is timestamped 24 hours - // or more in the past may take in excess of 48 hours to become available from - // submission time using GetMetricStatistics. + // specified. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` // The metric statistics to return. For information about specific statistics - // returned by GetMetricStatistics, see Statistics (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Statistic) + // returned by GetMetricStatistics, go to Statistics (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/index.html?CHAP_TerminologyandKeyConcepts.html#Statistic) // in the Amazon CloudWatch Developer Guide. - Statistics []*string `min:"1" type:"list" required:"true"` + // + // Valid Values: Average | Sum | SampleCount | Maximum | Minimum + Statistics []*string `type:"list" required:"true"` // The unit for the metric. Unit *string `type:"string" enum:"StandardUnit"` + + metadataGetMetricStatisticsInput `json:"-" xml:"-"` +} + +type metadataGetMetricStatisticsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1034,65 +891,19 @@ func (s GetMetricStatisticsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetMetricStatisticsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMetricStatisticsInput"} - if s.EndTime == nil { - invalidParams.Add(request.NewErrParamRequired("EndTime")) - } - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } - if s.MetricName != nil && len(*s.MetricName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) - } - if s.Namespace == nil { - invalidParams.Add(request.NewErrParamRequired("Namespace")) - } - if s.Namespace != nil && len(*s.Namespace) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) - } - if s.Period == nil { - invalidParams.Add(request.NewErrParamRequired("Period")) - } - if s.Period != nil && *s.Period < 60 { - invalidParams.Add(request.NewErrParamMinValue("Period", 60)) - } - if s.StartTime == nil { - invalidParams.Add(request.NewErrParamRequired("StartTime")) - } - if s.Statistics == nil { - invalidParams.Add(request.NewErrParamRequired("Statistics")) - } - if s.Statistics != nil && len(s.Statistics) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Statistics", 1)) - } - if s.Dimensions != nil { - for i, v := range s.Dimensions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Dimensions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the GetMetricStatistics action. type GetMetricStatisticsOutput struct { - _ struct{} `type:"structure"` - // The datapoints for the specified metric. Datapoints []*Datapoint `type:"list"` // A label describing the specified metric. Label *string `type:"string"` + + metadataGetMetricStatisticsOutput `json:"-" xml:"-"` +} + +type metadataGetMetricStatisticsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1106,20 +917,24 @@ func (s GetMetricStatisticsOutput) GoString() string { } type ListMetricsInput struct { - _ struct{} `type:"structure"` - // A list of dimensions to filter against. Dimensions []*DimensionFilter `type:"list"` // The name of the metric to filter against. - MetricName *string `min:"1" type:"string"` + MetricName *string `type:"string"` // The namespace to filter against. - Namespace *string `min:"1" type:"string"` + Namespace *string `type:"string"` // The token returned by a previous call to indicate that there is more data // available. NextToken *string `type:"string"` + + metadataListMetricsInput `json:"-" xml:"-"` +} + +type metadataListMetricsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1132,41 +947,19 @@ func (s ListMetricsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListMetricsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMetricsInput"} - if s.MetricName != nil && len(*s.MetricName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) - } - if s.Namespace != nil && len(*s.Namespace) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) - } - if s.Dimensions != nil { - for i, v := range s.Dimensions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Dimensions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the ListMetrics action. type ListMetricsOutput struct { - _ struct{} `type:"structure"` - // A list of metrics used to generate statistics for an AWS account. Metrics []*Metric `type:"list"` // A string that marks the start of the next batch of returned results. NextToken *string `type:"string"` + + metadataListMetricsOutput `json:"-" xml:"-"` +} + +type metadataListMetricsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1187,16 +980,20 @@ func (s ListMetricsOutput) GoString() string { // and latency. Both metrics are in the examples namespace. Both metrics have // two dimensions, InstanceID and InstanceType. type Metric struct { - _ struct{} `type:"structure"` - // A list of dimensions associated with the metric. Dimensions []*Dimension `type:"list"` // The name of the metric. - MetricName *string `min:"1" type:"string"` + MetricName *string `type:"string"` // The namespace of the metric. - Namespace *string `min:"1" type:"string"` + Namespace *string `type:"string"` + + metadataMetric `json:"-" xml:"-"` +} + +type metadataMetric struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1212,28 +1009,31 @@ func (s Metric) GoString() string { // The MetricAlarm data type represents an alarm. You can use PutMetricAlarm // to create or update an alarm. type MetricAlarm struct { - _ struct{} `type:"structure"` - // Indicates whether actions should be executed during any changes to the alarm's // state. ActionsEnabled *bool `type:"boolean"` // The list of actions to execute when this alarm transitions into an ALARM // state from any other state. Each action is specified as an Amazon Resource - // Name (ARN). + // Number (ARN). Currently the only actions supported are publishing to an Amazon + // SNS topic and triggering an Auto Scaling policy. AlarmActions []*string `type:"list"` // The Amazon Resource Name (ARN) of the alarm. - AlarmArn *string `min:"1" type:"string"` + AlarmArn *string `type:"string"` - // The time stamp of the last update to the alarm configuration. + // The time stamp of the last update to the alarm configuration. Amazon CloudWatch + // uses Coordinated Universal Time (UTC) when returning time stamps, which do + // not accommodate seasonal adjustments such as daylight savings time. For more + // information, see Time stamps (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp) + // in the Amazon CloudWatch Developer Guide. AlarmConfigurationUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The description for the alarm. AlarmDescription *string `type:"string"` // The name of the alarm. - AlarmName *string `min:"1" type:"string"` + AlarmName *string `type:"string"` // The arithmetic operation to use when comparing the specified Statistic and // Threshold. The specified Statistic value is used as the first operand. @@ -1243,28 +1043,30 @@ type MetricAlarm struct { Dimensions []*Dimension `type:"list"` // The number of periods over which data is compared to the specified threshold. - EvaluationPeriods *int64 `min:"1" type:"integer"` + EvaluationPeriods *int64 `type:"integer"` // The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA // state from any other state. Each action is specified as an Amazon Resource - // Name (ARN). + // Number (ARN). Currently the only actions supported are publishing to an Amazon + // SNS topic or triggering an Auto Scaling policy. // // The current WSDL lists this attribute as UnknownActions. InsufficientDataActions []*string `type:"list"` // The name of the alarm's metric. - MetricName *string `min:"1" type:"string"` + MetricName *string `type:"string"` // The namespace of alarm's associated metric. - Namespace *string `min:"1" type:"string"` + Namespace *string `type:"string"` // The list of actions to execute when this alarm transitions into an OK state - // from any other state. Each action is specified as an Amazon Resource Name - // (ARN). + // from any other state. Each action is specified as an Amazon Resource Number + // (ARN). Currently the only actions supported are publishing to an Amazon SNS + // topic and triggering an Auto Scaling policy. OKActions []*string `type:"list"` // The period in seconds over which the statistic is applied. - Period *int64 `min:"60" type:"integer"` + Period *int64 `type:"integer"` // A human-readable explanation for the alarm's state. StateReason *string `type:"string"` @@ -1272,7 +1074,11 @@ type MetricAlarm struct { // An explanation for the alarm's state in machine-readable JSON format StateReasonData *string `type:"string"` - // The time stamp of the last update to the alarm's state. + // The time stamp of the last update to the alarm's state. Amazon CloudWatch + // uses Coordinated Universal Time (UTC) when returning time stamps, which do + // not accommodate seasonal adjustments such as daylight savings time. For more + // information, see Time stamps (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp) + // in the Amazon CloudWatch Developer Guide. StateUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The state value for the alarm. @@ -1286,6 +1092,12 @@ type MetricAlarm struct { // The unit of the alarm's associated metric. Unit *string `type:"string" enum:"StandardUnit"` + + metadataMetricAlarm `json:"-" xml:"-"` +} + +type metadataMetricAlarm struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1302,21 +1114,22 @@ func (s MetricAlarm) GoString() string { // to either create a new metric or add new values to be aggregated into an // existing metric. type MetricDatum struct { - _ struct{} `type:"structure"` - // A list of dimensions associated with the metric. Note, when using the Dimensions // value in a query, you need to append .member.N to it (e.g., Dimensions.member.N). Dimensions []*Dimension `type:"list"` // The name of the metric. - MetricName *string `min:"1" type:"string" required:"true"` + MetricName *string `type:"string" required:"true"` // A set of statistical values describing the metric. StatisticValues *StatisticSet `type:"structure"` - // The time stamp used for the metric in ISO 8601 Universal Coordinated Time - // (UTC) format. If not specified, the default value is set to the time the - // metric data was received. + // The time stamp used for the metric. If not specified, the default value is + // set to the time the metric data was received. Amazon CloudWatch uses Coordinated + // Universal Time (UTC) when returning time stamps, which do not accommodate + // seasonal adjustments such as daylight savings time. For more information, + // see Time stamps (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp) + // in the Amazon CloudWatch Developer Guide. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The unit of the metric. @@ -1325,11 +1138,16 @@ type MetricDatum struct { // The value for the metric. // // Although the Value parameter accepts numbers of type Double, Amazon CloudWatch - // rejects values that are either too small or too large. Values must be in - // the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 - // (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are - // not supported. + // truncates values with very large exponents. Values with base-10 exponents + // greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 + // exponents less than -130 (1 x 10^-130) are also truncated. Value *float64 `type:"double"` + + metadataMetricDatum `json:"-" xml:"-"` +} + +type metadataMetricDatum struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1342,59 +1160,15 @@ func (s MetricDatum) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MetricDatum) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MetricDatum"} - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } - if s.MetricName != nil && len(*s.MetricName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) - } - if s.Dimensions != nil { - for i, v := range s.Dimensions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Dimensions", i), err.(request.ErrInvalidParams)) - } - } - } - if s.StatisticValues != nil { - if err := s.StatisticValues.Validate(); err != nil { - invalidParams.AddNested("StatisticValues", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PutMetricAlarmInput struct { - _ struct{} `type:"structure"` - // Indicates whether or not actions should be executed during any changes to // the alarm's state. ActionsEnabled *bool `type:"boolean"` // The list of actions to execute when this alarm transitions into an ALARM // state from any other state. Each action is specified as an Amazon Resource - // Name (ARN). - // - // Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region - // (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover - // - // Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 - // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 - // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - // - // Note: You must create at least one stop, terminate, or reboot alarm using - // the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role - // for the first time. After this IAM role is created, you can create stop, - // terminate, or reboot alarms using the CLI. + // Number (ARN). Currently the only action supported is publishing to an Amazon + // SNS topic or an Amazon Auto Scaling policy. AlarmActions []*string `type:"list"` // The description for the alarm. @@ -1402,7 +1176,7 @@ type PutMetricAlarmInput struct { // The descriptive name for the alarm. This name must be unique within the user's // AWS account - AlarmName *string `min:"1" type:"string" required:"true"` + AlarmName *string `type:"string" required:"true"` // The arithmetic operation to use when comparing the specified Statistic and // Threshold. The specified Statistic value is used as the first operand. @@ -1412,50 +1186,28 @@ type PutMetricAlarmInput struct { Dimensions []*Dimension `type:"list"` // The number of periods over which data is compared to the specified threshold. - EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"` + EvaluationPeriods *int64 `type:"integer" required:"true"` // The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA // state from any other state. Each action is specified as an Amazon Resource - // Name (ARN). - // - // Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region - // (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover - // - // Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 - // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 - // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - // - // Note: You must create at least one stop, terminate, or reboot alarm using - // the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role - // for the first time. After this IAM role is created, you can create stop, - // terminate, or reboot alarms using the CLI. + // Number (ARN). Currently the only action supported is publishing to an Amazon + // SNS topic or an Amazon Auto Scaling policy. InsufficientDataActions []*string `type:"list"` // The name for the alarm's associated metric. - MetricName *string `min:"1" type:"string" required:"true"` + MetricName *string `type:"string" required:"true"` // The namespace for the alarm's associated metric. - Namespace *string `min:"1" type:"string" required:"true"` + Namespace *string `type:"string" required:"true"` // The list of actions to execute when this alarm transitions into an OK state - // from any other state. Each action is specified as an Amazon Resource Name - // (ARN). - // - // Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region - // (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover - // - // Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 - // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 - // | arn:aws:swf:us-east-1:{customer-account}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 - // - // Note: You must create at least one stop, terminate, or reboot alarm using - // the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role - // for the first time. After this IAM role is created, you can create stop, - // terminate, or reboot alarms using the CLI. + // from any other state. Each action is specified as an Amazon Resource Number + // (ARN). Currently the only action supported is publishing to an Amazon SNS + // topic or an Amazon Auto Scaling policy. OKActions []*string `type:"list"` // The period in seconds over which the specified statistic is applied. - Period *int64 `min:"60" type:"integer" required:"true"` + Period *int64 `type:"integer" required:"true"` // The statistic to apply to the alarm's associated metric. Statistic *string `type:"string" required:"true" enum:"Statistic"` @@ -1463,17 +1215,14 @@ type PutMetricAlarmInput struct { // The value against which the specified statistic is compared. Threshold *float64 `type:"double" required:"true"` - // The statistic's unit of measure. For example, the units for the Amazon EC2 - // NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that - // an instance receives on all network interfaces. You can also specify a unit - // when you create a custom metric. Units help provide conceptual meaning to - // your data. Metric data points that specify a unit of measure, such as Percent, - // are aggregated separately. - // - // Note: If you specify a unit, you must use a unit that is appropriate for - // the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck - // in the INSUFFICIENT DATA state. + // The unit for the alarm's associated metric. Unit *string `type:"string" enum:"StandardUnit"` + + metadataPutMetricAlarmInput `json:"-" xml:"-"` +} + +type metadataPutMetricAlarmInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1486,67 +1235,12 @@ func (s PutMetricAlarmInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutMetricAlarmInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutMetricAlarmInput"} - if s.AlarmName == nil { - invalidParams.Add(request.NewErrParamRequired("AlarmName")) - } - if s.AlarmName != nil && len(*s.AlarmName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AlarmName", 1)) - } - if s.ComparisonOperator == nil { - invalidParams.Add(request.NewErrParamRequired("ComparisonOperator")) - } - if s.EvaluationPeriods == nil { - invalidParams.Add(request.NewErrParamRequired("EvaluationPeriods")) - } - if s.EvaluationPeriods != nil && *s.EvaluationPeriods < 1 { - invalidParams.Add(request.NewErrParamMinValue("EvaluationPeriods", 1)) - } - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } - if s.MetricName != nil && len(*s.MetricName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) - } - if s.Namespace == nil { - invalidParams.Add(request.NewErrParamRequired("Namespace")) - } - if s.Namespace != nil && len(*s.Namespace) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) - } - if s.Period == nil { - invalidParams.Add(request.NewErrParamRequired("Period")) - } - if s.Period != nil && *s.Period < 60 { - invalidParams.Add(request.NewErrParamMinValue("Period", 60)) - } - if s.Statistic == nil { - invalidParams.Add(request.NewErrParamRequired("Statistic")) - } - if s.Threshold == nil { - invalidParams.Add(request.NewErrParamRequired("Threshold")) - } - if s.Dimensions != nil { - for i, v := range s.Dimensions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Dimensions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutMetricAlarmOutput struct { + metadataPutMetricAlarmOutput `json:"-" xml:"-"` } -type PutMetricAlarmOutput struct { - _ struct{} `type:"structure"` +type metadataPutMetricAlarmOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1560,17 +1254,17 @@ func (s PutMetricAlarmOutput) GoString() string { } type PutMetricDataInput struct { - _ struct{} `type:"structure"` - // A list of data describing the metric. MetricData []*MetricDatum `type:"list" required:"true"` // The namespace for the metric data. - // - // You cannot specify a namespace that begins with "AWS/". Namespaces that - // begin with "AWS/" are reserved for other Amazon Web Services products that - // send metrics to Amazon CloudWatch. - Namespace *string `min:"1" type:"string" required:"true"` + Namespace *string `type:"string" required:"true"` + + metadataPutMetricDataInput `json:"-" xml:"-"` +} + +type metadataPutMetricDataInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1583,37 +1277,12 @@ func (s PutMetricDataInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutMetricDataInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutMetricDataInput"} - if s.MetricData == nil { - invalidParams.Add(request.NewErrParamRequired("MetricData")) - } - if s.Namespace == nil { - invalidParams.Add(request.NewErrParamRequired("Namespace")) - } - if s.Namespace != nil && len(*s.Namespace) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) - } - if s.MetricData != nil { - for i, v := range s.MetricData { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricData", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutMetricDataOutput struct { + metadataPutMetricDataOutput `json:"-" xml:"-"` } -type PutMetricDataOutput struct { - _ struct{} `type:"structure"` +type metadataPutMetricDataOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1627,11 +1296,9 @@ func (s PutMetricDataOutput) GoString() string { } type SetAlarmStateInput struct { - _ struct{} `type:"structure"` - // The descriptive name for the alarm. This name must be unique within the user's // AWS account. The maximum length is 255 characters. - AlarmName *string `min:"1" type:"string" required:"true"` + AlarmName *string `type:"string" required:"true"` // The reason that this alarm is set to this specific state (in human-readable // text format) @@ -1643,6 +1310,12 @@ type SetAlarmStateInput struct { // The value of the state. StateValue *string `type:"string" required:"true" enum:"StateValue"` + + metadataSetAlarmStateInput `json:"-" xml:"-"` +} + +type metadataSetAlarmStateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1655,30 +1328,12 @@ func (s SetAlarmStateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetAlarmStateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetAlarmStateInput"} - if s.AlarmName == nil { - invalidParams.Add(request.NewErrParamRequired("AlarmName")) - } - if s.AlarmName != nil && len(*s.AlarmName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AlarmName", 1)) - } - if s.StateReason == nil { - invalidParams.Add(request.NewErrParamRequired("StateReason")) - } - if s.StateValue == nil { - invalidParams.Add(request.NewErrParamRequired("StateValue")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetAlarmStateOutput struct { + metadataSetAlarmStateOutput `json:"-" xml:"-"` } -type SetAlarmStateOutput struct { - _ struct{} `type:"structure"` +type metadataSetAlarmStateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1694,8 +1349,6 @@ func (s SetAlarmStateOutput) GoString() string { // The StatisticSet data type describes the StatisticValues component of MetricDatum, // and represents a set of statistics that describes a specific metric. type StatisticSet struct { - _ struct{} `type:"structure"` - // The maximum value of the sample set. Maximum *float64 `type:"double" required:"true"` @@ -1707,6 +1360,12 @@ type StatisticSet struct { // The sum of values for the sample set. Sum *float64 `type:"double" required:"true"` + + metadataStatisticSet `json:"-" xml:"-"` +} + +type metadataStatisticSet struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1719,28 +1378,6 @@ func (s StatisticSet) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StatisticSet) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StatisticSet"} - if s.Maximum == nil { - invalidParams.Add(request.NewErrParamRequired("Maximum")) - } - if s.Minimum == nil { - invalidParams.Add(request.NewErrParamRequired("Minimum")) - } - if s.SampleCount == nil { - invalidParams.Add(request.NewErrParamRequired("SampleCount")) - } - if s.Sum == nil { - invalidParams.Add(request.NewErrParamRequired("Sum")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - const ( // @enum ComparisonOperator ComparisonOperatorGreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go index 140dc9e98..d73332aa0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface.go @@ -60,5 +60,3 @@ type CloudWatchAPI interface { SetAlarmState(*cloudwatch.SetAlarmStateInput) (*cloudwatch.SetAlarmStateOutput, error) } - -var _ CloudWatchAPI = (*cloudwatch.CloudWatch)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface_test.go new file mode 100644 index 000000000..cdc377249 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudwatchiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/cloudwatch" + "github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*cloudwatchiface.CloudWatchAPI)(nil), cloudwatch.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go index 07b010852..fbfc3f516 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudwatch" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCloudWatch_DeleteAlarms() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.DeleteAlarmsInput{ AlarmNames: []*string{ // Required @@ -38,7 +37,7 @@ func ExampleCloudWatch_DeleteAlarms() { } func ExampleCloudWatch_DescribeAlarmHistory() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.DescribeAlarmHistoryInput{ AlarmName: aws.String("AlarmName"), @@ -62,7 +61,7 @@ func ExampleCloudWatch_DescribeAlarmHistory() { } func ExampleCloudWatch_DescribeAlarms() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.DescribeAlarmsInput{ ActionPrefix: aws.String("ActionPrefix"), @@ -89,7 +88,7 @@ func ExampleCloudWatch_DescribeAlarms() { } func ExampleCloudWatch_DescribeAlarmsForMetric() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.DescribeAlarmsForMetricInput{ MetricName: aws.String("MetricName"), // Required @@ -119,7 +118,7 @@ func ExampleCloudWatch_DescribeAlarmsForMetric() { } func ExampleCloudWatch_DisableAlarmActions() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.DisableAlarmActionsInput{ AlarmNames: []*string{ // Required @@ -141,7 +140,7 @@ func ExampleCloudWatch_DisableAlarmActions() { } func ExampleCloudWatch_EnableAlarmActions() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.EnableAlarmActionsInput{ AlarmNames: []*string{ // Required @@ -163,7 +162,7 @@ func ExampleCloudWatch_EnableAlarmActions() { } func ExampleCloudWatch_GetMetricStatistics() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.GetMetricStatisticsInput{ EndTime: aws.Time(time.Now()), // Required @@ -198,7 +197,7 @@ func ExampleCloudWatch_GetMetricStatistics() { } func ExampleCloudWatch_ListMetrics() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.ListMetricsInput{ Dimensions: []*cloudwatch.DimensionFilter{ @@ -226,7 +225,7 @@ func ExampleCloudWatch_ListMetrics() { } func ExampleCloudWatch_PutMetricAlarm() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.PutMetricAlarmInput{ AlarmName: aws.String("AlarmName"), // Required @@ -274,7 +273,7 @@ func ExampleCloudWatch_PutMetricAlarm() { } func ExampleCloudWatch_PutMetricData() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.PutMetricDataInput{ MetricData: []*cloudwatch.MetricDatum{ // Required @@ -315,7 +314,7 @@ func ExampleCloudWatch_PutMetricData() { } func ExampleCloudWatch_SetAlarmState() { - svc := cloudwatch.New(session.New()) + svc := cloudwatch.New(nil) params := &cloudwatch.SetAlarmStateInput{ AlarmName: aws.String("AlarmName"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/service.go index 342498f0e..a8093bcb3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatch/service.go @@ -4,86 +4,88 @@ package cloudwatch import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -// Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the -// applications you run on AWS in real-time. You can use CloudWatch to collect -// and track metrics, which are the variables you want to measure for your resources -// and applications. +// This is the Amazon CloudWatch API Reference. This guide provides detailed +// information about Amazon CloudWatch actions, data types, parameters, and +// errors. For detailed information about Amazon CloudWatch features and their +// associated API calls, go to the Amazon CloudWatch Developer Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide). // -// CloudWatch alarms send notifications or automatically make changes to the -// resources you are monitoring based on rules that you define. For example, -// you can monitor the CPU usage and disk reads and writes of your Amazon Elastic -// Compute Cloud (Amazon EC2) instances and then use this data to determine -// whether you should launch additional instances to handle increased load. -// You can also use this data to stop under-used instances to save money. +// Amazon CloudWatch is a web service that enables you to publish, monitor, +// and manage various metrics, as well as configure alarm actions based on data +// from metrics. For more information about this product go to http://aws.amazon.com/cloudwatch +// (http://aws.amazon.com/cloudwatch). // -// In addition to monitoring the built-in metrics that come with AWS, you can -// monitor your own custom metrics. With CloudWatch, you gain system-wide visibility -// into resource utilization, application performance, and operational health. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// For information about the namespace, metric names, and dimensions that +// other Amazon Web Services products use to send metrics to Cloudwatch, go +// to Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) +// in the Amazon CloudWatch Developer Guide. +// +// Use the following links to get started using the Amazon CloudWatch API Reference: +// +// Actions (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Operations.html): +// An alphabetical list of all Amazon CloudWatch actions. Data Types (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Types.html): +// An alphabetical list of all Amazon CloudWatch data types. Common Parameters +// (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CommonParameters.html): +// Parameters that all Query actions can use. Common Errors (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CommonErrors.html): +// Client and server errors that all actions can return. Regions and Endpoints +// (http://docs.aws.amazon.com/general/latest/gr/index.html?rande.html): Itemized +// regions and endpoints for all AWS products. WSDL Location (http://monitoring.amazonaws.com/doc/2010-08-01/CloudWatch.wsdl): +// http://monitoring.amazonaws.com/doc/2010-08-01/CloudWatch.wsdl In addition +// to using the Amazon CloudWatch API, you can also use the following SDKs and +// third-party libraries to access Amazon CloudWatch programmatically. +// +// AWS SDK for Java Documentation (http://aws.amazon.com/documentation/sdkforjava/) +// AWS SDK for .NET Documentation (http://aws.amazon.com/documentation/sdkfornet/) +// AWS SDK for PHP Documentation (http://aws.amazon.com/documentation/sdkforphp/) +// AWS SDK for Ruby Documentation (http://aws.amazon.com/documentation/sdkforruby/) +// Developers in the AWS developer community also provide their own libraries, +// which you can find at the following AWS developer centers: +// +// AWS Java Developer Center (http://aws.amazon.com/java/) AWS PHP Developer +// Center (http://aws.amazon.com/php/) AWS Python Developer Center (http://aws.amazon.com/python/) +// AWS Ruby Developer Center (http://aws.amazon.com/ruby/) AWS Windows and .NET +// Developer Center (http://aws.amazon.com/net/) type CloudWatch struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "monitoring" - -// New creates a new instance of the CloudWatch client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CloudWatch client from just a session. -// svc := cloudwatch.New(mySession) -// -// // Create a CloudWatch client with additional configuration -// svc := cloudwatch.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudWatch { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudWatch { - svc := &CloudWatch{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2010-08-01", - }, - handlers, - ), +// New returns a new CloudWatch client. +func New(config *aws.Config) *CloudWatch { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "monitoring", + APIVersion: "2010-08-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CloudWatch{service} } // newRequest creates a new request for a CloudWatch operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go deleted file mode 100644 index bd35b89e8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/api.go +++ /dev/null @@ -1,1370 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package cloudwatchevents provides a client for Amazon CloudWatch Events. -package cloudwatchevents - -import ( - "fmt" - "time" - - "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/private/protocol/jsonrpc" -) - -const opDeleteRule = "DeleteRule" - -// DeleteRuleRequest generates a request for the DeleteRule operation. -func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) { - op := &request.Operation{ - Name: opDeleteRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteRuleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteRuleOutput{} - req.Data = output - return -} - -// Deletes a rule. You must remove all targets from a rule using RemoveTargets -// before you can delete the rule. -// -// Note: When you delete a rule, incoming events might still continue to match -// to the deleted rule. Please allow a short period of time for changes to take -// effect. -func (c *CloudWatchEvents) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { - req, out := c.DeleteRuleRequest(input) - err := req.Send() - return out, err -} - -const opDescribeRule = "DescribeRule" - -// DescribeRuleRequest generates a request for the DescribeRule operation. -func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *request.Request, output *DescribeRuleOutput) { - op := &request.Operation{ - Name: opDescribeRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeRuleOutput{} - req.Data = output - return -} - -// Describes the details of the specified rule. -func (c *CloudWatchEvents) DescribeRule(input *DescribeRuleInput) (*DescribeRuleOutput, error) { - req, out := c.DescribeRuleRequest(input) - err := req.Send() - return out, err -} - -const opDisableRule = "DisableRule" - -// DisableRuleRequest generates a request for the DisableRule operation. -func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *request.Request, output *DisableRuleOutput) { - op := &request.Operation{ - Name: opDisableRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DisableRuleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisableRuleOutput{} - req.Data = output - return -} - -// Disables a rule. A disabled rule won't match any events, and won't self-trigger -// if it has a schedule expression. -// -// Note: When you disable a rule, incoming events might still continue to -// match to the disabled rule. Please allow a short period of time for changes -// to take effect. -func (c *CloudWatchEvents) DisableRule(input *DisableRuleInput) (*DisableRuleOutput, error) { - req, out := c.DisableRuleRequest(input) - err := req.Send() - return out, err -} - -const opEnableRule = "EnableRule" - -// EnableRuleRequest generates a request for the EnableRule operation. -func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *request.Request, output *EnableRuleOutput) { - op := &request.Operation{ - Name: opEnableRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &EnableRuleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableRuleOutput{} - req.Data = output - return -} - -// Enables a rule. If the rule does not exist, the operation fails. -// -// Note: When you enable a rule, incoming events might not immediately start -// matching to a newly enabled rule. Please allow a short period of time for -// changes to take effect. -func (c *CloudWatchEvents) EnableRule(input *EnableRuleInput) (*EnableRuleOutput, error) { - req, out := c.EnableRuleRequest(input) - err := req.Send() - return out, err -} - -const opListRuleNamesByTarget = "ListRuleNamesByTarget" - -// ListRuleNamesByTargetRequest generates a request for the ListRuleNamesByTarget operation. -func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTargetInput) (req *request.Request, output *ListRuleNamesByTargetOutput) { - op := &request.Operation{ - Name: opListRuleNamesByTarget, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListRuleNamesByTargetInput{} - } - - req = c.newRequest(op, input, output) - output = &ListRuleNamesByTargetOutput{} - req.Data = output - return -} - -// Lists the names of the rules that the given target is put to. You can see -// which of the rules in Amazon CloudWatch Events can invoke a specific target -// in your account. If you have more rules in your account than the given limit, -// the results will be paginated. In that case, use the next token returned -// in the response and repeat ListRulesByTarget until the NextToken in the response -// is returned as null. -func (c *CloudWatchEvents) ListRuleNamesByTarget(input *ListRuleNamesByTargetInput) (*ListRuleNamesByTargetOutput, error) { - req, out := c.ListRuleNamesByTargetRequest(input) - err := req.Send() - return out, err -} - -const opListRules = "ListRules" - -// ListRulesRequest generates a request for the ListRules operation. -func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request.Request, output *ListRulesOutput) { - op := &request.Operation{ - Name: opListRules, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListRulesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListRulesOutput{} - req.Data = output - return -} - -// Lists the Amazon CloudWatch Events rules in your account. You can either -// list all the rules or you can provide a prefix to match to the rule names. -// If you have more rules in your account than the given limit, the results -// will be paginated. In that case, use the next token returned in the response -// and repeat ListRules until the NextToken in the response is returned as null. -func (c *CloudWatchEvents) ListRules(input *ListRulesInput) (*ListRulesOutput, error) { - req, out := c.ListRulesRequest(input) - err := req.Send() - return out, err -} - -const opListTargetsByRule = "ListTargetsByRule" - -// ListTargetsByRuleRequest generates a request for the ListTargetsByRule operation. -func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInput) (req *request.Request, output *ListTargetsByRuleOutput) { - op := &request.Operation{ - Name: opListTargetsByRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListTargetsByRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTargetsByRuleOutput{} - req.Data = output - return -} - -// Lists of targets assigned to the rule. -func (c *CloudWatchEvents) ListTargetsByRule(input *ListTargetsByRuleInput) (*ListTargetsByRuleOutput, error) { - req, out := c.ListTargetsByRuleRequest(input) - err := req.Send() - return out, err -} - -const opPutEvents = "PutEvents" - -// PutEventsRequest generates a request for the PutEvents operation. -func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request.Request, output *PutEventsOutput) { - op := &request.Operation{ - Name: opPutEvents, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutEventsInput{} - } - - req = c.newRequest(op, input, output) - output = &PutEventsOutput{} - req.Data = output - return -} - -// Sends custom events to Amazon CloudWatch Events so that they can be matched -// to rules. -func (c *CloudWatchEvents) PutEvents(input *PutEventsInput) (*PutEventsOutput, error) { - req, out := c.PutEventsRequest(input) - err := req.Send() - return out, err -} - -const opPutRule = "PutRule" - -// PutRuleRequest generates a request for the PutRule operation. -func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Request, output *PutRuleOutput) { - op := &request.Operation{ - Name: opPutRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &PutRuleOutput{} - req.Data = output - return -} - -// Creates or updates a rule. Rules are enabled by default, or based on value -// of the State parameter. You can disable a rule using DisableRule. -// -// Note: When you create or update a rule, incoming events might not immediately -// start matching to new or updated rules. Please allow a short period of time -// for changes to take effect. -// -// A rule must contain at least an EventPattern or ScheduleExpression. Rules -// with EventPatterns are triggered when a matching event is observed. Rules -// with ScheduleExpressions self-trigger based on the given schedule. A rule -// can have both an EventPattern and a ScheduleExpression, in which case the -// rule will trigger on matching events as well as on a schedule. -// -// Note: Most services in AWS treat : or / as the same character in Amazon -// Resource Names (ARNs). However, CloudWatch Events uses an exact match in -// event patterns and rules. Be sure to use the correct ARN characters when -// creating event patterns so that they match the ARN syntax in the event you -// want to match. -func (c *CloudWatchEvents) PutRule(input *PutRuleInput) (*PutRuleOutput, error) { - req, out := c.PutRuleRequest(input) - err := req.Send() - return out, err -} - -const opPutTargets = "PutTargets" - -// PutTargetsRequest generates a request for the PutTargets operation. -func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *request.Request, output *PutTargetsOutput) { - op := &request.Operation{ - Name: opPutTargets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutTargetsInput{} - } - - req = c.newRequest(op, input, output) - output = &PutTargetsOutput{} - req.Data = output - return -} - -// Adds target(s) to a rule. Targets are the resources that can be invoked when -// a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, -// and built-in targets. Updates the target(s) if they are already associated -// with the role. In other words, if there is already a target with the given -// target ID, then the target associated with that ID is updated. -// -// In order to be able to make API calls against the resources you own, Amazon -// CloudWatch Events needs the appropriate permissions. For AWS Lambda and Amazon -// SNS resources, CloudWatch Events relies on resource-based policies. For Amazon -// Kinesis streams, CloudWatch Events relies on IAM roles. For more information, -// see Permissions for Sending Events to Targets (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/EventsTargetPermissions.html) -// in the Amazon CloudWatch Developer Guide. -// -// Input and InputPath are mutually-exclusive and optional parameters of a -// target. When a rule is triggered due to a matched event, if for a target: -// -// Neither Input nor InputPath is specified, then the entire event is passed -// to the target in JSON form. InputPath is specified in the form of JSONPath -// (e.g. $.detail), then only the part of the event specified in the path is -// passed to the target (e.g. only the detail part of the event is passed). -// Input is specified in the form of a valid JSON, then the matched event -// is overridden with this constant. Note: When you add targets to a rule, -// when the associated rule triggers, new or updated targets might not be immediately -// invoked. Please allow a short period of time for changes to take effect. -func (c *CloudWatchEvents) PutTargets(input *PutTargetsInput) (*PutTargetsOutput, error) { - req, out := c.PutTargetsRequest(input) - err := req.Send() - return out, err -} - -const opRemoveTargets = "RemoveTargets" - -// RemoveTargetsRequest generates a request for the RemoveTargets operation. -func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req *request.Request, output *RemoveTargetsOutput) { - op := &request.Operation{ - Name: opRemoveTargets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RemoveTargetsInput{} - } - - req = c.newRequest(op, input, output) - output = &RemoveTargetsOutput{} - req.Data = output - return -} - -// Removes target(s) from a rule so that when the rule is triggered, those targets -// will no longer be invoked. -// -// Note: When you remove a target, when the associated rule triggers, removed -// targets might still continue to be invoked. Please allow a short period of -// time for changes to take effect. -func (c *CloudWatchEvents) RemoveTargets(input *RemoveTargetsInput) (*RemoveTargetsOutput, error) { - req, out := c.RemoveTargetsRequest(input) - err := req.Send() - return out, err -} - -const opTestEventPattern = "TestEventPattern" - -// TestEventPatternRequest generates a request for the TestEventPattern operation. -func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) (req *request.Request, output *TestEventPatternOutput) { - op := &request.Operation{ - Name: opTestEventPattern, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &TestEventPatternInput{} - } - - req = c.newRequest(op, input, output) - output = &TestEventPatternOutput{} - req.Data = output - return -} - -// Tests whether an event pattern matches the provided event. -// -// Note: Most services in AWS treat : or / as the same character in Amazon -// Resource Names (ARNs). However, CloudWatch Events uses an exact match in -// event patterns and rules. Be sure to use the correct ARN characters when -// creating event patterns so that they match the ARN syntax in the event you -// want to match. -func (c *CloudWatchEvents) TestEventPattern(input *TestEventPatternInput) (*TestEventPatternOutput, error) { - req, out := c.TestEventPatternRequest(input) - err := req.Send() - return out, err -} - -// Container for the parameters to the DeleteRule operation. -type DeleteRuleInput struct { - _ struct{} `type:"structure"` - - // The name of the rule to be deleted. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRuleInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteRuleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRuleOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the DescribeRule operation. -type DescribeRuleInput struct { - _ struct{} `type:"structure"` - - // The name of the rule you want to describe details for. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeRuleInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the DescribeRule operation. -type DescribeRuleOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) associated with the rule. - Arn *string `min:"1" type:"string"` - - // The rule's description. - Description *string `type:"string"` - - // The event pattern. - EventPattern *string `type:"string"` - - // The rule's name. - Name *string `min:"1" type:"string"` - - // The Amazon Resource Name (ARN) of the IAM role associated with the rule. - RoleArn *string `min:"1" type:"string"` - - // The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". - ScheduleExpression *string `type:"string"` - - // Specifies whether the rule is enabled or disabled. - State *string `type:"string" enum:"RuleState"` -} - -// String returns the string representation -func (s DescribeRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeRuleOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the DisableRule operation. -type DisableRuleInput struct { - _ struct{} `type:"structure"` - - // The name of the rule you want to disable. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DisableRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DisableRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableRuleInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DisableRuleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DisableRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DisableRuleOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the EnableRule operation. -type EnableRuleInput struct { - _ struct{} `type:"structure"` - - // The name of the rule that you want to enable. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s EnableRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnableRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableRuleInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type EnableRuleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s EnableRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnableRuleOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the ListRuleNamesByTarget operation. -type ListRuleNamesByTargetInput struct { - _ struct{} `type:"structure"` - - // The maximum number of results to return. - Limit *int64 `min:"1" type:"integer"` - - // The token returned by a previous call to indicate that there is more data - // available. - NextToken *string `min:"1" type:"string"` - - // The Amazon Resource Name (ARN) of the target resource that you want to list - // the rules for. - TargetArn *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListRuleNamesByTargetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListRuleNamesByTargetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRuleNamesByTargetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRuleNamesByTargetInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.TargetArn == nil { - invalidParams.Add(request.NewErrParamRequired("TargetArn")) - } - if s.TargetArn != nil && len(*s.TargetArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the ListRuleNamesByTarget operation. -type ListRuleNamesByTargetOutput struct { - _ struct{} `type:"structure"` - - // Indicates that there are additional results to retrieve. - NextToken *string `min:"1" type:"string"` - - // List of rules names that can invoke the given target. - RuleNames []*string `type:"list"` -} - -// String returns the string representation -func (s ListRuleNamesByTargetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListRuleNamesByTargetOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the ListRules operation. -type ListRulesInput struct { - _ struct{} `type:"structure"` - - // The maximum number of results to return. - Limit *int64 `min:"1" type:"integer"` - - // The prefix matching the rule name. - NamePrefix *string `min:"1" type:"string"` - - // The token returned by a previous call to indicate that there is more data - // available. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListRulesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListRulesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRulesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRulesInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NamePrefix != nil && len(*s.NamePrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the ListRules operation. -type ListRulesOutput struct { - _ struct{} `type:"structure"` - - // Indicates that there are additional results to retrieve. - NextToken *string `min:"1" type:"string"` - - // List of rules matching the specified criteria. - Rules []*Rule `type:"list"` -} - -// String returns the string representation -func (s ListRulesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListRulesOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the ListTargetsByRule operation. -type ListTargetsByRuleInput struct { - _ struct{} `type:"structure"` - - // The maximum number of results to return. - Limit *int64 `min:"1" type:"integer"` - - // The token returned by a previous call to indicate that there is more data - // available. - NextToken *string `min:"1" type:"string"` - - // The name of the rule whose targets you want to list. - Rule *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListTargetsByRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListTargetsByRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTargetsByRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTargetsByRuleInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.Rule == nil { - invalidParams.Add(request.NewErrParamRequired("Rule")) - } - if s.Rule != nil && len(*s.Rule) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Rule", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the ListTargetsByRule operation. -type ListTargetsByRuleOutput struct { - _ struct{} `type:"structure"` - - // Indicates that there are additional results to retrieve. - NextToken *string `min:"1" type:"string"` - - // Lists the targets assigned to the rule. - Targets []*Target `type:"list"` -} - -// String returns the string representation -func (s ListTargetsByRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListTargetsByRuleOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the PutEvents operation. -type PutEventsInput struct { - _ struct{} `type:"structure"` - - // The entry that defines an event in your system. You can specify several parameters - // for the entry such as the source and type of the event, resources associated - // with the event, and so on. - Entries []*PutEventsRequestEntry `min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s PutEventsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutEventsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutEventsInput"} - if s.Entries == nil { - invalidParams.Add(request.NewErrParamRequired("Entries")) - } - if s.Entries != nil && len(s.Entries) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Entries", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the PutEvents operation. -type PutEventsOutput struct { - _ struct{} `type:"structure"` - - // A list of successfully and unsuccessfully ingested events results. If the - // ingestion was successful, the entry will have the event ID in it. If not, - // then the ErrorCode and ErrorMessage can be used to identify the problem with - // the entry. - Entries []*PutEventsResultEntry `type:"list"` - - // The number of failed entries. - FailedEntryCount *int64 `type:"integer"` -} - -// String returns the string representation -func (s PutEventsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutEventsOutput) GoString() string { - return s.String() -} - -// Contains information about the event to be used in PutEvents. -type PutEventsRequestEntry struct { - _ struct{} `type:"structure"` - - // In the JSON sense, an object containing fields, which may also contain nested - // sub-objects. No constraints are imposed on its contents. - Detail *string `type:"string"` - - // Free-form string used to decide what fields to expect in the event detail. - DetailType *string `type:"string"` - - // AWS resources, identified by Amazon Resource Name (ARN), which the event - // primarily concerns. Any number, including zero, may be present. - Resources []*string `type:"list"` - - // The source of the event. - Source *string `type:"string"` - - // Timestamp of event, per RFC3339 (https://www.rfc-editor.org/rfc/rfc3339.txt). - // If no timestamp is provided, the timestamp of the PutEvents call will be - // used. - Time *time.Time `type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s PutEventsRequestEntry) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutEventsRequestEntry) GoString() string { - return s.String() -} - -// A PutEventsResult contains a list of PutEventsResultEntry. -type PutEventsResultEntry struct { - _ struct{} `type:"structure"` - - // The error code representing why the event submission failed on this entry. - ErrorCode *string `type:"string"` - - // The error message explaining why the event submission failed on this entry. - ErrorMessage *string `type:"string"` - - // The ID of the event submitted to Amazon CloudWatch Events. - EventId *string `type:"string"` -} - -// String returns the string representation -func (s PutEventsResultEntry) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutEventsResultEntry) GoString() string { - return s.String() -} - -// Container for the parameters to the PutRule operation. -type PutRuleInput struct { - _ struct{} `type:"structure"` - - // A description of the rule. - Description *string `type:"string"` - - // The event pattern. - EventPattern *string `type:"string"` - - // The name of the rule that you are creating or updating. - Name *string `min:"1" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the IAM role associated with the rule. - RoleArn *string `min:"1" type:"string"` - - // The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". - ScheduleExpression *string `type:"string"` - - // Indicates whether the rule is enabled or disabled. - State *string `type:"string" enum:"RuleState"` -} - -// String returns the string representation -func (s PutRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRuleInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.RoleArn != nil && len(*s.RoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the PutRule operation. -type PutRuleOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) that identifies the rule. - RuleArn *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s PutRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutRuleOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the PutTargets operation. -type PutTargetsInput struct { - _ struct{} `type:"structure"` - - // The name of the rule you want to add targets to. - Rule *string `min:"1" type:"string" required:"true"` - - // List of targets you want to update or add to the rule. - Targets []*Target `type:"list" required:"true"` -} - -// String returns the string representation -func (s PutTargetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutTargetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutTargetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutTargetsInput"} - if s.Rule == nil { - invalidParams.Add(request.NewErrParamRequired("Rule")) - } - if s.Rule != nil && len(*s.Rule) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Rule", 1)) - } - if s.Targets == nil { - invalidParams.Add(request.NewErrParamRequired("Targets")) - } - 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 -} - -// The result of the PutTargets operation. -type PutTargetsOutput struct { - _ struct{} `type:"structure"` - - // An array of failed target entries. - FailedEntries []*PutTargetsResultEntry `type:"list"` - - // The number of failed entries. - FailedEntryCount *int64 `type:"integer"` -} - -// String returns the string representation -func (s PutTargetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutTargetsOutput) GoString() string { - return s.String() -} - -// A PutTargetsResult contains a list of PutTargetsResultEntry. -type PutTargetsResultEntry struct { - _ struct{} `type:"structure"` - - // The error code representing why the target submission failed on this entry. - ErrorCode *string `type:"string"` - - // The error message explaining why the target submission failed on this entry. - ErrorMessage *string `type:"string"` - - // The ID of the target submitted to Amazon CloudWatch Events. - TargetId *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s PutTargetsResultEntry) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutTargetsResultEntry) GoString() string { - return s.String() -} - -// Container for the parameters to the RemoveTargets operation. -type RemoveTargetsInput struct { - _ struct{} `type:"structure"` - - // The list of target IDs to remove from the rule. - Ids []*string `min:"1" type:"list" required:"true"` - - // The name of the rule you want to remove targets from. - Rule *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s RemoveTargetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTargetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTargetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTargetsInput"} - if s.Ids == nil { - invalidParams.Add(request.NewErrParamRequired("Ids")) - } - if s.Ids != nil && len(s.Ids) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Ids", 1)) - } - if s.Rule == nil { - invalidParams.Add(request.NewErrParamRequired("Rule")) - } - if s.Rule != nil && len(*s.Rule) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Rule", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the RemoveTargets operation. -type RemoveTargetsOutput struct { - _ struct{} `type:"structure"` - - // An array of failed target entries. - FailedEntries []*RemoveTargetsResultEntry `type:"list"` - - // The number of failed entries. - FailedEntryCount *int64 `type:"integer"` -} - -// String returns the string representation -func (s RemoveTargetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTargetsOutput) GoString() string { - return s.String() -} - -// The ID of the target requested to be removed from the rule by Amazon CloudWatch -// Events. -type RemoveTargetsResultEntry struct { - _ struct{} `type:"structure"` - - // The error code representing why the target removal failed on this entry. - ErrorCode *string `type:"string"` - - // The error message explaining why the target removal failed on this entry. - ErrorMessage *string `type:"string"` - - // The ID of the target requested to be removed by Amazon CloudWatch Events. - TargetId *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s RemoveTargetsResultEntry) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTargetsResultEntry) GoString() string { - return s.String() -} - -// Contains information about a rule in Amazon CloudWatch Events. A ListRulesResult -// contains a list of Rules. -type Rule struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the rule. - Arn *string `min:"1" type:"string"` - - // The description of the rule. - Description *string `type:"string"` - - // The event pattern of the rule. - EventPattern *string `type:"string"` - - // The rule's name. - Name *string `min:"1" type:"string"` - - // The Amazon Resource Name (ARN) associated with the role that is used for - // target invocation. - RoleArn *string `min:"1" type:"string"` - - // The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". - ScheduleExpression *string `type:"string"` - - // The rule's state. - State *string `type:"string" enum:"RuleState"` -} - -// String returns the string representation -func (s Rule) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Rule) GoString() string { - return s.String() -} - -// Targets are the resources that can be invoked when a rule is triggered. For -// example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets. -// -// Input and InputPath are mutually-exclusive and optional parameters of a -// target. When a rule is triggered due to a matched event, if for a target: -// -// Neither Input nor InputPath is specified, then the entire event is passed -// to the target in JSON form. InputPath is specified in the form of JSONPath -// (e.g. $.detail), then only the part of the event specified in the path is -// passed to the target (e.g. only the detail part of the event is passed). -// Input is specified in the form of a valid JSON, then the matched event -// is overridden with this constant. -type Target struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) associated of the target. - Arn *string `min:"1" type:"string" required:"true"` - - // The unique target assignment ID. - Id *string `min:"1" type:"string" required:"true"` - - // Valid JSON text passed to the target. For more information about JSON text, - // see The JavaScript Object Notation (JSON) Data Interchange Format (http://www.rfc-editor.org/rfc/rfc7159.txt). - Input *string `type:"string"` - - // The value of the JSONPath that is used for extracting part of the matched - // event when passing it to the target. For more information about JSON paths, - // see JSONPath (http://goessner.net/articles/JsonPath/). - InputPath *string `type:"string"` -} - -// String returns the string representation -func (s Target) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Target) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Target) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Target"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Container for the parameters to the TestEventPattern operation. -type TestEventPatternInput struct { - _ struct{} `type:"structure"` - - // The event in the JSON format to test against the event pattern. - Event *string `type:"string" required:"true"` - - // The event pattern you want to test. - EventPattern *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s TestEventPatternInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TestEventPatternInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TestEventPatternInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TestEventPatternInput"} - if s.Event == nil { - invalidParams.Add(request.NewErrParamRequired("Event")) - } - if s.EventPattern == nil { - invalidParams.Add(request.NewErrParamRequired("EventPattern")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the TestEventPattern operation. -type TestEventPatternOutput struct { - _ struct{} `type:"structure"` - - // Indicates whether the event matches the event pattern. - Result *bool `type:"boolean"` -} - -// String returns the string representation -func (s TestEventPatternOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TestEventPatternOutput) GoString() string { - return s.String() -} - -const ( - // @enum RuleState - RuleStateEnabled = "ENABLED" - // @enum RuleState - RuleStateDisabled = "DISABLED" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go deleted file mode 100644 index 92d299f1e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsiface/interface.go +++ /dev/null @@ -1,62 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package cloudwatcheventsiface provides an interface for the Amazon CloudWatch Events. -package cloudwatcheventsiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/cloudwatchevents" -) - -// CloudWatchEventsAPI is the interface type for cloudwatchevents.CloudWatchEvents. -type CloudWatchEventsAPI interface { - DeleteRuleRequest(*cloudwatchevents.DeleteRuleInput) (*request.Request, *cloudwatchevents.DeleteRuleOutput) - - DeleteRule(*cloudwatchevents.DeleteRuleInput) (*cloudwatchevents.DeleteRuleOutput, error) - - DescribeRuleRequest(*cloudwatchevents.DescribeRuleInput) (*request.Request, *cloudwatchevents.DescribeRuleOutput) - - DescribeRule(*cloudwatchevents.DescribeRuleInput) (*cloudwatchevents.DescribeRuleOutput, error) - - DisableRuleRequest(*cloudwatchevents.DisableRuleInput) (*request.Request, *cloudwatchevents.DisableRuleOutput) - - DisableRule(*cloudwatchevents.DisableRuleInput) (*cloudwatchevents.DisableRuleOutput, error) - - EnableRuleRequest(*cloudwatchevents.EnableRuleInput) (*request.Request, *cloudwatchevents.EnableRuleOutput) - - EnableRule(*cloudwatchevents.EnableRuleInput) (*cloudwatchevents.EnableRuleOutput, error) - - ListRuleNamesByTargetRequest(*cloudwatchevents.ListRuleNamesByTargetInput) (*request.Request, *cloudwatchevents.ListRuleNamesByTargetOutput) - - ListRuleNamesByTarget(*cloudwatchevents.ListRuleNamesByTargetInput) (*cloudwatchevents.ListRuleNamesByTargetOutput, error) - - ListRulesRequest(*cloudwatchevents.ListRulesInput) (*request.Request, *cloudwatchevents.ListRulesOutput) - - ListRules(*cloudwatchevents.ListRulesInput) (*cloudwatchevents.ListRulesOutput, error) - - ListTargetsByRuleRequest(*cloudwatchevents.ListTargetsByRuleInput) (*request.Request, *cloudwatchevents.ListTargetsByRuleOutput) - - ListTargetsByRule(*cloudwatchevents.ListTargetsByRuleInput) (*cloudwatchevents.ListTargetsByRuleOutput, error) - - PutEventsRequest(*cloudwatchevents.PutEventsInput) (*request.Request, *cloudwatchevents.PutEventsOutput) - - PutEvents(*cloudwatchevents.PutEventsInput) (*cloudwatchevents.PutEventsOutput, error) - - PutRuleRequest(*cloudwatchevents.PutRuleInput) (*request.Request, *cloudwatchevents.PutRuleOutput) - - PutRule(*cloudwatchevents.PutRuleInput) (*cloudwatchevents.PutRuleOutput, error) - - PutTargetsRequest(*cloudwatchevents.PutTargetsInput) (*request.Request, *cloudwatchevents.PutTargetsOutput) - - PutTargets(*cloudwatchevents.PutTargetsInput) (*cloudwatchevents.PutTargetsOutput, error) - - RemoveTargetsRequest(*cloudwatchevents.RemoveTargetsInput) (*request.Request, *cloudwatchevents.RemoveTargetsOutput) - - RemoveTargets(*cloudwatchevents.RemoveTargetsInput) (*cloudwatchevents.RemoveTargetsOutput, error) - - TestEventPatternRequest(*cloudwatchevents.TestEventPatternInput) (*request.Request, *cloudwatchevents.TestEventPatternOutput) - - TestEventPattern(*cloudwatchevents.TestEventPatternInput) (*cloudwatchevents.TestEventPatternOutput, error) -} - -var _ CloudWatchEventsAPI = (*cloudwatchevents.CloudWatchEvents)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go deleted file mode 100644 index e0f725d80..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/examples_test.go +++ /dev/null @@ -1,281 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package cloudwatchevents_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/cloudwatchevents" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleCloudWatchEvents_DeleteRule() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.DeleteRuleInput{ - Name: aws.String("RuleName"), // Required - } - resp, err := svc.DeleteRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_DescribeRule() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.DescribeRuleInput{ - Name: aws.String("RuleName"), // Required - } - resp, err := svc.DescribeRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_DisableRule() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.DisableRuleInput{ - Name: aws.String("RuleName"), // Required - } - resp, err := svc.DisableRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_EnableRule() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.EnableRuleInput{ - Name: aws.String("RuleName"), // Required - } - resp, err := svc.EnableRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_ListRuleNamesByTarget() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.ListRuleNamesByTargetInput{ - TargetArn: aws.String("TargetArn"), // Required - Limit: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListRuleNamesByTarget(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_ListRules() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.ListRulesInput{ - Limit: aws.Int64(1), - NamePrefix: aws.String("RuleName"), - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListRules(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_ListTargetsByRule() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.ListTargetsByRuleInput{ - Rule: aws.String("RuleName"), // Required - Limit: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListTargetsByRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_PutEvents() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.PutEventsInput{ - Entries: []*cloudwatchevents.PutEventsRequestEntry{ // Required - { // Required - Detail: aws.String("String"), - DetailType: aws.String("String"), - Resources: []*string{ - aws.String("EventResource"), // Required - // More values... - }, - Source: aws.String("String"), - Time: aws.Time(time.Now()), - }, - // More values... - }, - } - resp, err := svc.PutEvents(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_PutRule() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.PutRuleInput{ - Name: aws.String("RuleName"), // Required - Description: aws.String("RuleDescription"), - EventPattern: aws.String("EventPattern"), - RoleArn: aws.String("RoleArn"), - ScheduleExpression: aws.String("ScheduleExpression"), - State: aws.String("RuleState"), - } - resp, err := svc.PutRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_PutTargets() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.PutTargetsInput{ - Rule: aws.String("RuleName"), // Required - Targets: []*cloudwatchevents.Target{ // Required - { // Required - Arn: aws.String("TargetArn"), // Required - Id: aws.String("TargetId"), // Required - Input: aws.String("TargetInput"), - InputPath: aws.String("TargetInputPath"), - }, - // More values... - }, - } - resp, err := svc.PutTargets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_RemoveTargets() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.RemoveTargetsInput{ - Ids: []*string{ // Required - aws.String("TargetId"), // Required - // More values... - }, - Rule: aws.String("RuleName"), // Required - } - resp, err := svc.RemoveTargets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchEvents_TestEventPattern() { - svc := cloudwatchevents.New(session.New()) - - params := &cloudwatchevents.TestEventPatternInput{ - Event: aws.String("String"), // Required - EventPattern: aws.String("EventPattern"), // Required - } - resp, err := svc.TestEventPattern(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go deleted file mode 100644 index 14f99f9b4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go +++ /dev/null @@ -1,101 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package cloudwatchevents - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// Amazon CloudWatch Events helps you to respond to state changes in your AWS -// resources. When your resources change state they automatically send events -// into an event stream. You can create rules that match selected events in -// the stream and route them to targets to take action. You can also use rules -// to take action on a pre-determined schedule. For example, you can configure -// rules to: -// -// Automatically invoke an AWS Lambda function to update DNS entries when -// an event notifies you that Amazon EC2 instance enters the running state. -// Direct specific API records from CloudTrail to an Amazon Kinesis stream for -// detailed analysis of potential security or availability risks. Periodically -// invoke a built-in target to create a snapshot of an Amazon EBS volume. -// For more information about Amazon CloudWatch Events features, see the Amazon -// CloudWatch Developer Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type CloudWatchEvents struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "events" - -// New creates a new instance of the CloudWatchEvents client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CloudWatchEvents client from just a session. -// svc := cloudwatchevents.New(mySession) -// -// // Create a CloudWatchEvents client with additional configuration -// svc := cloudwatchevents.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudWatchEvents { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudWatchEvents { - svc := &CloudWatchEvents{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-10-07", - JSONVersion: "1.1", - TargetPrefix: "AWSEvents", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a CloudWatchEvents operation and runs any -// custom request initialization. -func (c *CloudWatchEvents) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go index d5be83323..d12522596 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go @@ -4,82 +4,10 @@ package cloudwatchlogs import ( - "fmt" - "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/private/protocol/jsonrpc" ) -const opCancelExportTask = "CancelExportTask" - -// CancelExportTaskRequest generates a request for the CancelExportTask operation. -func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) (req *request.Request, output *CancelExportTaskOutput) { - op := &request.Operation{ - Name: opCancelExportTask, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CancelExportTaskInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CancelExportTaskOutput{} - req.Data = output - return -} - -// Cancels an export task if it is in PENDING or RUNNING state. -func (c *CloudWatchLogs) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) { - req, out := c.CancelExportTaskRequest(input) - err := req.Send() - return out, err -} - -const opCreateExportTask = "CreateExportTask" - -// CreateExportTaskRequest generates a request for the CreateExportTask operation. -func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) (req *request.Request, output *CreateExportTaskOutput) { - op := &request.Operation{ - Name: opCreateExportTask, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateExportTaskInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateExportTaskOutput{} - req.Data = output - return -} - -// Creates an ExportTask which allows you to efficiently export data from a -// Log Group to your Amazon S3 bucket. -// -// This is an asynchronous call. If all the required information is provided, -// this API will initiate an export task and respond with the task Id. Once -// started, DescribeExportTasks can be used to get the status of an export task. -// You can only have one active (RUNNING or PENDING) export task at a time, -// per account. -// -// You can export logs from multiple log groups or multiple time ranges to -// the same Amazon S3 bucket. To separate out log data for each export task, -// you can specify a prefix that will be used as the Amazon S3 key prefix for -// all exported objects. -func (c *CloudWatchLogs) CreateExportTask(input *CreateExportTaskInput) (*CreateExportTaskOutput, error) { - req, out := c.CreateExportTaskRequest(input) - err := req.Send() - return out, err -} - const opCreateLogGroup = "CreateLogGroup" // CreateLogGroupRequest generates a request for the CreateLogGroup operation. @@ -95,8 +23,6 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateLogGroupOutput{} req.Data = output return @@ -130,8 +56,6 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateLogStreamOutput{} req.Data = output return @@ -165,8 +89,6 @@ func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteDestinationOutput{} req.Data = output return @@ -196,8 +118,6 @@ func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteLogGroupOutput{} req.Data = output return @@ -226,8 +146,6 @@ func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteLogStreamOutput{} req.Data = output return @@ -256,8 +174,6 @@ func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInpu } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteMetricFilterOutput{} req.Data = output return @@ -285,8 +201,6 @@ func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPoli } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteRetentionPolicyOutput{} req.Data = output return @@ -315,8 +229,6 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteSubscriptionFilterOutput{} req.Data = output return @@ -371,46 +283,11 @@ func (c *CloudWatchLogs) DescribeDestinations(input *DescribeDestinationsInput) func (c *CloudWatchLogs) DescribeDestinationsPages(input *DescribeDestinationsInput, fn func(p *DescribeDestinationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDestinationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDestinationsOutput), lastPage) }) } -const opDescribeExportTasks = "DescribeExportTasks" - -// DescribeExportTasksRequest generates a request for the DescribeExportTasks operation. -func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) { - op := &request.Operation{ - Name: opDescribeExportTasks, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeExportTasksInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeExportTasksOutput{} - req.Data = output - return -} - -// Returns all the export tasks that are associated with the AWS account making -// the request. The export tasks can be filtered based on TaskId or TaskStatus. -// -// By default, this operation returns up to 50 export tasks that satisfy the -// specified filters. If there are more export tasks to list, the response would -// contain a nextToken value in the response body. You can also limit the number -// of export tasks returned in the response by specifying the limit parameter -// in the request. -func (c *CloudWatchLogs) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) { - req, out := c.DescribeExportTasksRequest(input) - err := req.Send() - return out, err -} - const opDescribeLogGroups = "DescribeLogGroups" // DescribeLogGroupsRequest generates a request for the DescribeLogGroups operation. @@ -453,7 +330,6 @@ func (c *CloudWatchLogs) DescribeLogGroups(input *DescribeLogGroupsInput) (*Desc func (c *CloudWatchLogs) DescribeLogGroupsPages(input *DescribeLogGroupsInput, fn func(p *DescribeLogGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeLogGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeLogGroupsOutput), lastPage) }) @@ -502,7 +378,6 @@ func (c *CloudWatchLogs) DescribeLogStreams(input *DescribeLogStreamsInput) (*De func (c *CloudWatchLogs) DescribeLogStreamsPages(input *DescribeLogStreamsInput, fn func(p *DescribeLogStreamsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeLogStreamsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeLogStreamsOutput), lastPage) }) @@ -549,7 +424,6 @@ func (c *CloudWatchLogs) DescribeMetricFilters(input *DescribeMetricFiltersInput func (c *CloudWatchLogs) DescribeMetricFiltersPages(input *DescribeMetricFiltersInput, fn func(p *DescribeMetricFiltersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeMetricFiltersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeMetricFiltersOutput), lastPage) }) @@ -597,7 +471,6 @@ func (c *CloudWatchLogs) DescribeSubscriptionFilters(input *DescribeSubscription func (c *CloudWatchLogs) DescribeSubscriptionFiltersPages(input *DescribeSubscriptionFiltersInput, fn func(p *DescribeSubscriptionFiltersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeSubscriptionFiltersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeSubscriptionFiltersOutput), lastPage) }) @@ -651,7 +524,6 @@ func (c *CloudWatchLogs) FilterLogEvents(input *FilterLogEventsInput) (*FilterLo func (c *CloudWatchLogs) FilterLogEventsPages(input *FilterLogEventsInput, fn func(p *FilterLogEventsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.FilterLogEventsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*FilterLogEventsOutput), lastPage) }) @@ -701,7 +573,6 @@ func (c *CloudWatchLogs) GetLogEvents(input *GetLogEventsInput) (*GetLogEventsOu func (c *CloudWatchLogs) GetLogEventsPages(input *GetLogEventsInput, fn func(p *GetLogEventsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.GetLogEventsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*GetLogEventsOutput), lastPage) }) @@ -759,8 +630,6 @@ func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicy } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutDestinationPolicyOutput{} req.Data = output return @@ -809,8 +678,6 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req // log events in the batch can be older than 14 days or the retention period // of the log group. The log events in the batch must be in chronological ordered // by their timestamp. The maximum number of log events in a batch is 10,000. -// A batch of log events in a single PutLogEvents request cannot span more than -// 24 hours. Otherwise, the PutLogEvents operation will fail. func (c *CloudWatchLogs) PutLogEvents(input *PutLogEventsInput) (*PutLogEventsOutput, error) { req, out := c.PutLogEventsRequest(input) err := req.Send() @@ -832,8 +699,6 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutMetricFilterOutput{} req.Data = output return @@ -866,8 +731,6 @@ func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInpu } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutRetentionPolicyOutput{} req.Data = output return @@ -897,8 +760,6 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutSubscriptionFilterOutput{} req.Data = output return @@ -907,14 +768,10 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt // Creates or updates a subscription filter and associates it with the specified // log group. Subscription filters allow you to subscribe to a real-time stream // of log events ingested through PutLogEvents requests and have them delivered -// to a specific destination. Currently, the supported destinations are: An +// to a specific destination. Currently, the supported destinations are: A // Amazon Kinesis stream belonging to the same account as the subscription filter, // for same-account delivery. A logical destination (used via an ARN of Destination) -// belonging to a different account, for cross-account delivery. An Amazon -// Kinesis Firehose stream belonging to the same account as the subscription -// filter, for same-account delivery. An AWS Lambda function belonging to -// the same account as the subscription filter, for same-account delivery. -// +// belonging to a different account, for cross-account delivery. // // Currently there can only be one subscription filter associated with a log // group. @@ -953,152 +810,15 @@ func (c *CloudWatchLogs) TestMetricFilter(input *TestMetricFilterInput) (*TestMe return out, err } -type CancelExportTaskInput struct { - _ struct{} `type:"structure"` - - // Id of the export task to cancel. - TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CancelExportTaskInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CancelExportTaskInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelExportTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"} - if s.TaskId == nil { - invalidParams.Add(request.NewErrParamRequired("TaskId")) - } - if s.TaskId != nil && len(*s.TaskId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CancelExportTaskOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s CancelExportTaskOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CancelExportTaskOutput) GoString() string { - return s.String() -} - -type CreateExportTaskInput struct { - _ struct{} `type:"structure"` - - // Name of Amazon S3 bucket to which the log data will be exported. - // - // Note: Only buckets in the same AWS region are supported. - Destination *string `locationName:"destination" min:"1" type:"string" required:"true"` - - // Prefix that will be used as the start of Amazon S3 key for every object exported. - // If not specified, this defaults to 'exportedlogs'. - DestinationPrefix *string `locationName:"destinationPrefix" type:"string"` - - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. It indicates the start time of the range for the request. Events - // with a timestamp prior to this time will not be exported. - From *int64 `locationName:"from" type:"long" required:"true"` - - // The name of the log group to export. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` - - // Will only export log streams that match the provided logStreamNamePrefix. - // If you don't specify a value, no prefix filter is applied. - LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"` - - // The name of the export task. - TaskName *string `locationName:"taskName" min:"1" type:"string"` - - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. It indicates the end time of the range for the request. Events - // with a timestamp later than this time will not be exported. - To *int64 `locationName:"to" type:"long" required:"true"` -} - -// String returns the string representation -func (s CreateExportTaskInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateExportTaskInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateExportTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateExportTaskInput"} - if s.Destination == nil { - invalidParams.Add(request.NewErrParamRequired("Destination")) - } - if s.Destination != nil && len(*s.Destination) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) - } - if s.From == nil { - invalidParams.Add(request.NewErrParamRequired("From")) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1)) - } - if s.TaskName != nil && len(*s.TaskName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskName", 1)) - } - if s.To == nil { - invalidParams.Add(request.NewErrParamRequired("To")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateExportTaskOutput struct { - _ struct{} `type:"structure"` - - // Id of the export task that got created. - TaskId *string `locationName:"taskId" min:"1" type:"string"` -} - -// String returns the string representation -func (s CreateExportTaskOutput) String() string { - return awsutil.Prettify(s) -} +type CreateLogGroupInput struct { + // The name of the log group to create. + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` -// GoString returns the string representation -func (s CreateExportTaskOutput) GoString() string { - return s.String() + metadataCreateLogGroupInput `json:"-" xml:"-"` } -type CreateLogGroupInput struct { - _ struct{} `type:"structure"` - - // The name of the log group to create. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` +type metadataCreateLogGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1111,24 +831,12 @@ func (s CreateLogGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLogGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLogGroupInput"} - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateLogGroupOutput struct { + metadataCreateLogGroupOutput `json:"-" xml:"-"` } -type CreateLogGroupOutput struct { - _ struct{} `type:"structure"` +type metadataCreateLogGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1142,13 +850,17 @@ func (s CreateLogGroupOutput) GoString() string { } type CreateLogStreamInput struct { - _ struct{} `type:"structure"` - // The name of the log group under which the log stream is to be created. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` // The name of the log stream to create. - LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` + LogStreamName *string `locationName:"logStreamName" type:"string" required:"true"` + + metadataCreateLogStreamInput `json:"-" xml:"-"` +} + +type metadataCreateLogStreamInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1161,30 +873,12 @@ func (s CreateLogStreamInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLogStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLogStreamInput"} - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.LogStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("LogStreamName")) - } - if s.LogStreamName != nil && len(*s.LogStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateLogStreamOutput struct { + metadataCreateLogStreamOutput `json:"-" xml:"-"` } -type CreateLogStreamOutput struct { - _ struct{} `type:"structure"` +type metadataCreateLogStreamOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1198,10 +892,14 @@ func (s CreateLogStreamOutput) GoString() string { } type DeleteDestinationInput struct { - _ struct{} `type:"structure"` - // The name of destination to delete. - DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"` + DestinationName *string `locationName:"destinationName" type:"string" required:"true"` + + metadataDeleteDestinationInput `json:"-" xml:"-"` +} + +type metadataDeleteDestinationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1214,24 +912,12 @@ func (s DeleteDestinationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDestinationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDestinationInput"} - if s.DestinationName == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationName")) - } - if s.DestinationName != nil && len(*s.DestinationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DestinationName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteDestinationOutput struct { + metadataDeleteDestinationOutput `json:"-" xml:"-"` } -type DeleteDestinationOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteDestinationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1245,10 +931,14 @@ func (s DeleteDestinationOutput) GoString() string { } type DeleteLogGroupInput struct { - _ struct{} `type:"structure"` - // The name of the log group to delete. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` + + metadataDeleteLogGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteLogGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1261,24 +951,12 @@ func (s DeleteLogGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLogGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLogGroupInput"} - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteLogGroupOutput struct { + metadataDeleteLogGroupOutput `json:"-" xml:"-"` } -type DeleteLogGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteLogGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1292,13 +970,17 @@ func (s DeleteLogGroupOutput) GoString() string { } type DeleteLogStreamInput struct { - _ struct{} `type:"structure"` - // The name of the log group under which the log stream to delete belongs. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` // The name of the log stream to delete. - LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` + LogStreamName *string `locationName:"logStreamName" type:"string" required:"true"` + + metadataDeleteLogStreamInput `json:"-" xml:"-"` +} + +type metadataDeleteLogStreamInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1311,30 +993,12 @@ func (s DeleteLogStreamInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLogStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLogStreamInput"} - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.LogStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("LogStreamName")) - } - if s.LogStreamName != nil && len(*s.LogStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteLogStreamOutput struct { + metadataDeleteLogStreamOutput `json:"-" xml:"-"` } -type DeleteLogStreamOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteLogStreamOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1348,13 +1012,17 @@ func (s DeleteLogStreamOutput) GoString() string { } type DeleteMetricFilterInput struct { - _ struct{} `type:"structure"` - // The name of the metric filter to delete. - FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` + FilterName *string `locationName:"filterName" type:"string" required:"true"` // The name of the log group that is associated with the metric filter to delete. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` + + metadataDeleteMetricFilterInput `json:"-" xml:"-"` +} + +type metadataDeleteMetricFilterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1367,30 +1035,12 @@ func (s DeleteMetricFilterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMetricFilterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMetricFilterInput"} - if s.FilterName == nil { - invalidParams.Add(request.NewErrParamRequired("FilterName")) - } - if s.FilterName != nil && len(*s.FilterName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FilterName", 1)) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteMetricFilterOutput struct { + metadataDeleteMetricFilterOutput `json:"-" xml:"-"` } -type DeleteMetricFilterOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteMetricFilterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1404,11 +1054,15 @@ func (s DeleteMetricFilterOutput) GoString() string { } type DeleteRetentionPolicyInput struct { - _ struct{} `type:"structure"` - // The name of the log group that is associated with the retention policy to // delete. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` + + metadataDeleteRetentionPolicyInput `json:"-" xml:"-"` +} + +type metadataDeleteRetentionPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1421,24 +1075,12 @@ func (s DeleteRetentionPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRetentionPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRetentionPolicyInput"} - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteRetentionPolicyOutput struct { + metadataDeleteRetentionPolicyOutput `json:"-" xml:"-"` } -type DeleteRetentionPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteRetentionPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1452,14 +1094,18 @@ func (s DeleteRetentionPolicyOutput) GoString() string { } type DeleteSubscriptionFilterInput struct { - _ struct{} `type:"structure"` - // The name of the subscription filter to delete. - FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` + FilterName *string `locationName:"filterName" type:"string" required:"true"` // The name of the log group that is associated with the subscription filter // to delete. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` + + metadataDeleteSubscriptionFilterInput `json:"-" xml:"-"` +} + +type metadataDeleteSubscriptionFilterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1472,30 +1118,12 @@ func (s DeleteSubscriptionFilterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSubscriptionFilterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSubscriptionFilterInput"} - if s.FilterName == nil { - invalidParams.Add(request.NewErrParamRequired("FilterName")) - } - if s.FilterName != nil && len(*s.FilterName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FilterName", 1)) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteSubscriptionFilterOutput struct { + metadataDeleteSubscriptionFilterOutput `json:"-" xml:"-"` } -type DeleteSubscriptionFilterOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteSubscriptionFilterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1509,19 +1137,23 @@ func (s DeleteSubscriptionFilterOutput) GoString() string { } type DescribeDestinationsInput struct { - _ struct{} `type:"structure"` - // Will only return destinations that match the provided destinationNamePrefix. // If you don't specify a value, no prefix is applied. - DestinationNamePrefix *string `min:"1" type:"string"` + DestinationNamePrefix *string `type:"string"` // The maximum number of results to return. - Limit *int64 `locationName:"limit" min:"1" type:"integer"` + Limit *int64 `locationName:"limit" type:"integer"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous request. The // token expires after 24 hours. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeDestinationsInput `json:"-" xml:"-"` +} + +type metadataDescribeDestinationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1534,34 +1166,19 @@ func (s DescribeDestinationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDestinationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDestinationsInput"} - if s.DestinationNamePrefix != nil && len(*s.DestinationNamePrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DestinationNamePrefix", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeDestinationsOutput struct { - _ struct{} `type:"structure"` - Destinations []*Destination `locationName:"destinations" type:"list"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous request. The // token expires after 24 hours. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeDestinationsOutput `json:"-" xml:"-"` +} + +type metadataDescribeDestinationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1574,174 +1191,95 @@ func (s DescribeDestinationsOutput) GoString() string { return s.String() } -type DescribeExportTasksInput struct { - _ struct{} `type:"structure"` - +type DescribeLogGroupsInput struct { // The maximum number of items returned in the response. If you don't specify // a value, the request would return up to 50 items. - Limit *int64 `locationName:"limit" min:"1" type:"integer"` + Limit *int64 `locationName:"limit" type:"integer"` + + // Will only return log groups that match the provided logGroupNamePrefix. If + // you don't specify a value, no prefix filter is applied. + LogGroupNamePrefix *string `locationName:"logGroupNamePrefix" type:"string"` // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous DescribeExportTasks + // It must be a value obtained from the response of the previous DescribeLogGroups // request. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` - // All export tasks that matches the specified status code will be returned. - // This can return zero or more export tasks. - StatusCode *string `locationName:"statusCode" type:"string" enum:"ExportTaskStatusCode"` + metadataDescribeLogGroupsInput `json:"-" xml:"-"` +} - // Export task that matches the specified task Id will be returned. This can - // result in zero or one export task. - TaskId *string `locationName:"taskId" min:"1" type:"string"` +type metadataDescribeLogGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeExportTasksInput) String() string { +func (s DescribeLogGroupsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeExportTasksInput) GoString() string { +func (s DescribeLogGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeExportTasksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeExportTasksInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.TaskId != nil && len(*s.TaskId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeExportTasksOutput struct { - _ struct{} `type:"structure"` - - // A list of export tasks. - ExportTasks []*ExportTask `locationName:"exportTasks" type:"list"` +type DescribeLogGroupsOutput struct { + // A list of log groups. + LogGroups []*LogGroup `locationName:"logGroups" type:"list"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous request. The // token expires after 24 hours. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeLogGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeLogGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeExportTasksOutput) String() string { +func (s DescribeLogGroupsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeExportTasksOutput) GoString() string { - return s.String() -} - -type DescribeLogGroupsInput struct { - _ struct{} `type:"structure"` - - // The maximum number of items returned in the response. If you don't specify - // a value, the request would return up to 50 items. - Limit *int64 `locationName:"limit" min:"1" type:"integer"` - - // Will only return log groups that match the provided logGroupNamePrefix. If - // you don't specify a value, no prefix filter is applied. - LogGroupNamePrefix *string `locationName:"logGroupNamePrefix" min:"1" type:"string"` - - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous DescribeLogGroups - // request. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeLogGroupsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeLogGroupsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeLogGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeLogGroupsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.LogGroupNamePrefix != nil && len(*s.LogGroupNamePrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupNamePrefix", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeLogGroupsOutput struct { - _ struct{} `type:"structure"` - - // A list of log groups. - LogGroups []*LogGroup `locationName:"logGroups" type:"list"` - - // A string token used for pagination that points to the next page of results. - // It must be a value obtained from the response of the previous request. The - // token expires after 24 hours. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeLogGroupsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeLogGroupsOutput) GoString() string { +func (s DescribeLogGroupsOutput) GoString() string { return s.String() } type DescribeLogStreamsInput struct { - _ struct{} `type:"structure"` - // If set to true, results are returned in descending order. If you don't specify // a value or set it to false, results are returned in ascending order. Descending *bool `locationName:"descending" type:"boolean"` // The maximum number of items returned in the response. If you don't specify // a value, the request would return up to 50 items. - Limit *int64 `locationName:"limit" min:"1" type:"integer"` + Limit *int64 `locationName:"limit" type:"integer"` // The log group name for which log streams are to be listed. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` // Will only return log streams that match the provided logStreamNamePrefix. // If you don't specify a value, no prefix filter is applied. - LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"` + LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" type:"string"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous DescribeLogStreams // request. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` // Specifies what to order the returned log streams by. Valid arguments are // 'LogStreamName' or 'LastEventTime'. If you don't specify a value, results // are ordered by LogStreamName. If 'LastEventTime' is chosen, the request cannot // also contain a logStreamNamePrefix. OrderBy *string `locationName:"orderBy" type:"string" enum:"OrderBy"` + + metadataDescribeLogStreamsInput `json:"-" xml:"-"` +} + +type metadataDescribeLogStreamsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1754,41 +1292,20 @@ func (s DescribeLogStreamsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeLogStreamsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeLogStreamsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeLogStreamsOutput struct { - _ struct{} `type:"structure"` - // A list of log streams. LogStreams []*LogStream `locationName:"logStreams" type:"list"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous request. The // token expires after 24 hours. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeLogStreamsOutput `json:"-" xml:"-"` +} + +type metadataDescribeLogStreamsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1802,23 +1319,27 @@ func (s DescribeLogStreamsOutput) GoString() string { } type DescribeMetricFiltersInput struct { - _ struct{} `type:"structure"` - // Will only return metric filters that match the provided filterNamePrefix. // If you don't specify a value, no prefix filter is applied. - FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"` + FilterNamePrefix *string `locationName:"filterNamePrefix" type:"string"` // The maximum number of items returned in the response. If you don't specify // a value, the request would return up to 50 items. - Limit *int64 `locationName:"limit" min:"1" type:"integer"` + Limit *int64 `locationName:"limit" type:"integer"` // The log group name for which metric filters are to be listed. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous DescribeMetricFilters // request. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeMetricFiltersInput `json:"-" xml:"-"` +} + +type metadataDescribeMetricFiltersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1831,40 +1352,19 @@ func (s DescribeMetricFiltersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeMetricFiltersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeMetricFiltersInput"} - if s.FilterNamePrefix != nil && len(*s.FilterNamePrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FilterNamePrefix", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeMetricFiltersOutput struct { - _ struct{} `type:"structure"` - MetricFilters []*MetricFilter `locationName:"metricFilters" type:"list"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous request. The // token expires after 24 hours. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeMetricFiltersOutput `json:"-" xml:"-"` +} + +type metadataDescribeMetricFiltersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1878,22 +1378,26 @@ func (s DescribeMetricFiltersOutput) GoString() string { } type DescribeSubscriptionFiltersInput struct { - _ struct{} `type:"structure"` - // Will only return subscription filters that match the provided filterNamePrefix. // If you don't specify a value, no prefix filter is applied. - FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"` + FilterNamePrefix *string `locationName:"filterNamePrefix" type:"string"` // The maximum number of results to return. - Limit *int64 `locationName:"limit" min:"1" type:"integer"` + Limit *int64 `locationName:"limit" type:"integer"` // The log group name for which subscription filters are to be listed. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous request. The // token expires after 24 hours. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeSubscriptionFiltersInput `json:"-" xml:"-"` +} + +type metadataDescribeSubscriptionFiltersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1906,40 +1410,19 @@ func (s DescribeSubscriptionFiltersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeSubscriptionFiltersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeSubscriptionFiltersInput"} - if s.FilterNamePrefix != nil && len(*s.FilterNamePrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FilterNamePrefix", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeSubscriptionFiltersOutput struct { - _ struct{} `type:"structure"` - // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous request. The // token expires after 24 hours. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` SubscriptionFilters []*SubscriptionFilter `locationName:"subscriptionFilters" type:"list"` + + metadataDescribeSubscriptionFiltersOutput `json:"-" xml:"-"` +} + +type metadataDescribeSubscriptionFiltersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1952,134 +1435,41 @@ func (s DescribeSubscriptionFiltersOutput) GoString() string { return s.String() } -// A cross account destination that is the recipient of subscription log events. type Destination struct { - _ struct{} `type:"structure"` + AccessPolicy *string `locationName:"accessPolicy" type:"string"` - // An IAM policy document that governs which AWS accounts can create subscription - // filters against this destination. - AccessPolicy *string `locationName:"accessPolicy" min:"1" type:"string"` - - // ARN of this destination. Arn *string `locationName:"arn" type:"string"` // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC specifying when this destination was created. + // 00:00:00 UTC. CreationTime *int64 `locationName:"creationTime" type:"long"` - // Name of the destination. - DestinationName *string `locationName:"destinationName" min:"1" type:"string"` + DestinationName *string `locationName:"destinationName" type:"string"` - // A role for impersonation for delivering log events to the target. - RoleArn *string `locationName:"roleArn" min:"1" type:"string"` + RoleArn *string `locationName:"roleArn" type:"string"` - // ARN of the physical target where the log events will be delivered (eg. ARN - // of a Kinesis stream). - TargetArn *string `locationName:"targetArn" min:"1" type:"string"` -} + TargetArn *string `locationName:"targetArn" type:"string"` -// String returns the string representation -func (s Destination) String() string { - return awsutil.Prettify(s) + metadataDestination `json:"-" xml:"-"` } -// GoString returns the string representation -func (s Destination) GoString() string { - return s.String() -} - -// Represents an export task. -type ExportTask struct { - _ struct{} `type:"structure"` - - // Name of Amazon S3 bucket to which the log data was exported. - Destination *string `locationName:"destination" min:"1" type:"string"` - - // Prefix that was used as the start of Amazon S3 key for every object exported. - DestinationPrefix *string `locationName:"destinationPrefix" type:"string"` - - // Execution info about the export task. - ExecutionInfo *ExportTaskExecutionInfo `locationName:"executionInfo" type:"structure"` - - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. Events with a timestamp prior to this time are not exported. - From *int64 `locationName:"from" type:"long"` - - // The name of the log group from which logs data was exported. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` - - // Status of the export task. - Status *ExportTaskStatus `locationName:"status" type:"structure"` - - // Id of the export task. - TaskId *string `locationName:"taskId" min:"1" type:"string"` - - // The name of the export task. - TaskName *string `locationName:"taskName" min:"1" type:"string"` - - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. Events with a timestamp later than this time are not exported. - To *int64 `locationName:"to" type:"long"` +type metadataDestination struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ExportTask) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ExportTask) GoString() string { - return s.String() -} - -// Represents the status of an export task. -type ExportTaskExecutionInfo struct { - _ struct{} `type:"structure"` - - // A point in time when the export task got completed. - CompletionTime *int64 `locationName:"completionTime" type:"long"` - - // A point in time when the export task got created. - CreationTime *int64 `locationName:"creationTime" type:"long"` -} - -// String returns the string representation -func (s ExportTaskExecutionInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ExportTaskExecutionInfo) GoString() string { - return s.String() -} - -// Represents the status of an export task. -type ExportTaskStatus struct { - _ struct{} `type:"structure"` - - // Status code of the export task. - Code *string `locationName:"code" type:"string" enum:"ExportTaskStatusCode"` - - // Status message related to the code. - Message *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s ExportTaskStatus) String() string { +func (s Destination) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ExportTaskStatus) GoString() string { +func (s Destination) GoString() string { return s.String() } type FilterLogEventsInput struct { - _ struct{} `type:"structure"` - - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. If provided, events with a timestamp later than this time are - // not returned. + // A unix timestamp indicating the end time of the range for the request. If + // provided, events with a timestamp later than this time will not be returned. EndTime *int64 `locationName:"endTime" type:"long"` // A valid CloudWatch Logs filter pattern to use for filtering the response. @@ -2094,24 +1484,28 @@ type FilterLogEventsInput struct { // The maximum number of events to return in a page of results. Default is 10,000 // events. - Limit *int64 `locationName:"limit" min:"1" type:"integer"` + Limit *int64 `locationName:"limit" type:"integer"` // The name of the log group to query. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` // Optional list of log stream names within the specified log group to search. // Defaults to all the log streams in the log group. - LogStreamNames []*string `locationName:"logStreamNames" min:"1" type:"list"` + LogStreamNames []*string `locationName:"logStreamNames" type:"list"` // A pagination token obtained from a FilterLogEvents response to continue paginating - // the FilterLogEvents results. This token is omitted from the response when - // there are no other events to display. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + // the FilterLogEvents results. + NextToken *string `locationName:"nextToken" type:"string"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 - // 00:00:00 UTC. If provided, events with a timestamp prior to this time are - // not returned. + // A unix timestamp indicating the start time of the range for the request. + // If provided, events with a timestamp prior to this time will not be returned. StartTime *int64 `locationName:"startTime" type:"long"` + + metadataFilterLogEventsInput `json:"-" xml:"-"` +} + +type metadataFilterLogEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2124,47 +1518,25 @@ func (s FilterLogEventsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *FilterLogEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FilterLogEventsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.LogStreamNames != nil && len(s.LogStreamNames) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogStreamNames", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type FilterLogEventsOutput struct { - _ struct{} `type:"structure"` - // A list of FilteredLogEvent objects representing the matched events from the // request. Events []*FilteredLogEvent `locationName:"events" type:"list"` // A pagination token obtained from a FilterLogEvents response to continue paginating - // the FilterLogEvents results. This token is omitted from the response when - // there are no other events to display. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + // the FilterLogEvents results. + NextToken *string `locationName:"nextToken" type:"string"` // A list of SearchedLogStream objects indicating which log streams have been // searched in this request and whether each has been searched completely or // still has more to be paginated. SearchedLogStreams []*SearchedLogStream `locationName:"searchedLogStreams" type:"list"` + + metadataFilterLogEventsOutput `json:"-" xml:"-"` +} + +type metadataFilterLogEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2179,8 +1551,6 @@ func (s FilterLogEventsOutput) GoString() string { // Represents a matched event from a FilterLogEvents request. type FilteredLogEvent struct { - _ struct{} `type:"structure"` - // A unique identifier for this event. EventId *string `locationName:"eventId" type:"string"` @@ -2189,14 +1559,20 @@ type FilteredLogEvent struct { IngestionTime *int64 `locationName:"ingestionTime" type:"long"` // The name of the log stream this event belongs to. - LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"` + LogStreamName *string `locationName:"logStreamName" type:"string"` // The data contained in the log event. - Message *string `locationName:"message" min:"1" type:"string"` + Message *string `locationName:"message" type:"string"` // A point in time expressed as the number of milliseconds since Jan 1, 1970 // 00:00:00 UTC. Timestamp *int64 `locationName:"timestamp" type:"long"` + + metadataFilteredLogEvent `json:"-" xml:"-"` +} + +type metadataFilteredLogEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2210,8 +1586,6 @@ func (s FilteredLogEvent) GoString() string { } type GetLogEventsInput struct { - _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 // 00:00:00 UTC. EndTime *int64 `locationName:"endTime" type:"long"` @@ -2219,18 +1593,18 @@ type GetLogEventsInput struct { // The maximum number of log events returned in the response. If you don't specify // a value, the request would return as many log events as can fit in a response // size of 1MB, up to 10,000 log events. - Limit *int64 `locationName:"limit" min:"1" type:"integer"` + Limit *int64 `locationName:"limit" type:"integer"` // The name of the log group to query. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` // The name of the log stream to query. - LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` + LogStreamName *string `locationName:"logStreamName" type:"string" required:"true"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the nextForwardToken or nextBackwardToken // fields in the response of the previous GetLogEvents request. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` // If set to true, the earliest log events would be returned first. The default // is false (the latest log events are returned first). @@ -2239,6 +1613,12 @@ type GetLogEventsInput struct { // A point in time expressed as the number of milliseconds since Jan 1, 1970 // 00:00:00 UTC. StartTime *int64 `locationName:"startTime" type:"long"` + + metadataGetLogEventsInput `json:"-" xml:"-"` +} + +type metadataGetLogEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2251,48 +1631,24 @@ func (s GetLogEventsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetLogEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetLogEventsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.LogStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("LogStreamName")) - } - if s.LogStreamName != nil && len(*s.LogStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetLogEventsOutput struct { - _ struct{} `type:"structure"` - Events []*OutputLogEvent `locationName:"events" type:"list"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous request. The // token expires after 24 hours. - NextBackwardToken *string `locationName:"nextBackwardToken" min:"1" type:"string"` + NextBackwardToken *string `locationName:"nextBackwardToken" type:"string"` // A string token used for pagination that points to the next page of results. // It must be a value obtained from the response of the previous request. The // token expires after 24 hours. - NextForwardToken *string `locationName:"nextForwardToken" min:"1" type:"string"` + NextForwardToken *string `locationName:"nextForwardToken" type:"string"` + + metadataGetLogEventsOutput `json:"-" xml:"-"` +} + +type metadataGetLogEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2306,17 +1662,21 @@ func (s GetLogEventsOutput) GoString() string { } // A log event is a record of some activity that was recorded by the application -// or resource being monitored. The log event record that CloudWatch Logs understands -// contains two properties: the timestamp of when the event occurred, and the -// raw event message. +// or resource being monitored. The log event record that Amazon CloudWatch +// Logs understands contains two properties: the timestamp of when the event +// occurred, and the raw event message. type InputLogEvent struct { - _ struct{} `type:"structure"` - - Message *string `locationName:"message" min:"1" type:"string" required:"true"` + Message *string `locationName:"message" type:"string" required:"true"` // A point in time expressed as the number of milliseconds since Jan 1, 1970 // 00:00:00 UTC. Timestamp *int64 `locationName:"timestamp" type:"long" required:"true"` + + metadataInputLogEvent `json:"-" xml:"-"` +} + +type metadataInputLogEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2329,35 +1689,14 @@ func (s InputLogEvent) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InputLogEvent) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InputLogEvent"} - if s.Message == nil { - invalidParams.Add(request.NewErrParamRequired("Message")) - } - if s.Message != nil && len(*s.Message) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Message", 1)) - } - if s.Timestamp == nil { - invalidParams.Add(request.NewErrParamRequired("Timestamp")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type LogGroup struct { - _ struct{} `type:"structure"` - Arn *string `locationName:"arn" type:"string"` // A point in time expressed as the number of milliseconds since Jan 1, 1970 // 00:00:00 UTC. CreationTime *int64 `locationName:"creationTime" type:"long"` - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` + LogGroupName *string `locationName:"logGroupName" type:"string"` // The number of metric filters associated with the log group. MetricFilterCount *int64 `locationName:"metricFilterCount" type:"integer"` @@ -2368,6 +1707,12 @@ type LogGroup struct { RetentionInDays *int64 `locationName:"retentionInDays" type:"integer"` StoredBytes *int64 `locationName:"storedBytes" type:"long"` + + metadataLogGroup `json:"-" xml:"-"` +} + +type metadataLogGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2382,8 +1727,6 @@ func (s LogGroup) GoString() string { // A log stream is sequence of log events from a single emitter of logs. type LogStream struct { - _ struct{} `type:"structure"` - Arn *string `locationName:"arn" type:"string"` // A point in time expressed as the number of milliseconds since Jan 1, 1970 @@ -2402,14 +1745,20 @@ type LogStream struct { // 00:00:00 UTC. LastIngestionTime *int64 `locationName:"lastIngestionTime" type:"long"` - LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"` + LogStreamName *string `locationName:"logStreamName" type:"string"` StoredBytes *int64 `locationName:"storedBytes" type:"long"` // A string token used for making PutLogEvents requests. A sequenceToken can // only be used once, and PutLogEvents requests must include the sequenceToken // obtained from the response of the previous request. - UploadSequenceToken *string `locationName:"uploadSequenceToken" min:"1" type:"string"` + UploadSequenceToken *string `locationName:"uploadSequenceToken" type:"string"` + + metadataLogStream `json:"-" xml:"-"` +} + +type metadataLogStream struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2422,26 +1771,30 @@ func (s LogStream) GoString() string { return s.String() } -// Metric filters can be used to express how CloudWatch Logs would extract metric -// observations from ingested log events and transform them to metric data in -// a CloudWatch metric. +// Metric filters can be used to express how Amazon CloudWatch Logs would extract +// metric observations from ingested log events and transform them to metric +// data in a CloudWatch metric. type MetricFilter struct { - _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 // 00:00:00 UTC. CreationTime *int64 `locationName:"creationTime" type:"long"` // A name for a metric or subscription filter. - FilterName *string `locationName:"filterName" min:"1" type:"string"` + FilterName *string `locationName:"filterName" type:"string"` - // A symbolic description of how CloudWatch Logs should interpret the data in - // each log event. For example, a log event may contain timestamps, IP addresses, - // strings, and so on. You use the filter pattern to specify what to look for - // in the log event message. + // A symbolic description of how Amazon CloudWatch Logs should interpret the + // data in each log event. For example, a log event may contain timestamps, + // IP addresses, strings, and so on. You use the filter pattern to specify what + // to look for in the log event message. FilterPattern *string `locationName:"filterPattern" type:"string"` - MetricTransformations []*MetricTransformation `locationName:"metricTransformations" min:"1" type:"list"` + MetricTransformations []*MetricTransformation `locationName:"metricTransformations" type:"list"` + + metadataMetricFilter `json:"-" xml:"-"` +} + +type metadataMetricFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2455,13 +1808,17 @@ func (s MetricFilter) GoString() string { } type MetricFilterMatchRecord struct { - _ struct{} `type:"structure"` - - EventMessage *string `locationName:"eventMessage" min:"1" type:"string"` + EventMessage *string `locationName:"eventMessage" type:"string"` EventNumber *int64 `locationName:"eventNumber" type:"long"` ExtractedValues map[string]*string `locationName:"extractedValues" type:"map"` + + metadataMetricFilterMatchRecord `json:"-" xml:"-"` +} + +type metadataMetricFilterMatchRecord struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2475,8 +1832,6 @@ func (s MetricFilterMatchRecord) GoString() string { } type MetricTransformation struct { - _ struct{} `type:"structure"` - // The name of the CloudWatch metric to which the monitored log information // should be published. For example, you may publish to a metric called ErrorCount. MetricName *string `locationName:"metricName" type:"string" required:"true"` @@ -2489,6 +1844,12 @@ type MetricTransformation struct { // If you're counting the bytes transferred the published value will be the // value in the log event. MetricValue *string `locationName:"metricValue" type:"string" required:"true"` + + metadataMetricTransformation `json:"-" xml:"-"` +} + +type metadataMetricTransformation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2501,37 +1862,22 @@ func (s MetricTransformation) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MetricTransformation) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MetricTransformation"} - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } - if s.MetricNamespace == nil { - invalidParams.Add(request.NewErrParamRequired("MetricNamespace")) - } - if s.MetricValue == nil { - invalidParams.Add(request.NewErrParamRequired("MetricValue")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type OutputLogEvent struct { - _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 // 00:00:00 UTC. IngestionTime *int64 `locationName:"ingestionTime" type:"long"` - Message *string `locationName:"message" min:"1" type:"string"` + Message *string `locationName:"message" type:"string"` // A point in time expressed as the number of milliseconds since Jan 1, 1970 // 00:00:00 UTC. Timestamp *int64 `locationName:"timestamp" type:"long"` + + metadataOutputLogEvent `json:"-" xml:"-"` +} + +type metadataOutputLogEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2545,17 +1891,21 @@ func (s OutputLogEvent) GoString() string { } type PutDestinationInput struct { - _ struct{} `type:"structure"` - // A name for the destination. - DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"` + DestinationName *string `locationName:"destinationName" type:"string" required:"true"` - // The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon - // Kinesis PutRecord requests on the desitnation stream. - RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` + // The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to + // do Amazon Kinesis PutRecord requests on the desitnation stream. + RoleArn *string `locationName:"roleArn" type:"string" required:"true"` // The ARN of an Amazon Kinesis stream to deliver matching log events to. - TargetArn *string `locationName:"targetArn" min:"1" type:"string" required:"true"` + TargetArn *string `locationName:"targetArn" type:"string" required:"true"` + + metadataPutDestinationInput `json:"-" xml:"-"` +} + +type metadataPutDestinationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2568,39 +1918,14 @@ func (s PutDestinationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutDestinationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutDestinationInput"} - if s.DestinationName == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationName")) - } - if s.DestinationName != nil && len(*s.DestinationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DestinationName", 1)) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.RoleArn != nil && len(*s.RoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) - } - if s.TargetArn == nil { - invalidParams.Add(request.NewErrParamRequired("TargetArn")) - } - if s.TargetArn != nil && len(*s.TargetArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetArn", 1)) - } +type PutDestinationOutput struct { + Destination *Destination `locationName:"destination" type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataPutDestinationOutput `json:"-" xml:"-"` } -type PutDestinationOutput struct { - _ struct{} `type:"structure"` - - // A cross account destination that is the recipient of subscription log events. - Destination *Destination `locationName:"destination" type:"structure"` +type metadataPutDestinationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2614,14 +1939,18 @@ func (s PutDestinationOutput) GoString() string { } type PutDestinationPolicyInput struct { - _ struct{} `type:"structure"` - // An IAM policy document that authorizes cross-account users to deliver their // log events to associated destination. - AccessPolicy *string `locationName:"accessPolicy" min:"1" type:"string" required:"true"` + AccessPolicy *string `locationName:"accessPolicy" type:"string" required:"true"` // A name for an existing destination. - DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"` + DestinationName *string `locationName:"destinationName" type:"string" required:"true"` + + metadataPutDestinationPolicyInput `json:"-" xml:"-"` +} + +type metadataPutDestinationPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2634,30 +1963,12 @@ func (s PutDestinationPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutDestinationPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutDestinationPolicyInput"} - if s.AccessPolicy == nil { - invalidParams.Add(request.NewErrParamRequired("AccessPolicy")) - } - if s.AccessPolicy != nil && len(*s.AccessPolicy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccessPolicy", 1)) - } - if s.DestinationName == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationName")) - } - if s.DestinationName != nil && len(*s.DestinationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DestinationName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutDestinationPolicyOutput struct { + metadataPutDestinationPolicyOutput `json:"-" xml:"-"` } -type PutDestinationPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataPutDestinationPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2671,20 +1982,24 @@ func (s PutDestinationPolicyOutput) GoString() string { } type PutLogEventsInput struct { - _ struct{} `type:"structure"` - // A list of log events belonging to a log stream. - LogEvents []*InputLogEvent `locationName:"logEvents" min:"1" type:"list" required:"true"` + LogEvents []*InputLogEvent `locationName:"logEvents" type:"list" required:"true"` // The name of the log group to put log events to. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` // The name of the log stream to put log events to. - LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"` + LogStreamName *string `locationName:"logStreamName" type:"string" required:"true"` // A string token that must be obtained from the response of the previous PutLogEvents // request. - SequenceToken *string `locationName:"sequenceToken" min:"1" type:"string"` + SequenceToken *string `locationName:"sequenceToken" type:"string"` + + metadataPutLogEventsInput `json:"-" xml:"-"` +} + +type metadataPutLogEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2697,56 +2012,19 @@ func (s PutLogEventsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutLogEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutLogEventsInput"} - if s.LogEvents == nil { - invalidParams.Add(request.NewErrParamRequired("LogEvents")) - } - if s.LogEvents != nil && len(s.LogEvents) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogEvents", 1)) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.LogStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("LogStreamName")) - } - if s.LogStreamName != nil && len(*s.LogStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1)) - } - if s.SequenceToken != nil && len(*s.SequenceToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SequenceToken", 1)) - } - if s.LogEvents != nil { - for i, v := range s.LogEvents { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LogEvents", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PutLogEventsOutput struct { - _ struct{} `type:"structure"` - // A string token used for making PutLogEvents requests. A sequenceToken can // only be used once, and PutLogEvents requests must include the sequenceToken // obtained from the response of the previous request. - NextSequenceToken *string `locationName:"nextSequenceToken" min:"1" type:"string"` + NextSequenceToken *string `locationName:"nextSequenceToken" type:"string"` RejectedLogEventsInfo *RejectedLogEventsInfo `locationName:"rejectedLogEventsInfo" type:"structure"` + + metadataPutLogEventsOutput `json:"-" xml:"-"` +} + +type metadataPutLogEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2760,20 +2038,24 @@ func (s PutLogEventsOutput) GoString() string { } type PutMetricFilterInput struct { - _ struct{} `type:"structure"` - // A name for the metric filter. - FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` + FilterName *string `locationName:"filterName" type:"string" required:"true"` // A valid CloudWatch Logs filter pattern for extracting metric data out of // ingested log events. FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"` // The name of the log group to associate the metric filter with. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` // A collection of information needed to define how metric data gets emitted. - MetricTransformations []*MetricTransformation `locationName:"metricTransformations" min:"1" type:"list" required:"true"` + MetricTransformations []*MetricTransformation `locationName:"metricTransformations" type:"list" required:"true"` + + metadataPutMetricFilterInput `json:"-" xml:"-"` +} + +type metadataPutMetricFilterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2786,49 +2068,12 @@ func (s PutMetricFilterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutMetricFilterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutMetricFilterInput"} - if s.FilterName == nil { - invalidParams.Add(request.NewErrParamRequired("FilterName")) - } - if s.FilterName != nil && len(*s.FilterName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FilterName", 1)) - } - if s.FilterPattern == nil { - invalidParams.Add(request.NewErrParamRequired("FilterPattern")) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.MetricTransformations == nil { - invalidParams.Add(request.NewErrParamRequired("MetricTransformations")) - } - if s.MetricTransformations != nil && len(s.MetricTransformations) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MetricTransformations", 1)) - } - if s.MetricTransformations != nil { - for i, v := range s.MetricTransformations { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricTransformations", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutMetricFilterOutput struct { + metadataPutMetricFilterOutput `json:"-" xml:"-"` } -type PutMetricFilterOutput struct { - _ struct{} `type:"structure"` +type metadataPutMetricFilterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2842,15 +2087,19 @@ func (s PutMetricFilterOutput) GoString() string { } type PutRetentionPolicyInput struct { - _ struct{} `type:"structure"` - // The name of the log group to associate the retention policy with. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` // Specifies the number of days you want to retain log events in the specified // log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, // 365, 400, 545, 731, 1827, 3653. RetentionInDays *int64 `locationName:"retentionInDays" type:"integer" required:"true"` + + metadataPutRetentionPolicyInput `json:"-" xml:"-"` +} + +type metadataPutRetentionPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2863,27 +2112,12 @@ func (s PutRetentionPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRetentionPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRetentionPolicyInput"} - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.RetentionInDays == nil { - invalidParams.Add(request.NewErrParamRequired("RetentionInDays")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutRetentionPolicyOutput struct { + metadataPutRetentionPolicyOutput `json:"-" xml:"-"` } -type PutRetentionPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataPutRetentionPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2897,33 +2131,34 @@ func (s PutRetentionPolicyOutput) GoString() string { } type PutSubscriptionFilterInput struct { - _ struct{} `type:"structure"` - // The ARN of the destination to deliver matching log events to. Currently, - // the supported destinations are: An Amazon Kinesis stream belonging to the + // the supported destinations are: A Amazon Kinesis stream belonging to the // same account as the subscription filter, for same-account delivery. A logical // destination (used via an ARN of Destination) belonging to a different account, - // for cross-account delivery. An Amazon Kinesis Firehose stream belonging - // to the same account as the subscription filter, for same-account delivery. - // An AWS Lambda function belonging to the same account as the subscription - // filter, for same-account delivery. - DestinationArn *string `locationName:"destinationArn" min:"1" type:"string" required:"true"` + // for cross-account delivery. + DestinationArn *string `locationName:"destinationArn" type:"string" required:"true"` // A name for the subscription filter. - FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"` + FilterName *string `locationName:"filterName" type:"string" required:"true"` // A valid CloudWatch Logs filter pattern for subscribing to a filtered stream // of log events. FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"` // The name of the log group to associate the subscription filter with. - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + LogGroupName *string `locationName:"logGroupName" type:"string" required:"true"` + + // The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to + // deliver ingested log events to the destination stream. You don't need to + // provide the ARN when you are working with a logical destination (used via + // an ARN of Destination) for cross-account delivery. + RoleArn *string `locationName:"roleArn" type:"string"` + + metadataPutSubscriptionFilterInput `json:"-" xml:"-"` +} - // The ARN of an IAM role that grants CloudWatch Logs permissions to deliver - // ingested log events to the destination stream. You don't need to provide - // the ARN when you are working with a logical destination (used via an ARN - // of Destination) for cross-account delivery. - RoleArn *string `locationName:"roleArn" min:"1" type:"string"` +type metadataPutSubscriptionFilterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2936,42 +2171,12 @@ func (s PutSubscriptionFilterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutSubscriptionFilterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutSubscriptionFilterInput"} - if s.DestinationArn == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationArn")) - } - if s.DestinationArn != nil && len(*s.DestinationArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DestinationArn", 1)) - } - if s.FilterName == nil { - invalidParams.Add(request.NewErrParamRequired("FilterName")) - } - if s.FilterName != nil && len(*s.FilterName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FilterName", 1)) - } - if s.FilterPattern == nil { - invalidParams.Add(request.NewErrParamRequired("FilterPattern")) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1)) - } - if s.RoleArn != nil && len(*s.RoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutSubscriptionFilterOutput struct { + metadataPutSubscriptionFilterOutput `json:"-" xml:"-"` } -type PutSubscriptionFilterOutput struct { - _ struct{} `type:"structure"` +type metadataPutSubscriptionFilterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2985,13 +2190,17 @@ func (s PutSubscriptionFilterOutput) GoString() string { } type RejectedLogEventsInfo struct { - _ struct{} `type:"structure"` - ExpiredLogEventEndIndex *int64 `locationName:"expiredLogEventEndIndex" type:"integer"` TooNewLogEventStartIndex *int64 `locationName:"tooNewLogEventStartIndex" type:"integer"` TooOldLogEventEndIndex *int64 `locationName:"tooOldLogEventEndIndex" type:"integer"` + + metadataRejectedLogEventsInfo `json:"-" xml:"-"` +} + +type metadataRejectedLogEventsInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3007,14 +2216,18 @@ func (s RejectedLogEventsInfo) GoString() string { // An object indicating the search status of a log stream in a FilterLogEvents // request. type SearchedLogStream struct { - _ struct{} `type:"structure"` - // The name of the log stream. - LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"` + LogStreamName *string `locationName:"logStreamName" type:"string"` // Indicates whether all the events in this log stream were searched or more // data exists to search by paginating further. SearchedCompletely *bool `locationName:"searchedCompletely" type:"boolean"` + + metadataSearchedLogStream `json:"-" xml:"-"` +} + +type metadataSearchedLogStream struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3028,26 +2241,30 @@ func (s SearchedLogStream) GoString() string { } type SubscriptionFilter struct { - _ struct{} `type:"structure"` - // A point in time expressed as the number of milliseconds since Jan 1, 1970 // 00:00:00 UTC. CreationTime *int64 `locationName:"creationTime" type:"long"` - DestinationArn *string `locationName:"destinationArn" min:"1" type:"string"` + DestinationArn *string `locationName:"destinationArn" type:"string"` // A name for a metric or subscription filter. - FilterName *string `locationName:"filterName" min:"1" type:"string"` + FilterName *string `locationName:"filterName" type:"string"` - // A symbolic description of how CloudWatch Logs should interpret the data in - // each log event. For example, a log event may contain timestamps, IP addresses, - // strings, and so on. You use the filter pattern to specify what to look for - // in the log event message. + // A symbolic description of how Amazon CloudWatch Logs should interpret the + // data in each log event. For example, a log event may contain timestamps, + // IP addresses, strings, and so on. You use the filter pattern to specify what + // to look for in the log event message. FilterPattern *string `locationName:"filterPattern" type:"string"` - LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` + LogGroupName *string `locationName:"logGroupName" type:"string"` + + RoleArn *string `locationName:"roleArn" type:"string"` + + metadataSubscriptionFilter `json:"-" xml:"-"` +} - RoleArn *string `locationName:"roleArn" min:"1" type:"string"` +type metadataSubscriptionFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3061,16 +2278,20 @@ func (s SubscriptionFilter) GoString() string { } type TestMetricFilterInput struct { - _ struct{} `type:"structure"` - - // A symbolic description of how CloudWatch Logs should interpret the data in - // each log event. For example, a log event may contain timestamps, IP addresses, - // strings, and so on. You use the filter pattern to specify what to look for - // in the log event message. + // A symbolic description of how Amazon CloudWatch Logs should interpret the + // data in each log event. For example, a log event may contain timestamps, + // IP addresses, strings, and so on. You use the filter pattern to specify what + // to look for in the log event message. FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"` // A list of log event messages to test. - LogEventMessages []*string `locationName:"logEventMessages" min:"1" type:"list" required:"true"` + LogEventMessages []*string `locationName:"logEventMessages" type:"list" required:"true"` + + metadataTestMetricFilterInput `json:"-" xml:"-"` +} + +type metadataTestMetricFilterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3083,29 +2304,14 @@ func (s TestMetricFilterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TestMetricFilterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TestMetricFilterInput"} - if s.FilterPattern == nil { - invalidParams.Add(request.NewErrParamRequired("FilterPattern")) - } - if s.LogEventMessages == nil { - invalidParams.Add(request.NewErrParamRequired("LogEventMessages")) - } - if s.LogEventMessages != nil && len(s.LogEventMessages) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogEventMessages", 1)) - } +type TestMetricFilterOutput struct { + Matches []*MetricFilterMatchRecord `locationName:"matches" type:"list"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataTestMetricFilterOutput `json:"-" xml:"-"` } -type TestMetricFilterOutput struct { - _ struct{} `type:"structure"` - - Matches []*MetricFilterMatchRecord `locationName:"matches" type:"list"` +type metadataTestMetricFilterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3118,21 +2324,6 @@ func (s TestMetricFilterOutput) GoString() string { return s.String() } -const ( - // @enum ExportTaskStatusCode - ExportTaskStatusCodeCancelled = "CANCELLED" - // @enum ExportTaskStatusCode - ExportTaskStatusCodeCompleted = "COMPLETED" - // @enum ExportTaskStatusCode - ExportTaskStatusCodeFailed = "FAILED" - // @enum ExportTaskStatusCode - ExportTaskStatusCodePending = "PENDING" - // @enum ExportTaskStatusCode - ExportTaskStatusCodePendingCancel = "PENDING_CANCEL" - // @enum ExportTaskStatusCode - ExportTaskStatusCodeRunning = "RUNNING" -) - const ( // @enum OrderBy OrderByLogStreamName = "LogStreamName" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go index c4d87b795..0dd44fd7a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface.go @@ -10,14 +10,6 @@ import ( // CloudWatchLogsAPI is the interface type for cloudwatchlogs.CloudWatchLogs. type CloudWatchLogsAPI interface { - CancelExportTaskRequest(*cloudwatchlogs.CancelExportTaskInput) (*request.Request, *cloudwatchlogs.CancelExportTaskOutput) - - CancelExportTask(*cloudwatchlogs.CancelExportTaskInput) (*cloudwatchlogs.CancelExportTaskOutput, error) - - CreateExportTaskRequest(*cloudwatchlogs.CreateExportTaskInput) (*request.Request, *cloudwatchlogs.CreateExportTaskOutput) - - CreateExportTask(*cloudwatchlogs.CreateExportTaskInput) (*cloudwatchlogs.CreateExportTaskOutput, error) - CreateLogGroupRequest(*cloudwatchlogs.CreateLogGroupInput) (*request.Request, *cloudwatchlogs.CreateLogGroupOutput) CreateLogGroup(*cloudwatchlogs.CreateLogGroupInput) (*cloudwatchlogs.CreateLogGroupOutput, error) @@ -56,10 +48,6 @@ type CloudWatchLogsAPI interface { DescribeDestinationsPages(*cloudwatchlogs.DescribeDestinationsInput, func(*cloudwatchlogs.DescribeDestinationsOutput, bool) bool) error - DescribeExportTasksRequest(*cloudwatchlogs.DescribeExportTasksInput) (*request.Request, *cloudwatchlogs.DescribeExportTasksOutput) - - DescribeExportTasks(*cloudwatchlogs.DescribeExportTasksInput) (*cloudwatchlogs.DescribeExportTasksOutput, error) - DescribeLogGroupsRequest(*cloudwatchlogs.DescribeLogGroupsInput) (*request.Request, *cloudwatchlogs.DescribeLogGroupsOutput) DescribeLogGroups(*cloudwatchlogs.DescribeLogGroupsInput) (*cloudwatchlogs.DescribeLogGroupsOutput, error) @@ -124,5 +112,3 @@ type CloudWatchLogsAPI interface { TestMetricFilter(*cloudwatchlogs.TestMetricFilterInput) (*cloudwatchlogs.TestMetricFilterOutput, error) } - -var _ CloudWatchLogsAPI = (*cloudwatchlogs.CloudWatchLogs)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface_test.go new file mode 100644 index 000000000..9b057955d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cloudwatchlogsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/cloudwatchlogs" + "github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*cloudwatchlogsiface.CloudWatchLogsAPI)(nil), cloudwatchlogs.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go index 13c56fc88..ea65d04a8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/examples_test.go @@ -8,59 +8,14 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudwatchlogs" ) var _ time.Duration var _ bytes.Buffer -func ExampleCloudWatchLogs_CancelExportTask() { - svc := cloudwatchlogs.New(session.New()) - - params := &cloudwatchlogs.CancelExportTaskInput{ - TaskId: aws.String("ExportTaskId"), // Required - } - resp, err := svc.CancelExportTask(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCloudWatchLogs_CreateExportTask() { - svc := cloudwatchlogs.New(session.New()) - - params := &cloudwatchlogs.CreateExportTaskInput{ - Destination: aws.String("ExportDestinationBucket"), // Required - From: aws.Int64(1), // Required - LogGroupName: aws.String("LogGroupName"), // Required - To: aws.Int64(1), // Required - DestinationPrefix: aws.String("ExportDestinationPrefix"), - LogStreamNamePrefix: aws.String("LogStreamName"), - TaskName: aws.String("ExportTaskName"), - } - resp, err := svc.CreateExportTask(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudWatchLogs_CreateLogGroup() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.CreateLogGroupInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -79,7 +34,7 @@ func ExampleCloudWatchLogs_CreateLogGroup() { } func ExampleCloudWatchLogs_CreateLogStream() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.CreateLogStreamInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -99,7 +54,7 @@ func ExampleCloudWatchLogs_CreateLogStream() { } func ExampleCloudWatchLogs_DeleteDestination() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DeleteDestinationInput{ DestinationName: aws.String("DestinationName"), // Required @@ -118,7 +73,7 @@ func ExampleCloudWatchLogs_DeleteDestination() { } func ExampleCloudWatchLogs_DeleteLogGroup() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DeleteLogGroupInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -137,7 +92,7 @@ func ExampleCloudWatchLogs_DeleteLogGroup() { } func ExampleCloudWatchLogs_DeleteLogStream() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DeleteLogStreamInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -157,7 +112,7 @@ func ExampleCloudWatchLogs_DeleteLogStream() { } func ExampleCloudWatchLogs_DeleteMetricFilter() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DeleteMetricFilterInput{ FilterName: aws.String("FilterName"), // Required @@ -177,7 +132,7 @@ func ExampleCloudWatchLogs_DeleteMetricFilter() { } func ExampleCloudWatchLogs_DeleteRetentionPolicy() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DeleteRetentionPolicyInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -196,7 +151,7 @@ func ExampleCloudWatchLogs_DeleteRetentionPolicy() { } func ExampleCloudWatchLogs_DeleteSubscriptionFilter() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DeleteSubscriptionFilterInput{ FilterName: aws.String("FilterName"), // Required @@ -216,7 +171,7 @@ func ExampleCloudWatchLogs_DeleteSubscriptionFilter() { } func ExampleCloudWatchLogs_DescribeDestinations() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DescribeDestinationsInput{ DestinationNamePrefix: aws.String("DestinationName"), @@ -236,30 +191,8 @@ func ExampleCloudWatchLogs_DescribeDestinations() { fmt.Println(resp) } -func ExampleCloudWatchLogs_DescribeExportTasks() { - svc := cloudwatchlogs.New(session.New()) - - params := &cloudwatchlogs.DescribeExportTasksInput{ - Limit: aws.Int64(1), - NextToken: aws.String("NextToken"), - StatusCode: aws.String("ExportTaskStatusCode"), - TaskId: aws.String("ExportTaskId"), - } - resp, err := svc.DescribeExportTasks(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCloudWatchLogs_DescribeLogGroups() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DescribeLogGroupsInput{ Limit: aws.Int64(1), @@ -280,7 +213,7 @@ func ExampleCloudWatchLogs_DescribeLogGroups() { } func ExampleCloudWatchLogs_DescribeLogStreams() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DescribeLogStreamsInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -304,7 +237,7 @@ func ExampleCloudWatchLogs_DescribeLogStreams() { } func ExampleCloudWatchLogs_DescribeMetricFilters() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DescribeMetricFiltersInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -326,7 +259,7 @@ func ExampleCloudWatchLogs_DescribeMetricFilters() { } func ExampleCloudWatchLogs_DescribeSubscriptionFilters() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.DescribeSubscriptionFiltersInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -348,7 +281,7 @@ func ExampleCloudWatchLogs_DescribeSubscriptionFilters() { } func ExampleCloudWatchLogs_FilterLogEvents() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.FilterLogEventsInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -377,7 +310,7 @@ func ExampleCloudWatchLogs_FilterLogEvents() { } func ExampleCloudWatchLogs_GetLogEvents() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.GetLogEventsInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -402,7 +335,7 @@ func ExampleCloudWatchLogs_GetLogEvents() { } func ExampleCloudWatchLogs_PutDestination() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.PutDestinationInput{ DestinationName: aws.String("DestinationName"), // Required @@ -423,7 +356,7 @@ func ExampleCloudWatchLogs_PutDestination() { } func ExampleCloudWatchLogs_PutDestinationPolicy() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.PutDestinationPolicyInput{ AccessPolicy: aws.String("AccessPolicy"), // Required @@ -443,7 +376,7 @@ func ExampleCloudWatchLogs_PutDestinationPolicy() { } func ExampleCloudWatchLogs_PutLogEvents() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.PutLogEventsInput{ LogEvents: []*cloudwatchlogs.InputLogEvent{ // Required @@ -471,7 +404,7 @@ func ExampleCloudWatchLogs_PutLogEvents() { } func ExampleCloudWatchLogs_PutMetricFilter() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.PutMetricFilterInput{ FilterName: aws.String("FilterName"), // Required @@ -500,7 +433,7 @@ func ExampleCloudWatchLogs_PutMetricFilter() { } func ExampleCloudWatchLogs_PutRetentionPolicy() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.PutRetentionPolicyInput{ LogGroupName: aws.String("LogGroupName"), // Required @@ -520,7 +453,7 @@ func ExampleCloudWatchLogs_PutRetentionPolicy() { } func ExampleCloudWatchLogs_PutSubscriptionFilter() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.PutSubscriptionFilterInput{ DestinationArn: aws.String("DestinationArn"), // Required @@ -543,7 +476,7 @@ func ExampleCloudWatchLogs_PutSubscriptionFilter() { } func ExampleCloudWatchLogs_TestMetricFilter() { - svc := cloudwatchlogs.New(session.New()) + svc := cloudwatchlogs.New(nil) params := &cloudwatchlogs.TestMetricFilterInput{ FilterPattern: aws.String("FilterPattern"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go index e5a47270c..a9dcc590f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go @@ -4,102 +4,82 @@ package cloudwatchlogs import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -// You can use Amazon CloudWatch Logs to monitor, store, and access your log -// files from Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon CloudTrail, -// or other sources. You can then retrieve the associated log data from CloudWatch -// Logs using the Amazon CloudWatch console, the CloudWatch Logs commands in -// the AWS CLI, the CloudWatch Logs API, or the CloudWatch Logs SDK. +// This is the Amazon CloudWatch Logs API Reference. Amazon CloudWatch Logs +// enables you to monitor, store, and access your system, application, and custom +// log files. This guide provides detailed information about Amazon CloudWatch +// Logs actions, data types, parameters, and errors. For detailed information +// about Amazon CloudWatch Logs features and their associated API calls, go +// to the Amazon CloudWatch Developer Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide). // -// You can use CloudWatch Logs to: +// Use the following links to get started using the Amazon CloudWatch Logs +// API Reference: // -// Monitor Logs from Amazon EC2 Instances in Real-time: You can use CloudWatch -// Logs to monitor applications and systems using log data. For example, CloudWatch -// Logs can track the number of errors that occur in your application logs and -// send you a notification whenever the rate of errors exceeds a threshold you -// specify. CloudWatch Logs uses your log data for monitoring; so, no code changes -// are required. For example, you can monitor application logs for specific -// literal terms (such as "NullReferenceException") or count the number of occurrences -// of a literal term at a particular position in log data (such as "404" status -// codes in an Apache access log). When the term you are searching for is found, -// CloudWatch Logs reports the data to a Amazon CloudWatch metric that you specify. +// Actions (http://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_Operations.html): +// An alphabetical list of all Amazon CloudWatch Logs actions. Data Types (http://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_Types.html): +// An alphabetical list of all Amazon CloudWatch Logs data types. Common Parameters +// (http://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/CommonParameters.html): +// Parameters that all Query actions can use. Common Errors (http://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/CommonErrors.html): +// Client and server errors that all actions can return. Regions and Endpoints +// (http://docs.aws.amazon.com/general/latest/gr/index.html?rande.html): Itemized +// regions and endpoints for all AWS products. In addition to using the Amazon +// CloudWatch Logs API, you can also use the following SDKs and third-party +// libraries to access Amazon CloudWatch Logs programmatically. // -// Monitor Amazon CloudTrail Logged Events: You can create alarms in Amazon -// CloudWatch and receive notifications of particular API activity as captured -// by CloudTrail and use the notification to perform troubleshooting. +// AWS SDK for Java Documentation (http://aws.amazon.com/documentation/sdkforjava/) +// AWS SDK for .NET Documentation (http://aws.amazon.com/documentation/sdkfornet/) +// AWS SDK for PHP Documentation (http://aws.amazon.com/documentation/sdkforphp/) +// AWS SDK for Ruby Documentation (http://aws.amazon.com/documentation/sdkforruby/) +// Developers in the AWS developer community also provide their own libraries, +// which you can find at the following AWS developer centers: // -// Archive Log Data: You can use CloudWatch Logs to store your log data in -// highly durable storage. You can change the log retention setting so that -// any log events older than this setting are automatically deleted. The CloudWatch -// Logs agent makes it easy to quickly send both rotated and non-rotated log -// data off of a host and into the log service. You can then access the raw -// log data when you need it. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// AWS Java Developer Center (http://aws.amazon.com/java/) AWS PHP Developer +// Center (http://aws.amazon.com/php/) AWS Python Developer Center (http://aws.amazon.com/python/) +// AWS Ruby Developer Center (http://aws.amazon.com/ruby/) AWS Windows and .NET +// Developer Center (http://aws.amazon.com/net/) type CloudWatchLogs struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "logs" - -// New creates a new instance of the CloudWatchLogs client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CloudWatchLogs client from just a session. -// svc := cloudwatchlogs.New(mySession) -// -// // Create a CloudWatchLogs client with additional configuration -// svc := cloudwatchlogs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudWatchLogs { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CloudWatchLogs { - svc := &CloudWatchLogs{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-03-28", - JSONVersion: "1.1", - TargetPrefix: "Logs_20140328", - }, - handlers, - ), +// New returns a new CloudWatchLogs client. +func New(config *aws.Config) *CloudWatchLogs { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "logs", + APIVersion: "2014-03-28", + JSONVersion: "1.1", + TargetPrefix: "Logs_20140328", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CloudWatchLogs{service} } // newRequest creates a new request for a CloudWatchLogs operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go index 88d3a006c..63cd9bf27 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/api.go @@ -8,8 +8,6 @@ import ( "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/private/protocol/jsonrpc" ) const opBatchGetRepositories = "BatchGetRepositories" @@ -32,7 +30,7 @@ func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInpu return } -// Returns information about one or more repositories. +// Gets information about one or more repositories. // // The description field for a repository accepts all HTML characters and all // valid Unicode characters. Applications that do not HTML-encode the description @@ -60,8 +58,6 @@ func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateBranchOutput{} req.Data = output return @@ -156,7 +152,7 @@ func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Reque return } -// Returns information about a repository branch, including its name and the +// Retrieves information about a repository branch, including its name and the // last commit ID. func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) { req, out := c.GetBranchRequest(input) @@ -164,34 +160,6 @@ func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) return out, err } -const opGetCommit = "GetCommit" - -// GetCommitRequest generates a request for the GetCommit operation. -func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Request, output *GetCommitOutput) { - op := &request.Operation{ - Name: opGetCommit, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetCommitInput{} - } - - req = c.newRequest(op, input, output) - output = &GetCommitOutput{} - req.Data = output - return -} - -// Returns information about a commit, including commit message and committer -// information. -func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error) { - req, out := c.GetCommitRequest(input) - err := req.Send() - return out, err -} - const opGetRepository = "GetRepository" // GetRepositoryRequest generates a request for the GetRepository operation. @@ -212,7 +180,7 @@ func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *reque return } -// Returns information about a repository. +// Gets information about a repository. // // The description field for a repository accepts all HTML characters and all // valid Unicode characters. Applications that do not HTML-encode the description @@ -225,33 +193,6 @@ func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOut return out, err } -const opGetRepositoryTriggers = "GetRepositoryTriggers" - -// GetRepositoryTriggersRequest generates a request for the GetRepositoryTriggers operation. -func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersInput) (req *request.Request, output *GetRepositoryTriggersOutput) { - op := &request.Operation{ - Name: opGetRepositoryTriggers, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetRepositoryTriggersInput{} - } - - req = c.newRequest(op, input, output) - output = &GetRepositoryTriggersOutput{} - req.Data = output - return -} - -// Gets information about triggers configured for a repository. -func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*GetRepositoryTriggersOutput, error) { - req, out := c.GetRepositoryTriggersRequest(input) - err := req.Send() - return out, err -} - const opListBranches = "ListBranches" // ListBranchesRequest generates a request for the ListBranches operation. @@ -260,12 +201,6 @@ func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request Name: opListBranches, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "", - TruncationToken: "", - }, } if input == nil { @@ -285,14 +220,6 @@ func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput return out, err } -func (c *CodeCommit) ListBranchesPages(input *ListBranchesInput, fn func(p *ListBranchesOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListBranchesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListBranchesOutput), lastPage) - }) -} - const opListRepositories = "ListRepositories" // ListRepositoriesRequest generates a request for the ListRepositories operation. @@ -301,12 +228,6 @@ func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req Name: opListRepositories, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "", - TruncationToken: "", - }, } if input == nil { @@ -326,72 +247,6 @@ func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListReposi return out, err } -func (c *CodeCommit) ListRepositoriesPages(input *ListRepositoriesInput, fn func(p *ListRepositoriesOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListRepositoriesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListRepositoriesOutput), lastPage) - }) -} - -const opPutRepositoryTriggers = "PutRepositoryTriggers" - -// PutRepositoryTriggersRequest generates a request for the PutRepositoryTriggers operation. -func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersInput) (req *request.Request, output *PutRepositoryTriggersOutput) { - op := &request.Operation{ - Name: opPutRepositoryTriggers, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutRepositoryTriggersInput{} - } - - req = c.newRequest(op, input, output) - output = &PutRepositoryTriggersOutput{} - req.Data = output - return -} - -// Replaces all triggers for a repository. This can be used to create or delete -// triggers. -func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*PutRepositoryTriggersOutput, error) { - req, out := c.PutRepositoryTriggersRequest(input) - err := req.Send() - return out, err -} - -const opTestRepositoryTriggers = "TestRepositoryTriggers" - -// TestRepositoryTriggersRequest generates a request for the TestRepositoryTriggers operation. -func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggersInput) (req *request.Request, output *TestRepositoryTriggersOutput) { - op := &request.Operation{ - Name: opTestRepositoryTriggers, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &TestRepositoryTriggersInput{} - } - - req = c.newRequest(op, input, output) - output = &TestRepositoryTriggersOutput{} - req.Data = output - return -} - -// Tests the functionality of repository triggers by sending information to -// the trigger target. If real data is available in the repository, the test -// will send data from the last commit. If no data is available, sample data -// will be generated. -func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput) (*TestRepositoryTriggersOutput, error) { - req, out := c.TestRepositoryTriggersRequest(input) - err := req.Send() - return out, err -} - const opUpdateDefaultBranch = "UpdateDefaultBranch" // UpdateDefaultBranchRequest generates a request for the UpdateDefaultBranch operation. @@ -407,8 +262,6 @@ func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateDefaultBranchOutput{} req.Data = output return @@ -440,8 +293,6 @@ func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryD } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateRepositoryDescriptionOutput{} req.Data = output return @@ -475,19 +326,12 @@ func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInpu } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateRepositoryNameOutput{} req.Data = output return } -// Renames a repository. The repository name must be unique across the calling -// AWS account. In addition, repository names are limited to 100 alphanumeric, -// dash, and underscore characters, and cannot include certain characters. The -// suffix ".git" is prohibited. For a full description of the limits on repository -// names, see Limits (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) -// in the AWS CodeCommit User Guide. +// Renames a repository. func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*UpdateRepositoryNameOutput, error) { req, out := c.UpdateRepositoryNameRequest(input) err := req.Send() @@ -496,10 +340,14 @@ func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*Up // Represents the input of a batch get repositories operation. type BatchGetRepositoriesInput struct { - _ struct{} `type:"structure"` - // The names of the repositories to get information about. RepositoryNames []*string `locationName:"repositoryNames" type:"list" required:"true"` + + metadataBatchGetRepositoriesInput `json:"-" xml:"-"` +} + +type metadataBatchGetRepositoriesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -512,28 +360,19 @@ func (s BatchGetRepositoriesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchGetRepositoriesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchGetRepositoriesInput"} - if s.RepositoryNames == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a batch get repositories operation. type BatchGetRepositoriesOutput struct { - _ struct{} `type:"structure"` - // A list of repositories returned by the batch get repositories operation. Repositories []*RepositoryMetadata `locationName:"repositories" type:"list"` // Returns a list of repository names for which information could not be found. RepositoriesNotFound []*string `locationName:"repositoriesNotFound" type:"list"` + + metadataBatchGetRepositoriesOutput `json:"-" xml:"-"` +} + +type metadataBatchGetRepositoriesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -548,73 +387,48 @@ func (s BatchGetRepositoriesOutput) GoString() string { // Returns information about a branch. type BranchInfo struct { - _ struct{} `type:"structure"` - // The name of the branch. - BranchName *string `locationName:"branchName" min:"1" type:"string"` + BranchName *string `locationName:"branchName" type:"string"` // The ID of the last commit made to the branch. CommitId *string `locationName:"commitId" type:"string"` -} -// String returns the string representation -func (s BranchInfo) String() string { - return awsutil.Prettify(s) + metadataBranchInfo `json:"-" xml:"-"` } -// GoString returns the string representation -func (s BranchInfo) GoString() string { - return s.String() -} - -// Returns information about a specific commit. -type Commit struct { - _ struct{} `type:"structure"` - - // Any additional data associated with the specified commit. - AdditionalData *string `locationName:"additionalData" type:"string"` - - // Information about the author of the specified commit. - Author *UserInfo `locationName:"author" type:"structure"` - - // Information about the person who committed the specified commit, also known - // as the committer. 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 message associated with the specified commit. - Message *string `locationName:"message" type:"string"` - - // The parent list for the specified commit. - Parents []*string `locationName:"parents" type:"list"` - - // Tree information for the specified commit. - TreeId *string `locationName:"treeId" type:"string"` +type metadataBranchInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Commit) String() string { +func (s BranchInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Commit) GoString() string { +func (s BranchInfo) GoString() string { return s.String() } // Represents the input of a create branch operation. type CreateBranchInput struct { - _ struct{} `type:"structure"` - // The name of the new branch to create. - BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` + BranchName *string `locationName:"branchName" type:"string" required:"true"` // The ID of the commit to point the new branch to. + // + // If this commit ID is not specified, the new branch will point to the commit + // that is pointed to by the repository's default branch. CommitId *string `locationName:"commitId" type:"string" required:"true"` // The name of the repository in which you want to create the new branch. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + RepositoryName *string `locationName:"repositoryName" type:"string" required:"true"` + + metadataCreateBranchInput `json:"-" xml:"-"` +} + +type metadataCreateBranchInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -627,33 +441,12 @@ 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 +type CreateBranchOutput struct { + metadataCreateBranchOutput `json:"-" xml:"-"` } -type CreateBranchOutput struct { - _ struct{} `type:"structure"` +type metadataCreateBranchOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -668,25 +461,21 @@ func (s CreateBranchOutput) GoString() string { // 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 web page could 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 web page. 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. In addition, - // repository names are limited to 100 alphanumeric, dash, and underscore characters, - // and cannot include certain characters. For a full description of the limits - // on repository names, see Limits (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) - // in the AWS CodeCommit User Guide. The suffix ".git" is prohibited. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + // repository names are restricted to alphanumeric characters. The suffix ".git" + // is prohibited. + RepositoryName *string `locationName:"repositoryName" type:"string" required:"true"` + + metadataCreateRepositoryInput `json:"-" xml:"-"` +} + +type metadataCreateRepositoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -699,28 +488,16 @@ 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 -} - // 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"` + + metadataCreateRepositoryOutput `json:"-" xml:"-"` +} + +type metadataCreateRepositoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -735,10 +512,14 @@ func (s CreateRepositoryOutput) GoString() string { // Represents the input of a delete repository operation. type DeleteRepositoryInput struct { - _ struct{} `type:"structure"` - // The name of the repository to delete. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + RepositoryName *string `locationName:"repositoryName" type:"string" required:"true"` + + metadataDeleteRepositoryInput `json:"-" xml:"-"` +} + +type metadataDeleteRepositoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -751,28 +532,16 @@ 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 -} - // 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"` + + metadataDeleteRepositoryOutput `json:"-" xml:"-"` +} + +type metadataDeleteRepositoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -787,14 +556,19 @@ func (s DeleteRepositoryOutput) GoString() string { // 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"` + BranchName *string `locationName:"branchName" type:"string"` + + // Repository name is restricted to alphanumeric characters (a-z, A-Z, 0-9), + // ".", "_", and "-". Additionally, the suffix ".git" is prohibited in a repository + // name. + RepositoryName *string `locationName:"repositoryName" type:"string"` + + metadataGetBranchInput `json:"-" xml:"-"` +} - // The name of the repository that contains the branch for which you want to - // retrieve information. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +type metadataGetBranchInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -807,104 +581,38 @@ 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 -} - // 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) + metadataGetBranchOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s GetBranchOutput) GoString() string { - return s.String() -} - -// Represents the input of a get commit operation. -type GetCommitInput struct { - _ struct{} `type:"structure"` - - // The commit ID. - CommitId *string `locationName:"commitId" type:"string" required:"true"` - - // The name of the repository to which the commit was made. - 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 -} - -// Represents the output of a get commit operation. -type GetCommitOutput struct { - _ struct{} `type:"structure"` - - // Information about the specified commit. - Commit *Commit `locationName:"commit" type:"structure" required:"true"` +type metadataGetBranchOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetCommitOutput) String() string { +func (s GetBranchOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommitOutput) GoString() string { +func (s GetBranchOutput) GoString() string { return s.String() } // Represents the input of a get repository operation. type GetRepositoryInput struct { - _ struct{} `type:"structure"` - // The name of the repository to get information about. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + RepositoryName *string `locationName:"repositoryName" type:"string" required:"true"` + + metadataGetRepositoryInput `json:"-" xml:"-"` +} + +type metadataGetRepositoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -917,101 +625,41 @@ 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 -} - // 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) + metadataGetRepositoryOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s GetRepositoryOutput) GoString() string { - return s.String() -} - -// 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 *string `locationName:"repositoryName" min:"1" type:"string"` +type metadataGetRepositoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // 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 && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// 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 { +func (s GetRepositoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRepositoryTriggersOutput) GoString() string { +func (s GetRepositoryOutput) GoString() string { return s.String() } // Represents the input of a list branches operation. type ListBranchesInput struct { - _ struct{} `type:"structure"` - // 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 branches. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + RepositoryName *string `locationName:"repositoryName" type:"string" required:"true"` + + metadataListBranchesInput `json:"-" xml:"-"` +} + +type metadataListBranchesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1024,31 +672,19 @@ func (s ListBranchesInput) 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)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a list branches operation. type ListBranchesOutput struct { - _ struct{} `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"` + + metadataListBranchesOutput `json:"-" xml:"-"` +} + +type metadataListBranchesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1063,8 +699,6 @@ func (s ListBranchesOutput) GoString() string { // Represents the input of a list repositories operation. type ListRepositoriesInput struct { - _ struct{} `type:"structure"` - // 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 @@ -1076,6 +710,12 @@ type ListRepositoriesInput struct { // The criteria used to sort the results of a list repositories operation. SortBy *string `locationName:"sortBy" type:"string" enum:"SortByEnum"` + + metadataListRepositoriesInput `json:"-" xml:"-"` +} + +type metadataListRepositoriesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1090,8 +730,6 @@ func (s ListRepositoriesInput) GoString() string { // Represents the output of a list repositories operation. type ListRepositoriesOutput struct { - _ struct{} `type:"structure"` - // 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 @@ -1100,74 +738,26 @@ type ListRepositoriesOutput struct { // Lists the repositories called by the list repositories operation. Repositories []*RepositoryNameIdPair `locationName:"repositories" type:"list"` -} -// String returns the string representation -func (s ListRepositoriesOutput) String() string { - return awsutil.Prettify(s) + metadataListRepositoriesOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s ListRepositoriesOutput) GoString() string { - return s.String() -} - -// Represents the input ofa put repository triggers operation. -type PutRepositoryTriggersInput struct { - _ struct{} `type:"structure"` - - // The name of the repository where you want to create or update the trigger. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` - - // The JSON block of configuration information for each trigger. - Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"` +type metadataListRepositoriesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s PutRepositoryTriggersInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutRepositoryTriggersInput) 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 && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// 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 { +func (s ListRepositoriesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutRepositoryTriggersOutput) GoString() string { +func (s ListRepositoriesOutput) GoString() string { return s.String() } // Information about a repository. type RepositoryMetadata struct { - _ struct{} `type:"structure"` - // The ID of the AWS account associated with the repository. AccountId *string `locationName:"accountId" type:"string"` @@ -1184,7 +774,7 @@ type RepositoryMetadata struct { CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"` // The repository's default branch name. - DefaultBranch *string `locationName:"defaultBranch" min:"1" type:"string"` + DefaultBranch *string `locationName:"defaultBranch" type:"string"` // The date and time the repository was last modified, in timestamp format. LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"` @@ -1196,7 +786,13 @@ type RepositoryMetadata struct { RepositoryId *string `locationName:"repositoryId" type:"string"` // The repository's name. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` + RepositoryName *string `locationName:"repositoryName" type:"string"` + + metadataRepositoryMetadata `json:"-" xml:"-"` +} + +type metadataRepositoryMetadata struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1211,148 +807,44 @@ func (s RepositoryMetadata) GoString() string { // Information about a repository name and ID. type RepositoryNameIdPair struct { - _ struct{} `type:"structure"` - - // The ID associated with the repository. + // The ID associated with the repository name. 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 RepositoryNameIdPair) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RepositoryNameIdPair) GoString() string { - return s.String() -} - -// Information about a trigger for a repository. -type RepositoryTrigger struct { - _ struct{} `type:"structure"` - - // The branches that will be included in the trigger configuration. If no branches - // are specified, the trigger will apply to all branches. - Branches []*string `locationName:"branches" type:"list"` - - // Any custom data associated with the trigger that will be included in the - // information sent to the target of the trigger. - CustomData *string `locationName:"customData" type:"string"` + // Repository name is restricted to alphanumeric characters (a-z, A-Z, 0-9), + // ".", "_", and "-". Additionally, the suffix ".git" is prohibited in a repository + // name. + RepositoryName *string `locationName:"repositoryName" type:"string"` - // The ARN of the resource that is the target for a trigger. For example, the - // ARN of a topic in Amazon Simple Notification Service (SNS). - DestinationArn *string `locationName:"destinationArn" type:"string"` - - // The repository events that will cause the trigger to run actions in another - // service, such as sending a notification through Amazon Simple Notification - // Service (SNS). If no events are specified, the trigger will run for all repository - // events. - Events []*string `locationName:"events" type:"list"` - - // The name of the trigger. - Name *string `locationName:"name" type:"string"` + metadataRepositoryNameIdPair `json:"-" xml:"-"` } -// String returns the string representation -func (s RepositoryTrigger) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RepositoryTrigger) GoString() string { - return s.String() -} - -// A trigger failed to run. -type RepositoryTriggerExecutionFailure struct { - _ struct{} `type:"structure"` - - // Additional 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"` +type metadataRepositoryNameIdPair struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s RepositoryTriggerExecutionFailure) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RepositoryTriggerExecutionFailure) GoString() string { - return s.String() -} - -// Represents the input of a test repository triggers operation. -type TestRepositoryTriggersInput struct { - _ struct{} `type:"structure"` - - // The name of the repository in which to test the triggers. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` - - // The list of triggers to test. - Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"` -} - -// String returns the string representation -func (s TestRepositoryTriggersInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TestRepositoryTriggersInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TestRepositoryTriggersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TestRepositoryTriggersInput"} - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the output of a test repository triggers operation. -type TestRepositoryTriggersOutput struct { - _ struct{} `type:"structure"` - - // The list of triggers that were not able to be tested. This list provides - // the names of the triggers that could not be tested, separated by commas. - FailedExecutions []*RepositoryTriggerExecutionFailure `locationName:"failedExecutions" type:"list"` - - // The list of triggers that were successfully tested. This list provides the - // names of the triggers that were successfully tested, separated by commas. - SuccessfulExecutions []*string `locationName:"successfulExecutions" type:"list"` -} - -// String returns the string representation -func (s TestRepositoryTriggersOutput) String() string { +func (s RepositoryNameIdPair) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TestRepositoryTriggersOutput) GoString() string { +func (s RepositoryNameIdPair) GoString() string { return s.String() } // Represents the input of an update default branch operation. type UpdateDefaultBranchInput struct { - _ struct{} `type:"structure"` - // The name of the branch to set as the default. - DefaultBranchName *string `locationName:"defaultBranchName" min:"1" type:"string" required:"true"` + DefaultBranchName *string `locationName:"defaultBranchName" type:"string" required:"true"` // The name of the repository to set or change the default branch for. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + RepositoryName *string `locationName:"repositoryName" type:"string" required:"true"` + + metadataUpdateDefaultBranchInput `json:"-" xml:"-"` +} + +type metadataUpdateDefaultBranchInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1365,30 +857,12 @@ func (s UpdateDefaultBranchInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDefaultBranchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDefaultBranchInput"} - if s.DefaultBranchName == nil { - invalidParams.Add(request.NewErrParamRequired("DefaultBranchName")) - } - if s.DefaultBranchName != nil && len(*s.DefaultBranchName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DefaultBranchName", 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 +type UpdateDefaultBranchOutput struct { + metadataUpdateDefaultBranchOutput `json:"-" xml:"-"` } -type UpdateDefaultBranchOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateDefaultBranchOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1403,14 +877,17 @@ func (s UpdateDefaultBranchOutput) GoString() string { // Represents the input of an update repository description operation. type UpdateRepositoryDescriptionInput struct { - _ struct{} `type:"structure"` - - // The new comment or description for the specified repository. Repository descriptions - // are limited to 1,000 characters. + // The new comment or description for the specified repository. RepositoryDescription *string `locationName:"repositoryDescription" type:"string"` // The name of the repository to set or change the comment or description for. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + RepositoryName *string `locationName:"repositoryName" type:"string" required:"true"` + + metadataUpdateRepositoryDescriptionInput `json:"-" xml:"-"` +} + +type metadataUpdateRepositoryDescriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1423,24 +900,12 @@ func (s UpdateRepositoryDescriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateRepositoryDescriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryDescriptionInput"} - 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 +type UpdateRepositoryDescriptionOutput struct { + metadataUpdateRepositoryDescriptionOutput `json:"-" xml:"-"` } -type UpdateRepositoryDescriptionOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateRepositoryDescriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1455,13 +920,21 @@ func (s UpdateRepositoryDescriptionOutput) GoString() string { // Represents the input of an update repository description operation. type UpdateRepositoryNameInput struct { - _ struct{} `type:"structure"` + // Repository name is restricted to alphanumeric characters (a-z, A-Z, 0-9), + // ".", "_", and "-". Additionally, the suffix ".git" is prohibited in a repository + // name. + NewName *string `locationName:"newName" type:"string" required:"true"` + + // Repository name is restricted to alphanumeric characters (a-z, A-Z, 0-9), + // ".", "_", and "-". Additionally, the suffix ".git" is prohibited in a repository + // name. + OldName *string `locationName:"oldName" type:"string" required:"true"` - // The new name for the repository. - NewName *string `locationName:"newName" min:"1" type:"string" required:"true"` + metadataUpdateRepositoryNameInput `json:"-" xml:"-"` +} - // The existing name of the repository. - OldName *string `locationName:"oldName" min:"1" type:"string" required:"true"` +type metadataUpdateRepositoryNameInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1474,30 +947,12 @@ func (s UpdateRepositoryNameInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateRepositoryNameInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryNameInput"} - if s.NewName == nil { - invalidParams.Add(request.NewErrParamRequired("NewName")) - } - if s.NewName != nil && len(*s.NewName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NewName", 1)) - } - if s.OldName == nil { - invalidParams.Add(request.NewErrParamRequired("OldName")) - } - if s.OldName != nil && len(*s.OldName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OldName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateRepositoryNameOutput struct { + metadataUpdateRepositoryNameOutput `json:"-" xml:"-"` } -type UpdateRepositoryNameOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateRepositoryNameOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1510,30 +965,6 @@ func (s UpdateRepositoryNameOutput) GoString() string { return s.String() } -// Information about the user who made a specified commit. -type UserInfo struct { - _ struct{} `type:"structure"` - - // The date when the specified commit was pushed to the repository. - Date *string `locationName:"date" type:"string"` - - // The email address associated with the user who made the commit, if any. - Email *string `locationName:"email" type:"string"` - - // The name of the user who made the specified commit. - Name *string `locationName:"name" type:"string"` -} - -// String returns the string representation -func (s UserInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UserInfo) GoString() string { - return s.String() -} - const ( // @enum OrderEnum OrderEnumAscending = "ascending" @@ -1541,17 +972,6 @@ const ( OrderEnumDescending = "descending" ) -const ( - // @enum RepositoryTriggerEventEnum - RepositoryTriggerEventEnumAll = "all" - // @enum RepositoryTriggerEventEnum - RepositoryTriggerEventEnumUpdateReference = "updateReference" - // @enum RepositoryTriggerEventEnum - RepositoryTriggerEventEnumCreateReference = "createReference" - // @enum RepositoryTriggerEventEnum - RepositoryTriggerEventEnumDeleteReference = "deleteReference" -) - const ( // @enum SortByEnum SortByEnumRepositoryName = "repositoryName" diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go index 0401313c5..e33d5c2a0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go @@ -30,38 +30,18 @@ type CodeCommitAPI interface { GetBranch(*codecommit.GetBranchInput) (*codecommit.GetBranchOutput, error) - GetCommitRequest(*codecommit.GetCommitInput) (*request.Request, *codecommit.GetCommitOutput) - - GetCommit(*codecommit.GetCommitInput) (*codecommit.GetCommitOutput, error) - GetRepositoryRequest(*codecommit.GetRepositoryInput) (*request.Request, *codecommit.GetRepositoryOutput) GetRepository(*codecommit.GetRepositoryInput) (*codecommit.GetRepositoryOutput, error) - GetRepositoryTriggersRequest(*codecommit.GetRepositoryTriggersInput) (*request.Request, *codecommit.GetRepositoryTriggersOutput) - - GetRepositoryTriggers(*codecommit.GetRepositoryTriggersInput) (*codecommit.GetRepositoryTriggersOutput, error) - ListBranchesRequest(*codecommit.ListBranchesInput) (*request.Request, *codecommit.ListBranchesOutput) ListBranches(*codecommit.ListBranchesInput) (*codecommit.ListBranchesOutput, error) - ListBranchesPages(*codecommit.ListBranchesInput, func(*codecommit.ListBranchesOutput, bool) bool) error - ListRepositoriesRequest(*codecommit.ListRepositoriesInput) (*request.Request, *codecommit.ListRepositoriesOutput) ListRepositories(*codecommit.ListRepositoriesInput) (*codecommit.ListRepositoriesOutput, error) - ListRepositoriesPages(*codecommit.ListRepositoriesInput, func(*codecommit.ListRepositoriesOutput, bool) bool) error - - PutRepositoryTriggersRequest(*codecommit.PutRepositoryTriggersInput) (*request.Request, *codecommit.PutRepositoryTriggersOutput) - - PutRepositoryTriggers(*codecommit.PutRepositoryTriggersInput) (*codecommit.PutRepositoryTriggersOutput, error) - - TestRepositoryTriggersRequest(*codecommit.TestRepositoryTriggersInput) (*request.Request, *codecommit.TestRepositoryTriggersOutput) - - TestRepositoryTriggers(*codecommit.TestRepositoryTriggersInput) (*codecommit.TestRepositoryTriggersOutput, error) - UpdateDefaultBranchRequest(*codecommit.UpdateDefaultBranchInput) (*request.Request, *codecommit.UpdateDefaultBranchOutput) UpdateDefaultBranch(*codecommit.UpdateDefaultBranchInput) (*codecommit.UpdateDefaultBranchOutput, error) @@ -74,5 +54,3 @@ type CodeCommitAPI interface { UpdateRepositoryName(*codecommit.UpdateRepositoryNameInput) (*codecommit.UpdateRepositoryNameOutput, error) } - -var _ CodeCommitAPI = (*codecommit.CodeCommit)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface_test.go new file mode 100644 index 000000000..0d7a14169 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package codecommitiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/codecommit" + "github.com/aws/aws-sdk-go/service/codecommit/codecommitiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*codecommitiface.CodeCommitAPI)(nil), codecommit.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go index 8aa9228ac..18fd4da96 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCodeCommit_BatchGetRepositories() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.BatchGetRepositoriesInput{ RepositoryNames: []*string{ // Required @@ -38,7 +37,7 @@ func ExampleCodeCommit_BatchGetRepositories() { } func ExampleCodeCommit_CreateBranch() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.CreateBranchInput{ BranchName: aws.String("BranchName"), // Required @@ -59,7 +58,7 @@ func ExampleCodeCommit_CreateBranch() { } func ExampleCodeCommit_CreateRepository() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.CreateRepositoryInput{ RepositoryName: aws.String("RepositoryName"), // Required @@ -79,7 +78,7 @@ func ExampleCodeCommit_CreateRepository() { } func ExampleCodeCommit_DeleteRepository() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.DeleteRepositoryInput{ RepositoryName: aws.String("RepositoryName"), // Required @@ -98,7 +97,7 @@ func ExampleCodeCommit_DeleteRepository() { } func ExampleCodeCommit_GetBranch() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.GetBranchInput{ BranchName: aws.String("BranchName"), @@ -117,28 +116,8 @@ func ExampleCodeCommit_GetBranch() { fmt.Println(resp) } -func ExampleCodeCommit_GetCommit() { - svc := codecommit.New(session.New()) - - params := &codecommit.GetCommitInput{ - CommitId: aws.String("ObjectId"), // Required - RepositoryName: aws.String("RepositoryName"), // Required - } - resp, err := svc.GetCommit(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCodeCommit_GetRepository() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.GetRepositoryInput{ RepositoryName: aws.String("RepositoryName"), // Required @@ -156,27 +135,8 @@ func ExampleCodeCommit_GetRepository() { fmt.Println(resp) } -func ExampleCodeCommit_GetRepositoryTriggers() { - svc := codecommit.New(session.New()) - - params := &codecommit.GetRepositoryTriggersInput{ - RepositoryName: aws.String("RepositoryName"), - } - resp, err := svc.GetRepositoryTriggers(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCodeCommit_ListBranches() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.ListBranchesInput{ RepositoryName: aws.String("RepositoryName"), // Required @@ -196,7 +156,7 @@ func ExampleCodeCommit_ListBranches() { } func ExampleCodeCommit_ListRepositories() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.ListRepositoriesInput{ NextToken: aws.String("NextToken"), @@ -216,78 +176,8 @@ func ExampleCodeCommit_ListRepositories() { fmt.Println(resp) } -func ExampleCodeCommit_PutRepositoryTriggers() { - svc := codecommit.New(session.New()) - - params := &codecommit.PutRepositoryTriggersInput{ - RepositoryName: aws.String("RepositoryName"), - Triggers: []*codecommit.RepositoryTrigger{ - { // Required - Branches: []*string{ - aws.String("BranchName"), // Required - // More values... - }, - CustomData: aws.String("RepositoryTriggerCustomData"), - DestinationArn: aws.String("Arn"), - Events: []*string{ - aws.String("RepositoryTriggerEventEnum"), // Required - // More values... - }, - Name: aws.String("RepositoryTriggerName"), - }, - // More values... - }, - } - resp, err := svc.PutRepositoryTriggers(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCodeCommit_TestRepositoryTriggers() { - svc := codecommit.New(session.New()) - - params := &codecommit.TestRepositoryTriggersInput{ - RepositoryName: aws.String("RepositoryName"), - Triggers: []*codecommit.RepositoryTrigger{ - { // Required - Branches: []*string{ - aws.String("BranchName"), // Required - // More values... - }, - CustomData: aws.String("RepositoryTriggerCustomData"), - DestinationArn: aws.String("Arn"), - Events: []*string{ - aws.String("RepositoryTriggerEventEnum"), // Required - // More values... - }, - Name: aws.String("RepositoryTriggerName"), - }, - // More values... - }, - } - resp, err := svc.TestRepositoryTriggers(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCodeCommit_UpdateDefaultBranch() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.UpdateDefaultBranchInput{ DefaultBranchName: aws.String("BranchName"), // Required @@ -307,7 +197,7 @@ func ExampleCodeCommit_UpdateDefaultBranch() { } func ExampleCodeCommit_UpdateRepositoryDescription() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.UpdateRepositoryDescriptionInput{ RepositoryName: aws.String("RepositoryName"), // Required @@ -327,7 +217,7 @@ func ExampleCodeCommit_UpdateRepositoryDescription() { } func ExampleCodeCommit_UpdateRepositoryName() { - svc := codecommit.New(session.New()) + svc := codecommit.New(nil) params := &codecommit.UpdateRepositoryNameInput{ NewName: aws.String("RepositoryName"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go index bf756307a..ccf230545 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go @@ -4,100 +4,57 @@ package codecommit import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // This is the AWS CodeCommit API Reference. This reference provides descriptions -// of the operations and data types for AWS CodeCommit API. +// of the AWS CodeCommit API. // // You can use the AWS CodeCommit API to work with the following objects: // -// Repositories, by calling the following: BatchGetRepositories, which returns -// information about one or more repositories associated with your AWS account -// CreateRepository, which creates an AWS CodeCommit repository DeleteRepository, -// which deletes an AWS CodeCommit repository GetRepository, which returns information -// about a specified repository ListRepositories, which lists all AWS CodeCommit -// repositories associated with your AWS account UpdateRepositoryDescription, -// which sets or updates the description of the repository UpdateRepositoryName, -// which changes the name of the repository. If you change the name of a repository, -// no other users of that repository will be able to access it until you send -// them the new HTTPS or SSH URL to use. Branches, by calling the following: -// CreateBranch, which creates a new branch in a specified repository GetBranch, -// which returns information about a specified branch ListBranches, which lists -// all branches for a specified repository UpdateDefaultBranch, which changes -// the default branch for a repository Information about committed code in -// a repository, by calling the following: GetCommit, which returns information -// about a commit, including commit messages and committer information. Triggers, -// by calling the following: GetRepositoryTriggers, which returns information -// about triggers configured for a repository PutRepositoryTriggers, which replaces -// all triggers for a repository and can be used to create or delete triggers -// TestRepositoryTriggers, which tests the functionality of a repository trigger -// by sending data to the trigger target For information about how to use -// AWS CodeCommit, see the AWS CodeCommit User Guide (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// Repositories Branches Commits For information about how to use AWS CodeCommit, +// see the AWS CodeCommit User Guide. type CodeCommit struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "codecommit" - -// New creates a new instance of the CodeCommit client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CodeCommit client from just a session. -// svc := codecommit.New(mySession) -// -// // Create a CodeCommit client with additional configuration -// svc := codecommit.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeCommit { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CodeCommit { - svc := &CodeCommit{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-04-13", - JSONVersion: "1.1", - TargetPrefix: "CodeCommit_20150413", - }, - handlers, - ), +// New returns a new CodeCommit client. +func New(config *aws.Config) *CodeCommit { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "codecommit", + APIVersion: "2015-04-13", + JSONVersion: "1.1", + TargetPrefix: "CodeCommit_20150413", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CodeCommit{service} } // newRequest creates a new request for a CodeCommit operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go index fb348cd7f..2edb770e3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go @@ -8,8 +8,6 @@ import ( "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/private/protocol/jsonrpc" ) const opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances" @@ -27,8 +25,6 @@ func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremi } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AddTagsToOnPremisesInstancesOutput{} req.Data = output return @@ -41,33 +37,6 @@ func (c *CodeDeploy) AddTagsToOnPremisesInstances(input *AddTagsToOnPremisesInst return out, err } -const opBatchGetApplicationRevisions = "BatchGetApplicationRevisions" - -// BatchGetApplicationRevisionsRequest generates a request for the BatchGetApplicationRevisions operation. -func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicationRevisionsInput) (req *request.Request, output *BatchGetApplicationRevisionsOutput) { - op := &request.Operation{ - Name: opBatchGetApplicationRevisions, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &BatchGetApplicationRevisionsInput{} - } - - req = c.newRequest(op, input, output) - output = &BatchGetApplicationRevisionsOutput{} - req.Data = output - return -} - -// Gets information about one or more application revisions. -func (c *CodeDeploy) BatchGetApplicationRevisions(input *BatchGetApplicationRevisionsInput) (*BatchGetApplicationRevisionsOutput, error) { - req, out := c.BatchGetApplicationRevisionsRequest(input) - err := req.Send() - return out, err -} - const opBatchGetApplications = "BatchGetApplications" // BatchGetApplicationsRequest generates a request for the BatchGetApplications operation. @@ -95,61 +64,6 @@ func (c *CodeDeploy) BatchGetApplications(input *BatchGetApplicationsInput) (*Ba return out, err } -const opBatchGetDeploymentGroups = "BatchGetDeploymentGroups" - -// BatchGetDeploymentGroupsRequest generates a request for the BatchGetDeploymentGroups operation. -func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGroupsInput) (req *request.Request, output *BatchGetDeploymentGroupsOutput) { - op := &request.Operation{ - Name: opBatchGetDeploymentGroups, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &BatchGetDeploymentGroupsInput{} - } - - req = c.newRequest(op, input, output) - output = &BatchGetDeploymentGroupsOutput{} - req.Data = output - return -} - -// Get information about one or more deployment groups. -func (c *CodeDeploy) BatchGetDeploymentGroups(input *BatchGetDeploymentGroupsInput) (*BatchGetDeploymentGroupsOutput, error) { - req, out := c.BatchGetDeploymentGroupsRequest(input) - err := req.Send() - return out, err -} - -const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances" - -// BatchGetDeploymentInstancesRequest generates a request for the BatchGetDeploymentInstances operation. -func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymentInstancesInput) (req *request.Request, output *BatchGetDeploymentInstancesOutput) { - op := &request.Operation{ - Name: opBatchGetDeploymentInstances, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &BatchGetDeploymentInstancesInput{} - } - - req = c.newRequest(op, input, output) - output = &BatchGetDeploymentInstancesOutput{} - req.Data = output - return -} - -// Gets information about one or more instance that are part of a deployment -// group. -func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error) { - req, out := c.BatchGetDeploymentInstancesRequest(input) - err := req.Send() - return out, err -} - const opBatchGetDeployments = "BatchGetDeployments" // BatchGetDeploymentsRequest generates a request for the BatchGetDeployments operation. @@ -224,7 +138,7 @@ func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (re return } -// Creates an application. +// Creates a new application. func (c *CodeDeploy) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) err := req.Send() @@ -278,7 +192,7 @@ func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfig return } -// Creates a deployment configuration. +// Creates a new deployment configuration. func (c *CodeDeploy) CreateDeploymentConfig(input *CreateDeploymentConfigInput) (*CreateDeploymentConfigOutput, error) { req, out := c.CreateDeploymentConfigRequest(input) err := req.Send() @@ -305,7 +219,7 @@ func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupIn return } -// Creates a deployment group to which application revisions will be deployed. +// Creates a new deployment group for application revisions to be deployed to. func (c *CodeDeploy) CreateDeploymentGroup(input *CreateDeploymentGroupInput) (*CreateDeploymentGroupOutput, error) { req, out := c.CreateDeploymentGroupRequest(input) err := req.Send() @@ -327,8 +241,6 @@ func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteApplicationOutput{} req.Data = output return @@ -356,8 +268,6 @@ func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfig } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteDeploymentConfigOutput{} req.Data = output return @@ -366,7 +276,7 @@ func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfig // Deletes a deployment configuration. // // A deployment configuration cannot be deleted if it is currently in use. -// Predefined configurations cannot be deleted. +// Also, predefined configurations cannot be deleted. func (c *CodeDeploy) DeleteDeploymentConfig(input *DeleteDeploymentConfigInput) (*DeleteDeploymentConfigOutput, error) { req, out := c.DeleteDeploymentConfigRequest(input) err := req.Send() @@ -415,8 +325,6 @@ func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPrem } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeregisterOnPremisesInstanceOutput{} req.Data = output return @@ -653,7 +561,6 @@ func (c *CodeDeploy) ListApplicationRevisions(input *ListApplicationRevisionsInp func (c *CodeDeploy) ListApplicationRevisionsPages(input *ListApplicationRevisionsInput, fn func(p *ListApplicationRevisionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListApplicationRevisionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListApplicationRevisionsOutput), lastPage) }) @@ -694,7 +601,6 @@ func (c *CodeDeploy) ListApplications(input *ListApplicationsInput) (*ListApplic func (c *CodeDeploy) ListApplicationsPages(input *ListApplicationsInput, fn func(p *ListApplicationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListApplicationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListApplicationsOutput), lastPage) }) @@ -735,7 +641,6 @@ func (c *CodeDeploy) ListDeploymentConfigs(input *ListDeploymentConfigsInput) (* func (c *CodeDeploy) ListDeploymentConfigsPages(input *ListDeploymentConfigsInput, fn func(p *ListDeploymentConfigsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListDeploymentConfigsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListDeploymentConfigsOutput), lastPage) }) @@ -777,7 +682,6 @@ func (c *CodeDeploy) ListDeploymentGroups(input *ListDeploymentGroupsInput) (*Li func (c *CodeDeploy) ListDeploymentGroupsPages(input *ListDeploymentGroupsInput, fn func(p *ListDeploymentGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListDeploymentGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListDeploymentGroupsOutput), lastPage) }) @@ -809,7 +713,7 @@ func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstanc return } -// Lists the instance for a deployment associated with the applicable IAM user +// Lists the instances for a deployment associated with the applicable IAM user // or AWS account. func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error) { req, out := c.ListDeploymentInstancesRequest(input) @@ -819,7 +723,6 @@ func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput func (c *CodeDeploy) ListDeploymentInstancesPages(input *ListDeploymentInstancesInput, fn func(p *ListDeploymentInstancesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListDeploymentInstancesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListDeploymentInstancesOutput), lastPage) }) @@ -851,7 +754,7 @@ func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *r return } -// Lists the deployments in a deployment group for an application registered +// Lists the deployments within a deployment group for an application registered // with the applicable IAM user or AWS account. func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) { req, out := c.ListDeploymentsRequest(input) @@ -861,7 +764,6 @@ func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeployme func (c *CodeDeploy) ListDeploymentsPages(input *ListDeploymentsInput, fn func(p *ListDeploymentsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListDeploymentsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListDeploymentsOutput), lastPage) }) @@ -887,7 +789,7 @@ func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstanc return } -// Gets a list of names for one or more on-premises instances. +// Gets a list of one or more on-premises instance names. // // Unless otherwise specified, both registered and deregistered on-premises // instance names will be listed. To list only registered or deregistered on-premises @@ -913,8 +815,6 @@ func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicati } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RegisterApplicationRevisionOutput{} req.Data = output return @@ -942,8 +842,6 @@ func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremises } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RegisterOnPremisesInstanceOutput{} req.Data = output return @@ -971,8 +869,6 @@ func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsF } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RemoveTagsFromOnPremisesInstancesOutput{} req.Data = output return @@ -1027,14 +923,12 @@ func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateApplicationOutput{} req.Data = output return } -// Changes the name of an application. +// Changes an existing application's name. func (c *CodeDeploy) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) err := req.Send() @@ -1061,25 +955,29 @@ func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupIn return } -// Changes information about a deployment group. +// Changes information about an existing deployment group. func (c *CodeDeploy) UpdateDeploymentGroup(input *UpdateDeploymentGroupInput) (*UpdateDeploymentGroupOutput, error) { req, out := c.UpdateDeploymentGroupRequest(input) err := req.Send() return out, err } -// Represents the input of, and adds tags to, an on-premises instance operation. +// Represents the input of an adds tags to on-premises instance operation. type AddTagsToOnPremisesInstancesInput struct { - _ struct{} `type:"structure"` - - // The names of the on-premises instances to which to add tags. + // The names of the on-premises instances to add tags to. InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` // The tag key-value pairs to add to the on-premises instances. // - // Keys and values are both required. Keys cannot be null or empty strings. + // Keys and values are both required. Keys cannot be nulls or empty strings. // Value-only tags are not allowed. Tags []*Tag `locationName:"tags" type:"list" required:"true"` + + metadataAddTagsToOnPremisesInstancesInput `json:"-" xml:"-"` +} + +type metadataAddTagsToOnPremisesInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1092,24 +990,12 @@ func (s AddTagsToOnPremisesInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToOnPremisesInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToOnPremisesInstancesInput"} - 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 +type AddTagsToOnPremisesInstancesOutput struct { + metadataAddTagsToOnPremisesInstancesOutput `json:"-" xml:"-"` } -type AddTagsToOnPremisesInstancesOutput struct { - _ struct{} `type:"structure"` +type metadataAddTagsToOnPremisesInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1124,20 +1010,24 @@ func (s AddTagsToOnPremisesInstancesOutput) GoString() string { // Information about an application. type ApplicationInfo struct { - _ struct{} `type:"structure"` - // The application ID. ApplicationId *string `locationName:"applicationId" type:"string"` // The application name. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` + ApplicationName *string `locationName:"applicationName" type:"string"` - // The time at which the application was created. + // The time that the application was created. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"` // True if the user has authenticated with GitHub for the specified application; // otherwise, false. LinkedToGitHub *bool `locationName:"linkedToGitHub" type:"boolean"` + + metadataApplicationInfo `json:"-" xml:"-"` +} + +type metadataApplicationInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1152,95 +1042,40 @@ func (s ApplicationInfo) GoString() string { // Information about an Auto Scaling group. type AutoScalingGroup struct { - _ struct{} `type:"structure"` - // An Auto Scaling lifecycle event hook name. Hook *string `locationName:"hook" type:"string"` // The Auto Scaling group name. Name *string `locationName:"name" type:"string"` -} - -// String returns the string representation -func (s AutoScalingGroup) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AutoScalingGroup) GoString() string { - return s.String() -} - -// Represents the input of a batch get application revisions operation. -type BatchGetApplicationRevisionsInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application about which to get revision information. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` - - // Information to get about the application revisions, including type and location. - Revisions []*RevisionLocation `locationName:"revisions" type:"list" required:"true"` -} - -// String returns the string representation -func (s BatchGetApplicationRevisionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchGetApplicationRevisionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchGetApplicationRevisionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchGetApplicationRevisionsInput"} - 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.Revisions == nil { - invalidParams.Add(request.NewErrParamRequired("Revisions")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataAutoScalingGroup `json:"-" xml:"-"` } -// Represents the output of a batch get application revisions operation. -type BatchGetApplicationRevisionsOutput struct { - _ struct{} `type:"structure"` - - // The name of the application that corresponds to the revisions. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` - - // Information about errors that may have occurred during the API call. - ErrorMessage *string `locationName:"errorMessage" type:"string"` - - // Additional information about the revisions, including the type and location. - Revisions []*RevisionInfo `locationName:"revisions" type:"list"` +type metadataAutoScalingGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s BatchGetApplicationRevisionsOutput) String() string { +func (s AutoScalingGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchGetApplicationRevisionsOutput) GoString() string { +func (s AutoScalingGroup) GoString() string { return s.String() } // Represents the input of a batch get applications operation. type BatchGetApplicationsInput struct { - _ struct{} `type:"structure"` - - // A list of application names separated by spaces. + // A list of application names, with multiple application names separated by + // spaces. ApplicationNames []*string `locationName:"applicationNames" type:"list"` + + metadataBatchGetApplicationsInput `json:"-" xml:"-"` +} + +type metadataBatchGetApplicationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1255,148 +1090,36 @@ func (s BatchGetApplicationsInput) GoString() string { // Represents the output of a batch get applications operation. type BatchGetApplicationsOutput struct { - _ struct{} `type:"structure"` - // Information about the applications. ApplicationsInfo []*ApplicationInfo `locationName:"applicationsInfo" type:"list"` -} - -// String returns the string representation -func (s BatchGetApplicationsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchGetApplicationsOutput) GoString() string { - return s.String() -} - -// Represents the input of a batch get deployment groups operation. -type BatchGetDeploymentGroupsInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable - // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` - - // The deployment groups' names. - DeploymentGroupNames []*string `locationName:"deploymentGroupNames" type:"list" required:"true"` -} - -// String returns the string representation -func (s BatchGetDeploymentGroupsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchGetDeploymentGroupsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchGetDeploymentGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentGroupsInput"} - 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.DeploymentGroupNames == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentGroupNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the output of a batch get deployment groups operation. -type BatchGetDeploymentGroupsOutput struct { - _ struct{} `type:"structure"` - - // Information about the deployment groups. - DeploymentGroupsInfo []*DeploymentGroupInfo `locationName:"deploymentGroupsInfo" type:"list"` - - // Information about errors that may have occurred during the API call. - ErrorMessage *string `locationName:"errorMessage" type:"string"` -} - -// String returns the string representation -func (s BatchGetDeploymentGroupsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchGetDeploymentGroupsOutput) GoString() string { - return s.String() -} - -// Represents the input of a batch get deployment instances operation. -type BatchGetDeploymentInstancesInput struct { - _ struct{} `type:"structure"` - - // The unique ID of a deployment. - DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` - - // The unique IDs of instances in the deployment group. - InstanceIds []*string `locationName:"instanceIds" type:"list" required:"true"` -} - -// String returns the string representation -func (s BatchGetDeploymentInstancesInput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s BatchGetDeploymentInstancesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchGetDeploymentInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentInstancesInput"} - if s.DeploymentId == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentId")) - } - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataBatchGetApplicationsOutput `json:"-" xml:"-"` } -// Represents the output of a batch get deployment instance operation. -type BatchGetDeploymentInstancesOutput struct { - _ struct{} `type:"structure"` - - // Information about errors that may have occurred during the API call. - ErrorMessage *string `locationName:"errorMessage" type:"string"` - - // Information about the instance. - InstancesSummary []*InstanceSummary `locationName:"instancesSummary" type:"list"` +type metadataBatchGetApplicationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s BatchGetDeploymentInstancesOutput) String() string { +func (s BatchGetApplicationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchGetDeploymentInstancesOutput) GoString() string { +func (s BatchGetApplicationsOutput) GoString() string { return s.String() } // Represents the input of a batch get deployments operation. type BatchGetDeploymentsInput struct { - _ struct{} `type:"structure"` - - // A list of deployment IDs, separated by spaces. + // A list of deployment IDs, with multiple deployment IDs separated by spaces. DeploymentIds []*string `locationName:"deploymentIds" type:"list"` + + metadataBatchGetDeploymentsInput `json:"-" xml:"-"` +} + +type metadataBatchGetDeploymentsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1411,10 +1134,14 @@ func (s BatchGetDeploymentsInput) GoString() string { // Represents the output of a batch get deployments operation. type BatchGetDeploymentsOutput struct { - _ struct{} `type:"structure"` - // Information about the deployments. DeploymentsInfo []*DeploymentInfo `locationName:"deploymentsInfo" type:"list"` + + metadataBatchGetDeploymentsOutput `json:"-" xml:"-"` +} + +type metadataBatchGetDeploymentsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1429,10 +1156,14 @@ func (s BatchGetDeploymentsOutput) GoString() string { // Represents the input of a batch get on-premises instances operation. type BatchGetOnPremisesInstancesInput struct { - _ struct{} `type:"structure"` - - // The names of the on-premises instances about which to get information. + // The names of the on-premises instances to get information about. InstanceNames []*string `locationName:"instanceNames" type:"list"` + + metadataBatchGetOnPremisesInstancesInput `json:"-" xml:"-"` +} + +type metadataBatchGetOnPremisesInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1447,10 +1178,14 @@ func (s BatchGetOnPremisesInstancesInput) GoString() string { // Represents the output of a batch get on-premises instances operation. type BatchGetOnPremisesInstancesOutput struct { - _ struct{} `type:"structure"` - // Information about the on-premises instances. InstanceInfos []*InstanceInfo `locationName:"instanceInfos" type:"list"` + + metadataBatchGetOnPremisesInstancesOutput `json:"-" xml:"-"` +} + +type metadataBatchGetOnPremisesInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1465,11 +1200,15 @@ func (s BatchGetOnPremisesInstancesOutput) GoString() string { // Represents the input of a create application operation. type CreateApplicationInput struct { - _ struct{} `type:"structure"` - // The name of the application. This name must be unique with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` + + metadataCreateApplicationInput `json:"-" xml:"-"` +} + +type metadataCreateApplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1482,28 +1221,16 @@ func (s CreateApplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"} - 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 -} - // Represents the output of a create application operation. type CreateApplicationOutput struct { - _ struct{} `type:"structure"` - // A unique application ID. ApplicationId *string `locationName:"applicationId" type:"string"` + + metadataCreateApplicationOutput `json:"-" xml:"-"` +} + +type metadataCreateApplicationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1518,10 +1245,8 @@ func (s CreateApplicationOutput) GoString() string { // Represents the input of a create deployment configuration operation. type CreateDeploymentConfigInput struct { - _ struct{} `type:"structure"` - // The name of the deployment configuration to create. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"` + DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string" required:"true"` // The minimum number of healthy instances that should be available at any time // during the deployment. There are two parameters expected in the input: type @@ -1530,16 +1255,22 @@ type CreateDeploymentConfigInput struct { // The type parameter takes either of the following values: // // HOST_COUNT: The value parameter represents the minimum number of healthy - // instances as an absolute value. FLEET_PERCENT: The value parameter represents - // the minimum number of healthy instances as a percentage of the total number - // of instances in the deployment. If you specify FLEET_PERCENT, at the start - // of the deployment, AWS CodeDeploy converts the percentage to the equivalent - // number of instance and rounds up fractional instances. The value parameter + // instances, as an absolute value. FLEET_PERCENT: The value parameter represents + // the minimum number of healthy instances, as a percentage of the total number + // of instances in the deployment. If you specify FLEET_PERCENT, then at the + // start of the deployment AWS CodeDeploy converts the percentage to the equivalent + // number of instances and rounds fractional instances up. The value parameter // takes an integer. // - // For example, to set a minimum of 95% healthy instance, specify a type of + // For example, to set a minimum of 95% healthy instances, specify a type of // FLEET_PERCENT and a value of 95. MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"` + + metadataCreateDeploymentConfigInput `json:"-" xml:"-"` +} + +type metadataCreateDeploymentConfigInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1552,28 +1283,16 @@ func (s CreateDeploymentConfigInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDeploymentConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentConfigInput"} - 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 -} - // Represents the output of a create deployment configuration operation. type CreateDeploymentConfigOutput struct { - _ struct{} `type:"structure"` - // A unique deployment configuration ID. DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"` + + metadataCreateDeploymentConfigOutput `json:"-" xml:"-"` +} + +type metadataCreateDeploymentConfigOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1588,84 +1307,62 @@ func (s CreateDeploymentConfigOutput) GoString() string { // Represents the input of a create deployment group operation. type CreateDeploymentGroupInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable + // The name of an existing AWS CodeDeploy application associated with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` // A list of associated Auto Scaling groups. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` - // If specified, the deployment configuration name can be either one of the - // predefined configurations provided with AWS CodeDeploy or a custom deployment - // configuration that you create by calling the create deployment configuration - // operation. - // - // CodeDeployDefault.OneAtATime is the default deployment configuration. It - // is used if a configuration isn't specified for the deployment or the deployment - // group. - // - // The predefined deployment configurations include the following: - // - // CodeDeployDefault.AllAtOnce attempts to deploy an application revision - // to as many instance as possible at once. The status of the overall deployment - // will be displayed as Succeeded if the application revision is deployed to - // one or more of the instances. The status of the overall deployment will be - // displayed as Failed if the application revision is not deployed to any of - // the instances. Using an example of nine instance, CodeDeployDefault.AllAtOnce - // will attempt to deploy to all nine instance at once. The overall deployment - // will succeed if deployment to even a single instance is successful; it will - // fail only if deployments to all nine instance fail. - // - // CodeDeployDefault.HalfAtATime deploys to up to half of the instances at - // a time (with fractions rounded down). The overall deployment succeeds if - // the application revision is deployed to at least half of the instances (with - // fractions rounded up); otherwise, the deployment fails. In the example of - // nine instances, it will deploy to up to four instance at a time. The overall - // deployment succeeds if deployment to five or more instances succeed; otherwise, - // the deployment fails. The deployment may be successfully deployed to some - // instances even if the overall deployment fails. + // If specified, the deployment configuration name must be one of the predefined + // values, or it can be a custom deployment configuration: // - // CodeDeployDefault.OneAtATime deploys the application revision to only - // one instance at a time. - // - // For deployment groups that contain more than one instance: - // - // The overall deployment succeeds if the application revision is deployed - // to all of the instances. The exception to this rule is if deployment to the - // last instance fails, the overall deployment still succeeds. This is because - // AWS CodeDeploy allows only one instance at a time to be taken offline with - // the CodeDeployDefault.OneAtATime configuration. - // - // The overall deployment fails as soon as the application revision fails - // to be deployed to any but the last instance. The deployment may be successfully - // deployed to some instances even if the overall deployment fails. - // - // In an example using nine instance, it will deploy to one instance at a - // time. The overall deployment succeeds if deployment to the first eight instance - // is successful; the overall deployment fails if deployment to any of the first - // eight instance fails. - // - // For deployment groups that contain only one instance, the overall deployment - // is successful only if deployment to the single instance is successful - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` + // CodeDeployDefault.AllAtOnce deploys an application revision to up to all + // of the instances at once. The overall deployment succeeds if the application + // revision deploys to at least one of the instances. The overall deployment + // fails after the application revision fails to deploy to all of the instances. + // For example, for 9 instances, deploy to up to all 9 instances at once. The + // overall deployment succeeds if any of the 9 instances is successfully deployed + // to, and it fails if all 9 instances fail to be deployed to. CodeDeployDefault.HalfAtATime + // deploys to up to half of the instances at a time (with fractions rounded + // down). The overall deployment succeeds if the application revision deploys + // to at least half of the instances (with fractions rounded up); otherwise, + // the deployment fails. For example, for 9 instances, deploy to up to 4 instances + // at a time. The overall deployment succeeds if 5 or more instances are successfully + // deployed to; otherwise, the deployment fails. Note that the deployment may + // successfully deploy to some instances, even if the overall deployment fails. + // CodeDeployDefault.OneAtATime deploys the application revision to only one + // of the instances at a time. The overall deployment succeeds if the application + // revision deploys to all of the instances. The overall deployment fails after + // the application revision first fails to deploy to any one instances. For + // example, for 9 instances, deploy to one instance at a time. The overall deployment + // succeeds if all 9 instances are successfully deployed to, and it fails if + // any of one of the 9 instances fail to be deployed to. Note that the deployment + // may successfully deploy to some instances, even if the overall deployment + // fails. This is the default deployment configuration if a configuration isn't + // specified for either the deployment or the deployment group. To create a + // custom deployment configuration, call the create deployment configuration + // operation. + DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string"` - // The name of a new deployment group for the specified application. - DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` + // The name of an existing deployment group for the specified application. + DeploymentGroupName *string `locationName:"deploymentGroupName" type:"string" required:"true"` - // The Amazon EC2 tags on which to filter. + // The Amazon EC2 tags to filter on. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` - // The on-premises instance tags on which to filter. + // The on-premises instance tags to filter on. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` // A service role ARN that allows AWS CodeDeploy to act on the user's behalf // when interacting with AWS services. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string" required:"true"` - // Information about triggers to create when the deployment group is created. - TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` + metadataCreateDeploymentGroupInput `json:"-" xml:"-"` +} + +type metadataCreateDeploymentGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1678,40 +1375,16 @@ func (s CreateDeploymentGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDeploymentGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentGroupInput"} - 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.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 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 s.ServiceRoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a create deployment group operation. type CreateDeploymentGroupOutput struct { - _ struct{} `type:"structure"` - // A unique deployment group ID. DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"` + + metadataCreateDeploymentGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateDeploymentGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1726,39 +1399,44 @@ func (s CreateDeploymentGroupOutput) GoString() string { // Represents the input of a create deployment operation. type CreateDeploymentInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable + // The name of an existing AWS CodeDeploy application associated with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` - // The name of a deployment configuration associated with the applicable IAM - // user or AWS account. + // The name of an existing deployment configuration associated with the applicable + // IAM user or AWS account. // // If not specified, the value configured in the deployment group will be used // as the default. If the deployment group does not have a deployment configuration // associated with it, then CodeDeployDefault.OneAtATime will be used by default. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` + DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string"` - // The name of the deployment group. - DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` + // The deployment group's name. + DeploymentGroupName *string `locationName:"deploymentGroupName" type:"string"` // A comment about the deployment. Description *string `locationName:"description" type:"string"` // If set to true, then if the deployment causes the ApplicationStop deployment - // lifecycle event to an instance to fail, the deployment to that instance will - // not be considered to have failed at that point and will continue on to the - // BeforeInstall deployment lifecycle event. + // lifecycle event to fail to a specific instance, the deployment will not be + // considered to have failed to that instance at that point and will continue + // on to the BeforeInstall deployment lifecycle event. // // If set to false or not specified, then if the deployment causes the ApplicationStop - // deployment lifecycle event to fail to an instance, the deployment to that - // instance will stop, and the deployment to that instance will be considered + // deployment lifecycle event to fail to a specific instance, the deployment + // will stop to that instance, and the deployment to that instance will be considered // to have failed. IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"` - // The type and location of the revision to deploy. + // The type of revision to deploy, along with information about the revision's + // location. Revision *RevisionLocation `locationName:"revision" type:"structure"` + + metadataCreateDeploymentInput `json:"-" xml:"-"` +} + +type metadataCreateDeploymentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1771,34 +1449,16 @@ func (s CreateDeploymentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"} - 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.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) - } - if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a create deployment operation. type CreateDeploymentOutput struct { - _ struct{} `type:"structure"` - // A unique deployment ID. DeploymentId *string `locationName:"deploymentId" type:"string"` + + metadataCreateDeploymentOutput `json:"-" xml:"-"` +} + +type metadataCreateDeploymentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1813,11 +1473,15 @@ func (s CreateDeploymentOutput) GoString() string { // Represents the input of a delete application operation. type DeleteApplicationInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable + // The name of an existing AWS CodeDeploy application associated with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` + + metadataDeleteApplicationInput `json:"-" xml:"-"` +} + +type metadataDeleteApplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1830,24 +1494,12 @@ func (s DeleteApplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"} - 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 +type DeleteApplicationOutput struct { + metadataDeleteApplicationOutput `json:"-" xml:"-"` } -type DeleteApplicationOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteApplicationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1862,11 +1514,15 @@ func (s DeleteApplicationOutput) GoString() string { // Represents the input of a delete deployment configuration operation. type DeleteDeploymentConfigInput struct { - _ struct{} `type:"structure"` + // The name of an existing deployment configuration associated with the applicable + // IAM user or AWS account. + DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string" required:"true"` + + metadataDeleteDeploymentConfigInput `json:"-" xml:"-"` +} - // The name of a deployment configuration associated with the applicable IAM - // user or AWS account. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"` +type metadataDeleteDeploymentConfigInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1879,24 +1535,12 @@ func (s DeleteDeploymentConfigInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDeploymentConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentConfigInput"} - 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 +type DeleteDeploymentConfigOutput struct { + metadataDeleteDeploymentConfigOutput `json:"-" xml:"-"` } -type DeleteDeploymentConfigOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteDeploymentConfigOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1911,14 +1555,18 @@ func (s DeleteDeploymentConfigOutput) GoString() string { // Represents the input of a delete deployment group operation. type DeleteDeploymentGroupInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable + // The name of an existing AWS CodeDeploy application associated with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` // The name of an existing deployment group for the specified application. - DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` + DeploymentGroupName *string `locationName:"deploymentGroupName" type:"string" required:"true"` + + metadataDeleteDeploymentGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteDeploymentGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1931,39 +1579,21 @@ func (s DeleteDeploymentGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDeploymentGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentGroupInput"} - 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 -} - // Represents the output of a delete deployment group operation. type DeleteDeploymentGroupOutput struct { - _ struct{} `type:"structure"` - // If the output contains no data, and the corresponding deployment group contained // at least one Auto Scaling group, AWS CodeDeploy successfully removed all // corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances - // in the Auto Scaling group. If the output contains data, AWS CodeDeploy could + // in the Auto Scaling. If the output does contain data, AWS CodeDeploy could // not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances // in the Auto Scaling group. HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"` + + metadataDeleteDeploymentGroupOutput `json:"-" xml:"-"` +} + +type metadataDeleteDeploymentGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1978,19 +1608,23 @@ func (s DeleteDeploymentGroupOutput) GoString() string { // Information about a deployment configuration. type DeploymentConfigInfo struct { - _ struct{} `type:"structure"` - - // The time at which the deployment configuration was created. + // The time that the deployment configuration was created. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"` // The deployment configuration ID. DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"` // The deployment configuration name. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` + DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string"` - // Information about the number or percentage of minimum healthy instance. + // Information about the number or percentage of minimum healthy instances. MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"` + + metadataDeploymentConfigInfo `json:"-" xml:"-"` +} + +type metadataDeploymentConfigInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2005,38 +1639,39 @@ func (s DeploymentConfigInfo) GoString() string { // Information about a deployment group. type DeploymentGroupInfo struct { - _ struct{} `type:"structure"` - // The application name. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` + ApplicationName *string `locationName:"applicationName" type:"string"` // A list of associated Auto Scaling groups. AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"` // The deployment configuration name. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` + DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string"` // The deployment group ID. DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"` // The deployment group name. - DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` + DeploymentGroupName *string `locationName:"deploymentGroupName" type:"string"` - // The Amazon EC2 tags on which to filter. + // The Amazon EC2 tags to filter on. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` - // The on-premises instance tags on which to filter. + // The on-premises instance tags to filter on. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` // A service role ARN. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` - // Information about the deployment group's target revision, including type - // and location. + // Information about the deployment group's target revision, including the revision's + // type and its location. TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"` - // A list of associated triggers. - TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` + metadataDeploymentGroupInfo `json:"-" xml:"-"` +} + +type metadataDeploymentGroupInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2051,28 +1686,26 @@ func (s DeploymentGroupInfo) GoString() string { // Information about a deployment. type DeploymentInfo struct { - _ struct{} `type:"structure"` - // The application name. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` + ApplicationName *string `locationName:"applicationName" type:"string"` - // A timestamp indicating when the deployment was complete. + // A timestamp indicating when the deployment was completed. CompleteTime *time.Time `locationName:"completeTime" type:"timestamp" timestampFormat:"unix"` // A timestamp indicating when the deployment was created. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"` - // The means by which the deployment was created: + // How the deployment was created: // // user: A user created the deployment. autoscaling: Auto Scaling created // the deployment. Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"` // The deployment configuration name. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` + DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string"` // The deployment group name. - DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` + DeploymentGroupName *string `locationName:"deploymentGroupName" type:"string"` // The deployment ID. DeploymentId *string `locationName:"deploymentId" type:"string"` @@ -2087,30 +1720,36 @@ type DeploymentInfo struct { ErrorInformation *ErrorInformation `locationName:"errorInformation" type:"structure"` // If true, then if the deployment causes the ApplicationStop deployment lifecycle - // event to an instance to fail, the deployment to that instance will not be - // considered to have failed at that point and will continue on to the BeforeInstall - // deployment lifecycle event. + // event to fail to a specific instance, the deployment will not be considered + // to have failed to that instance at that point and will continue on to the + // BeforeInstall deployment lifecycle event. // // If false or not specified, then if the deployment causes the ApplicationStop - // deployment lifecycle event to an instance to fail, the deployment to that - // instance will stop, and the deployment to that instance will be considered + // deployment lifecycle event to fail to a specific instance, the deployment + // will stop to that instance, and the deployment to that instance will be considered // to have failed. IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"` - // Information about the location of stored application artifacts and the service - // from which to retrieve them. + // Information about the location of application artifacts that are stored and + // the service to retrieve them from. Revision *RevisionLocation `locationName:"revision" type:"structure"` - // A timestamp indicating when the deployment was deployed to the deployment + // A timestamp indicating when the deployment began deploying to the deployment // group. // - // In some cases, the reported value of the start time may be later than the - // complete time. This is due to differences in the clock settings of back-end - // servers that participate in the deployment process. + // Note that in some cases, the reported value of the start time may be later + // than the complete time. This is due to differences in the clock settings + // of various back-end servers that participate in the overall deployment process. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"` // The current state of the deployment as a whole. Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` + + metadataDeploymentInfo `json:"-" xml:"-"` +} + +type metadataDeploymentInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2125,23 +1764,26 @@ func (s DeploymentInfo) GoString() string { // 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. + // The number of instances that have failed in the deployment. Failed *int64 `type:"long"` - // The number of instances in which the deployment is in progress. + // The number of instances that are in progress in the deployment. InProgress *int64 `type:"long"` - // The number of instances in the deployment in a pending state. + // The number of instances that are pending in the deployment. Pending *int64 `type:"long"` - // The number of instances in the deployment in a skipped state. + // The number of instances that have been skipped in the deployment. Skipped *int64 `type:"long"` - // The number of instances in the deployment to which revisions have been successfully - // deployed. + // The number of instances that have succeeded in the deployment. Succeeded *int64 `type:"long"` + + metadataDeploymentOverview `json:"-" xml:"-"` +} + +type metadataDeploymentOverview struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2156,10 +1798,14 @@ func (s DeploymentOverview) GoString() string { // Represents the input of a deregister on-premises instance operation. type DeregisterOnPremisesInstanceInput struct { - _ struct{} `type:"structure"` - // The name of the on-premises instance to deregister. InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + + metadataDeregisterOnPremisesInstanceInput `json:"-" xml:"-"` +} + +type metadataDeregisterOnPremisesInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2172,21 +1818,12 @@ 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 +type DeregisterOnPremisesInstanceOutput struct { + metadataDeregisterOnPremisesInstanceOutput `json:"-" xml:"-"` } -type DeregisterOnPremisesInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataDeregisterOnPremisesInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2201,8 +1838,6 @@ func (s DeregisterOnPremisesInstanceOutput) GoString() string { // 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 @@ -2213,10 +1848,7 @@ type Diagnostics struct { // 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. + // The last portion of the associated diagnostic log. LogTail *string `locationName:"logTail" type:"string"` // The message associated with the error. @@ -2224,6 +1856,12 @@ type Diagnostics struct { // The name of the script. ScriptName *string `locationName:"scriptName" type:"string"` + + metadataDiagnostics `json:"-" xml:"-"` +} + +type metadataDiagnostics struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2238,8 +1876,6 @@ func (s Diagnostics) GoString() string { // Information about a tag filter. type EC2TagFilter struct { - _ struct{} `type:"structure"` - // The tag filter key. Key *string `type:"string"` @@ -2250,6 +1886,12 @@ type EC2TagFilter struct { // The tag filter value. Value *string `type:"string"` + + metadataEC2TagFilter `json:"-" xml:"-"` +} + +type metadataEC2TagFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2264,32 +1906,37 @@ func (s EC2TagFilter) GoString() string { // Information about a deployment error. type ErrorInformation struct { - _ struct{} `type:"structure"` - // The error code: // - // APPLICATION_MISSING: The application was missing. This error code will - // most likely be 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 will most likely be 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 the Amazon EC2 service. NO_INSTANCES: No instance were specified, or no - // instance can be found. OVER_MAX_INSTANCES: The maximum number of instance - // 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 will most likely be raised if the revision is deleted after - // the deployment is created but before it is started. + // APPLICATION_MISSING: The application was missing. Note that this error + // code will most likely be raised if the application is deleted after the deployment + // is created but before it starts. DEPLOYMENT_GROUP_MISSING: The deployment + // group was missing. Note that this error code will most likely be raised if + // the deployment group is deleted after the deployment is created but before + // it starts. HEALTH_CONSTRAINTS: The deployment failed on too many instances + // to be able to successfully deploy within the specified instance health constraints. + // HEALTH_CONSTRAINTS_INVALID: The revision can never successfully deploy within + // the instance health constraints as 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 the Amazon + // EC2 service. 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. Note that this + // error code will most likely be raised if the revision is deleted after the + // deployment is created but before it starts. Code *string `locationName:"code" type:"string" enum:"ErrorCode"` // An accompanying error message. Message *string `locationName:"message" type:"string"` + + metadataErrorInformation `json:"-" xml:"-"` +} + +type metadataErrorInformation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2304,9 +1951,7 @@ func (s ErrorInformation) GoString() string { // Information about an application revision. type GenericRevisionInfo struct { - _ struct{} `type:"structure"` - - // The deployment groups for which this is the current target revision. + // A list of deployment groups that use this revision. DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"` // A comment about the revision. @@ -2320,6 +1965,12 @@ type GenericRevisionInfo struct { // When the revision was registered with AWS CodeDeploy. RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"` + + metadataGenericRevisionInfo `json:"-" xml:"-"` +} + +type metadataGenericRevisionInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2334,11 +1985,15 @@ func (s GenericRevisionInfo) GoString() string { // Represents the input of a get application operation. type GetApplicationInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable + // The name of an existing AWS CodeDeploy application associated with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` + + metadataGetApplicationInput `json:"-" xml:"-"` +} + +type metadataGetApplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2351,28 +2006,16 @@ 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 -} - // Represents the output of a get application operation. type GetApplicationOutput struct { - _ struct{} `type:"structure"` - // Information about the application. Application *ApplicationInfo `locationName:"application" type:"structure"` + + metadataGetApplicationOutput `json:"-" xml:"-"` +} + +type metadataGetApplicationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2387,13 +2030,18 @@ func (s GetApplicationOutput) GoString() string { // Represents the input of a get application revision operation. type GetApplicationRevisionInput struct { - _ struct{} `type:"structure"` - // The name of the application that corresponds to the revision. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` - // Information about the application revision to get, including type and location. + // Information about the application revision to get, including the revision's + // type and its location. Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"` + + metadataGetApplicationRevisionInput `json:"-" xml:"-"` +} + +type metadataGetApplicationRevisionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2406,37 +2054,23 @@ 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 -} - // Represents the output of a get application revision 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"` + ApplicationName *string `locationName:"applicationName" type:"string"` - // Additional information about the revision, including type and location. + // Additional information about the revision, including the revision's type + // and its location. Revision *RevisionLocation `locationName:"revision" type:"structure"` // General information about the revision. RevisionInfo *GenericRevisionInfo `locationName:"revisionInfo" type:"structure"` + + metadataGetApplicationRevisionOutput `json:"-" xml:"-"` +} + +type metadataGetApplicationRevisionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2451,11 +2085,15 @@ func (s GetApplicationRevisionOutput) GoString() string { // Represents the input of a get deployment configuration operation. type GetDeploymentConfigInput struct { - _ struct{} `type:"structure"` + // The name of an existing deployment configuration associated with the applicable + // IAM user or AWS account. + DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string" required:"true"` + + metadataGetDeploymentConfigInput `json:"-" xml:"-"` +} - // The name of a deployment configuration associated with the applicable IAM - // user or AWS account. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"` +type metadataGetDeploymentConfigInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2468,28 +2106,16 @@ 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 -} - // Represents the output of a get deployment configuration operation. type GetDeploymentConfigOutput struct { - _ struct{} `type:"structure"` - // Information about the deployment configuration. DeploymentConfigInfo *DeploymentConfigInfo `locationName:"deploymentConfigInfo" type:"structure"` + + metadataGetDeploymentConfigOutput `json:"-" xml:"-"` +} + +type metadataGetDeploymentConfigOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2504,14 +2130,18 @@ func (s GetDeploymentConfigOutput) GoString() string { // Represents the input of a get deployment group operation. type GetDeploymentGroupInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable + // The name of an existing AWS CodeDeploy application associated with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` // The name of an existing deployment group for the specified application. - DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` + DeploymentGroupName *string `locationName:"deploymentGroupName" type:"string" required:"true"` + + metadataGetDeploymentGroupInput `json:"-" xml:"-"` +} + +type metadataGetDeploymentGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2524,34 +2154,16 @@ 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 -} - // Represents the output of a get deployment group operation. type GetDeploymentGroupOutput struct { - _ struct{} `type:"structure"` - // Information about the deployment group. DeploymentGroupInfo *DeploymentGroupInfo `locationName:"deploymentGroupInfo" type:"structure"` + + metadataGetDeploymentGroupOutput `json:"-" xml:"-"` +} + +type metadataGetDeploymentGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2566,10 +2178,15 @@ func (s GetDeploymentGroupOutput) GoString() string { // Represents the input of a get deployment operation. type GetDeploymentInput struct { - _ struct{} `type:"structure"` - - // A deployment ID associated with the applicable IAM user or AWS account. + // An existing deployment ID associated with the applicable IAM user or AWS + // account. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` + + metadataGetDeploymentInput `json:"-" xml:"-"` +} + +type metadataGetDeploymentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2582,28 +2199,19 @@ 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 -} - // Represents the input of a get deployment instance operation. type GetDeploymentInstanceInput struct { - _ struct{} `type:"structure"` - // The unique ID of a deployment. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` - // The unique ID of an instance in the deployment group. + // The unique ID of an instance in the deployment's deployment group. InstanceId *string `locationName:"instanceId" type:"string" required:"true"` + + metadataGetDeploymentInstanceInput `json:"-" xml:"-"` +} + +type metadataGetDeploymentInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2616,28 +2224,16 @@ 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 -} - // Represents the output of a get deployment instance operation. type GetDeploymentInstanceOutput struct { - _ struct{} `type:"structure"` - // Information about the instance. InstanceSummary *InstanceSummary `locationName:"instanceSummary" type:"structure"` + + metadataGetDeploymentInstanceOutput `json:"-" xml:"-"` +} + +type metadataGetDeploymentInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2652,10 +2248,14 @@ func (s GetDeploymentInstanceOutput) GoString() string { // Represents the output of a get deployment operation. type GetDeploymentOutput struct { - _ struct{} `type:"structure"` - // Information about the deployment. DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"` + + metadataGetDeploymentOutput `json:"-" xml:"-"` +} + +type metadataGetDeploymentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2670,10 +2270,14 @@ func (s GetDeploymentOutput) GoString() string { // Represents the input of a get on-premises instance operation. type GetOnPremisesInstanceInput struct { - _ struct{} `type:"structure"` - - // The name of the on-premises instance about which to get information. + // The name of the on-premises instance to get information about InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + + metadataGetOnPremisesInstanceInput `json:"-" xml:"-"` +} + +type metadataGetOnPremisesInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2686,25 +2290,16 @@ 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 -} - // Represents the output of a get on-premises instance operation. type GetOnPremisesInstanceOutput struct { - _ struct{} `type:"structure"` - // Information about the on-premises instance. InstanceInfo *InstanceInfo `locationName:"instanceInfo" type:"structure"` + + metadataGetOnPremisesInstanceOutput `json:"-" xml:"-"` +} + +type metadataGetOnPremisesInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2717,12 +2312,11 @@ func (s GetOnPremisesInstanceOutput) GoString() string { return s.String() } -// Information about the location of application artifacts stored in GitHub. +// Information about the location of application artifacts that are 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. + // The SHA1 commit ID of the GitHub commit that references the 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 @@ -2730,6 +2324,12 @@ type GitHubLocation struct { // // Specified as account/repository. Repository *string `locationName:"repository" type:"string"` + + metadataGitHubLocation `json:"-" xml:"-"` +} + +type metadataGitHubLocation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2744,9 +2344,7 @@ func (s GitHubLocation) GoString() string { // 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 + // If the on-premises instance was deregistered, the time that the on-premises // instance was deregistered. DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp" timestampFormat:"unix"` @@ -2759,11 +2357,17 @@ type InstanceInfo struct { // The name of the on-premises instance. InstanceName *string `locationName:"instanceName" type:"string"` - // The time at which the on-premises instance was registered. + // The time that the on-premises instance was registered. RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"` - // The tags currently associated with the on-premises instance. + // The tags that are currently associated with the on-premises instance. Tags []*Tag `locationName:"tags" type:"list"` + + metadataInstanceInfo `json:"-" xml:"-"` +} + +type metadataInstanceInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2778,8 +2382,6 @@ func (s InstanceInfo) GoString() string { // Information about an instance in a deployment. type InstanceSummary struct { - _ struct{} `type:"structure"` - // The deployment ID. DeploymentId *string `locationName:"deploymentId" type:"string"` @@ -2800,6 +2402,12 @@ type InstanceSummary struct { // Skipped: The deployment has been skipped for this instance. Unknown: The // deployment status is unknown for this instance. Status *string `locationName:"status" type:"string" enum:"InstanceStatus"` + + metadataInstanceSummary `json:"-" xml:"-"` +} + +type metadataInstanceSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2814,8 +2422,6 @@ func (s InstanceSummary) GoString() string { // Information about a deployment lifecycle event. type LifecycleEvent struct { - _ struct{} `type:"structure"` - // Diagnostic information about the deployment lifecycle event. Diagnostics *Diagnostics `locationName:"diagnostics" type:"structure"` @@ -2833,10 +2439,16 @@ type LifecycleEvent struct { // // Pending: The deployment lifecycle event is pending. InProgress: The deployment // lifecycle event is in progress. Succeeded: The deployment lifecycle event - // ran successfully. Failed: The deployment lifecycle event has failed. Skipped: + // has succeeded. Failed: The deployment lifecycle event has failed. Skipped: // The deployment lifecycle event has been skipped. Unknown: The deployment // lifecycle event is unknown. Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"` + + metadataLifecycleEvent `json:"-" xml:"-"` +} + +type metadataLifecycleEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2851,48 +2463,55 @@ func (s LifecycleEvent) GoString() string { // Represents the input of a list application revisions operation. type ListApplicationRevisionsInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable + // The name of an existing AWS CodeDeploy application associated with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` // Whether to list revisions based on whether the revision is the target revision // of an deployment group: // // include: List revisions that are target revisions of a deployment group. // exclude: Do not list revisions that are target revisions of a deployment - // group. ignore: List all revisions. + // group. ignore: List all revisions, regardless of whether they are target + // revisions of a deployment group. Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"` - // An identifier returned from the previous list application revisions call. - // It can be used to return the next set of applications in the list. + // An identifier that was returned from the previous list application revisions + // call, which can be used to return the next set of applications in the list. NextToken *string `locationName:"nextToken" type:"string"` - // An Amazon S3 bucket name to limit the search for revisions. + // A specific Amazon S3 bucket name to limit the search for revisions. // - // If set to null, all of the user's buckets will be searched. + // If set to null, then all of the user's buckets will be searched. S3Bucket *string `locationName:"s3Bucket" type:"string"` - // A key prefix for the set of Amazon S3 objects to limit the search for revisions. + // A specific key prefix for the set of Amazon S3 objects to limit the search + // for revisions. S3KeyPrefix *string `locationName:"s3KeyPrefix" type:"string"` - // The column name to use to sort the list results: + // The column name to sort the list results by: // - // registerTime: Sort by the time the revisions were registered with AWS CodeDeploy. - // firstUsedTime: Sort by the time the revisions were first used in a deployment. - // lastUsedTime: Sort by the time the revisions were last used in a deployment. - // If not specified or set to null, the results will be returned in an arbitrary - // order. + // registerTime: Sort the list results by when the revisions were registered + // with AWS CodeDeploy. firstUsedTime: Sort the list results by when the revisions + // were first used by in a deployment. lastUsedTime: Sort the list results by + // when the revisions were last used in a deployment. If not specified or set + // to null, the results will be returned in an arbitrary order. SortBy *string `locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy"` - // The order in which to sort the list results: + // The order to sort the list results by: // - // ascending: ascending order. descending: descending order. If not specified, - // the results will be sorted in ascending order. + // ascending: Sort the list of results in ascending order. descending: Sort + // the list of results in descending order. If not specified, the results will + // be sorted in ascending order. // // If set to null, the results will be sorted in an arbitrary order. SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"` + + metadataListApplicationRevisionsInput `json:"-" xml:"-"` +} + +type metadataListApplicationRevisionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2905,33 +2524,22 @@ func (s ListApplicationRevisionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListApplicationRevisionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListApplicationRevisionsInput"} - 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 -} - // Represents the output of a list application revisions operation. type ListApplicationRevisionsOutput struct { - _ struct{} `type:"structure"` - - // If a large amount of information is returned, an identifier will also be - // returned. It can be used in a subsequent list application revisions call - // to return the next set of application revisions in the list. + // If the amount of information that is returned is significantly large, an + // identifier will also be returned, which can be used in a subsequent list + // application revisions call to return the next set of application revisions + // in the list. NextToken *string `locationName:"nextToken" type:"string"` - // A list of locations that contain the matching revisions. + // A list of revision locations that contain the matching revisions. Revisions []*RevisionLocation `locationName:"revisions" type:"list"` + + metadataListApplicationRevisionsOutput `json:"-" xml:"-"` +} + +type metadataListApplicationRevisionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2946,11 +2554,15 @@ func (s ListApplicationRevisionsOutput) GoString() string { // Represents the input of a list applications operation. type ListApplicationsInput struct { - _ struct{} `type:"structure"` - - // An identifier returned from the previous list applications call. It can be - // used to return the next set of applications in the list. + // An identifier that was returned from the previous list applications call, + // which can be used to return the next set of applications in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListApplicationsInput `json:"-" xml:"-"` +} + +type metadataListApplicationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2965,15 +2577,19 @@ func (s ListApplicationsInput) GoString() string { // Represents the output of a list applications operation. type ListApplicationsOutput struct { - _ struct{} `type:"structure"` - // A list of application names. Applications []*string `locationName:"applications" type:"list"` - // If a large amount of information is returned, an identifier is also returned. - // It can be used in a subsequent list applications call to return the next - // set of applications, will also be returned. in the list. + // If the amount of information that is returned is significantly large, an + // identifier will also be returned, which can be used in a subsequent list + // applications call to return the next set of applications in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListApplicationsOutput `json:"-" xml:"-"` +} + +type metadataListApplicationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2988,12 +2604,16 @@ func (s ListApplicationsOutput) GoString() string { // Represents the input of a list deployment configurations operation. type ListDeploymentConfigsInput struct { - _ struct{} `type:"structure"` - - // An identifier returned from the previous list deployment configurations call. - // It can be used to return the next set of deployment configurations in the - // list. + // An identifier that was returned from the previous list deployment configurations + // call, which can be used to return the next set of deployment configurations + // in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDeploymentConfigsInput `json:"-" xml:"-"` +} + +type metadataListDeploymentConfigsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3008,16 +2628,21 @@ func (s ListDeploymentConfigsInput) GoString() string { // Represents the output of a list deployment configurations operation. type ListDeploymentConfigsOutput struct { - _ struct{} `type:"structure"` - - // A list of deployment configurations, including built-in configurations such - // as CodeDeployDefault.OneAtATime. + // A list of deployment configurations, including the built-in configurations + // such as CodeDeployDefault.OneAtATime. DeploymentConfigsList []*string `locationName:"deploymentConfigsList" type:"list"` - // If a large amount of information is returned, an identifier is also returned. - // It can be used in a subsequent list deployment configurations call to return - // the next set of deployment configurations in the list. + // If the amount of information that is returned is significantly large, an + // identifier will also be returned, which can be used in a subsequent list + // deployment configurations call to return the next set of deployment configurations + // in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDeploymentConfigsOutput `json:"-" xml:"-"` +} + +type metadataListDeploymentConfigsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3032,15 +2657,20 @@ func (s ListDeploymentConfigsOutput) GoString() string { // Represents the input of a list deployment groups operation. type ListDeploymentGroupsInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable + // The name of an existing AWS CodeDeploy application associated with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` - // An identifier returned from the previous list deployment groups call. It - // can be used to return the next set of deployment groups in the list. + // An identifier that was returned from the previous list deployment groups + // call, which can be used to return the next set of deployment groups in the + // list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDeploymentGroupsInput `json:"-" xml:"-"` +} + +type metadataListDeploymentGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3053,36 +2683,25 @@ func (s ListDeploymentGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDeploymentGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDeploymentGroupsInput"} - 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 -} - // Represents the output of a list deployment groups operation. type ListDeploymentGroupsOutput struct { - _ struct{} `type:"structure"` - // The application name. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` + ApplicationName *string `locationName:"applicationName" type:"string"` // A list of corresponding deployment group names. DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"` - // If a large amount of information is returned, an identifier is also returned. - // It can be used in a subsequent list deployment groups call to return the - // next set of deployment groups in the list. + // If the amount of information that is returned is significantly large, an + // identifier will also be returned, which can be used in a subsequent list + // deployment groups call to return the next set of deployment groups in the + // list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDeploymentGroupsOutput `json:"-" xml:"-"` +} + +type metadataListDeploymentGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3097,23 +2716,30 @@ func (s ListDeploymentGroupsOutput) GoString() string { // Represents the input of a list deployment instances operation. type ListDeploymentInstancesInput struct { - _ struct{} `type:"structure"` - // The unique ID of a deployment. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` - // A subset of instances to list by status: + // A subset of instances to list, by status: // - // Pending: Include those instance with pending deployments. InProgress: Include - // those instance where deployments are still in progress. Succeeded: Include - // those instances with successful deployments. Failed: Include those instance - // with failed deployments. Skipped: Include those instance with skipped deployments. - // Unknown: Include those instance with deployments in an unknown state. + // Pending: Include in the resulting list those instances with pending deployments. + // InProgress: Include in the resulting list those instances with in-progress + // deployments. Succeeded: Include in the resulting list those instances with + // succeeded deployments. Failed: Include in the resulting list those instances + // with failed deployments. Skipped: Include in the resulting list those instances + // with skipped deployments. Unknown: Include in the resulting list those instances + // with deployments in an unknown state. InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"` - // An identifier returned from the previous list deployment instances call. - // It can be used to return the next set of deployment instances in the list. + // An identifier that was returned from the previous list deployment instances + // call, which can be used to return the next set of deployment instances in + // the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDeploymentInstancesInput `json:"-" xml:"-"` +} + +type metadataListDeploymentInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3126,30 +2752,22 @@ func (s ListDeploymentInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDeploymentInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDeploymentInstancesInput"} - if s.DeploymentId == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a list deployment instances operation. type ListDeploymentInstancesOutput struct { - _ struct{} `type:"structure"` - - // A list of instance IDs. + // A list of instances IDs. InstancesList []*string `locationName:"instancesList" type:"list"` - // If a large amount of information is returned, an identifier is also returned. - // It can be used in a subsequent list deployment instances call to return the - // next set of deployment instances in the list. + // If the amount of information that is returned is significantly large, an + // identifier will also be returned, which can be used in a subsequent list + // deployment instances call to return the next set of deployment instances + // in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDeploymentInstancesOutput `json:"-" xml:"-"` +} + +type metadataListDeploymentInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3164,30 +2782,35 @@ func (s ListDeploymentInstancesOutput) GoString() string { // Represents the input of a list deployments operation. type ListDeploymentsInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable + // The name of an existing AWS CodeDeploy application associated with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` + ApplicationName *string `locationName:"applicationName" type:"string"` - // A time range (start and end) for returning a subset of the list of deployments. + // A deployment creation start- and end-time range for returning a subset of + // the list of deployments. CreateTimeRange *TimeRange `locationName:"createTimeRange" type:"structure"` // The name of an existing deployment group for the specified application. - DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` + DeploymentGroupName *string `locationName:"deploymentGroupName" type:"string"` - // A subset of deployments to list by status: + // A subset of deployments to list, by status: // - // Created: Include created deployments in the resulting list. Queued: Include - // queued deployments in the resulting list. In Progress: Include in-progress - // deployments in the resulting list. Succeeded: Include successful deployments - // in the resulting list. Failed: Include failed deployments in the resulting - // list. Stopped: Include stopped deployments in the resulting list. + // Created: Include in the resulting list created deployments. Queued: Include + // in the resulting list queued deployments. In Progress: Include in the resulting + // list in-progress deployments. Succeeded: Include in the resulting list succeeded + // deployments. Failed: Include in the resulting list failed deployments. Aborted: + // Include in the resulting list aborted deployments. IncludeOnlyStatuses []*string `locationName:"includeOnlyStatuses" type:"list"` - // An identifier returned from the previous list deployments call. It can be - // used to return the next set of deployments in the list. + // An identifier that was returned from the previous list deployments call, + // which can be used to return the next set of deployments in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDeploymentsInput `json:"-" xml:"-"` +} + +type metadataListDeploymentsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3200,33 +2823,21 @@ func (s ListDeploymentsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDeploymentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDeploymentsInput"} - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a list deployments operation. type ListDeploymentsOutput struct { - _ struct{} `type:"structure"` - // A list of deployment IDs. Deployments []*string `locationName:"deployments" type:"list"` - // If a large amount of information is returned, an identifier is also returned. - // It can be used in a subsequent list deployments call to return the next set - // of deployments in the list. + // If the amount of information that is returned is significantly large, an + // identifier will also be returned, which can be used in a subsequent list + // deployments call to return the next set of deployments in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDeploymentsOutput `json:"-" xml:"-"` +} + +type metadataListDeploymentsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3243,22 +2854,26 @@ func (s ListDeploymentsOutput) GoString() string { // // . type ListOnPremisesInstancesInput struct { - _ struct{} `type:"structure"` - - // An identifier returned from the previous list on-premises instances call. - // It can be used to return the next set of on-premises instances in the list. + // An identifier that was returned from the previous list on-premises instances + // call, which can be used to return the next set of on-premises instances in + // the list. NextToken *string `locationName:"nextToken" type:"string"` - // The registration status of the on-premises instances: + // The on-premises instances registration status: // - // Deregistered: Include deregistered on-premises instances in the resulting - // list. Registered: Include registered on-premises instances in the resulting - // list. + // Deregistered: Include in the resulting list deregistered on-premises instances. + // Registered: Include in the resulting list registered on-premises instances. RegistrationStatus *string `locationName:"registrationStatus" type:"string" enum:"RegistrationStatus"` // The on-premises instance tags that will be used to restrict the corresponding - // on-premises instance names returned. + // on-premises instance names that are returned. TagFilters []*TagFilter `locationName:"tagFilters" type:"list"` + + metadataListOnPremisesInstancesInput `json:"-" xml:"-"` +} + +type metadataListOnPremisesInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3273,15 +2888,20 @@ func (s ListOnPremisesInstancesInput) GoString() string { // Represents the output of list on-premises instances operation. type ListOnPremisesInstancesOutput struct { - _ struct{} `type:"structure"` - // The list of matching on-premises instance names. InstanceNames []*string `locationName:"instanceNames" type:"list"` - // If a large amount of information is returned, an identifier is also returned. - // It can be used in a subsequent list on-premises instances call to return - // the next set of on-premises instances in the list. + // If the amount of information that is returned is significantly large, an + // identifier will also be returned, which can be used in a subsequent list + // on-premises instances call to return the next set of on-premises instances + // in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListOnPremisesInstancesOutput `json:"-" xml:"-"` +} + +type metadataListOnPremisesInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3294,35 +2914,33 @@ func (s ListOnPremisesInstancesOutput) GoString() string { return s.String() } -// Information about minimum healthy instance. +// Information about minimum healthy instances. type MinimumHealthyHosts struct { - _ struct{} `type:"structure"` - - // The minimum healthy instance type: + // The minimum healthy instances type: // - // HOST_COUNT: The minimum number of healthy instance as an absolute value. - // FLEET_PERCENT: The minimum number of healthy instance as a percentage of - // the total number of instance in the deployment. In an example of nine instance, - // if a HOST_COUNT of six is specified, deploy to up to three instances at a - // time. The deployment will be successful if six or more instances are deployed - // to successfully; otherwise, the deployment fails. If a FLEET_PERCENT of 40 - // is specified, deploy to up to five instance at a time. The deployment will - // be successful if four or more instance are deployed to successfully; otherwise, - // the deployment fails. + // HOST_COUNT: The minimum number of healthy instances, as an absolute value. + // FLEET_PERCENT: The minimum number of healthy instances, as a percentage of + // the total number of instances in the deployment. For example, for 9 instances, + // if a HOST_COUNT of 6 is specified, deploy to up to 3 instances at a time. + // The deployment succeeds if 6 or more instances are successfully deployed + // to; otherwise, the deployment fails. If a FLEET_PERCENT of 40 is specified, + // deploy to up to 5 instances at a time. The deployment succeeds if 4 or more + // instances are successfully deployed to; otherwise, the deployment fails. // // In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime - // will return a minimum healthy instance type of MOST_CONCURRENCY and a value - // of 1. This means a deployment to only one instance at a time. (You cannot - // set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In - // addition, with CodeDeployDefault.OneAtATime, AWS CodeDeploy will try to ensure - // that all instances but one are kept in a healthy state during the deployment. - // Although this allows one instance at a time to be taken offline for a new - // deployment, it also means that if the deployment to the last instance fails, - // the overall deployment still succeeds. + // will return a minimum healthy instances type of MOST_CONCURRENCY and a value + // of 1. This means a deployment to only one instances at a time. (You cannot + // set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) Type *string `locationName:"type" type:"string" enum:"MinimumHealthyHostsType"` - // The minimum healthy instance value. + // The minimum healthy instances value. Value *int64 `locationName:"value" type:"integer"` + + metadataMinimumHealthyHosts `json:"-" xml:"-"` +} + +type metadataMinimumHealthyHosts struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3337,18 +2955,22 @@ func (s MinimumHealthyHosts) GoString() string { // Represents the input of a register application revision operation. type RegisterApplicationRevisionInput struct { - _ struct{} `type:"structure"` - - // The name of an AWS CodeDeploy application associated with the applicable + // The name of an existing AWS CodeDeploy application associated with the applicable // IAM user or AWS account. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` // A comment about the revision. Description *string `locationName:"description" type:"string"` - // Information about the application revision to register, including type and - // location. + // Information about the application revision to register, including the revision's + // type and its location. Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"` + + metadataRegisterApplicationRevisionInput `json:"-" xml:"-"` +} + +type metadataRegisterApplicationRevisionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3361,27 +2983,12 @@ func (s RegisterApplicationRevisionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterApplicationRevisionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterApplicationRevisionInput"} - 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 +type RegisterApplicationRevisionOutput struct { + metadataRegisterApplicationRevisionOutput `json:"-" xml:"-"` } -type RegisterApplicationRevisionOutput struct { - _ struct{} `type:"structure"` +type metadataRegisterApplicationRevisionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3394,15 +3001,19 @@ func (s RegisterApplicationRevisionOutput) GoString() string { return s.String() } -// Represents the input of the register on-premises instance operation. +// Represents the input of register on-premises instance operation. type RegisterOnPremisesInstanceInput struct { - _ struct{} `type:"structure"` - // The ARN of the IAM user to associate with the on-premises instance. IamUserArn *string `locationName:"iamUserArn" type:"string" required:"true"` // The name of the on-premises instance to register. InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + + metadataRegisterOnPremisesInstanceInput `json:"-" xml:"-"` +} + +type metadataRegisterOnPremisesInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3415,24 +3026,12 @@ func (s RegisterOnPremisesInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterOnPremisesInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterOnPremisesInstanceInput"} - if s.IamUserArn == nil { - invalidParams.Add(request.NewErrParamRequired("IamUserArn")) - } - if s.InstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RegisterOnPremisesInstanceOutput struct { + metadataRegisterOnPremisesInstanceOutput `json:"-" xml:"-"` } -type RegisterOnPremisesInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataRegisterOnPremisesInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3447,13 +3046,17 @@ func (s RegisterOnPremisesInstanceOutput) GoString() string { // Represents the input of a remove tags from on-premises instances operation. type RemoveTagsFromOnPremisesInstancesInput struct { - _ struct{} `type:"structure"` - - // The names of the on-premises instances from which to remove tags. + // The names of the on-premises instances to remove tags from. InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` // The tag key-value pairs to remove from the on-premises instances. Tags []*Tag `locationName:"tags" type:"list" required:"true"` + + metadataRemoveTagsFromOnPremisesInstancesInput `json:"-" xml:"-"` +} + +type metadataRemoveTagsFromOnPremisesInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3466,24 +3069,12 @@ 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 +type RemoveTagsFromOnPremisesInstancesOutput struct { + metadataRemoveTagsFromOnPremisesInstancesOutput `json:"-" xml:"-"` } -type RemoveTagsFromOnPremisesInstancesOutput struct { - _ struct{} `type:"structure"` +type metadataRemoveTagsFromOnPremisesInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3496,43 +3087,27 @@ func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string { return s.String() } -// Information about an application revision. -type RevisionInfo struct { - _ struct{} `type:"structure"` - - // Information about an application revision. - GenericRevisionInfo *GenericRevisionInfo `locationName:"genericRevisionInfo" type:"structure"` - - // Information about the location of an application revision. - RevisionLocation *RevisionLocation `locationName:"revisionLocation" type:"structure"` -} - -// String returns the string representation -func (s RevisionInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RevisionInfo) GoString() string { - return s.String() -} - -// Information about the location of an application revision. +// Information about an application revision's location. type RevisionLocation struct { - _ struct{} `type:"structure"` - - // Information about the location of application artifacts stored in GitHub. + // Information about the location of application artifacts that are stored in + // GitHub. GitHubLocation *GitHubLocation `locationName:"gitHubLocation" type:"structure"` - // The type of application revision: + // The application revision's type: // // S3: An application revision stored in Amazon S3. GitHub: An application // revision stored in GitHub. RevisionType *string `locationName:"revisionType" type:"string" enum:"RevisionLocationType"` - // Information about the location of application artifacts stored in Amazon - // S3. + // Information about the location of application artifacts that are stored in + // Amazon S3. S3Location *S3Location `locationName:"s3Location" type:"structure"` + + metadataRevisionLocation `json:"-" xml:"-"` +} + +type metadataRevisionLocation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3545,11 +3120,9 @@ func (s RevisionLocation) GoString() string { return s.String() } -// Information about the location of application artifacts stored in Amazon -// S3. +// Information about the location of application artifacts that are stored in +// Amazon S3. type S3Location struct { - _ struct{} `type:"structure"` - // The name of the Amazon S3 bucket where the application revision is stored. Bucket *string `locationName:"bucket" type:"string"` @@ -3576,6 +3149,12 @@ type S3Location struct { // If the version is not specified, the system will use the most recent version // by default. Version *string `locationName:"version" type:"string"` + + metadataS3Location `json:"-" xml:"-"` +} + +type metadataS3Location struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3590,10 +3169,14 @@ func (s S3Location) GoString() string { // Represents the input of a stop deployment operation. type StopDeploymentInput struct { - _ struct{} `type:"structure"` - // The unique ID of a deployment. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` + + metadataStopDeploymentInput `json:"-" xml:"-"` +} + +type metadataStopDeploymentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3606,31 +3189,21 @@ func (s StopDeploymentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopDeploymentInput"} - if s.DeploymentId == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a stop deployment operation. type StopDeploymentOutput struct { - _ struct{} `type:"structure"` - // The status of the stop deployment operation: // - // Pending: The stop operation is pending. Succeeded: The stop operation was - // successful. + // Pending: The stop operation is pending. Succeeded: The stop operation succeeded. Status *string `locationName:"status" type:"string" enum:"StopStatus"` // An accompanying status message. StatusMessage *string `locationName:"statusMessage" type:"string"` + + metadataStopDeploymentOutput `json:"-" xml:"-"` +} + +type metadataStopDeploymentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3645,13 +3218,17 @@ func (s StopDeploymentOutput) GoString() string { // Information about a tag. type Tag struct { - _ struct{} `type:"structure"` - // The tag's key. Key *string `type:"string"` // The tag's value. Value *string `type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3666,8 +3243,6 @@ func (s Tag) GoString() string { // Information about an on-premises instance tag filter. type TagFilter struct { - _ struct{} `type:"structure"` - // The on-premises instance tag filter key. Key *string `type:"string"` @@ -3678,6 +3253,12 @@ type TagFilter struct { // The on-premises instance tag filter value. Value *string `type:"string"` + + metadataTagFilter `json:"-" xml:"-"` +} + +type metadataTagFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3692,68 +3273,46 @@ func (s TagFilter) GoString() string { // Information about a time range. type TimeRange struct { - _ struct{} `type:"structure"` - - // The end time of the time range. + // The time range's end time. // - // Specify null to leave the end time open-ended. + // Specify null to leave the time range's end time open-ended. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"unix"` - // The start time of the time range. + // The time range's start time. // - // Specify null to leave the start time open-ended. + // Specify null to leave the time range's start time open-ended. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s TimeRange) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s TimeRange) GoString() string { - return s.String() + metadataTimeRange `json:"-" xml:"-"` } -// Information about notification triggers for the deployment group. -type TriggerConfig struct { - _ struct{} `type:"structure"` - - // The event type or types for which notifications are triggered. - // - // The following event type values are supported: - // - // DEPLOYMENT_START DEPLOYMENT_SUCCESS DEPLOYMENT_FAILURE DEPLOYMENT_STOP - // INSTANCE_START INSTANCE_SUCCESS INSTANCE_FAILURE - TriggerEvents []*string `locationName:"triggerEvents" type:"list"` - - // The name of the notification trigger. - TriggerName *string `locationName:"triggerName" type:"string"` - - // The ARN of the Amazon Simple Notification Service topic through which notifications - // about deployment or instance events are sent. - TriggerTargetArn *string `locationName:"triggerTargetArn" type:"string"` +type metadataTimeRange struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s TriggerConfig) String() string { +func (s TimeRange) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TriggerConfig) GoString() string { +func (s TimeRange) GoString() string { return s.String() } // Represents the input of an update application operation. type UpdateApplicationInput struct { - _ struct{} `type:"structure"` + // The current name of the application that you want to change. + ApplicationName *string `locationName:"applicationName" type:"string"` - // The current name of the application you want to change. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` + // The new name that you want to change the application to. + NewApplicationName *string `locationName:"newApplicationName" type:"string"` - // The new name to give the application. - NewApplicationName *string `locationName:"newApplicationName" min:"1" type:"string"` + metadataUpdateApplicationInput `json:"-" xml:"-"` +} + +type metadataUpdateApplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3766,24 +3325,12 @@ func (s UpdateApplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"} - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - if s.NewApplicationName != nil && len(*s.NewApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NewApplicationName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateApplicationOutput struct { + metadataUpdateApplicationOutput `json:"-" xml:"-"` } -type UpdateApplicationOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateApplicationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3798,42 +3345,39 @@ func (s UpdateApplicationOutput) GoString() string { // Represents the input of an update deployment group operation. type UpdateDeploymentGroupInput struct { - _ struct{} `type:"structure"` - // The application name corresponding to the deployment group to update. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + ApplicationName *string `locationName:"applicationName" type:"string" required:"true"` // The replacement list of Auto Scaling groups to be included in the deployment - // group, if you want to change them. To keep the Auto Scaling groups, enter - // their names. To remove Auto Scaling groups, do not enter any Auto Scaling - // group names. + // group, if you want to change them. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` - // The current name of the deployment group. - CurrentDeploymentGroupName *string `locationName:"currentDeploymentGroupName" min:"1" type:"string" required:"true"` + // The current name of the existing deployment group. + CurrentDeploymentGroupName *string `locationName:"currentDeploymentGroupName" type:"string" required:"true"` // The replacement deployment configuration name to use, if you want to change // it. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` + DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string"` - // The replacement set of Amazon EC2 tags on which to filter, if you want to - // change them. To keep the existing tags, enter their names. To remove tags, - // do not enter any tag names. + // The replacement set of Amazon EC2 tags to filter on, if you want to change + // them. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` // The new name of the deployment group, if you want to change it. - NewDeploymentGroupName *string `locationName:"newDeploymentGroupName" min:"1" type:"string"` + NewDeploymentGroupName *string `locationName:"newDeploymentGroupName" type:"string"` - // The replacement set of on-premises instance tags on which to filter, if you - // want to change them. To keep the existing tags, enter their names. To remove - // tags, do not enter any tag names. + // The replacement set of on-premises instance tags for filter on, if you want + // to change them. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` - // A replacement ARN for the service role, if you want to change it. + // A replacement service role's ARN, if you want to change it. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` - // Information about triggers to change when the deployment group is updated. - TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` + metadataUpdateDeploymentGroupInput `json:"-" xml:"-"` +} + +type metadataUpdateDeploymentGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3846,44 +3390,20 @@ func (s UpdateDeploymentGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDeploymentGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDeploymentGroupInput"} - 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.CurrentDeploymentGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CurrentDeploymentGroupName")) - } - if s.CurrentDeploymentGroupName != nil && len(*s.CurrentDeploymentGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CurrentDeploymentGroupName", 1)) - } - if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) - } - if s.NewDeploymentGroupName != nil && len(*s.NewDeploymentGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NewDeploymentGroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an update deployment group operation. type UpdateDeploymentGroupOutput struct { - _ struct{} `type:"structure"` - // If the output contains no data, and the corresponding deployment group contained // at least one Auto Scaling group, AWS CodeDeploy successfully removed all // corresponding Auto Scaling lifecycle event hooks from the AWS account. If - // the output contains data, AWS CodeDeploy could not remove some Auto Scaling + // the output does contain data, AWS CodeDeploy could not remove some Auto Scaling // lifecycle event hooks from the AWS account. HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"` + + metadataUpdateDeploymentGroupOutput `json:"-" xml:"-"` +} + +type metadataUpdateDeploymentGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4071,20 +3591,3 @@ const ( // @enum TagFilterType TagFilterTypeKeyAndValue = "KEY_AND_VALUE" ) - -const ( - // @enum TriggerEventType - TriggerEventTypeDeploymentStart = "DeploymentStart" - // @enum TriggerEventType - TriggerEventTypeDeploymentSuccess = "DeploymentSuccess" - // @enum TriggerEventType - TriggerEventTypeDeploymentFailure = "DeploymentFailure" - // @enum TriggerEventType - TriggerEventTypeDeploymentStop = "DeploymentStop" - // @enum TriggerEventType - TriggerEventTypeInstanceStart = "InstanceStart" - // @enum TriggerEventType - TriggerEventTypeInstanceSuccess = "InstanceSuccess" - // @enum TriggerEventType - TriggerEventTypeInstanceFailure = "InstanceFailure" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go index 27da74320..ca3896d05 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface.go @@ -14,22 +14,10 @@ type CodeDeployAPI interface { AddTagsToOnPremisesInstances(*codedeploy.AddTagsToOnPremisesInstancesInput) (*codedeploy.AddTagsToOnPremisesInstancesOutput, error) - BatchGetApplicationRevisionsRequest(*codedeploy.BatchGetApplicationRevisionsInput) (*request.Request, *codedeploy.BatchGetApplicationRevisionsOutput) - - BatchGetApplicationRevisions(*codedeploy.BatchGetApplicationRevisionsInput) (*codedeploy.BatchGetApplicationRevisionsOutput, error) - BatchGetApplicationsRequest(*codedeploy.BatchGetApplicationsInput) (*request.Request, *codedeploy.BatchGetApplicationsOutput) BatchGetApplications(*codedeploy.BatchGetApplicationsInput) (*codedeploy.BatchGetApplicationsOutput, error) - BatchGetDeploymentGroupsRequest(*codedeploy.BatchGetDeploymentGroupsInput) (*request.Request, *codedeploy.BatchGetDeploymentGroupsOutput) - - BatchGetDeploymentGroups(*codedeploy.BatchGetDeploymentGroupsInput) (*codedeploy.BatchGetDeploymentGroupsOutput, error) - - BatchGetDeploymentInstancesRequest(*codedeploy.BatchGetDeploymentInstancesInput) (*request.Request, *codedeploy.BatchGetDeploymentInstancesOutput) - - BatchGetDeploymentInstances(*codedeploy.BatchGetDeploymentInstancesInput) (*codedeploy.BatchGetDeploymentInstancesOutput, error) - BatchGetDeploymentsRequest(*codedeploy.BatchGetDeploymentsInput) (*request.Request, *codedeploy.BatchGetDeploymentsOutput) BatchGetDeployments(*codedeploy.BatchGetDeploymentsInput) (*codedeploy.BatchGetDeploymentsOutput, error) @@ -162,5 +150,3 @@ type CodeDeployAPI interface { UpdateDeploymentGroup(*codedeploy.UpdateDeploymentGroupInput) (*codedeploy.UpdateDeploymentGroupOutput, error) } - -var _ CodeDeployAPI = (*codedeploy.CodeDeploy)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface_test.go new file mode 100644 index 000000000..9430d10fa --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package codedeployiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/codedeploy" + "github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*codedeployiface.CodeDeployAPI)(nil), codedeploy.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go index e037f9090..a5789003e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codedeploy" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCodeDeploy_AddTagsToOnPremisesInstances() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.AddTagsToOnPremisesInstancesInput{ InstanceNames: []*string{ // Required @@ -44,44 +43,8 @@ func ExampleCodeDeploy_AddTagsToOnPremisesInstances() { fmt.Println(resp) } -func ExampleCodeDeploy_BatchGetApplicationRevisions() { - svc := codedeploy.New(session.New()) - - params := &codedeploy.BatchGetApplicationRevisionsInput{ - ApplicationName: aws.String("ApplicationName"), // Required - Revisions: []*codedeploy.RevisionLocation{ // Required - { // Required - GitHubLocation: &codedeploy.GitHubLocation{ - CommitId: aws.String("CommitId"), - Repository: aws.String("Repository"), - }, - RevisionType: aws.String("RevisionLocationType"), - S3Location: &codedeploy.S3Location{ - Bucket: aws.String("S3Bucket"), - BundleType: aws.String("BundleType"), - ETag: aws.String("ETag"), - Key: aws.String("S3Key"), - Version: aws.String("VersionId"), - }, - }, - // More values... - }, - } - resp, err := svc.BatchGetApplicationRevisions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCodeDeploy_BatchGetApplications() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.BatchGetApplicationsInput{ ApplicationNames: []*string{ @@ -102,54 +65,8 @@ func ExampleCodeDeploy_BatchGetApplications() { fmt.Println(resp) } -func ExampleCodeDeploy_BatchGetDeploymentGroups() { - svc := codedeploy.New(session.New()) - - params := &codedeploy.BatchGetDeploymentGroupsInput{ - ApplicationName: aws.String("ApplicationName"), // Required - DeploymentGroupNames: []*string{ // Required - aws.String("DeploymentGroupName"), // Required - // More values... - }, - } - resp, err := svc.BatchGetDeploymentGroups(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCodeDeploy_BatchGetDeploymentInstances() { - svc := codedeploy.New(session.New()) - - params := &codedeploy.BatchGetDeploymentInstancesInput{ - DeploymentId: aws.String("DeploymentId"), // Required - InstanceIds: []*string{ // Required - aws.String("InstanceId"), // Required - // More values... - }, - } - resp, err := svc.BatchGetDeploymentInstances(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleCodeDeploy_BatchGetDeployments() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.BatchGetDeploymentsInput{ DeploymentIds: []*string{ @@ -171,7 +88,7 @@ func ExampleCodeDeploy_BatchGetDeployments() { } func ExampleCodeDeploy_BatchGetOnPremisesInstances() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.BatchGetOnPremisesInstancesInput{ InstanceNames: []*string{ @@ -193,7 +110,7 @@ func ExampleCodeDeploy_BatchGetOnPremisesInstances() { } func ExampleCodeDeploy_CreateApplication() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.CreateApplicationInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -212,7 +129,7 @@ func ExampleCodeDeploy_CreateApplication() { } func ExampleCodeDeploy_CreateDeployment() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.CreateDeploymentInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -249,7 +166,7 @@ func ExampleCodeDeploy_CreateDeployment() { } func ExampleCodeDeploy_CreateDeploymentConfig() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.CreateDeploymentConfigInput{ DeploymentConfigName: aws.String("DeploymentConfigName"), // Required @@ -272,7 +189,7 @@ func ExampleCodeDeploy_CreateDeploymentConfig() { } func ExampleCodeDeploy_CreateDeploymentGroup() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.CreateDeploymentGroupInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -299,17 +216,6 @@ func ExampleCodeDeploy_CreateDeploymentGroup() { }, // More values... }, - TriggerConfigurations: []*codedeploy.TriggerConfig{ - { // Required - TriggerEvents: []*string{ - aws.String("TriggerEventType"), // Required - // More values... - }, - TriggerName: aws.String("TriggerName"), - TriggerTargetArn: aws.String("TriggerTargetArn"), - }, - // More values... - }, } resp, err := svc.CreateDeploymentGroup(params) @@ -325,7 +231,7 @@ func ExampleCodeDeploy_CreateDeploymentGroup() { } func ExampleCodeDeploy_DeleteApplication() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.DeleteApplicationInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -344,7 +250,7 @@ func ExampleCodeDeploy_DeleteApplication() { } func ExampleCodeDeploy_DeleteDeploymentConfig() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.DeleteDeploymentConfigInput{ DeploymentConfigName: aws.String("DeploymentConfigName"), // Required @@ -363,7 +269,7 @@ func ExampleCodeDeploy_DeleteDeploymentConfig() { } func ExampleCodeDeploy_DeleteDeploymentGroup() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.DeleteDeploymentGroupInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -383,7 +289,7 @@ func ExampleCodeDeploy_DeleteDeploymentGroup() { } func ExampleCodeDeploy_DeregisterOnPremisesInstance() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.DeregisterOnPremisesInstanceInput{ InstanceName: aws.String("InstanceName"), // Required @@ -402,7 +308,7 @@ func ExampleCodeDeploy_DeregisterOnPremisesInstance() { } func ExampleCodeDeploy_GetApplication() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.GetApplicationInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -421,7 +327,7 @@ func ExampleCodeDeploy_GetApplication() { } func ExampleCodeDeploy_GetApplicationRevision() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.GetApplicationRevisionInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -454,7 +360,7 @@ func ExampleCodeDeploy_GetApplicationRevision() { } func ExampleCodeDeploy_GetDeployment() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.GetDeploymentInput{ DeploymentId: aws.String("DeploymentId"), // Required @@ -473,7 +379,7 @@ func ExampleCodeDeploy_GetDeployment() { } func ExampleCodeDeploy_GetDeploymentConfig() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.GetDeploymentConfigInput{ DeploymentConfigName: aws.String("DeploymentConfigName"), // Required @@ -492,7 +398,7 @@ func ExampleCodeDeploy_GetDeploymentConfig() { } func ExampleCodeDeploy_GetDeploymentGroup() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.GetDeploymentGroupInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -512,7 +418,7 @@ func ExampleCodeDeploy_GetDeploymentGroup() { } func ExampleCodeDeploy_GetDeploymentInstance() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.GetDeploymentInstanceInput{ DeploymentId: aws.String("DeploymentId"), // Required @@ -532,7 +438,7 @@ func ExampleCodeDeploy_GetDeploymentInstance() { } func ExampleCodeDeploy_GetOnPremisesInstance() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.GetOnPremisesInstanceInput{ InstanceName: aws.String("InstanceName"), // Required @@ -551,7 +457,7 @@ func ExampleCodeDeploy_GetOnPremisesInstance() { } func ExampleCodeDeploy_ListApplicationRevisions() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.ListApplicationRevisionsInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -576,7 +482,7 @@ func ExampleCodeDeploy_ListApplicationRevisions() { } func ExampleCodeDeploy_ListApplications() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.ListApplicationsInput{ NextToken: aws.String("NextToken"), @@ -595,7 +501,7 @@ func ExampleCodeDeploy_ListApplications() { } func ExampleCodeDeploy_ListDeploymentConfigs() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.ListDeploymentConfigsInput{ NextToken: aws.String("NextToken"), @@ -614,7 +520,7 @@ func ExampleCodeDeploy_ListDeploymentConfigs() { } func ExampleCodeDeploy_ListDeploymentGroups() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.ListDeploymentGroupsInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -634,7 +540,7 @@ func ExampleCodeDeploy_ListDeploymentGroups() { } func ExampleCodeDeploy_ListDeploymentInstances() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.ListDeploymentInstancesInput{ DeploymentId: aws.String("DeploymentId"), // Required @@ -658,7 +564,7 @@ func ExampleCodeDeploy_ListDeploymentInstances() { } func ExampleCodeDeploy_ListDeployments() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.ListDeploymentsInput{ ApplicationName: aws.String("ApplicationName"), @@ -687,7 +593,7 @@ func ExampleCodeDeploy_ListDeployments() { } func ExampleCodeDeploy_ListOnPremisesInstances() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.ListOnPremisesInstancesInput{ NextToken: aws.String("NextToken"), @@ -715,7 +621,7 @@ func ExampleCodeDeploy_ListOnPremisesInstances() { } func ExampleCodeDeploy_RegisterApplicationRevision() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.RegisterApplicationRevisionInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -749,7 +655,7 @@ func ExampleCodeDeploy_RegisterApplicationRevision() { } func ExampleCodeDeploy_RegisterOnPremisesInstance() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.RegisterOnPremisesInstanceInput{ IamUserArn: aws.String("IamUserArn"), // Required @@ -769,7 +675,7 @@ func ExampleCodeDeploy_RegisterOnPremisesInstance() { } func ExampleCodeDeploy_RemoveTagsFromOnPremisesInstances() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.RemoveTagsFromOnPremisesInstancesInput{ InstanceNames: []*string{ // Required @@ -798,7 +704,7 @@ func ExampleCodeDeploy_RemoveTagsFromOnPremisesInstances() { } func ExampleCodeDeploy_StopDeployment() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.StopDeploymentInput{ DeploymentId: aws.String("DeploymentId"), // Required @@ -817,7 +723,7 @@ func ExampleCodeDeploy_StopDeployment() { } func ExampleCodeDeploy_UpdateApplication() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.UpdateApplicationInput{ ApplicationName: aws.String("ApplicationName"), @@ -837,7 +743,7 @@ func ExampleCodeDeploy_UpdateApplication() { } func ExampleCodeDeploy_UpdateDeploymentGroup() { - svc := codedeploy.New(session.New()) + svc := codedeploy.New(nil) params := &codedeploy.UpdateDeploymentGroupInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -865,17 +771,6 @@ func ExampleCodeDeploy_UpdateDeploymentGroup() { // More values... }, ServiceRoleArn: aws.String("Role"), - TriggerConfigurations: []*codedeploy.TriggerConfig{ - { // Required - TriggerEvents: []*string{ - aws.String("TriggerEventType"), // Required - // More values... - }, - TriggerName: aws.String("TriggerName"), - TriggerTargetArn: aws.String("TriggerTargetArn"), - }, - // More values... - }, } resp, err := svc.UpdateDeploymentGroup(params) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go index 6f9e89b9a..7f14cb755 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go @@ -4,28 +4,30 @@ package codedeploy import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -// Overview This reference guide provides descriptions of the AWS CodeDeploy -// APIs. For more information about AWS CodeDeploy, see the AWS CodeDeploy User -// Guide (docs.aws.amazon.com/codedeploy/latest/userguide). +// Overview This is the AWS CodeDeploy API Reference. This guide provides descriptions +// of the AWS CodeDeploy APIs. For additional information, see the AWS CodeDeploy +// User Guide (http://docs.aws.amazon.com/codedeploy/latest/userguide). // -// Using the APIs You can use the AWS CodeDeploy APIs to work with the following: +// Using the APIs You can use the AWS CodeDeploy APIs to work with the following +// items: // -// Applications are unique identifiers used by AWS CodeDeploy to ensure the -// correct combinations of revisions, deployment configurations, and deployment -// groups are being referenced during deployments. +// Applications are unique identifiers that AWS CodeDeploy uses to ensure +// that the correct combinations of revisions, deployment configurations, and +// deployment groups are being referenced during deployments. // // You can use the AWS CodeDeploy APIs to create, delete, get, list, and update // applications. // -// Deployment configurations are sets of deployment rules and success and -// failure conditions used by AWS CodeDeploy during deployments. +// Deployment configurations are sets of deployment rules and deployment +// success and failure conditions that AWS CodeDeploy uses during deployments. // // You can use the AWS CodeDeploy APIs to create, delete, get, and list deployment // configurations. @@ -40,85 +42,61 @@ import ( // are deployed. Instances are identified by their Amazon EC2 tags or Auto Scaling // group names. Instances belong to deployment groups. // -// You can use the AWS CodeDeploy APIs to get and list instance. +// You can use the AWS CodeDeploy APIs to get and list instances. // // Deployments represent the process of deploying revisions to instances. // // You can use the AWS CodeDeploy APIs to create, get, list, and stop deployments. // -// Application revisions are archive files stored in Amazon S3 buckets or -// GitHub repositories. These revisions contain source content (such as source -// code, web pages, executable files, and deployment scripts) along with an -// application specification (AppSpec) file. (The AppSpec file is unique to -// AWS CodeDeploy; it defines the deployment actions you want AWS CodeDeploy -// to execute.) Ffor application revisions stored in Amazon S3 buckets, an application -// revision is uniquely identified by its Amazon S3 object key and its ETag, -// version, or both. For application revisions stored in GitHub repositories, -// an application revision is uniquely identified by its repository name and -// commit ID. Application revisions are deployed through deployment groups. +// Application revisions are archive files that are stored in Amazon S3 buckets +// or GitHub repositories. These revisions contain source content (such as source +// code, web pages, executable files, any deployment scripts, and similar) along +// with an Application Specification file (AppSpec file). (The AppSpec file +// is unique to AWS CodeDeploy; it defines a series of deployment actions that +// you want AWS CodeDeploy to execute.) An application revision is uniquely +// identified by its Amazon S3 object key and its ETag, version, or both (for +// application revisions that are stored in Amazon S3 buckets) or by its repository +// name and commit ID (for applications revisions that are stored in GitHub +// repositories). Application revisions are deployed through deployment groups. // // You can use the AWS CodeDeploy APIs to get, list, and register application // revisions. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type CodeDeploy struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "codedeploy" - -// New creates a new instance of the CodeDeploy client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CodeDeploy client from just a session. -// svc := codedeploy.New(mySession) -// -// // Create a CodeDeploy client with additional configuration -// svc := codedeploy.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeDeploy { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CodeDeploy { - svc := &CodeDeploy{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-10-06", - JSONVersion: "1.1", - TargetPrefix: "CodeDeploy_20141006", - }, - handlers, - ), +// New returns a new CodeDeploy client. +func New(config *aws.Config) *CodeDeploy { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "codedeploy", + APIVersion: "2014-10-06", + JSONVersion: "1.1", + TargetPrefix: "CodeDeploy_20141006", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CodeDeploy{service} } // newRequest creates a new request for a CodeDeploy operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go index 3f12d8f8f..153654ac3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/api.go @@ -4,13 +4,10 @@ package codepipeline import ( - "fmt" "time" "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/private/protocol/jsonrpc" ) const opAcknowledgeJob = "AcknowledgeJob" @@ -139,8 +136,6 @@ func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTy } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteCustomActionTypeOutput{} req.Data = output return @@ -172,8 +167,6 @@ func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeletePipelineOutput{} req.Data = output return @@ -201,8 +194,6 @@ func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransiti } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DisableStageTransitionOutput{} req.Data = output return @@ -231,8 +222,6 @@ func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransition } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &EnableStageTransitionOutput{} req.Data = output return @@ -528,8 +517,6 @@ func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInpu } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutJobFailureResultOutput{} req.Data = output return @@ -558,8 +545,6 @@ func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInpu } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutJobSuccessResultOutput{} req.Data = output return @@ -588,8 +573,6 @@ func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdParty } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutThirdPartyJobFailureResultOutput{} req.Data = output return @@ -618,8 +601,6 @@ func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdParty } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutThirdPartyJobSuccessResultOutput{} req.Data = output return @@ -696,8 +677,6 @@ func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipeli // used to access input and output artifacts in the Amazon S3 bucket used to // store artifact for the pipeline in AWS CodePipeline. type AWSSessionCredentials struct { - _ struct{} `type:"structure"` - // The access key for the session. AccessKeyId *string `locationName:"accessKeyId" type:"string" required:"true"` @@ -706,6 +685,12 @@ type AWSSessionCredentials struct { // The token for the session. SessionToken *string `locationName:"sessionToken" type:"string" required:"true"` + + metadataAWSSessionCredentials `json:"-" xml:"-"` +} + +type metadataAWSSessionCredentials struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -720,8 +705,6 @@ func (s AWSSessionCredentials) GoString() string { // Represents the input of an acknowledge job action. type AcknowledgeJobInput struct { - _ struct{} `type:"structure"` - // The unique system-generated ID of the job for which you want to confirm receipt. JobId *string `locationName:"jobId" type:"string" required:"true"` @@ -729,6 +712,12 @@ type AcknowledgeJobInput struct { // the job is being worked on by only one job worker. This number must be returned // in the response. Nonce *string `locationName:"nonce" type:"string" required:"true"` + + metadataAcknowledgeJobInput `json:"-" xml:"-"` +} + +type metadataAcknowledgeJobInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -741,28 +730,16 @@ func (s AcknowledgeJobInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AcknowledgeJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AcknowledgeJobInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.Nonce == nil { - invalidParams.Add(request.NewErrParamRequired("Nonce")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an acknowledge job action. type AcknowledgeJobOutput struct { - _ struct{} `type:"structure"` - // Whether the job worker has received the specified job. Status *string `locationName:"status" type:"string" enum:"JobStatus"` + + metadataAcknowledgeJobOutput `json:"-" xml:"-"` +} + +type metadataAcknowledgeJobOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -777,19 +754,23 @@ func (s AcknowledgeJobOutput) GoString() string { // Represents the input of an acknowledge third party job action. type AcknowledgeThirdPartyJobInput struct { - _ struct{} `type:"structure"` - // The clientToken portion of the clientId and clientToken pair used to verify // that the calling entity is allowed access to the job and its details. ClientToken *string `locationName:"clientToken" type:"string" required:"true"` // The unique system-generated ID of the job. - JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` + JobId *string `locationName:"jobId" type:"string" required:"true"` // A system-generated random number that AWS CodePipeline uses to ensure that // the job is being worked on by only one job worker. This number must be returned // in the response. Nonce *string `locationName:"nonce" type:"string" required:"true"` + + metadataAcknowledgeThirdPartyJobInput `json:"-" xml:"-"` +} + +type metadataAcknowledgeThirdPartyJobInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -802,34 +783,16 @@ func (s AcknowledgeThirdPartyJobInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AcknowledgeThirdPartyJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AcknowledgeThirdPartyJobInput"} - if s.ClientToken == nil { - invalidParams.Add(request.NewErrParamRequired("ClientToken")) - } - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) - } - if s.Nonce == nil { - invalidParams.Add(request.NewErrParamRequired("Nonce")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an acknowledge third party job action. type AcknowledgeThirdPartyJobOutput struct { - _ struct{} `type:"structure"` - // The status information for the third party job, if any. Status *string `locationName:"status" type:"string" enum:"JobStatus"` + + metadataAcknowledgeThirdPartyJobOutput `json:"-" xml:"-"` +} + +type metadataAcknowledgeThirdPartyJobOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -844,10 +807,14 @@ func (s AcknowledgeThirdPartyJobOutput) GoString() string { // Represents information about an action configuration. type ActionConfiguration struct { - _ struct{} `type:"structure"` - // The configuration data for the action. Configuration map[string]*string `locationName:"configuration" type:"map"` + + metadataActionConfiguration `json:"-" xml:"-"` +} + +type metadataActionConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -862,17 +829,15 @@ func (s ActionConfiguration) GoString() string { // Represents information about an action configuration property. type ActionConfigurationProperty struct { - _ struct{} `type:"structure"` - // The description of the action configuration property that will be displayed // to users. - Description *string `locationName:"description" min:"1" type:"string"` + Description *string `locationName:"description" type:"string"` // Whether the configuration property is a key. Key *bool `locationName:"key" type:"boolean" required:"true"` // The name of the action configuration property. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // Indicates that the proprety will be used in conjunction with PollForJobs. // When creating a custom action, an action can have up to one queryable property. @@ -898,6 +863,12 @@ type ActionConfigurationProperty struct { // The type of the configuration property. Type *string `locationName:"type" type:"string" enum:"ActionConfigurationPropertyType"` + + metadataActionConfigurationProperty `json:"-" xml:"-"` +} + +type metadataActionConfigurationProperty struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -910,41 +881,17 @@ func (s ActionConfigurationProperty) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ActionConfigurationProperty) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ActionConfigurationProperty"} - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Required == nil { - invalidParams.Add(request.NewErrParamRequired("Required")) - } - if s.Secret == nil { - invalidParams.Add(request.NewErrParamRequired("Secret")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the context of an action within the stage of a pipeline to a job // worker. type ActionContext struct { - _ struct{} `type:"structure"` - // The name of the action within the context of a job. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" type:"string"` + + metadataActionContext `json:"-" xml:"-"` +} + +type metadataActionContext struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -959,8 +906,6 @@ func (s ActionContext) GoString() string { // Represents information about an action declaration. type ActionDeclaration struct { - _ struct{} `type:"structure"` - // The configuration information for the action type. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"` @@ -972,7 +917,7 @@ type ActionDeclaration struct { InputArtifacts []*InputArtifact `locationName:"inputArtifacts" type:"list"` // The action declaration's name. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // The name or ID of the result of the action declaration, such as a test or // build artifact. @@ -983,7 +928,13 @@ type ActionDeclaration struct { RoleArn *string `locationName:"roleArn" type:"string"` // The order in which actions are run. - RunOrder *int64 `locationName:"runOrder" min:"1" type:"integer"` + RunOrder *int64 `locationName:"runOrder" type:"integer"` + + metadataActionDeclaration `json:"-" xml:"-"` +} + +type metadataActionDeclaration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -996,66 +947,17 @@ func (s ActionDeclaration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ActionDeclaration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ActionDeclaration"} - if s.ActionTypeId == nil { - invalidParams.Add(request.NewErrParamRequired("ActionTypeId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.RunOrder != nil && *s.RunOrder < 1 { - invalidParams.Add(request.NewErrParamMinValue("RunOrder", 1)) - } - if s.ActionTypeId != nil { - if err := s.ActionTypeId.Validate(); err != nil { - invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams)) - } - } - if s.InputArtifacts != nil { - for i, v := range s.InputArtifacts { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputArtifacts", i), err.(request.ErrInvalidParams)) - } - } - } - if s.OutputArtifacts != nil { - for i, v := range s.OutputArtifacts { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputArtifacts", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents information about how an action runs. type ActionExecution struct { - _ struct{} `type:"structure"` - // The details of an error returned by a URL external to AWS. ErrorDetails *ErrorDetails `locationName:"errorDetails" type:"structure"` // The external ID of the run of the action. - ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"` + ExternalExecutionId *string `locationName:"externalExecutionId" type:"string"` // The URL of a resource external to AWS that will be used when running the // action, for example an external repository URL. - ExternalExecutionUrl *string `locationName:"externalExecutionUrl" min:"1" type:"string"` + ExternalExecutionUrl *string `locationName:"externalExecutionUrl" type:"string"` // The last status change of the action. LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"unix"` @@ -1069,6 +971,12 @@ type ActionExecution struct { // A summary of the run of the action. Summary *string `locationName:"summary" type:"string"` + + metadataActionExecution `json:"-" xml:"-"` +} + +type metadataActionExecution struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1083,19 +991,23 @@ func (s ActionExecution) GoString() string { // Represents information about the version (or revision) of an action. type ActionRevision struct { - _ struct{} `type:"structure"` - // The date and time when the most recent version of the action was created, // in timestamp format. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix" required:"true"` // The unique identifier of the change that set the state to this revision, // for example a deployment ID or timestamp. - RevisionChangeId *string `locationName:"revisionChangeId" min:"1" type:"string" required:"true"` + RevisionChangeId *string `locationName:"revisionChangeId" type:"string"` // The system-generated unique ID that identifies the revision number of the // action. - RevisionId *string `locationName:"revisionId" min:"1" type:"string" required:"true"` + RevisionId *string `locationName:"revisionId" type:"string" required:"true"` + + metadataActionRevision `json:"-" xml:"-"` +} + +type metadataActionRevision struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1108,51 +1020,30 @@ func (s ActionRevision) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ActionRevision) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ActionRevision"} - if s.Created == nil { - invalidParams.Add(request.NewErrParamRequired("Created")) - } - if s.RevisionChangeId == nil { - invalidParams.Add(request.NewErrParamRequired("RevisionChangeId")) - } - if s.RevisionChangeId != nil && len(*s.RevisionChangeId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RevisionChangeId", 1)) - } - if s.RevisionId == nil { - invalidParams.Add(request.NewErrParamRequired("RevisionId")) - } - if s.RevisionId != nil && len(*s.RevisionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RevisionId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents information about the state of an action. type ActionState struct { - _ struct{} `type:"structure"` - // The name of the action. - ActionName *string `locationName:"actionName" min:"1" type:"string"` + ActionName *string `locationName:"actionName" type:"string"` // Represents information about the version (or revision) of an action. CurrentRevision *ActionRevision `locationName:"currentRevision" type:"structure"` // A URL link for more information about the state of the action, such as a // deployment group details page. - EntityUrl *string `locationName:"entityUrl" min:"1" type:"string"` + EntityUrl *string `locationName:"entityUrl" type:"string"` // Represents information about how an action runs. LatestExecution *ActionExecution `locationName:"latestExecution" type:"structure"` // A URL link for more information about the revision, such as a commit details // page. - RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"` + RevisionUrl *string `locationName:"revisionUrl" type:"string"` + + metadataActionState `json:"-" xml:"-"` +} + +type metadataActionState struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1167,8 +1058,6 @@ func (s ActionState) GoString() string { // Returns information about the details of an action type. type ActionType struct { - _ struct{} `type:"structure"` - // The configuration properties for the action type. ActionConfigurationProperties []*ActionConfigurationProperty `locationName:"actionConfigurationProperties" type:"list"` @@ -1183,6 +1072,12 @@ type ActionType struct { // The settings for the action type. Settings *ActionTypeSettings `locationName:"settings" type:"structure"` + + metadataActionType `json:"-" xml:"-"` +} + +type metadataActionType struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1197,8 +1092,6 @@ func (s ActionType) GoString() string { // Represents information about an action type. type ActionTypeId struct { - _ struct{} `type:"structure"` - // A category defines what kind of action can be taken in the stage, and constrains // the provider type for the action. Valid categories are limited to one of // the values below. @@ -1211,10 +1104,16 @@ type ActionTypeId struct { // determined by the action category. For example, an action in the Deploy category // type might have a provider of AWS CodeDeploy, which would be specified as // CodeDeploy. - Provider *string `locationName:"provider" min:"1" type:"string" required:"true"` + Provider *string `locationName:"provider" type:"string" required:"true"` // A string that identifies the action type. - Version *string `locationName:"version" min:"1" type:"string" required:"true"` + Version *string `locationName:"version" type:"string" required:"true"` + + metadataActionTypeId `json:"-" xml:"-"` +} + +type metadataActionTypeId struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1227,59 +1126,35 @@ func (s ActionTypeId) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ActionTypeId) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ActionTypeId"} - if s.Category == nil { - invalidParams.Add(request.NewErrParamRequired("Category")) - } - if s.Owner == nil { - invalidParams.Add(request.NewErrParamRequired("Owner")) - } - if s.Provider == nil { - invalidParams.Add(request.NewErrParamRequired("Provider")) - } - if s.Provider != nil && len(*s.Provider) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Provider", 1)) - } - if s.Version == nil { - invalidParams.Add(request.NewErrParamRequired("Version")) - } - if s.Version != nil && len(*s.Version) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Version", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returns information about the settings for an action type. type ActionTypeSettings struct { - _ struct{} `type:"structure"` - // The URL returned to the AWS CodePipeline console that provides a deep link // to the resources of the external system, such as the configuration page for // an AWS CodeDeploy deployment group. This link is provided as part of the // action display within the pipeline. - EntityUrlTemplate *string `locationName:"entityUrlTemplate" min:"1" type:"string"` + EntityUrlTemplate *string `locationName:"entityUrlTemplate" type:"string"` // The URL returned to the AWS CodePipeline console that contains a link to // the top-level landing page for the external system, such as console page // for AWS CodeDeploy. This link is shown on the pipeline view page in the AWS // CodePipeline console and provides a link to the execution entity of the external // action. - ExecutionUrlTemplate *string `locationName:"executionUrlTemplate" min:"1" type:"string"` + ExecutionUrlTemplate *string `locationName:"executionUrlTemplate" type:"string"` // The URL returned to the AWS CodePipeline console that contains a link to // the page where customers can update or change the configuration of the external // action. - RevisionUrlTemplate *string `locationName:"revisionUrlTemplate" min:"1" type:"string"` + RevisionUrlTemplate *string `locationName:"revisionUrlTemplate" type:"string"` // The URL of a sign-up page where users can sign up for an external service // and perform initial configuration of the action provided by that service. - ThirdPartyConfigurationUrl *string `locationName:"thirdPartyConfigurationUrl" min:"1" type:"string"` + ThirdPartyConfigurationUrl *string `locationName:"thirdPartyConfigurationUrl" type:"string"` + + metadataActionTypeSettings `json:"-" xml:"-"` +} + +type metadataActionTypeSettings struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1292,42 +1167,24 @@ func (s ActionTypeSettings) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ActionTypeSettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ActionTypeSettings"} - if s.EntityUrlTemplate != nil && len(*s.EntityUrlTemplate) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EntityUrlTemplate", 1)) - } - if s.ExecutionUrlTemplate != nil && len(*s.ExecutionUrlTemplate) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExecutionUrlTemplate", 1)) - } - if s.RevisionUrlTemplate != nil && len(*s.RevisionUrlTemplate) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RevisionUrlTemplate", 1)) - } - if s.ThirdPartyConfigurationUrl != nil && len(*s.ThirdPartyConfigurationUrl) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThirdPartyConfigurationUrl", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents information about an artifact that will be worked upon by actions // in the pipeline. type Artifact struct { - _ struct{} `type:"structure"` - // The location of an artifact. Location *ArtifactLocation `locationName:"location" type:"structure"` // The artifact's name. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" type:"string"` // The artifact's revision ID. Depending on the type of object, this could be // a commit ID (GitHub) or a revision ID (Amazon S3). - Revision *string `locationName:"revision" min:"1" type:"string"` + Revision *string `locationName:"revision" type:"string"` + + metadataArtifact `json:"-" xml:"-"` +} + +type metadataArtifact struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1342,13 +1199,17 @@ func (s Artifact) GoString() string { // Returns information about the details of an artifact. type ArtifactDetails struct { - _ struct{} `type:"structure"` - // The maximum number of artifacts allowed for the action type. MaximumCount *int64 `locationName:"maximumCount" type:"integer" required:"true"` // The minimum number of artifacts allowed for the action type. MinimumCount *int64 `locationName:"minimumCount" type:"integer" required:"true"` + + metadataArtifactDetails `json:"-" xml:"-"` +} + +type metadataArtifactDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1361,31 +1222,19 @@ func (s ArtifactDetails) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ArtifactDetails) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ArtifactDetails"} - if s.MaximumCount == nil { - invalidParams.Add(request.NewErrParamRequired("MaximumCount")) - } - if s.MinimumCount == nil { - invalidParams.Add(request.NewErrParamRequired("MinimumCount")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents information about the location of an artifact. type ArtifactLocation struct { - _ struct{} `type:"structure"` - // The Amazon S3 bucket that contains the artifact. S3Location *S3ArtifactLocation `locationName:"s3Location" type:"structure"` // The type of artifact in the location. Type *string `locationName:"type" type:"string" enum:"ArtifactLocationType"` + + metadataArtifactLocation `json:"-" xml:"-"` +} + +type metadataArtifactLocation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1400,21 +1249,25 @@ func (s ArtifactLocation) GoString() string { // The Amazon S3 location where artifacts are stored for the pipeline. If this // Amazon S3 bucket is created manually, it must meet the requirements for AWS -// CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket). +// CodePipeline. For more information, see the Concepts. type ArtifactStore struct { - _ struct{} `type:"structure"` - - // The encryption key used to encrypt the data in the artifact store, such as - // an AWS Key Management Service (AWS KMS) key. If this is undefined, the default - // key for Amazon S3 is used. + // The AWS Key Management Service (AWS KMS) key used to encrypt the data in + // the artifact store. If this is undefined, the default key for Amazon S3 is + // used. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"` // The location for storing the artifacts for a pipeline, such as an S3 bucket // or folder. - Location *string `locationName:"location" min:"3" type:"string" required:"true"` + Location *string `locationName:"location" type:"string" required:"true"` // The type of the artifact store, such as S3. Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactStoreType"` + + metadataArtifactStore `json:"-" xml:"-"` +} + +type metadataArtifactStore struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1427,39 +1280,19 @@ func (s ArtifactStore) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ArtifactStore) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ArtifactStore"} - if s.Location == nil { - invalidParams.Add(request.NewErrParamRequired("Location")) - } - if s.Location != nil && len(*s.Location) < 3 { - invalidParams.Add(request.NewErrParamMinLen("Location", 3)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.EncryptionKey != nil { - if err := s.EncryptionKey.Validate(); err != nil { - invalidParams.AddNested("EncryptionKey", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Reserved for future use. +// Represents information about a gate declaration. type BlockerDeclaration struct { - _ struct{} `type:"structure"` + // The name of the gate declaration. + Name *string `locationName:"name" type:"string" required:"true"` - // Reserved for future use. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // Reserved for future use. + // The type of the gate declaration. Type *string `locationName:"type" type:"string" required:"true" enum:"BlockerType"` + + metadataBlockerDeclaration `json:"-" xml:"-"` +} + +type metadataBlockerDeclaration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1472,41 +1305,12 @@ func (s BlockerDeclaration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BlockerDeclaration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BlockerDeclaration"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of a create custom action operation. type CreateCustomActionTypeInput struct { - _ struct{} `type:"structure"` - // The category of the custom action, such as a source action or a build action. - // - // Although Source is listed as a valid value, it is not currently functional. - // This value is reserved for future use. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"` // The configuration properties for the custom action. - // - // You can refer to a name in the configuration properties of the custom action - // within the URL templates by following the format of {Config:name}, as long - // as the configuration property is both required and not secret. For more information, - // see Create a Custom Action for a Pipeline (http://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-create-custom-action.html). ConfigurationProperties []*ActionConfigurationProperty `locationName:"configurationProperties" type:"list"` // Returns information about the details of an artifact. @@ -1516,13 +1320,22 @@ type CreateCustomActionTypeInput struct { OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"` // The provider of the service used in the custom action, such as AWS CodeDeploy. - Provider *string `locationName:"provider" min:"1" type:"string" required:"true"` + Provider *string `locationName:"provider" type:"string" required:"true"` // Returns information about the settings for an action type. Settings *ActionTypeSettings `locationName:"settings" type:"structure"` // The version number of the custom action. - Version *string `locationName:"version" min:"1" type:"string" required:"true"` + // + // A newly-created custom action is always assigned a version number of 1. + // This is required. + Version *string `locationName:"version" type:"string" required:"true"` + + metadataCreateCustomActionTypeInput `json:"-" xml:"-"` +} + +type metadataCreateCustomActionTypeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1535,68 +1348,16 @@ func (s CreateCustomActionTypeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCustomActionTypeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCustomActionTypeInput"} - if s.Category == nil { - invalidParams.Add(request.NewErrParamRequired("Category")) - } - if s.InputArtifactDetails == nil { - invalidParams.Add(request.NewErrParamRequired("InputArtifactDetails")) - } - if s.OutputArtifactDetails == nil { - invalidParams.Add(request.NewErrParamRequired("OutputArtifactDetails")) - } - if s.Provider == nil { - invalidParams.Add(request.NewErrParamRequired("Provider")) - } - if s.Provider != nil && len(*s.Provider) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Provider", 1)) - } - if s.Version == nil { - invalidParams.Add(request.NewErrParamRequired("Version")) - } - if s.Version != nil && len(*s.Version) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Version", 1)) - } - if s.ConfigurationProperties != nil { - for i, v := range s.ConfigurationProperties { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ConfigurationProperties", i), err.(request.ErrInvalidParams)) - } - } - } - if s.InputArtifactDetails != nil { - if err := s.InputArtifactDetails.Validate(); err != nil { - invalidParams.AddNested("InputArtifactDetails", err.(request.ErrInvalidParams)) - } - } - if s.OutputArtifactDetails != nil { - if err := s.OutputArtifactDetails.Validate(); err != nil { - invalidParams.AddNested("OutputArtifactDetails", err.(request.ErrInvalidParams)) - } - } - if s.Settings != nil { - if err := s.Settings.Validate(); err != nil { - invalidParams.AddNested("Settings", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a create custom action operation. type CreateCustomActionTypeOutput struct { - _ struct{} `type:"structure"` - // Returns information about the details of an action type. ActionType *ActionType `locationName:"actionType" type:"structure" required:"true"` + + metadataCreateCustomActionTypeOutput `json:"-" xml:"-"` +} + +type metadataCreateCustomActionTypeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1611,10 +1372,14 @@ func (s CreateCustomActionTypeOutput) GoString() string { // Represents the input of a create pipeline action. type CreatePipelineInput struct { - _ struct{} `type:"structure"` - // Represents the structure of actions and stages to be performed in the pipeline. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"` + + metadataCreatePipelineInput `json:"-" xml:"-"` +} + +type metadataCreatePipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1627,30 +1392,16 @@ func (s CreatePipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"} - if s.Pipeline == nil { - invalidParams.Add(request.NewErrParamRequired("Pipeline")) - } - if s.Pipeline != nil { - if err := s.Pipeline.Validate(); err != nil { - invalidParams.AddNested("Pipeline", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a create pipeline action. type CreatePipelineOutput struct { - _ struct{} `type:"structure"` - // Represents the structure of actions and stages to be performed in the pipeline. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"` + + metadataCreatePipelineOutput `json:"-" xml:"-"` +} + +type metadataCreatePipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1665,13 +1416,17 @@ func (s CreatePipelineOutput) GoString() string { // Represents information about a current revision. type CurrentRevision struct { - _ struct{} `type:"structure"` - // The change identifier for the current revision. - ChangeIdentifier *string `locationName:"changeIdentifier" min:"1" type:"string" required:"true"` + ChangeIdentifier *string `locationName:"changeIdentifier" type:"string" required:"true"` // The revision ID of the current version of an artifact. - Revision *string `locationName:"revision" min:"1" type:"string" required:"true"` + Revision *string `locationName:"revision" type:"string" required:"true"` + + metadataCurrentRevision `json:"-" xml:"-"` +} + +type metadataCurrentRevision struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1684,42 +1439,24 @@ func (s CurrentRevision) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CurrentRevision) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CurrentRevision"} - if s.ChangeIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeIdentifier")) - } - if s.ChangeIdentifier != nil && len(*s.ChangeIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ChangeIdentifier", 1)) - } - if s.Revision == nil { - invalidParams.Add(request.NewErrParamRequired("Revision")) - } - if s.Revision != nil && len(*s.Revision) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Revision", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of a delete custom action operation. The custom action // will be marked as deleted. type DeleteCustomActionTypeInput struct { - _ struct{} `type:"structure"` - // The category of the custom action that you want to delete, such as source // or deploy. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"` // The provider of the service used in the custom action, such as AWS CodeDeploy. - Provider *string `locationName:"provider" min:"1" type:"string" required:"true"` + Provider *string `locationName:"provider" type:"string" required:"true"` // The version of the custom action to delete. - Version *string `locationName:"version" min:"1" type:"string" required:"true"` + Version *string `locationName:"version" type:"string" required:"true"` + + metadataDeleteCustomActionTypeInput `json:"-" xml:"-"` +} + +type metadataDeleteCustomActionTypeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1732,33 +1469,12 @@ func (s DeleteCustomActionTypeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCustomActionTypeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCustomActionTypeInput"} - if s.Category == nil { - invalidParams.Add(request.NewErrParamRequired("Category")) - } - if s.Provider == nil { - invalidParams.Add(request.NewErrParamRequired("Provider")) - } - if s.Provider != nil && len(*s.Provider) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Provider", 1)) - } - if s.Version == nil { - invalidParams.Add(request.NewErrParamRequired("Version")) - } - if s.Version != nil && len(*s.Version) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Version", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteCustomActionTypeOutput struct { + metadataDeleteCustomActionTypeOutput `json:"-" xml:"-"` } -type DeleteCustomActionTypeOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteCustomActionTypeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1773,10 +1489,14 @@ func (s DeleteCustomActionTypeOutput) GoString() string { // Represents the input of a delete pipeline action. type DeletePipelineInput struct { - _ struct{} `type:"structure"` - // The name of the pipeline to be deleted. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataDeletePipelineInput `json:"-" xml:"-"` +} + +type metadataDeletePipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1789,24 +1509,12 @@ func (s DeletePipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeletePipelineOutput struct { + metadataDeletePipelineOutput `json:"-" xml:"-"` } -type DeletePipelineOutput struct { - _ struct{} `type:"structure"` +type metadataDeletePipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1821,26 +1529,30 @@ func (s DeletePipelineOutput) GoString() string { // Represents the input of a disable stage transition input action. type DisableStageTransitionInput struct { - _ struct{} `type:"structure"` - // The name of the pipeline in which you want to disable the flow of artifacts // from one stage to another. - PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"` + PipelineName *string `locationName:"pipelineName" type:"string" required:"true"` // The reason given to the user why a stage is disabled, such as waiting for // manual approval or manual tests. This message is displayed in the pipeline // console UI. - Reason *string `locationName:"reason" min:"1" type:"string" required:"true"` + Reason *string `locationName:"reason" type:"string" required:"true"` // The name of the stage where you want to disable the inbound or outbound transition // of artifacts. - StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"` + StageName *string `locationName:"stageName" type:"string" required:"true"` // Specifies whether artifacts will be prevented from transitioning into the // stage and being processed by the actions in that stage (inbound), or prevented // from transitioning from the stage after they have been processed by the actions // in that stage (outbound). TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"` + + metadataDisableStageTransitionInput `json:"-" xml:"-"` +} + +type metadataDisableStageTransitionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1853,39 +1565,12 @@ func (s DisableStageTransitionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableStageTransitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableStageTransitionInput"} - if s.PipelineName == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineName")) - } - if s.PipelineName != nil && len(*s.PipelineName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) - } - if s.Reason == nil { - invalidParams.Add(request.NewErrParamRequired("Reason")) - } - if s.Reason != nil && len(*s.Reason) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Reason", 1)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - if s.TransitionType == nil { - invalidParams.Add(request.NewErrParamRequired("TransitionType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DisableStageTransitionOutput struct { + metadataDisableStageTransitionOutput `json:"-" xml:"-"` } -type DisableStageTransitionOutput struct { - _ struct{} `type:"structure"` +type metadataDisableStageTransitionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1900,20 +1585,24 @@ func (s DisableStageTransitionOutput) GoString() string { // Represents the input of an enable stage transition action. type EnableStageTransitionInput struct { - _ struct{} `type:"structure"` - // The name of the pipeline in which you want to enable the flow of artifacts // from one stage to another. - PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"` + PipelineName *string `locationName:"pipelineName" type:"string" required:"true"` // The name of the stage where you want to enable the transition of artifacts, // either into the stage (inbound) or from that stage to the next stage (outbound). - StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"` + StageName *string `locationName:"stageName" type:"string" required:"true"` // Specifies whether artifacts will be allowed to enter the stage and be processed // by the actions in that stage (inbound) or whether already-processed artifacts // will be allowed to transition to the next stage (outbound). TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"` + + metadataEnableStageTransitionInput `json:"-" xml:"-"` +} + +type metadataEnableStageTransitionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1926,33 +1615,12 @@ func (s EnableStageTransitionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableStageTransitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableStageTransitionInput"} - if s.PipelineName == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineName")) - } - if s.PipelineName != nil && len(*s.PipelineName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - if s.TransitionType == nil { - invalidParams.Add(request.NewErrParamRequired("TransitionType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type EnableStageTransitionOutput struct { + metadataEnableStageTransitionOutput `json:"-" xml:"-"` } -type EnableStageTransitionOutput struct { - _ struct{} `type:"structure"` +type metadataEnableStageTransitionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1965,18 +1633,20 @@ func (s EnableStageTransitionOutput) GoString() string { return s.String() } -// Represents information about the key used to encrypt data in the artifact -// store, such as an AWS Key Management Service (AWS KMS) key. +// Represents information about the AWS Key Management Service (AWS KMS) key +// used to encrypt data in the artifact store. type EncryptionKey struct { - _ struct{} `type:"structure"` + // The ID of the AWS KMS key. + Id *string `locationName:"id" type:"string" required:"true"` - // The ID used to identify the key. For an AWS KMS key, this is the key ID or - // key ARN. - Id *string `locationName:"id" min:"1" type:"string" required:"true"` - - // The type of encryption key, such as an AWS Key Management Service (AWS KMS) - // key. When creating or updating a pipeline, the value must be set to 'KMS'. + // The type of AWS KMS key, such as a customer master key. Type *string `locationName:"type" type:"string" required:"true" enum:"EncryptionKeyType"` + + metadataEncryptionKey `json:"-" xml:"-"` +} + +type metadataEncryptionKey struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1989,34 +1659,19 @@ func (s EncryptionKey) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EncryptionKey) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EncryptionKey"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents information about an error in AWS CodePipeline. type ErrorDetails struct { - _ struct{} `type:"structure"` - // The system ID or error number code of the error. Code *string `locationName:"code" type:"string"` // The text of the error message. Message *string `locationName:"message" type:"string"` + + metadataErrorDetails `json:"-" xml:"-"` +} + +type metadataErrorDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2032,11 +1687,9 @@ func (s ErrorDetails) GoString() string { // The details of the actions taken and results produced on an artifact as it // passes through stages in the pipeline. type ExecutionDetails struct { - _ struct{} `type:"structure"` - // The system-generated unique ID of this action used to identify this job worker // in any external systems, such as AWS CodeDeploy. - ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"` + ExternalExecutionId *string `locationName:"externalExecutionId" type:"string"` // The percentage of work completed on the action, represented on a scale of // zero to one hundred percent. @@ -2044,6 +1697,12 @@ type ExecutionDetails struct { // The summary of the current status of the actions. Summary *string `locationName:"summary" type:"string"` + + metadataExecutionDetails `json:"-" xml:"-"` +} + +type metadataExecutionDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2056,31 +1715,22 @@ func (s ExecutionDetails) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ExecutionDetails) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ExecutionDetails"} - if s.ExternalExecutionId != nil && len(*s.ExternalExecutionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExternalExecutionId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents information about failure details. type FailureDetails struct { - _ struct{} `type:"structure"` - // The external ID of the run of the action that failed. - ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"` + ExternalExecutionId *string `locationName:"externalExecutionId" type:"string"` // The message about the failure. Message *string `locationName:"message" type:"string" required:"true"` // The type of the failure. Type *string `locationName:"type" type:"string" required:"true" enum:"FailureType"` + + metadataFailureDetails `json:"-" xml:"-"` +} + +type metadataFailureDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2093,31 +1743,16 @@ func (s FailureDetails) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *FailureDetails) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FailureDetails"} - if s.ExternalExecutionId != nil && len(*s.ExternalExecutionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExternalExecutionId", 1)) - } - if s.Message == nil { - invalidParams.Add(request.NewErrParamRequired("Message")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of a get job details action. type GetJobDetailsInput struct { - _ struct{} `type:"structure"` - // The unique system-generated ID for the job. JobId *string `locationName:"jobId" type:"string" required:"true"` + + metadataGetJobDetailsInput `json:"-" xml:"-"` +} + +type metadataGetJobDetailsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2130,28 +1765,19 @@ func (s GetJobDetailsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetJobDetailsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetJobDetailsInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a get job details action. type GetJobDetailsOutput struct { - _ struct{} `type:"structure"` - // The details of the job. // // If AWSSessionCredentials is used, a long-running job can call GetJobDetails // again to obtain new credentials. JobDetails *JobDetails `locationName:"jobDetails" type:"structure"` + + metadataGetJobDetailsOutput `json:"-" xml:"-"` +} + +type metadataGetJobDetailsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2166,15 +1792,19 @@ func (s GetJobDetailsOutput) GoString() string { // Represents the input of a get pipeline action. type GetPipelineInput struct { - _ struct{} `type:"structure"` - // The name of the pipeline for which you want to get information. Pipeline // names must be unique under an Amazon Web Services (AWS) user account. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // The version number of the pipeline. If you do not specify a version, defaults // to the most current version. - Version *int64 `locationName:"version" min:"1" type:"integer"` + Version *int64 `locationName:"version" type:"integer"` + + metadataGetPipelineInput `json:"-" xml:"-"` +} + +type metadataGetPipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2187,31 +1817,16 @@ func (s GetPipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPipelineInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Version != nil && *s.Version < 1 { - invalidParams.Add(request.NewErrParamMinValue("Version", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a get pipeline action. type GetPipelineOutput struct { - _ struct{} `type:"structure"` - // Represents the structure of actions and stages to be performed in the pipeline. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"` + + metadataGetPipelineOutput `json:"-" xml:"-"` +} + +type metadataGetPipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2226,10 +1841,14 @@ func (s GetPipelineOutput) GoString() string { // Represents the input of a get pipeline state action. type GetPipelineStateInput struct { - _ struct{} `type:"structure"` - // The name of the pipeline about which you want to get information. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataGetPipelineStateInput `json:"-" xml:"-"` +} + +type metadataGetPipelineStateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2242,36 +1861,18 @@ func (s GetPipelineStateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPipelineStateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPipelineStateInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a get pipeline state action. type GetPipelineStateOutput struct { - _ struct{} `type:"structure"` - // The date and time the pipeline was created, in timestamp format. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"` // The name of the pipeline for which you want to get the state. - PipelineName *string `locationName:"pipelineName" min:"1" type:"string"` + PipelineName *string `locationName:"pipelineName" type:"string"` // The version number of the pipeline. // // A newly-created pipeline is always assigned a version number of 1. - PipelineVersion *int64 `locationName:"pipelineVersion" min:"1" type:"integer"` + PipelineVersion *int64 `locationName:"pipelineVersion" type:"integer"` // A list of the pipeline stage output information, including stage name, state, // most recent run details, whether the stage is disabled, and other data. @@ -2279,6 +1880,12 @@ type GetPipelineStateOutput struct { // The date and time the pipeline was last updated, in timestamp format. Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"` + + metadataGetPipelineStateOutput `json:"-" xml:"-"` +} + +type metadataGetPipelineStateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2293,14 +1900,18 @@ func (s GetPipelineStateOutput) GoString() string { // Represents the input of a get third party job details action. type GetThirdPartyJobDetailsInput struct { - _ struct{} `type:"structure"` - // The clientToken portion of the clientId and clientToken pair used to verify // that the calling entity is allowed access to the job and its details. ClientToken *string `locationName:"clientToken" type:"string" required:"true"` - // The unique system-generated ID used for identifying the job. - JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` + // The unique system-generated ID used for identifying the job. + JobId *string `locationName:"jobId" type:"string" required:"true"` + + metadataGetThirdPartyJobDetailsInput `json:"-" xml:"-"` +} + +type metadataGetThirdPartyJobDetailsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2313,31 +1924,16 @@ func (s GetThirdPartyJobDetailsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetThirdPartyJobDetailsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetThirdPartyJobDetailsInput"} - if s.ClientToken == nil { - invalidParams.Add(request.NewErrParamRequired("ClientToken")) - } - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a get third party job details action. type GetThirdPartyJobDetailsOutput struct { - _ struct{} `type:"structure"` - // The details of the job, including any protected values defined for the job. JobDetails *ThirdPartyJobDetails `locationName:"jobDetails" type:"structure"` + + metadataGetThirdPartyJobDetailsOutput `json:"-" xml:"-"` +} + +type metadataGetThirdPartyJobDetailsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2353,8 +1949,6 @@ func (s GetThirdPartyJobDetailsOutput) GoString() string { // Represents information about an artifact to be worked on, such as a test // or build artifact. type InputArtifact struct { - _ struct{} `type:"structure"` - // The name of the artifact to be worked on, for example, "My App". // // The input artifact of an action must exactly match the output artifact declared @@ -2362,7 +1956,13 @@ type InputArtifact struct { // action in strict sequence from the action that provided the output artifact. // Actions in parallel can declare different output artifacts, which are in // turn consumed by different following actions. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataInputArtifact `json:"-" xml:"-"` +} + +type metadataInputArtifact struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2375,26 +1975,8 @@ func (s InputArtifact) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InputArtifact) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InputArtifact"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // 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"` @@ -2408,6 +1990,12 @@ type Job struct { // the job is being worked on by only one job worker. This number must be returned // in the response. Nonce *string `locationName:"nonce" type:"string"` + + metadataJob `json:"-" xml:"-"` +} + +type metadataJob struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2423,8 +2011,6 @@ func (s Job) GoString() string { // Represents additional 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"` @@ -2441,8 +2027,8 @@ type JobData struct { // job requires in order to continue the job asynchronously. ContinuationToken *string `locationName:"continuationToken" 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. + // Represents information about the AWS Key Management Service (AWS KMS) key + // used to encrypt data in the artifact store. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"` // The artifact supplied to the job. @@ -2453,6 +2039,12 @@ type JobData struct { // Represents information about a pipeline to a job worker. PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"` + + metadataJobData `json:"-" xml:"-"` +} + +type metadataJobData struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2467,8 +2059,6 @@ func (s JobData) GoString() string { // 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"` @@ -2478,6 +2068,12 @@ type JobDetails struct { // The unique system-generated ID of the job. Id *string `locationName:"id" type:"string"` + + metadataJobDetails `json:"-" xml:"-"` +} + +type metadataJobDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2492,14 +2088,18 @@ func (s JobDetails) GoString() string { // Represents the input of a list action types action. type ListActionTypesInput struct { - _ struct{} `type:"structure"` - // Filters the list of action types to those created by a specified entity. ActionOwnerFilter *string `locationName:"actionOwnerFilter" type:"string" enum:"ActionOwner"` // An identifier that was returned from the previous list action types call, // which can be used to return the next set of action types in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListActionTypesInput `json:"-" xml:"-"` +} + +type metadataListActionTypesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2514,8 +2114,6 @@ func (s ListActionTypesInput) GoString() string { // Represents the output of a list action types action. type ListActionTypesOutput struct { - _ struct{} `type:"structure"` - // Provides details of the action types. ActionTypes []*ActionType `locationName:"actionTypes" type:"list" required:"true"` @@ -2523,6 +2121,12 @@ type ListActionTypesOutput struct { // is also returned which can be used in a subsequent list action types call // to return the next set of action types in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListActionTypesOutput `json:"-" xml:"-"` +} + +type metadataListActionTypesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2537,11 +2141,15 @@ func (s ListActionTypesOutput) GoString() string { // Represents the input of a list pipelines action. type ListPipelinesInput struct { - _ struct{} `type:"structure"` - // An identifier that was returned from the previous list pipelines call, which // can be used to return the next set of pipelines in the list. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListPipelinesInput `json:"-" xml:"-"` +} + +type metadataListPipelinesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2556,8 +2164,6 @@ func (s ListPipelinesInput) GoString() string { // Represents the output of a list pipelines action. type ListPipelinesOutput struct { - _ struct{} `type:"structure"` - // If the amount of returned information is significantly large, an identifier // is also returned which can be used in a subsequent list pipelines call to // return the next set of pipelines in the list. @@ -2565,6 +2171,12 @@ type ListPipelinesOutput struct { // The list of pipelines. Pipelines []*PipelineSummary `locationName:"pipelines" type:"list"` + + metadataListPipelinesOutput `json:"-" xml:"-"` +} + +type metadataListPipelinesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2579,8 +2191,6 @@ func (s ListPipelinesOutput) GoString() string { // Represents information about the output of an action. type OutputArtifact struct { - _ struct{} `type:"structure"` - // The name of the output of an artifact, such as "My App". // // The input artifact of an action must exactly match the output artifact declared @@ -2590,7 +2200,13 @@ type OutputArtifact struct { // turn consumed by different following actions. // // Output artifact names must be unique within a pipeline. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataOutputArtifact `json:"-" xml:"-"` +} + +type metadataOutputArtifact struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2603,36 +2219,24 @@ func (s OutputArtifact) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *OutputArtifact) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OutputArtifact"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents information about a pipeline to a job worker. type PipelineContext struct { - _ struct{} `type:"structure"` - // Represents the context of an action within the stage of a pipeline to a job // worker. Action *ActionContext `locationName:"action" type:"structure"` // The name of the pipeline. This is a user-specified value. Pipeline names // must be unique across all pipeline names under an Amazon Web Services account. - PipelineName *string `locationName:"pipelineName" min:"1" type:"string"` + PipelineName *string `locationName:"pipelineName" type:"string"` // The stage of the pipeline. Stage *StageContext `locationName:"stage" type:"structure"` + + metadataPipelineContext `json:"-" xml:"-"` +} + +type metadataPipelineContext struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2647,15 +2251,13 @@ func (s PipelineContext) GoString() string { // Represents the structure of actions and stages to be performed in the pipeline. type PipelineDeclaration struct { - _ struct{} `type:"structure"` - // The Amazon S3 location where artifacts are stored for the pipeline. If this // Amazon S3 bucket is created manually, it must meet the requirements for AWS - // CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket). + // CodePipeline. For more information, see the Concepts. ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure" required:"true"` // The name of the action to be performed. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform // actions with no actionRoleArn, or to use to assume roles for actions with @@ -2667,7 +2269,13 @@ type PipelineDeclaration struct { // The version number of the pipeline. A new pipeline always has a version number // of 1. This number is automatically incremented when a pipeline is updated. - Version *int64 `locationName:"version" min:"1" type:"integer"` + Version *int64 `locationName:"version" type:"integer"` + + metadataPipelineDeclaration `json:"-" xml:"-"` +} + +type metadataPipelineDeclaration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2680,64 +2288,25 @@ func (s PipelineDeclaration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PipelineDeclaration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PipelineDeclaration"} - if s.ArtifactStore == nil { - invalidParams.Add(request.NewErrParamRequired("ArtifactStore")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.Stages == nil { - invalidParams.Add(request.NewErrParamRequired("Stages")) - } - if s.Version != nil && *s.Version < 1 { - invalidParams.Add(request.NewErrParamMinValue("Version", 1)) - } - if s.ArtifactStore != nil { - if err := s.ArtifactStore.Validate(); err != nil { - invalidParams.AddNested("ArtifactStore", err.(request.ErrInvalidParams)) - } - } - if s.Stages != nil { - for i, v := range s.Stages { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Stages", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returns a summary of a pipeline. type PipelineSummary struct { - _ struct{} `type:"structure"` - // The date and time the pipeline was created, in timestamp format. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"` // The name of the pipeline. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" type:"string"` // The date and time of the last update to the pipeline, in timestamp format. Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"` // The version number of the pipeline. - Version *int64 `locationName:"version" min:"1" type:"integer"` + Version *int64 `locationName:"version" type:"integer"` + + metadataPipelineSummary `json:"-" xml:"-"` +} + +type metadataPipelineSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2752,19 +2321,23 @@ func (s PipelineSummary) GoString() string { // Represents the input of a poll for jobs action. type PollForJobsInput struct { - _ struct{} `type:"structure"` - // Represents information about an action type. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"` // The maximum number of jobs to return in a poll for jobs call. - MaxBatchSize *int64 `locationName:"maxBatchSize" min:"1" type:"integer"` + MaxBatchSize *int64 `locationName:"maxBatchSize" type:"integer"` // A map of property names and values. For an action type with no queryable // properties, this value must be null or an empty map. For an action type with // a queryable property, you must supply that property as a key in the map. // Only jobs whose action configuration matches the mapped value will be returned. QueryParam map[string]*string `locationName:"queryParam" type:"map"` + + metadataPollForJobsInput `json:"-" xml:"-"` +} + +type metadataPollForJobsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2777,33 +2350,16 @@ func (s PollForJobsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PollForJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PollForJobsInput"} - if s.ActionTypeId == nil { - invalidParams.Add(request.NewErrParamRequired("ActionTypeId")) - } - if s.MaxBatchSize != nil && *s.MaxBatchSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxBatchSize", 1)) - } - if s.ActionTypeId != nil { - if err := s.ActionTypeId.Validate(); err != nil { - invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a poll for jobs action. type PollForJobsOutput struct { - _ struct{} `type:"structure"` - // Information about the jobs to take action on. Jobs []*Job `locationName:"jobs" type:"list"` + + metadataPollForJobsOutput `json:"-" xml:"-"` +} + +type metadataPollForJobsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2818,13 +2374,17 @@ func (s PollForJobsOutput) GoString() string { // Represents the input of a poll for third party jobs action. type PollForThirdPartyJobsInput struct { - _ struct{} `type:"structure"` - // Represents information about an action type. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"` // The maximum number of jobs to return in a poll for jobs call. - MaxBatchSize *int64 `locationName:"maxBatchSize" min:"1" type:"integer"` + MaxBatchSize *int64 `locationName:"maxBatchSize" type:"integer"` + + metadataPollForThirdPartyJobsInput `json:"-" xml:"-"` +} + +type metadataPollForThirdPartyJobsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2837,33 +2397,16 @@ func (s PollForThirdPartyJobsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PollForThirdPartyJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PollForThirdPartyJobsInput"} - if s.ActionTypeId == nil { - invalidParams.Add(request.NewErrParamRequired("ActionTypeId")) - } - if s.MaxBatchSize != nil && *s.MaxBatchSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxBatchSize", 1)) - } - if s.ActionTypeId != nil { - if err := s.ActionTypeId.Validate(); err != nil { - invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a poll for third party jobs action. type PollForThirdPartyJobsOutput struct { - _ struct{} `type:"structure"` - // Information about the jobs to take action on. Jobs []*ThirdPartyJob `locationName:"jobs" type:"list"` + + metadataPollForThirdPartyJobsOutput `json:"-" xml:"-"` +} + +type metadataPollForThirdPartyJobsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2878,19 +2421,23 @@ func (s PollForThirdPartyJobsOutput) GoString() string { // Represents the input of a put action revision action. type PutActionRevisionInput struct { - _ struct{} `type:"structure"` - // The name of the action that will process the revision. - ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"` + ActionName *string `locationName:"actionName" type:"string" required:"true"` // Represents information about the version (or revision) of an action. ActionRevision *ActionRevision `locationName:"actionRevision" type:"structure" required:"true"` // The name of the pipeline that will start processing the revision to the source. - PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"` + PipelineName *string `locationName:"pipelineName" type:"string" required:"true"` // The name of the stage that contains the action that will act upon the revision. - StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"` + StageName *string `locationName:"stageName" type:"string" required:"true"` + + metadataPutActionRevisionInput `json:"-" xml:"-"` +} + +type metadataPutActionRevisionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2903,51 +2450,19 @@ func (s PutActionRevisionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutActionRevisionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutActionRevisionInput"} - if s.ActionName == nil { - invalidParams.Add(request.NewErrParamRequired("ActionName")) - } - if s.ActionName != nil && len(*s.ActionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ActionName", 1)) - } - if s.ActionRevision == nil { - invalidParams.Add(request.NewErrParamRequired("ActionRevision")) - } - if s.PipelineName == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineName")) - } - if s.PipelineName != nil && len(*s.PipelineName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) - } - if s.StageName == nil { - invalidParams.Add(request.NewErrParamRequired("StageName")) - } - if s.StageName != nil && len(*s.StageName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) - } - if s.ActionRevision != nil { - if err := s.ActionRevision.Validate(); err != nil { - invalidParams.AddNested("ActionRevision", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a put action revision action. type PutActionRevisionOutput struct { - _ struct{} `type:"structure"` - // The new revision number or ID for the revision after the action completes. NewRevision *bool `locationName:"newRevision" type:"boolean"` // The ID of the current workflow state of the pipeline. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"` + + metadataPutActionRevisionOutput `json:"-" xml:"-"` +} + +type metadataPutActionRevisionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2962,14 +2477,18 @@ func (s PutActionRevisionOutput) GoString() string { // Represents the input of a put job failure result action. type PutJobFailureResultInput struct { - _ struct{} `type:"structure"` - // The details about the failure of a job. FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"` // The unique system-generated ID of the job that failed. This is the same ID // returned from PollForJobs. JobId *string `locationName:"jobId" type:"string" required:"true"` + + metadataPutJobFailureResultInput `json:"-" xml:"-"` +} + +type metadataPutJobFailureResultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2982,29 +2501,12 @@ func (s PutJobFailureResultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutJobFailureResultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutJobFailureResultInput"} - if s.FailureDetails == nil { - invalidParams.Add(request.NewErrParamRequired("FailureDetails")) - } - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.FailureDetails != nil { - if err := s.FailureDetails.Validate(); err != nil { - invalidParams.AddNested("FailureDetails", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutJobFailureResultOutput struct { + metadataPutJobFailureResultOutput `json:"-" xml:"-"` } -type PutJobFailureResultOutput struct { - _ struct{} `type:"structure"` +type metadataPutJobFailureResultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3019,14 +2521,8 @@ func (s PutJobFailureResultOutput) GoString() string { // Represents the input of a put job success result action. type PutJobSuccessResultInput struct { - _ struct{} `type:"structure"` - - // A token generated by a job worker, such as an AWS CodeDeploy deployment ID, - // that a successful job provides to identify a custom action in progress. Future - // jobs will use this token in order to identify the running instance of the - // action. It can be reused to return additional information about the progress - // of the custom action. When the action is complete, no continuation token - // should be supplied. + // A system-generated token, such as a AWS CodeDeploy deployment ID, that the + // successful job used to complete a job asynchronously. ContinuationToken *string `locationName:"continuationToken" type:"string"` // The ID of the current revision of the artifact successfully worked upon by @@ -3040,6 +2536,12 @@ type PutJobSuccessResultInput struct { // The unique system-generated ID of the job that succeeded. This is the same // ID returned from PollForJobs. JobId *string `locationName:"jobId" type:"string" required:"true"` + + metadataPutJobSuccessResultInput `json:"-" xml:"-"` +} + +type metadataPutJobSuccessResultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3052,31 +2554,12 @@ func (s PutJobSuccessResultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutJobSuccessResultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutJobSuccessResultInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.CurrentRevision != nil { - if err := s.CurrentRevision.Validate(); err != nil { - invalidParams.AddNested("CurrentRevision", err.(request.ErrInvalidParams)) - } - } - if s.ExecutionDetails != nil { - if err := s.ExecutionDetails.Validate(); err != nil { - invalidParams.AddNested("ExecutionDetails", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutJobSuccessResultOutput struct { + metadataPutJobSuccessResultOutput `json:"-" xml:"-"` } -type PutJobSuccessResultOutput struct { - _ struct{} `type:"structure"` +type metadataPutJobSuccessResultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3091,8 +2574,6 @@ func (s PutJobSuccessResultOutput) GoString() string { // Represents the input of a third party job failure result action. type PutThirdPartyJobFailureResultInput struct { - _ struct{} `type:"structure"` - // The clientToken portion of the clientId and clientToken pair used to verify // that the calling entity is allowed access to the job and its details. ClientToken *string `locationName:"clientToken" type:"string" required:"true"` @@ -3101,7 +2582,13 @@ type PutThirdPartyJobFailureResultInput struct { FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"` // The ID of the job that failed. This is the same ID returned from PollForThirdPartyJobs. - JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` + JobId *string `locationName:"jobId" type:"string" required:"true"` + + metadataPutThirdPartyJobFailureResultInput `json:"-" xml:"-"` +} + +type metadataPutThirdPartyJobFailureResultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3114,35 +2601,12 @@ func (s PutThirdPartyJobFailureResultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutThirdPartyJobFailureResultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutThirdPartyJobFailureResultInput"} - if s.ClientToken == nil { - invalidParams.Add(request.NewErrParamRequired("ClientToken")) - } - if s.FailureDetails == nil { - invalidParams.Add(request.NewErrParamRequired("FailureDetails")) - } - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) - } - if s.FailureDetails != nil { - if err := s.FailureDetails.Validate(); err != nil { - invalidParams.AddNested("FailureDetails", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutThirdPartyJobFailureResultOutput struct { + metadataPutThirdPartyJobFailureResultOutput `json:"-" xml:"-"` } -type PutThirdPartyJobFailureResultOutput struct { - _ struct{} `type:"structure"` +type metadataPutThirdPartyJobFailureResultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3157,18 +2621,12 @@ func (s PutThirdPartyJobFailureResultOutput) GoString() string { // Represents the input of a put third party job success result action. type PutThirdPartyJobSuccessResultInput struct { - _ struct{} `type:"structure"` - // The clientToken portion of the clientId and clientToken pair used to verify // that the calling entity is allowed access to the job and its details. ClientToken *string `locationName:"clientToken" type:"string" required:"true"` - // A token generated by a job worker, such as an AWS CodeDeploy deployment ID, - // that a successful job provides to identify a partner action in progress. - // Future jobs will use this token in order to identify the running instance - // of the action. It can be reused to return additional information about the - // progress of the partner action. When the action is complete, no continuation - // token should be supplied. + // A system-generated token, such as a AWS CodeDeploy deployment ID, that a + // job uses in order to continue the job asynchronously. ContinuationToken *string `locationName:"continuationToken" type:"string"` // Represents information about a current revision. @@ -3180,7 +2638,13 @@ type PutThirdPartyJobSuccessResultInput struct { // The ID of the job that successfully completed. This is the same ID returned // from PollForThirdPartyJobs. - JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"` + JobId *string `locationName:"jobId" type:"string" required:"true"` + + metadataPutThirdPartyJobSuccessResultInput `json:"-" xml:"-"` +} + +type metadataPutThirdPartyJobSuccessResultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3193,37 +2657,12 @@ func (s PutThirdPartyJobSuccessResultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutThirdPartyJobSuccessResultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutThirdPartyJobSuccessResultInput"} - if s.ClientToken == nil { - invalidParams.Add(request.NewErrParamRequired("ClientToken")) - } - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) - } - if s.CurrentRevision != nil { - if err := s.CurrentRevision.Validate(); err != nil { - invalidParams.AddNested("CurrentRevision", err.(request.ErrInvalidParams)) - } - } - if s.ExecutionDetails != nil { - if err := s.ExecutionDetails.Validate(); err != nil { - invalidParams.AddNested("ExecutionDetails", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutThirdPartyJobSuccessResultOutput struct { + metadataPutThirdPartyJobSuccessResultOutput `json:"-" xml:"-"` } -type PutThirdPartyJobSuccessResultOutput struct { - _ struct{} `type:"structure"` +type metadataPutThirdPartyJobSuccessResultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3238,14 +2677,18 @@ func (s PutThirdPartyJobSuccessResultOutput) GoString() string { // The location of the Amazon S3 bucket that contains a revision. type S3ArtifactLocation struct { - _ struct{} `type:"structure"` - // The name of the Amazon S3 bucket. BucketName *string `locationName:"bucketName" type:"string" required:"true"` // The key of the object in the Amazon S3 bucket, which uniquely identifies // the object in the bucket. ObjectKey *string `locationName:"objectKey" type:"string" required:"true"` + + metadataS3ArtifactLocation `json:"-" xml:"-"` +} + +type metadataS3ArtifactLocation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3260,10 +2703,14 @@ func (s S3ArtifactLocation) GoString() string { // Represents information about a stage to a job worker. type StageContext struct { - _ struct{} `type:"structure"` - // The name of the stage. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" type:"string"` + + metadataStageContext `json:"-" xml:"-"` +} + +type metadataStageContext struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3278,16 +2725,20 @@ func (s StageContext) GoString() string { // Represents information about a stage and its definition. type StageDeclaration struct { - _ struct{} `type:"structure"` - // The actions included in a stage. Actions []*ActionDeclaration `locationName:"actions" type:"list" required:"true"` - // Reserved for future use. + // The gates included in a stage. Blockers []*BlockerDeclaration `locationName:"blockers" type:"list"` // The name of the stage. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataStageDeclaration `json:"-" xml:"-"` +} + +type metadataStageDeclaration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3300,49 +2751,8 @@ func (s StageDeclaration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StageDeclaration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StageDeclaration"} - if s.Actions == nil { - invalidParams.Add(request.NewErrParamRequired("Actions")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Actions != nil { - for i, v := range s.Actions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Blockers != nil { - for i, v := range s.Blockers { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Blockers", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents information about the state of the stage. type StageState struct { - _ struct{} `type:"structure"` - // The state of the stage. ActionStates []*ActionState `locationName:"actionStates" type:"list"` @@ -3350,7 +2760,13 @@ type StageState struct { InboundTransitionState *TransitionState `locationName:"inboundTransitionState" type:"structure"` // The name of the stage. - StageName *string `locationName:"stageName" min:"1" type:"string"` + StageName *string `locationName:"stageName" type:"string"` + + metadataStageState `json:"-" xml:"-"` +} + +type metadataStageState struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3365,10 +2781,14 @@ func (s StageState) GoString() string { // Represents the input of a start pipeline execution action. type StartPipelineExecutionInput struct { - _ struct{} `type:"structure"` - // The name of the pipeline to start. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataStartPipelineExecutionInput `json:"-" xml:"-"` +} + +type metadataStartPipelineExecutionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3381,28 +2801,16 @@ func (s StartPipelineExecutionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartPipelineExecutionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartPipelineExecutionInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a start pipeline execution action. type StartPipelineExecutionOutput struct { - _ struct{} `type:"structure"` - // The unique system-generated ID of the pipeline that was started. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"` + + metadataStartPipelineExecutionOutput `json:"-" xml:"-"` +} + +type metadataStartPipelineExecutionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3418,14 +2826,18 @@ func (s StartPipelineExecutionOutput) GoString() string { // A response to a PollForThirdPartyJobs request returned by AWS CodePipeline // when there is a job to be worked upon by a partner action. type ThirdPartyJob struct { - _ struct{} `type:"structure"` - // The clientToken portion of the clientId and clientToken pair used to verify // that the calling entity is allowed access to the job and its details. ClientId *string `locationName:"clientId" type:"string"` // The identifier used to identify the job in AWS CodePipeline. JobId *string `locationName:"jobId" type:"string"` + + metadataThirdPartyJob `json:"-" xml:"-"` +} + +type metadataThirdPartyJob struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3440,8 +2852,6 @@ func (s ThirdPartyJob) GoString() string { // Represents information about the job data for a partner action. type ThirdPartyJobData struct { - _ struct{} `type:"structure"` - // Represents information about an action configuration. ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"` @@ -3458,9 +2868,8 @@ type ThirdPartyJobData struct { // job requires in order to continue the job asynchronously. ContinuationToken *string `locationName:"continuationToken" type:"string"` - // The encryption key used to encrypt and decrypt data in the artifact store - // for the pipeline, such as an AWS Key Management Service (AWS KMS) key. This - // is optional and might not be present. + // The AWS Key Management Service (AWS KMS) key used to encrypt and decrypt + // data in the artifact store for the pipeline. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"` // The name of the artifact that will be worked upon by the action, if any. @@ -3477,6 +2886,12 @@ type ThirdPartyJobData struct { // Represents information about a pipeline to a job worker. PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"` + + metadataThirdPartyJobData `json:"-" xml:"-"` +} + +type metadataThirdPartyJobData struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3491,18 +2906,22 @@ func (s ThirdPartyJobData) GoString() string { // The details of a job sent in response to a GetThirdPartyJobDetails request. type ThirdPartyJobDetails struct { - _ struct{} `type:"structure"` - // The data to be returned by the third party job worker. Data *ThirdPartyJobData `locationName:"data" type:"structure"` // The identifier used to identify the job details in AWS CodePipeline. - Id *string `locationName:"id" min:"1" type:"string"` + 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. This number must be returned // in the response. Nonce *string `locationName:"nonce" type:"string"` + + metadataThirdPartyJobDetails `json:"-" xml:"-"` +} + +type metadataThirdPartyJobDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3518,11 +2937,9 @@ func (s ThirdPartyJobDetails) GoString() string { // Represents information about the state of transitions between one stage and // another stage. type TransitionState struct { - _ struct{} `type:"structure"` - // The user-specified reason why the transition between two stages of a pipeline // was disabled. - DisabledReason *string `locationName:"disabledReason" min:"1" type:"string"` + DisabledReason *string `locationName:"disabledReason" type:"string"` // Whether the transition between stages is enabled (true) or disabled (false). Enabled *bool `locationName:"enabled" type:"boolean"` @@ -3532,6 +2949,12 @@ type TransitionState struct { // The ID of the user who last changed the transition state. LastChangedBy *string `locationName:"lastChangedBy" type:"string"` + + metadataTransitionState `json:"-" xml:"-"` +} + +type metadataTransitionState struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3546,10 +2969,14 @@ func (s TransitionState) GoString() string { // Represents the input of an update pipeline action. type UpdatePipelineInput struct { - _ struct{} `type:"structure"` - // The name of the pipeline to be updated. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"` + + metadataUpdatePipelineInput `json:"-" xml:"-"` +} + +type metadataUpdatePipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3562,30 +2989,16 @@ func (s UpdatePipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdatePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"} - if s.Pipeline == nil { - invalidParams.Add(request.NewErrParamRequired("Pipeline")) - } - if s.Pipeline != nil { - if err := s.Pipeline.Validate(); err != nil { - invalidParams.AddNested("Pipeline", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an update pipeline action. type UpdatePipelineOutput struct { - _ struct{} `type:"structure"` - // The structure of the updated pipeline. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"` + + metadataUpdatePipelineOutput `json:"-" xml:"-"` +} + +type metadataUpdatePipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go index 053e42453..8d7fdc2b8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface.go @@ -102,5 +102,3 @@ type CodePipelineAPI interface { UpdatePipeline(*codepipeline.UpdatePipelineInput) (*codepipeline.UpdatePipelineOutput, error) } - -var _ CodePipelineAPI = (*codepipeline.CodePipeline)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface_test.go new file mode 100644 index 000000000..26de76fd8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package codepipelineiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/codepipeline" + "github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*codepipelineiface.CodePipelineAPI)(nil), codepipeline.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go index 88216e4ad..a7e1d0ff4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codepipeline" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCodePipeline_AcknowledgeJob() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.AcknowledgeJobInput{ JobId: aws.String("JobId"), // Required @@ -36,7 +35,7 @@ func ExampleCodePipeline_AcknowledgeJob() { } func ExampleCodePipeline_AcknowledgeThirdPartyJob() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.AcknowledgeThirdPartyJobInput{ ClientToken: aws.String("ClientToken"), // Required @@ -57,7 +56,7 @@ func ExampleCodePipeline_AcknowledgeThirdPartyJob() { } func ExampleCodePipeline_CreateCustomActionType() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.CreateCustomActionTypeInput{ Category: aws.String("ActionCategory"), // Required @@ -104,7 +103,7 @@ func ExampleCodePipeline_CreateCustomActionType() { } func ExampleCodePipeline_CreatePipeline() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.CreatePipelineInput{ Pipeline: &codepipeline.PipelineDeclaration{ // Required @@ -178,7 +177,7 @@ func ExampleCodePipeline_CreatePipeline() { } func ExampleCodePipeline_DeleteCustomActionType() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.DeleteCustomActionTypeInput{ Category: aws.String("ActionCategory"), // Required @@ -199,7 +198,7 @@ func ExampleCodePipeline_DeleteCustomActionType() { } func ExampleCodePipeline_DeletePipeline() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.DeletePipelineInput{ Name: aws.String("PipelineName"), // Required @@ -218,7 +217,7 @@ func ExampleCodePipeline_DeletePipeline() { } func ExampleCodePipeline_DisableStageTransition() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.DisableStageTransitionInput{ PipelineName: aws.String("PipelineName"), // Required @@ -240,7 +239,7 @@ func ExampleCodePipeline_DisableStageTransition() { } func ExampleCodePipeline_EnableStageTransition() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.EnableStageTransitionInput{ PipelineName: aws.String("PipelineName"), // Required @@ -261,7 +260,7 @@ func ExampleCodePipeline_EnableStageTransition() { } func ExampleCodePipeline_GetJobDetails() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.GetJobDetailsInput{ JobId: aws.String("JobId"), // Required @@ -280,7 +279,7 @@ func ExampleCodePipeline_GetJobDetails() { } func ExampleCodePipeline_GetPipeline() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.GetPipelineInput{ Name: aws.String("PipelineName"), // Required @@ -300,7 +299,7 @@ func ExampleCodePipeline_GetPipeline() { } func ExampleCodePipeline_GetPipelineState() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.GetPipelineStateInput{ Name: aws.String("PipelineName"), // Required @@ -319,7 +318,7 @@ func ExampleCodePipeline_GetPipelineState() { } func ExampleCodePipeline_GetThirdPartyJobDetails() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.GetThirdPartyJobDetailsInput{ ClientToken: aws.String("ClientToken"), // Required @@ -339,7 +338,7 @@ func ExampleCodePipeline_GetThirdPartyJobDetails() { } func ExampleCodePipeline_ListActionTypes() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.ListActionTypesInput{ ActionOwnerFilter: aws.String("ActionOwner"), @@ -359,7 +358,7 @@ func ExampleCodePipeline_ListActionTypes() { } func ExampleCodePipeline_ListPipelines() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.ListPipelinesInput{ NextToken: aws.String("NextToken"), @@ -378,7 +377,7 @@ func ExampleCodePipeline_ListPipelines() { } func ExampleCodePipeline_PollForJobs() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.PollForJobsInput{ ActionTypeId: &codepipeline.ActionTypeId{ // Required @@ -407,7 +406,7 @@ func ExampleCodePipeline_PollForJobs() { } func ExampleCodePipeline_PollForThirdPartyJobs() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.PollForThirdPartyJobsInput{ ActionTypeId: &codepipeline.ActionTypeId{ // Required @@ -432,14 +431,14 @@ func ExampleCodePipeline_PollForThirdPartyJobs() { } func ExampleCodePipeline_PutActionRevision() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.PutActionRevisionInput{ ActionName: aws.String("ActionName"), // Required ActionRevision: &codepipeline.ActionRevision{ // Required - Created: aws.Time(time.Now()), // Required - RevisionChangeId: aws.String("RevisionChangeIdentifier"), // Required - RevisionId: aws.String("Revision"), // Required + Created: aws.Time(time.Now()), // Required + RevisionId: aws.String("RevisionId"), // Required + RevisionChangeId: aws.String("RevisionChangeId"), }, PipelineName: aws.String("PipelineName"), // Required StageName: aws.String("StageName"), // Required @@ -458,7 +457,7 @@ func ExampleCodePipeline_PutActionRevision() { } func ExampleCodePipeline_PutJobFailureResult() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.PutJobFailureResultInput{ FailureDetails: &codepipeline.FailureDetails{ // Required @@ -482,7 +481,7 @@ func ExampleCodePipeline_PutJobFailureResult() { } func ExampleCodePipeline_PutJobSuccessResult() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.PutJobSuccessResultInput{ JobId: aws.String("JobId"), // Required @@ -511,7 +510,7 @@ func ExampleCodePipeline_PutJobSuccessResult() { } func ExampleCodePipeline_PutThirdPartyJobFailureResult() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.PutThirdPartyJobFailureResultInput{ ClientToken: aws.String("ClientToken"), // Required @@ -536,7 +535,7 @@ func ExampleCodePipeline_PutThirdPartyJobFailureResult() { } func ExampleCodePipeline_PutThirdPartyJobSuccessResult() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.PutThirdPartyJobSuccessResultInput{ ClientToken: aws.String("ClientToken"), // Required @@ -566,7 +565,7 @@ func ExampleCodePipeline_PutThirdPartyJobSuccessResult() { } func ExampleCodePipeline_StartPipelineExecution() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.StartPipelineExecutionInput{ Name: aws.String("PipelineName"), // Required @@ -585,7 +584,7 @@ func ExampleCodePipeline_StartPipelineExecution() { } func ExampleCodePipeline_UpdatePipeline() { - svc := codepipeline.New(session.New()) + svc := codepipeline.New(nil) params := &codepipeline.UpdatePipelineInput{ Pipeline: &codepipeline.PipelineDeclaration{ // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/service.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/service.go index 9a1cd9a22..6d7b8cbae 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/service.go @@ -4,17 +4,18 @@ package codepipeline import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Overview This is the AWS CodePipeline API Reference. This guide provides // descriptions of the actions and data types for AWS CodePipeline. Some functionality // for your pipeline is only configurable through the API. For additional information, -// see the AWS CodePipeline User Guide (http://docs.aws.amazon.com/codepipeline/latest/userguide/welcome.html). +// see the AWS CodePipeline User Guide (http://docs.aws.amazon.com/pipelines/latest/userguide/welcome.html). // // You can use the AWS CodePipeline API to work with pipelines, stages, actions, // gates, and transitions, as described below. @@ -22,16 +23,15 @@ import ( // Pipelines are models of automated release processes. Each pipeline is uniquely // named, and consists of actions, gates, and stages. // -// You can work with pipelines by calling: CreatePipeline, which creates a -// uniquely-named pipeline. DeletePipeline, which deletes the specified pipeline. -// GetPipeline, which returns information about a pipeline structure. GetPipelineState, +// You can work with pipelines by calling: CreatePipeline, which creates +// a uniquely-named pipeline. DeletePipeline, which deletes the specified pipeline. +// GetPipeline, which returns information about a pipeline structure. GetPipelineState, // which returns information about the current state of the stages and actions // of a pipeline. ListPipelines, which gets a summary of all of the pipelines -// associated with your account. StartPipelineExecution, which runs the the -// most recent revision of an artifact through the pipeline. UpdatePipeline, +// associated with your account. StartPipelineExecution, which runs the the +// most recent revision of an artifact through the pipeline. UpdatePipeline, // which updates a pipeline with edits or changes to the structure of the pipeline. -// -// Pipelines include stages, which are which are logical groupings of gates +// Pipelines include stages, which are which are logical groupings of gates // and actions. Each stage contains one or more actions that must complete before // the next stage begins. A stage will result in success or failure. If a stage // fails, then the pipeline stops at that stage and will remain stopped until @@ -41,22 +41,22 @@ import ( // the status of stages in the pipeline, or GetPipeline, which returns the entire // structure of the pipeline, including the stages of that pipeline. For more // information about the structure of stages and actions, also refer to the -// AWS CodePipeline Pipeline Structure Reference (http://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-structure.html). +// AWS CodePipeline Pipeline Structure Reference. // -// Pipeline stages include actions, which are categorized into categories such -// as source or build actions performed within a stage of a pipeline. For example, -// you can use a source action to import artifacts into a pipeline from a source -// such as Amazon S3. Like stages, you do not work with actions directly in -// most cases, but you do define and interact with actions when working with -// pipeline operations such as CreatePipeline and GetPipelineState. +// Pipeline stages include actions, which are categorized into categories +// such as source or build actions performed within a stage of a pipeline. For +// example, you can use a source action to import artifacts into a pipeline +// from a source such as Amazon S3. Like stages, you do not work with actions +// directly in most cases, but you do define and interact with actions when +// working with pipeline operations such as CreatePipeline and GetPipelineState. // // Pipelines also include transitions, which allow the transition of artifacts // from one stage to the next in a pipeline after the actions in one stage complete. // // You can work with transitions by calling: // -// DisableStageTransition, which prevents artifacts from transitioning to -// the next stage in a pipeline. EnableStageTransition, which enables transition +// DisableStageTransition, which prevents artifacts from transitioning to +// the next stage in a pipeline. EnableStageTransition, which enables transition // of artifacts between stages in a pipeline. Using the API to integrate with // AWS CodePipeline // @@ -69,81 +69,57 @@ import ( // action might import a revision of an artifact from a source. You can work // with jobs by calling: // -// AcknowledgeJob, which confirms whether a job worker has received the specified -// job, GetJobDetails, which returns the details of a job, PollForJobs, which -// determines whether there are any jobs to act upon, PutJobFailureResult, -// which provides details of a job failure, and PutJobSuccessResult, which provides -// details of a job success. Third party jobs, which are instances of an action -// created by a partner action and integrated into AWS CodePipeline. Partner -// actions are created by members of the AWS Partner Network. You can work with -// third party jobs by calling: +// AcknowledgeJob, which confirms whether a job worker has received the specified +// job, GetJobDetails, which returns the details of a job, PollForJobs, which +// determines whether there are any jobs to act upon, PutJobFailureResult, +// which provides details of a job failure, and PutJobSuccessResult, which +// provides details of a job success. Third party jobs, which are instances +// of an action created by a partner action and integrated into AWS CodePipeline. +// Partner actions are created by members of the AWS Partner Network. You can +// work with third party jobs by calling: // -// AcknowledgeThirdPartyJob, which confirms whether a job worker has received -// the specified job, GetThirdPartyJobDetails, which requests the details of -// a job for a partner action, PollForThirdPartyJobs, which determines whether -// there are any jobs to act upon, PutThirdPartyJobFailureResult, which provides -// details of a job failure, and PutThirdPartyJobSuccessResult, which provides +// AcknowledgeThirdPartyJob, which confirms whether a job worker has received +// the specified job, GetThirdPartyJobDetails, which requests the details of +// a job for a partner action, PollForThirdPartyJobs, which determines whether +// there are any jobs to act upon, PutThirdPartyJobFailureResult, which provides +// details of a job failure, and PutThirdPartyJobSuccessResult, which provides // details of a job success. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type CodePipeline struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "codepipeline" - -// New creates a new instance of the CodePipeline client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CodePipeline client from just a session. -// svc := codepipeline.New(mySession) -// -// // Create a CodePipeline client with additional configuration -// svc := codepipeline.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodePipeline { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CodePipeline { - svc := &CodePipeline{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-07-09", - JSONVersion: "1.1", - TargetPrefix: "CodePipeline_20150709", - }, - handlers, - ), +// New returns a new CodePipeline client. +func New(config *aws.Config) *CodePipeline { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "codepipeline", + APIVersion: "2015-07-09", + JSONVersion: "1.1", + TargetPrefix: "CodePipeline_20150709", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CodePipeline{service} } // newRequest creates a new request for a CodePipeline operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go index d0a241a34..d391a0b98 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/api.go @@ -4,13 +4,10 @@ package cognitoidentity import ( - "fmt" "time" "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/private/protocol/jsonrpc" ) const opCreateIdentityPool = "CreateIdentityPool" @@ -35,10 +32,7 @@ func (c *CognitoIdentity) CreateIdentityPoolRequest(input *CreateIdentityPoolInp // Creates a new identity pool. The identity pool is a store of user identity // information that is specific to your AWS account. The limit on identity pools -// is 60 per account. The keys for SupportedLoginProviders are as follows: -// Facebook: graph.facebook.com Google: accounts.google.com Amazon: www.amazon.com -// Twitter: api.twitter.com Digits: www.digits.com You must use AWS Developer -// credentials to call this API. +// is 60 per account. You must use AWS Developer credentials to call this API. func (c *CognitoIdentity) CreateIdentityPool(input *CreateIdentityPoolInput) (*IdentityPool, error) { req, out := c.CreateIdentityPoolRequest(input) err := req.Send() @@ -90,8 +84,6 @@ func (c *CognitoIdentity) DeleteIdentityPoolRequest(input *DeleteIdentityPoolInp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteIdentityPoolOutput{} req.Data = output return @@ -187,10 +179,10 @@ func (c *CognitoIdentity) GetCredentialsForIdentityRequest(input *GetCredentials return } -// Returns credentials for the provided identity ID. Any provided logins will -// be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, -// it will be passed through to AWS Security Token Service with the appropriate -// role for the token. +// Returns credentials for the the provided identity ID. Any provided logins +// will be validated against supported login providers. If the token is for +// cognito-identity.amazonaws.com, it will be passed through to AWS Security +// Token Service with the appropriate role for the token. // // This is a public API. You do not need any credentials to call this API. func (c *CognitoIdentity) GetCredentialsForIdentity(input *GetCredentialsForIdentityInput) (*GetCredentialsForIdentityOutput, error) { @@ -222,6 +214,8 @@ func (c *CognitoIdentity) GetIdRequest(input *GetIdInput) (req *request.Request, // Generates (or retrieves) a Cognito ID. Supplying multiple logins will create // an implicit linked account. // +// token+";"+tokenSecret. +// // This is a public API. You do not need any credentials to call this API. func (c *CognitoIdentity) GetId(input *GetIdInput) (*GetIdOutput, error) { req, out := c.GetIdRequest(input) @@ -384,7 +378,7 @@ func (c *CognitoIdentity) ListIdentityPoolsRequest(input *ListIdentityPoolsInput // Lists all of the Cognito identity pools registered for your account. // -// You must use AWS Developer credentials to call this API. +// This is a public API. You do not need any credentials to call this API. func (c *CognitoIdentity) ListIdentityPools(input *ListIdentityPoolsInput) (*ListIdentityPoolsOutput, error) { req, out := c.ListIdentityPoolsRequest(input) err := req.Send() @@ -477,8 +471,6 @@ func (c *CognitoIdentity) SetIdentityPoolRolesRequest(input *SetIdentityPoolRole } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetIdentityPoolRolesOutput{} req.Data = output return @@ -509,8 +501,6 @@ func (c *CognitoIdentity) UnlinkDeveloperIdentityRequest(input *UnlinkDeveloperI } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UnlinkDeveloperIdentityOutput{} req.Data = output return @@ -521,7 +511,7 @@ func (c *CognitoIdentity) UnlinkDeveloperIdentityRequest(input *UnlinkDeveloperI // a given Cognito identity, you remove all federated identities as well as // the developer user identifier, the Cognito identity becomes inaccessible. // -// You must use AWS Developer credentials to call this API. +// This is a public API. You do not need any credentials to call this API. func (c *CognitoIdentity) UnlinkDeveloperIdentity(input *UnlinkDeveloperIdentityInput) (*UnlinkDeveloperIdentityOutput, error) { req, out := c.UnlinkDeveloperIdentityRequest(input) err := req.Send() @@ -543,8 +533,6 @@ func (c *CognitoIdentity) UnlinkIdentityRequest(input *UnlinkIdentityInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UnlinkIdentityOutput{} req.Data = output return @@ -592,14 +580,9 @@ func (c *CognitoIdentity) UpdateIdentityPool(input *IdentityPool) (*IdentityPool // Input to the CreateIdentityPool action. type CreateIdentityPoolInput struct { - _ struct{} `type:"structure"` - // TRUE if the identity pool supports unauthenticated logins. AllowUnauthenticatedIdentities *bool `type:"boolean" required:"true"` - // A list representing a Cognito User Identity Pool and its client ID. - CognitoIdentityProviders []*Provider `type:"list"` - // The "domain" by which Cognito will refer to your users. This name acts as // a placeholder that allows your backend and the Cognito service to communicate // about the developer provider. For the DeveloperProviderName, you can use @@ -607,16 +590,22 @@ type CreateIdentityPoolInput struct { // // Once you have set a developer provider name, you cannot change it. Please // take care in setting this parameter. - DeveloperProviderName *string `min:"1" type:"string"` + DeveloperProviderName *string `type:"string"` // A string that you provide. - IdentityPoolName *string `min:"1" type:"string" required:"true"` + IdentityPoolName *string `type:"string" required:"true"` // A list of OpendID Connect provider ARNs. OpenIdConnectProviderARNs []*string `type:"list"` // Optional key:value pairs mapping provider names to provider app IDs. SupportedLoginProviders map[string]*string `type:"map"` + + metadataCreateIdentityPoolInput `json:"-" xml:"-"` +} + +type metadataCreateIdentityPoolInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -629,42 +618,8 @@ func (s CreateIdentityPoolInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateIdentityPoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateIdentityPoolInput"} - if s.AllowUnauthenticatedIdentities == nil { - invalidParams.Add(request.NewErrParamRequired("AllowUnauthenticatedIdentities")) - } - if s.DeveloperProviderName != nil && len(*s.DeveloperProviderName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeveloperProviderName", 1)) - } - if s.IdentityPoolName == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolName")) - } - if s.IdentityPoolName != nil && len(*s.IdentityPoolName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolName", 1)) - } - if s.CognitoIdentityProviders != nil { - for i, v := range s.CognitoIdentityProviders { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CognitoIdentityProviders", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Credentials for the provided identity ID. +// Credentials for the the provided identity ID. type Credentials struct { - _ struct{} `type:"structure"` - // The Access Key portion of the credentials. AccessKeyId *string `type:"string"` @@ -676,6 +631,12 @@ type Credentials struct { // The Session Token portion of the credentials SessionToken *string `type:"string"` + + metadataCredentials `json:"-" xml:"-"` +} + +type metadataCredentials struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -690,10 +651,14 @@ func (s Credentials) GoString() string { // Input to the DeleteIdentities action. type DeleteIdentitiesInput struct { - _ struct{} `type:"structure"` - // A list of 1-60 identities that you want to delete. - IdentityIdsToDelete []*string `min:"1" type:"list" required:"true"` + IdentityIdsToDelete []*string `type:"list" required:"true"` + + metadataDeleteIdentitiesInput `json:"-" xml:"-"` +} + +type metadataDeleteIdentitiesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -706,29 +671,17 @@ func (s DeleteIdentitiesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteIdentitiesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteIdentitiesInput"} - if s.IdentityIdsToDelete == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityIdsToDelete")) - } - if s.IdentityIdsToDelete != nil && len(s.IdentityIdsToDelete) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityIdsToDelete", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned in response to a successful DeleteIdentities operation. type DeleteIdentitiesOutput struct { - _ struct{} `type:"structure"` - // An array of UnprocessedIdentityId objects, each of which contains an ErrorCode // and IdentityId. UnprocessedIdentityIds []*UnprocessedIdentityId `type:"list"` + + metadataDeleteIdentitiesOutput `json:"-" xml:"-"` +} + +type metadataDeleteIdentitiesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -743,10 +696,14 @@ func (s DeleteIdentitiesOutput) GoString() string { // Input to the DeleteIdentityPool action. type DeleteIdentityPoolInput struct { - _ struct{} `type:"structure"` - // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` + + metadataDeleteIdentityPoolInput `json:"-" xml:"-"` +} + +type metadataDeleteIdentityPoolInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -759,24 +716,12 @@ func (s DeleteIdentityPoolInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteIdentityPoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteIdentityPoolInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteIdentityPoolOutput struct { + metadataDeleteIdentityPoolOutput `json:"-" xml:"-"` } -type DeleteIdentityPoolOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteIdentityPoolOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -791,10 +736,14 @@ func (s DeleteIdentityPoolOutput) GoString() string { // Input to the DescribeIdentity action. type DescribeIdentityInput struct { - _ struct{} `type:"structure"` - // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string" required:"true"` + IdentityId *string `type:"string" required:"true"` + + metadataDescribeIdentityInput `json:"-" xml:"-"` +} + +type metadataDescribeIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -807,28 +756,16 @@ func (s DescribeIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityInput"} - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Input to the DescribeIdentityPool action. type DescribeIdentityPoolInput struct { - _ struct{} `type:"structure"` - // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` + + metadataDescribeIdentityPoolInput `json:"-" xml:"-"` +} + +type metadataDescribeIdentityPoolInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -841,31 +778,19 @@ func (s DescribeIdentityPoolInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeIdentityPoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityPoolInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Input to the GetCredentialsForIdentity action. type GetCredentialsForIdentityInput struct { - _ struct{} `type:"structure"` - // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string" required:"true"` + IdentityId *string `type:"string" required:"true"` // A set of optional name-value pairs that map provider names to provider tokens. Logins map[string]*string `type:"map"` + + metadataGetCredentialsForIdentityInput `json:"-" xml:"-"` +} + +type metadataGetCredentialsForIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -878,31 +803,19 @@ func (s GetCredentialsForIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetCredentialsForIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCredentialsForIdentityInput"} - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned in response to a successful GetCredentialsForIdentity operation. type GetCredentialsForIdentityOutput struct { - _ struct{} `type:"structure"` - - // Credentials for the provided identity ID. + // Credentials for the the provided identity ID. Credentials *Credentials `type:"structure"` // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` + + metadataGetCredentialsForIdentityOutput `json:"-" xml:"-"` +} + +type metadataGetCredentialsForIdentityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -917,21 +830,24 @@ func (s GetCredentialsForIdentityOutput) GoString() string { // Input to the GetId action. type GetIdInput struct { - _ struct{} `type:"structure"` - // A standard AWS account ID (9+ digits). - AccountId *string `min:"1" type:"string"` + AccountId *string `type:"string"` // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` // A set of optional name-value pairs that map provider names to provider tokens. // // The available provider names for Logins are as follows: Facebook: graph.facebook.com - // Amazon Cognito Identity Provider: cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789 - // Google: accounts.google.com Amazon: www.amazon.com Twitter: api.twitter.com - // Digits: www.digits.com + // Google: accounts.google.com Amazon: www.amazon.com Twitter: www.twitter.com + // Digits: www.digits.com Logins map[string]*string `type:"map"` + + metadataGetIdInput `json:"-" xml:"-"` +} + +type metadataGetIdInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -944,31 +860,16 @@ func (s GetIdInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIdInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIdInput"} - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned in response to a GetId request. type GetIdOutput struct { - _ struct{} `type:"structure"` - // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` + + metadataGetIdOutput `json:"-" xml:"-"` +} + +type metadataGetIdOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -983,10 +884,14 @@ func (s GetIdOutput) GoString() string { // Input to the GetIdentityPoolRoles action. type GetIdentityPoolRolesInput struct { - _ struct{} `type:"structure"` - // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` + + metadataGetIdentityPoolRolesInput `json:"-" xml:"-"` +} + +type metadataGetIdentityPoolRolesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -999,32 +904,20 @@ func (s GetIdentityPoolRolesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIdentityPoolRolesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIdentityPoolRolesInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned in response to a successful GetIdentityPoolRoles operation. type GetIdentityPoolRolesOutput struct { - _ struct{} `type:"structure"` - // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string"` + IdentityPoolId *string `type:"string"` // The map of roles associated with this pool. Currently only authenticated // and unauthenticated roles are supported. Roles map[string]*string `type:"map"` + + metadataGetIdentityPoolRolesOutput `json:"-" xml:"-"` +} + +type metadataGetIdentityPoolRolesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1039,13 +932,11 @@ func (s GetIdentityPoolRolesOutput) GoString() string { // Input to the GetOpenIdTokenForDeveloperIdentity action. type GetOpenIdTokenForDeveloperIdentityInput struct { - _ struct{} `type:"structure"` - // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` // A set of optional name-value pairs that map provider names to provider tokens. // Each name-value pair represents a user from a public provider or developer @@ -1066,7 +957,13 @@ type GetOpenIdTokenForDeveloperIdentityInput struct { // take care in setting the expiration time for a token, as there are significant // security implications: an attacker could use a leaked token to access your // AWS resources for the token's duration. - TokenDuration *int64 `min:"1" type:"long"` + TokenDuration *int64 `type:"long"` + + metadataGetOpenIdTokenForDeveloperIdentityInput `json:"-" xml:"-"` +} + +type metadataGetOpenIdTokenForDeveloperIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1079,40 +976,19 @@ func (s GetOpenIdTokenForDeveloperIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetOpenIdTokenForDeveloperIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetOpenIdTokenForDeveloperIdentityInput"} - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - if s.Logins == nil { - invalidParams.Add(request.NewErrParamRequired("Logins")) - } - if s.TokenDuration != nil && *s.TokenDuration < 1 { - invalidParams.Add(request.NewErrParamMinValue("TokenDuration", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned in response to a successful GetOpenIdTokenForDeveloperIdentity request. type GetOpenIdTokenForDeveloperIdentityOutput struct { - _ struct{} `type:"structure"` - // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` // An OpenID token. Token *string `type:"string"` + + metadataGetOpenIdTokenForDeveloperIdentityOutput `json:"-" xml:"-"` +} + +type metadataGetOpenIdTokenForDeveloperIdentityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1127,17 +1003,20 @@ func (s GetOpenIdTokenForDeveloperIdentityOutput) GoString() string { // Input to the GetOpenIdToken action. type GetOpenIdTokenInput struct { - _ struct{} `type:"structure"` - // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string" required:"true"` + IdentityId *string `type:"string" required:"true"` // A set of optional name-value pairs that map provider names to provider tokens. // When using graph.facebook.com and www.amazon.com, supply the access_token - // returned from the provider's authflow. For accounts.google.com, an Amazon - // Cognito Identity Provider, or any other OpenId Connect provider, always include - // the id_token. + // returned from the provider's authflow. For accounts.google.com or any other + // OpenId Connect provider, always include the id_token. Logins map[string]*string `type:"map"` + + metadataGetOpenIdTokenInput `json:"-" xml:"-"` +} + +type metadataGetOpenIdTokenInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1150,32 +1029,20 @@ func (s GetOpenIdTokenInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetOpenIdTokenInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetOpenIdTokenInput"} - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned in response to a successful GetOpenIdToken request. type GetOpenIdTokenOutput struct { - _ struct{} `type:"structure"` - // A unique identifier in the format REGION:GUID. Note that the IdentityId returned // may not match the one passed on input. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` // An OpenID token, valid for 15 minutes. Token *string `type:"string"` + + metadataGetOpenIdTokenOutput `json:"-" xml:"-"` +} + +type metadataGetOpenIdTokenOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1190,19 +1057,23 @@ func (s GetOpenIdTokenOutput) GoString() string { // A description of the identity. type IdentityDescription struct { - _ struct{} `type:"structure"` - // Date on which the identity was created. CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` // Date on which the identity was last modified. LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` // A set of optional name-value pairs that map provider names to provider tokens. Logins []*string `type:"list"` + + metadataIdentityDescription `json:"-" xml:"-"` +} + +type metadataIdentityDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1217,28 +1088,29 @@ func (s IdentityDescription) GoString() string { // An object representing a Cognito identity pool. type IdentityPool struct { - _ struct{} `type:"structure"` - // TRUE if the identity pool supports unauthenticated logins. AllowUnauthenticatedIdentities *bool `type:"boolean" required:"true"` - // A list representing a Cognito User Identity Pool and its client ID. - CognitoIdentityProviders []*Provider `type:"list"` - // The "domain" by which Cognito will refer to your users. - DeveloperProviderName *string `min:"1" type:"string"` + DeveloperProviderName *string `type:"string"` // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` // A string that you provide. - IdentityPoolName *string `min:"1" type:"string" required:"true"` + IdentityPoolName *string `type:"string" required:"true"` // A list of OpendID Connect provider ARNs. OpenIdConnectProviderARNs []*string `type:"list"` // Optional key:value pairs mapping provider names to provider app IDs. SupportedLoginProviders map[string]*string `type:"map"` + + metadataIdentityPool `json:"-" xml:"-"` +} + +type metadataIdentityPool struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1251,53 +1123,19 @@ func (s IdentityPool) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *IdentityPool) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IdentityPool"} - if s.AllowUnauthenticatedIdentities == nil { - invalidParams.Add(request.NewErrParamRequired("AllowUnauthenticatedIdentities")) - } - if s.DeveloperProviderName != nil && len(*s.DeveloperProviderName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeveloperProviderName", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - if s.IdentityPoolName == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolName")) - } - if s.IdentityPoolName != nil && len(*s.IdentityPoolName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolName", 1)) - } - if s.CognitoIdentityProviders != nil { - for i, v := range s.CognitoIdentityProviders { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CognitoIdentityProviders", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A description of the identity pool. type IdentityPoolShortDescription struct { - _ struct{} `type:"structure"` - // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string"` + IdentityPoolId *string `type:"string"` // A string that you provide. - IdentityPoolName *string `min:"1" type:"string"` + IdentityPoolName *string `type:"string"` + + metadataIdentityPoolShortDescription `json:"-" xml:"-"` +} + +type metadataIdentityPoolShortDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1312,21 +1150,25 @@ func (s IdentityPoolShortDescription) GoString() string { // Input to the ListIdentities action. type ListIdentitiesInput struct { - _ struct{} `type:"structure"` - // An optional boolean parameter that allows you to hide disabled identities. // If omitted, the ListIdentities API will include disabled identities in the // response. HideDisabled *bool `type:"boolean"` // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` // The maximum number of identities to return. - MaxResults *int64 `min:"1" type:"integer" required:"true"` + MaxResults *int64 `type:"integer" required:"true"` // A pagination token. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` + + metadataListIdentitiesInput `json:"-" xml:"-"` +} + +type metadataListIdentitiesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1339,43 +1181,22 @@ func (s ListIdentitiesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListIdentitiesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListIdentitiesInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - if s.MaxResults == nil { - invalidParams.Add(request.NewErrParamRequired("MaxResults")) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The response to a ListIdentities request. type ListIdentitiesOutput struct { - _ struct{} `type:"structure"` - // An object containing a set of identities and associated mappings. Identities []*IdentityDescription `type:"list"` // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string"` + IdentityPoolId *string `type:"string"` // A pagination token. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` + + metadataListIdentitiesOutput `json:"-" xml:"-"` +} + +type metadataListIdentitiesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1390,13 +1211,17 @@ func (s ListIdentitiesOutput) GoString() string { // Input to the ListIdentityPools action. type ListIdentityPoolsInput struct { - _ struct{} `type:"structure"` - // The maximum number of identities to return. - MaxResults *int64 `min:"1" type:"integer" required:"true"` + MaxResults *int64 `type:"integer" required:"true"` // A pagination token. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` + + metadataListIdentityPoolsInput `json:"-" xml:"-"` +} + +type metadataListIdentityPoolsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1409,34 +1234,19 @@ func (s ListIdentityPoolsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListIdentityPoolsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListIdentityPoolsInput"} - if s.MaxResults == nil { - invalidParams.Add(request.NewErrParamRequired("MaxResults")) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of a successful ListIdentityPools action. type ListIdentityPoolsOutput struct { - _ struct{} `type:"structure"` - // The identity pools returned by the ListIdentityPools action. IdentityPools []*IdentityPoolShortDescription `type:"list"` // A pagination token. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` + + metadataListIdentityPoolsOutput `json:"-" xml:"-"` +} + +type metadataListIdentityPoolsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1451,21 +1261,19 @@ func (s ListIdentityPoolsOutput) GoString() string { // Input to the LookupDeveloperIdentityInput action. type LookupDeveloperIdentityInput struct { - _ struct{} `type:"structure"` - // A unique ID used by your backend authentication process to identify a user. // Typically, a developer identity provider would issue many developer user // identifiers, in keeping with the number of users. - DeveloperUserIdentifier *string `min:"1" type:"string"` + DeveloperUserIdentifier *string `type:"string"` // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` // The maximum number of identities to return. - MaxResults *int64 `min:"1" type:"integer"` + MaxResults *int64 `type:"integer"` // A pagination token. The first call you make will have NextToken set to null. // After that the service will return NextToken values as needed. For example, @@ -1473,7 +1281,13 @@ type LookupDeveloperIdentityInput struct { // matches in the database. The service will return a pagination token as a // part of the response. This token can be used to call the API again and get // results starting from the 11th match. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` + + metadataLookupDeveloperIdentityInput `json:"-" xml:"-"` +} + +type metadataLookupDeveloperIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1486,45 +1300,15 @@ func (s LookupDeveloperIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LookupDeveloperIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LookupDeveloperIdentityInput"} - if s.DeveloperUserIdentifier != nil && len(*s.DeveloperUserIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeveloperUserIdentifier", 1)) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned in response to a successful LookupDeveloperIdentity action. type LookupDeveloperIdentityOutput struct { - _ struct{} `type:"structure"` - // This is the list of developer user identifiers associated with an identity // ID. Cognito supports the association of multiple developer user identifiers // with an identity ID. DeveloperUserIdentifierList []*string `type:"list"` // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` // A pagination token. The first call you make will have NextToken set to null. // After that the service will return NextToken values as needed. For example, @@ -1532,7 +1316,13 @@ type LookupDeveloperIdentityOutput struct { // matches in the database. The service will return a pagination token as a // part of the response. This token can be used to call the API again and get // results starting from the 11th match. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` + + metadataLookupDeveloperIdentityOutput `json:"-" xml:"-"` +} + +type metadataLookupDeveloperIdentityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1547,23 +1337,27 @@ func (s LookupDeveloperIdentityOutput) GoString() string { // Input to the MergeDeveloperIdentities action. type MergeDeveloperIdentitiesInput struct { - _ struct{} `type:"structure"` - // User identifier for the destination user. The value should be a DeveloperUserIdentifier. - DestinationUserIdentifier *string `min:"1" type:"string" required:"true"` + DestinationUserIdentifier *string `type:"string" required:"true"` // The "domain" by which Cognito will refer to your users. This is a (pseudo) // domain name that you provide while creating an identity pool. This name acts // as a placeholder that allows your backend and the Cognito service to communicate // about the developer provider. For the DeveloperProviderName, you can use // letters as well as period (.), underscore (_), and dash (-). - DeveloperProviderName *string `min:"1" type:"string" required:"true"` + DeveloperProviderName *string `type:"string" required:"true"` // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` // User identifier for the source user. The value should be a DeveloperUserIdentifier. - SourceUserIdentifier *string `min:"1" type:"string" required:"true"` + SourceUserIdentifier *string `type:"string" required:"true"` + + metadataMergeDeveloperIdentitiesInput `json:"-" xml:"-"` +} + +type metadataMergeDeveloperIdentitiesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1576,106 +1370,43 @@ func (s MergeDeveloperIdentitiesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MergeDeveloperIdentitiesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MergeDeveloperIdentitiesInput"} - if s.DestinationUserIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationUserIdentifier")) - } - if s.DestinationUserIdentifier != nil && len(*s.DestinationUserIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DestinationUserIdentifier", 1)) - } - if s.DeveloperProviderName == nil { - invalidParams.Add(request.NewErrParamRequired("DeveloperProviderName")) - } - if s.DeveloperProviderName != nil && len(*s.DeveloperProviderName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeveloperProviderName", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - if s.SourceUserIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceUserIdentifier")) - } - if s.SourceUserIdentifier != nil && len(*s.SourceUserIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceUserIdentifier", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned in response to a successful MergeDeveloperIdentities action. type MergeDeveloperIdentitiesOutput struct { - _ struct{} `type:"structure"` - // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string"` -} + IdentityId *string `type:"string"` -// String returns the string representation -func (s MergeDeveloperIdentitiesOutput) String() string { - return awsutil.Prettify(s) + metadataMergeDeveloperIdentitiesOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s MergeDeveloperIdentitiesOutput) GoString() string { - return s.String() -} - -// A provider representing a Cognito User Identity Pool and its client ID. -type Provider struct { - _ struct{} `type:"structure"` - - // The client ID for the Cognito User Identity Pool. - ClientId *string `min:"1" type:"string"` - - // The provider name for a Cognito User Identity Pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789. - ProviderName *string `min:"1" type:"string"` +type metadataMergeDeveloperIdentitiesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Provider) String() string { +func (s MergeDeveloperIdentitiesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Provider) GoString() string { +func (s MergeDeveloperIdentitiesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Provider) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Provider"} - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.ProviderName != nil && len(*s.ProviderName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProviderName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Input to the SetIdentityPoolRoles action. type SetIdentityPoolRolesInput struct { - _ struct{} `type:"structure"` - // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` // The map of roles associated with this pool. For a given role, the key will // be either "authenticated" or "unauthenticated" and the value will be the // Role ARN. Roles map[string]*string `type:"map" required:"true"` + + metadataSetIdentityPoolRolesInput `json:"-" xml:"-"` +} + +type metadataSetIdentityPoolRolesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1688,27 +1419,12 @@ func (s SetIdentityPoolRolesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetIdentityPoolRolesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetIdentityPoolRolesInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - if s.Roles == nil { - invalidParams.Add(request.NewErrParamRequired("Roles")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetIdentityPoolRolesOutput struct { + metadataSetIdentityPoolRolesOutput `json:"-" xml:"-"` } -type SetIdentityPoolRolesOutput struct { - _ struct{} `type:"structure"` +type metadataSetIdentityPoolRolesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1723,19 +1439,23 @@ func (s SetIdentityPoolRolesOutput) GoString() string { // Input to the UnlinkDeveloperIdentity action. type UnlinkDeveloperIdentityInput struct { - _ struct{} `type:"structure"` - // The "domain" by which Cognito will refer to your users. - DeveloperProviderName *string `min:"1" type:"string" required:"true"` + DeveloperProviderName *string `type:"string" required:"true"` // A unique ID used by your backend authentication process to identify a user. - DeveloperUserIdentifier *string `min:"1" type:"string" required:"true"` + DeveloperUserIdentifier *string `type:"string" required:"true"` // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string" required:"true"` + IdentityId *string `type:"string" required:"true"` // An identity pool ID in the format REGION:GUID. - IdentityPoolId *string `min:"1" type:"string" required:"true"` + IdentityPoolId *string `type:"string" required:"true"` + + metadataUnlinkDeveloperIdentityInput `json:"-" xml:"-"` +} + +type metadataUnlinkDeveloperIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1748,42 +1468,12 @@ func (s UnlinkDeveloperIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UnlinkDeveloperIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UnlinkDeveloperIdentityInput"} - if s.DeveloperProviderName == nil { - invalidParams.Add(request.NewErrParamRequired("DeveloperProviderName")) - } - if s.DeveloperProviderName != nil && len(*s.DeveloperProviderName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeveloperProviderName", 1)) - } - if s.DeveloperUserIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DeveloperUserIdentifier")) - } - if s.DeveloperUserIdentifier != nil && len(*s.DeveloperUserIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeveloperUserIdentifier", 1)) - } - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UnlinkDeveloperIdentityOutput struct { + metadataUnlinkDeveloperIdentityOutput `json:"-" xml:"-"` } -type UnlinkDeveloperIdentityOutput struct { - _ struct{} `type:"structure"` +type metadataUnlinkDeveloperIdentityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1798,16 +1488,20 @@ func (s UnlinkDeveloperIdentityOutput) GoString() string { // Input to the UnlinkIdentity action. type UnlinkIdentityInput struct { - _ struct{} `type:"structure"` - // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string" required:"true"` + IdentityId *string `type:"string" required:"true"` // A set of optional name-value pairs that map provider names to provider tokens. Logins map[string]*string `type:"map" required:"true"` // Provider names to unlink from this identity. LoginsToRemove []*string `type:"list" required:"true"` + + metadataUnlinkIdentityInput `json:"-" xml:"-"` +} + +type metadataUnlinkIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1820,30 +1514,12 @@ func (s UnlinkIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UnlinkIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UnlinkIdentityInput"} - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.Logins == nil { - invalidParams.Add(request.NewErrParamRequired("Logins")) - } - if s.LoginsToRemove == nil { - invalidParams.Add(request.NewErrParamRequired("LoginsToRemove")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UnlinkIdentityOutput struct { + metadataUnlinkIdentityOutput `json:"-" xml:"-"` } -type UnlinkIdentityOutput struct { - _ struct{} `type:"structure"` +type metadataUnlinkIdentityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1859,13 +1535,17 @@ func (s UnlinkIdentityOutput) GoString() string { // An array of UnprocessedIdentityId objects, each of which contains an ErrorCode // and IdentityId. type UnprocessedIdentityId struct { - _ struct{} `type:"structure"` - // The error code indicating the type of error that occurred. ErrorCode *string `type:"string" enum:"ErrorCode"` // A unique identifier in the format REGION:GUID. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` + + metadataUnprocessedIdentityId `json:"-" xml:"-"` +} + +type metadataUnprocessedIdentityId struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go index 66dad2e1d..c8e1c4925 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface.go @@ -82,5 +82,3 @@ type CognitoIdentityAPI interface { UpdateIdentityPool(*cognitoidentity.IdentityPool) (*cognitoidentity.IdentityPool, error) } - -var _ CognitoIdentityAPI = (*cognitoidentity.CognitoIdentity)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface_test.go new file mode 100644 index 000000000..f5af64b98 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cognitoidentityiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/cognitoidentity" + "github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*cognitoidentityiface.CognitoIdentityAPI)(nil), cognitoidentity.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/customizations_test.go index dea3026e9..058293e79 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/customizations_test.go @@ -4,12 +4,13 @@ import ( "testing" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/unit" "github.com/aws/aws-sdk-go/service/cognitoidentity" "github.com/stretchr/testify/assert" ) -var svc = cognitoidentity.New(unit.Session) +var svc = cognitoidentity.New(&aws.Config{ + Region: aws.String("mock-region"), +}) func TestUnsignedRequest_GetID(t *testing.T) { req, _ := svc.GetIdRequest(&cognitoidentity.GetIdInput{ diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go index ada63a173..f36ca4f0d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cognitoidentity" ) @@ -16,19 +15,12 @@ var _ time.Duration var _ bytes.Buffer func ExampleCognitoIdentity_CreateIdentityPool() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.CreateIdentityPoolInput{ AllowUnauthenticatedIdentities: aws.Bool(true), // Required IdentityPoolName: aws.String("IdentityPoolName"), // Required - CognitoIdentityProviders: []*cognitoidentity.Provider{ - { // Required - ClientId: aws.String("ProviderClientId"), - ProviderName: aws.String("ProviderName"), - }, - // More values... - }, - DeveloperProviderName: aws.String("DeveloperProviderName"), + DeveloperProviderName: aws.String("DeveloperProviderName"), OpenIdConnectProviderARNs: []*string{ aws.String("ARNString"), // Required // More values... @@ -52,7 +44,7 @@ func ExampleCognitoIdentity_CreateIdentityPool() { } func ExampleCognitoIdentity_DeleteIdentities() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.DeleteIdentitiesInput{ IdentityIdsToDelete: []*string{ // Required @@ -74,7 +66,7 @@ func ExampleCognitoIdentity_DeleteIdentities() { } func ExampleCognitoIdentity_DeleteIdentityPool() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.DeleteIdentityPoolInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -93,7 +85,7 @@ func ExampleCognitoIdentity_DeleteIdentityPool() { } func ExampleCognitoIdentity_DescribeIdentity() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.DescribeIdentityInput{ IdentityId: aws.String("IdentityId"), // Required @@ -112,7 +104,7 @@ func ExampleCognitoIdentity_DescribeIdentity() { } func ExampleCognitoIdentity_DescribeIdentityPool() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.DescribeIdentityPoolInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -131,7 +123,7 @@ func ExampleCognitoIdentity_DescribeIdentityPool() { } func ExampleCognitoIdentity_GetCredentialsForIdentity() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.GetCredentialsForIdentityInput{ IdentityId: aws.String("IdentityId"), // Required @@ -154,7 +146,7 @@ func ExampleCognitoIdentity_GetCredentialsForIdentity() { } func ExampleCognitoIdentity_GetId() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.GetIdInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -178,7 +170,7 @@ func ExampleCognitoIdentity_GetId() { } func ExampleCognitoIdentity_GetIdentityPoolRoles() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.GetIdentityPoolRolesInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -197,7 +189,7 @@ func ExampleCognitoIdentity_GetIdentityPoolRoles() { } func ExampleCognitoIdentity_GetOpenIdToken() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.GetOpenIdTokenInput{ IdentityId: aws.String("IdentityId"), // Required @@ -220,7 +212,7 @@ func ExampleCognitoIdentity_GetOpenIdToken() { } func ExampleCognitoIdentity_GetOpenIdTokenForDeveloperIdentity() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.GetOpenIdTokenForDeveloperIdentityInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -245,7 +237,7 @@ func ExampleCognitoIdentity_GetOpenIdTokenForDeveloperIdentity() { } func ExampleCognitoIdentity_ListIdentities() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.ListIdentitiesInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -267,7 +259,7 @@ func ExampleCognitoIdentity_ListIdentities() { } func ExampleCognitoIdentity_ListIdentityPools() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.ListIdentityPoolsInput{ MaxResults: aws.Int64(1), // Required @@ -287,7 +279,7 @@ func ExampleCognitoIdentity_ListIdentityPools() { } func ExampleCognitoIdentity_LookupDeveloperIdentity() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.LookupDeveloperIdentityInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -310,7 +302,7 @@ func ExampleCognitoIdentity_LookupDeveloperIdentity() { } func ExampleCognitoIdentity_MergeDeveloperIdentities() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.MergeDeveloperIdentitiesInput{ DestinationUserIdentifier: aws.String("DeveloperUserIdentifier"), // Required @@ -332,7 +324,7 @@ func ExampleCognitoIdentity_MergeDeveloperIdentities() { } func ExampleCognitoIdentity_SetIdentityPoolRoles() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.SetIdentityPoolRolesInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -355,7 +347,7 @@ func ExampleCognitoIdentity_SetIdentityPoolRoles() { } func ExampleCognitoIdentity_UnlinkDeveloperIdentity() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.UnlinkDeveloperIdentityInput{ DeveloperProviderName: aws.String("DeveloperProviderName"), // Required @@ -377,7 +369,7 @@ func ExampleCognitoIdentity_UnlinkDeveloperIdentity() { } func ExampleCognitoIdentity_UnlinkIdentity() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.UnlinkIdentityInput{ IdentityId: aws.String("IdentityId"), // Required @@ -404,20 +396,13 @@ func ExampleCognitoIdentity_UnlinkIdentity() { } func ExampleCognitoIdentity_UpdateIdentityPool() { - svc := cognitoidentity.New(session.New()) + svc := cognitoidentity.New(nil) params := &cognitoidentity.IdentityPool{ AllowUnauthenticatedIdentities: aws.Bool(true), // Required IdentityPoolId: aws.String("IdentityPoolId"), // Required IdentityPoolName: aws.String("IdentityPoolName"), // Required - CognitoIdentityProviders: []*cognitoidentity.Provider{ - { // Required - ClientId: aws.String("ProviderClientId"), - ProviderName: aws.String("ProviderName"), - }, - // More values... - }, - DeveloperProviderName: aws.String("DeveloperProviderName"), + DeveloperProviderName: aws.String("DeveloperProviderName"), OpenIdConnectProviderARNs: []*string{ aws.String("ARNString"), // Required // More values... diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/service.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/service.go index 6304582b1..f86b40bc1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/service.go @@ -4,11 +4,12 @@ package cognitoidentity import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Amazon Cognito is a web service that delivers scoped temporary credentials @@ -43,66 +44,42 @@ import ( // If you want to use Amazon Cognito in an Android, iOS, or Unity application, // you will probably want to make API calls via the AWS Mobile SDK. To learn // more, see the AWS Mobile SDK Developer Guide (http://docs.aws.amazon.com/mobile/index.html). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type CognitoIdentity struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cognito-identity" - -// New creates a new instance of the CognitoIdentity client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CognitoIdentity client from just a session. -// svc := cognitoidentity.New(mySession) -// -// // Create a CognitoIdentity client with additional configuration -// svc := cognitoidentity.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CognitoIdentity { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CognitoIdentity { - svc := &CognitoIdentity{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-06-30", - JSONVersion: "1.1", - TargetPrefix: "AWSCognitoIdentityService", - }, - handlers, - ), +// New returns a new CognitoIdentity client. +func New(config *aws.Config) *CognitoIdentity { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "cognito-identity", + APIVersion: "2014-06-30", + JSONVersion: "1.1", + TargetPrefix: "AWSCognitoIdentityService", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CognitoIdentity{service} } // newRequest creates a new request for a CognitoIdentity operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go deleted file mode 100644 index 87a248112..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go +++ /dev/null @@ -1,3832 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package cognitoidentityprovider provides a client for Amazon Cognito Identity Provider. -package cognitoidentityprovider - -import ( - "fmt" - "time" - - "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" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" -) - -const opAddCustomAttributes = "AddCustomAttributes" - -// AddCustomAttributesRequest generates a request for the AddCustomAttributes operation. -func (c *CognitoIdentityProvider) AddCustomAttributesRequest(input *AddCustomAttributesInput) (req *request.Request, output *AddCustomAttributesOutput) { - op := &request.Operation{ - Name: opAddCustomAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AddCustomAttributesInput{} - } - - req = c.newRequest(op, input, output) - output = &AddCustomAttributesOutput{} - req.Data = output - return -} - -// Adds additional user attributes to the user pool schema. -func (c *CognitoIdentityProvider) AddCustomAttributes(input *AddCustomAttributesInput) (*AddCustomAttributesOutput, error) { - req, out := c.AddCustomAttributesRequest(input) - err := req.Send() - return out, err -} - -const opAdminConfirmSignUp = "AdminConfirmSignUp" - -// AdminConfirmSignUpRequest generates a request for the AdminConfirmSignUp operation. -func (c *CognitoIdentityProvider) AdminConfirmSignUpRequest(input *AdminConfirmSignUpInput) (req *request.Request, output *AdminConfirmSignUpOutput) { - op := &request.Operation{ - Name: opAdminConfirmSignUp, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AdminConfirmSignUpInput{} - } - - req = c.newRequest(op, input, output) - output = &AdminConfirmSignUpOutput{} - req.Data = output - return -} - -// Confirms user registration as an admin without using a confirmation code. -// Works on any user. -func (c *CognitoIdentityProvider) AdminConfirmSignUp(input *AdminConfirmSignUpInput) (*AdminConfirmSignUpOutput, error) { - req, out := c.AdminConfirmSignUpRequest(input) - err := req.Send() - return out, err -} - -const opAdminDeleteUser = "AdminDeleteUser" - -// AdminDeleteUserRequest generates a request for the AdminDeleteUser operation. -func (c *CognitoIdentityProvider) AdminDeleteUserRequest(input *AdminDeleteUserInput) (req *request.Request, output *AdminDeleteUserOutput) { - op := &request.Operation{ - Name: opAdminDeleteUser, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AdminDeleteUserInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AdminDeleteUserOutput{} - req.Data = output - return -} - -// Deletes a user as an administrator. Works on any user. -func (c *CognitoIdentityProvider) AdminDeleteUser(input *AdminDeleteUserInput) (*AdminDeleteUserOutput, error) { - req, out := c.AdminDeleteUserRequest(input) - err := req.Send() - return out, err -} - -const opAdminDeleteUserAttributes = "AdminDeleteUserAttributes" - -// AdminDeleteUserAttributesRequest generates a request for the AdminDeleteUserAttributes operation. -func (c *CognitoIdentityProvider) AdminDeleteUserAttributesRequest(input *AdminDeleteUserAttributesInput) (req *request.Request, output *AdminDeleteUserAttributesOutput) { - op := &request.Operation{ - Name: opAdminDeleteUserAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AdminDeleteUserAttributesInput{} - } - - req = c.newRequest(op, input, output) - output = &AdminDeleteUserAttributesOutput{} - req.Data = output - return -} - -// Deletes the user attributes in a user pool as an administrator. Works on -// any user. -func (c *CognitoIdentityProvider) AdminDeleteUserAttributes(input *AdminDeleteUserAttributesInput) (*AdminDeleteUserAttributesOutput, error) { - req, out := c.AdminDeleteUserAttributesRequest(input) - err := req.Send() - return out, err -} - -const opAdminDisableUser = "AdminDisableUser" - -// AdminDisableUserRequest generates a request for the AdminDisableUser operation. -func (c *CognitoIdentityProvider) AdminDisableUserRequest(input *AdminDisableUserInput) (req *request.Request, output *AdminDisableUserOutput) { - op := &request.Operation{ - Name: opAdminDisableUser, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AdminDisableUserInput{} - } - - req = c.newRequest(op, input, output) - output = &AdminDisableUserOutput{} - req.Data = output - return -} - -// Disables the specified user as an administrator. Works on any user. -func (c *CognitoIdentityProvider) AdminDisableUser(input *AdminDisableUserInput) (*AdminDisableUserOutput, error) { - req, out := c.AdminDisableUserRequest(input) - err := req.Send() - return out, err -} - -const opAdminEnableUser = "AdminEnableUser" - -// AdminEnableUserRequest generates a request for the AdminEnableUser operation. -func (c *CognitoIdentityProvider) AdminEnableUserRequest(input *AdminEnableUserInput) (req *request.Request, output *AdminEnableUserOutput) { - op := &request.Operation{ - Name: opAdminEnableUser, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AdminEnableUserInput{} - } - - req = c.newRequest(op, input, output) - output = &AdminEnableUserOutput{} - req.Data = output - return -} - -// Enables the specified user as an administrator. Works on any user. -func (c *CognitoIdentityProvider) AdminEnableUser(input *AdminEnableUserInput) (*AdminEnableUserOutput, error) { - req, out := c.AdminEnableUserRequest(input) - err := req.Send() - return out, err -} - -const opAdminGetUser = "AdminGetUser" - -// AdminGetUserRequest generates a request for the AdminGetUser operation. -func (c *CognitoIdentityProvider) AdminGetUserRequest(input *AdminGetUserInput) (req *request.Request, output *AdminGetUserOutput) { - op := &request.Operation{ - Name: opAdminGetUser, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AdminGetUserInput{} - } - - req = c.newRequest(op, input, output) - output = &AdminGetUserOutput{} - req.Data = output - return -} - -// Gets the specified user by user name in a user pool as an administrator. -// Works on any user. -func (c *CognitoIdentityProvider) AdminGetUser(input *AdminGetUserInput) (*AdminGetUserOutput, error) { - req, out := c.AdminGetUserRequest(input) - err := req.Send() - return out, err -} - -const opAdminResetUserPassword = "AdminResetUserPassword" - -// AdminResetUserPasswordRequest generates a request for the AdminResetUserPassword operation. -func (c *CognitoIdentityProvider) AdminResetUserPasswordRequest(input *AdminResetUserPasswordInput) (req *request.Request, output *AdminResetUserPasswordOutput) { - op := &request.Operation{ - Name: opAdminResetUserPassword, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AdminResetUserPasswordInput{} - } - - req = c.newRequest(op, input, output) - output = &AdminResetUserPasswordOutput{} - req.Data = output - return -} - -// Resets the specified user's password in a user pool as an administrator. -// Works on any user. -func (c *CognitoIdentityProvider) AdminResetUserPassword(input *AdminResetUserPasswordInput) (*AdminResetUserPasswordOutput, error) { - req, out := c.AdminResetUserPasswordRequest(input) - err := req.Send() - return out, err -} - -const opAdminSetUserSettings = "AdminSetUserSettings" - -// AdminSetUserSettingsRequest generates a request for the AdminSetUserSettings operation. -func (c *CognitoIdentityProvider) AdminSetUserSettingsRequest(input *AdminSetUserSettingsInput) (req *request.Request, output *AdminSetUserSettingsOutput) { - op := &request.Operation{ - Name: opAdminSetUserSettings, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AdminSetUserSettingsInput{} - } - - req = c.newRequest(op, input, output) - output = &AdminSetUserSettingsOutput{} - req.Data = output - return -} - -// Sets all the user settings for a specified user name. Works on any user. -func (c *CognitoIdentityProvider) AdminSetUserSettings(input *AdminSetUserSettingsInput) (*AdminSetUserSettingsOutput, error) { - req, out := c.AdminSetUserSettingsRequest(input) - err := req.Send() - return out, err -} - -const opAdminUpdateUserAttributes = "AdminUpdateUserAttributes" - -// AdminUpdateUserAttributesRequest generates a request for the AdminUpdateUserAttributes operation. -func (c *CognitoIdentityProvider) AdminUpdateUserAttributesRequest(input *AdminUpdateUserAttributesInput) (req *request.Request, output *AdminUpdateUserAttributesOutput) { - op := &request.Operation{ - Name: opAdminUpdateUserAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AdminUpdateUserAttributesInput{} - } - - req = c.newRequest(op, input, output) - output = &AdminUpdateUserAttributesOutput{} - req.Data = output - return -} - -// Updates the specified user's attributes, including developer attributes, -// as an administrator. Works on any user. -func (c *CognitoIdentityProvider) AdminUpdateUserAttributes(input *AdminUpdateUserAttributesInput) (*AdminUpdateUserAttributesOutput, error) { - req, out := c.AdminUpdateUserAttributesRequest(input) - err := req.Send() - return out, err -} - -const opChangePassword = "ChangePassword" - -// ChangePasswordRequest generates a request for the ChangePassword operation. -func (c *CognitoIdentityProvider) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Request, output *ChangePasswordOutput) { - op := &request.Operation{ - Name: opChangePassword, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ChangePasswordInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &ChangePasswordOutput{} - req.Data = output - return -} - -// Changes the password for a specified user in a user pool. -func (c *CognitoIdentityProvider) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) { - req, out := c.ChangePasswordRequest(input) - err := req.Send() - return out, err -} - -const opConfirmForgotPassword = "ConfirmForgotPassword" - -// ConfirmForgotPasswordRequest generates a request for the ConfirmForgotPassword operation. -func (c *CognitoIdentityProvider) ConfirmForgotPasswordRequest(input *ConfirmForgotPasswordInput) (req *request.Request, output *ConfirmForgotPasswordOutput) { - op := &request.Operation{ - Name: opConfirmForgotPassword, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ConfirmForgotPasswordInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &ConfirmForgotPasswordOutput{} - req.Data = output - return -} - -// Allows a user to enter a code provided when they reset their password to -// update their password. -func (c *CognitoIdentityProvider) ConfirmForgotPassword(input *ConfirmForgotPasswordInput) (*ConfirmForgotPasswordOutput, error) { - req, out := c.ConfirmForgotPasswordRequest(input) - err := req.Send() - return out, err -} - -const opConfirmSignUp = "ConfirmSignUp" - -// ConfirmSignUpRequest generates a request for the ConfirmSignUp operation. -func (c *CognitoIdentityProvider) ConfirmSignUpRequest(input *ConfirmSignUpInput) (req *request.Request, output *ConfirmSignUpOutput) { - op := &request.Operation{ - Name: opConfirmSignUp, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ConfirmSignUpInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &ConfirmSignUpOutput{} - req.Data = output - return -} - -// Confirms registration of a user and handles the existing alias from a previous -// user. -func (c *CognitoIdentityProvider) ConfirmSignUp(input *ConfirmSignUpInput) (*ConfirmSignUpOutput, error) { - req, out := c.ConfirmSignUpRequest(input) - err := req.Send() - return out, err -} - -const opCreateUserPool = "CreateUserPool" - -// CreateUserPoolRequest generates a request for the CreateUserPool operation. -func (c *CognitoIdentityProvider) CreateUserPoolRequest(input *CreateUserPoolInput) (req *request.Request, output *CreateUserPoolOutput) { - op := &request.Operation{ - Name: opCreateUserPool, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateUserPoolInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateUserPoolOutput{} - req.Data = output - return -} - -// Creates a new Amazon Cognito user pool and sets the password policy for the -// pool. -func (c *CognitoIdentityProvider) CreateUserPool(input *CreateUserPoolInput) (*CreateUserPoolOutput, error) { - req, out := c.CreateUserPoolRequest(input) - err := req.Send() - return out, err -} - -const opCreateUserPoolClient = "CreateUserPoolClient" - -// CreateUserPoolClientRequest generates a request for the CreateUserPoolClient operation. -func (c *CognitoIdentityProvider) CreateUserPoolClientRequest(input *CreateUserPoolClientInput) (req *request.Request, output *CreateUserPoolClientOutput) { - op := &request.Operation{ - Name: opCreateUserPoolClient, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateUserPoolClientInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateUserPoolClientOutput{} - req.Data = output - return -} - -// Creates the user pool client. -func (c *CognitoIdentityProvider) CreateUserPoolClient(input *CreateUserPoolClientInput) (*CreateUserPoolClientOutput, error) { - req, out := c.CreateUserPoolClientRequest(input) - err := req.Send() - return out, err -} - -const opDeleteUser = "DeleteUser" - -// DeleteUserRequest generates a request for the DeleteUser operation. -func (c *CognitoIdentityProvider) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { - op := &request.Operation{ - Name: opDeleteUser, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteUserInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - req.Config.Credentials = credentials.AnonymousCredentials - output = &DeleteUserOutput{} - req.Data = output - return -} - -// Allows a user to delete one's self. -func (c *CognitoIdentityProvider) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { - req, out := c.DeleteUserRequest(input) - err := req.Send() - return out, err -} - -const opDeleteUserAttributes = "DeleteUserAttributes" - -// DeleteUserAttributesRequest generates a request for the DeleteUserAttributes operation. -func (c *CognitoIdentityProvider) DeleteUserAttributesRequest(input *DeleteUserAttributesInput) (req *request.Request, output *DeleteUserAttributesOutput) { - op := &request.Operation{ - Name: opDeleteUserAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteUserAttributesInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &DeleteUserAttributesOutput{} - req.Data = output - return -} - -// Deletes the attributes for a user. -func (c *CognitoIdentityProvider) DeleteUserAttributes(input *DeleteUserAttributesInput) (*DeleteUserAttributesOutput, error) { - req, out := c.DeleteUserAttributesRequest(input) - err := req.Send() - return out, err -} - -const opDeleteUserPool = "DeleteUserPool" - -// DeleteUserPoolRequest generates a request for the DeleteUserPool operation. -func (c *CognitoIdentityProvider) DeleteUserPoolRequest(input *DeleteUserPoolInput) (req *request.Request, output *DeleteUserPoolOutput) { - op := &request.Operation{ - Name: opDeleteUserPool, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteUserPoolInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteUserPoolOutput{} - req.Data = output - return -} - -// Deletes the specified Amazon Cognito user pool. -func (c *CognitoIdentityProvider) DeleteUserPool(input *DeleteUserPoolInput) (*DeleteUserPoolOutput, error) { - req, out := c.DeleteUserPoolRequest(input) - err := req.Send() - return out, err -} - -const opDeleteUserPoolClient = "DeleteUserPoolClient" - -// DeleteUserPoolClientRequest generates a request for the DeleteUserPoolClient operation. -func (c *CognitoIdentityProvider) DeleteUserPoolClientRequest(input *DeleteUserPoolClientInput) (req *request.Request, output *DeleteUserPoolClientOutput) { - op := &request.Operation{ - Name: opDeleteUserPoolClient, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteUserPoolClientInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteUserPoolClientOutput{} - req.Data = output - return -} - -// Allows the developer to delete the user pool client. -func (c *CognitoIdentityProvider) DeleteUserPoolClient(input *DeleteUserPoolClientInput) (*DeleteUserPoolClientOutput, error) { - req, out := c.DeleteUserPoolClientRequest(input) - err := req.Send() - return out, err -} - -const opDescribeUserPool = "DescribeUserPool" - -// DescribeUserPoolRequest generates a request for the DescribeUserPool operation. -func (c *CognitoIdentityProvider) DescribeUserPoolRequest(input *DescribeUserPoolInput) (req *request.Request, output *DescribeUserPoolOutput) { - op := &request.Operation{ - Name: opDescribeUserPool, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeUserPoolInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeUserPoolOutput{} - req.Data = output - return -} - -// Returns the configuration information and metadata of the specified user -// pool. -func (c *CognitoIdentityProvider) DescribeUserPool(input *DescribeUserPoolInput) (*DescribeUserPoolOutput, error) { - req, out := c.DescribeUserPoolRequest(input) - err := req.Send() - return out, err -} - -const opDescribeUserPoolClient = "DescribeUserPoolClient" - -// DescribeUserPoolClientRequest generates a request for the DescribeUserPoolClient operation. -func (c *CognitoIdentityProvider) DescribeUserPoolClientRequest(input *DescribeUserPoolClientInput) (req *request.Request, output *DescribeUserPoolClientOutput) { - op := &request.Operation{ - Name: opDescribeUserPoolClient, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeUserPoolClientInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeUserPoolClientOutput{} - req.Data = output - return -} - -// Client method for returning the configuration information and metadata of -// the specified user pool client. -func (c *CognitoIdentityProvider) DescribeUserPoolClient(input *DescribeUserPoolClientInput) (*DescribeUserPoolClientOutput, error) { - req, out := c.DescribeUserPoolClientRequest(input) - err := req.Send() - return out, err -} - -const opForgotPassword = "ForgotPassword" - -// ForgotPasswordRequest generates a request for the ForgotPassword operation. -func (c *CognitoIdentityProvider) ForgotPasswordRequest(input *ForgotPasswordInput) (req *request.Request, output *ForgotPasswordOutput) { - op := &request.Operation{ - Name: opForgotPassword, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ForgotPasswordInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &ForgotPasswordOutput{} - req.Data = output - return -} - -// Retrieves the password for the specified client ID or username. -func (c *CognitoIdentityProvider) ForgotPassword(input *ForgotPasswordInput) (*ForgotPasswordOutput, error) { - req, out := c.ForgotPasswordRequest(input) - err := req.Send() - return out, err -} - -const opGetUser = "GetUser" - -// GetUserRequest generates a request for the GetUser operation. -func (c *CognitoIdentityProvider) GetUserRequest(input *GetUserInput) (req *request.Request, output *GetUserOutput) { - op := &request.Operation{ - Name: opGetUser, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetUserInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &GetUserOutput{} - req.Data = output - return -} - -// Gets the user attributes and metadata for a user. -func (c *CognitoIdentityProvider) GetUser(input *GetUserInput) (*GetUserOutput, error) { - req, out := c.GetUserRequest(input) - err := req.Send() - return out, err -} - -const opGetUserAttributeVerificationCode = "GetUserAttributeVerificationCode" - -// GetUserAttributeVerificationCodeRequest generates a request for the GetUserAttributeVerificationCode operation. -func (c *CognitoIdentityProvider) GetUserAttributeVerificationCodeRequest(input *GetUserAttributeVerificationCodeInput) (req *request.Request, output *GetUserAttributeVerificationCodeOutput) { - op := &request.Operation{ - Name: opGetUserAttributeVerificationCode, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetUserAttributeVerificationCodeInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &GetUserAttributeVerificationCodeOutput{} - req.Data = output - return -} - -// Gets the user attribute verification code for the specified attribute name. -func (c *CognitoIdentityProvider) GetUserAttributeVerificationCode(input *GetUserAttributeVerificationCodeInput) (*GetUserAttributeVerificationCodeOutput, error) { - req, out := c.GetUserAttributeVerificationCodeRequest(input) - err := req.Send() - return out, err -} - -const opListUserPoolClients = "ListUserPoolClients" - -// ListUserPoolClientsRequest generates a request for the ListUserPoolClients operation. -func (c *CognitoIdentityProvider) ListUserPoolClientsRequest(input *ListUserPoolClientsInput) (req *request.Request, output *ListUserPoolClientsOutput) { - op := &request.Operation{ - Name: opListUserPoolClients, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListUserPoolClientsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListUserPoolClientsOutput{} - req.Data = output - return -} - -// Lists the clients that have been created for the specified user pool. -func (c *CognitoIdentityProvider) ListUserPoolClients(input *ListUserPoolClientsInput) (*ListUserPoolClientsOutput, error) { - req, out := c.ListUserPoolClientsRequest(input) - err := req.Send() - return out, err -} - -const opListUserPools = "ListUserPools" - -// ListUserPoolsRequest generates a request for the ListUserPools operation. -func (c *CognitoIdentityProvider) ListUserPoolsRequest(input *ListUserPoolsInput) (req *request.Request, output *ListUserPoolsOutput) { - op := &request.Operation{ - Name: opListUserPools, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListUserPoolsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListUserPoolsOutput{} - req.Data = output - return -} - -// Lists the user pools associated with an AWS account. -func (c *CognitoIdentityProvider) ListUserPools(input *ListUserPoolsInput) (*ListUserPoolsOutput, error) { - req, out := c.ListUserPoolsRequest(input) - err := req.Send() - return out, err -} - -const opListUsers = "ListUsers" - -// ListUsersRequest generates a request for the ListUsers operation. -func (c *CognitoIdentityProvider) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { - op := &request.Operation{ - Name: opListUsers, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListUsersInput{} - } - - req = c.newRequest(op, input, output) - output = &ListUsersOutput{} - req.Data = output - return -} - -// Lists the users in the Amazon Cognito user pool. -func (c *CognitoIdentityProvider) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { - req, out := c.ListUsersRequest(input) - err := req.Send() - return out, err -} - -const opResendConfirmationCode = "ResendConfirmationCode" - -// ResendConfirmationCodeRequest generates a request for the ResendConfirmationCode operation. -func (c *CognitoIdentityProvider) ResendConfirmationCodeRequest(input *ResendConfirmationCodeInput) (req *request.Request, output *ResendConfirmationCodeOutput) { - op := &request.Operation{ - Name: opResendConfirmationCode, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ResendConfirmationCodeInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &ResendConfirmationCodeOutput{} - req.Data = output - return -} - -// Resends the confirmation (for confirmation of registration) to a specific -// user in the user pool. -func (c *CognitoIdentityProvider) ResendConfirmationCode(input *ResendConfirmationCodeInput) (*ResendConfirmationCodeOutput, error) { - req, out := c.ResendConfirmationCodeRequest(input) - err := req.Send() - return out, err -} - -const opSetUserSettings = "SetUserSettings" - -// SetUserSettingsRequest generates a request for the SetUserSettings operation. -func (c *CognitoIdentityProvider) SetUserSettingsRequest(input *SetUserSettingsInput) (req *request.Request, output *SetUserSettingsOutput) { - op := &request.Operation{ - Name: opSetUserSettings, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SetUserSettingsInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &SetUserSettingsOutput{} - req.Data = output - return -} - -// Sets the user settings like multi-factor authentication (MFA). If MFA is -// to be removed for a particular attribute pass the attribute with code delivery -// as null. If null list is passed, all MFA options are removed. -func (c *CognitoIdentityProvider) SetUserSettings(input *SetUserSettingsInput) (*SetUserSettingsOutput, error) { - req, out := c.SetUserSettingsRequest(input) - err := req.Send() - return out, err -} - -const opSignUp = "SignUp" - -// SignUpRequest generates a request for the SignUp operation. -func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *request.Request, output *SignUpOutput) { - op := &request.Operation{ - Name: opSignUp, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SignUpInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &SignUpOutput{} - req.Data = output - return -} - -// Registers the user in the specified user pool and creates a user name, password, -// and user attributes. -func (c *CognitoIdentityProvider) SignUp(input *SignUpInput) (*SignUpOutput, error) { - req, out := c.SignUpRequest(input) - err := req.Send() - return out, err -} - -const opUpdateUserAttributes = "UpdateUserAttributes" - -// UpdateUserAttributesRequest generates a request for the UpdateUserAttributes operation. -func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserAttributesInput) (req *request.Request, output *UpdateUserAttributesOutput) { - op := &request.Operation{ - Name: opUpdateUserAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateUserAttributesInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &UpdateUserAttributesOutput{} - req.Data = output - return -} - -// Allows a user to update a specific attribute (one at a time). -func (c *CognitoIdentityProvider) UpdateUserAttributes(input *UpdateUserAttributesInput) (*UpdateUserAttributesOutput, error) { - req, out := c.UpdateUserAttributesRequest(input) - err := req.Send() - return out, err -} - -const opUpdateUserPool = "UpdateUserPool" - -// UpdateUserPoolRequest generates a request for the UpdateUserPool operation. -func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInput) (req *request.Request, output *UpdateUserPoolOutput) { - op := &request.Operation{ - Name: opUpdateUserPool, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateUserPoolInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateUserPoolOutput{} - req.Data = output - return -} - -// Updates the specified user pool with the specified attributes. -func (c *CognitoIdentityProvider) UpdateUserPool(input *UpdateUserPoolInput) (*UpdateUserPoolOutput, error) { - req, out := c.UpdateUserPoolRequest(input) - err := req.Send() - return out, err -} - -const opUpdateUserPoolClient = "UpdateUserPoolClient" - -// UpdateUserPoolClientRequest generates a request for the UpdateUserPoolClient operation. -func (c *CognitoIdentityProvider) UpdateUserPoolClientRequest(input *UpdateUserPoolClientInput) (req *request.Request, output *UpdateUserPoolClientOutput) { - op := &request.Operation{ - Name: opUpdateUserPoolClient, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateUserPoolClientInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateUserPoolClientOutput{} - req.Data = output - return -} - -// Allows the developer to update the specified user pool client and password -// policy. -func (c *CognitoIdentityProvider) UpdateUserPoolClient(input *UpdateUserPoolClientInput) (*UpdateUserPoolClientOutput, error) { - req, out := c.UpdateUserPoolClientRequest(input) - err := req.Send() - return out, err -} - -const opVerifyUserAttribute = "VerifyUserAttribute" - -// VerifyUserAttributeRequest generates a request for the VerifyUserAttribute operation. -func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAttributeInput) (req *request.Request, output *VerifyUserAttributeOutput) { - op := &request.Operation{ - Name: opVerifyUserAttribute, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &VerifyUserAttributeInput{} - } - - req = c.newRequest(op, input, output) - req.Config.Credentials = credentials.AnonymousCredentials - output = &VerifyUserAttributeOutput{} - req.Data = output - return -} - -// Verifies the specified user attributes in the user pool. -func (c *CognitoIdentityProvider) VerifyUserAttribute(input *VerifyUserAttributeInput) (*VerifyUserAttributeOutput, error) { - req, out := c.VerifyUserAttributeRequest(input) - err := req.Send() - return out, err -} - -// Represents the request to add custom attributes. -type AddCustomAttributesInput struct { - _ struct{} `type:"structure"` - - // An array of custom attributes, such as Mutable and Name. - CustomAttributes []*SchemaAttributeType `min:"1" type:"list" required:"true"` - - // The user pool ID for the user pool where you want to add custom attributes. - UserPoolId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AddCustomAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddCustomAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddCustomAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddCustomAttributesInput"} - if s.CustomAttributes == nil { - invalidParams.Add(request.NewErrParamRequired("CustomAttributes")) - } - if s.CustomAttributes != nil && len(s.CustomAttributes) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CustomAttributes", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.CustomAttributes != nil { - for i, v := range s.CustomAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server for the request to add custom attributes. -type AddCustomAttributesOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AddCustomAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddCustomAttributesOutput) GoString() string { - return s.String() -} - -// Represents the request to confirm user registration. -type AdminConfirmSignUpInput struct { - _ struct{} `type:"structure"` - - // The user pool ID for which you want to confirm user registration. - UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name for which you want to confirm user registration. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AdminConfirmSignUpInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminConfirmSignUpInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminConfirmSignUpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminConfirmSignUpInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server for the request to confirm registration. -type AdminConfirmSignUpOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AdminConfirmSignUpOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminConfirmSignUpOutput) GoString() string { - return s.String() -} - -// Represents the request to delete user attributes as an administrator. -type AdminDeleteUserAttributesInput struct { - _ struct{} `type:"structure"` - - // An array of strings representing the user attribute names you wish to delete. - UserAttributeNames []*string `type:"list" required:"true"` - - // The user pool ID for the user pool where you want to delete user attributes. - UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name of the user from which you would like to delete attributes. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AdminDeleteUserAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminDeleteUserAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminDeleteUserAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminDeleteUserAttributesInput"} - if s.UserAttributeNames == nil { - invalidParams.Add(request.NewErrParamRequired("UserAttributeNames")) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response received from the server for a request to delete -// user attributes. -type AdminDeleteUserAttributesOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AdminDeleteUserAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminDeleteUserAttributesOutput) GoString() string { - return s.String() -} - -// Represents the request to delete a user as an administrator. -type AdminDeleteUserInput struct { - _ struct{} `type:"structure"` - - // The user pool ID for the user pool where you want to delete the user. - UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name of the user you wish to delete. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AdminDeleteUserInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminDeleteUserInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminDeleteUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminDeleteUserInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type AdminDeleteUserOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AdminDeleteUserOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminDeleteUserOutput) GoString() string { - return s.String() -} - -// Represents the request to disable any user as an administrator. -type AdminDisableUserInput struct { - _ struct{} `type:"structure"` - - // The user pool ID for the user pool where you want to disable the user. - UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name of the user you wish to disable. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AdminDisableUserInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminDisableUserInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminDisableUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminDisableUserInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response received from the server to disable the user as an -// administrator. -type AdminDisableUserOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AdminDisableUserOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminDisableUserOutput) GoString() string { - return s.String() -} - -// Represents the request that enables the user as an administrator. -type AdminEnableUserInput struct { - _ struct{} `type:"structure"` - - // The user pool ID for the user pool where you want to enable the user. - UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name of the user you wish to ebable. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AdminEnableUserInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminEnableUserInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminEnableUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminEnableUserInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server for the request to enable a user -// as an administrator. -type AdminEnableUserOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AdminEnableUserOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminEnableUserOutput) GoString() string { - return s.String() -} - -// Represents the request to get the specified user as an administrator. -type AdminGetUserInput struct { - _ struct{} `type:"structure"` - - // The user pool ID for the user pool where you want to get information about - // the user. - UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name of the user you wish to retrieve. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AdminGetUserInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminGetUserInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminGetUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminGetUserInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server from the request to get the specified -// user as an administrator. -type AdminGetUserOutput struct { - _ struct{} `type:"structure"` - - // Indicates that the status is enabled. - Enabled *bool `type:"boolean"` - - // Specifies the options for MFA (e.g., email or phone number). - MFAOptions []*MFAOptionType `type:"list"` - - // An array of name-value pairs representing user attributes. - UserAttributes []*AttributeType `type:"list"` - - // The date the user was created. - UserCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The date the user was last modified. - UserLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The user status. Can be one of the following: - // - // UNCONFIRMED - User has been created but not confirmed. CONFIRMED - User - // has been confirmed. ARCHIVED - User is no longer active. COMPROMISED - User - // is disabled due to a potential security threat. UNKNOWN - User status is - // not known. - UserStatus *string `type:"string" enum:"UserStatusType"` - - // The user name of the user about whom you are receiving information. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AdminGetUserOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminGetUserOutput) GoString() string { - return s.String() -} - -// Represents the request to reset a user's password as an administrator. -type AdminResetUserPasswordInput struct { - _ struct{} `type:"structure"` - - // The user pool ID for the user pool where you want to reset the user's password. - UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name of the user whose password you wish to reset. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AdminResetUserPasswordInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminResetUserPasswordInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminResetUserPasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminResetUserPasswordInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server to reset a user password as an administrator. -type AdminResetUserPasswordOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AdminResetUserPasswordOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminResetUserPasswordOutput) GoString() string { - return s.String() -} - -// Represents the request to set user settings as an administrator. -type AdminSetUserSettingsInput struct { - _ struct{} `type:"structure"` - - // Specifies the options for MFA (e.g., email or phone number). - MFAOptions []*MFAOptionType `type:"list" required:"true"` - - // The user pool ID for the user pool where you want to set the user's settings, - // such as MFA options. - UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name of the user for whom you wish to set user settings. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AdminSetUserSettingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminSetUserSettingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminSetUserSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminSetUserSettingsInput"} - if s.MFAOptions == nil { - invalidParams.Add(request.NewErrParamRequired("MFAOptions")) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - if s.MFAOptions != nil { - for i, v := range s.MFAOptions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MFAOptions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server to set user settings as an administrator. -type AdminSetUserSettingsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AdminSetUserSettingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminSetUserSettingsOutput) GoString() string { - return s.String() -} - -// Represents the request to update the user's attributes as an administrator. -type AdminUpdateUserAttributesInput struct { - _ struct{} `type:"structure"` - - // An array of name-value pairs representing user attributes. - UserAttributes []*AttributeType `type:"list" required:"true"` - - // The user pool ID for the user pool where you want to update user attributes. - UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user name of the user for whom you want to update user attributes. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AdminUpdateUserAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminUpdateUserAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AdminUpdateUserAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AdminUpdateUserAttributesInput"} - if s.UserAttributes == nil { - invalidParams.Add(request.NewErrParamRequired("UserAttributes")) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - if s.UserAttributes != nil { - for i, v := range s.UserAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server for the request to update user attributes -// as an administrator. -type AdminUpdateUserAttributesOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AdminUpdateUserAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdminUpdateUserAttributesOutput) GoString() string { - return s.String() -} - -// Specifies whether the attribute is standard or custom. -type AttributeType struct { - _ struct{} `type:"structure"` - - // The name of the attribute. - Name *string `min:"1" type:"string" required:"true"` - - // The value of the attribute. - Value *string `type:"string"` -} - -// String returns the string representation -func (s AttributeType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttributeType) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttributeType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttributeType"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the request to change a user password. -type ChangePasswordInput struct { - _ struct{} `type:"structure"` - - // The access token in the change password request. - AccessToken *string `type:"string"` - - // The old password in the change password request. - PreviousPassword *string `min:"6" type:"string" required:"true"` - - // The new password in the change password request. - ProposedPassword *string `min:"6" type:"string" required:"true"` -} - -// String returns the string representation -func (s ChangePasswordInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ChangePasswordInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ChangePasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangePasswordInput"} - if s.PreviousPassword == nil { - invalidParams.Add(request.NewErrParamRequired("PreviousPassword")) - } - if s.PreviousPassword != nil && len(*s.PreviousPassword) < 6 { - invalidParams.Add(request.NewErrParamMinLen("PreviousPassword", 6)) - } - if s.ProposedPassword == nil { - invalidParams.Add(request.NewErrParamRequired("ProposedPassword")) - } - if s.ProposedPassword != nil && len(*s.ProposedPassword) < 6 { - invalidParams.Add(request.NewErrParamMinLen("ProposedPassword", 6)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response from the server to the change password request. -type ChangePasswordOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ChangePasswordOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ChangePasswordOutput) GoString() string { - return s.String() -} - -// The type of code delivery details being returned from the server. -type CodeDeliveryDetailsType struct { - _ struct{} `type:"structure"` - - // The name of the attribute in the code delivery details type. - AttributeName *string `min:"1" type:"string"` - - // The delivery medium (email message or phone number). - DeliveryMedium *string `type:"string" enum:"DeliveryMediumType"` - - // The destination for the code delivery details. - Destination *string `type:"string"` -} - -// String returns the string representation -func (s CodeDeliveryDetailsType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CodeDeliveryDetailsType) GoString() string { - return s.String() -} - -// The request representing the confirmation for a password reset. -type ConfirmForgotPasswordInput struct { - _ struct{} `type:"structure"` - - // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string" required:"true"` - - // The confirmation code sent by a user's request to retrieve a forgotten password. - ConfirmationCode *string `min:"1" type:"string" required:"true"` - - // The password sent by sent by a user's request to retrieve a forgotten password. - Password *string `min:"6" type:"string" required:"true"` - - // A keyed-hash message authentication code (HMAC) calculated using the secret - // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` - - // The user name of the user for whom you want to enter a code to retrieve a - // forgotten password. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ConfirmForgotPasswordInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfirmForgotPasswordInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmForgotPasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmForgotPasswordInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.ConfirmationCode == nil { - invalidParams.Add(request.NewErrParamRequired("ConfirmationCode")) - } - if s.ConfirmationCode != nil && len(*s.ConfirmationCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConfirmationCode", 1)) - } - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Password != nil && len(*s.Password) < 6 { - invalidParams.Add(request.NewErrParamMinLen("Password", 6)) - } - if s.SecretHash != nil && len(*s.SecretHash) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response from the server that results from a user's request to retrieve -// a forgotten password. -type ConfirmForgotPasswordOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ConfirmForgotPasswordOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfirmForgotPasswordOutput) GoString() string { - return s.String() -} - -// Represents the request to confirm registration of a user. -type ConfirmSignUpInput struct { - _ struct{} `type:"structure"` - - // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string" required:"true"` - - // The confirmation code sent by a user's request to confirm registration. - ConfirmationCode *string `min:"1" type:"string" required:"true"` - - // Boolean to be specified to force user confirmation irrespective of existing - // alias. By default set to False. If this parameter is set to True and the - // phone number/email used for sign up confirmation already exists as an alias - // with a different user, the API call will migrate the alias from the previous - // user to the newly created user being confirmed. If set to False, the API - // will throw an AliasExistsException error. - ForceAliasCreation *bool `type:"boolean"` - - // A keyed-hash message authentication code (HMAC) calculated using the secret - // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` - - // The user name of the user whose registration you wish to confirm. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ConfirmSignUpInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfirmSignUpInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmSignUpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmSignUpInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.ConfirmationCode == nil { - invalidParams.Add(request.NewErrParamRequired("ConfirmationCode")) - } - if s.ConfirmationCode != nil && len(*s.ConfirmationCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConfirmationCode", 1)) - } - if s.SecretHash != nil && len(*s.SecretHash) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server for the registration confirmation. -type ConfirmSignUpOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ConfirmSignUpOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfirmSignUpOutput) GoString() string { - return s.String() -} - -// Represents the request to create a user pool client. -type CreateUserPoolClientInput struct { - _ struct{} `type:"structure"` - - // The client name for the user pool client you would like to create. - ClientName *string `min:"1" type:"string" required:"true"` - - // Boolean to specify whether you want to generate a secret for the user pool - // client being created. - GenerateSecret *bool `type:"boolean"` - - // The user pool ID for the user pool where you want to create a user pool client. - UserPoolId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateUserPoolClientInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateUserPoolClientInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUserPoolClientInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolClientInput"} - if s.ClientName == nil { - invalidParams.Add(request.NewErrParamRequired("ClientName")) - } - if s.ClientName != nil && len(*s.ClientName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientName", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server to create a user pool client. -type CreateUserPoolClientOutput struct { - _ struct{} `type:"structure"` - - // The user pool client that was just created. - UserPoolClient *UserPoolClientType `type:"structure"` -} - -// String returns the string representation -func (s CreateUserPoolClientOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateUserPoolClientOutput) GoString() string { - return s.String() -} - -// Represents the request to create a user pool. -type CreateUserPoolInput struct { - _ struct{} `type:"structure"` - - // Attributes supported as an alias for this user pool. Possible values: phone_number, - // email, or preferred_username. - AliasAttributes []*string `type:"list"` - - // The attributes to be auto-verified. Possible values: email, phone_number. - AutoVerifiedAttributes []*string `type:"list"` - - // A string representing the email verification message. - EmailVerificationMessage *string `min:"6" type:"string"` - - // A string representing the email verification subject. - EmailVerificationSubject *string `min:"1" type:"string"` - - // The Lambda trigger configuration information for the new user pool. - LambdaConfig *LambdaConfigType `type:"structure"` - - // Specifies MFA configuration details. - MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"` - - // The policies associated with the new user pool. - Policies *UserPoolPolicyType `type:"structure"` - - // A string used to name the user pool. - PoolName *string `min:"1" type:"string" required:"true"` - - // A string representing the SMS authentication message. - SmsAuthenticationMessage *string `min:"6" type:"string"` - - // A string representing the SMS verification message. - SmsVerificationMessage *string `min:"6" type:"string"` -} - -// String returns the string representation -func (s CreateUserPoolInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateUserPoolInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUserPoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUserPoolInput"} - if s.EmailVerificationMessage != nil && len(*s.EmailVerificationMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("EmailVerificationMessage", 6)) - } - if s.EmailVerificationSubject != nil && len(*s.EmailVerificationSubject) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EmailVerificationSubject", 1)) - } - if s.PoolName == nil { - invalidParams.Add(request.NewErrParamRequired("PoolName")) - } - if s.PoolName != nil && len(*s.PoolName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PoolName", 1)) - } - if s.SmsAuthenticationMessage != nil && len(*s.SmsAuthenticationMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("SmsAuthenticationMessage", 6)) - } - if s.SmsVerificationMessage != nil && len(*s.SmsVerificationMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("SmsVerificationMessage", 6)) - } - if s.LambdaConfig != nil { - if err := s.LambdaConfig.Validate(); err != nil { - invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams)) - } - } - if s.Policies != nil { - if err := s.Policies.Validate(); err != nil { - invalidParams.AddNested("Policies", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server for the request to create a user -// pool. -type CreateUserPoolOutput struct { - _ struct{} `type:"structure"` - - // A container for the user pool details. - UserPool *UserPoolType `type:"structure"` -} - -// String returns the string representation -func (s CreateUserPoolOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateUserPoolOutput) GoString() string { - return s.String() -} - -// Represents the request to delete user attributes. -type DeleteUserAttributesInput struct { - _ struct{} `type:"structure"` - - // The access token used in the request to delete user attributes. - AccessToken *string `type:"string"` - - // An array of strings representing the user attribute names you wish to delete. - UserAttributeNames []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s DeleteUserAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteUserAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserAttributesInput"} - if s.UserAttributeNames == nil { - invalidParams.Add(request.NewErrParamRequired("UserAttributeNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server to delete user attributes. -type DeleteUserAttributesOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteUserAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteUserAttributesOutput) GoString() string { - return s.String() -} - -// Represents the request to delete a user. -type DeleteUserInput struct { - _ struct{} `type:"structure"` - - // The access token from a request to delete a user. - AccessToken *string `type:"string"` -} - -// String returns the string representation -func (s DeleteUserInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteUserInput) GoString() string { - return s.String() -} - -type DeleteUserOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteUserOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteUserOutput) GoString() string { - return s.String() -} - -// Represents the request to delete a user pool client. -type DeleteUserPoolClientInput struct { - _ struct{} `type:"structure"` - - // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string" required:"true"` - - // The user pool ID for the user pool where you want to delete the client. - UserPoolId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteUserPoolClientInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteUserPoolClientInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserPoolClientInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolClientInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteUserPoolClientOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteUserPoolClientOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteUserPoolClientOutput) GoString() string { - return s.String() -} - -// Represents the request to delete a user pool. -type DeleteUserPoolInput struct { - _ struct{} `type:"structure"` - - // The user pool ID for the user pool you want to delete. - UserPoolId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteUserPoolInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteUserPoolInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserPoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserPoolInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteUserPoolOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteUserPoolOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteUserPoolOutput) GoString() string { - return s.String() -} - -// Represents the request to describe a user pool client. -type DescribeUserPoolClientInput struct { - _ struct{} `type:"structure"` - - // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string" required:"true"` - - // The user pool ID for the user pool you want to describe. - UserPoolId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeUserPoolClientInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeUserPoolClientInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeUserPoolClientInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolClientInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server from a request to describe the user -// pool client. -type DescribeUserPoolClientOutput struct { - _ struct{} `type:"structure"` - - // The user pool client from a server response to describe the user pool client. - UserPoolClient *UserPoolClientType `type:"structure"` -} - -// String returns the string representation -func (s DescribeUserPoolClientOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeUserPoolClientOutput) GoString() string { - return s.String() -} - -// Represents the request to describe the user pool. -type DescribeUserPoolInput struct { - _ struct{} `type:"structure"` - - // The user pool ID for the user pool you want to describe. - UserPoolId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeUserPoolInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeUserPoolInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeUserPoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserPoolInput"} - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response to describe the user pool. -type DescribeUserPoolOutput struct { - _ struct{} `type:"structure"` - - // The container of metadata returned by the server to describe the pool. - UserPool *UserPoolType `type:"structure"` -} - -// String returns the string representation -func (s DescribeUserPoolOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeUserPoolOutput) GoString() string { - return s.String() -} - -// Represents the request to reset a user's password. -type ForgotPasswordInput struct { - _ struct{} `type:"structure"` - - // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string" required:"true"` - - // A keyed-hash message authentication code (HMAC) calculated using the secret - // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` - - // The user name of the user for whom you want to enter a code to retrieve a - // forgotten password. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ForgotPasswordInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ForgotPasswordInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ForgotPasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ForgotPasswordInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.SecretHash != nil && len(*s.SecretHash) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Respresents the response from the server regarding the request to reset a -// password. -type ForgotPasswordOutput struct { - _ struct{} `type:"structure"` - - // The type of code delivery details being returned from the server. - CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` -} - -// String returns the string representation -func (s ForgotPasswordOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ForgotPasswordOutput) GoString() string { - return s.String() -} - -// Represents the request to get user attribute verification. -type GetUserAttributeVerificationCodeInput struct { - _ struct{} `type:"structure"` - - // The access token returned by the server response to get the user attribute - // verification code. - AccessToken *string `type:"string"` - - // The attribute name returned by the server response to get the user attribute - // verification code. - AttributeName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetUserAttributeVerificationCodeInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetUserAttributeVerificationCodeInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetUserAttributeVerificationCodeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetUserAttributeVerificationCodeInput"} - if s.AttributeName == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeName")) - } - if s.AttributeName != nil && len(*s.AttributeName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The verification code response returned by the server response to get the -// user attribute verification code. -type GetUserAttributeVerificationCodeOutput struct { - _ struct{} `type:"structure"` - - // The code delivery details returned by the server response to get the user - // attribute verification code. - CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` -} - -// String returns the string representation -func (s GetUserAttributeVerificationCodeOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetUserAttributeVerificationCodeOutput) GoString() string { - return s.String() -} - -// Represents the request to get information about the user. -type GetUserInput struct { - _ struct{} `type:"structure"` - - // The access token returned by the server response to get information about - // the user. - AccessToken *string `type:"string"` -} - -// String returns the string representation -func (s GetUserInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetUserInput) GoString() string { - return s.String() -} - -// Represents the response from the server from the request to get information -// about the user. -type GetUserOutput struct { - _ struct{} `type:"structure"` - - // Specifies the options for MFA (e.g., email or phone number). - MFAOptions []*MFAOptionType `type:"list"` - - // An array of name-value pairs representing user attributes. - UserAttributes []*AttributeType `type:"list" required:"true"` - - // The user name of the user you wish to retrieve from the get user request. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetUserOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetUserOutput) GoString() string { - return s.String() -} - -// Specifies the type of configuration for AWS Lambda triggers. -type LambdaConfigType struct { - _ struct{} `type:"structure"` - - // A custom Message AWS Lambda trigger. - CustomMessage *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"` -} - -// String returns the string representation -func (s LambdaConfigType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s LambdaConfigType) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *LambdaConfigType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LambdaConfigType"} - if s.CustomMessage != nil && len(*s.CustomMessage) < 20 { - invalidParams.Add(request.NewErrParamMinLen("CustomMessage", 20)) - } - if s.PostAuthentication != nil && len(*s.PostAuthentication) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PostAuthentication", 20)) - } - if s.PostConfirmation != nil && len(*s.PostConfirmation) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PostConfirmation", 20)) - } - if s.PreAuthentication != nil && len(*s.PreAuthentication) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PreAuthentication", 20)) - } - if s.PreSignUp != nil && len(*s.PreSignUp) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PreSignUp", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the request to list the user pool clients. -type ListUserPoolClientsInput struct { - _ struct{} `type:"structure"` - - // The maximum number of results you want the request to return when listing - // the user pool clients. - MaxResults *int64 `min:"1" type:"integer"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` - - // The user pool ID for the user pool where you want to list user pool clients. - UserPoolId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListUserPoolClientsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListUserPoolClientsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListUserPoolClientsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUserPoolClientsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server that lists user pool clients. -type ListUserPoolClientsOutput struct { - _ struct{} `type:"structure"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` - - // The user pool clients in the response that lists user pool clients. - UserPoolClients []*UserPoolClientDescription `type:"list"` -} - -// String returns the string representation -func (s ListUserPoolClientsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListUserPoolClientsOutput) GoString() string { - return s.String() -} - -// Represents the request to list user pools. -type ListUserPoolsInput struct { - _ struct{} `type:"structure"` - - // The maximum number of results you want the request to return when listing - // the user pools. - MaxResults *int64 `min:"1" type:"integer" required:"true"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListUserPoolsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListUserPoolsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListUserPoolsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUserPoolsInput"} - if s.MaxResults == nil { - invalidParams.Add(request.NewErrParamRequired("MaxResults")) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response to list user pools. -type ListUserPoolsOutput struct { - _ struct{} `type:"structure"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `min:"1" type:"string"` - - // The user pools from the response to list users. - UserPools []*UserPoolDescriptionType `type:"list"` -} - -// String returns the string representation -func (s ListUserPoolsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListUserPoolsOutput) GoString() string { - return s.String() -} - -// Represents the request to list users. -type ListUsersInput struct { - _ struct{} `type:"structure"` - - // The attributes to get from the request to list users. - AttributesToGet []*string `type:"list"` - - // The limit of the request to list users. - Limit *int64 `min:"1" type:"integer"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - PaginationToken *string `min:"1" type:"string"` - - // The user pool ID for which you want to list users. - UserPoolId *string `min:"1" type:"string" required:"true"` - - // The user status. Can be one of the following: - // - // UNCONFIRMED - User has been created but not confirmed. CONFIRMED - User - // has been confirmed. ARCHIVED - User is no longer active. COMPROMISED - User - // is disabled due to a potential security threat. UNKNOWN - User status is - // not known. - UserStatus *string `type:"string" enum:"UserStatusType"` -} - -// String returns the string representation -func (s ListUsersInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListUsersInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListUsersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.PaginationToken != nil && len(*s.PaginationToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PaginationToken", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response from the request to list users. -type ListUsersOutput struct { - _ struct{} `type:"structure"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - PaginationToken *string `min:"1" type:"string"` - - // The users returned in the request to list users. - Users []*UserType `type:"list"` -} - -// String returns the string representation -func (s ListUsersOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListUsersOutput) GoString() string { - return s.String() -} - -// Specifies the different settings for multi-factor authentication (MFA). -type MFAOptionType struct { - _ struct{} `type:"structure"` - - // The attribute name of the MFA option type. - AttributeName *string `min:"1" type:"string"` - - // The delivery medium (email message or SMS message) to send the MFA code. - DeliveryMedium *string `type:"string" enum:"DeliveryMediumType"` -} - -// String returns the string representation -func (s MFAOptionType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MFAOptionType) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *MFAOptionType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MFAOptionType"} - if s.AttributeName != nil && len(*s.AttributeName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The minimum and maximum value of an attribute that is of the number data -// type. -type NumberAttributeConstraintsType struct { - _ struct{} `type:"structure"` - - // The maximum value of an attribute that is of the number data type. - MaxValue *string `type:"string"` - - // The minimum value of an attribute that is of the number data type. - MinValue *string `type:"string"` -} - -// String returns the string representation -func (s NumberAttributeConstraintsType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s NumberAttributeConstraintsType) GoString() string { - return s.String() -} - -// The password policy type. -type PasswordPolicyType struct { - _ struct{} `type:"structure"` - - // The minimum length of the password policy that you have set. Cannot be less - // than 6. - MinimumLength *int64 `min:"6" type:"integer"` - - // In the password policy that you have set, refers to whether you have required - // users to use at least one lowercase letter in their password. - RequireLowercase *bool `type:"boolean"` - - // In the password policy that you have set, refers to whether you have required - // users to use at least one number in their password. - RequireNumbers *bool `type:"boolean"` - - // In the password policy that you have set, refers to whether you have required - // users to use at least one symbol in their password. - RequireSymbols *bool `type:"boolean"` - - // In the password policy that you have set, refers to whether you have required - // users to use at least one uppercase letter in their password. - RequireUppercase *bool `type:"boolean"` -} - -// String returns the string representation -func (s PasswordPolicyType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PasswordPolicyType) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PasswordPolicyType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PasswordPolicyType"} - if s.MinimumLength != nil && *s.MinimumLength < 6 { - invalidParams.Add(request.NewErrParamMinValue("MinimumLength", 6)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the request to resend the confirmation code. -type ResendConfirmationCodeInput struct { - _ struct{} `type:"structure"` - - // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string" required:"true"` - - // A keyed-hash message authentication code (HMAC) calculated using the secret - // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` - - // The user name of the user to whom you wish to resend a confirmation code. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ResendConfirmationCodeInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResendConfirmationCodeInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResendConfirmationCodeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResendConfirmationCodeInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.SecretHash != nil && len(*s.SecretHash) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response from the server when the Amazon Cognito service makes the request -// to resend a confirmation code. -type ResendConfirmationCodeOutput struct { - _ struct{} `type:"structure"` - - // The type of code delivery details being returned from the server. - 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() -} - -// Contains information about the schema attribute. -type SchemaAttributeType struct { - _ struct{} `type:"structure"` - - // The attribute data type. - AttributeDataType *string `type:"string" enum:"AttributeDataType"` - - // Specifies whether the attribute type is developer only. - DeveloperOnlyAttribute *bool `type:"boolean"` - - // Specifies whether the attribute can be changed once it has been created. - Mutable *bool `type:"boolean"` - - // A schema attribute of the name type. - Name *string `min:"1" type:"string"` - - // Specifies the constraints for an attribute of the number type. - NumberAttributeConstraints *NumberAttributeConstraintsType `type:"structure"` - - // Specifies whether a user pool attribute is required. If the attribute is - // required and the user does not provide a value, registration or sign-in will - // fail. - Required *bool `type:"boolean"` - - // Specifies the constraints for an attribute of the string type. - StringAttributeConstraints *StringAttributeConstraintsType `type:"structure"` -} - -// String returns the string representation -func (s SchemaAttributeType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SchemaAttributeType) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SchemaAttributeType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SchemaAttributeType"} - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the request to set user settings. -type SetUserSettingsInput struct { - _ struct{} `type:"structure"` - - // The access token for the set user settings request. - AccessToken *string `type:"string" required:"true"` - - // Specifies the options for MFA (e.g., email or phone number). - MFAOptions []*MFAOptionType `type:"list" required:"true"` -} - -// String returns the string representation -func (s SetUserSettingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetUserSettingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetUserSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetUserSettingsInput"} - if s.AccessToken == nil { - invalidParams.Add(request.NewErrParamRequired("AccessToken")) - } - if s.MFAOptions == nil { - invalidParams.Add(request.NewErrParamRequired("MFAOptions")) - } - if s.MFAOptions != nil { - for i, v := range s.MFAOptions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MFAOptions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response from the server for a set user settings request. -type SetUserSettingsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s SetUserSettingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetUserSettingsOutput) GoString() string { - return s.String() -} - -// Represents the request to register a user. -type SignUpInput struct { - _ struct{} `type:"structure"` - - // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string" required:"true"` - - // The password of the user you wish to register. - Password *string `min:"6" type:"string" required:"true"` - - // A keyed-hash message authentication code (HMAC) calculated using the secret - // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` - - // An array of name-value pairs representing user attributes. - UserAttributes []*AttributeType `type:"list"` - - // The user name of the user you wish to register. - Username *string `min:"1" type:"string" required:"true"` - - // The validation data in the request to register a user. - ValidationData []*AttributeType `type:"list"` -} - -// String returns the string representation -func (s SignUpInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SignUpInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SignUpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SignUpInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Password != nil && len(*s.Password) < 6 { - invalidParams.Add(request.NewErrParamMinLen("Password", 6)) - } - if s.SecretHash != nil && len(*s.SecretHash) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretHash", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - if s.UserAttributes != nil { - for i, v := range s.UserAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - if s.ValidationData != nil { - for i, v := range s.ValidationData { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationData", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response from the server for a registration request. -type SignUpOutput struct { - _ struct{} `type:"structure"` - - // The type of code delivery details being returned from the server. - CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` - - // A response from the server indicating that a user registration has been confirmed. - UserConfirmed *bool `type:"boolean"` -} - -// String returns the string representation -func (s SignUpOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SignUpOutput) GoString() string { - return s.String() -} - -// The type of constraints associated with an attribute of the string type. -type StringAttributeConstraintsType struct { - _ struct{} `type:"structure"` - - // The maximum length of an attribute value of the string type. - MaxLength *string `type:"string"` - - // The minimum length of an attribute value of the string type. - MinLength *string `type:"string"` -} - -// String returns the string representation -func (s StringAttributeConstraintsType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StringAttributeConstraintsType) GoString() string { - return s.String() -} - -// Represents the request to update user attributes. -type UpdateUserAttributesInput struct { - _ struct{} `type:"structure"` - - // The access token for the request to update user attributes. - AccessToken *string `type:"string"` - - // An array of name-value pairs representing user attributes. - UserAttributes []*AttributeType `type:"list" required:"true"` -} - -// String returns the string representation -func (s UpdateUserAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateUserAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateUserAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateUserAttributesInput"} - if s.UserAttributes == nil { - invalidParams.Add(request.NewErrParamRequired("UserAttributes")) - } - if s.UserAttributes != nil { - for i, v := range s.UserAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server for the request to update user attributes. -type UpdateUserAttributesOutput struct { - _ struct{} `type:"structure"` - - // The code delivery details list from the server for the request to update - // user attributes. - CodeDeliveryDetailsList []*CodeDeliveryDetailsType `type:"list"` -} - -// String returns the string representation -func (s UpdateUserAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateUserAttributesOutput) GoString() string { - return s.String() -} - -// Represents the request to update the user pool client. -type UpdateUserPoolClientInput struct { - _ struct{} `type:"structure"` - - // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string" required:"true"` - - // The client name from the update user pool client request. - ClientName *string `min:"1" type:"string"` - - // The user pool ID for the user pool where you want to update the user pool - // client. - UserPoolId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateUserPoolClientInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateUserPoolClientInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateUserPoolClientInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateUserPoolClientInput"} - if s.ClientId == nil { - invalidParams.Add(request.NewErrParamRequired("ClientId")) - } - if s.ClientId != nil && len(*s.ClientId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientId", 1)) - } - if s.ClientName != nil && len(*s.ClientName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientName", 1)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server to the request to update the user -// pool client. -type UpdateUserPoolClientOutput struct { - _ struct{} `type:"structure"` - - // The user pool client value from the response from the server when an update - // user pool client request is made. - UserPoolClient *UserPoolClientType `type:"structure"` -} - -// String returns the string representation -func (s UpdateUserPoolClientOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateUserPoolClientOutput) GoString() string { - return s.String() -} - -// Represents the request to update the user pool. -type UpdateUserPoolInput struct { - _ struct{} `type:"structure"` - - // The attributes that are automatically verified when the Amazon Cognito service - // makes a request to update user pools. - AutoVerifiedAttributes []*string `type:"list"` - - // The contents of the email verification message. - EmailVerificationMessage *string `min:"6" type:"string"` - - // The subject of the email verfication message - EmailVerificationSubject *string `min:"1" type:"string"` - - // The AWS Lambda configuration information from the request to update the user - // pool. - LambdaConfig *LambdaConfigType `type:"structure"` - - // Can be one of the following values: - // - // OFF - MFA tokens are not required and cannot be specified during user registration. - // ON - MFA tokens are required for all user registrations. You can only specify - // required when you are initially creating a user pool. OPTIONAL - Users have - // the option when registering to create an MFA token. - MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"` - - // A container with the policies you wish to update in a user pool. - Policies *UserPoolPolicyType `type:"structure"` - - // The contents of the SMS authentication message. - SmsAuthenticationMessage *string `min:"6" type:"string"` - - // A container with information about the SMS verification message. - SmsVerificationMessage *string `min:"6" type:"string"` - - // The user pool ID for the user pool you want to update. - UserPoolId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateUserPoolInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateUserPoolInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateUserPoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateUserPoolInput"} - if s.EmailVerificationMessage != nil && len(*s.EmailVerificationMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("EmailVerificationMessage", 6)) - } - if s.EmailVerificationSubject != nil && len(*s.EmailVerificationSubject) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EmailVerificationSubject", 1)) - } - if s.SmsAuthenticationMessage != nil && len(*s.SmsAuthenticationMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("SmsAuthenticationMessage", 6)) - } - if s.SmsVerificationMessage != nil && len(*s.SmsVerificationMessage) < 6 { - invalidParams.Add(request.NewErrParamMinLen("SmsVerificationMessage", 6)) - } - if s.UserPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("UserPoolId")) - } - if s.UserPoolId != nil && len(*s.UserPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserPoolId", 1)) - } - if s.LambdaConfig != nil { - if err := s.LambdaConfig.Validate(); err != nil { - invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams)) - } - } - if s.Policies != nil { - if err := s.Policies.Validate(); err != nil { - invalidParams.AddNested("Policies", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the response from the server when you make a request to update -// the user pool. -type UpdateUserPoolOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UpdateUserPoolOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateUserPoolOutput) GoString() string { - return s.String() -} - -// The description of the user poool client. -type UserPoolClientDescription struct { - _ struct{} `type:"structure"` - - // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string"` - - // The client name from the user pool client description. - ClientName *string `min:"1" type:"string"` - - // The user pool ID for the user pool where you want to describe the user pool - // client. - UserPoolId *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s UserPoolClientDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UserPoolClientDescription) GoString() string { - return s.String() -} - -// A user pool of the client type. -type UserPoolClientType struct { - _ struct{} `type:"structure"` - - // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string"` - - // The client name from the user pool request of the client type. - ClientName *string `min:"1" type:"string"` - - // The client secret from the user pool request of the client type. - ClientSecret *string `min:"1" type:"string"` - - // The creation date from the user pool request of the client type. - CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The last modified date from the user pool request of the client type. - LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The user pool ID for the user pool client. - UserPoolId *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s UserPoolClientType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UserPoolClientType) GoString() string { - return s.String() -} - -// A user pool description. -type UserPoolDescriptionType struct { - _ struct{} `type:"structure"` - - // The creation date in a user pool description. - CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The ID in a user pool description. - Id *string `min:"1" type:"string"` - - // The AWS Lambda configuration information in a user pool description. - LambdaConfig *LambdaConfigType `type:"structure"` - - // The last modified date in a user pool description. - LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The name in a user pool description. - Name *string `min:"1" type:"string"` - - // The user pool status in a user pool description. - Status *string `type:"string" enum:"StatusType"` -} - -// String returns the string representation -func (s UserPoolDescriptionType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UserPoolDescriptionType) GoString() string { - return s.String() -} - -// The type of policy in a user pool. -type UserPoolPolicyType struct { - _ struct{} `type:"structure"` - - // A container with information about the user pool password policy. - PasswordPolicy *PasswordPolicyType `type:"structure"` -} - -// String returns the string representation -func (s UserPoolPolicyType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UserPoolPolicyType) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UserPoolPolicyType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UserPoolPolicyType"} - if s.PasswordPolicy != nil { - if err := s.PasswordPolicy.Validate(); err != nil { - invalidParams.AddNested("PasswordPolicy", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A container with information about the user pool type. -type UserPoolType struct { - _ struct{} `type:"structure"` - - // Specifies the attributes that are aliased in a user pool. - AliasAttributes []*string `type:"list"` - - // Specifies the attributes that are auto-verified in a user pool. - AutoVerifiedAttributes []*string `type:"list"` - - // The creation date of a user pool. - CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The contents of the email verification message. - EmailVerificationMessage *string `min:"6" type:"string"` - - // The subject of the email verification message. - EmailVerificationSubject *string `min:"1" type:"string"` - - // A number estimating the size of the user pool. - EstimatedNumberOfUsers *int64 `type:"integer"` - - // The ID of the user pool. - Id *string `min:"1" type:"string"` - - // A container describing the AWS Lambda triggers associated with a user pool. - LambdaConfig *LambdaConfigType `type:"structure"` - - // The last modified date of a user pool. - LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Can be one of the following values: - // - // OFF - MFA tokens are not required and cannot be specified during user registration. - // ON - MFA tokens are required for all user registrations. You can only specify - // required when you are initially creating a user pool. OPTIONAL - Users have - // the option when registering to create an MFA token. - MfaConfiguration *string `type:"string" enum:"UserPoolMfaType"` - - // The name of the user pool. - Name *string `min:"1" type:"string"` - - // A container describing the policies associated with a user pool. - Policies *UserPoolPolicyType `type:"structure"` - - // A container with the schema attributes of a user pool. - SchemaAttributes []*SchemaAttributeType `min:"1" type:"list"` - - // The contents of the SMS authentication message. - SmsAuthenticationMessage *string `min:"6" type:"string"` - - // The contents of the SMS verification message. - SmsVerificationMessage *string `min:"6" type:"string"` - - // The status of a user pool. - Status *string `type:"string" enum:"StatusType"` -} - -// String returns the string representation -func (s UserPoolType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UserPoolType) GoString() string { - return s.String() -} - -// The user type. -type UserType struct { - _ struct{} `type:"structure"` - - // A container with information about the user type attributes. - Attributes []*AttributeType `type:"list"` - - // Specifies whether the user is enabled. - Enabled *bool `type:"boolean"` - - // The creation date of the user. - UserCreateDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The last modified date of the user. - UserLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The user status. Can be one of the following: - // - // UNCONFIRMED - User has been created but not confirmed. CONFIRMED - User - // has been confirmed. ARCHIVED - User is no longer active. COMPROMISED - User - // is disabled due to a potential security threat. UNKNOWN - User status is - // not known. - UserStatus *string `type:"string" enum:"UserStatusType"` - - // The user name of the user you wish to describe. - Username *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s UserType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UserType) GoString() string { - return s.String() -} - -// Represents the request to verify user attributes. -type VerifyUserAttributeInput struct { - _ struct{} `type:"structure"` - - // Represents the access token of the request to verify user attributes. - AccessToken *string `type:"string"` - - // The attribute name in the request to verify user attributes. - AttributeName *string `min:"1" type:"string" required:"true"` - - // The verification code in the request to verify user attributes. - Code *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s VerifyUserAttributeInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s VerifyUserAttributeInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *VerifyUserAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VerifyUserAttributeInput"} - 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.Code == nil { - invalidParams.Add(request.NewErrParamRequired("Code")) - } - if s.Code != nil && len(*s.Code) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Code", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A container representing the response from the server from the request to -// verify user attributes. -type VerifyUserAttributeOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s VerifyUserAttributeOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s VerifyUserAttributeOutput) GoString() string { - return s.String() -} - -const ( - // @enum AliasAttributeType - AliasAttributeTypePhoneNumber = "phone_number" - // @enum AliasAttributeType - AliasAttributeTypeEmail = "email" - // @enum AliasAttributeType - AliasAttributeTypePreferredUsername = "preferred_username" -) - -const ( - // @enum AttributeDataType - AttributeDataTypeString = "String" - // @enum AttributeDataType - AttributeDataTypeNumber = "Number" - // @enum AttributeDataType - AttributeDataTypeDateTime = "DateTime" - // @enum AttributeDataType - AttributeDataTypeBoolean = "Boolean" -) - -const ( - // @enum DeliveryMediumType - DeliveryMediumTypeSms = "SMS" - // @enum DeliveryMediumType - DeliveryMediumTypeEmail = "EMAIL" -) - -const ( - // @enum StatusType - StatusTypeEnabled = "Enabled" - // @enum StatusType - StatusTypeDisabled = "Disabled" -) - -const ( - // @enum UserPoolMfaType - UserPoolMfaTypeOff = "OFF" - // @enum UserPoolMfaType - UserPoolMfaTypeOn = "ON" - // @enum UserPoolMfaType - UserPoolMfaTypeOptional = "OPTIONAL" -) - -const ( - // @enum UserStatusType - UserStatusTypeUnconfirmed = "UNCONFIRMED" - // @enum UserStatusType - UserStatusTypeConfirmed = "CONFIRMED" - // @enum UserStatusType - UserStatusTypeArchived = "ARCHIVED" - // @enum UserStatusType - UserStatusTypeCompromised = "COMPROMISED" - // @enum UserStatusType - UserStatusTypeUnknown = "UNKNOWN" -) - -const ( - // @enum VerifiedAttributeType - VerifiedAttributeTypePhoneNumber = "phone_number" - // @enum VerifiedAttributeType - VerifiedAttributeTypeEmail = "email" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go deleted file mode 100644 index 726453087..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go +++ /dev/null @@ -1,150 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package cognitoidentityprovideriface provides an interface for the Amazon Cognito Identity Provider. -package cognitoidentityprovideriface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" -) - -// CognitoIdentityProviderAPI is the interface type for cognitoidentityprovider.CognitoIdentityProvider. -type CognitoIdentityProviderAPI interface { - AddCustomAttributesRequest(*cognitoidentityprovider.AddCustomAttributesInput) (*request.Request, *cognitoidentityprovider.AddCustomAttributesOutput) - - AddCustomAttributes(*cognitoidentityprovider.AddCustomAttributesInput) (*cognitoidentityprovider.AddCustomAttributesOutput, error) - - AdminConfirmSignUpRequest(*cognitoidentityprovider.AdminConfirmSignUpInput) (*request.Request, *cognitoidentityprovider.AdminConfirmSignUpOutput) - - AdminConfirmSignUp(*cognitoidentityprovider.AdminConfirmSignUpInput) (*cognitoidentityprovider.AdminConfirmSignUpOutput, error) - - AdminDeleteUserRequest(*cognitoidentityprovider.AdminDeleteUserInput) (*request.Request, *cognitoidentityprovider.AdminDeleteUserOutput) - - AdminDeleteUser(*cognitoidentityprovider.AdminDeleteUserInput) (*cognitoidentityprovider.AdminDeleteUserOutput, error) - - AdminDeleteUserAttributesRequest(*cognitoidentityprovider.AdminDeleteUserAttributesInput) (*request.Request, *cognitoidentityprovider.AdminDeleteUserAttributesOutput) - - AdminDeleteUserAttributes(*cognitoidentityprovider.AdminDeleteUserAttributesInput) (*cognitoidentityprovider.AdminDeleteUserAttributesOutput, error) - - AdminDisableUserRequest(*cognitoidentityprovider.AdminDisableUserInput) (*request.Request, *cognitoidentityprovider.AdminDisableUserOutput) - - AdminDisableUser(*cognitoidentityprovider.AdminDisableUserInput) (*cognitoidentityprovider.AdminDisableUserOutput, error) - - AdminEnableUserRequest(*cognitoidentityprovider.AdminEnableUserInput) (*request.Request, *cognitoidentityprovider.AdminEnableUserOutput) - - AdminEnableUser(*cognitoidentityprovider.AdminEnableUserInput) (*cognitoidentityprovider.AdminEnableUserOutput, error) - - AdminGetUserRequest(*cognitoidentityprovider.AdminGetUserInput) (*request.Request, *cognitoidentityprovider.AdminGetUserOutput) - - AdminGetUser(*cognitoidentityprovider.AdminGetUserInput) (*cognitoidentityprovider.AdminGetUserOutput, error) - - AdminResetUserPasswordRequest(*cognitoidentityprovider.AdminResetUserPasswordInput) (*request.Request, *cognitoidentityprovider.AdminResetUserPasswordOutput) - - AdminResetUserPassword(*cognitoidentityprovider.AdminResetUserPasswordInput) (*cognitoidentityprovider.AdminResetUserPasswordOutput, error) - - AdminSetUserSettingsRequest(*cognitoidentityprovider.AdminSetUserSettingsInput) (*request.Request, *cognitoidentityprovider.AdminSetUserSettingsOutput) - - AdminSetUserSettings(*cognitoidentityprovider.AdminSetUserSettingsInput) (*cognitoidentityprovider.AdminSetUserSettingsOutput, error) - - AdminUpdateUserAttributesRequest(*cognitoidentityprovider.AdminUpdateUserAttributesInput) (*request.Request, *cognitoidentityprovider.AdminUpdateUserAttributesOutput) - - AdminUpdateUserAttributes(*cognitoidentityprovider.AdminUpdateUserAttributesInput) (*cognitoidentityprovider.AdminUpdateUserAttributesOutput, error) - - ChangePasswordRequest(*cognitoidentityprovider.ChangePasswordInput) (*request.Request, *cognitoidentityprovider.ChangePasswordOutput) - - ChangePassword(*cognitoidentityprovider.ChangePasswordInput) (*cognitoidentityprovider.ChangePasswordOutput, error) - - ConfirmForgotPasswordRequest(*cognitoidentityprovider.ConfirmForgotPasswordInput) (*request.Request, *cognitoidentityprovider.ConfirmForgotPasswordOutput) - - ConfirmForgotPassword(*cognitoidentityprovider.ConfirmForgotPasswordInput) (*cognitoidentityprovider.ConfirmForgotPasswordOutput, error) - - ConfirmSignUpRequest(*cognitoidentityprovider.ConfirmSignUpInput) (*request.Request, *cognitoidentityprovider.ConfirmSignUpOutput) - - ConfirmSignUp(*cognitoidentityprovider.ConfirmSignUpInput) (*cognitoidentityprovider.ConfirmSignUpOutput, error) - - CreateUserPoolRequest(*cognitoidentityprovider.CreateUserPoolInput) (*request.Request, *cognitoidentityprovider.CreateUserPoolOutput) - - CreateUserPool(*cognitoidentityprovider.CreateUserPoolInput) (*cognitoidentityprovider.CreateUserPoolOutput, error) - - CreateUserPoolClientRequest(*cognitoidentityprovider.CreateUserPoolClientInput) (*request.Request, *cognitoidentityprovider.CreateUserPoolClientOutput) - - CreateUserPoolClient(*cognitoidentityprovider.CreateUserPoolClientInput) (*cognitoidentityprovider.CreateUserPoolClientOutput, error) - - DeleteUserRequest(*cognitoidentityprovider.DeleteUserInput) (*request.Request, *cognitoidentityprovider.DeleteUserOutput) - - DeleteUser(*cognitoidentityprovider.DeleteUserInput) (*cognitoidentityprovider.DeleteUserOutput, error) - - DeleteUserAttributesRequest(*cognitoidentityprovider.DeleteUserAttributesInput) (*request.Request, *cognitoidentityprovider.DeleteUserAttributesOutput) - - DeleteUserAttributes(*cognitoidentityprovider.DeleteUserAttributesInput) (*cognitoidentityprovider.DeleteUserAttributesOutput, error) - - DeleteUserPoolRequest(*cognitoidentityprovider.DeleteUserPoolInput) (*request.Request, *cognitoidentityprovider.DeleteUserPoolOutput) - - DeleteUserPool(*cognitoidentityprovider.DeleteUserPoolInput) (*cognitoidentityprovider.DeleteUserPoolOutput, error) - - DeleteUserPoolClientRequest(*cognitoidentityprovider.DeleteUserPoolClientInput) (*request.Request, *cognitoidentityprovider.DeleteUserPoolClientOutput) - - DeleteUserPoolClient(*cognitoidentityprovider.DeleteUserPoolClientInput) (*cognitoidentityprovider.DeleteUserPoolClientOutput, error) - - DescribeUserPoolRequest(*cognitoidentityprovider.DescribeUserPoolInput) (*request.Request, *cognitoidentityprovider.DescribeUserPoolOutput) - - DescribeUserPool(*cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error) - - DescribeUserPoolClientRequest(*cognitoidentityprovider.DescribeUserPoolClientInput) (*request.Request, *cognitoidentityprovider.DescribeUserPoolClientOutput) - - DescribeUserPoolClient(*cognitoidentityprovider.DescribeUserPoolClientInput) (*cognitoidentityprovider.DescribeUserPoolClientOutput, error) - - ForgotPasswordRequest(*cognitoidentityprovider.ForgotPasswordInput) (*request.Request, *cognitoidentityprovider.ForgotPasswordOutput) - - ForgotPassword(*cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, error) - - GetUserRequest(*cognitoidentityprovider.GetUserInput) (*request.Request, *cognitoidentityprovider.GetUserOutput) - - GetUser(*cognitoidentityprovider.GetUserInput) (*cognitoidentityprovider.GetUserOutput, error) - - GetUserAttributeVerificationCodeRequest(*cognitoidentityprovider.GetUserAttributeVerificationCodeInput) (*request.Request, *cognitoidentityprovider.GetUserAttributeVerificationCodeOutput) - - GetUserAttributeVerificationCode(*cognitoidentityprovider.GetUserAttributeVerificationCodeInput) (*cognitoidentityprovider.GetUserAttributeVerificationCodeOutput, error) - - ListUserPoolClientsRequest(*cognitoidentityprovider.ListUserPoolClientsInput) (*request.Request, *cognitoidentityprovider.ListUserPoolClientsOutput) - - ListUserPoolClients(*cognitoidentityprovider.ListUserPoolClientsInput) (*cognitoidentityprovider.ListUserPoolClientsOutput, error) - - ListUserPoolsRequest(*cognitoidentityprovider.ListUserPoolsInput) (*request.Request, *cognitoidentityprovider.ListUserPoolsOutput) - - ListUserPools(*cognitoidentityprovider.ListUserPoolsInput) (*cognitoidentityprovider.ListUserPoolsOutput, error) - - ListUsersRequest(*cognitoidentityprovider.ListUsersInput) (*request.Request, *cognitoidentityprovider.ListUsersOutput) - - ListUsers(*cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error) - - ResendConfirmationCodeRequest(*cognitoidentityprovider.ResendConfirmationCodeInput) (*request.Request, *cognitoidentityprovider.ResendConfirmationCodeOutput) - - ResendConfirmationCode(*cognitoidentityprovider.ResendConfirmationCodeInput) (*cognitoidentityprovider.ResendConfirmationCodeOutput, error) - - SetUserSettingsRequest(*cognitoidentityprovider.SetUserSettingsInput) (*request.Request, *cognitoidentityprovider.SetUserSettingsOutput) - - SetUserSettings(*cognitoidentityprovider.SetUserSettingsInput) (*cognitoidentityprovider.SetUserSettingsOutput, error) - - SignUpRequest(*cognitoidentityprovider.SignUpInput) (*request.Request, *cognitoidentityprovider.SignUpOutput) - - SignUp(*cognitoidentityprovider.SignUpInput) (*cognitoidentityprovider.SignUpOutput, error) - - UpdateUserAttributesRequest(*cognitoidentityprovider.UpdateUserAttributesInput) (*request.Request, *cognitoidentityprovider.UpdateUserAttributesOutput) - - UpdateUserAttributes(*cognitoidentityprovider.UpdateUserAttributesInput) (*cognitoidentityprovider.UpdateUserAttributesOutput, error) - - UpdateUserPoolRequest(*cognitoidentityprovider.UpdateUserPoolInput) (*request.Request, *cognitoidentityprovider.UpdateUserPoolOutput) - - UpdateUserPool(*cognitoidentityprovider.UpdateUserPoolInput) (*cognitoidentityprovider.UpdateUserPoolOutput, error) - - UpdateUserPoolClientRequest(*cognitoidentityprovider.UpdateUserPoolClientInput) (*request.Request, *cognitoidentityprovider.UpdateUserPoolClientOutput) - - UpdateUserPoolClient(*cognitoidentityprovider.UpdateUserPoolClientInput) (*cognitoidentityprovider.UpdateUserPoolClientOutput, error) - - VerifyUserAttributeRequest(*cognitoidentityprovider.VerifyUserAttributeInput) (*request.Request, *cognitoidentityprovider.VerifyUserAttributeOutput) - - VerifyUserAttribute(*cognitoidentityprovider.VerifyUserAttributeInput) (*cognitoidentityprovider.VerifyUserAttributeOutput, error) -} - -var _ CognitoIdentityProviderAPI = (*cognitoidentityprovider.CognitoIdentityProvider)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go deleted file mode 100644 index def7ec0da..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/examples_test.go +++ /dev/null @@ -1,829 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package cognitoidentityprovider_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleCognitoIdentityProvider_AddCustomAttributes() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.AddCustomAttributesInput{ - CustomAttributes: []*cognitoidentityprovider.SchemaAttributeType{ // Required - { // Required - AttributeDataType: aws.String("AttributeDataType"), - DeveloperOnlyAttribute: aws.Bool(true), - Mutable: aws.Bool(true), - Name: aws.String("CustomAttributeNameType"), - NumberAttributeConstraints: &cognitoidentityprovider.NumberAttributeConstraintsType{ - MaxValue: aws.String("StringType"), - MinValue: aws.String("StringType"), - }, - Required: aws.Bool(true), - StringAttributeConstraints: &cognitoidentityprovider.StringAttributeConstraintsType{ - MaxLength: aws.String("StringType"), - MinLength: aws.String("StringType"), - }, - }, - // More values... - }, - UserPoolId: aws.String("UserPoolIdType"), // Required - } - resp, err := svc.AddCustomAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_AdminConfirmSignUp() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.AdminConfirmSignUpInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - Username: aws.String("UsernameType"), // Required - } - resp, err := svc.AdminConfirmSignUp(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_AdminDeleteUser() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.AdminDeleteUserInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - Username: aws.String("UsernameType"), // Required - } - resp, err := svc.AdminDeleteUser(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_AdminDeleteUserAttributes() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.AdminDeleteUserAttributesInput{ - UserAttributeNames: []*string{ // Required - aws.String("AttributeNameType"), // Required - // More values... - }, - UserPoolId: aws.String("UserPoolIdType"), // Required - Username: aws.String("UsernameType"), // Required - } - resp, err := svc.AdminDeleteUserAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_AdminDisableUser() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.AdminDisableUserInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - Username: aws.String("UsernameType"), // Required - } - resp, err := svc.AdminDisableUser(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_AdminEnableUser() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.AdminEnableUserInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - Username: aws.String("UsernameType"), // Required - } - resp, err := svc.AdminEnableUser(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_AdminGetUser() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.AdminGetUserInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - Username: aws.String("UsernameType"), // Required - } - resp, err := svc.AdminGetUser(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_AdminResetUserPassword() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.AdminResetUserPasswordInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - Username: aws.String("UsernameType"), // Required - } - resp, err := svc.AdminResetUserPassword(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_AdminSetUserSettings() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.AdminSetUserSettingsInput{ - MFAOptions: []*cognitoidentityprovider.MFAOptionType{ // Required - { // Required - AttributeName: aws.String("AttributeNameType"), - DeliveryMedium: aws.String("DeliveryMediumType"), - }, - // More values... - }, - UserPoolId: aws.String("UserPoolIdType"), // Required - Username: aws.String("UsernameType"), // Required - } - resp, err := svc.AdminSetUserSettings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_AdminUpdateUserAttributes() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.AdminUpdateUserAttributesInput{ - UserAttributes: []*cognitoidentityprovider.AttributeType{ // Required - { // Required - Name: aws.String("AttributeNameType"), // Required - Value: aws.String("AttributeValueType"), - }, - // More values... - }, - UserPoolId: aws.String("UserPoolIdType"), // Required - Username: aws.String("UsernameType"), // Required - } - resp, err := svc.AdminUpdateUserAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_ChangePassword() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.ChangePasswordInput{ - PreviousPassword: aws.String("PasswordType"), // Required - ProposedPassword: aws.String("PasswordType"), // Required - AccessToken: aws.String("TokenModelType"), - } - resp, err := svc.ChangePassword(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_ConfirmForgotPassword() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.ConfirmForgotPasswordInput{ - ClientId: aws.String("ClientIdType"), // Required - ConfirmationCode: aws.String("ConfirmationCodeType"), // Required - Password: aws.String("PasswordType"), // Required - Username: aws.String("UsernameType"), // Required - SecretHash: aws.String("SecretHashType"), - } - resp, err := svc.ConfirmForgotPassword(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_ConfirmSignUp() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.ConfirmSignUpInput{ - ClientId: aws.String("ClientIdType"), // Required - ConfirmationCode: aws.String("ConfirmationCodeType"), // Required - Username: aws.String("UsernameType"), // Required - ForceAliasCreation: aws.Bool(true), - SecretHash: aws.String("SecretHashType"), - } - resp, err := svc.ConfirmSignUp(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_CreateUserPool() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.CreateUserPoolInput{ - PoolName: aws.String("UserPoolNameType"), // Required - AliasAttributes: []*string{ - aws.String("AliasAttributeType"), // Required - // More values... - }, - AutoVerifiedAttributes: []*string{ - aws.String("VerifiedAttributeType"), // Required - // More values... - }, - EmailVerificationMessage: aws.String("EmailVerificationMessageType"), - EmailVerificationSubject: aws.String("EmailVerificationSubjectType"), - LambdaConfig: &cognitoidentityprovider.LambdaConfigType{ - CustomMessage: aws.String("ArnType"), - PostAuthentication: aws.String("ArnType"), - PostConfirmation: aws.String("ArnType"), - PreAuthentication: aws.String("ArnType"), - PreSignUp: aws.String("ArnType"), - }, - MfaConfiguration: aws.String("UserPoolMfaType"), - Policies: &cognitoidentityprovider.UserPoolPolicyType{ - PasswordPolicy: &cognitoidentityprovider.PasswordPolicyType{ - MinimumLength: aws.Int64(1), - RequireLowercase: aws.Bool(true), - RequireNumbers: aws.Bool(true), - RequireSymbols: aws.Bool(true), - RequireUppercase: aws.Bool(true), - }, - }, - SmsAuthenticationMessage: aws.String("SmsVerificationMessageType"), - SmsVerificationMessage: aws.String("SmsVerificationMessageType"), - } - resp, err := svc.CreateUserPool(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_CreateUserPoolClient() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.CreateUserPoolClientInput{ - ClientName: aws.String("ClientNameType"), // Required - UserPoolId: aws.String("UserPoolIdType"), // Required - GenerateSecret: aws.Bool(true), - } - resp, err := svc.CreateUserPoolClient(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_DeleteUser() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.DeleteUserInput{ - AccessToken: aws.String("TokenModelType"), - } - resp, err := svc.DeleteUser(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_DeleteUserAttributes() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.DeleteUserAttributesInput{ - UserAttributeNames: []*string{ // Required - aws.String("AttributeNameType"), // Required - // More values... - }, - AccessToken: aws.String("TokenModelType"), - } - resp, err := svc.DeleteUserAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_DeleteUserPool() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.DeleteUserPoolInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - } - resp, err := svc.DeleteUserPool(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_DeleteUserPoolClient() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.DeleteUserPoolClientInput{ - ClientId: aws.String("ClientIdType"), // Required - UserPoolId: aws.String("UserPoolIdType"), // Required - } - resp, err := svc.DeleteUserPoolClient(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_DescribeUserPool() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.DescribeUserPoolInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - } - resp, err := svc.DescribeUserPool(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_DescribeUserPoolClient() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.DescribeUserPoolClientInput{ - ClientId: aws.String("ClientIdType"), // Required - UserPoolId: aws.String("UserPoolIdType"), // Required - } - resp, err := svc.DescribeUserPoolClient(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_ForgotPassword() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.ForgotPasswordInput{ - ClientId: aws.String("ClientIdType"), // Required - Username: aws.String("UsernameType"), // Required - SecretHash: aws.String("SecretHashType"), - } - resp, err := svc.ForgotPassword(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_GetUser() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.GetUserInput{ - AccessToken: aws.String("TokenModelType"), - } - resp, err := svc.GetUser(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_GetUserAttributeVerificationCode() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.GetUserAttributeVerificationCodeInput{ - AttributeName: aws.String("AttributeNameType"), // Required - AccessToken: aws.String("TokenModelType"), - } - resp, err := svc.GetUserAttributeVerificationCode(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_ListUserPoolClients() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.ListUserPoolClientsInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - MaxResults: aws.Int64(1), - NextToken: aws.String("PaginationKey"), - } - resp, err := svc.ListUserPoolClients(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_ListUserPools() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.ListUserPoolsInput{ - MaxResults: aws.Int64(1), // Required - NextToken: aws.String("PaginationKeyType"), - } - resp, err := svc.ListUserPools(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_ListUsers() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.ListUsersInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - AttributesToGet: []*string{ - aws.String("AttributeNameType"), // Required - // More values... - }, - Limit: aws.Int64(1), - PaginationToken: aws.String("SearchPaginationTokenType"), - UserStatus: aws.String("UserStatusType"), - } - resp, err := svc.ListUsers(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_ResendConfirmationCode() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.ResendConfirmationCodeInput{ - ClientId: aws.String("ClientIdType"), // Required - Username: aws.String("UsernameType"), // Required - SecretHash: aws.String("SecretHashType"), - } - resp, err := svc.ResendConfirmationCode(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_SetUserSettings() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.SetUserSettingsInput{ - AccessToken: aws.String("TokenModelType"), // Required - MFAOptions: []*cognitoidentityprovider.MFAOptionType{ // Required - { // Required - AttributeName: aws.String("AttributeNameType"), - DeliveryMedium: aws.String("DeliveryMediumType"), - }, - // More values... - }, - } - resp, err := svc.SetUserSettings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_SignUp() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.SignUpInput{ - ClientId: aws.String("ClientIdType"), // Required - Password: aws.String("PasswordType"), // Required - Username: aws.String("UsernameType"), // Required - SecretHash: aws.String("SecretHashType"), - UserAttributes: []*cognitoidentityprovider.AttributeType{ - { // Required - Name: aws.String("AttributeNameType"), // Required - Value: aws.String("AttributeValueType"), - }, - // More values... - }, - ValidationData: []*cognitoidentityprovider.AttributeType{ - { // Required - Name: aws.String("AttributeNameType"), // Required - Value: aws.String("AttributeValueType"), - }, - // More values... - }, - } - resp, err := svc.SignUp(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_UpdateUserAttributes() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.UpdateUserAttributesInput{ - UserAttributes: []*cognitoidentityprovider.AttributeType{ // Required - { // Required - Name: aws.String("AttributeNameType"), // Required - Value: aws.String("AttributeValueType"), - }, - // More values... - }, - AccessToken: aws.String("TokenModelType"), - } - resp, err := svc.UpdateUserAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_UpdateUserPool() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.UpdateUserPoolInput{ - UserPoolId: aws.String("UserPoolIdType"), // Required - AutoVerifiedAttributes: []*string{ - aws.String("VerifiedAttributeType"), // Required - // More values... - }, - EmailVerificationMessage: aws.String("EmailVerificationMessageType"), - EmailVerificationSubject: aws.String("EmailVerificationSubjectType"), - LambdaConfig: &cognitoidentityprovider.LambdaConfigType{ - CustomMessage: aws.String("ArnType"), - PostAuthentication: aws.String("ArnType"), - PostConfirmation: aws.String("ArnType"), - PreAuthentication: aws.String("ArnType"), - PreSignUp: aws.String("ArnType"), - }, - MfaConfiguration: aws.String("UserPoolMfaType"), - Policies: &cognitoidentityprovider.UserPoolPolicyType{ - PasswordPolicy: &cognitoidentityprovider.PasswordPolicyType{ - MinimumLength: aws.Int64(1), - RequireLowercase: aws.Bool(true), - RequireNumbers: aws.Bool(true), - RequireSymbols: aws.Bool(true), - RequireUppercase: aws.Bool(true), - }, - }, - SmsAuthenticationMessage: aws.String("SmsVerificationMessageType"), - SmsVerificationMessage: aws.String("SmsVerificationMessageType"), - } - resp, err := svc.UpdateUserPool(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_UpdateUserPoolClient() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.UpdateUserPoolClientInput{ - ClientId: aws.String("ClientIdType"), // Required - UserPoolId: aws.String("UserPoolIdType"), // Required - ClientName: aws.String("ClientNameType"), - } - resp, err := svc.UpdateUserPoolClient(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleCognitoIdentityProvider_VerifyUserAttribute() { - svc := cognitoidentityprovider.New(session.New()) - - params := &cognitoidentityprovider.VerifyUserAttributeInput{ - AttributeName: aws.String("AttributeNameType"), // Required - Code: aws.String("ConfirmationCodeType"), // Required - AccessToken: aws.String("TokenModelType"), - } - resp, err := svc.VerifyUserAttribute(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/service.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/service.go deleted file mode 100644 index ef080c032..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/service.go +++ /dev/null @@ -1,93 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package cognitoidentityprovider - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// You can create a user pool in Amazon Cognito Identity to manage directories -// and users. You can authenticate a user to obtain tokens related to user identity -// and access policies. -// -// This API reference provides information about user pools in Amazon Cognito -// Identity, which is a new capability that is available as a beta. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type CognitoIdentityProvider struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cognito-idp" - -// New creates a new instance of the CognitoIdentityProvider client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CognitoIdentityProvider client from just a session. -// svc := cognitoidentityprovider.New(mySession) -// -// // Create a CognitoIdentityProvider client with additional configuration -// svc := cognitoidentityprovider.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CognitoIdentityProvider { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CognitoIdentityProvider { - svc := &CognitoIdentityProvider{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2016-04-18", - JSONVersion: "1.1", - TargetPrefix: "AWSCognitoIdentityProviderService", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a CognitoIdentityProvider operation and runs any -// custom request initialization. -func (c *CognitoIdentityProvider) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/api.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/api.go index 2dbb3c1ff..42aedaf61 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/api.go @@ -4,13 +4,10 @@ package cognitosync import ( - "fmt" "time" "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/private/protocol/restjson" ) const opBulkPublish = "BulkPublish" @@ -408,8 +405,6 @@ func (c *CognitoSync) SetCognitoEventsRequest(input *SetCognitoEventsInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetCognitoEventsOutput{} req.Data = output return @@ -564,11 +559,15 @@ func (c *CognitoSync) UpdateRecords(input *UpdateRecordsInput) (*UpdateRecordsOu // The input for the BulkPublish operation. type BulkPublishInput struct { - _ struct{} `type:"structure"` - // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataBulkPublishInput `json:"-" xml:"-"` +} + +type metadataBulkPublishInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -581,29 +580,17 @@ func (s BulkPublishInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BulkPublishInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BulkPublishInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the BulkPublish operation. type BulkPublishOutput struct { - _ struct{} `type:"structure"` - // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `min:"1" type:"string"` + IdentityPoolId *string `type:"string"` + + metadataBulkPublishOutput `json:"-" xml:"-"` +} + +type metadataBulkPublishOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -618,16 +605,14 @@ func (s BulkPublishOutput) GoString() string { // Configuration options for configure Cognito streams. type CognitoStreams struct { - _ struct{} `type:"structure"` - // The ARN of the role Amazon Cognito can assume in order to publish to the // stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke // PutRecord on your Cognito stream. - RoleArn *string `min:"20" type:"string"` + RoleArn *string `type:"string"` // The name of the Cognito stream to receive updates. This stream must be in // the developers account and in the same region as the identity pool. - StreamName *string `min:"1" type:"string"` + StreamName *string `type:"string"` // Status of the Cognito streams. Valid values are: ENABLED - Streaming of updates // to identity pool is enabled. @@ -635,6 +620,12 @@ type CognitoStreams struct { // DISABLED - Streaming of updates to identity pool is disabled. Bulk publish // will also fail if StreamingStatus is DISABLED. StreamingStatus *string `type:"string" enum:"StreamingStatus"` + + metadataCognitoStreams `json:"-" xml:"-"` +} + +type metadataCognitoStreams struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -647,30 +638,12 @@ func (s CognitoStreams) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CognitoStreams) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CognitoStreams"} - if s.RoleArn != nil && len(*s.RoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // 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 // created if they don't exist. Data is synced by dataset, and a dataset can // hold up to 1MB of key-value pairs. type Dataset struct { - _ struct{} `type:"structure"` - // Date on which the dataset was created. CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -679,11 +652,11 @@ type Dataset struct { // A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' // (underscore), '-' (dash), and '.' (dot). - DatasetName *string `min:"1" type:"string"` + DatasetName *string `type:"string"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` // The device that made the last change to this dataset. LastModifiedBy *string `type:"string"` @@ -693,6 +666,12 @@ type Dataset struct { // Number of records in this dataset. NumRecords *int64 `type:"long"` + + metadataDataset `json:"-" xml:"-"` +} + +type metadataDataset struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -707,19 +686,23 @@ func (s Dataset) GoString() string { // A request to delete the specific dataset. type DeleteDatasetInput struct { - _ struct{} `type:"structure"` - // A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' // (underscore), '-' (dash), and '.' (dot). - DatasetName *string `location:"uri" locationName:"DatasetName" min:"1" type:"string" required:"true"` + DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityId *string `location:"uri" locationName:"IdentityId" min:"1" type:"string" required:"true"` + IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataDeleteDatasetInput `json:"-" xml:"-"` +} + +type metadataDeleteDatasetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -732,44 +715,20 @@ func (s DeleteDatasetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDatasetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDatasetInput"} - if s.DatasetName == nil { - invalidParams.Add(request.NewErrParamRequired("DatasetName")) - } - if s.DatasetName != nil && len(*s.DatasetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) - } - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response to a successful DeleteDataset request. type DeleteDatasetOutput struct { - _ struct{} `type:"structure"` - // 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 // created if they don't exist. Data is synced by dataset, and a dataset can // hold up to 1MB of key-value pairs. Dataset *Dataset `type:"structure"` + + metadataDeleteDatasetOutput `json:"-" xml:"-"` +} + +type metadataDeleteDatasetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -785,19 +744,23 @@ func (s DeleteDatasetOutput) GoString() string { // A request for meta data about a dataset (creation date, number of records, // size) by owner and dataset name. type DescribeDatasetInput struct { - _ struct{} `type:"structure"` - // A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' // (underscore), '-' (dash), and '.' (dot). - DatasetName *string `location:"uri" locationName:"DatasetName" min:"1" type:"string" required:"true"` + DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityId *string `location:"uri" locationName:"IdentityId" min:"1" type:"string" required:"true"` + IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataDescribeDatasetInput `json:"-" xml:"-"` +} + +type metadataDescribeDatasetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -810,44 +773,20 @@ func (s DescribeDatasetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDatasetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDatasetInput"} - if s.DatasetName == nil { - invalidParams.Add(request.NewErrParamRequired("DatasetName")) - } - if s.DatasetName != nil && len(*s.DatasetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) - } - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response to a successful DescribeDataset request. type DescribeDatasetOutput struct { - _ struct{} `type:"structure"` - // Meta data for a collection of data for an identity. An identity can have // multiple datasets. A dataset can be general or associated with a particular // entity in an application (like a saved game). Datasets are automatically // created if they don't exist. Data is synced by dataset, and a dataset can // hold up to 1MB of key-value pairs. Dataset *Dataset `type:"structure"` + + metadataDescribeDatasetOutput `json:"-" xml:"-"` +} + +type metadataDescribeDatasetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -862,11 +801,15 @@ func (s DescribeDatasetOutput) GoString() string { // A request for usage information about the identity pool. type DescribeIdentityPoolUsageInput struct { - _ struct{} `type:"structure"` - // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataDescribeIdentityPoolUsageInput `json:"-" xml:"-"` +} + +type metadataDescribeIdentityPoolUsageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -879,28 +822,16 @@ func (s DescribeIdentityPoolUsageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeIdentityPoolUsageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityPoolUsageInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response to a successful DescribeIdentityPoolUsage request. type DescribeIdentityPoolUsageOutput struct { - _ struct{} `type:"structure"` - // Information about the usage of the identity pool. IdentityPoolUsage *IdentityPoolUsage `type:"structure"` + + metadataDescribeIdentityPoolUsageOutput `json:"-" xml:"-"` +} + +type metadataDescribeIdentityPoolUsageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -915,15 +846,19 @@ func (s DescribeIdentityPoolUsageOutput) GoString() string { // A request for information about the usage of an identity pool. type DescribeIdentityUsageInput struct { - _ struct{} `type:"structure"` - // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityId *string `location:"uri" locationName:"IdentityId" min:"1" type:"string" required:"true"` + IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataDescribeIdentityUsageInput `json:"-" xml:"-"` +} + +type metadataDescribeIdentityUsageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -936,34 +871,16 @@ func (s DescribeIdentityUsageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeIdentityUsageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityUsageInput"} - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The response to a successful DescribeIdentityUsage request. type DescribeIdentityUsageOutput struct { - _ struct{} `type:"structure"` - // Usage information for the identity. IdentityUsage *IdentityUsage `type:"structure"` + + metadataDescribeIdentityUsageOutput `json:"-" xml:"-"` +} + +type metadataDescribeIdentityUsageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -978,11 +895,15 @@ func (s DescribeIdentityUsageOutput) GoString() string { // The input for the GetBulkPublishDetails operation. type GetBulkPublishDetailsInput struct { - _ struct{} `type:"structure"` - // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataGetBulkPublishDetailsInput `json:"-" xml:"-"` +} + +type metadataGetBulkPublishDetailsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -995,26 +916,8 @@ func (s GetBulkPublishDetailsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBulkPublishDetailsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBulkPublishDetailsInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the GetBulkPublishDetails operation. type GetBulkPublishDetailsOutput struct { - _ struct{} `type:"structure"` - // If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation // completed. BulkPublishCompleteTime *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -1040,7 +943,13 @@ type GetBulkPublishDetailsOutput struct { // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `min:"1" type:"string"` + IdentityPoolId *string `type:"string"` + + metadataGetBulkPublishDetailsOutput `json:"-" xml:"-"` +} + +type metadataGetBulkPublishDetailsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1055,10 +964,14 @@ func (s GetBulkPublishDetailsOutput) GoString() string { // A request for a list of the configured Cognito Events type GetCognitoEventsInput struct { - _ struct{} `type:"structure"` - // The Cognito Identity Pool ID for the request - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataGetCognitoEventsInput `json:"-" xml:"-"` +} + +type metadataGetCognitoEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1071,28 +984,16 @@ func (s GetCognitoEventsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetCognitoEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCognitoEventsInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The response from the GetCognitoEvents request type GetCognitoEventsOutput struct { - _ struct{} `type:"structure"` - // The Cognito Events returned from the GetCognitoEvents request Events map[string]*string `type:"map"` + + metadataGetCognitoEventsOutput `json:"-" xml:"-"` +} + +type metadataGetCognitoEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1107,12 +1008,16 @@ func (s GetCognitoEventsOutput) GoString() string { // The input for the GetIdentityPoolConfiguration operation. type GetIdentityPoolConfigurationInput struct { - _ struct{} `type:"structure"` - // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. This is the ID of the pool for which to return // a configuration. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataGetIdentityPoolConfigurationInput `json:"-" xml:"-"` +} + +type metadataGetIdentityPoolConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1125,35 +1030,23 @@ func (s GetIdentityPoolConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIdentityPoolConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIdentityPoolConfigurationInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the GetIdentityPoolConfiguration operation. type GetIdentityPoolConfigurationOutput struct { - _ struct{} `type:"structure"` - // Options to apply to this identity pool for Amazon Cognito streams. CognitoStreams *CognitoStreams `type:"structure"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. - IdentityPoolId *string `min:"1" type:"string"` + IdentityPoolId *string `type:"string"` // Options to apply to this identity pool for push synchronization. PushSync *PushSync `type:"structure"` + + metadataGetIdentityPoolConfigurationOutput `json:"-" xml:"-"` +} + +type metadataGetIdentityPoolConfigurationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1168,20 +1061,24 @@ func (s GetIdentityPoolConfigurationOutput) GoString() string { // Usage information for the identity pool. type IdentityPoolUsage struct { - _ struct{} `type:"structure"` - // Data storage information for the identity pool. DataStorage *int64 `type:"long"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `min:"1" type:"string"` + IdentityPoolId *string `type:"string"` // Date on which the identity pool was last modified. LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` // Number of sync sessions for the identity pool. SyncSessionsCount *int64 `type:"long"` + + metadataIdentityPoolUsage `json:"-" xml:"-"` +} + +type metadataIdentityPoolUsage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1196,8 +1093,6 @@ func (s IdentityPoolUsage) GoString() string { // Usage information for the identity. type IdentityUsage struct { - _ struct{} `type:"structure"` - // Total data storage for this identity. DataStorage *int64 `type:"long"` @@ -1206,14 +1101,20 @@ type IdentityUsage struct { // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityId *string `min:"1" type:"string"` + IdentityId *string `type:"string"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `min:"1" type:"string"` + IdentityPoolId *string `type:"string"` // Date on which the identity was last modified. LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` + + metadataIdentityUsage `json:"-" xml:"-"` +} + +type metadataIdentityUsage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1228,21 +1129,25 @@ func (s IdentityUsage) GoString() string { // Request for a list of datasets for an identity. type ListDatasetsInput struct { - _ struct{} `type:"structure"` - // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityId *string `location:"uri" locationName:"IdentityId" min:"1" type:"string" required:"true"` + IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` // The maximum number of results to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // A pagination token for obtaining the next page of results. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + metadataListDatasetsInput `json:"-" xml:"-"` +} + +type metadataListDatasetsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1255,32 +1160,8 @@ func (s ListDatasetsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDatasetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDatasetsInput"} - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned for a successful ListDatasets request. type ListDatasetsOutput struct { - _ struct{} `type:"structure"` - // Number of datasets returned. Count *int64 `type:"integer"` @@ -1289,6 +1170,12 @@ type ListDatasetsOutput struct { // A pagination token for obtaining the next page of results. NextToken *string `type:"string"` + + metadataListDatasetsOutput `json:"-" xml:"-"` +} + +type metadataListDatasetsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1303,13 +1190,17 @@ func (s ListDatasetsOutput) GoString() string { // A request for usage information on an identity pool. type ListIdentityPoolUsageInput struct { - _ struct{} `type:"structure"` - // The maximum number of results to be returned. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // A pagination token for obtaining the next page of results. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + metadataListIdentityPoolUsageInput `json:"-" xml:"-"` +} + +type metadataListIdentityPoolUsageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1324,8 +1215,6 @@ func (s ListIdentityPoolUsageInput) GoString() string { // Returned for a successful ListIdentityPoolUsage request. type ListIdentityPoolUsageOutput struct { - _ struct{} `type:"structure"` - // Total number of identities for the identity pool. Count *int64 `type:"integer"` @@ -1337,6 +1226,12 @@ type ListIdentityPoolUsageOutput struct { // A pagination token for obtaining the next page of results. NextToken *string `type:"string"` + + metadataListIdentityPoolUsageOutput `json:"-" xml:"-"` +} + +type metadataListIdentityPoolUsageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1351,19 +1246,17 @@ func (s ListIdentityPoolUsageOutput) GoString() string { // A request for a list of records. type ListRecordsInput struct { - _ struct{} `type:"structure"` - // A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' // (underscore), '-' (dash), and '.' (dot). - DatasetName *string `location:"uri" locationName:"DatasetName" min:"1" type:"string" required:"true"` + DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityId *string `location:"uri" locationName:"IdentityId" min:"1" type:"string" required:"true"` + IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` // The last server sync count for this record. LastSyncCount *int64 `location:"querystring" locationName:"lastSyncCount" type:"long"` @@ -1376,6 +1269,12 @@ type ListRecordsInput struct { // A token containing a session ID, identity ID, and expiration. SyncSessionToken *string `location:"querystring" locationName:"syncSessionToken" type:"string"` + + metadataListRecordsInput `json:"-" xml:"-"` +} + +type metadataListRecordsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1388,38 +1287,8 @@ func (s ListRecordsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRecordsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRecordsInput"} - if s.DatasetName == nil { - invalidParams.Add(request.NewErrParamRequired("DatasetName")) - } - if s.DatasetName != nil && len(*s.DatasetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) - } - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned for a successful ListRecordsRequest. type ListRecordsOutput struct { - _ struct{} `type:"structure"` - // Total number of records. Count *int64 `type:"integer"` @@ -1446,6 +1315,12 @@ type ListRecordsOutput struct { // A token containing a session ID, identity ID, and expiration. SyncSessionToken *string `type:"string"` + + metadataListRecordsOutput `json:"-" xml:"-"` +} + +type metadataListRecordsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1460,13 +1335,17 @@ func (s ListRecordsOutput) GoString() string { // Configuration options to be applied to the identity pool. type PushSync struct { - _ struct{} `type:"structure"` - // List of SNS platform application ARNs that could be used by clients. ApplicationArns []*string `type:"list"` // A role configured to allow Cognito to call SNS on behalf of the developer. - RoleArn *string `min:"20" type:"string"` + RoleArn *string `type:"string"` + + metadataPushSync `json:"-" xml:"-"` +} + +type metadataPushSync struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1479,28 +1358,13 @@ func (s PushSync) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PushSync) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PushSync"} - if s.RoleArn != nil && len(*s.RoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The basic data structure of a dataset. type Record struct { - _ struct{} `type:"structure"` - // The last modified date of the client device. DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` // The key for the record. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // The user/device that made the last change to this record. LastModifiedBy *string `type:"string"` @@ -1513,6 +1377,12 @@ type Record struct { // The value for the record. Value *string `type:"string"` + + metadataRecord `json:"-" xml:"-"` +} + +type metadataRecord struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1527,13 +1397,11 @@ func (s Record) GoString() string { // An update operation for a record. type RecordPatch struct { - _ struct{} `type:"structure"` - // The last modified date of the client device. DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"` // The key associated with the record patch. - Key *string `min:"1" type:"string" required:"true"` + Key *string `type:"string" required:"true"` // An operation, either replace or remove. Op *string `type:"string" required:"true" enum:"Operation"` @@ -1543,6 +1411,12 @@ type RecordPatch struct { // The value associated with the record patch. Value *string `type:"string"` + + metadataRecordPatch `json:"-" xml:"-"` +} + +type metadataRecordPatch struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1555,45 +1429,27 @@ func (s RecordPatch) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RecordPatch) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RecordPatch"} - 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.Op == nil { - invalidParams.Add(request.NewErrParamRequired("Op")) - } - if s.SyncCount == nil { - invalidParams.Add(request.NewErrParamRequired("SyncCount")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A request to RegisterDevice. type RegisterDeviceInput struct { - _ struct{} `type:"structure"` - // The unique ID for this identity. - IdentityId *string `location:"uri" locationName:"IdentityId" min:"1" type:"string" required:"true"` + IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. Here, the ID of the pool that the identity belongs // to. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` // The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX). Platform *string `type:"string" required:"true" enum:"Platform"` // The push token. Token *string `type:"string" required:"true"` + + metadataRegisterDeviceInput `json:"-" xml:"-"` +} + +type metadataRegisterDeviceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1606,40 +1462,16 @@ func (s RegisterDeviceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterDeviceInput"} - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - if s.Platform == nil { - invalidParams.Add(request.NewErrParamRequired("Platform")) - } - if s.Token == nil { - invalidParams.Add(request.NewErrParamRequired("Token")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response to a RegisterDevice request. type RegisterDeviceOutput struct { - _ struct{} `type:"structure"` - // The unique ID generated for this device by Cognito. - DeviceId *string `min:"1" type:"string"` + DeviceId *string `type:"string"` + + metadataRegisterDeviceOutput `json:"-" xml:"-"` +} + +type metadataRegisterDeviceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1656,13 +1488,17 @@ func (s RegisterDeviceOutput) GoString() string { // // " type SetCognitoEventsInput struct { - _ struct{} `type:"structure"` - // The events to configure Events map[string]*string `type:"map" required:"true"` // The Cognito Identity Pool to use when configuring Cognito Events - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataSetCognitoEventsInput `json:"-" xml:"-"` +} + +type metadataSetCognitoEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1675,27 +1511,12 @@ func (s SetCognitoEventsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetCognitoEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetCognitoEventsInput"} - if s.Events == nil { - invalidParams.Add(request.NewErrParamRequired("Events")) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetCognitoEventsOutput struct { + metadataSetCognitoEventsOutput `json:"-" xml:"-"` } -type SetCognitoEventsOutput struct { - _ struct{} `type:"structure"` +type metadataSetCognitoEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1710,17 +1531,21 @@ func (s SetCognitoEventsOutput) GoString() string { // The input for the SetIdentityPoolConfiguration operation. type SetIdentityPoolConfigurationInput struct { - _ struct{} `type:"structure"` - // Options to apply to this identity pool for Amazon Cognito streams. CognitoStreams *CognitoStreams `type:"structure"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. This is the ID of the pool to modify. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` // Options to apply to this identity pool for push synchronization. PushSync *PushSync `type:"structure"` + + metadataSetIdentityPoolConfigurationInput `json:"-" xml:"-"` +} + +type metadataSetIdentityPoolConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1733,45 +1558,23 @@ func (s SetIdentityPoolConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetIdentityPoolConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetIdentityPoolConfigurationInput"} - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - if s.CognitoStreams != nil { - if err := s.CognitoStreams.Validate(); err != nil { - invalidParams.AddNested("CognitoStreams", err.(request.ErrInvalidParams)) - } - } - if s.PushSync != nil { - if err := s.PushSync.Validate(); err != nil { - invalidParams.AddNested("PushSync", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the SetIdentityPoolConfiguration operation type SetIdentityPoolConfigurationOutput struct { - _ struct{} `type:"structure"` - // Options to apply to this identity pool for Amazon Cognito streams. CognitoStreams *CognitoStreams `type:"structure"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. - IdentityPoolId *string `min:"1" type:"string"` + IdentityPoolId *string `type:"string"` // Options to apply to this identity pool for push synchronization. PushSync *PushSync `type:"structure"` + + metadataSetIdentityPoolConfigurationOutput `json:"-" xml:"-"` +} + +type metadataSetIdentityPoolConfigurationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1786,20 +1589,24 @@ func (s SetIdentityPoolConfigurationOutput) GoString() string { // A request to SubscribeToDatasetRequest. type SubscribeToDatasetInput struct { - _ struct{} `type:"structure"` - // The name of the dataset to subcribe to. - DatasetName *string `location:"uri" locationName:"DatasetName" min:"1" type:"string" required:"true"` + DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"` // The unique ID generated for this device by Cognito. - DeviceId *string `location:"uri" locationName:"DeviceId" min:"1" type:"string" required:"true"` + DeviceId *string `location:"uri" locationName:"DeviceId" type:"string" required:"true"` // Unique ID for this identity. - IdentityId *string `location:"uri" locationName:"IdentityId" min:"1" type:"string" required:"true"` + IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. The ID of the pool to which the identity belongs. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataSubscribeToDatasetInput `json:"-" xml:"-"` +} + +type metadataSubscribeToDatasetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1812,43 +1619,13 @@ func (s SubscribeToDatasetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SubscribeToDatasetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SubscribeToDatasetInput"} - if s.DatasetName == nil { - invalidParams.Add(request.NewErrParamRequired("DatasetName")) - } - if s.DatasetName != nil && len(*s.DatasetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) - } - if s.DeviceId == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceId")) - } - if s.DeviceId != nil && len(*s.DeviceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) - } - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response to a SubscribeToDataset request. type SubscribeToDatasetOutput struct { - _ struct{} `type:"structure"` + metadataSubscribeToDatasetOutput `json:"-" xml:"-"` +} + +type metadataSubscribeToDatasetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1863,20 +1640,24 @@ func (s SubscribeToDatasetOutput) GoString() string { // A request to UnsubscribeFromDataset. type UnsubscribeFromDatasetInput struct { - _ struct{} `type:"structure"` - // The name of the dataset from which to unsubcribe. - DatasetName *string `location:"uri" locationName:"DatasetName" min:"1" type:"string" required:"true"` + DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"` // The unique ID generated for this device by Cognito. - DeviceId *string `location:"uri" locationName:"DeviceId" min:"1" type:"string" required:"true"` + DeviceId *string `location:"uri" locationName:"DeviceId" type:"string" required:"true"` // Unique ID for this identity. - IdentityId *string `location:"uri" locationName:"IdentityId" min:"1" type:"string" required:"true"` + IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. The ID of the pool to which this identity belongs. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` + + metadataUnsubscribeFromDatasetInput `json:"-" xml:"-"` +} + +type metadataUnsubscribeFromDatasetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1889,43 +1670,13 @@ func (s UnsubscribeFromDatasetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UnsubscribeFromDatasetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UnsubscribeFromDatasetInput"} - if s.DatasetName == nil { - invalidParams.Add(request.NewErrParamRequired("DatasetName")) - } - if s.DatasetName != nil && len(*s.DatasetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) - } - if s.DeviceId == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceId")) - } - if s.DeviceId != nil && len(*s.DeviceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) - } - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response to an UnsubscribeFromDataset request. type UnsubscribeFromDatasetOutput struct { - _ struct{} `type:"structure"` + metadataUnsubscribeFromDatasetOutput `json:"-" xml:"-"` +} + +type metadataUnsubscribeFromDatasetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1941,26 +1692,24 @@ func (s UnsubscribeFromDatasetOutput) GoString() string { // A request to post updates to records or add and delete records for a dataset // and user. type UpdateRecordsInput struct { - _ struct{} `type:"structure"` - // Intended to supply a device ID that will populate the lastModifiedBy field // referenced in other methods. The ClientContext field is not yet implemented. ClientContext *string `location:"header" locationName:"x-amz-Client-Context" type:"string"` // A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' // (underscore), '-' (dash), and '.' (dot). - DatasetName *string `location:"uri" locationName:"DatasetName" min:"1" type:"string" required:"true"` + DatasetName *string `location:"uri" locationName:"DatasetName" type:"string" required:"true"` // The unique ID generated for this device by Cognito. - DeviceId *string `min:"1" type:"string"` + DeviceId *string `type:"string"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityId *string `location:"uri" locationName:"IdentityId" min:"1" type:"string" required:"true"` + IdentityId *string `location:"uri" locationName:"IdentityId" type:"string" required:"true"` // A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) // created by Amazon Cognito. GUID generation is unique within a region. - IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" min:"1" type:"string" required:"true"` + IdentityPoolId *string `location:"uri" locationName:"IdentityPoolId" type:"string" required:"true"` // A list of patch operations. RecordPatches []*RecordPatch `type:"list"` @@ -1968,6 +1717,12 @@ type UpdateRecordsInput struct { // The SyncSessionToken returned by a previous call to ListRecords for this // dataset and identity. SyncSessionToken *string `type:"string" required:"true"` + + metadataUpdateRecordsInput `json:"-" xml:"-"` +} + +type metadataUpdateRecordsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1980,56 +1735,16 @@ func (s UpdateRecordsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateRecordsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateRecordsInput"} - if s.DatasetName == nil { - invalidParams.Add(request.NewErrParamRequired("DatasetName")) - } - if s.DatasetName != nil && len(*s.DatasetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) - } - if s.DeviceId != nil && len(*s.DeviceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) - } - if s.IdentityId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityId")) - } - if s.IdentityId != nil && len(*s.IdentityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityId", 1)) - } - if s.IdentityPoolId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityPoolId")) - } - if s.IdentityPoolId != nil && len(*s.IdentityPoolId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityPoolId", 1)) - } - if s.SyncSessionToken == nil { - invalidParams.Add(request.NewErrParamRequired("SyncSessionToken")) - } - if s.RecordPatches != nil { - for i, v := range s.RecordPatches { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RecordPatches", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returned for a successful UpdateRecordsRequest. type UpdateRecordsOutput struct { - _ struct{} `type:"structure"` - // A list of records that have been updated. Records []*Record `type:"list"` + + metadataUpdateRecordsOutput `json:"-" xml:"-"` +} + +type metadataUpdateRecordsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go index a87454804..ab18da1b9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface.go @@ -78,5 +78,3 @@ type CognitoSyncAPI interface { UpdateRecords(*cognitosync.UpdateRecordsInput) (*cognitosync.UpdateRecordsOutput, error) } - -var _ CognitoSyncAPI = (*cognitosync.CognitoSync)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface_test.go new file mode 100644 index 000000000..241069e81 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package cognitosynciface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/cognitosync" + "github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*cognitosynciface.CognitoSyncAPI)(nil), cognitosync.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go index 0e38d401e..f4e6b006e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cognitosync" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleCognitoSync_BulkPublish() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.BulkPublishInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -35,7 +34,7 @@ func ExampleCognitoSync_BulkPublish() { } func ExampleCognitoSync_DeleteDataset() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.DeleteDatasetInput{ DatasetName: aws.String("DatasetName"), // Required @@ -56,7 +55,7 @@ func ExampleCognitoSync_DeleteDataset() { } func ExampleCognitoSync_DescribeDataset() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.DescribeDatasetInput{ DatasetName: aws.String("DatasetName"), // Required @@ -77,7 +76,7 @@ func ExampleCognitoSync_DescribeDataset() { } func ExampleCognitoSync_DescribeIdentityPoolUsage() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.DescribeIdentityPoolUsageInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -96,7 +95,7 @@ func ExampleCognitoSync_DescribeIdentityPoolUsage() { } func ExampleCognitoSync_DescribeIdentityUsage() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.DescribeIdentityUsageInput{ IdentityId: aws.String("IdentityId"), // Required @@ -116,7 +115,7 @@ func ExampleCognitoSync_DescribeIdentityUsage() { } func ExampleCognitoSync_GetBulkPublishDetails() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.GetBulkPublishDetailsInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -135,7 +134,7 @@ func ExampleCognitoSync_GetBulkPublishDetails() { } func ExampleCognitoSync_GetCognitoEvents() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.GetCognitoEventsInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -154,7 +153,7 @@ func ExampleCognitoSync_GetCognitoEvents() { } func ExampleCognitoSync_GetIdentityPoolConfiguration() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.GetIdentityPoolConfigurationInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -173,7 +172,7 @@ func ExampleCognitoSync_GetIdentityPoolConfiguration() { } func ExampleCognitoSync_ListDatasets() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.ListDatasetsInput{ IdentityId: aws.String("IdentityId"), // Required @@ -195,7 +194,7 @@ func ExampleCognitoSync_ListDatasets() { } func ExampleCognitoSync_ListIdentityPoolUsage() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.ListIdentityPoolUsageInput{ MaxResults: aws.Int64(1), @@ -215,7 +214,7 @@ func ExampleCognitoSync_ListIdentityPoolUsage() { } func ExampleCognitoSync_ListRecords() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.ListRecordsInput{ DatasetName: aws.String("DatasetName"), // Required @@ -240,7 +239,7 @@ func ExampleCognitoSync_ListRecords() { } func ExampleCognitoSync_RegisterDevice() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.RegisterDeviceInput{ IdentityId: aws.String("IdentityId"), // Required @@ -262,7 +261,7 @@ func ExampleCognitoSync_RegisterDevice() { } func ExampleCognitoSync_SetCognitoEvents() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.SetCognitoEventsInput{ Events: map[string]*string{ // Required @@ -285,7 +284,7 @@ func ExampleCognitoSync_SetCognitoEvents() { } func ExampleCognitoSync_SetIdentityPoolConfiguration() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.SetIdentityPoolConfigurationInput{ IdentityPoolId: aws.String("IdentityPoolId"), // Required @@ -316,7 +315,7 @@ func ExampleCognitoSync_SetIdentityPoolConfiguration() { } func ExampleCognitoSync_SubscribeToDataset() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.SubscribeToDatasetInput{ DatasetName: aws.String("DatasetName"), // Required @@ -338,7 +337,7 @@ func ExampleCognitoSync_SubscribeToDataset() { } func ExampleCognitoSync_UnsubscribeFromDataset() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.UnsubscribeFromDatasetInput{ DatasetName: aws.String("DatasetName"), // Required @@ -360,7 +359,7 @@ func ExampleCognitoSync_UnsubscribeFromDataset() { } func ExampleCognitoSync_UpdateRecords() { - svc := cognitosync.New(session.New()) + svc := cognitosync.New(nil) params := &cognitosync.UpdateRecordsInput{ DatasetName: aws.String("DatasetName"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/service.go b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/service.go index a9d91f37c..ab4e016a2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitosync/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitosync/service.go @@ -4,11 +4,12 @@ package cognitosync import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restjson" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Amazon Cognito Sync provides an AWS service and client library that enable @@ -29,64 +30,40 @@ import ( // probably want to make API calls via the AWS Mobile SDK. To learn more, see // the Developer Guide for Android (http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html) // and the Developer Guide for iOS (http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type CognitoSync struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "cognito-sync" - -// New creates a new instance of the CognitoSync client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a CognitoSync client from just a session. -// svc := cognitosync.New(mySession) -// -// // Create a CognitoSync client with additional configuration -// svc := cognitosync.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CognitoSync { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *CognitoSync { - svc := &CognitoSync{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-06-30", - }, - handlers, - ), +// New returns a new CognitoSync client. +func New(config *aws.Config) *CognitoSync { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "cognito-sync", + APIVersion: "2014-06-30", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &CognitoSync{service} } // newRequest creates a new request for a CognitoSync operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go index e64c79e35..30dcd31d8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go @@ -4,50 +4,12 @@ package configservice import ( - "fmt" "time" "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/private/protocol/jsonrpc" ) -const opDeleteConfigRule = "DeleteConfigRule" - -// DeleteConfigRuleRequest generates a request for the DeleteConfigRule operation. -func (c *ConfigService) DeleteConfigRuleRequest(input *DeleteConfigRuleInput) (req *request.Request, output *DeleteConfigRuleOutput) { - op := &request.Operation{ - Name: opDeleteConfigRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteConfigRuleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteConfigRuleOutput{} - req.Data = output - return -} - -// Deletes the specified AWS Config rule and all of its evaluation results. -// -// AWS Config sets the state of a rule to DELETING until the deletion is complete. -// You cannot update a rule while it is in this state. If you make a PutConfigRule -// or DeleteConfigRule request for the rule, you will receive a ResourceInUseException. -// -// You can check the state of a rule by using the DescribeConfigRules request. -func (c *ConfigService) DeleteConfigRule(input *DeleteConfigRuleInput) (*DeleteConfigRuleOutput, error) { - req, out := c.DeleteConfigRuleRequest(input) - err := req.Send() - return out, err -} - const opDeleteDeliveryChannel = "DeleteDeliveryChannel" // DeleteDeliveryChannelRequest generates a request for the DeleteDeliveryChannel operation. @@ -63,8 +25,6 @@ func (c *ConfigService) DeleteDeliveryChannelRequest(input *DeleteDeliveryChanne } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteDeliveryChannelOutput{} req.Data = output return @@ -115,153 +75,6 @@ func (c *ConfigService) DeliverConfigSnapshot(input *DeliverConfigSnapshotInput) return out, err } -const opDescribeComplianceByConfigRule = "DescribeComplianceByConfigRule" - -// DescribeComplianceByConfigRuleRequest generates a request for the DescribeComplianceByConfigRule operation. -func (c *ConfigService) DescribeComplianceByConfigRuleRequest(input *DescribeComplianceByConfigRuleInput) (req *request.Request, output *DescribeComplianceByConfigRuleOutput) { - op := &request.Operation{ - Name: opDescribeComplianceByConfigRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeComplianceByConfigRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeComplianceByConfigRuleOutput{} - req.Data = output - return -} - -// Indicates whether the specified AWS Config rules are compliant. If a rule -// is noncompliant, this action returns the number of AWS resources that do -// not comply with the rule. -// -// A rule is compliant if all of the evaluated resources comply with it, and -// it is noncompliant if any of these resources do not comply. -// -// If AWS Config has no current evaluation results for the rule, it returns -// INSUFFICIENT_DATA. This result might indicate one of the following conditions: -// AWS Config has never invoked an evaluation for the rule. To check whether -// it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime -// and LastFailedInvocationTime. The rule's AWS Lambda function is failing to -// send evaluation results to AWS Config. Verify that the role that you assigned -// to your configuration recorder includes the config:PutEvaluations permission. -// If the rule is a customer managed rule, verify that the AWS Lambda execution -// role includes the config:PutEvaluations permission. The rule's AWS Lambda -// function has returned NOT_APPLICABLE for all evaluation results. This can -// occur if the resources were deleted or removed from the rule's scope. -func (c *ConfigService) DescribeComplianceByConfigRule(input *DescribeComplianceByConfigRuleInput) (*DescribeComplianceByConfigRuleOutput, error) { - req, out := c.DescribeComplianceByConfigRuleRequest(input) - err := req.Send() - return out, err -} - -const opDescribeComplianceByResource = "DescribeComplianceByResource" - -// DescribeComplianceByResourceRequest generates a request for the DescribeComplianceByResource operation. -func (c *ConfigService) DescribeComplianceByResourceRequest(input *DescribeComplianceByResourceInput) (req *request.Request, output *DescribeComplianceByResourceOutput) { - op := &request.Operation{ - Name: opDescribeComplianceByResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeComplianceByResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeComplianceByResourceOutput{} - req.Data = output - return -} - -// Indicates whether the specified AWS resources are compliant. If a resource -// is noncompliant, this action returns the number of AWS Config rules that -// the resource does not comply with. -// -// A resource is compliant if it complies with all the AWS Config rules that -// evaluate it. It is noncompliant if it does not comply with one or more of -// these rules. -// -// If AWS Config has no current evaluation results for the resource, it returns -// INSUFFICIENT_DATA. This result might indicate one of the following conditions -// about the rules that evaluate the resource: AWS Config has never invoked -// an evaluation for the rule. To check whether it has, use the DescribeConfigRuleEvaluationStatus -// action to get the LastSuccessfulInvocationTime and LastFailedInvocationTime. -// The rule's AWS Lambda function is failing to send evaluation results to AWS -// Config. Verify that the role that you assigned to your configuration recorder -// includes the config:PutEvaluations permission. If the rule is a customer -// managed rule, verify that the AWS Lambda execution role includes the config:PutEvaluations -// permission. The rule's AWS Lambda function has returned NOT_APPLICABLE for -// all evaluation results. This can occur if the resources were deleted or removed -// from the rule's scope. -func (c *ConfigService) DescribeComplianceByResource(input *DescribeComplianceByResourceInput) (*DescribeComplianceByResourceOutput, error) { - req, out := c.DescribeComplianceByResourceRequest(input) - err := req.Send() - return out, err -} - -const opDescribeConfigRuleEvaluationStatus = "DescribeConfigRuleEvaluationStatus" - -// DescribeConfigRuleEvaluationStatusRequest generates a request for the DescribeConfigRuleEvaluationStatus operation. -func (c *ConfigService) DescribeConfigRuleEvaluationStatusRequest(input *DescribeConfigRuleEvaluationStatusInput) (req *request.Request, output *DescribeConfigRuleEvaluationStatusOutput) { - op := &request.Operation{ - Name: opDescribeConfigRuleEvaluationStatus, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeConfigRuleEvaluationStatusInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeConfigRuleEvaluationStatusOutput{} - req.Data = output - return -} - -// Returns status information for each of your AWS managed Config rules. The -// status includes information such as the last time AWS Config invoked the -// rule, the last time AWS Config failed to invoke the rule, and the related -// error for the last failure. -func (c *ConfigService) DescribeConfigRuleEvaluationStatus(input *DescribeConfigRuleEvaluationStatusInput) (*DescribeConfigRuleEvaluationStatusOutput, error) { - req, out := c.DescribeConfigRuleEvaluationStatusRequest(input) - err := req.Send() - return out, err -} - -const opDescribeConfigRules = "DescribeConfigRules" - -// DescribeConfigRulesRequest generates a request for the DescribeConfigRules operation. -func (c *ConfigService) DescribeConfigRulesRequest(input *DescribeConfigRulesInput) (req *request.Request, output *DescribeConfigRulesOutput) { - op := &request.Operation{ - Name: opDescribeConfigRules, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeConfigRulesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeConfigRulesOutput{} - req.Data = output - return -} - -// Returns details about your AWS Config rules. -func (c *ConfigService) DescribeConfigRules(input *DescribeConfigRulesInput) (*DescribeConfigRulesOutput, error) { - req, out := c.DescribeConfigRulesRequest(input) - err := req.Send() - return out, err -} - const opDescribeConfigurationRecorderStatus = "DescribeConfigurationRecorderStatus" // DescribeConfigurationRecorderStatusRequest generates a request for the DescribeConfigurationRecorderStatus operation. @@ -386,121 +199,6 @@ func (c *ConfigService) DescribeDeliveryChannels(input *DescribeDeliveryChannels return out, err } -const opGetComplianceDetailsByConfigRule = "GetComplianceDetailsByConfigRule" - -// GetComplianceDetailsByConfigRuleRequest generates a request for the GetComplianceDetailsByConfigRule operation. -func (c *ConfigService) GetComplianceDetailsByConfigRuleRequest(input *GetComplianceDetailsByConfigRuleInput) (req *request.Request, output *GetComplianceDetailsByConfigRuleOutput) { - op := &request.Operation{ - Name: opGetComplianceDetailsByConfigRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetComplianceDetailsByConfigRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &GetComplianceDetailsByConfigRuleOutput{} - req.Data = output - return -} - -// Returns the evaluation results for the specified AWS Config rule. The results -// indicate which AWS resources were evaluated by the rule, when each resource -// was last evaluated, and whether each resource complies with the rule. -func (c *ConfigService) GetComplianceDetailsByConfigRule(input *GetComplianceDetailsByConfigRuleInput) (*GetComplianceDetailsByConfigRuleOutput, error) { - req, out := c.GetComplianceDetailsByConfigRuleRequest(input) - err := req.Send() - return out, err -} - -const opGetComplianceDetailsByResource = "GetComplianceDetailsByResource" - -// GetComplianceDetailsByResourceRequest generates a request for the GetComplianceDetailsByResource operation. -func (c *ConfigService) GetComplianceDetailsByResourceRequest(input *GetComplianceDetailsByResourceInput) (req *request.Request, output *GetComplianceDetailsByResourceOutput) { - op := &request.Operation{ - Name: opGetComplianceDetailsByResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetComplianceDetailsByResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &GetComplianceDetailsByResourceOutput{} - req.Data = output - return -} - -// Returns the evaluation results for the specified AWS resource. The results -// indicate which AWS Config rules were used to evaluate the resource, when -// each rule was last used, and whether the resource complies with each rule. -func (c *ConfigService) GetComplianceDetailsByResource(input *GetComplianceDetailsByResourceInput) (*GetComplianceDetailsByResourceOutput, error) { - req, out := c.GetComplianceDetailsByResourceRequest(input) - err := req.Send() - return out, err -} - -const opGetComplianceSummaryByConfigRule = "GetComplianceSummaryByConfigRule" - -// GetComplianceSummaryByConfigRuleRequest generates a request for the GetComplianceSummaryByConfigRule operation. -func (c *ConfigService) GetComplianceSummaryByConfigRuleRequest(input *GetComplianceSummaryByConfigRuleInput) (req *request.Request, output *GetComplianceSummaryByConfigRuleOutput) { - op := &request.Operation{ - Name: opGetComplianceSummaryByConfigRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetComplianceSummaryByConfigRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &GetComplianceSummaryByConfigRuleOutput{} - req.Data = output - return -} - -// Returns the number of AWS Config rules that are compliant and noncompliant, -// up to a maximum of 25 for each. -func (c *ConfigService) GetComplianceSummaryByConfigRule(input *GetComplianceSummaryByConfigRuleInput) (*GetComplianceSummaryByConfigRuleOutput, error) { - req, out := c.GetComplianceSummaryByConfigRuleRequest(input) - err := req.Send() - return out, err -} - -const opGetComplianceSummaryByResourceType = "GetComplianceSummaryByResourceType" - -// GetComplianceSummaryByResourceTypeRequest generates a request for the GetComplianceSummaryByResourceType operation. -func (c *ConfigService) GetComplianceSummaryByResourceTypeRequest(input *GetComplianceSummaryByResourceTypeInput) (req *request.Request, output *GetComplianceSummaryByResourceTypeOutput) { - op := &request.Operation{ - Name: opGetComplianceSummaryByResourceType, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetComplianceSummaryByResourceTypeInput{} - } - - req = c.newRequest(op, input, output) - output = &GetComplianceSummaryByResourceTypeOutput{} - req.Data = output - return -} - -// Returns the number of resources that are compliant and the number that are -// noncompliant. You can specify one or more resource types to get these numbers -// for each resource type. The maximum number returned is 100. -func (c *ConfigService) GetComplianceSummaryByResourceType(input *GetComplianceSummaryByResourceTypeInput) (*GetComplianceSummaryByResourceTypeOutput, error) { - req, out := c.GetComplianceSummaryByResourceTypeRequest(input) - err := req.Send() - return out, err -} - const opGetResourceConfigHistory = "GetResourceConfigHistory" // GetResourceConfigHistoryRequest generates a request for the GetResourceConfigHistory operation. @@ -548,7 +246,6 @@ func (c *ConfigService) GetResourceConfigHistory(input *GetResourceConfigHistory func (c *ConfigService) GetResourceConfigHistoryPages(input *GetResourceConfigHistoryInput, fn func(p *GetResourceConfigHistoryOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.GetResourceConfigHistoryRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*GetResourceConfigHistoryOutput), lastPage) }) @@ -593,66 +290,6 @@ func (c *ConfigService) ListDiscoveredResources(input *ListDiscoveredResourcesIn return out, err } -const opPutConfigRule = "PutConfigRule" - -// PutConfigRuleRequest generates a request for the PutConfigRule operation. -func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *request.Request, output *PutConfigRuleOutput) { - op := &request.Operation{ - Name: opPutConfigRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutConfigRuleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutConfigRuleOutput{} - req.Data = output - return -} - -// Adds or updates an AWS Config rule for evaluating whether your AWS resources -// comply with your desired configurations. -// -// You can use this action for customer managed Config rules and AWS managed -// Config rules. A customer managed Config rule is a custom rule that you develop -// and maintain. An AWS managed Config rule is a customizable, predefined rule -// that is provided by AWS Config. -// -// If you are adding a new customer managed Config rule, you must first create -// the AWS Lambda function that the rule invokes to evaluate your resources. -// When you use the PutConfigRule action to add the rule to AWS Config, you -// must specify the Amazon Resource Name (ARN) that AWS Lambda assigns to the -// function. Specify the ARN for the SourceIdentifier key. This key is part -// of the Source object, which is part of the ConfigRule object. -// -// If you are adding a new AWS managed Config rule, specify the rule's identifier -// for the SourceIdentifier key. To reference AWS managed Config rule identifiers, -// see Using AWS Managed Config Rules (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html). -// -// For any new rule that you add, specify the ConfigRuleName in the ConfigRule -// object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values -// are generated by AWS Config for new rules. -// -// If you are updating a rule that you have added previously, specify the rule's -// ConfigRuleName, ConfigRuleId, or ConfigRuleArn in the ConfigRule data type -// that you use in this request. -// -// The maximum number of rules that AWS Config supports is 25. -// -// For more information about developing and using AWS Config rules, see Evaluating -// AWS Resource Configurations with AWS Config (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html) -// in the AWS Config Developer Guide. -func (c *ConfigService) PutConfigRule(input *PutConfigRuleInput) (*PutConfigRuleOutput, error) { - req, out := c.PutConfigRuleRequest(input) - err := req.Send() - return out, err -} - const opPutConfigurationRecorder = "PutConfigurationRecorder" // PutConfigurationRecorderRequest generates a request for the PutConfigurationRecorder operation. @@ -668,8 +305,6 @@ func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationR } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutConfigurationRecorderOutput{} req.Data = output return @@ -706,8 +341,6 @@ func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutDeliveryChannelOutput{} req.Data = output return @@ -730,35 +363,6 @@ func (c *ConfigService) PutDeliveryChannel(input *PutDeliveryChannelInput) (*Put return out, err } -const opPutEvaluations = "PutEvaluations" - -// PutEvaluationsRequest generates a request for the PutEvaluations operation. -func (c *ConfigService) PutEvaluationsRequest(input *PutEvaluationsInput) (req *request.Request, output *PutEvaluationsOutput) { - op := &request.Operation{ - Name: opPutEvaluations, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutEvaluationsInput{} - } - - req = c.newRequest(op, input, output) - output = &PutEvaluationsOutput{} - req.Data = output - return -} - -// Used by an AWS Lambda function to deliver evaluation results to AWS Config. -// This action is required in every AWS Lambda function that is invoked by an -// AWS Config rule. -func (c *ConfigService) PutEvaluations(input *PutEvaluationsInput) (*PutEvaluationsOutput, error) { - req, out := c.PutEvaluationsRequest(input) - err := req.Send() - return out, err -} - const opStartConfigurationRecorder = "StartConfigurationRecorder" // StartConfigurationRecorderRequest generates a request for the StartConfigurationRecorder operation. @@ -774,8 +378,6 @@ func (c *ConfigService) StartConfigurationRecorderRequest(input *StartConfigurat } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &StartConfigurationRecorderOutput{} req.Data = output return @@ -807,8 +409,6 @@ func (c *ConfigService) StopConfigurationRecorderRequest(input *StopConfiguratio } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &StopConfigurationRecorderOutput{} req.Data = output return @@ -822,414 +422,74 @@ func (c *ConfigService) StopConfigurationRecorder(input *StopConfigurationRecord return out, err } -// Indicates whether an AWS resource or AWS Config rule is compliant and provides -// the number of contributors that affect the compliance. -type Compliance struct { - _ struct{} `type:"structure"` +// A list that contains the status of the delivery of either the snapshot or +// the configuration history to the specified Amazon S3 bucket. +type ConfigExportDeliveryInfo struct { + // The time of the last attempted delivery. + LastAttemptTime *time.Time `locationName:"lastAttemptTime" type:"timestamp" timestampFormat:"unix"` - // The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, - // up to a maximum number. - ComplianceContributorCount *ComplianceContributorCount `type:"structure"` + // The error code from the last attempted delivery. + LastErrorCode *string `locationName:"lastErrorCode" type:"string"` - // Indicates whether an AWS resource or AWS Config rule is compliant. - // - // A resource is compliant if it complies with all of the AWS Config rules - // that evaluate it, and it is noncompliant if it does not comply with one or - // more of these rules. - // - // A rule is compliant if all of the resources that the rule evaluates comply - // with it, and it is noncompliant if any of these resources do not comply. - // - // AWS Config returns the INSUFFICIENT_DATA value when no evaluation results - // are available for the AWS resource or Config rule. - // - // For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, - // and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE - // value for the Compliance data type. - ComplianceType *string `type:"string" enum:"ComplianceType"` + // The error message from the last attempted delivery. + LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"` + + // Status of the last attempted delivery. + LastStatus *string `locationName:"lastStatus" type:"string" enum:"DeliveryStatus"` + + // The time of the last successful delivery. + LastSuccessfulTime *time.Time `locationName:"lastSuccessfulTime" type:"timestamp" timestampFormat:"unix"` + + metadataConfigExportDeliveryInfo `json:"-" xml:"-"` +} + +type metadataConfigExportDeliveryInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Compliance) String() string { +func (s ConfigExportDeliveryInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Compliance) GoString() string { +func (s ConfigExportDeliveryInfo) GoString() string { return s.String() } -// Indicates whether an AWS Config rule is compliant. A rule is compliant if -// all of the resources that the rule evaluated comply with it, and it is noncompliant -// if any of these resources do not comply. -type ComplianceByConfigRule struct { - _ struct{} `type:"structure"` +// A list that contains the status of the delivery of the configuration stream +// notification to the Amazon SNS topic. +type ConfigStreamDeliveryInfo struct { + // The error code from the last attempted delivery. + LastErrorCode *string `locationName:"lastErrorCode" type:"string"` + + // The error message from the last attempted delivery. + LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"` + + // Status of the last attempted delivery. + // + // Note Providing an SNS topic on a DeliveryChannel (http://docs.aws.amazon.com/config/latest/APIReference/API_DeliveryChannel.html) + // for AWS Config is optional. If the SNS delivery is turned off, the last status + // will be Not_Applicable. + LastStatus *string `locationName:"lastStatus" type:"string" enum:"DeliveryStatus"` + + // The time from the last status change. + LastStatusChangeTime *time.Time `locationName:"lastStatusChangeTime" type:"timestamp" timestampFormat:"unix"` - // Indicates whether the AWS Config rule is compliant. - Compliance *Compliance `type:"structure"` + metadataConfigStreamDeliveryInfo `json:"-" xml:"-"` +} - // The name of the AWS Config rule. - ConfigRuleName *string `min:"1" type:"string"` +type metadataConfigStreamDeliveryInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ComplianceByConfigRule) String() string { +func (s ConfigStreamDeliveryInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ComplianceByConfigRule) GoString() string { - return s.String() -} - -// Indicates whether an AWS resource that is evaluated according to one or more -// AWS Config rules is compliant. A resource is compliant if it complies with -// all of the rules that evaluate it, and it is noncompliant if it does not -// comply with one or more of these rules. -type ComplianceByResource struct { - _ struct{} `type:"structure"` - - // Indicates whether the AWS resource complies with all of the AWS Config rules - // that evaluated it. - Compliance *Compliance `type:"structure"` - - // The ID of the AWS resource that was evaluated. - ResourceId *string `min:"1" type:"string"` - - // The type of the AWS resource that was evaluated. - ResourceType *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ComplianceByResource) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ComplianceByResource) GoString() string { - return s.String() -} - -// The number of AWS resources or AWS Config rules responsible for the current -// compliance of the item, up to a maximum number. -type ComplianceContributorCount struct { - _ struct{} `type:"structure"` - - // Indicates whether the maximum count is reached. - CapExceeded *bool `type:"boolean"` - - // The number of AWS resources or AWS Config rules responsible for the current - // compliance of the item. - CappedCount *int64 `type:"integer"` -} - -// String returns the string representation -func (s ComplianceContributorCount) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ComplianceContributorCount) GoString() string { - return s.String() -} - -// The number of AWS Config rules or AWS resources that are compliant and noncompliant, -// up to a maximum. -type ComplianceSummary struct { - _ struct{} `type:"structure"` - - // The time that AWS Config created the compliance summary. - ComplianceSummaryTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The number of AWS Config rules or AWS resources that are compliant, up to - // a maximum of 25 for rules and 100 for resources. - CompliantResourceCount *ComplianceContributorCount `type:"structure"` - - // The number of AWS Config rules or AWS resources that are noncompliant, up - // to a maximum of 25 for rules and 100 for resources. - NonCompliantResourceCount *ComplianceContributorCount `type:"structure"` -} - -// String returns the string representation -func (s ComplianceSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ComplianceSummary) GoString() string { - return s.String() -} - -// The number of AWS resources of a specific type that are compliant or noncompliant, -// up to a maximum of 100 for each compliance. -type ComplianceSummaryByResourceType struct { - _ struct{} `type:"structure"` - - // The number of AWS resources that are compliant or noncompliant, up to a maximum - // of 100 for each compliance. - ComplianceSummary *ComplianceSummary `type:"structure"` - - // The type of AWS resource. - ResourceType *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ComplianceSummaryByResourceType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ComplianceSummaryByResourceType) GoString() string { - return s.String() -} - -// A list that contains the status of the delivery of either the snapshot or -// the configuration history to the specified Amazon S3 bucket. -type ConfigExportDeliveryInfo struct { - _ struct{} `type:"structure"` - - // The time of the last attempted delivery. - LastAttemptTime *time.Time `locationName:"lastAttemptTime" type:"timestamp" timestampFormat:"unix"` - - // The error code from the last attempted delivery. - LastErrorCode *string `locationName:"lastErrorCode" type:"string"` - - // The error message from the last attempted delivery. - LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"` - - // Status of the last attempted delivery. - LastStatus *string `locationName:"lastStatus" type:"string" enum:"DeliveryStatus"` - - // The time of the last successful delivery. - LastSuccessfulTime *time.Time `locationName:"lastSuccessfulTime" type:"timestamp" timestampFormat:"unix"` - - // The time that the next delivery occurs. - NextDeliveryTime *time.Time `locationName:"nextDeliveryTime" type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s ConfigExportDeliveryInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfigExportDeliveryInfo) GoString() string { - return s.String() -} - -// An AWS Lambda function that evaluates configuration items to assess whether -// your AWS resources comply with your desired configurations. This function -// can run when AWS Config detects a configuration change to an AWS resource, -// or when it delivers a configuration snapshot of the resources in the account. -// -// For more information about developing and using AWS Config rules, see Evaluating -// AWS Resource Configurations with AWS Config (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html) -// in the AWS Config Developer Guide. -type ConfigRule struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the AWS Config rule. - ConfigRuleArn *string `type:"string"` - - // The ID of the AWS Config rule. - ConfigRuleId *string `type:"string"` - - // The name that you assign to the AWS Config rule. The name is required if - // you are adding a new rule. - ConfigRuleName *string `min:"1" type:"string"` - - // Indicates whether the AWS Config rule is active or currently being deleted - // by AWS Config. - // - // AWS Config sets the state of a rule to DELETING temporarily after you use - // the DeleteConfigRule request to delete the rule. After AWS Config finishes - // deleting a rule, the rule and all of its evaluations are erased and no longer - // available. - // - // You cannot add a rule to AWS Config that has the state set to DELETING. - // If you want to delete a rule, you must use the DeleteConfigRule request. - ConfigRuleState *string `type:"string" enum:"ConfigRuleState"` - - // The description that you provide for the AWS Config rule. - Description *string `type:"string"` - - // A string in JSON format that is passed to the AWS Config rule Lambda function. - InputParameters *string `min:"1" type:"string"` - - // The maximum frequency at which the AWS Config rule runs evaluations. - // - // If your rule is periodic, meaning it runs an evaluation when AWS Config - // delivers a configuration snapshot, then it cannot run evaluations more frequently - // than AWS Config delivers the snapshots. For periodic rules, set the value - // of the MaximumExecutionFrequency key to be equal to or greater than the value - // of the deliveryFrequency key, which is part of ConfigSnapshotDeliveryProperties. - // To update the frequency with which AWS Config delivers your snapshots, use - // the PutDeliveryChannel action. - MaximumExecutionFrequency *string `type:"string" enum:"MaximumExecutionFrequency"` - - // Defines which resources can trigger an evaluation for the rule. The scope - // can include one or more resource types, a combination of one resource type - // and one resource ID, or a combination of a tag key and value. Specify a scope - // to constrain the resources that can trigger an evaluation for the rule. If - // you do not specify a scope, evaluations are triggered when any resource in - // the recording group changes. - Scope *Scope `type:"structure"` - - // Provides the rule owner (AWS or customer), the rule identifier, and the events - // that cause the function to evaluate your AWS resources. - Source *Source `type:"structure" required:"true"` -} - -// String returns the string representation -func (s ConfigRule) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfigRule) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfigRule) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfigRule"} - if s.ConfigRuleName != nil && len(*s.ConfigRuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConfigRuleName", 1)) - } - if s.InputParameters != nil && len(*s.InputParameters) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InputParameters", 1)) - } - if s.Source == nil { - invalidParams.Add(request.NewErrParamRequired("Source")) - } - if s.Scope != nil { - if err := s.Scope.Validate(); err != nil { - invalidParams.AddNested("Scope", err.(request.ErrInvalidParams)) - } - } - if s.Source != nil { - if err := s.Source.Validate(); err != nil { - invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Status information for your AWS managed Config rules. The status includes -// information such as the last time the rule ran, the last time it failed, -// and the related error for the last failure. -// -// This action does not return status information about customer managed Config -// rules. -type ConfigRuleEvaluationStatus struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the AWS Config rule. - ConfigRuleArn *string `type:"string"` - - // The ID of the AWS Config rule. - ConfigRuleId *string `type:"string"` - - // The name of the AWS Config rule. - ConfigRuleName *string `min:"1" type:"string"` - - // The time that you first activated the AWS Config rule. - FirstActivatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Indicates whether AWS Config has evaluated your resources against the rule - // at least once. - // - // true - AWS Config has evaluated your AWS resources against the rule at - // least once. false - AWS Config has not once finished evaluating your AWS - // resources against the rule. - FirstEvaluationStarted *bool `type:"boolean"` - - // The error code that AWS Config returned when the rule last failed. - LastErrorCode *string `type:"string"` - - // The error message that AWS Config returned when the rule last failed. - LastErrorMessage *string `type:"string"` - - // The time that AWS Config last failed to evaluate your AWS resources against - // the rule. - LastFailedEvaluationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The time that AWS Config last failed to invoke the AWS Config rule to evaluate - // your AWS resources. - LastFailedInvocationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The time that AWS Config last successfully evaluated your AWS resources against - // the rule. - LastSuccessfulEvaluationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The time that AWS Config last successfully invoked the AWS Config rule to - // evaluate your AWS resources. - LastSuccessfulInvocationTime *time.Time `type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s ConfigRuleEvaluationStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfigRuleEvaluationStatus) GoString() string { - return s.String() -} - -// Options for how AWS Config delivers configuration snapshots to the Amazon -// S3 bucket in your delivery channel. -type ConfigSnapshotDeliveryProperties struct { - _ struct{} `type:"structure"` - - // The frequency with which a AWS Config recurringly delivers configuration - // snapshots. - DeliveryFrequency *string `locationName:"deliveryFrequency" type:"string" enum:"MaximumExecutionFrequency"` -} - -// String returns the string representation -func (s ConfigSnapshotDeliveryProperties) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfigSnapshotDeliveryProperties) GoString() string { - return s.String() -} - -// A list that contains the status of the delivery of the configuration stream -// notification to the Amazon SNS topic. -type ConfigStreamDeliveryInfo struct { - _ struct{} `type:"structure"` - - // The error code from the last attempted delivery. - LastErrorCode *string `locationName:"lastErrorCode" type:"string"` - - // The error message from the last attempted delivery. - LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"` - - // Status of the last attempted delivery. - // - // Note Providing an SNS topic on a DeliveryChannel (http://docs.aws.amazon.com/config/latest/APIReference/API_DeliveryChannel.html) - // for AWS Config is optional. If the SNS delivery is turned off, the last status - // will be Not_Applicable. - LastStatus *string `locationName:"lastStatus" type:"string" enum:"DeliveryStatus"` - - // The time from the last status change. - LastStatusChangeTime *time.Time `locationName:"lastStatusChangeTime" type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s ConfigStreamDeliveryInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfigStreamDeliveryInfo) GoString() string { +func (s ConfigStreamDeliveryInfo) GoString() string { return s.String() } @@ -1238,8 +498,6 @@ func (s ConfigStreamDeliveryInfo) GoString() string { // Currently, the list does not contain information about non-AWS components // (for example, applications on your Amazon EC2 instances). type ConfigurationItem struct { - _ struct{} `type:"structure"` - // The 12 digit AWS account ID associated with the resource. AccountId *string `locationName:"accountId" type:"string"` @@ -1301,6 +559,12 @@ type ConfigurationItem struct { // The version number of the resource configuration. Version *string `locationName:"version" type:"string"` + + metadataConfigurationItem `json:"-" xml:"-"` +} + +type metadataConfigurationItem struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1316,20 +580,25 @@ func (s ConfigurationItem) GoString() string { // An object that represents the recording of configuration changes of an AWS // resource. type ConfigurationRecorder struct { - _ struct{} `type:"structure"` - // The name of the recorder. By default, AWS Config automatically assigns the // name "default" when creating the configuration recorder. You cannot change // the assigned name. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" type:"string"` - // Specifies the types of AWS resource for which AWS Config records configuration - // changes. + // The recording group specifies either to record configurations for all supported + // resources or to provide a list of resource types to record. The list of resource + // types must be a subset of supported resource types. RecordingGroup *RecordingGroup `locationName:"recordingGroup" type:"structure"` // Amazon Resource Name (ARN) of the IAM role used to describe the AWS resources // associated with the account. RoleARN *string `locationName:"roleARN" type:"string"` + + metadataConfigurationRecorder `json:"-" xml:"-"` +} + +type metadataConfigurationRecorder struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1342,23 +611,8 @@ func (s ConfigurationRecorder) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfigurationRecorder) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfigurationRecorder"} - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The current status of the configuration recorder. type ConfigurationRecorderStatus struct { - _ struct{} `type:"structure"` - // The error code indicating that the recording failed. LastErrorCode *string `locationName:"lastErrorCode" type:"string"` @@ -1382,72 +636,35 @@ type ConfigurationRecorderStatus struct { // Specifies whether the recorder is currently recording or not. Recording *bool `locationName:"recording" type:"boolean"` -} - -// String returns the string representation -func (s ConfigurationRecorderStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfigurationRecorderStatus) GoString() string { - return s.String() -} - -type DeleteConfigRuleInput struct { - _ struct{} `type:"structure"` - - // The name of the AWS Config rule that you want to delete. - ConfigRuleName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteConfigRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteConfigRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteConfigRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteConfigRuleInput"} - if s.ConfigRuleName == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigRuleName")) - } - if s.ConfigRuleName != nil && len(*s.ConfigRuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConfigRuleName", 1)) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataConfigurationRecorderStatus `json:"-" xml:"-"` } -type DeleteConfigRuleOutput struct { - _ struct{} `type:"structure"` +type metadataConfigurationRecorderStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteConfigRuleOutput) String() string { +func (s ConfigurationRecorderStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteConfigRuleOutput) GoString() string { +func (s ConfigurationRecorderStatus) GoString() string { return s.String() } // The input for the DeleteDeliveryChannel action. The action accepts the following // data in JSON format. type DeleteDeliveryChannelInput struct { - _ struct{} `type:"structure"` - // The name of the delivery channel to delete. - DeliveryChannelName *string `min:"1" type:"string" required:"true"` + DeliveryChannelName *string `type:"string" required:"true"` + + metadataDeleteDeliveryChannelInput `json:"-" xml:"-"` +} + +type metadataDeleteDeliveryChannelInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1460,24 +677,12 @@ func (s DeleteDeliveryChannelInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDeliveryChannelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDeliveryChannelInput"} - if s.DeliveryChannelName == nil { - invalidParams.Add(request.NewErrParamRequired("DeliveryChannelName")) - } - if s.DeliveryChannelName != nil && len(*s.DeliveryChannelName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeliveryChannelName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteDeliveryChannelOutput struct { + metadataDeleteDeliveryChannelOutput `json:"-" xml:"-"` } -type DeleteDeliveryChannelOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteDeliveryChannelOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1492,10 +697,14 @@ func (s DeleteDeliveryChannelOutput) GoString() string { // The input for the DeliverConfigSnapshot action. type DeliverConfigSnapshotInput struct { - _ struct{} `type:"structure"` - // The name of the delivery channel through which the snapshot is delivered. - DeliveryChannelName *string `locationName:"deliveryChannelName" min:"1" type:"string" required:"true"` + DeliveryChannelName *string `locationName:"deliveryChannelName" type:"string" required:"true"` + + metadataDeliverConfigSnapshotInput `json:"-" xml:"-"` +} + +type metadataDeliverConfigSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1508,28 +717,16 @@ func (s DeliverConfigSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeliverConfigSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeliverConfigSnapshotInput"} - if s.DeliveryChannelName == nil { - invalidParams.Add(request.NewErrParamRequired("DeliveryChannelName")) - } - if s.DeliveryChannelName != nil && len(*s.DeliveryChannelName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeliveryChannelName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the DeliverConfigSnapshot action in JSON format. type DeliverConfigSnapshotOutput struct { - _ struct{} `type:"structure"` - // The ID of the snapshot that is being created. ConfigSnapshotId *string `locationName:"configSnapshotId" type:"string"` + + metadataDeliverConfigSnapshotOutput `json:"-" xml:"-"` +} + +type metadataDeliverConfigSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1545,16 +742,10 @@ func (s DeliverConfigSnapshotOutput) GoString() string { // A logical container used for storing the configuration changes of an AWS // resource. type DeliveryChannel struct { - _ struct{} `type:"structure"` - - // Options for how AWS Config delivers configuration snapshots to the Amazon - // S3 bucket in your delivery channel. - ConfigSnapshotDeliveryProperties *ConfigSnapshotDeliveryProperties `locationName:"configSnapshotDeliveryProperties" type:"structure"` - // The name of the delivery channel. By default, AWS Config automatically assigns // the name "default" when creating the delivery channel. You cannot change // the assigned name. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" type:"string"` // The name of the Amazon S3 bucket used to store configuration history for // the delivery channel. @@ -1566,6 +757,12 @@ type DeliveryChannel struct { // The Amazon Resource Name (ARN) of the SNS topic that AWS Config delivers // notifications to. SnsTopicARN *string `locationName:"snsTopicARN" type:"string"` + + metadataDeliveryChannel `json:"-" xml:"-"` +} + +type metadataDeliveryChannel struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1578,25 +775,10 @@ func (s DeliveryChannel) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeliveryChannel) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeliveryChannel"} - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The status of a specified delivery channel. // // Valid values: Success | Failure type DeliveryChannelStatus struct { - _ struct{} `type:"structure"` - // A list that contains the status of the delivery of the configuration history // to the specified Amazon S3 bucket. ConfigHistoryDeliveryInfo *ConfigExportDeliveryInfo `locationName:"configHistoryDeliveryInfo" type:"structure"` @@ -1611,228 +793,36 @@ type DeliveryChannelStatus struct { // The name of the delivery channel. Name *string `locationName:"name" type:"string"` -} - -// String returns the string representation -func (s DeliveryChannelStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeliveryChannelStatus) GoString() string { - return s.String() -} - -type DescribeComplianceByConfigRuleInput struct { - _ struct{} `type:"structure"` - - // Filters the results by compliance. - // - // The allowed values are COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA. - ComplianceTypes []*string `type:"list"` - - // Specify one or more AWS Config rule names to filter the results by rule. - ConfigRuleNames []*string `type:"list"` - - // 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"` -} - -// String returns the string representation -func (s DescribeComplianceByConfigRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeComplianceByConfigRuleInput) GoString() string { - return s.String() -} - -type DescribeComplianceByConfigRuleOutput struct { - _ struct{} `type:"structure"` - - // Indicates whether each of the specified AWS Config rules is compliant. - ComplianceByConfigRules []*ComplianceByConfigRule `type:"list"` - - // The string that you use in a subsequent request to get the next page of results - // in a paginated response. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s DescribeComplianceByConfigRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeComplianceByConfigRuleOutput) GoString() string { - return s.String() -} - -type DescribeComplianceByResourceInput struct { - _ struct{} `type:"structure"` - - // Filters the results by compliance. - // - // The allowed values are COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA. - ComplianceTypes []*string `type:"list"` - // The maximum number of evaluation results returned on each page. The default - // is 10. You cannot specify a limit 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 ID of the AWS resource for which you want compliance information. You - // can specify only one resource ID. If you specify a resource ID, you must - // also specify a type for ResourceType. - ResourceId *string `min:"1" type:"string"` - - // The types of AWS resources for which you want compliance information; for - // example, AWS::EC2::Instance. For this action, you can specify that the resource - // type is an AWS account by specifying AWS::::Account. - ResourceType *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeComplianceByResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeComplianceByResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeComplianceByResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeComplianceByResourceInput"} - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.ResourceType != nil && len(*s.ResourceType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeComplianceByResourceOutput struct { - _ struct{} `type:"structure"` - - // Indicates whether the specified AWS resource complies with all of the AWS - // Config rules that evaluate it. - ComplianceByResources []*ComplianceByResource `type:"list"` - - // The string that you use in a subsequent request to get the next page of results - // in a paginated response. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s DescribeComplianceByResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeComplianceByResourceOutput) GoString() string { - return s.String() + metadataDeliveryChannelStatus `json:"-" xml:"-"` } -type DescribeConfigRuleEvaluationStatusInput struct { - _ struct{} `type:"structure"` - - // The name of the AWS managed Config rules for which you want status information. - // If you do not specify any names, AWS Config returns status information for - // all AWS managed Config rules that you use. - ConfigRuleNames []*string `type:"list"` +type metadataDeliveryChannelStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeConfigRuleEvaluationStatusInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeConfigRuleEvaluationStatusInput) GoString() string { - return s.String() -} - -type DescribeConfigRuleEvaluationStatusOutput struct { - _ struct{} `type:"structure"` - - // Status information about your AWS managed Config rules. - ConfigRulesEvaluationStatus []*ConfigRuleEvaluationStatus `type:"list"` -} - -// String returns the string representation -func (s DescribeConfigRuleEvaluationStatusOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeConfigRuleEvaluationStatusOutput) GoString() string { - return s.String() -} - -type DescribeConfigRulesInput struct { - _ struct{} `type:"structure"` - - // The names of the AWS Config rules for which you want details. If you do not - // specify any names, AWS Config returns details for all your rules. - ConfigRuleNames []*string `type:"list"` - - // 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"` -} - -// String returns the string representation -func (s DescribeConfigRulesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeConfigRulesInput) GoString() string { - return s.String() -} - -type DescribeConfigRulesOutput struct { - _ struct{} `type:"structure"` - - // The details about your AWS Config rules. - ConfigRules []*ConfigRule `type:"list"` - - // The string that you use in a subsequent request to get the next page of results - // in a paginated response. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s DescribeConfigRulesOutput) String() string { +func (s DeliveryChannelStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeConfigRulesOutput) GoString() string { +func (s DeliveryChannelStatus) GoString() string { return s.String() } // The input for the DescribeConfigurationRecorderStatus action. type DescribeConfigurationRecorderStatusInput struct { - _ struct{} `type:"structure"` - // The name(s) of the configuration recorder. If the name is not specified, // the action returns the current status of all the configuration recorders // associated with the account. ConfigurationRecorderNames []*string `type:"list"` + + metadataDescribeConfigurationRecorderStatusInput `json:"-" xml:"-"` +} + +type metadataDescribeConfigurationRecorderStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1847,10 +837,14 @@ func (s DescribeConfigurationRecorderStatusInput) GoString() string { // The output for the DescribeConfigurationRecorderStatus action in JSON format. type DescribeConfigurationRecorderStatusOutput struct { - _ struct{} `type:"structure"` - // A list that contains status of the specified recorders. ConfigurationRecordersStatus []*ConfigurationRecorderStatus `type:"list"` + + metadataDescribeConfigurationRecorderStatusOutput `json:"-" xml:"-"` +} + +type metadataDescribeConfigurationRecorderStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1865,10 +859,14 @@ func (s DescribeConfigurationRecorderStatusOutput) GoString() string { // The input for the DescribeConfigurationRecorders action. type DescribeConfigurationRecordersInput struct { - _ struct{} `type:"structure"` - // A list of configuration recorder names. ConfigurationRecorderNames []*string `type:"list"` + + metadataDescribeConfigurationRecordersInput `json:"-" xml:"-"` +} + +type metadataDescribeConfigurationRecordersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1883,479 +881,116 @@ func (s DescribeConfigurationRecordersInput) GoString() string { // The output for the DescribeConfigurationRecorders action. type DescribeConfigurationRecordersOutput struct { - _ struct{} `type:"structure"` - // A list that contains the descriptions of the specified configuration recorders. ConfigurationRecorders []*ConfigurationRecorder `type:"list"` -} - -// String returns the string representation -func (s DescribeConfigurationRecordersOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeConfigurationRecordersOutput) GoString() string { - return s.String() -} - -// The input for the DeliveryChannelStatus action. -type DescribeDeliveryChannelStatusInput struct { - _ struct{} `type:"structure"` - // A list of delivery channel names. - DeliveryChannelNames []*string `type:"list"` + metadataDescribeConfigurationRecordersOutput `json:"-" xml:"-"` } -// String returns the string representation -func (s DescribeDeliveryChannelStatusInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDeliveryChannelStatusInput) GoString() string { - return s.String() -} - -// The output for the DescribeDeliveryChannelStatus action. -type DescribeDeliveryChannelStatusOutput struct { - _ struct{} `type:"structure"` - - // A list that contains the status of a specified delivery channel. - DeliveryChannelsStatus []*DeliveryChannelStatus `type:"list"` -} - -// String returns the string representation -func (s DescribeDeliveryChannelStatusOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDeliveryChannelStatusOutput) GoString() string { - return s.String() -} - -// The input for the DescribeDeliveryChannels action. -type DescribeDeliveryChannelsInput struct { - _ struct{} `type:"structure"` - - // A list of delivery channel names. - DeliveryChannelNames []*string `type:"list"` -} - -// String returns the string representation -func (s DescribeDeliveryChannelsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDeliveryChannelsInput) GoString() string { - return s.String() -} - -// The output for the DescribeDeliveryChannels action. -type DescribeDeliveryChannelsOutput struct { - _ struct{} `type:"structure"` - - // A list that contains the descriptions of the specified delivery channel. - DeliveryChannels []*DeliveryChannel `type:"list"` -} - -// String returns the string representation -func (s DescribeDeliveryChannelsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDeliveryChannelsOutput) GoString() string { - return s.String() -} - -// Identifies an AWS resource and indicates whether it complies with the AWS -// Config rule that it was evaluated against. -type Evaluation struct { - _ struct{} `type:"structure"` - - // Supplementary information about how the evaluation determined the compliance. - Annotation *string `min:"1" type:"string"` - - // The ID of the AWS resource that was evaluated. - ComplianceResourceId *string `min:"1" type:"string" required:"true"` - - // The type of AWS resource that was evaluated. - ComplianceResourceType *string `min:"1" type:"string" required:"true"` - - // Indicates whether the AWS resource complies with the AWS Config rule that - // it was evaluated against. - // - // For the Evaluation data type, AWS Config supports only the COMPLIANT, NON_COMPLIANT, - // and NOT_APPLICABLE values. AWS Config does not support the INSUFFICIENT_DATA - // value for this data type. - // - // Similarly, AWS Config does not accept INSUFFICIENT_DATA as the value for - // ComplianceType from a PutEvaluations request. For example, an AWS Lambda - // function for a custom Config rule cannot pass an INSUFFICIENT_DATA value - // to AWS Config. - ComplianceType *string `type:"string" required:"true" enum:"ComplianceType"` - - // The time of the event in AWS Config that triggered the evaluation. For event-based - // evaluations, the time indicates when AWS Config created the configuration - // item that triggered the evaluation. For periodic evaluations, the time indicates - // when AWS Config delivered the configuration snapshot that triggered the evaluation. - OrderingTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` -} - -// 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() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Evaluation) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Evaluation"} - if s.Annotation != nil && len(*s.Annotation) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Annotation", 1)) - } - if s.ComplianceResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ComplianceResourceId")) - } - if s.ComplianceResourceId != nil && len(*s.ComplianceResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ComplianceResourceId", 1)) - } - if s.ComplianceResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ComplianceResourceType")) - } - if s.ComplianceResourceType != nil && len(*s.ComplianceResourceType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ComplianceResourceType", 1)) - } - if s.ComplianceType == nil { - invalidParams.Add(request.NewErrParamRequired("ComplianceType")) - } - if s.OrderingTimestamp == nil { - invalidParams.Add(request.NewErrParamRequired("OrderingTimestamp")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The details of an AWS Config evaluation. Provides the AWS resource that was -// evaluated, the compliance of the resource, related timestamps, and supplementary -// information. -type EvaluationResult struct { - _ struct{} `type:"structure"` - - // Supplementary information about how the evaluation determined the compliance. - Annotation *string `min:"1" type:"string"` - - // Indicates whether the AWS resource complies with the AWS Config rule that - // evaluated it. - // - // For the EvaluationResult data type, AWS Config supports only the COMPLIANT, - // NON_COMPLIANT, and NOT_APPLICABLE values. AWS Config does not support the - // INSUFFICIENT_DATA value for the EvaluationResult data type. - ComplianceType *string `type:"string" enum:"ComplianceType"` - - // The time when the AWS Config rule evaluated the AWS resource. - ConfigRuleInvokedTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Uniquely identifies the evaluation result. - EvaluationResultIdentifier *EvaluationResultIdentifier `type:"structure"` - - // The time when AWS Config recorded the evaluation result. - ResultRecordedTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // An encrypted token that associates an evaluation with an AWS Config rule. - // The token identifies the rule, the AWS resource being evaluated, and the - // event that triggered the evaluation. - ResultToken *string `type:"string"` -} - -// String returns the string representation -func (s EvaluationResult) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EvaluationResult) GoString() string { - return s.String() -} - -// Uniquely identifies an evaluation result. -type EvaluationResultIdentifier struct { - _ struct{} `type:"structure"` - - // Identifies an AWS Config rule used to evaluate an AWS resource, and provides - // the type and ID of the evaluated resource. - EvaluationResultQualifier *EvaluationResultQualifier `type:"structure"` - - // The time of the event that triggered the evaluation of your AWS resources. - // The time can indicate when AWS Config delivered a configuration item change - // notification, or it can indicate when AWS Config delivered the configuration - // snapshot, depending on which event triggered the evaluation. - OrderingTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s EvaluationResultIdentifier) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EvaluationResultIdentifier) GoString() string { - return s.String() -} - -// Identifies an AWS Config rule that evaluated an AWS resource, and provides -// the type and ID of the resource that the rule evaluated. -type EvaluationResultQualifier struct { - _ struct{} `type:"structure"` - - // The name of the AWS Config rule that was used in the evaluation. - ConfigRuleName *string `min:"1" type:"string"` - - // The ID of the evaluated AWS resource. - ResourceId *string `min:"1" type:"string"` - - // The type of AWS resource that was evaluated. - ResourceType *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s EvaluationResultQualifier) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EvaluationResultQualifier) GoString() string { - return s.String() -} - -type GetComplianceDetailsByConfigRuleInput struct { - _ struct{} `type:"structure"` - - // Filters the results by compliance. - // - // The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE. - ComplianceTypes []*string `type:"list"` - - // The name of the AWS Config rule for which you want compliance information. - ConfigRuleName *string `min:"1" type:"string" required:"true"` - - // The maximum number of evaluation results returned on each page. The default - // is 10. You cannot specify a limit 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"` -} - -// String returns the string representation -func (s GetComplianceDetailsByConfigRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetComplianceDetailsByConfigRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetComplianceDetailsByConfigRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetComplianceDetailsByConfigRuleInput"} - if s.ConfigRuleName == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigRuleName")) - } - if s.ConfigRuleName != nil && len(*s.ConfigRuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConfigRuleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetComplianceDetailsByConfigRuleOutput struct { - _ struct{} `type:"structure"` - - // Indicates whether the AWS resource complies with the specified AWS Config - // rule. - EvaluationResults []*EvaluationResult `type:"list"` - - // The string that you use in a subsequent request to get the next page of results - // in a paginated response. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s GetComplianceDetailsByConfigRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetComplianceDetailsByConfigRuleOutput) GoString() string { - return s.String() -} - -type GetComplianceDetailsByResourceInput struct { - _ struct{} `type:"structure"` - - // Filters the results by compliance. - // - // The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE. - ComplianceTypes []*string `type:"list"` - - // 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 ID of the AWS resource for which you want compliance information. - ResourceId *string `min:"1" type:"string" required:"true"` - - // The type of the AWS resource for which you want compliance information. - ResourceType *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetComplianceDetailsByResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetComplianceDetailsByResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetComplianceDetailsByResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetComplianceDetailsByResourceInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } - if s.ResourceType != nil && len(*s.ResourceType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetComplianceDetailsByResourceOutput struct { - _ struct{} `type:"structure"` - - // Indicates whether the specified AWS resource complies each AWS Config rule. - EvaluationResults []*EvaluationResult `type:"list"` - - // The string that you use in a subsequent request to get the next page of results - // in a paginated response. - NextToken *string `type:"string"` +type metadataDescribeConfigurationRecordersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetComplianceDetailsByResourceOutput) String() string { +func (s DescribeConfigurationRecordersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetComplianceDetailsByResourceOutput) GoString() string { +func (s DescribeConfigurationRecordersOutput) GoString() string { return s.String() } -type GetComplianceSummaryByConfigRuleInput struct { - _ struct{} `type:"structure"` +// The input for the DeliveryChannelStatus action. +type DescribeDeliveryChannelStatusInput struct { + // A list of delivery channel names. + DeliveryChannelNames []*string `type:"list"` + + metadataDescribeDeliveryChannelStatusInput `json:"-" xml:"-"` +} + +type metadataDescribeDeliveryChannelStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetComplianceSummaryByConfigRuleInput) String() string { +func (s DescribeDeliveryChannelStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetComplianceSummaryByConfigRuleInput) GoString() string { +func (s DescribeDeliveryChannelStatusInput) GoString() string { return s.String() } -type GetComplianceSummaryByConfigRuleOutput struct { - _ struct{} `type:"structure"` +// The output for the DescribeDeliveryChannelStatus action. +type DescribeDeliveryChannelStatusOutput struct { + // A list that contains the status of a specified delivery channel. + DeliveryChannelsStatus []*DeliveryChannelStatus `type:"list"` + + metadataDescribeDeliveryChannelStatusOutput `json:"-" xml:"-"` +} - // The number of AWS Config rules that are compliant and the number that are - // noncompliant, up to a maximum of 25 for each. - ComplianceSummary *ComplianceSummary `type:"structure"` +type metadataDescribeDeliveryChannelStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetComplianceSummaryByConfigRuleOutput) String() string { +func (s DescribeDeliveryChannelStatusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetComplianceSummaryByConfigRuleOutput) GoString() string { +func (s DescribeDeliveryChannelStatusOutput) GoString() string { return s.String() } -type GetComplianceSummaryByResourceTypeInput struct { - _ struct{} `type:"structure"` +// The input for the DescribeDeliveryChannels action. +type DescribeDeliveryChannelsInput struct { + // A list of delivery channel names. + DeliveryChannelNames []*string `type:"list"` - // Specify one or more resource types to get the number of resources that are - // compliant and the number that are noncompliant for each resource type. - // - // For this request, you can specify an AWS resource type such as AWS::EC2::Instance, - // and you can specify that the resource type is an AWS account by specifying - // AWS::::Account. - ResourceTypes []*string `type:"list"` + metadataDescribeDeliveryChannelsInput `json:"-" xml:"-"` +} + +type metadataDescribeDeliveryChannelsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetComplianceSummaryByResourceTypeInput) String() string { +func (s DescribeDeliveryChannelsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetComplianceSummaryByResourceTypeInput) GoString() string { +func (s DescribeDeliveryChannelsInput) GoString() string { return s.String() } -type GetComplianceSummaryByResourceTypeOutput struct { - _ struct{} `type:"structure"` +// The output for the DescribeDeliveryChannels action. +type DescribeDeliveryChannelsOutput struct { + // A list that contains the descriptions of the specified delivery channel. + DeliveryChannels []*DeliveryChannel `type:"list"` + + metadataDescribeDeliveryChannelsOutput `json:"-" xml:"-"` +} - // The number of resources that are compliant and the number that are noncompliant. - // If one or more resource types were provided with the request, the numbers - // are returned for each resource type. The maximum number returned is 100. - ComplianceSummariesByResourceType []*ComplianceSummaryByResourceType `type:"list"` +type metadataDescribeDeliveryChannelsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetComplianceSummaryByResourceTypeOutput) String() string { +func (s DescribeDeliveryChannelsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetComplianceSummaryByResourceTypeOutput) GoString() string { +func (s DescribeDeliveryChannelsOutput) GoString() string { return s.String() } // The input for the GetResourceConfigHistory action. type GetResourceConfigHistoryInput struct { - _ struct{} `type:"structure"` - // The chronological order for configuration items listed. By default the results // are listed in reverse chronological order. ChronologicalOrder *string `locationName:"chronologicalOrder" type:"string" enum:"ChronologicalOrder"` @@ -2383,6 +1018,12 @@ type GetResourceConfigHistoryInput struct { // The resource type. ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"` + + metadataGetResourceConfigHistoryInput `json:"-" xml:"-"` +} + +type metadataGetResourceConfigHistoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2395,32 +1036,20 @@ func (s GetResourceConfigHistoryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetResourceConfigHistoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetResourceConfigHistoryInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the GetResourceConfigHistory action. type GetResourceConfigHistoryOutput struct { - _ struct{} `type:"structure"` - // A list that contains the configuration history of one or more resources. ConfigurationItems []*ConfigurationItem `locationName:"configurationItems" type:"list"` // 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"` + + metadataGetResourceConfigHistoryOutput `json:"-" xml:"-"` +} + +type metadataGetResourceConfigHistoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2434,8 +1063,6 @@ func (s GetResourceConfigHistoryOutput) GoString() string { } 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"` @@ -2461,6 +1088,12 @@ type ListDiscoveredResourcesInput struct { // The type of resources that you want AWS Config to list in the response. ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"` + + metadataListDiscoveredResourcesInput `json:"-" xml:"-"` +} + +type metadataListDiscoveredResourcesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2473,22 +1106,7 @@ 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 -} - 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"` @@ -2496,81 +1114,35 @@ type ListDiscoveredResourcesOutput struct { // 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() -} - -type PutConfigRuleInput struct { - _ struct{} `type:"structure"` - - // An AWS Lambda function that evaluates configuration items to assess whether - // your AWS resources comply with your desired configurations. This function - // can run when AWS Config detects a configuration change to an AWS resource, - // or when it delivers a configuration snapshot of the resources in the account. - // - // For more information about developing and using AWS Config rules, see Evaluating - // AWS Resource Configurations with AWS Config (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html) - // in the AWS Config Developer Guide. - ConfigRule *ConfigRule `type:"structure" required:"true"` -} - -// String returns the string representation -func (s PutConfigRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutConfigRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutConfigRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutConfigRuleInput"} - if s.ConfigRule == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigRule")) - } - if s.ConfigRule != nil { - if err := s.ConfigRule.Validate(); err != nil { - invalidParams.AddNested("ConfigRule", err.(request.ErrInvalidParams)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataListDiscoveredResourcesOutput `json:"-" xml:"-"` } -type PutConfigRuleOutput struct { - _ struct{} `type:"structure"` +type metadataListDiscoveredResourcesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s PutConfigRuleOutput) String() string { +func (s ListDiscoveredResourcesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutConfigRuleOutput) GoString() string { +func (s ListDiscoveredResourcesOutput) GoString() string { return s.String() } // The input for the PutConfigurationRecorder action. type PutConfigurationRecorderInput struct { - _ struct{} `type:"structure"` - // The configuration recorder object that records each configuration change // made to the resources. ConfigurationRecorder *ConfigurationRecorder `type:"structure" required:"true"` + + metadataPutConfigurationRecorderInput `json:"-" xml:"-"` +} + +type metadataPutConfigurationRecorderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2583,26 +1155,12 @@ func (s PutConfigurationRecorderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutConfigurationRecorderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutConfigurationRecorderInput"} - if s.ConfigurationRecorder == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigurationRecorder")) - } - if s.ConfigurationRecorder != nil { - if err := s.ConfigurationRecorder.Validate(); err != nil { - invalidParams.AddNested("ConfigurationRecorder", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutConfigurationRecorderOutput struct { + metadataPutConfigurationRecorderOutput `json:"-" xml:"-"` } -type PutConfigurationRecorderOutput struct { - _ struct{} `type:"structure"` +type metadataPutConfigurationRecorderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2617,11 +1175,15 @@ func (s PutConfigurationRecorderOutput) GoString() string { // The input for the PutDeliveryChannel action. type PutDeliveryChannelInput struct { - _ struct{} `type:"structure"` - // The configuration delivery channel object that delivers the configuration // information to an Amazon S3 bucket, and to an Amazon SNS topic. DeliveryChannel *DeliveryChannel `type:"structure" required:"true"` + + metadataPutDeliveryChannelInput `json:"-" xml:"-"` +} + +type metadataPutDeliveryChannelInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2634,26 +1196,12 @@ func (s PutDeliveryChannelInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutDeliveryChannelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutDeliveryChannelInput"} - if s.DeliveryChannel == nil { - invalidParams.Add(request.NewErrParamRequired("DeliveryChannel")) - } - if s.DeliveryChannel != nil { - if err := s.DeliveryChannel.Validate(); err != nil { - invalidParams.AddNested("DeliveryChannel", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutDeliveryChannelOutput struct { + metadataPutDeliveryChannelOutput `json:"-" xml:"-"` } -type PutDeliveryChannelOutput struct { - _ struct{} `type:"structure"` +type metadataPutDeliveryChannelOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2666,139 +1214,29 @@ func (s PutDeliveryChannelOutput) GoString() string { return s.String() } -type PutEvaluationsInput struct { - _ struct{} `type:"structure"` - - // The assessments that the AWS Lambda function performs. Each evaluation identifies - // an AWS resource and indicates whether it complies with the AWS Config rule - // that invokes the AWS Lambda function. - Evaluations []*Evaluation `type:"list"` - - // An encrypted token that associates an evaluation with an AWS Config rule. - // Identifies the rule and the event that triggered the evaluation - ResultToken *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s PutEvaluationsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutEvaluationsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutEvaluationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutEvaluationsInput"} - if s.ResultToken == nil { - invalidParams.Add(request.NewErrParamRequired("ResultToken")) - } - if s.Evaluations != nil { - for i, v := range s.Evaluations { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Evaluations", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type PutEvaluationsOutput struct { - _ struct{} `type:"structure"` - - // Requests that failed because of a client or server error. - FailedEvaluations []*Evaluation `type:"list"` -} - -// String returns the string representation -func (s PutEvaluationsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutEvaluationsOutput) GoString() string { - return s.String() -} - -// Specifies the types of AWS resource for which AWS Config records configuration -// changes. -// -// In the recording group, you specify whether all supported types or specific -// types of resources are recorded. -// -// By default, AWS Config records configuration changes for all supported types -// of regional resources that AWS Config discovers in the region in which it -// is running. Regional resources are tied to a region and can be used only -// in that region. Examples of regional resources are EC2 instances and EBS -// volumes. +// The group of AWS resource types that AWS Config records when starting the +// configuration recorder. // -// You can also have AWS Config record configuration changes for supported -// types of global resources (for example, IAM resources). Global resources -// are not tied to an individual region and can be used in all regions. -// -// The configuration details for any global resource are the same in all regions. -// If you customize AWS Config in multiple regions to record global resources, -// it will create multiple configuration items each time a global resource changes: -// one configuration item for each region. These configuration items will contain -// identical data. To prevent duplicate configuration items, you should consider -// customizing AWS Config in only one region to record global resources, unless -// you want the configuration items to be available in multiple regions. If -// you don't want AWS Config to record all resources, you can specify which -// types of resources it will record with the resourceTypes parameter. -// -// For a list of supported resource types, see Supported resource types (http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources). -// -// For more information, see Selecting Which Resources AWS Config Records (http://docs.aws.amazon.com/config/latest/developerguide/select-resources.html). +// recordingGroup can have one and only one parameter. Choose either allSupported +// or resourceTypes. type RecordingGroup struct { - _ struct{} `type:"structure"` - - // Specifies whether AWS Config records configuration changes for every supported - // type of regional resource. - // - // If you set this option to true, when AWS Config adds support for a new type - // of regional resource, it automatically starts recording resources of that - // type. - // - // If you set this option to true, you cannot enumerate a list of resourceTypes. + // Records all supported resource types in the recording group. For a list of + // supported resource types, see Supported resource types (http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources). + // If you specify allSupported, you cannot enumerate a list of resourceTypes. AllSupported *bool `locationName:"allSupported" type:"boolean"` - // Specifies whether AWS Config includes all supported types of global resources - // (for example, IAM resources) with the resources that it records. - // - // Before you can set this option to true, you must set the allSupported option - // to true. - // - // If you set this option to true, when AWS Config adds support for a new type - // of global resource, it automatically starts recording resources of that type. - // - // The configuration details for any global resource are the same in all regions. - // To prevent duplicate configuration items, you should consider customizing - // AWS Config in only one region to record global resources. - IncludeGlobalResourceTypes *bool `locationName:"includeGlobalResourceTypes" type:"boolean"` - - // A comma-separated list that specifies the types of AWS resources for which - // AWS Config records configuration changes (for example, AWS::EC2::Instance - // or AWS::CloudTrail::Trail). - // - // Before you can set this option to true, you must set the allSupported option - // to false. - // - // If you set this option to true, when AWS Config adds support for a new type - // of resource, it will not record resources of that type unless you manually - // add that type to your recording group. - // - // For a list of valid resourceTypes values, see the resourceType Value column - // in Supported AWS Resource Types (http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources). + // A comma-separated list of strings representing valid AWS resource types (for + // example, AWS::EC2::Instance or AWS::CloudTrail::Trail). resourceTypes is + // only valid if you have chosen not to select allSupported. For a list of valid + // resourceTypes values, see the resourceType Value column in the following + // topic: Supported AWS Resource Types (http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources). ResourceTypes []*string `locationName:"resourceTypes" type:"list"` + + metadataRecordingGroup `json:"-" xml:"-"` +} + +type metadataRecordingGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2813,8 +1251,6 @@ func (s RecordingGroup) GoString() string { // The relationship of the related resource to the main resource. type Relationship struct { - _ struct{} `type:"structure"` - // The type of relationship with the related resource. RelationshipName *string `locationName:"relationshipName" type:"string"` @@ -2826,6 +1262,12 @@ type Relationship struct { // The resource type of the related resource. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + metadataRelationship `json:"-" xml:"-"` +} + +type metadataRelationship struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2841,8 +1283,6 @@ func (s Relationship) GoString() 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. type ResourceIdentifier struct { - _ struct{} `type:"structure"` - // The time that the resource was deleted. ResourceDeletionTime *time.Time `locationName:"resourceDeletionTime" type:"timestamp" timestampFormat:"unix"` @@ -2854,153 +1294,35 @@ type ResourceIdentifier struct { // The type of resource. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` -} - -// String returns the string representation -func (s ResourceIdentifier) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResourceIdentifier) GoString() string { - return s.String() -} - -// Defines which resources trigger an evaluation for an AWS Config rule. The -// scope can include one or more resource types, a combination of a tag key -// and value, or a combination of one resource type and one resource ID. Specify -// a scope to constrain which resources trigger an evaluation for a rule. Otherwise, -// evaluations for the rule are triggered when any resource in your recording -// group changes in configuration. -type Scope struct { - _ struct{} `type:"structure"` - - // The IDs of the only AWS resource that you want to trigger an evaluation for - // the rule. If you specify a resource ID, you must specify one resource type - // for ComplianceResourceTypes. - ComplianceResourceId *string `min:"1" type:"string"` - - // The resource types of only those AWS resources that you want to trigger an - // evaluation for the rule. You can only specify one type if you also specify - // a resource ID for ComplianceResourceId. - ComplianceResourceTypes []*string `type:"list"` - - // The tag key that is applied to only those AWS resources that you want you - // want to trigger an evaluation for the rule. - TagKey *string `min:"1" type:"string"` - - // The tag value applied to only those AWS resources that you want to trigger - // an evaluation for the rule. If you specify a value for TagValue, you must - // also specify a value for TagKey. - TagValue *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s Scope) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Scope) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Scope) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Scope"} - if s.ComplianceResourceId != nil && len(*s.ComplianceResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ComplianceResourceId", 1)) - } - if s.TagKey != nil && len(*s.TagKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagKey", 1)) - } - if s.TagValue != nil && len(*s.TagValue) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagValue", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} -// Provides the AWS Config rule owner (AWS or customer), the rule identifier, -// and the events that trigger the evaluation of your AWS resources. -type Source struct { - _ struct{} `type:"structure"` - - // Indicates whether AWS or the customer owns and manages the AWS Config rule. - Owner *string `type:"string" enum:"Owner"` - - // Provides the source and type of the event that causes AWS Config to evaluate - // your AWS resources. - SourceDetails []*SourceDetail `type:"list"` - - // For AWS managed Config rules, a pre-defined identifier from a list. To reference - // the list, see Using AWS Managed Config Rules (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html). - // - // For customer managed Config rules, the identifier is the Amazon Resource - // Name (ARN) of the rule's AWS Lambda function. - SourceIdentifier *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s Source) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Source) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Source) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Source"} - if s.SourceIdentifier != nil && len(*s.SourceIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceIdentifier", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataResourceIdentifier `json:"-" xml:"-"` } -// Provides the source and type of the event that triggers AWS Config to evaluate -// your AWS resources against a rule. -type SourceDetail struct { - _ struct{} `type:"structure"` - - // The source of the event, such as an AWS service, that triggers AWS Config - // to evaluate your AWS resources. - EventSource *string `type:"string" enum:"EventSource"` - - // The type of SNS message that triggers AWS Config to run an evaluation. For - // evaluations that are initiated when AWS Config delivers a configuration item - // change notification, you must use ConfigurationItemChangeNotification. For - // evaluations that are initiated when AWS Config delivers a configuration snapshot, - // you must use ConfigurationSnapshotDeliveryCompleted. - MessageType *string `type:"string" enum:"MessageType"` +type metadataResourceIdentifier struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s SourceDetail) String() string { +func (s ResourceIdentifier) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SourceDetail) GoString() string { +func (s ResourceIdentifier) GoString() string { return s.String() } // The input for the StartConfigurationRecorder action. type StartConfigurationRecorderInput struct { - _ struct{} `type:"structure"` - // The name of the recorder object that records each configuration change made // to the resources. - ConfigurationRecorderName *string `min:"1" type:"string" required:"true"` + ConfigurationRecorderName *string `type:"string" required:"true"` + + metadataStartConfigurationRecorderInput `json:"-" xml:"-"` +} + +type metadataStartConfigurationRecorderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3013,24 +1335,12 @@ func (s StartConfigurationRecorderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartConfigurationRecorderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartConfigurationRecorderInput"} - if s.ConfigurationRecorderName == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigurationRecorderName")) - } - if s.ConfigurationRecorderName != nil && len(*s.ConfigurationRecorderName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConfigurationRecorderName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type StartConfigurationRecorderOutput struct { + metadataStartConfigurationRecorderOutput `json:"-" xml:"-"` } -type StartConfigurationRecorderOutput struct { - _ struct{} `type:"structure"` +type metadataStartConfigurationRecorderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3045,11 +1355,15 @@ func (s StartConfigurationRecorderOutput) GoString() string { // The input for the StopConfigurationRecorder action. type StopConfigurationRecorderInput struct { - _ struct{} `type:"structure"` - // The name of the recorder object that records each configuration change made // to the resources. - ConfigurationRecorderName *string `min:"1" type:"string" required:"true"` + ConfigurationRecorderName *string `type:"string" required:"true"` + + metadataStopConfigurationRecorderInput `json:"-" xml:"-"` +} + +type metadataStopConfigurationRecorderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3062,24 +1376,12 @@ func (s StopConfigurationRecorderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopConfigurationRecorderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopConfigurationRecorderInput"} - if s.ConfigurationRecorderName == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigurationRecorderName")) - } - if s.ConfigurationRecorderName != nil && len(*s.ConfigurationRecorderName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConfigurationRecorderName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type StopConfigurationRecorderOutput struct { + metadataStopConfigurationRecorderOutput `json:"-" xml:"-"` } -type StopConfigurationRecorderOutput struct { - _ struct{} `type:"structure"` +type metadataStopConfigurationRecorderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3099,24 +1401,6 @@ const ( ChronologicalOrderForward = "Forward" ) -const ( - // @enum ComplianceType - ComplianceTypeCompliant = "COMPLIANT" - // @enum ComplianceType - ComplianceTypeNonCompliant = "NON_COMPLIANT" - // @enum ComplianceType - ComplianceTypeNotApplicable = "NOT_APPLICABLE" - // @enum ComplianceType - ComplianceTypeInsufficientData = "INSUFFICIENT_DATA" -) - -const ( - // @enum ConfigRuleState - ConfigRuleStateActive = "ACTIVE" - // @enum ConfigRuleState - ConfigRuleStateDeleting = "DELETING" -) - const ( // @enum ConfigurationItemStatus ConfigurationItemStatusOk = "Ok" @@ -3137,38 +1421,6 @@ const ( DeliveryStatusNotApplicable = "Not_Applicable" ) -const ( - // @enum EventSource - EventSourceAwsConfig = "aws.config" -) - -const ( - // @enum MaximumExecutionFrequency - MaximumExecutionFrequencyOneHour = "One_Hour" - // @enum MaximumExecutionFrequency - MaximumExecutionFrequencyThreeHours = "Three_Hours" - // @enum MaximumExecutionFrequency - MaximumExecutionFrequencySixHours = "Six_Hours" - // @enum MaximumExecutionFrequency - MaximumExecutionFrequencyTwelveHours = "Twelve_Hours" - // @enum MaximumExecutionFrequency - MaximumExecutionFrequencyTwentyFourHours = "TwentyFour_Hours" -) - -const ( - // @enum MessageType - MessageTypeConfigurationItemChangeNotification = "ConfigurationItemChangeNotification" - // @enum MessageType - MessageTypeConfigurationSnapshotDeliveryCompleted = "ConfigurationSnapshotDeliveryCompleted" -) - -const ( - // @enum Owner - OwnerCustomLambda = "CUSTOM_LAMBDA" - // @enum Owner - OwnerAws = "AWS" -) - const ( // @enum RecorderStatus RecorderStatusPending = "Pending" @@ -3184,8 +1436,6 @@ const ( // @enum ResourceType ResourceTypeAwsEc2Eip = "AWS::EC2::EIP" // @enum ResourceType - ResourceTypeAwsEc2Host = "AWS::EC2::Host" - // @enum ResourceType ResourceTypeAwsEc2Instance = "AWS::EC2::Instance" // @enum ResourceType ResourceTypeAwsEc2InternetGateway = "AWS::EC2::InternetGateway" @@ -3209,12 +1459,4 @@ const ( ResourceTypeAwsEc2Vpnconnection = "AWS::EC2::VPNConnection" // @enum ResourceType ResourceTypeAwsEc2Vpngateway = "AWS::EC2::VPNGateway" - // @enum ResourceType - ResourceTypeAwsIamGroup = "AWS::IAM::Group" - // @enum ResourceType - ResourceTypeAwsIamPolicy = "AWS::IAM::Policy" - // @enum ResourceType - ResourceTypeAwsIamRole = "AWS::IAM::Role" - // @enum ResourceType - ResourceTypeAwsIamUser = "AWS::IAM::User" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go index 934390591..80232c6e5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go @@ -10,10 +10,6 @@ import ( // ConfigServiceAPI is the interface type for configservice.ConfigService. type ConfigServiceAPI interface { - DeleteConfigRuleRequest(*configservice.DeleteConfigRuleInput) (*request.Request, *configservice.DeleteConfigRuleOutput) - - DeleteConfigRule(*configservice.DeleteConfigRuleInput) (*configservice.DeleteConfigRuleOutput, error) - DeleteDeliveryChannelRequest(*configservice.DeleteDeliveryChannelInput) (*request.Request, *configservice.DeleteDeliveryChannelOutput) DeleteDeliveryChannel(*configservice.DeleteDeliveryChannelInput) (*configservice.DeleteDeliveryChannelOutput, error) @@ -22,22 +18,6 @@ type ConfigServiceAPI interface { DeliverConfigSnapshot(*configservice.DeliverConfigSnapshotInput) (*configservice.DeliverConfigSnapshotOutput, error) - DescribeComplianceByConfigRuleRequest(*configservice.DescribeComplianceByConfigRuleInput) (*request.Request, *configservice.DescribeComplianceByConfigRuleOutput) - - DescribeComplianceByConfigRule(*configservice.DescribeComplianceByConfigRuleInput) (*configservice.DescribeComplianceByConfigRuleOutput, error) - - DescribeComplianceByResourceRequest(*configservice.DescribeComplianceByResourceInput) (*request.Request, *configservice.DescribeComplianceByResourceOutput) - - DescribeComplianceByResource(*configservice.DescribeComplianceByResourceInput) (*configservice.DescribeComplianceByResourceOutput, error) - - DescribeConfigRuleEvaluationStatusRequest(*configservice.DescribeConfigRuleEvaluationStatusInput) (*request.Request, *configservice.DescribeConfigRuleEvaluationStatusOutput) - - DescribeConfigRuleEvaluationStatus(*configservice.DescribeConfigRuleEvaluationStatusInput) (*configservice.DescribeConfigRuleEvaluationStatusOutput, error) - - DescribeConfigRulesRequest(*configservice.DescribeConfigRulesInput) (*request.Request, *configservice.DescribeConfigRulesOutput) - - DescribeConfigRules(*configservice.DescribeConfigRulesInput) (*configservice.DescribeConfigRulesOutput, error) - DescribeConfigurationRecorderStatusRequest(*configservice.DescribeConfigurationRecorderStatusInput) (*request.Request, *configservice.DescribeConfigurationRecorderStatusOutput) DescribeConfigurationRecorderStatus(*configservice.DescribeConfigurationRecorderStatusInput) (*configservice.DescribeConfigurationRecorderStatusOutput, error) @@ -54,22 +34,6 @@ type ConfigServiceAPI interface { DescribeDeliveryChannels(*configservice.DescribeDeliveryChannelsInput) (*configservice.DescribeDeliveryChannelsOutput, error) - GetComplianceDetailsByConfigRuleRequest(*configservice.GetComplianceDetailsByConfigRuleInput) (*request.Request, *configservice.GetComplianceDetailsByConfigRuleOutput) - - GetComplianceDetailsByConfigRule(*configservice.GetComplianceDetailsByConfigRuleInput) (*configservice.GetComplianceDetailsByConfigRuleOutput, error) - - GetComplianceDetailsByResourceRequest(*configservice.GetComplianceDetailsByResourceInput) (*request.Request, *configservice.GetComplianceDetailsByResourceOutput) - - GetComplianceDetailsByResource(*configservice.GetComplianceDetailsByResourceInput) (*configservice.GetComplianceDetailsByResourceOutput, error) - - GetComplianceSummaryByConfigRuleRequest(*configservice.GetComplianceSummaryByConfigRuleInput) (*request.Request, *configservice.GetComplianceSummaryByConfigRuleOutput) - - GetComplianceSummaryByConfigRule(*configservice.GetComplianceSummaryByConfigRuleInput) (*configservice.GetComplianceSummaryByConfigRuleOutput, error) - - GetComplianceSummaryByResourceTypeRequest(*configservice.GetComplianceSummaryByResourceTypeInput) (*request.Request, *configservice.GetComplianceSummaryByResourceTypeOutput) - - GetComplianceSummaryByResourceType(*configservice.GetComplianceSummaryByResourceTypeInput) (*configservice.GetComplianceSummaryByResourceTypeOutput, error) - GetResourceConfigHistoryRequest(*configservice.GetResourceConfigHistoryInput) (*request.Request, *configservice.GetResourceConfigHistoryOutput) GetResourceConfigHistory(*configservice.GetResourceConfigHistoryInput) (*configservice.GetResourceConfigHistoryOutput, error) @@ -80,10 +44,6 @@ type ConfigServiceAPI interface { ListDiscoveredResources(*configservice.ListDiscoveredResourcesInput) (*configservice.ListDiscoveredResourcesOutput, error) - PutConfigRuleRequest(*configservice.PutConfigRuleInput) (*request.Request, *configservice.PutConfigRuleOutput) - - PutConfigRule(*configservice.PutConfigRuleInput) (*configservice.PutConfigRuleOutput, error) - PutConfigurationRecorderRequest(*configservice.PutConfigurationRecorderInput) (*request.Request, *configservice.PutConfigurationRecorderOutput) PutConfigurationRecorder(*configservice.PutConfigurationRecorderInput) (*configservice.PutConfigurationRecorderOutput, error) @@ -92,10 +52,6 @@ type ConfigServiceAPI interface { PutDeliveryChannel(*configservice.PutDeliveryChannelInput) (*configservice.PutDeliveryChannelOutput, error) - PutEvaluationsRequest(*configservice.PutEvaluationsInput) (*request.Request, *configservice.PutEvaluationsOutput) - - PutEvaluations(*configservice.PutEvaluationsInput) (*configservice.PutEvaluationsOutput, error) - StartConfigurationRecorderRequest(*configservice.StartConfigurationRecorderInput) (*request.Request, *configservice.StartConfigurationRecorderOutput) StartConfigurationRecorder(*configservice.StartConfigurationRecorderInput) (*configservice.StartConfigurationRecorderOutput, error) @@ -104,5 +60,3 @@ type ConfigServiceAPI interface { StopConfigurationRecorder(*configservice.StopConfigurationRecorderInput) (*configservice.StopConfigurationRecorderOutput, error) } - -var _ ConfigServiceAPI = (*configservice.ConfigService)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface_test.go new file mode 100644 index 000000000..e2f11ec4a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package configserviceiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/configservice" + "github.com/aws/aws-sdk-go/service/configservice/configserviceiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*configserviceiface.ConfigServiceAPI)(nil), configservice.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go index b16be5385..7664082b3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/examples_test.go @@ -8,34 +8,14 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/configservice" ) var _ time.Duration var _ bytes.Buffer -func ExampleConfigService_DeleteConfigRule() { - svc := configservice.New(session.New()) - - params := &configservice.DeleteConfigRuleInput{ - ConfigRuleName: aws.String("StringWithCharLimit64"), // Required - } - resp, err := svc.DeleteConfigRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleConfigService_DeleteDeliveryChannel() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.DeleteDeliveryChannelInput{ DeliveryChannelName: aws.String("ChannelName"), // Required @@ -54,7 +34,7 @@ func ExampleConfigService_DeleteDeliveryChannel() { } func ExampleConfigService_DeliverConfigSnapshot() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.DeliverConfigSnapshotInput{ DeliveryChannelName: aws.String("ChannelName"), // Required @@ -72,106 +52,8 @@ func ExampleConfigService_DeliverConfigSnapshot() { fmt.Println(resp) } -func ExampleConfigService_DescribeComplianceByConfigRule() { - svc := configservice.New(session.New()) - - params := &configservice.DescribeComplianceByConfigRuleInput{ - ComplianceTypes: []*string{ - aws.String("ComplianceType"), // Required - // More values... - }, - ConfigRuleNames: []*string{ - aws.String("StringWithCharLimit64"), // Required - // More values... - }, - NextToken: aws.String("String"), - } - resp, err := svc.DescribeComplianceByConfigRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleConfigService_DescribeComplianceByResource() { - svc := configservice.New(session.New()) - - params := &configservice.DescribeComplianceByResourceInput{ - ComplianceTypes: []*string{ - aws.String("ComplianceType"), // Required - // More values... - }, - Limit: aws.Int64(1), - NextToken: aws.String("NextToken"), - ResourceId: aws.String("StringWithCharLimit256"), - ResourceType: aws.String("StringWithCharLimit256"), - } - resp, err := svc.DescribeComplianceByResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleConfigService_DescribeConfigRuleEvaluationStatus() { - svc := configservice.New(session.New()) - - params := &configservice.DescribeConfigRuleEvaluationStatusInput{ - ConfigRuleNames: []*string{ - aws.String("StringWithCharLimit64"), // Required - // More values... - }, - } - resp, err := svc.DescribeConfigRuleEvaluationStatus(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleConfigService_DescribeConfigRules() { - svc := configservice.New(session.New()) - - params := &configservice.DescribeConfigRulesInput{ - ConfigRuleNames: []*string{ - aws.String("StringWithCharLimit64"), // Required - // More values... - }, - NextToken: aws.String("String"), - } - resp, err := svc.DescribeConfigRules(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleConfigService_DescribeConfigurationRecorderStatus() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.DescribeConfigurationRecorderStatusInput{ ConfigurationRecorderNames: []*string{ @@ -193,7 +75,7 @@ func ExampleConfigService_DescribeConfigurationRecorderStatus() { } func ExampleConfigService_DescribeConfigurationRecorders() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.DescribeConfigurationRecordersInput{ ConfigurationRecorderNames: []*string{ @@ -215,7 +97,7 @@ func ExampleConfigService_DescribeConfigurationRecorders() { } func ExampleConfigService_DescribeDeliveryChannelStatus() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.DescribeDeliveryChannelStatusInput{ DeliveryChannelNames: []*string{ @@ -237,7 +119,7 @@ func ExampleConfigService_DescribeDeliveryChannelStatus() { } func ExampleConfigService_DescribeDeliveryChannels() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.DescribeDeliveryChannelsInput{ DeliveryChannelNames: []*string{ @@ -258,97 +140,8 @@ func ExampleConfigService_DescribeDeliveryChannels() { fmt.Println(resp) } -func ExampleConfigService_GetComplianceDetailsByConfigRule() { - svc := configservice.New(session.New()) - - params := &configservice.GetComplianceDetailsByConfigRuleInput{ - ConfigRuleName: aws.String("StringWithCharLimit64"), // Required - ComplianceTypes: []*string{ - aws.String("ComplianceType"), // Required - // More values... - }, - Limit: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.GetComplianceDetailsByConfigRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleConfigService_GetComplianceDetailsByResource() { - svc := configservice.New(session.New()) - - params := &configservice.GetComplianceDetailsByResourceInput{ - ResourceId: aws.String("StringWithCharLimit256"), // Required - ResourceType: aws.String("StringWithCharLimit256"), // Required - ComplianceTypes: []*string{ - aws.String("ComplianceType"), // Required - // More values... - }, - NextToken: aws.String("String"), - } - resp, err := svc.GetComplianceDetailsByResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleConfigService_GetComplianceSummaryByConfigRule() { - svc := configservice.New(session.New()) - - var params *configservice.GetComplianceSummaryByConfigRuleInput - resp, err := svc.GetComplianceSummaryByConfigRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleConfigService_GetComplianceSummaryByResourceType() { - svc := configservice.New(session.New()) - - params := &configservice.GetComplianceSummaryByResourceTypeInput{ - ResourceTypes: []*string{ - aws.String("StringWithCharLimit256"), // Required - // More values... - }, - } - resp, err := svc.GetComplianceSummaryByResourceType(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleConfigService_GetResourceConfigHistory() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.GetResourceConfigHistoryInput{ ResourceId: aws.String("ResourceId"), // Required @@ -373,7 +166,7 @@ func ExampleConfigService_GetResourceConfigHistory() { } func ExampleConfigService_ListDiscoveredResources() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.ListDiscoveredResourcesInput{ ResourceType: aws.String("ResourceType"), // Required @@ -399,62 +192,14 @@ func ExampleConfigService_ListDiscoveredResources() { fmt.Println(resp) } -func ExampleConfigService_PutConfigRule() { - svc := configservice.New(session.New()) - - params := &configservice.PutConfigRuleInput{ - ConfigRule: &configservice.ConfigRule{ // Required - Source: &configservice.Source{ // Required - Owner: aws.String("Owner"), - SourceDetails: []*configservice.SourceDetail{ - { // Required - EventSource: aws.String("EventSource"), - MessageType: aws.String("MessageType"), - }, - // More values... - }, - SourceIdentifier: aws.String("StringWithCharLimit256"), - }, - ConfigRuleArn: aws.String("String"), - ConfigRuleId: aws.String("String"), - ConfigRuleName: aws.String("StringWithCharLimit64"), - ConfigRuleState: aws.String("ConfigRuleState"), - Description: aws.String("EmptiableStringWithCharLimit256"), - InputParameters: aws.String("StringWithCharLimit256"), - MaximumExecutionFrequency: aws.String("MaximumExecutionFrequency"), - Scope: &configservice.Scope{ - ComplianceResourceId: aws.String("StringWithCharLimit256"), - ComplianceResourceTypes: []*string{ - aws.String("StringWithCharLimit256"), // Required - // More values... - }, - TagKey: aws.String("StringWithCharLimit128"), - TagValue: aws.String("StringWithCharLimit256"), - }, - }, - } - resp, err := svc.PutConfigRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleConfigService_PutConfigurationRecorder() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.PutConfigurationRecorderInput{ ConfigurationRecorder: &configservice.ConfigurationRecorder{ // Required Name: aws.String("RecorderName"), RecordingGroup: &configservice.RecordingGroup{ - AllSupported: aws.Bool(true), - IncludeGlobalResourceTypes: aws.Bool(true), + AllSupported: aws.Bool(true), ResourceTypes: []*string{ aws.String("ResourceType"), // Required // More values... @@ -477,13 +222,10 @@ func ExampleConfigService_PutConfigurationRecorder() { } func ExampleConfigService_PutDeliveryChannel() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.PutDeliveryChannelInput{ DeliveryChannel: &configservice.DeliveryChannel{ // Required - ConfigSnapshotDeliveryProperties: &configservice.ConfigSnapshotDeliveryProperties{ - DeliveryFrequency: aws.String("MaximumExecutionFrequency"), - }, Name: aws.String("ChannelName"), S3BucketName: aws.String("String"), S3KeyPrefix: aws.String("String"), @@ -503,37 +245,8 @@ func ExampleConfigService_PutDeliveryChannel() { fmt.Println(resp) } -func ExampleConfigService_PutEvaluations() { - svc := configservice.New(session.New()) - - params := &configservice.PutEvaluationsInput{ - ResultToken: aws.String("String"), // Required - Evaluations: []*configservice.Evaluation{ - { // Required - ComplianceResourceId: aws.String("StringWithCharLimit256"), // Required - ComplianceResourceType: aws.String("StringWithCharLimit256"), // Required - ComplianceType: aws.String("ComplianceType"), // Required - OrderingTimestamp: aws.Time(time.Now()), // Required - Annotation: aws.String("StringWithCharLimit256"), - }, - // More values... - }, - } - resp, err := svc.PutEvaluations(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleConfigService_StartConfigurationRecorder() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.StartConfigurationRecorderInput{ ConfigurationRecorderName: aws.String("RecorderName"), // Required @@ -552,7 +265,7 @@ func ExampleConfigService_StartConfigurationRecorder() { } func ExampleConfigService_StopConfigurationRecorder() { - svc := configservice.New(session.New()) + svc := configservice.New(nil) params := &configservice.StopConfigurationRecorderInput{ ConfigurationRecorderName: aws.String("RecorderName"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/service.go index 4764a43a9..3a887d649 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/service.go @@ -4,11 +4,12 @@ package configservice import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // AWS Config provides a way to keep track of the configurations of all the @@ -35,66 +36,42 @@ import ( // actions or commands, as well as how to work with AWS Management Console, // see What Is AWS Config? (http://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html) // in the AWS Config Developer Guide. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type ConfigService struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "config" - -// New creates a new instance of the ConfigService client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ConfigService client from just a session. -// svc := configservice.New(mySession) -// -// // Create a ConfigService client with additional configuration -// svc := configservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ConfigService { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ConfigService { - svc := &ConfigService{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-11-12", - JSONVersion: "1.1", - TargetPrefix: "StarlingDoveService", - }, - handlers, - ), +// New returns a new ConfigService client. +func New(config *aws.Config) *ConfigService { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "config", + APIVersion: "2014-11-12", + JSONVersion: "1.1", + TargetPrefix: "StarlingDoveService", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &ConfigService{service} } // newRequest creates a new request for a ConfigService operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go deleted file mode 100644 index a6aa90bf4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/api.go +++ /dev/null @@ -1,3301 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package databasemigrationservice provides a client for AWS Database Migration Service. -package databasemigrationservice - -import ( - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" -) - -const opAddTagsToResource = "AddTagsToResource" - -// AddTagsToResourceRequest generates a request for the AddTagsToResource operation. -func (c *DatabaseMigrationService) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) { - op := &request.Operation{ - Name: opAddTagsToResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AddTagsToResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &AddTagsToResourceOutput{} - req.Data = output - return -} - -// Adds metadata tags to a DMS resource, including replication instance, endpoint, -// security group, and migration task. These tags can also be used with cost -// allocation reporting to track cost associated with DMS resources, or used -// in a Condition statement in an IAM policy for DMS. -func (c *DatabaseMigrationService) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { - req, out := c.AddTagsToResourceRequest(input) - err := req.Send() - return out, err -} - -const opCreateEndpoint = "CreateEndpoint" - -// CreateEndpointRequest generates a request for the CreateEndpoint operation. -func (c *DatabaseMigrationService) CreateEndpointRequest(input *CreateEndpointInput) (req *request.Request, output *CreateEndpointOutput) { - op := &request.Operation{ - Name: opCreateEndpoint, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateEndpointInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateEndpointOutput{} - req.Data = output - return -} - -// Creates an endpoint using the provided settings. -func (c *DatabaseMigrationService) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) { - req, out := c.CreateEndpointRequest(input) - err := req.Send() - return out, err -} - -const opCreateReplicationInstance = "CreateReplicationInstance" - -// CreateReplicationInstanceRequest generates a request for the CreateReplicationInstance operation. -func (c *DatabaseMigrationService) CreateReplicationInstanceRequest(input *CreateReplicationInstanceInput) (req *request.Request, output *CreateReplicationInstanceOutput) { - op := &request.Operation{ - Name: opCreateReplicationInstance, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateReplicationInstanceInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateReplicationInstanceOutput{} - req.Data = output - return -} - -// Creates the replication instance using the specified parameters. -func (c *DatabaseMigrationService) CreateReplicationInstance(input *CreateReplicationInstanceInput) (*CreateReplicationInstanceOutput, error) { - req, out := c.CreateReplicationInstanceRequest(input) - err := req.Send() - return out, err -} - -const opCreateReplicationSubnetGroup = "CreateReplicationSubnetGroup" - -// CreateReplicationSubnetGroupRequest generates a request for the CreateReplicationSubnetGroup operation. -func (c *DatabaseMigrationService) CreateReplicationSubnetGroupRequest(input *CreateReplicationSubnetGroupInput) (req *request.Request, output *CreateReplicationSubnetGroupOutput) { - op := &request.Operation{ - Name: opCreateReplicationSubnetGroup, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateReplicationSubnetGroupInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateReplicationSubnetGroupOutput{} - req.Data = output - return -} - -// Creates a replication subnet group given a list of the subnet IDs in a VPC. -func (c *DatabaseMigrationService) CreateReplicationSubnetGroup(input *CreateReplicationSubnetGroupInput) (*CreateReplicationSubnetGroupOutput, error) { - req, out := c.CreateReplicationSubnetGroupRequest(input) - err := req.Send() - return out, err -} - -const opCreateReplicationTask = "CreateReplicationTask" - -// CreateReplicationTaskRequest generates a request for the CreateReplicationTask operation. -func (c *DatabaseMigrationService) CreateReplicationTaskRequest(input *CreateReplicationTaskInput) (req *request.Request, output *CreateReplicationTaskOutput) { - op := &request.Operation{ - Name: opCreateReplicationTask, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateReplicationTaskInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateReplicationTaskOutput{} - req.Data = output - return -} - -// Creates a replication task using the specified parameters. -func (c *DatabaseMigrationService) CreateReplicationTask(input *CreateReplicationTaskInput) (*CreateReplicationTaskOutput, error) { - req, out := c.CreateReplicationTaskRequest(input) - err := req.Send() - return out, err -} - -const opDeleteEndpoint = "DeleteEndpoint" - -// DeleteEndpointRequest generates a request for the DeleteEndpoint operation. -func (c *DatabaseMigrationService) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) { - op := &request.Operation{ - Name: opDeleteEndpoint, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteEndpointInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteEndpointOutput{} - req.Data = output - return -} - -// Deletes the specified endpoint. -// -// All tasks associated with the endpoint must be deleted before you can delete -// the endpoint. -func (c *DatabaseMigrationService) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { - req, out := c.DeleteEndpointRequest(input) - err := req.Send() - return out, err -} - -const opDeleteReplicationInstance = "DeleteReplicationInstance" - -// DeleteReplicationInstanceRequest generates a request for the DeleteReplicationInstance operation. -func (c *DatabaseMigrationService) DeleteReplicationInstanceRequest(input *DeleteReplicationInstanceInput) (req *request.Request, output *DeleteReplicationInstanceOutput) { - op := &request.Operation{ - Name: opDeleteReplicationInstance, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteReplicationInstanceInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteReplicationInstanceOutput{} - req.Data = output - return -} - -// Deletes the specified replication instance. -// -// You must delete any migration tasks that are associated with the replication -// instance before you can delete it. -func (c *DatabaseMigrationService) DeleteReplicationInstance(input *DeleteReplicationInstanceInput) (*DeleteReplicationInstanceOutput, error) { - req, out := c.DeleteReplicationInstanceRequest(input) - err := req.Send() - return out, err -} - -const opDeleteReplicationSubnetGroup = "DeleteReplicationSubnetGroup" - -// DeleteReplicationSubnetGroupRequest generates a request for the DeleteReplicationSubnetGroup operation. -func (c *DatabaseMigrationService) DeleteReplicationSubnetGroupRequest(input *DeleteReplicationSubnetGroupInput) (req *request.Request, output *DeleteReplicationSubnetGroupOutput) { - op := &request.Operation{ - Name: opDeleteReplicationSubnetGroup, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteReplicationSubnetGroupInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteReplicationSubnetGroupOutput{} - req.Data = output - return -} - -// Deletes a subnet group. -func (c *DatabaseMigrationService) DeleteReplicationSubnetGroup(input *DeleteReplicationSubnetGroupInput) (*DeleteReplicationSubnetGroupOutput, error) { - req, out := c.DeleteReplicationSubnetGroupRequest(input) - err := req.Send() - return out, err -} - -const opDeleteReplicationTask = "DeleteReplicationTask" - -// DeleteReplicationTaskRequest generates a request for the DeleteReplicationTask operation. -func (c *DatabaseMigrationService) DeleteReplicationTaskRequest(input *DeleteReplicationTaskInput) (req *request.Request, output *DeleteReplicationTaskOutput) { - op := &request.Operation{ - Name: opDeleteReplicationTask, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteReplicationTaskInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteReplicationTaskOutput{} - req.Data = output - return -} - -// Deletes the specified replication task. -func (c *DatabaseMigrationService) DeleteReplicationTask(input *DeleteReplicationTaskInput) (*DeleteReplicationTaskOutput, error) { - req, out := c.DeleteReplicationTaskRequest(input) - err := req.Send() - return out, err -} - -const opDescribeAccountAttributes = "DescribeAccountAttributes" - -// DescribeAccountAttributesRequest generates a request for the DescribeAccountAttributes operation. -func (c *DatabaseMigrationService) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) { - op := &request.Operation{ - Name: opDescribeAccountAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeAccountAttributesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeAccountAttributesOutput{} - req.Data = output - return -} - -// Lists all of the AWS DMS attributes for a customer account. The attributes -// include AWS DMS quotas for the account, such as the number of replication -// instances allowed. The description for a quota includes the quota name, current -// usage toward that quota, and the quota's maximum value. -// -// This command does not take any parameters. -func (c *DatabaseMigrationService) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { - req, out := c.DescribeAccountAttributesRequest(input) - err := req.Send() - return out, err -} - -const opDescribeConnections = "DescribeConnections" - -// DescribeConnectionsRequest generates a request for the DescribeConnections operation. -func (c *DatabaseMigrationService) DescribeConnectionsRequest(input *DescribeConnectionsInput) (req *request.Request, output *DescribeConnectionsOutput) { - op := &request.Operation{ - Name: opDescribeConnections, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeConnectionsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeConnectionsOutput{} - req.Data = output - return -} - -// Describes the status of the connections that have been made between the replication -// instance and an endpoint. Connections are created when you test an endpoint. -func (c *DatabaseMigrationService) DescribeConnections(input *DescribeConnectionsInput) (*DescribeConnectionsOutput, error) { - req, out := c.DescribeConnectionsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeEndpointTypes = "DescribeEndpointTypes" - -// DescribeEndpointTypesRequest generates a request for the DescribeEndpointTypes operation. -func (c *DatabaseMigrationService) DescribeEndpointTypesRequest(input *DescribeEndpointTypesInput) (req *request.Request, output *DescribeEndpointTypesOutput) { - op := &request.Operation{ - Name: opDescribeEndpointTypes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeEndpointTypesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeEndpointTypesOutput{} - req.Data = output - return -} - -// Returns information about the type of endpoints available. -func (c *DatabaseMigrationService) DescribeEndpointTypes(input *DescribeEndpointTypesInput) (*DescribeEndpointTypesOutput, error) { - req, out := c.DescribeEndpointTypesRequest(input) - err := req.Send() - return out, err -} - -const opDescribeEndpoints = "DescribeEndpoints" - -// DescribeEndpointsRequest generates a request for the DescribeEndpoints operation. -func (c *DatabaseMigrationService) DescribeEndpointsRequest(input *DescribeEndpointsInput) (req *request.Request, output *DescribeEndpointsOutput) { - op := &request.Operation{ - Name: opDescribeEndpoints, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeEndpointsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeEndpointsOutput{} - req.Data = output - return -} - -// Returns information about the endpoints for your account in the current region. -func (c *DatabaseMigrationService) DescribeEndpoints(input *DescribeEndpointsInput) (*DescribeEndpointsOutput, error) { - req, out := c.DescribeEndpointsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeOrderableReplicationInstances = "DescribeOrderableReplicationInstances" - -// DescribeOrderableReplicationInstancesRequest generates a request for the DescribeOrderableReplicationInstances operation. -func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesRequest(input *DescribeOrderableReplicationInstancesInput) (req *request.Request, output *DescribeOrderableReplicationInstancesOutput) { - op := &request.Operation{ - Name: opDescribeOrderableReplicationInstances, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeOrderableReplicationInstancesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeOrderableReplicationInstancesOutput{} - req.Data = output - return -} - -// Returns information about the replication instance types that can be created -// in the specified region. -func (c *DatabaseMigrationService) DescribeOrderableReplicationInstances(input *DescribeOrderableReplicationInstancesInput) (*DescribeOrderableReplicationInstancesOutput, error) { - req, out := c.DescribeOrderableReplicationInstancesRequest(input) - err := req.Send() - return out, err -} - -const opDescribeRefreshSchemasStatus = "DescribeRefreshSchemasStatus" - -// DescribeRefreshSchemasStatusRequest generates a request for the DescribeRefreshSchemasStatus operation. -func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *DescribeRefreshSchemasStatusInput) (req *request.Request, output *DescribeRefreshSchemasStatusOutput) { - op := &request.Operation{ - Name: opDescribeRefreshSchemasStatus, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeRefreshSchemasStatusInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeRefreshSchemasStatusOutput{} - req.Data = output - return -} - -// Returns the status of the RefreshSchemas operation. -func (c *DatabaseMigrationService) DescribeRefreshSchemasStatus(input *DescribeRefreshSchemasStatusInput) (*DescribeRefreshSchemasStatusOutput, error) { - req, out := c.DescribeRefreshSchemasStatusRequest(input) - err := req.Send() - return out, err -} - -const opDescribeReplicationInstances = "DescribeReplicationInstances" - -// DescribeReplicationInstancesRequest generates a request for the DescribeReplicationInstances operation. -func (c *DatabaseMigrationService) DescribeReplicationInstancesRequest(input *DescribeReplicationInstancesInput) (req *request.Request, output *DescribeReplicationInstancesOutput) { - op := &request.Operation{ - Name: opDescribeReplicationInstances, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeReplicationInstancesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeReplicationInstancesOutput{} - req.Data = output - return -} - -// Returns information about replication instances for your account in the current -// region. -func (c *DatabaseMigrationService) DescribeReplicationInstances(input *DescribeReplicationInstancesInput) (*DescribeReplicationInstancesOutput, error) { - req, out := c.DescribeReplicationInstancesRequest(input) - err := req.Send() - return out, err -} - -const opDescribeReplicationSubnetGroups = "DescribeReplicationSubnetGroups" - -// DescribeReplicationSubnetGroupsRequest generates a request for the DescribeReplicationSubnetGroups operation. -func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input *DescribeReplicationSubnetGroupsInput) (req *request.Request, output *DescribeReplicationSubnetGroupsOutput) { - op := &request.Operation{ - Name: opDescribeReplicationSubnetGroups, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeReplicationSubnetGroupsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeReplicationSubnetGroupsOutput{} - req.Data = output - return -} - -// Returns information about the replication subnet groups. -func (c *DatabaseMigrationService) DescribeReplicationSubnetGroups(input *DescribeReplicationSubnetGroupsInput) (*DescribeReplicationSubnetGroupsOutput, error) { - req, out := c.DescribeReplicationSubnetGroupsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeReplicationTasks = "DescribeReplicationTasks" - -// DescribeReplicationTasksRequest generates a request for the DescribeReplicationTasks operation. -func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *DescribeReplicationTasksInput) (req *request.Request, output *DescribeReplicationTasksOutput) { - op := &request.Operation{ - Name: opDescribeReplicationTasks, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeReplicationTasksInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeReplicationTasksOutput{} - req.Data = output - return -} - -// Returns information about replication tasks for your account in the current -// region. -func (c *DatabaseMigrationService) DescribeReplicationTasks(input *DescribeReplicationTasksInput) (*DescribeReplicationTasksOutput, error) { - req, out := c.DescribeReplicationTasksRequest(input) - err := req.Send() - return out, err -} - -const opDescribeSchemas = "DescribeSchemas" - -// DescribeSchemasRequest generates a request for the DescribeSchemas operation. -func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemasInput) (req *request.Request, output *DescribeSchemasOutput) { - op := &request.Operation{ - Name: opDescribeSchemas, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeSchemasInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeSchemasOutput{} - req.Data = output - return -} - -// Returns information about the schema for the specified endpoint. -func (c *DatabaseMigrationService) DescribeSchemas(input *DescribeSchemasInput) (*DescribeSchemasOutput, error) { - req, out := c.DescribeSchemasRequest(input) - err := req.Send() - return out, err -} - -const opDescribeTableStatistics = "DescribeTableStatistics" - -// DescribeTableStatisticsRequest generates a request for the DescribeTableStatistics operation. -func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *DescribeTableStatisticsInput) (req *request.Request, output *DescribeTableStatisticsOutput) { - op := &request.Operation{ - Name: opDescribeTableStatistics, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeTableStatisticsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeTableStatisticsOutput{} - req.Data = output - return -} - -// Returns table statistics on the database migration task, including table -// name, rows inserted, rows updated, and rows deleted. -func (c *DatabaseMigrationService) DescribeTableStatistics(input *DescribeTableStatisticsInput) (*DescribeTableStatisticsOutput, error) { - req, out := c.DescribeTableStatisticsRequest(input) - err := req.Send() - return out, err -} - -const opListTagsForResource = "ListTagsForResource" - -// ListTagsForResourceRequest generates a request for the ListTagsForResource operation. -func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { - op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListTagsForResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTagsForResourceOutput{} - req.Data = output - return -} - -// Lists all tags for an AWS DMS resource. -func (c *DatabaseMigrationService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) - err := req.Send() - return out, err -} - -const opModifyEndpoint = "ModifyEndpoint" - -// ModifyEndpointRequest generates a request for the ModifyEndpoint operation. -func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointInput) (req *request.Request, output *ModifyEndpointOutput) { - op := &request.Operation{ - Name: opModifyEndpoint, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyEndpointInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifyEndpointOutput{} - req.Data = output - return -} - -// Modifies the specified endpoint. -func (c *DatabaseMigrationService) ModifyEndpoint(input *ModifyEndpointInput) (*ModifyEndpointOutput, error) { - req, out := c.ModifyEndpointRequest(input) - err := req.Send() - return out, err -} - -const opModifyReplicationInstance = "ModifyReplicationInstance" - -// ModifyReplicationInstanceRequest generates a request for the ModifyReplicationInstance operation. -func (c *DatabaseMigrationService) ModifyReplicationInstanceRequest(input *ModifyReplicationInstanceInput) (req *request.Request, output *ModifyReplicationInstanceOutput) { - op := &request.Operation{ - Name: opModifyReplicationInstance, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyReplicationInstanceInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifyReplicationInstanceOutput{} - req.Data = output - return -} - -// Modifies the replication instance to apply new settings. You can change one -// or more parameters by specifying these parameters and the new values in the -// request. -// -// Some settings are applied during the maintenance window. -func (c *DatabaseMigrationService) ModifyReplicationInstance(input *ModifyReplicationInstanceInput) (*ModifyReplicationInstanceOutput, error) { - req, out := c.ModifyReplicationInstanceRequest(input) - err := req.Send() - return out, err -} - -const opModifyReplicationSubnetGroup = "ModifyReplicationSubnetGroup" - -// ModifyReplicationSubnetGroupRequest generates a request for the ModifyReplicationSubnetGroup operation. -func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *ModifyReplicationSubnetGroupInput) (req *request.Request, output *ModifyReplicationSubnetGroupOutput) { - op := &request.Operation{ - Name: opModifyReplicationSubnetGroup, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyReplicationSubnetGroupInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifyReplicationSubnetGroupOutput{} - req.Data = output - return -} - -// Modifies the settings for the specified replication subnet group. -func (c *DatabaseMigrationService) ModifyReplicationSubnetGroup(input *ModifyReplicationSubnetGroupInput) (*ModifyReplicationSubnetGroupOutput, error) { - req, out := c.ModifyReplicationSubnetGroupRequest(input) - err := req.Send() - return out, err -} - -const opRefreshSchemas = "RefreshSchemas" - -// RefreshSchemasRequest generates a request for the RefreshSchemas operation. -func (c *DatabaseMigrationService) RefreshSchemasRequest(input *RefreshSchemasInput) (req *request.Request, output *RefreshSchemasOutput) { - op := &request.Operation{ - Name: opRefreshSchemas, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RefreshSchemasInput{} - } - - req = c.newRequest(op, input, output) - output = &RefreshSchemasOutput{} - req.Data = output - return -} - -// Populates the schema for the specified endpoint. This is an asynchronous -// operation and can take several minutes. You can check the status of this -// operation by calling the DescribeRefreshSchemasStatus operation. -func (c *DatabaseMigrationService) RefreshSchemas(input *RefreshSchemasInput) (*RefreshSchemasOutput, error) { - req, out := c.RefreshSchemasRequest(input) - err := req.Send() - return out, err -} - -const opRemoveTagsFromResource = "RemoveTagsFromResource" - -// RemoveTagsFromResourceRequest generates a request for the RemoveTagsFromResource operation. -func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { - op := &request.Operation{ - Name: opRemoveTagsFromResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RemoveTagsFromResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &RemoveTagsFromResourceOutput{} - req.Data = output - return -} - -// Removes metadata tags from a DMS resource. -func (c *DatabaseMigrationService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { - req, out := c.RemoveTagsFromResourceRequest(input) - err := req.Send() - return out, err -} - -const opStartReplicationTask = "StartReplicationTask" - -// StartReplicationTaskRequest generates a request for the StartReplicationTask operation. -func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartReplicationTaskInput) (req *request.Request, output *StartReplicationTaskOutput) { - op := &request.Operation{ - Name: opStartReplicationTask, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &StartReplicationTaskInput{} - } - - req = c.newRequest(op, input, output) - output = &StartReplicationTaskOutput{} - req.Data = output - return -} - -// Starts the replication task. -func (c *DatabaseMigrationService) StartReplicationTask(input *StartReplicationTaskInput) (*StartReplicationTaskOutput, error) { - req, out := c.StartReplicationTaskRequest(input) - err := req.Send() - return out, err -} - -const opStopReplicationTask = "StopReplicationTask" - -// StopReplicationTaskRequest generates a request for the StopReplicationTask operation. -func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplicationTaskInput) (req *request.Request, output *StopReplicationTaskOutput) { - op := &request.Operation{ - Name: opStopReplicationTask, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &StopReplicationTaskInput{} - } - - req = c.newRequest(op, input, output) - output = &StopReplicationTaskOutput{} - req.Data = output - return -} - -// Stops the replication task. -func (c *DatabaseMigrationService) StopReplicationTask(input *StopReplicationTaskInput) (*StopReplicationTaskOutput, error) { - req, out := c.StopReplicationTaskRequest(input) - err := req.Send() - return out, err -} - -const opTestConnection = "TestConnection" - -// TestConnectionRequest generates a request for the TestConnection operation. -func (c *DatabaseMigrationService) TestConnectionRequest(input *TestConnectionInput) (req *request.Request, output *TestConnectionOutput) { - op := &request.Operation{ - Name: opTestConnection, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &TestConnectionInput{} - } - - req = c.newRequest(op, input, output) - output = &TestConnectionOutput{} - req.Data = output - return -} - -// Tests the connection between the replication instance and the endpoint. -func (c *DatabaseMigrationService) TestConnection(input *TestConnectionInput) (*TestConnectionOutput, error) { - req, out := c.TestConnectionRequest(input) - err := req.Send() - return out, err -} - -// Describes a quota for an AWS account, for example, the number of replication -// instances allowed. -type AccountQuota struct { - _ struct{} `type:"structure"` - - // The name of the AWS DMS quota for this AWS account. - AccountQuotaName *string `type:"string"` - - // The maximum allowed value for the quota. - Max *int64 `type:"long"` - - // The amount currently used toward the quota maximum. - Used *int64 `type:"long"` -} - -// String returns the string representation -func (s AccountQuota) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AccountQuota) GoString() string { - return s.String() -} - -type AddTagsToResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be added - // to. AWS DMS resources include a replication instance, endpoint, and a replication - // task. - ResourceArn *string `type:"string" required:"true"` - - // The tag to be assigned to the DMS resource. - Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"` -} - -// String returns the string representation -func (s AddTagsToResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsToResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type AddTagsToResourceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AddTagsToResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsToResourceOutput) GoString() string { - return s.String() -} - -type AvailabilityZone struct { - _ struct{} `type:"structure"` - - // The name of the availability zone. - Name *string `type:"string"` -} - -// String returns the string representation -func (s AvailabilityZone) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AvailabilityZone) GoString() string { - return s.String() -} - -type Connection struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - EndpointArn *string `type:"string"` - - // The identifier of the endpoint. 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 error message when the connection last failed. - LastFailureMessage *string `type:"string"` - - // The Amazon Resource Name (ARN) of the replication instance. - ReplicationInstanceArn *string `type:"string"` - - // The replication instance identifier. This parameter is stored as a lowercase - // string. - ReplicationInstanceIdentifier *string `type:"string"` - - // The connection status. - Status *string `type:"string"` -} - -// String returns the string representation -func (s Connection) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Connection) GoString() string { - return s.String() -} - -type CreateEndpointInput struct { - _ struct{} `type:"structure"` - - // The name of the endpoint database. - DatabaseName *string `type:"string"` - - // 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" required:"true"` - - // The type of endpoint. - EndpointType *string `type:"string" required:"true" enum:"ReplicationEndpointTypeValue"` - - // The type of engine for the endpoint. Valid values include MYSQL, ORACLE, - // POSTGRES, MARIADB, AURORA, SQLSERVER. - EngineName *string `type:"string" required:"true"` - - // Additional attributes associated with the connection. - ExtraConnectionAttributes *string `type:"string"` - - // The KMS key identifier that will be used to encrypt the connection parameters. - // If you do not specify a value for the KmsKeyId parameter, then AWS DMS will - // use your default encryption key. AWS KMS creates the default encryption key - // for your AWS account. Your AWS account has a different default encryption - // key for each AWS region. - KmsKeyId *string `type:"string"` - - // The password to be used to login to the endpoint database. - Password *string `type:"string" required:"true"` - - // The port used by the endpoint database. - Port *int64 `type:"integer" required:"true"` - - // The name of the server where the endpoint database resides. - ServerName *string `type:"string" required:"true"` - - // Tags to be added to the endpoint. - Tags []*Tag `locationNameList:"Tag" type:"list"` - - // The user name to be used to login to the endpoint database. - Username *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateEndpointInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateEndpointInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"} - if s.EndpointIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointIdentifier")) - } - if s.EndpointType == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointType")) - } - if s.EngineName == nil { - invalidParams.Add(request.NewErrParamRequired("EngineName")) - } - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Port == nil { - invalidParams.Add(request.NewErrParamRequired("Port")) - } - if s.ServerName == nil { - invalidParams.Add(request.NewErrParamRequired("ServerName")) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateEndpointOutput struct { - _ struct{} `type:"structure"` - - // The endpoint that was created. - Endpoint *Endpoint `type:"structure"` -} - -// String returns the string representation -func (s CreateEndpointOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateEndpointOutput) GoString() string { - return s.String() -} - -type CreateReplicationInstanceInput struct { - _ struct{} `type:"structure"` - - // The amount of storage (in gigabytes) to be initially allocated for the replication - // instance. - AllocatedStorage *int64 `type:"integer"` - - // Indicates that minor engine upgrades will be applied automatically to the - // replication instance during the maintenance window. - // - // Default: true - AutoMinorVersionUpgrade *bool `type:"boolean"` - - // The EC2 Availability Zone that the replication instance will be created in. - // - // Default: A random, system-chosen Availability Zone in the endpoint's region. - // - // Example: us-east-1d - AvailabilityZone *string `type:"string"` - - // The engine version number of the replication instance. - EngineVersion *string `type:"string"` - - // The KMS key identifier that will be used to encrypt the content on the replication - // instance. If you do not specify a value for the KmsKeyId parameter, then - // AWS DMS will use your default encryption key. AWS KMS creates the default - // encryption key for your AWS account. Your AWS account has a different default - // encryption key for each AWS region. - KmsKeyId *string `type:"string"` - - // The weekly time range during which system maintenance can occur, in Universal - // Coordinated Time (UTC). - // - // Format: ddd:hh24:mi-ddd:hh24:mi - // - // Default: A 30-minute window selected at random from an 8-hour block of - // time per region, occurring on a random day of the week. - // - // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun - // - // Constraints: Minimum 30-minute window. - PreferredMaintenanceWindow *string `type:"string"` - - // Specifies the accessibility options for the replication instance. A value - // of true represents an instance with a public IP address. A value of false - // represents an instance with a private IP address. The default value is true. - PubliclyAccessible *bool `type:"boolean"` - - // The compute and memory capacity of the replication instance as specified - // by the replication instance class. - // - // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large - // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge - ReplicationInstanceClass *string `type:"string" required:"true"` - - // The replication instance identifier. This parameter is stored as a lowercase - // string. - // - // Constraints: - // - // Must contain from 1 to 63 alphanumeric characters or hyphens. First character - // must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. - // Example: myrepinstance - ReplicationInstanceIdentifier *string `type:"string" required:"true"` - - // A subnet group to associate with the replication instance. - ReplicationSubnetGroupIdentifier *string `type:"string"` - - // Tags to be associated with the replication instance. - Tags []*Tag `locationNameList:"Tag" type:"list"` -} - -// String returns the string representation -func (s CreateReplicationInstanceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateReplicationInstanceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReplicationInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReplicationInstanceInput"} - if s.ReplicationInstanceClass == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceClass")) - } - if s.ReplicationInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateReplicationInstanceOutput struct { - _ struct{} `type:"structure"` - - // The replication instance that was created. - ReplicationInstance *ReplicationInstance `type:"structure"` -} - -// String returns the string representation -func (s CreateReplicationInstanceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateReplicationInstanceOutput) GoString() string { - return s.String() -} - -type CreateReplicationSubnetGroupInput struct { - _ struct{} `type:"structure"` - - // The description for the subnet group. - ReplicationSubnetGroupDescription *string `type:"string" required:"true"` - - // The name for the replication subnet group. This value is stored as a lowercase - // string. - // - // Constraints: Must contain no more than 255 alphanumeric characters, periods, - // spaces, underscores, or hyphens. Must not be "default". - // - // Example: mySubnetgroup - ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"` - - // The EC2 subnet IDs for the subnet group. - SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"` - - // The tag to be assigned to the subnet group. - Tags []*Tag `locationNameList:"Tag" type:"list"` -} - -// String returns the string representation -func (s CreateReplicationSubnetGroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateReplicationSubnetGroupInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReplicationSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReplicationSubnetGroupInput"} - if s.ReplicationSubnetGroupDescription == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupDescription")) - } - if s.ReplicationSubnetGroupIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupIdentifier")) - } - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateReplicationSubnetGroupOutput struct { - _ struct{} `type:"structure"` - - // The replication subnet group that was created. - ReplicationSubnetGroup *ReplicationSubnetGroup `type:"structure"` -} - -// String returns the string representation -func (s CreateReplicationSubnetGroupOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateReplicationSubnetGroupOutput) GoString() string { - return s.String() -} - -type CreateReplicationTaskInput struct { - _ struct{} `type:"structure"` - - // The start time for the Change Data Capture (CDC) operation. - CdcStartTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The migration type. - MigrationType *string `type:"string" required:"true" enum:"MigrationTypeValue"` - - // The Amazon Resource Name (ARN) of the replication instance. - ReplicationInstanceArn *string `type:"string" required:"true"` - - // The replication task identifier. - // - // Constraints: - // - // Must contain from 1 to 63 alphanumeric characters or hyphens. First character - // must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. - ReplicationTaskIdentifier *string `type:"string" required:"true"` - - // Settings for the task, such as target metadata settings. - ReplicationTaskSettings *string `type:"string"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - SourceEndpointArn *string `type:"string" required:"true"` - - // The path of the JSON file that contains the table mappings. - TableMappings *string `type:"string" required:"true"` - - // Tags to be added to the replication instance. - Tags []*Tag `locationNameList:"Tag" type:"list"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - TargetEndpointArn *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateReplicationTaskInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateReplicationTaskInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReplicationTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReplicationTaskInput"} - if s.MigrationType == nil { - invalidParams.Add(request.NewErrParamRequired("MigrationType")) - } - if s.ReplicationInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) - } - if s.ReplicationTaskIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationTaskIdentifier")) - } - if s.SourceEndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("SourceEndpointArn")) - } - if s.TableMappings == nil { - invalidParams.Add(request.NewErrParamRequired("TableMappings")) - } - if s.TargetEndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("TargetEndpointArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateReplicationTaskOutput struct { - _ struct{} `type:"structure"` - - // The replication task that was created. - ReplicationTask *ReplicationTask `type:"structure"` -} - -// String returns the string representation -func (s CreateReplicationTaskOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateReplicationTaskOutput) GoString() string { - return s.String() -} - -type DeleteEndpointInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - EndpointArn *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteEndpointInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteEndpointInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"} - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteEndpointOutput struct { - _ struct{} `type:"structure"` - - // The endpoint that was deleted. - Endpoint *Endpoint `type:"structure"` -} - -// String returns the string representation -func (s DeleteEndpointOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteEndpointOutput) GoString() string { - return s.String() -} - -type DeleteReplicationInstanceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the replication instance to be deleted. - ReplicationInstanceArn *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteReplicationInstanceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteReplicationInstanceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReplicationInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationInstanceInput"} - if s.ReplicationInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteReplicationInstanceOutput struct { - _ struct{} `type:"structure"` - - // The replication instance that was deleted. - ReplicationInstance *ReplicationInstance `type:"structure"` -} - -// String returns the string representation -func (s DeleteReplicationInstanceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteReplicationInstanceOutput) GoString() string { - return s.String() -} - -type DeleteReplicationSubnetGroupInput struct { - _ struct{} `type:"structure"` - - // The subnet group name of the replication instance. - ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteReplicationSubnetGroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteReplicationSubnetGroupInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReplicationSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationSubnetGroupInput"} - if s.ReplicationSubnetGroupIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteReplicationSubnetGroupOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteReplicationSubnetGroupOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteReplicationSubnetGroupOutput) GoString() string { - return s.String() -} - -type DeleteReplicationTaskInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the replication task to be deleted. - ReplicationTaskArn *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteReplicationTaskInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteReplicationTaskInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReplicationTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationTaskInput"} - if s.ReplicationTaskArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteReplicationTaskOutput struct { - _ struct{} `type:"structure"` - - // The deleted replication task. - ReplicationTask *ReplicationTask `type:"structure"` -} - -// String returns the string representation -func (s DeleteReplicationTaskOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteReplicationTaskOutput) GoString() string { - return s.String() -} - -type DescribeAccountAttributesInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DescribeAccountAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAccountAttributesInput) GoString() string { - return s.String() -} - -type DescribeAccountAttributesOutput struct { - _ struct{} `type:"structure"` - - // Account quota information. - AccountQuotas []*AccountQuota `locationNameList:"AccountQuota" type:"list"` -} - -// String returns the string representation -func (s DescribeAccountAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAccountAttributesOutput) GoString() string { - return s.String() -} - -type DescribeConnectionsInput struct { - _ struct{} `type:"structure"` - - // The filters applied to the connection. - // - // Valid filter names: endpoint-arn | replication-instance-arn - Filters []*Filter `locationNameList:"Filter" type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - // - // Default: 100 - // - // Constraints: Minimum 20, maximum 100. - MaxRecords *int64 `type:"integer"` -} - -// String returns the string representation -func (s DescribeConnectionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeConnectionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeConnectionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeConnectionsOutput struct { - _ struct{} `type:"structure"` - - // A description of the connections. - Connections []*Connection `locationNameList:"Connection" type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` -} - -// String returns the string representation -func (s DescribeConnectionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeConnectionsOutput) GoString() string { - return s.String() -} - -type DescribeEndpointTypesInput struct { - _ struct{} `type:"structure"` - - // Filters applied to the describe action. - // - // Valid filter names: engine-name | endpoint-type - Filters []*Filter `locationNameList:"Filter" type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - // - // Default: 100 - // - // Constraints: Minimum 20, maximum 100. - MaxRecords *int64 `type:"integer"` -} - -// String returns the string representation -func (s DescribeEndpointTypesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEndpointTypesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEndpointTypesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointTypesInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeEndpointTypesOutput struct { - _ struct{} `type:"structure"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The type of endpoints that are supported. - SupportedEndpointTypes []*SupportedEndpointType `locationNameList:"SupportedEndpointType" type:"list"` -} - -// String returns the string representation -func (s DescribeEndpointTypesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEndpointTypesOutput) GoString() string { - return s.String() -} - -type DescribeEndpointsInput struct { - _ struct{} `type:"structure"` - - // Filters applied to the describe action. - // - // Valid filter names: endpoint-arn | endpoint-type | endpoint-id | engine-name - Filters []*Filter `locationNameList:"Filter" type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - // - // Default: 100 - // - // Constraints: Minimum 20, maximum 100. - MaxRecords *int64 `type:"integer"` -} - -// String returns the string representation -func (s DescribeEndpointsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEndpointsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEndpointsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeEndpointsOutput struct { - _ struct{} `type:"structure"` - - // Endpoint description. - Endpoints []*Endpoint `locationNameList:"Endpoint" type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` -} - -// String returns the string representation -func (s DescribeEndpointsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEndpointsOutput) GoString() string { - return s.String() -} - -type DescribeOrderableReplicationInstancesInput struct { - _ struct{} `type:"structure"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - // - // Default: 100 - // - // Constraints: Minimum 20, maximum 100. - MaxRecords *int64 `type:"integer"` -} - -// String returns the string representation -func (s DescribeOrderableReplicationInstancesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeOrderableReplicationInstancesInput) GoString() string { - return s.String() -} - -type DescribeOrderableReplicationInstancesOutput struct { - _ struct{} `type:"structure"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The order-able replication instances available. - OrderableReplicationInstances []*OrderableReplicationInstance `locationNameList:"OrderableReplicationInstance" type:"list"` -} - -// String returns the string representation -func (s DescribeOrderableReplicationInstancesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeOrderableReplicationInstancesOutput) GoString() string { - return s.String() -} - -type DescribeRefreshSchemasStatusInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - EndpointArn *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeRefreshSchemasStatusInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeRefreshSchemasStatusInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeRefreshSchemasStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeRefreshSchemasStatusInput"} - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeRefreshSchemasStatusOutput struct { - _ struct{} `type:"structure"` - - // The status of the schema. - RefreshSchemasStatus *RefreshSchemasStatus `type:"structure"` -} - -// String returns the string representation -func (s DescribeRefreshSchemasStatusOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeRefreshSchemasStatusOutput) GoString() string { - return s.String() -} - -type DescribeReplicationInstancesInput struct { - _ struct{} `type:"structure"` - - // Filters applied to the describe action. - // - // Valid filter names: replication-instance-arn | replication-instance-id | - // replication-instance-class | engine-version - Filters []*Filter `locationNameList:"Filter" type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - // - // Default: 100 - // - // Constraints: Minimum 20, maximum 100. - MaxRecords *int64 `type:"integer"` -} - -// String returns the string representation -func (s DescribeReplicationInstancesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReplicationInstancesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeReplicationInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeReplicationInstancesInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeReplicationInstancesOutput struct { - _ struct{} `type:"structure"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The replication instances described. - ReplicationInstances []*ReplicationInstance `locationNameList:"ReplicationInstance" type:"list"` -} - -// String returns the string representation -func (s DescribeReplicationInstancesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReplicationInstancesOutput) GoString() string { - return s.String() -} - -type DescribeReplicationSubnetGroupsInput struct { - _ struct{} `type:"structure"` - - // Filters applied to the describe action. - Filters []*Filter `locationNameList:"Filter" type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - // - // Default: 100 - // - // Constraints: Minimum 20, maximum 100. - MaxRecords *int64 `type:"integer"` -} - -// String returns the string representation -func (s DescribeReplicationSubnetGroupsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReplicationSubnetGroupsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeReplicationSubnetGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeReplicationSubnetGroupsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeReplicationSubnetGroupsOutput struct { - _ struct{} `type:"structure"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // A description of the replication subnet groups. - ReplicationSubnetGroups []*ReplicationSubnetGroup `locationNameList:"ReplicationSubnetGroup" type:"list"` -} - -// String returns the string representation -func (s DescribeReplicationSubnetGroupsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReplicationSubnetGroupsOutput) GoString() string { - return s.String() -} - -type DescribeReplicationTasksInput struct { - _ struct{} `type:"structure"` - - // Filters applied to the describe action. - // - // Valid filter names: replication-task-arn | replication-task-id | migration-type - // | endpoint-arn | replication-instance-arn - Filters []*Filter `locationNameList:"Filter" type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - // - // Default: 100 - // - // Constraints: Minimum 20, maximum 100. - MaxRecords *int64 `type:"integer"` -} - -// String returns the string representation -func (s DescribeReplicationTasksInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReplicationTasksInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeReplicationTasksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeReplicationTasksInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeReplicationTasksOutput struct { - _ struct{} `type:"structure"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // A description of the replication tasks. - ReplicationTasks []*ReplicationTask `locationNameList:"ReplicationTask" type:"list"` -} - -// String returns the string representation -func (s DescribeReplicationTasksOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReplicationTasksOutput) GoString() string { - return s.String() -} - -type DescribeSchemasInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - EndpointArn *string `type:"string" required:"true"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - // - // Default: 100 - // - // Constraints: Minimum 20, maximum 100. - MaxRecords *int64 `type:"integer"` -} - -// String returns the string representation -func (s DescribeSchemasInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeSchemasInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeSchemasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeSchemasInput"} - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeSchemasOutput struct { - _ struct{} `type:"structure"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The described schema. - Schemas []*string `type:"list"` -} - -// String returns the string representation -func (s DescribeSchemasOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeSchemasOutput) GoString() string { - return s.String() -} - -type DescribeTableStatisticsInput struct { - _ struct{} `type:"structure"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - // - // Default: 100 - // - // Constraints: Minimum 20, maximum 100. - MaxRecords *int64 `type:"integer"` - - // The Amazon Resource Name (ARN) of the replication task. - ReplicationTaskArn *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeTableStatisticsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeTableStatisticsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTableStatisticsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTableStatisticsInput"} - if s.ReplicationTaskArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeTableStatisticsOutput struct { - _ struct{} `type:"structure"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The Amazon Resource Name (ARN) of the replication task. - ReplicationTaskArn *string `type:"string"` - - // The table statistics. - TableStatistics []*TableStatistics `type:"list"` -} - -// String returns the string representation -func (s DescribeTableStatisticsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeTableStatisticsOutput) GoString() string { - return s.String() -} - -type Endpoint struct { - _ struct{} `type:"structure"` - - // The name of the database at the endpoint. - DatabaseName *string `type:"string"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - EndpointArn *string `type:"string"` - - // 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. - EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"` - - // The database engine name. - EngineName *string `type:"string"` - - // Additional connection attributes used to connect to the endpoint. - ExtraConnectionAttributes *string `type:"string"` - - // The KMS key identifier that will be used to encrypt the connection parameters. - // If you do not specify a value for the KmsKeyId parameter, then AWS DMS will - // use your default encryption key. AWS KMS creates the default encryption key - // for your AWS account. Your AWS account has a different default encryption - // key for each AWS region. - KmsKeyId *string `type:"string"` - - // The port value used to access the endpoint. - Port *int64 `type:"integer"` - - // The name of the server at the endpoint. - ServerName *string `type:"string"` - - // The status of the endpoint. - Status *string `type:"string"` - - // The user name used to connect to the endpoint. - Username *string `type:"string"` -} - -// String returns the string representation -func (s Endpoint) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Endpoint) GoString() string { - return s.String() -} - -type Filter struct { - _ struct{} `type:"structure"` - - // The name of the filter. - Name *string `type:"string" required:"true"` - - // The filter value. - Values []*string `locationNameList:"Value" type:"list" required:"true"` -} - -// 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() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Filter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Filter"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Values == nil { - invalidParams.Add(request.NewErrParamRequired("Values")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the AWS DMS - // resource. - 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 -} - -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - - // A list of tags for the resource. - TagList []*Tag `locationNameList:"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() -} - -type ModifyEndpointInput struct { - _ struct{} `type:"structure"` - - // The name of the endpoint database. - DatabaseName *string `type:"string"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - 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. - EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"` - - // The type of engine for the endpoint. Valid values include MYSQL, ORACLE, - // POSTGRES. - EngineName *string `type:"string"` - - // Additional attributes associated with the connection. - ExtraConnectionAttributes *string `type:"string"` - - // The password to be used to login to the endpoint database. - Password *string `type:"string"` - - // The port used by the endpoint database. - Port *int64 `type:"integer"` - - // The name of the server where the endpoint database resides. - ServerName *string `type:"string"` - - // 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 invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ModifyEndpointOutput struct { - _ struct{} `type:"structure"` - - // The modified endpoint. - Endpoint *Endpoint `type:"structure"` -} - -// String returns the string representation -func (s ModifyEndpointOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyEndpointOutput) GoString() string { - return s.String() -} - -type ModifyReplicationInstanceInput struct { - _ struct{} `type:"structure"` - - // The amount of storage (in gigabytes) to be allocated for the replication - // instance. - AllocatedStorage *int64 `type:"integer"` - - // Indicates that major version upgrades are allowed. Changing this parameter - // does not result in an outage and the change is asynchronously applied as - // soon as possible. - // - // Constraints: This parameter must be set to true when specifying a value - // for the EngineVersion parameter that is a different major version than the - // replication instance's current version. - AllowMajorVersionUpgrade *bool `type:"boolean"` - - // Indicates whether the changes should be applied immediately or during the - // next maintenance window. - ApplyImmediately *bool `type:"boolean"` - - // Indicates that minor version upgrades will be applied automatically to the - // replication instance during the maintenance window. Changing this parameter - // does not result in an outage except in the following case and the change - // is asynchronously applied as soon as possible. An outage will result if this - // parameter is set to true during the maintenance window, and a newer minor - // version is available, and AWS DMS has enabled auto patching for that engine - // version. - AutoMinorVersionUpgrade *bool `type:"boolean"` - - // The engine version number of the replication instance. - EngineVersion *string `type:"string"` - - // The weekly time range (in UTC) during which system maintenance can occur, - // which might result in an outage. Changing this parameter does not result - // in an outage, except in the following situation, and the change is asynchronously - // applied as soon as possible. If moving this window to the current time, there - // must be at least 30 minutes between the current time and end of the window - // to ensure pending changes are applied. - // - // Default: Uses existing setting - // - // Format: ddd:hh24:mi-ddd:hh24:mi - // - // Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun - // - // Constraints: Must be at least 30 minutes - PreferredMaintenanceWindow *string `type:"string"` - - // The Amazon Resource Name (ARN) of the replication instance. - ReplicationInstanceArn *string `type:"string" required:"true"` - - // The compute and memory capacity of the replication instance. - // - // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large - // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge - ReplicationInstanceClass *string `type:"string"` - - // The replication instance identifier. This parameter is stored as a lowercase - // string. - ReplicationInstanceIdentifier *string `type:"string"` -} - -// String returns the string representation -func (s ModifyReplicationInstanceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyReplicationInstanceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyReplicationInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyReplicationInstanceInput"} - if s.ReplicationInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ModifyReplicationInstanceOutput struct { - _ struct{} `type:"structure"` - - // The modified replication instance. - ReplicationInstance *ReplicationInstance `type:"structure"` -} - -// String returns the string representation -func (s ModifyReplicationInstanceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyReplicationInstanceOutput) GoString() string { - return s.String() -} - -type ModifyReplicationSubnetGroupInput struct { - _ struct{} `type:"structure"` - - // The description of the replication instance subnet group. - ReplicationSubnetGroupDescription *string `type:"string"` - - // The name of the replication instance subnet group. - ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"` - - // A list of subnet IDs. - SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"` -} - -// String returns the string representation -func (s ModifyReplicationSubnetGroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyReplicationSubnetGroupInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyReplicationSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyReplicationSubnetGroupInput"} - if s.ReplicationSubnetGroupIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupIdentifier")) - } - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ModifyReplicationSubnetGroupOutput struct { - _ struct{} `type:"structure"` - - // The modified replication subnet group. - ReplicationSubnetGroup *ReplicationSubnetGroup `type:"structure"` -} - -// String returns the string representation -func (s ModifyReplicationSubnetGroupOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyReplicationSubnetGroupOutput) GoString() string { - return s.String() -} - -type OrderableReplicationInstance struct { - _ struct{} `type:"structure"` - - // The default amount of storage (in gigabytes) that is allocated for the replication - // instance. - DefaultAllocatedStorage *int64 `type:"integer"` - - // The version of the replication engine. - EngineVersion *string `type:"string"` - - // The amount of storage (in gigabytes) that is allocated for the replication - // instance. - IncludedAllocatedStorage *int64 `type:"integer"` - - // The minimum amount of storage (in gigabytes) that can be allocated for the - // replication instance. - MaxAllocatedStorage *int64 `type:"integer"` - - // The minimum amount of storage (in gigabytes) that can be allocated for the - // replication instance. - MinAllocatedStorage *int64 `type:"integer"` - - // The compute and memory capacity of the replication instance. - // - // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large - // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge - ReplicationInstanceClass *string `type:"string"` - - // The type of storage used by the replication instance. - StorageType *string `type:"string"` -} - -// String returns the string representation -func (s OrderableReplicationInstance) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s OrderableReplicationInstance) GoString() string { - return s.String() -} - -type RefreshSchemasInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - EndpointArn *string `type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the replication instance. - ReplicationInstanceArn *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s RefreshSchemasInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RefreshSchemasInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RefreshSchemasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RefreshSchemasInput"} - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) - } - if s.ReplicationInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RefreshSchemasOutput struct { - _ struct{} `type:"structure"` - - // The status of the refreshed schema. - RefreshSchemasStatus *RefreshSchemasStatus `type:"structure"` -} - -// String returns the string representation -func (s RefreshSchemasOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RefreshSchemasOutput) GoString() string { - return s.String() -} - -type RefreshSchemasStatus struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - EndpointArn *string `type:"string"` - - // The last failure message for the schema. - LastFailureMessage *string `type:"string"` - - // The date the schema was last refreshed. - LastRefreshDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The Amazon Resource Name (ARN) of the replication instance. - ReplicationInstanceArn *string `type:"string"` - - // The status of the schema. - Status *string `type:"string" enum:"RefreshSchemasStatusTypeValue"` -} - -// String returns the string representation -func (s RefreshSchemasStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RefreshSchemasStatus) GoString() string { - return s.String() -} - -type RemoveTagsFromResourceInput struct { - _ struct{} `type:"structure"` - - // >The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be - // removed from. - ResourceArn *string `type:"string" required:"true"` - - // The tag key (name) of the tag to be removed. - TagKeys []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s RemoveTagsFromResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTagsFromResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsFromResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RemoveTagsFromResourceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s RemoveTagsFromResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTagsFromResourceOutput) GoString() string { - return s.String() -} - -type ReplicationInstance struct { - _ struct{} `type:"structure"` - - // The amount of storage (in gigabytes) that is allocated for the replication - // instance. - AllocatedStorage *int64 `type:"integer"` - - // Boolean value indicating if minor version upgrades will be automatically - // applied to the instance. - AutoMinorVersionUpgrade *bool `type:"boolean"` - - // The Availability Zone for the instance. - AvailabilityZone *string `type:"string"` - - // The engine version number of the replication instance. - EngineVersion *string `type:"string"` - - // The time the replication instance was created. - InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The KMS key identifier that is used to encrypt the content on the replication - // instance. If you do not specify a value for the KmsKeyId parameter, then - // AWS DMS will use your default encryption key. AWS KMS creates the default - // encryption key for your AWS account. Your AWS account has a different default - // encryption key for each AWS region. - KmsKeyId *string `type:"string"` - - // The pending modification values. - PendingModifiedValues *ReplicationPendingModifiedValues `type:"structure"` - - // The maintenance window times for the replication instance. - PreferredMaintenanceWindow *string `type:"string"` - - // Specifies the accessibility options for the replication instance. A value - // of true represents an instance with a public IP address. A value of false - // represents an instance with a private IP address. The default value is true. - PubliclyAccessible *bool `type:"boolean"` - - // The Amazon Resource Name (ARN) of the replication instance. - ReplicationInstanceArn *string `type:"string"` - - // The compute and memory capacity of the replication instance. - // - // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large - // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge - ReplicationInstanceClass *string `type:"string"` - - // The replication instance identifier. This parameter is stored as a lowercase - // string. - // - // Constraints: - // - // Must contain from 1 to 63 alphanumeric characters or hyphens. First character - // must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. - // Example: myrepinstance - ReplicationInstanceIdentifier *string `type:"string"` - - // The private IP address of the replication instance. - ReplicationInstancePrivateIpAddress *string `type:"string"` - - // The public IP address of the replication instance. - ReplicationInstancePublicIpAddress *string `type:"string"` - - // The status of the replication instance. - ReplicationInstanceStatus *string `type:"string"` - - // The subnet group for the replication instance. - ReplicationSubnetGroup *ReplicationSubnetGroup `type:"structure"` -} - -// String returns the string representation -func (s ReplicationInstance) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ReplicationInstance) GoString() string { - return s.String() -} - -type ReplicationPendingModifiedValues struct { - _ struct{} `type:"structure"` - - // The amount of storage (in gigabytes) that is allocated for the replication - // instance. - AllocatedStorage *int64 `type:"integer"` - - // The engine version number of the replication instance. - EngineVersion *string `type:"string"` - - // The compute and memory capacity of the replication instance. - // - // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large - // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge - ReplicationInstanceClass *string `type:"string"` -} - -// String returns the string representation -func (s ReplicationPendingModifiedValues) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ReplicationPendingModifiedValues) GoString() string { - return s.String() -} - -type ReplicationSubnetGroup struct { - _ struct{} `type:"structure"` - - // The description of the replication subnet group. - ReplicationSubnetGroupDescription *string `type:"string"` - - // The identifier of the replication instance subnet group. - ReplicationSubnetGroupIdentifier *string `type:"string"` - - // The status of the subnet group. - SubnetGroupStatus *string `type:"string"` - - // The subnets that are in the subnet group. - Subnets []*Subnet `locationNameList:"Subnet" type:"list"` - - // The ID of the VPC. - VpcId *string `type:"string"` -} - -// String returns the string representation -func (s ReplicationSubnetGroup) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ReplicationSubnetGroup) GoString() string { - return s.String() -} - -type ReplicationTask struct { - _ struct{} `type:"structure"` - - // The last error (failure) message generated for the replication instance. - LastFailureMessage *string `type:"string"` - - // The type of migration. - MigrationType *string `type:"string" enum:"MigrationTypeValue"` - - // The Amazon Resource Name (ARN) of the replication instance. - ReplicationInstanceArn *string `type:"string"` - - // The Amazon Resource Name (ARN) of the replication task. - ReplicationTaskArn *string `type:"string"` - - // The date the replication task was created. - ReplicationTaskCreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The replication task identifier. - // - // Constraints: - // - // Must contain from 1 to 63 alphanumeric characters or hyphens. First character - // must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. - ReplicationTaskIdentifier *string `type:"string"` - - // The settings for the replication task. - ReplicationTaskSettings *string `type:"string"` - - // The date the replication task is scheduled to start. - ReplicationTaskStartDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The statistics for the task, including elapsed time, tables loaded, and table - // errors. - ReplicationTaskStats *ReplicationTaskStats `type:"structure"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - SourceEndpointArn *string `type:"string"` - - // The status of the replication task. - Status *string `type:"string"` - - // Table mappings specified in the task. - TableMappings *string `type:"string"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - TargetEndpointArn *string `type:"string"` -} - -// String returns the string representation -func (s ReplicationTask) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ReplicationTask) GoString() string { - return s.String() -} - -type ReplicationTaskStats struct { - _ struct{} `type:"structure"` - - // The elapsed time of the task, in milliseconds. - ElapsedTimeMillis *int64 `type:"long"` - - // The percent complete for the full load migration task. - FullLoadProgressPercent *int64 `type:"integer"` - - // The number of errors that have occurred during this task. - TablesErrored *int64 `type:"integer"` - - // The number of tables loaded for this task. - TablesLoaded *int64 `type:"integer"` - - // The number of tables currently loading for this task. - TablesLoading *int64 `type:"integer"` - - // The number of tables queued for this task. - TablesQueued *int64 `type:"integer"` -} - -// String returns the string representation -func (s ReplicationTaskStats) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ReplicationTaskStats) GoString() string { - return s.String() -} - -type StartReplicationTaskInput struct { - _ struct{} `type:"structure"` - - // The start time for the Change Data Capture (CDC) operation. - CdcStartTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The Amazon Resource Number (ARN) of the replication task to be started. - ReplicationTaskArn *string `type:"string" required:"true"` - - // The type of replication task. - StartReplicationTaskType *string `type:"string" required:"true" enum:"StartReplicationTaskTypeValue"` -} - -// String returns the string representation -func (s StartReplicationTaskInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StartReplicationTaskInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartReplicationTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartReplicationTaskInput"} - if s.ReplicationTaskArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn")) - } - if s.StartReplicationTaskType == nil { - invalidParams.Add(request.NewErrParamRequired("StartReplicationTaskType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type StartReplicationTaskOutput struct { - _ struct{} `type:"structure"` - - // The replication task started. - ReplicationTask *ReplicationTask `type:"structure"` -} - -// String returns the string representation -func (s StartReplicationTaskOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StartReplicationTaskOutput) GoString() string { - return s.String() -} - -type StopReplicationTaskInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Number(ARN) of the replication task to be stopped. - ReplicationTaskArn *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s StopReplicationTaskInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StopReplicationTaskInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopReplicationTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopReplicationTaskInput"} - if s.ReplicationTaskArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type StopReplicationTaskOutput struct { - _ struct{} `type:"structure"` - - // The replication task stopped. - ReplicationTask *ReplicationTask `type:"structure"` -} - -// String returns the string representation -func (s StopReplicationTaskOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StopReplicationTaskOutput) GoString() string { - return s.String() -} - -type Subnet struct { - _ struct{} `type:"structure"` - - // The Availability Zone of the subnet. - SubnetAvailabilityZone *AvailabilityZone `type:"structure"` - - // The subnet identifier. - SubnetIdentifier *string `type:"string"` - - // The status of the subnet. - SubnetStatus *string `type:"string"` -} - -// String returns the string representation -func (s Subnet) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Subnet) GoString() string { - return s.String() -} - -type SupportedEndpointType struct { - _ struct{} `type:"structure"` - - // The type of endpoint. - EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"` - - // The database engine name. - EngineName *string `type:"string"` - - // Indicates if Change Data Capture (CDC) is supported. - SupportsCDC *bool `type:"boolean"` -} - -// String returns the string representation -func (s SupportedEndpointType) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SupportedEndpointType) GoString() string { - return s.String() -} - -type TableStatistics struct { - _ struct{} `type:"structure"` - - // The Data Definition Language (DDL) used to build and modify the structure - // of your tables. - Ddls *int64 `type:"long"` - - // The number of delete actions performed on a table. - Deletes *int64 `type:"long"` - - // The number of rows added during the Full Load operation. - FullLoadRows *int64 `type:"long"` - - // The number of insert actions performed on a table. - Inserts *int64 `type:"long"` - - // The last time the table was updated. - LastUpdateTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The schema name. - SchemaName *string `type:"string"` - - // The name of the table. - TableName *string `type:"string"` - - // The state of the table. - TableState *string `type:"string"` - - // The number of update actions performed on a table. - Updates *int64 `type:"long"` -} - -// String returns the string representation -func (s TableStatistics) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TableStatistics) GoString() string { - return s.String() -} - -type Tag struct { - _ struct{} `type:"structure"` - - // A key is the required name of the tag. The string value can be from 1 to - // 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". - // The string can only contain only the set of Unicode letters, digits, white-space, - // '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$"). - Key *string `type:"string"` - - // A value is the optional value of the tag. The string value can be from 1 - // to 256 Unicode characters in length and cannot be prefixed with "aws:" or - // "dms:". The string can only contain only the set of Unicode letters, digits, - // white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$"). - Value *string `type:"string"` -} - -// String returns the string representation -func (s Tag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Tag) GoString() string { - return s.String() -} - -type TestConnectionInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - EndpointArn *string `type:"string" required:"true"` - - // The Amazon Resource Number (ARN) of the replication instance. - ReplicationInstanceArn *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s TestConnectionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TestConnectionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TestConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TestConnectionInput"} - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) - } - if s.ReplicationInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type TestConnectionOutput struct { - _ struct{} `type:"structure"` - - // The connection tested. - Connection *Connection `type:"structure"` -} - -// String returns the string representation -func (s TestConnectionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TestConnectionOutput) GoString() string { - return s.String() -} - -const ( - // @enum MigrationTypeValue - MigrationTypeValueFullLoad = "full-load" - // @enum MigrationTypeValue - MigrationTypeValueCdc = "cdc" - // @enum MigrationTypeValue - MigrationTypeValueFullLoadAndCdc = "full-load-and-cdc" -) - -const ( - // @enum RefreshSchemasStatusTypeValue - RefreshSchemasStatusTypeValueSuccessful = "successful" - // @enum RefreshSchemasStatusTypeValue - RefreshSchemasStatusTypeValueFailed = "failed" - // @enum RefreshSchemasStatusTypeValue - RefreshSchemasStatusTypeValueRefreshing = "refreshing" -) - -const ( - // @enum ReplicationEndpointTypeValue - ReplicationEndpointTypeValueSource = "source" - // @enum ReplicationEndpointTypeValue - ReplicationEndpointTypeValueTarget = "target" -) - -const ( - // @enum StartReplicationTaskTypeValue - StartReplicationTaskTypeValueStartReplication = "start-replication" - // @enum StartReplicationTaskTypeValue - StartReplicationTaskTypeValueResumeProcessing = "resume-processing" - // @enum StartReplicationTaskTypeValue - StartReplicationTaskTypeValueReloadTarget = "reload-target" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go deleted file mode 100644 index 8c335be72..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface/interface.go +++ /dev/null @@ -1,130 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package databasemigrationserviceiface provides an interface for the AWS Database Migration Service. -package databasemigrationserviceiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/databasemigrationservice" -) - -// DatabaseMigrationServiceAPI is the interface type for databasemigrationservice.DatabaseMigrationService. -type DatabaseMigrationServiceAPI interface { - AddTagsToResourceRequest(*databasemigrationservice.AddTagsToResourceInput) (*request.Request, *databasemigrationservice.AddTagsToResourceOutput) - - AddTagsToResource(*databasemigrationservice.AddTagsToResourceInput) (*databasemigrationservice.AddTagsToResourceOutput, error) - - CreateEndpointRequest(*databasemigrationservice.CreateEndpointInput) (*request.Request, *databasemigrationservice.CreateEndpointOutput) - - CreateEndpoint(*databasemigrationservice.CreateEndpointInput) (*databasemigrationservice.CreateEndpointOutput, error) - - CreateReplicationInstanceRequest(*databasemigrationservice.CreateReplicationInstanceInput) (*request.Request, *databasemigrationservice.CreateReplicationInstanceOutput) - - CreateReplicationInstance(*databasemigrationservice.CreateReplicationInstanceInput) (*databasemigrationservice.CreateReplicationInstanceOutput, error) - - CreateReplicationSubnetGroupRequest(*databasemigrationservice.CreateReplicationSubnetGroupInput) (*request.Request, *databasemigrationservice.CreateReplicationSubnetGroupOutput) - - CreateReplicationSubnetGroup(*databasemigrationservice.CreateReplicationSubnetGroupInput) (*databasemigrationservice.CreateReplicationSubnetGroupOutput, error) - - CreateReplicationTaskRequest(*databasemigrationservice.CreateReplicationTaskInput) (*request.Request, *databasemigrationservice.CreateReplicationTaskOutput) - - CreateReplicationTask(*databasemigrationservice.CreateReplicationTaskInput) (*databasemigrationservice.CreateReplicationTaskOutput, error) - - DeleteEndpointRequest(*databasemigrationservice.DeleteEndpointInput) (*request.Request, *databasemigrationservice.DeleteEndpointOutput) - - DeleteEndpoint(*databasemigrationservice.DeleteEndpointInput) (*databasemigrationservice.DeleteEndpointOutput, error) - - DeleteReplicationInstanceRequest(*databasemigrationservice.DeleteReplicationInstanceInput) (*request.Request, *databasemigrationservice.DeleteReplicationInstanceOutput) - - DeleteReplicationInstance(*databasemigrationservice.DeleteReplicationInstanceInput) (*databasemigrationservice.DeleteReplicationInstanceOutput, error) - - DeleteReplicationSubnetGroupRequest(*databasemigrationservice.DeleteReplicationSubnetGroupInput) (*request.Request, *databasemigrationservice.DeleteReplicationSubnetGroupOutput) - - DeleteReplicationSubnetGroup(*databasemigrationservice.DeleteReplicationSubnetGroupInput) (*databasemigrationservice.DeleteReplicationSubnetGroupOutput, error) - - DeleteReplicationTaskRequest(*databasemigrationservice.DeleteReplicationTaskInput) (*request.Request, *databasemigrationservice.DeleteReplicationTaskOutput) - - DeleteReplicationTask(*databasemigrationservice.DeleteReplicationTaskInput) (*databasemigrationservice.DeleteReplicationTaskOutput, error) - - DescribeAccountAttributesRequest(*databasemigrationservice.DescribeAccountAttributesInput) (*request.Request, *databasemigrationservice.DescribeAccountAttributesOutput) - - DescribeAccountAttributes(*databasemigrationservice.DescribeAccountAttributesInput) (*databasemigrationservice.DescribeAccountAttributesOutput, error) - - DescribeConnectionsRequest(*databasemigrationservice.DescribeConnectionsInput) (*request.Request, *databasemigrationservice.DescribeConnectionsOutput) - - DescribeConnections(*databasemigrationservice.DescribeConnectionsInput) (*databasemigrationservice.DescribeConnectionsOutput, error) - - DescribeEndpointTypesRequest(*databasemigrationservice.DescribeEndpointTypesInput) (*request.Request, *databasemigrationservice.DescribeEndpointTypesOutput) - - DescribeEndpointTypes(*databasemigrationservice.DescribeEndpointTypesInput) (*databasemigrationservice.DescribeEndpointTypesOutput, error) - - DescribeEndpointsRequest(*databasemigrationservice.DescribeEndpointsInput) (*request.Request, *databasemigrationservice.DescribeEndpointsOutput) - - DescribeEndpoints(*databasemigrationservice.DescribeEndpointsInput) (*databasemigrationservice.DescribeEndpointsOutput, error) - - DescribeOrderableReplicationInstancesRequest(*databasemigrationservice.DescribeOrderableReplicationInstancesInput) (*request.Request, *databasemigrationservice.DescribeOrderableReplicationInstancesOutput) - - DescribeOrderableReplicationInstances(*databasemigrationservice.DescribeOrderableReplicationInstancesInput) (*databasemigrationservice.DescribeOrderableReplicationInstancesOutput, error) - - DescribeRefreshSchemasStatusRequest(*databasemigrationservice.DescribeRefreshSchemasStatusInput) (*request.Request, *databasemigrationservice.DescribeRefreshSchemasStatusOutput) - - DescribeRefreshSchemasStatus(*databasemigrationservice.DescribeRefreshSchemasStatusInput) (*databasemigrationservice.DescribeRefreshSchemasStatusOutput, error) - - DescribeReplicationInstancesRequest(*databasemigrationservice.DescribeReplicationInstancesInput) (*request.Request, *databasemigrationservice.DescribeReplicationInstancesOutput) - - DescribeReplicationInstances(*databasemigrationservice.DescribeReplicationInstancesInput) (*databasemigrationservice.DescribeReplicationInstancesOutput, error) - - DescribeReplicationSubnetGroupsRequest(*databasemigrationservice.DescribeReplicationSubnetGroupsInput) (*request.Request, *databasemigrationservice.DescribeReplicationSubnetGroupsOutput) - - DescribeReplicationSubnetGroups(*databasemigrationservice.DescribeReplicationSubnetGroupsInput) (*databasemigrationservice.DescribeReplicationSubnetGroupsOutput, error) - - DescribeReplicationTasksRequest(*databasemigrationservice.DescribeReplicationTasksInput) (*request.Request, *databasemigrationservice.DescribeReplicationTasksOutput) - - DescribeReplicationTasks(*databasemigrationservice.DescribeReplicationTasksInput) (*databasemigrationservice.DescribeReplicationTasksOutput, error) - - DescribeSchemasRequest(*databasemigrationservice.DescribeSchemasInput) (*request.Request, *databasemigrationservice.DescribeSchemasOutput) - - DescribeSchemas(*databasemigrationservice.DescribeSchemasInput) (*databasemigrationservice.DescribeSchemasOutput, error) - - DescribeTableStatisticsRequest(*databasemigrationservice.DescribeTableStatisticsInput) (*request.Request, *databasemigrationservice.DescribeTableStatisticsOutput) - - DescribeTableStatistics(*databasemigrationservice.DescribeTableStatisticsInput) (*databasemigrationservice.DescribeTableStatisticsOutput, error) - - ListTagsForResourceRequest(*databasemigrationservice.ListTagsForResourceInput) (*request.Request, *databasemigrationservice.ListTagsForResourceOutput) - - ListTagsForResource(*databasemigrationservice.ListTagsForResourceInput) (*databasemigrationservice.ListTagsForResourceOutput, error) - - ModifyEndpointRequest(*databasemigrationservice.ModifyEndpointInput) (*request.Request, *databasemigrationservice.ModifyEndpointOutput) - - ModifyEndpoint(*databasemigrationservice.ModifyEndpointInput) (*databasemigrationservice.ModifyEndpointOutput, error) - - ModifyReplicationInstanceRequest(*databasemigrationservice.ModifyReplicationInstanceInput) (*request.Request, *databasemigrationservice.ModifyReplicationInstanceOutput) - - ModifyReplicationInstance(*databasemigrationservice.ModifyReplicationInstanceInput) (*databasemigrationservice.ModifyReplicationInstanceOutput, error) - - ModifyReplicationSubnetGroupRequest(*databasemigrationservice.ModifyReplicationSubnetGroupInput) (*request.Request, *databasemigrationservice.ModifyReplicationSubnetGroupOutput) - - ModifyReplicationSubnetGroup(*databasemigrationservice.ModifyReplicationSubnetGroupInput) (*databasemigrationservice.ModifyReplicationSubnetGroupOutput, error) - - RefreshSchemasRequest(*databasemigrationservice.RefreshSchemasInput) (*request.Request, *databasemigrationservice.RefreshSchemasOutput) - - RefreshSchemas(*databasemigrationservice.RefreshSchemasInput) (*databasemigrationservice.RefreshSchemasOutput, error) - - RemoveTagsFromResourceRequest(*databasemigrationservice.RemoveTagsFromResourceInput) (*request.Request, *databasemigrationservice.RemoveTagsFromResourceOutput) - - RemoveTagsFromResource(*databasemigrationservice.RemoveTagsFromResourceInput) (*databasemigrationservice.RemoveTagsFromResourceOutput, error) - - StartReplicationTaskRequest(*databasemigrationservice.StartReplicationTaskInput) (*request.Request, *databasemigrationservice.StartReplicationTaskOutput) - - StartReplicationTask(*databasemigrationservice.StartReplicationTaskInput) (*databasemigrationservice.StartReplicationTaskOutput, error) - - StopReplicationTaskRequest(*databasemigrationservice.StopReplicationTaskInput) (*request.Request, *databasemigrationservice.StopReplicationTaskOutput) - - StopReplicationTask(*databasemigrationservice.StopReplicationTaskInput) (*databasemigrationservice.StopReplicationTaskOutput, error) - - TestConnectionRequest(*databasemigrationservice.TestConnectionInput) (*request.Request, *databasemigrationservice.TestConnectionOutput) - - TestConnection(*databasemigrationservice.TestConnectionInput) (*databasemigrationservice.TestConnectionOutput, error) -} - -var _ DatabaseMigrationServiceAPI = (*databasemigrationservice.DatabaseMigrationService)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go deleted file mode 100644 index ff70c9de0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/examples_test.go +++ /dev/null @@ -1,731 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package databasemigrationservice_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/databasemigrationservice" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleDatabaseMigrationService_AddTagsToResource() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.AddTagsToResourceInput{ - ResourceArn: aws.String("String"), // Required - Tags: []*databasemigrationservice.Tag{ // Required - { // Required - Key: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.AddTagsToResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_CreateEndpoint() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.CreateEndpointInput{ - EndpointIdentifier: aws.String("String"), // Required - EndpointType: aws.String("ReplicationEndpointTypeValue"), // Required - EngineName: aws.String("String"), // Required - Password: aws.String("SecretString"), // Required - Port: aws.Int64(1), // Required - ServerName: aws.String("String"), // Required - Username: aws.String("String"), // Required - DatabaseName: aws.String("String"), - ExtraConnectionAttributes: aws.String("String"), - KmsKeyId: aws.String("String"), - Tags: []*databasemigrationservice.Tag{ - { // Required - Key: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.CreateEndpoint(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_CreateReplicationInstance() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.CreateReplicationInstanceInput{ - ReplicationInstanceClass: aws.String("String"), // Required - ReplicationInstanceIdentifier: aws.String("String"), // Required - AllocatedStorage: aws.Int64(1), - AutoMinorVersionUpgrade: aws.Bool(true), - AvailabilityZone: aws.String("String"), - EngineVersion: aws.String("String"), - KmsKeyId: aws.String("String"), - PreferredMaintenanceWindow: aws.String("String"), - PubliclyAccessible: aws.Bool(true), - ReplicationSubnetGroupIdentifier: aws.String("String"), - Tags: []*databasemigrationservice.Tag{ - { // Required - Key: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.CreateReplicationInstance(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_CreateReplicationSubnetGroup() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.CreateReplicationSubnetGroupInput{ - ReplicationSubnetGroupDescription: aws.String("String"), // Required - ReplicationSubnetGroupIdentifier: aws.String("String"), // Required - SubnetIds: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - Tags: []*databasemigrationservice.Tag{ - { // Required - Key: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.CreateReplicationSubnetGroup(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_CreateReplicationTask() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.CreateReplicationTaskInput{ - MigrationType: aws.String("MigrationTypeValue"), // Required - ReplicationInstanceArn: aws.String("String"), // Required - ReplicationTaskIdentifier: aws.String("String"), // Required - SourceEndpointArn: aws.String("String"), // Required - TableMappings: aws.String("String"), // Required - TargetEndpointArn: aws.String("String"), // Required - CdcStartTime: aws.Time(time.Now()), - ReplicationTaskSettings: aws.String("String"), - Tags: []*databasemigrationservice.Tag{ - { // Required - Key: aws.String("String"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.CreateReplicationTask(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DeleteEndpoint() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DeleteEndpointInput{ - EndpointArn: aws.String("String"), // Required - } - resp, err := svc.DeleteEndpoint(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DeleteReplicationInstance() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DeleteReplicationInstanceInput{ - ReplicationInstanceArn: aws.String("String"), // Required - } - resp, err := svc.DeleteReplicationInstance(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DeleteReplicationSubnetGroup() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DeleteReplicationSubnetGroupInput{ - ReplicationSubnetGroupIdentifier: aws.String("String"), // Required - } - resp, err := svc.DeleteReplicationSubnetGroup(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DeleteReplicationTask() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DeleteReplicationTaskInput{ - ReplicationTaskArn: aws.String("String"), // Required - } - resp, err := svc.DeleteReplicationTask(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeAccountAttributes() { - svc := databasemigrationservice.New(session.New()) - - var params *databasemigrationservice.DescribeAccountAttributesInput - resp, err := svc.DescribeAccountAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeConnections() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DescribeConnectionsInput{ - Filters: []*databasemigrationservice.Filter{ - { // Required - Name: aws.String("String"), // Required - Values: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - } - resp, err := svc.DescribeConnections(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeEndpointTypes() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DescribeEndpointTypesInput{ - Filters: []*databasemigrationservice.Filter{ - { // Required - Name: aws.String("String"), // Required - Values: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - } - resp, err := svc.DescribeEndpointTypes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeEndpoints() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DescribeEndpointsInput{ - Filters: []*databasemigrationservice.Filter{ - { // Required - Name: aws.String("String"), // Required - Values: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - } - resp, err := svc.DescribeEndpoints(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeOrderableReplicationInstances() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DescribeOrderableReplicationInstancesInput{ - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - } - resp, err := svc.DescribeOrderableReplicationInstances(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeRefreshSchemasStatus() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DescribeRefreshSchemasStatusInput{ - EndpointArn: aws.String("String"), // Required - } - resp, err := svc.DescribeRefreshSchemasStatus(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeReplicationInstances() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DescribeReplicationInstancesInput{ - Filters: []*databasemigrationservice.Filter{ - { // Required - Name: aws.String("String"), // Required - Values: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - } - resp, err := svc.DescribeReplicationInstances(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeReplicationSubnetGroups() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DescribeReplicationSubnetGroupsInput{ - Filters: []*databasemigrationservice.Filter{ - { // Required - Name: aws.String("String"), // Required - Values: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - } - resp, err := svc.DescribeReplicationSubnetGroups(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeReplicationTasks() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DescribeReplicationTasksInput{ - Filters: []*databasemigrationservice.Filter{ - { // Required - Name: aws.String("String"), // Required - Values: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - } - resp, err := svc.DescribeReplicationTasks(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeSchemas() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DescribeSchemasInput{ - EndpointArn: aws.String("String"), // Required - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - } - resp, err := svc.DescribeSchemas(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_DescribeTableStatistics() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.DescribeTableStatisticsInput{ - ReplicationTaskArn: aws.String("String"), // Required - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - } - resp, err := svc.DescribeTableStatistics(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_ListTagsForResource() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.ListTagsForResourceInput{ - ResourceArn: aws.String("String"), // Required - } - resp, err := svc.ListTagsForResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_ModifyEndpoint() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.ModifyEndpointInput{ - EndpointArn: aws.String("String"), // Required - DatabaseName: aws.String("String"), - EndpointIdentifier: aws.String("String"), - EndpointType: aws.String("ReplicationEndpointTypeValue"), - EngineName: aws.String("String"), - ExtraConnectionAttributes: aws.String("String"), - Password: aws.String("SecretString"), - Port: aws.Int64(1), - ServerName: aws.String("String"), - Username: aws.String("String"), - } - resp, err := svc.ModifyEndpoint(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_ModifyReplicationInstance() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.ModifyReplicationInstanceInput{ - ReplicationInstanceArn: aws.String("String"), // Required - AllocatedStorage: aws.Int64(1), - AllowMajorVersionUpgrade: aws.Bool(true), - ApplyImmediately: aws.Bool(true), - AutoMinorVersionUpgrade: aws.Bool(true), - EngineVersion: aws.String("String"), - PreferredMaintenanceWindow: aws.String("String"), - ReplicationInstanceClass: aws.String("String"), - ReplicationInstanceIdentifier: aws.String("String"), - } - resp, err := svc.ModifyReplicationInstance(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_ModifyReplicationSubnetGroup() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.ModifyReplicationSubnetGroupInput{ - ReplicationSubnetGroupIdentifier: aws.String("String"), // Required - SubnetIds: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - ReplicationSubnetGroupDescription: aws.String("String"), - } - resp, err := svc.ModifyReplicationSubnetGroup(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_RefreshSchemas() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.RefreshSchemasInput{ - EndpointArn: aws.String("String"), // Required - ReplicationInstanceArn: aws.String("String"), // Required - } - resp, err := svc.RefreshSchemas(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_RemoveTagsFromResource() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.RemoveTagsFromResourceInput{ - ResourceArn: aws.String("String"), // Required - TagKeys: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.RemoveTagsFromResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_StartReplicationTask() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.StartReplicationTaskInput{ - ReplicationTaskArn: aws.String("String"), // Required - StartReplicationTaskType: aws.String("StartReplicationTaskTypeValue"), // Required - CdcStartTime: aws.Time(time.Now()), - } - resp, err := svc.StartReplicationTask(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_StopReplicationTask() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.StopReplicationTaskInput{ - ReplicationTaskArn: aws.String("String"), // Required - } - resp, err := svc.StopReplicationTask(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDatabaseMigrationService_TestConnection() { - svc := databasemigrationservice.New(session.New()) - - params := &databasemigrationservice.TestConnectionInput{ - EndpointArn: aws.String("String"), // Required - ReplicationInstanceArn: aws.String("String"), // Required - } - resp, err := svc.TestConnection(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/service.go deleted file mode 100644 index 3144a0579..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/service.go +++ /dev/null @@ -1,93 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package databasemigrationservice - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// AWS Database Migration Service (AWS DMS) can migrate your data to and from -// the most widely used commercial and open-source databases such as Oracle, -// PostgreSQL, Microsoft SQL Server, MariaDB, Amazon Aurora, and MySQL. The -// service supports homogeneous migrations such as Oracle to Oracle, as well -// as heterogeneous migrations between different database platforms, such as -// Oracle to MySQL or SQL Server to PostgreSQL. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type DatabaseMigrationService struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "dms" - -// New creates a new instance of the DatabaseMigrationService client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a DatabaseMigrationService client from just a session. -// svc := databasemigrationservice.New(mySession) -// -// // Create a DatabaseMigrationService client with additional configuration -// svc := databasemigrationservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *DatabaseMigrationService { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DatabaseMigrationService { - svc := &DatabaseMigrationService{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2016-01-01", - JSONVersion: "1.1", - TargetPrefix: "AmazonDMSv20160101", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a DatabaseMigrationService operation and runs any -// custom request initialization. -func (c *DatabaseMigrationService) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go index b2dee62b4..ade5bd8fa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/api.go @@ -4,13 +4,10 @@ package datapipeline import ( - "fmt" "time" "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/private/protocol/jsonrpc" ) const opActivatePipeline = "ActivatePipeline" @@ -149,8 +146,6 @@ func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeletePipelineOutput{} req.Data = output return @@ -207,7 +202,6 @@ func (c *DataPipeline) DescribeObjects(input *DescribeObjectsInput) (*DescribeOb func (c *DataPipeline) DescribeObjectsPages(input *DescribeObjectsInput, fn func(p *DescribeObjectsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeObjectsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeObjectsOutput), lastPage) }) @@ -341,7 +335,6 @@ func (c *DataPipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesO func (c *DataPipeline) ListPipelinesPages(input *ListPipelinesInput, fn func(p *ListPipelinesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListPipelinesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListPipelinesOutput), lastPage) }) @@ -461,7 +454,6 @@ func (c *DataPipeline) QueryObjects(input *QueryObjectsInput) (*QueryObjectsOutp func (c *DataPipeline) QueryObjectsPages(input *QueryObjectsInput, fn func(p *QueryObjectsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.QueryObjectsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*QueryObjectsOutput), lastPage) }) @@ -578,8 +570,6 @@ func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *request.Req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetStatusOutput{} req.Data = output return @@ -657,17 +647,21 @@ func (c *DataPipeline) ValidatePipelineDefinition(input *ValidatePipelineDefinit // Contains the parameters for ActivatePipeline. type ActivatePipelineInput struct { - _ struct{} `type:"structure"` - // A list of parameter values to pass to the pipeline at activation. ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"` // The ID of the pipeline. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` // The date and time to resume the pipeline. By default, the pipeline resumes // from the last completed execution. StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp" timestampFormat:"unix"` + + metadataActivatePipelineInput `json:"-" xml:"-"` +} + +type metadataActivatePipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -680,35 +674,13 @@ func (s ActivatePipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ActivatePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ActivatePipelineInput"} - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - if s.ParameterValues != nil { - for i, v := range s.ParameterValues { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of ActivatePipeline. type ActivatePipelineOutput struct { - _ struct{} `type:"structure"` + metadataActivatePipelineOutput `json:"-" xml:"-"` +} + +type metadataActivatePipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -723,13 +695,17 @@ func (s ActivatePipelineOutput) GoString() string { // Contains the parameters for AddTags. type AddTagsInput struct { - _ struct{} `type:"structure"` - // The ID of the pipeline. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` // The tags to add, as key/value pairs. Tags []*Tag `locationName:"tags" type:"list" required:"true"` + + metadataAddTagsInput `json:"-" xml:"-"` +} + +type metadataAddTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -742,38 +718,13 @@ func (s AddTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"} - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of AddTags. type AddTagsOutput struct { - _ struct{} `type:"structure"` + metadataAddTagsOutput `json:"-" xml:"-"` +} + +type metadataAddTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -788,15 +739,13 @@ func (s AddTagsOutput) GoString() string { // Contains the parameters for CreatePipeline. type CreatePipelineInput struct { - _ struct{} `type:"structure"` - // The description for the pipeline. Description *string `locationName:"description" type:"string"` // The name for the pipeline. You can use the same name for multiple pipelines // associated with your AWS account, because AWS Data Pipeline assigns each // pipeline a unique pipeline identifier. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // A list of tags to associate with the pipeline at creation. Tags let you control // access to pipelines. For more information, see Controlling User Access to @@ -815,7 +764,13 @@ type CreatePipelineInput struct { // Instead, you'll receive the pipeline identifier from the previous attempt. // The uniqueness of the name and unique identifier combination is scoped to // the AWS account or IAM user credentials. - UniqueId *string `locationName:"uniqueId" min:"1" type:"string" required:"true"` + UniqueId *string `locationName:"uniqueId" type:"string" required:"true"` + + metadataCreatePipelineInput `json:"-" xml:"-"` +} + +type metadataCreatePipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -828,45 +783,17 @@ func (s CreatePipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.UniqueId == nil { - invalidParams.Add(request.NewErrParamRequired("UniqueId")) - } - if s.UniqueId != nil && len(*s.UniqueId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UniqueId", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of CreatePipeline. type CreatePipelineOutput struct { - _ struct{} `type:"structure"` - // The ID that AWS Data Pipeline assigns the newly created pipeline. For example, // df-06372391ZG65EXAMPLE. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` + + metadataCreatePipelineOutput `json:"-" xml:"-"` +} + +type metadataCreatePipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -881,15 +808,19 @@ func (s CreatePipelineOutput) GoString() string { // Contains the parameters for DeactivatePipeline. type DeactivatePipelineInput struct { - _ struct{} `type:"structure"` - // Indicates whether to cancel any running objects. The default is true, which // sets the state of any running objects to CANCELED. If this value is false, // the pipeline is deactivated after all running objects finish. CancelActive *bool `locationName:"cancelActive" type:"boolean"` // The ID of the pipeline. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` + + metadataDeactivatePipelineInput `json:"-" xml:"-"` +} + +type metadataDeactivatePipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -902,25 +833,13 @@ func (s DeactivatePipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeactivatePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeactivatePipelineInput"} - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of DeactivatePipeline. type DeactivatePipelineOutput struct { - _ struct{} `type:"structure"` + metadataDeactivatePipelineOutput `json:"-" xml:"-"` +} + +type metadataDeactivatePipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -935,10 +854,14 @@ func (s DeactivatePipelineOutput) GoString() string { // Contains the parameters for DeletePipeline. type DeletePipelineInput struct { - _ struct{} `type:"structure"` - // The ID of the pipeline. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` + + metadataDeletePipelineInput `json:"-" xml:"-"` +} + +type metadataDeletePipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -951,24 +874,12 @@ func (s DeletePipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"} - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeletePipelineOutput struct { + metadataDeletePipelineOutput `json:"-" xml:"-"` } -type DeletePipelineOutput struct { - _ struct{} `type:"structure"` +type metadataDeletePipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -983,8 +894,6 @@ func (s DeletePipelineOutput) GoString() string { // Contains the parameters for DescribeObjects. type DescribeObjectsInput struct { - _ struct{} `type:"structure"` - // Indicates whether any expressions in the object should be evaluated when // the object descriptions are returned. EvaluateExpressions *bool `locationName:"evaluateExpressions" type:"boolean"` @@ -1000,7 +909,13 @@ type DescribeObjectsInput struct { ObjectIds []*string `locationName:"objectIds" type:"list" required:"true"` // The ID of the pipeline that contains the object definitions. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` + + metadataDescribeObjectsInput `json:"-" xml:"-"` +} + +type metadataDescribeObjectsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1013,29 +928,8 @@ func (s DescribeObjectsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeObjectsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeObjectsInput"} - if s.ObjectIds == nil { - invalidParams.Add(request.NewErrParamRequired("ObjectIds")) - } - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of DescribeObjects. type DescribeObjectsOutput struct { - _ struct{} `type:"structure"` - // Indicates whether there are more results to return. HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"` @@ -1046,6 +940,12 @@ type DescribeObjectsOutput struct { // An array of object definitions. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"` + + metadataDescribeObjectsOutput `json:"-" xml:"-"` +} + +type metadataDescribeObjectsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1060,11 +960,15 @@ func (s DescribeObjectsOutput) GoString() string { // Contains the parameters for DescribePipelines. type DescribePipelinesInput struct { - _ struct{} `type:"structure"` - // The IDs of the pipelines to describe. You can pass as many as 25 identifiers // in a single call. To obtain pipeline IDs, call ListPipelines. PipelineIds []*string `locationName:"pipelineIds" type:"list" required:"true"` + + metadataDescribePipelinesInput `json:"-" xml:"-"` +} + +type metadataDescribePipelinesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1077,25 +981,16 @@ func (s DescribePipelinesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribePipelinesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribePipelinesInput"} - if s.PipelineIds == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of DescribePipelines. type DescribePipelinesOutput struct { - _ struct{} `type:"structure"` - // An array of descriptions for the specified pipelines. PipelineDescriptionList []*PipelineDescription `locationName:"pipelineDescriptionList" type:"list" required:"true"` + + metadataDescribePipelinesOutput `json:"-" xml:"-"` +} + +type metadataDescribePipelinesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1110,16 +1005,20 @@ func (s DescribePipelinesOutput) GoString() string { // Contains the parameters for EvaluateExpression. type EvaluateExpressionInput struct { - _ struct{} `type:"structure"` - // The expression to evaluate. Expression *string `locationName:"expression" type:"string" required:"true"` // The ID of the object. - ObjectId *string `locationName:"objectId" min:"1" type:"string" required:"true"` + ObjectId *string `locationName:"objectId" type:"string" required:"true"` // The ID of the pipeline. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` + + metadataEvaluateExpressionInput `json:"-" xml:"-"` +} + +type metadataEvaluateExpressionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1132,37 +1031,16 @@ func (s EvaluateExpressionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EvaluateExpressionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EvaluateExpressionInput"} - if s.Expression == nil { - invalidParams.Add(request.NewErrParamRequired("Expression")) - } - if s.ObjectId == nil { - invalidParams.Add(request.NewErrParamRequired("ObjectId")) - } - if s.ObjectId != nil && len(*s.ObjectId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ObjectId", 1)) - } - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of EvaluateExpression. type EvaluateExpressionOutput struct { - _ struct{} `type:"structure"` - // The evaluated expression. EvaluatedExpression *string `locationName:"evaluatedExpression" type:"string" required:"true"` + + metadataEvaluateExpressionOutput `json:"-" xml:"-"` +} + +type metadataEvaluateExpressionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1179,16 +1057,20 @@ func (s EvaluateExpressionOutput) GoString() string { // is specified as either a string value (StringValue) or a reference to another // object (RefValue) but not as both. type Field struct { - _ struct{} `type:"structure"` - // The field identifier. - Key *string `locationName:"key" min:"1" type:"string" required:"true"` + Key *string `locationName:"key" type:"string" required:"true"` // The field value, expressed as the identifier of another object. - RefValue *string `locationName:"refValue" min:"1" type:"string"` + RefValue *string `locationName:"refValue" type:"string"` // The field value, expressed as a String. StringValue *string `locationName:"stringValue" type:"string"` + + metadataField `json:"-" xml:"-"` +} + +type metadataField struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1201,36 +1083,21 @@ func (s Field) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Field) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Field"} - 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.RefValue != nil && len(*s.RefValue) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RefValue", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the parameters for GetPipelineDefinition. type GetPipelineDefinitionInput struct { - _ struct{} `type:"structure"` - // The ID of the pipeline. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` // The version of the pipeline definition to retrieve. Set this parameter to // latest (default) to use the last definition saved to the pipeline or active // to use the last definition that was activated. Version *string `locationName:"version" type:"string"` + + metadataGetPipelineDefinitionInput `json:"-" xml:"-"` +} + +type metadataGetPipelineDefinitionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1243,26 +1110,8 @@ func (s GetPipelineDefinitionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPipelineDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPipelineDefinitionInput"} - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of GetPipelineDefinition. type GetPipelineDefinitionOutput struct { - _ struct{} `type:"structure"` - // The parameter objects used in the pipeline definition. ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"` @@ -1271,6 +1120,12 @@ type GetPipelineDefinitionOutput struct { // The objects defined in the pipeline. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list"` + + metadataGetPipelineDefinitionOutput `json:"-" xml:"-"` +} + +type metadataGetPipelineDefinitionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1290,8 +1145,6 @@ func (s GetPipelineDefinitionOutput) GoString() string { // that your task runner is running on an EC2 instance, and ensures the proper // AWS Data Pipeline service charges are applied to your pipeline. type InstanceIdentity struct { - _ struct{} `type:"structure"` - // A description of an EC2 instance that is generated when the instance is launched // and exposed to the instance via the instance metadata service in the form // of a JSON representation of an object. @@ -1300,6 +1153,12 @@ type InstanceIdentity struct { // A signature which can be used to verify the accuracy and authenticity of // the information provided in the instance identity document. Signature *string `locationName:"signature" type:"string"` + + metadataInstanceIdentity `json:"-" xml:"-"` +} + +type metadataInstanceIdentity struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1314,13 +1173,17 @@ func (s InstanceIdentity) GoString() string { // Contains the parameters for ListPipelines. type ListPipelinesInput struct { - _ struct{} `type:"structure"` - // The starting point for the results to be returned. For the first call, this // value should be empty. As long as there are more results, continue to call // ListPipelines with the marker value from the previous call to retrieve the // next set of results. Marker *string `locationName:"marker" type:"string"` + + metadataListPipelinesInput `json:"-" xml:"-"` +} + +type metadataListPipelinesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1335,8 +1198,6 @@ func (s ListPipelinesInput) GoString() string { // Contains the output of ListPipelines. type ListPipelinesOutput struct { - _ struct{} `type:"structure"` - // Indicates whether there are more results that can be obtained by a subsequent // call. HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"` @@ -1349,6 +1210,12 @@ type ListPipelinesOutput struct { // The pipeline identifiers. If you require additional information about the // pipelines, you can use these identifiers to call DescribePipelines and GetPipelineDefinition. PipelineIdList []*PipelineIdName `locationName:"pipelineIdList" type:"list" required:"true"` + + metadataListPipelinesOutput `json:"-" xml:"-"` +} + +type metadataListPipelinesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1364,8 +1231,6 @@ func (s ListPipelinesOutput) GoString() string { // Contains a logical operation for comparing the value of a field with a specified // value. type Operator struct { - _ struct{} `type:"structure"` - // The logical operation to be performed: equal (EQ), equal reference (REF_EQ), // less than or equal (LE), greater than or equal (GE), or between (BETWEEN). // Equal reference (REF_EQ) can be used only with reference fields. The other @@ -1388,6 +1253,12 @@ type Operator struct { // The value that the actual field value will be compared with. Values []*string `locationName:"values" type:"list"` + + metadataOperator `json:"-" xml:"-"` +} + +type metadataOperator struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1402,13 +1273,17 @@ func (s Operator) GoString() string { // The attributes allowed or specified with a parameter object. type ParameterAttribute struct { - _ struct{} `type:"structure"` - // The field identifier. - Key *string `locationName:"key" min:"1" type:"string" required:"true"` + Key *string `locationName:"key" type:"string" required:"true"` // The field value, expressed as a String. StringValue *string `locationName:"stringValue" type:"string" required:"true"` + + metadataParameterAttribute `json:"-" xml:"-"` +} + +type metadataParameterAttribute struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1421,34 +1296,19 @@ func (s ParameterAttribute) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ParameterAttribute) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ParameterAttribute"} - 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.StringValue == nil { - invalidParams.Add(request.NewErrParamRequired("StringValue")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains information about a parameter object. type ParameterObject struct { - _ struct{} `type:"structure"` - // The attributes of the parameter object. Attributes []*ParameterAttribute `locationName:"attributes" type:"list" required:"true"` // The ID of the parameter object. - Id *string `locationName:"id" min:"1" type:"string" required:"true"` + Id *string `locationName:"id" type:"string" required:"true"` + + metadataParameterObject `json:"-" xml:"-"` +} + +type metadataParameterObject struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1461,44 +1321,19 @@ func (s ParameterObject) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ParameterObject) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ParameterObject"} - if s.Attributes == nil { - invalidParams.Add(request.NewErrParamRequired("Attributes")) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } - if s.Attributes != nil { - for i, v := range s.Attributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A value or list of parameter values. type ParameterValue struct { - _ struct{} `type:"structure"` - // The ID of the parameter value. - Id *string `locationName:"id" min:"1" type:"string" required:"true"` + Id *string `locationName:"id" type:"string" required:"true"` // The field value, expressed as a String. StringValue *string `locationName:"stringValue" type:"string" required:"true"` + + metadataParameterValue `json:"-" xml:"-"` +} + +type metadataParameterValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1511,29 +1346,8 @@ func (s ParameterValue) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ParameterValue) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ParameterValue"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } - if s.StringValue == nil { - invalidParams.Add(request.NewErrParamRequired("StringValue")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains pipeline metadata. type PipelineDescription struct { - _ struct{} `type:"structure"` - // Description of the pipeline. Description *string `locationName:"description" type:"string"` @@ -1542,17 +1356,23 @@ type PipelineDescription struct { Fields []*Field `locationName:"fields" type:"list" required:"true"` // The name of the pipeline. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // The pipeline identifier that was assigned by AWS Data Pipeline. This is a // string of the form df-297EG78HU43EEXAMPLE. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` // A list of tags to associated with a pipeline. Tags let you control access // to pipelines. For more information, see Controlling User Access to Pipelines // (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html) // in the AWS Data Pipeline Developer Guide. Tags []*Tag `locationName:"tags" type:"list"` + + metadataPipelineDescription `json:"-" xml:"-"` +} + +type metadataPipelineDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1567,14 +1387,18 @@ func (s PipelineDescription) GoString() string { // Contains the name and identifier of a pipeline. type PipelineIdName struct { - _ struct{} `type:"structure"` - // The ID of the pipeline that was assigned by AWS Data Pipeline. This is a // string of the form df-297EG78HU43EEXAMPLE. - Id *string `locationName:"id" min:"1" type:"string"` + Id *string `locationName:"id" type:"string"` // The name of the pipeline. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" type:"string"` + + metadataPipelineIdName `json:"-" xml:"-"` +} + +type metadataPipelineIdName struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1591,16 +1415,20 @@ func (s PipelineIdName) GoString() string { // or physical attempt pipeline object. The complete set of components of a // pipeline defines the pipeline. type PipelineObject struct { - _ struct{} `type:"structure"` - // Key-value pairs that define the properties of the object. Fields []*Field `locationName:"fields" type:"list" required:"true"` // The ID of the object. - Id *string `locationName:"id" min:"1" type:"string" required:"true"` + Id *string `locationName:"id" type:"string" required:"true"` // The name of the object. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataPipelineObject `json:"-" xml:"-"` +} + +type metadataPipelineObject struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1613,47 +1441,10 @@ func (s PipelineObject) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PipelineObject) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PipelineObject"} - if s.Fields == nil { - invalidParams.Add(request.NewErrParamRequired("Fields")) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Fields != nil { - for i, v := range s.Fields { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the parameters for PollForTask. type PollForTaskInput struct { - _ struct{} `type:"structure"` - // The public DNS name of the calling task runner. - Hostname *string `locationName:"hostname" min:"1" type:"string"` + Hostname *string `locationName:"hostname" type:"string"` // Identity information for the EC2 instance that is hosting the task runner. // You can get this value from the instance using http://169.254.169.254/latest/meta-data/instance-id. @@ -1669,6 +1460,12 @@ type PollForTaskInput struct { // There are no wildcard values permitted in workerGroup; the string must be // an exact, case-sensitive, match. WorkerGroup *string `locationName:"workerGroup" type:"string" required:"true"` + + metadataPollForTaskInput `json:"-" xml:"-"` +} + +type metadataPollForTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1681,31 +1478,19 @@ func (s PollForTaskInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PollForTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PollForTaskInput"} - if s.Hostname != nil && len(*s.Hostname) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Hostname", 1)) - } - if s.WorkerGroup == nil { - invalidParams.Add(request.NewErrParamRequired("WorkerGroup")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of PollForTask. type PollForTaskOutput struct { - _ struct{} `type:"structure"` - // The information needed to complete the task that is being assigned to the // task runner. One of the fields returned in this object is taskId, which contains // an identifier for the task being assigned. The calling task runner uses taskId // in subsequent calls to ReportTaskProgress and SetTaskStatus. TaskObject *TaskObject `locationName:"taskObject" type:"structure"` + + metadataPollForTaskOutput `json:"-" xml:"-"` +} + +type metadataPollForTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1720,8 +1505,6 @@ func (s PollForTaskOutput) GoString() string { // Contains the parameters for PutPipelineDefinition. type PutPipelineDefinitionInput struct { - _ struct{} `type:"structure"` - // The parameter objects used with the pipeline. ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"` @@ -1729,11 +1512,17 @@ type PutPipelineDefinitionInput struct { ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"` // The ID of the pipeline. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` // The objects that define the pipeline. These objects overwrite the existing // pipeline definition. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"` + + metadataPutPipelineDefinitionInput `json:"-" xml:"-"` +} + +type metadataPutPipelineDefinitionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1746,59 +1535,8 @@ func (s PutPipelineDefinitionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutPipelineDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutPipelineDefinitionInput"} - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - if s.PipelineObjects == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineObjects")) - } - if s.ParameterObjects != nil { - for i, v := range s.ParameterObjects { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterObjects", i), err.(request.ErrInvalidParams)) - } - } - } - if s.ParameterValues != nil { - for i, v := range s.ParameterValues { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams)) - } - } - } - if s.PipelineObjects != nil { - for i, v := range s.PipelineObjects { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineObjects", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of PutPipelineDefinition. type PutPipelineDefinitionOutput struct { - _ struct{} `type:"structure"` - // Indicates whether there were validation errors, and the pipeline definition // is stored but cannot be activated until you correct the pipeline and call // PutPipelineDefinition to commit the corrected pipeline. @@ -1809,6 +1547,12 @@ type PutPipelineDefinitionOutput struct { // The validation warnings that are associated with the objects defined in pipelineObjects. ValidationWarnings []*ValidationWarning `locationName:"validationWarnings" type:"list"` + + metadataPutPipelineDefinitionOutput `json:"-" xml:"-"` +} + +type metadataPutPipelineDefinitionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1823,11 +1567,15 @@ func (s PutPipelineDefinitionOutput) GoString() string { // Defines the query to run against an object. type Query struct { - _ struct{} `type:"structure"` - // List of selectors that define the query. An object must satisfy all of the // selectors to match the query. Selectors []*Selector `locationName:"selectors" type:"list"` + + metadataQuery `json:"-" xml:"-"` +} + +type metadataQuery struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1842,8 +1590,6 @@ func (s Query) GoString() string { // Contains the parameters for QueryObjects. type QueryObjectsInput struct { - _ struct{} `type:"structure"` - // The maximum number of object names that QueryObjects will return in a single // call. The default value is 100. Limit *int64 `locationName:"limit" type:"integer"` @@ -1855,7 +1601,7 @@ type QueryObjectsInput struct { Marker *string `locationName:"marker" type:"string"` // The ID of the pipeline. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` // The query that defines the objects to be returned. The Query object can contain // a maximum of ten selectors. The conditions in the query are limited to top-level @@ -1866,6 +1612,12 @@ type QueryObjectsInput struct { // Indicates whether the query applies to components or instances. The possible // values are: COMPONENT, INSTANCE, and ATTEMPT. Sphere *string `locationName:"sphere" type:"string" required:"true"` + + metadataQueryObjectsInput `json:"-" xml:"-"` +} + +type metadataQueryObjectsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1878,29 +1630,8 @@ func (s QueryObjectsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *QueryObjectsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "QueryObjectsInput"} - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - if s.Sphere == nil { - invalidParams.Add(request.NewErrParamRequired("Sphere")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of QueryObjects. type QueryObjectsOutput struct { - _ struct{} `type:"structure"` - // Indicates whether there are more results that can be obtained by a subsequent // call. HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"` @@ -1912,6 +1643,12 @@ type QueryObjectsOutput struct { // results, call QueryObjects again with this marker value. If the value is // null, there are no more results. Marker *string `locationName:"marker" type:"string"` + + metadataQueryObjectsOutput `json:"-" xml:"-"` +} + +type metadataQueryObjectsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1926,13 +1663,17 @@ func (s QueryObjectsOutput) GoString() string { // Contains the parameters for RemoveTags. type RemoveTagsInput struct { - _ struct{} `type:"structure"` - // The ID of the pipeline. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` // The keys of the tags to remove. TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"` + + metadataRemoveTagsInput `json:"-" xml:"-"` +} + +type metadataRemoveTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1945,28 +1686,13 @@ func (s RemoveTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"} - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of RemoveTags. type RemoveTagsOutput struct { - _ struct{} `type:"structure"` + metadataRemoveTagsOutput `json:"-" xml:"-"` +} + +type metadataRemoveTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1981,15 +1707,19 @@ func (s RemoveTagsOutput) GoString() string { // Contains the parameters for ReportTaskProgress. type ReportTaskProgressInput struct { - _ struct{} `type:"structure"` - // Key-value pairs that define the properties of the ReportTaskProgressInput // object. Fields []*Field `locationName:"fields" type:"list"` // The ID of the task assigned to the task runner. This value is provided in // the response for PollForTask. - TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"` + TaskId *string `locationName:"taskId" type:"string" required:"true"` + + metadataReportTaskProgressInput `json:"-" xml:"-"` +} + +type metadataReportTaskProgressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2002,39 +1732,17 @@ func (s ReportTaskProgressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReportTaskProgressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReportTaskProgressInput"} - if s.TaskId == nil { - invalidParams.Add(request.NewErrParamRequired("TaskId")) - } - if s.TaskId != nil && len(*s.TaskId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) - } - if s.Fields != nil { - for i, v := range s.Fields { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of ReportTaskProgress. type ReportTaskProgressOutput struct { - _ struct{} `type:"structure"` - // If true, the calling task runner should cancel processing of the task. The // task runner does not need to call SetTaskStatus for canceled tasks. Canceled *bool `locationName:"canceled" type:"boolean" required:"true"` + + metadataReportTaskProgressOutput `json:"-" xml:"-"` +} + +type metadataReportTaskProgressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2049,17 +1757,15 @@ func (s ReportTaskProgressOutput) GoString() string { // Contains the parameters for ReportTaskRunnerHeartbeat. type ReportTaskRunnerHeartbeatInput struct { - _ struct{} `type:"structure"` - // The public DNS name of the task runner. - Hostname *string `locationName:"hostname" min:"1" type:"string"` + Hostname *string `locationName:"hostname" type:"string"` // The ID of the task runner. This value should be unique across your AWS account. // In the case of AWS Data Pipeline Task Runner launched on a resource managed // by AWS Data Pipeline, the web service provides a unique identifier when it // launches the application. If you have written a custom task runner, you should // assign a unique identifier for the task runner. - TaskrunnerId *string `locationName:"taskrunnerId" min:"1" type:"string" required:"true"` + TaskrunnerId *string `locationName:"taskrunnerId" type:"string" required:"true"` // The type of task the task runner is configured to accept and process. The // worker group is set as a field on objects in the pipeline when they are created. @@ -2067,6 +1773,12 @@ type ReportTaskRunnerHeartbeatInput struct { // values permitted in workerGroup; the string must be an exact, case-sensitive, // match. WorkerGroup *string `locationName:"workerGroup" type:"string"` + + metadataReportTaskRunnerHeartbeatInput `json:"-" xml:"-"` +} + +type metadataReportTaskRunnerHeartbeatInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2079,31 +1791,16 @@ func (s ReportTaskRunnerHeartbeatInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReportTaskRunnerHeartbeatInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReportTaskRunnerHeartbeatInput"} - if s.Hostname != nil && len(*s.Hostname) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Hostname", 1)) - } - if s.TaskrunnerId == nil { - invalidParams.Add(request.NewErrParamRequired("TaskrunnerId")) - } - if s.TaskrunnerId != nil && len(*s.TaskrunnerId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskrunnerId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of ReportTaskRunnerHeartbeat. type ReportTaskRunnerHeartbeatOutput struct { - _ struct{} `type:"structure"` - // Indicates whether the calling task runner should terminate. Terminate *bool `locationName:"terminate" type:"boolean" required:"true"` + + metadataReportTaskRunnerHeartbeatOutput `json:"-" xml:"-"` +} + +type metadataReportTaskRunnerHeartbeatOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2119,8 +1816,6 @@ func (s ReportTaskRunnerHeartbeatOutput) GoString() string { // A comparision that is used to determine whether a query should return this // object. type Selector struct { - _ struct{} `type:"structure"` - // The name of the field that the operator will be applied to. The field name // is the "key" portion of the field definition in the pipeline definition syntax // that is used by the AWS Data Pipeline API. If the field is not set on the @@ -2130,6 +1825,12 @@ type Selector struct { // Contains a logical operation for comparing the value of a field with a specified // value. Operator *Operator `locationName:"operator" type:"structure"` + + metadataSelector `json:"-" xml:"-"` +} + +type metadataSelector struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2144,18 +1845,22 @@ func (s Selector) GoString() string { // Contains the parameters for SetStatus. type SetStatusInput struct { - _ struct{} `type:"structure"` - // The IDs of the objects. The corresponding objects can be either physical // or components, but not a mix of both types. ObjectIds []*string `locationName:"objectIds" type:"list" required:"true"` // The ID of the pipeline that contains the objects. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` // The status to be set on all the objects specified in objectIds. For components, // use PAUSE or RESUME. For instances, use TRY_CANCEL, RERUN, or MARK_FINISHED. Status *string `locationName:"status" type:"string" required:"true"` + + metadataSetStatusInput `json:"-" xml:"-"` +} + +type metadataSetStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2168,30 +1873,12 @@ func (s SetStatusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetStatusInput"} - if s.ObjectIds == nil { - invalidParams.Add(request.NewErrParamRequired("ObjectIds")) - } - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetStatusOutput struct { + metadataSetStatusOutput `json:"-" xml:"-"` } -type SetStatusOutput struct { - _ struct{} `type:"structure"` +type metadataSetStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2206,8 +1893,6 @@ func (s SetStatusOutput) GoString() string { // Contains the parameters for SetTaskStatus. type SetTaskStatusInput struct { - _ struct{} `type:"structure"` - // If an error occurred during the task, this value specifies the error code. // This value is set on the physical attempt object. It is used to display error // information to the user. It should not start with string "Service_" which @@ -2228,11 +1913,17 @@ type SetTaskStatusInput struct { // The ID of the task assigned to the task runner. This value is provided in // the response for PollForTask. - TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"` + TaskId *string `locationName:"taskId" type:"string" required:"true"` // If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully. // Preconditions use false. TaskStatus *string `locationName:"taskStatus" type:"string" required:"true" enum:"TaskStatus"` + + metadataSetTaskStatusInput `json:"-" xml:"-"` +} + +type metadataSetTaskStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2245,28 +1936,13 @@ func (s SetTaskStatusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetTaskStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetTaskStatusInput"} - if s.TaskId == nil { - invalidParams.Add(request.NewErrParamRequired("TaskId")) - } - if s.TaskId != nil && len(*s.TaskId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) - } - if s.TaskStatus == nil { - invalidParams.Add(request.NewErrParamRequired("TaskStatus")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of SetTaskStatus. type SetTaskStatusOutput struct { - _ struct{} `type:"structure"` + metadataSetTaskStatusOutput `json:"-" xml:"-"` +} + +type metadataSetTaskStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2285,17 +1961,21 @@ func (s SetTaskStatusOutput) GoString() string { // (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html) // in the AWS Data Pipeline Developer Guide. type Tag struct { - _ struct{} `type:"structure"` - // The key name of a tag defined by a user. For more information, see Controlling // User Access to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html) // in the AWS Data Pipeline Developer Guide. - Key *string `locationName:"key" min:"1" type:"string" required:"true"` + Key *string `locationName:"key" type:"string" required:"true"` // The optional value portion of a tag defined by a user. For more information, // see Controlling User Access to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html) // in the AWS Data Pipeline Developer Guide. Value *string `locationName:"value" type:"string" required:"true"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2308,43 +1988,28 @@ func (s Tag) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - 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.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains information about a pipeline task that is assigned to a task runner. type TaskObject struct { - _ struct{} `type:"structure"` - // The ID of the pipeline task attempt object. AWS Data Pipeline uses this value // to track how many times a task is attempted. - AttemptId *string `locationName:"attemptId" min:"1" type:"string"` + AttemptId *string `locationName:"attemptId" type:"string"` // Connection information for the location where the task runner will publish // the output of the task. Objects map[string]*PipelineObject `locationName:"objects" type:"map"` // The ID of the pipeline that provided the task. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string"` + PipelineId *string `locationName:"pipelineId" type:"string"` // An internal identifier for the task. This ID is passed to the SetTaskStatus // and ReportTaskProgress actions. - TaskId *string `locationName:"taskId" min:"1" type:"string"` + TaskId *string `locationName:"taskId" type:"string"` + + metadataTaskObject `json:"-" xml:"-"` +} + +type metadataTaskObject struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2359,8 +2024,6 @@ func (s TaskObject) GoString() string { // Contains the parameters for ValidatePipelineDefinition. type ValidatePipelineDefinitionInput struct { - _ struct{} `type:"structure"` - // The parameter objects used with the pipeline. ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"` @@ -2368,10 +2031,16 @@ type ValidatePipelineDefinitionInput struct { ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"` // The ID of the pipeline. - PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"` + PipelineId *string `locationName:"pipelineId" type:"string" required:"true"` // The objects that define the pipeline changes to validate against the pipeline. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"` + + metadataValidatePipelineDefinitionInput `json:"-" xml:"-"` +} + +type metadataValidatePipelineDefinitionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2384,59 +2053,8 @@ func (s ValidatePipelineDefinitionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ValidatePipelineDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ValidatePipelineDefinitionInput"} - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.PipelineId != nil && len(*s.PipelineId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) - } - if s.PipelineObjects == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineObjects")) - } - if s.ParameterObjects != nil { - for i, v := range s.ParameterObjects { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterObjects", i), err.(request.ErrInvalidParams)) - } - } - } - if s.ParameterValues != nil { - for i, v := range s.ParameterValues { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams)) - } - } - } - if s.PipelineObjects != nil { - for i, v := range s.PipelineObjects { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineObjects", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of ValidatePipelineDefinition. type ValidatePipelineDefinitionOutput struct { - _ struct{} `type:"structure"` - // Indicates whether there were validation errors. Errored *bool `locationName:"errored" type:"boolean" required:"true"` @@ -2445,6 +2063,12 @@ type ValidatePipelineDefinitionOutput struct { // Any validation warnings that were found. ValidationWarnings []*ValidationWarning `locationName:"validationWarnings" type:"list"` + + metadataValidatePipelineDefinitionOutput `json:"-" xml:"-"` +} + +type metadataValidatePipelineDefinitionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2461,13 +2085,17 @@ func (s ValidatePipelineDefinitionOutput) GoString() string { // The set of validation errors that can be returned are defined by AWS Data // Pipeline. type ValidationError struct { - _ struct{} `type:"structure"` - // A description of the validation error. Errors []*string `locationName:"errors" type:"list"` // The identifier of the object that contains the validation error. - Id *string `locationName:"id" min:"1" type:"string"` + Id *string `locationName:"id" type:"string"` + + metadataValidationError `json:"-" xml:"-"` +} + +type metadataValidationError struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2484,13 +2112,17 @@ func (s ValidationError) GoString() string { // activation. The set of validation warnings that can be returned are defined // by AWS Data Pipeline. type ValidationWarning struct { - _ struct{} `type:"structure"` - // The identifier of the object that contains the validation warning. - Id *string `locationName:"id" min:"1" type:"string"` + Id *string `locationName:"id" type:"string"` // A description of the validation warning. Warnings []*string `locationName:"warnings" type:"list"` + + metadataValidationWarning `json:"-" xml:"-"` +} + +type metadataValidationWarning struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go index df64c8cd6..eebbfbdb5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface.go @@ -92,5 +92,3 @@ type DataPipelineAPI interface { ValidatePipelineDefinition(*datapipeline.ValidatePipelineDefinitionInput) (*datapipeline.ValidatePipelineDefinitionOutput, error) } - -var _ DataPipelineAPI = (*datapipeline.DataPipeline)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface_test.go new file mode 100644 index 000000000..878657db7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package datapipelineiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/datapipeline" + "github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*datapipelineiface.DataPipelineAPI)(nil), datapipeline.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go index 1c2efcd89..e69a86b66 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/datapipeline" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDataPipeline_ActivatePipeline() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.ActivatePipelineInput{ PipelineId: aws.String("id"), // Required @@ -43,7 +42,7 @@ func ExampleDataPipeline_ActivatePipeline() { } func ExampleDataPipeline_AddTags() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.AddTagsInput{ PipelineId: aws.String("id"), // Required @@ -69,7 +68,7 @@ func ExampleDataPipeline_AddTags() { } func ExampleDataPipeline_CreatePipeline() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.CreatePipelineInput{ Name: aws.String("id"), // Required @@ -97,7 +96,7 @@ func ExampleDataPipeline_CreatePipeline() { } func ExampleDataPipeline_DeactivatePipeline() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.DeactivatePipelineInput{ PipelineId: aws.String("id"), // Required @@ -117,7 +116,7 @@ func ExampleDataPipeline_DeactivatePipeline() { } func ExampleDataPipeline_DeletePipeline() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.DeletePipelineInput{ PipelineId: aws.String("id"), // Required @@ -136,7 +135,7 @@ func ExampleDataPipeline_DeletePipeline() { } func ExampleDataPipeline_DescribeObjects() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.DescribeObjectsInput{ ObjectIds: []*string{ // Required @@ -161,7 +160,7 @@ func ExampleDataPipeline_DescribeObjects() { } func ExampleDataPipeline_DescribePipelines() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.DescribePipelinesInput{ PipelineIds: []*string{ // Required @@ -183,7 +182,7 @@ func ExampleDataPipeline_DescribePipelines() { } func ExampleDataPipeline_EvaluateExpression() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.EvaluateExpressionInput{ Expression: aws.String("longString"), // Required @@ -204,7 +203,7 @@ func ExampleDataPipeline_EvaluateExpression() { } func ExampleDataPipeline_GetPipelineDefinition() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.GetPipelineDefinitionInput{ PipelineId: aws.String("id"), // Required @@ -224,7 +223,7 @@ func ExampleDataPipeline_GetPipelineDefinition() { } func ExampleDataPipeline_ListPipelines() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.ListPipelinesInput{ Marker: aws.String("string"), @@ -243,7 +242,7 @@ func ExampleDataPipeline_ListPipelines() { } func ExampleDataPipeline_PollForTask() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.PollForTaskInput{ WorkerGroup: aws.String("string"), // Required @@ -267,7 +266,7 @@ func ExampleDataPipeline_PollForTask() { } func ExampleDataPipeline_PutPipelineDefinition() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.PutPipelineDefinitionInput{ PipelineId: aws.String("id"), // Required @@ -321,7 +320,7 @@ func ExampleDataPipeline_PutPipelineDefinition() { } func ExampleDataPipeline_QueryObjects() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.QueryObjectsInput{ PipelineId: aws.String("id"), // Required @@ -358,7 +357,7 @@ func ExampleDataPipeline_QueryObjects() { } func ExampleDataPipeline_RemoveTags() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.RemoveTagsInput{ PipelineId: aws.String("id"), // Required @@ -381,7 +380,7 @@ func ExampleDataPipeline_RemoveTags() { } func ExampleDataPipeline_ReportTaskProgress() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.ReportTaskProgressInput{ TaskId: aws.String("taskId"), // Required @@ -408,7 +407,7 @@ func ExampleDataPipeline_ReportTaskProgress() { } func ExampleDataPipeline_ReportTaskRunnerHeartbeat() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.ReportTaskRunnerHeartbeatInput{ TaskrunnerId: aws.String("id"), // Required @@ -429,7 +428,7 @@ func ExampleDataPipeline_ReportTaskRunnerHeartbeat() { } func ExampleDataPipeline_SetStatus() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.SetStatusInput{ ObjectIds: []*string{ // Required @@ -453,7 +452,7 @@ func ExampleDataPipeline_SetStatus() { } func ExampleDataPipeline_SetTaskStatus() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.SetTaskStatusInput{ TaskId: aws.String("taskId"), // Required @@ -476,7 +475,7 @@ func ExampleDataPipeline_SetTaskStatus() { } func ExampleDataPipeline_ValidatePipelineDefinition() { - svc := datapipeline.New(session.New()) + svc := datapipeline.New(nil) params := &datapipeline.ValidatePipelineDefinitionInput{ PipelineId: aws.String("id"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go index 638c0ee44..9dc8bbdde 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go @@ -4,11 +4,12 @@ package datapipeline import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // AWS Data Pipeline configures and manages a data-driven workflow called a @@ -33,66 +34,42 @@ import ( // service, reporting progress to the web service as it does so. When the task // is done, the task runner reports the final success or failure of the task // to the web service. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type DataPipeline struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "datapipeline" - -// New creates a new instance of the DataPipeline client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a DataPipeline client from just a session. -// svc := datapipeline.New(mySession) -// -// // Create a DataPipeline client with additional configuration -// svc := datapipeline.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *DataPipeline { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DataPipeline { - svc := &DataPipeline{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2012-10-29", - JSONVersion: "1.1", - TargetPrefix: "DataPipeline", - }, - handlers, - ), +// New returns a new DataPipeline client. +func New(config *aws.Config) *DataPipeline { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "datapipeline", + APIVersion: "2012-10-29", + JSONVersion: "1.1", + TargetPrefix: "DataPipeline", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &DataPipeline{service} } // newRequest creates a new request for a DataPipeline operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go index ba3dc88f7..cacd29d39 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go @@ -91,119 +91,6 @@ func (c *DeviceFarm) CreateUpload(input *CreateUploadInput) (*CreateUploadOutput return out, err } -const opDeleteDevicePool = "DeleteDevicePool" - -// DeleteDevicePoolRequest generates a request for the DeleteDevicePool operation. -func (c *DeviceFarm) DeleteDevicePoolRequest(input *DeleteDevicePoolInput) (req *request.Request, output *DeleteDevicePoolOutput) { - op := &request.Operation{ - Name: opDeleteDevicePool, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteDevicePoolInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteDevicePoolOutput{} - req.Data = output - return -} - -// Deletes a device pool given the pool ARN. Does not allow deletion of curated -// pools owned by the system. -func (c *DeviceFarm) DeleteDevicePool(input *DeleteDevicePoolInput) (*DeleteDevicePoolOutput, error) { - req, out := c.DeleteDevicePoolRequest(input) - err := req.Send() - return out, err -} - -const opDeleteProject = "DeleteProject" - -// DeleteProjectRequest generates a request for the DeleteProject operation. -func (c *DeviceFarm) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput) { - op := &request.Operation{ - Name: opDeleteProject, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteProjectInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteProjectOutput{} - req.Data = output - return -} - -// Deletes an AWS Device Farm project, given the project ARN. -// -// Note Deleting this resource does not stop an in-progress run. -func (c *DeviceFarm) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) { - req, out := c.DeleteProjectRequest(input) - err := req.Send() - return out, err -} - -const opDeleteRun = "DeleteRun" - -// DeleteRunRequest generates a request for the DeleteRun operation. -func (c *DeviceFarm) DeleteRunRequest(input *DeleteRunInput) (req *request.Request, output *DeleteRunOutput) { - op := &request.Operation{ - Name: opDeleteRun, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteRunInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteRunOutput{} - req.Data = output - return -} - -// Deletes the run, given the run ARN. -// -// Note Deleting this resource does not stop an in-progress run. -func (c *DeviceFarm) DeleteRun(input *DeleteRunInput) (*DeleteRunOutput, error) { - req, out := c.DeleteRunRequest(input) - err := req.Send() - return out, err -} - -const opDeleteUpload = "DeleteUpload" - -// DeleteUploadRequest generates a request for the DeleteUpload operation. -func (c *DeviceFarm) DeleteUploadRequest(input *DeleteUploadInput) (req *request.Request, output *DeleteUploadOutput) { - op := &request.Operation{ - Name: opDeleteUpload, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteUploadInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteUploadOutput{} - req.Data = output - return -} - -// Deletes an upload given the upload ARN. -func (c *DeviceFarm) DeleteUpload(input *DeleteUploadInput) (*DeleteUploadOutput, error) { - req, out := c.DeleteUploadRequest(input) - err := req.Send() - return out, err -} - const opGetAccountSettings = "GetAccountSettings" // GetAccountSettingsRequest generates a request for the GetAccountSettings operation. @@ -340,52 +227,6 @@ func (c *DeviceFarm) GetJob(input *GetJobInput) (*GetJobOutput, error) { return out, err } -const opGetOfferingStatus = "GetOfferingStatus" - -// GetOfferingStatusRequest generates a request for the GetOfferingStatus operation. -func (c *DeviceFarm) GetOfferingStatusRequest(input *GetOfferingStatusInput) (req *request.Request, output *GetOfferingStatusOutput) { - op := &request.Operation{ - Name: opGetOfferingStatus, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "", - TruncationToken: "", - }, - } - - if input == nil { - input = &GetOfferingStatusInput{} - } - - req = c.newRequest(op, input, output) - output = &GetOfferingStatusOutput{} - req.Data = output - return -} - -// Gets the current status and future status of all offerings purchased by an -// AWS account. The response indicates how many offerings are currently available -// and the offerings that will be available in the next period. The API returns -// a NotEligible error if the user is not permitted to invoke the operation. -// Please contact aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) -// if you believe that you should be able to invoke this operation. -func (c *DeviceFarm) GetOfferingStatus(input *GetOfferingStatusInput) (*GetOfferingStatusOutput, error) { - req, out := c.GetOfferingStatusRequest(input) - err := req.Send() - return out, err -} - -func (c *DeviceFarm) GetOfferingStatusPages(input *GetOfferingStatusInput, fn func(p *GetOfferingStatusOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.GetOfferingStatusRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*GetOfferingStatusOutput), lastPage) - }) -} - const opGetProject = "GetProject" // GetProjectRequest generates a request for the GetProject operation. @@ -556,7 +397,6 @@ func (c *DeviceFarm) ListArtifacts(input *ListArtifactsInput) (*ListArtifactsOut func (c *DeviceFarm) ListArtifactsPages(input *ListArtifactsInput, fn func(p *ListArtifactsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListArtifactsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListArtifactsOutput), lastPage) }) @@ -597,7 +437,6 @@ func (c *DeviceFarm) ListDevicePools(input *ListDevicePoolsInput) (*ListDevicePo func (c *DeviceFarm) ListDevicePoolsPages(input *ListDevicePoolsInput, fn func(p *ListDevicePoolsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListDevicePoolsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListDevicePoolsOutput), lastPage) }) @@ -638,7 +477,6 @@ func (c *DeviceFarm) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, e func (c *DeviceFarm) ListDevicesPages(input *ListDevicesInput, fn func(p *ListDevicesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListDevicesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListDevicesOutput), lastPage) }) @@ -679,104 +517,11 @@ func (c *DeviceFarm) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { func (c *DeviceFarm) ListJobsPages(input *ListJobsInput, fn func(p *ListJobsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListJobsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListJobsOutput), lastPage) }) } -const opListOfferingTransactions = "ListOfferingTransactions" - -// ListOfferingTransactionsRequest generates a request for the ListOfferingTransactions operation. -func (c *DeviceFarm) ListOfferingTransactionsRequest(input *ListOfferingTransactionsInput) (req *request.Request, output *ListOfferingTransactionsOutput) { - op := &request.Operation{ - Name: opListOfferingTransactions, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListOfferingTransactionsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListOfferingTransactionsOutput{} - req.Data = output - return -} - -// Returns a list of all historical purchases, renewals, and system renewal -// transactions for an AWS account. The list is paginated and ordered by a descending -// timestamp (most recent transactions are first). The API returns a NotEligible -// error if the user is not permitted to invoke the operation. Please contact -// aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) -// if you believe that you should be able to invoke this operation. -func (c *DeviceFarm) ListOfferingTransactions(input *ListOfferingTransactionsInput) (*ListOfferingTransactionsOutput, error) { - req, out := c.ListOfferingTransactionsRequest(input) - err := req.Send() - return out, err -} - -func (c *DeviceFarm) ListOfferingTransactionsPages(input *ListOfferingTransactionsInput, fn func(p *ListOfferingTransactionsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListOfferingTransactionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListOfferingTransactionsOutput), lastPage) - }) -} - -const opListOfferings = "ListOfferings" - -// ListOfferingsRequest generates a request for the ListOfferings operation. -func (c *DeviceFarm) ListOfferingsRequest(input *ListOfferingsInput) (req *request.Request, output *ListOfferingsOutput) { - op := &request.Operation{ - Name: opListOfferings, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListOfferingsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListOfferingsOutput{} - req.Data = output - return -} - -// Returns a list of products or offerings that the user can manage through -// the API. Each offering record indicates the recurring price per unit and -// the frequency for that offering. The API returns a NotEligible error if the -// user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com -// (mailto:aws-devicefarm-support@amazon.com) if you believe that you should -// be able to invoke this operation. -func (c *DeviceFarm) ListOfferings(input *ListOfferingsInput) (*ListOfferingsOutput, error) { - req, out := c.ListOfferingsRequest(input) - err := req.Send() - return out, err -} - -func (c *DeviceFarm) ListOfferingsPages(input *ListOfferingsInput, fn func(p *ListOfferingsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListOfferingsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListOfferingsOutput), lastPage) - }) -} - const opListProjects = "ListProjects" // ListProjectsRequest generates a request for the ListProjects operation. @@ -812,7 +557,6 @@ func (c *DeviceFarm) ListProjects(input *ListProjectsInput) (*ListProjectsOutput func (c *DeviceFarm) ListProjectsPages(input *ListProjectsInput, fn func(p *ListProjectsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListProjectsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListProjectsOutput), lastPage) }) @@ -853,7 +597,6 @@ func (c *DeviceFarm) ListRuns(input *ListRunsInput) (*ListRunsOutput, error) { func (c *DeviceFarm) ListRunsPages(input *ListRunsInput, fn func(p *ListRunsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListRunsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListRunsOutput), lastPage) }) @@ -894,7 +637,6 @@ func (c *DeviceFarm) ListSamples(input *ListSamplesInput) (*ListSamplesOutput, e func (c *DeviceFarm) ListSamplesPages(input *ListSamplesInput, fn func(p *ListSamplesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListSamplesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListSamplesOutput), lastPage) }) @@ -935,7 +677,6 @@ func (c *DeviceFarm) ListSuites(input *ListSuitesInput) (*ListSuitesOutput, erro func (c *DeviceFarm) ListSuitesPages(input *ListSuitesInput, fn func(p *ListSuitesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListSuitesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListSuitesOutput), lastPage) }) @@ -976,7 +717,6 @@ func (c *DeviceFarm) ListTests(input *ListTestsInput) (*ListTestsOutput, error) func (c *DeviceFarm) ListTestsPages(input *ListTestsInput, fn func(p *ListTestsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListTestsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListTestsOutput), lastPage) }) @@ -1017,7 +757,6 @@ func (c *DeviceFarm) ListUniqueProblems(input *ListUniqueProblemsInput) (*ListUn func (c *DeviceFarm) ListUniqueProblemsPages(input *ListUniqueProblemsInput, fn func(p *ListUniqueProblemsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListUniqueProblemsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListUniqueProblemsOutput), lastPage) }) @@ -1058,75 +797,11 @@ func (c *DeviceFarm) ListUploads(input *ListUploadsInput) (*ListUploadsOutput, e func (c *DeviceFarm) ListUploadsPages(input *ListUploadsInput, fn func(p *ListUploadsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListUploadsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListUploadsOutput), lastPage) }) } -const opPurchaseOffering = "PurchaseOffering" - -// PurchaseOfferingRequest generates a request for the PurchaseOffering operation. -func (c *DeviceFarm) PurchaseOfferingRequest(input *PurchaseOfferingInput) (req *request.Request, output *PurchaseOfferingOutput) { - op := &request.Operation{ - Name: opPurchaseOffering, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PurchaseOfferingInput{} - } - - req = c.newRequest(op, input, output) - output = &PurchaseOfferingOutput{} - req.Data = output - return -} - -// Immediately purchases offerings for an AWS account. Offerings renew with -// the latest total purchased quantity for an offering, unless the renewal was -// overridden. The API returns a NotEligible error if the user is not permitted -// to invoke the operation. Please contact aws-devicefarm-support@amazon.com -// (mailto:aws-devicefarm-support@amazon.com) if you believe that you should -// be able to invoke this operation. -func (c *DeviceFarm) PurchaseOffering(input *PurchaseOfferingInput) (*PurchaseOfferingOutput, error) { - req, out := c.PurchaseOfferingRequest(input) - err := req.Send() - return out, err -} - -const opRenewOffering = "RenewOffering" - -// RenewOfferingRequest generates a request for the RenewOffering operation. -func (c *DeviceFarm) RenewOfferingRequest(input *RenewOfferingInput) (req *request.Request, output *RenewOfferingOutput) { - op := &request.Operation{ - Name: opRenewOffering, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RenewOfferingInput{} - } - - req = c.newRequest(op, input, output) - output = &RenewOfferingOutput{} - req.Data = output - return -} - -// Explicitly sets the quantity of devices to renew for an offering, starting -// from the effectiveDate of the next period. The API returns a NotEligible -// error if the user is not permitted to invoke the operation. Please contact -// aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) -// if you believe that you should be able to invoke this operation. -func (c *DeviceFarm) RenewOffering(input *RenewOfferingInput) (*RenewOfferingOutput, error) { - req, out := c.RenewOfferingRequest(input) - err := req.Send() - return out, err -} - const opScheduleRun = "ScheduleRun" // ScheduleRunRequest generates a request for the ScheduleRun operation. @@ -1154,107 +829,19 @@ func (c *DeviceFarm) ScheduleRun(input *ScheduleRunInput) (*ScheduleRunOutput, e return out, err } -const opStopRun = "StopRun" - -// StopRunRequest generates a request for the StopRun operation. -func (c *DeviceFarm) StopRunRequest(input *StopRunInput) (req *request.Request, output *StopRunOutput) { - op := &request.Operation{ - Name: opStopRun, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &StopRunInput{} - } - - req = c.newRequest(op, input, output) - output = &StopRunOutput{} - req.Data = output - return -} - -// Initiates a stop request for the current test run. AWS Device Farm will immediately -// stop the run on devices where tests have not started executing, and you will -// not be billed for these devices. On devices where tests have started executing, -// Setup Suite and Teardown Suite tests will run to completion before stopping -// execution on those devices. You will be billed for Setup, Teardown, and any -// tests that were in progress or already completed. -func (c *DeviceFarm) StopRun(input *StopRunInput) (*StopRunOutput, error) { - req, out := c.StopRunRequest(input) - err := req.Send() - return out, err -} - -const opUpdateDevicePool = "UpdateDevicePool" - -// UpdateDevicePoolRequest generates a request for the UpdateDevicePool operation. -func (c *DeviceFarm) UpdateDevicePoolRequest(input *UpdateDevicePoolInput) (req *request.Request, output *UpdateDevicePoolOutput) { - op := &request.Operation{ - Name: opUpdateDevicePool, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateDevicePoolInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateDevicePoolOutput{} - req.Data = output - return -} - -// Modifies the name, description, and rules in a device pool given the attributes -// and the pool ARN. Rule updates are all-or-nothing, meaning they can only -// be updated as a whole (or not at all). -func (c *DeviceFarm) UpdateDevicePool(input *UpdateDevicePoolInput) (*UpdateDevicePoolOutput, error) { - req, out := c.UpdateDevicePoolRequest(input) - err := req.Send() - return out, err -} - -const opUpdateProject = "UpdateProject" - -// UpdateProjectRequest generates a request for the UpdateProject operation. -func (c *DeviceFarm) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput) { - op := &request.Operation{ - Name: opUpdateProject, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateProjectInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateProjectOutput{} - req.Data = output - return -} - -// Modifies the specified project name, given the project ARN and a new name. -func (c *DeviceFarm) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error) { - req, out := c.UpdateProjectRequest(input) - err := req.Send() - return out, err -} - // A container for account-level settings within AWS Device Farm. type AccountSettings struct { - _ struct{} `type:"structure"` - // The AWS account number specified in the AccountSettings container. - AwsAccountNumber *string `locationName:"awsAccountNumber" min:"2" type:"string"` + AwsAccountNumber *string `locationName:"awsAccountNumber" type:"string"` - // Returns the unmetered devices you have purchased or want to purchase. + // Returns the unmetered devices you have purchased. UnmeteredDevices map[string]*int64 `locationName:"unmeteredDevices" type:"map"` - // Returns the unmetered remote access devices you have purchased or want to - // purchase. - UnmeteredRemoteAccessDevices map[string]*int64 `locationName:"unmeteredRemoteAccessDevices" type:"map"` + metadataAccountSettings `json:"-" xml:"-"` +} + +type metadataAccountSettings struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1269,10 +856,8 @@ func (s AccountSettings) GoString() string { // Represents the output of a test. Examples of artifacts include logs and screenshots. type Artifact struct { - _ struct{} `type:"structure"` - // The artifact's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // The artifact's file extension. Extension *string `locationName:"extension" type:"string"` @@ -1284,57 +869,49 @@ type Artifact struct { // // Allowed values include the following: // - // UNKNOWN: An unknown type. + // APPIUM_JAVA_OUTPUT: The Appium Java output type. // - // SCREENSHOT: The screenshot type. + // APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type. // - // DEVICE_LOG: The device log type. + // APPIUM_SERVER_OUTPUT: The Appium server output type. // - // MESSAGE_LOG: The message log type. - // - // RESULT_LOG: The result log type. - // - // SERVICE_LOG: The service log type. - // - // WEBKIT_LOG: The web kit log type. - // - // INSTRUMENTATION_OUTPUT: The instrumentation type. - // - // EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an - // Android fuzz test. + // AUTOMATION_OUTPUT: The automation output type. // // CALABASH_JSON_OUTPUT: The Calabash JSON output type. // - // CALABASH_PRETTY_OUTPUT: The Calabash pretty output type. - // - // CALABASH_STANDARD_OUTPUT: The Calabash standard output type. - // // CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type. // - // AUTOMATION_OUTPUT: The automation output type. + // CALABASH_PRETTY_OUTPUT: The Calabash pretty output type. // - // APPIUM_SERVER_OUTPUT: The Appium server output type. + // CALABASH_STANDARD_OUTPUT: The Calabash standard output type. // - // APPIUM_JAVA_OUTPUT: The Appium Java output type. + // DEVICE_LOG: The device log type. // - // APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type. + // EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an + // Android fuzz test. // - // APPIUM_PYTHON_OUTPUT: The Appium Python output type. + // INSTRUMENTATION_OUTPUT: The instrumentation type. // - // APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type. + // MESSAGE_LOG: The message log type. // - // EXPLORER_EVENT_LOG: The Explorer event log output type. + // RESULT_LOG: The result log type. // - // EXPLORER_SUMMARY_LOG: The Explorer summary log output type. + // SCREENSHOT: The screenshot type. // - // APPLICATION_CRASH_REPORT: The application crash report output type. + // SERVICE_LOG: The service log type. // - // XCTEST_LOG: The XCode test output type. + // UNKNOWN: An unknown type. Type *string `locationName:"type" type:"string" enum:"ArtifactType"` // The pre-signed Amazon S3 URL that can be used with a corresponding GET request // to download the artifact's file. Url *string `locationName:"url" type:"string"` + + metadataArtifact `json:"-" xml:"-"` +} + +type metadataArtifact struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1351,8 +928,6 @@ func (s Artifact) GoString() string { // // Note that this does not represent system-wide CPU usage. type CPU struct { - _ struct{} `type:"structure"` - // The CPU's architecture, for example x86 or ARM. Architecture *string `locationName:"architecture" type:"string"` @@ -1362,6 +937,12 @@ type CPU struct { // The CPU's frequency. Frequency *string `locationName:"frequency" type:"string"` + + metadataCPU `json:"-" xml:"-"` +} + +type metadataCPU struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1376,8 +957,6 @@ func (s CPU) GoString() string { // Represents entity counters. type Counters struct { - _ struct{} `type:"structure"` - // The number of errored entities. Errored *int64 `locationName:"errored" type:"integer"` @@ -1398,6 +977,12 @@ type Counters struct { // The number of warned entities. Warned *int64 `locationName:"warned" type:"integer"` + + metadataCounters `json:"-" xml:"-"` +} + +type metadataCounters struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1412,8 +997,6 @@ func (s Counters) GoString() string { // Represents a request to the create device pool operation. type CreateDevicePoolInput struct { - _ struct{} `type:"structure"` - // The device pool's description. Description *string `locationName:"description" type:"string"` @@ -1421,10 +1004,16 @@ type CreateDevicePoolInput struct { Name *string `locationName:"name" type:"string" required:"true"` // The ARN of the project for the device pool. - ProjectArn *string `locationName:"projectArn" min:"32" type:"string" required:"true"` + ProjectArn *string `locationName:"projectArn" type:"string" required:"true"` // The device pool's rules. Rules []*Rule `locationName:"rules" type:"list" required:"true"` + + metadataCreateDevicePoolInput `json:"-" xml:"-"` +} + +type metadataCreateDevicePoolInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1437,34 +1026,16 @@ func (s CreateDevicePoolInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDevicePoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDevicePoolInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.ProjectArn == nil { - invalidParams.Add(request.NewErrParamRequired("ProjectArn")) - } - if s.ProjectArn != nil && len(*s.ProjectArn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("ProjectArn", 32)) - } - if s.Rules == nil { - invalidParams.Add(request.NewErrParamRequired("Rules")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a create device pool request. type CreateDevicePoolOutput struct { - _ struct{} `type:"structure"` - // The newly created device pool. DevicePool *DevicePool `locationName:"devicePool" type:"structure"` + + metadataCreateDevicePoolOutput `json:"-" xml:"-"` +} + +type metadataCreateDevicePoolOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1479,10 +1050,14 @@ func (s CreateDevicePoolOutput) GoString() string { // Represents a request to the create project operation. type CreateProjectInput struct { - _ struct{} `type:"structure"` - // The project's name. Name *string `locationName:"name" type:"string" required:"true"` + + metadataCreateProjectInput `json:"-" xml:"-"` +} + +type metadataCreateProjectInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1495,25 +1070,16 @@ func (s CreateProjectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateProjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateProjectInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a create project request. type CreateProjectOutput struct { - _ struct{} `type:"structure"` - // The newly created project. Project *Project `locationName:"project" type:"structure"` + + metadataCreateProjectOutput `json:"-" xml:"-"` +} + +type metadataCreateProjectOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1528,8 +1094,6 @@ func (s CreateProjectOutput) GoString() string { // Represents a request to the create upload operation. type CreateUploadInput struct { - _ struct{} `type:"structure"` - // The upload's content type (for example, "application/octet-stream"). ContentType *string `locationName:"contentType" type:"string"` @@ -1537,7 +1101,7 @@ type CreateUploadInput struct { Name *string `locationName:"name" type:"string" required:"true"` // The ARN of the project for the upload. - ProjectArn *string `locationName:"projectArn" min:"32" type:"string" required:"true"` + ProjectArn *string `locationName:"projectArn" type:"string" required:"true"` // The upload's upload type. // @@ -1547,38 +1111,26 @@ type CreateUploadInput struct { // // IOS_APP: An iOS upload. // - // WEB_APP: A web appliction upload. - // // EXTERNAL_DATA: An external data upload. // // APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. // // APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload. // - // APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. - // - // APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. - // - // APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package - // upload. - // - // APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. - // // CALABASH_TEST_PACKAGE: A Calabash test package upload. // // INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. // - // UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. - // // UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. // // XCTEST_TEST_PACKAGE: An XCode test package upload. - // - // XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. - // - // Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws - // an ArgumentException error. Type *string `locationName:"type" type:"string" required:"true" enum:"UploadType"` + + metadataCreateUploadInput `json:"-" xml:"-"` +} + +type metadataCreateUploadInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1591,251 +1143,32 @@ func (s CreateUploadInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUploadInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.ProjectArn == nil { - invalidParams.Add(request.NewErrParamRequired("ProjectArn")) - } - if s.ProjectArn != nil && len(*s.ProjectArn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("ProjectArn", 32)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a create upload request. type CreateUploadOutput struct { - _ struct{} `type:"structure"` - // The newly created upload. Upload *Upload `locationName:"upload" type:"structure"` -} - -// String returns the string representation -func (s CreateUploadOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateUploadOutput) GoString() string { - return s.String() -} - -// Represents a request to the delete device pool operation. -type DeleteDevicePoolInput struct { - _ struct{} `type:"structure"` - - // Represents the Amazon Resource Name (ARN) of the Device Farm device pool - // you wish to delete. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteDevicePoolInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteDevicePoolInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDevicePoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDevicePoolInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the result of a delete device pool request. -type DeleteDevicePoolOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteDevicePoolOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteDevicePoolOutput) GoString() string { - return s.String() -} -// Represents a request to the delete project operation. -type DeleteProjectInput struct { - _ struct{} `type:"structure"` - - // Represents the Amazon Resource Name (ARN) of the Device Farm project you - // wish to delete. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteProjectInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteProjectInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteProjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteProjectInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the result of a delete project request. -type DeleteProjectOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteProjectOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteProjectOutput) GoString() string { - return s.String() -} - -// Represents a request to the delete run operation. -type DeleteRunInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) for the run you wish to delete. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteRunInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRunInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRunInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRunInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the result of a delete run request. -type DeleteRunOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteRunOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRunOutput) GoString() string { - return s.String() -} - -// Represents a request to the delete upload operation. -type DeleteUploadInput struct { - _ struct{} `type:"structure"` - - // Represents the Amazon Resource Name (ARN) of the Device Farm upload you wish - // to delete. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteUploadInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteUploadInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUploadInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateUploadOutput `json:"-" xml:"-"` } -// Represents the result of a delete upload request. -type DeleteUploadOutput struct { - _ struct{} `type:"structure"` +type metadataCreateUploadOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteUploadOutput) String() string { +func (s CreateUploadOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUploadOutput) GoString() string { +func (s CreateUploadOutput) GoString() string { return s.String() } // Represents a device type that an app is tested against. type Device struct { - _ struct{} `type:"structure"` - // The device's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // The device's carrier. Carrier *string `locationName:"carrier" type:"string"` @@ -1888,52 +1221,28 @@ type Device struct { // Represents the screen resolution of a device in height and width, expressed // in pixels. Resolution *Resolution `locationName:"resolution" type:"structure"` -} - -// String returns the string representation -func (s Device) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s Device) GoString() string { - return s.String() + metadataDevice `json:"-" xml:"-"` } -// Represents the total (metered or unmetered) minutes used by the resource -// to run tests. Contains the sum of minutes consumed by all children. -type DeviceMinutes struct { - _ struct{} `type:"structure"` - - // When specified, represents only the sum of metered minutes used by the resource - // to run tests. - Metered *float64 `locationName:"metered" type:"double"` - - // When specified, represents the total minutes used by the resource to run - // tests. - Total *float64 `locationName:"total" type:"double"` - - // When specified, represents only the sum of unmetered minutes used by the - // resource to run tests. - Unmetered *float64 `locationName:"unmetered" type:"double"` +type metadataDevice struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeviceMinutes) String() string { +func (s Device) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeviceMinutes) GoString() string { +func (s Device) GoString() string { return s.String() } // Represents a collection of device types. type DevicePool struct { - _ struct{} `type:"structure"` - // The device pool's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // The device pool's description. Description *string `locationName:"description" type:"string"` @@ -1952,6 +1261,12 @@ type DevicePool struct { // // PRIVATE: A device pool that is created and managed by the device pool developer. Type *string `locationName:"type" type:"string" enum:"DevicePoolType"` + + metadataDevicePool `json:"-" xml:"-"` +} + +type metadataDevicePool struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1966,8 +1281,6 @@ func (s DevicePool) GoString() string { // Represents a device pool compatibility result. type DevicePoolCompatibilityResult struct { - _ struct{} `type:"structure"` - // Whether the result was compatible with the device pool. Compatible *bool `locationName:"compatible" type:"boolean"` @@ -1976,6 +1289,12 @@ type DevicePoolCompatibilityResult struct { // Information about the compatibility. IncompatibilityMessages []*IncompatibilityMessage `locationName:"incompatibilityMessages" type:"list"` + + metadataDevicePoolCompatibilityResult `json:"-" xml:"-"` +} + +type metadataDevicePoolCompatibilityResult struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1988,9 +1307,12 @@ func (s DevicePoolCompatibilityResult) GoString() string { return s.String() } -// Represents the request sent to retrieve the account settings. type GetAccountSettingsInput struct { - _ struct{} `type:"structure"` + metadataGetAccountSettingsInput `json:"-" xml:"-"` +} + +type metadataGetAccountSettingsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2003,13 +1325,15 @@ func (s GetAccountSettingsInput) GoString() string { return s.String() } -// Represents the account settings return values from the GetAccountSettings -// request. type GetAccountSettingsOutput struct { - _ struct{} `type:"structure"` - // A container for account-level settings within AWS Device Farm. AccountSettings *AccountSettings `locationName:"accountSettings" type:"structure"` + + metadataGetAccountSettingsOutput `json:"-" xml:"-"` +} + +type metadataGetAccountSettingsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2024,10 +1348,14 @@ func (s GetAccountSettingsOutput) GoString() string { // Represents a request to the get device request. type GetDeviceInput struct { - _ struct{} `type:"structure"` - // The device type's ARN. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` + + metadataGetDeviceInput `json:"-" xml:"-"` +} + +type metadataGetDeviceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2040,28 +1368,16 @@ func (s GetDeviceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDeviceInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a get device request. type GetDeviceOutput struct { - _ struct{} `type:"structure"` - // Represents a device type that an app is tested against. Device *Device `locationName:"device" type:"structure"` + + metadataGetDeviceOutput `json:"-" xml:"-"` +} + +type metadataGetDeviceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2076,13 +1392,11 @@ func (s GetDeviceOutput) GoString() string { // Represents a request to the get device pool compatibility operation. type GetDevicePoolCompatibilityInput struct { - _ struct{} `type:"structure"` - // The ARN of the app that is associated with the specified device pool. - AppArn *string `locationName:"appArn" min:"32" type:"string"` + AppArn *string `locationName:"appArn" type:"string" required:"true"` // The device pool's ARN. - DevicePoolArn *string `locationName:"devicePoolArn" min:"32" type:"string" required:"true"` + DevicePoolArn *string `locationName:"devicePoolArn" type:"string" required:"true"` // The test type for the specified device pool. // @@ -2097,14 +1411,6 @@ type GetDevicePoolCompatibilityInput struct { // // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. - // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. - // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. - // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. - // // CALABASH: The Calabash type. // // INSTRUMENTATION: The Instrumentation type. @@ -2114,9 +1420,13 @@ type GetDevicePoolCompatibilityInput struct { // UIAUTOMATOR: The uiautomator type. // // XCTEST: The XCode test type. - // - // XCTEST_UI: The XCode UI test type. TestType *string `locationName:"testType" type:"string" enum:"TestType"` + + metadataGetDevicePoolCompatibilityInput `json:"-" xml:"-"` +} + +type metadataGetDevicePoolCompatibilityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2129,34 +1439,19 @@ func (s GetDevicePoolCompatibilityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDevicePoolCompatibilityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDevicePoolCompatibilityInput"} - if s.AppArn != nil && len(*s.AppArn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("AppArn", 32)) - } - if s.DevicePoolArn == nil { - invalidParams.Add(request.NewErrParamRequired("DevicePoolArn")) - } - if s.DevicePoolArn != nil && len(*s.DevicePoolArn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("DevicePoolArn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of describe device pool compatibility request. type GetDevicePoolCompatibilityOutput struct { - _ struct{} `type:"structure"` - // Information about compatible devices. CompatibleDevices []*DevicePoolCompatibilityResult `locationName:"compatibleDevices" type:"list"` // Information about incompatible devices. IncompatibleDevices []*DevicePoolCompatibilityResult `locationName:"incompatibleDevices" type:"list"` + + metadataGetDevicePoolCompatibilityOutput `json:"-" xml:"-"` +} + +type metadataGetDevicePoolCompatibilityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2171,10 +1466,14 @@ func (s GetDevicePoolCompatibilityOutput) GoString() string { // Represents a request to the get device pool operation. type GetDevicePoolInput struct { - _ struct{} `type:"structure"` - // The device pool's ARN. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` + + metadataGetDevicePoolInput `json:"-" xml:"-"` +} + +type metadataGetDevicePoolInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2187,28 +1486,16 @@ func (s GetDevicePoolInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDevicePoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDevicePoolInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a get device pool request. type GetDevicePoolOutput struct { - _ struct{} `type:"structure"` - // Represents a collection of device types. DevicePool *DevicePool `locationName:"devicePool" type:"structure"` + + metadataGetDevicePoolOutput `json:"-" xml:"-"` +} + +type metadataGetDevicePoolOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2223,10 +1510,14 @@ func (s GetDevicePoolOutput) GoString() string { // Represents a request to the get job operation. type GetJobInput struct { - _ struct{} `type:"structure"` - // The job's ARN. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` + + metadataGetJobInput `json:"-" xml:"-"` +} + +type metadataGetJobInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2239,104 +1530,38 @@ func (s GetJobInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetJobInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a get job request. type GetJobOutput struct { - _ struct{} `type:"structure"` - // Represents a device. Job *Job `locationName:"job" type:"structure"` -} - -// String returns the string representation -func (s GetJobOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetJobOutput) GoString() string { - return s.String() -} - -// Represents the request to retrieve the offering status for the specified -// customer or account. -type GetOfferingStatusInput struct { - _ struct{} `type:"structure"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` -} -// String returns the string representation -func (s GetOfferingStatusInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetOfferingStatusInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetOfferingStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetOfferingStatusInput"} - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetJobOutput `json:"-" xml:"-"` } -// Returns the status result for a device offering. -type GetOfferingStatusOutput struct { - _ struct{} `type:"structure"` - - // When specified, gets the offering status for the current period. - Current map[string]*OfferingStatus `locationName:"current" type:"map"` - - // When specified, gets the offering status for the next period. - NextPeriod map[string]*OfferingStatus `locationName:"nextPeriod" type:"map"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` +type metadataGetJobOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetOfferingStatusOutput) String() string { +func (s GetJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetOfferingStatusOutput) GoString() string { +func (s GetJobOutput) GoString() string { return s.String() } // Represents a request to the get project operation. type GetProjectInput struct { - _ struct{} `type:"structure"` - // The project's ARN. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` + + metadataGetProjectInput `json:"-" xml:"-"` +} + +type metadataGetProjectInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2349,29 +1574,17 @@ func (s GetProjectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetProjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetProjectInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a get project request. type GetProjectOutput struct { - _ struct{} `type:"structure"` - // Represents an operating-system neutral workspace for running and managing // tests. Project *Project `locationName:"project" type:"structure"` + + metadataGetProjectOutput `json:"-" xml:"-"` +} + +type metadataGetProjectOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2386,10 +1599,14 @@ func (s GetProjectOutput) GoString() string { // Represents a request to the get run operation. type GetRunInput struct { - _ struct{} `type:"structure"` - // The run's ARN. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` + + metadataGetRunInput `json:"-" xml:"-"` +} + +type metadataGetRunInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2402,28 +1619,16 @@ func (s GetRunInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRunInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRunInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a get run request. type GetRunOutput struct { - _ struct{} `type:"structure"` - // Represents an app on a set of devices with a specific test and configuration. Run *Run `locationName:"run" type:"structure"` + + metadataGetRunOutput `json:"-" xml:"-"` +} + +type metadataGetRunOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2438,10 +1643,14 @@ func (s GetRunOutput) GoString() string { // Represents a request to the get suite operation. type GetSuiteInput struct { - _ struct{} `type:"structure"` - // The suite's ARN. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` + + metadataGetSuiteInput `json:"-" xml:"-"` +} + +type metadataGetSuiteInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2454,28 +1663,16 @@ func (s GetSuiteInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSuiteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSuiteInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a get suite request. type GetSuiteOutput struct { - _ struct{} `type:"structure"` - // Represents a collection of one or more tests. Suite *Suite `locationName:"suite" type:"structure"` + + metadataGetSuiteOutput `json:"-" xml:"-"` +} + +type metadataGetSuiteOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2490,10 +1687,14 @@ func (s GetSuiteOutput) GoString() string { // Represents a request to the get test operation. type GetTestInput struct { - _ struct{} `type:"structure"` - // The test's ARN. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` + + metadataGetTestInput `json:"-" xml:"-"` +} + +type metadataGetTestInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2506,28 +1707,16 @@ func (s GetTestInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTestInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTestInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a get test request. type GetTestOutput struct { - _ struct{} `type:"structure"` - // Represents a condition that is evaluated. Test *Test `locationName:"test" type:"structure"` + + metadataGetTestOutput `json:"-" xml:"-"` +} + +type metadataGetTestOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2542,10 +1731,14 @@ func (s GetTestOutput) GoString() string { // Represents a request to the get upload operation. type GetUploadInput struct { - _ struct{} `type:"structure"` - // The upload's ARN. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` + + metadataGetUploadInput `json:"-" xml:"-"` +} + +type metadataGetUploadInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2558,28 +1751,16 @@ func (s GetUploadInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetUploadInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a get upload request. type GetUploadOutput struct { - _ struct{} `type:"structure"` - // An app or a set of one or more tests to upload or that have been uploaded. Upload *Upload `locationName:"upload" type:"structure"` + + metadataGetUploadOutput `json:"-" xml:"-"` +} + +type metadataGetUploadOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2594,8 +1775,6 @@ func (s GetUploadOutput) GoString() string { // Represents information about incompatibility. type IncompatibilityMessage struct { - _ struct{} `type:"structure"` - // A message about the incompatibility. Message *string `locationName:"message" type:"string"` @@ -2611,6 +1790,12 @@ type IncompatibilityMessage struct { // // PLATFORM: The platform (for example, Android or iOS). Type *string `locationName:"type" type:"string" enum:"DeviceAttribute"` + + metadataIncompatibilityMessage `json:"-" xml:"-"` +} + +type metadataIncompatibilityMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2625,10 +1810,8 @@ func (s IncompatibilityMessage) GoString() string { // Represents a device. type Job struct { - _ struct{} `type:"structure"` - // The job's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // The job's result counters. Counters *Counters `locationName:"counters" type:"structure"` @@ -2639,9 +1822,6 @@ type Job struct { // Represents a device type that an app is tested against. Device *Device `locationName:"device" type:"structure"` - // Represents the total (metered or unmetered) minutes used by the job. - DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"` - // A message about the job's result. Message *string `locationName:"message" type:"string"` @@ -2652,19 +1832,19 @@ type Job struct { // // Allowed values include: // - // PENDING: A pending condition. - // - // PASSED: A passing condition. - // - // WARNED: A warning condition. + // ERRORED: An error condition. // // FAILED: A failed condition. // // SKIPPED: A skipped condition. // - // ERRORED: An error condition. - // // STOPPED: A stopped condition. + // + // PASSED: A passing condition. + // + // PENDING: A pending condition. + // + // WARNED: A warning condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // The job's start time. @@ -2674,23 +1854,15 @@ type Job struct { // // Allowed values include: // - // PENDING: A pending status. + // COMPLETED: A completed status. // - // PENDING_CONCURRENCY: A pending concurrency status. - // - // PENDING_DEVICE: A pending device status. + // PENDING: A pending status. // // PROCESSING: A processing status. // - // SCHEDULING: A scheduling status. - // - // PREPARING: A preparing status. - // // RUNNING: A running status. // - // COMPLETED: A completed status. - // - // STOPPING: A stopping status. + // SCHEDULING: A scheduling status. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"` // The job's stop time. @@ -2709,14 +1881,6 @@ type Job struct { // // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. - // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. - // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. - // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. - // // CALABASH: The Calabash type. // // INSTRUMENTATION: The Instrumentation type. @@ -2726,9 +1890,13 @@ type Job struct { // UIAUTOMATOR: The uiautomator type. // // XCTEST: The XCode test type. - // - // XCTEST_UI: The XCode UI test type. Type *string `locationName:"type" type:"string" enum:"TestType"` + + metadataJob `json:"-" xml:"-"` +} + +type metadataJob struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2743,14 +1911,12 @@ func (s Job) GoString() string { // Represents a request to the list artifacts operation. type ListArtifactsInput struct { - _ struct{} `type:"structure"` - - // The Run, Job, Suite, or Test ARN. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + // The artifacts' ARNs. + Arn *string `locationName:"arn" type:"string" required:"true"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` // The artifacts' type. // @@ -2759,6 +1925,12 @@ type ListArtifactsInput struct { // FILE: The artifacts are files. LOG: The artifacts are logs. SCREENSHOT: // The artifacts are screenshots. Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactCategory"` + + metadataListArtifactsInput `json:"-" xml:"-"` +} + +type metadataListArtifactsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2771,39 +1943,21 @@ func (s ListArtifactsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListArtifactsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListArtifactsInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a list artifacts operation. type ListArtifactsOutput struct { - _ struct{} `type:"structure"` - // Information about the artifacts. Artifacts []*Artifact `locationName:"artifacts" type:"list"` // If the number of items that are returned is significantly large, this is // an identifier that is also returned, which can be used in a subsequent call // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListArtifactsOutput `json:"-" xml:"-"` +} + +type metadataListArtifactsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2818,14 +1972,12 @@ func (s ListArtifactsOutput) GoString() string { // Represents the result of a list device pools request. type ListDevicePoolsInput struct { - _ struct{} `type:"structure"` - // The project ARN. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` // The device pools' type. // @@ -2835,6 +1987,12 @@ type ListDevicePoolsInput struct { // // PRIVATE: A device pool that is created and managed by the device pool developer. Type *string `locationName:"type" type:"string" enum:"DevicePoolType"` + + metadataListDevicePoolsInput `json:"-" xml:"-"` +} + +type metadataListDevicePoolsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2847,36 +2005,21 @@ func (s ListDevicePoolsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDevicePoolsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDevicePoolsInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a list device pools request. type ListDevicePoolsOutput struct { - _ struct{} `type:"structure"` - // Information about the device pools. DevicePools []*DevicePool `locationName:"devicePools" type:"list"` // If the number of items that are returned is significantly large, this is // an identifier that is also returned, which can be used in a subsequent call // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDevicePoolsOutput `json:"-" xml:"-"` +} + +type metadataListDevicePoolsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2891,14 +2034,18 @@ func (s ListDevicePoolsOutput) GoString() string { // Represents the result of a list devices request. type ListDevicesInput struct { - _ struct{} `type:"structure"` - // The device types' ARNs. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDevicesInput `json:"-" xml:"-"` +} + +type metadataListDevicesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2911,33 +2058,21 @@ func (s ListDevicesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDevicesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDevicesInput"} - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a list devices operation. type ListDevicesOutput struct { - _ struct{} `type:"structure"` - // Information about the devices. Devices []*Device `locationName:"devices" type:"list"` // If the number of items that are returned is significantly large, this is // an identifier that is also returned, which can be used in a subsequent call // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListDevicesOutput `json:"-" xml:"-"` +} + +type metadataListDevicesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2952,14 +2087,18 @@ func (s ListDevicesOutput) GoString() string { // Represents a request to the list jobs operation. type ListJobsInput struct { - _ struct{} `type:"structure"` - // The jobs' ARNs. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListJobsInput `json:"-" xml:"-"` +} + +type metadataListJobsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2972,36 +2111,21 @@ func (s ListJobsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a list jobs request. type ListJobsOutput struct { - _ struct{} `type:"structure"` - // Information about the jobs. Jobs []*Job `locationName:"jobs" type:"list"` // If the number of items that are returned is significantly large, this is // an identifier that is also returned, which can be used in a subsequent call // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListJobsOutput `json:"-" xml:"-"` +} + +type metadataListJobsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3014,186 +2138,73 @@ func (s ListJobsOutput) GoString() string { return s.String() } -// Represents the request to list the offering transaction history. -type ListOfferingTransactionsInput struct { - _ struct{} `type:"structure"` +// Represents a request to the list projects operation. +type ListProjectsInput struct { + // The projects' ARNs. + Arn *string `locationName:"arn" type:"string"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListProjectsInput `json:"-" xml:"-"` +} + +type metadataListProjectsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListOfferingTransactionsInput) String() string { +func (s ListProjectsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListOfferingTransactionsInput) GoString() string { +func (s ListProjectsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListOfferingTransactionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListOfferingTransactionsInput"} - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} +// Represents the result of a list projects request. +type ListProjectsOutput struct { + // If the number of items that are returned is significantly large, this is + // an identifier that is also returned, which can be used in a subsequent call + // to this operation to return the next set of items in the list. + NextToken *string `locationName:"nextToken" type:"string"` -// Returns the transaction log of the specified offerings. -type ListOfferingTransactionsOutput struct { - _ struct{} `type:"structure"` + // Information about the projects. + Projects []*Project `locationName:"projects" type:"list"` - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + metadataListProjectsOutput `json:"-" xml:"-"` +} - // The audit log of subscriptions you have purchased and modified through AWS - // Device Farm. - OfferingTransactions []*OfferingTransaction `locationName:"offeringTransactions" type:"list"` +type metadataListProjectsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListOfferingTransactionsOutput) String() string { +func (s ListProjectsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListOfferingTransactionsOutput) GoString() string { +func (s ListProjectsOutput) GoString() string { return s.String() } -// Represents the request to list all offerings. -type ListOfferingsInput struct { - _ struct{} `type:"structure"` +// Represents a request to the list runs operation. +type ListRunsInput struct { + // The runs' ARNs. + Arn *string `locationName:"arn" type:"string" required:"true"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListRunsInput `json:"-" xml:"-"` } -// String returns the string representation -func (s ListOfferingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListOfferingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListOfferingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListOfferingsInput"} - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the return values of the list of offerings. -type ListOfferingsOutput struct { - _ struct{} `type:"structure"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` - - // A value representing the list offering results. - Offerings []*Offering `locationName:"offerings" type:"list"` -} - -// String returns the string representation -func (s ListOfferingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListOfferingsOutput) GoString() string { - return s.String() -} - -// Represents a request to the list projects operation. -type ListProjectsInput struct { - _ struct{} `type:"structure"` - - // The projects' ARNs. - Arn *string `locationName:"arn" min:"32" type:"string"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` -} - -// String returns the string representation -func (s ListProjectsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListProjectsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListProjectsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListProjectsInput"} - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the result of a list projects request. -type ListProjectsOutput struct { - _ struct{} `type:"structure"` - - // If the number of items that are returned is significantly large, this is - // an identifier that is also returned, which can be used in a subsequent call - // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` - - // Information about the projects. - Projects []*Project `locationName:"projects" type:"list"` -} - -// String returns the string representation -func (s ListProjectsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListProjectsOutput) GoString() string { - return s.String() -} - -// Represents a request to the list runs operation. -type ListRunsInput struct { - _ struct{} `type:"structure"` - - // The runs' ARNs. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` - - // An identifier that was returned from the previous call to this operation, - // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` +type metadataListRunsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3206,36 +2217,21 @@ func (s ListRunsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRunsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRunsInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a list runs request. type ListRunsOutput struct { - _ struct{} `type:"structure"` - // If the number of items that are returned is significantly large, this is // an identifier that is also returned, which can be used in a subsequent call // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` // Information about the runs. Runs []*Run `locationName:"runs" type:"list"` + + metadataListRunsOutput `json:"-" xml:"-"` +} + +type metadataListRunsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3250,14 +2246,18 @@ func (s ListRunsOutput) GoString() string { // Represents a request to the list samples operation. type ListSamplesInput struct { - _ struct{} `type:"structure"` - // The samples' ARNs. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListSamplesInput `json:"-" xml:"-"` +} + +type metadataListSamplesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3270,36 +2270,21 @@ func (s ListSamplesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSamplesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSamplesInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a list samples request. type ListSamplesOutput struct { - _ struct{} `type:"structure"` - // If the number of items that are returned is significantly large, this is // an identifier that is also returned, which can be used in a subsequent call // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` // Information about the samples. Samples []*Sample `locationName:"samples" type:"list"` + + metadataListSamplesOutput `json:"-" xml:"-"` +} + +type metadataListSamplesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3314,14 +2299,18 @@ func (s ListSamplesOutput) GoString() string { // Represents a request to the list suites operation. type ListSuitesInput struct { - _ struct{} `type:"structure"` - // The suites' ARNs. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListSuitesInput `json:"-" xml:"-"` +} + +type metadataListSuitesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3334,36 +2323,21 @@ func (s ListSuitesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSuitesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSuitesInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a list suites request. type ListSuitesOutput struct { - _ struct{} `type:"structure"` - // If the number of items that are returned is significantly large, this is // an identifier that is also returned, which can be used in a subsequent call // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` // Information about the suites. Suites []*Suite `locationName:"suites" type:"list"` + + metadataListSuitesOutput `json:"-" xml:"-"` +} + +type metadataListSuitesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3378,14 +2352,18 @@ func (s ListSuitesOutput) GoString() string { // Represents a request to the list tests operation. type ListTestsInput struct { - _ struct{} `type:"structure"` - // The tests' ARNs. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListTestsInput `json:"-" xml:"-"` +} + +type metadataListTestsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3398,36 +2376,21 @@ func (s ListTestsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTestsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTestsInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a list tests request. type ListTestsOutput struct { - _ struct{} `type:"structure"` - // If the number of items that are returned is significantly large, this is // an identifier that is also returned, which can be used in a subsequent call // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` // Information about the tests. Tests []*Test `locationName:"tests" type:"list"` + + metadataListTestsOutput `json:"-" xml:"-"` +} + +type metadataListTestsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3442,14 +2405,18 @@ func (s ListTestsOutput) GoString() string { // Represents a request to the list unique problems operation. type ListUniqueProblemsInput struct { - _ struct{} `type:"structure"` - // The unique problems' ARNs. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListUniqueProblemsInput `json:"-" xml:"-"` +} + +type metadataListUniqueProblemsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3462,52 +2429,37 @@ func (s ListUniqueProblemsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListUniqueProblemsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUniqueProblemsInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a list unique problems request. type ListUniqueProblemsOutput struct { - _ struct{} `type:"structure"` - // If the number of items that are returned is significantly large, this is // an identifier that is also returned, which can be used in a subsequent call // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` // Information about the unique problems. // // Allowed values include: // - // PENDING: A pending condition. - // - // PASSED: A passing condition. - // - // WARNED: A warning condition. + // ERRORED: An error condition. // // FAILED: A failed condition. // // SKIPPED: A skipped condition. // - // ERRORED: An error condition. - // // STOPPED: A stopped condition. + // + // PASSED: A passing condition. + // + // PENDING: A pending condition. + // + // WARNED: A warning condition. UniqueProblems map[string][]*UniqueProblem `locationName:"uniqueProblems" type:"map"` + + metadataListUniqueProblemsOutput `json:"-" xml:"-"` +} + +type metadataListUniqueProblemsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3522,14 +2474,18 @@ func (s ListUniqueProblemsOutput) GoString() string { // Represents a request to the list uploads operation. type ListUploadsInput struct { - _ struct{} `type:"structure"` - // The uploads' ARNs. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` + Arn *string `locationName:"arn" type:"string" required:"true"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` + + metadataListUploadsInput `json:"-" xml:"-"` +} + +type metadataListUploadsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3542,36 +2498,21 @@ func (s ListUploadsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListUploadsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUploadsInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - if s.NextToken != nil && len(*s.NextToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a list uploads request. type ListUploadsOutput struct { - _ struct{} `type:"structure"` - // If the number of items that are returned is significantly large, this is // an identifier that is also returned, which can be used in a subsequent call // to this operation to return the next set of items in the list. - NextToken *string `locationName:"nextToken" min:"4" type:"string"` + NextToken *string `locationName:"nextToken" type:"string"` // Information about the uploads. Uploads []*Upload `locationName:"uploads" type:"list"` + + metadataListUploadsOutput `json:"-" xml:"-"` +} + +type metadataListUploadsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3589,150 +2530,31 @@ func (s ListUploadsOutput) GoString() string { // // Elevation is currently not supported. type Location struct { - _ struct{} `type:"structure"` - // The latitude. Latitude *float64 `locationName:"latitude" type:"double" required:"true"` // The longitude. Longitude *float64 `locationName:"longitude" type:"double" required:"true"` -} - -// String returns the string representation -func (s Location) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s Location) GoString() string { - return s.String() + metadataLocation `json:"-" xml:"-"` } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Location) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Location"} - if s.Latitude == nil { - invalidParams.Add(request.NewErrParamRequired("Latitude")) - } - if s.Longitude == nil { - invalidParams.Add(request.NewErrParamRequired("Longitude")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A number representing the monetary amount for an offering or transaction. -type MonetaryAmount struct { - _ struct{} `type:"structure"` - - // The numerical amount of an offering or transaction. - Amount *float64 `locationName:"amount" type:"double"` - - // The currency code of a monetary amount. For example, USD means "U.S. dollars." - CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCode"` +type metadataLocation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s MonetaryAmount) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MonetaryAmount) GoString() string { - return s.String() -} - -// Represents the metadata of a device offering. -type Offering struct { - _ struct{} `type:"structure"` - - // A string describing the offering. - Description *string `locationName:"description" type:"string"` - - // The ID that corresponds to a device offering. - Id *string `locationName:"id" min:"32" type:"string"` - - // The platform of the device (e.g., ANDROID or IOS). - Platform *string `locationName:"platform" type:"string" enum:"DevicePlatform"` - - // Specifies whether there are recurring charges for the offering. - RecurringCharges []*RecurringCharge `locationName:"recurringCharges" type:"list"` - - // The type of offering (e.g., "RECURRING") for a device. - Type *string `locationName:"type" type:"string" enum:"OfferingType"` -} - -// String returns the string representation -func (s Offering) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Offering) GoString() string { - return s.String() -} - -// The status of the offering. -type OfferingStatus struct { - _ struct{} `type:"structure"` - - // The date on which the offering is effective. - EffectiveOn *time.Time `locationName:"effectiveOn" type:"timestamp" timestampFormat:"unix"` - - // Represents the metadata of an offering status. - Offering *Offering `locationName:"offering" type:"structure"` - - // The number of available devices in the offering. - Quantity *int64 `locationName:"quantity" type:"integer"` - - // The type specified for the offering status. - Type *string `locationName:"type" type:"string" enum:"OfferingTransactionType"` -} - -// String returns the string representation -func (s OfferingStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s OfferingStatus) GoString() string { - return s.String() -} - -// Represents the metadata of an offering transaction. -type OfferingTransaction struct { - _ struct{} `type:"structure"` - - // The cost of an offering transaction. - Cost *MonetaryAmount `locationName:"cost" type:"structure"` - - // The date on which an offering transaction was created. - CreatedOn *time.Time `locationName:"createdOn" type:"timestamp" timestampFormat:"unix"` - - // The status of an offering transaction. - OfferingStatus *OfferingStatus `locationName:"offeringStatus" type:"structure"` - - // The transaction ID of the offering transaction. - TransactionId *string `locationName:"transactionId" min:"32" type:"string"` -} - -// String returns the string representation -func (s OfferingTransaction) String() string { +func (s Location) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s OfferingTransaction) GoString() string { +func (s Location) GoString() string { return s.String() } // Represents a specific warning or failure. type Problem struct { - _ struct{} `type:"structure"` - // Information about the associated device. Device *Device `locationName:"device" type:"structure"` @@ -3746,19 +2568,19 @@ type Problem struct { // // Allowed values include: // - // PENDING: A pending condition. - // - // PASSED: A passing condition. - // - // WARNED: A warning condition. + // ERRORED: An error condition. // // FAILED: A failed condition. // // SKIPPED: A skipped condition. // - // ERRORED: An error condition. - // // STOPPED: A stopped condition. + // + // PASSED: A passing condition. + // + // PENDING: A pending condition. + // + // WARNED: A warning condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // Information about the associated run. @@ -3769,6 +2591,12 @@ type Problem struct { // Information about the associated test. Test *ProblemDetail `locationName:"test" type:"structure"` + + metadataProblem `json:"-" xml:"-"` +} + +type metadataProblem struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3783,13 +2611,17 @@ func (s Problem) GoString() string { // Information about a problem detail. type ProblemDetail struct { - _ struct{} `type:"structure"` - // The problem detail's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // The problem detail's name. Name *string `locationName:"name" type:"string"` + + metadataProblemDetail `json:"-" xml:"-"` +} + +type metadataProblemDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3805,85 +2637,35 @@ func (s ProblemDetail) GoString() string { // Represents an operating-system neutral workspace for running and managing // tests. type Project struct { - _ struct{} `type:"structure"` - // The project's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // When the project was created. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"` // The project's name. Name *string `locationName:"name" type:"string"` -} -// String returns the string representation -func (s Project) String() string { - return awsutil.Prettify(s) + metadataProject `json:"-" xml:"-"` } -// GoString returns the string representation -func (s Project) GoString() string { - return s.String() -} - -// Represents a request for a purchase offering. -type PurchaseOfferingInput struct { - _ struct{} `type:"structure"` - - // The ID of the offering. - OfferingId *string `locationName:"offeringId" min:"32" type:"string"` - - // The number of device slots you wish to purchase in an offering request. - Quantity *int64 `locationName:"quantity" type:"integer"` -} - -// String returns the string representation -func (s PurchaseOfferingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PurchaseOfferingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PurchaseOfferingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PurchaseOfferingInput"} - if s.OfferingId != nil && len(*s.OfferingId) < 32 { - invalidParams.Add(request.NewErrParamMinLen("OfferingId", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the purchase offering (e.g., success or failure). -type PurchaseOfferingOutput struct { - _ struct{} `type:"structure"` - - // Represents the offering transaction for the purchase result. - OfferingTransaction *OfferingTransaction `locationName:"offeringTransaction" type:"structure"` +type metadataProject struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s PurchaseOfferingOutput) String() string { +func (s Project) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PurchaseOfferingOutput) GoString() string { +func (s Project) GoString() string { return s.String() } // Represents the set of radios and their states on a device. Examples of radios // include Wi-Fi, GPS, Bluetooth, and NFC. type Radios struct { - _ struct{} `type:"structure"` - // True if Bluetooth is enabled at the beginning of the test; otherwise, false. Bluetooth *bool `locationName:"bluetooth" type:"boolean"` @@ -3895,101 +2677,38 @@ type Radios struct { // True if Wi-Fi is enabled at the beginning of the test; otherwise, false. Wifi *bool `locationName:"wifi" type:"boolean"` -} - -// String returns the string representation -func (s Radios) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Radios) GoString() string { - return s.String() -} - -// Specifies whether charges for devices will be recurring. -type RecurringCharge struct { - _ struct{} `type:"structure"` - - // The cost of the recurring charge. - Cost *MonetaryAmount `locationName:"cost" type:"structure"` - - // The frequency in which charges will recur. - Frequency *string `locationName:"frequency" type:"string" enum:"RecurringChargeFrequency"` -} - -// String returns the string representation -func (s RecurringCharge) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RecurringCharge) GoString() string { - return s.String() -} - -// A request representing an offering renewal. -type RenewOfferingInput struct { - _ struct{} `type:"structure"` - - // The ID of a request to renew an offering. - OfferingId *string `locationName:"offeringId" min:"32" type:"string"` - - // The quantity requested in an offering renewal. - Quantity *int64 `locationName:"quantity" type:"integer"` -} - -// String returns the string representation -func (s RenewOfferingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RenewOfferingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RenewOfferingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RenewOfferingInput"} - if s.OfferingId != nil && len(*s.OfferingId) < 32 { - invalidParams.Add(request.NewErrParamMinLen("OfferingId", 32)) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataRadios `json:"-" xml:"-"` } -// The result of a renewal offering. -type RenewOfferingOutput struct { - _ struct{} `type:"structure"` - - // Represents the status of the offering transaction for the renewal. - OfferingTransaction *OfferingTransaction `locationName:"offeringTransaction" type:"structure"` +type metadataRadios struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s RenewOfferingOutput) String() string { +func (s Radios) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RenewOfferingOutput) GoString() string { +func (s Radios) GoString() string { return s.String() } // Represents the screen resolution of a device in height and width, expressed // in pixels. type Resolution struct { - _ struct{} `type:"structure"` - // The screen resolution's height, expressed in pixels. Height *int64 `locationName:"height" type:"integer"` // The screen resolution's width, expressed in pixels. Width *int64 `locationName:"width" type:"integer"` + + metadataResolution `json:"-" xml:"-"` +} + +type metadataResolution struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4004,9 +2723,7 @@ func (s Resolution) GoString() string { // Represents a condition for a device pool. type Rule struct { - _ struct{} `type:"structure"` - - // The rule's stringified attribute. For example, specify the value as "\"abc\"". + // The rule's attribute. // // Allowed values include: // @@ -4034,6 +2751,12 @@ type Rule struct { // The rule's value. Value *string `locationName:"value" type:"string"` + + metadataRule `json:"-" xml:"-"` +} + +type metadataRule struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4048,10 +2771,8 @@ func (s Rule) GoString() string { // Represents an app on a set of devices with a specific test and configuration. type Run struct { - _ struct{} `type:"structure"` - // The run's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // Specifies the billing method for a test run: metered or unmetered. If the // parameter is not specified, the default value is unmetered. @@ -4066,9 +2787,6 @@ type Run struct { // When the run was created. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"` - // Represents the total (metered or unmetered) minutes used by the test run. - DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"` - // A message about the run's result. Message *string `locationName:"message" type:"string"` @@ -4088,19 +2806,19 @@ type Run struct { // // Allowed values include: // - // PENDING: A pending condition. - // - // PASSED: A passing condition. - // - // WARNED: A warning condition. + // ERRORED: An error condition. // // FAILED: A failed condition. // // SKIPPED: A skipped condition. // - // ERRORED: An error condition. - // // STOPPED: A stopped condition. + // + // PASSED: A passing condition. + // + // PENDING: A pending condition. + // + // WARNED: A warning condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // The run's start time. @@ -4110,23 +2828,15 @@ type Run struct { // // Allowed values include: // - // PENDING: A pending status. + // COMPLETED: A completed status. // - // PENDING_CONCURRENCY: A pending concurrency status. - // - // PENDING_DEVICE: A pending device status. + // PENDING: A pending status. // // PROCESSING: A processing status. // - // SCHEDULING: A scheduling status. - // - // PREPARING: A preparing status. - // // RUNNING: A running status. // - // COMPLETED: A completed status. - // - // STOPPING: A stopping status. + // SCHEDULING: A scheduling status. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"` // The run's stop time. @@ -4148,14 +2858,6 @@ type Run struct { // // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. - // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. - // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. - // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. - // // CALABASH: The Calabash type. // // INSTRUMENTATION: The Instrumentation type. @@ -4165,9 +2867,13 @@ type Run struct { // UIAUTOMATOR: The uiautomator type. // // XCTEST: The XCode test type. - // - // XCTEST_UI: The XCode UI test type. Type *string `locationName:"type" type:"string" enum:"TestType"` + + metadataRun `json:"-" xml:"-"` +} + +type metadataRun struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4182,10 +2888,8 @@ func (s Run) GoString() string { // Represents a sample of performance data. type Sample struct { - _ struct{} `type:"structure"` - // The sample's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // The sample's type. // @@ -4234,6 +2938,12 @@ type Sample struct { // The pre-signed Amazon S3 URL that can be used with a corresponding GET request // to download the sample's file. Url *string `locationName:"url" type:"string"` + + metadataSample `json:"-" xml:"-"` +} + +type metadataSample struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4249,8 +2959,6 @@ func (s Sample) GoString() string { // Represents the settings for a run. Includes things like location, radio states, // auxiliary apps, and network profiles. type ScheduleRunConfiguration struct { - _ struct{} `type:"structure"` - // A list of auxiliary apps for the run. AuxiliaryApps []*string `locationName:"auxiliaryApps" type:"list"` @@ -4261,7 +2969,7 @@ type ScheduleRunConfiguration struct { // The ARN of the extra data for the run. The extra data is a .zip file that // AWS Device Farm will extract to external data for Android or the app's sandbox // for iOS. - ExtraDataPackageArn *string `locationName:"extraDataPackageArn" min:"32" type:"string"` + ExtraDataPackageArn *string `locationName:"extraDataPackageArn" type:"string"` // Information about the locale that is used for the run. Locale *string `locationName:"locale" type:"string"` @@ -4270,10 +2978,16 @@ type ScheduleRunConfiguration struct { Location *Location `locationName:"location" type:"structure"` // Reserved for internal use. - NetworkProfileArn *string `locationName:"networkProfileArn" min:"32" type:"string"` + NetworkProfileArn *string `locationName:"networkProfileArn" type:"string"` // Information about the radio states for the run. Radios *Radios `locationName:"radios" type:"structure"` + + metadataScheduleRunConfiguration `json:"-" xml:"-"` +} + +type metadataScheduleRunConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4286,48 +3000,31 @@ func (s ScheduleRunConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ScheduleRunConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ScheduleRunConfiguration"} - if s.ExtraDataPackageArn != nil && len(*s.ExtraDataPackageArn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("ExtraDataPackageArn", 32)) - } - if s.NetworkProfileArn != nil && len(*s.NetworkProfileArn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("NetworkProfileArn", 32)) - } - if s.Location != nil { - if err := s.Location.Validate(); err != nil { - invalidParams.AddNested("Location", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents a request to the schedule run operation. type ScheduleRunInput struct { - _ struct{} `type:"structure"` - // The ARN of the app to schedule a run. - AppArn *string `locationName:"appArn" min:"32" type:"string"` + AppArn *string `locationName:"appArn" type:"string" required:"true"` // Information about the settings for the run to be scheduled. Configuration *ScheduleRunConfiguration `locationName:"configuration" type:"structure"` // The ARN of the device pool for the run to be scheduled. - DevicePoolArn *string `locationName:"devicePoolArn" min:"32" type:"string" required:"true"` + DevicePoolArn *string `locationName:"devicePoolArn" type:"string" required:"true"` // The name for the run to be scheduled. Name *string `locationName:"name" type:"string"` // The ARN of the project for the run to be scheduled. - ProjectArn *string `locationName:"projectArn" min:"32" type:"string" required:"true"` + ProjectArn *string `locationName:"projectArn" type:"string" required:"true"` // Information about the test for the run to be scheduled. Test *ScheduleRunTest `locationName:"test" type:"structure" required:"true"` + + metadataScheduleRunInput `json:"-" xml:"-"` +} + +type metadataScheduleRunInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4340,50 +3037,16 @@ func (s ScheduleRunInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ScheduleRunInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ScheduleRunInput"} - if s.AppArn != nil && len(*s.AppArn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("AppArn", 32)) - } - if s.DevicePoolArn == nil { - invalidParams.Add(request.NewErrParamRequired("DevicePoolArn")) - } - if s.DevicePoolArn != nil && len(*s.DevicePoolArn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("DevicePoolArn", 32)) - } - if s.ProjectArn == nil { - invalidParams.Add(request.NewErrParamRequired("ProjectArn")) - } - if s.ProjectArn != nil && len(*s.ProjectArn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("ProjectArn", 32)) - } - if s.Test == nil { - invalidParams.Add(request.NewErrParamRequired("Test")) - } - if s.Configuration != nil { - if err := s.Configuration.Validate(); err != nil { - invalidParams.AddNested("Configuration", err.(request.ErrInvalidParams)) - } - } - if s.Test != nil { - if err := s.Test.Validate(); err != nil { - invalidParams.AddNested("Test", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of a schedule run request. type ScheduleRunOutput struct { - _ struct{} `type:"structure"` - // Information about the scheduled run. Run *Run `locationName:"run" type:"structure"` + + metadataScheduleRunOutput `json:"-" xml:"-"` +} + +type metadataScheduleRunOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4398,8 +3061,6 @@ func (s ScheduleRunOutput) GoString() string { // Represents additional test settings. type ScheduleRunTest struct { - _ struct{} `type:"structure"` - // The test's filter. Filter *string `locationName:"filter" type:"string"` @@ -4407,7 +3068,7 @@ type ScheduleRunTest struct { Parameters map[string]*string `locationName:"parameters" type:"map"` // The ARN of the uploaded test that will be run. - TestPackageArn *string `locationName:"testPackageArn" min:"32" type:"string"` + TestPackageArn *string `locationName:"testPackageArn" type:"string"` // The test's type. // @@ -4422,14 +3083,6 @@ type ScheduleRunTest struct { // // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. - // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. - // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. - // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. - // // CALABASH: The Calabash type. // // INSTRUMENTATION: The Instrumentation type. @@ -4439,96 +3092,29 @@ type ScheduleRunTest struct { // UIAUTOMATOR: The uiautomator type. // // XCTEST: The XCode test type. - // - // XCTEST_UI: The XCode UI test type. Type *string `locationName:"type" type:"string" required:"true" enum:"TestType"` -} - -// String returns the string representation -func (s ScheduleRunTest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScheduleRunTest) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ScheduleRunTest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ScheduleRunTest"} - if s.TestPackageArn != nil && len(*s.TestPackageArn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("TestPackageArn", 32)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the request to stop a specific run. -type StopRunInput struct { - _ struct{} `type:"structure"` - - // Represents the Amazon Resource Name (ARN) of the Device Farm run you wish - // to stop. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` -} - -// String returns the string representation -func (s StopRunInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StopRunInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopRunInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopRunInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataScheduleRunTest `json:"-" xml:"-"` } -// Represents the results of your stop run attempt. -type StopRunOutput struct { - _ struct{} `type:"structure"` - - // Represents an app on a set of devices with a specific test and configuration. - Run *Run `locationName:"run" type:"structure"` +type metadataScheduleRunTest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s StopRunOutput) String() string { +func (s ScheduleRunTest) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StopRunOutput) GoString() string { +func (s ScheduleRunTest) GoString() string { return s.String() } // Represents a collection of one or more tests. type Suite struct { - _ struct{} `type:"structure"` - // The suite's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // The suite's result counters. Counters *Counters `locationName:"counters" type:"structure"` @@ -4536,9 +3122,6 @@ type Suite struct { // When the suite was created. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"` - // Represents the total (metered or unmetered) minutes used by the test suite. - DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"` - // A message about the suite's result. Message *string `locationName:"message" type:"string"` @@ -4549,19 +3132,19 @@ type Suite struct { // // Allowed values include: // - // PENDING: A pending condition. - // - // PASSED: A passing condition. - // - // WARNED: A warning condition. + // ERRORED: An error condition. // // FAILED: A failed condition. // // SKIPPED: A skipped condition. // - // ERRORED: An error condition. - // // STOPPED: A stopped condition. + // + // PASSED: A passing condition. + // + // PENDING: A pending condition. + // + // WARNED: A warning condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // The suite's start time. @@ -4571,23 +3154,15 @@ type Suite struct { // // Allowed values include: // - // PENDING: A pending status. - // - // PENDING_CONCURRENCY: A pending concurrency status. + // COMPLETED: A completed status. // - // PENDING_DEVICE: A pending device status. + // PENDING: A pending status. // // PROCESSING: A processing status. // - // SCHEDULING: A scheduling status. - // - // PREPARING: A preparing status. - // // RUNNING: A running status. // - // COMPLETED: A completed status. - // - // STOPPING: A stopping status. + // SCHEDULING: A scheduling status. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"` // The suite's stop time. @@ -4606,14 +3181,6 @@ type Suite struct { // // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. - // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. - // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. - // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. - // // CALABASH: The Calabash type. // // INSTRUMENTATION: The Instrumentation type. @@ -4623,9 +3190,13 @@ type Suite struct { // UIAUTOMATOR: The uiautomator type. // // XCTEST: The XCode test type. - // - // XCTEST_UI: The XCode UI test type. Type *string `locationName:"type" type:"string" enum:"TestType"` + + metadataSuite `json:"-" xml:"-"` +} + +type metadataSuite struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4640,10 +3211,8 @@ func (s Suite) GoString() string { // Represents a condition that is evaluated. type Test struct { - _ struct{} `type:"structure"` - // The test's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // The test's result counters. Counters *Counters `locationName:"counters" type:"structure"` @@ -4651,9 +3220,6 @@ type Test struct { // When the test was created. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"` - // Represents the total (metered or unmetered) minutes used by the test. - DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"` - // A message about the test's result. Message *string `locationName:"message" type:"string"` @@ -4664,19 +3230,19 @@ type Test struct { // // Allowed values include: // - // PENDING: A pending condition. - // - // PASSED: A passing condition. - // - // WARNED: A warning condition. + // ERRORED: An error condition. // // FAILED: A failed condition. // // SKIPPED: A skipped condition. // - // ERRORED: An error condition. - // // STOPPED: A stopped condition. + // + // PASSED: A passing condition. + // + // PENDING: A pending condition. + // + // WARNED: A warning condition. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` // The test's start time. @@ -4686,23 +3252,15 @@ type Test struct { // // Allowed values include: // - // PENDING: A pending status. - // - // PENDING_CONCURRENCY: A pending concurrency status. + // COMPLETED: A completed status. // - // PENDING_DEVICE: A pending device status. + // PENDING: A pending status. // // PROCESSING: A processing status. // - // SCHEDULING: A scheduling status. - // - // PREPARING: A preparing status. - // // RUNNING: A running status. // - // COMPLETED: A completed status. - // - // STOPPING: A stopping status. + // SCHEDULING: A scheduling status. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"` // The test's stop time. @@ -4721,14 +3279,6 @@ type Test struct { // // APPIUM_JAVA_TESTNG: The Appium Java TestNG type. // - // APPIUM_PYTHON: The Appium Python type. - // - // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps. - // - // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps. - // - // APPIUM_WEB_PYTHON: The Appium Python type for Web apps. - // // CALABASH: The Calabash type. // // INSTRUMENTATION: The Instrumentation type. @@ -4738,9 +3288,13 @@ type Test struct { // UIAUTOMATOR: The uiautomator type. // // XCTEST: The XCode test type. - // - // XCTEST_UI: The XCode UI test type. Type *string `locationName:"type" type:"string" enum:"TestType"` + + metadataTest `json:"-" xml:"-"` +} + +type metadataTest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4755,151 +3309,33 @@ func (s Test) GoString() string { // A collection of one or more problems, grouped by their result. type UniqueProblem struct { - _ struct{} `type:"structure"` - // A message about the unique problems' result. Message *string `locationName:"message" type:"string"` // Information about the problems. Problems []*Problem `locationName:"problems" type:"list"` -} - -// String returns the string representation -func (s UniqueProblem) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UniqueProblem) GoString() string { - return s.String() -} - -// Represents a request to the update device pool operation. -type UpdateDevicePoolInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resourc Name (ARN) of the Device Farm device pool you wish to - // update. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` - - // A description of the device pool you wish to update. - Description *string `locationName:"description" type:"string"` - - // A string representing the name of the device pool you wish to update. - Name *string `locationName:"name" type:"string"` - - // Represents the rules you wish to modify for the device pool. Updating rules - // is optional; however, if you choose to update rules for your request, the - // update will replace the existing rules. - Rules []*Rule `locationName:"rules" type:"list"` -} - -// String returns the string representation -func (s UpdateDevicePoolInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateDevicePoolInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDevicePoolInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDevicePoolInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the result of an update device pool request. -type UpdateDevicePoolOutput struct { - _ struct{} `type:"structure"` - - // Represents a collection of device types. - DevicePool *DevicePool `locationName:"devicePool" type:"structure"` -} - -// String returns the string representation -func (s UpdateDevicePoolOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateDevicePoolOutput) GoString() string { - return s.String() -} - -// Represents a request to the update project operation. -type UpdateProjectInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the project whose name you wish to update. - Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` - - // A string representing the new name of the project that you are updating. - Name *string `locationName:"name" type:"string"` -} -// String returns the string representation -func (s UpdateProjectInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateProjectInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateProjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateProjectInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 32 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 32)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataUniqueProblem `json:"-" xml:"-"` } -// Represents the result of an update project request. -type UpdateProjectOutput struct { - _ struct{} `type:"structure"` - - // Represents an operating-system neutral workspace for running and managing - // tests. - Project *Project `locationName:"project" type:"structure"` +type metadataUniqueProblem struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s UpdateProjectOutput) String() string { +func (s UniqueProblem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateProjectOutput) GoString() string { +func (s UniqueProblem) GoString() string { return s.String() } // An app or a set of one or more tests to upload or that have been uploaded. type Upload struct { - _ struct{} `type:"structure"` - // The upload's ARN. - Arn *string `locationName:"arn" min:"32" type:"string"` + Arn *string `locationName:"arn" type:"string"` // The upload's content type (for example, "application/octet-stream"). ContentType *string `locationName:"contentType" type:"string"` @@ -4939,39 +3375,30 @@ type Upload struct { // // IOS_APP: An iOS upload. // - // WEB_APP: A web appliction upload. - // // EXTERNAL_DATA: An external data upload. // // APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. // // APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload. // - // APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. - // - // APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. - // - // APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package - // upload. - // - // APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. - // // CALABASH_TEST_PACKAGE: A Calabash test package upload. // // INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. // - // UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. - // // UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. // // XCTEST_TEST_PACKAGE: An XCode test package upload. - // - // XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. Type *string `locationName:"type" type:"string" enum:"UploadType"` // The pre-signed Amazon S3 URL that was used to store a file through a corresponding // PUT request. Url *string `locationName:"url" type:"string"` + + metadataUpload `json:"-" xml:"-"` +} + +type metadataUpload struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5007,8 +3434,6 @@ const ( // @enum ArtifactType ArtifactTypeServiceLog = "SERVICE_LOG" // @enum ArtifactType - ArtifactTypeWebkitLog = "WEBKIT_LOG" - // @enum ArtifactType ArtifactTypeInstrumentationOutput = "INSTRUMENTATION_OUTPUT" // @enum ArtifactType ArtifactTypeExerciserMonkeyOutput = "EXERCISER_MONKEY_OUTPUT" @@ -5028,20 +3453,6 @@ const ( ArtifactTypeAppiumJavaOutput = "APPIUM_JAVA_OUTPUT" // @enum ArtifactType ArtifactTypeAppiumJavaXmlOutput = "APPIUM_JAVA_XML_OUTPUT" - // @enum ArtifactType - ArtifactTypeAppiumPythonOutput = "APPIUM_PYTHON_OUTPUT" - // @enum ArtifactType - ArtifactTypeAppiumPythonXmlOutput = "APPIUM_PYTHON_XML_OUTPUT" - // @enum ArtifactType - ArtifactTypeExplorerEventLog = "EXPLORER_EVENT_LOG" - // @enum ArtifactType - ArtifactTypeExplorerSummaryLog = "EXPLORER_SUMMARY_LOG" - // @enum ArtifactType - ArtifactTypeApplicationCrashReport = "APPLICATION_CRASH_REPORT" - // @enum ArtifactType - ArtifactTypeXctestLog = "XCTEST_LOG" - // @enum ArtifactType - ArtifactTypeVideo = "VIDEO" ) const ( @@ -5051,11 +3462,6 @@ const ( BillingMethodUnmetered = "UNMETERED" ) -const ( - // @enum CurrencyCode - CurrencyCodeUsd = "USD" -) - const ( // @enum DeviceAttribute DeviceAttributeArn = "ARN" @@ -5109,40 +3515,13 @@ const ( // @enum ExecutionStatus ExecutionStatusPending = "PENDING" // @enum ExecutionStatus - ExecutionStatusPendingConcurrency = "PENDING_CONCURRENCY" - // @enum ExecutionStatus - ExecutionStatusPendingDevice = "PENDING_DEVICE" - // @enum ExecutionStatus ExecutionStatusProcessing = "PROCESSING" // @enum ExecutionStatus ExecutionStatusScheduling = "SCHEDULING" // @enum ExecutionStatus - ExecutionStatusPreparing = "PREPARING" - // @enum ExecutionStatus ExecutionStatusRunning = "RUNNING" // @enum ExecutionStatus ExecutionStatusCompleted = "COMPLETED" - // @enum ExecutionStatus - ExecutionStatusStopping = "STOPPING" -) - -const ( - // @enum OfferingTransactionType - OfferingTransactionTypePurchase = "PURCHASE" - // @enum OfferingTransactionType - OfferingTransactionTypeRenew = "RENEW" - // @enum OfferingTransactionType - OfferingTransactionTypeSystem = "SYSTEM" -) - -const ( - // @enum OfferingType - OfferingTypeRecurring = "RECURRING" -) - -const ( - // @enum RecurringChargeFrequency - RecurringChargeFrequencyMonthly = "MONTHLY" ) const ( @@ -5205,14 +3584,6 @@ const ( // @enum TestType TestTypeAppiumJavaTestng = "APPIUM_JAVA_TESTNG" // @enum TestType - TestTypeAppiumPython = "APPIUM_PYTHON" - // @enum TestType - TestTypeAppiumWebJavaJunit = "APPIUM_WEB_JAVA_JUNIT" - // @enum TestType - TestTypeAppiumWebJavaTestng = "APPIUM_WEB_JAVA_TESTNG" - // @enum TestType - TestTypeAppiumWebPython = "APPIUM_WEB_PYTHON" - // @enum TestType TestTypeCalabash = "CALABASH" // @enum TestType TestTypeInstrumentation = "INSTRUMENTATION" @@ -5222,8 +3593,6 @@ const ( TestTypeUiautomator = "UIAUTOMATOR" // @enum TestType TestTypeXctest = "XCTEST" - // @enum TestType - TestTypeXctestUi = "XCTEST_UI" ) const ( @@ -5243,22 +3612,12 @@ const ( // @enum UploadType UploadTypeIosApp = "IOS_APP" // @enum UploadType - UploadTypeWebApp = "WEB_APP" - // @enum UploadType UploadTypeExternalData = "EXTERNAL_DATA" // @enum UploadType UploadTypeAppiumJavaJunitTestPackage = "APPIUM_JAVA_JUNIT_TEST_PACKAGE" // @enum UploadType UploadTypeAppiumJavaTestngTestPackage = "APPIUM_JAVA_TESTNG_TEST_PACKAGE" // @enum UploadType - UploadTypeAppiumPythonTestPackage = "APPIUM_PYTHON_TEST_PACKAGE" - // @enum UploadType - UploadTypeAppiumWebJavaJunitTestPackage = "APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE" - // @enum UploadType - UploadTypeAppiumWebJavaTestngTestPackage = "APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE" - // @enum UploadType - UploadTypeAppiumWebPythonTestPackage = "APPIUM_WEB_PYTHON_TEST_PACKAGE" - // @enum UploadType UploadTypeCalabashTestPackage = "CALABASH_TEST_PACKAGE" // @enum UploadType UploadTypeInstrumentationTestPackage = "INSTRUMENTATION_TEST_PACKAGE" @@ -5268,6 +3627,4 @@ const ( UploadTypeUiautomatorTestPackage = "UIAUTOMATOR_TEST_PACKAGE" // @enum UploadType UploadTypeXctestTestPackage = "XCTEST_TEST_PACKAGE" - // @enum UploadType - UploadTypeXctestUiTestPackage = "XCTEST_UI_TEST_PACKAGE" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go index 23e5f1878..051d28618 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface.go @@ -22,22 +22,6 @@ type DeviceFarmAPI interface { CreateUpload(*devicefarm.CreateUploadInput) (*devicefarm.CreateUploadOutput, error) - DeleteDevicePoolRequest(*devicefarm.DeleteDevicePoolInput) (*request.Request, *devicefarm.DeleteDevicePoolOutput) - - DeleteDevicePool(*devicefarm.DeleteDevicePoolInput) (*devicefarm.DeleteDevicePoolOutput, error) - - DeleteProjectRequest(*devicefarm.DeleteProjectInput) (*request.Request, *devicefarm.DeleteProjectOutput) - - DeleteProject(*devicefarm.DeleteProjectInput) (*devicefarm.DeleteProjectOutput, error) - - DeleteRunRequest(*devicefarm.DeleteRunInput) (*request.Request, *devicefarm.DeleteRunOutput) - - DeleteRun(*devicefarm.DeleteRunInput) (*devicefarm.DeleteRunOutput, error) - - DeleteUploadRequest(*devicefarm.DeleteUploadInput) (*request.Request, *devicefarm.DeleteUploadOutput) - - DeleteUpload(*devicefarm.DeleteUploadInput) (*devicefarm.DeleteUploadOutput, error) - GetAccountSettingsRequest(*devicefarm.GetAccountSettingsInput) (*request.Request, *devicefarm.GetAccountSettingsOutput) GetAccountSettings(*devicefarm.GetAccountSettingsInput) (*devicefarm.GetAccountSettingsOutput, error) @@ -58,12 +42,6 @@ type DeviceFarmAPI interface { GetJob(*devicefarm.GetJobInput) (*devicefarm.GetJobOutput, error) - GetOfferingStatusRequest(*devicefarm.GetOfferingStatusInput) (*request.Request, *devicefarm.GetOfferingStatusOutput) - - GetOfferingStatus(*devicefarm.GetOfferingStatusInput) (*devicefarm.GetOfferingStatusOutput, error) - - GetOfferingStatusPages(*devicefarm.GetOfferingStatusInput, func(*devicefarm.GetOfferingStatusOutput, bool) bool) error - GetProjectRequest(*devicefarm.GetProjectInput) (*request.Request, *devicefarm.GetProjectOutput) GetProject(*devicefarm.GetProjectInput) (*devicefarm.GetProjectOutput, error) @@ -108,18 +86,6 @@ type DeviceFarmAPI interface { ListJobsPages(*devicefarm.ListJobsInput, func(*devicefarm.ListJobsOutput, bool) bool) error - ListOfferingTransactionsRequest(*devicefarm.ListOfferingTransactionsInput) (*request.Request, *devicefarm.ListOfferingTransactionsOutput) - - ListOfferingTransactions(*devicefarm.ListOfferingTransactionsInput) (*devicefarm.ListOfferingTransactionsOutput, error) - - ListOfferingTransactionsPages(*devicefarm.ListOfferingTransactionsInput, func(*devicefarm.ListOfferingTransactionsOutput, bool) bool) error - - ListOfferingsRequest(*devicefarm.ListOfferingsInput) (*request.Request, *devicefarm.ListOfferingsOutput) - - ListOfferings(*devicefarm.ListOfferingsInput) (*devicefarm.ListOfferingsOutput, error) - - ListOfferingsPages(*devicefarm.ListOfferingsInput, func(*devicefarm.ListOfferingsOutput, bool) bool) error - ListProjectsRequest(*devicefarm.ListProjectsInput) (*request.Request, *devicefarm.ListProjectsOutput) ListProjects(*devicefarm.ListProjectsInput) (*devicefarm.ListProjectsOutput, error) @@ -162,29 +128,7 @@ type DeviceFarmAPI interface { ListUploadsPages(*devicefarm.ListUploadsInput, func(*devicefarm.ListUploadsOutput, bool) bool) error - PurchaseOfferingRequest(*devicefarm.PurchaseOfferingInput) (*request.Request, *devicefarm.PurchaseOfferingOutput) - - PurchaseOffering(*devicefarm.PurchaseOfferingInput) (*devicefarm.PurchaseOfferingOutput, error) - - RenewOfferingRequest(*devicefarm.RenewOfferingInput) (*request.Request, *devicefarm.RenewOfferingOutput) - - RenewOffering(*devicefarm.RenewOfferingInput) (*devicefarm.RenewOfferingOutput, error) - ScheduleRunRequest(*devicefarm.ScheduleRunInput) (*request.Request, *devicefarm.ScheduleRunOutput) ScheduleRun(*devicefarm.ScheduleRunInput) (*devicefarm.ScheduleRunOutput, error) - - StopRunRequest(*devicefarm.StopRunInput) (*request.Request, *devicefarm.StopRunOutput) - - StopRun(*devicefarm.StopRunInput) (*devicefarm.StopRunOutput, error) - - UpdateDevicePoolRequest(*devicefarm.UpdateDevicePoolInput) (*request.Request, *devicefarm.UpdateDevicePoolOutput) - - UpdateDevicePool(*devicefarm.UpdateDevicePoolInput) (*devicefarm.UpdateDevicePoolOutput, error) - - UpdateProjectRequest(*devicefarm.UpdateProjectInput) (*request.Request, *devicefarm.UpdateProjectOutput) - - UpdateProject(*devicefarm.UpdateProjectInput) (*devicefarm.UpdateProjectOutput, error) } - -var _ DeviceFarmAPI = (*devicefarm.DeviceFarm)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface_test.go new file mode 100644 index 000000000..e70245602 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package devicefarmiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/devicefarm" + "github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*devicefarmiface.DeviceFarmAPI)(nil), devicefarm.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go index 56519d9c7..787685b15 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/devicefarm" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDeviceFarm_CreateDevicePool() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.CreateDevicePoolInput{ Name: aws.String("Name"), // Required @@ -45,7 +44,7 @@ func ExampleDeviceFarm_CreateDevicePool() { } func ExampleDeviceFarm_CreateProject() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.CreateProjectInput{ Name: aws.String("Name"), // Required @@ -64,7 +63,7 @@ func ExampleDeviceFarm_CreateProject() { } func ExampleDeviceFarm_CreateUpload() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.CreateUploadInput{ Name: aws.String("Name"), // Required @@ -85,84 +84,8 @@ func ExampleDeviceFarm_CreateUpload() { fmt.Println(resp) } -func ExampleDeviceFarm_DeleteDevicePool() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.DeleteDevicePoolInput{ - Arn: aws.String("AmazonResourceName"), // Required - } - resp, err := svc.DeleteDevicePool(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDeviceFarm_DeleteProject() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.DeleteProjectInput{ - Arn: aws.String("AmazonResourceName"), // Required - } - resp, err := svc.DeleteProject(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDeviceFarm_DeleteRun() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.DeleteRunInput{ - Arn: aws.String("AmazonResourceName"), // Required - } - resp, err := svc.DeleteRun(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDeviceFarm_DeleteUpload() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.DeleteUploadInput{ - Arn: aws.String("AmazonResourceName"), // Required - } - resp, err := svc.DeleteUpload(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDeviceFarm_GetAccountSettings() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) var params *devicefarm.GetAccountSettingsInput resp, err := svc.GetAccountSettings(params) @@ -179,7 +102,7 @@ func ExampleDeviceFarm_GetAccountSettings() { } func ExampleDeviceFarm_GetDevice() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.GetDeviceInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -198,7 +121,7 @@ func ExampleDeviceFarm_GetDevice() { } func ExampleDeviceFarm_GetDevicePool() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.GetDevicePoolInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -217,11 +140,11 @@ func ExampleDeviceFarm_GetDevicePool() { } func ExampleDeviceFarm_GetDevicePoolCompatibility() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.GetDevicePoolCompatibilityInput{ + AppArn: aws.String("AmazonResourceName"), // Required DevicePoolArn: aws.String("AmazonResourceName"), // Required - AppArn: aws.String("AmazonResourceName"), TestType: aws.String("TestType"), } resp, err := svc.GetDevicePoolCompatibility(params) @@ -238,7 +161,7 @@ func ExampleDeviceFarm_GetDevicePoolCompatibility() { } func ExampleDeviceFarm_GetJob() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.GetJobInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -256,27 +179,8 @@ func ExampleDeviceFarm_GetJob() { fmt.Println(resp) } -func ExampleDeviceFarm_GetOfferingStatus() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.GetOfferingStatusInput{ - NextToken: aws.String("PaginationToken"), - } - resp, err := svc.GetOfferingStatus(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDeviceFarm_GetProject() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.GetProjectInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -295,7 +199,7 @@ func ExampleDeviceFarm_GetProject() { } func ExampleDeviceFarm_GetRun() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.GetRunInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -314,7 +218,7 @@ func ExampleDeviceFarm_GetRun() { } func ExampleDeviceFarm_GetSuite() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.GetSuiteInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -333,7 +237,7 @@ func ExampleDeviceFarm_GetSuite() { } func ExampleDeviceFarm_GetTest() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.GetTestInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -352,7 +256,7 @@ func ExampleDeviceFarm_GetTest() { } func ExampleDeviceFarm_GetUpload() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.GetUploadInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -371,7 +275,7 @@ func ExampleDeviceFarm_GetUpload() { } func ExampleDeviceFarm_ListArtifacts() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListArtifactsInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -392,7 +296,7 @@ func ExampleDeviceFarm_ListArtifacts() { } func ExampleDeviceFarm_ListDevicePools() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListDevicePoolsInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -413,7 +317,7 @@ func ExampleDeviceFarm_ListDevicePools() { } func ExampleDeviceFarm_ListDevices() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListDevicesInput{ Arn: aws.String("AmazonResourceName"), @@ -433,7 +337,7 @@ func ExampleDeviceFarm_ListDevices() { } func ExampleDeviceFarm_ListJobs() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListJobsInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -452,46 +356,8 @@ func ExampleDeviceFarm_ListJobs() { fmt.Println(resp) } -func ExampleDeviceFarm_ListOfferingTransactions() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.ListOfferingTransactionsInput{ - NextToken: aws.String("PaginationToken"), - } - resp, err := svc.ListOfferingTransactions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDeviceFarm_ListOfferings() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.ListOfferingsInput{ - NextToken: aws.String("PaginationToken"), - } - resp, err := svc.ListOfferings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDeviceFarm_ListProjects() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListProjectsInput{ Arn: aws.String("AmazonResourceName"), @@ -511,7 +377,7 @@ func ExampleDeviceFarm_ListProjects() { } func ExampleDeviceFarm_ListRuns() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListRunsInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -531,7 +397,7 @@ func ExampleDeviceFarm_ListRuns() { } func ExampleDeviceFarm_ListSamples() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListSamplesInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -551,7 +417,7 @@ func ExampleDeviceFarm_ListSamples() { } func ExampleDeviceFarm_ListSuites() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListSuitesInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -571,7 +437,7 @@ func ExampleDeviceFarm_ListSuites() { } func ExampleDeviceFarm_ListTests() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListTestsInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -591,7 +457,7 @@ func ExampleDeviceFarm_ListTests() { } func ExampleDeviceFarm_ListUniqueProblems() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListUniqueProblemsInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -611,7 +477,7 @@ func ExampleDeviceFarm_ListUniqueProblems() { } func ExampleDeviceFarm_ListUploads() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ListUploadsInput{ Arn: aws.String("AmazonResourceName"), // Required @@ -630,50 +496,11 @@ func ExampleDeviceFarm_ListUploads() { fmt.Println(resp) } -func ExampleDeviceFarm_PurchaseOffering() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.PurchaseOfferingInput{ - OfferingId: aws.String("OfferingIdentifier"), - Quantity: aws.Int64(1), - } - resp, err := svc.PurchaseOffering(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDeviceFarm_RenewOffering() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.RenewOfferingInput{ - OfferingId: aws.String("OfferingIdentifier"), - Quantity: aws.Int64(1), - } - resp, err := svc.RenewOffering(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDeviceFarm_ScheduleRun() { - svc := devicefarm.New(session.New()) + svc := devicefarm.New(nil) params := &devicefarm.ScheduleRunInput{ + AppArn: aws.String("AmazonResourceName"), // Required DevicePoolArn: aws.String("AmazonResourceName"), // Required ProjectArn: aws.String("AmazonResourceName"), // Required Test: &devicefarm.ScheduleRunTest{ // Required @@ -685,7 +512,6 @@ func ExampleDeviceFarm_ScheduleRun() { }, TestPackageArn: aws.String("AmazonResourceName"), }, - AppArn: aws.String("AmazonResourceName"), Configuration: &devicefarm.ScheduleRunConfiguration{ AuxiliaryApps: []*string{ aws.String("AmazonResourceName"), // Required @@ -720,71 +546,3 @@ func ExampleDeviceFarm_ScheduleRun() { // Pretty-print the response data. fmt.Println(resp) } - -func ExampleDeviceFarm_StopRun() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.StopRunInput{ - Arn: aws.String("AmazonResourceName"), // Required - } - resp, err := svc.StopRun(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDeviceFarm_UpdateDevicePool() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.UpdateDevicePoolInput{ - Arn: aws.String("AmazonResourceName"), // Required - Description: aws.String("Message"), - Name: aws.String("Name"), - Rules: []*devicefarm.Rule{ - { // Required - Attribute: aws.String("DeviceAttribute"), - Operator: aws.String("RuleOperator"), - Value: aws.String("String"), - }, - // More values... - }, - } - resp, err := svc.UpdateDevicePool(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDeviceFarm_UpdateProject() { - svc := devicefarm.New(session.New()) - - params := &devicefarm.UpdateProjectInput{ - Arn: aws.String("AmazonResourceName"), // Required - Name: aws.String("Name"), - } - resp, err := svc.UpdateProject(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/service.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/service.go index ca8536763..b43b0616a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/service.go @@ -4,76 +4,53 @@ package devicefarm import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // AWS Device Farm is a service that enables mobile app developers to test Android, // iOS, and Fire OS apps on physical phones, tablets, and other devices in the // cloud. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type DeviceFarm struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "devicefarm" - -// New creates a new instance of the DeviceFarm client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a DeviceFarm client from just a session. -// svc := devicefarm.New(mySession) -// -// // Create a DeviceFarm client with additional configuration -// svc := devicefarm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *DeviceFarm { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DeviceFarm { - svc := &DeviceFarm{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-06-23", - JSONVersion: "1.1", - TargetPrefix: "DeviceFarm_20150623", - }, - handlers, - ), +// New returns a new DeviceFarm client. +func New(config *aws.Config) *DeviceFarm { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "devicefarm", + APIVersion: "2015-06-23", + JSONVersion: "1.1", + TargetPrefix: "DeviceFarm_20150623", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &DeviceFarm{service} } // newRequest creates a new request for a DeviceFarm operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go index 3b2d10417..9e286a29f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go @@ -32,8 +32,6 @@ func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateC // // Allocates a VLAN number and a specified amount of bandwidth for use by a // hosted connection on the given interconnect. -// -// This is intended for use by AWS Direct Connect partners only. func (c *DirectConnect) AllocateConnectionOnInterconnect(input *AllocateConnectionOnInterconnectInput) (*Connection, error) { req, out := c.AllocateConnectionOnInterconnectRequest(input) err := req.Send() @@ -274,8 +272,6 @@ func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput // customer can then connect to AWS resources by creating a virtual interface // on their connection, using the VLAN assigned to them by the AWS Direct Connect // partner. -// -// This is intended for use by AWS Direct Connect partners only. func (c *DirectConnect) CreateInterconnect(input *CreateInterconnectInput) (*Interconnect, error) { req, out := c.CreateInterconnectRequest(input) err := req.Send() @@ -394,8 +390,6 @@ func (c *DirectConnect) DeleteInterconnectRequest(input *DeleteInterconnectInput } // Deletes the specified interconnect. -// -// This is intended for use by AWS Direct Connect partners only. func (c *DirectConnect) DeleteInterconnect(input *DeleteInterconnectInput) (*DeleteInterconnectOutput, error) { req, out := c.DeleteInterconnectRequest(input) err := req.Send() @@ -479,8 +473,6 @@ func (c *DirectConnect) DescribeConnectionsOnInterconnectRequest(input *Describe } // Return a list of connections that have been provisioned on the given interconnect. -// -// This is intended for use by AWS Direct Connect partners only. func (c *DirectConnect) DescribeConnectionsOnInterconnect(input *DescribeConnectionsOnInterconnectInput) (*Connections, error) { req, out := c.DescribeConnectionsOnInterconnectRequest(input) err := req.Send() @@ -618,15 +610,11 @@ func (c *DirectConnect) DescribeVirtualInterfaces(input *DescribeVirtualInterfac // Container for the parameters to the AllocateConnectionOnInterconnect operation. type AllocateConnectionOnInterconnectInput struct { - _ struct{} `type:"structure"` - // Bandwidth of the connection. // // Example: "500Mbps" // // Default: None - // - // Values: 50M, 100M, 200M, 300M, 400M, or 500M Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"` // Name of the provisioned connection. @@ -656,6 +644,12 @@ type AllocateConnectionOnInterconnectInput struct { // // Default: None Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` + + metadataAllocateConnectionOnInterconnectInput `json:"-" xml:"-"` +} + +type metadataAllocateConnectionOnInterconnectInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -668,35 +662,8 @@ func (s AllocateConnectionOnInterconnectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AllocateConnectionOnInterconnectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AllocateConnectionOnInterconnectInput"} - if s.Bandwidth == nil { - invalidParams.Add(request.NewErrParamRequired("Bandwidth")) - } - if s.ConnectionName == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionName")) - } - if s.InterconnectId == nil { - invalidParams.Add(request.NewErrParamRequired("InterconnectId")) - } - if s.OwnerAccount == nil { - invalidParams.Add(request.NewErrParamRequired("OwnerAccount")) - } - if s.Vlan == nil { - invalidParams.Add(request.NewErrParamRequired("Vlan")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the AllocatePrivateVirtualInterface operation. type AllocatePrivateVirtualInterfaceInput struct { - _ struct{} `type:"structure"` - // The connection ID on which the private virtual interface is provisioned. // // Default: None @@ -711,6 +678,12 @@ type AllocatePrivateVirtualInterfaceInput struct { // // Default: None OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` + + metadataAllocatePrivateVirtualInterfaceInput `json:"-" xml:"-"` +} + +type metadataAllocatePrivateVirtualInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -723,34 +696,8 @@ func (s AllocatePrivateVirtualInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AllocatePrivateVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AllocatePrivateVirtualInterfaceInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - if s.NewPrivateVirtualInterfaceAllocation == nil { - invalidParams.Add(request.NewErrParamRequired("NewPrivateVirtualInterfaceAllocation")) - } - if s.OwnerAccount == nil { - invalidParams.Add(request.NewErrParamRequired("OwnerAccount")) - } - if s.NewPrivateVirtualInterfaceAllocation != nil { - if err := s.NewPrivateVirtualInterfaceAllocation.Validate(); err != nil { - invalidParams.AddNested("NewPrivateVirtualInterfaceAllocation", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the AllocatePublicVirtualInterface operation. type AllocatePublicVirtualInterfaceInput struct { - _ struct{} `type:"structure"` - // The connection ID on which the public virtual interface is provisioned. // // Default: None @@ -765,6 +712,12 @@ type AllocatePublicVirtualInterfaceInput struct { // // Default: None OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` + + metadataAllocatePublicVirtualInterfaceInput `json:"-" xml:"-"` +} + +type metadataAllocatePublicVirtualInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -777,40 +730,20 @@ func (s AllocatePublicVirtualInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AllocatePublicVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AllocatePublicVirtualInterfaceInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - if s.NewPublicVirtualInterfaceAllocation == nil { - invalidParams.Add(request.NewErrParamRequired("NewPublicVirtualInterfaceAllocation")) - } - if s.OwnerAccount == nil { - invalidParams.Add(request.NewErrParamRequired("OwnerAccount")) - } - if s.NewPublicVirtualInterfaceAllocation != nil { - if err := s.NewPublicVirtualInterfaceAllocation.Validate(); err != nil { - invalidParams.AddNested("NewPublicVirtualInterfaceAllocation", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the ConfirmConnection operation. type ConfirmConnectionInput struct { - _ struct{} `type:"structure"` - // ID of the connection. // // Example: dxcon-fg5678gh // // Default: None ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + metadataConfirmConnectionInput `json:"-" xml:"-"` +} + +type metadataConfirmConnectionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -823,46 +756,25 @@ func (s ConfirmConnectionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmConnectionInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The response received when ConfirmConnection is called. type ConfirmConnectionOutput struct { - _ struct{} `type:"structure"` - - // State of the connection. - // - // Ordering: The initial state of a hosted connection provisioned on an - // interconnect. The connection stays in the ordering state until the owner - // of the hosted connection confirms or declines the connection order. - // - // Requested: The initial state of a standard connection. The connection + // State of the connection. Ordering: The initial state of a hosted connection + // provisioned on an interconnect. The connection stays in the ordering state + // until the owner of the hosted connection confirms or declines the connection + // order. Requested: The initial state of a standard connection. The connection // stays in the requested state until the Letter of Authorization (LOA) is sent - // to the customer. - // - // Pending: The connection has been approved, and is being initialized. - // - // Available: The network link is up, and the connection is ready for use. - // - // Down: The network link is down. - // - // Deleting: The connection is in the process of being deleted. - // - // Deleted: The connection has been deleted. - // - // Rejected: A hosted connection in the 'Ordering' state will enter the - // 'Rejected' state if it is deleted by the end customer. + // to the customer. Pending: The connection has been approved, and is being + // initialized. Available: The network link is up, and the connection is ready + // for use. Down: The network link is down. Deleted: The connection has been + // deleted. Rejected: A hosted connection in the 'Ordering' state will enter + // the 'Rejected' state if it is deleted by the end customer. ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"` + + metadataConfirmConnectionOutput `json:"-" xml:"-"` +} + +type metadataConfirmConnectionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -877,8 +789,6 @@ func (s ConfirmConnectionOutput) GoString() string { // Container for the parameters to the ConfirmPrivateVirtualInterface operation. type ConfirmPrivateVirtualInterfaceInput struct { - _ struct{} `type:"structure"` - // ID of the virtual private gateway that will be attached to the virtual interface. // // A virtual private gateway can be managed via the Amazon Virtual Private @@ -894,6 +804,12 @@ type ConfirmPrivateVirtualInterfaceInput struct { // // Default: None VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` + + metadataConfirmPrivateVirtualInterfaceInput `json:"-" xml:"-"` +} + +type metadataConfirmPrivateVirtualInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -906,55 +822,31 @@ func (s ConfirmPrivateVirtualInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmPrivateVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmPrivateVirtualInterfaceInput"} - if s.VirtualGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualGatewayId")) - } - if s.VirtualInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The response received when ConfirmPrivateVirtualInterface is called. type ConfirmPrivateVirtualInterfaceOutput struct { - _ struct{} `type:"structure"` - - // State of the virtual interface. - // - // Confirming: The creation of the virtual interface is pending confirmation - // from the virtual interface owner. If the owner of the virtual interface is - // different from the owner of the connection on which it is provisioned, then - // the virtual interface will remain in this state until it is confirmed by - // the virtual interface owner. - // - // Verifying: This state only applies to public virtual interfaces. Each - // public virtual interface needs validation before the virtual interface can - // be created. - // - // Pending: A virtual interface is in this state from the time that it is - // created until the virtual interface is ready to forward traffic. - // - // Available: A virtual interface that is able to forward traffic. - // - // Down: A virtual interface that is BGP down. - // - // Deleting: A virtual interface is in this state immediately after calling - // DeleteVirtualInterface until it can no longer forward traffic. - // - // Deleted: A virtual interface that cannot forward traffic. - // - // Rejected: The virtual interface owner has declined creation of the virtual - // interface. If a virtual interface in the 'Confirming' state is deleted by - // the virtual interface owner, the virtual interface will enter the 'Rejected' - // state. + // State of the virtual interface. Confirming: The creation of the virtual + // interface is pending confirmation from the virtual interface owner. If the + // owner of the virtual interface is different from the owner of the connection + // on which it is provisioned, then the virtual interface will remain in this + // state until it is confirmed by the virtual interface owner. Verifying: This + // state only applies to public virtual interfaces. Each public virtual interface + // needs validation before the virtual interface can be created. Pending: A + // virtual interface is in this state from the time that it is created until + // the virtual interface is ready to forward traffic. Available: A virtual + // interface that is able to forward traffic. Deleting: A virtual interface + // is in this state immediately after calling DeleteVirtualInterface until it + // can no longer forward traffic. Deleted: A virtual interface that cannot + // forward traffic. Rejected: The virtual interface owner has declined creation + // of the virtual interface. If a virtual interface in the 'Confirming' state + // is deleted by the virtual interface owner, the virtual interface will enter + // the 'Rejected' state. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` + + metadataConfirmPrivateVirtualInterfaceOutput `json:"-" xml:"-"` +} + +type metadataConfirmPrivateVirtualInterfaceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -969,14 +861,18 @@ func (s ConfirmPrivateVirtualInterfaceOutput) GoString() string { // Container for the parameters to the ConfirmPublicVirtualInterface operation. type ConfirmPublicVirtualInterfaceInput struct { - _ struct{} `type:"structure"` - // ID of the virtual interface. // // Example: dxvif-123dfg56 // // Default: None VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` + + metadataConfirmPublicVirtualInterfaceInput `json:"-" xml:"-"` +} + +type metadataConfirmPublicVirtualInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -989,52 +885,31 @@ func (s ConfirmPublicVirtualInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmPublicVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmPublicVirtualInterfaceInput"} - if s.VirtualInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The response received when ConfirmPublicVirtualInterface is called. type ConfirmPublicVirtualInterfaceOutput struct { - _ struct{} `type:"structure"` - - // State of the virtual interface. - // - // Confirming: The creation of the virtual interface is pending confirmation - // from the virtual interface owner. If the owner of the virtual interface is - // different from the owner of the connection on which it is provisioned, then - // the virtual interface will remain in this state until it is confirmed by - // the virtual interface owner. - // - // Verifying: This state only applies to public virtual interfaces. Each - // public virtual interface needs validation before the virtual interface can - // be created. - // - // Pending: A virtual interface is in this state from the time that it is - // created until the virtual interface is ready to forward traffic. - // - // Available: A virtual interface that is able to forward traffic. - // - // Down: A virtual interface that is BGP down. - // - // Deleting: A virtual interface is in this state immediately after calling - // DeleteVirtualInterface until it can no longer forward traffic. - // - // Deleted: A virtual interface that cannot forward traffic. - // - // Rejected: The virtual interface owner has declined creation of the virtual - // interface. If a virtual interface in the 'Confirming' state is deleted by - // the virtual interface owner, the virtual interface will enter the 'Rejected' - // state. + // State of the virtual interface. Confirming: The creation of the virtual + // interface is pending confirmation from the virtual interface owner. If the + // owner of the virtual interface is different from the owner of the connection + // on which it is provisioned, then the virtual interface will remain in this + // state until it is confirmed by the virtual interface owner. Verifying: This + // state only applies to public virtual interfaces. Each public virtual interface + // needs validation before the virtual interface can be created. Pending: A + // virtual interface is in this state from the time that it is created until + // the virtual interface is ready to forward traffic. Available: A virtual + // interface that is able to forward traffic. Deleting: A virtual interface + // is in this state immediately after calling DeleteVirtualInterface until it + // can no longer forward traffic. Deleted: A virtual interface that cannot + // forward traffic. Rejected: The virtual interface owner has declined creation + // of the virtual interface. If a virtual interface in the 'Confirming' state + // is deleted by the virtual interface owner, the virtual interface will enter + // the 'Rejected' state. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` + + metadataConfirmPublicVirtualInterfaceOutput `json:"-" xml:"-"` +} + +type metadataConfirmPublicVirtualInterfaceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1050,8 +925,6 @@ func (s ConfirmPublicVirtualInterfaceOutput) GoString() string { // A connection represents the physical network connection between the AWS Direct // Connect location and the customer. type Connection struct { - _ struct{} `type:"structure"` - // Bandwidth of the connection. // // Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections) @@ -1073,28 +946,16 @@ type Connection struct { // Default: None ConnectionName *string `locationName:"connectionName" type:"string"` - // State of the connection. - // - // Ordering: The initial state of a hosted connection provisioned on an - // interconnect. The connection stays in the ordering state until the owner - // of the hosted connection confirms or declines the connection order. - // - // Requested: The initial state of a standard connection. The connection + // State of the connection. Ordering: The initial state of a hosted connection + // provisioned on an interconnect. The connection stays in the ordering state + // until the owner of the hosted connection confirms or declines the connection + // order. Requested: The initial state of a standard connection. The connection // stays in the requested state until the Letter of Authorization (LOA) is sent - // to the customer. - // - // Pending: The connection has been approved, and is being initialized. - // - // Available: The network link is up, and the connection is ready for use. - // - // Down: The network link is down. - // - // Deleting: The connection is in the process of being deleted. - // - // Deleted: The connection has been deleted. - // - // Rejected: A hosted connection in the 'Ordering' state will enter the - // 'Rejected' state if it is deleted by the end customer. + // to the customer. Pending: The connection has been approved, and is being + // initialized. Available: The network link is up, and the connection is ready + // for use. Down: The network link is down. Deleted: The connection has been + // deleted. Rejected: A hosted connection in the 'Ordering' state will enter + // the 'Rejected' state if it is deleted by the end customer. ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"` // Where the connection is located. @@ -1104,10 +965,8 @@ type Connection struct { // Default: None Location *string `locationName:"location" type:"string"` - // The AWS account that will own the new connection. OwnerAccount *string `locationName:"ownerAccount" type:"string"` - // The name of the AWS Direct Connect service provider associated with the connection. PartnerName *string `locationName:"partnerName" type:"string"` // The AWS region where the connection is located. @@ -1121,6 +980,12 @@ type Connection struct { // // Example: 101 Vlan *int64 `locationName:"vlan" type:"integer"` + + metadataConnection `json:"-" xml:"-"` +} + +type metadataConnection struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1135,10 +1000,14 @@ func (s Connection) GoString() string { // A structure containing a list of connections. type Connections struct { - _ struct{} `type:"structure"` - // A list of connections. Connections []*Connection `locationName:"connections" type:"list"` + + metadataConnections `json:"-" xml:"-"` +} + +type metadataConnections struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1153,8 +1022,6 @@ func (s Connections) GoString() string { // Container for the parameters to the CreateConnection operation. type CreateConnectionInput struct { - _ struct{} `type:"structure"` - // Bandwidth of the connection. // // Example: 1Gbps @@ -1175,6 +1042,12 @@ type CreateConnectionInput struct { // // Default: None Location *string `locationName:"location" type:"string" required:"true"` + + metadataCreateConnectionInput `json:"-" xml:"-"` +} + +type metadataCreateConnectionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1187,29 +1060,8 @@ func (s CreateConnectionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"} - if s.Bandwidth == nil { - invalidParams.Add(request.NewErrParamRequired("Bandwidth")) - } - if s.ConnectionName == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionName")) - } - if s.Location == nil { - invalidParams.Add(request.NewErrParamRequired("Location")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the CreateInterconnect operation. type CreateInterconnectInput struct { - _ struct{} `type:"structure"` - // The port bandwidth // // Example: 1Gbps @@ -1232,6 +1084,12 @@ type CreateInterconnectInput struct { // // Default: None Location *string `locationName:"location" type:"string" required:"true"` + + metadataCreateInterconnectInput `json:"-" xml:"-"` +} + +type metadataCreateInterconnectInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1244,29 +1102,8 @@ func (s CreateInterconnectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateInterconnectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateInterconnectInput"} - if s.Bandwidth == nil { - invalidParams.Add(request.NewErrParamRequired("Bandwidth")) - } - if s.InterconnectName == nil { - invalidParams.Add(request.NewErrParamRequired("InterconnectName")) - } - if s.Location == nil { - invalidParams.Add(request.NewErrParamRequired("Location")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the CreatePrivateVirtualInterface operation. type CreatePrivateVirtualInterfaceInput struct { - _ struct{} `type:"structure"` - // ID of the connection. // // Example: dxcon-fg5678gh @@ -1278,6 +1115,12 @@ type CreatePrivateVirtualInterfaceInput struct { // // Default: None NewPrivateVirtualInterface *NewPrivateVirtualInterface `locationName:"newPrivateVirtualInterface" type:"structure" required:"true"` + + metadataCreatePrivateVirtualInterfaceInput `json:"-" xml:"-"` +} + +type metadataCreatePrivateVirtualInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1290,31 +1133,8 @@ func (s CreatePrivateVirtualInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePrivateVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePrivateVirtualInterfaceInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - if s.NewPrivateVirtualInterface == nil { - invalidParams.Add(request.NewErrParamRequired("NewPrivateVirtualInterface")) - } - if s.NewPrivateVirtualInterface != nil { - if err := s.NewPrivateVirtualInterface.Validate(); err != nil { - invalidParams.AddNested("NewPrivateVirtualInterface", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the CreatePublicVirtualInterface operation. type CreatePublicVirtualInterfaceInput struct { - _ struct{} `type:"structure"` - // ID of the connection. // // Example: dxcon-fg5678gh @@ -1326,6 +1146,12 @@ type CreatePublicVirtualInterfaceInput struct { // // Default: None NewPublicVirtualInterface *NewPublicVirtualInterface `locationName:"newPublicVirtualInterface" type:"structure" required:"true"` + + metadataCreatePublicVirtualInterfaceInput `json:"-" xml:"-"` +} + +type metadataCreatePublicVirtualInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1338,37 +1164,20 @@ func (s CreatePublicVirtualInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePublicVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePublicVirtualInterfaceInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - if s.NewPublicVirtualInterface == nil { - invalidParams.Add(request.NewErrParamRequired("NewPublicVirtualInterface")) - } - if s.NewPublicVirtualInterface != nil { - if err := s.NewPublicVirtualInterface.Validate(); err != nil { - invalidParams.AddNested("NewPublicVirtualInterface", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the DeleteConnection operation. type DeleteConnectionInput struct { - _ struct{} `type:"structure"` - // ID of the connection. // // Example: dxcon-fg5678gh // // Default: None ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` + + metadataDeleteConnectionInput `json:"-" xml:"-"` +} + +type metadataDeleteConnectionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1381,27 +1190,18 @@ func (s DeleteConnectionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} - if s.ConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the DeleteInterconnect operation. type DeleteInterconnectInput struct { - _ struct{} `type:"structure"` - // The ID of the interconnect. // // Example: dxcon-abc123 InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` + + metadataDeleteInterconnectInput `json:"-" xml:"-"` +} + +type metadataDeleteInterconnectInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1414,40 +1214,21 @@ func (s DeleteInterconnectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteInterconnectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteInterconnectInput"} - if s.InterconnectId == nil { - invalidParams.Add(request.NewErrParamRequired("InterconnectId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The response received when DeleteInterconnect is called. type DeleteInterconnectOutput struct { - _ struct{} `type:"structure"` - - // State of the interconnect. - // - // Requested: The initial state of an interconnect. The interconnect stays - // in the requested state until the Letter of Authorization (LOA) is sent to - // the customer. - // - // Pending>: The interconnect has been approved, and is being initialized. - // - // Available: The network link is up, and the interconnect is ready for - // use. - // - // Down: The network link is down. - // - // Deleting: The interconnect is in the process of being deleted. - // - // Deleted: The interconnect has been deleted. + // State of the interconnect. Requested: The initial state of an interconnect. + // The interconnect stays in the requested state until the Letter of Authorization + // (LOA) is sent to the customer. Pending: The interconnect has been approved, + // and is being initialized. Available: The network link is up, and the interconnect + // is ready for use. Down: The network link is down. Deleted: The interconnect + // has been deleted. InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"` + + metadataDeleteInterconnectOutput `json:"-" xml:"-"` +} + +type metadataDeleteInterconnectOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1462,14 +1243,18 @@ func (s DeleteInterconnectOutput) GoString() string { // Container for the parameters to the DeleteVirtualInterface operation. type DeleteVirtualInterfaceInput struct { - _ struct{} `type:"structure"` - // ID of the virtual interface. // // Example: dxvif-123dfg56 // // Default: None VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` + + metadataDeleteVirtualInterfaceInput `json:"-" xml:"-"` +} + +type metadataDeleteVirtualInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1482,52 +1267,31 @@ func (s DeleteVirtualInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVirtualInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVirtualInterfaceInput"} - if s.VirtualInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The response received when DeleteVirtualInterface is called. type DeleteVirtualInterfaceOutput struct { - _ struct{} `type:"structure"` - - // State of the virtual interface. - // - // Confirming: The creation of the virtual interface is pending confirmation - // from the virtual interface owner. If the owner of the virtual interface is - // different from the owner of the connection on which it is provisioned, then - // the virtual interface will remain in this state until it is confirmed by - // the virtual interface owner. - // - // Verifying: This state only applies to public virtual interfaces. Each - // public virtual interface needs validation before the virtual interface can - // be created. - // - // Pending: A virtual interface is in this state from the time that it is - // created until the virtual interface is ready to forward traffic. - // - // Available: A virtual interface that is able to forward traffic. - // - // Down: A virtual interface that is BGP down. - // - // Deleting: A virtual interface is in this state immediately after calling - // DeleteVirtualInterface until it can no longer forward traffic. - // - // Deleted: A virtual interface that cannot forward traffic. - // - // Rejected: The virtual interface owner has declined creation of the virtual - // interface. If a virtual interface in the 'Confirming' state is deleted by - // the virtual interface owner, the virtual interface will enter the 'Rejected' - // state. + // State of the virtual interface. Confirming: The creation of the virtual + // interface is pending confirmation from the virtual interface owner. If the + // owner of the virtual interface is different from the owner of the connection + // on which it is provisioned, then the virtual interface will remain in this + // state until it is confirmed by the virtual interface owner. Verifying: This + // state only applies to public virtual interfaces. Each public virtual interface + // needs validation before the virtual interface can be created. Pending: A + // virtual interface is in this state from the time that it is created until + // the virtual interface is ready to forward traffic. Available: A virtual + // interface that is able to forward traffic. Deleting: A virtual interface + // is in this state immediately after calling DeleteVirtualInterface until it + // can no longer forward traffic. Deleted: A virtual interface that cannot + // forward traffic. Rejected: The virtual interface owner has declined creation + // of the virtual interface. If a virtual interface in the 'Confirming' state + // is deleted by the virtual interface owner, the virtual interface will enter + // the 'Rejected' state. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` + + metadataDeleteVirtualInterfaceOutput `json:"-" xml:"-"` +} + +type metadataDeleteVirtualInterfaceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1542,14 +1306,18 @@ func (s DeleteVirtualInterfaceOutput) GoString() string { // Container for the parameters to the DescribeConnections operation. type DescribeConnectionsInput struct { - _ struct{} `type:"structure"` - // ID of the connection. // // Example: dxcon-fg5678gh // // Default: None ConnectionId *string `locationName:"connectionId" type:"string"` + + metadataDescribeConnectionsInput `json:"-" xml:"-"` +} + +type metadataDescribeConnectionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1564,14 +1332,18 @@ func (s DescribeConnectionsInput) GoString() string { // Container for the parameters to the DescribeConnectionsOnInterconnect operation. type DescribeConnectionsOnInterconnectInput struct { - _ struct{} `type:"structure"` - // ID of the interconnect on which a list of connection is provisioned. // // Example: dxcon-abc123 // // Default: None InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` + + metadataDescribeConnectionsOnInterconnectInput `json:"-" xml:"-"` +} + +type metadataDescribeConnectionsOnInterconnectInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1584,27 +1356,18 @@ func (s DescribeConnectionsOnInterconnectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeConnectionsOnInterconnectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionsOnInterconnectInput"} - if s.InterconnectId == nil { - invalidParams.Add(request.NewErrParamRequired("InterconnectId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for the parameters to the DescribeInterconnects operation. type DescribeInterconnectsInput struct { - _ struct{} `type:"structure"` - // The ID of the interconnect. // // Example: dxcon-abc123 InterconnectId *string `locationName:"interconnectId" type:"string"` + + metadataDescribeInterconnectsInput `json:"-" xml:"-"` +} + +type metadataDescribeInterconnectsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1619,10 +1382,14 @@ func (s DescribeInterconnectsInput) GoString() string { // A structure containing a list of interconnects. type DescribeInterconnectsOutput struct { - _ struct{} `type:"structure"` - // A list of interconnects. Interconnects []*Interconnect `locationName:"interconnects" type:"list"` + + metadataDescribeInterconnectsOutput `json:"-" xml:"-"` +} + +type metadataDescribeInterconnectsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1636,7 +1403,11 @@ func (s DescribeInterconnectsOutput) GoString() string { } type DescribeLocationsInput struct { - _ struct{} `type:"structure"` + metadataDescribeLocationsInput `json:"-" xml:"-"` +} + +type metadataDescribeLocationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1649,16 +1420,14 @@ func (s DescribeLocationsInput) GoString() string { return s.String() } -// A location is a network facility where AWS Direct Connect routers are available -// to be connected. Generally, these are colocation hubs where many network -// providers have equipment, and where cross connects can be delivered. Locations -// include a name and facility code, and must be provided when creating a connection. type DescribeLocationsOutput struct { - _ struct{} `type:"structure"` - - // A list of colocation hubs where network providers have equipment. Most regions - // have multiple locations available. Locations []*Location `locationName:"locations" type:"list"` + + metadataDescribeLocationsOutput `json:"-" xml:"-"` +} + +type metadataDescribeLocationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1672,7 +1441,11 @@ func (s DescribeLocationsOutput) GoString() string { } type DescribeVirtualGatewaysInput struct { - _ struct{} `type:"structure"` + metadataDescribeVirtualGatewaysInput `json:"-" xml:"-"` +} + +type metadataDescribeVirtualGatewaysInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1687,10 +1460,14 @@ func (s DescribeVirtualGatewaysInput) GoString() string { // A structure containing a list of virtual private gateways. type DescribeVirtualGatewaysOutput struct { - _ struct{} `type:"structure"` - // A list of virtual private gateways. VirtualGateways []*VirtualGateway `locationName:"virtualGateways" type:"list"` + + metadataDescribeVirtualGatewaysOutput `json:"-" xml:"-"` +} + +type metadataDescribeVirtualGatewaysOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1705,8 +1482,6 @@ func (s DescribeVirtualGatewaysOutput) GoString() string { // Container for the parameters to the DescribeVirtualInterfaces operation. type DescribeVirtualInterfacesInput struct { - _ struct{} `type:"structure"` - // ID of the connection. // // Example: dxcon-fg5678gh @@ -1720,6 +1495,12 @@ type DescribeVirtualInterfacesInput struct { // // Default: None VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` + + metadataDescribeVirtualInterfacesInput `json:"-" xml:"-"` +} + +type metadataDescribeVirtualInterfacesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1734,10 +1515,14 @@ func (s DescribeVirtualInterfacesInput) GoString() string { // A structure containing a list of virtual interfaces. type DescribeVirtualInterfacesOutput struct { - _ struct{} `type:"structure"` - // A list of virtual interfaces. VirtualInterfaces []*VirtualInterface `locationName:"virtualInterfaces" type:"list"` + + metadataDescribeVirtualInterfacesOutput `json:"-" xml:"-"` +} + +type metadataDescribeVirtualInterfacesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1763,8 +1548,6 @@ func (s DescribeVirtualInterfacesOutput) GoString() string { // are shared by all of the hosted connections on the interconnect, and the // owner of the interconnect determines how these resources are assigned. type Interconnect struct { - _ struct{} `type:"structure"` - // Bandwidth of the connection. // // Example: 1Gbps @@ -1782,22 +1565,12 @@ type Interconnect struct { // Example: "1G Interconnect to AWS" InterconnectName *string `locationName:"interconnectName" type:"string"` - // State of the interconnect. - // - // Requested: The initial state of an interconnect. The interconnect stays - // in the requested state until the Letter of Authorization (LOA) is sent to - // the customer. - // - // Pending>: The interconnect has been approved, and is being initialized. - // - // Available: The network link is up, and the interconnect is ready for - // use. - // - // Down: The network link is down. - // - // Deleting: The interconnect is in the process of being deleted. - // - // Deleted: The interconnect has been deleted. + // State of the interconnect. Requested: The initial state of an interconnect. + // The interconnect stays in the requested state until the Letter of Authorization + // (LOA) is sent to the customer. Pending: The interconnect has been approved, + // and is being initialized. Available: The network link is up, and the interconnect + // is ready for use. Down: The network link is down. Deleted: The interconnect + // has been deleted. InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"` // Where the connection is located. @@ -1813,6 +1586,12 @@ type Interconnect struct { // // Default: None Region *string `locationName:"region" type:"string"` + + metadataInterconnect `json:"-" xml:"-"` +} + +type metadataInterconnect struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1828,14 +1607,18 @@ func (s Interconnect) GoString() string { // An AWS Direct Connect location where connections and interconnects can be // requested. type Location struct { - _ struct{} `type:"structure"` - // The code used to indicate the AWS Direct Connect location. LocationCode *string `locationName:"locationCode" type:"string"` // The name of the AWS Direct Connect location. The name includes the colocation // partner name and the physical site of the lit building. LocationName *string `locationName:"locationName" type:"string"` + + metadataLocation `json:"-" xml:"-"` +} + +type metadataLocation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1850,8 +1633,6 @@ func (s Location) GoString() string { // A structure containing information about a new private virtual interface. type NewPrivateVirtualInterface struct { - _ struct{} `type:"structure"` - // IP address assigned to the Amazon interface. // // Example: 192.168.1.1/30 @@ -1887,6 +1668,12 @@ type NewPrivateVirtualInterface struct { // // Example: 101 Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` + + metadataNewPrivateVirtualInterface `json:"-" xml:"-"` +} + +type metadataNewPrivateVirtualInterface struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1899,33 +1686,9 @@ func (s NewPrivateVirtualInterface) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *NewPrivateVirtualInterface) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "NewPrivateVirtualInterface"} - if s.Asn == nil { - invalidParams.Add(request.NewErrParamRequired("Asn")) - } - if s.VirtualGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualGatewayId")) - } - if s.VirtualInterfaceName == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) - } - if s.Vlan == nil { - invalidParams.Add(request.NewErrParamRequired("Vlan")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A structure containing information about a private virtual interface that // will be provisioned on a connection. type NewPrivateVirtualInterfaceAllocation struct { - _ struct{} `type:"structure"` - // IP address assigned to the Amazon interface. // // Example: 192.168.1.1/30 @@ -1955,6 +1718,12 @@ type NewPrivateVirtualInterfaceAllocation struct { // // Example: 101 Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` + + metadataNewPrivateVirtualInterfaceAllocation `json:"-" xml:"-"` +} + +type metadataNewPrivateVirtualInterfaceAllocation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1967,29 +1736,8 @@ func (s NewPrivateVirtualInterfaceAllocation) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *NewPrivateVirtualInterfaceAllocation) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "NewPrivateVirtualInterfaceAllocation"} - if s.Asn == nil { - invalidParams.Add(request.NewErrParamRequired("Asn")) - } - if s.VirtualInterfaceName == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) - } - if s.Vlan == nil { - invalidParams.Add(request.NewErrParamRequired("Vlan")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A structure containing information about a new public virtual interface. type NewPublicVirtualInterface struct { - _ struct{} `type:"structure"` - // IP address assigned to the Amazon interface. // // Example: 192.168.1.1/30 @@ -2011,7 +1759,7 @@ type NewPublicVirtualInterface struct { CustomerAddress *string `locationName:"customerAddress" type:"string" required:"true"` // A list of routes to be advertised to the AWS network in this region (public - // virtual interface). + // virtual interface) or your VPC (private virtual interface). RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list" required:"true"` // The name of the virtual interface assigned by the customer. @@ -2023,6 +1771,12 @@ type NewPublicVirtualInterface struct { // // Example: 101 Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` + + metadataNewPublicVirtualInterface `json:"-" xml:"-"` +} + +type metadataNewPublicVirtualInterface struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2035,39 +1789,9 @@ func (s NewPublicVirtualInterface) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *NewPublicVirtualInterface) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "NewPublicVirtualInterface"} - if s.AmazonAddress == nil { - invalidParams.Add(request.NewErrParamRequired("AmazonAddress")) - } - if s.Asn == nil { - invalidParams.Add(request.NewErrParamRequired("Asn")) - } - if s.CustomerAddress == nil { - invalidParams.Add(request.NewErrParamRequired("CustomerAddress")) - } - if s.RouteFilterPrefixes == nil { - invalidParams.Add(request.NewErrParamRequired("RouteFilterPrefixes")) - } - if s.VirtualInterfaceName == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) - } - if s.Vlan == nil { - invalidParams.Add(request.NewErrParamRequired("Vlan")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A structure containing information about a public virtual interface that // will be provisioned on a connection. type NewPublicVirtualInterfaceAllocation struct { - _ struct{} `type:"structure"` - // IP address assigned to the Amazon interface. // // Example: 192.168.1.1/30 @@ -2089,7 +1813,7 @@ type NewPublicVirtualInterfaceAllocation struct { CustomerAddress *string `locationName:"customerAddress" type:"string" required:"true"` // A list of routes to be advertised to the AWS network in this region (public - // virtual interface). + // virtual interface) or your VPC (private virtual interface). RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list" required:"true"` // The name of the virtual interface assigned by the customer. @@ -2101,6 +1825,12 @@ type NewPublicVirtualInterfaceAllocation struct { // // Example: 101 Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` + + metadataNewPublicVirtualInterfaceAllocation `json:"-" xml:"-"` +} + +type metadataNewPublicVirtualInterfaceAllocation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2113,44 +1843,20 @@ func (s NewPublicVirtualInterfaceAllocation) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *NewPublicVirtualInterfaceAllocation) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "NewPublicVirtualInterfaceAllocation"} - if s.AmazonAddress == nil { - invalidParams.Add(request.NewErrParamRequired("AmazonAddress")) - } - if s.Asn == nil { - invalidParams.Add(request.NewErrParamRequired("Asn")) - } - if s.CustomerAddress == nil { - invalidParams.Add(request.NewErrParamRequired("CustomerAddress")) - } - if s.RouteFilterPrefixes == nil { - invalidParams.Add(request.NewErrParamRequired("RouteFilterPrefixes")) - } - if s.VirtualInterfaceName == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName")) - } - if s.Vlan == nil { - invalidParams.Add(request.NewErrParamRequired("Vlan")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A route filter prefix that the customer can advertise through Border Gateway // Protocol (BGP) over a public virtual interface. type RouteFilterPrefix struct { - _ struct{} `type:"structure"` - // CIDR notation for the advertised route. Multiple routes are separated by // commas. // // Example: 10.10.10.0/24,10.10.11.0/24 Cidr *string `locationName:"cidr" type:"string"` + + metadataRouteFilterPrefix `json:"-" xml:"-"` +} + +type metadataRouteFilterPrefix struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2169,25 +1875,24 @@ func (s RouteFilterPrefix) GoString() string { // Virtual private gateways can be managed using the Amazon Virtual Private // Cloud (Amazon VPC) console or the Amazon EC2 CreateVpnGateway action (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html). type VirtualGateway struct { - _ struct{} `type:"structure"` - // The ID of the virtual private gateway to a VPC. This only applies to private // virtual interfaces. // // Example: vgw-123er56 VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"` - // State of the virtual private gateway. - // - // Pending: This is the initial state after calling CreateVpnGateway. - // - // Available: Ready for use by a private virtual interface. - // - // Deleting: This is the initial state after calling DeleteVpnGateway. - // - // Deleted: In this state, a private virtual interface is unable to send - // traffic over this gateway. + // State of the virtual private gateway. Pending: This is the initial state + // after calling CreateVpnGateway. Available: Ready for use by a private virtual + // interface. Deleting: This is the initial state after calling DeleteVpnGateway. + // Deleted: In this state, a private virtual interface is unable to send traffic + // over this gateway. VirtualGatewayState *string `locationName:"virtualGatewayState" type:"string"` + + metadataVirtualGateway `json:"-" xml:"-"` +} + +type metadataVirtualGateway struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2203,8 +1908,6 @@ func (s VirtualGateway) GoString() string { // A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect // location and the customer. type VirtualInterface struct { - _ struct{} `type:"structure"` - // IP address assigned to the Amazon interface. // // Example: 192.168.1.1/30 @@ -2242,11 +1945,10 @@ type VirtualInterface struct { // Default: None Location *string `locationName:"location" type:"string"` - // The AWS account that will own the new virtual interface. OwnerAccount *string `locationName:"ownerAccount" type:"string"` // A list of routes to be advertised to the AWS network in this region (public - // virtual interface). + // virtual interface) or your VPC (private virtual interface). RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list"` // The ID of the virtual private gateway to a VPC. This only applies to private @@ -2267,34 +1969,22 @@ type VirtualInterface struct { // Example: "My VPC" VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string"` - // State of the virtual interface. - // - // Confirming: The creation of the virtual interface is pending confirmation - // from the virtual interface owner. If the owner of the virtual interface is - // different from the owner of the connection on which it is provisioned, then - // the virtual interface will remain in this state until it is confirmed by - // the virtual interface owner. - // - // Verifying: This state only applies to public virtual interfaces. Each - // public virtual interface needs validation before the virtual interface can - // be created. - // - // Pending: A virtual interface is in this state from the time that it is - // created until the virtual interface is ready to forward traffic. - // - // Available: A virtual interface that is able to forward traffic. - // - // Down: A virtual interface that is BGP down. - // - // Deleting: A virtual interface is in this state immediately after calling - // DeleteVirtualInterface until it can no longer forward traffic. - // - // Deleted: A virtual interface that cannot forward traffic. - // - // Rejected: The virtual interface owner has declined creation of the virtual - // interface. If a virtual interface in the 'Confirming' state is deleted by - // the virtual interface owner, the virtual interface will enter the 'Rejected' - // state. + // State of the virtual interface. Confirming: The creation of the virtual + // interface is pending confirmation from the virtual interface owner. If the + // owner of the virtual interface is different from the owner of the connection + // on which it is provisioned, then the virtual interface will remain in this + // state until it is confirmed by the virtual interface owner. Verifying: This + // state only applies to public virtual interfaces. Each public virtual interface + // needs validation before the virtual interface can be created. Pending: A + // virtual interface is in this state from the time that it is created until + // the virtual interface is ready to forward traffic. Available: A virtual + // interface that is able to forward traffic. Deleting: A virtual interface + // is in this state immediately after calling DeleteVirtualInterface until it + // can no longer forward traffic. Deleted: A virtual interface that cannot + // forward traffic. Rejected: The virtual interface owner has declined creation + // of the virtual interface. If a virtual interface in the 'Confirming' state + // is deleted by the virtual interface owner, the virtual interface will enter + // the 'Rejected' state. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` // The type of virtual interface. @@ -2307,6 +1997,12 @@ type VirtualInterface struct { // // Example: 101 Vlan *int64 `locationName:"vlan" type:"integer"` + + metadataVirtualInterface `json:"-" xml:"-"` +} + +type metadataVirtualInterface struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2319,28 +2015,16 @@ func (s VirtualInterface) GoString() string { return s.String() } -// State of the connection. -// -// Ordering: The initial state of a hosted connection provisioned on an -// interconnect. The connection stays in the ordering state until the owner -// of the hosted connection confirms or declines the connection order. -// -// Requested: The initial state of a standard connection. The connection +// State of the connection. Ordering: The initial state of a hosted connection +// provisioned on an interconnect. The connection stays in the ordering state +// until the owner of the hosted connection confirms or declines the connection +// order. Requested: The initial state of a standard connection. The connection // stays in the requested state until the Letter of Authorization (LOA) is sent -// to the customer. -// -// Pending: The connection has been approved, and is being initialized. -// -// Available: The network link is up, and the connection is ready for use. -// -// Down: The network link is down. -// -// Deleting: The connection is in the process of being deleted. -// -// Deleted: The connection has been deleted. -// -// Rejected: A hosted connection in the 'Ordering' state will enter the -// 'Rejected' state if it is deleted by the end customer. +// to the customer. Pending: The connection has been approved, and is being +// initialized. Available: The network link is up, and the connection is ready +// for use. Down: The network link is down. Deleted: The connection has been +// deleted. Rejected: A hosted connection in the 'Ordering' state will enter +// the 'Rejected' state if it is deleted by the end customer. const ( // @enum ConnectionState ConnectionStateOrdering = "ordering" @@ -2360,22 +2044,12 @@ const ( ConnectionStateRejected = "rejected" ) -// State of the interconnect. -// -// Requested: The initial state of an interconnect. The interconnect stays -// in the requested state until the Letter of Authorization (LOA) is sent to -// the customer. -// -// Pending>: The interconnect has been approved, and is being initialized. -// -// Available: The network link is up, and the interconnect is ready for -// use. -// -// Down: The network link is down. -// -// Deleting: The interconnect is in the process of being deleted. -// -// Deleted: The interconnect has been deleted. +// State of the interconnect. Requested: The initial state of an interconnect. +// The interconnect stays in the requested state until the Letter of Authorization +// (LOA) is sent to the customer. Pending: The interconnect has been approved, +// and is being initialized. Available: The network link is up, and the interconnect +// is ready for use. Down: The network link is down. Deleted: The interconnect +// has been deleted. const ( // @enum InterconnectState InterconnectStateRequested = "requested" @@ -2391,34 +2065,22 @@ const ( InterconnectStateDeleted = "deleted" ) -// State of the virtual interface. -// -// Confirming: The creation of the virtual interface is pending confirmation -// from the virtual interface owner. If the owner of the virtual interface is -// different from the owner of the connection on which it is provisioned, then -// the virtual interface will remain in this state until it is confirmed by -// the virtual interface owner. -// -// Verifying: This state only applies to public virtual interfaces. Each -// public virtual interface needs validation before the virtual interface can -// be created. -// -// Pending: A virtual interface is in this state from the time that it is -// created until the virtual interface is ready to forward traffic. -// -// Available: A virtual interface that is able to forward traffic. -// -// Down: A virtual interface that is BGP down. -// -// Deleting: A virtual interface is in this state immediately after calling -// DeleteVirtualInterface until it can no longer forward traffic. -// -// Deleted: A virtual interface that cannot forward traffic. -// -// Rejected: The virtual interface owner has declined creation of the virtual -// interface. If a virtual interface in the 'Confirming' state is deleted by -// the virtual interface owner, the virtual interface will enter the 'Rejected' -// state. +// State of the virtual interface. Confirming: The creation of the virtual +// interface is pending confirmation from the virtual interface owner. If the +// owner of the virtual interface is different from the owner of the connection +// on which it is provisioned, then the virtual interface will remain in this +// state until it is confirmed by the virtual interface owner. Verifying: This +// state only applies to public virtual interfaces. Each public virtual interface +// needs validation before the virtual interface can be created. Pending: A +// virtual interface is in this state from the time that it is created until +// the virtual interface is ready to forward traffic. Available: A virtual +// interface that is able to forward traffic. Deleting: A virtual interface +// is in this state immediately after calling DeleteVirtualInterface until it +// can no longer forward traffic. Deleted: A virtual interface that cannot +// forward traffic. Rejected: The virtual interface owner has declined creation +// of the virtual interface. If a virtual interface in the 'Confirming' state +// is deleted by the virtual interface owner, the virtual interface will enter +// the 'Rejected' state. const ( // @enum VirtualInterfaceState VirtualInterfaceStateConfirming = "confirming" diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go index 566d58995..cc1f5a562 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface.go @@ -86,5 +86,3 @@ type DirectConnectAPI interface { DescribeVirtualInterfaces(*directconnect.DescribeVirtualInterfacesInput) (*directconnect.DescribeVirtualInterfacesOutput, error) } - -var _ DirectConnectAPI = (*directconnect.DirectConnect)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface_test.go new file mode 100644 index 000000000..277914609 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package directconnectiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/directconnect" + "github.com/aws/aws-sdk-go/service/directconnect/directconnectiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*directconnectiface.DirectConnectAPI)(nil), directconnect.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go index bc8d9848f..a86643922 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/directconnect" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDirectConnect_AllocateConnectionOnInterconnect() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.AllocateConnectionOnInterconnectInput{ Bandwidth: aws.String("Bandwidth"), // Required @@ -39,7 +38,7 @@ func ExampleDirectConnect_AllocateConnectionOnInterconnect() { } func ExampleDirectConnect_AllocatePrivateVirtualInterface() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.AllocatePrivateVirtualInterfaceInput{ ConnectionId: aws.String("ConnectionId"), // Required @@ -67,7 +66,7 @@ func ExampleDirectConnect_AllocatePrivateVirtualInterface() { } func ExampleDirectConnect_AllocatePublicVirtualInterface() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.AllocatePublicVirtualInterfaceInput{ ConnectionId: aws.String("ConnectionId"), // Required @@ -101,7 +100,7 @@ func ExampleDirectConnect_AllocatePublicVirtualInterface() { } func ExampleDirectConnect_ConfirmConnection() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.ConfirmConnectionInput{ ConnectionId: aws.String("ConnectionId"), // Required @@ -120,7 +119,7 @@ func ExampleDirectConnect_ConfirmConnection() { } func ExampleDirectConnect_ConfirmPrivateVirtualInterface() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.ConfirmPrivateVirtualInterfaceInput{ VirtualGatewayId: aws.String("VirtualGatewayId"), // Required @@ -140,7 +139,7 @@ func ExampleDirectConnect_ConfirmPrivateVirtualInterface() { } func ExampleDirectConnect_ConfirmPublicVirtualInterface() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.ConfirmPublicVirtualInterfaceInput{ VirtualInterfaceId: aws.String("VirtualInterfaceId"), // Required @@ -159,7 +158,7 @@ func ExampleDirectConnect_ConfirmPublicVirtualInterface() { } func ExampleDirectConnect_CreateConnection() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.CreateConnectionInput{ Bandwidth: aws.String("Bandwidth"), // Required @@ -180,7 +179,7 @@ func ExampleDirectConnect_CreateConnection() { } func ExampleDirectConnect_CreateInterconnect() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.CreateInterconnectInput{ Bandwidth: aws.String("Bandwidth"), // Required @@ -201,7 +200,7 @@ func ExampleDirectConnect_CreateInterconnect() { } func ExampleDirectConnect_CreatePrivateVirtualInterface() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.CreatePrivateVirtualInterfaceInput{ ConnectionId: aws.String("ConnectionId"), // Required @@ -229,7 +228,7 @@ func ExampleDirectConnect_CreatePrivateVirtualInterface() { } func ExampleDirectConnect_CreatePublicVirtualInterface() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.CreatePublicVirtualInterfaceInput{ ConnectionId: aws.String("ConnectionId"), // Required @@ -262,7 +261,7 @@ func ExampleDirectConnect_CreatePublicVirtualInterface() { } func ExampleDirectConnect_DeleteConnection() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.DeleteConnectionInput{ ConnectionId: aws.String("ConnectionId"), // Required @@ -281,7 +280,7 @@ func ExampleDirectConnect_DeleteConnection() { } func ExampleDirectConnect_DeleteInterconnect() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.DeleteInterconnectInput{ InterconnectId: aws.String("InterconnectId"), // Required @@ -300,7 +299,7 @@ func ExampleDirectConnect_DeleteInterconnect() { } func ExampleDirectConnect_DeleteVirtualInterface() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.DeleteVirtualInterfaceInput{ VirtualInterfaceId: aws.String("VirtualInterfaceId"), // Required @@ -319,7 +318,7 @@ func ExampleDirectConnect_DeleteVirtualInterface() { } func ExampleDirectConnect_DescribeConnections() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.DescribeConnectionsInput{ ConnectionId: aws.String("ConnectionId"), @@ -338,7 +337,7 @@ func ExampleDirectConnect_DescribeConnections() { } func ExampleDirectConnect_DescribeConnectionsOnInterconnect() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.DescribeConnectionsOnInterconnectInput{ InterconnectId: aws.String("InterconnectId"), // Required @@ -357,7 +356,7 @@ func ExampleDirectConnect_DescribeConnectionsOnInterconnect() { } func ExampleDirectConnect_DescribeInterconnects() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.DescribeInterconnectsInput{ InterconnectId: aws.String("InterconnectId"), @@ -376,7 +375,7 @@ func ExampleDirectConnect_DescribeInterconnects() { } func ExampleDirectConnect_DescribeLocations() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) var params *directconnect.DescribeLocationsInput resp, err := svc.DescribeLocations(params) @@ -393,7 +392,7 @@ func ExampleDirectConnect_DescribeLocations() { } func ExampleDirectConnect_DescribeVirtualGateways() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) var params *directconnect.DescribeVirtualGatewaysInput resp, err := svc.DescribeVirtualGateways(params) @@ -410,7 +409,7 @@ func ExampleDirectConnect_DescribeVirtualGateways() { } func ExampleDirectConnect_DescribeVirtualInterfaces() { - svc := directconnect.New(session.New()) + svc := directconnect.New(nil) params := &directconnect.DescribeVirtualInterfacesInput{ ConnectionId: aws.String("ConnectionId"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/service.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/service.go index 553218ab6..1ab9594b3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/service.go @@ -4,85 +4,67 @@ package directconnect import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -// AWS Direct Connect links your internal network to an AWS Direct Connect location -// over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end -// of the cable is connected to your router, the other to an AWS Direct Connect -// router. With this connection in place, you can create virtual interfaces -// directly to the AWS cloud (for example, to Amazon Elastic Compute Cloud (Amazon -// EC2) and Amazon Simple Storage Service (Amazon S3)) and to Amazon Virtual -// Private Cloud (Amazon VPC), bypassing Internet service providers in your -// network path. An AWS Direct Connect location provides access to AWS in the -// region it is associated with, as well as access to other US regions. For -// example, you can provision a single connection to any AWS Direct Connect -// location in the US and use it to access public AWS services in all US Regions -// and AWS GovCloud (US). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// AWS Direct Connect makes it easy to establish a dedicated network connection +// from your premises to Amazon Web Services (AWS). Using AWS Direct Connect, +// you can establish private connectivity between AWS and your data center, +// office, or colocation environment, which in many cases can reduce your network +// costs, increase bandwidth throughput, and provide a more consistent network +// experience than Internet-based connections. +// +// The AWS Direct Connect API Reference provides descriptions, syntax, and +// usage examples for each of the actions and data types for AWS Direct Connect. +// Use the following links to get started using the AWS Direct Connect API Reference: +// +// Actions (http://docs.aws.amazon.com/directconnect/latest/APIReference/API_Operations.html): +// An alphabetical list of all AWS Direct Connect actions. Data Types (http://docs.aws.amazon.com/directconnect/latest/APIReference/API_Types.html): +// An alphabetical list of all AWS Direct Connect data types. Common Query +// Parameters (http://docs.aws.amazon.com/directconnect/latest/APIReference/CommonParameters.html): +// Parameters that all Query actions can use. Common Errors (http://docs.aws.amazon.com/directconnect/latest/APIReference/CommonErrors.html): +// Client and server errors that all actions can return. type DirectConnect struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "directconnect" - -// New creates a new instance of the DirectConnect client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a DirectConnect client from just a session. -// svc := directconnect.New(mySession) -// -// // Create a DirectConnect client with additional configuration -// svc := directconnect.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *DirectConnect { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DirectConnect { - svc := &DirectConnect{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2012-10-25", - JSONVersion: "1.1", - TargetPrefix: "OvertureService", - }, - handlers, - ), +// New returns a new DirectConnect client. +func New(config *aws.Config) *DirectConnect { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "directconnect", + APIVersion: "2012-10-25", + JSONVersion: "1.1", + TargetPrefix: "OvertureService", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &DirectConnect{service} } // newRequest creates a new request for a DirectConnect operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go index 8c3b4251c..b9fbf423d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go @@ -4,7 +4,6 @@ package directoryservice import ( - "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -31,7 +30,7 @@ func (c *DirectoryService) ConnectDirectoryRequest(input *ConnectDirectoryInput) return } -// Creates an AD Connector to connect to an on-premises directory. +// Creates an AD Connector to connect an on-premises directory. func (c *DirectoryService) ConnectDirectory(input *ConnectDirectoryInput) (*ConnectDirectoryOutput, error) { req, out := c.ConnectDirectoryRequest(input) err := req.Send() @@ -60,7 +59,7 @@ func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) (req *req // Creates an alias for a directory and assigns the alias to the directory. // The alias is used to construct the access URL for the directory, such as -// http://alias.awsapps.com. +// http://.awsapps.com. // // After an alias has been created, it cannot be deleted or reused, so this // operation should only be used when absolutely necessary. @@ -98,35 +97,6 @@ func (c *DirectoryService) CreateComputer(input *CreateComputerInput) (*CreateCo return out, err } -const opCreateConditionalForwarder = "CreateConditionalForwarder" - -// CreateConditionalForwarderRequest generates a request for the CreateConditionalForwarder operation. -func (c *DirectoryService) CreateConditionalForwarderRequest(input *CreateConditionalForwarderInput) (req *request.Request, output *CreateConditionalForwarderOutput) { - op := &request.Operation{ - Name: opCreateConditionalForwarder, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateConditionalForwarderInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateConditionalForwarderOutput{} - req.Data = output - return -} - -// Creates a conditional forwarder associated with your AWS directory. Conditional -// forwarders are required in order to set up a trust relationship with another -// domain. The conditional forwarder points to the trusted domain. -func (c *DirectoryService) CreateConditionalForwarder(input *CreateConditionalForwarderInput) (*CreateConditionalForwarderOutput, error) { - req, out := c.CreateConditionalForwarderRequest(input) - err := req.Send() - return out, err -} - const opCreateDirectory = "CreateDirectory" // CreateDirectoryRequest generates a request for the CreateDirectory operation. @@ -154,33 +124,6 @@ func (c *DirectoryService) CreateDirectory(input *CreateDirectoryInput) (*Create return out, err } -const opCreateMicrosoftAD = "CreateMicrosoftAD" - -// CreateMicrosoftADRequest generates a request for the CreateMicrosoftAD operation. -func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInput) (req *request.Request, output *CreateMicrosoftADOutput) { - op := &request.Operation{ - Name: opCreateMicrosoftAD, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateMicrosoftADInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateMicrosoftADOutput{} - req.Data = output - return -} - -// Creates a Microsoft AD in the AWS cloud. -func (c *DirectoryService) CreateMicrosoftAD(input *CreateMicrosoftADInput) (*CreateMicrosoftADOutput, error) { - req, out := c.CreateMicrosoftADRequest(input) - err := req.Send() - return out, err -} - const opCreateSnapshot = "CreateSnapshot" // CreateSnapshotRequest generates a request for the CreateSnapshot operation. @@ -201,76 +144,15 @@ func (c *DirectoryService) CreateSnapshotRequest(input *CreateSnapshotInput) (re return } -// Creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud. +// Creates a snapshot of an existing directory. // -// You cannot take snapshots of AD Connector directories. +// You cannot take snapshots of extended or connected directories. func (c *DirectoryService) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() return out, err } -const opCreateTrust = "CreateTrust" - -// CreateTrustRequest generates a request for the CreateTrust operation. -func (c *DirectoryService) CreateTrustRequest(input *CreateTrustInput) (req *request.Request, output *CreateTrustOutput) { - op := &request.Operation{ - Name: opCreateTrust, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateTrustInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateTrustOutput{} - req.Data = output - return -} - -// AWS Directory Service for Microsoft Active Directory allows you to configure -// trust relationships. For example, you can establish a trust between your -// Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active -// Directory. This would allow you to provide users and groups access to resources -// in either domain, with a single set of credentials. -// -// This action initiates the creation of the AWS side of a trust relationship -// between a Microsoft AD in the AWS cloud and an external domain. -func (c *DirectoryService) CreateTrust(input *CreateTrustInput) (*CreateTrustOutput, error) { - req, out := c.CreateTrustRequest(input) - err := req.Send() - return out, err -} - -const opDeleteConditionalForwarder = "DeleteConditionalForwarder" - -// DeleteConditionalForwarderRequest generates a request for the DeleteConditionalForwarder operation. -func (c *DirectoryService) DeleteConditionalForwarderRequest(input *DeleteConditionalForwarderInput) (req *request.Request, output *DeleteConditionalForwarderOutput) { - op := &request.Operation{ - Name: opDeleteConditionalForwarder, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteConditionalForwarderInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteConditionalForwarderOutput{} - req.Data = output - return -} - -// Deletes a conditional forwarder that has been set up for your AWS directory. -func (c *DirectoryService) DeleteConditionalForwarder(input *DeleteConditionalForwarderInput) (*DeleteConditionalForwarderOutput, error) { - req, out := c.DeleteConditionalForwarderRequest(input) - err := req.Send() - return out, err -} - const opDeleteDirectory = "DeleteDirectory" // DeleteDirectoryRequest generates a request for the DeleteDirectory operation. @@ -325,91 +207,6 @@ func (c *DirectoryService) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSn return out, err } -const opDeleteTrust = "DeleteTrust" - -// DeleteTrustRequest generates a request for the DeleteTrust operation. -func (c *DirectoryService) DeleteTrustRequest(input *DeleteTrustInput) (req *request.Request, output *DeleteTrustOutput) { - op := &request.Operation{ - Name: opDeleteTrust, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteTrustInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteTrustOutput{} - req.Data = output - return -} - -// Deletes an existing trust relationship between your Microsoft AD in the AWS -// cloud and an external domain. -func (c *DirectoryService) DeleteTrust(input *DeleteTrustInput) (*DeleteTrustOutput, error) { - req, out := c.DeleteTrustRequest(input) - err := req.Send() - return out, err -} - -const opDeregisterEventTopic = "DeregisterEventTopic" - -// DeregisterEventTopicRequest generates a request for the DeregisterEventTopic operation. -func (c *DirectoryService) DeregisterEventTopicRequest(input *DeregisterEventTopicInput) (req *request.Request, output *DeregisterEventTopicOutput) { - op := &request.Operation{ - Name: opDeregisterEventTopic, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeregisterEventTopicInput{} - } - - req = c.newRequest(op, input, output) - output = &DeregisterEventTopicOutput{} - req.Data = output - return -} - -// Removes the specified directory as a publisher to the specified SNS topic. -func (c *DirectoryService) DeregisterEventTopic(input *DeregisterEventTopicInput) (*DeregisterEventTopicOutput, error) { - req, out := c.DeregisterEventTopicRequest(input) - err := req.Send() - return out, err -} - -const opDescribeConditionalForwarders = "DescribeConditionalForwarders" - -// DescribeConditionalForwardersRequest generates a request for the DescribeConditionalForwarders operation. -func (c *DirectoryService) DescribeConditionalForwardersRequest(input *DescribeConditionalForwardersInput) (req *request.Request, output *DescribeConditionalForwardersOutput) { - op := &request.Operation{ - Name: opDescribeConditionalForwarders, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeConditionalForwardersInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeConditionalForwardersOutput{} - req.Data = output - return -} - -// Obtains information about the conditional forwarders for this account. -// -// If no input parameters are provided for RemoteDomainNames, this request -// describes all conditional forwarders for the specified directory ID. -func (c *DirectoryService) DescribeConditionalForwarders(input *DescribeConditionalForwardersInput) (*DescribeConditionalForwardersOutput, error) { - req, out := c.DescribeConditionalForwardersRequest(input) - err := req.Send() - return out, err -} - const opDescribeDirectories = "DescribeDirectories" // DescribeDirectoriesRequest generates a request for the DescribeDirectories operation. @@ -448,37 +245,6 @@ func (c *DirectoryService) DescribeDirectories(input *DescribeDirectoriesInput) return out, err } -const opDescribeEventTopics = "DescribeEventTopics" - -// DescribeEventTopicsRequest generates a request for the DescribeEventTopics operation. -func (c *DirectoryService) DescribeEventTopicsRequest(input *DescribeEventTopicsInput) (req *request.Request, output *DescribeEventTopicsOutput) { - op := &request.Operation{ - Name: opDescribeEventTopics, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeEventTopicsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeEventTopicsOutput{} - req.Data = output - return -} - -// Obtains information about which SNS topics receive status messages from the -// specified directory. -// -// If no input parameters are provided, such as DirectoryId or TopicName, this -// request describes all of the associations in the account. -func (c *DirectoryService) DescribeEventTopics(input *DescribeEventTopicsInput) (*DescribeEventTopicsOutput, error) { - req, out := c.DescribeEventTopicsRequest(input) - err := req.Send() - return out, err -} - const opDescribeSnapshots = "DescribeSnapshots" // DescribeSnapshotsRequest generates a request for the DescribeSnapshots operation. @@ -513,36 +279,6 @@ func (c *DirectoryService) DescribeSnapshots(input *DescribeSnapshotsInput) (*De return out, err } -const opDescribeTrusts = "DescribeTrusts" - -// DescribeTrustsRequest generates a request for the DescribeTrusts operation. -func (c *DirectoryService) DescribeTrustsRequest(input *DescribeTrustsInput) (req *request.Request, output *DescribeTrustsOutput) { - op := &request.Operation{ - Name: opDescribeTrusts, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeTrustsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeTrustsOutput{} - req.Data = output - return -} - -// Obtains information about the trust relationships for this account. -// -// If no input parameters are provided, such as DirectoryId or TrustIds, this -// request describes all the trust relationships belonging to the account. -func (c *DirectoryService) DescribeTrusts(input *DescribeTrustsInput) (*DescribeTrustsOutput, error) { - req, out := c.DescribeTrustsRequest(input) - err := req.Send() - return out, err -} - const opDisableRadius = "DisableRadius" // DisableRadiusRequest generates a request for the DisableRadius operation. @@ -563,8 +299,8 @@ func (c *DirectoryService) DisableRadiusRequest(input *DisableRadiusInput) (req return } -// Disables multi-factor authentication (MFA) with the Remote Authentication -// Dial In User Service (RADIUS) server for an AD Connector directory. +// Disables multi-factor authentication (MFA) with Remote Authentication Dial +// In User Service (RADIUS) for an AD Connector directory. func (c *DirectoryService) DisableRadius(input *DisableRadiusInput) (*DisableRadiusOutput, error) { req, out := c.DisableRadiusRequest(input) err := req.Send() @@ -618,8 +354,8 @@ func (c *DirectoryService) EnableRadiusRequest(input *EnableRadiusInput) (req *r return } -// Enables multi-factor authentication (MFA) with the Remote Authentication -// Dial In User Service (RADIUS) server for an AD Connector directory. +// Enables multi-factor authentication (MFA) with Remote Authentication Dial +// In User Service (RADIUS) for an AD Connector directory. func (c *DirectoryService) EnableRadius(input *EnableRadiusInput) (*EnableRadiusOutput, error) { req, out := c.EnableRadiusRequest(input) err := req.Send() @@ -707,38 +443,6 @@ func (c *DirectoryService) GetSnapshotLimits(input *GetSnapshotLimitsInput) (*Ge return out, err } -const opRegisterEventTopic = "RegisterEventTopic" - -// RegisterEventTopicRequest generates a request for the RegisterEventTopic operation. -func (c *DirectoryService) RegisterEventTopicRequest(input *RegisterEventTopicInput) (req *request.Request, output *RegisterEventTopicOutput) { - op := &request.Operation{ - Name: opRegisterEventTopic, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RegisterEventTopicInput{} - } - - req = c.newRequest(op, input, output) - output = &RegisterEventTopicOutput{} - req.Data = output - return -} - -// Associates a directory with an SNS topic. This establishes the directory -// as a publisher to the specified SNS topic. You can then receive email or -// text (SMS) messages when the status of your directory changes. You get notified -// if your directory goes from an Active status to an Impaired or Inoperable -// status. You also receive a notification when the directory returns to an -// Active status. -func (c *DirectoryService) RegisterEventTopic(input *RegisterEventTopicInput) (*RegisterEventTopicOutput, error) { - req, out := c.RegisterEventTopicRequest(input) - err := req.Send() - return out, err -} - const opRestoreFromSnapshot = "RestoreFromSnapshot" // RestoreFromSnapshotRequest generates a request for the RestoreFromSnapshot operation. @@ -774,33 +478,6 @@ func (c *DirectoryService) RestoreFromSnapshot(input *RestoreFromSnapshotInput) return out, err } -const opUpdateConditionalForwarder = "UpdateConditionalForwarder" - -// UpdateConditionalForwarderRequest generates a request for the UpdateConditionalForwarder operation. -func (c *DirectoryService) UpdateConditionalForwarderRequest(input *UpdateConditionalForwarderInput) (req *request.Request, output *UpdateConditionalForwarderOutput) { - op := &request.Operation{ - Name: opUpdateConditionalForwarder, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateConditionalForwarderInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateConditionalForwarderOutput{} - req.Data = output - return -} - -// Updates a conditional forwarder that has been set up for your AWS directory. -func (c *DirectoryService) UpdateConditionalForwarder(input *UpdateConditionalForwarderInput) (*UpdateConditionalForwarderOutput, error) { - req, out := c.UpdateConditionalForwarderRequest(input) - err := req.Send() - return out, err -} - const opUpdateRadius = "UpdateRadius" // UpdateRadiusRequest generates a request for the UpdateRadius operation. @@ -829,46 +506,19 @@ func (c *DirectoryService) UpdateRadius(input *UpdateRadiusInput) (*UpdateRadius return out, err } -const opVerifyTrust = "VerifyTrust" - -// VerifyTrustRequest generates a request for the VerifyTrust operation. -func (c *DirectoryService) VerifyTrustRequest(input *VerifyTrustInput) (req *request.Request, output *VerifyTrustOutput) { - op := &request.Operation{ - Name: opVerifyTrust, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &VerifyTrustInput{} - } - - req = c.newRequest(op, input, output) - output = &VerifyTrustOutput{} - req.Data = output - return -} - -// AWS Directory Service for Microsoft Active Directory allows you to configure -// and verify trust relationships. -// -// This action verifies a trust relationship between your Microsoft AD in the -// AWS cloud and an external domain. -func (c *DirectoryService) VerifyTrust(input *VerifyTrustInput) (*VerifyTrustOutput, error) { - req, out := c.VerifyTrustRequest(input) - err := req.Send() - return out, err -} - // Represents a named directory attribute. type Attribute struct { - _ struct{} `type:"structure"` - // The name of the attribute. - Name *string `min:"1" type:"string"` + Name *string `type:"string"` // The value of the attribute. Value *string `type:"string"` + + metadataAttribute `json:"-" xml:"-"` +} + +type metadataAttribute struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -881,79 +531,37 @@ func (s Attribute) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Attribute) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Attribute"} - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains information about a computer account in a directory. type Computer struct { - _ struct{} `type:"structure"` - - // An array of Attribute objects containing the LDAP attributes that belong + // An array of Attribute objects that contain the LDAP attributes that belong // to the computer account. ComputerAttributes []*Attribute `type:"list"` // The identifier of the computer. - ComputerId *string `min:"1" type:"string"` + ComputerId *string `type:"string"` // The computer name. - ComputerName *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s Computer) String() string { - return awsutil.Prettify(s) -} + ComputerName *string `type:"string"` -// GoString returns the string representation -func (s Computer) GoString() string { - return s.String() + metadataComputer `json:"-" xml:"-"` } -// Points to a remote domain with which you are setting up a trust relationship. -// Conditional forwarders are required in order to set up a trust relationship -// with another domain. -type ConditionalForwarder struct { - _ struct{} `type:"structure"` - - // The IP addresses of the remote DNS server associated with RemoteDomainName. - // This is the IP address of the DNS server that your conditional forwarder - // points to. - DnsIpAddrs []*string `type:"list"` - - // The fully qualified domain name (FQDN) of the remote domains pointed to by - // the conditional forwarder. - RemoteDomainName *string `type:"string"` - - // The replication scope of the conditional forwarder. The only allowed value - // is Domain, which will replicate the conditional forwarder to all of the domain - // controllers for your AWS directory. - ReplicationScope *string `type:"string" enum:"ReplicationScope"` +type metadataComputer struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ConditionalForwarder) String() string { +func (s Computer) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConditionalForwarder) GoString() string { +func (s Computer) GoString() string { return s.String() } // Contains the inputs for the ConnectDirectory operation. type ConnectDirectoryInput struct { - _ struct{} `type:"structure"` - // A DirectoryConnectSettings object that contains additional information for // the operation. ConnectSettings *DirectoryConnectSettings `type:"structure" required:"true"` @@ -965,13 +573,19 @@ type ConnectDirectoryInput struct { Name *string `type:"string" required:"true"` // The password for the on-premises user account. - Password *string `min:"1" type:"string" required:"true"` + Password *string `type:"string" required:"true"` // The NetBIOS name of the on-premises directory, such as CORP. ShortName *string `type:"string"` // The size of the directory. Size *string `type:"string" required:"true" enum:"DirectorySize"` + + metadataConnectDirectoryInput `json:"-" xml:"-"` +} + +type metadataConnectDirectoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -984,42 +598,16 @@ func (s ConnectDirectoryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConnectDirectoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConnectDirectoryInput"} - if s.ConnectSettings == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectSettings")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Password != nil && len(*s.Password) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Password", 1)) - } - if s.Size == nil { - invalidParams.Add(request.NewErrParamRequired("Size")) - } - if s.ConnectSettings != nil { - if err := s.ConnectSettings.Validate(); err != nil { - invalidParams.AddNested("ConnectSettings", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the ConnectDirectory operation. type ConnectDirectoryOutput struct { - _ struct{} `type:"structure"` - // The identifier of the new directory. DirectoryId *string `type:"string"` + + metadataConnectDirectoryOutput `json:"-" xml:"-"` +} + +type metadataConnectDirectoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1034,16 +622,20 @@ func (s ConnectDirectoryOutput) GoString() string { // Contains the inputs for the CreateAlias operation. type CreateAliasInput struct { - _ struct{} `type:"structure"` - // The requested alias. // - // The alias must be unique amongst all aliases in AWS. This operation throws - // an EntityAlreadyExistsException error if the alias already exists. - Alias *string `min:"1" type:"string" required:"true"` + // The alias must be unique amongst all aliases in AWS. This operation will + // throw an EntityAlreadyExistsException if this alias already exists. + Alias *string `type:"string" required:"true"` - // The identifier of the directory for which to create the alias. + // The identifier of the directory to create the alias for. DirectoryId *string `type:"string" required:"true"` + + metadataCreateAliasInput `json:"-" xml:"-"` +} + +type metadataCreateAliasInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1056,34 +648,19 @@ func (s CreateAliasInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAliasInput"} - if s.Alias == nil { - invalidParams.Add(request.NewErrParamRequired("Alias")) - } - if s.Alias != nil && len(*s.Alias) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Alias", 1)) - } - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the CreateAlias operation. type CreateAliasOutput struct { - _ struct{} `type:"structure"` - // The alias for the directory. - Alias *string `min:"1" type:"string"` + Alias *string `type:"string"` // The identifier of the directory. DirectoryId *string `type:"string"` + + metadataCreateAliasOutput `json:"-" xml:"-"` +} + +type metadataCreateAliasOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1098,25 +675,29 @@ func (s CreateAliasOutput) GoString() string { // Contains the inputs for the CreateComputer operation. type CreateComputerInput struct { - _ struct{} `type:"structure"` - // An array of Attribute objects that contain any LDAP attributes to apply to // the computer account. ComputerAttributes []*Attribute `type:"list"` // The name of the computer account. - ComputerName *string `min:"1" type:"string" required:"true"` + ComputerName *string `type:"string" required:"true"` - // The identifier of the directory in which to create the computer account. + // The identifier of the directory to create the computer account in. DirectoryId *string `type:"string" required:"true"` // The fully-qualified distinguished name of the organizational unit to place // the computer account in. - OrganizationalUnitDistinguishedName *string `min:"1" type:"string"` + OrganizationalUnitDistinguishedName *string `type:"string"` // A one-time password that is used to join the computer to the directory. You // should generate a random, strong password to use for this parameter. - Password *string `min:"8" type:"string" required:"true"` + Password *string `type:"string" required:"true"` + + metadataCreateComputerInput `json:"-" xml:"-"` +} + +type metadataCreateComputerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1129,127 +710,30 @@ func (s CreateComputerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateComputerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateComputerInput"} - if s.ComputerName == nil { - invalidParams.Add(request.NewErrParamRequired("ComputerName")) - } - if s.ComputerName != nil && len(*s.ComputerName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ComputerName", 1)) - } - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.OrganizationalUnitDistinguishedName != nil && len(*s.OrganizationalUnitDistinguishedName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OrganizationalUnitDistinguishedName", 1)) - } - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Password != nil && len(*s.Password) < 8 { - invalidParams.Add(request.NewErrParamMinLen("Password", 8)) - } - if s.ComputerAttributes != nil { - for i, v := range s.ComputerAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ComputerAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results for the CreateComputer operation. type CreateComputerOutput struct { - _ struct{} `type:"structure"` - - // A Computer object that represents the computer account. + // A Computer object the represents the computer account. Computer *Computer `type:"structure"` -} -// String returns the string representation -func (s CreateComputerOutput) String() string { - return awsutil.Prettify(s) + metadataCreateComputerOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s CreateComputerOutput) GoString() string { - return s.String() -} - -// Initiates the creation of a conditional forwarder for your AWS Directory -// Service for Microsoft Active Directory. Conditional forwarders are required -// in order to set up a trust relationship with another domain. -type CreateConditionalForwarderInput struct { - _ struct{} `type:"structure"` - - // The directory ID of the AWS directory for which you are creating the conditional - // forwarder. - DirectoryId *string `type:"string" required:"true"` - - // The IP addresses of the remote DNS server associated with RemoteDomainName. - DnsIpAddrs []*string `type:"list" required:"true"` - - // The fully qualified domain name (FQDN) of the remote domain with which you - // will set up a trust relationship. - RemoteDomainName *string `type:"string" required:"true"` +type metadataCreateComputerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateConditionalForwarderInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateConditionalForwarderInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateConditionalForwarderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateConditionalForwarderInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.DnsIpAddrs == nil { - invalidParams.Add(request.NewErrParamRequired("DnsIpAddrs")) - } - if s.RemoteDomainName == nil { - invalidParams.Add(request.NewErrParamRequired("RemoteDomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateConditionalForwarderOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s CreateConditionalForwarderOutput) String() string { +func (s CreateComputerOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateConditionalForwarderOutput) GoString() string { +func (s CreateComputerOutput) GoString() string { return s.String() } // Contains the inputs for the CreateDirectory operation. type CreateDirectoryInput struct { - _ struct{} `type:"structure"` - // A textual description for the directory. Description *string `type:"string"` @@ -1270,6 +754,12 @@ type CreateDirectoryInput struct { // A DirectoryVpcSettings object that contains additional information for the // operation. VpcSettings *DirectoryVpcSettings `type:"structure"` + + metadataCreateDirectoryInput `json:"-" xml:"-"` +} + +type metadataCreateDirectoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1282,133 +772,41 @@ func (s CreateDirectoryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDirectoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDirectoryInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Size == nil { - invalidParams.Add(request.NewErrParamRequired("Size")) - } - if s.VpcSettings != nil { - if err := s.VpcSettings.Validate(); err != nil { - invalidParams.AddNested("VpcSettings", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the CreateDirectory operation. type CreateDirectoryOutput struct { - _ struct{} `type:"structure"` - // The identifier of the directory that was created. DirectoryId *string `type:"string"` -} - -// String returns the string representation -func (s CreateDirectoryOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateDirectoryOutput) GoString() string { - return s.String() -} - -// Creates a Microsoft AD in the AWS cloud. -type CreateMicrosoftADInput struct { - _ struct{} `type:"structure"` - - // A textual description for the directory. This label will appear on the AWS - // console Directory Details page after the directory is created. - Description *string `type:"string"` - - // The fully qualified domain name for the directory, such as corp.example.com. - // This name will resolve inside your VPC only. It does not need to be publicly - // resolvable. - Name *string `type:"string" required:"true"` - - // The password for the default administrative user named Admin. - Password *string `type:"string" required:"true"` - - // The NetBIOS name for your domain. A short identifier for your domain, such - // as CORP. If you don't specify a NetBIOS name, it will default to the first - // part of your directory DNS. For example, CORP for the directory DNS corp.example.com. - ShortName *string `type:"string"` - - // Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation. - VpcSettings *DirectoryVpcSettings `type:"structure" required:"true"` -} -// String returns the string representation -func (s CreateMicrosoftADInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateMicrosoftADInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMicrosoftADInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMicrosoftADInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.VpcSettings == nil { - invalidParams.Add(request.NewErrParamRequired("VpcSettings")) - } - if s.VpcSettings != nil { - if err := s.VpcSettings.Validate(); err != nil { - invalidParams.AddNested("VpcSettings", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateDirectoryOutput `json:"-" xml:"-"` } -type CreateMicrosoftADOutput struct { - _ struct{} `type:"structure"` - - // The identifier of the directory that was created. - DirectoryId *string `type:"string"` +type metadataCreateDirectoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateMicrosoftADOutput) String() string { +func (s CreateDirectoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateMicrosoftADOutput) GoString() string { +func (s CreateDirectoryOutput) GoString() string { return s.String() } // Contains the inputs for the CreateSnapshot operation. type CreateSnapshotInput struct { - _ struct{} `type:"structure"` - - // The identifier of the directory of which to take a snapshot. + // The identifier of the directory to take a snapshot of. DirectoryId *string `type:"string" required:"true"` // The descriptive name to apply to the snapshot. Name *string `type:"string"` + + metadataCreateSnapshotInput `json:"-" xml:"-"` +} + +type metadataCreateSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1421,178 +819,38 @@ func (s CreateSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the CreateSnapshot operation. type CreateSnapshotOutput struct { - _ struct{} `type:"structure"` - // The identifier of the snapshot that was created. SnapshotId *string `type:"string"` -} -// String returns the string representation -func (s CreateSnapshotOutput) String() string { - return awsutil.Prettify(s) + metadataCreateSnapshotOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s CreateSnapshotOutput) GoString() string { - return s.String() -} - -// AWS Directory Service for Microsoft Active Directory allows you to configure -// trust relationships. For example, you can establish a trust between your -// Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active -// Directory. This would allow you to provide users and groups access to resources -// in either domain, with a single set of credentials. -// -// This action initiates the creation of the AWS side of a trust relationship -// between a Microsoft AD in the AWS cloud and an external domain. -type CreateTrustInput struct { - _ struct{} `type:"structure"` - - ConditionalForwarderIpAddrs []*string `type:"list"` - - // The Directory ID of the Microsoft AD in the AWS cloud for which to establish - // the trust relationship. - DirectoryId *string `type:"string" required:"true"` - - // The Fully Qualified Domain Name (FQDN) of the external domain for which to - // create the trust relationship. - RemoteDomainName *string `type:"string" required:"true"` - - // The direction of the trust relationship. - TrustDirection *string `type:"string" required:"true" enum:"TrustDirection"` - - // The trust password. The must be the same password that was used when creating - // the trust relationship on the external domain. - TrustPassword *string `min:"1" type:"string" required:"true"` - - // The trust relationship type. - TrustType *string `type:"string" enum:"TrustType"` +type metadataCreateSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateTrustInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateTrustInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTrustInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTrustInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.RemoteDomainName == nil { - invalidParams.Add(request.NewErrParamRequired("RemoteDomainName")) - } - if s.TrustDirection == nil { - invalidParams.Add(request.NewErrParamRequired("TrustDirection")) - } - if s.TrustPassword == nil { - invalidParams.Add(request.NewErrParamRequired("TrustPassword")) - } - if s.TrustPassword != nil && len(*s.TrustPassword) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TrustPassword", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateTrustOutput struct { - _ struct{} `type:"structure"` - - // A unique identifier for the trust relationship that was created. - TrustId *string `type:"string"` -} - -// String returns the string representation -func (s CreateTrustOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateTrustOutput) GoString() string { - return s.String() -} - -type DeleteConditionalForwarderInput struct { - _ struct{} `type:"structure"` - - // The directory ID for which you are deleting the conditional forwarder. - DirectoryId *string `type:"string" required:"true"` - - // The fully qualified domain name (FQDN) of the remote domain with which you - // are deleting the conditional forwarder. - RemoteDomainName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteConditionalForwarderInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteConditionalForwarderInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteConditionalForwarderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteConditionalForwarderInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.RemoteDomainName == nil { - invalidParams.Add(request.NewErrParamRequired("RemoteDomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteConditionalForwarderOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteConditionalForwarderOutput) String() string { +func (s CreateSnapshotOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteConditionalForwarderOutput) GoString() string { +func (s CreateSnapshotOutput) GoString() string { return s.String() } // Contains the inputs for the DeleteDirectory operation. type DeleteDirectoryInput struct { - _ struct{} `type:"structure"` - // The identifier of the directory to delete. DirectoryId *string `type:"string" required:"true"` + + metadataDeleteDirectoryInput `json:"-" xml:"-"` +} + +type metadataDeleteDirectoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1605,25 +863,16 @@ func (s DeleteDirectoryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDirectoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDirectoryInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the DeleteDirectory operation. type DeleteDirectoryOutput struct { - _ struct{} `type:"structure"` - // The directory identifier. DirectoryId *string `type:"string"` + + metadataDeleteDirectoryOutput `json:"-" xml:"-"` +} + +type metadataDeleteDirectoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1638,10 +887,14 @@ func (s DeleteDirectoryOutput) GoString() string { // Contains the inputs for the DeleteSnapshot operation. type DeleteSnapshotInput struct { - _ struct{} `type:"structure"` - // The identifier of the directory snapshot to be deleted. SnapshotId *string `type:"string" required:"true"` + + metadataDeleteSnapshotInput `json:"-" xml:"-"` +} + +type metadataDeleteSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1654,202 +907,33 @@ func (s DeleteSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"} - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the DeleteSnapshot operation. type DeleteSnapshotOutput struct { - _ struct{} `type:"structure"` - // The identifier of the directory snapshot that was deleted. SnapshotId *string `type:"string"` -} - -// String returns the string representation -func (s DeleteSnapshotOutput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DeleteSnapshotOutput) GoString() string { - return s.String() + metadataDeleteSnapshotOutput `json:"-" xml:"-"` } -// Deletes the local side of an existing trust relationship between the Microsoft -// AD in the AWS cloud and the external domain. -type DeleteTrustInput struct { - _ struct{} `type:"structure"` - - DeleteAssociatedConditionalForwarder *bool `type:"boolean"` - - // The Trust ID of the trust relationship to be deleted. - TrustId *string `type:"string" required:"true"` +type metadataDeleteSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteTrustInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteTrustInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTrustInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTrustInput"} - if s.TrustId == nil { - invalidParams.Add(request.NewErrParamRequired("TrustId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteTrustOutput struct { - _ struct{} `type:"structure"` - - // The Trust ID of the trust relationship that was deleted. - TrustId *string `type:"string"` -} - -// String returns the string representation -func (s DeleteTrustOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteTrustOutput) GoString() string { - return s.String() -} - -// Removes the specified directory as a publisher to the specified SNS topic. -type DeregisterEventTopicInput struct { - _ struct{} `type:"structure"` - - // The Directory ID to remove as a publisher. This directory will no longer - // send messages to the specified SNS topic. - DirectoryId *string `type:"string" required:"true"` - - // The name of the SNS topic from which to remove the directory as a publisher. - TopicName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeregisterEventTopicInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeregisterEventTopicInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterEventTopicInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterEventTopicInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.TopicName == nil { - invalidParams.Add(request.NewErrParamRequired("TopicName")) - } - if s.TopicName != nil && len(*s.TopicName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TopicName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeregisterEventTopicOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeregisterEventTopicOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeregisterEventTopicOutput) GoString() string { - return s.String() -} - -type DescribeConditionalForwardersInput struct { - _ struct{} `type:"structure"` - - // The directory ID for which to get the list of associated conditional forwarders. - DirectoryId *string `type:"string" required:"true"` - - // The fully qualified domain names (FQDN) of the remote domains for which to - // get the list of associated conditional forwarders. If this member is null, - // all conditional forwarders are returned. - RemoteDomainNames []*string `type:"list"` -} - -// String returns the string representation -func (s DescribeConditionalForwardersInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeConditionalForwardersInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeConditionalForwardersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeConditionalForwardersInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeConditionalForwardersOutput struct { - _ struct{} `type:"structure"` - - // The list of conditional forwarders that have been created. - ConditionalForwarders []*ConditionalForwarder `type:"list"` -} - -// String returns the string representation -func (s DescribeConditionalForwardersOutput) String() string { +func (s DeleteSnapshotOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeConditionalForwardersOutput) GoString() string { +func (s DeleteSnapshotOutput) GoString() string { return s.String() } // Contains the inputs for the DescribeDirectories operation. type DescribeDirectoriesInput struct { - _ struct{} `type:"structure"` - - // A list of identifiers of the directories for which to obtain the information. - // If this member is null, all directories that belong to the current account - // are returned. + // A list of identifiers of the directories to obtain the information for. If + // this member is null, all directories that belong to the current account are + // returned. // // An empty list results in an InvalidParameterException being thrown. DirectoryIds []*string `type:"list"` @@ -1861,6 +945,12 @@ type DescribeDirectoriesInput struct { // The DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories. // Pass null if this is the first call. NextToken *string `type:"string"` + + metadataDescribeDirectoriesInput `json:"-" xml:"-"` +} + +type metadataDescribeDirectoriesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1875,8 +965,6 @@ func (s DescribeDirectoriesInput) GoString() string { // Contains the results of the DescribeDirectories operation. type DescribeDirectoriesOutput struct { - _ struct{} `type:"structure"` - // The list of DirectoryDescription objects that were retrieved. // // It is possible that this list contains less than the number of items specified @@ -1889,65 +977,27 @@ type DescribeDirectoriesOutput struct { // parameter in a subsequent call to DescribeDirectories to retrieve the next // set of items. NextToken *string `type:"string"` -} - -// String returns the string representation -func (s DescribeDirectoriesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDirectoriesOutput) GoString() string { - return s.String() -} - -type DescribeEventTopicsInput struct { - _ struct{} `type:"structure"` - - // The Directory ID for which to get the list of associated SNS topics. If this - // member is null, associations for all Directory IDs are returned. - DirectoryId *string `type:"string"` - - // A list of SNS topic names for which to obtain the information. If this member - // is null, all associations for the specified Directory ID are returned. - // - // An empty list results in an InvalidParameterException being thrown. - TopicNames []*string `type:"list"` -} - -// String returns the string representation -func (s DescribeEventTopicsInput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DescribeEventTopicsInput) GoString() string { - return s.String() + metadataDescribeDirectoriesOutput `json:"-" xml:"-"` } -type DescribeEventTopicsOutput struct { - _ struct{} `type:"structure"` - - // A list of SNS topic names that receive status messages from the specified - // Directory ID. - EventTopics []*EventTopic `type:"list"` +type metadataDescribeDirectoriesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeEventTopicsOutput) String() string { +func (s DescribeDirectoriesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeEventTopicsOutput) GoString() string { +func (s DescribeDirectoriesOutput) GoString() string { return s.String() } // Contains the inputs for the DescribeSnapshots operation. type DescribeSnapshotsInput struct { - _ struct{} `type:"structure"` - - // The identifier of the directory for which to retrieve snapshot information. + // The identifier of the directory to retrieve snapshot information for. DirectoryId *string `type:"string"` // The maximum number of objects to return. @@ -1961,6 +1011,12 @@ type DescribeSnapshotsInput struct { // this member is null or empty, all snapshots are returned using the Limit // and NextToken members. SnapshotIds []*string `type:"list"` + + metadataDescribeSnapshotsInput `json:"-" xml:"-"` +} + +type metadataDescribeSnapshotsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1975,8 +1031,6 @@ func (s DescribeSnapshotsInput) GoString() string { // Contains the results of the DescribeSnapshots operation. type DescribeSnapshotsOutput struct { - _ struct{} `type:"structure"` - // If not null, more results are available. Pass this value in the NextToken // member of a subsequent call to DescribeSnapshots. NextToken *string `type:"string"` @@ -1988,85 +1042,27 @@ type DescribeSnapshotsOutput struct { // requested number of items left to retrieve, or if the limitations of the // operation have been exceeded. Snapshots []*Snapshot `type:"list"` -} -// String returns the string representation -func (s DescribeSnapshotsOutput) String() string { - return awsutil.Prettify(s) + metadataDescribeSnapshotsOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s DescribeSnapshotsOutput) GoString() string { - return s.String() -} - -// Describes the trust relationships for a particular Microsoft AD in the AWS -// cloud. If no input parameters are are provided, such as directory ID or trust -// ID, this request describes all the trust relationships. -type DescribeTrustsInput struct { - _ struct{} `type:"structure"` - - // The Directory ID of the AWS directory that is a part of the requested trust - // relationship. - DirectoryId *string `type:"string"` - - // The maximum number of objects to return. - Limit *int64 `type:"integer"` - - // The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. - // Pass null if this is the first call. - NextToken *string `type:"string"` - - // A list of identifiers of the trust relationships for which to obtain the - // information. If this member is null, all trust relationships that belong - // to the current account are returned. - // - // An empty list results in an InvalidParameterException being thrown. - TrustIds []*string `type:"list"` +type metadataDescribeSnapshotsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeTrustsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeTrustsInput) GoString() string { - return s.String() -} - -type DescribeTrustsOutput struct { - _ struct{} `type:"structure"` - - // If not null, more results are available. Pass this value for the NextToken - // parameter in a subsequent call to DescribeTrusts to retrieve the next set - // of items. - NextToken *string `type:"string"` - - // The list of Trust objects that were retrieved. - // - // It is possible that this list contains less than the number of items specified - // in the Limit member of the request. This occurs if there are less than the - // requested number of items left to retrieve, or if the limitations of the - // operation have been exceeded. - Trusts []*Trust `type:"list"` -} - -// String returns the string representation -func (s DescribeTrustsOutput) String() string { +func (s DescribeSnapshotsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeTrustsOutput) GoString() string { +func (s DescribeSnapshotsOutput) GoString() string { return s.String() } // Contains information for the ConnectDirectory operation when an AD Connector // directory is being created. type DirectoryConnectSettings struct { - _ struct{} `type:"structure"` - // A list of one or more IP addresses of DNS servers or domain controllers in // the on-premises directory. CustomerDnsIps []*string `type:"list" required:"true"` @@ -2075,13 +1071,20 @@ type DirectoryConnectSettings struct { // to the directory. This account must have the following privileges: // // Read users and groups Create computer objects Join computers to the domain - CustomerUserName *string `min:"1" type:"string" required:"true"` + CustomerUserName *string `type:"string" required:"true"` - // A list of subnet identifiers in the VPC in which the AD Connector is created. + // A list of subnet identifiers in the VPC that the AD Connector is created + // in. SubnetIds []*string `type:"list" required:"true"` - // The identifier of the VPC in which the AD Connector is created. + // The identifier of the VPC that the AD Connector is created in. VpcId *string `type:"string" required:"true"` + + metadataDirectoryConnectSettings `json:"-" xml:"-"` +} + +type metadataDirectoryConnectSettings struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2094,35 +1097,8 @@ func (s DirectoryConnectSettings) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DirectoryConnectSettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DirectoryConnectSettings"} - if s.CustomerDnsIps == nil { - invalidParams.Add(request.NewErrParamRequired("CustomerDnsIps")) - } - if s.CustomerUserName == nil { - invalidParams.Add(request.NewErrParamRequired("CustomerUserName")) - } - if s.CustomerUserName != nil && len(*s.CustomerUserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CustomerUserName", 1)) - } - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains information about an AD Connector directory. type DirectoryConnectSettingsDescription struct { - _ struct{} `type:"structure"` - // A list of the Availability Zones that the directory is in. AvailabilityZones []*string `type:"list"` @@ -2130,7 +1106,7 @@ type DirectoryConnectSettingsDescription struct { ConnectIps []*string `type:"list"` // The username of the service account in the on-premises directory. - CustomerUserName *string `min:"1" type:"string"` + CustomerUserName *string `type:"string"` // The security group identifier for the AD Connector directory. SecurityGroupId *string `type:"string"` @@ -2140,6 +1116,12 @@ type DirectoryConnectSettingsDescription struct { // The identifier of the VPC that the AD Connector is in. VpcId *string `type:"string"` + + metadataDirectoryConnectSettingsDescription `json:"-" xml:"-"` +} + +type metadataDirectoryConnectSettingsDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2154,16 +1136,11 @@ func (s DirectoryConnectSettingsDescription) GoString() string { // Contains information about an AWS Directory Service directory. type DirectoryDescription struct { - _ struct{} `type:"structure"` - - // The access URL for the directory, such as http://alias.awsapps.com. If no - // alias has been created for the directory, alias is the directory identifier, - // such as d-XXXXXXXXXX. - AccessUrl *string `min:"1" type:"string"` + // The access URL for the directory, such as http://.awsapps.com. + AccessUrl *string `type:"string"` - // The alias for the directory. If no alias has been created for the directory, - // the alias is the directory identifier, such as d-XXXXXXXXXX. - Alias *string `min:"1" type:"string"` + // The alias for the directory. + Alias *string `type:"string"` // A DirectoryConnectSettingsDescription object that contains additional information // about an AD Connector directory. This member is only present if the directory @@ -2176,11 +1153,11 @@ type DirectoryDescription struct { // The directory identifier. DirectoryId *string `type:"string"` - // The IP addresses of the DNS servers for the directory. For a Simple AD or - // Microsoft AD directory, these are the IP addresses of the Simple AD or Microsoft - // AD directory servers. For an AD Connector directory, these are the IP addresses - // of the DNS servers or domain controllers in the on-premises directory to - // which the AD Connector is connected. + // The IP addresses of the DNS servers for the directory. For a Simple AD directory, + // these are the IP addresses of the Simple AD directory servers. For an AD + // Connector directory, these are the IP addresses of the DNS servers or domain + // controllers in the on-premises directory that the AD Connector is connected + // to. DnsIpAddrs []*string `type:"list"` // Specifies when the directory was created. @@ -2219,9 +1196,15 @@ type DirectoryDescription struct { Type *string `type:"string" enum:"DirectoryType"` // A DirectoryVpcSettingsDescription object that contains additional information - // about a directory. This member is only present if the directory is a Simple - // AD or Managed AD directory. + // about a Simple AD directory. This member is only present if the directory + // is a Simple AD directory. VpcSettings *DirectoryVpcSettingsDescription `type:"structure"` + + metadataDirectoryDescription `json:"-" xml:"-"` +} + +type metadataDirectoryDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2236,8 +1219,6 @@ func (s DirectoryDescription) GoString() string { // 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"` @@ -2247,15 +1228,6 @@ type DirectoryLimits struct { // Indicates if the cloud directory limit has been reached. CloudOnlyDirectoriesLimitReached *bool `type:"boolean"` - // The current number of Microsoft AD directories in the region. - CloudOnlyMicrosoftADCurrentCount *int64 `type:"integer"` - - // The maximum number of Microsoft AD directories allowed in the region. - CloudOnlyMicrosoftADLimit *int64 `type:"integer"` - - // Indicates if the Microsoft AD directory limit has been reached. - CloudOnlyMicrosoftADLimitReached *bool `type:"boolean"` - // The current number of connected directories in the region. ConnectedDirectoriesCurrentCount *int64 `type:"integer"` @@ -2264,6 +1236,12 @@ type DirectoryLimits struct { // Indicates if the connected directory limit has been reached. ConnectedDirectoriesLimitReached *bool `type:"boolean"` + + metadataDirectoryLimits `json:"-" xml:"-"` +} + +type metadataDirectoryLimits struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2276,17 +1254,22 @@ func (s DirectoryLimits) GoString() string { return s.String() } -// Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation. +// Contains information for the CreateDirectory operation when a Simple AD directory +// is being created. type DirectoryVpcSettings struct { - _ struct{} `type:"structure"` - // The identifiers of the subnets for the directory servers. The two subnets // must be in different Availability Zones. AWS Directory Service creates a // directory server and a DNS server in each of these subnets. SubnetIds []*string `type:"list" required:"true"` - // The identifier of the VPC in which to create the directory. + // The identifier of the VPC to create the Simple AD directory in. VpcId *string `type:"string" required:"true"` + + metadataDirectoryVpcSettings `json:"-" xml:"-"` +} + +type metadataDirectoryVpcSettings struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2295,37 +1278,16 @@ func (s DirectoryVpcSettings) String() string { } // GoString returns the string representation -func (s DirectoryVpcSettings) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DirectoryVpcSettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DirectoryVpcSettings"} - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +func (s DirectoryVpcSettings) GoString() string { + return s.String() } -// Contains information about the directory. +// Contains information about a Simple AD directory. type DirectoryVpcSettingsDescription struct { - _ struct{} `type:"structure"` - // The list of Availability Zones that the directory is in. AvailabilityZones []*string `type:"list"` - // The security group identifier for the directory. If the directory was created - // before 8/1/2014, this is the identifier of the directory members security - // group that was created when the directory was created. If the directory was - // created after this date, this value is null. + // The security group identifier for the directory. SecurityGroupId *string `type:"string"` // The identifiers of the subnets for the directory servers. @@ -2333,6 +1295,12 @@ type DirectoryVpcSettingsDescription struct { // The identifier of the VPC that the directory is in. VpcId *string `type:"string"` + + metadataDirectoryVpcSettingsDescription `json:"-" xml:"-"` +} + +type metadataDirectoryVpcSettingsDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2347,10 +1315,14 @@ func (s DirectoryVpcSettingsDescription) GoString() string { // Contains the inputs for the DisableRadius operation. type DisableRadiusInput struct { - _ struct{} `type:"structure"` - - // The identifier of the directory for which to disable MFA. + // The identifier of the directory to disable MFA for. DirectoryId *string `type:"string" required:"true"` + + metadataDisableRadiusInput `json:"-" xml:"-"` +} + +type metadataDisableRadiusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2363,22 +1335,13 @@ func (s DisableRadiusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableRadiusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableRadiusInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the DisableRadius operation. type DisableRadiusOutput struct { - _ struct{} `type:"structure"` + metadataDisableRadiusOutput `json:"-" xml:"-"` +} + +type metadataDisableRadiusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2393,26 +1356,30 @@ func (s DisableRadiusOutput) GoString() string { // Contains the inputs for the DisableSso operation. type DisableSsoInput struct { - _ struct{} `type:"structure"` - - // The identifier of the directory for which to disable single-sign on. + // The identifier of the directory to disable single-sign on for. DirectoryId *string `type:"string" required:"true"` // The password of an alternate account to use to disable single-sign on. This - // is only used for AD Connector directories. For more information, see the - // UserName parameter. - Password *string `min:"1" type:"string"` + // is only used for AD Connector directories. See the UserName parameter for + // more information. + Password *string `type:"string"` // The username of an alternate account to use to disable single-sign on. This // is only used for AD Connector directories. This account must have privileges - // to remove a service principal name. + // to remove a service principle name. // // If the AD Connector service account does not have privileges to remove a - // service principal name, you can specify an alternate account with the UserName + // service principle name, you can specify an alternate account with the UserName // and Password parameters. These credentials are only used to disable single // sign-on and are not stored by the service. The AD Connector service account // is not changed. - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` + + metadataDisableSsoInput `json:"-" xml:"-"` +} + +type metadataDisableSsoInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2425,28 +1392,13 @@ func (s DisableSsoInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableSsoInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableSsoInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.Password != nil && len(*s.Password) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Password", 1)) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the DisableSso operation. type DisableSsoOutput struct { - _ struct{} `type:"structure"` + metadataDisableSsoOutput `json:"-" xml:"-"` +} + +type metadataDisableSsoOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2461,13 +1413,17 @@ func (s DisableSsoOutput) GoString() string { // Contains the inputs for the EnableRadius operation. type EnableRadiusInput struct { - _ struct{} `type:"structure"` - - // The identifier of the directory for which to enable MFA. + // The identifier of the directory to enable MFA for. DirectoryId *string `type:"string" required:"true"` // A RadiusSettings object that contains information about the RADIUS server. RadiusSettings *RadiusSettings `type:"structure" required:"true"` + + metadataEnableRadiusInput `json:"-" xml:"-"` +} + +type metadataEnableRadiusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2480,30 +1436,13 @@ func (s EnableRadiusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableRadiusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableRadiusInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.RadiusSettings == nil { - invalidParams.Add(request.NewErrParamRequired("RadiusSettings")) - } - if s.RadiusSettings != nil { - if err := s.RadiusSettings.Validate(); err != nil { - invalidParams.AddNested("RadiusSettings", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the EnableRadius operation. type EnableRadiusOutput struct { - _ struct{} `type:"structure"` + metadataEnableRadiusOutput `json:"-" xml:"-"` +} + +type metadataEnableRadiusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2518,26 +1457,30 @@ func (s EnableRadiusOutput) GoString() string { // Contains the inputs for the EnableSso operation. type EnableSsoInput struct { - _ struct{} `type:"structure"` - - // The identifier of the directory for which to enable single-sign on. + // The identifier of the directory to enable single-sign on for. DirectoryId *string `type:"string" required:"true"` // The password of an alternate account to use to enable single-sign on. This - // is only used for AD Connector directories. For more information, see the - // UserName parameter. - Password *string `min:"1" type:"string"` + // is only used for AD Connector directories. See the UserName parameter for + // more information. + Password *string `type:"string"` // The username of an alternate account to use to enable single-sign on. This // is only used for AD Connector directories. This account must have privileges - // to add a service principal name. + // to add a service principle name. // // If the AD Connector service account does not have privileges to add a service - // principal name, you can specify an alternate account with the UserName and + // principle name, you can specify an alternate account with the UserName and // Password parameters. These credentials are only used to enable single sign-on // and are not stored by the service. The AD Connector service account is not // changed. - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` + + metadataEnableSsoInput `json:"-" xml:"-"` +} + +type metadataEnableSsoInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2550,74 +1493,32 @@ func (s EnableSsoInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableSsoInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableSsoInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.Password != nil && len(*s.Password) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Password", 1)) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the EnableSso operation. type EnableSsoOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s EnableSsoOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnableSsoOutput) GoString() string { - return s.String() + metadataEnableSsoOutput `json:"-" xml:"-"` } -// Information about SNS topic and AWS Directory Service directory associations. -type EventTopic struct { - _ struct{} `type:"structure"` - - // The date and time of when you associated your directory with the SNS topic. - CreatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The Directory ID of an AWS Directory Service directory that will publish - // status messages to an SNS topic. - DirectoryId *string `type:"string"` - - // The topic registration status. - Status *string `type:"string" enum:"TopicStatus"` - - // The SNS topic ARN (Amazon Resource Name). - TopicArn *string `type:"string"` - - // The name of an AWS SNS topic the receives status messages from the directory. - TopicName *string `min:"1" type:"string"` +type metadataEnableSsoOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s EventTopic) String() string { +func (s EnableSsoOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EventTopic) GoString() string { +func (s EnableSsoOutput) GoString() string { return s.String() } // Contains the inputs for the GetDirectoryLimits operation. type GetDirectoryLimitsInput struct { - _ struct{} `type:"structure"` + metadataGetDirectoryLimitsInput `json:"-" xml:"-"` +} + +type metadataGetDirectoryLimitsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2632,11 +1533,15 @@ func (s GetDirectoryLimitsInput) GoString() string { // Contains the results of the GetDirectoryLimits operation. type GetDirectoryLimitsOutput struct { - _ struct{} `type:"structure"` - // A DirectoryLimits object that contains the directory limits for the current // region. DirectoryLimits *DirectoryLimits `type:"structure"` + + metadataGetDirectoryLimitsOutput `json:"-" xml:"-"` +} + +type metadataGetDirectoryLimitsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2651,10 +1556,14 @@ func (s GetDirectoryLimitsOutput) GoString() string { // Contains the inputs for the GetSnapshotLimits operation. type GetSnapshotLimitsInput struct { - _ struct{} `type:"structure"` - // Contains the identifier of the directory to obtain the limits for. DirectoryId *string `type:"string" required:"true"` + + metadataGetSnapshotLimitsInput `json:"-" xml:"-"` +} + +type metadataGetSnapshotLimitsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2667,26 +1576,17 @@ func (s GetSnapshotLimitsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSnapshotLimitsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSnapshotLimitsInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the GetSnapshotLimits operation. type GetSnapshotLimitsOutput struct { - _ struct{} `type:"structure"` - // A SnapshotLimits object that contains the manual snapshot limits for the // specified directory. SnapshotLimits *SnapshotLimits `type:"structure"` + + metadataGetSnapshotLimitsOutput `json:"-" xml:"-"` +} + +type metadataGetSnapshotLimitsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2702,18 +1602,16 @@ func (s GetSnapshotLimitsOutput) GoString() string { // Contains information about a Remote Authentication Dial In User Service (RADIUS) // server. type RadiusSettings struct { - _ struct{} `type:"structure"` - // The protocol specified for your RADIUS endpoints. AuthenticationProtocol *string `type:"string" enum:"RadiusAuthenticationProtocol"` // Not currently used. - DisplayLabel *string `min:"1" type:"string"` + DisplayLabel *string `type:"string"` // The port that your RADIUS server is using for communications. Your on-premises // network must allow inbound traffic over this port from the AWS Directory // Service servers. - RadiusPort *int64 `min:"1025" type:"integer"` + RadiusPort *int64 `type:"integer"` // The maximum number of times that communication with the RADIUS server is // attempted. @@ -2724,108 +1622,42 @@ type RadiusSettings struct { RadiusServers []*string `type:"list"` // The amount of time, in seconds, to wait for the RADIUS server to respond. - RadiusTimeout *int64 `min:"1" type:"integer"` + RadiusTimeout *int64 `type:"integer"` // The shared secret code that was specified when your RADIUS endpoints were // created. - SharedSecret *string `min:"8" type:"string"` + SharedSecret *string `type:"string"` // Not currently used. UseSameUsername *bool `type:"boolean"` -} - -// String returns the string representation -func (s RadiusSettings) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RadiusSettings) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RadiusSettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RadiusSettings"} - if s.DisplayLabel != nil && len(*s.DisplayLabel) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DisplayLabel", 1)) - } - if s.RadiusPort != nil && *s.RadiusPort < 1025 { - invalidParams.Add(request.NewErrParamMinValue("RadiusPort", 1025)) - } - if s.RadiusTimeout != nil && *s.RadiusTimeout < 1 { - invalidParams.Add(request.NewErrParamMinValue("RadiusTimeout", 1)) - } - if s.SharedSecret != nil && len(*s.SharedSecret) < 8 { - invalidParams.Add(request.NewErrParamMinLen("SharedSecret", 8)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RegisterEventTopicInput struct { - _ struct{} `type:"structure"` - - // The Directory ID that will publish status messages to the SNS topic. - DirectoryId *string `type:"string" required:"true"` - - // The SNS topic name to which the directory will publish status messages. This - // SNS topic must be in the same region as the specified Directory ID. - TopicName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s RegisterEventTopicInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegisterEventTopicInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterEventTopicInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterEventTopicInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.TopicName == nil { - invalidParams.Add(request.NewErrParamRequired("TopicName")) - } - if s.TopicName != nil && len(*s.TopicName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TopicName", 1)) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataRadiusSettings `json:"-" xml:"-"` } -type RegisterEventTopicOutput struct { - _ struct{} `type:"structure"` +type metadataRadiusSettings struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s RegisterEventTopicOutput) String() string { +func (s RadiusSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RegisterEventTopicOutput) GoString() string { +func (s RadiusSettings) GoString() string { return s.String() } // An object representing the inputs for the RestoreFromSnapshot operation. type RestoreFromSnapshotInput struct { - _ struct{} `type:"structure"` - // The identifier of the snapshot to restore from. SnapshotId *string `type:"string" required:"true"` + + metadataRestoreFromSnapshotInput `json:"-" xml:"-"` +} + +type metadataRestoreFromSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2838,22 +1670,13 @@ func (s RestoreFromSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreFromSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreFromSnapshotInput"} - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the RestoreFromSnapshot operation. type RestoreFromSnapshotOutput struct { - _ struct{} `type:"structure"` + metadataRestoreFromSnapshotOutput `json:"-" xml:"-"` +} + +type metadataRestoreFromSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2868,8 +1691,6 @@ func (s RestoreFromSnapshotOutput) GoString() string { // Describes a directory snapshot. type Snapshot struct { - _ struct{} `type:"structure"` - // The directory identifier. DirectoryId *string `type:"string"` @@ -2887,6 +1708,12 @@ type Snapshot struct { // The snapshot type. Type *string `type:"string" enum:"SnapshotType"` + + metadataSnapshot `json:"-" xml:"-"` +} + +type metadataSnapshot struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2901,8 +1728,6 @@ func (s Snapshot) GoString() string { // Contains manual snapshot limit information for a directory. type SnapshotLimits struct { - _ struct{} `type:"structure"` - // The current number of manual snapshots of the directory. ManualSnapshotsCurrentCount *int64 `type:"integer"` @@ -2911,133 +1736,37 @@ type SnapshotLimits struct { // Indicates if the manual snapshot limit has been reached. ManualSnapshotsLimitReached *bool `type:"boolean"` -} - -// String returns the string representation -func (s SnapshotLimits) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SnapshotLimits) GoString() string { - return s.String() -} - -// Describes a trust relationship between an Microsoft AD in the AWS cloud and -// an external domain. -type Trust struct { - _ struct{} `type:"structure"` - - // The date and time that the trust relationship was created. - CreatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The Directory ID of the AWS directory involved in the trust relationship. - DirectoryId *string `type:"string"` - - // The date and time that the trust relationship was last updated. - LastUpdatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The Fully Qualified Domain Name (FQDN) of the external domain involved in - // the trust relationship. - RemoteDomainName *string `type:"string"` - - // The date and time that the TrustState was last updated. - StateLastUpdatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The trust relationship direction. - TrustDirection *string `type:"string" enum:"TrustDirection"` - - // The unique ID of the trust relationship. - TrustId *string `type:"string"` - - // The trust relationship state. - TrustState *string `type:"string" enum:"TrustState"` - - // The reason for the TrustState. - TrustStateReason *string `type:"string"` - - // The trust relationship type. - TrustType *string `type:"string" enum:"TrustType"` -} - -// String returns the string representation -func (s Trust) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Trust) GoString() string { - return s.String() -} - -type UpdateConditionalForwarderInput struct { - _ struct{} `type:"structure"` - - // The directory ID of the AWS directory for which to update the conditional - // forwarder. - DirectoryId *string `type:"string" required:"true"` - - // The updated IP addresses of the remote DNS server associated with the conditional - // forwarder. - DnsIpAddrs []*string `type:"list" required:"true"` - - // The fully qualified domain name (FQDN) of the remote domain with which you - // will set up a trust relationship. - RemoteDomainName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateConditionalForwarderInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateConditionalForwarderInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateConditionalForwarderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateConditionalForwarderInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.DnsIpAddrs == nil { - invalidParams.Add(request.NewErrParamRequired("DnsIpAddrs")) - } - if s.RemoteDomainName == nil { - invalidParams.Add(request.NewErrParamRequired("RemoteDomainName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataSnapshotLimits `json:"-" xml:"-"` } -type UpdateConditionalForwarderOutput struct { - _ struct{} `type:"structure"` +type metadataSnapshotLimits struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s UpdateConditionalForwarderOutput) String() string { +func (s SnapshotLimits) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateConditionalForwarderOutput) GoString() string { +func (s SnapshotLimits) GoString() string { return s.String() } // Contains the inputs for the UpdateRadius operation. type UpdateRadiusInput struct { - _ struct{} `type:"structure"` - - // The identifier of the directory for which to update the RADIUS server information. + // The identifier of the directory to update the RADIUS server information for. DirectoryId *string `type:"string" required:"true"` // A RadiusSettings object that contains information about the RADIUS server. RadiusSettings *RadiusSettings `type:"structure" required:"true"` + + metadataUpdateRadiusInput `json:"-" xml:"-"` +} + +type metadataUpdateRadiusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3050,88 +1779,22 @@ func (s UpdateRadiusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateRadiusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateRadiusInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.RadiusSettings == nil { - invalidParams.Add(request.NewErrParamRequired("RadiusSettings")) - } - if s.RadiusSettings != nil { - if err := s.RadiusSettings.Validate(); err != nil { - invalidParams.AddNested("RadiusSettings", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the UpdateRadius operation. type UpdateRadiusOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UpdateRadiusOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateRadiusOutput) GoString() string { - return s.String() -} - -// Initiates the verification of an existing trust relationship between a Microsoft -// AD in the AWS cloud and an external domain. -type VerifyTrustInput struct { - _ struct{} `type:"structure"` - - // The unique Trust ID of the trust relationship to verify. - TrustId *string `type:"string" required:"true"` + metadataUpdateRadiusOutput `json:"-" xml:"-"` } -// String returns the string representation -func (s VerifyTrustInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s VerifyTrustInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *VerifyTrustInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VerifyTrustInput"} - if s.TrustId == nil { - invalidParams.Add(request.NewErrParamRequired("TrustId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type VerifyTrustOutput struct { - _ struct{} `type:"structure"` - - // The unique Trust ID of the trust relationship that was verified. - TrustId *string `type:"string"` +type metadataUpdateRadiusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s VerifyTrustOutput) String() string { +func (s UpdateRadiusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s VerifyTrustOutput) GoString() string { +func (s UpdateRadiusOutput) GoString() string { return s.String() } @@ -3172,8 +1835,6 @@ const ( DirectoryTypeSimpleAd = "SimpleAD" // @enum DirectoryType DirectoryTypeAdconnector = "ADConnector" - // @enum DirectoryType - DirectoryTypeMicrosoftAd = "MicrosoftAD" ) const ( @@ -3196,11 +1857,6 @@ const ( RadiusStatusFailed = "Failed" ) -const ( - // @enum ReplicationScope - ReplicationScopeDomain = "Domain" -) - const ( // @enum SnapshotStatus SnapshotStatusCreating = "Creating" @@ -3216,47 +1872,3 @@ const ( // @enum SnapshotType SnapshotTypeManual = "Manual" ) - -const ( - // @enum TopicStatus - TopicStatusRegistered = "Registered" - // @enum TopicStatus - TopicStatusTopicnotfound = "Topic not found" - // @enum TopicStatus - TopicStatusFailed = "Failed" - // @enum TopicStatus - TopicStatusDeleted = "Deleted" -) - -const ( - // @enum TrustDirection - TrustDirectionOneWayOutgoing = "One-Way: Outgoing" - // @enum TrustDirection - TrustDirectionOneWayIncoming = "One-Way: Incoming" - // @enum TrustDirection - TrustDirectionTwoWay = "Two-Way" -) - -const ( - // @enum TrustState - TrustStateCreating = "Creating" - // @enum TrustState - TrustStateCreated = "Created" - // @enum TrustState - TrustStateVerifying = "Verifying" - // @enum TrustState - TrustStateVerifyFailed = "VerifyFailed" - // @enum TrustState - TrustStateVerified = "Verified" - // @enum TrustState - TrustStateDeleting = "Deleting" - // @enum TrustState - TrustStateDeleted = "Deleted" - // @enum TrustState - TrustStateFailed = "Failed" -) - -const ( - // @enum TrustType - TrustTypeForest = "Forest" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go index 063c95979..87ca42aa4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface.go @@ -22,30 +22,14 @@ type DirectoryServiceAPI interface { CreateComputer(*directoryservice.CreateComputerInput) (*directoryservice.CreateComputerOutput, error) - CreateConditionalForwarderRequest(*directoryservice.CreateConditionalForwarderInput) (*request.Request, *directoryservice.CreateConditionalForwarderOutput) - - CreateConditionalForwarder(*directoryservice.CreateConditionalForwarderInput) (*directoryservice.CreateConditionalForwarderOutput, error) - CreateDirectoryRequest(*directoryservice.CreateDirectoryInput) (*request.Request, *directoryservice.CreateDirectoryOutput) CreateDirectory(*directoryservice.CreateDirectoryInput) (*directoryservice.CreateDirectoryOutput, error) - CreateMicrosoftADRequest(*directoryservice.CreateMicrosoftADInput) (*request.Request, *directoryservice.CreateMicrosoftADOutput) - - CreateMicrosoftAD(*directoryservice.CreateMicrosoftADInput) (*directoryservice.CreateMicrosoftADOutput, error) - CreateSnapshotRequest(*directoryservice.CreateSnapshotInput) (*request.Request, *directoryservice.CreateSnapshotOutput) CreateSnapshot(*directoryservice.CreateSnapshotInput) (*directoryservice.CreateSnapshotOutput, error) - CreateTrustRequest(*directoryservice.CreateTrustInput) (*request.Request, *directoryservice.CreateTrustOutput) - - CreateTrust(*directoryservice.CreateTrustInput) (*directoryservice.CreateTrustOutput, error) - - DeleteConditionalForwarderRequest(*directoryservice.DeleteConditionalForwarderInput) (*request.Request, *directoryservice.DeleteConditionalForwarderOutput) - - DeleteConditionalForwarder(*directoryservice.DeleteConditionalForwarderInput) (*directoryservice.DeleteConditionalForwarderOutput, error) - DeleteDirectoryRequest(*directoryservice.DeleteDirectoryInput) (*request.Request, *directoryservice.DeleteDirectoryOutput) DeleteDirectory(*directoryservice.DeleteDirectoryInput) (*directoryservice.DeleteDirectoryOutput, error) @@ -54,34 +38,14 @@ type DirectoryServiceAPI interface { DeleteSnapshot(*directoryservice.DeleteSnapshotInput) (*directoryservice.DeleteSnapshotOutput, error) - DeleteTrustRequest(*directoryservice.DeleteTrustInput) (*request.Request, *directoryservice.DeleteTrustOutput) - - DeleteTrust(*directoryservice.DeleteTrustInput) (*directoryservice.DeleteTrustOutput, error) - - DeregisterEventTopicRequest(*directoryservice.DeregisterEventTopicInput) (*request.Request, *directoryservice.DeregisterEventTopicOutput) - - DeregisterEventTopic(*directoryservice.DeregisterEventTopicInput) (*directoryservice.DeregisterEventTopicOutput, error) - - DescribeConditionalForwardersRequest(*directoryservice.DescribeConditionalForwardersInput) (*request.Request, *directoryservice.DescribeConditionalForwardersOutput) - - DescribeConditionalForwarders(*directoryservice.DescribeConditionalForwardersInput) (*directoryservice.DescribeConditionalForwardersOutput, error) - DescribeDirectoriesRequest(*directoryservice.DescribeDirectoriesInput) (*request.Request, *directoryservice.DescribeDirectoriesOutput) DescribeDirectories(*directoryservice.DescribeDirectoriesInput) (*directoryservice.DescribeDirectoriesOutput, error) - DescribeEventTopicsRequest(*directoryservice.DescribeEventTopicsInput) (*request.Request, *directoryservice.DescribeEventTopicsOutput) - - DescribeEventTopics(*directoryservice.DescribeEventTopicsInput) (*directoryservice.DescribeEventTopicsOutput, error) - DescribeSnapshotsRequest(*directoryservice.DescribeSnapshotsInput) (*request.Request, *directoryservice.DescribeSnapshotsOutput) DescribeSnapshots(*directoryservice.DescribeSnapshotsInput) (*directoryservice.DescribeSnapshotsOutput, error) - DescribeTrustsRequest(*directoryservice.DescribeTrustsInput) (*request.Request, *directoryservice.DescribeTrustsOutput) - - DescribeTrusts(*directoryservice.DescribeTrustsInput) (*directoryservice.DescribeTrustsOutput, error) - DisableRadiusRequest(*directoryservice.DisableRadiusInput) (*request.Request, *directoryservice.DisableRadiusOutput) DisableRadius(*directoryservice.DisableRadiusInput) (*directoryservice.DisableRadiusOutput, error) @@ -106,25 +70,11 @@ type DirectoryServiceAPI interface { GetSnapshotLimits(*directoryservice.GetSnapshotLimitsInput) (*directoryservice.GetSnapshotLimitsOutput, error) - RegisterEventTopicRequest(*directoryservice.RegisterEventTopicInput) (*request.Request, *directoryservice.RegisterEventTopicOutput) - - RegisterEventTopic(*directoryservice.RegisterEventTopicInput) (*directoryservice.RegisterEventTopicOutput, error) - RestoreFromSnapshotRequest(*directoryservice.RestoreFromSnapshotInput) (*request.Request, *directoryservice.RestoreFromSnapshotOutput) RestoreFromSnapshot(*directoryservice.RestoreFromSnapshotInput) (*directoryservice.RestoreFromSnapshotOutput, error) - UpdateConditionalForwarderRequest(*directoryservice.UpdateConditionalForwarderInput) (*request.Request, *directoryservice.UpdateConditionalForwarderOutput) - - UpdateConditionalForwarder(*directoryservice.UpdateConditionalForwarderInput) (*directoryservice.UpdateConditionalForwarderOutput, error) - UpdateRadiusRequest(*directoryservice.UpdateRadiusInput) (*request.Request, *directoryservice.UpdateRadiusOutput) UpdateRadius(*directoryservice.UpdateRadiusInput) (*directoryservice.UpdateRadiusOutput, error) - - VerifyTrustRequest(*directoryservice.VerifyTrustInput) (*request.Request, *directoryservice.VerifyTrustOutput) - - VerifyTrust(*directoryservice.VerifyTrustInput) (*directoryservice.VerifyTrustOutput, error) } - -var _ DirectoryServiceAPI = (*directoryservice.DirectoryService)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface_test.go new file mode 100644 index 000000000..3c0cf62ea --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package directoryserviceiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/directoryservice" + "github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*directoryserviceiface.DirectoryServiceAPI)(nil), directoryservice.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go index 9d7edaa5e..5334a728e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/directoryservice" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDirectoryService_ConnectDirectory() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.ConnectDirectoryInput{ ConnectSettings: &directoryservice.DirectoryConnectSettings{ // Required @@ -51,7 +50,7 @@ func ExampleDirectoryService_ConnectDirectory() { } func ExampleDirectoryService_CreateAlias() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.CreateAliasInput{ Alias: aws.String("AliasName"), // Required @@ -71,7 +70,7 @@ func ExampleDirectoryService_CreateAlias() { } func ExampleDirectoryService_CreateComputer() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.CreateComputerInput{ ComputerName: aws.String("ComputerName"), // Required @@ -99,32 +98,8 @@ func ExampleDirectoryService_CreateComputer() { fmt.Println(resp) } -func ExampleDirectoryService_CreateConditionalForwarder() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.CreateConditionalForwarderInput{ - DirectoryId: aws.String("DirectoryId"), // Required - DnsIpAddrs: []*string{ // Required - aws.String("IpAddr"), // Required - // More values... - }, - RemoteDomainName: aws.String("RemoteDomainName"), // Required - } - resp, err := svc.CreateConditionalForwarder(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDirectoryService_CreateDirectory() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.CreateDirectoryInput{ Name: aws.String("DirectoryName"), // Required @@ -153,37 +128,8 @@ func ExampleDirectoryService_CreateDirectory() { fmt.Println(resp) } -func ExampleDirectoryService_CreateMicrosoftAD() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.CreateMicrosoftADInput{ - Name: aws.String("DirectoryName"), // Required - Password: aws.String("Password"), // Required - VpcSettings: &directoryservice.DirectoryVpcSettings{ // Required - SubnetIds: []*string{ // Required - aws.String("SubnetId"), // Required - // More values... - }, - VpcId: aws.String("VpcId"), // Required - }, - Description: aws.String("Description"), - ShortName: aws.String("DirectoryShortName"), - } - resp, err := svc.CreateMicrosoftAD(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDirectoryService_CreateSnapshot() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.CreateSnapshotInput{ DirectoryId: aws.String("DirectoryId"), // Required @@ -202,55 +148,8 @@ func ExampleDirectoryService_CreateSnapshot() { fmt.Println(resp) } -func ExampleDirectoryService_CreateTrust() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.CreateTrustInput{ - DirectoryId: aws.String("DirectoryId"), // Required - RemoteDomainName: aws.String("RemoteDomainName"), // Required - TrustDirection: aws.String("TrustDirection"), // Required - TrustPassword: aws.String("TrustPassword"), // Required - ConditionalForwarderIpAddrs: []*string{ - aws.String("IpAddr"), // Required - // More values... - }, - TrustType: aws.String("TrustType"), - } - resp, err := svc.CreateTrust(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDirectoryService_DeleteConditionalForwarder() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.DeleteConditionalForwarderInput{ - DirectoryId: aws.String("DirectoryId"), // Required - RemoteDomainName: aws.String("RemoteDomainName"), // Required - } - resp, err := svc.DeleteConditionalForwarder(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDirectoryService_DeleteDirectory() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.DeleteDirectoryInput{ DirectoryId: aws.String("DirectoryId"), // Required @@ -269,7 +168,7 @@ func ExampleDirectoryService_DeleteDirectory() { } func ExampleDirectoryService_DeleteSnapshot() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.DeleteSnapshotInput{ SnapshotId: aws.String("SnapshotId"), // Required @@ -287,71 +186,8 @@ func ExampleDirectoryService_DeleteSnapshot() { fmt.Println(resp) } -func ExampleDirectoryService_DeleteTrust() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.DeleteTrustInput{ - TrustId: aws.String("TrustId"), // Required - DeleteAssociatedConditionalForwarder: aws.Bool(true), - } - resp, err := svc.DeleteTrust(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDirectoryService_DeregisterEventTopic() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.DeregisterEventTopicInput{ - DirectoryId: aws.String("DirectoryId"), // Required - TopicName: aws.String("TopicName"), // Required - } - resp, err := svc.DeregisterEventTopic(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleDirectoryService_DescribeConditionalForwarders() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.DescribeConditionalForwardersInput{ - DirectoryId: aws.String("DirectoryId"), // Required - RemoteDomainNames: []*string{ - aws.String("RemoteDomainName"), // Required - // More values... - }, - } - resp, err := svc.DescribeConditionalForwarders(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDirectoryService_DescribeDirectories() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.DescribeDirectoriesInput{ DirectoryIds: []*string{ @@ -374,31 +210,8 @@ func ExampleDirectoryService_DescribeDirectories() { fmt.Println(resp) } -func ExampleDirectoryService_DescribeEventTopics() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.DescribeEventTopicsInput{ - DirectoryId: aws.String("DirectoryId"), - TopicNames: []*string{ - aws.String("TopicName"), // Required - // More values... - }, - } - resp, err := svc.DescribeEventTopics(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDirectoryService_DescribeSnapshots() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.DescribeSnapshotsInput{ DirectoryId: aws.String("DirectoryId"), @@ -422,33 +235,8 @@ func ExampleDirectoryService_DescribeSnapshots() { fmt.Println(resp) } -func ExampleDirectoryService_DescribeTrusts() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.DescribeTrustsInput{ - DirectoryId: aws.String("DirectoryId"), - Limit: aws.Int64(1), - NextToken: aws.String("NextToken"), - TrustIds: []*string{ - aws.String("TrustId"), // Required - // More values... - }, - } - resp, err := svc.DescribeTrusts(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDirectoryService_DisableRadius() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.DisableRadiusInput{ DirectoryId: aws.String("DirectoryId"), // Required @@ -467,7 +255,7 @@ func ExampleDirectoryService_DisableRadius() { } func ExampleDirectoryService_DisableSso() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.DisableSsoInput{ DirectoryId: aws.String("DirectoryId"), // Required @@ -488,7 +276,7 @@ func ExampleDirectoryService_DisableSso() { } func ExampleDirectoryService_EnableRadius() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.EnableRadiusInput{ DirectoryId: aws.String("DirectoryId"), // Required @@ -520,7 +308,7 @@ func ExampleDirectoryService_EnableRadius() { } func ExampleDirectoryService_EnableSso() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.EnableSsoInput{ DirectoryId: aws.String("DirectoryId"), // Required @@ -541,7 +329,7 @@ func ExampleDirectoryService_EnableSso() { } func ExampleDirectoryService_GetDirectoryLimits() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) var params *directoryservice.GetDirectoryLimitsInput resp, err := svc.GetDirectoryLimits(params) @@ -558,7 +346,7 @@ func ExampleDirectoryService_GetDirectoryLimits() { } func ExampleDirectoryService_GetSnapshotLimits() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.GetSnapshotLimitsInput{ DirectoryId: aws.String("DirectoryId"), // Required @@ -576,28 +364,8 @@ func ExampleDirectoryService_GetSnapshotLimits() { fmt.Println(resp) } -func ExampleDirectoryService_RegisterEventTopic() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.RegisterEventTopicInput{ - DirectoryId: aws.String("DirectoryId"), // Required - TopicName: aws.String("TopicName"), // Required - } - resp, err := svc.RegisterEventTopic(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDirectoryService_RestoreFromSnapshot() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.RestoreFromSnapshotInput{ SnapshotId: aws.String("SnapshotId"), // Required @@ -615,32 +383,8 @@ func ExampleDirectoryService_RestoreFromSnapshot() { fmt.Println(resp) } -func ExampleDirectoryService_UpdateConditionalForwarder() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.UpdateConditionalForwarderInput{ - DirectoryId: aws.String("DirectoryId"), // Required - DnsIpAddrs: []*string{ // Required - aws.String("IpAddr"), // Required - // More values... - }, - RemoteDomainName: aws.String("RemoteDomainName"), // Required - } - resp, err := svc.UpdateConditionalForwarder(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDirectoryService_UpdateRadius() { - svc := directoryservice.New(session.New()) + svc := directoryservice.New(nil) params := &directoryservice.UpdateRadiusInput{ DirectoryId: aws.String("DirectoryId"), // Required @@ -670,22 +414,3 @@ func ExampleDirectoryService_UpdateRadius() { // Pretty-print the response data. fmt.Println(resp) } - -func ExampleDirectoryService_VerifyTrust() { - svc := directoryservice.New(session.New()) - - params := &directoryservice.VerifyTrustInput{ - TrustId: aws.String("TrustId"), // Required - } - resp, err := svc.VerifyTrust(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/service.go index 9eb1b1a91..f6399a3e6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/service.go @@ -4,76 +4,53 @@ package directoryservice import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // This is the AWS Directory Service API Reference. This guide provides detailed // information about AWS Directory Service operations, data types, parameters, // and errors. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type DirectoryService struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "ds" - -// New creates a new instance of the DirectoryService client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a DirectoryService client from just a session. -// svc := directoryservice.New(mySession) -// -// // Create a DirectoryService client with additional configuration -// svc := directoryservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *DirectoryService { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DirectoryService { - svc := &DirectoryService{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-04-16", - JSONVersion: "1.1", - TargetPrefix: "DirectoryService_20150416", - }, - handlers, - ), +// New returns a new DirectoryService client. +func New(config *aws.Config) *DirectoryService { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "ds", + APIVersion: "2015-04-16", + JSONVersion: "1.1", + TargetPrefix: "DirectoryService_20150416", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &DirectoryService{service} } // newRequest creates a new request for a DirectoryService operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go index e59efa265..19c846e26 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go @@ -4,7 +4,6 @@ package dynamodb import ( - "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -47,10 +46,10 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // operation returns a value for UnprocessedKeys. You can use this value to // retry the operation starting with the next item to get. // -// If you request more than 100 items BatchGetItem will return a ValidationException +// If you request more than 100 items BatchGetItem will return a ValidationException // with the message "Too many items requested for the BatchGetItem call". // -// For example, if you ask to retrieve 100 items, but each individual item +// For example, if you ask to retrieve 100 items, but each individual item // is 300 KB in size, the system returns 52 items (so as not to exceed the 16 // MB limit). It also returns an appropriate UnprocessedKeys value so you can // get the next page of results. If desired, your application can include its @@ -78,7 +77,7 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // In order to minimize response latency, BatchGetItem retrieves items in parallel. // // When designing your application, keep in mind that DynamoDB does not return -// items in any particular order. To help parse the response by item, include +// attributes in any particular order. To help parse the response by item, include // the primary key values for the items in your request in the AttributesToGet // parameter. // @@ -94,7 +93,6 @@ func (c *DynamoDB) BatchGetItem(input *BatchGetItemInput) (*BatchGetItemOutput, func (c *DynamoDB) BatchGetItemPages(input *BatchGetItemInput, fn func(p *BatchGetItemOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.BatchGetItemRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*BatchGetItemOutput), lastPage) }) @@ -125,7 +123,7 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // can comprise as many as 25 put or delete requests. Individual items to be // written can be as large as 400 KB. // -// BatchWriteItem cannot update items. To update items, use the UpdateItem +// BatchWriteItem cannot update items. To update items, use the UpdateItem // API. // // The individual PutItem and DeleteItem operations specified in BatchWriteItem @@ -219,10 +217,10 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // table names must be unique within each region. That is, you can have two // tables with same name if you create the tables in different regions. // -// CreateTable is an asynchronous operation. Upon receiving a CreateTable -// request, DynamoDB immediately returns a response with a TableStatus of CREATING. -// After the table is created, DynamoDB sets the TableStatus to ACTIVE. You -// can perform read and write operations only on an ACTIVE table. +// CreateTable is an asynchronous operation. Upon receiving a CreateTable request, +// DynamoDB immediately returns a response with a TableStatus of CREATING. After +// the table is created, DynamoDB sets the TableStatus to ACTIVE. You can perform +// read and write operations only on an ACTIVE table. // // You can optionally define secondary indexes on the new table, as part of // the CreateTable operation. If you want to create multiple tables with secondary @@ -320,90 +318,6 @@ func (c *DynamoDB) DeleteTable(input *DeleteTableInput) (*DeleteTableOutput, err return out, err } -const opDescribeLimits = "DescribeLimits" - -// DescribeLimitsRequest generates a request for the DescribeLimits operation. -func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *request.Request, output *DescribeLimitsOutput) { - op := &request.Operation{ - Name: opDescribeLimits, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeLimitsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeLimitsOutput{} - req.Data = output - return -} - -// Returns the current provisioned-capacity limits for your AWS account in a -// region, both for the region as a whole and for any one DynamoDB table that -// you create there. -// -// When you establish an AWS account, the account has initial limits on the -// maximum read capacity units and write capacity units that you can provision -// across all of your DynamoDB tables in a given region. Also, there are per-table -// limits that apply when you create a table there. For more information, see -// Limits (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) -// page in the Amazon DynamoDB Developer Guide. -// -// Although you can increase these limits by filing a case at AWS Support Center -// (https://console.aws.amazon.com/support/home#/), obtaining the increase is -// not instantaneous. The DescribeLimits API lets you write code to compare -// the capacity you are currently using to those limits imposed by your account -// so that you have enough time to apply for an increase before you hit a limit. -// -// For example, you could use one of the AWS SDKs to do the following: -// -// Call DescribeLimits for a particular region to obtain your current account -// limits on provisioned capacity there. -// -// Create a variable to hold the aggregate read capacity units provisioned -// for all your tables in that region, and one to hold the aggregate write capacity -// units. Zero them both. -// -// Call ListTables to obtain a list of all your DynamoDB tables. -// -// For each table name listed by ListTables, do the following: -// -// Call DescribeTable with the table name. -// -// Use the data returned by DescribeTable to add the read capacity units and -// write capacity units provisioned for the table itself to your variables. -// -// If the table has one or more global secondary indexes (GSIs), loop over -// these GSIs and add their provisioned capacity values to your variables as -// well. -// -// Report the account limits for that region returned by DescribeLimits, -// along with the total current provisioned capacity levels you have calculated. -// -// This will let you see whether you are getting close to your account-level -// limits. -// -// The per-table limits apply only when you are creating a new table. They -// restrict the sum of the provisioned capacity of the new table itself and -// all its global secondary indexes. -// -// For existing tables and their GSIs, DynamoDB will not let you increase provisioned -// capacity extremely rapidly, but the only upper limit that applies is that -// the aggregate provisioned capacity over all your tables and GSIs cannot exceed -// either of the per-account limits. -// -// DescribeLimits should only be called periodically. You can expect throttling -// errors if you call it more than once in a minute. -// -// The DescribeLimits Request element has no content. -func (c *DynamoDB) DescribeLimits(input *DescribeLimitsInput) (*DescribeLimitsOutput, error) { - req, out := c.DescribeLimitsRequest(input) - err := req.Send() - return out, err -} - const opDescribeTable = "DescribeTable" // DescribeTableRequest generates a request for the DescribeTable operation. @@ -462,7 +376,7 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou // The GetItem operation returns a set of attributes for the item with the given // primary key. If there is no matching item, GetItem does not return any data. // -// GetItem provides an eventually consistent read by default. If your application +// GetItem provides an eventually consistent read by default. If your application // requires a strongly consistent read, set ConsistentRead to true. Although // a strongly consistent read might take more time than an eventually consistent // read, it always returns the last updated value. @@ -509,7 +423,6 @@ func (c *DynamoDB) ListTables(input *ListTablesInput) (*ListTablesOutput, error) func (c *DynamoDB) ListTablesPages(input *ListTablesInput, fn func(p *ListTablesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListTablesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListTablesOutput), lastPage) }) @@ -555,10 +468,8 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // see the ReturnValues description below. // // To prevent a new item from replacing an existing item, use a conditional -// expression that contains the attribute_not_exists function with the name -// of the attribute being used as the partition key for the table. Since every -// record must contain that attribute, the attribute_not_exists function will -// only succeed if no matching item exists. +// put operation with ComparisonOperator set to NULL for the primary key attribute, +// or attributes. // // For more information about using this API, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) // in the Amazon DynamoDB Developer Guide. @@ -597,12 +508,12 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output // A Query operation uses the primary key of a table or a secondary index to // directly access items from that table or index. // -// Use the KeyConditionExpression parameter to provide a specific value for -// the partition key. The Query operation will return all of the items from -// the table or index with that partition key value. You can optionally narrow -// the scope of the Query operation by specifying a sort key value and a comparison -// operator in KeyConditionExpression. You can use the ScanIndexForward parameter -// to get results in forward or reverse order, by sort key. +// Use the KeyConditionExpression parameter to provide a specific hash key +// value. The Query operation will return all of the items from the table or +// index with that hash key value. You can optionally narrow the scope of the +// Query operation by specifying a range key value and a comparison operator +// in KeyConditionExpression. You can use the ScanIndexForward parameter to +// get results in forward or reverse order, by range key or by index key. // // Queries that do not return results consume the minimum number of read capacity // units for that type of read operation. @@ -611,9 +522,8 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output // set size limit of 1 MB, the query stops and results are returned to the user // with the LastEvaluatedKey element to continue the query in a subsequent operation. // Unlike a Scan operation, a Query operation never returns both an empty result -// set and a LastEvaluatedKey value. LastEvaluatedKey is only provided if you -// have used the Limit parameter, or if the result set exceeds 1 MB (prior to -// applying a filter). +// set and a LastEvaluatedKey value. LastEvaluatedKey is only provided if the +// results exceed 1 MB, or if you have used the Limit parameter. // // You can query a table, a local secondary index, or a global secondary index. // For a query on a table or on a local secondary index, you can set the ConsistentRead @@ -628,7 +538,6 @@ func (c *DynamoDB) Query(input *QueryInput) (*QueryOutput, error) { func (c *DynamoDB) QueryPages(input *QueryInput, fn func(p *QueryOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.QueryRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*QueryOutput), lastPage) }) @@ -676,11 +585,9 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * // more information, see Parallel Scan (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#QueryAndScanParallelScan) // in the Amazon DynamoDB Developer Guide. // -// By default, Scan uses eventually consistent reads when accessing the data -// in a table; therefore, the result set might not include the changes to data -// in the table immediately before the operation began. If you need a consistent -// copy of the data, as of the time that the Scan begins, you can set the ConsistentRead -// parameter to true. +// By default, Scan uses eventually consistent reads when acessing the data +// in the table or local secondary index. However, you can use strongly consistent +// reads instead by setting the ConsistentRead parameter to true. func (c *DynamoDB) Scan(input *ScanInput) (*ScanOutput, error) { req, out := c.ScanRequest(input) err := req.Send() @@ -689,7 +596,6 @@ func (c *DynamoDB) Scan(input *ScanInput) (*ScanOutput, error) { func (c *DynamoDB) ScanPages(input *ScanInput, fn func(p *ScanOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ScanRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ScanOutput), lastPage) }) @@ -719,7 +625,9 @@ func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Reque // does not already exist. You can put, delete, or add attribute values. You // can also perform a conditional update on an existing item (insert a new attribute // name-value pair if it doesn't exist, or replace an existing name-value pair -// if it has certain expected attribute values). +// if it has certain expected attribute values). If conditions are specified +// and the item does not exist, then the operation fails and a new item is not +// created. // // You can also return the item's attribute values in the same UpdateItem operation // using the ReturnValues parameter. @@ -754,17 +662,17 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // // You can only perform one of the following operations at once: // -// Modify the provisioned throughput settings of the table. +// Modify the provisioned throughput settings of the table. // -// Enable or disable Streams on the table. +// Enable or disable Streams on the table. // -// Remove a global secondary index from the table. +// Remove a global secondary index from the table. // -// Create a new global secondary index on the table. Once the index begins +// Create a new global secondary index on the table. Once the index begins // backfilling, you can use UpdateTable to perform other operations. // -// UpdateTable is an asynchronous operation; while it is executing, the -// table status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot +// UpdateTable is an asynchronous operation; while it is executing, the table +// status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot // issue another UpdateTable request. When the table returns to the ACTIVE state, // the UpdateTable operation is complete. func (c *DynamoDB) UpdateTable(input *UpdateTableInput) (*UpdateTableOutput, error) { @@ -775,19 +683,17 @@ func (c *DynamoDB) UpdateTable(input *UpdateTableInput) (*UpdateTableOutput, err // Represents an attribute for describing the key schema for the table and indexes. type AttributeDefinition struct { - _ struct{} `type:"structure"` - // A name for the attribute. - AttributeName *string `min:"1" type:"string" required:"true"` + AttributeName *string `type:"string" required:"true"` - // The data type for the attribute, where: - // - // S - the attribute is of type String - // - // N - the attribute is of type Number - // - // B - the attribute is of type Binary + // The data type for the attribute. AttributeType *string `type:"string" required:"true" enum:"ScalarAttributeType"` + + metadataAttributeDefinition `json:"-" xml:"-"` +} + +type metadataAttributeDefinition struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -800,25 +706,6 @@ func (s AttributeDefinition) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttributeDefinition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttributeDefinition"} - 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.AttributeType == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the data for an attribute. You can set one, and only one, of the // elements. // @@ -827,11 +714,7 @@ func (s *AttributeDefinition) Validate() error { // attributes. Each book has one title but can have many authors. The multi-valued // attribute is a set; duplicate values are not allowed. type AttributeValue struct { - _ struct{} `type:"structure"` - // A Binary data type. - // - // B is automatically base64 encoded/decoded by the SDK. B []byte `type:"blob"` // A Boolean data type. @@ -860,6 +743,12 @@ type AttributeValue struct { // A String Set data type. SS []*string `type:"list"` + + metadataAttributeValue `json:"-" xml:"-"` +} + +type metadataAttributeValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -883,18 +772,16 @@ func (s AttributeValue) GoString() string { // have lengths greater than zero; and set type attributes must not be empty. // Requests with empty values will be rejected with a ValidationException exception. type AttributeValueUpdate struct { - _ struct{} `type:"structure"` - // Specifies how to perform the update. Valid values are PUT (default), DELETE, // and ADD. The behavior depends on whether the specified primary key already // exists in the table. // // If an item with the specified Key is found in the table: // - // PUT - Adds the specified attribute to the item. If the attribute already + // PUT - Adds the specified attribute to the item. If the attribute already // exists, it is replaced by the new value. // - // DELETE - If no value is specified, the attribute and its value are removed + // DELETE - If no value is specified, the attribute and its value are removed // from the item. The data type of the specified value must match the existing // value's data type. // @@ -903,7 +790,7 @@ type AttributeValueUpdate struct { // DELETE action specified [a,c], then the final attribute value would be [b]. // Specifying an empty set is an error. // - // ADD - If the attribute does not already exist, then the attribute and + // ADD - If the attribute does not already exist, then the attribute and // its values are added to the item. If the attribute does exist, then the behavior // of ADD depends on the data type of the attribute: // @@ -939,12 +826,12 @@ type AttributeValueUpdate struct { // // If no item with the specified Key is found: // - // PUT - DynamoDB creates a new item with the specified primary key, and + // PUT - DynamoDB creates a new item with the specified primary key, and // then adds the attribute. // - // DELETE - Nothing happens; there is no attribute to delete. + // DELETE - Nothing happens; there is no attribute to delete. // - // ADD - DynamoDB creates an item with the supplied primary key and number + // ADD - DynamoDB creates an item with the supplied primary key and number // (or set of numbers) for the attribute value. The only data types allowed // are number and number set; no other data types can be specified. Action *string `type:"string" enum:"AttributeAction"` @@ -957,6 +844,12 @@ type AttributeValueUpdate struct { // attributes. Each book has one title but can have many authors. The multi-valued // attribute is a set; duplicate values are not allowed. Value *AttributeValue `type:"structure"` + + metadataAttributeValueUpdate `json:"-" xml:"-"` +} + +type metadataAttributeValueUpdate struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -971,15 +864,13 @@ func (s AttributeValueUpdate) GoString() string { // Represents the input of a BatchGetItem operation. type BatchGetItemInput struct { - _ struct{} `type:"structure"` - // A map of one or more table names and, for each table, a map that describes // one or more items to retrieve from that table. Each table name can be used // only once per BatchGetItem request. // // Each element in the map of items to retrieve consists of the following: // - // ConsistentRead - If true, a strongly consistent read is used; if false + // ConsistentRead - If true, a strongly consistent read is used; if false // (the default), an eventually consistent read is used. // // ExpressionAttributeNames - One or more substitution tokens for attribute @@ -997,34 +888,34 @@ type BatchGetItemInput struct { // Use the # character in an expression to dereference an attribute name. // For example, consider the following attribute name: // - // Percentile + // Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot + // The name of this attribute conflicts with a reserved word, so it cannot // be used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // #P = :val // - // Tokens that begin with the : character are expression attribute values, + // Tokens that begin with the : character are expression attribute values, // which are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. // - // Keys - An array of primary key attribute values that define specific - // items in 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 value. For a composite key, you must provide both the partition - // key value and the sort key value. + // Keys - An array of primary key attribute values that define specific items + // in the table. For each primary key, you must provide all of the key attributes. + // For example, with a hash type primary key, you only need to provide the hash + // attribute. For a hash-and-range type primary key, you must provide both the + // hash attribute and the range attribute. // - // ProjectionExpression - A string that identifies one or more attributes + // ProjectionExpression - A string that identifies one or more attributes // to retrieve from the table. These attributes can include scalars, sets, or // elements of a JSON document. The attributes in the expression must be separated // by commas. @@ -1046,19 +937,19 @@ type BatchGetItemInput struct { // This parameter allows you to retrieve attributes of type List or Map; however, // it cannot retrieve individual elements within a List or a Map. // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. + // The names of one or more attributes to retrieve. If no attribute names are + // provided, then all attributes will be returned. If any of the requested attributes + // are not found, they will not appear in the result. // // Note that AttributesToGet has no effect on provisioned throughput consumption. // DynamoDB determines capacity units consumed based on item size, not on the // amount of data that is returned to an application. - RequestItems map[string]*KeysAndAttributes `min:"1" type:"map" required:"true"` + RequestItems map[string]*KeysAndAttributes `type:"map" required:"true"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the + // INDEXES - The response includes the aggregate ConsumedCapacity for the // operation, together with ConsumedCapacity for each table and secondary index // that was accessed. // @@ -1066,11 +957,17 @@ type BatchGetItemInput struct { // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity // information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // TOTAL - The response includes only the aggregate ConsumedCapacity for the + // operation. // - // NONE - No ConsumedCapacity details are included in the response. + // NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` + + metadataBatchGetItemInput `json:"-" xml:"-"` +} + +type metadataBatchGetItemInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1083,43 +980,15 @@ func (s BatchGetItemInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchGetItemInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchGetItemInput"} - if s.RequestItems == nil { - invalidParams.Add(request.NewErrParamRequired("RequestItems")) - } - if s.RequestItems != nil && len(s.RequestItems) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RequestItems", 1)) - } - if s.RequestItems != nil { - for i, v := range s.RequestItems { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RequestItems", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a BatchGetItem operation. type BatchGetItemOutput struct { - _ struct{} `type:"structure"` - // The read capacity units consumed by the operation. // // Each element consists of: // - // TableName - The table that consumed the provisioned throughput. + // TableName - The table that consumed the provisioned throughput. // - // CapacityUnits - The total number of capacity units consumed. + // CapacityUnits - The total number of capacity units consumed. ConsumedCapacity []*ConsumedCapacity `type:"list"` // A map of table name to a list of items. Each object in Responses consists @@ -1134,20 +1003,26 @@ type BatchGetItemOutput struct { // // Each element consists of: // - // Keys - An array of primary key attribute values that define specific - // items in the table. + // Keys - An array of primary key attribute values that define specific items + // in the table. // - // AttributesToGet - One or more attributes to be retrieved from the table + // AttributesToGet - One or more attributes to be retrieved from the table // or index. By default, all attributes are returned. If a requested attribute // is not found, it does not appear in the result. // - // ConsistentRead - The consistency of a read operation. If set to true, + // ConsistentRead - The consistency of a read operation. If set to true, // then a strongly consistent read is used; otherwise, an eventually consistent // read is used. // // If there are no unprocessed keys remaining, the response contains an empty // UnprocessedKeys map. - UnprocessedKeys map[string]*KeysAndAttributes `min:"1" type:"map"` + UnprocessedKeys map[string]*KeysAndAttributes `type:"map"` + + metadataBatchGetItemOutput `json:"-" xml:"-"` +} + +type metadataBatchGetItemOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1162,26 +1037,24 @@ func (s BatchGetItemOutput) GoString() string { // Represents the input of a BatchWriteItem operation. type BatchWriteItemInput struct { - _ struct{} `type:"structure"` - // A map of one or more table names and, for each table, a list of operations // to be performed (DeleteRequest or PutRequest). Each element in the map consists // of the following: // - // DeleteRequest - Perform a DeleteItem operation on the specified item. + // DeleteRequest - Perform a DeleteItem operation on the specified item. // The item to be deleted is identified by a Key subelement: // - // Key - A map of primary key attribute values that uniquely identify the + // Key - A map of primary key attribute values that uniquely identify the // ! item. Each entry in this map consists of an attribute name and an attribute // value. For each primary key, you must provide all of the key attributes. - // For example, with a simple primary key, you only need to provide a value - // for the partition key. For a composite primary key, you must provide values - // for both the partition key and the sort key. + // For example, with a hash type primary key, you only need to provide the hash + // attribute. For a hash-and-range type primary key, you must provide both the + // hash attribute and the range attribute. // - // PutRequest - Perform a PutItem operation on the specified item. The + // PutRequest - Perform a PutItem operation on the specified item. The // item to be put is identified by an Item subelement: // - // Item - A map of attributes and their values. Each entry in this map consists + // Item - A map of attributes and their values. Each entry in this map consists // of an attribute name and an attribute value. Attribute values must not be // null; string and binary type attributes must have lengths greater than zero; // and set type attributes must not be empty. Requests that contain empty values @@ -1190,12 +1063,12 @@ type BatchWriteItemInput struct { // If you specify any attributes that are part of an index key, then the data // types for those attributes must match those of the schema in the table's // attribute definition. - RequestItems map[string][]*WriteRequest `min:"1" type:"map" required:"true"` + RequestItems map[string][]*WriteRequest `type:"map" required:"true"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the + // INDEXES - The response includes the aggregate ConsumedCapacity for the // operation, together with ConsumedCapacity for each table and secondary index // that was accessed. // @@ -1203,10 +1076,10 @@ type BatchWriteItemInput struct { // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity // information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // TOTAL - The response includes only the aggregate ConsumedCapacity for the + // operation. // - // NONE - No ConsumedCapacity details are included in the response. + // NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -1214,6 +1087,12 @@ type BatchWriteItemInput struct { // modified during the operation are returned in the response. If set to NONE // (the default), no statistics are returned. ReturnItemCollectionMetrics *string `type:"string" enum:"ReturnItemCollectionMetrics"` + + metadataBatchWriteItemInput `json:"-" xml:"-"` +} + +type metadataBatchWriteItemInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1226,33 +1105,15 @@ func (s BatchWriteItemInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchWriteItemInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchWriteItemInput"} - if s.RequestItems == nil { - invalidParams.Add(request.NewErrParamRequired("RequestItems")) - } - if s.RequestItems != nil && len(s.RequestItems) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RequestItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a BatchWriteItem operation. type BatchWriteItemOutput struct { - _ struct{} `type:"structure"` - // The capacity units consumed by the operation. // // Each element consists of: // - // TableName - The table that consumed the provisioned throughput. + // TableName - The table that consumed the provisioned throughput. // - // CapacityUnits - The total number of capacity units consumed. + // CapacityUnits - The total number of capacity units consumed. ConsumedCapacity []*ConsumedCapacity `type:"list"` // A list of tables that were processed by BatchWriteItem and, for each table, @@ -1261,10 +1122,10 @@ type BatchWriteItemOutput struct { // // Each entry consists of the following subelements: // - // ItemCollectionKey - The partition key value of the item collection. This - // is the same as the partition key value of the item. + // ItemCollectionKey - The hash key value of the item collection. This is + // the same as the hash key of the item. // - // SizeEstimateRange - An estimate of item collection size, expressed in + // SizeEstimateRange - An estimate of item collection size, expressed in // GB. This 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 @@ -1283,17 +1144,17 @@ type BatchWriteItemOutput struct { // Each UnprocessedItems entry consists of a table name and, for that table, // a list of operations to perform (DeleteRequest or PutRequest). // - // DeleteRequest - Perform a DeleteItem operation on the specified item. + // DeleteRequest - Perform a DeleteItem operation on the specified item. // The item to be deleted is identified by a Key subelement: // - // Key - A map of primary key attribute values that uniquely identify the + // Key - A map of primary key attribute values that uniquely identify the // item. Each entry in this map consists of an attribute name and an attribute // value. // - // PutRequest - Perform a PutItem operation on the specified item. The + // PutRequest - Perform a PutItem operation on the specified item. The // item to be put is identified by an Item subelement: // - // Item - A map of attributes and their values. Each entry in this map consists + // Item - A map of attributes and their values. Each entry in this map consists // of an attribute name and an attribute value. Attribute values must not be // null; string and binary type attributes must have lengths greater than zero; // and set type attributes must not be empty. Requests that contain empty values @@ -1305,7 +1166,13 @@ type BatchWriteItemOutput struct { // // If there are no unprocessed items remaining, the response contains an // empty UnprocessedItems map. - UnprocessedItems map[string][]*WriteRequest `min:"1" type:"map"` + UnprocessedItems map[string][]*WriteRequest `type:"map"` + + metadataBatchWriteItemOutput `json:"-" xml:"-"` +} + +type metadataBatchWriteItemOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1321,10 +1188,14 @@ func (s BatchWriteItemOutput) GoString() string { // Represents the amount of provisioned throughput capacity consumed on a table // or an index. type Capacity struct { - _ struct{} `type:"structure"` - // The total number of capacity units consumed on a table or an index. CapacityUnits *float64 `type:"double"` + + metadataCapacity `json:"-" xml:"-"` +} + +type metadataCapacity struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1345,14 +1216,12 @@ func (s Capacity) GoString() string { // // EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN // -// Condition is also used in a QueryFilter, which evaluates the query results +// Condition is also used in a QueryFilter, which evaluates the query results // and returns only the desired values. // // For a Scan operation, Condition is used in a ScanFilter, which evaluates // the scan results and returns only the desired values. type Condition struct { - _ struct{} `type:"structure"` - // One or more values to evaluate against the supplied attribute. The number // of values in the list depends on the ComparisonOperator being used. // @@ -1372,122 +1241,122 @@ type Condition struct { // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS // | BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // EQ : Equal. EQ is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in the + // request, the value does not match. For example, {"S":"6"} does not equal + // {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // NE : Not equal. NE is supported for all datatypes, including lists and + // NE : Not equal. NE is supported for all datatypes, including lists and // maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue of type String, Number, + // Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // LT : Less than. + // LT : Less than. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // AttributeValueList can contain only one AttributeValue of type String, Number, + // or Binary (not a set type). If an item contains an AttributeValue element + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // GE : Greater than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GT : Greater than. + // GT : Greater than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, + // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, // including lists and maps. // - // This operator tests for the existence of an attribute, not its data type. + // This operator tests for the existence of an attribute, not its data type. // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, // the result is a Boolean true. This result is because the attribute "a" exists; // its data type is not relevant to the NOT_NULL comparison operator. // - // NULL : The attribute does not exist. NULL is supported for all datatypes, + // NULL : The attribute does not exist. NULL is supported for all datatypes, // including lists and maps. // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; + // This operator tests for the nonexistence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NULL, + // the result is a Boolean false. This is because the attribute "a" exists; // its data type is not relevant to the NULL comparison operator. // - // CONTAINS : Checks for a subsequence, or value in a set. + // CONTAINS : Checks for a subsequence, or value in a set. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If the target attribute of the comparison + // is of type String, then the operator checks for a substring match. If the + // target attribute of the comparison is of type Binary, then the operator looks + // for a subsequence of the target that matches the input. If the target attribute + // of the comparison is a set ("SS", "NS", or "BS"), then the operator evaluates + // to true if it finds an exact match with any member of the set. // // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can // be a list; however, "b" cannot be a set, a map, or a list. // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value + // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value // in a set. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If the target attribute of the comparison + // is a String, then the operator checks for the absence of a substring match. + // If the target attribute of the comparison is Binary, then the operator checks + // for the absence of a subsequence of the target that matches the input. If + // the target attribute of the comparison is a set ("SS", "NS", or "BS"), then + // the operator evaluates to true if it does not find an exact match with any + // member of the set. // // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", // "a" can be a list; however, "b" cannot be a set, a map, or a list. // - // BEGINS_WITH : Checks for a prefix. + // BEGINS_WITH : Checks for a prefix. // - // AttributeValueList can contain only one AttributeValue of type String or + // AttributeValueList can contain only one AttributeValue of type String or // Binary (not a Number or a set type). The target attribute of the comparison // must be of type String or Binary (not a Number or a set type). // - // IN : Checks for matching elements within two sets. + // IN : Checks for matching elements within two sets. // - // AttributeValueList can contain one or more AttributeValue elements of type + // AttributeValueList can contain one or more AttributeValue elements of type // String, Number, or Binary (not a set type). These attributes are compared // against an existing set type attribute of an item. If any elements of the // input set are present in the item attribute, the expression evaluates to // true. // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. + // BETWEEN : Greater than or equal to the first value, and less than or equal + // to the second value. // - // AttributeValueList must contain two AttributeValue elements of the same + // AttributeValueList must contain two AttributeValue elements of the same // type, either String, Number, or Binary (not a set type). A target attribute // matches if the target value is greater than, or equal to, the first element // and less than, or equal to, the second element. If an item contains an AttributeValue @@ -1499,6 +1368,12 @@ type Condition struct { // Conditional Parameters (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) // in the Amazon DynamoDB Developer Guide. ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` + + metadataCondition `json:"-" xml:"-"` +} + +type metadataCondition struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1511,19 +1386,6 @@ func (s Condition) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Condition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Condition"} - if s.ComparisonOperator == nil { - invalidParams.Add(request.NewErrParamRequired("ComparisonOperator")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // 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 @@ -1531,8 +1393,6 @@ func (s *Condition) Validate() error { // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html) // in the Amazon DynamoDB Developer Guide. type ConsumedCapacity struct { - _ struct{} `type:"structure"` - // The total number of capacity units consumed by the operation. CapacityUnits *float64 `type:"double"` @@ -1546,7 +1406,13 @@ type ConsumedCapacity struct { Table *Capacity `type:"structure"` // The name of the table that was affected by the operation. - TableName *string `min:"3" type:"string"` + TableName *string `type:"string"` + + metadataConsumedCapacity `json:"-" xml:"-"` +} + +type metadataConsumedCapacity struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1561,13 +1427,11 @@ func (s ConsumedCapacity) GoString() string { // Represents a new global secondary index to be added to an existing table. type CreateGlobalSecondaryIndexAction struct { - _ struct{} `type:"structure"` - // The name of the global secondary index to be created. - IndexName *string `min:"3" type:"string" required:"true"` + IndexName *string `type:"string" required:"true"` // The key schema for the global secondary index. - KeySchema []*KeySchemaElement `min:"1" type:"list" required:"true"` + KeySchema []*KeySchemaElement `type:"list" required:"true"` // Represents attributes that are copied (projected) from the table into an // index. These are in addition to the primary key attributes and index key @@ -1581,6 +1445,12 @@ type CreateGlobalSecondaryIndexAction struct { // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) // in the Amazon DynamoDB Developer Guide. ProvisionedThroughput *ProvisionedThroughput `type:"structure" required:"true"` + + metadataCreateGlobalSecondaryIndexAction `json:"-" xml:"-"` +} + +type metadataCreateGlobalSecondaryIndexAction struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1593,90 +1463,40 @@ func (s CreateGlobalSecondaryIndexAction) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateGlobalSecondaryIndexAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateGlobalSecondaryIndexAction"} - if s.IndexName == nil { - invalidParams.Add(request.NewErrParamRequired("IndexName")) - } - if s.IndexName != nil && len(*s.IndexName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("IndexName", 3)) - } - if s.KeySchema == nil { - invalidParams.Add(request.NewErrParamRequired("KeySchema")) - } - if s.KeySchema != nil && len(s.KeySchema) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeySchema", 1)) - } - if s.Projection == nil { - invalidParams.Add(request.NewErrParamRequired("Projection")) - } - if s.ProvisionedThroughput == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisionedThroughput")) - } - if s.KeySchema != nil { - for i, v := range s.KeySchema { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "KeySchema", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Projection != nil { - if err := s.Projection.Validate(); err != nil { - invalidParams.AddNested("Projection", err.(request.ErrInvalidParams)) - } - } - if s.ProvisionedThroughput != nil { - if err := s.ProvisionedThroughput.Validate(); err != nil { - invalidParams.AddNested("ProvisionedThroughput", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of a CreateTable operation. type CreateTableInput struct { - _ struct{} `type:"structure"` - // An array of attributes that describe the key schema for the table and indexes. AttributeDefinitions []*AttributeDefinition `type:"list" required:"true"` // One or more global secondary indexes (the maximum is five) to be created // on the table. Each global secondary index in the array includes the following: // - // IndexName - The name of the global secondary index. Must be unique only + // IndexName - The name of the global secondary index. Must be unique only // for this table. // - // KeySchema - Specifies the key schema for the global secondary index. + // KeySchema - Specifies the key schema for the global secondary index. // - // Projection - Specifies attributes that are copied (projected) from the + // Projection - Specifies attributes that are copied (projected) from the // table into the index. These are in addition to the primary key attributes // and index key attributes, which are automatically projected. Each attribute // specification is composed of: // - // ProjectionType - One of the following: + // ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that + // NonKeyAttributes - A list of one or more non-key attribute names that // are projected into the secondary index. The total count of attributes provided // in NonKeyAttributes, summed across all of the secondary indexes, must not // exceed 20. If you project the same attribute into two different indexes, // this counts as two distinct attributes when determining the total. // - // ProvisionedThroughput - The provisioned throughput settings for the + // ProvisionedThroughput - The provisioned throughput settings for the // global secondary index, consisting of read and write capacity units. GlobalSecondaryIndexes []*GlobalSecondaryIndex `type:"list"` @@ -1687,62 +1507,49 @@ type CreateTableInput struct { // // Each KeySchemaElement in the array is composed of: // - // AttributeName - The name of this key attribute. - // - // KeyType - The role that the key attribute will assume: - // - // HASH - partition key + // AttributeName - The name of this key attribute. // - // RANGE - sort key + // KeyType - Determines whether the key attribute is HASH or RANGE. // - // The partition key of an item is also known as its hash attribute. The - // term "hash attribute" derives from DynamoDB' usage of an internal hash function - // to evenly distribute data items across partitions, based on their partition - // key values. + // For a primary key that consists of a hash attribute, you must provide + // exactly one element with a KeyType of HASH. // - // 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. - // - // For a simple primary key (partition key), you must provide exactly one - // element with a KeyType of HASH. - // - // For a composite primary key (partition key and sort key), you must provide + // For a primary key that consists of hash and range attributes, you must provide // exactly two elements, in this order: The first element must have a KeyType // of HASH, and the second element must have a KeyType of RANGE. // // For more information, see Specifying the Primary Key (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key) // in the Amazon DynamoDB Developer Guide. - KeySchema []*KeySchemaElement `min:"1" type:"list" required:"true"` + KeySchema []*KeySchemaElement `type:"list" required:"true"` // One or more local secondary indexes (the maximum is five) to be created on - // the table. Each index is scoped to a given partition key value. There is - // a 10 GB size limit per partition key value; otherwise, the size of a local - // secondary index is unconstrained. + // the table. Each index is scoped to a given hash key value. There is a 10 + // GB size limit per hash key; otherwise, the size of a local secondary index + // is unconstrained. // // Each local secondary index in the array includes the following: // - // IndexName - The name of the local secondary index. Must be unique only + // IndexName - The name of the local secondary index. Must be unique only // for this table. // - // KeySchema - Specifies the key schema for the local secondary index. - // The key schema must begin with the same partition key as the table. + // KeySchema - Specifies the key schema for the local secondary index. The + // key schema must begin with the same hash key attribute as the table. // - // Projection - Specifies attributes that are copied (projected) from the + // Projection - Specifies attributes that are copied (projected) from the // table into the index. These are in addition to the primary key attributes // and index key attributes, which are automatically projected. Each attribute // specification is composed of: // - // ProjectionType - One of the following: + // ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that + // NonKeyAttributes - A list of one or more non-key attribute names that // are projected into the secondary index. The total count of attributes provided // in NonKeyAttributes, summed across all of the secondary indexes, must not // exceed 20. If you project the same attribute into two different indexes, @@ -1759,28 +1566,34 @@ type CreateTableInput struct { // The settings for DynamoDB Streams on the table. These settings consist of: // - // StreamEnabled - Indicates whether Streams is to be enabled (true) or - // disabled (false). + // StreamEnabled - Indicates whether Streams is to be enabled (true) or disabled + // (false). // - // StreamViewType - When an item in the table is modified, StreamViewType + // StreamViewType - When an item in the table is modified, StreamViewType // determines what information is written to the table's stream. Valid values // for StreamViewType are: // - // KEYS_ONLY - Only the key attributes of the modified item are written + // KEYS_ONLY - Only the key attributes of the modified item are written to + // the stream. + // + // NEW_IMAGE - The entire item, as it appears after it was modified, is written // to the stream. // - // NEW_IMAGE - The entire item, as it appears after it was modified, is - // written to the stream. + // OLD_IMAGE - The entire item, as it appeared before it was modified, is written + // to the stream. // - // OLD_IMAGE - The entire item, as it appeared before it was modified, is + // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are // written to the stream. - // - // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item - // are written to the stream. StreamSpecification *StreamSpecification `type:"structure"` // The name of the table to create. - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` + + metadataCreateTableInput `json:"-" xml:"-"` +} + +type metadataCreateTableInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1793,85 +1606,16 @@ func (s CreateTableInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTableInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTableInput"} - if s.AttributeDefinitions == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeDefinitions")) - } - if s.KeySchema == nil { - invalidParams.Add(request.NewErrParamRequired("KeySchema")) - } - if s.KeySchema != nil && len(s.KeySchema) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeySchema", 1)) - } - if s.ProvisionedThroughput == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisionedThroughput")) - } - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - if s.AttributeDefinitions != nil { - for i, v := range s.AttributeDefinitions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AttributeDefinitions", i), err.(request.ErrInvalidParams)) - } - } - } - if s.GlobalSecondaryIndexes != nil { - for i, v := range s.GlobalSecondaryIndexes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GlobalSecondaryIndexes", i), err.(request.ErrInvalidParams)) - } - } - } - if s.KeySchema != nil { - for i, v := range s.KeySchema { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "KeySchema", i), err.(request.ErrInvalidParams)) - } - } - } - if s.LocalSecondaryIndexes != nil { - for i, v := range s.LocalSecondaryIndexes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LocalSecondaryIndexes", i), err.(request.ErrInvalidParams)) - } - } - } - if s.ProvisionedThroughput != nil { - if err := s.ProvisionedThroughput.Validate(); err != nil { - invalidParams.AddNested("ProvisionedThroughput", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a CreateTable operation. type CreateTableOutput struct { - _ struct{} `type:"structure"` - // Represents the properties of a table. TableDescription *TableDescription `type:"structure"` + + metadataCreateTableOutput `json:"-" xml:"-"` +} + +type metadataCreateTableOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1886,10 +1630,14 @@ func (s CreateTableOutput) GoString() string { // Represents a global secondary index to be deleted from an existing table. type DeleteGlobalSecondaryIndexAction struct { - _ struct{} `type:"structure"` - // The name of the global secondary index to be deleted. - IndexName *string `min:"3" type:"string" required:"true"` + IndexName *string `type:"string" required:"true"` + + metadataDeleteGlobalSecondaryIndexAction `json:"-" xml:"-"` +} + +type metadataDeleteGlobalSecondaryIndexAction struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1902,26 +1650,8 @@ func (s DeleteGlobalSecondaryIndexAction) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteGlobalSecondaryIndexAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteGlobalSecondaryIndexAction"} - if s.IndexName == nil { - invalidParams.Add(request.NewErrParamRequired("IndexName")) - } - if s.IndexName != nil && len(*s.IndexName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("IndexName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of a DeleteItem operation. type DeleteItemInput struct { - _ struct{} `type:"structure"` - // A condition that must be satisfied in order for a conditional DeleteItem // to succeed. // @@ -1932,8 +1662,7 @@ type DeleteItemInput struct { // // These function names are case-sensitive. // - // Comparison operators: = | <> | < | > | <= | - // >= | BETWEEN | IN + // Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // // Logical operators: AND | OR | NOT // @@ -1941,7 +1670,7 @@ type DeleteItemInput struct { // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. // - // ConditionExpression replaces the legacy ConditionalOperator and Expected + // ConditionExpression replaces the legacy ConditionalOperator and Expected // parameters. ConditionExpression *string `type:"string"` @@ -1952,17 +1681,17 @@ type DeleteItemInput struct { // // A logical operator to apply to the conditions in the Expected map: // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // AND - If all of the conditions evaluate to true, then the entire map evaluates + // to true. // - // OR - If at least one of the conditions evaluate to true, then the entire + // OR - If at least one of the conditions evaluate to true, then the entire // map evaluates to true. // - // If you omit ConditionalOperator, then AND is the default. + // If you omit ConditionalOperator, then AND is the default. // // The operation will succeed only if the entire map evaluates to true. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // This is a legacy parameter, for backward compatibility. New applications @@ -1987,9 +1716,9 @@ type DeleteItemInput struct { // If the Expected map evaluates to true, then the conditional operation succeeds; // otherwise, it fails. // - // Expected contains the following: + // Expected contains the following: // - // AttributeValueList - One or more values to evaluate against the supplied + // AttributeValueList - One or more values to evaluate against the supplied // attribute. The number of values in the list depends on the ComparisonOperator // being used. // @@ -1997,133 +1726,132 @@ type DeleteItemInput struct { // // String value comparisons for greater than, equals, or less than are based // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters. // // For type Binary, DynamoDB treats each byte of the binary data as unsigned // when it compares binary values. // - // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. + // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. // When performing the comparison, DynamoDB uses strongly consistent reads. // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS // | BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // EQ : Equal. EQ is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in the + // request, the value does not match. For example, {"S":"6"} does not equal + // {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // NE : Not equal. NE is supported for all datatypes, including lists and + // NE : Not equal. NE is supported for all datatypes, including lists and // maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue of type String, Number, + // Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // LT : Less than. + // LT : Less than. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // AttributeValueList can contain only one AttributeValue of type String, Number, + // or Binary (not a set type). If an item contains an AttributeValue element + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // GE : Greater than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GT : Greater than. + // GT : Greater than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, + // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, // including lists and maps. // - // This operator tests for the existence of an attribute, not its data type. + // This operator tests for the existence of an attribute, not its data type. // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, // the result is a Boolean true. This result is because the attribute "a" exists; // its data type is not relevant to the NOT_NULL comparison operator. // - // NULL : The attribute does not exist. NULL is supported for all datatypes, + // NULL : The attribute does not exist. NULL is supported for all datatypes, // including lists and maps. // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; + // This operator tests for the nonexistence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NULL, + // the result is a Boolean false. This is because the attribute "a" exists; // its data type is not relevant to the NULL comparison operator. // - // CONTAINS : Checks for a subsequence, or value in a set. + // CONTAINS : Checks for a subsequence, or value in a set. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If the target attribute of the comparison + // is of type String, then the operator checks for a substring match. If the + // target attribute of the comparison is of type Binary, then the operator looks + // for a subsequence of the target that matches the input. If the target attribute + // of the comparison is a set ("SS", "NS", or "BS"), then the operator evaluates + // to true if it finds an exact match with any member of the set. // // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can // be a list; however, "b" cannot be a set, a map, or a list. // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value + // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value // in a set. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If the target attribute of the comparison + // is a String, then the operator checks for the absence of a substring match. + // If the target attribute of the comparison is Binary, then the operator checks + // for the absence of a subsequence of the target that matches the input. If + // the target attribute of the comparison is a set ("SS", "NS", or "BS"), then + // the operator evaluates to true if it does not find an exact match with any + // member of the set. // // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", // "a" can be a list; however, "b" cannot be a set, a map, or a list. // - // BEGINS_WITH : Checks for a prefix. + // BEGINS_WITH : Checks for a prefix. // - // AttributeValueList can contain only one AttributeValue of type String or + // AttributeValueList can contain only one AttributeValue of type String or // Binary (not a Number or a set type). The target attribute of the comparison // must be of type String or Binary (not a Number or a set type). // - // IN : Checks for matching elements within two sets. + // IN : Checks for matching elements within two sets. // - // AttributeValueList can contain one or more AttributeValue elements of type + // AttributeValueList can contain one or more AttributeValue elements of type // String, Number, or Binary (not a set type). These attributes are compared // against an existing set type attribute of an item. If any elements of the // input set are present in the item attribute, the expression evaluates to // true. // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. + // BETWEEN : Greater than or equal to the first value, and less than or equal + // to the second value. // - // AttributeValueList must contain two AttributeValue elements of the same + // AttributeValueList must contain two AttributeValue elements of the same // type, either String, Number, or Binary (not a set type). A target attribute // matches if the target value is greater than, or equal to, the first element // and less than, or equal to, the second element. If an item contains an AttributeValue @@ -2138,27 +1866,27 @@ type DeleteItemInput struct { // For backward compatibility with previous DynamoDB releases, the following // parameters can be used instead of AttributeValueList and ComparisonOperator: // - // Value - A value for DynamoDB to compare with an attribute. + // Value - A value for DynamoDB to compare with an attribute. // - // Exists - A Boolean value that causes DynamoDB to evaluate the value before + // Exists - A Boolean value that causes DynamoDB to evaluate the value before // attempting the conditional operation: // // If Exists is true, DynamoDB will check to see if that attribute value // already exists in the table. If it is found, then the condition evaluates // to true; otherwise the condition evaluate to false. // - // If Exists is false, DynamoDB assumes that the attribute value does not + // If Exists is false, DynamoDB assumes that the attribute value does not // exist in the table. If in fact the value does not exist, then the assumption // is valid and the condition evaluates to true. If the value is found, despite // the assumption that it does not exist, the condition evaluates to false. // - // Note that the default value for Exists is true. + // Note that the default value for Exists is true. // // The Value and Exists parameters are incompatible with AttributeValueList // and ComparisonOperator. Note that if you use both sets of parameters at once, // DynamoDB will return a ValidationException exception. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. Expected map[string]*ExpectedAttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The @@ -2175,25 +1903,25 @@ type DeleteItemInput struct { // Use the # character in an expression to dereference an attribute name. // For example, consider the following attribute name: // - // Percentile + // Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot + // The name of this attribute conflicts with a reserved word, so it cannot // be used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // #P = :val // - // Tokens that begin with the : character are expression attribute values, + // Tokens that begin with the : character are expression attribute values, // which are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -2203,16 +1931,16 @@ type DeleteItemInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -2223,15 +1951,15 @@ type DeleteItemInput struct { // key of the item to delete. // // For the primary key, you must provide all of the attributes. For example, - // with a simple primary key, you only need to provide a value for the partition - // key. For a composite primary key, you must provide values for both the partition - // key and the sort key. + // with a hash type primary key, you only need to provide the hash attribute. + // For a hash-and-range type primary key, you must provide both the hash attribute + // and the range attribute. Key map[string]*AttributeValue `type:"map" required:"true"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the + // INDEXES - The response includes the aggregate ConsumedCapacity for the // operation, together with ConsumedCapacity for each table and secondary index // that was accessed. // @@ -2239,10 +1967,10 @@ type DeleteItemInput struct { // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity // information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // TOTAL - The response includes only the aggregate ConsumedCapacity for the + // operation. // - // NONE - No ConsumedCapacity details are included in the response. + // NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -2254,17 +1982,20 @@ type DeleteItemInput struct { // Use ReturnValues if you want to get the item attributes as they appeared // before they were deleted. For DeleteItem, the valid values are: // - // NONE - If ReturnValues is not specified, or if its value is NONE, then + // NONE - If ReturnValues is not specified, or if its value is NONE, then // nothing is returned. (This setting is the default for ReturnValues.) // - // ALL_OLD - The content of the old item is returned. - // - // The ReturnValues parameter is used by several DynamoDB operations; however, - // DeleteItem does not recognize any values other than NONE or ALL_OLD. + // ALL_OLD - The content of the old item is returned. ReturnValues *string `type:"string" enum:"ReturnValue"` // The name of the table from which to delete the item. - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` + + metadataDeleteItemInput `json:"-" xml:"-"` +} + +type metadataDeleteItemInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2277,29 +2008,8 @@ func (s DeleteItemInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteItemInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteItemInput"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DeleteItem operation. type DeleteItemOutput struct { - _ struct{} `type:"structure"` - // A map of attribute names to AttributeValue objects, representing the item // as it appeared before the DeleteItem operation. This map appears in the response // only if ReturnValues was specified as ALL_OLD in the request. @@ -2320,11 +2030,11 @@ type DeleteItemOutput struct { // // Each ItemCollectionMetrics element consists of: // - // ItemCollectionKey - The partition key value of the item collection. This - // is the same as the partition key value of the item itself. + // ItemCollectionKey - The hash key value of the item collection. This is + // the same as the hash key of the item. // - // SizeEstimateRange - An estimate of item collection size, in gigabytes. - // This value is a two-element array containing a lower bound and an upper bound + // SizeEstimateRange - 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 @@ -2333,6 +2043,12 @@ type DeleteItemOutput struct { // The estimate is subject to change over time; therefore, do not rely on the // precision or accuracy of the estimate. ItemCollectionMetrics *ItemCollectionMetrics `type:"structure"` + + metadataDeleteItemOutput `json:"-" xml:"-"` +} + +type metadataDeleteItemOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2347,12 +2063,16 @@ func (s DeleteItemOutput) GoString() string { // Represents a request to perform a DeleteItem operation on an item. type DeleteRequest struct { - _ struct{} `type:"structure"` - // A map of attribute name to attribute values, representing the primary key // of the item to delete. All of the table's primary key attributes must be // specified, and their data types must match those of the table's key schema. Key map[string]*AttributeValue `type:"map" required:"true"` + + metadataDeleteRequest `json:"-" xml:"-"` +} + +type metadataDeleteRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2367,10 +2087,14 @@ func (s DeleteRequest) GoString() string { // Represents the input of a DeleteTable operation. type DeleteTableInput struct { - _ struct{} `type:"structure"` - // The name of the table to delete. - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` + + metadataDeleteTableInput `json:"-" xml:"-"` +} + +type metadataDeleteTableInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2383,94 +2107,38 @@ func (s DeleteTableInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTableInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTableInput"} - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DeleteTable operation. type DeleteTableOutput struct { - _ struct{} `type:"structure"` - // Represents the properties of a table. TableDescription *TableDescription `type:"structure"` -} - -// String returns the string representation -func (s DeleteTableOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteTableOutput) GoString() string { - return s.String() -} - -// Represents the input of a DescribeLimits operation. Has no content. -type DescribeLimitsInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DescribeLimitsInput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DescribeLimitsInput) GoString() string { - return s.String() + metadataDeleteTableOutput `json:"-" xml:"-"` } -// Represents the output of a DescribeLimits operation. -type DescribeLimitsOutput struct { - _ struct{} `type:"structure"` - - // The maximum total read capacity units that your account allows you to provision - // across all of your tables in this region. - AccountMaxReadCapacityUnits *int64 `min:"1" type:"long"` - - // The maximum total write capacity units that your account allows you to provision - // across all of your tables in this region. - AccountMaxWriteCapacityUnits *int64 `min:"1" type:"long"` - - // The maximum read capacity units that your account allows you to provision - // for a new table that you are creating in this region, including the read - // capacity units provisioned for its global secondary indexes (GSIs). - TableMaxReadCapacityUnits *int64 `min:"1" type:"long"` - - // The maximum write capacity units that your account allows you to provision - // for a new table that you are creating in this region, including the write - // capacity units provisioned for its global secondary indexes (GSIs). - TableMaxWriteCapacityUnits *int64 `min:"1" type:"long"` +type metadataDeleteTableOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeLimitsOutput) String() string { +func (s DeleteTableOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeLimitsOutput) GoString() string { +func (s DeleteTableOutput) GoString() string { return s.String() } // Represents the input of a DescribeTable operation. type DescribeTableInput struct { - _ struct{} `type:"structure"` - // The name of the table to describe. - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` + + metadataDescribeTableInput `json:"-" xml:"-"` +} + +type metadataDescribeTableInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2483,28 +2151,16 @@ func (s DescribeTableInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTableInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTableInput"} - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DescribeTable operation. type DescribeTableOutput struct { - _ struct{} `type:"structure"` - // Represents the properties of a table. Table *TableDescription `type:"structure"` + + metadataDescribeTableOutput `json:"-" xml:"-"` +} + +type metadataDescribeTableOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2534,12 +2190,10 @@ func (s DescribeTableOutput) GoString() string { // In this case, the conditional operation succeeds only if the comparison evaluates // to false. // -// Value and Exists are incompatible with AttributeValueList and ComparisonOperator. +// Value and Exists are incompatible with AttributeValueList and ComparisonOperator. // Note that if you use both sets of parameters at once, DynamoDB will return // a ValidationException exception. type ExpectedAttributeValue struct { - _ struct{} `type:"structure"` - // One or more values to evaluate against the supplied attribute. The number // of values in the list depends on the ComparisonOperator being used. // @@ -2562,122 +2216,122 @@ type ExpectedAttributeValue struct { // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS // | BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // EQ : Equal. EQ is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in the + // request, the value does not match. For example, {"S":"6"} does not equal + // {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // NE : Not equal. NE is supported for all datatypes, including lists and + // NE : Not equal. NE is supported for all datatypes, including lists and // maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue of type String, Number, + // Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // LT : Less than. + // LT : Less than. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // AttributeValueList can contain only one AttributeValue of type String, Number, + // or Binary (not a set type). If an item contains an AttributeValue element + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // GE : Greater than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GT : Greater than. + // GT : Greater than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, + // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, // including lists and maps. // - // This operator tests for the existence of an attribute, not its data type. + // This operator tests for the existence of an attribute, not its data type. // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, // the result is a Boolean true. This result is because the attribute "a" exists; // its data type is not relevant to the NOT_NULL comparison operator. // - // NULL : The attribute does not exist. NULL is supported for all datatypes, + // NULL : The attribute does not exist. NULL is supported for all datatypes, // including lists and maps. // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; + // This operator tests for the nonexistence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NULL, + // the result is a Boolean false. This is because the attribute "a" exists; // its data type is not relevant to the NULL comparison operator. // - // CONTAINS : Checks for a subsequence, or value in a set. + // CONTAINS : Checks for a subsequence, or value in a set. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If the target attribute of the comparison + // is of type String, then the operator checks for a substring match. If the + // target attribute of the comparison is of type Binary, then the operator looks + // for a subsequence of the target that matches the input. If the target attribute + // of the comparison is a set ("SS", "NS", or "BS"), then the operator evaluates + // to true if it finds an exact match with any member of the set. // // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can // be a list; however, "b" cannot be a set, a map, or a list. // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value + // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value // in a set. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If the target attribute of the comparison + // is a String, then the operator checks for the absence of a substring match. + // If the target attribute of the comparison is Binary, then the operator checks + // for the absence of a subsequence of the target that matches the input. If + // the target attribute of the comparison is a set ("SS", "NS", or "BS"), then + // the operator evaluates to true if it does not find an exact match with any + // member of the set. // // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", // "a" can be a list; however, "b" cannot be a set, a map, or a list. // - // BEGINS_WITH : Checks for a prefix. + // BEGINS_WITH : Checks for a prefix. // - // AttributeValueList can contain only one AttributeValue of type String or + // AttributeValueList can contain only one AttributeValue of type String or // Binary (not a Number or a set type). The target attribute of the comparison // must be of type String or Binary (not a Number or a set type). // - // IN : Checks for matching elements within two sets. + // IN : Checks for matching elements within two sets. // - // AttributeValueList can contain one or more AttributeValue elements of type + // AttributeValueList can contain one or more AttributeValue elements of type // String, Number, or Binary (not a set type). These attributes are compared // against an existing set type attribute of an item. If any elements of the // input set are present in the item attribute, the expression evaluates to // true. // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. + // BETWEEN : Greater than or equal to the first value, and less than or equal + // to the second value. // - // AttributeValueList must contain two AttributeValue elements of the same + // AttributeValueList must contain two AttributeValue elements of the same // type, either String, Number, or Binary (not a set type). A target attribute // matches if the target value is greater than, or equal to, the first element // and less than, or equal to, the second element. If an item contains an AttributeValue @@ -2703,10 +2357,10 @@ type ExpectedAttributeValue struct { // // DynamoDB returns a ValidationException if: // - // Exists is true but there is no Value to check. (You expect a value to + // Exists is true but there is no Value to check. (You expect a value to // exist, but don't specify what that value is.) // - // Exists is false but you also provide a Value. (You cannot expect an attribute + // Exists is false but you also provide a Value. (You cannot expect an attribute // to have a value, while also expecting it not to exist.) Exists *bool `type:"boolean"` @@ -2718,6 +2372,12 @@ type ExpectedAttributeValue struct { // attributes. Each book has one title but can have many authors. The multi-valued // attribute is a set; duplicate values are not allowed. Value *AttributeValue `type:"structure"` + + metadataExpectedAttributeValue `json:"-" xml:"-"` +} + +type metadataExpectedAttributeValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2732,8 +2392,6 @@ func (s ExpectedAttributeValue) GoString() string { // Represents the input of a GetItem operation. type GetItemInput struct { - _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications // should use ProjectionExpression instead. Do not combine legacy parameters // and expression parameters in a single API call; otherwise, DynamoDB will @@ -2742,14 +2400,14 @@ type GetItemInput struct { // This parameter allows you to retrieve attributes of type List or Map; however, // it cannot retrieve individual elements within a List or a Map. // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. + // The names of one or more attributes to retrieve. If no attribute names are + // provided, then all attributes will be returned. If any of the requested attributes + // are not found, they will not appear in the result. // // Note that AttributesToGet has no effect on provisioned throughput consumption. // DynamoDB determines capacity units consumed based on item size, not on the // amount of data that is returned to an application. - AttributesToGet []*string `min:"1" type:"list"` + AttributesToGet []*string `type:"list"` // Determines the read consistency model: If set to true, then the operation // uses strongly consistent reads; otherwise, the operation uses eventually @@ -2770,25 +2428,25 @@ type GetItemInput struct { // Use the # character in an expression to dereference an attribute name. // For example, consider the following attribute name: // - // Percentile + // Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot + // The name of this attribute conflicts with a reserved word, so it cannot // be used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // #P = :val // - // Tokens that begin with the : character are expression attribute values, + // Tokens that begin with the : character are expression attribute values, // which are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -2796,9 +2454,9 @@ type GetItemInput struct { // key of the item to retrieve. // // For the primary key, you must provide all of the attributes. For example, - // with a simple primary key, you only need to provide a value for the partition - // key. For a composite primary key, you must provide values for both the partition - // key and the sort key. + // with a hash type primary key, you only need to provide the hash attribute. + // For a hash-and-range type primary key, you must provide both the hash attribute + // and the range attribute. Key map[string]*AttributeValue `type:"map" required:"true"` // A string that identifies one or more attributes to retrieve from the table. @@ -2812,13 +2470,13 @@ type GetItemInput struct { // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. // - // ProjectionExpression replaces the legacy AttributesToGet parameter. + // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the + // INDEXES - The response includes the aggregate ConsumedCapacity for the // operation, together with ConsumedCapacity for each table and secondary index // that was accessed. // @@ -2826,14 +2484,20 @@ type GetItemInput struct { // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity // information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // TOTAL - The response includes only the aggregate ConsumedCapacity for the + // operation. // - // NONE - No ConsumedCapacity details are included in the response. + // NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // The name of the table containing the requested item. - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` + + metadataGetItemInput `json:"-" xml:"-"` +} + +type metadataGetItemInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2846,32 +2510,8 @@ func (s GetItemInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetItemInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetItemInput"} - if s.AttributesToGet != nil && len(s.AttributesToGet) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributesToGet", 1)) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a GetItem operation. type GetItemOutput struct { - _ struct{} `type:"structure"` - // 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 @@ -2882,6 +2522,12 @@ type GetItemOutput struct { // A map of attribute names to AttributeValue objects, as specified by AttributesToGet. Item map[string]*AttributeValue `type:"map"` + + metadataGetItemOutput `json:"-" xml:"-"` +} + +type metadataGetItemOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2896,28 +2542,13 @@ func (s GetItemOutput) GoString() string { // Represents the properties of a global secondary index. type GlobalSecondaryIndex struct { - _ struct{} `type:"structure"` - // The name of the global secondary index. The name must be unique among all // other indexes on this table. - IndexName *string `min:"3" type:"string" required:"true"` + IndexName *string `type:"string" required:"true"` // The complete key schema for a global secondary index, which consists of one - // or more pairs of attribute names and key types: - // - // 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' 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. - KeySchema []*KeySchemaElement `min:"1" type:"list" required:"true"` + // or more pairs of attribute names and key types (HASH or RANGE). + KeySchema []*KeySchemaElement `type:"list" required:"true"` // Represents attributes that are copied (projected) from the table into an // index. These are in addition to the primary key attributes and index key @@ -2931,6 +2562,12 @@ type GlobalSecondaryIndex struct { // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) // in the Amazon DynamoDB Developer Guide. ProvisionedThroughput *ProvisionedThroughput `type:"structure" required:"true"` + + metadataGlobalSecondaryIndex `json:"-" xml:"-"` +} + +type metadataGlobalSecondaryIndex struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2943,66 +2580,16 @@ func (s GlobalSecondaryIndex) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GlobalSecondaryIndex) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GlobalSecondaryIndex"} - if s.IndexName == nil { - invalidParams.Add(request.NewErrParamRequired("IndexName")) - } - if s.IndexName != nil && len(*s.IndexName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("IndexName", 3)) - } - if s.KeySchema == nil { - invalidParams.Add(request.NewErrParamRequired("KeySchema")) - } - if s.KeySchema != nil && len(s.KeySchema) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeySchema", 1)) - } - if s.Projection == nil { - invalidParams.Add(request.NewErrParamRequired("Projection")) - } - if s.ProvisionedThroughput == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisionedThroughput")) - } - if s.KeySchema != nil { - for i, v := range s.KeySchema { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "KeySchema", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Projection != nil { - if err := s.Projection.Validate(); err != nil { - invalidParams.AddNested("Projection", err.(request.ErrInvalidParams)) - } - } - if s.ProvisionedThroughput != nil { - if err := s.ProvisionedThroughput.Validate(); err != nil { - invalidParams.AddNested("ProvisionedThroughput", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the properties of a global secondary index. type GlobalSecondaryIndexDescription struct { - _ struct{} `type:"structure"` - // Indicates whether the index is currently backfilling. Backfilling is the // process of reading items from the table and determining whether they can - // be added to the index. (Not all items will qualify: For example, a partition - // key cannot have any duplicate values.) If an item can be added to the index, + // be added to the index. (Not all items will qualify: For example, a hash key + // attribute cannot have any duplicates.) If an item can be added to the index, // DynamoDB will do so. After all items have been processed, the backfilling // operation is complete and Backfilling is false. // - // For indexes that were created during a CreateTable operation, the Backfilling + // For indexes that were created during a CreateTable operation, the Backfilling // attribute does not appear in the DescribeTable output. Backfilling *bool `type:"boolean"` @@ -3010,7 +2597,7 @@ type GlobalSecondaryIndexDescription struct { IndexArn *string `type:"string"` // The name of the global secondary index. - IndexName *string `min:"3" type:"string"` + IndexName *string `type:"string"` // The total size of the specified index, in bytes. DynamoDB updates this value // approximately every six hours. Recent changes might not be reflected in this @@ -3019,35 +2606,22 @@ type GlobalSecondaryIndexDescription struct { // The current state of the global secondary index: // - // CREATING - The index is being created. + // CREATING - The index is being created. // - // UPDATING - The index is being updated. + // UPDATING - The index is being updated. // - // DELETING - The index is being deleted. + // DELETING - The index is being deleted. // - // ACTIVE - The index is ready for use. + // ACTIVE - The index is ready for use. IndexStatus *string `type:"string" enum:"IndexStatus"` // The number of items in the specified index. DynamoDB updates this value approximately // every six hours. Recent changes might not be reflected in this value. ItemCount *int64 `type:"long"` - // The complete key schema for a global secondary index, which consists of one - // or more pairs of attribute names and key types: - // - // 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' 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. - KeySchema []*KeySchemaElement `min:"1" type:"list"` + // The complete key schema for the global secondary index, consisting of one + // or more pairs of attribute names and key types (HASH or RANGE). + KeySchema []*KeySchemaElement `type:"list"` // Represents attributes that are copied (projected) from the table into an // index. These are in addition to the primary key attributes and index key @@ -3057,6 +2631,12 @@ type GlobalSecondaryIndexDescription struct { // Represents the provisioned throughput settings for the table, consisting // of read and write capacity units, along with data about increases and decreases. ProvisionedThroughput *ProvisionedThroughputDescription `type:"structure"` + + metadataGlobalSecondaryIndexDescription `json:"-" xml:"-"` +} + +type metadataGlobalSecondaryIndexDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3071,27 +2651,24 @@ func (s GlobalSecondaryIndexDescription) GoString() string { // Represents one of the following: // -// A new global secondary index to be added to an existing table. +// A new global secondary index to be added to an existing table. // -// New provisioned throughput parameters for an existing global secondary -// index. +// New provisioned throughput parameters for an existing global secondary index. // -// An existing global secondary index to be removed from an existing table. +// An existing global secondary index to be removed from an existing table. type GlobalSecondaryIndexUpdate struct { - _ struct{} `type:"structure"` - // The parameters required for creating a global secondary index on an existing // table: // - // IndexName + // IndexName // - // KeySchema + // KeySchema // - // AttributeDefinitions + // AttributeDefinitions // - // Projection + // Projection // - // ProvisionedThroughput + // ProvisionedThroughput Create *CreateGlobalSecondaryIndexAction `type:"structure"` // The name of an existing global secondary index to be removed. @@ -3100,6 +2677,12 @@ type GlobalSecondaryIndexUpdate struct { // The name of an existing global secondary index, along with new provisioned // throughput settings to be applied to that index. Update *UpdateGlobalSecondaryIndexAction `type:"structure"` + + metadataGlobalSecondaryIndexUpdate `json:"-" xml:"-"` +} + +type metadataGlobalSecondaryIndexUpdate struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3112,40 +2695,13 @@ func (s GlobalSecondaryIndexUpdate) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GlobalSecondaryIndexUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GlobalSecondaryIndexUpdate"} - 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 -} - // 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. + // The hash key value of the item collection. This value is the same as the + // hash key of the item. ItemCollectionKey map[string]*AttributeValue `type:"map"` // An estimate of item collection size, in gigabytes. This value is a two-element @@ -3158,6 +2714,12 @@ type ItemCollectionMetrics struct { // The estimate is subject to change over time; therefore, do not rely on the // precision or accuracy of the estimate. SizeEstimateRangeGB []*float64 `type:"list"` + + metadataItemCollectionMetrics `json:"-" xml:"-"` +} + +type metadataItemCollectionMetrics struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3174,34 +2736,21 @@ func (s ItemCollectionMetrics) GoString() string { // 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. +// For example, a hash type primary key would be represented by one KeySchemaElement. +// A hash-and-range type primary key would require one KeySchemaElement for +// the hash attribute, and another KeySchemaElement for the range attribute. type KeySchemaElement struct { - _ struct{} `type:"structure"` - // The name of a key attribute. - AttributeName *string `min:"1" type:"string" required:"true"` + AttributeName *string `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' 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. + // The attribute data, consisting of the data type and the attribute value itself. KeyType *string `type:"string" required:"true" enum:"KeyType"` + + metadataKeySchemaElement `json:"-" xml:"-"` +} + +type metadataKeySchemaElement struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3214,39 +2763,18 @@ 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 -} - // 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. +// with a hash type primary key, you only need to provide the hash attribute. +// For a hash-and-range type primary key, you must provide both the hash attribute +// and the range attribute. type KeysAndAttributes struct { - _ struct{} `type:"structure"` - // One or more attributes to retrieve from the table or index. If no attribute // names are specified then all attributes will be returned. If any of the specified // attributes are not found, they will not appear in the result. - AttributesToGet []*string `min:"1" type:"list"` + AttributesToGet []*string `type:"list"` // The consistency of a read operation. If set to true, then a strongly consistent // read is used; otherwise, an eventually consistent read is used. @@ -3266,31 +2794,31 @@ type KeysAndAttributes struct { // Use the # character in an expression to dereference an attribute name. // For example, consider the following attribute name: // - // Percentile + // Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot + // The name of this attribute conflicts with a reserved word, so it cannot // be used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // #P = :val // - // Tokens that begin with the : character are expression attribute values, + // Tokens that begin with the : character are expression attribute values, // which are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` // The primary key attribute values that define the items and the attributes // associated with the items. - Keys []map[string]*AttributeValue `min:"1" type:"list" required:"true"` + Keys []map[string]*AttributeValue `type:"list" required:"true"` // A string that identifies one or more attributes to retrieve from the table. // These attributes can include scalars, sets, or elements of a JSON document. @@ -3303,8 +2831,14 @@ type KeysAndAttributes struct { // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. // - // ProjectionExpression replaces the legacy AttributesToGet parameter. + // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` + + metadataKeysAndAttributes `json:"-" xml:"-"` +} + +type metadataKeysAndAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3317,37 +2851,22 @@ func (s KeysAndAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *KeysAndAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "KeysAndAttributes"} - if s.AttributesToGet != nil && len(s.AttributesToGet) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributesToGet", 1)) - } - if s.Keys == nil { - invalidParams.Add(request.NewErrParamRequired("Keys")) - } - if s.Keys != nil && len(s.Keys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Keys", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of a ListTables operation. type ListTablesInput struct { - _ struct{} `type:"structure"` - // The first table name that this operation will evaluate. Use the value that // was returned for LastEvaluatedTableName in a previous operation, so that // you can obtain the next page of results. - ExclusiveStartTableName *string `min:"3" type:"string"` + ExclusiveStartTableName *string `type:"string"` // A maximum number of table names to return. If this parameter is not specified, // the limit is 100. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` + + metadataListTablesInput `json:"-" xml:"-"` +} + +type metadataListTablesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3356,37 +2875,19 @@ func (s ListTablesInput) String() string { } // GoString returns the string representation -func (s ListTablesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTablesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTablesInput"} - if s.ExclusiveStartTableName != nil && len(*s.ExclusiveStartTableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("ExclusiveStartTableName", 3)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +func (s ListTablesInput) GoString() string { + return s.String() } // Represents the output of a ListTables operation. type ListTablesOutput struct { - _ struct{} `type:"structure"` - // The name of the last table in the current page of results. Use this value // as the ExclusiveStartTableName in a new request to obtain the next page of // results, until all the table names are returned. // // If you do not receive a LastEvaluatedTableName value in the response, this // means that there are no more table names to be retrieved. - LastEvaluatedTableName *string `min:"3" type:"string"` + LastEvaluatedTableName *string `type:"string"` // The names of the tables associated with the current account at the current // endpoint. The maximum size of this array is 100. @@ -3395,6 +2896,12 @@ type ListTablesOutput struct { // as the ExclusiveStartTableName parameter in a subsequent ListTables request // and obtain the next page of results. TableNames []*string `type:"list"` + + metadataListTablesOutput `json:"-" xml:"-"` +} + +type metadataListTablesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3409,33 +2916,24 @@ func (s ListTablesOutput) GoString() string { // Represents the properties of a local secondary index. type LocalSecondaryIndex struct { - _ struct{} `type:"structure"` - // The name of the local secondary index. The name must be unique among all // other indexes on this table. - IndexName *string `min:"3" type:"string" required:"true"` + IndexName *string `type:"string" required:"true"` // The complete key schema for the local secondary index, consisting of one - // or more pairs of attribute names and key types: - // - // 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' 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. - KeySchema []*KeySchemaElement `min:"1" type:"list" required:"true"` + // or more pairs of attribute names and key types (HASH or RANGE). + KeySchema []*KeySchemaElement `type:"list" required:"true"` // 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. Projection *Projection `type:"structure" required:"true"` + + metadataLocalSecondaryIndex `json:"-" xml:"-"` +} + +type metadataLocalSecondaryIndex struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3448,55 +2946,13 @@ func (s LocalSecondaryIndex) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LocalSecondaryIndex) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LocalSecondaryIndex"} - if s.IndexName == nil { - invalidParams.Add(request.NewErrParamRequired("IndexName")) - } - if s.IndexName != nil && len(*s.IndexName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("IndexName", 3)) - } - if s.KeySchema == nil { - invalidParams.Add(request.NewErrParamRequired("KeySchema")) - } - if s.KeySchema != nil && len(s.KeySchema) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeySchema", 1)) - } - if s.Projection == nil { - invalidParams.Add(request.NewErrParamRequired("Projection")) - } - if s.KeySchema != nil { - for i, v := range s.KeySchema { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "KeySchema", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Projection != nil { - if err := s.Projection.Validate(); err != nil { - invalidParams.AddNested("Projection", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the properties of a local secondary index. type LocalSecondaryIndexDescription struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) that uniquely identifies the index. IndexArn *string `type:"string"` // Represents the name of the local secondary index. - IndexName *string `min:"3" type:"string"` + IndexName *string `type:"string"` // The total size of the specified index, in bytes. DynamoDB updates this value // approximately every six hours. Recent changes might not be reflected in this @@ -3507,27 +2963,20 @@ type LocalSecondaryIndexDescription struct { // every six hours. Recent changes might not be reflected in this value. ItemCount *int64 `type:"long"` - // The complete key schema for the local secondary index, consisting of one - // or more pairs of attribute names and key types: - // - // 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' 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. - KeySchema []*KeySchemaElement `min:"1" type:"list"` + // The complete index key schema, which consists of one or more pairs of attribute + // names and key types (HASH or RANGE). + KeySchema []*KeySchemaElement `type:"list"` // 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. Projection *Projection `type:"structure"` + + metadataLocalSecondaryIndexDescription `json:"-" xml:"-"` +} + +type metadataLocalSecondaryIndexDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3544,25 +2993,29 @@ func (s LocalSecondaryIndexDescription) GoString() string { // index. These are in addition to the primary key attributes and index key // attributes, which are automatically projected. type Projection struct { - _ struct{} `type:"structure"` - // Represents the non-key attribute names which will be projected into the index. // // For local secondary indexes, the total count of NonKeyAttributes summed // across all of the local secondary indexes, must not exceed 20. If you project // the same attribute into two different indexes, this counts as two distinct // attributes when determining the total. - NonKeyAttributes []*string `min:"1" type:"list"` + NonKeyAttributes []*string `type:"list"` // The set of attributes that are projected into the index: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. ProjectionType *string `type:"string" enum:"ProjectionType"` + + metadataProjection `json:"-" xml:"-"` +} + +type metadataProjection struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3575,19 +3028,6 @@ func (s Projection) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Projection) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Projection"} - if s.NonKeyAttributes != nil && len(s.NonKeyAttributes) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NonKeyAttributes", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the provisioned throughput settings for a specified table or index. // The settings can be modified using the UpdateTable operation. // @@ -3595,19 +3035,23 @@ func (s *Projection) Validate() error { // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) // in the Amazon DynamoDB Developer Guide. type ProvisionedThroughput struct { - _ struct{} `type:"structure"` - // The maximum number of strongly consistent reads consumed per second before // DynamoDB returns a ThrottlingException. For more information, see Specifying // Read and Write Requirements (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput) // in the Amazon DynamoDB Developer Guide. - ReadCapacityUnits *int64 `min:"1" type:"long" required:"true"` + ReadCapacityUnits *int64 `type:"long" required:"true"` // The maximum number of writes consumed per second before DynamoDB returns // a ThrottlingException. For more information, see Specifying Read and Write // Requirements (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput) // in the Amazon DynamoDB Developer Guide. - WriteCapacityUnits *int64 `min:"1" type:"long" required:"true"` + WriteCapacityUnits *int64 `type:"long" required:"true"` + + metadataProvisionedThroughput `json:"-" xml:"-"` +} + +type metadataProvisionedThroughput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3620,33 +3064,9 @@ func (s ProvisionedThroughput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ProvisionedThroughput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ProvisionedThroughput"} - if s.ReadCapacityUnits == nil { - invalidParams.Add(request.NewErrParamRequired("ReadCapacityUnits")) - } - if s.ReadCapacityUnits != nil && *s.ReadCapacityUnits < 1 { - invalidParams.Add(request.NewErrParamMinValue("ReadCapacityUnits", 1)) - } - if s.WriteCapacityUnits == nil { - invalidParams.Add(request.NewErrParamRequired("WriteCapacityUnits")) - } - if s.WriteCapacityUnits != nil && *s.WriteCapacityUnits < 1 { - invalidParams.Add(request.NewErrParamMinValue("WriteCapacityUnits", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the provisioned throughput settings for the table, consisting // of read and write capacity units, along with data about increases and decreases. type ProvisionedThroughputDescription struct { - _ struct{} `type:"structure"` - // The date and time of the last provisioned throughput decrease for this table. LastDecreaseDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -3657,17 +3077,23 @@ type ProvisionedThroughputDescription struct { // UTC calendar day. For current maximums on provisioned throughput decreases, // see Limits (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) // in the Amazon DynamoDB Developer Guide. - NumberOfDecreasesToday *int64 `min:"1" type:"long"` + NumberOfDecreasesToday *int64 `type:"long"` // The maximum number of strongly consistent reads consumed per second before // DynamoDB returns a ThrottlingException. Eventually consistent reads require // less effort than strongly consistent reads, so a setting of 50 ReadCapacityUnits // per second provides 100 eventually consistent ReadCapacityUnits per second. - ReadCapacityUnits *int64 `min:"1" type:"long"` + ReadCapacityUnits *int64 `type:"long"` // The maximum number of writes consumed per second before DynamoDB returns // a ThrottlingException. - WriteCapacityUnits *int64 `min:"1" type:"long"` + WriteCapacityUnits *int64 `type:"long"` + + metadataProvisionedThroughputDescription `json:"-" xml:"-"` +} + +type metadataProvisionedThroughputDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3682,8 +3108,6 @@ func (s ProvisionedThroughputDescription) GoString() string { // Represents the input of a PutItem operation. type PutItemInput struct { - _ struct{} `type:"structure"` - // A condition that must be satisfied in order for a conditional PutItem operation // to succeed. // @@ -3694,8 +3118,7 @@ type PutItemInput struct { // // These function names are case-sensitive. // - // Comparison operators: = | <> | < | > | <= | - // >= | BETWEEN | IN + // Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // // Logical operators: AND | OR | NOT // @@ -3703,7 +3126,7 @@ type PutItemInput struct { // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. // - // ConditionExpression replaces the legacy ConditionalOperator and Expected + // ConditionExpression replaces the legacy ConditionalOperator and Expected // parameters. ConditionExpression *string `type:"string"` @@ -3714,17 +3137,17 @@ type PutItemInput struct { // // A logical operator to apply to the conditions in the Expected map: // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // AND - If all of the conditions evaluate to true, then the entire map evaluates + // to true. // - // OR - If at least one of the conditions evaluate to true, then the entire + // OR - If at least one of the conditions evaluate to true, then the entire // map evaluates to true. // - // If you omit ConditionalOperator, then AND is the default. + // If you omit ConditionalOperator, then AND is the default. // // The operation will succeed only if the entire map evaluates to true. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // This is a legacy parameter, for backward compatibility. New applications @@ -3735,9 +3158,9 @@ type PutItemInput struct { // A map of attribute/condition pairs. Expected provides a conditional block // for the PutItem operation. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. // - // Each element of Expected consists of an attribute name, a comparison operator, + // Each element of Expected consists of an attribute name, a comparison operator, // and one or more values. DynamoDB compares the attribute with the value(s) // you supplied, using the comparison operator. For each Expected element, the // result of the evaluation is either true or false. @@ -3751,9 +3174,9 @@ type PutItemInput struct { // If the Expected map evaluates to true, then the conditional operation succeeds; // otherwise, it fails. // - // Expected contains the following: + // Expected contains the following: // - // AttributeValueList - One or more values to evaluate against the supplied + // AttributeValueList - One or more values to evaluate against the supplied // attribute. The number of values in the list depends on the ComparisonOperator // being used. // @@ -3761,133 +3184,132 @@ type PutItemInput struct { // // String value comparisons for greater than, equals, or less than are based // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters. // // For type Binary, DynamoDB treats each byte of the binary data as unsigned // when it compares binary values. // - // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. + // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. // When performing the comparison, DynamoDB uses strongly consistent reads. // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS // | BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // EQ : Equal. EQ is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in the + // request, the value does not match. For example, {"S":"6"} does not equal + // {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // NE : Not equal. NE is supported for all datatypes, including lists and + // NE : Not equal. NE is supported for all datatypes, including lists and // maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue of type String, Number, + // Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // LT : Less than. + // LT : Less than. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // AttributeValueList can contain only one AttributeValue of type String, Number, + // or Binary (not a set type). If an item contains an AttributeValue element + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // GE : Greater than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GT : Greater than. + // GT : Greater than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, + // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, // including lists and maps. // - // This operator tests for the existence of an attribute, not its data type. + // This operator tests for the existence of an attribute, not its data type. // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, // the result is a Boolean true. This result is because the attribute "a" exists; // its data type is not relevant to the NOT_NULL comparison operator. // - // NULL : The attribute does not exist. NULL is supported for all datatypes, + // NULL : The attribute does not exist. NULL is supported for all datatypes, // including lists and maps. // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; + // This operator tests for the nonexistence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NULL, + // the result is a Boolean false. This is because the attribute "a" exists; // its data type is not relevant to the NULL comparison operator. // - // CONTAINS : Checks for a subsequence, or value in a set. + // CONTAINS : Checks for a subsequence, or value in a set. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If the target attribute of the comparison + // is of type String, then the operator checks for a substring match. If the + // target attribute of the comparison is of type Binary, then the operator looks + // for a subsequence of the target that matches the input. If the target attribute + // of the comparison is a set ("SS", "NS", or "BS"), then the operator evaluates + // to true if it finds an exact match with any member of the set. // // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can // be a list; however, "b" cannot be a set, a map, or a list. // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value + // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value // in a set. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If the target attribute of the comparison + // is a String, then the operator checks for the absence of a substring match. + // If the target attribute of the comparison is Binary, then the operator checks + // for the absence of a subsequence of the target that matches the input. If + // the target attribute of the comparison is a set ("SS", "NS", or "BS"), then + // the operator evaluates to true if it does not find an exact match with any + // member of the set. // // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", // "a" can be a list; however, "b" cannot be a set, a map, or a list. // - // BEGINS_WITH : Checks for a prefix. + // BEGINS_WITH : Checks for a prefix. // - // AttributeValueList can contain only one AttributeValue of type String or + // AttributeValueList can contain only one AttributeValue of type String or // Binary (not a Number or a set type). The target attribute of the comparison // must be of type String or Binary (not a Number or a set type). // - // IN : Checks for matching elements within two sets. + // IN : Checks for matching elements within two sets. // - // AttributeValueList can contain one or more AttributeValue elements of type + // AttributeValueList can contain one or more AttributeValue elements of type // String, Number, or Binary (not a set type). These attributes are compared // against an existing set type attribute of an item. If any elements of the // input set are present in the item attribute, the expression evaluates to // true. // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. + // BETWEEN : Greater than or equal to the first value, and less than or equal + // to the second value. // - // AttributeValueList must contain two AttributeValue elements of the same + // AttributeValueList must contain two AttributeValue elements of the same // type, either String, Number, or Binary (not a set type). A target attribute // matches if the target value is greater than, or equal to, the first element // and less than, or equal to, the second element. If an item contains an AttributeValue @@ -3902,21 +3324,21 @@ type PutItemInput struct { // For backward compatibility with previous DynamoDB releases, the following // parameters can be used instead of AttributeValueList and ComparisonOperator: // - // Value - A value for DynamoDB to compare with an attribute. + // Value - A value for DynamoDB to compare with an attribute. // - // Exists - A Boolean value that causes DynamoDB to evaluate the value before + // Exists - A Boolean value that causes DynamoDB to evaluate the value before // attempting the conditional operation: // // If Exists is true, DynamoDB will check to see if that attribute value // already exists in the table. If it is found, then the condition evaluates // to true; otherwise the condition evaluate to false. // - // If Exists is false, DynamoDB assumes that the attribute value does not + // If Exists is false, DynamoDB assumes that the attribute value does not // exist in the table. If in fact the value does not exist, then the assumption // is valid and the condition evaluates to true. If the value is found, despite // the assumption that it does not exist, the condition evaluates to false. // - // Note that the default value for Exists is true. + // Note that the default value for Exists is true. // // The Value and Exists parameters are incompatible with AttributeValueList // and ComparisonOperator. Note that if you use both sets of parameters at once, @@ -3937,25 +3359,25 @@ type PutItemInput struct { // Use the # character in an expression to dereference an attribute name. // For example, consider the following attribute name: // - // Percentile + // Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot + // The name of this attribute conflicts with a reserved word, so it cannot // be used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // #P = :val // - // Tokens that begin with the : character are expression attribute values, + // Tokens that begin with the : character are expression attribute values, // which are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -3965,16 +3387,16 @@ type PutItemInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -3986,9 +3408,9 @@ type PutItemInput struct { // pairs for the item. // // You must provide all of the attributes for the primary key. For example, - // with a simple primary key, you only need to provide a value for the partition - // key. For a composite primary key, you must provide both values for both the - // partition key and the sort key. + // with a hash type primary key, you only need to provide the hash attribute. + // For a hash-and-range type primary key, you must provide both the hash attribute + // and the range attribute. // // If you specify any attributes that are part of an index key, then the data // types for those attributes must match those of the schema in the table's @@ -4003,7 +3425,7 @@ type PutItemInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the + // INDEXES - The response includes the aggregate ConsumedCapacity for the // operation, together with ConsumedCapacity for each table and secondary index // that was accessed. // @@ -4011,10 +3433,10 @@ type PutItemInput struct { // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity // information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // TOTAL - The response includes only the aggregate ConsumedCapacity for the + // operation. // - // NONE - No ConsumedCapacity details are included in the response. + // NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -4027,18 +3449,23 @@ type PutItemInput struct { // before they were updated with the PutItem request. For PutItem, the valid // values are: // - // NONE - If ReturnValues is not specified, or if its value is NONE, then + // NONE - If ReturnValues is not specified, or if its value is NONE, then // nothing is returned. (This setting is the default for ReturnValues.) // - // ALL_OLD - If PutItem overwrote an attribute name-value pair, then the + // ALL_OLD - If PutItem overwrote an attribute name-value pair, then the // content of the old item is returned. // - // The ReturnValues parameter is used by several DynamoDB operations; however, - // PutItem does not recognize any values other than NONE or ALL_OLD. + // Other "Valid Values" are not relevant to PutItem. ReturnValues *string `type:"string" enum:"ReturnValue"` // The name of the table to contain the item. - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` + + metadataPutItemInput `json:"-" xml:"-"` +} + +type metadataPutItemInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4051,29 +3478,8 @@ func (s PutItemInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutItemInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutItemInput"} - if s.Item == nil { - invalidParams.Add(request.NewErrParamRequired("Item")) - } - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a PutItem operation. type PutItemOutput struct { - _ struct{} `type:"structure"` - // The attribute values as they appeared before the PutItem operation, but only // if ReturnValues is specified as ALL_OLD in the request. Each element consists // of an attribute name and an attribute value. @@ -4094,11 +3500,11 @@ type PutItemOutput struct { // // Each ItemCollectionMetrics element consists of: // - // ItemCollectionKey - The partition key value of the item collection. This - // is the same as the partition key value of the item itself. + // ItemCollectionKey - The hash key value of the item collection. This is + // the same as the hash key of the item. // - // SizeEstimateRange - An estimate of item collection size, in gigabytes. - // This value is a two-element array containing a lower bound and an upper bound + // SizeEstimateRange - 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 @@ -4107,6 +3513,12 @@ type PutItemOutput struct { // The estimate is subject to change over time; therefore, do not rely on the // precision or accuracy of the estimate. ItemCollectionMetrics *ItemCollectionMetrics `type:"structure"` + + metadataPutItemOutput `json:"-" xml:"-"` +} + +type metadataPutItemOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4121,14 +3533,18 @@ func (s PutItemOutput) GoString() string { // Represents a request to perform a PutItem operation on an item. type PutRequest struct { - _ struct{} `type:"structure"` - // A map of attribute name to attribute values, representing the primary key // of an item to be processed by PutItem. All of the table's primary key attributes // must be specified, and their data types must match those of the table's key // schema. If any attributes are present in the item which are part of an index // key schema for the table, their types must match the index key schema. Item map[string]*AttributeValue `type:"map" required:"true"` + + metadataPutRequest `json:"-" xml:"-"` +} + +type metadataPutRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4143,8 +3559,6 @@ func (s PutRequest) GoString() string { // Represents the input of a Query operation. type QueryInput struct { - _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications // should use ProjectionExpression instead. Do not combine legacy parameters // and expression parameters in a single API call; otherwise, DynamoDB will @@ -4153,9 +3567,9 @@ type QueryInput struct { // This parameter allows you to retrieve attributes of type List or Map; however, // it cannot retrieve individual elements within a List or a Map. // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. + // The names of one or more attributes to retrieve. If no attribute names are + // provided, then all attributes will be returned. If any of the requested attributes + // are not found, they will not appear in the result. // // Note that AttributesToGet has no effect on provisioned throughput consumption. // DynamoDB determines capacity units consumed based on item size, not on the @@ -4175,7 +3589,7 @@ type QueryInput struct { // If you query a global secondary index, you can only request attributes that // are projected into the index. Global secondary index queries cannot fetch // attributes from the parent table. - AttributesToGet []*string `min:"1" type:"list"` + AttributesToGet []*string `type:"list"` // This is a legacy parameter, for backward compatibility. New applications // should use FilterExpression instead. Do not combine legacy parameters and @@ -4184,17 +3598,17 @@ type QueryInput struct { // // A logical operator to apply to the conditions in a QueryFilter map: // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // AND - If all of the conditions evaluate to true, then the entire map evaluates + // to true. // - // OR - If at least one of the conditions evaluate to true, then the entire + // OR - If at least one of the conditions evaluate to true, then the entire // map evaluates to true. // - // If you omit ConditionalOperator, then AND is the default. + // If you omit ConditionalOperator, then AND is the default. // // The operation will succeed only if the entire map evaluates to true. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // Determines the read consistency model: If set to true, then the operation @@ -4227,25 +3641,25 @@ type QueryInput struct { // Use the # character in an expression to dereference an attribute name. // For example, consider the following attribute name: // - // Percentile + // Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot + // The name of this attribute conflicts with a reserved word, so it cannot // be used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // #P = :val // - // Tokens that begin with the : character are expression attribute values, + // Tokens that begin with the : character are expression attribute values, // which are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -4255,16 +3669,16 @@ type QueryInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -4281,82 +3695,77 @@ type QueryInput struct { // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) // in the Amazon DynamoDB Developer Guide. // - // FilterExpression replaces the legacy QueryFilter and ConditionalOperator + // FilterExpression replaces the legacy QueryFilter and ConditionalOperator // parameters. FilterExpression *string `type:"string"` // The name of an index to query. This index can be any local secondary index // or global secondary index on the table. Note that if you use the IndexName // parameter, you must also provide TableName. - IndexName *string `min:"3" type:"string"` + IndexName *string `type:"string"` // The condition that specifies the key value(s) for items to be retrieved by // the Query action. // - // The condition must perform an equality test on a single partition key value. + // The condition must perform an equality test on a single hash key value. // The condition can also perform one of several comparison tests on a single - // sort key value. Query can use KeyConditionExpression to retrieve one item - // with a given partition key value and sort key value, or several items that - // have the same partition key value but different sort key values. + // range key value. Query can use KeyConditionExpression to retrieve one item + // with a given hash and range key value, or several items that have the same + // hash key value but different range key values. // - // The partition key equality test is required, and must be specified in the - // following format: + // The hash key equality test is required, and must be specified in the following + // format: // - // partitionKeyName = :partitionkeyval + // hashAttributeName = :hashval // - // If you also want to provide a condition for the sort key, it must be combined - // using AND with the condition for the sort key. Following is an example, using - // the = comparison operator for the sort key: + // If you also want to provide a range key condition, it must be combined using + // AND with the hash key condition. Following is an example, using the = comparison + // operator for the range key: // - // partitionKeyName = :partitionkeyval AND sortKeyName = :sortkeyval + // hashAttributeName = :hashval AND rangeAttributeName = :rangeval // - // Valid comparisons for the sort key condition are as follows: + // Valid comparisons for the range key condition are as follows: // - // sortKeyName = :sortkeyval - true if the sort key value is equal to :sortkeyval. + // rangeAttributeName = :rangeval - true if the range key is equal to :rangeval. // - // sortKeyName < :sortkeyval - true if the sort key value is less than :sortkeyval. + // rangeAttributeName < :rangeval - true if the range key is less than :rangeval. // - // sortKeyName <= :sortkeyval - true if the sort key value is less than - // or equal to :sortkeyval. + // rangeAttributeName <= :rangeval - true if the range key is less than or + // equal to :rangeval. // - // sortKeyName > :sortkeyval - true if the sort key value is greater than - // :sortkeyval. + // rangeAttributeName > :rangeval - true if the range key is greater than + // :rangeval. // - // sortKeyName >= :sortkeyval - true if the sort key value is greater than - // or equal to :sortkeyval. + // rangeAttributeName >= :rangeval - true if the range key is greater than + // or equal to :rangeval. // - // sortKeyName BETWEEN :sortkeyval1 AND :sortkeyval2 - true if the sort - // key value is greater than or equal to :sortkeyval1, and less than or equal - // to :sortkeyval2. + // rangeAttributeName BETWEEN :rangeval1 AND :rangeval2 - true if the range + // key is greater than or equal to :rangeval1, and less than or equal to :rangeval2. // - // begins_with ( sortKeyName, :sortkeyval ) - true if the sort key value - // begins with a particular operand. (You cannot use this function with a sort - // key that is of type Number.) Note that the function name begins_with is case-sensitive. + // begins_with (rangeAttributeName, :rangeval) - true if the range key begins + // with a particular operand. (You cannot use this function with a range key + // that is of type Number.) Note that the function name begins_with is case-sensitive. // // Use the ExpressionAttributeValues parameter to replace tokens such as - // :partitionval and :sortval with actual values at runtime. + // :hashval and :rangeval with actual values at runtime. // // You can optionally use the ExpressionAttributeNames parameter to replace - // the names of the partition key and sort key with placeholder tokens. This + // the names of the hash and range attributes with placeholder tokens. This // option might be necessary if an attribute name conflicts with a DynamoDB // reserved word. For example, the following KeyConditionExpression parameter // causes an error because Size is a reserved word: // - // Size = :myval + // Size = :myval To work around this, define a placeholder (such a #S) + // to represent the attribute name Size. KeyConditionExpression then is as follows: // - // To work around this, define a placeholder (such a #S) to represent the - // attribute name Size. KeyConditionExpression then is as follows: - // - // #S = :myval - // - // For a list of reserved words, see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + // #S = :myval For a list of reserved words, see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide. // // For more information on ExpressionAttributeNames and ExpressionAttributeValues, // see Using Placeholders for Attribute Names and Values (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ExpressionPlaceholders.html) // in the Amazon DynamoDB Developer Guide. // - // KeyConditionExpression replaces the legacy KeyConditions parameter. + // KeyConditionExpression replaces the legacy KeyConditions parameter. KeyConditionExpression *string `type:"string"` // This is a legacy parameter, for backward compatibility. New applications @@ -4366,22 +3775,22 @@ type QueryInput struct { // // The selection criteria for the query. For a query on a table, you can have // conditions only on the table primary key attributes. You must provide the - // partition key name and value as an EQ condition. You can optionally provide - // a second condition, referring to the sort key. + // hash key attribute name and value as an EQ condition. You can optionally + // provide a second condition, referring to the range key attribute. // - // If you don't provide a sort key condition, all of the items that match - // the partition key will be retrieved. If a FilterExpression or QueryFilter - // is present, it will be applied after the items are retrieved. + // If you don't provide a range key condition, all of the items that match + // the hash key will be retrieved. If a FilterExpression or QueryFilter is present, + // it will be applied after the items are retrieved. // - // For a query on an index, you can have conditions only on the index key - // attributes. You must provide the index partition key name and value as an - // EQ condition. You can optionally provide a second condition, referring to - // the index sort key. + // For a query on an index, you can have conditions only on the index key attributes. + // You must provide the index hash attribute name and value as an EQ condition. + // You can optionally provide a second condition, referring to the index key + // range attribute. // // Each KeyConditions element consists of an attribute name to compare, along // with the following: // - // AttributeValueList - One or more values to evaluate against the supplied + // AttributeValueList - One or more values to evaluate against the supplied // attribute. The number of values in the list depends on the ComparisonOperator // being used. // @@ -4395,7 +3804,7 @@ type QueryInput struct { // For Binary, DynamoDB treats each byte of the binary data as unsigned when // it compares binary values. // - // ComparisonOperator - A comparator for evaluating attributes, for example, + // ComparisonOperator - A comparator for evaluating attributes, for example, // equals, greater than, less than, and so on. // // For KeyConditions, only the following comparison operators are supported: @@ -4404,56 +3813,56 @@ type QueryInput struct { // // The following are descriptions of these comparison operators. // - // EQ : Equal. + // EQ : Equal. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one specified in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // AttributeValueList can contain only one AttributeValue of type String, Number, + // or Binary (not a set type). If an item contains an AttributeValue element + // of a different type than the one specified in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // LT : Less than. + // LT : Less than. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // AttributeValueList can contain only one AttributeValue of type String, Number, + // or Binary (not a set type). If an item contains an AttributeValue element + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // GE : Greater than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GT : Greater than. + // GT : Greater than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // BEGINS_WITH : Checks for a prefix. + // BEGINS_WITH : Checks for a prefix. // - // AttributeValueList can contain only one AttributeValue of type String or + // AttributeValueList can contain only one AttributeValue of type String or // Binary (not a Number or a set type). The target attribute of the comparison // must be of type String or Binary (not a Number or a set type). // - // BETWEEN : Greater than or equal to the first value, and less than or + // BETWEEN : Greater than or equal to the first value, and less than or // equal to the second value. // - // AttributeValueList must contain two AttributeValue elements of the same + // AttributeValueList must contain two AttributeValue elements of the same // type, either String, Number, or Binary (not a set type). A target attribute // matches if the target value is greater than, or equal to, the first element // and less than, or equal to, the second element. If an item contains an AttributeValue @@ -4474,9 +3883,8 @@ type QueryInput struct { // size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation // and returns the matching values up to the limit, and a key in LastEvaluatedKey // to apply in a subsequent operation to continue the operation. For more information, - // see Query and Scan (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) - // in the Amazon DynamoDB Developer Guide. - Limit *int64 `min:"1" type:"integer"` + // see Query and Scan in the Amazon DynamoDB Developer Guide. + Limit *int64 `type:"integer"` // A string that identifies one or more attributes to retrieve from the table. // These attributes can include scalars, sets, or elements of a JSON document. @@ -4489,7 +3897,7 @@ type QueryInput struct { // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. // - // ProjectionExpression replaces the legacy AttributesToGet parameter. + // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` // This is a legacy parameter, for backward compatibility. New applications @@ -4502,22 +3910,22 @@ type QueryInput struct { // // This parameter does not support attributes of type List or Map. // - // A QueryFilter is applied after the items have already been read; the process + // A QueryFilter is applied after the items have already been read; the process // of filtering does not consume any additional read capacity units. // - // If you provide more than one condition in the QueryFilter map, then by - // default all of the conditions must evaluate to true. In other words, the - // conditions are ANDed together. (You can use the ConditionalOperator parameter - // to OR the conditions instead. If you do this, then at least one of the conditions + // If you provide more than one condition in the QueryFilter map, then by default + // all of the conditions must evaluate to true. In other words, the conditions + // are ANDed together. (You can use the ConditionalOperator parameter to OR + // the conditions instead. If you do this, then at least one of the conditions // must evaluate to true, rather than all of them.) // // Note that QueryFilter does not allow key attributes. You cannot define a - // filter condition on a partition key or a sort key. + // filter condition on a hash key or range key. // // Each QueryFilter element consists of an attribute name to compare, along // with the following: // - // AttributeValueList - One or more values to evaluate against the supplied + // AttributeValueList - One or more values to evaluate against the supplied // attribute. The number of values in the list depends on the operator specified // in ComparisonOperator. // @@ -4534,12 +3942,12 @@ type QueryInput struct { // For information on specifying data types in JSON, see JSON Data Format (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) // in the Amazon DynamoDB Developer Guide. // - // ComparisonOperator - A comparator for evaluating attributes. For example, + // ComparisonOperator - A comparator for evaluating attributes. For example, // equals, greater than, less than, etc. // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS // | BEGINS_WITH | IN | BETWEEN // // For complete descriptions of all comparison operators, see the Condition @@ -4550,7 +3958,7 @@ type QueryInput struct { // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the + // INDEXES - The response includes the aggregate ConsumedCapacity for the // operation, together with ConsumedCapacity for each table and secondary index // that was accessed. // @@ -4558,44 +3966,44 @@ type QueryInput struct { // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity // information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // TOTAL - The response includes only the aggregate ConsumedCapacity for the + // operation. // - // NONE - No ConsumedCapacity details are included in the response. + // NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` - // Specifies the order for index traversal: If true (default), the traversal - // is performed in ascending order; if false, the traversal is performed in - // descending order. + // Specifies the order in which to return the query results - either ascending + // (true) or descending (false). + // + // Items with the same hash key are stored in sorted order by range key .If + // the range key data type is Number, the results are stored in numeric order. + // For type String, the results are returned in order of ASCII character code + // values. For type Binary, DynamoDB treats each byte of the binary data as + // unsigned. // - // Items with the same partition key value are stored in sorted order by sort - // key. If the sort key data type is Number, the results are stored in numeric - // order. For type String, the results are stored in order of ASCII character - // code values. For type Binary, DynamoDB treats each byte of the binary data - // as unsigned. + // If ScanIndexForward is true, DynamoDB returns the results in order, by range + // key. This is the default behavior. // - // If ScanIndexForward is true, DynamoDB returns the results in the order in - // which they are stored (by sort key value). This is the default behavior. - // If ScanIndexForward is false, DynamoDB reads the results in reverse order - // by sort key value, and then returns the results to the client. + // If ScanIndexForward is false, DynamoDB sorts the results in descending order + // by range key, and then returns the results to the client. ScanIndexForward *bool `type:"boolean"` // The attributes to be returned in the result. You can retrieve all item attributes, // specific item attributes, the count of matching items, or in the case of // an index, some or all of the attributes projected into the index. // - // ALL_ATTRIBUTES - Returns all of the item attributes from the specified + // ALL_ATTRIBUTES - Returns all of the item attributes from the specified // table or index. If you query a local secondary index, then for each matching // item in the index DynamoDB will fetch the entire item from the parent table. // If the index is configured to project all item attributes, then all of the // data can be obtained from the local secondary index, and no fetching is required. // - // ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves + // ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves // all attributes that have been projected into the index. If the index is configured // to project all attributes, this return value is equivalent to specifying // ALL_ATTRIBUTES. // - // COUNT - Returns the number of matching items, rather than the matching + // COUNT - Returns the number of matching items, rather than the matching // items themselves. // // SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. @@ -4620,13 +4028,19 @@ type QueryInput struct { // (This usage is equivalent to specifying AttributesToGet without any value // for Select.) // - // If you use the ProjectionExpression parameter, then the value for Select + // If you use the ProjectionExpression parameter, then the value for Select // can only be SPECIFIC_ATTRIBUTES. Any other value for Select will return an // error. Select *string `type:"string" enum:"Select"` // The name of the table containing the requested items. - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` + + metadataQueryInput `json:"-" xml:"-"` +} + +type metadataQueryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4639,55 +4053,8 @@ func (s QueryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *QueryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "QueryInput"} - if s.AttributesToGet != nil && len(s.AttributesToGet) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributesToGet", 1)) - } - if s.IndexName != nil && len(*s.IndexName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("IndexName", 3)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - if s.KeyConditions != nil { - for i, v := range s.KeyConditions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "KeyConditions", i), err.(request.ErrInvalidParams)) - } - } - } - if s.QueryFilter != nil { - for i, v := range s.QueryFilter { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QueryFilter", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a Query operation. type QueryOutput struct { - _ struct{} `type:"structure"` - // 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 @@ -4700,7 +4067,7 @@ type QueryOutput struct { // // If you used a QueryFilter in the request, then Count is the number of items // returned after the filter was applied, and ScannedCount is the number of - // matching items before the filter was applied. + // matching items before> the filter was applied. // // If you did not use a filter in the request, then Count and ScannedCount // are the same. @@ -4730,6 +4097,12 @@ type QueryOutput struct { // If you did not use a filter in the request, then ScannedCount is the same // as Count. ScannedCount *int64 `type:"integer"` + + metadataQueryOutput `json:"-" xml:"-"` +} + +type metadataQueryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4744,8 +4117,6 @@ func (s QueryOutput) GoString() string { // Represents the input of a Scan operation. type ScanInput struct { - _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications // should use ProjectionExpression instead. Do not combine legacy parameters // and expression parameters in a single API call; otherwise, DynamoDB will @@ -4754,14 +4125,14 @@ type ScanInput struct { // This parameter allows you to retrieve attributes of type List or Map; however, // it cannot retrieve individual elements within a List or a Map. // - // The names of one or more attributes to retrieve. If no attribute names - // are provided, then all attributes will be returned. If any of the requested - // attributes are not found, they will not appear in the result. + // The names of one or more attributes to retrieve. If no attribute names are + // provided, then all attributes will be returned. If any of the requested attributes + // are not found, they will not appear in the result. // // Note that AttributesToGet has no effect on provisioned throughput consumption. // DynamoDB determines capacity units consumed based on item size, not on the // amount of data that is returned to an application. - AttributesToGet []*string `min:"1" type:"list"` + AttributesToGet []*string `type:"list"` // This is a legacy parameter, for backward compatibility. New applications // should use FilterExpression instead. Do not combine legacy parameters and @@ -4770,31 +4141,34 @@ type ScanInput struct { // // A logical operator to apply to the conditions in a ScanFilter map: // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // AND - If all of the conditions evaluate to true, then the entire map evaluates + // to true. // - // OR - If at least one of the conditions evaluate to true, then the entire + // OR - If at least one of the conditions evaluate to true, then the entire // map evaluates to true. // - // If you omit ConditionalOperator, then AND is the default. + // If you omit ConditionalOperator, then AND is the default. // // The operation will succeed only if the entire map evaluates to true. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // A Boolean value that determines the read consistency model during the scan: // - // If ConsistentRead is false, then the data returned from Scan might not - // contain the results from other recently completed write operations (PutItem, - // UpdateItem or DeleteItem). + // If ConsistentRead is false, then Scan will use eventually consistent reads. + // The data returned from Scan might not contain the results of other recently + // completed write operations (PutItem, UpdateItem or DeleteItem). The Scan + // response might include some stale data. // - // If ConsistentRead is true, then all of the write operations that completed - // before the Scan began are guaranteed to be contained in the Scan response. + // If ConsistentRead is true, then Scan will use strongly consistent reads. + // All of the write operations that completed before the Scan began are guaranteed + // to be contained in the Scan response. // - // The default setting for ConsistentRead is false. + // The default setting for ConsistentRead is false, meaning that eventually + // consistent reads will be used. // - // The ConsistentRead parameter is not supported on global secondary indexes. + // Strongly consistent reads are not supported on global secondary indexes. // If you scan a global secondary index with ConsistentRead set to true, you // will receive a ValidationException. ConsistentRead *bool `type:"boolean"` @@ -4824,25 +4198,25 @@ type ScanInput struct { // Use the # character in an expression to dereference an attribute name. // For example, consider the following attribute name: // - // Percentile + // Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot + // The name of this attribute conflicts with a reserved word, so it cannot // be used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // #P = :val // - // Tokens that begin with the : character are expression attribute values, + // Tokens that begin with the : character are expression attribute values, // which are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -4852,16 +4226,16 @@ type ScanInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -4875,17 +4249,17 @@ type ScanInput struct { // A FilterExpression is applied after the items have already been read; the // process of filtering does not consume any additional read capacity units. // - // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) + // For more information, see Filter Expressions (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults) // in the Amazon DynamoDB Developer Guide. // - // FilterExpression replaces the legacy ScanFilter and ConditionalOperator + // FilterExpression replaces the legacy ScanFilter and ConditionalOperator // parameters. FilterExpression *string `type:"string"` // The name of a secondary index to scan. This index can be any local secondary // index or global secondary index. Note that if you use the IndexName parameter, // you must also provide TableName. - IndexName *string `min:"3" type:"string"` + IndexName *string `type:"string"` // The maximum number of items to evaluate (not necessarily the number of matching // items). If DynamoDB processes the number of items up to the limit while processing @@ -4895,9 +4269,8 @@ type ScanInput struct { // size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation // and returns the matching values up to the limit, and a key in LastEvaluatedKey // to apply in a subsequent operation to continue the operation. For more information, - // see Query and Scan (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) - // in the Amazon DynamoDB Developer Guide. - Limit *int64 `min:"1" type:"integer"` + // see Query and Scan in the Amazon DynamoDB Developer Guide. + Limit *int64 `type:"integer"` // A string that identifies one or more attributes to retrieve from the specified // table or index. These attributes can include scalars, sets, or elements of @@ -4910,13 +4283,13 @@ type ScanInput struct { // For more information, see Accessing Item Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. // - // ProjectionExpression replaces the legacy AttributesToGet parameter. + // ProjectionExpression replaces the legacy AttributesToGet parameter. ProjectionExpression *string `type:"string"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the + // INDEXES - The response includes the aggregate ConsumedCapacity for the // operation, together with ConsumedCapacity for each table and secondary index // that was accessed. // @@ -4924,10 +4297,10 @@ type ScanInput struct { // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity // information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // TOTAL - The response includes only the aggregate ConsumedCapacity for the + // operation. // - // NONE - No ConsumedCapacity details are included in the response. + // NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // This is a legacy parameter, for backward compatibility. New applications @@ -4938,9 +4311,9 @@ type ScanInput struct { // A condition that evaluates the scan results and returns only the desired // values. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. // - // If you specify more than one condition in the ScanFilter map, then by default + // If you specify more than one condition in the ScanFilter map, then by default // all of the conditions must evaluate to true. In other words, the conditions // are ANDed together. (You can use the ConditionalOperator parameter to OR // the conditions instead. If you do this, then at least one of the conditions @@ -4949,7 +4322,7 @@ type ScanInput struct { // Each ScanFilter element consists of an attribute name to compare, along // with the following: // - // AttributeValueList - One or more values to evaluate against the supplied + // AttributeValueList - One or more values to evaluate against the supplied // attribute. The number of values in the list depends on the operator specified // in ComparisonOperator . // @@ -4966,12 +4339,12 @@ type ScanInput struct { // For information on specifying data types in JSON, see JSON Data Format (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) // in the Amazon DynamoDB Developer Guide. // - // ComparisonOperator - A comparator for evaluating attributes. For example, + // ComparisonOperator - A comparator for evaluating attributes. For example, // equals, greater than, less than, etc. // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS // | BEGINS_WITH | IN | BETWEEN // // For complete descriptions of all comparison operators, see Condition (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html). @@ -4998,14 +4371,9 @@ type ScanInput struct { // The attributes to be returned in the result. You can retrieve all item attributes, // specific item attributes, or the count of matching items. // - // ALL_ATTRIBUTES - Returns all of the item attributes. - // - // ALL_PROJECTED_ATTRIBUTES - Allowed only when querying an index. Retrieves - // all attributes that have been projected into the index. If the index is configured - // to project all attributes, this return value is equivalent to specifying - // ALL_ATTRIBUTES. + // ALL_ATTRIBUTES - Returns all of the item attributes. // - // COUNT - Returns the number of matching items, rather than the matching + // COUNT - Returns the number of matching items, rather than the matching // items themselves. // // SPECIFIC_ATTRIBUTES - Returns only the attributes listed in AttributesToGet. @@ -5021,7 +4389,7 @@ type ScanInput struct { // The name of the table containing the requested items; or, if you provide // IndexName, the name of the table to which that index belongs. - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` // For a parallel Scan request, TotalSegments represents the total number of // segments into which the Scan operation will be divided. The value of TotalSegments @@ -5034,7 +4402,13 @@ type ScanInput struct { // Scan operation will be sequential rather than parallel. // // If you specify TotalSegments, you must also specify Segment. - TotalSegments *int64 `min:"1" type:"integer"` + TotalSegments *int64 `type:"integer"` + + metadataScanInput `json:"-" xml:"-"` +} + +type metadataScanInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5047,48 +4421,8 @@ func (s ScanInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ScanInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ScanInput"} - if s.AttributesToGet != nil && len(s.AttributesToGet) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributesToGet", 1)) - } - if s.IndexName != nil && len(*s.IndexName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("IndexName", 3)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - if s.TotalSegments != nil && *s.TotalSegments < 1 { - invalidParams.Add(request.NewErrParamMinValue("TotalSegments", 1)) - } - if s.ScanFilter != nil { - for i, v := range s.ScanFilter { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ScanFilter", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a Scan operation. type ScanOutput struct { - _ struct{} `type:"structure"` - // 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 @@ -5130,6 +4464,12 @@ type ScanOutput struct { // If you did not use a filter in the request, then ScannedCount is the same // as Count. ScannedCount *int64 `type:"integer"` + + metadataScanOutput `json:"-" xml:"-"` +} + +type metadataScanOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5144,33 +4484,37 @@ func (s ScanOutput) GoString() string { // Represents the DynamoDB Streams configuration for a table in DynamoDB. type StreamSpecification struct { - _ struct{} `type:"structure"` - // Indicates whether DynamoDB Streams is enabled (true) or disabled (false) // on the table. StreamEnabled *bool `type:"boolean"` // The DynamoDB Streams settings for the table. These settings consist of: // - // StreamEnabled - Indicates whether DynamoDB Streams is enabled (true) - // or disabled (false) on the table. + // StreamEnabled - Indicates whether DynamoDB Streams is enabled (true) or + // disabled (false) on the table. // - // StreamViewType - When an item in the table is modified, StreamViewType + // StreamViewType - When an item in the table is modified, StreamViewType // determines what information is written to the stream for this table. Valid // values for StreamViewType are: // - // KEYS_ONLY - Only the key attributes of the modified item are written + // KEYS_ONLY - Only the key attributes of the modified item are written to + // the stream. + // + // NEW_IMAGE - The entire item, as it appears after it was modified, is written // to the stream. // - // NEW_IMAGE - The entire item, as it appears after it was modified, is - // written to the stream. + // OLD_IMAGE - The entire item, as it appeared before it was modified, is written + // to the stream. // - // OLD_IMAGE - The entire item, as it appeared before it was modified, is + // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are // written to the stream. - // - // NEW_AND_OLD_IMAGES - Both the new and the old item images of the item - // are written to the stream. StreamViewType *string `type:"string" enum:"StreamViewType"` + + metadataStreamSpecification `json:"-" xml:"-"` +} + +type metadataStreamSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5185,16 +4529,14 @@ func (s StreamSpecification) GoString() string { // Represents the properties of a table. type TableDescription struct { - _ struct{} `type:"structure"` - // An array of AttributeDefinition objects. Each of these objects describes // one attribute in the table and index key schema. // // Each AttributeDefinition object in this array is composed of: // - // AttributeName - The name of the attribute. + // AttributeName - The name of the attribute. // - // AttributeType - The data type for the attribute. + // AttributeType - The data type for the attribute. AttributeDefinitions []*AttributeDefinition `type:"list"` // The date and time when the table was created, in UNIX epoch time (http://www.epochconverter.com/) @@ -5202,59 +4544,59 @@ type TableDescription struct { CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` // The global secondary indexes, if any, on the table. Each index is scoped - // to a given partition key value. Each element is composed of: + // to a given hash key value. Each element is composed of: // - // Backfilling - If true, then the index is currently in the backfilling + // Backfilling - If true, then the index is currently in the backfilling // phase. Backfilling occurs only when a new global secondary index is added // to the table; it is the process by which DynamoDB populates the new index // with data from the table. (This attribute does not appear for indexes that // were created during a CreateTable operation.) // - // IndexName - The name of the global secondary index. + // IndexName - The name of the global secondary index. // - // IndexSizeBytes - The total size of the global secondary index, in bytes. + // IndexSizeBytes - The total size of the global secondary index, in bytes. // DynamoDB updates this value approximately every six hours. Recent changes // might not be reflected in this value. // - // IndexStatus - The current status of the global secondary index: + // IndexStatus - The current status of the global secondary index: // - // CREATING - The index is being created. + // CREATING - The index is being created. // - // UPDATING - The index is being updated. + // UPDATING - The index is being updated. // - // DELETING - The index is being deleted. + // DELETING - The index is being deleted. // - // ACTIVE - The index is ready for use. + // ACTIVE - The index is ready for use. // - // ItemCount - The number of items in the global secondary index. DynamoDB + // ItemCount - The number of items in the global secondary index. DynamoDB // updates this value approximately every six hours. Recent changes might not // be reflected in this value. // - // KeySchema - Specifies the complete index key schema. The attribute names + // KeySchema - Specifies the complete index key schema. The attribute names // in the key schema must be between 1 and 255 characters (inclusive). The key - // schema must begin with the same partition key as the table. + // schema must begin with the same hash key attribute as the table. // - // Projection - Specifies attributes that are copied (projected) from the + // Projection - Specifies attributes that are copied (projected) from the // table into the index. These are in addition to the primary key attributes // and index key attributes, which are automatically projected. Each attribute // specification is composed of: // - // ProjectionType - One of the following: + // ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that + // NonKeyAttributes - A list of one or more non-key attribute names that // are projected into the secondary index. The total count of attributes provided // in NonKeyAttributes, summed across all of the secondary indexes, must not // exceed 20. If you project the same attribute into two different indexes, // this counts as two distinct attributes when determining the total. // - // ProvisionedThroughput - The provisioned throughput settings for the + // ProvisionedThroughput - The provisioned throughput settings for the // global secondary index, consisting of read and write capacity units, along // with data about increases and decreases. // @@ -5268,30 +4610,17 @@ type TableDescription struct { // The primary key structure for the table. Each KeySchemaElement consists of: // - // AttributeName - The name of the attribute. + // AttributeName - The name of the attribute. // - // KeyType - The role of the attribute: + // KeyType - The key type for the attribute. Can be either HASH or RANGE. // - // 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' 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. - // - // For more information about primary keys, see Primary Key (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey) + // For more information about primary keys, see Primary Key (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModelPrimaryKey) // in the Amazon DynamoDB Developer Guide. - KeySchema []*KeySchemaElement `min:"1" type:"list"` + KeySchema []*KeySchemaElement `type:"list"` // The Amazon Resource Name (ARN) that uniquely identifies the latest stream // for this table. - LatestStreamArn *string `min:"37" type:"string"` + LatestStreamArn *string `type:"string"` // A timestamp, in ISO 8601 format, for this stream. // @@ -5300,50 +4629,50 @@ type TableDescription struct { // However, the combination of the following three elements is guaranteed to // be unique: // - // the AWS customer ID. + // the AWS customer ID. // - // the table name. + // the table name. // - // the StreamLabel. + // the StreamLabel. LatestStreamLabel *string `type:"string"` // Represents one or more local secondary indexes on the table. Each index is - // scoped to a given partition key value. Tables with one or more local secondary + // scoped to a given hash key value. Tables with one or more local secondary // indexes are subject to an item collection size limit, where the amount of // data within a given item collection cannot exceed 10 GB. Each element is // composed of: // - // IndexName - The name of the local secondary index. + // IndexName - The name of the local secondary index. // - // KeySchema - Specifies the complete index key schema. The attribute names + // KeySchema - Specifies the complete index key schema. The attribute names // in the key schema must be between 1 and 255 characters (inclusive). The key - // schema must begin with the same partition key as the table. + // schema must begin with the same hash key attribute as the table. // - // Projection - Specifies attributes that are copied (projected) from the + // Projection - Specifies attributes that are copied (projected) from the // table into the index. These are in addition to the primary key attributes // and index key attributes, which are automatically projected. Each attribute // specification is composed of: // - // ProjectionType - One of the following: + // ProjectionType - One of the following: // - // KEYS_ONLY - Only the index and primary keys are projected into the index. + // KEYS_ONLY - Only the index and primary keys are projected into the index. // - // INCLUDE - Only the specified table attributes are projected into the - // index. The list of projected attributes are in NonKeyAttributes. + // INCLUDE - Only the specified table attributes are projected into the index. + // The list of projected attributes are in NonKeyAttributes. // - // ALL - All of the table attributes are projected into the index. + // ALL - All of the table attributes are projected into the index. // - // NonKeyAttributes - A list of one or more non-key attribute names that + // NonKeyAttributes - A list of one or more non-key attribute names that // are projected into the secondary index. The total count of attributes provided // in NonKeyAttributes, summed across all of the secondary indexes, must not // exceed 20. If you project the same attribute into two different indexes, // this counts as two distinct attributes when determining the total. // - // IndexSizeBytes - Represents the total size of the index, in bytes. - // DynamoDB updates this value approximately every six hours. Recent changes - // might not be reflected in this value. + // IndexSizeBytes - Represents the total size of the index, in bytes. DynamoDB + // updates this value approximately every six hours. Recent changes might not + // be reflected in this value. // - // ItemCount - Represents the number of items in the index. DynamoDB updates + // ItemCount - Represents the number of items in the index. DynamoDB updates // this value approximately every six hours. Recent changes might not be reflected // in this value. // @@ -5362,7 +4691,7 @@ type TableDescription struct { TableArn *string `type:"string"` // The name of the table. - TableName *string `min:"3" type:"string"` + TableName *string `type:"string"` // The total size of the specified table, in bytes. DynamoDB updates this value // approximately every six hours. Recent changes might not be reflected in this @@ -5371,14 +4700,20 @@ type TableDescription struct { // The current state of the table: // - // CREATING - The table is being created. + // CREATING - The table is being created. // - // UPDATING - The table is being updated. + // UPDATING - The table is being updated. // - // DELETING - The table is being deleted. + // DELETING - The table is being deleted. // - // ACTIVE - The table is ready for use. + // ACTIVE - The table is ready for use. TableStatus *string `type:"string" enum:"TableStatus"` + + metadataTableDescription `json:"-" xml:"-"` +} + +type metadataTableDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5394,10 +4729,8 @@ func (s TableDescription) GoString() string { // Represents the new provisioned throughput settings to be applied to a global // secondary index. type UpdateGlobalSecondaryIndexAction struct { - _ struct{} `type:"structure"` - // The name of the global secondary index to be updated. - IndexName *string `min:"3" type:"string" required:"true"` + IndexName *string `type:"string" required:"true"` // Represents the provisioned throughput settings for a specified table or index. // The settings can be modified using the UpdateTable operation. @@ -5406,6 +4739,12 @@ type UpdateGlobalSecondaryIndexAction struct { // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) // in the Amazon DynamoDB Developer Guide. ProvisionedThroughput *ProvisionedThroughput `type:"structure" required:"true"` + + metadataUpdateGlobalSecondaryIndexAction `json:"-" xml:"-"` +} + +type metadataUpdateGlobalSecondaryIndexAction struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5418,34 +4757,8 @@ func (s UpdateGlobalSecondaryIndexAction) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateGlobalSecondaryIndexAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateGlobalSecondaryIndexAction"} - if s.IndexName == nil { - invalidParams.Add(request.NewErrParamRequired("IndexName")) - } - if s.IndexName != nil && len(*s.IndexName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("IndexName", 3)) - } - if s.ProvisionedThroughput == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisionedThroughput")) - } - if s.ProvisionedThroughput != nil { - if err := s.ProvisionedThroughput.Validate(); err != nil { - invalidParams.AddNested("ProvisionedThroughput", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of an UpdateItem operation. type UpdateItemInput struct { - _ struct{} `type:"structure"` - // This is a legacy parameter, for backward compatibility. New applications // should use UpdateExpression instead. Do not combine legacy parameters and // expression parameters in a single API call; otherwise, DynamoDB will return @@ -5458,7 +4771,7 @@ type UpdateItemInput struct { // and the new value for each. If you are updating an attribute that is an index // key attribute for any indexes on that table, the attribute type must match // the index key type defined in the AttributesDefinition of the table description. - // You can use UpdateItem to update any non-key attributes. + // You can use UpdateItem to update any nonkey attributes. // // Attribute values cannot be null. String and Binary type attributes must // have lengths greater than zero. Set type attributes must not be empty. Requests @@ -5467,19 +4780,19 @@ type UpdateItemInput struct { // Each AttributeUpdates element consists of an attribute name to modify, along // with the following: // - // Value - The new value, if applicable, for this attribute. + // Value - The new value, if applicable, for this attribute. // - // Action - A value that specifies how to perform the update. This action + // Action - A value that specifies how to perform the update. This action // is only valid for an existing attribute whose data type is Number or is a // set; do not use ADD for other data types. // // If an item with the specified primary key is found in the table, the following // values perform the following actions: // - // PUT - Adds the specified attribute to the item. If the attribute already + // PUT - Adds the specified attribute to the item. If the attribute already // exists, it is replaced by the new value. // - // DELETE - Removes the attribute and its value, if no value is specified + // DELETE - Removes the attribute and its value, if no value is specified // for DELETE. The data type of the specified value must match the existing // value's data type. // @@ -5488,7 +4801,7 @@ type UpdateItemInput struct { // DELETE action specifies [a,c], then the final attribute value is [b]. Specifying // an empty set is an error. // - // ADD - Adds the specified value to the item, if the attribute does not + // ADD - Adds the specified value to the item, if the attribute does not // already exist. If the attribute does exist, then the behavior of ADD depends // on the data type of the attribute: // @@ -5520,14 +4833,14 @@ type UpdateItemInput struct { // If no item with the specified key is found in the table, the following // values perform the following actions: // - // PUT - Causes DynamoDB to create a new item with the specified primary + // PUT - Causes DynamoDB to create a new item with the specified primary // key, and then adds the attribute. // - // DELETE - Nothing happens, because attributes cannot be deleted from a + // DELETE - Nothing happens, because attributes cannot be deleted from a // nonexistent item. The operation succeeds, but DynamoDB does not create a // new item. // - // ADD - Causes DynamoDB to create an item with the supplied primary key + // ADD - Causes DynamoDB to create an item with the supplied primary key // and number (or set of numbers) for the attribute value. The only data types // allowed are Number and Number Set. // @@ -5545,8 +4858,7 @@ type UpdateItemInput struct { // // These function names are case-sensitive. // - // Comparison operators: = | <> | < | > | <= | - // >= | BETWEEN | IN + // Comparison operators: = | <> | < | > | <= | >= | BETWEEN | IN // // Logical operators: AND | OR | NOT // @@ -5554,7 +4866,7 @@ type UpdateItemInput struct { // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) // in the Amazon DynamoDB Developer Guide. // - // ConditionExpression replaces the legacy ConditionalOperator and Expected + // ConditionExpression replaces the legacy ConditionalOperator and Expected // parameters. ConditionExpression *string `type:"string"` @@ -5565,17 +4877,17 @@ type UpdateItemInput struct { // // A logical operator to apply to the conditions in the Expected map: // - // AND - If all of the conditions evaluate to true, then the entire map - // evaluates to true. + // AND - If all of the conditions evaluate to true, then the entire map evaluates + // to true. // - // OR - If at least one of the conditions evaluate to true, then the entire + // OR - If at least one of the conditions evaluate to true, then the entire // map evaluates to true. // - // If you omit ConditionalOperator, then AND is the default. + // If you omit ConditionalOperator, then AND is the default. // // The operation will succeed only if the entire map evaluates to true. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. ConditionalOperator *string `type:"string" enum:"ConditionalOperator"` // This is a legacy parameter, for backward compatibility. New applications @@ -5600,9 +4912,9 @@ type UpdateItemInput struct { // If the Expected map evaluates to true, then the conditional operation succeeds; // otherwise, it fails. // - // Expected contains the following: + // Expected contains the following: // - // AttributeValueList - One or more values to evaluate against the supplied + // AttributeValueList - One or more values to evaluate against the supplied // attribute. The number of values in the list depends on the ComparisonOperator // being used. // @@ -5610,133 +4922,132 @@ type UpdateItemInput struct { // // String value comparisons for greater than, equals, or less than are based // on ASCII character code values. For example, a is greater than A, and a is - // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters - // (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + // greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters. // // For type Binary, DynamoDB treats each byte of the binary data as unsigned // when it compares binary values. // - // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. + // ComparisonOperator - A comparator for evaluating attributes in the AttributeValueList. // When performing the comparison, DynamoDB uses strongly consistent reads. // // The following comparison operators are available: // - // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS + // EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS // | BEGINS_WITH | IN | BETWEEN // // The following are descriptions of each comparison operator. // - // EQ : Equal. EQ is supported for all datatypes, including lists and maps. + // EQ : Equal. EQ is supported for all datatypes, including lists and maps. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, Binary, String Set, Number Set, or Binary Set. If an item - // contains an AttributeValue element of a different type than the one provided - // in the request, the value does not match. For example, {"S":"6"} does not - // equal {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, Binary, String Set, Number Set, or Binary Set. If an item contains + // an AttributeValue element of a different type than the one provided in the + // request, the value does not match. For example, {"S":"6"} does not equal + // {"N":"6"}. Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. // - // NE : Not equal. NE is supported for all datatypes, including lists and + // NE : Not equal. NE is supported for all datatypes, including lists and // maps. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, Binary, String Set, Number Set, or Binary Set. If an item contains - // an AttributeValue of a different type than the one provided in the request, - // the value does not match. For example, {"S":"6"} does not equal {"N":"6"}. - // Also, {"N":"6"} does not equal {"NS":["6", "2", "1"]}. + // AttributeValueList can contain only one AttributeValue of type String, Number, + // Binary, String Set, Number Set, or Binary Set. If an item contains an AttributeValue + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // does not equal {"NS":["6", "2", "1"]}. // - // LE : Less than or equal. + // LE : Less than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // LT : Less than. + // LT : Less than. // - // AttributeValueList can contain only one AttributeValue of type String, - // Number, or Binary (not a set type). If an item contains an AttributeValue - // element of a different type than the one provided in the request, the value - // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} + // AttributeValueList can contain only one AttributeValue of type String, Number, + // or Binary (not a set type). If an item contains an AttributeValue element + // of a different type than the one provided in the request, the value does + // not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GE : Greater than or equal. + // GE : Greater than or equal. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // GT : Greater than. + // GT : Greater than. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If an item contains an AttributeValue + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If an item contains an AttributeValue // element of a different type than the one provided in the request, the value // does not match. For example, {"S":"6"} does not equal {"N":"6"}. Also, {"N":"6"} // does not compare to {"NS":["6", "2", "1"]}. // - // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, + // NOT_NULL : The attribute exists. NOT_NULL is supported for all datatypes, // including lists and maps. // - // This operator tests for the existence of an attribute, not its data type. + // This operator tests for the existence of an attribute, not its data type. // If the data type of attribute "a" is null, and you evaluate it using NOT_NULL, // the result is a Boolean true. This result is because the attribute "a" exists; // its data type is not relevant to the NOT_NULL comparison operator. // - // NULL : The attribute does not exist. NULL is supported for all datatypes, + // NULL : The attribute does not exist. NULL is supported for all datatypes, // including lists and maps. // - // This operator tests for the nonexistence of an attribute, not its data - // type. If the data type of attribute "a" is null, and you evaluate it using - // NULL, the result is a Boolean false. This is because the attribute "a" exists; + // This operator tests for the nonexistence of an attribute, not its data type. + // If the data type of attribute "a" is null, and you evaluate it using NULL, + // the result is a Boolean false. This is because the attribute "a" exists; // its data type is not relevant to the NULL comparison operator. // - // CONTAINS : Checks for a subsequence, or value in a set. + // CONTAINS : Checks for a subsequence, or value in a set. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is of type String, then the operator checks for a substring match. - // If the target attribute of the comparison is of type Binary, then the operator - // looks for a subsequence of the target that matches the input. If the target - // attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator - // evaluates to true if it finds an exact match with any member of the set. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If the target attribute of the comparison + // is of type String, then the operator checks for a substring match. If the + // target attribute of the comparison is of type Binary, then the operator looks + // for a subsequence of the target that matches the input. If the target attribute + // of the comparison is a set ("SS", "NS", or "BS"), then the operator evaluates + // to true if it finds an exact match with any member of the set. // // CONTAINS is supported for lists: When evaluating "a CONTAINS b", "a" can // be a list; however, "b" cannot be a set, a map, or a list. // - // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value + // NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value // in a set. // - // AttributeValueList can contain only one AttributeValue element of type - // String, Number, or Binary (not a set type). If the target attribute of the - // comparison is a String, then the operator checks for the absence of a substring - // match. If the target attribute of the comparison is Binary, then the operator - // checks for the absence of a subsequence of the target that matches the input. - // If the target attribute of the comparison is a set ("SS", "NS", or "BS"), - // then the operator evaluates to true if it does not find an exact match with - // any member of the set. + // AttributeValueList can contain only one AttributeValue element of type String, + // Number, or Binary (not a set type). If the target attribute of the comparison + // is a String, then the operator checks for the absence of a substring match. + // If the target attribute of the comparison is Binary, then the operator checks + // for the absence of a subsequence of the target that matches the input. If + // the target attribute of the comparison is a set ("SS", "NS", or "BS"), then + // the operator evaluates to true if it does not find an exact match with any + // member of the set. // // NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", // "a" can be a list; however, "b" cannot be a set, a map, or a list. // - // BEGINS_WITH : Checks for a prefix. + // BEGINS_WITH : Checks for a prefix. // - // AttributeValueList can contain only one AttributeValue of type String or + // AttributeValueList can contain only one AttributeValue of type String or // Binary (not a Number or a set type). The target attribute of the comparison // must be of type String or Binary (not a Number or a set type). // - // IN : Checks for matching elements within two sets. + // IN : Checks for matching elements within two sets. // - // AttributeValueList can contain one or more AttributeValue elements of type + // AttributeValueList can contain one or more AttributeValue elements of type // String, Number, or Binary (not a set type). These attributes are compared // against an existing set type attribute of an item. If any elements of the // input set are present in the item attribute, the expression evaluates to // true. // - // BETWEEN : Greater than or equal to the first value, and less than or - // equal to the second value. + // BETWEEN : Greater than or equal to the first value, and less than or equal + // to the second value. // - // AttributeValueList must contain two AttributeValue elements of the same + // AttributeValueList must contain two AttributeValue elements of the same // type, either String, Number, or Binary (not a set type). A target attribute // matches if the target value is greater than, or equal to, the first element // and less than, or equal to, the second element. If an item contains an AttributeValue @@ -5751,27 +5062,27 @@ type UpdateItemInput struct { // For backward compatibility with previous DynamoDB releases, the following // parameters can be used instead of AttributeValueList and ComparisonOperator: // - // Value - A value for DynamoDB to compare with an attribute. + // Value - A value for DynamoDB to compare with an attribute. // - // Exists - A Boolean value that causes DynamoDB to evaluate the value before + // Exists - A Boolean value that causes DynamoDB to evaluate the value before // attempting the conditional operation: // // If Exists is true, DynamoDB will check to see if that attribute value // already exists in the table. If it is found, then the condition evaluates // to true; otherwise the condition evaluate to false. // - // If Exists is false, DynamoDB assumes that the attribute value does not + // If Exists is false, DynamoDB assumes that the attribute value does not // exist in the table. If in fact the value does not exist, then the assumption // is valid and the condition evaluates to true. If the value is found, despite // the assumption that it does not exist, the condition evaluates to false. // - // Note that the default value for Exists is true. + // Note that the default value for Exists is true. // // The Value and Exists parameters are incompatible with AttributeValueList // and ComparisonOperator. Note that if you use both sets of parameters at once, // DynamoDB will return a ValidationException exception. // - // This parameter does not support attributes of type List or Map. + // This parameter does not support attributes of type List or Map. Expected map[string]*ExpectedAttributeValue `type:"map"` // One or more substitution tokens for attribute names in an expression. The @@ -5788,25 +5099,25 @@ type UpdateItemInput struct { // Use the # character in an expression to dereference an attribute name. // For example, consider the following attribute name: // - // Percentile + // Percentile // - // The name of this attribute conflicts with a reserved word, so it cannot + // The name of this attribute conflicts with a reserved word, so it cannot // be used directly in an expression. (For the complete list of reserved words, // see Reserved Words (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) // in the Amazon DynamoDB Developer Guide). To work around this, you could specify // the following for ExpressionAttributeNames: // - // {"#P":"Percentile"} + // {"#P":"Percentile"} // - // You could then use this substitution in an expression, as in this example: + // You could then use this substitution in an expression, as in this example: // - // #P = :val + // #P = :val // - // Tokens that begin with the : character are expression attribute values, + // Tokens that begin with the : character are expression attribute values, // which are placeholders for the actual value at runtime. // - // For more information on expression attribute names, see Accessing Item - // Attributes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + // For more information on expression attribute names, see Accessing Item Attributes + // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) // in the Amazon DynamoDB Developer Guide. ExpressionAttributeNames map[string]*string `type:"map"` @@ -5816,16 +5127,16 @@ type UpdateItemInput struct { // value. For example, suppose that you wanted to check whether the value of // the ProductStatus attribute was one of the following: // - // Available | Backordered | Discontinued + // Available | Backordered | Discontinued // // You would first need to specify ExpressionAttributeValues as follows: // - // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} + // { ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} // } // // You could then use these values in an expression, such as this: // - // ProductStatus IN (:avail, :back, :disc) + // ProductStatus IN (:avail, :back, :disc) // // For more information on expression attribute values, see Specifying Conditions // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) @@ -5836,15 +5147,15 @@ type UpdateItemInput struct { // name and a value for that attribute. // // For the primary key, you must provide all of the attributes. For example, - // with a simple primary key, you only need to provide a value for the partition - // key. For a composite primary key, you must provide values for both the partition - // key and the sort key. + // with a hash type primary key, you only need to provide the hash attribute. + // For a hash-and-range type primary key, you must provide both the hash attribute + // and the range attribute. Key map[string]*AttributeValue `type:"map" required:"true"` // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // - // INDEXES - The response includes the aggregate ConsumedCapacity for the + // INDEXES - The response includes the aggregate ConsumedCapacity for the // operation, together with ConsumedCapacity for each table and secondary index // that was accessed. // @@ -5852,10 +5163,10 @@ type UpdateItemInput struct { // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity // information for table(s). // - // TOTAL - The response includes only the aggregate ConsumedCapacity for - // the operation. + // TOTAL - The response includes only the aggregate ConsumedCapacity for the + // operation. // - // NONE - No ConsumedCapacity details are included in the response. + // NONE - No ConsumedCapacity details are included in the response. ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` // Determines whether item collection metrics are returned. If set to SIZE, @@ -5868,54 +5179,48 @@ type UpdateItemInput struct { // either before or after they were updated. For UpdateItem, the valid values // are: // - // NONE - If ReturnValues is not specified, or if its value is NONE, then + // NONE - If ReturnValues is not specified, or if its value is NONE, then // nothing is returned. (This setting is the default for ReturnValues.) // - // ALL_OLD - If UpdateItem overwrote an attribute name-value pair, then - // the content of the old item is returned. - // - // UPDATED_OLD - The old versions of only the updated attributes are returned. - // - // ALL_NEW - All of the attributes of the new version of the item are returned. + // ALL_OLD - If UpdateItem overwrote an attribute name-value pair, then the + // content of the old item is returned. // - // UPDATED_NEW - The new versions of only the updated attributes are returned. + // UPDATED_OLD - The old versions of only the updated attributes are returned. // - // There is no additional cost associated with requesting a return value - // aside from the small network and processing overhead of receiving a larger - // response. No Read Capacity Units are consumed. + // ALL_NEW - All of the attributes of the new version of the item are returned. // - // Values returned are strongly consistent + // UPDATED_NEW - The new versions of only the updated attributes are returned. ReturnValues *string `type:"string" enum:"ReturnValue"` // The name of the table containing the item to update. - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` // An expression that defines one or more attributes to be updated, the action // to be performed on them, and new value(s) for them. // // The following action values are available for UpdateExpression. // - // SET - Adds one or more attributes and values to an item. If any of these + // SET - Adds one or more attributes and values to an item. If any of these // attribute already exist, they are replaced by the new values. You can also // use SET to add or subtract from an attribute that is of type Number. For // example: SET myNum = myNum + :val // - // SET supports the following functions: + // SET supports the following functions: // - // if_not_exists (path, operand) - if the item does not contain an attribute + // if_not_exists (path, operand) - if the item does not contain an attribute // at the specified path, then if_not_exists evaluates to operand; otherwise, // it evaluates to path. You can use this function to avoid overwriting an attribute // that may already be present in the item. // - // list_append (operand, operand) - evaluates to a list with a new element + // list_append (operand, operand) - evaluates to a list with a new element // added to it. You can append the new element to the start or the end of the // list by reversing the order of the operands. // - // These function names are case-sensitive. + // These function names are case-sensitive. // - // REMOVE - Removes one or more attributes from an item. + // REMOVE - Removes one or more attributes from an item. // - // ADD - Adds the specified value to the item, if the attribute does not + // ADD - Adds the specified value to the item, if the attribute does not // already exist. If the attribute does exist, then the behavior of ADD depends // on the data type of the attribute: // @@ -5943,17 +5248,17 @@ type UpdateItemInput struct { // Both sets must have the same primitive data type. For example, if the existing // data type is a set of strings, the Value must also be a set of strings. // - // The ADD action only supports Number and set data types. In addition, - // ADD can only be used on top-level attributes, not nested attributes. + // The ADD action only supports Number and set data types. In addition, ADD + // can only be used on top-level attributes, not nested attributes. // - // DELETE - Deletes an element from a set. + // DELETE - Deletes an element from a set. // // If a set of values is specified, then those values are subtracted from the // old set. For example, if the attribute value was the set [a,b,c] and the // DELETE action specifies [a,c], then the final attribute value is [b]. Specifying // an empty set is an error. // - // The DELETE action only supports set data types. In addition, DELETE can + // The DELETE action only supports set data types. In addition, DELETE can // only be used on top-level attributes, not nested attributes. // // You can have many actions in a single expression, such as the following: @@ -5963,8 +5268,14 @@ type UpdateItemInput struct { // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.Modifying.html) // in the Amazon DynamoDB Developer Guide. // - // UpdateExpression replaces the legacy AttributeUpdates parameter. + // UpdateExpression replaces the legacy AttributeUpdates parameter. UpdateExpression *string `type:"string"` + + metadataUpdateItemInput `json:"-" xml:"-"` +} + +type metadataUpdateItemInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5977,29 +5288,8 @@ func (s UpdateItemInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateItemInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateItemInput"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an UpdateItem operation. type UpdateItemOutput struct { - _ struct{} `type:"structure"` - // A map of attribute values as they appeared before the UpdateItem operation. // This map only appears if ReturnValues was specified as something other than // NONE in the request. Each element represents one attribute. @@ -6018,6 +5308,12 @@ type UpdateItemOutput struct { // table does not have any local secondary indexes, this information is not // returned in the response. ItemCollectionMetrics *ItemCollectionMetrics `type:"structure"` + + metadataUpdateItemOutput `json:"-" xml:"-"` +} + +type metadataUpdateItemOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6032,8 +5328,6 @@ func (s UpdateItemOutput) GoString() string { // Represents the input of an UpdateTable operation. type UpdateTableInput struct { - _ struct{} `type:"structure"` - // An array of attributes that describe the key schema for the table and indexes. // If you are adding a new global secondary index to the table, AttributeDefinitions // must include the key element(s) of the new index. @@ -6042,14 +5336,14 @@ type UpdateTableInput struct { // An array of one or more global secondary indexes for the table. For each // index in the array, you can request one action: // - // Create - add a new global secondary index to the table. + // Create - add a new global secondary index to the table. // - // Update - modify the provisioned throughput settings of an existing global + // Update - modify the provisioned throughput settings of an existing global // secondary index. // - // Delete - remove a global secondary index from the table. + // Delete - remove a global secondary index from the table. // - // For more information, see Managing Global Secondary Indexes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html) + // For more information, see Managing Global Secondary Indexes (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html) // in the Amazon DynamoDB Developer Guide. GlobalSecondaryIndexUpdates []*GlobalSecondaryIndexUpdate `type:"list"` @@ -6069,7 +5363,13 @@ type UpdateTableInput struct { StreamSpecification *StreamSpecification `type:"structure"` // The name of the table to be updated. - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` + + metadataUpdateTableInput `json:"-" xml:"-"` +} + +type metadataUpdateTableInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6082,53 +5382,16 @@ func (s UpdateTableInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateTableInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateTableInput"} - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - if s.AttributeDefinitions != nil { - for i, v := range s.AttributeDefinitions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AttributeDefinitions", i), err.(request.ErrInvalidParams)) - } - } - } - if s.GlobalSecondaryIndexUpdates != nil { - for i, v := range s.GlobalSecondaryIndexUpdates { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GlobalSecondaryIndexUpdates", i), err.(request.ErrInvalidParams)) - } - } - } - if s.ProvisionedThroughput != nil { - if err := s.ProvisionedThroughput.Validate(); err != nil { - invalidParams.AddNested("ProvisionedThroughput", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an UpdateTable operation. type UpdateTableOutput struct { - _ struct{} `type:"structure"` - // Represents the properties of a table. TableDescription *TableDescription `type:"structure"` + + metadataUpdateTableOutput `json:"-" xml:"-"` +} + +type metadataUpdateTableOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6146,13 +5409,17 @@ func (s UpdateTableOutput) GoString() string { // If you do need to perform both of these operations, you will need to provide // two separate WriteRequest objects. type WriteRequest struct { - _ struct{} `type:"structure"` - // A request to perform a DeleteItem operation. DeleteRequest *DeleteRequest `type:"structure"` // A request to perform a PutItem operation. PutRequest *PutRequest `type:"structure"` + + metadataWriteRequest `json:"-" xml:"-"` +} + +type metadataWriteRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6240,7 +5507,7 @@ const ( // Determines the level of detail about provisioned throughput consumption that // is returned in the response: // -// INDEXES - The response includes the aggregate ConsumedCapacity for the +// INDEXES - The response includes the aggregate ConsumedCapacity for the // operation, together with ConsumedCapacity for each table and secondary index // that was accessed. // @@ -6248,10 +5515,10 @@ const ( // any indexes at all. In these cases, specifying INDEXES will only return ConsumedCapacity // information for table(s). // -// TOTAL - The response includes only the aggregate ConsumedCapacity for -// the operation. +// TOTAL - The response includes only the aggregate ConsumedCapacity for the +// operation. // -// NONE - No ConsumedCapacity details are included in the response. +// NONE - No ConsumedCapacity details are included in the response. const ( // @enum ReturnConsumedCapacity ReturnConsumedCapacityIndexes = "INDEXES" diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations.go index 51843cd7a..c2e2dcebe 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations.go @@ -11,12 +11,12 @@ import ( "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/aws/service" ) type retryer struct { - client.DefaultRetryer + service.DefaultRetryer } func (d retryer) RetryRules(r *request.Request) time.Duration { @@ -25,33 +25,24 @@ func (d retryer) RetryRules(r *request.Request) time.Duration { } func init() { - initClient = func(c *client.Client) { - r := retryer{} - if c.Config.MaxRetries == nil || aws.IntValue(c.Config.MaxRetries) == aws.UseServiceDefaultRetries { - r.NumMaxRetries = 10 - } else { - r.NumMaxRetries = *c.Config.MaxRetries - } - c.Retryer = r - - c.Handlers.Build.PushBack(disableCompression) - c.Handlers.Unmarshal.PushFront(validateCRC32) - } -} + initService = func(s *service.Service) { + s.DefaultMaxRetries = 10 + s.Retryer = retryer{service.DefaultRetryer{s}} -func drainBody(b io.ReadCloser, length int64) (out *bytes.Buffer, err error) { - if length < 0 { - length = 0 + s.Handlers.Build.PushBack(disableCompression) + s.Handlers.Unmarshal.PushFront(validateCRC32) } - buf := bytes.NewBuffer(make([]byte, 0, length)) +} +func drainBody(b io.ReadCloser) (out *bytes.Buffer, err error) { + var buf bytes.Buffer if _, err = buf.ReadFrom(b); err != nil { return nil, err } if err = b.Close(); err != nil { return nil, err } - return buf, nil + return &buf, nil } func disableCompression(r *request.Request) { @@ -64,7 +55,7 @@ func validateCRC32(r *request.Request) { } // Checksum validation is off, skip - if aws.BoolValue(r.Config.DisableComputeChecksums) { + if aws.BoolValue(r.Service.Config.DisableComputeChecksums) { return } @@ -79,7 +70,7 @@ func validateCRC32(r *request.Request) { return // Could not determine CRC value, skip } - buf, err := drainBody(r.HTTPResponse.Body, r.HTTPResponse.ContentLength) + buf, err := drainBody(r.HTTPResponse.Body) if err != nil { // failed to read the response body, skip return } diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations_test.go index 194b51794..627c82318 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations_test.go @@ -7,19 +7,19 @@ import ( "os" "testing" - "github.com/stretchr/testify/assert" - "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/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/stretchr/testify/assert" ) +var _ = unit.Imported var db *dynamodb.DynamoDB func TestMain(m *testing.M) { - db = dynamodb.New(unit.Session, &aws.Config{ + db = dynamodb.New(&aws.Config{ MaxRetries: aws.Int(2), }) db.Handlers.Send.Clear() // mock sending @@ -34,24 +34,18 @@ func mockCRCResponse(svc *dynamodb.DynamoDB, status int, body, crc string) (req req, _ = svc.ListTablesRequest(nil) req.Handlers.Send.PushBack(func(*request.Request) { req.HTTPResponse = &http.Response{ - ContentLength: int64(len(body)), - StatusCode: status, - Body: ioutil.NopCloser(bytes.NewReader([]byte(body))), - Header: header, + StatusCode: status, + Body: ioutil.NopCloser(bytes.NewReader([]byte(body))), + Header: header, } }) req.Send() return } -func TestDefaultRetryRules(t *testing.T) { - d := dynamodb.New(unit.Session, &aws.Config{MaxRetries: aws.Int(-1)}) - assert.Equal(t, d.MaxRetries(), 10) -} - func TestCustomRetryRules(t *testing.T) { - d := dynamodb.New(unit.Session, &aws.Config{MaxRetries: aws.Int(2)}) - assert.Equal(t, d.MaxRetries(), 2) + d := dynamodb.New(&aws.Config{MaxRetries: aws.Int(-1)}) + assert.Equal(t, d.MaxRetries(), uint(10)) } func TestValidateCRC32NoHeaderSkip(t *testing.T) { @@ -85,11 +79,11 @@ func TestValidateCRC32DoesNotMatch(t *testing.T) { assert.Error(t, req.Error) assert.Equal(t, "CRC32CheckFailed", req.Error.(awserr.Error).Code()) - assert.Equal(t, 2, req.RetryCount) + assert.Equal(t, 2, int(req.RetryCount)) } func TestValidateCRC32DoesNotMatchNoComputeChecksum(t *testing.T) { - svc := dynamodb.New(unit.Session, &aws.Config{ + svc := dynamodb.New(&aws.Config{ MaxRetries: aws.Int(2), DisableComputeChecksums: aws.Bool(true), }) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter.go index e38e41daf..7b2daf464 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter.go @@ -1,3 +1,45 @@ +// Package dynamodbattribute provides conversion utilities from dynamodb.AttributeValue +// to concrete Go types and structures. These conversion utilities allow you to +// convert a Struct, Slice, Map, or Scalar value to or from dynamodb.AttributeValue. +// These are most useful to serialize concrete types to dynamodb.AttributeValue for +// requests or unmarshalling the dynamodb.AttributeValue into a well known typed form. +// +// Convert concrete type to dynamodb.AttributeValue: See (ExampleConvertTo) +// +// type Record struct { +// MyField string +// Letters []string +// A2Num map[string]int +// } +// +// ... +// +// r := Record{ +// MyField: "dynamodbattribute.ConvertToX example", +// Letters: []string{"a", "b", "c", "d"}, +// A2Num: map[string]int{"a": 1, "b": 2, "c": 3}, +// } +// av, err := dynamodbattribute.ConvertTo(r) +// fmt.Println(av, err) +// +// Convert dynamodb.AttributeValue to Concrete type: See (ExampleConvertFrom) +// +// r2 := Record{} +// err = dynamodbattribute.ConvertFrom(av, &r2) +// fmt.Println(err, reflect.DeepEqual(r, r2)) +// +// Use Conversion utilities with DynamoDB.PutItem: See () +// +// svc := dynamodb.New(nil) +// item, err := dynamodbattribute.ConvertToMap(r) +// if err != nil { +// fmt.Println("Failed to convert", err) +// return +// } +// result, err := svc.PutItem(&dynamodb.PutItemInput{ +// Item: item, +// TableName: aws.String("exampleTable"), +// }) package dynamodbattribute import ( @@ -17,8 +59,6 @@ import ( // // If in contains any structs, it is first JSON encoded/decoded it to convert it // to a map[string]interface{}, so `json` struct tags are respected. -// -// Deprecated: Use MarshalMap instead func ConvertToMap(in interface{}) (item map[string]*dynamodb.AttributeValue, err error) { defer func() { if r := recover(); r != nil { @@ -65,8 +105,6 @@ func ConvertToMap(in interface{}) (item map[string]*dynamodb.AttributeValue, err // If v points to a struct, the result is first converted it to a // map[string]interface{}, then JSON encoded/decoded it to convert to a struct, // so `json` struct tags are respected. -// -// Deprecated: Use UnmarshalMap instead func ConvertFromMap(item map[string]*dynamodb.AttributeValue, v interface{}) (err error) { defer func() { if r := recover(); r != nil { @@ -112,15 +150,8 @@ func ConvertFromMap(item map[string]*dynamodb.AttributeValue, v interface{}) (er // ConvertToList accepts an array or slice and converts it to a // []*dynamodb.AttributeValue. // -// Converting []byte fields to dynamodb.AttributeValue are only currently supported -// if the input is a map[string]interface{} type. []byte within typed structs are not -// converted correctly and are converted into base64 strings. This is a known bug, -// and will be fixed in a later release. -// // If in contains any structs, it is first JSON encoded/decoded it to convert it // to a []interface{}, so `json` struct tags are respected. -// -// Deprecated: Use MarshalList instead func ConvertToList(in interface{}) (item []*dynamodb.AttributeValue, err error) { defer func() { if r := recover(); r != nil { @@ -168,8 +199,6 @@ func ConvertToList(in interface{}) (item []*dynamodb.AttributeValue, err error) // If v contains any structs, the result is first converted it to a // []interface{}, then JSON encoded/decoded it to convert to a typed array or // slice, so `json` struct tags are respected. -// -// Deprecated: Use UnmarshalList instead func ConvertFromList(item []*dynamodb.AttributeValue, v interface{}) (err error) { defer func() { if r := recover(); r != nil { @@ -216,8 +245,6 @@ func ConvertFromList(item []*dynamodb.AttributeValue, v interface{}) (err error) // // If in contains any structs, it is first JSON encoded/decoded it to convert it // to a interface{}, so `json` struct tags are respected. -// -// Deprecated: Use Marshal instead func ConvertTo(in interface{}) (item *dynamodb.AttributeValue, err error) { defer func() { if r := recover(); r != nil { @@ -246,8 +273,6 @@ func ConvertTo(in interface{}) (item *dynamodb.AttributeValue, err error) { // If v contains any structs, the result is first converted it to a interface{}, // then JSON encoded/decoded it to convert to a struct, so `json` struct tags // are respected. -// -// Deprecated: Use Unmarshal instead func ConvertFrom(item *dynamodb.AttributeValue, v interface{}) (err error) { defer func() { if r := recover(); r != nil { @@ -351,6 +376,15 @@ func convertTo(in interface{}) *dynamodb.AttributeValue { return a } + if l, ok := in.([]interface{}); ok { + a.L = make([]*dynamodb.AttributeValue, len(l)) + for index, v := range l { + a.L[index] = convertTo(v) + } + return a + } + + // Only primitive types should remain. v := reflect.ValueOf(in) switch v.Kind() { case reflect.Bool: @@ -373,16 +407,6 @@ func convertTo(in interface{}) *dynamodb.AttributeValue { a.S = new(string) *a.S = v.String() } - case reflect.Slice: - switch v.Type() { - case reflect.TypeOf(([]byte)(nil)): - a.B = v.Bytes() - default: - a.L = make([]*dynamodb.AttributeValue, v.Len()) - for i := 0; i < v.Len(); i++ { - a.L[i] = convertTo(v.Index(i).Interface()) - } - } default: panic(fmt.Sprintf("the type %s is not supported", v.Type().String())) } @@ -435,9 +459,5 @@ func convertFrom(a *dynamodb.AttributeValue) interface{} { return l } - if a.B != nil { - return a.B - } - panic(fmt.Sprintf("%#v is not a supported dynamodb.AttributeValue", a)) } diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter_test.go index a73cd22c3..2b536f039 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter_test.go @@ -2,10 +2,12 @@ package dynamodbattribute import ( "math" + "reflect" "testing" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/dynamodb" ) @@ -121,10 +123,6 @@ var converterMapTestInputs = []converterTestInput{ input: map[string]interface{}{"int": int(12)}, expected: map[string]*dynamodb.AttributeValue{"int": {N: aws.String("12")}}, }, - { - input: map[string]interface{}{"byte": []byte{48, 49}}, - expected: map[string]*dynamodb.AttributeValue{"byte": {B: []byte{48, 49}}}, - }, // List { input: map[string]interface{}{"list": []interface{}{"a string", 12, 3.14, true, nil, false}}, @@ -479,20 +477,12 @@ func TestConvertFromListError(t *testing.T) { } } -func BenchmarkConvertTo(b *testing.B) { - d := mySimpleStruct{ - String: "abc", - Int: 123, - Uint: 123, - Float32: 123.321, - Float64: 123.321, - Bool: true, - Null: nil, - } - for i := 0; i < b.N; i++ { - _, err := ConvertTo(d) - if err != nil { - b.Fatal("unexpected error", err) - } +func compareObjects(t *testing.T, expected interface{}, actual interface{}) { + if !reflect.DeepEqual(expected, actual) { + t.Errorf("\nExpected %s:\n%s\nActual %s:\n%s\n", + reflect.ValueOf(expected).Kind(), + awsutil.Prettify(expected), + reflect.ValueOf(actual).Kind(), + awsutil.Prettify(actual)) } } diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go deleted file mode 100644 index 24d8ba29b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go +++ /dev/null @@ -1,640 +0,0 @@ -package dynamodbattribute - -import ( - "fmt" - "reflect" - "strconv" - "time" - - "github.com/aws/aws-sdk-go/service/dynamodb" -) - -// An Unmarshaler is an interface to provide custom unmarshaling of -// AttributeValues. Use this to provide custom logic determining -// how AttributeValues should be unmarshaled. -// type ExampleUnmarshaler struct { -// Value int -// } -// -// type (u *exampleUnmarshaler) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error { -// if av.N == nil { -// return nil -// } -// -// n, err := strconv.ParseInt(*av.N, 10, 0) -// if err != nil { -// return err -// } -// -// u.Value = n -// return nil -// } -type Unmarshaler interface { - UnmarshalDynamoDBAttributeValue(*dynamodb.AttributeValue) error -} - -// Unmarshal will unmarshal DynamoDB AttributeValues to Go value types. -// Both generic interface{} and concrete types are valid unmarshal -// destination types. -// -// Unmarshal will allocate maps, slices, and pointers as needed to -// unmarshal the AttributeValue into the provided type value. -// -// When unmarshaling AttributeValues into structs Unmarshal matches -// the field names of the struct to the AttributeValue Map keys. -// Initially it will look for exact field name matching, but will -// fall back to case insensitive if not exact match is found. -// -// With the exception of omitempty, omitemptyelem, binaryset, numberset -// and stringset all struct tags used by Marshal are also used by -// Unmarshal. -// -// When decoding AttributeValues to interfaces Unmarshal will use the -// following types. -// -// []byte, AV Binary (B) -// [][]byte, AV Binary Set (BS) -// bool, AV Boolean (BOOL) -// []interface{}, AV List (L) -// map[string]interface{}, AV Map (M) -// float64, AV Number (N) -// Number, AV Number (N) with UseNumber set -// []float64, AV Number Set (NS) -// []Number, AV Number Set (NS) with UseNumber set -// string, AV String (S) -// []string, AV String Set (SS) -// -// If the Decoder option, UseNumber is set numbers will be unmarshaled -// as Number values instead of float64. Use this to maintain the original -// string formating of the number as it was represented in the AttributeValue. -// In addition provides additional opportunities to parse the number -// string based on individual use cases. -// -// When unmarshaling any error that occurs will halt the unmarshal -// and return the error. -// -// The output value provided must be a non-nil pointer -func Unmarshal(av *dynamodb.AttributeValue, out interface{}) error { - return NewDecoder().Decode(av, out) -} - -// UnmarshalMap is an alias for Unmarshal which unmarshals from -// a map of AttributeValues. -// -// The output value provided must be a non-nil pointer -func UnmarshalMap(m map[string]*dynamodb.AttributeValue, out interface{}) error { - return NewDecoder().Decode(&dynamodb.AttributeValue{M: m}, out) -} - -// UnmarshalList is an alias for Unmarshal func which unmarshals -// a slice of AttributeValues. -// -// The output value provided must be a non-nil pointer -func UnmarshalList(l []*dynamodb.AttributeValue, out interface{}) error { - return NewDecoder().Decode(&dynamodb.AttributeValue{L: l}, out) -} - -// A Decoder provides unmarshaling AttributeValues to Go value types. -type Decoder struct { - MarshalOptions - - // Instructs the decoder to decode AttributeValue Numbers as - // Number type instead of float64 when the destination type - // is interface{}. Similar to encoding/json.Number - UseNumber bool -} - -// NewDecoder creates a new Decoder with default configuration. Use -// the `opts` functional options to override the default configuration. -func NewDecoder(opts ...func(*Decoder)) *Decoder { - d := &Decoder{ - MarshalOptions: MarshalOptions{ - SupportJSONTags: true, - }, - } - for _, o := range opts { - o(d) - } - - return d -} - -// Decode will unmarshal an AttributeValue into a Go value type. An error -// will be return if the decoder is unable to unmarshal the AttributeValue -// to the provide Go value type. -// -// The output value provided must be a non-nil pointer -func (d *Decoder) Decode(av *dynamodb.AttributeValue, out interface{}, opts ...func(*Decoder)) error { - v := reflect.ValueOf(out) - if v.Kind() != reflect.Ptr || v.IsNil() || !v.IsValid() { - return &InvalidUnmarshalError{Type: reflect.TypeOf(out)} - } - - return d.decode(av, v, tag{}) -} - -var stringInterfaceMapType = reflect.TypeOf(map[string]interface{}(nil)) -var byteSliceType = reflect.TypeOf([]byte(nil)) -var byteSliceSlicetype = reflect.TypeOf([][]byte(nil)) -var numberType = reflect.TypeOf(Number("")) - -func (d *Decoder) decode(av *dynamodb.AttributeValue, v reflect.Value, fieldTag tag) error { - var u Unmarshaler - if av == nil || av.NULL != nil { - u, v = indirect(v, true) - if u != nil { - return u.UnmarshalDynamoDBAttributeValue(av) - } - return d.decodeNull(v) - } - - u, v = indirect(v, false) - if u != nil { - return u.UnmarshalDynamoDBAttributeValue(av) - } - - switch { - case len(av.B) != 0: - return d.decodeBinary(av.B, v) - case av.BOOL != nil: - return d.decodeBool(av.BOOL, v) - case len(av.BS) != 0: - return d.decodeBinarySet(av.BS, v) - case len(av.L) != 0: - return d.decodeList(av.L, v) - case len(av.M) != 0: - return d.decodeMap(av.M, v) - case av.N != nil: - return d.decodeNumber(av.N, v) - case len(av.NS) != 0: - return d.decodeNumberSet(av.NS, v) - case av.S != nil: - return d.decodeString(av.S, v, fieldTag) - case len(av.SS) != 0: - return d.decodeStringSet(av.SS, v) - } - - return nil -} - -func (d *Decoder) decodeBinary(b []byte, v reflect.Value) error { - if v.Kind() == reflect.Interface { - buf := make([]byte, len(b)) - copy(buf, b) - v.Set(reflect.ValueOf(buf)) - return nil - } - - switch v.Interface().(type) { - case []byte: - if v.IsNil() || v.Cap() < len(b) { - v.Set(reflect.MakeSlice(byteSliceType, len(b), len(b))) - } else if v.Len() != len(b) { - v.SetLen(len(b)) - } - copy(v.Interface().([]byte), b) - default: - if v.Kind() == reflect.Array && v.Type().Elem().Kind() == reflect.Uint8 { - reflect.Copy(v, reflect.ValueOf(b)) - break - } - return &UnmarshalTypeError{Value: "binary", Type: v.Type()} - } - - return nil -} - -func (d *Decoder) decodeBool(b *bool, v reflect.Value) error { - switch v.Kind() { - case reflect.Bool, reflect.Interface: - v.Set(reflect.ValueOf(*b)) - default: - return &UnmarshalTypeError{Value: "bool", Type: v.Type()} - } - - return nil -} - -func (d *Decoder) decodeBinarySet(bs [][]byte, v reflect.Value) error { - switch v.Kind() { - case reflect.Slice: - // Make room for the slice elements if needed - if v.IsNil() || v.Cap() < len(bs) { - // What about if ignoring nil/empty values? - v.Set(reflect.MakeSlice(v.Type(), 0, len(bs))) - } - case reflect.Array: - // Limited to capacity of existing array. - case reflect.Interface: - set := make([][]byte, len(bs)) - for i, b := range bs { - if err := d.decodeBinary(b, reflect.ValueOf(&set[i]).Elem()); err != nil { - return err - } - } - v.Set(reflect.ValueOf(set)) - return nil - default: - return &UnmarshalTypeError{Value: "binary set", Type: v.Type()} - } - - for i := 0; i < v.Cap() && i < len(bs); i++ { - v.SetLen(i + 1) - u, elem := indirect(v.Index(i), false) - if u != nil { - return u.UnmarshalDynamoDBAttributeValue(&dynamodb.AttributeValue{BS: bs}) - } - if err := d.decodeBinary(bs[i], elem); err != nil { - return err - } - } - - return nil -} - -func (d *Decoder) decodeNumber(n *string, v reflect.Value) error { - switch v.Kind() { - case reflect.Interface: - i, err := d.decodeNumberToInterface(n) - if err != nil { - return err - } - v.Set(reflect.ValueOf(i)) - return nil - case reflect.String: - if v.Type() == numberType { // Support Number value type - v.Set(reflect.ValueOf(Number(*n))) - return nil - } - v.Set(reflect.ValueOf(*n)) - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - i, err := strconv.ParseInt(*n, 10, 64) - if err != nil { - return err - } - if v.OverflowInt(i) { - return &UnmarshalTypeError{ - Value: fmt.Sprintf("number overflow, %s", *n), - Type: v.Type(), - } - } - v.SetInt(i) - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - i, err := strconv.ParseUint(*n, 10, 64) - if err != nil { - return err - } - if v.OverflowUint(i) { - return &UnmarshalTypeError{ - Value: fmt.Sprintf("number overflow, %s", *n), - Type: v.Type(), - } - } - v.SetUint(i) - case reflect.Float32, reflect.Float64: - i, err := strconv.ParseFloat(*n, 64) - if err != nil { - return err - } - if v.OverflowFloat(i) { - return &UnmarshalTypeError{ - Value: fmt.Sprintf("number overflow, %s", *n), - Type: v.Type(), - } - } - v.SetFloat(i) - default: - return &UnmarshalTypeError{Value: "number", Type: v.Type()} - } - - return nil -} - -func (d *Decoder) decodeNumberToInterface(n *string) (interface{}, error) { - if d.UseNumber { - return Number(*n), nil - } - - // Default to float64 for all numbers - return strconv.ParseFloat(*n, 64) -} - -func (d *Decoder) decodeNumberSet(ns []*string, v reflect.Value) error { - switch v.Kind() { - case reflect.Slice: - // Make room for the slice elements if needed - if v.IsNil() || v.Cap() < len(ns) { - // What about if ignoring nil/empty values? - v.Set(reflect.MakeSlice(v.Type(), 0, len(ns))) - } - case reflect.Array: - // Limited to capacity of existing array. - case reflect.Interface: - if d.UseNumber { - set := make([]Number, len(ns)) - for i, n := range ns { - if err := d.decodeNumber(n, reflect.ValueOf(&set[i]).Elem()); err != nil { - return err - } - } - v.Set(reflect.ValueOf(set)) - } else { - set := make([]float64, len(ns)) - for i, n := range ns { - if err := d.decodeNumber(n, reflect.ValueOf(&set[i]).Elem()); err != nil { - return err - } - } - v.Set(reflect.ValueOf(set)) - } - return nil - default: - return &UnmarshalTypeError{Value: "number set", Type: v.Type()} - } - - for i := 0; i < v.Cap() && i < len(ns); i++ { - v.SetLen(i + 1) - u, elem := indirect(v.Index(i), false) - if u != nil { - return u.UnmarshalDynamoDBAttributeValue(&dynamodb.AttributeValue{NS: ns}) - } - if err := d.decodeNumber(ns[i], elem); err != nil { - return err - } - } - - return nil -} - -func (d *Decoder) decodeList(avList []*dynamodb.AttributeValue, v reflect.Value) error { - switch v.Kind() { - case reflect.Slice: - // Make room for the slice elements if needed - if v.IsNil() || v.Cap() < len(avList) { - // What about if ignoring nil/empty values? - v.Set(reflect.MakeSlice(v.Type(), 0, len(avList))) - } - case reflect.Array: - // Limited to capacity of existing array. - case reflect.Interface: - s := make([]interface{}, len(avList)) - for i, av := range avList { - if err := d.decode(av, reflect.ValueOf(&s[i]).Elem(), tag{}); err != nil { - return err - } - } - v.Set(reflect.ValueOf(s)) - return nil - default: - return &UnmarshalTypeError{Value: "list", Type: v.Type()} - } - - // If v is not a slice, array - for i := 0; i < v.Cap() && i < len(avList); i++ { - v.SetLen(i + 1) - if err := d.decode(avList[i], v.Index(i), tag{}); err != nil { - return err - } - } - - return nil -} - -func (d *Decoder) decodeMap(avMap map[string]*dynamodb.AttributeValue, v reflect.Value) error { - switch v.Kind() { - case reflect.Map: - t := v.Type() - if t.Key().Kind() != reflect.String { - return &UnmarshalTypeError{Value: "map string key", Type: t.Key()} - } - if v.IsNil() { - v.Set(reflect.MakeMap(t)) - } - case reflect.Struct: - case reflect.Interface: - v.Set(reflect.MakeMap(stringInterfaceMapType)) - v = v.Elem() - default: - return &UnmarshalTypeError{Value: "map", Type: v.Type()} - } - - if v.Kind() == reflect.Map { - for k, av := range avMap { - key := reflect.ValueOf(k) - elem := reflect.New(v.Type().Elem()).Elem() - if err := d.decode(av, elem, tag{}); err != nil { - return err - } - v.SetMapIndex(key, elem) - } - } else if v.Kind() == reflect.Struct { - fields := unionStructFields(v.Type(), d.MarshalOptions) - for k, av := range avMap { - if f, ok := fieldByName(fields, k); ok { - fv := v.FieldByIndex(f.Index) - if err := d.decode(av, fv, f.tag); err != nil { - return err - } - } - } - } - - return nil -} - -func (d *Decoder) decodeNull(v reflect.Value) error { - if v.IsValid() && v.CanSet() { - v.Set(reflect.Zero(v.Type())) - } - - return nil -} - -func (d *Decoder) decodeString(s *string, v reflect.Value, fieldTag tag) error { - if fieldTag.AsString { - return d.decodeNumber(s, v) - } - - // To maintain backwards compatibility with ConvertFrom family of methods which - // converted strings to time.Time structs - if _, ok := v.Interface().(time.Time); ok { - t, err := time.Parse(time.RFC3339, *s) - if err != nil { - return err - } - v.Set(reflect.ValueOf(t)) - return nil - } - - switch v.Kind() { - case reflect.String, reflect.Interface: - v.Set(reflect.ValueOf(*s)) - default: - return &UnmarshalTypeError{Value: "string", Type: v.Type()} - } - - return nil -} - -func (d *Decoder) decodeStringSet(ss []*string, v reflect.Value) error { - switch v.Kind() { - case reflect.Slice: - // Make room for the slice elements if needed - if v.IsNil() || v.Cap() < len(ss) { - v.Set(reflect.MakeSlice(v.Type(), 0, len(ss))) - } - case reflect.Array: - // Limited to capacity of existing array. - case reflect.Interface: - set := make([]string, len(ss)) - for i, s := range ss { - if err := d.decodeString(s, reflect.ValueOf(&set[i]).Elem(), tag{}); err != nil { - return err - } - } - v.Set(reflect.ValueOf(set)) - return nil - default: - return &UnmarshalTypeError{Value: "string set", Type: v.Type()} - } - - for i := 0; i < v.Cap() && i < len(ss); i++ { - v.SetLen(i + 1) - u, elem := indirect(v.Index(i), false) - if u != nil { - return u.UnmarshalDynamoDBAttributeValue(&dynamodb.AttributeValue{SS: ss}) - } - if err := d.decodeString(ss[i], elem, tag{}); err != nil { - return err - } - } - - return nil -} - -// indirect will walk a value's interface or pointer value types. Returning -// the final value or the value a unmarshaler is defined on. -// -// Based on the enoding/json type reflect value type indirection in Go Stdlib -// https://golang.org/src/encoding/json/decode.go indirect func. -func indirect(v reflect.Value, decodingNull bool) (Unmarshaler, reflect.Value) { - if v.Kind() != reflect.Ptr && v.Type().Name() != "" && v.CanAddr() { - v = v.Addr() - } - for { - if v.Kind() == reflect.Interface && !v.IsNil() { - e := v.Elem() - if e.Kind() == reflect.Ptr && !e.IsNil() && (!decodingNull || e.Elem().Kind() == reflect.Ptr) { - v = e - continue - } - } - if v.Kind() != reflect.Ptr { - break - } - if v.Elem().Kind() != reflect.Ptr && decodingNull && v.CanSet() { - break - } - if v.IsNil() { - v.Set(reflect.New(v.Type().Elem())) - } - if v.Type().NumMethod() > 0 { - if u, ok := v.Interface().(Unmarshaler); ok { - return u, reflect.Value{} - } - } - v = v.Elem() - } - - return nil, v -} - -// A Number represents a Attributevalue number literal. -type Number string - -// Float64 attempts to cast the number ot a float64, returning -// the result of the case or error if the case failed. -func (n Number) Float64() (float64, error) { - return strconv.ParseFloat(string(n), 64) -} - -// Int64 attempts to cast the number ot a int64, returning -// the result of the case or error if the case failed. -func (n Number) Int64() (int64, error) { - return strconv.ParseInt(string(n), 10, 64) -} - -// Uint64 attempts to cast the number ot a uint64, returning -// the result of the case or error if the case failed. -func (n Number) Uint64() (uint64, error) { - return strconv.ParseUint(string(n), 10, 64) -} - -// String returns the raw number represented as a string -func (n Number) String() string { - return string(n) -} - -type emptyOrigError struct{} - -func (e emptyOrigError) OrigErr() error { - return nil -} - -// An UnmarshalTypeError is an error type representing a error -// unmarshaling the AttributeValue's element to a Go value type. -// Includes details about the AttributeValue type and Go value type. -type UnmarshalTypeError struct { - emptyOrigError - Value string - Type reflect.Type -} - -// Error returns the string representation of the error. -// satisfying the error interface -func (e *UnmarshalTypeError) Error() string { - return fmt.Sprintf("%s: %s", e.Code(), e.Message()) -} - -// Code returns the code of the error, satisfying the awserr.Error -// interface. -func (e *UnmarshalTypeError) Code() string { - return "UnmarshalTypeError" -} - -// Message returns the detailed message of the error, satisfying -// the awserr.Error interface. -func (e *UnmarshalTypeError) Message() string { - return "cannot unmarshal " + e.Value + " into Go value of type " + e.Type.String() -} - -// An InvalidUnmarshalError is an error type representing an invalid type -// encountered while unmarshaling a AttributeValue to a Go value type. -type InvalidUnmarshalError struct { - emptyOrigError - Type reflect.Type -} - -// Error returns the string representation of the error. -// satisfying the error interface -func (e *InvalidUnmarshalError) Error() string { - return fmt.Sprintf("%s: %s", e.Code(), e.Message()) -} - -// Code returns the code of the error, satisfying the awserr.Error -// interface. -func (e *InvalidUnmarshalError) Code() string { - return "InvalidUnmarshalError" -} - -// Message returns the detailed message of the error, satisfying -// the awserr.Error interface. -func (e *InvalidUnmarshalError) Message() string { - if e.Type == nil { - return "cannot unmarshal to nil value" - } - if e.Type.Kind() != reflect.Ptr { - return "cannot unmasrhal to non-pointer value, got " + e.Type.String() - } - return "cannot unmarshal to nil value, " + e.Type.String() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode_test.go deleted file mode 100644 index 3253c98d2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode_test.go +++ /dev/null @@ -1,394 +0,0 @@ -package dynamodbattribute - -import ( - "fmt" - "reflect" - "strconv" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/stretchr/testify/assert" -) - -func TestUnmarshalErrorTypes(t *testing.T) { - var _ awserr.Error = (*UnmarshalTypeError)(nil) - var _ awserr.Error = (*InvalidUnmarshalError)(nil) -} - -func TestUnmarshalShared(t *testing.T) { - for i, c := range sharedTestCases { - err := Unmarshal(c.in, c.actual) - assertConvertTest(t, i, c.actual, c.expected, err, c.err) - } -} - -func TestUnmarshal(t *testing.T) { - cases := []struct { - in *dynamodb.AttributeValue - actual, expected interface{} - err error - }{ - //------------ - // Sets - //------------ - { - in: &dynamodb.AttributeValue{BS: [][]byte{ - {48, 49}, {50, 51}, - }}, - actual: &[][]byte{}, - expected: [][]byte{{48, 49}, {50, 51}}, - }, - { - in: &dynamodb.AttributeValue{NS: []*string{ - aws.String("123"), aws.String("321"), - }}, - actual: &[]int{}, - expected: []int{123, 321}, - }, - { - in: &dynamodb.AttributeValue{NS: []*string{ - aws.String("123"), aws.String("321"), - }}, - actual: &[]interface{}{}, - expected: []interface{}{123., 321.}, - }, - { - in: &dynamodb.AttributeValue{SS: []*string{ - aws.String("abc"), aws.String("123"), - }}, - actual: &[]string{}, - expected: &[]string{"abc", "123"}, - }, - { - in: &dynamodb.AttributeValue{SS: []*string{ - aws.String("abc"), aws.String("123"), - }}, - actual: &[]*string{}, - expected: &[]*string{aws.String("abc"), aws.String("123")}, - }, - //------------ - // Interfaces - //------------ - { - in: &dynamodb.AttributeValue{B: []byte{48, 49}}, - actual: func() interface{} { - var v interface{} - return &v - }(), - expected: []byte{48, 49}, - }, - { - in: &dynamodb.AttributeValue{BS: [][]byte{ - {48, 49}, {50, 51}, - }}, - actual: func() interface{} { - var v interface{} - return &v - }(), - expected: [][]byte{{48, 49}, {50, 51}}, - }, - { - in: &dynamodb.AttributeValue{BOOL: aws.Bool(true)}, - actual: func() interface{} { - var v interface{} - return &v - }(), - expected: bool(true), - }, - { - in: &dynamodb.AttributeValue{L: []*dynamodb.AttributeValue{ - {S: aws.String("abc")}, {S: aws.String("123")}, - }}, - actual: func() interface{} { - var v interface{} - return &v - }(), - expected: []interface{}{"abc", "123"}, - }, - { - in: &dynamodb.AttributeValue{M: map[string]*dynamodb.AttributeValue{ - "123": {S: aws.String("abc")}, - "abc": {S: aws.String("123")}, - }}, - actual: func() interface{} { - var v interface{} - return &v - }(), - expected: map[string]interface{}{"123": "abc", "abc": "123"}, - }, - { - in: &dynamodb.AttributeValue{N: aws.String("123")}, - actual: func() interface{} { - var v interface{} - return &v - }(), - expected: float64(123), - }, - { - in: &dynamodb.AttributeValue{NS: []*string{ - aws.String("123"), aws.String("321"), - }}, - actual: func() interface{} { - var v interface{} - return &v - }(), - expected: []float64{123., 321.}, - }, - { - in: &dynamodb.AttributeValue{S: aws.String("123")}, - actual: func() interface{} { - var v interface{} - return &v - }(), - expected: "123", - }, - { - in: &dynamodb.AttributeValue{SS: []*string{ - aws.String("123"), aws.String("321"), - }}, - actual: func() interface{} { - var v interface{} - return &v - }(), - expected: []string{"123", "321"}, - }, - { - in: &dynamodb.AttributeValue{M: map[string]*dynamodb.AttributeValue{ - "abc": {S: aws.String("123")}, - "Cba": {S: aws.String("321")}, - }}, - actual: &struct{ Abc, Cba string }{}, - expected: struct{ Abc, Cba string }{Abc: "123", Cba: "321"}, - }, - { - in: &dynamodb.AttributeValue{N: aws.String("512")}, - actual: new(uint8), - err: &UnmarshalTypeError{ - Value: fmt.Sprintf("number overflow, 512"), - Type: reflect.TypeOf(uint8(0)), - }, - }, - } - - for i, c := range cases { - err := Unmarshal(c.in, c.actual) - assertConvertTest(t, i, c.actual, c.expected, err, c.err) - } -} - -func TestInterfaceInput(t *testing.T) { - var v interface{} - expected := []interface{}{"abc", "123"} - err := Unmarshal(&dynamodb.AttributeValue{L: []*dynamodb.AttributeValue{ - {S: aws.String("abc")}, {S: aws.String("123")}, - }}, &v) - assertConvertTest(t, 0, v, expected, err, nil) -} - -func TestUnmarshalError(t *testing.T) { - cases := []struct { - in *dynamodb.AttributeValue - actual, expected interface{} - err error - }{ - { - in: &dynamodb.AttributeValue{}, - actual: int(0), - expected: nil, - err: &InvalidUnmarshalError{Type: reflect.TypeOf(int(0))}, - }, - } - - for i, c := range cases { - err := Unmarshal(c.in, c.actual) - assertConvertTest(t, i, c.actual, c.expected, err, c.err) - } -} - -func TestUnmarshalListShared(t *testing.T) { - for i, c := range sharedListTestCases { - err := UnmarshalList(c.in, c.actual) - assertConvertTest(t, i, c.actual, c.expected, err, c.err) - } -} - -func TestUnmarshalListError(t *testing.T) { - cases := []struct { - in []*dynamodb.AttributeValue - actual, expected interface{} - err error - }{ - { - in: []*dynamodb.AttributeValue{}, - actual: []interface{}{}, - expected: nil, - err: &InvalidUnmarshalError{Type: reflect.TypeOf([]interface{}{})}, - }, - } - - for i, c := range cases { - err := UnmarshalList(c.in, c.actual) - assertConvertTest(t, i, c.actual, c.expected, err, c.err) - } -} - -func TestUnmarshalMapShared(t *testing.T) { - for i, c := range sharedMapTestCases { - err := UnmarshalMap(c.in, c.actual) - assertConvertTest(t, i, c.actual, c.expected, err, c.err) - } -} - -func TestUnmarshalMapError(t *testing.T) { - cases := []struct { - in map[string]*dynamodb.AttributeValue - actual, expected interface{} - err error - }{ - { - in: map[string]*dynamodb.AttributeValue{}, - actual: map[string]interface{}{}, - expected: nil, - err: &InvalidUnmarshalError{Type: reflect.TypeOf(map[string]interface{}{})}, - }, - { - in: map[string]*dynamodb.AttributeValue{ - "BOOL": {BOOL: aws.Bool(true)}, - }, - actual: &map[int]interface{}{}, - expected: nil, - err: &UnmarshalTypeError{Value: "map string key", Type: reflect.TypeOf(int(0))}, - }, - } - - for i, c := range cases { - err := UnmarshalMap(c.in, c.actual) - assertConvertTest(t, i, c.actual, c.expected, err, c.err) - } -} - -type unmarshalUnmarshaler struct { - Value string - Value2 int - Value3 bool - Value4 time.Time -} - -func (u *unmarshalUnmarshaler) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error { - if av.M == nil { - return fmt.Errorf("expected AttributeValue to be map") - } - - if v, ok := av.M["abc"]; !ok { - return fmt.Errorf("expected `abc` map key") - } else if v.S == nil { - return fmt.Errorf("expected `abc` map value string") - } else { - u.Value = *v.S - } - - if v, ok := av.M["def"]; !ok { - return fmt.Errorf("expected `def` map key") - } else if v.N == nil { - return fmt.Errorf("expected `def` map value number") - } else { - n, err := strconv.ParseInt(*v.N, 10, 64) - if err != nil { - return err - } - u.Value2 = int(n) - } - - if v, ok := av.M["ghi"]; !ok { - return fmt.Errorf("expected `ghi` map key") - } else if v.BOOL == nil { - return fmt.Errorf("expected `ghi` map value number") - } else { - u.Value3 = *v.BOOL - } - - if v, ok := av.M["jkl"]; !ok { - return fmt.Errorf("expected `jkl` map key") - } else if v.S == nil { - return fmt.Errorf("expected `jkl` map value string") - } else { - t, err := time.Parse(time.RFC3339, *v.S) - if err != nil { - return err - } - u.Value4 = t - } - - return nil -} - -func TestUnmarshalUnmashaler(t *testing.T) { - u := &unmarshalUnmarshaler{} - av := &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "abc": {S: aws.String("value")}, - "def": {N: aws.String("123")}, - "ghi": {BOOL: aws.Bool(true)}, - "jkl": {S: aws.String("2016-05-03T17:06:26.209072Z")}, - }, - } - - err := Unmarshal(av, u) - assert.NoError(t, err) - - assert.Equal(t, "value", u.Value) - assert.Equal(t, 123, u.Value2) - assert.Equal(t, true, u.Value3) - assert.Equal(t, testDate, u.Value4) -} - -func TestDecodeUseNumber(t *testing.T) { - u := map[string]interface{}{} - av := &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "abc": {S: aws.String("value")}, - "def": {N: aws.String("123")}, - "ghi": {BOOL: aws.Bool(true)}, - }, - } - - decoder := NewDecoder(func(d *Decoder) { - d.UseNumber = true - }) - err := decoder.Decode(av, &u) - assert.NoError(t, err) - - assert.Equal(t, "value", u["abc"]) - n, ok := u["def"].(Number) - assert.True(t, ok) - assert.Equal(t, "123", n.String()) - assert.Equal(t, true, u["ghi"]) -} - -func TestDecodeUseNumberNumberSet(t *testing.T) { - u := map[string]interface{}{} - av := &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "ns": { - NS: []*string{ - aws.String("123"), aws.String("321"), - }, - }, - }, - } - - decoder := NewDecoder(func(d *Decoder) { - d.UseNumber = true - }) - err := decoder.Decode(av, &u) - assert.NoError(t, err) - - ns, ok := u["ns"].([]Number) - assert.True(t, ok) - - assert.Equal(t, "123", ns[0].String()) - assert.Equal(t, "321", ns[1].String()) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go deleted file mode 100644 index 3d46f736b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go +++ /dev/null @@ -1,60 +0,0 @@ -// Package dynamodbattribute provides marshaling utilities for marshaling to -// dynamodb.AttributeValue types and unmarshaling to Go value types. These -// utilities allow you to marshal slices, maps, structs, and scalar values -// to and from dynamodb.AttributeValue. These are useful when marshaling -// Go value tyes to dynamodb.AttributeValue for DynamoDB requests, or -// unmarshaling the dynamodb.AttributeValue back into a Go value type. -// -// Marshal Go value types to dynamodb.AttributeValue: See (ExampleMarshal) -// -// type Record struct { -// MyField string -// Letters []string -// A2Num map[string]int -// } -// -// ... -// -// r := Record{ -// MyField: "dynamodbattribute.Marshal example", -// Letters: []string{"a", "b", "c", "d"}, -// A2Num: map[string]int{"a": 1, "b": 2, "c": 3}, -// } -// av, err := dynamodbattribute.Marshal(r) -// fmt.Println(av, err) -// -// Unmarshal dynamodb.AttributeValue to Go value type: See (ExampleUnmarshal) -// -// r2 := Record{} -// err = dynamodbattribute.Unmarshal(av, &r2) -// fmt.Println(err, reflect.DeepEqual(r, r2)) -// -// Marshal Go value type for DynamoDB.PutItem: -// -// sess := session.New() -// svc := dynamodb.New(sess) -// item, err := dynamodbattribute.MarshalMap(r) -// if err != nil { -// fmt.Println("Failed to convert", err) -// return -// } -// result, err := svc.PutItem(&dynamodb.PutItemInput{ -// Item: item, -// TableName: aws.String("exampleTable"), -// }) -// -// -// -// The ConvertTo, ConvertToList, ConvertToMap, ConvertFrom, ConvertFromMap -// and ConvertFromList methods have been deprecated. The Marshal and Unmarshal -// functions should be used instead. The ConvertTo|From marshallers do not -// support BinarySet, NumberSet, nor StringSets, and will incorrect marshal -// binary data fields in structs as base64 strings. -// -// The Marshal and Unmarshal functions correct this behavior, and removes -// the reliance on encoding.json. `json` struct tags are still supported. In -// addition support for a new struct tag `dynamodbav` was added. Support for -// the json.Marshaler and json.Unmarshaler interfaces have been removed and -// replaced with have been replaced with dynamodbattribute.Marshaler and -// dynamodbattribute.Unmarshaler interfaces. -package dynamodbattribute diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/encode.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/encode.go deleted file mode 100644 index 710f726d7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/encode.go +++ /dev/null @@ -1,570 +0,0 @@ -package dynamodbattribute - -import ( - "fmt" - "reflect" - "strconv" - "time" - - "github.com/aws/aws-sdk-go/service/dynamodb" -) - -// A Marshaler is an interface to provide custom marshalling of Go value types -// to AttributeValues. Use this to provide custom logic determining how a -// Go Value type should be marshaled. -// -// type ExampleMarshaler struct { -// Value int -// } -// type (m *ExampleMarshaler) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error { -// n := fmt.Sprintf("%v", m.Value) -// av.N = &n -// -// return nil -// } -// -type Marshaler interface { - MarshalDynamoDBAttributeValue(*dynamodb.AttributeValue) error -} - -// Marshal will serialize the passed in Go value type into a DynamoDB AttributeValue -// type. This value can be used in DynamoDB API operations to simplify marshaling -// your Go value types into AttributeValues. -// -// Marshal will recursively transverse the passed in value marshaling its -// contents into a AttributeValue. Marshal supports basic scalars -// (int,uint,float,bool,string), maps, slices, and structs. Anonymous -// nested types are flattened based on Go anonymous type visibility. -// -// Marshaling slices to AttributeValue will default to a List for all -// types except for []byte and [][]byte. []byte will be marshaled as -// Binary data (B), and [][]byte will be marshaled as binary data set -// (BS). -// -// `dynamodbav` struct tag can be used to control how the value will be -// marshaled into a AttributeValue. -// -// // Field is ignored -// Field int `dynamodbav:"-"` -// -// // Field AttributeValue map key "myName" -// Field int `dynamodbav:"myName"` -// -// // Field AttributeValue map key "myName", and -// // Field is omitted if it is empty -// Field int `dynamodbav:"myName,omitempty"` -// -// // Field AttributeValue map key "Field", and -// // Field is omitted if it is empty -// Field int `dynamodbav:",omitempty"` -// -// // Field's elems will be omitted if empty -// // only valid for slices, and maps. -// Field []string `dynamodbav:",omitemptyelem"` -// -// // Field will be marshaled as a AttributeValue string -// // only value for number types, (int,uint,float) -// Field int `dynamodbav:",string"` -// -// // Field will be marshaled as a binary set -// Field [][]byte `dynamodbav:",binaryset"` -// -// // Field will be marshaled as a number set -// Field []int `dynamodbav:",numberset"` -// -// // Field will be marshaled as a string set -// Field []string `dynamodbav:",stringset"` -// -// The omitempty tag is only used during Marshaling and is ignored for -// Unmarshal. Any zero value or a value when marshaled results in a -// AttributeValue NULL will be added to AttributeValue Maps during struct -// marshal. The omitemptyelem tag works the same as omitempty except it -// applies to maps and slices instead of struct fields, and will not be -// included in the marshaled AttributeValue Map, List, or Set. -// -// For convenience and backwards compatibility with ConvertTo functions -// json struct tags are supported by the Marshal and Unmarshal. If -// both json and dynamodbav struct tags are provided the json tag will -// be ignored in favor of dynamodbav. -// -// All struct fields and with anonymous fields, are marshaled unless the -// any of the following conditions are meet. -// -// - the field is not exported -// - json or dynamodbav field tag is "-" -// - json or dynamodbav field tag specifies "omitempty", and is empty. -// -// Pointer and interfaces values encode as the value pointed to or contained -// in the interface. A nil value encodes as the AttributeValue NULL value. -// -// Channel, complex, and function values are not encoded and will be skipped -// when walking the value to be marshaled. -// -// When marshaling any error that occurs will halt the marshal and return -// the error. -// -// Marshal cannot represent cyclic data structures and will not handle them. -// Passing cyclic structures to Marshal will result in an infinite recursion. -func Marshal(in interface{}) (*dynamodb.AttributeValue, error) { - return NewEncoder().Encode(in) -} - -// MarshalMap is an alias for Marshal func which marshals Go value -// type to a map of AttributeValues. -func MarshalMap(in interface{}) (map[string]*dynamodb.AttributeValue, error) { - av, err := NewEncoder().Encode(in) - if err != nil || av == nil || av.M == nil { - return map[string]*dynamodb.AttributeValue{}, err - } - - return av.M, nil -} - -// MarshalList is an alias for Marshal func which marshals Go value -// type to a slice of AttributeValues. -func MarshalList(in interface{}) ([]*dynamodb.AttributeValue, error) { - av, err := NewEncoder().Encode(in) - if err != nil || av == nil || av.L == nil { - return []*dynamodb.AttributeValue{}, err - } - - return av.L, nil -} - -// A MarshalOptions is a collection of options shared between marshaling -// and unmarshaling -type MarshalOptions struct { - // States that the encoding/json struct tags should be supported. - // if a `dynamodbav` struct tag is also provided the encoding/json - // tag will be ignored. - // - // Enabled by default. - SupportJSONTags bool -} - -// An Encoder provides marshaling Go value types to AttributeValues. -type Encoder struct { - MarshalOptions - - // Empty strings, "", will be marked as NULL AttributeValue types. - // Empty strings are not valid values for DynamoDB. Will not apply - // to lists, sets, or maps. Use the struct tag `omitemptyelem` - // to skip empty (zero) values in lists, sets and maps. - // - // Enabled by default. - NullEmptyString bool -} - -// NewEncoder creates a new Encoder with default configuration. Use -// the `opts` functional options to override the default configuration. -func NewEncoder(opts ...func(*Encoder)) *Encoder { - e := &Encoder{ - MarshalOptions: MarshalOptions{ - SupportJSONTags: true, - }, - NullEmptyString: true, - } - for _, o := range opts { - o(e) - } - - return e -} - -// Encode will marshal a Go value type to an AttributeValue. Returning -// the AttributeValue constructed or error. -func (e *Encoder) Encode(in interface{}) (*dynamodb.AttributeValue, error) { - av := &dynamodb.AttributeValue{} - if err := e.encode(av, reflect.ValueOf(in), tag{}); err != nil { - return nil, err - } - - return av, nil -} - -func (e *Encoder) encode(av *dynamodb.AttributeValue, v reflect.Value, fieldTag tag) error { - // Handle both pointers and interface conversion into types - v = valueElem(v) - - if v.Kind() != reflect.Invalid { - if used, err := tryMarshaler(av, v); used { - return err - } - } - - if fieldTag.OmitEmpty && emptyValue(v) { - encodeNull(av) - return nil - } - - switch v.Kind() { - case reflect.Invalid: - encodeNull(av) - case reflect.Struct: - return e.encodeStruct(av, v) - case reflect.Map: - return e.encodeMap(av, v, fieldTag) - case reflect.Slice, reflect.Array: - return e.encodeSlice(av, v, fieldTag) - case reflect.Chan, reflect.Func, reflect.UnsafePointer: - // do nothing for unsupported types - default: - return e.encodeScalar(av, v, fieldTag) - } - - return nil -} - -func (e *Encoder) encodeStruct(av *dynamodb.AttributeValue, v reflect.Value) error { - - // To maintain backwards compatibility with ConvertTo family of methods which - // converted time.Time structs to strings - if t, ok := v.Interface().(time.Time); ok { - s := t.Format(time.RFC3339Nano) - av.S = &s - return nil - } - - av.M = map[string]*dynamodb.AttributeValue{} - fields := unionStructFields(v.Type(), e.MarshalOptions) - for _, f := range fields { - if f.Name == "" { - return &InvalidMarshalError{msg: "map key cannot be empty"} - } - - fv := v.FieldByIndex(f.Index) - elem := &dynamodb.AttributeValue{} - err := e.encode(elem, fv, f.tag) - skip, err := keepOrOmitEmpty(f.OmitEmpty, elem, err) - if err != nil { - return err - } else if skip { - continue - } - - av.M[f.Name] = elem - } - if len(av.M) == 0 { - encodeNull(av) - } - - return nil -} - -func (e *Encoder) encodeMap(av *dynamodb.AttributeValue, v reflect.Value, fieldTag tag) error { - av.M = map[string]*dynamodb.AttributeValue{} - for _, key := range v.MapKeys() { - keyName := fmt.Sprint(key.Interface()) - if keyName == "" { - return &InvalidMarshalError{msg: "map key cannot be empty"} - } - - elemVal := v.MapIndex(key) - elem := &dynamodb.AttributeValue{} - err := e.encode(elem, elemVal, tag{}) - skip, err := keepOrOmitEmpty(fieldTag.OmitEmptyElem, elem, err) - if err != nil { - return err - } else if skip { - continue - } - - av.M[keyName] = elem - } - if len(av.M) == 0 { - encodeNull(av) - } - - return nil -} - -func (e *Encoder) encodeSlice(av *dynamodb.AttributeValue, v reflect.Value, fieldTag tag) error { - switch typed := v.Interface().(type) { - case []byte: - if len(typed) == 0 { - encodeNull(av) - return nil - } - av.B = append([]byte{}, typed...) - default: - var elemFn func(dynamodb.AttributeValue) error - - if fieldTag.AsBinSet || v.Type() == byteSliceSlicetype { // Binary Set - av.BS = make([][]byte, 0, v.Len()) - elemFn = func(elem dynamodb.AttributeValue) error { - if elem.B == nil { - return &InvalidMarshalError{msg: "binary set must only contain non-nil byte slices"} - } - av.BS = append(av.BS, elem.B) - return nil - } - } else if fieldTag.AsNumSet { // Number Set - av.NS = make([]*string, 0, v.Len()) - elemFn = func(elem dynamodb.AttributeValue) error { - if elem.N == nil { - return &InvalidMarshalError{msg: "number set must only contain non-nil string numbers"} - } - av.NS = append(av.NS, elem.N) - return nil - } - } else if fieldTag.AsStrSet { // String Set - av.SS = make([]*string, 0, v.Len()) - elemFn = func(elem dynamodb.AttributeValue) error { - if elem.S == nil { - return &InvalidMarshalError{msg: "string set must only contain non-nil strings"} - } - av.SS = append(av.SS, elem.S) - return nil - } - } else { // List - av.L = make([]*dynamodb.AttributeValue, 0, v.Len()) - elemFn = func(elem dynamodb.AttributeValue) error { - av.L = append(av.L, &elem) - return nil - } - } - - if n, err := e.encodeList(v, fieldTag, elemFn); err != nil { - return err - } else if n == 0 { - encodeNull(av) - } - } - - return nil -} - -func (e *Encoder) encodeList(v reflect.Value, fieldTag tag, elemFn func(dynamodb.AttributeValue) error) (int, error) { - count := 0 - for i := 0; i < v.Len(); i++ { - elem := dynamodb.AttributeValue{} - err := e.encode(&elem, v.Index(i), tag{OmitEmpty: fieldTag.OmitEmptyElem}) - skip, err := keepOrOmitEmpty(fieldTag.OmitEmptyElem, &elem, err) - if err != nil { - return 0, err - } else if skip { - continue - } - - if err := elemFn(elem); err != nil { - return 0, err - } - count++ - } - - return count, nil -} - -func (e *Encoder) encodeScalar(av *dynamodb.AttributeValue, v reflect.Value, fieldTag tag) error { - switch typed := v.Interface().(type) { - case bool: - av.BOOL = new(bool) - *av.BOOL = typed - case string: - if err := e.encodeString(av, v); err != nil { - return err - } - case Number: - s := string(typed) - if fieldTag.AsString { - av.S = &s - } else { - av.N = &s - } - default: - // Fallback to encoding numbers, will return invalid type if not supported - if err := e.encodeNumber(av, v); err != nil { - return err - } - if fieldTag.AsString && av.NULL == nil && av.N != nil { - av.S = av.N - av.N = nil - } - } - - return nil -} - -func (e *Encoder) encodeNumber(av *dynamodb.AttributeValue, v reflect.Value) error { - if used, err := tryMarshaler(av, v); used { - return err - } - - var out string - switch typed := v.Interface().(type) { - case int: - out = encodeInt(int64(typed)) - case int8: - out = encodeInt(int64(typed)) - case int16: - out = encodeInt(int64(typed)) - case int32: - out = encodeInt(int64(typed)) - case int64: - out = encodeInt(typed) - case uint: - out = encodeUint(uint64(typed)) - case uint8: - out = encodeUint(uint64(typed)) - case uint16: - out = encodeUint(uint64(typed)) - case uint32: - out = encodeUint(uint64(typed)) - case uint64: - out = encodeUint(typed) - case float32: - out = encodeFloat(float64(typed)) - case float64: - out = encodeFloat(typed) - default: - return &unsupportedMarshalTypeError{Type: v.Type()} - } - - av.N = &out - - return nil -} - -func (e *Encoder) encodeString(av *dynamodb.AttributeValue, v reflect.Value) error { - if used, err := tryMarshaler(av, v); used { - return err - } - - switch typed := v.Interface().(type) { - case string: - if len(typed) == 0 && e.NullEmptyString { - encodeNull(av) - } else { - av.S = &typed - } - default: - return &unsupportedMarshalTypeError{Type: v.Type()} - } - - return nil -} - -func encodeInt(i int64) string { - return strconv.FormatInt(i, 10) -} -func encodeUint(u uint64) string { - return strconv.FormatUint(u, 10) -} -func encodeFloat(f float64) string { - return strconv.FormatFloat(f, 'f', -1, 64) -} -func encodeNull(av *dynamodb.AttributeValue) { - t := true - *av = dynamodb.AttributeValue{NULL: &t} -} - -func valueElem(v reflect.Value) reflect.Value { - switch v.Kind() { - case reflect.Interface, reflect.Ptr: - for v.Kind() == reflect.Interface || v.Kind() == reflect.Ptr { - v = v.Elem() - } - } - - return v -} - -func emptyValue(v reflect.Value) bool { - switch v.Kind() { - case reflect.Array, reflect.Map, reflect.Slice, reflect.String: - return v.Len() == 0 - case reflect.Bool: - return !v.Bool() - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - return v.Int() == 0 - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - return v.Uint() == 0 - case reflect.Float32, reflect.Float64: - return v.Float() == 0 - case reflect.Interface, reflect.Ptr: - return v.IsNil() - } - return false -} - -func tryMarshaler(av *dynamodb.AttributeValue, v reflect.Value) (bool, error) { - if v.Kind() != reflect.Ptr && v.Type().Name() != "" && v.CanAddr() { - v = v.Addr() - } - - if v.Type().NumMethod() == 0 { - return false, nil - } - - if m, ok := v.Interface().(Marshaler); ok { - return true, m.MarshalDynamoDBAttributeValue(av) - } - - return false, nil -} - -func keepOrOmitEmpty(omitEmpty bool, av *dynamodb.AttributeValue, err error) (bool, error) { - if err != nil { - if _, ok := err.(*unsupportedMarshalTypeError); ok { - return true, nil - } - return false, err - } - - if av.NULL != nil && omitEmpty { - return true, nil - } - - return false, nil -} - -// An InvalidMarshalError is an error type representing an error -// occurring when marshaling a Go value type to an AttributeValue. -type InvalidMarshalError struct { - emptyOrigError - msg string -} - -// Error returns the string representation of the error. -// satisfying the error interface -func (e *InvalidMarshalError) Error() string { - return fmt.Sprintf("%s: %s", e.Code(), e.Message()) -} - -// Code returns the code of the error, satisfying the awserr.Error -// interface. -func (e *InvalidMarshalError) Code() string { - return "InvalidMarshalError" -} - -// Message returns the detailed message of the error, satisfying -// the awserr.Error interface. -func (e *InvalidMarshalError) Message() string { - return e.msg -} - -// An unsupportedMarshalTypeError represents a Go value type -// which cannot be marshaled into an AttributeValue and should -// be skipped by the marshaler. -type unsupportedMarshalTypeError struct { - emptyOrigError - Type reflect.Type -} - -// Error returns the string representation of the error. -// satisfying the error interface -func (e *unsupportedMarshalTypeError) Error() string { - return fmt.Sprintf("%s: %s", e.Code(), e.Message()) -} - -// Code returns the code of the error, satisfying the awserr.Error -// interface. -func (e *unsupportedMarshalTypeError) Code() string { - return "unsupportedMarshalTypeError" -} - -// Message returns the detailed message of the error, satisfying -// the awserr.Error interface. -func (e *unsupportedMarshalTypeError) Message() string { - return "Go value type " + e.Type.String() + " is not supported" -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/encode_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/encode_test.go deleted file mode 100644 index 46028c946..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/encode_test.go +++ /dev/null @@ -1,126 +0,0 @@ -package dynamodbattribute - -import ( - "fmt" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/stretchr/testify/assert" -) - -func TestMarshalErrorTypes(t *testing.T) { - var _ awserr.Error = (*InvalidMarshalError)(nil) - var _ awserr.Error = (*unsupportedMarshalTypeError)(nil) -} - -func TestMarshalShared(t *testing.T) { - for i, c := range sharedTestCases { - av, err := Marshal(c.expected) - assertConvertTest(t, i, av, c.in, err, c.err) - } -} - -func TestMarshalListShared(t *testing.T) { - for i, c := range sharedListTestCases { - av, err := MarshalList(c.expected) - assertConvertTest(t, i, av, c.in, err, c.err) - } -} - -func TestMarshalMapShared(t *testing.T) { - for i, c := range sharedMapTestCases { - av, err := MarshalMap(c.expected) - assertConvertTest(t, i, av, c.in, err, c.err) - } -} - -type marshalMarshaler struct { - Value string - Value2 int - Value3 bool - Value4 time.Time -} - -func (m *marshalMarshaler) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error { - av.M = map[string]*dynamodb.AttributeValue{ - "abc": {S: &m.Value}, - "def": {N: aws.String(fmt.Sprintf("%d", m.Value2))}, - "ghi": {BOOL: &m.Value3}, - "jkl": {S: aws.String(m.Value4.Format(time.RFC3339Nano))}, - } - - return nil -} - -func TestMarshalMashaler(t *testing.T) { - m := &marshalMarshaler{ - Value: "value", - Value2: 123, - Value3: true, - Value4: testDate, - } - - expect := &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "abc": {S: aws.String("value")}, - "def": {N: aws.String("123")}, - "ghi": {BOOL: aws.Bool(true)}, - "jkl": {S: aws.String("2016-05-03T17:06:26.209072Z")}, - }, - } - - actual, err := Marshal(m) - assert.NoError(t, err) - - assert.Equal(t, expect, actual) -} - -type testOmitEmptyElemListStruct struct { - Values []string `dynamodbav:",omitemptyelem"` -} - -type testOmitEmptyElemMapStruct struct { - Values map[string]interface{} `dynamodbav:",omitemptyelem"` -} - -func TestMarshalListOmitEmptyElem(t *testing.T) { - expect := &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "Values": {L: []*dynamodb.AttributeValue{ - {S: aws.String("abc")}, - {S: aws.String("123")}, - }}, - }, - } - - m := testOmitEmptyElemListStruct{Values: []string{"abc", "", "123"}} - - actual, err := Marshal(m) - assert.NoError(t, err) - assert.Equal(t, expect, actual) -} - -func TestMarshalMapOmitEmptyElem(t *testing.T) { - expect := &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "Values": {M: map[string]*dynamodb.AttributeValue{ - "abc": {N: aws.String("123")}, - "klm": {S: aws.String("abc")}, - }}, - }, - } - - m := testOmitEmptyElemMapStruct{Values: map[string]interface{}{ - "abc": 123., - "efg": nil, - "hij": "", - "klm": "abc", - }} - - actual, err := Marshal(m) - assert.NoError(t, err) - assert.Equal(t, expect, actual) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter_examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/examples_test.go similarity index 99% rename from vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter_examples_test.go rename to vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/examples_test.go index 67b65fae3..e4fcedfcb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/converter_examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/examples_test.go @@ -2,9 +2,8 @@ package dynamodbattribute_test import ( "fmt" - "reflect" - "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" + "reflect" ) func ExampleConvertTo() { diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/field.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/field.go deleted file mode 100644 index 1fe0d3500..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/field.go +++ /dev/null @@ -1,269 +0,0 @@ -package dynamodbattribute - -import ( - "reflect" - "sort" - "strings" -) - -type field struct { - tag - - Name string - NameFromTag bool - - Index []int - Type reflect.Type -} - -func fieldByName(fields []field, name string) (field, bool) { - foldExists := false - foldField := field{} - - for _, f := range fields { - if f.Name == name { - return f, true - } - if !foldExists && strings.EqualFold(f.Name, name) { - foldField = f - foldExists = true - } - } - - return foldField, foldExists -} - -func buildField(pIdx []int, i int, sf reflect.StructField, fieldTag tag) field { - f := field{ - Name: sf.Name, - Type: sf.Type, - tag: fieldTag, - } - if len(fieldTag.Name) != 0 { - f.NameFromTag = true - f.Name = fieldTag.Name - } - - f.Index = make([]int, len(pIdx)+1) - copy(f.Index, pIdx) - f.Index[len(pIdx)] = i - - return f -} - -func unionStructFields(t reflect.Type, opts MarshalOptions) []field { - fields := enumFields(t, opts) - - sort.Sort(fieldsByName(fields)) - - fields = visibleFields(fields) - - return fields -} - -// enumFields will recursively iterate through a structure and its nested -// anonymous fields. -// -// Based on the enoding/json struct field enumeration of the Go Stdlib -// https://golang.org/src/encoding/json/encode.go typeField func. -func enumFields(t reflect.Type, opts MarshalOptions) []field { - // Fields to explore - current := []field{} - next := []field{{Type: t}} - - // count of queued names - count := map[reflect.Type]int{} - nextCount := map[reflect.Type]int{} - - visited := map[reflect.Type]struct{}{} - fields := []field{} - - for len(next) > 0 { - current, next = next, current[:0] - count, nextCount = nextCount, map[reflect.Type]int{} - - for _, f := range current { - if _, ok := visited[f.Type]; ok { - continue - } - visited[f.Type] = struct{}{} - - for i := 0; i < f.Type.NumField(); i++ { - sf := f.Type.Field(i) - if sf.PkgPath != "" && !sf.Anonymous { - // Ignore unexported and non-anonymous fields - // unexported but anonymous field may still be used if - // the type has exported nested fields - continue - } - - fieldTag := tag{} - fieldTag.parseAVTag(sf.Tag) - if opts.SupportJSONTags && fieldTag == (tag{}) { - fieldTag.parseJSONTag(sf.Tag) - } - - if fieldTag.Ignore { - continue - } - - ft := sf.Type - if ft.Name() == "" && ft.Kind() == reflect.Ptr { - ft = ft.Elem() - } - - structField := buildField(f.Index, i, sf, fieldTag) - structField.Type = ft - - if !sf.Anonymous || ft.Kind() != reflect.Struct { - fields = append(fields, structField) - if count[f.Type] > 1 { - // If there were multiple instances, add a second, - // so that the annihilation code will see a duplicate. - // It only cares about the distinction between 1 or 2, - // so don't bother generating any more copies. - fields = append(fields, structField) - } - continue - } - - // Record new anon struct to explore next round - nextCount[ft]++ - if nextCount[ft] == 1 { - next = append(next, structField) - } - } - } - } - - return fields -} - -// visibleFields will return a slice of fields which are visible based on -// Go's standard visiblity rules with the exception of ties being broken -// by depth and struct tag naming. -// -// Based on the enoding/json field filtering of the Go Stdlib -// https://golang.org/src/encoding/json/encode.go typeField func. -func visibleFields(fields []field) []field { - // Delete all fields that are hidden by the Go rules for embedded fields, - // except that fields with JSON tags are promoted. - - // The fields are sorted in primary order of name, secondary order - // of field index length. Loop over names; for each name, delete - // hidden fields by choosing the one dominant field that survives. - out := fields[:0] - for advance, i := 0, 0; i < len(fields); i += advance { - // One iteration per name. - // Find the sequence of fields with the name of this first field. - fi := fields[i] - name := fi.Name - for advance = 1; i+advance < len(fields); advance++ { - fj := fields[i+advance] - if fj.Name != name { - break - } - } - if advance == 1 { // Only one field with this name - out = append(out, fi) - continue - } - dominant, ok := dominantField(fields[i : i+advance]) - if ok { - out = append(out, dominant) - } - } - - fields = out - sort.Sort(fieldsByIndex(fields)) - - return fields -} - -// dominantField looks through the fields, all of which are known to -// have the same name, to find the single field that dominates the -// others using Go's embedding rules, modified by the presence of -// JSON tags. If there are multiple top-level fields, the boolean -// will be false: This condition is an error in Go and we skip all -// the fields. -// -// Based on the enoding/json field filtering of the Go Stdlib -// https://golang.org/src/encoding/json/encode.go dominantField func. -func dominantField(fields []field) (field, bool) { - // The fields are sorted in increasing index-length order. The winner - // must therefore be one with the shortest index length. Drop all - // longer entries, which is easy: just truncate the slice. - length := len(fields[0].Index) - tagged := -1 // Index of first tagged field. - for i, f := range fields { - if len(f.Index) > length { - fields = fields[:i] - break - } - if f.NameFromTag { - if tagged >= 0 { - // Multiple tagged fields at the same level: conflict. - // Return no field. - return field{}, false - } - tagged = i - } - } - if tagged >= 0 { - return fields[tagged], true - } - // All remaining fields have the same length. If there's more than one, - // we have a conflict (two fields named "X" at the same level) and we - // return no field. - if len(fields) > 1 { - return field{}, false - } - return fields[0], true -} - -// fieldsByName sorts field by name, breaking ties with depth, -// then breaking ties with "name came from json tag", then -// breaking ties with index sequence. -// -// Based on the enoding/json field filtering of the Go Stdlib -// https://golang.org/src/encoding/json/encode.go fieldsByName type. -type fieldsByName []field - -func (x fieldsByName) Len() int { return len(x) } - -func (x fieldsByName) Swap(i, j int) { x[i], x[j] = x[j], x[i] } - -func (x fieldsByName) Less(i, j int) bool { - if x[i].Name != x[j].Name { - return x[i].Name < x[j].Name - } - if len(x[i].Index) != len(x[j].Index) { - return len(x[i].Index) < len(x[j].Index) - } - if x[i].NameFromTag != x[j].NameFromTag { - return x[i].NameFromTag - } - return fieldsByIndex(x).Less(i, j) -} - -// fieldsByIndex sorts field by index sequence. -// -// Based on the enoding/json field filtering of the Go Stdlib -// https://golang.org/src/encoding/json/encode.go fieldsByIndex type. -type fieldsByIndex []field - -func (x fieldsByIndex) Len() int { return len(x) } - -func (x fieldsByIndex) Swap(i, j int) { x[i], x[j] = x[j], x[i] } - -func (x fieldsByIndex) Less(i, j int) bool { - for k, xik := range x[i].Index { - if k >= len(x[j].Index) { - return false - } - if xik != x[j].Index[k] { - return xik < x[j].Index[k] - } - } - return len(x[i].Index) < len(x[j].Index) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/field_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/field_test.go deleted file mode 100644 index 58ee17b14..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/field_test.go +++ /dev/null @@ -1,110 +0,0 @@ -package dynamodbattribute - -import ( - "reflect" - "testing" - - "github.com/stretchr/testify/assert" -) - -type testUnionValues struct { - Name string - Value interface{} -} - -type unionSimple struct { - A int - B string - C []string -} - -type unionComplex struct { - unionSimple - A int -} - -type unionTagged struct { - A int `json:"A"` -} - -type unionTaggedComplex struct { - unionSimple - unionTagged - B string -} - -func TestUnionStructFields(t *testing.T) { - var cases = []struct { - in interface{} - expect []testUnionValues - }{ - { - in: unionSimple{1, "2", []string{"abc"}}, - expect: []testUnionValues{ - {"A", 1}, - {"B", "2"}, - {"C", []string{"abc"}}, - }, - }, - { - in: unionComplex{ - unionSimple: unionSimple{1, "2", []string{"abc"}}, - A: 2, - }, - expect: []testUnionValues{ - {"B", "2"}, - {"C", []string{"abc"}}, - {"A", 2}, - }, - }, - { - in: unionTaggedComplex{ - unionSimple: unionSimple{1, "2", []string{"abc"}}, - unionTagged: unionTagged{3}, - B: "3", - }, - expect: []testUnionValues{ - {"C", []string{"abc"}}, - {"A", 3}, - {"B", "3"}, - }, - }, - } - - for i, c := range cases { - v := reflect.ValueOf(c.in) - - fields := unionStructFields(v.Type(), MarshalOptions{SupportJSONTags: true}) - for j, f := range fields { - expected := c.expect[j] - assert.Equal(t, expected.Name, f.Name, "case %d, field %d", i, j) - actual := v.FieldByIndex(f.Index).Interface() - assert.EqualValues(t, expected.Value, actual, "case %d, field %d", i, j) - } - } -} - -func TestFieldByName(t *testing.T) { - fields := []field{ - {Name: "Abc"}, {Name: "mixCase"}, {Name: "UPPERCASE"}, - } - - cases := []struct { - Name, FieldName string - Found bool - }{ - {"abc", "Abc", true}, {"ABC", "Abc", true}, {"Abc", "Abc", true}, - {"123", "", false}, - {"ab", "", false}, - {"MixCase", "mixCase", true}, - {"uppercase", "UPPERCASE", true}, {"UPPERCASE", "UPPERCASE", true}, - } - - for _, c := range cases { - f, ok := fieldByName(fields, c.Name) - assert.Equal(t, c.Found, ok) - if ok { - assert.Equal(t, c.FieldName, f.Name) - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_examples_test.go deleted file mode 100644 index 28e915e35..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_examples_test.go +++ /dev/null @@ -1,104 +0,0 @@ -package dynamodbattribute_test - -import ( - "fmt" - "reflect" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" -) - -func ExampleMarshal() { - type Record struct { - Bytes []byte - MyField string - Letters []string - Numbers []int - } - - r := Record{ - Bytes: []byte{48, 49}, - MyField: "MyFieldValue", - Letters: []string{"a", "b", "c", "d"}, - Numbers: []int{1, 2, 3}, - } - av, err := dynamodbattribute.Marshal(r) - fmt.Println("err", err) - fmt.Println("Bytes", av.M["Bytes"]) - fmt.Println("MyField", av.M["MyField"]) - fmt.Println("Letters", av.M["Letters"]) - fmt.Println("Numbers", av.M["Numbers"]) - - // Output: - // err - // Bytes { - // B: [48,49] - // } - // MyField { - // S: "MyFieldValue" - // } - // Letters { - // L: [ - // { - // S: "a" - // }, - // { - // S: "b" - // }, - // { - // S: "c" - // }, - // { - // S: "d" - // } - // ] - // } - // Numbers { - // L: [{ - // N: "1" - // },{ - // N: "2" - // },{ - // N: "3" - // }] - // } -} - -func ExampleUnmarshal() { - type Record struct { - Bytes []byte - MyField string - Letters []string - A2Num map[string]int - } - - expect := Record{ - Bytes: []byte{48, 49}, - MyField: "MyFieldValue", - Letters: []string{"a", "b", "c", "d"}, - A2Num: map[string]int{"a": 1, "b": 2, "c": 3}, - } - - av := &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "Bytes": {B: []byte{48, 49}}, - "MyField": {S: aws.String("MyFieldValue")}, - "Letters": {L: []*dynamodb.AttributeValue{ - {S: aws.String("a")}, {S: aws.String("b")}, {S: aws.String("c")}, {S: aws.String("d")}, - }}, - "A2Num": {M: map[string]*dynamodb.AttributeValue{ - "a": {N: aws.String("1")}, - "b": {N: aws.String("2")}, - "c": {N: aws.String("3")}, - }}, - }, - } - - actual := Record{} - err := dynamodbattribute.Unmarshal(av, &actual) - fmt.Println(err, reflect.DeepEqual(expect, actual)) - - // Output: - // true -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_test.go deleted file mode 100644 index 819bbc6ca..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/marshaler_test.go +++ /dev/null @@ -1,526 +0,0 @@ -package dynamodbattribute - -import ( - "math" - "reflect" - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/service/dynamodb" -) - -type simpleMarshalStruct struct { - Byte []byte - String string - Int int - Uint uint - Float32 float32 - Float64 float64 - Bool bool - Null *interface{} -} - -type complexMarshalStruct struct { - Simple []simpleMarshalStruct -} - -type myByteStruct struct { - Byte []byte -} - -type myByteSetStruct struct { - ByteSet [][]byte -} - -type marshallerTestInput struct { - input interface{} - expected interface{} - err awserr.Error -} - -var marshalerScalarInputs = []marshallerTestInput{ - { - input: nil, - expected: &dynamodb.AttributeValue{NULL: &trueValue}, - }, - { - input: "some string", - expected: &dynamodb.AttributeValue{S: aws.String("some string")}, - }, - { - input: true, - expected: &dynamodb.AttributeValue{BOOL: &trueValue}, - }, - { - input: false, - expected: &dynamodb.AttributeValue{BOOL: &falseValue}, - }, - { - input: 3.14, - expected: &dynamodb.AttributeValue{N: aws.String("3.14")}, - }, - { - input: math.MaxFloat32, - expected: &dynamodb.AttributeValue{N: aws.String("340282346638528860000000000000000000000")}, - }, - { - input: math.MaxFloat64, - expected: &dynamodb.AttributeValue{N: aws.String("179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")}, - }, - { - input: 12, - expected: &dynamodb.AttributeValue{N: aws.String("12")}, - }, - { - input: Number("12"), - expected: &dynamodb.AttributeValue{N: aws.String("12")}, - }, - { - input: simpleMarshalStruct{}, - expected: &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "Byte": {NULL: &trueValue}, - "Bool": {BOOL: &falseValue}, - "Float32": {N: aws.String("0")}, - "Float64": {N: aws.String("0")}, - "Int": {N: aws.String("0")}, - "Null": {NULL: &trueValue}, - "String": {NULL: &trueValue}, - "Uint": {N: aws.String("0")}, - }, - }, - }, -} - -var marshallerMapTestInputs = []marshallerTestInput{ - // Scalar tests - { - input: nil, - expected: map[string]*dynamodb.AttributeValue{}, - }, - { - input: map[string]interface{}{"string": "some string"}, - expected: map[string]*dynamodb.AttributeValue{"string": {S: aws.String("some string")}}, - }, - { - input: map[string]interface{}{"bool": true}, - expected: map[string]*dynamodb.AttributeValue{"bool": {BOOL: &trueValue}}, - }, - { - input: map[string]interface{}{"bool": false}, - expected: map[string]*dynamodb.AttributeValue{"bool": {BOOL: &falseValue}}, - }, - { - input: map[string]interface{}{"null": nil}, - expected: map[string]*dynamodb.AttributeValue{"null": {NULL: &trueValue}}, - }, - { - input: map[string]interface{}{"float": 3.14}, - expected: map[string]*dynamodb.AttributeValue{"float": {N: aws.String("3.14")}}, - }, - { - input: map[string]interface{}{"float": math.MaxFloat32}, - expected: map[string]*dynamodb.AttributeValue{"float": {N: aws.String("340282346638528860000000000000000000000")}}, - }, - { - input: map[string]interface{}{"float": math.MaxFloat64}, - expected: map[string]*dynamodb.AttributeValue{"float": {N: aws.String("179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")}}, - }, - { - input: map[string]interface{}{"num": 12.}, - expected: map[string]*dynamodb.AttributeValue{"num": {N: aws.String("12")}}, - }, - { - input: map[string]interface{}{"byte": []byte{48, 49}}, - expected: map[string]*dynamodb.AttributeValue{"byte": {B: []byte{48, 49}}}, - }, - { - input: struct{ Byte []byte }{Byte: []byte{48, 49}}, - expected: map[string]*dynamodb.AttributeValue{"Byte": {B: []byte{48, 49}}}, - }, - { - input: map[string]interface{}{"byte_set": [][]byte{{48, 49}, {50, 51}}}, - expected: map[string]*dynamodb.AttributeValue{"byte_set": {BS: [][]byte{{48, 49}, {50, 51}}}}, - }, - { - input: struct{ ByteSet [][]byte }{ByteSet: [][]byte{{48, 49}, {50, 51}}}, - expected: map[string]*dynamodb.AttributeValue{"ByteSet": {BS: [][]byte{{48, 49}, {50, 51}}}}, - }, - // List - { - input: map[string]interface{}{"list": []interface{}{"a string", 12., 3.14, true, nil, false}}, - expected: map[string]*dynamodb.AttributeValue{ - "list": { - L: []*dynamodb.AttributeValue{ - {S: aws.String("a string")}, - {N: aws.String("12")}, - {N: aws.String("3.14")}, - {BOOL: &trueValue}, - {NULL: &trueValue}, - {BOOL: &falseValue}, - }, - }, - }, - }, - // Map - { - input: map[string]interface{}{"map": map[string]interface{}{"nestednum": 12.}}, - expected: map[string]*dynamodb.AttributeValue{ - "map": { - M: map[string]*dynamodb.AttributeValue{ - "nestednum": { - N: aws.String("12"), - }, - }, - }, - }, - }, - // Structs - { - input: simpleMarshalStruct{}, - expected: map[string]*dynamodb.AttributeValue{ - "Byte": {NULL: &trueValue}, - "Bool": {BOOL: &falseValue}, - "Float32": {N: aws.String("0")}, - "Float64": {N: aws.String("0")}, - "Int": {N: aws.String("0")}, - "Null": {NULL: &trueValue}, - "String": {NULL: &trueValue}, - "Uint": {N: aws.String("0")}, - }, - }, - { - input: complexMarshalStruct{}, - expected: map[string]*dynamodb.AttributeValue{ - "Simple": {NULL: &trueValue}, - }, - }, - { - input: struct { - Simple []string `json:"simple"` - }{}, - expected: map[string]*dynamodb.AttributeValue{ - "simple": {NULL: &trueValue}, - }, - }, - { - input: struct { - Simple []string `json:"simple,omitempty"` - }{}, - expected: map[string]*dynamodb.AttributeValue{}, - }, - { - input: struct { - Simple []string `json:"-"` - }{}, - expected: map[string]*dynamodb.AttributeValue{}, - }, - { - input: complexMarshalStruct{Simple: []simpleMarshalStruct{{Int: -2}, {Uint: 5}}}, - expected: map[string]*dynamodb.AttributeValue{ - "Simple": { - L: []*dynamodb.AttributeValue{ - { - M: map[string]*dynamodb.AttributeValue{ - "Byte": {NULL: &trueValue}, - "Bool": {BOOL: &falseValue}, - "Float32": {N: aws.String("0")}, - "Float64": {N: aws.String("0")}, - "Int": {N: aws.String("-2")}, - "Null": {NULL: &trueValue}, - "String": {NULL: &trueValue}, - "Uint": {N: aws.String("0")}, - }, - }, - { - M: map[string]*dynamodb.AttributeValue{ - "Byte": {NULL: &trueValue}, - "Bool": {BOOL: &falseValue}, - "Float32": {N: aws.String("0")}, - "Float64": {N: aws.String("0")}, - "Int": {N: aws.String("0")}, - "Null": {NULL: &trueValue}, - "String": {NULL: &trueValue}, - "Uint": {N: aws.String("5")}, - }, - }, - }, - }, - }, - }, -} - -var marshallerListTestInputs = []marshallerTestInput{ - { - input: nil, - expected: []*dynamodb.AttributeValue{}, - }, - { - input: []interface{}{}, - expected: []*dynamodb.AttributeValue{}, - }, - { - input: []simpleMarshalStruct{}, - expected: []*dynamodb.AttributeValue{}, - }, - { - input: []interface{}{"a string", 12., 3.14, true, nil, false}, - expected: []*dynamodb.AttributeValue{ - {S: aws.String("a string")}, - {N: aws.String("12")}, - {N: aws.String("3.14")}, - {BOOL: &trueValue}, - {NULL: &trueValue}, - {BOOL: &falseValue}, - }, - }, - { - input: []simpleMarshalStruct{{}}, - expected: []*dynamodb.AttributeValue{ - { - M: map[string]*dynamodb.AttributeValue{ - "Byte": {NULL: &trueValue}, - "Bool": {BOOL: &falseValue}, - "Float32": {N: aws.String("0")}, - "Float64": {N: aws.String("0")}, - "Int": {N: aws.String("0")}, - "Null": {NULL: &trueValue}, - "String": {NULL: &trueValue}, - "Uint": {N: aws.String("0")}, - }, - }, - }, - }, -} - -func Test_New_Marshal(t *testing.T) { - for _, test := range marshalerScalarInputs { - testMarshal(t, test) - } -} - -func testMarshal(t *testing.T, test marshallerTestInput) { - actual, err := Marshal(test.input) - if test.err != nil { - if err == nil { - t.Errorf("Marshal with input %#v retured %#v, expected error `%s`", test.input, actual, test.err) - } else if err.Error() != test.err.Error() { - t.Errorf("Marshal with input %#v retured error `%s`, expected error `%s`", test.input, err, test.err) - } - } else { - if err != nil { - t.Errorf("Marshal with input %#v retured error `%s`", test.input, err) - } - compareObjects(t, test.expected, actual) - } -} - -func Test_New_Unmarshal(t *testing.T) { - // Using the same inputs from Marshal, test the reverse mapping. - for i, test := range marshalerScalarInputs { - if test.input == nil { - continue - } - actual := reflect.New(reflect.TypeOf(test.input)).Interface() - if err := Unmarshal(test.expected.(*dynamodb.AttributeValue), actual); err != nil { - t.Errorf("Unmarshal %d, with input %#v retured error `%s`", i+1, test.expected, err) - } - compareObjects(t, test.input, reflect.ValueOf(actual).Elem().Interface()) - } -} - -func Test_New_UnmarshalError(t *testing.T) { - // Test that we get an error using Unmarshal to convert to a nil value. - expected := &InvalidUnmarshalError{Type: reflect.TypeOf(nil)} - if err := Unmarshal(nil, nil); err == nil { - t.Errorf("Unmarshal with input %T returned no error, expected error `%v`", nil, expected) - } else if err.Error() != expected.Error() { - t.Errorf("Unmarshal with input %T returned error `%v`, expected error `%v`", nil, err, expected) - } - - // Test that we get an error using Unmarshal to convert to a non-pointer value. - var actual map[string]interface{} - expected = &InvalidUnmarshalError{Type: reflect.TypeOf(actual)} - if err := Unmarshal(nil, actual); err == nil { - t.Errorf("Unmarshal with input %T returned no error, expected error `%v`", actual, expected) - } else if err.Error() != expected.Error() { - t.Errorf("Unmarshal with input %T returned error `%v`, expected error `%v`", actual, err, expected) - } - - // Test that we get an error using Unmarshal to convert to nil struct. - var actual2 *struct{ A int } - expected = &InvalidUnmarshalError{Type: reflect.TypeOf(actual2)} - if err := Unmarshal(nil, actual2); err == nil { - t.Errorf("Unmarshal with input %T returned no error, expected error `%v`", actual2, expected) - } else if err.Error() != expected.Error() { - t.Errorf("Unmarshal with input %T returned error `%v`, expected error `%v`", actual2, err, expected) - } -} - -func Test_New_MarshalMap(t *testing.T) { - for _, test := range marshallerMapTestInputs { - testMarshalMap(t, test) - } -} - -func testMarshalMap(t *testing.T, test marshallerTestInput) { - actual, err := MarshalMap(test.input) - if test.err != nil { - if err == nil { - t.Errorf("MarshalMap with input %#v retured %#v, expected error `%s`", test.input, actual, test.err) - } else if err.Error() != test.err.Error() { - t.Errorf("MarshalMap with input %#v retured error `%s`, expected error `%s`", test.input, err, test.err) - } - } else { - if err != nil { - t.Errorf("MarshalMap with input %#v retured error `%s`", test.input, err) - } - compareObjects(t, test.expected, actual) - } -} - -func Test_New_UnmarshalMap(t *testing.T) { - // Using the same inputs from MarshalMap, test the reverse mapping. - for i, test := range marshallerMapTestInputs { - if test.input == nil { - continue - } - actual := reflect.New(reflect.TypeOf(test.input)).Interface() - if err := UnmarshalMap(test.expected.(map[string]*dynamodb.AttributeValue), actual); err != nil { - t.Errorf("Unmarshal %d, with input %#v retured error `%s`", i+1, test.expected, err) - } - compareObjects(t, test.input, reflect.ValueOf(actual).Elem().Interface()) - } -} - -func Test_New_UnmarshalMapError(t *testing.T) { - // Test that we get an error using UnmarshalMap to convert to a nil value. - expected := &InvalidUnmarshalError{Type: reflect.TypeOf(nil)} - if err := UnmarshalMap(nil, nil); err == nil { - t.Errorf("UnmarshalMap with input %T returned no error, expected error `%v`", nil, expected) - } else if err.Error() != expected.Error() { - t.Errorf("UnmarshalMap with input %T returned error `%v`, expected error `%v`", nil, err, expected) - } - - // Test that we get an error using UnmarshalMap to convert to a non-pointer value. - var actual map[string]interface{} - expected = &InvalidUnmarshalError{Type: reflect.TypeOf(actual)} - if err := UnmarshalMap(nil, actual); err == nil { - t.Errorf("UnmarshalMap with input %T returned no error, expected error `%v`", actual, expected) - } else if err.Error() != expected.Error() { - t.Errorf("UnmarshalMap with input %T returned error `%v`, expected error `%v`", actual, err, expected) - } - - // Test that we get an error using UnmarshalMap to convert to nil struct. - var actual2 *struct{ A int } - expected = &InvalidUnmarshalError{Type: reflect.TypeOf(actual2)} - if err := UnmarshalMap(nil, actual2); err == nil { - t.Errorf("UnmarshalMap with input %T returned no error, expected error `%v`", actual2, expected) - } else if err.Error() != expected.Error() { - t.Errorf("UnmarshalMap with input %T returned error `%v`, expected error `%v`", actual2, err, expected) - } -} - -func Test_New_MarshalList(t *testing.T) { - for _, test := range marshallerListTestInputs { - testMarshalList(t, test) - } -} - -func testMarshalList(t *testing.T, test marshallerTestInput) { - actual, err := MarshalList(test.input) - if test.err != nil { - if err == nil { - t.Errorf("MarshalList with input %#v retured %#v, expected error `%s`", test.input, actual, test.err) - } else if err.Error() != test.err.Error() { - t.Errorf("MarshalList with input %#v retured error `%s`, expected error `%s`", test.input, err, test.err) - } - } else { - if err != nil { - t.Errorf("MarshalList with input %#v retured error `%s`", test.input, err) - } - compareObjects(t, test.expected, actual) - } -} - -func Test_New_UnmarshalList(t *testing.T) { - // Using the same inputs from MarshalList, test the reverse mapping. - for i, test := range marshallerListTestInputs { - if test.input == nil { - continue - } - iv := reflect.ValueOf(test.input) - - actual := reflect.New(iv.Type()) - if iv.Kind() == reflect.Slice { - actual.Elem().Set(reflect.MakeSlice(iv.Type(), iv.Len(), iv.Cap())) - } - - if err := UnmarshalList(test.expected.([]*dynamodb.AttributeValue), actual.Interface()); err != nil { - t.Errorf("Unmarshal %d, with input %#v retured error `%s`", i+1, test.expected, err) - } - compareObjects(t, test.input, actual.Elem().Interface()) - } -} - -func Test_New_UnmarshalListError(t *testing.T) { - // Test that we get an error using UnmarshalList to convert to a nil value. - expected := &InvalidUnmarshalError{Type: reflect.TypeOf(nil)} - if err := UnmarshalList(nil, nil); err == nil { - t.Errorf("UnmarshalList with input %T returned no error, expected error `%v`", nil, expected) - } else if err.Error() != expected.Error() { - t.Errorf("UnmarshalList with input %T returned error `%v`, expected error `%v`", nil, err, expected) - } - - // Test that we get an error using UnmarshalList to convert to a non-pointer value. - var actual map[string]interface{} - expected = &InvalidUnmarshalError{Type: reflect.TypeOf(actual)} - if err := UnmarshalList(nil, actual); err == nil { - t.Errorf("UnmarshalList with input %T returned no error, expected error `%v`", actual, expected) - } else if err.Error() != expected.Error() { - t.Errorf("UnmarshalList with input %T returned error `%v`, expected error `%v`", actual, err, expected) - } - - // Test that we get an error using UnmarshalList to convert to nil struct. - var actual2 *struct{ A int } - expected = &InvalidUnmarshalError{Type: reflect.TypeOf(actual2)} - if err := UnmarshalList(nil, actual2); err == nil { - t.Errorf("UnmarshalList with input %T returned no error, expected error `%v`", actual2, expected) - } else if err.Error() != expected.Error() { - t.Errorf("UnmarshalList with input %T returned error `%v`, expected error `%v`", actual2, err, expected) - } -} - -func compareObjects(t *testing.T, expected interface{}, actual interface{}) { - if !reflect.DeepEqual(expected, actual) { - ev := reflect.ValueOf(expected) - av := reflect.ValueOf(actual) - t.Errorf("\nExpected kind(%s,%T):\n%s\nActual kind(%s,%T):\n%s\n", - ev.Kind(), - ev.Interface(), - awsutil.Prettify(expected), - av.Kind(), - ev.Interface(), - awsutil.Prettify(actual)) - } -} - -func BenchmarkMarshal(b *testing.B) { - d := simpleMarshalStruct{ - String: "abc", - Int: 123, - Uint: 123, - Float32: 123.321, - Float64: 123.321, - Bool: true, - Null: nil, - } - for i := 0; i < b.N; i++ { - _, err := Marshal(d) - if err != nil { - b.Fatal("unexpected error", err) - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/shared_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/shared_test.go deleted file mode 100644 index 9f0d5cdcc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/shared_test.go +++ /dev/null @@ -1,294 +0,0 @@ -package dynamodbattribute - -import ( - "reflect" - "testing" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/stretchr/testify/assert" -) - -type testBinarySetStruct struct { - Binarys [][]byte `dynamodbav:",binaryset"` -} -type testNumberSetStruct struct { - Numbers []int `dynamodbav:",numberset"` -} -type testStringSetStruct struct { - Strings []string `dynamodbav:",stringset"` -} - -type testIntAsStringStruct struct { - Value int `dynamodbav:",string"` -} - -type testOmitEmptyStruct struct { - Value string `dynamodbav:",omitempty"` - Value2 *string `dynamodbav:",omitempty"` - Value3 int -} - -type testNamedPointer *int - -var testDate, _ = time.Parse(time.RFC3339, "2016-05-03T17:06:26.209072Z") - -var sharedTestCases = []struct { - in *dynamodb.AttributeValue - actual, expected interface{} - err error -}{ - { // Binary slice - in: &dynamodb.AttributeValue{B: []byte{48, 49}}, - actual: &[]byte{}, - expected: []byte{48, 49}, - }, - { // Binary slice - in: &dynamodb.AttributeValue{B: []byte{48, 49}}, - actual: &[]byte{}, - expected: []byte{48, 49}, - }, - { // Binary slice oversized - in: &dynamodb.AttributeValue{B: []byte{48, 49}}, - actual: func() *[]byte { - v := make([]byte, 0, 10) - return &v - }(), - expected: []byte{48, 49}, - }, - { // Binary slice pointer - in: &dynamodb.AttributeValue{B: []byte{48, 49}}, - actual: func() **[]byte { - v := make([]byte, 0, 10) - v2 := &v - return &v2 - }(), - expected: []byte{48, 49}, - }, - { // Bool - in: &dynamodb.AttributeValue{BOOL: aws.Bool(true)}, - actual: new(bool), - expected: true, - }, - { // List - in: &dynamodb.AttributeValue{L: []*dynamodb.AttributeValue{ - {N: aws.String("123")}, - }}, - actual: &[]int{}, - expected: []int{123}, - }, - { // Map, interface - in: &dynamodb.AttributeValue{M: map[string]*dynamodb.AttributeValue{ - "abc": {N: aws.String("123")}, - }}, - actual: &map[string]int{}, - expected: map[string]int{"abc": 123}, - }, - { // Map, struct - in: &dynamodb.AttributeValue{M: map[string]*dynamodb.AttributeValue{ - "Abc": {N: aws.String("123")}, - }}, - actual: &struct{ Abc int }{}, - expected: struct{ Abc int }{Abc: 123}, - }, - { // Map, struct - in: &dynamodb.AttributeValue{M: map[string]*dynamodb.AttributeValue{ - "abc": {N: aws.String("123")}, - }}, - actual: &struct { - Abc int `json:"abc" dynamodbav:"abc"` - }{}, - expected: struct { - Abc int `json:"abc" dynamodbav:"abc"` - }{Abc: 123}, - }, - { // Number, int - in: &dynamodb.AttributeValue{N: aws.String("123")}, - actual: new(int), - expected: 123, - }, - { // Number, Float - in: &dynamodb.AttributeValue{N: aws.String("123.1")}, - actual: new(float64), - expected: float64(123.1), - }, - { // Null - in: &dynamodb.AttributeValue{NULL: aws.Bool(true)}, - actual: new(string), - expected: "", - }, - { // Null ptr - in: &dynamodb.AttributeValue{NULL: aws.Bool(true)}, - actual: new(*string), - expected: nil, - }, - { // String - in: &dynamodb.AttributeValue{S: aws.String("abc")}, - actual: new(string), - expected: "abc", - }, - { // Binary Set - in: &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "Binarys": {BS: [][]byte{{48, 49}, {50, 51}}}, - }, - }, - actual: &testBinarySetStruct{}, - expected: testBinarySetStruct{Binarys: [][]byte{{48, 49}, {50, 51}}}, - }, - { // Number Set - in: &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "Numbers": {NS: []*string{aws.String("123"), aws.String("321")}}, - }, - }, - actual: &testNumberSetStruct{}, - expected: testNumberSetStruct{Numbers: []int{123, 321}}, - }, - { // String Set - in: &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "Strings": {SS: []*string{aws.String("abc"), aws.String("efg")}}, - }, - }, - actual: &testStringSetStruct{}, - expected: testStringSetStruct{Strings: []string{"abc", "efg"}}, - }, - { // Int value as string - in: &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "Value": {S: aws.String("123")}, - }, - }, - actual: &testIntAsStringStruct{}, - expected: testIntAsStringStruct{Value: 123}, - }, - { // Omitempty - in: &dynamodb.AttributeValue{ - M: map[string]*dynamodb.AttributeValue{ - "Value3": {N: aws.String("0")}, - }, - }, - actual: &testOmitEmptyStruct{}, - expected: testOmitEmptyStruct{Value: "", Value2: nil, Value3: 0}, - }, - { - in: &dynamodb.AttributeValue{N: aws.String("123")}, - actual: new(testNamedPointer), - expected: testNamedPointer(aws.Int(123)), - }, - { // time.Time - in: &dynamodb.AttributeValue{S: aws.String("2016-05-03T17:06:26.209072Z")}, - actual: new(time.Time), - expected: testDate, - }, - { // time.Time List - in: &dynamodb.AttributeValue{L: []*dynamodb.AttributeValue{ - {S: aws.String("2016-05-03T17:06:26.209072Z")}, - {S: aws.String("2016-05-04T17:06:26.209072Z")}, - }}, - actual: new([]time.Time), - expected: []time.Time{testDate, testDate.Add(24 * time.Hour)}, - }, - { // time.Time struct - in: &dynamodb.AttributeValue{M: map[string]*dynamodb.AttributeValue{ - "abc": {S: aws.String("2016-05-03T17:06:26.209072Z")}, - }}, - actual: &struct { - Abc time.Time `json:"abc" dynamodbav:"abc"` - }{}, - expected: struct { - Abc time.Time `json:"abc" dynamodbav:"abc"` - }{Abc: testDate}, - }, - { // time.Time ptr struct - in: &dynamodb.AttributeValue{M: map[string]*dynamodb.AttributeValue{ - "abc": {S: aws.String("2016-05-03T17:06:26.209072Z")}, - }}, - actual: &struct { - Abc *time.Time `json:"abc" dynamodbav:"abc"` - }{}, - expected: struct { - Abc *time.Time `json:"abc" dynamodbav:"abc"` - }{Abc: &testDate}, - }, -} - -var sharedListTestCases = []struct { - in []*dynamodb.AttributeValue - actual, expected interface{} - err error -}{ - { - in: []*dynamodb.AttributeValue{ - {B: []byte{48, 49}}, - {BOOL: aws.Bool(true)}, - {N: aws.String("123")}, - {S: aws.String("123")}, - }, - actual: func() *[]interface{} { - v := []interface{}{} - return &v - }(), - expected: []interface{}{[]byte{48, 49}, true, 123., "123"}, - }, - { - in: []*dynamodb.AttributeValue{ - {N: aws.String("1")}, - {N: aws.String("2")}, - {N: aws.String("3")}, - }, - actual: &[]interface{}{}, - expected: []interface{}{1., 2., 3.}, - }, -} - -var sharedMapTestCases = []struct { - in map[string]*dynamodb.AttributeValue - actual, expected interface{} - err error -}{ - { - in: map[string]*dynamodb.AttributeValue{ - "B": {B: []byte{48, 49}}, - "BOOL": {BOOL: aws.Bool(true)}, - "N": {N: aws.String("123")}, - "S": {S: aws.String("123")}, - }, - actual: &map[string]interface{}{}, - expected: map[string]interface{}{ - "B": []byte{48, 49}, "BOOL": true, - "N": 123., "S": "123", - }, - }, -} - -func assertConvertTest(t *testing.T, i int, actual, expected interface{}, err, expectedErr error) { - i++ - if expectedErr != nil { - if err != nil { - assert.Equal(t, expectedErr, err, "case %d", i) - } else { - assert.Fail(t, "", "case %d, expected error, %v", i) - } - } else if err != nil { - assert.Fail(t, "", "case %d, expect no error, got %v", i, err) - } else { - assert.Equal(t, ptrToValue(expected), ptrToValue(actual), "case %d", i) - } -} - -func ptrToValue(in interface{}) interface{} { - v := reflect.ValueOf(in) - if v.Kind() == reflect.Ptr { - v = v.Elem() - } - if !v.IsValid() { - return nil - } - if v.Kind() == reflect.Ptr { - return ptrToValue(v.Interface()) - } - return v.Interface() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/tag.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/tag.go deleted file mode 100644 index 0b63eb7d1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/tag.go +++ /dev/null @@ -1,65 +0,0 @@ -package dynamodbattribute - -import ( - "reflect" - "strings" -) - -type tag struct { - Name string - Ignore bool - OmitEmpty bool - OmitEmptyElem bool - AsString bool - AsBinSet, AsNumSet, AsStrSet bool -} - -func (t *tag) parseAVTag(structTag reflect.StructTag) { - tagStr := structTag.Get("dynamodbav") - if len(tagStr) == 0 { - return - } - - t.parseTagStr(tagStr) -} - -func (t *tag) parseJSONTag(structTag reflect.StructTag) { - tagStr := structTag.Get("json") - if len(tagStr) == 0 { - return - } - - t.parseTagStr(tagStr) -} - -func (t *tag) parseTagStr(tagStr string) { - parts := strings.SplitN(tagStr, ",", 2) - if len(parts) == 0 { - return - } - - if name := parts[0]; name == "-" { - t.Name = "" - t.Ignore = true - } else { - t.Name = name - t.Ignore = false - } - - for _, opt := range parts[1:] { - switch opt { - case "omitempty": - t.OmitEmpty = true - case "omitemptyelem": - t.OmitEmptyElem = true - case "string": - t.AsString = true - case "binaryset": - t.AsBinSet = true - case "numberset": - t.AsNumSet = true - case "stringset": - t.AsStrSet = true - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/tag_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/tag_test.go deleted file mode 100644 index 09701036f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/tag_test.go +++ /dev/null @@ -1,45 +0,0 @@ -package dynamodbattribute - -import ( - "reflect" - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestTagParse(t *testing.T) { - cases := []struct { - in reflect.StructTag - json, av bool - expect tag - }{ - {`json:""`, true, false, tag{}}, - {`json:"name"`, true, false, tag{Name: "name"}}, - {`json:"name,omitempty"`, true, false, tag{Name: "name", OmitEmpty: true}}, - {`json:"-"`, true, false, tag{Ignore: true}}, - {`json:",omitempty"`, true, false, tag{OmitEmpty: true}}, - {`json:",string"`, true, false, tag{AsString: true}}, - {`dynamodbav:""`, false, true, tag{}}, - {`dynamodbav:","`, false, true, tag{}}, - {`dynamodbav:"name"`, false, true, tag{Name: "name"}}, - {`dynamodbav:"name"`, false, true, tag{Name: "name"}}, - {`dynamodbav:"-"`, false, true, tag{Ignore: true}}, - {`dynamodbav:",omitempty"`, false, true, tag{OmitEmpty: true}}, - {`dynamodbav:",omitemptyelem"`, false, true, tag{OmitEmptyElem: true}}, - {`dynamodbav:",string"`, false, true, tag{AsString: true}}, - {`dynamodbav:",binaryset"`, false, true, tag{AsBinSet: true}}, - {`dynamodbav:",numberset"`, false, true, tag{AsNumSet: true}}, - {`dynamodbav:",stringset"`, false, true, tag{AsStrSet: true}}, - } - - for i, c := range cases { - actual := tag{} - if c.json { - actual.parseJSONTag(c.in) - } - if c.av { - actual.parseAVTag(c.in) - } - assert.Equal(t, c.expect, actual, "case %d", i+1) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go index 0b6df4ef5..05eea62af 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface.go @@ -32,10 +32,6 @@ type DynamoDBAPI interface { DeleteTable(*dynamodb.DeleteTableInput) (*dynamodb.DeleteTableOutput, error) - DescribeLimitsRequest(*dynamodb.DescribeLimitsInput) (*request.Request, *dynamodb.DescribeLimitsOutput) - - DescribeLimits(*dynamodb.DescribeLimitsInput) (*dynamodb.DescribeLimitsOutput, error) - DescribeTableRequest(*dynamodb.DescribeTableInput) (*request.Request, *dynamodb.DescribeTableOutput) DescribeTable(*dynamodb.DescribeTableInput) (*dynamodb.DescribeTableOutput, error) @@ -74,5 +70,3 @@ type DynamoDBAPI interface { UpdateTable(*dynamodb.UpdateTableInput) (*dynamodb.UpdateTableOutput, error) } - -var _ DynamoDBAPI = (*dynamodb.DynamoDB)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface_test.go new file mode 100644 index 000000000..50385d5da --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package dynamodbiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*dynamodbiface.DynamoDBAPI)(nil), dynamodb.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go index 060d1abdb..e206d1fd8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dynamodb" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDynamoDB_BatchGetItem() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.BatchGetItemInput{ RequestItems: map[string]*dynamodb.KeysAndAttributes{ // Required @@ -87,7 +86,7 @@ func ExampleDynamoDB_BatchGetItem() { } func ExampleDynamoDB_BatchWriteItem() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.BatchWriteItemInput{ RequestItems: map[string][]*dynamodb.WriteRequest{ // Required @@ -187,7 +186,7 @@ func ExampleDynamoDB_BatchWriteItem() { } func ExampleDynamoDB_CreateTable() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.CreateTableInput{ AttributeDefinitions: []*dynamodb.AttributeDefinition{ // Required @@ -272,7 +271,7 @@ func ExampleDynamoDB_CreateTable() { } func ExampleDynamoDB_DeleteItem() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.DeleteItemInput{ Key: map[string]*dynamodb.AttributeValue{ // Required @@ -440,7 +439,7 @@ func ExampleDynamoDB_DeleteItem() { } func ExampleDynamoDB_DeleteTable() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.DeleteTableInput{ TableName: aws.String("TableName"), // Required @@ -458,25 +457,8 @@ func ExampleDynamoDB_DeleteTable() { fmt.Println(resp) } -func ExampleDynamoDB_DescribeLimits() { - svc := dynamodb.New(session.New()) - - var params *dynamodb.DescribeLimitsInput - resp, err := svc.DescribeLimits(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleDynamoDB_DescribeTable() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.DescribeTableInput{ TableName: aws.String("TableName"), // Required @@ -495,7 +477,7 @@ func ExampleDynamoDB_DescribeTable() { } func ExampleDynamoDB_GetItem() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.GetItemInput{ Key: map[string]*dynamodb.AttributeValue{ // Required @@ -559,7 +541,7 @@ func ExampleDynamoDB_GetItem() { } func ExampleDynamoDB_ListTables() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.ListTablesInput{ ExclusiveStartTableName: aws.String("TableName"), @@ -579,7 +561,7 @@ func ExampleDynamoDB_ListTables() { } func ExampleDynamoDB_PutItem() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.PutItemInput{ Item: map[string]*dynamodb.AttributeValue{ // Required @@ -747,7 +729,7 @@ func ExampleDynamoDB_PutItem() { } func ExampleDynamoDB_Query() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.QueryInput{ TableName: aws.String("TableName"), // Required @@ -932,7 +914,7 @@ func ExampleDynamoDB_Query() { } func ExampleDynamoDB_Scan() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.ScanInput{ TableName: aws.String("TableName"), // Required @@ -1077,7 +1059,7 @@ func ExampleDynamoDB_Scan() { } func ExampleDynamoDB_UpdateItem() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.UpdateItemInput{ Key: map[string]*dynamodb.AttributeValue{ // Required @@ -1283,7 +1265,7 @@ func ExampleDynamoDB_UpdateItem() { } func ExampleDynamoDB_UpdateTable() { - svc := dynamodb.New(session.New()) + svc := dynamodb.New(nil) params := &dynamodb.UpdateTableInput{ TableName: aws.String("TableName"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go index f61f4fecf..67731d7a5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go @@ -4,34 +4,22 @@ package dynamodb import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -// This is the Amazon DynamoDB API Reference. This guide provides descriptions -// of the low-level DynamoDB API. -// -// This guide is intended for use with the following DynamoDB documentation: -// -// Amazon DynamoDB Getting Started Guide (http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/) -// - provides hands-on exercises that help you learn the basics of working with -// DynamoDB. If you are new to DynamoDB, we recommend that you begin with the -// Getting Started Guide. -// -// Amazon DynamoDB Developer Guide (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/) -// - contains detailed information about DynamoDB concepts, usage, and best -// practices. +// Overview // -// Amazon DynamoDB Streams API Reference (http://docs.aws.amazon.com/dynamodbstreams/latest/APIReference/) -// - provides descriptions and samples of the DynamoDB Streams API. (For more -// information, see Capturing Table Activity with DynamoDB Streams (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html) -// in the Amazon DynamoDB Developer Guide.) +// This is the Amazon DynamoDB API Reference. This guide provides descriptions +// and samples of the low-level DynamoDB API. For information about DynamoDB +// application development, see the Amazon DynamoDB Developer Guide (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/). // -// Instead of making the requests to the low-level DynamoDB API directly -// from your application, we recommend that you use the AWS Software Development +// Instead of making the requests to the low-level DynamoDB API directly from +// your application, we recommend that you use the AWS Software Development // Kits (SDKs). The easy-to-use libraries in the AWS SDKs make it unnecessary // to call the low-level DynamoDB API directly from your application. The libraries // take care of request authentication, serialization, and connection management. @@ -48,23 +36,24 @@ import ( // // Managing Tables // -// CreateTable - Creates a table with user-specified provisioned throughput -// settings. You must define a primary key for the table - either a simple primary -// key (partition key), or a composite primary key (partition key and sort key). +// CreateTable - Creates a table with user-specified provisioned throughput +// settings. You must designate one attribute as the hash primary key for the +// table; you can optionally designate a second attribute as the range primary +// key. DynamoDB creates indexes on these key attributes for fast data access. // Optionally, you can create one or more secondary indexes, which provide fast // data access using non-key attributes. // -// DescribeTable - Returns metadata for a table, such as table size, status, +// DescribeTable - Returns metadata for a table, such as table size, status, // and index information. // -// UpdateTable - Modifies the provisioned throughput settings for a table. +// UpdateTable - Modifies the provisioned throughput settings for a table. // Optionally, you can modify the provisioned throughput settings for global // secondary indexes on the table. // -// ListTables - Returns a list of all tables associated with the current +// ListTables - Returns a list of all tables associated with the current // AWS account and endpoint. // -// DeleteTable - Deletes a table and all of its indexes. +// DeleteTable - Deletes a table and all of its indexes. // // For conceptual information about managing tables, see Working with Tables // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html) @@ -72,22 +61,22 @@ import ( // // Reading Data // -// GetItem - Returns a set of attributes for the item that has a given primary +// GetItem - Returns a set of attributes for the item that has a given primary // key. By default, GetItem performs an eventually consistent read; however, // applications can request a strongly consistent read instead. // -// BatchGetItem - Performs multiple GetItem requests for data items using +// BatchGetItem - Performs multiple GetItem requests for data items using // their primary keys, from one table or multiple tables. The response from // BatchGetItem has a size limit of 16 MB and returns a maximum of 100 items. // Both eventually consistent and strongly consistent reads can be used. // -// Query - Returns one or more items from a table or a secondary index. -// You must provide a specific value for the partition key. You can narrow the -// scope of the query using comparison operators against a sort key value, or -// on the index key. Query supports either eventual or strong consistency. A -// single response has a size limit of 1 MB. +// Query - Returns one or more items from a table or a secondary index. You +// must provide a specific hash key value. You can narrow the scope of the query +// using comparison operators against a range key value, or on the index key. +// Query supports either eventual or strong consistency. A single response has +// a size limit of 1 MB. // -// Scan - Reads every item in a table; the result set is eventually consistent. +// Scan - Reads every item in a table; the result set is eventually consistent. // You can limit the number of items returned by filtering the data attributes, // using conditional expressions. Scan can be used to enable ad-hoc querying // of a table against non-key attributes; however, since this is a full table @@ -101,22 +90,22 @@ import ( // // Modifying Data // -// PutItem - Creates a new item, or replaces an existing item with a new +// PutItem - Creates a new item, or replaces an existing item with a new // item (including all the attributes). By default, if an item in the table // already exists with the same primary key, the new item completely replaces // the existing item. You can use conditional operators to replace an item only // if its attribute values match certain conditions, or to insert a new item // only if that item doesn't already exist. // -// UpdateItem - Modifies the attributes of an existing item. You can also +// UpdateItem - Modifies the attributes of an existing item. You can also // use conditional operators to perform an update only if the item's attribute // values match certain conditions. // -// DeleteItem - Deletes an item in a table by primary key. You can use conditional +// DeleteItem - Deletes an item in a table by primary key. You can use conditional // operators to perform a delete an item only if the item's attribute values // match certain conditions. // -// BatchWriteItem - Performs multiple PutItem and DeleteItem requests across +// BatchWriteItem - Performs multiple PutItem and DeleteItem requests across // multiple tables in a single request. A failure of any request(s) in the batch // will not cause the entire BatchWriteItem operation to fail. Supports batches // of up to 25 items to put or delete, with a maximum total request size of @@ -126,66 +115,42 @@ import ( // (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) // and Query and Scan Operations (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) // in the Amazon DynamoDB Developer Guide. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type DynamoDB struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "dynamodb" - -// New creates a new instance of the DynamoDB client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a DynamoDB client from just a session. -// svc := dynamodb.New(mySession) -// -// // Create a DynamoDB client with additional configuration -// svc := dynamodb.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *DynamoDB { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DynamoDB { - svc := &DynamoDB{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2012-08-10", - JSONVersion: "1.0", - TargetPrefix: "DynamoDB_20120810", - }, - handlers, - ), +// New returns a new DynamoDB client. +func New(config *aws.Config) *DynamoDB { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "dynamodb", + APIVersion: "2012-08-10", + JSONVersion: "1.0", + TargetPrefix: "DynamoDB_20120810", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &DynamoDB{service} } // newRequest creates a new request for a DynamoDB operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/waiters.go deleted file mode 100644 index 4deeed7a5..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/waiters.go +++ /dev/null @@ -1,59 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package dynamodb - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *DynamoDB) WaitUntilTableExists(input *DescribeTableInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeTable", - Delay: 20, - MaxAttempts: 25, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "Table.TableStatus", - Expected: "ACTIVE", - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "ResourceNotFoundException", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *DynamoDB) WaitUntilTableNotExists(input *DescribeTableInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeTable", - Delay: 20, - MaxAttempts: 25, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "error", - Argument: "", - Expected: "ResourceNotFoundException", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go index 76187f366..911a858bd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/api.go @@ -149,17 +149,21 @@ func (c *DynamoDBStreams) ListStreams(input *ListStreamsInput) (*ListStreamsOutp // Represents the input of a DescribeStream operation. type DescribeStreamInput struct { - _ struct{} `type:"structure"` - // The shard ID of the first item that this operation will evaluate. Use the // value that was returned for LastEvaluatedShardId in the previous operation. - ExclusiveStartShardId *string `min:"28" type:"string"` + ExclusiveStartShardId *string `type:"string"` // The maximum number of shard objects to return. The upper limit is 100. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // The Amazon Resource Name (ARN) for the stream. - StreamArn *string `min:"37" type:"string" required:"true"` + StreamArn *string `type:"string" required:"true"` + + metadataDescribeStreamInput `json:"-" xml:"-"` +} + +type metadataDescribeStreamInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -172,37 +176,19 @@ func (s DescribeStreamInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStreamInput"} - if s.ExclusiveStartShardId != nil && len(*s.ExclusiveStartShardId) < 28 { - invalidParams.Add(request.NewErrParamMinLen("ExclusiveStartShardId", 28)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.StreamArn == nil { - invalidParams.Add(request.NewErrParamRequired("StreamArn")) - } - if s.StreamArn != nil && len(*s.StreamArn) < 37 { - invalidParams.Add(request.NewErrParamMinLen("StreamArn", 37)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DescribeStream operation. type DescribeStreamOutput struct { - _ struct{} `type:"structure"` - // A complete description of the stream, including its creation date and time, // the DynamoDB table associated with the stream, the shard IDs within the stream, // and the beginning and ending sequence numbers of stream records within the // shards. StreamDescription *StreamDescription `type:"structure"` + + metadataDescribeStreamOutput `json:"-" xml:"-"` +} + +type metadataDescribeStreamOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -217,15 +203,19 @@ func (s DescribeStreamOutput) GoString() string { // Represents the input of a GetRecords operation. type GetRecordsInput struct { - _ struct{} `type:"structure"` - // The maximum number of records to return from the shard. The upper limit is // 1000. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // A shard iterator that was retrieved from a previous GetShardIterator operation. // This iterator can be used to access the stream records in this shard. - ShardIterator *string `min:"1" type:"string" required:"true"` + ShardIterator *string `type:"string" required:"true"` + + metadataGetRecordsInput `json:"-" xml:"-"` +} + +type metadataGetRecordsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -238,36 +228,21 @@ func (s GetRecordsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRecordsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRecordsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.ShardIterator == nil { - invalidParams.Add(request.NewErrParamRequired("ShardIterator")) - } - if s.ShardIterator != nil && len(*s.ShardIterator) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ShardIterator", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a GetRecords operation. type GetRecordsOutput struct { - _ struct{} `type:"structure"` - // The next position in the shard from which to start sequentially reading stream // records. If set to null, the shard has been closed and the requested iterator // will not return any more data. - NextShardIterator *string `min:"1" type:"string"` + NextShardIterator *string `type:"string"` // The stream records from the shard, which were retrieved using the shard iterator. Records []*Record `type:"list"` + + metadataGetRecordsOutput `json:"-" xml:"-"` +} + +type metadataGetRecordsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -282,14 +257,12 @@ func (s GetRecordsOutput) GoString() string { // Represents the input of a GetShardIterator operation. type GetShardIteratorInput struct { - _ struct{} `type:"structure"` - // The sequence number of a stream record in the shard from which to start reading. - SequenceNumber *string `min:"21" type:"string"` + SequenceNumber *string `type:"string"` // The identifier of the shard. The iterator will be returned for this shard // ID. - ShardId *string `min:"28" type:"string" required:"true"` + ShardId *string `type:"string" required:"true"` // Determines how the shard iterator is used to start reading stream records // from the shard: @@ -310,7 +283,13 @@ type GetShardIteratorInput struct { ShardIteratorType *string `type:"string" required:"true" enum:"ShardIteratorType"` // The Amazon Resource Name (ARN) for the stream. - StreamArn *string `min:"37" type:"string" required:"true"` + StreamArn *string `type:"string" required:"true"` + + metadataGetShardIteratorInput `json:"-" xml:"-"` +} + +type metadataGetShardIteratorInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -323,42 +302,18 @@ func (s GetShardIteratorInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetShardIteratorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetShardIteratorInput"} - if s.SequenceNumber != nil && len(*s.SequenceNumber) < 21 { - invalidParams.Add(request.NewErrParamMinLen("SequenceNumber", 21)) - } - if s.ShardId == nil { - invalidParams.Add(request.NewErrParamRequired("ShardId")) - } - if s.ShardId != nil && len(*s.ShardId) < 28 { - invalidParams.Add(request.NewErrParamMinLen("ShardId", 28)) - } - if s.ShardIteratorType == nil { - invalidParams.Add(request.NewErrParamRequired("ShardIteratorType")) - } - if s.StreamArn == nil { - invalidParams.Add(request.NewErrParamRequired("StreamArn")) - } - if s.StreamArn != nil && len(*s.StreamArn) < 37 { - invalidParams.Add(request.NewErrParamMinLen("StreamArn", 37)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a GetShardIterator operation. type GetShardIteratorOutput struct { - _ struct{} `type:"structure"` - // The position in the shard from which to start reading stream records sequentially. // A shard iterator specifies this position using the sequence number of a stream // record in a shard. - ShardIterator *string `min:"1" type:"string"` + ShardIterator *string `type:"string"` + + metadataGetShardIteratorOutput `json:"-" xml:"-"` +} + +type metadataGetShardIteratorOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -373,19 +328,23 @@ func (s GetShardIteratorOutput) GoString() string { // Represents the input of a ListStreams operation. type ListStreamsInput struct { - _ struct{} `type:"structure"` - // The ARN (Amazon Resource Name) of the first item that this operation will // evaluate. Use the value that was returned for LastEvaluatedStreamArn in the // previous operation. - ExclusiveStartStreamArn *string `min:"37" type:"string"` + ExclusiveStartStreamArn *string `type:"string"` // The maximum number of streams to return. The upper limit is 100. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // If this parameter is provided, then only the streams associated with this // table name are returned. - TableName *string `min:"3" type:"string"` + TableName *string `type:"string"` + + metadataListStreamsInput `json:"-" xml:"-"` +} + +type metadataListStreamsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -398,29 +357,8 @@ func (s ListStreamsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListStreamsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListStreamsInput"} - if s.ExclusiveStartStreamArn != nil && len(*s.ExclusiveStartStreamArn) < 37 { - invalidParams.Add(request.NewErrParamMinLen("ExclusiveStartStreamArn", 37)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a ListStreams operation. type ListStreamsOutput struct { - _ struct{} `type:"structure"` - // The stream ARN of the item where the operation stopped, inclusive of the // previous result set. Use this value to start a new operation, excluding this // value in the new request. @@ -431,10 +369,16 @@ type ListStreamsOutput struct { // If LastEvaluatedStreamArn is not empty, it does not necessarily mean that // there is more data in the result set. The only way to know when you have // reached the end of the result set is when LastEvaluatedStreamArn is empty. - LastEvaluatedStreamArn *string `min:"37" type:"string"` + LastEvaluatedStreamArn *string `type:"string"` // A list of stream descriptors associated with the current account and endpoint. Streams []*Stream `type:"list"` + + metadataListStreamsOutput `json:"-" xml:"-"` +} + +type metadataListStreamsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -449,8 +393,6 @@ func (s ListStreamsOutput) GoString() string { // A description of a unique event within a stream. type Record struct { - _ struct{} `type:"structure"` - // The region in which the GetRecords request was received. AwsRegion *string `locationName:"awsRegion" type:"string"` @@ -477,6 +419,12 @@ type Record struct { // The version number of the stream record format. Currently, this is 1.0. EventVersion *string `locationName:"eventVersion" type:"string"` + + metadataRecord `json:"-" xml:"-"` +} + +type metadataRecord struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -492,13 +440,17 @@ func (s Record) GoString() string { // The beginning and ending sequence numbers for the stream records contained // within a shard. type SequenceNumberRange struct { - _ struct{} `type:"structure"` - // The last sequence number. - EndingSequenceNumber *string `min:"21" type:"string"` + EndingSequenceNumber *string `type:"string"` // The first sequence number. - StartingSequenceNumber *string `min:"21" type:"string"` + StartingSequenceNumber *string `type:"string"` + + metadataSequenceNumberRange `json:"-" xml:"-"` +} + +type metadataSequenceNumberRange struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -513,16 +465,20 @@ func (s SequenceNumberRange) GoString() string { // A uniquely identified group of stream records within a stream. type Shard struct { - _ struct{} `type:"structure"` - // The shard ID of the current shard's parent. - ParentShardId *string `min:"28" type:"string"` + ParentShardId *string `type:"string"` // The range of possible sequence numbers for the shard. SequenceNumberRange *SequenceNumberRange `type:"structure"` // The system-generated identifier for this shard. - ShardId *string `min:"28" type:"string"` + ShardId *string `type:"string"` + + metadataShard `json:"-" xml:"-"` +} + +type metadataShard struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -537,10 +493,8 @@ func (s Shard) GoString() string { // Represents all of the data describing a particular stream. type Stream struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) for the stream. - StreamArn *string `min:"37" type:"string"` + StreamArn *string `type:"string"` // A timestamp, in ISO 8601 format, for this stream. // @@ -557,7 +511,13 @@ type Stream struct { StreamLabel *string `type:"string"` // The DynamoDB table with which the stream is associated. - TableName *string `min:"3" type:"string"` + TableName *string `type:"string"` + + metadataStream `json:"-" xml:"-"` +} + +type metadataStream struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -572,13 +532,11 @@ func (s Stream) GoString() string { // Represents all of the data describing a particular stream. type StreamDescription struct { - _ struct{} `type:"structure"` - // The date and time when the request to create this stream was issued. CreationRequestDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` // The key attribute(s) of the stream's DynamoDB table. - KeySchema []*dynamodb.KeySchemaElement `min:"1" type:"list"` + KeySchema []*dynamodb.KeySchemaElement `type:"list"` // The shard ID of the item where the operation stopped, inclusive of the previous // result set. Use this value to start a new operation, excluding this value @@ -590,13 +548,13 @@ type StreamDescription struct { // If LastEvaluatedShardId is not empty, it does not necessarily mean that // there is more data in the result set. The only way to know when you have // reached the end of the result set is when LastEvaluatedShardId is empty. - LastEvaluatedShardId *string `min:"28" type:"string"` + LastEvaluatedShardId *string `type:"string"` // The shards that comprise the stream. Shards []*Shard `type:"list"` // The Amazon Resource Name (ARN) for the stream. - StreamArn *string `min:"37" type:"string"` + StreamArn *string `type:"string"` // A timestamp, in ISO 8601 format, for this stream. // @@ -638,7 +596,13 @@ type StreamDescription struct { StreamViewType *string `type:"string" enum:"StreamViewType"` // The DynamoDB table with which the stream is associated. - TableName *string `min:"3" type:"string"` + TableName *string `type:"string"` + + metadataStreamDescription `json:"-" xml:"-"` +} + +type metadataStreamDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -654,8 +618,6 @@ func (s StreamDescription) GoString() string { // A description of a single data modification that was performed on an item // in a DynamoDB table. type StreamRecord struct { - _ struct{} `type:"structure"` - // The primary key attribute(s) for the DynamoDB item that was modified. Keys map[string]*dynamodb.AttributeValue `type:"map"` @@ -666,10 +628,10 @@ type StreamRecord struct { OldImage map[string]*dynamodb.AttributeValue `type:"map"` // The sequence number of the stream record. - SequenceNumber *string `min:"21" type:"string"` + SequenceNumber *string `type:"string"` // The size of the stream record, in bytes. - SizeBytes *int64 `min:"1" type:"long"` + SizeBytes *int64 `type:"long"` // The type of data from the modified DynamoDB item that was captured in this // stream record: @@ -682,6 +644,12 @@ type StreamRecord struct { // // NEW_AND_OLD_IMAGES — both the new and the old item images of the item. StreamViewType *string `type:"string" enum:"StreamViewType"` + + metadataStreamRecord `json:"-" xml:"-"` +} + +type metadataStreamRecord struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go index 6283cee18..36118636e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface.go @@ -26,5 +26,3 @@ type DynamoDBStreamsAPI interface { ListStreams(*dynamodbstreams.ListStreamsInput) (*dynamodbstreams.ListStreamsOutput, error) } - -var _ DynamoDBStreamsAPI = (*dynamodbstreams.DynamoDBStreams)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface_test.go new file mode 100644 index 000000000..73f87ab89 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package dynamodbstreamsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/dynamodbstreams" + "github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*dynamodbstreamsiface.DynamoDBStreamsAPI)(nil), dynamodbstreams.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go index 73c4ef2e2..c9a2f0b71 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dynamodbstreams" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleDynamoDBStreams_DescribeStream() { - svc := dynamodbstreams.New(session.New()) + svc := dynamodbstreams.New(nil) params := &dynamodbstreams.DescribeStreamInput{ StreamArn: aws.String("StreamArn"), // Required @@ -37,7 +36,7 @@ func ExampleDynamoDBStreams_DescribeStream() { } func ExampleDynamoDBStreams_GetRecords() { - svc := dynamodbstreams.New(session.New()) + svc := dynamodbstreams.New(nil) params := &dynamodbstreams.GetRecordsInput{ ShardIterator: aws.String("ShardIterator"), // Required @@ -57,7 +56,7 @@ func ExampleDynamoDBStreams_GetRecords() { } func ExampleDynamoDBStreams_GetShardIterator() { - svc := dynamodbstreams.New(session.New()) + svc := dynamodbstreams.New(nil) params := &dynamodbstreams.GetShardIteratorInput{ ShardId: aws.String("ShardId"), // Required @@ -79,7 +78,7 @@ func ExampleDynamoDBStreams_GetShardIterator() { } func ExampleDynamoDBStreams_ListStreams() { - svc := dynamodbstreams.New(session.New()) + svc := dynamodbstreams.New(nil) params := &dynamodbstreams.ListStreamsInput{ ExclusiveStartStreamArn: aws.String("StreamArn"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go index 555076013..c1826064d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go @@ -4,11 +4,12 @@ package dynamodbstreams import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // This is the Amazon DynamoDB Streams API Reference. This guide describes the @@ -35,67 +36,43 @@ import ( // // ListStreams - Returns a list of all the streams associated with the current // AWS account and endpoint. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type DynamoDBStreams struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "streams.dynamodb" - -// New creates a new instance of the DynamoDBStreams client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a DynamoDBStreams client from just a session. -// svc := dynamodbstreams.New(mySession) -// -// // Create a DynamoDBStreams client with additional configuration -// svc := dynamodbstreams.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *DynamoDBStreams { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *DynamoDBStreams { - svc := &DynamoDBStreams{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningName: "dynamodb", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2012-08-10", - JSONVersion: "1.0", - TargetPrefix: "DynamoDBStreams_20120810", - }, - handlers, - ), +// New returns a new DynamoDBStreams client. +func New(config *aws.Config) *DynamoDBStreams { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "streams.dynamodb", + SigningName: "dynamodb", + APIVersion: "2012-08-10", + JSONVersion: "1.0", + TargetPrefix: "DynamoDBStreams_20120810", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &DynamoDBStreams{service} } // newRequest creates a new request for a DynamoDBStreams operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go index be2dd62c1..7bd88cb5c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go @@ -4,13 +4,10 @@ package ec2 import ( - "fmt" "time" "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/private/protocol/ec2query" ) const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection" @@ -74,35 +71,6 @@ func (c *EC2) AllocateAddress(input *AllocateAddressInput) (*AllocateAddressOutp return out, err } -const opAllocateHosts = "AllocateHosts" - -// AllocateHostsRequest generates a request for the AllocateHosts operation. -func (c *EC2) AllocateHostsRequest(input *AllocateHostsInput) (req *request.Request, output *AllocateHostsOutput) { - op := &request.Operation{ - Name: opAllocateHosts, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AllocateHostsInput{} - } - - req = c.newRequest(op, input, output) - output = &AllocateHostsOutput{} - req.Data = output - return -} - -// Allocates a Dedicated host to your account. At minimum you need to specify -// the instance size type, Availability Zone, and quantity of hosts you want -// to allocate. -func (c *EC2) AllocateHosts(input *AllocateHostsInput) (*AllocateHostsOutput, error) { - req, out := c.AllocateHostsRequest(input) - err := req.Send() - return out, err -} - const opAssignPrivateIpAddresses = "AssignPrivateIpAddresses" // AssignPrivateIpAddressesRequest generates a request for the AssignPrivateIpAddresses operation. @@ -118,8 +86,6 @@ func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AssignPrivateIpAddressesOutput{} req.Data = output return @@ -200,8 +166,6 @@ func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AssociateDhcpOptionsOutput{} req.Data = output return @@ -312,8 +276,6 @@ func (c *EC2) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AttachInternetGatewayOutput{} req.Data = output return @@ -390,18 +352,12 @@ func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Reques // // If a volume has an AWS Marketplace product code: // -// The volume can be attached only to a stopped instance. -// -// AWS Marketplace product codes are copied from the volume to the instance. -// -// You must be subscribed to the product. -// -// The instance type and operating system of the instance must support the -// product. For example, you can't detach a volume from a Windows instance and -// attach it to a Linux instance. -// -// For an overview of the AWS Marketplace, see Introducing AWS Marketplace -// (https://aws.amazon.com/marketplace/help/200900000). +// The volume can be attached only to a stopped instance. AWS Marketplace +// product codes are copied from the volume to the instance. You must be subscribed +// to the product. The instance type and operating system of the instance must +// support the product. For example, you can't detach a volume from a Windows +// instance and attach it to a Linux instance. For an overview of the AWS Marketplace, +// see Introducing AWS Marketplace (https://aws.amazon.com/marketplace/help/200900000). // // For more information about EBS volumes, see Attaching Amazon EBS Volumes // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html) @@ -456,25 +412,25 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AuthorizeSecurityGroupEgressOutput{} req.Data = output return } -// [EC2-VPC only] Adds one or more egress rules to a security group for use -// with a VPC. Specifically, this action permits instances to send traffic to -// one or more destination CIDR IP address ranges, or to one or more destination -// security groups for the same VPC. This action doesn't apply to security groups -// for use in EC2-Classic. For more information, see Security Groups for Your -// VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) -// in the Amazon Virtual Private Cloud User Guide. +// Adds one or more egress rules to a security group for use with a VPC. Specifically, +// this action permits instances to send traffic to one or more destination +// CIDR IP address ranges, or to one or more destination security groups for +// the same VPC. // // You can have up to 50 rules per security group (covering both ingress and // egress rules). // -// Each rule consists of the protocol (for example, TCP), plus either a CIDR +// A security group is for use with instances either in the EC2-Classic platform +// or in a specific VPC. This action doesn't apply to security groups for use +// in EC2-Classic. For more information, see Security Groups for Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) +// in the Amazon Virtual Private Cloud User Guide. +// +// Each rule consists of the protocol (for example, TCP), plus either a CIDR // range or a source group. For the TCP and UDP protocols, you must also specify // the destination port or port range. For the ICMP protocol, you must also // specify the ICMP type and code. You can use -1 for the type or code to mean @@ -503,8 +459,6 @@ func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroup } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AuthorizeSecurityGroupIngressOutput{} req.Data = output return @@ -613,8 +567,6 @@ func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CancelConversionTaskOutput{} req.Data = output return @@ -650,8 +602,6 @@ func (c *EC2) CancelExportTaskRequest(input *CancelExportTaskInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CancelExportTaskOutput{} req.Data = output return @@ -746,13 +696,6 @@ func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput } // Cancels the specified Spot fleet requests. -// -// After you cancel a Spot fleet request, the Spot fleet launches no new Spot -// instances. You must specify whether the Spot fleet should also terminate -// its Spot instances. If you terminate the instances, the Spot fleet request -// enters the cancelled_terminating state. Otherwise, the Spot fleet request -// enters the cancelled_running state and the instances continue to run until -// they are interrupted or you terminate them manually. func (c *EC2) CancelSpotFleetRequests(input *CancelSpotFleetRequestsInput) (*CancelSpotFleetRequestsOutput, error) { req, out := c.CancelSpotFleetRequestsRequest(input) err := req.Send() @@ -779,14 +722,14 @@ func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequest return } -// Cancels one or more Spot instance requests. Spot instances are instances +// Cancels one or more Spot Instance requests. Spot Instances are instances // that Amazon EC2 starts on your behalf when the bid price that you specify -// exceeds the current Spot price. Amazon EC2 periodically sets the Spot price -// based on available Spot instance capacity and current Spot instance requests. +// exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price +// based on available Spot Instance capacity and current Spot Instance requests. // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) // in the Amazon Elastic Compute Cloud User Guide. // -// Canceling a Spot instance request does not terminate running Spot instances +// Canceling a Spot Instance request does not terminate running Spot Instances // associated with the request. func (c *EC2) CancelSpotInstanceRequests(input *CancelSpotInstanceRequestsInput) (*CancelSpotInstanceRequestsOutput, error) { req, out := c.CancelSpotInstanceRequestsRequest(input) @@ -846,7 +789,8 @@ func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, out // Initiates the copy of an AMI from the specified source region to the current // region. You specify the destination region by using its endpoint when making -// the request. +// the request. AMIs that use encrypted EBS snapshots cannot be copied with +// this method. // // For more information, see Copying AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -920,7 +864,7 @@ func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (r // gateway is the appliance at your end of the VPN connection. (The device on // the AWS side of the VPN connection is the virtual private gateway.) You must // provide the Internet-routable IP address of the customer gateway's external -// interface. The IP address must be static and may be behind a device performing +// interface. The IP address must be static and can't be behind a device performing // network address translation (NAT). // // For devices that use Border Gateway Protocol (BGP), you can also provide @@ -973,36 +917,28 @@ func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *requ // individual DHCP options you can specify. For more information about the options, // see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt). // -// domain-name-servers - The IP addresses of up to four domain name servers, +// domain-name-servers - The IP addresses of up to four domain name servers, // or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. // If specifying more than one domain name server, specify the IP addresses -// in a single parameter, separated by commas. -// -// domain-name - If you're using AmazonProvidedDNS in "us-east-1", specify -// "ec2.internal". If you're using AmazonProvidedDNS in another region, specify -// "region.compute.internal" (for example, "ap-northeast-1.compute.internal"). -// Otherwise, specify a domain name (for example, "MyCompany.com"). Important: +// in a single parameter, separated by commas. domain-name - If you're using +// AmazonProvidedDNS in us-east-1, specify ec2.internal. If you're using AmazonProvidedDNS +// in another region, specify region.compute.internal (for example, ap-northeast-1.compute.internal). +// Otherwise, specify a domain name (for example, MyCompany.com). Important: // Some Linux operating systems accept multiple domain names separated by spaces. // However, Windows and other Linux operating systems treat the value as a single // domain, which results in unexpected behavior. If your DHCP options set is // associated with a VPC that has instances with multiple operating systems, -// specify only one domain name. -// -// ntp-servers - The IP addresses of up to four Network Time Protocol (NTP) -// servers. -// -// netbios-name-servers - The IP addresses of up to four NetBIOS name servers. -// -// netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend -// that you specify 2 (broadcast and multicast are not currently supported). -// For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt). -// -// Your VPC automatically starts out with a set of DHCP options that includes -// only a DNS server that we provide (AmazonProvidedDNS). If you create a set -// of options, and if your VPC has an Internet gateway, make sure to set the -// domain-name-servers option either to AmazonProvidedDNS or to a domain name -// server of your choice. For more information about DHCP options, see DHCP -// Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html) +// specify only one domain name. ntp-servers - The IP addresses of up to four +// Network Time Protocol (NTP) servers. netbios-name-servers - The IP addresses +// of up to four NetBIOS name servers. netbios-node-type - The NetBIOS node +// type (1, 2, 4, or 8). We recommend that you specify 2 (broadcast and multicast +// are not currently supported). For more information about these node types, +// see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt). Your VPC automatically +// starts out with a set of DHCP options that includes only a DNS server that +// we provide (AmazonProvidedDNS). If you create a set of options, and if your +// VPC has an Internet gateway, make sure to set the domain-name-servers option +// either to AmazonProvidedDNS or to a domain name server of your choice. For +// more information about DHCP options, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html) // in the Amazon Virtual Private Cloud User Guide. func (c *EC2) CreateDhcpOptions(input *CreateDhcpOptionsInput) (*CreateDhcpOptionsOutput, error) { req, out := c.CreateDhcpOptionsRequest(input) @@ -1183,38 +1119,6 @@ func (c *EC2) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, er return out, err } -const opCreateNatGateway = "CreateNatGateway" - -// CreateNatGatewayRequest generates a request for the CreateNatGateway operation. -func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *request.Request, output *CreateNatGatewayOutput) { - op := &request.Operation{ - Name: opCreateNatGateway, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateNatGatewayInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateNatGatewayOutput{} - req.Data = output - return -} - -// Creates a NAT gateway in the specified subnet. A NAT gateway can be used -// to enable instances in a private subnet to connect to the Internet. This -// action creates a network interface in the specified subnet with a private -// IP address from the IP address range of the subnet. For more information, -// see NAT Gateways (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html) -// in the Amazon Virtual Private Cloud User Guide. -func (c *EC2) CreateNatGateway(input *CreateNatGatewayInput) (*CreateNatGatewayOutput, error) { - req, out := c.CreateNatGatewayRequest(input) - err := req.Send() - return out, err -} - const opCreateNetworkAcl = "CreateNetworkAcl" // CreateNetworkAclRequest generates a request for the CreateNetworkAcl operation. @@ -1261,8 +1165,6 @@ func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateNetworkAclEntryOutput{} req.Data = output return @@ -1337,8 +1239,6 @@ func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreatePlacementGroupOutput{} req.Data = output return @@ -1425,8 +1325,7 @@ func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, // Creates a route in a route table within a VPC. // // You must specify one of the following targets: Internet gateway or virtual -// private gateway, NAT instance, NAT gateway, VPC peering connection, or network -// interface. +// private gateway, NAT instance, VPC peering connection, or network interface. // // When determining how to route traffic, we use the route with the most specific // match. For example, let's say the traffic is destined for 192.0.2.3, and @@ -1510,7 +1409,7 @@ func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req * // // EC2-Classic: You can have up to 500 security groups. // -// EC2-VPC: You can create up to 500 security groups per VPC. +// EC2-VPC: You can create up to 100 security groups per VPC. // // When you create a security group, you specify a friendly name of your choice. // You can have a security group for use in EC2-Classic with the same name as @@ -1606,7 +1505,7 @@ func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSub return } -// Creates a data feed for Spot instances, enabling you to view Spot instance +// Creates a data feed for Spot Instances, enabling you to view Spot Instance // usage logs. You can create one data feed per AWS account. For more information, // see Spot Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -1682,8 +1581,6 @@ func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateTagsOutput{} req.Data = output return @@ -1694,9 +1591,6 @@ func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o // of a key and optional value. Tag keys must be unique per resource. // // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) -// in the Amazon Elastic Compute Cloud User Guide. For more information about -// creating IAM policies that control users' access to resources based on tags, -// see Supported Resource-Level Permissions for Amazon EC2 API Actions (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-iam-actions-resources.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *EC2) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) @@ -1777,11 +1671,6 @@ func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, out // which includes only a default DNS server that we provide (AmazonProvidedDNS). // For more information about DHCP options, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html) // in the Amazon Virtual Private Cloud User Guide. -// -// You can specify the instance tenancy value for the VPC when you create it. -// You can't change this value for the VPC after you create it. For more information, -// see Dedicated Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/dedicated-instance.html.html) -// in the Amazon Virtual Private Cloud User Guide. func (c *EC2) CreateVpc(input *CreateVpcInput) (*CreateVpcOutput, error) { req, out := c.CreateVpcRequest(input) err := req.Send() @@ -1892,9 +1781,6 @@ func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req * // create a new VPN connection, you must reconfigure your customer gateway with // the new information returned from this call. // -// This is an idempotent operation. If you perform the operation more than -// once, Amazon EC2 doesn't return an error. -// // For more information about VPN connections, see Adding a Hardware Virtual // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. @@ -1919,8 +1805,6 @@ func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateVpnConnectionRouteOutput{} req.Data = output return @@ -1988,8 +1872,6 @@ func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteCustomerGatewayOutput{} req.Data = output return @@ -2018,8 +1900,6 @@ func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteDhcpOptionsOutput{} req.Data = output return @@ -2077,8 +1957,6 @@ func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteInternetGatewayOutput{} req.Data = output return @@ -2107,8 +1985,6 @@ func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteKeyPairOutput{} req.Data = output return @@ -2121,35 +1997,6 @@ func (c *EC2) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, er return out, err } -const opDeleteNatGateway = "DeleteNatGateway" - -// DeleteNatGatewayRequest generates a request for the DeleteNatGateway operation. -func (c *EC2) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) (req *request.Request, output *DeleteNatGatewayOutput) { - op := &request.Operation{ - Name: opDeleteNatGateway, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteNatGatewayInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteNatGatewayOutput{} - req.Data = output - return -} - -// Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its -// Elastic IP address, but does not release the address from your account. Deleting -// a NAT gateway does not delete any NAT gateway routes in your route tables. -func (c *EC2) DeleteNatGateway(input *DeleteNatGatewayInput) (*DeleteNatGatewayOutput, error) { - req, out := c.DeleteNatGatewayRequest(input) - err := req.Send() - return out, err -} - const opDeleteNetworkAcl = "DeleteNetworkAcl" // DeleteNetworkAclRequest generates a request for the DeleteNetworkAcl operation. @@ -2165,8 +2012,6 @@ func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteNetworkAclOutput{} req.Data = output return @@ -2195,8 +2040,6 @@ func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteNetworkAclEntryOutput{} req.Data = output return @@ -2225,8 +2068,6 @@ func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteNetworkInterfaceOutput{} req.Data = output return @@ -2255,8 +2096,6 @@ func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeletePlacementGroupOutput{} req.Data = output return @@ -2287,8 +2126,6 @@ func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteRouteOutput{} req.Data = output return @@ -2316,8 +2153,6 @@ func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteRouteTableOutput{} req.Data = output return @@ -2347,8 +2182,6 @@ func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req * } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteSecurityGroupOutput{} req.Data = output return @@ -2380,8 +2213,6 @@ func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteSnapshotOutput{} req.Data = output return @@ -2423,14 +2254,14 @@ func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSub } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteSpotDatafeedSubscriptionOutput{} req.Data = output return } -// Deletes the data feed for Spot instances. +// Deletes the data feed for Spot Instances. For more information, see Spot +// Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) +// in the Amazon Elastic Compute Cloud User Guide. func (c *EC2) DeleteSpotDatafeedSubscription(input *DeleteSpotDatafeedSubscriptionInput) (*DeleteSpotDatafeedSubscriptionOutput, error) { req, out := c.DeleteSpotDatafeedSubscriptionRequest(input) err := req.Send() @@ -2452,8 +2283,6 @@ func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteSubnetOutput{} req.Data = output return @@ -2482,8 +2311,6 @@ func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteTagsOutput{} req.Data = output return @@ -2515,8 +2342,6 @@ func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteVolumeOutput{} req.Data = output return @@ -2550,8 +2375,6 @@ func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, out } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteVpcOutput{} req.Data = output return @@ -2641,8 +2464,6 @@ func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req * } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteVpnConnectionOutput{} req.Data = output return @@ -2679,8 +2500,6 @@ func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteVpnConnectionRouteOutput{} req.Data = output return @@ -2711,8 +2530,6 @@ func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteVpnGatewayOutput{} req.Data = output return @@ -2744,8 +2561,6 @@ func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request. } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeregisterImageOutput{} req.Data = output return @@ -2956,9 +2771,6 @@ func (c *EC2) DescribeConversionTasksRequest(input *DescribeConversionTasksInput // Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UploadingYourInstancesandVolumes.html) // in the Amazon Elastic Compute Cloud User Guide. -// -// For information about the import manifest referenced by this API action, -// see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). func (c *EC2) DescribeConversionTasks(input *DescribeConversionTasksInput) (*DescribeConversionTasksOutput, error) { req, out := c.DescribeConversionTasksRequest(input) err := req.Send() @@ -3082,78 +2894,6 @@ func (c *EC2) DescribeFlowLogs(input *DescribeFlowLogsInput) (*DescribeFlowLogsO return out, err } -const opDescribeHosts = "DescribeHosts" - -// DescribeHostsRequest generates a request for the DescribeHosts operation. -func (c *EC2) DescribeHostsRequest(input *DescribeHostsInput) (req *request.Request, output *DescribeHostsOutput) { - op := &request.Operation{ - Name: opDescribeHosts, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeHostsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeHostsOutput{} - req.Data = output - return -} - -// Describes one or more of your Dedicated hosts. -// -// The results describe only the Dedicated hosts in the region you're currently -// using. All listed instances consume capacity on your Dedicated host. Dedicated -// hosts that have recently been released will be listed with the state released. -func (c *EC2) DescribeHosts(input *DescribeHostsInput) (*DescribeHostsOutput, error) { - req, out := c.DescribeHostsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeIdFormat = "DescribeIdFormat" - -// DescribeIdFormatRequest generates a request for the DescribeIdFormat operation. -func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *request.Request, output *DescribeIdFormatOutput) { - op := &request.Operation{ - Name: opDescribeIdFormat, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeIdFormatInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeIdFormatOutput{} - req.Data = output - return -} - -// Describes the ID format settings for your resources on a per-region basis, -// for example, to view which resource types are enabled for longer IDs. This -// request only returns information about resource types whose ID formats can -// be modified; it does not return information about other resource types. -// -// The following resource types support longer IDs: instance | reservation -// | snapshot | volume. -// -// These settings apply to the IAM user who makes the request; they do not -// apply to the entire AWS account. By default, an IAM user defaults to the -// same settings as the root user, unless they explicitly override the settings -// by running the ModifyIdFormat command. Resources created with longer IDs -// are visible to all IAM users, regardless of these settings and provided that -// they have permission to use the relevant Describe command for the resource -// type. -func (c *EC2) DescribeIdFormat(input *DescribeIdFormatInput) (*DescribeIdFormatOutput, error) { - req, out := c.DescribeIdFormatRequest(input) - err := req.Send() - return out, err -} - const opDescribeImageAttribute = "DescribeImageAttribute" // DescribeImageAttributeRequest generates a request for the DescribeImageAttribute operation. @@ -3327,8 +3067,7 @@ func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) return } -// Describes the status of one or more instances. By default, only running instances -// are described, unless specified otherwise. +// Describes the status of one or more instances. // // Instance status includes the following components: // @@ -3338,7 +3077,7 @@ func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) // and Troubleshooting Instances with Failed Status Checks (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html) // in the Amazon Elastic Compute Cloud User Guide. // -// Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, +// Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, // or terminate) for your instances related to hardware issues, software updates, // or system maintenance. For more information, see Scheduled Events for Your // Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html) @@ -3356,7 +3095,6 @@ func (c *EC2) DescribeInstanceStatus(input *DescribeInstanceStatusInput) (*Descr func (c *EC2) DescribeInstanceStatusPages(input *DescribeInstanceStatusInput, fn func(p *DescribeInstanceStatusOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeInstanceStatusRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeInstanceStatusOutput), lastPage) }) @@ -3406,7 +3144,6 @@ func (c *EC2) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstanc func (c *EC2) DescribeInstancesPages(input *DescribeInstancesInput, fn func(p *DescribeInstancesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeInstancesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeInstancesOutput), lastPage) }) @@ -3498,33 +3235,6 @@ func (c *EC2) DescribeMovingAddresses(input *DescribeMovingAddressesInput) (*Des return out, err } -const opDescribeNatGateways = "DescribeNatGateways" - -// DescribeNatGatewaysRequest generates a request for the DescribeNatGateways operation. -func (c *EC2) DescribeNatGatewaysRequest(input *DescribeNatGatewaysInput) (req *request.Request, output *DescribeNatGatewaysOutput) { - op := &request.Operation{ - Name: opDescribeNatGateways, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeNatGatewaysInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeNatGatewaysOutput{} - req.Data = output - return -} - -// Describes one or more of the your NAT gateways. -func (c *EC2) DescribeNatGateways(input *DescribeNatGatewaysInput) (*DescribeNatGatewaysOutput, error) { - req, out := c.DescribeNatGatewaysRequest(input) - err := req.Send() - return out, err -} - const opDescribeNetworkAcls = "DescribeNetworkAcls" // DescribeNetworkAclsRequest generates a request for the DescribeNetworkAcls operation. @@ -3819,7 +3529,6 @@ func (c *EC2) DescribeReservedInstancesModifications(input *DescribeReservedInst func (c *EC2) DescribeReservedInstancesModificationsPages(input *DescribeReservedInstancesModificationsInput, fn func(p *DescribeReservedInstancesModificationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeReservedInstancesModificationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeReservedInstancesModificationsOutput), lastPage) }) @@ -3857,10 +3566,6 @@ func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedI // errors, and you pay a lower usage rate than the rate charged for On-Demand // instances for the actual time used. // -// If you have listed your own Reserved Instances for sale in the Reserved -// Instance Marketplace, they will be excluded from these results. This is to -// ensure that you do not purchase your own Reserved Instances. -// // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *EC2) DescribeReservedInstancesOfferings(input *DescribeReservedInstancesOfferingsInput) (*DescribeReservedInstancesOfferingsOutput, error) { @@ -3871,7 +3576,6 @@ func (c *EC2) DescribeReservedInstancesOfferings(input *DescribeReservedInstance func (c *EC2) DescribeReservedInstancesOfferingsPages(input *DescribeReservedInstancesOfferingsInput, fn func(p *DescribeReservedInstancesOfferingsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeReservedInstancesOfferingsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeReservedInstancesOfferingsOutput), lastPage) }) @@ -3912,96 +3616,6 @@ func (c *EC2) DescribeRouteTables(input *DescribeRouteTablesInput) (*DescribeRou return out, err } -const opDescribeScheduledInstanceAvailability = "DescribeScheduledInstanceAvailability" - -// DescribeScheduledInstanceAvailabilityRequest generates a request for the DescribeScheduledInstanceAvailability operation. -func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeScheduledInstanceAvailabilityInput) (req *request.Request, output *DescribeScheduledInstanceAvailabilityOutput) { - op := &request.Operation{ - Name: opDescribeScheduledInstanceAvailability, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeScheduledInstanceAvailabilityInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeScheduledInstanceAvailabilityOutput{} - req.Data = output - return -} - -// Finds available schedules that meet the specified criteria. -// -// You can search for an available schedule no more than 3 months in advance. -// You must meet the minimum required duration of 1,200 hours per year. For -// example, the minimum daily schedule is 4 hours, the minimum weekly schedule -// is 24 hours, and the minimum monthly schedule is 100 hours. -// -// After you find a schedule that meets your needs, call PurchaseScheduledInstances -// to purchase Scheduled Instances with that schedule. -func (c *EC2) DescribeScheduledInstanceAvailability(input *DescribeScheduledInstanceAvailabilityInput) (*DescribeScheduledInstanceAvailabilityOutput, error) { - req, out := c.DescribeScheduledInstanceAvailabilityRequest(input) - err := req.Send() - return out, err -} - -const opDescribeScheduledInstances = "DescribeScheduledInstances" - -// DescribeScheduledInstancesRequest generates a request for the DescribeScheduledInstances operation. -func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstancesInput) (req *request.Request, output *DescribeScheduledInstancesOutput) { - op := &request.Operation{ - Name: opDescribeScheduledInstances, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeScheduledInstancesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeScheduledInstancesOutput{} - req.Data = output - return -} - -// Describes one or more of your Scheduled Instances. -func (c *EC2) DescribeScheduledInstances(input *DescribeScheduledInstancesInput) (*DescribeScheduledInstancesOutput, error) { - req, out := c.DescribeScheduledInstancesRequest(input) - err := req.Send() - return out, err -} - -const opDescribeSecurityGroupReferences = "DescribeSecurityGroupReferences" - -// DescribeSecurityGroupReferencesRequest generates a request for the DescribeSecurityGroupReferences operation. -func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGroupReferencesInput) (req *request.Request, output *DescribeSecurityGroupReferencesOutput) { - op := &request.Operation{ - Name: opDescribeSecurityGroupReferences, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeSecurityGroupReferencesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeSecurityGroupReferencesOutput{} - req.Data = output - return -} - -// [EC2-VPC only] Describes the VPCs on the other side of a VPC peering connection -// that are referencing the security groups you've specified in this request. -func (c *EC2) DescribeSecurityGroupReferences(input *DescribeSecurityGroupReferencesInput) (*DescribeSecurityGroupReferencesOutput, error) { - req, out := c.DescribeSecurityGroupReferencesRequest(input) - err := req.Send() - return out, err -} - const opDescribeSecurityGroups = "DescribeSecurityGroups" // DescribeSecurityGroupsRequest generates a request for the DescribeSecurityGroups operation. @@ -4078,7 +3692,7 @@ func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *requ Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", + LimitToken: "", TruncationToken: "", }, } @@ -4102,18 +3716,12 @@ func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *requ // // public: The owner of the snapshot granted create volume permissions for // the snapshot to the all group. All AWS accounts have create volume permissions -// for these snapshots. -// -// explicit: The owner of the snapshot granted create volume permissions -// to a specific AWS account. -// -// implicit: An AWS account has implicit create volume permissions for all -// snapshots it owns. -// -// The list of snapshots returned can be modified by specifying snapshot -// IDs, snapshot owners, or AWS accounts with create volume permissions. If -// no options are specified, Amazon EC2 returns all snapshots for which you -// have create volume permissions. +// for these snapshots. explicit: The owner of the snapshot granted create +// volume permissions to a specific AWS account. implicit: An AWS account has +// implicit create volume permissions for all snapshots it owns. The list of +// snapshots returned can be modified by specifying snapshot IDs, snapshot owners, +// or AWS accounts with create volume permissions. If no options are specified, +// Amazon EC2 returns all snapshots for which you have create volume permissions. // // If you specify one or more snapshot IDs, only snapshots that have the specified // IDs are returned. If you specify an invalid snapshot ID, an error is returned. @@ -4147,7 +3755,6 @@ func (c *EC2) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapsho func (c *EC2) DescribeSnapshotsPages(input *DescribeSnapshotsInput, fn func(p *DescribeSnapshotsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeSnapshotsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeSnapshotsOutput), lastPage) }) @@ -4173,7 +3780,7 @@ func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafee return } -// Describes the data feed for Spot instances. For more information, see Spot +// Describes the data feed for Spot Instances. For more information, see Spot // Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *EC2) DescribeSpotDatafeedSubscription(input *DescribeSpotDatafeedSubscriptionInput) (*DescribeSpotDatafeedSubscriptionOutput, error) { @@ -4288,15 +3895,15 @@ func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceReq return } -// Describes the Spot instance requests that belong to your account. Spot instances +// Describes the Spot Instance requests that belong to your account. Spot Instances // are instances that Amazon EC2 launches when the bid price that you specify -// exceeds the current Spot price. Amazon EC2 periodically sets the Spot price -// based on available Spot instance capacity and current Spot instance requests. +// exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price +// based on available Spot Instance capacity and current Spot Instance requests. // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) // in the Amazon Elastic Compute Cloud User Guide. // -// You can use DescribeSpotInstanceRequests to find a running Spot instance -// by examining the response. If the status of the Spot instance is fulfilled, +// You can use DescribeSpotInstanceRequests to find a running Spot Instance +// by examining the response. If the status of the Spot Instance is fulfilled, // the instance ID appears in the response and contains the identifier of the // instance. Alternatively, you can use DescribeInstances with a filter to look // for instances where the instance lifecycle is spot. @@ -4332,7 +3939,7 @@ func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInp return } -// Describes the Spot price history. The prices returned are listed in chronological +// Describes the Spot Price history. The prices returned are listed in chronological // order, from the oldest to the most recent, for up to the past 90 days. For // more information, see Spot Instance Pricing History (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -4349,42 +3956,11 @@ func (c *EC2) DescribeSpotPriceHistory(input *DescribeSpotPriceHistoryInput) (*D func (c *EC2) DescribeSpotPriceHistoryPages(input *DescribeSpotPriceHistoryInput, fn func(p *DescribeSpotPriceHistoryOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeSpotPriceHistoryRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeSpotPriceHistoryOutput), lastPage) }) } -const opDescribeStaleSecurityGroups = "DescribeStaleSecurityGroups" - -// DescribeStaleSecurityGroupsRequest generates a request for the DescribeStaleSecurityGroups operation. -func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGroupsInput) (req *request.Request, output *DescribeStaleSecurityGroupsOutput) { - op := &request.Operation{ - Name: opDescribeStaleSecurityGroups, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeStaleSecurityGroupsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeStaleSecurityGroupsOutput{} - req.Data = output - return -} - -// [EC2-VPC only] Describes the stale security group rules for security groups -// in a specified VPC. Rules are stale when they reference a deleted security -// group in a peer VPC, or a security group in a peer VPC for which the VPC -// peering connection has been deleted. -func (c *EC2) DescribeStaleSecurityGroups(input *DescribeStaleSecurityGroupsInput) (*DescribeStaleSecurityGroupsOutput, error) { - req, out := c.DescribeStaleSecurityGroupsRequest(input) - err := req.Send() - return out, err -} - const opDescribeSubnets = "DescribeSubnets" // DescribeSubnetsRequest generates a request for the DescribeSubnets operation. @@ -4423,12 +3999,6 @@ func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques Name: opDescribeTags, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { @@ -4451,14 +4021,6 @@ func (c *EC2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error return out, err } -func (c *EC2) DescribeTagsPages(input *DescribeTagsInput, fn func(p *DescribeTagsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.DescribeTagsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*DescribeTagsOutput), lastPage) - }) -} - const opDescribeVolumeAttribute = "DescribeVolumeAttribute" // DescribeVolumeAttributeRequest generates a request for the DescribeVolumeAttribute operation. @@ -4559,7 +4121,6 @@ func (c *EC2) DescribeVolumeStatus(input *DescribeVolumeStatusInput) (*DescribeV func (c *EC2) DescribeVolumeStatusPages(input *DescribeVolumeStatusInput, fn func(p *DescribeVolumeStatusOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeVolumeStatusRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeVolumeStatusOutput), lastPage) }) @@ -4610,7 +4171,6 @@ func (c *EC2) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutp func (c *EC2) DescribeVolumesPages(input *DescribeVolumesInput, fn func(p *DescribeVolumesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeVolumesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeVolumesOutput), lastPage) }) @@ -4671,39 +4231,6 @@ func (c *EC2) DescribeVpcClassicLink(input *DescribeVpcClassicLinkInput) (*Descr return out, err } -const opDescribeVpcClassicLinkDnsSupport = "DescribeVpcClassicLinkDnsSupport" - -// DescribeVpcClassicLinkDnsSupportRequest generates a request for the DescribeVpcClassicLinkDnsSupport operation. -func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicLinkDnsSupportInput) (req *request.Request, output *DescribeVpcClassicLinkDnsSupportOutput) { - op := &request.Operation{ - Name: opDescribeVpcClassicLinkDnsSupport, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeVpcClassicLinkDnsSupportInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeVpcClassicLinkDnsSupportOutput{} - req.Data = output - return -} - -// Describes the ClassicLink DNS support status of one or more VPCs. If enabled, -// the DNS hostname of a linked EC2-Classic instance resolves to its private -// IP address when addressed from an instance in the VPC to which it's linked. -// Similarly, the DNS hostname of an instance in a VPC resolves to its private -// IP address when addressed from a linked EC2-Classic instance. For more information -// about ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) -// in the Amazon Elastic Compute Cloud User Guide. -func (c *EC2) DescribeVpcClassicLinkDnsSupport(input *DescribeVpcClassicLinkDnsSupportInput) (*DescribeVpcClassicLinkDnsSupportOutput, error) { - req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input) - err := req.Send() - return out, err -} - const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices" // DescribeVpcEndpointServicesRequest generates a request for the DescribeVpcEndpointServices operation. @@ -4919,8 +4446,6 @@ func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DetachInternetGatewayOutput{} req.Data = output return @@ -4950,8 +4475,6 @@ func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DetachNetworkInterfaceOutput{} req.Data = output return @@ -5018,8 +4541,6 @@ func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DetachVpnGatewayOutput{} req.Data = output return @@ -5054,8 +4575,6 @@ func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagatio } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DisableVgwRoutePropagationOutput{} req.Data = output return @@ -5097,64 +4616,31 @@ func (c *EC2) DisableVpcClassicLink(input *DisableVpcClassicLinkInput) (*Disable return out, err } -const opDisableVpcClassicLinkDnsSupport = "DisableVpcClassicLinkDnsSupport" +const opDisassociateAddress = "DisassociateAddress" -// DisableVpcClassicLinkDnsSupportRequest generates a request for the DisableVpcClassicLinkDnsSupport operation. -func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLinkDnsSupportInput) (req *request.Request, output *DisableVpcClassicLinkDnsSupportOutput) { +// DisassociateAddressRequest generates a request for the DisassociateAddress operation. +func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req *request.Request, output *DisassociateAddressOutput) { op := &request.Operation{ - Name: opDisableVpcClassicLinkDnsSupport, + Name: opDisassociateAddress, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DisableVpcClassicLinkDnsSupportInput{} + input = &DisassociateAddressInput{} } req = c.newRequest(op, input, output) - output = &DisableVpcClassicLinkDnsSupportOutput{} + output = &DisassociateAddressOutput{} req.Data = output return } -// Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve -// to public IP addresses when addressed between a linked EC2-Classic instance -// and instances in the VPC to which it's linked. For more information about -// ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) -// in the Amazon Elastic Compute Cloud User Guide. -func (c *EC2) DisableVpcClassicLinkDnsSupport(input *DisableVpcClassicLinkDnsSupportInput) (*DisableVpcClassicLinkDnsSupportOutput, error) { - req, out := c.DisableVpcClassicLinkDnsSupportRequest(input) - err := req.Send() - return out, err -} - -const opDisassociateAddress = "DisassociateAddress" - -// DisassociateAddressRequest generates a request for the DisassociateAddress operation. -func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req *request.Request, output *DisassociateAddressOutput) { - op := &request.Operation{ - Name: opDisassociateAddress, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DisassociateAddressInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisassociateAddressOutput{} - req.Data = output - return -} - -// Disassociates an Elastic IP address from the instance or network interface -// it's associated with. -// -// An Elastic IP address is for use in either the EC2-Classic platform or in -// a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) +// Disassociates an Elastic IP address from the instance or network interface +// it's associated with. +// +// An Elastic IP address is for use in either the EC2-Classic platform or in +// a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. // // This is an idempotent operation. If you perform the operation more than @@ -5180,8 +4666,6 @@ func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DisassociateRouteTableOutput{} req.Data = output return @@ -5214,8 +4698,6 @@ func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationI } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &EnableVgwRoutePropagationOutput{} req.Data = output return @@ -5244,8 +4726,6 @@ func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &EnableVolumeIOOutput{} req.Data = output return @@ -5292,39 +4772,6 @@ func (c *EC2) EnableVpcClassicLink(input *EnableVpcClassicLinkInput) (*EnableVpc return out, err } -const opEnableVpcClassicLinkDnsSupport = "EnableVpcClassicLinkDnsSupport" - -// EnableVpcClassicLinkDnsSupportRequest generates a request for the EnableVpcClassicLinkDnsSupport operation. -func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkDnsSupportInput) (req *request.Request, output *EnableVpcClassicLinkDnsSupportOutput) { - op := &request.Operation{ - Name: opEnableVpcClassicLinkDnsSupport, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &EnableVpcClassicLinkDnsSupportInput{} - } - - req = c.newRequest(op, input, output) - output = &EnableVpcClassicLinkDnsSupportOutput{} - req.Data = output - return -} - -// Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, -// the DNS hostname of a linked EC2-Classic instance resolves to its private -// IP address when addressed from an instance in the VPC to which it's linked. -// Similarly, the DNS hostname of an instance in a VPC resolves to its private -// IP address when addressed from a linked EC2-Classic instance. For more information -// about ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) -// in the Amazon Elastic Compute Cloud User Guide. -func (c *EC2) EnableVpcClassicLinkDnsSupport(input *EnableVpcClassicLinkDnsSupportInput) (*EnableVpcClassicLinkDnsSupportOutput, error) { - req, out := c.EnableVpcClassicLinkDnsSupportRequest(input) - err := req.Send() - return out, err -} - const opGetConsoleOutput = "GetConsoleOutput" // GetConsoleOutputRequest generates a request for the GetConsoleOutput operation. @@ -5369,35 +4816,6 @@ func (c *EC2) GetConsoleOutput(input *GetConsoleOutputInput) (*GetConsoleOutputO return out, err } -const opGetConsoleScreenshot = "GetConsoleScreenshot" - -// GetConsoleScreenshotRequest generates a request for the GetConsoleScreenshot operation. -func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req *request.Request, output *GetConsoleScreenshotOutput) { - op := &request.Operation{ - Name: opGetConsoleScreenshot, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetConsoleScreenshotInput{} - } - - req = c.newRequest(op, input, output) - output = &GetConsoleScreenshotOutput{} - req.Data = output - return -} - -// Retrieve a JPG-format screenshot of a running instance to help with troubleshooting. -// -// The returned content is base64-encoded. -func (c *EC2) GetConsoleScreenshot(input *GetConsoleScreenshotInput) (*GetConsoleScreenshotOutput, error) { - req, out := c.GetConsoleScreenshotRequest(input) - err := req.Send() - return out, err -} - const opGetPasswordData = "GetPasswordData" // GetPasswordDataRequest generates a request for the GetPasswordData operation. @@ -5493,9 +4911,6 @@ func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Re // see Using the Command Line Tools to Import Your Virtual Machine to Amazon // EC2 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UploadingYourInstancesandVolumes.html) // in the Amazon Elastic Compute Cloud User Guide. -// -// For information about the import manifest referenced by this API action, -// see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). func (c *EC2) ImportInstance(input *ImportInstanceInput) (*ImportInstanceOutput, error) { req, out := c.ImportInstanceRequest(input) err := req.Send() @@ -5589,93 +5004,12 @@ func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Reques // see Using the Command Line Tools to Import Your Virtual Machine to Amazon // EC2 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UploadingYourInstancesandVolumes.html) // in the Amazon Elastic Compute Cloud User Guide. -// -// For information about the import manifest referenced by this API action, -// see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). func (c *EC2) ImportVolume(input *ImportVolumeInput) (*ImportVolumeOutput, error) { req, out := c.ImportVolumeRequest(input) err := req.Send() return out, err } -const opModifyHosts = "ModifyHosts" - -// ModifyHostsRequest generates a request for the ModifyHosts operation. -func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, output *ModifyHostsOutput) { - op := &request.Operation{ - Name: opModifyHosts, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyHostsInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifyHostsOutput{} - req.Data = output - return -} - -// Modify the auto-placement setting of a Dedicated host. When auto-placement -// is enabled, AWS will place instances that you launch with a tenancy of host, -// but without targeting a specific host ID, onto any available Dedicated host -// in your account which has auto-placement enabled. When auto-placement is -// disabled, you need to provide a host ID if you want the instance to launch -// onto a specific host. If no host ID is provided, the instance will be launched -// onto a suitable host which has auto-placement enabled. -func (c *EC2) ModifyHosts(input *ModifyHostsInput) (*ModifyHostsOutput, error) { - req, out := c.ModifyHostsRequest(input) - err := req.Send() - return out, err -} - -const opModifyIdFormat = "ModifyIdFormat" - -// ModifyIdFormatRequest generates a request for the ModifyIdFormat operation. -func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Request, output *ModifyIdFormatOutput) { - op := &request.Operation{ - Name: opModifyIdFormat, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyIdFormatInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ModifyIdFormatOutput{} - req.Data = output - return -} - -// Modifies the ID format for the specified resource on a per-region basis. -// You can specify that resources should receive longer IDs (17-character IDs) -// when they are created. The following resource types support longer IDs: instance -// | reservation | snapshot | volume. -// -// This setting applies to the IAM user who makes the request; it does not -// apply to the entire AWS account. By default, an IAM user defaults to the -// same settings as the root user. If you're using this action as the root user -// or as an IAM role that has permission to use this action, then these settings -// apply to the entire account, unless an IAM user explicitly overrides these -// settings for themselves. For more information, see Controlling Access to -// Longer ID Settings (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html#resource-ids-access) -// in the Amazon Elastic Compute Cloud User Guide. -// -// Resources created with longer IDs are visible to all IAM users, regardless -// of these settings and provided that they have permission to use the relevant -// Describe command for the resource type. -func (c *EC2) ModifyIdFormat(input *ModifyIdFormatInput) (*ModifyIdFormatOutput, error) { - req, out := c.ModifyIdFormatRequest(input) - err := req.Send() - return out, err -} - const opModifyImageAttribute = "ModifyImageAttribute" // ModifyImageAttributeRequest generates a request for the ModifyImageAttribute operation. @@ -5691,8 +5025,6 @@ func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ModifyImageAttributeOutput{} req.Data = output return @@ -5724,8 +5056,6 @@ func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ModifyInstanceAttributeOutput{} req.Data = output return @@ -5743,51 +5073,6 @@ func (c *EC2) ModifyInstanceAttribute(input *ModifyInstanceAttributeInput) (*Mod return out, err } -const opModifyInstancePlacement = "ModifyInstancePlacement" - -// ModifyInstancePlacementRequest generates a request for the ModifyInstancePlacement operation. -func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput) (req *request.Request, output *ModifyInstancePlacementOutput) { - op := &request.Operation{ - Name: opModifyInstancePlacement, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyInstancePlacementInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifyInstancePlacementOutput{} - req.Data = output - return -} - -// Set the instance affinity value for a specific stopped instance and modify -// the instance tenancy setting. -// -// Instance affinity is disabled by default. When instance affinity is host -// and it is not associated with a specific Dedicated host, the next time it -// is launched it will automatically be associated with the host it lands on. -// This relationship will persist if the instance is stopped/started, or rebooted. -// -// You can modify the host ID associated with a stopped instance. If a stopped -// instance has a new host ID association, the instance will target that host -// when restarted. -// -// You can modify the tenancy of a stopped instance with a tenancy of host -// or dedicated. -// -// Affinity, hostID, and tenancy are not required parameters, but at least -// one of them must be specified in the request. Affinity and tenancy can be -// modified in the same request, but tenancy can only be modified on instances -// that are stopped. -func (c *EC2) ModifyInstancePlacement(input *ModifyInstancePlacementInput) (*ModifyInstancePlacementOutput, error) { - req, out := c.ModifyInstancePlacementRequest(input) - err := req.Send() - return out, err -} - const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute" // ModifyNetworkInterfaceAttributeRequest generates a request for the ModifyNetworkInterfaceAttribute operation. @@ -5803,8 +5088,6 @@ func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfa } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ModifyNetworkInterfaceAttributeOutput{} req.Data = output return @@ -5866,8 +5149,6 @@ func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ModifySnapshotAttributeOutput{} req.Data = output return @@ -5890,52 +5171,6 @@ func (c *EC2) ModifySnapshotAttribute(input *ModifySnapshotAttributeInput) (*Mod return out, err } -const opModifySpotFleetRequest = "ModifySpotFleetRequest" - -// ModifySpotFleetRequestRequest generates a request for the ModifySpotFleetRequest operation. -func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) (req *request.Request, output *ModifySpotFleetRequestOutput) { - op := &request.Operation{ - Name: opModifySpotFleetRequest, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifySpotFleetRequestInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifySpotFleetRequestOutput{} - req.Data = output - return -} - -// Modifies the specified Spot fleet request. -// -// While the Spot fleet request is being modified, it is in the modifying state. -// -// To scale up your Spot fleet, increase its target capacity. The Spot fleet -// launches the additional Spot instances according to the allocation strategy -// for the Spot fleet request. If the allocation strategy is lowestPrice, the -// Spot fleet launches instances using the Spot pool with the lowest price. -// If the allocation strategy is diversified, the Spot fleet distributes the -// instances across the Spot pools. -// -// To scale down your Spot fleet, decrease its target capacity. First, the -// Spot fleet cancels any open bids that exceed the new target capacity. You -// can request that the Spot fleet terminate Spot instances until the size of -// the fleet no longer exceeds the new target capacity. If the allocation strategy -// is lowestPrice, the Spot fleet terminates the instances with the highest -// price per unit. If the allocation strategy is diversified, the Spot fleet -// terminates instances across the Spot pools. Alternatively, you can request -// that the Spot fleet keep the fleet at its current size, but not replace any -// Spot instances that are interrupted or that you terminate manually. -func (c *EC2) ModifySpotFleetRequest(input *ModifySpotFleetRequestInput) (*ModifySpotFleetRequestOutput, error) { - req, out := c.ModifySpotFleetRequestRequest(input) - err := req.Send() - return out, err -} - const opModifySubnetAttribute = "ModifySubnetAttribute" // ModifySubnetAttributeRequest generates a request for the ModifySubnetAttribute operation. @@ -5951,8 +5186,6 @@ func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ModifySubnetAttributeOutput{} req.Data = output return @@ -5980,8 +5213,6 @@ func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ModifyVolumeAttributeOutput{} req.Data = output return @@ -6018,8 +5249,6 @@ func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ModifyVpcAttributeOutput{} req.Data = output return @@ -6061,49 +5290,6 @@ func (c *EC2) ModifyVpcEndpoint(input *ModifyVpcEndpointInput) (*ModifyVpcEndpoi return out, err } -const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions" - -// ModifyVpcPeeringConnectionOptionsRequest generates a request for the ModifyVpcPeeringConnectionOptions operation. -func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringConnectionOptionsInput) (req *request.Request, output *ModifyVpcPeeringConnectionOptionsOutput) { - op := &request.Operation{ - Name: opModifyVpcPeeringConnectionOptions, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyVpcPeeringConnectionOptionsInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifyVpcPeeringConnectionOptionsOutput{} - req.Data = output - return -} - -// Modifies the VPC peering connection options on one side of a VPC peering -// connection. You can do the following: -// -// Enable/disable communication over the peering connection between an EC2-Classic -// instance that's linked to your VPC (using ClassicLink) and instances in the -// peer VPC. -// -// Enable/disable communication over the peering connection between instances -// in your VPC and an EC2-Classic instance that's linked to the peer VPC. -// -// If the peered VPCs are in different accounts, each owner must initiate -// a separate request to enable or disable communication in either direction, -// depending on whether their VPC was the requester or accepter for the VPC -// peering connection. If the peered VPCs are in the same account, you can modify -// the requester and accepter options in the same request. To confirm which -// VPC is the accepter and requester for a VPC peering connection, use the DescribeVpcPeeringConnections -// command. -func (c *EC2) ModifyVpcPeeringConnectionOptions(input *ModifyVpcPeeringConnectionOptionsInput) (*ModifyVpcPeeringConnectionOptionsOutput, error) { - req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input) - err := req.Send() - return out, err -} - const opMonitorInstances = "MonitorInstances" // MonitorInstancesRequest generates a request for the MonitorInstances operation. @@ -6154,12 +5340,12 @@ func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *reques } // Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC -// platform. The Elastic IP address must be allocated to your account for more -// than 24 hours, and it must not be associated with an instance. After the -// Elastic IP address is moved, it is no longer available for use in the EC2-Classic -// platform, unless you move it back using the RestoreAddressToClassic request. -// You cannot move an Elastic IP address that was originally allocated for use -// in the EC2-VPC platform to the EC2-Classic platform. +// platform. The Elastic IP address must be allocated to your account, and it +// must not be associated with an instance. After the Elastic IP address is +// moved, it is no longer available for use in the EC2-Classic platform, unless +// you move it back using the RestoreAddressToClassic request. You cannot move +// an Elastic IP address that's allocated for use in the EC2-VPC platform to +// the EC2-Classic platform. func (c *EC2) MoveAddressToVpc(input *MoveAddressToVpcInput) (*MoveAddressToVpcOutput, error) { req, out := c.MoveAddressToVpcRequest(input) err := req.Send() @@ -6186,10 +5372,10 @@ func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedIn return } -// Purchases a Reserved Instance for use with your account. With Reserved Instances, -// you obtain a capacity reservation for a certain instance configuration over -// a specified period of time and pay a lower hourly rate compared to On-Demand -// instance pricing. +// Purchases a Reserved Instance for use with your account. With Amazon EC2 +// Reserved Instances, you obtain a capacity reservation for a certain instance +// configuration over a specified period of time and pay a lower hourly rate +// compared to on-Demand Instance pricing. // // Use DescribeReservedInstancesOfferings to get a list of Reserved Instance // offerings that match your specifications. After you've purchased a Reserved @@ -6204,42 +5390,6 @@ func (c *EC2) PurchaseReservedInstancesOffering(input *PurchaseReservedInstances return out, err } -const opPurchaseScheduledInstances = "PurchaseScheduledInstances" - -// PurchaseScheduledInstancesRequest generates a request for the PurchaseScheduledInstances operation. -func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstancesInput) (req *request.Request, output *PurchaseScheduledInstancesOutput) { - op := &request.Operation{ - Name: opPurchaseScheduledInstances, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PurchaseScheduledInstancesInput{} - } - - req = c.newRequest(op, input, output) - output = &PurchaseScheduledInstancesOutput{} - req.Data = output - return -} - -// Purchases one or more Scheduled Instances with the specified schedule. -// -// Scheduled Instances enable you to purchase Amazon EC2 compute capacity by -// the hour for a one-year term. Before you can purchase a Scheduled Instance, -// you must call DescribeScheduledInstanceAvailability to check for available -// schedules and obtain a purchase token. After you purchase a Scheduled Instance, -// you must call RunScheduledInstances during each scheduled time period. -// -// After you purchase a Scheduled Instance, you can't cancel, modify, or resell -// your purchase. -func (c *EC2) PurchaseScheduledInstances(input *PurchaseScheduledInstancesInput) (*PurchaseScheduledInstancesOutput, error) { - req, out := c.PurchaseScheduledInstancesRequest(input) - err := req.Send() - return out, err -} - const opRebootInstances = "RebootInstances" // RebootInstancesRequest generates a request for the RebootInstances operation. @@ -6255,8 +5405,6 @@ func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request. } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RebootInstancesOutput{} req.Data = output return @@ -6267,8 +5415,8 @@ func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request. // succeeds if the instances are valid and belong to you. Requests to reboot // terminated instances are ignored. // -// If an instance does not cleanly shut down within four minutes, Amazon EC2 -// performs a hard reboot. +// If a Linux/Unix instance does not cleanly shut down within four minutes, +// Amazon EC2 performs a hard reboot. // // For more information about troubleshooting, see Getting Console Output and // Rebooting Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html) @@ -6384,8 +5532,6 @@ func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ReleaseAddressOutput{} req.Data = output return @@ -6412,44 +5558,6 @@ func (c *EC2) ReleaseAddress(input *ReleaseAddressInput) (*ReleaseAddressOutput, return out, err } -const opReleaseHosts = "ReleaseHosts" - -// ReleaseHostsRequest generates a request for the ReleaseHosts operation. -func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Request, output *ReleaseHostsOutput) { - op := &request.Operation{ - Name: opReleaseHosts, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ReleaseHostsInput{} - } - - req = c.newRequest(op, input, output) - output = &ReleaseHostsOutput{} - req.Data = output - return -} - -// When you no longer want to use a Dedicated host it can be released. On-Demand -// billing is stopped and the host goes into released state. The host ID of -// Dedicated hosts that have been released can no longer be specified in another -// request, e.g., ModifyHosts. You must stop or terminate all instances on a -// host before it can be released. -// -// When Dedicated hosts are released, it make take some time for them to stop -// counting toward your limit and you may receive capacity errors when trying -// to allocate new Dedicated hosts. Try waiting a few minutes, and then try -// again. -// -// Released hosts will still appear in a DescribeHosts response. -func (c *EC2) ReleaseHosts(input *ReleaseHostsInput) (*ReleaseHostsOutput, error) { - req, out := c.ReleaseHostsRequest(input) - err := req.Send() - return out, err -} - const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation" // ReplaceNetworkAclAssociationRequest generates a request for the ReplaceNetworkAclAssociation operation. @@ -6495,8 +5603,6 @@ func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ReplaceNetworkAclEntryOutput{} req.Data = output return @@ -6526,8 +5632,6 @@ func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ReplaceRouteOutput{} req.Data = output return @@ -6535,7 +5639,7 @@ func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Reques // Replaces an existing route within a route table in a VPC. You must provide // only one of the following: Internet gateway or virtual private gateway, NAT -// instance, NAT gateway, VPC peering connection, or network interface. +// instance, VPC peering connection, or network interface. // // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html) // in the Amazon Virtual Private Cloud User Guide. @@ -6595,8 +5699,6 @@ func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ReportInstanceStatusOutput{} req.Data = output return @@ -6637,20 +5739,11 @@ func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *reques // Creates a Spot fleet request. // -// You can submit a single request that includes multiple launch specifications -// that vary by instance type, AMI, Availability Zone, or subnet. -// -// By default, the Spot fleet requests Spot instances in the Spot pool where -// the price per unit is the lowest. Each launch specification can include its -// own instance weighting that reflects the value of the instance type to your -// application workload. -// -// Alternatively, you can specify that the Spot fleet distribute the target -// capacity across the Spot pools included in its launch specifications. By -// ensuring that the Spot instances in your Spot fleet are in different Spot -// pools, you can improve the availability of your fleet. -// -// For more information, see Spot Fleet Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html) +// You can submit a single request that specifies multiple instance types, +// each with its own instance weighting that reflects its value to your application +// workload. Amazon EC2 computes the bid price for each launch specification +// and requests Spot Instances in the Spot pool where the price per unit is +// the lowest. For more information, see Spot Fleets (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *EC2) RequestSpotFleet(input *RequestSpotFleetInput) (*RequestSpotFleetOutput, error) { req, out := c.RequestSpotFleetRequest(input) @@ -6678,10 +5771,10 @@ func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req return } -// Creates a Spot instance request. Spot instances are instances that Amazon +// Creates a Spot Instance request. Spot Instances are instances that Amazon // EC2 launches when the bid price that you specify exceeds the current Spot -// price. Amazon EC2 periodically sets the Spot price based on available Spot -// Instance capacity and current Spot instance requests. For more information, +// Price. Amazon EC2 periodically sets the Spot Price based on available Spot +// Instance capacity and current Spot Instance requests. For more information, // see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *EC2) RequestSpotInstances(input *RequestSpotInstancesInput) (*RequestSpotInstancesOutput, error) { @@ -6705,8 +5798,6 @@ func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req * } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ResetImageAttributeOutput{} req.Data = output return @@ -6736,18 +5827,16 @@ func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ResetInstanceAttributeOutput{} req.Data = output return } // Resets an attribute of an instance to its default value. To reset the kernel -// or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, +// or ramdisk, the instance must be in a stopped state. To reset the SourceDestCheck, // the instance can be either running or stopped. // -// The sourceDestCheck attribute controls whether source/destination checking +// The SourceDestCheck attribute controls whether source/destination checking // is enabled. The default value is true, which means checking is enabled. This // value must be false for a NAT instance to perform NAT. For more information, // see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html) @@ -6773,8 +5862,6 @@ func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterface } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ResetNetworkInterfaceAttributeOutput{} req.Data = output return @@ -6803,8 +5890,6 @@ func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ResetSnapshotAttributeOutput{} req.Data = output return @@ -6866,17 +5951,14 @@ func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressI } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RevokeSecurityGroupEgressOutput{} req.Data = output return } -// [EC2-VPC only] Removes one or more egress rules from a security group for -// EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic. -// The values that you specify in the revoke request (for example, ports) must -// match the existing rule's values for the rule to be revoked. +// Removes one or more egress rules from a security group for EC2-VPC. The values +// that you specify in the revoke request (for example, ports) must match the +// existing rule's values for the rule to be revoked. // // Each rule consists of the protocol and the CIDR range or source security // group. For the TCP and UDP protocols, you must also specify the destination @@ -6906,8 +5988,6 @@ func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngres } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RevokeSecurityGroupIngressOutput{} req.Data = output return @@ -6957,14 +6037,6 @@ func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Reques // is ready for you, it enters the running state. To check the state of your // instance, call DescribeInstances. // -// To ensure faster instance launches, break up large requests into smaller -// batches. For example, create five separate launch requests for 100 instances -// each instead of one launch request for 500 instances. -// -// To tag your instance, ensure that it is running as CreateTags requires a -// resource ID. For more information about tagging, see Tagging Your Amazon -// EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html). -// // If you don't specify a security group when launching an instance, Amazon // EC2 uses the default security group. For more information, see Security Groups // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) @@ -6989,9 +6061,9 @@ func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Reques // If any of the AMIs have a product code attached for which the user has not // subscribed, RunInstances fails. // -// Some instance types can only be launched into a VPC. If you do not have -// a default VPC, or if you do not specify a subnet ID in the request, RunInstances -// fails. For more information, see Instance Types Available Only in a VPC (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-vpc.html#vpc-only-instance-types). +// T2 instance types can only be launched into a VPC. If you do not have a +// default VPC, or if you do not specify a subnet ID in the request, RunInstances +// fails. // // For more information about troubleshooting, see What To Do If An Instance // Immediately Terminates (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html), @@ -7003,43 +6075,6 @@ func (c *EC2) RunInstances(input *RunInstancesInput) (*Reservation, error) { return out, err } -const opRunScheduledInstances = "RunScheduledInstances" - -// RunScheduledInstancesRequest generates a request for the RunScheduledInstances operation. -func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (req *request.Request, output *RunScheduledInstancesOutput) { - op := &request.Operation{ - Name: opRunScheduledInstances, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RunScheduledInstancesInput{} - } - - req = c.newRequest(op, input, output) - output = &RunScheduledInstancesOutput{} - req.Data = output - return -} - -// Launches the specified Scheduled Instances. -// -// Before you can launch a Scheduled Instance, you must purchase it and obtain -// an identifier using PurchaseScheduledInstances. -// -// You must launch a Scheduled Instance during its scheduled time period. You -// can't stop or reboot a Scheduled Instance, but you can terminate it as needed. -// If you terminate a Scheduled Instance before the current scheduled time period -// ends, you can launch it again after a few minutes. For more information, -// see Scheduled Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html) -// in the Amazon Elastic Compute Cloud User Guide. -func (c *EC2) RunScheduledInstances(input *RunScheduledInstancesInput) (*RunScheduledInstancesOutput, error) { - req, out := c.RunScheduledInstancesRequest(input) - err := req.Send() - return out, err -} - const opStartInstances = "StartInstances" // StartInstancesRequest generates a request for the StartInstances operation. @@ -7105,35 +6140,36 @@ func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Requ return } -// Stops an Amazon EBS-backed instance. +// Stops an Amazon EBS-backed instance. Each time you transition an instance +// from stopped to started, Amazon EC2 charges a full instance hour, even if +// transitions happen multiple times within a single hour. // -// We don't charge hourly usage for a stopped instance, or data transfer fees; -// however, your root partition Amazon EBS volume remains, continues to persist -// your data, and you are charged for Amazon EBS volume usage. Each time you -// transition an instance from stopped to started, Amazon EC2 charges a full -// instance hour, even if transitions happen multiple times within a single -// hour. +// You can't start or stop Spot Instances. // -// You can't start or stop Spot instances, and you can't stop instance store-backed -// instances. +// Instances that use Amazon EBS volumes as their root devices can be quickly +// stopped and started. When an instance is stopped, the compute resources are +// released and you are not billed for hourly instance usage. However, your +// root partition Amazon EBS volume remains, continues to persist your data, +// and you are charged for Amazon EBS volume usage. You can restart your instance +// at any time. // -// When you stop an instance, we shut it down. You can restart your instance -// at any time. Before stopping an instance, make sure it is in a state from -// which it can be restarted. Stopping an instance does not preserve data stored -// in RAM. +// Before stopping an instance, make sure it is in a state from which it can +// be restarted. Stopping an instance does not preserve data stored in RAM. +// +// Performing this operation on an instance that uses an instance store as +// its root device returns an error. // -// Stopping an instance is different to rebooting or terminating it. For example, -// when you stop an instance, the root device and any other devices attached -// to the instance persist. When you terminate an instance, the root device -// and any other devices attached during the instance launch are automatically -// deleted. For more information about the differences between rebooting, stopping, -// and terminating instances, see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) +// You can stop, start, and terminate EBS-backed instances. You can only terminate +// instance store-backed instances. What happens to an instance differs if you +// stop it or terminate it. For example, when you stop an instance, the root +// device and any other devices attached to the instance persist. When you terminate +// an instance, the root device and any other devices attached during the instance +// launch are automatically deleted. For more information about the differences +// between stopping and terminating instances, see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) // in the Amazon Elastic Compute Cloud User Guide. // -// When you stop an instance, we attempt to shut it down forcibly after a short -// while. If your instance appears stuck in the stopping state after a period -// of time, there may be an issue with the underlying host computer. For more -// information, see Troubleshooting Stopping Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html) +// For more information about troubleshooting, see Troubleshooting Stopping +// Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *EC2) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error) { req, out := c.StopInstancesRequest(input) @@ -7204,8 +6240,6 @@ func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddresse } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UnassignPrivateIpAddressesOutput{} req.Data = output return @@ -7247,10 +6281,7 @@ func (c *EC2) UnmonitorInstances(input *UnmonitorInstancesInput) (*UnmonitorInst return out, err } -// Contains the parameters for AcceptVpcPeeringConnection. type AcceptVpcPeeringConnectionInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -7259,9 +6290,15 @@ type AcceptVpcPeeringConnectionInput struct { // The ID of the VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` + + metadataAcceptVpcPeeringConnectionInput `json:"-" xml:"-"` } -// String returns the string representation +type metadataAcceptVpcPeeringConnectionInput struct { + SDKShapeTraits bool `type:"structure"` +} + +// String returns the string representation func (s AcceptVpcPeeringConnectionInput) String() string { return awsutil.Prettify(s) } @@ -7271,12 +6308,15 @@ func (s AcceptVpcPeeringConnectionInput) GoString() string { return s.String() } -// Contains the output of AcceptVpcPeeringConnection. type AcceptVpcPeeringConnectionOutput struct { - _ struct{} `type:"structure"` - // Information about the VPC peering connection. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"` + + metadataAcceptVpcPeeringConnectionOutput `json:"-" xml:"-"` +} + +type metadataAcceptVpcPeeringConnectionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7291,13 +6331,17 @@ func (s AcceptVpcPeeringConnectionOutput) GoString() string { // Describes an account attribute. type AccountAttribute struct { - _ struct{} `type:"structure"` - // The name of the account attribute. AttributeName *string `locationName:"attributeName" type:"string"` // One or more values for the account attribute. AttributeValues []*AccountAttributeValue `locationName:"attributeValueSet" locationNameList:"item" type:"list"` + + metadataAccountAttribute `json:"-" xml:"-"` +} + +type metadataAccountAttribute struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7312,10 +6356,14 @@ func (s AccountAttribute) GoString() string { // Describes a value of an account attribute. type AccountAttributeValue struct { - _ struct{} `type:"structure"` - // The value of the attribute. AttributeValue *string `locationName:"attributeValue" type:"string"` + + metadataAccountAttributeValue `json:"-" xml:"-"` +} + +type metadataAccountAttributeValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7330,16 +6378,20 @@ func (s AccountAttributeValue) GoString() string { // Describes a running instance in a Spot fleet. type ActiveInstance struct { - _ struct{} `type:"structure"` - // The ID of the instance. InstanceId *string `locationName:"instanceId" type:"string"` // The instance type. InstanceType *string `locationName:"instanceType" type:"string"` - // The ID of the Spot instance request. + // The ID of the Spot Instance request. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"` + + metadataActiveInstance `json:"-" xml:"-"` +} + +type metadataActiveInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7354,8 +6406,6 @@ func (s ActiveInstance) GoString() string { // Describes an Elastic IP address. type Address struct { - _ struct{} `type:"structure"` - // The ID representing the allocation of the address for use with EC2-VPC. AllocationId *string `locationName:"allocationId" type:"string"` @@ -7381,6 +6431,12 @@ type Address struct { // The Elastic IP address. PublicIp *string `locationName:"publicIp" type:"string"` + + metadataAddress `json:"-" xml:"-"` +} + +type metadataAddress struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7393,10 +6449,7 @@ func (s Address) GoString() string { return s.String() } -// Contains the parameters for AllocateAddress. type AllocateAddressInput struct { - _ struct{} `type:"structure"` - // Set to vpc to allocate the address for use with instances in a VPC. // // Default: The address is for use with instances in EC2-Classic. @@ -7407,6 +6460,12 @@ type AllocateAddressInput struct { // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + metadataAllocateAddressInput `json:"-" xml:"-"` +} + +type metadataAllocateAddressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7419,10 +6478,7 @@ func (s AllocateAddressInput) GoString() string { return s.String() } -// Contains the output of AllocateAddress. type AllocateAddressOutput struct { - _ struct{} `type:"structure"` - // [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic // IP address for use with instances in a VPC. AllocationId *string `locationName:"allocationId" type:"string"` @@ -7433,99 +6489,25 @@ type AllocateAddressOutput struct { // The Elastic IP address. PublicIp *string `locationName:"publicIp" type:"string"` -} - -// String returns the string representation -func (s AllocateAddressOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AllocateAddressOutput) GoString() string { - return s.String() -} - -// Contains the parameters for AllocateHosts. -type AllocateHostsInput struct { - _ struct{} `type:"structure"` - - // This is enabled by default. This property allows instances to be automatically - // placed onto available Dedicated hosts, when you are launching instances without - // specifying a host ID. - // - // Default: Enabled - AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"` - - // The Availability Zone for the Dedicated hosts. - AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` - - // Unique, case-sensitive identifier you provide to ensure idempotency of the - // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html) - // in the Amazon Elastic Compute Cloud User Guide. - ClientToken *string `locationName:"clientToken" type:"string"` - - // Specify the instance type that you want your Dedicated hosts to be configured - // for. When you specify the instance type, that is the only instance type that - // you can launch onto that host. - InstanceType *string `locationName:"instanceType" type:"string" required:"true"` - - // The number of Dedicated hosts you want to allocate to your account with these - // parameters. - Quantity *int64 `locationName:"quantity" type:"integer" required:"true"` -} - -// String returns the string representation -func (s AllocateHostsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AllocateHostsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AllocateHostsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AllocateHostsInput"} - if s.AvailabilityZone == nil { - invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) - } - if s.InstanceType == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceType")) - } - if s.Quantity == nil { - invalidParams.Add(request.NewErrParamRequired("Quantity")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataAllocateAddressOutput `json:"-" xml:"-"` } -// Contains the output of AllocateHosts. -type AllocateHostsOutput struct { - _ struct{} `type:"structure"` - - // The ID of the allocated Dedicated host. This is used when you want to launch - // an instance onto a specific host. - HostIds []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"` +type metadataAllocateAddressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s AllocateHostsOutput) String() string { +func (s AllocateAddressOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AllocateHostsOutput) GoString() string { +func (s AllocateAddressOutput) GoString() string { return s.String() } -// Contains the parameters for AssignPrivateIpAddresses. type AssignPrivateIpAddressesInput struct { - _ struct{} `type:"structure"` - // Indicates whether to allow an IP address that is already assigned to another // network interface or instance to be reassigned to the specified network interface. AllowReassignment *bool `locationName:"allowReassignment" type:"boolean"` @@ -7544,6 +6526,12 @@ type AssignPrivateIpAddressesInput struct { // The number of secondary IP addresses to assign to the network interface. // You can't specify this parameter when also specifying private IP addresses. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"` + + metadataAssignPrivateIpAddressesInput `json:"-" xml:"-"` +} + +type metadataAssignPrivateIpAddressesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7556,21 +6544,12 @@ func (s AssignPrivateIpAddressesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssignPrivateIpAddressesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssignPrivateIpAddressesInput"} - if s.NetworkInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AssignPrivateIpAddressesOutput struct { + metadataAssignPrivateIpAddressesOutput `json:"-" xml:"-"` } -type AssignPrivateIpAddressesOutput struct { - _ struct{} `type:"structure"` +type metadataAssignPrivateIpAddressesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7583,19 +6562,15 @@ func (s AssignPrivateIpAddressesOutput) GoString() string { return s.String() } -// Contains the parameters for AssociateAddress. type AssociateAddressInput struct { - _ struct{} `type:"structure"` - // [EC2-VPC] The allocation ID. This is required for EC2-VPC. AllocationId *string `type:"string"` - // [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic - // IP address that is already associated with an instance or network interface - // to be reassociated with the specified instance or network interface. Otherwise, - // the operation fails. In a VPC in an EC2-VPC-only account, reassociation is - // automatic, therefore you can specify false to ensure the operation fails - // if the Elastic IP address is already associated with another resource. + // [EC2-VPC] Allows an Elastic IP address that is already associated with an + // instance or network interface to be re-associated with the specified instance + // or network interface. Otherwise, the operation fails. + // + // Default: false AllowReassociation *bool `locationName:"allowReassociation" type:"boolean"` // Checks whether you have the required permissions for the action, without @@ -7621,6 +6596,12 @@ type AssociateAddressInput struct { // The Elastic IP address. This is required for EC2-Classic. PublicIp *string `type:"string"` + + metadataAssociateAddressInput `json:"-" xml:"-"` +} + +type metadataAssociateAddressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7633,13 +6614,16 @@ func (s AssociateAddressInput) GoString() string { return s.String() } -// Contains the output of AssociateAddress. type AssociateAddressOutput struct { - _ struct{} `type:"structure"` - // [EC2-VPC] The ID that represents the association of the Elastic IP address // with an instance. AssociationId *string `locationName:"associationId" type:"string"` + + metadataAssociateAddressOutput `json:"-" xml:"-"` +} + +type metadataAssociateAddressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7652,10 +6636,7 @@ func (s AssociateAddressOutput) GoString() string { return s.String() } -// Contains the parameters for AssociateDhcpOptions. type AssociateDhcpOptionsInput struct { - _ struct{} `type:"structure"` - // The ID of the DHCP options set, or default to associate no DHCP options with // the VPC. DhcpOptionsId *string `type:"string" required:"true"` @@ -7668,6 +6649,12 @@ type AssociateDhcpOptionsInput struct { // The ID of the VPC. VpcId *string `type:"string" required:"true"` + + metadataAssociateDhcpOptionsInput `json:"-" xml:"-"` +} + +type metadataAssociateDhcpOptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7680,24 +6667,12 @@ func (s AssociateDhcpOptionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateDhcpOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateDhcpOptionsInput"} - if s.DhcpOptionsId == nil { - invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId")) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AssociateDhcpOptionsOutput struct { + metadataAssociateDhcpOptionsOutput `json:"-" xml:"-"` } -type AssociateDhcpOptionsOutput struct { - _ struct{} `type:"structure"` +type metadataAssociateDhcpOptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7710,10 +6685,7 @@ func (s AssociateDhcpOptionsOutput) GoString() string { return s.String() } -// Contains the parameters for AssociateRouteTable. type AssociateRouteTableInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -7725,6 +6697,12 @@ type AssociateRouteTableInput struct { // The ID of the subnet. SubnetId *string `locationName:"subnetId" type:"string" required:"true"` + + metadataAssociateRouteTableInput `json:"-" xml:"-"` +} + +type metadataAssociateRouteTableInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7737,28 +6715,15 @@ func (s AssociateRouteTableInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateRouteTableInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateRouteTableInput"} - if s.RouteTableId == nil { - invalidParams.Add(request.NewErrParamRequired("RouteTableId")) - } - if s.SubnetId == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of AssociateRouteTable. type AssociateRouteTableOutput struct { - _ struct{} `type:"structure"` - // The route table association ID (needed to disassociate the route table). AssociationId *string `locationName:"associationId" type:"string"` + + metadataAssociateRouteTableOutput `json:"-" xml:"-"` +} + +type metadataAssociateRouteTableOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7771,10 +6736,7 @@ func (s AssociateRouteTableOutput) GoString() string { return s.String() } -// Contains the parameters for AttachClassicLinkVpc. type AttachClassicLinkVpcInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -7790,6 +6752,12 @@ type AttachClassicLinkVpcInput struct { // The ID of a ClassicLink-enabled VPC. VpcId *string `locationName:"vpcId" type:"string" required:"true"` + + metadataAttachClassicLinkVpcInput `json:"-" xml:"-"` +} + +type metadataAttachClassicLinkVpcInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7802,31 +6770,15 @@ func (s AttachClassicLinkVpcInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachClassicLinkVpcInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachClassicLinkVpcInput"} - if s.Groups == nil { - invalidParams.Add(request.NewErrParamRequired("Groups")) - } - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of AttachClassicLinkVpc. type AttachClassicLinkVpcOutput struct { - _ struct{} `type:"structure"` - // Returns true if the request succeeds; otherwise, it returns an error. Return *bool `locationName:"return" type:"boolean"` + + metadataAttachClassicLinkVpcOutput `json:"-" xml:"-"` +} + +type metadataAttachClassicLinkVpcOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7839,10 +6791,7 @@ func (s AttachClassicLinkVpcOutput) GoString() string { return s.String() } -// Contains the parameters for AttachInternetGateway. type AttachInternetGatewayInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -7854,6 +6803,12 @@ type AttachInternetGatewayInput struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string" required:"true"` + + metadataAttachInternetGatewayInput `json:"-" xml:"-"` +} + +type metadataAttachInternetGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7866,24 +6821,12 @@ func (s AttachInternetGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachInternetGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachInternetGatewayInput"} - if s.InternetGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("InternetGatewayId")) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AttachInternetGatewayOutput struct { + metadataAttachInternetGatewayOutput `json:"-" xml:"-"` } -type AttachInternetGatewayOutput struct { - _ struct{} `type:"structure"` +type metadataAttachInternetGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7896,10 +6839,7 @@ func (s AttachInternetGatewayOutput) GoString() string { return s.String() } -// Contains the parameters for AttachNetworkInterface. type AttachNetworkInterfaceInput struct { - _ struct{} `type:"structure"` - // The index of the device for the network interface attachment. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer" required:"true"` @@ -7914,6 +6854,12 @@ type AttachNetworkInterfaceInput struct { // The ID of the network interface. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"` + + metadataAttachNetworkInterfaceInput `json:"-" xml:"-"` +} + +type metadataAttachNetworkInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7926,31 +6872,15 @@ func (s AttachNetworkInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachNetworkInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachNetworkInterfaceInput"} - if s.DeviceIndex == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceIndex")) - } - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.NetworkInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of AttachNetworkInterface. type AttachNetworkInterfaceOutput struct { - _ struct{} `type:"structure"` - // The ID of the network interface attachment. AttachmentId *string `locationName:"attachmentId" type:"string"` + + metadataAttachNetworkInterfaceOutput `json:"-" xml:"-"` +} + +type metadataAttachNetworkInterfaceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7963,10 +6893,7 @@ func (s AttachNetworkInterfaceOutput) GoString() string { return s.String() } -// Contains the parameters for AttachVolume. type AttachVolumeInput struct { - _ struct{} `type:"structure"` - // The device name to expose to the instance (for example, /dev/sdh or xvdh). Device *string `type:"string" required:"true"` @@ -7982,6 +6909,12 @@ type AttachVolumeInput struct { // The ID of the EBS volume. The volume and instance must be within the same // Availability Zone. VolumeId *string `type:"string" required:"true"` + + metadataAttachVolumeInput `json:"-" xml:"-"` +} + +type metadataAttachVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7994,29 +6927,7 @@ func (s AttachVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachVolumeInput"} - if s.Device == nil { - invalidParams.Add(request.NewErrParamRequired("Device")) - } - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the parameters for AttachVpnGateway. type AttachVpnGatewayInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -8028,6 +6939,12 @@ type AttachVpnGatewayInput struct { // The ID of the virtual private gateway. VpnGatewayId *string `type:"string" required:"true"` + + metadataAttachVpnGatewayInput `json:"-" xml:"-"` +} + +type metadataAttachVpnGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8040,28 +6957,15 @@ func (s AttachVpnGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachVpnGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachVpnGatewayInput"} - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - if s.VpnGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("VpnGatewayId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of AttachVpnGateway. type AttachVpnGatewayOutput struct { - _ struct{} `type:"structure"` - // Information about the attachment. VpcAttachment *VpcAttachment `locationName:"attachment" type:"structure"` + + metadataAttachVpnGatewayOutput `json:"-" xml:"-"` +} + +type metadataAttachVpnGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8076,10 +6980,14 @@ func (s AttachVpnGatewayOutput) GoString() string { // The value to use when a resource attribute accepts a Boolean value. type AttributeBooleanValue struct { - _ struct{} `type:"structure"` - // Valid values are true or false. Value *bool `locationName:"value" type:"boolean"` + + metadataAttributeBooleanValue `json:"-" xml:"-"` +} + +type metadataAttributeBooleanValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8094,10 +7002,14 @@ func (s AttributeBooleanValue) GoString() string { // The value to use for a resource attribute. type AttributeValue struct { - _ struct{} `type:"structure"` - // Valid values are case-sensitive and vary by action. Value *string `locationName:"value" type:"string"` + + metadataAttributeValue `json:"-" xml:"-"` +} + +type metadataAttributeValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8110,12 +7022,9 @@ func (s AttributeValue) GoString() string { return s.String() } -// Contains the parameters for AuthorizeSecurityGroupEgress. type AuthorizeSecurityGroupEgressInput struct { - _ struct{} `type:"structure"` - - // The CIDR IP address range. We recommend that you specify the CIDR range in - // a set of IP permissions instead. + // The CIDR IP address range. You can't specify this parameter when specifying + // a source security group. CidrIp *string `locationName:"cidrIp" type:"string"` // Checks whether you have the required permissions for the action, without @@ -8125,7 +7034,7 @@ type AuthorizeSecurityGroupEgressInput struct { DryRun *bool `locationName:"dryRun" type:"boolean"` // The start of port range for the TCP and UDP protocols, or an ICMP type number. - // We recommend that you specify the port range in a set of IP permissions instead. + // For the ICMP type number, use -1 to specify all ICMP types. FromPort *int64 `locationName:"fromPort" type:"integer"` // The ID of the security group. @@ -8135,8 +7044,8 @@ type AuthorizeSecurityGroupEgressInput struct { // a CIDR IP address range. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"` - // The IP protocol name or number. We recommend that you specify the protocol - // in a set of IP permissions instead. + // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). + // Use -1 to specify all. IpProtocol *string `locationName:"ipProtocol" type:"string"` // The name of a destination security group. To authorize outbound access to @@ -8149,9 +7058,15 @@ type AuthorizeSecurityGroupEgressInput struct { // IP permissions instead. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"` - // The end of port range for the TCP and UDP protocols, or an ICMP type number. - // We recommend that you specify the port range in a set of IP permissions instead. + // The end of port range for the TCP and UDP protocols, or an ICMP code number. + // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type. ToPort *int64 `locationName:"toPort" type:"integer"` + + metadataAuthorizeSecurityGroupEgressInput `json:"-" xml:"-"` +} + +type metadataAuthorizeSecurityGroupEgressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8164,21 +7079,12 @@ func (s AuthorizeSecurityGroupEgressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AuthorizeSecurityGroupEgressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AuthorizeSecurityGroupEgressInput"} - if s.GroupId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AuthorizeSecurityGroupEgressOutput struct { + metadataAuthorizeSecurityGroupEgressOutput `json:"-" xml:"-"` } -type AuthorizeSecurityGroupEgressOutput struct { - _ struct{} `type:"structure"` +type metadataAuthorizeSecurityGroupEgressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8191,10 +7097,7 @@ func (s AuthorizeSecurityGroupEgressOutput) GoString() string { return s.String() } -// Contains the parameters for AuthorizeSecurityGroupIngress. type AuthorizeSecurityGroupIngressInput struct { - _ struct{} `type:"structure"` - // The CIDR IP address range. You can't specify this parameter when specifying // a source security group. CidrIp *string `type:"string"` @@ -8226,23 +7129,28 @@ type AuthorizeSecurityGroupIngressInput struct { // [EC2-Classic, default VPC] The name of the source security group. You can't // specify this parameter in combination with the following parameters: the // CIDR IP address range, the start of the port range, the IP protocol, and - // the end of the port range. Creates rules that grant full ICMP, UDP, and TCP - // access. To create a rule with a specific IP protocol and port range, use - // a set of IP permissions instead. For EC2-VPC, the source security group must - // be in the same VPC. + // the end of the port range. For EC2-VPC, the source security group must be + // in the same VPC. SourceSecurityGroupName *string `type:"string"` - // [EC2-Classic] The AWS account number for the source security group, if the - // source security group is in a different account. You can't specify this parameter - // in combination with the following parameters: the CIDR IP address range, - // the IP protocol, the start of the port range, and the end of the port range. - // Creates rules that grant full ICMP, UDP, and TCP access. To create a rule - // with a specific IP protocol and port range, use a set of IP permissions instead. + // [EC2-Classic, default VPC] The AWS account number for the source security + // group. For EC2-VPC, the source security group must be in the same VPC. You + // can't specify this parameter in combination with the following parameters: + // the CIDR IP address range, the IP protocol, the start of the port range, + // and the end of the port range. Creates rules that grant full ICMP, UDP, and + // TCP access. To create a rule with a specific IP protocol and port range, + // use a set of IP permissions instead. SourceSecurityGroupOwnerId *string `type:"string"` // The end of port range for the TCP and UDP protocols, or an ICMP code number. // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type. ToPort *int64 `type:"integer"` + + metadataAuthorizeSecurityGroupIngressInput `json:"-" xml:"-"` +} + +type metadataAuthorizeSecurityGroupIngressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8256,7 +7164,11 @@ func (s AuthorizeSecurityGroupIngressInput) GoString() string { } type AuthorizeSecurityGroupIngressOutput struct { - _ struct{} `type:"structure"` + metadataAuthorizeSecurityGroupIngressOutput `json:"-" xml:"-"` +} + +type metadataAuthorizeSecurityGroupIngressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8271,19 +7183,23 @@ func (s AuthorizeSecurityGroupIngressOutput) GoString() string { // Describes an Availability Zone. type AvailabilityZone struct { - _ struct{} `type:"structure"` - // Any messages about the Availability Zone. Messages []*AvailabilityZoneMessage `locationName:"messageSet" locationNameList:"item" type:"list"` // The name of the region. RegionName *string `locationName:"regionName" type:"string"` - // The state of the Availability Zone. + // The state of the Availability Zone (available | impaired | unavailable). State *string `locationName:"zoneState" type:"string" enum:"AvailabilityZoneState"` // The name of the Availability Zone. ZoneName *string `locationName:"zoneName" type:"string"` + + metadataAvailabilityZone `json:"-" xml:"-"` +} + +type metadataAvailabilityZone struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8298,48 +7214,34 @@ func (s AvailabilityZone) GoString() string { // Describes a message about an Availability Zone. type AvailabilityZoneMessage struct { - _ struct{} `type:"structure"` - // The message about the Availability Zone. Message *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s AvailabilityZoneMessage) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s AvailabilityZoneMessage) GoString() string { - return s.String() + metadataAvailabilityZoneMessage `json:"-" xml:"-"` } -// The capacity information for instances launched onto the Dedicated host. -type AvailableCapacity struct { - _ struct{} `type:"structure"` - - // The total number of instances that the Dedicated host supports. - AvailableInstanceCapacity []*InstanceCapacity `locationName:"availableInstanceCapacity" locationNameList:"item" type:"list"` - - // The number of vCPUs available on the Dedicated host. - AvailableVCpus *int64 `locationName:"availableVCpus" type:"integer"` +type metadataAvailabilityZoneMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s AvailableCapacity) String() string { +func (s AvailabilityZoneMessage) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AvailableCapacity) GoString() string { +func (s AvailabilityZoneMessage) GoString() string { return s.String() } type BlobAttributeValue struct { - _ struct{} `type:"structure"` - - // Value is automatically base64 encoded/decoded by the SDK. Value []byte `locationName:"value" type:"blob"` + + metadataBlobAttributeValue `json:"-" xml:"-"` +} + +type metadataBlobAttributeValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8354,8 +7256,6 @@ func (s BlobAttributeValue) GoString() string { // Describes a block device mapping. type BlockDeviceMapping struct { - _ struct{} `type:"structure"` - // The device name exposed to the instance (for example, /dev/sdh or xvdh). DeviceName *string `locationName:"deviceName" type:"string"` @@ -8378,6 +7278,12 @@ type BlockDeviceMapping struct { // we ignore any instance store volumes specified in the block device mapping // for the AMI. VirtualName *string `locationName:"virtualName" type:"string"` + + metadataBlockDeviceMapping `json:"-" xml:"-"` +} + +type metadataBlockDeviceMapping struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8390,10 +7296,7 @@ func (s BlockDeviceMapping) GoString() string { return s.String() } -// Contains the parameters for BundleInstance. type BundleInstanceInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -8413,6 +7316,12 @@ type BundleInstanceInput struct { // own or a new bucket that Amazon EC2 creates on your behalf. If you specify // a bucket that belongs to someone else, Amazon EC2 returns an error. Storage *Storage `type:"structure" required:"true"` + + metadataBundleInstanceInput `json:"-" xml:"-"` +} + +type metadataBundleInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8425,28 +7334,15 @@ func (s BundleInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BundleInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BundleInstanceInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.Storage == nil { - invalidParams.Add(request.NewErrParamRequired("Storage")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of BundleInstance. type BundleInstanceOutput struct { - _ struct{} `type:"structure"` - // Information about the bundle task. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"` + + metadataBundleInstanceOutput `json:"-" xml:"-"` +} + +type metadataBundleInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8461,8 +7357,6 @@ func (s BundleInstanceOutput) GoString() string { // Describes a bundle task. type BundleTask struct { - _ struct{} `type:"structure"` - // The ID of the bundle task. BundleId *string `locationName:"bundleId" type:"string"` @@ -8486,6 +7380,12 @@ type BundleTask struct { // The time of the most recent update for the task. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"` + + metadataBundleTask `json:"-" xml:"-"` +} + +type metadataBundleTask struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8500,13 +7400,17 @@ func (s BundleTask) GoString() string { // Describes an error for BundleInstance. type BundleTaskError struct { - _ struct{} `type:"structure"` - // The error code. Code *string `locationName:"code" type:"string"` // The error message. Message *string `locationName:"message" type:"string"` + + metadataBundleTaskError `json:"-" xml:"-"` +} + +type metadataBundleTaskError struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8519,10 +7423,7 @@ func (s BundleTaskError) GoString() string { return s.String() } -// Contains the parameters for CancelBundleTask. type CancelBundleTaskInput struct { - _ struct{} `type:"structure"` - // The ID of the bundle task. BundleId *string `type:"string" required:"true"` @@ -8531,6 +7432,12 @@ type CancelBundleTaskInput struct { // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + metadataCancelBundleTaskInput `json:"-" xml:"-"` +} + +type metadataCancelBundleTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8543,25 +7450,15 @@ func (s CancelBundleTaskInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelBundleTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelBundleTaskInput"} - if s.BundleId == nil { - invalidParams.Add(request.NewErrParamRequired("BundleId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CancelBundleTask. type CancelBundleTaskOutput struct { - _ struct{} `type:"structure"` - // Information about the bundle task. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"` + + metadataCancelBundleTaskOutput `json:"-" xml:"-"` +} + +type metadataCancelBundleTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8574,10 +7471,7 @@ func (s CancelBundleTaskOutput) GoString() string { return s.String() } -// Contains the parameters for CancelConversionTask. type CancelConversionTaskInput struct { - _ struct{} `type:"structure"` - // The ID of the conversion task. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"` @@ -8589,6 +7483,12 @@ type CancelConversionTaskInput struct { // The reason for canceling the conversion task. ReasonMessage *string `locationName:"reasonMessage" type:"string"` + + metadataCancelConversionTaskInput `json:"-" xml:"-"` +} + +type metadataCancelConversionTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8601,21 +7501,12 @@ func (s CancelConversionTaskInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelConversionTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelConversionTaskInput"} - if s.ConversionTaskId == nil { - invalidParams.Add(request.NewErrParamRequired("ConversionTaskId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CancelConversionTaskOutput struct { + metadataCancelConversionTaskOutput `json:"-" xml:"-"` } -type CancelConversionTaskOutput struct { - _ struct{} `type:"structure"` +type metadataCancelConversionTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8628,12 +7519,15 @@ func (s CancelConversionTaskOutput) GoString() string { return s.String() } -// Contains the parameters for CancelExportTask. type CancelExportTaskInput struct { - _ struct{} `type:"structure"` - // The ID of the export task. This is the ID returned by CreateInstanceExportTask. ExportTaskId *string `locationName:"exportTaskId" type:"string" required:"true"` + + metadataCancelExportTaskInput `json:"-" xml:"-"` +} + +type metadataCancelExportTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8646,21 +7540,12 @@ func (s CancelExportTaskInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelExportTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"} - if s.ExportTaskId == nil { - invalidParams.Add(request.NewErrParamRequired("ExportTaskId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CancelExportTaskOutput struct { + metadataCancelExportTaskOutput `json:"-" xml:"-"` } -type CancelExportTaskOutput struct { - _ struct{} `type:"structure"` +type metadataCancelExportTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8673,10 +7558,7 @@ func (s CancelExportTaskOutput) GoString() string { return s.String() } -// Contains the parameters for CancelImportTask. type CancelImportTaskInput struct { - _ struct{} `type:"structure"` - // The reason for canceling the task. CancelReason *string `type:"string"` @@ -8688,6 +7570,12 @@ type CancelImportTaskInput struct { // The ID of the import image or import snapshot task to be canceled. ImportTaskId *string `type:"string"` + + metadataCancelImportTaskInput `json:"-" xml:"-"` +} + +type metadataCancelImportTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8700,10 +7588,7 @@ func (s CancelImportTaskInput) GoString() string { return s.String() } -// Contains the output for CancelImportTask. type CancelImportTaskOutput struct { - _ struct{} `type:"structure"` - // The ID of the task being canceled. ImportTaskId *string `locationName:"importTaskId" type:"string"` @@ -8712,6 +7597,12 @@ type CancelImportTaskOutput struct { // The current state of the task being canceled. State *string `locationName:"state" type:"string"` + + metadataCancelImportTaskOutput `json:"-" xml:"-"` +} + +type metadataCancelImportTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8724,12 +7615,15 @@ func (s CancelImportTaskOutput) GoString() string { return s.String() } -// Contains the parameters for CancelReservedInstancesListing. type CancelReservedInstancesListingInput struct { - _ struct{} `type:"structure"` - // The ID of the Reserved Instance listing. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string" required:"true"` + + metadataCancelReservedInstancesListingInput `json:"-" xml:"-"` +} + +type metadataCancelReservedInstancesListingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8742,25 +7636,15 @@ func (s CancelReservedInstancesListingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelReservedInstancesListingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelReservedInstancesListingInput"} - if s.ReservedInstancesListingId == nil { - invalidParams.Add(request.NewErrParamRequired("ReservedInstancesListingId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CancelReservedInstancesListing. type CancelReservedInstancesListingOutput struct { - _ struct{} `type:"structure"` - // The Reserved Instance listing. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"` + + metadataCancelReservedInstancesListingOutput `json:"-" xml:"-"` +} + +type metadataCancelReservedInstancesListingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8775,13 +7659,17 @@ func (s CancelReservedInstancesListingOutput) GoString() string { // Describes a Spot fleet error. type CancelSpotFleetRequestsError struct { - _ struct{} `type:"structure"` - // The error code. Code *string `locationName:"code" type:"string" required:"true" enum:"CancelBatchErrorCode"` // The description for the error code. Message *string `locationName:"message" type:"string" required:"true"` + + metadataCancelSpotFleetRequestsError `json:"-" xml:"-"` +} + +type metadataCancelSpotFleetRequestsError struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8796,13 +7684,17 @@ func (s CancelSpotFleetRequestsError) GoString() string { // Describes a Spot fleet request that was not successfully canceled. type CancelSpotFleetRequestsErrorItem struct { - _ struct{} `type:"structure"` - // The error. Error *CancelSpotFleetRequestsError `locationName:"error" type:"structure" required:"true"` // The ID of the Spot fleet request. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` + + metadataCancelSpotFleetRequestsErrorItem `json:"-" xml:"-"` +} + +type metadataCancelSpotFleetRequestsErrorItem struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8817,8 +7709,6 @@ func (s CancelSpotFleetRequestsErrorItem) GoString() string { // Contains the parameters for CancelSpotFleetRequests. type CancelSpotFleetRequestsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -8831,6 +7721,12 @@ type CancelSpotFleetRequestsInput struct { // Indicates whether to terminate instances for a Spot fleet request if it is // canceled successfully. TerminateInstances *bool `locationName:"terminateInstances" type:"boolean" required:"true"` + + metadataCancelSpotFleetRequestsInput `json:"-" xml:"-"` +} + +type metadataCancelSpotFleetRequestsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8843,31 +7739,19 @@ func (s CancelSpotFleetRequestsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelSpotFleetRequestsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelSpotFleetRequestsInput"} - if s.SpotFleetRequestIds == nil { - invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestIds")) - } - if s.TerminateInstances == nil { - invalidParams.Add(request.NewErrParamRequired("TerminateInstances")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of CancelSpotFleetRequests. type CancelSpotFleetRequestsOutput struct { - _ struct{} `type:"structure"` - // Information about the Spot fleet requests that are successfully canceled. SuccessfulFleetRequests []*CancelSpotFleetRequestsSuccessItem `locationName:"successfulFleetRequestSet" locationNameList:"item" type:"list"` // Information about the Spot fleet requests that are not successfully canceled. UnsuccessfulFleetRequests []*CancelSpotFleetRequestsErrorItem `locationName:"unsuccessfulFleetRequestSet" locationNameList:"item" type:"list"` + + metadataCancelSpotFleetRequestsOutput `json:"-" xml:"-"` +} + +type metadataCancelSpotFleetRequestsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8882,8 +7766,6 @@ func (s CancelSpotFleetRequestsOutput) GoString() string { // Describes a Spot fleet request that was successfully canceled. type CancelSpotFleetRequestsSuccessItem struct { - _ struct{} `type:"structure"` - // The current state of the Spot fleet request. CurrentSpotFleetRequestState *string `locationName:"currentSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"` @@ -8892,6 +7774,12 @@ type CancelSpotFleetRequestsSuccessItem struct { // The ID of the Spot fleet request. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` + + metadataCancelSpotFleetRequestsSuccessItem `json:"-" xml:"-"` +} + +type metadataCancelSpotFleetRequestsSuccessItem struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8906,16 +7794,20 @@ func (s CancelSpotFleetRequestsSuccessItem) GoString() string { // Contains the parameters for CancelSpotInstanceRequests. type CancelSpotInstanceRequestsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // One or more Spot instance request IDs. + // One or more Spot Instance request IDs. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list" required:"true"` + + metadataCancelSpotInstanceRequestsInput `json:"-" xml:"-"` +} + +type metadataCancelSpotInstanceRequestsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8928,25 +7820,16 @@ func (s CancelSpotInstanceRequestsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelSpotInstanceRequestsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelSpotInstanceRequestsInput"} - if s.SpotInstanceRequestIds == nil { - invalidParams.Add(request.NewErrParamRequired("SpotInstanceRequestIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of CancelSpotInstanceRequests. type CancelSpotInstanceRequestsOutput struct { - _ struct{} `type:"structure"` - - // One or more Spot instance requests. + // One or more Spot Instance requests. CancelledSpotInstanceRequests []*CancelledSpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"` + + metadataCancelSpotInstanceRequestsOutput `json:"-" xml:"-"` +} + +type metadataCancelSpotInstanceRequestsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8959,52 +7842,33 @@ func (s CancelSpotInstanceRequestsOutput) GoString() string { return s.String() } -// Describes a request to cancel a Spot instance. +// Describes a request to cancel a Spot Instance. type CancelledSpotInstanceRequest struct { - _ struct{} `type:"structure"` - - // The ID of the Spot instance request. + // The ID of the Spot Instance request. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"` - // The state of the Spot instance request. + // The state of the Spot Instance request. State *string `locationName:"state" type:"string" enum:"CancelSpotInstanceRequestState"` -} - -// String returns the string representation -func (s CancelledSpotInstanceRequest) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s CancelledSpotInstanceRequest) GoString() string { - return s.String() + metadataCancelledSpotInstanceRequest `json:"-" xml:"-"` } -// Describes the ClassicLink DNS support status of a VPC. -type ClassicLinkDnsSupport struct { - _ struct{} `type:"structure"` - - // Indicates whether ClassicLink DNS support is enabled for the VPC. - ClassicLinkDnsSupported *bool `locationName:"classicLinkDnsSupported" type:"boolean"` - - // The ID of the VPC. - VpcId *string `locationName:"vpcId" type:"string"` +type metadataCancelledSpotInstanceRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ClassicLinkDnsSupport) String() string { +func (s CancelledSpotInstanceRequest) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ClassicLinkDnsSupport) GoString() string { +func (s CancelledSpotInstanceRequest) GoString() string { return s.String() } // Describes a linked EC2-Classic instance. type ClassicLinkInstance struct { - _ struct{} `type:"structure"` - // A list of security groups. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"` @@ -9016,6 +7880,12 @@ type ClassicLinkInstance struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` + + metadataClassicLinkInstance `json:"-" xml:"-"` +} + +type metadataClassicLinkInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9030,8 +7900,6 @@ func (s ClassicLinkInstance) GoString() string { // Describes the client-specific data. type ClientData struct { - _ struct{} `type:"structure"` - // A user-defined comment about the disk upload. Comment *string `type:"string"` @@ -9043,6 +7911,12 @@ type ClientData struct { // The time that the disk upload starts. UploadStart *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataClientData `json:"-" xml:"-"` +} + +type metadataClientData struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9055,10 +7929,7 @@ func (s ClientData) GoString() string { return s.String() } -// Contains the parameters for ConfirmProductInstance. type ConfirmProductInstanceInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -9070,6 +7941,12 @@ type ConfirmProductInstanceInput struct { // The product code. This must be a product code that you own. ProductCode *string `type:"string" required:"true"` + + metadataConfirmProductInstanceInput `json:"-" xml:"-"` +} + +type metadataConfirmProductInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9082,26 +7959,7 @@ func (s ConfirmProductInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmProductInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmProductInstanceInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.ProductCode == nil { - invalidParams.Add(request.NewErrParamRequired("ProductCode")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of ConfirmProductInstance. type ConfirmProductInstanceOutput struct { - _ struct{} `type:"structure"` - // The AWS account ID of the instance owner. This is only present if the product // code is attached to the instance. OwnerId *string `locationName:"ownerId" type:"string"` @@ -9109,6 +7967,12 @@ type ConfirmProductInstanceOutput struct { // The return value of the request. Returns true if the specified product code // is owned by the requester and associated with the specified instance. Return *bool `locationName:"return" type:"boolean"` + + metadataConfirmProductInstanceOutput `json:"-" xml:"-"` +} + +type metadataConfirmProductInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9123,8 +7987,6 @@ func (s ConfirmProductInstanceOutput) GoString() string { // Describes a conversion task. type ConversionTask struct { - _ struct{} `type:"structure"` - // The ID of the conversion task. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"` @@ -9148,6 +8010,12 @@ type ConversionTask struct { // Any tags assigned to the task. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` + + metadataConversionTask `json:"-" xml:"-"` +} + +type metadataConversionTask struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9160,10 +8028,7 @@ func (s ConversionTask) GoString() string { return s.String() } -// Contains the parameters for CopyImage. type CopyImageInput struct { - _ struct{} `type:"structure"` - // Unique, case-sensitive identifier you provide to ensure idempotency of the // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -9178,23 +8043,6 @@ type CopyImageInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // Specifies whether the destination snapshots of the copied image should be - // encrypted. The default CMK for EBS is used unless a non-default AWS Key Management - // Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see - // Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) - // in the Amazon Elastic Compute Cloud User Guide. - Encrypted *bool `locationName:"encrypted" type:"boolean"` - - // The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when - // encrypting the snapshots of an image during a copy operation. This parameter - // is only required if you want to use a non-default CMK; if this parameter - // is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms - // namespace, followed by the region of the CMK, the AWS account ID of the CMK - // owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. - // The specified CMK must exist in the region that the snapshot is being copied - // to. If a KmsKeyId is specified, the Encrypted flag must also be set. - KmsKeyId *string `locationName:"kmsKeyId" type:"string"` - // The name of the new AMI in the destination region. Name *string `type:"string" required:"true"` @@ -9203,6 +8051,12 @@ type CopyImageInput struct { // The name of the region that contains the AMI to copy. SourceRegion *string `type:"string" required:"true"` + + metadataCopyImageInput `json:"-" xml:"-"` +} + +type metadataCopyImageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9215,31 +8069,15 @@ func (s CopyImageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CopyImageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CopyImageInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.SourceImageId == nil { - invalidParams.Add(request.NewErrParamRequired("SourceImageId")) - } - if s.SourceRegion == nil { - invalidParams.Add(request.NewErrParamRequired("SourceRegion")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CopyImage. type CopyImageOutput struct { - _ struct{} `type:"structure"` - // The ID of the new AMI. ImageId *string `locationName:"imageId" type:"string"` + + metadataCopyImageOutput `json:"-" xml:"-"` +} + +type metadataCopyImageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9252,10 +8090,7 @@ func (s CopyImageOutput) GoString() string { return s.String() } -// Contains the parameters for CopySnapshot. type CopySnapshotInput struct { - _ struct{} `type:"structure"` - // A description for the EBS snapshot. Description *string `type:"string"` @@ -9313,6 +8148,12 @@ type CopySnapshotInput struct { // The ID of the EBS snapshot to copy. SourceSnapshotId *string `type:"string" required:"true"` + + metadataCopySnapshotInput `json:"-" xml:"-"` +} + +type metadataCopySnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9325,28 +8166,15 @@ func (s CopySnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CopySnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"} - if s.SourceRegion == nil { - invalidParams.Add(request.NewErrParamRequired("SourceRegion")) - } - if s.SourceSnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SourceSnapshotId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CopySnapshot. type CopySnapshotOutput struct { - _ struct{} `type:"structure"` - // The ID of the new snapshot. SnapshotId *string `locationName:"snapshotId" type:"string"` + + metadataCopySnapshotOutput `json:"-" xml:"-"` +} + +type metadataCopySnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9359,10 +8187,7 @@ func (s CopySnapshotOutput) GoString() string { return s.String() } -// Contains the parameters for CreateCustomerGateway. type CreateCustomerGatewayInput struct { - _ struct{} `type:"structure"` - // For devices that support BGP, the customer gateway's BGP ASN. // // Default: 65000 @@ -9380,6 +8205,12 @@ type CreateCustomerGatewayInput struct { // The type of VPN connection that this customer gateway supports (ipsec.1). Type *string `type:"string" required:"true" enum:"GatewayType"` + + metadataCreateCustomerGatewayInput `json:"-" xml:"-"` +} + +type metadataCreateCustomerGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9392,31 +8223,15 @@ func (s CreateCustomerGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCustomerGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCustomerGatewayInput"} - if s.BgpAsn == nil { - invalidParams.Add(request.NewErrParamRequired("BgpAsn")) - } - if s.PublicIp == nil { - invalidParams.Add(request.NewErrParamRequired("PublicIp")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateCustomerGateway. type CreateCustomerGatewayOutput struct { - _ struct{} `type:"structure"` - // Information about the customer gateway. CustomerGateway *CustomerGateway `locationName:"customerGateway" type:"structure"` + + metadataCreateCustomerGatewayOutput `json:"-" xml:"-"` +} + +type metadataCreateCustomerGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9429,10 +8244,7 @@ func (s CreateCustomerGatewayOutput) GoString() string { return s.String() } -// Contains the parameters for CreateDhcpOptions. type CreateDhcpOptionsInput struct { - _ struct{} `type:"structure"` - // A DHCP configuration option. DhcpConfigurations []*NewDhcpConfiguration `locationName:"dhcpConfiguration" locationNameList:"item" type:"list" required:"true"` @@ -9441,6 +8253,12 @@ type CreateDhcpOptionsInput struct { // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + metadataCreateDhcpOptionsInput `json:"-" xml:"-"` +} + +type metadataCreateDhcpOptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9453,25 +8271,15 @@ func (s CreateDhcpOptionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDhcpOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDhcpOptionsInput"} - if s.DhcpConfigurations == nil { - invalidParams.Add(request.NewErrParamRequired("DhcpConfigurations")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateDhcpOptions. type CreateDhcpOptionsOutput struct { - _ struct{} `type:"structure"` - // A set of DHCP options. DhcpOptions *DhcpOptions `locationName:"dhcpOptions" type:"structure"` + + metadataCreateDhcpOptionsOutput `json:"-" xml:"-"` +} + +type metadataCreateDhcpOptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9484,10 +8292,7 @@ func (s CreateDhcpOptionsOutput) GoString() string { return s.String() } -// Contains the parameters for CreateFlowLogs. type CreateFlowLogsInput struct { - _ struct{} `type:"structure"` - // Unique, case-sensitive identifier you provide to ensure the idempotency of // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). ClientToken *string `type:"string"` @@ -9500,8 +8305,6 @@ type CreateFlowLogsInput struct { LogGroupName *string `type:"string" required:"true"` // One or more subnet, network interface, or VPC IDs. - // - // Constraints: Maximum of 1000 resources ResourceIds []*string `locationName:"ResourceId" locationNameList:"item" type:"list" required:"true"` // The type of resource on which to create the flow log. @@ -9509,6 +8312,12 @@ type CreateFlowLogsInput struct { // The type of traffic to log. TrafficType *string `type:"string" required:"true" enum:"TrafficType"` + + metadataCreateFlowLogsInput `json:"-" xml:"-"` +} + +type metadataCreateFlowLogsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9521,35 +8330,7 @@ func (s CreateFlowLogsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateFlowLogsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateFlowLogsInput"} - if s.DeliverLogsPermissionArn == nil { - invalidParams.Add(request.NewErrParamRequired("DeliverLogsPermissionArn")) - } - if s.LogGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("LogGroupName")) - } - if s.ResourceIds == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceIds")) - } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } - if s.TrafficType == nil { - invalidParams.Add(request.NewErrParamRequired("TrafficType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateFlowLogs. type CreateFlowLogsOutput struct { - _ struct{} `type:"structure"` - // Unique, case-sensitive identifier you provide to ensure the idempotency of // the request. ClientToken *string `locationName:"clientToken" type:"string"` @@ -9559,6 +8340,12 @@ type CreateFlowLogsOutput struct { // Information about the flow logs that could not be created successfully. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"` + + metadataCreateFlowLogsOutput `json:"-" xml:"-"` +} + +type metadataCreateFlowLogsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9571,10 +8358,7 @@ func (s CreateFlowLogsOutput) GoString() string { return s.String() } -// Contains the parameters for CreateImage. type CreateImageInput struct { - _ struct{} `type:"structure"` - // Information about one or more block device mappings. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"` @@ -9597,11 +8381,18 @@ type CreateImageInput struct { // at-signs (@), or underscores(_) Name *string `locationName:"name" type:"string" required:"true"` - // By default, Amazon EC2 attempts to shut down and reboot the instance before - // creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't - // shut down the instance before creating the image. When this option is used, - // file system integrity on the created image can't be guaranteed. + // By default, this parameter is set to false, which means Amazon EC2 attempts + // to shut down the instance cleanly before image creation and then reboots + // the instance. When the parameter is set to true, Amazon EC2 doesn't shut + // down the instance before creating the image. When this option is used, file + // system integrity on the created image can't be guaranteed. NoReboot *bool `locationName:"noReboot" type:"boolean"` + + metadataCreateImageInput `json:"-" xml:"-"` +} + +type metadataCreateImageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9614,28 +8405,15 @@ func (s CreateImageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateImageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateImageInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateImage. type CreateImageOutput struct { - _ struct{} `type:"structure"` - // The ID of the new AMI. ImageId *string `locationName:"imageId" type:"string"` + + metadataCreateImageOutput `json:"-" xml:"-"` +} + +type metadataCreateImageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9648,10 +8426,7 @@ func (s CreateImageOutput) GoString() string { return s.String() } -// Contains the parameters for CreateInstanceExportTask. type CreateInstanceExportTaskInput struct { - _ struct{} `type:"structure"` - // A description for the conversion task or the resource being exported. The // maximum length is 255 bytes. Description *string `locationName:"description" type:"string"` @@ -9664,6 +8439,12 @@ type CreateInstanceExportTaskInput struct { // The target virtualization environment. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"` + + metadataCreateInstanceExportTaskInput `json:"-" xml:"-"` +} + +type metadataCreateInstanceExportTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9676,25 +8457,15 @@ func (s CreateInstanceExportTaskInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateInstanceExportTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateInstanceExportTaskInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output for CreateInstanceExportTask. type CreateInstanceExportTaskOutput struct { - _ struct{} `type:"structure"` - // Information about the instance export task. ExportTask *ExportTask `locationName:"exportTask" type:"structure"` + + metadataCreateInstanceExportTaskOutput `json:"-" xml:"-"` +} + +type metadataCreateInstanceExportTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9707,15 +8478,18 @@ func (s CreateInstanceExportTaskOutput) GoString() string { return s.String() } -// Contains the parameters for CreateInternetGateway. type CreateInternetGatewayInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + metadataCreateInternetGatewayInput `json:"-" xml:"-"` +} + +type metadataCreateInternetGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9728,12 +8502,15 @@ func (s CreateInternetGatewayInput) GoString() string { return s.String() } -// Contains the output of CreateInternetGateway. type CreateInternetGatewayOutput struct { - _ struct{} `type:"structure"` - // Information about the Internet gateway. InternetGateway *InternetGateway `locationName:"internetGateway" type:"structure"` + + metadataCreateInternetGatewayOutput `json:"-" xml:"-"` +} + +type metadataCreateInternetGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9746,10 +8523,7 @@ func (s CreateInternetGatewayOutput) GoString() string { return s.String() } -// Contains the parameters for CreateKeyPair. type CreateKeyPairInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -9760,6 +8534,12 @@ type CreateKeyPairInput struct { // // Constraints: Up to 255 ASCII characters KeyName *string `type:"string" required:"true"` + + metadataCreateKeyPairInput `json:"-" xml:"-"` +} + +type metadataCreateKeyPairInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9772,23 +8552,8 @@ func (s CreateKeyPairInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateKeyPairInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateKeyPairInput"} - if s.KeyName == nil { - invalidParams.Add(request.NewErrParamRequired("KeyName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a key pair. type CreateKeyPairOutput struct { - _ struct{} `type:"structure"` - // The SHA-1 digest of the DER encoded private key. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"` @@ -9797,89 +8562,25 @@ type CreateKeyPairOutput struct { // The name of the key pair. KeyName *string `locationName:"keyName" type:"string"` -} - -// String returns the string representation -func (s CreateKeyPairOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateKeyPairOutput) GoString() string { - return s.String() -} - -// Contains the parameters for CreateNatGateway. -type CreateNatGatewayInput struct { - _ struct{} `type:"structure"` - - // The allocation ID of an Elastic IP address to associate with the NAT gateway. - // If the Elastic IP address is associated with another resource, you must first - // disassociate it. - AllocationId *string `type:"string" required:"true"` - - // Unique, case-sensitive identifier you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). - // - // Constraint: Maximum 64 ASCII characters. - ClientToken *string `type:"string"` - - // The subnet in which to create the NAT gateway. - SubnetId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateNatGatewayInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateNatGatewayInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateNatGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateNatGatewayInput"} - if s.AllocationId == nil { - invalidParams.Add(request.NewErrParamRequired("AllocationId")) - } - if s.SubnetId == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateKeyPairOutput `json:"-" xml:"-"` } -// Contains the output of CreateNatGateway. -type CreateNatGatewayOutput struct { - _ struct{} `type:"structure"` - - // Unique, case-sensitive identifier to ensure the idempotency of the request. - // Only returned if a client token was provided in the request. - ClientToken *string `locationName:"clientToken" type:"string"` - - // Information about the NAT gateway. - NatGateway *NatGateway `locationName:"natGateway" type:"structure"` +type metadataCreateKeyPairOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateNatGatewayOutput) String() string { +func (s CreateKeyPairOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateNatGatewayOutput) GoString() string { +func (s CreateKeyPairOutput) GoString() string { return s.String() } -// Contains the parameters for CreateNetworkAclEntry. type CreateNetworkAclEntryInput struct { - _ struct{} `type:"structure"` - // The network range to allow or deny, in CIDR notation (for example 172.16.0.0/24). CidrBlock *string `locationName:"cidrBlock" type:"string" required:"true"` @@ -9912,9 +8613,14 @@ type CreateNetworkAclEntryInput struct { // The rule number for the entry (for example, 100). ACL entries are processed // in ascending order by rule number. // - // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 - // is reserved for internal use. + // Constraints: Positive integer from 1 to 32766 RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"` + + metadataCreateNetworkAclEntryInput `json:"-" xml:"-"` +} + +type metadataCreateNetworkAclEntryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9927,36 +8633,12 @@ func (s CreateNetworkAclEntryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateNetworkAclEntryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclEntryInput"} - if s.CidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("CidrBlock")) - } - if s.Egress == nil { - invalidParams.Add(request.NewErrParamRequired("Egress")) - } - if s.NetworkAclId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkAclId")) - } - if s.Protocol == nil { - invalidParams.Add(request.NewErrParamRequired("Protocol")) - } - if s.RuleAction == nil { - invalidParams.Add(request.NewErrParamRequired("RuleAction")) - } - if s.RuleNumber == nil { - invalidParams.Add(request.NewErrParamRequired("RuleNumber")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateNetworkAclEntryOutput struct { + metadataCreateNetworkAclEntryOutput `json:"-" xml:"-"` } -type CreateNetworkAclEntryOutput struct { - _ struct{} `type:"structure"` +type metadataCreateNetworkAclEntryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9969,10 +8651,7 @@ func (s CreateNetworkAclEntryOutput) GoString() string { return s.String() } -// Contains the parameters for CreateNetworkAcl. type CreateNetworkAclInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -9981,6 +8660,12 @@ type CreateNetworkAclInput struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string" required:"true"` + + metadataCreateNetworkAclInput `json:"-" xml:"-"` +} + +type metadataCreateNetworkAclInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9993,25 +8678,15 @@ func (s CreateNetworkAclInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateNetworkAclInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclInput"} - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateNetworkAcl. type CreateNetworkAclOutput struct { - _ struct{} `type:"structure"` - // Information about the network ACL. NetworkAcl *NetworkAcl `locationName:"networkAcl" type:"structure"` + + metadataCreateNetworkAclOutput `json:"-" xml:"-"` +} + +type metadataCreateNetworkAclOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10024,10 +8699,7 @@ func (s CreateNetworkAclOutput) GoString() string { return s.String() } -// Contains the parameters for CreateNetworkInterface. type CreateNetworkInterfaceInput struct { - _ struct{} `type:"structure"` - // A description for the network interface. Description *string `locationName:"description" type:"string"` @@ -10062,6 +8734,12 @@ type CreateNetworkInterfaceInput struct { // The ID of the subnet to associate with the network interface. SubnetId *string `locationName:"subnetId" type:"string" required:"true"` + + metadataCreateNetworkInterfaceInput `json:"-" xml:"-"` +} + +type metadataCreateNetworkInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10074,35 +8752,15 @@ func (s CreateNetworkInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateNetworkInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfaceInput"} - if s.SubnetId == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetId")) - } - if s.PrivateIpAddresses != nil { - for i, v := range s.PrivateIpAddresses { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateNetworkInterface. type CreateNetworkInterfaceOutput struct { - _ struct{} `type:"structure"` - // Information about the network interface. NetworkInterface *NetworkInterface `locationName:"networkInterface" type:"structure"` + + metadataCreateNetworkInterfaceOutput `json:"-" xml:"-"` +} + +type metadataCreateNetworkInterfaceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10115,10 +8773,7 @@ func (s CreateNetworkInterfaceOutput) GoString() string { return s.String() } -// Contains the parameters for CreatePlacementGroup. type CreatePlacementGroupInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -10132,6 +8787,12 @@ type CreatePlacementGroupInput struct { // The placement strategy. Strategy *string `locationName:"strategy" type:"string" required:"true" enum:"PlacementStrategy"` + + metadataCreatePlacementGroupInput `json:"-" xml:"-"` +} + +type metadataCreatePlacementGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10144,24 +8805,12 @@ func (s CreatePlacementGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePlacementGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePlacementGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.Strategy == nil { - invalidParams.Add(request.NewErrParamRequired("Strategy")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreatePlacementGroupOutput struct { + metadataCreatePlacementGroupOutput `json:"-" xml:"-"` } -type CreatePlacementGroupOutput struct { - _ struct{} `type:"structure"` +type metadataCreatePlacementGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10174,10 +8823,7 @@ func (s CreatePlacementGroupOutput) GoString() string { return s.String() } -// Contains the parameters for CreateReservedInstancesListing. type CreateReservedInstancesListingInput struct { - _ struct{} `type:"structure"` - // Unique, case-sensitive identifier you provide to ensure idempotency of your // listings. This helps avoid duplicate listings. For more information, see // Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). @@ -10195,6 +8841,12 @@ type CreateReservedInstancesListingInput struct { // The ID of the active Reserved Instance. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string" required:"true"` + + metadataCreateReservedInstancesListingInput `json:"-" xml:"-"` +} + +type metadataCreateReservedInstancesListingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10207,34 +8859,15 @@ func (s CreateReservedInstancesListingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReservedInstancesListingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReservedInstancesListingInput"} - if s.ClientToken == nil { - invalidParams.Add(request.NewErrParamRequired("ClientToken")) - } - if s.InstanceCount == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceCount")) - } - if s.PriceSchedules == nil { - invalidParams.Add(request.NewErrParamRequired("PriceSchedules")) - } - if s.ReservedInstancesId == nil { - invalidParams.Add(request.NewErrParamRequired("ReservedInstancesId")) - } +type CreateReservedInstancesListingOutput struct { + // Information about the Reserved Instances listing. + ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateReservedInstancesListingOutput `json:"-" xml:"-"` } -// Contains the output of CreateReservedInstancesListing. -type CreateReservedInstancesListingOutput struct { - _ struct{} `type:"structure"` - - // Information about the Reserved Instance listing. - ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"` +type metadataCreateReservedInstancesListingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10247,10 +8880,7 @@ func (s CreateReservedInstancesListingOutput) GoString() string { return s.String() } -// Contains the parameters for CreateRoute. type CreateRouteInput struct { - _ struct{} `type:"structure"` - // The CIDR address block used for the destination match. Routing decisions // are based on the most specific match. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string" required:"true"` @@ -10269,9 +8899,6 @@ type CreateRouteInput struct { // an instance ID unless exactly one network interface is attached. InstanceId *string `locationName:"instanceId" type:"string"` - // The ID of a NAT gateway. - NatGatewayId *string `locationName:"natGatewayId" type:"string"` - // The ID of a network interface. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` @@ -10280,6 +8907,12 @@ type CreateRouteInput struct { // The ID of a VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` + + metadataCreateRouteInput `json:"-" xml:"-"` +} + +type metadataCreateRouteInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10292,28 +8925,15 @@ func (s CreateRouteInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRouteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRouteInput"} - if s.DestinationCidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) - } - if s.RouteTableId == nil { - invalidParams.Add(request.NewErrParamRequired("RouteTableId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateRoute. type CreateRouteOutput struct { - _ struct{} `type:"structure"` - // Returns true if the request succeeds; otherwise, it returns an error. Return *bool `locationName:"return" type:"boolean"` + + metadataCreateRouteOutput `json:"-" xml:"-"` +} + +type metadataCreateRouteOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10326,10 +8946,7 @@ func (s CreateRouteOutput) GoString() string { return s.String() } -// Contains the parameters for CreateRouteTable. type CreateRouteTableInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -10338,6 +8955,12 @@ type CreateRouteTableInput struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string" required:"true"` + + metadataCreateRouteTableInput `json:"-" xml:"-"` +} + +type metadataCreateRouteTableInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10350,25 +8973,15 @@ func (s CreateRouteTableInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRouteTableInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRouteTableInput"} - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateRouteTable. type CreateRouteTableOutput struct { - _ struct{} `type:"structure"` - // Information about the route table. RouteTable *RouteTable `locationName:"routeTable" type:"structure"` + + metadataCreateRouteTableOutput `json:"-" xml:"-"` +} + +type metadataCreateRouteTableOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10381,17 +8994,14 @@ func (s CreateRouteTableOutput) GoString() string { return s.String() } -// Contains the parameters for CreateSecurityGroup. type CreateSecurityGroupInput struct { - _ struct{} `type:"structure"` - // A description for the security group. This is informational only. // // Constraints: Up to 255 characters in length // // Constraints for EC2-Classic: ASCII characters // - // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$* + // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$* Description *string `locationName:"GroupDescription" type:"string" required:"true"` // Checks whether you have the required permissions for the action, without @@ -10406,11 +9016,17 @@ type CreateSecurityGroupInput struct { // // Constraints for EC2-Classic: ASCII characters // - // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$* + // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$* GroupName *string `type:"string" required:"true"` // [EC2-VPC] The ID of the VPC. Required for EC2-VPC. VpcId *string `type:"string"` + + metadataCreateSecurityGroupInput `json:"-" xml:"-"` +} + +type metadataCreateSecurityGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10423,28 +9039,15 @@ func (s CreateSecurityGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSecurityGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSecurityGroupInput"} - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateSecurityGroup. type CreateSecurityGroupOutput struct { - _ struct{} `type:"structure"` - // The ID of the security group. GroupId *string `locationName:"groupId" type:"string"` + + metadataCreateSecurityGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateSecurityGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10457,10 +9060,7 @@ func (s CreateSecurityGroupOutput) GoString() string { return s.String() } -// Contains the parameters for CreateSnapshot. type CreateSnapshotInput struct { - _ struct{} `type:"structure"` - // A description for the snapshot. Description *string `type:"string"` @@ -10472,6 +9072,12 @@ type CreateSnapshotInput struct { // The ID of the EBS volume. VolumeId *string `type:"string" required:"true"` + + metadataCreateSnapshotInput `json:"-" xml:"-"` +} + +type metadataCreateSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10484,24 +9090,9 @@ func (s CreateSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"} - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the parameters for CreateSpotDatafeedSubscription. type CreateSpotDatafeedSubscriptionInput struct { - _ struct{} `type:"structure"` - - // The Amazon S3 bucket in which to store the Spot instance data feed. + // The Amazon S3 bucket in which to store the Spot Instance data feed. Bucket *string `locationName:"bucket" type:"string" required:"true"` // Checks whether you have the required permissions for the action, without @@ -10512,6 +9103,12 @@ type CreateSpotDatafeedSubscriptionInput struct { // A prefix for the data feed file names. Prefix *string `locationName:"prefix" type:"string"` + + metadataCreateSpotDatafeedSubscriptionInput `json:"-" xml:"-"` +} + +type metadataCreateSpotDatafeedSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10524,25 +9121,16 @@ func (s CreateSpotDatafeedSubscriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSpotDatafeedSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSpotDatafeedSubscriptionInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of CreateSpotDatafeedSubscription. type CreateSpotDatafeedSubscriptionOutput struct { - _ struct{} `type:"structure"` - - // The Spot instance data feed subscription. + // The Spot Instance data feed subscription. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"` + + metadataCreateSpotDatafeedSubscriptionOutput `json:"-" xml:"-"` +} + +type metadataCreateSpotDatafeedSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10555,14 +9143,10 @@ func (s CreateSpotDatafeedSubscriptionOutput) GoString() string { return s.String() } -// Contains the parameters for CreateSubnet. type CreateSubnetInput struct { - _ struct{} `type:"structure"` - // The Availability Zone for the subnet. // - // Default: AWS selects one for you. If you create more than one subnet in - // your VPC, we may not necessarily select a different zone for each subnet. + // Default: Amazon EC2 selects one for you (recommended). AvailabilityZone *string `type:"string"` // The network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. @@ -10576,6 +9160,12 @@ type CreateSubnetInput struct { // The ID of the VPC. VpcId *string `type:"string" required:"true"` + + metadataCreateSubnetInput `json:"-" xml:"-"` +} + +type metadataCreateSubnetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10588,28 +9178,15 @@ func (s CreateSubnetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSubnetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSubnetInput"} - if s.CidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("CidrBlock")) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateSubnet. type CreateSubnetOutput struct { - _ struct{} `type:"structure"` - // Information about the subnet. Subnet *Subnet `locationName:"subnet" type:"structure"` + + metadataCreateSubnetOutput `json:"-" xml:"-"` +} + +type metadataCreateSubnetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10622,10 +9199,7 @@ func (s CreateSubnetOutput) GoString() string { return s.String() } -// Contains the parameters for CreateTags. type CreateTagsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -10639,6 +9213,12 @@ type CreateTagsInput struct { // the tag to have a value, specify the parameter with no value, and we set // the value to an empty string. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list" required:"true"` + + metadataCreateTagsInput `json:"-" xml:"-"` +} + +type metadataCreateTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10651,24 +9231,12 @@ func (s CreateTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"} - if s.Resources == nil { - invalidParams.Add(request.NewErrParamRequired("Resources")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateTagsOutput struct { + metadataCreateTagsOutput `json:"-" xml:"-"` } -type CreateTagsOutput struct { - _ struct{} `type:"structure"` +type metadataCreateTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10681,10 +9249,7 @@ func (s CreateTagsOutput) GoString() string { return s.String() } -// Contains the parameters for CreateVolume. type CreateVolumeInput struct { - _ struct{} `type:"structure"` - // The Availability Zone in which to create the volume. Use DescribeAvailabilityZones // to list the Availability Zones that are currently available to you. AvailabilityZone *string `type:"string" required:"true"` @@ -10704,11 +9269,11 @@ type CreateVolumeInput struct { // in the Amazon Elastic Compute Cloud User Guide. Encrypted *bool `locationName:"encrypted" type:"boolean"` - // Only valid for Provisioned IOPS SSD volumes. The number of I/O operations + // Only valid for Provisioned IOPS (SSD) volumes. The number of I/O operations // per second (IOPS) to provision for the volume, with a maximum ratio of 30 // IOPS/GiB. // - // Constraint: Range is 100 to 20000 for Provisioned IOPS SSD volumes + // Constraint: Range is 100 to 20000 for Provisioned IOPS (SSD) volumes Iops *int64 `type:"integer"` // The full ARN of the AWS Key Management Service (AWS KMS) customer master @@ -10722,9 +9287,9 @@ type CreateVolumeInput struct { // The size of the volume, in GiBs. // - // Constraints: 1-16384 for gp2, 4-16384 for io1, 500-16384 for st1, 500-16384 - // for sc1, and 1-1024 for standard. If you specify a snapshot, the volume size - // must be equal to or larger than the snapshot size. + // Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 + // for io1 volumes. If you specify a snapshot, the volume size must be equal + // to or larger than the snapshot size. // // Default: If you're creating the volume from a snapshot and don't specify // a volume size, the default is the snapshot size. @@ -10733,12 +9298,17 @@ type CreateVolumeInput struct { // The snapshot from which to create the volume. SnapshotId *string `type:"string"` - // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned - // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard - // for Magnetic volumes. + // The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for + // Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes. // // Default: standard VolumeType *string `type:"string" enum:"VolumeType"` + + metadataCreateVolumeInput `json:"-" xml:"-"` +} + +type metadataCreateVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10751,24 +9321,9 @@ func (s CreateVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVolumeInput"} - if s.AvailabilityZone == nil { - invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes the user or group to be added or removed from the permissions for // a volume. type CreateVolumePermission struct { - _ struct{} `type:"structure"` - // The specific group that is to be added or removed from a volume's list of // create volume permissions. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"` @@ -10776,6 +9331,12 @@ type CreateVolumePermission struct { // The specific AWS account ID that is to be added or removed from a volume's // list of create volume permissions. UserId *string `locationName:"userId" type:"string"` + + metadataCreateVolumePermission `json:"-" xml:"-"` +} + +type metadataCreateVolumePermission struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10790,8 +9351,6 @@ func (s CreateVolumePermission) GoString() string { // Describes modifications to the permissions for a volume. type CreateVolumePermissionModifications struct { - _ struct{} `type:"structure"` - // Adds a specific AWS account ID or group to a volume's list of create volume // permissions. Add []*CreateVolumePermission `locationNameList:"item" type:"list"` @@ -10799,6 +9358,12 @@ type CreateVolumePermissionModifications struct { // Removes a specific AWS account ID or group from a volume's list of create // volume permissions. Remove []*CreateVolumePermission `locationNameList:"item" type:"list"` + + metadataCreateVolumePermissionModifications `json:"-" xml:"-"` +} + +type metadataCreateVolumePermissionModifications struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10811,10 +9376,7 @@ func (s CreateVolumePermissionModifications) GoString() string { return s.String() } -// Contains the parameters for CreateVpcEndpoint. type CreateVpcEndpointInput struct { - _ struct{} `type:"structure"` - // Unique, case-sensitive identifier you provide to ensure the idempotency of // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string `type:"string"` @@ -10839,6 +9401,12 @@ type CreateVpcEndpointInput struct { // The ID of the VPC in which the endpoint will be used. VpcId *string `type:"string" required:"true"` + + metadataCreateVpcEndpointInput `json:"-" xml:"-"` +} + +type metadataCreateVpcEndpointInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10851,32 +9419,19 @@ func (s CreateVpcEndpointInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVpcEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointInput"} - if s.ServiceName == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceName")) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateVpcEndpoint. type CreateVpcEndpointOutput struct { - _ struct{} `type:"structure"` - // Unique, case-sensitive identifier you provide to ensure the idempotency of // the request. ClientToken *string `locationName:"clientToken" type:"string"` // Information about the endpoint. VpcEndpoint *VpcEndpoint `locationName:"vpcEndpoint" type:"structure"` + + metadataCreateVpcEndpointOutput `json:"-" xml:"-"` +} + +type metadataCreateVpcEndpointOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10889,10 +9444,7 @@ func (s CreateVpcEndpointOutput) GoString() string { return s.String() } -// Contains the parameters for CreateVpc. type CreateVpcInput struct { - _ struct{} `type:"structure"` - // The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16. CidrBlock *string `type:"string" required:"true"` @@ -10902,17 +9454,20 @@ type CreateVpcInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // The tenancy options for instances launched into the VPC. For default, instances - // are launched with shared tenancy by default. You can launch instances with - // any tenancy into a shared tenancy VPC. For dedicated, instances are launched - // as dedicated tenancy instances by default. You can only launch instances - // with a tenancy of dedicated or host into a dedicated tenancy VPC. - // - // Important: The host value cannot be used with this parameter. Use the default - // or dedicated values only. + // The supported tenancy options for instances launched into the VPC. A value + // of default means that instances can be launched with any tenancy; a value + // of dedicated means all instances launched into the VPC are launched as dedicated + // tenancy instances regardless of the tenancy assigned to the instance at launch. + // Dedicated tenancy instances run on single-tenant hardware. // // Default: default InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"` + + metadataCreateVpcInput `json:"-" xml:"-"` +} + +type metadataCreateVpcInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10925,25 +9480,15 @@ func (s CreateVpcInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVpcInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVpcInput"} - if s.CidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("CidrBlock")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateVpc. type CreateVpcOutput struct { - _ struct{} `type:"structure"` - // Information about the VPC. Vpc *Vpc `locationName:"vpc" type:"structure"` + + metadataCreateVpcOutput `json:"-" xml:"-"` +} + +type metadataCreateVpcOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10956,10 +9501,7 @@ func (s CreateVpcOutput) GoString() string { return s.String() } -// Contains the parameters for CreateVpcPeeringConnection. type CreateVpcPeeringConnectionInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -10976,6 +9518,12 @@ type CreateVpcPeeringConnectionInput struct { // The ID of the requester VPC. VpcId *string `locationName:"vpcId" type:"string"` + + metadataCreateVpcPeeringConnectionInput `json:"-" xml:"-"` +} + +type metadataCreateVpcPeeringConnectionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10988,12 +9536,15 @@ func (s CreateVpcPeeringConnectionInput) GoString() string { return s.String() } -// Contains the output of CreateVpcPeeringConnection. type CreateVpcPeeringConnectionOutput struct { - _ struct{} `type:"structure"` - // Information about the VPC peering connection. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"` + + metadataCreateVpcPeeringConnectionOutput `json:"-" xml:"-"` +} + +type metadataCreateVpcPeeringConnectionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11006,10 +9557,7 @@ func (s CreateVpcPeeringConnectionOutput) GoString() string { return s.String() } -// Contains the parameters for CreateVpnConnection. type CreateVpnConnectionInput struct { - _ struct{} `type:"structure"` - // The ID of the customer gateway. CustomerGatewayId *string `type:"string" required:"true"` @@ -11031,6 +9579,12 @@ type CreateVpnConnectionInput struct { // The ID of the virtual private gateway. VpnGatewayId *string `type:"string" required:"true"` + + metadataCreateVpnConnectionInput `json:"-" xml:"-"` +} + +type metadataCreateVpnConnectionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11043,31 +9597,15 @@ func (s CreateVpnConnectionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVpnConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionInput"} - if s.CustomerGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.VpnGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("VpnGatewayId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateVpnConnection. type CreateVpnConnectionOutput struct { - _ struct{} `type:"structure"` - // Information about the VPN connection. VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"` + + metadataCreateVpnConnectionOutput `json:"-" xml:"-"` +} + +type metadataCreateVpnConnectionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11080,15 +9618,18 @@ func (s CreateVpnConnectionOutput) GoString() string { return s.String() } -// Contains the parameters for CreateVpnConnectionRoute. type CreateVpnConnectionRouteInput struct { - _ struct{} `type:"structure"` - // The CIDR block associated with the local subnet of the customer network. DestinationCidrBlock *string `type:"string" required:"true"` // The ID of the VPN connection. VpnConnectionId *string `type:"string" required:"true"` + + metadataCreateVpnConnectionRouteInput `json:"-" xml:"-"` +} + +type metadataCreateVpnConnectionRouteInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11101,24 +9642,12 @@ func (s CreateVpnConnectionRouteInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVpnConnectionRouteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionRouteInput"} - if s.DestinationCidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) - } - if s.VpnConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("VpnConnectionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateVpnConnectionRouteOutput struct { + metadataCreateVpnConnectionRouteOutput `json:"-" xml:"-"` } -type CreateVpnConnectionRouteOutput struct { - _ struct{} `type:"structure"` +type metadataCreateVpnConnectionRouteOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11131,10 +9660,7 @@ func (s CreateVpnConnectionRouteOutput) GoString() string { return s.String() } -// Contains the parameters for CreateVpnGateway. type CreateVpnGatewayInput struct { - _ struct{} `type:"structure"` - // The Availability Zone for the virtual private gateway. AvailabilityZone *string `type:"string"` @@ -11146,6 +9672,12 @@ type CreateVpnGatewayInput struct { // The type of VPN connection this virtual private gateway supports. Type *string `type:"string" required:"true" enum:"GatewayType"` + + metadataCreateVpnGatewayInput `json:"-" xml:"-"` +} + +type metadataCreateVpnGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11158,25 +9690,15 @@ func (s CreateVpnGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVpnGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVpnGatewayInput"} - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateVpnGateway. type CreateVpnGatewayOutput struct { - _ struct{} `type:"structure"` - // Information about the virtual private gateway. VpnGateway *VpnGateway `locationName:"vpnGateway" type:"structure"` + + metadataCreateVpnGatewayOutput `json:"-" xml:"-"` +} + +type metadataCreateVpnGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11191,8 +9713,6 @@ func (s CreateVpnGatewayOutput) GoString() string { // Describes a customer gateway. type CustomerGateway struct { - _ struct{} `type:"structure"` - // The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number // (ASN). BgpAsn *string `locationName:"bgpAsn" type:"string"` @@ -11212,6 +9732,12 @@ type CustomerGateway struct { // The type of VPN connection the customer gateway supports (ipsec.1). Type *string `locationName:"type" type:"string"` + + metadataCustomerGateway `json:"-" xml:"-"` +} + +type metadataCustomerGateway struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11224,10 +9750,7 @@ func (s CustomerGateway) GoString() string { return s.String() } -// Contains the parameters for DeleteCustomerGateway. type DeleteCustomerGatewayInput struct { - _ struct{} `type:"structure"` - // The ID of the customer gateway. CustomerGatewayId *string `type:"string" required:"true"` @@ -11236,6 +9759,12 @@ type DeleteCustomerGatewayInput struct { // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + metadataDeleteCustomerGatewayInput `json:"-" xml:"-"` +} + +type metadataDeleteCustomerGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11248,21 +9777,12 @@ func (s DeleteCustomerGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCustomerGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCustomerGatewayInput"} - if s.CustomerGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteCustomerGatewayOutput struct { + metadataDeleteCustomerGatewayOutput `json:"-" xml:"-"` } -type DeleteCustomerGatewayOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteCustomerGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11275,10 +9795,7 @@ func (s DeleteCustomerGatewayOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteDhcpOptions. type DeleteDhcpOptionsInput struct { - _ struct{} `type:"structure"` - // The ID of the DHCP options set. DhcpOptionsId *string `type:"string" required:"true"` @@ -11287,6 +9804,12 @@ type DeleteDhcpOptionsInput struct { // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + metadataDeleteDhcpOptionsInput `json:"-" xml:"-"` +} + +type metadataDeleteDhcpOptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11299,21 +9822,12 @@ func (s DeleteDhcpOptionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDhcpOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDhcpOptionsInput"} - if s.DhcpOptionsId == nil { - invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteDhcpOptionsOutput struct { + metadataDeleteDhcpOptionsOutput `json:"-" xml:"-"` } -type DeleteDhcpOptionsOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteDhcpOptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11326,12 +9840,15 @@ func (s DeleteDhcpOptionsOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteFlowLogs. type DeleteFlowLogsInput struct { - _ struct{} `type:"structure"` - // One or more flow log IDs. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list" required:"true"` + + metadataDeleteFlowLogsInput `json:"-" xml:"-"` +} + +type metadataDeleteFlowLogsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11344,25 +9861,15 @@ func (s DeleteFlowLogsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteFlowLogsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteFlowLogsInput"} - if s.FlowLogIds == nil { - invalidParams.Add(request.NewErrParamRequired("FlowLogIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DeleteFlowLogs. type DeleteFlowLogsOutput struct { - _ struct{} `type:"structure"` - // Information about the flow logs that could not be deleted successfully. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"` + + metadataDeleteFlowLogsOutput `json:"-" xml:"-"` +} + +type metadataDeleteFlowLogsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11375,10 +9882,7 @@ func (s DeleteFlowLogsOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteInternetGateway. type DeleteInternetGatewayInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -11387,6 +9891,12 @@ type DeleteInternetGatewayInput struct { // The ID of the Internet gateway. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"` + + metadataDeleteInternetGatewayInput `json:"-" xml:"-"` +} + +type metadataDeleteInternetGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11399,21 +9909,12 @@ func (s DeleteInternetGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteInternetGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteInternetGatewayInput"} - if s.InternetGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("InternetGatewayId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteInternetGatewayOutput struct { + metadataDeleteInternetGatewayOutput `json:"-" xml:"-"` } -type DeleteInternetGatewayOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteInternetGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11426,10 +9927,7 @@ func (s DeleteInternetGatewayOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteKeyPair. type DeleteKeyPairInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -11438,6 +9936,12 @@ type DeleteKeyPairInput struct { // The name of the key pair. KeyName *string `type:"string" required:"true"` + + metadataDeleteKeyPairInput `json:"-" xml:"-"` +} + +type metadataDeleteKeyPairInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11450,21 +9954,12 @@ func (s DeleteKeyPairInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteKeyPairInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteKeyPairInput"} - if s.KeyName == nil { - invalidParams.Add(request.NewErrParamRequired("KeyName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteKeyPairOutput struct { + metadataDeleteKeyPairOutput `json:"-" xml:"-"` } -type DeleteKeyPairOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteKeyPairOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11477,59 +9972,7 @@ func (s DeleteKeyPairOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteNatGateway. -type DeleteNatGatewayInput struct { - _ struct{} `type:"structure"` - - // The ID of the NAT gateway. - NatGatewayId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteNatGatewayInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteNatGatewayInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteNatGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteNatGatewayInput"} - if s.NatGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("NatGatewayId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DeleteNatGateway. -type DeleteNatGatewayOutput struct { - _ struct{} `type:"structure"` - - // The ID of the NAT gateway. - NatGatewayId *string `locationName:"natGatewayId" type:"string"` -} - -// String returns the string representation -func (s DeleteNatGatewayOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteNatGatewayOutput) GoString() string { - return s.String() -} - -// Contains the parameters for DeleteNetworkAclEntry. type DeleteNetworkAclEntryInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -11544,6 +9987,12 @@ type DeleteNetworkAclEntryInput struct { // The rule number of the entry to delete. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"` + + metadataDeleteNetworkAclEntryInput `json:"-" xml:"-"` +} + +type metadataDeleteNetworkAclEntryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11556,27 +10005,12 @@ func (s DeleteNetworkAclEntryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteNetworkAclEntryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclEntryInput"} - if s.Egress == nil { - invalidParams.Add(request.NewErrParamRequired("Egress")) - } - if s.NetworkAclId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkAclId")) - } - if s.RuleNumber == nil { - invalidParams.Add(request.NewErrParamRequired("RuleNumber")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteNetworkAclEntryOutput struct { + metadataDeleteNetworkAclEntryOutput `json:"-" xml:"-"` } -type DeleteNetworkAclEntryOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteNetworkAclEntryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11589,10 +10023,7 @@ func (s DeleteNetworkAclEntryOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteNetworkAcl. type DeleteNetworkAclInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -11601,6 +10032,12 @@ type DeleteNetworkAclInput struct { // The ID of the network ACL. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"` + + metadataDeleteNetworkAclInput `json:"-" xml:"-"` +} + +type metadataDeleteNetworkAclInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11613,21 +10050,12 @@ func (s DeleteNetworkAclInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteNetworkAclInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclInput"} - if s.NetworkAclId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkAclId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteNetworkAclOutput struct { + metadataDeleteNetworkAclOutput `json:"-" xml:"-"` } -type DeleteNetworkAclOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteNetworkAclOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11640,10 +10068,7 @@ func (s DeleteNetworkAclOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteNetworkInterface. type DeleteNetworkInterfaceInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -11652,6 +10077,12 @@ type DeleteNetworkInterfaceInput struct { // The ID of the network interface. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"` + + metadataDeleteNetworkInterfaceInput `json:"-" xml:"-"` +} + +type metadataDeleteNetworkInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11664,21 +10095,12 @@ func (s DeleteNetworkInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteNetworkInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfaceInput"} - if s.NetworkInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteNetworkInterfaceOutput struct { + metadataDeleteNetworkInterfaceOutput `json:"-" xml:"-"` } -type DeleteNetworkInterfaceOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteNetworkInterfaceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11691,10 +10113,7 @@ func (s DeleteNetworkInterfaceOutput) GoString() string { return s.String() } -// Contains the parameters for DeletePlacementGroup. type DeletePlacementGroupInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -11703,6 +10122,12 @@ type DeletePlacementGroupInput struct { // The name of the placement group. GroupName *string `locationName:"groupName" type:"string" required:"true"` + + metadataDeletePlacementGroupInput `json:"-" xml:"-"` +} + +type metadataDeletePlacementGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11715,21 +10140,12 @@ func (s DeletePlacementGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePlacementGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePlacementGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeletePlacementGroupOutput struct { + metadataDeletePlacementGroupOutput `json:"-" xml:"-"` } -type DeletePlacementGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeletePlacementGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11742,10 +10158,7 @@ func (s DeletePlacementGroupOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteRoute. type DeleteRouteInput struct { - _ struct{} `type:"structure"` - // The CIDR range for the route. The value you specify must match the CIDR for // the route exactly. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string" required:"true"` @@ -11758,6 +10171,12 @@ type DeleteRouteInput struct { // The ID of the route table. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"` + + metadataDeleteRouteInput `json:"-" xml:"-"` +} + +type metadataDeleteRouteInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11770,24 +10189,12 @@ func (s DeleteRouteInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRouteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRouteInput"} - if s.DestinationCidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) - } - if s.RouteTableId == nil { - invalidParams.Add(request.NewErrParamRequired("RouteTableId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteRouteOutput struct { + metadataDeleteRouteOutput `json:"-" xml:"-"` } -type DeleteRouteOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteRouteOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11800,10 +10207,7 @@ func (s DeleteRouteOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteRouteTable. type DeleteRouteTableInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -11812,6 +10216,12 @@ type DeleteRouteTableInput struct { // The ID of the route table. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"` + + metadataDeleteRouteTableInput `json:"-" xml:"-"` +} + +type metadataDeleteRouteTableInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11824,21 +10234,12 @@ func (s DeleteRouteTableInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRouteTableInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRouteTableInput"} - if s.RouteTableId == nil { - invalidParams.Add(request.NewErrParamRequired("RouteTableId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteRouteTableOutput struct { + metadataDeleteRouteTableOutput `json:"-" xml:"-"` } -type DeleteRouteTableOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteRouteTableOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11851,10 +10252,7 @@ func (s DeleteRouteTableOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteSecurityGroup. type DeleteSecurityGroupInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -11867,6 +10265,12 @@ type DeleteSecurityGroupInput struct { // [EC2-Classic, default VPC] The name of the security group. You can specify // either the security group name or the security group ID. GroupName *string `type:"string"` + + metadataDeleteSecurityGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteSecurityGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11880,7 +10284,11 @@ func (s DeleteSecurityGroupInput) GoString() string { } type DeleteSecurityGroupOutput struct { - _ struct{} `type:"structure"` + metadataDeleteSecurityGroupOutput `json:"-" xml:"-"` +} + +type metadataDeleteSecurityGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11893,10 +10301,7 @@ func (s DeleteSecurityGroupOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteSnapshot. type DeleteSnapshotInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -11905,6 +10310,12 @@ type DeleteSnapshotInput struct { // The ID of the EBS snapshot. SnapshotId *string `type:"string" required:"true"` + + metadataDeleteSnapshotInput `json:"-" xml:"-"` +} + +type metadataDeleteSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11917,21 +10328,12 @@ func (s DeleteSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"} - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteSnapshotOutput struct { + metadataDeleteSnapshotOutput `json:"-" xml:"-"` } -type DeleteSnapshotOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11946,13 +10348,17 @@ func (s DeleteSnapshotOutput) GoString() string { // Contains the parameters for DeleteSpotDatafeedSubscription. type DeleteSpotDatafeedSubscriptionInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + metadataDeleteSpotDatafeedSubscriptionInput `json:"-" xml:"-"` +} + +type metadataDeleteSpotDatafeedSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11966,7 +10372,11 @@ func (s DeleteSpotDatafeedSubscriptionInput) GoString() string { } type DeleteSpotDatafeedSubscriptionOutput struct { - _ struct{} `type:"structure"` + metadataDeleteSpotDatafeedSubscriptionOutput `json:"-" xml:"-"` +} + +type metadataDeleteSpotDatafeedSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11979,10 +10389,7 @@ func (s DeleteSpotDatafeedSubscriptionOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteSubnet. type DeleteSubnetInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -11991,6 +10398,12 @@ type DeleteSubnetInput struct { // The ID of the subnet. SubnetId *string `type:"string" required:"true"` + + metadataDeleteSubnetInput `json:"-" xml:"-"` +} + +type metadataDeleteSubnetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12003,21 +10416,12 @@ func (s DeleteSubnetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSubnetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSubnetInput"} - if s.SubnetId == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteSubnetOutput struct { + metadataDeleteSubnetOutput `json:"-" xml:"-"` } -type DeleteSubnetOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteSubnetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12030,10 +10434,7 @@ func (s DeleteSubnetOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteTags. type DeleteTagsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -12048,6 +10449,12 @@ type DeleteTagsInput struct { // tag regardless of its value. If you specify this parameter with an empty // string as the value, we delete the key only if its value is an empty string. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"` + + metadataDeleteTagsInput `json:"-" xml:"-"` +} + +type metadataDeleteTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12060,21 +10467,12 @@ func (s DeleteTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} - if s.Resources == nil { - invalidParams.Add(request.NewErrParamRequired("Resources")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteTagsOutput struct { + metadataDeleteTagsOutput `json:"-" xml:"-"` } -type DeleteTagsOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12087,10 +10485,7 @@ func (s DeleteTagsOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteVolume. type DeleteVolumeInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -12099,6 +10494,12 @@ type DeleteVolumeInput struct { // The ID of the volume. VolumeId *string `type:"string" required:"true"` + + metadataDeleteVolumeInput `json:"-" xml:"-"` +} + +type metadataDeleteVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12111,21 +10512,12 @@ func (s DeleteVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVolumeInput"} - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteVolumeOutput struct { + metadataDeleteVolumeOutput `json:"-" xml:"-"` } -type DeleteVolumeOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteVolumeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12138,10 +10530,7 @@ func (s DeleteVolumeOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteVpcEndpoints. type DeleteVpcEndpointsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -12150,6 +10539,12 @@ type DeleteVpcEndpointsInput struct { // One or more endpoint IDs. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"` + + metadataDeleteVpcEndpointsInput `json:"-" xml:"-"` +} + +type metadataDeleteVpcEndpointsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12162,25 +10557,15 @@ func (s DeleteVpcEndpointsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVpcEndpointsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointsInput"} - if s.VpcEndpointIds == nil { - invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DeleteVpcEndpoints. type DeleteVpcEndpointsOutput struct { - _ struct{} `type:"structure"` - // Information about the endpoints that were not successfully deleted. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"` + + metadataDeleteVpcEndpointsOutput `json:"-" xml:"-"` +} + +type metadataDeleteVpcEndpointsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12193,10 +10578,7 @@ func (s DeleteVpcEndpointsOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteVpc. type DeleteVpcInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -12205,6 +10587,12 @@ type DeleteVpcInput struct { // The ID of the VPC. VpcId *string `type:"string" required:"true"` + + metadataDeleteVpcInput `json:"-" xml:"-"` +} + +type metadataDeleteVpcInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12217,21 +10605,12 @@ func (s DeleteVpcInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVpcInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVpcInput"} - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteVpcOutput struct { + metadataDeleteVpcOutput `json:"-" xml:"-"` } -type DeleteVpcOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteVpcOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12244,10 +10623,7 @@ func (s DeleteVpcOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteVpcPeeringConnection. type DeleteVpcPeeringConnectionInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -12256,6 +10632,12 @@ type DeleteVpcPeeringConnectionInput struct { // The ID of the VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"` + + metadataDeleteVpcPeeringConnectionInput `json:"-" xml:"-"` +} + +type metadataDeleteVpcPeeringConnectionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12268,25 +10650,15 @@ func (s DeleteVpcPeeringConnectionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVpcPeeringConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVpcPeeringConnectionInput"} - if s.VpcPeeringConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DeleteVpcPeeringConnection. type DeleteVpcPeeringConnectionOutput struct { - _ struct{} `type:"structure"` - // Returns true if the request succeeds; otherwise, it returns an error. Return *bool `locationName:"return" type:"boolean"` + + metadataDeleteVpcPeeringConnectionOutput `json:"-" xml:"-"` +} + +type metadataDeleteVpcPeeringConnectionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12299,10 +10671,7 @@ func (s DeleteVpcPeeringConnectionOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteVpnConnection. type DeleteVpnConnectionInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -12311,9 +10680,15 @@ type DeleteVpnConnectionInput struct { // The ID of the VPN connection. VpnConnectionId *string `type:"string" required:"true"` + + metadataDeleteVpnConnectionInput `json:"-" xml:"-"` } -// String returns the string representation +type metadataDeleteVpnConnectionInput struct { + SDKShapeTraits bool `type:"structure"` +} + +// String returns the string representation func (s DeleteVpnConnectionInput) String() string { return awsutil.Prettify(s) } @@ -12323,21 +10698,12 @@ func (s DeleteVpnConnectionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVpnConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionInput"} - if s.VpnConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("VpnConnectionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteVpnConnectionOutput struct { + metadataDeleteVpnConnectionOutput `json:"-" xml:"-"` } -type DeleteVpnConnectionOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteVpnConnectionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12350,15 +10716,18 @@ func (s DeleteVpnConnectionOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteVpnConnectionRoute. type DeleteVpnConnectionRouteInput struct { - _ struct{} `type:"structure"` - // The CIDR block associated with the local subnet of the customer network. DestinationCidrBlock *string `type:"string" required:"true"` // The ID of the VPN connection. VpnConnectionId *string `type:"string" required:"true"` + + metadataDeleteVpnConnectionRouteInput `json:"-" xml:"-"` +} + +type metadataDeleteVpnConnectionRouteInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12371,24 +10740,12 @@ func (s DeleteVpnConnectionRouteInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVpnConnectionRouteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionRouteInput"} - if s.DestinationCidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) - } - if s.VpnConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("VpnConnectionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteVpnConnectionRouteOutput struct { + metadataDeleteVpnConnectionRouteOutput `json:"-" xml:"-"` } -type DeleteVpnConnectionRouteOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteVpnConnectionRouteOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12401,10 +10758,7 @@ func (s DeleteVpnConnectionRouteOutput) GoString() string { return s.String() } -// Contains the parameters for DeleteVpnGateway. type DeleteVpnGatewayInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -12413,6 +10767,12 @@ type DeleteVpnGatewayInput struct { // The ID of the virtual private gateway. VpnGatewayId *string `type:"string" required:"true"` + + metadataDeleteVpnGatewayInput `json:"-" xml:"-"` +} + +type metadataDeleteVpnGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12425,21 +10785,12 @@ func (s DeleteVpnGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVpnGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVpnGatewayInput"} - if s.VpnGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("VpnGatewayId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteVpnGatewayOutput struct { + metadataDeleteVpnGatewayOutput `json:"-" xml:"-"` } -type DeleteVpnGatewayOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteVpnGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12452,10 +10803,7 @@ func (s DeleteVpnGatewayOutput) GoString() string { return s.String() } -// Contains the parameters for DeregisterImage. type DeregisterImageInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -12464,6 +10812,12 @@ type DeregisterImageInput struct { // The ID of the AMI. ImageId *string `type:"string" required:"true"` + + metadataDeregisterImageInput `json:"-" xml:"-"` +} + +type metadataDeregisterImageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12476,21 +10830,12 @@ func (s DeregisterImageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterImageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterImageInput"} - if s.ImageId == nil { - invalidParams.Add(request.NewErrParamRequired("ImageId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeregisterImageOutput struct { + metadataDeregisterImageOutput `json:"-" xml:"-"` } -type DeregisterImageOutput struct { - _ struct{} `type:"structure"` +type metadataDeregisterImageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12503,10 +10848,7 @@ func (s DeregisterImageOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeAccountAttributes. type DescribeAccountAttributesInput struct { - _ struct{} `type:"structure"` - // One or more account attribute names. AttributeNames []*string `locationName:"attributeName" locationNameList:"attributeName" type:"list"` @@ -12515,6 +10857,12 @@ type DescribeAccountAttributesInput struct { // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + metadataDescribeAccountAttributesInput `json:"-" xml:"-"` +} + +type metadataDescribeAccountAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12527,12 +10875,15 @@ func (s DescribeAccountAttributesInput) GoString() string { return s.String() } -// Contains the output of DescribeAccountAttributes. type DescribeAccountAttributesOutput struct { - _ struct{} `type:"structure"` - // Information about one or more account attributes. AccountAttributes []*AccountAttribute `locationName:"accountAttributeSet" locationNameList:"item" type:"list"` + + metadataDescribeAccountAttributesOutput `json:"-" xml:"-"` +} + +type metadataDescribeAccountAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12545,10 +10896,7 @@ func (s DescribeAccountAttributesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeAddresses. type DescribeAddressesInput struct { - _ struct{} `type:"structure"` - // [EC2-VPC] One or more allocation IDs. // // Default: Describes all your Elastic IP addresses. @@ -12587,6 +10935,12 @@ type DescribeAddressesInput struct { // // Default: Describes all your Elastic IP addresses. PublicIps []*string `locationName:"PublicIp" locationNameList:"PublicIp" type:"list"` + + metadataDescribeAddressesInput `json:"-" xml:"-"` +} + +type metadataDescribeAddressesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12599,12 +10953,15 @@ func (s DescribeAddressesInput) GoString() string { return s.String() } -// Contains the output of DescribeAddresses. type DescribeAddressesOutput struct { - _ struct{} `type:"structure"` - // Information about one or more Elastic IP addresses. Addresses []*Address `locationName:"addressesSet" locationNameList:"item" type:"list"` + + metadataDescribeAddressesOutput `json:"-" xml:"-"` +} + +type metadataDescribeAddressesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12617,10 +10974,7 @@ func (s DescribeAddressesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeAvailabilityZones. type DescribeAvailabilityZonesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -12634,14 +10988,19 @@ type DescribeAvailabilityZonesInput struct { // region-name - The name of the region for the Availability Zone (for example, // us-east-1). // - // state - The state of the Availability Zone (available | information | - // impaired | unavailable). + // state - The state of the Availability Zone (available | impaired | unavailable). // // zone-name - The name of the Availability Zone (for example, us-east-1a). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The names of one or more Availability Zones. ZoneNames []*string `locationName:"ZoneName" locationNameList:"ZoneName" type:"list"` + + metadataDescribeAvailabilityZonesInput `json:"-" xml:"-"` +} + +type metadataDescribeAvailabilityZonesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12654,12 +11013,15 @@ func (s DescribeAvailabilityZonesInput) GoString() string { return s.String() } -// Contains the output of DescribeAvailabiltyZones. type DescribeAvailabilityZonesOutput struct { - _ struct{} `type:"structure"` - // Information about one or more Availability Zones. AvailabilityZones []*AvailabilityZone `locationName:"availabilityZoneInfo" locationNameList:"item" type:"list"` + + metadataDescribeAvailabilityZonesOutput `json:"-" xml:"-"` +} + +type metadataDescribeAvailabilityZonesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12672,10 +11034,7 @@ func (s DescribeAvailabilityZonesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeBundleTasks. type DescribeBundleTasksInput struct { - _ struct{} `type:"structure"` - // One or more bundle task IDs. // // Default: Describes all your bundle tasks. @@ -12711,6 +11070,12 @@ type DescribeBundleTasksInput struct { // // update-time - The time of the most recent update for the task. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + metadataDescribeBundleTasksInput `json:"-" xml:"-"` +} + +type metadataDescribeBundleTasksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12723,12 +11088,15 @@ func (s DescribeBundleTasksInput) GoString() string { return s.String() } -// Contains the output of DescribeBundleTasks. type DescribeBundleTasksOutput struct { - _ struct{} `type:"structure"` - // Information about one or more bundle tasks. BundleTasks []*BundleTask `locationName:"bundleInstanceTasksSet" locationNameList:"item" type:"list"` + + metadataDescribeBundleTasksOutput `json:"-" xml:"-"` +} + +type metadataDescribeBundleTasksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12741,10 +11109,7 @@ func (s DescribeBundleTasksOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeClassicLinkInstances. type DescribeClassicLinkInstancesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -12787,6 +11152,12 @@ type DescribeClassicLinkInstancesInput struct { // The token to retrieve the next page of results. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeClassicLinkInstancesInput `json:"-" xml:"-"` +} + +type metadataDescribeClassicLinkInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12799,16 +11170,19 @@ func (s DescribeClassicLinkInstancesInput) GoString() string { return s.String() } -// Contains the output of DescribeClassicLinkInstances. type DescribeClassicLinkInstancesOutput struct { - _ struct{} `type:"structure"` - // Information about one or more linked EC2-Classic instances. Instances []*ClassicLinkInstance `locationName:"instancesSet" locationNameList:"item" type:"list"` // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeClassicLinkInstancesOutput `json:"-" xml:"-"` +} + +type metadataDescribeClassicLinkInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12821,10 +11195,7 @@ func (s DescribeClassicLinkInstancesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeConversionTasks. type DescribeConversionTasksInput struct { - _ struct{} `type:"structure"` - // One or more conversion task IDs. ConversionTaskIds []*string `locationName:"conversionTaskId" locationNameList:"item" type:"list"` @@ -12836,6 +11207,12 @@ type DescribeConversionTasksInput struct { // One or more filters. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"` + + metadataDescribeConversionTasksInput `json:"-" xml:"-"` +} + +type metadataDescribeConversionTasksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12848,12 +11225,15 @@ func (s DescribeConversionTasksInput) GoString() string { return s.String() } -// Contains the output for DescribeConversionTasks. type DescribeConversionTasksOutput struct { - _ struct{} `type:"structure"` - // Information about the conversion tasks. ConversionTasks []*ConversionTask `locationName:"conversionTasks" locationNameList:"item" type:"list"` + + metadataDescribeConversionTasksOutput `json:"-" xml:"-"` +} + +type metadataDescribeConversionTasksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12866,10 +11246,7 @@ func (s DescribeConversionTasksOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeCustomerGateways. type DescribeCustomerGatewaysInput struct { - _ struct{} `type:"structure"` - // One or more customer gateway IDs. // // Default: Describes all your customer gateways. @@ -12909,6 +11286,12 @@ type DescribeCustomerGatewaysInput struct { // tag-value - The value of a tag assigned to the resource. This filter is // independent of the tag-key filter. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + metadataDescribeCustomerGatewaysInput `json:"-" xml:"-"` +} + +type metadataDescribeCustomerGatewaysInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12921,12 +11304,15 @@ func (s DescribeCustomerGatewaysInput) GoString() string { return s.String() } -// Contains the output of DescribeCustomerGateways. type DescribeCustomerGatewaysOutput struct { - _ struct{} `type:"structure"` - // Information about one or more customer gateways. CustomerGateways []*CustomerGateway `locationName:"customerGatewaySet" locationNameList:"item" type:"list"` + + metadataDescribeCustomerGatewaysOutput `json:"-" xml:"-"` +} + +type metadataDescribeCustomerGatewaysOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12939,10 +11325,7 @@ func (s DescribeCustomerGatewaysOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeDhcpOptions. type DescribeDhcpOptionsInput struct { - _ struct{} `type:"structure"` - // The IDs of one or more DHCP options sets. // // Default: Describes all your DHCP options sets. @@ -12974,6 +11357,12 @@ type DescribeDhcpOptionsInput struct { // tag-value - The value of a tag assigned to the resource. This filter is // independent of the tag-key filter. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + metadataDescribeDhcpOptionsInput `json:"-" xml:"-"` +} + +type metadataDescribeDhcpOptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12986,12 +11375,15 @@ func (s DescribeDhcpOptionsInput) GoString() string { return s.String() } -// Contains the output of DescribeDhcpOptions. type DescribeDhcpOptionsOutput struct { - _ struct{} `type:"structure"` - // Information about one or more DHCP options sets. DhcpOptions []*DhcpOptions `locationName:"dhcpOptionsSet" locationNameList:"item" type:"list"` + + metadataDescribeDhcpOptionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeDhcpOptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13004,12 +11396,15 @@ func (s DescribeDhcpOptionsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeExportTasks. type DescribeExportTasksInput struct { - _ struct{} `type:"structure"` - // One or more export task IDs. ExportTaskIds []*string `locationName:"exportTaskId" locationNameList:"ExportTaskId" type:"list"` + + metadataDescribeExportTasksInput `json:"-" xml:"-"` +} + +type metadataDescribeExportTasksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13022,12 +11417,15 @@ func (s DescribeExportTasksInput) GoString() string { return s.String() } -// Contains the output for DescribeExportTasks. type DescribeExportTasksOutput struct { - _ struct{} `type:"structure"` - // Information about the export tasks. ExportTasks []*ExportTask `locationName:"exportTaskSet" locationNameList:"item" type:"list"` + + metadataDescribeExportTasksOutput `json:"-" xml:"-"` +} + +type metadataDescribeExportTasksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13040,10 +11438,7 @@ func (s DescribeExportTasksOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeFlowLogs. type DescribeFlowLogsInput struct { - _ struct{} `type:"structure"` - // One or more filters. // // deliver-log-status - The status of the logs delivery (SUCCESS | FAILED). @@ -13069,6 +11464,12 @@ type DescribeFlowLogsInput struct { // The token to retrieve the next page of results. NextToken *string `type:"string"` + + metadataDescribeFlowLogsInput `json:"-" xml:"-"` +} + +type metadataDescribeFlowLogsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13081,136 +11482,32 @@ func (s DescribeFlowLogsInput) GoString() string { return s.String() } -// Contains the output of DescribeFlowLogs. type DescribeFlowLogsOutput struct { - _ struct{} `type:"structure"` - // Information about the flow logs. FlowLogs []*FlowLog `locationName:"flowLogSet" locationNameList:"item" type:"list"` // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s DescribeFlowLogsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFlowLogsOutput) GoString() string { - return s.String() -} - -// Contains the parameters for DescribeHosts. -type DescribeHostsInput struct { - _ struct{} `type:"structure"` - - // One or more filters. - // - // instance-type - The instance type size that the Dedicated host is configured - // to support. - // - // auto-placement - Whether auto-placement is enabled or disabled (on | off). - // - // host-reservation-id - The ID of the reservation associated with this host. - // - // client-token - The idempotency token you provided when you launched the - // instance - // - // state- The allocation state of the Dedicated host (available | under-assessment - // | permanent-failure | released | released-permanent-failure). - // - // availability-zone - The Availability Zone of the host. - Filter []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"` - - // The IDs of the Dedicated hosts. The IDs are used for targeted instance launches. - HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list"` - - // The maximum number of results to return for the request in a single page. - // The remaining results can be seen by sending another request with the returned - // nextToken value. This value can be between 5 and 500; if maxResults is given - // a larger value than 500, you will receive an error. You cannot specify this - // parameter and the host IDs parameter in the same request. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // The token to retrieve the next page of results. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s DescribeHostsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeHostsInput) GoString() string { - return s.String() -} - -// Contains the output of DescribeHosts. -type DescribeHostsOutput struct { - _ struct{} `type:"structure"` - - // Information about the Dedicated hosts. - Hosts []*Host `locationName:"hostSet" locationNameList:"item" type:"list"` - - // The token to use to retrieve the next page of results. This value is null - // when there are no more results to return. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s DescribeHostsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeHostsOutput) GoString() string { - return s.String() -} - -// Contains the parameters for DescribeIdFormat. -type DescribeIdFormatInput struct { - _ struct{} `type:"structure"` - - // The type of resource. - Resource *string `type:"string"` -} -// String returns the string representation -func (s DescribeIdFormatInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeIdFormatInput) GoString() string { - return s.String() + metadataDescribeFlowLogsOutput `json:"-" xml:"-"` } -// Contains the output of DescribeIdFormat. -type DescribeIdFormatOutput struct { - _ struct{} `type:"structure"` - - // Information about the ID format for the resource. - Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"` +type metadataDescribeFlowLogsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeIdFormatOutput) String() string { +func (s DescribeFlowLogsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeIdFormatOutput) GoString() string { +func (s DescribeFlowLogsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeImageAttribute. type DescribeImageAttributeInput struct { - _ struct{} `type:"structure"` - // The AMI attribute. // // Note: Depending on your account privileges, the blockDeviceMapping attribute @@ -13226,6 +11523,12 @@ type DescribeImageAttributeInput struct { // The ID of the AMI. ImageId *string `type:"string" required:"true"` + + metadataDescribeImageAttributeInput `json:"-" xml:"-"` +} + +type metadataDescribeImageAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13238,26 +11541,8 @@ func (s DescribeImageAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeImageAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeImageAttributeInput"} - if s.Attribute == nil { - invalidParams.Add(request.NewErrParamRequired("Attribute")) - } - if s.ImageId == nil { - invalidParams.Add(request.NewErrParamRequired("ImageId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes an image attribute. type DescribeImageAttributeOutput struct { - _ struct{} `type:"structure"` - // One or more block device mapping entries. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"` @@ -13281,6 +11566,12 @@ type DescribeImageAttributeOutput struct { // The value to use for a resource attribute. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"` + + metadataDescribeImageAttributeOutput `json:"-" xml:"-"` +} + +type metadataDescribeImageAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13293,10 +11584,7 @@ func (s DescribeImageAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeImages. type DescribeImagesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -13324,7 +11612,7 @@ type DescribeImagesInput struct { // in GiB. // // block-device-mapping.volume-type - The volume type of the EBS volume (gp2 - // | io1 | st1 | sc1 | standard). + // | standard | io1). // // description - The description of the image (provided during image creation). // @@ -13389,6 +11677,12 @@ type DescribeImagesInput struct { // sender of the request). Omitting this option returns all images for which // you have launch permissions, regardless of ownership. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"` + + metadataDescribeImagesInput `json:"-" xml:"-"` +} + +type metadataDescribeImagesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13401,12 +11695,15 @@ func (s DescribeImagesInput) GoString() string { return s.String() } -// Contains the output of DescribeImages. type DescribeImagesOutput struct { - _ struct{} `type:"structure"` - // Information about one or more images. Images []*Image `locationName:"imagesSet" locationNameList:"item" type:"list"` + + metadataDescribeImagesOutput `json:"-" xml:"-"` +} + +type metadataDescribeImagesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13419,29 +11716,30 @@ func (s DescribeImagesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeImportImageTasks. type DescribeImportImageTasksInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `type:"boolean"` - // Filter tasks using the task-state filter and one of the following values: - // active, completed, deleting, deleted. + // One or more filters. Filters []*Filter `locationNameList:"Filter" type:"list"` // A list of import image task IDs. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"` - // The maximum number of results to return in a single call. To retrieve the - // remaining results, make another call with the returned NextToken value. + // The maximum number of results to return in a single request. MaxResults *int64 `type:"integer"` // A token that indicates the next page of results. NextToken *string `type:"string"` + + metadataDescribeImportImageTasksInput `json:"-" xml:"-"` +} + +type metadataDescribeImportImageTasksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13454,10 +11752,7 @@ func (s DescribeImportImageTasksInput) GoString() string { return s.String() } -// Contains the output for DescribeImportImageTasks. type DescribeImportImageTasksOutput struct { - _ struct{} `type:"structure"` - // A list of zero or more import image tasks that are currently active or were // completed or canceled in the previous 7 days. ImportImageTasks []*ImportImageTask `locationName:"importImageTaskSet" locationNameList:"item" type:"list"` @@ -13465,6 +11760,12 @@ type DescribeImportImageTasksOutput struct { // The token to use to get the next page of results. This value is null when // there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeImportImageTasksOutput `json:"-" xml:"-"` +} + +type metadataDescribeImportImageTasksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13477,10 +11778,7 @@ func (s DescribeImportImageTasksOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeImportSnapshotTasks. type DescribeImportSnapshotTasksInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -13493,12 +11791,17 @@ type DescribeImportSnapshotTasksInput struct { // A list of import snapshot task IDs. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"` - // The maximum number of results to return in a single call. To retrieve the - // remaining results, make another call with the returned NextToken value. + // The maximum number of results to return in a single request. MaxResults *int64 `type:"integer"` // A token that indicates the next page of results. NextToken *string `type:"string"` + + metadataDescribeImportSnapshotTasksInput `json:"-" xml:"-"` +} + +type metadataDescribeImportSnapshotTasksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13511,10 +11814,7 @@ func (s DescribeImportSnapshotTasksInput) GoString() string { return s.String() } -// Contains the output for DescribeImportSnapshotTasks. type DescribeImportSnapshotTasksOutput struct { - _ struct{} `type:"structure"` - // A list of zero or more import snapshot tasks that are currently active or // were completed or canceled in the previous 7 days. ImportSnapshotTasks []*ImportSnapshotTask `locationName:"importSnapshotTaskSet" locationNameList:"item" type:"list"` @@ -13522,6 +11822,12 @@ type DescribeImportSnapshotTasksOutput struct { // The token to use to get the next page of results. This value is null when // there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeImportSnapshotTasksOutput `json:"-" xml:"-"` +} + +type metadataDescribeImportSnapshotTasksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13534,10 +11840,7 @@ func (s DescribeImportSnapshotTasksOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeInstanceAttribute. type DescribeInstanceAttributeInput struct { - _ struct{} `type:"structure"` - // The instance attribute. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"` @@ -13549,6 +11852,12 @@ type DescribeInstanceAttributeInput struct { // The ID of the instance. InstanceId *string `locationName:"instanceId" type:"string" required:"true"` + + metadataDescribeInstanceAttributeInput `json:"-" xml:"-"` +} + +type metadataDescribeInstanceAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13561,26 +11870,8 @@ func (s DescribeInstanceAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeInstanceAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceAttributeInput"} - if s.Attribute == nil { - invalidParams.Add(request.NewErrParamRequired("Attribute")) - } - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes an instance attribute. type DescribeInstanceAttributeOutput struct { - _ struct{} `type:"structure"` - // The block device mapping of the instance. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"` @@ -13626,6 +11917,12 @@ type DescribeInstanceAttributeOutput struct { // The Base64-encoded MIME user data. UserData *AttributeValue `locationName:"userData" type:"structure"` + + metadataDescribeInstanceAttributeOutput `json:"-" xml:"-"` +} + +type metadataDescribeInstanceAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13638,10 +11935,7 @@ func (s DescribeInstanceAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeInstanceStatus. type DescribeInstanceStatusInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -13698,14 +11992,22 @@ type DescribeInstanceStatusInput struct { // Constraints: Maximum 100 explicitly specified instance IDs. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"` - // The maximum number of results to return in a single call. To retrieve the - // remaining results, make another call with the returned NextToken value. This - // value can be between 5 and 1000. You cannot specify this parameter and the - // instance IDs parameter in the same call. + // The maximum number of results to return for the request in a single page. + // The remaining results of the initial request can be seen by sending another + // request with the returned NextToken value. This value can be between 5 and + // 1000; if MaxResults is given a value larger than 1000, only 1000 results + // are returned. You cannot specify this parameter and the instance IDs parameter + // in the same request. MaxResults *int64 `type:"integer"` // The token to retrieve the next page of results. NextToken *string `type:"string"` + + metadataDescribeInstanceStatusInput `json:"-" xml:"-"` +} + +type metadataDescribeInstanceStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13718,16 +12020,19 @@ func (s DescribeInstanceStatusInput) GoString() string { return s.String() } -// Contains the output of DescribeInstanceStatus. type DescribeInstanceStatusOutput struct { - _ struct{} `type:"structure"` - // One or more instance status descriptions. InstanceStatuses []*InstanceStatus `locationName:"instanceStatusSet" locationNameList:"item" type:"list"` // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeInstanceStatusOutput `json:"-" xml:"-"` +} + +type metadataDescribeInstanceStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13740,10 +12045,7 @@ func (s DescribeInstanceStatusOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeInstances. type DescribeInstancesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -13752,9 +12054,6 @@ type DescribeInstancesInput struct { // One or more filters. // - // affinity - The affinity setting for an instance running on a Dedicated - // host (default | host). - // // architecture - The instance architecture (i386 | x86_64). // // availability-zone - The Availability Zone of the instance. @@ -13784,9 +12083,6 @@ type DescribeInstancesInput struct { // group-name - The name of the security group for the instance. EC2-Classic // only. // - // host-Id - The ID of the Dedicated host on which the instance is running, - // if applicable. - // // hypervisor - The hypervisor type of the instance (ovm | xen). // // iam-instance-profile.arn - The instance profile associated with the instance. @@ -13796,8 +12092,7 @@ type DescribeInstancesInput struct { // // instance-id - The ID of the instance. // - // instance-lifecycle - Indicates whether this is a Spot Instance or a Scheduled - // Instance (spot | scheduled). + // instance-lifecycle - Indicates whether this is a Spot Instance (spot). // // instance-state-code - The state of the instance, as a 16-bit unsigned // integer. The high byte is an opaque internal value and should be ignored. @@ -13872,7 +12167,7 @@ type DescribeInstancesInput struct { // checking is disabled. The value must be false for the instance to perform // network address translation (NAT) in your VPC. // - // spot-instance-request-id - The ID of the Spot instance request. + // spot-instance-request-id - The ID of the Spot Instance request. // // state-reason-code - The reason code for the state change. // @@ -13893,7 +12188,7 @@ type DescribeInstancesInput struct { // tag-value - The value of a tag assigned to the resource. This filter is // independent of the tag-key filter. // - // tenancy - The tenancy of an instance (dedicated | default | host). + // tenancy - The tenancy of an instance (dedicated | default). // // virtualization-type - The virtualization type of the instance (paravirtual // | hvm). @@ -13906,7 +12201,7 @@ type DescribeInstancesInput struct { // // network-interface.vpc-id - The ID of the VPC for the network interface. // - // network-interface.network-interface-id - The ID of the network interface. + // network-interface.network-interface.id - The ID of the network interface. // // network-interface.owner-id - The ID of the owner of the network interface. // @@ -13923,7 +12218,7 @@ type DescribeInstancesInput struct { // // network-interface.mac-address - The MAC address of the network interface. // - // network-interface.private-dns-name - The private DNS name of the network + // network-interface-private-dns-name - The private DNS name of the network // interface. // // network-interface.source-dest-check - Whether the network interface performs @@ -13987,17 +12282,25 @@ type DescribeInstancesInput struct { // Default: Describes all your instances. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"` - // The maximum number of results to return in a single call. To retrieve the - // remaining results, make another call with the returned NextToken value. This - // value can be between 5 and 1000. You cannot specify this parameter and the - // instance IDs parameter or tag filters in the same call. + // The maximum number of results to return for the request in a single page. + // The remaining results of the initial request can be seen by sending another + // request with the returned NextToken value. This value can be between 5 and + // 1000; if MaxResults is given a value larger than 1000, only 1000 results + // are returned. You cannot specify this parameter and the instance IDs parameter + // in the same request. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The token to request the next page of results. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeInstancesInput `json:"-" xml:"-"` } -// String returns the string representation +type metadataDescribeInstancesInput struct { + SDKShapeTraits bool `type:"structure"` +} + +// String returns the string representation func (s DescribeInstancesInput) String() string { return awsutil.Prettify(s) } @@ -14007,16 +12310,19 @@ func (s DescribeInstancesInput) GoString() string { return s.String() } -// Contains the output of DescribeInstances. type DescribeInstancesOutput struct { - _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` - // Zero or more reservations. + // One or more reservations. Reservations []*Reservation `locationName:"reservationSet" locationNameList:"item" type:"list"` + + metadataDescribeInstancesOutput `json:"-" xml:"-"` +} + +type metadataDescribeInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14029,10 +12335,7 @@ func (s DescribeInstancesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeInternetGateways. type DescribeInternetGatewaysInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -14065,6 +12368,12 @@ type DescribeInternetGatewaysInput struct { // // Default: Describes all your Internet gateways. InternetGatewayIds []*string `locationName:"internetGatewayId" locationNameList:"item" type:"list"` + + metadataDescribeInternetGatewaysInput `json:"-" xml:"-"` +} + +type metadataDescribeInternetGatewaysInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14077,12 +12386,15 @@ func (s DescribeInternetGatewaysInput) GoString() string { return s.String() } -// Contains the output of DescribeInternetGateways. type DescribeInternetGatewaysOutput struct { - _ struct{} `type:"structure"` - // Information about one or more Internet gateways. InternetGateways []*InternetGateway `locationName:"internetGatewaySet" locationNameList:"item" type:"list"` + + metadataDescribeInternetGatewaysOutput `json:"-" xml:"-"` +} + +type metadataDescribeInternetGatewaysOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14095,10 +12407,7 @@ func (s DescribeInternetGatewaysOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeKeyPairs. type DescribeKeyPairsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -14116,6 +12425,12 @@ type DescribeKeyPairsInput struct { // // Default: Describes all your key pairs. KeyNames []*string `locationName:"KeyName" locationNameList:"KeyName" type:"list"` + + metadataDescribeKeyPairsInput `json:"-" xml:"-"` +} + +type metadataDescribeKeyPairsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14128,12 +12443,15 @@ func (s DescribeKeyPairsInput) GoString() string { return s.String() } -// Contains the output of DescribeKeyPairs. type DescribeKeyPairsOutput struct { - _ struct{} `type:"structure"` - // Information about one or more key pairs. KeyPairs []*KeyPairInfo `locationName:"keySet" locationNameList:"item" type:"list"` + + metadataDescribeKeyPairsOutput `json:"-" xml:"-"` +} + +type metadataDescribeKeyPairsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14146,10 +12464,7 @@ func (s DescribeKeyPairsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeMovingAddresses. type DescribeMovingAddressesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -14174,6 +12489,12 @@ type DescribeMovingAddressesInput struct { // One or more Elastic IP addresses. PublicIps []*string `locationName:"publicIp" locationNameList:"item" type:"list"` + + metadataDescribeMovingAddressesInput `json:"-" xml:"-"` +} + +type metadataDescribeMovingAddressesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14186,95 +12507,32 @@ func (s DescribeMovingAddressesInput) GoString() string { return s.String() } -// Contains the output of DescribeMovingAddresses. type DescribeMovingAddressesOutput struct { - _ struct{} `type:"structure"` - // The status for each Elastic IP address. MovingAddressStatuses []*MovingAddressStatus `locationName:"movingAddressStatusSet" locationNameList:"item" type:"list"` // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s DescribeMovingAddressesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeMovingAddressesOutput) GoString() string { - return s.String() -} - -// Contains the parameters for DescribeNatGateways. -type DescribeNatGatewaysInput struct { - _ struct{} `type:"structure"` - - // One or more filters. - // - // nat-gateway-id - The ID of the NAT gateway. - // - // state - The state of the NAT gateway (pending | failed | available | deleting - // | deleted). - // - // subnet-id - The ID of the subnet in which the NAT gateway resides. - // - // vpc-id - The ID of the VPC in which the NAT gateway resides. - Filter []*Filter `locationNameList:"Filter" type:"list"` - - // The maximum number of items to return for this request. The request returns - // a token that you can specify in a subsequent call to get the next set of - // results. - // - // Constraint: If the value specified is greater than 1000, we return only - // 1000 items. - MaxResults *int64 `type:"integer"` - - // One or more NAT gateway IDs. - NatGatewayIds []*string `locationName:"NatGatewayId" locationNameList:"item" type:"list"` - - // The token to retrieve the next page of results. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s DescribeNatGatewaysInput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DescribeNatGatewaysInput) GoString() string { - return s.String() + metadataDescribeMovingAddressesOutput `json:"-" xml:"-"` } -// Contains the output of DescribeNatGateways. -type DescribeNatGatewaysOutput struct { - _ struct{} `type:"structure"` - - // Information about the NAT gateways. - NatGateways []*NatGateway `locationName:"natGatewaySet" locationNameList:"item" type:"list"` - - // The token to use to retrieve the next page of results. This value is null - // when there are no more results to return. - NextToken *string `locationName:"nextToken" type:"string"` +type metadataDescribeMovingAddressesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeNatGatewaysOutput) String() string { +func (s DescribeMovingAddressesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeNatGatewaysOutput) GoString() string { +func (s DescribeMovingAddressesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeNetworkAcls. type DescribeNetworkAclsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -14334,6 +12592,12 @@ type DescribeNetworkAclsInput struct { // // Default: Describes all your network ACLs. NetworkAclIds []*string `locationName:"NetworkAclId" locationNameList:"item" type:"list"` + + metadataDescribeNetworkAclsInput `json:"-" xml:"-"` +} + +type metadataDescribeNetworkAclsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14346,12 +12610,15 @@ func (s DescribeNetworkAclsInput) GoString() string { return s.String() } -// Contains the output of DescribeNetworkAcls. type DescribeNetworkAclsOutput struct { - _ struct{} `type:"structure"` - // Information about one or more network ACLs. NetworkAcls []*NetworkAcl `locationName:"networkAclSet" locationNameList:"item" type:"list"` + + metadataDescribeNetworkAclsOutput `json:"-" xml:"-"` +} + +type metadataDescribeNetworkAclsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14364,10 +12631,7 @@ func (s DescribeNetworkAclsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeNetworkInterfaceAttribute. type DescribeNetworkInterfaceAttributeInput struct { - _ struct{} `type:"structure"` - // The attribute of the network interface. Attribute *string `locationName:"attribute" type:"string" enum:"NetworkInterfaceAttribute"` @@ -14379,6 +12643,12 @@ type DescribeNetworkInterfaceAttributeInput struct { // The ID of the network interface. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"` + + metadataDescribeNetworkInterfaceAttributeInput `json:"-" xml:"-"` +} + +type metadataDescribeNetworkInterfaceAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14391,23 +12661,7 @@ func (s DescribeNetworkInterfaceAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeNetworkInterfaceAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeNetworkInterfaceAttributeInput"} - if s.NetworkInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DescribeNetworkInterfaceAttribute. type DescribeNetworkInterfaceAttributeOutput struct { - _ struct{} `type:"structure"` - // The attachment (if any) of the network interface. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"` @@ -14422,6 +12676,12 @@ type DescribeNetworkInterfaceAttributeOutput struct { // Indicates whether source/destination checking is enabled. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"` + + metadataDescribeNetworkInterfaceAttributeOutput `json:"-" xml:"-"` +} + +type metadataDescribeNetworkInterfaceAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14434,10 +12694,7 @@ func (s DescribeNetworkInterfaceAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeNetworkInterfaces. type DescribeNetworkInterfacesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -14474,27 +12731,24 @@ type DescribeNetworkInterfacesInput struct { // // attachment.attachment-id - The ID of the interface attachment. // - // attachment.attach.time - The time that the network interface was attached - // to an instance. - // - // attachment.delete-on-termination - Indicates whether the attachment is - // deleted when an instance is terminated. - // - // attachment.device-index - The device index to which the network interface - // is attached. - // // attachment.instance-id - The ID of the instance to which the network interface // is attached. // // attachment.instance-owner-id - The owner ID of the instance to which the // network interface is attached. // - // attachment.nat-gateway-id - The ID of the NAT gateway to which the network - // interface is attached. + // attachment.device-index - The device index to which the network interface + // is attached. // // attachment.status - The status of the attachment (attaching | attached // | detaching | detached). // + // attachment.attach.time - The time that the network interface was attached + // to an instance. + // + // attachment.delete-on-termination - Indicates whether the attachment is + // deleted when an instance is terminated. + // // availability-zone - The Availability Zone of the network interface. // // description - The description of the network interface. @@ -14525,7 +12779,7 @@ type DescribeNetworkInterfacesInput struct { // source-desk-check - Indicates whether the network interface performs source/destination // checking. A value of true means checking is enabled, and false means checking // is disabled. The value must be false for the network interface to perform - // network address translation (NAT) in your VPC. + // Network Address Translation (NAT) in your VPC. // // status - The status of the network interface. If the network interface // is not attached to an instance, the status is available; if a network interface @@ -14552,6 +12806,12 @@ type DescribeNetworkInterfacesInput struct { // // Default: Describes all your network interfaces. NetworkInterfaceIds []*string `locationName:"NetworkInterfaceId" locationNameList:"item" type:"list"` + + metadataDescribeNetworkInterfacesInput `json:"-" xml:"-"` +} + +type metadataDescribeNetworkInterfacesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14564,12 +12824,15 @@ func (s DescribeNetworkInterfacesInput) GoString() string { return s.String() } -// Contains the output of DescribeNetworkInterfaces. type DescribeNetworkInterfacesOutput struct { - _ struct{} `type:"structure"` - // Information about one or more network interfaces. NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"` + + metadataDescribeNetworkInterfacesOutput `json:"-" xml:"-"` +} + +type metadataDescribeNetworkInterfacesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14582,10 +12845,7 @@ func (s DescribeNetworkInterfacesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribePlacementGroups. type DescribePlacementGroupsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -14606,6 +12866,12 @@ type DescribePlacementGroupsInput struct { // // Default: Describes all your placement groups, or only those otherwise specified. GroupNames []*string `locationName:"groupName" type:"list"` + + metadataDescribePlacementGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribePlacementGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14618,12 +12884,15 @@ func (s DescribePlacementGroupsInput) GoString() string { return s.String() } -// Contains the output of DescribePlacementGroups. type DescribePlacementGroupsOutput struct { - _ struct{} `type:"structure"` - // One or more placement groups. PlacementGroups []*PlacementGroup `locationName:"placementGroupSet" locationNameList:"item" type:"list"` + + metadataDescribePlacementGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribePlacementGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14636,10 +12905,7 @@ func (s DescribePlacementGroupsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribePrefixLists. type DescribePrefixListsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -14667,6 +12933,12 @@ type DescribePrefixListsInput struct { // One or more prefix list IDs. PrefixListIds []*string `locationName:"PrefixListId" locationNameList:"item" type:"list"` + + metadataDescribePrefixListsInput `json:"-" xml:"-"` +} + +type metadataDescribePrefixListsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14679,16 +12951,19 @@ func (s DescribePrefixListsInput) GoString() string { return s.String() } -// Contains the output of DescribePrefixLists. type DescribePrefixListsOutput struct { - _ struct{} `type:"structure"` - // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `locationName:"nextToken" type:"string"` // All available prefix lists. PrefixLists []*PrefixList `locationName:"prefixListSet" locationNameList:"item" type:"list"` + + metadataDescribePrefixListsOutput `json:"-" xml:"-"` +} + +type metadataDescribePrefixListsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14701,10 +12976,7 @@ func (s DescribePrefixListsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeRegions. type DescribeRegionsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -14720,6 +12992,12 @@ type DescribeRegionsInput struct { // The names of one or more regions. RegionNames []*string `locationName:"RegionName" locationNameList:"RegionName" type:"list"` + + metadataDescribeRegionsInput `json:"-" xml:"-"` +} + +type metadataDescribeRegionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14732,12 +13010,15 @@ func (s DescribeRegionsInput) GoString() string { return s.String() } -// Contains the output of DescribeRegions. type DescribeRegionsOutput struct { - _ struct{} `type:"structure"` - // Information about one or more regions. Regions []*Region `locationName:"regionInfo" locationNameList:"item" type:"list"` + + metadataDescribeRegionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeRegionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14750,10 +13031,7 @@ func (s DescribeRegionsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeReservedInstances. type DescribeReservedInstancesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -14773,12 +13051,13 @@ type DescribeReservedInstancesInput struct { // fixed-price - The purchase price of the Reserved Instance (for example, // 9800.0). // - // instance-type - The instance type that is covered by the reservation. + // instance-type - The instance type on which the Reserved Instance can be + // used. // // product-description - The Reserved Instance product platform description. // Instances that include (Amazon VPC) in the product platform description will // only be displayed to EC2-Classic account holders and are for use with Amazon - // VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon + // VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon // VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) | // Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows // with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows @@ -14819,6 +13098,12 @@ type DescribeReservedInstancesInput struct { // Default: Describes all your Reserved Instances, or only those otherwise // specified. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list"` + + metadataDescribeReservedInstancesInput `json:"-" xml:"-"` +} + +type metadataDescribeReservedInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14831,10 +13116,7 @@ func (s DescribeReservedInstancesInput) GoString() string { return s.String() } -// Contains the parameters for DescribeReservedInstancesListings. type DescribeReservedInstancesListingsInput struct { - _ struct{} `type:"structure"` - // One or more filters. // // reserved-instances-id - The ID of the Reserved Instances. @@ -14850,8 +13132,14 @@ type DescribeReservedInstancesListingsInput struct { // One or more Reserved Instance IDs. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"` - // One or more Reserved Instance listing IDs. + // One or more Reserved Instance Listing IDs. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"` + + metadataDescribeReservedInstancesListingsInput `json:"-" xml:"-"` +} + +type metadataDescribeReservedInstancesListingsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14864,12 +13152,15 @@ func (s DescribeReservedInstancesListingsInput) GoString() string { return s.String() } -// Contains the output of DescribeReservedInstancesListings. type DescribeReservedInstancesListingsOutput struct { - _ struct{} `type:"structure"` - // Information about the Reserved Instance listing. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"` + + metadataDescribeReservedInstancesListingsOutput `json:"-" xml:"-"` +} + +type metadataDescribeReservedInstancesListingsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14882,10 +13173,7 @@ func (s DescribeReservedInstancesListingsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeReservedInstancesModifications. type DescribeReservedInstancesModificationsInput struct { - _ struct{} `type:"structure"` - // One or more filters. // // client-token - The idempotency token for the modification request. @@ -14927,6 +13215,12 @@ type DescribeReservedInstancesModificationsInput struct { // IDs for the submitted modification request. ReservedInstancesModificationIds []*string `locationName:"ReservedInstancesModificationId" locationNameList:"ReservedInstancesModificationId" type:"list"` + + metadataDescribeReservedInstancesModificationsInput `json:"-" xml:"-"` +} + +type metadataDescribeReservedInstancesModificationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14939,16 +13233,19 @@ func (s DescribeReservedInstancesModificationsInput) GoString() string { return s.String() } -// Contains the output of DescribeReservedInstancesModifications. type DescribeReservedInstancesModificationsOutput struct { - _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // The Reserved Instance modification information. ReservedInstancesModifications []*ReservedInstancesModification `locationName:"reservedInstancesModificationsSet" locationNameList:"item" type:"list"` + + metadataDescribeReservedInstancesModificationsOutput `json:"-" xml:"-"` +} + +type metadataDescribeReservedInstancesModificationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -14961,10 +13258,7 @@ func (s DescribeReservedInstancesModificationsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeReservedInstancesOfferings. type DescribeReservedInstancesOfferingsInput struct { - _ struct{} `type:"structure"` - // The Availability Zone in which the Reserved Instance can be used. AvailabilityZone *string `type:"string"` @@ -14985,11 +13279,12 @@ type DescribeReservedInstancesOfferingsInput struct { // fixed-price - The purchase price of the Reserved Instance (for example, // 9800.0). // - // instance-type - The instance type that is covered by the reservation. + // instance-type - The instance type on which the Reserved Instance can be + // used. // // marketplace - Set to true to show only Reserved Instance Marketplace offerings. // When this filter is not used, which is the default behavior, all offerings - // from both AWS and the Reserved Instance Marketplace are listed. + // from AWS and Reserved Instance Marketplace are listed. // // product-description - The Reserved Instance product platform description. // Instances that include (Amazon VPC) in the product platform description will @@ -15007,18 +13302,18 @@ type DescribeReservedInstancesOfferingsInput struct { // example, 0.84). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` - // Include Reserved Instance Marketplace offerings in the response. + // Include Marketplace offerings in the response. IncludeMarketplace *bool `type:"boolean"` - // The tenancy of the instances covered by the reservation. A Reserved Instance - // with a tenancy of dedicated is applied to instances that run in a VPC on - // single-tenant hardware (i.e., Dedicated Instances). + // The tenancy of the Reserved Instance offering. A Reserved Instance with dedicated + // tenancy runs on single-tenant hardware and can only be launched within a + // VPC. // // Default: default InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"` - // The instance type that the reservation will cover (for example, m1.small). - // For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) + // The instance type on which the Reserved Instance can be used. For more information, + // see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) // in the Amazon Elastic Compute Cloud User Guide. InstanceType *string `type:"string" enum:"InstanceType"` @@ -15058,6 +13353,12 @@ type DescribeReservedInstancesOfferingsInput struct { // One or more Reserved Instances offering IDs. ReservedInstancesOfferingIds []*string `locationName:"ReservedInstancesOfferingId" type:"list"` + + metadataDescribeReservedInstancesOfferingsInput `json:"-" xml:"-"` +} + +type metadataDescribeReservedInstancesOfferingsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15070,16 +13371,19 @@ func (s DescribeReservedInstancesOfferingsInput) GoString() string { return s.String() } -// Contains the output of DescribeReservedInstancesOfferings. type DescribeReservedInstancesOfferingsOutput struct { - _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // A list of Reserved Instances offerings. ReservedInstancesOfferings []*ReservedInstancesOffering `locationName:"reservedInstancesOfferingsSet" locationNameList:"item" type:"list"` + + metadataDescribeReservedInstancesOfferingsOutput `json:"-" xml:"-"` +} + +type metadataDescribeReservedInstancesOfferingsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15092,12 +13396,15 @@ func (s DescribeReservedInstancesOfferingsOutput) GoString() string { return s.String() } -// Contains the output for DescribeReservedInstances. type DescribeReservedInstancesOutput struct { - _ struct{} `type:"structure"` - // A list of Reserved Instances. ReservedInstances []*ReservedInstances `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"` + + metadataDescribeReservedInstancesOutput `json:"-" xml:"-"` +} + +type metadataDescribeReservedInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15110,10 +13417,7 @@ func (s DescribeReservedInstancesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeRouteTables. type DescribeRouteTablesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -15131,7 +13435,7 @@ type DescribeRouteTablesInput struct { // association.subnet-id - The ID of the subnet involved in the association. // // association.main - Indicates whether the route table is the main route - // table for the VPC (true | false). + // table for the VPC. // // route-table-id - The ID of the route table. // @@ -15146,8 +13450,6 @@ type DescribeRouteTablesInput struct { // route.instance-id - The ID of an instance specified in a route in the // table. // - // route.nat-gateway-id - The ID of a NAT gateway. - // // route.origin - Describes how the route was created. CreateRouteTable indicates // that the route was automatically created when the route table was created; // CreateRoute indicates that the route was manually added to the route table; @@ -15181,6 +13483,12 @@ type DescribeRouteTablesInput struct { // // Default: Describes all your route tables. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"` + + metadataDescribeRouteTablesInput `json:"-" xml:"-"` +} + +type metadataDescribeRouteTablesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15193,12 +13501,15 @@ func (s DescribeRouteTablesInput) GoString() string { return s.String() } -// Contains the output of DescribeRouteTables. type DescribeRouteTablesOutput struct { - _ struct{} `type:"structure"` - // Information about one or more route tables. RouteTables []*RouteTable `locationName:"routeTableSet" locationNameList:"item" type:"list"` + + metadataDescribeRouteTablesOutput `json:"-" xml:"-"` +} + +type metadataDescribeRouteTablesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15211,310 +13522,94 @@ func (s DescribeRouteTablesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeScheduledInstanceAvailability. -type DescribeScheduledInstanceAvailabilityInput struct { - _ struct{} `type:"structure"` - +type DescribeSecurityGroupsInput struct { // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. - DryRun *bool `type:"boolean"` + DryRun *bool `locationName:"dryRun" type:"boolean"` // One or more filters. // - // availability-zone - The Availability Zone (for example, us-west-2a). + // description - The description of the security group. + // + // egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service + // to which the security group allows access. + // + // group-id - The ID of the security group. + // + // group-name - The name of the security group. + // + // ip-permission.cidr - A CIDR range that has been granted permission. + // + // ip-permission.from-port - The start of port range for the TCP and UDP + // protocols, or an ICMP type number. + // + // ip-permission.group-id - The ID of a security group that has been granted + // permission. + // + // ip-permission.group-name - The name of a security group that has been + // granted permission. + // + // ip-permission.protocol - The IP protocol for the permission (tcp | udp + // | icmp or a protocol number). + // + // ip-permission.to-port - The end of port range for the TCP and UDP protocols, + // or an ICMP code. + // + // ip-permission.user-id - The ID of an AWS account that has been granted + // permission. + // + // owner-id - The AWS account ID of the owner of the security group. // - // instance-type - The instance type (for example, c4.large). + // tag-key - The key of a tag assigned to the security group. // - // network-platform - The network platform (EC2-Classic or EC2-VPC). + // tag-value - The value of a tag assigned to the security group. // - // platform - The platform (Linux/UNIX or Windows). + // vpc-id - The ID of the VPC specified when the security group was created. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` - // The time period for the first schedule to start. - FirstSlotStartTimeRange *SlotDateTimeRangeRequest `type:"structure" required:"true"` - - // The maximum number of results to return in a single call. This value can - // be between 5 and 300. The default value is 300. To retrieve the remaining - // results, make another call with the returned NextToken value. - MaxResults *int64 `type:"integer"` - - // The maximum available duration, in hours. This value must be greater than - // MinSlotDurationInHours and less than 1,720. - MaxSlotDurationInHours *int64 `type:"integer"` + // One or more security group IDs. Required for security groups in a nondefault + // VPC. + // + // Default: Describes all your security groups. + GroupIds []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"` - // The minimum available duration, in hours. The minimum required duration is - // 1,200 hours per year. For example, the minimum daily schedule is 4 hours, - // the minimum weekly schedule is 24 hours, and the minimum monthly schedule - // is 100 hours. - MinSlotDurationInHours *int64 `type:"integer"` + // [EC2-Classic and default VPC only] One or more security group names. You + // can specify either the security group name or the security group ID. For + // security groups in a nondefault VPC, use the group-name filter to describe + // security groups by name. + // + // Default: Describes all your security groups. + GroupNames []*string `locationName:"GroupName" locationNameList:"GroupName" type:"list"` - // The token for the next set of results. - NextToken *string `type:"string"` + metadataDescribeSecurityGroupsInput `json:"-" xml:"-"` +} - // The schedule recurrence. - Recurrence *ScheduledInstanceRecurrenceRequest `type:"structure" required:"true"` +type metadataDescribeSecurityGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeScheduledInstanceAvailabilityInput) String() string { +func (s DescribeSecurityGroupsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeScheduledInstanceAvailabilityInput) GoString() string { +func (s DescribeSecurityGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeScheduledInstanceAvailabilityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledInstanceAvailabilityInput"} - if s.FirstSlotStartTimeRange == nil { - invalidParams.Add(request.NewErrParamRequired("FirstSlotStartTimeRange")) - } - if s.Recurrence == nil { - invalidParams.Add(request.NewErrParamRequired("Recurrence")) - } - if s.FirstSlotStartTimeRange != nil { - if err := s.FirstSlotStartTimeRange.Validate(); err != nil { - invalidParams.AddNested("FirstSlotStartTimeRange", err.(request.ErrInvalidParams)) - } - } +type DescribeSecurityGroupsOutput struct { + // Information about one or more security groups. + SecurityGroups []*SecurityGroup `locationName:"securityGroupInfo" locationNameList:"item" type:"list"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDescribeSecurityGroupsOutput `json:"-" xml:"-"` } -// Contains the output of DescribeScheduledInstanceAvailability. -type DescribeScheduledInstanceAvailabilityOutput struct { - _ struct{} `type:"structure"` - - // The token required to retrieve the next set of results. This value is null - // when there are no more results to return. - NextToken *string `locationName:"nextToken" type:"string"` - - // Information about the available Scheduled Instances. - ScheduledInstanceAvailabilitySet []*ScheduledInstanceAvailability `locationName:"scheduledInstanceAvailabilitySet" locationNameList:"item" type:"list"` -} - -// String returns the string representation -func (s DescribeScheduledInstanceAvailabilityOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScheduledInstanceAvailabilityOutput) GoString() string { - return s.String() -} - -// Contains the parameters for DescribeScheduledInstances. -type DescribeScheduledInstancesInput struct { - _ struct{} `type:"structure"` - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have - // the required permissions, the error response is DryRunOperation. Otherwise, - // it is UnauthorizedOperation. - DryRun *bool `type:"boolean"` - - // One or more filters. - // - // availability-zone - The Availability Zone (for example, us-west-2a). - // - // instance-type - The instance type (for example, c4.large). - // - // network-platform - The network platform (EC2-Classic or EC2-VPC). - // - // platform - The platform (Linux/UNIX or Windows). - Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` - - // The maximum number of results to return in a single call. This value can - // be between 5 and 300. The default value is 100. To retrieve the remaining - // results, make another call with the returned NextToken value. - MaxResults *int64 `type:"integer"` - - // The token for the next set of results. - NextToken *string `type:"string"` - - // One or more Scheduled Instance IDs. - ScheduledInstanceIds []*string `locationName:"ScheduledInstanceId" locationNameList:"ScheduledInstanceId" type:"list"` - - // The time period for the first schedule to start. - SlotStartTimeRange *SlotStartTimeRangeRequest `type:"structure"` -} - -// String returns the string representation -func (s DescribeScheduledInstancesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScheduledInstancesInput) GoString() string { - return s.String() -} - -// Contains the output of DescribeScheduledInstances. -type DescribeScheduledInstancesOutput struct { - _ struct{} `type:"structure"` - - // The token required to retrieve the next set of results. This value is null - // when there are no more results to return. - NextToken *string `locationName:"nextToken" type:"string"` - - // Information about the Scheduled Instances. - ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"` -} - -// String returns the string representation -func (s DescribeScheduledInstancesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScheduledInstancesOutput) GoString() string { - return s.String() -} - -type DescribeSecurityGroupReferencesInput struct { - _ struct{} `type:"structure"` - - // Checks whether you have the required permissions for the operation, without - // actually making the request, and provides an error response. If you have - // the required permissions, the error response is DryRunOperation. Otherwise, - // it is UnauthorizedOperation. - DryRun *bool `type:"boolean"` - - // One or more security group IDs in your account. - GroupId []*string `locationNameList:"item" type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeSecurityGroupReferencesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeSecurityGroupReferencesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeSecurityGroupReferencesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityGroupReferencesInput"} - if s.GroupId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeSecurityGroupReferencesOutput struct { - _ struct{} `type:"structure"` - - // Information about the VPCs with the referencing security groups. - SecurityGroupReferenceSet []*SecurityGroupReference `locationName:"securityGroupReferenceSet" locationNameList:"item" type:"list"` -} - -// String returns the string representation -func (s DescribeSecurityGroupReferencesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeSecurityGroupReferencesOutput) GoString() string { - return s.String() -} - -// Contains the parameters for DescribeSecurityGroups. -type DescribeSecurityGroupsInput struct { - _ struct{} `type:"structure"` - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have - // the required permissions, the error response is DryRunOperation. Otherwise, - // it is UnauthorizedOperation. - DryRun *bool `locationName:"dryRun" type:"boolean"` - - // One or more filters. If using multiple filters for rules, the results include - // security groups for which any combination of rules - not necessarily a single - // rule - match all filters. - // - // description - The description of the security group. - // - // egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service - // to which the security group allows access. - // - // group-id - The ID of the security group. - // - // group-name - The name of the security group. - // - // ip-permission.cidr - A CIDR range that has been granted permission. - // - // ip-permission.from-port - The start of port range for the TCP and UDP - // protocols, or an ICMP type number. - // - // ip-permission.group-id - The ID of a security group that has been granted - // permission. - // - // ip-permission.group-name - The name of a security group that has been - // granted permission. - // - // ip-permission.protocol - The IP protocol for the permission (tcp | udp - // | icmp or a protocol number). - // - // ip-permission.to-port - The end of port range for the TCP and UDP protocols, - // or an ICMP code. - // - // ip-permission.user-id - The ID of an AWS account that has been granted - // permission. - // - // owner-id - The AWS account ID of the owner of the security group. - // - // tag-key - The key of a tag assigned to the security group. - // - // tag-value - The value of a tag assigned to the security group. - // - // vpc-id - The ID of the VPC specified when the security group was created. - Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` - - // One or more security group IDs. Required for security groups in a nondefault - // VPC. - // - // Default: Describes all your security groups. - GroupIds []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"` - - // [EC2-Classic and default VPC only] One or more security group names. You - // can specify either the security group name or the security group ID. For - // security groups in a nondefault VPC, use the group-name filter to describe - // security groups by name. - // - // Default: Describes all your security groups. - GroupNames []*string `locationName:"GroupName" locationNameList:"GroupName" type:"list"` -} - -// String returns the string representation -func (s DescribeSecurityGroupsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeSecurityGroupsInput) GoString() string { - return s.String() -} - -// Contains the output of DescribeSecurityGroups. -type DescribeSecurityGroupsOutput struct { - _ struct{} `type:"structure"` - - // Information about one or more security groups. - SecurityGroups []*SecurityGroup `locationName:"securityGroupInfo" locationNameList:"item" type:"list"` -} +type metadataDescribeSecurityGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` +} // String returns the string representation func (s DescribeSecurityGroupsOutput) String() string { @@ -15526,10 +13621,7 @@ func (s DescribeSecurityGroupsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeSnapshotAttribute. type DescribeSnapshotAttributeInput struct { - _ struct{} `type:"structure"` - // The snapshot attribute you would like to view. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"` @@ -15541,6 +13633,12 @@ type DescribeSnapshotAttributeInput struct { // The ID of the EBS snapshot. SnapshotId *string `type:"string" required:"true"` + + metadataDescribeSnapshotAttributeInput `json:"-" xml:"-"` +} + +type metadataDescribeSnapshotAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15553,26 +13651,7 @@ func (s DescribeSnapshotAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeSnapshotAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeSnapshotAttributeInput"} - if s.Attribute == nil { - invalidParams.Add(request.NewErrParamRequired("Attribute")) - } - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DescribeSnapshotAttribute. type DescribeSnapshotAttributeOutput struct { - _ struct{} `type:"structure"` - // A list of permissions for creating volumes from the snapshot. CreateVolumePermissions []*CreateVolumePermission `locationName:"createVolumePermission" locationNameList:"item" type:"list"` @@ -15581,6 +13660,12 @@ type DescribeSnapshotAttributeOutput struct { // The ID of the EBS snapshot. SnapshotId *string `locationName:"snapshotId" type:"string"` + + metadataDescribeSnapshotAttributeOutput `json:"-" xml:"-"` +} + +type metadataDescribeSnapshotAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15593,10 +13678,7 @@ func (s DescribeSnapshotAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeSnapshots. type DescribeSnapshotsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -15667,6 +13749,12 @@ type DescribeSnapshotsInput struct { // // Default: Describes snapshots for which you have launch permissions. SnapshotIds []*string `locationName:"SnapshotId" locationNameList:"SnapshotId" type:"list"` + + metadataDescribeSnapshotsInput `json:"-" xml:"-"` +} + +type metadataDescribeSnapshotsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15679,10 +13767,7 @@ func (s DescribeSnapshotsInput) GoString() string { return s.String() } -// Contains the output of DescribeSnapshots. type DescribeSnapshotsOutput struct { - _ struct{} `type:"structure"` - // The NextToken value to include in a future DescribeSnapshots request. When // the results of a DescribeSnapshots request exceed MaxResults, this value // can be used to retrieve the next page of results. This value is null when @@ -15691,6 +13776,12 @@ type DescribeSnapshotsOutput struct { // Information about the snapshots. Snapshots []*Snapshot `locationName:"snapshotSet" locationNameList:"item" type:"list"` + + metadataDescribeSnapshotsOutput `json:"-" xml:"-"` +} + +type metadataDescribeSnapshotsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15705,13 +13796,17 @@ func (s DescribeSnapshotsOutput) GoString() string { // Contains the parameters for DescribeSpotDatafeedSubscription. type DescribeSpotDatafeedSubscriptionInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + metadataDescribeSpotDatafeedSubscriptionInput `json:"-" xml:"-"` +} + +type metadataDescribeSpotDatafeedSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15726,10 +13821,14 @@ func (s DescribeSpotDatafeedSubscriptionInput) GoString() string { // Contains the output of DescribeSpotDatafeedSubscription. type DescribeSpotDatafeedSubscriptionOutput struct { - _ struct{} `type:"structure"` - - // The Spot instance data feed subscription. + // The Spot Instance data feed subscription. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"` + + metadataDescribeSpotDatafeedSubscriptionOutput `json:"-" xml:"-"` +} + +type metadataDescribeSpotDatafeedSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15744,8 +13843,6 @@ func (s DescribeSpotDatafeedSubscriptionOutput) GoString() string { // Contains the parameters for DescribeSpotFleetInstances. type DescribeSpotFleetInstancesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -15762,6 +13859,12 @@ type DescribeSpotFleetInstancesInput struct { // The ID of the Spot fleet request. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` + + metadataDescribeSpotFleetInstancesInput `json:"-" xml:"-"` +} + +type metadataDescribeSpotFleetInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15774,23 +13877,8 @@ func (s DescribeSpotFleetInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeSpotFleetInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetInstancesInput"} - if s.SpotFleetRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of DescribeSpotFleetInstances. type DescribeSpotFleetInstancesOutput struct { - _ struct{} `type:"structure"` - // The running instances. Note that this list is refreshed periodically and // might be out of date. ActiveInstances []*ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list" required:"true"` @@ -15801,6 +13889,12 @@ type DescribeSpotFleetInstancesOutput struct { // The ID of the Spot fleet request. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` + + metadataDescribeSpotFleetInstancesOutput `json:"-" xml:"-"` +} + +type metadataDescribeSpotFleetInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15815,8 +13909,6 @@ func (s DescribeSpotFleetInstancesOutput) GoString() string { // Contains the parameters for DescribeSpotFleetRequestHistory. type DescribeSpotFleetRequestHistoryInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -15839,6 +13931,12 @@ type DescribeSpotFleetRequestHistoryInput struct { // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"` + + metadataDescribeSpotFleetRequestHistoryInput `json:"-" xml:"-"` +} + +type metadataDescribeSpotFleetRequestHistoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15851,26 +13949,8 @@ func (s DescribeSpotFleetRequestHistoryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeSpotFleetRequestHistoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetRequestHistoryInput"} - if s.SpotFleetRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId")) - } - if s.StartTime == nil { - invalidParams.Add(request.NewErrParamRequired("StartTime")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of DescribeSpotFleetRequestHistory. type DescribeSpotFleetRequestHistoryOutput struct { - _ struct{} `type:"structure"` - // Information about the events in the history of the Spot fleet request. HistoryRecords []*HistoryRecord `locationName:"historyRecordSet" locationNameList:"item" type:"list" required:"true"` @@ -15889,6 +13969,12 @@ type DescribeSpotFleetRequestHistoryOutput struct { // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"` + + metadataDescribeSpotFleetRequestHistoryOutput `json:"-" xml:"-"` +} + +type metadataDescribeSpotFleetRequestHistoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15903,8 +13989,6 @@ func (s DescribeSpotFleetRequestHistoryOutput) GoString() string { // Contains the parameters for DescribeSpotFleetRequests. type DescribeSpotFleetRequestsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -15921,6 +14005,12 @@ type DescribeSpotFleetRequestsInput struct { // The IDs of the Spot fleet requests. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list"` + + metadataDescribeSpotFleetRequestsInput `json:"-" xml:"-"` +} + +type metadataDescribeSpotFleetRequestsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15935,14 +14025,18 @@ func (s DescribeSpotFleetRequestsInput) GoString() string { // Contains the output of DescribeSpotFleetRequests. type DescribeSpotFleetRequestsOutput struct { - _ struct{} `type:"structure"` - // The token required to retrieve the next set of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // Information about the configuration of your Spot fleet. SpotFleetRequestConfigs []*SpotFleetRequestConfig `locationName:"spotFleetRequestConfigSet" locationNameList:"item" type:"list" required:"true"` + + metadataDescribeSpotFleetRequestsOutput `json:"-" xml:"-"` +} + +type metadataDescribeSpotFleetRequestsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -15957,8 +14051,6 @@ func (s DescribeSpotFleetRequestsOutput) GoString() string { // Contains the parameters for DescribeSpotInstanceRequests. type DescribeSpotInstanceRequestsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -15969,7 +14061,7 @@ type DescribeSpotInstanceRequestsInput struct { // // availability-zone-group - The Availability Zone group. // - // create-time - The time stamp when the Spot instance request was created. + // create-time - The time stamp when the Spot Instance request was created. // // fault-code - The fault code related to the request. // @@ -15977,7 +14069,7 @@ type DescribeSpotInstanceRequestsInput struct { // // instance-id - The ID of the instance that fulfilled the request. // - // launch-group - The Spot instance launch group. + // launch-group - The Spot Instance launch group. // // launch.block-device-mapping.delete-on-termination - Indicates whether // the Amazon EBS volume is deleted on instance termination. @@ -15991,22 +14083,21 @@ type DescribeSpotInstanceRequestsInput struct { // launch.block-device-mapping.volume-size - The size of the Amazon EBS volume, // in GiB. // - // launch.block-device-mapping.volume-type - The type of the Amazon EBS volume: - // gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput - // Optimized HDD, sc1for Cold HDD, or standard for Magnetic. + // launch.block-device-mapping.volume-type - The type of the Amazon EBS volume + // (gp2 | standard | io1). // // launch.group-id - The security group for the instance. // // launch.image-id - The ID of the AMI. // - // launch.instance-type - The type of instance (for example, m3.medium). + // launch.instance-type - The type of instance (for example, m1.small). // // launch.kernel-id - The kernel ID. // // launch.key-name - The name of the key pair the instance launched with. // // launch.monitoring-enabled - Whether monitoring is enabled for the Spot - // instance. + // Instance. // // launch.ramdisk-id - The RAM disk ID. // @@ -16037,21 +14128,21 @@ type DescribeSpotInstanceRequestsInput struct { // product-description - The product description associated with the instance // (Linux/UNIX | Windows). // - // spot-instance-request-id - The Spot instance request ID. + // spot-instance-request-id - The Spot Instance request ID. // - // spot-price - The maximum hourly price for any Spot instance launched to + // spot-price - The maximum hourly price for any Spot Instance launched to // fulfill the request. // - // state - The state of the Spot instance request (open | active | closed + // state - The state of the Spot Instance request (open | active | closed // | cancelled | failed). Spot bid status information can help you track your - // Amazon EC2 Spot instance requests. For more information, see Spot Bid Status + // Amazon EC2 Spot Instance requests. For more information, see Spot Bid Status // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) // in the Amazon Elastic Compute Cloud User Guide. // // status-code - The short code describing the most recent evaluation of - // your Spot instance request. + // your Spot Instance request. // - // status-message - The message explaining the status of the Spot instance + // status-message - The message explaining the status of the Spot Instance // request. // // tag:key=value - The key/value combination of a tag assigned to the resource. @@ -16066,7 +14157,7 @@ type DescribeSpotInstanceRequestsInput struct { // tag-value - The value of a tag assigned to the resource. This filter is // independent of the tag-key filter. // - // type - The type of Spot instance request (one-time | persistent). + // type - The type of Spot Instance request (one-time | persistent). // // launched-availability-zone - The Availability Zone in which the bid is // launched. @@ -16076,8 +14167,14 @@ type DescribeSpotInstanceRequestsInput struct { // valid-until - The end date of the request. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` - // One or more Spot instance request IDs. + // One or more Spot Instance request IDs. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list"` + + metadataDescribeSpotInstanceRequestsInput `json:"-" xml:"-"` +} + +type metadataDescribeSpotInstanceRequestsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16092,10 +14189,14 @@ func (s DescribeSpotInstanceRequestsInput) GoString() string { // Contains the output of DescribeSpotInstanceRequests. type DescribeSpotInstanceRequestsOutput struct { - _ struct{} `type:"structure"` - - // One or more Spot instance requests. + // One or more Spot Instance requests. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"` + + metadataDescribeSpotInstanceRequestsOutput `json:"-" xml:"-"` +} + +type metadataDescribeSpotInstanceRequestsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16110,8 +14211,6 @@ func (s DescribeSpotInstanceRequestsOutput) GoString() string { // Contains the parameters for DescribeSpotPriceHistory. type DescribeSpotPriceHistoryInput struct { - _ struct{} `type:"structure"` - // Filters the results by the specified Availability Zone. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` @@ -16129,16 +14228,16 @@ type DescribeSpotPriceHistoryInput struct { // // availability-zone - The Availability Zone for which prices should be returned. // - // instance-type - The type of instance (for example, m3.medium). + // instance-type - The type of instance (for example, m1.small). // - // product-description - The product description for the Spot price (Linux/UNIX + // product-description - The product description for the Spot Price (Linux/UNIX // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon VPC) // | Windows (Amazon VPC)). // - // spot-price - The Spot price. The value must match exactly (or use wildcards; + // spot-price - The Spot Price. The value must match exactly (or use wildcards; // greater than or less than comparison is not supported). // - // timestamp - The timestamp of the Spot price history, in UTC format (for + // timestamp - The timestamp of the Spot Price history, in UTC format (for // example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater // than or less than comparison is not supported. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` @@ -16160,6 +14259,12 @@ type DescribeSpotPriceHistoryInput struct { // The date and time, up to the past 90 days, from which to start retrieving // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"` + + metadataDescribeSpotPriceHistoryInput `json:"-" xml:"-"` +} + +type metadataDescribeSpotPriceHistoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16174,14 +14279,18 @@ func (s DescribeSpotPriceHistoryInput) GoString() string { // Contains the output of DescribeSpotPriceHistory. type DescribeSpotPriceHistoryOutput struct { - _ struct{} `type:"structure"` - // The token required to retrieve the next set of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` - // The historical Spot prices. + // The historical Spot Prices. SpotPriceHistory []*SpotPrice `locationName:"spotPriceHistorySet" locationNameList:"item" type:"list"` + + metadataDescribeSpotPriceHistoryOutput `json:"-" xml:"-"` +} + +type metadataDescribeSpotPriceHistoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16194,87 +14303,12 @@ func (s DescribeSpotPriceHistoryOutput) GoString() string { return s.String() } -type DescribeStaleSecurityGroupsInput struct { - _ struct{} `type:"structure"` - - // Checks whether you have the required permissions for the operation, without +type DescribeSubnetsInput struct { + // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. - DryRun *bool `type:"boolean"` - - // The maximum number of items to return for this request. The request returns - // a token that you can specify in a subsequent call to get the next set of - // results. - MaxResults *int64 `min:"5" type:"integer"` - - // The token for the next set of items to return. (You received this token from - // a prior call.) - NextToken *string `min:"1" type:"string"` - - // The ID of the VPC. - VpcId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeStaleSecurityGroupsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeStaleSecurityGroupsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStaleSecurityGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStaleSecurityGroupsInput"} - if s.MaxResults != nil && *s.MaxResults < 5 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeStaleSecurityGroupsOutput struct { - _ struct{} `type:"structure"` - - // The token to use when requesting the next set of items. If there are no additional - // items to return, the string is empty. - NextToken *string `locationName:"nextToken" type:"string"` - - // Information about the stale security groups. - StaleSecurityGroupSet []*StaleSecurityGroup `locationName:"staleSecurityGroupSet" locationNameList:"item" type:"list"` -} - -// String returns the string representation -func (s DescribeStaleSecurityGroupsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeStaleSecurityGroupsOutput) GoString() string { - return s.String() -} - -// Contains the parameters for DescribeSubnets. -type DescribeSubnetsInput struct { - _ struct{} `type:"structure"` - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have - // the required permissions, the error response is DryRunOperation. Otherwise, - // it is UnauthorizedOperation. - DryRun *bool `locationName:"dryRun" type:"boolean"` + DryRun *bool `locationName:"dryRun" type:"boolean"` // One or more filters. // @@ -16314,6 +14348,12 @@ type DescribeSubnetsInput struct { // // Default: Describes all your subnets. SubnetIds []*string `locationName:"SubnetId" locationNameList:"SubnetId" type:"list"` + + metadataDescribeSubnetsInput `json:"-" xml:"-"` +} + +type metadataDescribeSubnetsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16326,12 +14366,15 @@ func (s DescribeSubnetsInput) GoString() string { return s.String() } -// Contains the output of DescribeSubnets. type DescribeSubnetsOutput struct { - _ struct{} `type:"structure"` - // Information about one or more subnets. Subnets []*Subnet `locationName:"subnetSet" locationNameList:"item" type:"list"` + + metadataDescribeSubnetsOutput `json:"-" xml:"-"` +} + +type metadataDescribeSubnetsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16344,10 +14387,7 @@ func (s DescribeSubnetsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeTags. type DescribeTagsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -16368,13 +14408,21 @@ type DescribeTagsInput struct { // value - The tag value. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` - // The maximum number of results to return in a single call. This value can - // be between 5 and 1000. To retrieve the remaining results, make another call - // with the returned NextToken value. + // The maximum number of results to return for the request in a single page. + // The remaining results of the initial request can be seen by sending another + // request with the returned NextToken value. This value can be between 5 and + // 1000; if MaxResults is given a value larger than 1000, only 1000 results + // are returned. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The token to retrieve the next page of results. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeTagsInput `json:"-" xml:"-"` +} + +type metadataDescribeTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16387,16 +14435,19 @@ func (s DescribeTagsInput) GoString() string { return s.String() } -// Contains the output of DescribeTags. type DescribeTagsOutput struct { - _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. This value is null // when there are no more results to return.. NextToken *string `locationName:"nextToken" type:"string"` // A list of tags. Tags []*TagDescription `locationName:"tagSet" locationNameList:"item" type:"list"` + + metadataDescribeTagsOutput `json:"-" xml:"-"` +} + +type metadataDescribeTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16409,10 +14460,7 @@ func (s DescribeTagsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVolumeAttribute. type DescribeVolumeAttributeInput struct { - _ struct{} `type:"structure"` - // The instance attribute. Attribute *string `type:"string" enum:"VolumeAttributeName"` @@ -16424,6 +14472,12 @@ type DescribeVolumeAttributeInput struct { // The ID of the volume. VolumeId *string `type:"string" required:"true"` + + metadataDescribeVolumeAttributeInput `json:"-" xml:"-"` +} + +type metadataDescribeVolumeAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16436,23 +14490,7 @@ func (s DescribeVolumeAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeVolumeAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeVolumeAttributeInput"} - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DescribeVolumeAttribute. type DescribeVolumeAttributeOutput struct { - _ struct{} `type:"structure"` - // The state of autoEnableIO attribute. AutoEnableIO *AttributeBooleanValue `locationName:"autoEnableIO" type:"structure"` @@ -16461,6 +14499,12 @@ type DescribeVolumeAttributeOutput struct { // The ID of the volume. VolumeId *string `locationName:"volumeId" type:"string"` + + metadataDescribeVolumeAttributeOutput `json:"-" xml:"-"` +} + +type metadataDescribeVolumeAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16473,10 +14517,7 @@ func (s DescribeVolumeAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVolumeStatus. type DescribeVolumeStatusInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -16536,6 +14577,12 @@ type DescribeVolumeStatusInput struct { // // Default: Describes all your volumes. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"` + + metadataDescribeVolumeStatusInput `json:"-" xml:"-"` +} + +type metadataDescribeVolumeStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16548,16 +14595,19 @@ func (s DescribeVolumeStatusInput) GoString() string { return s.String() } -// Contains the output of DescribeVolumeStatus. type DescribeVolumeStatusOutput struct { - _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // A list of volumes. VolumeStatuses []*VolumeStatusItem `locationName:"volumeStatusSet" locationNameList:"item" type:"list"` + + metadataDescribeVolumeStatusOutput `json:"-" xml:"-"` +} + +type metadataDescribeVolumeStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16570,10 +14620,7 @@ func (s DescribeVolumeStatusOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVolumes. type DescribeVolumesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -16624,8 +14671,8 @@ type DescribeVolumesInput struct { // volume-id - The volume ID. // // volume-type - The Amazon EBS volume type. This can be gp2 for General - // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, - // sc1 for Cold HDD, or standard for Magnetic volumes. + // Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, or standard + // for Magnetic volumes. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of volume results returned by DescribeVolumes in paginated @@ -16647,6 +14694,12 @@ type DescribeVolumesInput struct { // One or more volume IDs. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"` + + metadataDescribeVolumesInput `json:"-" xml:"-"` +} + +type metadataDescribeVolumesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16659,10 +14712,7 @@ func (s DescribeVolumesInput) GoString() string { return s.String() } -// Contains the output of DescribeVolumes. type DescribeVolumesOutput struct { - _ struct{} `type:"structure"` - // The NextToken value to include in a future DescribeVolumes request. When // the results of a DescribeVolumes request exceed MaxResults, this value can // be used to retrieve the next page of results. This value is null when there @@ -16671,6 +14721,12 @@ type DescribeVolumesOutput struct { // Information about the volumes. Volumes []*Volume `locationName:"volumeSet" locationNameList:"item" type:"list"` + + metadataDescribeVolumesOutput `json:"-" xml:"-"` +} + +type metadataDescribeVolumesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16683,12 +14739,9 @@ func (s DescribeVolumesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVpcAttribute. type DescribeVpcAttributeInput struct { - _ struct{} `type:"structure"` - // The VPC attribute. - Attribute *string `type:"string" required:"true" enum:"VpcAttributeName"` + Attribute *string `type:"string" enum:"VpcAttributeName"` // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have @@ -16698,6 +14751,12 @@ type DescribeVpcAttributeInput struct { // The ID of the VPC. VpcId *string `type:"string" required:"true"` + + metadataDescribeVpcAttributeInput `json:"-" xml:"-"` +} + +type metadataDescribeVpcAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16710,26 +14769,7 @@ func (s DescribeVpcAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeVpcAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeVpcAttributeInput"} - if s.Attribute == nil { - invalidParams.Add(request.NewErrParamRequired("Attribute")) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DescribeVpcAttribute. type DescribeVpcAttributeOutput struct { - _ struct{} `type:"structure"` - // Indicates whether the instances launched in the VPC get DNS hostnames. If // this attribute is true, instances in the VPC get DNS hostnames; otherwise, // they do not. @@ -16742,86 +14782,25 @@ type DescribeVpcAttributeOutput struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` -} - -// String returns the string representation -func (s DescribeVpcAttributeOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeVpcAttributeOutput) GoString() string { - return s.String() -} - -// Contains the parameters for DescribeVpcClassicLinkDnsSupport. -type DescribeVpcClassicLinkDnsSupportInput struct { - _ struct{} `type:"structure"` - - // The maximum number of items to return for this request. The request returns - // a token that you can specify in a subsequent call to get the next set of - // results. - MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"` - - // The token for the next set of items to return. (You received this token from - // a prior call.) - NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // One or more VPC IDs. - VpcIds []*string `locationNameList:"VpcId" type:"list"` -} - -// String returns the string representation -func (s DescribeVpcClassicLinkDnsSupportInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeVpcClassicLinkDnsSupportInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeVpcClassicLinkDnsSupportInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeVpcClassicLinkDnsSupportInput"} - if s.MaxResults != nil && *s.MaxResults < 5 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDescribeVpcAttributeOutput `json:"-" xml:"-"` } -// Contains the output of DescribeVpcClassicLinkDnsSupport. -type DescribeVpcClassicLinkDnsSupportOutput struct { - _ struct{} `type:"structure"` - - // The token to use when requesting the next set of items. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` - - // Information about the ClassicLink DNS support status of the VPCs. - Vpcs []*ClassicLinkDnsSupport `locationName:"vpcs" locationNameList:"item" type:"list"` +type metadataDescribeVpcAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeVpcClassicLinkDnsSupportOutput) String() string { +func (s DescribeVpcAttributeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeVpcClassicLinkDnsSupportOutput) GoString() string { +func (s DescribeVpcAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVpcClassicLink. type DescribeVpcClassicLinkInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -16848,6 +14827,12 @@ type DescribeVpcClassicLinkInput struct { // One or more VPCs for which you want to describe the ClassicLink status. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"` + + metadataDescribeVpcClassicLinkInput `json:"-" xml:"-"` +} + +type metadataDescribeVpcClassicLinkInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16860,12 +14845,15 @@ func (s DescribeVpcClassicLinkInput) GoString() string { return s.String() } -// Contains the output of DescribeVpcClassicLink. type DescribeVpcClassicLinkOutput struct { - _ struct{} `type:"structure"` - // The ClassicLink status of one or more VPCs. Vpcs []*VpcClassicLink `locationName:"vpcSet" locationNameList:"item" type:"list"` + + metadataDescribeVpcClassicLinkOutput `json:"-" xml:"-"` +} + +type metadataDescribeVpcClassicLinkOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16878,10 +14866,7 @@ func (s DescribeVpcClassicLinkOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVpcEndpointServices. type DescribeVpcEndpointServicesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -16898,6 +14883,12 @@ type DescribeVpcEndpointServicesInput struct { // The token for the next set of items to return. (You received this token from // a prior call.) NextToken *string `type:"string"` + + metadataDescribeVpcEndpointServicesInput `json:"-" xml:"-"` +} + +type metadataDescribeVpcEndpointServicesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16910,16 +14901,19 @@ func (s DescribeVpcEndpointServicesInput) GoString() string { return s.String() } -// Contains the output of DescribeVpcEndpointServices. type DescribeVpcEndpointServicesOutput struct { - _ struct{} `type:"structure"` - // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `locationName:"nextToken" type:"string"` // A list of supported AWS services. ServiceNames []*string `locationName:"serviceNameSet" locationNameList:"item" type:"list"` + + metadataDescribeVpcEndpointServicesOutput `json:"-" xml:"-"` +} + +type metadataDescribeVpcEndpointServicesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16932,10 +14926,7 @@ func (s DescribeVpcEndpointServicesOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVpcEndpoints. type DescribeVpcEndpointsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -16967,6 +14958,12 @@ type DescribeVpcEndpointsInput struct { // One or more endpoint IDs. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list"` + + metadataDescribeVpcEndpointsInput `json:"-" xml:"-"` +} + +type metadataDescribeVpcEndpointsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -16979,16 +14976,19 @@ func (s DescribeVpcEndpointsInput) GoString() string { return s.String() } -// Contains the output of DescribeVpcEndpoints. type DescribeVpcEndpointsOutput struct { - _ struct{} `type:"structure"` - // The token to use when requesting the next set of items. If there are no additional // items to return, the string is empty. NextToken *string `locationName:"nextToken" type:"string"` // Information about the endpoints. VpcEndpoints []*VpcEndpoint `locationName:"vpcEndpointSet" locationNameList:"item" type:"list"` + + metadataDescribeVpcEndpointsOutput `json:"-" xml:"-"` +} + +type metadataDescribeVpcEndpointsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17001,10 +15001,7 @@ func (s DescribeVpcEndpointsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVpcPeeringConnections. type DescribeVpcPeeringConnectionsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -17054,6 +15051,12 @@ type DescribeVpcPeeringConnectionsInput struct { // // Default: Describes all your VPC peering connections. VpcPeeringConnectionIds []*string `locationName:"VpcPeeringConnectionId" locationNameList:"item" type:"list"` + + metadataDescribeVpcPeeringConnectionsInput `json:"-" xml:"-"` +} + +type metadataDescribeVpcPeeringConnectionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17066,12 +15069,15 @@ func (s DescribeVpcPeeringConnectionsInput) GoString() string { return s.String() } -// Contains the output of DescribeVpcPeeringConnections. type DescribeVpcPeeringConnectionsOutput struct { - _ struct{} `type:"structure"` - // Information about the VPC peering connections. VpcPeeringConnections []*VpcPeeringConnection `locationName:"vpcPeeringConnectionSet" locationNameList:"item" type:"list"` + + metadataDescribeVpcPeeringConnectionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeVpcPeeringConnectionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17084,10 +15090,7 @@ func (s DescribeVpcPeeringConnectionsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVpcs. type DescribeVpcsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -17125,6 +15128,12 @@ type DescribeVpcsInput struct { // // Default: Describes all your VPCs. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"` + + metadataDescribeVpcsInput `json:"-" xml:"-"` +} + +type metadataDescribeVpcsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17137,12 +15146,15 @@ func (s DescribeVpcsInput) GoString() string { return s.String() } -// Contains the output of DescribeVpcs. type DescribeVpcsOutput struct { - _ struct{} `type:"structure"` - // Information about one or more VPCs. Vpcs []*Vpc `locationName:"vpcSet" locationNameList:"item" type:"list"` + + metadataDescribeVpcsOutput `json:"-" xml:"-"` +} + +type metadataDescribeVpcsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17155,10 +15167,7 @@ func (s DescribeVpcsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVpnConnections. type DescribeVpnConnectionsInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -17211,6 +15220,12 @@ type DescribeVpnConnectionsInput struct { // // Default: Describes your VPN connections. VpnConnectionIds []*string `locationName:"VpnConnectionId" locationNameList:"VpnConnectionId" type:"list"` + + metadataDescribeVpnConnectionsInput `json:"-" xml:"-"` +} + +type metadataDescribeVpnConnectionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17223,12 +15238,15 @@ func (s DescribeVpnConnectionsInput) GoString() string { return s.String() } -// Contains the output of DescribeVpnConnections. type DescribeVpnConnectionsOutput struct { - _ struct{} `type:"structure"` - // Information about one or more VPN connections. VpnConnections []*VpnConnection `locationName:"vpnConnectionSet" locationNameList:"item" type:"list"` + + metadataDescribeVpnConnectionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeVpnConnectionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17241,10 +15259,7 @@ func (s DescribeVpnConnectionsOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeVpnGateways. type DescribeVpnGatewaysInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -17258,8 +15273,7 @@ type DescribeVpnGatewaysInput struct { // // attachment.vpc-id - The ID of an attached VPC. // - // availability-zone - The Availability Zone for the virtual private gateway - // (if applicable). + // availability-zone - The Availability Zone for the virtual private gateway. // // state - The state of the virtual private gateway (pending | available // | deleting | deleted). @@ -17286,6 +15300,12 @@ type DescribeVpnGatewaysInput struct { // // Default: Describes all your virtual private gateways. VpnGatewayIds []*string `locationName:"VpnGatewayId" locationNameList:"VpnGatewayId" type:"list"` + + metadataDescribeVpnGatewaysInput `json:"-" xml:"-"` +} + +type metadataDescribeVpnGatewaysInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17298,12 +15318,15 @@ func (s DescribeVpnGatewaysInput) GoString() string { return s.String() } -// Contains the output of DescribeVpnGateways. type DescribeVpnGatewaysOutput struct { - _ struct{} `type:"structure"` - // Information about one or more virtual private gateways. VpnGateways []*VpnGateway `locationName:"vpnGatewaySet" locationNameList:"item" type:"list"` + + metadataDescribeVpnGatewaysOutput `json:"-" xml:"-"` +} + +type metadataDescribeVpnGatewaysOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17316,10 +15339,7 @@ func (s DescribeVpnGatewaysOutput) GoString() string { return s.String() } -// Contains the parameters for DetachClassicLinkVpc. type DetachClassicLinkVpcInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -17331,6 +15351,12 @@ type DetachClassicLinkVpcInput struct { // The ID of the VPC to which the instance is linked. VpcId *string `locationName:"vpcId" type:"string" required:"true"` + + metadataDetachClassicLinkVpcInput `json:"-" xml:"-"` +} + +type metadataDetachClassicLinkVpcInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17343,28 +15369,15 @@ func (s DetachClassicLinkVpcInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachClassicLinkVpcInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachClassicLinkVpcInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DetachClassicLinkVpc. type DetachClassicLinkVpcOutput struct { - _ struct{} `type:"structure"` - // Returns true if the request succeeds; otherwise, it returns an error. Return *bool `locationName:"return" type:"boolean"` + + metadataDetachClassicLinkVpcOutput `json:"-" xml:"-"` +} + +type metadataDetachClassicLinkVpcOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17377,10 +15390,7 @@ func (s DetachClassicLinkVpcOutput) GoString() string { return s.String() } -// Contains the parameters for DetachInternetGateway. type DetachInternetGatewayInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -17392,6 +15402,12 @@ type DetachInternetGatewayInput struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string" required:"true"` + + metadataDetachInternetGatewayInput `json:"-" xml:"-"` +} + +type metadataDetachInternetGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17404,24 +15420,12 @@ func (s DetachInternetGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachInternetGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachInternetGatewayInput"} - if s.InternetGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("InternetGatewayId")) - } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DetachInternetGatewayOutput struct { + metadataDetachInternetGatewayOutput `json:"-" xml:"-"` } -type DetachInternetGatewayOutput struct { - _ struct{} `type:"structure"` +type metadataDetachInternetGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17434,10 +15438,7 @@ func (s DetachInternetGatewayOutput) GoString() string { return s.String() } -// Contains the parameters for DetachNetworkInterface. type DetachNetworkInterfaceInput struct { - _ struct{} `type:"structure"` - // The ID of the attachment. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"` @@ -17449,6 +15450,12 @@ type DetachNetworkInterfaceInput struct { // Specifies whether to force a detachment. Force *bool `locationName:"force" type:"boolean"` + + metadataDetachNetworkInterfaceInput `json:"-" xml:"-"` +} + +type metadataDetachNetworkInterfaceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17461,21 +15468,12 @@ func (s DetachNetworkInterfaceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachNetworkInterfaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachNetworkInterfaceInput"} - if s.AttachmentId == nil { - invalidParams.Add(request.NewErrParamRequired("AttachmentId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DetachNetworkInterfaceOutput struct { + metadataDetachNetworkInterfaceOutput `json:"-" xml:"-"` } -type DetachNetworkInterfaceOutput struct { - _ struct{} `type:"structure"` +type metadataDetachNetworkInterfaceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17488,10 +15486,7 @@ func (s DetachNetworkInterfaceOutput) GoString() string { return s.String() } -// Contains the parameters for DetachVolume. type DetachVolumeInput struct { - _ struct{} `type:"structure"` - // The device name. Device *string `type:"string"` @@ -17515,6 +15510,12 @@ type DetachVolumeInput struct { // The ID of the volume. VolumeId *string `type:"string" required:"true"` + + metadataDetachVolumeInput `json:"-" xml:"-"` +} + +type metadataDetachVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17527,23 +15528,7 @@ func (s DetachVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachVolumeInput"} - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the parameters for DetachVpnGateway. type DetachVpnGatewayInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -17555,6 +15540,12 @@ type DetachVpnGatewayInput struct { // The ID of the virtual private gateway. VpnGatewayId *string `type:"string" required:"true"` + + metadataDetachVpnGatewayInput `json:"-" xml:"-"` +} + +type metadataDetachVpnGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17567,24 +15558,12 @@ func (s DetachVpnGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachVpnGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachVpnGatewayInput"} - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - if s.VpnGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("VpnGatewayId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DetachVpnGatewayOutput struct { + metadataDetachVpnGatewayOutput `json:"-" xml:"-"` } -type DetachVpnGatewayOutput struct { - _ struct{} `type:"structure"` +type metadataDetachVpnGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17599,13 +15578,17 @@ func (s DetachVpnGatewayOutput) GoString() string { // Describes a DHCP configuration option. type DhcpConfiguration struct { - _ struct{} `type:"structure"` - // The name of a DHCP option. Key *string `locationName:"key" type:"string"` // One or more values for the DHCP option. Values []*AttributeValue `locationName:"valueSet" locationNameList:"item" type:"list"` + + metadataDhcpConfiguration `json:"-" xml:"-"` +} + +type metadataDhcpConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17620,8 +15603,6 @@ func (s DhcpConfiguration) GoString() string { // Describes a set of DHCP options. type DhcpOptions struct { - _ struct{} `type:"structure"` - // One or more DHCP options in the set. DhcpConfigurations []*DhcpConfiguration `locationName:"dhcpConfigurationSet" locationNameList:"item" type:"list"` @@ -17630,6 +15611,12 @@ type DhcpOptions struct { // Any tags assigned to the DHCP options set. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` + + metadataDhcpOptions `json:"-" xml:"-"` +} + +type metadataDhcpOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17642,15 +15629,18 @@ func (s DhcpOptions) GoString() string { return s.String() } -// Contains the parameters for DisableVgwRoutePropagation. type DisableVgwRoutePropagationInput struct { - _ struct{} `type:"structure"` - // The ID of the virtual private gateway. GatewayId *string `type:"string" required:"true"` // The ID of the route table. RouteTableId *string `type:"string" required:"true"` + + metadataDisableVgwRoutePropagationInput `json:"-" xml:"-"` +} + +type metadataDisableVgwRoutePropagationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17663,24 +15653,12 @@ func (s DisableVgwRoutePropagationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableVgwRoutePropagationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableVgwRoutePropagationInput"} - if s.GatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayId")) - } - if s.RouteTableId == nil { - invalidParams.Add(request.NewErrParamRequired("RouteTableId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DisableVgwRoutePropagationOutput struct { + metadataDisableVgwRoutePropagationOutput `json:"-" xml:"-"` } -type DisableVgwRoutePropagationOutput struct { - _ struct{} `type:"structure"` +type metadataDisableVgwRoutePropagationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17693,46 +15671,7 @@ func (s DisableVgwRoutePropagationOutput) GoString() string { return s.String() } -// Contains the parameters for DisableVpcClassicLinkDnsSupport. -type DisableVpcClassicLinkDnsSupportInput struct { - _ struct{} `type:"structure"` - - // The ID of the VPC. - VpcId *string `type:"string"` -} - -// String returns the string representation -func (s DisableVpcClassicLinkDnsSupportInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DisableVpcClassicLinkDnsSupportInput) GoString() string { - return s.String() -} - -// Contains the output of DisableVpcClassicLinkDnsSupport. -type DisableVpcClassicLinkDnsSupportOutput struct { - _ struct{} `type:"structure"` - - // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool `locationName:"return" type:"boolean"` -} - -// String returns the string representation -func (s DisableVpcClassicLinkDnsSupportOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DisableVpcClassicLinkDnsSupportOutput) GoString() string { - return s.String() -} - -// Contains the parameters for DisableVpcClassicLink. type DisableVpcClassicLinkInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -17741,6 +15680,12 @@ type DisableVpcClassicLinkInput struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string" required:"true"` + + metadataDisableVpcClassicLinkInput `json:"-" xml:"-"` +} + +type metadataDisableVpcClassicLinkInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17753,25 +15698,15 @@ func (s DisableVpcClassicLinkInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableVpcClassicLinkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableVpcClassicLinkInput"} - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DisableVpcClassicLink. type DisableVpcClassicLinkOutput struct { - _ struct{} `type:"structure"` - // Returns true if the request succeeds; otherwise, it returns an error. Return *bool `locationName:"return" type:"boolean"` + + metadataDisableVpcClassicLinkOutput `json:"-" xml:"-"` +} + +type metadataDisableVpcClassicLinkOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17784,10 +15719,7 @@ func (s DisableVpcClassicLinkOutput) GoString() string { return s.String() } -// Contains the parameters for DisassociateAddress. type DisassociateAddressInput struct { - _ struct{} `type:"structure"` - // [EC2-VPC] The association ID. Required for EC2-VPC. AssociationId *string `type:"string"` @@ -17799,6 +15731,12 @@ type DisassociateAddressInput struct { // [EC2-Classic] The Elastic IP address. Required for EC2-Classic. PublicIp *string `type:"string"` + + metadataDisassociateAddressInput `json:"-" xml:"-"` +} + +type metadataDisassociateAddressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17812,7 +15750,11 @@ func (s DisassociateAddressInput) GoString() string { } type DisassociateAddressOutput struct { - _ struct{} `type:"structure"` + metadataDisassociateAddressOutput `json:"-" xml:"-"` +} + +type metadataDisassociateAddressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17825,10 +15767,7 @@ func (s DisassociateAddressOutput) GoString() string { return s.String() } -// Contains the parameters for DisassociateRouteTable. type DisassociateRouteTableInput struct { - _ struct{} `type:"structure"` - // The association ID representing the current association between the route // table and subnet. AssociationId *string `locationName:"associationId" type:"string" required:"true"` @@ -17838,6 +15777,12 @@ type DisassociateRouteTableInput struct { // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + metadataDisassociateRouteTableInput `json:"-" xml:"-"` +} + +type metadataDisassociateRouteTableInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17850,21 +15795,12 @@ func (s DisassociateRouteTableInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateRouteTableInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateRouteTableInput"} - if s.AssociationId == nil { - invalidParams.Add(request.NewErrParamRequired("AssociationId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DisassociateRouteTableOutput struct { + metadataDisassociateRouteTableOutput `json:"-" xml:"-"` } -type DisassociateRouteTableOutput struct { - _ struct{} `type:"structure"` +type metadataDisassociateRouteTableOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17879,8 +15815,6 @@ func (s DisassociateRouteTableOutput) GoString() string { // Describes a disk image. type DiskImage struct { - _ struct{} `type:"structure"` - // A description of the disk image. Description *string `type:"string"` @@ -17889,6 +15823,12 @@ type DiskImage struct { // Information about the volume. Volume *VolumeDetail `type:"structure"` + + metadataDiskImage `json:"-" xml:"-"` +} + +type metadataDiskImage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17901,30 +15841,8 @@ func (s DiskImage) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DiskImage) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DiskImage"} - if s.Image != nil { - if err := s.Image.Validate(); err != nil { - invalidParams.AddNested("Image", err.(request.ErrInvalidParams)) - } - } - if s.Volume != nil { - if err := s.Volume.Validate(); err != nil { - invalidParams.AddNested("Volume", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a disk image. type DiskImageDescription struct { - _ struct{} `type:"structure"` - // The checksum computed for the disk image. Checksum *string `locationName:"checksum" type:"string"` @@ -17936,13 +15854,16 @@ type DiskImageDescription struct { // Request Authentication Alternative" section of the Authenticating REST Requests // (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html) // topic in the Amazon Simple Storage Service Developer Guide. - // - // For information about the import manifest referenced by this API action, - // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"` // The size of the disk image, in GiB. Size *int64 `locationName:"size" type:"long" required:"true"` + + metadataDiskImageDescription `json:"-" xml:"-"` +} + +type metadataDiskImageDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17957,8 +15878,6 @@ func (s DiskImageDescription) GoString() string { // Describes a disk image. type DiskImageDetail struct { - _ struct{} `type:"structure"` - // The size of the disk image, in GiB. Bytes *int64 `locationName:"bytes" type:"long" required:"true"` @@ -17970,10 +15889,13 @@ type DiskImageDetail struct { // URL for an Amazon S3 object, read the "Query String Request Authentication // Alternative" section of the Authenticating REST Requests (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html) // topic in the Amazon Simple Storage Service Developer Guide. - // - // For information about the import manifest referenced by this API action, - // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"` + + metadataDiskImageDetail `json:"-" xml:"-"` +} + +type metadataDiskImageDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -17986,34 +15908,19 @@ func (s DiskImageDetail) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DiskImageDetail) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DiskImageDetail"} - if s.Bytes == nil { - invalidParams.Add(request.NewErrParamRequired("Bytes")) - } - if s.Format == nil { - invalidParams.Add(request.NewErrParamRequired("Format")) - } - if s.ImportManifestUrl == nil { - invalidParams.Add(request.NewErrParamRequired("ImportManifestUrl")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a disk image volume. type DiskImageVolumeDescription struct { - _ struct{} `type:"structure"` - // The volume identifier. Id *string `locationName:"id" type:"string" required:"true"` // The size of the volume, in GiB. Size *int64 `locationName:"size" type:"long"` + + metadataDiskImageVolumeDescription `json:"-" xml:"-"` +} + +type metadataDiskImageVolumeDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18028,8 +15935,6 @@ func (s DiskImageVolumeDescription) GoString() string { // Describes a block device for an EBS volume. type EbsBlockDevice struct { - _ struct{} `type:"structure"` - // Indicates whether the EBS volume is deleted on instance termination. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"` @@ -18038,18 +15943,18 @@ type EbsBlockDevice struct { Encrypted *bool `locationName:"encrypted" type:"boolean"` // The number of I/O operations per second (IOPS) that the volume supports. - // For io1, this represents the number of IOPS that are provisioned for the - // volume. For gp2, this represents the baseline performance of the volume and - // the rate at which the volume accumulates I/O credits for bursting. For more - // information on General Purpose SSD baseline performance, I/O credits, and - // bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) + // For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that + // are provisioned for the volume. For General Purpose (SSD) volumes, this represents + // the baseline performance of the volume and the rate at which the volume accumulates + // I/O credits for bursting. For more information on General Purpose (SSD) baseline + // performance, I/O credits, and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) // in the Amazon Elastic Compute Cloud User Guide. // - // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for - // gp2 volumes. + // Constraint: Range is 100 to 20000 for Provisioned IOPS (SSD) volumes and + // 3 to 10000 for General Purpose (SSD) volumes. // // Condition: This parameter is required for requests to create io1 volumes; - // it is not used in requests to create gp2, st1, sc1, or standard volumes. + // it is not used in requests to create standard or gp2 volumes. Iops *int64 `locationName:"iops" type:"integer"` // The ID of the snapshot. @@ -18057,20 +15962,25 @@ type EbsBlockDevice struct { // The size of the volume, in GiB. // - // Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned - // IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for - // Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify - // a snapshot, the volume size must be equal to or larger than the snapshot - // size. + // Constraints: 1-1024 for standard volumes, 1-16384 for gp2 volumes, and 4-16384 + // for io1 volumes. If you specify a snapshot, the volume size must be equal + // to or larger than the snapshot size. // // Default: If you're creating the volume from a snapshot and don't specify // a volume size, the default is the snapshot size. VolumeSize *int64 `locationName:"volumeSize" type:"integer"` - // The volume type: gp2, io1, st1, sc1, or standard. + // The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned + // IOPS (SSD) volumes, and standard for Magnetic volumes. // // Default: standard VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"` + + metadataEbsBlockDevice `json:"-" xml:"-"` +} + +type metadataEbsBlockDevice struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18085,8 +15995,6 @@ func (s EbsBlockDevice) GoString() string { // Describes a parameter used to set up an EBS volume in a block device mapping. type EbsInstanceBlockDevice struct { - _ struct{} `type:"structure"` - // The time stamp when the attachment initiated. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"` @@ -18098,6 +16006,12 @@ type EbsInstanceBlockDevice struct { // The ID of the EBS volume. VolumeId *string `locationName:"volumeId" type:"string"` + + metadataEbsInstanceBlockDevice `json:"-" xml:"-"` +} + +type metadataEbsInstanceBlockDevice struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18110,16 +16024,18 @@ func (s EbsInstanceBlockDevice) GoString() string { return s.String() } -// Describes information used to set up an EBS volume specified in a block device -// mapping. type EbsInstanceBlockDeviceSpecification struct { - _ struct{} `type:"structure"` - // Indicates whether the volume is deleted on instance termination. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"` // The ID of the EBS volume. VolumeId *string `locationName:"volumeId" type:"string"` + + metadataEbsInstanceBlockDeviceSpecification `json:"-" xml:"-"` +} + +type metadataEbsInstanceBlockDeviceSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18132,15 +16048,18 @@ func (s EbsInstanceBlockDeviceSpecification) GoString() string { return s.String() } -// Contains the parameters for EnableVgwRoutePropagation. type EnableVgwRoutePropagationInput struct { - _ struct{} `type:"structure"` - // The ID of the virtual private gateway. GatewayId *string `type:"string" required:"true"` // The ID of the route table. RouteTableId *string `type:"string" required:"true"` + + metadataEnableVgwRoutePropagationInput `json:"-" xml:"-"` +} + +type metadataEnableVgwRoutePropagationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18153,24 +16072,12 @@ func (s EnableVgwRoutePropagationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableVgwRoutePropagationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableVgwRoutePropagationInput"} - if s.GatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayId")) - } - if s.RouteTableId == nil { - invalidParams.Add(request.NewErrParamRequired("RouteTableId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type EnableVgwRoutePropagationOutput struct { + metadataEnableVgwRoutePropagationOutput `json:"-" xml:"-"` } -type EnableVgwRoutePropagationOutput struct { - _ struct{} `type:"structure"` +type metadataEnableVgwRoutePropagationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18183,10 +16090,7 @@ func (s EnableVgwRoutePropagationOutput) GoString() string { return s.String() } -// Contains the parameters for EnableVolumeIO. type EnableVolumeIOInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -18195,6 +16099,12 @@ type EnableVolumeIOInput struct { // The ID of the volume. VolumeId *string `locationName:"volumeId" type:"string" required:"true"` + + metadataEnableVolumeIOInput `json:"-" xml:"-"` +} + +type metadataEnableVolumeIOInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18207,21 +16117,12 @@ func (s EnableVolumeIOInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableVolumeIOInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableVolumeIOInput"} - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type EnableVolumeIOOutput struct { + metadataEnableVolumeIOOutput `json:"-" xml:"-"` } -type EnableVolumeIOOutput struct { - _ struct{} `type:"structure"` +type metadataEnableVolumeIOOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18234,46 +16135,7 @@ func (s EnableVolumeIOOutput) GoString() string { return s.String() } -// Contains the parameters for EnableVpcClassicLinkDnsSupport. -type EnableVpcClassicLinkDnsSupportInput struct { - _ struct{} `type:"structure"` - - // The ID of the VPC. - VpcId *string `type:"string"` -} - -// String returns the string representation -func (s EnableVpcClassicLinkDnsSupportInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnableVpcClassicLinkDnsSupportInput) GoString() string { - return s.String() -} - -// Contains the output of EnableVpcClassicLinkDnsSupport. -type EnableVpcClassicLinkDnsSupportOutput struct { - _ struct{} `type:"structure"` - - // Returns true if the request succeeds; otherwise, it returns an error. - Return *bool `locationName:"return" type:"boolean"` -} - -// String returns the string representation -func (s EnableVpcClassicLinkDnsSupportOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnableVpcClassicLinkDnsSupportOutput) GoString() string { - return s.String() -} - -// Contains the parameters for EnableVpcClassicLink. type EnableVpcClassicLinkInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -18282,6 +16144,12 @@ type EnableVpcClassicLinkInput struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string" required:"true"` + + metadataEnableVpcClassicLinkInput `json:"-" xml:"-"` +} + +type metadataEnableVpcClassicLinkInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18294,25 +16162,15 @@ func (s EnableVpcClassicLinkInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableVpcClassicLinkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableVpcClassicLinkInput"} - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of EnableVpcClassicLink. type EnableVpcClassicLinkOutput struct { - _ struct{} `type:"structure"` - // Returns true if the request succeeds; otherwise, it returns an error. Return *bool `locationName:"return" type:"boolean"` + + metadataEnableVpcClassicLinkOutput `json:"-" xml:"-"` +} + +type metadataEnableVpcClassicLinkOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18327,8 +16185,6 @@ func (s EnableVpcClassicLinkOutput) GoString() string { // Describes a Spot fleet event. type EventInformation struct { - _ struct{} `type:"structure"` - // The description of the event. EventDescription *string `locationName:"eventDescription" type:"string"` @@ -18336,48 +16192,39 @@ type EventInformation struct { // // The following are the error events. // - // iamFleetRoleInvalid - The Spot fleet did not have the required permissions + // iamFleetRoleInvalid - Spot fleet did not have the required permissions // either to launch or terminate an instance. // - // launchSpecTemporarilyBlacklisted - The configuration is not valid and - // several attempts to launch instances have failed. For more information, see - // the description of the event. - // // spotFleetRequestConfigurationInvalid - The configuration is not valid. - // For more information, see the description of the event. + // For more information, see the description. // // spotInstanceCountLimitExceeded - You've reached the limit on the number - // of Spot instances that you can launch. + // of Spot Instances that you can launch. // // The following are the fleetRequestChange events. // // active - The Spot fleet has been validated and Amazon EC2 is attempting - // to maintain the target number of running Spot instances. + // to maintain the target number of running Spot Instances. // - // cancelled - The Spot fleet is canceled and has no running Spot instances. + // cancelled - The Spot fleet is canceled and has no running Spot Instances. // The Spot fleet will be deleted two days after its instances were terminated. // // cancelled_running - The Spot fleet is canceled and will not launch additional - // Spot instances, but its existing Spot instances continue to run until they - // are interrupted or terminated. + // Spot Instances, but its existing Spot Instances will continue to run until + // they are interrupted or terminated. // - // cancelled_terminating - The Spot fleet is canceled and its Spot instances + // cancelled_terminating - The Spot fleet is canceled and its Spot Instances // are terminating. // // expired - The Spot fleet request has expired. A subsequent event indicates // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration // set. // - // modify_in_progress - A request to modify the Spot fleet request was accepted - // and is in progress. - // - // modify_successful - The Spot fleet request was modified. - // // price_update - The bid price for a launch configuration was adjusted because // it was too high. This change is permanent. // // submitted - The Spot fleet request is being evaluated and Amazon EC2 is - // preparing to launch the target number of Spot instances. + // preparing to launch the target number of Spot Instances. // // The following are the instanceChange events. // @@ -18389,6 +16236,12 @@ type EventInformation struct { // The ID of the instance. This information is available only for instanceChange // events. InstanceId *string `locationName:"instanceId" type:"string"` + + metadataEventInformation `json:"-" xml:"-"` +} + +type metadataEventInformation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18403,8 +16256,6 @@ func (s EventInformation) GoString() string { // Describes an instance export task. type ExportTask struct { - _ struct{} `type:"structure"` - // A description of the resource being exported. Description *string `locationName:"description" type:"string"` @@ -18422,6 +16273,12 @@ type ExportTask struct { // The status message related to the export task. StatusMessage *string `locationName:"statusMessage" type:"string"` + + metadataExportTask `json:"-" xml:"-"` +} + +type metadataExportTask struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18436,8 +16293,6 @@ func (s ExportTask) GoString() string { // Describes the format and location for an instance export task. type ExportToS3Task struct { - _ struct{} `type:"structure"` - // The container format used to combine disk images with metadata (such as OVF). // If absent, only the disk image is exported. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"` @@ -18451,6 +16306,12 @@ type ExportToS3Task struct { // The encryption key for your S3 bucket. S3Key *string `locationName:"s3Key" type:"string"` + + metadataExportToS3Task `json:"-" xml:"-"` +} + +type metadataExportToS3Task struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18465,8 +16326,6 @@ func (s ExportToS3Task) GoString() string { // Describes an instance export task. type ExportToS3TaskSpecification struct { - _ struct{} `type:"structure"` - // The container format used to combine disk images with metadata (such as OVF). // If absent, only the disk image is exported. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"` @@ -18481,6 +16340,12 @@ type ExportToS3TaskSpecification struct { // The image is written to a single object in the S3 bucket at the S3 key s3prefix // + exportTaskId + '.' + diskImageFormat. S3Prefix *string `locationName:"s3Prefix" type:"string"` + + metadataExportToS3TaskSpecification `json:"-" xml:"-"` +} + +type metadataExportToS3TaskSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18497,13 +16362,17 @@ func (s ExportToS3TaskSpecification) GoString() string { // of results. Filters can be used to match a set of resources by various criteria, // such as tags, attributes, or IDs. type Filter struct { - _ struct{} `type:"structure"` - // The name of the filter. Filter names are case-sensitive. Name *string `type:"string"` // One or more filter values. Filter values are case-sensitive. Values []*string `locationName:"Value" locationNameList:"item" type:"list"` + + metadataFilter `json:"-" xml:"-"` +} + +type metadataFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18518,17 +16387,14 @@ func (s Filter) GoString() string { // Describes a flow log. type FlowLog struct { - _ struct{} `type:"structure"` - // The date and time the flow log was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"` // Information about the error that occurred. Rate limited indicates that CloudWatch - // logs throttling has been applied for one or more network interfaces, or that - // you've reached the limit on the number of CloudWatch Logs log groups that - // you can create. Access error indicates that the IAM role associated with - // the flow log does not have sufficient permissions to publish to CloudWatch - // Logs. Unknown error indicates an internal error. + // logs throttling has been applied for one or more network interfaces. Access + // error indicates that the IAM role associated with the flow log does not have + // sufficient permissions to publish to CloudWatch Logs. Unknown error indicates + // an internal error. DeliverLogsErrorMessage *string `locationName:"deliverLogsErrorMessage" type:"string"` // The ARN of the IAM role that posts logs to CloudWatch Logs. @@ -18551,6 +16417,12 @@ type FlowLog struct { // The type of traffic captured for the flow log. TrafficType *string `locationName:"trafficType" type:"string" enum:"TrafficType"` + + metadataFlowLog `json:"-" xml:"-"` +} + +type metadataFlowLog struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18563,10 +16435,7 @@ func (s FlowLog) GoString() string { return s.String() } -// Contains the parameters for GetConsoleOutput. type GetConsoleOutputInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -18575,6 +16444,12 @@ type GetConsoleOutputInput struct { // The ID of the instance. InstanceId *string `type:"string" required:"true"` + + metadataGetConsoleOutputInput `json:"-" xml:"-"` +} + +type metadataGetConsoleOutputInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18587,32 +16462,21 @@ func (s GetConsoleOutputInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetConsoleOutputInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetConsoleOutputInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of GetConsoleOutput. type GetConsoleOutputOutput struct { - _ struct{} `type:"structure"` - // The ID of the instance. InstanceId *string `locationName:"instanceId" type:"string"` - // The console output, base64-encoded. If using a command line tool, the tools - // decode the output for you. + // The console output, Base64 encoded. Output *string `locationName:"output" type:"string"` // The time the output was last updated. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"` + + metadataGetConsoleOutputOutput `json:"-" xml:"-"` +} + +type metadataGetConsoleOutputOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18625,138 +16489,73 @@ func (s GetConsoleOutputOutput) GoString() string { return s.String() } -// Contains the parameters for the request. -type GetConsoleScreenshotInput struct { - _ struct{} `type:"structure"` - +type GetPasswordDataInput struct { // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. - DryRun *bool `type:"boolean"` + DryRun *bool `locationName:"dryRun" type:"boolean"` - // The ID of the instance. + // The ID of the Windows instance. InstanceId *string `type:"string" required:"true"` - // When set to true, acts as keystroke input and wakes up an instance that's - // in standby or "sleep" mode. - WakeUp *bool `type:"boolean"` + metadataGetPasswordDataInput `json:"-" xml:"-"` +} + +type metadataGetPasswordDataInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetConsoleScreenshotInput) String() string { +func (s GetPasswordDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetConsoleScreenshotInput) GoString() string { +func (s GetPasswordDataInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetConsoleScreenshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetConsoleScreenshotInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } +type GetPasswordDataOutput struct { + // The ID of the Windows instance. + InstanceId *string `locationName:"instanceId" type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The password of the instance. + PasswordData *string `locationName:"passwordData" type:"string"` -// Contains the output of the request. -type GetConsoleScreenshotOutput struct { - _ struct{} `type:"structure"` + // The time the data was last updated. + Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"` - // The data that comprises the image. - ImageData *string `locationName:"imageData" type:"string"` + metadataGetPasswordDataOutput `json:"-" xml:"-"` +} - // The ID of the instance. - InstanceId *string `locationName:"instanceId" type:"string"` +type metadataGetPasswordDataOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetConsoleScreenshotOutput) String() string { +func (s GetPasswordDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetConsoleScreenshotOutput) GoString() string { +func (s GetPasswordDataOutput) GoString() string { return s.String() } -// Contains the parameters for GetPasswordData. -type GetPasswordDataInput struct { - _ struct{} `type:"structure"` +// Describes a security group. +type GroupIdentifier struct { + // The ID of the security group. + GroupId *string `locationName:"groupId" type:"string"` - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have - // the required permissions, the error response is DryRunOperation. Otherwise, - // it is UnauthorizedOperation. - DryRun *bool `locationName:"dryRun" type:"boolean"` + // The name of the security group. + GroupName *string `locationName:"groupName" type:"string"` - // The ID of the Windows instance. - InstanceId *string `type:"string" required:"true"` + metadataGroupIdentifier `json:"-" xml:"-"` } -// String returns the string representation -func (s GetPasswordDataInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetPasswordDataInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPasswordDataInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPasswordDataInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of GetPasswordData. -type GetPasswordDataOutput struct { - _ struct{} `type:"structure"` - - // The ID of the Windows instance. - InstanceId *string `locationName:"instanceId" type:"string"` - - // The password of the instance. - PasswordData *string `locationName:"passwordData" type:"string"` - - // The time the data was last updated. - Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"` -} - -// String returns the string representation -func (s GetPasswordDataOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetPasswordDataOutput) GoString() string { - return s.String() -} - -// Describes a security group. -type GroupIdentifier struct { - _ struct{} `type:"structure"` - - // The ID of the security group. - GroupId *string `locationName:"groupId" type:"string"` - - // The name of the security group. - GroupName *string `locationName:"groupName" type:"string"` +type metadataGroupIdentifier struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18771,8 +16570,6 @@ func (s GroupIdentifier) GoString() string { // Describes an event in the history of the Spot fleet request. type HistoryRecord struct { - _ struct{} `type:"structure"` - // Information about the event. EventInformation *EventInformation `locationName:"eventInformation" type:"structure" required:"true"` @@ -18788,120 +16585,37 @@ type HistoryRecord struct { // The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601" required:"true"` -} - -// String returns the string representation -func (s HistoryRecord) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HistoryRecord) GoString() string { - return s.String() -} - -// Describes the properties of the Dedicated host. -type Host struct { - _ struct{} `type:"structure"` - - // Whether auto-placement is on or off. - AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"` - - // The Availability Zone of the Dedicated host. - AvailabilityZone *string `locationName:"availabilityZone" type:"string"` - - // The number of new instances that can be launched onto the Dedicated host. - AvailableCapacity *AvailableCapacity `locationName:"availableCapacity" type:"structure"` - - // Unique, case-sensitive identifier you provide to ensure idempotency of the - // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html) - // in the Amazon Elastic Compute Cloud User Guide. - ClientToken *string `locationName:"clientToken" type:"string"` - // The ID of the Dedicated host. - HostId *string `locationName:"hostId" type:"string"` - - // The hardware specifications of the Dedicated host. - HostProperties *HostProperties `locationName:"hostProperties" type:"structure"` - - // The reservation ID of the Dedicated host. This returns a null response if - // the Dedicated host doesn't have an associated reservation. - HostReservationId *string `locationName:"hostReservationId" type:"string"` - - // The IDs and instance type that are currently running on the Dedicated host. - Instances []*HostInstance `locationName:"instances" locationNameList:"item" type:"list"` - - // The Dedicated host's state. - State *string `locationName:"state" type:"string" enum:"AllocationState"` -} - -// String returns the string representation -func (s Host) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Host) GoString() string { - return s.String() -} - -// Describes an instance running on a Dedicated host. -type HostInstance struct { - _ struct{} `type:"structure"` - - // the IDs of instances that are running on the Dedicated host. - InstanceId *string `locationName:"instanceId" type:"string"` - - // The instance type size (for example, m3.medium) of the running instance. - InstanceType *string `locationName:"instanceType" type:"string"` -} - -// String returns the string representation -func (s HostInstance) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HostInstance) GoString() string { - return s.String() + metadataHistoryRecord `json:"-" xml:"-"` } -// Describes properties of a Dedicated host. -type HostProperties struct { - _ struct{} `type:"structure"` - - // The number of cores on the Dedicated host. - Cores *int64 `locationName:"cores" type:"integer"` - - // The instance type size that the Dedicated host supports (for example, m3.medium). - InstanceType *string `locationName:"instanceType" type:"string"` - - // The number of sockets on the Dedicated host. - Sockets *int64 `locationName:"sockets" type:"integer"` - - // The number of vCPUs on the Dedicated host. - TotalVCpus *int64 `locationName:"totalVCpus" type:"integer"` +type metadataHistoryRecord struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s HostProperties) String() string { +func (s HistoryRecord) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HostProperties) GoString() string { +func (s HistoryRecord) GoString() string { return s.String() } // Describes an IAM instance profile. type IamInstanceProfile struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the instance profile. Arn *string `locationName:"arn" type:"string"` // The ID of the instance profile. Id *string `locationName:"id" type:"string"` + + metadataIamInstanceProfile `json:"-" xml:"-"` +} + +type metadataIamInstanceProfile struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18916,13 +16630,17 @@ func (s IamInstanceProfile) GoString() string { // Describes an IAM instance profile. type IamInstanceProfileSpecification struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the instance profile. Arn *string `locationName:"arn" type:"string"` // The name of the instance profile. Name *string `locationName:"name" type:"string"` + + metadataIamInstanceProfileSpecification `json:"-" xml:"-"` +} + +type metadataIamInstanceProfileSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -18937,55 +16655,31 @@ func (s IamInstanceProfileSpecification) GoString() string { // Describes the ICMP type and code. type IcmpTypeCode struct { - _ struct{} `type:"structure"` - // The ICMP type. A value of -1 means all types. Code *int64 `locationName:"code" type:"integer"` // The ICMP code. A value of -1 means all codes for the specified ICMP type. Type *int64 `locationName:"type" type:"integer"` -} - -// String returns the string representation -func (s IcmpTypeCode) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s IcmpTypeCode) GoString() string { - return s.String() + metadataIcmpTypeCode `json:"-" xml:"-"` } -// Describes the ID format for a resource. -type IdFormat struct { - _ struct{} `type:"structure"` - - // The date in UTC at which you are permanently switched over to using longer - // IDs. If a deadline is not yet available for this resource type, this field - // is not returned. - Deadline *time.Time `locationName:"deadline" type:"timestamp" timestampFormat:"iso8601"` - - // The type of resource. - Resource *string `locationName:"resource" type:"string"` - - // Indicates whether longer IDs (17-character IDs) are enabled for the resource. - UseLongIds *bool `locationName:"useLongIds" type:"boolean"` +type metadataIcmpTypeCode struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s IdFormat) String() string { +func (s IcmpTypeCode) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s IdFormat) GoString() string { +func (s IcmpTypeCode) GoString() string { return s.String() } // Describes an image. type Image struct { - _ struct{} `type:"structure"` - // The architecture of the image. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"` @@ -19061,6 +16755,12 @@ type Image struct { // The type of virtualization of the AMI. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"` + + metadataImage `json:"-" xml:"-"` +} + +type metadataImage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19075,8 +16775,6 @@ func (s Image) GoString() string { // Describes the disk container object for an import image task. type ImageDiskContainer struct { - _ struct{} `type:"structure"` - // The description of the disk image. Description *string `type:"string"` @@ -19097,6 +16795,12 @@ type ImageDiskContainer struct { // The S3 bucket for the disk image. UserBucket *UserBucket `type:"structure"` + + metadataImageDiskContainer `json:"-" xml:"-"` +} + +type metadataImageDiskContainer struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19109,10 +16813,7 @@ func (s ImageDiskContainer) GoString() string { return s.String() } -// Contains the parameters for ImportImage. type ImportImageInput struct { - _ struct{} `type:"structure"` - // The architecture of the virtual machine. // // Valid values: i386 | x86_64 @@ -19158,6 +16859,12 @@ type ImportImageInput struct { // The name of the role to use when not using the default role, 'vmimport'. RoleName *string `type:"string"` + + metadataImportImageInput `json:"-" xml:"-"` +} + +type metadataImportImageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19170,10 +16877,7 @@ func (s ImportImageInput) GoString() string { return s.String() } -// Contains the output for ImportImage. type ImportImageOutput struct { - _ struct{} `type:"structure"` - // The architecture of the virtual machine. Architecture *string `locationName:"architecture" type:"string"` @@ -19206,6 +16910,12 @@ type ImportImageOutput struct { // A detailed status message of the import task. StatusMessage *string `locationName:"statusMessage" type:"string"` + + metadataImportImageOutput `json:"-" xml:"-"` +} + +type metadataImportImageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19220,8 +16930,6 @@ func (s ImportImageOutput) GoString() string { // Describes an import image task. type ImportImageTask struct { - _ struct{} `type:"structure"` - // The architecture of the virtual machine. // // Valid values: i386 | x86_64 @@ -19258,6 +16966,12 @@ type ImportImageTask struct { // A descriptive status message for the import image task. StatusMessage *string `locationName:"statusMessage" type:"string"` + + metadataImportImageTask `json:"-" xml:"-"` +} + +type metadataImportImageTask struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19270,10 +16984,7 @@ func (s ImportImageTask) GoString() string { return s.String() } -// Contains the parameters for ImportInstance. type ImportInstanceInput struct { - _ struct{} `type:"structure"` - // A description for the instance being imported. Description *string `locationName:"description" type:"string"` @@ -19291,6 +17002,12 @@ type ImportInstanceInput struct { // The instance operating system. Platform *string `locationName:"platform" type:"string" required:"true" enum:"PlatformValues"` + + metadataImportInstanceInput `json:"-" xml:"-"` +} + +type metadataImportInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19303,33 +17020,8 @@ func (s ImportInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ImportInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ImportInstanceInput"} - if s.Platform == nil { - invalidParams.Add(request.NewErrParamRequired("Platform")) - } - if s.DiskImages != nil { - for i, v := range s.DiskImages { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DiskImages", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes the launch specification for VM import. type ImportInstanceLaunchSpecification struct { - _ struct{} `type:"structure"` - // Reserved. AdditionalInfo *string `locationName:"additionalInfo" type:"string"` @@ -19365,6 +17057,12 @@ type ImportInstanceLaunchSpecification struct { // The Base64-encoded MIME user data to be made available to the instance. UserData *UserData `locationName:"userData" type:"structure"` + + metadataImportInstanceLaunchSpecification `json:"-" xml:"-"` +} + +type metadataImportInstanceLaunchSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19377,12 +17075,15 @@ func (s ImportInstanceLaunchSpecification) GoString() string { return s.String() } -// Contains the output for ImportInstance. type ImportInstanceOutput struct { - _ struct{} `type:"structure"` - // Information about the conversion task. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"` + + metadataImportInstanceOutput `json:"-" xml:"-"` +} + +type metadataImportInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19397,8 +17098,6 @@ func (s ImportInstanceOutput) GoString() string { // Describes an import instance task. type ImportInstanceTaskDetails struct { - _ struct{} `type:"structure"` - // A description of the task. Description *string `locationName:"description" type:"string"` @@ -19410,6 +17109,12 @@ type ImportInstanceTaskDetails struct { // One or more volumes. Volumes []*ImportInstanceVolumeDetailItem `locationName:"volumes" locationNameList:"item" type:"list" required:"true"` + + metadataImportInstanceTaskDetails `json:"-" xml:"-"` +} + +type metadataImportInstanceTaskDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19424,8 +17129,6 @@ func (s ImportInstanceTaskDetails) GoString() string { // Describes an import volume task. type ImportInstanceVolumeDetailItem struct { - _ struct{} `type:"structure"` - // The Availability Zone where the resulting instance will reside. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` @@ -19446,6 +17149,12 @@ type ImportInstanceVolumeDetailItem struct { // The volume. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"` + + metadataImportInstanceVolumeDetailItem `json:"-" xml:"-"` +} + +type metadataImportInstanceVolumeDetailItem struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19458,10 +17167,7 @@ func (s ImportInstanceVolumeDetailItem) GoString() string { return s.String() } -// Contains the parameters for ImportKeyPair. type ImportKeyPairInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -19471,11 +17177,15 @@ type ImportKeyPairInput struct { // A unique name for the key pair. KeyName *string `locationName:"keyName" type:"string" required:"true"` - // The public key. For API calls, the text must be base64-encoded. For command - // line tools, base64 encoding is performed for you. - // - // PublicKeyMaterial is automatically base64 encoded/decoded by the SDK. + // The public key. You must base64 encode the public key material before sending + // it to AWS. PublicKeyMaterial []byte `locationName:"publicKeyMaterial" type:"blob" required:"true"` + + metadataImportKeyPairInput `json:"-" xml:"-"` +} + +type metadataImportKeyPairInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19488,31 +17198,18 @@ func (s ImportKeyPairInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ImportKeyPairInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ImportKeyPairInput"} - if s.KeyName == nil { - invalidParams.Add(request.NewErrParamRequired("KeyName")) - } - if s.PublicKeyMaterial == nil { - invalidParams.Add(request.NewErrParamRequired("PublicKeyMaterial")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of ImportKeyPair. type ImportKeyPairOutput struct { - _ struct{} `type:"structure"` - // The MD5 public key fingerprint as specified in section 4 of RFC 4716. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"` // The key pair name you provided. KeyName *string `locationName:"keyName" type:"string"` + + metadataImportKeyPairOutput `json:"-" xml:"-"` +} + +type metadataImportKeyPairOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19525,10 +17222,7 @@ func (s ImportKeyPairOutput) GoString() string { return s.String() } -// Contains the parameters for ImportSnapshot. type ImportSnapshotInput struct { - _ struct{} `type:"structure"` - // The client-specific data. ClientData *ClientData `type:"structure"` @@ -19549,6 +17243,12 @@ type ImportSnapshotInput struct { // The name of the role to use when not using the default role, 'vmimport'. RoleName *string `type:"string"` + + metadataImportSnapshotInput `json:"-" xml:"-"` +} + +type metadataImportSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19561,10 +17261,7 @@ func (s ImportSnapshotInput) GoString() string { return s.String() } -// Contains the output for ImportSnapshot. type ImportSnapshotOutput struct { - _ struct{} `type:"structure"` - // A description of the import snapshot task. Description *string `locationName:"description" type:"string"` @@ -19573,6 +17270,12 @@ type ImportSnapshotOutput struct { // Information about the import snapshot task. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"` + + metadataImportSnapshotOutput `json:"-" xml:"-"` +} + +type metadataImportSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19587,8 +17290,6 @@ func (s ImportSnapshotOutput) GoString() string { // Describes an import snapshot task. type ImportSnapshotTask struct { - _ struct{} `type:"structure"` - // A description of the import snapshot task. Description *string `locationName:"description" type:"string"` @@ -19597,6 +17298,12 @@ type ImportSnapshotTask struct { // Describes an import snapshot task. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"` + + metadataImportSnapshotTask `json:"-" xml:"-"` +} + +type metadataImportSnapshotTask struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19609,10 +17316,7 @@ func (s ImportSnapshotTask) GoString() string { return s.String() } -// Contains the parameters for ImportVolume. type ImportVolumeInput struct { - _ struct{} `type:"structure"` - // The Availability Zone for the resulting EBS volume. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` @@ -19630,6 +17334,12 @@ type ImportVolumeInput struct { // The volume size. Volume *VolumeDetail `locationName:"volume" type:"structure" required:"true"` + + metadataImportVolumeInput `json:"-" xml:"-"` +} + +type metadataImportVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19642,41 +17352,15 @@ func (s ImportVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ImportVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ImportVolumeInput"} - if s.AvailabilityZone == nil { - invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) - } - if s.Image == nil { - invalidParams.Add(request.NewErrParamRequired("Image")) - } - if s.Volume == nil { - invalidParams.Add(request.NewErrParamRequired("Volume")) - } - if s.Image != nil { - if err := s.Image.Validate(); err != nil { - invalidParams.AddNested("Image", err.(request.ErrInvalidParams)) - } - } - if s.Volume != nil { - if err := s.Volume.Validate(); err != nil { - invalidParams.AddNested("Volume", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output for ImportVolume. type ImportVolumeOutput struct { - _ struct{} `type:"structure"` - // Information about the conversion task. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"` + + metadataImportVolumeOutput `json:"-" xml:"-"` +} + +type metadataImportVolumeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19691,8 +17375,6 @@ func (s ImportVolumeOutput) GoString() string { // Describes an import volume task. type ImportVolumeTaskDetails struct { - _ struct{} `type:"structure"` - // The Availability Zone where the resulting volume will reside. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` @@ -19707,6 +17389,12 @@ type ImportVolumeTaskDetails struct { // The volume. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"` + + metadataImportVolumeTaskDetails `json:"-" xml:"-"` +} + +type metadataImportVolumeTaskDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19721,8 +17409,6 @@ func (s ImportVolumeTaskDetails) GoString() string { // Describes an instance. type Instance struct { - _ struct{} `type:"structure"` - // The AMI launch index, which can be used to find this instance in the launch // group. AmiLaunchIndex *int64 `locationName:"amiLaunchIndex" type:"integer"` @@ -19733,7 +17419,7 @@ type Instance struct { // Any block device mapping entries for the instance. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"` - // The idempotency token you provided when you launched the instance, if applicable. + // The idempotency token you provided when you launched the instance. ClientToken *string `locationName:"clientToken" type:"string"` // Indicates whether the instance is optimized for EBS I/O. This optimization @@ -19746,7 +17432,7 @@ type Instance struct { // The hypervisor type of the instance. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"` - // The IAM instance profile associated with the instance, if applicable. + // The IAM instance profile associated with the instance. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"` // The ID of the AMI used to launch the instance. @@ -19755,13 +17441,13 @@ type Instance struct { // The ID of the instance. InstanceId *string `locationName:"instanceId" type:"string"` - // Indicates whether this is a Spot instance or a Scheduled Instance. + // Indicates whether this is a Spot Instance. InstanceLifecycle *string `locationName:"instanceLifecycle" type:"string" enum:"InstanceLifecycleType"` // The instance type. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` - // The kernel associated with this instance, if applicable. + // The kernel associated with this instance. KernelId *string `locationName:"kernelId" type:"string"` // The name of the key pair, if this instance was launched with an associated @@ -19777,7 +17463,7 @@ type Instance struct { // [EC2-VPC] One or more network interfaces for the instance. NetworkInterfaces []*InstanceNetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"` - // The location where the instance launched, if applicable. + // The location where the instance launched. Placement *Placement `locationName:"placement" type:"structure"` // The value is Windows for Windows instances; otherwise blank. @@ -19785,25 +17471,23 @@ type Instance struct { // The private DNS name assigned to the instance. This DNS name can only be // used inside the Amazon EC2 network. This name is not available until the - // instance enters the running state. For EC2-VPC, this name is only available - // if you've enabled DNS hostnames for your VPC. + // instance enters the running state. PrivateDnsName *string `locationName:"privateDnsName" type:"string"` // The private IP address assigned to the instance. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` - // The product codes attached to this instance, if applicable. + // The product codes attached to this instance. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"` // The public DNS name assigned to the instance. This name is not available - // until the instance enters the running state. For EC2-VPC, this name is only - // available if you've enabled DNS hostnames for your VPC. + // until the instance enters the running state. PublicDnsName *string `locationName:"dnsName" type:"string"` - // The public IP address assigned to the instance, if applicable. + // The public IP address assigned to the instance. PublicIpAddress *string `locationName:"ipAddress" type:"string"` - // The RAM disk associated with this instance, if applicable. + // The RAM disk associated with this instance. RamdiskId *string `locationName:"ramdiskId" type:"string"` // The root device name (for example, /dev/sda1 or /dev/xvda). @@ -19824,7 +17508,7 @@ type Instance struct { // in the Amazon Virtual Private Cloud User Guide. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"` - // If the request is a Spot instance request, the ID of the request. + // The ID of the Spot Instance request. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"` // Specifies whether enhanced networking is enabled. @@ -19839,7 +17523,7 @@ type Instance struct { // The reason for the most recent state transition. This might be an empty string. StateTransitionReason *string `locationName:"reason" type:"string"` - // [EC2-VPC] The ID of the subnet in which the instance is running. + // The ID of the subnet in which the instance is running. SubnetId *string `locationName:"subnetId" type:"string"` // Any tags assigned to the instance. @@ -19848,8 +17532,14 @@ type Instance struct { // The virtualization type of the instance. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"` - // [EC2-VPC] The ID of the VPC in which the instance is running. + // The ID of the VPC in which the instance is running. VpcId *string `locationName:"vpcId" type:"string"` + + metadataInstance `json:"-" xml:"-"` +} + +type metadataInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19864,14 +17554,18 @@ func (s Instance) GoString() string { // Describes a block device mapping. type InstanceBlockDeviceMapping struct { - _ struct{} `type:"structure"` - // The device name exposed to the instance (for example, /dev/sdh or xvdh). DeviceName *string `locationName:"deviceName" type:"string"` // Parameters used to automatically set up EBS volumes when the instance is // launched. Ebs *EbsInstanceBlockDevice `locationName:"ebs" type:"structure"` + + metadataInstanceBlockDeviceMapping `json:"-" xml:"-"` +} + +type metadataInstanceBlockDeviceMapping struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19886,8 +17580,6 @@ func (s InstanceBlockDeviceMapping) GoString() string { // Describes a block device mapping entry. type InstanceBlockDeviceMappingSpecification struct { - _ struct{} `type:"structure"` - // The device name exposed to the instance (for example, /dev/sdh or xvdh). DeviceName *string `locationName:"deviceName" type:"string"` @@ -19900,51 +17592,37 @@ type InstanceBlockDeviceMappingSpecification struct { // The virtual device name. VirtualName *string `locationName:"virtualName" type:"string"` -} -// String returns the string representation -func (s InstanceBlockDeviceMappingSpecification) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s InstanceBlockDeviceMappingSpecification) GoString() string { - return s.String() + metadataInstanceBlockDeviceMappingSpecification `json:"-" xml:"-"` } -// Information about the instance type that the Dedicated host supports. -type InstanceCapacity struct { - _ struct{} `type:"structure"` - - // The number of instances that can still be launched onto the Dedicated host. - AvailableCapacity *int64 `locationName:"availableCapacity" type:"integer"` - - // The instance type size supported by the Dedicated host. - InstanceType *string `locationName:"instanceType" type:"string"` - - // The total number of instances that can be launched onto the Dedicated host. - TotalCapacity *int64 `locationName:"totalCapacity" type:"integer"` +type metadataInstanceBlockDeviceMappingSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s InstanceCapacity) String() string { +func (s InstanceBlockDeviceMappingSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceCapacity) GoString() string { +func (s InstanceBlockDeviceMappingSpecification) GoString() string { return s.String() } // Describes a Reserved Instance listing state. type InstanceCount struct { - _ struct{} `type:"structure"` - // The number of listed Reserved Instances in the state specified by the state. InstanceCount *int64 `locationName:"instanceCount" type:"integer"` // The states of the listed Reserved Instances. State *string `locationName:"state" type:"string" enum:"ListingState"` + + metadataInstanceCount `json:"-" xml:"-"` +} + +type metadataInstanceCount struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19959,13 +17637,17 @@ func (s InstanceCount) GoString() string { // Describes an instance to export. type InstanceExportDetails struct { - _ struct{} `type:"structure"` - // The ID of the resource being exported. InstanceId *string `locationName:"instanceId" type:"string"` // The target virtualization environment. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"` + + metadataInstanceExportDetails `json:"-" xml:"-"` +} + +type metadataInstanceExportDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -19980,13 +17662,17 @@ func (s InstanceExportDetails) GoString() string { // Describes the monitoring information of the instance. type InstanceMonitoring struct { - _ struct{} `type:"structure"` - // The ID of the instance. InstanceId *string `locationName:"instanceId" type:"string"` // The monitoring information. Monitoring *Monitoring `locationName:"monitoring" type:"structure"` + + metadataInstanceMonitoring `json:"-" xml:"-"` +} + +type metadataInstanceMonitoring struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20001,8 +17687,6 @@ func (s InstanceMonitoring) GoString() string { // Describes a network interface. type InstanceNetworkInterface struct { - _ struct{} `type:"structure"` - // The association information for an Elastic IP associated with the network // interface. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"` @@ -20045,6 +17729,12 @@ type InstanceNetworkInterface struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` + + metadataInstanceNetworkInterface `json:"-" xml:"-"` +} + +type metadataInstanceNetworkInterface struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20059,8 +17749,6 @@ func (s InstanceNetworkInterface) GoString() string { // Describes association information for an Elastic IP address. type InstanceNetworkInterfaceAssociation struct { - _ struct{} `type:"structure"` - // The ID of the owner of the Elastic IP address. IpOwnerId *string `locationName:"ipOwnerId" type:"string"` @@ -20069,6 +17757,12 @@ type InstanceNetworkInterfaceAssociation struct { // The public IP address or Elastic IP address bound to the network interface. PublicIp *string `locationName:"publicIp" type:"string"` + + metadataInstanceNetworkInterfaceAssociation `json:"-" xml:"-"` +} + +type metadataInstanceNetworkInterfaceAssociation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20083,8 +17777,6 @@ func (s InstanceNetworkInterfaceAssociation) GoString() string { // Describes a network interface attachment. type InstanceNetworkInterfaceAttachment struct { - _ struct{} `type:"structure"` - // The time stamp when the attachment initiated. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"` @@ -20099,6 +17791,12 @@ type InstanceNetworkInterfaceAttachment struct { // The attachment state. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"` + + metadataInstanceNetworkInterfaceAttachment `json:"-" xml:"-"` +} + +type metadataInstanceNetworkInterfaceAttachment struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20113,8 +17811,6 @@ func (s InstanceNetworkInterfaceAttachment) GoString() string { // Describes a network interface. type InstanceNetworkInterfaceSpecification struct { - _ struct{} `type:"structure"` - // Indicates whether to assign a public IP address to an instance you launch // in a VPC. The public IP address can only be assigned to a network interface // for eth0, and can only be assigned to a new network interface, not an existing @@ -20159,6 +17855,12 @@ type InstanceNetworkInterfaceSpecification struct { // The ID of the subnet associated with the network string. Applies only if // creating a network interface when launching an instance. SubnetId *string `locationName:"subnetId" type:"string"` + + metadataInstanceNetworkInterfaceSpecification `json:"-" xml:"-"` +} + +type metadataInstanceNetworkInterfaceSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20171,30 +17873,8 @@ func (s InstanceNetworkInterfaceSpecification) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InstanceNetworkInterfaceSpecification) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InstanceNetworkInterfaceSpecification"} - if s.PrivateIpAddresses != nil { - for i, v := range s.PrivateIpAddresses { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a private IP address. type InstancePrivateIpAddress struct { - _ struct{} `type:"structure"` - // The association information for an Elastic IP address for the network interface. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"` @@ -20207,6 +17887,12 @@ type InstancePrivateIpAddress struct { // The private IP address of the network interface. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` + + metadataInstancePrivateIpAddress `json:"-" xml:"-"` +} + +type metadataInstancePrivateIpAddress struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20221,26 +17907,30 @@ func (s InstancePrivateIpAddress) GoString() string { // Describes the current state of the instance. type InstanceState struct { - _ struct{} `type:"structure"` - // The low byte represents the state. The high byte is an opaque internal value // and should be ignored. // - // 0 : pending + // 0 : pending // - // 16 : running + // 16 : running // - // 32 : shutting-down + // 32 : shutting-down // - // 48 : terminated + // 48 : terminated // - // 64 : stopping + // 64 : stopping // - // 80 : stopped + // 80 : stopped Code *int64 `locationName:"code" type:"integer"` // The current state of the instance. Name *string `locationName:"name" type:"string" enum:"InstanceStateName"` + + metadataInstanceState `json:"-" xml:"-"` +} + +type metadataInstanceState struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20255,8 +17945,6 @@ func (s InstanceState) GoString() string { // Describes an instance state change. type InstanceStateChange struct { - _ struct{} `type:"structure"` - // The current state of the instance. CurrentState *InstanceState `locationName:"currentState" type:"structure"` @@ -20265,6 +17953,12 @@ type InstanceStateChange struct { // The previous state of the instance. PreviousState *InstanceState `locationName:"previousState" type:"structure"` + + metadataInstanceStateChange `json:"-" xml:"-"` +} + +type metadataInstanceStateChange struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20279,8 +17973,6 @@ func (s InstanceStateChange) GoString() string { // Describes the status of an instance. type InstanceStatus struct { - _ struct{} `type:"structure"` - // The Availability Zone of the instance. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` @@ -20302,6 +17994,12 @@ type InstanceStatus struct { // that support an instance, such as hardware failures and network connectivity // problems. SystemStatus *InstanceStatusSummary `locationName:"systemStatus" type:"structure"` + + metadataInstanceStatus `json:"-" xml:"-"` +} + +type metadataInstanceStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20316,8 +18014,6 @@ func (s InstanceStatus) GoString() string { // Describes the instance status. type InstanceStatusDetails struct { - _ struct{} `type:"structure"` - // The time when a status check failed. For an instance that was launched and // impaired, this is the time when the instance was launched. ImpairedSince *time.Time `locationName:"impairedSince" type:"timestamp" timestampFormat:"iso8601"` @@ -20327,6 +18023,12 @@ type InstanceStatusDetails struct { // The status. Status *string `locationName:"status" type:"string" enum:"StatusType"` + + metadataInstanceStatusDetails `json:"-" xml:"-"` +} + +type metadataInstanceStatusDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20341,8 +18043,6 @@ func (s InstanceStatusDetails) GoString() string { // Describes a scheduled event for an instance. type InstanceStatusEvent struct { - _ struct{} `type:"structure"` - // The event code. Code *string `locationName:"code" type:"string" enum:"EventCode"` @@ -20358,6 +18058,12 @@ type InstanceStatusEvent struct { // The earliest scheduled start time for the event. NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"` + + metadataInstanceStatusEvent `json:"-" xml:"-"` +} + +type metadataInstanceStatusEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20372,13 +18078,17 @@ func (s InstanceStatusEvent) GoString() string { // Describes the status of an instance. type InstanceStatusSummary struct { - _ struct{} `type:"structure"` - // The system instance health or application instance health. Details []*InstanceStatusDetails `locationName:"details" locationNameList:"item" type:"list"` // The status. Status *string `locationName:"status" type:"string" enum:"SummaryStatus"` + + metadataInstanceStatusSummary `json:"-" xml:"-"` +} + +type metadataInstanceStatusSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20393,8 +18103,6 @@ func (s InstanceStatusSummary) GoString() string { // Describes an Internet gateway. type InternetGateway struct { - _ struct{} `type:"structure"` - // Any VPCs attached to the Internet gateway. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"` @@ -20403,6 +18111,12 @@ type InternetGateway struct { // Any tags assigned to the Internet gateway. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` + + metadataInternetGateway `json:"-" xml:"-"` +} + +type metadataInternetGateway struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20417,13 +18131,17 @@ func (s InternetGateway) GoString() string { // Describes the attachment of a VPC to an Internet gateway. type InternetGatewayAttachment struct { - _ struct{} `type:"structure"` - // The current state of the attachment. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"` // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` + + metadataInternetGatewayAttachment `json:"-" xml:"-"` +} + +type metadataInternetGatewayAttachment struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20438,17 +18156,18 @@ func (s InternetGatewayAttachment) GoString() string { // Describes a security group rule. type IpPermission struct { - _ struct{} `type:"structure"` - // The start of port range for the TCP and UDP protocols, or an ICMP type number. // A value of -1 indicates all ICMP types. FromPort *int64 `locationName:"fromPort" type:"integer"` - // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers - // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). + // The protocol. // - // [EC2-VPC only] When you authorize or revoke security group rules, you can - // use -1 to specify all. + // When you call DescribeSecurityGroups, the protocol value returned is the + // number. Exception: For TCP, UDP, and ICMP, the value returned is the name + // (for example, tcp, udp, or icmp). For a list of protocol numbers, see Protocol + // Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + // (VPC only) When you call AuthorizeSecurityGroupIngress, you can use -1 to + // specify all. IpProtocol *string `locationName:"ipProtocol" type:"string"` // One or more IP ranges. @@ -20466,6 +18185,12 @@ type IpPermission struct { // One or more security group and AWS account ID pairs. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"` + + metadataIpPermission `json:"-" xml:"-"` +} + +type metadataIpPermission struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20480,11 +18205,15 @@ func (s IpPermission) GoString() string { // Describes an IP range. type IpRange struct { - _ struct{} `type:"structure"` - // The CIDR range. You can either specify a CIDR range or a source security // group, not both. CidrIp *string `locationName:"cidrIp" type:"string"` + + metadataIpRange `json:"-" xml:"-"` +} + +type metadataIpRange struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20499,8 +18228,6 @@ func (s IpRange) GoString() string { // Describes a key pair. type KeyPairInfo struct { - _ struct{} `type:"structure"` - // If you used CreateKeyPair to create the key pair, this is the SHA-1 digest // of the DER encoded private key. If you used ImportKeyPair to provide AWS // the public key, this is the MD5 public key fingerprint as specified in section @@ -20509,6 +18236,12 @@ type KeyPairInfo struct { // The name of the key pair. KeyName *string `locationName:"keyName" type:"string"` + + metadataKeyPairInfo `json:"-" xml:"-"` +} + +type metadataKeyPairInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20523,13 +18256,17 @@ func (s KeyPairInfo) GoString() string { // Describes a launch permission. type LaunchPermission struct { - _ struct{} `type:"structure"` - // The name of the group. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"` // The AWS account ID. UserId *string `locationName:"userId" type:"string"` + + metadataLaunchPermission `json:"-" xml:"-"` +} + +type metadataLaunchPermission struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20544,14 +18281,18 @@ func (s LaunchPermission) GoString() string { // Describes a launch permission modification. type LaunchPermissionModifications struct { - _ struct{} `type:"structure"` - // The AWS account ID to add to the list of launch permissions for the AMI. Add []*LaunchPermission `locationNameList:"item" type:"list"` // The AWS account ID to remove from the list of launch permissions for the // AMI. Remove []*LaunchPermission `locationNameList:"item" type:"list"` + + metadataLaunchPermissionModifications `json:"-" xml:"-"` +} + +type metadataLaunchPermissionModifications struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20566,15 +18307,10 @@ func (s LaunchPermissionModifications) GoString() string { // Describes the launch specification for an instance. type LaunchSpecification struct { - _ struct{} `type:"structure"` - // Deprecated. AddressingType *string `locationName:"addressingType" type:"string"` // One or more block device mapping entries. - // - // Although you can specify encrypted EBS volumes in this block device mapping - // for your Spot Instances, these volumes are not encrypted. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"` // Indicates whether the instance is optimized for EBS I/O. This optimization @@ -20613,9 +18349,10 @@ type LaunchSpecification struct { // The ID of the RAM disk. RamdiskId *string `locationName:"ramdiskId" type:"string"` - // One or more security groups. When requesting instances in a VPC, you must - // specify the IDs of the security groups. When requesting instances in EC2-Classic, - // you can specify the names or the IDs of the security groups. + // One or more security groups. To request an instance in a nondefault VPC, + // you must specify the ID of the security group. To request an instance in + // EC2-Classic or a default VPC, you can specify the name or the ID of the security + // group. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"` // The ID of the subnet in which to launch the instance. @@ -20623,132 +18360,25 @@ type LaunchSpecification struct { // The Base64-encoded MIME user data to make available to the instances. UserData *string `locationName:"userData" type:"string"` -} - -// String returns the string representation -func (s LaunchSpecification) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s LaunchSpecification) GoString() string { - return s.String() -} - -// Contains the parameters for ModifyHosts. -type ModifyHostsInput struct { - _ struct{} `type:"structure"` - - // Specify whether to enable or disable auto-placement. - AutoPlacement *string `locationName:"autoPlacement" type:"string" required:"true" enum:"AutoPlacement"` - - // The host IDs of the Dedicated hosts you want to modify. - HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"` -} - -// String returns the string representation -func (s ModifyHostsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyHostsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyHostsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyHostsInput"} - if s.AutoPlacement == nil { - invalidParams.Add(request.NewErrParamRequired("AutoPlacement")) - } - if s.HostIds == nil { - invalidParams.Add(request.NewErrParamRequired("HostIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of ModifyHosts. -type ModifyHostsOutput struct { - _ struct{} `type:"structure"` - - // The IDs of the Dedicated hosts that were successfully modified. - Successful []*string `locationName:"successful" locationNameList:"item" type:"list"` - - // The IDs of the Dedicated hosts that could not be modified. Check whether - // the setting you requested can be used. - Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"` -} - -// String returns the string representation -func (s ModifyHostsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyHostsOutput) GoString() string { - return s.String() -} - -// Contains the parameters of ModifyIdFormat. -type ModifyIdFormatInput struct { - _ struct{} `type:"structure"` - - // The type of resource. - Resource *string `type:"string" required:"true"` - - // Indicate whether the resource should use longer IDs (17-character IDs). - UseLongIds *bool `type:"boolean" required:"true"` -} - -// String returns the string representation -func (s ModifyIdFormatInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyIdFormatInput) GoString() string { - return s.String() -} -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyIdFormatInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyIdFormatInput"} - if s.Resource == nil { - invalidParams.Add(request.NewErrParamRequired("Resource")) - } - if s.UseLongIds == nil { - invalidParams.Add(request.NewErrParamRequired("UseLongIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataLaunchSpecification `json:"-" xml:"-"` } -type ModifyIdFormatOutput struct { - _ struct{} `type:"structure"` +type metadataLaunchSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ModifyIdFormatOutput) String() string { +func (s LaunchSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyIdFormatOutput) GoString() string { +func (s LaunchSpecification) GoString() string { return s.String() } -// Contains the parameters for ModifyImageAttribute. type ModifyImageAttributeInput struct { - _ struct{} `type:"structure"` - // The name of the attribute to modify. Attribute *string `type:"string"` @@ -20785,6 +18415,12 @@ type ModifyImageAttributeInput struct { // The value of the attribute being modified. This is only valid when modifying // the description attribute. Value *string `type:"string"` + + metadataModifyImageAttributeInput `json:"-" xml:"-"` +} + +type metadataModifyImageAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20797,21 +18433,12 @@ func (s ModifyImageAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyImageAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyImageAttributeInput"} - if s.ImageId == nil { - invalidParams.Add(request.NewErrParamRequired("ImageId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ModifyImageAttributeOutput struct { + metadataModifyImageAttributeOutput `json:"-" xml:"-"` } -type ModifyImageAttributeOutput struct { - _ struct{} `type:"structure"` +type metadataModifyImageAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20824,10 +18451,7 @@ func (s ModifyImageAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ModifyInstanceAttribute. type ModifyInstanceAttributeInput struct { - _ struct{} `type:"structure"` - // The name of the attribute. Attribute *string `locationName:"attribute" type:"string" enum:"InstanceAttributeName"` @@ -20900,13 +18524,18 @@ type ModifyInstanceAttributeInput struct { // with a PV instance can make it unreachable. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"` - // Changes the instance's user data to the specified base64-encoded value. For - // command line tools, base64 encoding is performed for you. + // Changes the instance's user data to the specified value. UserData *BlobAttributeValue `locationName:"userData" type:"structure"` // A new value for the attribute. Use only with the kernel, ramdisk, userData, // disableApiTermination, or instanceInitiatedShutdownBehavior attribute. Value *string `locationName:"value" type:"string"` + + metadataModifyInstanceAttributeInput `json:"-" xml:"-"` +} + +type metadataModifyInstanceAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20919,21 +18548,12 @@ func (s ModifyInstanceAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyInstanceAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceAttributeInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ModifyInstanceAttributeOutput struct { + metadataModifyInstanceAttributeOutput `json:"-" xml:"-"` } -type ModifyInstanceAttributeOutput struct { - _ struct{} `type:"structure"` +type metadataModifyInstanceAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -20946,68 +18566,7 @@ func (s ModifyInstanceAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ModifyInstancePlacement. -type ModifyInstancePlacementInput struct { - _ struct{} `type:"structure"` - - // The new affinity setting for the instance. - Affinity *string `locationName:"affinity" type:"string" enum:"Affinity"` - - // The ID of the Dedicated host that the instance will have affinity with. - HostId *string `locationName:"hostId" type:"string"` - - // The ID of the instance that you are modifying. - InstanceId *string `locationName:"instanceId" type:"string" required:"true"` - - // The tenancy of the instance that you are modifying. - Tenancy *string `locationName:"tenancy" type:"string" enum:"HostTenancy"` -} - -// String returns the string representation -func (s ModifyInstancePlacementInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyInstancePlacementInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyInstancePlacementInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyInstancePlacementInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of ModifyInstancePlacement. -type ModifyInstancePlacementOutput struct { - _ struct{} `type:"structure"` - - // Is true if the request succeeds, and an error otherwise. - Return *bool `locationName:"return" type:"boolean"` -} - -// String returns the string representation -func (s ModifyInstancePlacementOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyInstancePlacementOutput) GoString() string { - return s.String() -} - -// Contains the parameters for ModifyNetworkInterfaceAttribute. type ModifyNetworkInterfaceAttributeInput struct { - _ struct{} `type:"structure"` - // Information about the interface attachment. If modifying the 'delete on termination' // attribute, you must specify the ID of the interface attachment. Attachment *NetworkInterfaceAttachmentChanges `locationName:"attachment" type:"structure"` @@ -21036,6 +18595,12 @@ type ModifyNetworkInterfaceAttributeInput struct { // NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html) // in the Amazon Virtual Private Cloud User Guide. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"` + + metadataModifyNetworkInterfaceAttributeInput `json:"-" xml:"-"` +} + +type metadataModifyNetworkInterfaceAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21048,21 +18613,12 @@ func (s ModifyNetworkInterfaceAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyNetworkInterfaceAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyNetworkInterfaceAttributeInput"} - if s.NetworkInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ModifyNetworkInterfaceAttributeOutput struct { + metadataModifyNetworkInterfaceAttributeOutput `json:"-" xml:"-"` } -type ModifyNetworkInterfaceAttributeOutput struct { - _ struct{} `type:"structure"` +type metadataModifyNetworkInterfaceAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21075,10 +18631,7 @@ func (s ModifyNetworkInterfaceAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ModifyReservedInstances. type ModifyReservedInstancesInput struct { - _ struct{} `type:"structure"` - // A unique, case-sensitive token you provide to ensure idempotency of your // modification request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string `locationName:"clientToken" type:"string"` @@ -21088,6 +18641,12 @@ type ModifyReservedInstancesInput struct { // The configuration settings for the Reserved Instances to modify. TargetConfigurations []*ReservedInstancesConfiguration `locationName:"ReservedInstancesConfigurationSetItemType" locationNameList:"item" type:"list" required:"true"` + + metadataModifyReservedInstancesInput `json:"-" xml:"-"` +} + +type metadataModifyReservedInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21100,28 +18659,15 @@ func (s ModifyReservedInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyReservedInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyReservedInstancesInput"} - if s.ReservedInstancesIds == nil { - invalidParams.Add(request.NewErrParamRequired("ReservedInstancesIds")) - } - if s.TargetConfigurations == nil { - invalidParams.Add(request.NewErrParamRequired("TargetConfigurations")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of ModifyReservedInstances. type ModifyReservedInstancesOutput struct { - _ struct{} `type:"structure"` - // The ID for the modification. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"` + + metadataModifyReservedInstancesOutput `json:"-" xml:"-"` +} + +type metadataModifyReservedInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21134,10 +18680,7 @@ func (s ModifyReservedInstancesOutput) GoString() string { return s.String() } -// Contains the parameters for ModifySnapshotAttribute. type ModifySnapshotAttributeInput struct { - _ struct{} `type:"structure"` - // The snapshot attribute to modify. // // Only volume creation permissions may be modified at the customer level. @@ -21163,6 +18706,12 @@ type ModifySnapshotAttributeInput struct { // The account ID to modify for the snapshot. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"` + + metadataModifySnapshotAttributeInput `json:"-" xml:"-"` +} + +type metadataModifySnapshotAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21175,21 +18724,12 @@ func (s ModifySnapshotAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifySnapshotAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotAttributeInput"} - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ModifySnapshotAttributeOutput struct { + metadataModifySnapshotAttributeOutput `json:"-" xml:"-"` } -type ModifySnapshotAttributeOutput struct { - _ struct{} `type:"structure"` +type metadataModifySnapshotAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21202,131 +18742,71 @@ func (s ModifySnapshotAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ModifySpotFleetRequest. -type ModifySpotFleetRequestInput struct { - _ struct{} `type:"structure"` +type ModifySubnetAttributeInput struct { + // Specify true to indicate that instances launched into the specified subnet + // should be assigned public IP address. + MapPublicIpOnLaunch *AttributeBooleanValue `type:"structure"` - // Indicates whether running Spot instances should be terminated if the target - // capacity of the Spot fleet request is decreased below the current size of - // the Spot fleet. - ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"` + // The ID of the subnet. + SubnetId *string `locationName:"subnetId" type:"string" required:"true"` - // The ID of the Spot fleet request. - SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` + metadataModifySubnetAttributeInput `json:"-" xml:"-"` +} - // The size of the fleet. - TargetCapacity *int64 `locationName:"targetCapacity" type:"integer"` +type metadataModifySubnetAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ModifySpotFleetRequestInput) String() string { +func (s ModifySubnetAttributeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifySpotFleetRequestInput) GoString() string { +func (s ModifySubnetAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifySpotFleetRequestInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifySpotFleetRequestInput"} - if s.SpotFleetRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ModifySubnetAttributeOutput struct { + metadataModifySubnetAttributeOutput `json:"-" xml:"-"` } -// Contains the output of ModifySpotFleetRequest. -type ModifySpotFleetRequestOutput struct { - _ struct{} `type:"structure"` - - // Is true if the request succeeds, and an error otherwise. - Return *bool `locationName:"return" type:"boolean"` +type metadataModifySubnetAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ModifySpotFleetRequestOutput) String() string { +func (s ModifySubnetAttributeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifySpotFleetRequestOutput) GoString() string { +func (s ModifySubnetAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ModifySubnetAttribute. -type ModifySubnetAttributeInput struct { - _ struct{} `type:"structure"` +type ModifyVolumeAttributeInput struct { + // Indicates whether the volume should be auto-enabled for I/O operations. + AutoEnableIO *AttributeBooleanValue `type:"structure"` - // Specify true to indicate that instances launched into the specified subnet - // should be assigned public IP address. - MapPublicIpOnLaunch *AttributeBooleanValue `type:"structure"` + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `locationName:"dryRun" type:"boolean"` - // The ID of the subnet. - SubnetId *string `locationName:"subnetId" type:"string" required:"true"` + // The ID of the volume. + VolumeId *string `type:"string" required:"true"` + + metadataModifyVolumeAttributeInput `json:"-" xml:"-"` +} + +type metadataModifyVolumeAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ModifySubnetAttributeInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifySubnetAttributeInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifySubnetAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifySubnetAttributeInput"} - if s.SubnetId == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ModifySubnetAttributeOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ModifySubnetAttributeOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifySubnetAttributeOutput) GoString() string { - return s.String() -} - -// Contains the parameters for ModifyVolumeAttribute. -type ModifyVolumeAttributeInput struct { - _ struct{} `type:"structure"` - - // Indicates whether the volume should be auto-enabled for I/O operations. - AutoEnableIO *AttributeBooleanValue `type:"structure"` - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have - // the required permissions, the error response is DryRunOperation. Otherwise, - // it is UnauthorizedOperation. - DryRun *bool `locationName:"dryRun" type:"boolean"` - - // The ID of the volume. - VolumeId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s ModifyVolumeAttributeInput) String() string { +func (s ModifyVolumeAttributeInput) String() string { return awsutil.Prettify(s) } @@ -21335,21 +18815,12 @@ func (s ModifyVolumeAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyVolumeAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeAttributeInput"} - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ModifyVolumeAttributeOutput struct { + metadataModifyVolumeAttributeOutput `json:"-" xml:"-"` } -type ModifyVolumeAttributeOutput struct { - _ struct{} `type:"structure"` +type metadataModifyVolumeAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21362,16 +18833,11 @@ func (s ModifyVolumeAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ModifyVpcAttribute. type ModifyVpcAttributeInput struct { - _ struct{} `type:"structure"` - // Indicates whether the instances launched in the VPC get DNS hostnames. If // enabled, instances in the VPC get DNS hostnames; otherwise, they do not. // - // You cannot modify the DNS resolution and DNS hostnames attributes in the - // same request. Use separate requests for each attribute. You can only enable - // DNS hostnames if you've enabled DNS support. + // You can only enable DNS hostnames if you also enable DNS support. EnableDnsHostnames *AttributeBooleanValue `type:"structure"` // Indicates whether the DNS resolution is supported for the VPC. If enabled, @@ -21379,13 +18845,16 @@ type ModifyVpcAttributeInput struct { // or the reserved IP address at the base of the VPC network range "plus two" // will succeed. If disabled, the Amazon provided DNS service in the VPC that // resolves public DNS hostnames to IP addresses is not enabled. - // - // You cannot modify the DNS resolution and DNS hostnames attributes in the - // same request. Use separate requests for each attribute. EnableDnsSupport *AttributeBooleanValue `type:"structure"` // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string" required:"true"` + + metadataModifyVpcAttributeInput `json:"-" xml:"-"` +} + +type metadataModifyVpcAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21398,21 +18867,12 @@ func (s ModifyVpcAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyVpcAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyVpcAttributeInput"} - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ModifyVpcAttributeOutput struct { + metadataModifyVpcAttributeOutput `json:"-" xml:"-"` } -type ModifyVpcAttributeOutput struct { - _ struct{} `type:"structure"` +type metadataModifyVpcAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21425,10 +18885,7 @@ func (s ModifyVpcAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ModifyVpcEndpoint. type ModifyVpcEndpointInput struct { - _ struct{} `type:"structure"` - // One or more route tables IDs to associate with the endpoint. AddRouteTableIds []*string `locationName:"AddRouteTableId" locationNameList:"item" type:"list"` @@ -21451,6 +18908,12 @@ type ModifyVpcEndpointInput struct { // The ID of the endpoint. VpcEndpointId *string `type:"string" required:"true"` + + metadataModifyVpcEndpointInput `json:"-" xml:"-"` +} + +type metadataModifyVpcEndpointInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21463,113 +18926,28 @@ func (s ModifyVpcEndpointInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyVpcEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointInput"} - if s.VpcEndpointId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcEndpointId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of ModifyVpcEndpoint. type ModifyVpcEndpointOutput struct { - _ struct{} `type:"structure"` - // Returns true if the request succeeds; otherwise, it returns an error. Return *bool `locationName:"return" type:"boolean"` -} - -// String returns the string representation -func (s ModifyVpcEndpointOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyVpcEndpointOutput) GoString() string { - return s.String() -} - -type ModifyVpcPeeringConnectionOptionsInput struct { - _ struct{} `type:"structure"` - - // The VPC peering connection options for the accepter VPC. - AccepterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"` - - // Checks whether you have the required permissions for the operation, without - // actually making the request, and provides an error response. If you have - // the required permissions, the error response is DryRunOperation. Otherwise, - // it is UnauthorizedOperation. - DryRun *bool `type:"boolean"` - - // The VPC peering connection options for the requester VPC. - RequesterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"` - - // The ID of the VPC peering connection. - VpcPeeringConnectionId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s ModifyVpcPeeringConnectionOptionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyVpcPeeringConnectionOptionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyVpcPeeringConnectionOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyVpcPeeringConnectionOptionsInput"} - if s.VpcPeeringConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId")) - } - if s.AccepterPeeringConnectionOptions != nil { - if err := s.AccepterPeeringConnectionOptions.Validate(); err != nil { - invalidParams.AddNested("AccepterPeeringConnectionOptions", err.(request.ErrInvalidParams)) - } - } - if s.RequesterPeeringConnectionOptions != nil { - if err := s.RequesterPeeringConnectionOptions.Validate(); err != nil { - invalidParams.AddNested("RequesterPeeringConnectionOptions", err.(request.ErrInvalidParams)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataModifyVpcEndpointOutput `json:"-" xml:"-"` } -type ModifyVpcPeeringConnectionOptionsOutput struct { - _ struct{} `type:"structure"` - - // Information about the VPC peering connection options for the accepter VPC. - AccepterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"accepterPeeringConnectionOptions" type:"structure"` - - // Information about the VPC peering connection options for the requester VPC. - RequesterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"requesterPeeringConnectionOptions" type:"structure"` +type metadataModifyVpcEndpointOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ModifyVpcPeeringConnectionOptionsOutput) String() string { +func (s ModifyVpcEndpointOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyVpcPeeringConnectionOptionsOutput) GoString() string { +func (s ModifyVpcEndpointOutput) GoString() string { return s.String() } -// Contains the parameters for MonitorInstances. type MonitorInstancesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -21578,6 +18956,12 @@ type MonitorInstancesInput struct { // One or more instance IDs. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"` + + metadataMonitorInstancesInput `json:"-" xml:"-"` +} + +type metadataMonitorInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21590,25 +18974,15 @@ func (s MonitorInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MonitorInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MonitorInstancesInput"} - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of MonitorInstances. type MonitorInstancesOutput struct { - _ struct{} `type:"structure"` - // Monitoring information for one or more instances. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"` + + metadataMonitorInstancesOutput `json:"-" xml:"-"` +} + +type metadataMonitorInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21623,10 +18997,14 @@ func (s MonitorInstancesOutput) GoString() string { // Describes the monitoring for the instance. type Monitoring struct { - _ struct{} `type:"structure"` - // Indicates whether monitoring is enabled for the instance. State *string `locationName:"state" type:"string" enum:"MonitoringState"` + + metadataMonitoring `json:"-" xml:"-"` +} + +type metadataMonitoring struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21639,10 +19017,7 @@ func (s Monitoring) GoString() string { return s.String() } -// Contains the parameters for MoveAddressToVpc. type MoveAddressToVpcInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -21651,6 +19026,12 @@ type MoveAddressToVpcInput struct { // The Elastic IP address. PublicIp *string `locationName:"publicIp" type:"string" required:"true"` + + metadataMoveAddressToVpcInput `json:"-" xml:"-"` +} + +type metadataMoveAddressToVpcInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21663,28 +19044,18 @@ func (s MoveAddressToVpcInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MoveAddressToVpcInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MoveAddressToVpcInput"} - if s.PublicIp == nil { - invalidParams.Add(request.NewErrParamRequired("PublicIp")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of MoveAddressToVpc. type MoveAddressToVpcOutput struct { - _ struct{} `type:"structure"` - // The allocation ID for the Elastic IP address. AllocationId *string `locationName:"allocationId" type:"string"` // The status of the move of the IP address. Status *string `locationName:"status" type:"string" enum:"Status"` + + metadataMoveAddressToVpcOutput `json:"-" xml:"-"` +} + +type metadataMoveAddressToVpcOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21699,142 +19070,32 @@ func (s MoveAddressToVpcOutput) GoString() string { // Describes the status of a moving Elastic IP address. type MovingAddressStatus struct { - _ struct{} `type:"structure"` - // The status of the Elastic IP address that's being moved to the EC2-VPC platform, // or restored to the EC2-Classic platform. MoveStatus *string `locationName:"moveStatus" type:"string" enum:"MoveStatus"` // The Elastic IP address. PublicIp *string `locationName:"publicIp" type:"string"` -} - -// String returns the string representation -func (s MovingAddressStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MovingAddressStatus) GoString() string { - return s.String() -} - -// Describes a NAT gateway. -type NatGateway struct { - _ struct{} `type:"structure"` - - // The date and time the NAT gateway was created. - CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"` - - // The date and time the NAT gateway was deleted, if applicable. - DeleteTime *time.Time `locationName:"deleteTime" type:"timestamp" timestampFormat:"iso8601"` - - // If the NAT gateway could not be created, specifies the error code for the - // failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound - // | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound) - FailureCode *string `locationName:"failureCode" type:"string"` - - // If the NAT gateway could not be created, specifies the error message for - // the failure, that corresponds to the error code. - // - // For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses - // to create this NAT gateway" - // - // For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached" - // - // For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx - // could not be associated with this NAT gateway" - // - // For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is - // already associated" - // - // For InternalError: "Network interface eni-xxxxxxxx, created and used internally - // by this NAT gateway is in an invalid state. Please try again." - // - // For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does - // not exist or could not be found." - FailureMessage *string `locationName:"failureMessage" type:"string"` - - // Information about the IP addresses and network interface associated with - // the NAT gateway. - NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"` - - // The ID of the NAT gateway. - NatGatewayId *string `locationName:"natGatewayId" type:"string"` - - // Reserved. If you need to sustain traffic greater than the documented limits - // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html), - // contact us through the Support Center (https://console.aws.amazon.com/support/home?). - ProvisionedBandwidth *ProvisionedBandwidth `locationName:"provisionedBandwidth" type:"structure"` - - // The state of the NAT gateway. - // - // pending: The NAT gateway is being created and is not ready to process - // traffic. - // - // failed: The NAT gateway could not be created. Check the failureCode and - // failureMessage fields for the reason. - // - // available: The NAT gateway is able to process traffic. This status remains - // until you delete the NAT gateway, and does not indicate the health of the - // NAT gateway. - // - // deleting: The NAT gateway is in the process of being terminated and may - // still be processing traffic. - // - // deleted: The NAT gateway has been terminated and is no longer processing - // traffic. - State *string `locationName:"state" type:"string" enum:"NatGatewayState"` - - // The ID of the subnet in which the NAT gateway is located. - SubnetId *string `locationName:"subnetId" type:"string"` - - // The ID of the VPC in which the NAT gateway is located. - VpcId *string `locationName:"vpcId" type:"string"` -} - -// String returns the string representation -func (s NatGateway) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s NatGateway) GoString() string { - return s.String() + metadataMovingAddressStatus `json:"-" xml:"-"` } -// Describes the IP addresses and network interface associated with a NAT gateway. -type NatGatewayAddress struct { - _ struct{} `type:"structure"` - - // The allocation ID of the Elastic IP address that's associated with the NAT - // gateway. - AllocationId *string `locationName:"allocationId" type:"string"` - - // The ID of the network interface associated with the NAT gateway. - NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` - - // The private IP address associated with the Elastic IP address. - PrivateIp *string `locationName:"privateIp" type:"string"` - - // The Elastic IP address associated with the NAT gateway. - PublicIp *string `locationName:"publicIp" type:"string"` +type metadataMovingAddressStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s NatGatewayAddress) String() string { +func (s MovingAddressStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NatGatewayAddress) GoString() string { +func (s MovingAddressStatus) GoString() string { return s.String() } // Describes a network ACL. type NetworkAcl struct { - _ struct{} `type:"structure"` - // Any associations between the network ACL and one or more subnets Associations []*NetworkAclAssociation `locationName:"associationSet" locationNameList:"item" type:"list"` @@ -21852,6 +19113,12 @@ type NetworkAcl struct { // The ID of the VPC for the network ACL. VpcId *string `locationName:"vpcId" type:"string"` + + metadataNetworkAcl `json:"-" xml:"-"` +} + +type metadataNetworkAcl struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21866,8 +19133,6 @@ func (s NetworkAcl) GoString() string { // Describes an association between a network ACL and a subnet. type NetworkAclAssociation struct { - _ struct{} `type:"structure"` - // The ID of the association between a network ACL and a subnet. NetworkAclAssociationId *string `locationName:"networkAclAssociationId" type:"string"` @@ -21876,6 +19141,12 @@ type NetworkAclAssociation struct { // The ID of the subnet. SubnetId *string `locationName:"subnetId" type:"string"` + + metadataNetworkAclAssociation `json:"-" xml:"-"` +} + +type metadataNetworkAclAssociation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21890,8 +19161,6 @@ func (s NetworkAclAssociation) GoString() string { // Describes an entry in a network ACL. type NetworkAclEntry struct { - _ struct{} `type:"structure"` - // The network range to allow or deny, in CIDR notation. CidrBlock *string `locationName:"cidrBlock" type:"string"` @@ -21914,6 +19183,12 @@ type NetworkAclEntry struct { // The rule number for the entry. ACL entries are processed in ascending order // by rule number. RuleNumber *int64 `locationName:"ruleNumber" type:"integer"` + + metadataNetworkAclEntry `json:"-" xml:"-"` +} + +type metadataNetworkAclEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -21928,8 +19203,6 @@ func (s NetworkAclEntry) GoString() string { // Describes a network interface. type NetworkInterface struct { - _ struct{} `type:"structure"` - // The association information for an Elastic IP associated with the network // interface. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"` @@ -21946,9 +19219,6 @@ type NetworkInterface struct { // Any security groups for the network interface. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"` - // The type of interface. - InterfaceType *string `locationName:"interfaceType" type:"string" enum:"NetworkInterfaceType"` - // The MAC address. MacAddress *string `locationName:"macAddress" type:"string"` @@ -21988,6 +19258,12 @@ type NetworkInterface struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` + + metadataNetworkInterface `json:"-" xml:"-"` +} + +type metadataNetworkInterface struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22002,8 +19278,6 @@ func (s NetworkInterface) GoString() string { // Describes association information for an Elastic IP address. type NetworkInterfaceAssociation struct { - _ struct{} `type:"structure"` - // The allocation ID. AllocationId *string `locationName:"allocationId" type:"string"` @@ -22018,6 +19292,12 @@ type NetworkInterfaceAssociation struct { // The address of the Elastic IP address bound to the network interface. PublicIp *string `locationName:"publicIp" type:"string"` + + metadataNetworkInterfaceAssociation `json:"-" xml:"-"` +} + +type metadataNetworkInterfaceAssociation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22032,8 +19312,6 @@ func (s NetworkInterfaceAssociation) GoString() string { // Describes a network interface attachment. type NetworkInterfaceAttachment struct { - _ struct{} `type:"structure"` - // The timestamp indicating when the attachment initiated. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"` @@ -22054,6 +19332,12 @@ type NetworkInterfaceAttachment struct { // The attachment state. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"` + + metadataNetworkInterfaceAttachment `json:"-" xml:"-"` +} + +type metadataNetworkInterfaceAttachment struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22068,13 +19352,17 @@ func (s NetworkInterfaceAttachment) GoString() string { // Describes an attachment change. type NetworkInterfaceAttachmentChanges struct { - _ struct{} `type:"structure"` - // The ID of the network interface attachment. AttachmentId *string `locationName:"attachmentId" type:"string"` // Indicates whether the network interface is deleted when the instance is terminated. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"` + + metadataNetworkInterfaceAttachmentChanges `json:"-" xml:"-"` +} + +type metadataNetworkInterfaceAttachmentChanges struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22089,8 +19377,6 @@ func (s NetworkInterfaceAttachmentChanges) GoString() string { // Describes the private IP address of a network interface. type NetworkInterfacePrivateIpAddress struct { - _ struct{} `type:"structure"` - // The association information for an Elastic IP address associated with the // network interface. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"` @@ -22104,6 +19390,12 @@ type NetworkInterfacePrivateIpAddress struct { // The private IP address. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` + + metadataNetworkInterfacePrivateIpAddress `json:"-" xml:"-"` +} + +type metadataNetworkInterfacePrivateIpAddress struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22117,11 +19409,15 @@ func (s NetworkInterfacePrivateIpAddress) GoString() string { } type NewDhcpConfiguration struct { - _ struct{} `type:"structure"` - Key *string `locationName:"key" type:"string"` Values []*string `locationName:"Value" locationNameList:"item" type:"list"` + + metadataNewDhcpConfiguration `json:"-" xml:"-"` +} + +type metadataNewDhcpConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22134,135 +19430,76 @@ func (s NewDhcpConfiguration) GoString() string { return s.String() } -// Describes the VPC peering connection options. -type PeeringConnectionOptions struct { - _ struct{} `type:"structure"` +// Describes the placement for the instance. +type Placement struct { + // The Availability Zone of the instance. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // The name of the placement group the instance is in (for cluster compute instances). + GroupName *string `locationName:"groupName" type:"string"` + + // The tenancy of the instance (if the instance is running in a VPC). An instance + // with a tenancy of dedicated runs on single-tenant hardware. + Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"` - // If true, enables outbound communication from an EC2-Classic instance that's - // linked to a local VPC via ClassicLink to instances in a peer VPC. - AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"` + metadataPlacement `json:"-" xml:"-"` +} - // If true, enables outbound communication from instances in a local VPC to - // an EC2-Classic instance that's linked to a peer VPC via ClassicLink. - AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"` +type metadataPlacement struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s PeeringConnectionOptions) String() string { +func (s Placement) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PeeringConnectionOptions) GoString() string { +func (s Placement) GoString() string { return s.String() } -// The VPC peering connection options. -type PeeringConnectionOptionsRequest struct { - _ struct{} `type:"structure"` +// Describes a placement group. +type PlacementGroup struct { + // The name of the placement group. + GroupName *string `locationName:"groupName" type:"string"` + + // The state of the placement group. + State *string `locationName:"state" type:"string" enum:"PlacementGroupState"` + + // The placement strategy. + Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"` - // If true, enables outbound communication from an EC2-Classic instance that's - // linked to a local VPC via ClassicLink to instances in a peer VPC. - AllowEgressFromLocalClassicLinkToRemoteVpc *bool `type:"boolean" required:"true"` + metadataPlacementGroup `json:"-" xml:"-"` +} - // If true, enables outbound communication from instances in a local VPC to - // an EC2-Classic instance that's linked to a peer VPC via ClassicLink. - AllowEgressFromLocalVpcToRemoteClassicLink *bool `type:"boolean" required:"true"` +type metadataPlacementGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s PeeringConnectionOptionsRequest) String() string { +func (s PlacementGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PeeringConnectionOptionsRequest) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PeeringConnectionOptionsRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PeeringConnectionOptionsRequest"} - if s.AllowEgressFromLocalClassicLinkToRemoteVpc == nil { - invalidParams.Add(request.NewErrParamRequired("AllowEgressFromLocalClassicLinkToRemoteVpc")) - } - if s.AllowEgressFromLocalVpcToRemoteClassicLink == nil { - invalidParams.Add(request.NewErrParamRequired("AllowEgressFromLocalVpcToRemoteClassicLink")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes the placement for the instance. -type Placement struct { - _ struct{} `type:"structure"` - - // The affinity setting for the instance on the Dedicated host. This parameter - // is not supported for the ImportInstance command. - Affinity *string `locationName:"affinity" type:"string"` - - // The Availability Zone of the instance. - AvailabilityZone *string `locationName:"availabilityZone" type:"string"` - - // The name of the placement group the instance is in (for cluster compute instances). - GroupName *string `locationName:"groupName" type:"string"` - - // The ID of the Dedicted host on which the instance resides. This parameter - // is not support for the ImportInstance command. - HostId *string `locationName:"hostId" type:"string"` - - // The tenancy of the instance (if the instance is running in a VPC). An instance - // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy - // is not supported for the ImportInstance command. - Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"` -} - -// String returns the string representation -func (s Placement) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Placement) GoString() string { - return s.String() -} - -// Describes a placement group. -type PlacementGroup struct { - _ struct{} `type:"structure"` - - // The name of the placement group. - GroupName *string `locationName:"groupName" type:"string"` - - // The state of the placement group. - State *string `locationName:"state" type:"string" enum:"PlacementGroupState"` - - // The placement strategy. - Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"` -} - -// String returns the string representation -func (s PlacementGroup) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PlacementGroup) GoString() string { +func (s PlacementGroup) GoString() string { return s.String() } // Describes a range of ports. type PortRange struct { - _ struct{} `type:"structure"` - // The first port in the range. From *int64 `locationName:"from" type:"integer"` // The last port in the range. To *int64 `locationName:"to" type:"integer"` + + metadataPortRange `json:"-" xml:"-"` +} + +type metadataPortRange struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22277,8 +19514,6 @@ func (s PortRange) GoString() string { // Describes prefixes for AWS services. type PrefixList struct { - _ struct{} `type:"structure"` - // The IP address range of the AWS service. Cidrs []*string `locationName:"cidrSet" locationNameList:"item" type:"list"` @@ -22287,6 +19522,12 @@ type PrefixList struct { // The name of the prefix. PrefixListName *string `locationName:"prefixListName" type:"string"` + + metadataPrefixList `json:"-" xml:"-"` +} + +type metadataPrefixList struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22301,10 +19542,14 @@ func (s PrefixList) GoString() string { // The ID of the prefix. type PrefixListId struct { - _ struct{} `type:"structure"` - // The ID of the prefix. PrefixListId *string `locationName:"prefixListId" type:"string"` + + metadataPrefixListId `json:"-" xml:"-"` +} + +type metadataPrefixListId struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22319,8 +19564,6 @@ func (s PrefixListId) GoString() string { // Describes the price for a Reserved Instance. type PriceSchedule struct { - _ struct{} `type:"structure"` - // The current price schedule, as determined by the term remaining for the Reserved // Instance in the listing. // @@ -22343,6 +19586,12 @@ type PriceSchedule struct { // The number of months remaining in the reservation. For example, 2 is the // second to the last month before the capacity reservation expires. Term *int64 `locationName:"term" type:"long"` + + metadataPriceSchedule `json:"-" xml:"-"` +} + +type metadataPriceSchedule struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22357,8 +19606,6 @@ func (s PriceSchedule) GoString() string { // Describes the price for a Reserved Instance. type PriceScheduleSpecification struct { - _ struct{} `type:"structure"` - // The currency for transacting the Reserved Instance resale. At this time, // the only supported currency is USD. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"` @@ -22369,6 +19616,12 @@ type PriceScheduleSpecification struct { // The number of months remaining in the reservation. For example, 2 is the // second to the last month before the capacity reservation expires. Term *int64 `locationName:"term" type:"long"` + + metadataPriceScheduleSpecification `json:"-" xml:"-"` +} + +type metadataPriceScheduleSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22383,13 +19636,17 @@ func (s PriceScheduleSpecification) GoString() string { // Describes a Reserved Instance offering. type PricingDetail struct { - _ struct{} `type:"structure"` - - // The number of reservations available for the price. + // The number of instances available for the price. Count *int64 `locationName:"count" type:"integer"` // The price per instance. Price *float64 `locationName:"price" type:"double"` + + metadataPricingDetail `json:"-" xml:"-"` +} + +type metadataPricingDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22404,14 +19661,18 @@ func (s PricingDetail) GoString() string { // Describes a secondary private IP address for a network interface. type PrivateIpAddressSpecification struct { - _ struct{} `type:"structure"` - // Indicates whether the private IP address is the primary private IP address. // Only one IP address can be designated as primary. Primary *bool `locationName:"primary" type:"boolean"` // The private IP addresses. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string" required:"true"` + + metadataPrivateIpAddressSpecification `json:"-" xml:"-"` +} + +type metadataPrivateIpAddressSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22424,28 +19685,19 @@ func (s PrivateIpAddressSpecification) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PrivateIpAddressSpecification) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PrivateIpAddressSpecification"} - if s.PrivateIpAddress == nil { - invalidParams.Add(request.NewErrParamRequired("PrivateIpAddress")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a product code. type ProductCode struct { - _ struct{} `type:"structure"` - // The product code. ProductCodeId *string `locationName:"productCode" type:"string"` // The type of product code. ProductCodeType *string `locationName:"type" type:"string" enum:"ProductCodeValues"` + + metadataProductCode `json:"-" xml:"-"` +} + +type metadataProductCode struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22460,105 +19712,27 @@ func (s ProductCode) GoString() string { // Describes a virtual private gateway propagating route. type PropagatingVgw struct { - _ struct{} `type:"structure"` - // The ID of the virtual private gateway (VGW). GatewayId *string `locationName:"gatewayId" type:"string"` -} - -// String returns the string representation -func (s PropagatingVgw) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s PropagatingVgw) GoString() string { - return s.String() -} - -// Reserved. If you need to sustain traffic greater than the documented limits -// (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html), -// contact us through the Support Center (https://console.aws.amazon.com/support/home?). -type ProvisionedBandwidth struct { - _ struct{} `type:"structure"` - - // Reserved. If you need to sustain traffic greater than the documented limits - // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html), - // contact us through the Support Center (https://console.aws.amazon.com/support/home?). - ProvisionTime *time.Time `locationName:"provisionTime" type:"timestamp" timestampFormat:"iso8601"` - - // Reserved. If you need to sustain traffic greater than the documented limits - // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html), - // contact us through the Support Center (https://console.aws.amazon.com/support/home?). - Provisioned *string `locationName:"provisioned" type:"string"` - - // Reserved. If you need to sustain traffic greater than the documented limits - // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html), - // contact us through the Support Center (https://console.aws.amazon.com/support/home?). - RequestTime *time.Time `locationName:"requestTime" type:"timestamp" timestampFormat:"iso8601"` - - // Reserved. If you need to sustain traffic greater than the documented limits - // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html), - // contact us through the Support Center (https://console.aws.amazon.com/support/home?). - Requested *string `locationName:"requested" type:"string"` - - // Reserved. If you need to sustain traffic greater than the documented limits - // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html), - // contact us through the Support Center (https://console.aws.amazon.com/support/home?). - Status *string `locationName:"status" type:"string"` -} - -// String returns the string representation -func (s ProvisionedBandwidth) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ProvisionedBandwidth) GoString() string { - return s.String() + metadataPropagatingVgw `json:"-" xml:"-"` } -// Describes a request to purchase Scheduled Instances. -type PurchaseRequest struct { - _ struct{} `type:"structure"` - - // The number of instances. - InstanceCount *int64 `type:"integer" required:"true"` - - // The purchase token. - PurchaseToken *string `type:"string" required:"true"` +type metadataPropagatingVgw struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s PurchaseRequest) String() string { +func (s PropagatingVgw) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PurchaseRequest) GoString() string { +func (s PropagatingVgw) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PurchaseRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PurchaseRequest"} - if s.InstanceCount == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceCount")) - } - if s.PurchaseToken == nil { - invalidParams.Add(request.NewErrParamRequired("PurchaseToken")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the parameters for PurchaseReservedInstancesOffering. type PurchaseReservedInstancesOfferingInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -22575,6 +19749,12 @@ type PurchaseReservedInstancesOfferingInput struct { // The ID of the Reserved Instance offering to purchase. ReservedInstancesOfferingId *string `type:"string" required:"true"` + + metadataPurchaseReservedInstancesOfferingInput `json:"-" xml:"-"` +} + +type metadataPurchaseReservedInstancesOfferingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22587,116 +19767,28 @@ func (s PurchaseReservedInstancesOfferingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PurchaseReservedInstancesOfferingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedInstancesOfferingInput"} - if s.InstanceCount == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceCount")) - } - if s.ReservedInstancesOfferingId == nil { - invalidParams.Add(request.NewErrParamRequired("ReservedInstancesOfferingId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of PurchaseReservedInstancesOffering. type PurchaseReservedInstancesOfferingOutput struct { - _ struct{} `type:"structure"` - // The IDs of the purchased Reserved Instances. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"` -} - -// String returns the string representation -func (s PurchaseReservedInstancesOfferingOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PurchaseReservedInstancesOfferingOutput) GoString() string { - return s.String() -} - -// Contains the parameters for PurchaseScheduledInstances. -type PurchaseScheduledInstancesInput struct { - _ struct{} `type:"structure"` - - // Unique, case-sensitive identifier that ensures the idempotency of the request. - // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). - ClientToken *string `type:"string" idempotencyToken:"true"` - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have - // the required permissions, the error response is DryRunOperation. Otherwise, - // it is UnauthorizedOperation. - DryRun *bool `type:"boolean"` - - // One or more purchase requests. - PurchaseRequests []*PurchaseRequest `locationName:"PurchaseRequest" locationNameList:"PurchaseRequest" min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s PurchaseScheduledInstancesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PurchaseScheduledInstancesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PurchaseScheduledInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PurchaseScheduledInstancesInput"} - if s.PurchaseRequests == nil { - invalidParams.Add(request.NewErrParamRequired("PurchaseRequests")) - } - if s.PurchaseRequests != nil && len(s.PurchaseRequests) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PurchaseRequests", 1)) - } - if s.PurchaseRequests != nil { - for i, v := range s.PurchaseRequests { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PurchaseRequests", i), err.(request.ErrInvalidParams)) - } - } - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataPurchaseReservedInstancesOfferingOutput `json:"-" xml:"-"` } -// Contains the output of PurchaseScheduledInstances. -type PurchaseScheduledInstancesOutput struct { - _ struct{} `type:"structure"` - - // Information about the Scheduled Instances. - ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"` +type metadataPurchaseReservedInstancesOfferingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s PurchaseScheduledInstancesOutput) String() string { +func (s PurchaseReservedInstancesOfferingOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PurchaseScheduledInstancesOutput) GoString() string { +func (s PurchaseReservedInstancesOfferingOutput) GoString() string { return s.String() } -// Contains the parameters for RebootInstances. type RebootInstancesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -22705,6 +19797,12 @@ type RebootInstancesInput struct { // One or more instance IDs. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"` + + metadataRebootInstancesInput `json:"-" xml:"-"` +} + +type metadataRebootInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22717,21 +19815,12 @@ func (s RebootInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RebootInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RebootInstancesInput"} - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RebootInstancesOutput struct { + metadataRebootInstancesOutput `json:"-" xml:"-"` } -type RebootInstancesOutput struct { - _ struct{} `type:"structure"` +type metadataRebootInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22746,13 +19835,17 @@ func (s RebootInstancesOutput) GoString() string { // Describes a recurring charge. type RecurringCharge struct { - _ struct{} `type:"structure"` - // The amount of the recurring charge. Amount *float64 `locationName:"amount" type:"double"` // The frequency of the recurring charge. Frequency *string `locationName:"frequency" type:"string" enum:"RecurringChargeFrequency"` + + metadataRecurringCharge `json:"-" xml:"-"` +} + +type metadataRecurringCharge struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22767,13 +19860,17 @@ func (s RecurringCharge) GoString() string { // Describes a region. type Region struct { - _ struct{} `type:"structure"` - // The region service endpoint. Endpoint *string `locationName:"regionEndpoint" type:"string"` // The name of the region. RegionName *string `locationName:"regionName" type:"string"` + + metadataRegion `json:"-" xml:"-"` +} + +type metadataRegion struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22786,10 +19883,7 @@ func (s Region) GoString() string { return s.String() } -// Contains the parameters for RegisterImage. type RegisterImageInput struct { - _ struct{} `type:"structure"` - // The architecture of the AMI. // // Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs, @@ -22840,6 +19934,12 @@ type RegisterImageInput struct { // // Default: paravirtual VirtualizationType *string `locationName:"virtualizationType" type:"string"` + + metadataRegisterImageInput `json:"-" xml:"-"` +} + +type metadataRegisterImageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22852,25 +19952,15 @@ func (s RegisterImageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterImageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterImageInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of RegisterImage. type RegisterImageOutput struct { - _ struct{} `type:"structure"` - // The ID of the newly registered AMI. ImageId *string `locationName:"imageId" type:"string"` + + metadataRegisterImageOutput `json:"-" xml:"-"` +} + +type metadataRegisterImageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22883,10 +19973,7 @@ func (s RegisterImageOutput) GoString() string { return s.String() } -// Contains the parameters for RejectVpcPeeringConnection. type RejectVpcPeeringConnectionInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -22895,6 +19982,12 @@ type RejectVpcPeeringConnectionInput struct { // The ID of the VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"` + + metadataRejectVpcPeeringConnectionInput `json:"-" xml:"-"` +} + +type metadataRejectVpcPeeringConnectionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22907,25 +20000,15 @@ func (s RejectVpcPeeringConnectionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RejectVpcPeeringConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RejectVpcPeeringConnectionInput"} - if s.VpcPeeringConnectionId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of RejectVpcPeeringConnection. type RejectVpcPeeringConnectionOutput struct { - _ struct{} `type:"structure"` - // Returns true if the request succeeds; otherwise, it returns an error. Return *bool `locationName:"return" type:"boolean"` + + metadataRejectVpcPeeringConnectionOutput `json:"-" xml:"-"` +} + +type metadataRejectVpcPeeringConnectionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -22938,10 +20021,7 @@ func (s RejectVpcPeeringConnectionOutput) GoString() string { return s.String() } -// Contains the parameters for ReleaseAddress. type ReleaseAddressInput struct { - _ struct{} `type:"structure"` - // [EC2-VPC] The allocation ID. Required for EC2-VPC. AllocationId *string `type:"string"` @@ -22953,89 +20033,43 @@ type ReleaseAddressInput struct { // [EC2-Classic] The Elastic IP address. Required for EC2-Classic. PublicIp *string `type:"string"` -} - -// String returns the string representation -func (s ReleaseAddressInput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s ReleaseAddressInput) GoString() string { - return s.String() -} - -type ReleaseAddressOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ReleaseAddressOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ReleaseAddressOutput) GoString() string { - return s.String() + metadataReleaseAddressInput `json:"-" xml:"-"` } -// Contains the parameters for ReleaseHosts. -type ReleaseHostsInput struct { - _ struct{} `type:"structure"` - - // The IDs of the Dedicated hosts you want to release. - HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"` +type metadataReleaseAddressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ReleaseHostsInput) String() string { +func (s ReleaseAddressInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReleaseHostsInput) GoString() string { +func (s ReleaseAddressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReleaseHostsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReleaseHostsInput"} - if s.HostIds == nil { - invalidParams.Add(request.NewErrParamRequired("HostIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ReleaseAddressOutput struct { + metadataReleaseAddressOutput `json:"-" xml:"-"` } -// Contains the output of ReleaseHosts. -type ReleaseHostsOutput struct { - _ struct{} `type:"structure"` - - // The IDs of the Dedicated hosts that were successfully released. - Successful []*string `locationName:"successful" locationNameList:"item" type:"list"` - - // The IDs of the Dedicated hosts that could not be released, including an error - // message. - Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"` +type metadataReleaseAddressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ReleaseHostsOutput) String() string { +func (s ReleaseAddressOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReleaseHostsOutput) GoString() string { +func (s ReleaseAddressOutput) GoString() string { return s.String() } -// Contains the parameters for ReplaceNetworkAclAssociation. type ReplaceNetworkAclAssociationInput struct { - _ struct{} `type:"structure"` - // The ID of the current association between the original network ACL and the // subnet. AssociationId *string `locationName:"associationId" type:"string" required:"true"` @@ -23048,6 +20082,12 @@ type ReplaceNetworkAclAssociationInput struct { // The ID of the new network ACL to associate with the subnet. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"` + + metadataReplaceNetworkAclAssociationInput `json:"-" xml:"-"` +} + +type metadataReplaceNetworkAclAssociationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23060,28 +20100,15 @@ func (s ReplaceNetworkAclAssociationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplaceNetworkAclAssociationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclAssociationInput"} - if s.AssociationId == nil { - invalidParams.Add(request.NewErrParamRequired("AssociationId")) - } - if s.NetworkAclId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkAclId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of ReplaceNetworkAclAssociation. type ReplaceNetworkAclAssociationOutput struct { - _ struct{} `type:"structure"` - // The ID of the new association. NewAssociationId *string `locationName:"newAssociationId" type:"string"` + + metadataReplaceNetworkAclAssociationOutput `json:"-" xml:"-"` +} + +type metadataReplaceNetworkAclAssociationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23094,10 +20121,7 @@ func (s ReplaceNetworkAclAssociationOutput) GoString() string { return s.String() } -// Contains the parameters for ReplaceNetworkAclEntry. type ReplaceNetworkAclEntryInput struct { - _ struct{} `type:"structure"` - // The network range to allow or deny, in CIDR notation. CidrBlock *string `locationName:"cidrBlock" type:"string" required:"true"` @@ -23131,6 +20155,12 @@ type ReplaceNetworkAclEntryInput struct { // The rule number of the entry to replace. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"` + + metadataReplaceNetworkAclEntryInput `json:"-" xml:"-"` +} + +type metadataReplaceNetworkAclEntryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23143,36 +20173,12 @@ func (s ReplaceNetworkAclEntryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplaceNetworkAclEntryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclEntryInput"} - if s.CidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("CidrBlock")) - } - if s.Egress == nil { - invalidParams.Add(request.NewErrParamRequired("Egress")) - } - if s.NetworkAclId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkAclId")) - } - if s.Protocol == nil { - invalidParams.Add(request.NewErrParamRequired("Protocol")) - } - if s.RuleAction == nil { - invalidParams.Add(request.NewErrParamRequired("RuleAction")) - } - if s.RuleNumber == nil { - invalidParams.Add(request.NewErrParamRequired("RuleNumber")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ReplaceNetworkAclEntryOutput struct { + metadataReplaceNetworkAclEntryOutput `json:"-" xml:"-"` } -type ReplaceNetworkAclEntryOutput struct { - _ struct{} `type:"structure"` +type metadataReplaceNetworkAclEntryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23185,10 +20191,7 @@ func (s ReplaceNetworkAclEntryOutput) GoString() string { return s.String() } -// Contains the parameters for ReplaceRoute. type ReplaceRouteInput struct { - _ struct{} `type:"structure"` - // The CIDR address block used for the destination match. The value you provide // must match the CIDR of an existing route in the table. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string" required:"true"` @@ -23205,9 +20208,6 @@ type ReplaceRouteInput struct { // The ID of a NAT instance in your VPC. InstanceId *string `locationName:"instanceId" type:"string"` - // The ID of a NAT gateway. - NatGatewayId *string `locationName:"natGatewayId" type:"string"` - // The ID of a network interface. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` @@ -23216,6 +20216,12 @@ type ReplaceRouteInput struct { // The ID of a VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` + + metadataReplaceRouteInput `json:"-" xml:"-"` +} + +type metadataReplaceRouteInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23228,24 +20234,12 @@ func (s ReplaceRouteInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplaceRouteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteInput"} - if s.DestinationCidrBlock == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) - } - if s.RouteTableId == nil { - invalidParams.Add(request.NewErrParamRequired("RouteTableId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ReplaceRouteOutput struct { + metadataReplaceRouteOutput `json:"-" xml:"-"` } -type ReplaceRouteOutput struct { - _ struct{} `type:"structure"` +type metadataReplaceRouteOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23258,10 +20252,7 @@ func (s ReplaceRouteOutput) GoString() string { return s.String() } -// Contains the parameters for ReplaceRouteTableAssociation. type ReplaceRouteTableAssociationInput struct { - _ struct{} `type:"structure"` - // The association ID. AssociationId *string `locationName:"associationId" type:"string" required:"true"` @@ -23273,6 +20264,12 @@ type ReplaceRouteTableAssociationInput struct { // The ID of the new route table to associate with the subnet. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"` + + metadataReplaceRouteTableAssociationInput `json:"-" xml:"-"` +} + +type metadataReplaceRouteTableAssociationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23285,28 +20282,15 @@ func (s ReplaceRouteTableAssociationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplaceRouteTableAssociationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteTableAssociationInput"} - if s.AssociationId == nil { - invalidParams.Add(request.NewErrParamRequired("AssociationId")) - } - if s.RouteTableId == nil { - invalidParams.Add(request.NewErrParamRequired("RouteTableId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of ReplaceRouteTableAssociation. type ReplaceRouteTableAssociationOutput struct { - _ struct{} `type:"structure"` - // The ID of the new association. NewAssociationId *string `locationName:"newAssociationId" type:"string"` + + metadataReplaceRouteTableAssociationOutput `json:"-" xml:"-"` +} + +type metadataReplaceRouteTableAssociationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23319,10 +20303,7 @@ func (s ReplaceRouteTableAssociationOutput) GoString() string { return s.String() } -// Contains the parameters for ReportInstanceStatus. type ReportInstanceStatusInput struct { - _ struct{} `type:"structure"` - // Descriptive text about the health state of your instance. Description *string `locationName:"description" type:"string"` @@ -23340,26 +20321,26 @@ type ReportInstanceStatusInput struct { // One or more reason codes that describes the health state of your instance. // - // instance-stuck-in-state: My instance is stuck in a state. + // instance-stuck-in-state: My instance is stuck in a state. // - // unresponsive: My instance is unresponsive. + // unresponsive: My instance is unresponsive. // - // not-accepting-credentials: My instance is not accepting my credentials. + // not-accepting-credentials: My instance is not accepting my credentials. // - // password-not-available: A password is not available for my instance. + // password-not-available: A password is not available for my instance. // - // performance-network: My instance is experiencing performance problems - // which I believe are network related. + // performance-network: My instance is experiencing performance problems which + // I believe are network related. // - // performance-instance-store: My instance is experiencing performance problems + // performance-instance-store: My instance is experiencing performance problems // which I believe are related to the instance stores. // - // performance-ebs-volume: My instance is experiencing performance problems + // performance-ebs-volume: My instance is experiencing performance problems // which I believe are related to an EBS volume. // - // performance-other: My instance is experiencing performance problems. + // performance-other: My instance is experiencing performance problems. // - // other: [explain using the description parameter] + // other: [explain using the description parameter] ReasonCodes []*string `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"` // The time at which the reported instance health state began. @@ -23367,6 +20348,12 @@ type ReportInstanceStatusInput struct { // The status of all instances listed. Status *string `locationName:"status" type:"string" required:"true" enum:"ReportStatusType"` + + metadataReportInstanceStatusInput `json:"-" xml:"-"` +} + +type metadataReportInstanceStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23379,27 +20366,12 @@ func (s ReportInstanceStatusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReportInstanceStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReportInstanceStatusInput"} - if s.Instances == nil { - invalidParams.Add(request.NewErrParamRequired("Instances")) - } - if s.ReasonCodes == nil { - invalidParams.Add(request.NewErrParamRequired("ReasonCodes")) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ReportInstanceStatusOutput struct { + metadataReportInstanceStatusOutput `json:"-" xml:"-"` } -type ReportInstanceStatusOutput struct { - _ struct{} `type:"structure"` +type metadataReportInstanceStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23414,8 +20386,6 @@ func (s ReportInstanceStatusOutput) GoString() string { // Contains the parameters for RequestSpotFleet. type RequestSpotFleetInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -23424,6 +20394,12 @@ type RequestSpotFleetInput struct { // The configuration for the Spot fleet request. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"` + + metadataRequestSpotFleetInput `json:"-" xml:"-"` +} + +type metadataRequestSpotFleetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23436,30 +20412,16 @@ func (s RequestSpotFleetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RequestSpotFleetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RequestSpotFleetInput"} - if s.SpotFleetRequestConfig == nil { - invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestConfig")) - } - if s.SpotFleetRequestConfig != nil { - if err := s.SpotFleetRequestConfig.Validate(); err != nil { - invalidParams.AddNested("SpotFleetRequestConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of RequestSpotFleet. type RequestSpotFleetOutput struct { - _ struct{} `type:"structure"` - // The ID of the Spot fleet request. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"` + + metadataRequestSpotFleetOutput `json:"-" xml:"-"` +} + +type metadataRequestSpotFleetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23474,42 +20436,27 @@ func (s RequestSpotFleetOutput) GoString() string { // Contains the parameters for RequestSpotInstances. type RequestSpotInstancesInput struct { - _ struct{} `type:"structure"` - // The user-specified name for a logical grouping of bids. // // When you specify an Availability Zone group in a Spot Instance request, - // all Spot instances in the request are launched in the same Availability Zone. + // all Spot Instances in the request are launched in the same Availability Zone. // Instance proximity is maintained with this parameter, but the choice of Availability // Zone is not. The group applies only to bids for Spot Instances of the same - // instance type. Any additional Spot instance requests that are specified with + // instance type. Any additional Spot Instance requests that are specified with // the same Availability Zone group name are launched in that same Availability // Zone, as long as at least one instance from the group is still active. // // If there is no active instance running in the Availability Zone group that - // you specify for a new Spot instance request (all instances are terminated, + // you specify for a new Spot Instance request (all instances are terminated, // the bid is expired, or the bid falls below current market), then Amazon EC2 // launches the instance in any Availability Zone where the constraint can be - // met. Consequently, the subsequent set of Spot instances could be placed in + // met. Consequently, the subsequent set of Spot Instances could be placed in // a different zone from the original request, even if you specified the same // Availability Zone group. // // Default: Instances are launched in any available Availability Zone. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"` - // The required duration for the Spot instances (also known as Spot blocks), - // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, - // or 360). - // - // The duration period starts as soon as your Spot instance receives its instance - // ID. At the end of the duration period, Amazon EC2 marks the Spot instance - // for termination and provides a Spot instance termination notice, which gives - // the instance a two-minute warning before it terminates. - // - // Note that you can't specify an Availability Zone group or a launch group - // if you specify a duration. - BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"` - // Unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -23521,12 +20468,12 @@ type RequestSpotInstancesInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // The maximum number of Spot instances to launch. + // The maximum number of Spot Instances to launch. // // Default: 1 InstanceCount *int64 `locationName:"instanceCount" type:"integer"` - // The instance launch group. Launch groups are Spot instances that launch together + // The instance launch group. Launch groups are Spot Instances that launch together // and terminate together. // // Default: Instances are launched and terminated individually @@ -23535,11 +20482,11 @@ type RequestSpotInstancesInput struct { // Describes the launch specification for an instance. LaunchSpecification *RequestSpotLaunchSpecification `type:"structure"` - // The maximum hourly price (bid) for any Spot instance launched to fulfill + // The maximum hourly price (bid) for any Spot Instance launched to fulfill // the request. SpotPrice *string `locationName:"spotPrice" type:"string" required:"true"` - // The Spot instance request type. + // The Spot Instance request type. // // Default: one-time Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"` @@ -23560,6 +20507,12 @@ type RequestSpotInstancesInput struct { // // Default: The request is effective indefinitely. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"` + + metadataRequestSpotInstancesInput `json:"-" xml:"-"` +} + +type metadataRequestSpotInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23572,30 +20525,16 @@ func (s RequestSpotInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RequestSpotInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RequestSpotInstancesInput"} - if s.SpotPrice == nil { - invalidParams.Add(request.NewErrParamRequired("SpotPrice")) - } - if s.LaunchSpecification != nil { - if err := s.LaunchSpecification.Validate(); err != nil { - invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output of RequestSpotInstances. type RequestSpotInstancesOutput struct { - _ struct{} `type:"structure"` - - // One or more Spot instance requests. + // One or more Spot Instance requests. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"` + + metadataRequestSpotInstancesOutput `json:"-" xml:"-"` +} + +type metadataRequestSpotInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23610,15 +20549,10 @@ func (s RequestSpotInstancesOutput) GoString() string { // Describes the launch specification for an instance. type RequestSpotLaunchSpecification struct { - _ struct{} `type:"structure"` - // Deprecated. AddressingType *string `locationName:"addressingType" type:"string"` // One or more block device mapping entries. - // - // Although you can specify encrypted EBS volumes in this block device mapping - // for your Spot Instances, these volumes are not encrypted. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"` // Indicates whether the instance is optimized for EBS I/O. This optimization @@ -23666,6 +20600,12 @@ type RequestSpotLaunchSpecification struct { // The Base64-encoded MIME user data to make available to the instances. UserData *string `locationName:"userData" type:"string"` + + metadataRequestSpotLaunchSpecification `json:"-" xml:"-"` +} + +type metadataRequestSpotLaunchSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23678,36 +20618,9 @@ func (s RequestSpotLaunchSpecification) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RequestSpotLaunchSpecification) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RequestSpotLaunchSpecification"} - if s.Monitoring != nil { - if err := s.Monitoring.Validate(); err != nil { - invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams)) - } - } - if s.NetworkInterfaces != nil { - for i, v := range s.NetworkInterfaces { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a reservation. type Reservation struct { - _ struct{} `type:"structure"` - - // [EC2-Classic only] One or more security groups. + // One or more security groups. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"` // One or more instances. @@ -23722,6 +20635,12 @@ type Reservation struct { // The ID of the reservation. ReservationId *string `locationName:"reservationId" type:"string"` + + metadataReservation `json:"-" xml:"-"` +} + +type metadataReservation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23736,8 +20655,6 @@ func (s Reservation) GoString() string { // Describes the limit price of a Reserved Instance offering. type ReservedInstanceLimitPrice struct { - _ struct{} `type:"structure"` - // Used for Reserved Instance Marketplace offerings. Specifies the limit price // on the total order (instanceCount * price). Amount *float64 `locationName:"amount" type:"double"` @@ -23745,6 +20662,12 @@ type ReservedInstanceLimitPrice struct { // The currency in which the limitPrice amount is specified. At this time, the // only supported currency is USD. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"` + + metadataReservedInstanceLimitPrice `json:"-" xml:"-"` +} + +type metadataReservedInstanceLimitPrice struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23759,8 +20682,6 @@ func (s ReservedInstanceLimitPrice) GoString() string { // Describes a Reserved Instance. type ReservedInstances struct { - _ struct{} `type:"structure"` - // The Availability Zone in which the Reserved Instance can be used. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` @@ -23777,10 +20698,10 @@ type ReservedInstances struct { // The purchase price of the Reserved Instance. FixedPrice *float64 `locationName:"fixedPrice" type:"float"` - // The number of reservations purchased. + // The number of Reserved Instances purchased. InstanceCount *int64 `locationName:"instanceCount" type:"integer"` - // The tenancy of the instance. + // The tenancy of the reserved instance. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"` // The instance type on which the Reserved Instance can be used. @@ -23809,6 +20730,12 @@ type ReservedInstances struct { // The usage price of the Reserved Instance, per hour. UsagePrice *float64 `locationName:"usagePrice" type:"float"` + + metadataReservedInstances `json:"-" xml:"-"` +} + +type metadataReservedInstances struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23823,8 +20750,6 @@ func (s ReservedInstances) GoString() string { // Describes the configuration settings for the modified Reserved Instances. type ReservedInstancesConfiguration struct { - _ struct{} `type:"structure"` - // The Availability Zone for the modified Reserved Instances. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` @@ -23837,6 +20762,12 @@ type ReservedInstancesConfiguration struct { // The network platform of the modified Reserved Instances, which is either // EC2-Classic or EC2-VPC. Platform *string `locationName:"platform" type:"string"` + + metadataReservedInstancesConfiguration `json:"-" xml:"-"` +} + +type metadataReservedInstancesConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23851,10 +20782,14 @@ func (s ReservedInstancesConfiguration) GoString() string { // Describes the ID of a Reserved Instance. type ReservedInstancesId struct { - _ struct{} `type:"structure"` - // The ID of the Reserved Instance. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"` + + metadataReservedInstancesId `json:"-" xml:"-"` +} + +type metadataReservedInstancesId struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23869,8 +20804,6 @@ func (s ReservedInstancesId) GoString() string { // Describes a Reserved Instance listing. type ReservedInstancesListing struct { - _ struct{} `type:"structure"` - // A unique, case-sensitive key supplied by the client to ensure that the request // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string `locationName:"clientToken" type:"string"` @@ -23902,6 +20835,12 @@ type ReservedInstancesListing struct { // The last modified timestamp of the listing. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"` + + metadataReservedInstancesListing `json:"-" xml:"-"` +} + +type metadataReservedInstancesListing struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23916,8 +20855,6 @@ func (s ReservedInstancesListing) GoString() string { // Describes a Reserved Instance modification. type ReservedInstancesModification struct { - _ struct{} `type:"structure"` - // A unique, case-sensitive key supplied by the client to ensure that the request // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string `locationName:"clientToken" type:"string"` @@ -23946,6 +20883,12 @@ type ReservedInstancesModification struct { // The time when the modification request was last updated. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"` + + metadataReservedInstancesModification `json:"-" xml:"-"` +} + +type metadataReservedInstancesModification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23958,10 +20901,7 @@ func (s ReservedInstancesModification) GoString() string { return s.String() } -// Describes the modification request/s. type ReservedInstancesModificationResult struct { - _ struct{} `type:"structure"` - // The ID for the Reserved Instances that were created as part of the modification // request. This field is only available when the modification is fulfilled. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"` @@ -23969,6 +20909,12 @@ type ReservedInstancesModificationResult struct { // The target Reserved Instances configurations supplied as part of the modification // request. TargetConfiguration *ReservedInstancesConfiguration `locationName:"targetConfiguration" type:"structure"` + + metadataReservedInstancesModificationResult `json:"-" xml:"-"` +} + +type metadataReservedInstancesModificationResult struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -23983,8 +20929,6 @@ func (s ReservedInstancesModificationResult) GoString() string { // Describes a Reserved Instance offering. type ReservedInstancesOffering struct { - _ struct{} `type:"structure"` - // The Availability Zone in which the Reserved Instance can be used. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` @@ -23999,7 +20943,7 @@ type ReservedInstancesOffering struct { // The purchase price of the Reserved Instance. FixedPrice *float64 `locationName:"fixedPrice" type:"float"` - // The tenancy of the instance. + // The tenancy of the reserved instance. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"` // The instance type on which the Reserved Instance can be used. @@ -24027,6 +20971,12 @@ type ReservedInstancesOffering struct { // The usage price of the Reserved Instance, per hour. UsagePrice *float64 `locationName:"usagePrice" type:"float"` + + metadataReservedInstancesOffering `json:"-" xml:"-"` +} + +type metadataReservedInstancesOffering struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24039,10 +20989,7 @@ func (s ReservedInstancesOffering) GoString() string { return s.String() } -// Contains the parameters for ResetImageAttribute. type ResetImageAttributeInput struct { - _ struct{} `type:"structure"` - // The attribute to reset (currently you can only reset the launch permission // attribute). Attribute *string `type:"string" required:"true" enum:"ResetImageAttributeName"` @@ -24055,6 +21002,12 @@ type ResetImageAttributeInput struct { // The ID of the AMI. ImageId *string `type:"string" required:"true"` + + metadataResetImageAttributeInput `json:"-" xml:"-"` +} + +type metadataResetImageAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24067,24 +21020,12 @@ func (s ResetImageAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResetImageAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetImageAttributeInput"} - if s.Attribute == nil { - invalidParams.Add(request.NewErrParamRequired("Attribute")) - } - if s.ImageId == nil { - invalidParams.Add(request.NewErrParamRequired("ImageId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ResetImageAttributeOutput struct { + metadataResetImageAttributeOutput `json:"-" xml:"-"` } -type ResetImageAttributeOutput struct { - _ struct{} `type:"structure"` +type metadataResetImageAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24097,14 +21038,8 @@ func (s ResetImageAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ResetInstanceAttribute. type ResetInstanceAttributeInput struct { - _ struct{} `type:"structure"` - // The attribute to reset. - // - // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck. - // To change an instance attribute, use ModifyInstanceAttribute. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"` // Checks whether you have the required permissions for the action, without @@ -24115,6 +21050,12 @@ type ResetInstanceAttributeInput struct { // The ID of the instance. InstanceId *string `locationName:"instanceId" type:"string" required:"true"` + + metadataResetInstanceAttributeInput `json:"-" xml:"-"` +} + +type metadataResetInstanceAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24127,24 +21068,12 @@ func (s ResetInstanceAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResetInstanceAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetInstanceAttributeInput"} - if s.Attribute == nil { - invalidParams.Add(request.NewErrParamRequired("Attribute")) - } - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ResetInstanceAttributeOutput struct { + metadataResetInstanceAttributeOutput `json:"-" xml:"-"` } -type ResetInstanceAttributeOutput struct { - _ struct{} `type:"structure"` +type metadataResetInstanceAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24157,10 +21086,7 @@ func (s ResetInstanceAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ResetNetworkInterfaceAttribute. type ResetNetworkInterfaceAttributeInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -24172,6 +21098,12 @@ type ResetNetworkInterfaceAttributeInput struct { // The source/destination checking attribute. Resets the value to true. SourceDestCheck *string `locationName:"sourceDestCheck" type:"string"` + + metadataResetNetworkInterfaceAttributeInput `json:"-" xml:"-"` +} + +type metadataResetNetworkInterfaceAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24184,21 +21116,12 @@ func (s ResetNetworkInterfaceAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResetNetworkInterfaceAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetNetworkInterfaceAttributeInput"} - if s.NetworkInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ResetNetworkInterfaceAttributeOutput struct { + metadataResetNetworkInterfaceAttributeOutput `json:"-" xml:"-"` } -type ResetNetworkInterfaceAttributeOutput struct { - _ struct{} `type:"structure"` +type metadataResetNetworkInterfaceAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24211,10 +21134,7 @@ func (s ResetNetworkInterfaceAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ResetSnapshotAttribute. type ResetSnapshotAttributeInput struct { - _ struct{} `type:"structure"` - // The attribute to reset. Currently, only the attribute for permission to create // volumes can be reset. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"` @@ -24227,6 +21147,12 @@ type ResetSnapshotAttributeInput struct { // The ID of the snapshot. SnapshotId *string `type:"string" required:"true"` + + metadataResetSnapshotAttributeInput `json:"-" xml:"-"` +} + +type metadataResetSnapshotAttributeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24239,24 +21165,12 @@ func (s ResetSnapshotAttributeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResetSnapshotAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetSnapshotAttributeInput"} - if s.Attribute == nil { - invalidParams.Add(request.NewErrParamRequired("Attribute")) - } - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ResetSnapshotAttributeOutput struct { + metadataResetSnapshotAttributeOutput `json:"-" xml:"-"` } -type ResetSnapshotAttributeOutput struct { - _ struct{} `type:"structure"` +type metadataResetSnapshotAttributeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24269,10 +21183,7 @@ func (s ResetSnapshotAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for RestoreAddressToClassic. type RestoreAddressToClassicInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -24281,6 +21192,12 @@ type RestoreAddressToClassicInput struct { // The Elastic IP address. PublicIp *string `locationName:"publicIp" type:"string" required:"true"` + + metadataRestoreAddressToClassicInput `json:"-" xml:"-"` +} + +type metadataRestoreAddressToClassicInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24293,28 +21210,18 @@ func (s RestoreAddressToClassicInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreAddressToClassicInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreAddressToClassicInput"} - if s.PublicIp == nil { - invalidParams.Add(request.NewErrParamRequired("PublicIp")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of RestoreAddressToClassic. type RestoreAddressToClassicOutput struct { - _ struct{} `type:"structure"` - // The Elastic IP address. PublicIp *string `locationName:"publicIp" type:"string"` // The move status for the IP address. Status *string `locationName:"status" type:"string" enum:"Status"` + + metadataRestoreAddressToClassicOutput `json:"-" xml:"-"` +} + +type metadataRestoreAddressToClassicOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24327,12 +21234,9 @@ func (s RestoreAddressToClassicOutput) GoString() string { return s.String() } -// Contains the parameters for RevokeSecurityGroupEgress. type RevokeSecurityGroupEgressInput struct { - _ struct{} `type:"structure"` - - // The CIDR IP address range. We recommend that you specify the CIDR range in - // a set of IP permissions instead. + // The CIDR IP address range. You can't specify this parameter when specifying + // a source security group. CidrIp *string `locationName:"cidrIp" type:"string"` // Checks whether you have the required permissions for the action, without @@ -24342,7 +21246,7 @@ type RevokeSecurityGroupEgressInput struct { DryRun *bool `locationName:"dryRun" type:"boolean"` // The start of port range for the TCP and UDP protocols, or an ICMP type number. - // We recommend that you specify the port range in a set of IP permissions instead. + // For the ICMP type number, use -1 to specify all ICMP types. FromPort *int64 `locationName:"fromPort" type:"integer"` // The ID of the security group. @@ -24352,8 +21256,8 @@ type RevokeSecurityGroupEgressInput struct { // a CIDR IP address range. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"` - // The IP protocol name or number. We recommend that you specify the protocol - // in a set of IP permissions instead. + // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). + // Use -1 to specify all. IpProtocol *string `locationName:"ipProtocol" type:"string"` // The name of a destination security group. To revoke outbound access to a @@ -24366,9 +21270,15 @@ type RevokeSecurityGroupEgressInput struct { // IP permissions instead. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"` - // The end of port range for the TCP and UDP protocols, or an ICMP type number. - // We recommend that you specify the port range in a set of IP permissions instead. + // The end of port range for the TCP and UDP protocols, or an ICMP code number. + // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type. ToPort *int64 `locationName:"toPort" type:"integer"` + + metadataRevokeSecurityGroupEgressInput `json:"-" xml:"-"` +} + +type metadataRevokeSecurityGroupEgressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24381,21 +21291,12 @@ func (s RevokeSecurityGroupEgressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RevokeSecurityGroupEgressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RevokeSecurityGroupEgressInput"} - if s.GroupId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RevokeSecurityGroupEgressOutput struct { + metadataRevokeSecurityGroupEgressOutput `json:"-" xml:"-"` } -type RevokeSecurityGroupEgressOutput struct { - _ struct{} `type:"structure"` +type metadataRevokeSecurityGroupEgressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24408,10 +21309,7 @@ func (s RevokeSecurityGroupEgressOutput) GoString() string { return s.String() } -// Contains the parameters for RevokeSecurityGroupIngress. type RevokeSecurityGroupIngressInput struct { - _ struct{} `type:"structure"` - // The CIDR IP address range. You can't specify this parameter when specifying // a source security group. CidrIp *string `type:"string"` @@ -24445,21 +21343,26 @@ type RevokeSecurityGroupIngressInput struct { // specify this parameter in combination with the following parameters: the // CIDR IP address range, the start of the port range, the IP protocol, and // the end of the port range. For EC2-VPC, the source security group must be - // in the same VPC. To revoke a specific rule for an IP protocol and port range, - // use a set of IP permissions instead. + // in the same VPC. SourceSecurityGroupName *string `type:"string"` - // [EC2-Classic] The AWS account ID of the source security group, if the source - // security group is in a different account. You can't specify this parameter - // in combination with the following parameters: the CIDR IP address range, - // the IP protocol, the start of the port range, and the end of the port range. - // To revoke a specific rule for an IP protocol and port range, use a set of - // IP permissions instead. + // [EC2-Classic, default VPC] The AWS account ID of the source security group. + // For EC2-VPC, the source security group must be in the same VPC. You can't + // specify this parameter in combination with the following parameters: the + // CIDR IP address range, the IP protocol, the start of the port range, and + // the end of the port range. To revoke a specific rule for an IP protocol and + // port range, use a set of IP permissions instead. SourceSecurityGroupOwnerId *string `type:"string"` // The end of port range for the TCP and UDP protocols, or an ICMP code number. // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type. ToPort *int64 `type:"integer"` + + metadataRevokeSecurityGroupIngressInput `json:"-" xml:"-"` +} + +type metadataRevokeSecurityGroupIngressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24473,7 +21376,11 @@ func (s RevokeSecurityGroupIngressInput) GoString() string { } type RevokeSecurityGroupIngressOutput struct { - _ struct{} `type:"structure"` + metadataRevokeSecurityGroupIngressOutput `json:"-" xml:"-"` +} + +type metadataRevokeSecurityGroupIngressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24488,8 +21395,6 @@ func (s RevokeSecurityGroupIngressOutput) GoString() string { // Describes a route in a route table. type Route struct { - _ struct{} `type:"structure"` - // The CIDR block used for the destination match. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"` @@ -24505,20 +21410,15 @@ type Route struct { // The AWS account ID of the owner of the instance. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"` - // The ID of a NAT gateway. - NatGatewayId *string `locationName:"natGatewayId" type:"string"` - // The ID of the network interface. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` // Describes how the route was created. // - // CreateRouteTable - The route was automatically created when the route table - // was created. - // - // CreateRoute - The route was manually added to the route table. - // - // EnableVgwRoutePropagation - The route was propagated by route propagation. + // CreateRouteTable indicates that route was automatically created when the + // route table was created. CreateRoute indicates that the route was manually + // added to the route table. EnableVgwRoutePropagation indicates that the route + // was propagated by route propagation. Origin *string `locationName:"origin" type:"string" enum:"RouteOrigin"` // The state of the route. The blackhole state indicates that the route's target @@ -24528,6 +21428,12 @@ type Route struct { // The ID of the VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` + + metadataRoute `json:"-" xml:"-"` +} + +type metadataRoute struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24542,8 +21448,6 @@ func (s Route) GoString() string { // Describes a route table. type RouteTable struct { - _ struct{} `type:"structure"` - // The associations between the route table and one or more subnets. Associations []*RouteTableAssociation `locationName:"associationSet" locationNameList:"item" type:"list"` @@ -24561,6 +21465,12 @@ type RouteTable struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` + + metadataRouteTable `json:"-" xml:"-"` +} + +type metadataRouteTable struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24575,8 +21485,6 @@ func (s RouteTable) GoString() string { // Describes an association between a route table and a subnet. type RouteTableAssociation struct { - _ struct{} `type:"structure"` - // Indicates whether this is the main route table. Main *bool `locationName:"main" type:"boolean"` @@ -24588,6 +21496,12 @@ type RouteTableAssociation struct { // The ID of the subnet. A subnet ID is not returned for an implicit association. SubnetId *string `locationName:"subnetId" type:"string"` + + metadataRouteTableAssociation `json:"-" xml:"-"` +} + +type metadataRouteTableAssociation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -24600,10 +21514,7 @@ func (s RouteTableAssociation) GoString() string { return s.String() } -// Contains the parameters for RunInstances. type RunInstancesInput struct { - _ struct{} `type:"structure"` - // Reserved. AdditionalInfo *string `locationName:"additionalInfo" type:"string"` @@ -24681,7 +21592,7 @@ type RunInstancesInput struct { // Constraints: Between 1 and the maximum number you're allowed for the specified // instance type. For more information about the default limits, and how to // request an increase, see How many instances can I run in Amazon EC2 (http://aws.amazon.com/ec2/faqs/#How_many_instances_can_I_run_in_Amazon_EC2) - // in the Amazon EC2 FAQ. + // in the Amazon EC2 General FAQ. MaxCount *int64 `type:"integer" required:"true"` // The minimum number of instances to launch. If you specify a minimum that @@ -24726,704 +21637,98 @@ type RunInstancesInput struct { SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"` // [EC2-Classic, default VPC] One or more security group names. For a nondefault - // VPC, you must use security group IDs instead. - // - // Default: Amazon EC2 uses the default security group. - SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"` - - // [EC2-VPC] The ID of the subnet to launch the instance into. - SubnetId *string `type:"string"` - - // Data to configure the instance, or a script to run during instance launch. - // For more information, see Running Commands on Your Linux Instance at Launch - // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) (Linux) - // and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data) - // (Windows). For API calls, the text must be base64-encoded. For command line - // tools, the encoding is performed for you, and you can load the text from - // a file. - UserData *string `type:"string"` -} - -// String returns the string representation -func (s RunInstancesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RunInstancesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RunInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RunInstancesInput"} - if s.ImageId == nil { - invalidParams.Add(request.NewErrParamRequired("ImageId")) - } - if s.MaxCount == nil { - invalidParams.Add(request.NewErrParamRequired("MaxCount")) - } - if s.MinCount == nil { - invalidParams.Add(request.NewErrParamRequired("MinCount")) - } - if s.Monitoring != nil { - if err := s.Monitoring.Validate(); err != nil { - invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams)) - } - } - if s.NetworkInterfaces != nil { - for i, v := range s.NetworkInterfaces { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes the monitoring for the instance. -type RunInstancesMonitoringEnabled struct { - _ struct{} `type:"structure"` - - // Indicates whether monitoring is enabled for the instance. - Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` -} - -// String returns the string representation -func (s RunInstancesMonitoringEnabled) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RunInstancesMonitoringEnabled) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RunInstancesMonitoringEnabled) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RunInstancesMonitoringEnabled"} - if s.Enabled == nil { - invalidParams.Add(request.NewErrParamRequired("Enabled")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the parameters for RunScheduledInstances. -type RunScheduledInstancesInput struct { - _ struct{} `type:"structure"` - - // Unique, case-sensitive identifier that ensures the idempotency of the request. - // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). - ClientToken *string `type:"string" idempotencyToken:"true"` - - // Checks whether you have the required permissions for the action, without - // actually making the request, and provides an error response. If you have - // the required permissions, the error response is DryRunOperation. Otherwise, - // it is UnauthorizedOperation. - DryRun *bool `type:"boolean"` - - // The number of instances. - // - // Default: 1 - InstanceCount *int64 `type:"integer"` - - // The launch specification. - LaunchSpecification *ScheduledInstancesLaunchSpecification `type:"structure" required:"true"` - - // The Scheduled Instance ID. - ScheduledInstanceId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s RunScheduledInstancesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RunScheduledInstancesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RunScheduledInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RunScheduledInstancesInput"} - if s.LaunchSpecification == nil { - invalidParams.Add(request.NewErrParamRequired("LaunchSpecification")) - } - if s.ScheduledInstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("ScheduledInstanceId")) - } - if s.LaunchSpecification != nil { - if err := s.LaunchSpecification.Validate(); err != nil { - invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of RunScheduledInstances. -type RunScheduledInstancesOutput struct { - _ struct{} `type:"structure"` - - // The IDs of the newly launched instances. - InstanceIdSet []*string `locationName:"instanceIdSet" locationNameList:"item" type:"list"` -} - -// String returns the string representation -func (s RunScheduledInstancesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RunScheduledInstancesOutput) GoString() string { - return s.String() -} - -// Describes the storage parameters for S3 and S3 buckets for an instance store-backed -// AMI. -type S3Storage struct { - _ struct{} `type:"structure"` - - // The access key ID of the owner of the bucket. Before you specify a value - // for your access key ID, review and follow the guidance in Best Practices - // for Managing AWS Access Keys (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html). - AWSAccessKeyId *string `type:"string"` - - // The bucket in which to store the AMI. You can specify a bucket that you already - // own or a new bucket that Amazon EC2 creates on your behalf. If you specify - // a bucket that belongs to someone else, Amazon EC2 returns an error. - Bucket *string `locationName:"bucket" type:"string"` - - // The beginning of the file name of the AMI. - Prefix *string `locationName:"prefix" type:"string"` - - // A base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission - // to upload items into Amazon S3 on your behalf. For command line tools, base64 - // encoding is performed for you. - // - // UploadPolicy is automatically base64 encoded/decoded by the SDK. - UploadPolicy []byte `locationName:"uploadPolicy" type:"blob"` - - // The signature of the Base64 encoded JSON document. - UploadPolicySignature *string `locationName:"uploadPolicySignature" type:"string"` -} - -// String returns the string representation -func (s S3Storage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s S3Storage) GoString() string { - return s.String() -} - -// Describes a Scheduled Instance. -type ScheduledInstance struct { - _ struct{} `type:"structure"` - - // The Availability Zone. - AvailabilityZone *string `locationName:"availabilityZone" type:"string"` - - // The date when the Scheduled Instance was purchased. - CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"` - - // The hourly price for a single instance. - HourlyPrice *string `locationName:"hourlyPrice" type:"string"` - - // The number of instances. - InstanceCount *int64 `locationName:"instanceCount" type:"integer"` - - // The instance type. - InstanceType *string `locationName:"instanceType" type:"string"` - - // The network platform (EC2-Classic or EC2-VPC). - NetworkPlatform *string `locationName:"networkPlatform" type:"string"` - - // The time for the next schedule to start. - NextSlotStartTime *time.Time `locationName:"nextSlotStartTime" type:"timestamp" timestampFormat:"iso8601"` - - // The platform (Linux/UNIX or Windows). - Platform *string `locationName:"platform" type:"string"` - - // The time that the previous schedule ended or will end. - PreviousSlotEndTime *time.Time `locationName:"previousSlotEndTime" type:"timestamp" timestampFormat:"iso8601"` - - // The schedule recurrence. - Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"` - - // The Scheduled Instance ID. - ScheduledInstanceId *string `locationName:"scheduledInstanceId" type:"string"` - - // The number of hours in the schedule. - SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"` - - // The end date for the Scheduled Instance. - TermEndDate *time.Time `locationName:"termEndDate" type:"timestamp" timestampFormat:"iso8601"` - - // The start date for the Scheduled Instance. - TermStartDate *time.Time `locationName:"termStartDate" type:"timestamp" timestampFormat:"iso8601"` - - // The total number of hours for a single instance for the entire term. - TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"` -} - -// String returns the string representation -func (s ScheduledInstance) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScheduledInstance) GoString() string { - return s.String() -} - -// Describes a schedule that is available for your Scheduled Instances. -type ScheduledInstanceAvailability struct { - _ struct{} `type:"structure"` - - // The Availability Zone. - AvailabilityZone *string `locationName:"availabilityZone" type:"string"` - - // The number of available instances. - AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"` - - // The time period for the first schedule to start. - FirstSlotStartTime *time.Time `locationName:"firstSlotStartTime" type:"timestamp" timestampFormat:"iso8601"` - - // The hourly price for a single instance. - HourlyPrice *string `locationName:"hourlyPrice" type:"string"` - - // The instance type. You can specify one of the C3, C4, M4, or R3 instance - // types. - InstanceType *string `locationName:"instanceType" type:"string"` - - // The maximum term. The only possible value is 365 days. - MaxTermDurationInDays *int64 `locationName:"maxTermDurationInDays" type:"integer"` - - // The minimum term. The only possible value is 365 days. - MinTermDurationInDays *int64 `locationName:"minTermDurationInDays" type:"integer"` - - // The network platform (EC2-Classic or EC2-VPC). - NetworkPlatform *string `locationName:"networkPlatform" type:"string"` - - // The platform (Linux/UNIX or Windows). - Platform *string `locationName:"platform" type:"string"` - - // The purchase token. This token expires in two hours. - PurchaseToken *string `locationName:"purchaseToken" type:"string"` - - // The schedule recurrence. - Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"` - - // The number of hours in the schedule. - SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"` - - // The total number of hours for a single instance for the entire term. - TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"` -} - -// String returns the string representation -func (s ScheduledInstanceAvailability) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScheduledInstanceAvailability) GoString() string { - return s.String() -} - -// Describes the recurring schedule for a Scheduled Instance. -type ScheduledInstanceRecurrence struct { - _ struct{} `type:"structure"` - - // The frequency (Daily, Weekly, or Monthly). - Frequency *string `locationName:"frequency" type:"string"` - - // The interval quantity. The interval unit depends on the value of frequency. - // For example, every 2 weeks or every 2 months. - Interval *int64 `locationName:"interval" type:"integer"` - - // The days. For a monthly schedule, this is one or more days of the month (1-31). - // For a weekly schedule, this is one or more days of the week (1-7, where 1 - // is Sunday). - OccurrenceDaySet []*int64 `locationName:"occurrenceDaySet" locationNameList:"item" type:"list"` - - // Indicates whether the occurrence is relative to the end of the specified - // week or month. - OccurrenceRelativeToEnd *bool `locationName:"occurrenceRelativeToEnd" type:"boolean"` - - // The unit for occurrenceDaySet (DayOfWeek or DayOfMonth). - OccurrenceUnit *string `locationName:"occurrenceUnit" type:"string"` -} - -// String returns the string representation -func (s ScheduledInstanceRecurrence) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScheduledInstanceRecurrence) GoString() string { - return s.String() -} - -// Describes the recurring schedule for a Scheduled Instance. -type ScheduledInstanceRecurrenceRequest struct { - _ struct{} `type:"structure"` - - // The frequency (Daily, Weekly, or Monthly). - Frequency *string `type:"string"` - - // The interval quantity. The interval unit depends on the value of Frequency. - // For example, every 2 weeks or every 2 months. - Interval *int64 `type:"integer"` - - // The days. For a monthly schedule, this is one or more days of the month (1-31). - // For a weekly schedule, this is one or more days of the week (1-7, where 1 - // is Sunday). You can't specify this value with a daily schedule. If the occurrence - // is relative to the end of the month, you can specify only a single day. - OccurrenceDays []*int64 `locationName:"OccurrenceDay" locationNameList:"OccurenceDay" type:"list"` - - // Indicates whether the occurrence is relative to the end of the specified - // week or month. You can't specify this value with a daily schedule. - OccurrenceRelativeToEnd *bool `type:"boolean"` - - // The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required - // for a monthly schedule. You can't specify DayOfWeek with a weekly schedule. - // You can't specify this value with a daily schedule. - OccurrenceUnit *string `type:"string"` -} - -// String returns the string representation -func (s ScheduledInstanceRecurrenceRequest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScheduledInstanceRecurrenceRequest) GoString() string { - return s.String() -} - -// Describes a block device mapping for a Scheduled Instance. -type ScheduledInstancesBlockDeviceMapping struct { - _ struct{} `type:"structure"` - - // The device name exposed to the instance (for example, /dev/sdh or xvdh). - DeviceName *string `type:"string"` - - // Parameters used to set up EBS volumes automatically when the instance is - // launched. - Ebs *ScheduledInstancesEbs `type:"structure"` - - // Suppresses the specified device included in the block device mapping of the - // AMI. - NoDevice *string `type:"string"` - - // The virtual device name (ephemeralN). Instance store volumes are numbered - // starting from 0. An instance type with two available instance store volumes - // can specify mappings for ephemeral0 and ephemeral1.The number of available - // instance store volumes depends on the instance type. After you connect to - // the instance, you must mount the volume. - // - // Constraints: For M3 instances, you must specify instance store volumes in - // the block device mapping for the instance. When you launch an M3 instance, - // we ignore any instance store volumes specified in the block device mapping - // for the AMI. - VirtualName *string `type:"string"` -} - -// String returns the string representation -func (s ScheduledInstancesBlockDeviceMapping) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScheduledInstancesBlockDeviceMapping) GoString() string { - return s.String() -} - -// Describes an EBS volume for a Scheduled Instance. -type ScheduledInstancesEbs struct { - _ struct{} `type:"structure"` - - // Indicates whether the volume is deleted on instance termination. - DeleteOnTermination *bool `type:"boolean"` - - // Indicates whether the volume is encrypted. You can attached encrypted volumes - // only to instances that support them. - Encrypted *bool `type:"boolean"` - - // The number of I/O operations per second (IOPS) that the volume supports. - // For io1 volumes, this represents the number of IOPS that are provisioned - // for the volume. For gp2 volumes, this represents the baseline performance - // of the volume and the rate at which the volume accumulates I/O credits for - // bursting. For more information about gp2 baseline performance, I/O credits, - // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) - // in the Amazon Elastic Compute Cloud User Guide. - // - // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for - // gp2 volumes. - // - // Condition: This parameter is required for requests to create io1volumes; - // it is not used in requests to create gp2, st1, sc1, or standard volumes. - Iops *int64 `type:"integer"` - - // The ID of the snapshot. - SnapshotId *string `type:"string"` - - // The size of the volume, in GiB. - // - // Default: If you're creating the volume from a snapshot and don't specify - // a volume size, the default is the snapshot size. - VolumeSize *int64 `type:"integer"` - - // The volume type. gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, - // Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for Magnetic. - // - // Default: standard - VolumeType *string `type:"string"` -} - -// String returns the string representation -func (s ScheduledInstancesEbs) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScheduledInstancesEbs) GoString() string { - return s.String() -} - -// Describes an IAM instance profile for a Scheduled Instance. -type ScheduledInstancesIamInstanceProfile struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN). - Arn *string `type:"string"` - - // The name. - Name *string `type:"string"` -} - -// String returns the string representation -func (s ScheduledInstancesIamInstanceProfile) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScheduledInstancesIamInstanceProfile) GoString() string { - return s.String() -} - -// Describes the launch specification for a Scheduled Instance. -// -// If you are launching the Scheduled Instance in EC2-VPC, you must specify -// the ID of the subnet. You can specify the subnet using either SubnetId or -// NetworkInterface. -type ScheduledInstancesLaunchSpecification struct { - _ struct{} `type:"structure"` - - // One or more block device mapping entries. - BlockDeviceMappings []*ScheduledInstancesBlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"` - - // Indicates whether the instances are optimized for EBS I/O. This optimization - // provides dedicated throughput to Amazon EBS and an optimized configuration - // stack to provide optimal EBS I/O performance. This optimization isn't available - // with all instance types. Additional usage charges apply when using an EBS-optimized - // instance. - // - // Default: false - EbsOptimized *bool `type:"boolean"` - - // The IAM instance profile. - IamInstanceProfile *ScheduledInstancesIamInstanceProfile `type:"structure"` - - // The ID of the Amazon Machine Image (AMI). - ImageId *string `type:"string" required:"true"` - - // The instance type. - InstanceType *string `type:"string"` - - // The ID of the kernel. - KernelId *string `type:"string"` - - // The name of the key pair. - KeyName *string `type:"string"` - - // Enable or disable monitoring for the instances. - Monitoring *ScheduledInstancesMonitoring `type:"structure"` - - // One or more network interfaces. - NetworkInterfaces []*ScheduledInstancesNetworkInterface `locationName:"NetworkInterface" locationNameList:"NetworkInterface" type:"list"` - - // The placement information. - Placement *ScheduledInstancesPlacement `type:"structure"` - - // The ID of the RAM disk. - RamdiskId *string `type:"string"` - - // The IDs of one or more security groups. - SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"` + // VPC, you must use security group IDs instead. + // + // Default: Amazon EC2 uses the default security group. + SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"` - // The ID of the subnet in which to launch the instances. + // [EC2-VPC] The ID of the subnet to launch the instance into. SubnetId *string `type:"string"` - // The base64-encoded MIME user data. + // The Base64-encoded MIME user data for the instances. UserData *string `type:"string"` -} - -// String returns the string representation -func (s ScheduledInstancesLaunchSpecification) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScheduledInstancesLaunchSpecification) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ScheduledInstancesLaunchSpecification) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ScheduledInstancesLaunchSpecification"} - if s.ImageId == nil { - invalidParams.Add(request.NewErrParamRequired("ImageId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataRunInstancesInput `json:"-" xml:"-"` } -// Describes whether monitoring is enabled for a Scheduled Instance. -type ScheduledInstancesMonitoring struct { - _ struct{} `type:"structure"` - - // Indicates whether monitoring is enabled. - Enabled *bool `type:"boolean"` +type metadataRunInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ScheduledInstancesMonitoring) String() string { +func (s RunInstancesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ScheduledInstancesMonitoring) GoString() string { +func (s RunInstancesInput) GoString() string { return s.String() } -// Describes a network interface for a Scheduled Instance. -type ScheduledInstancesNetworkInterface struct { - _ struct{} `type:"structure"` - - // Indicates whether to assign a public IP address to instances launched in - // a VPC. The public IP address can only be assigned to a network interface - // for eth0, and can only be assigned to a new network interface, not an existing - // one. You cannot specify more than one network interface in the request. If - // launching into a default subnet, the default value is true. - AssociatePublicIpAddress *bool `type:"boolean"` - - // Indicates whether to delete the interface when the instance is terminated. - DeleteOnTermination *bool `type:"boolean"` - - // The description. - Description *string `type:"string"` - - // The index of the device for the network interface attachment. - DeviceIndex *int64 `type:"integer"` - - // The IDs of one or more security groups. - Groups []*string `locationName:"Group" locationNameList:"SecurityGroupId" type:"list"` - - // The ID of the network interface. - NetworkInterfaceId *string `type:"string"` - - // The IP address of the network interface within the subnet. - PrivateIpAddress *string `type:"string"` - - // The private IP addresses. - PrivateIpAddressConfigs []*ScheduledInstancesPrivateIpAddressConfig `locationName:"PrivateIpAddressConfig" locationNameList:"PrivateIpAddressConfigSet" type:"list"` +// Describes the monitoring for the instance. +type RunInstancesMonitoringEnabled struct { + // Indicates whether monitoring is enabled for the instance. + Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` - // The number of secondary private IP addresses. - SecondaryPrivateIpAddressCount *int64 `type:"integer"` + metadataRunInstancesMonitoringEnabled `json:"-" xml:"-"` +} - // The ID of the subnet. - SubnetId *string `type:"string"` +type metadataRunInstancesMonitoringEnabled struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ScheduledInstancesNetworkInterface) String() string { +func (s RunInstancesMonitoringEnabled) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ScheduledInstancesNetworkInterface) GoString() string { +func (s RunInstancesMonitoringEnabled) GoString() string { return s.String() } -// Describes the placement for a Scheduled Instance. -type ScheduledInstancesPlacement struct { - _ struct{} `type:"structure"` - - // The Availability Zone. - AvailabilityZone *string `type:"string"` +// Describes the storage parameters for S3 and S3 buckets for an instance store-backed +// AMI. +type S3Storage struct { + // The access key ID of the owner of the bucket. Before you specify a value + // for your access key ID, review and follow the guidance in Best Practices + // for Managing AWS Access Keys (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html). + AWSAccessKeyId *string `type:"string"` - // The name of the placement group. - GroupName *string `type:"string"` -} + // The bucket in which to store the AMI. You can specify a bucket that you already + // own or a new bucket that Amazon EC2 creates on your behalf. If you specify + // a bucket that belongs to someone else, Amazon EC2 returns an error. + Bucket *string `locationName:"bucket" type:"string"` -// String returns the string representation -func (s ScheduledInstancesPlacement) String() string { - return awsutil.Prettify(s) -} + // The beginning of the file name of the AMI. + Prefix *string `locationName:"prefix" type:"string"` -// GoString returns the string representation -func (s ScheduledInstancesPlacement) GoString() string { - return s.String() -} + // A Base64-encoded Amazon S3 upload policy that gives Amazon EC2 permission + // to upload items into Amazon S3 on your behalf. + UploadPolicy []byte `locationName:"uploadPolicy" type:"blob"` -// Describes a private IP address for a Scheduled Instance. -type ScheduledInstancesPrivateIpAddressConfig struct { - _ struct{} `type:"structure"` + // The signature of the Base64 encoded JSON document. + UploadPolicySignature *string `locationName:"uploadPolicySignature" type:"string"` - // Indicates whether this is a primary IP address. Otherwise, this is a secondary - // IP address. - Primary *bool `type:"boolean"` + metadataS3Storage `json:"-" xml:"-"` +} - // The IP address. - PrivateIpAddress *string `type:"string"` +type metadataS3Storage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ScheduledInstancesPrivateIpAddressConfig) String() string { +func (s S3Storage) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ScheduledInstancesPrivateIpAddressConfig) GoString() string { +func (s S3Storage) GoString() string { return s.String() } // Describes a security group type SecurityGroup struct { - _ struct{} `type:"structure"` - // A description of the security group. Description *string `locationName:"groupDescription" type:"string"` @@ -25447,115 +21752,26 @@ type SecurityGroup struct { // [EC2-VPC] The ID of the VPC for the security group. VpcId *string `locationName:"vpcId" type:"string"` -} - -// String returns the string representation -func (s SecurityGroup) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SecurityGroup) GoString() string { - return s.String() -} - -// Describes a VPC with a security group that references your security group. -type SecurityGroupReference struct { - _ struct{} `type:"structure"` - - // The ID of your security group. - GroupId *string `locationName:"groupId" type:"string" required:"true"` - - // The ID of the VPC with the referencing security group. - ReferencingVpcId *string `locationName:"referencingVpcId" type:"string" required:"true"` - // The ID of the VPC peering connection. - VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` -} - -// String returns the string representation -func (s SecurityGroupReference) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SecurityGroupReference) GoString() string { - return s.String() -} - -// Describes the time period for a Scheduled Instance to start its first schedule. -// The time period must span less than one day. -type SlotDateTimeRangeRequest struct { - _ struct{} `type:"structure"` - - // The earliest date and time, in UTC, for the Scheduled Instance to start. - EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` - - // The latest date and time, in UTC, for the Scheduled Instance to start. This - // value must be later than or equal to the earliest date and at most three - // months in the future. - LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` -} - -// String returns the string representation -func (s SlotDateTimeRangeRequest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SlotDateTimeRangeRequest) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SlotDateTimeRangeRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SlotDateTimeRangeRequest"} - if s.EarliestTime == nil { - invalidParams.Add(request.NewErrParamRequired("EarliestTime")) - } - if s.LatestTime == nil { - invalidParams.Add(request.NewErrParamRequired("LatestTime")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataSecurityGroup `json:"-" xml:"-"` } -// Describes the time period for a Scheduled Instance to start its first schedule. -type SlotStartTimeRangeRequest struct { - _ struct{} `type:"structure"` - - // The earliest date and time, in UTC, for the Scheduled Instance to start. - EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The latest date and time, in UTC, for the Scheduled Instance to start. - LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` +type metadataSecurityGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s SlotStartTimeRangeRequest) String() string { +func (s SecurityGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SlotStartTimeRangeRequest) GoString() string { +func (s SecurityGroup) GoString() string { return s.String() } // Describes a snapshot. type Snapshot struct { - _ struct{} `type:"structure"` - - // The data encryption key identifier for the snapshot. This value is a unique - // identifier that corresponds to the data encryption key that was used to encrypt - // the original volume or snapshot copy. Because data encryption keys are inherited - // by volumes created from snapshots, and vice versa, if snapshots share the - // same data encryption key identifier, then they belong to the same volume/snapshot - // lineage. This parameter is only returned by the DescribeSnapshots API operation. - DataEncryptionKeyId *string `locationName:"dataEncryptionKeyId" type:"string"` - // The description for the snapshot. Description *string `locationName:"description" type:"string"` @@ -25577,8 +21793,7 @@ type Snapshot struct { // The progress of the snapshot, as a percentage. Progress *string `locationName:"progress" type:"string"` - // The ID of the snapshot. Each snapshot receives a unique identifier when it - // is created. + // The ID of the snapshot. SnapshotId *string `locationName:"snapshotId" type:"string"` // The time stamp when the snapshot was initiated. @@ -25587,21 +21802,20 @@ type Snapshot struct { // The snapshot state. State *string `locationName:"status" type:"string" enum:"SnapshotState"` - // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy - // operation fails (for example, if the proper AWS Key Management Service (AWS - // KMS) permissions are not obtained) this field displays error state details - // to help you diagnose why the error occurred. This parameter is only returned - // by the DescribeSnapshots API operation. - StateMessage *string `locationName:"statusMessage" type:"string"` - // Any tags assigned to the snapshot. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` - // The ID of the volume that was used to create the snapshot. + // The ID of the volume. VolumeId *string `locationName:"volumeId" type:"string"` // The size of the volume, in GiB. VolumeSize *int64 `locationName:"volumeSize" type:"integer"` + + metadataSnapshot `json:"-" xml:"-"` +} + +type metadataSnapshot struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -25616,8 +21830,6 @@ func (s Snapshot) GoString() string { // Describes the snapshot created from the imported disk. type SnapshotDetail struct { - _ struct{} `type:"structure"` - // A description for the snapshot. Description *string `locationName:"description" type:"string"` @@ -25645,8 +21857,14 @@ type SnapshotDetail struct { // The URL used to access the disk image. Url *string `locationName:"url" type:"string"` - // The S3 bucket for the disk image. + // Describes the S3 bucket for the disk image. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"` + + metadataSnapshotDetail `json:"-" xml:"-"` +} + +type metadataSnapshotDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -25661,8 +21879,6 @@ func (s SnapshotDetail) GoString() string { // The disk container object for the import snapshot request. type SnapshotDiskContainer struct { - _ struct{} `type:"structure"` - // The description of the disk image being imported. Description *string `type:"string"` @@ -25675,8 +21891,14 @@ type SnapshotDiskContainer struct { // a https URL (https://..) or an Amazon S3 URL (s3://..). Url *string `type:"string"` - // The S3 bucket for the disk image. + // Describes the S3 bucket for the disk image. UserBucket *UserBucket `type:"structure"` + + metadataSnapshotDiskContainer `json:"-" xml:"-"` +} + +type metadataSnapshotDiskContainer struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -25691,8 +21913,6 @@ func (s SnapshotDiskContainer) GoString() string { // Details about the import snapshot task. type SnapshotTaskDetail struct { - _ struct{} `type:"structure"` - // The description of the snapshot. Description *string `locationName:"description" type:"string"` @@ -25719,6 +21939,12 @@ type SnapshotTaskDetail struct { // The S3 bucket for the disk image. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"` + + metadataSnapshotTaskDetail `json:"-" xml:"-"` +} + +type metadataSnapshotTaskDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -25731,14 +21957,12 @@ func (s SnapshotTaskDetail) GoString() string { return s.String() } -// Describes the data feed for a Spot instance. +// Describes the data feed for a Spot Instance. type SpotDatafeedSubscription struct { - _ struct{} `type:"structure"` - - // The Amazon S3 bucket where the Spot instance data feed is located. + // The Amazon S3 bucket where the Spot Instance data feed is located. Bucket *string `locationName:"bucket" type:"string"` - // The fault codes for the Spot instance request, if any. + // The fault codes for the Spot Instance request, if any. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"` // The AWS account ID of the account. @@ -25747,8 +21971,14 @@ type SpotDatafeedSubscription struct { // The prefix that is prepended to data feed files. Prefix *string `locationName:"prefix" type:"string"` - // The state of the Spot instance data feed subscription. + // The state of the Spot Instance data feed subscription. State *string `locationName:"state" type:"string" enum:"DatafeedSubscriptionState"` + + metadataSpotDatafeedSubscription `json:"-" xml:"-"` +} + +type metadataSpotDatafeedSubscription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -25761,10 +21991,8 @@ func (s SpotDatafeedSubscription) GoString() string { return s.String() } -// Describes the launch specification for one or more Spot instances. +// Describes the launch specification for one or more Spot Instances. type SpotFleetLaunchSpecification struct { - _ struct{} `type:"structure"` - // Deprecated. AddressingType *string `locationName:"addressingType" type:"string"` @@ -25807,9 +22035,10 @@ type SpotFleetLaunchSpecification struct { // The ID of the RAM disk. RamdiskId *string `locationName:"ramdiskId" type:"string"` - // One or more security groups. When requesting instances in a VPC, you must - // specify the IDs of the security groups. When requesting instances in EC2-Classic, - // you can specify the names or the IDs of the security groups. + // One or more security groups. To request an instance in a nondefault VPC, + // you must specify the ID of the security group. To request an instance in + // EC2-Classic or a default VPC, you can specify the name or the ID of the security + // group. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"` // The bid price per unit hour for the specified instance type. If this value @@ -25818,8 +22047,7 @@ type SpotFleetLaunchSpecification struct { // value of WeightedCapacity. SpotPrice *string `locationName:"spotPrice" type:"string"` - // The ID of the subnet in which to launch the instances. To specify multiple - // subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08". + // The ID of the subnet in which to launch the instances. SubnetId *string `locationName:"subnetId" type:"string"` // The Base64-encoded MIME user data to make available to the instances. @@ -25833,6 +22061,12 @@ type SpotFleetLaunchSpecification struct { // the number of instances to the next whole number. If this value is not specified, // the default is 1. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"` + + metadataSpotFleetLaunchSpecification `json:"-" xml:"-"` +} + +type metadataSpotFleetLaunchSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -25845,34 +22079,18 @@ func (s SpotFleetLaunchSpecification) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SpotFleetLaunchSpecification) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SpotFleetLaunchSpecification"} - if s.NetworkInterfaces != nil { - for i, v := range s.NetworkInterfaces { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes whether monitoring is enabled. type SpotFleetMonitoring struct { - _ struct{} `type:"structure"` - // Enables monitoring for the instance. // // Default: false Enabled *bool `locationName:"enabled" type:"boolean"` + + metadataSpotFleetMonitoring `json:"-" xml:"-"` +} + +type metadataSpotFleetMonitoring struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -25887,11 +22105,6 @@ func (s SpotFleetMonitoring) GoString() string { // Describes a Spot fleet request. type SpotFleetRequestConfig struct { - _ struct{} `type:"structure"` - - // The creation date and time of the request. - CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601" required:"true"` - // Information about the configuration of the Spot fleet request. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"` @@ -25900,6 +22113,12 @@ type SpotFleetRequestConfig struct { // The state of the Spot fleet request. SpotFleetRequestState *string `locationName:"spotFleetRequestState" type:"string" required:"true" enum:"BatchState"` + + metadataSpotFleetRequestConfig `json:"-" xml:"-"` +} + +type metadataSpotFleetRequestConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -25914,33 +22133,18 @@ func (s SpotFleetRequestConfig) GoString() string { // Describes the configuration of a Spot fleet request. type SpotFleetRequestConfigData struct { - _ struct{} `type:"structure"` - - // Indicates how to allocate the target capacity across the Spot pools specified - // by the Spot fleet request. The default is lowestPrice. - AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"AllocationStrategy"` - // A unique, case-sensitive identifier you provide to ensure idempotency of // your listings. This helps avoid duplicate listings. For more information, // see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string `locationName:"clientToken" type:"string"` - // Indicates whether running Spot instances should be terminated if the target - // capacity of the Spot fleet request is decreased below the current size of - // the Spot fleet. - ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"` - - // The number of units fulfilled by this request compared to the set target - // capacity. - FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"` - - // Grants the Spot fleet permission to terminate Spot instances on your behalf - // when you cancel its Spot fleet request using CancelSpotFleetRequests or when + // Grants the Spot fleet service permission to terminate instances on your behalf + // when you cancel a Spot fleet request using CancelSpotFleetRequests or when // the Spot fleet request expires, if you set terminateInstancesWithExpiration. IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"` - // Information about the launch specifications for the Spot fleet request. - LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" min:"1" type:"list" required:"true"` + // Information about the launch specifications for the instances. + LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" type:"list" required:"true"` // The bid price per unit hour. SpotPrice *string `locationName:"spotPrice" type:"string" required:"true"` @@ -25950,28 +22154,24 @@ type SpotFleetRequestConfigData struct { // your application workload, such as vCPUs, memory, or I/O. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"` - // Indicates whether running Spot instances should be terminated when the Spot - // fleet request expires. + // Indicates whether running instances should be terminated when the Spot fleet + // request expires. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"` - // The type of request. Indicates whether the fleet will only request the target - // capacity or also attempt to maintain it. When you request a certain target - // capacity, the fleet will only place the required bids. It will not attempt - // to replenish Spot instances if capacity is diminished, nor will it submit - // bids in alternative Spot pools if capacity is not available. When you want - // to maintain a certain target capacity, fleet will place the required bids - // to meet this target capacity. It will also automatically replenish any interrupted - // instances. Default: maintain. - Type *string `locationName:"type" type:"string" enum:"FleetType"` - // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). // The default is to start fulfilling the request immediately. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"` // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). - // At this point, no new Spot instance requests are placed or enabled to fulfill + // At this point, no new Spot Instance requests are placed or enabled to fulfill // the request. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"` + + metadataSpotFleetRequestConfigData `json:"-" xml:"-"` +} + +type metadataSpotFleetRequestConfigData struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -25984,69 +22184,25 @@ func (s SpotFleetRequestConfigData) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SpotFleetRequestConfigData) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SpotFleetRequestConfigData"} - if s.IamFleetRole == nil { - invalidParams.Add(request.NewErrParamRequired("IamFleetRole")) - } - if s.LaunchSpecifications == nil { - invalidParams.Add(request.NewErrParamRequired("LaunchSpecifications")) - } - if s.LaunchSpecifications != nil && len(s.LaunchSpecifications) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LaunchSpecifications", 1)) - } - if s.SpotPrice == nil { - invalidParams.Add(request.NewErrParamRequired("SpotPrice")) - } - if s.TargetCapacity == nil { - invalidParams.Add(request.NewErrParamRequired("TargetCapacity")) - } - if s.LaunchSpecifications != nil { - for i, v := range s.LaunchSpecifications { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchSpecifications", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes a Spot instance request. +// Describe a Spot Instance request. type SpotInstanceRequest struct { - _ struct{} `type:"structure"` - - // If you specified a duration and your Spot instance request was fulfilled, - // this is the fixed hourly price in effect for the Spot instance while it runs. - ActualBlockHourlyPrice *string `locationName:"actualBlockHourlyPrice" type:"string"` - // The Availability Zone group. If you specify the same Availability Zone group - // for all Spot instance requests, all Spot instances are launched in the same + // for all Spot Instance requests, all Spot Instances are launched in the same // Availability Zone. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"` - // The duration for the Spot instance, in minutes. - BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"` - - // The date and time when the Spot instance request was created, in UTC format + // The date and time when the Spot Instance request was created, in UTC format // (for example, YYYY-MM-DDTHH:MM:SSZ). CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"` - // The fault codes for the Spot instance request, if any. + // The fault codes for the Spot Instance request, if any. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"` - // The instance ID, if an instance has been launched to fulfill the Spot instance + // The instance ID, if an instance has been launched to fulfill the Spot Instance // request. InstanceId *string `locationName:"instanceId" type:"string"` - // The instance launch group. Launch groups are Spot instances that launch together + // The instance launch group. Launch groups are Spot Instances that launch together // and terminate together. LaunchGroup *string `locationName:"launchGroup" type:"string"` @@ -26056,40 +22212,49 @@ type SpotInstanceRequest struct { // The Availability Zone in which the bid is launched. LaunchedAvailabilityZone *string `locationName:"launchedAvailabilityZone" type:"string"` - // The product description associated with the Spot instance. + // The product description associated with the Spot Instance. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"` - // The ID of the Spot instance request. + // The ID of the Spot Instance request. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"` - // The maximum hourly price (bid) for the Spot instance launched to fulfill + // The maximum hourly price (bid) for any Spot Instance launched to fulfill // the request. SpotPrice *string `locationName:"spotPrice" type:"string"` - // The state of the Spot instance request. Spot bid status information can help - // you track your Spot instance requests. For more information, see Spot Bid + // The state of the Spot Instance request. Spot bid status information can help + // you track your Spot Instance requests. For more information, see Spot Bid // Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) // in the Amazon Elastic Compute Cloud User Guide. State *string `locationName:"state" type:"string" enum:"SpotInstanceState"` - // The status code and status message describing the Spot instance request. + // The status code and status message describing the Spot Instance request. Status *SpotInstanceStatus `locationName:"status" type:"structure"` // Any tags assigned to the resource. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` - // The Spot instance request type. + // The Spot Instance request type. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"` // The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). - // The request becomes active at this date and time. + // If this is a one-time request, the request becomes active at this date and + // time and remains active until all instances launch, the request expires, + // or the request is canceled. If the request is persistent, the request becomes + // active at this date and time and remains active until it expires or is canceled. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"` // The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). - // If this is a one-time request, it remains active until all instances launch, - // the request is canceled, or this date is reached. If the request is persistent, - // it remains active until it is canceled or this date is reached. + // If this is a one-time request, the request remains active until all instances + // launch, the request is canceled, or this date is reached. If the request + // is persistent, it remains active until it is canceled or this date is reached. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"` + + metadataSpotInstanceRequest `json:"-" xml:"-"` +} + +type metadataSpotInstanceRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26102,15 +22267,19 @@ func (s SpotInstanceRequest) GoString() string { return s.String() } -// Describes a Spot instance state change. +// Describes a Spot Instance state change. type SpotInstanceStateFault struct { - _ struct{} `type:"structure"` - - // The reason code for the Spot instance state change. + // The reason code for the Spot Instance state change. Code *string `locationName:"code" type:"string"` - // The message for the Spot instance state change. + // The message for the Spot Instance state change. Message *string `locationName:"message" type:"string"` + + metadataSpotInstanceStateFault `json:"-" xml:"-"` +} + +type metadataSpotInstanceStateFault struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26123,12 +22292,9 @@ func (s SpotInstanceStateFault) GoString() string { return s.String() } -// Describes the status of a Spot instance request. +// Describes the status of a Spot Instance request. type SpotInstanceStatus struct { - _ struct{} `type:"structure"` - - // The status code. For a list of status codes, see Spot Bid Status Codes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html#spot-instance-bid-status-understand) - // in the Amazon Elastic Compute Cloud User Guide. + // The status code. Code *string `locationName:"code" type:"string"` // The description for the status code. @@ -26137,6 +22303,12 @@ type SpotInstanceStatus struct { // The date and time of the most recent status update, in UTC format (for example, // YYYY-MM-DDTHH:MM:SSZ). UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"` + + metadataSpotInstanceStatus `json:"-" xml:"-"` +} + +type metadataSpotInstanceStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26149,18 +22321,19 @@ func (s SpotInstanceStatus) GoString() string { return s.String() } -// Describes Spot instance placement. +// Describes Spot Instance placement. type SpotPlacement struct { - _ struct{} `type:"structure"` - // The Availability Zone. - // - // [Spot fleet only] To specify multiple Availability Zones, separate them - // using commas; for example, "us-west-2a, us-west-2b". AvailabilityZone *string `locationName:"availabilityZone" type:"string"` // The name of the placement group (for cluster instances). GroupName *string `locationName:"groupName" type:"string"` + + metadataSpotPlacement `json:"-" xml:"-"` +} + +type metadataSpotPlacement struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26173,11 +22346,9 @@ func (s SpotPlacement) GoString() string { return s.String() } -// Describes the maximum hourly price (bid) for any Spot instance launched to +// Describes the maximum hourly price (bid) for any Spot Instance launched to // fulfill the request. type SpotPrice struct { - _ struct{} `type:"structure"` - // The Availability Zone. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` @@ -26187,98 +22358,30 @@ type SpotPrice struct { // A general description of the AMI. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"` - // The maximum price (bid) that you are willing to pay for a Spot instance. + // The maximum price (bid) that you are willing to pay for a Spot Instance. SpotPrice *string `locationName:"spotPrice" type:"string"` - // The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). - Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"` -} - -// String returns the string representation -func (s SpotPrice) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SpotPrice) GoString() string { - return s.String() -} - -// Describes a stale rule in a security group. -type StaleIpPermission struct { - _ struct{} `type:"structure"` - - // The start of the port range for the TCP and UDP protocols, or an ICMP type - // number. A value of -1 indicates all ICMP types. - FromPort *int64 `locationName:"fromPort" type:"integer"` - - // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers) - // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). - IpProtocol *string `locationName:"ipProtocol" type:"string"` - - // One or more IP ranges. Not applicable for stale security group rules. - IpRanges []*string `locationName:"ipRanges" locationNameList:"item" type:"list"` - - // One or more prefix list IDs for an AWS service. Not applicable for stale - // security group rules. - PrefixListIds []*string `locationName:"prefixListIds" locationNameList:"item" type:"list"` - - // The end of the port range for the TCP and UDP protocols, or an ICMP type - // number. A value of -1 indicates all ICMP types. - ToPort *int64 `locationName:"toPort" type:"integer"` - - // One or more security group pairs. Returns the ID of the referenced security - // group and VPC, and the ID and status of the VPC peering connection. - UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"` -} - -// String returns the string representation -func (s StaleIpPermission) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StaleIpPermission) GoString() string { - return s.String() -} - -// Describes a stale security group (a security group that contains stale rules). -type StaleSecurityGroup struct { - _ struct{} `type:"structure"` - - // The description of the security group. - Description *string `locationName:"description" type:"string"` - - // The ID of the security group. - GroupId *string `locationName:"groupId" type:"string" required:"true"` - - // The name of the security group. - GroupName *string `locationName:"groupName" type:"string"` - - // Information about the stale inbound rules in the security group. - StaleIpPermissions []*StaleIpPermission `locationName:"staleIpPermissions" locationNameList:"item" type:"list"` + // The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). + Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"` - // Information about the stale outbound rules in the security group. - StaleIpPermissionsEgress []*StaleIpPermission `locationName:"staleIpPermissionsEgress" locationNameList:"item" type:"list"` + metadataSpotPrice `json:"-" xml:"-"` +} - // The ID of the VPC for the security group. - VpcId *string `locationName:"vpcId" type:"string"` +type metadataSpotPrice struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s StaleSecurityGroup) String() string { +func (s SpotPrice) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StaleSecurityGroup) GoString() string { +func (s SpotPrice) GoString() string { return s.String() } -// Contains the parameters for StartInstances. type StartInstancesInput struct { - _ struct{} `type:"structure"` - // Reserved. AdditionalInfo *string `locationName:"additionalInfo" type:"string"` @@ -26290,6 +22393,12 @@ type StartInstancesInput struct { // One or more instance IDs. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"` + + metadataStartInstancesInput `json:"-" xml:"-"` +} + +type metadataStartInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26302,25 +22411,15 @@ func (s StartInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartInstancesInput"} - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of StartInstances. type StartInstancesOutput struct { - _ struct{} `type:"structure"` - // Information about one or more started instances. StartingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"` + + metadataStartInstancesOutput `json:"-" xml:"-"` +} + +type metadataStartInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26335,14 +22434,12 @@ func (s StartInstancesOutput) GoString() string { // Describes a state change. type StateReason struct { - _ struct{} `type:"structure"` - // The reason code for the state change. Code *string `locationName:"code" type:"string"` // The message for the state change. // - // Server.SpotInstanceTermination: A Spot instance was terminated due to an + // Server.SpotInstanceTermination: A Spot Instance was terminated due to an // increase in the market price. // // Server.InternalError: An internal error occurred during instance launch, @@ -26360,11 +22457,16 @@ type StateReason struct { // Client.UserInitiatedShutdown: The instance was shut down using the Amazon // EC2 API. // - // Client.VolumeLimitExceeded: The limit on the number of EBS volumes or total - // storage was exceeded. Decrease usage or request an increase in your limits. + // Client.VolumeLimitExceeded: The volume limit was exceeded. // // Client.InvalidSnapshot.NotFound: The specified snapshot was not found. Message *string `locationName:"message" type:"string"` + + metadataStateReason `json:"-" xml:"-"` +} + +type metadataStateReason struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26377,10 +22479,7 @@ func (s StateReason) GoString() string { return s.String() } -// Contains the parameters for StopInstances. type StopInstancesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -26397,6 +22496,12 @@ type StopInstancesInput struct { // One or more instance IDs. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"` + + metadataStopInstancesInput `json:"-" xml:"-"` +} + +type metadataStopInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26409,25 +22514,15 @@ func (s StopInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopInstancesInput"} - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of StopInstances. type StopInstancesOutput struct { - _ struct{} `type:"structure"` - // Information about one or more stopped instances. StoppingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"` + + metadataStopInstancesOutput `json:"-" xml:"-"` +} + +type metadataStopInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26442,10 +22537,14 @@ func (s StopInstancesOutput) GoString() string { // Describes the storage location for an instance store-backed AMI. type Storage struct { - _ struct{} `type:"structure"` - // An Amazon S3 storage location. S3 *S3Storage `type:"structure"` + + metadataStorage `json:"-" xml:"-"` +} + +type metadataStorage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26460,8 +22559,6 @@ func (s Storage) GoString() string { // Describes a subnet. type Subnet struct { - _ struct{} `type:"structure"` - // The Availability Zone of the subnet. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` @@ -26489,6 +22586,12 @@ type Subnet struct { // The ID of the VPC the subnet is in. VpcId *string `locationName:"vpcId" type:"string"` + + metadataSubnet `json:"-" xml:"-"` +} + +type metadataSubnet struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26503,8 +22606,6 @@ func (s Subnet) GoString() string { // Describes a tag. type Tag struct { - _ struct{} `type:"structure"` - // The key of the tag. // // Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode @@ -26516,6 +22617,12 @@ type Tag struct { // Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode // characters. Value *string `locationName:"value" type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26530,8 +22637,6 @@ func (s Tag) GoString() string { // Describes a tag. type TagDescription struct { - _ struct{} `type:"structure"` - // The tag key. Key *string `locationName:"key" type:"string"` @@ -26543,6 +22648,12 @@ type TagDescription struct { // The tag value. Value *string `locationName:"value" type:"string"` + + metadataTagDescription `json:"-" xml:"-"` +} + +type metadataTagDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26555,10 +22666,7 @@ func (s TagDescription) GoString() string { return s.String() } -// Contains the parameters for TerminateInstances. type TerminateInstancesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -26567,6 +22675,12 @@ type TerminateInstancesInput struct { // One or more instance IDs. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"` + + metadataTerminateInstancesInput `json:"-" xml:"-"` +} + +type metadataTerminateInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26579,25 +22693,15 @@ func (s TerminateInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TerminateInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TerminateInstancesInput"} - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of TerminateInstances. type TerminateInstancesOutput struct { - _ struct{} `type:"structure"` - // Information about one or more terminated instances. TerminatingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"` + + metadataTerminateInstancesOutput `json:"-" xml:"-"` +} + +type metadataTerminateInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26610,16 +22714,19 @@ func (s TerminateInstancesOutput) GoString() string { return s.String() } -// Contains the parameters for UnassignPrivateIpAddresses. type UnassignPrivateIpAddressesInput struct { - _ struct{} `type:"structure"` - // The ID of the network interface. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"` // The secondary private IP addresses to unassign from the network interface. // You can specify this option multiple times to unassign more than one IP address. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list" required:"true"` + + metadataUnassignPrivateIpAddressesInput `json:"-" xml:"-"` +} + +type metadataUnassignPrivateIpAddressesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26632,24 +22739,12 @@ func (s UnassignPrivateIpAddressesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UnassignPrivateIpAddressesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UnassignPrivateIpAddressesInput"} - if s.NetworkInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) - } - if s.PrivateIpAddresses == nil { - invalidParams.Add(request.NewErrParamRequired("PrivateIpAddresses")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UnassignPrivateIpAddressesOutput struct { + metadataUnassignPrivateIpAddressesOutput `json:"-" xml:"-"` } -type UnassignPrivateIpAddressesOutput struct { - _ struct{} `type:"structure"` +type metadataUnassignPrivateIpAddressesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26662,10 +22757,7 @@ func (s UnassignPrivateIpAddressesOutput) GoString() string { return s.String() } -// Contains the parameters for UnmonitorInstances. type UnmonitorInstancesInput struct { - _ struct{} `type:"structure"` - // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have // the required permissions, the error response is DryRunOperation. Otherwise, @@ -26674,6 +22766,12 @@ type UnmonitorInstancesInput struct { // One or more instance IDs. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"` + + metadataUnmonitorInstancesInput `json:"-" xml:"-"` +} + +type metadataUnmonitorInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26686,25 +22784,15 @@ func (s UnmonitorInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UnmonitorInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UnmonitorInstancesInput"} - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of UnmonitorInstances. type UnmonitorInstancesOutput struct { - _ struct{} `type:"structure"` - // Monitoring information for one or more instances. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"` + + metadataUnmonitorInstancesOutput `json:"-" xml:"-"` +} + +type metadataUnmonitorInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26719,13 +22807,17 @@ func (s UnmonitorInstancesOutput) GoString() string { // Information about items that were not successfully processed in a batch call. type UnsuccessfulItem struct { - _ struct{} `type:"structure"` - // Information about the error. Error *UnsuccessfulItemError `locationName:"error" type:"structure" required:"true"` // The ID of the resource. ResourceId *string `locationName:"resourceId" type:"string"` + + metadataUnsuccessfulItem `json:"-" xml:"-"` +} + +type metadataUnsuccessfulItem struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26741,13 +22833,17 @@ func (s UnsuccessfulItem) GoString() string { // Information about the error that occurred. For more information about errors, // see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html). type UnsuccessfulItemError struct { - _ struct{} `type:"structure"` - // The error code. Code *string `locationName:"code" type:"string" required:"true"` // The error message accompanying the error code. Message *string `locationName:"message" type:"string" required:"true"` + + metadataUnsuccessfulItemError `json:"-" xml:"-"` +} + +type metadataUnsuccessfulItemError struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26762,13 +22858,17 @@ func (s UnsuccessfulItemError) GoString() string { // Describes the S3 bucket for the disk image. type UserBucket struct { - _ struct{} `type:"structure"` - // The name of the S3 bucket where the disk image is located. S3Bucket *string `type:"string"` - // The file name of the disk image. + // The key for the disk image. S3Key *string `type:"string"` + + metadataUserBucket `json:"-" xml:"-"` +} + +type metadataUserBucket struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26783,13 +22883,17 @@ func (s UserBucket) GoString() string { // Describes the S3 bucket for the disk image. type UserBucketDetails struct { - _ struct{} `type:"structure"` - // The S3 bucket from which the disk image was created. S3Bucket *string `locationName:"s3Bucket" type:"string"` - // The file name of the disk image. + // The key from which the disk image was created. S3Key *string `locationName:"s3Key" type:"string"` + + metadataUserBucketDetails `json:"-" xml:"-"` +} + +type metadataUserBucketDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26804,10 +22908,14 @@ func (s UserBucketDetails) GoString() string { // Describes the user data to be made available to an instance. type UserData struct { - _ struct{} `type:"structure"` - // The Base64-encoded MIME user data for the instance. Data *string `locationName:"data" type:"string"` + + metadataUserData `json:"-" xml:"-"` +} + +type metadataUserData struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26822,31 +22930,22 @@ func (s UserData) GoString() string { // Describes a security group and AWS account ID pair. type UserIdGroupPair struct { - _ struct{} `type:"structure"` - // The ID of the security group. GroupId *string `locationName:"groupId" type:"string"` // The name of the security group. In a request, use this parameter for a security // group in EC2-Classic or a default VPC only. For a security group in a nondefault - // VPC, use the security group ID. + // VPC, use GroupId. GroupName *string `locationName:"groupName" type:"string"` - // The status of a VPC peering connection, if applicable. - PeeringStatus *string `locationName:"peeringStatus" type:"string"` - - // The ID of an AWS account. For a referenced security group in another VPC, - // the account ID of the referenced security group is returned. - // - // [EC2-Classic] Required when adding or removing rules that reference a security - // group in another AWS account. + // The ID of an AWS account. EC2-Classic only. UserId *string `locationName:"userId" type:"string"` - // The ID of the VPC for the referenced security group, if applicable. - VpcId *string `locationName:"vpcId" type:"string"` + metadataUserIdGroupPair `json:"-" xml:"-"` +} - // The ID of the VPC peering connection, if applicable. - VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` +type metadataUserIdGroupPair struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26861,8 +22960,6 @@ func (s UserIdGroupPair) GoString() string { // Describes telemetry for a VPN tunnel. type VgwTelemetry struct { - _ struct{} `type:"structure"` - // The number of accepted routes. AcceptedRouteCount *int64 `locationName:"acceptedRouteCount" type:"integer"` @@ -26878,6 +22975,12 @@ type VgwTelemetry struct { // If an error occurs, a description of the error. StatusMessage *string `locationName:"statusMessage" type:"string"` + + metadataVgwTelemetry `json:"-" xml:"-"` +} + +type metadataVgwTelemetry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26892,8 +22995,6 @@ func (s VgwTelemetry) GoString() string { // Describes a volume. type Volume struct { - _ struct{} `type:"structure"` - // Information about the volume attachments. Attachments []*VolumeAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"` @@ -26907,18 +23008,18 @@ type Volume struct { Encrypted *bool `locationName:"encrypted" type:"boolean"` // The number of I/O operations per second (IOPS) that the volume supports. - // For Provisioned IOPS SSD volumes, this represents the number of IOPS that - // are provisioned for the volume. For General Purpose SSD volumes, this represents + // For Provisioned IOPS (SSD) volumes, this represents the number of IOPS that + // are provisioned for the volume. For General Purpose (SSD) volumes, this represents // the baseline performance of the volume and the rate at which the volume accumulates - // I/O credits for bursting. For more information on General Purpose SSD baseline + // I/O credits for bursting. For more information on General Purpose (SSD) baseline // performance, I/O credits, and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) // in the Amazon Elastic Compute Cloud User Guide. // - // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for - // gp2 volumes. + // Constraint: Range is 100 to 20000 for Provisioned IOPS (SSD) volumes and + // 3 to 10000 for General Purpose (SSD) volumes. // // Condition: This parameter is required for requests to create io1 volumes; - // it is not used in requests to create gp2, st1, sc1, or standard volumes. + // it is not used in requests to create standard or gp2 volumes. Iops *int64 `locationName:"iops" type:"integer"` // The full ARN of the AWS Key Management Service (AWS KMS) customer master @@ -26940,10 +23041,15 @@ type Volume struct { // The ID of the volume. VolumeId *string `locationName:"volumeId" type:"string"` - // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned - // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard - // for Magnetic volumes. + // The volume type. This can be gp2 for General Purpose (SSD) volumes, io1 for + // Provisioned IOPS (SSD) volumes, or standard for Magnetic volumes. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"` + + metadataVolume `json:"-" xml:"-"` +} + +type metadataVolume struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26958,8 +23064,6 @@ func (s Volume) GoString() string { // Describes volume attachment details. type VolumeAttachment struct { - _ struct{} `type:"structure"` - // The time stamp when the attachment initiated. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"` @@ -26977,6 +23081,12 @@ type VolumeAttachment struct { // The ID of the volume. VolumeId *string `locationName:"volumeId" type:"string"` + + metadataVolumeAttachment `json:"-" xml:"-"` +} + +type metadataVolumeAttachment struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -26991,10 +23101,14 @@ func (s VolumeAttachment) GoString() string { // Describes an EBS volume. type VolumeDetail struct { - _ struct{} `type:"structure"` - // The size of the volume, in GiB. Size *int64 `locationName:"size" type:"long" required:"true"` + + metadataVolumeDetail `json:"-" xml:"-"` +} + +type metadataVolumeDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27007,23 +23121,8 @@ func (s VolumeDetail) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *VolumeDetail) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VolumeDetail"} - if s.Size == nil { - invalidParams.Add(request.NewErrParamRequired("Size")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a volume status operation code. type VolumeStatusAction struct { - _ struct{} `type:"structure"` - // The code identifying the operation, for example, enable-volume-io. Code *string `locationName:"code" type:"string"` @@ -27035,6 +23134,12 @@ type VolumeStatusAction struct { // The event type associated with this operation. EventType *string `locationName:"eventType" type:"string"` + + metadataVolumeStatusAction `json:"-" xml:"-"` +} + +type metadataVolumeStatusAction struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27049,13 +23154,17 @@ func (s VolumeStatusAction) GoString() string { // Describes a volume status. type VolumeStatusDetails struct { - _ struct{} `type:"structure"` - // The name of the volume status. Name *string `locationName:"name" type:"string" enum:"VolumeStatusName"` // The intended status of the volume status. Status *string `locationName:"status" type:"string"` + + metadataVolumeStatusDetails `json:"-" xml:"-"` +} + +type metadataVolumeStatusDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27070,8 +23179,6 @@ func (s VolumeStatusDetails) GoString() string { // Describes a volume status event. type VolumeStatusEvent struct { - _ struct{} `type:"structure"` - // A description of the event. Description *string `locationName:"description" type:"string"` @@ -27086,6 +23193,12 @@ type VolumeStatusEvent struct { // The earliest start time of the event. NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"` + + metadataVolumeStatusEvent `json:"-" xml:"-"` +} + +type metadataVolumeStatusEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27100,13 +23213,17 @@ func (s VolumeStatusEvent) GoString() string { // Describes the status of a volume. type VolumeStatusInfo struct { - _ struct{} `type:"structure"` - // The details of the volume status. Details []*VolumeStatusDetails `locationName:"details" locationNameList:"item" type:"list"` // The status of the volume. Status *string `locationName:"status" type:"string" enum:"VolumeStatusInfoStatus"` + + metadataVolumeStatusInfo `json:"-" xml:"-"` +} + +type metadataVolumeStatusInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27121,8 +23238,6 @@ func (s VolumeStatusInfo) GoString() string { // Describes the volume status. type VolumeStatusItem struct { - _ struct{} `type:"structure"` - // The details of the operation. Actions []*VolumeStatusAction `locationName:"actionsSet" locationNameList:"item" type:"list"` @@ -27137,6 +23252,12 @@ type VolumeStatusItem struct { // The volume status. VolumeStatus *VolumeStatusInfo `locationName:"volumeStatus" type:"structure"` + + metadataVolumeStatusItem `json:"-" xml:"-"` +} + +type metadataVolumeStatusItem struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27151,8 +23272,6 @@ func (s VolumeStatusItem) GoString() string { // Describes a VPC. type Vpc struct { - _ struct{} `type:"structure"` - // The CIDR block for the VPC. CidrBlock *string `locationName:"cidrBlock" type:"string"` @@ -27174,6 +23293,12 @@ type Vpc struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` + + metadataVpc `json:"-" xml:"-"` +} + +type metadataVpc struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27188,13 +23313,17 @@ func (s Vpc) GoString() string { // Describes an attachment between a virtual private gateway and a VPC. type VpcAttachment struct { - _ struct{} `type:"structure"` - // The current state of the attachment. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"` // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` + + metadataVpcAttachment `json:"-" xml:"-"` +} + +type metadataVpcAttachment struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27209,8 +23338,6 @@ func (s VpcAttachment) GoString() string { // Describes whether a VPC is enabled for ClassicLink. type VpcClassicLink struct { - _ struct{} `type:"structure"` - // Indicates whether the VPC is enabled for ClassicLink. ClassicLinkEnabled *bool `locationName:"classicLinkEnabled" type:"boolean"` @@ -27219,6 +23346,12 @@ type VpcClassicLink struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` + + metadataVpcClassicLink `json:"-" xml:"-"` +} + +type metadataVpcClassicLink struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27233,8 +23366,6 @@ func (s VpcClassicLink) GoString() string { // Describes a VPC endpoint. type VpcEndpoint struct { - _ struct{} `type:"structure"` - // The date and time the VPC endpoint was created. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp" timestampFormat:"iso8601"` @@ -27255,6 +23386,12 @@ type VpcEndpoint struct { // The ID of the VPC to which the endpoint is associated. VpcId *string `locationName:"vpcId" type:"string"` + + metadataVpcEndpoint `json:"-" xml:"-"` +} + +type metadataVpcEndpoint struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27269,17 +23406,13 @@ func (s VpcEndpoint) GoString() string { // Describes a VPC peering connection. type VpcPeeringConnection struct { - _ struct{} `type:"structure"` - - // Information about the accepter VPC. CIDR block information is not returned - // when creating a VPC peering connection, or when describing a VPC peering - // connection that's in the initiating-request or pending-acceptance state. + // The information of the peer VPC. AccepterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"accepterVpcInfo" type:"structure"` // The time that an unaccepted VPC peering connection will expire. ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp" timestampFormat:"iso8601"` - // Information about the requester VPC. + // The information of the requester VPC. RequesterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"requesterVpcInfo" type:"structure"` // The status of the VPC peering connection. @@ -27290,50 +23423,37 @@ type VpcPeeringConnection struct { // The ID of the VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` -} - -// String returns the string representation -func (s VpcPeeringConnection) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s VpcPeeringConnection) GoString() string { - return s.String() + metadataVpcPeeringConnection `json:"-" xml:"-"` } -// Describes the VPC peering connection options. -type VpcPeeringConnectionOptionsDescription struct { - _ struct{} `type:"structure"` - - // Indicates whether a local ClassicLink connection can communicate with the - // peer VPC over the VPC peering connection. - AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"` - - // Indicates whether a local VPC can communicate with a ClassicLink connection - // in the peer VPC over the VPC peering connection. - AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"` +type metadataVpcPeeringConnection struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s VpcPeeringConnectionOptionsDescription) String() string { +func (s VpcPeeringConnection) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s VpcPeeringConnectionOptionsDescription) GoString() string { +func (s VpcPeeringConnection) GoString() string { return s.String() } // Describes the status of a VPC peering connection. type VpcPeeringConnectionStateReason struct { - _ struct{} `type:"structure"` - // The status of the VPC peering connection. Code *string `locationName:"code" type:"string" enum:"VpcPeeringConnectionStateReasonCode"` // A message that provides more information about the status, if applicable. Message *string `locationName:"message" type:"string"` + + metadataVpcPeeringConnectionStateReason `json:"-" xml:"-"` +} + +type metadataVpcPeeringConnectionStateReason struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27348,20 +23468,20 @@ func (s VpcPeeringConnectionStateReason) GoString() string { // Describes a VPC in a VPC peering connection. type VpcPeeringConnectionVpcInfo struct { - _ struct{} `type:"structure"` - // The CIDR block for the VPC. CidrBlock *string `locationName:"cidrBlock" type:"string"` // The AWS account ID of the VPC owner. OwnerId *string `locationName:"ownerId" type:"string"` - // Information about the VPC peering connection options for the accepter or - // requester VPC. - PeeringOptions *VpcPeeringConnectionOptionsDescription `locationName:"peeringOptions" type:"structure"` - // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` + + metadataVpcPeeringConnectionVpcInfo `json:"-" xml:"-"` +} + +type metadataVpcPeeringConnectionVpcInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27376,8 +23496,6 @@ func (s VpcPeeringConnectionVpcInfo) GoString() string { // Describes a VPN connection. type VpnConnection struct { - _ struct{} `type:"structure"` - // The configuration information for the VPN connection's customer gateway (in // the native XML format). This element is always present in the CreateVpnConnection // response; however, it's present in the DescribeVpnConnections response only @@ -27410,6 +23528,12 @@ type VpnConnection struct { // The ID of the virtual private gateway at the AWS side of the VPN connection. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"` + + metadataVpnConnection `json:"-" xml:"-"` +} + +type metadataVpnConnection struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27424,11 +23548,15 @@ func (s VpnConnection) GoString() string { // Describes VPN connection options. type VpnConnectionOptions struct { - _ struct{} `type:"structure"` - // Indicates whether the VPN connection uses static routes only. Static routes // must be used for devices that don't support BGP. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"` + + metadataVpnConnectionOptions `json:"-" xml:"-"` +} + +type metadataVpnConnectionOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27443,11 +23571,15 @@ func (s VpnConnectionOptions) GoString() string { // Describes VPN connection options. type VpnConnectionOptionsSpecification struct { - _ struct{} `type:"structure"` - // Indicates whether the VPN connection uses static routes only. Static routes // must be used for devices that don't support BGP. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"` + + metadataVpnConnectionOptionsSpecification `json:"-" xml:"-"` +} + +type metadataVpnConnectionOptionsSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27462,10 +23594,7 @@ func (s VpnConnectionOptionsSpecification) GoString() string { // Describes a virtual private gateway. type VpnGateway struct { - _ struct{} `type:"structure"` - - // The Availability Zone where the virtual private gateway was created, if applicable. - // This field may be empty or not returned. + // The Availability Zone where the virtual private gateway was created. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` // The current state of the virtual private gateway. @@ -27482,6 +23611,12 @@ type VpnGateway struct { // The ID of the virtual private gateway. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"` + + metadataVpnGateway `json:"-" xml:"-"` +} + +type metadataVpnGateway struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27496,8 +23631,6 @@ func (s VpnGateway) GoString() string { // Describes a static route for a VPN connection. type VpnStaticRoute struct { - _ struct{} `type:"structure"` - // The CIDR block associated with the local subnet of the customer data center. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"` @@ -27506,6 +23639,12 @@ type VpnStaticRoute struct { // The current state of the static route. State *string `locationName:"state" type:"string" enum:"VpnState"` + + metadataVpnStaticRoute `json:"-" xml:"-"` +} + +type metadataVpnStaticRoute struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -27525,33 +23664,6 @@ const ( AccountAttributeNameDefaultVpc = "default-vpc" ) -const ( - // @enum Affinity - AffinityDefault = "default" - // @enum Affinity - AffinityHost = "host" -) - -const ( - // @enum AllocationState - AllocationStateAvailable = "available" - // @enum AllocationState - AllocationStateUnderAssessment = "under-assessment" - // @enum AllocationState - AllocationStatePermanentFailure = "permanent-failure" - // @enum AllocationState - AllocationStateReleased = "released" - // @enum AllocationState - AllocationStateReleasedPermanentFailure = "released-permanent-failure" -) - -const ( - // @enum AllocationStrategy - AllocationStrategyLowestPrice = "lowestPrice" - // @enum AllocationStrategy - AllocationStrategyDiversified = "diversified" -) - const ( // @enum ArchitectureValues ArchitectureValuesI386 = "i386" @@ -27570,22 +23682,9 @@ const ( AttachmentStatusDetached = "detached" ) -const ( - // @enum AutoPlacement - AutoPlacementOn = "on" - // @enum AutoPlacement - AutoPlacementOff = "off" -) - const ( // @enum AvailabilityZoneState AvailabilityZoneStateAvailable = "available" - // @enum AvailabilityZoneState - AvailabilityZoneStateInformation = "information" - // @enum AvailabilityZoneState - AvailabilityZoneStateImpaired = "impaired" - // @enum AvailabilityZoneState - AvailabilityZoneStateUnavailable = "unavailable" ) const ( @@ -27601,8 +23700,6 @@ const ( BatchStateCancelledRunning = "cancelled_running" // @enum BatchState BatchStateCancelledTerminating = "cancelled_terminating" - // @enum BatchState - BatchStateModifying = "modifying" ) const ( @@ -27719,13 +23816,6 @@ const ( EventTypeError = "error" ) -const ( - // @enum ExcessCapacityTerminationPolicy - ExcessCapacityTerminationPolicyNoTermination = "noTermination" - // @enum ExcessCapacityTerminationPolicy - ExcessCapacityTerminationPolicyDefault = "default" -) - const ( // @enum ExportEnvironment ExportEnvironmentCitrix = "citrix" @@ -27746,13 +23836,6 @@ const ( ExportTaskStateCompleted = "completed" ) -const ( - // @enum FleetType - FleetTypeRequest = "request" - // @enum FleetType - FleetTypeMaintain = "maintain" -) - const ( // @enum FlowLogsResourceType FlowLogsResourceTypeVpc = "VPC" @@ -27767,13 +23850,6 @@ const ( GatewayTypeIpsec1 = "ipsec.1" ) -const ( - // @enum HostTenancy - HostTenancyDedicated = "dedicated" - // @enum HostTenancy - HostTenancyHost = "host" -) - const ( // @enum HypervisorType HypervisorTypeOvm = "ovm" @@ -27856,8 +23932,6 @@ const ( const ( // @enum InstanceLifecycleType InstanceLifecycleTypeSpot = "spot" - // @enum InstanceLifecycleType - InstanceLifecycleTypeScheduled = "scheduled" ) const ( @@ -27905,8 +23979,6 @@ const ( // @enum InstanceType InstanceTypeM410xlarge = "m4.10xlarge" // @enum InstanceType - InstanceTypeT2Nano = "t2.nano" - // @enum InstanceType InstanceTypeT2Micro = "t2.micro" // @enum InstanceType InstanceTypeT2Small = "t2.small" @@ -27923,14 +23995,6 @@ const ( // @enum InstanceType InstanceTypeCr18xlarge = "cr1.8xlarge" // @enum InstanceType - InstanceTypeX14xlarge = "x1.4xlarge" - // @enum InstanceType - InstanceTypeX18xlarge = "x1.8xlarge" - // @enum InstanceType - InstanceTypeX116xlarge = "x1.16xlarge" - // @enum InstanceType - InstanceTypeX132xlarge = "x1.32xlarge" - // @enum InstanceType InstanceTypeI2Xlarge = "i2.xlarge" // @enum InstanceType InstanceTypeI22xlarge = "i2.2xlarge" @@ -27973,8 +24037,6 @@ const ( // @enum InstanceType InstanceTypeG22xlarge = "g2.2xlarge" // @enum InstanceType - InstanceTypeG28xlarge = "g2.8xlarge" - // @enum InstanceType InstanceTypeCg14xlarge = "cg1.4xlarge" // @enum InstanceType InstanceTypeR3Large = "r3.large" @@ -28036,19 +24098,6 @@ const ( MoveStatusRestoringToClassic = "restoringToClassic" ) -const ( - // @enum NatGatewayState - NatGatewayStatePending = "pending" - // @enum NatGatewayState - NatGatewayStateFailed = "failed" - // @enum NatGatewayState - NatGatewayStateAvailable = "available" - // @enum NatGatewayState - NatGatewayStateDeleting = "deleting" - // @enum NatGatewayState - NatGatewayStateDeleted = "deleted" -) - const ( // @enum NetworkInterfaceAttribute NetworkInterfaceAttributeDescription = "description" @@ -28071,13 +24120,6 @@ const ( NetworkInterfaceStatusDetaching = "detaching" ) -const ( - // @enum NetworkInterfaceType - NetworkInterfaceTypeInterface = "interface" - // @enum NetworkInterfaceType - NetworkInterfaceTypeNatGateway = "natGateway" -) - const ( // @enum OfferingTypeValues OfferingTypeValuesHeavyUtilization = "Heavy Utilization" @@ -28364,8 +24406,6 @@ const ( TenancyDefault = "default" // @enum Tenancy TenancyDedicated = "dedicated" - // @enum Tenancy - TenancyHost = "host" ) const ( @@ -28440,10 +24480,6 @@ const ( VolumeTypeIo1 = "io1" // @enum VolumeType VolumeTypeGp2 = "gp2" - // @enum VolumeType - VolumeTypeSc1 = "sc1" - // @enum VolumeType - VolumeTypeSt1 = "st1" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations.go index 9e94fe671..99f082047 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations.go @@ -3,10 +3,8 @@ package ec2 import ( "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/endpoints" ) func init() { @@ -22,34 +20,38 @@ func fillPresignedURL(r *request.Request) { return } - origParams := r.Params.(*CopySnapshotInput) + params := r.Params.(*CopySnapshotInput) // Stop if PresignedURL/DestinationRegion is set - if origParams.PresignedUrl != nil || origParams.DestinationRegion != nil { + if params.PresignedUrl != nil || params.DestinationRegion != nil { return } - origParams.DestinationRegion = r.Config.Region - newParams := awsutil.CopyOf(r.Params).(*CopySnapshotInput) + // First generate a copy of parameters + r.Params = awsutil.CopyOf(r.Params) + params = r.Params.(*CopySnapshotInput) - // Create a new request based on the existing request. We will use this to - // presign the CopySnapshot request against the source region. - cfg := r.Config.Copy(aws.NewConfig(). + // Set destination region. Avoids infinite handler loop. + // Also needed to sign sub-request. + params.DestinationRegion = r.Service.Config.Region + + // Create a new client pointing at source region. + // We will use this to presign the CopySnapshot request against + // the source region + config := r.Service.Config.Copy(). WithEndpoint(""). - WithRegion(aws.StringValue(origParams.SourceRegion))) + WithRegion(*params.SourceRegion) - clientInfo := r.ClientInfo - clientInfo.Endpoint, clientInfo.SigningRegion = endpoints.EndpointForRegion( - clientInfo.ServiceName, aws.StringValue(cfg.Region), aws.BoolValue(cfg.DisableSSL)) + client := New(config) // Presign a CopySnapshot request with modified params - req := request.New(*cfg, clientInfo, r.Handlers, r.Retryer, r.Operation, newParams, r.Data) - url, err := req.Presign(5 * time.Minute) // 5 minutes should be enough. - if err != nil { // bubble error back up to original request + req, _ := client.CopySnapshotRequest(params) + url, err := req.Presign(300 * time.Second) // 5 minutes should be enough. + + if err != nil { // bubble error back up to original request r.Error = err - return } // We have our URL, set it on params - origParams.PresignedUrl = &url + params.PresignedUrl = &url } diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations_test.go index 195d9b55b..38617b1ff 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/customizations_test.go @@ -6,13 +6,15 @@ import ( "testing" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/ec2" "github.com/stretchr/testify/assert" ) +var _ = unit.Imported + func TestCopySnapshotPresignedURL(t *testing.T) { - svc := ec2.New(unit.Session, &aws.Config{Region: aws.String("us-west-2")}) + svc := ec2.New(&aws.Config{Region: aws.String("us-west-2")}) assert.NotPanics(t, func() { // Doesn't panic on nil input @@ -28,8 +30,7 @@ func TestCopySnapshotPresignedURL(t *testing.T) { b, _ := ioutil.ReadAll(req.HTTPRequest.Body) q, _ := url.ParseQuery(string(b)) - u, _ := url.QueryUnescape(q.Get("PresignedUrl")) + url, _ := url.QueryUnescape(q.Get("PresignedUrl")) assert.Equal(t, "us-west-2", q.Get("DestinationRegion")) - assert.Equal(t, "us-west-1", q.Get("SourceRegion")) - assert.Regexp(t, `^https://ec2\.us-west-1\.amazonaws\.com/.+&DestinationRegion=us-west-2`, u) + assert.Regexp(t, `^https://ec2\.us-west-1\.amazon.+&DestinationRegion=us-west-2`, url) } diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go index 1a4791639..e10a2aa1f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface.go @@ -18,10 +18,6 @@ type EC2API interface { AllocateAddress(*ec2.AllocateAddressInput) (*ec2.AllocateAddressOutput, error) - AllocateHostsRequest(*ec2.AllocateHostsInput) (*request.Request, *ec2.AllocateHostsOutput) - - AllocateHosts(*ec2.AllocateHostsInput) (*ec2.AllocateHostsOutput, error) - AssignPrivateIpAddressesRequest(*ec2.AssignPrivateIpAddressesInput) (*request.Request, *ec2.AssignPrivateIpAddressesOutput) AssignPrivateIpAddresses(*ec2.AssignPrivateIpAddressesInput) (*ec2.AssignPrivateIpAddressesOutput, error) @@ -138,10 +134,6 @@ type EC2API interface { CreateKeyPair(*ec2.CreateKeyPairInput) (*ec2.CreateKeyPairOutput, error) - CreateNatGatewayRequest(*ec2.CreateNatGatewayInput) (*request.Request, *ec2.CreateNatGatewayOutput) - - CreateNatGateway(*ec2.CreateNatGatewayInput) (*ec2.CreateNatGatewayOutput, error) - CreateNetworkAclRequest(*ec2.CreateNetworkAclInput) (*request.Request, *ec2.CreateNetworkAclOutput) CreateNetworkAcl(*ec2.CreateNetworkAclInput) (*ec2.CreateNetworkAclOutput, error) @@ -238,10 +230,6 @@ type EC2API interface { DeleteKeyPair(*ec2.DeleteKeyPairInput) (*ec2.DeleteKeyPairOutput, error) - DeleteNatGatewayRequest(*ec2.DeleteNatGatewayInput) (*request.Request, *ec2.DeleteNatGatewayOutput) - - DeleteNatGateway(*ec2.DeleteNatGatewayInput) (*ec2.DeleteNatGatewayOutput, error) - DeleteNetworkAclRequest(*ec2.DeleteNetworkAclInput) (*request.Request, *ec2.DeleteNetworkAclOutput) DeleteNetworkAcl(*ec2.DeleteNetworkAclInput) (*ec2.DeleteNetworkAclOutput, error) @@ -358,14 +346,6 @@ type EC2API interface { DescribeFlowLogs(*ec2.DescribeFlowLogsInput) (*ec2.DescribeFlowLogsOutput, error) - DescribeHostsRequest(*ec2.DescribeHostsInput) (*request.Request, *ec2.DescribeHostsOutput) - - DescribeHosts(*ec2.DescribeHostsInput) (*ec2.DescribeHostsOutput, error) - - DescribeIdFormatRequest(*ec2.DescribeIdFormatInput) (*request.Request, *ec2.DescribeIdFormatOutput) - - DescribeIdFormat(*ec2.DescribeIdFormatInput) (*ec2.DescribeIdFormatOutput, error) - DescribeImageAttributeRequest(*ec2.DescribeImageAttributeInput) (*request.Request, *ec2.DescribeImageAttributeOutput) DescribeImageAttribute(*ec2.DescribeImageAttributeInput) (*ec2.DescribeImageAttributeOutput, error) @@ -410,10 +390,6 @@ type EC2API interface { DescribeMovingAddresses(*ec2.DescribeMovingAddressesInput) (*ec2.DescribeMovingAddressesOutput, error) - DescribeNatGatewaysRequest(*ec2.DescribeNatGatewaysInput) (*request.Request, *ec2.DescribeNatGatewaysOutput) - - DescribeNatGateways(*ec2.DescribeNatGatewaysInput) (*ec2.DescribeNatGatewaysOutput, error) - DescribeNetworkAclsRequest(*ec2.DescribeNetworkAclsInput) (*request.Request, *ec2.DescribeNetworkAclsOutput) DescribeNetworkAcls(*ec2.DescribeNetworkAclsInput) (*ec2.DescribeNetworkAclsOutput, error) @@ -462,18 +438,6 @@ type EC2API interface { DescribeRouteTables(*ec2.DescribeRouteTablesInput) (*ec2.DescribeRouteTablesOutput, error) - DescribeScheduledInstanceAvailabilityRequest(*ec2.DescribeScheduledInstanceAvailabilityInput) (*request.Request, *ec2.DescribeScheduledInstanceAvailabilityOutput) - - DescribeScheduledInstanceAvailability(*ec2.DescribeScheduledInstanceAvailabilityInput) (*ec2.DescribeScheduledInstanceAvailabilityOutput, error) - - DescribeScheduledInstancesRequest(*ec2.DescribeScheduledInstancesInput) (*request.Request, *ec2.DescribeScheduledInstancesOutput) - - DescribeScheduledInstances(*ec2.DescribeScheduledInstancesInput) (*ec2.DescribeScheduledInstancesOutput, error) - - DescribeSecurityGroupReferencesRequest(*ec2.DescribeSecurityGroupReferencesInput) (*request.Request, *ec2.DescribeSecurityGroupReferencesOutput) - - DescribeSecurityGroupReferences(*ec2.DescribeSecurityGroupReferencesInput) (*ec2.DescribeSecurityGroupReferencesOutput, error) - DescribeSecurityGroupsRequest(*ec2.DescribeSecurityGroupsInput) (*request.Request, *ec2.DescribeSecurityGroupsOutput) DescribeSecurityGroups(*ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error) @@ -514,10 +478,6 @@ type EC2API interface { DescribeSpotPriceHistoryPages(*ec2.DescribeSpotPriceHistoryInput, func(*ec2.DescribeSpotPriceHistoryOutput, bool) bool) error - DescribeStaleSecurityGroupsRequest(*ec2.DescribeStaleSecurityGroupsInput) (*request.Request, *ec2.DescribeStaleSecurityGroupsOutput) - - DescribeStaleSecurityGroups(*ec2.DescribeStaleSecurityGroupsInput) (*ec2.DescribeStaleSecurityGroupsOutput, error) - DescribeSubnetsRequest(*ec2.DescribeSubnetsInput) (*request.Request, *ec2.DescribeSubnetsOutput) DescribeSubnets(*ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error) @@ -526,8 +486,6 @@ type EC2API interface { DescribeTags(*ec2.DescribeTagsInput) (*ec2.DescribeTagsOutput, error) - DescribeTagsPages(*ec2.DescribeTagsInput, func(*ec2.DescribeTagsOutput, bool) bool) error - DescribeVolumeAttributeRequest(*ec2.DescribeVolumeAttributeInput) (*request.Request, *ec2.DescribeVolumeAttributeOutput) DescribeVolumeAttribute(*ec2.DescribeVolumeAttributeInput) (*ec2.DescribeVolumeAttributeOutput, error) @@ -552,10 +510,6 @@ type EC2API interface { DescribeVpcClassicLink(*ec2.DescribeVpcClassicLinkInput) (*ec2.DescribeVpcClassicLinkOutput, error) - DescribeVpcClassicLinkDnsSupportRequest(*ec2.DescribeVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.DescribeVpcClassicLinkDnsSupportOutput) - - DescribeVpcClassicLinkDnsSupport(*ec2.DescribeVpcClassicLinkDnsSupportInput) (*ec2.DescribeVpcClassicLinkDnsSupportOutput, error) - DescribeVpcEndpointServicesRequest(*ec2.DescribeVpcEndpointServicesInput) (*request.Request, *ec2.DescribeVpcEndpointServicesOutput) DescribeVpcEndpointServices(*ec2.DescribeVpcEndpointServicesInput) (*ec2.DescribeVpcEndpointServicesOutput, error) @@ -608,10 +562,6 @@ type EC2API interface { DisableVpcClassicLink(*ec2.DisableVpcClassicLinkInput) (*ec2.DisableVpcClassicLinkOutput, error) - DisableVpcClassicLinkDnsSupportRequest(*ec2.DisableVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.DisableVpcClassicLinkDnsSupportOutput) - - DisableVpcClassicLinkDnsSupport(*ec2.DisableVpcClassicLinkDnsSupportInput) (*ec2.DisableVpcClassicLinkDnsSupportOutput, error) - DisassociateAddressRequest(*ec2.DisassociateAddressInput) (*request.Request, *ec2.DisassociateAddressOutput) DisassociateAddress(*ec2.DisassociateAddressInput) (*ec2.DisassociateAddressOutput, error) @@ -632,18 +582,10 @@ type EC2API interface { EnableVpcClassicLink(*ec2.EnableVpcClassicLinkInput) (*ec2.EnableVpcClassicLinkOutput, error) - EnableVpcClassicLinkDnsSupportRequest(*ec2.EnableVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.EnableVpcClassicLinkDnsSupportOutput) - - EnableVpcClassicLinkDnsSupport(*ec2.EnableVpcClassicLinkDnsSupportInput) (*ec2.EnableVpcClassicLinkDnsSupportOutput, error) - GetConsoleOutputRequest(*ec2.GetConsoleOutputInput) (*request.Request, *ec2.GetConsoleOutputOutput) GetConsoleOutput(*ec2.GetConsoleOutputInput) (*ec2.GetConsoleOutputOutput, error) - GetConsoleScreenshotRequest(*ec2.GetConsoleScreenshotInput) (*request.Request, *ec2.GetConsoleScreenshotOutput) - - GetConsoleScreenshot(*ec2.GetConsoleScreenshotInput) (*ec2.GetConsoleScreenshotOutput, error) - GetPasswordDataRequest(*ec2.GetPasswordDataInput) (*request.Request, *ec2.GetPasswordDataOutput) GetPasswordData(*ec2.GetPasswordDataInput) (*ec2.GetPasswordDataOutput, error) @@ -668,14 +610,6 @@ type EC2API interface { ImportVolume(*ec2.ImportVolumeInput) (*ec2.ImportVolumeOutput, error) - ModifyHostsRequest(*ec2.ModifyHostsInput) (*request.Request, *ec2.ModifyHostsOutput) - - ModifyHosts(*ec2.ModifyHostsInput) (*ec2.ModifyHostsOutput, error) - - ModifyIdFormatRequest(*ec2.ModifyIdFormatInput) (*request.Request, *ec2.ModifyIdFormatOutput) - - ModifyIdFormat(*ec2.ModifyIdFormatInput) (*ec2.ModifyIdFormatOutput, error) - ModifyImageAttributeRequest(*ec2.ModifyImageAttributeInput) (*request.Request, *ec2.ModifyImageAttributeOutput) ModifyImageAttribute(*ec2.ModifyImageAttributeInput) (*ec2.ModifyImageAttributeOutput, error) @@ -684,10 +618,6 @@ type EC2API interface { ModifyInstanceAttribute(*ec2.ModifyInstanceAttributeInput) (*ec2.ModifyInstanceAttributeOutput, error) - ModifyInstancePlacementRequest(*ec2.ModifyInstancePlacementInput) (*request.Request, *ec2.ModifyInstancePlacementOutput) - - ModifyInstancePlacement(*ec2.ModifyInstancePlacementInput) (*ec2.ModifyInstancePlacementOutput, error) - ModifyNetworkInterfaceAttributeRequest(*ec2.ModifyNetworkInterfaceAttributeInput) (*request.Request, *ec2.ModifyNetworkInterfaceAttributeOutput) ModifyNetworkInterfaceAttribute(*ec2.ModifyNetworkInterfaceAttributeInput) (*ec2.ModifyNetworkInterfaceAttributeOutput, error) @@ -700,10 +630,6 @@ type EC2API interface { ModifySnapshotAttribute(*ec2.ModifySnapshotAttributeInput) (*ec2.ModifySnapshotAttributeOutput, error) - ModifySpotFleetRequestRequest(*ec2.ModifySpotFleetRequestInput) (*request.Request, *ec2.ModifySpotFleetRequestOutput) - - ModifySpotFleetRequest(*ec2.ModifySpotFleetRequestInput) (*ec2.ModifySpotFleetRequestOutput, error) - ModifySubnetAttributeRequest(*ec2.ModifySubnetAttributeInput) (*request.Request, *ec2.ModifySubnetAttributeOutput) ModifySubnetAttribute(*ec2.ModifySubnetAttributeInput) (*ec2.ModifySubnetAttributeOutput, error) @@ -720,10 +646,6 @@ type EC2API interface { ModifyVpcEndpoint(*ec2.ModifyVpcEndpointInput) (*ec2.ModifyVpcEndpointOutput, error) - ModifyVpcPeeringConnectionOptionsRequest(*ec2.ModifyVpcPeeringConnectionOptionsInput) (*request.Request, *ec2.ModifyVpcPeeringConnectionOptionsOutput) - - ModifyVpcPeeringConnectionOptions(*ec2.ModifyVpcPeeringConnectionOptionsInput) (*ec2.ModifyVpcPeeringConnectionOptionsOutput, error) - MonitorInstancesRequest(*ec2.MonitorInstancesInput) (*request.Request, *ec2.MonitorInstancesOutput) MonitorInstances(*ec2.MonitorInstancesInput) (*ec2.MonitorInstancesOutput, error) @@ -736,10 +658,6 @@ type EC2API interface { PurchaseReservedInstancesOffering(*ec2.PurchaseReservedInstancesOfferingInput) (*ec2.PurchaseReservedInstancesOfferingOutput, error) - PurchaseScheduledInstancesRequest(*ec2.PurchaseScheduledInstancesInput) (*request.Request, *ec2.PurchaseScheduledInstancesOutput) - - PurchaseScheduledInstances(*ec2.PurchaseScheduledInstancesInput) (*ec2.PurchaseScheduledInstancesOutput, error) - RebootInstancesRequest(*ec2.RebootInstancesInput) (*request.Request, *ec2.RebootInstancesOutput) RebootInstances(*ec2.RebootInstancesInput) (*ec2.RebootInstancesOutput, error) @@ -756,10 +674,6 @@ type EC2API interface { ReleaseAddress(*ec2.ReleaseAddressInput) (*ec2.ReleaseAddressOutput, error) - ReleaseHostsRequest(*ec2.ReleaseHostsInput) (*request.Request, *ec2.ReleaseHostsOutput) - - ReleaseHosts(*ec2.ReleaseHostsInput) (*ec2.ReleaseHostsOutput, error) - ReplaceNetworkAclAssociationRequest(*ec2.ReplaceNetworkAclAssociationInput) (*request.Request, *ec2.ReplaceNetworkAclAssociationOutput) ReplaceNetworkAclAssociation(*ec2.ReplaceNetworkAclAssociationInput) (*ec2.ReplaceNetworkAclAssociationOutput, error) @@ -820,10 +734,6 @@ type EC2API interface { RunInstances(*ec2.RunInstancesInput) (*ec2.Reservation, error) - RunScheduledInstancesRequest(*ec2.RunScheduledInstancesInput) (*request.Request, *ec2.RunScheduledInstancesOutput) - - RunScheduledInstances(*ec2.RunScheduledInstancesInput) (*ec2.RunScheduledInstancesOutput, error) - StartInstancesRequest(*ec2.StartInstancesInput) (*request.Request, *ec2.StartInstancesOutput) StartInstances(*ec2.StartInstancesInput) (*ec2.StartInstancesOutput, error) @@ -844,5 +754,3 @@ type EC2API interface { UnmonitorInstances(*ec2.UnmonitorInstancesInput) (*ec2.UnmonitorInstancesOutput, error) } - -var _ EC2API = (*ec2.EC2)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface_test.go new file mode 100644 index 000000000..3941d260d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ec2iface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/ec2" + "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*ec2iface.EC2API)(nil), ec2.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go index 9feef65ca..81c1e9e69 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleEC2_AcceptVpcPeeringConnection() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AcceptVpcPeeringConnectionInput{ DryRun: aws.Bool(true), @@ -36,7 +35,7 @@ func ExampleEC2_AcceptVpcPeeringConnection() { } func ExampleEC2_AllocateAddress() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AllocateAddressInput{ Domain: aws.String("DomainType"), @@ -55,31 +54,8 @@ func ExampleEC2_AllocateAddress() { fmt.Println(resp) } -func ExampleEC2_AllocateHosts() { - svc := ec2.New(session.New()) - - params := &ec2.AllocateHostsInput{ - AvailabilityZone: aws.String("String"), // Required - InstanceType: aws.String("String"), // Required - Quantity: aws.Int64(1), // Required - AutoPlacement: aws.String("AutoPlacement"), - ClientToken: aws.String("String"), - } - resp, err := svc.AllocateHosts(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_AssignPrivateIpAddresses() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AssignPrivateIpAddressesInput{ NetworkInterfaceId: aws.String("String"), // Required @@ -104,7 +80,7 @@ func ExampleEC2_AssignPrivateIpAddresses() { } func ExampleEC2_AssociateAddress() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AssociateAddressInput{ AllocationId: aws.String("String"), @@ -129,7 +105,7 @@ func ExampleEC2_AssociateAddress() { } func ExampleEC2_AssociateDhcpOptions() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AssociateDhcpOptionsInput{ DhcpOptionsId: aws.String("String"), // Required @@ -150,7 +126,7 @@ func ExampleEC2_AssociateDhcpOptions() { } func ExampleEC2_AssociateRouteTable() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AssociateRouteTableInput{ RouteTableId: aws.String("String"), // Required @@ -171,7 +147,7 @@ func ExampleEC2_AssociateRouteTable() { } func ExampleEC2_AttachClassicLinkVpc() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AttachClassicLinkVpcInput{ Groups: []*string{ // Required @@ -196,7 +172,7 @@ func ExampleEC2_AttachClassicLinkVpc() { } func ExampleEC2_AttachInternetGateway() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AttachInternetGatewayInput{ InternetGatewayId: aws.String("String"), // Required @@ -217,7 +193,7 @@ func ExampleEC2_AttachInternetGateway() { } func ExampleEC2_AttachNetworkInterface() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AttachNetworkInterfaceInput{ DeviceIndex: aws.Int64(1), // Required @@ -239,7 +215,7 @@ func ExampleEC2_AttachNetworkInterface() { } func ExampleEC2_AttachVolume() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AttachVolumeInput{ Device: aws.String("String"), // Required @@ -261,7 +237,7 @@ func ExampleEC2_AttachVolume() { } func ExampleEC2_AttachVpnGateway() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AttachVpnGatewayInput{ VpcId: aws.String("String"), // Required @@ -282,7 +258,7 @@ func ExampleEC2_AttachVpnGateway() { } func ExampleEC2_AuthorizeSecurityGroupEgress() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AuthorizeSecurityGroupEgressInput{ GroupId: aws.String("String"), // Required @@ -308,12 +284,9 @@ func ExampleEC2_AuthorizeSecurityGroupEgress() { ToPort: aws.Int64(1), UserIdGroupPairs: []*ec2.UserIdGroupPair{ { // Required - GroupId: aws.String("String"), - GroupName: aws.String("String"), - PeeringStatus: aws.String("String"), - UserId: aws.String("String"), - VpcId: aws.String("String"), - VpcPeeringConnectionId: aws.String("String"), + GroupId: aws.String("String"), + GroupName: aws.String("String"), + UserId: aws.String("String"), }, // More values... }, @@ -339,7 +312,7 @@ func ExampleEC2_AuthorizeSecurityGroupEgress() { } func ExampleEC2_AuthorizeSecurityGroupIngress() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.AuthorizeSecurityGroupIngressInput{ CidrIp: aws.String("String"), @@ -366,12 +339,9 @@ func ExampleEC2_AuthorizeSecurityGroupIngress() { ToPort: aws.Int64(1), UserIdGroupPairs: []*ec2.UserIdGroupPair{ { // Required - GroupId: aws.String("String"), - GroupName: aws.String("String"), - PeeringStatus: aws.String("String"), - UserId: aws.String("String"), - VpcId: aws.String("String"), - VpcPeeringConnectionId: aws.String("String"), + GroupId: aws.String("String"), + GroupName: aws.String("String"), + UserId: aws.String("String"), }, // More values... }, @@ -397,7 +367,7 @@ func ExampleEC2_AuthorizeSecurityGroupIngress() { } func ExampleEC2_BundleInstance() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.BundleInstanceInput{ InstanceId: aws.String("String"), // Required @@ -426,7 +396,7 @@ func ExampleEC2_BundleInstance() { } func ExampleEC2_CancelBundleTask() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CancelBundleTaskInput{ BundleId: aws.String("String"), // Required @@ -446,7 +416,7 @@ func ExampleEC2_CancelBundleTask() { } func ExampleEC2_CancelConversionTask() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CancelConversionTaskInput{ ConversionTaskId: aws.String("String"), // Required @@ -467,7 +437,7 @@ func ExampleEC2_CancelConversionTask() { } func ExampleEC2_CancelExportTask() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CancelExportTaskInput{ ExportTaskId: aws.String("String"), // Required @@ -486,7 +456,7 @@ func ExampleEC2_CancelExportTask() { } func ExampleEC2_CancelImportTask() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CancelImportTaskInput{ CancelReason: aws.String("String"), @@ -507,7 +477,7 @@ func ExampleEC2_CancelImportTask() { } func ExampleEC2_CancelReservedInstancesListing() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CancelReservedInstancesListingInput{ ReservedInstancesListingId: aws.String("String"), // Required @@ -526,7 +496,7 @@ func ExampleEC2_CancelReservedInstancesListing() { } func ExampleEC2_CancelSpotFleetRequests() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CancelSpotFleetRequestsInput{ SpotFleetRequestIds: []*string{ // Required @@ -550,7 +520,7 @@ func ExampleEC2_CancelSpotFleetRequests() { } func ExampleEC2_CancelSpotInstanceRequests() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CancelSpotInstanceRequestsInput{ SpotInstanceRequestIds: []*string{ // Required @@ -573,7 +543,7 @@ func ExampleEC2_CancelSpotInstanceRequests() { } func ExampleEC2_ConfirmProductInstance() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ConfirmProductInstanceInput{ InstanceId: aws.String("String"), // Required @@ -594,7 +564,7 @@ func ExampleEC2_ConfirmProductInstance() { } func ExampleEC2_CopyImage() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CopyImageInput{ Name: aws.String("String"), // Required @@ -603,8 +573,6 @@ func ExampleEC2_CopyImage() { ClientToken: aws.String("String"), Description: aws.String("String"), DryRun: aws.Bool(true), - Encrypted: aws.Bool(true), - KmsKeyId: aws.String("String"), } resp, err := svc.CopyImage(params) @@ -620,7 +588,7 @@ func ExampleEC2_CopyImage() { } func ExampleEC2_CopySnapshot() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CopySnapshotInput{ SourceRegion: aws.String("String"), // Required @@ -646,7 +614,7 @@ func ExampleEC2_CopySnapshot() { } func ExampleEC2_CreateCustomerGateway() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateCustomerGatewayInput{ BgpAsn: aws.Int64(1), // Required @@ -668,7 +636,7 @@ func ExampleEC2_CreateCustomerGateway() { } func ExampleEC2_CreateDhcpOptions() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateDhcpOptionsInput{ DhcpConfigurations: []*ec2.NewDhcpConfiguration{ // Required @@ -697,7 +665,7 @@ func ExampleEC2_CreateDhcpOptions() { } func ExampleEC2_CreateFlowLogs() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateFlowLogsInput{ DeliverLogsPermissionArn: aws.String("String"), // Required @@ -724,7 +692,7 @@ func ExampleEC2_CreateFlowLogs() { } func ExampleEC2_CreateImage() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateImageInput{ InstanceId: aws.String("String"), // Required @@ -763,7 +731,7 @@ func ExampleEC2_CreateImage() { } func ExampleEC2_CreateInstanceExportTask() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateInstanceExportTaskInput{ InstanceId: aws.String("String"), // Required @@ -790,7 +758,7 @@ func ExampleEC2_CreateInstanceExportTask() { } func ExampleEC2_CreateInternetGateway() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateInternetGatewayInput{ DryRun: aws.Bool(true), @@ -809,7 +777,7 @@ func ExampleEC2_CreateInternetGateway() { } func ExampleEC2_CreateKeyPair() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateKeyPairInput{ KeyName: aws.String("String"), // Required @@ -828,29 +796,8 @@ func ExampleEC2_CreateKeyPair() { fmt.Println(resp) } -func ExampleEC2_CreateNatGateway() { - svc := ec2.New(session.New()) - - params := &ec2.CreateNatGatewayInput{ - AllocationId: aws.String("String"), // Required - SubnetId: aws.String("String"), // Required - ClientToken: aws.String("String"), - } - resp, err := svc.CreateNatGateway(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_CreateNetworkAcl() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateNetworkAclInput{ VpcId: aws.String("String"), // Required @@ -870,7 +817,7 @@ func ExampleEC2_CreateNetworkAcl() { } func ExampleEC2_CreateNetworkAclEntry() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateNetworkAclEntryInput{ CidrBlock: aws.String("String"), // Required @@ -903,7 +850,7 @@ func ExampleEC2_CreateNetworkAclEntry() { } func ExampleEC2_CreateNetworkInterface() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateNetworkInterfaceInput{ SubnetId: aws.String("String"), // Required @@ -937,7 +884,7 @@ func ExampleEC2_CreateNetworkInterface() { } func ExampleEC2_CreatePlacementGroup() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreatePlacementGroupInput{ GroupName: aws.String("String"), // Required @@ -958,7 +905,7 @@ func ExampleEC2_CreatePlacementGroup() { } func ExampleEC2_CreateReservedInstancesListing() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateReservedInstancesListingInput{ ClientToken: aws.String("String"), // Required @@ -987,7 +934,7 @@ func ExampleEC2_CreateReservedInstancesListing() { } func ExampleEC2_CreateRoute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateRouteInput{ DestinationCidrBlock: aws.String("String"), // Required @@ -995,7 +942,6 @@ func ExampleEC2_CreateRoute() { DryRun: aws.Bool(true), GatewayId: aws.String("String"), InstanceId: aws.String("String"), - NatGatewayId: aws.String("String"), NetworkInterfaceId: aws.String("String"), VpcPeeringConnectionId: aws.String("String"), } @@ -1013,7 +959,7 @@ func ExampleEC2_CreateRoute() { } func ExampleEC2_CreateRouteTable() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateRouteTableInput{ VpcId: aws.String("String"), // Required @@ -1033,7 +979,7 @@ func ExampleEC2_CreateRouteTable() { } func ExampleEC2_CreateSecurityGroup() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateSecurityGroupInput{ Description: aws.String("String"), // Required @@ -1055,7 +1001,7 @@ func ExampleEC2_CreateSecurityGroup() { } func ExampleEC2_CreateSnapshot() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateSnapshotInput{ VolumeId: aws.String("String"), // Required @@ -1076,7 +1022,7 @@ func ExampleEC2_CreateSnapshot() { } func ExampleEC2_CreateSpotDatafeedSubscription() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateSpotDatafeedSubscriptionInput{ Bucket: aws.String("String"), // Required @@ -1097,7 +1043,7 @@ func ExampleEC2_CreateSpotDatafeedSubscription() { } func ExampleEC2_CreateSubnet() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateSubnetInput{ CidrBlock: aws.String("String"), // Required @@ -1119,7 +1065,7 @@ func ExampleEC2_CreateSubnet() { } func ExampleEC2_CreateTags() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateTagsInput{ Resources: []*string{ // Required @@ -1149,7 +1095,7 @@ func ExampleEC2_CreateTags() { } func ExampleEC2_CreateVolume() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateVolumeInput{ AvailabilityZone: aws.String("String"), // Required @@ -1175,7 +1121,7 @@ func ExampleEC2_CreateVolume() { } func ExampleEC2_CreateVpc() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateVpcInput{ CidrBlock: aws.String("String"), // Required @@ -1196,7 +1142,7 @@ func ExampleEC2_CreateVpc() { } func ExampleEC2_CreateVpcEndpoint() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateVpcEndpointInput{ ServiceName: aws.String("String"), // Required @@ -1223,7 +1169,7 @@ func ExampleEC2_CreateVpcEndpoint() { } func ExampleEC2_CreateVpcPeeringConnection() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateVpcPeeringConnectionInput{ DryRun: aws.Bool(true), @@ -1245,7 +1191,7 @@ func ExampleEC2_CreateVpcPeeringConnection() { } func ExampleEC2_CreateVpnConnection() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateVpnConnectionInput{ CustomerGatewayId: aws.String("String"), // Required @@ -1270,7 +1216,7 @@ func ExampleEC2_CreateVpnConnection() { } func ExampleEC2_CreateVpnConnectionRoute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateVpnConnectionRouteInput{ DestinationCidrBlock: aws.String("String"), // Required @@ -1290,7 +1236,7 @@ func ExampleEC2_CreateVpnConnectionRoute() { } func ExampleEC2_CreateVpnGateway() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.CreateVpnGatewayInput{ Type: aws.String("GatewayType"), // Required @@ -1311,7 +1257,7 @@ func ExampleEC2_CreateVpnGateway() { } func ExampleEC2_DeleteCustomerGateway() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteCustomerGatewayInput{ CustomerGatewayId: aws.String("String"), // Required @@ -1331,7 +1277,7 @@ func ExampleEC2_DeleteCustomerGateway() { } func ExampleEC2_DeleteDhcpOptions() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteDhcpOptionsInput{ DhcpOptionsId: aws.String("String"), // Required @@ -1351,7 +1297,7 @@ func ExampleEC2_DeleteDhcpOptions() { } func ExampleEC2_DeleteFlowLogs() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteFlowLogsInput{ FlowLogIds: []*string{ // Required @@ -1373,7 +1319,7 @@ func ExampleEC2_DeleteFlowLogs() { } func ExampleEC2_DeleteInternetGateway() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteInternetGatewayInput{ InternetGatewayId: aws.String("String"), // Required @@ -1393,7 +1339,7 @@ func ExampleEC2_DeleteInternetGateway() { } func ExampleEC2_DeleteKeyPair() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteKeyPairInput{ KeyName: aws.String("String"), // Required @@ -1412,27 +1358,8 @@ func ExampleEC2_DeleteKeyPair() { fmt.Println(resp) } -func ExampleEC2_DeleteNatGateway() { - svc := ec2.New(session.New()) - - params := &ec2.DeleteNatGatewayInput{ - NatGatewayId: aws.String("String"), // Required - } - resp, err := svc.DeleteNatGateway(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_DeleteNetworkAcl() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteNetworkAclInput{ NetworkAclId: aws.String("String"), // Required @@ -1452,7 +1379,7 @@ func ExampleEC2_DeleteNetworkAcl() { } func ExampleEC2_DeleteNetworkAclEntry() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteNetworkAclEntryInput{ Egress: aws.Bool(true), // Required @@ -1474,7 +1401,7 @@ func ExampleEC2_DeleteNetworkAclEntry() { } func ExampleEC2_DeleteNetworkInterface() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteNetworkInterfaceInput{ NetworkInterfaceId: aws.String("String"), // Required @@ -1494,7 +1421,7 @@ func ExampleEC2_DeleteNetworkInterface() { } func ExampleEC2_DeletePlacementGroup() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeletePlacementGroupInput{ GroupName: aws.String("String"), // Required @@ -1514,7 +1441,7 @@ func ExampleEC2_DeletePlacementGroup() { } func ExampleEC2_DeleteRoute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteRouteInput{ DestinationCidrBlock: aws.String("String"), // Required @@ -1535,7 +1462,7 @@ func ExampleEC2_DeleteRoute() { } func ExampleEC2_DeleteRouteTable() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteRouteTableInput{ RouteTableId: aws.String("String"), // Required @@ -1555,7 +1482,7 @@ func ExampleEC2_DeleteRouteTable() { } func ExampleEC2_DeleteSecurityGroup() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteSecurityGroupInput{ DryRun: aws.Bool(true), @@ -1576,7 +1503,7 @@ func ExampleEC2_DeleteSecurityGroup() { } func ExampleEC2_DeleteSnapshot() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteSnapshotInput{ SnapshotId: aws.String("String"), // Required @@ -1596,7 +1523,7 @@ func ExampleEC2_DeleteSnapshot() { } func ExampleEC2_DeleteSpotDatafeedSubscription() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteSpotDatafeedSubscriptionInput{ DryRun: aws.Bool(true), @@ -1615,7 +1542,7 @@ func ExampleEC2_DeleteSpotDatafeedSubscription() { } func ExampleEC2_DeleteSubnet() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteSubnetInput{ SubnetId: aws.String("String"), // Required @@ -1635,7 +1562,7 @@ func ExampleEC2_DeleteSubnet() { } func ExampleEC2_DeleteTags() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteTagsInput{ Resources: []*string{ // Required @@ -1665,7 +1592,7 @@ func ExampleEC2_DeleteTags() { } func ExampleEC2_DeleteVolume() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteVolumeInput{ VolumeId: aws.String("String"), // Required @@ -1685,7 +1612,7 @@ func ExampleEC2_DeleteVolume() { } func ExampleEC2_DeleteVpc() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteVpcInput{ VpcId: aws.String("String"), // Required @@ -1705,7 +1632,7 @@ func ExampleEC2_DeleteVpc() { } func ExampleEC2_DeleteVpcEndpoints() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteVpcEndpointsInput{ VpcEndpointIds: []*string{ // Required @@ -1728,7 +1655,7 @@ func ExampleEC2_DeleteVpcEndpoints() { } func ExampleEC2_DeleteVpcPeeringConnection() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteVpcPeeringConnectionInput{ VpcPeeringConnectionId: aws.String("String"), // Required @@ -1748,7 +1675,7 @@ func ExampleEC2_DeleteVpcPeeringConnection() { } func ExampleEC2_DeleteVpnConnection() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteVpnConnectionInput{ VpnConnectionId: aws.String("String"), // Required @@ -1768,7 +1695,7 @@ func ExampleEC2_DeleteVpnConnection() { } func ExampleEC2_DeleteVpnConnectionRoute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteVpnConnectionRouteInput{ DestinationCidrBlock: aws.String("String"), // Required @@ -1788,7 +1715,7 @@ func ExampleEC2_DeleteVpnConnectionRoute() { } func ExampleEC2_DeleteVpnGateway() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeleteVpnGatewayInput{ VpnGatewayId: aws.String("String"), // Required @@ -1808,7 +1735,7 @@ func ExampleEC2_DeleteVpnGateway() { } func ExampleEC2_DeregisterImage() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DeregisterImageInput{ ImageId: aws.String("String"), // Required @@ -1828,7 +1755,7 @@ func ExampleEC2_DeregisterImage() { } func ExampleEC2_DescribeAccountAttributes() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeAccountAttributesInput{ AttributeNames: []*string{ @@ -1851,7 +1778,7 @@ func ExampleEC2_DescribeAccountAttributes() { } func ExampleEC2_DescribeAddresses() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeAddressesInput{ AllocationIds: []*string{ @@ -1888,7 +1815,7 @@ func ExampleEC2_DescribeAddresses() { } func ExampleEC2_DescribeAvailabilityZones() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeAvailabilityZonesInput{ DryRun: aws.Bool(true), @@ -1921,7 +1848,7 @@ func ExampleEC2_DescribeAvailabilityZones() { } func ExampleEC2_DescribeBundleTasks() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeBundleTasksInput{ BundleIds: []*string{ @@ -1954,7 +1881,7 @@ func ExampleEC2_DescribeBundleTasks() { } func ExampleEC2_DescribeClassicLinkInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeClassicLinkInstancesInput{ DryRun: aws.Bool(true), @@ -1989,7 +1916,7 @@ func ExampleEC2_DescribeClassicLinkInstances() { } func ExampleEC2_DescribeConversionTasks() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeConversionTasksInput{ ConversionTaskIds: []*string{ @@ -2022,7 +1949,7 @@ func ExampleEC2_DescribeConversionTasks() { } func ExampleEC2_DescribeCustomerGateways() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeCustomerGatewaysInput{ CustomerGatewayIds: []*string{ @@ -2055,7 +1982,7 @@ func ExampleEC2_DescribeCustomerGateways() { } func ExampleEC2_DescribeDhcpOptions() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeDhcpOptionsInput{ DhcpOptionsIds: []*string{ @@ -2088,7 +2015,7 @@ func ExampleEC2_DescribeDhcpOptions() { } func ExampleEC2_DescribeExportTasks() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeExportTasksInput{ ExportTaskIds: []*string{ @@ -2110,7 +2037,7 @@ func ExampleEC2_DescribeExportTasks() { } func ExampleEC2_DescribeFlowLogs() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeFlowLogsInput{ Filter: []*ec2.Filter{ @@ -2143,61 +2070,8 @@ func ExampleEC2_DescribeFlowLogs() { fmt.Println(resp) } -func ExampleEC2_DescribeHosts() { - svc := ec2.New(session.New()) - - params := &ec2.DescribeHostsInput{ - Filter: []*ec2.Filter{ - { // Required - Name: aws.String("String"), - Values: []*string{ - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - HostIds: []*string{ - aws.String("String"), // Required - // More values... - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("String"), - } - resp, err := svc.DescribeHosts(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleEC2_DescribeIdFormat() { - svc := ec2.New(session.New()) - - params := &ec2.DescribeIdFormatInput{ - Resource: aws.String("String"), - } - resp, err := svc.DescribeIdFormat(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_DescribeImageAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeImageAttributeInput{ Attribute: aws.String("ImageAttributeName"), // Required @@ -2218,7 +2092,7 @@ func ExampleEC2_DescribeImageAttribute() { } func ExampleEC2_DescribeImages() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeImagesInput{ DryRun: aws.Bool(true), @@ -2259,7 +2133,7 @@ func ExampleEC2_DescribeImages() { } func ExampleEC2_DescribeImportImageTasks() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeImportImageTasksInput{ DryRun: aws.Bool(true), @@ -2294,7 +2168,7 @@ func ExampleEC2_DescribeImportImageTasks() { } func ExampleEC2_DescribeImportSnapshotTasks() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeImportSnapshotTasksInput{ DryRun: aws.Bool(true), @@ -2329,7 +2203,7 @@ func ExampleEC2_DescribeImportSnapshotTasks() { } func ExampleEC2_DescribeInstanceAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeInstanceAttributeInput{ Attribute: aws.String("InstanceAttributeName"), // Required @@ -2350,7 +2224,7 @@ func ExampleEC2_DescribeInstanceAttribute() { } func ExampleEC2_DescribeInstanceStatus() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeInstanceStatusInput{ DryRun: aws.Bool(true), @@ -2386,7 +2260,7 @@ func ExampleEC2_DescribeInstanceStatus() { } func ExampleEC2_DescribeInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeInstancesInput{ DryRun: aws.Bool(true), @@ -2421,7 +2295,7 @@ func ExampleEC2_DescribeInstances() { } func ExampleEC2_DescribeInternetGateways() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeInternetGatewaysInput{ DryRun: aws.Bool(true), @@ -2454,7 +2328,7 @@ func ExampleEC2_DescribeInternetGateways() { } func ExampleEC2_DescribeKeyPairs() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeKeyPairsInput{ DryRun: aws.Bool(true), @@ -2487,7 +2361,7 @@ func ExampleEC2_DescribeKeyPairs() { } func ExampleEC2_DescribeMovingAddresses() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeMovingAddressesInput{ DryRun: aws.Bool(true), @@ -2521,42 +2395,8 @@ func ExampleEC2_DescribeMovingAddresses() { fmt.Println(resp) } -func ExampleEC2_DescribeNatGateways() { - svc := ec2.New(session.New()) - - params := &ec2.DescribeNatGatewaysInput{ - Filter: []*ec2.Filter{ - { // Required - Name: aws.String("String"), - Values: []*string{ - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - MaxResults: aws.Int64(1), - NatGatewayIds: []*string{ - aws.String("String"), // Required - // More values... - }, - NextToken: aws.String("String"), - } - resp, err := svc.DescribeNatGateways(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_DescribeNetworkAcls() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeNetworkAclsInput{ DryRun: aws.Bool(true), @@ -2589,7 +2429,7 @@ func ExampleEC2_DescribeNetworkAcls() { } func ExampleEC2_DescribeNetworkInterfaceAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeNetworkInterfaceAttributeInput{ NetworkInterfaceId: aws.String("String"), // Required @@ -2610,7 +2450,7 @@ func ExampleEC2_DescribeNetworkInterfaceAttribute() { } func ExampleEC2_DescribeNetworkInterfaces() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeNetworkInterfacesInput{ DryRun: aws.Bool(true), @@ -2643,7 +2483,7 @@ func ExampleEC2_DescribeNetworkInterfaces() { } func ExampleEC2_DescribePlacementGroups() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribePlacementGroupsInput{ DryRun: aws.Bool(true), @@ -2676,7 +2516,7 @@ func ExampleEC2_DescribePlacementGroups() { } func ExampleEC2_DescribePrefixLists() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribePrefixListsInput{ DryRun: aws.Bool(true), @@ -2711,7 +2551,7 @@ func ExampleEC2_DescribePrefixLists() { } func ExampleEC2_DescribeRegions() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeRegionsInput{ DryRun: aws.Bool(true), @@ -2744,7 +2584,7 @@ func ExampleEC2_DescribeRegions() { } func ExampleEC2_DescribeReservedInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeReservedInstancesInput{ DryRun: aws.Bool(true), @@ -2778,7 +2618,7 @@ func ExampleEC2_DescribeReservedInstances() { } func ExampleEC2_DescribeReservedInstancesListings() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeReservedInstancesListingsInput{ Filters: []*ec2.Filter{ @@ -2808,7 +2648,7 @@ func ExampleEC2_DescribeReservedInstancesListings() { } func ExampleEC2_DescribeReservedInstancesModifications() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeReservedInstancesModificationsInput{ Filters: []*ec2.Filter{ @@ -2841,7 +2681,7 @@ func ExampleEC2_DescribeReservedInstancesModifications() { } func ExampleEC2_DescribeReservedInstancesOfferings() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeReservedInstancesOfferingsInput{ AvailabilityZone: aws.String("String"), @@ -2885,7 +2725,7 @@ func ExampleEC2_DescribeReservedInstancesOfferings() { } func ExampleEC2_DescribeRouteTables() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeRouteTablesInput{ DryRun: aws.Bool(true), @@ -2917,117 +2757,8 @@ func ExampleEC2_DescribeRouteTables() { fmt.Println(resp) } -func ExampleEC2_DescribeScheduledInstanceAvailability() { - svc := ec2.New(session.New()) - - params := &ec2.DescribeScheduledInstanceAvailabilityInput{ - FirstSlotStartTimeRange: &ec2.SlotDateTimeRangeRequest{ // Required - EarliestTime: aws.Time(time.Now()), // Required - LatestTime: aws.Time(time.Now()), // Required - }, - Recurrence: &ec2.ScheduledInstanceRecurrenceRequest{ // Required - Frequency: aws.String("String"), - Interval: aws.Int64(1), - OccurrenceDays: []*int64{ - aws.Int64(1), // Required - // More values... - }, - OccurrenceRelativeToEnd: aws.Bool(true), - OccurrenceUnit: aws.String("String"), - }, - DryRun: aws.Bool(true), - Filters: []*ec2.Filter{ - { // Required - Name: aws.String("String"), - Values: []*string{ - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - MaxResults: aws.Int64(1), - MaxSlotDurationInHours: aws.Int64(1), - MinSlotDurationInHours: aws.Int64(1), - NextToken: aws.String("String"), - } - resp, err := svc.DescribeScheduledInstanceAvailability(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleEC2_DescribeScheduledInstances() { - svc := ec2.New(session.New()) - - params := &ec2.DescribeScheduledInstancesInput{ - DryRun: aws.Bool(true), - Filters: []*ec2.Filter{ - { // Required - Name: aws.String("String"), - Values: []*string{ - aws.String("String"), // Required - // More values... - }, - }, - // More values... - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("String"), - ScheduledInstanceIds: []*string{ - aws.String("String"), // Required - // More values... - }, - SlotStartTimeRange: &ec2.SlotStartTimeRangeRequest{ - EarliestTime: aws.Time(time.Now()), - LatestTime: aws.Time(time.Now()), - }, - } - resp, err := svc.DescribeScheduledInstances(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleEC2_DescribeSecurityGroupReferences() { - svc := ec2.New(session.New()) - - params := &ec2.DescribeSecurityGroupReferencesInput{ - GroupId: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - DryRun: aws.Bool(true), - } - resp, err := svc.DescribeSecurityGroupReferences(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_DescribeSecurityGroups() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeSecurityGroupsInput{ DryRun: aws.Bool(true), @@ -3064,7 +2795,7 @@ func ExampleEC2_DescribeSecurityGroups() { } func ExampleEC2_DescribeSnapshotAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeSnapshotAttributeInput{ Attribute: aws.String("SnapshotAttributeName"), // Required @@ -3085,7 +2816,7 @@ func ExampleEC2_DescribeSnapshotAttribute() { } func ExampleEC2_DescribeSnapshots() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeSnapshotsInput{ DryRun: aws.Bool(true), @@ -3128,7 +2859,7 @@ func ExampleEC2_DescribeSnapshots() { } func ExampleEC2_DescribeSpotDatafeedSubscription() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeSpotDatafeedSubscriptionInput{ DryRun: aws.Bool(true), @@ -3147,7 +2878,7 @@ func ExampleEC2_DescribeSpotDatafeedSubscription() { } func ExampleEC2_DescribeSpotFleetInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeSpotFleetInstancesInput{ SpotFleetRequestId: aws.String("String"), // Required @@ -3169,7 +2900,7 @@ func ExampleEC2_DescribeSpotFleetInstances() { } func ExampleEC2_DescribeSpotFleetRequestHistory() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeSpotFleetRequestHistoryInput{ SpotFleetRequestId: aws.String("String"), // Required @@ -3193,7 +2924,7 @@ func ExampleEC2_DescribeSpotFleetRequestHistory() { } func ExampleEC2_DescribeSpotFleetRequests() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeSpotFleetRequestsInput{ DryRun: aws.Bool(true), @@ -3218,7 +2949,7 @@ func ExampleEC2_DescribeSpotFleetRequests() { } func ExampleEC2_DescribeSpotInstanceRequests() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeSpotInstanceRequestsInput{ DryRun: aws.Bool(true), @@ -3251,7 +2982,7 @@ func ExampleEC2_DescribeSpotInstanceRequests() { } func ExampleEC2_DescribeSpotPriceHistory() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeSpotPriceHistoryInput{ AvailabilityZone: aws.String("String"), @@ -3292,30 +3023,8 @@ func ExampleEC2_DescribeSpotPriceHistory() { fmt.Println(resp) } -func ExampleEC2_DescribeStaleSecurityGroups() { - svc := ec2.New(session.New()) - - params := &ec2.DescribeStaleSecurityGroupsInput{ - VpcId: aws.String("String"), // Required - DryRun: aws.Bool(true), - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.DescribeStaleSecurityGroups(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_DescribeSubnets() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeSubnetsInput{ DryRun: aws.Bool(true), @@ -3348,7 +3057,7 @@ func ExampleEC2_DescribeSubnets() { } func ExampleEC2_DescribeTags() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeTagsInput{ DryRun: aws.Bool(true), @@ -3379,7 +3088,7 @@ func ExampleEC2_DescribeTags() { } func ExampleEC2_DescribeVolumeAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVolumeAttributeInput{ VolumeId: aws.String("String"), // Required @@ -3400,7 +3109,7 @@ func ExampleEC2_DescribeVolumeAttribute() { } func ExampleEC2_DescribeVolumeStatus() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVolumeStatusInput{ DryRun: aws.Bool(true), @@ -3435,7 +3144,7 @@ func ExampleEC2_DescribeVolumeStatus() { } func ExampleEC2_DescribeVolumes() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVolumesInput{ DryRun: aws.Bool(true), @@ -3470,11 +3179,11 @@ func ExampleEC2_DescribeVolumes() { } func ExampleEC2_DescribeVpcAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVpcAttributeInput{ - Attribute: aws.String("VpcAttributeName"), // Required - VpcId: aws.String("String"), // Required + VpcId: aws.String("String"), // Required + Attribute: aws.String("VpcAttributeName"), DryRun: aws.Bool(true), } resp, err := svc.DescribeVpcAttribute(params) @@ -3491,7 +3200,7 @@ func ExampleEC2_DescribeVpcAttribute() { } func ExampleEC2_DescribeVpcClassicLink() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVpcClassicLinkInput{ DryRun: aws.Bool(true), @@ -3523,32 +3232,8 @@ func ExampleEC2_DescribeVpcClassicLink() { fmt.Println(resp) } -func ExampleEC2_DescribeVpcClassicLinkDnsSupport() { - svc := ec2.New(session.New()) - - params := &ec2.DescribeVpcClassicLinkDnsSupportInput{ - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - VpcIds: []*string{ - aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.DescribeVpcClassicLinkDnsSupport(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_DescribeVpcEndpointServices() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVpcEndpointServicesInput{ DryRun: aws.Bool(true), @@ -3569,7 +3254,7 @@ func ExampleEC2_DescribeVpcEndpointServices() { } func ExampleEC2_DescribeVpcEndpoints() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVpcEndpointsInput{ DryRun: aws.Bool(true), @@ -3604,7 +3289,7 @@ func ExampleEC2_DescribeVpcEndpoints() { } func ExampleEC2_DescribeVpcPeeringConnections() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVpcPeeringConnectionsInput{ DryRun: aws.Bool(true), @@ -3637,7 +3322,7 @@ func ExampleEC2_DescribeVpcPeeringConnections() { } func ExampleEC2_DescribeVpcs() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVpcsInput{ DryRun: aws.Bool(true), @@ -3670,7 +3355,7 @@ func ExampleEC2_DescribeVpcs() { } func ExampleEC2_DescribeVpnConnections() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVpnConnectionsInput{ DryRun: aws.Bool(true), @@ -3703,7 +3388,7 @@ func ExampleEC2_DescribeVpnConnections() { } func ExampleEC2_DescribeVpnGateways() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DescribeVpnGatewaysInput{ DryRun: aws.Bool(true), @@ -3736,7 +3421,7 @@ func ExampleEC2_DescribeVpnGateways() { } func ExampleEC2_DetachClassicLinkVpc() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DetachClassicLinkVpcInput{ InstanceId: aws.String("String"), // Required @@ -3757,7 +3442,7 @@ func ExampleEC2_DetachClassicLinkVpc() { } func ExampleEC2_DetachInternetGateway() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DetachInternetGatewayInput{ InternetGatewayId: aws.String("String"), // Required @@ -3778,7 +3463,7 @@ func ExampleEC2_DetachInternetGateway() { } func ExampleEC2_DetachNetworkInterface() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DetachNetworkInterfaceInput{ AttachmentId: aws.String("String"), // Required @@ -3799,7 +3484,7 @@ func ExampleEC2_DetachNetworkInterface() { } func ExampleEC2_DetachVolume() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DetachVolumeInput{ VolumeId: aws.String("String"), // Required @@ -3822,7 +3507,7 @@ func ExampleEC2_DetachVolume() { } func ExampleEC2_DetachVpnGateway() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DetachVpnGatewayInput{ VpcId: aws.String("String"), // Required @@ -3843,7 +3528,7 @@ func ExampleEC2_DetachVpnGateway() { } func ExampleEC2_DisableVgwRoutePropagation() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DisableVgwRoutePropagationInput{ GatewayId: aws.String("String"), // Required @@ -3863,7 +3548,7 @@ func ExampleEC2_DisableVgwRoutePropagation() { } func ExampleEC2_DisableVpcClassicLink() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DisableVpcClassicLinkInput{ VpcId: aws.String("String"), // Required @@ -3882,27 +3567,8 @@ func ExampleEC2_DisableVpcClassicLink() { fmt.Println(resp) } -func ExampleEC2_DisableVpcClassicLinkDnsSupport() { - svc := ec2.New(session.New()) - - params := &ec2.DisableVpcClassicLinkDnsSupportInput{ - VpcId: aws.String("String"), - } - resp, err := svc.DisableVpcClassicLinkDnsSupport(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_DisassociateAddress() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DisassociateAddressInput{ AssociationId: aws.String("String"), @@ -3923,7 +3589,7 @@ func ExampleEC2_DisassociateAddress() { } func ExampleEC2_DisassociateRouteTable() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.DisassociateRouteTableInput{ AssociationId: aws.String("String"), // Required @@ -3943,7 +3609,7 @@ func ExampleEC2_DisassociateRouteTable() { } func ExampleEC2_EnableVgwRoutePropagation() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.EnableVgwRoutePropagationInput{ GatewayId: aws.String("String"), // Required @@ -3963,7 +3629,7 @@ func ExampleEC2_EnableVgwRoutePropagation() { } func ExampleEC2_EnableVolumeIO() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.EnableVolumeIOInput{ VolumeId: aws.String("String"), // Required @@ -3983,7 +3649,7 @@ func ExampleEC2_EnableVolumeIO() { } func ExampleEC2_EnableVpcClassicLink() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.EnableVpcClassicLinkInput{ VpcId: aws.String("String"), // Required @@ -4002,27 +3668,8 @@ func ExampleEC2_EnableVpcClassicLink() { fmt.Println(resp) } -func ExampleEC2_EnableVpcClassicLinkDnsSupport() { - svc := ec2.New(session.New()) - - params := &ec2.EnableVpcClassicLinkDnsSupportInput{ - VpcId: aws.String("String"), - } - resp, err := svc.EnableVpcClassicLinkDnsSupport(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_GetConsoleOutput() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.GetConsoleOutputInput{ InstanceId: aws.String("String"), // Required @@ -4041,29 +3688,8 @@ func ExampleEC2_GetConsoleOutput() { fmt.Println(resp) } -func ExampleEC2_GetConsoleScreenshot() { - svc := ec2.New(session.New()) - - params := &ec2.GetConsoleScreenshotInput{ - InstanceId: aws.String("String"), // Required - DryRun: aws.Bool(true), - WakeUp: aws.Bool(true), - } - resp, err := svc.GetConsoleScreenshot(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_GetPasswordData() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.GetPasswordDataInput{ InstanceId: aws.String("String"), // Required @@ -4083,7 +3709,7 @@ func ExampleEC2_GetPasswordData() { } func ExampleEC2_ImportImage() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ImportImageInput{ Architecture: aws.String("String"), @@ -4129,7 +3755,7 @@ func ExampleEC2_ImportImage() { } func ExampleEC2_ImportInstance() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ImportInstanceInput{ Platform: aws.String("PlatformValues"), // Required @@ -4164,10 +3790,8 @@ func ExampleEC2_ImportInstance() { InstanceType: aws.String("InstanceType"), Monitoring: aws.Bool(true), Placement: &ec2.Placement{ - Affinity: aws.String("String"), AvailabilityZone: aws.String("String"), GroupName: aws.String("String"), - HostId: aws.String("String"), Tenancy: aws.String("Tenancy"), }, PrivateIpAddress: aws.String("String"), @@ -4191,7 +3815,7 @@ func ExampleEC2_ImportInstance() { } func ExampleEC2_ImportKeyPair() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ImportKeyPairInput{ KeyName: aws.String("String"), // Required @@ -4212,7 +3836,7 @@ func ExampleEC2_ImportKeyPair() { } func ExampleEC2_ImportSnapshot() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ImportSnapshotInput{ ClientData: &ec2.ClientData{ @@ -4249,7 +3873,7 @@ func ExampleEC2_ImportSnapshot() { } func ExampleEC2_ImportVolume() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ImportVolumeInput{ AvailabilityZone: aws.String("String"), // Required @@ -4277,51 +3901,8 @@ func ExampleEC2_ImportVolume() { fmt.Println(resp) } -func ExampleEC2_ModifyHosts() { - svc := ec2.New(session.New()) - - params := &ec2.ModifyHostsInput{ - AutoPlacement: aws.String("AutoPlacement"), // Required - HostIds: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.ModifyHosts(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleEC2_ModifyIdFormat() { - svc := ec2.New(session.New()) - - params := &ec2.ModifyIdFormatInput{ - Resource: aws.String("String"), // Required - UseLongIds: aws.Bool(true), // Required - } - resp, err := svc.ModifyIdFormat(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_ModifyImageAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ModifyImageAttributeInput{ ImageId: aws.String("String"), // Required @@ -4375,7 +3956,7 @@ func ExampleEC2_ModifyImageAttribute() { } func ExampleEC2_ModifyInstanceAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ModifyInstanceAttributeInput{ InstanceId: aws.String("String"), // Required @@ -4439,30 +4020,8 @@ func ExampleEC2_ModifyInstanceAttribute() { fmt.Println(resp) } -func ExampleEC2_ModifyInstancePlacement() { - svc := ec2.New(session.New()) - - params := &ec2.ModifyInstancePlacementInput{ - InstanceId: aws.String("String"), // Required - Affinity: aws.String("Affinity"), - HostId: aws.String("String"), - Tenancy: aws.String("HostTenancy"), - } - resp, err := svc.ModifyInstancePlacement(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_ModifyNetworkInterfaceAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ModifyNetworkInterfaceAttributeInput{ NetworkInterfaceId: aws.String("String"), // Required @@ -4496,7 +4055,7 @@ func ExampleEC2_ModifyNetworkInterfaceAttribute() { } func ExampleEC2_ModifyReservedInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ModifyReservedInstancesInput{ ReservedInstancesIds: []*string{ // Required @@ -4528,7 +4087,7 @@ func ExampleEC2_ModifyReservedInstances() { } func ExampleEC2_ModifySnapshotAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ModifySnapshotAttributeInput{ SnapshotId: aws.String("String"), // Required @@ -4573,29 +4132,8 @@ func ExampleEC2_ModifySnapshotAttribute() { fmt.Println(resp) } -func ExampleEC2_ModifySpotFleetRequest() { - svc := ec2.New(session.New()) - - params := &ec2.ModifySpotFleetRequestInput{ - SpotFleetRequestId: aws.String("String"), // Required - ExcessCapacityTerminationPolicy: aws.String("ExcessCapacityTerminationPolicy"), - TargetCapacity: aws.Int64(1), - } - resp, err := svc.ModifySpotFleetRequest(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_ModifySubnetAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ModifySubnetAttributeInput{ SubnetId: aws.String("String"), // Required @@ -4617,7 +4155,7 @@ func ExampleEC2_ModifySubnetAttribute() { } func ExampleEC2_ModifyVolumeAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ModifyVolumeAttributeInput{ VolumeId: aws.String("String"), // Required @@ -4640,7 +4178,7 @@ func ExampleEC2_ModifyVolumeAttribute() { } func ExampleEC2_ModifyVpcAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ModifyVpcAttributeInput{ VpcId: aws.String("String"), // Required @@ -4665,7 +4203,7 @@ func ExampleEC2_ModifyVpcAttribute() { } func ExampleEC2_ModifyVpcEndpoint() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ModifyVpcEndpointInput{ VpcEndpointId: aws.String("String"), // Required @@ -4694,36 +4232,8 @@ func ExampleEC2_ModifyVpcEndpoint() { fmt.Println(resp) } -func ExampleEC2_ModifyVpcPeeringConnectionOptions() { - svc := ec2.New(session.New()) - - params := &ec2.ModifyVpcPeeringConnectionOptionsInput{ - VpcPeeringConnectionId: aws.String("String"), // Required - AccepterPeeringConnectionOptions: &ec2.PeeringConnectionOptionsRequest{ - AllowEgressFromLocalClassicLinkToRemoteVpc: aws.Bool(true), // Required - AllowEgressFromLocalVpcToRemoteClassicLink: aws.Bool(true), // Required - }, - DryRun: aws.Bool(true), - RequesterPeeringConnectionOptions: &ec2.PeeringConnectionOptionsRequest{ - AllowEgressFromLocalClassicLinkToRemoteVpc: aws.Bool(true), // Required - AllowEgressFromLocalVpcToRemoteClassicLink: aws.Bool(true), // Required - }, - } - resp, err := svc.ModifyVpcPeeringConnectionOptions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_MonitorInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.MonitorInstancesInput{ InstanceIds: []*string{ // Required @@ -4746,7 +4256,7 @@ func ExampleEC2_MonitorInstances() { } func ExampleEC2_MoveAddressToVpc() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.MoveAddressToVpcInput{ PublicIp: aws.String("String"), // Required @@ -4766,7 +4276,7 @@ func ExampleEC2_MoveAddressToVpc() { } func ExampleEC2_PurchaseReservedInstancesOffering() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.PurchaseReservedInstancesOfferingInput{ InstanceCount: aws.Int64(1), // Required @@ -4790,35 +4300,8 @@ func ExampleEC2_PurchaseReservedInstancesOffering() { fmt.Println(resp) } -func ExampleEC2_PurchaseScheduledInstances() { - svc := ec2.New(session.New()) - - params := &ec2.PurchaseScheduledInstancesInput{ - PurchaseRequests: []*ec2.PurchaseRequest{ // Required - { // Required - InstanceCount: aws.Int64(1), // Required - PurchaseToken: aws.String("String"), // Required - }, - // More values... - }, - ClientToken: aws.String("String"), - DryRun: aws.Bool(true), - } - resp, err := svc.PurchaseScheduledInstances(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_RebootInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.RebootInstancesInput{ InstanceIds: []*string{ // Required @@ -4841,7 +4324,7 @@ func ExampleEC2_RebootInstances() { } func ExampleEC2_RegisterImage() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.RegisterImageInput{ Name: aws.String("String"), // Required @@ -4885,7 +4368,7 @@ func ExampleEC2_RegisterImage() { } func ExampleEC2_RejectVpcPeeringConnection() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.RejectVpcPeeringConnectionInput{ VpcPeeringConnectionId: aws.String("String"), // Required @@ -4905,7 +4388,7 @@ func ExampleEC2_RejectVpcPeeringConnection() { } func ExampleEC2_ReleaseAddress() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ReleaseAddressInput{ AllocationId: aws.String("String"), @@ -4925,30 +4408,8 @@ func ExampleEC2_ReleaseAddress() { fmt.Println(resp) } -func ExampleEC2_ReleaseHosts() { - svc := ec2.New(session.New()) - - params := &ec2.ReleaseHostsInput{ - HostIds: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.ReleaseHosts(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_ReplaceNetworkAclAssociation() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ReplaceNetworkAclAssociationInput{ AssociationId: aws.String("String"), // Required @@ -4969,7 +4430,7 @@ func ExampleEC2_ReplaceNetworkAclAssociation() { } func ExampleEC2_ReplaceNetworkAclEntry() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ReplaceNetworkAclEntryInput{ CidrBlock: aws.String("String"), // Required @@ -5002,7 +4463,7 @@ func ExampleEC2_ReplaceNetworkAclEntry() { } func ExampleEC2_ReplaceRoute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ReplaceRouteInput{ DestinationCidrBlock: aws.String("String"), // Required @@ -5010,7 +4471,6 @@ func ExampleEC2_ReplaceRoute() { DryRun: aws.Bool(true), GatewayId: aws.String("String"), InstanceId: aws.String("String"), - NatGatewayId: aws.String("String"), NetworkInterfaceId: aws.String("String"), VpcPeeringConnectionId: aws.String("String"), } @@ -5028,7 +4488,7 @@ func ExampleEC2_ReplaceRoute() { } func ExampleEC2_ReplaceRouteTableAssociation() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ReplaceRouteTableAssociationInput{ AssociationId: aws.String("String"), // Required @@ -5049,7 +4509,7 @@ func ExampleEC2_ReplaceRouteTableAssociation() { } func ExampleEC2_ReportInstanceStatus() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ReportInstanceStatusInput{ Instances: []*string{ // Required @@ -5080,7 +4540,7 @@ func ExampleEC2_ReportInstanceStatus() { } func ExampleEC2_RequestSpotFleet() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.RequestSpotFleetInput{ SpotFleetRequestConfig: &ec2.SpotFleetRequestConfigData{ // Required @@ -5161,14 +4621,10 @@ func ExampleEC2_RequestSpotFleet() { }, SpotPrice: aws.String("String"), // Required TargetCapacity: aws.Int64(1), // Required - AllocationStrategy: aws.String("AllocationStrategy"), ClientToken: aws.String("String"), - ExcessCapacityTerminationPolicy: aws.String("ExcessCapacityTerminationPolicy"), - FulfilledCapacity: aws.Float64(1.0), TerminateInstancesWithExpiration: aws.Bool(true), - Type: aws.String("FleetType"), - ValidFrom: aws.Time(time.Now()), - ValidUntil: aws.Time(time.Now()), + ValidFrom: aws.Time(time.Now()), + ValidUntil: aws.Time(time.Now()), }, DryRun: aws.Bool(true), } @@ -5186,12 +4642,11 @@ func ExampleEC2_RequestSpotFleet() { } func ExampleEC2_RequestSpotInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.RequestSpotInstancesInput{ SpotPrice: aws.String("String"), // Required AvailabilityZoneGroup: aws.String("String"), - BlockDurationMinutes: aws.Int64(1), ClientToken: aws.String("String"), DryRun: aws.Bool(true), InstanceCount: aws.Int64(1), @@ -5284,7 +4739,7 @@ func ExampleEC2_RequestSpotInstances() { } func ExampleEC2_ResetImageAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ResetImageAttributeInput{ Attribute: aws.String("ResetImageAttributeName"), // Required @@ -5305,7 +4760,7 @@ func ExampleEC2_ResetImageAttribute() { } func ExampleEC2_ResetInstanceAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ResetInstanceAttributeInput{ Attribute: aws.String("InstanceAttributeName"), // Required @@ -5326,7 +4781,7 @@ func ExampleEC2_ResetInstanceAttribute() { } func ExampleEC2_ResetNetworkInterfaceAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ResetNetworkInterfaceAttributeInput{ NetworkInterfaceId: aws.String("String"), // Required @@ -5347,7 +4802,7 @@ func ExampleEC2_ResetNetworkInterfaceAttribute() { } func ExampleEC2_ResetSnapshotAttribute() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.ResetSnapshotAttributeInput{ Attribute: aws.String("SnapshotAttributeName"), // Required @@ -5368,7 +4823,7 @@ func ExampleEC2_ResetSnapshotAttribute() { } func ExampleEC2_RestoreAddressToClassic() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.RestoreAddressToClassicInput{ PublicIp: aws.String("String"), // Required @@ -5388,7 +4843,7 @@ func ExampleEC2_RestoreAddressToClassic() { } func ExampleEC2_RevokeSecurityGroupEgress() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.RevokeSecurityGroupEgressInput{ GroupId: aws.String("String"), // Required @@ -5414,12 +4869,9 @@ func ExampleEC2_RevokeSecurityGroupEgress() { ToPort: aws.Int64(1), UserIdGroupPairs: []*ec2.UserIdGroupPair{ { // Required - GroupId: aws.String("String"), - GroupName: aws.String("String"), - PeeringStatus: aws.String("String"), - UserId: aws.String("String"), - VpcId: aws.String("String"), - VpcPeeringConnectionId: aws.String("String"), + GroupId: aws.String("String"), + GroupName: aws.String("String"), + UserId: aws.String("String"), }, // More values... }, @@ -5445,7 +4897,7 @@ func ExampleEC2_RevokeSecurityGroupEgress() { } func ExampleEC2_RevokeSecurityGroupIngress() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.RevokeSecurityGroupIngressInput{ CidrIp: aws.String("String"), @@ -5472,12 +4924,9 @@ func ExampleEC2_RevokeSecurityGroupIngress() { ToPort: aws.Int64(1), UserIdGroupPairs: []*ec2.UserIdGroupPair{ { // Required - GroupId: aws.String("String"), - GroupName: aws.String("String"), - PeeringStatus: aws.String("String"), - UserId: aws.String("String"), - VpcId: aws.String("String"), - VpcPeeringConnectionId: aws.String("String"), + GroupId: aws.String("String"), + GroupName: aws.String("String"), + UserId: aws.String("String"), }, // More values... }, @@ -5503,7 +4952,7 @@ func ExampleEC2_RevokeSecurityGroupIngress() { } func ExampleEC2_RunInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.RunInstancesInput{ ImageId: aws.String("String"), // Required @@ -5566,10 +5015,8 @@ func ExampleEC2_RunInstances() { // More values... }, Placement: &ec2.Placement{ - Affinity: aws.String("String"), AvailabilityZone: aws.String("String"), GroupName: aws.String("String"), - HostId: aws.String("String"), Tenancy: aws.String("Tenancy"), }, PrivateIpAddress: aws.String("String"), @@ -5598,95 +5045,8 @@ func ExampleEC2_RunInstances() { fmt.Println(resp) } -func ExampleEC2_RunScheduledInstances() { - svc := ec2.New(session.New()) - - params := &ec2.RunScheduledInstancesInput{ - LaunchSpecification: &ec2.ScheduledInstancesLaunchSpecification{ // Required - ImageId: aws.String("String"), // Required - BlockDeviceMappings: []*ec2.ScheduledInstancesBlockDeviceMapping{ - { // Required - DeviceName: aws.String("String"), - Ebs: &ec2.ScheduledInstancesEbs{ - DeleteOnTermination: aws.Bool(true), - Encrypted: aws.Bool(true), - Iops: aws.Int64(1), - SnapshotId: aws.String("String"), - VolumeSize: aws.Int64(1), - VolumeType: aws.String("String"), - }, - NoDevice: aws.String("String"), - VirtualName: aws.String("String"), - }, - // More values... - }, - EbsOptimized: aws.Bool(true), - IamInstanceProfile: &ec2.ScheduledInstancesIamInstanceProfile{ - Arn: aws.String("String"), - Name: aws.String("String"), - }, - InstanceType: aws.String("String"), - KernelId: aws.String("String"), - KeyName: aws.String("String"), - Monitoring: &ec2.ScheduledInstancesMonitoring{ - Enabled: aws.Bool(true), - }, - NetworkInterfaces: []*ec2.ScheduledInstancesNetworkInterface{ - { // Required - AssociatePublicIpAddress: aws.Bool(true), - DeleteOnTermination: aws.Bool(true), - Description: aws.String("String"), - DeviceIndex: aws.Int64(1), - Groups: []*string{ - aws.String("String"), // Required - // More values... - }, - NetworkInterfaceId: aws.String("String"), - PrivateIpAddress: aws.String("String"), - PrivateIpAddressConfigs: []*ec2.ScheduledInstancesPrivateIpAddressConfig{ - { // Required - Primary: aws.Bool(true), - PrivateIpAddress: aws.String("String"), - }, - // More values... - }, - SecondaryPrivateIpAddressCount: aws.Int64(1), - SubnetId: aws.String("String"), - }, - // More values... - }, - Placement: &ec2.ScheduledInstancesPlacement{ - AvailabilityZone: aws.String("String"), - GroupName: aws.String("String"), - }, - RamdiskId: aws.String("String"), - SecurityGroupIds: []*string{ - aws.String("String"), // Required - // More values... - }, - SubnetId: aws.String("String"), - UserData: aws.String("String"), - }, - ScheduledInstanceId: aws.String("String"), // Required - ClientToken: aws.String("String"), - DryRun: aws.Bool(true), - InstanceCount: aws.Int64(1), - } - resp, err := svc.RunScheduledInstances(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleEC2_StartInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.StartInstancesInput{ InstanceIds: []*string{ // Required @@ -5710,7 +5070,7 @@ func ExampleEC2_StartInstances() { } func ExampleEC2_StopInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.StopInstancesInput{ InstanceIds: []*string{ // Required @@ -5734,7 +5094,7 @@ func ExampleEC2_StopInstances() { } func ExampleEC2_TerminateInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.TerminateInstancesInput{ InstanceIds: []*string{ // Required @@ -5757,7 +5117,7 @@ func ExampleEC2_TerminateInstances() { } func ExampleEC2_UnassignPrivateIpAddresses() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.UnassignPrivateIpAddressesInput{ NetworkInterfaceId: aws.String("String"), // Required @@ -5780,7 +5140,7 @@ func ExampleEC2_UnassignPrivateIpAddresses() { } func ExampleEC2_UnmonitorInstances() { - svc := ec2.New(session.New()) + svc := ec2.New(nil) params := &ec2.UnmonitorInstancesInput{ InstanceIds: []*string{ // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/service.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/service.go index 9d5fa8160..102c8fe02 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/service.go @@ -4,75 +4,52 @@ package ec2 import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/ec2query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/ec2query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Amazon Elastic Compute Cloud (Amazon EC2) provides resizable computing capacity // in the Amazon Web Services (AWS) cloud. Using Amazon EC2 eliminates your // need to invest in hardware up front, so you can develop and deploy applications // faster. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type EC2 struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "ec2" - -// New creates a new instance of the EC2 client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a EC2 client from just a session. -// svc := ec2.New(mySession) -// -// // Create a EC2 client with additional configuration -// svc := ec2.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *EC2 { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *EC2 { - svc := &EC2{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-10-01", - }, - handlers, - ), +// New returns a new EC2 client. +func New(config *aws.Config) *EC2 { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "ec2", + APIVersion: "2015-04-15", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(ec2query.Build) + service.Handlers.Unmarshal.PushBack(ec2query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(ec2query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(ec2query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &EC2{service} } // newRequest creates a new request for a EC2 operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/waiters.go deleted file mode 100644 index e263b0cef..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/ec2/waiters.go +++ /dev/null @@ -1,878 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package ec2 - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *EC2) WaitUntilBundleTaskComplete(input *DescribeBundleTasksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeBundleTasks", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "BundleTasks[].State", - Expected: "complete", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "BundleTasks[].State", - Expected: "failed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilConversionTaskCancelled(input *DescribeConversionTasksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeConversionTasks", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "ConversionTasks[].State", - Expected: "cancelled", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilConversionTaskCompleted(input *DescribeConversionTasksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeConversionTasks", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "ConversionTasks[].State", - Expected: "completed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "ConversionTasks[].State", - Expected: "cancelled", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "ConversionTasks[].State", - Expected: "cancelling", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilConversionTaskDeleted(input *DescribeConversionTasksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeConversionTasks", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "ConversionTasks[].State", - Expected: "deleted", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilCustomerGatewayAvailable(input *DescribeCustomerGatewaysInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeCustomerGateways", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "CustomerGateways[].State", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CustomerGateways[].State", - Expected: "deleted", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CustomerGateways[].State", - Expected: "deleting", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilExportTaskCancelled(input *DescribeExportTasksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeExportTasks", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "ExportTasks[].State", - Expected: "cancelled", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilExportTaskCompleted(input *DescribeExportTasksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeExportTasks", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "ExportTasks[].State", - Expected: "completed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilImageAvailable(input *DescribeImagesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeImages", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Images[].State", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Images[].State", - Expected: "failed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilImageExists(input *DescribeImagesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeImages", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "length(Images[]) > `0`", - Expected: true, - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "InvalidAMIID.NotFound", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilInstanceExists(input *DescribeInstancesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstances", - Delay: 5, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "length(Reservations[]) > `0`", - Expected: true, - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "InvalidInstanceID.NotFound", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilInstanceRunning(input *DescribeInstancesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstances", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Reservations[].Instances[].State.Name", - Expected: "running", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Reservations[].Instances[].State.Name", - Expected: "shutting-down", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Reservations[].Instances[].State.Name", - Expected: "terminated", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Reservations[].Instances[].State.Name", - Expected: "stopping", - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "InvalidInstanceID.NotFound", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilInstanceStatusOk(input *DescribeInstanceStatusInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstanceStatus", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "InstanceStatuses[].InstanceStatus.Status", - Expected: "ok", - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "InvalidInstanceID.NotFound", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilInstanceStopped(input *DescribeInstancesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstances", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Reservations[].Instances[].State.Name", - Expected: "stopped", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Reservations[].Instances[].State.Name", - Expected: "pending", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Reservations[].Instances[].State.Name", - Expected: "terminated", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilInstanceTerminated(input *DescribeInstancesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstances", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Reservations[].Instances[].State.Name", - Expected: "terminated", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Reservations[].Instances[].State.Name", - Expected: "pending", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Reservations[].Instances[].State.Name", - Expected: "stopping", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilKeyPairExists(input *DescribeKeyPairsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeKeyPairs", - Delay: 5, - MaxAttempts: 6, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "length(KeyPairs[].KeyName) > `0`", - Expected: true, - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "InvalidKeyPair.NotFound", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilNatGatewayAvailable(input *DescribeNatGatewaysInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeNatGateways", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "NatGateways[].State", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "NatGateways[].State", - Expected: "failed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "NatGateways[].State", - Expected: "deleting", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "NatGateways[].State", - Expected: "deleted", - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "NatGatewayNotFound", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilNetworkInterfaceAvailable(input *DescribeNetworkInterfacesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeNetworkInterfaces", - Delay: 20, - MaxAttempts: 10, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "NetworkInterfaces[].Status", - Expected: "available", - }, - { - State: "failure", - Matcher: "error", - Argument: "", - Expected: "InvalidNetworkInterfaceID.NotFound", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilPasswordDataAvailable(input *GetPasswordDataInput) error { - waiterCfg := waiter.Config{ - Operation: "GetPasswordData", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "length(PasswordData) > `0`", - Expected: true, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilSnapshotCompleted(input *DescribeSnapshotsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeSnapshots", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Snapshots[].State", - Expected: "completed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilSpotInstanceRequestFulfilled(input *DescribeSpotInstanceRequestsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeSpotInstanceRequests", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "SpotInstanceRequests[].Status.Code", - Expected: "fulfilled", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "SpotInstanceRequests[].Status.Code", - Expected: "schedule-expired", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "SpotInstanceRequests[].Status.Code", - Expected: "canceled-before-fulfillment", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "SpotInstanceRequests[].Status.Code", - Expected: "bad-parameters", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "SpotInstanceRequests[].Status.Code", - Expected: "system-error", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilSubnetAvailable(input *DescribeSubnetsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeSubnets", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Subnets[].State", - Expected: "available", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilSystemStatusOk(input *DescribeInstanceStatusInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstanceStatus", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "InstanceStatuses[].SystemStatus.Status", - Expected: "ok", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilVolumeAvailable(input *DescribeVolumesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeVolumes", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Volumes[].State", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Volumes[].State", - Expected: "deleted", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilVolumeDeleted(input *DescribeVolumesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeVolumes", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Volumes[].State", - Expected: "deleted", - }, - { - State: "success", - Matcher: "error", - Argument: "", - Expected: "InvalidVolume.NotFound", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilVolumeInUse(input *DescribeVolumesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeVolumes", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Volumes[].State", - Expected: "in-use", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Volumes[].State", - Expected: "deleted", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilVpcAvailable(input *DescribeVpcsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeVpcs", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Vpcs[].State", - Expected: "available", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilVpcPeeringConnectionExists(input *DescribeVpcPeeringConnectionsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeVpcPeeringConnections", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 200, - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "InvalidVpcPeeringConnectionID.NotFound", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilVpnConnectionAvailable(input *DescribeVpnConnectionsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeVpnConnections", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "VpnConnections[].State", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "VpnConnections[].State", - Expected: "deleting", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "VpnConnections[].State", - Expected: "deleted", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EC2) WaitUntilVpnConnectionDeleted(input *DescribeVpnConnectionsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeVpnConnections", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "VpnConnections[].State", - Expected: "deleted", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "VpnConnections[].State", - Expected: "pending", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go deleted file mode 100644 index 57a875905..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/api.go +++ /dev/null @@ -1,1743 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package ecr provides a client for Amazon EC2 Container Registry. -package ecr - -import ( - "time" - - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" -) - -const opBatchCheckLayerAvailability = "BatchCheckLayerAvailability" - -// BatchCheckLayerAvailabilityRequest generates a request for the BatchCheckLayerAvailability operation. -func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabilityInput) (req *request.Request, output *BatchCheckLayerAvailabilityOutput) { - op := &request.Operation{ - Name: opBatchCheckLayerAvailability, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &BatchCheckLayerAvailabilityInput{} - } - - req = c.newRequest(op, input, output) - output = &BatchCheckLayerAvailabilityOutput{} - req.Data = output - return -} - -// Check the availability of multiple image layers in a specified registry and -// repository. -// -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. -func (c *ECR) BatchCheckLayerAvailability(input *BatchCheckLayerAvailabilityInput) (*BatchCheckLayerAvailabilityOutput, error) { - req, out := c.BatchCheckLayerAvailabilityRequest(input) - err := req.Send() - return out, err -} - -const opBatchDeleteImage = "BatchDeleteImage" - -// BatchDeleteImageRequest generates a request for the BatchDeleteImage operation. -func (c *ECR) BatchDeleteImageRequest(input *BatchDeleteImageInput) (req *request.Request, output *BatchDeleteImageOutput) { - op := &request.Operation{ - Name: opBatchDeleteImage, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &BatchDeleteImageInput{} - } - - req = c.newRequest(op, input, output) - output = &BatchDeleteImageOutput{} - req.Data = output - return -} - -// Deletes a list of specified images within a specified repository. Images -// are specified with either imageTag or imageDigest. -func (c *ECR) BatchDeleteImage(input *BatchDeleteImageInput) (*BatchDeleteImageOutput, error) { - req, out := c.BatchDeleteImageRequest(input) - err := req.Send() - return out, err -} - -const opBatchGetImage = "BatchGetImage" - -// BatchGetImageRequest generates a request for the BatchGetImage operation. -func (c *ECR) BatchGetImageRequest(input *BatchGetImageInput) (req *request.Request, output *BatchGetImageOutput) { - op := &request.Operation{ - Name: opBatchGetImage, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &BatchGetImageInput{} - } - - req = c.newRequest(op, input, output) - output = &BatchGetImageOutput{} - req.Data = output - return -} - -// Gets detailed information for specified images within a specified repository. -// Images are specified with either imageTag or imageDigest. -func (c *ECR) BatchGetImage(input *BatchGetImageInput) (*BatchGetImageOutput, error) { - req, out := c.BatchGetImageRequest(input) - err := req.Send() - return out, err -} - -const opCompleteLayerUpload = "CompleteLayerUpload" - -// CompleteLayerUploadRequest generates a request for the CompleteLayerUpload operation. -func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req *request.Request, output *CompleteLayerUploadOutput) { - op := &request.Operation{ - Name: opCompleteLayerUpload, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CompleteLayerUploadInput{} - } - - req = c.newRequest(op, input, output) - output = &CompleteLayerUploadOutput{} - req.Data = output - return -} - -// Inform Amazon ECR that the image layer upload for a specified registry, repository -// name, and upload ID, has completed. You can optionally provide a sha256 digest -// of the image layer for data validation purposes. -// -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. -func (c *ECR) CompleteLayerUpload(input *CompleteLayerUploadInput) (*CompleteLayerUploadOutput, error) { - req, out := c.CompleteLayerUploadRequest(input) - err := req.Send() - return out, err -} - -const opCreateRepository = "CreateRepository" - -// CreateRepositoryRequest generates a request for the CreateRepository operation. -func (c *ECR) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput) { - op := &request.Operation{ - Name: opCreateRepository, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateRepositoryInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateRepositoryOutput{} - req.Data = output - return -} - -// Creates an image repository. -func (c *ECR) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) { - req, out := c.CreateRepositoryRequest(input) - err := req.Send() - return out, err -} - -const opDeleteRepository = "DeleteRepository" - -// DeleteRepositoryRequest generates a request for the DeleteRepository operation. -func (c *ECR) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput) { - op := &request.Operation{ - Name: opDeleteRepository, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteRepositoryInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteRepositoryOutput{} - req.Data = output - return -} - -// Deletes an existing image repository. If a repository contains images, you -// must use the force option to delete it. -func (c *ECR) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) { - req, out := c.DeleteRepositoryRequest(input) - err := req.Send() - return out, err -} - -const opDeleteRepositoryPolicy = "DeleteRepositoryPolicy" - -// DeleteRepositoryPolicyRequest generates a request for the DeleteRepositoryPolicy operation. -func (c *ECR) DeleteRepositoryPolicyRequest(input *DeleteRepositoryPolicyInput) (req *request.Request, output *DeleteRepositoryPolicyOutput) { - op := &request.Operation{ - Name: opDeleteRepositoryPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteRepositoryPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteRepositoryPolicyOutput{} - req.Data = output - return -} - -// Deletes the repository policy from a specified repository. -func (c *ECR) DeleteRepositoryPolicy(input *DeleteRepositoryPolicyInput) (*DeleteRepositoryPolicyOutput, error) { - req, out := c.DeleteRepositoryPolicyRequest(input) - err := req.Send() - return out, err -} - -const opDescribeRepositories = "DescribeRepositories" - -// DescribeRepositoriesRequest generates a request for the DescribeRepositories operation. -func (c *ECR) DescribeRepositoriesRequest(input *DescribeRepositoriesInput) (req *request.Request, output *DescribeRepositoriesOutput) { - op := &request.Operation{ - Name: opDescribeRepositories, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeRepositoriesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeRepositoriesOutput{} - req.Data = output - return -} - -// Describes image repositories in a registry. -func (c *ECR) DescribeRepositories(input *DescribeRepositoriesInput) (*DescribeRepositoriesOutput, error) { - req, out := c.DescribeRepositoriesRequest(input) - err := req.Send() - return out, err -} - -const opGetAuthorizationToken = "GetAuthorizationToken" - -// GetAuthorizationTokenRequest generates a request for the GetAuthorizationToken operation. -func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (req *request.Request, output *GetAuthorizationTokenOutput) { - op := &request.Operation{ - Name: opGetAuthorizationToken, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetAuthorizationTokenInput{} - } - - req = c.newRequest(op, input, output) - output = &GetAuthorizationTokenOutput{} - req.Data = output - return -} - -// Retrieves a token that is valid for a specified registry for 12 hours. This -// command allows you to use the docker CLI to push and pull images with Amazon -// ECR. If you do not specify a registry, the default registry is assumed. -// -// The authorizationToken returned for each registry specified is a base64 -// encoded string that can be decoded and used in a docker login command to -// authenticate to a registry. The AWS CLI offers an aws ecr get-login command -// that simplifies the login process. -func (c *ECR) GetAuthorizationToken(input *GetAuthorizationTokenInput) (*GetAuthorizationTokenOutput, error) { - req, out := c.GetAuthorizationTokenRequest(input) - err := req.Send() - return out, err -} - -const opGetDownloadUrlForLayer = "GetDownloadUrlForLayer" - -// GetDownloadUrlForLayerRequest generates a request for the GetDownloadUrlForLayer operation. -func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) (req *request.Request, output *GetDownloadUrlForLayerOutput) { - op := &request.Operation{ - Name: opGetDownloadUrlForLayer, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetDownloadUrlForLayerInput{} - } - - req = c.newRequest(op, input, output) - output = &GetDownloadUrlForLayerOutput{} - req.Data = output - return -} - -// Retrieves the pre-signed Amazon S3 download URL corresponding to an image -// layer. You can only get URLs for image layers that are referenced in an image. -// -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. -func (c *ECR) GetDownloadUrlForLayer(input *GetDownloadUrlForLayerInput) (*GetDownloadUrlForLayerOutput, error) { - req, out := c.GetDownloadUrlForLayerRequest(input) - err := req.Send() - return out, err -} - -const opGetRepositoryPolicy = "GetRepositoryPolicy" - -// GetRepositoryPolicyRequest generates a request for the GetRepositoryPolicy operation. -func (c *ECR) GetRepositoryPolicyRequest(input *GetRepositoryPolicyInput) (req *request.Request, output *GetRepositoryPolicyOutput) { - op := &request.Operation{ - Name: opGetRepositoryPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetRepositoryPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &GetRepositoryPolicyOutput{} - req.Data = output - return -} - -// Retrieves the repository policy for a specified repository. -func (c *ECR) GetRepositoryPolicy(input *GetRepositoryPolicyInput) (*GetRepositoryPolicyOutput, error) { - req, out := c.GetRepositoryPolicyRequest(input) - err := req.Send() - return out, err -} - -const opInitiateLayerUpload = "InitiateLayerUpload" - -// InitiateLayerUploadRequest generates a request for the InitiateLayerUpload operation. -func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req *request.Request, output *InitiateLayerUploadOutput) { - op := &request.Operation{ - Name: opInitiateLayerUpload, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &InitiateLayerUploadInput{} - } - - req = c.newRequest(op, input, output) - output = &InitiateLayerUploadOutput{} - req.Data = output - return -} - -// Notify Amazon ECR that you intend to upload an image layer. -// -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. -func (c *ECR) InitiateLayerUpload(input *InitiateLayerUploadInput) (*InitiateLayerUploadOutput, error) { - req, out := c.InitiateLayerUploadRequest(input) - err := req.Send() - return out, err -} - -const opListImages = "ListImages" - -// ListImagesRequest generates a request for the ListImages operation. -func (c *ECR) ListImagesRequest(input *ListImagesInput) (req *request.Request, output *ListImagesOutput) { - op := &request.Operation{ - Name: opListImages, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListImagesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListImagesOutput{} - req.Data = output - return -} - -// Lists all the image IDs for a given repository. -func (c *ECR) ListImages(input *ListImagesInput) (*ListImagesOutput, error) { - req, out := c.ListImagesRequest(input) - err := req.Send() - return out, err -} - -const opPutImage = "PutImage" - -// PutImageRequest generates a request for the PutImage operation. -func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, output *PutImageOutput) { - op := &request.Operation{ - Name: opPutImage, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutImageInput{} - } - - req = c.newRequest(op, input, output) - output = &PutImageOutput{} - req.Data = output - return -} - -// Creates or updates the image manifest associated with an image. -// -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. -func (c *ECR) PutImage(input *PutImageInput) (*PutImageOutput, error) { - req, out := c.PutImageRequest(input) - err := req.Send() - return out, err -} - -const opSetRepositoryPolicy = "SetRepositoryPolicy" - -// SetRepositoryPolicyRequest generates a request for the SetRepositoryPolicy operation. -func (c *ECR) SetRepositoryPolicyRequest(input *SetRepositoryPolicyInput) (req *request.Request, output *SetRepositoryPolicyOutput) { - op := &request.Operation{ - Name: opSetRepositoryPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SetRepositoryPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &SetRepositoryPolicyOutput{} - req.Data = output - return -} - -// Applies a repository policy on a specified repository to control access permissions. -func (c *ECR) SetRepositoryPolicy(input *SetRepositoryPolicyInput) (*SetRepositoryPolicyOutput, error) { - req, out := c.SetRepositoryPolicyRequest(input) - err := req.Send() - return out, err -} - -const opUploadLayerPart = "UploadLayerPart" - -// UploadLayerPartRequest generates a request for the UploadLayerPart operation. -func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request.Request, output *UploadLayerPartOutput) { - op := &request.Operation{ - Name: opUploadLayerPart, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UploadLayerPartInput{} - } - - req = c.newRequest(op, input, output) - output = &UploadLayerPartOutput{} - req.Data = output - return -} - -// Uploads an image layer part to Amazon ECR. -// -// This operation is used by the Amazon ECR proxy, and it is not intended -// for general use by customers. Use the docker CLI to pull, tag, and push images. -func (c *ECR) UploadLayerPart(input *UploadLayerPartInput) (*UploadLayerPartOutput, error) { - req, out := c.UploadLayerPartRequest(input) - err := req.Send() - return out, err -} - -// An object representing authorization data for an Amazon ECR registry. -type AuthorizationData struct { - _ struct{} `type:"structure"` - - // A base64-encoded string that contains authorization data for the specified - // Amazon ECR registry. When the string is decoded, it is presented in the format - // user:password for private registry authentication using docker login. - AuthorizationToken *string `locationName:"authorizationToken" type:"string"` - - // The Unix time in seconds and milliseconds when the authorization token expires. - // Authorization tokens are valid for 12 hours. - ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp" timestampFormat:"unix"` - - // The registry URL to use for this authorization token in a docker login command. - // The Amazon ECR registry URL format is https://aws_account_id.dkr.ecr.region.amazonaws.com. - // For example, https://012345678910.dkr.ecr.us-east-1.amazonaws.com.. - ProxyEndpoint *string `locationName:"proxyEndpoint" type:"string"` -} - -// String returns the string representation -func (s AuthorizationData) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AuthorizationData) GoString() string { - return s.String() -} - -type BatchCheckLayerAvailabilityInput struct { - _ struct{} `type:"structure"` - - // The digests of the image layers to check. - LayerDigests []*string `locationName:"layerDigests" min:"1" type:"list" required:"true"` - - // The AWS account ID associated with the registry that contains the image layers - // to check. If you do not specify a registry, the default registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository that is associated with the image layers to check. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s BatchCheckLayerAvailabilityInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchCheckLayerAvailabilityInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchCheckLayerAvailabilityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchCheckLayerAvailabilityInput"} - if s.LayerDigests == nil { - invalidParams.Add(request.NewErrParamRequired("LayerDigests")) - } - if s.LayerDigests != nil && len(s.LayerDigests) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LayerDigests", 1)) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type BatchCheckLayerAvailabilityOutput struct { - _ struct{} `type:"structure"` - - // Any failures associated with the call. - Failures []*LayerFailure `locationName:"failures" type:"list"` - - // A list of image layer objects corresponding to the image layer references - // in the request. - Layers []*Layer `locationName:"layers" type:"list"` -} - -// String returns the string representation -func (s BatchCheckLayerAvailabilityOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchCheckLayerAvailabilityOutput) GoString() string { - return s.String() -} - -// Deletes specified images within a specified repository. Images are specified -// with either the imageTag or imageDigest. -type BatchDeleteImageInput struct { - _ struct{} `type:"structure"` - - // A list of image ID references that correspond to images to delete. The format - // of the imageIds reference is imageTag=tag or imageDigest=digest. - ImageIds []*ImageIdentifier `locationName:"imageIds" min:"1" type:"list" required:"true"` - - // The AWS account ID associated with the registry that contains the image to - // delete. If you do not specify a registry, the default registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The repository that contains the image to delete. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s BatchDeleteImageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchDeleteImageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchDeleteImageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchDeleteImageInput"} - if s.ImageIds == nil { - invalidParams.Add(request.NewErrParamRequired("ImageIds")) - } - if s.ImageIds != nil && len(s.ImageIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ImageIds", 1)) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type BatchDeleteImageOutput struct { - _ struct{} `type:"structure"` - - // Any failures associated with the call. - Failures []*ImageFailure `locationName:"failures" type:"list"` - - // The image IDs of the deleted images. - ImageIds []*ImageIdentifier `locationName:"imageIds" min:"1" type:"list"` -} - -// String returns the string representation -func (s BatchDeleteImageOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchDeleteImageOutput) GoString() string { - return s.String() -} - -type BatchGetImageInput struct { - _ struct{} `type:"structure"` - - // A list of image ID references that correspond to images to describe. The - // format of the imageIds reference is imageTag=tag or imageDigest=digest. - ImageIds []*ImageIdentifier `locationName:"imageIds" min:"1" type:"list" required:"true"` - - // The AWS account ID associated with the registry that contains the images - // to describe. If you do not specify a registry, the default registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The repository that contains the images to describe. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s BatchGetImageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchGetImageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchGetImageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchGetImageInput"} - if s.ImageIds == nil { - invalidParams.Add(request.NewErrParamRequired("ImageIds")) - } - if s.ImageIds != nil && len(s.ImageIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ImageIds", 1)) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type BatchGetImageOutput struct { - _ struct{} `type:"structure"` - - // Any failures associated with the call. - Failures []*ImageFailure `locationName:"failures" type:"list"` - - // A list of image objects corresponding to the image references in the request. - Images []*Image `locationName:"images" type:"list"` -} - -// String returns the string representation -func (s BatchGetImageOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchGetImageOutput) GoString() string { - return s.String() -} - -type CompleteLayerUploadInput struct { - _ struct{} `type:"structure"` - - // The sha256 digest of the image layer. - LayerDigests []*string `locationName:"layerDigests" min:"1" type:"list" required:"true"` - - // The AWS account ID associated with the registry to which to upload layers. - // If you do not specify a registry, the default registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository to associate with the image layer. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` - - // The upload ID from a previous InitiateLayerUpload operation to associate - // with the image layer. - UploadId *string `locationName:"uploadId" type:"string" required:"true"` -} - -// String returns the string representation -func (s CompleteLayerUploadInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CompleteLayerUploadInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CompleteLayerUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CompleteLayerUploadInput"} - if s.LayerDigests == nil { - invalidParams.Add(request.NewErrParamRequired("LayerDigests")) - } - if s.LayerDigests != nil && len(s.LayerDigests) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LayerDigests", 1)) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - if s.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CompleteLayerUploadOutput struct { - _ struct{} `type:"structure"` - - // The sha256 digest of the image layer. - LayerDigest *string `locationName:"layerDigest" type:"string"` - - // The registry ID associated with the request. - RegistryId *string `locationName:"registryId" type:"string"` - - // The repository name associated with the request. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"` - - // The upload ID associated with the layer. - UploadId *string `locationName:"uploadId" type:"string"` -} - -// String returns the string representation -func (s CompleteLayerUploadOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CompleteLayerUploadOutput) GoString() string { - return s.String() -} - -type CreateRepositoryInput struct { - _ struct{} `type:"structure"` - - // The name to use for the repository. The repository name may be specified - // on its own (such as nginx-web-app) or it can be prepended with a namespace - // to group the repository into a category (such as project-a/nginx-web-app). - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// 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) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateRepositoryOutput struct { - _ struct{} `type:"structure"` - - // Object representing a repository. - Repository *Repository `locationName:"repository" 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() -} - -type DeleteRepositoryInput struct { - _ struct{} `type:"structure"` - - // Force the deletion of the repository if it contains images. - Force *bool `locationName:"force" type:"boolean"` - - // The AWS account ID associated with the registry that contains the repository - // to delete. If you do not specify a registry, the default registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository to delete. - RepositoryName *string `locationName:"repositoryName" min:"2" 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) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteRepositoryOutput struct { - _ struct{} `type:"structure"` - - // Object representing a repository. - Repository *Repository `locationName:"repository" type:"structure"` -} - -// 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() -} - -type DeleteRepositoryPolicyInput struct { - _ struct{} `type:"structure"` - - // The AWS account ID associated with the registry that contains the repository - // policy to delete. If you do not specify a registry, the default registry - // is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository that is associated with the repository policy - // to delete. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteRepositoryPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRepositoryPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRepositoryPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryPolicyInput"} - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteRepositoryPolicyOutput struct { - _ struct{} `type:"structure"` - - // The JSON repository policy that was deleted from the repository. - PolicyText *string `locationName:"policyText" type:"string"` - - // The registry ID associated with the request. - RegistryId *string `locationName:"registryId" type:"string"` - - // The repository name associated with the request. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"` -} - -// String returns the string representation -func (s DeleteRepositoryPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRepositoryPolicyOutput) GoString() string { - return s.String() -} - -type DescribeRepositoriesInput struct { - _ struct{} `type:"structure"` - - // The maximum number of repository results returned by DescribeRepositories - // in paginated output. When this parameter is used, DescribeRepositories only - // returns maxResults results in a single page along with a nextToken response - // element. The remaining results of the initial request can be seen by sending - // another DescribeRepositories request with the returned nextToken value. This - // value can be between 1 and 100. If this parameter is not used, then DescribeRepositories - // returns up to 100 results and a nextToken value, if applicable. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - - // The nextToken value returned from a previous paginated DescribeRepositories - // request where maxResults was used and the results exceeded the value of that - // parameter. Pagination continues from the end of the previous results that - // returned the nextToken value. This value is null when there are no more results - // to return. - NextToken *string `locationName:"nextToken" type:"string"` - - // The AWS account ID associated with the registry that contains the repositories - // to be described. If you do not specify a registry, the default registry is - // assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // A list of repositories to describe. If this parameter is omitted, then all - // repositories in a registry are described. - RepositoryNames []*string `locationName:"repositoryNames" min:"1" type:"list"` -} - -// String returns the string representation -func (s DescribeRepositoriesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeRepositoriesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeRepositoriesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeRepositoriesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.RepositoryNames != nil && len(s.RepositoryNames) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryNames", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeRepositoriesOutput struct { - _ struct{} `type:"structure"` - - // The nextToken value to include in a future DescribeRepositories request. - // When the results of a DescribeRepositories request exceed maxResults, this - // value can be used to retrieve the next page of results. This value is null - // when there are no more results to return. - NextToken *string `locationName:"nextToken" type:"string"` - - // A list of repository objects corresponding to valid repositories. - Repositories []*Repository `locationName:"repositories" type:"list"` -} - -// String returns the string representation -func (s DescribeRepositoriesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeRepositoriesOutput) GoString() string { - return s.String() -} - -type GetAuthorizationTokenInput struct { - _ struct{} `type:"structure"` - - // A list of AWS account IDs that are associated with the registries for which - // to get authorization tokens. If you do not specify a registry, the default - // registry is assumed. - RegistryIds []*string `locationName:"registryIds" min:"1" type:"list"` -} - -// String returns the string representation -func (s GetAuthorizationTokenInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetAuthorizationTokenInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetAuthorizationTokenInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAuthorizationTokenInput"} - if s.RegistryIds != nil && len(s.RegistryIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RegistryIds", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetAuthorizationTokenOutput struct { - _ struct{} `type:"structure"` - - // A list of authorization token data objects that correspond to the registryIds - // values in the request. - AuthorizationData []*AuthorizationData `locationName:"authorizationData" type:"list"` -} - -// String returns the string representation -func (s GetAuthorizationTokenOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetAuthorizationTokenOutput) GoString() string { - return s.String() -} - -type GetDownloadUrlForLayerInput struct { - _ struct{} `type:"structure"` - - // The digest of the image layer to download. - LayerDigest *string `locationName:"layerDigest" type:"string" required:"true"` - - // The AWS account ID associated with the registry that contains the image layer - // to download. If you do not specify a registry, the default registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository that is associated with the image layer to download. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetDownloadUrlForLayerInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetDownloadUrlForLayerInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDownloadUrlForLayerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDownloadUrlForLayerInput"} - if s.LayerDigest == nil { - invalidParams.Add(request.NewErrParamRequired("LayerDigest")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetDownloadUrlForLayerOutput struct { - _ struct{} `type:"structure"` - - // The pre-signed Amazon S3 download URL for the requested layer. - DownloadUrl *string `locationName:"downloadUrl" type:"string"` - - // The digest of the image layer to download. - LayerDigest *string `locationName:"layerDigest" type:"string"` -} - -// String returns the string representation -func (s GetDownloadUrlForLayerOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetDownloadUrlForLayerOutput) GoString() string { - return s.String() -} - -type GetRepositoryPolicyInput struct { - _ struct{} `type:"structure"` - - // The AWS account ID associated with the registry that contains the repository. - // If you do not specify a registry, the default registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository whose policy you want to retrieve. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetRepositoryPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetRepositoryPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRepositoryPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRepositoryPolicyInput"} - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetRepositoryPolicyOutput struct { - _ struct{} `type:"structure"` - - // The JSON repository policy text associated with the repository. - PolicyText *string `locationName:"policyText" type:"string"` - - // The registry ID associated with the request. - RegistryId *string `locationName:"registryId" type:"string"` - - // The repository name associated with the request. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"` -} - -// String returns the string representation -func (s GetRepositoryPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetRepositoryPolicyOutput) GoString() string { - return s.String() -} - -// Object representing an image. -type Image struct { - _ struct{} `type:"structure"` - - // An object containing the image tag and image digest associated with an image. - ImageId *ImageIdentifier `locationName:"imageId" type:"structure"` - - // The image manifest associated with the image. - ImageManifest *string `locationName:"imageManifest" type:"string"` - - // The AWS account ID associated with the registry containing the image. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository associated with the image. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"` -} - -// String returns the string representation -func (s Image) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Image) GoString() string { - return s.String() -} - -type ImageFailure struct { - _ struct{} `type:"structure"` - - // The code associated with the failure. - FailureCode *string `locationName:"failureCode" type:"string" enum:"ImageFailureCode"` - - // The reason for the failure. - FailureReason *string `locationName:"failureReason" type:"string"` - - // The image ID associated with the failure. - ImageId *ImageIdentifier `locationName:"imageId" type:"structure"` -} - -// String returns the string representation -func (s ImageFailure) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ImageFailure) GoString() string { - return s.String() -} - -type ImageIdentifier struct { - _ struct{} `type:"structure"` - - // The sha256 digest of the image manifest. - ImageDigest *string `locationName:"imageDigest" type:"string"` - - // The tag used for the image. - ImageTag *string `locationName:"imageTag" type:"string"` -} - -// String returns the string representation -func (s ImageIdentifier) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ImageIdentifier) GoString() string { - return s.String() -} - -type InitiateLayerUploadInput struct { - _ struct{} `type:"structure"` - - // The AWS account ID associated with the registry that you intend to upload - // layers to. If you do not specify a registry, the default registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository that you intend to upload layers to. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s InitiateLayerUploadInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s InitiateLayerUploadInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *InitiateLayerUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InitiateLayerUploadInput"} - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type InitiateLayerUploadOutput struct { - _ struct{} `type:"structure"` - - // The size, in bytes, that Amazon ECR expects future layer part uploads to - // be. - PartSize *int64 `locationName:"partSize" type:"long"` - - // The upload ID for the layer upload. This parameter is passed to further UploadLayerPart - // and CompleteLayerUpload operations. - UploadId *string `locationName:"uploadId" type:"string"` -} - -// String returns the string representation -func (s InitiateLayerUploadOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s InitiateLayerUploadOutput) GoString() string { - return s.String() -} - -type Layer struct { - _ struct{} `type:"structure"` - - // The availability status of the image layer. Valid values are AVAILABLE and - // UNAVAILABLE. - LayerAvailability *string `locationName:"layerAvailability" type:"string" enum:"LayerAvailability"` - - // The sha256 digest of the image layer. - LayerDigest *string `locationName:"layerDigest" type:"string"` - - // The size, in bytes, of the image layer. - LayerSize *int64 `locationName:"layerSize" type:"long"` -} - -// String returns the string representation -func (s Layer) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Layer) GoString() string { - return s.String() -} - -type LayerFailure struct { - _ struct{} `type:"structure"` - - // The failure code associated with the failure. - FailureCode *string `locationName:"failureCode" type:"string" enum:"LayerFailureCode"` - - // The reason for the failure. - FailureReason *string `locationName:"failureReason" type:"string"` - - // The layer digest associated with the failure. - LayerDigest *string `locationName:"layerDigest" type:"string"` -} - -// String returns the string representation -func (s LayerFailure) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s LayerFailure) GoString() string { - return s.String() -} - -type ListImagesInput struct { - _ struct{} `type:"structure"` - - // The maximum number of image results returned by ListImages in paginated output. - // When this parameter is used, ListImages only returns maxResults results in - // a single page along with a nextToken response element. The remaining results - // of the initial request can be seen by sending another ListImages request - // with the returned nextToken value. This value can be between 1 and 100. If - // this parameter is not used, then ListImages returns up to 100 results and - // a nextToken value, if applicable. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - - // The nextToken value returned from a previous paginated ListImages request - // where maxResults was used and the results exceeded the value of that parameter. - // Pagination continues from the end of the previous results that returned the - // nextToken value. This value is null when there are no more results to return. - NextToken *string `locationName:"nextToken" type:"string"` - - // The AWS account ID associated with the registry that contains the repository - // to list images in. If you do not specify a registry, the default registry - // is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The repository whose image IDs are to be listed. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListImagesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListImagesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListImagesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListImagesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListImagesOutput struct { - _ struct{} `type:"structure"` - - // The list of image IDs for the requested repository. - ImageIds []*ImageIdentifier `locationName:"imageIds" min:"1" type:"list"` - - // The nextToken value to include in a future ListImages request. When the results - // of a ListImages request exceed maxResults, this value can be used to retrieve - // the next page of results. This value is null when there are no more results - // to return. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s ListImagesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListImagesOutput) GoString() string { - return s.String() -} - -type PutImageInput struct { - _ struct{} `type:"structure"` - - // The image manifest corresponding to the image to be uploaded. - ImageManifest *string `locationName:"imageManifest" type:"string" required:"true"` - - // The AWS account ID associated with the registry that contains the repository - // in which to put the image. If you do not specify a registry, the default - // registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository in which to put the image. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s PutImageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutImageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutImageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutImageInput"} - if s.ImageManifest == nil { - invalidParams.Add(request.NewErrParamRequired("ImageManifest")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type PutImageOutput struct { - _ struct{} `type:"structure"` - - // Details of the image uploaded. - Image *Image `locationName:"image" type:"structure"` -} - -// String returns the string representation -func (s PutImageOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutImageOutput) GoString() string { - return s.String() -} - -// Object representing a repository. -type Repository struct { - _ struct{} `type:"structure"` - - // The AWS account ID associated with the registry that contains the repository. - RegistryId *string `locationName:"registryId" type:"string"` - - // The Amazon Resource Name (ARN) that identifies the repository. The ARN contains - // the arn:aws:ecr namespace, followed by the region of the repository, the - // AWS account ID of the repository owner, the repository namespace, and then - // the repository name. For example, arn:aws:ecr:region:012345678910:repository/test. - RepositoryArn *string `locationName:"repositoryArn" type:"string"` - - // The name of the repository. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"` - - // The URI for the repository. You can use this URI for Docker push and pull - // operations. - RepositoryUri *string `locationName:"repositoryUri" type:"string"` -} - -// String returns the string representation -func (s Repository) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Repository) GoString() string { - return s.String() -} - -type SetRepositoryPolicyInput struct { - _ struct{} `type:"structure"` - - // If the policy you are attempting to set on a repository policy would prevent - // you from setting another policy in the future, you must force the SetRepositoryPolicy - // operation. This is intended to prevent accidental repository lock outs. - Force *bool `locationName:"force" type:"boolean"` - - // The JSON repository policy text to apply to the repository. - PolicyText *string `locationName:"policyText" type:"string" required:"true"` - - // The AWS account ID associated with the registry that contains the repository. - // If you do not specify a registry, the default registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository to receive the policy. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s SetRepositoryPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetRepositoryPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetRepositoryPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetRepositoryPolicyInput"} - if s.PolicyText == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyText")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type SetRepositoryPolicyOutput struct { - _ struct{} `type:"structure"` - - // The JSON repository policy text applied to the repository. - PolicyText *string `locationName:"policyText" type:"string"` - - // The registry ID associated with the request. - RegistryId *string `locationName:"registryId" type:"string"` - - // The repository name associated with the request. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"` -} - -// String returns the string representation -func (s SetRepositoryPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetRepositoryPolicyOutput) GoString() string { - return s.String() -} - -type UploadLayerPartInput struct { - _ struct{} `type:"structure"` - - // The base64-encoded layer part payload. - // - // LayerPartBlob is automatically base64 encoded/decoded by the SDK. - LayerPartBlob []byte `locationName:"layerPartBlob" type:"blob" required:"true"` - - // The integer value of the first byte of the layer part. - PartFirstByte *int64 `locationName:"partFirstByte" type:"long" required:"true"` - - // The integer value of the last byte of the layer part. - PartLastByte *int64 `locationName:"partLastByte" type:"long" required:"true"` - - // The AWS account ID associated with the registry that you are uploading layer - // parts to. If you do not specify a registry, the default registry is assumed. - RegistryId *string `locationName:"registryId" type:"string"` - - // The name of the repository that you are uploading layer parts to. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` - - // The upload ID from a previous InitiateLayerUpload operation to associate - // with the layer part upload. - UploadId *string `locationName:"uploadId" type:"string" required:"true"` -} - -// String returns the string representation -func (s UploadLayerPartInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UploadLayerPartInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UploadLayerPartInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UploadLayerPartInput"} - if s.LayerPartBlob == nil { - invalidParams.Add(request.NewErrParamRequired("LayerPartBlob")) - } - if s.PartFirstByte == nil { - invalidParams.Add(request.NewErrParamRequired("PartFirstByte")) - } - if s.PartLastByte == nil { - invalidParams.Add(request.NewErrParamRequired("PartLastByte")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) - } - if s.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UploadLayerPartOutput struct { - _ struct{} `type:"structure"` - - // The integer value of the last byte received in the request. - LastByteReceived *int64 `locationName:"lastByteReceived" type:"long"` - - // The registry ID associated with the request. - RegistryId *string `locationName:"registryId" type:"string"` - - // The repository name associated with the request. - RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"` - - // The upload ID associated with the request. - UploadId *string `locationName:"uploadId" type:"string"` -} - -// String returns the string representation -func (s UploadLayerPartOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UploadLayerPartOutput) GoString() string { - return s.String() -} - -const ( - // @enum ImageFailureCode - ImageFailureCodeInvalidImageDigest = "InvalidImageDigest" - // @enum ImageFailureCode - ImageFailureCodeInvalidImageTag = "InvalidImageTag" - // @enum ImageFailureCode - ImageFailureCodeImageTagDoesNotMatchDigest = "ImageTagDoesNotMatchDigest" - // @enum ImageFailureCode - ImageFailureCodeImageNotFound = "ImageNotFound" - // @enum ImageFailureCode - ImageFailureCodeMissingDigestAndTag = "MissingDigestAndTag" -) - -const ( - // @enum LayerAvailability - LayerAvailabilityAvailable = "AVAILABLE" - // @enum LayerAvailability - LayerAvailabilityUnavailable = "UNAVAILABLE" -) - -const ( - // @enum LayerFailureCode - LayerFailureCodeInvalidLayerDigest = "InvalidLayerDigest" - // @enum LayerFailureCode - LayerFailureCodeMissingLayerDigest = "MissingLayerDigest" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go deleted file mode 100644 index f98fda647..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/ecriface/interface.go +++ /dev/null @@ -1,78 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package ecriface provides an interface for the Amazon EC2 Container Registry. -package ecriface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/ecr" -) - -// ECRAPI is the interface type for ecr.ECR. -type ECRAPI interface { - BatchCheckLayerAvailabilityRequest(*ecr.BatchCheckLayerAvailabilityInput) (*request.Request, *ecr.BatchCheckLayerAvailabilityOutput) - - BatchCheckLayerAvailability(*ecr.BatchCheckLayerAvailabilityInput) (*ecr.BatchCheckLayerAvailabilityOutput, error) - - BatchDeleteImageRequest(*ecr.BatchDeleteImageInput) (*request.Request, *ecr.BatchDeleteImageOutput) - - BatchDeleteImage(*ecr.BatchDeleteImageInput) (*ecr.BatchDeleteImageOutput, error) - - BatchGetImageRequest(*ecr.BatchGetImageInput) (*request.Request, *ecr.BatchGetImageOutput) - - BatchGetImage(*ecr.BatchGetImageInput) (*ecr.BatchGetImageOutput, error) - - CompleteLayerUploadRequest(*ecr.CompleteLayerUploadInput) (*request.Request, *ecr.CompleteLayerUploadOutput) - - CompleteLayerUpload(*ecr.CompleteLayerUploadInput) (*ecr.CompleteLayerUploadOutput, error) - - CreateRepositoryRequest(*ecr.CreateRepositoryInput) (*request.Request, *ecr.CreateRepositoryOutput) - - CreateRepository(*ecr.CreateRepositoryInput) (*ecr.CreateRepositoryOutput, error) - - DeleteRepositoryRequest(*ecr.DeleteRepositoryInput) (*request.Request, *ecr.DeleteRepositoryOutput) - - DeleteRepository(*ecr.DeleteRepositoryInput) (*ecr.DeleteRepositoryOutput, error) - - DeleteRepositoryPolicyRequest(*ecr.DeleteRepositoryPolicyInput) (*request.Request, *ecr.DeleteRepositoryPolicyOutput) - - DeleteRepositoryPolicy(*ecr.DeleteRepositoryPolicyInput) (*ecr.DeleteRepositoryPolicyOutput, error) - - DescribeRepositoriesRequest(*ecr.DescribeRepositoriesInput) (*request.Request, *ecr.DescribeRepositoriesOutput) - - DescribeRepositories(*ecr.DescribeRepositoriesInput) (*ecr.DescribeRepositoriesOutput, error) - - GetAuthorizationTokenRequest(*ecr.GetAuthorizationTokenInput) (*request.Request, *ecr.GetAuthorizationTokenOutput) - - GetAuthorizationToken(*ecr.GetAuthorizationTokenInput) (*ecr.GetAuthorizationTokenOutput, error) - - GetDownloadUrlForLayerRequest(*ecr.GetDownloadUrlForLayerInput) (*request.Request, *ecr.GetDownloadUrlForLayerOutput) - - GetDownloadUrlForLayer(*ecr.GetDownloadUrlForLayerInput) (*ecr.GetDownloadUrlForLayerOutput, error) - - GetRepositoryPolicyRequest(*ecr.GetRepositoryPolicyInput) (*request.Request, *ecr.GetRepositoryPolicyOutput) - - GetRepositoryPolicy(*ecr.GetRepositoryPolicyInput) (*ecr.GetRepositoryPolicyOutput, error) - - InitiateLayerUploadRequest(*ecr.InitiateLayerUploadInput) (*request.Request, *ecr.InitiateLayerUploadOutput) - - InitiateLayerUpload(*ecr.InitiateLayerUploadInput) (*ecr.InitiateLayerUploadOutput, error) - - ListImagesRequest(*ecr.ListImagesInput) (*request.Request, *ecr.ListImagesOutput) - - ListImages(*ecr.ListImagesInput) (*ecr.ListImagesOutput, error) - - PutImageRequest(*ecr.PutImageInput) (*request.Request, *ecr.PutImageOutput) - - PutImage(*ecr.PutImageInput) (*ecr.PutImageOutput, error) - - SetRepositoryPolicyRequest(*ecr.SetRepositoryPolicyInput) (*request.Request, *ecr.SetRepositoryPolicyOutput) - - SetRepositoryPolicy(*ecr.SetRepositoryPolicyInput) (*ecr.SetRepositoryPolicyOutput, error) - - UploadLayerPartRequest(*ecr.UploadLayerPartInput) (*request.Request, *ecr.UploadLayerPartOutput) - - UploadLayerPart(*ecr.UploadLayerPartInput) (*ecr.UploadLayerPartOutput, error) -} - -var _ ECRAPI = (*ecr.ECR)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go deleted file mode 100644 index 95e088bae..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/examples_test.go +++ /dev/null @@ -1,376 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package ecr_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/ecr" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleECR_BatchCheckLayerAvailability() { - svc := ecr.New(session.New()) - - params := &ecr.BatchCheckLayerAvailabilityInput{ - LayerDigests: []*string{ // Required - aws.String("BatchedOperationLayerDigest"), // Required - // More values... - }, - RepositoryName: aws.String("RepositoryName"), // Required - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.BatchCheckLayerAvailability(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_BatchDeleteImage() { - svc := ecr.New(session.New()) - - params := &ecr.BatchDeleteImageInput{ - ImageIds: []*ecr.ImageIdentifier{ // Required - { // Required - ImageDigest: aws.String("ImageDigest"), - ImageTag: aws.String("ImageTag"), - }, - // More values... - }, - RepositoryName: aws.String("RepositoryName"), // Required - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.BatchDeleteImage(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_BatchGetImage() { - svc := ecr.New(session.New()) - - params := &ecr.BatchGetImageInput{ - ImageIds: []*ecr.ImageIdentifier{ // Required - { // Required - ImageDigest: aws.String("ImageDigest"), - ImageTag: aws.String("ImageTag"), - }, - // More values... - }, - RepositoryName: aws.String("RepositoryName"), // Required - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.BatchGetImage(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_CompleteLayerUpload() { - svc := ecr.New(session.New()) - - params := &ecr.CompleteLayerUploadInput{ - LayerDigests: []*string{ // Required - aws.String("LayerDigest"), // Required - // More values... - }, - RepositoryName: aws.String("RepositoryName"), // Required - UploadId: aws.String("UploadId"), // Required - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.CompleteLayerUpload(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_CreateRepository() { - svc := ecr.New(session.New()) - - params := &ecr.CreateRepositoryInput{ - RepositoryName: aws.String("RepositoryName"), // Required - } - resp, err := svc.CreateRepository(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_DeleteRepository() { - svc := ecr.New(session.New()) - - params := &ecr.DeleteRepositoryInput{ - RepositoryName: aws.String("RepositoryName"), // Required - Force: aws.Bool(true), - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.DeleteRepository(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_DeleteRepositoryPolicy() { - svc := ecr.New(session.New()) - - params := &ecr.DeleteRepositoryPolicyInput{ - RepositoryName: aws.String("RepositoryName"), // Required - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.DeleteRepositoryPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_DescribeRepositories() { - svc := ecr.New(session.New()) - - params := &ecr.DescribeRepositoriesInput{ - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - RegistryId: aws.String("RegistryId"), - RepositoryNames: []*string{ - aws.String("RepositoryName"), // Required - // More values... - }, - } - resp, err := svc.DescribeRepositories(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_GetAuthorizationToken() { - svc := ecr.New(session.New()) - - params := &ecr.GetAuthorizationTokenInput{ - RegistryIds: []*string{ - aws.String("RegistryId"), // Required - // More values... - }, - } - resp, err := svc.GetAuthorizationToken(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_GetDownloadUrlForLayer() { - svc := ecr.New(session.New()) - - params := &ecr.GetDownloadUrlForLayerInput{ - LayerDigest: aws.String("LayerDigest"), // Required - RepositoryName: aws.String("RepositoryName"), // Required - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.GetDownloadUrlForLayer(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_GetRepositoryPolicy() { - svc := ecr.New(session.New()) - - params := &ecr.GetRepositoryPolicyInput{ - RepositoryName: aws.String("RepositoryName"), // Required - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.GetRepositoryPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_InitiateLayerUpload() { - svc := ecr.New(session.New()) - - params := &ecr.InitiateLayerUploadInput{ - RepositoryName: aws.String("RepositoryName"), // Required - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.InitiateLayerUpload(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_ListImages() { - svc := ecr.New(session.New()) - - params := &ecr.ListImagesInput{ - RepositoryName: aws.String("RepositoryName"), // Required - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.ListImages(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_PutImage() { - svc := ecr.New(session.New()) - - params := &ecr.PutImageInput{ - ImageManifest: aws.String("ImageManifest"), // Required - RepositoryName: aws.String("RepositoryName"), // Required - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.PutImage(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_SetRepositoryPolicy() { - svc := ecr.New(session.New()) - - params := &ecr.SetRepositoryPolicyInput{ - PolicyText: aws.String("RepositoryPolicyText"), // Required - RepositoryName: aws.String("RepositoryName"), // Required - Force: aws.Bool(true), - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.SetRepositoryPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleECR_UploadLayerPart() { - svc := ecr.New(session.New()) - - params := &ecr.UploadLayerPartInput{ - LayerPartBlob: []byte("PAYLOAD"), // Required - PartFirstByte: aws.Int64(1), // Required - PartLastByte: aws.Int64(1), // Required - RepositoryName: aws.String("RepositoryName"), // Required - UploadId: aws.String("UploadId"), // Required - RegistryId: aws.String("RegistryId"), - } - resp, err := svc.UploadLayerPart(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecr/service.go b/vendor/github.com/aws/aws-sdk-go/service/ecr/service.go deleted file mode 100644 index 0f6c6760e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/ecr/service.go +++ /dev/null @@ -1,93 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package ecr - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// Amazon EC2 Container Registry (Amazon ECR) is a managed AWS Docker registry -// service. Customers can use the familiar Docker CLI to push, pull, and manage -// images. Amazon ECR provides a secure, scalable, and reliable registry. Amazon -// ECR supports private Docker repositories with resource-based permissions -// using AWS IAM so that specific users or Amazon EC2 instances can access repositories -// and images. Developers can use the Docker CLI to author and manage images. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type ECR struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "ecr" - -// New creates a new instance of the ECR client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ECR client from just a session. -// svc := ecr.New(mySession) -// -// // Create a ECR client with additional configuration -// svc := ecr.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ECR { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ECR { - svc := &ECR{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-09-21", - JSONVersion: "1.1", - TargetPrefix: "AmazonEC2ContainerRegistry_V20150921", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a ECR operation and runs any -// custom request initialization. -func (c *ECR) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go index 07dbf8316..068c92a11 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/api.go @@ -4,7 +4,6 @@ package ecs import ( - "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -31,9 +30,9 @@ func (c *ECS) CreateClusterRequest(input *CreateClusterInput) (req *request.Requ return } -// Creates a new Amazon ECS cluster. By default, your account receives a default -// cluster when you launch your first container instance. However, you can create -// your own cluster with a unique name with the CreateCluster action. +// Creates a new Amazon ECS cluster. By default, your account will receive a +// default cluster when you launch your first container instance. However, you +// can create your own cluster with a unique name with the CreateCluster action. func (c *ECS) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) { req, out := c.CreateClusterRequest(input) err := req.Send() @@ -62,53 +61,7 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // Runs and maintains a desired number of tasks from a specified task definition. // If the number of tasks running in a service drops below desiredCount, Amazon -// ECS spawns another instantiation of the task in the specified cluster. To -// update an existing service, see UpdateService. -// -// In addition to maintaining the desired count of tasks in your service, you -// can optionally run your service behind a load balancer. The load balancer -// distributes traffic across the tasks that are associated with the service. -// -// You can optionally specify a deployment configuration for your service. -// During a deployment (which is triggered by changing the task definition of -// a service with an UpdateService operation), the service scheduler uses the -// minimumHealthyPercent and maximumPercent parameters to determine the deployment -// strategy. -// -// If the minimumHealthyPercent is below 100%, the scheduler can ignore the -// desiredCount temporarily during a deployment. For example, if your service -// has a desiredCount of four tasks, a minimumHealthyPercent of 50% allows the -// scheduler to stop two existing tasks before starting two new tasks. Tasks -// for services that do not use a load balancer are considered healthy if they -// are in the RUNNING state; tasks for services that do use a load balancer -// are considered healthy if they are in the RUNNING state and the container -// instance it is hosted on is reported as healthy by the load balancer. The -// default value for minimumHealthyPercent is 50% in the console and 100% for -// the AWS CLI, the AWS SDKs, and the APIs. -// -// The maximumPercent parameter represents an upper limit on the number of -// running tasks during a deployment, which enables you to define the deployment -// batch size. For example, if your service has a desiredCount of four tasks, -// a maximumPercent value of 200% starts four new tasks before stopping the -// four older tasks (provided that the cluster resources required to do this -// are available). The default value for maximumPercent is 200%. -// -// When the service scheduler launches new tasks, it attempts to balance them -// across the Availability Zones in your cluster with the following logic: -// -// Determine which of the container instances in your cluster can support -// your service's task definition (for example, they have the required CPU, -// memory, ports, and container instance attributes). -// -// Sort the valid container instances by the fewest number of running tasks -// for this service in the same Availability Zone as the instance. For example, -// if zone A has one running service task and zones B and C each have zero, -// valid container instances in either zone B or C are considered optimal for -// placement. -// -// Place the new service task on a valid container instance in an optimal -// Availability Zone (based on the previous steps), favoring container instances -// with the fewest number of running tasks for this service. +// ECS will spawn another instantiation of the task in the specified cluster. func (c *ECS) CreateService(input *CreateServiceInput) (*CreateServiceOutput, error) { req, out := c.CreateServiceRequest(input) err := req.Send() @@ -164,20 +117,7 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ return } -// Deletes a specified service within a cluster. You can delete a service if -// you have no running tasks in it and the desired task count is zero. If the -// service is actively maintaining tasks, you cannot delete it, and you must -// update the service to a desired task count of zero. For more information, -// see UpdateService. -// -// When you delete a service, if there are still running tasks that require -// cleanup, the service status moves from ACTIVE to DRAINING, and the service -// is no longer visible in the console or in ListServices API operations. After -// the tasks have stopped, then the service status moves from DRAINING to INACTIVE. -// Services in the DRAINING or INACTIVE status can still be viewed with DescribeServices -// API operations; however, in the future, INACTIVE services may be cleaned -// up and purged from Amazon ECS record keeping, and DescribeServices API operations -// on those services will return a ServiceNotFoundException error. +// Deletes a specified service within a cluster. func (c *ECS) DeleteService(input *DeleteServiceInput) (*DeleteServiceOutput, error) { req, out := c.DeleteServiceRequest(input) err := req.Send() @@ -205,7 +145,7 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta } // Deregisters an Amazon ECS container instance from the specified cluster. -// This instance is no longer available to run tasks. +// This instance will no longer be available to run tasks. // // If you intend to use the container instance for some other purpose after // deregistration, you should stop all of the tasks running on the container @@ -216,10 +156,8 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta // but it does not terminate the EC2 instance; if you are finished using the // instance, be sure to terminate it in the Amazon EC2 console to stop billing. // -// If you terminate a running container instance with a connected Amazon ECS -// container agent, the agent automatically deregisters the instance from your -// cluster (stopped container instances or instances with disconnected agents -// are not automatically deregistered when terminated). +// When you terminate a container instance, it is automatically deregistered +// from your cluster. func (c *ECS) DeregisterContainerInstance(input *DeregisterContainerInstanceInput) (*DeregisterContainerInstanceOutput, error) { req, out := c.DeregisterContainerInstanceRequest(input) err := req.Send() @@ -365,7 +303,7 @@ func (c *ECS) DescribeTaskDefinitionRequest(input *DescribeTaskDefinitionInput) } // Describes a task definition. You can specify a family and revision to find -// information about a specific task definition, or you can simply specify the +// information on a specific task definition, or you can simply specify the // family to find the latest ACTIVE revision in that family. // // You can only describe INACTIVE task definitions while an active task or @@ -426,8 +364,8 @@ func (c *ECS) DiscoverPollEndpointRequest(input *DiscoverPollEndpointInput) (req // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Returns an endpoint for the Amazon EC2 Container Service agent to poll -// for updates. +// Returns an endpoint for the Amazon EC2 Container Service agent to poll for +// updates. func (c *ECS) DiscoverPollEndpoint(input *DiscoverPollEndpointInput) (*DiscoverPollEndpointOutput, error) { req, out := c.DiscoverPollEndpointRequest(input) err := req.Send() @@ -469,7 +407,6 @@ func (c *ECS) ListClusters(input *ListClustersInput) (*ListClustersOutput, error func (c *ECS) ListClustersPages(input *ListClustersInput, fn func(p *ListClustersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListClustersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListClustersOutput), lastPage) }) @@ -510,7 +447,6 @@ func (c *ECS) ListContainerInstances(input *ListContainerInstancesInput) (*ListC func (c *ECS) ListContainerInstancesPages(input *ListContainerInstancesInput, fn func(p *ListContainerInstancesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListContainerInstancesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListContainerInstancesOutput), lastPage) }) @@ -551,7 +487,6 @@ func (c *ECS) ListServices(input *ListServicesInput) (*ListServicesOutput, error func (c *ECS) ListServicesPages(input *ListServicesInput, fn func(p *ListServicesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListServicesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListServicesOutput), lastPage) }) @@ -585,11 +520,7 @@ func (c *ECS) ListTaskDefinitionFamiliesRequest(input *ListTaskDefinitionFamilie // Returns a list of task definition families that are registered to your account // (which may include task definition families that no longer have any ACTIVE -// task definition revisions). -// -// You can filter out task definition families that do not contain any ACTIVE -// task definition revisions by setting the status parameter to ACTIVE. You -// can also filter the results with the familyPrefix parameter. +// task definitions). You can filter the results with the familyPrefix parameter. func (c *ECS) ListTaskDefinitionFamilies(input *ListTaskDefinitionFamiliesInput) (*ListTaskDefinitionFamiliesOutput, error) { req, out := c.ListTaskDefinitionFamiliesRequest(input) err := req.Send() @@ -598,7 +529,6 @@ func (c *ECS) ListTaskDefinitionFamilies(input *ListTaskDefinitionFamiliesInput) func (c *ECS) ListTaskDefinitionFamiliesPages(input *ListTaskDefinitionFamiliesInput, fn func(p *ListTaskDefinitionFamiliesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListTaskDefinitionFamiliesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListTaskDefinitionFamiliesOutput), lastPage) }) @@ -641,7 +571,6 @@ func (c *ECS) ListTaskDefinitions(input *ListTaskDefinitionsInput) (*ListTaskDef func (c *ECS) ListTaskDefinitionsPages(input *ListTaskDefinitionsInput, fn func(p *ListTaskDefinitionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListTaskDefinitionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListTaskDefinitionsOutput), lastPage) }) @@ -684,7 +613,6 @@ func (c *ECS) ListTasks(input *ListTasksInput) (*ListTasksOutput, error) { func (c *ECS) ListTasksPages(input *ListTasksInput, fn func(p *ListTasksOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListTasksRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListTasksOutput), lastPage) }) @@ -713,8 +641,8 @@ func (c *ECS) RegisterContainerInstanceRequest(input *RegisterContainerInstanceI // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Registers an EC2 instance into the specified cluster. This instance becomes -// available to place containers on. +// Registers an Amazon EC2 instance into the specified cluster. This instance +// will become available to place containers on. func (c *ECS) RegisterContainerInstance(input *RegisterContainerInstanceInput) (*RegisterContainerInstanceOutput, error) { req, out := c.RegisterContainerInstanceRequest(input) err := req.Send() @@ -743,7 +671,7 @@ func (c *ECS) RegisterTaskDefinitionRequest(input *RegisterTaskDefinitionInput) // Registers a new task definition from the supplied family and containerDefinitions. // Optionally, you can add data volumes to your containers with the volumes -// parameter. For more information about task definition parameters and defaults, +// parameter. For more information on task definition parameters and defaults, // see Amazon ECS Task Definitions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html) // in the Amazon EC2 Container Service Developer Guide. func (c *ECS) RegisterTaskDefinition(input *RegisterTaskDefinitionInput) (*RegisterTaskDefinitionOutput, error) { @@ -773,8 +701,8 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output } // Start a task using random placement and the default Amazon ECS scheduler. -// To use your own scheduler or place a task on a specific container instance, -// use StartTask instead. +// If you want to use your own scheduler or place a task on a specific container +// instance, use StartTask instead. // // The count parameter is limited to 10 tasks per call. func (c *ECS) RunTask(input *RunTaskInput) (*RunTaskOutput, error) { @@ -804,8 +732,8 @@ func (c *ECS) StartTaskRequest(input *StartTaskInput) (req *request.Request, out } // Starts a new task from the specified task definition on the specified container -// instance or instances. To use the default Amazon ECS scheduler to place your -// task, use RunTask instead. +// instance or instances. If you want to use the default Amazon ECS scheduler +// to place your task, use RunTask instead. // // The list of container instances to start tasks on is limited to 10. func (c *ECS) StartTask(input *StartTaskInput) (*StartTaskOutput, error) { @@ -835,12 +763,6 @@ func (c *ECS) StopTaskRequest(input *StopTaskInput) (req *request.Request, outpu } // Stops a running task. -// -// When StopTask is called on a task, the equivalent of docker stop is issued -// to the containers running in the task. This results in a SIGTERM and a 30-second -// timeout, after which SIGKILL is sent and the containers are forcibly stopped. -// If the container handles the SIGTERM gracefully and exits within 30 seconds -// from receiving it, no SIGKILL is sent. func (c *ECS) StopTask(input *StopTaskInput) (*StopTaskOutput, error) { req, out := c.StopTaskRequest(input) err := req.Send() @@ -870,7 +792,7 @@ func (c *ECS) SubmitContainerStateChangeRequest(input *SubmitContainerStateChang // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Sent to acknowledge that a container changed states. +// Sent to acknowledge that a container changed states. func (c *ECS) SubmitContainerStateChange(input *SubmitContainerStateChangeInput) (*SubmitContainerStateChangeOutput, error) { req, out := c.SubmitContainerStateChangeRequest(input) err := req.Send() @@ -900,7 +822,7 @@ func (c *ECS) SubmitTaskStateChangeRequest(input *SubmitTaskStateChangeInput) (r // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // -// Sent to acknowledge that a task changed states. +// Sent to acknowledge that a task changed states. func (c *ECS) SubmitTaskStateChange(input *SubmitTaskStateChangeInput) (*SubmitTaskStateChangeOutput, error) { req, out := c.SubmitTaskStateChangeRequest(input) err := req.Send() @@ -933,7 +855,7 @@ func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req // differs depending on whether your container instance was launched with the // Amazon ECS-optimized AMI or another operating system. // -// UpdateContainerAgent requires the Amazon ECS-optimized AMI or Amazon Linux +// UpdateContainerAgent requires the Amazon ECS-optimized AMI or Amazon Linux // with the ecs-init service installed and running. For help updating the Amazon // ECS container agent on other operating systems, see Manually Updating the // Amazon ECS Container Agent (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html#manually_update_agent) @@ -964,107 +886,32 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ return } -// Modifies the desired count, deployment configuration, or task definition -// used in a service. +// Modify the desired count or task definition used in a service. // // You can add to or subtract from the number of instantiations of a task definition // in a service by specifying the cluster that the service is running in and // a new desiredCount parameter. // // You can use UpdateService to modify your task definition and deploy a new -// version of your service. -// -// You can also update the deployment configuration of a service. When a deployment -// is triggered by updating the task definition of a service, the service scheduler -// uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, -// to determine the deployment strategy. -// -// If the minimumHealthyPercent is below 100%, the scheduler can ignore the -// desiredCount temporarily during a deployment. For example, if your service -// has a desiredCount of four tasks, a minimumHealthyPercent of 50% allows the -// scheduler to stop two existing tasks before starting two new tasks. Tasks -// for services that do not use a load balancer are considered healthy if they -// are in the RUNNING state; tasks for services that do use a load balancer -// are considered healthy if they are in the RUNNING state and the container -// instance it is hosted on is reported as healthy by the load balancer. -// -// The maximumPercent parameter represents an upper limit on the number of -// running tasks during a deployment, which enables you to define the deployment -// batch size. For example, if your service has a desiredCount of four tasks, -// a maximumPercent value of 200% starts four new tasks before stopping the -// four older tasks (provided that the cluster resources required to do this -// are available). -// -// When UpdateService stops a task during a deployment, the equivalent of docker -// stop is issued to the containers running in the task. This results in a SIGTERM -// and a 30-second timeout, after which SIGKILL is sent and the containers are -// forcibly stopped. If the container handles the SIGTERM gracefully and exits -// within 30 seconds from receiving it, no SIGKILL is sent. -// -// When the service scheduler launches new tasks, it attempts to balance them -// across the Availability Zones in your cluster with the following logic: -// -// Determine which of the container instances in your cluster can support -// your service's task definition (for example, they have the required CPU, -// memory, ports, and container instance attributes). -// -// Sort the valid container instances by the fewest number of running tasks -// for this service in the same Availability Zone as the instance. For example, -// if zone A has one running service task and zones B and C each have zero, -// valid container instances in either zone B or C are considered optimal for -// placement. -// -// Place the new service task on a valid container instance in an optimal -// Availability Zone (based on the previous steps), favoring container instances -// with the fewest number of running tasks for this service. +// version of your service, one task at a time. If you modify the task definition +// with UpdateService, Amazon ECS spawns a task with the new version of the +// task definition and then stops an old task after the new version is running. +// Because UpdateService starts a new version of the task before stopping an +// old version, your cluster must have capacity to support one more instantiation +// of the task when UpdateService is run. If your cluster cannot support another +// instantiation of the task used in your service, you can reduce the desired +// count of your service by one before modifying the task definition. func (c *ECS) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error) { req, out := c.UpdateServiceRequest(input) err := req.Send() return out, err } -// The attributes applicable to a container instance when it is registered. -type Attribute struct { - _ struct{} `type:"structure"` - - // The name of the container instance attribute. - Name *string `locationName:"name" type:"string" required:"true"` - - // The value of the container instance attribute (at this time, the value here - // is Null, but this could change in future revisions for expandability). - Value *string `locationName:"value" type:"string"` -} - -// String returns the string representation -func (s Attribute) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Attribute) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Attribute) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Attribute"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // 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 // may contain more than one instance type simultaneously. type Cluster struct { - _ struct{} `type:"structure"` - // The number of services that are running on the cluster in an ACTIVE state. // You can view these services with ListServices. ActiveServicesCount *int64 `locationName:"activeServicesCount" type:"integer"` @@ -1072,10 +919,10 @@ type Cluster struct { // The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains // the arn:aws:ecs namespace, followed by the region of the cluster, the AWS // account ID of the cluster owner, the cluster namespace, and then the cluster - // name. For example, arn:aws:ecs:region:012345678910:cluster/test .. + // name. For example, arn:aws:ecs:region:012345678910:cluster/test. ClusterArn *string `locationName:"clusterArn" type:"string"` - // A user-generated string that you use to identify your cluster. + // A user-generated string that you can use to identify your cluster. ClusterName *string `locationName:"clusterName" type:"string"` // The number of tasks in the cluster that are in the PENDING state. @@ -1091,6 +938,12 @@ type Cluster struct { // indicates that you can register container instances with the cluster and // the associated instances can accept tasks. Status *string `locationName:"status" type:"string"` + + metadataCluster `json:"-" xml:"-"` +} + +type metadataCluster struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1103,10 +956,8 @@ func (s Cluster) GoString() string { return s.String() } -// A Docker container that is part of a task. +// A docker container that is part of a task. type Container struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the container. ContainerArn *string `locationName:"containerArn" type:"string"` @@ -1128,6 +979,12 @@ type Container struct { // The Amazon Resource Name (ARN) of the task. TaskArn *string `locationName:"taskArn" type:"string"` + + metadataContainer `json:"-" xml:"-"` +} + +type metadataContainer struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1143,31 +1000,17 @@ func (s Container) GoString() string { // Container definitions are used in task definitions to describe the different // containers that are launched as part of a task. type ContainerDefinition struct { - _ struct{} `type:"structure"` - - // The command that is passed to the container. This parameter maps to Cmd in - // the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the COMMAND parameter to docker run (https://docs.docker.com/reference/commandline/run/). - // For more information, see https://docs.docker.com/reference/builder/#cmd - // (https://docs.docker.com/reference/builder/#cmd). + // The CMD that is passed to the container. For more information on the Docker + // CMD parameter, see https://docs.docker.com/reference/builder/#cmd (https://docs.docker.com/reference/builder/#cmd). Command []*string `locationName:"command" type:"list"` // The number of cpu units reserved for the container. A container instance // has 1,024 cpu units for every CPU core. This parameter specifies the minimum // amount of CPU to reserve for a container, and containers share unallocated // CPU units with other containers on the instance with the same ratio as their - // allocated amount. This parameter maps to CpuShares in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --cpu-shares option to docker run (https://docs.docker.com/reference/commandline/run/). - // - // You can determine the number of CPU units that are available per EC2 instance - // type by multiplying the vCPUs listed for that instance type on the Amazon - // EC2 Instances (http://aws.amazon.com/ec2/instance-types/) detail page by - // 1,024. + // allocated amount. // - // For example, if you run a single-container task on a single-core instance + // For example, if you run a single-container task on a single-core instance // type with 512 CPU units specified for that container, and that is the only // task running on the container instance, that container could use the full // 1,024 CPU unit share at any given time. However, if you launched another @@ -1180,137 +1023,48 @@ type ContainerDefinition struct { // the relative CPU share ratios for running containers. For more information, // see CPU share constraint (https://docs.docker.com/reference/run/#cpu-share-constraint) // in the Docker documentation. The minimum valid CPU share value that the Linux - // kernel allows is 2; however, the CPU parameter is not required, and you can - // use CPU values below 2 in your container definitions. For CPU values below - // 2 (including null), the behavior varies based on your Amazon ECS container + // kernel will allow is 2; however, the CPU parameter is not required, and you + // can use CPU values below 2 in your container definitions. For CPU values + // below 2 (including null), the behavior varies based on your Amazon ECS container // agent version: // // Agent versions less than or equal to 1.1.0: Null and zero CPU values are // passed to Docker as 0, which Docker then converts to 1,024 CPU shares. CPU // values of 1 are passed to Docker as 1, which the Linux kernel converts to - // 2 CPU shares. - // - // Agent versions greater than or equal to 1.2.0: Null, zero, and CPU values - // of 1 are passed to Docker as 2. + // 2 CPU shares. Agent versions greater than or equal to 1.2.0: Null, zero, + // and CPU values of 1 are passed to Docker as 2. Cpu *int64 `locationName:"cpu" type:"integer"` - // When this parameter is true, networking is disabled within the container. - // This parameter maps to NetworkDisabled in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/). - DisableNetworking *bool `locationName:"disableNetworking" type:"boolean"` - - // A list of DNS search domains that are presented to the container. This parameter - // maps to DnsSearch in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --dns-search option to docker run (https://docs.docker.com/reference/commandline/run/). - DnsSearchDomains []*string `locationName:"dnsSearchDomains" type:"list"` - - // A list of DNS servers that are presented to the container. This parameter - // maps to Dns in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --dns option to docker run (https://docs.docker.com/reference/commandline/run/). - DnsServers []*string `locationName:"dnsServers" type:"list"` - - // A key/value map of labels to add to the container. This parameter maps to - // Labels in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --label option to docker run (https://docs.docker.com/reference/commandline/run/). - // This parameter requires version 1.18 of the Docker Remote API or greater - // on your container instance. To check the Docker Remote API version on your - // container instance, log into your container instance and run the following - // command: sudo docker version | grep "Server API version" - DockerLabels map[string]*string `locationName:"dockerLabels" type:"map"` - - // A list of strings to provide custom labels for SELinux and AppArmor multi-level - // security systems. This parameter maps to SecurityOpt in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --security-opt option to docker run (https://docs.docker.com/reference/commandline/run/). - // - // The Amazon ECS container agent running on a container instance must register - // with the ECS_SELINUX_CAPABLE=true or ECS_APPARMOR_CAPABLE=true environment - // variables before containers placed on that instance can use these security - // options. For more information, see Amazon ECS Container Agent Configuration - // (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) - // in the Amazon EC2 Container Service Developer Guide. - DockerSecurityOptions []*string `locationName:"dockerSecurityOptions" type:"list"` - // Early versions of the Amazon ECS container agent do not properly handle entryPoint // parameters. If you have problems using entryPoint, update your container // agent or enter your commands and arguments as command array items instead. // - // The entry point that is passed to the container. This parameter maps to - // Entrypoint in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --entrypoint option to docker run (https://docs.docker.com/reference/commandline/run/). - // For more information, see https://docs.docker.com/reference/builder/#entrypoint + // The ENTRYPOINT that is passed to the container. For more information on + // the Docker ENTRYPOINT parameter, see https://docs.docker.com/reference/builder/#entrypoint // (https://docs.docker.com/reference/builder/#entrypoint). EntryPoint []*string `locationName:"entryPoint" type:"list"` - // The environment variables to pass to a container. This parameter maps to - // Env in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --env option to docker run (https://docs.docker.com/reference/commandline/run/). - // - // We do not recommend using plain text environment variables for sensitive - // information, such as credential data. + // The environment variables to pass to a container. Environment []*KeyValuePair `locationName:"environment" type:"list"` - // If the essential parameter of a container is marked as true, and that container - // fails or stops for any reason, all other containers that are part of the - // task are stopped. If the essential parameter of a container is marked as - // false, then its failure does not affect the rest of the containers in a task. - // If this parameter is omitted, a container is assumed to be essential. + // If the essential parameter of a container is marked as true, the failure + // of that container will stop the task. If the essential parameter of a container + // is marked as false, then its failure will not affect the rest of the containers + // in a task. If this parameter is omitted, a container is assumed to be essential. // - // All tasks must have at least one essential container. If you have an application - // that is composed of multiple containers, you should group containers that - // are used for a common purpose into components, and separate the different - // components into multiple task definitions. For more information, see Application - // Architecture (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html) - // in the Amazon EC2 Container Service Developer Guide. + // All tasks must have at least one essential container. Essential *bool `locationName:"essential" type:"boolean"` - // A list of hostnames and IP address mappings to append to the /etc/hosts file - // on the container. This parameter maps to ExtraHosts in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --add-host option to docker run (https://docs.docker.com/reference/commandline/run/). - ExtraHosts []*HostEntry `locationName:"extraHosts" type:"list"` - - // The hostname to use for your container. This parameter maps to Hostname in - // the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --hostname option to docker run (https://docs.docker.com/reference/commandline/run/). - Hostname *string `locationName:"hostname" type:"string"` - // The image used to start a container. This string is passed directly to the // Docker daemon. Images in the Docker Hub registry are available by default. - // Other repositories are specified with repository-url/image:tag . Up to 255 - // letters (uppercase and lowercase), numbers, hyphens, underscores, colons, - // periods, forward slashes, and number signs are allowed. This parameter maps - // to Image in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the IMAGE parameter of docker run (https://docs.docker.com/reference/commandline/run/). - // - // Images in official repositories on Docker Hub use a single name (for example, - // ubuntu or mongo). - // - // Images in other repositories on Docker Hub are qualified with an organization - // name (for example, amazon/amazon-ecs-agent). - // - // Images in other online repositories are qualified further by a domain name - // (for example, quay.io/assemblyline/ubuntu). + // Other repositories are specified with repository-url/image:tag. Image *string `locationName:"image" type:"string"` // The link parameter allows containers to communicate with each other without - // the need for port mappings, using the name parameter and optionally, an alias - // for the link. This construct is analogous to name:alias in Docker links. - // Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores - // are allowed for each name and alias. For more information on linking Docker - // containers, see https://docs.docker.com/userguide/dockerlinks/ (https://docs.docker.com/userguide/dockerlinks/). - // This parameter maps to Links in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --link option to docker run (https://docs.docker.com/reference/commandline/run/). + // the need for port mappings, using the name parameter. The name:internalName + // construct is analogous to name:alias in Docker links. For more information + // on linking Docker containers, see https://docs.docker.com/userguide/dockerlinks/ + // (https://docs.docker.com/userguide/dockerlinks/). // // Containers that are collocated on a single container instance may be able // to communicate with each other without requiring links or host port mappings. @@ -1318,116 +1072,29 @@ type ContainerDefinition struct { // and VPC settings. Links []*string `locationName:"links" type:"list"` - // The log configuration specification for the container. This parameter maps - // to LogConfig in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --log-driver option to docker run (https://docs.docker.com/reference/commandline/run/). - // By default, containers use the same logging driver that the Docker daemon - // uses; however the container may use a different logging driver than the Docker - // daemon by specifying a log driver with this parameter in the container definition. - // To use a different logging driver for a container, the log system must be - // configured properly on the container instance (or on a different log server - // for remote logging options). For more information on the options for different - // supported log drivers, see Configure logging drivers (https://docs.docker.com/engine/admin/logging/overview/) - // in the Docker documentation. - // - // Amazon ECS currently supports a subset of the logging drivers available - // to the Docker daemon (shown in the LogConfiguration data type). Currently - // unsupported log drivers may be available in future releases of the Amazon - // ECS container agent. - // - // This parameter requires version 1.18 of the Docker Remote API or greater - // on your container instance. To check the Docker Remote API version on your - // container instance, log into your container instance and run the following - // command: sudo docker version | grep "Server API version" - // - // The Amazon ECS container agent running on a container instance must register - // the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS - // environment variable before containers placed on that instance can use these - // log configuration options. For more information, see Amazon ECS Container - // Agent Configuration (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) - // in the Amazon EC2 Container Service Developer Guide. - LogConfiguration *LogConfiguration `locationName:"logConfiguration" type:"structure"` - - // The number of MiB of memory to reserve for the container. You must specify - // a non-zero integer for this parameter; the Docker daemon reserves a minimum - // of 4 MiB of memory for a container, so you should not specify fewer than - // 4 MiB of memory for your containers. If your container attempts to exceed - // the memory allocated here, the container is killed. This parameter maps to - // Memory in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --memory option to docker run (https://docs.docker.com/reference/commandline/run/). + // The number of MiB of memory reserved for the container. If your container + // attempts to exceed the memory allocated here, the container is killed. Memory *int64 `locationName:"memory" type:"integer"` - // The mount points for data volumes in your container. This parameter maps - // to Volumes in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --volume option to docker run (https://docs.docker.com/reference/commandline/run/). + // The mount points for data volumes in your container. MountPoints []*MountPoint `locationName:"mountPoints" type:"list"` // The name of a container. If you are linking multiple containers together // in a task definition, the name of one container can be entered in the links - // of another container to connect the containers. Up to 255 letters (uppercase - // and lowercase), numbers, hyphens, and underscores are allowed. This parameter - // maps to name in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --name option to docker run (https://docs.docker.com/reference/commandline/run/). + // of another container to connect the containers. Name *string `locationName:"name" type:"string"` - // The list of port mappings for the container. Port mappings allow containers - // to access ports on the host container instance to send or receive traffic. - // This parameter maps to PortBindings in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --publish option to docker run (https://docs.docker.com/reference/commandline/run/). - // - // After a task reaches the RUNNING status, manual and automatic host and - // container port assignments are visible in the Network Bindings section of - // a container description of a selected task in the Amazon ECS console, or - // the networkBindings section DescribeTasks responses. + // The list of port mappings for the container. PortMappings []*PortMapping `locationName:"portMappings" type:"list"` - // When this parameter is true, the container is given elevated privileges on - // the host container instance (similar to the root user). This parameter maps - // to Privileged in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --privileged option to docker run (https://docs.docker.com/reference/commandline/run/). - Privileged *bool `locationName:"privileged" type:"boolean"` - - // When this parameter is true, the container is given read-only access to its - // root file system. This parameter maps to ReadonlyRootfs in the Create a container - // (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --read-only option to docker run. - ReadonlyRootFilesystem *bool `locationName:"readonlyRootFilesystem" type:"boolean"` - - // A list of ulimits to set in the container. This parameter maps to Ulimits - // in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --ulimit option to docker run (https://docs.docker.com/reference/commandline/run/). - // Valid naming values are displayed in the Ulimit data type. This parameter - // requires version 1.18 of the Docker Remote API or greater on your container - // instance. To check the Docker Remote API version on your container instance, - // log into your container instance and run the following command: sudo docker - // version | grep "Server API version" - Ulimits []*Ulimit `locationName:"ulimits" type:"list"` - - // The user name to use inside the container. This parameter maps to User in - // the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --user option to docker run (https://docs.docker.com/reference/commandline/run/). - User *string `locationName:"user" type:"string"` - - // Data volumes to mount from another container. This parameter maps to VolumesFrom - // in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --volumes-from option to docker run (https://docs.docker.com/reference/commandline/run/). + // Data volumes to mount from another container. VolumesFrom []*VolumeFrom `locationName:"volumesFrom" type:"list"` - // The working directory in which to run commands inside the container. This - // parameter maps to WorkingDir in the Create a container (https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/reference/api/docker_remote_api_v1.19/) - // and the --workdir option to docker run (https://docs.docker.com/reference/commandline/run/). - WorkingDirectory *string `locationName:"workingDirectory" type:"string"` + metadataContainerDefinition `json:"-" xml:"-"` +} + +type metadataContainerDefinition struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1440,68 +1107,26 @@ func (s ContainerDefinition) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ContainerDefinition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContainerDefinition"} - if s.ExtraHosts != nil { - for i, v := range s.ExtraHosts { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ExtraHosts", i), err.(request.ErrInvalidParams)) - } - } - } - if s.LogConfiguration != nil { - if err := s.LogConfiguration.Validate(); err != nil { - invalidParams.AddNested("LogConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.Ulimits != nil { - for i, v := range s.Ulimits { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Ulimits", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// An EC2 instance that is running the Amazon ECS agent and has been registered -// with a cluster. +// An Amazon EC2 instance that is running the Amazon ECS agent and has been +// registered with a cluster. type ContainerInstance struct { - _ struct{} `type:"structure"` - // This parameter returns true if the agent is actually connected to Amazon // ECS. Registered instances with an agent that may be unhealthy or stopped - // return false, and instances without a connected agent cannot accept placement - // requests. + // will return false, and instances without a connected agent cannot accept + // placement request. AgentConnected *bool `locationName:"agentConnected" type:"boolean"` // The status of the most recent agent update. If an update has never been requested, // this value is NULL. AgentUpdateStatus *string `locationName:"agentUpdateStatus" type:"string" enum:"AgentUpdateStatus"` - // The attributes set for the container instance by the Amazon ECS container - // agent at instance registration. - Attributes []*Attribute `locationName:"attributes" type:"list"` - // The Amazon Resource Name (ARN) of the container instance. The ARN contains // the arn:aws:ecs namespace, followed by the region of the container instance, // the AWS account ID of the container instance owner, the container-instance - // namespace, and then the container instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID - // . + // namespace, and then the container instance UUID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_UUID. ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - // The EC2 instance ID of the container instance. + // The Amazon EC2 instance ID of the container instance. Ec2InstanceId *string `locationName:"ec2InstanceId" type:"string"` // The number of tasks on the container instance that are in the PENDING status. @@ -1525,6 +1150,12 @@ type ContainerInstance struct { // The version information for the Amazon ECS container agent and Docker daemon // running on the container instance. VersionInfo *VersionInfo `locationName:"versionInfo" type:"structure"` + + metadataContainerInstance `json:"-" xml:"-"` +} + +type metadataContainerInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1539,8 +1170,6 @@ func (s ContainerInstance) GoString() string { // The overrides that should be sent to a container. type ContainerOverride struct { - _ struct{} `type:"structure"` - // The command to send to the container that overrides the default command from // the Docker image or the task definition. Command []*string `locationName:"command" type:"list"` @@ -1552,6 +1181,12 @@ type ContainerOverride struct { // The name of the container that receives the override. Name *string `locationName:"name" type:"string"` + + metadataContainerOverride `json:"-" xml:"-"` +} + +type metadataContainerOverride struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1565,12 +1200,16 @@ func (s ContainerOverride) GoString() string { } type CreateClusterInput struct { - _ struct{} `type:"structure"` - // The name of your cluster. If you do not specify a name for your cluster, - // you create a cluster named default. Up to 255 letters (uppercase and lowercase), - // numbers, hyphens, and underscores are allowed. + // you will create a cluster named default. Up to 255 letters (uppercase and + // lowercase), numbers, hyphens, and underscores are allowed. ClusterName *string `locationName:"clusterName" type:"string"` + + metadataCreateClusterInput `json:"-" xml:"-"` +} + +type metadataCreateClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1584,10 +1223,14 @@ func (s CreateClusterInput) GoString() string { } type CreateClusterOutput struct { - _ struct{} `type:"structure"` - // The full description of your new cluster. Cluster *Cluster `locationName:"cluster" type:"structure"` + + metadataCreateClusterOutput `json:"-" xml:"-"` +} + +type metadataCreateClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1601,23 +1244,17 @@ func (s CreateClusterOutput) GoString() string { } type CreateServiceInput struct { - _ struct{} `type:"structure"` - // Unique, case-sensitive identifier you provide to ensure the idempotency of // the request. Up to 32 ASCII characters are allowed. ClientToken *string `locationName:"clientToken" type:"string"` - // The short name or full Amazon Resource Name (ARN) of the cluster on which - // to run your service. If you do not specify a cluster, the default cluster - // is assumed. + // The short name or full Amazon Resource Name (ARN) of the cluster that you + // want to run your service on. If you do not specify a cluster, the default + // cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` - // Optional deployment parameters that control how many tasks run during the - // deployment and the ordering of stopping and starting tasks. - DeploymentConfiguration *DeploymentConfiguration `locationName:"deploymentConfiguration" type:"structure"` - - // The number of instantiations of the specified task definition to place and - // keep running on your cluster. + // The number of instantiations of the specified task definition that you would + // like to place and keep running on your cluster. DesiredCount *int64 `locationName:"desiredCount" type:"integer" required:"true"` // A list of load balancer objects, containing the load balancer name, the container @@ -1625,18 +1262,10 @@ type CreateServiceInput struct { // access from the load balancer. LoadBalancers []*LoadBalancer `locationName:"loadBalancers" type:"list"` - // The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon - // ECS to make calls to your load balancer on your behalf. This parameter is - // required if you are using a load balancer with your service. If you specify - // the role parameter, you must also specify a load balancer object with the - // loadBalancers parameter. - // - // If your specified role has a path other than /, then you must either specify - // the full role ARN (this is recommended) or prefix the role name with the - // path. For example, if a role with the name bar has a path of /foo/ then you - // would specify /foo/bar as the role name. For more information, see Friendly - // Names and Paths (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) - // in the IAM User Guide. + // The name or full Amazon Resource Name (ARN) of the IAM role that allows your + // Amazon ECS container agent to make calls to your load balancer on your behalf. + // This parameter is only required if you are using a load balancer with your + // service. Role *string `locationName:"role" type:"string"` // The name of your service. Up to 255 letters (uppercase and lowercase), numbers, @@ -1646,9 +1275,15 @@ type CreateServiceInput struct { ServiceName *string `locationName:"serviceName" type:"string" required:"true"` // The family and revision (family:revision) or full Amazon Resource Name (ARN) - // of the task definition to run in your service. If a revision is not specified, - // the latest ACTIVE revision is used. + // of the task definition that you want to run in your service. If a revision + // is not specified, the latest ACTIVE revision is used. TaskDefinition *string `locationName:"taskDefinition" type:"string" required:"true"` + + metadataCreateServiceInput `json:"-" xml:"-"` +} + +type metadataCreateServiceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1661,30 +1296,15 @@ func (s CreateServiceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateServiceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateServiceInput"} - if s.DesiredCount == nil { - invalidParams.Add(request.NewErrParamRequired("DesiredCount")) - } - if s.ServiceName == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceName")) - } - if s.TaskDefinition == nil { - invalidParams.Add(request.NewErrParamRequired("TaskDefinition")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateServiceOutput struct { - _ struct{} `type:"structure"` - // The full description of your service following the create call. Service *Service `locationName:"service" type:"structure"` + + metadataCreateServiceOutput `json:"-" xml:"-"` +} + +type metadataCreateServiceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1698,10 +1318,15 @@ func (s CreateServiceOutput) GoString() string { } type DeleteClusterInput struct { - _ struct{} `type:"structure"` - - // The short name or full Amazon Resource Name (ARN) of the cluster to delete. + // The short name or full Amazon Resource Name (ARN) of the cluster that you + // want to delete. Cluster *string `locationName:"cluster" type:"string" required:"true"` + + metadataDeleteClusterInput `json:"-" xml:"-"` +} + +type metadataDeleteClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1714,24 +1339,15 @@ func (s DeleteClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteClusterInput"} - if s.Cluster == nil { - invalidParams.Add(request.NewErrParamRequired("Cluster")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteClusterOutput struct { - _ struct{} `type:"structure"` - // The full description of the deleted cluster. Cluster *Cluster `locationName:"cluster" type:"structure"` + + metadataDeleteClusterOutput `json:"-" xml:"-"` +} + +type metadataDeleteClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1745,14 +1361,17 @@ func (s DeleteClusterOutput) GoString() string { } type DeleteServiceInput struct { - _ struct{} `type:"structure"` - - // The name of the cluster that hosts the service to delete. If you do not specify - // a cluster, the default cluster is assumed. + // The name of the cluster that hosts the service you want to delete. Cluster *string `locationName:"cluster" type:"string"` - // The name of the service to delete. + // The name of the service you want to delete. Service *string `locationName:"service" type:"string" required:"true"` + + metadataDeleteServiceInput `json:"-" xml:"-"` +} + +type metadataDeleteServiceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1765,24 +1384,15 @@ func (s DeleteServiceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteServiceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteServiceInput"} - if s.Service == nil { - invalidParams.Add(request.NewErrParamRequired("Service")) - } +type DeleteServiceOutput struct { + // Details on a service within a cluster + Service *Service `locationName:"service" type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeleteServiceOutput `json:"-" xml:"-"` } -type DeleteServiceOutput struct { - _ struct{} `type:"structure"` - - // The full description of the deleted service. - Service *Service `locationName:"service" type:"structure"` +type metadataDeleteServiceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1797,13 +1407,11 @@ func (s DeleteServiceOutput) GoString() string { // The details of an Amazon ECS service deployment. type Deployment struct { - _ struct{} `type:"structure"` - // The Unix time in seconds and milliseconds when the service was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` // The most recent desired count of tasks that was specified for the service - // to deploy or maintain. + // to deploy and/or maintain. DesiredCount *int64 `locationName:"desiredCount" type:"integer"` // The ID of the deployment. @@ -1826,72 +1434,52 @@ type Deployment struct { // The Unix time in seconds and milliseconds when the service was last updated. UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"unix"` -} -// String returns the string representation -func (s Deployment) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Deployment) GoString() string { - return s.String() + metadataDeployment `json:"-" xml:"-"` } -// Optional deployment parameters that control how many tasks run during the -// deployment and the ordering of stopping and starting tasks. -type DeploymentConfiguration struct { - _ struct{} `type:"structure"` - - // The upper limit (as a percentage of the service's desiredCount) of the number - // of running tasks that can be running in a service during a deployment. The - // maximum number of tasks during a deployment is the desiredCount multiplied - // by the maximumPercent/100, rounded down to the nearest integer value. - MaximumPercent *int64 `locationName:"maximumPercent" type:"integer"` - - // The lower limit (as a percentage of the service's desiredCount) of the number - // of running tasks that must remain running and healthy in a service during - // a deployment. The minimum healthy tasks during a deployment is the desiredCount - // multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer - // value. - MinimumHealthyPercent *int64 `locationName:"minimumHealthyPercent" type:"integer"` +type metadataDeployment struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeploymentConfiguration) String() string { +func (s Deployment) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeploymentConfiguration) GoString() string { +func (s Deployment) GoString() string { return s.String() } type DeregisterContainerInstanceInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that hosts - // the container instance to deregister. If you do not specify a cluster, the - // default cluster is assumed. + // the container instance you want to deregister. If you do not specify a cluster, + // the default cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` - // The container instance ID or full Amazon Resource Name (ARN) of the container - // instance to deregister. The ARN contains the arn:aws:ecs namespace, followed - // by the region of the container instance, the AWS account ID of the container - // instance owner, the container-instance namespace, and then the container - // instance ID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID - // . + // The container instance UUID or full Amazon Resource Name (ARN) of the container + // instance you want to deregister. The ARN contains the arn:aws:ecs namespace, + // followed by the region of the container instance, the AWS account ID of the + // container instance owner, the container-instance namespace, and then the + // container instance UUID. For example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_UUID. ContainerInstance *string `locationName:"containerInstance" type:"string" required:"true"` - // Forces the deregistration of the container instance. If you have tasks running + // Force the deregistration of the container instance. If you have tasks running // on the container instance when you deregister it with the force option, these - // tasks remain running and they continue to pass Elastic Load Balancing load - // balancer health checks until you terminate the instance or the tasks stop - // through some other means, but they are orphaned (no longer monitored or accounted - // for by Amazon ECS). If an orphaned task on your container instance is part - // of an Amazon ECS service, then the service scheduler starts another copy - // of that task, on a different container instance if possible. + // tasks remain running and they will continue to pass Elastic Load Balancing + // load balancer health checks until you terminate the instance or the tasks + // stop through some other means, but they are orphaned (no longer monitored + // or accounted for by Amazon ECS). If an orphaned task on your container instance + // is part of an Amazon ECS service, then the service scheduler will start another + // copy of that task on a different container instance if possible. Force *bool `locationName:"force" type:"boolean"` + + metadataDeregisterContainerInstanceInput `json:"-" xml:"-"` +} + +type metadataDeregisterContainerInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1904,25 +1492,16 @@ func (s DeregisterContainerInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterContainerInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterContainerInstanceInput"} - if s.ContainerInstance == nil { - invalidParams.Add(request.NewErrParamRequired("ContainerInstance")) - } +type DeregisterContainerInstanceOutput struct { + // An Amazon EC2 instance that is running the Amazon ECS agent and has been + // registered with a cluster. + ContainerInstance *ContainerInstance `locationName:"containerInstance" type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeregisterContainerInstanceOutput `json:"-" xml:"-"` } -type DeregisterContainerInstanceOutput struct { - _ struct{} `type:"structure"` - - // An EC2 instance that is running the Amazon ECS agent and has been registered - // with a cluster. - ContainerInstance *ContainerInstance `locationName:"containerInstance" type:"structure"` +type metadataDeregisterContainerInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1936,11 +1515,15 @@ func (s DeregisterContainerInstanceOutput) GoString() string { } type DeregisterTaskDefinitionInput struct { - _ struct{} `type:"structure"` - // The family and revision (family:revision) or full Amazon Resource Name (ARN) - // of the task definition to deregister. You must specify a revision. + // of the task definition that you want to deregister. You must specify a revision. TaskDefinition *string `locationName:"taskDefinition" type:"string" required:"true"` + + metadataDeregisterTaskDefinitionInput `json:"-" xml:"-"` +} + +type metadataDeregisterTaskDefinitionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1953,24 +1536,15 @@ func (s DeregisterTaskDefinitionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterTaskDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterTaskDefinitionInput"} - if s.TaskDefinition == nil { - invalidParams.Add(request.NewErrParamRequired("TaskDefinition")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeregisterTaskDefinitionOutput struct { - _ struct{} `type:"structure"` - // The full description of the deregistered task. TaskDefinition *TaskDefinition `locationName:"taskDefinition" type:"structure"` + + metadataDeregisterTaskDefinitionOutput `json:"-" xml:"-"` +} + +type metadataDeregisterTaskDefinitionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1984,11 +1558,15 @@ func (s DeregisterTaskDefinitionOutput) GoString() string { } type DescribeClustersInput struct { - _ struct{} `type:"structure"` - // A space-separated list of cluster names or full cluster Amazon Resource Name // (ARN) entries. If you do not specify a cluster, the default cluster is assumed. Clusters []*string `locationName:"clusters" type:"list"` + + metadataDescribeClustersInput `json:"-" xml:"-"` +} + +type metadataDescribeClustersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2002,13 +1580,16 @@ func (s DescribeClustersInput) GoString() string { } type DescribeClustersOutput struct { - _ struct{} `type:"structure"` - // The list of clusters. Clusters []*Cluster `locationName:"clusters" type:"list"` - // Any failures associated with the call. Failures []*Failure `locationName:"failures" type:"list"` + + metadataDescribeClustersOutput `json:"-" xml:"-"` +} + +type metadataDescribeClustersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2022,16 +1603,20 @@ func (s DescribeClustersOutput) GoString() string { } type DescribeContainerInstancesInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that hosts - // the container instances to describe. If you do not specify a cluster, the - // default cluster is assumed. + // the container instances you want to describe. If you do not specify a cluster, + // the default cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` - // A space-separated list of container instance IDs or full Amazon Resource + // A space-separated list of container instance UUIDs or full Amazon Resource // Name (ARN) entries. ContainerInstances []*string `locationName:"containerInstances" type:"list" required:"true"` + + metadataDescribeContainerInstancesInput `json:"-" xml:"-"` +} + +type metadataDescribeContainerInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2044,27 +1629,17 @@ func (s DescribeContainerInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeContainerInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeContainerInstancesInput"} - if s.ContainerInstances == nil { - invalidParams.Add(request.NewErrParamRequired("ContainerInstances")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeContainerInstancesOutput struct { - _ struct{} `type:"structure"` - // The list of container instances. ContainerInstances []*ContainerInstance `locationName:"containerInstances" type:"list"` - // Any failures associated with the call. Failures []*Failure `locationName:"failures" type:"list"` + + metadataDescribeContainerInstancesOutput `json:"-" xml:"-"` +} + +type metadataDescribeContainerInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2078,14 +1653,17 @@ func (s DescribeContainerInstancesOutput) GoString() string { } type DescribeServicesInput struct { - _ struct{} `type:"structure"` - - // The name of the cluster that hosts the service to describe. If you do not - // specify a cluster, the default cluster is assumed. + // The name of the cluster that hosts the service you want to describe. Cluster *string `locationName:"cluster" type:"string"` - // A list of services to describe. + // A list of services you want to describe. Services []*string `locationName:"services" type:"list" required:"true"` + + metadataDescribeServicesInput `json:"-" xml:"-"` +} + +type metadataDescribeServicesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2098,27 +1676,18 @@ func (s DescribeServicesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeServicesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeServicesInput"} - if s.Services == nil { - invalidParams.Add(request.NewErrParamRequired("Services")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeServicesOutput struct { - _ struct{} `type:"structure"` - // Any failures associated with the call. Failures []*Failure `locationName:"failures" type:"list"` // The list of services described. Services []*Service `locationName:"services" type:"list"` + + metadataDescribeServicesOutput `json:"-" xml:"-"` +} + +type metadataDescribeServicesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2132,12 +1701,16 @@ func (s DescribeServicesOutput) GoString() string { } type DescribeTaskDefinitionInput struct { - _ struct{} `type:"structure"` - // The family for the latest ACTIVE revision, family and revision (family:revision) // for a specific revision in the family, or full Amazon Resource Name (ARN) - // of the task definition to describe. + // of the task definition that you want to describe. TaskDefinition *string `locationName:"taskDefinition" type:"string" required:"true"` + + metadataDescribeTaskDefinitionInput `json:"-" xml:"-"` +} + +type metadataDescribeTaskDefinitionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2150,24 +1723,15 @@ func (s DescribeTaskDefinitionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTaskDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTaskDefinitionInput"} - if s.TaskDefinition == nil { - invalidParams.Add(request.NewErrParamRequired("TaskDefinition")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeTaskDefinitionOutput struct { - _ struct{} `type:"structure"` - // The full task definition description. TaskDefinition *TaskDefinition `locationName:"taskDefinition" type:"structure"` + + metadataDescribeTaskDefinitionOutput `json:"-" xml:"-"` +} + +type metadataDescribeTaskDefinitionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2181,15 +1745,19 @@ func (s DescribeTaskDefinitionOutput) GoString() string { } type DescribeTasksInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that hosts - // the task to describe. If you do not specify a cluster, the default cluster - // is assumed. + // the task you want to describe. If you do not specify a cluster, the default + // cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` - // A space-separated list of task IDs or full Amazon Resource Name (ARN) entries. + // A space-separated list of task UUIDs or full Amazon Resource Name (ARN) entries. Tasks []*string `locationName:"tasks" type:"list" required:"true"` + + metadataDescribeTasksInput `json:"-" xml:"-"` +} + +type metadataDescribeTasksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2202,27 +1770,17 @@ func (s DescribeTasksInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTasksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTasksInput"} - if s.Tasks == nil { - invalidParams.Add(request.NewErrParamRequired("Tasks")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeTasksOutput struct { - _ struct{} `type:"structure"` - - // Any failures associated with the call. Failures []*Failure `locationName:"failures" type:"list"` // The list of tasks. Tasks []*Task `locationName:"tasks" type:"list"` + + metadataDescribeTasksOutput `json:"-" xml:"-"` +} + +type metadataDescribeTasksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2236,18 +1794,21 @@ func (s DescribeTasksOutput) GoString() string { } type DiscoverPollEndpointInput struct { - _ struct{} `type:"structure"` - // The cluster that the container instance belongs to. Cluster *string `locationName:"cluster" type:"string"` - // The container instance ID or full Amazon Resource Name (ARN) of the container + // The container instance UUID or full Amazon Resource Name (ARN) of the container // instance. The ARN contains the arn:aws:ecs namespace, followed by the region // of the container instance, the AWS account ID of the container instance owner, - // the container-instance namespace, and then the container instance ID. For - // example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID - // . + // the container-instance namespace, and then the container instance UUID. For + // example, arn:aws:ecs:region:aws_account_id:container-instance/container_instance_UUID. ContainerInstance *string `locationName:"containerInstance" type:"string"` + + metadataDiscoverPollEndpointInput `json:"-" xml:"-"` +} + +type metadataDiscoverPollEndpointInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2261,13 +1822,17 @@ func (s DiscoverPollEndpointInput) GoString() string { } type DiscoverPollEndpointOutput struct { - _ struct{} `type:"structure"` - // The endpoint for the Amazon ECS agent to poll. Endpoint *string `locationName:"endpoint" type:"string"` // The telemetry endpoint for the Amazon ECS agent. TelemetryEndpoint *string `locationName:"telemetryEndpoint" type:"string"` + + metadataDiscoverPollEndpointOutput `json:"-" xml:"-"` +} + +type metadataDiscoverPollEndpointOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2282,13 +1847,17 @@ func (s DiscoverPollEndpointOutput) GoString() string { // A failed resource. type Failure struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the failed resource. Arn *string `locationName:"arn" type:"string"` // The reason for the failure. Reason *string `locationName:"reason" type:"string"` + + metadataFailure `json:"-" xml:"-"` +} + +type metadataFailure struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2301,60 +1870,22 @@ func (s Failure) GoString() string { return s.String() } -// Hostnames and IP address entries that are added to the /etc/hosts file of -// a container via the extraHosts parameter of its ContainerDefinition. -type HostEntry struct { - _ struct{} `type:"structure"` +// Details on a container instance host volume. +type HostVolumeProperties struct { + // The path on the host container instance that is presented to the container. + // If this parameter is empty, then the Docker daemon has assigned a host path + // for you. + SourcePath *string `locationName:"sourcePath" type:"string"` - // The hostname to use in the /etc/hosts entry. - Hostname *string `locationName:"hostname" type:"string" required:"true"` + metadataHostVolumeProperties `json:"-" xml:"-"` +} - // The IP address to use in the /etc/hosts entry. - IpAddress *string `locationName:"ipAddress" type:"string" required:"true"` +type metadataHostVolumeProperties struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s HostEntry) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HostEntry) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *HostEntry) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HostEntry"} - if s.Hostname == nil { - invalidParams.Add(request.NewErrParamRequired("Hostname")) - } - if s.IpAddress == nil { - invalidParams.Add(request.NewErrParamRequired("IpAddress")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Details on a container instance host volume. -type HostVolumeProperties struct { - _ struct{} `type:"structure"` - - // The path on the host container instance that is presented to the container. - // If this parameter is empty, then the Docker daemon has assigned a host path - // for you. If the host parameter contains a sourcePath file location, then - // the data volume persists at the specified location on the host container - // instance until you delete it manually. If the sourcePath value does not exist - // on the host container instance, the Docker daemon creates it. If the location - // does exist, the contents of the source path folder are exported. - SourcePath *string `locationName:"sourcePath" type:"string"` -} - -// String returns the string representation -func (s HostVolumeProperties) String() string { +func (s HostVolumeProperties) String() string { return awsutil.Prettify(s) } @@ -2365,8 +1896,6 @@ func (s HostVolumeProperties) GoString() string { // A key and value pair object. type KeyValuePair struct { - _ struct{} `type:"structure"` - // The name of the key value pair. For environment variables, this is the name // of the environment variable. Name *string `locationName:"name" type:"string"` @@ -2374,6 +1903,12 @@ type KeyValuePair struct { // The value of the key value pair. For environment variables, this is the value // of the environment variable. Value *string `locationName:"value" type:"string"` + + metadataKeyValuePair `json:"-" xml:"-"` +} + +type metadataKeyValuePair struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2387,8 +1922,6 @@ func (s KeyValuePair) GoString() string { } type ListClustersInput struct { - _ struct{} `type:"structure"` - // The maximum number of cluster results returned by ListClusters in paginated // output. When this parameter is used, ListClusters only returns maxResults // results in a single page along with a nextToken response element. The remaining @@ -2402,10 +1935,13 @@ type ListClustersInput struct { // where maxResults was used and the results exceeded the value of that parameter. // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. - // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListClustersInput `json:"-" xml:"-"` +} + +type metadataListClustersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2419,8 +1955,6 @@ func (s ListClustersInput) GoString() string { } type ListClustersOutput struct { - _ struct{} `type:"structure"` - // The list of full Amazon Resource Name (ARN) entries for each cluster associated // with your account. ClusterArns []*string `locationName:"clusterArns" type:"list"` @@ -2430,6 +1964,12 @@ type ListClustersOutput struct { // to retrieve the next page of results. This value is null when there are no // more results to return. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListClustersOutput `json:"-" xml:"-"` +} + +type metadataListClustersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2443,11 +1983,9 @@ func (s ListClustersOutput) GoString() string { } type ListContainerInstancesInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that hosts - // the container instances to list. If you do not specify a cluster, the default - // cluster is assumed.. + // the container instances you want to list. If you do not specify a cluster, + // the default cluster is assumed.. Cluster *string `locationName:"cluster" type:"string"` // The maximum number of container instance results returned by ListContainerInstances @@ -2465,10 +2003,13 @@ type ListContainerInstancesInput struct { // parameter. Pagination continues from the end of the previous results that // returned the nextToken value. This value is null when there are no more results // to return. - // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListContainerInstancesInput `json:"-" xml:"-"` +} + +type metadataListContainerInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2482,10 +2023,8 @@ func (s ListContainerInstancesInput) GoString() string { } type ListContainerInstancesOutput struct { - _ struct{} `type:"structure"` - - // The list of container instances with full Amazon Resource Name (ARN) entries - // for each container instance associated with the specified cluster. + // The list of container instance full Amazon Resource Name (ARN) entries for + // each container instance associated with the specified cluster. ContainerInstanceArns []*string `locationName:"containerInstanceArns" type:"list"` // The nextToken value to include in a future ListContainerInstances request. @@ -2493,6 +2032,12 @@ type ListContainerInstancesOutput struct { // value can be used to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListContainerInstancesOutput `json:"-" xml:"-"` +} + +type metadataListContainerInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2506,11 +2051,9 @@ func (s ListContainerInstancesOutput) GoString() string { } type ListServicesInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that hosts - // the services to list. If you do not specify a cluster, the default cluster - // is assumed.. + // the services you want to list. If you do not specify a cluster, the default + // cluster is assumed.. Cluster *string `locationName:"cluster" type:"string"` // The maximum number of container instance results returned by ListServices @@ -2518,18 +2061,21 @@ type ListServicesInput struct { // maxResults results in a single page along with a nextToken response element. // The remaining results of the initial request can be seen by sending another // ListServices request with the returned nextToken value. This value can be - // between 1 and 10. If this parameter is not used, then ListServices returns - // up to 10 results and a nextToken value if applicable. + // between 1 and 100. If this parameter is not used, then ListServices returns + // up to 100 results and a nextToken value if applicable. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The nextToken value returned from a previous paginated ListServices request // where maxResults was used and the results exceeded the value of that parameter. // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. - // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListServicesInput `json:"-" xml:"-"` +} + +type metadataListServicesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2543,8 +2089,6 @@ func (s ListServicesInput) GoString() string { } type ListServicesOutput struct { - _ struct{} `type:"structure"` - // The nextToken value to include in a future ListServices request. When the // results of a ListServices request exceed maxResults, this value can be used // to retrieve the next page of results. This value is null when there are no @@ -2554,6 +2098,12 @@ type ListServicesOutput struct { // The list of full Amazon Resource Name (ARN) entries for each service associated // with the specified cluster. ServiceArns []*string `locationName:"serviceArns" type:"list"` + + metadataListServicesOutput `json:"-" xml:"-"` +} + +type metadataListServicesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2567,8 +2117,6 @@ func (s ListServicesOutput) GoString() string { } type ListTaskDefinitionFamiliesInput struct { - _ struct{} `type:"structure"` - // The familyPrefix is a string that is used to filter the results of ListTaskDefinitionFamilies. // If you specify a familyPrefix, only task definition family names that begin // with the familyPrefix string are returned. @@ -2589,19 +2137,13 @@ type ListTaskDefinitionFamiliesInput struct { // parameter. Pagination continues from the end of the previous results that // returned the nextToken value. This value is null when there are no more results // to return. - // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` - // The task definition family status with which to filter the ListTaskDefinitionFamilies - // results. By default, both ACTIVE and INACTIVE task definition families are - // listed. If this parameter is set to ACTIVE, only task definition families - // that have an ACTIVE task definition revision are returned. If this parameter - // is set to INACTIVE, only task definition families that do not have any ACTIVE - // task definition revisions are returned. If you paginate the resulting output, - // be sure to keep the status value constant in each subsequent request. - Status *string `locationName:"status" type:"string" enum:"TaskDefinitionFamilyStatus"` + metadataListTaskDefinitionFamiliesInput `json:"-" xml:"-"` +} + +type metadataListTaskDefinitionFamiliesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2615,8 +2157,6 @@ func (s ListTaskDefinitionFamiliesInput) GoString() string { } type ListTaskDefinitionFamiliesOutput struct { - _ struct{} `type:"structure"` - // The list of task definition family names that match the ListTaskDefinitionFamilies // request. Families []*string `locationName:"families" type:"list"` @@ -2626,6 +2166,12 @@ type ListTaskDefinitionFamiliesOutput struct { // this value can be used to retrieve the next page of results. This value is // null when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` + + metadataListTaskDefinitionFamiliesOutput `json:"-" xml:"-"` +} + +type metadataListTaskDefinitionFamiliesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2639,11 +2185,9 @@ func (s ListTaskDefinitionFamiliesOutput) GoString() string { } type ListTaskDefinitionsInput struct { - _ struct{} `type:"structure"` - - // The full family name with which to filter the ListTaskDefinitions results. - // Specifying a familyPrefix limits the listed task definitions to task definition - // revisions that belong to that family. + // The full family name that you want to filter the ListTaskDefinitions results + // with. Specifying a familyPrefix will limit the listed task definitions to + // task definition revisions that belong to that family. FamilyPrefix *string `locationName:"familyPrefix" type:"string"` // The maximum number of task definition results returned by ListTaskDefinitions @@ -2660,9 +2204,6 @@ type ListTaskDefinitionsInput struct { // parameter. Pagination continues from the end of the previous results that // returned the nextToken value. This value is null when there are no more results // to return. - // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The order in which to sort the results. Valid values are ASC and DESC. By @@ -2673,12 +2214,19 @@ type ListTaskDefinitionsInput struct { // in a family are listed first. Sort *string `locationName:"sort" type:"string" enum:"SortOrder"` - // The task definition status with which to filter the ListTaskDefinitions results. - // By default, only ACTIVE task definitions are listed. By setting this parameter - // to INACTIVE, you can view task definitions that are INACTIVE as long as an - // active task or service still references them. If you paginate the resulting - // output, be sure to keep the status value constant in each subsequent request. + // The task definition status that you want to filter the ListTaskDefinitions + // results with. By default, only ACTIVE task definitions are listed. By setting + // this parameter to INACTIVE, you can view task definitions that are INACTIVE + // as long as an active task or service still references them. If you paginate + // the resulting output, be sure to keep the status value constant in each subsequent + // request. Status *string `locationName:"status" type:"string" enum:"TaskDefinitionStatus"` + + metadataListTaskDefinitionsInput `json:"-" xml:"-"` +} + +type metadataListTaskDefinitionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2692,17 +2240,21 @@ func (s ListTaskDefinitionsInput) GoString() string { } type ListTaskDefinitionsOutput struct { - _ struct{} `type:"structure"` - // The nextToken value to include in a future ListTaskDefinitions request. When // the results of a ListTaskDefinitions request exceed maxResults, this value // can be used to retrieve the next page of results. This value is null when // there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` - // The list of task definition Amazon Resource Name (ARN) entries for the ListTaskDefinitions + // The list of task definition Amazon Resource Name (ARN) entries for the ListTaskDefintions // request. TaskDefinitionArns []*string `locationName:"taskDefinitionArns" type:"list"` + + metadataListTaskDefinitionsOutput `json:"-" xml:"-"` +} + +type metadataListTaskDefinitionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2716,26 +2268,25 @@ func (s ListTaskDefinitionsOutput) GoString() string { } type ListTasksInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that hosts - // the tasks to list. If you do not specify a cluster, the default cluster is - // assumed.. + // the tasks you want to list. If you do not specify a cluster, the default + // cluster is assumed.. Cluster *string `locationName:"cluster" type:"string"` - // The container instance ID or full Amazon Resource Name (ARN) of the container - // instance with which to filter the ListTasks results. Specifying a containerInstance - // limits the results to tasks that belong to that container instance. + // The container instance UUID or full Amazon Resource Name (ARN) of the container + // instance that you want to filter the ListTasks results with. Specifying a + // containerInstance will limit the results to tasks that belong to that container + // instance. ContainerInstance *string `locationName:"containerInstance" type:"string"` - // The task status with which to filter the ListTasks results. Specifying a - // desiredStatus of STOPPED limits the results to tasks that are in the STOPPED - // status, which can be useful for debugging tasks that are not starting properly - // or have died or finished. The default status filter is RUNNING. + // The task status that you want to filter the ListTasks results with. Specifying + // a desiredStatus of STOPPED will limit the results to tasks that are in the + // STOPPED status, which can be useful for debugging tasks that are not starting + // properly or have died or finished. The default status filter is RUNNING. DesiredStatus *string `locationName:"desiredStatus" type:"string" enum:"DesiredStatus"` - // The name of the family with which to filter the ListTasks results. Specifying - // a family limits the results to tasks that belong to that family. + // The name of the family that you want to filter the ListTasks results with. + // Specifying a family will limit the results to tasks that belong to that family. Family *string `locationName:"family" type:"string"` // The maximum number of task results returned by ListTasks in paginated output. @@ -2751,18 +2302,23 @@ type ListTasksInput struct { // where maxResults was used and the results exceeded the value of that parameter. // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. - // - // This token should be treated as an opaque identifier that is only used - // to retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` - // The name of the service with which to filter the ListTasks results. Specifying - // a serviceName limits the results to tasks that belong to that service. + // The name of the service that you want to filter the ListTasks results with. + // Specifying a serviceName will limit the results to tasks that belong to that + // service. ServiceName *string `locationName:"serviceName" type:"string"` - // The startedBy value with which to filter the task results. Specifying a startedBy - // value limits the results to tasks that were started with that value. + // The startedBy value that you want to filter the task results with. Specifying + // a startedBy value will limit the results to tasks that were started with + // that value. StartedBy *string `locationName:"startedBy" type:"string"` + + metadataListTasksInput `json:"-" xml:"-"` +} + +type metadataListTasksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2776,8 +2332,6 @@ func (s ListTasksInput) GoString() string { } type ListTasksOutput struct { - _ struct{} `type:"structure"` - // The nextToken value to include in a future ListTasks request. When the results // of a ListTasks request exceed maxResults, this value can be used to retrieve // the next page of results. This value is null when there are no more results @@ -2786,6 +2340,12 @@ type ListTasksOutput struct { // The list of task Amazon Resource Name (ARN) entries for the ListTasks request. TaskArns []*string `locationName:"taskArns" type:"list"` + + metadataListTasksOutput `json:"-" xml:"-"` +} + +type metadataListTasksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2800,10 +2360,7 @@ func (s ListTasksOutput) GoString() string { // Details on a load balancer that is used with a service. type LoadBalancer struct { - _ struct{} `type:"structure"` - - // The name of the container (as it appears in a container definition) to associate - // with the load balancer. + // The name of the container to associate with the load balancer. ContainerName *string `locationName:"containerName" type:"string"` // The port on the container to associate with the load balancer. This port @@ -2814,75 +2371,26 @@ type LoadBalancer struct { // The name of the load balancer. LoadBalancerName *string `locationName:"loadBalancerName" type:"string"` -} - -// String returns the string representation -func (s LoadBalancer) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s LoadBalancer) GoString() string { - return s.String() + metadataLoadBalancer `json:"-" xml:"-"` } -// Log configuration options to send to a custom log driver for the container. -type LogConfiguration struct { - _ struct{} `type:"structure"` - - // The log driver to use for the container. The valid values listed for this - // parameter are log drivers that the Amazon ECS container agent can communicate - // with by default. - // - // If you have a custom driver that is not listed above that you would like - // to work with the Amazon ECS container agent, you can fork the Amazon ECS - // container agent project that is available on GitHub (https://github.com/aws/amazon-ecs-agent) - // and customize it to work with that driver. We encourage you to submit pull - // requests for changes that you would like to have included. However, Amazon - // Web Services does not currently provide support for running modified copies - // of this software. - // - // This parameter requires version 1.18 of the Docker Remote API or greater - // on your container instance. To check the Docker Remote API version on your - // container instance, log into your container instance and run the following - // command: sudo docker version | grep "Server API version" - LogDriver *string `locationName:"logDriver" type:"string" required:"true" enum:"LogDriver"` - - // The configuration options to send to the log driver. This parameter requires - // version 1.19 of the Docker Remote API or greater on your container instance. - // To check the Docker Remote API version on your container instance, log into - // your container instance and run the following command: sudo docker version - // | grep "Server API version" - Options map[string]*string `locationName:"options" type:"map"` +type metadataLoadBalancer struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s LogConfiguration) String() string { +func (s LoadBalancer) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LogConfiguration) GoString() string { +func (s LoadBalancer) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LogConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LogConfiguration"} - if s.LogDriver == nil { - invalidParams.Add(request.NewErrParamRequired("LogDriver")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Details on a volume mount point that is used in a container definition. type MountPoint struct { - _ struct{} `type:"structure"` - // The path on the container to mount the host volume at. ContainerPath *string `locationName:"containerPath" type:"string"` @@ -2893,6 +2401,12 @@ type MountPoint struct { // The name of the volume to mount. SourceVolume *string `locationName:"sourceVolume" type:"string"` + + metadataMountPoint `json:"-" xml:"-"` +} + +type metadataMountPoint struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2906,12 +2420,8 @@ func (s MountPoint) GoString() string { } // Details on the network bindings between a container and its host container -// instance. After a task reaches the RUNNING status, manual and automatic host -// and container port assignments are visible in the networkBindings section -// of DescribeTasks API responses. +// instance. type NetworkBinding struct { - _ struct{} `type:"structure"` - // The IP address that the container is bound to on the container instance. BindIP *string `locationName:"bindIP" type:"string"` @@ -2923,6 +2433,12 @@ type NetworkBinding struct { // The protocol used for the network binding. Protocol *string `locationName:"protocol" type:"string" enum:"TransportProtocol"` + + metadataNetworkBinding `json:"-" xml:"-"` +} + +type metadataNetworkBinding struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2937,47 +2453,46 @@ func (s NetworkBinding) GoString() string { // 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. After a task reaches the RUNNING status, manual and automatic -// host and container port assignments are visible in the networkBindings section -// of DescribeTasks API responses. +// definition. type PortMapping struct { - _ struct{} `type:"structure"` - // The port number on the container that is bound to the user-specified or automatically // assigned host port. If you specify a container port and not a host port, - // your container automatically receives a host port in the ephemeral port range - // (for more information, see hostPort). Port mappings that are automatically - // assigned in this way do not count toward the 100 reserved ports limit of - // a container instance. + // your container will automatically receive a host port in the ephemeral port + // range (for more information, see hostPort). ContainerPort *int64 `locationName:"containerPort" type:"integer"` // The port number on the container instance to reserve for your container. // You can specify a non-reserved host port for your container port mapping, // or you can omit the hostPort (or set it to 0) while specifying a containerPort - // and your container automatically receives a port in the ephemeral port range - // for your container instance operating system and Docker version. + // and your container will automatically receive a port in the ephemeral port + // range for your container instance operating system and Docker version. // // The default ephemeral port range is 49153 to 65535, and this range is used // for Docker versions prior to 1.6.0. For Docker version 1.6.0 and later, the // Docker daemon tries to read the ephemeral port range from /proc/sys/net/ipv4/ip_local_port_range; // if this kernel parameter is unavailable, the default ephemeral port range // is used. You should not attempt to specify a host port in the ephemeral port - // range, because these are reserved for automatic assignment. In general, ports + // range, since these are reserved for automatic assignment. In general, ports // below 32768 are outside of the ephemeral port range. // // The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, - // and the Amazon ECS container agent port 51678. Any host port that was previously - // specified in a running task is also reserved while the task is running (after + // and the Amazon ECS Container Agent port 51678. Any host port that was previously + // specified in a running task is also reserved while the task is running (once // a task stops, the host port is released).The current reserved ports are displayed // in the remainingResources of DescribeContainerInstances output, and a container - // instance may have up to 100 reserved ports at a time, including the default - // reserved ports (automatically assigned ports do not count toward the 100 - // reserved ports limit). + // instance may have up to 50 reserved ports at a time, including the default + // reserved ports (automatically assigned ports do not count toward this limit). HostPort *int64 `locationName:"hostPort" type:"integer"` // The protocol used for the port mapping. Valid values are tcp and udp. The // default is tcp. Protocol *string `locationName:"protocol" type:"string" enum:"TransportProtocol"` + + metadataPortMapping `json:"-" xml:"-"` +} + +type metadataPortMapping struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2991,25 +2506,21 @@ func (s PortMapping) GoString() string { } type RegisterContainerInstanceInput struct { - _ struct{} `type:"structure"` - - // The container instance attributes that this container instance supports. - Attributes []*Attribute `locationName:"attributes" type:"list"` - - // The short name or full Amazon Resource Name (ARN) of the cluster with which - // to register your container instance. If you do not specify a cluster, the - // default cluster is assumed.. + // The short name or full Amazon Resource Name (ARN) of the cluster that you + // want to register your container instance with. If you do not specify a cluster, + // the default cluster is assumed.. Cluster *string `locationName:"cluster" type:"string"` // The Amazon Resource Name (ARN) of the container instance (if it was previously // registered). ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - // The instance identity document for the EC2 instance to register. This document - // can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/document/ + // The instance identity document for the Amazon EC2 instance to register. This + // document can be found by running the following command from the instance: + // curl http://169.254.169.254/latest/dynamic/instance-identity/document/ InstanceIdentityDocument *string `locationName:"instanceIdentityDocument" type:"string"` - // The instance identity document signature for the EC2 instance to register. + // The instance identity document signature for the Amazon EC2 instance to register. // This signature can be found by running the following command from the instance: // curl http://169.254.169.254/latest/dynamic/instance-identity/signature/ InstanceIdentityDocumentSignature *string `locationName:"instanceIdentityDocumentSignature" type:"string"` @@ -3020,6 +2531,12 @@ type RegisterContainerInstanceInput struct { // The version information for the Amazon ECS container agent and Docker daemon // running on the container instance. VersionInfo *VersionInfo `locationName:"versionInfo" type:"structure"` + + metadataRegisterContainerInstanceInput `json:"-" xml:"-"` +} + +type metadataRegisterContainerInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3032,32 +2549,16 @@ func (s RegisterContainerInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterContainerInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterContainerInstanceInput"} - if s.Attributes != nil { - for i, v := range s.Attributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) - } - } - } +type RegisterContainerInstanceOutput struct { + // An Amazon EC2 instance that is running the Amazon ECS agent and has been + // registered with a cluster. + ContainerInstance *ContainerInstance `locationName:"containerInstance" type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataRegisterContainerInstanceOutput `json:"-" xml:"-"` } -type RegisterContainerInstanceOutput struct { - _ struct{} `type:"structure"` - - // An EC2 instance that is running the Amazon ECS agent and has been registered - // with a cluster. - ContainerInstance *ContainerInstance `locationName:"containerInstance" type:"structure"` +type metadataRegisterContainerInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3071,21 +2572,25 @@ func (s RegisterContainerInstanceOutput) GoString() string { } type RegisterTaskDefinitionInput struct { - _ struct{} `type:"structure"` - // A list of container definitions in JSON format that describe the different // containers that make up your task. ContainerDefinitions []*ContainerDefinition `locationName:"containerDefinitions" type:"list" required:"true"` // You must specify a family for a task definition, which allows you to track - // multiple versions of the same task definition. The family is used as a name - // for your task definition. Up to 255 letters (uppercase and lowercase), numbers, - // hyphens, and underscores are allowed. + // multiple versions of the same task definition. You can think of the family + // as a name for your task definition. Up to 255 letters (uppercase and lowercase), + // numbers, hyphens, and underscores are allowed. Family *string `locationName:"family" type:"string" required:"true"` // A list of volume definitions in JSON format that containers in your task // may use. Volumes []*Volume `locationName:"volumes" type:"list"` + + metadataRegisterTaskDefinitionInput `json:"-" xml:"-"` +} + +type metadataRegisterTaskDefinitionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3098,37 +2603,15 @@ func (s RegisterTaskDefinitionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterTaskDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterTaskDefinitionInput"} - if s.ContainerDefinitions == nil { - invalidParams.Add(request.NewErrParamRequired("ContainerDefinitions")) - } - if s.Family == nil { - invalidParams.Add(request.NewErrParamRequired("Family")) - } - if s.ContainerDefinitions != nil { - for i, v := range s.ContainerDefinitions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContainerDefinitions", i), err.(request.ErrInvalidParams)) - } - } - } +type RegisterTaskDefinitionOutput struct { + // Details of a task definition. + TaskDefinition *TaskDefinition `locationName:"taskDefinition" type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataRegisterTaskDefinitionOutput `json:"-" xml:"-"` } -type RegisterTaskDefinitionOutput struct { - _ struct{} `type:"structure"` - - // The full description of the registered task definition. - TaskDefinition *TaskDefinition `locationName:"taskDefinition" type:"structure"` +type metadataRegisterTaskDefinitionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3143,8 +2626,6 @@ func (s RegisterTaskDefinitionOutput) GoString() string { // Describes the resources available for a container instance. type Resource struct { - _ struct{} `type:"structure"` - // When the doubleValue type is set, the value of the resource must be a double // precision floating-point type. DoubleValue *float64 `locationName:"doubleValue" type:"double"` @@ -3165,6 +2646,12 @@ type Resource struct { // The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET. Type *string `locationName:"type" type:"string"` + + metadataResource `json:"-" xml:"-"` +} + +type metadataResource struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3178,14 +2665,13 @@ func (s Resource) GoString() string { } type RunTaskInput struct { - _ struct{} `type:"structure"` - - // The short name or full Amazon Resource Name (ARN) of the cluster on which - // to run your task. If you do not specify a cluster, the default cluster is - // assumed.. + // The short name or full Amazon Resource Name (ARN) of the cluster that you + // want to run your task on. If you do not specify a cluster, the default cluster + // is assumed.. Cluster *string `locationName:"cluster" type:"string"` - // The number of instantiations of the specified task to place on your cluster. + // The number of instantiations of the specified task that you would like to + // place on your cluster. // // The count parameter is limited to 10 tasks per call. Count *int64 `locationName:"count" type:"integer"` @@ -3206,17 +2692,22 @@ type RunTaskInput struct { // trigger a task to run a batch process job, you could apply a unique identifier // for that job to your task with the startedBy parameter. You can then identify // which tasks belong to that job by filtering the results of a ListTasks call - // with the startedBy value. Up to 36 letters (uppercase and lowercase), numbers, - // hyphens, and underscores are allowed. + // with the startedBy value. // // If a task is started by an Amazon ECS service, then the startedBy parameter // contains the deployment ID of the service that starts it. StartedBy *string `locationName:"startedBy" type:"string"` // The family and revision (family:revision) or full Amazon Resource Name (ARN) - // of the task definition to run. If a revision is not specified, the latest - // ACTIVE revision is used. + // of the task definition that you want to run. If a revision is not specified, + // the latest ACTIVE revision is used. TaskDefinition *string `locationName:"taskDefinition" type:"string" required:"true"` + + metadataRunTaskInput `json:"-" xml:"-"` +} + +type metadataRunTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3229,28 +2720,19 @@ func (s RunTaskInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RunTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RunTaskInput"} - if s.TaskDefinition == nil { - invalidParams.Add(request.NewErrParamRequired("TaskDefinition")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RunTaskOutput struct { - _ struct{} `type:"structure"` - - // Any failures associated with the call. + // Any failed tasks from your RunTask action are listed here. Failures []*Failure `locationName:"failures" type:"list"` // A full description of the tasks that were run. Each task that was successfully - // placed on your cluster are described here. + // placed on your cluster will be described here. Tasks []*Task `locationName:"tasks" type:"list"` + + metadataRunTaskOutput `json:"-" xml:"-"` +} + +type metadataRunTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3265,18 +2747,9 @@ func (s RunTaskOutput) GoString() string { // Details on a service within a cluster type Service struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the cluster that hosts the service. + // The Amazon Resource Name (ARN) of the of the cluster that hosts the service. ClusterArn *string `locationName:"clusterArn" type:"string"` - // The Unix time in seconds and milliseconds when the service was created. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` - - // Optional deployment parameters that control how many tasks run during the - // deployment and the ordering of stopping and starting tasks. - DeploymentConfiguration *DeploymentConfiguration `locationName:"deploymentConfiguration" type:"structure"` - // The current state of deployments for the service. Deployments []*Deployment `locationName:"deployments" type:"list"` @@ -3308,13 +2781,10 @@ type Service struct { // The Amazon Resource Name (ARN) that identifies the service. The ARN contains // the arn:aws:ecs namespace, followed by the region of the service, the AWS // account ID of the service owner, the service namespace, and then the service - // name. For example, arn:aws:ecs:region:012345678910:service/my-service . + // name. For example, arn:aws:ecs:region:012345678910:service/my-service. ServiceArn *string `locationName:"serviceArn" type:"string"` - // The name of your service. Up to 255 letters (uppercase and lowercase), numbers, - // hyphens, and underscores are allowed. Service names must be unique within - // a cluster, but you can have similarly named services in multiple clusters - // within a region or across multiple regions. + // A user-generated string that you can use to identify your service. ServiceName *string `locationName:"serviceName" type:"string"` // The status of the service. The valid values are ACTIVE, DRAINING, or INACTIVE. @@ -3324,6 +2794,12 @@ type Service struct { // when the service is created with CreateService, and it can be modified with // UpdateService. TaskDefinition *string `locationName:"taskDefinition" type:"string"` + + metadataService `json:"-" xml:"-"` +} + +type metadataService struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3338,8 +2814,6 @@ func (s Service) GoString() string { // Details on an event associated with a service. type ServiceEvent struct { - _ struct{} `type:"structure"` - // The Unix time in seconds and milliseconds when the event was triggered. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` @@ -3348,6 +2822,12 @@ type ServiceEvent struct { // The event message. Message *string `locationName:"message" type:"string"` + + metadataServiceEvent `json:"-" xml:"-"` +} + +type metadataServiceEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3361,14 +2841,12 @@ func (s ServiceEvent) GoString() string { } type StartTaskInput struct { - _ struct{} `type:"structure"` - - // The short name or full Amazon Resource Name (ARN) of the cluster on which - // to start your task. If you do not specify a cluster, the default cluster - // is assumed.. + // The short name or full Amazon Resource Name (ARN) of the cluster that you + // want to start your task on. If you do not specify a cluster, the default + // cluster is assumed.. Cluster *string `locationName:"cluster" type:"string"` - // The container instance IDs or full Amazon Resource Name (ARN) entries for + // The container instance UUIDs or full Amazon Resource Name (ARN) entries for // the container instances on which you would like to place your task. // // The list of container instances to start tasks on is limited to 10. @@ -3390,17 +2868,22 @@ type StartTaskInput struct { // trigger a task to run a batch process job, you could apply a unique identifier // for that job to your task with the startedBy parameter. You can then identify // which tasks belong to that job by filtering the results of a ListTasks call - // with the startedBy value. Up to 36 letters (uppercase and lowercase), numbers, - // hyphens, and underscores are allowed. + // with the startedBy value. // // If a task is started by an Amazon ECS service, then the startedBy parameter // contains the deployment ID of the service that starts it. StartedBy *string `locationName:"startedBy" type:"string"` // The family and revision (family:revision) or full Amazon Resource Name (ARN) - // of the task definition to start. If a revision is not specified, the latest - // ACTIVE revision is used. + // of the task definition that you want to start. If a revision is not specified, + // the latest ACTIVE revision is used. TaskDefinition *string `locationName:"taskDefinition" type:"string" required:"true"` + + metadataStartTaskInput `json:"-" xml:"-"` +} + +type metadataStartTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3413,31 +2896,19 @@ func (s StartTaskInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartTaskInput"} - if s.ContainerInstances == nil { - invalidParams.Add(request.NewErrParamRequired("ContainerInstances")) - } - if s.TaskDefinition == nil { - invalidParams.Add(request.NewErrParamRequired("TaskDefinition")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type StartTaskOutput struct { - _ struct{} `type:"structure"` - - // Any failures associated with the call. + // Any failed tasks from your StartTask action are listed here. Failures []*Failure `locationName:"failures" type:"list"` // A full description of the tasks that were started. Each task that was successfully - // placed on your container instances are described here. + // placed on your container instances will be described here. Tasks []*Task `locationName:"tasks" type:"list"` + + metadataStartTaskOutput `json:"-" xml:"-"` +} + +type metadataStartTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3451,21 +2922,20 @@ func (s StartTaskOutput) GoString() string { } type StopTaskInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that hosts - // the task to stop. If you do not specify a cluster, the default cluster is - // assumed.. + // the task you want to stop. If you do not specify a cluster, the default cluster + // is assumed.. Cluster *string `locationName:"cluster" type:"string"` - // An optional message specified when a task is stopped. For example, if you - // are using a custom scheduler, you can use this parameter to specify the reason - // for stopping the task here, and the message will appear in subsequent DescribeTasks - // API operations on this task. Up to 255 characters are allowed in this message. - Reason *string `locationName:"reason" type:"string"` - - // The task ID or full Amazon Resource Name (ARN) entry of the task to stop. + // The task UUIDs or full Amazon Resource Name (ARN) entry of the task you would + // like to stop. Task *string `locationName:"task" type:"string" required:"true"` + + metadataStopTaskInput `json:"-" xml:"-"` +} + +type metadataStopTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3478,24 +2948,15 @@ func (s StopTaskInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopTaskInput"} - if s.Task == nil { - invalidParams.Add(request.NewErrParamRequired("Task")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type StopTaskOutput struct { - _ struct{} `type:"structure"` - // Details on a task in a cluster. Task *Task `locationName:"task" type:"structure"` + + metadataStopTaskOutput `json:"-" xml:"-"` +} + +type metadataStopTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3509,8 +2970,6 @@ func (s StopTaskOutput) GoString() string { } type SubmitContainerStateChangeInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that hosts // the container. Cluster *string `locationName:"cluster" type:"string"` @@ -3530,9 +2989,15 @@ type SubmitContainerStateChangeInput struct { // The status of the state change request. Status *string `locationName:"status" type:"string"` - // The task ID or full Amazon Resource Name (ARN) of the task that hosts the + // The task UUID or full Amazon Resource Name (ARN) of the task that hosts the // container. Task *string `locationName:"task" type:"string"` + + metadataSubmitContainerStateChangeInput `json:"-" xml:"-"` +} + +type metadataSubmitContainerStateChangeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3546,10 +3011,14 @@ func (s SubmitContainerStateChangeInput) GoString() string { } type SubmitContainerStateChangeOutput struct { - _ struct{} `type:"structure"` - // Acknowledgement of the state change. Acknowledgment *string `locationName:"acknowledgment" type:"string"` + + metadataSubmitContainerStateChangeOutput `json:"-" xml:"-"` +} + +type metadataSubmitContainerStateChangeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3563,8 +3032,6 @@ func (s SubmitContainerStateChangeOutput) GoString() string { } type SubmitTaskStateChangeInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that hosts // the task. Cluster *string `locationName:"cluster" type:"string"` @@ -3575,9 +3042,15 @@ type SubmitTaskStateChangeInput struct { // The status of the state change request. Status *string `locationName:"status" type:"string"` - // The task ID or full Amazon Resource Name (ARN) of the task in the state change - // request. + // The task UUID or full Amazon Resource Name (ARN) of the task in the state + // change request. Task *string `locationName:"task" type:"string"` + + metadataSubmitTaskStateChangeInput `json:"-" xml:"-"` +} + +type metadataSubmitTaskStateChangeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3591,10 +3064,14 @@ func (s SubmitTaskStateChangeInput) GoString() string { } type SubmitTaskStateChangeOutput struct { - _ struct{} `type:"structure"` - // Acknowledgement of the state change. Acknowledgment *string `locationName:"acknowledgment" type:"string"` + + metadataSubmitTaskStateChangeOutput `json:"-" xml:"-"` +} + +type metadataSubmitTaskStateChangeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3609,9 +3086,7 @@ func (s SubmitTaskStateChangeOutput) GoString() string { // Details on a task in a cluster. type Task struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the cluster that hosts the task. + // The Amazon Resource Name (ARN) of the of the cluster that hosts the task. ClusterArn *string `locationName:"clusterArn" type:"string"` // The Amazon Resource Name (ARN) of the container instances that host the task. @@ -3620,10 +3095,6 @@ type Task struct { // The containers associated with the task. Containers []*Container `locationName:"containers" type:"list"` - // The Unix time in seconds and milliseconds when the task was created (the - // task entered the PENDING state). - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` - // The desired status of the task. DesiredStatus *string `locationName:"desiredStatus" type:"string"` @@ -3633,27 +3104,23 @@ type Task struct { // One or more container overrides. Overrides *TaskOverride `locationName:"overrides" type:"structure"` - // The Unix time in seconds and milliseconds when the task was started (the - // task transitioned from the PENDING state to the RUNNING state). - StartedAt *time.Time `locationName:"startedAt" type:"timestamp" timestampFormat:"unix"` - // The tag specified when a task is started. If the task is started by an Amazon // ECS service, then the startedBy parameter contains the deployment ID of the // service that starts it. StartedBy *string `locationName:"startedBy" type:"string"` - // The Unix time in seconds and milliseconds when the task was stopped (the - // task transitioned from the RUNNING state to the STOPPED state). - StoppedAt *time.Time `locationName:"stoppedAt" type:"timestamp" timestampFormat:"unix"` - - // The reason the task was stopped. - StoppedReason *string `locationName:"stoppedReason" type:"string"` - // The Amazon Resource Name (ARN) of the task. TaskArn *string `locationName:"taskArn" type:"string"` - // The Amazon Resource Name (ARN) of the task definition that creates the task. + // The Amazon Resource Name (ARN) of the of the task definition that creates + // the task. TaskDefinitionArn *string `locationName:"taskDefinitionArn" type:"string"` + + metadataTask `json:"-" xml:"-"` +} + +type metadataTask struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3668,37 +3135,40 @@ func (s Task) GoString() string { // Details of a task definition. type TaskDefinition struct { - _ struct{} `type:"structure"` - // A list of container definitions in JSON format that describe the different - // containers that make up your task. For more information about container definition - // parameters and defaults, see Amazon ECS Task Definitions (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AmazonECS/latest/developerguidetask_defintions.html) + // containers that make up your task. For more information on container definition + // parameters and defaults, see Amazon ECS Task Definitions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html) // in the Amazon EC2 Container Service Developer Guide. ContainerDefinitions []*ContainerDefinition `locationName:"containerDefinitions" type:"list"` - // The family of your task definition, used as the definition name. + // The family of your task definition. You can think of the family as the name + // of your task definition. Family *string `locationName:"family" type:"string"` - // The container instance attributes required by your task. - RequiresAttributes []*Attribute `locationName:"requiresAttributes" type:"list"` - - // The revision of the task in a particular family. The revision is a version - // number of a task definition in a family. When you register a task definition - // for the first time, the revision is 1; each time you register a new revision - // of a task definition in the same family, the revision value always increases - // by one (even if you have deregistered previous revisions in this family). + // The revision of the task in a particular family. You can think of the revision + // as a version number of a task definition in a family. When you register a + // task definition for the first time, the revision is 1, and each time you + // register a new revision of a task definition in the same family, the revision + // value always increases by one (even if you have deregistered previous revisions + // in this family). Revision *int64 `locationName:"revision" type:"integer"` // The status of the task definition. Status *string `locationName:"status" type:"string" enum:"TaskDefinitionStatus"` - // The full Amazon Resource Name (ARN) of the task definition. + // The full Amazon Resource Name (ARN) of the of the task definition. TaskDefinitionArn *string `locationName:"taskDefinitionArn" type:"string"` - // The list of volumes in a task. For more information about volume definition - // parameters and defaults, see Amazon ECS Task Definitions (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AmazonECS/latest/developerguidetask_defintions.html) + // The list of volumes in a task. For more information on volume definition + // parameters and defaults, see Amazon ECS Task Definitions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html) // in the Amazon EC2 Container Service Developer Guide. Volumes []*Volume `locationName:"volumes" type:"list"` + + metadataTaskDefinition `json:"-" xml:"-"` +} + +type metadataTaskDefinition struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3713,77 +3183,42 @@ func (s TaskDefinition) GoString() string { // The overrides associated with a task. type TaskOverride struct { - _ struct{} `type:"structure"` - // One or more container overrides sent to a task. ContainerOverrides []*ContainerOverride `locationName:"containerOverrides" type:"list"` -} - -// String returns the string representation -func (s TaskOverride) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s TaskOverride) GoString() string { - return s.String() + metadataTaskOverride `json:"-" xml:"-"` } -// The ulimit settings to pass to the container. -type Ulimit struct { - _ struct{} `type:"structure"` - - // The hard limit for the ulimit type. - HardLimit *int64 `locationName:"hardLimit" type:"integer" required:"true"` - - // The type of the ulimit. - Name *string `locationName:"name" type:"string" required:"true" enum:"UlimitName"` - - // The soft limit for the ulimit type. - SoftLimit *int64 `locationName:"softLimit" type:"integer" required:"true"` +type metadataTaskOverride struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Ulimit) String() string { +func (s TaskOverride) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Ulimit) GoString() string { +func (s TaskOverride) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Ulimit) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Ulimit"} - if s.HardLimit == nil { - invalidParams.Add(request.NewErrParamRequired("HardLimit")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.SoftLimit == nil { - invalidParams.Add(request.NewErrParamRequired("SoftLimit")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type UpdateContainerAgentInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that your // container instance is running on. If you do not specify a cluster, the default // cluster is assumed. Cluster *string `locationName:"cluster" type:"string"` - // The container instance ID or full Amazon Resource Name (ARN) entries for + // The container instance UUID or full Amazon Resource Name (ARN) entries for // the container instance on which you would like to update the Amazon ECS container // agent. ContainerInstance *string `locationName:"containerInstance" type:"string" required:"true"` + + metadataUpdateContainerAgentInput `json:"-" xml:"-"` +} + +type metadataUpdateContainerAgentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3796,25 +3231,16 @@ func (s UpdateContainerAgentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateContainerAgentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateContainerAgentInput"} - if s.ContainerInstance == nil { - invalidParams.Add(request.NewErrParamRequired("ContainerInstance")) - } +type UpdateContainerAgentOutput struct { + // An Amazon EC2 instance that is running the Amazon ECS agent and has been + // registered with a cluster. + ContainerInstance *ContainerInstance `locationName:"containerInstance" type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataUpdateContainerAgentOutput `json:"-" xml:"-"` } -type UpdateContainerAgentOutput struct { - _ struct{} `type:"structure"` - - // An EC2 instance that is running the Amazon ECS agent and has been registered - // with a cluster. - ContainerInstance *ContainerInstance `locationName:"containerInstance" type:"structure"` +type metadataUpdateContainerAgentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3828,30 +3254,31 @@ func (s UpdateContainerAgentOutput) GoString() string { } type UpdateServiceInput struct { - _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that your // service is running on. If you do not specify a cluster, the default cluster // is assumed. Cluster *string `locationName:"cluster" type:"string"` - // Optional deployment parameters that control how many tasks run during the - // deployment and the ordering of stopping and starting tasks. - DeploymentConfiguration *DeploymentConfiguration `locationName:"deploymentConfiguration" type:"structure"` - - // The number of instantiations of the task to place and keep running in your - // service. + // The number of instantiations of the task that you would like to place and + // keep running in your service. DesiredCount *int64 `locationName:"desiredCount" type:"integer"` - // The name of the service to update. + // The name of the service that you want to update. Service *string `locationName:"service" type:"string" required:"true"` // The family and revision (family:revision) or full Amazon Resource Name (ARN) - // of the task definition to run in your service. If a revision is not specified, - // the latest ACTIVE revision is used. If you modify the task definition with - // UpdateService, Amazon ECS spawns a task with the new version of the task - // definition and then stops an old task after the new version is running. + // of the task definition that you want to run in your service. If a revision + // is not specified, the latest ACTIVE revision is used. If you modify the task + // definition with UpdateService, Amazon ECS spawns a task with the new version + // of the task definition and then stops an old task after the new version is + // running. TaskDefinition *string `locationName:"taskDefinition" type:"string"` + + metadataUpdateServiceInput `json:"-" xml:"-"` +} + +type metadataUpdateServiceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3864,24 +3291,15 @@ func (s UpdateServiceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateServiceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateServiceInput"} - if s.Service == nil { - invalidParams.Add(request.NewErrParamRequired("Service")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type UpdateServiceOutput struct { - _ struct{} `type:"structure"` - // The full description of your service following the update call. Service *Service `locationName:"service" type:"structure"` + + metadataUpdateServiceOutput `json:"-" xml:"-"` +} + +type metadataUpdateServiceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3894,11 +3312,9 @@ func (s UpdateServiceOutput) GoString() string { return s.String() } -// The Docker and Amazon ECS container agent version information about a container +// The Docker and Amazon ECS container agent version information on a container // instance. type VersionInfo struct { - _ struct{} `type:"structure"` - // The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent // (https://github.com/aws/amazon-ecs-agent/commits/master) GitHub repository. AgentHash *string `locationName:"agentHash" type:"string"` @@ -3908,6 +3324,12 @@ type VersionInfo struct { // The Docker version running on the container instance. DockerVersion *string `locationName:"dockerVersion" type:"string"` + + metadataVersionInfo `json:"-" xml:"-"` +} + +type metadataVersionInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3922,19 +3344,20 @@ func (s VersionInfo) GoString() string { // A data volume used in a task definition. type Volume struct { - _ struct{} `type:"structure"` - - // The contents of the host parameter determine whether your data volume persists - // on the host container instance and where it is stored. If the host parameter - // is empty, then the Docker daemon assigns a host path for your data volume, - // but the data is not guaranteed to persist after the containers associated - // with it stop running. + // The path on the host container instance that is presented to the containers + // which access the volume. If this parameter is empty, then the Docker daemon + // assigns a host path for you. Host *HostVolumeProperties `locationName:"host" type:"structure"` - // The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, - // hyphens, and underscores are allowed. This name is referenced in the sourceVolume - // parameter of container definition mountPoints. + // The name of the volume. This name is referenced in the sourceVolume parameter + // of container definition mountPoints. Name *string `locationName:"name" type:"string"` + + metadataVolume `json:"-" xml:"-"` +} + +type metadataVolume struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3949,8 +3372,6 @@ func (s Volume) GoString() string { // Details on a data volume from another container. type VolumeFrom struct { - _ struct{} `type:"structure"` - // If this value is true, the container has read-only access to the volume. // If this value is false, then the container can write to the volume. The default // value is false. @@ -3958,6 +3379,12 @@ type VolumeFrom struct { // The name of the container to mount volumes from. SourceContainer *string `locationName:"sourceContainer" type:"string"` + + metadataVolumeFrom `json:"-" xml:"-"` +} + +type metadataVolumeFrom struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3994,21 +3421,6 @@ const ( DesiredStatusStopped = "STOPPED" ) -const ( - // @enum LogDriver - LogDriverJsonFile = "json-file" - // @enum LogDriver - LogDriverSyslog = "syslog" - // @enum LogDriver - LogDriverJournald = "journald" - // @enum LogDriver - LogDriverGelf = "gelf" - // @enum LogDriver - LogDriverFluentd = "fluentd" - // @enum LogDriver - LogDriverAwslogs = "awslogs" -) - const ( // @enum SortOrder SortOrderAsc = "ASC" @@ -4016,15 +3428,6 @@ const ( SortOrderDesc = "DESC" ) -const ( - // @enum TaskDefinitionFamilyStatus - TaskDefinitionFamilyStatusActive = "ACTIVE" - // @enum TaskDefinitionFamilyStatus - TaskDefinitionFamilyStatusInactive = "INACTIVE" - // @enum TaskDefinitionFamilyStatus - TaskDefinitionFamilyStatusAll = "ALL" -) - const ( // @enum TaskDefinitionStatus TaskDefinitionStatusActive = "ACTIVE" @@ -4038,36 +3441,3 @@ const ( // @enum TransportProtocol TransportProtocolUdp = "udp" ) - -const ( - // @enum UlimitName - UlimitNameCore = "core" - // @enum UlimitName - UlimitNameCpu = "cpu" - // @enum UlimitName - UlimitNameData = "data" - // @enum UlimitName - UlimitNameFsize = "fsize" - // @enum UlimitName - UlimitNameLocks = "locks" - // @enum UlimitName - UlimitNameMemlock = "memlock" - // @enum UlimitName - UlimitNameMsgqueue = "msgqueue" - // @enum UlimitName - UlimitNameNice = "nice" - // @enum UlimitName - UlimitNameNofile = "nofile" - // @enum UlimitName - UlimitNameNproc = "nproc" - // @enum UlimitName - UlimitNameRss = "rss" - // @enum UlimitName - UlimitNameRtprio = "rtprio" - // @enum UlimitName - UlimitNameRttime = "rttime" - // @enum UlimitName - UlimitNameSigpending = "sigpending" - // @enum UlimitName - UlimitNameStack = "stack" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go index 58a4aecef..45c4738c9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface.go @@ -130,5 +130,3 @@ type ECSAPI interface { UpdateService(*ecs.UpdateServiceInput) (*ecs.UpdateServiceOutput, error) } - -var _ ECSAPI = (*ecs.ECS)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface_test.go new file mode 100644 index 000000000..fae83a712 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ecsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/ecs" + "github.com/aws/aws-sdk-go/service/ecs/ecsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*ecsiface.ECSAPI)(nil), ecs.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go index 95bb09383..fb7e11cc4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ecs" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleECS_CreateCluster() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.CreateClusterInput{ ClusterName: aws.String("String"), @@ -35,7 +34,7 @@ func ExampleECS_CreateCluster() { } func ExampleECS_CreateService() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.CreateServiceInput{ DesiredCount: aws.Int64(1), // Required @@ -43,10 +42,6 @@ func ExampleECS_CreateService() { TaskDefinition: aws.String("String"), // Required ClientToken: aws.String("String"), Cluster: aws.String("String"), - DeploymentConfiguration: &ecs.DeploymentConfiguration{ - MaximumPercent: aws.Int64(1), - MinimumHealthyPercent: aws.Int64(1), - }, LoadBalancers: []*ecs.LoadBalancer{ { // Required ContainerName: aws.String("String"), @@ -71,7 +66,7 @@ func ExampleECS_CreateService() { } func ExampleECS_DeleteCluster() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.DeleteClusterInput{ Cluster: aws.String("String"), // Required @@ -90,7 +85,7 @@ func ExampleECS_DeleteCluster() { } func ExampleECS_DeleteService() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.DeleteServiceInput{ Service: aws.String("String"), // Required @@ -110,7 +105,7 @@ func ExampleECS_DeleteService() { } func ExampleECS_DeregisterContainerInstance() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.DeregisterContainerInstanceInput{ ContainerInstance: aws.String("String"), // Required @@ -131,7 +126,7 @@ func ExampleECS_DeregisterContainerInstance() { } func ExampleECS_DeregisterTaskDefinition() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.DeregisterTaskDefinitionInput{ TaskDefinition: aws.String("String"), // Required @@ -150,7 +145,7 @@ func ExampleECS_DeregisterTaskDefinition() { } func ExampleECS_DescribeClusters() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.DescribeClustersInput{ Clusters: []*string{ @@ -172,7 +167,7 @@ func ExampleECS_DescribeClusters() { } func ExampleECS_DescribeContainerInstances() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.DescribeContainerInstancesInput{ ContainerInstances: []*string{ // Required @@ -195,7 +190,7 @@ func ExampleECS_DescribeContainerInstances() { } func ExampleECS_DescribeServices() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.DescribeServicesInput{ Services: []*string{ // Required @@ -218,7 +213,7 @@ func ExampleECS_DescribeServices() { } func ExampleECS_DescribeTaskDefinition() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.DescribeTaskDefinitionInput{ TaskDefinition: aws.String("String"), // Required @@ -237,7 +232,7 @@ func ExampleECS_DescribeTaskDefinition() { } func ExampleECS_DescribeTasks() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.DescribeTasksInput{ Tasks: []*string{ // Required @@ -260,7 +255,7 @@ func ExampleECS_DescribeTasks() { } func ExampleECS_DiscoverPollEndpoint() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.DiscoverPollEndpointInput{ Cluster: aws.String("String"), @@ -280,7 +275,7 @@ func ExampleECS_DiscoverPollEndpoint() { } func ExampleECS_ListClusters() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.ListClustersInput{ MaxResults: aws.Int64(1), @@ -300,7 +295,7 @@ func ExampleECS_ListClusters() { } func ExampleECS_ListContainerInstances() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.ListContainerInstancesInput{ Cluster: aws.String("String"), @@ -321,7 +316,7 @@ func ExampleECS_ListContainerInstances() { } func ExampleECS_ListServices() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.ListServicesInput{ Cluster: aws.String("String"), @@ -342,13 +337,12 @@ func ExampleECS_ListServices() { } func ExampleECS_ListTaskDefinitionFamilies() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.ListTaskDefinitionFamiliesInput{ FamilyPrefix: aws.String("String"), MaxResults: aws.Int64(1), NextToken: aws.String("String"), - Status: aws.String("TaskDefinitionFamilyStatus"), } resp, err := svc.ListTaskDefinitionFamilies(params) @@ -364,7 +358,7 @@ func ExampleECS_ListTaskDefinitionFamilies() { } func ExampleECS_ListTaskDefinitions() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.ListTaskDefinitionsInput{ FamilyPrefix: aws.String("String"), @@ -387,7 +381,7 @@ func ExampleECS_ListTaskDefinitions() { } func ExampleECS_ListTasks() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.ListTasksInput{ Cluster: aws.String("String"), @@ -413,16 +407,9 @@ func ExampleECS_ListTasks() { } func ExampleECS_RegisterContainerInstance() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.RegisterContainerInstanceInput{ - Attributes: []*ecs.Attribute{ - { // Required - Name: aws.String("String"), // Required - Value: aws.String("String"), - }, - // More values... - }, Cluster: aws.String("String"), ContainerInstanceArn: aws.String("String"), InstanceIdentityDocument: aws.String("String"), @@ -461,7 +448,7 @@ func ExampleECS_RegisterContainerInstance() { } func ExampleECS_RegisterTaskDefinition() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.RegisterTaskDefinitionInput{ ContainerDefinitions: []*ecs.ContainerDefinition{ // Required @@ -470,24 +457,7 @@ func ExampleECS_RegisterTaskDefinition() { aws.String("String"), // Required // More values... }, - Cpu: aws.Int64(1), - DisableNetworking: aws.Bool(true), - DnsSearchDomains: []*string{ - aws.String("String"), // Required - // More values... - }, - DnsServers: []*string{ - aws.String("String"), // Required - // More values... - }, - DockerLabels: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - DockerSecurityOptions: []*string{ - aws.String("String"), // Required - // More values... - }, + Cpu: aws.Int64(1), EntryPoint: []*string{ aws.String("String"), // Required // More values... @@ -500,26 +470,11 @@ func ExampleECS_RegisterTaskDefinition() { // More values... }, Essential: aws.Bool(true), - ExtraHosts: []*ecs.HostEntry{ - { // Required - Hostname: aws.String("String"), // Required - IpAddress: aws.String("String"), // Required - }, - // More values... - }, - Hostname: aws.String("String"), - Image: aws.String("String"), + Image: aws.String("String"), Links: []*string{ aws.String("String"), // Required // More values... }, - LogConfiguration: &ecs.LogConfiguration{ - LogDriver: aws.String("LogDriver"), // Required - Options: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - }, Memory: aws.Int64(1), MountPoints: []*ecs.MountPoint{ { // Required @@ -538,17 +493,6 @@ func ExampleECS_RegisterTaskDefinition() { }, // More values... }, - Privileged: aws.Bool(true), - ReadonlyRootFilesystem: aws.Bool(true), - Ulimits: []*ecs.Ulimit{ - { // Required - HardLimit: aws.Int64(1), // Required - Name: aws.String("UlimitName"), // Required - SoftLimit: aws.Int64(1), // Required - }, - // More values... - }, - User: aws.String("String"), VolumesFrom: []*ecs.VolumeFrom{ { // Required ReadOnly: aws.Bool(true), @@ -556,7 +500,6 @@ func ExampleECS_RegisterTaskDefinition() { }, // More values... }, - WorkingDirectory: aws.String("String"), }, // More values... }, @@ -585,7 +528,7 @@ func ExampleECS_RegisterTaskDefinition() { } func ExampleECS_RunTask() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.RunTaskInput{ TaskDefinition: aws.String("String"), // Required @@ -626,7 +569,7 @@ func ExampleECS_RunTask() { } func ExampleECS_StartTask() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.StartTaskInput{ ContainerInstances: []*string{ // Required @@ -670,12 +613,11 @@ func ExampleECS_StartTask() { } func ExampleECS_StopTask() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.StopTaskInput{ Task: aws.String("String"), // Required Cluster: aws.String("String"), - Reason: aws.String("String"), } resp, err := svc.StopTask(params) @@ -691,7 +633,7 @@ func ExampleECS_StopTask() { } func ExampleECS_SubmitContainerStateChange() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.SubmitContainerStateChangeInput{ Cluster: aws.String("String"), @@ -724,7 +666,7 @@ func ExampleECS_SubmitContainerStateChange() { } func ExampleECS_SubmitTaskStateChange() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.SubmitTaskStateChangeInput{ Cluster: aws.String("String"), @@ -746,7 +688,7 @@ func ExampleECS_SubmitTaskStateChange() { } func ExampleECS_UpdateContainerAgent() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.UpdateContainerAgentInput{ ContainerInstance: aws.String("String"), // Required @@ -766,15 +708,11 @@ func ExampleECS_UpdateContainerAgent() { } func ExampleECS_UpdateService() { - svc := ecs.New(session.New()) + svc := ecs.New(nil) params := &ecs.UpdateServiceInput{ - Service: aws.String("String"), // Required - Cluster: aws.String("String"), - DeploymentConfiguration: &ecs.DeploymentConfiguration{ - MaximumPercent: aws.Int64(1), - MinimumHealthyPercent: aws.Int64(1), - }, + Service: aws.String("String"), // Required + Cluster: aws.String("String"), DesiredCount: aws.Int64(1), TaskDefinition: aws.String("String"), } diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/service.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/service.go index 260b39edc..e5513dcb0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/service.go @@ -4,85 +4,63 @@ package ecs import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Amazon EC2 Container Service (Amazon ECS) is a highly scalable, fast, container // management service that makes it easy to run, stop, and manage Docker containers -// on a cluster of EC2 instances. Amazon ECS lets you launch and stop container-enabled -// applications with simple API calls, allows you to get the state of your cluster -// from a centralized service, and gives you access to many familiar Amazon -// EC2 features like security groups, Amazon EBS volumes, and IAM roles. +// on a cluster of Amazon EC2 instances. Amazon ECS lets you launch and stop +// container-enabled applications with simple API calls, allows you to get the +// state of your cluster from a centralized service, and gives you access to +// many familiar Amazon EC2 features like security groups, Amazon EBS volumes, +// and IAM roles. // // You can use Amazon ECS to schedule the placement of containers across your // cluster based on your resource needs, isolation policies, and availability // requirements. Amazon EC2 Container Service eliminates the need for you to // operate your own cluster management and configuration management systems // or worry about scaling your management infrastructure. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type ECS struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "ecs" - -// New creates a new instance of the ECS client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ECS client from just a session. -// svc := ecs.New(mySession) -// -// // Create a ECS client with additional configuration -// svc := ecs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ECS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ECS { - svc := &ECS{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-11-13", - JSONVersion: "1.1", - TargetPrefix: "AmazonEC2ContainerServiceV20141113", - }, - handlers, - ), +// New returns a new ECS client. +func New(config *aws.Config) *ECS { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "ecs", + APIVersion: "2014-11-13", + JSONVersion: "1.1", + TargetPrefix: "AmazonEC2ContainerServiceV20141113", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &ECS{service} } // newRequest creates a new request for a ECS operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/ecs/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/ecs/waiters.go deleted file mode 100644 index 155f7c098..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/waiters.go +++ /dev/null @@ -1,135 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package ecs - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *ECS) WaitUntilServicesInactive(input *DescribeServicesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeServices", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "failure", - Matcher: "pathAny", - Argument: "failures[].reason", - Expected: "MISSING", - }, - { - State: "success", - Matcher: "pathAny", - Argument: "services[].status", - Expected: "INACTIVE", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *ECS) WaitUntilServicesStable(input *DescribeServicesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeServices", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "failure", - Matcher: "pathAny", - Argument: "failures[].reason", - Expected: "MISSING", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "services[].status", - Expected: "DRAINING", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "services[].status", - Expected: "INACTIVE", - }, - { - State: "success", - Matcher: "path", - Argument: "services | [@[?length(deployments)!=`1`], @[?desiredCount!=runningCount]][] | length(@) == `0`", - Expected: true, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *ECS) WaitUntilTasksRunning(input *DescribeTasksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeTasks", - Delay: 6, - MaxAttempts: 100, - Acceptors: []waiter.WaitAcceptor{ - { - State: "failure", - Matcher: "pathAny", - Argument: "tasks[].lastStatus", - Expected: "STOPPED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "failures[].reason", - Expected: "MISSING", - }, - { - State: "success", - Matcher: "pathAll", - Argument: "tasks[].lastStatus", - Expected: "RUNNING", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *ECS) WaitUntilTasksStopped(input *DescribeTasksInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeTasks", - Delay: 6, - MaxAttempts: 100, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "tasks[].lastStatus", - Expected: "STOPPED", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/api.go b/vendor/github.com/aws/aws-sdk-go/service/efs/api.go index 0fb29b491..d1406ade1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/api.go @@ -4,13 +4,10 @@ package efs import ( - "fmt" "time" "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/private/protocol/restjson" ) const opCreateFileSystem = "CreateFileSystem" @@ -116,7 +113,7 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // when mounting the file system. The EC2 instance on which you mount the file // system via the mount target can resolve the mount target's DNS name to its // IP address. For more information, see How it Works: Implementation Overview -// (http://docs.aws.amazon.com/efs/latest/ug/how-it-works.html#how-it-works-implementation). +// (http://docs.aws.amazon.com/efs/latest/ug/how-it-works.html#how-it-works-implementation) // // Note that you can create mount targets for a file system in only one VPC, // and there can be only one mount target per Availability Zone. That is, if @@ -156,16 +153,16 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // in another Availability Zone. For more information, go to Amazon EFS (http://aws.amazon.com/efs/) // product detail page. In addition, by always using a mount target local to // the instance's Availability Zone, you eliminate a partial failure scenario; -// if the Availability Zone in which your mount target is created goes down, +// if the Availablity Zone in which your mount target is created goes down, // then you won't be able to access your file system through that mount target. // // This operation requires permission for the following action on the file // system: // -// elasticfilesystem:CreateMountTarget This operation also requires permission +// elasticfilesystem:CreateMountTarget This operation also requires permission // for the following Amazon EC2 actions: // -// ec2:DescribeSubnets ec2:DescribeNetworkInterfaces ec2:CreateNetworkInterface +// ec2:DescribeSubnets ec2:DescribeNetworkInterfaces ec2:CreateNetworkInterface func (c *EFS) CreateMountTarget(input *CreateMountTargetInput) (*MountTargetDescription, error) { req, out := c.CreateMountTargetRequest(input) err := req.Send() @@ -187,8 +184,6 @@ func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateTagsOutput{} req.Data = output return @@ -223,8 +218,6 @@ func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteFileSystemOutput{} req.Data = output return @@ -265,8 +258,6 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteMountTargetOutput{} req.Data = output return @@ -286,14 +277,14 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ // This operation requires permission for the following action on the file // system: // -// elasticfilesystem:DeleteMountTarget The DeleteMountTarget call returns +// elasticfilesystem:DeleteMountTarget The DeleteMountTarget call returns // while the mount target state is still "deleting". You can check the mount // target deletion by calling the DescribeMountTargets API, which returns a // list of mount target descriptions for the given file system. The operation // also requires permission for the following Amazon EC2 action on the mount // target's network interface: // -// ec2:DeleteNetworkInterface +// ec2:DeleteNetworkInterface func (c *EFS) DeleteMountTarget(input *DeleteMountTargetInput) (*DeleteMountTargetOutput, error) { req, out := c.DeleteMountTargetRequest(input) err := req.Send() @@ -315,8 +306,6 @@ func (c *EFS) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteTagsOutput{} req.Data = output return @@ -443,13 +432,11 @@ func (c *EFS) DescribeMountTargetsRequest(input *DescribeMountTargetsInput) (req return } -// Returns the descriptions of all the current mount targets, or a specific -// mount target, for a file system. When requesting all of the current mount -// targets, the order of mount targets returned in the response is unspecified. +// Returns the descriptions of the current mount targets for a file system. +// The order of mount targets returned in the response is unspecified. // -// This operation requires permission for the elasticfilesystem:DescribeMountTargets -// action, on either the file system id that you specify in FileSystemId, or -// on the file system of the mount target that you specify in MountTargetId. +// This operation requires permission for the elasticfilesystem:DescribeMountTargets +// action on the file system FileSystemId. func (c *EFS) DescribeMountTargets(input *DescribeMountTargetsInput) (*DescribeMountTargetsOutput, error) { req, out := c.DescribeMountTargetsRequest(input) err := req.Send() @@ -504,8 +491,6 @@ func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSec } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ModifyMountTargetSecurityGroupsOutput{} req.Data = output return @@ -532,11 +517,15 @@ func (c *EFS) ModifyMountTargetSecurityGroups(input *ModifyMountTargetSecurityGr } type CreateFileSystemInput struct { - _ struct{} `type:"structure"` - // String of up to 64 ASCII characters. Amazon EFS uses this to ensure idempotent // creation. - CreationToken *string `min:"1" type:"string" required:"true"` + CreationToken *string `type:"string" required:"true"` + + metadataCreateFileSystemInput `json:"-" xml:"-"` +} + +type metadataCreateFileSystemInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -549,25 +538,7 @@ func (s CreateFileSystemInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateFileSystemInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateFileSystemInput"} - if s.CreationToken == nil { - invalidParams.Add(request.NewErrParamRequired("CreationToken")) - } - if s.CreationToken != nil && len(*s.CreationToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CreationToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateMountTargetInput struct { - _ struct{} `type:"structure"` - // The ID of the file system for which to create the mount target. FileSystemId *string `type:"string" required:"true"` @@ -580,6 +551,12 @@ type CreateMountTargetInput struct { // The ID of the subnet to add the mount target in. SubnetId *string `type:"string" required:"true"` + + metadataCreateMountTargetInput `json:"-" xml:"-"` +} + +type metadataCreateMountTargetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -592,31 +569,19 @@ func (s CreateMountTargetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMountTargetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMountTargetInput"} - if s.FileSystemId == nil { - invalidParams.Add(request.NewErrParamRequired("FileSystemId")) - } - if s.SubnetId == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateTagsInput struct { - _ struct{} `type:"structure"` - // String. The ID of the file system whose tags you want to modify. This operation // modifies only the tags and not the file system. FileSystemId *string `location:"uri" locationName:"FileSystemId" type:"string" required:"true"` // An array of Tag objects to add. Each Tag object is a key-value pair. Tags []*Tag `type:"list" required:"true"` + + metadataCreateTagsInput `json:"-" xml:"-"` +} + +type metadataCreateTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -629,34 +594,12 @@ func (s CreateTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"} - if s.FileSystemId == nil { - invalidParams.Add(request.NewErrParamRequired("FileSystemId")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateTagsOutput struct { + metadataCreateTagsOutput `json:"-" xml:"-"` } -type CreateTagsOutput struct { - _ struct{} `type:"structure"` +type metadataCreateTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -670,10 +613,14 @@ func (s CreateTagsOutput) GoString() string { } type DeleteFileSystemInput struct { - _ struct{} `type:"structure"` - // The ID of the file system you want to delete. FileSystemId *string `location:"uri" locationName:"FileSystemId" type:"string" required:"true"` + + metadataDeleteFileSystemInput `json:"-" xml:"-"` +} + +type metadataDeleteFileSystemInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -686,21 +633,12 @@ func (s DeleteFileSystemInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteFileSystemInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteFileSystemInput"} - if s.FileSystemId == nil { - invalidParams.Add(request.NewErrParamRequired("FileSystemId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteFileSystemOutput struct { + metadataDeleteFileSystemOutput `json:"-" xml:"-"` } -type DeleteFileSystemOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteFileSystemOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -714,10 +652,14 @@ func (s DeleteFileSystemOutput) GoString() string { } type DeleteMountTargetInput struct { - _ struct{} `type:"structure"` - // String. The ID of the mount target to delete. MountTargetId *string `location:"uri" locationName:"MountTargetId" type:"string" required:"true"` + + metadataDeleteMountTargetInput `json:"-" xml:"-"` +} + +type metadataDeleteMountTargetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -730,21 +672,12 @@ func (s DeleteMountTargetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMountTargetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMountTargetInput"} - if s.MountTargetId == nil { - invalidParams.Add(request.NewErrParamRequired("MountTargetId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteMountTargetOutput struct { + metadataDeleteMountTargetOutput `json:"-" xml:"-"` } -type DeleteMountTargetOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteMountTargetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -758,13 +691,17 @@ func (s DeleteMountTargetOutput) GoString() string { } type DeleteTagsInput struct { - _ struct{} `type:"structure"` - // String. The ID of the file system whose tags you want to delete. FileSystemId *string `location:"uri" locationName:"FileSystemId" type:"string" required:"true"` // A list of tag keys to delete. TagKeys []*string `type:"list" required:"true"` + + metadataDeleteTagsInput `json:"-" xml:"-"` +} + +type metadataDeleteTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -777,24 +714,12 @@ func (s DeleteTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} - if s.FileSystemId == nil { - invalidParams.Add(request.NewErrParamRequired("FileSystemId")) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteTagsOutput struct { + metadataDeleteTagsOutput `json:"-" xml:"-"` } -type DeleteTagsOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -808,12 +733,10 @@ func (s DeleteTagsOutput) GoString() string { } type DescribeFileSystemsInput struct { - _ struct{} `type:"structure"` - // Optional string. Restricts the list to the file system with this creation // token (you specify a creation token at the time of creating an Amazon EFS // file system). - CreationToken *string `location:"querystring" locationName:"CreationToken" min:"1" type:"string"` + CreationToken *string `location:"querystring" locationName:"CreationToken" type:"string"` // Optional string. File system ID whose description you want to retrieve. FileSystemId *string `location:"querystring" locationName:"FileSystemId" type:"string"` @@ -828,7 +751,13 @@ type DescribeFileSystemsInput struct { // of items Amazon EFS returns will be the minimum of the MaxItems parameter // specified in the request and the service's internal maximum number of items // per page. - MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` + MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` + + metadataDescribeFileSystemsInput `json:"-" xml:"-"` +} + +type metadataDescribeFileSystemsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -841,25 +770,7 @@ func (s DescribeFileSystemsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeFileSystemsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeFileSystemsInput"} - if s.CreationToken != nil && len(*s.CreationToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CreationToken", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeFileSystemsOutput struct { - _ struct{} `type:"structure"` - // An array of file system descriptions. FileSystems []*FileSystemDescription `type:"list"` @@ -869,6 +780,12 @@ type DescribeFileSystemsOutput struct { // A string, present if there are more file systems than returned in the response. // You can use the NextMarker in the subsequent request to fetch the descriptions. NextMarker *string `type:"string"` + + metadataDescribeFileSystemsOutput `json:"-" xml:"-"` +} + +type metadataDescribeFileSystemsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -882,10 +799,14 @@ func (s DescribeFileSystemsOutput) GoString() string { } type DescribeMountTargetSecurityGroupsInput struct { - _ struct{} `type:"structure"` - // The ID of the mount target whose security groups you want to retrieve. MountTargetId *string `location:"uri" locationName:"MountTargetId" type:"string" required:"true"` + + metadataDescribeMountTargetSecurityGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeMountTargetSecurityGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -898,24 +819,15 @@ func (s DescribeMountTargetSecurityGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeMountTargetSecurityGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeMountTargetSecurityGroupsInput"} - if s.MountTargetId == nil { - invalidParams.Add(request.NewErrParamRequired("MountTargetId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeMountTargetSecurityGroupsOutput struct { - _ struct{} `type:"structure"` - // An array of security groups. SecurityGroups []*string `type:"list" required:"true"` + + metadataDescribeMountTargetSecurityGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeMountTargetSecurityGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -929,11 +841,8 @@ func (s DescribeMountTargetSecurityGroupsOutput) GoString() string { } type DescribeMountTargetsInput struct { - _ struct{} `type:"structure"` - - // Optional. String. The ID of the file system whose mount targets you want - // to list. It must be included in your request if MountTargetId is not included. - FileSystemId *string `location:"querystring" locationName:"FileSystemId" type:"string"` + // String. The ID of the file system whose mount targets you want to list. + FileSystemId *string `location:"querystring" locationName:"FileSystemId" type:"string" required:"true"` // Optional. String. Opaque pagination token returned from a previous DescribeMountTargets // operation. If present, it specifies to continue the list from where the previous @@ -942,11 +851,13 @@ type DescribeMountTargetsInput struct { // Optional. Maximum number of mount targets to return in the response. It must // be an integer with a value greater than zero. - MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` + MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` + + metadataDescribeMountTargetsInput `json:"-" xml:"-"` +} - // Optional. String. The ID of the mount target that you want to have described. - // It must be included in your request if FileSystemId is not included. - MountTargetId *string `location:"querystring" locationName:"MountTargetId" type:"string"` +type metadataDescribeMountTargetsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -959,22 +870,7 @@ func (s DescribeMountTargetsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeMountTargetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeMountTargetsInput"} - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeMountTargetsOutput struct { - _ struct{} `type:"structure"` - // If the request included the Marker, the response returns that value in this // field. Marker *string `type:"string"` @@ -987,6 +883,12 @@ type DescribeMountTargetsOutput struct { // request, you can provide Marker in your request with this value to retrieve // the next set of mount targets. NextMarker *string `type:"string"` + + metadataDescribeMountTargetsOutput `json:"-" xml:"-"` +} + +type metadataDescribeMountTargetsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1000,8 +902,6 @@ func (s DescribeMountTargetsOutput) GoString() string { } type DescribeTagsInput struct { - _ struct{} `type:"structure"` - // The ID of the file system whose tag set you want to retrieve. FileSystemId *string `location:"uri" locationName:"FileSystemId" type:"string" required:"true"` @@ -1012,7 +912,13 @@ type DescribeTagsInput struct { // Optional. Maximum number of file system tags to return in the response. It // must be an integer with a value greater than zero. - MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` + MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` + + metadataDescribeTagsInput `json:"-" xml:"-"` +} + +type metadataDescribeTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1025,25 +931,7 @@ func (s DescribeTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"} - if s.FileSystemId == nil { - invalidParams.Add(request.NewErrParamRequired("FileSystemId")) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeTagsOutput struct { - _ struct{} `type:"structure"` - // If the request included a Marker, the response returns that value in this // field. Marker *string `type:"string"` @@ -1055,6 +943,12 @@ type DescribeTagsOutput struct { // Returns tags associated with the file system as an array of Tag objects. Tags []*Tag `type:"list" required:"true"` + + metadataDescribeTagsOutput `json:"-" xml:"-"` +} + +type metadataDescribeTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1069,13 +963,11 @@ func (s DescribeTagsOutput) GoString() string { // This object provides description of a file system. type FileSystemDescription struct { - _ struct{} `type:"structure"` - // The time at which the file system was created, in seconds, since 1970-01-01T00:00:00Z. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` // Opaque string specified in the request. - CreationToken *string `min:"1" type:"string" required:"true"` + CreationToken *string `type:"string" required:"true"` // The file system ID assigned by Amazon EFS. FileSystemId *string `type:"string" required:"true"` @@ -1107,6 +999,12 @@ type FileSystemDescription struct { // for a period longer than a couple of hours. Otherwise, the value is not the // exact size the file system was at any instant in time. SizeInBytes *FileSystemSize `type:"structure" required:"true"` + + metadataFileSystemDescription `json:"-" xml:"-"` +} + +type metadataFileSystemDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1128,14 +1026,18 @@ func (s FileSystemDescription) GoString() string { // a period longer than a couple of hours. Otherwise, the value is not necessarily // the exact size the file system was at any instant in time. type FileSystemSize struct { - _ struct{} `type:"structure"` - // The time at which the size of data, returned in the Value field, was determined. // The value is the integer number of seconds since 1970-01-01T00:00:00Z. Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"` // The latest known metered size, in bytes, of data stored in the file system. Value *int64 `type:"long" required:"true"` + + metadataFileSystemSize `json:"-" xml:"-"` +} + +type metadataFileSystemSize struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1149,13 +1051,17 @@ func (s FileSystemSize) GoString() string { } type ModifyMountTargetSecurityGroupsInput struct { - _ struct{} `type:"structure"` - // The ID of the mount target whose security groups you want to modify. MountTargetId *string `location:"uri" locationName:"MountTargetId" type:"string" required:"true"` // An array of up to five VPC security group IDs. SecurityGroups []*string `type:"list"` + + metadataModifyMountTargetSecurityGroupsInput `json:"-" xml:"-"` +} + +type metadataModifyMountTargetSecurityGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1168,21 +1074,12 @@ 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 invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ModifyMountTargetSecurityGroupsOutput struct { + metadataModifyMountTargetSecurityGroupsOutput `json:"-" xml:"-"` } -type ModifyMountTargetSecurityGroupsOutput struct { - _ struct{} `type:"structure"` +type metadataModifyMountTargetSecurityGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1197,8 +1094,6 @@ func (s ModifyMountTargetSecurityGroupsOutput) GoString() string { // This object provides 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 *string `type:"string" required:"true"` @@ -1220,6 +1115,12 @@ type MountTargetDescription struct { // The ID of the subnet that the mount target is in. SubnetId *string `type:"string" required:"true"` + + metadataMountTargetDescription `json:"-" xml:"-"` +} + +type metadataMountTargetDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1236,13 +1137,17 @@ func (s MountTargetDescription) GoString() string { // are letters, whitespace, and numbers, representable in UTF-8, and the characters // '+', '-', '=', '.', '_', ':', and '/'. type Tag struct { - _ struct{} `type:"structure"` - // Tag key, a string. The key must not start with "aws:". - Key *string `min:"1" type:"string" required:"true"` + Key *string `type:"string" required:"true"` // Value of the tag key. Value *string `type:"string" required:"true"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1255,25 +1160,6 @@ func (s Tag) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - 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.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - const ( // @enum LifeCycleState LifeCycleStateCreating = "creating" diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go index 53542f18d..c4a56e073 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface.go @@ -54,5 +54,3 @@ type EFSAPI interface { ModifyMountTargetSecurityGroups(*efs.ModifyMountTargetSecurityGroupsInput) (*efs.ModifyMountTargetSecurityGroupsOutput, error) } - -var _ EFSAPI = (*efs.EFS)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface_test.go new file mode 100644 index 000000000..6b959a3e9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package efsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/efs" + "github.com/aws/aws-sdk-go/service/efs/efsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*efsiface.EFSAPI)(nil), efs.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go index 85907f936..4be12942c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/efs" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleEFS_CreateFileSystem() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.CreateFileSystemInput{ CreationToken: aws.String("CreationToken"), // Required @@ -35,7 +34,7 @@ func ExampleEFS_CreateFileSystem() { } func ExampleEFS_CreateMountTarget() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.CreateMountTargetInput{ FileSystemId: aws.String("FileSystemId"), // Required @@ -60,7 +59,7 @@ func ExampleEFS_CreateMountTarget() { } func ExampleEFS_CreateTags() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.CreateTagsInput{ FileSystemId: aws.String("FileSystemId"), // Required @@ -86,7 +85,7 @@ func ExampleEFS_CreateTags() { } func ExampleEFS_DeleteFileSystem() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.DeleteFileSystemInput{ FileSystemId: aws.String("FileSystemId"), // Required @@ -105,7 +104,7 @@ func ExampleEFS_DeleteFileSystem() { } func ExampleEFS_DeleteMountTarget() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.DeleteMountTargetInput{ MountTargetId: aws.String("MountTargetId"), // Required @@ -124,7 +123,7 @@ func ExampleEFS_DeleteMountTarget() { } func ExampleEFS_DeleteTags() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.DeleteTagsInput{ FileSystemId: aws.String("FileSystemId"), // Required @@ -147,7 +146,7 @@ func ExampleEFS_DeleteTags() { } func ExampleEFS_DescribeFileSystems() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.DescribeFileSystemsInput{ CreationToken: aws.String("CreationToken"), @@ -169,7 +168,7 @@ func ExampleEFS_DescribeFileSystems() { } func ExampleEFS_DescribeMountTargetSecurityGroups() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.DescribeMountTargetSecurityGroupsInput{ MountTargetId: aws.String("MountTargetId"), // Required @@ -188,13 +187,12 @@ func ExampleEFS_DescribeMountTargetSecurityGroups() { } func ExampleEFS_DescribeMountTargets() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.DescribeMountTargetsInput{ - FileSystemId: aws.String("FileSystemId"), - Marker: aws.String("Marker"), - MaxItems: aws.Int64(1), - MountTargetId: aws.String("MountTargetId"), + FileSystemId: aws.String("FileSystemId"), // Required + Marker: aws.String("Marker"), + MaxItems: aws.Int64(1), } resp, err := svc.DescribeMountTargets(params) @@ -210,7 +208,7 @@ func ExampleEFS_DescribeMountTargets() { } func ExampleEFS_DescribeTags() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.DescribeTagsInput{ FileSystemId: aws.String("FileSystemId"), // Required @@ -231,7 +229,7 @@ func ExampleEFS_DescribeTags() { } func ExampleEFS_ModifyMountTargetSecurityGroups() { - svc := efs.New(session.New()) + svc := efs.New(nil) params := &efs.ModifyMountTargetSecurityGroupsInput{ MountTargetId: aws.String("MountTargetId"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/service.go b/vendor/github.com/aws/aws-sdk-go/service/efs/service.go index cf1ecde58..3fb3a5bc8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/efs/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/service.go @@ -4,71 +4,48 @@ package efs import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restjson" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type EFS struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticfilesystem" - -// New creates a new instance of the EFS client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a EFS client from just a session. -// svc := efs.New(mySession) -// -// // Create a EFS client with additional configuration -// svc := efs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *EFS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *EFS { - svc := &EFS{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-02-01", - }, - handlers, - ), +// New returns a new EFS client. +func New(config *aws.Config) *EFS { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "elasticfilesystem", + APIVersion: "2015-02-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &EFS{service} } // newRequest creates a new request for a EFS operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go index fe8c7fecc..58c4468fe 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/api.go @@ -8,8 +8,6 @@ import ( "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/private/protocol/query" ) const opAddTagsToResource = "AddTagsToResource" @@ -42,8 +40,7 @@ func (c *ElastiCache) AddTagsToResourceRequest(input *AddTagsToResourceInput) (r // costs aggregated by your tags. You can apply tags that represent business // categories (such as cost centers, application names, or owners) to organize // your costs across multiple services. For more information, see Using Cost -// Allocation Tags in Amazon ElastiCache (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Tagging.html) -// in the ElastiCache User Guide. +// Allocation Tags in Amazon ElastiCache (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Tagging.html). func (c *ElastiCache) AddTagsToResource(input *AddTagsToResourceInput) (*TagListMessage, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -74,7 +71,7 @@ func (c *ElastiCache) AuthorizeCacheSecurityGroupIngressRequest(input *Authorize // cache security group. Applications using ElastiCache must be running on Amazon // EC2, and Amazon EC2 security groups are used as the authorization mechanism. // -// You cannot authorize ingress from an Amazon EC2 security group in one region +// You cannot authorize ingress from an Amazon EC2 security group in one region // to an ElastiCache cluster in another region. func (c *ElastiCache) AuthorizeCacheSecurityGroupIngress(input *AuthorizeCacheSecurityGroupIngressInput) (*AuthorizeCacheSecurityGroupIngressOutput, error) { req, out := c.AuthorizeCacheSecurityGroupIngressRequest(input) @@ -103,18 +100,6 @@ func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *reques } // The CopySnapshot action makes a copy of an existing snapshot. -// -// Users or groups that have permissions to use the CopySnapshot API can create -// their own Amazon S3 buckets and copy snapshots to it. To control access to -// your snapshots, use an IAM policy to control who has the ability to use the -// CopySnapshot API. For more information about using IAM to control the use -// of ElastiCache APIs, see Exporting Snapshots (http://docs.aws.amazon.com/ElastiCache/latest/Snapshots.Exporting.html) -// and Authentication & Access Control (http://docs.aws.amazon.com/ElastiCache/latest/IAM.html). -// -// Erorr Message: Error Message: The authenticated user does not have -// sufficient permissions to perform the desired activity. -// -// Solution: Contact your system administrator to get the needed permissions. func (c *ElastiCache) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) { req, out := c.CopySnapshotRequest(input) err := req.Send() @@ -272,7 +257,7 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou // successfully created, you can add one or more read replica replicas to it, // up to a total of five read replicas. // -// This action is valid only for Redis. +// Note: This action is valid only for Redis. func (c *ElastiCache) CreateReplicationGroup(input *CreateReplicationGroupInput) (*CreateReplicationGroupOutput, error) { req, out := c.CreateReplicationGroupRequest(input) err := req.Send() @@ -356,8 +341,6 @@ func (c *ElastiCache) DeleteCacheParameterGroupRequest(input *DeleteCacheParamet } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteCacheParameterGroupOutput{} req.Data = output return @@ -387,8 +370,6 @@ func (c *ElastiCache) DeleteCacheSecurityGroupRequest(input *DeleteCacheSecurity } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteCacheSecurityGroupOutput{} req.Data = output return @@ -396,7 +377,7 @@ func (c *ElastiCache) DeleteCacheSecurityGroupRequest(input *DeleteCacheSecurity // The DeleteCacheSecurityGroup action deletes a cache security group. // -// You cannot delete a cache security group if it is associated with any cache +// You cannot delete a cache security group if it is associated with any cache // clusters. func (c *ElastiCache) DeleteCacheSecurityGroup(input *DeleteCacheSecurityGroupInput) (*DeleteCacheSecurityGroupOutput, error) { req, out := c.DeleteCacheSecurityGroupRequest(input) @@ -419,8 +400,6 @@ func (c *ElastiCache) DeleteCacheSubnetGroupRequest(input *DeleteCacheSubnetGrou } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteCacheSubnetGroupOutput{} req.Data = output return @@ -428,7 +407,7 @@ func (c *ElastiCache) DeleteCacheSubnetGroupRequest(input *DeleteCacheSubnetGrou // The DeleteCacheSubnetGroup action deletes a cache subnet group. // -// You cannot delete a cache subnet group if it is associated with any cache +// You cannot delete a cache subnet group if it is associated with any cache // clusters. func (c *ElastiCache) DeleteCacheSubnetGroup(input *DeleteCacheSubnetGroupInput) (*DeleteCacheSubnetGroupOutput, error) { req, out := c.DeleteCacheSubnetGroupRequest(input) @@ -555,7 +534,6 @@ func (c *ElastiCache) DescribeCacheClusters(input *DescribeCacheClustersInput) ( func (c *ElastiCache) DescribeCacheClustersPages(input *DescribeCacheClustersInput, fn func(p *DescribeCacheClustersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeCacheClustersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeCacheClustersOutput), lastPage) }) @@ -597,7 +575,6 @@ func (c *ElastiCache) DescribeCacheEngineVersions(input *DescribeCacheEngineVers func (c *ElastiCache) DescribeCacheEngineVersionsPages(input *DescribeCacheEngineVersionsInput, fn func(p *DescribeCacheEngineVersionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeCacheEngineVersionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeCacheEngineVersionsOutput), lastPage) }) @@ -640,7 +617,6 @@ func (c *ElastiCache) DescribeCacheParameterGroups(input *DescribeCacheParameter func (c *ElastiCache) DescribeCacheParameterGroupsPages(input *DescribeCacheParameterGroupsInput, fn func(p *DescribeCacheParameterGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeCacheParameterGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeCacheParameterGroupsOutput), lastPage) }) @@ -682,7 +658,6 @@ func (c *ElastiCache) DescribeCacheParameters(input *DescribeCacheParametersInpu func (c *ElastiCache) DescribeCacheParametersPages(input *DescribeCacheParametersInput, fn func(p *DescribeCacheParametersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeCacheParametersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeCacheParametersOutput), lastPage) }) @@ -725,7 +700,6 @@ func (c *ElastiCache) DescribeCacheSecurityGroups(input *DescribeCacheSecurityGr func (c *ElastiCache) DescribeCacheSecurityGroupsPages(input *DescribeCacheSecurityGroupsInput, fn func(p *DescribeCacheSecurityGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeCacheSecurityGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeCacheSecurityGroupsOutput), lastPage) }) @@ -768,7 +742,6 @@ func (c *ElastiCache) DescribeCacheSubnetGroups(input *DescribeCacheSubnetGroups func (c *ElastiCache) DescribeCacheSubnetGroupsPages(input *DescribeCacheSubnetGroupsInput, fn func(p *DescribeCacheSubnetGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeCacheSubnetGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeCacheSubnetGroupsOutput), lastPage) }) @@ -810,7 +783,6 @@ func (c *ElastiCache) DescribeEngineDefaultParameters(input *DescribeEngineDefau func (c *ElastiCache) DescribeEngineDefaultParametersPages(input *DescribeEngineDefaultParametersInput, fn func(p *DescribeEngineDefaultParametersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeEngineDefaultParametersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeEngineDefaultParametersOutput), lastPage) }) @@ -857,7 +829,6 @@ func (c *ElastiCache) DescribeEvents(input *DescribeEventsInput) (*DescribeEvent func (c *ElastiCache) DescribeEventsPages(input *DescribeEventsInput, fn func(p *DescribeEventsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeEventsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeEventsOutput), lastPage) }) @@ -900,7 +871,6 @@ func (c *ElastiCache) DescribeReplicationGroups(input *DescribeReplicationGroups func (c *ElastiCache) DescribeReplicationGroupsPages(input *DescribeReplicationGroupsInput, fn func(p *DescribeReplicationGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeReplicationGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeReplicationGroupsOutput), lastPage) }) @@ -942,7 +912,6 @@ func (c *ElastiCache) DescribeReservedCacheNodes(input *DescribeReservedCacheNod func (c *ElastiCache) DescribeReservedCacheNodesPages(input *DescribeReservedCacheNodesInput, fn func(p *DescribeReservedCacheNodesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeReservedCacheNodesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeReservedCacheNodesOutput), lastPage) }) @@ -984,7 +953,6 @@ func (c *ElastiCache) DescribeReservedCacheNodesOfferings(input *DescribeReserve func (c *ElastiCache) DescribeReservedCacheNodesOfferingsPages(input *DescribeReservedCacheNodesOfferingsInput, fn func(p *DescribeReservedCacheNodesOfferingsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeReservedCacheNodesOfferingsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeReservedCacheNodesOfferingsOutput), lastPage) }) @@ -1028,45 +996,11 @@ func (c *ElastiCache) DescribeSnapshots(input *DescribeSnapshotsInput) (*Describ func (c *ElastiCache) DescribeSnapshotsPages(input *DescribeSnapshotsInput, fn func(p *DescribeSnapshotsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeSnapshotsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeSnapshotsOutput), lastPage) }) } -const opListAllowedNodeTypeModifications = "ListAllowedNodeTypeModifications" - -// ListAllowedNodeTypeModificationsRequest generates a request for the ListAllowedNodeTypeModifications operation. -func (c *ElastiCache) ListAllowedNodeTypeModificationsRequest(input *ListAllowedNodeTypeModificationsInput) (req *request.Request, output *ListAllowedNodeTypeModificationsOutput) { - op := &request.Operation{ - Name: opListAllowedNodeTypeModifications, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListAllowedNodeTypeModificationsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListAllowedNodeTypeModificationsOutput{} - req.Data = output - return -} - -// The ListAllowedNodeTypeModifications action lists all available node types -// that you can scale your Redis cluster's or replication group's current node -// type up to. -// -// When you use the ModifyCacheCluster or ModifyReplicationGroup APIs to scale -// up your cluster or replication group, the value of the CacheNodeType parameter -// must be one of the node types returned by this action. -func (c *ElastiCache) ListAllowedNodeTypeModifications(input *ListAllowedNodeTypeModificationsInput) (*ListAllowedNodeTypeModificationsOutput, error) { - req, out := c.ListAllowedNodeTypeModificationsRequest(input) - err := req.Send() - return out, err -} - const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a request for the ListTagsForResource operation. @@ -1367,19 +1301,18 @@ func (c *ElastiCache) RevokeCacheSecurityGroupIngress(input *RevokeCacheSecurity // Represents the input of an AddTagsToResource action. type AddTagsToResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource to which the tags are to be - // added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster - // or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. - // - // For more information on ARNs, go to Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + // The name of the resource to which the tags are to be added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster. ResourceName *string `type:"string" required:"true"` // A list of cost allocation tags to be added to this resource. A tag is a key-value // pair. A tag key must be accompanied by a tag value. Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"` + + metadataAddTagsToResourceInput `json:"-" xml:"-"` +} + +type metadataAddTagsToResourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1392,26 +1325,8 @@ func (s AddTagsToResourceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of an AuthorizeCacheSecurityGroupIngress action. type AuthorizeCacheSecurityGroupIngressInput struct { - _ struct{} `type:"structure"` - // The cache security group which will allow network ingress. CacheSecurityGroupName *string `type:"string" required:"true"` @@ -1423,6 +1338,12 @@ type AuthorizeCacheSecurityGroupIngressInput struct { // this is not the same thing as an AWS access key ID - you must provide a valid // AWS account number for this parameter. EC2SecurityGroupOwnerId *string `type:"string" required:"true"` + + metadataAuthorizeCacheSecurityGroupIngressInput `json:"-" xml:"-"` +} + +type metadataAuthorizeCacheSecurityGroupIngressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1435,36 +1356,17 @@ func (s AuthorizeCacheSecurityGroupIngressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AuthorizeCacheSecurityGroupIngressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AuthorizeCacheSecurityGroupIngressInput"} - if s.CacheSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheSecurityGroupName")) - } - if s.EC2SecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("EC2SecurityGroupName")) - } - if s.EC2SecurityGroupOwnerId == nil { - invalidParams.Add(request.NewErrParamRequired("EC2SecurityGroupOwnerId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type AuthorizeCacheSecurityGroupIngressOutput struct { - _ struct{} `type:"structure"` - // Represents the output of one of the following actions: // - // AuthorizeCacheSecurityGroupIngress - // - // CreateCacheSecurityGroup - // - // RevokeCacheSecurityGroupIngress + // AuthorizeCacheSecurityGroupIngress CreateCacheSecurityGroup RevokeCacheSecurityGroupIngress CacheSecurityGroup *CacheSecurityGroup `type:"structure"` + + metadataAuthorizeCacheSecurityGroupIngressOutput `json:"-" xml:"-"` +} + +type metadataAuthorizeCacheSecurityGroupIngressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1479,10 +1381,14 @@ func (s AuthorizeCacheSecurityGroupIngressOutput) GoString() string { // Describes an Availability Zone in which the cache cluster is launched. type AvailabilityZone struct { - _ struct{} `type:"structure"` - // The name of the Availability Zone. Name *string `type:"string"` + + metadataAvailabilityZone `json:"-" xml:"-"` +} + +type metadataAvailabilityZone struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1497,8 +1403,6 @@ func (s AvailabilityZone) GoString() string { // Contains all of the attributes of a specific cache cluster. type CacheCluster struct { - _ struct{} `type:"structure"` - // This parameter is currently disabled. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -1518,34 +1422,19 @@ type CacheCluster struct { // // Valid node types are as follows: // - // General purpose: - // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge - // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge - // - // Compute optimized: cache.c1.xlarge - // - // Memory optimized: - // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge - // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge - // - // Notes: - // - // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). - // - // Redis backup/restore is not supported for t2 instances. - // - // Redis Append-only files (AOF) functionality is not supported for t1 or - // t2 instances. - // - // For a complete listing of cache node types and specifications, see Amazon - // ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // General purpose: Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, + // cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge Previous + // generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge Compute optimized: cache.c1.xlarge Memory optimized Current + // generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge Previous generation: cache.m2.xlarge, cache.m2.2xlarge, + // cache.m2.4xlarge Notes: + // + // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). + // Redis backup/restore is not supported for t2 instances. Redis Append-only + // files (AOF) functionality is not supported for t1 or t2 instances. For a + // complete listing of cache node types and specifications, see Amazon ElastiCache + // Product Features and Details (http://aws.amazon.com/elasticache/details) // and Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#CacheParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#CacheParameterGroups.Redis.NodeSpecific). CacheNodeType *string `type:"string"` @@ -1574,7 +1463,7 @@ type CacheCluster struct { // cluster. Engine *string `type:"string"` - // The version of the cache engine that is used in this cache cluster. + // The version of the cache engine version that is used in this cache cluster. EngineVersion *string `type:"string"` // Describes a notification topic and its status. Notification topics are used @@ -1601,21 +1490,7 @@ type CacheCluster struct { // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid // values for ddd are: // - // sun - // - // mon - // - // tue - // - // wed - // - // thu - // - // fri - // - // sat - // - // Example: sun:05:00-sun:09:00 + // sun mon tue wed thu fri sat Example: sun:05:00-sun:09:00 PreferredMaintenanceWindow *string `type:"string"` // The replication group to which this cache cluster belongs. If this field @@ -1630,8 +1505,8 @@ type CacheCluster struct { // to 5, then a snapshot that was taken today will be retained for 5 days before // being deleted. // - // If the value of SnapshotRetentionLimit is set to zero (0), backups are - // turned off. + // ImportantIf the value of SnapshotRetentionLimit is set to zero (0), backups + // are turned off. SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache will begin taking @@ -1639,6 +1514,12 @@ type CacheCluster struct { // // Example: 05:00-09:00 SnapshotWindow *string `type:"string"` + + metadataCacheCluster `json:"-" xml:"-"` +} + +type metadataCacheCluster struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1653,8 +1534,6 @@ func (s CacheCluster) GoString() string { // Provides all of the details about a particular cache engine version. type CacheEngineVersion struct { - _ struct{} `type:"structure"` - // The description of the cache engine. CacheEngineDescription *string `type:"string"` @@ -1669,6 +1548,12 @@ type CacheEngineVersion struct { // The version number of the cache engine. EngineVersion *string `type:"string"` + + metadataCacheEngineVersion `json:"-" xml:"-"` +} + +type metadataCacheEngineVersion struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1687,39 +1572,22 @@ func (s CacheEngineVersion) GoString() string { // // Valid node types are as follows: // -// General purpose: -// -// Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, -// cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge -// -// Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, -// cache.m1.large, cache.m1.xlarge -// -// Compute optimized: cache.c1.xlarge -// -// Memory optimized: -// -// Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, -// cache.r3.4xlarge, cache.r3.8xlarge -// -// Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge -// -// Notes: +// General purpose: Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, +// cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge Previous +// generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, +// cache.m1.xlarge Compute optimized: cache.c1.xlarge Memory optimized Current +// generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, +// cache.r3.8xlarge Previous generation: cache.m2.xlarge, cache.m2.2xlarge, +// cache.m2.4xlarge Notes: // -// All t2 instances are created in an Amazon Virtual Private Cloud (VPC). -// -// Redis backup/restore is not supported for t2 instances. -// -// Redis Append-only files (AOF) functionality is not supported for t1 or -// t2 instances. -// -// For a complete listing of cache node types and specifications, see Amazon -// ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) -// and either Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#CacheParameterGroups.Memcached.NodeSpecific) +// All t2 instances are created in an Amazon Virtual Private Cloud (VPC). +// Redis backup/restore is not supported for t2 instances. Redis Append-only +// files (AOF) functionality is not supported for t1 or t2 instances. For a +// complete listing of cache node types and specifications, see Amazon ElastiCache +// Product Features and Details (http://aws.amazon.com/elasticache/details) +// and Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#CacheParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#CacheParameterGroups.Redis.NodeSpecific). type CacheNode struct { - _ struct{} `type:"structure"` - // The date and time when the cache node was created. CacheNodeCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -1744,6 +1612,12 @@ type CacheNode struct { // If this field is empty, then this node is not associated with a primary cache // cluster. SourceCacheNodeId *string `type:"string"` + + metadataCacheNode `json:"-" xml:"-"` +} + +type metadataCacheNode struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1760,20 +1634,12 @@ func (s CacheNode) GoString() string { // to. For example, in a Redis cache cluster, a cache.m1.large cache node type // would have a larger maxmemory value than a cache.m1.small type. type CacheNodeTypeSpecificParameter struct { - _ struct{} `type:"structure"` - // The valid range of values for the parameter. AllowedValues *string `type:"string"` // A list of cache node types and their corresponding values for this parameter. CacheNodeTypeSpecificValues []*CacheNodeTypeSpecificValue `locationNameList:"CacheNodeTypeSpecificValue" type:"list"` - // ChangeType indicates whether a change to the parameter will be applied immediately - // or requires a reboot for the change to be applied. You can force a reboot - // or wait until the next maintenance window's reboot. For more information, - // see Rebooting a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Clusters.Rebooting.html). - ChangeType *string `type:"string" enum:"ChangeType"` - // The valid data type for the parameter. DataType *string `type:"string"` @@ -1793,6 +1659,12 @@ type CacheNodeTypeSpecificParameter struct { // The source of the parameter value. Source *string `type:"string"` + + metadataCacheNodeTypeSpecificParameter `json:"-" xml:"-"` +} + +type metadataCacheNodeTypeSpecificParameter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1807,13 +1679,17 @@ func (s CacheNodeTypeSpecificParameter) GoString() string { // A value that applies only to a certain cache node type. type CacheNodeTypeSpecificValue struct { - _ struct{} `type:"structure"` - // The cache node type for which this value applies. CacheNodeType *string `type:"string"` // The value for the cache node type. Value *string `type:"string"` + + metadataCacheNodeTypeSpecificValue `json:"-" xml:"-"` +} + +type metadataCacheNodeTypeSpecificValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1828,8 +1704,6 @@ func (s CacheNodeTypeSpecificValue) GoString() string { // Represents the output of a CreateCacheParameterGroup action. type CacheParameterGroup struct { - _ struct{} `type:"structure"` - // The name of the cache parameter group family that this cache parameter group // is compatible with. CacheParameterGroupFamily *string `type:"string"` @@ -1839,6 +1713,12 @@ type CacheParameterGroup struct { // The description for this cache parameter group. Description *string `type:"string"` + + metadataCacheParameterGroup `json:"-" xml:"-"` +} + +type metadataCacheParameterGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1853,14 +1733,16 @@ func (s CacheParameterGroup) GoString() string { // Represents the output of one of the following actions: // -// ModifyCacheParameterGroup -// -// ResetCacheParameterGroup +// ModifyCacheParameterGroup ResetCacheParameterGroup type CacheParameterGroupNameMessage struct { - _ struct{} `type:"structure"` - // The name of the cache parameter group. CacheParameterGroupName *string `type:"string"` + + metadataCacheParameterGroupNameMessage `json:"-" xml:"-"` +} + +type metadataCacheParameterGroupNameMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1875,8 +1757,6 @@ func (s CacheParameterGroupNameMessage) GoString() string { // The status of the cache parameter group. type CacheParameterGroupStatus struct { - _ struct{} `type:"structure"` - // A list of the cache node IDs which need to be rebooted for parameter changes // to be applied. A node ID is a numeric identifier (0001, 0002, etc.). CacheNodeIdsToReboot []*string `locationNameList:"CacheNodeId" type:"list"` @@ -1886,6 +1766,12 @@ type CacheParameterGroupStatus struct { // The status of parameter updates. ParameterApplyStatus *string `type:"string"` + + metadataCacheParameterGroupStatus `json:"-" xml:"-"` +} + +type metadataCacheParameterGroupStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1900,14 +1786,8 @@ func (s CacheParameterGroupStatus) GoString() string { // Represents the output of one of the following actions: // -// AuthorizeCacheSecurityGroupIngress -// -// CreateCacheSecurityGroup -// -// RevokeCacheSecurityGroupIngress +// AuthorizeCacheSecurityGroupIngress CreateCacheSecurityGroup RevokeCacheSecurityGroupIngress type CacheSecurityGroup struct { - _ struct{} `type:"structure"` - // The name of the cache security group. CacheSecurityGroupName *string `type:"string"` @@ -1920,6 +1800,12 @@ type CacheSecurityGroup struct { // The AWS account ID of the cache security group owner. OwnerId *string `type:"string"` + + metadataCacheSecurityGroup `json:"-" xml:"-"` +} + +type metadataCacheSecurityGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1934,8 +1820,6 @@ func (s CacheSecurityGroup) GoString() string { // Represents a cache cluster's status within a particular cache security group. type CacheSecurityGroupMembership struct { - _ struct{} `type:"structure"` - // The name of the cache security group. CacheSecurityGroupName *string `type:"string"` @@ -1943,6 +1827,12 @@ type CacheSecurityGroupMembership struct { // a cache security group is modified, or when the cache security groups assigned // to a cache cluster are modified. Status *string `type:"string"` + + metadataCacheSecurityGroupMembership `json:"-" xml:"-"` +} + +type metadataCacheSecurityGroupMembership struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1957,12 +1847,8 @@ func (s CacheSecurityGroupMembership) GoString() string { // Represents the output of one of the following actions: // -// CreateCacheSubnetGroup -// -// ModifyCacheSubnetGroup +// CreateCacheSubnetGroup ModifyCacheSubnetGroup type CacheSubnetGroup struct { - _ struct{} `type:"structure"` - // The description of the cache subnet group. CacheSubnetGroupDescription *string `type:"string"` @@ -1975,6 +1861,12 @@ type CacheSubnetGroup struct { // The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet // group. VpcId *string `type:"string"` + + metadataCacheSubnetGroup `json:"-" xml:"-"` +} + +type metadataCacheSubnetGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1989,74 +1881,17 @@ func (s CacheSubnetGroup) GoString() string { // Represents the input of a CopySnapshotMessage action. type CopySnapshotInput struct { - _ struct{} `type:"structure"` - - // The name of an existing snapshot from which to make a copy. + // The name of an existing snapshot from which to copy. SourceSnapshotName *string `type:"string" required:"true"` - // The Amazon S3 bucket to which the snapshot will be exported. This parameter - // is used only when exporting a snapshot for external access. - // - // When using this parameter to export a snapshot, be sure Amazon ElastiCache - // has the needed permissions to this S3 bucket. For more information, see Step - // 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) - // in the Amazon ElastiCache User Guide. - // - // Error Messages: - // - // You could receive one of the following error messages. - // - // Erorr Messages Error Message: ElastiCache has not been granted READ - // permissions %s on the S3 Bucket. - // - // Solution: Add List and Read permissions on the bucket. - // - // Error Message: ElastiCache has not been granted WRITE permissions %s - // on the S3 Bucket. - // - // Solution: Add Upload/Delete permissions on the bucket. - // - // Error Message: ElastiCache has not been granted READ_ACP permissions - // %s on the S3 Bucket. - // - // Solution: Add View Permissions permissions on the bucket. - // - // Error Message: The S3 bucket %s is outside of the region. - // - // Solution: Before exporting your snapshot, create a new Amazon S3 bucket - // in the same region as your snapshot. For more information, see Step 1: Create - // an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket). - // - // Error Message: The S3 bucket %s does not exist. - // - // Solution: Create an Amazon S3 bucket in the same region as your snapshot. - // For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket). - // - // Error Message: The S3 bucket %s is not owned by the authenticated user. - // - // Solution: Create an Amazon S3 bucket in the same region as your snapshot. - // For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket). - // - // Error Message: The authenticated user does not have sufficient permissions - // to perform the desired activity. - // - // Solution: Contact your system administrator to get the needed permissions. - // - // For more information, see Exporting a Snapshot (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html) - // in the Amazon ElastiCache User Guide. - TargetBucket *string `type:"string"` - - // A name for the snapshot copy. ElastiCache does not permit overwriting a snapshot, - // therefore this name must be unique within its context - ElastiCache or an - // Amazon S3 bucket if exporting. - // - // Error Message Error Message: The S3 bucket %s already contains an object - // with key %s. - // - // Solution: Give the TargetSnapshotName a new and unique value. If exporting - // a snapshot, you could alternatively create a new Amazon S3 bucket and use - // this same value for TargetSnapshotName. + // A name for the copied snapshot. TargetSnapshotName *string `type:"string" required:"true"` + + metadataCopySnapshotInput `json:"-" xml:"-"` +} + +type metadataCopySnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2069,28 +1904,16 @@ func (s CopySnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CopySnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"} - if s.SourceSnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("SourceSnapshotName")) - } - if s.TargetSnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("TargetSnapshotName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CopySnapshotOutput struct { - _ struct{} `type:"structure"` - // Represents a copy of an entire cache cluster as of the time when the snapshot // was taken. Snapshot *Snapshot `type:"structure"` + + metadataCopySnapshotOutput `json:"-" xml:"-"` +} + +type metadataCopySnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2105,8 +1928,6 @@ func (s CopySnapshotOutput) GoString() string { // Represents the input of a CreateCacheCluster action. type CreateCacheClusterInput struct { - _ struct{} `type:"structure"` - // Specifies whether the nodes in this Memcached node group are created in a // single Availability Zone or created across multiple Availability Zones in // the cluster's region. @@ -2122,47 +1943,30 @@ type CreateCacheClusterInput struct { // The node group identifier. This parameter is stored as a lowercase string. // - // Constraints: - // - // A name must contain from 1 to 20 alphanumeric characters or hyphens. - // - // The first character must be a letter. + // Constraints: // - // A name cannot end with a hyphen or contain two consecutive hyphens. + // A name must contain from 1 to 20 alphanumeric characters or hyphens. The + // first character must be a letter. A name cannot end with a hyphen or contain + // two consecutive hyphens. CacheClusterId *string `type:"string" required:"true"` // The compute and memory capacity of the nodes in the node group. // // Valid node types are as follows: // - // General purpose: - // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge - // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge - // - // Compute optimized: cache.c1.xlarge - // - // Memory optimized: - // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge - // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge - // - // Notes: - // - // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). - // - // Redis backup/restore is not supported for t2 instances. - // - // Redis Append-only files (AOF) functionality is not supported for t1 or - // t2 instances. - // - // For a complete listing of cache node types and specifications, see Amazon - // ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // General purpose: Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, + // cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge Previous + // generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge Compute optimized: cache.c1.xlarge Memory optimized Current + // generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge Previous generation: cache.m2.xlarge, cache.m2.2xlarge, + // cache.m2.4xlarge Notes: + // + // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). + // Redis backup/restore is not supported for t2 instances. Redis Append-only + // files (AOF) functionality is not supported for t1 or t2 instances. For a + // complete listing of cache node types and specifications, see Amazon ElastiCache + // Product Features and Details (http://aws.amazon.com/elasticache/details) // and Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#CacheParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#CacheParameterGroups.Redis.NodeSpecific). CacheNodeType *string `type:"string"` @@ -2188,24 +1992,18 @@ type CreateCacheClusterInput struct { // // Valid values for this parameter are: // - // memcached | redis + // memcached | redis Engine *string `type:"string"` // The version number of the cache engine to be used for this cache cluster. // To view the supported cache engine versions, use the DescribeCacheEngineVersions // action. - // - // Important: You can upgrade to a newer engine version (see Selecting a Cache - // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)), - // but you cannot downgrade to an earlier engine version. If you want to use - // an earlier engine version, you must delete the existing cache cluster or - // replication group and create it anew with the earlier engine version. EngineVersion *string `type:"string"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (SNS) topic to which notifications will be sent. // - // The Amazon SNS topic owner must be the same as the cache cluster owner. + // The Amazon SNS topic owner must be the same as the cache cluster owner. NotificationTopicArn *string `type:"string"` // The initial number of cache nodes that the cache cluster will have. @@ -2247,9 +2045,9 @@ type CreateCacheClusterInput struct { // Default: System chosen Availability Zones. // // Example: One Memcached node in each of three different Availability Zones: - // PreferredAvailabilityZones.member.1=us-west-2a&PreferredAvailabilityZones.member.2=us-west-2b&PreferredAvailabilityZones.member.3=us-west-2c + // PreferredAvailabilityZones.member.1=us-west-2a&PreferredAvailabilityZones.member.2=us-west-2b&PreferredAvailabilityZones.member.3=us-west-2c // - // Example: All three Memcached nodes in one Availability Zone: PreferredAvailabilityZones.member.1=us-west-2a&PreferredAvailabilityZones.member.2=us-west-2a&PreferredAvailabilityZones.member.3=us-west-2a + // Example: All three Memcached nodes in one Availability Zone: PreferredAvailabilityZones.member.1=us-west-2a&PreferredAvailabilityZones.member.2=us-west-2a&PreferredAvailabilityZones.member.3=us-west-2a PreferredAvailabilityZones []*string `locationNameList:"PreferredAvailabilityZone" type:"list"` // Specifies the weekly time range during which maintenance on the cache cluster @@ -2257,21 +2055,7 @@ type CreateCacheClusterInput struct { // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid // values for ddd are: // - // sun - // - // mon - // - // tue - // - // wed - // - // thu - // - // fri - // - // sat - // - // Example: sun:05:00-sun:09:00 + // sun mon tue wed thu fri sat Example: sun:05:00-sun:09:00 PreferredMaintenanceWindow *string `type:"string"` // The ID of the replication group to which this cache cluster should belong. @@ -2283,7 +2067,7 @@ type CreateCacheClusterInput struct { // zone is not specified, the cache cluster will be created in availability // zones that provide the best spread of read replicas across availability zones. // - // This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. ReplicationGroupId *string `type:"string"` // One or more VPC security groups associated with the cache cluster. @@ -2297,16 +2081,16 @@ type CreateCacheClusterInput struct { // file will be used to populate the node group. The Amazon S3 object name in // the ARN cannot contain any commas. // - // This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. // - // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb + // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb SnapshotArns []*string `locationNameList:"SnapshotArn" type:"list"` // The name of a snapshot from which to restore data into the new node group. // The snapshot status changes to restoring while the new node group is being // created. // - // This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. SnapshotName *string `type:"string"` // The number of days for which ElastiCache will retain automatic snapshots @@ -2314,9 +2098,9 @@ type CreateCacheClusterInput struct { // then a snapshot that was taken today will be retained for 5 days before being // deleted. // - // This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. // - // Default: 0 (i.e., automatic backups are disabled for this cache cluster). + // Default: 0 (i.e., automatic backups are disabled for this cache cluster). SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache will begin taking @@ -2327,12 +2111,18 @@ type CreateCacheClusterInput struct { // If you do not specify this parameter, then ElastiCache will automatically // choose an appropriate time range. // - // Note: This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. SnapshotWindow *string `type:"string"` // A list of cost allocation tags to be added to this resource. A tag is a key-value // pair. A tag key must be accompanied by a tag value. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateCacheClusterInput `json:"-" xml:"-"` +} + +type metadataCreateCacheClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2345,24 +2135,15 @@ func (s CreateCacheClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCacheClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCacheClusterInput"} - if s.CacheClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("CacheClusterId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateCacheClusterOutput struct { - _ struct{} `type:"structure"` - // Contains all of the attributes of a specific cache cluster. CacheCluster *CacheCluster `type:"structure"` + + metadataCreateCacheClusterOutput `json:"-" xml:"-"` +} + +type metadataCreateCacheClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2377,8 +2158,6 @@ func (s CreateCacheClusterOutput) GoString() string { // Represents the input of a CreateCacheParameterGroup action. type CreateCacheParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the cache parameter group family the cache parameter group can // be used with. // @@ -2390,6 +2169,12 @@ type CreateCacheParameterGroupInput struct { // A user-specified description for the cache parameter group. Description *string `type:"string" required:"true"` + + metadataCreateCacheParameterGroupInput `json:"-" xml:"-"` +} + +type metadataCreateCacheParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2402,30 +2187,15 @@ func (s CreateCacheParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCacheParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCacheParameterGroupInput"} - if s.CacheParameterGroupFamily == nil { - invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupFamily")) - } - if s.CacheParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName")) - } - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateCacheParameterGroupOutput struct { - _ struct{} `type:"structure"` - // Represents the output of a CreateCacheParameterGroup action. CacheParameterGroup *CacheParameterGroup `type:"structure"` + + metadataCreateCacheParameterGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateCacheParameterGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2440,8 +2210,6 @@ func (s CreateCacheParameterGroupOutput) GoString() string { // Represents the input of a CreateCacheSecurityGroup action. type CreateCacheSecurityGroupInput struct { - _ struct{} `type:"structure"` - // A name for the cache security group. This value is stored as a lowercase // string. // @@ -2453,6 +2221,12 @@ type CreateCacheSecurityGroupInput struct { // A description for the cache security group. Description *string `type:"string" required:"true"` + + metadataCreateCacheSecurityGroupInput `json:"-" xml:"-"` +} + +type metadataCreateCacheSecurityGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2465,33 +2239,17 @@ func (s CreateCacheSecurityGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCacheSecurityGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCacheSecurityGroupInput"} - if s.CacheSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheSecurityGroupName")) - } - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateCacheSecurityGroupOutput struct { - _ struct{} `type:"structure"` - // Represents the output of one of the following actions: // - // AuthorizeCacheSecurityGroupIngress - // - // CreateCacheSecurityGroup - // - // RevokeCacheSecurityGroupIngress + // AuthorizeCacheSecurityGroupIngress CreateCacheSecurityGroup RevokeCacheSecurityGroupIngress CacheSecurityGroup *CacheSecurityGroup `type:"structure"` + + metadataCreateCacheSecurityGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateCacheSecurityGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2506,8 +2264,6 @@ func (s CreateCacheSecurityGroupOutput) GoString() string { // Represents the input of a CreateCacheSubnetGroup action. type CreateCacheSubnetGroupInput struct { - _ struct{} `type:"structure"` - // A description for the cache subnet group. CacheSubnetGroupDescription *string `type:"string" required:"true"` @@ -2520,6 +2276,12 @@ type CreateCacheSubnetGroupInput struct { // A list of VPC subnet IDs for the cache subnet group. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"` + + metadataCreateCacheSubnetGroupInput `json:"-" xml:"-"` +} + +type metadataCreateCacheSubnetGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2532,34 +2294,17 @@ func (s CreateCacheSubnetGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCacheSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCacheSubnetGroupInput"} - if s.CacheSubnetGroupDescription == nil { - invalidParams.Add(request.NewErrParamRequired("CacheSubnetGroupDescription")) - } - if s.CacheSubnetGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheSubnetGroupName")) - } - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateCacheSubnetGroupOutput struct { - _ struct{} `type:"structure"` - // Represents the output of one of the following actions: // - // CreateCacheSubnetGroup - // - // ModifyCacheSubnetGroup + // CreateCacheSubnetGroup ModifyCacheSubnetGroup CacheSubnetGroup *CacheSubnetGroup `type:"structure"` + + metadataCreateCacheSubnetGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateCacheSubnetGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2574,8 +2319,6 @@ func (s CreateCacheSubnetGroupOutput) GoString() string { // Represents the input of a CreateReplicationGroup action. type CreateReplicationGroupInput struct { - _ struct{} `type:"structure"` - // This parameter is currently disabled. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -2587,45 +2330,28 @@ type CreateReplicationGroupInput struct { // // Default: false // - // ElastiCache Multi-AZ replication groups is not supported on: + // ElastiCache Multi-AZ replication groups is not supported on: // - // Redis versions earlier than 2.8.6. - // - // T1 and T2 cache node types. + // Redis versions earlier than 2.8.6. T1 and T2 cache node types. AutomaticFailoverEnabled *bool `type:"boolean"` // The compute and memory capacity of the nodes in the node group. // // Valid node types are as follows: // - // General purpose: - // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge - // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge - // - // Compute optimized: cache.c1.xlarge - // - // Memory optimized: - // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge - // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge - // - // Notes: - // - // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). - // - // Redis backup/restore is not supported for t2 instances. - // - // Redis Append-only files (AOF) functionality is not supported for t1 or - // t2 instances. - // - // For a complete listing of cache node types and specifications, see Amazon - // ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // General purpose: Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, + // cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge Previous + // generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge Compute optimized: cache.c1.xlarge Memory optimized Current + // generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge Previous generation: cache.m2.xlarge, cache.m2.2xlarge, + // cache.m2.4xlarge Notes: + // + // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). + // Redis backup/restore is not supported for t2 instances. Redis Append-only + // files (AOF) functionality is not supported for t1 or t2 instances. For a + // complete listing of cache node types and specifications, see Amazon ElastiCache + // Product Features and Details (http://aws.amazon.com/elasticache/details) // and Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#CacheParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#CacheParameterGroups.Redis.NodeSpecific). CacheNodeType *string `type:"string"` @@ -2650,19 +2376,12 @@ type CreateReplicationGroupInput struct { // The version number of the cache engine to be used for the cache clusters // in this replication group. To view the supported cache engine versions, use // the DescribeCacheEngineVersions action. - // - // Important: You can upgrade to a newer engine version (see Selecting a Cache - // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)) - // in the ElastiCache User Guide, but you cannot downgrade to an earlier engine - // version. If you want to use an earlier engine version, you must delete the - // existing cache cluster or replication group and create it anew with the earlier - // engine version. EngineVersion *string `type:"string"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service // (SNS) topic to which notifications will be sent. // - // The Amazon SNS topic owner must be the same as the cache cluster owner. + // The Amazon SNS topic owner must be the same as the cache cluster owner. NotificationTopicArn *string `type:"string"` // The number of cache clusters this replication group will initially have. @@ -2682,18 +2401,15 @@ type CreateReplicationGroupInput struct { // A list of EC2 availability zones in which the replication group's cache clusters // will be created. The order of the availability zones in the list is not important. // - // If you are creating your replication group in an Amazon VPC (recommended), + // If you are creating your replication group in an Amazon VPC (recommended), // you can only locate cache clusters in availability zones associated with - // the subnets in the selected subnet group. - // - // The number of availability zones listed must equal the value of NumCacheClusters. + // the subnets in the selected subnet group. The number of availability zones + // listed must equal the value of NumCacheClusters. // - // Default: system chosen availability zones. + // Default: system chosen availability zones. // - // Example: One Redis cache cluster in each of three availability zones. - // - // PreferredAvailabilityZones.member.1=us-west-2a PreferredAvailabilityZones.member.2=us-west-2c - // PreferredAvailabilityZones.member.3=us-west-2c + // Example: One Redis cache cluster in each of three availability zones. PreferredAvailabilityZones.member.1=us-west-2a + // PreferredAvailabilityZones.member.2=us-west-2c PreferredAvailabilityZones.member.3=us-west-2c PreferredCacheClusterAZs []*string `locationNameList:"AvailabilityZone" type:"list"` // Specifies the weekly time range during which maintenance on the cache cluster @@ -2701,21 +2417,7 @@ type CreateReplicationGroupInput struct { // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid // values for ddd are: // - // sun - // - // mon - // - // tue - // - // wed - // - // thu - // - // fri - // - // sat - // - // Example: sun:05:00-sun:09:00 + // sun mon tue wed thu fri sat Example: sun:05:00-sun:09:00 PreferredMaintenanceWindow *string `type:"string"` // The identifier of the cache cluster that will serve as the primary for this @@ -2733,11 +2435,9 @@ type CreateReplicationGroupInput struct { // // Constraints: // - // A name must contain from 1 to 20 alphanumeric characters or hyphens. - // - // The first character must be a letter. - // - // A name cannot end with a hyphen or contain two consecutive hyphens. + // A name must contain from 1 to 20 alphanumeric characters or hyphens. The + // first character must be a letter. A name cannot end with a hyphen or contain + // two consecutive hyphens. ReplicationGroupId *string `type:"string" required:"true"` // One or more Amazon VPC security groups associated with this replication group. @@ -2751,16 +2451,16 @@ type CreateReplicationGroupInput struct { // file will be used to populate the node group. The Amazon S3 object name in // the ARN cannot contain any commas. // - // This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. // - // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb + // Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb SnapshotArns []*string `locationNameList:"SnapshotArn" type:"list"` // The name of a snapshot from which to restore data into the new node group. // The snapshot status changes to restoring while the new node group is being // created. // - // This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. SnapshotName *string `type:"string"` // The number of days for which ElastiCache will retain automatic snapshots @@ -2768,9 +2468,9 @@ type CreateReplicationGroupInput struct { // then a snapshot that was taken today will be retained for 5 days before being // deleted. // - // This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. // - // Default: 0 (i.e., automatic backups are disabled for this cache cluster). + // Default: 0 (i.e., automatic backups are disabled for this cache cluster). SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache will begin taking @@ -2781,12 +2481,18 @@ type CreateReplicationGroupInput struct { // If you do not specify this parameter, then ElastiCache will automatically // choose an appropriate time range. // - // This parameter is only valid if the Engine parameter is redis. + // Note: This parameter is only valid if the Engine parameter is redis. SnapshotWindow *string `type:"string"` // A list of cost allocation tags to be added to this resource. A tag is a key-value // pair. A tag key must be accompanied by a tag value. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateReplicationGroupInput `json:"-" xml:"-"` +} + +type metadataCreateReplicationGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2799,27 +2505,15 @@ func (s CreateReplicationGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReplicationGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReplicationGroupInput"} - if s.ReplicationGroupDescription == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationGroupDescription")) - } - if s.ReplicationGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateReplicationGroupOutput struct { - _ struct{} `type:"structure"` - // Contains all of the attributes of a specific replication group. ReplicationGroup *ReplicationGroup `type:"structure"` + + metadataCreateReplicationGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateReplicationGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2834,14 +2528,18 @@ func (s CreateReplicationGroupOutput) GoString() string { // Represents the input of a CreateSnapshot action. type CreateSnapshotInput struct { - _ struct{} `type:"structure"` - // The identifier of an existing cache cluster. The snapshot will be created // from this cache cluster. CacheClusterId *string `type:"string" required:"true"` // A name for the snapshot being created. SnapshotName *string `type:"string" required:"true"` + + metadataCreateSnapshotInput `json:"-" xml:"-"` +} + +type metadataCreateSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2854,28 +2552,16 @@ func (s CreateSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"} - if s.CacheClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("CacheClusterId")) - } - if s.SnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateSnapshotOutput struct { - _ struct{} `type:"structure"` - // Represents a copy of an entire cache cluster as of the time when the snapshot // was taken. Snapshot *Snapshot `type:"structure"` + + metadataCreateSnapshotOutput `json:"-" xml:"-"` +} + +type metadataCreateSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2890,8 +2576,6 @@ func (s CreateSnapshotOutput) GoString() string { // Represents the input of a DeleteCacheCluster action. type DeleteCacheClusterInput struct { - _ struct{} `type:"structure"` - // The cache cluster identifier for the cluster to be deleted. This parameter // is not case sensitive. CacheClusterId *string `type:"string" required:"true"` @@ -2900,6 +2584,12 @@ type DeleteCacheClusterInput struct { // name that identifies the snapshot. ElastiCache creates the snapshot, and // then deletes the cache cluster immediately afterward. FinalSnapshotIdentifier *string `type:"string"` + + metadataDeleteCacheClusterInput `json:"-" xml:"-"` +} + +type metadataDeleteCacheClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2912,24 +2602,15 @@ func (s DeleteCacheClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCacheClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCacheClusterInput"} - if s.CacheClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("CacheClusterId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteCacheClusterOutput struct { - _ struct{} `type:"structure"` - // Contains all of the attributes of a specific cache cluster. CacheCluster *CacheCluster `type:"structure"` + + metadataDeleteCacheClusterOutput `json:"-" xml:"-"` +} + +type metadataDeleteCacheClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2944,13 +2625,17 @@ func (s DeleteCacheClusterOutput) GoString() string { // Represents the input of a DeleteCacheParameterGroup action. type DeleteCacheParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the cache parameter group to delete. // - // The specified cache security group must not be associated with any cache + // The specified cache security group must not be associated with any cache // clusters. CacheParameterGroupName *string `type:"string" required:"true"` + + metadataDeleteCacheParameterGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteCacheParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2963,21 +2648,12 @@ func (s DeleteCacheParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCacheParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCacheParameterGroupInput"} - if s.CacheParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteCacheParameterGroupOutput struct { + metadataDeleteCacheParameterGroupOutput `json:"-" xml:"-"` } -type DeleteCacheParameterGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteCacheParameterGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2992,12 +2668,16 @@ func (s DeleteCacheParameterGroupOutput) GoString() string { // Represents the input of a DeleteCacheSecurityGroup action. type DeleteCacheSecurityGroupInput struct { - _ struct{} `type:"structure"` - // The name of the cache security group to delete. // - // You cannot delete the default security group. + // You cannot delete the default security group. CacheSecurityGroupName *string `type:"string" required:"true"` + + metadataDeleteCacheSecurityGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteCacheSecurityGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3010,21 +2690,12 @@ func (s DeleteCacheSecurityGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCacheSecurityGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCacheSecurityGroupInput"} - if s.CacheSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheSecurityGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteCacheSecurityGroupOutput struct { + metadataDeleteCacheSecurityGroupOutput `json:"-" xml:"-"` } -type DeleteCacheSecurityGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteCacheSecurityGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3039,12 +2710,16 @@ func (s DeleteCacheSecurityGroupOutput) GoString() string { // Represents the input of a DeleteCacheSubnetGroup action. type DeleteCacheSubnetGroupInput struct { - _ struct{} `type:"structure"` - // The name of the cache subnet group to delete. // // Constraints: Must contain no more than 255 alphanumeric characters or hyphens. CacheSubnetGroupName *string `type:"string" required:"true"` + + metadataDeleteCacheSubnetGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteCacheSubnetGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3057,21 +2732,12 @@ func (s DeleteCacheSubnetGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCacheSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCacheSubnetGroupInput"} - if s.CacheSubnetGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheSubnetGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteCacheSubnetGroupOutput struct { + metadataDeleteCacheSubnetGroupOutput `json:"-" xml:"-"` } -type DeleteCacheSubnetGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteCacheSubnetGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3086,8 +2752,6 @@ func (s DeleteCacheSubnetGroupOutput) GoString() string { // Represents the input of a DeleteReplicationGroup action. type DeleteReplicationGroupInput struct { - _ struct{} `type:"structure"` - // The name of a final node group snapshot. ElastiCache creates the snapshot // from the primary node in the cluster, rather than one of the replicas; this // is to ensure that it captures the freshest data. After the final snapshot @@ -3101,6 +2765,12 @@ type DeleteReplicationGroupInput struct { // If set to true, all of the read replicas will be deleted, but the primary // node will be retained. RetainPrimaryCluster *bool `type:"boolean"` + + metadataDeleteReplicationGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteReplicationGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3113,24 +2783,15 @@ func (s DeleteReplicationGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReplicationGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationGroupInput"} - if s.ReplicationGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteReplicationGroupOutput struct { - _ struct{} `type:"structure"` - // Contains all of the attributes of a specific replication group. ReplicationGroup *ReplicationGroup `type:"structure"` + + metadataDeleteReplicationGroupOutput `json:"-" xml:"-"` +} + +type metadataDeleteReplicationGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3145,10 +2806,14 @@ func (s DeleteReplicationGroupOutput) GoString() string { // Represents the input of a DeleteSnapshot action. type DeleteSnapshotInput struct { - _ struct{} `type:"structure"` - // The name of the snapshot to be deleted. SnapshotName *string `type:"string" required:"true"` + + metadataDeleteSnapshotInput `json:"-" xml:"-"` +} + +type metadataDeleteSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3161,25 +2826,16 @@ func (s DeleteSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"} - if s.SnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteSnapshotOutput struct { - _ struct{} `type:"structure"` - // Represents a copy of an entire cache cluster as of the time when the snapshot // was taken. Snapshot *Snapshot `type:"structure"` + + metadataDeleteSnapshotOutput `json:"-" xml:"-"` +} + +type metadataDeleteSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3194,8 +2850,6 @@ func (s DeleteSnapshotOutput) GoString() string { // Represents the input of a DescribeCacheClusters action. type DescribeCacheClustersInput struct { - _ struct{} `type:"structure"` - // The user-supplied cluster identifier. If this parameter is specified, only // information about that specific cache cluster is returned. This parameter // isn't case sensitive. @@ -3218,6 +2872,12 @@ type DescribeCacheClustersInput struct { // An optional flag that can be included in the DescribeCacheCluster request // to retrieve information about the individual cache nodes. ShowCacheNodeInfo *bool `type:"boolean"` + + metadataDescribeCacheClustersInput `json:"-" xml:"-"` +} + +type metadataDescribeCacheClustersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3232,14 +2892,18 @@ func (s DescribeCacheClustersInput) GoString() string { // Represents the output of a DescribeCacheClusters action. type DescribeCacheClustersOutput struct { - _ struct{} `type:"structure"` - // A list of cache clusters. Each item in the list contains detailed information // about one cache cluster. CacheClusters []*CacheCluster `locationNameList:"CacheCluster" type:"list"` // Provides an identifier to allow retrieval of paginated results. Marker *string `type:"string"` + + metadataDescribeCacheClustersOutput `json:"-" xml:"-"` +} + +type metadataDescribeCacheClustersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3254,17 +2918,12 @@ func (s DescribeCacheClustersOutput) GoString() string { // Represents the input of a DescribeCacheEngineVersions action. type DescribeCacheEngineVersionsInput struct { - _ struct{} `type:"structure"` - // The name of a specific cache parameter group family to return details for. // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens CacheParameterGroupFamily *string `type:"string"` // If true, specifies that only the default version of the specified engine @@ -3292,6 +2951,12 @@ type DescribeCacheEngineVersionsInput struct { // // Constraints: minimum 20; maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeCacheEngineVersionsInput `json:"-" xml:"-"` +} + +type metadataDescribeCacheEngineVersionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3306,14 +2971,18 @@ func (s DescribeCacheEngineVersionsInput) GoString() string { // Represents the output of a DescribeCacheEngineVersions action. type DescribeCacheEngineVersionsOutput struct { - _ struct{} `type:"structure"` - // A list of cache engine version details. Each element in the list contains // detailed information about one cache engine version. CacheEngineVersions []*CacheEngineVersion `locationNameList:"CacheEngineVersion" type:"list"` // Provides an identifier to allow retrieval of paginated results. Marker *string `type:"string"` + + metadataDescribeCacheEngineVersionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeCacheEngineVersionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3328,8 +2997,6 @@ func (s DescribeCacheEngineVersionsOutput) GoString() string { // Represents the input of a DescribeCacheParameterGroups action. type DescribeCacheParameterGroupsInput struct { - _ struct{} `type:"structure"` - // The name of a specific cache parameter group to return details for. CacheParameterGroupName *string `type:"string"` @@ -3346,6 +3013,12 @@ type DescribeCacheParameterGroupsInput struct { // // Constraints: minimum 20; maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeCacheParameterGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeCacheParameterGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3360,14 +3033,18 @@ func (s DescribeCacheParameterGroupsInput) GoString() string { // Represents the output of a DescribeCacheParameterGroups action. type DescribeCacheParameterGroupsOutput struct { - _ struct{} `type:"structure"` - // A list of cache parameter groups. Each element in the list contains detailed // information about one cache parameter group. CacheParameterGroups []*CacheParameterGroup `locationNameList:"CacheParameterGroup" type:"list"` // Provides an identifier to allow retrieval of paginated results. Marker *string `type:"string"` + + metadataDescribeCacheParameterGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeCacheParameterGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3382,8 +3059,6 @@ func (s DescribeCacheParameterGroupsOutput) GoString() string { // Represents the input of a DescribeCacheParameters action. type DescribeCacheParametersInput struct { - _ struct{} `type:"structure"` - // The name of a specific cache parameter group to return details for. CacheParameterGroupName *string `type:"string" required:"true"` @@ -3392,7 +3067,7 @@ type DescribeCacheParametersInput struct { // includes only records beyond the marker, up to the value specified by MaxRecords. Marker *string `type:"string"` - // The maximum number of brecords to include in the response. If more records + // The maximum number of records to include in the response. If more records // exist than the specified MaxRecords value, a marker is included in the response // so that the remaining results can be retrieved. // @@ -3405,6 +3080,12 @@ type DescribeCacheParametersInput struct { // // Valid values: user | system | engine-default Source *string `type:"string"` + + metadataDescribeCacheParametersInput `json:"-" xml:"-"` +} + +type metadataDescribeCacheParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3417,23 +3098,8 @@ func (s DescribeCacheParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeCacheParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeCacheParametersInput"} - if s.CacheParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DescribeCacheParameters action. type DescribeCacheParametersOutput struct { - _ struct{} `type:"structure"` - // A list of parameters specific to a particular cache node type. Each element // in the list contains detailed information about one parameter. CacheNodeTypeSpecificParameters []*CacheNodeTypeSpecificParameter `locationNameList:"CacheNodeTypeSpecificParameter" type:"list"` @@ -3443,6 +3109,12 @@ type DescribeCacheParametersOutput struct { // A list of Parameter instances. Parameters []*Parameter `locationNameList:"Parameter" type:"list"` + + metadataDescribeCacheParametersOutput `json:"-" xml:"-"` +} + +type metadataDescribeCacheParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3457,8 +3129,6 @@ func (s DescribeCacheParametersOutput) GoString() string { // Represents the input of a DescribeCacheSecurityGroups action. type DescribeCacheSecurityGroupsInput struct { - _ struct{} `type:"structure"` - // The name of the cache security group to return details for. CacheSecurityGroupName *string `type:"string"` @@ -3475,6 +3145,12 @@ type DescribeCacheSecurityGroupsInput struct { // // Constraints: minimum 20; maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeCacheSecurityGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeCacheSecurityGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3489,14 +3165,18 @@ func (s DescribeCacheSecurityGroupsInput) GoString() string { // Represents the output of a DescribeCacheSecurityGroups action. type DescribeCacheSecurityGroupsOutput struct { - _ struct{} `type:"structure"` - // A list of cache security groups. Each element in the list contains detailed // information about one group. CacheSecurityGroups []*CacheSecurityGroup `locationNameList:"CacheSecurityGroup" type:"list"` // Provides an identifier to allow retrieval of paginated results. Marker *string `type:"string"` + + metadataDescribeCacheSecurityGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeCacheSecurityGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3511,8 +3191,6 @@ func (s DescribeCacheSecurityGroupsOutput) GoString() string { // Represents the input of a DescribeCacheSubnetGroups action. type DescribeCacheSubnetGroupsInput struct { - _ struct{} `type:"structure"` - // The name of the cache subnet group to return details for. CacheSubnetGroupName *string `type:"string"` @@ -3529,6 +3207,12 @@ type DescribeCacheSubnetGroupsInput struct { // // Constraints: minimum 20; maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeCacheSubnetGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeCacheSubnetGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3543,14 +3227,18 @@ func (s DescribeCacheSubnetGroupsInput) GoString() string { // Represents the output of a DescribeCacheSubnetGroups action. type DescribeCacheSubnetGroupsOutput struct { - _ struct{} `type:"structure"` - // A list of cache subnet groups. Each element in the list contains detailed // information about one group. CacheSubnetGroups []*CacheSubnetGroup `locationNameList:"CacheSubnetGroup" type:"list"` // Provides an identifier to allow retrieval of paginated results. Marker *string `type:"string"` + + metadataDescribeCacheSubnetGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeCacheSubnetGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3565,8 +3253,6 @@ func (s DescribeCacheSubnetGroupsOutput) GoString() string { // Represents the input of a DescribeEngineDefaultParameters action. type DescribeEngineDefaultParametersInput struct { - _ struct{} `type:"structure"` - // The name of the cache parameter group family. Valid values are: memcached1.4 // | redis2.6 | redis2.8 CacheParameterGroupFamily *string `type:"string" required:"true"` @@ -3584,6 +3270,12 @@ type DescribeEngineDefaultParametersInput struct { // // Constraints: minimum 20; maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeEngineDefaultParametersInput `json:"-" xml:"-"` +} + +type metadataDescribeEngineDefaultParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3596,24 +3288,15 @@ func (s DescribeEngineDefaultParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEngineDefaultParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultParametersInput"} - if s.CacheParameterGroupFamily == nil { - invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupFamily")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeEngineDefaultParametersOutput struct { - _ struct{} `type:"structure"` - // Represents the output of a DescribeEngineDefaultParameters action. EngineDefaults *EngineDefaults `type:"structure"` + + metadataDescribeEngineDefaultParametersOutput `json:"-" xml:"-"` +} + +type metadataDescribeEngineDefaultParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3628,8 +3311,6 @@ func (s DescribeEngineDefaultParametersOutput) GoString() string { // Represents the input of a DescribeEvents action. type DescribeEventsInput struct { - _ struct{} `type:"structure"` - // The number of minutes' worth of events to retrieve. Duration *int64 `type:"integer"` @@ -3665,6 +3346,12 @@ type DescribeEventsInput struct { // The beginning of the time interval to retrieve events for, specified in ISO // 8601 format. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataDescribeEventsInput `json:"-" xml:"-"` +} + +type metadataDescribeEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3679,14 +3366,18 @@ func (s DescribeEventsInput) GoString() string { // Represents the output of a DescribeEvents action. type DescribeEventsOutput struct { - _ struct{} `type:"structure"` - // A list of events. Each element in the list contains detailed information // about one event. Events []*Event `locationNameList:"Event" type:"list"` // Provides an identifier to allow retrieval of paginated results. Marker *string `type:"string"` + + metadataDescribeEventsOutput `json:"-" xml:"-"` +} + +type metadataDescribeEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3701,8 +3392,6 @@ func (s DescribeEventsOutput) GoString() string { // Represents the input of a DescribeReplicationGroups action. type DescribeReplicationGroupsInput struct { - _ struct{} `type:"structure"` - // An optional marker returned from a prior request. Use this marker for pagination // of results from this action. If this parameter is specified, the response // includes only records beyond the marker, up to the value specified by MaxRecords. @@ -3723,6 +3412,12 @@ type DescribeReplicationGroupsInput struct { // If you do not specify this parameter, information about all replication // groups is returned. ReplicationGroupId *string `type:"string"` + + metadataDescribeReplicationGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeReplicationGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3737,14 +3432,18 @@ func (s DescribeReplicationGroupsInput) GoString() string { // Represents the output of a DescribeReplicationGroups action. type DescribeReplicationGroupsOutput struct { - _ struct{} `type:"structure"` - // Provides an identifier to allow retrieval of paginated results. Marker *string `type:"string"` // A list of replication groups. Each item in the list contains detailed information // about one replication group. ReplicationGroups []*ReplicationGroup `locationNameList:"ReplicationGroup" type:"list"` + + metadataDescribeReplicationGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeReplicationGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3759,41 +3458,24 @@ func (s DescribeReplicationGroupsOutput) GoString() string { // Represents the input of a DescribeReservedCacheNodes action. type DescribeReservedCacheNodesInput struct { - _ struct{} `type:"structure"` - // The cache node type filter value. Use this parameter to show only those reservations // matching the specified cache node type. // // Valid node types are as follows: // - // General purpose: - // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge - // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge - // - // Compute optimized: cache.c1.xlarge - // - // Memory optimized: - // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge - // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge - // - // Notes: - // - // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). - // - // Redis backup/restore is not supported for t2 instances. - // - // Redis Append-only files (AOF) functionality is not supported for t1 or - // t2 instances. - // - // For a complete listing of cache node types and specifications, see Amazon - // ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // General purpose: Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, + // cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge Previous + // generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge Compute optimized: cache.c1.xlarge Memory optimized Current + // generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge Previous generation: cache.m2.xlarge, cache.m2.2xlarge, + // cache.m2.4xlarge Notes: + // + // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). + // Redis backup/restore is not supported for t2 instances. Redis Append-only + // files (AOF) functionality is not supported for t1 or t2 instances. For a + // complete listing of cache node types and specifications, see Amazon ElastiCache + // Product Features and Details (http://aws.amazon.com/elasticache/details) // and Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#CacheParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#CacheParameterGroups.Redis.NodeSpecific). CacheNodeType *string `type:"string"` @@ -3835,6 +3517,12 @@ type DescribeReservedCacheNodesInput struct { // The offering identifier filter value. Use this parameter to show only purchased // reservations matching the specified offering identifier. ReservedCacheNodesOfferingId *string `type:"string"` + + metadataDescribeReservedCacheNodesInput `json:"-" xml:"-"` +} + +type metadataDescribeReservedCacheNodesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3849,41 +3537,24 @@ func (s DescribeReservedCacheNodesInput) GoString() string { // Represents the input of a DescribeReservedCacheNodesOfferings action. type DescribeReservedCacheNodesOfferingsInput struct { - _ struct{} `type:"structure"` - // The cache node type filter value. Use this parameter to show only the available // offerings matching the specified cache node type. // // Valid node types are as follows: // - // General purpose: - // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge - // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge - // - // Compute optimized: cache.c1.xlarge - // - // Memory optimized: - // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge - // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge - // - // Notes: - // - // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). - // - // Redis backup/restore is not supported for t2 instances. - // - // Redis Append-only files (AOF) functionality is not supported for t1 or - // t2 instances. - // - // For a complete listing of cache node types and specifications, see Amazon - // ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // General purpose: Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, + // cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge Previous + // generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge Compute optimized: cache.c1.xlarge Memory optimized Current + // generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge Previous generation: cache.m2.xlarge, cache.m2.2xlarge, + // cache.m2.4xlarge Notes: + // + // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). + // Redis backup/restore is not supported for t2 instances. Redis Append-only + // files (AOF) functionality is not supported for t1 or t2 instances. For a + // complete listing of cache node types and specifications, see Amazon ElastiCache + // Product Features and Details (http://aws.amazon.com/elasticache/details) // and Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#CacheParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#CacheParameterGroups.Redis.NodeSpecific). CacheNodeType *string `type:"string"` @@ -3923,6 +3594,12 @@ type DescribeReservedCacheNodesOfferingsInput struct { // // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706 ReservedCacheNodesOfferingId *string `type:"string"` + + metadataDescribeReservedCacheNodesOfferingsInput `json:"-" xml:"-"` +} + +type metadataDescribeReservedCacheNodesOfferingsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3937,14 +3614,18 @@ func (s DescribeReservedCacheNodesOfferingsInput) GoString() string { // Represents the output of a DescribeReservedCacheNodesOfferings action. type DescribeReservedCacheNodesOfferingsOutput struct { - _ struct{} `type:"structure"` - // Provides an identifier to allow retrieval of paginated results. Marker *string `type:"string"` // A list of reserved cache node offerings. Each element in the list contains // detailed information about one offering. ReservedCacheNodesOfferings []*ReservedCacheNodesOffering `locationNameList:"ReservedCacheNodesOffering" type:"list"` + + metadataDescribeReservedCacheNodesOfferingsOutput `json:"-" xml:"-"` +} + +type metadataDescribeReservedCacheNodesOfferingsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3959,14 +3640,18 @@ func (s DescribeReservedCacheNodesOfferingsOutput) GoString() string { // Represents the output of a DescribeReservedCacheNodes action. type DescribeReservedCacheNodesOutput struct { - _ struct{} `type:"structure"` - // Provides an identifier to allow retrieval of paginated results. Marker *string `type:"string"` // A list of reserved cache nodes. Each element in the list contains detailed // information about one node. ReservedCacheNodes []*ReservedCacheNode `locationNameList:"ReservedCacheNode" type:"list"` + + metadataDescribeReservedCacheNodesOutput `json:"-" xml:"-"` +} + +type metadataDescribeReservedCacheNodesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3981,8 +3666,6 @@ func (s DescribeReservedCacheNodesOutput) GoString() string { // Represents the input of a DescribeSnapshotsMessage action. type DescribeSnapshotsInput struct { - _ struct{} `type:"structure"` - // A user-supplied cluster identifier. If this parameter is specified, only // snapshots associated with that specific cache cluster will be described. CacheClusterId *string `type:"string"` @@ -4010,6 +3693,12 @@ type DescribeSnapshotsInput struct { // created. If omitted, the output shows both automatically and manually created // snapshots. SnapshotSource *string `type:"string"` + + metadataDescribeSnapshotsInput `json:"-" xml:"-"` +} + +type metadataDescribeSnapshotsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4024,8 +3713,6 @@ func (s DescribeSnapshotsInput) GoString() string { // Represents the output of a DescribeSnapshots action. type DescribeSnapshotsOutput struct { - _ struct{} `type:"structure"` - // An optional marker returned from a prior request. Use this marker for pagination // of results from this action. If this parameter is specified, the response // includes only records beyond the marker, up to the value specified by MaxRecords. @@ -4034,6 +3721,12 @@ type DescribeSnapshotsOutput struct { // A list of snapshots. Each item in the list contains detailed information // about one snapshot. Snapshots []*Snapshot `locationNameList:"Snapshot" type:"list"` + + metadataDescribeSnapshotsOutput `json:"-" xml:"-"` +} + +type metadataDescribeSnapshotsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4048,8 +3741,6 @@ func (s DescribeSnapshotsOutput) GoString() string { // Provides ownership and status information for an Amazon EC2 security group. type EC2SecurityGroup struct { - _ struct{} `type:"structure"` - // The name of the Amazon EC2 security group. EC2SecurityGroupName *string `type:"string"` @@ -4058,6 +3749,12 @@ type EC2SecurityGroup struct { // The status of the Amazon EC2 security group. Status *string `type:"string"` + + metadataEC2SecurityGroup `json:"-" xml:"-"` +} + +type metadataEC2SecurityGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4073,13 +3770,17 @@ func (s EC2SecurityGroup) GoString() string { // Represents the information required for client programs to connect to a cache // node. type Endpoint struct { - _ struct{} `type:"structure"` - // The DNS hostname of the cache node. Address *string `type:"string"` // The port number that the cache engine is listening on. Port *int64 `type:"integer"` + + metadataEndpoint `json:"-" xml:"-"` +} + +type metadataEndpoint struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4094,8 +3795,6 @@ func (s Endpoint) GoString() string { // Represents the output of a DescribeEngineDefaultParameters action. type EngineDefaults struct { - _ struct{} `type:"structure"` - // A list of parameters specific to a particular cache node type. Each element // in the list contains detailed information about one parameter. CacheNodeTypeSpecificParameters []*CacheNodeTypeSpecificParameter `locationNameList:"CacheNodeTypeSpecificParameter" type:"list"` @@ -4109,6 +3808,12 @@ type EngineDefaults struct { // Contains a list of engine default parameters. Parameters []*Parameter `locationNameList:"Parameter" type:"list"` + + metadataEngineDefaults `json:"-" xml:"-"` +} + +type metadataEngineDefaults struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4125,8 +3830,6 @@ func (s EngineDefaults) GoString() string { // Some examples of events are creating a cache cluster, adding or removing // a cache node, or rebooting a node. type Event struct { - _ struct{} `type:"structure"` - // The date and time when the event occurred. Date *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -4141,84 +3844,35 @@ type Event struct { // Specifies the origin of this event - a cache cluster, a parameter group, // a security group, etc. SourceType *string `type:"string" enum:"SourceType"` + + metadataEvent `json:"-" xml:"-"` } -// String returns the string representation -func (s Event) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Event) GoString() string { - return s.String() -} - -// The input parameters for the ListAllowedNodeTypeModifications action. -type ListAllowedNodeTypeModificationsInput struct { - _ struct{} `type:"structure"` - - // The name of the cache cluster you want to scale up to a larger node instanced - // type. ElastiCache uses the cluster id to identify the current node type of - // this cluster and from that to to create a list of node types you can scale - // up to. - // - // You must provide a value for either the CacheClusterId or the ReplicationGroupId. - CacheClusterId *string `type:"string"` - - // The name of the replication group want to scale up to a larger node type. - // ElastiCache uses the replication group id to identify the current node type - // being used by this replication group, and from that to create a list of node - // types you can scale up to. - // - // You must provide a value for either the CacheClusterId or the ReplicationGroupId. - ReplicationGroupId *string `type:"string"` -} - -// String returns the string representation -func (s ListAllowedNodeTypeModificationsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAllowedNodeTypeModificationsInput) GoString() string { - return s.String() -} - -// Represents the allowed node types you can use to modify your cache cluster -// or replication group. -type ListAllowedNodeTypeModificationsOutput struct { - _ struct{} `type:"structure"` - - // A string list, each element of which specifies a cache node type which you - // can use to scale your cache cluster or replication group. - // - // When scaling up a Redis cluster or replication group using ModifyCacheCluster - // or ModifyReplicationGroup, use a value from this list for the CacheNodeType - // parameter. - ScaleUpModifications []*string `type:"list"` +type metadataEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListAllowedNodeTypeModificationsOutput) String() string { +func (s Event) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAllowedNodeTypeModificationsOutput) GoString() string { +func (s Event) GoString() string { return s.String() } // The input parameters for the ListTagsForResource action. type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource for which you want the list - // of tags, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster - // or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. - // - // For more information on ARNs, go to Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + // The name of the resource for which you want the list of tags, for example + // arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster. ResourceName *string `type:"string" required:"true"` + + metadataListTagsForResourceInput `json:"-" xml:"-"` +} + +type metadataListTagsForResourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4231,23 +3885,8 @@ 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.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of a ModifyCacheCluster action. type ModifyCacheClusterInput struct { - _ struct{} `type:"structure"` - // Specifies whether the new nodes in this Memcached cache cluster are all created // in a single Availability Zone or created across multiple Availability Zones. // @@ -4255,7 +3894,7 @@ type ModifyCacheClusterInput struct { // // This option is only supported for Memcached cache clusters. // - // You cannot specify single-az if the Memcached cache cluster already has + // You cannot specify single-az if the Memcached cache cluster already has // cache nodes in different Availability Zones. If cross-az is specified, existing // Memcached nodes remain in their current Availability Zone. // @@ -4272,10 +3911,9 @@ type ModifyCacheClusterInput struct { // If false, then changes to the cache cluster are applied on the next maintenance // reboot, or the next failure reboot, whichever occurs first. // - // If you perform a ModifyCacheCluster before a pending modification is applied, - // the pending modification is replaced by the newer modification. - // - // Valid values: true | false + // If you perform a ModifyCacheCluster before a pending modification is applied, + // the pending modification is replaced by the newer modification. Valid values: + // true | false // // Default: false ApplyImmediately *bool `type:"boolean"` @@ -4298,11 +3936,6 @@ type ModifyCacheClusterInput struct { // 2 (7 - 5) cache node IDs to remove. CacheNodeIdsToRemove []*string `locationNameList:"CacheNodeId" type:"list"` - // A valid cache node type that you want to scale this cache cluster to. The - // value of this parameter must be one of the ScaleUpModifications values returned - // by the ListAllowedCacheNodeTypeModification action. - CacheNodeType *string `type:"string"` - // The name of the cache parameter group to apply to this cache cluster. This // change is asynchronously applied as soon as possible for parameters when // the ApplyImmediately parameter is specified as true for this request. @@ -4319,12 +3952,6 @@ type ModifyCacheClusterInput struct { CacheSecurityGroupNames []*string `locationNameList:"CacheSecurityGroupName" type:"list"` // The upgraded version of the cache engine to be run on the cache nodes. - // - // Important: You can upgrade to a newer engine version (see Selecting a Cache - // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)), - // but you cannot downgrade to an earlier engine version. If you want to use - // an earlier engine version, you must delete the existing cache cluster and - // create it anew with the earlier engine version. EngineVersion *string `type:"string"` // The list of Availability Zones where the new Memcached cache nodes will be @@ -4337,20 +3964,15 @@ type ModifyCacheClusterInput struct { // // This option is only supported on Memcached clusters. // - // Scenarios: + // Scenarios: Scenario 1: You have 3 active nodes and wish to add 2 nodes. + // Specify NumCacheNodes=5 (3 + 2) and optionally specify two Availability Zones + // for the two new nodes. Scenario 2: You have 3 active nodes and 2 nodes pending + // creation (from the scenario 1 call) and want to add 1 more node. Specify + // NumCacheNodes=6 ((3 + 2) + 1) and optionally specify an Availability Zone + // for the new node. Scenario 3: You want to cancel all pending actions. Specify + // NumCacheNodes=3 to cancel all pending actions. // - // Scenario 1: You have 3 active nodes and wish to add 2 nodes. Specify - // NumCacheNodes=5 (3 + 2) and optionally specify two Availability Zones for - // the two new nodes. - // - // Scenario 2: You have 3 active nodes and 2 nodes pending creation (from - // the scenario 1 call) and want to add 1 more node. Specify NumCacheNodes=6 - // ((3 + 2) + 1) and optionally specify an Availability Zone for the new node. - // - // Scenario 3: You want to cancel all pending actions. Specify NumCacheNodes=3 - // to cancel all pending actions. - // - // The Availability Zone placement of nodes pending creation cannot be modified. + // The Availability Zone placement of nodes pending creation cannot be modified. // If you wish to cancel any nodes pending creation, add 0 nodes by setting // NumCacheNodes to the number of current nodes. // @@ -4360,53 +3982,22 @@ type ModifyCacheClusterInput struct { // Availability Zones, see the Availability Zone Considerations section of Cache // Node Considerations for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheNode.Memcached.html). // - // Impact of new add/remove requests upon pending requests - // - // Scenario-1 - // - // Pending Action: Delete - // - // New Request: Delete - // - // Result: The new delete, pending or immediate, replaces the pending delete. - // - // Scenario-2 - // - // Pending Action: Delete - // - // New Request: Create - // - // Result: The new create, pending or immediate, replaces the pending delete. - // - // Scenario-3 - // - // Pending Action: Create - // - // New Request: Delete - // - // Result: The new delete, pending or immediate, replaces the pending create. + // Impact of new add/remove requests upon pending requests // - // Scenario-4 - // - // Pending Action: Create - // - // New Request: Create - // - // Result: The new create is added to the pending create. - // - // Important: If the new create request is Apply Immediately - Yes, all creates - // are performed immediately. If the new create request is Apply Immediately - // - No, all creates are pending. - // - // Example: - // - // NewAvailabilityZones.member.1=us-west-2a&NewAvailabilityZones.member.2=us-west-2b&NewAvailabilityZones.member.3=us-west-2c + // Scenarios Pending action New Request Results Scenario-1 Delete Delete + // The new delete, pending or immediate, replaces the pending delete. Scenario-2 + // Delete Create The new create, pending or immediate, replaces the pending + // delete. Scenario-3 Create Delete The new delete, pending or immediate, + // replaces the pending create. Scenario-4 Create Create The new create is + // added to the pending create. Important:If the new create request is Apply + // Immediately - Yes, all creates are performed immediately. If the new create + // request is Apply Immediately - No, all creates are pending. Example: NewAvailabilityZones.member.1=us-west-2a&NewAvailabilityZones.member.2=us-west-2b&NewAvailabilityZones.member.3=us-west-2c NewAvailabilityZones []*string `locationNameList:"PreferredAvailabilityZone" type:"list"` // The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications // will be sent. // - // The Amazon SNS topic owner must be same as the cache cluster owner. + // The Amazon SNS topic owner must be same as the cache cluster owner. NotificationTopicArn *string `type:"string"` // The status of the Amazon SNS notification topic. Notifications are sent only @@ -4428,24 +4019,23 @@ type ModifyCacheClusterInput struct { // For clusters running Redis, this value must be 1. For clusters running Memcached, // this value must be between 1 and 20. // - // Adding or removing Memcached cache nodes can be applied immediately or - // as a pending action. See ApplyImmediately. - // - // A pending action to modify the number of cache nodes in a cluster during - // its maintenance window, whether by adding or removing nodes in accordance - // with the scale out architecture, is not queued. The customer's latest request - // to add or remove nodes to the cluster overrides any previous pending actions - // to modify the number of cache nodes in the cluster. For example, a request - // to remove 2 nodes would override a previous pending action to remove 3 nodes. - // Similarly, a request to add 2 nodes would override a previous pending action - // to remove 3 nodes and vice versa. As Memcached cache nodes may now be provisioned - // in different Availability Zones with flexible cache node placement, a request - // to add nodes does not automatically override a previous pending action to - // add nodes. The customer can modify the previous pending action to add more - // nodes or explicitly cancel the pending request and retry the new request. - // To cancel pending actions to modify the number of cache nodes in a cluster, - // use the ModifyCacheCluster request and set NumCacheNodes equal to the number - // of cache nodes currently in the cache cluster. + // Note:Adding or removing Memcached cache nodes can be applied immediately + // or as a pending action. See ApplyImmediately. A pending action to modify + // the number of cache nodes in a cluster during its maintenance window, whether + // by adding or removing nodes in accordance with the scale out architecture, + // is not queued. The customer's latest request to add or remove nodes to the + // cluster overrides any previous pending actions to modify the number of cache + // nodes in the cluster. For example, a request to remove 2 nodes would override + // a previous pending action to remove 3 nodes. Similarly, a request to add + // 2 nodes would override a previous pending action to remove 3 nodes and vice + // versa. As Memcached cache nodes may now be provisioned in different Availability + // Zones with flexible cache node placement, a request to add nodes does not + // automatically override a previous pending action to add nodes. The customer + // can modify the previous pending action to add more nodes or explicitly cancel + // the pending request and retry the new request. To cancel pending actions + // to modify the number of cache nodes in a cluster, use the ModifyCacheCluster + // request and set NumCacheNodes equal to the number of cache nodes currently + // in the cache cluster. NumCacheNodes *int64 `type:"integer"` // Specifies the weekly time range during which maintenance on the cache cluster @@ -4453,21 +4043,7 @@ type ModifyCacheClusterInput struct { // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid // values for ddd are: // - // sun - // - // mon - // - // tue - // - // wed - // - // thu - // - // fri - // - // sat - // - // Example: sun:05:00-sun:09:00 + // sun mon tue wed thu fri sat Example: sun:05:00-sun:09:00 PreferredMaintenanceWindow *string `type:"string"` // Specifies the VPC Security Groups associated with the cache cluster. @@ -4481,13 +4057,19 @@ type ModifyCacheClusterInput struct { // to 5, then a snapshot that was taken today will be retained for 5 days before // being deleted. // - // If the value of SnapshotRetentionLimit is set to zero (0), backups are - // turned off. + // ImportantIf the value of SnapshotRetentionLimit is set to zero (0), backups + // are turned off. SnapshotRetentionLimit *int64 `type:"integer"` // The daily time range (in UTC) during which ElastiCache will begin taking // a daily snapshot of your cache cluster. SnapshotWindow *string `type:"string"` + + metadataModifyCacheClusterInput `json:"-" xml:"-"` +} + +type metadataModifyCacheClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4500,24 +4082,15 @@ func (s ModifyCacheClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyCacheClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyCacheClusterInput"} - if s.CacheClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("CacheClusterId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyCacheClusterOutput struct { - _ struct{} `type:"structure"` - // Contains all of the attributes of a specific cache cluster. CacheCluster *CacheCluster `type:"structure"` + + metadataModifyCacheClusterOutput `json:"-" xml:"-"` +} + +type metadataModifyCacheClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4532,8 +4105,6 @@ func (s ModifyCacheClusterOutput) GoString() string { // Represents the input of a ModifyCacheParameterGroup action. type ModifyCacheParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the cache parameter group to modify. CacheParameterGroupName *string `type:"string" required:"true"` @@ -4541,6 +4112,12 @@ type ModifyCacheParameterGroupInput struct { // supply at least one parameter name and value; subsequent arguments are optional. // A maximum of 20 parameters may be modified per request. ParameterNameValues []*ParameterNameValue `locationNameList:"ParameterNameValue" type:"list" required:"true"` + + metadataModifyCacheParameterGroupInput `json:"-" xml:"-"` +} + +type metadataModifyCacheParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4553,26 +4130,8 @@ func (s ModifyCacheParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyCacheParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyCacheParameterGroupInput"} - if s.CacheParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName")) - } - if s.ParameterNameValues == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterNameValues")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of a ModifyCacheSubnetGroup action. type ModifyCacheSubnetGroupInput struct { - _ struct{} `type:"structure"` - // A description for the cache subnet group. CacheSubnetGroupDescription *string `type:"string"` @@ -4586,6 +4145,12 @@ type ModifyCacheSubnetGroupInput struct { // The EC2 subnet IDs for the cache subnet group. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list"` + + metadataModifyCacheSubnetGroupInput `json:"-" xml:"-"` +} + +type metadataModifyCacheSubnetGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4598,28 +4163,17 @@ func (s ModifyCacheSubnetGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyCacheSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyCacheSubnetGroupInput"} - if s.CacheSubnetGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheSubnetGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyCacheSubnetGroupOutput struct { - _ struct{} `type:"structure"` - // Represents the output of one of the following actions: // - // CreateCacheSubnetGroup - // - // ModifyCacheSubnetGroup + // CreateCacheSubnetGroup ModifyCacheSubnetGroup CacheSubnetGroup *CacheSubnetGroup `type:"structure"` + + metadataModifyCacheSubnetGroupOutput `json:"-" xml:"-"` +} + +type metadataModifyCacheSubnetGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4634,8 +4188,6 @@ func (s ModifyCacheSubnetGroupOutput) GoString() string { // Represents the input of a ModifyReplicationGroups action. type ModifyReplicationGroupInput struct { - _ struct{} `type:"structure"` - // If true, this parameter causes the modifications in this request and any // pending modifications to be applied, asynchronously and as soon as possible, // regardless of the PreferredMaintenanceWindow setting for the replication @@ -4658,18 +4210,11 @@ type ModifyReplicationGroupInput struct { // // Valid values: true | false // - // ElastiCache Multi-AZ replication groups are not supported on: - // - // Redis versions earlier than 2.8.6. + // ElastiCache Multi-AZ replication groups are not supported on: // - // T1 and T2 cache node types. + // Redis versions earlier than 2.8.6. T1 and T2 cache node types. AutomaticFailoverEnabled *bool `type:"boolean"` - // A valid cache node type that you want to scale this replication group to. - // The value of this parameter must be one of the ScaleUpModifications values - // returned by the ListAllowedCacheNodeTypeModification action. - CacheNodeType *string `type:"string"` - // The name of the cache parameter group to apply to all of the clusters in // this replication group. This change is asynchronously applied as soon as // possible for parameters when the ApplyImmediately parameter is specified @@ -4688,18 +4233,12 @@ type ModifyReplicationGroupInput struct { // The upgraded version of the cache engine to be run on the cache clusters // in the replication group. - // - // Important: You can upgrade to a newer engine version (see Selecting a Cache - // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)), - // but you cannot downgrade to an earlier engine version. If you want to use - // an earlier engine version, you must delete the existing replication group - // and create it anew with the earlier engine version. EngineVersion *string `type:"string"` // The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications // will be sent. // - // The Amazon SNS topic owner must be same as the replication group owner. + // The Amazon SNS topic owner must be same as the replication group owner. NotificationTopicArn *string `type:"string"` // The status of the Amazon SNS notification topic for the replication group. @@ -4713,26 +4252,12 @@ type ModifyReplicationGroupInput struct { // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid // values for ddd are: // - // sun - // - // mon - // - // tue - // - // wed - // - // thu - // - // fri - // - // sat - // - // Example: sun:05:00-sun:09:00 + // sun mon tue wed thu fri sat Example: sun:05:00-sun:09:00 PreferredMaintenanceWindow *string `type:"string"` - // If this parameter is specified, ElastiCache will promote the specified cluster - // in the specified replication group to the primary role. The nodes of all - // other clusters in the replication group will be read replicas. + // If this parameter is specified, ElastiCache will promote each of the cache + // clusters in the specified replication group to the primary role. The nodes + // of all other cache clusters in the replication group will be read replicas. PrimaryClusterId *string `type:"string"` // A description for the replication group. Maximum length is 255 characters. @@ -4753,7 +4278,7 @@ type ModifyReplicationGroupInput struct { // to 5, then a snapshot that was taken today will be retained for 5 days before // being deleted. // - // Important If the value of SnapshotRetentionLimit is set to zero (0), backups + // ImportantIf the value of SnapshotRetentionLimit is set to zero (0), backups // are turned off. SnapshotRetentionLimit *int64 `type:"integer"` @@ -4769,6 +4294,12 @@ type ModifyReplicationGroupInput struct { // The cache cluster ID that will be used as the daily snapshot source for the // replication group. SnapshottingClusterId *string `type:"string"` + + metadataModifyReplicationGroupInput `json:"-" xml:"-"` +} + +type metadataModifyReplicationGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4781,24 +4312,15 @@ func (s ModifyReplicationGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyReplicationGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyReplicationGroupInput"} - if s.ReplicationGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyReplicationGroupOutput struct { - _ struct{} `type:"structure"` - // Contains all of the attributes of a specific replication group. ReplicationGroup *ReplicationGroup `type:"structure"` + + metadataModifyReplicationGroupOutput `json:"-" xml:"-"` +} + +type metadataModifyReplicationGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4813,8 +4335,6 @@ func (s ModifyReplicationGroupOutput) GoString() string { // Represents a collection of cache nodes in a replication group. type NodeGroup struct { - _ struct{} `type:"structure"` - // The identifier for the node group. A replication group contains only one // node group; therefore, the node group ID is 0001. NodeGroupId *string `type:"string"` @@ -4828,6 +4348,12 @@ type NodeGroup struct { // The current state of this replication group - creating, available, etc. Status *string `type:"string"` + + metadataNodeGroup `json:"-" xml:"-"` +} + +type metadataNodeGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4842,8 +4368,6 @@ func (s NodeGroup) GoString() string { // Represents a single node within a node group. type NodeGroupMember struct { - _ struct{} `type:"structure"` - // The ID of the cache cluster to which the node belongs. CacheClusterId *string `type:"string"` @@ -4860,6 +4384,12 @@ type NodeGroupMember struct { // Represents the information required for client programs to connect to a cache // node. ReadEndpoint *Endpoint `type:"structure"` + + metadataNodeGroupMember `json:"-" xml:"-"` +} + +type metadataNodeGroupMember struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4874,8 +4404,6 @@ func (s NodeGroupMember) GoString() string { // Represents an individual cache node in a snapshot of a cache cluster. type NodeSnapshot struct { - _ struct{} `type:"structure"` - // The date and time when the cache node was created in the source cache cluster. CacheNodeCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -4888,6 +4416,12 @@ type NodeSnapshot struct { // The date and time when the source node's metadata and cache data set was // obtained for the snapshot. SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataNodeSnapshot `json:"-" xml:"-"` +} + +type metadataNodeSnapshot struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4904,13 +4438,17 @@ func (s NodeSnapshot) GoString() string { // for publishing ElastiCache 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"` + + metadataNotificationConfiguration `json:"-" xml:"-"` +} + +type metadataNotificationConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4926,17 +4464,9 @@ func (s NotificationConfiguration) GoString() string { // Describes an individual setting that controls some aspect of ElastiCache // behavior. type Parameter struct { - _ struct{} `type:"structure"` - // The valid range of values for the parameter. AllowedValues *string `type:"string"` - // ChangeType indicates whether a change to the parameter will be applied immediately - // or requires a reboot for the change to be applied. You can force a reboot - // or wait until the next maintenance window's reboot. For more information, - // see Rebooting a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Clusters.Rebooting.html). - ChangeType *string `type:"string" enum:"ChangeType"` - // The valid data type for the parameter. DataType *string `type:"string"` @@ -4959,6 +4489,12 @@ type Parameter struct { // The source of the parameter. Source *string `type:"string"` + + metadataParameter `json:"-" xml:"-"` +} + +type metadataParameter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4973,13 +4509,17 @@ func (s Parameter) GoString() string { // Describes a name-value pair that is used to update the value of a parameter. type ParameterNameValue struct { - _ struct{} `type:"structure"` - // The name of the parameter. ParameterName *string `type:"string"` // The value of the parameter. ParameterValue *string `type:"string"` + + metadataParameterNameValue `json:"-" xml:"-"` +} + +type metadataParameterNameValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4995,16 +4535,10 @@ func (s ParameterNameValue) GoString() string { // A group of settings that will be applied to the cache cluster in the future, // or that are currently being applied. type PendingModifiedValues struct { - _ struct{} `type:"structure"` - // A list of cache node IDs that are being removed (or will be removed) from // the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.). CacheNodeIdsToRemove []*string `locationNameList:"CacheNodeId" type:"list"` - // The cache node type that this cache cluster or replication group will be - // scaled to. - CacheNodeType *string `type:"string"` - // The new cache engine version that the cache cluster will run. EngineVersion *string `type:"string"` @@ -5013,6 +4547,12 @@ type PendingModifiedValues struct { // For clusters running Redis, this value must be 1. For clusters running Memcached, // this value must be between 1 and 20. NumCacheNodes *int64 `type:"integer"` + + metadataPendingModifiedValues `json:"-" xml:"-"` +} + +type metadataPendingModifiedValues struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5027,8 +4567,6 @@ func (s PendingModifiedValues) GoString() string { // Represents the input of a PurchaseReservedCacheNodesOffering action. type PurchaseReservedCacheNodesOfferingInput struct { - _ struct{} `type:"structure"` - // The number of cache node instances to reserve. // // Default: 1 @@ -5036,17 +4574,19 @@ type PurchaseReservedCacheNodesOfferingInput struct { // A customer-specified identifier to track this reservation. // - // The Reserved Cache Node ID is an unique customer-specified identifier to - // track this reservation. If this parameter is not specified, ElastiCache automatically - // generates an identifier for the reservation. - // - // Example: myreservationID + // Example: myreservationID ReservedCacheNodeId *string `type:"string"` // The ID of the reserved cache node offering to purchase. // // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706 ReservedCacheNodesOfferingId *string `type:"string" required:"true"` + + metadataPurchaseReservedCacheNodesOfferingInput `json:"-" xml:"-"` +} + +type metadataPurchaseReservedCacheNodesOfferingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5059,24 +4599,15 @@ func (s PurchaseReservedCacheNodesOfferingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PurchaseReservedCacheNodesOfferingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedCacheNodesOfferingInput"} - if s.ReservedCacheNodesOfferingId == nil { - invalidParams.Add(request.NewErrParamRequired("ReservedCacheNodesOfferingId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PurchaseReservedCacheNodesOfferingOutput struct { - _ struct{} `type:"structure"` - // Represents the output of a PurchaseReservedCacheNodesOffering action. ReservedCacheNode *ReservedCacheNode `type:"structure"` + + metadataPurchaseReservedCacheNodesOfferingOutput `json:"-" xml:"-"` +} + +type metadataPurchaseReservedCacheNodesOfferingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5091,8 +4622,6 @@ func (s PurchaseReservedCacheNodesOfferingOutput) GoString() string { // Represents the input of a RebootCacheCluster action. type RebootCacheClusterInput struct { - _ struct{} `type:"structure"` - // The cache cluster identifier. This parameter is stored as a lowercase string. CacheClusterId *string `type:"string" required:"true"` @@ -5100,6 +4629,12 @@ type RebootCacheClusterInput struct { // 0002, etc.). To reboot an entire cache cluster, specify all of the cache // node IDs. CacheNodeIdsToReboot []*string `locationNameList:"CacheNodeId" type:"list" required:"true"` + + metadataRebootCacheClusterInput `json:"-" xml:"-"` +} + +type metadataRebootCacheClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5112,27 +4647,15 @@ func (s RebootCacheClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RebootCacheClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RebootCacheClusterInput"} - if s.CacheClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("CacheClusterId")) - } - if s.CacheNodeIdsToReboot == nil { - invalidParams.Add(request.NewErrParamRequired("CacheNodeIdsToReboot")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RebootCacheClusterOutput struct { - _ struct{} `type:"structure"` - // Contains all of the attributes of a specific cache cluster. CacheCluster *CacheCluster `type:"structure"` + + metadataRebootCacheClusterOutput `json:"-" xml:"-"` +} + +type metadataRebootCacheClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5148,13 +4671,17 @@ func (s RebootCacheClusterOutput) GoString() string { // Contains the specific price and frequency of a recurring charges for a reserved // cache node, or for a reserved cache node offering. type RecurringCharge struct { - _ struct{} `type:"structure"` - // The monetary amount of the recurring charge. RecurringChargeAmount *float64 `type:"double"` // The frequency of the recurring charge. RecurringChargeFrequency *string `type:"string"` + + metadataRecurringCharge `json:"-" xml:"-"` +} + +type metadataRecurringCharge struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5169,20 +4696,20 @@ func (s RecurringCharge) GoString() string { // Represents the input of a RemoveTagsFromResource action. type RemoveTagsFromResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource from which you want the tags - // removed, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster - // or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. - // - // For more information on ARNs, go to Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + // The name of the ElastiCache resource from which you want the listed tags + // removed, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster. ResourceName *string `type:"string" required:"true"` // A list of TagKeys identifying the tags you want removed from the named resource. // For example, TagKeys.member.1=Region removes the cost allocation tag with // the key name Region from the resource named by the ResourceName parameter. TagKeys []*string `type:"list" required:"true"` + + metadataRemoveTagsFromResourceInput `json:"-" xml:"-"` +} + +type metadataRemoveTagsFromResourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5195,33 +4722,13 @@ func (s RemoveTagsFromResourceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsFromResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains all of the attributes of a specific replication group. type ReplicationGroup struct { - _ struct{} `type:"structure"` - // Indicates the status of Multi-AZ for this replication group. // - // ElastiCache Multi-AZ replication groups are not supported on: - // - // Redis versions earlier than 2.8.6. + // ElastiCache Multi-AZ replication groups are not supported on: // - // T1 and T2 cache node types. + // Redis versions earlier than 2.8.6. T1 and T2 cache node types. AutomaticFailover *string `type:"string" enum:"AutomaticFailoverStatus"` // The description of the replication group. @@ -5247,6 +4754,12 @@ type ReplicationGroup struct { // The current state of this replication group - creating, available, etc. Status *string `type:"string"` + + metadataReplicationGroup `json:"-" xml:"-"` +} + +type metadataReplicationGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5262,20 +4775,22 @@ func (s ReplicationGroup) GoString() string { // The settings to be applied to the replication group, either immediately or // during the next maintenance window. type ReplicationGroupPendingModifiedValues struct { - _ struct{} `type:"structure"` - // Indicates the status of Multi-AZ for this replication group. // - // ElastiCache Multi-AZ replication groups are not supported on: - // - // Redis versions earlier than 2.8.6. + // ElastiCache Multi-AZ replication groups are not supported on: // - // T1 and T2 cache node types. + // Redis versions earlier than 2.8.6. T1 and T2 cache node types. AutomaticFailoverStatus *string `type:"string" enum:"PendingAutomaticFailoverStatus"` // The primary cluster ID which will be applied immediately (if --apply-immediately // was specified), or during the next maintenance window. PrimaryClusterId *string `type:"string"` + + metadataReplicationGroupPendingModifiedValues `json:"-" xml:"-"` +} + +type metadataReplicationGroupPendingModifiedValues struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5290,8 +4805,6 @@ func (s ReplicationGroupPendingModifiedValues) GoString() string { // Represents the output of a PurchaseReservedCacheNodesOffering action. type ReservedCacheNode struct { - _ struct{} `type:"structure"` - // The number of cache nodes that have been reserved. CacheNodeCount *int64 `type:"integer"` @@ -5299,34 +4812,19 @@ type ReservedCacheNode struct { // // Valid node types are as follows: // - // General purpose: - // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge - // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge - // - // Compute optimized: cache.c1.xlarge - // - // Memory optimized: - // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge - // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge - // - // Notes: - // - // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). - // - // Redis backup/restore is not supported for t2 instances. - // - // Redis Append-only files (AOF) functionality is not supported for t1 or - // t2 instances. - // - // For a complete listing of cache node types and specifications, see Amazon - // ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // General purpose: Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, + // cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge Previous + // generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge Compute optimized: cache.c1.xlarge Memory optimized Current + // generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge Previous generation: cache.m2.xlarge, cache.m2.2xlarge, + // cache.m2.4xlarge Notes: + // + // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). + // Redis backup/restore is not supported for t2 instances. Redis Append-only + // files (AOF) functionality is not supported for t1 or t2 instances. For a + // complete listing of cache node types and specifications, see Amazon ElastiCache + // Product Features and Details (http://aws.amazon.com/elasticache/details) // and Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#CacheParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#CacheParameterGroups.Redis.NodeSpecific). CacheNodeType *string `type:"string"` @@ -5360,6 +4858,12 @@ type ReservedCacheNode struct { // The hourly price charged for this reserved cache node. UsagePrice *float64 `type:"double"` + + metadataReservedCacheNode `json:"-" xml:"-"` +} + +type metadataReservedCacheNode struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5374,40 +4878,23 @@ func (s ReservedCacheNode) GoString() string { // Describes all of the attributes of a reserved cache node offering. type ReservedCacheNodesOffering struct { - _ struct{} `type:"structure"` - // The cache node type for the reserved cache node. // // Valid node types are as follows: // - // General purpose: - // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge - // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge - // - // Compute optimized: cache.c1.xlarge - // - // Memory optimized: - // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge - // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge - // - // Notes: - // - // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). - // - // Redis backup/restore is not supported for t2 instances. - // - // Redis Append-only files (AOF) functionality is not supported for t1 or - // t2 instances. - // - // For a complete listing of cache node types and specifications, see Amazon - // ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // General purpose: Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, + // cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge Previous + // generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge Compute optimized: cache.c1.xlarge Memory optimized Current + // generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge Previous generation: cache.m2.xlarge, cache.m2.2xlarge, + // cache.m2.4xlarge Notes: + // + // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). + // Redis backup/restore is not supported for t2 instances. Redis Append-only + // files (AOF) functionality is not supported for t1 or t2 instances. For a + // complete listing of cache node types and specifications, see Amazon ElastiCache + // Product Features and Details (http://aws.amazon.com/elasticache/details) // and Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#CacheParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#CacheParameterGroups.Redis.NodeSpecific). CacheNodeType *string `type:"string"` @@ -5432,6 +4919,12 @@ type ReservedCacheNodesOffering struct { // The hourly price charged for this offering. UsagePrice *float64 `type:"double"` + + metadataReservedCacheNodesOffering `json:"-" xml:"-"` +} + +type metadataReservedCacheNodesOffering struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5446,21 +4939,24 @@ func (s ReservedCacheNodesOffering) GoString() string { // Represents the input of a ResetCacheParameterGroup action. type ResetCacheParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the cache parameter group to reset. CacheParameterGroupName *string `type:"string" required:"true"` - // An array of parameter names to reset to their default values. If ResetAllParameters - // is false, you must specify the name of at least one parameter to reset. - ParameterNameValues []*ParameterNameValue `locationNameList:"ParameterNameValue" type:"list"` + // An array of parameter names to be reset. If you are not resetting the entire + // cache parameter group, you must specify at least one parameter name. + ParameterNameValues []*ParameterNameValue `locationNameList:"ParameterNameValue" type:"list" required:"true"` - // If true, all parameters in the cache parameter group will be reset to their - // default values. If false, only the parameters listed by ParameterNameValues - // are reset to their default values. + // If true, all parameters in the cache parameter group will be reset to default + // values. If false, no such action occurs. // // Valid values: true | false ResetAllParameters *bool `type:"boolean"` + + metadataResetCacheParameterGroupInput `json:"-" xml:"-"` +} + +type metadataResetCacheParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5473,23 +4969,8 @@ func (s ResetCacheParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResetCacheParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetCacheParameterGroupInput"} - if s.CacheParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the input of a RevokeCacheSecurityGroupIngress action. type RevokeCacheSecurityGroupIngressInput struct { - _ struct{} `type:"structure"` - // The name of the cache security group to revoke ingress from. CacheSecurityGroupName *string `type:"string" required:"true"` @@ -5500,6 +4981,12 @@ type RevokeCacheSecurityGroupIngressInput struct { // this is not the same thing as an AWS access key ID - you must provide a valid // AWS account number for this parameter. EC2SecurityGroupOwnerId *string `type:"string" required:"true"` + + metadataRevokeCacheSecurityGroupIngressInput `json:"-" xml:"-"` +} + +type metadataRevokeCacheSecurityGroupIngressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5512,36 +4999,17 @@ func (s RevokeCacheSecurityGroupIngressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RevokeCacheSecurityGroupIngressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RevokeCacheSecurityGroupIngressInput"} - if s.CacheSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("CacheSecurityGroupName")) - } - if s.EC2SecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("EC2SecurityGroupName")) - } - if s.EC2SecurityGroupOwnerId == nil { - invalidParams.Add(request.NewErrParamRequired("EC2SecurityGroupOwnerId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RevokeCacheSecurityGroupIngressOutput struct { - _ struct{} `type:"structure"` - // Represents the output of one of the following actions: // - // AuthorizeCacheSecurityGroupIngress - // - // CreateCacheSecurityGroup - // - // RevokeCacheSecurityGroupIngress + // AuthorizeCacheSecurityGroupIngress CreateCacheSecurityGroup RevokeCacheSecurityGroupIngress CacheSecurityGroup *CacheSecurityGroup `type:"structure"` + + metadataRevokeCacheSecurityGroupIngressOutput `json:"-" xml:"-"` +} + +type metadataRevokeCacheSecurityGroupIngressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5556,8 +5024,6 @@ func (s RevokeCacheSecurityGroupIngressOutput) GoString() string { // Represents a single cache security group and its status. type SecurityGroupMembership struct { - _ struct{} `type:"structure"` - // The identifier of the cache security group. SecurityGroupId *string `type:"string"` @@ -5565,6 +5031,12 @@ type SecurityGroupMembership struct { // a cache security group is modified, or when the cache security groups assigned // to a cache cluster are modified. Status *string `type:"string"` + + metadataSecurityGroupMembership `json:"-" xml:"-"` +} + +type metadataSecurityGroupMembership struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5580,8 +5052,6 @@ func (s SecurityGroupMembership) GoString() string { // Represents a copy of an entire cache cluster as of the time when the snapshot // was taken. type Snapshot struct { - _ struct{} `type:"structure"` - // This parameter is currently disabled. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -5596,34 +5066,19 @@ type Snapshot struct { // // Valid node types are as follows: // - // General purpose: - // - // Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, - // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge - // - // Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, - // cache.m1.large, cache.m1.xlarge - // - // Compute optimized: cache.c1.xlarge - // - // Memory optimized: - // - // Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, - // cache.r3.4xlarge, cache.r3.8xlarge - // - // Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge - // - // Notes: - // - // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). - // - // Redis backup/restore is not supported for t2 instances. - // - // Redis Append-only files (AOF) functionality is not supported for t1 or - // t2 instances. - // - // For a complete listing of cache node types and specifications, see Amazon - // ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // General purpose: Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, + // cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge Previous + // generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, + // cache.m1.xlarge Compute optimized: cache.c1.xlarge Memory optimized Current + // generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, + // cache.r3.8xlarge Previous generation: cache.m2.xlarge, cache.m2.2xlarge, + // cache.m2.4xlarge Notes: + // + // All t2 instances are created in an Amazon Virtual Private Cloud (VPC). + // Redis backup/restore is not supported for t2 instances. Redis Append-only + // files (AOF) functionality is not supported for t1 or t2 instances. For a + // complete listing of cache node types and specifications, see Amazon ElastiCache + // Product Features and Details (http://aws.amazon.com/elasticache/details) // and Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html#CacheParameterGroups.Memcached.NodeSpecific) // or Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Redis.html#CacheParameterGroups.Redis.NodeSpecific). CacheNodeType *string `type:"string"` @@ -5662,21 +5117,7 @@ type Snapshot struct { // (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid // values for ddd are: // - // sun - // - // mon - // - // tue - // - // wed - // - // thu - // - // fri - // - // sat - // - // Example: sun:05:00-sun:09:00 + // sun mon tue wed thu fri sat Example: sun:05:00-sun:09:00 PreferredMaintenanceWindow *string `type:"string"` // The name of a snapshot. For an automatic snapshot, the name is system-generated; @@ -5691,7 +5132,7 @@ type Snapshot struct { // ignored: Manual snapshots do not expire, and can only be deleted using the // DeleteSnapshot action. // - // Important If the value of SnapshotRetentionLimit is set to zero (0), backups + // ImportantIf the value of SnapshotRetentionLimit is set to zero (0), backups // are turned off. SnapshotRetentionLimit *int64 `type:"integer"` @@ -5714,6 +5155,12 @@ type Snapshot struct { // The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet // group for the source cache cluster. VpcId *string `type:"string"` + + metadataSnapshot `json:"-" xml:"-"` +} + +type metadataSnapshot struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5730,13 +5177,17 @@ func (s Snapshot) GoString() string { // to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used // with ElastiCache. type Subnet struct { - _ struct{} `type:"structure"` - // The Availability Zone associated with the subnet. SubnetAvailabilityZone *AvailabilityZone `type:"structure"` // The unique identifier for the subnet. SubnetIdentifier *string `type:"string"` + + metadataSubnet `json:"-" xml:"-"` +} + +type metadataSubnet struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5753,13 +5204,17 @@ func (s Subnet) GoString() string { // group. Tags are composed of a Key/Value pair. A tag with a null Value is // permitted. type Tag struct { - _ struct{} `type:"structure"` - // The key for the tag. Key *string `type:"string"` // The tag's value. May not be null. Value *string `type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5775,10 +5230,14 @@ func (s Tag) GoString() string { // Represents the output from the AddTagsToResource, ListTagsOnResource, and // RemoveTagsFromResource actions. type TagListMessage struct { - _ struct{} `type:"structure"` - // A list of cost allocation tags as key-value pairs. TagList []*Tag `locationNameList:"Tag" type:"list"` + + metadataTagListMessage `json:"-" xml:"-"` +} + +type metadataTagListMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5809,13 +5268,6 @@ const ( AutomaticFailoverStatusDisabling = "disabling" ) -const ( - // @enum ChangeType - ChangeTypeImmediate = "immediate" - // @enum ChangeType - ChangeTypeRequiresReboot = "requires-reboot" -) - const ( // @enum PendingAutomaticFailoverStatus PendingAutomaticFailoverStatusEnabled = "enabled" diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go index 67b4a93fe..fc86b6531 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface.go @@ -142,10 +142,6 @@ type ElastiCacheAPI interface { DescribeSnapshotsPages(*elasticache.DescribeSnapshotsInput, func(*elasticache.DescribeSnapshotsOutput, bool) bool) error - ListAllowedNodeTypeModificationsRequest(*elasticache.ListAllowedNodeTypeModificationsInput) (*request.Request, *elasticache.ListAllowedNodeTypeModificationsOutput) - - ListAllowedNodeTypeModifications(*elasticache.ListAllowedNodeTypeModificationsInput) (*elasticache.ListAllowedNodeTypeModificationsOutput, error) - ListTagsForResourceRequest(*elasticache.ListTagsForResourceInput) (*request.Request, *elasticache.TagListMessage) ListTagsForResource(*elasticache.ListTagsForResourceInput) (*elasticache.TagListMessage, error) @@ -186,5 +182,3 @@ type ElastiCacheAPI interface { RevokeCacheSecurityGroupIngress(*elasticache.RevokeCacheSecurityGroupIngressInput) (*elasticache.RevokeCacheSecurityGroupIngressOutput, error) } - -var _ ElastiCacheAPI = (*elasticache.ElastiCache)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface_test.go new file mode 100644 index 000000000..125b517f5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elasticacheiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*elasticacheiface.ElastiCacheAPI)(nil), elasticache.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go index 3f5bd7a44..4b18af4a7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elasticache" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElastiCache_AddTagsToResource() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.AddTagsToResourceInput{ ResourceName: aws.String("String"), // Required @@ -42,7 +41,7 @@ func ExampleElastiCache_AddTagsToResource() { } func ExampleElastiCache_AuthorizeCacheSecurityGroupIngress() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.AuthorizeCacheSecurityGroupIngressInput{ CacheSecurityGroupName: aws.String("String"), // Required @@ -63,12 +62,11 @@ func ExampleElastiCache_AuthorizeCacheSecurityGroupIngress() { } func ExampleElastiCache_CopySnapshot() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.CopySnapshotInput{ SourceSnapshotName: aws.String("String"), // Required TargetSnapshotName: aws.String("String"), // Required - TargetBucket: aws.String("String"), } resp, err := svc.CopySnapshot(params) @@ -84,7 +82,7 @@ func ExampleElastiCache_CopySnapshot() { } func ExampleElastiCache_CreateCacheCluster() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.CreateCacheClusterInput{ CacheClusterId: aws.String("String"), // Required @@ -142,7 +140,7 @@ func ExampleElastiCache_CreateCacheCluster() { } func ExampleElastiCache_CreateCacheParameterGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.CreateCacheParameterGroupInput{ CacheParameterGroupFamily: aws.String("String"), // Required @@ -163,7 +161,7 @@ func ExampleElastiCache_CreateCacheParameterGroup() { } func ExampleElastiCache_CreateCacheSecurityGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.CreateCacheSecurityGroupInput{ CacheSecurityGroupName: aws.String("String"), // Required @@ -183,7 +181,7 @@ func ExampleElastiCache_CreateCacheSecurityGroup() { } func ExampleElastiCache_CreateCacheSubnetGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.CreateCacheSubnetGroupInput{ CacheSubnetGroupDescription: aws.String("String"), // Required @@ -207,7 +205,7 @@ func ExampleElastiCache_CreateCacheSubnetGroup() { } func ExampleElastiCache_CreateReplicationGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.CreateReplicationGroupInput{ ReplicationGroupDescription: aws.String("String"), // Required @@ -265,7 +263,7 @@ func ExampleElastiCache_CreateReplicationGroup() { } func ExampleElastiCache_CreateSnapshot() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.CreateSnapshotInput{ CacheClusterId: aws.String("String"), // Required @@ -285,7 +283,7 @@ func ExampleElastiCache_CreateSnapshot() { } func ExampleElastiCache_DeleteCacheCluster() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DeleteCacheClusterInput{ CacheClusterId: aws.String("String"), // Required @@ -305,7 +303,7 @@ func ExampleElastiCache_DeleteCacheCluster() { } func ExampleElastiCache_DeleteCacheParameterGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DeleteCacheParameterGroupInput{ CacheParameterGroupName: aws.String("String"), // Required @@ -324,7 +322,7 @@ func ExampleElastiCache_DeleteCacheParameterGroup() { } func ExampleElastiCache_DeleteCacheSecurityGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DeleteCacheSecurityGroupInput{ CacheSecurityGroupName: aws.String("String"), // Required @@ -343,7 +341,7 @@ func ExampleElastiCache_DeleteCacheSecurityGroup() { } func ExampleElastiCache_DeleteCacheSubnetGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DeleteCacheSubnetGroupInput{ CacheSubnetGroupName: aws.String("String"), // Required @@ -362,7 +360,7 @@ func ExampleElastiCache_DeleteCacheSubnetGroup() { } func ExampleElastiCache_DeleteReplicationGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DeleteReplicationGroupInput{ ReplicationGroupId: aws.String("String"), // Required @@ -383,7 +381,7 @@ func ExampleElastiCache_DeleteReplicationGroup() { } func ExampleElastiCache_DeleteSnapshot() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DeleteSnapshotInput{ SnapshotName: aws.String("String"), // Required @@ -402,7 +400,7 @@ func ExampleElastiCache_DeleteSnapshot() { } func ExampleElastiCache_DescribeCacheClusters() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeCacheClustersInput{ CacheClusterId: aws.String("String"), @@ -424,7 +422,7 @@ func ExampleElastiCache_DescribeCacheClusters() { } func ExampleElastiCache_DescribeCacheEngineVersions() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeCacheEngineVersionsInput{ CacheParameterGroupFamily: aws.String("String"), @@ -448,7 +446,7 @@ func ExampleElastiCache_DescribeCacheEngineVersions() { } func ExampleElastiCache_DescribeCacheParameterGroups() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeCacheParameterGroupsInput{ CacheParameterGroupName: aws.String("String"), @@ -469,7 +467,7 @@ func ExampleElastiCache_DescribeCacheParameterGroups() { } func ExampleElastiCache_DescribeCacheParameters() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeCacheParametersInput{ CacheParameterGroupName: aws.String("String"), // Required @@ -491,7 +489,7 @@ func ExampleElastiCache_DescribeCacheParameters() { } func ExampleElastiCache_DescribeCacheSecurityGroups() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeCacheSecurityGroupsInput{ CacheSecurityGroupName: aws.String("String"), @@ -512,7 +510,7 @@ func ExampleElastiCache_DescribeCacheSecurityGroups() { } func ExampleElastiCache_DescribeCacheSubnetGroups() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeCacheSubnetGroupsInput{ CacheSubnetGroupName: aws.String("String"), @@ -533,7 +531,7 @@ func ExampleElastiCache_DescribeCacheSubnetGroups() { } func ExampleElastiCache_DescribeEngineDefaultParameters() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeEngineDefaultParametersInput{ CacheParameterGroupFamily: aws.String("String"), // Required @@ -554,7 +552,7 @@ func ExampleElastiCache_DescribeEngineDefaultParameters() { } func ExampleElastiCache_DescribeEvents() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeEventsInput{ Duration: aws.Int64(1), @@ -579,7 +577,7 @@ func ExampleElastiCache_DescribeEvents() { } func ExampleElastiCache_DescribeReplicationGroups() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeReplicationGroupsInput{ Marker: aws.String("String"), @@ -600,7 +598,7 @@ func ExampleElastiCache_DescribeReplicationGroups() { } func ExampleElastiCache_DescribeReservedCacheNodes() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeReservedCacheNodesInput{ CacheNodeType: aws.String("String"), @@ -626,7 +624,7 @@ func ExampleElastiCache_DescribeReservedCacheNodes() { } func ExampleElastiCache_DescribeReservedCacheNodesOfferings() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeReservedCacheNodesOfferingsInput{ CacheNodeType: aws.String("String"), @@ -651,7 +649,7 @@ func ExampleElastiCache_DescribeReservedCacheNodesOfferings() { } func ExampleElastiCache_DescribeSnapshots() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.DescribeSnapshotsInput{ CacheClusterId: aws.String("String"), @@ -673,28 +671,8 @@ func ExampleElastiCache_DescribeSnapshots() { fmt.Println(resp) } -func ExampleElastiCache_ListAllowedNodeTypeModifications() { - svc := elasticache.New(session.New()) - - params := &elasticache.ListAllowedNodeTypeModificationsInput{ - CacheClusterId: aws.String("String"), - ReplicationGroupId: aws.String("String"), - } - resp, err := svc.ListAllowedNodeTypeModifications(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleElastiCache_ListTagsForResource() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.ListTagsForResourceInput{ ResourceName: aws.String("String"), // Required @@ -713,7 +691,7 @@ func ExampleElastiCache_ListTagsForResource() { } func ExampleElastiCache_ModifyCacheCluster() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.ModifyCacheClusterInput{ CacheClusterId: aws.String("String"), // Required @@ -724,7 +702,6 @@ func ExampleElastiCache_ModifyCacheCluster() { aws.String("String"), // Required // More values... }, - CacheNodeType: aws.String("String"), CacheParameterGroupName: aws.String("String"), CacheSecurityGroupNames: []*string{ aws.String("String"), // Required @@ -760,7 +737,7 @@ func ExampleElastiCache_ModifyCacheCluster() { } func ExampleElastiCache_ModifyCacheParameterGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.ModifyCacheParameterGroupInput{ CacheParameterGroupName: aws.String("String"), // Required @@ -786,7 +763,7 @@ func ExampleElastiCache_ModifyCacheParameterGroup() { } func ExampleElastiCache_ModifyCacheSubnetGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.ModifyCacheSubnetGroupInput{ CacheSubnetGroupName: aws.String("String"), // Required @@ -810,14 +787,13 @@ func ExampleElastiCache_ModifyCacheSubnetGroup() { } func ExampleElastiCache_ModifyReplicationGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.ModifyReplicationGroupInput{ ReplicationGroupId: aws.String("String"), // Required ApplyImmediately: aws.Bool(true), AutoMinorVersionUpgrade: aws.Bool(true), AutomaticFailoverEnabled: aws.Bool(true), - CacheNodeType: aws.String("String"), CacheParameterGroupName: aws.String("String"), CacheSecurityGroupNames: []*string{ aws.String("String"), // Required @@ -851,7 +827,7 @@ func ExampleElastiCache_ModifyReplicationGroup() { } func ExampleElastiCache_PurchaseReservedCacheNodesOffering() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.PurchaseReservedCacheNodesOfferingInput{ ReservedCacheNodesOfferingId: aws.String("String"), // Required @@ -872,7 +848,7 @@ func ExampleElastiCache_PurchaseReservedCacheNodesOffering() { } func ExampleElastiCache_RebootCacheCluster() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.RebootCacheClusterInput{ CacheClusterId: aws.String("String"), // Required @@ -895,7 +871,7 @@ func ExampleElastiCache_RebootCacheCluster() { } func ExampleElastiCache_RemoveTagsFromResource() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.RemoveTagsFromResourceInput{ ResourceName: aws.String("String"), // Required @@ -918,11 +894,11 @@ func ExampleElastiCache_RemoveTagsFromResource() { } func ExampleElastiCache_ResetCacheParameterGroup() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.ResetCacheParameterGroupInput{ CacheParameterGroupName: aws.String("String"), // Required - ParameterNameValues: []*elasticache.ParameterNameValue{ + ParameterNameValues: []*elasticache.ParameterNameValue{ // Required { // Required ParameterName: aws.String("String"), ParameterValue: aws.String("String"), @@ -945,7 +921,7 @@ func ExampleElastiCache_ResetCacheParameterGroup() { } func ExampleElastiCache_RevokeCacheSecurityGroupIngress() { - svc := elasticache.New(session.New()) + svc := elasticache.New(nil) params := &elasticache.RevokeCacheSecurityGroupIngressInput{ CacheSecurityGroupName: aws.String("String"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/service.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/service.go index 8e4cbb460..3af7043a5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/service.go @@ -4,11 +4,12 @@ package elasticache import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Amazon ElastiCache is a web service that makes it easier to set up, operate, @@ -22,64 +23,40 @@ import ( // In addition, through integration with Amazon CloudWatch, customers get enhanced // visibility into the key performance statistics associated with their cache // and can receive alarms if a part of their cache runs hot. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type ElastiCache struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticache" - -// New creates a new instance of the ElastiCache client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ElastiCache client from just a session. -// svc := elasticache.New(mySession) -// -// // Create a ElastiCache client with additional configuration -// svc := elasticache.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElastiCache { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ElastiCache { - svc := &ElastiCache{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-02-02", - }, - handlers, - ), +// New returns a new ElastiCache client. +func New(config *aws.Config) *ElastiCache { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "elasticache", + APIVersion: "2015-02-02", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &ElastiCache{service} } // newRequest creates a new request for a ElastiCache operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/waiters.go deleted file mode 100644 index 0f594a65f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/waiters.go +++ /dev/null @@ -1,183 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package elasticache - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *ElastiCache) WaitUntilCacheClusterAvailable(input *DescribeCacheClustersInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeCacheClusters", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "deleted", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "deleting", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "incompatible-network", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "restore-failed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *ElastiCache) WaitUntilCacheClusterDeleted(input *DescribeCacheClustersInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeCacheClusters", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "deleted", - }, - { - State: "success", - Matcher: "error", - Argument: "", - Expected: "CacheClusterNotFound", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "creating", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "incompatible-network", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "modifying", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "restore-failed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "CacheClusters[].CacheClusterStatus", - Expected: "snapshotting", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *ElastiCache) WaitUntilReplicationGroupAvailable(input *DescribeReplicationGroupsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeReplicationGroups", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "ReplicationGroups[].Status", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "ReplicationGroups[].Status", - Expected: "deleted", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *ElastiCache) WaitUntilReplicationGroupDeleted(input *DescribeReplicationGroupsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeReplicationGroups", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "ReplicationGroups[].Status", - Expected: "deleted", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "ReplicationGroups[].Status", - Expected: "available", - }, - { - State: "success", - Matcher: "error", - Argument: "", - Expected: "ReplicationGroupNotFoundFault", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go index 760a82b49..f284758db 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go @@ -4,13 +4,10 @@ package elasticbeanstalk import ( - "fmt" "time" "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/private/protocol/query" ) const opAbortEnvironmentUpdate = "AbortEnvironmentUpdate" @@ -28,8 +25,6 @@ func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironment } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AbortEnvironmentUpdateOutput{} req.Data = output return @@ -43,35 +38,6 @@ func (c *ElasticBeanstalk) AbortEnvironmentUpdate(input *AbortEnvironmentUpdateI return out, err } -const opApplyEnvironmentManagedAction = "ApplyEnvironmentManagedAction" - -// ApplyEnvironmentManagedActionRequest generates a request for the ApplyEnvironmentManagedAction operation. -func (c *ElasticBeanstalk) ApplyEnvironmentManagedActionRequest(input *ApplyEnvironmentManagedActionInput) (req *request.Request, output *ApplyEnvironmentManagedActionOutput) { - op := &request.Operation{ - Name: opApplyEnvironmentManagedAction, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ApplyEnvironmentManagedActionInput{} - } - - req = c.newRequest(op, input, output) - output = &ApplyEnvironmentManagedActionOutput{} - req.Data = output - return -} - -// Applies a scheduled managed action immediately. A managed action can be applied -// only if its status is Scheduled. Get the status and action ID of a managed -// action with DescribeEnvironmentManagedActions. -func (c *ElasticBeanstalk) ApplyEnvironmentManagedAction(input *ApplyEnvironmentManagedActionInput) (*ApplyEnvironmentManagedActionOutput, error) { - req, out := c.ApplyEnvironmentManagedActionRequest(input) - err := req.Send() - return out, err -} - const opCheckDNSAvailability = "CheckDNSAvailability" // CheckDNSAvailabilityRequest generates a request for the CheckDNSAvailability operation. @@ -99,39 +65,6 @@ func (c *ElasticBeanstalk) CheckDNSAvailability(input *CheckDNSAvailabilityInput return out, err } -const opComposeEnvironments = "ComposeEnvironments" - -// ComposeEnvironmentsRequest generates a request for the ComposeEnvironments operation. -func (c *ElasticBeanstalk) ComposeEnvironmentsRequest(input *ComposeEnvironmentsInput) (req *request.Request, output *EnvironmentDescriptionsMessage) { - op := &request.Operation{ - Name: opComposeEnvironments, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ComposeEnvironmentsInput{} - } - - req = c.newRequest(op, input, output) - output = &EnvironmentDescriptionsMessage{} - req.Data = output - return -} - -// Create or update a group of environments that each run a separate component -// of a single application. Takes a list of version labels that specify application -// source bundles for each of the environments to create or update. The name -// of each environment and other required information must be included in the -// source bundles in an environment manifest named env.yaml. See Compose Environments -// (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-mgmt-compose.html) -// for details. -func (c *ElasticBeanstalk) ComposeEnvironments(input *ComposeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) { - req, out := c.ComposeEnvironmentsRequest(input) - err := req.Send() - return out, err -} - const opCreateApplication = "CreateApplication" // CreateApplicationRequest generates a request for the CreateApplication operation. @@ -297,8 +230,6 @@ func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInpu } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteApplicationOutput{} req.Data = output return @@ -330,8 +261,6 @@ func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicat } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteApplicationVersionOutput{} req.Data = output return @@ -362,8 +291,6 @@ func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfi } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteConfigurationTemplateOutput{} req.Data = output return @@ -395,8 +322,6 @@ func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEn } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteEnvironmentConfigurationOutput{} req.Data = output return @@ -404,7 +329,7 @@ func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEn // Deletes the draft configuration associated with the running environment. // -// Updating a running environment with any configuration changes creates a +// Updating a running environment with any configuration changes creates a // draft configuration set. You can get the draft configuration using DescribeConfigurationSettings // while the update is in progress or if the update fails. The DeploymentStatus // for the draft configuration indicates whether the deployment is in process @@ -436,8 +361,7 @@ func (c *ElasticBeanstalk) DescribeApplicationVersionsRequest(input *DescribeApp return } -// Retrieve a list of application versions stored in your AWS Elastic Beanstalk -// storage bucket. +// Returns descriptions for existing application versions. func (c *ElasticBeanstalk) DescribeApplicationVersions(input *DescribeApplicationVersionsInput) (*DescribeApplicationVersionsOutput, error) { req, out := c.DescribeApplicationVersionsRequest(input) err := req.Send() @@ -570,60 +494,6 @@ func (c *ElasticBeanstalk) DescribeEnvironmentHealth(input *DescribeEnvironmentH return out, err } -const opDescribeEnvironmentManagedActionHistory = "DescribeEnvironmentManagedActionHistory" - -// DescribeEnvironmentManagedActionHistoryRequest generates a request for the DescribeEnvironmentManagedActionHistory operation. -func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistoryRequest(input *DescribeEnvironmentManagedActionHistoryInput) (req *request.Request, output *DescribeEnvironmentManagedActionHistoryOutput) { - op := &request.Operation{ - Name: opDescribeEnvironmentManagedActionHistory, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeEnvironmentManagedActionHistoryInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeEnvironmentManagedActionHistoryOutput{} - req.Data = output - return -} - -// Lists an environment's completed and failed managed actions. -func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistory(input *DescribeEnvironmentManagedActionHistoryInput) (*DescribeEnvironmentManagedActionHistoryOutput, error) { - req, out := c.DescribeEnvironmentManagedActionHistoryRequest(input) - err := req.Send() - return out, err -} - -const opDescribeEnvironmentManagedActions = "DescribeEnvironmentManagedActions" - -// DescribeEnvironmentManagedActionsRequest generates a request for the DescribeEnvironmentManagedActions operation. -func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionsRequest(input *DescribeEnvironmentManagedActionsInput) (req *request.Request, output *DescribeEnvironmentManagedActionsOutput) { - op := &request.Operation{ - Name: opDescribeEnvironmentManagedActions, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeEnvironmentManagedActionsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeEnvironmentManagedActionsOutput{} - req.Data = output - return -} - -// Lists an environment's upcoming and in-progress managed actions. -func (c *ElasticBeanstalk) DescribeEnvironmentManagedActions(input *DescribeEnvironmentManagedActionsInput) (*DescribeEnvironmentManagedActionsOutput, error) { - req, out := c.DescribeEnvironmentManagedActionsRequest(input) - err := req.Send() - return out, err -} - const opDescribeEnvironmentResources = "DescribeEnvironmentResources" // DescribeEnvironmentResourcesRequest generates a request for the DescribeEnvironmentResources operation. @@ -654,7 +524,7 @@ func (c *ElasticBeanstalk) DescribeEnvironmentResources(input *DescribeEnvironme const opDescribeEnvironments = "DescribeEnvironments" // DescribeEnvironmentsRequest generates a request for the DescribeEnvironments operation. -func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmentsInput) (req *request.Request, output *EnvironmentDescriptionsMessage) { +func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmentsInput) (req *request.Request, output *DescribeEnvironmentsOutput) { op := &request.Operation{ Name: opDescribeEnvironments, HTTPMethod: "POST", @@ -666,13 +536,13 @@ func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmen } req = c.newRequest(op, input, output) - output = &EnvironmentDescriptionsMessage{} + output = &DescribeEnvironmentsOutput{} req.Data = output return } // Returns descriptions for existing environments. -func (c *ElasticBeanstalk) DescribeEnvironments(input *DescribeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) { +func (c *ElasticBeanstalk) DescribeEnvironments(input *DescribeEnvironmentsInput) (*DescribeEnvironmentsOutput, error) { req, out := c.DescribeEnvironmentsRequest(input) err := req.Send() return out, err @@ -706,7 +576,7 @@ func (c *ElasticBeanstalk) DescribeEventsRequest(input *DescribeEventsInput) (re // Returns list of event descriptions matching criteria up to the last 6 weeks. // -// This action returns the most recent 1,000 events from the specified NextToken. +// This action returns the most recent 1,000 events from the specified NextToken. func (c *ElasticBeanstalk) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -715,7 +585,6 @@ func (c *ElasticBeanstalk) DescribeEvents(input *DescribeEventsInput) (*Describe func (c *ElasticBeanstalk) DescribeEventsPages(input *DescribeEventsInput, fn func(p *DescribeEventsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeEventsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeEventsOutput), lastPage) }) @@ -792,8 +661,6 @@ func (c *ElasticBeanstalk) RebuildEnvironmentRequest(input *RebuildEnvironmentIn } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RebuildEnvironmentOutput{} req.Data = output return @@ -822,8 +689,6 @@ func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironme } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RequestEnvironmentInfoOutput{} req.Data = output return @@ -865,8 +730,6 @@ func (c *ElasticBeanstalk) RestartAppServerRequest(input *RestartAppServerInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RestartAppServerOutput{} req.Data = output return @@ -926,8 +789,6 @@ func (c *ElasticBeanstalk) SwapEnvironmentCNAMEsRequest(input *SwapEnvironmentCN } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SwapEnvironmentCNAMEsOutput{} req.Data = output return @@ -1130,15 +991,19 @@ func (c *ElasticBeanstalk) ValidateConfigurationSettings(input *ValidateConfigur } type AbortEnvironmentUpdateInput struct { - _ struct{} `type:"structure"` - // This specifies the ID of the environment with the in-progress update that // you want to cancel. EnvironmentId *string `type:"string"` // This specifies the name of the environment with the in-progress update that // you want to cancel. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` + + metadataAbortEnvironmentUpdateInput `json:"-" xml:"-"` +} + +type metadataAbortEnvironmentUpdateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1151,21 +1016,12 @@ func (s AbortEnvironmentUpdateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AbortEnvironmentUpdateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AbortEnvironmentUpdateInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AbortEnvironmentUpdateOutput struct { + metadataAbortEnvironmentUpdateOutput `json:"-" xml:"-"` } -type AbortEnvironmentUpdateOutput struct { - _ struct{} `type:"structure"` +type metadataAbortEnvironmentUpdateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1180,10 +1036,8 @@ func (s AbortEnvironmentUpdateOutput) GoString() string { // Describes the properties of an application. type ApplicationDescription struct { - _ struct{} `type:"structure"` - // The name of the application. - ApplicationName *string `min:"1" type:"string"` + ApplicationName *string `type:"string"` // The names of the configuration templates associated with this application. ConfigurationTemplates []*string `type:"list"` @@ -1199,6 +1053,12 @@ type ApplicationDescription struct { // The names of the versions for this application. Versions []*string `type:"list"` + + metadataApplicationDescription `json:"-" xml:"-"` +} + +type metadataApplicationDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1213,10 +1073,14 @@ func (s ApplicationDescription) GoString() string { // Result message containing a single description of an application. type ApplicationDescriptionMessage struct { - _ struct{} `type:"structure"` - // The ApplicationDescription of the application. Application *ApplicationDescription `type:"structure"` + + metadataApplicationDescriptionMessage `json:"-" xml:"-"` +} + +type metadataApplicationDescriptionMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1231,8 +1095,6 @@ func (s ApplicationDescriptionMessage) GoString() string { // Represents the application metrics for a specified environment. type ApplicationMetrics struct { - _ struct{} `type:"structure"` - // The amount of time that the metrics cover (usually 10 seconds). For example, // you might have 5 requests (request_count) within the most recent time slice // of 10 seconds (duration). @@ -1249,6 +1111,12 @@ type ApplicationMetrics struct { // Represents the percentage of requests over the last 10 seconds that resulted // in each type of status code response. StatusCodes *StatusCodes `type:"structure"` + + metadataApplicationMetrics `json:"-" xml:"-"` +} + +type metadataApplicationMetrics struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1263,10 +1131,8 @@ func (s ApplicationMetrics) GoString() string { // Describes the properties of an application version. type ApplicationVersionDescription struct { - _ struct{} `type:"structure"` - // The name of the application associated with this release. - ApplicationName *string `min:"1" type:"string"` + ApplicationName *string `type:"string"` // The creation date of the application version. DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -1280,11 +1146,14 @@ type ApplicationVersionDescription struct { // The location where the source bundle is located for this version. SourceBundle *S3Location `type:"structure"` - // The processing status of the application version. - Status *string `type:"string" enum:"ApplicationVersionStatus"` - // A label uniquely identifying the version for the associated application. - VersionLabel *string `min:"1" type:"string"` + VersionLabel *string `type:"string"` + + metadataApplicationVersionDescription `json:"-" xml:"-"` +} + +type metadataApplicationVersionDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1299,92 +1168,36 @@ func (s ApplicationVersionDescription) GoString() string { // Result message wrapping a single description of an application version. type ApplicationVersionDescriptionMessage struct { - _ struct{} `type:"structure"` - // The ApplicationVersionDescription of the application version. ApplicationVersion *ApplicationVersionDescription `type:"structure"` -} - -// String returns the string representation -func (s ApplicationVersionDescriptionMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ApplicationVersionDescriptionMessage) GoString() string { - return s.String() -} - -// Request to execute a scheduled managed action immediately. -type ApplyEnvironmentManagedActionInput struct { - _ struct{} `type:"structure"` - - // The action ID of the scheduled managed action to execute. - ActionId *string `type:"string" required:"true"` - - // The environment ID of the target environment. - EnvironmentId *string `type:"string"` - - // The name of the target environment. - EnvironmentName *string `type:"string"` -} - -// String returns the string representation -func (s ApplyEnvironmentManagedActionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ApplyEnvironmentManagedActionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ApplyEnvironmentManagedActionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ApplyEnvironmentManagedActionInput"} - if s.ActionId == nil { - invalidParams.Add(request.NewErrParamRequired("ActionId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataApplicationVersionDescriptionMessage `json:"-" xml:"-"` } -// The result message containing information about the managed action. -type ApplyEnvironmentManagedActionOutput struct { - _ struct{} `type:"structure"` - - // A description of the managed action. - ActionDescription *string `type:"string"` - - // The action ID of the managed action. - ActionId *string `type:"string"` - - // The type of managed action. - ActionType *string `type:"string" enum:"ActionType"` - - // The status of the managed action. - Status *string `type:"string"` +type metadataApplicationVersionDescriptionMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ApplyEnvironmentManagedActionOutput) String() string { +func (s ApplicationVersionDescriptionMessage) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ApplyEnvironmentManagedActionOutput) GoString() string { +func (s ApplicationVersionDescriptionMessage) GoString() string { return s.String() } // Describes an Auto Scaling launch configuration. type AutoScalingGroup struct { - _ struct{} `type:"structure"` - // The name of the AutoScalingGroup . Name *string `type:"string"` + + metadataAutoScalingGroup `json:"-" xml:"-"` +} + +type metadataAutoScalingGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1401,8 +1214,6 @@ func (s AutoScalingGroup) GoString() string { // to the AWS Elastic Beanstalk environment. Use the instanceId property to // specify the application instance for which you'd like to return data. type CPUUtilization struct { - _ struct{} `type:"structure"` - // Percentage of time that the CPU has spent in the I/O Wait state over the // last 10 seconds. IOWait *float64 `type:"double"` @@ -1430,6 +1241,12 @@ type CPUUtilization struct { // Percentage of time that the CPU has spent in the User state over the last // 10 seconds. User *float64 `type:"double"` + + metadataCPUUtilization `json:"-" xml:"-"` +} + +type metadataCPUUtilization struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1444,10 +1261,14 @@ func (s CPUUtilization) GoString() string { // Results message indicating whether a CNAME is available. type CheckDNSAvailabilityInput struct { - _ struct{} `type:"structure"` - // The prefix used when this CNAME is reserved. - CNAMEPrefix *string `min:"4" type:"string" required:"true"` + CNAMEPrefix *string `type:"string" required:"true"` + + metadataCheckDNSAvailabilityInput `json:"-" xml:"-"` +} + +type metadataCheckDNSAvailabilityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1460,102 +1281,55 @@ func (s CheckDNSAvailabilityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CheckDNSAvailabilityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CheckDNSAvailabilityInput"} - if s.CNAMEPrefix == nil { - invalidParams.Add(request.NewErrParamRequired("CNAMEPrefix")) - } - if s.CNAMEPrefix != nil && len(*s.CNAMEPrefix) < 4 { - invalidParams.Add(request.NewErrParamMinLen("CNAMEPrefix", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Indicates if the specified CNAME is available. type CheckDNSAvailabilityOutput struct { - _ struct{} `type:"structure"` - // Indicates if the specified CNAME is available: // - // true : The CNAME is available. false : The CNAME is not available. + // true : The CNAME is available. + // + // true : The CNAME is not available. + // + // true : The CNAME is available. false : The CNAME is not available. Available *bool `type:"boolean"` // The fully qualified CNAME to reserve when CreateEnvironment is called with // the provided prefix. - FullyQualifiedCNAME *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s CheckDNSAvailabilityOutput) String() string { - return awsutil.Prettify(s) -} + FullyQualifiedCNAME *string `type:"string"` -// GoString returns the string representation -func (s CheckDNSAvailabilityOutput) GoString() string { - return s.String() + metadataCheckDNSAvailabilityOutput `json:"-" xml:"-"` } -// Request to create or update a group of environments. -type ComposeEnvironmentsInput struct { - _ struct{} `type:"structure"` - - // The name of the application to which the specified source bundles belong. - ApplicationName *string `min:"1" type:"string"` - - // The name of the group to which the target environments belong. Specify a - // group name only if the environment name defined in each target environment's - // manifest ends with a + (plus) character. See Environment Manifest (env.yaml) - // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-cfg-manifest.html) - // for details. - GroupName *string `min:"1" type:"string"` - - // A list of version labels, specifying one or more application source bundles - // that belong to the target application. Each source bundle must include an - // environment manifest that specifies the name of the environment and the name - // of the solution stack to use, and optionally can specify environment links - // to create. - VersionLabels []*string `type:"list"` +type metadataCheckDNSAvailabilityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ComposeEnvironmentsInput) String() string { +func (s CheckDNSAvailabilityOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ComposeEnvironmentsInput) GoString() string { +func (s CheckDNSAvailabilityOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ComposeEnvironmentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ComposeEnvironmentsInput"} - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes the possible values for a configuration option. type ConfigurationOptionDescription struct { - _ struct{} `type:"structure"` - // An indication of which action is required if the value for this configuration // option changes: // - // NoInterruption : There is no interruption to the environment or application + // NoInterruption - There is no interruption to the environment or application + // availability. + // + // RestartEnvironment - The environment is restarted, all AWS resources + // are deleted and recreated, and the environment is unavailable during the + // process. + // + // RestartApplicationServer - The environment is available the entire time. + // However, a short application outage occurs when the application servers on + // the running Amazon EC2 instances are restarted. + // + // NoInterruption : There is no interruption to the environment or application // availability. RestartEnvironment : The environment is entirely restarted, // all AWS resources are deleted and recreated, and the environment is unavailable // during the process. RestartApplicationServer : The environment is available @@ -1591,6 +1365,12 @@ type ConfigurationOptionDescription struct { // An indication of whether the user defined this configuration option: // // true : This configuration option was defined by the user. It is a valid + // choice for specifying this as an Option to Remove when updating configuration + // settings. + // + // false : This configuration was not defined by the user. + // + // true : This configuration option was defined by the user. It is a valid // choice for specifying if this as an Option to Remove when updating configuration // settings. // @@ -1607,12 +1387,29 @@ type ConfigurationOptionDescription struct { // An indication of which type of values this option has and whether it is allowable // to select one or more than one of the possible values: // - // Scalar : Values for this option are a single selection from the possible + // Scalar : Values for this option are a single selection from the possible + // values, or a unformatted string or numeric value governed by the MIN/MAX/Regex + // constraints: + // + // List : Values for this option are multiple selections of the possible + // values. + // + // Boolean : Values for this option are either true or false . + // + // Json : Values for this option are a JSON representation of a ConfigDocument. + // + // Scalar : Values for this option are a single selection from the possible // values, or an unformatted string, or numeric value governed by the MIN/MAX/Regex // constraints. List : Values for this option are multiple selections from // the possible values. Boolean : Values for this option are either true or // false . Json : Values for this option are a JSON representation of a ConfigDocument. ValueType *string `type:"string" enum:"ConfigurationOptionValueType"` + + metadataConfigurationOptionDescription `json:"-" xml:"-"` +} + +type metadataConfigurationOptionDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1630,8 +1427,6 @@ func (s ConfigurationOptionDescription) GoString() string { // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html) // in the AWS Elastic Beanstalk Developer Guide. type ConfigurationOptionSetting struct { - _ struct{} `type:"structure"` - // A unique namespace identifying the option's associated AWS resource. Namespace *string `type:"string"` @@ -1639,10 +1434,16 @@ type ConfigurationOptionSetting struct { OptionName *string `type:"string"` // A unique resource name for a time-based scaling configuration option. - ResourceName *string `min:"1" type:"string"` + ResourceName *string `type:"string"` // The current value for the configuration option. Value *string `type:"string"` + + metadataConfigurationOptionSetting `json:"-" xml:"-"` +} + +type metadataConfigurationOptionSetting struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1655,25 +1456,10 @@ func (s ConfigurationOptionSetting) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfigurationOptionSetting) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfigurationOptionSetting"} - if s.ResourceName != nil && len(*s.ResourceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes the settings for a configuration set. type ConfigurationSettingsDescription struct { - _ struct{} `type:"structure"` - // The name of the application associated with this configuration set. - ApplicationName *string `min:"1" type:"string"` + ApplicationName *string `type:"string"` // The date (in UTC time) when this configuration set was created. DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -1684,7 +1470,17 @@ type ConfigurationSettingsDescription struct { // If this configuration set is associated with an environment, the DeploymentStatus // parameter indicates the deployment status of this configuration set: // - // null: This configuration is not associated with a running environment. + // null: This configuration is not associated with a running environment. + // + // pending: This is a draft configuration that is not deployed to the associated + // environment but is in the process of deploying. + // + // deployed: This is the configuration that is currently deployed to the + // associated running environment. + // + // failed: This is a draft configuration, that failed to successfully deploy. + // + // null: This configuration is not associated with a running environment. // pending: This is a draft configuration that is not deployed to the associated // environment but is in the process of deploying. deployed: This is the configuration // that is currently deployed to the associated running environment. failed: @@ -1695,7 +1491,7 @@ type ConfigurationSettingsDescription struct { Description *string `type:"string"` // If not null, the name of the environment for this configuration set. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // A list of the configuration options and their values in this configuration // set. @@ -1706,7 +1502,13 @@ type ConfigurationSettingsDescription struct { // If not null, the name of the configuration template for this configuration // set. - TemplateName *string `min:"1" type:"string"` + TemplateName *string `type:"string"` + + metadataConfigurationSettingsDescription `json:"-" xml:"-"` +} + +type metadataConfigurationSettingsDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1719,18 +1521,22 @@ func (s ConfigurationSettingsDescription) GoString() string { return s.String() } -// Request to create an application. +// This documentation target is not reported in the API reference. type CreateApplicationInput struct { - _ struct{} `type:"structure"` - // The name of the application. // - // Constraint: This name must be unique within your account. If the specified + // Constraint: This name must be unique within your account. If the specified // name already exists, the action returns an InvalidParameterValue error. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // Describes the application. Description *string `type:"string"` + + metadataCreateApplicationInput `json:"-" xml:"-"` +} + +type metadataCreateApplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1743,33 +1549,21 @@ func (s CreateApplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"} - 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 -} - type CreateApplicationVersionInput struct { - _ struct{} `type:"structure"` - // The name of the application. If no application is found with this name, and // AutoCreateApplication is false, returns an InvalidParameterValue error. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // Determines how the system behaves if the specified application for this version // does not already exist: // - // true : Automatically creates the specified application for this release + // true: Automatically creates the specified application for this version + // if it does not already exist. + // + // false: Returns an InvalidParameterValue if the specified application + // for this version does not already exist. + // + // true : Automatically creates the specified application for this release // if it does not already exist. false : Throws an InvalidParameterValue if // the specified application for this release does not already exist. Default: // false @@ -1780,11 +1574,6 @@ type CreateApplicationVersionInput struct { // Describes this version. Description *string `type:"string"` - // Preprocesses and validates the environment manifest and configuration files - // in the source bundle. Validating configuration files can identify issues - // prior to deploying the application version to an environment. - Process *bool `type:"boolean"` - // The Amazon S3 bucket and key that identify the location of the source bundle // for this version. // @@ -1803,7 +1592,13 @@ type CreateApplicationVersionInput struct { // Constraint: Must be unique per application. If an application version already // exists with this label for the specified application, AWS Elastic Beanstalk // returns an InvalidParameterValue error. - VersionLabel *string `min:"1" type:"string" required:"true"` + VersionLabel *string `type:"string" required:"true"` + + metadataCreateApplicationVersionInput `json:"-" xml:"-"` +} + +type metadataCreateApplicationVersionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1816,36 +1611,12 @@ func (s CreateApplicationVersionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateApplicationVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateApplicationVersionInput"} - 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.VersionLabel == nil { - invalidParams.Add(request.NewErrParamRequired("VersionLabel")) - } - if s.VersionLabel != nil && len(*s.VersionLabel) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to create a configuration template. +// This documentation target is not reported in the API reference. type CreateConfigurationTemplateInput struct { - _ struct{} `type:"structure"` - // The name of the application to associate with this configuration template. // If no application is found with this name, AWS Elastic Beanstalk returns // an InvalidParameterValue error. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // Describes this configuration. Description *string `type:"string"` @@ -1895,7 +1666,13 @@ type CreateConfigurationTemplateInput struct { // // Default: If a configuration template already exists with this name, AWS // Elastic Beanstalk returns an InvalidParameterValue error. - TemplateName *string `min:"1" type:"string" required:"true"` + TemplateName *string `type:"string" required:"true"` + + metadataCreateConfigurationTemplateInput `json:"-" xml:"-"` +} + +type metadataCreateConfigurationTemplateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1908,77 +1685,31 @@ func (s CreateConfigurationTemplateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateConfigurationTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateConfigurationTemplateInput"} - 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.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.OptionSettings != nil { - for i, v := range s.OptionSettings { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams)) - } - } - } - if s.SourceConfiguration != nil { - if err := s.SourceConfiguration.Validate(); err != nil { - invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateEnvironmentInput struct { - _ struct{} `type:"structure"` - // The name of the application that contains the version to be deployed. // // If no application is found with this name, CreateEnvironment returns an // InvalidParameterValue error. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // If specified, the environment attempts to use this value as the prefix for // the CNAME. If not specified, the CNAME is generated automatically by appending // a random alphanumeric string to the environment name. - CNAMEPrefix *string `min:"4" type:"string"` + CNAMEPrefix *string `type:"string"` // Describes this environment. Description *string `type:"string"` // A unique name for the deployment environment. Used in the application URL. // - // Constraint: Must be from 4 to 40 characters in length. The name can contain + // Constraint: Must be from 4 to 23 characters in length. The name can contain // only letters, numbers, and hyphens. It cannot start or end with a hyphen. // This name must be unique in your account. If the specified name already exists, // AWS Elastic Beanstalk returns an InvalidParameterValue error. // // Default: If the CNAME parameter is not specified, the environment name becomes // part of the CNAME, and therefore part of the visible URL for your application. - EnvironmentName *string `min:"4" type:"string"` - - // The name of the group to which the target environment belongs. Specify a - // group name only if the environment's name is specified in an environment - // manifest and not with the environment name parameter. See Environment Manifest - // (env.yaml) (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-cfg-manifest.html) - // for details. - GroupName *string `min:"1" type:"string"` + EnvironmentName *string `type:"string" required:"true"` // If specified, AWS Elastic Beanstalk sets the specified configuration options // to the requested value in the configuration set for the new environment. @@ -1990,9 +1721,9 @@ type CreateEnvironmentInput struct { // set for this new environment. OptionsToRemove []*OptionSpecification `type:"list"` - // This is an alternative to specifying a template name. If specified, AWS Elastic - // Beanstalk sets the configuration values to the default values associated - // with the specified solution stack. + // This is an alternative to specifying a configuration name. If specified, + // AWS Elastic Beanstalk sets the configuration values to the default values + // associated with the specified solution stack. // // Condition: You must specify either this or a TemplateName, but not both. // If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination @@ -2011,7 +1742,7 @@ type CreateEnvironmentInput struct { // but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter // error. - TemplateName *string `min:"1" type:"string"` + TemplateName *string `type:"string"` // This specifies the tier to use for creating this environment. Tier *EnvironmentTier `type:"structure"` @@ -2023,7 +1754,13 @@ type CreateEnvironmentInput struct { // // Default: If not specified, AWS Elastic Beanstalk attempts to launch the // sample application in the container. - VersionLabel *string `min:"1" type:"string"` + VersionLabel *string `type:"string"` + + metadataCreateEnvironmentInput `json:"-" xml:"-"` +} + +type metadataCreateEnvironmentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2036,69 +1773,12 @@ func (s CreateEnvironmentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEnvironmentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentInput"} - 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.CNAMEPrefix != nil && len(*s.CNAMEPrefix) < 4 { - invalidParams.Add(request.NewErrParamMinLen("CNAMEPrefix", 4)) - } - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.VersionLabel != nil && len(*s.VersionLabel) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1)) - } - if s.OptionSettings != nil { - for i, v := range s.OptionSettings { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams)) - } - } - } - if s.OptionsToRemove != nil { - for i, v := range s.OptionsToRemove { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionsToRemove", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateStorageLocationInput struct { + metadataCreateStorageLocationInput `json:"-" xml:"-"` } -type CreateStorageLocationInput struct { - _ struct{} `type:"structure"` +type metadataCreateStorageLocationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2113,10 +1793,14 @@ func (s CreateStorageLocationInput) GoString() string { // Results of a CreateStorageLocationResult call. type CreateStorageLocationOutput struct { - _ struct{} `type:"structure"` - // The name of the Amazon S3 bucket created. S3Bucket *string `type:"string"` + + metadataCreateStorageLocationOutput `json:"-" xml:"-"` +} + +type metadataCreateStorageLocationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2129,16 +1813,20 @@ func (s CreateStorageLocationOutput) GoString() string { return s.String() } -// Request to delete an application. +// This documentation target is not reported in the API reference. type DeleteApplicationInput struct { - _ struct{} `type:"structure"` - // The name of the application to delete. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // When set to true, running environments will be terminated before deleting // the application. TerminateEnvByForce *bool `type:"boolean"` + + metadataDeleteApplicationInput `json:"-" xml:"-"` +} + +type metadataDeleteApplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2151,24 +1839,12 @@ func (s DeleteApplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"} - 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 +type DeleteApplicationOutput struct { + metadataDeleteApplicationOutput `json:"-" xml:"-"` } -type DeleteApplicationOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteApplicationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2181,12 +1857,10 @@ func (s DeleteApplicationOutput) GoString() string { return s.String() } -// Request to delete an application version. +// This documentation target is not reported in the API reference. type DeleteApplicationVersionInput struct { - _ struct{} `type:"structure"` - // The name of the application to delete releases from. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // Indicates whether to delete the associated source bundle from Amazon S3: // @@ -2196,7 +1870,13 @@ type DeleteApplicationVersionInput struct { DeleteSourceBundle *bool `type:"boolean"` // The label of the version to delete. - VersionLabel *string `min:"1" type:"string" required:"true"` + VersionLabel *string `type:"string" required:"true"` + + metadataDeleteApplicationVersionInput `json:"-" xml:"-"` +} + +type metadataDeleteApplicationVersionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2209,30 +1889,12 @@ func (s DeleteApplicationVersionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteApplicationVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationVersionInput"} - 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.VersionLabel == nil { - invalidParams.Add(request.NewErrParamRequired("VersionLabel")) - } - if s.VersionLabel != nil && len(*s.VersionLabel) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteApplicationVersionOutput struct { + metadataDeleteApplicationVersionOutput `json:"-" xml:"-"` } -type DeleteApplicationVersionOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteApplicationVersionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2245,15 +1907,19 @@ func (s DeleteApplicationVersionOutput) GoString() string { return s.String() } -// Request to delete a configuration template. +// This documentation target is not reported in the API reference. type DeleteConfigurationTemplateInput struct { - _ struct{} `type:"structure"` - // The name of the application to delete the configuration template from. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // The name of the configuration template to delete. - TemplateName *string `min:"1" type:"string" required:"true"` + TemplateName *string `type:"string" required:"true"` + + metadataDeleteConfigurationTemplateInput `json:"-" xml:"-"` +} + +type metadataDeleteConfigurationTemplateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2266,30 +1932,12 @@ func (s DeleteConfigurationTemplateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteConfigurationTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteConfigurationTemplateInput"} - 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.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteConfigurationTemplateOutput struct { + metadataDeleteConfigurationTemplateOutput `json:"-" xml:"-"` } -type DeleteConfigurationTemplateOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteConfigurationTemplateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2302,15 +1950,19 @@ func (s DeleteConfigurationTemplateOutput) GoString() string { return s.String() } -// Request to delete a draft environment configuration. +// This documentation target is not reported in the API reference. type DeleteEnvironmentConfigurationInput struct { - _ struct{} `type:"structure"` - // The name of the application the environment is associated with. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // The name of the environment to delete the draft configuration from. - EnvironmentName *string `min:"4" type:"string" required:"true"` + EnvironmentName *string `type:"string" required:"true"` + + metadataDeleteEnvironmentConfigurationInput `json:"-" xml:"-"` +} + +type metadataDeleteEnvironmentConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2323,30 +1975,12 @@ func (s DeleteEnvironmentConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEnvironmentConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentConfigurationInput"} - 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.EnvironmentName == nil { - invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) - } - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteEnvironmentConfigurationOutput struct { + metadataDeleteEnvironmentConfigurationOutput `json:"-" xml:"-"` } -type DeleteEnvironmentConfigurationOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteEnvironmentConfigurationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2359,50 +1993,21 @@ func (s DeleteEnvironmentConfigurationOutput) GoString() string { return s.String() } -// Information about an application version deployment. -type Deployment struct { - _ struct{} `type:"structure"` - - // The ID of the deployment. This number increases by one each time that you - // deploy source code or change instance configuration settings. - DeploymentId *int64 `type:"long"` - - // For in-progress deployments, the time that the deloyment started. - // - // For completed deployments, the time that the deployment ended. - DeploymentTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The status of the deployment: - // - // In Progress : The deployment is in progress. Deployed : The deployment - // succeeded. Failed : The deployment failed. - Status *string `type:"string"` - - // The version label of the application version in the deployment. - VersionLabel *string `type:"string"` -} - -// String returns the string representation -func (s Deployment) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Deployment) GoString() string { - return s.String() -} - // Result message containing a list of configuration descriptions. type DescribeApplicationVersionsInput struct { - _ struct{} `type:"structure"` - // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // only include ones that are associated with the specified application. - ApplicationName *string `min:"1" type:"string"` + ApplicationName *string `type:"string"` // If specified, restricts the returned descriptions to only include ones that // have the specified version labels. VersionLabels []*string `type:"list"` + + metadataDescribeApplicationVersionsInput `json:"-" xml:"-"` +} + +type metadataDescribeApplicationVersionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2415,25 +2020,16 @@ func (s DescribeApplicationVersionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeApplicationVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeApplicationVersionsInput"} - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Result message wrapping a list of application version descriptions. type DescribeApplicationVersionsOutput struct { - _ struct{} `type:"structure"` - - // List of ApplicationVersionDescription objects sorted by order of creation. + // A list of ApplicationVersionDescription . ApplicationVersions []*ApplicationVersionDescription `type:"list"` + + metadataDescribeApplicationVersionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeApplicationVersionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2446,13 +2042,17 @@ func (s DescribeApplicationVersionsOutput) GoString() string { return s.String() } -// Request to describe one or more applications. +// This documentation target is not reported in the API reference. type DescribeApplicationsInput struct { - _ struct{} `type:"structure"` - // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // only include those with the specified names. ApplicationNames []*string `type:"list"` + + metadataDescribeApplicationsInput `json:"-" xml:"-"` +} + +type metadataDescribeApplicationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2467,10 +2067,14 @@ func (s DescribeApplicationsInput) GoString() string { // Result message containing a list of application descriptions. type DescribeApplicationsOutput struct { - _ struct{} `type:"structure"` - // This parameter contains a list of ApplicationDescription. Applications []*ApplicationDescription `type:"list"` + + metadataDescribeApplicationsOutput `json:"-" xml:"-"` +} + +type metadataDescribeApplicationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2485,15 +2089,13 @@ func (s DescribeApplicationsOutput) GoString() string { // Result message containig a list of application version descriptions. type DescribeConfigurationOptionsInput struct { - _ struct{} `type:"structure"` - // The name of the application associated with the configuration template or // environment. Only needed if you want to describe the configuration options // associated with either the configuration template or environment. - ApplicationName *string `min:"1" type:"string"` + ApplicationName *string `type:"string"` // The name of the environment whose configuration options you want to describe. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // If specified, restricts the descriptions to only the specified options. Options []*OptionSpecification `type:"list"` @@ -2503,7 +2105,13 @@ type DescribeConfigurationOptionsInput struct { // The name of the configuration template whose configuration options you want // to describe. - TemplateName *string `min:"1" type:"string"` + TemplateName *string `type:"string"` + + metadataDescribeConfigurationOptionsInput `json:"-" xml:"-"` +} + +type metadataDescribeConfigurationOptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2516,44 +2124,19 @@ func (s DescribeConfigurationOptionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeConfigurationOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationOptionsInput"} - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.Options != nil { - for i, v := range s.Options { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Options", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes the settings for a specified configuration set. type DescribeConfigurationOptionsOutput struct { - _ struct{} `type:"structure"` - // A list of ConfigurationOptionDescription. Options []*ConfigurationOptionDescription `type:"list"` // The name of the solution stack these configuration options belong to. SolutionStackName *string `type:"string"` + + metadataDescribeConfigurationOptionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeConfigurationOptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2569,10 +2152,8 @@ func (s DescribeConfigurationOptionsOutput) GoString() string { // Result message containing all of the configuration settings for a specified // solution stack or configuration template. type DescribeConfigurationSettingsInput struct { - _ struct{} `type:"structure"` - // The application for the environment or configuration template. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // The name of the environment to describe. // @@ -2580,7 +2161,7 @@ type DescribeConfigurationSettingsInput struct { // If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination // error. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // The name of the configuration template to describe. // @@ -2588,7 +2169,13 @@ type DescribeConfigurationSettingsInput struct { // but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter // error. - TemplateName *string `min:"1" type:"string"` + TemplateName *string `type:"string"` + + metadataDescribeConfigurationSettingsInput `json:"-" xml:"-"` +} + +type metadataDescribeConfigurationSettingsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2601,34 +2188,16 @@ func (s DescribeConfigurationSettingsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeConfigurationSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationSettingsInput"} - 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.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The results from a request to change the configuration settings of an environment. type DescribeConfigurationSettingsOutput struct { - _ struct{} `type:"structure"` - // A list of ConfigurationSettingsDescription. ConfigurationSettings []*ConfigurationSettingsDescription `type:"list"` + + metadataDescribeConfigurationSettingsOutput `json:"-" xml:"-"` +} + +type metadataDescribeConfigurationSettingsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2643,25 +2212,21 @@ func (s DescribeConfigurationSettingsOutput) GoString() string { // See the example below to learn how to create a request body. type DescribeEnvironmentHealthInput struct { - _ struct{} `type:"structure"` - // Specifies the response elements you wish to receive. If no attribute names - // are specified, AWS Elastic Beanstalk only returns the name of the environment. + // are specified, AWS Elastic Beanstalk returns all response elements. AttributeNames []*string `type:"list"` // Specifies the AWS Elastic Beanstalk environment ID. - // - // Condition: You must specify either this or an EnvironmentName, or both. - // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter - // error. EnvironmentId *string `type:"string"` // Specifies the AWS Elastic Beanstalk environment name. - // - // Condition: You must specify either this or an EnvironmentId, or both. If - // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter - // error. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` + + metadataDescribeEnvironmentHealthInput `json:"-" xml:"-"` +} + +type metadataDescribeEnvironmentHealthInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2674,23 +2239,8 @@ func (s DescribeEnvironmentHealthInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEnvironmentHealthInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEnvironmentHealthInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // See the example below for a sample response. type DescribeEnvironmentHealthOutput struct { - _ struct{} `type:"structure"` - // Represents the application metrics for a specified environment. ApplicationMetrics *ApplicationMetrics `type:"structure"` @@ -2702,7 +2252,7 @@ type DescribeEnvironmentHealthOutput struct { Color *string `type:"string"` // The AWS Elastic Beanstalk environment name. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // Contains the response body with information about the health of the environment. HealthStatus *string `type:"string"` @@ -2717,126 +2267,26 @@ type DescribeEnvironmentHealthOutput struct { // Returns the health status value of the environment. For more information, // see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). Status *string `type:"string" enum:"EnvironmentHealth"` -} - -// String returns the string representation -func (s DescribeEnvironmentHealthOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEnvironmentHealthOutput) GoString() string { - return s.String() -} - -// Request to list completed and failed managed actions. -type DescribeEnvironmentManagedActionHistoryInput struct { - _ struct{} `type:"structure"` - - // The environment ID of the target environment. - EnvironmentId *string `type:"string"` - - // The name of the target environment. - EnvironmentName *string `min:"4" type:"string"` - - // The maximum number of items to return for a single request. - MaxItems *int64 `type:"integer"` - - // The pagination token returned by a previous request. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s DescribeEnvironmentManagedActionHistoryInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEnvironmentManagedActionHistoryInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEnvironmentManagedActionHistoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEnvironmentManagedActionHistoryInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDescribeEnvironmentHealthOutput `json:"-" xml:"-"` } -// A result message containing a list of completed and failed managed actions. -type DescribeEnvironmentManagedActionHistoryOutput struct { - _ struct{} `type:"structure"` - - // A list of completed and failed managed actions. - ManagedActionHistoryItems []*ManagedActionHistoryItem `min:"1" type:"list"` - - // A pagination token that you pass to DescribeEnvironmentManagedActionHistory - // to get the next page of results. - NextToken *string `type:"string"` +type metadataDescribeEnvironmentHealthOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeEnvironmentManagedActionHistoryOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEnvironmentManagedActionHistoryOutput) GoString() string { - return s.String() -} - -// Request to list an environment's upcoming and in-progress managed actions. -type DescribeEnvironmentManagedActionsInput struct { - _ struct{} `type:"structure"` - - // The environment ID of the target environment. - EnvironmentId *string `type:"string"` - - // The name of the target environment. - EnvironmentName *string `type:"string"` - - // To show only actions with a particular status, specify a status. - Status *string `type:"string" enum:"ActionStatus"` -} - -// String returns the string representation -func (s DescribeEnvironmentManagedActionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEnvironmentManagedActionsInput) GoString() string { - return s.String() -} - -// The result message containing a list of managed actions. -type DescribeEnvironmentManagedActionsOutput struct { - _ struct{} `type:"structure"` - - // A list of upcoming and in-progress managed actions. - ManagedActions []*ManagedAction `min:"1" type:"list"` -} - -// String returns the string representation -func (s DescribeEnvironmentManagedActionsOutput) String() string { +func (s DescribeEnvironmentHealthOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeEnvironmentManagedActionsOutput) GoString() string { +func (s DescribeEnvironmentHealthOutput) GoString() string { return s.String() } -// Request to describe the resources in an environment. +// This documentation target is not reported in the API reference. type DescribeEnvironmentResourcesInput struct { - _ struct{} `type:"structure"` - // The ID of the environment to retrieve AWS resource usage data. // // Condition: You must specify either this or an EnvironmentName, or both. @@ -2849,7 +2299,13 @@ type DescribeEnvironmentResourcesInput struct { // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` + + metadataDescribeEnvironmentResourcesInput `json:"-" xml:"-"` +} + +type metadataDescribeEnvironmentResourcesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2862,25 +2318,16 @@ func (s DescribeEnvironmentResourcesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEnvironmentResourcesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEnvironmentResourcesInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Result message containing a list of environment resource descriptions. type DescribeEnvironmentResourcesOutput struct { - _ struct{} `type:"structure"` - // A list of EnvironmentResourceDescription. EnvironmentResources *EnvironmentResourceDescription `type:"structure"` + + metadataDescribeEnvironmentResourcesOutput `json:"-" xml:"-"` +} + +type metadataDescribeEnvironmentResourcesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2893,13 +2340,11 @@ func (s DescribeEnvironmentResourcesOutput) GoString() string { return s.String() } -// Request to describe one or more environments. +// This documentation target is not reported in the API reference. type DescribeEnvironmentsInput struct { - _ struct{} `type:"structure"` - // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // include only those that are associated with this application. - ApplicationName *string `min:"1" type:"string"` + ApplicationName *string `type:"string"` // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // include only those that have the specified IDs. @@ -2923,7 +2368,13 @@ type DescribeEnvironmentsInput struct { // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // include only those that are associated with this application version. - VersionLabel *string `min:"1" type:"string"` + VersionLabel *string `type:"string"` + + metadataDescribeEnvironmentsInput `json:"-" xml:"-"` +} + +type metadataDescribeEnvironmentsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2936,29 +2387,33 @@ func (s DescribeEnvironmentsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEnvironmentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEnvironmentsInput"} - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - if s.VersionLabel != nil && len(*s.VersionLabel) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1)) - } +// Result message containing a list of environment descriptions. +type DescribeEnvironmentsOutput struct { + // Returns an EnvironmentDescription list. + Environments []*EnvironmentDescription `type:"list"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDescribeEnvironmentsOutput `json:"-" xml:"-"` } -// Request to retrieve a list of events for an environment. -type DescribeEventsInput struct { - _ struct{} `type:"structure"` +type metadataDescribeEnvironmentsOutput struct { + SDKShapeTraits bool `type:"structure"` +} +// String returns the string representation +func (s DescribeEnvironmentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEnvironmentsOutput) GoString() string { + return s.String() +} + +// This documentation target is not reported in the API reference. +type DescribeEventsInput struct { // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // include only those associated with this application. - ApplicationName *string `min:"1" type:"string"` + ApplicationName *string `type:"string"` // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // those that occur up to, but not including, the EndTime. @@ -2970,11 +2425,11 @@ type DescribeEventsInput struct { // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // those associated with this environment. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // Specifies the maximum number of events that can be returned, beginning with // the most recent event. - MaxRecords *int64 `min:"1" type:"integer"` + MaxRecords *int64 `type:"integer"` // Pagination token. If specified, the events return the next batch of results. NextToken *string `type:"string"` @@ -2993,11 +2448,17 @@ type DescribeEventsInput struct { // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // those that are associated with this environment configuration. - TemplateName *string `min:"1" type:"string"` + TemplateName *string `type:"string"` // If specified, AWS Elastic Beanstalk restricts the returned descriptions to // those associated with this application version. - VersionLabel *string `min:"1" type:"string"` + VersionLabel *string `type:"string"` + + metadataDescribeEventsInput `json:"-" xml:"-"` +} + +type metadataDescribeEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3010,41 +2471,20 @@ func (s DescribeEventsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"} - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - if s.MaxRecords != nil && *s.MaxRecords < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxRecords", 1)) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.VersionLabel != nil && len(*s.VersionLabel) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Result message wrapping a list of event descriptions. type DescribeEventsOutput struct { - _ struct{} `type:"structure"` - // A list of EventDescription. Events []*EventDescription `type:"list"` // If returned, this indicates that there are more results to obtain. Use this // token in the next DescribeEvents call to get the next batch of events. NextToken *string `type:"string"` + + metadataDescribeEventsOutput `json:"-" xml:"-"` +} + +type metadataDescribeEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3059,20 +2499,24 @@ func (s DescribeEventsOutput) GoString() string { // See the example below to learn how to create a request body. type DescribeInstancesHealthInput struct { - _ struct{} `type:"structure"` - // Specifies the response elements you wish to receive. If no attribute names - // are specified, AWS Elastic Beanstalk only returns a list of instances. + // are specified, AWS Elastic Beanstalk returns all response elements. AttributeNames []*string `type:"list"` // Specifies the AWS Elastic Beanstalk environment ID. EnvironmentId *string `type:"string"` // Specifies the AWS Elastic Beanstalk environment name. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // Specifies the next token of the request. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` + + metadataDescribeInstancesHealthInput `json:"-" xml:"-"` +} + +type metadataDescribeInstancesHealthInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3085,34 +2529,22 @@ func (s DescribeInstancesHealthInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeInstancesHealthInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeInstancesHealthInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // See the example below for a sample response. type DescribeInstancesHealthOutput struct { - _ struct{} `type:"structure"` - // Contains the response body with information about the health of the instance. InstanceHealthList []*SingleInstanceHealth `type:"list"` // The next token. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` // The date and time the information was last refreshed. RefreshedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataDescribeInstancesHealthOutput `json:"-" xml:"-"` +} + +type metadataDescribeInstancesHealthOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3127,8 +2559,6 @@ func (s DescribeInstancesHealthOutput) GoString() string { // Describes the properties of an environment. type EnvironmentDescription struct { - _ struct{} `type:"structure"` - // Indicates if there is an in-progress environment configuration update or // application version deployment that you can cancel. // @@ -3138,10 +2568,10 @@ type EnvironmentDescription struct { AbortableOperationInProgress *bool `type:"boolean"` // The name of the application associated with this environment. - ApplicationName *string `min:"1" type:"string"` + ApplicationName *string `type:"string"` // The URL to the CNAME for this environment. - CNAME *string `min:"1" type:"string"` + CNAME *string `type:"string"` // The creation date for this environment. DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -3159,22 +2589,26 @@ type EnvironmentDescription struct { // The ID of this environment. EnvironmentId *string `type:"string"` - // A list of links to other environments in the same group. - EnvironmentLinks []*EnvironmentLink `type:"list"` - // The name of this environment. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // Describes the health status of the environment. AWS Elastic Beanstalk indicates // the failure levels for a running environment: // - // Red: Indicates the environment is not responsive. Occurs when three or - // more consecutive failures occur for an environment. Yellow: Indicates that - // something is wrong. Occurs when two consecutive failures occur for an environment. - // Green: Indicates the environment is healthy and fully functional. Grey: - // Default health for a new environment. The environment is not fully launched - // and health checks have not started or health checks are suspended during - // an UpdateEnvironment or RestartEnvironement request. Default: Grey + // Red : Indicates the environment is not working. + // + // Yellow: Indicates that something is wrong, the application might not + // be available, but the instances appear running. + // + // Green: Indicates the environment is healthy and fully functional. + // + // Red: Indicates the environment is not responsive. Occurs when three + // or more consecutive failures occur for an environment. Yellow: Indicates + // that something is wrong. Occurs when two consecutive failures occur for an + // environment. Green: Indicates the environment is healthy and fully functional. + // Grey: Default health for a new environment. The environment is not fully + // launched and health checks have not started or health checks are suspended + // during an UpdateEnvironment or RestartEnvironement request. Default: Grey Health *string `type:"string" enum:"EnvironmentHealth"` // Returns the health status of the application running in your environment. @@ -3197,47 +2631,33 @@ type EnvironmentDescription struct { Status *string `type:"string" enum:"EnvironmentStatus"` // The name of the configuration template used to originally launch this environment. - TemplateName *string `min:"1" type:"string"` + TemplateName *string `type:"string"` // Describes the current tier of this environment. Tier *EnvironmentTier `type:"structure"` // The application version deployed in this environment. - VersionLabel *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s EnvironmentDescription) String() string { - return awsutil.Prettify(s) -} + VersionLabel *string `type:"string"` -// GoString returns the string representation -func (s EnvironmentDescription) GoString() string { - return s.String() + metadataEnvironmentDescription `json:"-" xml:"-"` } -// Result message containing a list of environment descriptions. -type EnvironmentDescriptionsMessage struct { - _ struct{} `type:"structure"` - - // Returns an EnvironmentDescription list. - Environments []*EnvironmentDescription `type:"list"` +type metadataEnvironmentDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s EnvironmentDescriptionsMessage) String() string { +func (s EnvironmentDescription) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EnvironmentDescriptionsMessage) GoString() string { +func (s EnvironmentDescription) GoString() string { return s.String() } // The information retrieved from the Amazon EC2 instances. type EnvironmentInfoDescription struct { - _ struct{} `type:"structure"` - // The Amazon EC2 Instance ID for this information. Ec2InstanceId *string `type:"string"` @@ -3249,52 +2669,31 @@ type EnvironmentInfoDescription struct { // The time stamp when this information was retrieved. SampleTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` -} -// String returns the string representation -func (s EnvironmentInfoDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnvironmentInfoDescription) GoString() string { - return s.String() + metadataEnvironmentInfoDescription `json:"-" xml:"-"` } -// A link to another environment, defined in the environment's manifest. Links -// provide connection information in system properties that can be used to connect -// to another environment in the same group. See Environment Manifest (env.yaml) -// (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-cfg-manifest.html) -// for details. -type EnvironmentLink struct { - _ struct{} `type:"structure"` - - // The name of the linked environment (the dependency). - EnvironmentName *string `type:"string"` - - // The name of the link. - LinkName *string `type:"string"` +type metadataEnvironmentInfoDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s EnvironmentLink) String() string { +func (s EnvironmentInfoDescription) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EnvironmentLink) GoString() string { +func (s EnvironmentInfoDescription) GoString() string { return s.String() } // Describes the AWS resources in use by this environment. This data is live. type EnvironmentResourceDescription struct { - _ struct{} `type:"structure"` - // The AutoScalingGroups used by this environment. AutoScalingGroups []*AutoScalingGroup `type:"list"` // The name of the environment. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // The Amazon EC2 instances used by this environment. Instances []*Instance `type:"list"` @@ -3310,6 +2709,12 @@ type EnvironmentResourceDescription struct { // The AutoScaling triggers in use by this environment. Triggers []*Trigger `type:"list"` + + metadataEnvironmentResourceDescription `json:"-" xml:"-"` +} + +type metadataEnvironmentResourceDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3325,10 +2730,14 @@ func (s EnvironmentResourceDescription) GoString() string { // Describes the AWS resources in use by this environment. This data is not // live data. type EnvironmentResourcesDescription struct { - _ struct{} `type:"structure"` - // Describes the LoadBalancer. LoadBalancer *LoadBalancerDescription `type:"structure"` + + metadataEnvironmentResourcesDescription `json:"-" xml:"-"` +} + +type metadataEnvironmentResourcesDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3343,8 +2752,6 @@ func (s EnvironmentResourcesDescription) GoString() string { // Describes the properties of an environment tier type EnvironmentTier struct { - _ struct{} `type:"structure"` - // The name of this environment tier. Name *string `type:"string"` @@ -3353,6 +2760,12 @@ type EnvironmentTier struct { // The version of this environment tier. Version *string `type:"string"` + + metadataEnvironmentTier `json:"-" xml:"-"` +} + +type metadataEnvironmentTier struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3367,13 +2780,11 @@ func (s EnvironmentTier) GoString() string { // Describes an event. type EventDescription struct { - _ struct{} `type:"structure"` - // The application associated with the event. - ApplicationName *string `min:"1" type:"string"` + ApplicationName *string `type:"string"` // The name of the environment associated with this event. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // The date when the event occurred. EventDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -3388,10 +2799,16 @@ type EventDescription struct { Severity *string `type:"string" enum:"EventSeverity"` // The name of the configuration associated with this event. - TemplateName *string `min:"1" type:"string"` + TemplateName *string `type:"string"` // The release label for the application version associated with this event. - VersionLabel *string `min:"1" type:"string"` + VersionLabel *string `type:"string"` + + metadataEventDescription `json:"-" xml:"-"` +} + +type metadataEventDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3406,10 +2823,14 @@ func (s EventDescription) GoString() string { // The description of an Amazon EC2 instance. type Instance struct { - _ struct{} `type:"structure"` - // The ID of the Amazon EC2 instance. Id *string `type:"string"` + + metadataInstance `json:"-" xml:"-"` +} + +type metadataInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3425,8 +2846,6 @@ func (s Instance) GoString() string { // Represents summary information about the health of an instance. For more // information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). type InstanceHealthSummary struct { - _ struct{} `type:"structure"` - // Red. The health agent is reporting a high number of request failures or other // issues for an instance or environment. Degraded *int64 `type:"integer"` @@ -3456,6 +2875,12 @@ type InstanceHealthSummary struct { // Yellow. The health agent is reporting a moderate number of request failures // or other issues for an instance or environment. Warning *int64 `type:"integer"` + + metadataInstanceHealthSummary `json:"-" xml:"-"` +} + +type metadataInstanceHealthSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3471,8 +2896,6 @@ func (s InstanceHealthSummary) GoString() string { // Represents the average latency for the slowest X percent of requests over // the last 10 seconds. type Latency struct { - _ struct{} `type:"structure"` - // The average latency for the slowest 90 percent of requests over the last // 10 seconds. P10 *float64 `type:"double"` @@ -3504,6 +2927,12 @@ type Latency struct { // The average latency for the slowest 0.1 percent of requests over the last // 10 seconds. P999 *float64 `type:"double"` + + metadataLatency `json:"-" xml:"-"` +} + +type metadataLatency struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3518,10 +2947,14 @@ func (s Latency) GoString() string { // Describes an Auto Scaling launch configuration. type LaunchConfiguration struct { - _ struct{} `type:"structure"` - // The name of the launch configuration. Name *string `type:"string"` + + metadataLaunchConfiguration `json:"-" xml:"-"` +} + +type metadataLaunchConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3535,7 +2968,11 @@ func (s LaunchConfiguration) GoString() string { } type ListAvailableSolutionStacksInput struct { - _ struct{} `type:"structure"` + metadataListAvailableSolutionStacksInput `json:"-" xml:"-"` +} + +type metadataListAvailableSolutionStacksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3550,13 +2987,17 @@ func (s ListAvailableSolutionStacksInput) GoString() string { // A list of available AWS Elastic Beanstalk solution stacks. type ListAvailableSolutionStacksOutput struct { - _ struct{} `type:"structure"` - // A list of available solution stacks and their SolutionStackDescription. SolutionStackDetails []*SolutionStackDescription `type:"list"` // A list of available solution stacks. SolutionStacks []*string `type:"list"` + + metadataListAvailableSolutionStacksOutput `json:"-" xml:"-"` +} + +type metadataListAvailableSolutionStacksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3571,13 +3012,17 @@ func (s ListAvailableSolutionStacksOutput) GoString() string { // Describes the properties of a Listener for the LoadBalancer. type Listener struct { - _ struct{} `type:"structure"` - // The port that is used by the Listener. Port *int64 `type:"integer"` // The protocol that is used by the Listener. Protocol *string `type:"string"` + + metadataListener `json:"-" xml:"-"` +} + +type metadataListener struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3592,128 +3037,69 @@ func (s Listener) GoString() string { // Describes a LoadBalancer. type LoadBalancer struct { - _ struct{} `type:"structure"` - // The name of the LoadBalancer. Name *string `type:"string"` -} - -// String returns the string representation -func (s LoadBalancer) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s LoadBalancer) GoString() string { - return s.String() -} - -// Describes the details of a LoadBalancer. -type LoadBalancerDescription struct { - _ struct{} `type:"structure"` - // The domain name of the LoadBalancer. - Domain *string `type:"string"` - - // A list of Listeners used by the LoadBalancer. - Listeners []*Listener `type:"list"` - - // The name of the LoadBalancer. - LoadBalancerName *string `type:"string"` + metadataLoadBalancer `json:"-" xml:"-"` } -// String returns the string representation -func (s LoadBalancerDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s LoadBalancerDescription) GoString() string { - return s.String() -} - -// The record of an upcoming or in-progress managed action. -type ManagedAction struct { - _ struct{} `type:"structure"` - - // A description of the managed action. - ActionDescription *string `type:"string"` - - // A unique identifier for the managed action. - ActionId *string `type:"string"` - - // The type of managed action. - ActionType *string `type:"string" enum:"ActionType"` - - // The status of the managed action. If the action is Scheduled, you can apply - // it immediately with ApplyEnvironmentManagedAction. - Status *string `type:"string" enum:"ActionStatus"` - - // The start time of the maintenance window in which the managed action will - // execute. - WindowStartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` +type metadataLoadBalancer struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ManagedAction) String() string { +func (s LoadBalancer) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ManagedAction) GoString() string { +func (s LoadBalancer) GoString() string { return s.String() } -// The record of a completed or failed managed action. -type ManagedActionHistoryItem struct { - _ struct{} `type:"structure"` - - // A description of the managed action. - ActionDescription *string `type:"string"` - - // A unique identifier for the managed action. - ActionId *string `type:"string"` - - // The type of the managed action. - ActionType *string `type:"string" enum:"ActionType"` - - // The date and time that the action started executing. - ExecutedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` +// Describes the details of a LoadBalancer. +type LoadBalancerDescription struct { + // The domain name of the LoadBalancer. + Domain *string `type:"string"` - // If the action failed, a description of the failure. - FailureDescription *string `type:"string"` + // A list of Listeners used by the LoadBalancer. + Listeners []*Listener `type:"list"` - // If the action failed, the type of failure. - FailureType *string `type:"string" enum:"FailureType"` + // The name of the LoadBalancer. + LoadBalancerName *string `type:"string"` - // The date and time that the action finished executing. - FinishedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` + metadataLoadBalancerDescription `json:"-" xml:"-"` +} - // The status of the action. - Status *string `type:"string" enum:"ActionHistoryStatus"` +type metadataLoadBalancerDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ManagedActionHistoryItem) String() string { +func (s LoadBalancerDescription) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ManagedActionHistoryItem) GoString() string { +func (s LoadBalancerDescription) GoString() string { return s.String() } // A regular expression representing a restriction on a string configuration // option value. type OptionRestrictionRegex struct { - _ struct{} `type:"structure"` - // A unique name representing this regular expression. Label *string `type:"string"` // The regular expression pattern that a string configuration option value with // this restriction must match. Pattern *string `type:"string"` + + metadataOptionRestrictionRegex `json:"-" xml:"-"` +} + +type metadataOptionRestrictionRegex struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3728,8 +3114,6 @@ func (s OptionRestrictionRegex) GoString() string { // A specification identifying an individual configuration option. type OptionSpecification struct { - _ struct{} `type:"structure"` - // A unique namespace identifying the option's associated AWS resource. Namespace *string `type:"string"` @@ -3737,7 +3121,13 @@ type OptionSpecification struct { OptionName *string `type:"string"` // A unique resource name for a time-based scaling configuration option. - ResourceName *string `min:"1" type:"string"` + ResourceName *string `type:"string"` + + metadataOptionSpecification `json:"-" xml:"-"` +} + +type metadataOptionSpecification struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3750,28 +3140,19 @@ func (s OptionSpecification) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *OptionSpecification) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OptionSpecification"} - if s.ResourceName != nil && len(*s.ResourceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a queue. type Queue struct { - _ struct{} `type:"structure"` - // The name of the queue. Name *string `type:"string"` // The URL of the queue. URL *string `type:"string"` + + metadataQueue `json:"-" xml:"-"` +} + +type metadataQueue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3785,8 +3166,6 @@ func (s Queue) GoString() string { } type RebuildEnvironmentInput struct { - _ struct{} `type:"structure"` - // The ID of the environment to rebuild. // // Condition: You must specify either this or an EnvironmentName, or both. @@ -3799,7 +3178,13 @@ type RebuildEnvironmentInput struct { // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` + + metadataRebuildEnvironmentInput `json:"-" xml:"-"` +} + +type metadataRebuildEnvironmentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3812,21 +3197,12 @@ func (s RebuildEnvironmentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RebuildEnvironmentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RebuildEnvironmentInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RebuildEnvironmentOutput struct { + metadataRebuildEnvironmentOutput `json:"-" xml:"-"` } -type RebuildEnvironmentOutput struct { - _ struct{} `type:"structure"` +type metadataRebuildEnvironmentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3839,33 +3215,36 @@ func (s RebuildEnvironmentOutput) GoString() string { return s.String() } -// Request to retrieve logs from an environment and store them in your Elastic -// Beanstalk storage bucket. +// This documentation target is not reported in the API reference. type RequestEnvironmentInfoInput struct { - _ struct{} `type:"structure"` - // The ID of the environment of the requested data. // - // If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue + // If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue // error. // - // Condition: You must specify either this or an EnvironmentName, or both. + // Condition: You must specify either this or an EnvironmentName, or both. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` // The name of the environment of the requested data. // - // If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue + // If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue // error. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // The type of information to request. InfoType *string `type:"string" required:"true" enum:"EnvironmentInfoType"` + + metadataRequestEnvironmentInfoInput `json:"-" xml:"-"` +} + +type metadataRequestEnvironmentInfoInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3878,24 +3257,12 @@ func (s RequestEnvironmentInfoInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RequestEnvironmentInfoInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RequestEnvironmentInfoInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - if s.InfoType == nil { - invalidParams.Add(request.NewErrParamRequired("InfoType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RequestEnvironmentInfoOutput struct { + metadataRequestEnvironmentInfoOutput `json:"-" xml:"-"` } -type RequestEnvironmentInfoOutput struct { - _ struct{} `type:"structure"` +type metadataRequestEnvironmentInfoOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3909,8 +3276,6 @@ func (s RequestEnvironmentInfoOutput) GoString() string { } type RestartAppServerInput struct { - _ struct{} `type:"structure"` - // The ID of the environment to restart the server for. // // Condition: You must specify either this or an EnvironmentName, or both. @@ -3923,7 +3288,13 @@ type RestartAppServerInput struct { // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` + + metadataRestartAppServerInput `json:"-" xml:"-"` +} + +type metadataRestartAppServerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3936,21 +3307,12 @@ func (s RestartAppServerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestartAppServerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestartAppServerInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RestartAppServerOutput struct { + metadataRestartAppServerOutput `json:"-" xml:"-"` } -type RestartAppServerOutput struct { - _ struct{} `type:"structure"` +type metadataRestartAppServerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3963,15 +3325,13 @@ func (s RestartAppServerOutput) GoString() string { return s.String() } -// Request to download logs retrieved with RequestEnvironmentInfo. +// This documentation target is not reported in the API reference. type RetrieveEnvironmentInfoInput struct { - _ struct{} `type:"structure"` - // The ID of the data's environment. // - // If no such environment is found, returns an InvalidParameterValue error. + // If no such environment is found, returns an InvalidParameterValue error. // - // Condition: You must specify either this or an EnvironmentName, or both. + // Condition: You must specify either this or an EnvironmentName, or both. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` @@ -3983,10 +3343,16 @@ type RetrieveEnvironmentInfoInput struct { // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // The type of information to retrieve. InfoType *string `type:"string" required:"true" enum:"EnvironmentInfoType"` + + metadataRetrieveEnvironmentInfoInput `json:"-" xml:"-"` +} + +type metadataRetrieveEnvironmentInfoInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3999,28 +3365,16 @@ func (s RetrieveEnvironmentInfoInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RetrieveEnvironmentInfoInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RetrieveEnvironmentInfoInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - if s.InfoType == nil { - invalidParams.Add(request.NewErrParamRequired("InfoType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Result message containing a description of the requested environment info. type RetrieveEnvironmentInfoOutput struct { - _ struct{} `type:"structure"` - // The EnvironmentInfoDescription of the environment. EnvironmentInfo []*EnvironmentInfoDescription `type:"list"` + + metadataRetrieveEnvironmentInfoOutput `json:"-" xml:"-"` +} + +type metadataRetrieveEnvironmentInfoOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4035,13 +3389,17 @@ func (s RetrieveEnvironmentInfoOutput) GoString() string { // A specification of a location in Amazon S3. type S3Location struct { - _ struct{} `type:"structure"` - // The Amazon S3 bucket where the data is located. S3Bucket *string `type:"string"` // The Amazon S3 key where the data is located. S3Key *string `type:"string"` + + metadataS3Location `json:"-" xml:"-"` +} + +type metadataS3Location struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4058,14 +3416,9 @@ func (s S3Location) GoString() string { // the AWS Elastic Beanstalk environment. Use the InstanceId property to specify // the application instance for which you'd like to return data. type SingleInstanceHealth struct { - _ struct{} `type:"structure"` - // Represents the application metrics for a specified environment. ApplicationMetrics *ApplicationMetrics `type:"structure"` - // The availability zone in which the instance runs. - AvailabilityZone *string `type:"string"` - // Represents the causes, which provide more information about the current health // status. Causes []*string `type:"list"` @@ -4075,18 +3428,12 @@ type SingleInstanceHealth struct { // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). Color *string `type:"string"` - // Information about the most recent deployment to an instance. - Deployment *Deployment `type:"structure"` - // Returns the health status of the specified instance. For more information, - // see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html). + // see . HealthStatus *string `type:"string"` // The ID of the Amazon EC2 instance. - InstanceId *string `min:"1" type:"string"` - - // The instance's type. - InstanceType *string `type:"string"` + InstanceId *string `type:"string"` // The time at which the EC2 instance was launched. LaunchedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -4094,6 +3441,12 @@ type SingleInstanceHealth struct { // Represents CPU utilization and load average information for applications // running in the specified environment. System *SystemStatus `type:"structure"` + + metadataSingleInstanceHealth `json:"-" xml:"-"` +} + +type metadataSingleInstanceHealth struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4108,13 +3461,17 @@ func (s SingleInstanceHealth) GoString() string { // Describes the solution stack. type SolutionStackDescription struct { - _ struct{} `type:"structure"` - // The permitted file types allowed for a solution stack. PermittedFileTypes []*string `type:"list"` // The name of the solution stack. SolutionStackName *string `type:"string"` + + metadataSolutionStackDescription `json:"-" xml:"-"` +} + +type metadataSolutionStackDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4129,13 +3486,17 @@ func (s SolutionStackDescription) GoString() string { // A specification for an environment configuration type SourceConfiguration struct { - _ struct{} `type:"structure"` - // The name of the application associated with the configuration. - ApplicationName *string `min:"1" type:"string"` + ApplicationName *string `type:"string"` // The name of the configuration template. - TemplateName *string `min:"1" type:"string"` + TemplateName *string `type:"string"` + + metadataSourceConfiguration `json:"-" xml:"-"` +} + +type metadataSourceConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4148,28 +3509,10 @@ func (s SourceConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SourceConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SourceConfiguration"} - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the percentage of requests over the last 10 seconds that resulted // in each type of status code response. For more information, see Status Code // Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). type StatusCodes struct { - _ struct{} `type:"structure"` - // The percentage of requests over the last 10 seconds that resulted in a 2xx // (200, 201, etc.) status code. Status2xx *int64 `type:"integer"` @@ -4185,6 +3528,12 @@ type StatusCodes struct { // The percentage of requests over the last 10 seconds that resulted in a 5xx // (500, 501, etc.) status code. Status5xx *int64 `type:"integer"` + + metadataStatusCodes `json:"-" xml:"-"` +} + +type metadataStatusCodes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4199,8 +3548,6 @@ func (s StatusCodes) GoString() string { // Swaps the CNAMEs of two environments. type SwapEnvironmentCNAMEsInput struct { - _ struct{} `type:"structure"` - // The ID of the destination environment. // // Condition: You must specify at least the DestinationEnvironmentID or the @@ -4213,7 +3560,7 @@ type SwapEnvironmentCNAMEsInput struct { // Condition: You must specify at least the DestinationEnvironmentID or the // DestinationEnvironmentName. You may also specify both. You must specify the // SourceEnvironmentName with the DestinationEnvironmentName. - DestinationEnvironmentName *string `min:"4" type:"string"` + DestinationEnvironmentName *string `type:"string"` // The ID of the source environment. // @@ -4227,7 +3574,13 @@ type SwapEnvironmentCNAMEsInput struct { // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. // You may also specify both. If you specify the SourceEnvironmentName, you // must specify the DestinationEnvironmentName. - SourceEnvironmentName *string `min:"4" type:"string"` + SourceEnvironmentName *string `type:"string"` + + metadataSwapEnvironmentCNAMEsInput `json:"-" xml:"-"` +} + +type metadataSwapEnvironmentCNAMEsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4240,24 +3593,12 @@ func (s SwapEnvironmentCNAMEsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SwapEnvironmentCNAMEsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SwapEnvironmentCNAMEsInput"} - if s.DestinationEnvironmentName != nil && len(*s.DestinationEnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("DestinationEnvironmentName", 4)) - } - if s.SourceEnvironmentName != nil && len(*s.SourceEnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("SourceEnvironmentName", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SwapEnvironmentCNAMEsOutput struct { + metadataSwapEnvironmentCNAMEsOutput `json:"-" xml:"-"` } -type SwapEnvironmentCNAMEsOutput struct { - _ struct{} `type:"structure"` +type metadataSwapEnvironmentCNAMEsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4273,8 +3614,6 @@ func (s SwapEnvironmentCNAMEsOutput) GoString() string { // Represents CPU utilization and load average information for applications // running in the specified environment. type SystemStatus struct { - _ struct{} `type:"structure"` - // Represents CPU utilization information from the specified instance that belongs // to the AWS Elastic Beanstalk environment. Use the instanceId property to // specify the application instance for which you'd like to return data. @@ -4283,6 +3622,12 @@ type SystemStatus struct { // Load average in the last 1-minute and 5-minute periods. For more information, // see Operating System Metrics (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-metrics.html#health-enhanced-metrics-os). LoadAverage []*float64 `type:"list"` + + metadataSystemStatus `json:"-" xml:"-"` +} + +type metadataSystemStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4297,13 +3642,17 @@ func (s SystemStatus) GoString() string { // Describes a tag applied to a resource in an environment. type Tag struct { - _ struct{} `type:"structure"` - // The key of the tag. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // The value of the tag. - Value *string `min:"1" type:"string"` + Value *string `type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4316,26 +3665,8 @@ func (s Tag) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to terminate an environment. +// This documentation target is not reported in the API reference. type TerminateEnvironmentInput struct { - _ struct{} `type:"structure"` - // The ID of the environment to terminate. // // Condition: You must specify either this or an EnvironmentName, or both. @@ -4348,16 +3679,18 @@ type TerminateEnvironmentInput struct { // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. - EnvironmentName *string `min:"4" type:"string"` - - // Terminates the target environment even if another environment in the same - // group is dependent on it. - ForceTerminate *bool `type:"boolean"` + EnvironmentName *string `type:"string"` // Indicates whether the associated AWS resources should shut down when the // environment is terminated: // - // true: The specified environment as well as the associated AWS resources, + // true: (default) The user AWS resources (for example, the Auto Scaling + // group, LoadBalancer, etc.) are terminated along with the environment. + // + // false: The environment is removed from the AWS Elastic Beanstalk but + // the AWS resources continue to operate. + // + // true: The specified environment as well as the associated AWS resources, // such as Auto Scaling group and LoadBalancer, are terminated. false: AWS // Elastic Beanstalk resource management is removed from the environment, but // the AWS resources continue to operate. For more information, see the @@ -4367,6 +3700,12 @@ type TerminateEnvironmentInput struct { // // Valid Values: true | false TerminateResources *bool `type:"boolean"` + + metadataTerminateEnvironmentInput `json:"-" xml:"-"` +} + +type metadataTerminateEnvironmentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4379,25 +3718,16 @@ func (s TerminateEnvironmentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TerminateEnvironmentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TerminateEnvironmentInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a trigger. type Trigger struct { - _ struct{} `type:"structure"` - // The name of the trigger. Name *string `type:"string"` + + metadataTrigger `json:"-" xml:"-"` +} + +type metadataTrigger struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4410,18 +3740,22 @@ func (s Trigger) GoString() string { return s.String() } -// Request to update an application. +// This documentation target is not reported in the API reference. type UpdateApplicationInput struct { - _ struct{} `type:"structure"` - // The name of the application to update. If no such application is found, UpdateApplication // returns an InvalidParameterValue error. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // A new description for the application. // // Default: If not specified, AWS Elastic Beanstalk does not update the description. Description *string `type:"string"` + + metadataUpdateApplicationInput `json:"-" xml:"-"` +} + +type metadataUpdateApplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4434,30 +3768,12 @@ func (s UpdateApplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"} - 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 -} - type UpdateApplicationVersionInput struct { - _ struct{} `type:"structure"` - // The name of the application associated with this version. // // If no application is found with this name, UpdateApplication returns an // InvalidParameterValue error. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // A new description for this release. Description *string `type:"string"` @@ -4466,7 +3782,13 @@ type UpdateApplicationVersionInput struct { // // If no application version is found with this label, UpdateApplication returns // an InvalidParameterValue error. - VersionLabel *string `min:"1" type:"string" required:"true"` + VersionLabel *string `type:"string" required:"true"` + + metadataUpdateApplicationVersionInput `json:"-" xml:"-"` +} + +type metadataUpdateApplicationVersionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4479,38 +3801,14 @@ func (s UpdateApplicationVersionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateApplicationVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationVersionInput"} - 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.VersionLabel == nil { - invalidParams.Add(request.NewErrParamRequired("VersionLabel")) - } - if s.VersionLabel != nil && len(*s.VersionLabel) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result message containing the options for the specified solution stack. type UpdateConfigurationTemplateInput struct { - _ struct{} `type:"structure"` - // The name of the application associated with the configuration template to // update. // // If no application is found with this name, UpdateConfigurationTemplate // returns an InvalidParameterValue error. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // A new description for the configuration. Description *string `type:"string"` @@ -4528,7 +3826,13 @@ type UpdateConfigurationTemplateInput struct { // // If no configuration template is found with this name, UpdateConfigurationTemplate // returns an InvalidParameterValue error. - TemplateName *string `min:"1" type:"string" required:"true"` + TemplateName *string `type:"string" required:"true"` + + metadataUpdateConfigurationTemplateInput `json:"-" xml:"-"` +} + +type metadataUpdateConfigurationTemplateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4541,65 +3845,18 @@ func (s UpdateConfigurationTemplateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateConfigurationTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationTemplateInput"} - 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.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.OptionSettings != nil { - for i, v := range s.OptionSettings { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams)) - } - } - } - if s.OptionsToRemove != nil { - for i, v := range s.OptionsToRemove { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionsToRemove", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Request to update an environment. +// This documentation target is not reported in the API reference. type UpdateEnvironmentInput struct { - _ struct{} `type:"structure"` - - // The name of the application with which the environment is associated. - ApplicationName *string `min:"1" type:"string"` - // If this parameter is specified, AWS Elastic Beanstalk updates the description // of this environment. Description *string `type:"string"` // The ID of the environment to update. // - // If no environment with this ID exists, AWS Elastic Beanstalk returns an + // If no environment with this ID exists, AWS Elastic Beanstalk returns an // InvalidParameterValue error. // - // Condition: You must specify either this or an EnvironmentName, or both. + // Condition: You must specify either this or an EnvironmentName, or both. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. EnvironmentId *string `type:"string"` @@ -4607,17 +3864,10 @@ type UpdateEnvironmentInput struct { // The name of the environment to update. If no environment with this name exists, // AWS Elastic Beanstalk returns an InvalidParameterValue error. // - // Condition: You must specify either this or an EnvironmentId, or both. If + // Condition: You must specify either this or an EnvironmentId, or both. If // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter // error. - EnvironmentName *string `min:"4" type:"string"` - - // The name of the group to which the target environment belongs. Specify a - // group name only if the environment's name is specified in an environment - // manifest and not with the environment name or environment ID parameters. - // See Environment Manifest (env.yaml) (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-cfg-manifest.html) - // for details. - GroupName *string `min:"1" type:"string"` + EnvironmentName *string `type:"string"` // If specified, AWS Elastic Beanstalk updates the configuration set associated // with the running environment and sets the specified configuration options @@ -4635,18 +3885,24 @@ type UpdateEnvironmentInput struct { // If this parameter is specified, AWS Elastic Beanstalk deploys this configuration // template to the environment. If no such configuration template is found, // AWS Elastic Beanstalk returns an InvalidParameterValue error. - TemplateName *string `min:"1" type:"string"` + TemplateName *string `type:"string"` // This specifies the tier to use to update the environment. // - // Condition: At this time, if you change the tier version, name, or type, + // Condition: At this time, if you change the tier version, name, or type, // AWS Elastic Beanstalk returns InvalidParameterValue error. Tier *EnvironmentTier `type:"structure"` // If this parameter is specified, AWS Elastic Beanstalk deploys the named application // version to the environment. If no such application version is found, returns // an InvalidParameterValue error. - VersionLabel *string `min:"1" type:"string"` + VersionLabel *string `type:"string"` + + metadataUpdateEnvironmentInput `json:"-" xml:"-"` +} + +type metadataUpdateEnvironmentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4659,63 +3915,16 @@ func (s UpdateEnvironmentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateEnvironmentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateEnvironmentInput"} - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.VersionLabel != nil && len(*s.VersionLabel) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1)) - } - if s.OptionSettings != nil { - for i, v := range s.OptionSettings { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams)) - } - } - } - if s.OptionsToRemove != nil { - for i, v := range s.OptionsToRemove { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionsToRemove", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A list of validation messages for a specified configuration template. type ValidateConfigurationSettingsInput struct { - _ struct{} `type:"structure"` - // The name of the application that the configuration template or environment // belongs to. - ApplicationName *string `min:"1" type:"string" required:"true"` + ApplicationName *string `type:"string" required:"true"` // The name of the environment to validate the settings against. // // Condition: You cannot specify both this and a configuration template name. - EnvironmentName *string `min:"4" type:"string"` + EnvironmentName *string `type:"string"` // A list of the options and desired values to evaluate. OptionSettings []*ConfigurationOptionSetting `type:"list" required:"true"` @@ -4723,7 +3932,13 @@ type ValidateConfigurationSettingsInput struct { // The name of the configuration template to validate the settings against. // // Condition: You cannot specify both this and an environment name. - TemplateName *string `min:"1" type:"string"` + TemplateName *string `type:"string"` + + metadataValidateConfigurationSettingsInput `json:"-" xml:"-"` +} + +type metadataValidateConfigurationSettingsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4736,47 +3951,16 @@ func (s ValidateConfigurationSettingsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ValidateConfigurationSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ValidateConfigurationSettingsInput"} - 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.EnvironmentName != nil && len(*s.EnvironmentName) < 4 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4)) - } - if s.OptionSettings == nil { - invalidParams.Add(request.NewErrParamRequired("OptionSettings")) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.OptionSettings != nil { - for i, v := range s.OptionSettings { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides a list of validation messages. type ValidateConfigurationSettingsOutput struct { - _ struct{} `type:"structure"` - // A list of ValidationMessage. Messages []*ValidationMessage `type:"list"` + + metadataValidateConfigurationSettingsOutput `json:"-" xml:"-"` +} + +type metadataValidateConfigurationSettingsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4791,8 +3975,6 @@ func (s ValidateConfigurationSettingsOutput) GoString() string { // An error or warning for a desired configuration option value. type ValidationMessage struct { - _ struct{} `type:"structure"` - // A message describing the error or warning. Message *string `type:"string"` @@ -4802,10 +3984,21 @@ type ValidationMessage struct { // An indication of the severity of this message: // - // error: This message indicates that this is not a valid setting for an + // error: This message indicates that this is not a valid setting for an + // option. + // + // warning: This message is providing information you should take into account. + // + // error: This message indicates that this is not a valid setting for an // option. warning: This message is providing information you should take // into account. Severity *string `type:"string" enum:"ValidationSeverity"` + + metadataValidationMessage `json:"-" xml:"-"` +} + +type metadataValidationMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4818,46 +4011,6 @@ func (s ValidationMessage) GoString() string { return s.String() } -const ( - // @enum ActionHistoryStatus - ActionHistoryStatusCompleted = "Completed" - // @enum ActionHistoryStatus - ActionHistoryStatusFailed = "Failed" - // @enum ActionHistoryStatus - ActionHistoryStatusUnknown = "Unknown" -) - -const ( - // @enum ActionStatus - ActionStatusScheduled = "Scheduled" - // @enum ActionStatus - ActionStatusPending = "Pending" - // @enum ActionStatus - ActionStatusRunning = "Running" - // @enum ActionStatus - ActionStatusUnknown = "Unknown" -) - -const ( - // @enum ActionType - ActionTypeInstanceRefresh = "InstanceRefresh" - // @enum ActionType - ActionTypePlatformUpdate = "PlatformUpdate" - // @enum ActionType - ActionTypeUnknown = "Unknown" -) - -const ( - // @enum ApplicationVersionStatus - ApplicationVersionStatusProcessed = "Processed" - // @enum ApplicationVersionStatus - ApplicationVersionStatusUnprocessed = "Unprocessed" - // @enum ApplicationVersionStatus - ApplicationVersionStatusFailed = "Failed" - // @enum ApplicationVersionStatus - ApplicationVersionStatusProcessing = "Processing" -) - const ( // @enum ConfigurationDeploymentStatus ConfigurationDeploymentStatusDeployed = "deployed" @@ -4958,23 +4111,6 @@ const ( EventSeverityFatal = "FATAL" ) -const ( - // @enum FailureType - FailureTypeUpdateCancelled = "UpdateCancelled" - // @enum FailureType - FailureTypeCancellationFailed = "CancellationFailed" - // @enum FailureType - FailureTypeRollbackFailed = "RollbackFailed" - // @enum FailureType - FailureTypeRollbackSuccessful = "RollbackSuccessful" - // @enum FailureType - FailureTypeInternalFailure = "InternalFailure" - // @enum FailureType - FailureTypeInvalidEnvironmentState = "InvalidEnvironmentState" - // @enum FailureType - FailureTypePermissionsError = "PermissionsError" -) - const ( // @enum InstancesHealthAttribute InstancesHealthAttributeHealthStatus = "HealthStatus" @@ -4991,12 +4127,6 @@ const ( // @enum InstancesHealthAttribute InstancesHealthAttributeSystem = "System" // @enum InstancesHealthAttribute - InstancesHealthAttributeDeployment = "Deployment" - // @enum InstancesHealthAttribute - InstancesHealthAttributeAvailabilityZone = "AvailabilityZone" - // @enum InstancesHealthAttribute - InstancesHealthAttributeInstanceType = "InstanceType" - // @enum InstancesHealthAttribute InstancesHealthAttributeAll = "All" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go index 5bb773757..a4d2d32e1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface.go @@ -14,18 +14,10 @@ type ElasticBeanstalkAPI interface { AbortEnvironmentUpdate(*elasticbeanstalk.AbortEnvironmentUpdateInput) (*elasticbeanstalk.AbortEnvironmentUpdateOutput, error) - ApplyEnvironmentManagedActionRequest(*elasticbeanstalk.ApplyEnvironmentManagedActionInput) (*request.Request, *elasticbeanstalk.ApplyEnvironmentManagedActionOutput) - - ApplyEnvironmentManagedAction(*elasticbeanstalk.ApplyEnvironmentManagedActionInput) (*elasticbeanstalk.ApplyEnvironmentManagedActionOutput, error) - CheckDNSAvailabilityRequest(*elasticbeanstalk.CheckDNSAvailabilityInput) (*request.Request, *elasticbeanstalk.CheckDNSAvailabilityOutput) CheckDNSAvailability(*elasticbeanstalk.CheckDNSAvailabilityInput) (*elasticbeanstalk.CheckDNSAvailabilityOutput, error) - ComposeEnvironmentsRequest(*elasticbeanstalk.ComposeEnvironmentsInput) (*request.Request, *elasticbeanstalk.EnvironmentDescriptionsMessage) - - ComposeEnvironments(*elasticbeanstalk.ComposeEnvironmentsInput) (*elasticbeanstalk.EnvironmentDescriptionsMessage, error) - CreateApplicationRequest(*elasticbeanstalk.CreateApplicationInput) (*request.Request, *elasticbeanstalk.ApplicationDescriptionMessage) CreateApplication(*elasticbeanstalk.CreateApplicationInput) (*elasticbeanstalk.ApplicationDescriptionMessage, error) @@ -82,21 +74,13 @@ type ElasticBeanstalkAPI interface { DescribeEnvironmentHealth(*elasticbeanstalk.DescribeEnvironmentHealthInput) (*elasticbeanstalk.DescribeEnvironmentHealthOutput, error) - DescribeEnvironmentManagedActionHistoryRequest(*elasticbeanstalk.DescribeEnvironmentManagedActionHistoryInput) (*request.Request, *elasticbeanstalk.DescribeEnvironmentManagedActionHistoryOutput) - - DescribeEnvironmentManagedActionHistory(*elasticbeanstalk.DescribeEnvironmentManagedActionHistoryInput) (*elasticbeanstalk.DescribeEnvironmentManagedActionHistoryOutput, error) - - DescribeEnvironmentManagedActionsRequest(*elasticbeanstalk.DescribeEnvironmentManagedActionsInput) (*request.Request, *elasticbeanstalk.DescribeEnvironmentManagedActionsOutput) - - DescribeEnvironmentManagedActions(*elasticbeanstalk.DescribeEnvironmentManagedActionsInput) (*elasticbeanstalk.DescribeEnvironmentManagedActionsOutput, error) - DescribeEnvironmentResourcesRequest(*elasticbeanstalk.DescribeEnvironmentResourcesInput) (*request.Request, *elasticbeanstalk.DescribeEnvironmentResourcesOutput) DescribeEnvironmentResources(*elasticbeanstalk.DescribeEnvironmentResourcesInput) (*elasticbeanstalk.DescribeEnvironmentResourcesOutput, error) - DescribeEnvironmentsRequest(*elasticbeanstalk.DescribeEnvironmentsInput) (*request.Request, *elasticbeanstalk.EnvironmentDescriptionsMessage) + DescribeEnvironmentsRequest(*elasticbeanstalk.DescribeEnvironmentsInput) (*request.Request, *elasticbeanstalk.DescribeEnvironmentsOutput) - DescribeEnvironments(*elasticbeanstalk.DescribeEnvironmentsInput) (*elasticbeanstalk.EnvironmentDescriptionsMessage, error) + DescribeEnvironments(*elasticbeanstalk.DescribeEnvironmentsInput) (*elasticbeanstalk.DescribeEnvironmentsOutput, error) DescribeEventsRequest(*elasticbeanstalk.DescribeEventsInput) (*request.Request, *elasticbeanstalk.DescribeEventsOutput) @@ -156,5 +140,3 @@ type ElasticBeanstalkAPI interface { ValidateConfigurationSettings(*elasticbeanstalk.ValidateConfigurationSettingsInput) (*elasticbeanstalk.ValidateConfigurationSettingsOutput, error) } - -var _ ElasticBeanstalkAPI = (*elasticbeanstalk.ElasticBeanstalk)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface_test.go new file mode 100644 index 000000000..47578238b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elasticbeanstalkiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/elasticbeanstalk" + "github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*elasticbeanstalkiface.ElasticBeanstalkAPI)(nil), elasticbeanstalk.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go index 9a6a634c2..41f99b9ec 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elasticbeanstalk" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElasticBeanstalk_AbortEnvironmentUpdate() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.AbortEnvironmentUpdateInput{ EnvironmentId: aws.String("EnvironmentId"), @@ -35,29 +34,8 @@ func ExampleElasticBeanstalk_AbortEnvironmentUpdate() { fmt.Println(resp) } -func ExampleElasticBeanstalk_ApplyEnvironmentManagedAction() { - svc := elasticbeanstalk.New(session.New()) - - params := &elasticbeanstalk.ApplyEnvironmentManagedActionInput{ - ActionId: aws.String("String"), // Required - EnvironmentId: aws.String("String"), - EnvironmentName: aws.String("String"), - } - resp, err := svc.ApplyEnvironmentManagedAction(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleElasticBeanstalk_CheckDNSAvailability() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.CheckDNSAvailabilityInput{ CNAMEPrefix: aws.String("DNSCnamePrefix"), // Required @@ -75,32 +53,8 @@ func ExampleElasticBeanstalk_CheckDNSAvailability() { fmt.Println(resp) } -func ExampleElasticBeanstalk_ComposeEnvironments() { - svc := elasticbeanstalk.New(session.New()) - - params := &elasticbeanstalk.ComposeEnvironmentsInput{ - ApplicationName: aws.String("ApplicationName"), - GroupName: aws.String("GroupName"), - VersionLabels: []*string{ - aws.String("VersionLabel"), // Required - // More values... - }, - } - resp, err := svc.ComposeEnvironments(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleElasticBeanstalk_CreateApplication() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.CreateApplicationInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -120,14 +74,13 @@ func ExampleElasticBeanstalk_CreateApplication() { } func ExampleElasticBeanstalk_CreateApplicationVersion() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.CreateApplicationVersionInput{ ApplicationName: aws.String("ApplicationName"), // Required VersionLabel: aws.String("VersionLabel"), // Required AutoCreateApplication: aws.Bool(true), Description: aws.String("Description"), - Process: aws.Bool(true), SourceBundle: &elasticbeanstalk.S3Location{ S3Bucket: aws.String("S3Bucket"), S3Key: aws.String("S3Key"), @@ -147,7 +100,7 @@ func ExampleElasticBeanstalk_CreateApplicationVersion() { } func ExampleElasticBeanstalk_CreateConfigurationTemplate() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.CreateConfigurationTemplateInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -183,14 +136,13 @@ func ExampleElasticBeanstalk_CreateConfigurationTemplate() { } func ExampleElasticBeanstalk_CreateEnvironment() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.CreateEnvironmentInput{ ApplicationName: aws.String("ApplicationName"), // Required + EnvironmentName: aws.String("EnvironmentName"), // Required CNAMEPrefix: aws.String("DNSCnamePrefix"), Description: aws.String("Description"), - EnvironmentName: aws.String("EnvironmentName"), - GroupName: aws.String("GroupName"), OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{ { // Required Namespace: aws.String("OptionNamespace"), @@ -238,7 +190,7 @@ func ExampleElasticBeanstalk_CreateEnvironment() { } func ExampleElasticBeanstalk_CreateStorageLocation() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) var params *elasticbeanstalk.CreateStorageLocationInput resp, err := svc.CreateStorageLocation(params) @@ -255,7 +207,7 @@ func ExampleElasticBeanstalk_CreateStorageLocation() { } func ExampleElasticBeanstalk_DeleteApplication() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DeleteApplicationInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -275,7 +227,7 @@ func ExampleElasticBeanstalk_DeleteApplication() { } func ExampleElasticBeanstalk_DeleteApplicationVersion() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DeleteApplicationVersionInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -296,7 +248,7 @@ func ExampleElasticBeanstalk_DeleteApplicationVersion() { } func ExampleElasticBeanstalk_DeleteConfigurationTemplate() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DeleteConfigurationTemplateInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -316,7 +268,7 @@ func ExampleElasticBeanstalk_DeleteConfigurationTemplate() { } func ExampleElasticBeanstalk_DeleteEnvironmentConfiguration() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DeleteEnvironmentConfigurationInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -336,7 +288,7 @@ func ExampleElasticBeanstalk_DeleteEnvironmentConfiguration() { } func ExampleElasticBeanstalk_DescribeApplicationVersions() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DescribeApplicationVersionsInput{ ApplicationName: aws.String("ApplicationName"), @@ -359,7 +311,7 @@ func ExampleElasticBeanstalk_DescribeApplicationVersions() { } func ExampleElasticBeanstalk_DescribeApplications() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DescribeApplicationsInput{ ApplicationNames: []*string{ @@ -381,7 +333,7 @@ func ExampleElasticBeanstalk_DescribeApplications() { } func ExampleElasticBeanstalk_DescribeConfigurationOptions() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DescribeConfigurationOptionsInput{ ApplicationName: aws.String("ApplicationName"), @@ -411,7 +363,7 @@ func ExampleElasticBeanstalk_DescribeConfigurationOptions() { } func ExampleElasticBeanstalk_DescribeConfigurationSettings() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DescribeConfigurationSettingsInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -432,7 +384,7 @@ func ExampleElasticBeanstalk_DescribeConfigurationSettings() { } func ExampleElasticBeanstalk_DescribeEnvironmentHealth() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DescribeEnvironmentHealthInput{ AttributeNames: []*string{ @@ -455,51 +407,8 @@ func ExampleElasticBeanstalk_DescribeEnvironmentHealth() { fmt.Println(resp) } -func ExampleElasticBeanstalk_DescribeEnvironmentManagedActionHistory() { - svc := elasticbeanstalk.New(session.New()) - - params := &elasticbeanstalk.DescribeEnvironmentManagedActionHistoryInput{ - EnvironmentId: aws.String("EnvironmentId"), - EnvironmentName: aws.String("EnvironmentName"), - MaxItems: aws.Int64(1), - NextToken: aws.String("String"), - } - resp, err := svc.DescribeEnvironmentManagedActionHistory(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleElasticBeanstalk_DescribeEnvironmentManagedActions() { - svc := elasticbeanstalk.New(session.New()) - - params := &elasticbeanstalk.DescribeEnvironmentManagedActionsInput{ - EnvironmentId: aws.String("String"), - EnvironmentName: aws.String("String"), - Status: aws.String("ActionStatus"), - } - resp, err := svc.DescribeEnvironmentManagedActions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleElasticBeanstalk_DescribeEnvironmentResources() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DescribeEnvironmentResourcesInput{ EnvironmentId: aws.String("EnvironmentId"), @@ -519,7 +428,7 @@ func ExampleElasticBeanstalk_DescribeEnvironmentResources() { } func ExampleElasticBeanstalk_DescribeEnvironments() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DescribeEnvironmentsInput{ ApplicationName: aws.String("ApplicationName"), @@ -549,7 +458,7 @@ func ExampleElasticBeanstalk_DescribeEnvironments() { } func ExampleElasticBeanstalk_DescribeEvents() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DescribeEventsInput{ ApplicationName: aws.String("ApplicationName"), @@ -578,7 +487,7 @@ func ExampleElasticBeanstalk_DescribeEvents() { } func ExampleElasticBeanstalk_DescribeInstancesHealth() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.DescribeInstancesHealthInput{ AttributeNames: []*string{ @@ -603,7 +512,7 @@ func ExampleElasticBeanstalk_DescribeInstancesHealth() { } func ExampleElasticBeanstalk_ListAvailableSolutionStacks() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) var params *elasticbeanstalk.ListAvailableSolutionStacksInput resp, err := svc.ListAvailableSolutionStacks(params) @@ -620,7 +529,7 @@ func ExampleElasticBeanstalk_ListAvailableSolutionStacks() { } func ExampleElasticBeanstalk_RebuildEnvironment() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.RebuildEnvironmentInput{ EnvironmentId: aws.String("EnvironmentId"), @@ -640,7 +549,7 @@ func ExampleElasticBeanstalk_RebuildEnvironment() { } func ExampleElasticBeanstalk_RequestEnvironmentInfo() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.RequestEnvironmentInfoInput{ InfoType: aws.String("EnvironmentInfoType"), // Required @@ -661,7 +570,7 @@ func ExampleElasticBeanstalk_RequestEnvironmentInfo() { } func ExampleElasticBeanstalk_RestartAppServer() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.RestartAppServerInput{ EnvironmentId: aws.String("EnvironmentId"), @@ -681,7 +590,7 @@ func ExampleElasticBeanstalk_RestartAppServer() { } func ExampleElasticBeanstalk_RetrieveEnvironmentInfo() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.RetrieveEnvironmentInfoInput{ InfoType: aws.String("EnvironmentInfoType"), // Required @@ -702,7 +611,7 @@ func ExampleElasticBeanstalk_RetrieveEnvironmentInfo() { } func ExampleElasticBeanstalk_SwapEnvironmentCNAMEs() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.SwapEnvironmentCNAMEsInput{ DestinationEnvironmentId: aws.String("EnvironmentId"), @@ -724,12 +633,11 @@ func ExampleElasticBeanstalk_SwapEnvironmentCNAMEs() { } func ExampleElasticBeanstalk_TerminateEnvironment() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.TerminateEnvironmentInput{ EnvironmentId: aws.String("EnvironmentId"), EnvironmentName: aws.String("EnvironmentName"), - ForceTerminate: aws.Bool(true), TerminateResources: aws.Bool(true), } resp, err := svc.TerminateEnvironment(params) @@ -746,7 +654,7 @@ func ExampleElasticBeanstalk_TerminateEnvironment() { } func ExampleElasticBeanstalk_UpdateApplication() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.UpdateApplicationInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -766,7 +674,7 @@ func ExampleElasticBeanstalk_UpdateApplication() { } func ExampleElasticBeanstalk_UpdateApplicationVersion() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.UpdateApplicationVersionInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -787,7 +695,7 @@ func ExampleElasticBeanstalk_UpdateApplicationVersion() { } func ExampleElasticBeanstalk_UpdateConfigurationTemplate() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.UpdateConfigurationTemplateInput{ ApplicationName: aws.String("ApplicationName"), // Required @@ -825,14 +733,12 @@ func ExampleElasticBeanstalk_UpdateConfigurationTemplate() { } func ExampleElasticBeanstalk_UpdateEnvironment() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.UpdateEnvironmentInput{ - ApplicationName: aws.String("ApplicationName"), Description: aws.String("Description"), EnvironmentId: aws.String("EnvironmentId"), EnvironmentName: aws.String("EnvironmentName"), - GroupName: aws.String("GroupName"), OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{ { // Required Namespace: aws.String("OptionNamespace"), @@ -873,7 +779,7 @@ func ExampleElasticBeanstalk_UpdateEnvironment() { } func ExampleElasticBeanstalk_ValidateConfigurationSettings() { - svc := elasticbeanstalk.New(session.New()) + svc := elasticbeanstalk.New(nil) params := &elasticbeanstalk.ValidateConfigurationSettingsInput{ ApplicationName: aws.String("ApplicationName"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go index 5e6d4236d..4b5a7836f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go @@ -4,18 +4,23 @@ package elasticbeanstalk import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -// AWS Elastic Beanstalk makes it easy for you to create, deploy, and manage -// scalable, fault-tolerant applications running on the Amazon Web Services -// cloud. +// This is the AWS Elastic Beanstalk API Reference. This guide provides detailed +// information about AWS Elastic Beanstalk actions, data types, parameters, +// and errors. // -// For more information about this product, go to the AWS Elastic Beanstalk +// AWS Elastic Beanstalk is a tool that makes it easy for you to create, deploy, +// and manage scalable, fault-tolerant applications running on Amazon Web Services +// cloud resources. +// +// For more information about this product, go to the AWS Elastic Beanstalk // (http://aws.amazon.com/elasticbeanstalk/) details page. The location of the // latest AWS Elastic Beanstalk WSDL is http://elasticbeanstalk.s3.amazonaws.com/doc/2010-12-01/AWSElasticBeanstalk.wsdl // (http://elasticbeanstalk.s3.amazonaws.com/doc/2010-12-01/AWSElasticBeanstalk.wsdl). @@ -28,64 +33,40 @@ import ( // For a list of region-specific endpoints that AWS Elastic Beanstalk supports, // go to Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region) // in the Amazon Web Services Glossary. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type ElasticBeanstalk struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticbeanstalk" - -// New creates a new instance of the ElasticBeanstalk client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ElasticBeanstalk client from just a session. -// svc := elasticbeanstalk.New(mySession) -// -// // Create a ElasticBeanstalk client with additional configuration -// svc := elasticbeanstalk.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElasticBeanstalk { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ElasticBeanstalk { - svc := &ElasticBeanstalk{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2010-12-01", - }, - handlers, - ), +// New returns a new ElasticBeanstalk client. +func New(config *aws.Config) *ElasticBeanstalk { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "elasticbeanstalk", + APIVersion: "2010-12-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &ElasticBeanstalk{service} } // newRequest creates a new request for a ElasticBeanstalk operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go deleted file mode 100644 index 756a84d6f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go +++ /dev/null @@ -1,1317 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package elasticsearchservice provides a client for Amazon Elasticsearch Service. -package elasticsearchservice - -import ( - "fmt" - "time" - - "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/private/protocol/restjson" -) - -const opAddTags = "AddTags" - -// AddTagsRequest generates a request for the AddTags operation. -func (c *ElasticsearchService) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) { - op := &request.Operation{ - Name: opAddTags, - HTTPMethod: "POST", - HTTPPath: "/2015-01-01/tags", - } - - if input == nil { - input = &AddTagsInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AddTagsOutput{} - req.Data = output - return -} - -// Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive -// key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging -// Amazon Elasticsearch Service Domains for more information. (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-awsresorcetagging" -// target="_blank) -func (c *ElasticsearchService) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { - req, out := c.AddTagsRequest(input) - err := req.Send() - return out, err -} - -const opCreateElasticsearchDomain = "CreateElasticsearchDomain" - -// CreateElasticsearchDomainRequest generates a request for the CreateElasticsearchDomain operation. -func (c *ElasticsearchService) CreateElasticsearchDomainRequest(input *CreateElasticsearchDomainInput) (req *request.Request, output *CreateElasticsearchDomainOutput) { - op := &request.Operation{ - Name: opCreateElasticsearchDomain, - HTTPMethod: "POST", - HTTPPath: "/2015-01-01/es/domain", - } - - if input == nil { - input = &CreateElasticsearchDomainInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateElasticsearchDomainOutput{} - req.Data = output - return -} - -// Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch -// Domains (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains" -// target="_blank) in the Amazon Elasticsearch Service Developer Guide. -func (c *ElasticsearchService) CreateElasticsearchDomain(input *CreateElasticsearchDomainInput) (*CreateElasticsearchDomainOutput, error) { - req, out := c.CreateElasticsearchDomainRequest(input) - err := req.Send() - return out, err -} - -const opDeleteElasticsearchDomain = "DeleteElasticsearchDomain" - -// DeleteElasticsearchDomainRequest generates a request for the DeleteElasticsearchDomain operation. -func (c *ElasticsearchService) DeleteElasticsearchDomainRequest(input *DeleteElasticsearchDomainInput) (req *request.Request, output *DeleteElasticsearchDomainOutput) { - op := &request.Operation{ - Name: opDeleteElasticsearchDomain, - HTTPMethod: "DELETE", - HTTPPath: "/2015-01-01/es/domain/{DomainName}", - } - - if input == nil { - input = &DeleteElasticsearchDomainInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteElasticsearchDomainOutput{} - req.Data = output - return -} - -// Permanently deletes the specified Elasticsearch domain and all of its data. -// Once a domain is deleted, it cannot be recovered. -func (c *ElasticsearchService) DeleteElasticsearchDomain(input *DeleteElasticsearchDomainInput) (*DeleteElasticsearchDomainOutput, error) { - req, out := c.DeleteElasticsearchDomainRequest(input) - err := req.Send() - return out, err -} - -const opDescribeElasticsearchDomain = "DescribeElasticsearchDomain" - -// DescribeElasticsearchDomainRequest generates a request for the DescribeElasticsearchDomain operation. -func (c *ElasticsearchService) DescribeElasticsearchDomainRequest(input *DescribeElasticsearchDomainInput) (req *request.Request, output *DescribeElasticsearchDomainOutput) { - op := &request.Operation{ - Name: opDescribeElasticsearchDomain, - HTTPMethod: "GET", - HTTPPath: "/2015-01-01/es/domain/{DomainName}", - } - - if input == nil { - input = &DescribeElasticsearchDomainInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeElasticsearchDomainOutput{} - req.Data = output - return -} - -// Returns domain configuration information about the specified Elasticsearch -// domain, including the domain ID, domain endpoint, and domain ARN. -func (c *ElasticsearchService) DescribeElasticsearchDomain(input *DescribeElasticsearchDomainInput) (*DescribeElasticsearchDomainOutput, error) { - req, out := c.DescribeElasticsearchDomainRequest(input) - err := req.Send() - return out, err -} - -const opDescribeElasticsearchDomainConfig = "DescribeElasticsearchDomainConfig" - -// DescribeElasticsearchDomainConfigRequest generates a request for the DescribeElasticsearchDomainConfig operation. -func (c *ElasticsearchService) DescribeElasticsearchDomainConfigRequest(input *DescribeElasticsearchDomainConfigInput) (req *request.Request, output *DescribeElasticsearchDomainConfigOutput) { - op := &request.Operation{ - Name: opDescribeElasticsearchDomainConfig, - HTTPMethod: "GET", - HTTPPath: "/2015-01-01/es/domain/{DomainName}/config", - } - - if input == nil { - input = &DescribeElasticsearchDomainConfigInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeElasticsearchDomainConfigOutput{} - req.Data = output - return -} - -// Provides cluster configuration information about the specified Elasticsearch -// domain, such as the state, creation date, update version, and update date -// for cluster options. -func (c *ElasticsearchService) DescribeElasticsearchDomainConfig(input *DescribeElasticsearchDomainConfigInput) (*DescribeElasticsearchDomainConfigOutput, error) { - req, out := c.DescribeElasticsearchDomainConfigRequest(input) - err := req.Send() - return out, err -} - -const opDescribeElasticsearchDomains = "DescribeElasticsearchDomains" - -// DescribeElasticsearchDomainsRequest generates a request for the DescribeElasticsearchDomains operation. -func (c *ElasticsearchService) DescribeElasticsearchDomainsRequest(input *DescribeElasticsearchDomainsInput) (req *request.Request, output *DescribeElasticsearchDomainsOutput) { - op := &request.Operation{ - Name: opDescribeElasticsearchDomains, - HTTPMethod: "POST", - HTTPPath: "/2015-01-01/es/domain-info", - } - - if input == nil { - input = &DescribeElasticsearchDomainsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeElasticsearchDomainsOutput{} - req.Data = output - return -} - -// Returns domain configuration information about the specified Elasticsearch -// domains, including the domain ID, domain endpoint, and domain ARN. -func (c *ElasticsearchService) DescribeElasticsearchDomains(input *DescribeElasticsearchDomainsInput) (*DescribeElasticsearchDomainsOutput, error) { - req, out := c.DescribeElasticsearchDomainsRequest(input) - err := req.Send() - return out, err -} - -const opListDomainNames = "ListDomainNames" - -// ListDomainNamesRequest generates a request for the ListDomainNames operation. -func (c *ElasticsearchService) ListDomainNamesRequest(input *ListDomainNamesInput) (req *request.Request, output *ListDomainNamesOutput) { - op := &request.Operation{ - Name: opListDomainNames, - HTTPMethod: "GET", - HTTPPath: "/2015-01-01/domain", - } - - if input == nil { - input = &ListDomainNamesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListDomainNamesOutput{} - req.Data = output - return -} - -// Returns the name of all Elasticsearch domains owned by the current user's -// account. -func (c *ElasticsearchService) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) { - req, out := c.ListDomainNamesRequest(input) - err := req.Send() - return out, err -} - -const opListTags = "ListTags" - -// ListTagsRequest generates a request for the ListTags operation. -func (c *ElasticsearchService) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { - op := &request.Operation{ - Name: opListTags, - HTTPMethod: "GET", - HTTPPath: "/2015-01-01/tags/", - } - - if input == nil { - input = &ListTagsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTagsOutput{} - req.Data = output - return -} - -// Returns all tags for the given Elasticsearch domain. -func (c *ElasticsearchService) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { - req, out := c.ListTagsRequest(input) - err := req.Send() - return out, err -} - -const opRemoveTags = "RemoveTags" - -// RemoveTagsRequest generates a request for the RemoveTags operation. -func (c *ElasticsearchService) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) { - op := &request.Operation{ - Name: opRemoveTags, - HTTPMethod: "POST", - HTTPPath: "/2015-01-01/tags-removal", - } - - if input == nil { - input = &RemoveTagsInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RemoveTagsOutput{} - req.Data = output - return -} - -// Removes the specified set of tags from the specified Elasticsearch domain. -func (c *ElasticsearchService) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { - req, out := c.RemoveTagsRequest(input) - err := req.Send() - return out, err -} - -const opUpdateElasticsearchDomainConfig = "UpdateElasticsearchDomainConfig" - -// UpdateElasticsearchDomainConfigRequest generates a request for the UpdateElasticsearchDomainConfig operation. -func (c *ElasticsearchService) UpdateElasticsearchDomainConfigRequest(input *UpdateElasticsearchDomainConfigInput) (req *request.Request, output *UpdateElasticsearchDomainConfigOutput) { - op := &request.Operation{ - Name: opUpdateElasticsearchDomainConfig, - HTTPMethod: "POST", - HTTPPath: "/2015-01-01/es/domain/{DomainName}/config", - } - - if input == nil { - input = &UpdateElasticsearchDomainConfigInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateElasticsearchDomainConfigOutput{} - req.Data = output - return -} - -// Modifies the cluster configuration of the specified Elasticsearch domain, -// setting as setting the instance type and the number of instances. -func (c *ElasticsearchService) UpdateElasticsearchDomainConfig(input *UpdateElasticsearchDomainConfigInput) (*UpdateElasticsearchDomainConfigOutput, error) { - req, out := c.UpdateElasticsearchDomainConfigRequest(input) - err := req.Send() - return out, err -} - -// The configured access rules for the domain's document and search endpoints, -// and the current status of those rules. -type AccessPoliciesStatus struct { - _ struct{} `type:"structure"` - - // The access policy configured for the Elasticsearch domain. Access policies - // may be resource-based, IP-based, or IAM-based. See Configuring Access Policies - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-access-policies" - // target="_blank)for more information. - Options *string `type:"string" required:"true"` - - // The status of the access policy for the Elasticsearch domain. See OptionStatus - // for the status information that's included. - Status *OptionStatus `type:"structure" required:"true"` -} - -// String returns the string representation -func (s AccessPoliciesStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AccessPoliciesStatus) GoString() string { - return s.String() -} - -// Container for the parameters to the AddTags operation. Specify the tags that -// you want to attach to the Elasticsearch domain. -type AddTagsInput struct { - _ struct{} `type:"structure"` - - // Specify the ARN for which you want to add the tags. - ARN *string `type:"string" required:"true"` - - // List of Tag that need to be added for the Elasticsearch domain. - TagList []*Tag `type:"list" required:"true"` -} - -// String returns the string representation -func (s AddTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"} - if s.ARN == nil { - invalidParams.Add(request.NewErrParamRequired("ARN")) - } - if s.TagList == nil { - invalidParams.Add(request.NewErrParamRequired("TagList")) - } - if s.TagList != nil { - for i, v := range s.TagList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagList", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type AddTagsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AddTagsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsOutput) GoString() string { - return s.String() -} - -// Status of the advanced options for the specified Elasticsearch domain. Currently, -// the following advanced options are available: -// -// Option to allow references to indices in an HTTP request body. Must be -// false when configuring access to individual sub-resources. By default, the -// value is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" -// target="_blank) for more information. Option to specify the percentage of -// heap space that is allocated to field data. By default, this setting is unbounded. -// For more information, see Configuring Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options). -type AdvancedOptionsStatus struct { - _ struct{} `type:"structure"` - - // Specifies the status of advanced options for the specified Elasticsearch - // domain. - Options map[string]*string `type:"map" required:"true"` - - // Specifies the status of OptionStatus for advanced options for the specified - // Elasticsearch domain. - Status *OptionStatus `type:"structure" required:"true"` -} - -// String returns the string representation -func (s AdvancedOptionsStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AdvancedOptionsStatus) GoString() string { - return s.String() -} - -type CreateElasticsearchDomainInput struct { - _ struct{} `type:"structure"` - - // IAM access policy as a JSON-formatted string. - AccessPolicies *string `type:"string"` - - // Option to allow references to indices in an HTTP request body. Must be false - // when configuring access to individual sub-resources. By default, the value - // is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" - // target="_blank) for more information. - AdvancedOptions map[string]*string `type:"map"` - - // The name of the Elasticsearch domain that you are creating. Domain names - // are unique across the domains owned by an account within an AWS region. Domain - // names must start with a letter or number and can contain the following characters: - // a-z (lowercase), 0-9, and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` - - // Options to enable, disable and specify the type and size of EBS storage volumes. - EBSOptions *EBSOptions `type:"structure"` - - // Configuration options for an Elasticsearch domain. Specifies the instance - // type and number of instances in the domain cluster. - ElasticsearchClusterConfig *ElasticsearchClusterConfig `type:"structure"` - - // Option to set time, in UTC format, of the daily automated snapshot. Default - // value is 0 hours. - SnapshotOptions *SnapshotOptions `type:"structure"` -} - -// String returns the string representation -func (s CreateElasticsearchDomainInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateElasticsearchDomainInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateElasticsearchDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateElasticsearchDomainInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of a CreateElasticsearchDomain operation. Contains the status -// of the newly created Elasticsearch domain. -type CreateElasticsearchDomainOutput struct { - _ struct{} `type:"structure"` - - // The status of the newly created Elasticsearch domain. - DomainStatus *ElasticsearchDomainStatus `type:"structure"` -} - -// String returns the string representation -func (s CreateElasticsearchDomainOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateElasticsearchDomainOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the DeleteElasticsearchDomain operation. -// Specifies the name of the Elasticsearch domain that you want to delete. -type DeleteElasticsearchDomainInput struct { - _ struct{} `type:"structure"` - - // The name of the Elasticsearch domain that you want to permanently delete. - DomainName *string `location:"uri" locationName:"DomainName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteElasticsearchDomainInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteElasticsearchDomainInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteElasticsearchDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteElasticsearchDomainInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of a DeleteElasticsearchDomain request. Contains the status of -// the pending deletion, or no status if the domain and all of its resources -// have been deleted. -type DeleteElasticsearchDomainOutput struct { - _ struct{} `type:"structure"` - - // The status of the Elasticsearch domain being deleted. - DomainStatus *ElasticsearchDomainStatus `type:"structure"` -} - -// String returns the string representation -func (s DeleteElasticsearchDomainOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteElasticsearchDomainOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the DescribeElasticsearchDomainConfig operation. -// Specifies the domain name for which you want configuration information. -type DescribeElasticsearchDomainConfigInput struct { - _ struct{} `type:"structure"` - - // The Elasticsearch domain that you want to get information about. - DomainName *string `location:"uri" locationName:"DomainName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeElasticsearchDomainConfigInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeElasticsearchDomainConfigInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeElasticsearchDomainConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeElasticsearchDomainConfigInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of a DescribeElasticsearchDomainConfig request. Contains the configuration -// information of the requested domain. -type DescribeElasticsearchDomainConfigOutput struct { - _ struct{} `type:"structure"` - - // The configuration information of the domain requested in the DescribeElasticsearchDomainConfig - // request. - DomainConfig *ElasticsearchDomainConfig `type:"structure" required:"true"` -} - -// String returns the string representation -func (s DescribeElasticsearchDomainConfigOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeElasticsearchDomainConfigOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the DescribeElasticsearchDomain operation. -type DescribeElasticsearchDomainInput struct { - _ struct{} `type:"structure"` - - // The name of the Elasticsearch domain for which you want information. - DomainName *string `location:"uri" locationName:"DomainName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeElasticsearchDomainInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeElasticsearchDomainInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeElasticsearchDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeElasticsearchDomainInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of a DescribeElasticsearchDomain request. Contains the status -// of the domain specified in the request. -type DescribeElasticsearchDomainOutput struct { - _ struct{} `type:"structure"` - - // The current status of the Elasticsearch domain. - DomainStatus *ElasticsearchDomainStatus `type:"structure" required:"true"` -} - -// String returns the string representation -func (s DescribeElasticsearchDomainOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeElasticsearchDomainOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the DescribeElasticsearchDomains operation. -// By default, the API returns the status of all Elasticsearch domains. -type DescribeElasticsearchDomainsInput struct { - _ struct{} `type:"structure"` - - // The Elasticsearch domains for which you want information. - DomainNames []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeElasticsearchDomainsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeElasticsearchDomainsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeElasticsearchDomainsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeElasticsearchDomainsInput"} - if s.DomainNames == nil { - invalidParams.Add(request.NewErrParamRequired("DomainNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of a DescribeElasticsearchDomains request. Contains the status -// of the specified domains or all domains owned by the account. -type DescribeElasticsearchDomainsOutput struct { - _ struct{} `type:"structure"` - - // The status of the domains requested in the DescribeElasticsearchDomains request. - DomainStatusList []*ElasticsearchDomainStatus `type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeElasticsearchDomainsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeElasticsearchDomainsOutput) GoString() string { - return s.String() -} - -type DomainInfo struct { - _ struct{} `type:"structure"` - - // Specifies the DomainName. - DomainName *string `min:"3" type:"string"` -} - -// String returns the string representation -func (s DomainInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DomainInfo) GoString() string { - return s.String() -} - -// Options to enable, disable, and specify the properties of EBS storage volumes. -// For more information, see Configuring EBS-based Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs" -// target="_blank). -type EBSOptions struct { - _ struct{} `type:"structure"` - - // Specifies whether EBS-based storage is enabled. - EBSEnabled *bool `type:"boolean"` - - // Specifies the IOPD for a Provisioned IOPS EBS volume (SSD). - Iops *int64 `type:"integer"` - - // Integer to specify the size of an EBS volume. - VolumeSize *int64 `type:"integer"` - - // Specifies the volume type for EBS-based storage. - VolumeType *string `type:"string" enum:"VolumeType"` -} - -// String returns the string representation -func (s EBSOptions) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EBSOptions) GoString() string { - return s.String() -} - -// Status of the EBS options for the specified Elasticsearch domain. -type EBSOptionsStatus struct { - _ struct{} `type:"structure"` - - // Specifies the EBS options for the specified Elasticsearch domain. - Options *EBSOptions `type:"structure" required:"true"` - - // Specifies the status of the EBS options for the specified Elasticsearch domain. - Status *OptionStatus `type:"structure" required:"true"` -} - -// String returns the string representation -func (s EBSOptionsStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EBSOptionsStatus) GoString() string { - return s.String() -} - -// Specifies the configuration for the domain cluster, such as the type and -// number of instances. -type ElasticsearchClusterConfig struct { - _ struct{} `type:"structure"` - - // Total number of dedicated master nodes, active and on standby, for the cluster. - DedicatedMasterCount *int64 `type:"integer"` - - // A boolean value to indicate whether a dedicated master node is enabled. See - // About Dedicated Master Nodes (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-dedicatedmasternodes" - // target="_blank) for more information. - DedicatedMasterEnabled *bool `type:"boolean"` - - // The instance type for a dedicated master node. - DedicatedMasterType *string `type:"string" enum:"ESPartitionInstanceType"` - - // The number of instances in the specified domain cluster. - InstanceCount *int64 `type:"integer"` - - // The instance type for an Elasticsearch cluster. - InstanceType *string `type:"string" enum:"ESPartitionInstanceType"` - - // A boolean value to indicate whether zone awareness is enabled. See About - // Zone Awareness (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-zoneawareness" - // target="_blank) for more information. - ZoneAwarenessEnabled *bool `type:"boolean"` -} - -// String returns the string representation -func (s ElasticsearchClusterConfig) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticsearchClusterConfig) GoString() string { - return s.String() -} - -// Specifies the configuration status for the specified Elasticsearch domain. -type ElasticsearchClusterConfigStatus struct { - _ struct{} `type:"structure"` - - // Specifies the cluster configuration for the specified Elasticsearch domain. - Options *ElasticsearchClusterConfig `type:"structure" required:"true"` - - // Specifies the status of the configuration for the specified Elasticsearch - // domain. - Status *OptionStatus `type:"structure" required:"true"` -} - -// String returns the string representation -func (s ElasticsearchClusterConfigStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticsearchClusterConfigStatus) GoString() string { - return s.String() -} - -// The configuration of an Elasticsearch domain. -type ElasticsearchDomainConfig struct { - _ struct{} `type:"structure"` - - // IAM access policy as a JSON-formatted string. - AccessPolicies *AccessPoliciesStatus `type:"structure"` - - // Specifies the AdvancedOptions for the domain. See Configuring Advanced Options - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" - // target="_blank) for more information. - AdvancedOptions *AdvancedOptionsStatus `type:"structure"` - - // Specifies the EBSOptions for the Elasticsearch domain. - EBSOptions *EBSOptionsStatus `type:"structure"` - - // Specifies the ElasticsearchClusterConfig for the Elasticsearch domain. - ElasticsearchClusterConfig *ElasticsearchClusterConfigStatus `type:"structure"` - - // Specifies the SnapshotOptions for the Elasticsearch domain. - SnapshotOptions *SnapshotOptionsStatus `type:"structure"` -} - -// String returns the string representation -func (s ElasticsearchDomainConfig) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticsearchDomainConfig) GoString() string { - return s.String() -} - -// The current status of an Elasticsearch domain. -type ElasticsearchDomainStatus struct { - _ struct{} `type:"structure"` - - // The Amazon resource name (ARN) of an Elasticsearch domain. See Identifiers - // for IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html" - // target="_blank) in Using AWS Identity and Access Management for more information. - ARN *string `type:"string" required:"true"` - - // IAM access policy as a JSON-formatted string. - AccessPolicies *string `type:"string"` - - // Specifies the status of the AdvancedOptions - AdvancedOptions map[string]*string `type:"map"` - - // The domain creation status. True if the creation of an Elasticsearch domain - // is complete. False if domain creation is still in progress. - Created *bool `type:"boolean"` - - // The domain deletion status. True if a delete request has been received for - // the domain but resource cleanup is still in progress. False if the domain - // has not been deleted. Once domain deletion is complete, the status of the - // domain is no longer returned. - Deleted *bool `type:"boolean"` - - // The unique identifier for the specified Elasticsearch domain. - DomainId *string `min:"1" type:"string" required:"true"` - - // The name of an Elasticsearch domain. Domain names are unique across the domains - // owned by an account within an AWS region. Domain names start with a letter - // or number and can contain the following characters: a-z (lowercase), 0-9, - // and - (hyphen). - DomainName *string `min:"3" type:"string" required:"true"` - - // The EBSOptions for the specified domain. See Configuring EBS-based Storage - // (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs" - // target="_blank) for more information. - EBSOptions *EBSOptions `type:"structure"` - - // The type and number of instances in the domain cluster. - ElasticsearchClusterConfig *ElasticsearchClusterConfig `type:"structure" required:"true"` - - // The Elasticsearch domain endpoint that you use to submit index and search - // requests. - Endpoint *string `type:"string"` - - // The status of the Elasticsearch domain configuration. True if Amazon Elasticsearch - // Service is processing configuration changes. False if the configuration is - // active. - Processing *bool `type:"boolean"` - - // Specifies the status of the SnapshotOptions - SnapshotOptions *SnapshotOptions `type:"structure"` -} - -// String returns the string representation -func (s ElasticsearchDomainStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticsearchDomainStatus) GoString() string { - return s.String() -} - -type ListDomainNamesInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ListDomainNamesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListDomainNamesInput) GoString() string { - return s.String() -} - -// The result of a ListDomainNames operation. Contains the names of all Elasticsearch -// domains owned by this account. -type ListDomainNamesOutput struct { - _ struct{} `type:"structure"` - - // List of Elasticsearch domain names. - DomainNames []*DomainInfo `type:"list"` -} - -// String returns the string representation -func (s ListDomainNamesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListDomainNamesOutput) GoString() string { - return s.String() -} - -// Container for the parameters to the ListTags operation. Specify the ARN for -// the Elasticsearch domain to which the tags are attached that you want to -// view are attached. -type ListTagsInput struct { - _ struct{} `type:"structure"` - - // Specify the ARN for the Elasticsearch domain to which the tags are attached - // that you want to view. - ARN *string `location:"querystring" locationName:"arn" 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.ARN == nil { - invalidParams.Add(request.NewErrParamRequired("ARN")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of a ListTags operation. Contains tags for all requested Elasticsearch -// domains. -type ListTagsOutput struct { - _ struct{} `type:"structure"` - - // List of Tag for the requested Elasticsearch domain. - TagList []*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() -} - -// Provides the current status of the entity. -type OptionStatus struct { - _ struct{} `type:"structure"` - - // Timestamp which tells the creation date for the entity. - CreationDate *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - - // Indicates whether the Elasticsearch domain is being deleted. - PendingDeletion *bool `type:"boolean"` - - // Provides the OptionState for the Elasticsearch domain. - State *string `type:"string" required:"true" enum:"OptionState"` - - // Timestamp which tells the last updated time for the entity. - UpdateDate *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - - // Specifies the latest version for the entity. - UpdateVersion *int64 `type:"integer"` -} - -// String returns the string representation -func (s OptionStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s OptionStatus) GoString() string { - return s.String() -} - -// Container for the parameters to the RemoveTags operation. Specify the ARN -// for the Elasticsearch domain from which you want to remove the specified -// TagKey. -type RemoveTagsInput struct { - _ struct{} `type:"structure"` - - // Specifies the ARN for the Elasticsearch domain from which you want to delete - // the specified tags. - ARN *string `type:"string" required:"true"` - - // Specifies the TagKey list which you want to remove from the Elasticsearch - // domain. - TagKeys []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s RemoveTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTagsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"} - if s.ARN == nil { - invalidParams.Add(request.NewErrParamRequired("ARN")) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RemoveTagsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s RemoveTagsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTagsOutput) GoString() string { - return s.String() -} - -// Specifies the time, in UTC format, when the service takes a daily automated -// snapshot of the specified Elasticsearch domain. Default value is 0 hours. -type SnapshotOptions struct { - _ struct{} `type:"structure"` - - // Specifies the time, in UTC format, when the service takes a daily automated - // snapshot of the specified Elasticsearch domain. Default value is 0 hours. - AutomatedSnapshotStartHour *int64 `type:"integer"` -} - -// String returns the string representation -func (s SnapshotOptions) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SnapshotOptions) GoString() string { - return s.String() -} - -// Status of a daily automated snapshot. -type SnapshotOptionsStatus struct { - _ struct{} `type:"structure"` - - // Specifies the daily snapshot options specified for the Elasticsearch domain. - Options *SnapshotOptions `type:"structure" required:"true"` - - // Specifies the status of a daily automated snapshot. - Status *OptionStatus `type:"structure" required:"true"` -} - -// String returns the string representation -func (s SnapshotOptionsStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SnapshotOptionsStatus) GoString() string { - return s.String() -} - -// Specifies a key value pair for a resource tag. -type Tag struct { - _ struct{} `type:"structure"` - - // Specifies the TagKey, the name of the tag. Tag keys must be unique for the - // Elasticsearch domain to which they are attached. - Key *string `min:"1" type:"string" required:"true"` - - // Specifies the TagValue, the value assigned to the corresponding tag key. - // Tag values can be null and do not have to be unique in a tag set. For example, - // you can have a key value pair in a tag set of project : Trinity and cost-center - // : Trinity - Value *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s Tag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Tag) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - 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.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Container for the parameters to the UpdateElasticsearchDomain operation. -// Specifies the type and number of instances in the domain cluster. -type UpdateElasticsearchDomainConfigInput struct { - _ struct{} `type:"structure"` - - // IAM access policy as a JSON-formatted string. - AccessPolicies *string `type:"string"` - - // Modifies the advanced option to allow references to indices in an HTTP request - // body. Must be false when configuring access to individual sub-resources. - // By default, the value is true. See Configuration Advanced Options (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-advanced-options" - // target="_blank) for more information. - AdvancedOptions map[string]*string `type:"map"` - - // The name of the Elasticsearch domain that you are updating. - DomainName *string `location:"uri" locationName:"DomainName" min:"3" type:"string" required:"true"` - - // Specify the type and size of the EBS volume that you want to use. - EBSOptions *EBSOptions `type:"structure"` - - // The type and number of instances to instantiate for the domain cluster. - ElasticsearchClusterConfig *ElasticsearchClusterConfig `type:"structure"` - - // Option to set the time, in UTC format, for the daily automated snapshot. - // Default value is 0 hours. - SnapshotOptions *SnapshotOptions `type:"structure"` -} - -// String returns the string representation -func (s UpdateElasticsearchDomainConfigInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateElasticsearchDomainConfigInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateElasticsearchDomainConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateElasticsearchDomainConfigInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DomainName != nil && len(*s.DomainName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of an UpdateElasticsearchDomain request. Contains the status of -// the Elasticsearch domain being updated. -type UpdateElasticsearchDomainConfigOutput struct { - _ struct{} `type:"structure"` - - // The status of the updated Elasticsearch domain. - DomainConfig *ElasticsearchDomainConfig `type:"structure" required:"true"` -} - -// String returns the string representation -func (s UpdateElasticsearchDomainConfigOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateElasticsearchDomainConfigOutput) GoString() string { - return s.String() -} - -const ( - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeM3MediumElasticsearch = "m3.medium.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeM3LargeElasticsearch = "m3.large.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeM3XlargeElasticsearch = "m3.xlarge.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeM32xlargeElasticsearch = "m3.2xlarge.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeT2MicroElasticsearch = "t2.micro.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeT2SmallElasticsearch = "t2.small.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeT2MediumElasticsearch = "t2.medium.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeR3LargeElasticsearch = "r3.large.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeR3XlargeElasticsearch = "r3.xlarge.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeR32xlargeElasticsearch = "r3.2xlarge.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeR34xlargeElasticsearch = "r3.4xlarge.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeR38xlargeElasticsearch = "r3.8xlarge.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeI2XlargeElasticsearch = "i2.xlarge.elasticsearch" - // @enum ESPartitionInstanceType - ESPartitionInstanceTypeI22xlargeElasticsearch = "i2.2xlarge.elasticsearch" -) - -// The state of a requested change. One of the following: -// -// Processing: The request change is still in-process. Active: The request -// change is processed and deployed to the Elasticsearch domain. -const ( - // @enum OptionState - OptionStateRequiresIndexDocuments = "RequiresIndexDocuments" - // @enum OptionState - OptionStateProcessing = "Processing" - // @enum OptionState - OptionStateActive = "Active" -) - -// The type of EBS volume, standard, gp2, or io1. See Configuring EBS-based -// Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs" -// target="_blank)for more information. -const ( - // @enum VolumeType - VolumeTypeStandard = "standard" - // @enum VolumeType - VolumeTypeGp2 = "gp2" - // @enum VolumeType - VolumeTypeIo1 = "io1" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go deleted file mode 100644 index 974a57852..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface.go +++ /dev/null @@ -1,54 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package elasticsearchserviceiface provides an interface for the Amazon Elasticsearch Service. -package elasticsearchserviceiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/elasticsearchservice" -) - -// ElasticsearchServiceAPI is the interface type for elasticsearchservice.ElasticsearchService. -type ElasticsearchServiceAPI interface { - AddTagsRequest(*elasticsearchservice.AddTagsInput) (*request.Request, *elasticsearchservice.AddTagsOutput) - - AddTags(*elasticsearchservice.AddTagsInput) (*elasticsearchservice.AddTagsOutput, error) - - CreateElasticsearchDomainRequest(*elasticsearchservice.CreateElasticsearchDomainInput) (*request.Request, *elasticsearchservice.CreateElasticsearchDomainOutput) - - CreateElasticsearchDomain(*elasticsearchservice.CreateElasticsearchDomainInput) (*elasticsearchservice.CreateElasticsearchDomainOutput, error) - - DeleteElasticsearchDomainRequest(*elasticsearchservice.DeleteElasticsearchDomainInput) (*request.Request, *elasticsearchservice.DeleteElasticsearchDomainOutput) - - DeleteElasticsearchDomain(*elasticsearchservice.DeleteElasticsearchDomainInput) (*elasticsearchservice.DeleteElasticsearchDomainOutput, error) - - DescribeElasticsearchDomainRequest(*elasticsearchservice.DescribeElasticsearchDomainInput) (*request.Request, *elasticsearchservice.DescribeElasticsearchDomainOutput) - - DescribeElasticsearchDomain(*elasticsearchservice.DescribeElasticsearchDomainInput) (*elasticsearchservice.DescribeElasticsearchDomainOutput, error) - - DescribeElasticsearchDomainConfigRequest(*elasticsearchservice.DescribeElasticsearchDomainConfigInput) (*request.Request, *elasticsearchservice.DescribeElasticsearchDomainConfigOutput) - - DescribeElasticsearchDomainConfig(*elasticsearchservice.DescribeElasticsearchDomainConfigInput) (*elasticsearchservice.DescribeElasticsearchDomainConfigOutput, error) - - DescribeElasticsearchDomainsRequest(*elasticsearchservice.DescribeElasticsearchDomainsInput) (*request.Request, *elasticsearchservice.DescribeElasticsearchDomainsOutput) - - DescribeElasticsearchDomains(*elasticsearchservice.DescribeElasticsearchDomainsInput) (*elasticsearchservice.DescribeElasticsearchDomainsOutput, error) - - ListDomainNamesRequest(*elasticsearchservice.ListDomainNamesInput) (*request.Request, *elasticsearchservice.ListDomainNamesOutput) - - ListDomainNames(*elasticsearchservice.ListDomainNamesInput) (*elasticsearchservice.ListDomainNamesOutput, error) - - ListTagsRequest(*elasticsearchservice.ListTagsInput) (*request.Request, *elasticsearchservice.ListTagsOutput) - - ListTags(*elasticsearchservice.ListTagsInput) (*elasticsearchservice.ListTagsOutput, error) - - RemoveTagsRequest(*elasticsearchservice.RemoveTagsInput) (*request.Request, *elasticsearchservice.RemoveTagsOutput) - - RemoveTags(*elasticsearchservice.RemoveTagsInput) (*elasticsearchservice.RemoveTagsOutput, error) - - UpdateElasticsearchDomainConfigRequest(*elasticsearchservice.UpdateElasticsearchDomainConfigInput) (*request.Request, *elasticsearchservice.UpdateElasticsearchDomainConfigOutput) - - UpdateElasticsearchDomainConfig(*elasticsearchservice.UpdateElasticsearchDomainConfigInput) (*elasticsearchservice.UpdateElasticsearchDomainConfigOutput, error) -} - -var _ ElasticsearchServiceAPI = (*elasticsearchservice.ElasticsearchService)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go deleted file mode 100644 index 8ca0ea7fc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/examples_test.go +++ /dev/null @@ -1,262 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package elasticsearchservice_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/elasticsearchservice" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleElasticsearchService_AddTags() { - svc := elasticsearchservice.New(session.New()) - - params := &elasticsearchservice.AddTagsInput{ - ARN: aws.String("ARN"), // Required - TagList: []*elasticsearchservice.Tag{ // Required - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), // Required - }, - // More values... - }, - } - resp, err := svc.AddTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleElasticsearchService_CreateElasticsearchDomain() { - svc := elasticsearchservice.New(session.New()) - - params := &elasticsearchservice.CreateElasticsearchDomainInput{ - DomainName: aws.String("DomainName"), // Required - AccessPolicies: aws.String("PolicyDocument"), - AdvancedOptions: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - EBSOptions: &elasticsearchservice.EBSOptions{ - EBSEnabled: aws.Bool(true), - Iops: aws.Int64(1), - VolumeSize: aws.Int64(1), - VolumeType: aws.String("VolumeType"), - }, - ElasticsearchClusterConfig: &elasticsearchservice.ElasticsearchClusterConfig{ - DedicatedMasterCount: aws.Int64(1), - DedicatedMasterEnabled: aws.Bool(true), - DedicatedMasterType: aws.String("ESPartitionInstanceType"), - InstanceCount: aws.Int64(1), - InstanceType: aws.String("ESPartitionInstanceType"), - ZoneAwarenessEnabled: aws.Bool(true), - }, - SnapshotOptions: &elasticsearchservice.SnapshotOptions{ - AutomatedSnapshotStartHour: aws.Int64(1), - }, - } - resp, err := svc.CreateElasticsearchDomain(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleElasticsearchService_DeleteElasticsearchDomain() { - svc := elasticsearchservice.New(session.New()) - - params := &elasticsearchservice.DeleteElasticsearchDomainInput{ - DomainName: aws.String("DomainName"), // Required - } - resp, err := svc.DeleteElasticsearchDomain(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleElasticsearchService_DescribeElasticsearchDomain() { - svc := elasticsearchservice.New(session.New()) - - params := &elasticsearchservice.DescribeElasticsearchDomainInput{ - DomainName: aws.String("DomainName"), // Required - } - resp, err := svc.DescribeElasticsearchDomain(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleElasticsearchService_DescribeElasticsearchDomainConfig() { - svc := elasticsearchservice.New(session.New()) - - params := &elasticsearchservice.DescribeElasticsearchDomainConfigInput{ - DomainName: aws.String("DomainName"), // Required - } - resp, err := svc.DescribeElasticsearchDomainConfig(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleElasticsearchService_DescribeElasticsearchDomains() { - svc := elasticsearchservice.New(session.New()) - - params := &elasticsearchservice.DescribeElasticsearchDomainsInput{ - DomainNames: []*string{ // Required - aws.String("DomainName"), // Required - // More values... - }, - } - resp, err := svc.DescribeElasticsearchDomains(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleElasticsearchService_ListDomainNames() { - svc := elasticsearchservice.New(session.New()) - - var params *elasticsearchservice.ListDomainNamesInput - resp, err := svc.ListDomainNames(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleElasticsearchService_ListTags() { - svc := elasticsearchservice.New(session.New()) - - params := &elasticsearchservice.ListTagsInput{ - ARN: aws.String("ARN"), // Required - } - resp, err := svc.ListTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleElasticsearchService_RemoveTags() { - svc := elasticsearchservice.New(session.New()) - - params := &elasticsearchservice.RemoveTagsInput{ - ARN: aws.String("ARN"), // Required - TagKeys: []*string{ // Required - aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.RemoveTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleElasticsearchService_UpdateElasticsearchDomainConfig() { - svc := elasticsearchservice.New(session.New()) - - params := &elasticsearchservice.UpdateElasticsearchDomainConfigInput{ - DomainName: aws.String("DomainName"), // Required - AccessPolicies: aws.String("PolicyDocument"), - AdvancedOptions: map[string]*string{ - "Key": aws.String("String"), // Required - // More values... - }, - EBSOptions: &elasticsearchservice.EBSOptions{ - EBSEnabled: aws.Bool(true), - Iops: aws.Int64(1), - VolumeSize: aws.Int64(1), - VolumeType: aws.String("VolumeType"), - }, - ElasticsearchClusterConfig: &elasticsearchservice.ElasticsearchClusterConfig{ - DedicatedMasterCount: aws.Int64(1), - DedicatedMasterEnabled: aws.Bool(true), - DedicatedMasterType: aws.String("ESPartitionInstanceType"), - InstanceCount: aws.Int64(1), - InstanceType: aws.String("ESPartitionInstanceType"), - ZoneAwarenessEnabled: aws.Bool(true), - }, - SnapshotOptions: &elasticsearchservice.SnapshotOptions{ - AutomatedSnapshotStartHour: aws.Int64(1), - }, - } - resp, err := svc.UpdateElasticsearchDomainConfig(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go deleted file mode 100644 index 1617a90df..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go +++ /dev/null @@ -1,92 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package elasticsearchservice - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// Use the Amazon Elasticsearch configuration API to create, configure, and -// manage Elasticsearch domains. -// -// The endpoint for configuration service requests is region-specific: es.region.amazonaws.com. -// For example, es.us-east-1.amazonaws.com. For a current list of supported -// regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" -// target="_blank). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type ElasticsearchService struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "es" - -// New creates a new instance of the ElasticsearchService client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ElasticsearchService client from just a session. -// svc := elasticsearchservice.New(mySession) -// -// // Create a ElasticsearchService client with additional configuration -// svc := elasticsearchservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElasticsearchService { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ElasticsearchService { - svc := &ElasticsearchService{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-01-01", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a ElasticsearchService operation and runs any -// custom request initialization. -func (c *ElasticsearchService) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go index 1c03defda..f4039ce8d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/api.go @@ -4,8 +4,6 @@ package elastictranscoder import ( - "fmt" - "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" ) @@ -241,7 +239,6 @@ func (c *ElasticTranscoder) ListJobsByPipeline(input *ListJobsByPipelineInput) ( func (c *ElasticTranscoder) ListJobsByPipelinePages(input *ListJobsByPipelineInput, fn func(p *ListJobsByPipelineOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListJobsByPipelineRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListJobsByPipelineOutput), lastPage) }) @@ -284,7 +281,6 @@ func (c *ElasticTranscoder) ListJobsByStatus(input *ListJobsByStatusInput) (*Lis func (c *ElasticTranscoder) ListJobsByStatusPages(input *ListJobsByStatusInput, fn func(p *ListJobsByStatusOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListJobsByStatusRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListJobsByStatusOutput), lastPage) }) @@ -326,7 +322,6 @@ func (c *ElasticTranscoder) ListPipelines(input *ListPipelinesInput) (*ListPipel func (c *ElasticTranscoder) ListPipelinesPages(input *ListPipelinesInput, fn func(p *ListPipelinesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListPipelinesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListPipelinesOutput), lastPage) }) @@ -368,7 +363,6 @@ func (c *ElasticTranscoder) ListPresets(input *ListPresetsInput) (*ListPresetsOu func (c *ElasticTranscoder) ListPresetsPages(input *ListPresetsInput, fn func(p *ListPresetsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListPresetsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListPresetsOutput), lastPage) }) @@ -593,8 +587,6 @@ func (c *ElasticTranscoder) UpdatePipelineStatus(input *UpdatePipelineStatusInpu // To pass through existing artwork unchanged, set the Merge Policy to "Prepend", // "Append", or "Fallback", and use an empty Artwork array. type Artwork struct { - _ struct{} `type:"structure"` - // The format of album art, if any. Valid formats are .jpg and .png. AlbumArtFormat *string `type:"string"` @@ -610,7 +602,7 @@ type Artwork struct { // If the file name includes a prefix, for example, cooking/pie.jpg, include // the prefix in the key. If the file isn't in the specified bucket, Elastic // Transcoder returns an error. - InputKey *string `min:"1" type:"string"` + InputKey *string `type:"string"` // The maximum height of the output album art in pixels. If you specify auto, // Elastic Transcoder uses 600 as the default value. If you specify a numeric @@ -651,6 +643,12 @@ type Artwork struct { // of MaxWidth and MaxHeight without dropping below either value. If you specify // this option, Elastic Transcoder does not scale the art up. SizingPolicy *string `type:"string"` + + metadataArtwork `json:"-" xml:"-"` +} + +type metadataArtwork struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -663,23 +661,8 @@ func (s Artwork) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Artwork) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Artwork"} - if s.InputKey != nil && len(*s.InputKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InputKey", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Options associated with your audio codec. type AudioCodecOptions struct { - _ struct{} `type:"structure"` - // You can only choose an audio bit depth when you specify flac or pcm for the // value of Audio:Codec. // @@ -727,6 +710,12 @@ type AudioCodecOptions struct { // // The supported value is Signed. Signed *string `type:"string"` + + metadataAudioCodecOptions `json:"-" xml:"-"` +} + +type metadataAudioCodecOptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -741,8 +730,6 @@ func (s AudioCodecOptions) GoString() string { // Parameters required for transcoding audio. type AudioParameters struct { - _ struct{} `type:"structure"` - // The method of organizing audio channels and tracks. Use Audio:Channels to // specify the number of channels in your output, and Audio:AudioPackingMode // to specify the number of tracks and their relation to the channels. If you @@ -854,6 +841,12 @@ type AudioParameters struct { // If you specify auto, Elastic Transcoder automatically detects the sample // rate. SampleRate *string `type:"string"` + + metadataAudioParameters `json:"-" xml:"-"` +} + +type metadataAudioParameters struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -868,13 +861,17 @@ func (s AudioParameters) GoString() string { // The CancelJobRequest structure. type CancelJobInput struct { - _ struct{} `type:"structure"` - // The identifier of the job that you want to cancel. // // To get a list of the jobs (including their jobId) that have a status of // Submitted, use the ListJobsByStatus API action. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataCancelJobInput `json:"-" xml:"-"` +} + +type metadataCancelJobInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -887,23 +884,14 @@ func (s CancelJobInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelJobInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The response body contains a JSON object. If the job is successfully canceled, // the value of Success is true. type CancelJobOutput struct { - _ struct{} `type:"structure"` + metadataCancelJobOutput `json:"-" xml:"-"` +} + +type metadataCancelJobOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -919,8 +907,6 @@ func (s CancelJobOutput) GoString() string { // The file format of the output captions. If you leave this value blank, Elastic // Transcoder returns an error. type CaptionFormat struct { - _ struct{} `type:"structure"` - // The encryption settings, if any, that you want Elastic Transcoder to apply // to your caption formats. Encryption *Encryption `type:"structure"` @@ -966,6 +952,12 @@ type CaptionFormat struct { // "Sydney-{language}-sunrise", and the language of the captions is English // (en), the name of the first caption file will be Sydney-en-sunrise00000.srt. Pattern *string `type:"string"` + + metadataCaptionFormat `json:"-" xml:"-"` +} + +type metadataCaptionFormat struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -981,20 +973,18 @@ func (s CaptionFormat) GoString() string { // A source file for the input sidecar captions used during the transcoding // process. type CaptionSource struct { - _ struct{} `type:"structure"` - // The encryption settings, if any, that you want Elastic Transcoder to apply // to your caption sources. Encryption *Encryption `type:"structure"` // The name of the sidecar caption file that you want Elastic Transcoder to // include in the output file. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // The label of the caption shown in the player when choosing a language. We // recommend that you put the caption language name here, in the language of // the captions. - Label *string `min:"1" type:"string"` + Label *string `type:"string"` // A string that specifies the language of the caption. Specify this as one // of: @@ -1005,7 +995,7 @@ type CaptionSource struct { // // For more information on ISO language codes and language names, see the // List of ISO 639-1 codes. - Language *string `min:"1" type:"string"` + Language *string `type:"string"` // For clip generation or captions that do not start at the same time as the // associated video file, the TimeOffset tells Elastic Transcoder how much of @@ -1013,6 +1003,12 @@ type CaptionSource struct { // // Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss. TimeOffset *string `type:"string"` + + metadataCaptionSource `json:"-" xml:"-"` +} + +type metadataCaptionSource struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1025,29 +1021,8 @@ func (s CaptionSource) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CaptionSource) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CaptionSource"} - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.Label != nil && len(*s.Label) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Label", 1)) - } - if s.Language != nil && len(*s.Language) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Language", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The captions to be created, if any. type Captions struct { - _ struct{} `type:"structure"` - // The array of file formats for the output captions. If you leave this value // blank, Elastic Transcoder returns an error. CaptionFormats []*CaptionFormat `type:"list"` @@ -1075,6 +1050,12 @@ type Captions struct { // // MergePolicy cannot be null. MergePolicy *string `type:"string"` + + metadataCaptions `json:"-" xml:"-"` +} + +type metadataCaptions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1087,33 +1068,17 @@ func (s Captions) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Captions) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Captions"} - if s.CaptionSources != nil { - for i, v := range s.CaptionSources { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CaptionSources", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Settings for one clip in a composition. All jobs in a playlist must have // the same clip settings. type Clip struct { - _ struct{} `type:"structure"` - // Settings that determine when a clip begins and how long it lasts. TimeSpan *TimeSpan `type:"structure"` + + metadataClip `json:"-" xml:"-"` +} + +type metadataClip struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1128,8 +1093,6 @@ func (s Clip) GoString() string { // The CreateJobRequest structure. type CreateJobInput struct { - _ struct{} `type:"structure"` - // A section of the request body that provides information about the file that // is being transcoded. Input *JobInput `type:"structure" required:"true"` @@ -1140,7 +1103,7 @@ type CreateJobInput struct { // The value, if any, that you want Elastic Transcoder to prepend to the names // of all files that this job creates, including output files, thumbnails, and // playlists. - OutputKeyPrefix *string `min:"1" type:"string"` + OutputKeyPrefix *string `type:"string"` // A section of the request body that provides information about the transcoded // (target) files. We recommend that you use the Outputs syntax instead of the @@ -1165,6 +1128,12 @@ type CreateJobInput struct { // pairs per job. Elastic Transcoder does not guarantee that key/value pairs // will be returned in the same order in which you specify them. UserMetadata map[string]*string `type:"map"` + + metadataCreateJobInput `json:"-" xml:"-"` +} + +type metadataCreateJobInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1177,59 +1146,8 @@ func (s CreateJobInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateJobInput"} - if s.Input == nil { - invalidParams.Add(request.NewErrParamRequired("Input")) - } - if s.OutputKeyPrefix != nil && len(*s.OutputKeyPrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OutputKeyPrefix", 1)) - } - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - if s.Input != nil { - if err := s.Input.Validate(); err != nil { - invalidParams.AddNested("Input", err.(request.ErrInvalidParams)) - } - } - if s.Output != nil { - if err := s.Output.Validate(); err != nil { - invalidParams.AddNested("Output", err.(request.ErrInvalidParams)) - } - } - if s.Outputs != nil { - for i, v := range s.Outputs { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Playlists != nil { - for i, v := range s.Playlists { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Playlists", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The CreateJobOutput structure. type CreateJobOutput struct { - _ struct{} `type:"structure"` - // Information about the album art that you want Elastic Transcoder to add to // the file during transcoding. You can specify up to twenty album artworks // for each output. Settings for each artwork must be defined in the job for @@ -1297,7 +1215,7 @@ type CreateJobOutput struct { // in the Amazon S3 bucket specified by the OutputBucket object in the pipeline // that is specified by the pipeline ID. If a file with the specified name already // exists in the output bucket, the job fails. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // The Id of the preset to use for this job. The preset determines the audio, // video, and thumbnail settings that Elastic Transcoder uses for transcoding. @@ -1367,6 +1285,12 @@ type CreateJobOutput struct { // each output. Settings for each watermark must be defined in the preset for // the current output. Watermarks []*JobWatermark `type:"list"` + + metadataCreateJobOutput `json:"-" xml:"-"` +} + +type metadataCreateJobOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1379,43 +1303,8 @@ func (s CreateJobOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateJobOutput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateJobOutput"} - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.AlbumArt != nil { - if err := s.AlbumArt.Validate(); err != nil { - invalidParams.AddNested("AlbumArt", err.(request.ErrInvalidParams)) - } - } - if s.Captions != nil { - if err := s.Captions.Validate(); err != nil { - invalidParams.AddNested("Captions", err.(request.ErrInvalidParams)) - } - } - if s.Watermarks != nil { - for i, v := range s.Watermarks { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Watermarks", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Information about the master playlist. type CreateJobPlaylist struct { - _ struct{} `type:"structure"` - // The format of the output playlist. Valid formats include HLSv3, HLSv4, and // Smooth. Format *string `type:"string"` @@ -1434,7 +1323,7 @@ type CreateJobPlaylist struct { // to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc // for Smooth playlists). If you include a file extension in Name, the file // name will have two extensions. - Name *string `min:"1" type:"string"` + Name *string `type:"string"` // For each output in this job that you want to include in a master playlist, // the value of the Outputs:Key object. @@ -1478,6 +1367,12 @@ type CreateJobPlaylist struct { // The DRM settings, if any, that you want Elastic Transcoder to apply to the // output files associated with this playlist. PlayReadyDrm *PlayReadyDrm `type:"structure"` + + metadataCreateJobPlaylist `json:"-" xml:"-"` +} + +type metadataCreateJobPlaylist struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1490,31 +1385,17 @@ func (s CreateJobPlaylist) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateJobPlaylist) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateJobPlaylist"} - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.PlayReadyDrm != nil { - if err := s.PlayReadyDrm.Validate(); err != nil { - invalidParams.AddNested("PlayReadyDrm", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The CreateJobResponse structure. type CreateJobResponse struct { - _ struct{} `type:"structure"` - // A section of the response body that provides information about the job that // is created. Job *Job `type:"structure"` + + metadataCreateJobResponse `json:"-" xml:"-"` +} + +type metadataCreateJobResponse struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1529,8 +1410,6 @@ func (s CreateJobResponse) GoString() string { // The CreatePipelineRequest structure. type CreatePipelineInput struct { - _ struct{} `type:"structure"` - // The AWS Key Management Service (AWS KMS) key that you want to use with this // pipeline. // @@ -1596,7 +1475,7 @@ type CreatePipelineInput struct { // AWS account, but uniqueness is not enforced. // // Constraints: Maximum 40 characters. - Name *string `min:"1" type:"string" required:"true"` + Name *string `type:"string" required:"true"` // The Amazon Simple Notification Service (Amazon SNS) topic that you want to // notify to report job status. @@ -1681,6 +1560,12 @@ type CreatePipelineInput struct { // Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic // Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket. ThumbnailConfig *PipelineOutputConfig `type:"structure"` + + metadataCreatePipelineInput `json:"-" xml:"-"` +} + +type metadataCreatePipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1693,43 +1578,9 @@ func (s CreatePipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"} - if s.InputBucket == nil { - invalidParams.Add(request.NewErrParamRequired("InputBucket")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Role == nil { - invalidParams.Add(request.NewErrParamRequired("Role")) - } - if s.ContentConfig != nil { - if err := s.ContentConfig.Validate(); err != nil { - invalidParams.AddNested("ContentConfig", err.(request.ErrInvalidParams)) - } - } - if s.ThumbnailConfig != nil { - if err := s.ThumbnailConfig.Validate(); err != nil { - invalidParams.AddNested("ThumbnailConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // When you create a pipeline, Elastic Transcoder returns the values that you // specified in the request. type CreatePipelineOutput struct { - _ struct{} `type:"structure"` - // A section of the response body that provides information about the pipeline // that is created. Pipeline *Pipeline `type:"structure"` @@ -1741,6 +1592,12 @@ type CreatePipelineOutput struct { // SNS notification topics, and AWS KMS key, reduces processing time and prevents // cross-regional charges. Warnings []*Warning `type:"list"` + + metadataCreatePipelineOutput `json:"-" xml:"-"` +} + +type metadataCreatePipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1755,8 +1612,6 @@ func (s CreatePipelineOutput) GoString() string { // The CreatePresetRequest structure. type CreatePresetInput struct { - _ struct{} `type:"structure"` - // A section of the request body that specifies the audio parameters. Audio *AudioParameters `type:"structure"` @@ -1769,7 +1624,7 @@ type CreatePresetInput struct { // The name of the preset. We recommend that the name be unique within the AWS // account, but uniqueness is not enforced. - Name *string `min:"1" type:"string" required:"true"` + Name *string `type:"string" required:"true"` // A section of the request body that specifies the thumbnail parameters, if // any. @@ -1777,6 +1632,12 @@ type CreatePresetInput struct { // A section of the request body that specifies the video parameters. Video *VideoParameters `type:"structure"` + + metadataCreatePresetInput `json:"-" xml:"-"` +} + +type metadataCreatePresetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1789,34 +1650,8 @@ func (s CreatePresetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePresetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePresetInput"} - if s.Container == nil { - invalidParams.Add(request.NewErrParamRequired("Container")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Video != nil { - if err := s.Video.Validate(); err != nil { - invalidParams.AddNested("Video", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The CreatePresetResponse structure. type CreatePresetOutput struct { - _ struct{} `type:"structure"` - // A section of the response body that provides information about the preset // that is created. Preset *Preset `type:"structure"` @@ -1826,6 +1661,12 @@ type CreatePresetOutput struct { // the preset settings don't meet the standard. Elastic Transcoder created the // preset because the settings might produce acceptable output. Warning *string `type:"string"` + + metadataCreatePresetOutput `json:"-" xml:"-"` +} + +type metadataCreatePresetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1840,10 +1681,14 @@ func (s CreatePresetOutput) GoString() string { // The DeletePipelineRequest structure. type DeletePipelineInput struct { - _ struct{} `type:"structure"` - // The identifier of the pipeline that you want to delete. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataDeletePipelineInput `json:"-" xml:"-"` +} + +type metadataDeletePipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1856,22 +1701,13 @@ func (s DeletePipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The DeletePipelineResponse structure. type DeletePipelineOutput struct { - _ struct{} `type:"structure"` + metadataDeletePipelineOutput `json:"-" xml:"-"` +} + +type metadataDeletePipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1886,10 +1722,14 @@ func (s DeletePipelineOutput) GoString() string { // The DeletePresetRequest structure. type DeletePresetInput struct { - _ struct{} `type:"structure"` - // The identifier of the preset for which you want to get detailed information. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataDeletePresetInput `json:"-" xml:"-"` +} + +type metadataDeletePresetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1902,22 +1742,13 @@ func (s DeletePresetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePresetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePresetInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The DeletePresetResponse structure. type DeletePresetOutput struct { - _ struct{} `type:"structure"` + metadataDeletePresetOutput `json:"-" xml:"-"` +} + +type metadataDeletePresetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1933,8 +1764,6 @@ func (s DeletePresetOutput) GoString() string { // The detected properties of the input file. Elastic Transcoder identifies // these values from the input file. type DetectedProperties struct { - _ struct{} `type:"structure"` - // The detected duration of the input file, in milliseconds. DurationMillis *int64 `type:"long"` @@ -1949,6 +1778,12 @@ type DetectedProperties struct { // The detected width of the input file, in pixels. Width *int64 `type:"integer"` + + metadataDetectedProperties `json:"-" xml:"-"` +} + +type metadataDetectedProperties struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1967,8 +1802,6 @@ func (s DetectedProperties) GoString() string { // otherwise you must specify the mode you want Elastic Transcoder to use to // encrypt your output files. type Encryption struct { - _ struct{} `type:"structure"` - // The series of random bits created by a random bit generator, unique for every // encryption operation, that you used to encrypt your input files or that you // want Elastic Transcoder to use to encrypt your output files. The initialization @@ -2027,6 +1860,12 @@ type Encryption struct { // your encryption keys. If you lose them, you won't be able to unencrypt your // data. Mode *string `type:"string"` + + metadataEncryption `json:"-" xml:"-"` +} + +type metadataEncryption struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2042,8 +1881,6 @@ func (s Encryption) GoString() string { // The HLS content protection settings, if any, that you want Elastic Transcoder // to apply to your output files. type HlsContentProtection struct { - _ struct{} `type:"structure"` - // If Elastic Transcoder is generating your key for you, you must leave this // field blank. // @@ -2088,6 +1925,12 @@ type HlsContentProtection struct { // This value will be written into the method attribute of the EXT-X-KEY metadata // tag in the output playlist. Method *string `type:"string"` + + metadataHlsContentProtection `json:"-" xml:"-"` +} + +type metadataHlsContentProtection struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2103,8 +1946,6 @@ func (s HlsContentProtection) GoString() string { // A section of the response body that provides information about the job that // is created. type Job struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) for the job. Arn *string `type:"string"` @@ -2129,7 +1970,7 @@ type Job struct { // of all files that this job creates, including output files, thumbnails, and // playlists. We recommend that you add a / or some other delimiter to the end // of the OutputKeyPrefix. - OutputKeyPrefix *string `min:"1" type:"string"` + OutputKeyPrefix *string `type:"string"` // Information about the output files. We recommend that you use the Outputs // syntax for all jobs, even when you want Elastic Transcoder to transcode a @@ -2175,6 +2016,12 @@ type Job struct { // // The following symbols: _.:/=+-%@ UserMetadata map[string]*string `type:"map"` + + metadataJob `json:"-" xml:"-"` +} + +type metadataJob struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2189,8 +2036,6 @@ func (s Job) GoString() string { // The .jpg or .png file associated with an audio file. type JobAlbumArt struct { - _ struct{} `type:"structure"` - // The file to be used as album art. There can be multiple artworks associated // with an audio file, to a maximum of 20. Valid formats are .jpg and .png Artwork []*Artwork `type:"list"` @@ -2206,6 +2051,12 @@ type JobAlbumArt struct { // not contain artwork, Elastic Transcoder will use the specified album art // file. MergePolicy *string `type:"string"` + + metadataJobAlbumArt `json:"-" xml:"-"` +} + +type metadataJobAlbumArt struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2218,30 +2069,8 @@ func (s JobAlbumArt) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *JobAlbumArt) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "JobAlbumArt"} - if s.Artwork != nil { - for i, v := range s.Artwork { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Artwork", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Information about the file that you're transcoding. type JobInput struct { - _ struct{} `type:"structure"` - // The aspect ratio of the input file. If you want Elastic Transcoder to automatically // detect the aspect ratio of the input file, specify auto. If you want to specify // the aspect ratio for the output file, enter one of the following values: @@ -2298,11 +2127,17 @@ type JobInput struct { // If the file name includes a prefix, such as cooking/lasagna.mpg, include // the prefix in the key. If the file isn't in the specified bucket, Elastic // Transcoder returns an error. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // This value must be auto, which causes Elastic Transcoder to automatically // detect the resolution of the input file. Resolution *string `type:"string"` + + metadataJobInput `json:"-" xml:"-"` +} + +type metadataJobInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2315,26 +2150,11 @@ func (s JobInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *JobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "JobInput"} - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Outputs recommended instead.If you specified one output for a job, information // about that output. If you specified multiple outputs for a job, the Output // object lists information about the first output. This duplicates the information // that is listed for the first output in the Outputs object. type JobOutput struct { - _ struct{} `type:"structure"` - // The album art to be associated with the output file, if any. AlbumArt *JobAlbumArt `type:"structure"` @@ -2424,7 +2244,7 @@ type JobOutput struct { // The name to assign to the transcoded file. Elastic Transcoder saves the file // in the Amazon S3 bucket specified by the OutputBucket object in the pipeline // that is specified by the pipeline ID. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // The value of the Id object for the preset that you want to use for this job. // The preset determines the audio, video, and thumbnail settings that Elastic @@ -2531,6 +2351,12 @@ type JobOutput struct { // Specifies the width of the output file in pixels. Width *int64 `type:"integer"` + + metadataJobOutput `json:"-" xml:"-"` +} + +type metadataJobOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2546,8 +2372,6 @@ func (s JobOutput) GoString() string { // Watermarks can be in .png or .jpg format. If you want to display a watermark // that is not rectangular, use the .png format, which supports transparency. type JobWatermark struct { - _ struct{} `type:"structure"` - // The encryption settings, if any, that you want Elastic Transcoder to apply // to your watermarks. Encryption *Encryption `type:"structure"` @@ -2560,13 +2384,19 @@ type JobWatermark struct { // If the file name includes a prefix, for example, logos/128x64.png, include // the prefix in the key. If the file isn't in the specified bucket, Elastic // Transcoder returns an error. - InputKey *string `min:"1" type:"string"` + InputKey *string `type:"string"` // The ID of the watermark settings that Elastic Transcoder uses to add watermarks // to the video during transcoding. The settings are in the preset specified // by Preset for the current output. In that preset, the value of Watermarks // Id tells Elastic Transcoder which settings to use. - PresetWatermarkId *string `min:"1" type:"string"` + PresetWatermarkId *string `type:"string"` + + metadataJobWatermark `json:"-" xml:"-"` +} + +type metadataJobWatermark struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2579,26 +2409,8 @@ func (s JobWatermark) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *JobWatermark) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "JobWatermark"} - if s.InputKey != nil && len(*s.InputKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InputKey", 1)) - } - if s.PresetWatermarkId != nil && len(*s.PresetWatermarkId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PresetWatermarkId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The ListJobsByPipelineRequest structure. type ListJobsByPipelineInput struct { - _ struct{} `type:"structure"` - // To list jobs in chronological order by the date and time that they were submitted, // enter true. To list jobs in reverse chronological order, enter false. Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` @@ -2609,6 +2421,12 @@ type ListJobsByPipelineInput struct { // The ID of the pipeline for which you want to get job information. PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"` + + metadataListJobsByPipelineInput `json:"-" xml:"-"` +} + +type metadataListJobsByPipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2621,23 +2439,8 @@ func (s ListJobsByPipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListJobsByPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListJobsByPipelineInput"} - if s.PipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("PipelineId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The ListJobsByPipelineResponse structure. type ListJobsByPipelineOutput struct { - _ struct{} `type:"structure"` - // An array of Job objects that are in the specified pipeline. Jobs []*Job `type:"list"` @@ -2645,6 +2448,12 @@ type ListJobsByPipelineOutput struct { // if any. When the jobs in the specified pipeline fit on one page or when you've // reached the last page of results, the value of NextPageToken is null. NextPageToken *string `type:"string"` + + metadataListJobsByPipelineOutput `json:"-" xml:"-"` +} + +type metadataListJobsByPipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2659,8 +2468,6 @@ func (s ListJobsByPipelineOutput) GoString() string { // The ListJobsByStatusRequest structure. type ListJobsByStatusInput struct { - _ struct{} `type:"structure"` - // To list jobs in chronological order by the date and time that they were submitted, // enter true. To list jobs in reverse chronological order, enter false. Ascending *string `location:"querystring" locationName:"Ascending" type:"string"` @@ -2673,6 +2480,12 @@ type ListJobsByStatusInput struct { // account that have a given status, specify the following status: Submitted, // Progressing, Complete, Canceled, or Error. Status *string `location:"uri" locationName:"Status" type:"string" required:"true"` + + metadataListJobsByStatusInput `json:"-" xml:"-"` +} + +type metadataListJobsByStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2685,23 +2498,8 @@ func (s ListJobsByStatusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListJobsByStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListJobsByStatusInput"} - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The ListJobsByStatusResponse structure. type ListJobsByStatusOutput struct { - _ struct{} `type:"structure"` - // An array of Job objects that have the specified status. Jobs []*Job `type:"list"` @@ -2709,6 +2507,12 @@ type ListJobsByStatusOutput struct { // if any. When the jobs in the specified pipeline fit on one page or when you've // reached the last page of results, the value of NextPageToken is null. NextPageToken *string `type:"string"` + + metadataListJobsByStatusOutput `json:"-" xml:"-"` +} + +type metadataListJobsByStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2723,8 +2527,6 @@ func (s ListJobsByStatusOutput) GoString() string { // The ListPipelineRequest structure. type ListPipelinesInput struct { - _ struct{} `type:"structure"` - // To list pipelines in chronological order by the date and time that they were // created, enter true. To list pipelines in reverse chronological order, enter // false. @@ -2733,6 +2535,12 @@ type ListPipelinesInput struct { // When Elastic Transcoder returns more than one page of results, use pageToken // in subsequent GET requests to get each successive page of results. PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` + + metadataListPipelinesInput `json:"-" xml:"-"` +} + +type metadataListPipelinesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2747,8 +2555,6 @@ func (s ListPipelinesInput) GoString() string { // A list of the pipelines associated with the current AWS account. type ListPipelinesOutput struct { - _ struct{} `type:"structure"` - // A value that you use to access the second and subsequent pages of results, // if any. When the pipelines fit on one page or when you've reached the last // page of results, the value of NextPageToken is null. @@ -2756,6 +2562,12 @@ type ListPipelinesOutput struct { // An array of Pipeline objects. Pipelines []*Pipeline `type:"list"` + + metadataListPipelinesOutput `json:"-" xml:"-"` +} + +type metadataListPipelinesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2770,8 +2582,6 @@ func (s ListPipelinesOutput) GoString() string { // The ListPresetsRequest structure. type ListPresetsInput struct { - _ struct{} `type:"structure"` - // To list presets in chronological order by the date and time that they were // created, enter true. To list presets in reverse chronological order, enter // false. @@ -2780,6 +2590,12 @@ type ListPresetsInput struct { // When Elastic Transcoder returns more than one page of results, use pageToken // in subsequent GET requests to get each successive page of results. PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` + + metadataListPresetsInput `json:"-" xml:"-"` +} + +type metadataListPresetsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2794,8 +2610,6 @@ func (s ListPresetsInput) GoString() string { // The ListPresetsResponse structure. type ListPresetsOutput struct { - _ struct{} `type:"structure"` - // A value that you use to access the second and subsequent pages of results, // if any. When the presets fit on one page or when you've reached the last // page of results, the value of NextPageToken is null. @@ -2803,6 +2617,12 @@ type ListPresetsOutput struct { // An array of Preset objects. Presets []*Preset `type:"list"` + + metadataListPresetsOutput `json:"-" xml:"-"` +} + +type metadataListPresetsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2821,8 +2641,6 @@ func (s ListPresetsOutput) GoString() string { // To receive notifications, you must also subscribe to the new topic in the // Amazon SNS console. type Notifications struct { - _ struct{} `type:"structure"` - // The Amazon SNS topic that you want to notify when Elastic Transcoder has // finished processing the job. Completed *string `type:"string"` @@ -2838,6 +2656,12 @@ type Notifications struct { // The Amazon SNS topic that you want to notify when Elastic Transcoder encounters // a warning condition. Warning *string `type:"string"` + + metadataNotifications `json:"-" xml:"-"` +} + +type metadataNotifications struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2852,8 +2676,6 @@ func (s Notifications) GoString() string { // The Permission structure. type Permission struct { - _ struct{} `type:"structure"` - // The permission that you want to give to the AWS user that is listed in Grantee. // Valid values include: READ: The grantee can read the thumbnails and metadata // for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. READ_ACP: @@ -2869,7 +2691,7 @@ type Permission struct { // ID for an AWS account, an origin access identity for a CloudFront distribution, // the registered email address of an AWS account, or a predefined Amazon S3 // group. - Grantee *string `min:"1" type:"string"` + Grantee *string `type:"string"` // The type of value that appears in the Grantee object: Canonical: Either // the canonical user ID for an AWS account or an origin access identity for @@ -2878,6 +2700,12 @@ type Permission struct { // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers, // or LogDelivery. GranteeType *string `type:"string"` + + metadataPermission `json:"-" xml:"-"` +} + +type metadataPermission struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2890,23 +2718,8 @@ func (s Permission) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Permission) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Permission"} - if s.Grantee != nil && len(*s.Grantee) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Grantee", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The pipeline (queue) that is used to manage jobs. type Pipeline struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) for the pipeline. Arn *string `type:"string"` @@ -2960,7 +2773,7 @@ type Pipeline struct { // AWS account, but uniqueness is not enforced. // // Constraints: Maximum 40 characters - Name *string `min:"1" type:"string"` + Name *string `type:"string"` // The Amazon Simple Notification Service (Amazon SNS) topic that you want to // notify to report job status. @@ -3017,6 +2830,12 @@ type Pipeline struct { // Standard or ReducedRedundancy, that you want Elastic Transcoder to assign // to the thumbnails that it stores in your Amazon S3 bucket. ThumbnailConfig *PipelineOutputConfig `type:"structure"` + + metadataPipeline `json:"-" xml:"-"` +} + +type metadataPipeline struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3031,8 +2850,6 @@ func (s Pipeline) GoString() string { // The PipelineOutputConfig structure. type PipelineOutputConfig struct { - _ struct{} `type:"structure"` - // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded // files. Specify this value when all of the following are true: You want to // save transcoded files, thumbnails (if any), and playlists (if any) together @@ -3066,6 +2883,12 @@ type PipelineOutputConfig struct { // Elastic Transcoder to assign to the video files and playlists that it stores // in your Amazon S3 bucket. StorageClass *string `type:"string"` + + metadataPipelineOutputConfig `json:"-" xml:"-"` +} + +type metadataPipelineOutputConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3078,26 +2901,6 @@ func (s PipelineOutputConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PipelineOutputConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PipelineOutputConfig"} - if s.Permissions != nil { - for i, v := range s.Permissions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Permissions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The PlayReady DRM settings, if any, that you want Elastic Transcoder to apply // to the output files associated with this playlist. // @@ -3105,8 +2908,6 @@ func (s *PipelineOutputConfig) Validate() error { // // If you use DRM for an HLSv3 playlist, your outputs must have a master playlist. type PlayReadyDrm struct { - _ struct{} `type:"structure"` - // The type of DRM, if any, that you want Elastic Transcoder to apply to the // output files associated with this playlist. Format *string `type:"string"` @@ -3147,7 +2948,13 @@ type PlayReadyDrm struct { // header is referenced in the protection header of the client manifest for // Smooth Streaming outputs, and in the EXT-X-DXDRM and EXT-XDXDRMINFO metadata // tags for HLS playlist outputs. An example URL looks like this: https://www.example.com/exampleKey/ - LicenseAcquisitionUrl *string `min:"1" type:"string"` + LicenseAcquisitionUrl *string `type:"string"` + + metadataPlayReadyDrm `json:"-" xml:"-"` +} + +type metadataPlayReadyDrm struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3160,27 +2967,12 @@ func (s PlayReadyDrm) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PlayReadyDrm) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PlayReadyDrm"} - if s.LicenseAcquisitionUrl != nil && len(*s.LicenseAcquisitionUrl) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LicenseAcquisitionUrl", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Use Only for Fragmented MP4 or MPEG-TS Outputs. If you specify a preset for // which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists // contains information about the master playlists that you want Elastic Transcoder // to create. We recommend that you create only one master playlist per output // format. The maximum number of master playlists in a job is 30. type Playlist struct { - _ struct{} `type:"structure"` - // The format of the output playlist. Valid formats include HLSv3, HLSv4, and // Smooth. Format *string `type:"string"` @@ -3199,7 +2991,7 @@ type Playlist struct { // to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc // for Smooth playlists). If you include a file extension in Name, the file // name will have two extensions. - Name *string `min:"1" type:"string"` + Name *string `type:"string"` // For each output in this job that you want to include in a master playlist, // the value of the Outputs:Key object. @@ -3249,6 +3041,12 @@ type Playlist struct { // Information that further explains the status. StatusDetail *string `type:"string"` + + metadataPlaylist `json:"-" xml:"-"` +} + +type metadataPlaylist struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3268,8 +3066,6 @@ func (s Playlist) GoString() string { // the default presets. You specify which preset you want to use when you create // a job. type Preset struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) for the preset. Arn *string `type:"string"` @@ -3289,7 +3085,7 @@ type Preset struct { Id *string `type:"string"` // The name of the preset. - Name *string `min:"1" type:"string"` + Name *string `type:"string"` // A section of the response body that provides information about the thumbnail // preset values, if any. @@ -3302,6 +3098,12 @@ type Preset struct { // A section of the response body that provides information about the video // preset values. Video *VideoParameters `type:"structure"` + + metadataPreset `json:"-" xml:"-"` +} + +type metadataPreset struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3329,8 +3131,6 @@ func (s Preset) GoString() string { // in the preset, which allows you to use the same preset for up to four watermarks // that have different dimensions. type PresetWatermark struct { - _ struct{} `type:"structure"` - // The horizontal position of the watermark unless you specify a non-zero value // for HorizontalOffset: Left: The left edge of the watermark is aligned with // the left border of the video. Right: The right edge of the watermark is @@ -3359,7 +3159,7 @@ type PresetWatermark struct { // A unique identifier for the settings for one watermark. The value of Id can // be up to 40 characters long. - Id *string `min:"1" type:"string"` + Id *string `type:"string"` // The maximum height of the watermark in one of the following formats: number // of pixels (px): The minimum value is 16 pixels, and the maximum value is @@ -3441,6 +3241,12 @@ type PresetWatermark struct { // include the black bars that are added by Elastic Transcoder, if any, in the // offset calculation. VerticalOffset *string `type:"string"` + + metadataPresetWatermark `json:"-" xml:"-"` +} + +type metadataPresetWatermark struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3453,25 +3259,16 @@ func (s PresetWatermark) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PresetWatermark) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PresetWatermark"} - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The ReadJobRequest structure. type ReadJobInput struct { - _ struct{} `type:"structure"` - // The identifier of the job for which you want to get detailed information. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataReadJobInput `json:"-" xml:"-"` +} + +type metadataReadJobInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3484,25 +3281,16 @@ func (s ReadJobInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReadJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReadJobInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The ReadJobResponse structure. type ReadJobOutput struct { - _ struct{} `type:"structure"` - // A section of the response body that provides information about the job. Job *Job `type:"structure"` + + metadataReadJobOutput `json:"-" xml:"-"` +} + +type metadataReadJobOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3517,10 +3305,14 @@ func (s ReadJobOutput) GoString() string { // The ReadPipelineRequest structure. type ReadPipelineInput struct { - _ struct{} `type:"structure"` - // The identifier of the pipeline to read. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataReadPipelineInput `json:"-" xml:"-"` +} + +type metadataReadPipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3533,23 +3325,8 @@ func (s ReadPipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReadPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReadPipelineInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The ReadPipelineResponse structure. type ReadPipelineOutput struct { - _ struct{} `type:"structure"` - // A section of the response body that provides information about the pipeline. Pipeline *Pipeline `type:"structure"` @@ -3560,6 +3337,12 @@ type ReadPipelineOutput struct { // SNS notification topics, and AWS KMS key, reduces processing time and prevents // cross-regional charges. Warnings []*Warning `type:"list"` + + metadataReadPipelineOutput `json:"-" xml:"-"` +} + +type metadataReadPipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3574,10 +3357,14 @@ func (s ReadPipelineOutput) GoString() string { // The ReadPresetRequest structure. type ReadPresetInput struct { - _ struct{} `type:"structure"` - // The identifier of the preset for which you want to get detailed information. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataReadPresetInput `json:"-" xml:"-"` +} + +type metadataReadPresetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3590,25 +3377,16 @@ func (s ReadPresetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReadPresetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReadPresetInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The ReadPresetResponse structure. type ReadPresetOutput struct { - _ struct{} `type:"structure"` - // A section of the response body that provides information about the preset. Preset *Preset `type:"structure"` + + metadataReadPresetOutput `json:"-" xml:"-"` +} + +type metadataReadPresetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3623,8 +3401,6 @@ func (s ReadPresetOutput) GoString() string { // The TestRoleRequest structure. type TestRoleInput struct { - _ struct{} `type:"structure"` - // The Amazon S3 bucket that contains media files to be transcoded. The action // attempts to read from this bucket. InputBucket *string `type:"string" required:"true"` @@ -3640,6 +3416,12 @@ type TestRoleInput struct { // The ARNs of one or more Amazon Simple Notification Service (Amazon SNS) topics // that you want the action to send a test notification to. Topics []*string `type:"list" required:"true"` + + metadataTestRoleInput `json:"-" xml:"-"` +} + +type metadataTestRoleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3652,32 +3434,8 @@ func (s TestRoleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TestRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TestRoleInput"} - if s.InputBucket == nil { - invalidParams.Add(request.NewErrParamRequired("InputBucket")) - } - if s.OutputBucket == nil { - invalidParams.Add(request.NewErrParamRequired("OutputBucket")) - } - if s.Role == nil { - invalidParams.Add(request.NewErrParamRequired("Role")) - } - if s.Topics == nil { - invalidParams.Add(request.NewErrParamRequired("Topics")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The TestRoleResponse structure. type TestRoleOutput struct { - _ struct{} `type:"structure"` - // If the Success element contains false, this value is an array of one or more // error messages that were generated during the test process. Messages []*string `type:"list"` @@ -3685,6 +3443,12 @@ type TestRoleOutput struct { // If the operation is successful, this value is true; otherwise, the value // is false. Success *string `type:"string"` + + metadataTestRoleOutput `json:"-" xml:"-"` +} + +type metadataTestRoleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3699,8 +3463,6 @@ func (s TestRoleOutput) GoString() string { // Thumbnails for videos. type Thumbnails struct { - _ struct{} `type:"structure"` - // To better control resolution and aspect ratio of thumbnails, we recommend // that you use the values MaxWidth, MaxHeight, SizingPolicy, and PaddingPolicy // instead of Resolution and AspectRatio. The two groups of settings are mutually @@ -3773,6 +3535,12 @@ type Thumbnails struct { // without dropping below either value. If you specify this option, Elastic // Transcoder does not scale thumbnails up. SizingPolicy *string `type:"string"` + + metadataThumbnails `json:"-" xml:"-"` +} + +type metadataThumbnails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3787,8 +3555,6 @@ func (s Thumbnails) GoString() string { // Settings that determine when a clip begins and how long it lasts. type TimeSpan struct { - _ struct{} `type:"structure"` - // The duration of the clip. The format can be either HH:mm:ss.SSS (maximum // value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum // value: 86399.999). If you don't specify a value, Elastic Transcoder creates @@ -3803,6 +3569,12 @@ type TimeSpan struct { // a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a // value, Elastic Transcoder starts at the beginning of the input file. StartTime *string `type:"string"` + + metadataTimeSpan `json:"-" xml:"-"` +} + +type metadataTimeSpan struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3817,8 +3589,6 @@ func (s TimeSpan) GoString() string { // Details about the timing of a job. type Timing struct { - _ struct{} `type:"structure"` - // The time the job finished transcoding, in epoch milliseconds. FinishTimeMillis *int64 `type:"long"` @@ -3827,6 +3597,12 @@ type Timing struct { // The time the job was submitted to Elastic Transcoder, in epoch milliseconds. SubmitTimeMillis *int64 `type:"long"` + + metadataTiming `json:"-" xml:"-"` +} + +type metadataTiming struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3841,8 +3617,6 @@ func (s Timing) GoString() string { // The UpdatePipelineRequest structure. type UpdatePipelineInput struct { - _ struct{} `type:"structure"` - // The AWS Key Management Service (AWS KMS) key that you want to use with this // pipeline. // @@ -3911,7 +3685,7 @@ type UpdatePipelineInput struct { // AWS account, but uniqueness is not enforced. // // Constraints: Maximum 40 characters - Name *string `min:"1" type:"string"` + Name *string `type:"string"` // The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify // in order to report job status. @@ -3964,6 +3738,12 @@ type UpdatePipelineInput struct { // Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic // Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket. ThumbnailConfig *PipelineOutputConfig `type:"structure"` + + metadataUpdatePipelineInput `json:"-" xml:"-"` +} + +type metadataUpdatePipelineInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3976,36 +3756,8 @@ func (s UpdatePipelineInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdatePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.ContentConfig != nil { - if err := s.ContentConfig.Validate(); err != nil { - invalidParams.AddNested("ContentConfig", err.(request.ErrInvalidParams)) - } - } - if s.ThumbnailConfig != nil { - if err := s.ThumbnailConfig.Validate(); err != nil { - invalidParams.AddNested("ThumbnailConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The UpdatePipelineNotificationsRequest structure. type UpdatePipelineNotificationsInput struct { - _ struct{} `type:"structure"` - // The identifier of the pipeline for which you want to change notification // settings. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -4027,6 +3779,12 @@ type UpdatePipelineNotificationsInput struct { // Transcoder encounters an error condition. This is the ARN that Amazon SNS // returned when you created the topic. Notifications *Notifications `type:"structure" required:"true"` + + metadataUpdatePipelineNotificationsInput `json:"-" xml:"-"` +} + +type metadataUpdatePipelineNotificationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4039,28 +3797,16 @@ func (s UpdatePipelineNotificationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdatePipelineNotificationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineNotificationsInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Notifications == nil { - invalidParams.Add(request.NewErrParamRequired("Notifications")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The UpdatePipelineNotificationsResponse structure. type UpdatePipelineNotificationsOutput struct { - _ struct{} `type:"structure"` - // A section of the response body that provides information about the pipeline. Pipeline *Pipeline `type:"structure"` + + metadataUpdatePipelineNotificationsOutput `json:"-" xml:"-"` +} + +type metadataUpdatePipelineNotificationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4076,8 +3822,6 @@ func (s UpdatePipelineNotificationsOutput) GoString() string { // When you update a pipeline, Elastic Transcoder returns the values that you // specified in the request. type UpdatePipelineOutput struct { - _ struct{} `type:"structure"` - // The pipeline (queue) that is used to manage jobs. Pipeline *Pipeline `type:"structure"` @@ -4088,6 +3832,12 @@ type UpdatePipelineOutput struct { // SNS notification topics, and AWS KMS key, reduces processing time and prevents // cross-regional charges. Warnings []*Warning `type:"list"` + + metadataUpdatePipelineOutput `json:"-" xml:"-"` +} + +type metadataUpdatePipelineOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4102,8 +3852,6 @@ func (s UpdatePipelineOutput) GoString() string { // The UpdatePipelineStatusRequest structure. type UpdatePipelineStatusInput struct { - _ struct{} `type:"structure"` - // The identifier of the pipeline to update. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -4112,6 +3860,12 @@ type UpdatePipelineStatusInput struct { // Active: The pipeline is processing jobs. Paused: The pipeline is not // currently processing jobs. Status *string `type:"string" required:"true"` + + metadataUpdatePipelineStatusInput `json:"-" xml:"-"` +} + +type metadataUpdatePipelineStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4124,29 +3878,17 @@ func (s UpdatePipelineStatusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdatePipelineStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineStatusInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // When you update status for a pipeline, Elastic Transcoder returns the values // that you specified in the request. type UpdatePipelineStatusOutput struct { - _ struct{} `type:"structure"` - // A section of the response body that provides information about the pipeline. Pipeline *Pipeline `type:"structure"` + + metadataUpdatePipelineStatusOutput `json:"-" xml:"-"` +} + +type metadataUpdatePipelineStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4161,8 +3903,6 @@ func (s UpdatePipelineStatusOutput) GoString() string { // The VideoParameters structure. type VideoParameters struct { - _ struct{} `type:"structure"` - // To better control resolution and aspect ratio of output videos, we recommend // that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy, // and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups @@ -4457,6 +4197,12 @@ type VideoParameters struct { // in the preset, which allows you to use the same preset for up to four watermarks // that have different dimensions. Watermarks []*PresetWatermark `type:"list"` + + metadataVideoParameters `json:"-" xml:"-"` +} + +type metadataVideoParameters struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4469,26 +4215,6 @@ func (s VideoParameters) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *VideoParameters) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VideoParameters"} - if s.Watermarks != nil { - for i, v := range s.Watermarks { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Watermarks", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Elastic Transcoder returns a warning if the resources used by your pipeline // are not in the same region as the pipeline. // @@ -4496,8 +4222,6 @@ func (s *VideoParameters) Validate() error { // SNS notification topics, and AWS KMS key, reduces processing time and prevents // cross-regional charges. type Warning struct { - _ struct{} `type:"structure"` - // The code of the cross-regional warning. Code *string `type:"string"` @@ -4506,6 +4230,12 @@ type Warning struct { // // Note: AWS KMS keys must be in the same region as the pipeline. Message *string `type:"string"` + + metadataWarning `json:"-" xml:"-"` +} + +type metadataWarning struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go index c1526c5ee..930ad3d7f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface.go @@ -86,5 +86,3 @@ type ElasticTranscoderAPI interface { UpdatePipelineStatus(*elastictranscoder.UpdatePipelineStatusInput) (*elastictranscoder.UpdatePipelineStatusOutput, error) } - -var _ ElasticTranscoderAPI = (*elastictranscoder.ElasticTranscoder)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface_test.go new file mode 100644 index 000000000..a85ad2491 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elastictranscoderiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/elastictranscoder" + "github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*elastictranscoderiface.ElasticTranscoderAPI)(nil), elastictranscoder.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go index c9f63bca5..c2a6c8569 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elastictranscoder" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleElasticTranscoder_CancelJob() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.CancelJobInput{ Id: aws.String("Id"), // Required @@ -35,7 +34,7 @@ func ExampleElasticTranscoder_CancelJob() { } func ExampleElasticTranscoder_CreateJob() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.CreateJobInput{ Input: &elastictranscoder.JobInput{ // Required @@ -294,7 +293,7 @@ func ExampleElasticTranscoder_CreateJob() { } func ExampleElasticTranscoder_CreatePipeline() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.CreatePipelineInput{ InputBucket: aws.String("BucketName"), // Required @@ -353,7 +352,7 @@ func ExampleElasticTranscoder_CreatePipeline() { } func ExampleElasticTranscoder_CreatePreset() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.CreatePresetInput{ Container: aws.String("PresetContainer"), // Required @@ -431,7 +430,7 @@ func ExampleElasticTranscoder_CreatePreset() { } func ExampleElasticTranscoder_DeletePipeline() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.DeletePipelineInput{ Id: aws.String("Id"), // Required @@ -450,7 +449,7 @@ func ExampleElasticTranscoder_DeletePipeline() { } func ExampleElasticTranscoder_DeletePreset() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.DeletePresetInput{ Id: aws.String("Id"), // Required @@ -469,7 +468,7 @@ func ExampleElasticTranscoder_DeletePreset() { } func ExampleElasticTranscoder_ListJobsByPipeline() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.ListJobsByPipelineInput{ PipelineId: aws.String("Id"), // Required @@ -490,7 +489,7 @@ func ExampleElasticTranscoder_ListJobsByPipeline() { } func ExampleElasticTranscoder_ListJobsByStatus() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.ListJobsByStatusInput{ Status: aws.String("JobStatus"), // Required @@ -511,7 +510,7 @@ func ExampleElasticTranscoder_ListJobsByStatus() { } func ExampleElasticTranscoder_ListPipelines() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.ListPipelinesInput{ Ascending: aws.String("Ascending"), @@ -531,7 +530,7 @@ func ExampleElasticTranscoder_ListPipelines() { } func ExampleElasticTranscoder_ListPresets() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.ListPresetsInput{ Ascending: aws.String("Ascending"), @@ -551,7 +550,7 @@ func ExampleElasticTranscoder_ListPresets() { } func ExampleElasticTranscoder_ReadJob() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.ReadJobInput{ Id: aws.String("Id"), // Required @@ -570,7 +569,7 @@ func ExampleElasticTranscoder_ReadJob() { } func ExampleElasticTranscoder_ReadPipeline() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.ReadPipelineInput{ Id: aws.String("Id"), // Required @@ -589,7 +588,7 @@ func ExampleElasticTranscoder_ReadPipeline() { } func ExampleElasticTranscoder_ReadPreset() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.ReadPresetInput{ Id: aws.String("Id"), // Required @@ -608,7 +607,7 @@ func ExampleElasticTranscoder_ReadPreset() { } func ExampleElasticTranscoder_TestRole() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.TestRoleInput{ InputBucket: aws.String("BucketName"), // Required @@ -633,7 +632,7 @@ func ExampleElasticTranscoder_TestRole() { } func ExampleElasticTranscoder_UpdatePipeline() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.UpdatePipelineInput{ Id: aws.String("Id"), // Required @@ -692,7 +691,7 @@ func ExampleElasticTranscoder_UpdatePipeline() { } func ExampleElasticTranscoder_UpdatePipelineNotifications() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.UpdatePipelineNotificationsInput{ Id: aws.String("Id"), // Required @@ -717,7 +716,7 @@ func ExampleElasticTranscoder_UpdatePipelineNotifications() { } func ExampleElasticTranscoder_UpdatePipelineStatus() { - svc := elastictranscoder.New(session.New()) + svc := elastictranscoder.New(nil) params := &elastictranscoder.UpdatePipelineStatusInput{ Id: aws.String("Id"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/service.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/service.go index 322bdcdc5..9805b57ae 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/service.go @@ -4,72 +4,49 @@ package elastictranscoder import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restjson" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // The AWS Elastic Transcoder Service. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type ElasticTranscoder struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elastictranscoder" - -// New creates a new instance of the ElasticTranscoder client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ElasticTranscoder client from just a session. -// svc := elastictranscoder.New(mySession) -// -// // Create a ElasticTranscoder client with additional configuration -// svc := elastictranscoder.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ElasticTranscoder { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ElasticTranscoder { - svc := &ElasticTranscoder{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2012-09-25", - }, - handlers, - ), +// New returns a new ElasticTranscoder client. +func New(config *aws.Config) *ElasticTranscoder { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "elastictranscoder", + APIVersion: "2012-09-25", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) + + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &ElasticTranscoder{service} } // newRequest creates a new request for a ElasticTranscoder operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/waiters.go deleted file mode 100644 index 8f5fcff03..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/waiters.go +++ /dev/null @@ -1,42 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package elastictranscoder - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *ElasticTranscoder) WaitUntilJobComplete(input *ReadJobInput) error { - waiterCfg := waiter.Config{ - Operation: "ReadJob", - Delay: 30, - MaxAttempts: 120, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "Job.Status", - Expected: "Complete", - }, - { - State: "failure", - Matcher: "path", - Argument: "Job.Status", - Expected: "Canceled", - }, - { - State: "failure", - Matcher: "path", - Argument: "Job.Status", - Expected: "Error", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/api.go b/vendor/github.com/aws/aws-sdk-go/service/elb/api.go index ed4293f27..c8ffd63e7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/api.go @@ -4,7 +4,6 @@ package elb import ( - "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -473,12 +472,10 @@ func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) return } -// Describes the state of the specified instances with respect to the specified +// Describes the state of the specified instances registered with the specified // load balancer. If no instances are specified, the call describes the state -// of all instances that are currently registered with the load balancer. If -// instances are specified, their state is returned even if they are no longer -// registered with the load balancer. The state of terminated instances is not -// returned. +// of all instances registered with the load balancer, not including any terminated +// instances. func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error) { req, out := c.DescribeInstanceHealthRequest(input) err := req.Send() @@ -612,7 +609,6 @@ func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*Describ func (c *ELB) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(p *DescribeLoadBalancersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeLoadBalancersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeLoadBalancersOutput), lastPage) }) @@ -818,9 +814,8 @@ func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesW // with the load balancer in the VPC. // // Note that RegisterInstanceWithLoadBalancer completes when the request has -// been registered. Instance registration takes a little time to complete. To -// check the state of the registered instances, use DescribeLoadBalancers or -// DescribeInstanceHealth. +// been registered. Instance registration happens shortly afterwards. To check +// the state of the registered instances, use DescribeLoadBalancers or DescribeInstanceHealth. // // After the instance is registered, it starts receiving traffic and requests // from the load balancer. Any instance that is not in one of the Availability @@ -970,8 +965,6 @@ func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOf // Information about the AccessLog attribute. type AccessLog struct { - _ struct{} `type:"structure"` - // The interval for publishing the access logs. You can specify an interval // of either 5 minutes or 60 minutes. // @@ -988,6 +981,12 @@ type AccessLog struct { // my-bucket-prefix/prod. If the prefix is not provided, the log is placed at // the root level of the bucket. S3BucketPrefix *string `type:"string"` + + metadataAccessLog `json:"-" xml:"-"` +} + +type metadataAccessLog struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1000,27 +999,18 @@ func (s AccessLog) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AccessLog) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AccessLog"} - if s.Enabled == nil { - invalidParams.Add(request.NewErrParamRequired("Enabled")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type AddTagsInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. You can specify one load balancer only. LoadBalancerNames []*string `type:"list" required:"true"` // The tags. - Tags []*Tag `min:"1" type:"list" required:"true"` + Tags []*Tag `type:"list" required:"true"` + + metadataAddTagsInput `json:"-" xml:"-"` +} + +type metadataAddTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1033,37 +1023,12 @@ func (s AddTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"} - if s.LoadBalancerNames == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AddTagsOutput struct { + metadataAddTagsOutput `json:"-" xml:"-"` } -type AddTagsOutput struct { - _ struct{} `type:"structure"` +type metadataAddTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1078,13 +1043,17 @@ func (s AddTagsOutput) GoString() string { // This data type is reserved. type AdditionalAttribute struct { - _ struct{} `type:"structure"` - // This parameter is reserved. Key *string `type:"string"` // This parameter is reserved. Value *string `type:"string"` + + metadataAdditionalAttribute `json:"-" xml:"-"` +} + +type metadataAdditionalAttribute struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1099,14 +1068,18 @@ func (s AdditionalAttribute) GoString() string { // Information about a policy for application-controlled session stickiness. type AppCookieStickinessPolicy struct { - _ struct{} `type:"structure"` - // The name of the application cookie used for stickiness. CookieName *string `type:"string"` // The mnemonic name for the policy being created. The name must be unique within // a set of policies for this load balancer. PolicyName *string `type:"string"` + + metadataAppCookieStickinessPolicy `json:"-" xml:"-"` +} + +type metadataAppCookieStickinessPolicy struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1120,14 +1093,18 @@ func (s AppCookieStickinessPolicy) GoString() string { } type ApplySecurityGroupsToLoadBalancerInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` // The IDs of the security groups to associate with the load balancer. Note // that you cannot specify the name of the security group. SecurityGroups []*string `type:"list" required:"true"` + + metadataApplySecurityGroupsToLoadBalancerInput `json:"-" xml:"-"` +} + +type metadataApplySecurityGroupsToLoadBalancerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1140,27 +1117,15 @@ func (s ApplySecurityGroupsToLoadBalancerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ApplySecurityGroupsToLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ApplySecurityGroupsToLoadBalancerInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.SecurityGroups == nil { - invalidParams.Add(request.NewErrParamRequired("SecurityGroups")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ApplySecurityGroupsToLoadBalancerOutput struct { - _ struct{} `type:"structure"` - // The IDs of the security groups associated with the load balancer. SecurityGroups []*string `type:"list"` + + metadataApplySecurityGroupsToLoadBalancerOutput `json:"-" xml:"-"` +} + +type metadataApplySecurityGroupsToLoadBalancerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1174,14 +1139,18 @@ func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string { } type AttachLoadBalancerToSubnetsInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` // The IDs of the subnets to add for the load balancer. You can add only one // subnet per Availability Zone. Subnets []*string `type:"list" required:"true"` + + metadataAttachLoadBalancerToSubnetsInput `json:"-" xml:"-"` +} + +type metadataAttachLoadBalancerToSubnetsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1194,27 +1163,15 @@ func (s AttachLoadBalancerToSubnetsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachLoadBalancerToSubnetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachLoadBalancerToSubnetsInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.Subnets == nil { - invalidParams.Add(request.NewErrParamRequired("Subnets")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type AttachLoadBalancerToSubnetsOutput struct { - _ struct{} `type:"structure"` - // The IDs of the subnets attached to the load balancer. Subnets []*string `type:"list"` + + metadataAttachLoadBalancerToSubnetsOutput `json:"-" xml:"-"` +} + +type metadataAttachLoadBalancerToSubnetsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1229,13 +1186,17 @@ func (s AttachLoadBalancerToSubnetsOutput) GoString() string { // Information about the configuration of a back-end server. type BackendServerDescription struct { - _ struct{} `type:"structure"` - // The port on which the back-end server is listening. - InstancePort *int64 `min:"1" type:"integer"` + InstancePort *int64 `type:"integer"` // The names of the policies enabled for the back-end server. PolicyNames []*string `type:"list"` + + metadataBackendServerDescription `json:"-" xml:"-"` +} + +type metadataBackendServerDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1249,13 +1210,17 @@ func (s BackendServerDescription) GoString() string { } type ConfigureHealthCheckInput struct { - _ struct{} `type:"structure"` - // The configuration information for the new health check. HealthCheck *HealthCheck `type:"structure" required:"true"` // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` + + metadataConfigureHealthCheckInput `json:"-" xml:"-"` +} + +type metadataConfigureHealthCheckInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1268,32 +1233,15 @@ func (s ConfigureHealthCheckInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfigureHealthCheckInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfigureHealthCheckInput"} - if s.HealthCheck == nil { - invalidParams.Add(request.NewErrParamRequired("HealthCheck")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.HealthCheck != nil { - if err := s.HealthCheck.Validate(); err != nil { - invalidParams.AddNested("HealthCheck", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ConfigureHealthCheckOutput struct { - _ struct{} `type:"structure"` - // The updated health check. HealthCheck *HealthCheck `type:"structure"` + + metadataConfigureHealthCheckOutput `json:"-" xml:"-"` +} + +type metadataConfigureHealthCheckOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1308,14 +1256,18 @@ func (s ConfigureHealthCheckOutput) GoString() string { // Information about the ConnectionDraining attribute. type ConnectionDraining struct { - _ struct{} `type:"structure"` - // Specifies whether connection draining is enabled for the load balancer. Enabled *bool `type:"boolean" required:"true"` // The maximum time, in seconds, to keep the existing connections open before // deregistering the instances. Timeout *int64 `type:"integer"` + + metadataConnectionDraining `json:"-" xml:"-"` +} + +type metadataConnectionDraining struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1328,26 +1280,17 @@ func (s ConnectionDraining) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConnectionDraining) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConnectionDraining"} - if s.Enabled == nil { - invalidParams.Add(request.NewErrParamRequired("Enabled")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Information about the ConnectionSettings attribute. type ConnectionSettings struct { - _ struct{} `type:"structure"` - // The time, in seconds, that the connection is allowed to be idle (no data // has been sent over the connection) before it is closed by the load balancer. - IdleTimeout *int64 `min:"1" type:"integer" required:"true"` + IdleTimeout *int64 `type:"integer" required:"true"` + + metadataConnectionSettings `json:"-" xml:"-"` +} + +type metadataConnectionSettings struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1360,35 +1303,22 @@ func (s ConnectionSettings) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConnectionSettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConnectionSettings"} - if s.IdleTimeout == nil { - invalidParams.Add(request.NewErrParamRequired("IdleTimeout")) - } - if s.IdleTimeout != nil && *s.IdleTimeout < 1 { - invalidParams.Add(request.NewErrParamMinValue("IdleTimeout", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateAppCookieStickinessPolicyInput struct { - _ struct{} `type:"structure"` - // The name of the application cookie used for stickiness. CookieName *string `type:"string" required:"true"` // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` - // The name of the policy being created. Policy names must consist of alphanumeric - // characters and dashes (-). This name must be unique within the set of policies - // for this load balancer. + // The name of the policy being created. This name must be unique within the + // set of policies for this load balancer. PolicyName *string `type:"string" required:"true"` + + metadataCreateAppCookieStickinessPolicyInput `json:"-" xml:"-"` +} + +type metadataCreateAppCookieStickinessPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1401,27 +1331,12 @@ func (s CreateAppCookieStickinessPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAppCookieStickinessPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAppCookieStickinessPolicyInput"} - if s.CookieName == nil { - invalidParams.Add(request.NewErrParamRequired("CookieName")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateAppCookieStickinessPolicyOutput struct { + metadataCreateAppCookieStickinessPolicyOutput `json:"-" xml:"-"` } -type CreateAppCookieStickinessPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataCreateAppCookieStickinessPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1435,8 +1350,6 @@ func (s CreateAppCookieStickinessPolicyOutput) GoString() string { } type CreateLBCookieStickinessPolicyInput struct { - _ struct{} `type:"structure"` - // The time period, in seconds, after which the cookie should be considered // stale. If you do not specify this parameter, the sticky session lasts for // the duration of the browser session. @@ -1445,10 +1358,15 @@ type CreateLBCookieStickinessPolicyInput struct { // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` - // The name of the policy being created. Policy names must consist of alphanumeric - // characters and dashes (-). This name must be unique within the set of policies - // for this load balancer. + // The name of the policy being created. This name must be unique within the + // set of policies for this load balancer. PolicyName *string `type:"string" required:"true"` + + metadataCreateLBCookieStickinessPolicyInput `json:"-" xml:"-"` +} + +type metadataCreateLBCookieStickinessPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1461,24 +1379,12 @@ func (s CreateLBCookieStickinessPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLBCookieStickinessPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLBCookieStickinessPolicyInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateLBCookieStickinessPolicyOutput struct { + metadataCreateLBCookieStickinessPolicyOutput `json:"-" xml:"-"` } -type CreateLBCookieStickinessPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataCreateLBCookieStickinessPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1492,8 +1398,6 @@ func (s CreateLBCookieStickinessPolicyOutput) GoString() string { } type CreateLoadBalancerInput struct { - _ struct{} `type:"structure"` - // One or more Availability Zones from the same region as the load balancer. // Traffic is equally distributed across all specified Availability Zones. // @@ -1511,9 +1415,9 @@ type CreateLoadBalancerInput struct { // The name of the load balancer. // - // This name must be unique within your set of load balancers for the region, - // must have a maximum of 32 characters, must contain only alphanumeric characters - // or hyphens, and cannot begin or end with a hyphen. + // This name must be unique within your AWS account, must have a maximum of + // 32 characters, must contain only alphanumeric characters or hyphens, and + // cannot begin or end with a hyphen. LoadBalancerName *string `type:"string" required:"true"` // The type of a load balancer. Valid only for load balancers in a VPC. @@ -1539,7 +1443,13 @@ type CreateLoadBalancerInput struct { // // For more information about tagging your load balancer, see Tagging (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#tagging-elb) // in the Elastic Load Balancing Developer Guide. - Tags []*Tag `min:"1" type:"list"` + Tags []*Tag `type:"list"` + + metadataCreateLoadBalancerInput `json:"-" xml:"-"` +} + +type metadataCreateLoadBalancerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1552,53 +1462,18 @@ func (s CreateLoadBalancerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerInput"} - if s.Listeners == nil { - invalidParams.Add(request.NewErrParamRequired("Listeners")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Listeners != nil { - for i, v := range s.Listeners { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateLoadBalancerListenersInput struct { - _ struct{} `type:"structure"` - // The listeners. Listeners []*Listener `type:"list" required:"true"` // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` + + metadataCreateLoadBalancerListenersInput `json:"-" xml:"-"` +} + +type metadataCreateLoadBalancerListenersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1611,34 +1486,12 @@ func (s CreateLoadBalancerListenersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLoadBalancerListenersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerListenersInput"} - if s.Listeners == nil { - invalidParams.Add(request.NewErrParamRequired("Listeners")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.Listeners != nil { - for i, v := range s.Listeners { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateLoadBalancerListenersOutput struct { + metadataCreateLoadBalancerListenersOutput `json:"-" xml:"-"` } -type CreateLoadBalancerListenersOutput struct { - _ struct{} `type:"structure"` +type metadataCreateLoadBalancerListenersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1652,10 +1505,14 @@ func (s CreateLoadBalancerListenersOutput) GoString() string { } type CreateLoadBalancerOutput struct { - _ struct{} `type:"structure"` - // The DNS name of the load balancer. DNSName *string `type:"string"` + + metadataCreateLoadBalancerOutput `json:"-" xml:"-"` +} + +type metadataCreateLoadBalancerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1669,8 +1526,6 @@ func (s CreateLoadBalancerOutput) GoString() string { } type CreateLoadBalancerPolicyInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` @@ -1683,6 +1538,12 @@ type CreateLoadBalancerPolicyInput struct { // The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes. PolicyTypeName *string `type:"string" required:"true"` + + metadataCreateLoadBalancerPolicyInput `json:"-" xml:"-"` +} + +type metadataCreateLoadBalancerPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1695,27 +1556,12 @@ func (s CreateLoadBalancerPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLoadBalancerPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerPolicyInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyTypeName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyTypeName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateLoadBalancerPolicyOutput struct { + metadataCreateLoadBalancerPolicyOutput `json:"-" xml:"-"` } -type CreateLoadBalancerPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataCreateLoadBalancerPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1730,10 +1576,14 @@ func (s CreateLoadBalancerPolicyOutput) GoString() string { // Information about the CrossZoneLoadBalancing attribute. type CrossZoneLoadBalancing struct { - _ struct{} `type:"structure"` - // Specifies whether cross-zone load balancing is enabled for the load balancer. Enabled *bool `type:"boolean" required:"true"` + + metadataCrossZoneLoadBalancing `json:"-" xml:"-"` +} + +type metadataCrossZoneLoadBalancing struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1746,24 +1596,15 @@ func (s CrossZoneLoadBalancing) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CrossZoneLoadBalancing) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CrossZoneLoadBalancing"} - if s.Enabled == nil { - invalidParams.Add(request.NewErrParamRequired("Enabled")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteLoadBalancerInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` + + metadataDeleteLoadBalancerInput `json:"-" xml:"-"` +} + +type metadataDeleteLoadBalancerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1776,27 +1617,18 @@ func (s DeleteLoadBalancerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteLoadBalancerListenersInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` // The client port numbers of the listeners. LoadBalancerPorts []*int64 `type:"list" required:"true"` + + metadataDeleteLoadBalancerListenersInput `json:"-" xml:"-"` +} + +type metadataDeleteLoadBalancerListenersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1809,24 +1641,12 @@ func (s DeleteLoadBalancerListenersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLoadBalancerListenersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerListenersInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.LoadBalancerPorts == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerPorts")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteLoadBalancerListenersOutput struct { + metadataDeleteLoadBalancerListenersOutput `json:"-" xml:"-"` } -type DeleteLoadBalancerListenersOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteLoadBalancerListenersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1840,7 +1660,11 @@ func (s DeleteLoadBalancerListenersOutput) GoString() string { } type DeleteLoadBalancerOutput struct { - _ struct{} `type:"structure"` + metadataDeleteLoadBalancerOutput `json:"-" xml:"-"` +} + +type metadataDeleteLoadBalancerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1855,13 +1679,17 @@ func (s DeleteLoadBalancerOutput) GoString() string { // = type DeleteLoadBalancerPolicyInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` // The name of the policy. PolicyName *string `type:"string" required:"true"` + + metadataDeleteLoadBalancerPolicyInput `json:"-" xml:"-"` +} + +type metadataDeleteLoadBalancerPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1874,24 +1702,12 @@ func (s DeleteLoadBalancerPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLoadBalancerPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerPolicyInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteLoadBalancerPolicyOutput struct { + metadataDeleteLoadBalancerPolicyOutput `json:"-" xml:"-"` } -type DeleteLoadBalancerPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteLoadBalancerPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1905,13 +1721,17 @@ func (s DeleteLoadBalancerPolicyOutput) GoString() string { } type DeregisterInstancesFromLoadBalancerInput struct { - _ struct{} `type:"structure"` - // The IDs of the instances. Instances []*Instance `type:"list" required:"true"` // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` + + metadataDeregisterInstancesFromLoadBalancerInput `json:"-" xml:"-"` +} + +type metadataDeregisterInstancesFromLoadBalancerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1924,27 +1744,15 @@ func (s DeregisterInstancesFromLoadBalancerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterInstancesFromLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterInstancesFromLoadBalancerInput"} - if s.Instances == nil { - invalidParams.Add(request.NewErrParamRequired("Instances")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeregisterInstancesFromLoadBalancerOutput struct { - _ struct{} `type:"structure"` - // The remaining instances registered with the load balancer. Instances []*Instance `type:"list"` + + metadataDeregisterInstancesFromLoadBalancerOutput `json:"-" xml:"-"` +} + +type metadataDeregisterInstancesFromLoadBalancerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1958,13 +1766,17 @@ func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string { } type DescribeInstanceHealthInput struct { - _ struct{} `type:"structure"` - // The IDs of the instances. Instances []*Instance `type:"list"` // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` + + metadataDescribeInstanceHealthInput `json:"-" xml:"-"` +} + +type metadataDescribeInstanceHealthInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1977,24 +1789,15 @@ func (s DescribeInstanceHealthInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeInstanceHealthInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceHealthInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeInstanceHealthOutput struct { - _ struct{} `type:"structure"` - // Information about the health of the instances. InstanceStates []*InstanceState `type:"list"` + + metadataDescribeInstanceHealthOutput `json:"-" xml:"-"` +} + +type metadataDescribeInstanceHealthOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2008,10 +1811,14 @@ func (s DescribeInstanceHealthOutput) GoString() string { } type DescribeLoadBalancerAttributesInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` + + metadataDescribeLoadBalancerAttributesInput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBalancerAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2024,24 +1831,15 @@ func (s DescribeLoadBalancerAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeLoadBalancerAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancerAttributesInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeLoadBalancerAttributesOutput struct { - _ struct{} `type:"structure"` - // Information about the load balancer attributes. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"` + + metadataDescribeLoadBalancerAttributesOutput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBalancerAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2055,13 +1853,17 @@ func (s DescribeLoadBalancerAttributesOutput) GoString() string { } type DescribeLoadBalancerPoliciesInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string"` // The names of the policies. PolicyNames []*string `type:"list"` + + metadataDescribeLoadBalancerPoliciesInput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBalancerPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2075,10 +1877,14 @@ func (s DescribeLoadBalancerPoliciesInput) GoString() string { } type DescribeLoadBalancerPoliciesOutput struct { - _ struct{} `type:"structure"` - // Information about the policies. PolicyDescriptions []*PolicyDescription `type:"list"` + + metadataDescribeLoadBalancerPoliciesOutput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBalancerPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2092,11 +1898,15 @@ func (s DescribeLoadBalancerPoliciesOutput) GoString() string { } type DescribeLoadBalancerPolicyTypesInput struct { - _ struct{} `type:"structure"` - // The names of the policy types. If no names are specified, describes all policy // types defined by Elastic Load Balancing. PolicyTypeNames []*string `type:"list"` + + metadataDescribeLoadBalancerPolicyTypesInput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBalancerPolicyTypesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2110,10 +1920,14 @@ func (s DescribeLoadBalancerPolicyTypesInput) GoString() string { } type DescribeLoadBalancerPolicyTypesOutput struct { - _ struct{} `type:"structure"` - // Information about the policy types. PolicyTypeDescriptions []*PolicyTypeDescription `type:"list"` + + metadataDescribeLoadBalancerPolicyTypesOutput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBalancerPolicyTypesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2127,8 +1941,6 @@ func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string { } type DescribeLoadBalancersInput struct { - _ struct{} `type:"structure"` - // The names of the load balancers. LoadBalancerNames []*string `type:"list"` @@ -2138,7 +1950,13 @@ type DescribeLoadBalancersInput struct { // The maximum number of results to return with this call (a number from 1 to // 400). The default is 400. - PageSize *int64 `min:"1" type:"integer"` + PageSize *int64 `type:"integer"` + + metadataDescribeLoadBalancersInput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBalancersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2151,28 +1969,19 @@ func (s DescribeLoadBalancersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeLoadBalancersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancersInput"} - if s.PageSize != nil && *s.PageSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("PageSize", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeLoadBalancersOutput struct { - _ struct{} `type:"structure"` - // Information about the load balancers. LoadBalancerDescriptions []*LoadBalancerDescription `type:"list"` // The marker to use when requesting the next set of results. If there are no // additional results, the string is empty. NextMarker *string `type:"string"` + + metadataDescribeLoadBalancersOutput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBalancersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2186,10 +1995,14 @@ func (s DescribeLoadBalancersOutput) GoString() string { } type DescribeTagsInput struct { - _ struct{} `type:"structure"` - // The names of the load balancers. - LoadBalancerNames []*string `min:"1" type:"list" required:"true"` + LoadBalancerNames []*string `type:"list" required:"true"` + + metadataDescribeTagsInput `json:"-" xml:"-"` +} + +type metadataDescribeTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2202,27 +2015,15 @@ func (s DescribeTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"} - if s.LoadBalancerNames == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames")) - } - if s.LoadBalancerNames != nil && len(s.LoadBalancerNames) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LoadBalancerNames", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeTagsOutput struct { - _ struct{} `type:"structure"` - // Information about the tags. TagDescriptions []*TagDescription `type:"list"` + + metadataDescribeTagsOutput `json:"-" xml:"-"` +} + +type metadataDescribeTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2236,13 +2037,17 @@ func (s DescribeTagsOutput) GoString() string { } type DetachLoadBalancerFromSubnetsInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` // The IDs of the subnets. Subnets []*string `type:"list" required:"true"` + + metadataDetachLoadBalancerFromSubnetsInput `json:"-" xml:"-"` +} + +type metadataDetachLoadBalancerFromSubnetsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2255,27 +2060,15 @@ func (s DetachLoadBalancerFromSubnetsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachLoadBalancerFromSubnetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachLoadBalancerFromSubnetsInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.Subnets == nil { - invalidParams.Add(request.NewErrParamRequired("Subnets")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DetachLoadBalancerFromSubnetsOutput struct { - _ struct{} `type:"structure"` - // The IDs of the remaining subnets for the load balancer. Subnets []*string `type:"list"` + + metadataDetachLoadBalancerFromSubnetsOutput `json:"-" xml:"-"` +} + +type metadataDetachLoadBalancerFromSubnetsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2289,13 +2082,17 @@ func (s DetachLoadBalancerFromSubnetsOutput) GoString() string { } type DisableAvailabilityZonesForLoadBalancerInput struct { - _ struct{} `type:"structure"` - // The Availability Zones. AvailabilityZones []*string `type:"list" required:"true"` // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` + + metadataDisableAvailabilityZonesForLoadBalancerInput `json:"-" xml:"-"` +} + +type metadataDisableAvailabilityZonesForLoadBalancerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2308,27 +2105,15 @@ func (s DisableAvailabilityZonesForLoadBalancerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableAvailabilityZonesForLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableAvailabilityZonesForLoadBalancerInput"} - if s.AvailabilityZones == nil { - invalidParams.Add(request.NewErrParamRequired("AvailabilityZones")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DisableAvailabilityZonesForLoadBalancerOutput struct { - _ struct{} `type:"structure"` - // The remaining Availability Zones for the load balancer. AvailabilityZones []*string `type:"list"` + + metadataDisableAvailabilityZonesForLoadBalancerOutput `json:"-" xml:"-"` +} + +type metadataDisableAvailabilityZonesForLoadBalancerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2342,13 +2127,17 @@ func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string { } type EnableAvailabilityZonesForLoadBalancerInput struct { - _ struct{} `type:"structure"` - // The Availability Zones. These must be in the same region as the load balancer. AvailabilityZones []*string `type:"list" required:"true"` // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` + + metadataEnableAvailabilityZonesForLoadBalancerInput `json:"-" xml:"-"` +} + +type metadataEnableAvailabilityZonesForLoadBalancerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2361,27 +2150,15 @@ func (s EnableAvailabilityZonesForLoadBalancerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableAvailabilityZonesForLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableAvailabilityZonesForLoadBalancerInput"} - if s.AvailabilityZones == nil { - invalidParams.Add(request.NewErrParamRequired("AvailabilityZones")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type EnableAvailabilityZonesForLoadBalancerOutput struct { - _ struct{} `type:"structure"` - // The updated list of Availability Zones for the load balancer. AvailabilityZones []*string `type:"list"` + + metadataEnableAvailabilityZonesForLoadBalancerOutput `json:"-" xml:"-"` +} + +type metadataEnableAvailabilityZonesForLoadBalancerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2396,15 +2173,13 @@ func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string { // Information about a health check. type HealthCheck struct { - _ struct{} `type:"structure"` - // The number of consecutive health checks successes required before moving // the instance to the Healthy state. - HealthyThreshold *int64 `min:"2" type:"integer" required:"true"` + HealthyThreshold *int64 `type:"integer" required:"true"` // The approximate interval, in seconds, between health checks of an individual // instance. - Interval *int64 `min:"1" type:"integer" required:"true"` + Interval *int64 `type:"integer" required:"true"` // The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. // The range of valid ports is one (1) through 65535. @@ -2430,11 +2205,17 @@ type HealthCheck struct { // check. // // This value must be less than the Interval value. - Timeout *int64 `min:"1" type:"integer" required:"true"` + Timeout *int64 `type:"integer" required:"true"` // The number of consecutive health check failures required before moving the // instance to the Unhealthy state. - UnhealthyThreshold *int64 `min:"2" type:"integer" required:"true"` + UnhealthyThreshold *int64 `type:"integer" required:"true"` + + metadataHealthCheck `json:"-" xml:"-"` +} + +type metadataHealthCheck struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2447,49 +2228,16 @@ func (s HealthCheck) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *HealthCheck) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HealthCheck"} - if s.HealthyThreshold == nil { - invalidParams.Add(request.NewErrParamRequired("HealthyThreshold")) - } - if s.HealthyThreshold != nil && *s.HealthyThreshold < 2 { - invalidParams.Add(request.NewErrParamMinValue("HealthyThreshold", 2)) - } - if s.Interval == nil { - invalidParams.Add(request.NewErrParamRequired("Interval")) - } - if s.Interval != nil && *s.Interval < 1 { - invalidParams.Add(request.NewErrParamMinValue("Interval", 1)) - } - if s.Target == nil { - invalidParams.Add(request.NewErrParamRequired("Target")) - } - if s.Timeout == nil { - invalidParams.Add(request.NewErrParamRequired("Timeout")) - } - if s.Timeout != nil && *s.Timeout < 1 { - invalidParams.Add(request.NewErrParamMinValue("Timeout", 1)) - } - if s.UnhealthyThreshold == nil { - invalidParams.Add(request.NewErrParamRequired("UnhealthyThreshold")) - } - if s.UnhealthyThreshold != nil && *s.UnhealthyThreshold < 2 { - invalidParams.Add(request.NewErrParamMinValue("UnhealthyThreshold", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The ID of a back-end instance. type Instance struct { - _ struct{} `type:"structure"` - // The ID of the instance. InstanceId *string `type:"string"` + + metadataInstance `json:"-" xml:"-"` +} + +type metadataInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2504,8 +2252,6 @@ func (s Instance) GoString() string { // Information about the state of a back-end instance. type InstanceState struct { - _ struct{} `type:"structure"` - // A description of the instance state. This string can contain one or more // of the following messages. // @@ -2550,6 +2296,12 @@ type InstanceState struct { // // Valid values: InService | OutOfService | Unknown State *string `type:"string"` + + metadataInstanceState `json:"-" xml:"-"` +} + +type metadataInstanceState struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2564,8 +2316,6 @@ func (s InstanceState) GoString() string { // Information about a policy for duration-based session stickiness. type LBCookieStickinessPolicy struct { - _ struct{} `type:"structure"` - // The time period, in seconds, after which the cookie should be considered // stale. If this parameter is not specified, the stickiness session lasts for // the duration of the browser session. @@ -2574,6 +2324,12 @@ type LBCookieStickinessPolicy struct { // The name for the policy being created. The name must be unique within the // set of policies for this load balancer. PolicyName *string `type:"string"` + + metadataLBCookieStickinessPolicy `json:"-" xml:"-"` +} + +type metadataLBCookieStickinessPolicy struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2592,10 +2348,8 @@ func (s LBCookieStickinessPolicy) GoString() string { // Balancing, see Listener Configurations for Elastic Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html) // in the Elastic Load Balancing Developer Guide. type Listener struct { - _ struct{} `type:"structure"` - // The port on which the instance is listening. - InstancePort *int64 `min:"1" type:"integer" required:"true"` + InstancePort *int64 `type:"integer" required:"true"` // The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, // TCP, or SSL. @@ -2610,9 +2364,8 @@ type Listener struct { // is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP. InstanceProtocol *string `type:"string"` - // The port on which the load balancer is listening. On EC2-VPC, you can specify - // any port from the range 1-65535. On EC2-Classic, you can specify any port - // from the following list: 25, 80, 443, 465, 587, 1024-65535. + // The port on which the load balancer is listening. The supported ports are: + // 25, 80, 443, 465, 587, and 1024-65535. LoadBalancerPort *int64 `type:"integer" required:"true"` // The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, @@ -2621,6 +2374,12 @@ type Listener struct { // The Amazon Resource Name (ARN) of the server certificate. SSLCertificateId *string `type:"string"` + + metadataListener `json:"-" xml:"-"` +} + +type metadataListener struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2633,32 +2392,8 @@ func (s Listener) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Listener) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Listener"} - if s.InstancePort == nil { - invalidParams.Add(request.NewErrParamRequired("InstancePort")) - } - if s.InstancePort != nil && *s.InstancePort < 1 { - invalidParams.Add(request.NewErrParamMinValue("InstancePort", 1)) - } - if s.LoadBalancerPort == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort")) - } - if s.Protocol == nil { - invalidParams.Add(request.NewErrParamRequired("Protocol")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The policies enabled for a listener. type ListenerDescription struct { - _ struct{} `type:"structure"` - // Information about a listener. // // For information about the protocols and the ports supported by Elastic Load @@ -2668,6 +2403,12 @@ type ListenerDescription struct { // The policies. If there are no policies enabled, the list is empty. PolicyNames []*string `type:"list"` + + metadataListenerDescription `json:"-" xml:"-"` +} + +type metadataListenerDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2682,8 +2423,6 @@ func (s ListenerDescription) GoString() string { // The attributes for a load balancer. type LoadBalancerAttributes struct { - _ struct{} `type:"structure"` - // If enabled, the load balancer captures detailed information of all requests // and delivers the information to the Amazon S3 bucket that you specify. // @@ -2717,6 +2456,12 @@ type LoadBalancerAttributes struct { // For more information, see Enable Cross-Zone Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-disable-crosszone-lb.html) // in the Elastic Load Balancing Developer Guide. CrossZoneLoadBalancing *CrossZoneLoadBalancing `type:"structure"` + + metadataLoadBalancerAttributes `json:"-" xml:"-"` +} + +type metadataLoadBalancerAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2729,40 +2474,8 @@ func (s LoadBalancerAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LoadBalancerAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LoadBalancerAttributes"} - if s.AccessLog != nil { - if err := s.AccessLog.Validate(); err != nil { - invalidParams.AddNested("AccessLog", err.(request.ErrInvalidParams)) - } - } - if s.ConnectionDraining != nil { - if err := s.ConnectionDraining.Validate(); err != nil { - invalidParams.AddNested("ConnectionDraining", err.(request.ErrInvalidParams)) - } - } - if s.ConnectionSettings != nil { - if err := s.ConnectionSettings.Validate(); err != nil { - invalidParams.AddNested("ConnectionSettings", err.(request.ErrInvalidParams)) - } - } - if s.CrossZoneLoadBalancing != nil { - if err := s.CrossZoneLoadBalancing.Validate(); err != nil { - invalidParams.AddNested("CrossZoneLoadBalancing", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Information about a load balancer. type LoadBalancerDescription struct { - _ struct{} `type:"structure"` - // The Availability Zones for the load balancer. AvailabilityZones []*string `type:"list"` @@ -2824,6 +2537,12 @@ type LoadBalancerDescription struct { // The ID of the VPC for the load balancer. VPCId *string `type:"string"` + + metadataLoadBalancerDescription `json:"-" xml:"-"` +} + +type metadataLoadBalancerDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2837,13 +2556,17 @@ func (s LoadBalancerDescription) GoString() string { } type ModifyLoadBalancerAttributesInput struct { - _ struct{} `type:"structure"` - // The attributes of the load balancer. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure" required:"true"` // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` + + metadataModifyLoadBalancerAttributesInput `json:"-" xml:"-"` +} + +type metadataModifyLoadBalancerAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2856,35 +2579,18 @@ func (s ModifyLoadBalancerAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyLoadBalancerAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyLoadBalancerAttributesInput"} - if s.LoadBalancerAttributes == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerAttributes")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.LoadBalancerAttributes != nil { - if err := s.LoadBalancerAttributes.Validate(); err != nil { - invalidParams.AddNested("LoadBalancerAttributes", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyLoadBalancerAttributesOutput struct { - _ struct{} `type:"structure"` - // The attributes for a load balancer. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"` // The name of the load balancer. LoadBalancerName *string `type:"string"` + + metadataModifyLoadBalancerAttributesOutput `json:"-" xml:"-"` +} + +type metadataModifyLoadBalancerAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2899,8 +2605,6 @@ func (s ModifyLoadBalancerAttributesOutput) GoString() string { // The policies for a load balancer. type Policies struct { - _ struct{} `type:"structure"` - // The stickiness policies created using CreateAppCookieStickinessPolicy. AppCookieStickinessPolicies []*AppCookieStickinessPolicy `type:"list"` @@ -2909,6 +2613,12 @@ type Policies struct { // The policies other than the stickiness policies. OtherPolicies []*string `type:"list"` + + metadataPolicies `json:"-" xml:"-"` +} + +type metadataPolicies struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2923,13 +2633,17 @@ func (s Policies) GoString() string { // Information about a policy attribute. type PolicyAttribute struct { - _ struct{} `type:"structure"` - // The name of the attribute. AttributeName *string `type:"string"` // The value of the attribute. AttributeValue *string `type:"string"` + + metadataPolicyAttribute `json:"-" xml:"-"` +} + +type metadataPolicyAttribute struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2944,13 +2658,17 @@ func (s PolicyAttribute) GoString() string { // Information about a policy attribute. type PolicyAttributeDescription struct { - _ struct{} `type:"structure"` - // The name of the attribute. AttributeName *string `type:"string"` // The value of the attribute. AttributeValue *string `type:"string"` + + metadataPolicyAttributeDescription `json:"-" xml:"-"` +} + +type metadataPolicyAttributeDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2965,8 +2683,6 @@ func (s PolicyAttributeDescription) GoString() string { // Information about a policy attribute type. type PolicyAttributeTypeDescription struct { - _ struct{} `type:"structure"` - // The name of the attribute. AttributeName *string `type:"string"` @@ -2987,6 +2703,12 @@ type PolicyAttributeTypeDescription struct { // A description of the attribute. Description *string `type:"string"` + + metadataPolicyAttributeTypeDescription `json:"-" xml:"-"` +} + +type metadataPolicyAttributeTypeDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3001,8 +2723,6 @@ func (s PolicyAttributeTypeDescription) GoString() string { // Information about a policy. type PolicyDescription struct { - _ struct{} `type:"structure"` - // The policy attributes. PolicyAttributeDescriptions []*PolicyAttributeDescription `type:"list"` @@ -3011,6 +2731,12 @@ type PolicyDescription struct { // The name of the policy type. PolicyTypeName *string `type:"string"` + + metadataPolicyDescription `json:"-" xml:"-"` +} + +type metadataPolicyDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3025,8 +2751,6 @@ func (s PolicyDescription) GoString() string { // Information about a policy type. type PolicyTypeDescription struct { - _ struct{} `type:"structure"` - // A description of the policy type. Description *string `type:"string"` @@ -3036,6 +2760,12 @@ type PolicyTypeDescription struct { // The name of the policy type. PolicyTypeName *string `type:"string"` + + metadataPolicyTypeDescription `json:"-" xml:"-"` +} + +type metadataPolicyTypeDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3049,13 +2779,17 @@ func (s PolicyTypeDescription) GoString() string { } type RegisterInstancesWithLoadBalancerInput struct { - _ struct{} `type:"structure"` - // The IDs of the instances. Instances []*Instance `type:"list" required:"true"` // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` + + metadataRegisterInstancesWithLoadBalancerInput `json:"-" xml:"-"` +} + +type metadataRegisterInstancesWithLoadBalancerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3068,27 +2802,15 @@ func (s RegisterInstancesWithLoadBalancerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterInstancesWithLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterInstancesWithLoadBalancerInput"} - if s.Instances == nil { - invalidParams.Add(request.NewErrParamRequired("Instances")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RegisterInstancesWithLoadBalancerOutput struct { - _ struct{} `type:"structure"` - // The updated list of instances for the load balancer. Instances []*Instance `type:"list"` + + metadataRegisterInstancesWithLoadBalancerOutput `json:"-" xml:"-"` +} + +type metadataRegisterInstancesWithLoadBalancerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3102,14 +2824,18 @@ func (s RegisterInstancesWithLoadBalancerOutput) GoString() string { } type RemoveTagsInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. You can specify a maximum of one load balancer // name. LoadBalancerNames []*string `type:"list" required:"true"` // The list of tag keys to remove. - Tags []*TagKeyOnly `min:"1" type:"list" required:"true"` + Tags []*TagKeyOnly `type:"list" required:"true"` + + metadataRemoveTagsInput `json:"-" xml:"-"` +} + +type metadataRemoveTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3122,37 +2848,12 @@ func (s RemoveTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"} - if s.LoadBalancerNames == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RemoveTagsOutput struct { + metadataRemoveTagsOutput `json:"-" xml:"-"` } -type RemoveTagsOutput struct { - _ struct{} `type:"structure"` +type metadataRemoveTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3166,8 +2867,6 @@ func (s RemoveTagsOutput) GoString() string { } type SetLoadBalancerListenerSSLCertificateInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` @@ -3176,6 +2875,12 @@ type SetLoadBalancerListenerSSLCertificateInput struct { // The Amazon Resource Name (ARN) of the SSL certificate. SSLCertificateId *string `type:"string" required:"true"` + + metadataSetLoadBalancerListenerSSLCertificateInput `json:"-" xml:"-"` +} + +type metadataSetLoadBalancerListenerSSLCertificateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3188,27 +2893,12 @@ func (s SetLoadBalancerListenerSSLCertificateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetLoadBalancerListenerSSLCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerListenerSSLCertificateInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.LoadBalancerPort == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort")) - } - if s.SSLCertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("SSLCertificateId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetLoadBalancerListenerSSLCertificateOutput struct { + metadataSetLoadBalancerListenerSSLCertificateOutput `json:"-" xml:"-"` } -type SetLoadBalancerListenerSSLCertificateOutput struct { - _ struct{} `type:"structure"` +type metadataSetLoadBalancerListenerSSLCertificateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3222,8 +2912,6 @@ func (s SetLoadBalancerListenerSSLCertificateOutput) GoString() string { } type SetLoadBalancerPoliciesForBackendServerInput struct { - _ struct{} `type:"structure"` - // The port number associated with the back-end server. InstancePort *int64 `type:"integer" required:"true"` @@ -3233,6 +2921,12 @@ type SetLoadBalancerPoliciesForBackendServerInput struct { // The names of the policies. If the list is empty, then all current polices // are removed from the back-end server. PolicyNames []*string `type:"list" required:"true"` + + metadataSetLoadBalancerPoliciesForBackendServerInput `json:"-" xml:"-"` +} + +type metadataSetLoadBalancerPoliciesForBackendServerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3245,27 +2939,12 @@ func (s SetLoadBalancerPoliciesForBackendServerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetLoadBalancerPoliciesForBackendServerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerPoliciesForBackendServerInput"} - if s.InstancePort == nil { - invalidParams.Add(request.NewErrParamRequired("InstancePort")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.PolicyNames == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetLoadBalancerPoliciesForBackendServerOutput struct { + metadataSetLoadBalancerPoliciesForBackendServerOutput `json:"-" xml:"-"` } -type SetLoadBalancerPoliciesForBackendServerOutput struct { - _ struct{} `type:"structure"` +type metadataSetLoadBalancerPoliciesForBackendServerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3279,8 +2958,6 @@ func (s SetLoadBalancerPoliciesForBackendServerOutput) GoString() string { } type SetLoadBalancerPoliciesOfListenerInput struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string" required:"true"` @@ -3290,6 +2967,12 @@ type SetLoadBalancerPoliciesOfListenerInput struct { // The names of the policies. If the list is empty, the current policy is removed // from the listener. PolicyNames []*string `type:"list" required:"true"` + + metadataSetLoadBalancerPoliciesOfListenerInput `json:"-" xml:"-"` +} + +type metadataSetLoadBalancerPoliciesOfListenerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3302,27 +2985,12 @@ func (s SetLoadBalancerPoliciesOfListenerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetLoadBalancerPoliciesOfListenerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerPoliciesOfListenerInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - if s.LoadBalancerPort == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort")) - } - if s.PolicyNames == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetLoadBalancerPoliciesOfListenerOutput struct { + metadataSetLoadBalancerPoliciesOfListenerOutput `json:"-" xml:"-"` } -type SetLoadBalancerPoliciesOfListenerOutput struct { - _ struct{} `type:"structure"` +type metadataSetLoadBalancerPoliciesOfListenerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3337,13 +3005,17 @@ func (s SetLoadBalancerPoliciesOfListenerOutput) GoString() string { // Information about a source security group. type SourceSecurityGroup struct { - _ struct{} `type:"structure"` - // The name of the security group. GroupName *string `type:"string"` // The owner of the security group. OwnerAlias *string `type:"string"` + + metadataSourceSecurityGroup `json:"-" xml:"-"` +} + +type metadataSourceSecurityGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3358,13 +3030,17 @@ func (s SourceSecurityGroup) GoString() string { // Information about a tag. type Tag struct { - _ struct{} `type:"structure"` - // The key of the tag. - Key *string `min:"1" type:"string" required:"true"` + Key *string `type:"string" required:"true"` // The value of the tag. Value *string `type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3377,31 +3053,19 @@ func (s Tag) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The tags associated with a load balancer. type TagDescription struct { - _ struct{} `type:"structure"` - // The name of the load balancer. LoadBalancerName *string `type:"string"` // The tags. - Tags []*Tag `min:"1" type:"list"` + Tags []*Tag `type:"list"` + + metadataTagDescription `json:"-" xml:"-"` +} + +type metadataTagDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3416,10 +3080,14 @@ func (s TagDescription) GoString() string { // The key of a tag. type TagKeyOnly struct { - _ struct{} `type:"structure"` - // The name of the key. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` + + metadataTagKeyOnly `json:"-" xml:"-"` +} + +type metadataTagKeyOnly struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3431,16 +3099,3 @@ func (s TagKeyOnly) String() string { func (s TagKeyOnly) GoString() string { return s.String() } - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TagKeyOnly) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagKeyOnly"} - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go index 5674133f7..a1b421474 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go @@ -124,5 +124,3 @@ type ELBAPI interface { SetLoadBalancerPoliciesOfListener(*elb.SetLoadBalancerPoliciesOfListenerInput) (*elb.SetLoadBalancerPoliciesOfListenerOutput, error) } - -var _ ELBAPI = (*elb.ELB)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface_test.go new file mode 100644 index 000000000..acf910570 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package elbiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/elb" + "github.com/aws/aws-sdk-go/service/elb/elbiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*elbiface.ELBAPI)(nil), elb.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go index d1da802e6..765c050ea 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elb" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleELB_AddTags() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.AddTagsInput{ LoadBalancerNames: []*string{ // Required @@ -45,7 +44,7 @@ func ExampleELB_AddTags() { } func ExampleELB_ApplySecurityGroupsToLoadBalancer() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.ApplySecurityGroupsToLoadBalancerInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -68,7 +67,7 @@ func ExampleELB_ApplySecurityGroupsToLoadBalancer() { } func ExampleELB_AttachLoadBalancerToSubnets() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.AttachLoadBalancerToSubnetsInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -91,7 +90,7 @@ func ExampleELB_AttachLoadBalancerToSubnets() { } func ExampleELB_ConfigureHealthCheck() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.ConfigureHealthCheckInput{ HealthCheck: &elb.HealthCheck{ // Required @@ -117,7 +116,7 @@ func ExampleELB_ConfigureHealthCheck() { } func ExampleELB_CreateAppCookieStickinessPolicy() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.CreateAppCookieStickinessPolicyInput{ CookieName: aws.String("CookieName"), // Required @@ -138,7 +137,7 @@ func ExampleELB_CreateAppCookieStickinessPolicy() { } func ExampleELB_CreateLBCookieStickinessPolicy() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.CreateLBCookieStickinessPolicyInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -159,7 +158,7 @@ func ExampleELB_CreateLBCookieStickinessPolicy() { } func ExampleELB_CreateLoadBalancer() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.CreateLoadBalancerInput{ Listeners: []*elb.Listener{ // Required @@ -208,7 +207,7 @@ func ExampleELB_CreateLoadBalancer() { } func ExampleELB_CreateLoadBalancerListeners() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.CreateLoadBalancerListenersInput{ Listeners: []*elb.Listener{ // Required @@ -237,7 +236,7 @@ func ExampleELB_CreateLoadBalancerListeners() { } func ExampleELB_CreateLoadBalancerPolicy() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.CreateLoadBalancerPolicyInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -265,7 +264,7 @@ func ExampleELB_CreateLoadBalancerPolicy() { } func ExampleELB_DeleteLoadBalancer() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DeleteLoadBalancerInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -284,7 +283,7 @@ func ExampleELB_DeleteLoadBalancer() { } func ExampleELB_DeleteLoadBalancerListeners() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DeleteLoadBalancerListenersInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -307,7 +306,7 @@ func ExampleELB_DeleteLoadBalancerListeners() { } func ExampleELB_DeleteLoadBalancerPolicy() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DeleteLoadBalancerPolicyInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -327,7 +326,7 @@ func ExampleELB_DeleteLoadBalancerPolicy() { } func ExampleELB_DeregisterInstancesFromLoadBalancer() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DeregisterInstancesFromLoadBalancerInput{ Instances: []*elb.Instance{ // Required @@ -352,7 +351,7 @@ func ExampleELB_DeregisterInstancesFromLoadBalancer() { } func ExampleELB_DescribeInstanceHealth() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DescribeInstanceHealthInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -377,7 +376,7 @@ func ExampleELB_DescribeInstanceHealth() { } func ExampleELB_DescribeLoadBalancerAttributes() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DescribeLoadBalancerAttributesInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -396,7 +395,7 @@ func ExampleELB_DescribeLoadBalancerAttributes() { } func ExampleELB_DescribeLoadBalancerPolicies() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DescribeLoadBalancerPoliciesInput{ LoadBalancerName: aws.String("AccessPointName"), @@ -419,7 +418,7 @@ func ExampleELB_DescribeLoadBalancerPolicies() { } func ExampleELB_DescribeLoadBalancerPolicyTypes() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DescribeLoadBalancerPolicyTypesInput{ PolicyTypeNames: []*string{ @@ -441,7 +440,7 @@ func ExampleELB_DescribeLoadBalancerPolicyTypes() { } func ExampleELB_DescribeLoadBalancers() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DescribeLoadBalancersInput{ LoadBalancerNames: []*string{ @@ -465,7 +464,7 @@ func ExampleELB_DescribeLoadBalancers() { } func ExampleELB_DescribeTags() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DescribeTagsInput{ LoadBalancerNames: []*string{ // Required @@ -487,7 +486,7 @@ func ExampleELB_DescribeTags() { } func ExampleELB_DetachLoadBalancerFromSubnets() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DetachLoadBalancerFromSubnetsInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -510,7 +509,7 @@ func ExampleELB_DetachLoadBalancerFromSubnets() { } func ExampleELB_DisableAvailabilityZonesForLoadBalancer() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.DisableAvailabilityZonesForLoadBalancerInput{ AvailabilityZones: []*string{ // Required @@ -533,7 +532,7 @@ func ExampleELB_DisableAvailabilityZonesForLoadBalancer() { } func ExampleELB_EnableAvailabilityZonesForLoadBalancer() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.EnableAvailabilityZonesForLoadBalancerInput{ AvailabilityZones: []*string{ // Required @@ -556,7 +555,7 @@ func ExampleELB_EnableAvailabilityZonesForLoadBalancer() { } func ExampleELB_ModifyLoadBalancerAttributes() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.ModifyLoadBalancerAttributesInput{ LoadBalancerAttributes: &elb.LoadBalancerAttributes{ // Required @@ -600,7 +599,7 @@ func ExampleELB_ModifyLoadBalancerAttributes() { } func ExampleELB_RegisterInstancesWithLoadBalancer() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.RegisterInstancesWithLoadBalancerInput{ Instances: []*elb.Instance{ // Required @@ -625,7 +624,7 @@ func ExampleELB_RegisterInstancesWithLoadBalancer() { } func ExampleELB_RemoveTags() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.RemoveTagsInput{ LoadBalancerNames: []*string{ // Required @@ -653,7 +652,7 @@ func ExampleELB_RemoveTags() { } func ExampleELB_SetLoadBalancerListenerSSLCertificate() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.SetLoadBalancerListenerSSLCertificateInput{ LoadBalancerName: aws.String("AccessPointName"), // Required @@ -674,7 +673,7 @@ func ExampleELB_SetLoadBalancerListenerSSLCertificate() { } func ExampleELB_SetLoadBalancerPoliciesForBackendServer() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.SetLoadBalancerPoliciesForBackendServerInput{ InstancePort: aws.Int64(1), // Required @@ -698,7 +697,7 @@ func ExampleELB_SetLoadBalancerPoliciesForBackendServer() { } func ExampleELB_SetLoadBalancerPoliciesOfListener() { - svc := elb.New(session.New()) + svc := elb.New(nil) params := &elb.SetLoadBalancerPoliciesOfListenerInput{ LoadBalancerName: aws.String("AccessPointName"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/service.go b/vendor/github.com/aws/aws-sdk-go/service/elb/service.go index 867254809..20eda10fe 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/service.go @@ -4,11 +4,12 @@ package elb import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Elastic Load Balancing distributes incoming traffic across your EC2 instances. @@ -24,64 +25,40 @@ import ( // All Elastic Load Balancing operations are idempotent, which means that they // complete at most one time. If you repeat an operation, it succeeds with a // 200 OK response code. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type ELB struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticloadbalancing" - -// New creates a new instance of the ELB client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a ELB client from just a session. -// svc := elb.New(mySession) -// -// // Create a ELB client with additional configuration -// svc := elb.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *ELB { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *ELB { - svc := &ELB{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2012-06-01", - }, - handlers, - ), +// New returns a new ELB client. +func New(config *aws.Config) *ELB { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "elasticloadbalancing", + APIVersion: "2012-06-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &ELB{service} } // newRequest creates a new request for a ELB operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/elb/waiters.go deleted file mode 100644 index b1c9a526a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/elb/waiters.go +++ /dev/null @@ -1,82 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package elb - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *ELB) WaitUntilAnyInstanceInService(input *DescribeInstanceHealthInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstanceHealth", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAny", - Argument: "InstanceStates[].State", - Expected: "InService", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *ELB) WaitUntilInstanceDeregistered(input *DescribeInstanceHealthInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstanceHealth", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "InstanceStates[].State", - Expected: "OutOfService", - }, - { - State: "success", - Matcher: "error", - Argument: "", - Expected: "InvalidInstance", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *ELB) WaitUntilInstanceInService(input *DescribeInstanceHealthInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstanceHealth", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "InstanceStates[].State", - Expected: "InService", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/api.go b/vendor/github.com/aws/aws-sdk-go/service/emr/api.go index 52e26f076..3c703d30b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/api.go @@ -4,13 +4,10 @@ package emr import ( - "fmt" "time" "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/private/protocol/jsonrpc" ) const opAddInstanceGroups = "AddInstanceGroups" @@ -152,9 +149,6 @@ const opDescribeJobFlows = "DescribeJobFlows" // DescribeJobFlowsRequest generates a request for the DescribeJobFlows operation. func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *request.Request, output *DescribeJobFlowsOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, DescribeJobFlows, has been deprecated") - } op := &request.Operation{ Name: opDescribeJobFlows, HTTPMethod: "POST", @@ -257,7 +251,6 @@ func (c *EMR) ListBootstrapActions(input *ListBootstrapActionsInput) (*ListBoots func (c *EMR) ListBootstrapActionsPages(input *ListBootstrapActionsInput, fn func(p *ListBootstrapActionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListBootstrapActionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListBootstrapActionsOutput), lastPage) }) @@ -302,7 +295,6 @@ func (c *EMR) ListClusters(input *ListClustersInput) (*ListClustersOutput, error func (c *EMR) ListClustersPages(input *ListClustersInput, fn func(p *ListClustersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListClustersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListClustersOutput), lastPage) }) @@ -343,7 +335,6 @@ func (c *EMR) ListInstanceGroups(input *ListInstanceGroupsInput) (*ListInstanceG func (c *EMR) ListInstanceGroupsPages(input *ListInstanceGroupsInput, fn func(p *ListInstanceGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListInstanceGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListInstanceGroupsOutput), lastPage) }) @@ -388,7 +379,6 @@ func (c *EMR) ListInstances(input *ListInstancesInput) (*ListInstancesOutput, er func (c *EMR) ListInstancesPages(input *ListInstancesInput, fn func(p *ListInstancesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListInstancesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListInstancesOutput), lastPage) }) @@ -429,7 +419,6 @@ func (c *EMR) ListSteps(input *ListStepsInput) (*ListStepsOutput, error) { func (c *EMR) ListStepsPages(input *ListStepsInput, fn func(p *ListStepsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListStepsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListStepsOutput), lastPage) }) @@ -450,8 +439,6 @@ func (c *EMR) ModifyInstanceGroupsRequest(input *ModifyInstanceGroupsInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ModifyInstanceGroupsOutput{} req.Data = output return @@ -563,8 +550,6 @@ func (c *EMR) SetTerminationProtectionRequest(input *SetTerminationProtectionInp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetTerminationProtectionOutput{} req.Data = output return @@ -608,8 +593,6 @@ func (c *EMR) SetVisibleToAllUsersRequest(input *SetVisibleToAllUsersInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetVisibleToAllUsersOutput{} req.Data = output return @@ -642,8 +625,6 @@ func (c *EMR) TerminateJobFlowsRequest(input *TerminateJobFlowsInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &TerminateJobFlowsOutput{} req.Data = output return @@ -666,13 +647,17 @@ func (c *EMR) TerminateJobFlows(input *TerminateJobFlowsInput) (*TerminateJobFlo // Input to an AddInstanceGroups call. type AddInstanceGroupsInput struct { - _ struct{} `type:"structure"` - // Instance Groups to add. InstanceGroups []*InstanceGroupConfig `type:"list" required:"true"` // Job flow in which to add the instance groups. JobFlowId *string `type:"string" required:"true"` + + metadataAddInstanceGroupsInput `json:"-" xml:"-"` +} + +type metadataAddInstanceGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -685,41 +670,19 @@ func (s AddInstanceGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddInstanceGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddInstanceGroupsInput"} - if s.InstanceGroups == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceGroups")) - } - if s.JobFlowId == nil { - invalidParams.Add(request.NewErrParamRequired("JobFlowId")) - } - if s.InstanceGroups != nil { - for i, v := range s.InstanceGroups { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceGroups", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Output from an AddInstanceGroups call. type AddInstanceGroupsOutput struct { - _ struct{} `type:"structure"` - // Instance group IDs of the newly created instance groups. InstanceGroupIds []*string `type:"list"` // The job flow ID in which the instance groups are added. JobFlowId *string `type:"string"` + + metadataAddInstanceGroupsOutput `json:"-" xml:"-"` +} + +type metadataAddInstanceGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -734,14 +697,18 @@ func (s AddInstanceGroupsOutput) GoString() string { // The input argument to the AddJobFlowSteps operation. type AddJobFlowStepsInput struct { - _ struct{} `type:"structure"` - // A string that uniquely identifies the job flow. This identifier is returned // by RunJobFlow and can also be obtained from ListClusters. JobFlowId *string `type:"string" required:"true"` // A list of StepConfig to be executed by the job flow. Steps []*StepConfig `type:"list" required:"true"` + + metadataAddJobFlowStepsInput `json:"-" xml:"-"` +} + +type metadataAddJobFlowStepsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -754,38 +721,16 @@ func (s AddJobFlowStepsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddJobFlowStepsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddJobFlowStepsInput"} - if s.JobFlowId == nil { - invalidParams.Add(request.NewErrParamRequired("JobFlowId")) - } - if s.Steps == nil { - invalidParams.Add(request.NewErrParamRequired("Steps")) - } - if s.Steps != nil { - for i, v := range s.Steps { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Steps", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The output for the AddJobFlowSteps operation. type AddJobFlowStepsOutput struct { - _ struct{} `type:"structure"` - // The identifiers of the list of steps added to the job flow. StepIds []*string `type:"list"` + + metadataAddJobFlowStepsOutput `json:"-" xml:"-"` +} + +type metadataAddJobFlowStepsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -800,8 +745,6 @@ func (s AddJobFlowStepsOutput) GoString() string { // This input identifies a cluster and a list of tags to attach. type AddTagsInput struct { - _ struct{} `type:"structure"` - // The Amazon EMR resource identifier to which tags will be added. This value // must be a cluster identifier. ResourceId *string `type:"string" required:"true"` @@ -811,6 +754,12 @@ type AddTagsInput struct { // with a maximum of 128 characters, and an optional value string with a maximum // of 256 characters. Tags []*Tag `type:"list" required:"true"` + + metadataAddTagsInput `json:"-" xml:"-"` +} + +type metadataAddTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -823,25 +772,13 @@ func (s AddTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This output indicates the result of adding tags to a resource. type AddTagsOutput struct { - _ struct{} `type:"structure"` + metadataAddTagsOutput `json:"-" xml:"-"` +} + +type metadataAddTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -869,8 +806,6 @@ func (s AddTagsOutput) GoString() string { // accepted parameter is the application name. To pass arguments to applications, // you supply a configuration for each application. type Application struct { - _ struct{} `type:"structure"` - // This option is for advanced users only. This is meta information about third-party // applications that third-party vendors use for testing purposes. AdditionalInfo map[string]*string `type:"map"` @@ -883,6 +818,12 @@ type Application struct { // The version of the application. Version *string `type:"string"` + + metadataApplication `json:"-" xml:"-"` +} + +type metadataApplication struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -897,13 +838,17 @@ func (s Application) GoString() string { // Configuration of a bootstrap action. type BootstrapActionConfig struct { - _ struct{} `type:"structure"` - // The name of the bootstrap action. Name *string `type:"string" required:"true"` // The script run by the bootstrap action. ScriptBootstrapAction *ScriptBootstrapActionConfig `type:"structure" required:"true"` + + metadataBootstrapActionConfig `json:"-" xml:"-"` +} + +type metadataBootstrapActionConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -916,33 +861,16 @@ func (s BootstrapActionConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BootstrapActionConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BootstrapActionConfig"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.ScriptBootstrapAction == nil { - invalidParams.Add(request.NewErrParamRequired("ScriptBootstrapAction")) - } - if s.ScriptBootstrapAction != nil { - if err := s.ScriptBootstrapAction.Validate(); err != nil { - invalidParams.AddNested("ScriptBootstrapAction", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Reports the configuration of a bootstrap action in a job flow. type BootstrapActionDetail struct { - _ struct{} `type:"structure"` - // A description of the bootstrap action. BootstrapActionConfig *BootstrapActionConfig `type:"structure"` + + metadataBootstrapActionDetail `json:"-" xml:"-"` +} + +type metadataBootstrapActionDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -957,8 +885,6 @@ func (s BootstrapActionDetail) GoString() string { // The detailed description of the cluster. type Cluster struct { - _ struct{} `type:"structure"` - // The applications installed on this cluster. Applications []*Application `type:"list"` @@ -1026,6 +952,12 @@ type Cluster struct { // the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers // action. VisibleToAllUsers *bool `type:"boolean"` + + metadataCluster `json:"-" xml:"-"` +} + +type metadataCluster struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1040,13 +972,17 @@ func (s Cluster) GoString() string { // The reason that the cluster changed to its current state. type ClusterStateChangeReason struct { - _ struct{} `type:"structure"` - // The programmatic code for the state change reason. Code *string `type:"string" enum:"ClusterStateChangeReasonCode"` // The descriptive message for the state change reason. Message *string `type:"string"` + + metadataClusterStateChangeReason `json:"-" xml:"-"` +} + +type metadataClusterStateChangeReason struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1061,8 +997,6 @@ func (s ClusterStateChangeReason) GoString() string { // The detailed status of the cluster. type ClusterStatus struct { - _ struct{} `type:"structure"` - // The current state of the cluster. State *string `type:"string" enum:"ClusterState"` @@ -1072,6 +1006,12 @@ type ClusterStatus struct { // A timeline that represents the status of a cluster over the lifetime of the // cluster. Timeline *ClusterTimeline `type:"structure"` + + metadataClusterStatus `json:"-" xml:"-"` +} + +type metadataClusterStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1086,8 +1026,6 @@ func (s ClusterStatus) GoString() string { // The summary description of the cluster. type ClusterSummary struct { - _ struct{} `type:"structure"` - // The unique identifier for the cluster. Id *string `type:"string"` @@ -1104,6 +1042,12 @@ type ClusterSummary struct { // The details about the current status of the cluster. Status *ClusterStatus `type:"structure"` + + metadataClusterSummary `json:"-" xml:"-"` +} + +type metadataClusterSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1118,8 +1062,6 @@ func (s ClusterSummary) GoString() string { // Represents the timeline of the cluster's lifecycle. type ClusterTimeline struct { - _ struct{} `type:"structure"` - // The creation date and time of the cluster. CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -1128,6 +1070,12 @@ type ClusterTimeline struct { // The date and time when the cluster was ready to execute steps. ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + metadataClusterTimeline `json:"-" xml:"-"` +} + +type metadataClusterTimeline struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1142,8 +1090,6 @@ func (s ClusterTimeline) GoString() string { // An entity describing an executable that runs on a cluster. type Command struct { - _ struct{} `type:"structure"` - // Arguments for Amazon EMR to pass to the command for execution. Args []*string `type:"list"` @@ -1152,6 +1098,12 @@ type Command struct { // The Amazon S3 location of the command script. ScriptPath *string `type:"string"` + + metadataCommand `json:"-" xml:"-"` +} + +type metadataCommand struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1172,8 +1124,6 @@ func (s Command) GoString() string { // and a set of properties. Configurations can be nested, so a configuration // may have its own Configuration objects listed. type Configuration struct { - _ struct{} `type:"structure"` - // The classification of a configuration. For more information see, Amazon EMR // Configurations (http://docs.aws.amazon.com/ElasticMapReduce/latest/API/EmrConfigurations.html). Classification *string `type:"string"` @@ -1183,6 +1133,12 @@ type Configuration struct { // A set of properties supplied to the Configuration object. Properties map[string]*string `type:"map"` + + metadataConfiguration `json:"-" xml:"-"` +} + +type metadataConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1197,10 +1153,14 @@ func (s Configuration) GoString() string { // This input determines which cluster to describe. type DescribeClusterInput struct { - _ struct{} `type:"structure"` - // The identifier of the cluster to describe. ClusterId *string `type:"string" required:"true"` + + metadataDescribeClusterInput `json:"-" xml:"-"` +} + +type metadataDescribeClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1213,25 +1173,16 @@ func (s DescribeClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeClusterInput"} - if s.ClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This output contains the description of the cluster. type DescribeClusterOutput struct { - _ struct{} `type:"structure"` - // This output contains the details for the requested cluster. Cluster *Cluster `type:"structure"` + + metadataDescribeClusterOutput `json:"-" xml:"-"` +} + +type metadataDescribeClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1246,8 +1197,6 @@ func (s DescribeClusterOutput) GoString() string { // The input for the DescribeJobFlows operation. type DescribeJobFlowsInput struct { - _ struct{} `type:"structure"` - // Return only job flows created after this date and time. CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -1259,6 +1208,12 @@ type DescribeJobFlowsInput struct { // Return only job flows whose state is contained in this list. JobFlowStates []*string `type:"list"` + + metadataDescribeJobFlowsInput `json:"-" xml:"-"` +} + +type metadataDescribeJobFlowsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1273,10 +1228,14 @@ func (s DescribeJobFlowsInput) GoString() string { // The output for the DescribeJobFlows operation. type DescribeJobFlowsOutput struct { - _ struct{} `type:"structure"` - // A list of job flows matching the parameters supplied. JobFlows []*JobFlowDetail `type:"list"` + + metadataDescribeJobFlowsOutput `json:"-" xml:"-"` +} + +type metadataDescribeJobFlowsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1291,13 +1250,17 @@ func (s DescribeJobFlowsOutput) GoString() string { // This input determines which step to describe. type DescribeStepInput struct { - _ struct{} `type:"structure"` - // The identifier of the cluster with steps to describe. ClusterId *string `type:"string" required:"true"` // The identifier of the step to describe. StepId *string `type:"string" required:"true"` + + metadataDescribeStepInput `json:"-" xml:"-"` +} + +type metadataDescribeStepInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1310,169 +1273,31 @@ func (s DescribeStepInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStepInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStepInput"} - if s.ClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterId")) - } - if s.StepId == nil { - invalidParams.Add(request.NewErrParamRequired("StepId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This output contains the description of the cluster step. type DescribeStepOutput struct { - _ struct{} `type:"structure"` - // The step details for the requested step identifier. Step *Step `type:"structure"` -} - -// String returns the string representation -func (s DescribeStepOutput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DescribeStepOutput) GoString() string { - return s.String() -} - -// Configuration of requested EBS block device associated with the instance -// group. -type EbsBlockDevice struct { - _ struct{} `type:"structure"` - - // The device name that is exposed to the instance, such as /dev/sdh. - Device *string `type:"string"` - - // EBS volume specifications such as volume type, IOPS, and size(GiB) that will - // be requested for the EBS volume attached to an EC2 instance in the cluster. - VolumeSpecification *VolumeSpecification `type:"structure"` -} - -// String returns the string representation -func (s EbsBlockDevice) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EbsBlockDevice) GoString() string { - return s.String() -} - -// Configuration of requested EBS block device associated with the instance -// group with count of volumes that will be associated to every instance. -type EbsBlockDeviceConfig struct { - _ struct{} `type:"structure"` - - // EBS volume specifications such as volume type, IOPS, and size(GiB) that will - // be requested for the EBS volume attached to an EC2 instance in the cluster. - VolumeSpecification *VolumeSpecification `type:"structure" required:"true"` - - // Number of EBS volumes with specific volume configuration, that will be associated - // with every instance in the instance group - VolumesPerInstance *int64 `type:"integer"` -} - -// String returns the string representation -func (s EbsBlockDeviceConfig) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EbsBlockDeviceConfig) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *EbsBlockDeviceConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EbsBlockDeviceConfig"} - if s.VolumeSpecification == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeSpecification")) - } - if s.VolumeSpecification != nil { - if err := s.VolumeSpecification.Validate(); err != nil { - invalidParams.AddNested("VolumeSpecification", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type EbsConfiguration struct { - _ struct{} `type:"structure"` - - EbsBlockDeviceConfigs []*EbsBlockDeviceConfig `type:"list"` - - EbsOptimized *bool `type:"boolean"` -} - -// String returns the string representation -func (s EbsConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EbsConfiguration) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *EbsConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EbsConfiguration"} - if s.EbsBlockDeviceConfigs != nil { - for i, v := range s.EbsBlockDeviceConfigs { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EbsBlockDeviceConfigs", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDescribeStepOutput `json:"-" xml:"-"` } -// EBS block device that's attached to an EC2 instance. -type EbsVolume struct { - _ struct{} `type:"structure"` - - // The device name that is exposed to the instance, such as /dev/sdh. - Device *string `type:"string"` - - // The volume identifier of the EBS volume. - VolumeId *string `type:"string"` +type metadataDescribeStepOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s EbsVolume) String() string { +func (s DescribeStepOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EbsVolume) GoString() string { +func (s DescribeStepOutput) GoString() string { return s.String() } // Provides information about the EC2 instances in a cluster grouped by category. // For example, key name, subnet ID, IAM instance profile, and so on. type Ec2InstanceAttributes struct { - _ struct{} `type:"structure"` - // A list of additional Amazon EC2 security group IDs for the master node. AdditionalMasterSecurityGroups []*string `type:"list"` @@ -1496,19 +1321,23 @@ type Ec2InstanceAttributes struct { // type for nodes of a job flow launched in a VPC. Ec2SubnetId *string `type:"string"` - // The identifier of the Amazon EC2 security group for the master node. + // The identifier of the Amazon EC2 security group (managed by Amazon Elastic + // MapReduce) for the master node. EmrManagedMasterSecurityGroup *string `type:"string"` - // The identifier of the Amazon EC2 security group for the slave nodes. + // The identifier of the Amazon EC2 security group (managed by Amazon Elastic + // MapReduce) for the slave nodes. EmrManagedSlaveSecurityGroup *string `type:"string"` // The IAM role that was specified when the job flow was launched. The EC2 instances // of the job flow assume this role. IamInstanceProfile *string `type:"string"` - // The identifier of the Amazon EC2 security group for the Amazon EMR service - // to access clusters in VPC private subnets. - ServiceAccessSecurityGroup *string `type:"string"` + metadataEc2InstanceAttributes `json:"-" xml:"-"` +} + +type metadataEc2InstanceAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1525,8 +1354,6 @@ func (s Ec2InstanceAttributes) GoString() string { // The main function submits a job for Hadoop to execute and waits for the job // to finish or fail. type HadoopJarStepConfig struct { - _ struct{} `type:"structure"` - // A list of command line arguments passed to the JAR file's main function when // executed. Args []*string `type:"list"` @@ -1541,6 +1368,12 @@ type HadoopJarStepConfig struct { // A list of Java properties that are set when the step runs. You can use these // properties to pass key value pairs to your main function. Properties []*KeyValue `type:"list"` + + metadataHadoopJarStepConfig `json:"-" xml:"-"` +} + +type metadataHadoopJarStepConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1553,25 +1386,10 @@ func (s HadoopJarStepConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *HadoopJarStepConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HadoopJarStepConfig"} - if s.Jar == nil { - invalidParams.Add(request.NewErrParamRequired("Jar")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A cluster step consisting of a JAR file whose main function will be executed. // The main function submits a job for Hadoop to execute and waits for the job // to finish or fail. type HadoopStepConfig struct { - _ struct{} `type:"structure"` - // The list of command line arguments to pass to the JAR file's main function // for execution. Args []*string `type:"list"` @@ -1586,6 +1404,12 @@ type HadoopStepConfig struct { // The list of Java properties that are set when the step runs. You can use // these properties to pass key value pairs to your main function. Properties map[string]*string `type:"map"` + + metadataHadoopStepConfig `json:"-" xml:"-"` +} + +type metadataHadoopStepConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1600,20 +1424,12 @@ func (s HadoopStepConfig) GoString() string { // Represents an EC2 instance provisioned as part of cluster. type Instance struct { - _ struct{} `type:"structure"` - - // The list of EBS volumes that are attached to this instance. - EbsVolumes []*EbsVolume `type:"list"` - // The unique identifier of the instance in Amazon EC2. Ec2InstanceId *string `type:"string"` // The unique identifier for the instance in Amazon EMR. Id *string `type:"string"` - // The identifier of the instance group to which this instance belongs. - InstanceGroupId *string `type:"string"` - // The private DNS name of the instance. PrivateDnsName *string `type:"string"` @@ -1628,6 +1444,12 @@ type Instance struct { // The current status of the instance. Status *InstanceStatus `type:"structure"` + + metadataInstance `json:"-" xml:"-"` +} + +type metadataInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1643,8 +1465,6 @@ func (s Instance) GoString() string { // This entity represents an instance group, which is a group of instances that // have common purpose. For example, CORE instance group is used for HDFS. type InstanceGroup struct { - _ struct{} `type:"structure"` - // The bid price for each EC2 instance in the instance group when launching // nodes as Spot Instances, expressed in USD. BidPrice *string `type:"string"` @@ -1656,14 +1476,6 @@ type InstanceGroup struct { // and task). Configurations []*Configuration `type:"list"` - // The EBS block devices that are mapped to this instance group. - EbsBlockDevices []*EbsBlockDevice `type:"list"` - - // If the instance group is EBS-optimized. An Amazon EBS–optimized instance - // uses an optimized configuration stack and provides additional, dedicated - // capacity for Amazon EBS I/O. - EbsOptimized *bool `type:"boolean"` - // The identifier of the instance group. Id *string `type:"string"` @@ -1671,7 +1483,7 @@ type InstanceGroup struct { InstanceGroupType *string `type:"string" enum:"InstanceGroupType"` // The EC2 instance type for all instances in the instance group. - InstanceType *string `min:"1" type:"string"` + InstanceType *string `type:"string"` // The marketplace to provision instances for this group. Valid values are ON_DEMAND // or SPOT. @@ -1686,11 +1498,14 @@ type InstanceGroup struct { // The number of instances currently running in this instance group. RunningInstanceCount *int64 `type:"integer"` - // Policy for customizing shrink operations. - ShrinkPolicy *ShrinkPolicy `type:"structure"` - // The current status of the instance group. Status *InstanceGroupStatus `type:"structure"` + + metadataInstanceGroup `json:"-" xml:"-"` +} + +type metadataInstanceGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1705,8 +1520,6 @@ func (s InstanceGroup) GoString() string { // Configuration defining a new instance group. type InstanceGroupConfig struct { - _ struct{} `type:"structure"` - // Bid price for each Amazon EC2 instance in the instance group when launching // nodes as Spot Instances, expressed in USD. BidPrice *string `type:"string"` @@ -1718,10 +1531,6 @@ type InstanceGroupConfig struct { // and task). Configurations []*Configuration `type:"list"` - // EBS configurations that will be attached to each Amazon EC2 instance in the - // instance group. - EbsConfiguration *EbsConfiguration `type:"structure"` - // Target number of instances for the instance group. InstanceCount *int64 `type:"integer" required:"true"` @@ -1729,13 +1538,19 @@ type InstanceGroupConfig struct { InstanceRole *string `type:"string" required:"true" enum:"InstanceRoleType"` // The Amazon EC2 instance type for all instances in the instance group. - InstanceType *string `min:"1" type:"string" required:"true"` + InstanceType *string `type:"string" required:"true"` // Market type of the Amazon EC2 instances used to create a cluster node. Market *string `type:"string" enum:"MarketType"` // Friendly name given to the instance group. Name *string `type:"string"` + + metadataInstanceGroupConfig `json:"-" xml:"-"` +} + +type metadataInstanceGroupConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1748,37 +1563,8 @@ func (s InstanceGroupConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InstanceGroupConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InstanceGroupConfig"} - if s.InstanceCount == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceCount")) - } - if s.InstanceRole == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceRole")) - } - if s.InstanceType == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceType")) - } - if s.InstanceType != nil && len(*s.InstanceType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) - } - if s.EbsConfiguration != nil { - if err := s.EbsConfiguration.Validate(); err != nil { - invalidParams.AddNested("EbsConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Detailed information about an instance group. type InstanceGroupDetail struct { - _ struct{} `type:"structure"` - // Bid price for EC2 Instances when launching nodes as Spot Instances, expressed // in USD. BidPrice *string `type:"string"` @@ -1802,7 +1588,7 @@ type InstanceGroupDetail struct { InstanceRunningCount *int64 `type:"integer" required:"true"` // Amazon EC2 Instance type. - InstanceType *string `min:"1" type:"string" required:"true"` + InstanceType *string `type:"string" required:"true"` // Details regarding the state of the instance group. LastStateChangeReason *string `type:"string"` @@ -1822,6 +1608,12 @@ type InstanceGroupDetail struct { // State of instance group. The following values are deprecated: STARTING, TERMINATED, // and FAILED. State *string `type:"string" required:"true" enum:"InstanceGroupState"` + + metadataInstanceGroupDetail `json:"-" xml:"-"` +} + +type metadataInstanceGroupDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1836,10 +1628,9 @@ func (s InstanceGroupDetail) GoString() string { // Modify an instance group size. type InstanceGroupModifyConfig struct { - _ struct{} `type:"structure"` - - // The EC2 InstanceIds to terminate. Once you terminate the instances, the instance - // group will not return to its original requested size. + // The EC2 InstanceIds to terminate. For advanced users only. Once you terminate + // the instances, the instance group will not return to its original requested + // size. EC2InstanceIdsToTerminate []*string `type:"list"` // Target size for the instance group. @@ -1848,8 +1639,11 @@ type InstanceGroupModifyConfig struct { // Unique ID of the instance group to expand or shrink. InstanceGroupId *string `type:"string" required:"true"` - // Policy for customizing shrink operations. - ShrinkPolicy *ShrinkPolicy `type:"structure"` + metadataInstanceGroupModifyConfig `json:"-" xml:"-"` +} + +type metadataInstanceGroupModifyConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1862,28 +1656,19 @@ func (s InstanceGroupModifyConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InstanceGroupModifyConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InstanceGroupModifyConfig"} - if s.InstanceGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceGroupId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The status change reason details for the instance group. type InstanceGroupStateChangeReason struct { - _ struct{} `type:"structure"` - // The programmable code for the state change reason. Code *string `type:"string" enum:"InstanceGroupStateChangeReasonCode"` // The status change reason description. Message *string `type:"string"` + + metadataInstanceGroupStateChangeReason `json:"-" xml:"-"` +} + +type metadataInstanceGroupStateChangeReason struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1898,8 +1683,6 @@ func (s InstanceGroupStateChangeReason) GoString() string { // The details of the instance group status. type InstanceGroupStatus struct { - _ struct{} `type:"structure"` - // The current state of the instance group. State *string `type:"string" enum:"InstanceGroupState"` @@ -1908,6 +1691,12 @@ type InstanceGroupStatus struct { // The timeline of the instance group status over time. Timeline *InstanceGroupTimeline `type:"structure"` + + metadataInstanceGroupStatus `json:"-" xml:"-"` +} + +type metadataInstanceGroupStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1922,8 +1711,6 @@ func (s InstanceGroupStatus) GoString() string { // The timeline of the instance group lifecycle. type InstanceGroupTimeline struct { - _ struct{} `type:"structure"` - // The creation date and time of the instance group. CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -1932,6 +1719,12 @@ type InstanceGroupTimeline struct { // The date and time when the instance group became ready to perform tasks. ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + metadataInstanceGroupTimeline `json:"-" xml:"-"` +} + +type metadataInstanceGroupTimeline struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1944,41 +1737,19 @@ func (s InstanceGroupTimeline) GoString() string { return s.String() } -// Custom policy for requesting termination protection or termination of specific -// instances when shrinking an instance group. -type InstanceResizePolicy struct { - _ struct{} `type:"structure"` +// The details of the status change reason for the instance. +type InstanceStateChangeReason struct { + // The programmable code for the state change reason. + Code *string `type:"string" enum:"InstanceStateChangeReasonCode"` - // Decommissioning timeout override for the specific list of instances to be - // terminated. - InstanceTerminationTimeout *int64 `type:"integer"` + // The status change reason description. + Message *string `type:"string"` - // Specific list of instances to be protected when shrinking an instance group. - InstancesToProtect []*string `type:"list"` - - // Specific list of instances to be terminated when shrinking an instance group. - InstancesToTerminate []*string `type:"list"` -} - -// String returns the string representation -func (s InstanceResizePolicy) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s InstanceResizePolicy) GoString() string { - return s.String() + metadataInstanceStateChangeReason `json:"-" xml:"-"` } -// The details of the status change reason for the instance. -type InstanceStateChangeReason struct { - _ struct{} `type:"structure"` - - // The programmable code for the state change reason. - Code *string `type:"string" enum:"InstanceStateChangeReasonCode"` - - // The status change reason description. - Message *string `type:"string"` +type metadataInstanceStateChangeReason struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1993,8 +1764,6 @@ func (s InstanceStateChangeReason) GoString() string { // The instance status details. type InstanceStatus struct { - _ struct{} `type:"structure"` - // The current state of the instance. State *string `type:"string" enum:"InstanceState"` @@ -2003,6 +1772,12 @@ type InstanceStatus struct { // The timeline of the instance status over time. Timeline *InstanceTimeline `type:"structure"` + + metadataInstanceStatus `json:"-" xml:"-"` +} + +type metadataInstanceStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2017,8 +1792,6 @@ func (s InstanceStatus) GoString() string { // The timeline of the instance lifecycle. type InstanceTimeline struct { - _ struct{} `type:"structure"` - // The creation date and time of the instance. CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -2027,6 +1800,12 @@ type InstanceTimeline struct { // The date and time when the instance was ready to perform tasks. ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + metadataInstanceTimeline `json:"-" xml:"-"` +} + +type metadataInstanceTimeline struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2041,8 +1820,6 @@ func (s InstanceTimeline) GoString() string { // A description of a job flow. type JobFlowDetail struct { - _ struct{} `type:"structure"` - // The version of the AMI used to initialize Amazon EC2 instances in the job // flow. For a list of AMI versions currently supported by Amazon ElasticMapReduce, // go to AMI Versions Supported in Elastic MapReduce (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported) @@ -2090,6 +1867,12 @@ type JobFlowDetail struct { // the job flow can view and manage it. This value can be changed using the // SetVisibleToAllUsers action. VisibleToAllUsers *bool `type:"boolean"` + + metadataJobFlowDetail `json:"-" xml:"-"` +} + +type metadataJobFlowDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2104,8 +1887,6 @@ func (s JobFlowDetail) GoString() string { // Describes the status of the job flow. type JobFlowExecutionStatusDetail struct { - _ struct{} `type:"structure"` - // The creation date and time of the job flow. CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` @@ -2124,6 +1905,12 @@ type JobFlowExecutionStatusDetail struct { // The state of the job flow. State *string `type:"string" required:"true" enum:"JobFlowExecutionState"` + + metadataJobFlowExecutionStatusDetail `json:"-" xml:"-"` +} + +type metadataJobFlowExecutionStatusDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2141,8 +1928,6 @@ func (s JobFlowExecutionStatusDetail) GoString() string { // However, a valid alternative is to have MasterInstanceType, SlaveInstanceType, // and InstanceCount (all three must be present). type JobFlowInstancesConfig struct { - _ struct{} `type:"structure"` - // A list of additional Amazon EC2 security group IDs for the master node. AdditionalMasterSecurityGroups []*string `type:"list"` @@ -2163,10 +1948,12 @@ type JobFlowInstancesConfig struct { // type for nodes of a job flow launched in a Amazon VPC. Ec2SubnetId *string `type:"string"` - // The identifier of the Amazon EC2 security group for the master node. + // The identifier of the Amazon EC2 security group (managed by Amazon ElasticMapReduce) + // for the master node. EmrManagedMasterSecurityGroup *string `type:"string"` - // The identifier of the Amazon EC2 security group for the slave nodes. + // The identifier of the Amazon EC2 security group (managed by Amazon ElasticMapReduce) + // for the slave nodes. EmrManagedSlaveSecurityGroup *string `type:"string"` // The Hadoop version for the job flow. Valid inputs are "0.18" (deprecated), @@ -2187,22 +1974,24 @@ type JobFlowInstancesConfig struct { KeepJobFlowAliveWhenNoSteps *bool `type:"boolean"` // The EC2 instance type of the master node. - MasterInstanceType *string `min:"1" type:"string"` + MasterInstanceType *string `type:"string"` // The Availability Zone the job flow will run in. Placement *PlacementType `type:"structure"` - // The identifier of the Amazon EC2 security group for the Amazon EMR service - // to access clusters in VPC private subnets. - ServiceAccessSecurityGroup *string `type:"string"` - // The EC2 instance type of the slave nodes. - SlaveInstanceType *string `min:"1" type:"string"` + SlaveInstanceType *string `type:"string"` // Specifies whether to lock the job flow to prevent the Amazon EC2 instances // from being terminated by API call, user intervention, or in the event of // a job flow error. TerminationProtected *bool `type:"boolean"` + + metadataJobFlowInstancesConfig `json:"-" xml:"-"` +} + +type metadataJobFlowInstancesConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2215,41 +2004,8 @@ func (s JobFlowInstancesConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *JobFlowInstancesConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "JobFlowInstancesConfig"} - if s.MasterInstanceType != nil && len(*s.MasterInstanceType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MasterInstanceType", 1)) - } - if s.SlaveInstanceType != nil && len(*s.SlaveInstanceType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SlaveInstanceType", 1)) - } - if s.InstanceGroups != nil { - for i, v := range s.InstanceGroups { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceGroups", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Placement != nil { - if err := s.Placement.Validate(); err != nil { - invalidParams.AddNested("Placement", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Specify the type of Amazon EC2 instances to run the job flow on. type JobFlowInstancesDetail struct { - _ struct{} `type:"structure"` - // The name of an Amazon EC2 key pair that can be used to ssh to the master // node of job flow. Ec2KeyName *string `type:"string"` @@ -2276,7 +2032,7 @@ type JobFlowInstancesDetail struct { MasterInstanceId *string `type:"string"` // The Amazon EC2 master node instance type. - MasterInstanceType *string `min:"1" type:"string" required:"true"` + MasterInstanceType *string `type:"string" required:"true"` // The DNS name of the master node. MasterPublicDnsName *string `type:"string"` @@ -2293,12 +2049,18 @@ type JobFlowInstancesDetail struct { Placement *PlacementType `type:"structure"` // The Amazon EC2 slave node instance type. - SlaveInstanceType *string `min:"1" type:"string" required:"true"` + SlaveInstanceType *string `type:"string" required:"true"` // Specifies whether the Amazon EC2 instances in the cluster are protected from // termination by API calls, user intervention, or in the event of a job flow // error. TerminationProtected *bool `type:"boolean"` + + metadataJobFlowInstancesDetail `json:"-" xml:"-"` +} + +type metadataJobFlowInstancesDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2313,13 +2075,17 @@ func (s JobFlowInstancesDetail) GoString() string { // A key value pair. type KeyValue struct { - _ struct{} `type:"structure"` - // The unique identifier of a key value pair. Key *string `type:"string"` // The value part of the identified key. Value *string `type:"string"` + + metadataKeyValue `json:"-" xml:"-"` +} + +type metadataKeyValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2334,13 +2100,17 @@ func (s KeyValue) GoString() string { // This input determines which bootstrap actions to retrieve. type ListBootstrapActionsInput struct { - _ struct{} `type:"structure"` - // The cluster identifier for the bootstrap actions to list . ClusterId *string `type:"string" required:"true"` // The pagination token that indicates the next set of results to retrieve . Marker *string `type:"string"` + + metadataListBootstrapActionsInput `json:"-" xml:"-"` +} + +type metadataListBootstrapActionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2353,28 +2123,19 @@ func (s ListBootstrapActionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListBootstrapActionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListBootstrapActionsInput"} - if s.ClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This output contains the boostrap actions detail . type ListBootstrapActionsOutput struct { - _ struct{} `type:"structure"` - // The bootstrap actions associated with the cluster . BootstrapActions []*Command `type:"list"` // The pagination token that indicates the next set of results to retrieve . Marker *string `type:"string"` + + metadataListBootstrapActionsOutput `json:"-" xml:"-"` +} + +type metadataListBootstrapActionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2390,8 +2151,6 @@ func (s ListBootstrapActionsOutput) GoString() string { // This input determines how the ListClusters action filters the list of clusters // that it returns. type ListClustersInput struct { - _ struct{} `type:"structure"` - // The cluster state filters to apply when listing clusters. ClusterStates []*string `type:"list"` @@ -2403,6 +2162,12 @@ type ListClustersInput struct { // The pagination token that indicates the next set of results to retrieve. Marker *string `type:"string"` + + metadataListClustersInput `json:"-" xml:"-"` +} + +type metadataListClustersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2418,13 +2183,17 @@ func (s ListClustersInput) GoString() string { // This contains a ClusterSummaryList with the cluster details; for example, // the cluster IDs, names, and status. type ListClustersOutput struct { - _ struct{} `type:"structure"` - // The list of clusters for the account based on the given filters. Clusters []*ClusterSummary `type:"list"` // The pagination token that indicates the next set of results to retrieve. Marker *string `type:"string"` + + metadataListClustersOutput `json:"-" xml:"-"` +} + +type metadataListClustersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2439,13 +2208,17 @@ func (s ListClustersOutput) GoString() string { // This input determines which instance groups to retrieve. type ListInstanceGroupsInput struct { - _ struct{} `type:"structure"` - // The identifier of the cluster for which to list the instance groups. ClusterId *string `type:"string" required:"true"` // The pagination token that indicates the next set of results to retrieve. Marker *string `type:"string"` + + metadataListInstanceGroupsInput `json:"-" xml:"-"` +} + +type metadataListInstanceGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2458,28 +2231,19 @@ func (s ListInstanceGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListInstanceGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListInstanceGroupsInput"} - if s.ClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This input determines which instance groups to retrieve. type ListInstanceGroupsOutput struct { - _ struct{} `type:"structure"` - // The list of instance groups for the cluster and given filters. InstanceGroups []*InstanceGroup `type:"list"` // The pagination token that indicates the next set of results to retrieve. Marker *string `type:"string"` + + metadataListInstanceGroupsOutput `json:"-" xml:"-"` +} + +type metadataListInstanceGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2494,8 +2258,6 @@ func (s ListInstanceGroupsOutput) GoString() string { // This input determines which instances to list. type ListInstancesInput struct { - _ struct{} `type:"structure"` - // The identifier of the cluster for which to list the instances. ClusterId *string `type:"string" required:"true"` @@ -2505,12 +2267,14 @@ type ListInstancesInput struct { // The type of instance group for which to list the instances. InstanceGroupTypes []*string `type:"list"` - // A list of instance states that will filter the instances returned with this - // request. - InstanceStates []*string `type:"list"` - // The pagination token that indicates the next set of results to retrieve. Marker *string `type:"string"` + + metadataListInstancesInput `json:"-" xml:"-"` +} + +type metadataListInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2523,28 +2287,19 @@ func (s ListInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListInstancesInput"} - if s.ClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This output contains the list of instances. type ListInstancesOutput struct { - _ struct{} `type:"structure"` - // The list of instances for the cluster and given filters. Instances []*Instance `type:"list"` // The pagination token that indicates the next set of results to retrieve. Marker *string `type:"string"` + + metadataListInstancesOutput `json:"-" xml:"-"` +} + +type metadataListInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2559,8 +2314,6 @@ func (s ListInstancesOutput) GoString() string { // This input determines which steps to list. type ListStepsInput struct { - _ struct{} `type:"structure"` - // The identifier of the cluster for which to list the steps. ClusterId *string `type:"string" required:"true"` @@ -2572,6 +2325,12 @@ type ListStepsInput struct { // The filter to limit the step list based on certain states. StepStates []*string `type:"list"` + + metadataListStepsInput `json:"-" xml:"-"` +} + +type metadataListStepsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2584,29 +2343,19 @@ func (s ListStepsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListStepsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListStepsInput"} - if s.ClusterId == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// This output contains the list of steps returned in reverse order. This means -// that the last step is the first element in the list. +// This output contains the list of steps. type ListStepsOutput struct { - _ struct{} `type:"structure"` - // The pagination token that indicates the next set of results to retrieve. Marker *string `type:"string"` // The filtered list of steps for the cluster. Steps []*StepSummary `type:"list"` + + metadataListStepsOutput `json:"-" xml:"-"` +} + +type metadataListStepsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2621,10 +2370,14 @@ func (s ListStepsOutput) GoString() string { // Change the size of some instance groups. type ModifyInstanceGroupsInput struct { - _ struct{} `type:"structure"` - // Instance groups to change. InstanceGroups []*InstanceGroupModifyConfig `type:"list"` + + metadataModifyInstanceGroupsInput `json:"-" xml:"-"` +} + +type metadataModifyInstanceGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2637,28 +2390,12 @@ func (s ModifyInstanceGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyInstanceGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceGroupsInput"} - if s.InstanceGroups != nil { - for i, v := range s.InstanceGroups { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceGroups", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ModifyInstanceGroupsOutput struct { + metadataModifyInstanceGroupsOutput `json:"-" xml:"-"` } -type ModifyInstanceGroupsOutput struct { - _ struct{} `type:"structure"` +type metadataModifyInstanceGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2673,10 +2410,14 @@ func (s ModifyInstanceGroupsOutput) GoString() string { // The Amazon EC2 location for the job flow. type PlacementType struct { - _ struct{} `type:"structure"` - // The Amazon EC2 Availability Zone for the job flow. AvailabilityZone *string `type:"string" required:"true"` + + metadataPlacementType `json:"-" xml:"-"` +} + +type metadataPlacementType struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2689,29 +2430,20 @@ func (s PlacementType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PlacementType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PlacementType"} - if s.AvailabilityZone == nil { - invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This input identifies a cluster and a list of tags to remove. type RemoveTagsInput struct { - _ struct{} `type:"structure"` - // The Amazon EMR resource identifier from which tags will be removed. This // value must be a cluster identifier. ResourceId *string `type:"string" required:"true"` // A list of tag keys to remove from a resource. TagKeys []*string `type:"list" required:"true"` + + metadataRemoveTagsInput `json:"-" xml:"-"` +} + +type metadataRemoveTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2724,25 +2456,13 @@ func (s RemoveTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This output indicates the result of removing tags from a resource. type RemoveTagsOutput struct { - _ struct{} `type:"structure"` + metadataRemoveTagsOutput `json:"-" xml:"-"` +} + +type metadataRemoveTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2757,8 +2477,6 @@ func (s RemoveTagsOutput) GoString() string { // Input to the RunJobFlow operation. type RunJobFlowInput struct { - _ struct{} `type:"structure"` - // A JSON string for selecting additional features. AdditionalInfo *string `type:"string"` @@ -2797,10 +2515,9 @@ type RunJobFlowInput struct { // run the job flow. Instances *JobFlowInstancesConfig `type:"structure" required:"true"` - // Also called instance profile and EC2 role. An IAM role for an EMR cluster. - // The EC2 instances of the cluster assume this role. The default role is EMR_EC2_DefaultRole. - // In order to use the default role, you must have already created it using - // the CLI or console. + // An IAM role for the job flow. The EC2 instances of the job flow assume this + // role. The default role is EMRJobflowDefault. In order to use the default + // role, you must have already created it using the CLI. JobFlowRole *string `type:"string"` // The location in Amazon S3 to write the log files of the job flow. If a value @@ -2864,6 +2581,12 @@ type RunJobFlowInput struct { // the job flow. If it is set to false, only the IAM user that created the job // flow can view and manage it. VisibleToAllUsers *bool `type:"boolean"` + + metadataRunJobFlowInput `json:"-" xml:"-"` +} + +type metadataRunJobFlowInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2876,53 +2599,16 @@ func (s RunJobFlowInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RunJobFlowInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RunJobFlowInput"} - if s.Instances == nil { - invalidParams.Add(request.NewErrParamRequired("Instances")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.BootstrapActions != nil { - for i, v := range s.BootstrapActions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "BootstrapActions", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Instances != nil { - if err := s.Instances.Validate(); err != nil { - invalidParams.AddNested("Instances", err.(request.ErrInvalidParams)) - } - } - if s.Steps != nil { - for i, v := range s.Steps { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Steps", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of the RunJobFlow operation. type RunJobFlowOutput struct { - _ struct{} `type:"structure"` - // An unique identifier for the job flow. JobFlowId *string `type:"string"` + + metadataRunJobFlowOutput `json:"-" xml:"-"` +} + +type metadataRunJobFlowOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2937,14 +2623,18 @@ func (s RunJobFlowOutput) GoString() string { // Configuration of the script to run during a bootstrap action. type ScriptBootstrapActionConfig struct { - _ struct{} `type:"structure"` - // A list of command line arguments to pass to the bootstrap action script. Args []*string `type:"list"` // Location of the script to run during a bootstrap action. Can be either a // location in Amazon S3 or on a local file system. Path *string `type:"string" required:"true"` + + metadataScriptBootstrapActionConfig `json:"-" xml:"-"` +} + +type metadataScriptBootstrapActionConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2957,23 +2647,8 @@ func (s ScriptBootstrapActionConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ScriptBootstrapActionConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ScriptBootstrapActionConfig"} - if s.Path == nil { - invalidParams.Add(request.NewErrParamRequired("Path")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The input argument to the TerminationProtection operation. type SetTerminationProtectionInput struct { - _ struct{} `type:"structure"` - // A list of strings that uniquely identify the job flows to protect. This identifier // is returned by RunJobFlow and can also be obtained from DescribeJobFlows // . @@ -2983,6 +2658,12 @@ type SetTerminationProtectionInput struct { // Amazon EC2 instances in the cluster from shutting down due to API calls, // user intervention, or job-flow error. TerminationProtected *bool `type:"boolean" required:"true"` + + metadataSetTerminationProtectionInput `json:"-" xml:"-"` +} + +type metadataSetTerminationProtectionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2995,24 +2676,12 @@ func (s SetTerminationProtectionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetTerminationProtectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetTerminationProtectionInput"} - if s.JobFlowIds == nil { - invalidParams.Add(request.NewErrParamRequired("JobFlowIds")) - } - if s.TerminationProtected == nil { - invalidParams.Add(request.NewErrParamRequired("TerminationProtected")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetTerminationProtectionOutput struct { + metadataSetTerminationProtectionOutput `json:"-" xml:"-"` } -type SetTerminationProtectionOutput struct { - _ struct{} `type:"structure"` +type metadataSetTerminationProtectionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3027,8 +2696,6 @@ func (s SetTerminationProtectionOutput) GoString() string { // The input to the SetVisibleToAllUsers action. type SetVisibleToAllUsersInput struct { - _ struct{} `type:"structure"` - // Identifiers of the job flows to receive the new visibility setting. JobFlowIds []*string `type:"list" required:"true"` @@ -3038,6 +2705,12 @@ type SetVisibleToAllUsersInput struct { // set, manage the job flows. If it is set to False, only the IAM user that // created a job flow can view and manage it. VisibleToAllUsers *bool `type:"boolean" required:"true"` + + metadataSetVisibleToAllUsersInput `json:"-" xml:"-"` +} + +type metadataSetVisibleToAllUsersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3050,24 +2723,12 @@ func (s SetVisibleToAllUsersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetVisibleToAllUsersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetVisibleToAllUsersInput"} - if s.JobFlowIds == nil { - invalidParams.Add(request.NewErrParamRequired("JobFlowIds")) - } - if s.VisibleToAllUsers == nil { - invalidParams.Add(request.NewErrParamRequired("VisibleToAllUsers")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetVisibleToAllUsersOutput struct { + metadataSetVisibleToAllUsersOutput `json:"-" xml:"-"` } -type SetVisibleToAllUsersOutput struct { - _ struct{} `type:"structure"` +type metadataSetVisibleToAllUsersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3080,34 +2741,8 @@ func (s SetVisibleToAllUsersOutput) GoString() string { return s.String() } -// Policy for customizing shrink operations. Allows configuration of decommissioning -// timeout and targeted instance shrinking. -type ShrinkPolicy struct { - _ struct{} `type:"structure"` - - // The desired timeout for decommissioning an instance. Overrides the default - // YARN decommissioning timeout. - DecommissionTimeout *int64 `type:"integer"` - - // Custom policy for requesting termination protection or termination of specific - // instances when shrinking an instance group. - InstanceResizePolicy *InstanceResizePolicy `type:"structure"` -} - -// String returns the string representation -func (s ShrinkPolicy) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ShrinkPolicy) GoString() string { - return s.String() -} - // This represents a step in a cluster. type Step struct { - _ struct{} `type:"structure"` - // This specifies what action to take when the cluster step fails. Possible // values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. ActionOnFailure *string `type:"string" enum:"ActionOnFailure"` @@ -3123,6 +2758,12 @@ type Step struct { // The current execution status details of the cluster step. Status *StepStatus `type:"structure"` + + metadataStep `json:"-" xml:"-"` +} + +type metadataStep struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3137,8 +2778,6 @@ func (s Step) GoString() string { // Specification of a job flow step. type StepConfig struct { - _ struct{} `type:"structure"` - // The action to take if the job flow step fails. ActionOnFailure *string `type:"string" enum:"ActionOnFailure"` @@ -3147,6 +2786,12 @@ type StepConfig struct { // The name of the job flow step. Name *string `type:"string" required:"true"` + + metadataStepConfig `json:"-" xml:"-"` +} + +type metadataStepConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3159,36 +2804,19 @@ func (s StepConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StepConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StepConfig"} - if s.HadoopJarStep == nil { - invalidParams.Add(request.NewErrParamRequired("HadoopJarStep")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.HadoopJarStep != nil { - if err := s.HadoopJarStep.Validate(); err != nil { - invalidParams.AddNested("HadoopJarStep", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Combines the execution state and configuration of a step. type StepDetail struct { - _ struct{} `type:"structure"` - // The description of the step status. ExecutionStatusDetail *StepExecutionStatusDetail `type:"structure" required:"true"` // The step configuration. StepConfig *StepConfig `type:"structure" required:"true"` + + metadataStepDetail `json:"-" xml:"-"` +} + +type metadataStepDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3203,8 +2831,6 @@ func (s StepDetail) GoString() string { // The execution state of a step. type StepExecutionStatusDetail struct { - _ struct{} `type:"structure"` - // The creation date and time of the step. CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` @@ -3219,6 +2845,12 @@ type StepExecutionStatusDetail struct { // The state of the job flow step. State *string `type:"string" required:"true" enum:"StepExecutionState"` + + metadataStepExecutionStatusDetail `json:"-" xml:"-"` +} + +type metadataStepExecutionStatusDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3233,14 +2865,18 @@ func (s StepExecutionStatusDetail) GoString() string { // The details of the step state change reason. type StepStateChangeReason struct { - _ struct{} `type:"structure"` - // The programmable code for the state change reason. Note: Currently, the service // provides no code for the state change. Code *string `type:"string" enum:"StepStateChangeReasonCode"` // The descriptive message for the state change reason. Message *string `type:"string"` + + metadataStepStateChangeReason `json:"-" xml:"-"` +} + +type metadataStepStateChangeReason struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3255,8 +2891,6 @@ func (s StepStateChangeReason) GoString() string { // The execution status details of the cluster step. type StepStatus struct { - _ struct{} `type:"structure"` - // The execution state of the cluster step. State *string `type:"string" enum:"StepState"` @@ -3265,6 +2899,12 @@ type StepStatus struct { // The timeline of the cluster step status over time. Timeline *StepTimeline `type:"structure"` + + metadataStepStatus `json:"-" xml:"-"` +} + +type metadataStepStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3279,8 +2919,6 @@ func (s StepStatus) GoString() string { // The summary of the cluster step. type StepSummary struct { - _ struct{} `type:"structure"` - // This specifies what action to take when the cluster step fails. Possible // values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. ActionOnFailure *string `type:"string" enum:"ActionOnFailure"` @@ -3296,6 +2934,12 @@ type StepSummary struct { // The current execution status details of the cluster step. Status *StepStatus `type:"structure"` + + metadataStepSummary `json:"-" xml:"-"` +} + +type metadataStepSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3310,8 +2954,6 @@ func (s StepSummary) GoString() string { // The timeline of the cluster step lifecycle. type StepTimeline struct { - _ struct{} `type:"structure"` - // The date and time when the cluster step was created. CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -3320,6 +2962,12 @@ type StepTimeline struct { // The date and time when the cluster step execution started. StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + + metadataStepTimeline `json:"-" xml:"-"` +} + +type metadataStepTimeline struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3336,13 +2984,17 @@ func (s StepTimeline) GoString() string { // EMR accepts these arguments and forwards them to the corresponding installation // script as bootstrap action arguments. type SupportedProductConfig struct { - _ struct{} `type:"structure"` - // The list of user-supplied arguments. Args []*string `type:"list"` // The name of the product configuration. Name *string `type:"string"` + + metadataSupportedProductConfig `json:"-" xml:"-"` +} + +type metadataSupportedProductConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3361,8 +3013,6 @@ func (s SupportedProductConfig) GoString() string { // allocation costs. For more information, see Tagging Amazon EMR Resources // (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html). type Tag struct { - _ struct{} `type:"structure"` - // A user-defined key, which is the minimum required information for a valid // tag. For more information, see Tagging Amazon EMR Resources (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html). Key *string `type:"string"` @@ -3370,6 +3020,12 @@ type Tag struct { // A user-defined value, which is optional in a tag. For more information, see // Tagging Amazon EMR Resources (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html). Value *string `type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3384,10 +3040,14 @@ func (s Tag) GoString() string { // Input to the TerminateJobFlows operation. type TerminateJobFlowsInput struct { - _ struct{} `type:"structure"` - // A list of job flows to be shutdown. JobFlowIds []*string `type:"list" required:"true"` + + metadataTerminateJobFlowsInput `json:"-" xml:"-"` +} + +type metadataTerminateJobFlowsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3400,21 +3060,12 @@ func (s TerminateJobFlowsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TerminateJobFlowsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TerminateJobFlowsInput"} - if s.JobFlowIds == nil { - invalidParams.Add(request.NewErrParamRequired("JobFlowIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type TerminateJobFlowsOutput struct { + metadataTerminateJobFlowsOutput `json:"-" xml:"-"` } -type TerminateJobFlowsOutput struct { - _ struct{} `type:"structure"` +type metadataTerminateJobFlowsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3427,48 +3078,6 @@ func (s TerminateJobFlowsOutput) GoString() string { return s.String() } -// EBS volume specifications such as volume type, IOPS, and size(GiB) that will -// be requested for the EBS volume attached to an EC2 instance in the cluster. -type VolumeSpecification struct { - _ struct{} `type:"structure"` - - // The number of I/O operations per second (IOPS) that the volume supports. - Iops *int64 `type:"integer"` - - // The volume size, in gibibytes (GiB). This can be a number from 1 – 1024. - // If the volume type is EBS-optimized, the minimum value is 10. - SizeInGB *int64 `type:"integer" required:"true"` - - // The volume type. Volume types supported are gp2, io1, standard. - VolumeType *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s VolumeSpecification) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s VolumeSpecification) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *VolumeSpecification) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VolumeSpecification"} - if s.SizeInGB == nil { - invalidParams.Add(request.NewErrParamRequired("SizeInGB")) - } - if s.VolumeType == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - const ( // @enum ActionOnFailure ActionOnFailureTerminateJobFlow = "TERMINATE_JOB_FLOW" diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go index 201478bdb..17db48376 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface.go @@ -88,5 +88,3 @@ type EMRAPI interface { TerminateJobFlows(*emr.TerminateJobFlowsInput) (*emr.TerminateJobFlowsOutput, error) } - -var _ EMRAPI = (*emr.EMR)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface_test.go new file mode 100644 index 000000000..560497fe2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package emriface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/emr" + "github.com/aws/aws-sdk-go/service/emr/emriface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*emriface.EMRAPI)(nil), emr.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go index d19414034..34ae078fc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/emr" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleEMR_AddInstanceGroups() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.AddInstanceGroupsInput{ InstanceGroups: []*emr.InstanceGroupConfig{ // Required @@ -38,20 +37,6 @@ func ExampleEMR_AddInstanceGroups() { }, // More values... }, - EbsConfiguration: &emr.EbsConfiguration{ - EbsBlockDeviceConfigs: []*emr.EbsBlockDeviceConfig{ - { // Required - VolumeSpecification: &emr.VolumeSpecification{ // Required - SizeInGB: aws.Int64(1), // Required - VolumeType: aws.String("String"), // Required - Iops: aws.Int64(1), - }, - VolumesPerInstance: aws.Int64(1), - }, - // More values... - }, - EbsOptimized: aws.Bool(true), - }, Market: aws.String("MarketType"), Name: aws.String("XmlStringMaxLen256"), }, @@ -73,7 +58,7 @@ func ExampleEMR_AddInstanceGroups() { } func ExampleEMR_AddJobFlowSteps() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.AddJobFlowStepsInput{ JobFlowId: aws.String("XmlStringMaxLen256"), // Required @@ -114,7 +99,7 @@ func ExampleEMR_AddJobFlowSteps() { } func ExampleEMR_AddTags() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.AddTagsInput{ ResourceId: aws.String("ResourceId"), // Required @@ -140,7 +125,7 @@ func ExampleEMR_AddTags() { } func ExampleEMR_DescribeCluster() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.DescribeClusterInput{ ClusterId: aws.String("ClusterId"), // Required @@ -159,7 +144,7 @@ func ExampleEMR_DescribeCluster() { } func ExampleEMR_DescribeJobFlows() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.DescribeJobFlowsInput{ CreatedAfter: aws.Time(time.Now()), @@ -187,7 +172,7 @@ func ExampleEMR_DescribeJobFlows() { } func ExampleEMR_DescribeStep() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.DescribeStepInput{ ClusterId: aws.String("ClusterId"), // Required @@ -207,7 +192,7 @@ func ExampleEMR_DescribeStep() { } func ExampleEMR_ListBootstrapActions() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.ListBootstrapActionsInput{ ClusterId: aws.String("ClusterId"), // Required @@ -227,7 +212,7 @@ func ExampleEMR_ListBootstrapActions() { } func ExampleEMR_ListClusters() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.ListClustersInput{ ClusterStates: []*string{ @@ -252,7 +237,7 @@ func ExampleEMR_ListClusters() { } func ExampleEMR_ListInstanceGroups() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.ListInstanceGroupsInput{ ClusterId: aws.String("ClusterId"), // Required @@ -272,7 +257,7 @@ func ExampleEMR_ListInstanceGroups() { } func ExampleEMR_ListInstances() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.ListInstancesInput{ ClusterId: aws.String("ClusterId"), // Required @@ -281,10 +266,6 @@ func ExampleEMR_ListInstances() { aws.String("InstanceGroupType"), // Required // More values... }, - InstanceStates: []*string{ - aws.String("InstanceState"), // Required - // More values... - }, Marker: aws.String("Marker"), } resp, err := svc.ListInstances(params) @@ -301,7 +282,7 @@ func ExampleEMR_ListInstances() { } func ExampleEMR_ListSteps() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.ListStepsInput{ ClusterId: aws.String("ClusterId"), // Required @@ -329,7 +310,7 @@ func ExampleEMR_ListSteps() { } func ExampleEMR_ModifyInstanceGroups() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.ModifyInstanceGroupsInput{ InstanceGroups: []*emr.InstanceGroupModifyConfig{ @@ -340,20 +321,6 @@ func ExampleEMR_ModifyInstanceGroups() { // More values... }, InstanceCount: aws.Int64(1), - ShrinkPolicy: &emr.ShrinkPolicy{ - DecommissionTimeout: aws.Int64(1), - InstanceResizePolicy: &emr.InstanceResizePolicy{ - InstanceTerminationTimeout: aws.Int64(1), - InstancesToProtect: []*string{ - aws.String("InstanceId"), // Required - // More values... - }, - InstancesToTerminate: []*string{ - aws.String("InstanceId"), // Required - // More values... - }, - }, - }, }, // More values... }, @@ -372,7 +339,7 @@ func ExampleEMR_ModifyInstanceGroups() { } func ExampleEMR_RemoveTags() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.RemoveTagsInput{ ResourceId: aws.String("ResourceId"), // Required @@ -395,7 +362,7 @@ func ExampleEMR_RemoveTags() { } func ExampleEMR_RunJobFlow() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.RunJobFlowInput{ Instances: &emr.JobFlowInstancesConfig{ // Required @@ -432,20 +399,6 @@ func ExampleEMR_RunJobFlow() { }, // More values... }, - EbsConfiguration: &emr.EbsConfiguration{ - EbsBlockDeviceConfigs: []*emr.EbsBlockDeviceConfig{ - { // Required - VolumeSpecification: &emr.VolumeSpecification{ // Required - SizeInGB: aws.Int64(1), // Required - VolumeType: aws.String("String"), // Required - Iops: aws.Int64(1), - }, - VolumesPerInstance: aws.Int64(1), - }, - // More values... - }, - EbsOptimized: aws.Bool(true), - }, Market: aws.String("MarketType"), Name: aws.String("XmlStringMaxLen256"), }, @@ -456,9 +409,8 @@ func ExampleEMR_RunJobFlow() { Placement: &emr.PlacementType{ AvailabilityZone: aws.String("XmlString"), // Required }, - ServiceAccessSecurityGroup: aws.String("XmlStringMaxLen256"), - SlaveInstanceType: aws.String("InstanceType"), - TerminationProtected: aws.Bool(true), + SlaveInstanceType: aws.String("InstanceType"), + TerminationProtected: aws.Bool(true), }, Name: aws.String("XmlStringMaxLen256"), // Required AdditionalInfo: aws.String("XmlString"), @@ -567,7 +519,7 @@ func ExampleEMR_RunJobFlow() { } func ExampleEMR_SetTerminationProtection() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.SetTerminationProtectionInput{ JobFlowIds: []*string{ // Required @@ -590,7 +542,7 @@ func ExampleEMR_SetTerminationProtection() { } func ExampleEMR_SetVisibleToAllUsers() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.SetVisibleToAllUsersInput{ JobFlowIds: []*string{ // Required @@ -613,7 +565,7 @@ func ExampleEMR_SetVisibleToAllUsers() { } func ExampleEMR_TerminateJobFlows() { - svc := emr.New(session.New()) + svc := emr.New(nil) params := &emr.TerminateJobFlowsInput{ JobFlowIds: []*string{ // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/service.go b/vendor/github.com/aws/aws-sdk-go/service/emr/service.go index 7074979e2..768052476 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/service.go @@ -4,11 +4,12 @@ package emr import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Amazon Elastic MapReduce (Amazon EMR) is a web service that makes it easy @@ -16,66 +17,42 @@ import ( // combined with several AWS products to do tasks such as web indexing, data // mining, log file analysis, machine learning, scientific simulation, and data // warehousing. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type EMR struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "elasticmapreduce" - -// New creates a new instance of the EMR client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a EMR client from just a session. -// svc := emr.New(mySession) -// -// // Create a EMR client with additional configuration -// svc := emr.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *EMR { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *EMR { - svc := &EMR{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2009-03-31", - JSONVersion: "1.1", - TargetPrefix: "ElasticMapReduce", - }, - handlers, - ), +// New returns a new EMR client. +func New(config *aws.Config) *EMR { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "elasticmapreduce", + APIVersion: "2009-03-31", + JSONVersion: "1.1", + TargetPrefix: "ElasticMapReduce", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &EMR{service} } // newRequest creates a new request for a EMR operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/emr/waiters.go deleted file mode 100644 index 07c30c5cc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/emr/waiters.go +++ /dev/null @@ -1,89 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package emr - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *EMR) WaitUntilClusterRunning(input *DescribeClusterInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeCluster", - Delay: 30, - MaxAttempts: 60, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "Cluster.Status.State", - Expected: "RUNNING", - }, - { - State: "success", - Matcher: "path", - Argument: "Cluster.Status.State", - Expected: "WAITING", - }, - { - State: "failure", - Matcher: "path", - Argument: "Cluster.Status.State", - Expected: "TERMINATING", - }, - { - State: "failure", - Matcher: "path", - Argument: "Cluster.Status.State", - Expected: "TERMINATED", - }, - { - State: "failure", - Matcher: "path", - Argument: "Cluster.Status.State", - Expected: "TERMINATED_WITH_ERRORS", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *EMR) WaitUntilStepComplete(input *DescribeStepInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeStep", - Delay: 30, - MaxAttempts: 60, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "Step.Status.State", - Expected: "COMPLETED", - }, - { - State: "failure", - Matcher: "path", - Argument: "Step.Status.State", - Expected: "FAILED", - }, - { - State: "failure", - Matcher: "path", - Argument: "Step.Status.State", - Expected: "CANCELLED", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go deleted file mode 100644 index b25c7ebaa..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/api.go +++ /dev/null @@ -1,1985 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package firehose provides a client for Amazon Kinesis Firehose. -package firehose - -import ( - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" -) - -const opCreateDeliveryStream = "CreateDeliveryStream" - -// CreateDeliveryStreamRequest generates a request for the CreateDeliveryStream operation. -func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) (req *request.Request, output *CreateDeliveryStreamOutput) { - op := &request.Operation{ - Name: opCreateDeliveryStream, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateDeliveryStreamInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateDeliveryStreamOutput{} - req.Data = output - return -} - -// Creates a delivery stream. -// -// CreateDeliveryStream is an asynchronous operation that immediately returns. -// The initial status of the delivery stream is CREATING. After the delivery -// stream is created, its status is ACTIVE and it now accepts data. Attempts -// to send data to a delivery stream that is not in the ACTIVE state cause an -// exception. To check the state of a delivery stream, use DescribeDeliveryStream. -// -// The name of a delivery stream identifies it. You can't have two delivery -// streams with the same name in the same region. Two delivery streams in different -// AWS accounts or different regions in the same AWS account can have the same -// name. -// -// By default, you can create up to 20 delivery streams per region. -// -// A delivery stream can only be configured with a single destination, Amazon -// S3, Amazon Elasticsearch Service, or Amazon Redshift. For correct CreateDeliveryStream -// request syntax, specify only one destination configuration parameter: either -// S3DestinationConfiguration, ElasticsearchDestinationConfiguration, or RedshiftDestinationConfiguration. -// -// As part of S3DestinationConfiguration, optional values BufferingHints, EncryptionConfiguration, -// and CompressionFormat can be provided. By default, if no BufferingHints value -// is provided, Firehose buffers data up to 5 MB or for 5 minutes, whichever -// condition is satisfied first. Note that BufferingHints is a hint, so there -// are some cases where the service cannot adhere to these conditions strictly; -// for example, record boundaries are such that the size is a little over or -// under the configured buffering size. By default, no encryption is performed. -// We strongly recommend that you enable encryption to ensure secure data storage -// in Amazon S3. -// -// A few notes about RedshiftDestinationConfiguration: -// -// An Amazon Redshift destination requires an S3 bucket as intermediate location, -// as Firehose first delivers data to S3 and then uses COPY syntax to load data -// into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration -// parameter element. -// -// The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration -// because the Amazon Redshift COPY operation that reads from the S3 bucket -// doesn't support these compression formats. -// -// We strongly recommend that the username and password provided is used -// exclusively for Firehose purposes, and that the permissions for the account -// are restricted for Amazon Redshift INSERT permissions. -// -// Firehose assumes the IAM role that is configured as part of destinations. -// The IAM role should allow the Firehose principal to assume the role, and -// the role should have permissions that allows the service to deliver the data. -// For more information, see Amazon S3 Bucket Access (http://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3) -// in the Amazon Kinesis Firehose Developer Guide. -func (c *Firehose) CreateDeliveryStream(input *CreateDeliveryStreamInput) (*CreateDeliveryStreamOutput, error) { - req, out := c.CreateDeliveryStreamRequest(input) - err := req.Send() - return out, err -} - -const opDeleteDeliveryStream = "DeleteDeliveryStream" - -// DeleteDeliveryStreamRequest generates a request for the DeleteDeliveryStream operation. -func (c *Firehose) DeleteDeliveryStreamRequest(input *DeleteDeliveryStreamInput) (req *request.Request, output *DeleteDeliveryStreamOutput) { - op := &request.Operation{ - Name: opDeleteDeliveryStream, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteDeliveryStreamInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteDeliveryStreamOutput{} - req.Data = output - return -} - -// Deletes a delivery stream and its data. -// -// You can delete a delivery stream only if it is in ACTIVE or DELETING state, -// and not in the CREATING state. While the deletion request is in process, -// the delivery stream is in the DELETING state. -// -// To check the state of a delivery stream, use DescribeDeliveryStream. -// -// While the delivery stream is DELETING state, the service may continue to -// accept the records, but the service doesn't make any guarantees with respect -// to delivering the data. Therefore, as a best practice, you should first stop -// any applications that are sending records before deleting a delivery stream. -func (c *Firehose) DeleteDeliveryStream(input *DeleteDeliveryStreamInput) (*DeleteDeliveryStreamOutput, error) { - req, out := c.DeleteDeliveryStreamRequest(input) - err := req.Send() - return out, err -} - -const opDescribeDeliveryStream = "DescribeDeliveryStream" - -// DescribeDeliveryStreamRequest generates a request for the DescribeDeliveryStream operation. -func (c *Firehose) DescribeDeliveryStreamRequest(input *DescribeDeliveryStreamInput) (req *request.Request, output *DescribeDeliveryStreamOutput) { - op := &request.Operation{ - Name: opDescribeDeliveryStream, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeDeliveryStreamInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeDeliveryStreamOutput{} - req.Data = output - return -} - -// Describes the specified delivery stream and gets the status. For example, -// after your delivery stream is created, call DescribeDeliveryStream to see -// if the delivery stream is ACTIVE and therefore ready for data to be sent -// to it. -func (c *Firehose) DescribeDeliveryStream(input *DescribeDeliveryStreamInput) (*DescribeDeliveryStreamOutput, error) { - req, out := c.DescribeDeliveryStreamRequest(input) - err := req.Send() - return out, err -} - -const opListDeliveryStreams = "ListDeliveryStreams" - -// ListDeliveryStreamsRequest generates a request for the ListDeliveryStreams operation. -func (c *Firehose) ListDeliveryStreamsRequest(input *ListDeliveryStreamsInput) (req *request.Request, output *ListDeliveryStreamsOutput) { - op := &request.Operation{ - Name: opListDeliveryStreams, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListDeliveryStreamsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListDeliveryStreamsOutput{} - req.Data = output - return -} - -// Lists your delivery streams. -// -// The number of delivery streams might be too large to return using a single -// call to ListDeliveryStreams. You can limit the number of delivery streams -// returned, using the Limit parameter. To determine whether there are more -// delivery streams to list, check the value of HasMoreDeliveryStreams in the -// output. If there are more delivery streams to list, you can request them -// by specifying the name of the last delivery stream returned in the call in -// the ExclusiveStartDeliveryStreamName parameter of a subsequent call. -func (c *Firehose) ListDeliveryStreams(input *ListDeliveryStreamsInput) (*ListDeliveryStreamsOutput, error) { - req, out := c.ListDeliveryStreamsRequest(input) - err := req.Send() - return out, err -} - -const opPutRecord = "PutRecord" - -// PutRecordRequest generates a request for the PutRecord operation. -func (c *Firehose) PutRecordRequest(input *PutRecordInput) (req *request.Request, output *PutRecordOutput) { - op := &request.Operation{ - Name: opPutRecord, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutRecordInput{} - } - - req = c.newRequest(op, input, output) - output = &PutRecordOutput{} - req.Data = output - return -} - -// Writes a single data record into an Amazon Kinesis Firehose delivery stream. -// To write multiple data records into a delivery stream, use PutRecordBatch. -// Applications using these operations are referred to as producers. -// -// By default, each delivery stream can take in up to 2,000 transactions per -// second, 5,000 records per second, or 5 MB per second. Note that if you use -// PutRecord and PutRecordBatch, the limits are an aggregate across these two -// operations for each delivery stream. For more information about limits and -// how to request an increase, see Amazon Kinesis Firehose Limits (http://docs.aws.amazon.com/firehose/latest/dev/limits.html). -// -// You must specify the name of the delivery stream and the data record when -// using PutRecord. The data record consists of a data blob that can be up to -// 1,000 KB in size, and any kind of data, for example, a segment from a log -// file, geographic location data, web site clickstream data, etc. -// -// Firehose buffers records before delivering them to the destination. To disambiguate -// the data blobs at the destination, a common solution is to use delimiters -// in the data, such as a newline (\n) or some other character unique within -// the data. This allows the consumer application(s) to parse individual data -// items when reading the data from the destination. -// -// The PutRecord operation returns a RecordId, which is a unique string assigned -// to each record. Producer applications can use this ID for purposes such as -// auditability and investigation. -// -// If the PutRecord operation throws a ServiceUnavailableException, back off -// and retry. If the exception persists, it is possible that the throughput -// limits have been exceeded for the delivery stream. -// -// Data records sent to Firehose are stored for 24 hours from the time they -// are added to a delivery stream as it attempts to send the records to the -// destination. If the destination is unreachable for more than 24 hours, the -// data is no longer available. -func (c *Firehose) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) { - req, out := c.PutRecordRequest(input) - err := req.Send() - return out, err -} - -const opPutRecordBatch = "PutRecordBatch" - -// PutRecordBatchRequest generates a request for the PutRecordBatch operation. -func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *request.Request, output *PutRecordBatchOutput) { - op := &request.Operation{ - Name: opPutRecordBatch, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutRecordBatchInput{} - } - - req = c.newRequest(op, input, output) - output = &PutRecordBatchOutput{} - req.Data = output - return -} - -// Writes multiple data records into a delivery stream in a single call, which -// can achieve higher throughput per producer than when writing single records. -// To write single data records into a delivery stream, use PutRecord. Applications -// using these operations are referred to as producers. -// -// Each PutRecordBatch request supports up to 500 records. Each record in the -// request can be as large as 1,000 KB (before 64-bit encoding), up to a limit -// of 4 MB for the entire request. By default, each delivery stream can take -// in up to 2,000 transactions per second, 5,000 records per second, or 5 MB -// per second. Note that if you use PutRecord and PutRecordBatch, the limits -// are an aggregate across these two operations for each delivery stream. For -// more information about limits and how to request an increase, see Amazon -// Kinesis Firehose Limits (http://docs.aws.amazon.com/firehose/latest/dev/limits.html). -// -// You must specify the name of the delivery stream and the data record when -// using PutRecord. The data record consists of a data blob that can be up to -// 1,000 KB in size, and any kind of data, for example, a segment from a log -// file, geographic location data, web site clickstream data, and so on. -// -// Firehose buffers records before delivering them to the destination. To disambiguate -// the data blobs at the destination, a common solution is to use delimiters -// in the data, such as a newline (\n) or some other character unique within -// the data. This allows the consumer application(s) to parse individual data -// items when reading the data from the destination. -// -// The PutRecordBatch response includes a count of any failed records, FailedPutCount, -// and an array of responses, RequestResponses. The FailedPutCount value is -// a count of records that failed. Each entry in the RequestResponses array -// gives additional information of the processed record. Each entry in RequestResponses -// directly correlates with a record in the request array using the same ordering, -// from the top to the bottom of the request and response. RequestResponses -// always includes the same number of records as the request array. RequestResponses -// both successfully and unsuccessfully processed records. Firehose attempts -// to process all records in each PutRecordBatch request. A single record failure -// does not stop the processing of subsequent records. -// -// A successfully processed record includes a RecordId value, which is a unique -// value identified for the record. An unsuccessfully processed record includes -// ErrorCode and ErrorMessage values. ErrorCode reflects the type of error and -// is one of the following values: ServiceUnavailable or InternalFailure. ErrorMessage -// provides more detailed information about the error. -// -// If FailedPutCount is greater than 0 (zero), retry the request. A retry of -// the entire batch of records is possible; however, we strongly recommend that -// you inspect the entire response and resend only those records that failed -// processing. This minimizes duplicate records and also reduces the total bytes -// sent (and corresponding charges). -// -// If the PutRecordBatch operation throws a ServiceUnavailableException, back -// off and retry. If the exception persists, it is possible that the throughput -// limits have been exceeded for the delivery stream. -// -// Data records sent to Firehose are stored for 24 hours from the time they -// are added to a delivery stream as it attempts to send the records to the -// destination. If the destination is unreachable for more than 24 hours, the -// data is no longer available. -func (c *Firehose) PutRecordBatch(input *PutRecordBatchInput) (*PutRecordBatchOutput, error) { - req, out := c.PutRecordBatchRequest(input) - err := req.Send() - return out, err -} - -const opUpdateDestination = "UpdateDestination" - -// UpdateDestinationRequest generates a request for the UpdateDestination operation. -func (c *Firehose) UpdateDestinationRequest(input *UpdateDestinationInput) (req *request.Request, output *UpdateDestinationOutput) { - op := &request.Operation{ - Name: opUpdateDestination, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateDestinationInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateDestinationOutput{} - req.Data = output - return -} - -// Updates the specified destination of the specified delivery stream. Note: -// Switching between Elasticsearch and other services is not supported. For -// Elasticsearch destination, you can only update an existing Elasticsearch -// destination with this operation. -// -// This operation can be used to change the destination type (for example, -// to replace the Amazon S3 destination with Amazon Redshift) or change the -// parameters associated with a given destination (for example, to change the -// bucket name of the Amazon S3 destination). The update may not occur immediately. -// The target delivery stream remains active while the configurations are updated, -// so data writes to the delivery stream can continue during this process. The -// updated configurations are normally effective within a few minutes. -// -// If the destination type is the same, Firehose merges the configuration parameters -// specified in the UpdateDestination request with the destination configuration -// that already exists on the delivery stream. If any of the parameters are -// not specified in the update request, then the existing configuration parameters -// are retained. For example, in the Amazon S3 destination, if EncryptionConfiguration -// is not specified then the existing EncryptionConfiguration is maintained -// on the destination. -// -// If the destination type is not the same, for example, changing the destination -// from Amazon S3 to Amazon Redshift, Firehose does not merge any parameters. -// In this case, all parameters must be specified. -// -// Firehose uses the CurrentDeliveryStreamVersionId to avoid race conditions -// and conflicting merges. This is a required field in every request and the -// service only updates the configuration if the existing configuration matches -// the VersionId. After the update is applied successfully, the VersionId is -// updated, which can be retrieved with the DescribeDeliveryStream operation. -// The new VersionId should be uses to set CurrentDeliveryStreamVersionId in -// the next UpdateDestination operation. -func (c *Firehose) UpdateDestination(input *UpdateDestinationInput) (*UpdateDestinationOutput, error) { - req, out := c.UpdateDestinationRequest(input) - err := req.Send() - return out, err -} - -// Describes hints for the buffering to perform before delivering data to the -// destination. Please note that these options are treated as hints, and therefore -// Firehose may choose to use different values when it is optimal. -type BufferingHints struct { - _ struct{} `type:"structure"` - - // Buffer incoming data for the specified period of time, in seconds, before - // delivering it to the destination. The default value is 300. - IntervalInSeconds *int64 `min:"60" type:"integer"` - - // Buffer incoming data to the specified size, in MBs, before delivering it - // to the destination. The default value is 5. - // - // We recommend setting SizeInMBs to a value greater than the amount of data - // you typically ingest into the delivery stream in 10 seconds. For example, - // if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. - SizeInMBs *int64 `min:"1" type:"integer"` -} - -// String returns the string representation -func (s BufferingHints) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BufferingHints) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *BufferingHints) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BufferingHints"} - if s.IntervalInSeconds != nil && *s.IntervalInSeconds < 60 { - invalidParams.Add(request.NewErrParamMinValue("IntervalInSeconds", 60)) - } - if s.SizeInMBs != nil && *s.SizeInMBs < 1 { - invalidParams.Add(request.NewErrParamMinValue("SizeInMBs", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes CloudWatch logging options for your delivery stream. -type CloudWatchLoggingOptions struct { - _ struct{} `type:"structure"` - - // Enables or disables CloudWatch logging. - Enabled *bool `type:"boolean"` - - // The CloudWatch group name for logging. This value is required if Enabled - // is true. - LogGroupName *string `type:"string"` - - // The CloudWatch log stream name for logging. This value is required if Enabled - // is true. - LogStreamName *string `type:"string"` -} - -// String returns the string representation -func (s CloudWatchLoggingOptions) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CloudWatchLoggingOptions) GoString() string { - return s.String() -} - -// Describes a COPY command for Amazon Redshift. -type CopyCommand struct { - _ struct{} `type:"structure"` - - // Optional parameters to use with the Amazon Redshift COPY command. For more - // information, see the "Optional Parameters" section of Amazon Redshift COPY - // command (http://docs.aws.amazon.com/redshift/latest/dg/r_COPY.html). Some - // possible examples that would apply to Firehose are as follows. - // - // delimiter '\t' lzop; - fields are delimited with "\t" (TAB character) and - // compressed using lzop. - // - // delimiter '| - fields are delimited with "|" (this is the default delimiter). - // - // delimiter '|' escape - the delimiter should be escaped. - // - // fixedwidth 'venueid:3,venuename:25,venuecity:12,venuestate:2,venueseats:6' - // - fields are fixed width in the source, with each width specified after every - // column in the table. - // - // JSON 's3://mybucket/jsonpaths.txt' - data is in JSON format, and the path - // specified is the format of the data. - // - // For more examples, see Amazon Redshift COPY command examples (http://docs.aws.amazon.com/redshift/latest/dg/r_COPY_command_examples.html). - CopyOptions *string `type:"string"` - - // A comma-separated list of column names. - DataTableColumns *string `type:"string"` - - // The name of the target table. The table must already exist in the database. - DataTableName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CopyCommand) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CopyCommand) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CopyCommand) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CopyCommand"} - if s.DataTableName == nil { - invalidParams.Add(request.NewErrParamRequired("DataTableName")) - } - if s.DataTableName != nil && len(*s.DataTableName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataTableName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the parameters for CreateDeliveryStream. -type CreateDeliveryStreamInput struct { - _ struct{} `type:"structure"` - - // The name of the delivery stream. - DeliveryStreamName *string `min:"1" type:"string" required:"true"` - - // The destination in Amazon ES. This value cannot be specified if Amazon S3 - // or Amazon Redshift is the desired destination (see restrictions listed above). - ElasticsearchDestinationConfiguration *ElasticsearchDestinationConfiguration `type:"structure"` - - // The destination in Amazon Redshift. This value cannot be specified if Amazon - // S3 or Amazon Elasticsearch is the desired destination (see restrictions listed - // above). - RedshiftDestinationConfiguration *RedshiftDestinationConfiguration `type:"structure"` - - // The destination in Amazon S3. This value must be specified if ElasticsearchDestinationConfiguration - // or RedshiftDestinationConfiguration is specified (see restrictions listed - // above). - S3DestinationConfiguration *S3DestinationConfiguration `type:"structure"` -} - -// String returns the string representation -func (s CreateDeliveryStreamInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateDeliveryStreamInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDeliveryStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDeliveryStreamInput"} - if s.DeliveryStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName")) - } - if s.DeliveryStreamName != nil && len(*s.DeliveryStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeliveryStreamName", 1)) - } - if s.ElasticsearchDestinationConfiguration != nil { - if err := s.ElasticsearchDestinationConfiguration.Validate(); err != nil { - invalidParams.AddNested("ElasticsearchDestinationConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.RedshiftDestinationConfiguration != nil { - if err := s.RedshiftDestinationConfiguration.Validate(); err != nil { - invalidParams.AddNested("RedshiftDestinationConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.S3DestinationConfiguration != nil { - if err := s.S3DestinationConfiguration.Validate(); err != nil { - invalidParams.AddNested("S3DestinationConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of CreateDeliveryStream. -type CreateDeliveryStreamOutput struct { - _ struct{} `type:"structure"` - - // The ARN of the delivery stream. - DeliveryStreamARN *string `type:"string"` -} - -// String returns the string representation -func (s CreateDeliveryStreamOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateDeliveryStreamOutput) GoString() string { - return s.String() -} - -// Contains the parameters for DeleteDeliveryStream. -type DeleteDeliveryStreamInput struct { - _ struct{} `type:"structure"` - - // The name of the delivery stream. - DeliveryStreamName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteDeliveryStreamInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteDeliveryStreamInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDeliveryStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDeliveryStreamInput"} - if s.DeliveryStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName")) - } - if s.DeliveryStreamName != nil && len(*s.DeliveryStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeliveryStreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DeleteDeliveryStream. -type DeleteDeliveryStreamOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteDeliveryStreamOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteDeliveryStreamOutput) GoString() string { - return s.String() -} - -// Contains information about a delivery stream. -type DeliveryStreamDescription struct { - _ struct{} `type:"structure"` - - // The date and time that the delivery stream was created. - CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The Amazon Resource Name (ARN) of the delivery stream. - DeliveryStreamARN *string `type:"string" required:"true"` - - // The name of the delivery stream. - DeliveryStreamName *string `min:"1" type:"string" required:"true"` - - // The status of the delivery stream. - DeliveryStreamStatus *string `type:"string" required:"true" enum:"DeliveryStreamStatus"` - - // The destinations. - Destinations []*DestinationDescription `type:"list" required:"true"` - - // Indicates whether there are more destinations available to list. - HasMoreDestinations *bool `type:"boolean" required:"true"` - - // The date and time that the delivery stream was last updated. - LastUpdateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Used when calling the UpdateDestination operation. Each time the destination - // is updated for the delivery stream, the VersionId is changed, and the current - // VersionId is required when updating the destination. This is so that the - // service knows it is applying the changes to the correct version of the delivery - // stream. - VersionId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeliveryStreamDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeliveryStreamDescription) GoString() string { - return s.String() -} - -// Contains the parameters for DescribeDeliveryStream. -type DescribeDeliveryStreamInput struct { - _ struct{} `type:"structure"` - - // The name of the delivery stream. - DeliveryStreamName *string `min:"1" type:"string" required:"true"` - - // Specifies the destination ID to start returning the destination information. - // Currently Firehose supports one destination per delivery stream. - ExclusiveStartDestinationId *string `min:"1" type:"string"` - - // The limit on the number of destinations to return. Currently, you can have - // one destination per delivery stream. - Limit *int64 `min:"1" type:"integer"` -} - -// String returns the string representation -func (s DescribeDeliveryStreamInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDeliveryStreamInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDeliveryStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDeliveryStreamInput"} - if s.DeliveryStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName")) - } - if s.DeliveryStreamName != nil && len(*s.DeliveryStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeliveryStreamName", 1)) - } - if s.ExclusiveStartDestinationId != nil && len(*s.ExclusiveStartDestinationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExclusiveStartDestinationId", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of DescribeDeliveryStream. -type DescribeDeliveryStreamOutput struct { - _ struct{} `type:"structure"` - - // Information about the delivery stream. - DeliveryStreamDescription *DeliveryStreamDescription `type:"structure" required:"true"` -} - -// String returns the string representation -func (s DescribeDeliveryStreamOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDeliveryStreamOutput) GoString() string { - return s.String() -} - -// Describes the destination for a delivery stream. -type DestinationDescription struct { - _ struct{} `type:"structure"` - - // The ID of the destination. - DestinationId *string `min:"1" type:"string" required:"true"` - - // The destination in Amazon ES. - ElasticsearchDestinationDescription *ElasticsearchDestinationDescription `type:"structure"` - - // The destination in Amazon Redshift. - RedshiftDestinationDescription *RedshiftDestinationDescription `type:"structure"` - - // The Amazon S3 destination. - S3DestinationDescription *S3DestinationDescription `type:"structure"` -} - -// String returns the string representation -func (s DestinationDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DestinationDescription) GoString() string { - return s.String() -} - -// Describes the buffering to perform before delivering data to the Amazon ES -// destination. -type ElasticsearchBufferingHints struct { - _ struct{} `type:"structure"` - - // Buffer incoming data for the specified period of time, in seconds, before - // delivering it to the destination. The default value is 300 (5 minutes). - IntervalInSeconds *int64 `min:"60" type:"integer"` - - // Buffer incoming data to the specified size, in MBs, before delivering it - // to the destination. The default value is 5. - // - // We recommend setting SizeInMBs to a value greater than the amount of data - // you typically ingest into the delivery stream in 10 seconds. For example, - // if you typically ingest data at 1 MB/sec, set SizeInMBs to be 10 MB or higher. - SizeInMBs *int64 `min:"1" type:"integer"` -} - -// String returns the string representation -func (s ElasticsearchBufferingHints) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticsearchBufferingHints) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ElasticsearchBufferingHints) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ElasticsearchBufferingHints"} - if s.IntervalInSeconds != nil && *s.IntervalInSeconds < 60 { - invalidParams.Add(request.NewErrParamMinValue("IntervalInSeconds", 60)) - } - if s.SizeInMBs != nil && *s.SizeInMBs < 1 { - invalidParams.Add(request.NewErrParamMinValue("SizeInMBs", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes the configuration of a destination in Amazon ES. -type ElasticsearchDestinationConfiguration struct { - _ struct{} `type:"structure"` - - // Buffering options. If no value is specified, ElasticsearchBufferingHints - // object default values are used. - BufferingHints *ElasticsearchBufferingHints `type:"structure"` - - // Describes CloudWatch logging options for your delivery stream. - CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - - // The ARN of the Amazon ES domain. The IAM role must have permission for DescribeElasticsearchDomain, - // DescribeElasticsearchDomains , and DescribeElasticsearchDomainConfig after - // assuming RoleARN. - DomainARN *string `min:"1" type:"string" required:"true"` - - // The Elasticsearch index name. - IndexName *string `min:"1" type:"string" required:"true"` - - // The Elasticsearch index rotation period. Index rotation appends a timestamp - // to the IndexName to facilitate expiration of old data. For more information, - // see Index Rotation for Amazon Elasticsearch Service Destination (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html#es-index-rotation). - // Default value is OneDay. - IndexRotationPeriod *string `type:"string" enum:"ElasticsearchIndexRotationPeriod"` - - // Configures retry behavior in the event that Firehose is unable to deliver - // documents to Amazon ES. Default value is 300 (5 minutes). - RetryOptions *ElasticsearchRetryOptions `type:"structure"` - - // The ARN of the IAM role to be assumed by Firehose for calling the Amazon - // ES Configuration API and for indexing documents. For more information, see - // Amazon S3 Bucket Access (http://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3). - RoleARN *string `min:"1" type:"string" required:"true"` - - // Defines how documents should be delivered to Amazon S3. When set to FailedDocumentsOnly, - // Firehose writes any documents that could not be indexed to the configured - // Amazon S3 destination, with elasticsearch-failed/ appended to the key prefix. - // When set to AllDocuments, Firehose delivers all incoming records to Amazon - // S3, and also writes failed documents with elasticsearch-failed/ appended - // to the prefix. For more information, see Amazon S3 Backup for Amazon Elasticsearch - // Service Destination (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html#es-s3-backup). - // Default value is FailedDocumentsOnly. - S3BackupMode *string `type:"string" enum:"ElasticsearchS3BackupMode"` - - // Describes the configuration of a destination in Amazon S3. - S3Configuration *S3DestinationConfiguration `type:"structure" required:"true"` - - // The Elasticsearch type name. - TypeName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ElasticsearchDestinationConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticsearchDestinationConfiguration) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ElasticsearchDestinationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ElasticsearchDestinationConfiguration"} - if s.DomainARN == nil { - invalidParams.Add(request.NewErrParamRequired("DomainARN")) - } - if s.DomainARN != nil && len(*s.DomainARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DomainARN", 1)) - } - if s.IndexName == nil { - invalidParams.Add(request.NewErrParamRequired("IndexName")) - } - if s.IndexName != nil && len(*s.IndexName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IndexName", 1)) - } - if s.RoleARN == nil { - invalidParams.Add(request.NewErrParamRequired("RoleARN")) - } - if s.RoleARN != nil && len(*s.RoleARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) - } - if s.S3Configuration == nil { - invalidParams.Add(request.NewErrParamRequired("S3Configuration")) - } - if s.TypeName == nil { - invalidParams.Add(request.NewErrParamRequired("TypeName")) - } - if s.TypeName != nil && len(*s.TypeName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) - } - if s.BufferingHints != nil { - if err := s.BufferingHints.Validate(); err != nil { - invalidParams.AddNested("BufferingHints", err.(request.ErrInvalidParams)) - } - } - if s.S3Configuration != nil { - if err := s.S3Configuration.Validate(); err != nil { - invalidParams.AddNested("S3Configuration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The destination description in Amazon ES. -type ElasticsearchDestinationDescription struct { - _ struct{} `type:"structure"` - - // Buffering options. - BufferingHints *ElasticsearchBufferingHints `type:"structure"` - - // CloudWatch logging options. - CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - - // The ARN of the Amazon ES domain. - DomainARN *string `min:"1" type:"string"` - - // The Elasticsearch index name. - IndexName *string `min:"1" type:"string"` - - // The Elasticsearch index rotation period - IndexRotationPeriod *string `type:"string" enum:"ElasticsearchIndexRotationPeriod"` - - // Elasticsearch retry options. - RetryOptions *ElasticsearchRetryOptions `type:"structure"` - - // The ARN of the AWS credentials. - RoleARN *string `min:"1" type:"string"` - - // Amazon S3 backup mode. - S3BackupMode *string `type:"string" enum:"ElasticsearchS3BackupMode"` - - // Describes a destination in Amazon S3. - S3DestinationDescription *S3DestinationDescription `type:"structure"` - - // The Elasticsearch type name. - TypeName *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ElasticsearchDestinationDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticsearchDestinationDescription) GoString() string { - return s.String() -} - -// Describes an update for a destination in Amazon ES. -type ElasticsearchDestinationUpdate struct { - _ struct{} `type:"structure"` - - // Buffering options. If no value is specified, ElasticsearchBufferingHints - // object default values are used. - BufferingHints *ElasticsearchBufferingHints `type:"structure"` - - // Describes CloudWatch logging options for your delivery stream. - CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - - // The ARN of the Amazon ES domain. The IAM role must have permission for DescribeElasticsearchDomain, - // DescribeElasticsearchDomains , and DescribeElasticsearchDomainConfig after - // assuming RoleARN. - DomainARN *string `min:"1" type:"string"` - - // The Elasticsearch index name. - IndexName *string `min:"1" type:"string"` - - // The Elasticsearch index rotation period. Index rotation appends a timestamp - // to the IndexName to facilitate the expiration of old data. For more information, - // see Index Rotation for Amazon Elasticsearch Service Destination (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html#es-index-rotation). - // Default value is OneDay. - IndexRotationPeriod *string `type:"string" enum:"ElasticsearchIndexRotationPeriod"` - - // Configures retry behavior in the event that Firehose is unable to deliver - // documents to Amazon ES. Default value is 300 (5 minutes). - RetryOptions *ElasticsearchRetryOptions `type:"structure"` - - // The ARN of the IAM role to be assumed by Firehose for calling the Amazon - // ES Configuration API and for indexing documents. For more information, see - // Amazon S3 Bucket Access (http://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3). - RoleARN *string `min:"1" type:"string"` - - // Describes an update for a destination in Amazon S3. - S3Update *S3DestinationUpdate `type:"structure"` - - // The Elasticsearch type name. - TypeName *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ElasticsearchDestinationUpdate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticsearchDestinationUpdate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ElasticsearchDestinationUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ElasticsearchDestinationUpdate"} - if s.DomainARN != nil && len(*s.DomainARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DomainARN", 1)) - } - if s.IndexName != nil && len(*s.IndexName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IndexName", 1)) - } - if s.RoleARN != nil && len(*s.RoleARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) - } - if s.TypeName != nil && len(*s.TypeName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) - } - if s.BufferingHints != nil { - if err := s.BufferingHints.Validate(); err != nil { - invalidParams.AddNested("BufferingHints", err.(request.ErrInvalidParams)) - } - } - if s.S3Update != nil { - if err := s.S3Update.Validate(); err != nil { - invalidParams.AddNested("S3Update", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Configures retry behavior in the event that Firehose is unable to deliver -// documents to Amazon ES. -type ElasticsearchRetryOptions struct { - _ struct{} `type:"structure"` - - // After an initial failure to deliver to Amazon ES, the total amount of time - // during which Firehose re-attempts delivery (including the first attempt). - // After this time has elapsed, the failed documents are written to Amazon S3. - // Default value is 300 seconds (5 minutes). A value of 0 (zero) results in - // no retries. - DurationInSeconds *int64 `type:"integer"` -} - -// String returns the string representation -func (s ElasticsearchRetryOptions) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticsearchRetryOptions) GoString() string { - return s.String() -} - -// Describes the encryption for a destination in Amazon S3. -type EncryptionConfiguration struct { - _ struct{} `type:"structure"` - - // The encryption key. - KMSEncryptionConfig *KMSEncryptionConfig `type:"structure"` - - // Specifically override existing encryption information to ensure no encryption - // is used. - NoEncryptionConfig *string `type:"string" enum:"NoEncryptionConfig"` -} - -// String returns the string representation -func (s EncryptionConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EncryptionConfiguration) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *EncryptionConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EncryptionConfiguration"} - if s.KMSEncryptionConfig != nil { - if err := s.KMSEncryptionConfig.Validate(); err != nil { - invalidParams.AddNested("KMSEncryptionConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes an encryption key for a destination in Amazon S3. -type KMSEncryptionConfig struct { - _ struct{} `type:"structure"` - - // The ARN of the encryption key. Must belong to the same region as the destination - // Amazon S3 bucket. - AWSKMSKeyARN *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s KMSEncryptionConfig) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s KMSEncryptionConfig) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *KMSEncryptionConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "KMSEncryptionConfig"} - if s.AWSKMSKeyARN == nil { - invalidParams.Add(request.NewErrParamRequired("AWSKMSKeyARN")) - } - if s.AWSKMSKeyARN != nil && len(*s.AWSKMSKeyARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AWSKMSKeyARN", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the parameters for ListDeliveryStreams. -type ListDeliveryStreamsInput struct { - _ struct{} `type:"structure"` - - // The name of the delivery stream to start the list with. - ExclusiveStartDeliveryStreamName *string `min:"1" type:"string"` - - // The maximum number of delivery streams to list. - Limit *int64 `min:"1" type:"integer"` -} - -// String returns the string representation -func (s ListDeliveryStreamsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListDeliveryStreamsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDeliveryStreamsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDeliveryStreamsInput"} - if s.ExclusiveStartDeliveryStreamName != nil && len(*s.ExclusiveStartDeliveryStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExclusiveStartDeliveryStreamName", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of ListDeliveryStreams. -type ListDeliveryStreamsOutput struct { - _ struct{} `type:"structure"` - - // The names of the delivery streams. - DeliveryStreamNames []*string `type:"list" required:"true"` - - // Indicates whether there are more delivery streams available to list. - HasMoreDeliveryStreams *bool `type:"boolean" required:"true"` -} - -// String returns the string representation -func (s ListDeliveryStreamsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListDeliveryStreamsOutput) GoString() string { - return s.String() -} - -// Contains the parameters for PutRecordBatch. -type PutRecordBatchInput struct { - _ struct{} `type:"structure"` - - // The name of the delivery stream. - DeliveryStreamName *string `min:"1" type:"string" required:"true"` - - // One or more records. - Records []*Record `min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s PutRecordBatchInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutRecordBatchInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRecordBatchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRecordBatchInput"} - if s.DeliveryStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName")) - } - if s.DeliveryStreamName != nil && len(*s.DeliveryStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeliveryStreamName", 1)) - } - if s.Records == nil { - invalidParams.Add(request.NewErrParamRequired("Records")) - } - if s.Records != nil && len(s.Records) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Records", 1)) - } - if s.Records != nil { - for i, v := range s.Records { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Records", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of PutRecordBatch. -type PutRecordBatchOutput struct { - _ struct{} `type:"structure"` - - // The number of unsuccessfully written records. - FailedPutCount *int64 `type:"integer" required:"true"` - - // The results for the individual records. The index of each element matches - // the same index in which records were sent. - RequestResponses []*PutRecordBatchResponseEntry `min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s PutRecordBatchOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutRecordBatchOutput) GoString() string { - return s.String() -} - -// Contains the result for an individual record from a PutRecordBatch request. -// If the record is successfully added to your delivery stream, it receives -// a record ID. If the record fails to be added to your delivery stream, the -// result includes an error code and an error message. -type PutRecordBatchResponseEntry struct { - _ struct{} `type:"structure"` - - // The error code for an individual record result. - ErrorCode *string `type:"string"` - - // The error message for an individual record result. - ErrorMessage *string `type:"string"` - - // The ID of the record. - RecordId *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s PutRecordBatchResponseEntry) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutRecordBatchResponseEntry) GoString() string { - return s.String() -} - -// Contains the parameters for PutRecord. -type PutRecordInput struct { - _ struct{} `type:"structure"` - - // The name of the delivery stream. - DeliveryStreamName *string `min:"1" type:"string" required:"true"` - - // The record. - Record *Record `type:"structure" required:"true"` -} - -// String returns the string representation -func (s PutRecordInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutRecordInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRecordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRecordInput"} - if s.DeliveryStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName")) - } - if s.DeliveryStreamName != nil && len(*s.DeliveryStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeliveryStreamName", 1)) - } - if s.Record == nil { - invalidParams.Add(request.NewErrParamRequired("Record")) - } - if s.Record != nil { - if err := s.Record.Validate(); err != nil { - invalidParams.AddNested("Record", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of PutRecord. -type PutRecordOutput struct { - _ struct{} `type:"structure"` - - // The ID of the record. - RecordId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s PutRecordOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutRecordOutput) GoString() string { - return s.String() -} - -// The unit of data in a delivery stream. -type Record struct { - _ struct{} `type:"structure"` - - // The data blob, which is base64-encoded when the blob is serialized. The maximum - // size of the data blob, before base64-encoding, is 1,000 KB. - // - // Data is automatically base64 encoded/decoded by the SDK. - Data []byte `type:"blob" required:"true"` -} - -// String returns the string representation -func (s Record) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Record) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Record) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Record"} - if s.Data == nil { - invalidParams.Add(request.NewErrParamRequired("Data")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes the configuration of a destination in Amazon Redshift. -type RedshiftDestinationConfiguration struct { - _ struct{} `type:"structure"` - - // Describes CloudWatch logging options for your delivery stream. - CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - - // The database connection string. - ClusterJDBCURL *string `min:"1" type:"string" required:"true"` - - // The COPY command. - CopyCommand *CopyCommand `type:"structure" required:"true"` - - // The user password. - Password *string `min:"6" type:"string" required:"true"` - - // Configures retry behavior in the event that Firehose is unable to deliver - // documents to Amazon Redshift. Default value is 3600 (60 minutes). - RetryOptions *RedshiftRetryOptions `type:"structure"` - - // The ARN of the AWS credentials. - RoleARN *string `min:"1" type:"string" required:"true"` - - // The S3 configuration for the intermediate location from which Amazon Redshift - // obtains data. Restrictions are described in the topic for CreateDeliveryStream. - // - // The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration - // because the Amazon Redshift COPY operation that reads from the S3 bucket - // doesn't support these compression formats. - S3Configuration *S3DestinationConfiguration `type:"structure" required:"true"` - - // The name of the user. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s RedshiftDestinationConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RedshiftDestinationConfiguration) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RedshiftDestinationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RedshiftDestinationConfiguration"} - if s.ClusterJDBCURL == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterJDBCURL")) - } - if s.ClusterJDBCURL != nil && len(*s.ClusterJDBCURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClusterJDBCURL", 1)) - } - if s.CopyCommand == nil { - invalidParams.Add(request.NewErrParamRequired("CopyCommand")) - } - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Password != nil && len(*s.Password) < 6 { - invalidParams.Add(request.NewErrParamMinLen("Password", 6)) - } - if s.RoleARN == nil { - invalidParams.Add(request.NewErrParamRequired("RoleARN")) - } - if s.RoleARN != nil && len(*s.RoleARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) - } - if s.S3Configuration == nil { - invalidParams.Add(request.NewErrParamRequired("S3Configuration")) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - if s.CopyCommand != nil { - if err := s.CopyCommand.Validate(); err != nil { - invalidParams.AddNested("CopyCommand", err.(request.ErrInvalidParams)) - } - } - if s.S3Configuration != nil { - if err := s.S3Configuration.Validate(); err != nil { - invalidParams.AddNested("S3Configuration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes a destination in Amazon Redshift. -type RedshiftDestinationDescription struct { - _ struct{} `type:"structure"` - - // Describes CloudWatch logging options for your delivery stream. - CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - - // The database connection string. - ClusterJDBCURL *string `min:"1" type:"string" required:"true"` - - // The COPY command. - CopyCommand *CopyCommand `type:"structure" required:"true"` - - // Configures retry behavior in the event that Firehose is unable to deliver - // documents to Amazon Redshift. Default value is 3600 (60 minutes). - RetryOptions *RedshiftRetryOptions `type:"structure"` - - // The ARN of the AWS credentials. - RoleARN *string `min:"1" type:"string" required:"true"` - - // The Amazon S3 destination. - S3DestinationDescription *S3DestinationDescription `type:"structure" required:"true"` - - // The name of the user. - Username *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s RedshiftDestinationDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RedshiftDestinationDescription) GoString() string { - return s.String() -} - -// Describes an update for a destination in Amazon Redshift. -type RedshiftDestinationUpdate struct { - _ struct{} `type:"structure"` - - // Describes CloudWatch logging options for your delivery stream. - CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - - // The database connection string. - ClusterJDBCURL *string `min:"1" type:"string"` - - // The COPY command. - CopyCommand *CopyCommand `type:"structure"` - - // The user password. - Password *string `min:"6" type:"string"` - - // Configures retry behavior in the event that Firehose is unable to deliver - // documents to Amazon Redshift. Default value is 3600 (60 minutes). - RetryOptions *RedshiftRetryOptions `type:"structure"` - - // The ARN of the AWS credentials. - RoleARN *string `min:"1" type:"string"` - - // The Amazon S3 destination. - // - // The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationUpdate.S3Update - // because the Amazon Redshift COPY operation that reads from the S3 bucket - // doesn't support these compression formats. - S3Update *S3DestinationUpdate `type:"structure"` - - // The name of the user. - Username *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s RedshiftDestinationUpdate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RedshiftDestinationUpdate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RedshiftDestinationUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RedshiftDestinationUpdate"} - if s.ClusterJDBCURL != nil && len(*s.ClusterJDBCURL) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClusterJDBCURL", 1)) - } - if s.Password != nil && len(*s.Password) < 6 { - invalidParams.Add(request.NewErrParamMinLen("Password", 6)) - } - if s.RoleARN != nil && len(*s.RoleARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - if s.CopyCommand != nil { - if err := s.CopyCommand.Validate(); err != nil { - invalidParams.AddNested("CopyCommand", err.(request.ErrInvalidParams)) - } - } - if s.S3Update != nil { - if err := s.S3Update.Validate(); err != nil { - invalidParams.AddNested("S3Update", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Configures retry behavior in the event that Firehose is unable to deliver -// documents to Amazon Redshift. -type RedshiftRetryOptions struct { - _ struct{} `type:"structure"` - - // The length of time during which Firehose retries delivery after a failure, - // starting from the initial request and including the first attempt. The default - // value is 3600 seconds (60 minutes). Firehose does not retry if the value - // of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer - // than the current value. - DurationInSeconds *int64 `type:"integer"` -} - -// String returns the string representation -func (s RedshiftRetryOptions) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RedshiftRetryOptions) GoString() string { - return s.String() -} - -// Describes the configuration of a destination in Amazon S3. -type S3DestinationConfiguration struct { - _ struct{} `type:"structure"` - - // The ARN of the S3 bucket. - BucketARN *string `min:"1" type:"string" required:"true"` - - // The buffering option. If no value is specified, BufferingHints object default - // values are used. - BufferingHints *BufferingHints `type:"structure"` - - // Describes CloudWatch logging options for your delivery stream. - CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - - // The compression format. If no value is specified, the default is UNCOMPRESSED. - // - // The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift - // destinations because they are not supported by the Amazon Redshift COPY operation - // that reads from the S3 bucket. - CompressionFormat *string `type:"string" enum:"CompressionFormat"` - - // The encryption configuration. If no value is specified, the default is no - // encryption. - EncryptionConfiguration *EncryptionConfiguration `type:"structure"` - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered - // S3 files. You can specify an extra prefix to be added in front of the time - // format prefix. Note that if the prefix ends with a slash, it appears as a - // folder in the S3 bucket. For more information, see Amazon S3 Object Name - // Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html) - // in the Amazon Kinesis Firehose Developer Guide (http://docs.aws.amazon.com/firehose/latest/dev/). - Prefix *string `type:"string"` - - // The ARN of the AWS credentials. - RoleARN *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s S3DestinationConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s S3DestinationConfiguration) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *S3DestinationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3DestinationConfiguration"} - if s.BucketARN == nil { - invalidParams.Add(request.NewErrParamRequired("BucketARN")) - } - if s.BucketARN != nil && len(*s.BucketARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BucketARN", 1)) - } - if s.RoleARN == nil { - invalidParams.Add(request.NewErrParamRequired("RoleARN")) - } - if s.RoleARN != nil && len(*s.RoleARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) - } - if s.BufferingHints != nil { - if err := s.BufferingHints.Validate(); err != nil { - invalidParams.AddNested("BufferingHints", err.(request.ErrInvalidParams)) - } - } - if s.EncryptionConfiguration != nil { - if err := s.EncryptionConfiguration.Validate(); err != nil { - invalidParams.AddNested("EncryptionConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes a destination in Amazon S3. -type S3DestinationDescription struct { - _ struct{} `type:"structure"` - - // The ARN of the S3 bucket. - BucketARN *string `min:"1" type:"string" required:"true"` - - // The buffering option. If no value is specified, BufferingHints object default - // values are used. - BufferingHints *BufferingHints `type:"structure" required:"true"` - - // Describes CloudWatch logging options for your delivery stream. - CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - - // The compression format. If no value is specified, the default is NOCOMPRESSION. - CompressionFormat *string `type:"string" required:"true" enum:"CompressionFormat"` - - // The encryption configuration. If no value is specified, the default is no - // encryption. - EncryptionConfiguration *EncryptionConfiguration `type:"structure" required:"true"` - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered - // S3 files. You can specify an extra prefix to be added in front of the time - // format prefix. Note that if the prefix ends with a slash, it appears as a - // folder in the S3 bucket. For more information, see Amazon S3 Object Name - // Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html) - // in the Amazon Kinesis Firehose Developer Guide (http://docs.aws.amazon.com/firehose/latest/dev/). - Prefix *string `type:"string"` - - // The ARN of the AWS credentials. - RoleARN *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s S3DestinationDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s S3DestinationDescription) GoString() string { - return s.String() -} - -// Describes an update for a destination in Amazon S3. -type S3DestinationUpdate struct { - _ struct{} `type:"structure"` - - // The ARN of the S3 bucket. - BucketARN *string `min:"1" type:"string"` - - // The buffering option. If no value is specified, BufferingHints object default - // values are used. - BufferingHints *BufferingHints `type:"structure"` - - // Describes CloudWatch logging options for your delivery stream. - CloudWatchLoggingOptions *CloudWatchLoggingOptions `type:"structure"` - - // The compression format. If no value is specified, the default is NOCOMPRESSION. - // - // The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift - // destinations because they are not supported by the Amazon Redshift COPY operation - // that reads from the S3 bucket. - CompressionFormat *string `type:"string" enum:"CompressionFormat"` - - // The encryption configuration. If no value is specified, the default is no - // encryption. - EncryptionConfiguration *EncryptionConfiguration `type:"structure"` - - // The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered - // S3 files. You can specify an extra prefix to be added in front of the time - // format prefix. Note that if the prefix ends with a slash, it appears as a - // folder in the S3 bucket. For more information, see Amazon S3 Object Name - // Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html) - // in the Amazon Kinesis Firehose Developer Guide (http://docs.aws.amazon.com/firehose/latest/dev/). - Prefix *string `type:"string"` - - // The ARN of the AWS credentials. - RoleARN *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s S3DestinationUpdate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s S3DestinationUpdate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *S3DestinationUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3DestinationUpdate"} - if s.BucketARN != nil && len(*s.BucketARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BucketARN", 1)) - } - if s.RoleARN != nil && len(*s.RoleARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) - } - if s.BufferingHints != nil { - if err := s.BufferingHints.Validate(); err != nil { - invalidParams.AddNested("BufferingHints", err.(request.ErrInvalidParams)) - } - } - if s.EncryptionConfiguration != nil { - if err := s.EncryptionConfiguration.Validate(); err != nil { - invalidParams.AddNested("EncryptionConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the parameters for UpdateDestination. -type UpdateDestinationInput struct { - _ struct{} `type:"structure"` - - // Obtain this value from the VersionId result of the DeliveryStreamDescription - // operation. This value is required, and helps the service to perform conditional - // operations. For example, if there is a interleaving update and this value - // is null, then the update destination fails. After the update is successful, - // the VersionId value is updated. The service then performs a merge of the - // old configuration with the new configuration. - CurrentDeliveryStreamVersionId *string `min:"1" type:"string" required:"true"` - - // The name of the delivery stream. - DeliveryStreamName *string `min:"1" type:"string" required:"true"` - - // The ID of the destination. - DestinationId *string `min:"1" type:"string" required:"true"` - - // Describes an update for a destination in Amazon ES. - ElasticsearchDestinationUpdate *ElasticsearchDestinationUpdate `type:"structure"` - - // Describes an update for a destination in Amazon Redshift. - RedshiftDestinationUpdate *RedshiftDestinationUpdate `type:"structure"` - - // Describes an update for a destination in Amazon S3. - S3DestinationUpdate *S3DestinationUpdate `type:"structure"` -} - -// String returns the string representation -func (s UpdateDestinationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateDestinationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDestinationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDestinationInput"} - if s.CurrentDeliveryStreamVersionId == nil { - invalidParams.Add(request.NewErrParamRequired("CurrentDeliveryStreamVersionId")) - } - if s.CurrentDeliveryStreamVersionId != nil && len(*s.CurrentDeliveryStreamVersionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CurrentDeliveryStreamVersionId", 1)) - } - if s.DeliveryStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName")) - } - if s.DeliveryStreamName != nil && len(*s.DeliveryStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeliveryStreamName", 1)) - } - if s.DestinationId == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationId")) - } - if s.DestinationId != nil && len(*s.DestinationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DestinationId", 1)) - } - if s.ElasticsearchDestinationUpdate != nil { - if err := s.ElasticsearchDestinationUpdate.Validate(); err != nil { - invalidParams.AddNested("ElasticsearchDestinationUpdate", err.(request.ErrInvalidParams)) - } - } - if s.RedshiftDestinationUpdate != nil { - if err := s.RedshiftDestinationUpdate.Validate(); err != nil { - invalidParams.AddNested("RedshiftDestinationUpdate", err.(request.ErrInvalidParams)) - } - } - if s.S3DestinationUpdate != nil { - if err := s.S3DestinationUpdate.Validate(); err != nil { - invalidParams.AddNested("S3DestinationUpdate", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the output of UpdateDestination. -type UpdateDestinationOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UpdateDestinationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateDestinationOutput) GoString() string { - return s.String() -} - -const ( - // @enum CompressionFormat - CompressionFormatUncompressed = "UNCOMPRESSED" - // @enum CompressionFormat - CompressionFormatGzip = "GZIP" - // @enum CompressionFormat - CompressionFormatZip = "ZIP" - // @enum CompressionFormat - CompressionFormatSnappy = "Snappy" -) - -const ( - // @enum DeliveryStreamStatus - DeliveryStreamStatusCreating = "CREATING" - // @enum DeliveryStreamStatus - DeliveryStreamStatusDeleting = "DELETING" - // @enum DeliveryStreamStatus - DeliveryStreamStatusActive = "ACTIVE" -) - -const ( - // @enum ElasticsearchIndexRotationPeriod - ElasticsearchIndexRotationPeriodNoRotation = "NoRotation" - // @enum ElasticsearchIndexRotationPeriod - ElasticsearchIndexRotationPeriodOneHour = "OneHour" - // @enum ElasticsearchIndexRotationPeriod - ElasticsearchIndexRotationPeriodOneDay = "OneDay" - // @enum ElasticsearchIndexRotationPeriod - ElasticsearchIndexRotationPeriodOneWeek = "OneWeek" - // @enum ElasticsearchIndexRotationPeriod - ElasticsearchIndexRotationPeriodOneMonth = "OneMonth" -) - -const ( - // @enum ElasticsearchS3BackupMode - ElasticsearchS3BackupModeFailedDocumentsOnly = "FailedDocumentsOnly" - // @enum ElasticsearchS3BackupMode - ElasticsearchS3BackupModeAllDocuments = "AllDocuments" -) - -const ( - // @enum NoEncryptionConfig - NoEncryptionConfigNoEncryption = "NoEncryption" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go deleted file mode 100644 index 9c84657db..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/examples_test.go +++ /dev/null @@ -1,366 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package firehose_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/firehose" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleFirehose_CreateDeliveryStream() { - svc := firehose.New(session.New()) - - params := &firehose.CreateDeliveryStreamInput{ - DeliveryStreamName: aws.String("DeliveryStreamName"), // Required - ElasticsearchDestinationConfiguration: &firehose.ElasticsearchDestinationConfiguration{ - DomainARN: aws.String("ElasticsearchDomainARN"), // Required - IndexName: aws.String("ElasticsearchIndexName"), // Required - RoleARN: aws.String("RoleARN"), // Required - S3Configuration: &firehose.S3DestinationConfiguration{ // Required - BucketARN: aws.String("BucketARN"), // Required - RoleARN: aws.String("RoleARN"), // Required - BufferingHints: &firehose.BufferingHints{ - IntervalInSeconds: aws.Int64(1), - SizeInMBs: aws.Int64(1), - }, - CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ - Enabled: aws.Bool(true), - LogGroupName: aws.String("LogGroupName"), - LogStreamName: aws.String("LogStreamName"), - }, - CompressionFormat: aws.String("CompressionFormat"), - EncryptionConfiguration: &firehose.EncryptionConfiguration{ - KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ - AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required - }, - NoEncryptionConfig: aws.String("NoEncryptionConfig"), - }, - Prefix: aws.String("Prefix"), - }, - TypeName: aws.String("ElasticsearchTypeName"), // Required - BufferingHints: &firehose.ElasticsearchBufferingHints{ - IntervalInSeconds: aws.Int64(1), - SizeInMBs: aws.Int64(1), - }, - CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ - Enabled: aws.Bool(true), - LogGroupName: aws.String("LogGroupName"), - LogStreamName: aws.String("LogStreamName"), - }, - IndexRotationPeriod: aws.String("ElasticsearchIndexRotationPeriod"), - RetryOptions: &firehose.ElasticsearchRetryOptions{ - DurationInSeconds: aws.Int64(1), - }, - S3BackupMode: aws.String("ElasticsearchS3BackupMode"), - }, - RedshiftDestinationConfiguration: &firehose.RedshiftDestinationConfiguration{ - ClusterJDBCURL: aws.String("ClusterJDBCURL"), // Required - CopyCommand: &firehose.CopyCommand{ // Required - DataTableName: aws.String("DataTableName"), // Required - CopyOptions: aws.String("CopyOptions"), - DataTableColumns: aws.String("DataTableColumns"), - }, - Password: aws.String("Password"), // Required - RoleARN: aws.String("RoleARN"), // Required - S3Configuration: &firehose.S3DestinationConfiguration{ // Required - BucketARN: aws.String("BucketARN"), // Required - RoleARN: aws.String("RoleARN"), // Required - BufferingHints: &firehose.BufferingHints{ - IntervalInSeconds: aws.Int64(1), - SizeInMBs: aws.Int64(1), - }, - CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ - Enabled: aws.Bool(true), - LogGroupName: aws.String("LogGroupName"), - LogStreamName: aws.String("LogStreamName"), - }, - CompressionFormat: aws.String("CompressionFormat"), - EncryptionConfiguration: &firehose.EncryptionConfiguration{ - KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ - AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required - }, - NoEncryptionConfig: aws.String("NoEncryptionConfig"), - }, - Prefix: aws.String("Prefix"), - }, - Username: aws.String("Username"), // Required - CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ - Enabled: aws.Bool(true), - LogGroupName: aws.String("LogGroupName"), - LogStreamName: aws.String("LogStreamName"), - }, - RetryOptions: &firehose.RedshiftRetryOptions{ - DurationInSeconds: aws.Int64(1), - }, - }, - S3DestinationConfiguration: &firehose.S3DestinationConfiguration{ - BucketARN: aws.String("BucketARN"), // Required - RoleARN: aws.String("RoleARN"), // Required - BufferingHints: &firehose.BufferingHints{ - IntervalInSeconds: aws.Int64(1), - SizeInMBs: aws.Int64(1), - }, - CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ - Enabled: aws.Bool(true), - LogGroupName: aws.String("LogGroupName"), - LogStreamName: aws.String("LogStreamName"), - }, - CompressionFormat: aws.String("CompressionFormat"), - EncryptionConfiguration: &firehose.EncryptionConfiguration{ - KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ - AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required - }, - NoEncryptionConfig: aws.String("NoEncryptionConfig"), - }, - Prefix: aws.String("Prefix"), - }, - } - resp, err := svc.CreateDeliveryStream(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleFirehose_DeleteDeliveryStream() { - svc := firehose.New(session.New()) - - params := &firehose.DeleteDeliveryStreamInput{ - DeliveryStreamName: aws.String("DeliveryStreamName"), // Required - } - resp, err := svc.DeleteDeliveryStream(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleFirehose_DescribeDeliveryStream() { - svc := firehose.New(session.New()) - - params := &firehose.DescribeDeliveryStreamInput{ - DeliveryStreamName: aws.String("DeliveryStreamName"), // Required - ExclusiveStartDestinationId: aws.String("DestinationId"), - Limit: aws.Int64(1), - } - resp, err := svc.DescribeDeliveryStream(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleFirehose_ListDeliveryStreams() { - svc := firehose.New(session.New()) - - params := &firehose.ListDeliveryStreamsInput{ - ExclusiveStartDeliveryStreamName: aws.String("DeliveryStreamName"), - Limit: aws.Int64(1), - } - resp, err := svc.ListDeliveryStreams(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleFirehose_PutRecord() { - svc := firehose.New(session.New()) - - params := &firehose.PutRecordInput{ - DeliveryStreamName: aws.String("DeliveryStreamName"), // Required - Record: &firehose.Record{ // Required - Data: []byte("PAYLOAD"), // Required - }, - } - resp, err := svc.PutRecord(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleFirehose_PutRecordBatch() { - svc := firehose.New(session.New()) - - params := &firehose.PutRecordBatchInput{ - DeliveryStreamName: aws.String("DeliveryStreamName"), // Required - Records: []*firehose.Record{ // Required - { // Required - Data: []byte("PAYLOAD"), // Required - }, - // More values... - }, - } - resp, err := svc.PutRecordBatch(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleFirehose_UpdateDestination() { - svc := firehose.New(session.New()) - - params := &firehose.UpdateDestinationInput{ - CurrentDeliveryStreamVersionId: aws.String("DeliveryStreamVersionId"), // Required - DeliveryStreamName: aws.String("DeliveryStreamName"), // Required - DestinationId: aws.String("DestinationId"), // Required - ElasticsearchDestinationUpdate: &firehose.ElasticsearchDestinationUpdate{ - BufferingHints: &firehose.ElasticsearchBufferingHints{ - IntervalInSeconds: aws.Int64(1), - SizeInMBs: aws.Int64(1), - }, - CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ - Enabled: aws.Bool(true), - LogGroupName: aws.String("LogGroupName"), - LogStreamName: aws.String("LogStreamName"), - }, - DomainARN: aws.String("ElasticsearchDomainARN"), - IndexName: aws.String("ElasticsearchIndexName"), - IndexRotationPeriod: aws.String("ElasticsearchIndexRotationPeriod"), - RetryOptions: &firehose.ElasticsearchRetryOptions{ - DurationInSeconds: aws.Int64(1), - }, - RoleARN: aws.String("RoleARN"), - S3Update: &firehose.S3DestinationUpdate{ - BucketARN: aws.String("BucketARN"), - BufferingHints: &firehose.BufferingHints{ - IntervalInSeconds: aws.Int64(1), - SizeInMBs: aws.Int64(1), - }, - CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ - Enabled: aws.Bool(true), - LogGroupName: aws.String("LogGroupName"), - LogStreamName: aws.String("LogStreamName"), - }, - CompressionFormat: aws.String("CompressionFormat"), - EncryptionConfiguration: &firehose.EncryptionConfiguration{ - KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ - AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required - }, - NoEncryptionConfig: aws.String("NoEncryptionConfig"), - }, - Prefix: aws.String("Prefix"), - RoleARN: aws.String("RoleARN"), - }, - TypeName: aws.String("ElasticsearchTypeName"), - }, - RedshiftDestinationUpdate: &firehose.RedshiftDestinationUpdate{ - CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ - Enabled: aws.Bool(true), - LogGroupName: aws.String("LogGroupName"), - LogStreamName: aws.String("LogStreamName"), - }, - ClusterJDBCURL: aws.String("ClusterJDBCURL"), - CopyCommand: &firehose.CopyCommand{ - DataTableName: aws.String("DataTableName"), // Required - CopyOptions: aws.String("CopyOptions"), - DataTableColumns: aws.String("DataTableColumns"), - }, - Password: aws.String("Password"), - RetryOptions: &firehose.RedshiftRetryOptions{ - DurationInSeconds: aws.Int64(1), - }, - RoleARN: aws.String("RoleARN"), - S3Update: &firehose.S3DestinationUpdate{ - BucketARN: aws.String("BucketARN"), - BufferingHints: &firehose.BufferingHints{ - IntervalInSeconds: aws.Int64(1), - SizeInMBs: aws.Int64(1), - }, - CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ - Enabled: aws.Bool(true), - LogGroupName: aws.String("LogGroupName"), - LogStreamName: aws.String("LogStreamName"), - }, - CompressionFormat: aws.String("CompressionFormat"), - EncryptionConfiguration: &firehose.EncryptionConfiguration{ - KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ - AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required - }, - NoEncryptionConfig: aws.String("NoEncryptionConfig"), - }, - Prefix: aws.String("Prefix"), - RoleARN: aws.String("RoleARN"), - }, - Username: aws.String("Username"), - }, - S3DestinationUpdate: &firehose.S3DestinationUpdate{ - BucketARN: aws.String("BucketARN"), - BufferingHints: &firehose.BufferingHints{ - IntervalInSeconds: aws.Int64(1), - SizeInMBs: aws.Int64(1), - }, - CloudWatchLoggingOptions: &firehose.CloudWatchLoggingOptions{ - Enabled: aws.Bool(true), - LogGroupName: aws.String("LogGroupName"), - LogStreamName: aws.String("LogStreamName"), - }, - CompressionFormat: aws.String("CompressionFormat"), - EncryptionConfiguration: &firehose.EncryptionConfiguration{ - KMSEncryptionConfig: &firehose.KMSEncryptionConfig{ - AWSKMSKeyARN: aws.String("AWSKMSKeyARN"), // Required - }, - NoEncryptionConfig: aws.String("NoEncryptionConfig"), - }, - Prefix: aws.String("Prefix"), - RoleARN: aws.String("RoleARN"), - }, - } - resp, err := svc.UpdateDestination(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go deleted file mode 100644 index 0c18342d0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface.go +++ /dev/null @@ -1,42 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package firehoseiface provides an interface for the Amazon Kinesis Firehose. -package firehoseiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/firehose" -) - -// FirehoseAPI is the interface type for firehose.Firehose. -type FirehoseAPI interface { - CreateDeliveryStreamRequest(*firehose.CreateDeliveryStreamInput) (*request.Request, *firehose.CreateDeliveryStreamOutput) - - CreateDeliveryStream(*firehose.CreateDeliveryStreamInput) (*firehose.CreateDeliveryStreamOutput, error) - - DeleteDeliveryStreamRequest(*firehose.DeleteDeliveryStreamInput) (*request.Request, *firehose.DeleteDeliveryStreamOutput) - - DeleteDeliveryStream(*firehose.DeleteDeliveryStreamInput) (*firehose.DeleteDeliveryStreamOutput, error) - - DescribeDeliveryStreamRequest(*firehose.DescribeDeliveryStreamInput) (*request.Request, *firehose.DescribeDeliveryStreamOutput) - - DescribeDeliveryStream(*firehose.DescribeDeliveryStreamInput) (*firehose.DescribeDeliveryStreamOutput, error) - - ListDeliveryStreamsRequest(*firehose.ListDeliveryStreamsInput) (*request.Request, *firehose.ListDeliveryStreamsOutput) - - ListDeliveryStreams(*firehose.ListDeliveryStreamsInput) (*firehose.ListDeliveryStreamsOutput, error) - - PutRecordRequest(*firehose.PutRecordInput) (*request.Request, *firehose.PutRecordOutput) - - PutRecord(*firehose.PutRecordInput) (*firehose.PutRecordOutput, error) - - PutRecordBatchRequest(*firehose.PutRecordBatchInput) (*request.Request, *firehose.PutRecordBatchOutput) - - PutRecordBatch(*firehose.PutRecordBatchInput) (*firehose.PutRecordBatchOutput, error) - - UpdateDestinationRequest(*firehose.UpdateDestinationInput) (*request.Request, *firehose.UpdateDestinationOutput) - - UpdateDestination(*firehose.UpdateDestinationInput) (*firehose.UpdateDestinationOutput, error) -} - -var _ FirehoseAPI = (*firehose.Firehose)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/service.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/service.go deleted file mode 100644 index fcb419882..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/firehose/service.go +++ /dev/null @@ -1,90 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package firehose - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// Amazon Kinesis Firehose is a fully-managed service that delivers real-time -// streaming data to destinations such as Amazon Simple Storage Service (Amazon -// S3), Amazon Elasticsearch Service (Amazon ES), and Amazon Redshift. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type Firehose struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "firehose" - -// New creates a new instance of the Firehose client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a Firehose client from just a session. -// svc := firehose.New(mySession) -// -// // Create a Firehose client with additional configuration -// svc := firehose.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *Firehose { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Firehose { - svc := &Firehose{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-08-04", - JSONVersion: "1.1", - TargetPrefix: "Firehose_20150804", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a Firehose operation and runs any -// custom request initialization. -func (c *Firehose) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go deleted file mode 100644 index 2e67613b4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go +++ /dev/null @@ -1,4552 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package gamelift provides a client for Amazon GameLift. -package gamelift - -import ( - "fmt" - "time" - - "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/private/protocol/jsonrpc" -) - -const opCreateAlias = "CreateAlias" - -// CreateAliasRequest generates a request for the CreateAlias operation. -func (c *GameLift) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *CreateAliasOutput) { - op := &request.Operation{ - Name: opCreateAlias, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateAliasInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateAliasOutput{} - req.Data = output - return -} - -// Creates an alias for a fleet. You can use an alias to anonymize your fleet -// by referencing an alias instead of a specific fleet when you create game -// sessions. Amazon GameLift supports two types of routing strategies for aliases: -// simple and terminal. Use a simple alias to point to an active fleet. Use -// a terminal alias to display a message to incoming traffic instead of routing -// players to an active fleet. This option is useful when a game server is no -// longer supported but you want to provide better messaging than a standard -// 404 error. -// -// To create a fleet alias, specify an alias name, routing strategy, and optional -// description. If successful, a new alias record is returned, including an -// alias ID, which you can reference when creating a game session. To reassign -// the alias to another fleet ID, call UpdateAlias. -func (c *GameLift) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { - req, out := c.CreateAliasRequest(input) - err := req.Send() - return out, err -} - -const opCreateBuild = "CreateBuild" - -// CreateBuildRequest generates a request for the CreateBuild operation. -func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Request, output *CreateBuildOutput) { - op := &request.Operation{ - Name: opCreateBuild, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateBuildInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateBuildOutput{} - req.Data = output - return -} - -// Initializes a new build record and generates information required to upload -// a game build to Amazon GameLift. Once the build record has been created and -// is in an INITIALIZED state, you can upload your game build. -// -// To create a build, use the CLI command upload-build, which creates a new -// build record and uploads the build files in one step. (See the Amazon GameLift -// Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/) -// for more details on the CLI and the upload process.) Call the CreateBuild -// action only if you have your own Amazon Simple Storage Service (Amazon S3) -// client and need to manually upload your build files. -// -// To create a new build, optionally specify a build name and version. This -// metadata is stored with other properties in the build record and is displayed -// in the GameLift console (but not visible to players). If successful, this -// action returns the newly created build record along with an Amazon S3 storage -// location and AWS account credentials. Use the location and credentials to -// upload your game build. -func (c *GameLift) CreateBuild(input *CreateBuildInput) (*CreateBuildOutput, error) { - req, out := c.CreateBuildRequest(input) - err := req.Send() - return out, err -} - -const opCreateFleet = "CreateFleet" - -// CreateFleetRequest generates a request for the CreateFleet operation. -func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) { - op := &request.Operation{ - Name: opCreateFleet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateFleetInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateFleetOutput{} - req.Data = output - return -} - -// Creates a new fleet to host game servers. A fleet consists of a set of Amazon -// Elastic Compute Cloud (Amazon EC2) instances of a certain type, which defines -// the CPU, memory, storage, and networking capacity of each host in the fleet. -// See Amazon EC2 Instance Types (https://aws.amazon.com/ec2/instance-types/) -// for more information. Each instance in the fleet hosts a game server created -// from the specified game build. Once a fleet is in an ACTIVE state, it can -// begin hosting game sessions. -// -// To create a new fleet, provide a name and the EC2 instance type for the -// new fleet, and specify the build and server launch path. Builds must be in -// a READY state before they can be used to build fleets. When configuring the -// new fleet, you can optionally (1) provide a set of launch parameters to be -// passed to a game server when activated; (2) limit incoming traffic to a specified -// range of IP addresses and port numbers; (3) set game session protection for -// all instances in the fleet, and (4) configure Amazon GameLift to store game -// session logs by specifying the path to the logs stored in your game server -// files. If the call is successful, Amazon GameLift performs the following -// tasks: -// -// Creates a fleet record and sets the state to NEW. Sets the fleet's capacity -// to 1 "desired" and 1 "active" EC2 instance count. Creates an EC2 instance -// and begins the process of initializing the fleet and activating a game server -// on the instance. Begins writing events to the fleet event log, which can -// be accessed in the GameLift console. Once a fleet is created, use the following -// actions to change certain fleet properties (server launch parameters and -// log paths cannot be changed): -// -// UpdateFleetAttributes -- Update fleet metadata, including name and description. -// UpdateFleetCapacity -- Increase or decrease the number of instances you -// want the fleet to maintain. UpdateFleetPortSettings -- Change the IP addresses -// and ports that allow access to incoming traffic. -func (c *GameLift) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) { - req, out := c.CreateFleetRequest(input) - err := req.Send() - return out, err -} - -const opCreateGameSession = "CreateGameSession" - -// CreateGameSessionRequest generates a request for the CreateGameSession operation. -func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req *request.Request, output *CreateGameSessionOutput) { - op := &request.Operation{ - Name: opCreateGameSession, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateGameSessionInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateGameSessionOutput{} - req.Data = output - return -} - -// Creates a multiplayer game session for players. This action creates a game -// session record and assigns the new session to an instance in the specified -// fleet, which activates the server initialization process in your game server. -// A fleet must be in an ACTIVE state before a game session can be created for -// it. -// -// To create a game session, specify either a fleet ID or an alias ID and indicate -// the maximum number of players the game session allows. You can also provide -// a name and a set of properties for your game (optional). If successful, a -// GameSession object is returned containing session properties, including an -// IP address. By default, newly created game sessions are set to accept adding -// any new players to the game session. Use UpdateGameSession to change the -// creation policy. -func (c *GameLift) CreateGameSession(input *CreateGameSessionInput) (*CreateGameSessionOutput, error) { - req, out := c.CreateGameSessionRequest(input) - err := req.Send() - return out, err -} - -const opCreatePlayerSession = "CreatePlayerSession" - -// CreatePlayerSessionRequest generates a request for the CreatePlayerSession operation. -func (c *GameLift) CreatePlayerSessionRequest(input *CreatePlayerSessionInput) (req *request.Request, output *CreatePlayerSessionOutput) { - op := &request.Operation{ - Name: opCreatePlayerSession, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreatePlayerSessionInput{} - } - - req = c.newRequest(op, input, output) - output = &CreatePlayerSessionOutput{} - req.Data = output - return -} - -// Adds a player to a game session and creates a player session record. A game -// session must be in an ACTIVE state, have a creation policy of ALLOW_ALL, -// and have an open player slot before players can be added to the session. -// -// To create a player session, specify a game session ID and player ID. If -// successful, the player is added to the game session and a new PlayerSession -// object is returned. -func (c *GameLift) CreatePlayerSession(input *CreatePlayerSessionInput) (*CreatePlayerSessionOutput, error) { - req, out := c.CreatePlayerSessionRequest(input) - err := req.Send() - return out, err -} - -const opCreatePlayerSessions = "CreatePlayerSessions" - -// CreatePlayerSessionsRequest generates a request for the CreatePlayerSessions operation. -func (c *GameLift) CreatePlayerSessionsRequest(input *CreatePlayerSessionsInput) (req *request.Request, output *CreatePlayerSessionsOutput) { - op := &request.Operation{ - Name: opCreatePlayerSessions, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreatePlayerSessionsInput{} - } - - req = c.newRequest(op, input, output) - output = &CreatePlayerSessionsOutput{} - req.Data = output - return -} - -// Adds a group of players to a game session. Similar to CreatePlayerSession, -// this action allows you to add multiple players in a single call, which is -// useful for games that provide party and/or matchmaking features. A game session -// must be in an ACTIVE state, have a creation policy of ALLOW_ALL, and have -// an open player slot before players can be added to the session. -// -// To create player sessions, specify a game session ID and a list of player -// IDs. If successful, the players are added to the game session and a set of -// new PlayerSession objects is returned. -func (c *GameLift) CreatePlayerSessions(input *CreatePlayerSessionsInput) (*CreatePlayerSessionsOutput, error) { - req, out := c.CreatePlayerSessionsRequest(input) - err := req.Send() - return out, err -} - -const opDeleteAlias = "DeleteAlias" - -// DeleteAliasRequest generates a request for the DeleteAlias operation. -func (c *GameLift) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput) { - op := &request.Operation{ - Name: opDeleteAlias, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteAliasInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAliasOutput{} - req.Data = output - return -} - -// Deletes an alias. This action removes all record of the alias; game clients -// attempting to access a game server using the deleted alias receive an error. -// To delete an alias, specify the alias ID to be deleted. -func (c *GameLift) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { - req, out := c.DeleteAliasRequest(input) - err := req.Send() - return out, err -} - -const opDeleteBuild = "DeleteBuild" - -// DeleteBuildRequest generates a request for the DeleteBuild operation. -func (c *GameLift) DeleteBuildRequest(input *DeleteBuildInput) (req *request.Request, output *DeleteBuildOutput) { - op := &request.Operation{ - Name: opDeleteBuild, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteBuildInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteBuildOutput{} - req.Data = output - return -} - -// Deletes a build. This action permanently deletes the build record and any -// uploaded build files. -// -// To delete a build, specify its ID. Deleting a build does not affect the -// status of any active fleets, but you can no longer create new fleets for -// the deleted build. -func (c *GameLift) DeleteBuild(input *DeleteBuildInput) (*DeleteBuildOutput, error) { - req, out := c.DeleteBuildRequest(input) - err := req.Send() - return out, err -} - -const opDeleteFleet = "DeleteFleet" - -// DeleteFleetRequest generates a request for the DeleteFleet operation. -func (c *GameLift) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) { - op := &request.Operation{ - Name: opDeleteFleet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteFleetInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteFleetOutput{} - req.Data = output - return -} - -// Deletes everything related to a fleet. Before deleting a fleet, you must -// set the fleet's desired capacity to zero. See UpdateFleetCapacity. -// -// This action removes the fleet's resources and the fleet record. Once a fleet -// is deleted, you can no longer use that fleet. -func (c *GameLift) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) { - req, out := c.DeleteFleetRequest(input) - err := req.Send() - return out, err -} - -const opDeleteScalingPolicy = "DeleteScalingPolicy" - -// DeleteScalingPolicyRequest generates a request for the DeleteScalingPolicy operation. -func (c *GameLift) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) (req *request.Request, output *DeleteScalingPolicyOutput) { - op := &request.Operation{ - Name: opDeleteScalingPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteScalingPolicyInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteScalingPolicyOutput{} - req.Data = output - return -} - -// Deletes a fleet scaling policy. This action means that the policy is no longer -// in force and removes all record of it. To delete a scaling policy, specify -// both the scaling policy name and the fleet ID it is associated with. -func (c *GameLift) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) { - req, out := c.DeleteScalingPolicyRequest(input) - err := req.Send() - return out, err -} - -const opDescribeAlias = "DescribeAlias" - -// DescribeAliasRequest generates a request for the DescribeAlias operation. -func (c *GameLift) DescribeAliasRequest(input *DescribeAliasInput) (req *request.Request, output *DescribeAliasOutput) { - op := &request.Operation{ - Name: opDescribeAlias, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeAliasInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeAliasOutput{} - req.Data = output - return -} - -// Retrieves properties for a specified alias. To get the alias, specify an -// alias ID. If successful, an Alias object is returned. -func (c *GameLift) DescribeAlias(input *DescribeAliasInput) (*DescribeAliasOutput, error) { - req, out := c.DescribeAliasRequest(input) - err := req.Send() - return out, err -} - -const opDescribeBuild = "DescribeBuild" - -// DescribeBuildRequest generates a request for the DescribeBuild operation. -func (c *GameLift) DescribeBuildRequest(input *DescribeBuildInput) (req *request.Request, output *DescribeBuildOutput) { - op := &request.Operation{ - Name: opDescribeBuild, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeBuildInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeBuildOutput{} - req.Data = output - return -} - -// Retrieves properties for a build. To get a build record, specify a build -// ID. If successful, an object containing the build properties is returned. -func (c *GameLift) DescribeBuild(input *DescribeBuildInput) (*DescribeBuildOutput, error) { - req, out := c.DescribeBuildRequest(input) - err := req.Send() - return out, err -} - -const opDescribeEC2InstanceLimits = "DescribeEC2InstanceLimits" - -// DescribeEC2InstanceLimitsRequest generates a request for the DescribeEC2InstanceLimits operation. -func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLimitsInput) (req *request.Request, output *DescribeEC2InstanceLimitsOutput) { - op := &request.Operation{ - Name: opDescribeEC2InstanceLimits, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeEC2InstanceLimitsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeEC2InstanceLimitsOutput{} - req.Data = output - return -} - -// Retrieves the following information for the specified EC2 instance type: -// -// maximum number of instances allowed per AWS account (service limit) current -// usage level for the AWS account Service limits vary depending on region. -// Available regions for GameLift can be found in the AWS Management Console -// for GameLift (see the drop-down list in the upper right corner). -func (c *GameLift) DescribeEC2InstanceLimits(input *DescribeEC2InstanceLimitsInput) (*DescribeEC2InstanceLimitsOutput, error) { - req, out := c.DescribeEC2InstanceLimitsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeFleetAttributes = "DescribeFleetAttributes" - -// DescribeFleetAttributesRequest generates a request for the DescribeFleetAttributes operation. -func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributesInput) (req *request.Request, output *DescribeFleetAttributesOutput) { - op := &request.Operation{ - Name: opDescribeFleetAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeFleetAttributesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeFleetAttributesOutput{} - req.Data = output - return -} - -// Retrieves fleet properties, including metadata, status, and configuration, -// for one or more fleets. You can request attributes for all fleets, or specify -// a list of one or more fleet IDs. When requesting all fleets, use the pagination -// parameters to retrieve results as a set of sequential pages. If successful, -// a FleetAttributes object is returned for each requested fleet ID. When specifying -// a list of fleet IDs, attribute objects are returned only for fleets that -// currently exist. -// -// Some API actions may limit the number of fleet IDs allowed in one request. -// If a request exceeds this limit, the request fails and the error message -// includes the maximum allowed. -func (c *GameLift) DescribeFleetAttributes(input *DescribeFleetAttributesInput) (*DescribeFleetAttributesOutput, error) { - req, out := c.DescribeFleetAttributesRequest(input) - err := req.Send() - return out, err -} - -const opDescribeFleetCapacity = "DescribeFleetCapacity" - -// DescribeFleetCapacityRequest generates a request for the DescribeFleetCapacity operation. -func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInput) (req *request.Request, output *DescribeFleetCapacityOutput) { - op := &request.Operation{ - Name: opDescribeFleetCapacity, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeFleetCapacityInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeFleetCapacityOutput{} - req.Data = output - return -} - -// Retrieves the current status of fleet capacity for one or more fleets. This -// information includes the number of instances that have been requested for -// the fleet and the number currently active. You can request capacity for all -// fleets, or specify a list of one or more fleet IDs. When requesting all fleets, -// use the pagination parameters to retrieve results as a set of sequential -// pages. If successful, a FleetCapacity object is returned for each requested -// fleet ID. When specifying a list of fleet IDs, attribute objects are returned -// only for fleets that currently exist. -// -// Some API actions may limit the number of fleet IDs allowed in one request. -// If a request exceeds this limit, the request fails and the error message -// includes the maximum allowed. -func (c *GameLift) DescribeFleetCapacity(input *DescribeFleetCapacityInput) (*DescribeFleetCapacityOutput, error) { - req, out := c.DescribeFleetCapacityRequest(input) - err := req.Send() - return out, err -} - -const opDescribeFleetEvents = "DescribeFleetEvents" - -// DescribeFleetEventsRequest generates a request for the DescribeFleetEvents operation. -func (c *GameLift) DescribeFleetEventsRequest(input *DescribeFleetEventsInput) (req *request.Request, output *DescribeFleetEventsOutput) { - op := &request.Operation{ - Name: opDescribeFleetEvents, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeFleetEventsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeFleetEventsOutput{} - req.Data = output - return -} - -// Retrieves entries from the fleet event log. You can specify a time range -// to limit the result set. Use the pagination parameters to retrieve results -// as a set of sequential pages. If successful, a collection of event log entries -// matching the request are returned. -func (c *GameLift) DescribeFleetEvents(input *DescribeFleetEventsInput) (*DescribeFleetEventsOutput, error) { - req, out := c.DescribeFleetEventsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeFleetPortSettings = "DescribeFleetPortSettings" - -// DescribeFleetPortSettingsRequest generates a request for the DescribeFleetPortSettings operation. -func (c *GameLift) DescribeFleetPortSettingsRequest(input *DescribeFleetPortSettingsInput) (req *request.Request, output *DescribeFleetPortSettingsOutput) { - op := &request.Operation{ - Name: opDescribeFleetPortSettings, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeFleetPortSettingsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeFleetPortSettingsOutput{} - req.Data = output - return -} - -// Retrieves the port settings for a fleet. Port settings are used to limit -// incoming traffic access to game servers in the fleet. To get a fleet's port -// settings, specify a fleet ID. If successful, an IpPermission object is returned -// for the requested fleet ID. If the requested fleet has been deleted, the -// result set will be empty. -func (c *GameLift) DescribeFleetPortSettings(input *DescribeFleetPortSettingsInput) (*DescribeFleetPortSettingsOutput, error) { - req, out := c.DescribeFleetPortSettingsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeFleetUtilization = "DescribeFleetUtilization" - -// DescribeFleetUtilizationRequest generates a request for the DescribeFleetUtilization operation. -func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizationInput) (req *request.Request, output *DescribeFleetUtilizationOutput) { - op := &request.Operation{ - Name: opDescribeFleetUtilization, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeFleetUtilizationInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeFleetUtilizationOutput{} - req.Data = output - return -} - -// Retrieves utilization statistics for one or more fleets. You can request -// utilization data for all fleets, or specify a list of one or more fleet IDs. -// When requesting all fleets, use the pagination parameters to retrieve results -// as a set of sequential pages. If successful, a FleetUtilization object is -// returned for each requested fleet ID. When specifying a list of fleet IDs, -// utilization objects are returned only for fleets that currently exist. -// -// Some API actions may limit the number of fleet IDs allowed in one request. -// If a request exceeds this limit, the request fails and the error message -// includes the maximum allowed. -func (c *GameLift) DescribeFleetUtilization(input *DescribeFleetUtilizationInput) (*DescribeFleetUtilizationOutput, error) { - req, out := c.DescribeFleetUtilizationRequest(input) - err := req.Send() - return out, err -} - -const opDescribeGameSessionDetails = "DescribeGameSessionDetails" - -// DescribeGameSessionDetailsRequest generates a request for the DescribeGameSessionDetails operation. -func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionDetailsInput) (req *request.Request, output *DescribeGameSessionDetailsOutput) { - op := &request.Operation{ - Name: opDescribeGameSessionDetails, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeGameSessionDetailsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeGameSessionDetailsOutput{} - req.Data = output - return -} - -// Retrieves properties, including the protection policy in force, for one or -// more game sessions. This action can be used in several ways: (1) provide -// a GameSessionId to request details for a specific game session; (2) provide -// either a FleetId or an AliasId to request properties for all game sessions -// running on a fleet. -// -// To get game session record(s), specify just one of the following: game session -// ID, fleet ID, or alias ID. You can filter this request by game session status. -// Use the pagination parameters to retrieve results as a set of sequential -// pages. If successful, a GameSessionDetail object is returned for each session -// matching the request. -func (c *GameLift) DescribeGameSessionDetails(input *DescribeGameSessionDetailsInput) (*DescribeGameSessionDetailsOutput, error) { - req, out := c.DescribeGameSessionDetailsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeGameSessions = "DescribeGameSessions" - -// DescribeGameSessionsRequest generates a request for the DescribeGameSessions operation. -func (c *GameLift) DescribeGameSessionsRequest(input *DescribeGameSessionsInput) (req *request.Request, output *DescribeGameSessionsOutput) { - op := &request.Operation{ - Name: opDescribeGameSessions, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeGameSessionsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeGameSessionsOutput{} - req.Data = output - return -} - -// Retrieves properties for one or more game sessions. This action can be used -// in several ways: (1) provide a GameSessionId to request properties for a -// specific game session; (2) provide a FleetId or an AliasId to request properties -// for all game sessions running on a fleet. -// -// To get game session record(s), specify just one of the following: game session -// ID, fleet ID, or alias ID. You can filter this request by game session status. -// Use the pagination parameters to retrieve results as a set of sequential -// pages. If successful, a GameSession object is returned for each session matching -// the request. -func (c *GameLift) DescribeGameSessions(input *DescribeGameSessionsInput) (*DescribeGameSessionsOutput, error) { - req, out := c.DescribeGameSessionsRequest(input) - err := req.Send() - return out, err -} - -const opDescribePlayerSessions = "DescribePlayerSessions" - -// DescribePlayerSessionsRequest generates a request for the DescribePlayerSessions operation. -func (c *GameLift) DescribePlayerSessionsRequest(input *DescribePlayerSessionsInput) (req *request.Request, output *DescribePlayerSessionsOutput) { - op := &request.Operation{ - Name: opDescribePlayerSessions, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribePlayerSessionsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribePlayerSessionsOutput{} - req.Data = output - return -} - -// Retrieves properties for one or more player sessions. This action can be -// used in several ways: (1) provide a PlayerSessionId parameter to request -// properties for a specific player session; (2) provide a GameSessionId parameter -// to request properties for all player sessions in the specified game session; -// (3) provide a PlayerId parameter to request properties for all player sessions -// of a specified player. -// -// To get game session record(s), specify only one of the following: a player -// session ID, a game session ID, or a player ID. You can filter this request -// by player session status. Use the pagination parameters to retrieve results -// as a set of sequential pages. If successful, a PlayerSession object is returned -// for each session matching the request. -func (c *GameLift) DescribePlayerSessions(input *DescribePlayerSessionsInput) (*DescribePlayerSessionsOutput, error) { - req, out := c.DescribePlayerSessionsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeScalingPolicies = "DescribeScalingPolicies" - -// DescribeScalingPoliciesRequest generates a request for the DescribeScalingPolicies operation. -func (c *GameLift) DescribeScalingPoliciesRequest(input *DescribeScalingPoliciesInput) (req *request.Request, output *DescribeScalingPoliciesOutput) { - op := &request.Operation{ - Name: opDescribeScalingPolicies, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeScalingPoliciesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeScalingPoliciesOutput{} - req.Data = output - return -} - -// Retrieves all scaling policies applied to a fleet. -// -// To get a fleet's scaling policies, specify the fleet ID. You can filter -// this request by policy status, such as to retrieve only active scaling policies. -// Use the pagination parameters to retrieve results as a set of sequential -// pages. If successful, set of ScalingPolicy objects is returned for the fleet. -func (c *GameLift) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) { - req, out := c.DescribeScalingPoliciesRequest(input) - err := req.Send() - return out, err -} - -const opGetGameSessionLogUrl = "GetGameSessionLogUrl" - -// GetGameSessionLogUrlRequest generates a request for the GetGameSessionLogUrl operation. -func (c *GameLift) GetGameSessionLogUrlRequest(input *GetGameSessionLogUrlInput) (req *request.Request, output *GetGameSessionLogUrlOutput) { - op := &request.Operation{ - Name: opGetGameSessionLogUrl, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetGameSessionLogUrlInput{} - } - - req = c.newRequest(op, input, output) - output = &GetGameSessionLogUrlOutput{} - req.Data = output - return -} - -// Retrieves the location of stored game session logs for a specified game session. -// When a game session is terminated, Amazon GameLift automatically stores the -// logs in Amazon S3. Use this URL to download the logs. -// -// See the AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift) -// page for maximum log file sizes. Log files that exceed this limit are not -// saved. -func (c *GameLift) GetGameSessionLogUrl(input *GetGameSessionLogUrlInput) (*GetGameSessionLogUrlOutput, error) { - req, out := c.GetGameSessionLogUrlRequest(input) - err := req.Send() - return out, err -} - -const opListAliases = "ListAliases" - -// ListAliasesRequest generates a request for the ListAliases operation. -func (c *GameLift) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput) { - op := &request.Operation{ - Name: opListAliases, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListAliasesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListAliasesOutput{} - req.Data = output - return -} - -// Retrieves a collection of alias records for this AWS account. You can filter -// the result set by alias name and/or routing strategy type. Use the pagination -// parameters to retrieve results in sequential pages. -// -// Aliases are not listed in any particular order. -func (c *GameLift) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { - req, out := c.ListAliasesRequest(input) - err := req.Send() - return out, err -} - -const opListBuilds = "ListBuilds" - -// ListBuildsRequest generates a request for the ListBuilds operation. -func (c *GameLift) ListBuildsRequest(input *ListBuildsInput) (req *request.Request, output *ListBuildsOutput) { - op := &request.Operation{ - Name: opListBuilds, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListBuildsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListBuildsOutput{} - req.Data = output - return -} - -// Retrieves build records for all builds associated with an AWS account. You -// can filter the result set by build status. Use the pagination parameters -// to retrieve results in a set of sequential pages. -// -// Build records are not listed in any particular order. -func (c *GameLift) ListBuilds(input *ListBuildsInput) (*ListBuildsOutput, error) { - req, out := c.ListBuildsRequest(input) - err := req.Send() - return out, err -} - -const opListFleets = "ListFleets" - -// ListFleetsRequest generates a request for the ListFleets operation. -func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Request, output *ListFleetsOutput) { - op := &request.Operation{ - Name: opListFleets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListFleetsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListFleetsOutput{} - req.Data = output - return -} - -// Retrieves a collection of fleet records for this AWS account. You can filter -// the result set by build ID. Use the pagination parameters to retrieve results -// in sequential pages. -// -// Fleet records are not listed in any particular order. -func (c *GameLift) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) { - req, out := c.ListFleetsRequest(input) - err := req.Send() - return out, err -} - -const opPutScalingPolicy = "PutScalingPolicy" - -// PutScalingPolicyRequest generates a request for the PutScalingPolicy operation. -func (c *GameLift) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *request.Request, output *PutScalingPolicyOutput) { - op := &request.Operation{ - Name: opPutScalingPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutScalingPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &PutScalingPolicyOutput{} - req.Data = output - return -} - -// Creates or updates a scaling policy for a fleet. An active scaling policy -// prompts GameLift to track a certain metric for a fleet and automatically -// change the fleet's capacity in specific circumstances. Each scaling policy -// contains one rule statement. Fleets can have multiple scaling policies in -// force simultaneously. -// -// A scaling policy rule statement has the following structure: -// -// If [MetricName] is [ComparisonOperator] [Threshold] for [EvaluationPeriods] -// minutes, then [ScalingAdjustmentType] to/by [ScalingAdjustment]. -// -// For example, this policy: "If the number of idle instances exceeds 20 for -// more than 15 minutes, then reduce the fleet capacity by 10 instances" could -// be implemented as the following rule statement: -// -// If [IdleInstances] is [GreaterThanOrEqualToThreshold] [20] for [15] minutes, -// then [ChangeInCapacity] by [-10]. -// -// To create or update a scaling policy, specify a unique combination of name -// and fleet ID, and set the rule values. All parameters for this action are -// required. If successful, the policy name is returned. Scaling policies cannot -// be suspended or made inactive. To stop enforcing a scaling policy, call DeleteScalingPolicy. -func (c *GameLift) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { - req, out := c.PutScalingPolicyRequest(input) - err := req.Send() - return out, err -} - -const opRequestUploadCredentials = "RequestUploadCredentials" - -// RequestUploadCredentialsRequest generates a request for the RequestUploadCredentials operation. -func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentialsInput) (req *request.Request, output *RequestUploadCredentialsOutput) { - op := &request.Operation{ - Name: opRequestUploadCredentials, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RequestUploadCredentialsInput{} - } - - req = c.newRequest(op, input, output) - output = &RequestUploadCredentialsOutput{} - req.Data = output - return -} - -// Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage -// location for a specific build. Valid credentials are required to upload your -// game build files to Amazon S3. -// -// Call this action only if you need credentials for a build created with CreateBuild. -// This is a rare situation; in most cases, builds are created using the CLI -// command upload-build, which creates a build record and also uploads build -// files. -// -// Upload credentials are returned when you create the build, but they have -// a limited lifespan. You can get fresh credentials and use them to re-upload -// game files until the state of that build changes to READY. Once this happens, -// you must create a brand new build. -func (c *GameLift) RequestUploadCredentials(input *RequestUploadCredentialsInput) (*RequestUploadCredentialsOutput, error) { - req, out := c.RequestUploadCredentialsRequest(input) - err := req.Send() - return out, err -} - -const opResolveAlias = "ResolveAlias" - -// ResolveAliasRequest generates a request for the ResolveAlias operation. -func (c *GameLift) ResolveAliasRequest(input *ResolveAliasInput) (req *request.Request, output *ResolveAliasOutput) { - op := &request.Operation{ - Name: opResolveAlias, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ResolveAliasInput{} - } - - req = c.newRequest(op, input, output) - output = &ResolveAliasOutput{} - req.Data = output - return -} - -// Retrieves the fleet ID that a specified alias is currently pointing to. -func (c *GameLift) ResolveAlias(input *ResolveAliasInput) (*ResolveAliasOutput, error) { - req, out := c.ResolveAliasRequest(input) - err := req.Send() - return out, err -} - -const opUpdateAlias = "UpdateAlias" - -// UpdateAliasRequest generates a request for the UpdateAlias operation. -func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *UpdateAliasOutput) { - op := &request.Operation{ - Name: opUpdateAlias, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateAliasInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateAliasOutput{} - req.Data = output - return -} - -// Updates properties for an alias. To update properties, specify the alias -// ID to be updated and provide the information to be changed. To reassign an -// alias to another fleet, provide an updated routing strategy. If successful, -// the updated alias record is returned. -func (c *GameLift) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error) { - req, out := c.UpdateAliasRequest(input) - err := req.Send() - return out, err -} - -const opUpdateBuild = "UpdateBuild" - -// UpdateBuildRequest generates a request for the UpdateBuild operation. -func (c *GameLift) UpdateBuildRequest(input *UpdateBuildInput) (req *request.Request, output *UpdateBuildOutput) { - op := &request.Operation{ - Name: opUpdateBuild, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateBuildInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateBuildOutput{} - req.Data = output - return -} - -// Updates metadata in a build record, including the build name and version. -// To update the metadata, specify the build ID to update and provide the new -// values. If successful, a build object containing the updated metadata is -// returned. -func (c *GameLift) UpdateBuild(input *UpdateBuildInput) (*UpdateBuildOutput, error) { - req, out := c.UpdateBuildRequest(input) - err := req.Send() - return out, err -} - -const opUpdateFleetAttributes = "UpdateFleetAttributes" - -// UpdateFleetAttributesRequest generates a request for the UpdateFleetAttributes operation. -func (c *GameLift) UpdateFleetAttributesRequest(input *UpdateFleetAttributesInput) (req *request.Request, output *UpdateFleetAttributesOutput) { - op := &request.Operation{ - Name: opUpdateFleetAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateFleetAttributesInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateFleetAttributesOutput{} - req.Data = output - return -} - -// Updates fleet properties, including name and description, for a fleet. To -// update metadata, specify the fleet ID and the property values you want to -// change. If successful, the fleet ID for the updated fleet is returned. -func (c *GameLift) UpdateFleetAttributes(input *UpdateFleetAttributesInput) (*UpdateFleetAttributesOutput, error) { - req, out := c.UpdateFleetAttributesRequest(input) - err := req.Send() - return out, err -} - -const opUpdateFleetCapacity = "UpdateFleetCapacity" - -// UpdateFleetCapacityRequest generates a request for the UpdateFleetCapacity operation. -func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) (req *request.Request, output *UpdateFleetCapacityOutput) { - op := &request.Operation{ - Name: opUpdateFleetCapacity, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateFleetCapacityInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateFleetCapacityOutput{} - req.Data = output - return -} - -// Updates capacity settings for a fleet. Use this action to specify the number -// of EC2 instances (hosts) you want this fleet to contain. Before calling this -// action, you may want to call DescribeEC2InstanceLimits to get the maximum -// capacity based on the fleet's EC2 instance type. -// -// If you're using auto-scaling (see PutScalingPolicy), you may want to specify -// a minimum and/or maximum capacity. If you don't provide these boundaries, -// auto-scaling can set capacity anywhere between zero and the service limits -// (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift). -// -// To update fleet capacity, specify the fleet ID and the desired number of -// instances. If successful, Amazon GameLift starts or terminates instances -// so that the fleet's active instance count matches the desired instance count. -// You can view a fleet's current capacity information by calling DescribeFleetCapacity. -// If the desired instance count is higher than the instance type's limit, the -// "Limit Exceeded" exception will occur. -func (c *GameLift) UpdateFleetCapacity(input *UpdateFleetCapacityInput) (*UpdateFleetCapacityOutput, error) { - req, out := c.UpdateFleetCapacityRequest(input) - err := req.Send() - return out, err -} - -const opUpdateFleetPortSettings = "UpdateFleetPortSettings" - -// UpdateFleetPortSettingsRequest generates a request for the UpdateFleetPortSettings operation. -func (c *GameLift) UpdateFleetPortSettingsRequest(input *UpdateFleetPortSettingsInput) (req *request.Request, output *UpdateFleetPortSettingsOutput) { - op := &request.Operation{ - Name: opUpdateFleetPortSettings, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateFleetPortSettingsInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateFleetPortSettingsOutput{} - req.Data = output - return -} - -// Updates port settings for a fleet. To update settings, specify the fleet -// ID to be updated and list the permissions you want to update. List the permissions -// you want to add in InboundPermissionAuthorizations, and permissions you want -// to remove in InboundPermissionRevocations. Permissions to be removed must -// match existing fleet permissions. If successful, the fleet ID for the updated -// fleet is returned. -func (c *GameLift) UpdateFleetPortSettings(input *UpdateFleetPortSettingsInput) (*UpdateFleetPortSettingsOutput, error) { - req, out := c.UpdateFleetPortSettingsRequest(input) - err := req.Send() - return out, err -} - -const opUpdateGameSession = "UpdateGameSession" - -// UpdateGameSessionRequest generates a request for the UpdateGameSession operation. -func (c *GameLift) UpdateGameSessionRequest(input *UpdateGameSessionInput) (req *request.Request, output *UpdateGameSessionOutput) { - op := &request.Operation{ - Name: opUpdateGameSession, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateGameSessionInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateGameSessionOutput{} - req.Data = output - return -} - -// Updates game session properties. This includes the session name, maximum -// player count, protection policy, which controls whether or not an active -// game session can be terminated during a scale-down event, and the player -// session creation policy, which controls whether or not new players can join -// the session. To update a game session, specify the game session ID and the -// values you want to change. If successful, an updated GameSession object is -// returned. -func (c *GameLift) UpdateGameSession(input *UpdateGameSessionInput) (*UpdateGameSessionOutput, error) { - req, out := c.UpdateGameSessionRequest(input) - err := req.Send() - return out, err -} - -// Properties describing a fleet alias. -type Alias struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet alias. - AliasId *string `type:"string"` - - // Time stamp indicating when this object was created. Format is an integer - // representing the number of seconds since the Unix epoch (Unix time). - CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Human-readable description of the alias. - Description *string `type:"string"` - - // Time stamp indicating when this object was last modified. Format is an integer - // representing the number of seconds since the Unix epoch (Unix time). - LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Descriptive label associated with this alias. Alias names do not need to - // be unique. - Name *string `type:"string"` - - // Routing configuration for a fleet alias. - RoutingStrategy *RoutingStrategy `type:"structure"` -} - -// String returns the string representation -func (s Alias) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Alias) GoString() string { - return s.String() -} - -// AWS access credentials required to upload game build files to Amazon GameLift. -// These credentials are generated with CreateBuild, and are valid for a limited -// time. If they expire before you upload your game build, get a new set by -// calling RequestUploadCredentials. -type AwsCredentials struct { - _ struct{} `type:"structure"` - - // Access key for an AWS account. - AccessKeyId *string `min:"1" type:"string"` - - // Secret key for an AWS account. - SecretAccessKey *string `min:"1" type:"string"` - - // Token specific to a build ID. - SessionToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s AwsCredentials) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AwsCredentials) GoString() string { - return s.String() -} - -// Properties describing a game build. -type Build struct { - _ struct{} `type:"structure"` - - // Unique identifier for a build. - BuildId *string `type:"string"` - - // Time stamp indicating when this object was created. Format is an integer - // representing the number of seconds since the Unix epoch (Unix time). - CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Descriptive label associated with this build. Build names do not need to - // be unique. It can be set using CreateBuild or UpdateBuild. - Name *string `type:"string"` - - // File size of the uploaded game build, expressed in bytes. When the build - // state is INITIALIZED, this value is 0. - SizeOnDisk *int64 `min:"1" type:"long"` - - // Current status of the build. Possible build states include: INITIALIZED: - // A new build has been defined, but no files have been uploaded. You cannot - // create fleets for builds that are in this state. When a build is successfully - // created, the build state is set to this value. READY: The game build has - // been successfully uploaded. You can now create new fleets for this build.FAILED: - // The game build upload failed. You cannot create new fleets for this build. - Status *string `type:"string" enum:"BuildStatus"` - - // Version associated with this build. Version strings do not need to be unique - // to a build. This value can be set using CreateBuild or UpdateBuild. - Version *string `type:"string"` -} - -// String returns the string representation -func (s Build) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Build) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type CreateAliasInput struct { - _ struct{} `type:"structure"` - - // Human-readable description of the alias. - Description *string `min:"1" type:"string"` - - // Descriptive label associated with this alias. Alias names do not need to - // be unique. - Name *string `min:"1" type:"string" required:"true"` - - // Object specifying the fleet and routing type to use for the alias. - RoutingStrategy *RoutingStrategy `type:"structure" required:"true"` -} - -// String returns the string representation -func (s CreateAliasInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAliasInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAliasInput"} - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.RoutingStrategy == nil { - invalidParams.Add(request.NewErrParamRequired("RoutingStrategy")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type CreateAliasOutput struct { - _ struct{} `type:"structure"` - - // Object containing the newly created alias record. - Alias *Alias `type:"structure"` -} - -// String returns the string representation -func (s CreateAliasOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAliasOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type CreateBuildInput struct { - _ struct{} `type:"structure"` - - // Descriptive label associated with this build. Build names do not need to - // be unique. A build name can be changed later using UpdateBuild. - Name *string `min:"1" type:"string"` - - // Location in Amazon Simple Storage Service (Amazon S3) where a build's files - // are stored. This location is assigned in response to a CreateBuild call, - // and is always in the same region as the service used to create the build. - // For more details see the Amazon S3 documentation (http://aws.amazon.com/documentation/s3/). - StorageLocation *S3Location `type:"structure"` - - // Version associated with this build. Version strings do not need to be unique - // to a build. A build version can be changed later using UpdateBuild. - Version *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s CreateBuildInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateBuildInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateBuildInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateBuildInput"} - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Version != nil && len(*s.Version) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Version", 1)) - } - if s.StorageLocation != nil { - if err := s.StorageLocation.Validate(); err != nil { - invalidParams.AddNested("StorageLocation", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type CreateBuildOutput struct { - _ struct{} `type:"structure"` - - // Set of properties for the newly created build. - Build *Build `type:"structure"` - - // Amazon S3 path and key, identifying where the game build files are stored. - StorageLocation *S3Location `type:"structure"` - - // AWS credentials required when uploading a game build to the storage location. - // These credentials have a limited lifespan and are valid only for the build - // they were issued for. If you need to get fresh credentials, call RequestUploadCredentials. - UploadCredentials *AwsCredentials `type:"structure"` -} - -// String returns the string representation -func (s CreateBuildOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateBuildOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type CreateFleetInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the build you want the new fleet to use. - BuildId *string `type:"string" required:"true"` - - // Human-readable description of the fleet. - Description *string `min:"1" type:"string"` - - // Access limits for incoming traffic. Setting these values limits game server - // access to incoming traffic using specified IP ranges and port numbers. Some - // ports in a range may be restricted. You can provide one or more sets of permissions - // for the fleet. - EC2InboundPermissions []*IpPermission `type:"list"` - - // Type of EC2 instances used in the fleet. EC2 instance types define the CPU, - // memory, storage, and networking capacity of the fleetaposs hosts. Amazon - // GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance - // Types (https://aws.amazon.com/ec2/instance-types/) for detailed descriptions - // of each. - EC2InstanceType *string `type:"string" required:"true" enum:"EC2InstanceType"` - - // Path to game-session log files generated by your game server. Once a game - // session has been terminated, Amazon GameLift captures and stores the logs - // on Amazon S3. Use the GameLift console to access the stored logs. - LogPaths []*string `type:"list"` - - // Descriptive label associated with this fleet. Fleet names do not need to - // be unique. - Name *string `min:"1" type:"string" required:"true"` - - // Game session protection policy to apply to all instances created in this - // fleet. If this parameter is not set, new instances in this fleet will default - // to no protection. Protection can be set for individual instances using UpdateGameSession. - // NoProtection: The game session can be terminated during a scale-down event. - // FullProtection: If the game session is in an ACTIVE status, it cannot be - // terminated during a scale-down event. - NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` - - // Parameters required to launch your game server. These parameters should be - // expressed as a string of command-line parameters. Example: "+sv_port 33435 - // +start_lobby". - ServerLaunchParameters *string `min:"1" type:"string"` - - // Path to the launch executable for the game server. A game server is built - // into a C:\game drive. This value must be expressed as C:\game\[launchpath]. - // Example: If, when built, your game server files are in a folder called "MyGame", - // your log path should be C:\game\MyGame\server.exe. - ServerLaunchPath *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateFleetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateFleetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateFleetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"} - if s.BuildId == nil { - invalidParams.Add(request.NewErrParamRequired("BuildId")) - } - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.EC2InstanceType == nil { - invalidParams.Add(request.NewErrParamRequired("EC2InstanceType")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.ServerLaunchParameters != nil && len(*s.ServerLaunchParameters) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServerLaunchParameters", 1)) - } - if s.ServerLaunchPath == nil { - invalidParams.Add(request.NewErrParamRequired("ServerLaunchPath")) - } - if s.ServerLaunchPath != nil && len(*s.ServerLaunchPath) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServerLaunchPath", 1)) - } - if s.EC2InboundPermissions != nil { - for i, v := range s.EC2InboundPermissions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EC2InboundPermissions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type CreateFleetOutput struct { - _ struct{} `type:"structure"` - - // Properties for the newly created fleet. - FleetAttributes *FleetAttributes `type:"structure"` -} - -// String returns the string representation -func (s CreateFleetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateFleetOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type CreateGameSessionInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet alias. Each request must reference either a - // fleet ID or alias ID, but not both. - AliasId *string `type:"string"` - - // Unique identifier for a fleet. Each request must reference either a fleet - // ID or alias ID, but not both. - FleetId *string `type:"string"` - - // Set of properties used to administer a game session. These properties are - // passed to your game server. - GameProperties []*GameProperty `type:"list"` - - // Maximum number of players that can be connected simultaneously to the game - // session. - MaximumPlayerSessionCount *int64 `type:"integer" required:"true"` - - // Descriptive label associated with this game session. Session names do not - // need to be unique. - Name *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s CreateGameSessionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateGameSessionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateGameSessionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateGameSessionInput"} - if s.MaximumPlayerSessionCount == nil { - invalidParams.Add(request.NewErrParamRequired("MaximumPlayerSessionCount")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.GameProperties != nil { - for i, v := range s.GameProperties { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GameProperties", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type CreateGameSessionOutput struct { - _ struct{} `type:"structure"` - - // Object containing the newly created game session record. - GameSession *GameSession `type:"structure"` -} - -// String returns the string representation -func (s CreateGameSessionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateGameSessionOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type CreatePlayerSessionInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a game session. Specify the game session you want to - // add a player to. - GameSessionId *string `type:"string" required:"true"` - - // Unique identifier for the player to be added. - PlayerId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreatePlayerSessionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreatePlayerSessionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePlayerSessionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePlayerSessionInput"} - if s.GameSessionId == nil { - invalidParams.Add(request.NewErrParamRequired("GameSessionId")) - } - if s.PlayerId == nil { - invalidParams.Add(request.NewErrParamRequired("PlayerId")) - } - if s.PlayerId != nil && len(*s.PlayerId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type CreatePlayerSessionOutput struct { - _ struct{} `type:"structure"` - - // Object containing the newly created player session record. - PlayerSession *PlayerSession `type:"structure"` -} - -// String returns the string representation -func (s CreatePlayerSessionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreatePlayerSessionOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type CreatePlayerSessionsInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a game session. - GameSessionId *string `type:"string" required:"true"` - - // List of unique identifiers for the players to be added. - PlayerIds []*string `min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s CreatePlayerSessionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreatePlayerSessionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePlayerSessionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePlayerSessionsInput"} - if s.GameSessionId == nil { - invalidParams.Add(request.NewErrParamRequired("GameSessionId")) - } - if s.PlayerIds == nil { - invalidParams.Add(request.NewErrParamRequired("PlayerIds")) - } - if s.PlayerIds != nil && len(s.PlayerIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PlayerIds", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type CreatePlayerSessionsOutput struct { - _ struct{} `type:"structure"` - - // Collection of player session objects created for the added players. - PlayerSessions []*PlayerSession `type:"list"` -} - -// String returns the string representation -func (s CreatePlayerSessionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreatePlayerSessionsOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DeleteAliasInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet alias. Specify the alias you want to delete. - AliasId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteAliasInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAliasInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAliasInput"} - if s.AliasId == nil { - invalidParams.Add(request.NewErrParamRequired("AliasId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteAliasOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteAliasOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAliasOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DeleteBuildInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the build you want to delete. - BuildId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteBuildInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteBuildInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBuildInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBuildInput"} - if s.BuildId == nil { - invalidParams.Add(request.NewErrParamRequired("BuildId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteBuildOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteBuildOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteBuildOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DeleteFleetInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the fleet you want to delete. - FleetId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteFleetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteFleetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteFleetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteFleetInput"} - if s.FleetId == nil { - invalidParams.Add(request.NewErrParamRequired("FleetId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteFleetOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteFleetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteFleetOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DeleteScalingPolicyInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet. - FleetId *string `type:"string" required:"true"` - - // Descriptive label associated with this scaling policy. Policy names do not - // need to be unique. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteScalingPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteScalingPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteScalingPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteScalingPolicyInput"} - if s.FleetId == nil { - invalidParams.Add(request.NewErrParamRequired("FleetId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteScalingPolicyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteScalingPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteScalingPolicyOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeAliasInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet alias. Specify the alias you want to retrieve. - AliasId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeAliasInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAliasInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAliasInput"} - if s.AliasId == nil { - invalidParams.Add(request.NewErrParamRequired("AliasId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribeAliasOutput struct { - _ struct{} `type:"structure"` - - // Object containing the requested alias. - Alias *Alias `type:"structure"` -} - -// String returns the string representation -func (s DescribeAliasOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAliasOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeBuildInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the build you want to retrieve properties for. - BuildId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeBuildInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeBuildInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeBuildInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeBuildInput"} - if s.BuildId == nil { - invalidParams.Add(request.NewErrParamRequired("BuildId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribeBuildOutput struct { - _ struct{} `type:"structure"` - - // Set of properties describing the requested build. - Build *Build `type:"structure"` -} - -// String returns the string representation -func (s DescribeBuildOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeBuildOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeEC2InstanceLimitsInput struct { - _ struct{} `type:"structure"` - - // Type of EC2 instances used in the fleet. EC2 instance types define the CPU, - // memory, storage, and networking capacity of the fleetaposs hosts. Amazon - // GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance - // Types (https://aws.amazon.com/ec2/instance-types/) for detailed descriptions - // of each. Leave this parameter blank to retrieve limits for all types. - EC2InstanceType *string `type:"string" enum:"EC2InstanceType"` -} - -// String returns the string representation -func (s DescribeEC2InstanceLimitsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEC2InstanceLimitsInput) GoString() string { - return s.String() -} - -// Represents the returned data in response to a request action. -type DescribeEC2InstanceLimitsOutput struct { - _ struct{} `type:"structure"` - - // Object containing the maximum number of instances for the specified instance - // type. - EC2InstanceLimits []*EC2InstanceLimit `type:"list"` -} - -// String returns the string representation -func (s DescribeEC2InstanceLimitsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEC2InstanceLimitsOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeFleetAttributesInput struct { - _ struct{} `type:"structure"` - - // Unique identifiers for the fleet(s) that you want to retrieve attributes - // for. Leave this parameter empty to retrieve attributes for all fleets. - FleetIds []*string `min:"1" type:"list"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. This parameter is ignored when - // the request specifies one or a list of fleet IDs. - Limit *int64 `min:"1" type:"integer"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. This parameter is ignored - // when the request specifies one or a list of fleet IDs. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeFleetAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFleetAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeFleetAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeFleetAttributesInput"} - if s.FleetIds != nil && len(s.FleetIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribeFleetAttributesOutput struct { - _ struct{} `type:"structure"` - - // Collection of objects containing attribute metadata for each requested fleet - // ID. - FleetAttributes []*FleetAttributes `type:"list"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeFleetAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFleetAttributesOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeFleetCapacityInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the fleet(s) you want to retrieve capacity information - // for. - FleetIds []*string `min:"1" type:"list"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. This parameter is ignored when - // the request specifies one or a list of fleet IDs. - Limit *int64 `min:"1" type:"integer"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. This parameter is ignored - // when the request specifies one or a list of fleet IDs. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeFleetCapacityInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFleetCapacityInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeFleetCapacityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeFleetCapacityInput"} - if s.FleetIds != nil && len(s.FleetIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribeFleetCapacityOutput struct { - _ struct{} `type:"structure"` - - // Collection of objects containing capacity information for each requested - // fleet ID. Leave this parameter empty to retrieve capacity information for - // all fleets. - FleetCapacity []*FleetCapacity `type:"list"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeFleetCapacityOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFleetCapacityOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeFleetEventsInput struct { - _ struct{} `type:"structure"` - - // Most recent date to retrieve event logs for. If no end time is specified, - // this call returns entries from the specified start time up to the present. - // Format is an integer representing the number of seconds since the Unix epoch - // (Unix time). - EndTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Unique identifier for the fleet to get event logs for. - FleetId *string `type:"string" required:"true"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. - Limit *int64 `min:"1" type:"integer"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. - NextToken *string `min:"1" type:"string"` - - // Earliest date to retrieve event logs for. If no start time is specified, - // this call returns entries starting from when the fleet was created to the - // specified end time. Format is an integer representing the number of seconds - // since the Unix epoch (Unix time). - StartTime *time.Time `type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s DescribeFleetEventsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFleetEventsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeFleetEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeFleetEventsInput"} - if s.FleetId == nil { - invalidParams.Add(request.NewErrParamRequired("FleetId")) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribeFleetEventsOutput struct { - _ struct{} `type:"structure"` - - // Collection of objects containing event log entries for the specified fleet. - Events []*Event `type:"list"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeFleetEventsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFleetEventsOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeFleetPortSettingsInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the fleet you want to retrieve port settings for. - FleetId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeFleetPortSettingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFleetPortSettingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeFleetPortSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeFleetPortSettingsInput"} - if s.FleetId == nil { - invalidParams.Add(request.NewErrParamRequired("FleetId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribeFleetPortSettingsOutput struct { - _ struct{} `type:"structure"` - - // Object containing port settings for the requested fleet ID. - InboundPermissions []*IpPermission `type:"list"` -} - -// String returns the string representation -func (s DescribeFleetPortSettingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFleetPortSettingsOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeFleetUtilizationInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the fleet(s) you want to retrieve utilization data - // for. Leave this parameter empty to retrieve utilization data for all fleets. - FleetIds []*string `min:"1" type:"list"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. This parameter is ignored when - // the request specifies one or a list of fleet IDs. - Limit *int64 `min:"1" type:"integer"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. This parameter is ignored - // when the request specifies one or a list of fleet IDs. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeFleetUtilizationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFleetUtilizationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeFleetUtilizationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeFleetUtilizationInput"} - if s.FleetIds != nil && len(s.FleetIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribeFleetUtilizationOutput struct { - _ struct{} `type:"structure"` - - // Collection of objects containing utilization information for each requested - // fleet ID. - FleetUtilization []*FleetUtilization `type:"list"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeFleetUtilizationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFleetUtilizationOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeGameSessionDetailsInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet alias. Specify an alias to retrieve information - // on all game sessions active on the fleet. - AliasId *string `type:"string"` - - // Unique identifier for a fleet. Specify a fleet to retrieve information on - // all game sessions active on the fleet. - FleetId *string `type:"string"` - - // Unique identifier for a game session. Specify the game session to retrieve - // information on. - GameSessionId *string `type:"string"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. - Limit *int64 `min:"1" type:"integer"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. - NextToken *string `min:"1" type:"string"` - - // Game session status to filter results on. Possible game session states include - // ACTIVE, TERMINATED, ACTIVATING and TERMINATING (the last two are transitory). - StatusFilter *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeGameSessionDetailsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeGameSessionDetailsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeGameSessionDetailsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeGameSessionDetailsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.StatusFilter != nil && len(*s.StatusFilter) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StatusFilter", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribeGameSessionDetailsOutput struct { - _ struct{} `type:"structure"` - - // Collection of objects containing game session properties and the protection - // policy currently in force for each session matching the request. - GameSessionDetails []*GameSessionDetail `type:"list"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeGameSessionDetailsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeGameSessionDetailsOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeGameSessionsInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet alias. Specify an alias to retrieve information - // on all game sessions active on the fleet. - AliasId *string `type:"string"` - - // Unique identifier for a fleet. Specify a fleet to retrieve information on - // all game sessions active on the fleet. - FleetId *string `type:"string"` - - // Unique identifier for a game session. Specify the game session to retrieve - // information on. - GameSessionId *string `type:"string"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. - Limit *int64 `min:"1" type:"integer"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. - NextToken *string `min:"1" type:"string"` - - // Game session status to filter results on. Possible game session states include - // ACTIVE, TERMINATED, ACTIVATING and TERMINATING (the last two are transitory). - StatusFilter *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeGameSessionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeGameSessionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeGameSessionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeGameSessionsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.StatusFilter != nil && len(*s.StatusFilter) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StatusFilter", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribeGameSessionsOutput struct { - _ struct{} `type:"structure"` - - // Collection of objects containing game session properties for each session - // matching the request. - GameSessions []*GameSession `type:"list"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeGameSessionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeGameSessionsOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribePlayerSessionsInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a game session. - GameSessionId *string `type:"string"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. If a player session ID is specified, - // this parameter is ignored. - Limit *int64 `min:"1" type:"integer"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. If a player session ID is - // specified, this parameter is ignored. - NextToken *string `min:"1" type:"string"` - - // Unique identifier for a player. - PlayerId *string `min:"1" type:"string"` - - // Unique identifier for a player session. - PlayerSessionId *string `type:"string"` - - // Player session status to filter results on. Possible player session states - // include: RESERVED: The player session request has been received, but the - // player has not yet connected to the game server and/or been validated. ACTIVE: - // The player has been validated by the game server and is currently connected.COMPLETED: - // The player connection has been dropped.TIMEDOUT: A player session request - // was received, but the player did not connect and/or was not validated within - // the time-out limit (60 seconds). - PlayerSessionStatusFilter *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribePlayerSessionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribePlayerSessionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribePlayerSessionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribePlayerSessionsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.PlayerId != nil && len(*s.PlayerId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1)) - } - if s.PlayerSessionStatusFilter != nil && len(*s.PlayerSessionStatusFilter) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PlayerSessionStatusFilter", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribePlayerSessionsOutput struct { - _ struct{} `type:"structure"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` - - // Collection of objects containing properties for each player session that - // matches the request. - PlayerSessions []*PlayerSession `type:"list"` -} - -// String returns the string representation -func (s DescribePlayerSessionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribePlayerSessionsOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type DescribeScalingPoliciesInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet. Specify the fleet to retrieve scaling policies - // for. - FleetId *string `type:"string" required:"true"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. - Limit *int64 `min:"1" type:"integer"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. - NextToken *string `min:"1" type:"string"` - - // Game session status to filter results on. A scaling policy is only in force - // when in an Active state. ACTIVE: The scaling policy is currently in force. - // UPDATEREQUESTED: A request to update the scaling policy has been received. - // UPDATING: A change is being made to the scaling policy. DELETEREQUESTED: - // A request to delete the scaling policy has been received. DELETING: The scaling - // policy is being deleted. DELETED: The scaling policy has been deleted. ERROR: - // An error occurred in creating the policy. It should be removed and recreated. - StatusFilter *string `type:"string" enum:"ScalingStatusType"` -} - -// String returns the string representation -func (s DescribeScalingPoliciesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScalingPoliciesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeScalingPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeScalingPoliciesInput"} - if s.FleetId == nil { - invalidParams.Add(request.NewErrParamRequired("FleetId")) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type DescribeScalingPoliciesOutput struct { - _ struct{} `type:"structure"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` - - // Collection of objects containing the scaling policies matching the request. - ScalingPolicies []*ScalingPolicy `type:"list"` -} - -// String returns the string representation -func (s DescribeScalingPoliciesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeScalingPoliciesOutput) GoString() string { - return s.String() -} - -// Current status of fleet capacity. The number of active instances should match -// or be in the process of matching the number of desired instances. Pending -// and terminating counts are non-zero only if fleet capacity is adjusting to -// an UpdateFleetCapacity request, or if access to resources is temporarily -// affected. -type EC2InstanceCounts struct { - _ struct{} `type:"structure"` - - // Actual number of active instances in the fleet. - ACTIVE *int64 `type:"integer"` - - // Ideal number of active instances in the fleet. - DESIRED *int64 `type:"integer"` - - // Number of active instances in the fleet that are not currently hosting a - // game session. - IDLE *int64 `type:"integer"` - - // Maximum value allowed for the fleet's instance count. - MAXIMUM *int64 `type:"integer"` - - // Minimum value allowed for the fleet's instance count. - MINIMUM *int64 `type:"integer"` - - // Number of instances in the fleet that are starting but not yet active. - PENDING *int64 `type:"integer"` - - // Number of instances in the fleet that are no longer active but haven't yet - // been terminated. - TERMINATING *int64 `type:"integer"` -} - -// String returns the string representation -func (s EC2InstanceCounts) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EC2InstanceCounts) GoString() string { - return s.String() -} - -// Maximum number of instances allowed based on the Amazon Elastic Compute Cloud -// (Amazon EC2) instance type. Instance limits can be retrieved by calling DescribeEC2InstanceLimits. -type EC2InstanceLimit struct { - _ struct{} `type:"structure"` - - // Number of instances of the specified type that are currently in use by this - // AWS account. - CurrentInstances *int64 `type:"integer"` - - // Type of EC2 instances used in the fleet. EC2 instance types define the CPU, - // memory, storage, and networking capacity of the fleetaposs hosts. Amazon - // GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance - // Types (https://aws.amazon.com/ec2/instance-types/) for detailed descriptions - // of each. - EC2InstanceType *string `type:"string" enum:"EC2InstanceType"` - - // Number of instances allowed. - InstanceLimit *int64 `type:"integer"` -} - -// String returns the string representation -func (s EC2InstanceLimit) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EC2InstanceLimit) GoString() string { - return s.String() -} - -// Log entry describing an event involving an Amazon GameLift resource (such -// as a fleet). -type Event struct { - _ struct{} `type:"structure"` - - // Type of event being logged. - EventCode *string `type:"string" enum:"EventCode"` - - // Unique identifier for a fleet event. - EventId *string `min:"1" type:"string"` - - // Time stamp indicating when this event occurred. Format is an integer representing - // the number of seconds since the Unix epoch (Unix time). - EventTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Additional information related to the event. - Message *string `min:"1" type:"string"` - - // Unique identifier for the resource, such as a fleet ID. - ResourceId *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s Event) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Event) GoString() string { - return s.String() -} - -// General properties describing a fleet. -type FleetAttributes struct { - _ struct{} `type:"structure"` - - // Unique identifier for a build. - BuildId *string `type:"string"` - - // Time stamp indicating when this object was created. Format is an integer - // representing the number of seconds since the Unix epoch (Unix time). - CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Human-readable description of the fleet. - Description *string `min:"1" type:"string"` - - // Unique identifier for a fleet. - FleetId *string `type:"string"` - - // Path to game-session log files generated by your game server. Once a game - // session has been terminated, Amazon GameLift captures and stores the logs - // on Amazon S3. Use the GameLift console to access the stored logs. - LogPaths []*string `type:"list"` - - // Descriptive label associated with this fleet. Fleet names do not need to - // be unique. - Name *string `min:"1" type:"string"` - - // Type of game session protection to set for all new instances started in the - // fleet. NoProtection: The game session can be terminated during a scale-down - // event. FullProtection: If the game session is in an ACTIVE status, it cannot - // be terminated during a scale-down event. - NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` - - // Parameters required to launch your game server. These parameters should be - // expressed as a string of command-line parameters. Example: "+sv_port 33435 - // +start_lobby". - ServerLaunchParameters *string `min:"1" type:"string"` - - // Path to the launch executable for the game server. A game server is built - // into a C:\game drive. This value must be expressed as C:\game\[launchpath]. - // Example: If, when built, your game server files are in a folder called "MyGame", - // your log path should be C:\game\MyGame\server.exe. - ServerLaunchPath *string `min:"1" type:"string"` - - // Current status of the fleet. Possible fleet states include: NEW: A new fleet - // has been defined and hosts allocated.DOWNLOADING/VALIDATING/BUILDING/ACTIVATING: - // The new fleet is being set up with the game build, and new hosts are being - // started.ACTIVE: Hosts can now accept game sessions.ERROR: An error occurred - // when downloading, validating, building, or activating the fleet.DELETING: - // Hosts are responding to a delete fleet request.TERMINATED: The fleet no longer - // exists. - Status *string `type:"string" enum:"FleetStatus"` - - // Time stamp indicating when this fleet was terminated. Format is an integer - // representing the number of seconds since the Unix epoch (Unix time). - TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s FleetAttributes) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FleetAttributes) GoString() string { - return s.String() -} - -// Information about the fleet's capacity. Fleet capacity is measured in EC2 -// instances. By default, new fleets have a capacity of one instance, but can -// be updated as needed. The maximum number of instances for a fleet is determined -// by the fleet's instance type. -type FleetCapacity struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet. - FleetId *string `type:"string"` - - // Current status of fleet capacity. - InstanceCounts *EC2InstanceCounts `type:"structure"` - - // Type of EC2 instances used in the fleet. EC2 instance types define the CPU, - // memory, storage, and networking capacity of the fleetaposs hosts. Amazon - // GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance - // Types (https://aws.amazon.com/ec2/instance-types/) for detailed descriptions - // of each. - InstanceType *string `type:"string" enum:"EC2InstanceType"` -} - -// String returns the string representation -func (s FleetCapacity) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FleetCapacity) GoString() string { - return s.String() -} - -// Current status of fleet utilization, including the number of game and player -// sessions being hosted. -type FleetUtilization struct { - _ struct{} `type:"structure"` - - // Number of active game sessions currently being hosted on fleet game servers. - ActiveGameSessionCount *int64 `type:"integer"` - - // Number of active player sessions currently being hosted on fleet game servers. - CurrentPlayerSessionCount *int64 `type:"integer"` - - // Unique identifier for a fleet. - FleetId *string `type:"string"` - - // Maximum players allowed across all game sessions currently hosted in the - // fleet. - MaximumPlayerSessionCount *int64 `type:"integer"` -} - -// String returns the string representation -func (s FleetUtilization) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FleetUtilization) GoString() string { - return s.String() -} - -// Set of key-value pairs containing information your game server requires to -// set up sessions. This object allows you to pass in any set of data needed -// for your game. For more information, see the Amazon GameLift Developer Guide -// (http://docs.aws.amazon.com/gamelift/latest/developerguide/). -type GameProperty struct { - _ struct{} `type:"structure"` - - Key *string `type:"string" required:"true"` - - Value *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s GameProperty) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GameProperty) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GameProperty) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GameProperty"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Properties describing a game session. -type GameSession struct { - _ struct{} `type:"structure"` - - // Time stamp indicating when this object was created. Format is an integer - // representing the number of seconds since the Unix epoch (Unix time). - CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Number of players currently in the game session. - CurrentPlayerSessionCount *int64 `type:"integer"` - - // Unique identifier for a fleet. - FleetId *string `type:"string"` - - // Set of custom properties for the game session. - GameProperties []*GameProperty `type:"list"` - - // Unique identifier for a game session. - GameSessionId *string `type:"string"` - - // IP address of the game session. - IpAddress *string `type:"string"` - - // Maximum number of players allowed in the game session. - MaximumPlayerSessionCount *int64 `type:"integer"` - - // Descriptive label associated with this game session. Session names do not - // need to be unique. - Name *string `min:"1" type:"string"` - - // Indicates whether or not the game session is accepting new players. - PlayerSessionCreationPolicy *string `type:"string" enum:"PlayerSessionCreationPolicy"` - - // Current status of the game session. A game session must be in an ACTIVE state - // to have player sessions. - Status *string `type:"string" enum:"GameSessionStatus"` - - // Time stamp indicating when this fleet was terminated. Format is an integer - // representing the number of seconds since the Unix epoch (Unix time). - TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s GameSession) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GameSession) GoString() string { - return s.String() -} - -// A game session's properties and the protection policy currently in force. -type GameSessionDetail struct { - _ struct{} `type:"structure"` - - // Properties describing a game session. - GameSession *GameSession `type:"structure"` - - // Current status of protection for the game session. NoProtection: The game - // session can be terminated during a scale-down event. FullProtection: If the - // game session is in an ACTIVE status, it cannot be terminated during a scale-down - // event. - ProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` -} - -// String returns the string representation -func (s GameSessionDetail) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GameSessionDetail) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type GetGameSessionLogUrlInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a game session. Specify the game session you want to - // get logs for. - GameSessionId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s GetGameSessionLogUrlInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetGameSessionLogUrlInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetGameSessionLogUrlInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetGameSessionLogUrlInput"} - if s.GameSessionId == nil { - invalidParams.Add(request.NewErrParamRequired("GameSessionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type GetGameSessionLogUrlOutput struct { - _ struct{} `type:"structure"` - - // Location of the requested game session logs, available for download. - PreSignedUrl *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s GetGameSessionLogUrlOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetGameSessionLogUrlOutput) GoString() string { - return s.String() -} - -// IP addresses and port settings used to limit access by incoming traffic (players) -// to a fleet. Permissions specify a range of IP addresses and port settings -// that must be used to gain access to a game server on a fleet machine. -type IpPermission struct { - _ struct{} `type:"structure"` - - // Starting value for a range of allowed port numbers. - FromPort *int64 `min:"1025" type:"integer" required:"true"` - - // Range of allowed IP addresses. This value must be expressed in CIDR notation - // (https://tools.ietf.org/id/cidr). Example: "000.000.000.000/[subnet mask]" - // or optionally the shortened version "0.0.0.0/[subnet mask]". - IpRange *string `type:"string" required:"true"` - - // Network communication protocol used by the fleet. - Protocol *string `type:"string" required:"true" enum:"IpProtocol"` - - // Ending value for a range of allowed port numbers. Port numbers are end-inclusive. - // This value must be higher than FromPort. - ToPort *int64 `min:"1025" type:"integer" required:"true"` -} - -// String returns the string representation -func (s IpPermission) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IpPermission) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *IpPermission) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IpPermission"} - if s.FromPort == nil { - invalidParams.Add(request.NewErrParamRequired("FromPort")) - } - if s.FromPort != nil && *s.FromPort < 1025 { - invalidParams.Add(request.NewErrParamMinValue("FromPort", 1025)) - } - if s.IpRange == nil { - invalidParams.Add(request.NewErrParamRequired("IpRange")) - } - if s.Protocol == nil { - invalidParams.Add(request.NewErrParamRequired("Protocol")) - } - if s.ToPort == nil { - invalidParams.Add(request.NewErrParamRequired("ToPort")) - } - if s.ToPort != nil && *s.ToPort < 1025 { - invalidParams.Add(request.NewErrParamMinValue("ToPort", 1025)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the input for a request action. -type ListAliasesInput struct { - _ struct{} `type:"structure"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. - Limit *int64 `min:"1" type:"integer"` - - // Descriptive label associated with this alias. Alias names do not need to - // be unique. - Name *string `min:"1" type:"string"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. - NextToken *string `min:"1" type:"string"` - - // Type of routing to filter results on. Use this parameter to retrieve only - // aliases of a certain type. To retrieve all aliases, leave this parameter - // empty. Possible routing types include: SIMPLE: The alias resolves to one - // specific fleet. Use this type when routing to active fleets.TERMINAL: The - // alias does not resolve to a fleet but instead can be used to display a message - // to the user. A terminal alias throws a TerminalRoutingStrategyException with - // the RoutingStrategy message embedded. - RoutingStrategyType *string `type:"string" enum:"RoutingStrategyType"` -} - -// String returns the string representation -func (s ListAliasesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAliasesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAliasesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAliasesInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type ListAliasesOutput struct { - _ struct{} `type:"structure"` - - // Collection of alias records that match the list request. - Aliases []*Alias `type:"list"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListAliasesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAliasesOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type ListBuildsInput struct { - _ struct{} `type:"structure"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. - Limit *int64 `min:"1" type:"integer"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. - NextToken *string `min:"1" type:"string"` - - // Build state to filter results on. Use this parameter to retrieve builds in - // a certain state. To retrieve all builds, leave this parameter empty. Possible - // build states include: INITIALIZED: A new build has been defined, but no files - // have been uploaded. You cannot create fleets for builds that are in this - // state. When a build is successfully created, the build state is set to this - // value. READY: The game build has been successfully uploaded. You can now - // create new fleets for this build.FAILED: The game build upload failed. You - // cannot create new fleets for this build. - Status *string `type:"string" enum:"BuildStatus"` -} - -// String returns the string representation -func (s ListBuildsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListBuildsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListBuildsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListBuildsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type ListBuildsOutput struct { - _ struct{} `type:"structure"` - - // Collection of build records that match the request. - Builds []*Build `type:"list"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListBuildsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListBuildsOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type ListFleetsInput struct { - _ struct{} `type:"structure"` - - // Unique identifier of the build to return fleets for. Use this parameter to - // return only fleets using the specified build. To retrieve all fleets, leave - // this parameter empty. - BuildId *string `type:"string"` - - // Maximum number of results to return. You can use this parameter with NextToken - // to get results as a set of sequential pages. - Limit *int64 `min:"1" type:"integer"` - - // Token indicating the start of the next sequential page of results. Use the - // token that is returned with a previous call to this action. To specify the - // start of the result set, do not specify a value. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListFleetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListFleetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListFleetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListFleetsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type ListFleetsOutput struct { - _ struct{} `type:"structure"` - - // Set of fleet IDs matching the list request. You can retrieve additional information - // about all returned fleets by passing this result set to a call to DescribeFleetAttributes, - // DescribeFleetCapacity, and DescribeFleetUtilization. - FleetIds []*string `min:"1" type:"list"` - - // Token indicating where to resume retrieving results on the next call to this - // action. If no token is returned, these results represent the end of the list. - // - // If a request has a limit that exactly matches the number of remaining results, - // a token is returned even though there are no more results to retrieve. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListFleetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListFleetsOutput) GoString() string { - return s.String() -} - -// Properties describing a player session. -type PlayerSession struct { - _ struct{} `type:"structure"` - - // Time stamp indicating when this object was created. Format is an integer - // representing the number of seconds since the Unix epoch (Unix time). - CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Unique identifier for a fleet. - FleetId *string `type:"string"` - - // Unique identifier for a game session. - GameSessionId *string `type:"string"` - - // Game session IP address. All player sessions reference the game session location. - IpAddress *string `type:"string"` - - // Unique identifier for a player. - PlayerId *string `min:"1" type:"string"` - - // Unique identifier for a player session. - PlayerSessionId *string `type:"string"` - - // Current status of the player session. Possible player session states include: - // RESERVED: The player session request has been received, but the player has - // not yet connected to the game server and/or been validated. ACTIVE: The player - // has been validated by the game server and is currently connected.COMPLETED: - // The player connection has been dropped.TIMEDOUT: A player session request - // was received, but the player did not connect and/or was not validated within - // the time-out limit (60 seconds). - Status *string `type:"string" enum:"PlayerSessionStatus"` - - // Time stamp indicating when this fleet was terminated. Format is an integer - // representing the number of seconds since the Unix epoch (Unix time). - TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s PlayerSession) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PlayerSession) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type PutScalingPolicyInput struct { - _ struct{} `type:"structure"` - - // Comparison operator to use when measuring the metric against the threshold - // value. - ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperatorType"` - - // Length of time (in minutes) the metric must be at or beyond the threshold - // before a scaling event is triggered. - EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"` - - // Unique identity for the fleet to scale with this policy. - FleetId *string `type:"string" required:"true"` - - // Name of the Service-defined metric that is used to trigger an adjustment. - // ActivatingGameSessions: number of game sessions in the process of being - // created (game session status = ACTIVATING). ActiveGameSessions: number of - // game sessions currently running (game session status = ACTIVE). CurrentPlayerSessions: - // number of active or reserved player sessions (player session status = ACTIVE - // or RESERVED). AvailablePlayerSessions: number of player session slots currently - // available in active game sessions across the fleet, calculated by subtracting - // a game session's current player session count from its maximum player session - // count. This number includes game sessions that are not currently accepting - // players (game session PlayerSessionCreationPolicy = DENY_ALL). ActiveInstances: - // number of instances currently running a game session. IdleInstances: number - // of instances not currently running a game session. - MetricName *string `type:"string" required:"true" enum:"MetricName"` - - // Descriptive label associated with this scaling policy. Policy names do not - // need to be unique. A fleet can have only one scaling policy with the same - // name. - Name *string `min:"1" type:"string" required:"true"` - - // Amount of adjustment to make, based on the scaling adjustment type. - ScalingAdjustment *int64 `type:"integer" required:"true"` - - // Type of adjustment to make to a fleet's instance count (see FleetCapacity): - // ChangeInCapacity: add (or subtract) the scaling adjustment value from the - // current instance count. Positive values scale up while negative values scale - // down. ExactCapacity: set the instance count to the scaling adjustment value. - // PercentChangeInCapacity: increase or reduce the current instance count by - // the scaling adjustment, read as a percentage. Positive values scale up while - // negative values scale down; for example, a value of "-10" scales the fleet - // down by 10%. - ScalingAdjustmentType *string `type:"string" required:"true" enum:"ScalingAdjustmentType"` - - // Metric value used to trigger a scaling event. - Threshold *float64 `type:"double" required:"true"` -} - -// String returns the string representation -func (s PutScalingPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutScalingPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutScalingPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutScalingPolicyInput"} - if s.ComparisonOperator == nil { - invalidParams.Add(request.NewErrParamRequired("ComparisonOperator")) - } - if s.EvaluationPeriods == nil { - invalidParams.Add(request.NewErrParamRequired("EvaluationPeriods")) - } - if s.EvaluationPeriods != nil && *s.EvaluationPeriods < 1 { - invalidParams.Add(request.NewErrParamMinValue("EvaluationPeriods", 1)) - } - if s.FleetId == nil { - invalidParams.Add(request.NewErrParamRequired("FleetId")) - } - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.ScalingAdjustment == nil { - invalidParams.Add(request.NewErrParamRequired("ScalingAdjustment")) - } - if s.ScalingAdjustmentType == nil { - invalidParams.Add(request.NewErrParamRequired("ScalingAdjustmentType")) - } - if s.Threshold == nil { - invalidParams.Add(request.NewErrParamRequired("Threshold")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type PutScalingPolicyOutput struct { - _ struct{} `type:"structure"` - - // Descriptive label associated with this scaling policy. Policy names do not - // need to be unique. - Name *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s PutScalingPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutScalingPolicyOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type RequestUploadCredentialsInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the build you want to get credentials for. - BuildId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s RequestUploadCredentialsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RequestUploadCredentialsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RequestUploadCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RequestUploadCredentialsInput"} - if s.BuildId == nil { - invalidParams.Add(request.NewErrParamRequired("BuildId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type RequestUploadCredentialsOutput struct { - _ struct{} `type:"structure"` - - // Amazon S3 path and key, identifying where the game build files are stored. - StorageLocation *S3Location `type:"structure"` - - // AWS credentials required when uploading a game build to the storage location. - // These credentials have a limited lifespan and are valid only for the build - // they were issued for. - UploadCredentials *AwsCredentials `type:"structure"` -} - -// String returns the string representation -func (s RequestUploadCredentialsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RequestUploadCredentialsOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type ResolveAliasInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the alias you want to resolve. - AliasId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s ResolveAliasInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResolveAliasInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResolveAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResolveAliasInput"} - if s.AliasId == nil { - invalidParams.Add(request.NewErrParamRequired("AliasId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type ResolveAliasOutput struct { - _ struct{} `type:"structure"` - - // Fleet ID associated with the requested alias. - FleetId *string `type:"string"` -} - -// String returns the string representation -func (s ResolveAliasOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResolveAliasOutput) GoString() string { - return s.String() -} - -// Routing configuration for a fleet alias. -type RoutingStrategy struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet. - FleetId *string `type:"string"` - - // Message text to be used with a terminal routing strategy. - Message *string `type:"string"` - - // Type of routing strategy. Possible routing types include: SIMPLE: The alias - // resolves to one specific fleet. Use this type when routing to active fleets.TERMINAL: - // The alias does not resolve to a fleet but instead can be used to display - // a message to the user. A terminal alias throws a TerminalRoutingStrategyException - // with the RoutingStrategy message embedded. - Type *string `type:"string" enum:"RoutingStrategyType"` -} - -// String returns the string representation -func (s RoutingStrategy) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RoutingStrategy) GoString() string { - return s.String() -} - -// Location in Amazon Simple Storage Service (Amazon S3) where a build's files -// are stored. This location is assigned in response to a CreateBuild call, -// and is always in the same region as the service used to create the build. -// For more details see the Amazon S3 documentation (http://aws.amazon.com/documentation/s3/). -type S3Location struct { - _ struct{} `type:"structure"` - - // Amazon S3 bucket identifier. - Bucket *string `min:"1" type:"string"` - - // Amazon S3 bucket key. - Key *string `min:"1" type:"string"` - - RoleArn *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s S3Location) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s S3Location) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *S3Location) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3Location"} - if s.Bucket != nil && len(*s.Bucket) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.RoleArn != nil && len(*s.RoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Rule that controls how a fleet is scaled. Scaling policies are uniquely identified -// by the combination of name and fleet ID. -type ScalingPolicy struct { - _ struct{} `type:"structure"` - - // Comparison operator to use when measuring a metric against the threshold - // value. - ComparisonOperator *string `type:"string" enum:"ComparisonOperatorType"` - - // Length of time (in minutes) the metric must be at or beyond the threshold - // before a scaling event is triggered. - EvaluationPeriods *int64 `min:"1" type:"integer"` - - // Unique identity for the fleet associated with this scaling policy. - FleetId *string `type:"string"` - - // Name of the GameLift-defined metric that is used to trigger an adjustment. - // ActivatingGameSessions: number of game sessions in the process of being - // created (game session status = ACTIVATING). ActiveGameSessions: number of - // game sessions currently running (game session status = ACTIVE). CurrentPlayerSessions: - // number of active or reserved player sessions (player session status = ACTIVE - // or RESERVED). AvailablePlayerSessions: number of player session slots currently - // available in active game sessions across the fleet, calculated by subtracting - // a game session's current player session count from its maximum player session - // count. This number does include game sessions that are not currently accepting - // players (game session PlayerSessionCreationPolicy = DENY_ALL). ActiveInstances: - // number of instances currently running a game session. IdleInstances: number - // of instances not currently running a game session. - MetricName *string `type:"string" enum:"MetricName"` - - // Descriptive label associated with this scaling policy. Policy names do not - // need to be unique. - Name *string `min:"1" type:"string"` - - // Amount of adjustment to make, based on the scaling adjustment type. - ScalingAdjustment *int64 `type:"integer"` - - // Type of adjustment to make to a fleet's instance count (see FleetCapacity): - // ChangeInCapacity: add (or subtract) the scaling adjustment value from the - // current instance count. Positive values scale up while negative values scale - // down. ExactCapacity: set the instance count to the scaling adjustment value. - // PercentChangeInCapacity: increase or reduce the current instance count by - // the scaling adjustment, read as a percentage. Positive values scale up while - // negative values scale down. - ScalingAdjustmentType *string `type:"string" enum:"ScalingAdjustmentType"` - - // Current status of the scaling policy. The scaling policy is only in force - // when in an Active state. ACTIVE: The scaling policy is currently in force. - // UPDATEREQUESTED: A request to update the scaling policy has been received. - // UPDATING: A change is being made to the scaling policy. DELETEREQUESTED: - // A request to delete the scaling policy has been received. DELETING: The scaling - // policy is being deleted. DELETED: The scaling policy has been deleted. ERROR: - // An error occurred in creating the policy. It should be removed and recreated. - Status *string `type:"string" enum:"ScalingStatusType"` - - // Metric value used to trigger a scaling event. - Threshold *float64 `type:"double"` -} - -// String returns the string representation -func (s ScalingPolicy) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScalingPolicy) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type UpdateAliasInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a fleet alias. Specify the alias you want to update. - AliasId *string `type:"string" required:"true"` - - // Human-readable description of the alias. - Description *string `min:"1" type:"string"` - - // Descriptive label associated with this alias. Alias names do not need to - // be unique. - Name *string `min:"1" type:"string"` - - // Object specifying the fleet and routing type to use for the alias. - RoutingStrategy *RoutingStrategy `type:"structure"` -} - -// String returns the string representation -func (s UpdateAliasInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateAliasInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAliasInput"} - if s.AliasId == nil { - invalidParams.Add(request.NewErrParamRequired("AliasId")) - } - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type UpdateAliasOutput struct { - _ struct{} `type:"structure"` - - // Object containing the updated alias configuration. - Alias *Alias `type:"structure"` -} - -// String returns the string representation -func (s UpdateAliasOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateAliasOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type UpdateBuildInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the build you want to update. - BuildId *string `type:"string" required:"true"` - - // Descriptive label associated with this build. Build names do not need to - // be unique. - Name *string `min:"1" type:"string"` - - // Version associated with this build. Version strings do not need to be unique - // to a build. - Version *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s UpdateBuildInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateBuildInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateBuildInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateBuildInput"} - if s.BuildId == nil { - invalidParams.Add(request.NewErrParamRequired("BuildId")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Version != nil && len(*s.Version) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Version", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type UpdateBuildOutput struct { - _ struct{} `type:"structure"` - - // Object containing the updated build record. - Build *Build `type:"structure"` -} - -// String returns the string representation -func (s UpdateBuildOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateBuildOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type UpdateFleetAttributesInput struct { - _ struct{} `type:"structure"` - - // Human-readable description of the fleet. - Description *string `min:"1" type:"string"` - - // Unique identifier for the fleet you want to update attribute metadata for. - FleetId *string `type:"string" required:"true"` - - // Descriptive label associated with this fleet. Fleet names do not need to - // be unique. - Name *string `min:"1" type:"string"` - - // Game session protection policy to apply to all new instances created in this - // fleet. Instances that already exist will not be affected. You can set protection - // for individual instances using UpdateGameSession. NoProtection: The game - // session can be terminated during a scale-down event. FullProtection: If the - // game session is in an ACTIVE status, it cannot be terminated during a scale-down - // event. - NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` -} - -// String returns the string representation -func (s UpdateFleetAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateFleetAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateFleetAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateFleetAttributesInput"} - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.FleetId == nil { - invalidParams.Add(request.NewErrParamRequired("FleetId")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type UpdateFleetAttributesOutput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the updated fleet. - FleetId *string `type:"string"` -} - -// String returns the string representation -func (s UpdateFleetAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateFleetAttributesOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type UpdateFleetCapacityInput struct { - _ struct{} `type:"structure"` - - // Number of EC2 instances you want this fleet to host. - DesiredInstances *int64 `type:"integer"` - - // Unique identifier for the fleet you want to update capacity for. - FleetId *string `type:"string" required:"true"` - - // Maximum value allowed for the fleet's instance count. Default if not set - // is 1. - MaxSize *int64 `type:"integer"` - - // Minimum value allowed for the fleet's instance count. Default if not set - // is 0. - MinSize *int64 `type:"integer"` -} - -// String returns the string representation -func (s UpdateFleetCapacityInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateFleetCapacityInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateFleetCapacityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateFleetCapacityInput"} - if s.FleetId == nil { - invalidParams.Add(request.NewErrParamRequired("FleetId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type UpdateFleetCapacityOutput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the updated fleet. - FleetId *string `type:"string"` -} - -// String returns the string representation -func (s UpdateFleetCapacityOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateFleetCapacityOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type UpdateFleetPortSettingsInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the fleet you want to update port settings for. - FleetId *string `type:"string" required:"true"` - - // Collection of port settings to be added to the fleet record. - InboundPermissionAuthorizations []*IpPermission `type:"list"` - - // Collection of port settings to be removed from the fleet record. - InboundPermissionRevocations []*IpPermission `type:"list"` -} - -// String returns the string representation -func (s UpdateFleetPortSettingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateFleetPortSettingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateFleetPortSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateFleetPortSettingsInput"} - if s.FleetId == nil { - invalidParams.Add(request.NewErrParamRequired("FleetId")) - } - if s.InboundPermissionAuthorizations != nil { - for i, v := range s.InboundPermissionAuthorizations { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InboundPermissionAuthorizations", i), err.(request.ErrInvalidParams)) - } - } - } - if s.InboundPermissionRevocations != nil { - for i, v := range s.InboundPermissionRevocations { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InboundPermissionRevocations", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type UpdateFleetPortSettingsOutput struct { - _ struct{} `type:"structure"` - - // Unique identifier for the updated fleet. - FleetId *string `type:"string"` -} - -// String returns the string representation -func (s UpdateFleetPortSettingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateFleetPortSettingsOutput) GoString() string { - return s.String() -} - -// Represents the input for a request action. -type UpdateGameSessionInput struct { - _ struct{} `type:"structure"` - - // Unique identifier for a game session. Specify the game session you want to - // update. - GameSessionId *string `type:"string" required:"true"` - - // Maximum number of players that can be simultaneously connected to the game - // session. - MaximumPlayerSessionCount *int64 `type:"integer"` - - // Descriptive label associated with this game session. Session names do not - // need to be unique. - Name *string `min:"1" type:"string"` - - // Policy determining whether or not the game session accepts new players. - PlayerSessionCreationPolicy *string `type:"string" enum:"PlayerSessionCreationPolicy"` - - // Game session protection policy to apply to this game session only. NoProtection: - // The game session can be terminated during a scale-down event. FullProtection: - // If the game session is in an ACTIVE status, it cannot be terminated during - // a scale-down event. - ProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` -} - -// String returns the string representation -func (s UpdateGameSessionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateGameSessionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateGameSessionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateGameSessionInput"} - if s.GameSessionId == nil { - invalidParams.Add(request.NewErrParamRequired("GameSessionId")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the returned data in response to a request action. -type UpdateGameSessionOutput struct { - _ struct{} `type:"structure"` - - // Object containing the updated game session metadata. - GameSession *GameSession `type:"structure"` -} - -// String returns the string representation -func (s UpdateGameSessionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateGameSessionOutput) GoString() string { - return s.String() -} - -const ( - // @enum BuildStatus - BuildStatusInitialized = "INITIALIZED" - // @enum BuildStatus - BuildStatusReady = "READY" - // @enum BuildStatus - BuildStatusFailed = "FAILED" -) - -const ( - // @enum ComparisonOperatorType - ComparisonOperatorTypeGreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold" - // @enum ComparisonOperatorType - ComparisonOperatorTypeGreaterThanThreshold = "GreaterThanThreshold" - // @enum ComparisonOperatorType - ComparisonOperatorTypeLessThanThreshold = "LessThanThreshold" - // @enum ComparisonOperatorType - ComparisonOperatorTypeLessThanOrEqualToThreshold = "LessThanOrEqualToThreshold" -) - -const ( - // @enum EC2InstanceType - EC2InstanceTypeT2Micro = "t2.micro" - // @enum EC2InstanceType - EC2InstanceTypeT2Small = "t2.small" - // @enum EC2InstanceType - EC2InstanceTypeT2Medium = "t2.medium" - // @enum EC2InstanceType - EC2InstanceTypeT2Large = "t2.large" - // @enum EC2InstanceType - EC2InstanceTypeC3Large = "c3.large" - // @enum EC2InstanceType - EC2InstanceTypeC3Xlarge = "c3.xlarge" - // @enum EC2InstanceType - EC2InstanceTypeC32xlarge = "c3.2xlarge" - // @enum EC2InstanceType - EC2InstanceTypeC34xlarge = "c3.4xlarge" - // @enum EC2InstanceType - EC2InstanceTypeC38xlarge = "c3.8xlarge" - // @enum EC2InstanceType - EC2InstanceTypeC4Large = "c4.large" - // @enum EC2InstanceType - EC2InstanceTypeC4Xlarge = "c4.xlarge" - // @enum EC2InstanceType - EC2InstanceTypeC42xlarge = "c4.2xlarge" - // @enum EC2InstanceType - EC2InstanceTypeC44xlarge = "c4.4xlarge" - // @enum EC2InstanceType - EC2InstanceTypeC48xlarge = "c4.8xlarge" - // @enum EC2InstanceType - EC2InstanceTypeR3Large = "r3.large" - // @enum EC2InstanceType - EC2InstanceTypeR3Xlarge = "r3.xlarge" - // @enum EC2InstanceType - EC2InstanceTypeR32xlarge = "r3.2xlarge" - // @enum EC2InstanceType - EC2InstanceTypeR34xlarge = "r3.4xlarge" - // @enum EC2InstanceType - EC2InstanceTypeR38xlarge = "r3.8xlarge" - // @enum EC2InstanceType - EC2InstanceTypeM3Medium = "m3.medium" - // @enum EC2InstanceType - EC2InstanceTypeM3Large = "m3.large" - // @enum EC2InstanceType - EC2InstanceTypeM3Xlarge = "m3.xlarge" - // @enum EC2InstanceType - EC2InstanceTypeM32xlarge = "m3.2xlarge" - // @enum EC2InstanceType - EC2InstanceTypeM4Large = "m4.large" - // @enum EC2InstanceType - EC2InstanceTypeM4Xlarge = "m4.xlarge" - // @enum EC2InstanceType - EC2InstanceTypeM42xlarge = "m4.2xlarge" - // @enum EC2InstanceType - EC2InstanceTypeM44xlarge = "m4.4xlarge" - // @enum EC2InstanceType - EC2InstanceTypeM410xlarge = "m4.10xlarge" -) - -const ( - // @enum EventCode - EventCodeGenericEvent = "GENERIC_EVENT" - // @enum EventCode - EventCodeFleetCreated = "FLEET_CREATED" - // @enum EventCode - EventCodeFleetDeleted = "FLEET_DELETED" - // @enum EventCode - EventCodeFleetScalingEvent = "FLEET_SCALING_EVENT" - // @enum EventCode - EventCodeFleetStateDownloading = "FLEET_STATE_DOWNLOADING" - // @enum EventCode - EventCodeFleetStateValidating = "FLEET_STATE_VALIDATING" - // @enum EventCode - EventCodeFleetStateBuilding = "FLEET_STATE_BUILDING" - // @enum EventCode - EventCodeFleetStateActivating = "FLEET_STATE_ACTIVATING" - // @enum EventCode - EventCodeFleetStateActive = "FLEET_STATE_ACTIVE" - // @enum EventCode - EventCodeFleetStateError = "FLEET_STATE_ERROR" - // @enum EventCode - EventCodeFleetInitializationFailed = "FLEET_INITIALIZATION_FAILED" - // @enum EventCode - EventCodeFleetBinaryDownloadFailed = "FLEET_BINARY_DOWNLOAD_FAILED" - // @enum EventCode - EventCodeFleetValidationLaunchPathNotFound = "FLEET_VALIDATION_LAUNCH_PATH_NOT_FOUND" - // @enum EventCode - EventCodeFleetValidationExecutableRuntimeFailure = "FLEET_VALIDATION_EXECUTABLE_RUNTIME_FAILURE" - // @enum EventCode - EventCodeFleetValidationTimedOut = "FLEET_VALIDATION_TIMED_OUT" - // @enum EventCode - EventCodeFleetActivationFailed = "FLEET_ACTIVATION_FAILED" - // @enum EventCode - EventCodeFleetActivationFailedNoInstances = "FLEET_ACTIVATION_FAILED_NO_INSTANCES" - // @enum EventCode - EventCodeFleetNewGameSessionProtectionPolicyUpdated = "FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED" -) - -const ( - // @enum FleetStatus - FleetStatusNew = "NEW" - // @enum FleetStatus - FleetStatusDownloading = "DOWNLOADING" - // @enum FleetStatus - FleetStatusValidating = "VALIDATING" - // @enum FleetStatus - FleetStatusBuilding = "BUILDING" - // @enum FleetStatus - FleetStatusActivating = "ACTIVATING" - // @enum FleetStatus - FleetStatusActive = "ACTIVE" - // @enum FleetStatus - FleetStatusDeleting = "DELETING" - // @enum FleetStatus - FleetStatusError = "ERROR" - // @enum FleetStatus - FleetStatusTerminated = "TERMINATED" -) - -const ( - // @enum GameSessionStatus - GameSessionStatusActive = "ACTIVE" - // @enum GameSessionStatus - GameSessionStatusActivating = "ACTIVATING" - // @enum GameSessionStatus - GameSessionStatusTerminated = "TERMINATED" - // @enum GameSessionStatus - GameSessionStatusTerminating = "TERMINATING" -) - -const ( - // @enum IpProtocol - IpProtocolTcp = "TCP" - // @enum IpProtocol - IpProtocolUdp = "UDP" -) - -const ( - // @enum MetricName - MetricNameActivatingGameSessions = "ActivatingGameSessions" - // @enum MetricName - MetricNameActiveGameSessions = "ActiveGameSessions" - // @enum MetricName - MetricNameActiveInstances = "ActiveInstances" - // @enum MetricName - MetricNameAvailablePlayerSessions = "AvailablePlayerSessions" - // @enum MetricName - MetricNameCurrentPlayerSessions = "CurrentPlayerSessions" - // @enum MetricName - MetricNameIdleInstances = "IdleInstances" -) - -const ( - // @enum PlayerSessionCreationPolicy - PlayerSessionCreationPolicyAcceptAll = "ACCEPT_ALL" - // @enum PlayerSessionCreationPolicy - PlayerSessionCreationPolicyDenyAll = "DENY_ALL" -) - -const ( - // @enum PlayerSessionStatus - PlayerSessionStatusReserved = "RESERVED" - // @enum PlayerSessionStatus - PlayerSessionStatusActive = "ACTIVE" - // @enum PlayerSessionStatus - PlayerSessionStatusCompleted = "COMPLETED" - // @enum PlayerSessionStatus - PlayerSessionStatusTimedout = "TIMEDOUT" -) - -const ( - // @enum ProtectionPolicy - ProtectionPolicyNoProtection = "NoProtection" - // @enum ProtectionPolicy - ProtectionPolicyFullProtection = "FullProtection" -) - -const ( - // @enum RoutingStrategyType - RoutingStrategyTypeSimple = "SIMPLE" - // @enum RoutingStrategyType - RoutingStrategyTypeTerminal = "TERMINAL" -) - -const ( - // @enum ScalingAdjustmentType - ScalingAdjustmentTypeChangeInCapacity = "ChangeInCapacity" - // @enum ScalingAdjustmentType - ScalingAdjustmentTypeExactCapacity = "ExactCapacity" - // @enum ScalingAdjustmentType - ScalingAdjustmentTypePercentChangeInCapacity = "PercentChangeInCapacity" -) - -const ( - // @enum ScalingStatusType - ScalingStatusTypeActive = "ACTIVE" - // @enum ScalingStatusType - ScalingStatusTypeUpdateRequested = "UPDATE_REQUESTED" - // @enum ScalingStatusType - ScalingStatusTypeUpdating = "UPDATING" - // @enum ScalingStatusType - ScalingStatusTypeDeleteRequested = "DELETE_REQUESTED" - // @enum ScalingStatusType - ScalingStatusTypeDeleting = "DELETING" - // @enum ScalingStatusType - ScalingStatusTypeDeleted = "DELETED" - // @enum ScalingStatusType - ScalingStatusTypeError = "ERROR" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go deleted file mode 100644 index eaf3258ed..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/examples_test.go +++ /dev/null @@ -1,816 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package gamelift_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/gamelift" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleGameLift_CreateAlias() { - svc := gamelift.New(session.New()) - - params := &gamelift.CreateAliasInput{ - Name: aws.String("NonZeroAndMaxString"), // Required - RoutingStrategy: &gamelift.RoutingStrategy{ // Required - FleetId: aws.String("FleetId"), - Message: aws.String("FreeText"), - Type: aws.String("RoutingStrategyType"), - }, - Description: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.CreateAlias(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_CreateBuild() { - svc := gamelift.New(session.New()) - - params := &gamelift.CreateBuildInput{ - Name: aws.String("NonZeroAndMaxString"), - StorageLocation: &gamelift.S3Location{ - Bucket: aws.String("NonEmptyString"), - Key: aws.String("NonEmptyString"), - RoleArn: aws.String("NonEmptyString"), - }, - Version: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.CreateBuild(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_CreateFleet() { - svc := gamelift.New(session.New()) - - params := &gamelift.CreateFleetInput{ - BuildId: aws.String("BuildId"), // Required - EC2InstanceType: aws.String("EC2InstanceType"), // Required - Name: aws.String("NonZeroAndMaxString"), // Required - ServerLaunchPath: aws.String("NonZeroAndMaxString"), // Required - Description: aws.String("NonZeroAndMaxString"), - EC2InboundPermissions: []*gamelift.IpPermission{ - { // Required - FromPort: aws.Int64(1), // Required - IpRange: aws.String("NonBlankString"), // Required - Protocol: aws.String("IpProtocol"), // Required - ToPort: aws.Int64(1), // Required - }, - // More values... - }, - LogPaths: []*string{ - aws.String("NonZeroAndMaxString"), // Required - // More values... - }, - NewGameSessionProtectionPolicy: aws.String("ProtectionPolicy"), - ServerLaunchParameters: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.CreateFleet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_CreateGameSession() { - svc := gamelift.New(session.New()) - - params := &gamelift.CreateGameSessionInput{ - MaximumPlayerSessionCount: aws.Int64(1), // Required - AliasId: aws.String("AliasId"), - FleetId: aws.String("FleetId"), - GameProperties: []*gamelift.GameProperty{ - { // Required - Key: aws.String("GamePropertyKey"), // Required - Value: aws.String("GamePropertyValue"), // Required - }, - // More values... - }, - Name: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.CreateGameSession(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_CreatePlayerSession() { - svc := gamelift.New(session.New()) - - params := &gamelift.CreatePlayerSessionInput{ - GameSessionId: aws.String("GameSessionId"), // Required - PlayerId: aws.String("NonZeroAndMaxString"), // Required - } - resp, err := svc.CreatePlayerSession(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_CreatePlayerSessions() { - svc := gamelift.New(session.New()) - - params := &gamelift.CreatePlayerSessionsInput{ - GameSessionId: aws.String("GameSessionId"), // Required - PlayerIds: []*string{ // Required - aws.String("NonZeroAndMaxString"), // Required - // More values... - }, - } - resp, err := svc.CreatePlayerSessions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DeleteAlias() { - svc := gamelift.New(session.New()) - - params := &gamelift.DeleteAliasInput{ - AliasId: aws.String("AliasId"), // Required - } - resp, err := svc.DeleteAlias(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DeleteBuild() { - svc := gamelift.New(session.New()) - - params := &gamelift.DeleteBuildInput{ - BuildId: aws.String("BuildId"), // Required - } - resp, err := svc.DeleteBuild(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DeleteFleet() { - svc := gamelift.New(session.New()) - - params := &gamelift.DeleteFleetInput{ - FleetId: aws.String("FleetId"), // Required - } - resp, err := svc.DeleteFleet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DeleteScalingPolicy() { - svc := gamelift.New(session.New()) - - params := &gamelift.DeleteScalingPolicyInput{ - FleetId: aws.String("FleetId"), // Required - Name: aws.String("NonZeroAndMaxString"), // Required - } - resp, err := svc.DeleteScalingPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeAlias() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeAliasInput{ - AliasId: aws.String("AliasId"), // Required - } - resp, err := svc.DescribeAlias(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeBuild() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeBuildInput{ - BuildId: aws.String("BuildId"), // Required - } - resp, err := svc.DescribeBuild(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeEC2InstanceLimits() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeEC2InstanceLimitsInput{ - EC2InstanceType: aws.String("EC2InstanceType"), - } - resp, err := svc.DescribeEC2InstanceLimits(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeFleetAttributes() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeFleetAttributesInput{ - FleetIds: []*string{ - aws.String("FleetId"), // Required - // More values... - }, - Limit: aws.Int64(1), - NextToken: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.DescribeFleetAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeFleetCapacity() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeFleetCapacityInput{ - FleetIds: []*string{ - aws.String("FleetId"), // Required - // More values... - }, - Limit: aws.Int64(1), - NextToken: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.DescribeFleetCapacity(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeFleetEvents() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeFleetEventsInput{ - FleetId: aws.String("FleetId"), // Required - EndTime: aws.Time(time.Now()), - Limit: aws.Int64(1), - NextToken: aws.String("NonZeroAndMaxString"), - StartTime: aws.Time(time.Now()), - } - resp, err := svc.DescribeFleetEvents(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeFleetPortSettings() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeFleetPortSettingsInput{ - FleetId: aws.String("FleetId"), // Required - } - resp, err := svc.DescribeFleetPortSettings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeFleetUtilization() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeFleetUtilizationInput{ - FleetIds: []*string{ - aws.String("FleetId"), // Required - // More values... - }, - Limit: aws.Int64(1), - NextToken: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.DescribeFleetUtilization(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeGameSessionDetails() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeGameSessionDetailsInput{ - AliasId: aws.String("AliasId"), - FleetId: aws.String("FleetId"), - GameSessionId: aws.String("GameSessionId"), - Limit: aws.Int64(1), - NextToken: aws.String("NonZeroAndMaxString"), - StatusFilter: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.DescribeGameSessionDetails(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeGameSessions() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeGameSessionsInput{ - AliasId: aws.String("AliasId"), - FleetId: aws.String("FleetId"), - GameSessionId: aws.String("GameSessionId"), - Limit: aws.Int64(1), - NextToken: aws.String("NonZeroAndMaxString"), - StatusFilter: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.DescribeGameSessions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribePlayerSessions() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribePlayerSessionsInput{ - GameSessionId: aws.String("GameSessionId"), - Limit: aws.Int64(1), - NextToken: aws.String("NonZeroAndMaxString"), - PlayerId: aws.String("NonZeroAndMaxString"), - PlayerSessionId: aws.String("PlayerSessionId"), - PlayerSessionStatusFilter: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.DescribePlayerSessions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_DescribeScalingPolicies() { - svc := gamelift.New(session.New()) - - params := &gamelift.DescribeScalingPoliciesInput{ - FleetId: aws.String("FleetId"), // Required - Limit: aws.Int64(1), - NextToken: aws.String("NonZeroAndMaxString"), - StatusFilter: aws.String("ScalingStatusType"), - } - resp, err := svc.DescribeScalingPolicies(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_GetGameSessionLogUrl() { - svc := gamelift.New(session.New()) - - params := &gamelift.GetGameSessionLogUrlInput{ - GameSessionId: aws.String("GameSessionId"), // Required - } - resp, err := svc.GetGameSessionLogUrl(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_ListAliases() { - svc := gamelift.New(session.New()) - - params := &gamelift.ListAliasesInput{ - Limit: aws.Int64(1), - Name: aws.String("NonEmptyString"), - NextToken: aws.String("NonEmptyString"), - RoutingStrategyType: aws.String("RoutingStrategyType"), - } - resp, err := svc.ListAliases(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_ListBuilds() { - svc := gamelift.New(session.New()) - - params := &gamelift.ListBuildsInput{ - Limit: aws.Int64(1), - NextToken: aws.String("NonEmptyString"), - Status: aws.String("BuildStatus"), - } - resp, err := svc.ListBuilds(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_ListFleets() { - svc := gamelift.New(session.New()) - - params := &gamelift.ListFleetsInput{ - BuildId: aws.String("BuildId"), - Limit: aws.Int64(1), - NextToken: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.ListFleets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_PutScalingPolicy() { - svc := gamelift.New(session.New()) - - params := &gamelift.PutScalingPolicyInput{ - ComparisonOperator: aws.String("ComparisonOperatorType"), // Required - EvaluationPeriods: aws.Int64(1), // Required - FleetId: aws.String("FleetId"), // Required - MetricName: aws.String("MetricName"), // Required - Name: aws.String("NonZeroAndMaxString"), // Required - ScalingAdjustment: aws.Int64(1), // Required - ScalingAdjustmentType: aws.String("ScalingAdjustmentType"), // Required - Threshold: aws.Float64(1.0), // Required - } - resp, err := svc.PutScalingPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_RequestUploadCredentials() { - svc := gamelift.New(session.New()) - - params := &gamelift.RequestUploadCredentialsInput{ - BuildId: aws.String("BuildId"), // Required - } - resp, err := svc.RequestUploadCredentials(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_ResolveAlias() { - svc := gamelift.New(session.New()) - - params := &gamelift.ResolveAliasInput{ - AliasId: aws.String("AliasId"), // Required - } - resp, err := svc.ResolveAlias(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_UpdateAlias() { - svc := gamelift.New(session.New()) - - params := &gamelift.UpdateAliasInput{ - AliasId: aws.String("AliasId"), // Required - Description: aws.String("NonZeroAndMaxString"), - Name: aws.String("NonZeroAndMaxString"), - RoutingStrategy: &gamelift.RoutingStrategy{ - FleetId: aws.String("FleetId"), - Message: aws.String("FreeText"), - Type: aws.String("RoutingStrategyType"), - }, - } - resp, err := svc.UpdateAlias(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_UpdateBuild() { - svc := gamelift.New(session.New()) - - params := &gamelift.UpdateBuildInput{ - BuildId: aws.String("BuildId"), // Required - Name: aws.String("NonZeroAndMaxString"), - Version: aws.String("NonZeroAndMaxString"), - } - resp, err := svc.UpdateBuild(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_UpdateFleetAttributes() { - svc := gamelift.New(session.New()) - - params := &gamelift.UpdateFleetAttributesInput{ - FleetId: aws.String("FleetId"), // Required - Description: aws.String("NonZeroAndMaxString"), - Name: aws.String("NonZeroAndMaxString"), - NewGameSessionProtectionPolicy: aws.String("ProtectionPolicy"), - } - resp, err := svc.UpdateFleetAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_UpdateFleetCapacity() { - svc := gamelift.New(session.New()) - - params := &gamelift.UpdateFleetCapacityInput{ - FleetId: aws.String("FleetId"), // Required - DesiredInstances: aws.Int64(1), - MaxSize: aws.Int64(1), - MinSize: aws.Int64(1), - } - resp, err := svc.UpdateFleetCapacity(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_UpdateFleetPortSettings() { - svc := gamelift.New(session.New()) - - params := &gamelift.UpdateFleetPortSettingsInput{ - FleetId: aws.String("FleetId"), // Required - InboundPermissionAuthorizations: []*gamelift.IpPermission{ - { // Required - FromPort: aws.Int64(1), // Required - IpRange: aws.String("NonBlankString"), // Required - Protocol: aws.String("IpProtocol"), // Required - ToPort: aws.Int64(1), // Required - }, - // More values... - }, - InboundPermissionRevocations: []*gamelift.IpPermission{ - { // Required - FromPort: aws.Int64(1), // Required - IpRange: aws.String("NonBlankString"), // Required - Protocol: aws.String("IpProtocol"), // Required - ToPort: aws.Int64(1), // Required - }, - // More values... - }, - } - resp, err := svc.UpdateFleetPortSettings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleGameLift_UpdateGameSession() { - svc := gamelift.New(session.New()) - - params := &gamelift.UpdateGameSessionInput{ - GameSessionId: aws.String("GameSessionId"), // Required - MaximumPlayerSessionCount: aws.Int64(1), - Name: aws.String("NonZeroAndMaxString"), - PlayerSessionCreationPolicy: aws.String("PlayerSessionCreationPolicy"), - ProtectionPolicy: aws.String("ProtectionPolicy"), - } - resp, err := svc.UpdateGameSession(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go deleted file mode 100644 index c41d72af6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/gameliftiface/interface.go +++ /dev/null @@ -1,154 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package gameliftiface provides an interface for the Amazon GameLift. -package gameliftiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/gamelift" -) - -// GameLiftAPI is the interface type for gamelift.GameLift. -type GameLiftAPI interface { - CreateAliasRequest(*gamelift.CreateAliasInput) (*request.Request, *gamelift.CreateAliasOutput) - - CreateAlias(*gamelift.CreateAliasInput) (*gamelift.CreateAliasOutput, error) - - CreateBuildRequest(*gamelift.CreateBuildInput) (*request.Request, *gamelift.CreateBuildOutput) - - CreateBuild(*gamelift.CreateBuildInput) (*gamelift.CreateBuildOutput, error) - - CreateFleetRequest(*gamelift.CreateFleetInput) (*request.Request, *gamelift.CreateFleetOutput) - - CreateFleet(*gamelift.CreateFleetInput) (*gamelift.CreateFleetOutput, error) - - CreateGameSessionRequest(*gamelift.CreateGameSessionInput) (*request.Request, *gamelift.CreateGameSessionOutput) - - CreateGameSession(*gamelift.CreateGameSessionInput) (*gamelift.CreateGameSessionOutput, error) - - CreatePlayerSessionRequest(*gamelift.CreatePlayerSessionInput) (*request.Request, *gamelift.CreatePlayerSessionOutput) - - CreatePlayerSession(*gamelift.CreatePlayerSessionInput) (*gamelift.CreatePlayerSessionOutput, error) - - CreatePlayerSessionsRequest(*gamelift.CreatePlayerSessionsInput) (*request.Request, *gamelift.CreatePlayerSessionsOutput) - - CreatePlayerSessions(*gamelift.CreatePlayerSessionsInput) (*gamelift.CreatePlayerSessionsOutput, error) - - DeleteAliasRequest(*gamelift.DeleteAliasInput) (*request.Request, *gamelift.DeleteAliasOutput) - - DeleteAlias(*gamelift.DeleteAliasInput) (*gamelift.DeleteAliasOutput, error) - - DeleteBuildRequest(*gamelift.DeleteBuildInput) (*request.Request, *gamelift.DeleteBuildOutput) - - DeleteBuild(*gamelift.DeleteBuildInput) (*gamelift.DeleteBuildOutput, error) - - DeleteFleetRequest(*gamelift.DeleteFleetInput) (*request.Request, *gamelift.DeleteFleetOutput) - - DeleteFleet(*gamelift.DeleteFleetInput) (*gamelift.DeleteFleetOutput, error) - - DeleteScalingPolicyRequest(*gamelift.DeleteScalingPolicyInput) (*request.Request, *gamelift.DeleteScalingPolicyOutput) - - DeleteScalingPolicy(*gamelift.DeleteScalingPolicyInput) (*gamelift.DeleteScalingPolicyOutput, error) - - DescribeAliasRequest(*gamelift.DescribeAliasInput) (*request.Request, *gamelift.DescribeAliasOutput) - - DescribeAlias(*gamelift.DescribeAliasInput) (*gamelift.DescribeAliasOutput, error) - - DescribeBuildRequest(*gamelift.DescribeBuildInput) (*request.Request, *gamelift.DescribeBuildOutput) - - DescribeBuild(*gamelift.DescribeBuildInput) (*gamelift.DescribeBuildOutput, error) - - DescribeEC2InstanceLimitsRequest(*gamelift.DescribeEC2InstanceLimitsInput) (*request.Request, *gamelift.DescribeEC2InstanceLimitsOutput) - - DescribeEC2InstanceLimits(*gamelift.DescribeEC2InstanceLimitsInput) (*gamelift.DescribeEC2InstanceLimitsOutput, error) - - DescribeFleetAttributesRequest(*gamelift.DescribeFleetAttributesInput) (*request.Request, *gamelift.DescribeFleetAttributesOutput) - - DescribeFleetAttributes(*gamelift.DescribeFleetAttributesInput) (*gamelift.DescribeFleetAttributesOutput, error) - - DescribeFleetCapacityRequest(*gamelift.DescribeFleetCapacityInput) (*request.Request, *gamelift.DescribeFleetCapacityOutput) - - DescribeFleetCapacity(*gamelift.DescribeFleetCapacityInput) (*gamelift.DescribeFleetCapacityOutput, error) - - DescribeFleetEventsRequest(*gamelift.DescribeFleetEventsInput) (*request.Request, *gamelift.DescribeFleetEventsOutput) - - DescribeFleetEvents(*gamelift.DescribeFleetEventsInput) (*gamelift.DescribeFleetEventsOutput, error) - - DescribeFleetPortSettingsRequest(*gamelift.DescribeFleetPortSettingsInput) (*request.Request, *gamelift.DescribeFleetPortSettingsOutput) - - DescribeFleetPortSettings(*gamelift.DescribeFleetPortSettingsInput) (*gamelift.DescribeFleetPortSettingsOutput, error) - - DescribeFleetUtilizationRequest(*gamelift.DescribeFleetUtilizationInput) (*request.Request, *gamelift.DescribeFleetUtilizationOutput) - - DescribeFleetUtilization(*gamelift.DescribeFleetUtilizationInput) (*gamelift.DescribeFleetUtilizationOutput, error) - - DescribeGameSessionDetailsRequest(*gamelift.DescribeGameSessionDetailsInput) (*request.Request, *gamelift.DescribeGameSessionDetailsOutput) - - DescribeGameSessionDetails(*gamelift.DescribeGameSessionDetailsInput) (*gamelift.DescribeGameSessionDetailsOutput, error) - - DescribeGameSessionsRequest(*gamelift.DescribeGameSessionsInput) (*request.Request, *gamelift.DescribeGameSessionsOutput) - - DescribeGameSessions(*gamelift.DescribeGameSessionsInput) (*gamelift.DescribeGameSessionsOutput, error) - - DescribePlayerSessionsRequest(*gamelift.DescribePlayerSessionsInput) (*request.Request, *gamelift.DescribePlayerSessionsOutput) - - DescribePlayerSessions(*gamelift.DescribePlayerSessionsInput) (*gamelift.DescribePlayerSessionsOutput, error) - - DescribeScalingPoliciesRequest(*gamelift.DescribeScalingPoliciesInput) (*request.Request, *gamelift.DescribeScalingPoliciesOutput) - - DescribeScalingPolicies(*gamelift.DescribeScalingPoliciesInput) (*gamelift.DescribeScalingPoliciesOutput, error) - - GetGameSessionLogUrlRequest(*gamelift.GetGameSessionLogUrlInput) (*request.Request, *gamelift.GetGameSessionLogUrlOutput) - - GetGameSessionLogUrl(*gamelift.GetGameSessionLogUrlInput) (*gamelift.GetGameSessionLogUrlOutput, error) - - ListAliasesRequest(*gamelift.ListAliasesInput) (*request.Request, *gamelift.ListAliasesOutput) - - ListAliases(*gamelift.ListAliasesInput) (*gamelift.ListAliasesOutput, error) - - ListBuildsRequest(*gamelift.ListBuildsInput) (*request.Request, *gamelift.ListBuildsOutput) - - ListBuilds(*gamelift.ListBuildsInput) (*gamelift.ListBuildsOutput, error) - - ListFleetsRequest(*gamelift.ListFleetsInput) (*request.Request, *gamelift.ListFleetsOutput) - - ListFleets(*gamelift.ListFleetsInput) (*gamelift.ListFleetsOutput, error) - - PutScalingPolicyRequest(*gamelift.PutScalingPolicyInput) (*request.Request, *gamelift.PutScalingPolicyOutput) - - PutScalingPolicy(*gamelift.PutScalingPolicyInput) (*gamelift.PutScalingPolicyOutput, error) - - RequestUploadCredentialsRequest(*gamelift.RequestUploadCredentialsInput) (*request.Request, *gamelift.RequestUploadCredentialsOutput) - - RequestUploadCredentials(*gamelift.RequestUploadCredentialsInput) (*gamelift.RequestUploadCredentialsOutput, error) - - ResolveAliasRequest(*gamelift.ResolveAliasInput) (*request.Request, *gamelift.ResolveAliasOutput) - - ResolveAlias(*gamelift.ResolveAliasInput) (*gamelift.ResolveAliasOutput, error) - - UpdateAliasRequest(*gamelift.UpdateAliasInput) (*request.Request, *gamelift.UpdateAliasOutput) - - UpdateAlias(*gamelift.UpdateAliasInput) (*gamelift.UpdateAliasOutput, error) - - UpdateBuildRequest(*gamelift.UpdateBuildInput) (*request.Request, *gamelift.UpdateBuildOutput) - - UpdateBuild(*gamelift.UpdateBuildInput) (*gamelift.UpdateBuildOutput, error) - - UpdateFleetAttributesRequest(*gamelift.UpdateFleetAttributesInput) (*request.Request, *gamelift.UpdateFleetAttributesOutput) - - UpdateFleetAttributes(*gamelift.UpdateFleetAttributesInput) (*gamelift.UpdateFleetAttributesOutput, error) - - UpdateFleetCapacityRequest(*gamelift.UpdateFleetCapacityInput) (*request.Request, *gamelift.UpdateFleetCapacityOutput) - - UpdateFleetCapacity(*gamelift.UpdateFleetCapacityInput) (*gamelift.UpdateFleetCapacityOutput, error) - - UpdateFleetPortSettingsRequest(*gamelift.UpdateFleetPortSettingsInput) (*request.Request, *gamelift.UpdateFleetPortSettingsOutput) - - UpdateFleetPortSettings(*gamelift.UpdateFleetPortSettingsInput) (*gamelift.UpdateFleetPortSettingsOutput, error) - - UpdateGameSessionRequest(*gamelift.UpdateGameSessionInput) (*request.Request, *gamelift.UpdateGameSessionOutput) - - UpdateGameSession(*gamelift.UpdateGameSessionInput) (*gamelift.UpdateGameSessionOutput, error) -} - -var _ GameLiftAPI = (*gamelift.GameLift)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go deleted file mode 100644 index 882524fa0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/gamelift/service.go +++ /dev/null @@ -1,126 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package gamelift - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// Welcome to the Amazon GameLift API Reference. Amazon GameLift is a managed -// Amazon Web Services (AWS) service for developers who need a scalable, server-based -// solution for multiplayer games. Amazon GameLift provides setup and deployment -// of game servers, and handles infrastructure scaling and session management. -// For more information about the GameLift service, including a feature overview, -// getting started guide, and tutorial, see the accompanying Amazon GameLift -// Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/). -// -// This reference describes the low-level service API for GameLift. You can -// call this API directly or use the AWS SDK (https://aws.amazon.com/tools/) -// for your preferred language. The AWS SDK includes a set of high-level GameLift -// actions multiplayer game sessions. Alternatively, you can use the AWS command-line -// interface (https://aws.amazon.com/cli/) (CLI) tool, which includes commands -// for GameLift. For administrative actions, you can use the Amazon GameLift -// console. -// -// Managing Game and Player Sessions Through GameLift -// -// Call these actions from your game clients and/or services to create and -// manage multiplayer game sessions. -// -// Game sessions CreateGameSession DescribeGameSessions DescribeGameSessionDetails -// UpdateGameSession Player sessions CreatePlayerSession CreatePlayerSessions -// DescribePlayerSessions Other actions: GetGameSessionLogUrl Setting -// Up Game Servers -// -// Use these administrative actions to configure GameLift to host your game -// servers. When configuring GameLift, you'll need to (1) configure a build -// for your game and provide build files, and (2) set up one or more fleets -// to host game sessions. -// -// Build actions: ListBuilds CreateBuild DescribeBuild UpdateBuild DeleteBuild -// RequestUploadCredentials Fleet actions: ListFleets CreateFleet Describe -// fleet actions: DescribeFleetAttributes DescribeFleetCapacity DescribeFleetPortSettings -// DescribeFleetUtilization DescribeEC2InstanceLimits DescribeFleetEvents -// Update fleet actions: UpdateFleetAttributes UpdateFleetCapacity UpdateFleetPortSettings -// DeleteFleet Alias actions: ListAliases CreateAlias DescribeAlias UpdateAlias -// DeleteAlias ResolveAlias Scaling policy actions: PutScalingPolicy DescribeScalingPolicies -// DeleteScalingPolicy -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type GameLift struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "gamelift" - -// New creates a new instance of the GameLift client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a GameLift client from just a session. -// svc := gamelift.New(mySession) -// -// // Create a GameLift client with additional configuration -// svc := gamelift.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *GameLift { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *GameLift { - svc := &GameLift{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-10-01", - JSONVersion: "1.1", - TargetPrefix: "GameLift", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a GameLift operation and runs any -// custom request initialization. -func (c *GameLift) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/generate.go b/vendor/github.com/aws/aws-sdk-go/service/generate.go index 9cf991e69..769af188f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/generate.go +++ b/vendor/github.com/aws/aws-sdk-go/service/generate.go @@ -1,5 +1,5 @@ // Package service contains automatically generated AWS clients. package service -//go:generate go run ../private/model/cli/gen-api/main.go -path=../service ../models/apis/*/*/api-2.json +//go:generate go run ../internal/model/cli/gen-api/main.go -path=../service ../apis/*/*/api-2.json //go:generate gofmt -s -w ../service diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go index dedf76f42..cad864f77 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/api.go @@ -8,8 +8,6 @@ import ( "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/private/protocol/restjson" ) const opAbortMultipartUpload = "AbortMultipartUpload" @@ -27,8 +25,6 @@ func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AbortMultipartUploadOutput{} req.Data = output return @@ -75,8 +71,6 @@ func (c *Glacier) AbortVaultLockRequest(input *AbortVaultLockInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AbortVaultLockOutput{} req.Data = output return @@ -119,8 +113,6 @@ func (c *Glacier) AddTagsToVaultRequest(input *AddTagsToVaultInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AddTagsToVaultOutput{} req.Data = output return @@ -223,8 +215,6 @@ func (c *Glacier) CompleteVaultLockRequest(input *CompleteVaultLockInput) (req * } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CompleteVaultLockOutput{} req.Data = output return @@ -316,8 +306,6 @@ func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request. } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteArchiveOutput{} req.Data = output return @@ -365,8 +353,6 @@ func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteVaultOutput{} req.Data = output return @@ -416,8 +402,6 @@ func (c *Glacier) DeleteVaultAccessPolicyRequest(input *DeleteVaultAccessPolicyI } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteVaultAccessPolicyOutput{} req.Data = output return @@ -454,8 +438,6 @@ func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotification } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteVaultNotificationsOutput{} req.Data = output return @@ -1127,7 +1109,6 @@ func (c *Glacier) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { func (c *Glacier) ListJobsPages(input *ListJobsInput, fn func(p *ListJobsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListJobsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListJobsOutput), lastPage) }) @@ -1197,7 +1178,6 @@ func (c *Glacier) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListM func (c *Glacier) ListMultipartUploadsPages(input *ListMultipartUploadsInput, fn func(p *ListMultipartUploadsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListMultipartUploadsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListMultipartUploadsOutput), lastPage) }) @@ -1261,7 +1241,6 @@ func (c *Glacier) ListParts(input *ListPartsInput) (*ListPartsOutput, error) { func (c *Glacier) ListPartsPages(input *ListPartsInput, fn func(p *ListPartsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListPartsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListPartsOutput), lastPage) }) @@ -1352,7 +1331,6 @@ func (c *Glacier) ListVaults(input *ListVaultsInput) (*ListVaultsOutput, error) func (c *Glacier) ListVaultsPages(input *ListVaultsInput, fn func(p *ListVaultsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListVaultsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListVaultsOutput), lastPage) }) @@ -1373,8 +1351,6 @@ func (c *Glacier) RemoveTagsFromVaultRequest(input *RemoveTagsFromVaultInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RemoveTagsFromVaultOutput{} req.Data = output return @@ -1406,8 +1382,6 @@ func (c *Glacier) SetDataRetrievalPolicyRequest(input *SetDataRetrievalPolicyInp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetDataRetrievalPolicyOutput{} req.Data = output return @@ -1441,8 +1415,6 @@ func (c *Glacier) SetVaultAccessPolicyRequest(input *SetVaultAccessPolicyInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetVaultAccessPolicyOutput{} req.Data = output return @@ -1476,8 +1448,6 @@ func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetVaultNotificationsOutput{} req.Data = output return @@ -1656,8 +1626,6 @@ func (c *Glacier) UploadMultipartPart(input *UploadMultipartPartInput) (*UploadM // For conceptual information, go to Working with Archives in Amazon Glacier // (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html). type AbortMultipartUploadInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -1670,6 +1638,12 @@ type AbortMultipartUploadInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataAbortMultipartUploadInput `json:"-" xml:"-"` +} + +type metadataAbortMultipartUploadInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1682,27 +1656,12 @@ func (s AbortMultipartUploadInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AbortMultipartUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AbortMultipartUploadInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AbortMultipartUploadOutput struct { + metadataAbortMultipartUploadOutput `json:"-" xml:"-"` } -type AbortMultipartUploadOutput struct { - _ struct{} `type:"structure"` +type metadataAbortMultipartUploadOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1717,8 +1676,6 @@ func (s AbortMultipartUploadOutput) GoString() string { // The input values for AbortVaultLock. type AbortVaultLockInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You // can either specify an AWS account ID or optionally a single apos-apos (hyphen), @@ -1729,6 +1686,12 @@ type AbortVaultLockInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataAbortVaultLockInput `json:"-" xml:"-"` +} + +type metadataAbortVaultLockInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1741,24 +1704,12 @@ func (s AbortVaultLockInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AbortVaultLockInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AbortVaultLockInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AbortVaultLockOutput struct { + metadataAbortVaultLockOutput `json:"-" xml:"-"` } -type AbortVaultLockOutput struct { - _ struct{} `type:"structure"` +type metadataAbortVaultLockOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1773,8 +1724,6 @@ func (s AbortVaultLockOutput) GoString() string { // The input values for AddTagsToVault. type AddTagsToVaultInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -1788,6 +1737,12 @@ type AddTagsToVaultInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataAddTagsToVaultInput `json:"-" xml:"-"` +} + +type metadataAddTagsToVaultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1800,24 +1755,12 @@ func (s AddTagsToVaultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToVaultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToVaultInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AddTagsToVaultOutput struct { + metadataAddTagsToVaultOutput `json:"-" xml:"-"` } -type AddTagsToVaultOutput struct { - _ struct{} `type:"structure"` +type metadataAddTagsToVaultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1836,8 +1779,6 @@ func (s AddTagsToVaultOutput) GoString() string { // For conceptual information, go to Working with Archives in Amazon Glacier // (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html). type ArchiveCreationOutput struct { - _ struct{} `type:"structure"` - // The ID of the archive. This value is also included as part of the location. ArchiveId *string `location:"header" locationName:"x-amz-archive-id" type:"string"` @@ -1846,6 +1787,12 @@ type ArchiveCreationOutput struct { // The relative URI path of the newly added archive resource. Location *string `location:"header" locationName:"Location" type:"string"` + + metadataArchiveCreationOutput `json:"-" xml:"-"` +} + +type metadataArchiveCreationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1864,8 +1811,6 @@ func (s ArchiveCreationOutput) GoString() string { // saving the archive to the vault, Amazon Glacier returns the URI path of the // newly created archive resource. type CompleteMultipartUploadInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -1888,6 +1833,12 @@ type CompleteMultipartUploadInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataCompleteMultipartUploadInput `json:"-" xml:"-"` +} + +type metadataCompleteMultipartUploadInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1900,29 +1851,8 @@ func (s CompleteMultipartUploadInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CompleteMultipartUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CompleteMultipartUploadInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The input values for CompleteVaultLock. type CompleteVaultLockInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You // can either specify an AWS account ID or optionally a single apos-apos (hyphen), @@ -1936,6 +1866,12 @@ type CompleteVaultLockInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataCompleteVaultLockInput `json:"-" xml:"-"` +} + +type metadataCompleteVaultLockInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1948,27 +1884,12 @@ func (s CompleteVaultLockInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CompleteVaultLockInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CompleteVaultLockInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.LockId == nil { - invalidParams.Add(request.NewErrParamRequired("LockId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CompleteVaultLockOutput struct { + metadataCompleteVaultLockOutput `json:"-" xml:"-"` } -type CompleteVaultLockOutput struct { - _ struct{} `type:"structure"` +type metadataCompleteVaultLockOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1983,8 +1904,6 @@ func (s CompleteVaultLockOutput) GoString() string { // Provides options to create a vault. type CreateVaultInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You // can either specify an AWS account ID or optionally a single apos-apos (hyphen), @@ -1995,6 +1914,12 @@ type CreateVaultInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataCreateVaultInput `json:"-" xml:"-"` +} + +type metadataCreateVaultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2007,28 +1932,16 @@ func (s CreateVaultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVaultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVaultInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type CreateVaultOutput struct { - _ struct{} `type:"structure"` - // The URI of the vault that was created. Location *string `location:"header" locationName:"Location" type:"string"` + + metadataCreateVaultOutput `json:"-" xml:"-"` +} + +type metadataCreateVaultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2043,11 +1956,15 @@ func (s CreateVaultOutput) GoString() string { // Data retrieval policy. type DataRetrievalPolicy struct { - _ struct{} `type:"structure"` - // The policy rule. Although this is a list type, currently there must be only // one rule, which contains a Strategy field and optionally a BytesPerHour field. Rules []*DataRetrievalRule `type:"list"` + + metadataDataRetrievalPolicy `json:"-" xml:"-"` +} + +type metadataDataRetrievalPolicy struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2062,8 +1979,6 @@ func (s DataRetrievalPolicy) GoString() string { // Data retrieval policy rule. type DataRetrievalRule struct { - _ struct{} `type:"structure"` - // The maximum number of bytes that can be retrieved in an hour. // // This field is required only if the value of the Strategy field is BytesPerHour. @@ -2075,6 +1990,12 @@ type DataRetrievalRule struct { // // Valid values: BytesPerHour|FreeTier|None Strategy *string `type:"string"` + + metadataDataRetrievalRule `json:"-" xml:"-"` +} + +type metadataDataRetrievalRule struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2089,8 +2010,6 @@ func (s DataRetrievalRule) GoString() string { // Provides options for deleting an archive from an Amazon Glacier vault. type DeleteArchiveInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2103,6 +2022,12 @@ type DeleteArchiveInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataDeleteArchiveInput `json:"-" xml:"-"` +} + +type metadataDeleteArchiveInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2115,27 +2040,12 @@ func (s DeleteArchiveInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteArchiveInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteArchiveInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.ArchiveId == nil { - invalidParams.Add(request.NewErrParamRequired("ArchiveId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteArchiveOutput struct { + metadataDeleteArchiveOutput `json:"-" xml:"-"` } -type DeleteArchiveOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteArchiveOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2150,8 +2060,6 @@ func (s DeleteArchiveOutput) GoString() string { // DeleteVaultAccessPolicy input. type DeleteVaultAccessPolicyInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2161,6 +2069,12 @@ type DeleteVaultAccessPolicyInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataDeleteVaultAccessPolicyInput `json:"-" xml:"-"` +} + +type metadataDeleteVaultAccessPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2173,24 +2087,12 @@ func (s DeleteVaultAccessPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVaultAccessPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVaultAccessPolicyInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteVaultAccessPolicyOutput struct { + metadataDeleteVaultAccessPolicyOutput `json:"-" xml:"-"` } -type DeleteVaultAccessPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteVaultAccessPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2205,8 +2107,6 @@ func (s DeleteVaultAccessPolicyOutput) GoString() string { // Provides options for deleting a vault from Amazon Glacier. type DeleteVaultInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2216,6 +2116,12 @@ type DeleteVaultInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataDeleteVaultInput `json:"-" xml:"-"` +} + +type metadataDeleteVaultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2228,27 +2134,9 @@ func (s DeleteVaultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVaultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVaultInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides options for deleting a vault notification configuration from an // Amazon Glacier vault. type DeleteVaultNotificationsInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2258,6 +2146,12 @@ type DeleteVaultNotificationsInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataDeleteVaultNotificationsInput `json:"-" xml:"-"` +} + +type metadataDeleteVaultNotificationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2270,24 +2164,12 @@ func (s DeleteVaultNotificationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVaultNotificationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVaultNotificationsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteVaultNotificationsOutput struct { + metadataDeleteVaultNotificationsOutput `json:"-" xml:"-"` } -type DeleteVaultNotificationsOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteVaultNotificationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2301,7 +2183,11 @@ func (s DeleteVaultNotificationsOutput) GoString() string { } type DeleteVaultOutput struct { - _ struct{} `type:"structure"` + metadataDeleteVaultOutput `json:"-" xml:"-"` +} + +type metadataDeleteVaultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2316,8 +2202,6 @@ func (s DeleteVaultOutput) GoString() string { // Provides options for retrieving a job description. type DescribeJobInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2330,6 +2214,12 @@ type DescribeJobInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataDescribeJobInput `json:"-" xml:"-"` +} + +type metadataDescribeJobInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2342,29 +2232,8 @@ func (s DescribeJobInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeJobInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides options for retrieving metadata for a specific vault in Amazon Glacier. type DescribeVaultInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2374,6 +2243,12 @@ type DescribeVaultInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataDescribeVaultInput `json:"-" xml:"-"` +} + +type metadataDescribeVaultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2386,26 +2261,8 @@ func (s DescribeVaultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeVaultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeVaultInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type DescribeVaultOutput struct { - _ struct{} `type:"structure"` - // The UTC date when the vault was created. A string representation of ISO 8601 // date format, for example, "2012-03-20T17:03:43.221Z". CreationDate *string `type:"string"` @@ -2429,6 +2286,12 @@ type DescribeVaultOutput struct { // The name of the vault. VaultName *string `type:"string"` + + metadataDescribeVaultOutput `json:"-" xml:"-"` +} + +type metadataDescribeVaultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2443,8 +2306,6 @@ func (s DescribeVaultOutput) GoString() string { // Input for GetDataRetrievalPolicy. type GetDataRetrievalPolicyInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You // can either specify an AWS account ID or optionally a single apos-apos (hyphen), @@ -2452,6 +2313,12 @@ type GetDataRetrievalPolicyInput struct { // credentials used to sign the request. If you specify your account ID, do // not include any hyphens (apos-apos) in the ID. AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + metadataGetDataRetrievalPolicyInput `json:"-" xml:"-"` +} + +type metadataGetDataRetrievalPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2464,25 +2331,16 @@ func (s GetDataRetrievalPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDataRetrievalPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDataRetrievalPolicyInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to the GetDataRetrievalPolicy request. type GetDataRetrievalPolicyOutput struct { - _ struct{} `type:"structure"` - // Contains the returned data retrieval policy in JSON format. Policy *DataRetrievalPolicy `type:"structure"` + + metadataGetDataRetrievalPolicyOutput `json:"-" xml:"-"` +} + +type metadataGetDataRetrievalPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2497,8 +2355,6 @@ func (s GetDataRetrievalPolicyOutput) GoString() string { // Provides options for downloading output of an Amazon Glacier job. type GetJobOutputInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2516,6 +2372,12 @@ type GetJobOutputInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataGetJobOutputInput `json:"-" xml:"-"` +} + +type metadataGetJobOutputInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2528,29 +2390,8 @@ func (s GetJobOutputInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetJobOutputInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetJobOutputInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type GetJobOutputOutput struct { - _ struct{} `type:"structure" payload:"Body"` - // Indicates the range units accepted. For more information, go to RFC2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). AcceptRanges *string `location:"header" locationName:"Accept-Ranges" type:"string"` @@ -2588,6 +2429,12 @@ type GetJobOutputOutput struct { // The HTTP response code for a job output request. The value depends on whether // a range was specified in the request. Status *int64 `location:"statusCode" locationName:"status" type:"integer"` + + metadataGetJobOutputOutput `json:"-" xml:"-"` +} + +type metadataGetJobOutputOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Body"` } // String returns the string representation @@ -2602,8 +2449,6 @@ func (s GetJobOutputOutput) GoString() string { // Input for GetVaultAccessPolicy. type GetVaultAccessPolicyInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2613,6 +2458,12 @@ type GetVaultAccessPolicyInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataGetVaultAccessPolicyInput `json:"-" xml:"-"` +} + +type metadataGetVaultAccessPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2625,28 +2476,16 @@ func (s GetVaultAccessPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetVaultAccessPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVaultAccessPolicyInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Output for GetVaultAccessPolicy. type GetVaultAccessPolicyOutput struct { - _ struct{} `type:"structure" payload:"Policy"` - // Contains the returned vault access policy as a JSON string. Policy *VaultAccessPolicy `locationName:"policy" type:"structure"` + + metadataGetVaultAccessPolicyOutput `json:"-" xml:"-"` +} + +type metadataGetVaultAccessPolicyOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Policy"` } // String returns the string representation @@ -2661,8 +2500,6 @@ func (s GetVaultAccessPolicyOutput) GoString() string { // The input values for GetVaultLock. type GetVaultLockInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2672,6 +2509,12 @@ type GetVaultLockInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataGetVaultLockInput `json:"-" xml:"-"` +} + +type metadataGetVaultLockInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2684,26 +2527,8 @@ func (s GetVaultLockInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetVaultLockInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVaultLockInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type GetVaultLockOutput struct { - _ struct{} `type:"structure"` - // The UTC date and time at which the vault lock was put into the InProgress // state. CreationDate *string `type:"string"` @@ -2717,6 +2542,12 @@ type GetVaultLockOutput struct { // The state of the vault lock. InProgress or Locked. State *string `type:"string"` + + metadataGetVaultLockOutput `json:"-" xml:"-"` +} + +type metadataGetVaultLockOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2732,8 +2563,6 @@ func (s GetVaultLockOutput) GoString() string { // Provides options for retrieving the notification configuration set on an // Amazon Glacier vault. type GetVaultNotificationsInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2743,6 +2572,12 @@ type GetVaultNotificationsInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataGetVaultNotificationsInput `json:"-" xml:"-"` +} + +type metadataGetVaultNotificationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2755,28 +2590,16 @@ func (s GetVaultNotificationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetVaultNotificationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVaultNotificationsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type GetVaultNotificationsOutput struct { - _ struct{} `type:"structure" payload:"VaultNotificationConfig"` - // Returns the notification configuration set on the vault. VaultNotificationConfig *VaultNotificationConfig `locationName:"vaultNotificationConfig" type:"structure"` + + metadataGetVaultNotificationsOutput `json:"-" xml:"-"` +} + +type metadataGetVaultNotificationsOutput struct { + SDKShapeTraits bool `type:"structure" payload:"VaultNotificationConfig"` } // String returns the string representation @@ -2791,8 +2614,6 @@ func (s GetVaultNotificationsOutput) GoString() string { // Provides options for initiating an Amazon Glacier job. type InitiateJobInput struct { - _ struct{} `type:"structure" payload:"JobParameters"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2805,6 +2626,12 @@ type InitiateJobInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataInitiateJobInput `json:"-" xml:"-"` +} + +type metadataInitiateJobInput struct { + SDKShapeTraits bool `type:"structure" payload:"JobParameters"` } // String returns the string representation @@ -2817,31 +2644,19 @@ func (s InitiateJobInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InitiateJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InitiateJobInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type InitiateJobOutput struct { - _ struct{} `type:"structure"` - // The ID of the job. JobId *string `location:"header" locationName:"x-amz-job-id" type:"string"` // The relative URI path of the job. Location *string `location:"header" locationName:"Location" type:"string"` + + metadataInitiateJobOutput `json:"-" xml:"-"` +} + +type metadataInitiateJobOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2856,8 +2671,6 @@ func (s InitiateJobOutput) GoString() string { // Provides options for initiating a multipart upload to an Amazon Glacier vault. type InitiateMultipartUploadInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -2879,6 +2692,12 @@ type InitiateMultipartUploadInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataInitiateMultipartUploadInput `json:"-" xml:"-"` +} + +type metadataInitiateMultipartUploadInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2891,32 +2710,20 @@ func (s InitiateMultipartUploadInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InitiateMultipartUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InitiateMultipartUploadInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The Amazon Glacier response to your request. type InitiateMultipartUploadOutput struct { - _ struct{} `type:"structure"` - // The relative URI path of the multipart upload ID Amazon Glacier created. Location *string `location:"header" locationName:"Location" type:"string"` // The ID of the multipart upload. This value is also included as part of the // location. UploadId *string `location:"header" locationName:"x-amz-multipart-upload-id" type:"string"` + + metadataInitiateMultipartUploadOutput `json:"-" xml:"-"` +} + +type metadataInitiateMultipartUploadOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2931,8 +2738,6 @@ func (s InitiateMultipartUploadOutput) GoString() string { // The input values for InitiateVaultLock. type InitiateVaultLockInput struct { - _ struct{} `type:"structure" payload:"Policy"` - // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You // can either specify an AWS account ID or optionally a single apos-apos (hyphen), @@ -2946,6 +2751,12 @@ type InitiateVaultLockInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataInitiateVaultLockInput `json:"-" xml:"-"` +} + +type metadataInitiateVaultLockInput struct { + SDKShapeTraits bool `type:"structure" payload:"Policy"` } // String returns the string representation @@ -2958,28 +2769,16 @@ func (s InitiateVaultLockInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InitiateVaultLockInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InitiateVaultLockInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type InitiateVaultLockOutput struct { - _ struct{} `type:"structure"` - // The lock ID, which is used to complete the vault locking process. LockId *string `location:"header" locationName:"x-amz-lock-id" type:"string"` + + metadataInitiateVaultLockOutput `json:"-" xml:"-"` +} + +type metadataInitiateVaultLockOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2994,8 +2793,6 @@ func (s InitiateVaultLockOutput) GoString() string { // Describes the options for a range inventory retrieval job. type InventoryRetrievalJobDescription struct { - _ struct{} `type:"structure"` - // The end of the date range in UTC for vault inventory retrieval that includes // archives created before this date. A string representation of ISO 8601 date // format, for example, 2013-03-20T17:03:43Z. @@ -3022,6 +2819,12 @@ type InventoryRetrievalJobDescription struct { // archives created on or after this date. A string representation of ISO 8601 // date format, for example, 2013-03-20T17:03:43Z. StartDate *string `type:"string"` + + metadataInventoryRetrievalJobDescription `json:"-" xml:"-"` +} + +type metadataInventoryRetrievalJobDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3036,8 +2839,6 @@ func (s InventoryRetrievalJobDescription) GoString() string { // Provides options for specifying a range inventory retrieval job. type InventoryRetrievalJobInput struct { - _ struct{} `type:"structure"` - // The end of the date range in UTC for vault inventory retrieval that includes // archives created before this date. A string representation of ISO 8601 date // format, for example, 2013-03-20T17:03:43Z. @@ -3057,6 +2858,12 @@ type InventoryRetrievalJobInput struct { // archives created on or after this date. A string representation of ISO 8601 // date format, for example, 2013-03-20T17:03:43Z. StartDate *string `type:"string"` + + metadataInventoryRetrievalJobInput `json:"-" xml:"-"` +} + +type metadataInventoryRetrievalJobInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3071,8 +2878,6 @@ func (s InventoryRetrievalJobInput) GoString() string { // Describes an Amazon Glacier job. type JobDescription struct { - _ struct{} `type:"structure"` - // The job type. It is either ArchiveRetrieval or InventoryRetrieval. Action *string `type:"string" enum:"ActionCode"` @@ -3150,6 +2955,12 @@ type JobDescription struct { // The Amazon Resource Name (ARN) of the vault from which the archive retrieval // was requested. VaultARN *string `type:"string"` + + metadataJobDescription `json:"-" xml:"-"` +} + +type metadataJobDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3164,8 +2975,6 @@ func (s JobDescription) GoString() string { // Provides options for defining a job. type JobParameters struct { - _ struct{} `type:"structure"` - // The ID of the archive that you want to retrieve. This field is required only // if Type is set to archive-retrieval. An error occurs if you specify this // request parameter for an inventory retrieval job request. @@ -3205,6 +3014,12 @@ type JobParameters struct { // The job type. You can initiate a job to retrieve an archive or get an inventory // of a vault. Valid values are "archive-retrieval" and "inventory-retrieval". Type *string `type:"string"` + + metadataJobParameters `json:"-" xml:"-"` +} + +type metadataJobParameters struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3219,8 +3034,6 @@ func (s JobParameters) GoString() string { // Provides options for retrieving a job list for an Amazon Glacier vault. type ListJobsInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -3247,6 +3060,12 @@ type ListJobsInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataListJobsInput `json:"-" xml:"-"` +} + +type metadataListJobsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3259,26 +3078,8 @@ func (s ListJobsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type ListJobsOutput struct { - _ struct{} `type:"structure"` - // A list of job objects. Each job object contains metadata describing the job. JobList []*JobDescription `type:"list"` @@ -3286,6 +3087,12 @@ type ListJobsOutput struct { // You use this value in a new List Jobs request to obtain more jobs in the // list. If there are no more jobs, this value is null. Marker *string `type:"string"` + + metadataListJobsOutput `json:"-" xml:"-"` +} + +type metadataListJobsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3301,8 +3108,6 @@ func (s ListJobsOutput) GoString() string { // Provides options for retrieving list of in-progress multipart uploads for // an Amazon Glacier vault. type ListMultipartUploadsInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -3323,6 +3128,12 @@ type ListMultipartUploadsInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataListMultipartUploadsInput `json:"-" xml:"-"` +} + +type metadataListMultipartUploadsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3335,26 +3146,8 @@ func (s ListMultipartUploadsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListMultipartUploadsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMultipartUploadsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type ListMultipartUploadsOutput struct { - _ struct{} `type:"structure"` - // An opaque string that represents where to continue pagination of the results. // You use the marker in a new List Multipart Uploads request to obtain more // uploads in the list. If there are no more uploads, this value is null. @@ -3362,6 +3155,12 @@ type ListMultipartUploadsOutput struct { // A list of in-progress multipart uploads. UploadsList []*UploadListElement `type:"list"` + + metadataListMultipartUploadsOutput `json:"-" xml:"-"` +} + +type metadataListMultipartUploadsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3377,8 +3176,6 @@ func (s ListMultipartUploadsOutput) GoString() string { // Provides options for retrieving a list of parts of an archive that have been // uploaded in a specific multipart upload. type ListPartsInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -3402,6 +3199,12 @@ type ListPartsInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataListPartsInput `json:"-" xml:"-"` +} + +type metadataListPartsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3414,29 +3217,8 @@ func (s ListPartsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPartsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPartsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type ListPartsOutput struct { - _ struct{} `type:"structure"` - // The description of the archive that was specified in the Initiate Multipart // Upload request. ArchiveDescription *string `type:"string"` @@ -3461,6 +3243,12 @@ type ListPartsOutput struct { // The Amazon Resource Name (ARN) of the vault to which the multipart upload // was initiated. VaultARN *string `type:"string"` + + metadataListPartsOutput `json:"-" xml:"-"` +} + +type metadataListPartsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3475,8 +3263,6 @@ func (s ListPartsOutput) GoString() string { // The input value for ListTagsForVaultInput. type ListTagsForVaultInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -3486,6 +3272,12 @@ type ListTagsForVaultInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataListTagsForVaultInput `json:"-" xml:"-"` +} + +type metadataListTagsForVaultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3498,28 +3290,16 @@ func (s ListTagsForVaultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForVaultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForVaultInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type ListTagsForVaultOutput struct { - _ struct{} `type:"structure"` - // The tags attached to the vault. Each tag is composed of a key and a value. Tags map[string]*string `type:"map"` + + metadataListTagsForVaultOutput `json:"-" xml:"-"` +} + +type metadataListTagsForVaultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3535,8 +3315,6 @@ func (s ListTagsForVaultOutput) GoString() string { // Provides options to retrieve the vault list owned by the calling user's account. // The list provides metadata information for each vault. type ListVaultsInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You // can either specify an AWS account ID or optionally a single apos-apos (hyphen), @@ -3552,6 +3330,12 @@ type ListVaultsInput struct { // A string used for pagination. The marker specifies the vault ARN after which // the listing of vaults should begin. Marker *string `location:"querystring" locationName:"marker" type:"string"` + + metadataListVaultsInput `json:"-" xml:"-"` +} + +type metadataListVaultsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3564,29 +3348,20 @@ func (s ListVaultsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListVaultsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVaultsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type ListVaultsOutput struct { - _ struct{} `type:"structure"` - // The vault ARN at which to continue pagination of the results. You use the // marker in another List Vaults request to obtain more vaults in the list. Marker *string `type:"string"` // List of vaults. VaultList []*DescribeVaultOutput `type:"list"` + + metadataListVaultsOutput `json:"-" xml:"-"` +} + +type metadataListVaultsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3601,14 +3376,18 @@ func (s ListVaultsOutput) GoString() string { // A list of the part sizes of the multipart upload. type PartListElement struct { - _ struct{} `type:"structure"` - // The byte range of a part, inclusive of the upper value of the range. RangeInBytes *string `type:"string"` // The SHA256 tree hash value that Amazon Glacier calculated for the part. This // field is never null. SHA256TreeHash *string `type:"string"` + + metadataPartListElement `json:"-" xml:"-"` +} + +type metadataPartListElement struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3623,8 +3402,6 @@ func (s PartListElement) GoString() string { // The input value for RemoveTagsFromVaultInput. type RemoveTagsFromVaultInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -3637,6 +3414,12 @@ type RemoveTagsFromVaultInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataRemoveTagsFromVaultInput `json:"-" xml:"-"` +} + +type metadataRemoveTagsFromVaultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3649,24 +3432,12 @@ func (s RemoveTagsFromVaultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsFromVaultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromVaultInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RemoveTagsFromVaultOutput struct { + metadataRemoveTagsFromVaultOutput `json:"-" xml:"-"` } -type RemoveTagsFromVaultOutput struct { - _ struct{} `type:"structure"` +type metadataRemoveTagsFromVaultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3681,8 +3452,6 @@ func (s RemoveTagsFromVaultOutput) GoString() string { // SetDataRetrievalPolicy input. type SetDataRetrievalPolicyInput struct { - _ struct{} `type:"structure"` - // The AccountId value is the AWS account ID. This value must match the AWS // account ID associated with the credentials used to sign the request. You // can either specify an AWS account ID or optionally a single apos-apos (hyphen), @@ -3693,6 +3462,12 @@ type SetDataRetrievalPolicyInput struct { // The data retrieval policy in JSON format. Policy *DataRetrievalPolicy `type:"structure"` + + metadataSetDataRetrievalPolicyInput `json:"-" xml:"-"` +} + +type metadataSetDataRetrievalPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3705,21 +3480,12 @@ func (s SetDataRetrievalPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetDataRetrievalPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetDataRetrievalPolicyInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetDataRetrievalPolicyOutput struct { + metadataSetDataRetrievalPolicyOutput `json:"-" xml:"-"` } -type SetDataRetrievalPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataSetDataRetrievalPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3734,8 +3500,6 @@ func (s SetDataRetrievalPolicyOutput) GoString() string { // SetVaultAccessPolicy input. type SetVaultAccessPolicyInput struct { - _ struct{} `type:"structure" payload:"Policy"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -3748,6 +3512,12 @@ type SetVaultAccessPolicyInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataSetVaultAccessPolicyInput `json:"-" xml:"-"` +} + +type metadataSetVaultAccessPolicyInput struct { + SDKShapeTraits bool `type:"structure" payload:"Policy"` } // String returns the string representation @@ -3760,24 +3530,12 @@ func (s SetVaultAccessPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetVaultAccessPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetVaultAccessPolicyInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetVaultAccessPolicyOutput struct { + metadataSetVaultAccessPolicyOutput `json:"-" xml:"-"` } -type SetVaultAccessPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataSetVaultAccessPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3793,8 +3551,6 @@ func (s SetVaultAccessPolicyOutput) GoString() string { // Provides options to configure notifications that will be sent when specific // events happen to a vault. type SetVaultNotificationsInput struct { - _ struct{} `type:"structure" payload:"VaultNotificationConfig"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -3807,6 +3563,12 @@ type SetVaultNotificationsInput struct { // Provides options for specifying notification configuration. VaultNotificationConfig *VaultNotificationConfig `locationName:"vaultNotificationConfig" type:"structure"` + + metadataSetVaultNotificationsInput `json:"-" xml:"-"` +} + +type metadataSetVaultNotificationsInput struct { + SDKShapeTraits bool `type:"structure" payload:"VaultNotificationConfig"` } // String returns the string representation @@ -3819,24 +3581,12 @@ func (s SetVaultNotificationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetVaultNotificationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetVaultNotificationsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetVaultNotificationsOutput struct { + metadataSetVaultNotificationsOutput `json:"-" xml:"-"` } -type SetVaultNotificationsOutput struct { - _ struct{} `type:"structure"` +type metadataSetVaultNotificationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3851,8 +3601,6 @@ func (s SetVaultNotificationsOutput) GoString() string { // Provides options to add an archive to a vault. type UploadArchiveInput struct { - _ struct{} `type:"structure" payload:"Body"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -3871,6 +3619,12 @@ type UploadArchiveInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataUploadArchiveInput `json:"-" xml:"-"` +} + +type metadataUploadArchiveInput struct { + SDKShapeTraits bool `type:"structure" payload:"Body"` } // String returns the string representation @@ -3883,26 +3637,8 @@ func (s UploadArchiveInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UploadArchiveInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UploadArchiveInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A list of in-progress multipart uploads for a vault. type UploadListElement struct { - _ struct{} `type:"structure"` - // The description of the archive that was specified in the Initiate Multipart // Upload request. ArchiveDescription *string `type:"string"` @@ -3920,6 +3656,12 @@ type UploadListElement struct { // The Amazon Resource Name (ARN) of the vault that contains the archive. VaultARN *string `type:"string"` + + metadataUploadListElement `json:"-" xml:"-"` +} + +type metadataUploadListElement struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3934,8 +3676,6 @@ func (s UploadListElement) GoString() string { // Provides options to upload a part of an archive in a multipart upload operation. type UploadMultipartPartInput struct { - _ struct{} `type:"structure" payload:"Body"` - // The AccountId value is the AWS account ID of the account that owns the vault. // You can either specify an AWS account ID or optionally a single apos-apos // (hyphen), in which case Amazon Glacier uses the AWS account ID associated @@ -3960,6 +3700,12 @@ type UploadMultipartPartInput struct { // The name of the vault. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"` + + metadataUploadMultipartPartInput `json:"-" xml:"-"` +} + +type metadataUploadMultipartPartInput struct { + SDKShapeTraits bool `type:"structure" payload:"Body"` } // String returns the string representation @@ -3972,31 +3718,16 @@ func (s UploadMultipartPartInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UploadMultipartPartInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UploadMultipartPartInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - if s.VaultName == nil { - invalidParams.Add(request.NewErrParamRequired("VaultName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the Amazon Glacier response to your request. type UploadMultipartPartOutput struct { - _ struct{} `type:"structure"` - // The SHA256 tree hash that Amazon Glacier computed for the uploaded part. Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"` + + metadataUploadMultipartPartOutput `json:"-" xml:"-"` +} + +type metadataUploadMultipartPartOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4011,10 +3742,14 @@ func (s UploadMultipartPartOutput) GoString() string { // Contains the vault access policy. type VaultAccessPolicy struct { - _ struct{} `type:"structure"` - // The vault access policy. Policy *string `type:"string"` + + metadataVaultAccessPolicy `json:"-" xml:"-"` +} + +type metadataVaultAccessPolicy struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4029,10 +3764,14 @@ func (s VaultAccessPolicy) GoString() string { // Contains the vault lock policy. type VaultLockPolicy struct { - _ struct{} `type:"structure"` - // The vault lock policy. Policy *string `type:"string"` + + metadataVaultLockPolicy `json:"-" xml:"-"` +} + +type metadataVaultLockPolicy struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4047,8 +3786,6 @@ func (s VaultLockPolicy) GoString() string { // Represents a vault's notification configuration. type VaultNotificationConfig struct { - _ struct{} `type:"structure"` - // A list of one or more events for which Amazon Glacier will send a notification // to the specified Amazon SNS topic. Events []*string `type:"list"` @@ -4056,6 +3793,12 @@ type VaultNotificationConfig struct { // The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource // Name (ARN). SNSTopic *string `type:"string"` + + metadataVaultNotificationConfig `json:"-" xml:"-"` +} + +type metadataVaultNotificationConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/customizations.go index 613606019..bd3bc8a98 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/customizations.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/customizations.go @@ -37,18 +37,22 @@ func addAccountID(r *request.Request) { } func addChecksum(r *request.Request) { - if r.Body == nil || r.HTTPRequest.Header.Get("X-Amz-Sha256-Tree-Hash") != "" { + if r.Body == nil { return } h := ComputeHashes(r.Body) - hstr := hex.EncodeToString(h.TreeHash) - r.HTTPRequest.Header.Set("X-Amz-Sha256-Tree-Hash", hstr) - hLstr := hex.EncodeToString(h.LinearHash) - r.HTTPRequest.Header.Set("X-Amz-Content-Sha256", hLstr) + if r.HTTPRequest.Header.Get("X-Amz-Content-Sha256") == "" { + hstr := hex.EncodeToString(h.LinearHash) + r.HTTPRequest.Header.Set("X-Amz-Content-Sha256", hstr) + } + if r.HTTPRequest.Header.Get("X-Amz-Sha256-Tree-Hash") == "" { + hstr := hex.EncodeToString(h.TreeHash) + r.HTTPRequest.Header.Set("X-Amz-Sha256-Tree-Hash", hstr) + } } func addAPIVersion(r *request.Request) { - r.HTTPRequest.Header.Set("X-Amz-Glacier-Version", r.ClientInfo.APIVersion) + r.HTTPRequest.Header.Set("X-Amz-Glacier-Version", r.Service.APIVersion) } diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/customizations_test.go index 15b7a8ec6..595db8a1b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/customizations_test.go @@ -6,15 +6,16 @@ import ( "bytes" "testing" - "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/glacier" + "github.com/stretchr/testify/assert" ) var ( + _ = unit.Imported + payloadBuf = func() *bytes.Reader { buf := make([]byte, 5767168) // 5.5MB buffer for i := range buf { @@ -23,7 +24,7 @@ var ( return bytes.NewReader(buf) }() - svc = glacier.New(unit.Session) + svc = glacier.New(nil) ) func TestCustomizations(t *testing.T) { @@ -35,11 +36,11 @@ func TestCustomizations(t *testing.T) { assert.NoError(t, err) // Sets API version - assert.Equal(t, req.ClientInfo.APIVersion, req.HTTPRequest.Header.Get("x-amz-glacier-version")) + assert.Equal(t, req.Service.APIVersion, req.HTTPRequest.Header.Get("x-amz-glacier-version")) // Sets Account ID - v, _ := awsutil.ValuesAtPath(req.Params, "AccountId") - assert.Equal(t, "-", *(v[0].(*string))) + v := awsutil.ValuesAtPath(req.Params, "AccountId") + assert.Equal(t, "-", v[0]) // Computes checksums linear := "68aff0c5a91aa0491752bfb96e3fef33eb74953804f6a2f7b708d5bcefa8ff6b" @@ -68,23 +69,10 @@ func TestFillAccountIDWithNilStruct(t *testing.T) { empty := "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" // Sets Account ID - v, _ := awsutil.ValuesAtPath(req.Params, "AccountId") - assert.Equal(t, "-", *(v[0].(*string))) + v := awsutil.ValuesAtPath(req.Params, "AccountId") + assert.Equal(t, "-", v[0]) // Does not set tree hash assert.Equal(t, empty, req.HTTPRequest.Header.Get("x-amz-content-sha256")) assert.Equal(t, "", req.HTTPRequest.Header.Get("x-amz-sha256-tree-hash")) } - -func TestHashOnce(t *testing.T) { - req, _ := svc.UploadArchiveRequest(&glacier.UploadArchiveInput{ - VaultName: aws.String("vault"), - Body: payloadBuf, - }) - req.HTTPRequest.Header.Set("X-Amz-Sha256-Tree-Hash", "0") - - err := req.Build() - assert.NoError(t, err) - - assert.Equal(t, "0", req.HTTPRequest.Header.Get("x-amz-sha256-tree-hash")) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go index 9384d3dae..a11766b8a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/glacier" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleGlacier_AbortMultipartUpload() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.AbortMultipartUploadInput{ AccountId: aws.String("string"), // Required @@ -37,7 +36,7 @@ func ExampleGlacier_AbortMultipartUpload() { } func ExampleGlacier_AbortVaultLock() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.AbortVaultLockInput{ AccountId: aws.String("string"), // Required @@ -57,7 +56,7 @@ func ExampleGlacier_AbortVaultLock() { } func ExampleGlacier_AddTagsToVault() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.AddTagsToVaultInput{ AccountId: aws.String("string"), // Required @@ -81,7 +80,7 @@ func ExampleGlacier_AddTagsToVault() { } func ExampleGlacier_CompleteMultipartUpload() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.CompleteMultipartUploadInput{ AccountId: aws.String("string"), // Required @@ -104,7 +103,7 @@ func ExampleGlacier_CompleteMultipartUpload() { } func ExampleGlacier_CompleteVaultLock() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.CompleteVaultLockInput{ AccountId: aws.String("string"), // Required @@ -125,7 +124,7 @@ func ExampleGlacier_CompleteVaultLock() { } func ExampleGlacier_CreateVault() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.CreateVaultInput{ AccountId: aws.String("string"), // Required @@ -145,7 +144,7 @@ func ExampleGlacier_CreateVault() { } func ExampleGlacier_DeleteArchive() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.DeleteArchiveInput{ AccountId: aws.String("string"), // Required @@ -166,7 +165,7 @@ func ExampleGlacier_DeleteArchive() { } func ExampleGlacier_DeleteVault() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.DeleteVaultInput{ AccountId: aws.String("string"), // Required @@ -186,7 +185,7 @@ func ExampleGlacier_DeleteVault() { } func ExampleGlacier_DeleteVaultAccessPolicy() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.DeleteVaultAccessPolicyInput{ AccountId: aws.String("string"), // Required @@ -206,7 +205,7 @@ func ExampleGlacier_DeleteVaultAccessPolicy() { } func ExampleGlacier_DeleteVaultNotifications() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.DeleteVaultNotificationsInput{ AccountId: aws.String("string"), // Required @@ -226,7 +225,7 @@ func ExampleGlacier_DeleteVaultNotifications() { } func ExampleGlacier_DescribeJob() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.DescribeJobInput{ AccountId: aws.String("string"), // Required @@ -247,7 +246,7 @@ func ExampleGlacier_DescribeJob() { } func ExampleGlacier_DescribeVault() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.DescribeVaultInput{ AccountId: aws.String("string"), // Required @@ -267,7 +266,7 @@ func ExampleGlacier_DescribeVault() { } func ExampleGlacier_GetDataRetrievalPolicy() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.GetDataRetrievalPolicyInput{ AccountId: aws.String("string"), // Required @@ -286,7 +285,7 @@ func ExampleGlacier_GetDataRetrievalPolicy() { } func ExampleGlacier_GetJobOutput() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.GetJobOutputInput{ AccountId: aws.String("string"), // Required @@ -308,7 +307,7 @@ func ExampleGlacier_GetJobOutput() { } func ExampleGlacier_GetVaultAccessPolicy() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.GetVaultAccessPolicyInput{ AccountId: aws.String("string"), // Required @@ -328,7 +327,7 @@ func ExampleGlacier_GetVaultAccessPolicy() { } func ExampleGlacier_GetVaultLock() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.GetVaultLockInput{ AccountId: aws.String("string"), // Required @@ -348,7 +347,7 @@ func ExampleGlacier_GetVaultLock() { } func ExampleGlacier_GetVaultNotifications() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.GetVaultNotificationsInput{ AccountId: aws.String("string"), // Required @@ -368,7 +367,7 @@ func ExampleGlacier_GetVaultNotifications() { } func ExampleGlacier_InitiateJob() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.InitiateJobInput{ AccountId: aws.String("string"), // Required @@ -402,7 +401,7 @@ func ExampleGlacier_InitiateJob() { } func ExampleGlacier_InitiateMultipartUpload() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.InitiateMultipartUploadInput{ AccountId: aws.String("string"), // Required @@ -424,7 +423,7 @@ func ExampleGlacier_InitiateMultipartUpload() { } func ExampleGlacier_InitiateVaultLock() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.InitiateVaultLockInput{ AccountId: aws.String("string"), // Required @@ -447,7 +446,7 @@ func ExampleGlacier_InitiateVaultLock() { } func ExampleGlacier_ListJobs() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.ListJobsInput{ AccountId: aws.String("string"), // Required @@ -471,7 +470,7 @@ func ExampleGlacier_ListJobs() { } func ExampleGlacier_ListMultipartUploads() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.ListMultipartUploadsInput{ AccountId: aws.String("string"), // Required @@ -493,7 +492,7 @@ func ExampleGlacier_ListMultipartUploads() { } func ExampleGlacier_ListParts() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.ListPartsInput{ AccountId: aws.String("string"), // Required @@ -516,7 +515,7 @@ func ExampleGlacier_ListParts() { } func ExampleGlacier_ListTagsForVault() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.ListTagsForVaultInput{ AccountId: aws.String("string"), // Required @@ -536,7 +535,7 @@ func ExampleGlacier_ListTagsForVault() { } func ExampleGlacier_ListVaults() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.ListVaultsInput{ AccountId: aws.String("string"), // Required @@ -557,7 +556,7 @@ func ExampleGlacier_ListVaults() { } func ExampleGlacier_RemoveTagsFromVault() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.RemoveTagsFromVaultInput{ AccountId: aws.String("string"), // Required @@ -581,7 +580,7 @@ func ExampleGlacier_RemoveTagsFromVault() { } func ExampleGlacier_SetDataRetrievalPolicy() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.SetDataRetrievalPolicyInput{ AccountId: aws.String("string"), // Required @@ -609,7 +608,7 @@ func ExampleGlacier_SetDataRetrievalPolicy() { } func ExampleGlacier_SetVaultAccessPolicy() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.SetVaultAccessPolicyInput{ AccountId: aws.String("string"), // Required @@ -632,7 +631,7 @@ func ExampleGlacier_SetVaultAccessPolicy() { } func ExampleGlacier_SetVaultNotifications() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.SetVaultNotificationsInput{ AccountId: aws.String("string"), // Required @@ -659,7 +658,7 @@ func ExampleGlacier_SetVaultNotifications() { } func ExampleGlacier_UploadArchive() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.UploadArchiveInput{ AccountId: aws.String("string"), // Required @@ -682,7 +681,7 @@ func ExampleGlacier_UploadArchive() { } func ExampleGlacier_UploadMultipartPart() { - svc := glacier.New(session.New()) + svc := glacier.New(nil) params := &glacier.UploadMultipartPartInput{ AccountId: aws.String("string"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go index 7b2f76798..768a5adeb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface.go @@ -142,5 +142,3 @@ type GlacierAPI interface { UploadMultipartPart(*glacier.UploadMultipartPartInput) (*glacier.UploadMultipartPartOutput, error) } - -var _ GlacierAPI = (*glacier.Glacier)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface_test.go new file mode 100644 index 000000000..8a9fff607 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package glacieriface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/glacier" + "github.com/aws/aws-sdk-go/service/glacier/glacieriface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*glacieriface.GlacierAPI)(nil), glacier.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go index b83c63a61..35e38e1a0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/service.go @@ -4,11 +4,12 @@ package glacier import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restjson" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Amazon Glacier is a storage solution for "cold data." @@ -42,64 +43,40 @@ import ( // - The Getting Started section walks you through the process of creating a // vault, uploading archives, creating jobs to download archives, retrieving // the job output, and deleting archives. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type Glacier struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "glacier" - -// New creates a new instance of the Glacier client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a Glacier client from just a session. -// svc := glacier.New(mySession) -// -// // Create a Glacier client with additional configuration -// svc := glacier.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *Glacier { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Glacier { - svc := &Glacier{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2012-06-01", - }, - handlers, - ), +// New returns a new Glacier client. +func New(config *aws.Config) *Glacier { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "glacier", + APIVersion: "2012-06-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &Glacier{service} } // newRequest creates a new request for a Glacier operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/waiters.go deleted file mode 100644 index e6fbedfa1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/glacier/waiters.go +++ /dev/null @@ -1,65 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package glacier - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *Glacier) WaitUntilVaultExists(input *DescribeVaultInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeVault", - Delay: 3, - MaxAttempts: 15, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 200, - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "ResourceNotFoundException", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *Glacier) WaitUntilVaultNotExists(input *DescribeVaultInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeVault", - Delay: 3, - MaxAttempts: 15, - Acceptors: []waiter.WaitAcceptor{ - { - State: "retry", - Matcher: "status", - Argument: "", - Expected: 200, - }, - { - State: "success", - Matcher: "error", - Argument: "", - Expected: "ResourceNotFoundException", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/api.go b/vendor/github.com/aws/aws-sdk-go/service/iam/api.go index e35b54508..1bea50e7c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/api.go @@ -4,13 +4,10 @@ package iam import ( - "fmt" "time" "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/private/protocol/query" ) const opAddClientIDToOpenIDConnectProvider = "AddClientIDToOpenIDConnectProvider" @@ -28,15 +25,13 @@ func (c *IAM) AddClientIDToOpenIDConnectProviderRequest(input *AddClientIDToOpen } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AddClientIDToOpenIDConnectProviderOutput{} req.Data = output return } // Adds a new client ID (also known as audience) to the list of client IDs already -// registered for the specified IAM OpenID Connect (OIDC) provider resource. +// registered for the specified IAM OpenID Connect provider. // // This action is idempotent; it does not fail or return an error if you add // an existing client ID to the provider. @@ -61,19 +56,13 @@ func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AddRoleToInstanceProfileOutput{} req.Data = output return } -// Adds the specified IAM role to the specified instance profile. -// -// The caller of this API must be granted the PassRole permission on the IAM -// role by a permission policy. -// -// For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). +// Adds the specified role to the specified instance profile. For more information +// about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). func (c *IAM) AddRoleToInstanceProfile(input *AddRoleToInstanceProfileInput) (*AddRoleToInstanceProfileOutput, error) { @@ -97,8 +86,6 @@ func (c *IAM) AddUserToGroupRequest(input *AddUserToGroupInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AddUserToGroupOutput{} req.Data = output return @@ -126,21 +113,19 @@ func (c *IAM) AttachGroupPolicyRequest(input *AttachGroupPolicyInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AttachGroupPolicyOutput{} req.Data = output return } -// Attaches the specified managed policy to the specified IAM group. +// Attaches the specified managed policy to the specified group. // // You use this API to attach a managed policy to a group. To embed an inline // policy in a group, use PutGroupPolicy. // -// For more information about policies, see Managed Policies and Inline Policies -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// For more information about policies, refer to Managed Policies and Inline +// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) AttachGroupPolicy(input *AttachGroupPolicyInput) (*AttachGroupPolicyOutput, error) { req, out := c.AttachGroupPolicyRequest(input) err := req.Send() @@ -162,25 +147,23 @@ func (c *IAM) AttachRolePolicyRequest(input *AttachRolePolicyInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AttachRolePolicyOutput{} req.Data = output return } -// Attaches the specified managed policy to the specified IAM role. +// Attaches the specified managed policy to the specified role. // -// When you attach a managed policy to a role, the managed policy becomes part -// of the role's permission (access) policy. You cannot use a managed policy -// as the role's trust policy. The role's trust policy is created at the same -// time as the role, using CreateRole. You can update a role's trust policy -// using UpdateAssumeRolePolicy. +// When you attach a managed policy to a role, the managed policy is used as +// the role's access (permissions) policy. You cannot use a managed policy as +// the role's trust policy. The role's trust policy is created at the same time +// as the role, using CreateRole. You can update a role's trust policy using +// UpdateAssumeRolePolicy. // // Use this API to attach a managed policy to a role. To embed an inline policy -// in a role, use PutRolePolicy. For more information about policies, see Managed -// Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// in a role, use PutRolePolicy. For more information about policies, refer +// to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) AttachRolePolicy(input *AttachRolePolicyInput) (*AttachRolePolicyOutput, error) { req, out := c.AttachRolePolicyRequest(input) err := req.Send() @@ -202,8 +185,6 @@ func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AttachUserPolicyOutput{} req.Data = output return @@ -214,9 +195,9 @@ func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *reques // You use this API to attach a managed policy to a user. To embed an inline // policy in a user, use PutUserPolicy. // -// For more information about policies, see Managed Policies and Inline Policies -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// For more information about policies, refer to Managed Policies and Inline +// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) AttachUserPolicy(input *AttachUserPolicyInput) (*AttachUserPolicyOutput, error) { req, out := c.AttachUserPolicyRequest(input) err := req.Send() @@ -238,8 +219,6 @@ func (c *IAM) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ChangePasswordOutput{} req.Data = output return @@ -250,7 +229,7 @@ func (c *IAM) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Re // // To change the password for a different user, see UpdateLoginProfile. For // more information about modifying passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) { req, out := c.ChangePasswordRequest(input) err := req.Send() @@ -280,14 +259,14 @@ func (c *IAM) CreateAccessKeyRequest(input *CreateAccessKeyInput) (req *request. // Creates a new AWS secret access key and corresponding AWS access key ID for // the specified user. The default status for new keys is Active. // -// If you do not specify a user name, IAM determines the user name implicitly +// If you do not specify a user name, IAM determines the user name implicitly // based on the AWS access key ID signing the request. Because this action works // for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. // // For information about limits on the number of keys you can create, see // Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) -// in the IAM User Guide. +// in the Using IAM guide. // // To ensure the security of your AWS account, the secret access key is accessible // only during key and user creation. You must save the key (for example, in @@ -315,8 +294,6 @@ func (c *IAM) CreateAccountAliasRequest(input *CreateAccountAliasInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateAccountAliasOutput{} req.Data = output return @@ -324,7 +301,7 @@ func (c *IAM) CreateAccountAliasRequest(input *CreateAccountAliasInput) (req *re // Creates an alias for your AWS account. For information about using an AWS // account alias, see Using an Alias for Your AWS Account ID (http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) CreateAccountAlias(input *CreateAccountAliasInput) (*CreateAccountAliasOutput, error) { req, out := c.CreateAccountAliasRequest(input) err := req.Send() @@ -355,7 +332,7 @@ func (c *IAM) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, // // For information about the number of groups you can create, see Limitations // on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error) { req, out := c.CreateGroupRequest(input) err := req.Send() @@ -387,7 +364,7 @@ func (c *IAM) CreateInstanceProfileRequest(input *CreateInstanceProfileInput) (r // // For information about the number of instance profiles you can create, see // Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) CreateInstanceProfile(input *CreateInstanceProfileInput) (*CreateInstanceProfileOutput, error) { req, out := c.CreateInstanceProfileRequest(input) err := req.Send() @@ -417,7 +394,7 @@ func (c *IAM) CreateLoginProfileRequest(input *CreateLoginProfileInput) (req *re // Creates a password for the specified user, giving the user the ability to // access AWS services through the AWS Management Console. For more information // about managing passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) CreateLoginProfile(input *CreateLoginProfileInput) (*CreateLoginProfileOutput, error) { req, out := c.CreateLoginProfileRequest(input) err := req.Send() @@ -458,9 +435,9 @@ func (c *IAM) CreateOpenIDConnectProviderRequest(input *CreateOpenIDConnectProvi // that the IdP uses. You get all of this information from the OIDC IdP that // you want to use for access to AWS. // -// Because trust for the OIDC provider is ultimately derived from the IAM -// provider that this action creates, it is a best practice to limit access -// to the CreateOpenIDConnectProvider action to highly-privileged users. +// Because trust for the OIDC provider is ultimately derived from the IAM provider +// that this action creates, it is a best practice to limit access to the CreateOpenIDConnectProvider +// action to highly-privileged users. func (c *IAM) CreateOpenIDConnectProvider(input *CreateOpenIDConnectProviderInput) (*CreateOpenIDConnectProviderOutput, error) { req, out := c.CreateOpenIDConnectProviderRequest(input) err := req.Send() @@ -492,11 +469,11 @@ func (c *IAM) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques // This operation creates a policy version with a version identifier of v1 // and sets v1 as the policy's default version. For more information about policy // versions, see Versioning for Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) -// in the IAM User Guide. +// in the Using IAM guide. // -// For more information about managed policies in general, see Managed Policies -// and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// For more information about managed policies in general, refer to Managed +// Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) { req, out := c.CreatePolicyRequest(input) err := req.Send() @@ -529,12 +506,13 @@ func (c *IAM) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * // version using DeletePolicyVersion before you create a new version. // // Optionally, you can set the new version as the policy's default version. -// The default version is the version that is in effect for the IAM users, groups, -// and roles to which the policy is attached. +// The default version is the operative version; that is, the version that is +// in effect for the IAM users, groups, and roles that the policy is attached +// to. // // For more information about managed policy versions, see Versioning for Managed // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) { req, out := c.CreatePolicyVersionRequest(input) err := req.Send() @@ -565,7 +543,10 @@ func (c *IAM) CreateRoleRequest(input *CreateRoleInput) (req *request.Request, o // go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // For information about limitations on role names and the number of roles you // can create, go to Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) -// in the IAM User Guide. +// in the Using IAM guide. +// +// The policy in the following example grants permission to an EC2 instance +// to assume the role. func (c *IAM) CreateRole(input *CreateRoleInput) (*CreateRoleOutput, error) { req, out := c.CreateRoleRequest(input) err := req.Send() @@ -592,28 +573,26 @@ func (c *IAM) CreateSAMLProviderRequest(input *CreateSAMLProviderInput) (req *re return } -// Creates an IAM resource that describes an identity provider (IdP) that supports +// Creates an IAM entity to describe an identity provider (IdP) that supports // SAML 2.0. // -// The SAML provider resource that you create with this operation can be used -// as a principal in an IAM role's trust policy to enable federated users who -// sign-in using the SAML IdP to assume the role. You can create an IAM role -// that supports Web-based single sign-on (SSO) to the AWS Management Console -// or one that supports API access to AWS. -// -// When you create the SAML provider resource, you upload an a SAML metadata -// document that you get from your IdP and that includes the issuer's name, -// expiration information, and keys that can be used to validate the SAML authentication -// response (assertions) that the IdP sends. You must generate the metadata -// document using the identity management software that is used as your organization's -// IdP. -// -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). -// -// For more information, see Enabling SAML 2.0 Federated Users to Access -// the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html) -// and About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) -// in the IAM User Guide. +// The SAML provider that you create with this operation can be used as a +// principal in a role's trust policy to establish a trust relationship between +// AWS and a SAML identity provider. You can create an IAM role that supports +// Web-based single sign-on (SSO) to the AWS Management Console or one that +// supports API access to AWS. +// +// When you create the SAML provider, you upload an a SAML metadata document +// that you get from your IdP and that includes the issuer's name, expiration +// information, and keys that can be used to validate the SAML authentication +// response (assertions) that are received from the IdP. You must generate the +// metadata document using the identity management software that is used as +// your organization's IdP. +// +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// For more information, see Giving Console Access Using SAML (http://docs.aws.amazon.com/STS/latest/UsingSTS/STSMgmtConsole-SAML.html) +// and Creating Temporary Security Credentials for SAML Federation (http://docs.aws.amazon.com/STS/latest/UsingSTS/CreatingSAML.html) +// in the Using Temporary Credentials guide. func (c *IAM) CreateSAMLProvider(input *CreateSAMLProviderInput) (*CreateSAMLProviderOutput, error) { req, out := c.CreateSAMLProviderRequest(input) err := req.Send() @@ -640,11 +619,11 @@ func (c *IAM) CreateUserRequest(input *CreateUserInput) (req *request.Request, o return } -// Creates a new IAM user for your AWS account. +// Creates a new user for your AWS account. // -// For information about limitations on the number of IAM users you can create, +// For information about limitations on the number of users you can create, // see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { req, out := c.CreateUserRequest(input) err := req.Send() @@ -675,13 +654,13 @@ func (c *IAM) CreateVirtualMFADeviceRequest(input *CreateVirtualMFADeviceInput) // virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. // For more information about creating and working with virtual MFA devices, // go to Using a Virtual MFA Device (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_VirtualMFA.html) -// in the IAM User Guide. +// in the Using IAM guide. // // For information about limits on the number of MFA devices you can create, // see Limitations on Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) -// in the IAM User Guide. +// in the Using IAM guide. // -// The seed information contained in the QR code and the Base32 string should +// The seed information contained in the QR code and the Base32 string should // be treated like any other secret access information, such as your AWS access // keys or your passwords. After you provision your virtual device, you should // ensure that the information is destroyed following secure procedures. @@ -706,8 +685,6 @@ func (c *IAM) DeactivateMFADeviceRequest(input *DeactivateMFADeviceInput) (req * } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeactivateMFADeviceOutput{} req.Data = output return @@ -718,7 +695,7 @@ func (c *IAM) DeactivateMFADeviceRequest(input *DeactivateMFADeviceInput) (req * // // For more information about creating and working with virtual MFA devices, // go to Using a Virtual MFA Device (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_VirtualMFA.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) DeactivateMFADevice(input *DeactivateMFADeviceInput) (*DeactivateMFADeviceOutput, error) { req, out := c.DeactivateMFADeviceRequest(input) err := req.Send() @@ -740,16 +717,14 @@ func (c *IAM) DeleteAccessKeyRequest(input *DeleteAccessKeyInput) (req *request. } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteAccessKeyOutput{} req.Data = output return } -// Deletes the access key pair associated with the specified IAM user. +// Deletes the access key associated with the specified user. // -// If you do not specify a user name, IAM determines the user name implicitly +// If you do not specify a user name, IAM determines the user name implicitly // based on the AWS access key ID signing the request. Because this action works // for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. @@ -774,8 +749,6 @@ func (c *IAM) DeleteAccountAliasRequest(input *DeleteAccountAliasInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteAccountAliasOutput{} req.Data = output return @@ -783,7 +756,7 @@ func (c *IAM) DeleteAccountAliasRequest(input *DeleteAccountAliasInput) (req *re // Deletes the specified AWS account alias. For information about using an AWS // account alias, see Using an Alias for Your AWS Account ID (http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) DeleteAccountAlias(input *DeleteAccountAliasInput) (*DeleteAccountAliasOutput, error) { req, out := c.DeleteAccountAliasRequest(input) err := req.Send() @@ -805,14 +778,12 @@ func (c *IAM) DeleteAccountPasswordPolicyRequest(input *DeleteAccountPasswordPol } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteAccountPasswordPolicyOutput{} req.Data = output return } -// Deletes the password policy for the AWS account. There are no parameters. +// Deletes the password policy for the AWS account. func (c *IAM) DeleteAccountPasswordPolicy(input *DeleteAccountPasswordPolicyInput) (*DeleteAccountPasswordPolicyOutput, error) { req, out := c.DeleteAccountPasswordPolicyRequest(input) err := req.Send() @@ -834,15 +805,13 @@ func (c *IAM) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteGroupOutput{} req.Data = output return } -// Deletes the specified IAM group. The group must not contain any users or -// have any attached policies. +// Deletes the specified group. The group must not contain any users or have +// any attached policies. func (c *IAM) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error) { req, out := c.DeleteGroupRequest(input) err := req.Send() @@ -864,20 +833,17 @@ func (c *IAM) DeleteGroupPolicyRequest(input *DeleteGroupPolicyInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteGroupPolicyOutput{} req.Data = output return } -// Deletes the specified inline policy that is embedded in the specified IAM -// group. +// Deletes the specified inline policy that is embedded in the specified group. // // A group can also have managed policies attached to it. To detach a managed // policy from a group, use DetachGroupPolicy. For more information about policies, // refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) DeleteGroupPolicy(input *DeleteGroupPolicyInput) (*DeleteGroupPolicyOutput, error) { req, out := c.DeleteGroupPolicyRequest(input) err := req.Send() @@ -899,8 +865,6 @@ func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteInstanceProfileOutput{} req.Data = output return @@ -912,10 +876,8 @@ func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (r // Make sure you do not have any Amazon EC2 instances running with the instance // profile you are about to delete. Deleting a role or instance profile that // is associated with a running instance will break any applications running -// on the instance. -// -// For more information about instance profiles, go to About Instance Profiles -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). +// on the instance. For more information about instance profiles, go to About +// Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). func (c *IAM) DeleteInstanceProfile(input *DeleteInstanceProfileInput) (*DeleteInstanceProfileOutput, error) { req, out := c.DeleteInstanceProfileRequest(input) err := req.Send() @@ -937,21 +899,18 @@ func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteLoginProfileOutput{} req.Data = output return } -// Deletes the password for the specified IAM user, which terminates the user's +// Deletes the password for the specified user, which terminates the user's // ability to access AWS services through the AWS Management Console. // -// Deleting a user's password does not prevent a user from accessing AWS -// through the command line interface or the API. To prevent all user access -// you must also either make any access keys inactive or delete them. For more -// information about making keys inactive or deleting them, see UpdateAccessKey -// and DeleteAccessKey. +// Deleting a user's password does not prevent a user from accessing IAM through +// the command line interface or the API. To prevent all user access you must +// also either make the access key inactive or delete it. For more information +// about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey. func (c *IAM) DeleteLoginProfile(input *DeleteLoginProfileInput) (*DeleteLoginProfileOutput, error) { req, out := c.DeleteLoginProfileRequest(input) err := req.Send() @@ -973,21 +932,19 @@ func (c *IAM) DeleteOpenIDConnectProviderRequest(input *DeleteOpenIDConnectProvi } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteOpenIDConnectProviderOutput{} req.Data = output return } -// Deletes an OpenID Connect identity provider (IdP) resource object in IAM. +// Deletes an IAM OpenID Connect identity provider. // -// Deleting an IAM OIDC provider resource does not update any roles that reference -// the provider as a principal in their trust policies. Any attempt to assume -// a role that references a deleted provider fails. +// Deleting an OIDC provider does not update any roles that reference the provider +// as a principal in their trust policies. Any attempt to assume a role that +// references a provider that has been deleted will fail. // // This action is idempotent; it does not fail or return an error if you call -// the action for a provider that does not exist. +// the action for a provider that was already deleted. func (c *IAM) DeleteOpenIDConnectProvider(input *DeleteOpenIDConnectProviderInput) (*DeleteOpenIDConnectProviderOutput, error) { req, out := c.DeleteOpenIDConnectProviderRequest(input) err := req.Send() @@ -1009,8 +966,6 @@ func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeletePolicyOutput{} req.Data = output return @@ -1018,27 +973,22 @@ func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // Deletes the specified managed policy. // -// Before you can delete a managed policy, you must first detach the policy -// from all users, groups, and roles that it is attached to, and you must delete +// Before you can delete a managed policy, you must detach the policy from +// all users, groups, and roles that it is attached to, and you must delete // all of the policy's versions. The following steps describe the process for -// deleting a managed policy: -// -// Detach the policy from all users, groups, and roles that the policy is -// attached to, using the DetachUserPolicy, DetachGroupPolicy, or DetachRolePolicy -// APIs. To list all the users, groups, and roles that a policy is attached -// to, use ListEntitiesForPolicy. -// -// Delete all versions of the policy using DeletePolicyVersion. To list the -// policy's versions, use ListPolicyVersions. You cannot use DeletePolicyVersion -// to delete the version that is marked as the default version. You delete the -// policy's default version in the next step of the process. -// -// Delete the policy (this automatically deletes the policy's default version) -// using this API. -// -// For information about managed policies, see Managed Policies and Inline +// deleting a managed policy: Detach the policy from all users, groups, and +// roles that the policy is attached to, using the DetachUserPolicy, DetachGroupPolicy, +// or DetachRolePolicy APIs. To list all the users, groups, and roles that a +// policy is attached to, use ListEntitiesForPolicy. Delete all versions of +// the policy using DeletePolicyVersion. To list the policy's versions, use +// ListPolicyVersions. You cannot use DeletePolicyVersion to delete the version +// that is marked as the default version. You delete the policy's default version +// in the next step of the process. Delete the policy (this automatically deletes +// the policy's default version) using this API. +// +// For information about managed policies, refer to Managed Policies and Inline // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { req, out := c.DeletePolicyRequest(input) err := req.Send() @@ -1060,22 +1010,20 @@ func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeletePolicyVersionOutput{} req.Data = output return } -// Deletes the specified version from the specified managed policy. +// Deletes the specified version of the specified managed policy. // -// You cannot delete the default version from a policy using this API. To delete -// the default version from a policy, use DeletePolicy. To find out which version +// You cannot delete the default version of a policy using this API. To delete +// the default version of a policy, use DeletePolicy. To find out which version // of a policy is marked as the default version, use ListPolicyVersions. // -// For information about versions for managed policies, see Versioning for -// Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) -// in the IAM User Guide. +// For information about versions for managed policies, refer to Versioning +// for Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) +// in the Using IAM guide. func (c *IAM) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) { req, out := c.DeletePolicyVersionRequest(input) err := req.Send() @@ -1097,8 +1045,6 @@ func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, o } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteRoleOutput{} req.Data = output return @@ -1107,7 +1053,7 @@ func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, o // Deletes the specified role. The role must not have any policies attached. // For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // -// Make sure you do not have any Amazon EC2 instances running with the role +// Make sure you do not have any Amazon EC2 instances running with the role // you are about to delete. Deleting a role or instance profile that is associated // with a running instance will break any applications running on the instance. func (c *IAM) DeleteRole(input *DeleteRoleInput) (*DeleteRoleOutput, error) { @@ -1131,20 +1077,17 @@ func (c *IAM) DeleteRolePolicyRequest(input *DeleteRolePolicyInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteRolePolicyOutput{} req.Data = output return } -// Deletes the specified inline policy that is embedded in the specified IAM -// role. +// Deletes the specified inline policy that is embedded in the specified role. // // A role can also have managed policies attached to it. To detach a managed // policy from a role, use DetachRolePolicy. For more information about policies, // refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) DeleteRolePolicy(input *DeleteRolePolicyInput) (*DeleteRolePolicyOutput, error) { req, out := c.DeleteRolePolicyRequest(input) err := req.Send() @@ -1166,21 +1109,18 @@ func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteSAMLProviderOutput{} req.Data = output return } -// Deletes a SAML provider resource in IAM. +// Deletes a SAML provider. // -// Deleting the provider resource from IAM does not update any roles that reference -// the SAML provider resource's ARN as a principal in their trust policies. -// Any attempt to assume a role that references a non-existent provider resource -// ARN fails. +// Deleting the provider does not update any roles that reference the SAML +// provider as a principal in their trust policies. Any attempt to assume a +// role that references a SAML provider that has been deleted will fail. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). func (c *IAM) DeleteSAMLProvider(input *DeleteSAMLProviderInput) (*DeleteSAMLProviderOutput, error) { req, out := c.DeleteSAMLProviderRequest(input) err := req.Send() @@ -1202,8 +1142,6 @@ func (c *IAM) DeleteSSHPublicKeyRequest(input *DeleteSSHPublicKeyInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteSSHPublicKeyOutput{} req.Data = output return @@ -1237,8 +1175,6 @@ func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteServerCertificateOutput{} req.Data = output return @@ -1246,12 +1182,7 @@ func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput // Deletes the specified server certificate. // -// For more information about working with server certificates, including a -// list of AWS services that can use the server certificates that you manage -// with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) -// in the IAM User Guide. -// -// If you are using a server certificate with Elastic Load Balancing, deleting +// If you are using a server certificate with Elastic Load Balancing, deleting // the certificate could have implications for your application. If Elastic // Load Balancing doesn't detect the deletion of bound certificates, it may // continue to use the certificates. This could cause Elastic Load Balancing @@ -1281,19 +1212,17 @@ func (c *IAM) DeleteSigningCertificateRequest(input *DeleteSigningCertificateInp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteSigningCertificateOutput{} req.Data = output return } -// Deletes a signing certificate associated with the specified IAM user. +// Deletes the specified signing certificate associated with the specified user. // // If you do not specify a user name, IAM determines the user name implicitly // based on the AWS access key ID signing the request. Because this action works // for access keys under the AWS account, you can use this action to manage -// root credentials even if the AWS account has no associated IAM users. +// root credentials even if the AWS account has no associated users. func (c *IAM) DeleteSigningCertificate(input *DeleteSigningCertificateInput) (*DeleteSigningCertificateOutput, error) { req, out := c.DeleteSigningCertificateRequest(input) err := req.Send() @@ -1315,15 +1244,13 @@ func (c *IAM) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, o } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteUserOutput{} req.Data = output return } -// Deletes the specified IAM user. The user must not belong to any groups or -// have any access keys, signing certificates, or attached policies. +// Deletes the specified user. The user must not belong to any groups, have +// any keys or signing certificates, or have any attached policies. func (c *IAM) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { req, out := c.DeleteUserRequest(input) err := req.Send() @@ -1345,20 +1272,17 @@ func (c *IAM) DeleteUserPolicyRequest(input *DeleteUserPolicyInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteUserPolicyOutput{} req.Data = output return } -// Deletes the specified inline policy that is embedded in the specified IAM -// user. +// Deletes the specified inline policy that is embedded in the specified user. // // A user can also have managed policies attached to it. To detach a managed // policy from a user, use DetachUserPolicy. For more information about policies, // refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) DeleteUserPolicy(input *DeleteUserPolicyInput) (*DeleteUserPolicyOutput, error) { req, out := c.DeleteUserPolicyRequest(input) err := req.Send() @@ -1380,8 +1304,6 @@ func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteVirtualMFADeviceOutput{} req.Data = output return @@ -1389,8 +1311,8 @@ func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput) // Deletes a virtual MFA device. // -// You must deactivate a user's virtual MFA device before you can delete -// it. For information about deactivating MFA devices, see DeactivateMFADevice. +// You must deactivate a user's virtual MFA device before you can delete it. +// For information about deactivating MFA devices, see DeactivateMFADevice. func (c *IAM) DeleteVirtualMFADevice(input *DeleteVirtualMFADeviceInput) (*DeleteVirtualMFADeviceOutput, error) { req, out := c.DeleteVirtualMFADeviceRequest(input) err := req.Send() @@ -1412,19 +1334,17 @@ func (c *IAM) DetachGroupPolicyRequest(input *DetachGroupPolicyInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DetachGroupPolicyOutput{} req.Data = output return } -// Removes the specified managed policy from the specified IAM group. +// Removes the specified managed policy from the specified group. // // A group can also have inline policies embedded with it. To delete an inline -// policy, use the DeleteGroupPolicy API. For information about policies, see -// Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// policy, use the DeleteGroupPolicy API. For information about policies, refer +// to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) DetachGroupPolicy(input *DetachGroupPolicyInput) (*DetachGroupPolicyOutput, error) { req, out := c.DetachGroupPolicyRequest(input) err := req.Send() @@ -1446,8 +1366,6 @@ func (c *IAM) DetachRolePolicyRequest(input *DetachRolePolicyInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DetachRolePolicyOutput{} req.Data = output return @@ -1456,9 +1374,9 @@ func (c *IAM) DetachRolePolicyRequest(input *DetachRolePolicyInput) (req *reques // Removes the specified managed policy from the specified role. // // A role can also have inline policies embedded with it. To delete an inline -// policy, use the DeleteRolePolicy API. For information about policies, see -// Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// policy, use the DeleteRolePolicy API. For information about policies, refer +// to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) DetachRolePolicy(input *DetachRolePolicyInput) (*DetachRolePolicyOutput, error) { req, out := c.DetachRolePolicyRequest(input) err := req.Send() @@ -1480,8 +1398,6 @@ func (c *IAM) DetachUserPolicyRequest(input *DetachUserPolicyInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DetachUserPolicyOutput{} req.Data = output return @@ -1490,9 +1406,9 @@ func (c *IAM) DetachUserPolicyRequest(input *DetachUserPolicyInput) (req *reques // Removes the specified managed policy from the specified user. // // A user can also have inline policies embedded with it. To delete an inline -// policy, use the DeleteUserPolicy API. For information about policies, see -// Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// policy, use the DeleteUserPolicy API. For information about policies, refer +// to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) DetachUserPolicy(input *DetachUserPolicyInput) (*DetachUserPolicyOutput, error) { req, out := c.DetachUserPolicyRequest(input) err := req.Send() @@ -1514,16 +1430,14 @@ func (c *IAM) EnableMFADeviceRequest(input *EnableMFADeviceInput) (req *request. } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &EnableMFADeviceOutput{} req.Data = output return } -// Enables the specified MFA device and associates it with the specified IAM -// user. When enabled, the MFA device is required for every subsequent login -// by the IAM user associated with the device. +// Enables the specified MFA device and associates it with the specified user +// name. When enabled, the MFA device is required for every subsequent login +// by the user name associated with the device. func (c *IAM) EnableMFADevice(input *EnableMFADeviceInput) (*EnableMFADeviceOutput, error) { req, out := c.EnableMFADeviceRequest(input) err := req.Send() @@ -1552,7 +1466,7 @@ func (c *IAM) GenerateCredentialReportRequest(input *GenerateCredentialReportInp // Generates a credential report for the AWS account. For more information about // the credential report, see Getting Credential Reports (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) GenerateCredentialReport(input *GenerateCredentialReportInput) (*GenerateCredentialReportOutput, error) { req, out := c.GenerateCredentialReportRequest(input) err := req.Send() @@ -1616,9 +1530,9 @@ func (c *IAM) GetAccountAuthorizationDetailsRequest(input *GetAccountAuthorizati } // Retrieves information about all IAM users, groups, roles, and policies in -// your AWS account, including their relationships to one another. Use this -// API to obtain a snapshot of the configuration of IAM permissions (users, -// groups, roles, and policies) in your account. +// your account, including their relationships to one another. Use this API +// to obtain a snapshot of the configuration of IAM permissions (users, groups, +// roles, and policies) in your account. // // You can optionally filter the results using the Filter parameter. You can // paginate the results using the MaxItems and Marker parameters. @@ -1630,7 +1544,6 @@ func (c *IAM) GetAccountAuthorizationDetails(input *GetAccountAuthorizationDetai func (c *IAM) GetAccountAuthorizationDetailsPages(input *GetAccountAuthorizationDetailsInput, fn func(p *GetAccountAuthorizationDetailsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.GetAccountAuthorizationDetailsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*GetAccountAuthorizationDetailsOutput), lastPage) }) @@ -1688,92 +1601,13 @@ func (c *IAM) GetAccountSummaryRequest(input *GetAccountSummaryInput) (req *requ // // For information about limitations on IAM entities, see Limitations on IAM // Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) GetAccountSummary(input *GetAccountSummaryInput) (*GetAccountSummaryOutput, error) { req, out := c.GetAccountSummaryRequest(input) err := req.Send() return out, err } -const opGetContextKeysForCustomPolicy = "GetContextKeysForCustomPolicy" - -// GetContextKeysForCustomPolicyRequest generates a request for the GetContextKeysForCustomPolicy operation. -func (c *IAM) GetContextKeysForCustomPolicyRequest(input *GetContextKeysForCustomPolicyInput) (req *request.Request, output *GetContextKeysForPolicyResponse) { - op := &request.Operation{ - Name: opGetContextKeysForCustomPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetContextKeysForCustomPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &GetContextKeysForPolicyResponse{} - req.Data = output - return -} - -// Gets a list of all of the context keys referenced in the input policies. -// The policies are supplied as a list of one or more strings. To get the context -// keys from policies associated with an IAM user, group, or role, use GetContextKeysForPrincipalPolicy. -// -// Context keys are variables maintained by AWS and its services that provide -// details about the context of an API query request, and can be evaluated by -// testing against a value specified in an IAM policy. Use GetContextKeysForCustomPolicy -// to understand what key names and values you must supply when you call SimulateCustomPolicy. -// Note that all parameters are shown in unencoded form here for clarity, but -// must be URL encoded to be included as a part of a real HTML request. -func (c *IAM) GetContextKeysForCustomPolicy(input *GetContextKeysForCustomPolicyInput) (*GetContextKeysForPolicyResponse, error) { - req, out := c.GetContextKeysForCustomPolicyRequest(input) - err := req.Send() - return out, err -} - -const opGetContextKeysForPrincipalPolicy = "GetContextKeysForPrincipalPolicy" - -// GetContextKeysForPrincipalPolicyRequest generates a request for the GetContextKeysForPrincipalPolicy operation. -func (c *IAM) GetContextKeysForPrincipalPolicyRequest(input *GetContextKeysForPrincipalPolicyInput) (req *request.Request, output *GetContextKeysForPolicyResponse) { - op := &request.Operation{ - Name: opGetContextKeysForPrincipalPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetContextKeysForPrincipalPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &GetContextKeysForPolicyResponse{} - req.Data = output - return -} - -// Gets a list of all of the context keys referenced in all of the IAM policies -// attached to the specified IAM entity. The entity can be an IAM user, group, -// or role. If you specify a user, then the request also includes all of the -// policies attached to groups that the user is a member of. -// -// You can optionally include a list of one or more additional policies, specified -// as strings. If you want to include only a list of policies by string, use -// GetContextKeysForCustomPolicy instead. -// -// Note: This API discloses information about the permissions granted to other -// users. If you do not want users to see other user's permissions, then consider -// allowing them to use GetContextKeysForCustomPolicy instead. -// -// Context keys are variables maintained by AWS and its services that provide -// details about the context of an API query request, and can be evaluated by -// testing against a value in an IAM policy. Use GetContextKeysForPrincipalPolicy -// to understand what key names and values you must supply when you call SimulatePrincipalPolicy. -func (c *IAM) GetContextKeysForPrincipalPolicy(input *GetContextKeysForPrincipalPolicyInput) (*GetContextKeysForPolicyResponse, error) { - req, out := c.GetContextKeysForPrincipalPolicyRequest(input) - err := req.Send() - return out, err -} - const opGetCredentialReport = "GetCredentialReport" // GetCredentialReportRequest generates a request for the GetCredentialReport operation. @@ -1796,7 +1630,7 @@ func (c *IAM) GetCredentialReportRequest(input *GetCredentialReportInput) (req * // Retrieves a credential report for the AWS account. For more information about // the credential report, see Getting Credential Reports (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) GetCredentialReport(input *GetCredentialReportInput) (*GetCredentialReportOutput, error) { req, out := c.GetCredentialReportRequest(input) err := req.Send() @@ -1829,8 +1663,8 @@ func (c *IAM) GetGroupRequest(input *GetGroupInput) (req *request.Request, outpu return } -// Returns a list of IAM users that are in the specified IAM group. You can -// paginate the results using the MaxItems and Marker parameters. +// Returns a list of users that are in the specified group. You can paginate +// the results using the MaxItems and Marker parameters. func (c *IAM) GetGroup(input *GetGroupInput) (*GetGroupOutput, error) { req, out := c.GetGroupRequest(input) err := req.Send() @@ -1839,7 +1673,6 @@ func (c *IAM) GetGroup(input *GetGroupInput) (*GetGroupOutput, error) { func (c *IAM) GetGroupPages(input *GetGroupInput, fn func(p *GetGroupOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.GetGroupRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*GetGroupOutput), lastPage) }) @@ -1866,16 +1699,16 @@ func (c *IAM) GetGroupPolicyRequest(input *GetGroupPolicyInput) (req *request.Re } // Retrieves the specified inline policy document that is embedded in the specified -// IAM group. +// group. // -// An IAM group can also have managed policies attached to it. To retrieve -// a managed policy document that is attached to a group, use GetPolicy to determine -// the policy's default version, then use GetPolicyVersion to retrieve the policy +// A group can also have managed policies attached to it. To retrieve a managed +// policy document that is attached to a group, use GetPolicy to determine the +// policy's default version, then use GetPolicyVersion to retrieve the policy // document. // -// For more information about policies, see Managed Policies and Inline Policies -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// For more information about policies, refer to Managed Policies and Inline +// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) GetGroupPolicy(input *GetGroupPolicyInput) (*GetGroupPolicyOutput, error) { req, out := c.GetGroupPolicyRequest(input) err := req.Send() @@ -1904,8 +1737,8 @@ func (c *IAM) GetInstanceProfileRequest(input *GetInstanceProfileInput) (req *re // Retrieves information about the specified instance profile, including the // instance profile's path, GUID, ARN, and role. For more information about -// instance profiles, see About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html) -// in the IAM User Guide. +// instance profiles, go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). +// For more information about ARNs, go to ARNs (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html#Identifiers_ARNs). func (c *IAM) GetInstanceProfile(input *GetInstanceProfileInput) (*GetInstanceProfileOutput, error) { req, out := c.GetInstanceProfileRequest(input) err := req.Send() @@ -1932,9 +1765,9 @@ func (c *IAM) GetLoginProfileRequest(input *GetLoginProfileInput) (req *request. return } -// Retrieves the user name and password-creation date for the specified IAM -// user. If the user has not been assigned a password, the action returns a -// 404 (NoSuchEntity) error. +// Retrieves the user name and password-creation date for the specified user. +// If the user has not been assigned a password, the action returns a 404 (NoSuchEntity) +// error. func (c *IAM) GetLoginProfile(input *GetLoginProfileInput) (*GetLoginProfileOutput, error) { req, out := c.GetLoginProfileRequest(input) err := req.Send() @@ -1961,8 +1794,7 @@ func (c *IAM) GetOpenIDConnectProviderRequest(input *GetOpenIDConnectProviderInp return } -// Returns information about the specified OpenID Connect (OIDC) provider resource -// object in IAM. +// Returns information about the specified OpenID Connect provider. func (c *IAM) GetOpenIDConnectProvider(input *GetOpenIDConnectProviderInput) (*GetOpenIDConnectProviderOutput, error) { req, out := c.GetOpenIDConnectProviderRequest(input) err := req.Send() @@ -1990,19 +1822,19 @@ func (c *IAM) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out } // Retrieves information about the specified managed policy, including the policy's -// default version and the total number of IAM users, groups, and roles to which -// the policy is attached. To retrieve the list of the specific users, groups, -// and roles that the policy is attached to, use the ListEntitiesForPolicy API. -// This API returns metadata about the policy. To retrieve the actual policy -// document for a specific version of the policy, use GetPolicyVersion. +// default version and the total number of users, groups, and roles that the +// policy is attached to. For a list of the specific users, groups, and roles +// that the policy is attached to, use the ListEntitiesForPolicy API. This API +// returns metadata about the policy. To retrieve the policy document for a +// specific version of the policy, use GetPolicyVersion. // // This API retrieves information about managed policies. To retrieve information -// about an inline policy that is embedded with an IAM user, group, or role, -// use the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API. +// about an inline policy that is embedded with a user, group, or role, use +// the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API. // -// For more information about policies, see Managed Policies and Inline Policies -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// For more information about policies, refer to Managed Policies and Inline +// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { req, out := c.GetPolicyRequest(input) err := req.Send() @@ -2038,13 +1870,9 @@ func (c *IAM) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques // about an inline policy that is embedded in a user, group, or role, use the // GetUserPolicy, GetGroupPolicy, or GetRolePolicy API. // -// For more information about the types of policies, see Managed Policies and -// Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. -// -// For more information about managed policy versions, see Versioning for Managed -// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) -// in the IAM User Guide. +// For more information about the types of policies, refer to Managed Policies +// and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) { req, out := c.GetPolicyVersionRequest(input) err := req.Send() @@ -2072,8 +1900,9 @@ func (c *IAM) GetRoleRequest(input *GetRoleInput) (req *request.Request, output } // Retrieves information about the specified role, including the role's path, -// GUID, ARN, and the role's trust policy that grants permission to assume the -// role. For more information about roles, see Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). +// GUID, ARN, and the policy granting permission to assume the role. For more +// information about ARNs, go to ARNs (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html#Identifiers_ARNs). +// For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). func (c *IAM) GetRole(input *GetRoleInput) (*GetRoleOutput, error) { req, out := c.GetRoleRequest(input) err := req.Send() @@ -2101,18 +1930,18 @@ func (c *IAM) GetRolePolicyRequest(input *GetRolePolicyInput) (req *request.Requ } // Retrieves the specified inline policy document that is embedded with the -// specified IAM role. +// specified role. // -// An IAM role can also have managed policies attached to it. To retrieve a -// managed policy document that is attached to a role, use GetPolicy to determine -// the policy's default version, then use GetPolicyVersion to retrieve the policy +// A role can also have managed policies attached to it. To retrieve a managed +// policy document that is attached to a role, use GetPolicy to determine the +// policy's default version, then use GetPolicyVersion to retrieve the policy // document. // -// For more information about policies, see Managed Policies and Inline Policies -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// For more information about policies, refer to Managed Policies and Inline +// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. // -// For more information about roles, see Using Roles to Delegate Permissions +// For more information about roles, go to Using Roles to Delegate Permissions // and Federate Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). func (c *IAM) GetRolePolicy(input *GetRolePolicyInput) (*GetRolePolicyOutput, error) { req, out := c.GetRolePolicyRequest(input) @@ -2140,10 +1969,10 @@ func (c *IAM) GetSAMLProviderRequest(input *GetSAMLProviderInput) (req *request. return } -// Returns the SAML provider metadocument that was uploaded when the IAM SAML -// provider resource object was created or updated. +// Returns the SAML provider metadocument that was uploaded when the provider +// was created or updated. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). func (c *IAM) GetSAMLProvider(input *GetSAMLProviderInput) (*GetSAMLProviderOutput, error) { req, out := c.GetSAMLProviderRequest(input) err := req.Send() @@ -2203,12 +2032,7 @@ func (c *IAM) GetServerCertificateRequest(input *GetServerCertificateInput) (req return } -// Retrieves information about the specified server certificate stored in IAM. -// -// For more information about working with server certificates, including a -// list of AWS services that can use the server certificates that you manage -// with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) -// in the IAM User Guide. +// Retrieves information about the specified server certificate. func (c *IAM) GetServerCertificate(input *GetServerCertificateInput) (*GetServerCertificateOutput, error) { req, out := c.GetServerCertificateRequest(input) err := req.Send() @@ -2235,11 +2059,11 @@ func (c *IAM) GetUserRequest(input *GetUserInput) (req *request.Request, output return } -// Retrieves information about the specified IAM user, including the user's -// creation date, path, unique ID, and ARN. +// Retrieves information about the specified user, including the user's creation +// date, path, unique ID, and ARN. // // If you do not specify a user name, IAM determines the user name implicitly -// based on the AWS access key ID used to sign the request to this API. +// based on the AWS access key ID used to sign the request. func (c *IAM) GetUser(input *GetUserInput) (*GetUserOutput, error) { req, out := c.GetUserRequest(input) err := req.Send() @@ -2267,16 +2091,16 @@ func (c *IAM) GetUserPolicyRequest(input *GetUserPolicyInput) (req *request.Requ } // Retrieves the specified inline policy document that is embedded in the specified -// IAM user. +// user. // -// An IAM user can also have managed policies attached to it. To retrieve a -// managed policy document that is attached to a user, use GetPolicy to determine -// the policy's default version, then use GetPolicyVersion to retrieve the policy +// A user can also have managed policies attached to it. To retrieve a managed +// policy document that is attached to a user, use GetPolicy to determine the +// policy's default version, then use GetPolicyVersion to retrieve the policy // document. // -// For more information about policies, see Managed Policies and Inline Policies -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// For more information about policies, refer to Managed Policies and Inline +// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) GetUserPolicy(input *GetUserPolicyInput) (*GetUserPolicyOutput, error) { req, out := c.GetUserPolicyRequest(input) err := req.Send() @@ -2310,7 +2134,7 @@ func (c *IAM) ListAccessKeysRequest(input *ListAccessKeysInput) (req *request.Re } // Returns information about the access key IDs associated with the specified -// IAM user. If there are none, the action returns an empty list. +// user. If there are none, the action returns an empty list. // // Although each user is limited to a small number of keys, you can still paginate // the results using the MaxItems and Marker parameters. @@ -2320,7 +2144,7 @@ func (c *IAM) ListAccessKeysRequest(input *ListAccessKeysInput) (req *request.Re // works for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. // -// To ensure the security of your AWS account, the secret access key is accessible +// To ensure the security of your AWS account, the secret access key is accessible // only during key and user creation. func (c *IAM) ListAccessKeys(input *ListAccessKeysInput) (*ListAccessKeysOutput, error) { req, out := c.ListAccessKeysRequest(input) @@ -2330,7 +2154,6 @@ func (c *IAM) ListAccessKeys(input *ListAccessKeysInput) (*ListAccessKeysOutput, func (c *IAM) ListAccessKeysPages(input *ListAccessKeysInput, fn func(p *ListAccessKeysOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListAccessKeysRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListAccessKeysOutput), lastPage) }) @@ -2362,10 +2185,11 @@ func (c *IAM) ListAccountAliasesRequest(input *ListAccountAliasesInput) (req *re return } -// Lists the account alias associated with the AWS account (Note: you can have -// only one). For information about using an AWS account alias, see Using an -// Alias for Your AWS Account ID (http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html) -// in the IAM User Guide. +// Lists the account aliases associated with the account. For information about +// using an AWS account alias, see Using an Alias for Your AWS Account ID (http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html) +// in the Using IAM guide. +// +// You can paginate the results using the MaxItems and Marker parameters. func (c *IAM) ListAccountAliases(input *ListAccountAliasesInput) (*ListAccountAliasesOutput, error) { req, out := c.ListAccountAliasesRequest(input) err := req.Send() @@ -2374,7 +2198,6 @@ func (c *IAM) ListAccountAliases(input *ListAccountAliasesInput) (*ListAccountAl func (c *IAM) ListAccountAliasesPages(input *ListAccountAliasesInput, fn func(p *ListAccountAliasesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListAccountAliasesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListAccountAliasesOutput), lastPage) }) @@ -2406,12 +2229,12 @@ func (c *IAM) ListAttachedGroupPoliciesRequest(input *ListAttachedGroupPoliciesI return } -// Lists all managed policies that are attached to the specified IAM group. +// Lists all managed policies that are attached to the specified group. // -// An IAM group can also have inline policies embedded with it. To list the -// inline policies for a group, use the ListGroupPolicies API. For information -// about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// A group can also have inline policies embedded with it. To list the inline +// policies for a group, use the ListGroupPolicies API. For information about +// policies, refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. // // You can paginate the results using the MaxItems and Marker parameters. You // can use the PathPrefix parameter to limit the list of policies to only those @@ -2426,7 +2249,6 @@ func (c *IAM) ListAttachedGroupPolicies(input *ListAttachedGroupPoliciesInput) ( func (c *IAM) ListAttachedGroupPoliciesPages(input *ListAttachedGroupPoliciesInput, fn func(p *ListAttachedGroupPoliciesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListAttachedGroupPoliciesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListAttachedGroupPoliciesOutput), lastPage) }) @@ -2458,12 +2280,12 @@ func (c *IAM) ListAttachedRolePoliciesRequest(input *ListAttachedRolePoliciesInp return } -// Lists all managed policies that are attached to the specified IAM role. +// Lists all managed policies that are attached to the specified role. // -// An IAM role can also have inline policies embedded with it. To list the -// inline policies for a role, use the ListRolePolicies API. For information -// about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// A role can also have inline policies embedded with it. To list the inline +// policies for a role, use the ListRolePolicies API. For information about +// policies, refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. // // You can paginate the results using the MaxItems and Marker parameters. You // can use the PathPrefix parameter to limit the list of policies to only those @@ -2478,7 +2300,6 @@ func (c *IAM) ListAttachedRolePolicies(input *ListAttachedRolePoliciesInput) (*L func (c *IAM) ListAttachedRolePoliciesPages(input *ListAttachedRolePoliciesInput, fn func(p *ListAttachedRolePoliciesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListAttachedRolePoliciesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListAttachedRolePoliciesOutput), lastPage) }) @@ -2510,12 +2331,12 @@ func (c *IAM) ListAttachedUserPoliciesRequest(input *ListAttachedUserPoliciesInp return } -// Lists all managed policies that are attached to the specified IAM user. +// Lists all managed policies that are attached to the specified user. // -// An IAM user can also have inline policies embedded with it. To list the -// inline policies for a user, use the ListUserPolicies API. For information -// about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// A user can also have inline policies embedded with it. To list the inline +// policies for a user, use the ListUserPolicies API. For information about +// policies, refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. // // You can paginate the results using the MaxItems and Marker parameters. You // can use the PathPrefix parameter to limit the list of policies to only those @@ -2530,7 +2351,6 @@ func (c *IAM) ListAttachedUserPolicies(input *ListAttachedUserPoliciesInput) (*L func (c *IAM) ListAttachedUserPoliciesPages(input *ListAttachedUserPoliciesInput, fn func(p *ListAttachedUserPoliciesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListAttachedUserPoliciesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListAttachedUserPoliciesOutput), lastPage) }) @@ -2562,8 +2382,8 @@ func (c *IAM) ListEntitiesForPolicyRequest(input *ListEntitiesForPolicyInput) (r return } -// Lists all IAM users, groups, and roles that the specified managed policy -// is attached to. +// Lists all users, groups, and roles that the specified managed policy is attached +// to. // // You can use the optional EntityFilter parameter to limit the results to // a particular type of entity (users, groups, or roles). For example, to list @@ -2579,7 +2399,6 @@ func (c *IAM) ListEntitiesForPolicy(input *ListEntitiesForPolicyInput) (*ListEnt func (c *IAM) ListEntitiesForPolicyPages(input *ListEntitiesForPolicyInput, fn func(p *ListEntitiesForPolicyOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListEntitiesForPolicyRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListEntitiesForPolicyOutput), lastPage) }) @@ -2612,13 +2431,13 @@ func (c *IAM) ListGroupPoliciesRequest(input *ListGroupPoliciesInput) (req *requ } // Lists the names of the inline policies that are embedded in the specified -// IAM group. +// group. // -// An IAM group can also have managed policies attached to it. To list the -// managed policies that are attached to a group, use ListAttachedGroupPolicies. -// For more information about policies, see Managed Policies and Inline Policies +// A group can also have managed policies attached to it. To list the managed +// policies that are attached to a group, use ListAttachedGroupPolicies. For +// more information about policies, refer to Managed Policies and Inline Policies // (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// in the Using IAM guide. // // You can paginate the results using the MaxItems and Marker parameters. If // there are no inline policies embedded with the specified group, the action @@ -2631,7 +2450,6 @@ func (c *IAM) ListGroupPolicies(input *ListGroupPoliciesInput) (*ListGroupPolici func (c *IAM) ListGroupPoliciesPages(input *ListGroupPoliciesInput, fn func(p *ListGroupPoliciesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListGroupPoliciesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListGroupPoliciesOutput), lastPage) }) @@ -2663,7 +2481,7 @@ func (c *IAM) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, o return } -// Lists the IAM groups that have the specified path prefix. +// Lists the groups that have the specified path prefix. // // You can paginate the results using the MaxItems and Marker parameters. func (c *IAM) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { @@ -2674,7 +2492,6 @@ func (c *IAM) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { func (c *IAM) ListGroupsPages(input *ListGroupsInput, fn func(p *ListGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListGroupsOutput), lastPage) }) @@ -2706,7 +2523,7 @@ func (c *IAM) ListGroupsForUserRequest(input *ListGroupsForUserInput) (req *requ return } -// Lists the IAM groups that the specified IAM user belongs to. +// Lists the groups the specified user belongs to. // // You can paginate the results using the MaxItems and Marker parameters. func (c *IAM) ListGroupsForUser(input *ListGroupsForUserInput) (*ListGroupsForUserOutput, error) { @@ -2717,7 +2534,6 @@ func (c *IAM) ListGroupsForUser(input *ListGroupsForUserInput) (*ListGroupsForUs func (c *IAM) ListGroupsForUserPages(input *ListGroupsForUserInput, fn func(p *ListGroupsForUserOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListGroupsForUserRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListGroupsForUserOutput), lastPage) }) @@ -2762,7 +2578,6 @@ func (c *IAM) ListInstanceProfiles(input *ListInstanceProfilesInput) (*ListInsta func (c *IAM) ListInstanceProfilesPages(input *ListInstanceProfilesInput, fn func(p *ListInstanceProfilesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListInstanceProfilesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListInstanceProfilesOutput), lastPage) }) @@ -2794,9 +2609,9 @@ func (c *IAM) ListInstanceProfilesForRoleRequest(input *ListInstanceProfilesForR return } -// Lists the instance profiles that have the specified associated IAM role. -// If there are none, the action returns an empty list. For more information -// about instance profiles, go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). +// Lists the instance profiles that have the specified associated role. If there +// are none, the action returns an empty list. For more information about instance +// profiles, go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // // You can paginate the results using the MaxItems and Marker parameters. func (c *IAM) ListInstanceProfilesForRole(input *ListInstanceProfilesForRoleInput) (*ListInstanceProfilesForRoleOutput, error) { @@ -2807,7 +2622,6 @@ func (c *IAM) ListInstanceProfilesForRole(input *ListInstanceProfilesForRoleInpu func (c *IAM) ListInstanceProfilesForRolePages(input *ListInstanceProfilesForRoleInput, fn func(p *ListInstanceProfilesForRoleOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListInstanceProfilesForRoleRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListInstanceProfilesForRoleOutput), lastPage) }) @@ -2839,10 +2653,10 @@ func (c *IAM) ListMFADevicesRequest(input *ListMFADevicesInput) (req *request.Re return } -// Lists the MFA devices for an IAM user. If the request includes a IAM user -// name, then this action lists all the MFA devices associated with the specified -// user. If you do not specify a user name, IAM determines the user name implicitly -// based on the AWS access key ID signing the request for this API. +// Lists the MFA devices. If the request includes the user name, then this action +// lists all the MFA devices associated with the specified user name. If you +// do not specify a user name, IAM determines the user name implicitly based +// on the AWS access key ID signing the request. // // You can paginate the results using the MaxItems and Marker parameters. func (c *IAM) ListMFADevices(input *ListMFADevicesInput) (*ListMFADevicesOutput, error) { @@ -2853,7 +2667,6 @@ func (c *IAM) ListMFADevices(input *ListMFADevicesInput) (*ListMFADevicesOutput, func (c *IAM) ListMFADevicesPages(input *ListMFADevicesInput, fn func(p *ListMFADevicesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListMFADevicesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListMFADevicesOutput), lastPage) }) @@ -2879,8 +2692,7 @@ func (c *IAM) ListOpenIDConnectProvidersRequest(input *ListOpenIDConnectProvider return } -// Lists information about the IAM OpenID Connect (OIDC) provider resource objects -// defined in the AWS account. +// Lists information about the OpenID Connect providers in the AWS account. func (c *IAM) ListOpenIDConnectProviders(input *ListOpenIDConnectProvidersInput) (*ListOpenIDConnectProvidersOutput, error) { req, out := c.ListOpenIDConnectProvidersRequest(input) err := req.Send() @@ -2913,8 +2725,8 @@ func (c *IAM) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques return } -// Lists all the managed policies that are available in your AWS account, including -// your own customer-defined managed policies and all AWS managed policies. +// Lists all the managed policies that are available to your account, including +// your own customer managed policies and all AWS managed policies. // // You can filter the list of policies that is returned using the optional // OnlyAttached, Scope, and PathPrefix parameters. For example, to list only @@ -2923,9 +2735,9 @@ func (c *IAM) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques // // You can paginate the results using the MaxItems and Marker parameters. // -// For more information about managed policies, see Managed Policies and Inline -// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// For more information about managed policies, refer to Managed Policies and +// Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) { req, out := c.ListPoliciesRequest(input) err := req.Send() @@ -2934,7 +2746,6 @@ func (c *IAM) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error func (c *IAM) ListPoliciesPages(input *ListPoliciesInput, fn func(p *ListPoliciesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListPoliciesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListPoliciesOutput), lastPage) }) @@ -2948,12 +2759,6 @@ func (c *IAM) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *re Name: opListPolicyVersions, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"Marker"}, - OutputTokens: []string{"Marker"}, - LimitToken: "MaxItems", - TruncationToken: "IsTruncated", - }, } if input == nil { @@ -2967,25 +2772,17 @@ func (c *IAM) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *re } // Lists information about the versions of the specified managed policy, including -// the version that is currently set as the policy's default version. +// the version that is set as the policy's default version. // -// For more information about managed policies, see Managed Policies and Inline -// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// For more information about managed policies, refer to Managed Policies and +// Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. func (c *IAM) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) { req, out := c.ListPolicyVersionsRequest(input) err := req.Send() return out, err } -func (c *IAM) ListPolicyVersionsPages(input *ListPolicyVersionsInput, fn func(p *ListPolicyVersionsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListPolicyVersionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListPolicyVersionsOutput), lastPage) - }) -} - const opListRolePolicies = "ListRolePolicies" // ListRolePoliciesRequest generates a request for the ListRolePolicies operation. @@ -3013,12 +2810,13 @@ func (c *IAM) ListRolePoliciesRequest(input *ListRolePoliciesInput) (req *reques } // Lists the names of the inline policies that are embedded in the specified -// IAM role. +// role. // -// An IAM role can also have managed policies attached to it. To list the managed +// A role can also have managed policies attached to it. To list the managed // policies that are attached to a role, use ListAttachedRolePolicies. For more -// information about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// information about policies, refer to Managed Policies and Inline Policies +// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. // // You can paginate the results using the MaxItems and Marker parameters. If // there are no inline policies embedded with the specified role, the action @@ -3031,7 +2829,6 @@ func (c *IAM) ListRolePolicies(input *ListRolePoliciesInput) (*ListRolePoliciesO func (c *IAM) ListRolePoliciesPages(input *ListRolePoliciesInput, fn func(p *ListRolePoliciesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListRolePoliciesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListRolePoliciesOutput), lastPage) }) @@ -3063,9 +2860,9 @@ func (c *IAM) ListRolesRequest(input *ListRolesInput) (req *request.Request, out return } -// Lists the IAM roles that have the specified path prefix. If there are none, -// the action returns an empty list. For more information about roles, go to -// Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). +// Lists the roles that have the specified path prefix. If there are none, the +// action returns an empty list. For more information about roles, go to Working +// with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // // You can paginate the results using the MaxItems and Marker parameters. func (c *IAM) ListRoles(input *ListRolesInput) (*ListRolesOutput, error) { @@ -3076,7 +2873,6 @@ func (c *IAM) ListRoles(input *ListRolesInput) (*ListRolesOutput, error) { func (c *IAM) ListRolesPages(input *ListRolesInput, fn func(p *ListRolesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListRolesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListRolesOutput), lastPage) }) @@ -3102,9 +2898,9 @@ func (c *IAM) ListSAMLProvidersRequest(input *ListSAMLProvidersInput) (req *requ return } -// Lists the SAML provider resource objects defined in IAM in the account. +// Lists the SAML providers in the account. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). func (c *IAM) ListSAMLProviders(input *ListSAMLProvidersInput) (*ListSAMLProvidersOutput, error) { req, out := c.ListSAMLProvidersRequest(input) err := req.Send() @@ -3174,15 +2970,10 @@ func (c *IAM) ListServerCertificatesRequest(input *ListServerCertificatesInput) return } -// Lists the server certificates stored in IAM that have the specified path -// prefix. If none exist, the action returns an empty list. +// Lists the server certificates that have the specified path prefix. If none +// exist, the action returns an empty list. // // You can paginate the results using the MaxItems and Marker parameters. -// -// For more information about working with server certificates, including a -// list of AWS services that can use the server certificates that you manage -// with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) -// in the IAM User Guide. func (c *IAM) ListServerCertificates(input *ListServerCertificatesInput) (*ListServerCertificatesOutput, error) { req, out := c.ListServerCertificatesRequest(input) err := req.Send() @@ -3191,7 +2982,6 @@ func (c *IAM) ListServerCertificates(input *ListServerCertificatesInput) (*ListS func (c *IAM) ListServerCertificatesPages(input *ListServerCertificatesInput, fn func(p *ListServerCertificatesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListServerCertificatesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListServerCertificatesOutput), lastPage) }) @@ -3224,16 +3014,15 @@ func (c *IAM) ListSigningCertificatesRequest(input *ListSigningCertificatesInput } // Returns information about the signing certificates associated with the specified -// IAM user. If there are none, the action returns an empty list. +// user. If there are none, the action returns an empty list. // // Although each user is limited to a small number of signing certificates, // you can still paginate the results using the MaxItems and Marker parameters. // // If the UserName field is not specified, the user name is determined implicitly -// based on the AWS access key ID used to sign the request for this API. Because -// this action works for access keys under the AWS account, you can use this -// action to manage root credentials even if the AWS account has no associated -// users. +// based on the AWS access key ID used to sign the request. Because this action +// works for access keys under the AWS account, you can use this action to manage +// root credentials even if the AWS account has no associated users. func (c *IAM) ListSigningCertificates(input *ListSigningCertificatesInput) (*ListSigningCertificatesOutput, error) { req, out := c.ListSigningCertificatesRequest(input) err := req.Send() @@ -3242,7 +3031,6 @@ func (c *IAM) ListSigningCertificates(input *ListSigningCertificatesInput) (*Lis func (c *IAM) ListSigningCertificatesPages(input *ListSigningCertificatesInput, fn func(p *ListSigningCertificatesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListSigningCertificatesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListSigningCertificatesOutput), lastPage) }) @@ -3274,12 +3062,13 @@ func (c *IAM) ListUserPoliciesRequest(input *ListUserPoliciesInput) (req *reques return } -// Lists the names of the inline policies embedded in the specified IAM user. +// Lists the names of the inline policies embedded in the specified user. // -// An IAM user can also have managed policies attached to it. To list the managed +// A user can also have managed policies attached to it. To list the managed // policies that are attached to a user, use ListAttachedUserPolicies. For more -// information about policies, see Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// information about policies, refer to Managed Policies and Inline Policies +// (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. // // You can paginate the results using the MaxItems and Marker parameters. If // there are no inline policies embedded with the specified user, the action @@ -3292,7 +3081,6 @@ func (c *IAM) ListUserPolicies(input *ListUserPoliciesInput) (*ListUserPoliciesO func (c *IAM) ListUserPoliciesPages(input *ListUserPoliciesInput, fn func(p *ListUserPoliciesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListUserPoliciesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListUserPoliciesOutput), lastPage) }) @@ -3337,7 +3125,6 @@ func (c *IAM) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { func (c *IAM) ListUsersPages(input *ListUsersInput, fn func(p *ListUsersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListUsersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListUsersOutput), lastPage) }) @@ -3369,7 +3156,7 @@ func (c *IAM) ListVirtualMFADevicesRequest(input *ListVirtualMFADevicesInput) (r return } -// Lists the virtual MFA devices defined in the AWS account by assignment status. +// Lists the virtual MFA devices under the AWS account by assignment status. // If you do not specify an assignment status, the action returns a list of // all virtual MFA devices. Assignment status can be Assigned, Unassigned, or // Any. @@ -3383,7 +3170,6 @@ func (c *IAM) ListVirtualMFADevices(input *ListVirtualMFADevicesInput) (*ListVir func (c *IAM) ListVirtualMFADevicesPages(input *ListVirtualMFADevicesInput, fn func(p *ListVirtualMFADevicesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListVirtualMFADevicesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListVirtualMFADevicesOutput), lastPage) }) @@ -3404,30 +3190,28 @@ func (c *IAM) PutGroupPolicyRequest(input *PutGroupPolicyInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutGroupPolicyOutput{} req.Data = output return } -// Adds or updates an inline policy document that is embedded in the specified -// IAM group. +// Adds (or updates) an inline policy document that is embedded in the specified +// group. // // A user can also have managed policies attached to it. To attach a managed // policy to a group, use AttachGroupPolicy. To create a new managed policy, -// use CreatePolicy. For information about policies, see Managed Policies and -// Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// use CreatePolicy. For information about policies, refer to Managed Policies +// and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. // // For information about limits on the number of inline policies that you can // embed in a group, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) -// in the IAM User Guide. +// in the Using IAM guide. // -// Because policy documents can be large, you should use POST rather than -// GET when calling PutGroupPolicy. For general information about using the -// Query API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) -// in the IAM User Guide. +// Because policy documents can be large, you should use POST rather than GET +// when calling PutGroupPolicy. For general information about using the Query +// API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) +// in the Using IAM guide. func (c *IAM) PutGroupPolicy(input *PutGroupPolicyInput) (*PutGroupPolicyOutput, error) { req, out := c.PutGroupPolicyRequest(input) err := req.Send() @@ -3449,37 +3233,34 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutRolePolicyOutput{} req.Data = output return } -// Adds or updates an inline policy document that is embedded in the specified -// IAM role. +// Adds (or updates) an inline policy document that is embedded in the specified +// role. // // When you embed an inline policy in a role, the inline policy is used as -// part of the role's access (permissions) policy. The role's trust policy is -// created at the same time as the role, using CreateRole. You can update a -// role's trust policy using UpdateAssumeRolePolicy. For more information about -// IAM roles, go to Using Roles to Delegate Permissions and Federate Identities -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). +// the role's access (permissions) policy. The role's trust policy is created +// at the same time as the role, using CreateRole. You can update a role's trust +// policy using UpdateAssumeRolePolicy. For more information about roles, go +// to Using Roles to Delegate Permissions and Federate Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). // // A role can also have a managed policy attached to it. To attach a managed // policy to a role, use AttachRolePolicy. To create a new managed policy, use -// CreatePolicy. For information about policies, see Managed Policies and Inline -// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// CreatePolicy. For information about policies, refer to Managed Policies and +// Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. // // For information about limits on the number of inline policies that you can // embed with a role, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) -// in the IAM User Guide. +// in the Using IAM guide. // -// Because policy documents can be large, you should use POST rather than -// GET when calling PutRolePolicy. For general information about using the Query +// Because policy documents can be large, you should use POST rather than GET +// when calling PutRolePolicy. For general information about using the Query // API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) PutRolePolicy(input *PutRolePolicyInput) (*PutRolePolicyOutput, error) { req, out := c.PutRolePolicyRequest(input) err := req.Send() @@ -3501,30 +3282,28 @@ func (c *IAM) PutUserPolicyRequest(input *PutUserPolicyInput) (req *request.Requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutUserPolicyOutput{} req.Data = output return } -// Adds or updates an inline policy document that is embedded in the specified -// IAM user. +// Adds (or updates) an inline policy document that is embedded in the specified +// user. // -// An IAM user can also have a managed policy attached to it. To attach a managed +// A user can also have a managed policy attached to it. To attach a managed // policy to a user, use AttachUserPolicy. To create a new managed policy, use -// CreatePolicy. For information about policies, see Managed Policies and Inline -// Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// CreatePolicy. For information about policies, refer to Managed Policies and +// Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) +// in the Using IAM guide. // // For information about limits on the number of inline policies that you can // embed in a user, see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) -// in the IAM User Guide. +// in the Using IAM guide. // -// Because policy documents can be large, you should use POST rather than -// GET when calling PutUserPolicy. For general information about using the Query +// Because policy documents can be large, you should use POST rather than GET +// when calling PutUserPolicy. For general information about using the Query // API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) PutUserPolicy(input *PutUserPolicyInput) (*PutUserPolicyOutput, error) { req, out := c.PutUserPolicyRequest(input) err := req.Send() @@ -3546,19 +3325,16 @@ func (c *IAM) RemoveClientIDFromOpenIDConnectProviderRequest(input *RemoveClient } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RemoveClientIDFromOpenIDConnectProviderOutput{} req.Data = output return } // Removes the specified client ID (also known as audience) from the list of -// client IDs registered for the specified IAM OpenID Connect (OIDC) provider -// resource object. +// client IDs registered for the specified IAM OpenID Connect provider. // // This action is idempotent; it does not fail or return an error if you try -// to remove a client ID that does not exist. +// to remove a client ID that was removed previously. func (c *IAM) RemoveClientIDFromOpenIDConnectProvider(input *RemoveClientIDFromOpenIDConnectProviderInput) (*RemoveClientIDFromOpenIDConnectProviderOutput, error) { req, out := c.RemoveClientIDFromOpenIDConnectProviderRequest(input) err := req.Send() @@ -3580,21 +3356,18 @@ func (c *IAM) RemoveRoleFromInstanceProfileRequest(input *RemoveRoleFromInstance } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RemoveRoleFromInstanceProfileOutput{} req.Data = output return } -// Removes the specified IAM role from the specified EC2 instance profile. +// Removes the specified role from the specified instance profile. // // Make sure you do not have any Amazon EC2 instances running with the role // you are about to remove from the instance profile. Removing a role from an -// instance profile that is associated with a running instance break any applications -// running on the instance. -// -// For more information about IAM roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). +// instance profile that is associated with a running instance will break any +// applications running on the instance. For more information about roles, +// go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). func (c *IAM) RemoveRoleFromInstanceProfile(input *RemoveRoleFromInstanceProfileInput) (*RemoveRoleFromInstanceProfileOutput, error) { @@ -3618,8 +3391,6 @@ func (c *IAM) RemoveUserFromGroupRequest(input *RemoveUserFromGroupInput) (req * } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RemoveUserFromGroupOutput{} req.Data = output return @@ -3647,19 +3418,16 @@ func (c *IAM) ResyncMFADeviceRequest(input *ResyncMFADeviceInput) (req *request. } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ResyncMFADeviceOutput{} req.Data = output return } -// Synchronizes the specified MFA device with its IAM resource object on the -// AWS servers. +// Synchronizes the specified MFA device with AWS servers. // // For more information about creating and working with virtual MFA devices, // go to Using a Virtual MFA Device (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_VirtualMFA.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) ResyncMFADevice(input *ResyncMFADeviceInput) (*ResyncMFADeviceOutput, error) { req, out := c.ResyncMFADeviceRequest(input) err := req.Send() @@ -3681,8 +3449,6 @@ func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetDefaultPolicyVersionOutput{} req.Data = output return @@ -3695,111 +3461,15 @@ func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput // to. To list the users, groups, and roles that the policy is attached to, // use the ListEntitiesForPolicy API. // -// For information about managed policies, see Managed Policies and Inline +// For information about managed policies, refer to Managed Policies and Inline // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) { req, out := c.SetDefaultPolicyVersionRequest(input) err := req.Send() return out, err } -const opSimulateCustomPolicy = "SimulateCustomPolicy" - -// SimulateCustomPolicyRequest generates a request for the SimulateCustomPolicy operation. -func (c *IAM) SimulateCustomPolicyRequest(input *SimulateCustomPolicyInput) (req *request.Request, output *SimulatePolicyResponse) { - op := &request.Operation{ - Name: opSimulateCustomPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SimulateCustomPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &SimulatePolicyResponse{} - req.Data = output - return -} - -// Simulate how a set of IAM policies and optionally a resource-based policy -// works with a list of API actions and AWS resources to determine the policies' -// effective permissions. The policies are provided as strings. -// -// The simulation does not perform the API actions; it only checks the authorization -// to determine if the simulated policies allow or deny the actions. -// -// If you want to simulate existing policies attached to an IAM user, group, -// or role, use SimulatePrincipalPolicy instead. -// -// Context keys are variables maintained by AWS and its services that provide -// details about the context of an API query request. You can use the Condition -// element of an IAM policy to evaluate context keys. To get the list of context -// keys that the policies require for correct simulation, use GetContextKeysForCustomPolicy. -// -// If the output is long, you can use MaxItems and Marker parameters to paginate -// the results. -func (c *IAM) SimulateCustomPolicy(input *SimulateCustomPolicyInput) (*SimulatePolicyResponse, error) { - req, out := c.SimulateCustomPolicyRequest(input) - err := req.Send() - return out, err -} - -const opSimulatePrincipalPolicy = "SimulatePrincipalPolicy" - -// SimulatePrincipalPolicyRequest generates a request for the SimulatePrincipalPolicy operation. -func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput) (req *request.Request, output *SimulatePolicyResponse) { - op := &request.Operation{ - Name: opSimulatePrincipalPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SimulatePrincipalPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &SimulatePolicyResponse{} - req.Data = output - return -} - -// Simulate how a set of IAM policies attached to an IAM entity works with a -// list of API actions and AWS resources to determine the policies' effective -// permissions. The entity can be an IAM user, group, or role. If you specify -// a user, then the simulation also includes all of the policies that are attached -// to groups that the user belongs to . -// -// You can optionally include a list of one or more additional policies specified -// as strings to include in the simulation. If you want to simulate only policies -// specified as strings, use SimulateCustomPolicy instead. -// -// You can also optionally include one resource-based policy to be evaluated -// with each of the resources included in the simulation. -// -// The simulation does not perform the API actions, it only checks the authorization -// to determine if the simulated policies allow or deny the actions. -// -// Note: This API discloses information about the permissions granted to other -// users. If you do not want users to see other user's permissions, then consider -// allowing them to use SimulateCustomPolicy instead. -// -// Context keys are variables maintained by AWS and its services that provide -// details about the context of an API query request. You can use the Condition -// element of an IAM policy to evaluate context keys. To get the list of context -// keys that the policies require for correct simulation, use GetContextKeysForPrincipalPolicy. -// -// If the output is long, you can use the MaxItems and Marker parameters to -// paginate the results. -func (c *IAM) SimulatePrincipalPolicy(input *SimulatePrincipalPolicyInput) (*SimulatePolicyResponse, error) { - req, out := c.SimulatePrincipalPolicyRequest(input) - err := req.Send() - return out, err -} - const opUpdateAccessKey = "UpdateAccessKey" // UpdateAccessKeyRequest generates a request for the UpdateAccessKey operation. @@ -3815,8 +3485,6 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateAccessKeyOutput{} req.Data = output return @@ -3833,7 +3501,7 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. // // For information about rotating keys, see Managing Keys and Certificates // (http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingCredentials.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) UpdateAccessKey(input *UpdateAccessKeyInput) (*UpdateAccessKeyOutput, error) { req, out := c.UpdateAccessKeyRequest(input) err := req.Send() @@ -3855,8 +3523,6 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateAccountPasswordPolicyOutput{} req.Data = output return @@ -3871,7 +3537,7 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol // // For more information about using a password policy, see Managing an IAM // Password Policy (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html) -// in the IAM User Guide. +// in the Using IAM guide. func (c *IAM) UpdateAccountPasswordPolicy(input *UpdateAccountPasswordPolicyInput) (*UpdateAccountPasswordPolicyOutput, error) { req, out := c.UpdateAccountPasswordPolicyRequest(input) err := req.Send() @@ -3893,17 +3559,14 @@ func (c *IAM) UpdateAssumeRolePolicyRequest(input *UpdateAssumeRolePolicyInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateAssumeRolePolicyOutput{} req.Data = output return } -// Updates the policy that grants an IAM entity permission to assume a role. -// This is typically referred to as the "role trust policy". For more information -// about roles, go to Using Roles to Delegate Permissions and Federate Identities -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). +// Updates the policy that grants an entity permission to assume a role. For +// more information about roles, go to Using Roles to Delegate Permissions and +// Federate Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). func (c *IAM) UpdateAssumeRolePolicy(input *UpdateAssumeRolePolicyInput) (*UpdateAssumeRolePolicyOutput, error) { req, out := c.UpdateAssumeRolePolicyRequest(input) err := req.Send() @@ -3925,24 +3588,21 @@ func (c *IAM) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateGroupOutput{} req.Data = output return } -// Updates the name and/or the path of the specified IAM group. +// Updates the name and/or the path of the specified group. // -// You should understand the implications of changing a group's path or name. +// You should understand the implications of changing a group's path or name. // For more information, see Renaming Users and Groups (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_WorkingWithGroupsAndUsers.html) -// in the IAM User Guide. -// -// To change an IAM group name the requester must have appropriate permissions -// on both the source object and the target object. For example, to change "Managers" -// to "MGRs", the entity making the request must have permission on both "Managers" -// and "MGRs", or must have permission on all (*). For more information about -// permissions, see Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html). +// in the Using IAM guide. To change a group name the requester must have appropriate +// permissions on both the source object and the target object. For example, +// to change Managers to MGRs, the entity making the request must have permission +// on Managers and MGRs, or must have permission on all (*). For more information +// about permissions, see Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html" +// target="blank). func (c *IAM) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { req, out := c.UpdateGroupRequest(input) err := req.Send() @@ -3964,18 +3624,16 @@ func (c *IAM) UpdateLoginProfileRequest(input *UpdateLoginProfileInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateLoginProfileOutput{} req.Data = output return } -// Changes the password for the specified IAM user. +// Changes the password for the specified user. // -// IAM users can change their own passwords by calling ChangePassword. For -// more information about modifying passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) -// in the IAM User Guide. +// Users can change their own passwords by calling ChangePassword. For more +// information about modifying passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) +// in the Using IAM guide. func (c *IAM) UpdateLoginProfile(input *UpdateLoginProfileInput) (*UpdateLoginProfileOutput, error) { req, out := c.UpdateLoginProfileRequest(input) err := req.Send() @@ -3997,15 +3655,12 @@ func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDCo } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateOpenIDConnectProviderThumbprintOutput{} req.Data = output return } -// Replaces the existing list of server certificate thumbprints associated with -// an OpenID Connect (OIDC) provider resource object with a new list of thumbprints. +// Replaces the existing list of server certificate thumbprints with a new list. // // The list that you pass with this action completely replaces the existing // list of thumbprints. (The lists are not merged.) @@ -4013,12 +3668,12 @@ func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDCo // Typically, you need to update a thumbprint only when the identity provider's // certificate changes, which occurs rarely. However, if the provider's certificate // does change, any attempt to assume an IAM role that specifies the OIDC provider -// as a principal fails until the certificate thumbprint is updated. +// as a principal will fail until the certificate thumbprint is updated. // -// Because trust for the OIDC provider is ultimately derived from the provider's -// certificate and is validated by the thumbprint, it is a best practice to -// limit access to the UpdateOpenIDConnectProviderThumbprint action to highly-privileged -// users. +// Because trust for the OpenID Connect provider is ultimately derived from +// the provider's certificate and is validated by the thumbprint, it is a best +// practice to limit access to the UpdateOpenIDConnectProviderThumbprint action +// to highly-privileged users. func (c *IAM) UpdateOpenIDConnectProviderThumbprint(input *UpdateOpenIDConnectProviderThumbprintInput) (*UpdateOpenIDConnectProviderThumbprintOutput, error) { req, out := c.UpdateOpenIDConnectProviderThumbprintRequest(input) err := req.Send() @@ -4045,9 +3700,9 @@ func (c *IAM) UpdateSAMLProviderRequest(input *UpdateSAMLProviderInput) (req *re return } -// Updates the metadata document for an existing SAML provider resource object. +// Updates the metadata document for an existing SAML provider. // -// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). func (c *IAM) UpdateSAMLProvider(input *UpdateSAMLProviderInput) (*UpdateSAMLProviderOutput, error) { req, out := c.UpdateSAMLProviderRequest(input) err := req.Send() @@ -4069,14 +3724,12 @@ func (c *IAM) UpdateSSHPublicKeyRequest(input *UpdateSSHPublicKeyInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateSSHPublicKeyOutput{} req.Data = output return } -// Sets the status of an IAM user's SSH public key to active or inactive. SSH +// Sets the status of the specified SSH public key to active or inactive. SSH // public keys that are inactive cannot be used for authentication. This action // can be used to disable a user's SSH public key as part of a key rotation // work flow. @@ -4107,32 +3760,22 @@ func (c *IAM) UpdateServerCertificateRequest(input *UpdateServerCertificateInput } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateServerCertificateOutput{} req.Data = output return } -// Updates the name and/or the path of the specified server certificate stored -// in IAM. -// -// For more information about working with server certificates, including a -// list of AWS services that can use the server certificates that you manage -// with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) -// in the IAM User Guide. +// Updates the name and/or the path of the specified server certificate. // // You should understand the implications of changing a server certificate's -// path or name. For more information, see Renaming a Server Certificate (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs_manage.html#RenamingServerCerts) -// in the IAM User Guide. -// -// To change a server certificate name the requester must have appropriate -// permissions on both the source object and the target object. For example, -// to change the name from "ProductionCert" to "ProdCert", the entity making -// the request must have permission on "ProductionCert" and "ProdCert", or must -// have permission on all (*). For more information about permissions, see Access -// Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) -// in the IAM User Guide. +// path or name. For more information, see Managing Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingServerCerts.html) +// in the Using IAM guide. To change a server certificate name the requester +// must have appropriate permissions on both the source object and the target +// object. For example, to change the name from ProductionCert to ProdCert, +// the entity making the request must have permission on ProductionCert and +// ProdCert, or must have permission on all (*). For more information about +// permissions, see Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html" +// target="blank). func (c *IAM) UpdateServerCertificate(input *UpdateServerCertificateInput) (*UpdateServerCertificateOutput, error) { req, out := c.UpdateServerCertificateRequest(input) err := req.Send() @@ -4154,16 +3797,14 @@ func (c *IAM) UpdateSigningCertificateRequest(input *UpdateSigningCertificateInp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateSigningCertificateOutput{} req.Data = output return } -// Changes the status of the specified user signing certificate from active -// to disabled, or vice versa. This action can be used to disable an IAM user's -// signing certificate as part of a certificate rotation work flow. +// Changes the status of the specified signing certificate from active to disabled, +// or vice versa. This action can be used to disable a user's signing certificate +// as part of a certificate rotation work flow. // // If the UserName field is not specified, the UserName is determined implicitly // based on the AWS access key ID used to sign the request. Because this action @@ -4190,25 +3831,21 @@ func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, o } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateUserOutput{} req.Data = output return } -// Updates the name and/or the path of the specified IAM user. -// -// You should understand the implications of changing an IAM user's path -// or name. For more information, see Renaming an IAM User (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_manage.html#id_users_renaming) -// and Renaming an IAM Group (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups_manage_rename.html) -// in the IAM User Guide. +// Updates the name and/or the path of the specified user. // -// To change a user name the requester must have appropriate permissions -// on both the source object and the target object. For example, to change Bob -// to Robert, the entity making the request must have permission on Bob and -// Robert, or must have permission on all (*). For more information about permissions, -// see Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html). +// You should understand the implications of changing a user's path or name. +// For more information, see Renaming Users and Groups (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_WorkingWithGroupsAndUsers.html) +// in the Using IAM guide. To change a user name the requester must have appropriate +// permissions on both the source object and the target object. For example, +// to change Bob to Robert, the entity making the request must have permission +// on Bob and Robert, or must have permission on all (*). For more information +// about permissions, see Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html" +// target="blank). func (c *IAM) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { req, out := c.UpdateUserRequest(input) err := req.Send() @@ -4272,22 +3909,17 @@ func (c *IAM) UploadServerCertificateRequest(input *UploadServerCertificateInput // entity includes a public key certificate, a private key, and an optional // certificate chain, which should all be PEM-encoded. // -// For more information about working with server certificates, including a -// list of AWS services that can use the server certificates that you manage -// with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) -// in the IAM User Guide. -// // For information about the number of server certificates you can upload, -// see Limitations on IAM Entities and Objects (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html) -// in the IAM User Guide. +// see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) +// in the Using IAM guide. // -// Because the body of the public key certificate, private key, and the certificate +// Because the body of the public key certificate, private key, and the certificate // chain can be large, you should use POST rather than GET when calling UploadServerCertificate. // For information about setting up signatures and authorization through the // API, go to Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) // in the AWS General Reference. For general information about using the Query -// API with IAM, go to Calling the API by Making HTTP Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/programming.html) -// in the IAM User Guide. +// API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) +// in the Using IAM guide. func (c *IAM) UploadServerCertificate(input *UploadServerCertificateInput) (*UploadServerCertificateOutput, error) { req, out := c.UploadServerCertificateRequest(input) err := req.Send() @@ -4315,23 +3947,22 @@ func (c *IAM) UploadSigningCertificateRequest(input *UploadSigningCertificateInp } // Uploads an X.509 signing certificate and associates it with the specified -// IAM user. Some AWS services use X.509 signing certificates to validate requests +// user. Some AWS services use X.509 signing certificates to validate requests // that are signed with a corresponding private key. When you upload the certificate, // its default status is Active. // -// If the UserName field is not specified, the IAM user name is determined -// implicitly based on the AWS access key ID used to sign the request. Because -// this action works for access keys under the AWS account, you can use this -// action to manage root credentials even if the AWS account has no associated -// users. -// -// Because the body of a X.509 certificate can be large, you should use POST -// rather than GET when calling UploadSigningCertificate. For information about -// setting up signatures and authorization through the API, go to Signing AWS +// If the UserName field is not specified, the user name is determined implicitly +// based on the AWS access key ID used to sign the request. Because this action +// works for access keys under the AWS account, you can use this action to manage +// root credentials even if the AWS account has no associated users. +// +// Because the body of a X.509 certificate can be large, you should use POST +// rather than GET when calling UploadSigningCertificate. For information about +// setting up signatures and authorization through the API, go to Signing AWS // API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) // in the AWS General Reference. For general information about using the Query // API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) -// in the IAM User Guide. +// in the Using IAMguide. func (c *IAM) UploadSigningCertificate(input *UploadSigningCertificateInput) (*UploadSigningCertificateOutput, error) { req, out := c.UploadSigningCertificateRequest(input) err := req.Send() @@ -4343,15 +3974,13 @@ func (c *IAM) UploadSigningCertificate(input *UploadSigningCertificateInput) (*U // This data type is used as a response element in the CreateAccessKey and // ListAccessKeys actions. // -// The SecretAccessKey value is returned only in response to CreateAccessKey. +// The SecretAccessKey value is returned only in response to CreateAccessKey. // You can get a secret access key only when you first create an access key; // you cannot recover the secret access key later. If you lose a secret access // key, you must create a new access key. type AccessKey struct { - _ struct{} `type:"structure"` - // The ID for this access key. - AccessKeyId *string `min:"16" type:"string" required:"true"` + AccessKeyId *string `type:"string" required:"true"` // The date when the access key was created. CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -4364,7 +3993,13 @@ type AccessKey struct { Status *string `type:"string" required:"true" enum:"statusType"` // The name of the IAM user that the access key is associated with. - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataAccessKey `json:"-" xml:"-"` +} + +type metadataAccessKey struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4382,8 +4017,6 @@ func (s AccessKey) GoString() string { // This data type is used as a response element in the GetAccessKeyLastUsed // action. type AccessKeyLastUsed struct { - _ struct{} `type:"structure"` - // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), // when the access key was most recently used. This field is null when: // @@ -4419,6 +4052,12 @@ type AccessKeyLastUsed struct { // // There is no sign-in data associated with the user ServiceName *string `type:"string" required:"true"` + + metadataAccessKeyLastUsed `json:"-" xml:"-"` +} + +type metadataAccessKeyLastUsed struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4435,10 +4074,8 @@ func (s AccessKeyLastUsed) GoString() string { // // This data type is used as a response element in the ListAccessKeys action. type AccessKeyMetadata struct { - _ struct{} `type:"structure"` - // The ID for this access key. - AccessKeyId *string `min:"16" type:"string"` + AccessKeyId *string `type:"string"` // The date when the access key was created. CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -4448,7 +4085,13 @@ type AccessKeyMetadata struct { Status *string `type:"string" enum:"statusType"` // The name of the IAM user that the key is associated with. - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` + + metadataAccessKeyMetadata `json:"-" xml:"-"` +} + +type metadataAccessKeyMetadata struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4462,16 +4105,19 @@ func (s AccessKeyMetadata) GoString() string { } type AddClientIDToOpenIDConnectProviderInput struct { - _ struct{} `type:"structure"` - - // The client ID (also known as audience) to add to the IAM OpenID Connect provider - // resource. - ClientID *string `min:"1" type:"string" required:"true"` + // The client ID (also known as audience) to add to the IAM OpenID Connect provider. + ClientID *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider - // resource to add the client ID to. You can get a list of OIDC provider ARNs - // by using the ListOpenIDConnectProviders action. - OpenIDConnectProviderArn *string `min:"20" type:"string" required:"true"` + // to add the client ID to. You can get a list of OIDC provider ARNs by using + // the ListOpenIDConnectProviders action. + OpenIDConnectProviderArn *string `type:"string" required:"true"` + + metadataAddClientIDToOpenIDConnectProviderInput `json:"-" xml:"-"` +} + +type metadataAddClientIDToOpenIDConnectProviderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4484,30 +4130,12 @@ func (s AddClientIDToOpenIDConnectProviderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddClientIDToOpenIDConnectProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddClientIDToOpenIDConnectProviderInput"} - if s.ClientID == nil { - invalidParams.Add(request.NewErrParamRequired("ClientID")) - } - if s.ClientID != nil && len(*s.ClientID) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientID", 1)) - } - if s.OpenIDConnectProviderArn == nil { - invalidParams.Add(request.NewErrParamRequired("OpenIDConnectProviderArn")) - } - if s.OpenIDConnectProviderArn != nil && len(*s.OpenIDConnectProviderArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("OpenIDConnectProviderArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AddClientIDToOpenIDConnectProviderOutput struct { + metadataAddClientIDToOpenIDConnectProviderOutput `json:"-" xml:"-"` } -type AddClientIDToOpenIDConnectProviderOutput struct { - _ struct{} `type:"structure"` +type metadataAddClientIDToOpenIDConnectProviderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4521,21 +4149,17 @@ func (s AddClientIDToOpenIDConnectProviderOutput) GoString() string { } type AddRoleToInstanceProfileInput struct { - _ struct{} `type:"structure"` - // The name of the instance profile to update. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - InstanceProfileName *string `min:"1" type:"string" required:"true"` + InstanceProfileName *string `type:"string" required:"true"` // The name of the role to add. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataAddRoleToInstanceProfileInput `json:"-" xml:"-"` +} + +type metadataAddRoleToInstanceProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4548,30 +4172,12 @@ func (s AddRoleToInstanceProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddRoleToInstanceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddRoleToInstanceProfileInput"} - if s.InstanceProfileName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceProfileName")) - } - if s.InstanceProfileName != nil && len(*s.InstanceProfileName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceProfileName", 1)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AddRoleToInstanceProfileOutput struct { + metadataAddRoleToInstanceProfileOutput `json:"-" xml:"-"` } -type AddRoleToInstanceProfileOutput struct { - _ struct{} `type:"structure"` +type metadataAddRoleToInstanceProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4585,21 +4191,17 @@ func (s AddRoleToInstanceProfileOutput) GoString() string { } type AddUserToGroupInput struct { - _ struct{} `type:"structure"` - // The name of the group to update. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` // The name of the user to add. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataAddUserToGroupInput `json:"-" xml:"-"` +} + +type metadataAddUserToGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4612,30 +4214,12 @@ func (s AddUserToGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddUserToGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddUserToGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AddUserToGroupOutput struct { + metadataAddUserToGroupOutput `json:"-" xml:"-"` } -type AddUserToGroupOutput struct { - _ struct{} `type:"structure"` +type metadataAddUserToGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4649,21 +4233,21 @@ func (s AddUserToGroupOutput) GoString() string { } type AttachGroupPolicyInput struct { - _ struct{} `type:"structure"` - // The name (friendly name, not ARN) of the group to attach the policy to. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the IAM policy you want to attach. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` + + metadataAttachGroupPolicyInput `json:"-" xml:"-"` +} + +type metadataAttachGroupPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4676,30 +4260,12 @@ func (s AttachGroupPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachGroupPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachGroupPolicyInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AttachGroupPolicyOutput struct { + metadataAttachGroupPolicyOutput `json:"-" xml:"-"` } -type AttachGroupPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataAttachGroupPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4713,21 +4279,21 @@ func (s AttachGroupPolicyOutput) GoString() string { } type AttachRolePolicyInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the IAM policy you want to attach. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` // The name (friendly name, not ARN) of the role to attach the policy to. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataAttachRolePolicyInput `json:"-" xml:"-"` +} + +type metadataAttachRolePolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4740,30 +4306,12 @@ func (s AttachRolePolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachRolePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachRolePolicyInput"} - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AttachRolePolicyOutput struct { + metadataAttachRolePolicyOutput `json:"-" xml:"-"` } -type AttachRolePolicyOutput struct { - _ struct{} `type:"structure"` +type metadataAttachRolePolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4777,21 +4325,21 @@ func (s AttachRolePolicyOutput) GoString() string { } type AttachUserPolicyInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the IAM policy you want to attach. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` - // The name (friendly name, not ARN) of the IAM user to attach the policy to. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + // The name (friendly name, not ARN) of the user to attach the policy to. + UserName *string `type:"string" required:"true"` + + metadataAttachUserPolicyInput `json:"-" xml:"-"` +} + +type metadataAttachUserPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4804,30 +4352,12 @@ func (s AttachUserPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachUserPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachUserPolicyInput"} - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AttachUserPolicyOutput struct { + metadataAttachUserPolicyOutput `json:"-" xml:"-"` } -type AttachUserPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataAttachUserPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4851,17 +4381,21 @@ func (s AttachUserPolicyOutput) GoString() string { // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. type AttachedPolicy struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // // For more information about ARNs, go to Amazon Resource Names (ARNs) and // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string"` + PolicyArn *string `type:"string"` // The friendly name of the attached policy. - PolicyName *string `min:"1" type:"string"` + PolicyName *string `type:"string"` + + metadataAttachedPolicy `json:"-" xml:"-"` +} + +type metadataAttachedPolicy struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4875,23 +4409,18 @@ func (s AttachedPolicy) GoString() string { } type ChangePasswordInput struct { - _ struct{} `type:"structure"` - // The new password. The new password must conform to the AWS account's password // policy, if one exists. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of almost any printable ASCII character - // from the space (\u0020) through the end of the ASCII character range (\u00FF). - // You can also include the tab (\u0009), line feed (\u000A), and carriage return - // (\u000D) characters. Although any of these characters are valid in a password, - // note that many tools, such as the AWS Management Console, might restrict - // the ability to enter certain characters because they have special meaning - // within that tool. - NewPassword *string `min:"1" type:"string" required:"true"` + NewPassword *string `type:"string" required:"true"` // The IAM user's current password. - OldPassword *string `min:"1" type:"string" required:"true"` + OldPassword *string `type:"string" required:"true"` + + metadataChangePasswordInput `json:"-" xml:"-"` +} + +type metadataChangePasswordInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4904,30 +4433,12 @@ func (s ChangePasswordInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ChangePasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangePasswordInput"} - if s.NewPassword == nil { - invalidParams.Add(request.NewErrParamRequired("NewPassword")) - } - if s.NewPassword != nil && len(*s.NewPassword) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NewPassword", 1)) - } - if s.OldPassword == nil { - invalidParams.Add(request.NewErrParamRequired("OldPassword")) - } - if s.OldPassword != nil && len(*s.OldPassword) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OldPassword", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ChangePasswordOutput struct { + metadataChangePasswordOutput `json:"-" xml:"-"` } -type ChangePasswordOutput struct { - _ struct{} `type:"structure"` +type metadataChangePasswordOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4940,62 +4451,15 @@ func (s ChangePasswordOutput) GoString() string { return s.String() } -// Contains information about a condition context key. It includes the name -// of the key and specifies the value (or values, if the context key supports -// multiple values) to use in the simulation. This information is used when -// evaluating the Condition elements of the input policies. -// -// This data type is used as an input parameter to SimulateCustomPolicy and -// SimulateCustomPolicy . -type ContextEntry struct { - _ struct{} `type:"structure"` - - // The full name of a condition context key, including the service prefix. For - // example, aws:SourceIp or s3:VersionId. - ContextKeyName *string `min:"5" type:"string"` - - // The data type of the value (or values) specified in the ContextKeyValues - // parameter. - ContextKeyType *string `type:"string" enum:"ContextKeyTypeEnum"` - - // The value (or values, if the condition context key supports multiple values) - // to provide to the simulation for use when the key is referenced by a Condition - // element in an input policy. - ContextKeyValues []*string `type:"list"` -} - -// String returns the string representation -func (s ContextEntry) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ContextEntry) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ContextEntry) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContextEntry"} - if s.ContextKeyName != nil && len(*s.ContextKeyName) < 5 { - invalidParams.Add(request.NewErrParamMinLen("ContextKeyName", 5)) - } +type CreateAccessKeyInput struct { + // The user name that the new key will belong to. + UserName *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateAccessKeyInput `json:"-" xml:"-"` } -type CreateAccessKeyInput struct { - _ struct{} `type:"structure"` - - // The name of the IAM user that the new key will belong to. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string"` +type metadataCreateAccessKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5008,25 +4472,16 @@ func (s CreateAccessKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAccessKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAccessKeyInput"} - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreateAccessKey request. type CreateAccessKeyOutput struct { - _ struct{} `type:"structure"` - - // A structure with details about the access key. + // Information about the access key. AccessKey *AccessKey `type:"structure" required:"true"` + + metadataCreateAccessKeyOutput `json:"-" xml:"-"` +} + +type metadataCreateAccessKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5040,15 +4495,14 @@ func (s CreateAccessKeyOutput) GoString() string { } type CreateAccountAliasInput struct { - _ struct{} `type:"structure"` - // The account alias to create. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of lowercase letters, digits, and dashes. - // You cannot start or finish with a dash, nor can you have two dashes in a - // row. - AccountAlias *string `min:"3" type:"string" required:"true"` + AccountAlias *string `type:"string" required:"true"` + + metadataCreateAccountAliasInput `json:"-" xml:"-"` +} + +type metadataCreateAccountAliasInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5061,24 +4515,12 @@ func (s CreateAccountAliasInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAccountAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAccountAliasInput"} - if s.AccountAlias == nil { - invalidParams.Add(request.NewErrParamRequired("AccountAlias")) - } - if s.AccountAlias != nil && len(*s.AccountAlias) < 3 { - invalidParams.Add(request.NewErrParamMinLen("AccountAlias", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateAccountAliasOutput struct { + metadataCreateAccountAliasOutput `json:"-" xml:"-"` } -type CreateAccountAliasOutput struct { - _ struct{} `type:"structure"` +type metadataCreateAccountAliasOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5092,28 +4534,22 @@ func (s CreateAccountAliasOutput) GoString() string { } type CreateGroupInput struct { - _ struct{} `type:"structure"` - // The name of the group to create. Do not include the path in this value. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` // The path to the group. For more information about paths, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) - // in the IAM User Guide. + // in the Using IAM guide. // // This parameter is optional. If it is not included, it defaults to a slash // (/). - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. - Path *string `min:"1" type:"string"` + Path *string `type:"string"` + + metadataCreateGroupInput `json:"-" xml:"-"` +} + +type metadataCreateGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5126,31 +4562,16 @@ func (s CreateGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.Path != nil && len(*s.Path) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Path", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreateGroup request. type CreateGroupOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the new group. + // Information about the group. Group *Group `type:"structure" required:"true"` + + metadataCreateGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5164,28 +4585,22 @@ func (s CreateGroupOutput) GoString() string { } type CreateInstanceProfileInput struct { - _ struct{} `type:"structure"` - // The name of the instance profile to create. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - InstanceProfileName *string `min:"1" type:"string" required:"true"` + InstanceProfileName *string `type:"string" required:"true"` // The path to the instance profile. For more information about paths, see IAM // Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) - // in the IAM User Guide. + // in the Using IAM guide. // // This parameter is optional. If it is not included, it defaults to a slash // (/). - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. - Path *string `min:"1" type:"string"` + Path *string `type:"string"` + + metadataCreateInstanceProfileInput `json:"-" xml:"-"` +} + +type metadataCreateInstanceProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5198,31 +4613,16 @@ func (s CreateInstanceProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateInstanceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateInstanceProfileInput"} - if s.InstanceProfileName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceProfileName")) - } - if s.InstanceProfileName != nil && len(*s.InstanceProfileName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceProfileName", 1)) - } - if s.Path != nil && len(*s.Path) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Path", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreateInstanceProfile request. type CreateInstanceProfileOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the new instance profile. + // Information about the instance profile. InstanceProfile *InstanceProfile `type:"structure" required:"true"` + + metadataCreateInstanceProfileOutput `json:"-" xml:"-"` +} + +type metadataCreateInstanceProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5236,30 +4636,20 @@ func (s CreateInstanceProfileOutput) GoString() string { } type CreateLoginProfileInput struct { - _ struct{} `type:"structure"` - // The new password for the user. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of almost any printable ASCII character - // from the space (\u0020) through the end of the ASCII character range (\u00FF). - // You can also include the tab (\u0009), line feed (\u000A), and carriage return - // (\u000D) characters. Although any of these characters are valid in a password, - // note that many tools, such as the AWS Management Console, might restrict - // the ability to enter certain characters because they have special meaning - // within that tool. - Password *string `min:"1" type:"string" required:"true"` + Password *string `type:"string" required:"true"` // Specifies whether the user is required to set a new password on next sign-in. PasswordResetRequired *bool `type:"boolean"` - // The name of the IAM user to create a password for. The user must already - // exist. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + // The name of the user to create a password for. + UserName *string `type:"string" required:"true"` + + metadataCreateLoginProfileInput `json:"-" xml:"-"` +} + +type metadataCreateLoginProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5272,34 +4662,16 @@ func (s CreateLoginProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLoginProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLoginProfileInput"} - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Password != nil && len(*s.Password) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Password", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreateLoginProfile request. type CreateLoginProfileOutput struct { - _ struct{} `type:"structure"` - - // A structure containing the user name and password create date. + // The user name and password create date. LoginProfile *LoginProfile `type:"structure" required:"true"` + + metadataCreateLoginProfileOutput `json:"-" xml:"-"` +} + +type metadataCreateLoginProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5313,8 +4685,6 @@ func (s CreateLoginProfileOutput) GoString() string { } type CreateOpenIDConnectProviderInput struct { - _ struct{} `type:"structure"` - // A list of client IDs (also known as audiences). When a mobile or web app // registers with an OpenID Connect provider, they establish a value that identifies // the application. (This is the value that's sent as the client_id parameter @@ -5346,7 +4716,7 @@ type CreateOpenIDConnectProviderInput struct { // // For more information about obtaining the OIDC provider's thumbprint, see // Obtaining the Thumbprint for an OpenID Connect Provider (http://docs.aws.amazon.com/IAM/latest/UserGuide/identity-providers-oidc-obtain-thumbprint.html) - // in the IAM User Guide. + // in the Using IAM guide. ThumbprintList []*string `type:"list" required:"true"` // The URL of the identity provider. The URL must begin with "https://" and @@ -5358,7 +4728,13 @@ type CreateOpenIDConnectProviderInput struct { // You cannot register the same provider multiple times in a single AWS account. // If you try to submit a URL that has already been used for an OpenID Connect // provider in the AWS account, you will get an error. - Url *string `min:"1" type:"string" required:"true"` + Url *string `type:"string" required:"true"` + + metadataCreateOpenIDConnectProviderInput `json:"-" xml:"-"` +} + +type metadataCreateOpenIDConnectProviderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5371,32 +4747,17 @@ func (s CreateOpenIDConnectProviderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateOpenIDConnectProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateOpenIDConnectProviderInput"} - if s.ThumbprintList == nil { - invalidParams.Add(request.NewErrParamRequired("ThumbprintList")) - } - if s.Url == nil { - invalidParams.Add(request.NewErrParamRequired("Url")) - } - if s.Url != nil && len(*s.Url) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Url", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreateOpenIDConnectProvider request. type CreateOpenIDConnectProviderOutput struct { - _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the IAM OpenID Connect provider that was + // created. For more information, see OpenIDConnectProviderListEntry. + OpenIDConnectProviderArn *string `type:"string"` - // The Amazon Resource Name (ARN) of the new IAM OpenID Connect provider that - // is created. For more information, see OpenIDConnectProviderListEntry. - OpenIDConnectProviderArn *string `min:"20" type:"string"` + metadataCreateOpenIDConnectProviderOutput `json:"-" xml:"-"` +} + +type metadataCreateOpenIDConnectProviderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5410,8 +4771,6 @@ func (s CreateOpenIDConnectProviderOutput) GoString() string { } type CreatePolicyInput struct { - _ struct{} `type:"structure"` - // A friendly description of the policy. // // Typically used to store information about the permissions defined in the @@ -5424,34 +4783,23 @@ type CreatePolicyInput struct { // The path for the policy. // // For more information about paths, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) - // in the IAM User Guide. + // in the Using IAM guide. // // This parameter is optional. If it is not included, it defaults to a slash // (/). - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. Path *string `type:"string"` - // The JSON policy document that you want to use as the content for the new - // policy. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PolicyDocument *string `min:"1" type:"string" required:"true"` + // The policy document. + PolicyDocument *string `type:"string" required:"true"` - // The friendly name of the policy. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - PolicyName *string `min:"1" type:"string" required:"true"` + // The name of the policy document. + PolicyName *string `type:"string" required:"true"` + + metadataCreatePolicyInput `json:"-" xml:"-"` +} + +type metadataCreatePolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5464,34 +4812,16 @@ func (s CreatePolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePolicyInput"} - if s.PolicyDocument == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyDocument")) - } - if s.PolicyDocument != nil && len(*s.PolicyDocument) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyDocument", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreatePolicy request. type CreatePolicyOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the new policy. + // Information about the policy. Policy *Policy `type:"structure"` + + metadataCreatePolicyOutput `json:"-" xml:"-"` +} + +type metadataCreatePolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5505,25 +4835,15 @@ func (s CreatePolicyOutput) GoString() string { } type CreatePolicyVersionInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the IAM policy to which you want to add - // a new version. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` - // The JSON policy document that you want to use as the content for this new - // version of the policy. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PolicyDocument *string `min:"1" type:"string" required:"true"` + // The policy document. + PolicyDocument *string `type:"string" required:"true"` // Specifies whether to set this version as the policy's default version. // @@ -5533,8 +4853,14 @@ type CreatePolicyVersionInput struct { // // For more information about managed policy versions, see Versioning for Managed // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) - // in the IAM User Guide. + // in the Using IAM guide. SetAsDefault *bool `type:"boolean"` + + metadataCreatePolicyVersionInput `json:"-" xml:"-"` +} + +type metadataCreatePolicyVersionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5547,34 +4873,16 @@ func (s CreatePolicyVersionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePolicyVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePolicyVersionInput"} - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - if s.PolicyDocument == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyDocument")) - } - if s.PolicyDocument != nil && len(*s.PolicyDocument) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyDocument", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreatePolicyVersion request. type CreatePolicyVersionOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the new policy version. + // Information about the policy version. PolicyVersion *PolicyVersion `type:"structure"` + + metadataCreatePolicyVersionOutput `json:"-" xml:"-"` +} + +type metadataCreatePolicyVersionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5588,38 +4896,25 @@ func (s CreatePolicyVersionOutput) GoString() string { } type CreateRoleInput struct { - _ struct{} `type:"structure"` - - // The trust relationship policy document that grants an entity permission to - // assume the role. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - AssumeRolePolicyDocument *string `min:"1" type:"string" required:"true"` + // The policy that grants an entity permission to assume the role. + AssumeRolePolicyDocument *string `type:"string" required:"true"` // The path to the role. For more information about paths, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) - // in the IAM User Guide. + // in the Using IAM guide. // // This parameter is optional. If it is not included, it defaults to a slash // (/). - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. - Path *string `min:"1" type:"string"` + Path *string `type:"string"` // The name of the role to create. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataCreateRoleInput `json:"-" xml:"-"` +} + +type metadataCreateRoleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5632,37 +4927,16 @@ func (s CreateRoleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRoleInput"} - if s.AssumeRolePolicyDocument == nil { - invalidParams.Add(request.NewErrParamRequired("AssumeRolePolicyDocument")) - } - if s.AssumeRolePolicyDocument != nil && len(*s.AssumeRolePolicyDocument) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssumeRolePolicyDocument", 1)) - } - if s.Path != nil && len(*s.Path) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Path", 1)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreateRole request. type CreateRoleOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the new role. + // Information about the role. Role *Role `type:"structure" required:"true"` + + metadataCreateRoleOutput `json:"-" xml:"-"` +} + +type metadataCreateRoleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5676,14 +4950,8 @@ func (s CreateRoleOutput) GoString() string { } type CreateSAMLProviderInput struct { - _ struct{} `type:"structure"` - // The name of the provider to create. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - Name *string `min:"1" type:"string" required:"true"` + Name *string `type:"string" required:"true"` // An XML document generated by an identity provider (IdP) that supports SAML // 2.0. The document includes the issuer's name, expiration information, and @@ -5691,9 +4959,16 @@ type CreateSAMLProviderInput struct { // that are received from the IdP. You must generate the metadata document using // the identity management software that is used as your organization's IdP. // - // For more information, see About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) - // in the IAM User Guide - SAMLMetadataDocument *string `min:"1000" type:"string" required:"true"` + // For more information, see Creating Temporary Security Credentials for SAML + // Federation (http://docs.aws.amazon.com/STS/latest/UsingSTS/CreatingSAML.html) + // in the Using Temporary Security Credentials guide. + SAMLMetadataDocument *string `type:"string" required:"true"` + + metadataCreateSAMLProviderInput `json:"-" xml:"-"` +} + +type metadataCreateSAMLProviderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5706,34 +4981,16 @@ func (s CreateSAMLProviderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSAMLProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSAMLProviderInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.SAMLMetadataDocument == nil { - invalidParams.Add(request.NewErrParamRequired("SAMLMetadataDocument")) - } - if s.SAMLMetadataDocument != nil && len(*s.SAMLMetadataDocument) < 1000 { - invalidParams.Add(request.NewErrParamMinLen("SAMLMetadataDocument", 1000)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreateSAMLProvider request. type CreateSAMLProviderOutput struct { - _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the SAML provider. + SAMLProviderArn *string `type:"string"` + + metadataCreateSAMLProviderOutput `json:"-" xml:"-"` +} - // The Amazon Resource Name (ARN) of the new SAML provider resource in IAM. - SAMLProviderArn *string `min:"20" type:"string"` +type metadataCreateSAMLProviderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5747,28 +5004,22 @@ func (s CreateSAMLProviderOutput) GoString() string { } type CreateUserInput struct { - _ struct{} `type:"structure"` - // The path for the user name. For more information about paths, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) - // in the IAM User Guide. + // in the Using IAM guide. // // This parameter is optional. If it is not included, it defaults to a slash // (/). - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. - Path *string `min:"1" type:"string"` + Path *string `type:"string"` // The name of the user to create. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataCreateUserInput `json:"-" xml:"-"` +} + +type metadataCreateUserInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5781,31 +5032,16 @@ func (s CreateUserInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUserInput"} - if s.Path != nil && len(*s.Path) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Path", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreateUser request. type CreateUserOutput struct { - _ struct{} `type:"structure"` - - // A structure with details about the new IAM user. + // Information about the user. User *User `type:"structure"` + + metadataCreateUserOutput `json:"-" xml:"-"` +} + +type metadataCreateUserOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5819,29 +5055,23 @@ func (s CreateUserOutput) GoString() string { } type CreateVirtualMFADeviceInput struct { - _ struct{} `type:"structure"` - // The path for the virtual MFA device. For more information about paths, see // IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) - // in the IAM User Guide. + // in the Using IAM guide. // // This parameter is optional. If it is not included, it defaults to a slash // (/). - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. - Path *string `min:"1" type:"string"` + Path *string `type:"string"` // The name of the virtual MFA device. Use with path to uniquely identify a // virtual MFA device. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - VirtualMFADeviceName *string `min:"1" type:"string" required:"true"` + VirtualMFADeviceName *string `type:"string" required:"true"` + + metadataCreateVirtualMFADeviceInput `json:"-" xml:"-"` +} + +type metadataCreateVirtualMFADeviceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5854,31 +5084,16 @@ func (s CreateVirtualMFADeviceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVirtualMFADeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVirtualMFADeviceInput"} - if s.Path != nil && len(*s.Path) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Path", 1)) - } - if s.VirtualMFADeviceName == nil { - invalidParams.Add(request.NewErrParamRequired("VirtualMFADeviceName")) - } - if s.VirtualMFADeviceName != nil && len(*s.VirtualMFADeviceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VirtualMFADeviceName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful CreateVirtualMFADevice request. type CreateVirtualMFADeviceOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the new virtual MFA device. + // A newly created virtual MFA device. VirtualMFADevice *VirtualMFADevice `type:"structure" required:"true"` + + metadataCreateVirtualMFADeviceOutput `json:"-" xml:"-"` +} + +type metadataCreateVirtualMFADeviceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5892,22 +5107,18 @@ func (s CreateVirtualMFADeviceOutput) GoString() string { } type DeactivateMFADeviceInput struct { - _ struct{} `type:"structure"` - // The serial number that uniquely identifies the MFA device. For virtual MFA // devices, the serial number is the device ARN. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =/:,.@- - SerialNumber *string `min:"9" type:"string" required:"true"` + SerialNumber *string `type:"string" required:"true"` // The name of the user whose MFA device you want to deactivate. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataDeactivateMFADeviceInput `json:"-" xml:"-"` +} + +type metadataDeactivateMFADeviceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5920,30 +5131,12 @@ func (s DeactivateMFADeviceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeactivateMFADeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeactivateMFADeviceInput"} - if s.SerialNumber == nil { - invalidParams.Add(request.NewErrParamRequired("SerialNumber")) - } - if s.SerialNumber != nil && len(*s.SerialNumber) < 9 { - invalidParams.Add(request.NewErrParamMinLen("SerialNumber", 9)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeactivateMFADeviceOutput struct { + metadataDeactivateMFADeviceOutput `json:"-" xml:"-"` } -type DeactivateMFADeviceOutput struct { - _ struct{} `type:"structure"` +type metadataDeactivateMFADeviceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5957,22 +5150,18 @@ func (s DeactivateMFADeviceOutput) GoString() string { } type DeleteAccessKeyInput struct { - _ struct{} `type:"structure"` - // The access key ID for the access key ID and secret access key you want to // delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters that can consist of any upper or lowercased letter - // or digit. - AccessKeyId *string `min:"16" type:"string" required:"true"` + AccessKeyId *string `type:"string" required:"true"` - // The name of the user whose access key pair you want to delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string"` + // The name of the user whose key you want to delete. + UserName *string `type:"string"` + + metadataDeleteAccessKeyInput `json:"-" xml:"-"` +} + +type metadataDeleteAccessKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5985,27 +5174,12 @@ func (s DeleteAccessKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAccessKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAccessKeyInput"} - if s.AccessKeyId == nil { - invalidParams.Add(request.NewErrParamRequired("AccessKeyId")) - } - if s.AccessKeyId != nil && len(*s.AccessKeyId) < 16 { - invalidParams.Add(request.NewErrParamMinLen("AccessKeyId", 16)) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteAccessKeyOutput struct { + metadataDeleteAccessKeyOutput `json:"-" xml:"-"` } -type DeleteAccessKeyOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteAccessKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6019,15 +5193,14 @@ func (s DeleteAccessKeyOutput) GoString() string { } type DeleteAccountAliasInput struct { - _ struct{} `type:"structure"` - // The name of the account alias to delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of lowercase letters, digits, and dashes. - // You cannot start or finish with a dash, nor can you have two dashes in a - // row. - AccountAlias *string `min:"3" type:"string" required:"true"` + AccountAlias *string `type:"string" required:"true"` + + metadataDeleteAccountAliasInput `json:"-" xml:"-"` +} + +type metadataDeleteAccountAliasInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6040,24 +5213,12 @@ func (s DeleteAccountAliasInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAccountAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAccountAliasInput"} - if s.AccountAlias == nil { - invalidParams.Add(request.NewErrParamRequired("AccountAlias")) - } - if s.AccountAlias != nil && len(*s.AccountAlias) < 3 { - invalidParams.Add(request.NewErrParamMinLen("AccountAlias", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteAccountAliasOutput struct { + metadataDeleteAccountAliasOutput `json:"-" xml:"-"` } -type DeleteAccountAliasOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteAccountAliasOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6071,7 +5232,11 @@ func (s DeleteAccountAliasOutput) GoString() string { } type DeleteAccountPasswordPolicyInput struct { - _ struct{} `type:"structure"` + metadataDeleteAccountPasswordPolicyInput `json:"-" xml:"-"` +} + +type metadataDeleteAccountPasswordPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6085,7 +5250,11 @@ func (s DeleteAccountPasswordPolicyInput) GoString() string { } type DeleteAccountPasswordPolicyOutput struct { - _ struct{} `type:"structure"` + metadataDeleteAccountPasswordPolicyOutput `json:"-" xml:"-"` +} + +type metadataDeleteAccountPasswordPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6099,14 +5268,14 @@ func (s DeleteAccountPasswordPolicyOutput) GoString() string { } type DeleteGroupInput struct { - _ struct{} `type:"structure"` + // The name of the group to delete. + GroupName *string `type:"string" required:"true"` - // The name of the IAM group to delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + metadataDeleteGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6119,24 +5288,12 @@ func (s DeleteGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteGroupOutput struct { + metadataDeleteGroupOutput `json:"-" xml:"-"` } -type DeleteGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6150,22 +5307,18 @@ func (s DeleteGroupOutput) GoString() string { } type DeleteGroupPolicyInput struct { - _ struct{} `type:"structure"` - // The name (friendly name, not ARN) identifying the group that the policy is // embedded in. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` // The name identifying the policy document to delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` + + metadataDeleteGroupPolicyInput `json:"-" xml:"-"` +} + +type metadataDeleteGroupPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6178,30 +5331,12 @@ func (s DeleteGroupPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteGroupPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteGroupPolicyInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteGroupPolicyOutput struct { + metadataDeleteGroupPolicyOutput `json:"-" xml:"-"` } -type DeleteGroupPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteGroupPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6215,14 +5350,14 @@ func (s DeleteGroupPolicyOutput) GoString() string { } type DeleteInstanceProfileInput struct { - _ struct{} `type:"structure"` - // The name of the instance profile to delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - InstanceProfileName *string `min:"1" type:"string" required:"true"` + InstanceProfileName *string `type:"string" required:"true"` + + metadataDeleteInstanceProfileInput `json:"-" xml:"-"` +} + +type metadataDeleteInstanceProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6235,24 +5370,12 @@ func (s DeleteInstanceProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteInstanceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteInstanceProfileInput"} - if s.InstanceProfileName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceProfileName")) - } - if s.InstanceProfileName != nil && len(*s.InstanceProfileName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceProfileName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteInstanceProfileOutput struct { + metadataDeleteInstanceProfileOutput `json:"-" xml:"-"` } -type DeleteInstanceProfileOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteInstanceProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6266,14 +5389,14 @@ func (s DeleteInstanceProfileOutput) GoString() string { } type DeleteLoginProfileInput struct { - _ struct{} `type:"structure"` - // The name of the user whose password you want to delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataDeleteLoginProfileInput `json:"-" xml:"-"` +} + +type metadataDeleteLoginProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6286,24 +5409,12 @@ func (s DeleteLoginProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLoginProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLoginProfileInput"} - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteLoginProfileOutput struct { + metadataDeleteLoginProfileOutput `json:"-" xml:"-"` } -type DeleteLoginProfileOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteLoginProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6317,12 +5428,16 @@ func (s DeleteLoginProfileOutput) GoString() string { } type DeleteOpenIDConnectProviderInput struct { - _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the IAM OpenID Connect provider to delete. + // You can get a list of OpenID Connect provider ARNs by using the ListOpenIDConnectProviders + // action. + OpenIDConnectProviderArn *string `type:"string" required:"true"` + + metadataDeleteOpenIDConnectProviderInput `json:"-" xml:"-"` +} - // The Amazon Resource Name (ARN) of the IAM OpenID Connect provider resource - // object to delete. You can get a list of OpenID Connect provider resource - // ARNs by using the ListOpenIDConnectProviders action. - OpenIDConnectProviderArn *string `min:"20" type:"string" required:"true"` +type metadataDeleteOpenIDConnectProviderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6335,24 +5450,12 @@ func (s DeleteOpenIDConnectProviderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteOpenIDConnectProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteOpenIDConnectProviderInput"} - if s.OpenIDConnectProviderArn == nil { - invalidParams.Add(request.NewErrParamRequired("OpenIDConnectProviderArn")) - } - if s.OpenIDConnectProviderArn != nil && len(*s.OpenIDConnectProviderArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("OpenIDConnectProviderArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteOpenIDConnectProviderOutput struct { + metadataDeleteOpenIDConnectProviderOutput `json:"-" xml:"-"` } -type DeleteOpenIDConnectProviderOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteOpenIDConnectProviderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6366,14 +5469,18 @@ func (s DeleteOpenIDConnectProviderOutput) GoString() string { } type DeletePolicyInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the IAM policy you want to delete. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` + + metadataDeletePolicyInput `json:"-" xml:"-"` +} + +type metadataDeletePolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6386,24 +5493,12 @@ func (s DeletePolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePolicyInput"} - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeletePolicyOutput struct { + metadataDeletePolicyOutput `json:"-" xml:"-"` } -type DeletePolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDeletePolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6417,27 +5512,25 @@ func (s DeletePolicyOutput) GoString() string { } type DeletePolicyVersionInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the IAM policy from which you want to delete - // a version. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` // The policy version to delete. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters that consists of the lowercase letter 'v' followed - // by one or two digits, and optionally followed by a period '.' and a string - // of letters and digits. - // // For more information about managed policy versions, see Versioning for Managed // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) - // in the IAM User Guide. + // in the Using IAM guide. VersionId *string `type:"string" required:"true"` + + metadataDeletePolicyVersionInput `json:"-" xml:"-"` +} + +type metadataDeletePolicyVersionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6450,27 +5543,12 @@ func (s DeletePolicyVersionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePolicyVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePolicyVersionInput"} - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - if s.VersionId == nil { - invalidParams.Add(request.NewErrParamRequired("VersionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeletePolicyVersionOutput struct { + metadataDeletePolicyVersionOutput `json:"-" xml:"-"` } -type DeletePolicyVersionOutput struct { - _ struct{} `type:"structure"` +type metadataDeletePolicyVersionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6484,14 +5562,14 @@ func (s DeletePolicyVersionOutput) GoString() string { } type DeleteRoleInput struct { - _ struct{} `type:"structure"` - // The name of the role to delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataDeleteRoleInput `json:"-" xml:"-"` +} + +type metadataDeleteRoleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6504,24 +5582,12 @@ func (s DeleteRoleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRoleInput"} - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteRoleOutput struct { + metadataDeleteRoleOutput `json:"-" xml:"-"` } -type DeleteRoleOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteRoleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6535,22 +5601,18 @@ func (s DeleteRoleOutput) GoString() string { } type DeleteRolePolicyInput struct { - _ struct{} `type:"structure"` - - // The name of the inline policy to delete from the specified IAM role. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - PolicyName *string `min:"1" type:"string" required:"true"` + // The name identifying the policy document to delete. + PolicyName *string `type:"string" required:"true"` // The name (friendly name, not ARN) identifying the role that the policy is // embedded in. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataDeleteRolePolicyInput `json:"-" xml:"-"` +} + +type metadataDeleteRolePolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6563,30 +5625,12 @@ func (s DeleteRolePolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRolePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRolePolicyInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteRolePolicyOutput struct { + metadataDeleteRolePolicyOutput `json:"-" xml:"-"` } -type DeleteRolePolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteRolePolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6600,10 +5644,14 @@ func (s DeleteRolePolicyOutput) GoString() string { } type DeleteSAMLProviderInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the SAML provider to delete. - SAMLProviderArn *string `min:"20" type:"string" required:"true"` + SAMLProviderArn *string `type:"string" required:"true"` + + metadataDeleteSAMLProviderInput `json:"-" xml:"-"` +} + +type metadataDeleteSAMLProviderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6616,24 +5664,12 @@ func (s DeleteSAMLProviderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSAMLProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSAMLProviderInput"} - if s.SAMLProviderArn == nil { - invalidParams.Add(request.NewErrParamRequired("SAMLProviderArn")) - } - if s.SAMLProviderArn != nil && len(*s.SAMLProviderArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("SAMLProviderArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteSAMLProviderOutput struct { + metadataDeleteSAMLProviderOutput `json:"-" xml:"-"` } -type DeleteSAMLProviderOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteSAMLProviderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6647,21 +5683,17 @@ func (s DeleteSAMLProviderOutput) GoString() string { } type DeleteSSHPublicKeyInput struct { - _ struct{} `type:"structure"` - // The unique identifier for the SSH public key. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters that can consist of any upper or lowercased letter - // or digit. - SSHPublicKeyId *string `min:"20" type:"string" required:"true"` + SSHPublicKeyId *string `type:"string" required:"true"` // The name of the IAM user associated with the SSH public key. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataDeleteSSHPublicKeyInput `json:"-" xml:"-"` +} + +type metadataDeleteSSHPublicKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6674,30 +5706,12 @@ func (s DeleteSSHPublicKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSSHPublicKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSSHPublicKeyInput"} - if s.SSHPublicKeyId == nil { - invalidParams.Add(request.NewErrParamRequired("SSHPublicKeyId")) - } - if s.SSHPublicKeyId != nil && len(*s.SSHPublicKeyId) < 20 { - invalidParams.Add(request.NewErrParamMinLen("SSHPublicKeyId", 20)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteSSHPublicKeyOutput struct { + metadataDeleteSSHPublicKeyOutput `json:"-" xml:"-"` } -type DeleteSSHPublicKeyOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteSSHPublicKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6711,14 +5725,14 @@ func (s DeleteSSHPublicKeyOutput) GoString() string { } type DeleteServerCertificateInput struct { - _ struct{} `type:"structure"` - // The name of the server certificate you want to delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - ServerCertificateName *string `min:"1" type:"string" required:"true"` + ServerCertificateName *string `type:"string" required:"true"` + + metadataDeleteServerCertificateInput `json:"-" xml:"-"` +} + +type metadataDeleteServerCertificateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6731,24 +5745,12 @@ func (s DeleteServerCertificateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteServerCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteServerCertificateInput"} - if s.ServerCertificateName == nil { - invalidParams.Add(request.NewErrParamRequired("ServerCertificateName")) - } - if s.ServerCertificateName != nil && len(*s.ServerCertificateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServerCertificateName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteServerCertificateOutput struct { + metadataDeleteServerCertificateOutput `json:"-" xml:"-"` } -type DeleteServerCertificateOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteServerCertificateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6762,21 +5764,17 @@ func (s DeleteServerCertificateOutput) GoString() string { } type DeleteSigningCertificateInput struct { - _ struct{} `type:"structure"` - // The ID of the signing certificate to delete. - // - // The format of this parameter, as described by its regex (http://wikipedia.org/wiki/regex) - // pattern, is a string of characters that can be upper- or lower-cased letters - // or digits. - CertificateId *string `min:"24" type:"string" required:"true"` + CertificateId *string `type:"string" required:"true"` // The name of the user the signing certificate belongs to. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` + + metadataDeleteSigningCertificateInput `json:"-" xml:"-"` +} + +type metadataDeleteSigningCertificateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6789,27 +5787,12 @@ func (s DeleteSigningCertificateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSigningCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSigningCertificateInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 24 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 24)) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteSigningCertificateOutput struct { + metadataDeleteSigningCertificateOutput `json:"-" xml:"-"` } -type DeleteSigningCertificateOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteSigningCertificateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6823,14 +5806,14 @@ func (s DeleteSigningCertificateOutput) GoString() string { } type DeleteUserInput struct { - _ struct{} `type:"structure"` - // The name of the user to delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataDeleteUserInput `json:"-" xml:"-"` +} + +type metadataDeleteUserInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6843,24 +5826,12 @@ func (s DeleteUserInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteUserOutput struct { + metadataDeleteUserOutput `json:"-" xml:"-"` } -type DeleteUserOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteUserOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6874,22 +5845,18 @@ func (s DeleteUserOutput) GoString() string { } type DeleteUserPolicyInput struct { - _ struct{} `type:"structure"` - // The name identifying the policy document to delete. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` // The name (friendly name, not ARN) identifying the user that the policy is // embedded in. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataDeleteUserPolicyInput `json:"-" xml:"-"` +} + +type metadataDeleteUserPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6902,30 +5869,12 @@ func (s DeleteUserPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserPolicyInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteUserPolicyOutput struct { + metadataDeleteUserPolicyOutput `json:"-" xml:"-"` } -type DeleteUserPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteUserPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6939,15 +5888,15 @@ func (s DeleteUserPolicyOutput) GoString() string { } type DeleteVirtualMFADeviceInput struct { - _ struct{} `type:"structure"` - // The serial number that uniquely identifies the MFA device. For virtual MFA // devices, the serial number is the same as the ARN. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =/:,.@- - SerialNumber *string `min:"9" type:"string" required:"true"` + SerialNumber *string `type:"string" required:"true"` + + metadataDeleteVirtualMFADeviceInput `json:"-" xml:"-"` +} + +type metadataDeleteVirtualMFADeviceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6960,24 +5909,12 @@ func (s DeleteVirtualMFADeviceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVirtualMFADeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVirtualMFADeviceInput"} - if s.SerialNumber == nil { - invalidParams.Add(request.NewErrParamRequired("SerialNumber")) - } - if s.SerialNumber != nil && len(*s.SerialNumber) < 9 { - invalidParams.Add(request.NewErrParamMinLen("SerialNumber", 9)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteVirtualMFADeviceOutput struct { + metadataDeleteVirtualMFADeviceOutput `json:"-" xml:"-"` } -type DeleteVirtualMFADeviceOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteVirtualMFADeviceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6991,21 +5928,21 @@ func (s DeleteVirtualMFADeviceOutput) GoString() string { } type DetachGroupPolicyInput struct { - _ struct{} `type:"structure"` - - // The name (friendly name, not ARN) of the IAM group to detach the policy from. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + // The name (friendly name, not ARN) of the group to detach the policy from. + GroupName *string `type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the IAM policy you want to detach. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` + + metadataDetachGroupPolicyInput `json:"-" xml:"-"` +} + +type metadataDetachGroupPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7018,30 +5955,12 @@ func (s DetachGroupPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachGroupPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachGroupPolicyInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DetachGroupPolicyOutput struct { + metadataDetachGroupPolicyOutput `json:"-" xml:"-"` } -type DetachGroupPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDetachGroupPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7055,21 +5974,21 @@ func (s DetachGroupPolicyOutput) GoString() string { } type DetachRolePolicyInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the IAM policy you want to detach. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` - // The name (friendly name, not ARN) of the IAM role to detach the policy from. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + // The name (friendly name, not ARN) of the role to detach the policy from. + RoleName *string `type:"string" required:"true"` + + metadataDetachRolePolicyInput `json:"-" xml:"-"` +} + +type metadataDetachRolePolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7082,30 +6001,12 @@ func (s DetachRolePolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachRolePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachRolePolicyInput"} - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DetachRolePolicyOutput struct { + metadataDetachRolePolicyOutput `json:"-" xml:"-"` } -type DetachRolePolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDetachRolePolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7119,21 +6020,21 @@ func (s DetachRolePolicyOutput) GoString() string { } type DetachUserPolicyInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the IAM policy you want to detach. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` - // The name (friendly name, not ARN) of the IAM user to detach the policy from. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + // The name (friendly name, not ARN) of the user to detach the policy from. + UserName *string `type:"string" required:"true"` + + metadataDetachUserPolicyInput `json:"-" xml:"-"` +} + +type metadataDetachUserPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7146,30 +6047,12 @@ func (s DetachUserPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachUserPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachUserPolicyInput"} - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DetachUserPolicyOutput struct { + metadataDetachUserPolicyOutput `json:"-" xml:"-"` } -type DetachUserPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDetachUserPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7183,32 +6066,24 @@ func (s DetachUserPolicyOutput) GoString() string { } type EnableMFADeviceInput struct { - _ struct{} `type:"structure"` - // An authentication code emitted by the device. - // - // The format for this parameter is a string of 6 digits. - AuthenticationCode1 *string `min:"6" type:"string" required:"true"` + AuthenticationCode1 *string `type:"string" required:"true"` // A subsequent authentication code emitted by the device. - // - // The format for this parameter is a string of 6 digits. - AuthenticationCode2 *string `min:"6" type:"string" required:"true"` + AuthenticationCode2 *string `type:"string" required:"true"` // The serial number that uniquely identifies the MFA device. For virtual MFA // devices, the serial number is the device ARN. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =/:,.@- - SerialNumber *string `min:"9" type:"string" required:"true"` + SerialNumber *string `type:"string" required:"true"` - // The name of the IAM user for whom you want to enable the MFA device. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + // The name of the user for whom you want to enable the MFA device. + UserName *string `type:"string" required:"true"` + + metadataEnableMFADeviceInput `json:"-" xml:"-"` +} + +type metadataEnableMFADeviceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7221,42 +6096,12 @@ func (s EnableMFADeviceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableMFADeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableMFADeviceInput"} - if s.AuthenticationCode1 == nil { - invalidParams.Add(request.NewErrParamRequired("AuthenticationCode1")) - } - if s.AuthenticationCode1 != nil && len(*s.AuthenticationCode1) < 6 { - invalidParams.Add(request.NewErrParamMinLen("AuthenticationCode1", 6)) - } - if s.AuthenticationCode2 == nil { - invalidParams.Add(request.NewErrParamRequired("AuthenticationCode2")) - } - if s.AuthenticationCode2 != nil && len(*s.AuthenticationCode2) < 6 { - invalidParams.Add(request.NewErrParamMinLen("AuthenticationCode2", 6)) - } - if s.SerialNumber == nil { - invalidParams.Add(request.NewErrParamRequired("SerialNumber")) - } - if s.SerialNumber != nil && len(*s.SerialNumber) < 9 { - invalidParams.Add(request.NewErrParamMinLen("SerialNumber", 9)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type EnableMFADeviceOutput struct { + metadataEnableMFADeviceOutput `json:"-" xml:"-"` } -type EnableMFADeviceOutput struct { - _ struct{} `type:"structure"` +type metadataEnableMFADeviceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7269,63 +6114,12 @@ func (s EnableMFADeviceOutput) GoString() string { return s.String() } -// Contains the results of a simulation. -// -// This data type is used by the return parameter of SimulateCustomPolicy -// and SimulatePrincipalPolicy . -type EvaluationResult struct { - _ struct{} `type:"structure"` - - // The name of the API action tested on the indicated resource. - EvalActionName *string `min:"3" type:"string" required:"true"` - - // The result of the simulation. - EvalDecision *string `type:"string" required:"true" enum:"PolicyEvaluationDecisionType"` - - // Additional details about the results of the evaluation decision. When there - // are both IAM policies and resource policies, this parameter explains how - // each set of policies contributes to the final evaluation decision. When simulating - // cross-account access to a resource, both the resource-based policy and the - // caller's IAM policy must grant access. See How IAM Roles Differ from Resource-based - // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_compare-resource-policies.html) - EvalDecisionDetails map[string]*string `type:"map"` - - // The ARN of the resource that the indicated API action was tested on. - EvalResourceName *string `min:"1" type:"string"` - - // A list of the statements in the input policies that determine the result - // for this scenario. Remember that even if multiple statements allow the action - // on the resource, if only one statement denies that action, then the explicit - // deny overrides any allow, and the deny statement is the only entry included - // in the result. - MatchedStatements []*Statement `type:"list"` - - // A list of context keys that are required by the included input policies but - // that were not provided by one of the input parameters. This list is used - // when the resource in a simulation is "*", either explicitly, or when the - // ResourceArns parameter blank. If you include a list of resources, then any - // missing context values are instead included under the ResourceSpecificResults - // section. To discover the context keys used by a set of policies, you can - // call GetContextKeysForCustomPolicy or GetContextKeysForPrincipalPolicy. - MissingContextValues []*string `type:"list"` - - // The individual results of the simulation of the API action specified in EvalActionName - // on each resource. - ResourceSpecificResults []*ResourceSpecificResult `type:"list"` -} - -// String returns the string representation -func (s EvaluationResult) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EvaluationResult) GoString() string { - return s.String() +type GenerateCredentialReportInput struct { + metadataGenerateCredentialReportInput `json:"-" xml:"-"` } -type GenerateCredentialReportInput struct { - _ struct{} `type:"structure"` +type metadataGenerateCredentialReportInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7340,13 +6134,17 @@ func (s GenerateCredentialReportInput) GoString() string { // Contains the response to a successful GenerateCredentialReport request. type GenerateCredentialReportOutput struct { - _ struct{} `type:"structure"` - // Information about the credential report. Description *string `type:"string"` // Information about the state of the credential report. State *string `type:"string" enum:"ReportStateType"` + + metadataGenerateCredentialReportOutput `json:"-" xml:"-"` +} + +type metadataGenerateCredentialReportOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7360,14 +6158,14 @@ func (s GenerateCredentialReportOutput) GoString() string { } type GetAccessKeyLastUsedInput struct { - _ struct{} `type:"structure"` - // The identifier of an access key. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters that can consist of any upper or lowercased letter - // or digit. - AccessKeyId *string `min:"16" type:"string" required:"true"` + AccessKeyId *string `type:"string" required:"true"` + + metadataGetAccessKeyLastUsedInput `json:"-" xml:"-"` +} + +type metadataGetAccessKeyLastUsedInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7380,33 +6178,21 @@ func (s GetAccessKeyLastUsedInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetAccessKeyLastUsedInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAccessKeyLastUsedInput"} - if s.AccessKeyId == nil { - invalidParams.Add(request.NewErrParamRequired("AccessKeyId")) - } - if s.AccessKeyId != nil && len(*s.AccessKeyId) < 16 { - invalidParams.Add(request.NewErrParamMinLen("AccessKeyId", 16)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetAccessKeyLastUsed request. It is // also returned as a member of the AccessKeyMetaData structure returned by // the ListAccessKeys action. type GetAccessKeyLastUsedOutput struct { - _ struct{} `type:"structure"` - // Contains information about the last time the access key was used. AccessKeyLastUsed *AccessKeyLastUsed `type:"structure"` // The name of the AWS IAM user that owns this access key. - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` + + metadataGetAccessKeyLastUsedOutput `json:"-" xml:"-"` +} + +type metadataGetAccessKeyLastUsedOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7420,32 +6206,27 @@ func (s GetAccessKeyLastUsedOutput) GoString() string { } type GetAccountAuthorizationDetailsInput struct { - _ struct{} `type:"structure"` - // A list of entity types (user, group, role, local managed policy, or AWS managed // policy) for filtering the results. - // - // The format for this parameter is a comma-separated (if more than one) list - // of strings. Each string value in the list must be one of the valid values - // listed below. Filter []*string `type:"list"` - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` + + metadataGetAccountAuthorizationDetailsInput `json:"-" xml:"-"` +} + +type metadataGetAccountAuthorizationDetailsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7458,40 +6239,19 @@ func (s GetAccountAuthorizationDetailsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetAccountAuthorizationDetailsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAccountAuthorizationDetailsInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetAccountAuthorizationDetails request. type GetAccountAuthorizationDetailsOutput struct { - _ struct{} `type:"structure"` - // A list containing information about IAM groups. GroupDetailList []*GroupDetail `type:"list"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // A list containing information about managed policies. Policies []*ManagedPolicyDetail `type:"list"` @@ -7501,6 +6261,12 @@ type GetAccountAuthorizationDetailsOutput struct { // A list containing information about IAM users. UserDetailList []*UserDetail `type:"list"` + + metadataGetAccountAuthorizationDetailsOutput `json:"-" xml:"-"` +} + +type metadataGetAccountAuthorizationDetailsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7514,7 +6280,11 @@ func (s GetAccountAuthorizationDetailsOutput) GoString() string { } type GetAccountPasswordPolicyInput struct { - _ struct{} `type:"structure"` + metadataGetAccountPasswordPolicyInput `json:"-" xml:"-"` +} + +type metadataGetAccountPasswordPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7529,13 +6299,17 @@ func (s GetAccountPasswordPolicyInput) GoString() string { // Contains the response to a successful GetAccountPasswordPolicy request. type GetAccountPasswordPolicyOutput struct { - _ struct{} `type:"structure"` - // Contains information about the account password policy. // // This data type is used as a response element in the GetAccountPasswordPolicy // action. PasswordPolicy *PasswordPolicy `type:"structure" required:"true"` + + metadataGetAccountPasswordPolicyOutput `json:"-" xml:"-"` +} + +type metadataGetAccountPasswordPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7549,7 +6323,11 @@ func (s GetAccountPasswordPolicyOutput) GoString() string { } type GetAccountSummaryInput struct { - _ struct{} `type:"structure"` + metadataGetAccountSummaryInput `json:"-" xml:"-"` +} + +type metadataGetAccountSummaryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7564,135 +6342,174 @@ func (s GetAccountSummaryInput) GoString() string { // Contains the response to a successful GetAccountSummary request. type GetAccountSummaryOutput struct { - _ struct{} `type:"structure"` - // A set of key value pairs containing information about IAM entity usage and // IAM quotas. - SummaryMap map[string]*int64 `type:"map"` -} - -// String returns the string representation -func (s GetAccountSummaryOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetAccountSummaryOutput) GoString() string { - return s.String() -} - -type GetContextKeysForCustomPolicyInput struct { - _ struct{} `type:"structure"` - - // A list of policies for which you want the list of context keys referenced - // in those policies. Each document is specified as a string containing the - // complete, valid JSON text of an IAM policy. // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PolicyInputList []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s GetContextKeysForCustomPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetContextKeysForCustomPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetContextKeysForCustomPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetContextKeysForCustomPolicyInput"} - if s.PolicyInputList == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyInputList")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the response to a successful GetContextKeysForPrincipalPolicy or -// GetContextKeysForCustomPolicy request. -type GetContextKeysForPolicyResponse struct { - _ struct{} `type:"structure"` - - // The list of context keys that are referenced in the input policies. - ContextKeyNames []*string `type:"list"` -} - -// String returns the string representation -func (s GetContextKeysForPolicyResponse) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetContextKeysForPolicyResponse) GoString() string { - return s.String() -} - -type GetContextKeysForPrincipalPolicyInput struct { - _ struct{} `type:"structure"` - - // An optional list of additional policies for which you want the list of context - // keys that are referenced. + // SummaryMap contains the following keys: AccessKeysPerUserQuota // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PolicyInputList []*string `type:"list"` - - // The ARN of a user, group, or role whose policies contain the context keys - // that you want listed. If you specify a user, the list includes context keys - // that are found in all policies attached to the user as well as to all groups - // that the user is a member of. If you pick a group or a role, then it includes - // only those context keys that are found in policies attached to that entity. - // Note that all parameters are shown in unencoded form here for clarity, but - // must be URL encoded to be included as a part of a real HTML request. + // The maximum number of active access keys allowed for each IAM user. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // in the AWS General Reference. - PolicySourceArn *string `min:"20" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetContextKeysForPrincipalPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetContextKeysForPrincipalPolicyInput) GoString() string { - return s.String() + // AccountAccessKeysPresent + // + // This value is 1 if the AWS account (root) has an access key, otherwise it + // is 0. + // + // AccountMFAEnabled + // + // This value is 1 if the AWS account (root) has an MFA device assigned, otherwise + // it is 0. + // + // AccountSigningCertificatesPresent + // + // This value is 1 if the AWS account (root) has a signing certificate, otherwise + // it is 0. + // + // AssumeRolePolicySizeQuota + // + // The maximum allowed size for assume role policy documents (trust policies), + // in non-whitespace characters. + // + // AttachedPoliciesPerGroupQuota + // + // The maximum number of managed policies that can be attached to an IAM group. + // + // AttachedPoliciesPerRoleQuota + // + // The maximum number of managed policies that can be attached to an IAM role. + // + // AttachedPoliciesPerUserQuota + // + // The maximum number of managed policies that can be attached to an IAM user. + // + // GroupPolicySizeQuota + // + // The maximum allowed size for the aggregate of all inline policies embedded + // in an IAM group, in non-whitespace characters. + // + // Groups + // + // The number of IAM groups in the AWS account. + // + // GroupsPerUserQuota + // + // The maximum number of IAM groups each IAM user can belong to. + // + // GroupsQuota + // + // The maximum number of IAM groups allowed in the AWS account. + // + // InstanceProfiles + // + // The number of instance profiles in the AWS account. + // + // InstanceProfilesQuota + // + // The maximum number of instance profiles allowed in the AWS account. + // + // MFADevices + // + // The number of MFA devices in the AWS account, including those assigned and + // unassigned. + // + // MFADevicesInUse + // + // The number of MFA devices that have been assigned to an IAM user or to the + // AWS account (root). + // + // Policies + // + // The number of customer managed policies in the AWS account. + // + // PoliciesQuota + // + // The maximum number of customer managed policies allowed in the AWS account. + // + // PolicySizeQuota + // + // The maximum allowed size of a customer managed policy, in non-whitespace + // characters. + // + // PolicyVersionsInUse + // + // The number of managed policies that are attached to IAM users, groups, or + // roles in the AWS account. + // + // PolicyVersionsInUseQuota + // + // The maximum number of managed policies that can be attached to IAM users, + // groups, or roles in the AWS account. + // + // Providers + // + // The number of identity providers in the AWS account. + // + // RolePolicySizeQuota + // + // The maximum allowed size for the aggregate of all inline policies (access + // policies, not the trust policy) embedded in an IAM role, in non-whitespace + // characters. + // + // Roles + // + // The number of IAM roles in the AWS account. + // + // RolesQuota + // + // The maximum number of IAM roles allowed in the AWS account. + // + // ServerCertificates + // + // The number of server certificates in the AWS account. + // + // ServerCertificatesQuota + // + // The maximum number of server certificates allowed in the AWS account. + // + // SigningCertificatesPerUserQuota + // + // The maximum number of X.509 signing certificates allowed for each IAM user. + // + // UserPolicySizeQuota + // + // The maximum allowed size for the aggregate of all inline policies embedded + // in an IAM user, in non-whitespace characters. + // + // Users + // + // The number of IAM users in the AWS account. + // + // UsersQuota + // + // The maximum number of IAM users allowed in the AWS account. + // + // VersionsPerPolicyQuota + // + // The maximum number of policy versions allowed for each managed policy. + SummaryMap map[string]*int64 `type:"map"` + + metadataGetAccountSummaryOutput `json:"-" xml:"-"` } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetContextKeysForPrincipalPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetContextKeysForPrincipalPolicyInput"} - if s.PolicySourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicySourceArn")) - } - if s.PolicySourceArn != nil && len(*s.PolicySourceArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicySourceArn", 20)) - } +type metadataGetAccountSummaryOutput struct { + SDKShapeTraits bool `type:"structure"` +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// String returns the string representation +func (s GetAccountSummaryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAccountSummaryOutput) GoString() string { + return s.String() } type GetCredentialReportInput struct { - _ struct{} `type:"structure"` + metadataGetCredentialReportInput `json:"-" xml:"-"` +} + +type metadataGetCredentialReportInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7707,11 +6524,7 @@ func (s GetCredentialReportInput) GoString() string { // Contains the response to a successful GetCredentialReport request. type GetCredentialReportOutput struct { - _ struct{} `type:"structure"` - // Contains the credential report. The report is Base64-encoded. - // - // Content is automatically base64 encoded/decoded by the SDK. Content []byte `type:"blob"` // The date and time when the credential report was created, in ISO 8601 date-time @@ -7720,6 +6533,12 @@ type GetCredentialReportOutput struct { // The format (MIME type) of the credential report. ReportFormat *string `type:"string" enum:"ReportFormatType"` + + metadataGetCredentialReportOutput `json:"-" xml:"-"` +} + +type metadataGetCredentialReportOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7733,31 +6552,26 @@ func (s GetCredentialReportOutput) GoString() string { } type GetGroupInput struct { - _ struct{} `type:"structure"` - // The name of the group. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` + + metadataGetGroupInput `json:"-" xml:"-"` +} + +type metadataGetGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7770,49 +6584,28 @@ func (s GetGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetGroup request. type GetGroupOutput struct { - _ struct{} `type:"structure"` - - // A structure that contains details about the group. + // Information about the group. Group *Group `type:"structure" required:"true"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // A list of users in the group. Users []*User `type:"list" required:"true"` + + metadataGetGroupOutput `json:"-" xml:"-"` +} + +type metadataGetGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7826,21 +6619,17 @@ func (s GetGroupOutput) GoString() string { } type GetGroupPolicyInput struct { - _ struct{} `type:"structure"` - // The name of the group the policy is associated with. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` // The name of the policy document to get. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` + + metadataGetGroupPolicyInput `json:"-" xml:"-"` +} + +type metadataGetGroupPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7853,40 +6642,22 @@ func (s GetGroupPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetGroupPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetGroupPolicyInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetGroupPolicy request. type GetGroupPolicyOutput struct { - _ struct{} `type:"structure"` - // The group the policy is associated with. - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` // The policy document. - PolicyDocument *string `min:"1" type:"string" required:"true"` + PolicyDocument *string `type:"string" required:"true"` // The name of the policy. - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` + + metadataGetGroupPolicyOutput `json:"-" xml:"-"` +} + +type metadataGetGroupPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7900,14 +6671,14 @@ func (s GetGroupPolicyOutput) GoString() string { } type GetInstanceProfileInput struct { - _ struct{} `type:"structure"` - // The name of the instance profile to get information about. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - InstanceProfileName *string `min:"1" type:"string" required:"true"` + InstanceProfileName *string `type:"string" required:"true"` + + metadataGetInstanceProfileInput `json:"-" xml:"-"` +} + +type metadataGetInstanceProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7920,28 +6691,16 @@ func (s GetInstanceProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetInstanceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetInstanceProfileInput"} - if s.InstanceProfileName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceProfileName")) - } - if s.InstanceProfileName != nil && len(*s.InstanceProfileName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceProfileName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetInstanceProfile request. type GetInstanceProfileOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the instance profile. + // Information about the instance profile. InstanceProfile *InstanceProfile `type:"structure" required:"true"` + + metadataGetInstanceProfileOutput `json:"-" xml:"-"` +} + +type metadataGetInstanceProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7955,14 +6714,14 @@ func (s GetInstanceProfileOutput) GoString() string { } type GetLoginProfileInput struct { - _ struct{} `type:"structure"` - // The name of the user whose login profile you want to retrieve. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataGetLoginProfileInput `json:"-" xml:"-"` +} + +type metadataGetLoginProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7975,28 +6734,16 @@ func (s GetLoginProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetLoginProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetLoginProfileInput"} - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetLoginProfile request. type GetLoginProfileOutput struct { - _ struct{} `type:"structure"` - - // A structure containing the user name and password create date for the user. + // The user name and password create date for the user. LoginProfile *LoginProfile `type:"structure" required:"true"` + + metadataGetLoginProfileOutput `json:"-" xml:"-"` +} + +type metadataGetLoginProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8010,16 +6757,16 @@ func (s GetLoginProfileOutput) GoString() string { } type GetOpenIDConnectProviderInput struct { - _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider + // to get information for. You can get a list of OIDC provider ARNs by using + // the ListOpenIDConnectProviders action. + OpenIDConnectProviderArn *string `type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the OIDC provider resource object in IAM - // to get information for. You can get a list of OIDC provider resource ARNs - // by using the ListOpenIDConnectProviders action. - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // in the AWS General Reference. - OpenIDConnectProviderArn *string `min:"20" type:"string" required:"true"` + metadataGetOpenIDConnectProviderInput `json:"-" xml:"-"` +} + +type metadataGetOpenIDConnectProviderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8032,41 +6779,29 @@ func (s GetOpenIDConnectProviderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetOpenIDConnectProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetOpenIDConnectProviderInput"} - if s.OpenIDConnectProviderArn == nil { - invalidParams.Add(request.NewErrParamRequired("OpenIDConnectProviderArn")) - } - if s.OpenIDConnectProviderArn != nil && len(*s.OpenIDConnectProviderArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("OpenIDConnectProviderArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetOpenIDConnectProvider request. type GetOpenIDConnectProviderOutput struct { - _ struct{} `type:"structure"` - // A list of client IDs (also known as audiences) that are associated with the - // specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider. + // specified IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider. ClientIDList []*string `type:"list"` - // The date and time when the IAM OIDC provider resource object was created + // The date and time when the IAM OpenID Connect provider entity was created // in the AWS account. CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` // A list of certificate thumbprints that are associated with the specified - // IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider. + // IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider. ThumbprintList []*string `type:"list"` - // The URL that the IAM OIDC provider resource object is associated with. For - // more information, see CreateOpenIDConnectProvider. - Url *string `min:"1" type:"string"` + // The URL that the IAM OpenID Connect provider is associated with. For more + // information, see CreateOpenIDConnectProvider. + Url *string `type:"string"` + + metadataGetOpenIDConnectProviderOutput `json:"-" xml:"-"` +} + +type metadataGetOpenIDConnectProviderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8080,15 +6815,18 @@ func (s GetOpenIDConnectProviderOutput) GoString() string { } type GetPolicyInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the managed policy that you want information - // about. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` + + metadataGetPolicyInput `json:"-" xml:"-"` +} + +type metadataGetPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8101,28 +6839,16 @@ func (s GetPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPolicyInput"} - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetPolicy request. type GetPolicyOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the policy. + // Information about the policy. Policy *Policy `type:"structure"` + + metadataGetPolicyOutput `json:"-" xml:"-"` +} + +type metadataGetPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8136,23 +6862,21 @@ func (s GetPolicyOutput) GoString() string { } type GetPolicyVersionInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the managed policy that you want information - // about. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` // Identifies the policy version to retrieve. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters that consists of the lowercase letter 'v' followed - // by one or two digits, and optionally followed by a period '.' and a string - // of letters and digits. VersionId *string `type:"string" required:"true"` + + metadataGetPolicyVersionInput `json:"-" xml:"-"` +} + +type metadataGetPolicyVersionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8165,31 +6889,20 @@ func (s GetPolicyVersionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPolicyVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPolicyVersionInput"} - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - if s.VersionId == nil { - invalidParams.Add(request.NewErrParamRequired("VersionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetPolicyVersion request. type GetPolicyVersionOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the policy version. + // Information about the policy version. + // + // For more information about managed policy versions, see Versioning for Managed + // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) + // in the Using IAM guide. PolicyVersion *PolicyVersion `type:"structure"` + + metadataGetPolicyVersionOutput `json:"-" xml:"-"` +} + +type metadataGetPolicyVersionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8203,14 +6916,14 @@ func (s GetPolicyVersionOutput) GoString() string { } type GetRoleInput struct { - _ struct{} `type:"structure"` + // The name of the role to get information about. + RoleName *string `type:"string" required:"true"` - // The name of the IAM role to get information about. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + metadataGetRoleInput `json:"-" xml:"-"` +} + +type metadataGetRoleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8223,28 +6936,16 @@ func (s GetRoleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRoleInput"} - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetRole request. type GetRoleOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the IAM role. + // Information about the role. Role *Role `type:"structure" required:"true"` + + metadataGetRoleOutput `json:"-" xml:"-"` +} + +type metadataGetRoleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8258,21 +6959,17 @@ func (s GetRoleOutput) GoString() string { } type GetRolePolicyInput struct { - _ struct{} `type:"structure"` - // The name of the policy document to get. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` // The name of the role associated with the policy. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataGetRolePolicyInput `json:"-" xml:"-"` +} + +type metadataGetRolePolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8285,40 +6982,22 @@ func (s GetRolePolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRolePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRolePolicyInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetRolePolicy request. type GetRolePolicyOutput struct { - _ struct{} `type:"structure"` - // The policy document. - PolicyDocument *string `min:"1" type:"string" required:"true"` + PolicyDocument *string `type:"string" required:"true"` // The name of the policy. - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` // The role the policy is associated with. - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataGetRolePolicyOutput `json:"-" xml:"-"` +} + +type metadataGetRolePolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8332,15 +7011,14 @@ func (s GetRolePolicyOutput) GoString() string { } type GetSAMLProviderInput struct { - _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the SAML provider to get information about. + SAMLProviderArn *string `type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the SAML provider resource object in IAM - // to get information about. - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // in the AWS General Reference. - SAMLProviderArn *string `min:"20" type:"string" required:"true"` + metadataGetSAMLProviderInput `json:"-" xml:"-"` +} + +type metadataGetSAMLProviderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8353,34 +7031,22 @@ func (s GetSAMLProviderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSAMLProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSAMLProviderInput"} - if s.SAMLProviderArn == nil { - invalidParams.Add(request.NewErrParamRequired("SAMLProviderArn")) - } - if s.SAMLProviderArn != nil && len(*s.SAMLProviderArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("SAMLProviderArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetSAMLProvider request. type GetSAMLProviderOutput struct { - _ struct{} `type:"structure"` - // The date and time when the SAML provider was created. CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The XML metadata document that includes information about an identity provider. - SAMLMetadataDocument *string `min:"1000" type:"string"` + SAMLMetadataDocument *string `type:"string"` // The expiration date and time for the SAML provider. ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataGetSAMLProviderOutput `json:"-" xml:"-"` +} + +type metadataGetSAMLProviderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8394,26 +7060,22 @@ func (s GetSAMLProviderOutput) GoString() string { } type GetSSHPublicKeyInput struct { - _ struct{} `type:"structure"` - // Specifies the public key encoding format to use in the response. To retrieve // the public key in ssh-rsa format, use SSH. To retrieve the public key in // PEM format, use PEM. Encoding *string `type:"string" required:"true" enum:"encodingType"` // The unique identifier for the SSH public key. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters that can consist of any upper or lowercased letter - // or digit. - SSHPublicKeyId *string `min:"20" type:"string" required:"true"` + SSHPublicKeyId *string `type:"string" required:"true"` // The name of the IAM user associated with the SSH public key. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataGetSSHPublicKeyInput `json:"-" xml:"-"` +} + +type metadataGetSSHPublicKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8426,37 +7088,16 @@ func (s GetSSHPublicKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSSHPublicKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSSHPublicKeyInput"} - if s.Encoding == nil { - invalidParams.Add(request.NewErrParamRequired("Encoding")) - } - if s.SSHPublicKeyId == nil { - invalidParams.Add(request.NewErrParamRequired("SSHPublicKeyId")) - } - if s.SSHPublicKeyId != nil && len(*s.SSHPublicKeyId) < 20 { - invalidParams.Add(request.NewErrParamMinLen("SSHPublicKeyId", 20)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetSSHPublicKey request. type GetSSHPublicKeyOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the SSH public key. + // Information about the SSH public key. SSHPublicKey *SSHPublicKey `type:"structure"` + + metadataGetSSHPublicKeyOutput `json:"-" xml:"-"` +} + +type metadataGetSSHPublicKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8470,14 +7111,14 @@ func (s GetSSHPublicKeyOutput) GoString() string { } type GetServerCertificateInput struct { - _ struct{} `type:"structure"` - // The name of the server certificate you want to retrieve information about. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - ServerCertificateName *string `min:"1" type:"string" required:"true"` + ServerCertificateName *string `type:"string" required:"true"` + + metadataGetServerCertificateInput `json:"-" xml:"-"` +} + +type metadataGetServerCertificateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8490,28 +7131,16 @@ func (s GetServerCertificateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetServerCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetServerCertificateInput"} - if s.ServerCertificateName == nil { - invalidParams.Add(request.NewErrParamRequired("ServerCertificateName")) - } - if s.ServerCertificateName != nil && len(*s.ServerCertificateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServerCertificateName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetServerCertificate request. type GetServerCertificateOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the server certificate. + // Information about the server certificate. ServerCertificate *ServerCertificate `type:"structure" required:"true"` + + metadataGetServerCertificateOutput `json:"-" xml:"-"` +} + +type metadataGetServerCertificateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8525,16 +7154,17 @@ func (s GetServerCertificateOutput) GoString() string { } type GetUserInput struct { - _ struct{} `type:"structure"` - // The name of the user to get information about. // // This parameter is optional. If it is not included, it defaults to the user - // making the request. The regex pattern (http://wikipedia.org/wiki/regex) for - // this parameter is a string of characters consisting of upper and lowercase - // alphanumeric characters with no spaces. You can also include any of the following - // characters: =,.@- - UserName *string `min:"1" type:"string"` + // making the request. + UserName *string `type:"string"` + + metadataGetUserInput `json:"-" xml:"-"` +} + +type metadataGetUserInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8547,25 +7177,16 @@ func (s GetUserInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetUserInput"} - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetUser request. type GetUserOutput struct { - _ struct{} `type:"structure"` - - // A structure containing details about the IAM user. + // Information about the user. User *User `type:"structure" required:"true"` + + metadataGetUserOutput `json:"-" xml:"-"` +} + +type metadataGetUserOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8579,21 +7200,17 @@ func (s GetUserOutput) GoString() string { } type GetUserPolicyInput struct { - _ struct{} `type:"structure"` - // The name of the policy document to get. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` // The name of the user who the policy is associated with. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataGetUserPolicyInput `json:"-" xml:"-"` +} + +type metadataGetUserPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8606,40 +7223,22 @@ func (s GetUserPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetUserPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetUserPolicyInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetUserPolicy request. type GetUserPolicyOutput struct { - _ struct{} `type:"structure"` - // The policy document. - PolicyDocument *string `min:"1" type:"string" required:"true"` + PolicyDocument *string `type:"string" required:"true"` // The name of the policy. - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` // The user the policy is associated with. - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataGetUserPolicyOutput `json:"-" xml:"-"` +} + +type metadataGetUserPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8654,20 +7253,14 @@ func (s GetUserPolicyOutput) GoString() string { // Contains information about an IAM group entity. // -// This data type is used as a response element in the following actions: -// -// CreateGroup -// -// GetGroup +// This data type is used as a response element in the following actions: // -// ListGroups +// CreateGroup GetGroup ListGroups type Group struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) specifying the group. For more information // about ARNs and how to use them in policies, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Arn *string `min:"20" type:"string" required:"true"` + Arn *string `type:"string" required:"true"` // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), // when the group was created. @@ -8676,15 +7269,21 @@ type Group struct { // The stable and unique string identifying the group. For more information // about IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - GroupId *string `min:"16" type:"string" required:"true"` + GroupId *string `type:"string" required:"true"` // The friendly name that identifies the group. - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` // The path to the group. For more information about paths, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Path *string `min:"1" type:"string" required:"true"` + Path *string `type:"string" required:"true"` + + metadataGroup `json:"-" xml:"-"` +} + +type metadataGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8702,14 +7301,12 @@ func (s Group) GoString() string { // This data type is used as a response element in the GetAccountAuthorizationDetails // action. type GroupDetail struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // // For more information about ARNs, go to Amazon Resource Names (ARNs) and // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - Arn *string `min:"20" type:"string"` + Arn *string `type:"string"` // A list of the managed policies attached to the group. AttachedManagedPolicies []*AttachedPolicy `type:"list"` @@ -8721,10 +7318,10 @@ type GroupDetail struct { // The stable and unique string identifying the group. For more information // about IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - GroupId *string `min:"16" type:"string"` + GroupId *string `type:"string"` // The friendly name that identifies the group. - GroupName *string `min:"1" type:"string"` + GroupName *string `type:"string"` // A list of the inline policies embedded in the group. GroupPolicyList []*PolicyDetail `type:"list"` @@ -8732,7 +7329,13 @@ type GroupDetail struct { // The path to the group. For more information about paths, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Path *string `min:"1" type:"string"` + Path *string `type:"string"` + + metadataGroupDetail `json:"-" xml:"-"` +} + +type metadataGroupDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8757,13 +7360,11 @@ func (s GroupDetail) GoString() string { // // ListInstanceProfilesForRole type InstanceProfile struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) specifying the instance profile. For more // information about ARNs and how to use them in policies, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Arn *string `min:"20" type:"string" required:"true"` + Arn *string `type:"string" required:"true"` // The date when the instance profile was created. CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` @@ -8771,18 +7372,24 @@ type InstanceProfile struct { // The stable and unique string identifying the instance profile. For more information // about IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - InstanceProfileId *string `min:"16" type:"string" required:"true"` + InstanceProfileId *string `type:"string" required:"true"` // The name identifying the instance profile. - InstanceProfileName *string `min:"1" type:"string" required:"true"` + InstanceProfileName *string `type:"string" required:"true"` // The path to the instance profile. For more information about paths, see IAM // Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Path *string `min:"1" type:"string" required:"true"` + Path *string `type:"string" required:"true"` // The role associated with the instance profile. Roles []*Role `type:"list" required:"true"` + + metadataInstanceProfile `json:"-" xml:"-"` +} + +type metadataInstanceProfile struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8796,31 +7403,26 @@ func (s InstanceProfile) GoString() string { } type ListAccessKeysInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The name of the user. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` + + metadataListAccessKeysInput `json:"-" xml:"-"` +} + +type metadataListAccessKeysInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8833,43 +7435,25 @@ func (s ListAccessKeysInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAccessKeysInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAccessKeysInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListAccessKeys request. type ListAccessKeysOutput struct { - _ struct{} `type:"structure"` - - // A list of objects containing metadata about the access keys. + // A list of access key metadata. AccessKeyMetadata []*AccessKeyMetadata `type:"list" required:"true"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListAccessKeysOutput `json:"-" xml:"-"` +} + +type metadataListAccessKeysOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8883,24 +7467,23 @@ func (s ListAccessKeysOutput) GoString() string { } type ListAccountAliasesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` + + metadataListAccountAliasesInput `json:"-" xml:"-"` +} + +type metadataListAccountAliasesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8913,41 +7496,25 @@ func (s ListAccountAliasesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAccountAliasesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAccountAliasesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListAccountAliases request. type ListAccountAliasesOutput struct { - _ struct{} `type:"structure"` - - // A list of aliases associated with the account. AWS supports only one alias - // per account. + // A list of aliases associated with the account. AccountAliases []*string `type:"list" required:"true"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListAccountAliasesOutput `json:"-" xml:"-"` +} + +type metadataListAccountAliasesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8961,42 +7528,31 @@ func (s ListAccountAliasesOutput) GoString() string { } type ListAttachedGroupPoliciesInput struct { - _ struct{} `type:"structure"` - // The name (friendly name, not ARN) of the group to list attached policies // for. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The path prefix for filtering the results. This parameter is optional. If // it is not included, it defaults to a slash (/), listing all policies. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. PathPrefix *string `type:"string"` + + metadataListAttachedGroupPoliciesInput `json:"-" xml:"-"` +} + +type metadataListAttachedGroupPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9009,46 +7565,25 @@ func (s ListAttachedGroupPoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAttachedGroupPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAttachedGroupPoliciesInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListAttachedGroupPolicies request. type ListAttachedGroupPoliciesOutput struct { - _ struct{} `type:"structure"` - // A list of the attached policies. AttachedPolicies []*AttachedPolicy `type:"list"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListAttachedGroupPoliciesOutput `json:"-" xml:"-"` +} + +type metadataListAttachedGroupPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9062,41 +7597,30 @@ func (s ListAttachedGroupPoliciesOutput) GoString() string { } type ListAttachedRolePoliciesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The path prefix for filtering the results. This parameter is optional. If // it is not included, it defaults to a slash (/), listing all policies. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. PathPrefix *string `type:"string"` // The name (friendly name, not ARN) of the role to list attached policies for. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataListAttachedRolePoliciesInput `json:"-" xml:"-"` +} + +type metadataListAttachedRolePoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9109,46 +7633,25 @@ func (s ListAttachedRolePoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAttachedRolePoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAttachedRolePoliciesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListAttachedRolePolicies request. type ListAttachedRolePoliciesOutput struct { - _ struct{} `type:"structure"` - // A list of the attached policies. AttachedPolicies []*AttachedPolicy `type:"list"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListAttachedRolePoliciesOutput `json:"-" xml:"-"` +} + +type metadataListAttachedRolePoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9162,41 +7665,30 @@ func (s ListAttachedRolePoliciesOutput) GoString() string { } type ListAttachedUserPoliciesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The path prefix for filtering the results. This parameter is optional. If // it is not included, it defaults to a slash (/), listing all policies. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. PathPrefix *string `type:"string"` // The name (friendly name, not ARN) of the user to list attached policies for. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataListAttachedUserPoliciesInput `json:"-" xml:"-"` +} + +type metadataListAttachedUserPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9209,46 +7701,25 @@ func (s ListAttachedUserPoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAttachedUserPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAttachedUserPoliciesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListAttachedUserPolicies request. type ListAttachedUserPoliciesOutput struct { - _ struct{} `type:"structure"` - // A list of the attached policies. AttachedPolicies []*AttachedPolicy `type:"list"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListAttachedUserPoliciesOutput `json:"-" xml:"-"` +} + +type metadataListAttachedUserPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9262,49 +7733,41 @@ func (s ListAttachedUserPoliciesOutput) GoString() string { } type ListEntitiesForPolicyInput struct { - _ struct{} `type:"structure"` - // The entity type to use for filtering the results. // // For example, when EntityFilter is Role, only the roles that are attached // to the specified policy are returned. This parameter is optional. If it is // not included, all attached entities (users, groups, and roles) are returned. - // The argument for this parameter must be one of the valid values listed below. EntityFilter *string `type:"string" enum:"EntityType"` - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The path prefix for filtering the results. This parameter is optional. If // it is not included, it defaults to a slash (/), listing all entities. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. - PathPrefix *string `min:"1" type:"string"` + PathPrefix *string `type:"string"` - // The Amazon Resource Name (ARN) of the IAM policy for which you want the versions. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` + + metadataListEntitiesForPolicyInput `json:"-" xml:"-"` +} + +type metadataListEntitiesForPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9317,55 +7780,31 @@ func (s ListEntitiesForPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListEntitiesForPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEntitiesForPolicyInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.PathPrefix != nil && len(*s.PathPrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PathPrefix", 1)) - } - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListEntitiesForPolicy request. type ListEntitiesForPolicyOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` - // A list of IAM groups that the policy is attached to. + // A list of groups that the policy is attached to. PolicyGroups []*PolicyGroup `type:"list"` - // A list of IAM roles that the policy is attached to. + // A list of roles that the policy is attached to. PolicyRoles []*PolicyRole `type:"list"` - // A list of IAM users that the policy is attached to. + // A list of users that the policy is attached to. PolicyUsers []*PolicyUser `type:"list"` + + metadataListEntitiesForPolicyOutput `json:"-" xml:"-"` +} + +type metadataListEntitiesForPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9379,31 +7818,26 @@ func (s ListEntitiesForPolicyOutput) GoString() string { } type ListGroupPoliciesInput struct { - _ struct{} `type:"structure"` - // The name of the group to list policies for. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` + + metadataListGroupPoliciesInput `json:"-" xml:"-"` +} + +type metadataListGroupPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9416,46 +7850,25 @@ func (s ListGroupPoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListGroupPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGroupPoliciesInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListGroupPolicies request. type ListGroupPoliciesOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // A list of policy names. PolicyNames []*string `type:"list" required:"true"` + + metadataListGroupPoliciesOutput `json:"-" xml:"-"` +} + +type metadataListGroupPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9469,31 +7882,26 @@ func (s ListGroupPoliciesOutput) GoString() string { } type ListGroupsForUserInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The name of the user to list groups for. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataListGroupsForUserInput `json:"-" xml:"-"` +} + +type metadataListGroupsForUserInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9506,46 +7914,25 @@ func (s ListGroupsForUserInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListGroupsForUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGroupsForUserInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListGroupsForUser request. type ListGroupsForUserOutput struct { - _ struct{} `type:"structure"` - // A list of groups. Groups []*Group `type:"list" required:"true"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListGroupsForUserOutput `json:"-" xml:"-"` +} + +type metadataListGroupsForUserOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9559,36 +7946,30 @@ func (s ListGroupsForUserOutput) GoString() string { } type ListGroupsInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The path prefix for filtering the results. For example, the prefix /division_abc/subdivision_xyz/ // gets all groups whose path starts with /division_abc/subdivision_xyz/. // - // This parameter is optional. If it is not included, it defaults to a slash - // (/), listing all groups. The regex pattern (http://wikipedia.org/wiki/regex) - // for this parameter is a string of characters consisting of either a forward - // slash (/) by itself or a string that must begin and end with forward slashes, - // containing any ASCII character from the ! (\u0021) thru the DEL character - // (\u007F), including most punctuation characters, digits, and upper and lowercased - // letters. - PathPrefix *string `min:"1" type:"string"` + // This parameter is optional. If it is not included, it defaults to a slash + // (/), listing all groups. + PathPrefix *string `type:"string"` + + metadataListGroupsInput `json:"-" xml:"-"` +} + +type metadataListGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9601,43 +7982,25 @@ func (s ListGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGroupsInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.PathPrefix != nil && len(*s.PathPrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PathPrefix", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListGroups request. type ListGroupsOutput struct { - _ struct{} `type:"structure"` - // A list of groups. Groups []*Group `type:"list" required:"true"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListGroupsOutput `json:"-" xml:"-"` +} + +type metadataListGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9651,31 +8014,26 @@ func (s ListGroupsOutput) GoString() string { } type ListInstanceProfilesForRoleInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The name of the role to list instance profiles for. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataListInstanceProfilesForRoleInput `json:"-" xml:"-"` +} + +type metadataListInstanceProfilesForRoleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9688,46 +8046,25 @@ func (s ListInstanceProfilesForRoleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListInstanceProfilesForRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListInstanceProfilesForRoleInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListInstanceProfilesForRole request. type ListInstanceProfilesForRoleOutput struct { - _ struct{} `type:"structure"` - // A list of instance profiles. InstanceProfiles []*InstanceProfile `type:"list" required:"true"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListInstanceProfilesForRoleOutput `json:"-" xml:"-"` +} + +type metadataListInstanceProfilesForRoleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9741,36 +8078,30 @@ func (s ListInstanceProfilesForRoleOutput) GoString() string { } type ListInstanceProfilesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ // gets all instance profiles whose path starts with /application_abc/component_xyz/. // - // This parameter is optional. If it is not included, it defaults to a slash - // (/), listing all instance profiles. The regex pattern (http://wikipedia.org/wiki/regex) - // for this parameter is a string of characters consisting of either a forward - // slash (/) by itself or a string that must begin and end with forward slashes, - // containing any ASCII character from the ! (\u0021) thru the DEL character - // (\u007F), including most punctuation characters, digits, and upper and lowercased - // letters. - PathPrefix *string `min:"1" type:"string"` + // This parameter is optional. If it is not included, it defaults to a slash + // (/), listing all instance profiles. + PathPrefix *string `type:"string"` + + metadataListInstanceProfilesInput `json:"-" xml:"-"` +} + +type metadataListInstanceProfilesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9783,43 +8114,25 @@ func (s ListInstanceProfilesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListInstanceProfilesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListInstanceProfilesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.PathPrefix != nil && len(*s.PathPrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PathPrefix", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListInstanceProfiles request. type ListInstanceProfilesOutput struct { - _ struct{} `type:"structure"` - // A list of instance profiles. InstanceProfiles []*InstanceProfile `type:"list" required:"true"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListInstanceProfilesOutput `json:"-" xml:"-"` +} + +type metadataListInstanceProfilesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9833,31 +8146,26 @@ func (s ListInstanceProfilesOutput) GoString() string { } type ListMFADevicesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The name of the user whose MFA devices you want to list. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` + + metadataListMFADevicesInput `json:"-" xml:"-"` +} + +type metadataListMFADevicesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9870,35 +8178,11 @@ func (s ListMFADevicesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListMFADevicesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMFADevicesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListMFADevices request. type ListMFADevicesOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // A list of MFA devices. @@ -9906,7 +8190,13 @@ type ListMFADevicesOutput struct { // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListMFADevicesOutput `json:"-" xml:"-"` +} + +type metadataListMFADevicesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9920,7 +8210,11 @@ func (s ListMFADevicesOutput) GoString() string { } type ListOpenIDConnectProvidersInput struct { - _ struct{} `type:"structure"` + metadataListOpenIDConnectProvidersInput `json:"-" xml:"-"` +} + +type metadataListOpenIDConnectProvidersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9935,10 +8229,14 @@ func (s ListOpenIDConnectProvidersInput) GoString() string { // Contains the response to a successful ListOpenIDConnectProviders request. type ListOpenIDConnectProvidersOutput struct { - _ struct{} `type:"structure"` - - // The list of IAM OIDC provider resource objects defined in the AWS account. + // The list of IAM OpenID Connect providers in the AWS account. OpenIDConnectProviderList []*OpenIDConnectProviderListEntry `type:"list"` + + metadataListOpenIDConnectProvidersOutput `json:"-" xml:"-"` +} + +type metadataListOpenIDConnectProvidersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9952,39 +8250,27 @@ func (s ListOpenIDConnectProvidersOutput) GoString() string { } type ListPoliciesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // A flag to filter the results to only the attached policies. // // When OnlyAttached is true, the returned list contains only the policies - // that are attached to an IAM user, group, or role. When OnlyAttached is false, + // that are attached to a user, group, or role. When OnlyAttached is false, // or when the parameter is not included, all policies are returned. OnlyAttached *bool `type:"boolean"` // The path prefix for filtering the results. This parameter is optional. If - // it is not included, it defaults to a slash (/), listing all policies. The - // regex pattern (http://wikipedia.org/wiki/regex) for this parameter is a string - // of characters consisting of either a forward slash (/) by itself or a string - // that must begin and end with forward slashes, containing any ASCII character - // from the ! (\u0021) thru the DEL character (\u007F), including most punctuation - // characters, digits, and upper and lowercased letters. + // it is not included, it defaults to a slash (/), listing all policies. PathPrefix *string `type:"string"` // The scope to use for filtering the results. @@ -9995,6 +8281,12 @@ type ListPoliciesInput struct { // This parameter is optional. If it is not included, or if it is set to All, // all policies are returned. Scope *string `type:"string" enum:"policyScopeType"` + + metadataListPoliciesInput `json:"-" xml:"-"` +} + +type metadataListPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10007,40 +8299,25 @@ func (s ListPoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPoliciesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListPolicies request. type ListPoliciesOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // A list of policies. Policies []*Policy `type:"list"` + + metadataListPoliciesOutput `json:"-" xml:"-"` +} + +type metadataListPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10054,31 +8331,30 @@ func (s ListPoliciesOutput) GoString() string { } type ListPolicyVersionsInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` - // The Amazon Resource Name (ARN) of the IAM policy for which you want the versions. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` + + metadataListPolicyVersionsInput `json:"-" xml:"-"` +} + +type metadataListPolicyVersionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10091,50 +8367,29 @@ func (s ListPolicyVersionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPolicyVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPolicyVersionsInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListPolicyVersions request. type ListPolicyVersionsOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // A list of policy versions. // // For more information about managed policy versions, see Versioning for Managed // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) - // in the IAM User Guide. + // in the Using IAM guide. Versions []*PolicyVersion `type:"list"` + + metadataListPolicyVersionsOutput `json:"-" xml:"-"` +} + +type metadataListPolicyVersionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10148,31 +8403,26 @@ func (s ListPolicyVersionsOutput) GoString() string { } type ListRolePoliciesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The name of the role to list policies for. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataListRolePoliciesInput `json:"-" xml:"-"` +} + +type metadataListRolePoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10185,46 +8435,25 @@ func (s ListRolePoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRolePoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRolePoliciesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListRolePolicies request. type ListRolePoliciesOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // A list of policy names. PolicyNames []*string `type:"list" required:"true"` + + metadataListRolePoliciesOutput `json:"-" xml:"-"` +} + +type metadataListRolePoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10238,36 +8467,30 @@ func (s ListRolePoliciesOutput) GoString() string { } type ListRolesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The path prefix for filtering the results. For example, the prefix /application_abc/component_xyz/ // gets all roles whose path starts with /application_abc/component_xyz/. // - // This parameter is optional. If it is not included, it defaults to a slash - // (/), listing all roles. The regex pattern (http://wikipedia.org/wiki/regex) - // for this parameter is a string of characters consisting of either a forward - // slash (/) by itself or a string that must begin and end with forward slashes, - // containing any ASCII character from the ! (\u0021) thru the DEL character - // (\u007F), including most punctuation characters, digits, and upper and lowercased - // letters. - PathPrefix *string `min:"1" type:"string"` + // This parameter is optional. If it is not included, it defaults to a slash + // (/), listing all roles. + PathPrefix *string `type:"string"` + + metadataListRolesInput `json:"-" xml:"-"` +} + +type metadataListRolesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10280,43 +8503,25 @@ func (s ListRolesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRolesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRolesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.PathPrefix != nil && len(*s.PathPrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PathPrefix", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListRoles request. type ListRolesOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // A list of roles. Roles []*Role `type:"list" required:"true"` + + metadataListRolesOutput `json:"-" xml:"-"` +} + +type metadataListRolesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10330,7 +8535,11 @@ func (s ListRolesOutput) GoString() string { } type ListSAMLProvidersInput struct { - _ struct{} `type:"structure"` + metadataListSAMLProvidersInput `json:"-" xml:"-"` +} + +type metadataListSAMLProvidersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10345,10 +8554,14 @@ func (s ListSAMLProvidersInput) GoString() string { // Contains the response to a successful ListSAMLProviders request. type ListSAMLProvidersOutput struct { - _ struct{} `type:"structure"` - - // The list of SAML provider resource objects defined in IAM for this AWS account. + // The list of SAML providers for this account. SAMLProviderList []*SAMLProviderListEntry `type:"list"` + + metadataListSAMLProvidersOutput `json:"-" xml:"-"` +} + +type metadataListSAMLProvidersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10362,33 +8575,28 @@ func (s ListSAMLProvidersOutput) GoString() string { } type ListSSHPublicKeysInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The name of the IAM user to list SSH public keys for. If none is specified, // the UserName field is determined implicitly based on the AWS access key used // to sign the request. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` + + metadataListSSHPublicKeysInput `json:"-" xml:"-"` +} + +type metadataListSSHPublicKeysInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10401,43 +8609,25 @@ func (s ListSSHPublicKeysInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSSHPublicKeysInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSSHPublicKeysInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListSSHPublicKeys request. type ListSSHPublicKeysOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` - // A list of the SSH public keys assigned to IAM user. + // A list of SSH public keys. SSHPublicKeys []*SSHPublicKeyMetadata `type:"list"` + + metadataListSSHPublicKeysOutput `json:"-" xml:"-"` +} + +type metadataListSSHPublicKeysOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10451,36 +8641,30 @@ func (s ListSSHPublicKeysOutput) GoString() string { } type ListServerCertificatesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The path prefix for filtering the results. For example: /company/servercerts // would get all server certificates for which the path starts with /company/servercerts. // - // This parameter is optional. If it is not included, it defaults to a slash - // (/), listing all server certificates. The regex pattern (http://wikipedia.org/wiki/regex) - // for this parameter is a string of characters consisting of either a forward - // slash (/) by itself or a string that must begin and end with forward slashes, - // containing any ASCII character from the ! (\u0021) thru the DEL character - // (\u007F), including most punctuation characters, digits, and upper and lowercased - // letters. - PathPrefix *string `min:"1" type:"string"` + // This parameter is optional. If it is not included, it defaults to a slash + // (/), listing all server certificates. + PathPrefix *string `type:"string"` + + metadataListServerCertificatesInput `json:"-" xml:"-"` +} + +type metadataListServerCertificatesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10493,43 +8677,25 @@ func (s ListServerCertificatesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListServerCertificatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListServerCertificatesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.PathPrefix != nil && len(*s.PathPrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PathPrefix", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListServerCertificates request. type ListServerCertificatesOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // A list of server certificates. ServerCertificateMetadataList []*ServerCertificateMetadata `type:"list" required:"true"` + + metadataListServerCertificatesOutput `json:"-" xml:"-"` +} + +type metadataListServerCertificatesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10543,31 +8709,26 @@ func (s ListServerCertificatesOutput) GoString() string { } type ListSigningCertificatesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` - // The name of the IAM user whose signing certificates you want to examine. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string"` + // The name of the user. + UserName *string `type:"string"` + + metadataListSigningCertificatesInput `json:"-" xml:"-"` +} + +type metadataListSigningCertificatesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10580,43 +8741,25 @@ func (s ListSigningCertificatesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSigningCertificatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSigningCertificatesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListSigningCertificates request. type ListSigningCertificatesOutput struct { - _ struct{} `type:"structure"` - // A list of the user's signing certificate information. Certificates []*SigningCertificate `type:"list" required:"true"` // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListSigningCertificatesOutput `json:"-" xml:"-"` +} + +type metadataListSigningCertificatesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10630,31 +8773,26 @@ func (s ListSigningCertificatesOutput) GoString() string { } type ListUserPoliciesInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The name of the user to list policies for. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataListUserPoliciesInput `json:"-" xml:"-"` +} + +type metadataListUserPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10667,46 +8805,25 @@ func (s ListUserPoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListUserPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUserPoliciesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListUserPolicies request. type ListUserPoliciesOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // A list of policy names. PolicyNames []*string `type:"list" required:"true"` + + metadataListUserPoliciesOutput `json:"-" xml:"-"` +} + +type metadataListUserPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10720,36 +8837,30 @@ func (s ListUserPoliciesOutput) GoString() string { } type ListUsersInput struct { - _ struct{} `type:"structure"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` // The path prefix for filtering the results. For example: /division_abc/subdivision_xyz/, // which would get all user names whose path starts with /division_abc/subdivision_xyz/. // - // This parameter is optional. If it is not included, it defaults to a slash - // (/), listing all user names. The regex pattern (http://wikipedia.org/wiki/regex) - // for this parameter is a string of characters consisting of either a forward - // slash (/) by itself or a string that must begin and end with forward slashes, - // containing any ASCII character from the ! (\u0021) thru the DEL character - // (\u007F), including most punctuation characters, digits, and upper and lowercased - // letters. - PathPrefix *string `min:"1" type:"string"` + // This parameter is optional. If it is not included, it defaults to a slash + // (/), listing all user names. + PathPrefix *string `type:"string"` + + metadataListUsersInput `json:"-" xml:"-"` +} + +type metadataListUsersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10762,43 +8873,25 @@ func (s ListUsersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListUsersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.PathPrefix != nil && len(*s.PathPrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PathPrefix", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListUsers request. type ListUsersOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // A list of users. Users []*User `type:"list" required:"true"` + + metadataListUsersOutput `json:"-" xml:"-"` +} + +type metadataListUsersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10812,29 +8905,28 @@ func (s ListUsersOutput) GoString() string { } type ListVirtualMFADevicesInput struct { - _ struct{} `type:"structure"` - - // The status (Unassigned or Assigned) of the devices to list. If you do not + // The status (unassigned or assigned) of the devices to list. If you do not // specify an AssignmentStatus, the action defaults to Any which lists both // assigned and unassigned virtual MFA devices. AssignmentStatus *string `type:"string" enum:"assignmentStatusType"` - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results and only after you have received + // a response where the results are truncated. Set it to the value of the Marker + // element in the response you just received. + Marker *string `type:"string"` // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. + // you want in the response. If there are additional items beyond the maximum + // you specify, the IsTruncated response element is true. // // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` + MaxItems *int64 `type:"integer"` + + metadataListVirtualMFADevicesInput `json:"-" xml:"-"` +} + +type metadataListVirtualMFADevicesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10847,41 +8939,26 @@ func (s ListVirtualMFADevicesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListVirtualMFADevicesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVirtualMFADevicesInput"} - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful ListVirtualMFADevices request. type ListVirtualMFADevicesOutput struct { - _ struct{} `type:"structure"` - // A flag that indicates whether there are more items to return. If your results // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. + // request parameter to retrieve more items. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // The list of virtual MFA devices in the current account that match the AssignmentStatus // value that was passed in the request. VirtualMFADevices []*VirtualMFADevice `type:"list" required:"true"` + + metadataListVirtualMFADevicesOutput `json:"-" xml:"-"` +} + +type metadataListVirtualMFADevicesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10899,8 +8976,6 @@ func (s ListVirtualMFADevicesOutput) GoString() string { // This data type is used as a response element in the CreateLoginProfile // and GetLoginProfile actions. type LoginProfile struct { - _ struct{} `type:"structure"` - // The date when the password for the user was created. CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` @@ -10909,7 +8984,13 @@ type LoginProfile struct { // The name of the user, which can be used for signing in to the AWS Management // Console. - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataLoginProfile `json:"-" xml:"-"` +} + +type metadataLoginProfile struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10926,17 +9007,21 @@ func (s LoginProfile) GoString() string { // // This data type is used as a response element in the ListMFADevices action. type MFADevice struct { - _ struct{} `type:"structure"` - // The date when the MFA device was enabled for the user. EnableDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` // The serial number that uniquely identifies the MFA device. For virtual MFA // devices, the serial number is the device ARN. - SerialNumber *string `min:"9" type:"string" required:"true"` + SerialNumber *string `type:"string" required:"true"` // The user with whom the MFA device is associated. - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataMFADevice `json:"-" xml:"-"` +} + +type metadataMFADevice struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10960,14 +9045,12 @@ func (s MFADevice) GoString() string { // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. type ManagedPolicyDetail struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // // For more information about ARNs, go to Amazon Resource Names (ARNs) and // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - Arn *string `min:"20" type:"string"` + Arn *string `type:"string"` // The number of principal entities (users, groups, and roles) that the policy // is attached to. @@ -11001,10 +9084,10 @@ type ManagedPolicyDetail struct { // // For more information about IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - PolicyId *string `min:"16" type:"string"` + PolicyId *string `type:"string"` // The friendly name (not ARN) identifying the policy. - PolicyName *string `min:"1" type:"string"` + PolicyName *string `type:"string"` // A list containing information about the versions of the policy. PolicyVersionList []*PolicyVersion `type:"list"` @@ -11017,6 +9100,12 @@ type ManagedPolicyDetail struct { // field contains the date and time when the most recent policy version was // created. UpdateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataManagedPolicyDetail `json:"-" xml:"-"` +} + +type metadataManagedPolicyDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11031,14 +9120,18 @@ func (s ManagedPolicyDetail) GoString() string { // Contains the Amazon Resource Name (ARN) for an IAM OpenID Connect provider. type OpenIDConnectProviderListEntry struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // // For more information about ARNs, go to Amazon Resource Names (ARNs) and // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - Arn *string `min:"20" type:"string"` + Arn *string `type:"string"` + + metadataOpenIDConnectProviderListEntry `json:"-" xml:"-"` +} + +type metadataOpenIDConnectProviderListEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11056,14 +9149,11 @@ func (s OpenIDConnectProviderListEntry) GoString() string { // This data type is used as a response element in the GetAccountPasswordPolicy // action. type PasswordPolicy struct { - _ struct{} `type:"structure"` - // Specifies whether IAM users are allowed to change their own password. AllowUsersToChangePassword *bool `type:"boolean"` - // Indicates whether passwords in the account expire. Returns true if MaxPasswordAge - // is contains a value greater than 0. Returns false if MaxPasswordAge is 0 - // or not present. + // Specifies whether IAM users are required to change their password after a + // specified number of days. ExpirePasswords *bool `type:"boolean"` // Specifies whether IAM users are prevented from setting a new password after @@ -11071,14 +9161,14 @@ type PasswordPolicy struct { HardExpiry *bool `type:"boolean"` // The number of days that an IAM user password is valid. - MaxPasswordAge *int64 `min:"1" type:"integer"` + MaxPasswordAge *int64 `type:"integer"` // Minimum length to require for IAM user passwords. - MinimumPasswordLength *int64 `min:"6" type:"integer"` + MinimumPasswordLength *int64 `type:"integer"` // Specifies the number of previous passwords that IAM users are prevented from // reusing. - PasswordReusePrevention *int64 `min:"1" type:"integer"` + PasswordReusePrevention *int64 `type:"integer"` // Specifies whether to require lowercase characters for IAM user passwords. RequireLowercaseCharacters *bool `type:"boolean"` @@ -11091,6 +9181,12 @@ type PasswordPolicy struct { // Specifies whether to require uppercase characters for IAM user passwords. RequireUppercaseCharacters *bool `type:"boolean"` + + metadataPasswordPolicy `json:"-" xml:"-"` +} + +type metadataPasswordPolicy struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11112,14 +9208,12 @@ func (s PasswordPolicy) GoString() string { // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. type Policy struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // // For more information about ARNs, go to Amazon Resource Names (ARNs) and // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - Arn *string `min:"20" type:"string"` + Arn *string `type:"string"` // The number of entities (users, groups, and roles) that the policy is attached // to. @@ -11151,10 +9245,10 @@ type Policy struct { // // For more information about IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - PolicyId *string `min:"16" type:"string"` + PolicyId *string `type:"string"` // The friendly name (not ARN) identifying the policy. - PolicyName *string `min:"1" type:"string"` + PolicyName *string `type:"string"` // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), // when the policy was last updated. @@ -11164,6 +9258,12 @@ type Policy struct { // field contains the date and time when the most recent policy version was // created. UpdateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataPolicy `json:"-" xml:"-"` +} + +type metadataPolicy struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11181,13 +9281,17 @@ func (s Policy) GoString() string { // This data type is used as a response element in the GetAccountAuthorizationDetails // action. type PolicyDetail struct { - _ struct{} `type:"structure"` - // The policy document. - PolicyDocument *string `min:"1" type:"string"` + PolicyDocument *string `type:"string"` // The name of the policy. - PolicyName *string `min:"1" type:"string"` + PolicyName *string `type:"string"` + + metadataPolicyDetail `json:"-" xml:"-"` +} + +type metadataPolicyDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11209,15 +9313,14 @@ func (s PolicyDetail) GoString() string { // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. type PolicyGroup struct { - _ struct{} `type:"structure"` + // The name (friendly name, not ARN) identifying the group. + GroupName *string `type:"string"` - // The stable and unique string identifying the group. For more information - // about IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) - // in the IAM User Guide. - GroupId *string `min:"16" type:"string"` + metadataPolicyGroup `json:"-" xml:"-"` +} - // The name (friendly name, not ARN) identifying the group. - GroupName *string `min:"1" type:"string"` +type metadataPolicyGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11239,15 +9342,14 @@ func (s PolicyGroup) GoString() string { // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. type PolicyRole struct { - _ struct{} `type:"structure"` + // The name (friendly name, not ARN) identifying the role. + RoleName *string `type:"string"` - // The stable and unique string identifying the role. For more information about - // IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) - // in the IAM User Guide. - RoleId *string `min:"16" type:"string"` + metadataPolicyRole `json:"-" xml:"-"` +} - // The name (friendly name, not ARN) identifying the role. - RoleName *string `min:"1" type:"string"` +type metadataPolicyRole struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11269,15 +9371,14 @@ func (s PolicyRole) GoString() string { // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. type PolicyUser struct { - _ struct{} `type:"structure"` + // The name (friendly name, not ARN) identifying the user. + UserName *string `type:"string"` - // The stable and unique string identifying the user. For more information about - // IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) - // in the IAM User Guide. - UserId *string `min:"16" type:"string"` + metadataPolicyUser `json:"-" xml:"-"` +} - // The name (friendly name, not ARN) identifying the user. - UserName *string `min:"1" type:"string"` +type metadataPolicyUser struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11300,8 +9401,6 @@ func (s PolicyUser) GoString() string { // Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the Using IAM guide. type PolicyVersion struct { - _ struct{} `type:"structure"` - // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), // when the policy version was created. CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -11311,7 +9410,7 @@ type PolicyVersion struct { // The policy document is returned in the response to the GetPolicyVersion // and GetAccountAuthorizationDetails operations. It is not returned in the // response to the CreatePolicyVersion or ListPolicyVersions operations. - Document *string `min:"1" type:"string"` + Document *string `type:"string"` // Specifies whether the policy version is set as the policy's default version. IsDefaultVersion *bool `type:"boolean"` @@ -11321,6 +9420,12 @@ type PolicyVersion struct { // Policy version identifiers always begin with v (always lowercase). When // a policy is created, the first policy version is v1. VersionId *string `type:"string"` + + metadataPolicyVersion `json:"-" xml:"-"` +} + +type metadataPolicyVersion struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11333,55 +9438,21 @@ func (s PolicyVersion) GoString() string { return s.String() } -// Contains the row and column of a location of a Statement element in a policy -// document. -// -// This data type is used as a member of the Statement type. -type Position struct { - _ struct{} `type:"structure"` +type PutGroupPolicyInput struct { + // The name of the group to associate the policy with. + GroupName *string `type:"string" required:"true"` + + // The policy document. + PolicyDocument *string `type:"string" required:"true"` - // The column in the line containing the specified position in the document. - Column *int64 `type:"integer"` + // The name of the policy document. + PolicyName *string `type:"string" required:"true"` - // The line containing the specified position in the document. - Line *int64 `type:"integer"` + metadataPutGroupPolicyInput `json:"-" xml:"-"` } -// String returns the string representation -func (s Position) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Position) GoString() string { - return s.String() -} - -type PutGroupPolicyInput struct { - _ struct{} `type:"structure"` - - // The name of the group to associate the policy with. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` - - // The policy document. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PolicyDocument *string `min:"1" type:"string" required:"true"` - - // The name of the policy document. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - PolicyName *string `min:"1" type:"string" required:"true"` +type metadataPutGroupPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11394,36 +9465,12 @@ func (s PutGroupPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutGroupPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutGroupPolicyInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.PolicyDocument == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyDocument")) - } - if s.PolicyDocument != nil && len(*s.PolicyDocument) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyDocument", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutGroupPolicyOutput struct { + metadataPutGroupPolicyOutput `json:"-" xml:"-"` } -type PutGroupPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataPutGroupPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11437,30 +9484,20 @@ func (s PutGroupPolicyOutput) GoString() string { } type PutRolePolicyInput struct { - _ struct{} `type:"structure"` - // The policy document. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PolicyDocument *string `min:"1" type:"string" required:"true"` + PolicyDocument *string `type:"string" required:"true"` // The name of the policy document. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` // The name of the role to associate the policy with. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataPutRolePolicyInput `json:"-" xml:"-"` +} + +type metadataPutRolePolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11473,36 +9510,12 @@ func (s PutRolePolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRolePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRolePolicyInput"} - if s.PolicyDocument == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyDocument")) - } - if s.PolicyDocument != nil && len(*s.PolicyDocument) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyDocument", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutRolePolicyOutput struct { + metadataPutRolePolicyOutput `json:"-" xml:"-"` } -type PutRolePolicyOutput struct { - _ struct{} `type:"structure"` +type metadataPutRolePolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11516,30 +9529,20 @@ func (s PutRolePolicyOutput) GoString() string { } type PutUserPolicyInput struct { - _ struct{} `type:"structure"` - // The policy document. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PolicyDocument *string `min:"1" type:"string" required:"true"` + PolicyDocument *string `type:"string" required:"true"` // The name of the policy document. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` // The name of the user to associate the policy with. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataPutUserPolicyInput `json:"-" xml:"-"` +} + +type metadataPutUserPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11552,36 +9555,12 @@ func (s PutUserPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutUserPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutUserPolicyInput"} - if s.PolicyDocument == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyDocument")) - } - if s.PolicyDocument != nil && len(*s.PolicyDocument) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyDocument", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutUserPolicyOutput struct { + metadataPutUserPolicyOutput `json:"-" xml:"-"` } -type PutUserPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataPutUserPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11595,20 +9574,20 @@ func (s PutUserPolicyOutput) GoString() string { } type RemoveClientIDFromOpenIDConnectProviderInput struct { - _ struct{} `type:"structure"` + // The client ID (also known as audience) to remove from the IAM OpenID Connect + // provider. For more information about client IDs, see CreateOpenIDConnectProvider. + ClientID *string `type:"string" required:"true"` - // The client ID (also known as audience) to remove from the IAM OIDC provider - // resource. For more information about client IDs, see CreateOpenIDConnectProvider. - ClientID *string `min:"1" type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider + // to remove the client ID from. You can get a list of OIDC provider ARNs by + // using the ListOpenIDConnectProviders action. + OpenIDConnectProviderArn *string `type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the IAM OIDC provider resource to remove - // the client ID from. You can get a list of OIDC provider ARNs by using the - // ListOpenIDConnectProviders action. - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // in the AWS General Reference. - OpenIDConnectProviderArn *string `min:"20" type:"string" required:"true"` + metadataRemoveClientIDFromOpenIDConnectProviderInput `json:"-" xml:"-"` +} + +type metadataRemoveClientIDFromOpenIDConnectProviderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11621,30 +9600,12 @@ func (s RemoveClientIDFromOpenIDConnectProviderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveClientIDFromOpenIDConnectProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveClientIDFromOpenIDConnectProviderInput"} - if s.ClientID == nil { - invalidParams.Add(request.NewErrParamRequired("ClientID")) - } - if s.ClientID != nil && len(*s.ClientID) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientID", 1)) - } - if s.OpenIDConnectProviderArn == nil { - invalidParams.Add(request.NewErrParamRequired("OpenIDConnectProviderArn")) - } - if s.OpenIDConnectProviderArn != nil && len(*s.OpenIDConnectProviderArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("OpenIDConnectProviderArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RemoveClientIDFromOpenIDConnectProviderOutput struct { + metadataRemoveClientIDFromOpenIDConnectProviderOutput `json:"-" xml:"-"` } -type RemoveClientIDFromOpenIDConnectProviderOutput struct { - _ struct{} `type:"structure"` +type metadataRemoveClientIDFromOpenIDConnectProviderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11658,21 +9619,17 @@ func (s RemoveClientIDFromOpenIDConnectProviderOutput) GoString() string { } type RemoveRoleFromInstanceProfileInput struct { - _ struct{} `type:"structure"` - // The name of the instance profile to update. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - InstanceProfileName *string `min:"1" type:"string" required:"true"` + InstanceProfileName *string `type:"string" required:"true"` // The name of the role to remove. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataRemoveRoleFromInstanceProfileInput `json:"-" xml:"-"` +} + +type metadataRemoveRoleFromInstanceProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11685,30 +9642,12 @@ func (s RemoveRoleFromInstanceProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveRoleFromInstanceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveRoleFromInstanceProfileInput"} - if s.InstanceProfileName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceProfileName")) - } - if s.InstanceProfileName != nil && len(*s.InstanceProfileName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceProfileName", 1)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RemoveRoleFromInstanceProfileOutput struct { + metadataRemoveRoleFromInstanceProfileOutput `json:"-" xml:"-"` } -type RemoveRoleFromInstanceProfileOutput struct { - _ struct{} `type:"structure"` +type metadataRemoveRoleFromInstanceProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11722,21 +9661,17 @@ func (s RemoveRoleFromInstanceProfileOutput) GoString() string { } type RemoveUserFromGroupInput struct { - _ struct{} `type:"structure"` - // The name of the group to update. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + GroupName *string `type:"string" required:"true"` // The name of the user to remove. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataRemoveUserFromGroupInput `json:"-" xml:"-"` +} + +type metadataRemoveUserFromGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11749,30 +9684,12 @@ func (s RemoveUserFromGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveUserFromGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveUserFromGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RemoveUserFromGroupOutput struct { + metadataRemoveUserFromGroupOutput `json:"-" xml:"-"` } -type RemoveUserFromGroupOutput struct { - _ struct{} `type:"structure"` +type metadataRemoveUserFromGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11785,81 +9702,24 @@ func (s RemoveUserFromGroupOutput) GoString() string { return s.String() } -// Contains the result of the simulation of a single API action call on a single -// resource. -// -// This data type is used by a member of the EvaluationResult data type. -type ResourceSpecificResult struct { - _ struct{} `type:"structure"` - - // Additional details about the results of the evaluation decision. When there - // are both IAM policies and resource policies, this parameter explains how - // each set of policies contributes to the final evaluation decision. When simulating - // cross-account access to a resource, both the resource-based policy and the - // caller's IAM policy must grant access. - EvalDecisionDetails map[string]*string `type:"map"` - - // The result of the simulation of the simulated API action on the resource - // specified in EvalResourceName. - EvalResourceDecision *string `type:"string" required:"true" enum:"PolicyEvaluationDecisionType"` - - // The name of the simulated resource, in Amazon Resource Name (ARN) format. - EvalResourceName *string `min:"1" type:"string" required:"true"` - - // A list of the statements in the input policies that determine the result - // for this part of the simulation. Remember that even if multiple statements - // allow the action on the resource, if any statement denies that action, then - // the explicit deny overrides any allow, and the deny statement is the only - // entry included in the result. - MatchedStatements []*Statement `type:"list"` - - // A list of context keys that are required by the included input policies but - // that were not provided by one of the input parameters. This list is used - // when a list of ARNs is included in the ResourceArns parameter instead of - // "*". If you do not specify individual resources, by setting ResourceArns - // to "*" or by not including the ResourceArns parameter, then any missing context - // values are instead included under the EvaluationResults section. To discover - // the context keys used by a set of policies, you can call GetContextKeysForCustomPolicy - // or GetContextKeysForPrincipalPolicy. - MissingContextValues []*string `type:"list"` -} - -// String returns the string representation -func (s ResourceSpecificResult) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResourceSpecificResult) GoString() string { - return s.String() -} - type ResyncMFADeviceInput struct { - _ struct{} `type:"structure"` - // An authentication code emitted by the device. - // - // The format for this parameter is a sequence of six digits. - AuthenticationCode1 *string `min:"6" type:"string" required:"true"` + AuthenticationCode1 *string `type:"string" required:"true"` // A subsequent authentication code emitted by the device. - // - // The format for this parameter is a sequence of six digits. - AuthenticationCode2 *string `min:"6" type:"string" required:"true"` + AuthenticationCode2 *string `type:"string" required:"true"` // Serial number that uniquely identifies the MFA device. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - SerialNumber *string `min:"9" type:"string" required:"true"` + SerialNumber *string `type:"string" required:"true"` // The name of the user whose MFA device you want to resynchronize. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataResyncMFADeviceInput `json:"-" xml:"-"` +} + +type metadataResyncMFADeviceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11872,42 +9732,12 @@ func (s ResyncMFADeviceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResyncMFADeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResyncMFADeviceInput"} - if s.AuthenticationCode1 == nil { - invalidParams.Add(request.NewErrParamRequired("AuthenticationCode1")) - } - if s.AuthenticationCode1 != nil && len(*s.AuthenticationCode1) < 6 { - invalidParams.Add(request.NewErrParamMinLen("AuthenticationCode1", 6)) - } - if s.AuthenticationCode2 == nil { - invalidParams.Add(request.NewErrParamRequired("AuthenticationCode2")) - } - if s.AuthenticationCode2 != nil && len(*s.AuthenticationCode2) < 6 { - invalidParams.Add(request.NewErrParamMinLen("AuthenticationCode2", 6)) - } - if s.SerialNumber == nil { - invalidParams.Add(request.NewErrParamRequired("SerialNumber")) - } - if s.SerialNumber != nil && len(*s.SerialNumber) < 9 { - invalidParams.Add(request.NewErrParamMinLen("SerialNumber", 9)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ResyncMFADeviceOutput struct { + metadataResyncMFADeviceOutput `json:"-" xml:"-"` } -type ResyncMFADeviceOutput struct { - _ struct{} `type:"structure"` +type metadataResyncMFADeviceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11922,7 +9752,7 @@ func (s ResyncMFADeviceOutput) GoString() string { // Contains information about an IAM role. // -// This data type is used as a response element in the following actions: +// This data type is used as a response element in the following actions: // // CreateRole // @@ -11930,15 +9760,13 @@ func (s ResyncMFADeviceOutput) GoString() string { // // ListRoles type Role struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) specifying the role. For more information // about ARNs and how to use them in policies, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Arn *string `min:"20" type:"string" required:"true"` + Arn *string `type:"string" required:"true"` // The policy that grants an entity permission to assume the role. - AssumeRolePolicyDocument *string `min:"1" type:"string"` + AssumeRolePolicyDocument *string `type:"string"` // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), // when the role was created. @@ -11947,15 +9775,21 @@ type Role struct { // The path to the role. For more information about paths, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Path *string `min:"1" type:"string" required:"true"` + Path *string `type:"string" required:"true"` // The stable and unique string identifying the role. For more information about // IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - RoleId *string `min:"16" type:"string" required:"true"` + RoleId *string `type:"string" required:"true"` // The friendly name that identifies the role. - RoleName *string `min:"1" type:"string" required:"true"` + RoleName *string `type:"string" required:"true"` + + metadataRole `json:"-" xml:"-"` +} + +type metadataRole struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11973,17 +9807,15 @@ func (s Role) GoString() string { // This data type is used as a response element in the GetAccountAuthorizationDetails // action. type RoleDetail struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // // For more information about ARNs, go to Amazon Resource Names (ARNs) and // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - Arn *string `min:"20" type:"string"` + Arn *string `type:"string"` // The trust policy that grants permission to assume the role. - AssumeRolePolicyDocument *string `min:"1" type:"string"` + AssumeRolePolicyDocument *string `type:"string"` // A list of managed policies attached to the role. These policies are the role's // access (permissions) policies. @@ -11999,19 +9831,25 @@ type RoleDetail struct { // The path to the role. For more information about paths, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Path *string `min:"1" type:"string"` + Path *string `type:"string"` // The stable and unique string identifying the role. For more information about // IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - RoleId *string `min:"16" type:"string"` + RoleId *string `type:"string"` // The friendly name that identifies the role. - RoleName *string `min:"1" type:"string"` + RoleName *string `type:"string"` // A list of inline policies embedded in the role. These policies are the role's // access (permissions) policies. RolePolicyList []*PolicyDetail `type:"list"` + + metadataRoleDetail `json:"-" xml:"-"` +} + +type metadataRoleDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12026,16 +9864,20 @@ func (s RoleDetail) GoString() string { // Contains the list of SAML providers for this account. type SAMLProviderListEntry struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the SAML provider. - Arn *string `min:"20" type:"string"` + Arn *string `type:"string"` // The date and time when the SAML provider was created. CreateDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The expiration date and time for the SAML provider. ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataSAMLProviderListEntry `json:"-" xml:"-"` +} + +type metadataSAMLProviderListEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12053,16 +9895,14 @@ func (s SAMLProviderListEntry) GoString() string { // This data type is used as a response element in the GetSSHPublicKey and // UploadSSHPublicKey actions. type SSHPublicKey struct { - _ struct{} `type:"structure"` - // The MD5 message digest of the SSH public key. - Fingerprint *string `min:"48" type:"string" required:"true"` + Fingerprint *string `type:"string" required:"true"` // The SSH public key. - SSHPublicKeyBody *string `min:"1" type:"string" required:"true"` + SSHPublicKeyBody *string `type:"string" required:"true"` // The unique identifier for the SSH public key. - SSHPublicKeyId *string `min:"20" type:"string" required:"true"` + SSHPublicKeyId *string `type:"string" required:"true"` // The status of the SSH public key. Active means the key can be used for authentication // with an AWS CodeCommit repository. Inactive means the key cannot be used. @@ -12073,7 +9913,13 @@ type SSHPublicKey struct { UploadDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The name of the IAM user associated with the SSH public key. - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataSSHPublicKey `json:"-" xml:"-"` +} + +type metadataSSHPublicKey struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12090,10 +9936,8 @@ func (s SSHPublicKey) GoString() string { // // This data type is used as a response element in the ListSSHPublicKeys action. type SSHPublicKeyMetadata struct { - _ struct{} `type:"structure"` - // The unique identifier for the SSH public key. - SSHPublicKeyId *string `min:"20" type:"string" required:"true"` + SSHPublicKeyId *string `type:"string" required:"true"` // The status of the SSH public key. Active means the key can be used for authentication // with an AWS CodeCommit repository. Inactive means the key cannot be used. @@ -12104,7 +9948,13 @@ type SSHPublicKeyMetadata struct { UploadDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` // The name of the IAM user associated with the SSH public key. - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataSSHPublicKeyMetadata `json:"-" xml:"-"` +} + +type metadataSSHPublicKeyMetadata struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12122,17 +9972,21 @@ func (s SSHPublicKeyMetadata) GoString() string { // This data type is used as a response element in the GetServerCertificate // action. type ServerCertificate struct { - _ struct{} `type:"structure"` - // The contents of the public key certificate. - CertificateBody *string `min:"1" type:"string" required:"true"` + CertificateBody *string `type:"string" required:"true"` // The contents of the public key certificate chain. - CertificateChain *string `min:"1" type:"string"` + CertificateChain *string `type:"string"` // The meta information of the server certificate, such as its name, path, ID, // and ARN. ServerCertificateMetadata *ServerCertificateMetadata `type:"structure" required:"true"` + + metadataServerCertificate `json:"-" xml:"-"` +} + +type metadataServerCertificate struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12151,13 +10005,11 @@ func (s ServerCertificate) GoString() string { // This data type is used as a response element in the UploadServerCertificate // and ListServerCertificates actions. type ServerCertificateMetadata struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) specifying the server certificate. For more // information about ARNs and how to use them in policies, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Arn *string `min:"20" type:"string" required:"true"` + Arn *string `type:"string" required:"true"` // The date on which the certificate is set to expire. Expiration *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -12165,18 +10017,24 @@ type ServerCertificateMetadata struct { // The path to the server certificate. For more information about paths, see // IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Path *string `min:"1" type:"string" required:"true"` + Path *string `type:"string" required:"true"` // The stable and unique string identifying the server certificate. For more // information about IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - ServerCertificateId *string `min:"16" type:"string" required:"true"` + ServerCertificateId *string `type:"string" required:"true"` // The name that identifies the server certificate. - ServerCertificateName *string `min:"1" type:"string" required:"true"` + ServerCertificateName *string `type:"string" required:"true"` // The date when the server certificate was uploaded. UploadDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataServerCertificateMetadata `json:"-" xml:"-"` +} + +type metadataServerCertificateMetadata struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12190,22 +10048,25 @@ func (s ServerCertificateMetadata) GoString() string { } type SetDefaultPolicyVersionInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the IAM policy whose default version you - // want to set. + // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // For more information about ARNs, go to Amazon Resource Names (ARNs) and + // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - PolicyArn *string `min:"20" type:"string" required:"true"` + PolicyArn *string `type:"string" required:"true"` // The version of the policy to set as the default (operative) version. // // For more information about managed policy versions, see Versioning for Managed // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) - // in the IAM User Guide. + // in the Using IAM guide. VersionId *string `type:"string" required:"true"` + + metadataSetDefaultPolicyVersionInput `json:"-" xml:"-"` +} + +type metadataSetDefaultPolicyVersionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12218,27 +10079,12 @@ func (s SetDefaultPolicyVersionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetDefaultPolicyVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetDefaultPolicyVersionInput"} - if s.PolicyArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyArn")) - } - if s.PolicyArn != nil && len(*s.PolicyArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 20)) - } - if s.VersionId == nil { - invalidParams.Add(request.NewErrParamRequired("VersionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetDefaultPolicyVersionOutput struct { + metadataSetDefaultPolicyVersionOutput `json:"-" xml:"-"` } -type SetDefaultPolicyVersionOutput struct { - _ struct{} `type:"structure"` +type metadataSetDefaultPolicyVersionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12256,503 +10102,42 @@ func (s SetDefaultPolicyVersionOutput) GoString() string { // This data type is used as a response element in the UploadSigningCertificate // and ListSigningCertificates actions. type SigningCertificate struct { - _ struct{} `type:"structure"` - // The contents of the signing certificate. - CertificateBody *string `min:"1" type:"string" required:"true"` - - // The ID for the signing certificate. - CertificateId *string `min:"24" type:"string" required:"true"` - - // The status of the signing certificate. Active means the key is valid for - // API calls, while Inactive means it is not. - Status *string `type:"string" required:"true" enum:"statusType"` - - // The date when the signing certificate was uploaded. - UploadDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The name of the user the signing certificate is associated with. - UserName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s SigningCertificate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SigningCertificate) GoString() string { - return s.String() -} - -type SimulateCustomPolicyInput struct { - _ struct{} `type:"structure"` - - // A list of names of API actions to evaluate in the simulation. Each action - // is evaluated against each resource. Each action must include the service - // identifier, such as iam:CreateUser. - ActionNames []*string `type:"list" required:"true"` - - // The ARN of the IAM user that you want to use as the simulated caller of the - // APIs. CallerArn is required if you include a ResourcePolicy so that the policy's - // Principal element has a value to use in evaluating the policy. - // - // You can specify only the ARN of an IAM user. You cannot specify the ARN - // of an assumed role, federated user, or a service principal. - CallerArn *string `min:"1" type:"string"` - - // A list of context keys and corresponding values for the simulation to use. - // Whenever a context key is evaluated in one of the simulated IAM permission - // policies, the corresponding value is supplied. - ContextEntries []*ContextEntry `type:"list"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` - - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. - // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` - - // A list of policy documents to include in the simulation. Each document is - // specified as a string containing the complete, valid JSON text of an IAM - // policy. Do not include any resource-based policies in this parameter. Any - // resource-based policy must be submitted with the ResourcePolicy parameter. - // The policies cannot be "scope-down" policies, such as you could include in - // a call to GetFederationToken (http://docs.aws.amazon.com/IAM/latest/APIReference/API_GetFederationToken.html) - // or one of the AssumeRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_AssumeRole.html) - // APIs to restrict what a user can do while using the temporary credentials. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PolicyInputList []*string `type:"list" required:"true"` - - // A list of ARNs of AWS resources to include in the simulation. If this parameter - // is not provided then the value defaults to * (all resources). Each API in - // the ActionNames parameter is evaluated for each resource in this list. The - // simulation determines the access result (allowed or denied) of each combination - // and reports it in the response. - // - // The simulation does not automatically retrieve policies for the specified - // resources. If you want to include a resource policy in the simulation, then - // you must include the policy as a string in the ResourcePolicy parameter. - // - // If you include a ResourcePolicy, then it must be applicable to all of the - // resources included in the simulation or you receive an invalid input error. - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // in the AWS General Reference. - ResourceArns []*string `type:"list"` - - // Specifies the type of simulation to run. Different APIs that support resource-based - // policies require different combinations of resources. By specifying the type - // of simulation to run, you enable the policy simulator to enforce the presence - // of the required resources to ensure reliable simulation results. If your - // simulation does not match one of the following scenarios, then you can omit - // this parameter. The following list shows each of the supported scenario values - // and the resources that you must define to run the simulation. - // - // Each of the EC2 scenarios requires that you specify instance, image, and - // security-group resources. If your scenario includes an EBS volume, then you - // must specify that volume as a resource. If the EC2 scenario includes VPC, - // then you must supply the network-interface resource. If it includes an IP - // subnet, then you must specify the subnet resource. For more information on - // the EC2 scenario options, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) - // in the AWS EC2 User Guide. - // - // EC2-Classic-InstanceStore - // - // instance, image, security-group - // - // EC2-Classic-EBS - // - // instance, image, security-group, volume - // - // EC2-VPC-InstanceStore - // - // instance, image, security-group, network-interface - // - // EC2-VPC-InstanceStore-Subnet - // - // instance, image, security-group, network-interface, subnet - // - // EC2-VPC-EBS - // - // instance, image, security-group, network-interface, volume - // - // EC2-VPC-EBS-Subnet - // - // instance, image, security-group, network-interface, subnet, volume - ResourceHandlingOption *string `min:"1" type:"string"` - - // An AWS account ID that specifies the owner of any simulated resource that - // does not identify its owner in the resource ARN, such as an S3 bucket or - // object. If ResourceOwner is specified, it is also used as the account owner - // of any ResourcePolicy included in the simulation. If the ResourceOwner parameter - // is not specified, then the owner of the resources and the resource policy - // defaults to the account of the identity provided in CallerArn. This parameter - // is required only if you specify a resource-based policy and account that - // owns the resource is different from the account that owns the simulated calling - // user CallerArn. - ResourceOwner *string `min:"1" type:"string"` - - // A resource-based policy to include in the simulation provided as a string. - // Each resource in the simulation is treated as if it had this policy attached. - // You can include only one resource-based policy in a simulation. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - ResourcePolicy *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s SimulateCustomPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SimulateCustomPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SimulateCustomPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SimulateCustomPolicyInput"} - if s.ActionNames == nil { - invalidParams.Add(request.NewErrParamRequired("ActionNames")) - } - if s.CallerArn != nil && len(*s.CallerArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CallerArn", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.PolicyInputList == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyInputList")) - } - if s.ResourceHandlingOption != nil && len(*s.ResourceHandlingOption) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceHandlingOption", 1)) - } - if s.ResourceOwner != nil && len(*s.ResourceOwner) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceOwner", 1)) - } - if s.ResourcePolicy != nil && len(*s.ResourcePolicy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourcePolicy", 1)) - } - if s.ContextEntries != nil { - for i, v := range s.ContextEntries { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContextEntries", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the response to a successful SimulatePrincipalPolicy or SimulateCustomPolicy -// request. -type SimulatePolicyResponse struct { - _ struct{} `type:"structure"` - - // The results of the simulation. - EvaluationResults []*EvaluationResult `type:"list"` - - // A flag that indicates whether there are more items to return. If your results - // were truncated, you can make a subsequent pagination request using the Marker - // request parameter to retrieve more items. Note that IAM might return fewer - // than the MaxItems number of results even when there are more results available. - // We recommend that you check IsTruncated after every call to ensure that you - // receive all of your results. - IsTruncated *bool `type:"boolean"` - - // When IsTruncated is true, this element is present and contains the value - // to use for the Marker parameter in a subsequent pagination request. - Marker *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s SimulatePolicyResponse) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SimulatePolicyResponse) GoString() string { - return s.String() -} - -type SimulatePrincipalPolicyInput struct { - _ struct{} `type:"structure"` + CertificateBody *string `type:"string" required:"true"` - // A list of names of API actions to evaluate in the simulation. Each action - // is evaluated for each resource. Each action must include the service identifier, - // such as iam:CreateUser. - ActionNames []*string `type:"list" required:"true"` - - // The ARN of the IAM user that you want to specify as the simulated caller - // of the APIs. If you do not specify a CallerArn, it defaults to the ARN of - // the user that you specify in PolicySourceArn, if you specified a user. If - // you include both a PolicySourceArn (for example, arn:aws:iam::123456789012:user/David) - // and a CallerArn (for example, arn:aws:iam::123456789012:user/Bob), the result - // is that you simulate calling the APIs as Bob, as if Bob had David's policies. - // - // You can specify only the ARN of an IAM user. You cannot specify the ARN - // of an assumed role, federated user, or a service principal. - // - // CallerArn is required if you include a ResourcePolicy and the PolicySourceArn - // is not the ARN for an IAM user. This is required so that the resource-based - // policy's Principal element has a value to use in evaluating the policy. - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // in the AWS General Reference. - CallerArn *string `min:"1" type:"string"` - - // A list of context keys and corresponding values for the simulation to use. - // Whenever a context key is evaluated in one of the simulated IAM permission - // policies, the corresponding value is supplied. - ContextEntries []*ContextEntry `type:"list"` - - // Use this parameter only when paginating results and only after you receive - // a response indicating that the results are truncated. Set it to the value - // of the Marker element in the response that you received to indicate where - // the next call should start. - Marker *string `min:"1" type:"string"` - - // Use this only when paginating results to indicate the maximum number of items - // you want in the response. If additional items exist beyond the maximum you - // specify, the IsTruncated response element is true. - // - // This parameter is optional. If you do not include it, it defaults to 100. - // Note that IAM might return fewer results, even when there are more results - // available. In that case, the IsTruncated response element returns true and - // Marker contains a value to include in the subsequent call that tells the - // service where to continue from. - MaxItems *int64 `min:"1" type:"integer"` - - // An optional list of additional policy documents to include in the simulation. - // Each document is specified as a string containing the complete, valid JSON - // text of an IAM policy. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PolicyInputList []*string `type:"list"` - - // The Amazon Resource Name (ARN) of a user, group, or role whose policies you - // want to include in the simulation. If you specify a user, group, or role, - // the simulation includes all policies that are associated with that entity. - // If you specify a user, the simulation also includes all policies that are - // attached to any groups the user belongs to. - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // in the AWS General Reference. - PolicySourceArn *string `min:"20" type:"string" required:"true"` - - // A list of ARNs of AWS resources to include in the simulation. If this parameter - // is not provided then the value defaults to * (all resources). Each API in - // the ActionNames parameter is evaluated for each resource in this list. The - // simulation determines the access result (allowed or denied) of each combination - // and reports it in the response. - // - // The simulation does not automatically retrieve policies for the specified - // resources. If you want to include a resource policy in the simulation, then - // you must include the policy as a string in the ResourcePolicy parameter. - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // in the AWS General Reference. - ResourceArns []*string `type:"list"` - - // Specifies the type of simulation to run. Different APIs that support resource-based - // policies require different combinations of resources. By specifying the type - // of simulation to run, you enable the policy simulator to enforce the presence - // of the required resources to ensure reliable simulation results. If your - // simulation does not match one of the following scenarios, then you can omit - // this parameter. The following list shows each of the supported scenario values - // and the resources that you must define to run the simulation. - // - // Each of the EC2 scenarios requires that you specify instance, image, and - // security-group resources. If your scenario includes an EBS volume, then you - // must specify that volume as a resource. If the EC2 scenario includes VPC, - // then you must supply the network-interface resource. If it includes an IP - // subnet, then you must specify the subnet resource. For more information on - // the EC2 scenario options, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) - // in the AWS EC2 User Guide. - // - // EC2-Classic-InstanceStore - // - // instance, image, security-group - // - // EC2-Classic-EBS - // - // instance, image, security-group, volume - // - // EC2-VPC-InstanceStore - // - // instance, image, security-group, network-interface - // - // EC2-VPC-InstanceStore-Subnet - // - // instance, image, security-group, network-interface, subnet - // - // EC2-VPC-EBS - // - // instance, image, security-group, network-interface, volume - // - // EC2-VPC-EBS-Subnet - // - // instance, image, security-group, network-interface, subnet, volume - ResourceHandlingOption *string `min:"1" type:"string"` - - // An AWS account ID that specifies the owner of any simulated resource that - // does not identify its owner in the resource ARN, such as an S3 bucket or - // object. If ResourceOwner is specified, it is also used as the account owner - // of any ResourcePolicy included in the simulation. If the ResourceOwner parameter - // is not specified, then the owner of the resources and the resource policy - // defaults to the account of the identity provided in CallerArn. This parameter - // is required only if you specify a resource-based policy and account that - // owns the resource is different from the account that owns the simulated calling - // user CallerArn. - ResourceOwner *string `min:"1" type:"string"` - - // A resource-based policy to include in the simulation provided as a string. - // Each resource in the simulation is treated as if it had this policy attached. - // You can include only one resource-based policy in a simulation. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - ResourcePolicy *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s SimulatePrincipalPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SimulatePrincipalPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SimulatePrincipalPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SimulatePrincipalPolicyInput"} - if s.ActionNames == nil { - invalidParams.Add(request.NewErrParamRequired("ActionNames")) - } - if s.CallerArn != nil && len(*s.CallerArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CallerArn", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.PolicySourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicySourceArn")) - } - if s.PolicySourceArn != nil && len(*s.PolicySourceArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicySourceArn", 20)) - } - if s.ResourceHandlingOption != nil && len(*s.ResourceHandlingOption) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceHandlingOption", 1)) - } - if s.ResourceOwner != nil && len(*s.ResourceOwner) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceOwner", 1)) - } - if s.ResourcePolicy != nil && len(*s.ResourcePolicy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourcePolicy", 1)) - } - if s.ContextEntries != nil { - for i, v := range s.ContextEntries { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContextEntries", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The ID for the signing certificate. + CertificateId *string `type:"string" required:"true"` -// Contains a reference to a Statement element in a policy document that determines -// the result of the simulation. -// -// This data type is used by the MatchedStatements member of the EvaluationResult -// type. -type Statement struct { - _ struct{} `type:"structure"` + // The status of the signing certificate. Active means the key is valid for + // API calls, while Inactive means it is not. + Status *string `type:"string" required:"true" enum:"statusType"` - // The row and column of the end of a Statement in an IAM policy. - EndPosition *Position `type:"structure"` + // The date when the signing certificate was uploaded. + UploadDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The identifier of the policy that was provided as an input. - SourcePolicyId *string `type:"string"` + // The name of the user the signing certificate is associated with. + UserName *string `type:"string" required:"true"` - // The type of the policy. - SourcePolicyType *string `type:"string" enum:"PolicySourceType"` + metadataSigningCertificate `json:"-" xml:"-"` +} - // The row and column of the beginning of the Statement in an IAM policy. - StartPosition *Position `type:"structure"` +type metadataSigningCertificate struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Statement) String() string { +func (s SigningCertificate) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Statement) GoString() string { +func (s SigningCertificate) GoString() string { return s.String() } type UpdateAccessKeyInput struct { - _ struct{} `type:"structure"` - // The access key ID of the secret access key you want to update. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters that can consist of any upper or lowercased letter - // or digit. - AccessKeyId *string `min:"16" type:"string" required:"true"` + AccessKeyId *string `type:"string" required:"true"` // The status you want to assign to the secret access key. Active means the // key can be used for API calls to AWS, while Inactive means the key cannot @@ -12760,11 +10145,13 @@ type UpdateAccessKeyInput struct { Status *string `type:"string" required:"true" enum:"statusType"` // The name of the user whose key you want to update. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` + + metadataUpdateAccessKeyInput `json:"-" xml:"-"` +} + +type metadataUpdateAccessKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12777,30 +10164,12 @@ func (s UpdateAccessKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAccessKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAccessKeyInput"} - if s.AccessKeyId == nil { - invalidParams.Add(request.NewErrParamRequired("AccessKeyId")) - } - if s.AccessKeyId != nil && len(*s.AccessKeyId) < 16 { - invalidParams.Add(request.NewErrParamMinLen("AccessKeyId", 16)) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateAccessKeyOutput struct { + metadataUpdateAccessKeyOutput `json:"-" xml:"-"` } -type UpdateAccessKeyOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateAccessKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12814,12 +10183,10 @@ func (s UpdateAccessKeyOutput) GoString() string { } type UpdateAccountPasswordPolicyInput struct { - _ struct{} `type:"structure"` - // Allows all IAM users in your account to use the AWS Management Console to // change their own passwords. For more information, see Letting IAM Users Change // Their Own Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/HowToPwdIAMUser.html) - // in the IAM User Guide. + // in the Using IAM guide. // // Default value: false AllowUsersToChangePassword *bool `type:"boolean"` @@ -12833,19 +10200,19 @@ type UpdateAccountPasswordPolicyInput struct { // of 0 means IAM user passwords never expire. // // Default value: 0 - MaxPasswordAge *int64 `min:"1" type:"integer"` + MaxPasswordAge *int64 `type:"integer"` // The minimum number of characters allowed in an IAM user password. // // Default value: 6 - MinimumPasswordLength *int64 `min:"6" type:"integer"` + MinimumPasswordLength *int64 `type:"integer"` // Specifies the number of previous passwords that IAM users are prevented from // reusing. The default value of 0 means IAM users are not prevented from reusing // previous passwords. // // Default value: 0 - PasswordReusePrevention *int64 `min:"1" type:"integer"` + PasswordReusePrevention *int64 `type:"integer"` // Specifies whether IAM user passwords must contain at least one lowercase // character from the ISO basic Latin alphabet (a to z). @@ -12872,6 +10239,12 @@ type UpdateAccountPasswordPolicyInput struct { // // Default value: false RequireUppercaseCharacters *bool `type:"boolean"` + + metadataUpdateAccountPasswordPolicyInput `json:"-" xml:"-"` +} + +type metadataUpdateAccountPasswordPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12884,27 +10257,12 @@ func (s UpdateAccountPasswordPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAccountPasswordPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAccountPasswordPolicyInput"} - if s.MaxPasswordAge != nil && *s.MaxPasswordAge < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxPasswordAge", 1)) - } - if s.MinimumPasswordLength != nil && *s.MinimumPasswordLength < 6 { - invalidParams.Add(request.NewErrParamMinValue("MinimumPasswordLength", 6)) - } - if s.PasswordReusePrevention != nil && *s.PasswordReusePrevention < 1 { - invalidParams.Add(request.NewErrParamMinValue("PasswordReusePrevention", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateAccountPasswordPolicyOutput struct { + metadataUpdateAccountPasswordPolicyOutput `json:"-" xml:"-"` } -type UpdateAccountPasswordPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateAccountPasswordPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12918,23 +10276,17 @@ func (s UpdateAccountPasswordPolicyOutput) GoString() string { } type UpdateAssumeRolePolicyInput struct { - _ struct{} `type:"structure"` - // The policy that grants an entity permission to assume the role. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PolicyDocument *string `min:"1" type:"string" required:"true"` + PolicyDocument *string `type:"string" required:"true"` - // The name of the role to update with the new policy. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleName *string `min:"1" type:"string" required:"true"` + // The name of the role to update. + RoleName *string `type:"string" required:"true"` + + metadataUpdateAssumeRolePolicyInput `json:"-" xml:"-"` +} + +type metadataUpdateAssumeRolePolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12947,30 +10299,12 @@ func (s UpdateAssumeRolePolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAssumeRolePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAssumeRolePolicyInput"} - if s.PolicyDocument == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyDocument")) - } - if s.PolicyDocument != nil && len(*s.PolicyDocument) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyDocument", 1)) - } - if s.RoleName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleName")) - } - if s.RoleName != nil && len(*s.RoleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateAssumeRolePolicyOutput struct { + metadataUpdateAssumeRolePolicyOutput `json:"-" xml:"-"` } -type UpdateAssumeRolePolicyOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateAssumeRolePolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12984,31 +10318,21 @@ func (s UpdateAssumeRolePolicyOutput) GoString() string { } type UpdateGroupInput struct { - _ struct{} `type:"structure"` + // Name of the group to update. If you're changing the name of the group, this + // is the original name. + GroupName *string `type:"string" required:"true"` - // Name of the IAM group to update. If you're changing the name of the group, - // this is the original name. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - GroupName *string `min:"1" type:"string" required:"true"` + // New name for the group. Only include this if changing the group's name. + NewGroupName *string `type:"string"` - // New name for the IAM group. Only include this if changing the group's name. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - NewGroupName *string `min:"1" type:"string"` + // New path for the group. Only include this if changing the group's path. + NewPath *string `type:"string"` - // New path for the IAM group. Only include this if changing the group's path. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. - NewPath *string `min:"1" type:"string"` + metadataUpdateGroupInput `json:"-" xml:"-"` +} + +type metadataUpdateGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13021,30 +10345,12 @@ func (s UpdateGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) - } - if s.GroupName != nil && len(*s.GroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) - } - if s.NewGroupName != nil && len(*s.NewGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NewGroupName", 1)) - } - if s.NewPath != nil && len(*s.NewPath) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NewPath", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateGroupOutput struct { + metadataUpdateGroupOutput `json:"-" xml:"-"` } -type UpdateGroupOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13058,29 +10364,20 @@ func (s UpdateGroupOutput) GoString() string { } type UpdateLoginProfileInput struct { - _ struct{} `type:"structure"` + // The new password for the specified user. + Password *string `type:"string"` - // The new password for the specified IAM user. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). However, the format can be further - // restricted by the account administrator by setting a password policy on the - // AWS account. For more information, see UpdateAccountPasswordPolicy. - Password *string `min:"1" type:"string"` - - // Allows this new password to be used only once by requiring the specified - // IAM user to set a new password on next sign-in. + // Require the specified user to set a new password on next sign-in. PasswordResetRequired *bool `type:"boolean"` // The name of the user whose password you want to update. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataUpdateLoginProfileInput `json:"-" xml:"-"` +} + +type metadataUpdateLoginProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13093,27 +10390,12 @@ func (s UpdateLoginProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateLoginProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateLoginProfileInput"} - if s.Password != nil && len(*s.Password) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Password", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateLoginProfileOutput struct { + metadataUpdateLoginProfileOutput `json:"-" xml:"-"` } -type UpdateLoginProfileOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateLoginProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13127,20 +10409,20 @@ func (s UpdateLoginProfileOutput) GoString() string { } type UpdateOpenIDConnectProviderThumbprintInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the IAM OIDC provider resource object for - // which you want to update the thumbprint. You can get a list of OIDC provider - // ARNs by using the ListOpenIDConnectProviders action. - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // in the AWS General Reference. - OpenIDConnectProviderArn *string `min:"20" type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider + // to update the thumbprint for. You can get a list of OIDC provider ARNs by + // using the ListOpenIDConnectProviders action. + OpenIDConnectProviderArn *string `type:"string" required:"true"` // A list of certificate thumbprints that are associated with the specified // IAM OpenID Connect provider. For more information, see CreateOpenIDConnectProvider. ThumbprintList []*string `type:"list" required:"true"` + + metadataUpdateOpenIDConnectProviderThumbprintInput `json:"-" xml:"-"` +} + +type metadataUpdateOpenIDConnectProviderThumbprintInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13153,27 +10435,12 @@ func (s UpdateOpenIDConnectProviderThumbprintInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateOpenIDConnectProviderThumbprintInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateOpenIDConnectProviderThumbprintInput"} - if s.OpenIDConnectProviderArn == nil { - invalidParams.Add(request.NewErrParamRequired("OpenIDConnectProviderArn")) - } - if s.OpenIDConnectProviderArn != nil && len(*s.OpenIDConnectProviderArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("OpenIDConnectProviderArn", 20)) - } - if s.ThumbprintList == nil { - invalidParams.Add(request.NewErrParamRequired("ThumbprintList")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateOpenIDConnectProviderThumbprintOutput struct { + metadataUpdateOpenIDConnectProviderThumbprintOutput `json:"-" xml:"-"` } -type UpdateOpenIDConnectProviderThumbprintOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateOpenIDConnectProviderThumbprintOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13187,21 +10454,21 @@ func (s UpdateOpenIDConnectProviderThumbprintOutput) GoString() string { } type UpdateSAMLProviderInput struct { - _ struct{} `type:"structure"` - // An XML document generated by an identity provider (IdP) that supports SAML // 2.0. The document includes the issuer's name, expiration information, and // keys that can be used to validate the SAML authentication response (assertions) // that are received from the IdP. You must generate the metadata document using // the identity management software that is used as your organization's IdP. - SAMLMetadataDocument *string `min:"1000" type:"string" required:"true"` + SAMLMetadataDocument *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the SAML provider to update. - // - // For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // in the AWS General Reference. - SAMLProviderArn *string `min:"20" type:"string" required:"true"` + SAMLProviderArn *string `type:"string" required:"true"` + + metadataUpdateSAMLProviderInput `json:"-" xml:"-"` +} + +type metadataUpdateSAMLProviderInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13214,34 +10481,16 @@ func (s UpdateSAMLProviderInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSAMLProviderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSAMLProviderInput"} - if s.SAMLMetadataDocument == nil { - invalidParams.Add(request.NewErrParamRequired("SAMLMetadataDocument")) - } - if s.SAMLMetadataDocument != nil && len(*s.SAMLMetadataDocument) < 1000 { - invalidParams.Add(request.NewErrParamMinLen("SAMLMetadataDocument", 1000)) - } - if s.SAMLProviderArn == nil { - invalidParams.Add(request.NewErrParamRequired("SAMLProviderArn")) - } - if s.SAMLProviderArn != nil && len(*s.SAMLProviderArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("SAMLProviderArn", 20)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful UpdateSAMLProvider request. type UpdateSAMLProviderOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the SAML provider that was updated. - SAMLProviderArn *string `min:"20" type:"string"` + SAMLProviderArn *string `type:"string"` + + metadataUpdateSAMLProviderOutput `json:"-" xml:"-"` +} + +type metadataUpdateSAMLProviderOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13255,14 +10504,8 @@ func (s UpdateSAMLProviderOutput) GoString() string { } type UpdateSSHPublicKeyInput struct { - _ struct{} `type:"structure"` - // The unique identifier for the SSH public key. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters that can consist of any upper or lowercased letter - // or digit. - SSHPublicKeyId *string `min:"20" type:"string" required:"true"` + SSHPublicKeyId *string `type:"string" required:"true"` // The status to assign to the SSH public key. Active means the key can be used // for authentication with an AWS CodeCommit repository. Inactive means the @@ -13270,11 +10513,13 @@ type UpdateSSHPublicKeyInput struct { Status *string `type:"string" required:"true" enum:"statusType"` // The name of the IAM user associated with the SSH public key. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataUpdateSSHPublicKeyInput `json:"-" xml:"-"` +} + +type metadataUpdateSSHPublicKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13287,33 +10532,12 @@ func (s UpdateSSHPublicKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSSHPublicKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSSHPublicKeyInput"} - if s.SSHPublicKeyId == nil { - invalidParams.Add(request.NewErrParamRequired("SSHPublicKeyId")) - } - if s.SSHPublicKeyId != nil && len(*s.SSHPublicKeyId) < 20 { - invalidParams.Add(request.NewErrParamMinLen("SSHPublicKeyId", 20)) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateSSHPublicKeyOutput struct { + metadataUpdateSSHPublicKeyOutput `json:"-" xml:"-"` } -type UpdateSSHPublicKeyOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateSSHPublicKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13327,33 +10551,23 @@ func (s UpdateSSHPublicKeyOutput) GoString() string { } type UpdateServerCertificateInput struct { - _ struct{} `type:"structure"` - // The new path for the server certificate. Include this only if you are updating // the server certificate's path. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. - NewPath *string `min:"1" type:"string"` + NewPath *string `type:"string"` // The new name for the server certificate. Include this only if you are updating // the server certificate's name. The name of the certificate cannot contain // any spaces. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - NewServerCertificateName *string `min:"1" type:"string"` + NewServerCertificateName *string `type:"string"` // The name of the server certificate that you want to update. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - ServerCertificateName *string `min:"1" type:"string" required:"true"` + ServerCertificateName *string `type:"string" required:"true"` + + metadataUpdateServerCertificateInput `json:"-" xml:"-"` +} + +type metadataUpdateServerCertificateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13366,30 +10580,12 @@ func (s UpdateServerCertificateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateServerCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateServerCertificateInput"} - if s.NewPath != nil && len(*s.NewPath) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NewPath", 1)) - } - if s.NewServerCertificateName != nil && len(*s.NewServerCertificateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NewServerCertificateName", 1)) - } - if s.ServerCertificateName == nil { - invalidParams.Add(request.NewErrParamRequired("ServerCertificateName")) - } - if s.ServerCertificateName != nil && len(*s.ServerCertificateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServerCertificateName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateServerCertificateOutput struct { + metadataUpdateServerCertificateOutput `json:"-" xml:"-"` } -type UpdateServerCertificateOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateServerCertificateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13403,26 +10599,22 @@ func (s UpdateServerCertificateOutput) GoString() string { } type UpdateSigningCertificateInput struct { - _ struct{} `type:"structure"` - // The ID of the signing certificate you want to update. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters that can consist of any upper or lowercased letter - // or digit. - CertificateId *string `min:"24" type:"string" required:"true"` + CertificateId *string `type:"string" required:"true"` // The status you want to assign to the certificate. Active means the certificate // can be used for API calls to AWS, while Inactive means the certificate cannot // be used. Status *string `type:"string" required:"true" enum:"statusType"` - // The name of the IAM user the signing certificate belongs to. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string"` + // The name of the user the signing certificate belongs to. + UserName *string `type:"string"` + + metadataUpdateSigningCertificateInput `json:"-" xml:"-"` +} + +type metadataUpdateSigningCertificateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13435,30 +10627,12 @@ func (s UpdateSigningCertificateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSigningCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSigningCertificateInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 24 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 24)) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateSigningCertificateOutput struct { + metadataUpdateSigningCertificateOutput `json:"-" xml:"-"` } -type UpdateSigningCertificateOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateSigningCertificateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13472,33 +10646,23 @@ func (s UpdateSigningCertificateOutput) GoString() string { } type UpdateUserInput struct { - _ struct{} `type:"structure"` - - // New path for the IAM user. Include this parameter only if you're changing - // the user's path. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. - NewPath *string `min:"1" type:"string"` + // New path for the user. Include this parameter only if you're changing the + // user's path. + NewPath *string `type:"string"` // New name for the user. Include this parameter only if you're changing the // user's name. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - NewUserName *string `min:"1" type:"string"` + NewUserName *string `type:"string"` // Name of the user to update. If you're changing the name of the user, this // is the original user name. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataUpdateUserInput `json:"-" xml:"-"` +} + +type metadataUpdateUserInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13511,30 +10675,12 @@ func (s UpdateUserInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateUserInput"} - if s.NewPath != nil && len(*s.NewPath) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NewPath", 1)) - } - if s.NewUserName != nil && len(*s.NewUserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NewUserName", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateUserOutput struct { + metadataUpdateUserOutput `json:"-" xml:"-"` } -type UpdateUserOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateUserOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13548,24 +10694,18 @@ func (s UpdateUserOutput) GoString() string { } type UploadSSHPublicKeyInput struct { - _ struct{} `type:"structure"` - // The SSH public key. The public key must be encoded in ssh-rsa format or PEM // format. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - SSHPublicKeyBody *string `min:"1" type:"string" required:"true"` + SSHPublicKeyBody *string `type:"string" required:"true"` // The name of the IAM user to associate the SSH public key with. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataUploadSSHPublicKeyInput `json:"-" xml:"-"` +} + +type metadataUploadSSHPublicKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13578,34 +10718,16 @@ func (s UploadSSHPublicKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UploadSSHPublicKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UploadSSHPublicKeyInput"} - if s.SSHPublicKeyBody == nil { - invalidParams.Add(request.NewErrParamRequired("SSHPublicKeyBody")) - } - if s.SSHPublicKeyBody != nil && len(*s.SSHPublicKeyBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SSHPublicKeyBody", 1)) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful UploadSSHPublicKey request. type UploadSSHPublicKeyOutput struct { - _ struct{} `type:"structure"` - // Contains information about the SSH public key. SSHPublicKey *SSHPublicKey `type:"structure"` + + metadataUploadSSHPublicKeyOutput `json:"-" xml:"-"` +} + +type metadataUploadSSHPublicKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13619,60 +10741,38 @@ func (s UploadSSHPublicKeyOutput) GoString() string { } type UploadServerCertificateInput struct { - _ struct{} `type:"structure"` - // The contents of the public key certificate in PEM-encoded format. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - CertificateBody *string `min:"1" type:"string" required:"true"` + CertificateBody *string `type:"string" required:"true"` // The contents of the certificate chain. This is typically a concatenation // of the PEM-encoded public key certificates of the chain. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - CertificateChain *string `min:"1" type:"string"` + CertificateChain *string `type:"string"` // The path for the server certificate. For more information about paths, see // IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) - // in the IAM User Guide. + // in the Using IAM guide. // // This parameter is optional. If it is not included, it defaults to a slash - // (/). The regex pattern (http://wikipedia.org/wiki/regex) for this parameter - // is a string of characters consisting of either a forward slash (/) by itself - // or a string that must begin and end with forward slashes, containing any - // ASCII character from the ! (\u0021) thru the DEL character (\u007F), including - // most punctuation characters, digits, and upper and lowercased letters. + // (/). // - // If you are uploading a server certificate specifically for use with Amazon + // If you are uploading a server certificate specifically for use with Amazon // CloudFront distributions, you must specify a path using the --path option. // The path must begin with /cloudfront and must include a trailing slash (for // example, /cloudfront/test/). - Path *string `min:"1" type:"string"` + Path *string `type:"string"` // The contents of the private key in PEM-encoded format. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - PrivateKey *string `min:"1" type:"string" required:"true"` + PrivateKey *string `type:"string" required:"true"` // The name for the server certificate. Do not include the path in this value. // The name of the certificate cannot contain any spaces. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - ServerCertificateName *string `min:"1" type:"string" required:"true"` + ServerCertificateName *string `type:"string" required:"true"` + + metadataUploadServerCertificateInput `json:"-" xml:"-"` +} + +type metadataUploadServerCertificateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13685,47 +10785,17 @@ func (s UploadServerCertificateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UploadServerCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UploadServerCertificateInput"} - if s.CertificateBody == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateBody")) - } - if s.CertificateBody != nil && len(*s.CertificateBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CertificateBody", 1)) - } - if s.CertificateChain != nil && len(*s.CertificateChain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CertificateChain", 1)) - } - if s.Path != nil && len(*s.Path) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Path", 1)) - } - if s.PrivateKey == nil { - invalidParams.Add(request.NewErrParamRequired("PrivateKey")) - } - if s.PrivateKey != nil && len(*s.PrivateKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PrivateKey", 1)) - } - if s.ServerCertificateName == nil { - invalidParams.Add(request.NewErrParamRequired("ServerCertificateName")) - } - if s.ServerCertificateName != nil && len(*s.ServerCertificateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServerCertificateName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful UploadServerCertificate request. type UploadServerCertificateOutput struct { - _ struct{} `type:"structure"` - // The meta information of the uploaded server certificate without its certificate // body, certificate chain, and private key. ServerCertificateMetadata *ServerCertificateMetadata `type:"structure"` + + metadataUploadServerCertificateOutput `json:"-" xml:"-"` +} + +type metadataUploadServerCertificateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13739,23 +10809,17 @@ func (s UploadServerCertificateOutput) GoString() string { } type UploadSigningCertificateInput struct { - _ struct{} `type:"structure"` - // The contents of the signing certificate. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of any printable ASCII character ranging - // from the space character (\u0020) through end of the ASCII character range - // (\u00FF). It also includes the special characters tab (\u0009), line feed - // (\u000A), and carriage return (\u000D). - CertificateBody *string `min:"1" type:"string" required:"true"` + CertificateBody *string `type:"string" required:"true"` // The name of the user the signing certificate is for. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is - // a string of characters consisting of upper and lowercase alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` + + metadataUploadSigningCertificateInput `json:"-" xml:"-"` +} + +type metadataUploadSigningCertificateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13768,31 +10832,16 @@ func (s UploadSigningCertificateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UploadSigningCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UploadSigningCertificateInput"} - if s.CertificateBody == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateBody")) - } - if s.CertificateBody != nil && len(*s.CertificateBody) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CertificateBody", 1)) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful UploadSigningCertificate request. type UploadSigningCertificateOutput struct { - _ struct{} `type:"structure"` - // Information about the certificate. Certificate *SigningCertificate `type:"structure" required:"true"` + + metadataUploadSigningCertificateOutput `json:"-" xml:"-"` +} + +type metadataUploadSigningCertificateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13807,7 +10856,7 @@ func (s UploadSigningCertificateOutput) GoString() string { // Contains information about an IAM user entity. // -// This data type is used as a response element in the following actions: +// This data type is used as a response element in the following actions: // // CreateUser // @@ -13815,12 +10864,10 @@ func (s UploadSigningCertificateOutput) GoString() string { // // ListUsers type User struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) that identifies the user. For more information // about ARNs and how to use ARNs in policies, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Arn *string `min:"20" type:"string" required:"true"` + Arn *string `type:"string" required:"true"` // The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), // when the user was created. @@ -13847,15 +10894,21 @@ type User struct { // The path to the user. For more information about paths, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Path *string `min:"1" type:"string" required:"true"` + Path *string `type:"string" required:"true"` // The stable and unique string identifying the user. For more information about // IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - UserId *string `min:"16" type:"string" required:"true"` + UserId *string `type:"string" required:"true"` // The friendly name identifying the user. - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` + + metadataUser `json:"-" xml:"-"` +} + +type metadataUser struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13874,14 +10927,12 @@ func (s User) GoString() string { // This data type is used as a response element in the GetAccountAuthorizationDetails // action. type UserDetail struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources. // // For more information about ARNs, go to Amazon Resource Names (ARNs) and // AWS Service Namespaces (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // in the AWS General Reference. - Arn *string `min:"20" type:"string"` + Arn *string `type:"string"` // A list of the managed policies attached to the user. AttachedManagedPolicies []*AttachedPolicy `type:"list"` @@ -13896,18 +10947,24 @@ type UserDetail struct { // The path to the user. For more information about paths, see IAM Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - Path *string `min:"1" type:"string"` + Path *string `type:"string"` // The stable and unique string identifying the user. For more information about // IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. - UserId *string `min:"16" type:"string"` + UserId *string `type:"string"` // The friendly name identifying the user. - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` // A list of the inline policies embedded in the user. UserPolicyList []*PolicyDetail `type:"list"` + + metadataUserDetail `json:"-" xml:"-"` +} + +type metadataUserDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13922,12 +10979,8 @@ func (s UserDetail) GoString() string { // Contains information about a virtual MFA device. type VirtualMFADevice struct { - _ struct{} `type:"structure"` - // The Base32 seed defined as specified in RFC3548 (http://www.ietf.org/rfc/rfc3548.txt). // The Base32StringSeed is Base64-encoded. - // - // Base32StringSeed is automatically base64 encoded/decoded by the SDK. Base32StringSeed []byte `type:"blob"` // The date and time on which the virtual MFA device was enabled. @@ -13937,16 +10990,14 @@ type VirtualMFADevice struct { // where $virtualMFADeviceName is one of the create call arguments, AccountName // is the user name if set (otherwise, the account ID otherwise), and Base32String // is the seed in Base32 format. The Base32String value is Base64-encoded. - // - // QRCodePNG is automatically base64 encoded/decoded by the SDK. QRCodePNG []byte `type:"blob"` // The serial number associated with VirtualMFADevice. - SerialNumber *string `min:"9" type:"string" required:"true"` + SerialNumber *string `type:"string" required:"true"` // Contains information about an IAM user entity. // - // This data type is used as a response element in the following actions: + // This data type is used as a response element in the following actions: // // CreateUser // @@ -13954,6 +11005,12 @@ type VirtualMFADevice struct { // // ListUsers User *User `type:"structure"` + + metadataVirtualMFADevice `json:"-" xml:"-"` +} + +type metadataVirtualMFADevice struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13966,33 +11023,6 @@ func (s VirtualMFADevice) GoString() string { return s.String() } -const ( - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumString = "string" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumStringList = "stringList" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumNumeric = "numeric" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumNumericList = "numericList" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumBoolean = "boolean" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumBooleanList = "booleanList" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumIp = "ip" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumIpList = "ipList" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumBinary = "binary" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumBinaryList = "binaryList" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumDate = "date" - // @enum ContextKeyTypeEnum - ContextKeyTypeEnumDateList = "dateList" -) - const ( // @enum EntityType EntityTypeUser = "User" @@ -14006,32 +11036,6 @@ const ( EntityTypeAwsmanagedPolicy = "AWSManagedPolicy" ) -const ( - // @enum PolicyEvaluationDecisionType - PolicyEvaluationDecisionTypeAllowed = "allowed" - // @enum PolicyEvaluationDecisionType - PolicyEvaluationDecisionTypeExplicitDeny = "explicitDeny" - // @enum PolicyEvaluationDecisionType - PolicyEvaluationDecisionTypeImplicitDeny = "implicitDeny" -) - -const ( - // @enum PolicySourceType - PolicySourceTypeUser = "user" - // @enum PolicySourceType - PolicySourceTypeGroup = "group" - // @enum PolicySourceType - PolicySourceTypeRole = "role" - // @enum PolicySourceType - PolicySourceTypeAwsManaged = "aws-managed" - // @enum PolicySourceType - PolicySourceTypeUserManaged = "user-managed" - // @enum PolicySourceType - PolicySourceTypeResource = "resource" - // @enum PolicySourceType - PolicySourceTypeNone = "none" -) - const ( // @enum ReportFormatType ReportFormatTypeTextCsv = "text/csv" diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go index 1aebec8cd..89089312e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleIAM_AddClientIDToOpenIDConnectProvider() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.AddClientIDToOpenIDConnectProviderInput{ ClientID: aws.String("clientIDType"), // Required @@ -36,7 +35,7 @@ func ExampleIAM_AddClientIDToOpenIDConnectProvider() { } func ExampleIAM_AddRoleToInstanceProfile() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.AddRoleToInstanceProfileInput{ InstanceProfileName: aws.String("instanceProfileNameType"), // Required @@ -56,7 +55,7 @@ func ExampleIAM_AddRoleToInstanceProfile() { } func ExampleIAM_AddUserToGroup() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.AddUserToGroupInput{ GroupName: aws.String("groupNameType"), // Required @@ -76,7 +75,7 @@ func ExampleIAM_AddUserToGroup() { } func ExampleIAM_AttachGroupPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.AttachGroupPolicyInput{ GroupName: aws.String("groupNameType"), // Required @@ -96,7 +95,7 @@ func ExampleIAM_AttachGroupPolicy() { } func ExampleIAM_AttachRolePolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.AttachRolePolicyInput{ PolicyArn: aws.String("arnType"), // Required @@ -116,7 +115,7 @@ func ExampleIAM_AttachRolePolicy() { } func ExampleIAM_AttachUserPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.AttachUserPolicyInput{ PolicyArn: aws.String("arnType"), // Required @@ -136,7 +135,7 @@ func ExampleIAM_AttachUserPolicy() { } func ExampleIAM_ChangePassword() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ChangePasswordInput{ NewPassword: aws.String("passwordType"), // Required @@ -156,7 +155,7 @@ func ExampleIAM_ChangePassword() { } func ExampleIAM_CreateAccessKey() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreateAccessKeyInput{ UserName: aws.String("existingUserNameType"), @@ -175,7 +174,7 @@ func ExampleIAM_CreateAccessKey() { } func ExampleIAM_CreateAccountAlias() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreateAccountAliasInput{ AccountAlias: aws.String("accountAliasType"), // Required @@ -194,7 +193,7 @@ func ExampleIAM_CreateAccountAlias() { } func ExampleIAM_CreateGroup() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreateGroupInput{ GroupName: aws.String("groupNameType"), // Required @@ -214,7 +213,7 @@ func ExampleIAM_CreateGroup() { } func ExampleIAM_CreateInstanceProfile() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreateInstanceProfileInput{ InstanceProfileName: aws.String("instanceProfileNameType"), // Required @@ -234,7 +233,7 @@ func ExampleIAM_CreateInstanceProfile() { } func ExampleIAM_CreateLoginProfile() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreateLoginProfileInput{ Password: aws.String("passwordType"), // Required @@ -255,7 +254,7 @@ func ExampleIAM_CreateLoginProfile() { } func ExampleIAM_CreateOpenIDConnectProvider() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreateOpenIDConnectProviderInput{ ThumbprintList: []*string{ // Required @@ -282,7 +281,7 @@ func ExampleIAM_CreateOpenIDConnectProvider() { } func ExampleIAM_CreatePolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreatePolicyInput{ PolicyDocument: aws.String("policyDocumentType"), // Required @@ -304,7 +303,7 @@ func ExampleIAM_CreatePolicy() { } func ExampleIAM_CreatePolicyVersion() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreatePolicyVersionInput{ PolicyArn: aws.String("arnType"), // Required @@ -325,7 +324,7 @@ func ExampleIAM_CreatePolicyVersion() { } func ExampleIAM_CreateRole() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreateRoleInput{ AssumeRolePolicyDocument: aws.String("policyDocumentType"), // Required @@ -346,7 +345,7 @@ func ExampleIAM_CreateRole() { } func ExampleIAM_CreateSAMLProvider() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreateSAMLProviderInput{ Name: aws.String("SAMLProviderNameType"), // Required @@ -366,7 +365,7 @@ func ExampleIAM_CreateSAMLProvider() { } func ExampleIAM_CreateUser() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreateUserInput{ UserName: aws.String("userNameType"), // Required @@ -386,7 +385,7 @@ func ExampleIAM_CreateUser() { } func ExampleIAM_CreateVirtualMFADevice() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.CreateVirtualMFADeviceInput{ VirtualMFADeviceName: aws.String("virtualMFADeviceName"), // Required @@ -406,7 +405,7 @@ func ExampleIAM_CreateVirtualMFADevice() { } func ExampleIAM_DeactivateMFADevice() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeactivateMFADeviceInput{ SerialNumber: aws.String("serialNumberType"), // Required @@ -426,7 +425,7 @@ func ExampleIAM_DeactivateMFADevice() { } func ExampleIAM_DeleteAccessKey() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteAccessKeyInput{ AccessKeyId: aws.String("accessKeyIdType"), // Required @@ -446,7 +445,7 @@ func ExampleIAM_DeleteAccessKey() { } func ExampleIAM_DeleteAccountAlias() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteAccountAliasInput{ AccountAlias: aws.String("accountAliasType"), // Required @@ -465,7 +464,7 @@ func ExampleIAM_DeleteAccountAlias() { } func ExampleIAM_DeleteAccountPasswordPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) var params *iam.DeleteAccountPasswordPolicyInput resp, err := svc.DeleteAccountPasswordPolicy(params) @@ -482,7 +481,7 @@ func ExampleIAM_DeleteAccountPasswordPolicy() { } func ExampleIAM_DeleteGroup() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteGroupInput{ GroupName: aws.String("groupNameType"), // Required @@ -501,7 +500,7 @@ func ExampleIAM_DeleteGroup() { } func ExampleIAM_DeleteGroupPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteGroupPolicyInput{ GroupName: aws.String("groupNameType"), // Required @@ -521,7 +520,7 @@ func ExampleIAM_DeleteGroupPolicy() { } func ExampleIAM_DeleteInstanceProfile() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteInstanceProfileInput{ InstanceProfileName: aws.String("instanceProfileNameType"), // Required @@ -540,7 +539,7 @@ func ExampleIAM_DeleteInstanceProfile() { } func ExampleIAM_DeleteLoginProfile() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteLoginProfileInput{ UserName: aws.String("userNameType"), // Required @@ -559,7 +558,7 @@ func ExampleIAM_DeleteLoginProfile() { } func ExampleIAM_DeleteOpenIDConnectProvider() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteOpenIDConnectProviderInput{ OpenIDConnectProviderArn: aws.String("arnType"), // Required @@ -578,7 +577,7 @@ func ExampleIAM_DeleteOpenIDConnectProvider() { } func ExampleIAM_DeletePolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeletePolicyInput{ PolicyArn: aws.String("arnType"), // Required @@ -597,7 +596,7 @@ func ExampleIAM_DeletePolicy() { } func ExampleIAM_DeletePolicyVersion() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeletePolicyVersionInput{ PolicyArn: aws.String("arnType"), // Required @@ -617,7 +616,7 @@ func ExampleIAM_DeletePolicyVersion() { } func ExampleIAM_DeleteRole() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteRoleInput{ RoleName: aws.String("roleNameType"), // Required @@ -636,7 +635,7 @@ func ExampleIAM_DeleteRole() { } func ExampleIAM_DeleteRolePolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteRolePolicyInput{ PolicyName: aws.String("policyNameType"), // Required @@ -656,7 +655,7 @@ func ExampleIAM_DeleteRolePolicy() { } func ExampleIAM_DeleteSAMLProvider() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteSAMLProviderInput{ SAMLProviderArn: aws.String("arnType"), // Required @@ -675,7 +674,7 @@ func ExampleIAM_DeleteSAMLProvider() { } func ExampleIAM_DeleteSSHPublicKey() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteSSHPublicKeyInput{ SSHPublicKeyId: aws.String("publicKeyIdType"), // Required @@ -695,7 +694,7 @@ func ExampleIAM_DeleteSSHPublicKey() { } func ExampleIAM_DeleteServerCertificate() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteServerCertificateInput{ ServerCertificateName: aws.String("serverCertificateNameType"), // Required @@ -714,7 +713,7 @@ func ExampleIAM_DeleteServerCertificate() { } func ExampleIAM_DeleteSigningCertificate() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteSigningCertificateInput{ CertificateId: aws.String("certificateIdType"), // Required @@ -734,7 +733,7 @@ func ExampleIAM_DeleteSigningCertificate() { } func ExampleIAM_DeleteUser() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteUserInput{ UserName: aws.String("existingUserNameType"), // Required @@ -753,7 +752,7 @@ func ExampleIAM_DeleteUser() { } func ExampleIAM_DeleteUserPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteUserPolicyInput{ PolicyName: aws.String("policyNameType"), // Required @@ -773,7 +772,7 @@ func ExampleIAM_DeleteUserPolicy() { } func ExampleIAM_DeleteVirtualMFADevice() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DeleteVirtualMFADeviceInput{ SerialNumber: aws.String("serialNumberType"), // Required @@ -792,7 +791,7 @@ func ExampleIAM_DeleteVirtualMFADevice() { } func ExampleIAM_DetachGroupPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DetachGroupPolicyInput{ GroupName: aws.String("groupNameType"), // Required @@ -812,7 +811,7 @@ func ExampleIAM_DetachGroupPolicy() { } func ExampleIAM_DetachRolePolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DetachRolePolicyInput{ PolicyArn: aws.String("arnType"), // Required @@ -832,7 +831,7 @@ func ExampleIAM_DetachRolePolicy() { } func ExampleIAM_DetachUserPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.DetachUserPolicyInput{ PolicyArn: aws.String("arnType"), // Required @@ -852,7 +851,7 @@ func ExampleIAM_DetachUserPolicy() { } func ExampleIAM_EnableMFADevice() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.EnableMFADeviceInput{ AuthenticationCode1: aws.String("authenticationCodeType"), // Required @@ -874,7 +873,7 @@ func ExampleIAM_EnableMFADevice() { } func ExampleIAM_GenerateCredentialReport() { - svc := iam.New(session.New()) + svc := iam.New(nil) var params *iam.GenerateCredentialReportInput resp, err := svc.GenerateCredentialReport(params) @@ -891,7 +890,7 @@ func ExampleIAM_GenerateCredentialReport() { } func ExampleIAM_GetAccessKeyLastUsed() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetAccessKeyLastUsedInput{ AccessKeyId: aws.String("accessKeyIdType"), // Required @@ -910,7 +909,7 @@ func ExampleIAM_GetAccessKeyLastUsed() { } func ExampleIAM_GetAccountAuthorizationDetails() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetAccountAuthorizationDetailsInput{ Filter: []*string{ @@ -934,7 +933,7 @@ func ExampleIAM_GetAccountAuthorizationDetails() { } func ExampleIAM_GetAccountPasswordPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) var params *iam.GetAccountPasswordPolicyInput resp, err := svc.GetAccountPasswordPolicy(params) @@ -951,7 +950,7 @@ func ExampleIAM_GetAccountPasswordPolicy() { } func ExampleIAM_GetAccountSummary() { - svc := iam.New(session.New()) + svc := iam.New(nil) var params *iam.GetAccountSummaryInput resp, err := svc.GetAccountSummary(params) @@ -967,53 +966,8 @@ func ExampleIAM_GetAccountSummary() { fmt.Println(resp) } -func ExampleIAM_GetContextKeysForCustomPolicy() { - svc := iam.New(session.New()) - - params := &iam.GetContextKeysForCustomPolicyInput{ - PolicyInputList: []*string{ // Required - aws.String("policyDocumentType"), // Required - // More values... - }, - } - resp, err := svc.GetContextKeysForCustomPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIAM_GetContextKeysForPrincipalPolicy() { - svc := iam.New(session.New()) - - params := &iam.GetContextKeysForPrincipalPolicyInput{ - PolicySourceArn: aws.String("arnType"), // Required - PolicyInputList: []*string{ - aws.String("policyDocumentType"), // Required - // More values... - }, - } - resp, err := svc.GetContextKeysForPrincipalPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleIAM_GetCredentialReport() { - svc := iam.New(session.New()) + svc := iam.New(nil) var params *iam.GetCredentialReportInput resp, err := svc.GetCredentialReport(params) @@ -1030,7 +984,7 @@ func ExampleIAM_GetCredentialReport() { } func ExampleIAM_GetGroup() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetGroupInput{ GroupName: aws.String("groupNameType"), // Required @@ -1051,7 +1005,7 @@ func ExampleIAM_GetGroup() { } func ExampleIAM_GetGroupPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetGroupPolicyInput{ GroupName: aws.String("groupNameType"), // Required @@ -1071,7 +1025,7 @@ func ExampleIAM_GetGroupPolicy() { } func ExampleIAM_GetInstanceProfile() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetInstanceProfileInput{ InstanceProfileName: aws.String("instanceProfileNameType"), // Required @@ -1090,7 +1044,7 @@ func ExampleIAM_GetInstanceProfile() { } func ExampleIAM_GetLoginProfile() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetLoginProfileInput{ UserName: aws.String("userNameType"), // Required @@ -1109,7 +1063,7 @@ func ExampleIAM_GetLoginProfile() { } func ExampleIAM_GetOpenIDConnectProvider() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetOpenIDConnectProviderInput{ OpenIDConnectProviderArn: aws.String("arnType"), // Required @@ -1128,7 +1082,7 @@ func ExampleIAM_GetOpenIDConnectProvider() { } func ExampleIAM_GetPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetPolicyInput{ PolicyArn: aws.String("arnType"), // Required @@ -1147,7 +1101,7 @@ func ExampleIAM_GetPolicy() { } func ExampleIAM_GetPolicyVersion() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetPolicyVersionInput{ PolicyArn: aws.String("arnType"), // Required @@ -1167,7 +1121,7 @@ func ExampleIAM_GetPolicyVersion() { } func ExampleIAM_GetRole() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetRoleInput{ RoleName: aws.String("roleNameType"), // Required @@ -1186,7 +1140,7 @@ func ExampleIAM_GetRole() { } func ExampleIAM_GetRolePolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetRolePolicyInput{ PolicyName: aws.String("policyNameType"), // Required @@ -1206,7 +1160,7 @@ func ExampleIAM_GetRolePolicy() { } func ExampleIAM_GetSAMLProvider() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetSAMLProviderInput{ SAMLProviderArn: aws.String("arnType"), // Required @@ -1225,7 +1179,7 @@ func ExampleIAM_GetSAMLProvider() { } func ExampleIAM_GetSSHPublicKey() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetSSHPublicKeyInput{ Encoding: aws.String("encodingType"), // Required @@ -1246,7 +1200,7 @@ func ExampleIAM_GetSSHPublicKey() { } func ExampleIAM_GetServerCertificate() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetServerCertificateInput{ ServerCertificateName: aws.String("serverCertificateNameType"), // Required @@ -1265,7 +1219,7 @@ func ExampleIAM_GetServerCertificate() { } func ExampleIAM_GetUser() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetUserInput{ UserName: aws.String("existingUserNameType"), @@ -1284,7 +1238,7 @@ func ExampleIAM_GetUser() { } func ExampleIAM_GetUserPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.GetUserPolicyInput{ PolicyName: aws.String("policyNameType"), // Required @@ -1304,7 +1258,7 @@ func ExampleIAM_GetUserPolicy() { } func ExampleIAM_ListAccessKeys() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListAccessKeysInput{ Marker: aws.String("markerType"), @@ -1325,7 +1279,7 @@ func ExampleIAM_ListAccessKeys() { } func ExampleIAM_ListAccountAliases() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListAccountAliasesInput{ Marker: aws.String("markerType"), @@ -1345,7 +1299,7 @@ func ExampleIAM_ListAccountAliases() { } func ExampleIAM_ListAttachedGroupPolicies() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListAttachedGroupPoliciesInput{ GroupName: aws.String("groupNameType"), // Required @@ -1367,7 +1321,7 @@ func ExampleIAM_ListAttachedGroupPolicies() { } func ExampleIAM_ListAttachedRolePolicies() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListAttachedRolePoliciesInput{ RoleName: aws.String("roleNameType"), // Required @@ -1389,7 +1343,7 @@ func ExampleIAM_ListAttachedRolePolicies() { } func ExampleIAM_ListAttachedUserPolicies() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListAttachedUserPoliciesInput{ UserName: aws.String("userNameType"), // Required @@ -1411,7 +1365,7 @@ func ExampleIAM_ListAttachedUserPolicies() { } func ExampleIAM_ListEntitiesForPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListEntitiesForPolicyInput{ PolicyArn: aws.String("arnType"), // Required @@ -1434,7 +1388,7 @@ func ExampleIAM_ListEntitiesForPolicy() { } func ExampleIAM_ListGroupPolicies() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListGroupPoliciesInput{ GroupName: aws.String("groupNameType"), // Required @@ -1455,7 +1409,7 @@ func ExampleIAM_ListGroupPolicies() { } func ExampleIAM_ListGroups() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListGroupsInput{ Marker: aws.String("markerType"), @@ -1476,7 +1430,7 @@ func ExampleIAM_ListGroups() { } func ExampleIAM_ListGroupsForUser() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListGroupsForUserInput{ UserName: aws.String("existingUserNameType"), // Required @@ -1497,7 +1451,7 @@ func ExampleIAM_ListGroupsForUser() { } func ExampleIAM_ListInstanceProfiles() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListInstanceProfilesInput{ Marker: aws.String("markerType"), @@ -1518,7 +1472,7 @@ func ExampleIAM_ListInstanceProfiles() { } func ExampleIAM_ListInstanceProfilesForRole() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListInstanceProfilesForRoleInput{ RoleName: aws.String("roleNameType"), // Required @@ -1539,7 +1493,7 @@ func ExampleIAM_ListInstanceProfilesForRole() { } func ExampleIAM_ListMFADevices() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListMFADevicesInput{ Marker: aws.String("markerType"), @@ -1560,7 +1514,7 @@ func ExampleIAM_ListMFADevices() { } func ExampleIAM_ListOpenIDConnectProviders() { - svc := iam.New(session.New()) + svc := iam.New(nil) var params *iam.ListOpenIDConnectProvidersInput resp, err := svc.ListOpenIDConnectProviders(params) @@ -1577,7 +1531,7 @@ func ExampleIAM_ListOpenIDConnectProviders() { } func ExampleIAM_ListPolicies() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListPoliciesInput{ Marker: aws.String("markerType"), @@ -1600,7 +1554,7 @@ func ExampleIAM_ListPolicies() { } func ExampleIAM_ListPolicyVersions() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListPolicyVersionsInput{ PolicyArn: aws.String("arnType"), // Required @@ -1621,7 +1575,7 @@ func ExampleIAM_ListPolicyVersions() { } func ExampleIAM_ListRolePolicies() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListRolePoliciesInput{ RoleName: aws.String("roleNameType"), // Required @@ -1642,7 +1596,7 @@ func ExampleIAM_ListRolePolicies() { } func ExampleIAM_ListRoles() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListRolesInput{ Marker: aws.String("markerType"), @@ -1663,7 +1617,7 @@ func ExampleIAM_ListRoles() { } func ExampleIAM_ListSAMLProviders() { - svc := iam.New(session.New()) + svc := iam.New(nil) var params *iam.ListSAMLProvidersInput resp, err := svc.ListSAMLProviders(params) @@ -1680,7 +1634,7 @@ func ExampleIAM_ListSAMLProviders() { } func ExampleIAM_ListSSHPublicKeys() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListSSHPublicKeysInput{ Marker: aws.String("markerType"), @@ -1701,7 +1655,7 @@ func ExampleIAM_ListSSHPublicKeys() { } func ExampleIAM_ListServerCertificates() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListServerCertificatesInput{ Marker: aws.String("markerType"), @@ -1722,7 +1676,7 @@ func ExampleIAM_ListServerCertificates() { } func ExampleIAM_ListSigningCertificates() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListSigningCertificatesInput{ Marker: aws.String("markerType"), @@ -1743,7 +1697,7 @@ func ExampleIAM_ListSigningCertificates() { } func ExampleIAM_ListUserPolicies() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListUserPoliciesInput{ UserName: aws.String("existingUserNameType"), // Required @@ -1764,7 +1718,7 @@ func ExampleIAM_ListUserPolicies() { } func ExampleIAM_ListUsers() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListUsersInput{ Marker: aws.String("markerType"), @@ -1785,7 +1739,7 @@ func ExampleIAM_ListUsers() { } func ExampleIAM_ListVirtualMFADevices() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ListVirtualMFADevicesInput{ AssignmentStatus: aws.String("assignmentStatusType"), @@ -1806,7 +1760,7 @@ func ExampleIAM_ListVirtualMFADevices() { } func ExampleIAM_PutGroupPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.PutGroupPolicyInput{ GroupName: aws.String("groupNameType"), // Required @@ -1827,7 +1781,7 @@ func ExampleIAM_PutGroupPolicy() { } func ExampleIAM_PutRolePolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.PutRolePolicyInput{ PolicyDocument: aws.String("policyDocumentType"), // Required @@ -1848,7 +1802,7 @@ func ExampleIAM_PutRolePolicy() { } func ExampleIAM_PutUserPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.PutUserPolicyInput{ PolicyDocument: aws.String("policyDocumentType"), // Required @@ -1869,7 +1823,7 @@ func ExampleIAM_PutUserPolicy() { } func ExampleIAM_RemoveClientIDFromOpenIDConnectProvider() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.RemoveClientIDFromOpenIDConnectProviderInput{ ClientID: aws.String("clientIDType"), // Required @@ -1889,7 +1843,7 @@ func ExampleIAM_RemoveClientIDFromOpenIDConnectProvider() { } func ExampleIAM_RemoveRoleFromInstanceProfile() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.RemoveRoleFromInstanceProfileInput{ InstanceProfileName: aws.String("instanceProfileNameType"), // Required @@ -1909,7 +1863,7 @@ func ExampleIAM_RemoveRoleFromInstanceProfile() { } func ExampleIAM_RemoveUserFromGroup() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.RemoveUserFromGroupInput{ GroupName: aws.String("groupNameType"), // Required @@ -1929,7 +1883,7 @@ func ExampleIAM_RemoveUserFromGroup() { } func ExampleIAM_ResyncMFADevice() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.ResyncMFADeviceInput{ AuthenticationCode1: aws.String("authenticationCodeType"), // Required @@ -1951,7 +1905,7 @@ func ExampleIAM_ResyncMFADevice() { } func ExampleIAM_SetDefaultPolicyVersion() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.SetDefaultPolicyVersionInput{ PolicyArn: aws.String("arnType"), // Required @@ -1970,103 +1924,8 @@ func ExampleIAM_SetDefaultPolicyVersion() { fmt.Println(resp) } -func ExampleIAM_SimulateCustomPolicy() { - svc := iam.New(session.New()) - - params := &iam.SimulateCustomPolicyInput{ - ActionNames: []*string{ // Required - aws.String("ActionNameType"), // Required - // More values... - }, - PolicyInputList: []*string{ // Required - aws.String("policyDocumentType"), // Required - // More values... - }, - CallerArn: aws.String("ResourceNameType"), - ContextEntries: []*iam.ContextEntry{ - { // Required - ContextKeyName: aws.String("ContextKeyNameType"), - ContextKeyType: aws.String("ContextKeyTypeEnum"), - ContextKeyValues: []*string{ - aws.String("ContextKeyValueType"), // Required - // More values... - }, - }, - // More values... - }, - Marker: aws.String("markerType"), - MaxItems: aws.Int64(1), - ResourceArns: []*string{ - aws.String("ResourceNameType"), // Required - // More values... - }, - ResourceHandlingOption: aws.String("ResourceHandlingOptionType"), - ResourceOwner: aws.String("ResourceNameType"), - ResourcePolicy: aws.String("policyDocumentType"), - } - resp, err := svc.SimulateCustomPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIAM_SimulatePrincipalPolicy() { - svc := iam.New(session.New()) - - params := &iam.SimulatePrincipalPolicyInput{ - ActionNames: []*string{ // Required - aws.String("ActionNameType"), // Required - // More values... - }, - PolicySourceArn: aws.String("arnType"), // Required - CallerArn: aws.String("ResourceNameType"), - ContextEntries: []*iam.ContextEntry{ - { // Required - ContextKeyName: aws.String("ContextKeyNameType"), - ContextKeyType: aws.String("ContextKeyTypeEnum"), - ContextKeyValues: []*string{ - aws.String("ContextKeyValueType"), // Required - // More values... - }, - }, - // More values... - }, - Marker: aws.String("markerType"), - MaxItems: aws.Int64(1), - PolicyInputList: []*string{ - aws.String("policyDocumentType"), // Required - // More values... - }, - ResourceArns: []*string{ - aws.String("ResourceNameType"), // Required - // More values... - }, - ResourceHandlingOption: aws.String("ResourceHandlingOptionType"), - ResourceOwner: aws.String("ResourceNameType"), - ResourcePolicy: aws.String("policyDocumentType"), - } - resp, err := svc.SimulatePrincipalPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleIAM_UpdateAccessKey() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateAccessKeyInput{ AccessKeyId: aws.String("accessKeyIdType"), // Required @@ -2087,7 +1946,7 @@ func ExampleIAM_UpdateAccessKey() { } func ExampleIAM_UpdateAccountPasswordPolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateAccountPasswordPolicyInput{ AllowUsersToChangePassword: aws.Bool(true), @@ -2114,7 +1973,7 @@ func ExampleIAM_UpdateAccountPasswordPolicy() { } func ExampleIAM_UpdateAssumeRolePolicy() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateAssumeRolePolicyInput{ PolicyDocument: aws.String("policyDocumentType"), // Required @@ -2134,7 +1993,7 @@ func ExampleIAM_UpdateAssumeRolePolicy() { } func ExampleIAM_UpdateGroup() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateGroupInput{ GroupName: aws.String("groupNameType"), // Required @@ -2155,7 +2014,7 @@ func ExampleIAM_UpdateGroup() { } func ExampleIAM_UpdateLoginProfile() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateLoginProfileInput{ UserName: aws.String("userNameType"), // Required @@ -2176,7 +2035,7 @@ func ExampleIAM_UpdateLoginProfile() { } func ExampleIAM_UpdateOpenIDConnectProviderThumbprint() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateOpenIDConnectProviderThumbprintInput{ OpenIDConnectProviderArn: aws.String("arnType"), // Required @@ -2199,7 +2058,7 @@ func ExampleIAM_UpdateOpenIDConnectProviderThumbprint() { } func ExampleIAM_UpdateSAMLProvider() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateSAMLProviderInput{ SAMLMetadataDocument: aws.String("SAMLMetadataDocumentType"), // Required @@ -2219,7 +2078,7 @@ func ExampleIAM_UpdateSAMLProvider() { } func ExampleIAM_UpdateSSHPublicKey() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateSSHPublicKeyInput{ SSHPublicKeyId: aws.String("publicKeyIdType"), // Required @@ -2240,7 +2099,7 @@ func ExampleIAM_UpdateSSHPublicKey() { } func ExampleIAM_UpdateServerCertificate() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateServerCertificateInput{ ServerCertificateName: aws.String("serverCertificateNameType"), // Required @@ -2261,7 +2120,7 @@ func ExampleIAM_UpdateServerCertificate() { } func ExampleIAM_UpdateSigningCertificate() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateSigningCertificateInput{ CertificateId: aws.String("certificateIdType"), // Required @@ -2282,7 +2141,7 @@ func ExampleIAM_UpdateSigningCertificate() { } func ExampleIAM_UpdateUser() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UpdateUserInput{ UserName: aws.String("existingUserNameType"), // Required @@ -2303,7 +2162,7 @@ func ExampleIAM_UpdateUser() { } func ExampleIAM_UploadSSHPublicKey() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UploadSSHPublicKeyInput{ SSHPublicKeyBody: aws.String("publicKeyMaterialType"), // Required @@ -2323,7 +2182,7 @@ func ExampleIAM_UploadSSHPublicKey() { } func ExampleIAM_UploadServerCertificate() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UploadServerCertificateInput{ CertificateBody: aws.String("certificateBodyType"), // Required @@ -2346,7 +2205,7 @@ func ExampleIAM_UploadServerCertificate() { } func ExampleIAM_UploadSigningCertificate() { - svc := iam.New(session.New()) + svc := iam.New(nil) params := &iam.UploadSigningCertificateInput{ CertificateBody: aws.String("certificateBodyType"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go index 0536855b3..529e4b0d1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface.go @@ -204,14 +204,6 @@ type IAMAPI interface { GetAccountSummary(*iam.GetAccountSummaryInput) (*iam.GetAccountSummaryOutput, error) - GetContextKeysForCustomPolicyRequest(*iam.GetContextKeysForCustomPolicyInput) (*request.Request, *iam.GetContextKeysForPolicyResponse) - - GetContextKeysForCustomPolicy(*iam.GetContextKeysForCustomPolicyInput) (*iam.GetContextKeysForPolicyResponse, error) - - GetContextKeysForPrincipalPolicyRequest(*iam.GetContextKeysForPrincipalPolicyInput) (*request.Request, *iam.GetContextKeysForPolicyResponse) - - GetContextKeysForPrincipalPolicy(*iam.GetContextKeysForPrincipalPolicyInput) (*iam.GetContextKeysForPolicyResponse, error) - GetCredentialReportRequest(*iam.GetCredentialReportInput) (*request.Request, *iam.GetCredentialReportOutput) GetCredentialReport(*iam.GetCredentialReportInput) (*iam.GetCredentialReportOutput, error) @@ -360,8 +352,6 @@ type IAMAPI interface { ListPolicyVersions(*iam.ListPolicyVersionsInput) (*iam.ListPolicyVersionsOutput, error) - ListPolicyVersionsPages(*iam.ListPolicyVersionsInput, func(*iam.ListPolicyVersionsOutput, bool) bool) error - ListRolePoliciesRequest(*iam.ListRolePoliciesInput) (*request.Request, *iam.ListRolePoliciesOutput) ListRolePolicies(*iam.ListRolePoliciesInput) (*iam.ListRolePoliciesOutput, error) @@ -444,14 +434,6 @@ type IAMAPI interface { SetDefaultPolicyVersion(*iam.SetDefaultPolicyVersionInput) (*iam.SetDefaultPolicyVersionOutput, error) - SimulateCustomPolicyRequest(*iam.SimulateCustomPolicyInput) (*request.Request, *iam.SimulatePolicyResponse) - - SimulateCustomPolicy(*iam.SimulateCustomPolicyInput) (*iam.SimulatePolicyResponse, error) - - SimulatePrincipalPolicyRequest(*iam.SimulatePrincipalPolicyInput) (*request.Request, *iam.SimulatePolicyResponse) - - SimulatePrincipalPolicy(*iam.SimulatePrincipalPolicyInput) (*iam.SimulatePolicyResponse, error) - UpdateAccessKeyRequest(*iam.UpdateAccessKeyInput) (*request.Request, *iam.UpdateAccessKeyOutput) UpdateAccessKey(*iam.UpdateAccessKeyInput) (*iam.UpdateAccessKeyOutput, error) @@ -508,5 +490,3 @@ type IAMAPI interface { UploadSigningCertificate(*iam.UploadSigningCertificateInput) (*iam.UploadSigningCertificateOutput, error) } - -var _ IAMAPI = (*iam.IAM)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface_test.go new file mode 100644 index 000000000..51e71d9d8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package iamiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*iamiface.IAMAPI)(nil), iam.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/service.go b/vendor/github.com/aws/aws-sdk-go/service/iam/service.go index b2fa8550f..9cc5001ab 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/service.go @@ -4,11 +4,12 @@ package iam import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // AWS Identity and Access Management (IAM) is a web service that you can use @@ -17,19 +18,17 @@ import ( // information about IAM, see AWS Identity and Access Management (IAM) (http://aws.amazon.com/iam/). // For the user guide for IAM, see Using IAM (http://docs.aws.amazon.com/IAM/latest/UserGuide/). // -// AWS provides SDKs that consist of libraries and sample code for various +// AWS provides SDKs that consist of libraries and sample code for various // programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). // The SDKs provide a convenient way to create programmatic access to IAM and // AWS. For example, the SDKs take care of tasks such as cryptographically signing // requests (see below), managing errors, and retrying requests automatically. // For information about the AWS SDKs, including how to download and install // them, see the Tools for Amazon Web Services (http://aws.amazon.com/tools/) -// page. -// -// We recommend that you use the AWS SDKs to make programmatic API calls to -// IAM. However, you can also use the IAM Query API to make direct calls to -// the IAM web service. To learn more about the IAM Query API, see Making Query -// Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) +// page. We recommend that you use the AWS SDKs to make programmatic API calls +// to IAM. However, you can also use the IAM Query API to make direct calls +// to the IAM web service. To learn more about the IAM Query API, see Making +// Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the Using IAM guide. IAM supports GET and POST requests for all actions. // That is, the API does not require you to use GET for some actions and POST // for others. However, GET requests are subject to the limitation size of a @@ -54,75 +53,49 @@ import ( // // For more information, see the following: // -// AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). +// AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). // This topic provides general information about the types of credentials used -// for accessing AWS. -// -// IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html). +// for accessing AWS. IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html). // This topic presents a list of suggestions for using the IAM service to help -// secure your AWS resources. -// -// Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html). +// secure your AWS resources. AWS Security Token Service (http://docs.aws.amazon.com/STS/latest/UsingSTS/). +// This guide describes how to create and use temporary security credentials. +// Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html). // This set of topics walk you through the process of signing a request using // an access key ID and secret access key. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type IAM struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "iam" - -// New creates a new instance of the IAM client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a IAM client from just a session. -// svc := iam.New(mySession) -// -// // Create a IAM client with additional configuration -// svc := iam.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *IAM { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *IAM { - svc := &IAM{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2010-05-08", - }, - handlers, - ), +// New returns a new IAM client. +func New(config *aws.Config) *IAM { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "iam", + APIVersion: "2010-05-08", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &IAM{service} } // newRequest creates a new request for a IAM operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/iam/waiters.go deleted file mode 100644 index b27303052..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/waiters.go +++ /dev/null @@ -1,65 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package iam - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *IAM) WaitUntilInstanceProfileExists(input *GetInstanceProfileInput) error { - waiterCfg := waiter.Config{ - Operation: "GetInstanceProfile", - Delay: 1, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 200, - }, - { - State: "retry", - Matcher: "status", - Argument: "", - Expected: 404, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *IAM) WaitUntilUserExists(input *GetUserInput) error { - waiterCfg := waiter.Config{ - Operation: "GetUser", - Delay: 1, - MaxAttempts: 20, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 200, - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "NoSuchEntity", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go deleted file mode 100644 index dc82afd8f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/inspector/api.go +++ /dev/null @@ -1,4164 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package inspector provides a client for Amazon Inspector. -package inspector - -import ( - "fmt" - "time" - - "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/private/protocol/jsonrpc" -) - -const opAddAttributesToFindings = "AddAttributesToFindings" - -// AddAttributesToFindingsRequest generates a request for the AddAttributesToFindings operation. -func (c *Inspector) AddAttributesToFindingsRequest(input *AddAttributesToFindingsInput) (req *request.Request, output *AddAttributesToFindingsOutput) { - op := &request.Operation{ - Name: opAddAttributesToFindings, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AddAttributesToFindingsInput{} - } - - req = c.newRequest(op, input, output) - output = &AddAttributesToFindingsOutput{} - req.Data = output - return -} - -// Assigns attributes (key and value pairs) to the findings that are specified -// by the ARNs of the findings. -func (c *Inspector) AddAttributesToFindings(input *AddAttributesToFindingsInput) (*AddAttributesToFindingsOutput, error) { - req, out := c.AddAttributesToFindingsRequest(input) - err := req.Send() - return out, err -} - -const opCreateAssessmentTarget = "CreateAssessmentTarget" - -// CreateAssessmentTargetRequest generates a request for the CreateAssessmentTarget operation. -func (c *Inspector) CreateAssessmentTargetRequest(input *CreateAssessmentTargetInput) (req *request.Request, output *CreateAssessmentTargetOutput) { - op := &request.Operation{ - Name: opCreateAssessmentTarget, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateAssessmentTargetInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateAssessmentTargetOutput{} - req.Data = output - return -} - -// Creates a new assessment target using the ARN of the resource group that -// is generated by CreateResourceGroup. You can create up to 50 assessment targets -// per AWS account. You can run up to 500 concurrent agents per AWS account. -// For more information, see Amazon Inspector Assessment Targets (http://docs.aws.amazon.com/inspector/latest/userguide/inspector_applications.html). -func (c *Inspector) CreateAssessmentTarget(input *CreateAssessmentTargetInput) (*CreateAssessmentTargetOutput, error) { - req, out := c.CreateAssessmentTargetRequest(input) - err := req.Send() - return out, err -} - -const opCreateAssessmentTemplate = "CreateAssessmentTemplate" - -// CreateAssessmentTemplateRequest generates a request for the CreateAssessmentTemplate operation. -func (c *Inspector) CreateAssessmentTemplateRequest(input *CreateAssessmentTemplateInput) (req *request.Request, output *CreateAssessmentTemplateOutput) { - op := &request.Operation{ - Name: opCreateAssessmentTemplate, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateAssessmentTemplateInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateAssessmentTemplateOutput{} - req.Data = output - return -} - -// Creates an assessment template for the assessment target that is specified -// by the ARN of the assessment target. -func (c *Inspector) CreateAssessmentTemplate(input *CreateAssessmentTemplateInput) (*CreateAssessmentTemplateOutput, error) { - req, out := c.CreateAssessmentTemplateRequest(input) - err := req.Send() - return out, err -} - -const opCreateResourceGroup = "CreateResourceGroup" - -// CreateResourceGroupRequest generates a request for the CreateResourceGroup operation. -func (c *Inspector) CreateResourceGroupRequest(input *CreateResourceGroupInput) (req *request.Request, output *CreateResourceGroupOutput) { - op := &request.Operation{ - Name: opCreateResourceGroup, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateResourceGroupInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateResourceGroupOutput{} - req.Data = output - return -} - -// Creates a resource group using the specified set of tags (key and value pairs) -// that are used to select the EC2 instances to be included in an Amazon Inspector -// assessment target. The created resource group is then used to create an Amazon -// Inspector assessment target. For more information, see CreateAssessmentTarget. -func (c *Inspector) CreateResourceGroup(input *CreateResourceGroupInput) (*CreateResourceGroupOutput, error) { - req, out := c.CreateResourceGroupRequest(input) - err := req.Send() - return out, err -} - -const opDeleteAssessmentRun = "DeleteAssessmentRun" - -// DeleteAssessmentRunRequest generates a request for the DeleteAssessmentRun operation. -func (c *Inspector) DeleteAssessmentRunRequest(input *DeleteAssessmentRunInput) (req *request.Request, output *DeleteAssessmentRunOutput) { - op := &request.Operation{ - Name: opDeleteAssessmentRun, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteAssessmentRunInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAssessmentRunOutput{} - req.Data = output - return -} - -// Deletes the assessment run that is specified by the ARN of the assessment -// run. -func (c *Inspector) DeleteAssessmentRun(input *DeleteAssessmentRunInput) (*DeleteAssessmentRunOutput, error) { - req, out := c.DeleteAssessmentRunRequest(input) - err := req.Send() - return out, err -} - -const opDeleteAssessmentTarget = "DeleteAssessmentTarget" - -// DeleteAssessmentTargetRequest generates a request for the DeleteAssessmentTarget operation. -func (c *Inspector) DeleteAssessmentTargetRequest(input *DeleteAssessmentTargetInput) (req *request.Request, output *DeleteAssessmentTargetOutput) { - op := &request.Operation{ - Name: opDeleteAssessmentTarget, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteAssessmentTargetInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAssessmentTargetOutput{} - req.Data = output - return -} - -// Deletes the assessment target that is specified by the ARN of the assessment -// target. -func (c *Inspector) DeleteAssessmentTarget(input *DeleteAssessmentTargetInput) (*DeleteAssessmentTargetOutput, error) { - req, out := c.DeleteAssessmentTargetRequest(input) - err := req.Send() - return out, err -} - -const opDeleteAssessmentTemplate = "DeleteAssessmentTemplate" - -// DeleteAssessmentTemplateRequest generates a request for the DeleteAssessmentTemplate operation. -func (c *Inspector) DeleteAssessmentTemplateRequest(input *DeleteAssessmentTemplateInput) (req *request.Request, output *DeleteAssessmentTemplateOutput) { - op := &request.Operation{ - Name: opDeleteAssessmentTemplate, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteAssessmentTemplateInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAssessmentTemplateOutput{} - req.Data = output - return -} - -// Deletes the assessment template that is specified by the ARN of the assessment -// template. -func (c *Inspector) DeleteAssessmentTemplate(input *DeleteAssessmentTemplateInput) (*DeleteAssessmentTemplateOutput, error) { - req, out := c.DeleteAssessmentTemplateRequest(input) - err := req.Send() - return out, err -} - -const opDescribeAssessmentRuns = "DescribeAssessmentRuns" - -// DescribeAssessmentRunsRequest generates a request for the DescribeAssessmentRuns operation. -func (c *Inspector) DescribeAssessmentRunsRequest(input *DescribeAssessmentRunsInput) (req *request.Request, output *DescribeAssessmentRunsOutput) { - op := &request.Operation{ - Name: opDescribeAssessmentRuns, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeAssessmentRunsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeAssessmentRunsOutput{} - req.Data = output - return -} - -// Describes the assessment runs that are specified by the ARNs of the assessment -// runs. -func (c *Inspector) DescribeAssessmentRuns(input *DescribeAssessmentRunsInput) (*DescribeAssessmentRunsOutput, error) { - req, out := c.DescribeAssessmentRunsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeAssessmentTargets = "DescribeAssessmentTargets" - -// DescribeAssessmentTargetsRequest generates a request for the DescribeAssessmentTargets operation. -func (c *Inspector) DescribeAssessmentTargetsRequest(input *DescribeAssessmentTargetsInput) (req *request.Request, output *DescribeAssessmentTargetsOutput) { - op := &request.Operation{ - Name: opDescribeAssessmentTargets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeAssessmentTargetsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeAssessmentTargetsOutput{} - req.Data = output - return -} - -// Describes the assessment targets that are specified by the ARNs of the assessment -// targets. -func (c *Inspector) DescribeAssessmentTargets(input *DescribeAssessmentTargetsInput) (*DescribeAssessmentTargetsOutput, error) { - req, out := c.DescribeAssessmentTargetsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeAssessmentTemplates = "DescribeAssessmentTemplates" - -// DescribeAssessmentTemplatesRequest generates a request for the DescribeAssessmentTemplates operation. -func (c *Inspector) DescribeAssessmentTemplatesRequest(input *DescribeAssessmentTemplatesInput) (req *request.Request, output *DescribeAssessmentTemplatesOutput) { - op := &request.Operation{ - Name: opDescribeAssessmentTemplates, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeAssessmentTemplatesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeAssessmentTemplatesOutput{} - req.Data = output - return -} - -// Describes the assessment templates that are specified by the ARNs of the -// assessment templates. -func (c *Inspector) DescribeAssessmentTemplates(input *DescribeAssessmentTemplatesInput) (*DescribeAssessmentTemplatesOutput, error) { - req, out := c.DescribeAssessmentTemplatesRequest(input) - err := req.Send() - return out, err -} - -const opDescribeCrossAccountAccessRole = "DescribeCrossAccountAccessRole" - -// DescribeCrossAccountAccessRoleRequest generates a request for the DescribeCrossAccountAccessRole operation. -func (c *Inspector) DescribeCrossAccountAccessRoleRequest(input *DescribeCrossAccountAccessRoleInput) (req *request.Request, output *DescribeCrossAccountAccessRoleOutput) { - op := &request.Operation{ - Name: opDescribeCrossAccountAccessRole, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeCrossAccountAccessRoleInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeCrossAccountAccessRoleOutput{} - req.Data = output - return -} - -// Describes the IAM role that enables Amazon Inspector to access your AWS account. -func (c *Inspector) DescribeCrossAccountAccessRole(input *DescribeCrossAccountAccessRoleInput) (*DescribeCrossAccountAccessRoleOutput, error) { - req, out := c.DescribeCrossAccountAccessRoleRequest(input) - err := req.Send() - return out, err -} - -const opDescribeFindings = "DescribeFindings" - -// DescribeFindingsRequest generates a request for the DescribeFindings operation. -func (c *Inspector) DescribeFindingsRequest(input *DescribeFindingsInput) (req *request.Request, output *DescribeFindingsOutput) { - op := &request.Operation{ - Name: opDescribeFindings, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeFindingsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeFindingsOutput{} - req.Data = output - return -} - -// Describes the findings that are specified by the ARNs of the findings. -func (c *Inspector) DescribeFindings(input *DescribeFindingsInput) (*DescribeFindingsOutput, error) { - req, out := c.DescribeFindingsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeResourceGroups = "DescribeResourceGroups" - -// DescribeResourceGroupsRequest generates a request for the DescribeResourceGroups operation. -func (c *Inspector) DescribeResourceGroupsRequest(input *DescribeResourceGroupsInput) (req *request.Request, output *DescribeResourceGroupsOutput) { - op := &request.Operation{ - Name: opDescribeResourceGroups, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeResourceGroupsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeResourceGroupsOutput{} - req.Data = output - return -} - -// Describes the resource groups that are specified by the ARNs of the resource -// groups. -func (c *Inspector) DescribeResourceGroups(input *DescribeResourceGroupsInput) (*DescribeResourceGroupsOutput, error) { - req, out := c.DescribeResourceGroupsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeRulesPackages = "DescribeRulesPackages" - -// DescribeRulesPackagesRequest generates a request for the DescribeRulesPackages operation. -func (c *Inspector) DescribeRulesPackagesRequest(input *DescribeRulesPackagesInput) (req *request.Request, output *DescribeRulesPackagesOutput) { - op := &request.Operation{ - Name: opDescribeRulesPackages, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeRulesPackagesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeRulesPackagesOutput{} - req.Data = output - return -} - -// Describes the rules packages that are specified by the ARNs of the rules -// packages. -func (c *Inspector) DescribeRulesPackages(input *DescribeRulesPackagesInput) (*DescribeRulesPackagesOutput, error) { - req, out := c.DescribeRulesPackagesRequest(input) - err := req.Send() - return out, err -} - -const opGetTelemetryMetadata = "GetTelemetryMetadata" - -// GetTelemetryMetadataRequest generates a request for the GetTelemetryMetadata operation. -func (c *Inspector) GetTelemetryMetadataRequest(input *GetTelemetryMetadataInput) (req *request.Request, output *GetTelemetryMetadataOutput) { - op := &request.Operation{ - Name: opGetTelemetryMetadata, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetTelemetryMetadataInput{} - } - - req = c.newRequest(op, input, output) - output = &GetTelemetryMetadataOutput{} - req.Data = output - return -} - -// Information about the data that is collected for the specified assessment -// run. -func (c *Inspector) GetTelemetryMetadata(input *GetTelemetryMetadataInput) (*GetTelemetryMetadataOutput, error) { - req, out := c.GetTelemetryMetadataRequest(input) - err := req.Send() - return out, err -} - -const opListAssessmentRunAgents = "ListAssessmentRunAgents" - -// ListAssessmentRunAgentsRequest generates a request for the ListAssessmentRunAgents operation. -func (c *Inspector) ListAssessmentRunAgentsRequest(input *ListAssessmentRunAgentsInput) (req *request.Request, output *ListAssessmentRunAgentsOutput) { - op := &request.Operation{ - Name: opListAssessmentRunAgents, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListAssessmentRunAgentsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListAssessmentRunAgentsOutput{} - req.Data = output - return -} - -// Lists the agents of the assessment runs that are specified by the ARNs of -// the assessment runs. -func (c *Inspector) ListAssessmentRunAgents(input *ListAssessmentRunAgentsInput) (*ListAssessmentRunAgentsOutput, error) { - req, out := c.ListAssessmentRunAgentsRequest(input) - err := req.Send() - return out, err -} - -const opListAssessmentRuns = "ListAssessmentRuns" - -// ListAssessmentRunsRequest generates a request for the ListAssessmentRuns operation. -func (c *Inspector) ListAssessmentRunsRequest(input *ListAssessmentRunsInput) (req *request.Request, output *ListAssessmentRunsOutput) { - op := &request.Operation{ - Name: opListAssessmentRuns, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListAssessmentRunsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListAssessmentRunsOutput{} - req.Data = output - return -} - -// Lists the assessment runs that correspond to the assessment templates that -// are specified by the ARNs of the assessment templates. -func (c *Inspector) ListAssessmentRuns(input *ListAssessmentRunsInput) (*ListAssessmentRunsOutput, error) { - req, out := c.ListAssessmentRunsRequest(input) - err := req.Send() - return out, err -} - -const opListAssessmentTargets = "ListAssessmentTargets" - -// ListAssessmentTargetsRequest generates a request for the ListAssessmentTargets operation. -func (c *Inspector) ListAssessmentTargetsRequest(input *ListAssessmentTargetsInput) (req *request.Request, output *ListAssessmentTargetsOutput) { - op := &request.Operation{ - Name: opListAssessmentTargets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListAssessmentTargetsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListAssessmentTargetsOutput{} - req.Data = output - return -} - -// Lists the ARNs of the assessment targets within this AWS account. For more -// information about assessment targets, see Amazon Inspector Assessment Targets -// (http://docs.aws.amazon.com/inspector/latest/userguide/inspector_applications.html). -func (c *Inspector) ListAssessmentTargets(input *ListAssessmentTargetsInput) (*ListAssessmentTargetsOutput, error) { - req, out := c.ListAssessmentTargetsRequest(input) - err := req.Send() - return out, err -} - -const opListAssessmentTemplates = "ListAssessmentTemplates" - -// ListAssessmentTemplatesRequest generates a request for the ListAssessmentTemplates operation. -func (c *Inspector) ListAssessmentTemplatesRequest(input *ListAssessmentTemplatesInput) (req *request.Request, output *ListAssessmentTemplatesOutput) { - op := &request.Operation{ - Name: opListAssessmentTemplates, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListAssessmentTemplatesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListAssessmentTemplatesOutput{} - req.Data = output - return -} - -// Lists the assessment templates that correspond to the assessment targets -// that are specified by the ARNs of the assessment targets. -func (c *Inspector) ListAssessmentTemplates(input *ListAssessmentTemplatesInput) (*ListAssessmentTemplatesOutput, error) { - req, out := c.ListAssessmentTemplatesRequest(input) - err := req.Send() - return out, err -} - -const opListEventSubscriptions = "ListEventSubscriptions" - -// ListEventSubscriptionsRequest generates a request for the ListEventSubscriptions operation. -func (c *Inspector) ListEventSubscriptionsRequest(input *ListEventSubscriptionsInput) (req *request.Request, output *ListEventSubscriptionsOutput) { - op := &request.Operation{ - Name: opListEventSubscriptions, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListEventSubscriptionsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListEventSubscriptionsOutput{} - req.Data = output - return -} - -// Lists all the event subscriptions for the assessment template that is specified -// by the ARN of the assessment template. For more information, see SubscribeToEvent -// and UnsubscribeFromEvent. -func (c *Inspector) ListEventSubscriptions(input *ListEventSubscriptionsInput) (*ListEventSubscriptionsOutput, error) { - req, out := c.ListEventSubscriptionsRequest(input) - err := req.Send() - return out, err -} - -const opListFindings = "ListFindings" - -// ListFindingsRequest generates a request for the ListFindings operation. -func (c *Inspector) ListFindingsRequest(input *ListFindingsInput) (req *request.Request, output *ListFindingsOutput) { - op := &request.Operation{ - Name: opListFindings, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListFindingsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListFindingsOutput{} - req.Data = output - return -} - -// Lists findings that are generated by the assessment runs that are specified -// by the ARNs of the assessment runs. -func (c *Inspector) ListFindings(input *ListFindingsInput) (*ListFindingsOutput, error) { - req, out := c.ListFindingsRequest(input) - err := req.Send() - return out, err -} - -const opListRulesPackages = "ListRulesPackages" - -// ListRulesPackagesRequest generates a request for the ListRulesPackages operation. -func (c *Inspector) ListRulesPackagesRequest(input *ListRulesPackagesInput) (req *request.Request, output *ListRulesPackagesOutput) { - op := &request.Operation{ - Name: opListRulesPackages, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListRulesPackagesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListRulesPackagesOutput{} - req.Data = output - return -} - -// Lists all available Amazon Inspector rules packages. -func (c *Inspector) ListRulesPackages(input *ListRulesPackagesInput) (*ListRulesPackagesOutput, error) { - req, out := c.ListRulesPackagesRequest(input) - err := req.Send() - return out, err -} - -const opListTagsForResource = "ListTagsForResource" - -// ListTagsForResourceRequest generates a request for the ListTagsForResource operation. -func (c *Inspector) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { - op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListTagsForResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTagsForResourceOutput{} - req.Data = output - return -} - -// Lists all tags associated with an assessment template. -func (c *Inspector) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) - err := req.Send() - return out, err -} - -const opPreviewAgents = "PreviewAgents" - -// PreviewAgentsRequest generates a request for the PreviewAgents operation. -func (c *Inspector) PreviewAgentsRequest(input *PreviewAgentsInput) (req *request.Request, output *PreviewAgentsOutput) { - op := &request.Operation{ - Name: opPreviewAgents, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PreviewAgentsInput{} - } - - req = c.newRequest(op, input, output) - output = &PreviewAgentsOutput{} - req.Data = output - return -} - -// Previews the agents installed on the EC2 instances that are part of the specified -// assessment target. -func (c *Inspector) PreviewAgents(input *PreviewAgentsInput) (*PreviewAgentsOutput, error) { - req, out := c.PreviewAgentsRequest(input) - err := req.Send() - return out, err -} - -const opRegisterCrossAccountAccessRole = "RegisterCrossAccountAccessRole" - -// RegisterCrossAccountAccessRoleRequest generates a request for the RegisterCrossAccountAccessRole operation. -func (c *Inspector) RegisterCrossAccountAccessRoleRequest(input *RegisterCrossAccountAccessRoleInput) (req *request.Request, output *RegisterCrossAccountAccessRoleOutput) { - op := &request.Operation{ - Name: opRegisterCrossAccountAccessRole, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RegisterCrossAccountAccessRoleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RegisterCrossAccountAccessRoleOutput{} - req.Data = output - return -} - -// Registers the IAM role that Amazon Inspector uses to list your EC2 instances -// at the start of the assessment run or when you call the PreviewAgents action. -func (c *Inspector) RegisterCrossAccountAccessRole(input *RegisterCrossAccountAccessRoleInput) (*RegisterCrossAccountAccessRoleOutput, error) { - req, out := c.RegisterCrossAccountAccessRoleRequest(input) - err := req.Send() - return out, err -} - -const opRemoveAttributesFromFindings = "RemoveAttributesFromFindings" - -// RemoveAttributesFromFindingsRequest generates a request for the RemoveAttributesFromFindings operation. -func (c *Inspector) RemoveAttributesFromFindingsRequest(input *RemoveAttributesFromFindingsInput) (req *request.Request, output *RemoveAttributesFromFindingsOutput) { - op := &request.Operation{ - Name: opRemoveAttributesFromFindings, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RemoveAttributesFromFindingsInput{} - } - - req = c.newRequest(op, input, output) - output = &RemoveAttributesFromFindingsOutput{} - req.Data = output - return -} - -// Removes entire attributes (key and value pairs) from the findings that are -// specified by the ARNs of the findings where an attribute with the specified -// key exists. -func (c *Inspector) RemoveAttributesFromFindings(input *RemoveAttributesFromFindingsInput) (*RemoveAttributesFromFindingsOutput, error) { - req, out := c.RemoveAttributesFromFindingsRequest(input) - err := req.Send() - return out, err -} - -const opSetTagsForResource = "SetTagsForResource" - -// SetTagsForResourceRequest generates a request for the SetTagsForResource operation. -func (c *Inspector) SetTagsForResourceRequest(input *SetTagsForResourceInput) (req *request.Request, output *SetTagsForResourceOutput) { - op := &request.Operation{ - Name: opSetTagsForResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SetTagsForResourceInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetTagsForResourceOutput{} - req.Data = output - return -} - -// Sets tags (key and value pairs) to the assessment template that is specified -// by the ARN of the assessment template. -func (c *Inspector) SetTagsForResource(input *SetTagsForResourceInput) (*SetTagsForResourceOutput, error) { - req, out := c.SetTagsForResourceRequest(input) - err := req.Send() - return out, err -} - -const opStartAssessmentRun = "StartAssessmentRun" - -// StartAssessmentRunRequest generates a request for the StartAssessmentRun operation. -func (c *Inspector) StartAssessmentRunRequest(input *StartAssessmentRunInput) (req *request.Request, output *StartAssessmentRunOutput) { - op := &request.Operation{ - Name: opStartAssessmentRun, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &StartAssessmentRunInput{} - } - - req = c.newRequest(op, input, output) - output = &StartAssessmentRunOutput{} - req.Data = output - return -} - -// Starts the assessment run specified by the ARN of the assessment template. -// For this API to function properly, you must not exceed the limit of running -// up to 500 concurrent agents per AWS account. -func (c *Inspector) StartAssessmentRun(input *StartAssessmentRunInput) (*StartAssessmentRunOutput, error) { - req, out := c.StartAssessmentRunRequest(input) - err := req.Send() - return out, err -} - -const opStopAssessmentRun = "StopAssessmentRun" - -// StopAssessmentRunRequest generates a request for the StopAssessmentRun operation. -func (c *Inspector) StopAssessmentRunRequest(input *StopAssessmentRunInput) (req *request.Request, output *StopAssessmentRunOutput) { - op := &request.Operation{ - Name: opStopAssessmentRun, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &StopAssessmentRunInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &StopAssessmentRunOutput{} - req.Data = output - return -} - -// Stops the assessment run that is specified by the ARN of the assessment run. -func (c *Inspector) StopAssessmentRun(input *StopAssessmentRunInput) (*StopAssessmentRunOutput, error) { - req, out := c.StopAssessmentRunRequest(input) - err := req.Send() - return out, err -} - -const opSubscribeToEvent = "SubscribeToEvent" - -// SubscribeToEventRequest generates a request for the SubscribeToEvent operation. -func (c *Inspector) SubscribeToEventRequest(input *SubscribeToEventInput) (req *request.Request, output *SubscribeToEventOutput) { - op := &request.Operation{ - Name: opSubscribeToEvent, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SubscribeToEventInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SubscribeToEventOutput{} - req.Data = output - return -} - -// Enables the process of sending Amazon Simple Notification Service (SNS) notifications -// about a specified event to a specified SNS topic. -func (c *Inspector) SubscribeToEvent(input *SubscribeToEventInput) (*SubscribeToEventOutput, error) { - req, out := c.SubscribeToEventRequest(input) - err := req.Send() - return out, err -} - -const opUnsubscribeFromEvent = "UnsubscribeFromEvent" - -// UnsubscribeFromEventRequest generates a request for the UnsubscribeFromEvent operation. -func (c *Inspector) UnsubscribeFromEventRequest(input *UnsubscribeFromEventInput) (req *request.Request, output *UnsubscribeFromEventOutput) { - op := &request.Operation{ - Name: opUnsubscribeFromEvent, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UnsubscribeFromEventInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UnsubscribeFromEventOutput{} - req.Data = output - return -} - -// Disables the process of sending Amazon Simple Notification Service (SNS) -// notifications about a specified event to a specified SNS topic. -func (c *Inspector) UnsubscribeFromEvent(input *UnsubscribeFromEventInput) (*UnsubscribeFromEventOutput, error) { - req, out := c.UnsubscribeFromEventRequest(input) - err := req.Send() - return out, err -} - -const opUpdateAssessmentTarget = "UpdateAssessmentTarget" - -// UpdateAssessmentTargetRequest generates a request for the UpdateAssessmentTarget operation. -func (c *Inspector) UpdateAssessmentTargetRequest(input *UpdateAssessmentTargetInput) (req *request.Request, output *UpdateAssessmentTargetOutput) { - op := &request.Operation{ - Name: opUpdateAssessmentTarget, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateAssessmentTargetInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateAssessmentTargetOutput{} - req.Data = output - return -} - -// Updates the assessment target that is specified by the ARN of the assessment -// target. -func (c *Inspector) UpdateAssessmentTarget(input *UpdateAssessmentTargetInput) (*UpdateAssessmentTargetOutput, error) { - req, out := c.UpdateAssessmentTargetRequest(input) - err := req.Send() - return out, err -} - -type AddAttributesToFindingsInput struct { - _ struct{} `type:"structure"` - - // The array of attributes that you want to assign to specified findings. - Attributes []*Attribute `locationName:"attributes" type:"list" required:"true"` - - // The ARNs that specify the findings that you want to assign attributes to. - FindingArns []*string `locationName:"findingArns" min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s AddAttributesToFindingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddAttributesToFindingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddAttributesToFindingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddAttributesToFindingsInput"} - if s.Attributes == nil { - invalidParams.Add(request.NewErrParamRequired("Attributes")) - } - if s.FindingArns == nil { - invalidParams.Add(request.NewErrParamRequired("FindingArns")) - } - if s.FindingArns != nil && len(s.FindingArns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FindingArns", 1)) - } - if s.Attributes != nil { - for i, v := range s.Attributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type AddAttributesToFindingsOutput struct { - _ struct{} `type:"structure"` - - // Attribute details that cannot be described. An error code is provided for - // each failed item. - FailedItems map[string]*FailedItemDetails `locationName:"failedItems" type:"map" required:"true"` -} - -// String returns the string representation -func (s AddAttributesToFindingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddAttributesToFindingsOutput) GoString() string { - return s.String() -} - -// Used in the exception error that is thrown if you start an assessment run -// for an assessment target that includes an EC2 instance that is already participating -// in another started assessment run. -type AgentAlreadyRunningAssessment struct { - _ struct{} `type:"structure"` - - // ID of the agent that is running on an EC2 instance that is already participating - // in another started assessment run. - AgentId *string `locationName:"agentId" min:"1" type:"string" required:"true"` - - // The ARN of the assessment run that has already been started. - AssessmentRunArn *string `locationName:"assessmentRunArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AgentAlreadyRunningAssessment) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AgentAlreadyRunningAssessment) GoString() string { - return s.String() -} - -// Contains information about an Amazon Inspector agent. This data type is used -// as a request parameter in the ListAssessmentRunAgents action. -type AgentFilter struct { - _ struct{} `type:"structure"` - - // The detailed health state of the agent. Values can be set to IDLE, RUNNING, - // SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN. - AgentHealthCodes []*string `locationName:"agentHealthCodes" type:"list" required:"true"` - - // The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY. - AgentHealths []*string `locationName:"agentHealths" type:"list" required:"true"` -} - -// String returns the string representation -func (s AgentFilter) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AgentFilter) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AgentFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AgentFilter"} - if s.AgentHealthCodes == nil { - invalidParams.Add(request.NewErrParamRequired("AgentHealthCodes")) - } - if s.AgentHealths == nil { - invalidParams.Add(request.NewErrParamRequired("AgentHealths")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Used as a response element in the PreviewAgents action. -type AgentPreview struct { - _ struct{} `type:"structure"` - - // The ID of the EC2 instance where the agent is installed. - AgentId *string `locationName:"agentId" min:"1" type:"string" required:"true"` - - // The Auto Scaling group for the EC2 instance where the agent is installed. - AutoScalingGroup *string `locationName:"autoScalingGroup" min:"1" type:"string"` -} - -// String returns the string representation -func (s AgentPreview) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AgentPreview) GoString() string { - return s.String() -} - -// A snapshot of an Amazon Inspector assessment run that contains the findings -// of the assessment run . -// -// Used as the response element in the DescribeAssessmentRuns action. -type AssessmentRun struct { - _ struct{} `type:"structure"` - - // The ARN of the assessment run. - Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` - - // The ARN of the assessment template that is associated with the assessment - // run. - AssessmentTemplateArn *string `locationName:"assessmentTemplateArn" min:"1" type:"string" required:"true"` - - // The assessment run completion time that corresponds to the rules packages - // evaluation completion time or failure. - CompletedAt *time.Time `locationName:"completedAt" type:"timestamp" timestampFormat:"unix"` - - // The time when StartAssessmentRun was called. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"` - - // A Boolean value (true or false) that specifies whether the process of collecting - // data from the agents is completed. - DataCollected *bool `locationName:"dataCollected" type:"boolean" required:"true"` - - // The duration of the assessment run. - DurationInSeconds *int64 `locationName:"durationInSeconds" min:"180" type:"integer" required:"true"` - - // The auto-generated name for the assessment run. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // A list of notifications for the event subscriptions. A notification about - // a particular generated finding is added to this list only once. - Notifications []*AssessmentRunNotification `locationName:"notifications" type:"list" required:"true"` - - // The rules packages selected for the assessment run. - RulesPackageArns []*string `locationName:"rulesPackageArns" min:"1" type:"list" required:"true"` - - // The time when StartAssessmentRun was called. - StartedAt *time.Time `locationName:"startedAt" type:"timestamp" timestampFormat:"unix"` - - // The state of the assessment run. - State *string `locationName:"state" type:"string" required:"true" enum:"AssessmentRunState"` - - // The last time when the assessment run's state changed. - StateChangedAt *time.Time `locationName:"stateChangedAt" type:"timestamp" timestampFormat:"unix" required:"true"` - - // A list of the assessment run state changes. - StateChanges []*AssessmentRunStateChange `locationName:"stateChanges" type:"list" required:"true"` - - // The user-defined attributes that are assigned to every generated finding. - UserAttributesForFindings []*Attribute `locationName:"userAttributesForFindings" type:"list" required:"true"` -} - -// String returns the string representation -func (s AssessmentRun) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssessmentRun) GoString() string { - return s.String() -} - -// Contains information about an Amazon Inspector agent. This data type is used -// as a response element in the ListAssessmentRunAgents action. -type AssessmentRunAgent struct { - _ struct{} `type:"structure"` - - // The current health state of the agent. - AgentHealth *string `locationName:"agentHealth" type:"string" required:"true" enum:"AgentHealth"` - - // The detailed health state of the agent. - AgentHealthCode *string `locationName:"agentHealthCode" type:"string" required:"true" enum:"AgentHealthCode"` - - // The description for the agent health code. - AgentHealthDetails *string `locationName:"agentHealthDetails" type:"string"` - - // The AWS account of the EC2 instance where the agent is installed. - AgentId *string `locationName:"agentId" min:"1" type:"string" required:"true"` - - // The ARN of the assessment run that is associated with the agent. - AssessmentRunArn *string `locationName:"assessmentRunArn" min:"1" type:"string" required:"true"` - - // The Auto Scaling group of the EC2 instance that is specified by the agent - // ID. - AutoScalingGroup *string `locationName:"autoScalingGroup" min:"1" type:"string"` - - // The Amazon Inspector application data metrics that are collected by the agent. - TelemetryMetadata []*TelemetryMetadata `locationName:"telemetryMetadata" type:"list" required:"true"` -} - -// String returns the string representation -func (s AssessmentRunAgent) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssessmentRunAgent) GoString() string { - return s.String() -} - -// Used as the request parameter in the ListAssessmentRuns action. -type AssessmentRunFilter struct { - _ struct{} `type:"structure"` - - // For a record to match a filter, the value that is specified for this data - // type property must inclusively match any value between the specified minimum - // and maximum values of the completedAt property of the AssessmentRun data - // type. - CompletionTimeRange *TimestampRange `locationName:"completionTimeRange" type:"structure"` - - // For a record to match a filter, the value that is specified for this data - // type property must inclusively match any value between the specified minimum - // and maximum values of the durationInSeconds property of the AssessmentRun - // data type. - DurationRange *DurationRange `locationName:"durationRange" type:"structure"` - - // For a record to match a filter, an explicit value or a string containing - // a wildcard that is specified for this data type property must match the value - // of the assessmentRunName property of the AssessmentRun data type. - NamePattern *string `locationName:"namePattern" min:"1" type:"string"` - - // For a record to match a filter, the value that is specified for this data - // type property must be contained in the list of values of the rulesPackages - // property of the AssessmentRun data type. - RulesPackageArns []*string `locationName:"rulesPackageArns" type:"list"` - - // For a record to match a filter, the value that is specified for this data - // type property must inclusively match any value between the specified minimum - // and maximum values of the startTime property of the AssessmentRun data type. - StartTimeRange *TimestampRange `locationName:"startTimeRange" type:"structure"` - - // For a record to match a filter, the value that is specified for this data - // type property must match the stateChangedAt property of the AssessmentRun - // data type. - StateChangeTimeRange *TimestampRange `locationName:"stateChangeTimeRange" type:"structure"` - - // For a record to match a filter, one of the values specified for this data - // type property must be the exact match of the value of the assessmentRunState - // property of the AssessmentRun data type. - States []*string `locationName:"states" type:"list"` -} - -// String returns the string representation -func (s AssessmentRunFilter) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssessmentRunFilter) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssessmentRunFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssessmentRunFilter"} - if s.NamePattern != nil && len(*s.NamePattern) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NamePattern", 1)) - } - if s.DurationRange != nil { - if err := s.DurationRange.Validate(); err != nil { - invalidParams.AddNested("DurationRange", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Used as one of the elements of the AssessmentRun data type. -type AssessmentRunNotification struct { - _ struct{} `type:"structure"` - - // The date of the notification. - Date *time.Time `locationName:"date" type:"timestamp" timestampFormat:"unix" required:"true"` - - // The Boolean value that specifies whether the notification represents an error. - Error *bool `locationName:"error" type:"boolean" required:"true"` - - // The event for which a notification is sent. - Event *string `locationName:"event" type:"string" required:"true" enum:"Event"` - - Message *string `locationName:"message" type:"string"` - - // The status code of the SNS notification. - SnsPublishStatusCode *string `locationName:"snsPublishStatusCode" type:"string" enum:"AssessmentRunNotificationSnsStatusCode"` - - // The SNS topic to which the SNS notification is sent. - SnsTopicArn *string `locationName:"snsTopicArn" min:"1" type:"string"` -} - -// String returns the string representation -func (s AssessmentRunNotification) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssessmentRunNotification) GoString() string { - return s.String() -} - -// Used as one of the elements of the AssessmentRun data type. -type AssessmentRunStateChange struct { - _ struct{} `type:"structure"` - - // The assessment run state. - State *string `locationName:"state" type:"string" required:"true" enum:"AssessmentRunState"` - - // The last time the assessment run state changed. - StateChangedAt *time.Time `locationName:"stateChangedAt" type:"timestamp" timestampFormat:"unix" required:"true"` -} - -// String returns the string representation -func (s AssessmentRunStateChange) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssessmentRunStateChange) GoString() string { - return s.String() -} - -// Contains information about an Amazon Inspector application. This data type -// is used as the response element in the DescribeAssessmentTargets action. -type AssessmentTarget struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the Amazon Inspector assessment target. - Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` - - // The time at which the assessment target is created. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"` - - // The name of the Amazon Inspector assessment target. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // The ARN that specifies the resource group that is associated with the assessment - // target. - ResourceGroupArn *string `locationName:"resourceGroupArn" min:"1" type:"string" required:"true"` - - // The time at which UpdateAssessmentTarget is called. - UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"unix" required:"true"` -} - -// String returns the string representation -func (s AssessmentTarget) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssessmentTarget) GoString() string { - return s.String() -} - -// Used as the request parameter in the ListAssessmentTargets action. -type AssessmentTargetFilter struct { - _ struct{} `type:"structure"` - - // For a record to match a filter, an explicit value or a string that contains - // a wildcard that is specified for this data type property must match the value - // of the assessmentTargetName property of the AssessmentTarget data type. - AssessmentTargetNamePattern *string `locationName:"assessmentTargetNamePattern" min:"1" type:"string"` -} - -// String returns the string representation -func (s AssessmentTargetFilter) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssessmentTargetFilter) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssessmentTargetFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssessmentTargetFilter"} - if s.AssessmentTargetNamePattern != nil && len(*s.AssessmentTargetNamePattern) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTargetNamePattern", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains information about an Amazon Inspector assessment template. This -// data type is used as the response element in the DescribeAssessmentTemplates -// action. -type AssessmentTemplate struct { - _ struct{} `type:"structure"` - - // The ARN of the assessment template. - Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` - - // The ARN of the assessment target that corresponds to this assessment template. - AssessmentTargetArn *string `locationName:"assessmentTargetArn" min:"1" type:"string" required:"true"` - - // The time at which the assessment template is created. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"` - - // The duration in seconds specified for this assessment tempate. The default - // value is 3600 seconds (one hour). The maximum value is 86400 seconds (one - // day). - DurationInSeconds *int64 `locationName:"durationInSeconds" min:"180" type:"integer" required:"true"` - - // The name of the assessment template. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // The rules packages that are specified for this assessment template. - RulesPackageArns []*string `locationName:"rulesPackageArns" type:"list" required:"true"` - - // The user-defined attributes that are assigned to every generated finding - // from the assessment run that uses this assessment template. - UserAttributesForFindings []*Attribute `locationName:"userAttributesForFindings" type:"list" required:"true"` -} - -// String returns the string representation -func (s AssessmentTemplate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssessmentTemplate) GoString() string { - return s.String() -} - -// Used as the request parameter in the ListAssessmentTemplates action. -type AssessmentTemplateFilter struct { - _ struct{} `type:"structure"` - - // For a record to match a filter, the value specified for this data type property - // must inclusively match any value between the specified minimum and maximum - // values of the durationInSeconds property of the AssessmentTemplate data type. - DurationRange *DurationRange `locationName:"durationRange" type:"structure"` - - // For a record to match a filter, an explicit value or a string that contains - // a wildcard that is specified for this data type property must match the value - // of the assessmentTemplateName property of the AssessmentTemplate data type. - NamePattern *string `locationName:"namePattern" min:"1" type:"string"` - - // For a record to match a filter, the values that are specified for this data - // type property must be contained in the list of values of the rulesPackageArns - // property of the AssessmentTemplate data type. - RulesPackageArns []*string `locationName:"rulesPackageArns" type:"list"` -} - -// String returns the string representation -func (s AssessmentTemplateFilter) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssessmentTemplateFilter) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssessmentTemplateFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssessmentTemplateFilter"} - if s.NamePattern != nil && len(*s.NamePattern) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NamePattern", 1)) - } - if s.DurationRange != nil { - if err := s.DurationRange.Validate(); err != nil { - invalidParams.AddNested("DurationRange", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A collection of attributes of the host from which the finding is generated. -type AssetAttributes struct { - _ struct{} `type:"structure"` - - // The ID of the agent that is installed on the EC2 instance where the finding - // is generated. - AgentId *string `locationName:"agentId" min:"1" type:"string"` - - // The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance - // where the finding is generated. - AmiId *string `locationName:"amiId" type:"string"` - - // The Auto Scaling group of the EC2 instance where the finding is generated. - AutoScalingGroup *string `locationName:"autoScalingGroup" min:"1" type:"string"` - - // The hostname of the EC2 instance where the finding is generated. - Hostname *string `locationName:"hostname" type:"string"` - - // The list of IP v4 addresses of the EC2 instance where the finding is generated. - Ipv4Addresses []*string `locationName:"ipv4Addresses" type:"list"` - - // The schema version of this data type. - SchemaVersion *int64 `locationName:"schemaVersion" type:"integer" required:"true"` -} - -// String returns the string representation -func (s AssetAttributes) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssetAttributes) GoString() string { - return s.String() -} - -// This data type is used as a request parameter in the AddAttributesToFindings -// and CreateAssessmentTemplate actions. -type Attribute struct { - _ struct{} `type:"structure"` - - // The attribute key. - Key *string `locationName:"key" min:"1" type:"string" required:"true"` - - // The value assigned to the attribute key. - Value *string `locationName:"value" min:"1" type:"string"` -} - -// String returns the string representation -func (s Attribute) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Attribute) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Attribute) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Attribute"} - 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.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateAssessmentTargetInput struct { - _ struct{} `type:"structure"` - - // The user-defined name that identifies the assessment target that you want - // to create. The name must be unique within the AWS account. - AssessmentTargetName *string `locationName:"assessmentTargetName" min:"1" type:"string" required:"true"` - - // The ARN that specifies the resource group that is used to create the assessment - // target. - ResourceGroupArn *string `locationName:"resourceGroupArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateAssessmentTargetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAssessmentTargetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAssessmentTargetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAssessmentTargetInput"} - if s.AssessmentTargetName == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentTargetName")) - } - if s.AssessmentTargetName != nil && len(*s.AssessmentTargetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTargetName", 1)) - } - if s.ResourceGroupArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceGroupArn")) - } - if s.ResourceGroupArn != nil && len(*s.ResourceGroupArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceGroupArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateAssessmentTargetOutput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the assessment target that is created. - AssessmentTargetArn *string `locationName:"assessmentTargetArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateAssessmentTargetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAssessmentTargetOutput) GoString() string { - return s.String() -} - -type CreateAssessmentTemplateInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the assessment target for which you want to create - // the assessment template. - AssessmentTargetArn *string `locationName:"assessmentTargetArn" min:"1" type:"string" required:"true"` - - // The user-defined name that identifies the assessment template that you want - // to create. You can create several assessment templates for an assessment - // target. The names of the assessment templates that correspond to a particular - // assessment target must be unique. - AssessmentTemplateName *string `locationName:"assessmentTemplateName" min:"1" type:"string" required:"true"` - - // The duration of the assessment run in seconds. The default value is 3600 - // seconds (one hour). - DurationInSeconds *int64 `locationName:"durationInSeconds" min:"180" type:"integer" required:"true"` - - // The ARNs that specify the rules packages that you want to attach to the assessment - // template. - RulesPackageArns []*string `locationName:"rulesPackageArns" type:"list" required:"true"` - - // The user-defined attributes that are assigned to every finding that is generated - // by the assessment run that uses this assessment template. - UserAttributesForFindings []*Attribute `locationName:"userAttributesForFindings" type:"list"` -} - -// String returns the string representation -func (s CreateAssessmentTemplateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAssessmentTemplateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAssessmentTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAssessmentTemplateInput"} - if s.AssessmentTargetArn == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentTargetArn")) - } - if s.AssessmentTargetArn != nil && len(*s.AssessmentTargetArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTargetArn", 1)) - } - if s.AssessmentTemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentTemplateName")) - } - if s.AssessmentTemplateName != nil && len(*s.AssessmentTemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTemplateName", 1)) - } - if s.DurationInSeconds == nil { - invalidParams.Add(request.NewErrParamRequired("DurationInSeconds")) - } - if s.DurationInSeconds != nil && *s.DurationInSeconds < 180 { - invalidParams.Add(request.NewErrParamMinValue("DurationInSeconds", 180)) - } - if s.RulesPackageArns == nil { - invalidParams.Add(request.NewErrParamRequired("RulesPackageArns")) - } - if s.UserAttributesForFindings != nil { - for i, v := range s.UserAttributesForFindings { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributesForFindings", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateAssessmentTemplateOutput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the assessment template that is created. - AssessmentTemplateArn *string `locationName:"assessmentTemplateArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateAssessmentTemplateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAssessmentTemplateOutput) GoString() string { - return s.String() -} - -type CreateResourceGroupInput struct { - _ struct{} `type:"structure"` - - // A collection of keys and an array of possible values, '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'. - // - // For example,'[{"key":"Name","values":["TestEC2Instance"]}]'. - ResourceGroupTags []*ResourceGroupTag `locationName:"resourceGroupTags" min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s CreateResourceGroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateResourceGroupInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateResourceGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateResourceGroupInput"} - if s.ResourceGroupTags == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceGroupTags")) - } - if s.ResourceGroupTags != nil && len(s.ResourceGroupTags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceGroupTags", 1)) - } - if s.ResourceGroupTags != nil { - for i, v := range s.ResourceGroupTags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ResourceGroupTags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateResourceGroupOutput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the resource group that is created. - ResourceGroupArn *string `locationName:"resourceGroupArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateResourceGroupOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateResourceGroupOutput) GoString() string { - return s.String() -} - -type DeleteAssessmentRunInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the assessment run that you want to delete. - AssessmentRunArn *string `locationName:"assessmentRunArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteAssessmentRunInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAssessmentRunInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAssessmentRunInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAssessmentRunInput"} - if s.AssessmentRunArn == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentRunArn")) - } - if s.AssessmentRunArn != nil && len(*s.AssessmentRunArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentRunArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteAssessmentRunOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteAssessmentRunOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAssessmentRunOutput) GoString() string { - return s.String() -} - -type DeleteAssessmentTargetInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the assessment target that you want to delete. - AssessmentTargetArn *string `locationName:"assessmentTargetArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteAssessmentTargetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAssessmentTargetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAssessmentTargetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAssessmentTargetInput"} - if s.AssessmentTargetArn == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentTargetArn")) - } - if s.AssessmentTargetArn != nil && len(*s.AssessmentTargetArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTargetArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteAssessmentTargetOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteAssessmentTargetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAssessmentTargetOutput) GoString() string { - return s.String() -} - -type DeleteAssessmentTemplateInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the assessment template that you want to delete. - AssessmentTemplateArn *string `locationName:"assessmentTemplateArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteAssessmentTemplateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAssessmentTemplateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAssessmentTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAssessmentTemplateInput"} - if s.AssessmentTemplateArn == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentTemplateArn")) - } - if s.AssessmentTemplateArn != nil && len(*s.AssessmentTemplateArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTemplateArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteAssessmentTemplateOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteAssessmentTemplateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAssessmentTemplateOutput) GoString() string { - return s.String() -} - -type DescribeAssessmentRunsInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the assessment run that you want to describe. - AssessmentRunArns []*string `locationName:"assessmentRunArns" min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeAssessmentRunsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAssessmentRunsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAssessmentRunsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAssessmentRunsInput"} - if s.AssessmentRunArns == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentRunArns")) - } - if s.AssessmentRunArns != nil && len(s.AssessmentRunArns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentRunArns", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeAssessmentRunsOutput struct { - _ struct{} `type:"structure"` - - // Information about the assessment run. - AssessmentRuns []*AssessmentRun `locationName:"assessmentRuns" type:"list" required:"true"` - - // Assessment run details that cannot be described. An error code is provided - // for each failed item. - FailedItems map[string]*FailedItemDetails `locationName:"failedItems" type:"map" required:"true"` -} - -// String returns the string representation -func (s DescribeAssessmentRunsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAssessmentRunsOutput) GoString() string { - return s.String() -} - -type DescribeAssessmentTargetsInput struct { - _ struct{} `type:"structure"` - - // The ARNs that specifies the assessment targets that you want to describe. - AssessmentTargetArns []*string `locationName:"assessmentTargetArns" min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeAssessmentTargetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAssessmentTargetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAssessmentTargetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAssessmentTargetsInput"} - if s.AssessmentTargetArns == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentTargetArns")) - } - if s.AssessmentTargetArns != nil && len(s.AssessmentTargetArns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTargetArns", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeAssessmentTargetsOutput struct { - _ struct{} `type:"structure"` - - // Information about the assessment targets. - AssessmentTargets []*AssessmentTarget `locationName:"assessmentTargets" type:"list" required:"true"` - - // Assessment target details that cannot be described. An error code is provided - // for each failed item. - FailedItems map[string]*FailedItemDetails `locationName:"failedItems" type:"map" required:"true"` -} - -// String returns the string representation -func (s DescribeAssessmentTargetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAssessmentTargetsOutput) GoString() string { - return s.String() -} - -type DescribeAssessmentTemplatesInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifiesthe assessment templates that you want to describe. - AssessmentTemplateArns []*string `locationName:"assessmentTemplateArns" min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeAssessmentTemplatesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAssessmentTemplatesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAssessmentTemplatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAssessmentTemplatesInput"} - if s.AssessmentTemplateArns == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentTemplateArns")) - } - if s.AssessmentTemplateArns != nil && len(s.AssessmentTemplateArns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTemplateArns", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeAssessmentTemplatesOutput struct { - _ struct{} `type:"structure"` - - // Information about the assessment templates. - AssessmentTemplates []*AssessmentTemplate `locationName:"assessmentTemplates" type:"list" required:"true"` - - // Assessment template details that cannot be described. An error code is provided - // for each failed item. - FailedItems map[string]*FailedItemDetails `locationName:"failedItems" type:"map" required:"true"` -} - -// String returns the string representation -func (s DescribeAssessmentTemplatesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAssessmentTemplatesOutput) GoString() string { - return s.String() -} - -type DescribeCrossAccountAccessRoleInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DescribeCrossAccountAccessRoleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeCrossAccountAccessRoleInput) GoString() string { - return s.String() -} - -type DescribeCrossAccountAccessRoleOutput struct { - _ struct{} `type:"structure"` - - // The date when the cross-account access role was registered. - RegisteredAt *time.Time `locationName:"registeredAt" type:"timestamp" timestampFormat:"unix" required:"true"` - - // The ARN that specifies the IAM role that Amazon Inspector uses to access - // your AWS account. - RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` - - // A Boolean value that specifies whether the IAM role has the necessary policies - // attached to enable Amazon Inspector to access your AWS account. - Valid *bool `locationName:"valid" type:"boolean" required:"true"` -} - -// String returns the string representation -func (s DescribeCrossAccountAccessRoleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeCrossAccountAccessRoleOutput) GoString() string { - return s.String() -} - -type DescribeFindingsInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the finding that you want to describe. - FindingArns []*string `locationName:"findingArns" min:"1" type:"list" required:"true"` - - // The locale into which you want to translate a finding description, recommendation, - // and the short description that identifies the finding. - Locale *string `locationName:"locale" type:"string" enum:"Locale"` -} - -// String returns the string representation -func (s DescribeFindingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFindingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeFindingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeFindingsInput"} - if s.FindingArns == nil { - invalidParams.Add(request.NewErrParamRequired("FindingArns")) - } - if s.FindingArns != nil && len(s.FindingArns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FindingArns", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeFindingsOutput struct { - _ struct{} `type:"structure"` - - // Finding details that cannot be described. An error code is provided for each - // failed item. - FailedItems map[string]*FailedItemDetails `locationName:"failedItems" type:"map" required:"true"` - - // Information about the finding. - Findings []*Finding `locationName:"findings" type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeFindingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeFindingsOutput) GoString() string { - return s.String() -} - -type DescribeResourceGroupsInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the resource group that you want to describe. - ResourceGroupArns []*string `locationName:"resourceGroupArns" min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeResourceGroupsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeResourceGroupsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeResourceGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeResourceGroupsInput"} - if s.ResourceGroupArns == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceGroupArns")) - } - if s.ResourceGroupArns != nil && len(s.ResourceGroupArns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceGroupArns", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeResourceGroupsOutput struct { - _ struct{} `type:"structure"` - - // Resource group details that cannot be described. An error code is provided - // for each failed item. - FailedItems map[string]*FailedItemDetails `locationName:"failedItems" type:"map" required:"true"` - - // Information about a resource group. - ResourceGroups []*ResourceGroup `locationName:"resourceGroups" type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeResourceGroupsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeResourceGroupsOutput) GoString() string { - return s.String() -} - -type DescribeRulesPackagesInput struct { - _ struct{} `type:"structure"` - - // The locale that you want to translate a rules package description into. - Locale *string `locationName:"locale" type:"string" enum:"Locale"` - - // The ARN that specifies the rules package that you want to describe. - RulesPackageArns []*string `locationName:"rulesPackageArns" min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeRulesPackagesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeRulesPackagesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeRulesPackagesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeRulesPackagesInput"} - if s.RulesPackageArns == nil { - invalidParams.Add(request.NewErrParamRequired("RulesPackageArns")) - } - if s.RulesPackageArns != nil && len(s.RulesPackageArns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RulesPackageArns", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeRulesPackagesOutput struct { - _ struct{} `type:"structure"` - - // Rules package details that cannot be described. An error code is provided - // for each failed item. - FailedItems map[string]*FailedItemDetails `locationName:"failedItems" type:"map" required:"true"` - - // Information about the rules package. - RulesPackages []*RulesPackage `locationName:"rulesPackages" type:"list" required:"true"` -} - -// String returns the string representation -func (s DescribeRulesPackagesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeRulesPackagesOutput) GoString() string { - return s.String() -} - -// This data type is used in the AssessmentTemplateFilter data type. -type DurationRange struct { - _ struct{} `type:"structure"` - - // The maximum value of the duration range. Must be less than or equal to 604800 - // seconds (1 week). - MaxSeconds *int64 `locationName:"maxSeconds" min:"180" type:"integer"` - - // The minimum value of the duration range. Must be greater than zero. - MinSeconds *int64 `locationName:"minSeconds" min:"180" type:"integer"` -} - -// String returns the string representation -func (s DurationRange) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DurationRange) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DurationRange) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DurationRange"} - if s.MaxSeconds != nil && *s.MaxSeconds < 180 { - invalidParams.Add(request.NewErrParamMinValue("MaxSeconds", 180)) - } - if s.MinSeconds != nil && *s.MinSeconds < 180 { - invalidParams.Add(request.NewErrParamMinValue("MinSeconds", 180)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// This data type is used in the Subscription data type. -type EventSubscription struct { - _ struct{} `type:"structure"` - - // The event for which Amazon Simple Notification Service (SNS) notifications - // are sent. - Event *string `locationName:"event" type:"string" required:"true" enum:"Event"` - - // The time at which SubscribeToEvent is called. - SubscribedAt *time.Time `locationName:"subscribedAt" type:"timestamp" timestampFormat:"unix" required:"true"` -} - -// String returns the string representation -func (s EventSubscription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EventSubscription) GoString() string { - return s.String() -} - -// Includes details about the failed items. -type FailedItemDetails struct { - _ struct{} `type:"structure"` - - // The status code of a failed item. - FailureCode *string `locationName:"failureCode" type:"string" required:"true" enum:"FailedItemErrorCode"` - - // Indicates whether you can immediately retry a request for this item for a - // specified resource. - Retryable *bool `locationName:"retryable" type:"boolean" required:"true"` -} - -// String returns the string representation -func (s FailedItemDetails) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FailedItemDetails) GoString() string { - return s.String() -} - -// Contains information about an Amazon Inspector finding. This data type is -// used as the response element in the DescribeFindings action. -type Finding struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the finding. - Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` - - // A collection of attributes of the host from which the finding is generated. - AssetAttributes *AssetAttributes `locationName:"assetAttributes" type:"structure"` - - // The type of the host from which the finding is generated. - AssetType *string `locationName:"assetType" type:"string" enum:"AssetType"` - - // The system-defined attributes for the finding. - Attributes []*Attribute `locationName:"attributes" type:"list" required:"true"` - - // This data element is currently not used. - Confidence *int64 `locationName:"confidence" type:"integer"` - - // The time when the finding was generated. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"` - - // The description of the finding. - Description *string `locationName:"description" type:"string"` - - // The ID of the finding. - Id *string `locationName:"id" type:"string"` - - // This data element is currently not used. - IndicatorOfCompromise *bool `locationName:"indicatorOfCompromise" type:"boolean"` - - // The numeric value of the finding severity. - NumericSeverity *float64 `locationName:"numericSeverity" type:"double"` - - // The recommendation for the finding. - Recommendation *string `locationName:"recommendation" type:"string"` - - // The schema version of this data type. - SchemaVersion *int64 `locationName:"schemaVersion" type:"integer"` - - // The data element is set to "Inspector". - Service *string `locationName:"service" type:"string"` - - // This data type is used in the Finding data type. - ServiceAttributes *ServiceAttributes `locationName:"serviceAttributes" type:"structure"` - - // The finding severity. Values can be set to High, Medium, Low, and Informational. - Severity *string `locationName:"severity" type:"string" enum:"Severity"` - - // The name of the finding. - Title *string `locationName:"title" type:"string"` - - // The time when AddAttributesToFindings is called. - UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"unix" required:"true"` - - // The user-defined attributes that are assigned to the finding. - UserAttributes []*Attribute `locationName:"userAttributes" type:"list" required:"true"` -} - -// String returns the string representation -func (s Finding) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Finding) GoString() string { - return s.String() -} - -// This data type is used as a request parameter in the ListFindings action. -type FindingFilter struct { - _ struct{} `type:"structure"` - - // For a record to match a filter, one of the values that is specified for this - // data type property must be the exact match of the value of the agentId property - // of the Finding data type. - AgentIds []*string `locationName:"agentIds" type:"list"` - - // For a record to match a filter, the list of values that are specified for - // this data type property must be contained in the list of values of the attributes - // property of the Finding data type. - Attributes []*Attribute `locationName:"attributes" type:"list"` - - // For a record to match a filter, one of the values that is specified for this - // data type property must be the exact match of the value of the autoScalingGroup - // property of the Finding data type. - AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` - - // The time range during which the finding is generated. - CreationTimeRange *TimestampRange `locationName:"creationTimeRange" type:"structure"` - - // For a record to match a filter, one of the values that is specified for this - // data type property must be the exact match of the value of the ruleName property - // of the Finding data type. - RuleNames []*string `locationName:"ruleNames" type:"list"` - - // For a record to match a filter, one of the values that is specified for this - // data type property must be the exact match of the value of the rulesPackageArn - // property of the Finding data type. - RulesPackageArns []*string `locationName:"rulesPackageArns" type:"list"` - - // For a record to match a filter, one of the values that is specified for this - // data type property must be the exact match of the value of the severity property - // of the Finding data type. - Severities []*string `locationName:"severities" type:"list"` - - // For a record to match a filter, the value that is specified for this data - // type property must be contained in the list of values of the userAttributes - // property of the Finding data type. - UserAttributes []*Attribute `locationName:"userAttributes" type:"list"` -} - -// String returns the string representation -func (s FindingFilter) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FindingFilter) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *FindingFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FindingFilter"} - if s.Attributes != nil { - for i, v := range s.Attributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) - } - } - } - if s.UserAttributes != nil { - for i, v := range s.UserAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetTelemetryMetadataInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the assessment run that has the telemetry data that - // you want to obtain. - AssessmentRunArn *string `locationName:"assessmentRunArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetTelemetryMetadataInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTelemetryMetadataInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTelemetryMetadataInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTelemetryMetadataInput"} - if s.AssessmentRunArn == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentRunArn")) - } - if s.AssessmentRunArn != nil && len(*s.AssessmentRunArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentRunArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetTelemetryMetadataOutput struct { - _ struct{} `type:"structure"` - - // Telemetry details. - TelemetryMetadata []*TelemetryMetadata `locationName:"telemetryMetadata" type:"list" required:"true"` -} - -// String returns the string representation -func (s GetTelemetryMetadataOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTelemetryMetadataOutput) GoString() string { - return s.String() -} - -type ListAssessmentRunAgentsInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the assessment run whose agents you want to list. - AssessmentRunArn *string `locationName:"assessmentRunArn" min:"1" type:"string" required:"true"` - - // You can use this parameter to specify a subset of data to be included in - // the action's response. - // - // For a record to match a filter, all specified filter attributes must match. - // When multiple values are specified for a filter attribute, any of the values - // can match. - Filter *AgentFilter `locationName:"filter" type:"structure"` - - // You can use this parameter to indicate the maximum number of items that you - // want in the response. The default value is 10. The maximum value is 500. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // You can use this parameter when paginating results. Set the value of this - // parameter to null on your first call to the ListAssessmentRunAgents action. - // Subsequent calls to the action fill nextToken in the request with the value - // of NextToken from the previous response to continue listing data. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListAssessmentRunAgentsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAssessmentRunAgentsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAssessmentRunAgentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAssessmentRunAgentsInput"} - if s.AssessmentRunArn == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentRunArn")) - } - if s.AssessmentRunArn != nil && len(*s.AssessmentRunArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentRunArn", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.Filter != nil { - if err := s.Filter.Validate(); err != nil { - invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListAssessmentRunAgentsOutput struct { - _ struct{} `type:"structure"` - - // A list of ARNs that specifies the agents returned by the action. - AssessmentRunAgents []*AssessmentRunAgent `locationName:"assessmentRunAgents" type:"list" required:"true"` - - // When a response is generated, if there is more data to be listed, this parameter - // is present in the response and contains the value to use for the nextToken - // parameter in a subsequent pagination request. If there is no more data to - // be listed, this parameter is set to null. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListAssessmentRunAgentsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAssessmentRunAgentsOutput) GoString() string { - return s.String() -} - -type ListAssessmentRunsInput struct { - _ struct{} `type:"structure"` - - // The ARNs that specify the assessment templates whose assessment runs you - // want to list. - AssessmentTemplateArns []*string `locationName:"assessmentTemplateArns" type:"list"` - - // You can use this parameter to specify a subset of data to be included in - // the action's response. - // - // For a record to match a filter, all specified filter attributes must match. - // When multiple values are specified for a filter attribute, any of the values - // can match. - Filter *AssessmentRunFilter `locationName:"filter" type:"structure"` - - // You can use this parameter to indicate the maximum number of items that you - // want in the response. The default value is 10. The maximum value is 500. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // You can use this parameter when paginating results. Set the value of this - // parameter to null on your first call to the ListAssessmentRuns action. Subsequent - // calls to the action fill nextToken in the request with the value of NextToken - // from the previous response to continue listing data. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListAssessmentRunsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAssessmentRunsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAssessmentRunsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAssessmentRunsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.Filter != nil { - if err := s.Filter.Validate(); err != nil { - invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListAssessmentRunsOutput struct { - _ struct{} `type:"structure"` - - // A list of ARNs that specifies the assessment runs that are returned by the - // action. - AssessmentRunArns []*string `locationName:"assessmentRunArns" type:"list" required:"true"` - - // When a response is generated, if there is more data to be listed, this parameter - // is present in the response and contains the value to use for the nextToken - // parameter in a subsequent pagination request. If there is no more data to - // be listed, this parameter is set to null. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListAssessmentRunsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAssessmentRunsOutput) GoString() string { - return s.String() -} - -type ListAssessmentTargetsInput struct { - _ struct{} `type:"structure"` - - // You can use this parameter to specify a subset of data to be included in - // the action's response. - // - // For a record to match a filter, all specified filter attributes must match. - // When multiple values are specified for a filter attribute, any of the values - // can match. - Filter *AssessmentTargetFilter `locationName:"filter" type:"structure"` - - // You can use this parameter to indicate the maximum number of items you want - // in the response. The default value is 10. The maximum value is 500. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // You can use this parameter when paginating results. Set the value of this - // parameter to null on your first call to the ListAssessmentTargets action. - // Subsequent calls to the action fill nextToken in the request with the value - // of NextToken from the previous response to continue listing data. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListAssessmentTargetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAssessmentTargetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAssessmentTargetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAssessmentTargetsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.Filter != nil { - if err := s.Filter.Validate(); err != nil { - invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListAssessmentTargetsOutput struct { - _ struct{} `type:"structure"` - - // A list of ARNs that specifies the assessment targets that are returned by - // the action. - AssessmentTargetArns []*string `locationName:"assessmentTargetArns" type:"list" required:"true"` - - // When a response is generated, if there is more data to be listed, this parameter - // is present in the response and contains the value to use for the nextToken - // parameter in a subsequent pagination request. If there is no more data to - // be listed, this parameter is set to null. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListAssessmentTargetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAssessmentTargetsOutput) GoString() string { - return s.String() -} - -type ListAssessmentTemplatesInput struct { - _ struct{} `type:"structure"` - - // A list of ARNs that specifies the assessment targets whose assessment templates - // you want to list. - AssessmentTargetArns []*string `locationName:"assessmentTargetArns" type:"list"` - - // You can use this parameter to specify a subset of data to be included in - // the action's response. - // - // For a record to match a filter, all specified filter attributes must match. - // When multiple values are specified for a filter attribute, any of the values - // can match. - Filter *AssessmentTemplateFilter `locationName:"filter" type:"structure"` - - // You can use this parameter to indicate the maximum number of items you want - // in the response. The default value is 10. The maximum value is 500. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // You can use this parameter when paginating results. Set the value of this - // parameter to null on your first call to the ListAssessmentTemplates action. - // Subsequent calls to the action fill nextToken in the request with the value - // of NextToken from the previous response to continue listing data. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListAssessmentTemplatesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAssessmentTemplatesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAssessmentTemplatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAssessmentTemplatesInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.Filter != nil { - if err := s.Filter.Validate(); err != nil { - invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListAssessmentTemplatesOutput struct { - _ struct{} `type:"structure"` - - // A list of ARNs that specifies the assessment templates returned by the action. - AssessmentTemplateArns []*string `locationName:"assessmentTemplateArns" type:"list" required:"true"` - - // When a response is generated, if there is more data to be listed, this parameter - // is present in the response and contains the value to use for the nextToken - // parameter in a subsequent pagination request. If there is no more data to - // be listed, this parameter is set to null. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListAssessmentTemplatesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAssessmentTemplatesOutput) GoString() string { - return s.String() -} - -type ListEventSubscriptionsInput struct { - _ struct{} `type:"structure"` - - // You can use this parameter to indicate the maximum number of items you want - // in the response. The default value is 10. The maximum value is 500. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // You can use this parameter when paginating results. Set the value of this - // parameter to null on your first call to the ListEventSubscriptions action. - // Subsequent calls to the action fill nextToken in the request with the value - // of NextToken from the previous response to continue listing data. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` - - // The ARN of the assessment template for which you want to list the existing - // event subscriptions. - ResourceArn *string `locationName:"resourceArn" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListEventSubscriptionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListEventSubscriptionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListEventSubscriptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEventSubscriptionsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListEventSubscriptionsOutput struct { - _ struct{} `type:"structure"` - - // When a response is generated, if there is more data to be listed, this parameter - // is present in the response and contains the value to use for the nextToken - // parameter in a subsequent pagination request. If there is no more data to - // be listed, this parameter is set to null. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` - - // Details of the returned event subscriptions. - Subscriptions []*Subscription `locationName:"subscriptions" type:"list" required:"true"` -} - -// String returns the string representation -func (s ListEventSubscriptionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListEventSubscriptionsOutput) GoString() string { - return s.String() -} - -type ListFindingsInput struct { - _ struct{} `type:"structure"` - - // The ARNs of the assessment runs that generate the findings that you want - // to list. - AssessmentRunArns []*string `locationName:"assessmentRunArns" type:"list"` - - // You can use this parameter to specify a subset of data to be included in - // the action's response. - // - // For a record to match a filter, all specified filter attributes must match. - // When multiple values are specified for a filter attribute, any of the values - // can match. - Filter *FindingFilter `locationName:"filter" type:"structure"` - - // You can use this parameter to indicate the maximum number of items you want - // in the response. The default value is 10. The maximum value is 500. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // You can use this parameter when paginating results. Set the value of this - // parameter to null on your first call to the ListFindings action. Subsequent - // calls to the action fill nextToken in the request with the value of NextToken - // from the previous response to continue listing data. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListFindingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListFindingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListFindingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListFindingsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.Filter != nil { - if err := s.Filter.Validate(); err != nil { - invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListFindingsOutput struct { - _ struct{} `type:"structure"` - - // A list of ARNs that specifies the findings returned by the action. - FindingArns []*string `locationName:"findingArns" type:"list" required:"true"` - - // When a response is generated, if there is more data to be listed, this parameter - // is present in the response and contains the value to use for the nextToken - // parameter in a subsequent pagination request. If there is no more data to - // be listed, this parameter is set to null. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListFindingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListFindingsOutput) GoString() string { - return s.String() -} - -type ListRulesPackagesInput struct { - _ struct{} `type:"structure"` - - // You can use this parameter to indicate the maximum number of items you want - // in the response. The default value is 10. The maximum value is 500. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // You can use this parameter when paginating results. Set the value of this - // parameter to null on your first call to the ListRulesPackages action. Subsequent - // calls to the action fill nextToken in the request with the value of NextToken - // from the previous response to continue listing data. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s ListRulesPackagesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListRulesPackagesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRulesPackagesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRulesPackagesInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListRulesPackagesOutput struct { - _ struct{} `type:"structure"` - - // When a response is generated, if there is more data to be listed, this parameter - // is present in the response and contains the value to use for the nextToken - // parameter in a subsequent pagination request. If there is no more data to - // be listed, this parameter is set to null. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` - - // The list of ARNs that specifies the rules packages returned by the action. - RulesPackageArns []*string `locationName:"rulesPackageArns" type:"list" required:"true"` -} - -// String returns the string representation -func (s ListRulesPackagesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListRulesPackagesOutput) GoString() string { - return s.String() -} - -type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` - - // The ARN that specifies the assessment template whose tags you want to list. - ResourceArn *string `locationName:"resourceArn" 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 -} - -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - - // A collection of key and value pairs. - Tags []*Tag `locationName:"tags" type:"list" required:"true"` -} - -// 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() -} - -type PreviewAgentsInput struct { - _ struct{} `type:"structure"` - - // You can use this parameter to indicate the maximum number of items you want - // in the response. The default value is 10. The maximum value is 500. - MaxResults *int64 `locationName:"maxResults" type:"integer"` - - // You can use this parameter when paginating results. Set the value of this - // parameter to null on your first call to the PreviewAgents action. Subsequent - // calls to the action fill nextToken in the request with the value of NextToken - // from the previous response to continue listing data. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` - - // The ARN of the assessment target whose agents you want to preview. - PreviewAgentsArn *string `locationName:"previewAgentsArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s PreviewAgentsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PreviewAgentsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PreviewAgentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PreviewAgentsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.PreviewAgentsArn == nil { - invalidParams.Add(request.NewErrParamRequired("PreviewAgentsArn")) - } - if s.PreviewAgentsArn != nil && len(*s.PreviewAgentsArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PreviewAgentsArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type PreviewAgentsOutput struct { - _ struct{} `type:"structure"` - - // The resulting list of agents. - AgentPreviews []*AgentPreview `locationName:"agentPreviews" type:"list" required:"true"` - - // When a response is generated, if there is more data to be listed, this parameter - // is present in the response and contains the value to use for the nextToken - // parameter in a subsequent pagination request. If there is no more data to - // be listed, this parameter is set to null. - NextToken *string `locationName:"nextToken" min:"1" type:"string"` -} - -// String returns the string representation -func (s PreviewAgentsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PreviewAgentsOutput) GoString() string { - return s.String() -} - -type RegisterCrossAccountAccessRoleInput struct { - _ struct{} `type:"structure"` - - // The ARN of the IAM role that Amazon Inspector uses to list your EC2 instances - // during the assessment run or when you call the PreviewAgents action. - RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s RegisterCrossAccountAccessRoleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegisterCrossAccountAccessRoleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterCrossAccountAccessRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterCrossAccountAccessRoleInput"} - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.RoleArn != nil && len(*s.RoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RegisterCrossAccountAccessRoleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s RegisterCrossAccountAccessRoleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegisterCrossAccountAccessRoleOutput) GoString() string { - return s.String() -} - -type RemoveAttributesFromFindingsInput struct { - _ struct{} `type:"structure"` - - // The array of attribute keys that you want to remove from specified findings. - AttributeKeys []*string `locationName:"attributeKeys" type:"list" required:"true"` - - // The ARNs that specify the findings that you want to remove attributes from. - FindingArns []*string `locationName:"findingArns" min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s RemoveAttributesFromFindingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveAttributesFromFindingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveAttributesFromFindingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveAttributesFromFindingsInput"} - if s.AttributeKeys == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeKeys")) - } - if s.FindingArns == nil { - invalidParams.Add(request.NewErrParamRequired("FindingArns")) - } - if s.FindingArns != nil && len(s.FindingArns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FindingArns", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RemoveAttributesFromFindingsOutput struct { - _ struct{} `type:"structure"` - - // Attributes details that cannot be described. An error code is provided for - // each failed item. - FailedItems map[string]*FailedItemDetails `locationName:"failedItems" type:"map" required:"true"` -} - -// String returns the string representation -func (s RemoveAttributesFromFindingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveAttributesFromFindingsOutput) GoString() string { - return s.String() -} - -// Contains information about a resource group. The resource group defines a -// set of tags that, when queried, identify the AWS resources that make up the -// assessment target. This data type is used as the response element in the -// DescribeResourceGroups action. -type ResourceGroup struct { - _ struct{} `type:"structure"` - - // The ARN of the resource group. - Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` - - // The time at which resource group is created. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix" required:"true"` - - // The tags (key and value pairs) of the resource group. This data type property - // is used in the CreateResourceGroup action. - Tags []*ResourceGroupTag `locationName:"tags" min:"1" type:"list" required:"true"` -} - -// String returns the string representation -func (s ResourceGroup) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResourceGroup) GoString() string { - return s.String() -} - -// This data type is used as one of the elements of the ResourceGroup data type. -type ResourceGroupTag struct { - _ struct{} `type:"structure"` - - // A tag key. - Key *string `locationName:"key" min:"1" type:"string" required:"true"` - - // The value assigned to a tag key. - Value *string `locationName:"value" min:"1" type:"string"` -} - -// String returns the string representation -func (s ResourceGroupTag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResourceGroupTag) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResourceGroupTag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResourceGroupTag"} - 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.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains information about an Amazon Inspector rules package. This data type -// is used as the response element in the DescribeRulesPackages action. -type RulesPackage struct { - _ struct{} `type:"structure"` - - // The ARN of the rules package. - Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` - - // The description of the rules package. - Description *string `locationName:"description" type:"string"` - - // The name of the rules package. - Name *string `locationName:"name" type:"string" required:"true"` - - // The provider of the rules package. - Provider *string `locationName:"provider" type:"string" required:"true"` - - // The version ID of the rules package. - Version *string `locationName:"version" type:"string" required:"true"` -} - -// String returns the string representation -func (s RulesPackage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RulesPackage) GoString() string { - return s.String() -} - -// This data type is used in the Finding data type. -type ServiceAttributes struct { - _ struct{} `type:"structure"` - - // The ARN of the assessment run during which the finding is generated. - AssessmentRunArn *string `locationName:"assessmentRunArn" min:"1" type:"string"` - - // The ARN of the rules package that is used to generate the finding. - RulesPackageArn *string `locationName:"rulesPackageArn" min:"1" type:"string"` - - // The schema version of this data type. - SchemaVersion *int64 `locationName:"schemaVersion" type:"integer" required:"true"` -} - -// String returns the string representation -func (s ServiceAttributes) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ServiceAttributes) GoString() string { - return s.String() -} - -type SetTagsForResourceInput struct { - _ struct{} `type:"structure"` - - // The ARN of the assessment template that you want to set tags to. - ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` - - // A collection of key and value pairs that you want to set to the assessment - // template. - Tags []*Tag `locationName:"tags" type:"list"` -} - -// String returns the string representation -func (s SetTagsForResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetTagsForResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetTagsForResourceInput"} - 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.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type SetTagsForResourceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s SetTagsForResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetTagsForResourceOutput) GoString() string { - return s.String() -} - -type StartAssessmentRunInput struct { - _ struct{} `type:"structure"` - - // You can specify the name for the assessment run, or you can use the auto-generated - // name that is based on the assessment template name. The name must be unique - // for the assessment template. - AssessmentRunName *string `locationName:"assessmentRunName" min:"1" type:"string"` - - // The ARN of the assessment template of the assessment run that you want to - // start. - AssessmentTemplateArn *string `locationName:"assessmentTemplateArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s StartAssessmentRunInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StartAssessmentRunInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartAssessmentRunInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartAssessmentRunInput"} - if s.AssessmentRunName != nil && len(*s.AssessmentRunName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentRunName", 1)) - } - if s.AssessmentTemplateArn == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentTemplateArn")) - } - if s.AssessmentTemplateArn != nil && len(*s.AssessmentTemplateArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTemplateArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type StartAssessmentRunOutput struct { - _ struct{} `type:"structure"` - - // The ARN of the assessment run that has been started. - AssessmentRunArn *string `locationName:"assessmentRunArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s StartAssessmentRunOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StartAssessmentRunOutput) GoString() string { - return s.String() -} - -type StopAssessmentRunInput struct { - _ struct{} `type:"structure"` - - // The ARN of the assessment run that you want to stop. - AssessmentRunArn *string `locationName:"assessmentRunArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s StopAssessmentRunInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StopAssessmentRunInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopAssessmentRunInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopAssessmentRunInput"} - if s.AssessmentRunArn == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentRunArn")) - } - if s.AssessmentRunArn != nil && len(*s.AssessmentRunArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentRunArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type StopAssessmentRunOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s StopAssessmentRunOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StopAssessmentRunOutput) GoString() string { - return s.String() -} - -type SubscribeToEventInput struct { - _ struct{} `type:"structure"` - - // The event for which you want to receive SNS notifications. - Event *string `locationName:"event" type:"string" required:"true" enum:"Event"` - - // The ARN of the assessment template that is used during the event for which - // you want to receive SNS notifications. - ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` - - // The ARN of the SNS topic to which the SNS notifications are sent. - TopicArn *string `locationName:"topicArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s SubscribeToEventInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SubscribeToEventInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SubscribeToEventInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SubscribeToEventInput"} - if s.Event == nil { - invalidParams.Add(request.NewErrParamRequired("Event")) - } - 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.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - if s.TopicArn != nil && len(*s.TopicArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TopicArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type SubscribeToEventOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s SubscribeToEventOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SubscribeToEventOutput) GoString() string { - return s.String() -} - -// This data type is used as a response element in the ListEventSubscriptions -// action. -type Subscription struct { - _ struct{} `type:"structure"` - - // The list of existing event subscriptions. - EventSubscriptions []*EventSubscription `locationName:"eventSubscriptions" min:"1" type:"list" required:"true"` - - // The ARN of the assessment template that is used during the event for which - // the SNS notification is sent. - ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` - - // The ARN of the Amazon Simple Notification Service (SNS) topic to which the - // SNS notifications are sent. - TopicArn *string `locationName:"topicArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s Subscription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Subscription) GoString() string { - return s.String() -} - -// A key and value pair. This data type is used as a request parameter in the -// SetTagsForResource action and a response element in the ListTagsForResource -// action. -type Tag struct { - _ struct{} `type:"structure"` - - // A tag key. - Key *string `locationName:"key" min:"1" type:"string" required:"true"` - - // A value assigned to a tag key. - Value *string `locationName:"value" min:"1" type:"string"` -} - -// String returns the string representation -func (s Tag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Tag) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - 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.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The metadata about the Amazon Inspector application data metrics collected -// by the agent. This data type is used as the response element in the GetTelemetryMetadata -// action. -type TelemetryMetadata struct { - _ struct{} `type:"structure"` - - // The count of messages that the agent sends to the Amazon Inspector service. - Count *int64 `locationName:"count" type:"long" required:"true"` - - // The data size of messages that the agent sends to the Amazon Inspector service. - DataSize *int64 `locationName:"dataSize" type:"long"` - - // A specific type of behavioral data that is collected by the agent. - MessageType *string `locationName:"messageType" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s TelemetryMetadata) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TelemetryMetadata) GoString() string { - return s.String() -} - -// This data type is used in the AssessmentRunFilter data type. -type TimestampRange struct { - _ struct{} `type:"structure"` - - // The minimum value of the timestamp range. - BeginDate *time.Time `locationName:"beginDate" type:"timestamp" timestampFormat:"unix"` - - // The maximum value of the timestamp range. - EndDate *time.Time `locationName:"endDate" type:"timestamp" timestampFormat:"unix"` -} - -// String returns the string representation -func (s TimestampRange) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TimestampRange) GoString() string { - return s.String() -} - -type UnsubscribeFromEventInput struct { - _ struct{} `type:"structure"` - - // The event for which you want to stop receiving SNS notifications. - Event *string `locationName:"event" type:"string" required:"true" enum:"Event"` - - // The ARN of the assessment template that is used during the event for which - // you want to stop receiving SNS notifications. - ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` - - // The ARN of the SNS topic to which SNS notifications are sent. - TopicArn *string `locationName:"topicArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s UnsubscribeFromEventInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UnsubscribeFromEventInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UnsubscribeFromEventInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UnsubscribeFromEventInput"} - if s.Event == nil { - invalidParams.Add(request.NewErrParamRequired("Event")) - } - 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.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - if s.TopicArn != nil && len(*s.TopicArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TopicArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UnsubscribeFromEventOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UnsubscribeFromEventOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UnsubscribeFromEventOutput) GoString() string { - return s.String() -} - -type UpdateAssessmentTargetInput struct { - _ struct{} `type:"structure"` - - // The ARN of the assessment target that you want to update. - AssessmentTargetArn *string `locationName:"assessmentTargetArn" min:"1" type:"string" required:"true"` - - // The name of the assessment target that you want to update. - AssessmentTargetName *string `locationName:"assessmentTargetName" min:"1" type:"string" required:"true"` - - // The ARN of the resource group that is used to specify the new resource group - // to associate with the assessment target. - ResourceGroupArn *string `locationName:"resourceGroupArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateAssessmentTargetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateAssessmentTargetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAssessmentTargetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAssessmentTargetInput"} - if s.AssessmentTargetArn == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentTargetArn")) - } - if s.AssessmentTargetArn != nil && len(*s.AssessmentTargetArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTargetArn", 1)) - } - if s.AssessmentTargetName == nil { - invalidParams.Add(request.NewErrParamRequired("AssessmentTargetName")) - } - if s.AssessmentTargetName != nil && len(*s.AssessmentTargetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssessmentTargetName", 1)) - } - if s.ResourceGroupArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceGroupArn")) - } - if s.ResourceGroupArn != nil && len(*s.ResourceGroupArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceGroupArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateAssessmentTargetOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UpdateAssessmentTargetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateAssessmentTargetOutput) GoString() string { - return s.String() -} - -const ( - // @enum AccessDeniedErrorCode - AccessDeniedErrorCodeAccessDeniedToAssessmentTarget = "ACCESS_DENIED_TO_ASSESSMENT_TARGET" - // @enum AccessDeniedErrorCode - AccessDeniedErrorCodeAccessDeniedToAssessmentTemplate = "ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE" - // @enum AccessDeniedErrorCode - AccessDeniedErrorCodeAccessDeniedToAssessmentRun = "ACCESS_DENIED_TO_ASSESSMENT_RUN" - // @enum AccessDeniedErrorCode - AccessDeniedErrorCodeAccessDeniedToFinding = "ACCESS_DENIED_TO_FINDING" - // @enum AccessDeniedErrorCode - AccessDeniedErrorCodeAccessDeniedToResourceGroup = "ACCESS_DENIED_TO_RESOURCE_GROUP" - // @enum AccessDeniedErrorCode - AccessDeniedErrorCodeAccessDeniedToRulesPackage = "ACCESS_DENIED_TO_RULES_PACKAGE" - // @enum AccessDeniedErrorCode - AccessDeniedErrorCodeAccessDeniedToSnsTopic = "ACCESS_DENIED_TO_SNS_TOPIC" - // @enum AccessDeniedErrorCode - AccessDeniedErrorCodeAccessDeniedToIamRole = "ACCESS_DENIED_TO_IAM_ROLE" -) - -const ( - // @enum AgentHealth - AgentHealthHealthy = "HEALTHY" - // @enum AgentHealth - AgentHealthUnhealthy = "UNHEALTHY" -) - -const ( - // @enum AgentHealthCode - AgentHealthCodeIdle = "IDLE" - // @enum AgentHealthCode - AgentHealthCodeRunning = "RUNNING" - // @enum AgentHealthCode - AgentHealthCodeShutdown = "SHUTDOWN" - // @enum AgentHealthCode - AgentHealthCodeUnhealthy = "UNHEALTHY" - // @enum AgentHealthCode - AgentHealthCodeThrottled = "THROTTLED" - // @enum AgentHealthCode - AgentHealthCodeUnknown = "UNKNOWN" -) - -const ( - // @enum AssessmentRunNotificationSnsStatusCode - AssessmentRunNotificationSnsStatusCodeSuccess = "SUCCESS" - // @enum AssessmentRunNotificationSnsStatusCode - AssessmentRunNotificationSnsStatusCodeTopicDoesNotExist = "TOPIC_DOES_NOT_EXIST" - // @enum AssessmentRunNotificationSnsStatusCode - AssessmentRunNotificationSnsStatusCodeAccessDenied = "ACCESS_DENIED" - // @enum AssessmentRunNotificationSnsStatusCode - AssessmentRunNotificationSnsStatusCodeInternalError = "INTERNAL_ERROR" -) - -const ( - // @enum AssessmentRunState - AssessmentRunStateCreated = "CREATED" - // @enum AssessmentRunState - AssessmentRunStateStartDataCollectionPending = "START_DATA_COLLECTION_PENDING" - // @enum AssessmentRunState - AssessmentRunStateStartDataCollectionInProgress = "START_DATA_COLLECTION_IN_PROGRESS" - // @enum AssessmentRunState - AssessmentRunStateCollectingData = "COLLECTING_DATA" - // @enum AssessmentRunState - AssessmentRunStateStopDataCollectionPending = "STOP_DATA_COLLECTION_PENDING" - // @enum AssessmentRunState - AssessmentRunStateDataCollected = "DATA_COLLECTED" - // @enum AssessmentRunState - AssessmentRunStateEvaluatingRules = "EVALUATING_RULES" - // @enum AssessmentRunState - AssessmentRunStateFailed = "FAILED" - // @enum AssessmentRunState - AssessmentRunStateCompleted = "COMPLETED" - // @enum AssessmentRunState - AssessmentRunStateCompletedWithErrors = "COMPLETED_WITH_ERRORS" -) - -const ( - // @enum AssetType - AssetTypeEc2Instance = "ec2-instance" -) - -const ( - // @enum Event - EventAssessmentRunStarted = "ASSESSMENT_RUN_STARTED" - // @enum Event - EventAssessmentRunCompleted = "ASSESSMENT_RUN_COMPLETED" - // @enum Event - EventAssessmentRunStateChanged = "ASSESSMENT_RUN_STATE_CHANGED" - // @enum Event - EventFindingReported = "FINDING_REPORTED" - // @enum Event - EventOther = "OTHER" -) - -const ( - // @enum FailedItemErrorCode - FailedItemErrorCodeInvalidArn = "INVALID_ARN" - // @enum FailedItemErrorCode - FailedItemErrorCodeDuplicateArn = "DUPLICATE_ARN" - // @enum FailedItemErrorCode - FailedItemErrorCodeItemDoesNotExist = "ITEM_DOES_NOT_EXIST" - // @enum FailedItemErrorCode - FailedItemErrorCodeAccessDenied = "ACCESS_DENIED" - // @enum FailedItemErrorCode - FailedItemErrorCodeLimitExceeded = "LIMIT_EXCEEDED" - // @enum FailedItemErrorCode - FailedItemErrorCodeInternalError = "INTERNAL_ERROR" -) - -const ( - // @enum InvalidCrossAccountRoleErrorCode - InvalidCrossAccountRoleErrorCodeRoleDoesNotExistOrInvalidTrustRelationship = "ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP" - // @enum InvalidCrossAccountRoleErrorCode - InvalidCrossAccountRoleErrorCodeRoleDoesNotHaveCorrectPolicy = "ROLE_DOES_NOT_HAVE_CORRECT_POLICY" -) - -const ( - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentTargetArn = "INVALID_ASSESSMENT_TARGET_ARN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentTemplateArn = "INVALID_ASSESSMENT_TEMPLATE_ARN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentRunArn = "INVALID_ASSESSMENT_RUN_ARN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidFindingArn = "INVALID_FINDING_ARN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidResourceGroupArn = "INVALID_RESOURCE_GROUP_ARN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidRulesPackageArn = "INVALID_RULES_PACKAGE_ARN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidResourceArn = "INVALID_RESOURCE_ARN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidSnsTopicArn = "INVALID_SNS_TOPIC_ARN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidIamRoleArn = "INVALID_IAM_ROLE_ARN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentTargetName = "INVALID_ASSESSMENT_TARGET_NAME" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentTargetNamePattern = "INVALID_ASSESSMENT_TARGET_NAME_PATTERN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentTemplateName = "INVALID_ASSESSMENT_TEMPLATE_NAME" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentTemplateNamePattern = "INVALID_ASSESSMENT_TEMPLATE_NAME_PATTERN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentTemplateDuration = "INVALID_ASSESSMENT_TEMPLATE_DURATION" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentTemplateDurationRange = "INVALID_ASSESSMENT_TEMPLATE_DURATION_RANGE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentRunDurationRange = "INVALID_ASSESSMENT_RUN_DURATION_RANGE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentRunStartTimeRange = "INVALID_ASSESSMENT_RUN_START_TIME_RANGE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentRunCompletionTimeRange = "INVALID_ASSESSMENT_RUN_COMPLETION_TIME_RANGE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentRunStateChangeTimeRange = "INVALID_ASSESSMENT_RUN_STATE_CHANGE_TIME_RANGE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAssessmentRunState = "INVALID_ASSESSMENT_RUN_STATE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidTag = "INVALID_TAG" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidTagKey = "INVALID_TAG_KEY" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidTagValue = "INVALID_TAG_VALUE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidResourceGroupTagKey = "INVALID_RESOURCE_GROUP_TAG_KEY" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidResourceGroupTagValue = "INVALID_RESOURCE_GROUP_TAG_VALUE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAttribute = "INVALID_ATTRIBUTE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidUserAttribute = "INVALID_USER_ATTRIBUTE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidUserAttributeKey = "INVALID_USER_ATTRIBUTE_KEY" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidUserAttributeValue = "INVALID_USER_ATTRIBUTE_VALUE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidPaginationToken = "INVALID_PAGINATION_TOKEN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidMaxResults = "INVALID_MAX_RESULTS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAgentId = "INVALID_AGENT_ID" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidAutoScalingGroup = "INVALID_AUTO_SCALING_GROUP" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidRuleName = "INVALID_RULE_NAME" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidSeverity = "INVALID_SEVERITY" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidLocale = "INVALID_LOCALE" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidEvent = "INVALID_EVENT" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeAssessmentTargetNameAlreadyTaken = "ASSESSMENT_TARGET_NAME_ALREADY_TAKEN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeAssessmentTemplateNameAlreadyTaken = "ASSESSMENT_TEMPLATE_NAME_ALREADY_TAKEN" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfAssessmentTargetArns = "INVALID_NUMBER_OF_ASSESSMENT_TARGET_ARNS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfAssessmentTemplateArns = "INVALID_NUMBER_OF_ASSESSMENT_TEMPLATE_ARNS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfAssessmentRunArns = "INVALID_NUMBER_OF_ASSESSMENT_RUN_ARNS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfFindingArns = "INVALID_NUMBER_OF_FINDING_ARNS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfResourceGroupArns = "INVALID_NUMBER_OF_RESOURCE_GROUP_ARNS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfRulesPackageArns = "INVALID_NUMBER_OF_RULES_PACKAGE_ARNS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfAssessmentRunStates = "INVALID_NUMBER_OF_ASSESSMENT_RUN_STATES" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfTags = "INVALID_NUMBER_OF_TAGS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfResourceGroupTags = "INVALID_NUMBER_OF_RESOURCE_GROUP_TAGS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfAttributes = "INVALID_NUMBER_OF_ATTRIBUTES" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfUserAttributes = "INVALID_NUMBER_OF_USER_ATTRIBUTES" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfAgentIds = "INVALID_NUMBER_OF_AGENT_IDS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfAutoScalingGroups = "INVALID_NUMBER_OF_AUTO_SCALING_GROUPS" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfRuleNames = "INVALID_NUMBER_OF_RULE_NAMES" - // @enum InvalidInputErrorCode - InvalidInputErrorCodeInvalidNumberOfSeverities = "INVALID_NUMBER_OF_SEVERITIES" -) - -const ( - // @enum LimitExceededErrorCode - LimitExceededErrorCodeAssessmentTargetLimitExceeded = "ASSESSMENT_TARGET_LIMIT_EXCEEDED" - // @enum LimitExceededErrorCode - LimitExceededErrorCodeAssessmentTemplateLimitExceeded = "ASSESSMENT_TEMPLATE_LIMIT_EXCEEDED" - // @enum LimitExceededErrorCode - LimitExceededErrorCodeAssessmentRunLimitExceeded = "ASSESSMENT_RUN_LIMIT_EXCEEDED" - // @enum LimitExceededErrorCode - LimitExceededErrorCodeResourceGroupLimitExceeded = "RESOURCE_GROUP_LIMIT_EXCEEDED" - // @enum LimitExceededErrorCode - LimitExceededErrorCodeEventSubscriptionLimitExceeded = "EVENT_SUBSCRIPTION_LIMIT_EXCEEDED" -) - -const ( - // @enum Locale - LocaleEnUs = "EN_US" -) - -const ( - // @enum NoSuchEntityErrorCode - NoSuchEntityErrorCodeAssessmentTargetDoesNotExist = "ASSESSMENT_TARGET_DOES_NOT_EXIST" - // @enum NoSuchEntityErrorCode - NoSuchEntityErrorCodeAssessmentTemplateDoesNotExist = "ASSESSMENT_TEMPLATE_DOES_NOT_EXIST" - // @enum NoSuchEntityErrorCode - NoSuchEntityErrorCodeAssessmentRunDoesNotExist = "ASSESSMENT_RUN_DOES_NOT_EXIST" - // @enum NoSuchEntityErrorCode - NoSuchEntityErrorCodeFindingDoesNotExist = "FINDING_DOES_NOT_EXIST" - // @enum NoSuchEntityErrorCode - NoSuchEntityErrorCodeResourceGroupDoesNotExist = "RESOURCE_GROUP_DOES_NOT_EXIST" - // @enum NoSuchEntityErrorCode - NoSuchEntityErrorCodeRulesPackageDoesNotExist = "RULES_PACKAGE_DOES_NOT_EXIST" - // @enum NoSuchEntityErrorCode - NoSuchEntityErrorCodeSnsTopicDoesNotExist = "SNS_TOPIC_DOES_NOT_EXIST" - // @enum NoSuchEntityErrorCode - NoSuchEntityErrorCodeIamRoleDoesNotExist = "IAM_ROLE_DOES_NOT_EXIST" -) - -const ( - // @enum Severity - SeverityLow = "Low" - // @enum Severity - SeverityMedium = "Medium" - // @enum Severity - SeverityHigh = "High" - // @enum Severity - SeverityInformational = "Informational" - // @enum Severity - SeverityUndefined = "Undefined" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go deleted file mode 100644 index 10180d4d9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/inspector/examples_test.go +++ /dev/null @@ -1,807 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package inspector_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/inspector" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleInspector_AddAttributesToFindings() { - svc := inspector.New(session.New()) - - params := &inspector.AddAttributesToFindingsInput{ - Attributes: []*inspector.Attribute{ // Required - { // Required - Key: aws.String("AttributeKey"), // Required - Value: aws.String("AttributeValue"), - }, - // More values... - }, - FindingArns: []*string{ // Required - aws.String("Arn"), // Required - // More values... - }, - } - resp, err := svc.AddAttributesToFindings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_CreateAssessmentTarget() { - svc := inspector.New(session.New()) - - params := &inspector.CreateAssessmentTargetInput{ - AssessmentTargetName: aws.String("AssessmentTargetName"), // Required - ResourceGroupArn: aws.String("Arn"), // Required - } - resp, err := svc.CreateAssessmentTarget(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_CreateAssessmentTemplate() { - svc := inspector.New(session.New()) - - params := &inspector.CreateAssessmentTemplateInput{ - AssessmentTargetArn: aws.String("Arn"), // Required - AssessmentTemplateName: aws.String("AssessmentTemplateName"), // Required - DurationInSeconds: aws.Int64(1), // Required - RulesPackageArns: []*string{ // Required - aws.String("Arn"), // Required - // More values... - }, - UserAttributesForFindings: []*inspector.Attribute{ - { // Required - Key: aws.String("AttributeKey"), // Required - Value: aws.String("AttributeValue"), - }, - // More values... - }, - } - resp, err := svc.CreateAssessmentTemplate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_CreateResourceGroup() { - svc := inspector.New(session.New()) - - params := &inspector.CreateResourceGroupInput{ - ResourceGroupTags: []*inspector.ResourceGroupTag{ // Required - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), - }, - // More values... - }, - } - resp, err := svc.CreateResourceGroup(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_DeleteAssessmentRun() { - svc := inspector.New(session.New()) - - params := &inspector.DeleteAssessmentRunInput{ - AssessmentRunArn: aws.String("Arn"), // Required - } - resp, err := svc.DeleteAssessmentRun(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_DeleteAssessmentTarget() { - svc := inspector.New(session.New()) - - params := &inspector.DeleteAssessmentTargetInput{ - AssessmentTargetArn: aws.String("Arn"), // Required - } - resp, err := svc.DeleteAssessmentTarget(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_DeleteAssessmentTemplate() { - svc := inspector.New(session.New()) - - params := &inspector.DeleteAssessmentTemplateInput{ - AssessmentTemplateArn: aws.String("Arn"), // Required - } - resp, err := svc.DeleteAssessmentTemplate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_DescribeAssessmentRuns() { - svc := inspector.New(session.New()) - - params := &inspector.DescribeAssessmentRunsInput{ - AssessmentRunArns: []*string{ // Required - aws.String("Arn"), // Required - // More values... - }, - } - resp, err := svc.DescribeAssessmentRuns(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_DescribeAssessmentTargets() { - svc := inspector.New(session.New()) - - params := &inspector.DescribeAssessmentTargetsInput{ - AssessmentTargetArns: []*string{ // Required - aws.String("Arn"), // Required - // More values... - }, - } - resp, err := svc.DescribeAssessmentTargets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_DescribeAssessmentTemplates() { - svc := inspector.New(session.New()) - - params := &inspector.DescribeAssessmentTemplatesInput{ - AssessmentTemplateArns: []*string{ // Required - aws.String("Arn"), // Required - // More values... - }, - } - resp, err := svc.DescribeAssessmentTemplates(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_DescribeCrossAccountAccessRole() { - svc := inspector.New(session.New()) - - var params *inspector.DescribeCrossAccountAccessRoleInput - resp, err := svc.DescribeCrossAccountAccessRole(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_DescribeFindings() { - svc := inspector.New(session.New()) - - params := &inspector.DescribeFindingsInput{ - FindingArns: []*string{ // Required - aws.String("Arn"), // Required - // More values... - }, - Locale: aws.String("Locale"), - } - resp, err := svc.DescribeFindings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_DescribeResourceGroups() { - svc := inspector.New(session.New()) - - params := &inspector.DescribeResourceGroupsInput{ - ResourceGroupArns: []*string{ // Required - aws.String("Arn"), // Required - // More values... - }, - } - resp, err := svc.DescribeResourceGroups(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_DescribeRulesPackages() { - svc := inspector.New(session.New()) - - params := &inspector.DescribeRulesPackagesInput{ - RulesPackageArns: []*string{ // Required - aws.String("Arn"), // Required - // More values... - }, - Locale: aws.String("Locale"), - } - resp, err := svc.DescribeRulesPackages(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_GetTelemetryMetadata() { - svc := inspector.New(session.New()) - - params := &inspector.GetTelemetryMetadataInput{ - AssessmentRunArn: aws.String("Arn"), // Required - } - resp, err := svc.GetTelemetryMetadata(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_ListAssessmentRunAgents() { - svc := inspector.New(session.New()) - - params := &inspector.ListAssessmentRunAgentsInput{ - AssessmentRunArn: aws.String("Arn"), // Required - Filter: &inspector.AgentFilter{ - AgentHealthCodes: []*string{ // Required - aws.String("AgentHealthCode"), // Required - // More values... - }, - AgentHealths: []*string{ // Required - aws.String("AgentHealth"), // Required - // More values... - }, - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("PaginationToken"), - } - resp, err := svc.ListAssessmentRunAgents(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_ListAssessmentRuns() { - svc := inspector.New(session.New()) - - params := &inspector.ListAssessmentRunsInput{ - AssessmentTemplateArns: []*string{ - aws.String("Arn"), // Required - // More values... - }, - Filter: &inspector.AssessmentRunFilter{ - CompletionTimeRange: &inspector.TimestampRange{ - BeginDate: aws.Time(time.Now()), - EndDate: aws.Time(time.Now()), - }, - DurationRange: &inspector.DurationRange{ - MaxSeconds: aws.Int64(1), - MinSeconds: aws.Int64(1), - }, - NamePattern: aws.String("NamePattern"), - RulesPackageArns: []*string{ - aws.String("Arn"), // Required - // More values... - }, - StartTimeRange: &inspector.TimestampRange{ - BeginDate: aws.Time(time.Now()), - EndDate: aws.Time(time.Now()), - }, - StateChangeTimeRange: &inspector.TimestampRange{ - BeginDate: aws.Time(time.Now()), - EndDate: aws.Time(time.Now()), - }, - States: []*string{ - aws.String("AssessmentRunState"), // Required - // More values... - }, - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("PaginationToken"), - } - resp, err := svc.ListAssessmentRuns(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_ListAssessmentTargets() { - svc := inspector.New(session.New()) - - params := &inspector.ListAssessmentTargetsInput{ - Filter: &inspector.AssessmentTargetFilter{ - AssessmentTargetNamePattern: aws.String("NamePattern"), - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("PaginationToken"), - } - resp, err := svc.ListAssessmentTargets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_ListAssessmentTemplates() { - svc := inspector.New(session.New()) - - params := &inspector.ListAssessmentTemplatesInput{ - AssessmentTargetArns: []*string{ - aws.String("Arn"), // Required - // More values... - }, - Filter: &inspector.AssessmentTemplateFilter{ - DurationRange: &inspector.DurationRange{ - MaxSeconds: aws.Int64(1), - MinSeconds: aws.Int64(1), - }, - NamePattern: aws.String("NamePattern"), - RulesPackageArns: []*string{ - aws.String("Arn"), // Required - // More values... - }, - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("PaginationToken"), - } - resp, err := svc.ListAssessmentTemplates(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_ListEventSubscriptions() { - svc := inspector.New(session.New()) - - params := &inspector.ListEventSubscriptionsInput{ - MaxResults: aws.Int64(1), - NextToken: aws.String("PaginationToken"), - ResourceArn: aws.String("Arn"), - } - resp, err := svc.ListEventSubscriptions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_ListFindings() { - svc := inspector.New(session.New()) - - params := &inspector.ListFindingsInput{ - AssessmentRunArns: []*string{ - aws.String("Arn"), // Required - // More values... - }, - Filter: &inspector.FindingFilter{ - AgentIds: []*string{ - aws.String("AgentId"), // Required - // More values... - }, - Attributes: []*inspector.Attribute{ - { // Required - Key: aws.String("AttributeKey"), // Required - Value: aws.String("AttributeValue"), - }, - // More values... - }, - AutoScalingGroups: []*string{ - aws.String("AutoScalingGroup"), // Required - // More values... - }, - CreationTimeRange: &inspector.TimestampRange{ - BeginDate: aws.Time(time.Now()), - EndDate: aws.Time(time.Now()), - }, - RuleNames: []*string{ - aws.String("RuleName"), // Required - // More values... - }, - RulesPackageArns: []*string{ - aws.String("Arn"), // Required - // More values... - }, - Severities: []*string{ - aws.String("Severity"), // Required - // More values... - }, - UserAttributes: []*inspector.Attribute{ - { // Required - Key: aws.String("AttributeKey"), // Required - Value: aws.String("AttributeValue"), - }, - // More values... - }, - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("PaginationToken"), - } - resp, err := svc.ListFindings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_ListRulesPackages() { - svc := inspector.New(session.New()) - - params := &inspector.ListRulesPackagesInput{ - MaxResults: aws.Int64(1), - NextToken: aws.String("PaginationToken"), - } - resp, err := svc.ListRulesPackages(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_ListTagsForResource() { - svc := inspector.New(session.New()) - - params := &inspector.ListTagsForResourceInput{ - ResourceArn: aws.String("Arn"), // Required - } - resp, err := svc.ListTagsForResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_PreviewAgents() { - svc := inspector.New(session.New()) - - params := &inspector.PreviewAgentsInput{ - PreviewAgentsArn: aws.String("Arn"), // Required - MaxResults: aws.Int64(1), - NextToken: aws.String("PaginationToken"), - } - resp, err := svc.PreviewAgents(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_RegisterCrossAccountAccessRole() { - svc := inspector.New(session.New()) - - params := &inspector.RegisterCrossAccountAccessRoleInput{ - RoleArn: aws.String("Arn"), // Required - } - resp, err := svc.RegisterCrossAccountAccessRole(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_RemoveAttributesFromFindings() { - svc := inspector.New(session.New()) - - params := &inspector.RemoveAttributesFromFindingsInput{ - AttributeKeys: []*string{ // Required - aws.String("AttributeKey"), // Required - // More values... - }, - FindingArns: []*string{ // Required - aws.String("Arn"), // Required - // More values... - }, - } - resp, err := svc.RemoveAttributesFromFindings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_SetTagsForResource() { - svc := inspector.New(session.New()) - - params := &inspector.SetTagsForResourceInput{ - ResourceArn: aws.String("Arn"), // Required - Tags: []*inspector.Tag{ - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), - }, - // More values... - }, - } - resp, err := svc.SetTagsForResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_StartAssessmentRun() { - svc := inspector.New(session.New()) - - params := &inspector.StartAssessmentRunInput{ - AssessmentTemplateArn: aws.String("Arn"), // Required - AssessmentRunName: aws.String("AssessmentRunName"), - } - resp, err := svc.StartAssessmentRun(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_StopAssessmentRun() { - svc := inspector.New(session.New()) - - params := &inspector.StopAssessmentRunInput{ - AssessmentRunArn: aws.String("Arn"), // Required - } - resp, err := svc.StopAssessmentRun(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_SubscribeToEvent() { - svc := inspector.New(session.New()) - - params := &inspector.SubscribeToEventInput{ - Event: aws.String("Event"), // Required - ResourceArn: aws.String("Arn"), // Required - TopicArn: aws.String("Arn"), // Required - } - resp, err := svc.SubscribeToEvent(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_UnsubscribeFromEvent() { - svc := inspector.New(session.New()) - - params := &inspector.UnsubscribeFromEventInput{ - Event: aws.String("Event"), // Required - ResourceArn: aws.String("Arn"), // Required - TopicArn: aws.String("Arn"), // Required - } - resp, err := svc.UnsubscribeFromEvent(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleInspector_UpdateAssessmentTarget() { - svc := inspector.New(session.New()) - - params := &inspector.UpdateAssessmentTargetInput{ - AssessmentTargetArn: aws.String("Arn"), // Required - AssessmentTargetName: aws.String("AssessmentTargetName"), // Required - ResourceGroupArn: aws.String("Arn"), // Required - } - resp, err := svc.UpdateAssessmentTarget(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go deleted file mode 100644 index 276e6e69c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface.go +++ /dev/null @@ -1,142 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package inspectoriface provides an interface for the Amazon Inspector. -package inspectoriface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/inspector" -) - -// InspectorAPI is the interface type for inspector.Inspector. -type InspectorAPI interface { - AddAttributesToFindingsRequest(*inspector.AddAttributesToFindingsInput) (*request.Request, *inspector.AddAttributesToFindingsOutput) - - AddAttributesToFindings(*inspector.AddAttributesToFindingsInput) (*inspector.AddAttributesToFindingsOutput, error) - - CreateAssessmentTargetRequest(*inspector.CreateAssessmentTargetInput) (*request.Request, *inspector.CreateAssessmentTargetOutput) - - CreateAssessmentTarget(*inspector.CreateAssessmentTargetInput) (*inspector.CreateAssessmentTargetOutput, error) - - CreateAssessmentTemplateRequest(*inspector.CreateAssessmentTemplateInput) (*request.Request, *inspector.CreateAssessmentTemplateOutput) - - CreateAssessmentTemplate(*inspector.CreateAssessmentTemplateInput) (*inspector.CreateAssessmentTemplateOutput, error) - - CreateResourceGroupRequest(*inspector.CreateResourceGroupInput) (*request.Request, *inspector.CreateResourceGroupOutput) - - CreateResourceGroup(*inspector.CreateResourceGroupInput) (*inspector.CreateResourceGroupOutput, error) - - DeleteAssessmentRunRequest(*inspector.DeleteAssessmentRunInput) (*request.Request, *inspector.DeleteAssessmentRunOutput) - - DeleteAssessmentRun(*inspector.DeleteAssessmentRunInput) (*inspector.DeleteAssessmentRunOutput, error) - - DeleteAssessmentTargetRequest(*inspector.DeleteAssessmentTargetInput) (*request.Request, *inspector.DeleteAssessmentTargetOutput) - - DeleteAssessmentTarget(*inspector.DeleteAssessmentTargetInput) (*inspector.DeleteAssessmentTargetOutput, error) - - DeleteAssessmentTemplateRequest(*inspector.DeleteAssessmentTemplateInput) (*request.Request, *inspector.DeleteAssessmentTemplateOutput) - - DeleteAssessmentTemplate(*inspector.DeleteAssessmentTemplateInput) (*inspector.DeleteAssessmentTemplateOutput, error) - - DescribeAssessmentRunsRequest(*inspector.DescribeAssessmentRunsInput) (*request.Request, *inspector.DescribeAssessmentRunsOutput) - - DescribeAssessmentRuns(*inspector.DescribeAssessmentRunsInput) (*inspector.DescribeAssessmentRunsOutput, error) - - DescribeAssessmentTargetsRequest(*inspector.DescribeAssessmentTargetsInput) (*request.Request, *inspector.DescribeAssessmentTargetsOutput) - - DescribeAssessmentTargets(*inspector.DescribeAssessmentTargetsInput) (*inspector.DescribeAssessmentTargetsOutput, error) - - DescribeAssessmentTemplatesRequest(*inspector.DescribeAssessmentTemplatesInput) (*request.Request, *inspector.DescribeAssessmentTemplatesOutput) - - DescribeAssessmentTemplates(*inspector.DescribeAssessmentTemplatesInput) (*inspector.DescribeAssessmentTemplatesOutput, error) - - DescribeCrossAccountAccessRoleRequest(*inspector.DescribeCrossAccountAccessRoleInput) (*request.Request, *inspector.DescribeCrossAccountAccessRoleOutput) - - DescribeCrossAccountAccessRole(*inspector.DescribeCrossAccountAccessRoleInput) (*inspector.DescribeCrossAccountAccessRoleOutput, error) - - DescribeFindingsRequest(*inspector.DescribeFindingsInput) (*request.Request, *inspector.DescribeFindingsOutput) - - DescribeFindings(*inspector.DescribeFindingsInput) (*inspector.DescribeFindingsOutput, error) - - DescribeResourceGroupsRequest(*inspector.DescribeResourceGroupsInput) (*request.Request, *inspector.DescribeResourceGroupsOutput) - - DescribeResourceGroups(*inspector.DescribeResourceGroupsInput) (*inspector.DescribeResourceGroupsOutput, error) - - DescribeRulesPackagesRequest(*inspector.DescribeRulesPackagesInput) (*request.Request, *inspector.DescribeRulesPackagesOutput) - - DescribeRulesPackages(*inspector.DescribeRulesPackagesInput) (*inspector.DescribeRulesPackagesOutput, error) - - GetTelemetryMetadataRequest(*inspector.GetTelemetryMetadataInput) (*request.Request, *inspector.GetTelemetryMetadataOutput) - - GetTelemetryMetadata(*inspector.GetTelemetryMetadataInput) (*inspector.GetTelemetryMetadataOutput, error) - - ListAssessmentRunAgentsRequest(*inspector.ListAssessmentRunAgentsInput) (*request.Request, *inspector.ListAssessmentRunAgentsOutput) - - ListAssessmentRunAgents(*inspector.ListAssessmentRunAgentsInput) (*inspector.ListAssessmentRunAgentsOutput, error) - - ListAssessmentRunsRequest(*inspector.ListAssessmentRunsInput) (*request.Request, *inspector.ListAssessmentRunsOutput) - - ListAssessmentRuns(*inspector.ListAssessmentRunsInput) (*inspector.ListAssessmentRunsOutput, error) - - ListAssessmentTargetsRequest(*inspector.ListAssessmentTargetsInput) (*request.Request, *inspector.ListAssessmentTargetsOutput) - - ListAssessmentTargets(*inspector.ListAssessmentTargetsInput) (*inspector.ListAssessmentTargetsOutput, error) - - ListAssessmentTemplatesRequest(*inspector.ListAssessmentTemplatesInput) (*request.Request, *inspector.ListAssessmentTemplatesOutput) - - ListAssessmentTemplates(*inspector.ListAssessmentTemplatesInput) (*inspector.ListAssessmentTemplatesOutput, error) - - ListEventSubscriptionsRequest(*inspector.ListEventSubscriptionsInput) (*request.Request, *inspector.ListEventSubscriptionsOutput) - - ListEventSubscriptions(*inspector.ListEventSubscriptionsInput) (*inspector.ListEventSubscriptionsOutput, error) - - ListFindingsRequest(*inspector.ListFindingsInput) (*request.Request, *inspector.ListFindingsOutput) - - ListFindings(*inspector.ListFindingsInput) (*inspector.ListFindingsOutput, error) - - ListRulesPackagesRequest(*inspector.ListRulesPackagesInput) (*request.Request, *inspector.ListRulesPackagesOutput) - - ListRulesPackages(*inspector.ListRulesPackagesInput) (*inspector.ListRulesPackagesOutput, error) - - ListTagsForResourceRequest(*inspector.ListTagsForResourceInput) (*request.Request, *inspector.ListTagsForResourceOutput) - - ListTagsForResource(*inspector.ListTagsForResourceInput) (*inspector.ListTagsForResourceOutput, error) - - PreviewAgentsRequest(*inspector.PreviewAgentsInput) (*request.Request, *inspector.PreviewAgentsOutput) - - PreviewAgents(*inspector.PreviewAgentsInput) (*inspector.PreviewAgentsOutput, error) - - RegisterCrossAccountAccessRoleRequest(*inspector.RegisterCrossAccountAccessRoleInput) (*request.Request, *inspector.RegisterCrossAccountAccessRoleOutput) - - RegisterCrossAccountAccessRole(*inspector.RegisterCrossAccountAccessRoleInput) (*inspector.RegisterCrossAccountAccessRoleOutput, error) - - RemoveAttributesFromFindingsRequest(*inspector.RemoveAttributesFromFindingsInput) (*request.Request, *inspector.RemoveAttributesFromFindingsOutput) - - RemoveAttributesFromFindings(*inspector.RemoveAttributesFromFindingsInput) (*inspector.RemoveAttributesFromFindingsOutput, error) - - SetTagsForResourceRequest(*inspector.SetTagsForResourceInput) (*request.Request, *inspector.SetTagsForResourceOutput) - - SetTagsForResource(*inspector.SetTagsForResourceInput) (*inspector.SetTagsForResourceOutput, error) - - StartAssessmentRunRequest(*inspector.StartAssessmentRunInput) (*request.Request, *inspector.StartAssessmentRunOutput) - - StartAssessmentRun(*inspector.StartAssessmentRunInput) (*inspector.StartAssessmentRunOutput, error) - - StopAssessmentRunRequest(*inspector.StopAssessmentRunInput) (*request.Request, *inspector.StopAssessmentRunOutput) - - StopAssessmentRun(*inspector.StopAssessmentRunInput) (*inspector.StopAssessmentRunOutput, error) - - SubscribeToEventRequest(*inspector.SubscribeToEventInput) (*request.Request, *inspector.SubscribeToEventOutput) - - SubscribeToEvent(*inspector.SubscribeToEventInput) (*inspector.SubscribeToEventOutput, error) - - UnsubscribeFromEventRequest(*inspector.UnsubscribeFromEventInput) (*request.Request, *inspector.UnsubscribeFromEventOutput) - - UnsubscribeFromEvent(*inspector.UnsubscribeFromEventInput) (*inspector.UnsubscribeFromEventOutput, error) - - UpdateAssessmentTargetRequest(*inspector.UpdateAssessmentTargetInput) (*request.Request, *inspector.UpdateAssessmentTargetOutput) - - UpdateAssessmentTarget(*inspector.UpdateAssessmentTargetInput) (*inspector.UpdateAssessmentTargetOutput, error) -} - -var _ InspectorAPI = (*inspector.Inspector)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/service.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/service.go deleted file mode 100644 index 243f52b03..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/inspector/service.go +++ /dev/null @@ -1,90 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package inspector - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// Amazon Inspector enables you to analyze the behavior of your AWS resources -// and to identify potential security issues. For more information, see Amazon -// Inspector User Guide (http://docs.aws.amazon.com/inspector/latest/userguide/inspector_introduction.html). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type Inspector struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "inspector" - -// New creates a new instance of the Inspector client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a Inspector client from just a session. -// svc := inspector.New(mySession) -// -// // Create a Inspector client with additional configuration -// svc := inspector.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *Inspector { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Inspector { - svc := &Inspector{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2016-02-16", - JSONVersion: "1.1", - TargetPrefix: "InspectorService", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a Inspector operation and runs any -// custom request initialization. -func (c *Inspector) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/api.go b/vendor/github.com/aws/aws-sdk-go/service/iot/api.go deleted file mode 100644 index 3054a094b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/iot/api.go +++ /dev/null @@ -1,5368 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package iot provides a client for AWS IoT. -package iot - -import ( - "fmt" - "time" - - "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/private/protocol/restjson" -) - -const opAcceptCertificateTransfer = "AcceptCertificateTransfer" - -// AcceptCertificateTransferRequest generates a request for the AcceptCertificateTransfer operation. -func (c *IoT) AcceptCertificateTransferRequest(input *AcceptCertificateTransferInput) (req *request.Request, output *AcceptCertificateTransferOutput) { - op := &request.Operation{ - Name: opAcceptCertificateTransfer, - HTTPMethod: "PATCH", - HTTPPath: "/accept-certificate-transfer/{certificateId}", - } - - if input == nil { - input = &AcceptCertificateTransferInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AcceptCertificateTransferOutput{} - req.Data = output - return -} - -// Accepts a pending certificate transfer. The default state of the certificate -// is INACTIVE. -// -// To check for pending certificate transfers, call ListCertificates to enumerate -// your certificates. -func (c *IoT) AcceptCertificateTransfer(input *AcceptCertificateTransferInput) (*AcceptCertificateTransferOutput, error) { - req, out := c.AcceptCertificateTransferRequest(input) - err := req.Send() - return out, err -} - -const opAttachPrincipalPolicy = "AttachPrincipalPolicy" - -// AttachPrincipalPolicyRequest generates a request for the AttachPrincipalPolicy operation. -func (c *IoT) AttachPrincipalPolicyRequest(input *AttachPrincipalPolicyInput) (req *request.Request, output *AttachPrincipalPolicyOutput) { - op := &request.Operation{ - Name: opAttachPrincipalPolicy, - HTTPMethod: "PUT", - HTTPPath: "/principal-policies/{policyName}", - } - - if input == nil { - input = &AttachPrincipalPolicyInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &AttachPrincipalPolicyOutput{} - req.Data = output - return -} - -// Attaches the specified policy to the specified principal (certificate or -// other credential). -func (c *IoT) AttachPrincipalPolicy(input *AttachPrincipalPolicyInput) (*AttachPrincipalPolicyOutput, error) { - req, out := c.AttachPrincipalPolicyRequest(input) - err := req.Send() - return out, err -} - -const opAttachThingPrincipal = "AttachThingPrincipal" - -// AttachThingPrincipalRequest generates a request for the AttachThingPrincipal operation. -func (c *IoT) AttachThingPrincipalRequest(input *AttachThingPrincipalInput) (req *request.Request, output *AttachThingPrincipalOutput) { - op := &request.Operation{ - Name: opAttachThingPrincipal, - HTTPMethod: "PUT", - HTTPPath: "/things/{thingName}/principals", - } - - if input == nil { - input = &AttachThingPrincipalInput{} - } - - req = c.newRequest(op, input, output) - output = &AttachThingPrincipalOutput{} - req.Data = output - return -} - -// Attaches the specified principal to the specified thing. -func (c *IoT) AttachThingPrincipal(input *AttachThingPrincipalInput) (*AttachThingPrincipalOutput, error) { - req, out := c.AttachThingPrincipalRequest(input) - err := req.Send() - return out, err -} - -const opCancelCertificateTransfer = "CancelCertificateTransfer" - -// CancelCertificateTransferRequest generates a request for the CancelCertificateTransfer operation. -func (c *IoT) CancelCertificateTransferRequest(input *CancelCertificateTransferInput) (req *request.Request, output *CancelCertificateTransferOutput) { - op := &request.Operation{ - Name: opCancelCertificateTransfer, - HTTPMethod: "PATCH", - HTTPPath: "/cancel-certificate-transfer/{certificateId}", - } - - if input == nil { - input = &CancelCertificateTransferInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CancelCertificateTransferOutput{} - req.Data = output - return -} - -// Cancels a pending transfer for the specified certificate. -// -// Note Only the transfer source account can use this operation to cancel a -// transfer. (Transfer destinations can use RejectCertificateTransfer instead.) -// After transfer, AWS IoT returns the certificate to the source account in -// the INACTIVE state. After the destination account has accepted the transfer, -// the transfer cannot be cancelled. -// -// After a certificate transfer is cancelled, the status of the certificate -// changes from PENDING_TRANSFER to INACTIVE. -func (c *IoT) CancelCertificateTransfer(input *CancelCertificateTransferInput) (*CancelCertificateTransferOutput, error) { - req, out := c.CancelCertificateTransferRequest(input) - err := req.Send() - return out, err -} - -const opCreateCertificateFromCsr = "CreateCertificateFromCsr" - -// CreateCertificateFromCsrRequest generates a request for the CreateCertificateFromCsr operation. -func (c *IoT) CreateCertificateFromCsrRequest(input *CreateCertificateFromCsrInput) (req *request.Request, output *CreateCertificateFromCsrOutput) { - op := &request.Operation{ - Name: opCreateCertificateFromCsr, - HTTPMethod: "POST", - HTTPPath: "/certificates", - } - - if input == nil { - input = &CreateCertificateFromCsrInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateCertificateFromCsrOutput{} - req.Data = output - return -} - -// Creates an X.509 certificate using the specified certificate signing request. -// -// Note Reusing the same certificate signing request (CSR) results in a distinct -// certificate. -// -// You can create multiple certificates in a batch by creating a directory, -// copying multiple .csr files into that directory, and then specifying that -// directory on the command line. The following commands show how to create -// a batch of certificates given a batch of CSRs. -// -// Assuming a set of CSRs are located inside of the directory my-csr-directory: -// -// > On Linux and OS X, the command is: -// -// $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr -// --certificate-signing-request file://my-csr-directory/{} -// -// This command lists all of the CSRs in my-csr-directory and pipes each CSR -// file name to the aws iot create-certificate-from-csr AWS CLI command to create -// a certificate for the corresponding CSR. -// -// The aws iot create-certificate-from-csr part of the command can also be -// run in parallel to speed up the certificate creation process: -// -// $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr -// --certificate-signing-request file://my-csr-directory/{} -// -// On Windows PowerShell, the command to create certificates for all CSRs -// in my-csr-directory is: -// -// > ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request -// file://my-csr-directory/$_} -// -// On a Windows command prompt, the command to create certificates for all -// CSRs in my-csr-directory is: -// -// > forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr -// --certificate-signing-request file://@path" -func (c *IoT) CreateCertificateFromCsr(input *CreateCertificateFromCsrInput) (*CreateCertificateFromCsrOutput, error) { - req, out := c.CreateCertificateFromCsrRequest(input) - err := req.Send() - return out, err -} - -const opCreateKeysAndCertificate = "CreateKeysAndCertificate" - -// CreateKeysAndCertificateRequest generates a request for the CreateKeysAndCertificate operation. -func (c *IoT) CreateKeysAndCertificateRequest(input *CreateKeysAndCertificateInput) (req *request.Request, output *CreateKeysAndCertificateOutput) { - op := &request.Operation{ - Name: opCreateKeysAndCertificate, - HTTPMethod: "POST", - HTTPPath: "/keys-and-certificate", - } - - if input == nil { - input = &CreateKeysAndCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateKeysAndCertificateOutput{} - req.Data = output - return -} - -// Creates a 2048-bit RSA key pair and issues an X.509 certificate using the -// issued public key. -// -// Note This is the only time AWS IoT issues the private key for this certificate, -// so it is important to keep it in a secure location. -func (c *IoT) CreateKeysAndCertificate(input *CreateKeysAndCertificateInput) (*CreateKeysAndCertificateOutput, error) { - req, out := c.CreateKeysAndCertificateRequest(input) - err := req.Send() - return out, err -} - -const opCreatePolicy = "CreatePolicy" - -// CreatePolicyRequest generates a request for the CreatePolicy operation. -func (c *IoT) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Request, output *CreatePolicyOutput) { - op := &request.Operation{ - Name: opCreatePolicy, - HTTPMethod: "POST", - HTTPPath: "/policies/{policyName}", - } - - if input == nil { - input = &CreatePolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &CreatePolicyOutput{} - req.Data = output - return -} - -// Creates an AWS IoT policy. -// -// The created policy is the default version for the policy. This operation -// creates a policy version with a version identifier of 1 and sets 1 as the -// policy's default version. -func (c *IoT) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) { - req, out := c.CreatePolicyRequest(input) - err := req.Send() - return out, err -} - -const opCreatePolicyVersion = "CreatePolicyVersion" - -// CreatePolicyVersionRequest generates a request for the CreatePolicyVersion operation. -func (c *IoT) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req *request.Request, output *CreatePolicyVersionOutput) { - op := &request.Operation{ - Name: opCreatePolicyVersion, - HTTPMethod: "POST", - HTTPPath: "/policies/{policyName}/version", - } - - if input == nil { - input = &CreatePolicyVersionInput{} - } - - req = c.newRequest(op, input, output) - output = &CreatePolicyVersionOutput{} - req.Data = output - return -} - -// Creates a new version of the specified AWS IoT policy. To update a policy, -// create a new policy version. A managed policy can have up to five versions. -// If the policy has five versions, you must use DeletePolicyVersion to delete -// an existing version before you create a new one. -// -// Optionally, you can set the new version as the policy's default version. -// The default version is the operative version (that is, the version that is -// in effect for the certificates to which the policy is attached). -func (c *IoT) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) { - req, out := c.CreatePolicyVersionRequest(input) - err := req.Send() - return out, err -} - -const opCreateThing = "CreateThing" - -// CreateThingRequest generates a request for the CreateThing operation. -func (c *IoT) CreateThingRequest(input *CreateThingInput) (req *request.Request, output *CreateThingOutput) { - op := &request.Operation{ - Name: opCreateThing, - HTTPMethod: "POST", - HTTPPath: "/things/{thingName}", - } - - if input == nil { - input = &CreateThingInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateThingOutput{} - req.Data = output - return -} - -// Creates a thing in the Thing Registry. -func (c *IoT) CreateThing(input *CreateThingInput) (*CreateThingOutput, error) { - req, out := c.CreateThingRequest(input) - err := req.Send() - return out, err -} - -const opCreateTopicRule = "CreateTopicRule" - -// CreateTopicRuleRequest generates a request for the CreateTopicRule operation. -func (c *IoT) CreateTopicRuleRequest(input *CreateTopicRuleInput) (req *request.Request, output *CreateTopicRuleOutput) { - op := &request.Operation{ - Name: opCreateTopicRule, - HTTPMethod: "POST", - HTTPPath: "/rules/{ruleName}", - } - - if input == nil { - input = &CreateTopicRuleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateTopicRuleOutput{} - req.Data = output - return -} - -// Creates a rule. Creating rules is an administrator-level action. Any user -// who has permission to create rules will be able to access data processed -// by the rule. -func (c *IoT) CreateTopicRule(input *CreateTopicRuleInput) (*CreateTopicRuleOutput, error) { - req, out := c.CreateTopicRuleRequest(input) - err := req.Send() - return out, err -} - -const opDeleteCACertificate = "DeleteCACertificate" - -// DeleteCACertificateRequest generates a request for the DeleteCACertificate operation. -func (c *IoT) DeleteCACertificateRequest(input *DeleteCACertificateInput) (req *request.Request, output *DeleteCACertificateOutput) { - op := &request.Operation{ - Name: opDeleteCACertificate, - HTTPMethod: "DELETE", - HTTPPath: "/cacertificate/{certificateId}", - } - - if input == nil { - input = &DeleteCACertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteCACertificateOutput{} - req.Data = output - return -} - -// Deletes a registered CA certificate. -func (c *IoT) DeleteCACertificate(input *DeleteCACertificateInput) (*DeleteCACertificateOutput, error) { - req, out := c.DeleteCACertificateRequest(input) - err := req.Send() - return out, err -} - -const opDeleteCertificate = "DeleteCertificate" - -// DeleteCertificateRequest generates a request for the DeleteCertificate operation. -func (c *IoT) DeleteCertificateRequest(input *DeleteCertificateInput) (req *request.Request, output *DeleteCertificateOutput) { - op := &request.Operation{ - Name: opDeleteCertificate, - HTTPMethod: "DELETE", - HTTPPath: "/certificates/{certificateId}", - } - - if input == nil { - input = &DeleteCertificateInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteCertificateOutput{} - req.Data = output - return -} - -// Deletes the specified certificate. -// -// A certificate cannot be deleted if it has a policy attached to it or if -// its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy -// API to detach all policies. Next, use the UpdateCertificate API to set the -// certificate to the INACTIVE status. -func (c *IoT) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { - req, out := c.DeleteCertificateRequest(input) - err := req.Send() - return out, err -} - -const opDeletePolicy = "DeletePolicy" - -// DeletePolicyRequest generates a request for the DeletePolicy operation. -func (c *IoT) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Request, output *DeletePolicyOutput) { - op := &request.Operation{ - Name: opDeletePolicy, - HTTPMethod: "DELETE", - HTTPPath: "/policies/{policyName}", - } - - if input == nil { - input = &DeletePolicyInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePolicyOutput{} - req.Data = output - return -} - -// Deletes the specified policy. -// -// A policy cannot be deleted if it has non-default versions or it is attached -// to any certificate. -// -// To delete a policy, use the DeletePolicyVersion API to delete all non-default -// versions of the policy; use the DetachPrincipalPolicy API to detach the policy -// from any certificate; and then use the DeletePolicy API to delete the policy. -// -// When a policy is deleted using DeletePolicy, its default version is deleted -// with it. -func (c *IoT) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { - req, out := c.DeletePolicyRequest(input) - err := req.Send() - return out, err -} - -const opDeletePolicyVersion = "DeletePolicyVersion" - -// DeletePolicyVersionRequest generates a request for the DeletePolicyVersion operation. -func (c *IoT) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req *request.Request, output *DeletePolicyVersionOutput) { - op := &request.Operation{ - Name: opDeletePolicyVersion, - HTTPMethod: "DELETE", - HTTPPath: "/policies/{policyName}/version/{policyVersionId}", - } - - if input == nil { - input = &DeletePolicyVersionInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeletePolicyVersionOutput{} - req.Data = output - return -} - -// Deletes the specified version of the specified policy. You cannot delete -// the default version of a policy using this API. To delete the default version -// of a policy, use DeletePolicy. To find out which version of a policy is marked -// as the default version, use ListPolicyVersions. -func (c *IoT) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) { - req, out := c.DeletePolicyVersionRequest(input) - err := req.Send() - return out, err -} - -const opDeleteRegistrationCode = "DeleteRegistrationCode" - -// DeleteRegistrationCodeRequest generates a request for the DeleteRegistrationCode operation. -func (c *IoT) DeleteRegistrationCodeRequest(input *DeleteRegistrationCodeInput) (req *request.Request, output *DeleteRegistrationCodeOutput) { - op := &request.Operation{ - Name: opDeleteRegistrationCode, - HTTPMethod: "DELETE", - HTTPPath: "/registrationcode", - } - - if input == nil { - input = &DeleteRegistrationCodeInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteRegistrationCodeOutput{} - req.Data = output - return -} - -// Deletes a CA certificate registration code. -func (c *IoT) DeleteRegistrationCode(input *DeleteRegistrationCodeInput) (*DeleteRegistrationCodeOutput, error) { - req, out := c.DeleteRegistrationCodeRequest(input) - err := req.Send() - return out, err -} - -const opDeleteThing = "DeleteThing" - -// DeleteThingRequest generates a request for the DeleteThing operation. -func (c *IoT) DeleteThingRequest(input *DeleteThingInput) (req *request.Request, output *DeleteThingOutput) { - op := &request.Operation{ - Name: opDeleteThing, - HTTPMethod: "DELETE", - HTTPPath: "/things/{thingName}", - } - - if input == nil { - input = &DeleteThingInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteThingOutput{} - req.Data = output - return -} - -// Deletes the specified thing from the Thing Registry. -func (c *IoT) DeleteThing(input *DeleteThingInput) (*DeleteThingOutput, error) { - req, out := c.DeleteThingRequest(input) - err := req.Send() - return out, err -} - -const opDeleteTopicRule = "DeleteTopicRule" - -// DeleteTopicRuleRequest generates a request for the DeleteTopicRule operation. -func (c *IoT) DeleteTopicRuleRequest(input *DeleteTopicRuleInput) (req *request.Request, output *DeleteTopicRuleOutput) { - op := &request.Operation{ - Name: opDeleteTopicRule, - HTTPMethod: "DELETE", - HTTPPath: "/rules/{ruleName}", - } - - if input == nil { - input = &DeleteTopicRuleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteTopicRuleOutput{} - req.Data = output - return -} - -// Deletes the specified rule. -func (c *IoT) DeleteTopicRule(input *DeleteTopicRuleInput) (*DeleteTopicRuleOutput, error) { - req, out := c.DeleteTopicRuleRequest(input) - err := req.Send() - return out, err -} - -const opDescribeCACertificate = "DescribeCACertificate" - -// DescribeCACertificateRequest generates a request for the DescribeCACertificate operation. -func (c *IoT) DescribeCACertificateRequest(input *DescribeCACertificateInput) (req *request.Request, output *DescribeCACertificateOutput) { - op := &request.Operation{ - Name: opDescribeCACertificate, - HTTPMethod: "GET", - HTTPPath: "/cacertificate/{certificateId}", - } - - if input == nil { - input = &DescribeCACertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeCACertificateOutput{} - req.Data = output - return -} - -// Describes a registered CA certificate. -func (c *IoT) DescribeCACertificate(input *DescribeCACertificateInput) (*DescribeCACertificateOutput, error) { - req, out := c.DescribeCACertificateRequest(input) - err := req.Send() - return out, err -} - -const opDescribeCertificate = "DescribeCertificate" - -// DescribeCertificateRequest generates a request for the DescribeCertificate operation. -func (c *IoT) DescribeCertificateRequest(input *DescribeCertificateInput) (req *request.Request, output *DescribeCertificateOutput) { - op := &request.Operation{ - Name: opDescribeCertificate, - HTTPMethod: "GET", - HTTPPath: "/certificates/{certificateId}", - } - - if input == nil { - input = &DescribeCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeCertificateOutput{} - req.Data = output - return -} - -// Gets information about the specified certificate. -func (c *IoT) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) { - req, out := c.DescribeCertificateRequest(input) - err := req.Send() - return out, err -} - -const opDescribeEndpoint = "DescribeEndpoint" - -// DescribeEndpointRequest generates a request for the DescribeEndpoint operation. -func (c *IoT) DescribeEndpointRequest(input *DescribeEndpointInput) (req *request.Request, output *DescribeEndpointOutput) { - op := &request.Operation{ - Name: opDescribeEndpoint, - HTTPMethod: "GET", - HTTPPath: "/endpoint", - } - - if input == nil { - input = &DescribeEndpointInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeEndpointOutput{} - req.Data = output - return -} - -// Returns a unique endpoint specific to the AWS account making the call. You -// specify the following URI when updating state information for your thing: -// https://endpoint/things/thingName/shadow. -func (c *IoT) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { - req, out := c.DescribeEndpointRequest(input) - err := req.Send() - return out, err -} - -const opDescribeThing = "DescribeThing" - -// DescribeThingRequest generates a request for the DescribeThing operation. -func (c *IoT) DescribeThingRequest(input *DescribeThingInput) (req *request.Request, output *DescribeThingOutput) { - op := &request.Operation{ - Name: opDescribeThing, - HTTPMethod: "GET", - HTTPPath: "/things/{thingName}", - } - - if input == nil { - input = &DescribeThingInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeThingOutput{} - req.Data = output - return -} - -// Gets information about the specified thing. -func (c *IoT) DescribeThing(input *DescribeThingInput) (*DescribeThingOutput, error) { - req, out := c.DescribeThingRequest(input) - err := req.Send() - return out, err -} - -const opDetachPrincipalPolicy = "DetachPrincipalPolicy" - -// DetachPrincipalPolicyRequest generates a request for the DetachPrincipalPolicy operation. -func (c *IoT) DetachPrincipalPolicyRequest(input *DetachPrincipalPolicyInput) (req *request.Request, output *DetachPrincipalPolicyOutput) { - op := &request.Operation{ - Name: opDetachPrincipalPolicy, - HTTPMethod: "DELETE", - HTTPPath: "/principal-policies/{policyName}", - } - - if input == nil { - input = &DetachPrincipalPolicyInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DetachPrincipalPolicyOutput{} - req.Data = output - return -} - -// Removes the specified policy from the specified certificate. -func (c *IoT) DetachPrincipalPolicy(input *DetachPrincipalPolicyInput) (*DetachPrincipalPolicyOutput, error) { - req, out := c.DetachPrincipalPolicyRequest(input) - err := req.Send() - return out, err -} - -const opDetachThingPrincipal = "DetachThingPrincipal" - -// DetachThingPrincipalRequest generates a request for the DetachThingPrincipal operation. -func (c *IoT) DetachThingPrincipalRequest(input *DetachThingPrincipalInput) (req *request.Request, output *DetachThingPrincipalOutput) { - op := &request.Operation{ - Name: opDetachThingPrincipal, - HTTPMethod: "DELETE", - HTTPPath: "/things/{thingName}/principals", - } - - if input == nil { - input = &DetachThingPrincipalInput{} - } - - req = c.newRequest(op, input, output) - output = &DetachThingPrincipalOutput{} - req.Data = output - return -} - -// Detaches the specified principal from the specified thing. -func (c *IoT) DetachThingPrincipal(input *DetachThingPrincipalInput) (*DetachThingPrincipalOutput, error) { - req, out := c.DetachThingPrincipalRequest(input) - err := req.Send() - return out, err -} - -const opDisableTopicRule = "DisableTopicRule" - -// DisableTopicRuleRequest generates a request for the DisableTopicRule operation. -func (c *IoT) DisableTopicRuleRequest(input *DisableTopicRuleInput) (req *request.Request, output *DisableTopicRuleOutput) { - op := &request.Operation{ - Name: opDisableTopicRule, - HTTPMethod: "POST", - HTTPPath: "/rules/{ruleName}/disable", - } - - if input == nil { - input = &DisableTopicRuleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DisableTopicRuleOutput{} - req.Data = output - return -} - -// Disables the specified rule. -func (c *IoT) DisableTopicRule(input *DisableTopicRuleInput) (*DisableTopicRuleOutput, error) { - req, out := c.DisableTopicRuleRequest(input) - err := req.Send() - return out, err -} - -const opEnableTopicRule = "EnableTopicRule" - -// EnableTopicRuleRequest generates a request for the EnableTopicRule operation. -func (c *IoT) EnableTopicRuleRequest(input *EnableTopicRuleInput) (req *request.Request, output *EnableTopicRuleOutput) { - op := &request.Operation{ - Name: opEnableTopicRule, - HTTPMethod: "POST", - HTTPPath: "/rules/{ruleName}/enable", - } - - if input == nil { - input = &EnableTopicRuleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &EnableTopicRuleOutput{} - req.Data = output - return -} - -// Enables the specified rule. -func (c *IoT) EnableTopicRule(input *EnableTopicRuleInput) (*EnableTopicRuleOutput, error) { - req, out := c.EnableTopicRuleRequest(input) - err := req.Send() - return out, err -} - -const opGetLoggingOptions = "GetLoggingOptions" - -// GetLoggingOptionsRequest generates a request for the GetLoggingOptions operation. -func (c *IoT) GetLoggingOptionsRequest(input *GetLoggingOptionsInput) (req *request.Request, output *GetLoggingOptionsOutput) { - op := &request.Operation{ - Name: opGetLoggingOptions, - HTTPMethod: "GET", - HTTPPath: "/loggingOptions", - } - - if input == nil { - input = &GetLoggingOptionsInput{} - } - - req = c.newRequest(op, input, output) - output = &GetLoggingOptionsOutput{} - req.Data = output - return -} - -// Gets the logging options. -func (c *IoT) GetLoggingOptions(input *GetLoggingOptionsInput) (*GetLoggingOptionsOutput, error) { - req, out := c.GetLoggingOptionsRequest(input) - err := req.Send() - return out, err -} - -const opGetPolicy = "GetPolicy" - -// GetPolicyRequest generates a request for the GetPolicy operation. -func (c *IoT) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput) { - op := &request.Operation{ - Name: opGetPolicy, - HTTPMethod: "GET", - HTTPPath: "/policies/{policyName}", - } - - if input == nil { - input = &GetPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &GetPolicyOutput{} - req.Data = output - return -} - -// Gets information about the specified policy with the policy document of the -// default version. -func (c *IoT) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { - req, out := c.GetPolicyRequest(input) - err := req.Send() - return out, err -} - -const opGetPolicyVersion = "GetPolicyVersion" - -// GetPolicyVersionRequest generates a request for the GetPolicyVersion operation. -func (c *IoT) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *request.Request, output *GetPolicyVersionOutput) { - op := &request.Operation{ - Name: opGetPolicyVersion, - HTTPMethod: "GET", - HTTPPath: "/policies/{policyName}/version/{policyVersionId}", - } - - if input == nil { - input = &GetPolicyVersionInput{} - } - - req = c.newRequest(op, input, output) - output = &GetPolicyVersionOutput{} - req.Data = output - return -} - -// Gets information about the specified policy version. -func (c *IoT) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) { - req, out := c.GetPolicyVersionRequest(input) - err := req.Send() - return out, err -} - -const opGetRegistrationCode = "GetRegistrationCode" - -// GetRegistrationCodeRequest generates a request for the GetRegistrationCode operation. -func (c *IoT) GetRegistrationCodeRequest(input *GetRegistrationCodeInput) (req *request.Request, output *GetRegistrationCodeOutput) { - op := &request.Operation{ - Name: opGetRegistrationCode, - HTTPMethod: "GET", - HTTPPath: "/registrationcode", - } - - if input == nil { - input = &GetRegistrationCodeInput{} - } - - req = c.newRequest(op, input, output) - output = &GetRegistrationCodeOutput{} - req.Data = output - return -} - -// Gets a registration code used to register a CA certificate with AWS IoT. -func (c *IoT) GetRegistrationCode(input *GetRegistrationCodeInput) (*GetRegistrationCodeOutput, error) { - req, out := c.GetRegistrationCodeRequest(input) - err := req.Send() - return out, err -} - -const opGetTopicRule = "GetTopicRule" - -// GetTopicRuleRequest generates a request for the GetTopicRule operation. -func (c *IoT) GetTopicRuleRequest(input *GetTopicRuleInput) (req *request.Request, output *GetTopicRuleOutput) { - op := &request.Operation{ - Name: opGetTopicRule, - HTTPMethod: "GET", - HTTPPath: "/rules/{ruleName}", - } - - if input == nil { - input = &GetTopicRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &GetTopicRuleOutput{} - req.Data = output - return -} - -// Gets information about the specified rule. -func (c *IoT) GetTopicRule(input *GetTopicRuleInput) (*GetTopicRuleOutput, error) { - req, out := c.GetTopicRuleRequest(input) - err := req.Send() - return out, err -} - -const opListCACertificates = "ListCACertificates" - -// ListCACertificatesRequest generates a request for the ListCACertificates operation. -func (c *IoT) ListCACertificatesRequest(input *ListCACertificatesInput) (req *request.Request, output *ListCACertificatesOutput) { - op := &request.Operation{ - Name: opListCACertificates, - HTTPMethod: "GET", - HTTPPath: "/cacertificates", - } - - if input == nil { - input = &ListCACertificatesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListCACertificatesOutput{} - req.Data = output - return -} - -// Lists the CA certificates registered for your AWS account. -// -// The results are paginated with a default page size of 25. You can use the -// returned marker to retrieve additional results. -func (c *IoT) ListCACertificates(input *ListCACertificatesInput) (*ListCACertificatesOutput, error) { - req, out := c.ListCACertificatesRequest(input) - err := req.Send() - return out, err -} - -const opListCertificates = "ListCertificates" - -// ListCertificatesRequest generates a request for the ListCertificates operation. -func (c *IoT) ListCertificatesRequest(input *ListCertificatesInput) (req *request.Request, output *ListCertificatesOutput) { - op := &request.Operation{ - Name: opListCertificates, - HTTPMethod: "GET", - HTTPPath: "/certificates", - } - - if input == nil { - input = &ListCertificatesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListCertificatesOutput{} - req.Data = output - return -} - -// Lists the certificates registered in your AWS account. -// -// The results are paginated with a default page size of 25. You can use the -// returned marker to retrieve additional results. -func (c *IoT) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) { - req, out := c.ListCertificatesRequest(input) - err := req.Send() - return out, err -} - -const opListCertificatesByCA = "ListCertificatesByCA" - -// ListCertificatesByCARequest generates a request for the ListCertificatesByCA operation. -func (c *IoT) ListCertificatesByCARequest(input *ListCertificatesByCAInput) (req *request.Request, output *ListCertificatesByCAOutput) { - op := &request.Operation{ - Name: opListCertificatesByCA, - HTTPMethod: "GET", - HTTPPath: "/certificates-by-ca/{caCertificateId}", - } - - if input == nil { - input = &ListCertificatesByCAInput{} - } - - req = c.newRequest(op, input, output) - output = &ListCertificatesByCAOutput{} - req.Data = output - return -} - -// List the device certificates signed by the specified CA certificate. -func (c *IoT) ListCertificatesByCA(input *ListCertificatesByCAInput) (*ListCertificatesByCAOutput, error) { - req, out := c.ListCertificatesByCARequest(input) - err := req.Send() - return out, err -} - -const opListPolicies = "ListPolicies" - -// ListPoliciesRequest generates a request for the ListPolicies operation. -func (c *IoT) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Request, output *ListPoliciesOutput) { - op := &request.Operation{ - Name: opListPolicies, - HTTPMethod: "GET", - HTTPPath: "/policies", - } - - if input == nil { - input = &ListPoliciesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListPoliciesOutput{} - req.Data = output - return -} - -// Lists your policies. -func (c *IoT) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) { - req, out := c.ListPoliciesRequest(input) - err := req.Send() - return out, err -} - -const opListPolicyVersions = "ListPolicyVersions" - -// ListPolicyVersionsRequest generates a request for the ListPolicyVersions operation. -func (c *IoT) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *request.Request, output *ListPolicyVersionsOutput) { - op := &request.Operation{ - Name: opListPolicyVersions, - HTTPMethod: "GET", - HTTPPath: "/policies/{policyName}/version", - } - - if input == nil { - input = &ListPolicyVersionsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListPolicyVersionsOutput{} - req.Data = output - return -} - -// Lists the versions of the specified policy, and identifies the default version. -func (c *IoT) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) { - req, out := c.ListPolicyVersionsRequest(input) - err := req.Send() - return out, err -} - -const opListPrincipalPolicies = "ListPrincipalPolicies" - -// ListPrincipalPoliciesRequest generates a request for the ListPrincipalPolicies operation. -func (c *IoT) ListPrincipalPoliciesRequest(input *ListPrincipalPoliciesInput) (req *request.Request, output *ListPrincipalPoliciesOutput) { - op := &request.Operation{ - Name: opListPrincipalPolicies, - HTTPMethod: "GET", - HTTPPath: "/principal-policies", - } - - if input == nil { - input = &ListPrincipalPoliciesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListPrincipalPoliciesOutput{} - req.Data = output - return -} - -// Lists the policies attached to the specified principal. If you use an Cognito -// identity, the ID must be in AmazonCognito Identity format (http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetCredentialsForIdentity.html#API_GetCredentialsForIdentity_RequestSyntax). -func (c *IoT) ListPrincipalPolicies(input *ListPrincipalPoliciesInput) (*ListPrincipalPoliciesOutput, error) { - req, out := c.ListPrincipalPoliciesRequest(input) - err := req.Send() - return out, err -} - -const opListPrincipalThings = "ListPrincipalThings" - -// ListPrincipalThingsRequest generates a request for the ListPrincipalThings operation. -func (c *IoT) ListPrincipalThingsRequest(input *ListPrincipalThingsInput) (req *request.Request, output *ListPrincipalThingsOutput) { - op := &request.Operation{ - Name: opListPrincipalThings, - HTTPMethod: "GET", - HTTPPath: "/principals/things", - } - - if input == nil { - input = &ListPrincipalThingsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListPrincipalThingsOutput{} - req.Data = output - return -} - -// Lists the things associated with the specified principal. -func (c *IoT) ListPrincipalThings(input *ListPrincipalThingsInput) (*ListPrincipalThingsOutput, error) { - req, out := c.ListPrincipalThingsRequest(input) - err := req.Send() - return out, err -} - -const opListThingPrincipals = "ListThingPrincipals" - -// ListThingPrincipalsRequest generates a request for the ListThingPrincipals operation. -func (c *IoT) ListThingPrincipalsRequest(input *ListThingPrincipalsInput) (req *request.Request, output *ListThingPrincipalsOutput) { - op := &request.Operation{ - Name: opListThingPrincipals, - HTTPMethod: "GET", - HTTPPath: "/things/{thingName}/principals", - } - - if input == nil { - input = &ListThingPrincipalsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListThingPrincipalsOutput{} - req.Data = output - return -} - -// Lists the principals associated with the specified thing. -func (c *IoT) ListThingPrincipals(input *ListThingPrincipalsInput) (*ListThingPrincipalsOutput, error) { - req, out := c.ListThingPrincipalsRequest(input) - err := req.Send() - return out, err -} - -const opListThings = "ListThings" - -// ListThingsRequest generates a request for the ListThings operation. -func (c *IoT) ListThingsRequest(input *ListThingsInput) (req *request.Request, output *ListThingsOutput) { - op := &request.Operation{ - Name: opListThings, - HTTPMethod: "GET", - HTTPPath: "/things", - } - - if input == nil { - input = &ListThingsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListThingsOutput{} - req.Data = output - return -} - -// Lists your things. You can pass an AttributeName or AttributeValue to filter -// your things (for example, "ListThings where AttributeName=Color and AttributeValue=Red"). -func (c *IoT) ListThings(input *ListThingsInput) (*ListThingsOutput, error) { - req, out := c.ListThingsRequest(input) - err := req.Send() - return out, err -} - -const opListTopicRules = "ListTopicRules" - -// ListTopicRulesRequest generates a request for the ListTopicRules operation. -func (c *IoT) ListTopicRulesRequest(input *ListTopicRulesInput) (req *request.Request, output *ListTopicRulesOutput) { - op := &request.Operation{ - Name: opListTopicRules, - HTTPMethod: "GET", - HTTPPath: "/rules", - } - - if input == nil { - input = &ListTopicRulesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTopicRulesOutput{} - req.Data = output - return -} - -// Lists the rules for the specific topic. -func (c *IoT) ListTopicRules(input *ListTopicRulesInput) (*ListTopicRulesOutput, error) { - req, out := c.ListTopicRulesRequest(input) - err := req.Send() - return out, err -} - -const opRegisterCACertificate = "RegisterCACertificate" - -// RegisterCACertificateRequest generates a request for the RegisterCACertificate operation. -func (c *IoT) RegisterCACertificateRequest(input *RegisterCACertificateInput) (req *request.Request, output *RegisterCACertificateOutput) { - op := &request.Operation{ - Name: opRegisterCACertificate, - HTTPMethod: "POST", - HTTPPath: "/cacertificate", - } - - if input == nil { - input = &RegisterCACertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &RegisterCACertificateOutput{} - req.Data = output - return -} - -// Registers a CA certificate with AWS IoT. This CA certificate can then be -// used to sign device certificates, which can be then registered with AWS IoT. -// You can register up to 10 CA certificates per AWS account that have the same -// subject field and public key. This enables you to have up to 10 certificate -// authorities sign your device certificates. If you have more than one CA certificate -// registered, make sure you pass the CA certificate when you register your -// device certificates with the RegisterCertificate API. -func (c *IoT) RegisterCACertificate(input *RegisterCACertificateInput) (*RegisterCACertificateOutput, error) { - req, out := c.RegisterCACertificateRequest(input) - err := req.Send() - return out, err -} - -const opRegisterCertificate = "RegisterCertificate" - -// RegisterCertificateRequest generates a request for the RegisterCertificate operation. -func (c *IoT) RegisterCertificateRequest(input *RegisterCertificateInput) (req *request.Request, output *RegisterCertificateOutput) { - op := &request.Operation{ - Name: opRegisterCertificate, - HTTPMethod: "POST", - HTTPPath: "/certificate/register", - } - - if input == nil { - input = &RegisterCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &RegisterCertificateOutput{} - req.Data = output - return -} - -// Registers a device certificate with AWS IoT. If you have more than one CA -// certificate that has the same subject field, you must specify the CA certificate -// that was used to sign the device certificate being registered. -func (c *IoT) RegisterCertificate(input *RegisterCertificateInput) (*RegisterCertificateOutput, error) { - req, out := c.RegisterCertificateRequest(input) - err := req.Send() - return out, err -} - -const opRejectCertificateTransfer = "RejectCertificateTransfer" - -// RejectCertificateTransferRequest generates a request for the RejectCertificateTransfer operation. -func (c *IoT) RejectCertificateTransferRequest(input *RejectCertificateTransferInput) (req *request.Request, output *RejectCertificateTransferOutput) { - op := &request.Operation{ - Name: opRejectCertificateTransfer, - HTTPMethod: "PATCH", - HTTPPath: "/reject-certificate-transfer/{certificateId}", - } - - if input == nil { - input = &RejectCertificateTransferInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &RejectCertificateTransferOutput{} - req.Data = output - return -} - -// Rejects a pending certificate transfer. After AWS IoT rejects a certificate -// transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE. -// -// To check for pending certificate transfers, call ListCertificates to enumerate -// your certificates. -// -// This operation can only be called by the transfer destination. After it -// is called, the certificate will be returned to the source's account in the -// INACTIVE state. -func (c *IoT) RejectCertificateTransfer(input *RejectCertificateTransferInput) (*RejectCertificateTransferOutput, error) { - req, out := c.RejectCertificateTransferRequest(input) - err := req.Send() - return out, err -} - -const opReplaceTopicRule = "ReplaceTopicRule" - -// ReplaceTopicRuleRequest generates a request for the ReplaceTopicRule operation. -func (c *IoT) ReplaceTopicRuleRequest(input *ReplaceTopicRuleInput) (req *request.Request, output *ReplaceTopicRuleOutput) { - op := &request.Operation{ - Name: opReplaceTopicRule, - HTTPMethod: "PATCH", - HTTPPath: "/rules/{ruleName}", - } - - if input == nil { - input = &ReplaceTopicRuleInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &ReplaceTopicRuleOutput{} - req.Data = output - return -} - -// Replaces the specified rule. You must specify all parameters for the new -// rule. Creating rules is an administrator-level action. Any user who has permission -// to create rules will be able to access data processed by the rule. -func (c *IoT) ReplaceTopicRule(input *ReplaceTopicRuleInput) (*ReplaceTopicRuleOutput, error) { - req, out := c.ReplaceTopicRuleRequest(input) - err := req.Send() - return out, err -} - -const opSetDefaultPolicyVersion = "SetDefaultPolicyVersion" - -// SetDefaultPolicyVersionRequest generates a request for the SetDefaultPolicyVersion operation. -func (c *IoT) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput) (req *request.Request, output *SetDefaultPolicyVersionOutput) { - op := &request.Operation{ - Name: opSetDefaultPolicyVersion, - HTTPMethod: "PATCH", - HTTPPath: "/policies/{policyName}/version/{policyVersionId}", - } - - if input == nil { - input = &SetDefaultPolicyVersionInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetDefaultPolicyVersionOutput{} - req.Data = output - return -} - -// Sets the specified version of the specified policy as the policy's default -// (operative) version. This action affects all certificates to which the policy -// is attached. To list the principals the policy is attached to, use the ListPrincipalPolicy -// API. -func (c *IoT) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) { - req, out := c.SetDefaultPolicyVersionRequest(input) - err := req.Send() - return out, err -} - -const opSetLoggingOptions = "SetLoggingOptions" - -// SetLoggingOptionsRequest generates a request for the SetLoggingOptions operation. -func (c *IoT) SetLoggingOptionsRequest(input *SetLoggingOptionsInput) (req *request.Request, output *SetLoggingOptionsOutput) { - op := &request.Operation{ - Name: opSetLoggingOptions, - HTTPMethod: "POST", - HTTPPath: "/loggingOptions", - } - - if input == nil { - input = &SetLoggingOptionsInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &SetLoggingOptionsOutput{} - req.Data = output - return -} - -// Sets the logging options. -func (c *IoT) SetLoggingOptions(input *SetLoggingOptionsInput) (*SetLoggingOptionsOutput, error) { - req, out := c.SetLoggingOptionsRequest(input) - err := req.Send() - return out, err -} - -const opTransferCertificate = "TransferCertificate" - -// TransferCertificateRequest generates a request for the TransferCertificate operation. -func (c *IoT) TransferCertificateRequest(input *TransferCertificateInput) (req *request.Request, output *TransferCertificateOutput) { - op := &request.Operation{ - Name: opTransferCertificate, - HTTPMethod: "PATCH", - HTTPPath: "/transfer-certificate/{certificateId}", - } - - if input == nil { - input = &TransferCertificateInput{} - } - - req = c.newRequest(op, input, output) - output = &TransferCertificateOutput{} - req.Data = output - return -} - -// Transfers the specified certificate to the specified AWS account. -// -// You can cancel the transfer until it is acknowledged by the recipient. -// -// No notification is sent to the transfer destination's account. It is up -// to the caller to notify the transfer target. -// -// The certificate being transferred must not be in the ACTIVE state. You can -// use the UpdateCertificate API to deactivate it. -// -// The certificate must not have any policies attached to it. You can use the -// DetachPrincipalPolicy API to detach them. -func (c *IoT) TransferCertificate(input *TransferCertificateInput) (*TransferCertificateOutput, error) { - req, out := c.TransferCertificateRequest(input) - err := req.Send() - return out, err -} - -const opUpdateCACertificate = "UpdateCACertificate" - -// UpdateCACertificateRequest generates a request for the UpdateCACertificate operation. -func (c *IoT) UpdateCACertificateRequest(input *UpdateCACertificateInput) (req *request.Request, output *UpdateCACertificateOutput) { - op := &request.Operation{ - Name: opUpdateCACertificate, - HTTPMethod: "PUT", - HTTPPath: "/cacertificate/{certificateId}", - } - - if input == nil { - input = &UpdateCACertificateInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateCACertificateOutput{} - req.Data = output - return -} - -// Updates a registered CA certificate. -func (c *IoT) UpdateCACertificate(input *UpdateCACertificateInput) (*UpdateCACertificateOutput, error) { - req, out := c.UpdateCACertificateRequest(input) - err := req.Send() - return out, err -} - -const opUpdateCertificate = "UpdateCertificate" - -// UpdateCertificateRequest generates a request for the UpdateCertificate operation. -func (c *IoT) UpdateCertificateRequest(input *UpdateCertificateInput) (req *request.Request, output *UpdateCertificateOutput) { - op := &request.Operation{ - Name: opUpdateCertificate, - HTTPMethod: "PUT", - HTTPPath: "/certificates/{certificateId}", - } - - if input == nil { - input = &UpdateCertificateInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &UpdateCertificateOutput{} - req.Data = output - return -} - -// Updates the status of the specified certificate. This operation is idempotent. -// -// Moving a certificate from the ACTIVE state (including REVOKED) will not -// disconnect currently connected devices, but these devices will be unable -// to reconnect. -// -// The ACTIVE state is required to authenticate devices connecting to AWS IoT -// using a certificate. -func (c *IoT) UpdateCertificate(input *UpdateCertificateInput) (*UpdateCertificateOutput, error) { - req, out := c.UpdateCertificateRequest(input) - err := req.Send() - return out, err -} - -const opUpdateThing = "UpdateThing" - -// UpdateThingRequest generates a request for the UpdateThing operation. -func (c *IoT) UpdateThingRequest(input *UpdateThingInput) (req *request.Request, output *UpdateThingOutput) { - op := &request.Operation{ - Name: opUpdateThing, - HTTPMethod: "PATCH", - HTTPPath: "/things/{thingName}", - } - - if input == nil { - input = &UpdateThingInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateThingOutput{} - req.Data = output - return -} - -// Updates the data for a thing. -func (c *IoT) UpdateThing(input *UpdateThingInput) (*UpdateThingOutput, error) { - req, out := c.UpdateThingRequest(input) - err := req.Send() - return out, err -} - -// The input for the AcceptCertificateTransfer operation. -type AcceptCertificateTransferInput struct { - _ struct{} `type:"structure"` - - // The ID of the certificate. - CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"` - - // Specifies whether the certificate is active. - SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"` -} - -// String returns the string representation -func (s AcceptCertificateTransferInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AcceptCertificateTransferInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AcceptCertificateTransferInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AcceptCertificateTransferInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type AcceptCertificateTransferOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AcceptCertificateTransferOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AcceptCertificateTransferOutput) GoString() string { - return s.String() -} - -// Describes the actions associated with a rule. -type Action struct { - _ struct{} `type:"structure"` - - // Change the state of a CloudWatch alarm. - CloudwatchAlarm *CloudwatchAlarmAction `locationName:"cloudwatchAlarm" type:"structure"` - - // Capture a CloudWatch metric. - CloudwatchMetric *CloudwatchMetricAction `locationName:"cloudwatchMetric" type:"structure"` - - // Write to a DynamoDB table. - DynamoDB *DynamoDBAction `locationName:"dynamoDB" type:"structure"` - - // Write data to an Amazon Elasticsearch Service; domain. - Elasticsearch *ElasticsearchAction `locationName:"elasticsearch" type:"structure"` - - // Write to an Amazon Kinesis Firehose stream. - Firehose *FirehoseAction `locationName:"firehose" type:"structure"` - - // Write data to an Amazon Kinesis stream. - Kinesis *KinesisAction `locationName:"kinesis" type:"structure"` - - // Invoke a Lambda function. - Lambda *LambdaAction `locationName:"lambda" type:"structure"` - - // Publish to another MQTT topic. - Republish *RepublishAction `locationName:"republish" type:"structure"` - - // Write to an Amazon S3 bucket. - S3 *S3Action `locationName:"s3" type:"structure"` - - // Publish to an Amazon SNS topic. - Sns *SnsAction `locationName:"sns" type:"structure"` - - // Publish to an Amazon SQS queue. - Sqs *SqsAction `locationName:"sqs" type:"structure"` -} - -// String returns the string representation -func (s Action) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Action) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Action) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Action"} - if s.CloudwatchAlarm != nil { - if err := s.CloudwatchAlarm.Validate(); err != nil { - invalidParams.AddNested("CloudwatchAlarm", err.(request.ErrInvalidParams)) - } - } - if s.CloudwatchMetric != nil { - if err := s.CloudwatchMetric.Validate(); err != nil { - invalidParams.AddNested("CloudwatchMetric", err.(request.ErrInvalidParams)) - } - } - if s.DynamoDB != nil { - if err := s.DynamoDB.Validate(); err != nil { - invalidParams.AddNested("DynamoDB", err.(request.ErrInvalidParams)) - } - } - if s.Elasticsearch != nil { - if err := s.Elasticsearch.Validate(); err != nil { - invalidParams.AddNested("Elasticsearch", err.(request.ErrInvalidParams)) - } - } - if s.Firehose != nil { - if err := s.Firehose.Validate(); err != nil { - invalidParams.AddNested("Firehose", err.(request.ErrInvalidParams)) - } - } - if s.Kinesis != nil { - if err := s.Kinesis.Validate(); err != nil { - invalidParams.AddNested("Kinesis", err.(request.ErrInvalidParams)) - } - } - if s.Lambda != nil { - if err := s.Lambda.Validate(); err != nil { - invalidParams.AddNested("Lambda", err.(request.ErrInvalidParams)) - } - } - if s.Republish != nil { - if err := s.Republish.Validate(); err != nil { - invalidParams.AddNested("Republish", err.(request.ErrInvalidParams)) - } - } - if s.S3 != nil { - if err := s.S3.Validate(); err != nil { - invalidParams.AddNested("S3", err.(request.ErrInvalidParams)) - } - } - if s.Sns != nil { - if err := s.Sns.Validate(); err != nil { - invalidParams.AddNested("Sns", err.(request.ErrInvalidParams)) - } - } - if s.Sqs != nil { - if err := s.Sqs.Validate(); err != nil { - invalidParams.AddNested("Sqs", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The input for the AttachPrincipalPolicy operation. -type AttachPrincipalPolicyInput struct { - _ struct{} `type:"structure"` - - // The policy name. - PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` - - // The principal, which can be a certificate ARN (as returned from the CreateCertificate - // operation) or an Amazon Cognito ID. - Principal *string `location:"header" locationName:"x-amzn-iot-principal" type:"string" required:"true"` -} - -// String returns the string representation -func (s AttachPrincipalPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachPrincipalPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachPrincipalPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachPrincipalPolicyInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.Principal == nil { - invalidParams.Add(request.NewErrParamRequired("Principal")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type AttachPrincipalPolicyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AttachPrincipalPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachPrincipalPolicyOutput) GoString() string { - return s.String() -} - -// The input for the AttachThingPrincipal operation. -type AttachThingPrincipalInput struct { - _ struct{} `type:"structure"` - - // The principal (certificate or other credential). - Principal *string `location:"header" locationName:"x-amzn-principal" type:"string" required:"true"` - - // The name of the thing. - ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s AttachThingPrincipalInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachThingPrincipalInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachThingPrincipalInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachThingPrincipalInput"} - if s.Principal == nil { - invalidParams.Add(request.NewErrParamRequired("Principal")) - } - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) - } - if s.ThingName != nil && len(*s.ThingName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the AttachThingPrincipal operation. -type AttachThingPrincipalOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s AttachThingPrincipalOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachThingPrincipalOutput) GoString() string { - return s.String() -} - -// The attribute payload, a JSON string containing up to three key-value pairs -// (for example, {\"attributes\":{\"string1\":\"string2\"}}). -type AttributePayload struct { - _ struct{} `type:"structure"` - - // A JSON string containing up to three key-value pair in JSON format (for example, - // {\"attributes\":{\"string1\":\"string2\"}}). - Attributes map[string]*string `locationName:"attributes" type:"map"` -} - -// String returns the string representation -func (s AttributePayload) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttributePayload) GoString() string { - return s.String() -} - -// A CA certificate. -type CACertificate struct { - _ struct{} `type:"structure"` - - // The ARN of the CA certificate. - CertificateArn *string `locationName:"certificateArn" type:"string"` - - // The ID of the CA certificate. - CertificateId *string `locationName:"certificateId" min:"64" type:"string"` - - // The date the CA certificate was created. - CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"` - - // The status of the CA certificate. - Status *string `locationName:"status" type:"string" enum:"CACertificateStatus"` -} - -// String returns the string representation -func (s CACertificate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CACertificate) GoString() string { - return s.String() -} - -// Describes a CA certificate. -type CACertificateDescription struct { - _ struct{} `type:"structure"` - - // The CA certificate ARN. - CertificateArn *string `locationName:"certificateArn" type:"string"` - - // The CA certificate ID. - CertificateId *string `locationName:"certificateId" min:"64" type:"string"` - - // The CA certificate data, in PEM format. - CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"` - - // The date the CA certificate was created. - CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"` - - // The owner of the CA certificate. - OwnedBy *string `locationName:"ownedBy" type:"string"` - - // The status of a CA certificate. - Status *string `locationName:"status" type:"string" enum:"CACertificateStatus"` -} - -// String returns the string representation -func (s CACertificateDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CACertificateDescription) GoString() string { - return s.String() -} - -// The input for the CancelCertificateTransfer operation. -type CancelCertificateTransferInput struct { - _ struct{} `type:"structure"` - - // The ID of the certificate. - CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"` -} - -// String returns the string representation -func (s CancelCertificateTransferInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CancelCertificateTransferInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelCertificateTransferInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelCertificateTransferInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CancelCertificateTransferOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s CancelCertificateTransferOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CancelCertificateTransferOutput) GoString() string { - return s.String() -} - -// Information about a certificate. -type Certificate struct { - _ struct{} `type:"structure"` - - // The ARN of the certificate. - CertificateArn *string `locationName:"certificateArn" type:"string"` - - // The ID of the certificate. - CertificateId *string `locationName:"certificateId" min:"64" type:"string"` - - // The date and time the certificate was created. - CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"` - - // The status of the certificate. - Status *string `locationName:"status" type:"string" enum:"CertificateStatus"` -} - -// String returns the string representation -func (s Certificate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Certificate) GoString() string { - return s.String() -} - -// Describes a certificate. -type CertificateDescription struct { - _ struct{} `type:"structure"` - - // The certificate ID of the CA certificate used to sign this certificate. - CaCertificateId *string `locationName:"caCertificateId" min:"64" type:"string"` - - // The ARN of the certificate. - CertificateArn *string `locationName:"certificateArn" type:"string"` - - // The ID of the certificate. - CertificateId *string `locationName:"certificateId" min:"64" type:"string"` - - // The certificate data, in PEM format. - CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"` - - // The date and time the certificate was created. - CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"` - - // The date and time the certificate was last modified. - LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"` - - // The ID of the AWS account that owns the certificate. - OwnedBy *string `locationName:"ownedBy" type:"string"` - - // The ID of the AWS account of the previous owner of the certificate. - PreviousOwnedBy *string `locationName:"previousOwnedBy" type:"string"` - - // The status of the certificate. - Status *string `locationName:"status" type:"string" enum:"CertificateStatus"` - - // The transfer data. - TransferData *TransferData `locationName:"transferData" type:"structure"` -} - -// String returns the string representation -func (s CertificateDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CertificateDescription) GoString() string { - return s.String() -} - -// Describes an action that updates a CloudWatch alarm. -type CloudwatchAlarmAction struct { - _ struct{} `type:"structure"` - - // The CloudWatch alarm name. - AlarmName *string `locationName:"alarmName" type:"string" required:"true"` - - // The IAM role that allows access to the CloudWatch alarm. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` - - // The reason for the alarm change. - StateReason *string `locationName:"stateReason" type:"string" required:"true"` - - // The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA. - StateValue *string `locationName:"stateValue" type:"string" required:"true"` -} - -// String returns the string representation -func (s CloudwatchAlarmAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CloudwatchAlarmAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CloudwatchAlarmAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CloudwatchAlarmAction"} - if s.AlarmName == nil { - invalidParams.Add(request.NewErrParamRequired("AlarmName")) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.StateReason == nil { - invalidParams.Add(request.NewErrParamRequired("StateReason")) - } - if s.StateValue == nil { - invalidParams.Add(request.NewErrParamRequired("StateValue")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes an action that captures a CloudWatch metric. -type CloudwatchMetricAction struct { - _ struct{} `type:"structure"` - - // The CloudWatch metric name. - MetricName *string `locationName:"metricName" type:"string" required:"true"` - - // The CloudWatch metric namespace name. - MetricNamespace *string `locationName:"metricNamespace" type:"string" required:"true"` - - // An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp). - MetricTimestamp *string `locationName:"metricTimestamp" type:"string"` - - // The metric unit (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) - // supported by CloudWatch. - MetricUnit *string `locationName:"metricUnit" type:"string" required:"true"` - - // The CloudWatch metric value. - MetricValue *string `locationName:"metricValue" type:"string" required:"true"` - - // The IAM role that allows access to the CloudWatch metric. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` -} - -// String returns the string representation -func (s CloudwatchMetricAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CloudwatchMetricAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CloudwatchMetricAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CloudwatchMetricAction"} - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } - if s.MetricNamespace == nil { - invalidParams.Add(request.NewErrParamRequired("MetricNamespace")) - } - if s.MetricUnit == nil { - invalidParams.Add(request.NewErrParamRequired("MetricUnit")) - } - if s.MetricValue == nil { - invalidParams.Add(request.NewErrParamRequired("MetricValue")) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The input for the CreateCertificateFromCsr operation. -type CreateCertificateFromCsrInput struct { - _ struct{} `type:"structure"` - - // The certificate signing request (CSR). - CertificateSigningRequest *string `locationName:"certificateSigningRequest" min:"1" type:"string" required:"true"` - - // Specifies whether the certificate is active. - SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"` -} - -// String returns the string representation -func (s CreateCertificateFromCsrInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateCertificateFromCsrInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCertificateFromCsrInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCertificateFromCsrInput"} - if s.CertificateSigningRequest == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateSigningRequest")) - } - if s.CertificateSigningRequest != nil && len(*s.CertificateSigningRequest) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CertificateSigningRequest", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the CreateCertificateFromCsr operation. -type CreateCertificateFromCsrOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the certificate. You can use the ARN as - // a principal for policy operations. - CertificateArn *string `locationName:"certificateArn" type:"string"` - - // The ID of the certificate. Certificate management operations only take a - // certificateId. - CertificateId *string `locationName:"certificateId" min:"64" type:"string"` - - // The certificate data, in PEM format. - CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"` -} - -// String returns the string representation -func (s CreateCertificateFromCsrOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateCertificateFromCsrOutput) GoString() string { - return s.String() -} - -// The input for the CreateKeysAndCertificate operation. -type CreateKeysAndCertificateInput struct { - _ struct{} `type:"structure"` - - // Specifies whether the certificate is active. - SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"` -} - -// String returns the string representation -func (s CreateKeysAndCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateKeysAndCertificateInput) GoString() string { - return s.String() -} - -// The output of the CreateKeysAndCertificate operation. -type CreateKeysAndCertificateOutput struct { - _ struct{} `type:"structure"` - - // The ARN of the certificate. - CertificateArn *string `locationName:"certificateArn" type:"string"` - - // The ID of the certificate. AWS IoT issues a default subject name for the - // certificate (for example, AWS IoT Certificate). - CertificateId *string `locationName:"certificateId" min:"64" type:"string"` - - // The certificate data, in PEM format. - CertificatePem *string `locationName:"certificatePem" min:"1" type:"string"` - - // The generated key pair. - KeyPair *KeyPair `locationName:"keyPair" type:"structure"` -} - -// String returns the string representation -func (s CreateKeysAndCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateKeysAndCertificateOutput) GoString() string { - return s.String() -} - -// The input for the CreatePolicy operation. -type CreatePolicyInput struct { - _ struct{} `type:"structure"` - - // The JSON document that describes the policy. policyDocument must have a minimum - // length of 1, with a maximum length of 2048, excluding whitespace. - PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"` - - // The policy name. - PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreatePolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreatePolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePolicyInput"} - if s.PolicyDocument == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyDocument")) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the CreatePolicy operation. -type CreatePolicyOutput struct { - _ struct{} `type:"structure"` - - // The policy ARN. - PolicyArn *string `locationName:"policyArn" type:"string"` - - // The JSON document that describes the policy. - PolicyDocument *string `locationName:"policyDocument" type:"string"` - - // The policy name. - PolicyName *string `locationName:"policyName" min:"1" type:"string"` - - // The policy version ID. - PolicyVersionId *string `locationName:"policyVersionId" type:"string"` -} - -// String returns the string representation -func (s CreatePolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreatePolicyOutput) GoString() string { - return s.String() -} - -// The input for the CreatePolicyVersion operation. -type CreatePolicyVersionInput struct { - _ struct{} `type:"structure"` - - // The JSON document that describes the policy. Minimum length of 1. Maximum - // length of 2048, excluding whitespaces - PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"` - - // The policy name. - PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` - - // Specifies whether the policy version is set as the default. When this parameter - // is true, the new policy version becomes the operative version (that is, the - // version that is in effect for the certificates to which the policy is attached). - SetAsDefault *bool `location:"querystring" locationName:"setAsDefault" type:"boolean"` -} - -// String returns the string representation -func (s CreatePolicyVersionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreatePolicyVersionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePolicyVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePolicyVersionInput"} - if s.PolicyDocument == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyDocument")) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output of the CreatePolicyVersion operation. -type CreatePolicyVersionOutput struct { - _ struct{} `type:"structure"` - - // Specifies whether the policy version is the default. - IsDefaultVersion *bool `locationName:"isDefaultVersion" type:"boolean"` - - // The policy ARN. - PolicyArn *string `locationName:"policyArn" type:"string"` - - // The JSON document that describes the policy. - PolicyDocument *string `locationName:"policyDocument" type:"string"` - - // The policy version ID. - PolicyVersionId *string `locationName:"policyVersionId" type:"string"` -} - -// String returns the string representation -func (s CreatePolicyVersionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreatePolicyVersionOutput) GoString() string { - return s.String() -} - -// The input for the CreateThing operation. -type CreateThingInput struct { - _ struct{} `type:"structure"` - - // The attribute payload, which consists of up to 3 name/value pairs in a JSON - // document (for example, {\"attributes\":{\"string1\":\"string2\"}}). - AttributePayload *AttributePayload `locationName:"attributePayload" type:"structure"` - - // The name of the thing. - ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateThingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateThingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateThingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateThingInput"} - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) - } - if s.ThingName != nil && len(*s.ThingName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output of the CreateThing operation. -type CreateThingOutput struct { - _ struct{} `type:"structure"` - - // The thing ARN. - ThingArn *string `locationName:"thingArn" type:"string"` - - // The name of the thing. - ThingName *string `locationName:"thingName" min:"1" type:"string"` -} - -// String returns the string representation -func (s CreateThingOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateThingOutput) GoString() string { - return s.String() -} - -// The input for the CreateTopicRule operation. -type CreateTopicRuleInput struct { - _ struct{} `type:"structure" payload:"TopicRulePayload"` - - // The name of the rule. - RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"` - - // The rule payload. - TopicRulePayload *TopicRulePayload `locationName:"topicRulePayload" type:"structure" required:"true"` -} - -// String returns the string representation -func (s CreateTopicRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateTopicRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTopicRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTopicRuleInput"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleName != nil && len(*s.RuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleName", 1)) - } - if s.TopicRulePayload == nil { - invalidParams.Add(request.NewErrParamRequired("TopicRulePayload")) - } - if s.TopicRulePayload != nil { - if err := s.TopicRulePayload.Validate(); err != nil { - invalidParams.AddNested("TopicRulePayload", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateTopicRuleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s CreateTopicRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateTopicRuleOutput) GoString() string { - return s.String() -} - -// Input for the DeleteCACertificate operation. -type DeleteCACertificateInput struct { - _ struct{} `type:"structure"` - - // The ID of the certificate to delete. - CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteCACertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteCACertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCACertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCACertificateInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output for the DeleteCACertificate operation. -type DeleteCACertificateOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteCACertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteCACertificateOutput) GoString() string { - return s.String() -} - -// The input for the DeleteCertificate operation. -type DeleteCertificateInput struct { - _ struct{} `type:"structure"` - - // The ID of the certificate. - CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCertificateInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteCertificateOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteCertificateOutput) GoString() string { - return s.String() -} - -// The input for the DeletePolicy operation. -type DeletePolicyInput struct { - _ struct{} `type:"structure"` - - // The name of the policy to delete. - PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeletePolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeletePolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePolicyInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeletePolicyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeletePolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeletePolicyOutput) GoString() string { - return s.String() -} - -// The input for the DeletePolicyVersion operation. -type DeletePolicyVersionInput struct { - _ struct{} `type:"structure"` - - // The name of the policy. - PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` - - // The policy version ID. - PolicyVersionId *string `location:"uri" locationName:"policyVersionId" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeletePolicyVersionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeletePolicyVersionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePolicyVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePolicyVersionInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.PolicyVersionId == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyVersionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeletePolicyVersionOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeletePolicyVersionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeletePolicyVersionOutput) GoString() string { - return s.String() -} - -// The input for the DeleteRegistrationCode operation. -type DeleteRegistrationCodeInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteRegistrationCodeInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRegistrationCodeInput) GoString() string { - return s.String() -} - -// The output for the DeleteRegistrationCode operation. -type DeleteRegistrationCodeOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteRegistrationCodeOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRegistrationCodeOutput) GoString() string { - return s.String() -} - -// The input for the DeleteThing operation. -type DeleteThingInput struct { - _ struct{} `type:"structure"` - - // The thing name. - ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteThingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteThingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteThingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteThingInput"} - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) - } - if s.ThingName != nil && len(*s.ThingName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output of the DeleteThing operation. -type DeleteThingOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteThingOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteThingOutput) GoString() string { - return s.String() -} - -// The input for the DeleteTopicRule operation. -type DeleteTopicRuleInput struct { - _ struct{} `type:"structure"` - - // The name of the rule. - RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteTopicRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteTopicRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTopicRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTopicRuleInput"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleName != nil && len(*s.RuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteTopicRuleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteTopicRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteTopicRuleOutput) GoString() string { - return s.String() -} - -// The input for the DescribeCACertificate operation. -type DescribeCACertificateInput struct { - _ struct{} `type:"structure"` - - // The CA certificate identifier. - CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeCACertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeCACertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeCACertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeCACertificateInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the DescribeCACertificate operation. -type DescribeCACertificateOutput struct { - _ struct{} `type:"structure"` - - // The CA certificate description. - CertificateDescription *CACertificateDescription `locationName:"certificateDescription" type:"structure"` -} - -// String returns the string representation -func (s DescribeCACertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeCACertificateOutput) GoString() string { - return s.String() -} - -// The input for the DescribeCertificate operation. -type DescribeCertificateInput struct { - _ struct{} `type:"structure"` - - // The ID of the certificate. - CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeCertificateInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output of the DescribeCertificate operation. -type DescribeCertificateOutput struct { - _ struct{} `type:"structure"` - - // The description of the certificate. - CertificateDescription *CertificateDescription `locationName:"certificateDescription" type:"structure"` -} - -// String returns the string representation -func (s DescribeCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeCertificateOutput) GoString() string { - return s.String() -} - -// The input for the DescribeEndpoint operation. -type DescribeEndpointInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DescribeEndpointInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEndpointInput) GoString() string { - return s.String() -} - -// The output from the DescribeEndpoint operation. -type DescribeEndpointOutput struct { - _ struct{} `type:"structure"` - - // The endpoint. The format of the endpoint is as follows: identifier.iot.region.amazonaws.com. - EndpointAddress *string `locationName:"endpointAddress" type:"string"` -} - -// String returns the string representation -func (s DescribeEndpointOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeEndpointOutput) GoString() string { - return s.String() -} - -// The input for the DescribeThing operation. -type DescribeThingInput struct { - _ struct{} `type:"structure"` - - // The name of the thing. - ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeThingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeThingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeThingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeThingInput"} - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) - } - if s.ThingName != nil && len(*s.ThingName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the DescribeThing operation. -type DescribeThingOutput struct { - _ struct{} `type:"structure"` - - // The attributes, which are name/value pairs in JSON format (for example: {\"attributes\":{\"some-name1\":\"some-value1\"}, - // {\"some-name2\":\"some-value2\"}, {\"some-name3\":\"some-value3\"}}) - Attributes map[string]*string `locationName:"attributes" type:"map"` - - // The default client ID. - DefaultClientId *string `locationName:"defaultClientId" type:"string"` - - // The name of the thing. - ThingName *string `locationName:"thingName" min:"1" type:"string"` -} - -// String returns the string representation -func (s DescribeThingOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeThingOutput) GoString() string { - return s.String() -} - -// The input for the DetachPrincipalPolicy operation. -type DetachPrincipalPolicyInput struct { - _ struct{} `type:"structure"` - - // The name of the policy to detach. - PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` - - // The principal. - // - // If the principal is a certificate, specify the certificate ARN. If the principal - // is an Amazon Cognito identity, specify the identity ID. - Principal *string `location:"header" locationName:"x-amzn-iot-principal" type:"string" required:"true"` -} - -// String returns the string representation -func (s DetachPrincipalPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DetachPrincipalPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachPrincipalPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachPrincipalPolicyInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.Principal == nil { - invalidParams.Add(request.NewErrParamRequired("Principal")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DetachPrincipalPolicyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DetachPrincipalPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DetachPrincipalPolicyOutput) GoString() string { - return s.String() -} - -// The input for the DetachThingPrincipal operation. -type DetachThingPrincipalInput struct { - _ struct{} `type:"structure"` - - // The principal. - Principal *string `location:"header" locationName:"x-amzn-principal" type:"string" required:"true"` - - // The name of the thing. - ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DetachThingPrincipalInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DetachThingPrincipalInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachThingPrincipalInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachThingPrincipalInput"} - if s.Principal == nil { - invalidParams.Add(request.NewErrParamRequired("Principal")) - } - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) - } - if s.ThingName != nil && len(*s.ThingName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the DetachThingPrincipal operation. -type DetachThingPrincipalOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DetachThingPrincipalOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DetachThingPrincipalOutput) GoString() string { - return s.String() -} - -// The input for the DisableTopicRuleRequest operation. -type DisableTopicRuleInput struct { - _ struct{} `type:"structure"` - - // The name of the rule to disable. - RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DisableTopicRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DisableTopicRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableTopicRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableTopicRuleInput"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleName != nil && len(*s.RuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DisableTopicRuleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DisableTopicRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DisableTopicRuleOutput) GoString() string { - return s.String() -} - -// Describes an action to write to a DynamoDB table. -// -// The tableName, hashKeyField, and rangeKeyField values must match the values -// used when you created the table. -// -// The hashKeyValue and rangeKeyvalue fields use a substitution template syntax. -// These templates provide data at runtime. The syntax is as follows: ${sql-expression}. -// -// You can specify any valid expression in a WHERE or SELECT clause, including -// JSON properties, comparisons, calculations, and functions. For example, the -// following field uses the third level of the topic: -// -// "hashKeyValue": "${topic(3)}" -// -// The following field uses the timestamp: -// -// "rangeKeyValue": "${timestamp()}" -type DynamoDBAction struct { - _ struct{} `type:"structure"` - - // The hash key name. - HashKeyField *string `locationName:"hashKeyField" type:"string" required:"true"` - - // The hash key value. - HashKeyValue *string `locationName:"hashKeyValue" type:"string" required:"true"` - - // The action payload. This name can be customized. - PayloadField *string `locationName:"payloadField" type:"string"` - - // The range key name. - RangeKeyField *string `locationName:"rangeKeyField" type:"string" required:"true"` - - // The range key value. - RangeKeyValue *string `locationName:"rangeKeyValue" type:"string" required:"true"` - - // The ARN of the IAM role that grants access to the DynamoDB table. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` - - // The name of the DynamoDB table. - TableName *string `locationName:"tableName" type:"string" required:"true"` -} - -// String returns the string representation -func (s DynamoDBAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DynamoDBAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DynamoDBAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DynamoDBAction"} - if s.HashKeyField == nil { - invalidParams.Add(request.NewErrParamRequired("HashKeyField")) - } - if s.HashKeyValue == nil { - invalidParams.Add(request.NewErrParamRequired("HashKeyValue")) - } - if s.RangeKeyField == nil { - invalidParams.Add(request.NewErrParamRequired("RangeKeyField")) - } - if s.RangeKeyValue == nil { - invalidParams.Add(request.NewErrParamRequired("RangeKeyValue")) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.TableName == nil { - invalidParams.Add(request.NewErrParamRequired("TableName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes an action that writes data to an Amazon Elasticsearch Service; -// domain. -type ElasticsearchAction struct { - _ struct{} `type:"structure"` - - // The endpoint of your Elasticsearch domain. - Endpoint *string `locationName:"endpoint" type:"string" required:"true"` - - // The unique identifier for the document you are storing. - Id *string `locationName:"id" type:"string" required:"true"` - - // The Elasticsearch index where you want to store your data. - Index *string `locationName:"index" type:"string" required:"true"` - - // The IAM role ARN that has access to Elasticsearch. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` - - // The type of document you are storing. - Type *string `locationName:"type" type:"string" required:"true"` -} - -// String returns the string representation -func (s ElasticsearchAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticsearchAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ElasticsearchAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ElasticsearchAction"} - if s.Endpoint == nil { - invalidParams.Add(request.NewErrParamRequired("Endpoint")) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Index == nil { - invalidParams.Add(request.NewErrParamRequired("Index")) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The input for the EnableTopicRuleRequest operation. -type EnableTopicRuleInput struct { - _ struct{} `type:"structure"` - - // The name of the topic rule to enable. - RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s EnableTopicRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnableTopicRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableTopicRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableTopicRuleInput"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleName != nil && len(*s.RuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type EnableTopicRuleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s EnableTopicRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnableTopicRuleOutput) GoString() string { - return s.String() -} - -// Describes an action that writes data to an Amazon Kinesis Firehose stream. -type FirehoseAction struct { - _ struct{} `type:"structure"` - - // The delivery stream name. - DeliveryStreamName *string `locationName:"deliveryStreamName" type:"string" required:"true"` - - // The IAM role that grants access to the Amazon Kinesis Firehost stream. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` -} - -// String returns the string representation -func (s FirehoseAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FirehoseAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *FirehoseAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FirehoseAction"} - if s.DeliveryStreamName == nil { - invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName")) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The input for the GetLoggingOptions operation. -type GetLoggingOptionsInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s GetLoggingOptionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetLoggingOptionsInput) GoString() string { - return s.String() -} - -// The output from the GetLoggingOptions operation. -type GetLoggingOptionsOutput struct { - _ struct{} `type:"structure"` - - // The logging level. - LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"` - - // The ARN of the IAM role that grants access. - RoleArn *string `locationName:"roleArn" type:"string"` -} - -// String returns the string representation -func (s GetLoggingOptionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetLoggingOptionsOutput) GoString() string { - return s.String() -} - -// The input for the GetPolicy operation. -type GetPolicyInput struct { - _ struct{} `type:"structure"` - - // The name of the policy. - PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPolicyInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the GetPolicy operation. -type GetPolicyOutput struct { - _ struct{} `type:"structure"` - - // The default policy version ID. - DefaultVersionId *string `locationName:"defaultVersionId" type:"string"` - - // The policy ARN. - PolicyArn *string `locationName:"policyArn" type:"string"` - - // The JSON document that describes the policy. - PolicyDocument *string `locationName:"policyDocument" type:"string"` - - // The policy name. - PolicyName *string `locationName:"policyName" min:"1" type:"string"` -} - -// String returns the string representation -func (s GetPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetPolicyOutput) GoString() string { - return s.String() -} - -// The input for the GetPolicyVersion operation. -type GetPolicyVersionInput struct { - _ struct{} `type:"structure"` - - // The name of the policy. - PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` - - // The policy version ID. - PolicyVersionId *string `location:"uri" locationName:"policyVersionId" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetPolicyVersionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetPolicyVersionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPolicyVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPolicyVersionInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.PolicyVersionId == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyVersionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the GetPolicyVersion operation. -type GetPolicyVersionOutput struct { - _ struct{} `type:"structure"` - - // Specifies whether the policy version is the default. - IsDefaultVersion *bool `locationName:"isDefaultVersion" type:"boolean"` - - // The policy ARN. - PolicyArn *string `locationName:"policyArn" type:"string"` - - // The JSON document that describes the policy. - PolicyDocument *string `locationName:"policyDocument" type:"string"` - - // The policy name. - PolicyName *string `locationName:"policyName" min:"1" type:"string"` - - // The policy version ID. - PolicyVersionId *string `locationName:"policyVersionId" type:"string"` -} - -// String returns the string representation -func (s GetPolicyVersionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetPolicyVersionOutput) GoString() string { - return s.String() -} - -// The input to the GetRegistrationCode operation. -type GetRegistrationCodeInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s GetRegistrationCodeInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetRegistrationCodeInput) GoString() string { - return s.String() -} - -// The output from the GetRegistrationCode operation. -type GetRegistrationCodeOutput struct { - _ struct{} `type:"structure"` - - // The CA certificate registration code. - RegistrationCode *string `locationName:"registrationCode" min:"64" type:"string"` -} - -// String returns the string representation -func (s GetRegistrationCodeOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetRegistrationCodeOutput) GoString() string { - return s.String() -} - -// The input for the GetTopicRule operation. -type GetTopicRuleInput struct { - _ struct{} `type:"structure"` - - // The name of the rule. - RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetTopicRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTopicRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTopicRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTopicRuleInput"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleName != nil && len(*s.RuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the GetTopicRule operation. -type GetTopicRuleOutput struct { - _ struct{} `type:"structure"` - - // The rule. - Rule *TopicRule `locationName:"rule" type:"structure"` - - // The rule ARN. - RuleArn *string `locationName:"ruleArn" type:"string"` -} - -// String returns the string representation -func (s GetTopicRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTopicRuleOutput) GoString() string { - return s.String() -} - -// Describes a key pair. -type KeyPair struct { - _ struct{} `type:"structure"` - - // The private key. - PrivateKey *string `min:"1" type:"string"` - - // The public key. - PublicKey *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s KeyPair) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s KeyPair) GoString() string { - return s.String() -} - -// Describes an action to write data to an Amazon Kinesis stream. -type KinesisAction struct { - _ struct{} `type:"structure"` - - // The partition key. - PartitionKey *string `locationName:"partitionKey" type:"string"` - - // The ARN of the IAM role that grants access to the Amazon Kinesis stream. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` - - // The name of the Amazon Kinesis stream. - StreamName *string `locationName:"streamName" type:"string" required:"true"` -} - -// String returns the string representation -func (s KinesisAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s KinesisAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *KinesisAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "KinesisAction"} - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes an action to invoke a Lambda function. -type LambdaAction struct { - _ struct{} `type:"structure"` - - // The ARN of the Lambda function. - FunctionArn *string `locationName:"functionArn" type:"string" required:"true"` -} - -// String returns the string representation -func (s LambdaAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s LambdaAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *LambdaAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LambdaAction"} - if s.FunctionArn == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Input for the ListCACertificates operation. -type ListCACertificatesInput struct { - _ struct{} `type:"structure"` - - // Determines the order of the results. - AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"` - - // The marker for the next set of results. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The result page size. - PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"` -} - -// String returns the string representation -func (s ListCACertificatesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListCACertificatesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListCACertificatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListCACertificatesInput"} - if s.PageSize != nil && *s.PageSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("PageSize", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the ListCACertificates operation. -type ListCACertificatesOutput struct { - _ struct{} `type:"structure"` - - // The CA certificates registered in your AWS account. - Certificates []*CACertificate `locationName:"certificates" type:"list"` - - // The current position within the list of CA certificates. - NextMarker *string `locationName:"nextMarker" type:"string"` -} - -// String returns the string representation -func (s ListCACertificatesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListCACertificatesOutput) GoString() string { - return s.String() -} - -// The input to the ListCertificatesByCA operation. -type ListCertificatesByCAInput struct { - _ struct{} `type:"structure"` - - // Specifies the order for results. If True, the results are returned in ascending - // order, based on the creation date. - AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"` - - // The ID of the CA certificate. This operation will list all registered device - // certificate that were signed by this CA certificate. - CaCertificateId *string `location:"uri" locationName:"caCertificateId" min:"64" type:"string" required:"true"` - - // The marker for the next set of results. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The result page size. - PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"` -} - -// String returns the string representation -func (s ListCertificatesByCAInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListCertificatesByCAInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListCertificatesByCAInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListCertificatesByCAInput"} - if s.CaCertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CaCertificateId")) - } - if s.CaCertificateId != nil && len(*s.CaCertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CaCertificateId", 64)) - } - if s.PageSize != nil && *s.PageSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("PageSize", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output of the ListCertificatesByCA operation. -type ListCertificatesByCAOutput struct { - _ struct{} `type:"structure"` - - // The device certificates signed by the specified CA certificate. - Certificates []*Certificate `locationName:"certificates" type:"list"` - - // The marker for the next set of results, or null if there are no additional - // results. - NextMarker *string `locationName:"nextMarker" type:"string"` -} - -// String returns the string representation -func (s ListCertificatesByCAOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListCertificatesByCAOutput) GoString() string { - return s.String() -} - -// The input for the ListCertificates operation. -type ListCertificatesInput struct { - _ struct{} `type:"structure"` - - // Specifies the order for results. If True, the results are returned in ascending - // order, based on the creation date. - AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"` - - // The marker for the next set of results. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The result page size. - PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"` -} - -// String returns the string representation -func (s ListCertificatesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListCertificatesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListCertificatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListCertificatesInput"} - if s.PageSize != nil && *s.PageSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("PageSize", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output of the ListCertificates operation. -type ListCertificatesOutput struct { - _ struct{} `type:"structure"` - - // The descriptions of the certificates. - Certificates []*Certificate `locationName:"certificates" type:"list"` - - // The marker for the next set of results, or null if there are no additional - // results. - NextMarker *string `locationName:"nextMarker" type:"string"` -} - -// String returns the string representation -func (s ListCertificatesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListCertificatesOutput) GoString() string { - return s.String() -} - -// The input for the ListPolicies operation. -type ListPoliciesInput struct { - _ struct{} `type:"structure"` - - // Specifies the order for results. If true, the results are returned in ascending - // creation order. - AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"` - - // The marker for the next set of results. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The result page size. - PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"` -} - -// String returns the string representation -func (s ListPoliciesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListPoliciesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPoliciesInput"} - if s.PageSize != nil && *s.PageSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("PageSize", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the ListPolicies operation. -type ListPoliciesOutput struct { - _ struct{} `type:"structure"` - - // The marker for the next set of results, or null if there are no additional - // results. - NextMarker *string `locationName:"nextMarker" type:"string"` - - // The descriptions of the policies. - Policies []*Policy `locationName:"policies" type:"list"` -} - -// String returns the string representation -func (s ListPoliciesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListPoliciesOutput) GoString() string { - return s.String() -} - -// The input for the ListPolicyVersions operation. -type ListPolicyVersionsInput struct { - _ struct{} `type:"structure"` - - // The policy name. - PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListPolicyVersionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListPolicyVersionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPolicyVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPolicyVersionsInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the ListPolicyVersions operation. -type ListPolicyVersionsOutput struct { - _ struct{} `type:"structure"` - - // The policy versions. - PolicyVersions []*PolicyVersion `locationName:"policyVersions" type:"list"` -} - -// String returns the string representation -func (s ListPolicyVersionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListPolicyVersionsOutput) GoString() string { - return s.String() -} - -// The input for the ListPrincipalPolicies operation. -type ListPrincipalPoliciesInput struct { - _ struct{} `type:"structure"` - - // Specifies the order for results. If true, results are returned in ascending - // creation order. - AscendingOrder *bool `location:"querystring" locationName:"isAscendingOrder" type:"boolean"` - - // The marker for the next set of results. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The result page size. - PageSize *int64 `location:"querystring" locationName:"pageSize" min:"1" type:"integer"` - - // The principal. - Principal *string `location:"header" locationName:"x-amzn-iot-principal" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListPrincipalPoliciesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListPrincipalPoliciesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPrincipalPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPrincipalPoliciesInput"} - if s.PageSize != nil && *s.PageSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("PageSize", 1)) - } - if s.Principal == nil { - invalidParams.Add(request.NewErrParamRequired("Principal")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the ListPrincipalPolicies operation. -type ListPrincipalPoliciesOutput struct { - _ struct{} `type:"structure"` - - // The marker for the next set of results, or null if there are no additional - // results. - NextMarker *string `locationName:"nextMarker" type:"string"` - - // The policies. - Policies []*Policy `locationName:"policies" type:"list"` -} - -// String returns the string representation -func (s ListPrincipalPoliciesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListPrincipalPoliciesOutput) GoString() string { - return s.String() -} - -// The input for the ListPrincipalThings operation. -type ListPrincipalThingsInput struct { - _ struct{} `type:"structure"` - - // The maximum number of principals to return. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - - // A token used to retrieve the next value. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` - - // The principal. - Principal *string `location:"header" locationName:"x-amzn-principal" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListPrincipalThingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListPrincipalThingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPrincipalThingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPrincipalThingsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.Principal == nil { - invalidParams.Add(request.NewErrParamRequired("Principal")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the ListPrincipalThings operation. -type ListPrincipalThingsOutput struct { - _ struct{} `type:"structure"` - - // A token used to retrieve the next value. - NextToken *string `locationName:"nextToken" type:"string"` - - // The things. - Things []*string `locationName:"things" type:"list"` -} - -// String returns the string representation -func (s ListPrincipalThingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListPrincipalThingsOutput) GoString() string { - return s.String() -} - -// The input for the ListThingPrincipal operation. -type ListThingPrincipalsInput struct { - _ struct{} `type:"structure"` - - // The name of the thing. - ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListThingPrincipalsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListThingPrincipalsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListThingPrincipalsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListThingPrincipalsInput"} - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) - } - if s.ThingName != nil && len(*s.ThingName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the ListThingPrincipals operation. -type ListThingPrincipalsOutput struct { - _ struct{} `type:"structure"` - - // The principals. - Principals []*string `locationName:"principals" type:"list"` -} - -// String returns the string representation -func (s ListThingPrincipalsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListThingPrincipalsOutput) GoString() string { - return s.String() -} - -// The input for the ListThings operation. -type ListThingsInput struct { - _ struct{} `type:"structure"` - - // The attribute name. - AttributeName *string `location:"querystring" locationName:"attributeName" type:"string"` - - // The attribute value. - AttributeValue *string `location:"querystring" locationName:"attributeValue" type:"string"` - - // The maximum number of results. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - - // The token for the next value. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` -} - -// String returns the string representation -func (s ListThingsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListThingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListThingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListThingsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the ListThings operation. -type ListThingsOutput struct { - _ struct{} `type:"structure"` - - // A token used to retrieve the next value. - NextToken *string `locationName:"nextToken" type:"string"` - - // The things. - Things []*ThingAttribute `locationName:"things" type:"list"` -} - -// String returns the string representation -func (s ListThingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListThingsOutput) GoString() string { - return s.String() -} - -// The input for the ListTopicRules operation. -type ListTopicRulesInput struct { - _ struct{} `type:"structure"` - - // The maximum number of results to return. - MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - - // A token used to retrieve the next value. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` - - // Specifies whether the rule is disabled. - RuleDisabled *bool `location:"querystring" locationName:"ruleDisabled" type:"boolean"` - - // The topic. - Topic *string `location:"querystring" locationName:"topic" type:"string"` -} - -// String returns the string representation -func (s ListTopicRulesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListTopicRulesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTopicRulesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTopicRulesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the ListTopicRules operation. -type ListTopicRulesOutput struct { - _ struct{} `type:"structure"` - - // A token used to retrieve the next value. - NextToken *string `locationName:"nextToken" type:"string"` - - // The rules. - Rules []*TopicRuleListItem `locationName:"rules" type:"list"` -} - -// String returns the string representation -func (s ListTopicRulesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListTopicRulesOutput) GoString() string { - return s.String() -} - -// Describes the logging options payload. -type LoggingOptionsPayload struct { - _ struct{} `type:"structure"` - - // The logging level. - LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"` - - // The ARN of the IAM role that grants access. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` -} - -// String returns the string representation -func (s LoggingOptionsPayload) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s LoggingOptionsPayload) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *LoggingOptionsPayload) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LoggingOptionsPayload"} - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes an AWS IoT policy. -type Policy struct { - _ struct{} `type:"structure"` - - // The policy ARN. - PolicyArn *string `locationName:"policyArn" type:"string"` - - // The policy name. - PolicyName *string `locationName:"policyName" min:"1" type:"string"` -} - -// String returns the string representation -func (s Policy) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Policy) GoString() string { - return s.String() -} - -// Describes a policy version. -type PolicyVersion struct { - _ struct{} `type:"structure"` - - // The date and time the policy was created. - CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"unix"` - - // Specifies whether the policy version is the default. - IsDefaultVersion *bool `locationName:"isDefaultVersion" type:"boolean"` - - // The policy version ID. - VersionId *string `locationName:"versionId" type:"string"` -} - -// String returns the string representation -func (s PolicyVersion) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PolicyVersion) GoString() string { - return s.String() -} - -// The input to the RegisterCACertificate operation. -type RegisterCACertificateInput struct { - _ struct{} `type:"structure"` - - // The CA certificate. - CaCertificate *string `locationName:"caCertificate" min:"1" type:"string" required:"true"` - - // A boolean value that specifies if the CA certificate is set to active. - SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"` - - // The private key verification certificate. - VerificationCertificate *string `locationName:"verificationCertificate" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s RegisterCACertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegisterCACertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterCACertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterCACertificateInput"} - if s.CaCertificate == nil { - invalidParams.Add(request.NewErrParamRequired("CaCertificate")) - } - if s.CaCertificate != nil && len(*s.CaCertificate) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CaCertificate", 1)) - } - if s.VerificationCertificate == nil { - invalidParams.Add(request.NewErrParamRequired("VerificationCertificate")) - } - if s.VerificationCertificate != nil && len(*s.VerificationCertificate) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VerificationCertificate", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the RegisterCACertificateResponse operation. -type RegisterCACertificateOutput struct { - _ struct{} `type:"structure"` - - // The CA certificate ARN. - CertificateArn *string `locationName:"certificateArn" type:"string"` - - // The CA certificate identifier. - CertificateId *string `locationName:"certificateId" min:"64" type:"string"` -} - -// String returns the string representation -func (s RegisterCACertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegisterCACertificateOutput) GoString() string { - return s.String() -} - -// The input to the RegisterCertificate operation. -type RegisterCertificateInput struct { - _ struct{} `type:"structure"` - - // The CA certificate used to sign the device certificate being registered. - CaCertificatePem *string `locationName:"caCertificatePem" min:"1" type:"string"` - - // The certificate data, in PEM format. - CertificatePem *string `locationName:"certificatePem" min:"1" type:"string" required:"true"` - - // A boolean value that specifies if the CA certificate is set to active. - SetAsActive *bool `location:"querystring" locationName:"setAsActive" type:"boolean"` -} - -// String returns the string representation -func (s RegisterCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegisterCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterCertificateInput"} - if s.CaCertificatePem != nil && len(*s.CaCertificatePem) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CaCertificatePem", 1)) - } - if s.CertificatePem == nil { - invalidParams.Add(request.NewErrParamRequired("CertificatePem")) - } - if s.CertificatePem != nil && len(*s.CertificatePem) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CertificatePem", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the RegisterCertificate operation. -type RegisterCertificateOutput struct { - _ struct{} `type:"structure"` - - // The certificate ARN. - CertificateArn *string `locationName:"certificateArn" type:"string"` - - // The certificate identifier. - CertificateId *string `locationName:"certificateId" min:"64" type:"string"` -} - -// String returns the string representation -func (s RegisterCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegisterCertificateOutput) GoString() string { - return s.String() -} - -// The input for the RejectCertificateTransfer operation. -type RejectCertificateTransferInput struct { - _ struct{} `type:"structure"` - - // The ID of the certificate. - CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"` - - // The reason the certificate transfer was rejected. - RejectReason *string `locationName:"rejectReason" type:"string"` -} - -// String returns the string representation -func (s RejectCertificateTransferInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RejectCertificateTransferInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RejectCertificateTransferInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RejectCertificateTransferInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RejectCertificateTransferOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s RejectCertificateTransferOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RejectCertificateTransferOutput) GoString() string { - return s.String() -} - -// The input for the ReplaceTopicRule operation. -type ReplaceTopicRuleInput struct { - _ struct{} `type:"structure" payload:"TopicRulePayload"` - - // The name of the rule. - RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"` - - // The rule payload. - TopicRulePayload *TopicRulePayload `locationName:"topicRulePayload" type:"structure" required:"true"` -} - -// String returns the string representation -func (s ReplaceTopicRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ReplaceTopicRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplaceTopicRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplaceTopicRuleInput"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleName != nil && len(*s.RuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleName", 1)) - } - if s.TopicRulePayload == nil { - invalidParams.Add(request.NewErrParamRequired("TopicRulePayload")) - } - if s.TopicRulePayload != nil { - if err := s.TopicRulePayload.Validate(); err != nil { - invalidParams.AddNested("TopicRulePayload", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ReplaceTopicRuleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ReplaceTopicRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ReplaceTopicRuleOutput) GoString() string { - return s.String() -} - -// Describes an action to republish to another topic. -type RepublishAction struct { - _ struct{} `type:"structure"` - - // The ARN of the IAM role that grants access. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` - - // The name of the MQTT topic. - Topic *string `locationName:"topic" type:"string" required:"true"` -} - -// String returns the string representation -func (s RepublishAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RepublishAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RepublishAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RepublishAction"} - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.Topic == nil { - invalidParams.Add(request.NewErrParamRequired("Topic")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes an action to write data to an Amazon S3 bucket. -type S3Action struct { - _ struct{} `type:"structure"` - - // The Amazon S3 bucket. - BucketName *string `locationName:"bucketName" type:"string" required:"true"` - - // The object key. - Key *string `locationName:"key" type:"string" required:"true"` - - // The ARN of the IAM role that grants access. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` -} - -// String returns the string representation -func (s S3Action) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s S3Action) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *S3Action) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3Action"} - if s.BucketName == nil { - invalidParams.Add(request.NewErrParamRequired("BucketName")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The input for the SetDefaultPolicyVersion operation. -type SetDefaultPolicyVersionInput struct { - _ struct{} `type:"structure"` - - // The policy name. - PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` - - // The policy version ID. - PolicyVersionId *string `location:"uri" locationName:"policyVersionId" type:"string" required:"true"` -} - -// String returns the string representation -func (s SetDefaultPolicyVersionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetDefaultPolicyVersionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetDefaultPolicyVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetDefaultPolicyVersionInput"} - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - if s.PolicyVersionId == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyVersionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type SetDefaultPolicyVersionOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s SetDefaultPolicyVersionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetDefaultPolicyVersionOutput) GoString() string { - return s.String() -} - -// The input for the SetLoggingOptions operation. -type SetLoggingOptionsInput struct { - _ struct{} `type:"structure" payload:"LoggingOptionsPayload"` - - // The logging options payload. - LoggingOptionsPayload *LoggingOptionsPayload `locationName:"loggingOptionsPayload" type:"structure" required:"true"` -} - -// String returns the string representation -func (s SetLoggingOptionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetLoggingOptionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetLoggingOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetLoggingOptionsInput"} - if s.LoggingOptionsPayload == nil { - invalidParams.Add(request.NewErrParamRequired("LoggingOptionsPayload")) - } - if s.LoggingOptionsPayload != nil { - if err := s.LoggingOptionsPayload.Validate(); err != nil { - invalidParams.AddNested("LoggingOptionsPayload", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type SetLoggingOptionsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s SetLoggingOptionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetLoggingOptionsOutput) GoString() string { - return s.String() -} - -// Describes an action to publish to an Amazon SNS topic. -type SnsAction struct { - _ struct{} `type:"structure"` - - // The message format of the message to publish. Optional. Accepted values are - // "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this - // setting to determine if the payload should be parsed and relevant platform-specific - // bits of the payload should be extracted. To read more about SNS message formats, - // see refer to their official documentation. - MessageFormat *string `locationName:"messageFormat" type:"string" enum:"MessageFormat"` - - // The ARN of the IAM role that grants access. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` - - // The ARN of the SNS topic. - TargetArn *string `locationName:"targetArn" type:"string" required:"true"` -} - -// String returns the string representation -func (s SnsAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SnsAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SnsAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SnsAction"} - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.TargetArn == nil { - invalidParams.Add(request.NewErrParamRequired("TargetArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes an action to publish data to an Amazon SQS queue. -type SqsAction struct { - _ struct{} `type:"structure"` - - // The URL of the Amazon SQS queue. - QueueUrl *string `locationName:"queueUrl" type:"string" required:"true"` - - // The ARN of the IAM role that grants access. - RoleArn *string `locationName:"roleArn" type:"string" required:"true"` - - // Specifies whether to use Base64 encoding. - UseBase64 *bool `locationName:"useBase64" type:"boolean"` -} - -// String returns the string representation -func (s SqsAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SqsAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SqsAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SqsAction"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes a thing attribute. -type ThingAttribute struct { - _ struct{} `type:"structure"` - - // The attributes. - Attributes map[string]*string `locationName:"attributes" type:"map"` - - // The name of the thing. - ThingName *string `locationName:"thingName" min:"1" type:"string"` -} - -// String returns the string representation -func (s ThingAttribute) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ThingAttribute) GoString() string { - return s.String() -} - -// Describes a rule. -type TopicRule struct { - _ struct{} `type:"structure"` - - // The actions associated with the rule. - Actions []*Action `locationName:"actions" type:"list"` - - // The version of the SQL rules engine to use when evaluating the rule. - AwsIotSqlVersion *string `locationName:"awsIotSqlVersion" type:"string"` - - // The date and time the rule was created. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` - - // The description of the rule. - Description *string `locationName:"description" type:"string"` - - // Specifies whether the rule is disabled. - RuleDisabled *bool `locationName:"ruleDisabled" type:"boolean"` - - // The name of the rule. - RuleName *string `locationName:"ruleName" min:"1" type:"string"` - - // The SQL statement used to query the topic. When using a SQL query with multiple - // lines, be sure to escape the newline characters. - Sql *string `locationName:"sql" type:"string"` -} - -// String returns the string representation -func (s TopicRule) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TopicRule) GoString() string { - return s.String() -} - -// Describes a rule. -type TopicRuleListItem struct { - _ struct{} `type:"structure"` - - // The date and time the rule was created. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unix"` - - // The rule ARN. - RuleArn *string `locationName:"ruleArn" type:"string"` - - // Specifies whether the rule is disabled. - RuleDisabled *bool `locationName:"ruleDisabled" type:"boolean"` - - // The name of the rule. - RuleName *string `locationName:"ruleName" min:"1" type:"string"` - - // The pattern for the topic names that apply. - TopicPattern *string `locationName:"topicPattern" type:"string"` -} - -// String returns the string representation -func (s TopicRuleListItem) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TopicRuleListItem) GoString() string { - return s.String() -} - -// Describes a rule. -type TopicRulePayload struct { - _ struct{} `type:"structure"` - - // The actions associated with the rule. - Actions []*Action `locationName:"actions" type:"list" required:"true"` - - // The version of the SQL rules engine to use when evaluating the rule. - AwsIotSqlVersion *string `locationName:"awsIotSqlVersion" type:"string"` - - // The description of the rule. - Description *string `locationName:"description" type:"string"` - - // Specifies whether the rule is disabled. - RuleDisabled *bool `locationName:"ruleDisabled" type:"boolean"` - - // The SQL statement used to query the topic. For more information, see AWS - // IoT SQL Reference (http://docs.aws.amazon.com/iot/latest/developerguide/iot-rules.html#aws-iot-sql-reference) - // in the AWS IoT Developer Guide. - Sql *string `locationName:"sql" type:"string" required:"true"` -} - -// String returns the string representation -func (s TopicRulePayload) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TopicRulePayload) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TopicRulePayload) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TopicRulePayload"} - if s.Actions == nil { - invalidParams.Add(request.NewErrParamRequired("Actions")) - } - if s.Sql == nil { - invalidParams.Add(request.NewErrParamRequired("Sql")) - } - if s.Actions != nil { - for i, v := range s.Actions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The input for the TransferCertificate operation. -type TransferCertificateInput struct { - _ struct{} `type:"structure"` - - // The ID of the certificate. - CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"` - - // The AWS account. - TargetAwsAccount *string `location:"querystring" locationName:"targetAwsAccount" type:"string" required:"true"` - - // The transfer message. - TransferMessage *string `locationName:"transferMessage" type:"string"` -} - -// String returns the string representation -func (s TransferCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TransferCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TransferCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TransferCertificateInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64)) - } - if s.TargetAwsAccount == nil { - invalidParams.Add(request.NewErrParamRequired("TargetAwsAccount")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the TransferCertificate operation. -type TransferCertificateOutput struct { - _ struct{} `type:"structure"` - - // The ARN of the certificate. - TransferredCertificateArn *string `locationName:"transferredCertificateArn" type:"string"` -} - -// String returns the string representation -func (s TransferCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TransferCertificateOutput) GoString() string { - return s.String() -} - -// Data used to transfer a certificate to an AWS account. -type TransferData struct { - _ struct{} `type:"structure"` - - // The date the transfer was accepted. - AcceptDate *time.Time `locationName:"acceptDate" type:"timestamp" timestampFormat:"unix"` - - // The date the transfer was rejected. - RejectDate *time.Time `locationName:"rejectDate" type:"timestamp" timestampFormat:"unix"` - - // The reason why the transfer was rejected. - RejectReason *string `locationName:"rejectReason" type:"string"` - - // The date the transfer took place. - TransferDate *time.Time `locationName:"transferDate" type:"timestamp" timestampFormat:"unix"` - - // The transfer message. - TransferMessage *string `locationName:"transferMessage" type:"string"` -} - -// String returns the string representation -func (s TransferData) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TransferData) GoString() string { - return s.String() -} - -// The input to the UpdateCACertificate operation. -type UpdateCACertificateInput struct { - _ struct{} `type:"structure"` - - // The CA certificate identifier. - CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"` - - // The updated status of the CA certificate. - NewStatus *string `location:"querystring" locationName:"newStatus" type:"string" required:"true" enum:"CACertificateStatus"` -} - -// String returns the string representation -func (s UpdateCACertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateCACertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateCACertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateCACertificateInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64)) - } - if s.NewStatus == nil { - invalidParams.Add(request.NewErrParamRequired("NewStatus")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateCACertificateOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UpdateCACertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateCACertificateOutput) GoString() string { - return s.String() -} - -// The input for the UpdateCertificate operation. -type UpdateCertificateInput struct { - _ struct{} `type:"structure"` - - // The ID of the certificate. - CertificateId *string `location:"uri" locationName:"certificateId" min:"64" type:"string" required:"true"` - - // The new status. - // - // Note: Setting the status to PENDING_TRANSFER will result in an exception - // being thrown. PENDING_TRANSFER is a status used internally by AWS IoT. It - // is not intended for developer use. - NewStatus *string `location:"querystring" locationName:"newStatus" type:"string" required:"true" enum:"CertificateStatus"` -} - -// String returns the string representation -func (s UpdateCertificateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateCertificateInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateCertificateInput"} - if s.CertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateId")) - } - if s.CertificateId != nil && len(*s.CertificateId) < 64 { - invalidParams.Add(request.NewErrParamMinLen("CertificateId", 64)) - } - if s.NewStatus == nil { - invalidParams.Add(request.NewErrParamRequired("NewStatus")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateCertificateOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UpdateCertificateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateCertificateOutput) GoString() string { - return s.String() -} - -// The input for the UpdateThing operation. -type UpdateThingInput struct { - _ struct{} `type:"structure"` - - // The attribute payload, a JSON string containing up to three key-value pairs - // (for example, {\"attributes\":{\"string1\":\"string2\"}}). - AttributePayload *AttributePayload `locationName:"attributePayload" type:"structure" required:"true"` - - // The thing name. - ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateThingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateThingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateThingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateThingInput"} - if s.AttributePayload == nil { - invalidParams.Add(request.NewErrParamRequired("AttributePayload")) - } - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) - } - if s.ThingName != nil && len(*s.ThingName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the UpdateThing operation. -type UpdateThingOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UpdateThingOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateThingOutput) GoString() string { - return s.String() -} - -const ( - // @enum CACertificateStatus - CACertificateStatusActive = "ACTIVE" - // @enum CACertificateStatus - CACertificateStatusInactive = "INACTIVE" -) - -const ( - // @enum CertificateStatus - CertificateStatusActive = "ACTIVE" - // @enum CertificateStatus - CertificateStatusInactive = "INACTIVE" - // @enum CertificateStatus - CertificateStatusRevoked = "REVOKED" - // @enum CertificateStatus - CertificateStatusPendingTransfer = "PENDING_TRANSFER" - // @enum CertificateStatus - CertificateStatusRegisterInactive = "REGISTER_INACTIVE" -) - -const ( - // @enum LogLevel - LogLevelDebug = "DEBUG" - // @enum LogLevel - LogLevelInfo = "INFO" - // @enum LogLevel - LogLevelError = "ERROR" - // @enum LogLevel - LogLevelWarn = "WARN" - // @enum LogLevel - LogLevelDisabled = "DISABLED" -) - -const ( - // @enum MessageFormat - MessageFormatRaw = "RAW" - // @enum MessageFormat - MessageFormatJson = "JSON" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go deleted file mode 100644 index d02817fc7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/iot/examples_test.go +++ /dev/null @@ -1,1158 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package iot_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/iot" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleIoT_AcceptCertificateTransfer() { - svc := iot.New(session.New()) - - params := &iot.AcceptCertificateTransferInput{ - CertificateId: aws.String("CertificateId"), // Required - SetAsActive: aws.Bool(true), - } - resp, err := svc.AcceptCertificateTransfer(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_AttachPrincipalPolicy() { - svc := iot.New(session.New()) - - params := &iot.AttachPrincipalPolicyInput{ - PolicyName: aws.String("PolicyName"), // Required - Principal: aws.String("Principal"), // Required - } - resp, err := svc.AttachPrincipalPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_AttachThingPrincipal() { - svc := iot.New(session.New()) - - params := &iot.AttachThingPrincipalInput{ - Principal: aws.String("Principal"), // Required - ThingName: aws.String("ThingName"), // Required - } - resp, err := svc.AttachThingPrincipal(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_CancelCertificateTransfer() { - svc := iot.New(session.New()) - - params := &iot.CancelCertificateTransferInput{ - CertificateId: aws.String("CertificateId"), // Required - } - resp, err := svc.CancelCertificateTransfer(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_CreateCertificateFromCsr() { - svc := iot.New(session.New()) - - params := &iot.CreateCertificateFromCsrInput{ - CertificateSigningRequest: aws.String("CertificateSigningRequest"), // Required - SetAsActive: aws.Bool(true), - } - resp, err := svc.CreateCertificateFromCsr(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_CreateKeysAndCertificate() { - svc := iot.New(session.New()) - - params := &iot.CreateKeysAndCertificateInput{ - SetAsActive: aws.Bool(true), - } - resp, err := svc.CreateKeysAndCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_CreatePolicy() { - svc := iot.New(session.New()) - - params := &iot.CreatePolicyInput{ - PolicyDocument: aws.String("PolicyDocument"), // Required - PolicyName: aws.String("PolicyName"), // Required - } - resp, err := svc.CreatePolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_CreatePolicyVersion() { - svc := iot.New(session.New()) - - params := &iot.CreatePolicyVersionInput{ - PolicyDocument: aws.String("PolicyDocument"), // Required - PolicyName: aws.String("PolicyName"), // Required - SetAsDefault: aws.Bool(true), - } - resp, err := svc.CreatePolicyVersion(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_CreateThing() { - svc := iot.New(session.New()) - - params := &iot.CreateThingInput{ - ThingName: aws.String("ThingName"), // Required - AttributePayload: &iot.AttributePayload{ - Attributes: map[string]*string{ - "Key": aws.String("AttributeValue"), // Required - // More values... - }, - }, - } - resp, err := svc.CreateThing(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_CreateTopicRule() { - svc := iot.New(session.New()) - - params := &iot.CreateTopicRuleInput{ - RuleName: aws.String("RuleName"), // Required - TopicRulePayload: &iot.TopicRulePayload{ // Required - Actions: []*iot.Action{ // Required - { // Required - CloudwatchAlarm: &iot.CloudwatchAlarmAction{ - AlarmName: aws.String("AlarmName"), // Required - RoleArn: aws.String("AwsArn"), // Required - StateReason: aws.String("StateReason"), // Required - StateValue: aws.String("StateValue"), // Required - }, - CloudwatchMetric: &iot.CloudwatchMetricAction{ - MetricName: aws.String("MetricName"), // Required - MetricNamespace: aws.String("MetricNamespace"), // Required - MetricUnit: aws.String("MetricUnit"), // Required - MetricValue: aws.String("MetricValue"), // Required - RoleArn: aws.String("AwsArn"), // Required - MetricTimestamp: aws.String("MetricTimestamp"), - }, - DynamoDB: &iot.DynamoDBAction{ - HashKeyField: aws.String("HashKeyField"), // Required - HashKeyValue: aws.String("HashKeyValue"), // Required - RangeKeyField: aws.String("RangeKeyField"), // Required - RangeKeyValue: aws.String("RangeKeyValue"), // Required - RoleArn: aws.String("AwsArn"), // Required - TableName: aws.String("TableName"), // Required - PayloadField: aws.String("PayloadField"), - }, - Elasticsearch: &iot.ElasticsearchAction{ - Endpoint: aws.String("ElasticsearchEndpoint"), // Required - Id: aws.String("ElasticsearchId"), // Required - Index: aws.String("ElasticsearchIndex"), // Required - RoleArn: aws.String("AwsArn"), // Required - Type: aws.String("ElasticsearchType"), // Required - }, - Firehose: &iot.FirehoseAction{ - DeliveryStreamName: aws.String("DeliveryStreamName"), // Required - RoleArn: aws.String("AwsArn"), // Required - }, - Kinesis: &iot.KinesisAction{ - RoleArn: aws.String("AwsArn"), // Required - StreamName: aws.String("StreamName"), // Required - PartitionKey: aws.String("PartitionKey"), - }, - Lambda: &iot.LambdaAction{ - FunctionArn: aws.String("FunctionArn"), // Required - }, - Republish: &iot.RepublishAction{ - RoleArn: aws.String("AwsArn"), // Required - Topic: aws.String("TopicPattern"), // Required - }, - S3: &iot.S3Action{ - BucketName: aws.String("BucketName"), // Required - Key: aws.String("Key"), // Required - RoleArn: aws.String("AwsArn"), // Required - }, - Sns: &iot.SnsAction{ - RoleArn: aws.String("AwsArn"), // Required - TargetArn: aws.String("AwsArn"), // Required - MessageFormat: aws.String("MessageFormat"), - }, - Sqs: &iot.SqsAction{ - QueueUrl: aws.String("QueueUrl"), // Required - RoleArn: aws.String("AwsArn"), // Required - UseBase64: aws.Bool(true), - }, - }, - // More values... - }, - Sql: aws.String("SQL"), // Required - AwsIotSqlVersion: aws.String("AwsIotSqlVersion"), - Description: aws.String("Description"), - RuleDisabled: aws.Bool(true), - }, - } - resp, err := svc.CreateTopicRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DeleteCACertificate() { - svc := iot.New(session.New()) - - params := &iot.DeleteCACertificateInput{ - CertificateId: aws.String("CertificateId"), // Required - } - resp, err := svc.DeleteCACertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DeleteCertificate() { - svc := iot.New(session.New()) - - params := &iot.DeleteCertificateInput{ - CertificateId: aws.String("CertificateId"), // Required - } - resp, err := svc.DeleteCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DeletePolicy() { - svc := iot.New(session.New()) - - params := &iot.DeletePolicyInput{ - PolicyName: aws.String("PolicyName"), // Required - } - resp, err := svc.DeletePolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DeletePolicyVersion() { - svc := iot.New(session.New()) - - params := &iot.DeletePolicyVersionInput{ - PolicyName: aws.String("PolicyName"), // Required - PolicyVersionId: aws.String("PolicyVersionId"), // Required - } - resp, err := svc.DeletePolicyVersion(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DeleteRegistrationCode() { - svc := iot.New(session.New()) - - var params *iot.DeleteRegistrationCodeInput - resp, err := svc.DeleteRegistrationCode(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DeleteThing() { - svc := iot.New(session.New()) - - params := &iot.DeleteThingInput{ - ThingName: aws.String("ThingName"), // Required - } - resp, err := svc.DeleteThing(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DeleteTopicRule() { - svc := iot.New(session.New()) - - params := &iot.DeleteTopicRuleInput{ - RuleName: aws.String("RuleName"), // Required - } - resp, err := svc.DeleteTopicRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DescribeCACertificate() { - svc := iot.New(session.New()) - - params := &iot.DescribeCACertificateInput{ - CertificateId: aws.String("CertificateId"), // Required - } - resp, err := svc.DescribeCACertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DescribeCertificate() { - svc := iot.New(session.New()) - - params := &iot.DescribeCertificateInput{ - CertificateId: aws.String("CertificateId"), // Required - } - resp, err := svc.DescribeCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DescribeEndpoint() { - svc := iot.New(session.New()) - - var params *iot.DescribeEndpointInput - resp, err := svc.DescribeEndpoint(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DescribeThing() { - svc := iot.New(session.New()) - - params := &iot.DescribeThingInput{ - ThingName: aws.String("ThingName"), // Required - } - resp, err := svc.DescribeThing(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DetachPrincipalPolicy() { - svc := iot.New(session.New()) - - params := &iot.DetachPrincipalPolicyInput{ - PolicyName: aws.String("PolicyName"), // Required - Principal: aws.String("Principal"), // Required - } - resp, err := svc.DetachPrincipalPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DetachThingPrincipal() { - svc := iot.New(session.New()) - - params := &iot.DetachThingPrincipalInput{ - Principal: aws.String("Principal"), // Required - ThingName: aws.String("ThingName"), // Required - } - resp, err := svc.DetachThingPrincipal(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_DisableTopicRule() { - svc := iot.New(session.New()) - - params := &iot.DisableTopicRuleInput{ - RuleName: aws.String("RuleName"), // Required - } - resp, err := svc.DisableTopicRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_EnableTopicRule() { - svc := iot.New(session.New()) - - params := &iot.EnableTopicRuleInput{ - RuleName: aws.String("RuleName"), // Required - } - resp, err := svc.EnableTopicRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_GetLoggingOptions() { - svc := iot.New(session.New()) - - var params *iot.GetLoggingOptionsInput - resp, err := svc.GetLoggingOptions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_GetPolicy() { - svc := iot.New(session.New()) - - params := &iot.GetPolicyInput{ - PolicyName: aws.String("PolicyName"), // Required - } - resp, err := svc.GetPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_GetPolicyVersion() { - svc := iot.New(session.New()) - - params := &iot.GetPolicyVersionInput{ - PolicyName: aws.String("PolicyName"), // Required - PolicyVersionId: aws.String("PolicyVersionId"), // Required - } - resp, err := svc.GetPolicyVersion(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_GetRegistrationCode() { - svc := iot.New(session.New()) - - var params *iot.GetRegistrationCodeInput - resp, err := svc.GetRegistrationCode(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_GetTopicRule() { - svc := iot.New(session.New()) - - params := &iot.GetTopicRuleInput{ - RuleName: aws.String("RuleName"), // Required - } - resp, err := svc.GetTopicRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ListCACertificates() { - svc := iot.New(session.New()) - - params := &iot.ListCACertificatesInput{ - AscendingOrder: aws.Bool(true), - Marker: aws.String("Marker"), - PageSize: aws.Int64(1), - } - resp, err := svc.ListCACertificates(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ListCertificates() { - svc := iot.New(session.New()) - - params := &iot.ListCertificatesInput{ - AscendingOrder: aws.Bool(true), - Marker: aws.String("Marker"), - PageSize: aws.Int64(1), - } - resp, err := svc.ListCertificates(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ListCertificatesByCA() { - svc := iot.New(session.New()) - - params := &iot.ListCertificatesByCAInput{ - CaCertificateId: aws.String("CertificateId"), // Required - AscendingOrder: aws.Bool(true), - Marker: aws.String("Marker"), - PageSize: aws.Int64(1), - } - resp, err := svc.ListCertificatesByCA(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ListPolicies() { - svc := iot.New(session.New()) - - params := &iot.ListPoliciesInput{ - AscendingOrder: aws.Bool(true), - Marker: aws.String("Marker"), - PageSize: aws.Int64(1), - } - resp, err := svc.ListPolicies(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ListPolicyVersions() { - svc := iot.New(session.New()) - - params := &iot.ListPolicyVersionsInput{ - PolicyName: aws.String("PolicyName"), // Required - } - resp, err := svc.ListPolicyVersions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ListPrincipalPolicies() { - svc := iot.New(session.New()) - - params := &iot.ListPrincipalPoliciesInput{ - Principal: aws.String("Principal"), // Required - AscendingOrder: aws.Bool(true), - Marker: aws.String("Marker"), - PageSize: aws.Int64(1), - } - resp, err := svc.ListPrincipalPolicies(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ListPrincipalThings() { - svc := iot.New(session.New()) - - params := &iot.ListPrincipalThingsInput{ - Principal: aws.String("Principal"), // Required - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListPrincipalThings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ListThingPrincipals() { - svc := iot.New(session.New()) - - params := &iot.ListThingPrincipalsInput{ - ThingName: aws.String("ThingName"), // Required - } - resp, err := svc.ListThingPrincipals(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ListThings() { - svc := iot.New(session.New()) - - params := &iot.ListThingsInput{ - AttributeName: aws.String("AttributeName"), - AttributeValue: aws.String("AttributeValue"), - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListThings(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ListTopicRules() { - svc := iot.New(session.New()) - - params := &iot.ListTopicRulesInput{ - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - RuleDisabled: aws.Bool(true), - Topic: aws.String("Topic"), - } - resp, err := svc.ListTopicRules(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_RegisterCACertificate() { - svc := iot.New(session.New()) - - params := &iot.RegisterCACertificateInput{ - CaCertificate: aws.String("CertificatePem"), // Required - VerificationCertificate: aws.String("CertificatePem"), // Required - SetAsActive: aws.Bool(true), - } - resp, err := svc.RegisterCACertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_RegisterCertificate() { - svc := iot.New(session.New()) - - params := &iot.RegisterCertificateInput{ - CertificatePem: aws.String("CertificatePem"), // Required - CaCertificatePem: aws.String("CertificatePem"), - SetAsActive: aws.Bool(true), - } - resp, err := svc.RegisterCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_RejectCertificateTransfer() { - svc := iot.New(session.New()) - - params := &iot.RejectCertificateTransferInput{ - CertificateId: aws.String("CertificateId"), // Required - RejectReason: aws.String("Message"), - } - resp, err := svc.RejectCertificateTransfer(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_ReplaceTopicRule() { - svc := iot.New(session.New()) - - params := &iot.ReplaceTopicRuleInput{ - RuleName: aws.String("RuleName"), // Required - TopicRulePayload: &iot.TopicRulePayload{ // Required - Actions: []*iot.Action{ // Required - { // Required - CloudwatchAlarm: &iot.CloudwatchAlarmAction{ - AlarmName: aws.String("AlarmName"), // Required - RoleArn: aws.String("AwsArn"), // Required - StateReason: aws.String("StateReason"), // Required - StateValue: aws.String("StateValue"), // Required - }, - CloudwatchMetric: &iot.CloudwatchMetricAction{ - MetricName: aws.String("MetricName"), // Required - MetricNamespace: aws.String("MetricNamespace"), // Required - MetricUnit: aws.String("MetricUnit"), // Required - MetricValue: aws.String("MetricValue"), // Required - RoleArn: aws.String("AwsArn"), // Required - MetricTimestamp: aws.String("MetricTimestamp"), - }, - DynamoDB: &iot.DynamoDBAction{ - HashKeyField: aws.String("HashKeyField"), // Required - HashKeyValue: aws.String("HashKeyValue"), // Required - RangeKeyField: aws.String("RangeKeyField"), // Required - RangeKeyValue: aws.String("RangeKeyValue"), // Required - RoleArn: aws.String("AwsArn"), // Required - TableName: aws.String("TableName"), // Required - PayloadField: aws.String("PayloadField"), - }, - Elasticsearch: &iot.ElasticsearchAction{ - Endpoint: aws.String("ElasticsearchEndpoint"), // Required - Id: aws.String("ElasticsearchId"), // Required - Index: aws.String("ElasticsearchIndex"), // Required - RoleArn: aws.String("AwsArn"), // Required - Type: aws.String("ElasticsearchType"), // Required - }, - Firehose: &iot.FirehoseAction{ - DeliveryStreamName: aws.String("DeliveryStreamName"), // Required - RoleArn: aws.String("AwsArn"), // Required - }, - Kinesis: &iot.KinesisAction{ - RoleArn: aws.String("AwsArn"), // Required - StreamName: aws.String("StreamName"), // Required - PartitionKey: aws.String("PartitionKey"), - }, - Lambda: &iot.LambdaAction{ - FunctionArn: aws.String("FunctionArn"), // Required - }, - Republish: &iot.RepublishAction{ - RoleArn: aws.String("AwsArn"), // Required - Topic: aws.String("TopicPattern"), // Required - }, - S3: &iot.S3Action{ - BucketName: aws.String("BucketName"), // Required - Key: aws.String("Key"), // Required - RoleArn: aws.String("AwsArn"), // Required - }, - Sns: &iot.SnsAction{ - RoleArn: aws.String("AwsArn"), // Required - TargetArn: aws.String("AwsArn"), // Required - MessageFormat: aws.String("MessageFormat"), - }, - Sqs: &iot.SqsAction{ - QueueUrl: aws.String("QueueUrl"), // Required - RoleArn: aws.String("AwsArn"), // Required - UseBase64: aws.Bool(true), - }, - }, - // More values... - }, - Sql: aws.String("SQL"), // Required - AwsIotSqlVersion: aws.String("AwsIotSqlVersion"), - Description: aws.String("Description"), - RuleDisabled: aws.Bool(true), - }, - } - resp, err := svc.ReplaceTopicRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_SetDefaultPolicyVersion() { - svc := iot.New(session.New()) - - params := &iot.SetDefaultPolicyVersionInput{ - PolicyName: aws.String("PolicyName"), // Required - PolicyVersionId: aws.String("PolicyVersionId"), // Required - } - resp, err := svc.SetDefaultPolicyVersion(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_SetLoggingOptions() { - svc := iot.New(session.New()) - - params := &iot.SetLoggingOptionsInput{ - LoggingOptionsPayload: &iot.LoggingOptionsPayload{ // Required - RoleArn: aws.String("AwsArn"), // Required - LogLevel: aws.String("LogLevel"), - }, - } - resp, err := svc.SetLoggingOptions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_TransferCertificate() { - svc := iot.New(session.New()) - - params := &iot.TransferCertificateInput{ - CertificateId: aws.String("CertificateId"), // Required - TargetAwsAccount: aws.String("AwsAccountId"), // Required - TransferMessage: aws.String("Message"), - } - resp, err := svc.TransferCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_UpdateCACertificate() { - svc := iot.New(session.New()) - - params := &iot.UpdateCACertificateInput{ - CertificateId: aws.String("CertificateId"), // Required - NewStatus: aws.String("CACertificateStatus"), // Required - } - resp, err := svc.UpdateCACertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_UpdateCertificate() { - svc := iot.New(session.New()) - - params := &iot.UpdateCertificateInput{ - CertificateId: aws.String("CertificateId"), // Required - NewStatus: aws.String("CertificateStatus"), // Required - } - resp, err := svc.UpdateCertificate(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoT_UpdateThing() { - svc := iot.New(session.New()) - - params := &iot.UpdateThingInput{ - AttributePayload: &iot.AttributePayload{ // Required - Attributes: map[string]*string{ - "Key": aws.String("AttributeValue"), // Required - // More values... - }, - }, - ThingName: aws.String("ThingName"), // Required - } - resp, err := svc.UpdateThing(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go deleted file mode 100644 index 3863c1bf8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface.go +++ /dev/null @@ -1,214 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package iotiface provides an interface for the AWS IoT. -package iotiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/iot" -) - -// IoTAPI is the interface type for iot.IoT. -type IoTAPI interface { - AcceptCertificateTransferRequest(*iot.AcceptCertificateTransferInput) (*request.Request, *iot.AcceptCertificateTransferOutput) - - AcceptCertificateTransfer(*iot.AcceptCertificateTransferInput) (*iot.AcceptCertificateTransferOutput, error) - - AttachPrincipalPolicyRequest(*iot.AttachPrincipalPolicyInput) (*request.Request, *iot.AttachPrincipalPolicyOutput) - - AttachPrincipalPolicy(*iot.AttachPrincipalPolicyInput) (*iot.AttachPrincipalPolicyOutput, error) - - AttachThingPrincipalRequest(*iot.AttachThingPrincipalInput) (*request.Request, *iot.AttachThingPrincipalOutput) - - AttachThingPrincipal(*iot.AttachThingPrincipalInput) (*iot.AttachThingPrincipalOutput, error) - - CancelCertificateTransferRequest(*iot.CancelCertificateTransferInput) (*request.Request, *iot.CancelCertificateTransferOutput) - - CancelCertificateTransfer(*iot.CancelCertificateTransferInput) (*iot.CancelCertificateTransferOutput, error) - - CreateCertificateFromCsrRequest(*iot.CreateCertificateFromCsrInput) (*request.Request, *iot.CreateCertificateFromCsrOutput) - - CreateCertificateFromCsr(*iot.CreateCertificateFromCsrInput) (*iot.CreateCertificateFromCsrOutput, error) - - CreateKeysAndCertificateRequest(*iot.CreateKeysAndCertificateInput) (*request.Request, *iot.CreateKeysAndCertificateOutput) - - CreateKeysAndCertificate(*iot.CreateKeysAndCertificateInput) (*iot.CreateKeysAndCertificateOutput, error) - - CreatePolicyRequest(*iot.CreatePolicyInput) (*request.Request, *iot.CreatePolicyOutput) - - CreatePolicy(*iot.CreatePolicyInput) (*iot.CreatePolicyOutput, error) - - CreatePolicyVersionRequest(*iot.CreatePolicyVersionInput) (*request.Request, *iot.CreatePolicyVersionOutput) - - CreatePolicyVersion(*iot.CreatePolicyVersionInput) (*iot.CreatePolicyVersionOutput, error) - - CreateThingRequest(*iot.CreateThingInput) (*request.Request, *iot.CreateThingOutput) - - CreateThing(*iot.CreateThingInput) (*iot.CreateThingOutput, error) - - CreateTopicRuleRequest(*iot.CreateTopicRuleInput) (*request.Request, *iot.CreateTopicRuleOutput) - - CreateTopicRule(*iot.CreateTopicRuleInput) (*iot.CreateTopicRuleOutput, error) - - DeleteCACertificateRequest(*iot.DeleteCACertificateInput) (*request.Request, *iot.DeleteCACertificateOutput) - - DeleteCACertificate(*iot.DeleteCACertificateInput) (*iot.DeleteCACertificateOutput, error) - - DeleteCertificateRequest(*iot.DeleteCertificateInput) (*request.Request, *iot.DeleteCertificateOutput) - - DeleteCertificate(*iot.DeleteCertificateInput) (*iot.DeleteCertificateOutput, error) - - DeletePolicyRequest(*iot.DeletePolicyInput) (*request.Request, *iot.DeletePolicyOutput) - - DeletePolicy(*iot.DeletePolicyInput) (*iot.DeletePolicyOutput, error) - - DeletePolicyVersionRequest(*iot.DeletePolicyVersionInput) (*request.Request, *iot.DeletePolicyVersionOutput) - - DeletePolicyVersion(*iot.DeletePolicyVersionInput) (*iot.DeletePolicyVersionOutput, error) - - DeleteRegistrationCodeRequest(*iot.DeleteRegistrationCodeInput) (*request.Request, *iot.DeleteRegistrationCodeOutput) - - DeleteRegistrationCode(*iot.DeleteRegistrationCodeInput) (*iot.DeleteRegistrationCodeOutput, error) - - DeleteThingRequest(*iot.DeleteThingInput) (*request.Request, *iot.DeleteThingOutput) - - DeleteThing(*iot.DeleteThingInput) (*iot.DeleteThingOutput, error) - - DeleteTopicRuleRequest(*iot.DeleteTopicRuleInput) (*request.Request, *iot.DeleteTopicRuleOutput) - - DeleteTopicRule(*iot.DeleteTopicRuleInput) (*iot.DeleteTopicRuleOutput, error) - - DescribeCACertificateRequest(*iot.DescribeCACertificateInput) (*request.Request, *iot.DescribeCACertificateOutput) - - DescribeCACertificate(*iot.DescribeCACertificateInput) (*iot.DescribeCACertificateOutput, error) - - DescribeCertificateRequest(*iot.DescribeCertificateInput) (*request.Request, *iot.DescribeCertificateOutput) - - DescribeCertificate(*iot.DescribeCertificateInput) (*iot.DescribeCertificateOutput, error) - - DescribeEndpointRequest(*iot.DescribeEndpointInput) (*request.Request, *iot.DescribeEndpointOutput) - - DescribeEndpoint(*iot.DescribeEndpointInput) (*iot.DescribeEndpointOutput, error) - - DescribeThingRequest(*iot.DescribeThingInput) (*request.Request, *iot.DescribeThingOutput) - - DescribeThing(*iot.DescribeThingInput) (*iot.DescribeThingOutput, error) - - DetachPrincipalPolicyRequest(*iot.DetachPrincipalPolicyInput) (*request.Request, *iot.DetachPrincipalPolicyOutput) - - DetachPrincipalPolicy(*iot.DetachPrincipalPolicyInput) (*iot.DetachPrincipalPolicyOutput, error) - - DetachThingPrincipalRequest(*iot.DetachThingPrincipalInput) (*request.Request, *iot.DetachThingPrincipalOutput) - - DetachThingPrincipal(*iot.DetachThingPrincipalInput) (*iot.DetachThingPrincipalOutput, error) - - DisableTopicRuleRequest(*iot.DisableTopicRuleInput) (*request.Request, *iot.DisableTopicRuleOutput) - - DisableTopicRule(*iot.DisableTopicRuleInput) (*iot.DisableTopicRuleOutput, error) - - EnableTopicRuleRequest(*iot.EnableTopicRuleInput) (*request.Request, *iot.EnableTopicRuleOutput) - - EnableTopicRule(*iot.EnableTopicRuleInput) (*iot.EnableTopicRuleOutput, error) - - GetLoggingOptionsRequest(*iot.GetLoggingOptionsInput) (*request.Request, *iot.GetLoggingOptionsOutput) - - GetLoggingOptions(*iot.GetLoggingOptionsInput) (*iot.GetLoggingOptionsOutput, error) - - GetPolicyRequest(*iot.GetPolicyInput) (*request.Request, *iot.GetPolicyOutput) - - GetPolicy(*iot.GetPolicyInput) (*iot.GetPolicyOutput, error) - - GetPolicyVersionRequest(*iot.GetPolicyVersionInput) (*request.Request, *iot.GetPolicyVersionOutput) - - GetPolicyVersion(*iot.GetPolicyVersionInput) (*iot.GetPolicyVersionOutput, error) - - GetRegistrationCodeRequest(*iot.GetRegistrationCodeInput) (*request.Request, *iot.GetRegistrationCodeOutput) - - GetRegistrationCode(*iot.GetRegistrationCodeInput) (*iot.GetRegistrationCodeOutput, error) - - GetTopicRuleRequest(*iot.GetTopicRuleInput) (*request.Request, *iot.GetTopicRuleOutput) - - GetTopicRule(*iot.GetTopicRuleInput) (*iot.GetTopicRuleOutput, error) - - ListCACertificatesRequest(*iot.ListCACertificatesInput) (*request.Request, *iot.ListCACertificatesOutput) - - ListCACertificates(*iot.ListCACertificatesInput) (*iot.ListCACertificatesOutput, error) - - ListCertificatesRequest(*iot.ListCertificatesInput) (*request.Request, *iot.ListCertificatesOutput) - - ListCertificates(*iot.ListCertificatesInput) (*iot.ListCertificatesOutput, error) - - ListCertificatesByCARequest(*iot.ListCertificatesByCAInput) (*request.Request, *iot.ListCertificatesByCAOutput) - - ListCertificatesByCA(*iot.ListCertificatesByCAInput) (*iot.ListCertificatesByCAOutput, error) - - ListPoliciesRequest(*iot.ListPoliciesInput) (*request.Request, *iot.ListPoliciesOutput) - - ListPolicies(*iot.ListPoliciesInput) (*iot.ListPoliciesOutput, error) - - ListPolicyVersionsRequest(*iot.ListPolicyVersionsInput) (*request.Request, *iot.ListPolicyVersionsOutput) - - ListPolicyVersions(*iot.ListPolicyVersionsInput) (*iot.ListPolicyVersionsOutput, error) - - ListPrincipalPoliciesRequest(*iot.ListPrincipalPoliciesInput) (*request.Request, *iot.ListPrincipalPoliciesOutput) - - ListPrincipalPolicies(*iot.ListPrincipalPoliciesInput) (*iot.ListPrincipalPoliciesOutput, error) - - ListPrincipalThingsRequest(*iot.ListPrincipalThingsInput) (*request.Request, *iot.ListPrincipalThingsOutput) - - ListPrincipalThings(*iot.ListPrincipalThingsInput) (*iot.ListPrincipalThingsOutput, error) - - ListThingPrincipalsRequest(*iot.ListThingPrincipalsInput) (*request.Request, *iot.ListThingPrincipalsOutput) - - ListThingPrincipals(*iot.ListThingPrincipalsInput) (*iot.ListThingPrincipalsOutput, error) - - ListThingsRequest(*iot.ListThingsInput) (*request.Request, *iot.ListThingsOutput) - - ListThings(*iot.ListThingsInput) (*iot.ListThingsOutput, error) - - ListTopicRulesRequest(*iot.ListTopicRulesInput) (*request.Request, *iot.ListTopicRulesOutput) - - ListTopicRules(*iot.ListTopicRulesInput) (*iot.ListTopicRulesOutput, error) - - RegisterCACertificateRequest(*iot.RegisterCACertificateInput) (*request.Request, *iot.RegisterCACertificateOutput) - - RegisterCACertificate(*iot.RegisterCACertificateInput) (*iot.RegisterCACertificateOutput, error) - - RegisterCertificateRequest(*iot.RegisterCertificateInput) (*request.Request, *iot.RegisterCertificateOutput) - - RegisterCertificate(*iot.RegisterCertificateInput) (*iot.RegisterCertificateOutput, error) - - RejectCertificateTransferRequest(*iot.RejectCertificateTransferInput) (*request.Request, *iot.RejectCertificateTransferOutput) - - RejectCertificateTransfer(*iot.RejectCertificateTransferInput) (*iot.RejectCertificateTransferOutput, error) - - ReplaceTopicRuleRequest(*iot.ReplaceTopicRuleInput) (*request.Request, *iot.ReplaceTopicRuleOutput) - - ReplaceTopicRule(*iot.ReplaceTopicRuleInput) (*iot.ReplaceTopicRuleOutput, error) - - SetDefaultPolicyVersionRequest(*iot.SetDefaultPolicyVersionInput) (*request.Request, *iot.SetDefaultPolicyVersionOutput) - - SetDefaultPolicyVersion(*iot.SetDefaultPolicyVersionInput) (*iot.SetDefaultPolicyVersionOutput, error) - - SetLoggingOptionsRequest(*iot.SetLoggingOptionsInput) (*request.Request, *iot.SetLoggingOptionsOutput) - - SetLoggingOptions(*iot.SetLoggingOptionsInput) (*iot.SetLoggingOptionsOutput, error) - - TransferCertificateRequest(*iot.TransferCertificateInput) (*request.Request, *iot.TransferCertificateOutput) - - TransferCertificate(*iot.TransferCertificateInput) (*iot.TransferCertificateOutput, error) - - UpdateCACertificateRequest(*iot.UpdateCACertificateInput) (*request.Request, *iot.UpdateCACertificateOutput) - - UpdateCACertificate(*iot.UpdateCACertificateInput) (*iot.UpdateCACertificateOutput, error) - - UpdateCertificateRequest(*iot.UpdateCertificateInput) (*request.Request, *iot.UpdateCertificateOutput) - - UpdateCertificate(*iot.UpdateCertificateInput) (*iot.UpdateCertificateOutput, error) - - UpdateThingRequest(*iot.UpdateThingInput) (*request.Request, *iot.UpdateThingOutput) - - UpdateThing(*iot.UpdateThingInput) (*iot.UpdateThingOutput, error) -} - -var _ IoTAPI = (*iot.IoT)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/service.go b/vendor/github.com/aws/aws-sdk-go/service/iot/service.go deleted file mode 100644 index 49cda063b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/iot/service.go +++ /dev/null @@ -1,94 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package iot - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// AWS IoT provides secure, bi-directional communication between Internet-connected -// things (such as sensors, actuators, embedded devices, or smart appliances) -// and the AWS cloud. You can discover your custom IoT-Data endpoint to communicate -// with, configure rules for data processing and integration with other services, -// organize resources associated with each thing (Thing Registry), configure -// logging, and create and manage policies and credentials to authenticate things. -// -// For more information about how AWS IoT works, see the Developer Guide (http://docs.aws.amazon.com/iot/latest/developerguide/aws-iot-how-it-works.html). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type IoT struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "iot" - -// New creates a new instance of the IoT client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a IoT client from just a session. -// svc := iot.New(mySession) -// -// // Create a IoT client with additional configuration -// svc := iot.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *IoT { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *IoT { - svc := &IoT{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningName: "execute-api", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-05-28", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a IoT operation and runs any -// custom request initialization. -func (c *IoT) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/api.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/api.go deleted file mode 100644 index d34f0a42f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/api.go +++ /dev/null @@ -1,346 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package iotdataplane provides a client for AWS IoT Data Plane. -package iotdataplane - -import ( - "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/private/protocol/restjson" -) - -const opDeleteThingShadow = "DeleteThingShadow" - -// DeleteThingShadowRequest generates a request for the DeleteThingShadow operation. -func (c *IoTDataPlane) DeleteThingShadowRequest(input *DeleteThingShadowInput) (req *request.Request, output *DeleteThingShadowOutput) { - op := &request.Operation{ - Name: opDeleteThingShadow, - HTTPMethod: "DELETE", - HTTPPath: "/things/{thingName}/shadow", - } - - if input == nil { - input = &DeleteThingShadowInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteThingShadowOutput{} - req.Data = output - return -} - -// Deletes the thing shadow for the specified thing. -// -// For more information, see DeleteThingShadow (http://docs.aws.amazon.com/iot/latest/developerguide/API_DeleteThingShadow.html) -// in the AWS IoT Developer Guide. -func (c *IoTDataPlane) DeleteThingShadow(input *DeleteThingShadowInput) (*DeleteThingShadowOutput, error) { - req, out := c.DeleteThingShadowRequest(input) - err := req.Send() - return out, err -} - -const opGetThingShadow = "GetThingShadow" - -// GetThingShadowRequest generates a request for the GetThingShadow operation. -func (c *IoTDataPlane) GetThingShadowRequest(input *GetThingShadowInput) (req *request.Request, output *GetThingShadowOutput) { - op := &request.Operation{ - Name: opGetThingShadow, - HTTPMethod: "GET", - HTTPPath: "/things/{thingName}/shadow", - } - - if input == nil { - input = &GetThingShadowInput{} - } - - req = c.newRequest(op, input, output) - output = &GetThingShadowOutput{} - req.Data = output - return -} - -// Gets the thing shadow for the specified thing. -// -// For more information, see GetThingShadow (http://docs.aws.amazon.com/iot/latest/developerguide/API_GetThingShadow.html) -// in the AWS IoT Developer Guide. -func (c *IoTDataPlane) GetThingShadow(input *GetThingShadowInput) (*GetThingShadowOutput, error) { - req, out := c.GetThingShadowRequest(input) - err := req.Send() - return out, err -} - -const opPublish = "Publish" - -// PublishRequest generates a request for the Publish operation. -func (c *IoTDataPlane) PublishRequest(input *PublishInput) (req *request.Request, output *PublishOutput) { - op := &request.Operation{ - Name: opPublish, - HTTPMethod: "POST", - HTTPPath: "/topics/{topic}", - } - - if input == nil { - input = &PublishInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PublishOutput{} - req.Data = output - return -} - -// Publishes state information. -// -// For more information, see HTTP Protocol (http://docs.aws.amazon.com/iot/latest/developerguide/protocols.html#http) -// in the AWS IoT Developer Guide. -func (c *IoTDataPlane) Publish(input *PublishInput) (*PublishOutput, error) { - req, out := c.PublishRequest(input) - err := req.Send() - return out, err -} - -const opUpdateThingShadow = "UpdateThingShadow" - -// UpdateThingShadowRequest generates a request for the UpdateThingShadow operation. -func (c *IoTDataPlane) UpdateThingShadowRequest(input *UpdateThingShadowInput) (req *request.Request, output *UpdateThingShadowOutput) { - op := &request.Operation{ - Name: opUpdateThingShadow, - HTTPMethod: "POST", - HTTPPath: "/things/{thingName}/shadow", - } - - if input == nil { - input = &UpdateThingShadowInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateThingShadowOutput{} - req.Data = output - return -} - -// Updates the thing shadow for the specified thing. -// -// For more information, see UpdateThingShadow (http://docs.aws.amazon.com/iot/latest/developerguide/API_UpdateThingShadow.html) -// in the AWS IoT Developer Guide. -func (c *IoTDataPlane) UpdateThingShadow(input *UpdateThingShadowInput) (*UpdateThingShadowOutput, error) { - req, out := c.UpdateThingShadowRequest(input) - err := req.Send() - return out, err -} - -// The input for the DeleteThingShadow operation. -type DeleteThingShadowInput struct { - _ struct{} `type:"structure"` - - // The name of the thing. - ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteThingShadowInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteThingShadowInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteThingShadowInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteThingShadowInput"} - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) - } - if s.ThingName != nil && len(*s.ThingName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the DeleteThingShadow operation. -type DeleteThingShadowOutput struct { - _ struct{} `type:"structure" payload:"Payload"` - - // The state information, in JSON format. - Payload []byte `locationName:"payload" type:"blob" required:"true"` -} - -// String returns the string representation -func (s DeleteThingShadowOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteThingShadowOutput) GoString() string { - return s.String() -} - -// The input for the GetThingShadow operation. -type GetThingShadowInput struct { - _ struct{} `type:"structure"` - - // The name of the thing. - ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetThingShadowInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetThingShadowInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetThingShadowInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetThingShadowInput"} - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) - } - if s.ThingName != nil && len(*s.ThingName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the GetThingShadow operation. -type GetThingShadowOutput struct { - _ struct{} `type:"structure" payload:"Payload"` - - // The state information, in JSON format. - Payload []byte `locationName:"payload" type:"blob"` -} - -// String returns the string representation -func (s GetThingShadowOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetThingShadowOutput) GoString() string { - return s.String() -} - -// The input for the Publish operation. -type PublishInput struct { - _ struct{} `type:"structure" payload:"Payload"` - - // The state information, in JSON format. - Payload []byte `locationName:"payload" type:"blob"` - - // The Quality of Service (QoS) level. - Qos *int64 `location:"querystring" locationName:"qos" type:"integer"` - - // The name of the MQTT topic. - Topic *string `location:"uri" locationName:"topic" type:"string" required:"true"` -} - -// String returns the string representation -func (s PublishInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PublishInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PublishInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PublishInput"} - if s.Topic == nil { - invalidParams.Add(request.NewErrParamRequired("Topic")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type PublishOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s PublishOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PublishOutput) GoString() string { - return s.String() -} - -// The input for the UpdateThingShadow operation. -type UpdateThingShadowInput struct { - _ struct{} `type:"structure" payload:"Payload"` - - // The state information, in JSON format. - Payload []byte `locationName:"payload" type:"blob" required:"true"` - - // The name of the thing. - ThingName *string `location:"uri" locationName:"thingName" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateThingShadowInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateThingShadowInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateThingShadowInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateThingShadowInput"} - if s.Payload == nil { - invalidParams.Add(request.NewErrParamRequired("Payload")) - } - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) - } - if s.ThingName != nil && len(*s.ThingName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The output from the UpdateThingShadow operation. -type UpdateThingShadowOutput struct { - _ struct{} `type:"structure" payload:"Payload"` - - // The state information, in JSON format. - Payload []byte `locationName:"payload" type:"blob"` -} - -// String returns the string representation -func (s UpdateThingShadowOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateThingShadowOutput) GoString() string { - return s.String() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/customizations_test.go deleted file mode 100644 index 4bb81a044..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/customizations_test.go +++ /dev/null @@ -1,52 +0,0 @@ -package iotdataplane_test - -import ( - "fmt" - "github.com/stretchr/testify/assert" - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/unit" - "github.com/aws/aws-sdk-go/service/iotdataplane" -) - -func TestRequireEndpointIfRegionProvided(t *testing.T) { - svc := iotdataplane.New(unit.Session, &aws.Config{ - Region: aws.String("mock-region"), - DisableParamValidation: aws.Bool(true), - }) - req, _ := svc.GetThingShadowRequest(nil) - err := req.Build() - - assert.Equal(t, "", svc.Endpoint) - assert.Error(t, err) - assert.Equal(t, aws.ErrMissingEndpoint, err) -} - -func TestRequireEndpointIfNoRegionProvided(t *testing.T) { - svc := iotdataplane.New(unit.Session, &aws.Config{ - Region: aws.String(""), - DisableParamValidation: aws.Bool(true), - }) - fmt.Println(svc.ClientInfo.SigningRegion) - - req, _ := svc.GetThingShadowRequest(nil) - err := req.Build() - - assert.Equal(t, "", svc.Endpoint) - assert.Error(t, err) - assert.Equal(t, aws.ErrMissingEndpoint, err) -} - -func TestRequireEndpointUsed(t *testing.T) { - svc := iotdataplane.New(unit.Session, &aws.Config{ - Region: aws.String("mock-region"), - DisableParamValidation: aws.Bool(true), - Endpoint: aws.String("https://endpoint"), - }) - req, _ := svc.GetThingShadowRequest(nil) - err := req.Build() - - assert.Equal(t, "https://endpoint", svc.Endpoint) - assert.NoError(t, err) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go deleted file mode 100644 index 32769aba8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/examples_test.go +++ /dev/null @@ -1,95 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package iotdataplane_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/iotdataplane" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleIoTDataPlane_DeleteThingShadow() { - svc := iotdataplane.New(session.New()) - - params := &iotdataplane.DeleteThingShadowInput{ - ThingName: aws.String("ThingName"), // Required - } - resp, err := svc.DeleteThingShadow(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoTDataPlane_GetThingShadow() { - svc := iotdataplane.New(session.New()) - - params := &iotdataplane.GetThingShadowInput{ - ThingName: aws.String("ThingName"), // Required - } - resp, err := svc.GetThingShadow(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoTDataPlane_Publish() { - svc := iotdataplane.New(session.New()) - - params := &iotdataplane.PublishInput{ - Topic: aws.String("Topic"), // Required - Payload: []byte("PAYLOAD"), - Qos: aws.Int64(1), - } - resp, err := svc.Publish(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleIoTDataPlane_UpdateThingShadow() { - svc := iotdataplane.New(session.New()) - - params := &iotdataplane.UpdateThingShadowInput{ - Payload: []byte("PAYLOAD"), // Required - ThingName: aws.String("ThingName"), // Required - } - resp, err := svc.UpdateThingShadow(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go deleted file mode 100644 index 0351a84f4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface.go +++ /dev/null @@ -1,30 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package iotdataplaneiface provides an interface for the AWS IoT Data Plane. -package iotdataplaneiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/iotdataplane" -) - -// IoTDataPlaneAPI is the interface type for iotdataplane.IoTDataPlane. -type IoTDataPlaneAPI interface { - DeleteThingShadowRequest(*iotdataplane.DeleteThingShadowInput) (*request.Request, *iotdataplane.DeleteThingShadowOutput) - - DeleteThingShadow(*iotdataplane.DeleteThingShadowInput) (*iotdataplane.DeleteThingShadowOutput, error) - - GetThingShadowRequest(*iotdataplane.GetThingShadowInput) (*request.Request, *iotdataplane.GetThingShadowOutput) - - GetThingShadow(*iotdataplane.GetThingShadowInput) (*iotdataplane.GetThingShadowOutput, error) - - PublishRequest(*iotdataplane.PublishInput) (*request.Request, *iotdataplane.PublishOutput) - - Publish(*iotdataplane.PublishInput) (*iotdataplane.PublishOutput, error) - - UpdateThingShadowRequest(*iotdataplane.UpdateThingShadowInput) (*request.Request, *iotdataplane.UpdateThingShadowOutput) - - UpdateThingShadow(*iotdataplane.UpdateThingShadowInput) (*iotdataplane.UpdateThingShadowOutput, error) -} - -var _ IoTDataPlaneAPI = (*iotdataplane.IoTDataPlane)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/service.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/service.go deleted file mode 100644 index 916a5ef33..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/service.go +++ /dev/null @@ -1,92 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package iotdataplane - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// AWS IoT-Data enables secure, bi-directional communication between Internet-connected -// things (such as sensors, actuators, embedded devices, or smart appliances) -// and the AWS cloud. It implements a broker for applications and things to -// publish messages over HTTP (Publish) and retrieve, update, and delete thing -// shadows. A thing shadow is a persistent representation of your things and -// their state in the AWS cloud. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type IoTDataPlane struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "data.iot" - -// New creates a new instance of the IoTDataPlane client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a IoTDataPlane client from just a session. -// svc := iotdataplane.New(mySession) -// -// // Create a IoTDataPlane client with additional configuration -// svc := iotdataplane.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *IoTDataPlane { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *IoTDataPlane { - svc := &IoTDataPlane{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningName: "iotdata", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-05-28", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a IoTDataPlane operation and runs any -// custom request initialization. -func (c *IoTDataPlane) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go index db65419d4..42e653687 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go @@ -4,13 +4,8 @@ package kinesis import ( - "fmt" - "time" - "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/private/protocol/jsonrpc" ) const opAddTagsToStream = "AddTagsToStream" @@ -28,8 +23,6 @@ func (c *Kinesis) AddTagsToStreamRequest(input *AddTagsToStreamInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AddTagsToStreamOutput{} req.Data = output return @@ -61,24 +54,23 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateStreamOutput{} req.Data = output return } -// Creates an Amazon Kinesis stream. A stream captures and transports data records +// Creates a Amazon Kinesis stream. A stream captures and transports data records // that are continuously emitted from different data sources or producers. Scale-out -// within a stream is explicitly supported by means of shards, which are uniquely -// identified groups of data records in a stream. +// within an Amazon Kinesis stream is explicitly supported by means of shards, +// which are uniquely identified groups of data records in an Amazon Kinesis +// stream. // // You specify and control the number of shards that a stream is composed of. -// Each shard can support reads up to 5 transactions per second, up to a maximum -// data read total of 2 MB per second. Each shard can support writes up to 1,000 -// records per second, up to a maximum data write total of 1 MB per second. -// You can add shards to a stream if the amount of data input increases and -// you can remove shards if the amount of data input decreases. +// Each open shard can support up to 5 read transactions per second, up to a +// maximum total of 2 MB of data read per second. Each shard can support up +// to 1000 records written per second, up to a maximum total of 1 MB data written +// per second. You can add shards to a stream if the amount of data input increases +// and you can remove shards if the amount of data input decreases. // // The stream name identifies the stream. The name is scoped to the AWS account // used by the application. It is also scoped by region. That is, two streams @@ -96,9 +88,8 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re // // Have more than five streams in the CREATING state at any point in time. // Create more shards than are authorized for your account. For the default -// shard limit for an AWS account, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) -// in the Amazon Kinesis Streams Developer Guide. If you need to increase this -// limit, contact AWS Support (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html). +// shard limit for an AWS account, see Amazon Kinesis Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html). +// If you need to increase this limit, contact AWS Support (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) // // You can use DescribeStream to check the stream status, which is returned // in StreamStatus. @@ -110,41 +101,6 @@ func (c *Kinesis) CreateStream(input *CreateStreamInput) (*CreateStreamOutput, e return out, err } -const opDecreaseStreamRetentionPeriod = "DecreaseStreamRetentionPeriod" - -// DecreaseStreamRetentionPeriodRequest generates a request for the DecreaseStreamRetentionPeriod operation. -func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRetentionPeriodInput) (req *request.Request, output *DecreaseStreamRetentionPeriodOutput) { - op := &request.Operation{ - Name: opDecreaseStreamRetentionPeriod, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DecreaseStreamRetentionPeriodInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DecreaseStreamRetentionPeriodOutput{} - req.Data = output - return -} - -// Decreases the Amazon Kinesis stream's retention period, which is the length -// of time data records are accessible after they are added to the stream. The -// minimum value of a stream's retention period is 24 hours. -// -// This operation may result in lost data. For example, if the stream's retention -// period is 48 hours and is decreased to 24 hours, any data already in the -// stream that is older than 24 hours is inaccessible. -func (c *Kinesis) DecreaseStreamRetentionPeriod(input *DecreaseStreamRetentionPeriodInput) (*DecreaseStreamRetentionPeriodOutput, error) { - req, out := c.DecreaseStreamRetentionPeriodRequest(input) - err := req.Send() - return out, err -} - const opDeleteStream = "DeleteStream" // DeleteStreamRequest generates a request for the DeleteStream operation. @@ -160,17 +116,14 @@ func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteStreamOutput{} req.Data = output return } -// Deletes an Amazon Kinesis stream and all its shards and data. You must shut -// down any applications that are operating on the stream before you delete -// the stream. If an application attempts to operate on a deleted stream, it -// will receive the exception ResourceNotFoundException. +// Deletes a stream and all its shards and data. You must shut down any applications +// that are operating on the stream before you delete the stream. If an application +// attempts to operate on a deleted stream, it will receive the exception ResourceNotFoundException. // // If the stream is in the ACTIVE state, you can delete it. After a DeleteStream // request, the specified stream is in the DELETING state until Amazon Kinesis @@ -219,15 +172,15 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques return } -// Describes the specified Amazon Kinesis stream. +// Describes the specified stream. // // The information about the stream includes its current status, its Amazon // Resource Name (ARN), and an array of shard objects. For each shard object, // there is information about the hash key and sequence number ranges that the // shard spans, and the IDs of any earlier shards that played in a role in creating // the shard. A sequence number is the identifier associated with every record -// ingested in the stream. The sequence number is assigned when a record is -// put into the stream. +// ingested in the Amazon Kinesis stream. The sequence number is assigned when +// a record is put into the stream. // // You can limit the number of returned shards using the Limit parameter. The // number of shards in a stream may be too large to return from a single call @@ -240,10 +193,6 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques // this ID in the ExclusiveStartShardId parameter in a subsequent request to // DescribeStream. // -// There are no guarantees about the chronological order shards returned in -// DescribeStream results. If you want to process shards in chronological order, -// use ParentShardId to track lineage to the oldest shard. -// // DescribeStream has a limit of 10 transactions per second per account. func (c *Kinesis) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOutput, error) { req, out := c.DescribeStreamRequest(input) @@ -253,66 +202,11 @@ func (c *Kinesis) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOut func (c *Kinesis) DescribeStreamPages(input *DescribeStreamInput, fn func(p *DescribeStreamOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeStreamRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeStreamOutput), lastPage) }) } -const opDisableEnhancedMonitoring = "DisableEnhancedMonitoring" - -// DisableEnhancedMonitoringRequest generates a request for the DisableEnhancedMonitoring operation. -func (c *Kinesis) DisableEnhancedMonitoringRequest(input *DisableEnhancedMonitoringInput) (req *request.Request, output *EnhancedMonitoringOutput) { - op := &request.Operation{ - Name: opDisableEnhancedMonitoring, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DisableEnhancedMonitoringInput{} - } - - req = c.newRequest(op, input, output) - output = &EnhancedMonitoringOutput{} - req.Data = output - return -} - -// Disables enhanced monitoring. -func (c *Kinesis) DisableEnhancedMonitoring(input *DisableEnhancedMonitoringInput) (*EnhancedMonitoringOutput, error) { - req, out := c.DisableEnhancedMonitoringRequest(input) - err := req.Send() - return out, err -} - -const opEnableEnhancedMonitoring = "EnableEnhancedMonitoring" - -// EnableEnhancedMonitoringRequest generates a request for the EnableEnhancedMonitoring operation. -func (c *Kinesis) EnableEnhancedMonitoringRequest(input *EnableEnhancedMonitoringInput) (req *request.Request, output *EnhancedMonitoringOutput) { - op := &request.Operation{ - Name: opEnableEnhancedMonitoring, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &EnableEnhancedMonitoringInput{} - } - - req = c.newRequest(op, input, output) - output = &EnhancedMonitoringOutput{} - req.Data = output - return -} - -// Enables enhanced Amazon Kinesis stream monitoring for shard-level metrics. -func (c *Kinesis) EnableEnhancedMonitoring(input *EnableEnhancedMonitoringInput) (*EnhancedMonitoringOutput, error) { - req, out := c.EnableEnhancedMonitoringRequest(input) - err := req.Send() - return out, err -} - const opGetRecords = "GetRecords" // GetRecordsRequest generates a request for the GetRecords operation. @@ -333,7 +227,7 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques return } -// Gets data records from an Amazon Kinesis stream's shard. +// Gets data records from a shard. // // Specify a shard iterator using the ShardIterator parameter. The shard iterator // specifies the position in the shard from which you want to start reading @@ -342,9 +236,7 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // Note that it might take multiple calls to get to a portion of the shard that // contains records. // -// You can scale by provisioning multiple shards per stream while considering -// service limits (for more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) -// in the Amazon Kinesis Streams Developer Guide). Your application should have +// You can scale by provisioning multiple shards. Your application should have // one thread per shard, each reading continuously from its stream. To read // from a stream continually, call GetRecords in a loop. Use GetShardIterator // to get the shard iterator to specify in the first GetRecords call. GetRecords @@ -356,13 +248,15 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // the sequence number or other attribute that marks it as the last record to // process. // -// Each data record can be up to 1 MB in size, and each shard can read up to -// 2 MB per second. You can ensure that your calls don't exceed the maximum +// Each data record can be up to 50 KB in size, and each shard can read up +// to 2 MB per second. You can ensure that your calls don't exceed the maximum // supported size or throughput by using the Limit parameter to specify the // maximum number of records that GetRecords can return. Consider your average -// record size when determining this limit. +// record size when determining this limit. For example, if your average record +// size is 40 KB, you can limit the data returned to about 1 MB per call by +// specifying 25 as the limit. // -// The size of the data returned by GetRecords varies depending on the utilization +// The size of the data returned by GetRecords will vary depending on the utilization // of the shard. The maximum size of data that GetRecords can return is 10 MB. // If a call returns this amount of data, subsequent calls made within the next // 5 seconds throw ProvisionedThroughputExceededException. If there is insufficient @@ -373,19 +267,10 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // that the application will get exceptions for longer than 1 second. // // To detect whether the application is falling behind in processing, you can -// use the MillisBehindLatest response attribute. You can also monitor the stream -// using CloudWatch metrics and other mechanisms (see Monitoring (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring.html) -// in the Amazon Kinesis Streams Developer Guide). -// -// Each Amazon Kinesis record includes a value, ApproximateArrivalTimestamp, -// that is set when a stream successfully receives and stores a record. This -// is commonly referred to as a server-side timestamp, whereas a client-side -// timestamp is set when a data producer creates or sends the record to a stream -// (a data producer is any data source putting data records into a stream, for -// example with PutRecords). The timestamp has millisecond precision. There -// are no guarantees about the timestamp accuracy, or that the timestamp is -// always increasing. For example, records in a shard or across a stream might -// have timestamps that are out of order. +// use the MillisBehindLatest response attribute. You can also monitor the amount +// of data in a stream using the CloudWatch metrics. For more information, see +// Monitoring Amazon Kinesis with Amazon CloudWatch (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring_with_cloudwatch.html) +// in the Amazon Kinesis Developer Guide. func (c *Kinesis) GetRecords(input *GetRecordsInput) (*GetRecordsOutput, error) { req, out := c.GetRecordsRequest(input) err := req.Send() @@ -412,41 +297,40 @@ func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *re return } -// Gets an Amazon Kinesis shard iterator. A shard iterator expires five minutes -// after it is returned to the requester. +// Gets a shard iterator. A shard iterator expires five minutes after it is +// returned to the requester. // -// A shard iterator specifies the shard position from which to start reading -// data records sequentially. The position is specified using the sequence number -// of a data record in a shard. A sequence number is the identifier associated -// with every record ingested in the stream, and is assigned when a record is -// put into the stream. Each stream has one or more shards. +// A shard iterator specifies the position in the shard from which to start +// reading data records sequentially. A shard iterator specifies this position +// using the sequence number of a data record in a shard. A sequence number +// is the identifier associated with every record ingested in the Amazon Kinesis +// stream. The sequence number is assigned when a record is put into the stream. // // You must specify the shard iterator type. For example, you can set the ShardIteratorType // parameter to read exactly from the position denoted by a specific sequence // number by using the AT_SEQUENCE_NUMBER shard iterator type, or right after // the sequence number by using the AFTER_SEQUENCE_NUMBER shard iterator type, // using sequence numbers returned by earlier calls to PutRecord, PutRecords, -// GetRecords, or DescribeStream. In the request, you can specify the shard -// iterator type AT_TIMESTAMP to read records from an arbitrary point in time, -// TRIM_HORIZON to cause ShardIterator to point to the last untrimmed record -// in the shard in the system (the oldest data record in the shard), or LATEST -// so that you always read the most recent data in the shard. -// -// When you read repeatedly from a stream, use a GetShardIterator request to -// get the first shard iterator for use in your first GetRecords request and -// for subsequent reads use the shard iterator returned by the GetRecords request -// in NextShardIterator. A new shard iterator is returned by every GetRecords -// request in NextShardIterator, which you use in the ShardIterator parameter -// of the next GetRecords request. +// GetRecords, or DescribeStream. You can specify the shard iterator type TRIM_HORIZON +// in the request to cause ShardIterator to point to the last untrimmed record +// in the shard in the system, which is the oldest data record in the shard. +// Or you can point to just after the most recent record in the shard, by using +// the shard iterator type LATEST, so that you always read the most recent data +// in the shard. +// +// When you repeatedly read from an Amazon Kinesis stream use a GetShardIterator +// request to get the first shard iterator for use in your first GetRecords +// request and then use the shard iterator returned by the GetRecords request +// in NextShardIterator for subsequent reads. A new shard iterator is returned +// by every GetRecords request in NextShardIterator, which you use in the ShardIterator +// parameter of the next GetRecords request. // // If a GetShardIterator request is made too often, you receive a ProvisionedThroughputExceededException. -// For more information about throughput limits, see GetRecords, and Streams -// Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) -// in the Amazon Kinesis Streams Developer Guide. +// For more information about throughput limits, see GetRecords. // -// If the shard is closed, GetShardIterator returns a valid iterator for the -// last sequence number of the shard. Note that a shard can be closed as a result -// of using SplitShard or MergeShards. +// If the shard is closed, the iterator can't return more data, and GetShardIterator +// returns null for its ShardIterator. A shard can be closed using SplitShard +// or MergeShards. // // GetShardIterator has a limit of 5 transactions per second per account per // open shard. @@ -456,45 +340,6 @@ func (c *Kinesis) GetShardIterator(input *GetShardIteratorInput) (*GetShardItera return out, err } -const opIncreaseStreamRetentionPeriod = "IncreaseStreamRetentionPeriod" - -// IncreaseStreamRetentionPeriodRequest generates a request for the IncreaseStreamRetentionPeriod operation. -func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRetentionPeriodInput) (req *request.Request, output *IncreaseStreamRetentionPeriodOutput) { - op := &request.Operation{ - Name: opIncreaseStreamRetentionPeriod, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &IncreaseStreamRetentionPeriodInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &IncreaseStreamRetentionPeriodOutput{} - req.Data = output - return -} - -// Increases the Amazon Kinesis stream's retention period, which is the length -// of time data records are accessible after they are added to the stream. The -// maximum value of a stream's retention period is 168 hours (7 days). -// -// Upon choosing a longer stream retention period, this operation will increase -// the time period records are accessible that have not yet expired. However, -// it will not make previous data that has expired (older than the stream's -// previous retention period) accessible after the operation has been called. -// For example, if a stream's retention period is set to 24 hours and is increased -// to 168 hours, any data that is older than 24 hours will remain inaccessible -// to consumer applications. -func (c *Kinesis) IncreaseStreamRetentionPeriod(input *IncreaseStreamRetentionPeriodInput) (*IncreaseStreamRetentionPeriodOutput, error) { - req, out := c.IncreaseStreamRetentionPeriodRequest(input) - err := req.Send() - return out, err -} - const opListStreams = "ListStreams" // ListStreamsRequest generates a request for the ListStreams operation. @@ -521,14 +366,14 @@ func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Requ return } -// Lists your Amazon Kinesis streams. +// Lists your streams. // -// The number of streams may be too large to return from a single call to ListStreams. -// You can limit the number of returned streams using the Limit parameter. If -// you do not specify a value for the Limit parameter, Amazon Kinesis uses the -// default limit, which is currently 10. +// The number of streams may be too large to return from a single call to +// ListStreams. You can limit the number of returned streams using the Limit +// parameter. If you do not specify a value for the Limit parameter, Amazon +// Kinesis uses the default limit, which is currently 10. // -// You can detect if there are more streams available to list by using the +// You can detect if there are more streams available to list by using the // HasMoreStreams flag from the returned output. If there are more streams available, // you can request more streams by using the name of the last stream returned // by the ListStreams request in the ExclusiveStartStreamName parameter in a @@ -545,7 +390,6 @@ func (c *Kinesis) ListStreams(input *ListStreamsInput) (*ListStreamsOutput, erro func (c *Kinesis) ListStreamsPages(input *ListStreamsInput, fn func(p *ListStreamsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListStreamsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListStreamsOutput), lastPage) }) @@ -593,28 +437,25 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &MergeShardsOutput{} req.Data = output return } -// Merges two adjacent shards in an Amazon Kinesis stream and combines them -// into a single shard to reduce the stream's capacity to ingest and transport -// data. Two shards are considered adjacent if the union of the hash key ranges -// for the two shards form a contiguous set with no gaps. For example, if you -// have two shards, one with a hash key range of 276...381 and the other with -// a hash key range of 382...454, then you could merge these two shards into -// a single shard that would have a hash key range of 276...454. After the merge, -// the single child shard receives data for all hash key values covered by the -// two parent shards. +// Merges two adjacent shards in a stream and combines them into a single shard +// to reduce the stream's capacity to ingest and transport data. Two shards +// are considered adjacent if the union of the hash key ranges for the two shards +// form a contiguous set with no gaps. For example, if you have two shards, +// one with a hash key range of 276...381 and the other with a hash key range +// of 382...454, then you could merge these two shards into a single shard that +// would have a hash key range of 276...454. After the merge, the single child +// shard receives data for all hash key values covered by the two parent shards. // // MergeShards is called when there is a need to reduce the overall capacity // of a stream because of excess capacity that is not being used. You must specify // the shard to be merged and the adjacent shard for a stream. For more information // about merging shards, see Merge Two Shards (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-merge.html) -// in the Amazon Kinesis Streams Developer Guide. +// in the Amazon Kinesis Developer Guide. // // If the stream is in the ACTIVE state, you can call MergeShards. If a stream // is in the CREATING, UPDATING, or DELETING state, MergeShards returns a ResourceInUseException. @@ -662,10 +503,11 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, return } -// Writes a single data record into an Amazon Kinesis stream. Call PutRecord -// to send data into the stream for real-time ingestion and subsequent processing, -// one record at a time. Each shard can support writes up to 1,000 records per -// second, up to a maximum data write total of 1 MB per second. +// Puts (writes) a single data record from a producer into an Amazon Kinesis +// stream. Call PutRecord to send data from the producer into the Amazon Kinesis +// stream for real-time ingestion and subsequent processing, one record at a +// time. Each shard can support up to 1000 records written per second, up to +// a maximum total of 1 MB data written per second. // // You must specify the name of the stream that captures, stores, and transports // the data; a partition key; and the data blob itself. @@ -674,32 +516,31 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, // file, geographic/location data, website clickstream data, and so on. // // The partition key is used by Amazon Kinesis to distribute data across shards. -// Amazon Kinesis segregates the data records that belong to a stream into multiple -// shards, using the partition key associated with each data record to determine -// which shard a given data record belongs to. +// Amazon Kinesis segregates the data records that belong to a data stream into +// multiple shards, using the partition key associated with each data record +// to determine which shard a given data record belongs to. // // Partition keys are Unicode strings, with a maximum length limit of 256 characters // for each key. An MD5 hash function is used to map partition keys to 128-bit // integer values and to map associated data records to shards using the hash // key ranges of the shards. You can override hashing the partition key to determine // the shard by explicitly specifying a hash value using the ExplicitHashKey -// parameter. For more information, see Adding Data to a Stream (http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream) -// in the Amazon Kinesis Streams Developer Guide. +// parameter. For more information, see Adding Data to a Stream (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html) +// in the Amazon Kinesis Developer Guide. // // PutRecord returns the shard ID of where the data record was placed and the // sequence number that was assigned to the data record. // -// Sequence numbers increase over time and are specific to a shard within a -// stream, not across all shards within a stream. To guarantee strictly increasing -// ordering, write serially to a shard and use the SequenceNumberForOrdering -// parameter. For more information, see Adding Data to a Stream (http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream) -// in the Amazon Kinesis Streams Developer Guide. +// Sequence numbers generally increase over time. To guarantee strictly increasing +// ordering, use the SequenceNumberForOrdering parameter. For more information, +// see Adding Data to a Stream (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html) +// in the Amazon Kinesis Developer Guide. // // If a PutRecord request cannot be processed because of insufficient provisioned // throughput on the shard involved in the request, PutRecord throws ProvisionedThroughputExceededException. // // Data records are accessible for only 24 hours from the time that they are -// added to a stream. +// added to an Amazon Kinesis stream. func (c *Kinesis) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) { req, out := c.PutRecordRequest(input) err := req.Send() @@ -726,19 +567,16 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques return } -// Writes multiple data records into an Amazon Kinesis stream in a single call -// (also referred to as a PutRecords request). Use this operation to send data -// into the stream for data ingestion and processing. -// -// Each PutRecords request can support up to 500 records. Each record in the -// request can be as large as 1 MB, up to a limit of 5 MB for the entire request, -// including partition keys. Each shard can support writes up to 1,000 records -// per second, up to a maximum data write total of 1 MB per second. +// Puts (writes) multiple data records from a producer into an Amazon Kinesis +// stream in a single call (also referred to as a PutRecords request). Use this +// operation to send data from a data producer into the Amazon Kinesis stream +// for real-time ingestion and processing. Each shard can support up to 1000 +// records written per second, up to a maximum total of 1 MB data written per +// second. // // You must specify the name of the stream that captures, stores, and transports // the data; and an array of request Records, with each record in the array -// requiring a partition key and data blob. The record size limit applies to -// the total size of the partition key and data blob. +// requiring a partition key and data blob. // // The data blob can be any type of data; for example, a segment from a log // file, geographic/location data, website clickstream data, and so on. @@ -748,14 +586,14 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // hash function is used to map partition keys to 128-bit integer values and // to map associated data records to shards. As a result of this hashing mechanism, // all data records with the same partition key map to the same shard within -// the stream. For more information, see Adding Data to a Stream (http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream) -// in the Amazon Kinesis Streams Developer Guide. +// the stream. For more information, see Adding Data to a Stream (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html) +// in the Amazon Kinesis Developer Guide. // // Each record in the Records array may include an optional parameter, ExplicitHashKey, // which overrides the partition key to shard mapping. This parameter allows // a data producer to determine explicitly the shard where the record is stored. -// For more information, see Adding Multiple Records with PutRecords (http://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-putrecords) -// in the Amazon Kinesis Streams Developer Guide. +// For more information, see Adding Multiple Records with PutRecords (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html#kinesis-using-sdk-java-putrecords) +// in the Amazon Kinesis Developer Guide. // // The PutRecords response includes an array of response Records. Each record // in the response array directly correlates with a record in the request array @@ -780,12 +618,10 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // exception including the account ID, stream name, and shard ID of the record // that was throttled. For more information about partially successful responses, // see Adding Multiple Records with PutRecords (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html#kinesis-using-sdk-java-putrecords) -// in the Amazon Kinesis Streams Developer Guide. +// in the Amazon Kinesis Developer Guide. // -// By default, data records are accessible for only 24 hours from the time -// that they are added to an Amazon Kinesis stream. This retention period can -// be modified using the DecreaseStreamRetentionPeriod and IncreaseStreamRetentionPeriod -// operations. +// Data records are accessible for only 24 hours from the time that they are +// added to an Amazon Kinesis stream. func (c *Kinesis) PutRecords(input *PutRecordsInput) (*PutRecordsOutput, error) { req, out := c.PutRecordsRequest(input) err := req.Send() @@ -807,15 +643,12 @@ func (c *Kinesis) RemoveTagsFromStreamRequest(input *RemoveTagsFromStreamInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RemoveTagsFromStreamOutput{} req.Data = output return } -// Removes tags from the specified Amazon Kinesis stream. Removed tags are deleted -// and cannot be recovered after this operation successfully completes. +// Deletes tags from the specified Amazon Kinesis stream. // // If you specify a tag that does not exist, it is ignored. func (c *Kinesis) RemoveTagsFromStream(input *RemoveTagsFromStreamInput) (*RemoveTagsFromStreamOutput, error) { @@ -839,30 +672,29 @@ func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SplitShardOutput{} req.Data = output return } -// Splits a shard into two new shards in the Amazon Kinesis stream to increase -// the stream's capacity to ingest and transport data. SplitShard is called -// when there is a need to increase the overall capacity of a stream because -// of an expected increase in the volume of data records being ingested. +// Splits a shard into two new shards in the stream, to increase the stream's +// capacity to ingest and transport data. SplitShard is called when there is +// a need to increase the overall capacity of stream because of an expected +// increase in the volume of data records being ingested. // // You can also use SplitShard when a shard appears to be approaching its maximum -// utilization; for example, the producers sending data into the specific shard -// are suddenly sending more than previously anticipated. You can also call -// SplitShard to increase stream capacity, so that more Amazon Kinesis applications -// can simultaneously read data from the stream for real-time processing. +// utilization, for example, when the set of producers sending data into the +// specific shard are suddenly sending more than previously anticipated. You +// can also call SplitShard to increase stream capacity, so that more Amazon +// Kinesis applications can simultaneously read data from the stream for real-time +// processing. // // You must specify the shard to be split and the new hash key, which is the // position in the shard where the shard gets split in two. In many cases, the // new hash key might simply be the average of the beginning and ending hash // key, but it can be any hash key value in the range being mapped into the // shard. For more information about splitting shards, see Split a Shard (http://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-split.html) -// in the Amazon Kinesis Streams Developer Guide. +// in the Amazon Kinesis Developer Guide. // // You can use DescribeStream to determine the shard ID and hash key values // for the ShardToSplit and NewStartingHashKey parameters that are specified @@ -883,12 +715,12 @@ func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Reques // If you try to create more shards than are authorized for your account, you // receive a LimitExceededException. // -// For the default shard limit for an AWS account, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) -// in the Amazon Kinesis Streams Developer Guide. If you need to increase this -// limit, contact AWS Support (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html). +// For the default shard limit for an AWS account, see Amazon Kinesis Limits +// (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html). +// If you need to increase this limit, contact AWS Support (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) // -// If you try to operate on too many streams simultaneously using CreateStream, -// DeleteStream, MergeShards, and/or SplitShard, you receive a LimitExceededException. +// If you try to operate on too many streams in parallel using CreateStream, +// DeleteStream, MergeShards or SplitShard, you receive a LimitExceededException. // // SplitShard has limit of 5 transactions per second per account. func (c *Kinesis) SplitShard(input *SplitShardInput) (*SplitShardOutput, error) { @@ -899,13 +731,17 @@ func (c *Kinesis) SplitShard(input *SplitShardInput) (*SplitShardOutput, error) // Represents the input for AddTagsToStream. type AddTagsToStreamInput struct { - _ struct{} `type:"structure"` - // The name of the stream. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` // The set of key-value pairs to use to create the tags. - Tags map[string]*string `min:"1" type:"map" required:"true"` + Tags map[string]*string `type:"map" required:"true"` + + metadataAddTagsToStreamInput `json:"-" xml:"-"` +} + +type metadataAddTagsToStreamInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -918,30 +754,12 @@ func (s AddTagsToStreamInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToStreamInput"} - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AddTagsToStreamOutput struct { + metadataAddTagsToStreamOutput `json:"-" xml:"-"` } -type AddTagsToStreamOutput struct { - _ struct{} `type:"structure"` +type metadataAddTagsToStreamOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -956,21 +774,25 @@ func (s AddTagsToStreamOutput) GoString() string { // Represents the input for CreateStream. type CreateStreamInput struct { - _ struct{} `type:"structure"` - // The number of shards that the stream will use. The throughput of the stream // is a function of the number of shards; more shards are required for greater // provisioned throughput. // // DefaultShardLimit; - ShardCount *int64 `min:"1" type:"integer" required:"true"` + ShardCount *int64 `type:"integer" required:"true"` // A name to identify the stream. The stream name is scoped to the AWS account // used by the application that creates the stream. It is also scoped by region. // That is, two streams in two different AWS accounts can have the same name, - // and two streams in the same AWS account but in two different regions can + // and two streams in the same AWS account, but in two different regions, can // have the same name. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` + + metadataCreateStreamInput `json:"-" xml:"-"` +} + +type metadataCreateStreamInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -983,30 +805,12 @@ func (s CreateStreamInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateStreamInput"} - if s.ShardCount == nil { - invalidParams.Add(request.NewErrParamRequired("ShardCount")) - } - if s.ShardCount != nil && *s.ShardCount < 1 { - invalidParams.Add(request.NewErrParamMinValue("ShardCount", 1)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateStreamOutput struct { + metadataCreateStreamOutput `json:"-" xml:"-"` } -type CreateStreamOutput struct { - _ struct{} `type:"structure"` +type metadataCreateStreamOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1019,70 +823,16 @@ func (s CreateStreamOutput) GoString() string { return s.String() } -// Represents the input for DecreaseStreamRetentionPeriod. -type DecreaseStreamRetentionPeriodInput struct { - _ struct{} `type:"structure"` - - // The new retention period of the stream, in hours. Must be less than the current - // retention period. - RetentionPeriodHours *int64 `min:"24" type:"integer" required:"true"` - - // The name of the stream to modify. - StreamName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DecreaseStreamRetentionPeriodInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DecreaseStreamRetentionPeriodInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DecreaseStreamRetentionPeriodInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DecreaseStreamRetentionPeriodInput"} - if s.RetentionPeriodHours == nil { - invalidParams.Add(request.NewErrParamRequired("RetentionPeriodHours")) - } - if s.RetentionPeriodHours != nil && *s.RetentionPeriodHours < 24 { - invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodHours", 24)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DecreaseStreamRetentionPeriodOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DecreaseStreamRetentionPeriodOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DecreaseStreamRetentionPeriodOutput) GoString() string { - return s.String() -} - // Represents the input for DeleteStream. type DeleteStreamInput struct { - _ struct{} `type:"structure"` - // The name of the stream to delete. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` + + metadataDeleteStreamInput `json:"-" xml:"-"` +} + +type metadataDeleteStreamInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1095,24 +845,12 @@ func (s DeleteStreamInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteStreamInput"} - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteStreamOutput struct { + metadataDeleteStreamOutput `json:"-" xml:"-"` } -type DeleteStreamOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteStreamOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1127,16 +865,20 @@ func (s DeleteStreamOutput) GoString() string { // Represents the input for DescribeStream. type DescribeStreamInput struct { - _ struct{} `type:"structure"` - // The shard ID of the shard to start with. - ExclusiveStartShardId *string `min:"1" type:"string"` + ExclusiveStartShardId *string `type:"string"` // The maximum number of shards to return. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // The name of the stream to describe. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` + + metadataDescribeStreamInput `json:"-" xml:"-"` +} + +type metadataDescribeStreamInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1149,216 +891,45 @@ func (s DescribeStreamInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStreamInput"} - if s.ExclusiveStartShardId != nil && len(*s.ExclusiveStartShardId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExclusiveStartShardId", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output for DescribeStream. type DescribeStreamOutput struct { - _ struct{} `type:"structure"` - // The current status of the stream, the stream ARN, an array of shard objects // that comprise the stream, and states whether there are more shards available. StreamDescription *StreamDescription `type:"structure" required:"true"` -} -// String returns the string representation -func (s DescribeStreamOutput) String() string { - return awsutil.Prettify(s) + metadataDescribeStreamOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s DescribeStreamOutput) GoString() string { - return s.String() -} - -// Represents the input for DisableEnhancedMonitoring. -type DisableEnhancedMonitoringInput struct { - _ struct{} `type:"structure"` - - // List of shard-level metrics to disable. - // - // The following are the valid shard-level metrics. The value "ALL" disables - // every metric. - // - // IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded - // ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For - // more information, see Monitoring the Amazon Kinesis Streams Service with - // Amazon CloudWatch (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) - // in the Amazon Kinesis Streams Developer Guide. - ShardLevelMetrics []*string `min:"1" type:"list" required:"true"` - - // The name of the Amazon Kinesis stream for which to disable enhanced monitoring. - StreamName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DisableEnhancedMonitoringInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DisableEnhancedMonitoringInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableEnhancedMonitoringInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableEnhancedMonitoringInput"} - if s.ShardLevelMetrics == nil { - invalidParams.Add(request.NewErrParamRequired("ShardLevelMetrics")) - } - if s.ShardLevelMetrics != nil && len(s.ShardLevelMetrics) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ShardLevelMetrics", 1)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents the input for EnableEnhancedMonitoring. -type EnableEnhancedMonitoringInput struct { - _ struct{} `type:"structure"` - - // List of shard-level metrics to enable. - // - // The following are the valid shard-level metrics. The value "ALL" enables - // every metric. - // - // IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded - // ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For - // more information, see Monitoring the Amazon Kinesis Streams Service with - // Amazon CloudWatch (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) - // in the Amazon Kinesis Streams Developer Guide. - ShardLevelMetrics []*string `min:"1" type:"list" required:"true"` - - // The name of the stream for which to enable enhanced monitoring. - StreamName *string `min:"1" type:"string" required:"true"` +type metadataDescribeStreamOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s EnableEnhancedMonitoringInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnableEnhancedMonitoringInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableEnhancedMonitoringInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableEnhancedMonitoringInput"} - if s.ShardLevelMetrics == nil { - invalidParams.Add(request.NewErrParamRequired("ShardLevelMetrics")) - } - if s.ShardLevelMetrics != nil && len(s.ShardLevelMetrics) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ShardLevelMetrics", 1)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Represents enhanced metrics types. -type EnhancedMetrics struct { - _ struct{} `type:"structure"` - - // List of shard-level metrics. - // - // The following are the valid shard-level metrics. The value "ALL" enhances - // every metric. - // - // IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded - // ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For - // more information, see Monitoring the Amazon Kinesis Streams Service with - // Amazon CloudWatch (http://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) - // in the Amazon Kinesis Streams Developer Guide. - ShardLevelMetrics []*string `min:"1" type:"list"` -} - -// String returns the string representation -func (s EnhancedMetrics) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnhancedMetrics) GoString() string { - return s.String() -} - -// Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring. -type EnhancedMonitoringOutput struct { - _ struct{} `type:"structure"` - - // Represents the current state of the metrics that are in the enhanced state - // before the operation. - CurrentShardLevelMetrics []*string `min:"1" type:"list"` - - // Represents the list of all the metrics that would be in the enhanced state - // after the operation. - DesiredShardLevelMetrics []*string `min:"1" type:"list"` - - // The name of the Amazon Kinesis stream. - StreamName *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s EnhancedMonitoringOutput) String() string { +func (s DescribeStreamOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EnhancedMonitoringOutput) GoString() string { +func (s DescribeStreamOutput) GoString() string { return s.String() } // Represents the input for GetRecords. type GetRecordsInput struct { - _ struct{} `type:"structure"` - // The maximum number of records to return. Specify a value of up to 10,000. // If you specify a value that is greater than 10,000, GetRecords throws InvalidArgumentException. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // The position in the shard from which you want to start sequentially reading // data records. A shard iterator specifies this position using the sequence // number of a data record in the shard. - ShardIterator *string `min:"1" type:"string" required:"true"` + ShardIterator *string `type:"string" required:"true"` + + metadataGetRecordsInput `json:"-" xml:"-"` +} + +type metadataGetRecordsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1371,29 +942,8 @@ func (s GetRecordsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRecordsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRecordsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.ShardIterator == nil { - invalidParams.Add(request.NewErrParamRequired("ShardIterator")) - } - if s.ShardIterator != nil && len(*s.ShardIterator) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ShardIterator", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output for GetRecords. type GetRecordsOutput struct { - _ struct{} `type:"structure"` - // The number of milliseconds the GetRecords response is from the tip of the // stream, indicating how far behind current time the consumer is. A value of // zero indicates record processing is caught up, and there are no new records @@ -1403,10 +953,16 @@ type GetRecordsOutput struct { // The next position in the shard from which to start sequentially reading data // records. If set to null, the shard has been closed and the requested iterator // will not return any more data. - NextShardIterator *string `min:"1" type:"string"` + NextShardIterator *string `type:"string"` // The data records retrieved from the shard. Records []*Record `type:"list" required:"true"` + + metadataGetRecordsOutput `json:"-" xml:"-"` +} + +type metadataGetRecordsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1421,42 +977,35 @@ func (s GetRecordsOutput) GoString() string { // Represents the input for GetShardIterator. type GetShardIteratorInput struct { - _ struct{} `type:"structure"` - - // The shard ID of the Amazon Kinesis shard to get the iterator for. - ShardId *string `min:"1" type:"string" required:"true"` + // The shard ID of the shard to get the iterator for. + ShardId *string `type:"string" required:"true"` // Determines how the shard iterator is used to start reading data records from // the shard. // - // The following are the valid Amazon Kinesis shard iterator types: + // The following are the valid shard iterator types: // - // AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific - // sequence number, provided in the value StartingSequenceNumber. AFTER_SEQUENCE_NUMBER - // - Start reading right after the position denoted by a specific sequence number, - // provided in the value StartingSequenceNumber. AT_TIMESTAMP - Start reading - // from the position denoted by a specific timestamp, provided in the value - // Timestamp. TRIM_HORIZON - Start reading at the last untrimmed record in the - // shard in the system, which is the oldest data record in the shard. LATEST - // - Start reading just after the most recent record in the shard, so that you - // always read the most recent data in the shard. + // AT_SEQUENCE_NUMBER - Start reading exactly from the position denoted by + // a specific sequence number. AFTER_SEQUENCE_NUMBER - Start reading right after + // the position denoted by a specific sequence number. TRIM_HORIZON - Start + // reading at the last untrimmed record in the shard in the system, which is + // the oldest data record in the shard. LATEST - Start reading just after the + // most recent record in the shard, so that you always read the most recent + // data in the shard. ShardIteratorType *string `type:"string" required:"true" enum:"ShardIteratorType"` - // The sequence number of the data record in the shard from which to start reading. - // Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER. + // The sequence number of the data record in the shard from which to start reading + // from. StartingSequenceNumber *string `type:"string"` - // The name of the Amazon Kinesis stream. - StreamName *string `min:"1" type:"string" required:"true"` + // The name of the stream. + StreamName *string `type:"string" required:"true"` + + metadataGetShardIteratorInput `json:"-" xml:"-"` +} - // The timestamp of the data record from which to start reading. Used with shard - // iterator type AT_TIMESTAMP. A timestamp is the Unix epoch date with precision - // in milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or 1459799926.480. - // If a record with this exact timestamp does not exist, the iterator returned - // is for the next (later) record. If the timestamp is older than the current - // trim horizon, the iterator returned is for the oldest untrimmed data record - // (TRIM_HORIZON). - Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"` +type metadataGetShardIteratorInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1469,39 +1018,18 @@ func (s GetShardIteratorInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetShardIteratorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetShardIteratorInput"} - if s.ShardId == nil { - invalidParams.Add(request.NewErrParamRequired("ShardId")) - } - if s.ShardId != nil && len(*s.ShardId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ShardId", 1)) - } - if s.ShardIteratorType == nil { - invalidParams.Add(request.NewErrParamRequired("ShardIteratorType")) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output for GetShardIterator. type GetShardIteratorOutput struct { - _ struct{} `type:"structure"` - // The position in the shard from which to start reading data records sequentially. // A shard iterator specifies this position using the sequence number of a data // record in a shard. - ShardIterator *string `min:"1" type:"string"` + ShardIterator *string `type:"string"` + + metadataGetShardIteratorOutput `json:"-" xml:"-"` +} + +type metadataGetShardIteratorOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1517,92 +1045,42 @@ func (s GetShardIteratorOutput) GoString() string { // The range of possible hash key values for the shard, which is a set of ordered // contiguous positive integers. type HashKeyRange struct { - _ struct{} `type:"structure"` - // The ending hash key of the hash key range. EndingHashKey *string `type:"string" required:"true"` // The starting hash key of the hash key range. StartingHashKey *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s HashKeyRange) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s HashKeyRange) GoString() string { - return s.String() + metadataHashKeyRange `json:"-" xml:"-"` } -// Represents the input for IncreaseStreamRetentionPeriod. -type IncreaseStreamRetentionPeriodInput struct { - _ struct{} `type:"structure"` - - // The new retention period of the stream, in hours. Must be more than the current - // retention period. - RetentionPeriodHours *int64 `min:"24" type:"integer" required:"true"` - - // The name of the stream to modify. - StreamName *string `min:"1" type:"string" required:"true"` +type metadataHashKeyRange struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s IncreaseStreamRetentionPeriodInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IncreaseStreamRetentionPeriodInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *IncreaseStreamRetentionPeriodInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IncreaseStreamRetentionPeriodInput"} - if s.RetentionPeriodHours == nil { - invalidParams.Add(request.NewErrParamRequired("RetentionPeriodHours")) - } - if s.RetentionPeriodHours != nil && *s.RetentionPeriodHours < 24 { - invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodHours", 24)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type IncreaseStreamRetentionPeriodOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s IncreaseStreamRetentionPeriodOutput) String() string { +func (s HashKeyRange) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s IncreaseStreamRetentionPeriodOutput) GoString() string { +func (s HashKeyRange) GoString() string { return s.String() } // Represents the input for ListStreams. type ListStreamsInput struct { - _ struct{} `type:"structure"` - // The name of the stream to start the list with. - ExclusiveStartStreamName *string `min:"1" type:"string"` + ExclusiveStartStreamName *string `type:"string"` // The maximum number of streams to list. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` + + metadataListStreamsInput `json:"-" xml:"-"` +} + +type metadataListStreamsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1615,32 +1093,20 @@ func (s ListStreamsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListStreamsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListStreamsInput"} - if s.ExclusiveStartStreamName != nil && len(*s.ExclusiveStartStreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExclusiveStartStreamName", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output for ListStreams. type ListStreamsOutput struct { - _ struct{} `type:"structure"` - // If set to true, there are more streams available to list. HasMoreStreams *bool `type:"boolean" required:"true"` // The names of the streams that are associated with the AWS account making // the ListStreams request. StreamNames []*string `type:"list" required:"true"` + + metadataListStreamsOutput `json:"-" xml:"-"` +} + +type metadataListStreamsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1655,19 +1121,23 @@ func (s ListStreamsOutput) GoString() string { // Represents the input for ListTagsForStream. type ListTagsForStreamInput struct { - _ struct{} `type:"structure"` - // The key to use as the starting point for the list of tags. If this parameter // is set, ListTagsForStream gets all tags that occur after ExclusiveStartTagKey. - ExclusiveStartTagKey *string `min:"1" type:"string"` + ExclusiveStartTagKey *string `type:"string"` // The number of tags to return. If this number is less than the total number // of tags associated with the stream, HasMoreTags is set to true. To list additional // tags, set ExclusiveStartTagKey to the last key in the response. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // The name of the stream. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` + + metadataListTagsForStreamInput `json:"-" xml:"-"` +} + +type metadataListTagsForStreamInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1680,32 +1150,8 @@ func (s ListTagsForStreamInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForStreamInput"} - if s.ExclusiveStartTagKey != nil && len(*s.ExclusiveStartTagKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExclusiveStartTagKey", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output for ListTagsForStream. type ListTagsForStreamOutput struct { - _ struct{} `type:"structure"` - // If set to true, more tags are available. To request additional tags, set // ExclusiveStartTagKey to the key of the last tag returned. HasMoreTags *bool `type:"boolean" required:"true"` @@ -1713,6 +1159,12 @@ type ListTagsForStreamOutput struct { // A list of tags associated with StreamName, starting with the first tag after // ExclusiveStartTagKey and up to the specified Limit. Tags []*Tag `type:"list" required:"true"` + + metadataListTagsForStreamOutput `json:"-" xml:"-"` +} + +type metadataListTagsForStreamOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1727,16 +1179,20 @@ func (s ListTagsForStreamOutput) GoString() string { // Represents the input for MergeShards. type MergeShardsInput struct { - _ struct{} `type:"structure"` - // The shard ID of the adjacent shard for the merge. - AdjacentShardToMerge *string `min:"1" type:"string" required:"true"` + AdjacentShardToMerge *string `type:"string" required:"true"` // The shard ID of the shard to combine with the adjacent shard for the merge. - ShardToMerge *string `min:"1" type:"string" required:"true"` + ShardToMerge *string `type:"string" required:"true"` // The name of the stream for the merge. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` + + metadataMergeShardsInput `json:"-" xml:"-"` +} + +type metadataMergeShardsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1749,36 +1205,12 @@ func (s MergeShardsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MergeShardsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MergeShardsInput"} - if s.AdjacentShardToMerge == nil { - invalidParams.Add(request.NewErrParamRequired("AdjacentShardToMerge")) - } - if s.AdjacentShardToMerge != nil && len(*s.AdjacentShardToMerge) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AdjacentShardToMerge", 1)) - } - if s.ShardToMerge == nil { - invalidParams.Add(request.NewErrParamRequired("ShardToMerge")) - } - if s.ShardToMerge != nil && len(*s.ShardToMerge) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ShardToMerge", 1)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type MergeShardsOutput struct { + metadataMergeShardsOutput `json:"-" xml:"-"` } -type MergeShardsOutput struct { - _ struct{} `type:"structure"` +type metadataMergeShardsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1793,14 +1225,9 @@ func (s MergeShardsOutput) GoString() string { // Represents the input for PutRecord. type PutRecordInput struct { - _ struct{} `type:"structure"` - // The data blob to put into the record, which is base64-encoded when the blob - // is serialized. When the data blob (the payload before base64-encoding) is - // added to the partition key size, the total size must not exceed the maximum - // record size (1 MB). - // - // Data is automatically base64 encoded/decoded by the SDK. + // is serialized. The maximum size of the data blob (the payload before base64-encoding) + // is 50 kilobytes (KB) Data []byte `type:"blob" required:"true"` // The hash value used to explicitly determine the shard the data record is @@ -1813,9 +1240,9 @@ type PutRecordInput struct { // that maps the partition key and associated data to a specific shard. Specifically, // an MD5 hash function is used to map partition keys to 128-bit integer values // and to map associated data records to shards. As a result of this hashing - // mechanism, all data records with the same partition key map to the same shard - // within the stream. - PartitionKey *string `min:"1" type:"string" required:"true"` + // mechanism, all data records with the same partition key will map to the same + // shard within the stream. + PartitionKey *string `type:"string" required:"true"` // Guarantees strictly increasing sequence numbers, for puts from the same client // and to the same partition key. Usage: set the SequenceNumberForOrdering of @@ -1825,7 +1252,13 @@ type PutRecordInput struct { SequenceNumberForOrdering *string `type:"string"` // The name of the stream to put the data record into. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` + + metadataPutRecordInput `json:"-" xml:"-"` +} + +type metadataPutRecordInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1838,35 +1271,8 @@ func (s PutRecordInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRecordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRecordInput"} - if s.Data == nil { - invalidParams.Add(request.NewErrParamRequired("Data")) - } - if s.PartitionKey == nil { - invalidParams.Add(request.NewErrParamRequired("PartitionKey")) - } - if s.PartitionKey != nil && len(*s.PartitionKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PartitionKey", 1)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output for PutRecord. type PutRecordOutput struct { - _ struct{} `type:"structure"` - // The sequence number identifier that was assigned to the put data record. // The sequence number for the record is unique across all records in the stream. // A sequence number is the identifier associated with every record put into @@ -1874,7 +1280,13 @@ type PutRecordOutput struct { SequenceNumber *string `type:"string" required:"true"` // The shard ID of the shard where the data record was placed. - ShardId *string `min:"1" type:"string" required:"true"` + ShardId *string `type:"string" required:"true"` + + metadataPutRecordOutput `json:"-" xml:"-"` +} + +type metadataPutRecordOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1889,13 +1301,17 @@ func (s PutRecordOutput) GoString() string { // A PutRecords request. type PutRecordsInput struct { - _ struct{} `type:"structure"` - // The records associated with the request. - Records []*PutRecordsRequestEntry `min:"1" type:"list" required:"true"` + Records []*PutRecordsRequestEntry `type:"list" required:"true"` // The stream name associated with the request. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` + + metadataPutRecordsInput `json:"-" xml:"-"` +} + +type metadataPutRecordsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1908,51 +1324,23 @@ func (s PutRecordsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRecordsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRecordsInput"} - if s.Records == nil { - invalidParams.Add(request.NewErrParamRequired("Records")) - } - if s.Records != nil && len(s.Records) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Records", 1)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - if s.Records != nil { - for i, v := range s.Records { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Records", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // PutRecords results. type PutRecordsOutput struct { - _ struct{} `type:"structure"` - // The number of unsuccessfully processed records in a PutRecords request. - FailedRecordCount *int64 `min:"1" type:"integer"` + FailedRecordCount *int64 `type:"integer"` // An array of successfully and unsuccessfully processed record results, correlated // with the request by natural ordering. A record that is successfully added - // to a stream includes SequenceNumber and ShardId in the result. A record that - // fails to be added to a stream includes ErrorCode and ErrorMessage in the - // result. - Records []*PutRecordsResultEntry `min:"1" type:"list" required:"true"` + // to your Amazon Kinesis stream includes SequenceNumber and ShardId in the + // result. A record that fails to be added to your Amazon Kinesis stream includes + // ErrorCode and ErrorMessage in the result. + Records []*PutRecordsResultEntry `type:"list" required:"true"` + + metadataPutRecordsOutput `json:"-" xml:"-"` +} + +type metadataPutRecordsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1967,14 +1355,9 @@ func (s PutRecordsOutput) GoString() string { // Represents the output for PutRecords. type PutRecordsRequestEntry struct { - _ struct{} `type:"structure"` - // The data blob to put into the record, which is base64-encoded when the blob - // is serialized. When the data blob (the payload before base64-encoding) is - // added to the partition key size, the total size must not exceed the maximum - // record size (1 MB). - // - // Data is automatically base64 encoded/decoded by the SDK. + // is serialized. The maximum size of the data blob (the payload before base64-encoding) + // is 50 kilobytes (KB) Data []byte `type:"blob" required:"true"` // The hash value used to determine explicitly the shard that the data record @@ -1989,7 +1372,13 @@ type PutRecordsRequestEntry struct { // and to map associated data records to shards. As a result of this hashing // mechanism, all data records with the same partition key map to the same shard // within the stream. - PartitionKey *string `min:"1" type:"string" required:"true"` + PartitionKey *string `type:"string" required:"true"` + + metadataPutRecordsRequestEntry `json:"-" xml:"-"` +} + +type metadataPutRecordsRequestEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2002,32 +1391,12 @@ func (s PutRecordsRequestEntry) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRecordsRequestEntry) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRecordsRequestEntry"} - if s.Data == nil { - invalidParams.Add(request.NewErrParamRequired("Data")) - } - if s.PartitionKey == nil { - invalidParams.Add(request.NewErrParamRequired("PartitionKey")) - } - if s.PartitionKey != nil && len(*s.PartitionKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PartitionKey", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the result of an individual record from a PutRecords request. -// A record that is successfully added to a stream includes SequenceNumber and -// ShardId in the result. A record that fails to be added to the stream includes -// ErrorCode and ErrorMessage in the result. +// A record that is successfully added to your Amazon Kinesis stream includes +// SequenceNumber and ShardId in the result. A record that fails to be added +// to your Amazon Kinesis stream includes ErrorCode and ErrorMessage in the +// result. type PutRecordsResultEntry struct { - _ struct{} `type:"structure"` - // The error code for an individual record result. ErrorCodes can be either // ProvisionedThroughputExceededException or InternalFailure. ErrorCode *string `type:"string"` @@ -2042,7 +1411,13 @@ type PutRecordsResultEntry struct { SequenceNumber *string `type:"string"` // The shard ID for an individual record result. - ShardId *string `min:"1" type:"string"` + ShardId *string `type:"string"` + + metadataPutRecordsResultEntry `json:"-" xml:"-"` +} + +type metadataPutRecordsResultEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2058,25 +1433,23 @@ func (s PutRecordsResultEntry) GoString() string { // The unit of data of the Amazon Kinesis stream, which is composed of a sequence // number, a partition key, and a data blob. type Record struct { - _ struct{} `type:"structure"` - - // The approximate time that the record was inserted into the stream. - ApproximateArrivalTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` - // The data blob. The data in the blob is both opaque and immutable to the Amazon // Kinesis service, which does not inspect, interpret, or change the data in - // the blob in any way. When the data blob (the payload before base64-encoding) - // is added to the partition key size, the total size must not exceed the maximum - // record size (1 MB). - // - // Data is automatically base64 encoded/decoded by the SDK. + // the blob in any way. The maximum size of the data blob (the payload before + // base64-encoding) is 50 kilobytes (KB) Data []byte `type:"blob" required:"true"` // Identifies which shard in the stream the data record is assigned to. - PartitionKey *string `min:"1" type:"string" required:"true"` + PartitionKey *string `type:"string" required:"true"` - // The unique identifier of the record in the stream. + // The unique identifier for the record in the Amazon Kinesis stream. SequenceNumber *string `type:"string" required:"true"` + + metadataRecord `json:"-" xml:"-"` +} + +type metadataRecord struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2091,13 +1464,17 @@ func (s Record) GoString() string { // Represents the input for RemoveTagsFromStream. type RemoveTagsFromStreamInput struct { - _ struct{} `type:"structure"` - // The name of the stream. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` // A list of tag keys. Each corresponding tag is removed from the stream. - TagKeys []*string `min:"1" type:"list" required:"true"` + TagKeys []*string `type:"list" required:"true"` + + metadataRemoveTagsFromStreamInput `json:"-" xml:"-"` +} + +type metadataRemoveTagsFromStreamInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2110,30 +1487,12 @@ func (s RemoveTagsFromStreamInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsFromStreamInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromStreamInput"} - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - if s.TagKeys != nil && len(s.TagKeys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RemoveTagsFromStreamOutput struct { + metadataRemoveTagsFromStreamOutput `json:"-" xml:"-"` } -type RemoveTagsFromStreamOutput struct { - _ struct{} `type:"structure"` +type metadataRemoveTagsFromStreamOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2148,14 +1507,18 @@ func (s RemoveTagsFromStreamOutput) GoString() string { // The range of possible sequence numbers for the shard. type SequenceNumberRange struct { - _ struct{} `type:"structure"` - // The ending sequence number for the range. Shards that are in the OPEN state // have an ending sequence number of null. EndingSequenceNumber *string `type:"string"` // The starting sequence number for the range. StartingSequenceNumber *string `type:"string" required:"true"` + + metadataSequenceNumberRange `json:"-" xml:"-"` +} + +type metadataSequenceNumberRange struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2170,23 +1533,27 @@ func (s SequenceNumberRange) GoString() string { // A uniquely identified group of data records in an Amazon Kinesis stream. type Shard struct { - _ struct{} `type:"structure"` - - // The shard ID of the shard adjacent to the shard's parent. - AdjacentParentShardId *string `min:"1" type:"string"` + // The shard Id of the shard adjacent to the shard's parent. + AdjacentParentShardId *string `type:"string"` // The range of possible hash key values for the shard, which is a set of ordered // contiguous positive integers. HashKeyRange *HashKeyRange `type:"structure" required:"true"` - // The shard ID of the shard's parent. - ParentShardId *string `min:"1" type:"string"` + // The shard Id of the shard's parent. + ParentShardId *string `type:"string"` // The range of possible sequence numbers for the shard. SequenceNumberRange *SequenceNumberRange `type:"structure" required:"true"` - // The unique identifier of the shard within the stream. - ShardId *string `min:"1" type:"string" required:"true"` + // The unique identifier of the shard within the Amazon Kinesis stream. + ShardId *string `type:"string" required:"true"` + + metadataShard `json:"-" xml:"-"` +} + +type metadataShard struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2201,8 +1568,6 @@ func (s Shard) GoString() string { // Represents the input for SplitShard. type SplitShardInput struct { - _ struct{} `type:"structure"` - // A hash key value for the starting hash key of one of the child shards created // by the split. The hash key range for a given shard constitutes a set of ordered // contiguous positive integers. The value for NewStartingHashKey must be in @@ -2213,10 +1578,16 @@ type SplitShardInput struct { NewStartingHashKey *string `type:"string" required:"true"` // The shard ID of the shard to split. - ShardToSplit *string `min:"1" type:"string" required:"true"` + ShardToSplit *string `type:"string" required:"true"` // The name of the stream for the shard split. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` + + metadataSplitShardInput `json:"-" xml:"-"` +} + +type metadataSplitShardInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2229,33 +1600,12 @@ func (s SplitShardInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SplitShardInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SplitShardInput"} - if s.NewStartingHashKey == nil { - invalidParams.Add(request.NewErrParamRequired("NewStartingHashKey")) - } - if s.ShardToSplit == nil { - invalidParams.Add(request.NewErrParamRequired("ShardToSplit")) - } - if s.ShardToSplit != nil && len(*s.ShardToSplit) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ShardToSplit", 1)) - } - if s.StreamName == nil { - invalidParams.Add(request.NewErrParamRequired("StreamName")) - } - if s.StreamName != nil && len(*s.StreamName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SplitShardOutput struct { + metadataSplitShardOutput `json:"-" xml:"-"` } -type SplitShardOutput struct { - _ struct{} `type:"structure"` +type metadataSplitShardOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2270,17 +1620,9 @@ func (s SplitShardOutput) GoString() string { // Represents the output for DescribeStream. type StreamDescription struct { - _ struct{} `type:"structure"` - - // Represents the current enhanced monitoring settings of the stream. - EnhancedMonitoring []*EnhancedMetrics `type:"list" required:"true"` - // If set to true, more shards in the stream are available to describe. HasMoreShards *bool `type:"boolean" required:"true"` - // The current retention period, in hours. - RetentionPeriodHours *int64 `min:"24" type:"integer" required:"true"` - // The shards that comprise the stream. Shards []*Shard `type:"list" required:"true"` @@ -2288,20 +1630,27 @@ type StreamDescription struct { StreamARN *string `type:"string" required:"true"` // The name of the stream being described. - StreamName *string `min:"1" type:"string" required:"true"` + StreamName *string `type:"string" required:"true"` - // The current status of the stream being described. The stream status is one - // of the following states: + // The current status of the stream being described. + // + // The stream status is one of the following states: // - // CREATING - The stream is being created. Amazon Kinesis immediately returns - // and sets StreamStatus to CREATING. DELETING - The stream is being deleted. + // CREATING - The stream is being created. Amazon Kinesis immediately returns + // and sets StreamStatus to CREATING. DELETING - The stream is being deleted. // The specified stream is in the DELETING state until Amazon Kinesis completes - // the deletion. ACTIVE - The stream exists and is ready for read and write + // the deletion. ACTIVE - The stream exists and is ready for read and write // operations or deletion. You should perform read and write operations only - // on an ACTIVE stream. UPDATING - Shards in the stream are being merged or + // on an ACTIVE stream. UPDATING - Shards in the stream are being merged or // split. Read and write operations continue to work while the stream is in // the UPDATING state. StreamStatus *string `type:"string" required:"true" enum:"StreamStatus"` + + metadataStreamDescription `json:"-" xml:"-"` +} + +type metadataStreamDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2316,16 +1665,20 @@ func (s StreamDescription) GoString() string { // Metadata assigned to the stream, consisting of a key-value pair. type Tag struct { - _ struct{} `type:"structure"` - // A unique identifier for the tag. Maximum length: 128 characters. Valid characters: // Unicode letters, digits, white space, _ . / = + - % @ - Key *string `min:"1" type:"string" required:"true"` + Key *string `type:"string" required:"true"` // An optional string, typically used to describe or define the tag. Maximum // length: 256 characters. Valid characters: Unicode letters, digits, white // space, _ . / = + - % @ Value *string `type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2338,25 +1691,6 @@ func (s Tag) GoString() string { return s.String() } -const ( - // @enum MetricsName - MetricsNameIncomingBytes = "IncomingBytes" - // @enum MetricsName - MetricsNameIncomingRecords = "IncomingRecords" - // @enum MetricsName - MetricsNameOutgoingBytes = "OutgoingBytes" - // @enum MetricsName - MetricsNameOutgoingRecords = "OutgoingRecords" - // @enum MetricsName - MetricsNameWriteProvisionedThroughputExceeded = "WriteProvisionedThroughputExceeded" - // @enum MetricsName - MetricsNameReadProvisionedThroughputExceeded = "ReadProvisionedThroughputExceeded" - // @enum MetricsName - MetricsNameIteratorAgeMilliseconds = "IteratorAgeMilliseconds" - // @enum MetricsName - MetricsNameAll = "ALL" -) - const ( // @enum ShardIteratorType ShardIteratorTypeAtSequenceNumber = "AT_SEQUENCE_NUMBER" @@ -2366,8 +1700,6 @@ const ( ShardIteratorTypeTrimHorizon = "TRIM_HORIZON" // @enum ShardIteratorType ShardIteratorTypeLatest = "LATEST" - // @enum ShardIteratorType - ShardIteratorTypeAtTimestamp = "AT_TIMESTAMP" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go index ffbb78bea..6ace1c77f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kinesis" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleKinesis_AddTagsToStream() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.AddTagsToStreamInput{ StreamName: aws.String("StreamName"), // Required @@ -39,7 +38,7 @@ func ExampleKinesis_AddTagsToStream() { } func ExampleKinesis_CreateStream() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.CreateStreamInput{ ShardCount: aws.Int64(1), // Required @@ -58,28 +57,8 @@ func ExampleKinesis_CreateStream() { fmt.Println(resp) } -func ExampleKinesis_DecreaseStreamRetentionPeriod() { - svc := kinesis.New(session.New()) - - params := &kinesis.DecreaseStreamRetentionPeriodInput{ - RetentionPeriodHours: aws.Int64(1), // Required - StreamName: aws.String("StreamName"), // Required - } - resp, err := svc.DecreaseStreamRetentionPeriod(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleKinesis_DeleteStream() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.DeleteStreamInput{ StreamName: aws.String("StreamName"), // Required @@ -98,7 +77,7 @@ func ExampleKinesis_DeleteStream() { } func ExampleKinesis_DescribeStream() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.DescribeStreamInput{ StreamName: aws.String("StreamName"), // Required @@ -118,54 +97,8 @@ func ExampleKinesis_DescribeStream() { fmt.Println(resp) } -func ExampleKinesis_DisableEnhancedMonitoring() { - svc := kinesis.New(session.New()) - - params := &kinesis.DisableEnhancedMonitoringInput{ - ShardLevelMetrics: []*string{ // Required - aws.String("MetricsName"), // Required - // More values... - }, - StreamName: aws.String("StreamName"), // Required - } - resp, err := svc.DisableEnhancedMonitoring(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleKinesis_EnableEnhancedMonitoring() { - svc := kinesis.New(session.New()) - - params := &kinesis.EnableEnhancedMonitoringInput{ - ShardLevelMetrics: []*string{ // Required - aws.String("MetricsName"), // Required - // More values... - }, - StreamName: aws.String("StreamName"), // Required - } - resp, err := svc.EnableEnhancedMonitoring(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleKinesis_GetRecords() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.GetRecordsInput{ ShardIterator: aws.String("ShardIterator"), // Required @@ -185,14 +118,13 @@ func ExampleKinesis_GetRecords() { } func ExampleKinesis_GetShardIterator() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.GetShardIteratorInput{ ShardId: aws.String("ShardId"), // Required ShardIteratorType: aws.String("ShardIteratorType"), // Required StreamName: aws.String("StreamName"), // Required StartingSequenceNumber: aws.String("SequenceNumber"), - Timestamp: aws.Time(time.Now()), } resp, err := svc.GetShardIterator(params) @@ -207,28 +139,8 @@ func ExampleKinesis_GetShardIterator() { fmt.Println(resp) } -func ExampleKinesis_IncreaseStreamRetentionPeriod() { - svc := kinesis.New(session.New()) - - params := &kinesis.IncreaseStreamRetentionPeriodInput{ - RetentionPeriodHours: aws.Int64(1), // Required - StreamName: aws.String("StreamName"), // Required - } - resp, err := svc.IncreaseStreamRetentionPeriod(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleKinesis_ListStreams() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.ListStreamsInput{ ExclusiveStartStreamName: aws.String("StreamName"), @@ -248,7 +160,7 @@ func ExampleKinesis_ListStreams() { } func ExampleKinesis_ListTagsForStream() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.ListTagsForStreamInput{ StreamName: aws.String("StreamName"), // Required @@ -269,7 +181,7 @@ func ExampleKinesis_ListTagsForStream() { } func ExampleKinesis_MergeShards() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.MergeShardsInput{ AdjacentShardToMerge: aws.String("ShardId"), // Required @@ -290,7 +202,7 @@ func ExampleKinesis_MergeShards() { } func ExampleKinesis_PutRecord() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.PutRecordInput{ Data: []byte("PAYLOAD"), // Required @@ -313,7 +225,7 @@ func ExampleKinesis_PutRecord() { } func ExampleKinesis_PutRecords() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.PutRecordsInput{ Records: []*kinesis.PutRecordsRequestEntry{ // Required @@ -340,7 +252,7 @@ func ExampleKinesis_PutRecords() { } func ExampleKinesis_RemoveTagsFromStream() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.RemoveTagsFromStreamInput{ StreamName: aws.String("StreamName"), // Required @@ -363,7 +275,7 @@ func ExampleKinesis_RemoveTagsFromStream() { } func ExampleKinesis_SplitShard() { - svc := kinesis.New(session.New()) + svc := kinesis.New(nil) params := &kinesis.SplitShardInput{ NewStartingHashKey: aws.String("HashKey"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go index f0c373aec..675c25368 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface.go @@ -18,10 +18,6 @@ type KinesisAPI interface { CreateStream(*kinesis.CreateStreamInput) (*kinesis.CreateStreamOutput, error) - DecreaseStreamRetentionPeriodRequest(*kinesis.DecreaseStreamRetentionPeriodInput) (*request.Request, *kinesis.DecreaseStreamRetentionPeriodOutput) - - DecreaseStreamRetentionPeriod(*kinesis.DecreaseStreamRetentionPeriodInput) (*kinesis.DecreaseStreamRetentionPeriodOutput, error) - DeleteStreamRequest(*kinesis.DeleteStreamInput) (*request.Request, *kinesis.DeleteStreamOutput) DeleteStream(*kinesis.DeleteStreamInput) (*kinesis.DeleteStreamOutput, error) @@ -32,14 +28,6 @@ type KinesisAPI interface { DescribeStreamPages(*kinesis.DescribeStreamInput, func(*kinesis.DescribeStreamOutput, bool) bool) error - DisableEnhancedMonitoringRequest(*kinesis.DisableEnhancedMonitoringInput) (*request.Request, *kinesis.EnhancedMonitoringOutput) - - DisableEnhancedMonitoring(*kinesis.DisableEnhancedMonitoringInput) (*kinesis.EnhancedMonitoringOutput, error) - - EnableEnhancedMonitoringRequest(*kinesis.EnableEnhancedMonitoringInput) (*request.Request, *kinesis.EnhancedMonitoringOutput) - - EnableEnhancedMonitoring(*kinesis.EnableEnhancedMonitoringInput) (*kinesis.EnhancedMonitoringOutput, error) - GetRecordsRequest(*kinesis.GetRecordsInput) (*request.Request, *kinesis.GetRecordsOutput) GetRecords(*kinesis.GetRecordsInput) (*kinesis.GetRecordsOutput, error) @@ -48,10 +36,6 @@ type KinesisAPI interface { GetShardIterator(*kinesis.GetShardIteratorInput) (*kinesis.GetShardIteratorOutput, error) - IncreaseStreamRetentionPeriodRequest(*kinesis.IncreaseStreamRetentionPeriodInput) (*request.Request, *kinesis.IncreaseStreamRetentionPeriodOutput) - - IncreaseStreamRetentionPeriod(*kinesis.IncreaseStreamRetentionPeriodInput) (*kinesis.IncreaseStreamRetentionPeriodOutput, error) - ListStreamsRequest(*kinesis.ListStreamsInput) (*request.Request, *kinesis.ListStreamsOutput) ListStreams(*kinesis.ListStreamsInput) (*kinesis.ListStreamsOutput, error) @@ -82,5 +66,3 @@ type KinesisAPI interface { SplitShard(*kinesis.SplitShardInput) (*kinesis.SplitShardOutput, error) } - -var _ KinesisAPI = (*kinesis.Kinesis)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface_test.go new file mode 100644 index 000000000..b7a24a611 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package kinesisiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/kinesis" + "github.com/aws/aws-sdk-go/service/kinesis/kinesisiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*kinesisiface.KinesisAPI)(nil), kinesis.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/service.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/service.go index 687b7466b..d64ed2d48 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/service.go @@ -4,75 +4,52 @@ package kinesis import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -// Amazon Kinesis Streams is a managed service that scales elastically for real -// time processing of streaming big data. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// Amazon Kinesis is a managed service that scales elastically for real time +// processing of streaming big data. type Kinesis struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "kinesis" - -// New creates a new instance of the Kinesis client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a Kinesis client from just a session. -// svc := kinesis.New(mySession) -// -// // Create a Kinesis client with additional configuration -// svc := kinesis.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *Kinesis { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Kinesis { - svc := &Kinesis{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2013-12-02", - JSONVersion: "1.1", - TargetPrefix: "Kinesis_20131202", - }, - handlers, - ), +// New returns a new Kinesis client. +func New(config *aws.Config) *Kinesis { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "kinesis", + APIVersion: "2013-12-02", + JSONVersion: "1.1", + TargetPrefix: "Kinesis_20131202", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &Kinesis{service} } // newRequest creates a new request for a Kinesis operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/waiters.go deleted file mode 100644 index 383a2e0b7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesis/waiters.go +++ /dev/null @@ -1,30 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package kinesis - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *Kinesis) WaitUntilStreamExists(input *DescribeStreamInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeStream", - Delay: 10, - MaxAttempts: 18, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "StreamDescription.StreamStatus", - Expected: "ACTIVE", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/api.go b/vendor/github.com/aws/aws-sdk-go/service/kms/api.go index 9ced27dde..97c71066a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/api.go @@ -8,43 +8,8 @@ import ( "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/private/protocol/jsonrpc" ) -const opCancelKeyDeletion = "CancelKeyDeletion" - -// CancelKeyDeletionRequest generates a request for the CancelKeyDeletion operation. -func (c *KMS) CancelKeyDeletionRequest(input *CancelKeyDeletionInput) (req *request.Request, output *CancelKeyDeletionOutput) { - op := &request.Operation{ - Name: opCancelKeyDeletion, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CancelKeyDeletionInput{} - } - - req = c.newRequest(op, input, output) - output = &CancelKeyDeletionOutput{} - req.Data = output - return -} - -// Cancels the deletion of a customer master key (CMK). When this operation -// is successful, the CMK is set to the Disabled state. To enable a CMK, use -// EnableKey. -// -// For more information about scheduling and canceling deletion of a CMK, see -// Deleting Customer Master Keys (http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html) -// in the AWS Key Management Service Developer Guide. -func (c *KMS) CancelKeyDeletion(input *CancelKeyDeletionInput) (*CancelKeyDeletionOutput, error) { - req, out := c.CancelKeyDeletionRequest(input) - err := req.Send() - return out, err -} - const opCreateAlias = "CreateAlias" // CreateAliasRequest generates a request for the CreateAlias operation. @@ -60,8 +25,6 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateAliasOutput{} req.Data = output return @@ -75,10 +38,10 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, // alias that begins with "aws" after the forward slash (alias/aws...) is reserved // by Amazon Web Services (AWS). // -// The alias and the key it is mapped to must be in the same AWS account and -// the same region. +// To associate an alias with a different key, call UpdateAlias. // -// To map an alias to a different key, call UpdateAlias. +// Note that you cannot create or update an alias that represents a key in +// another account. func (c *KMS) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -105,11 +68,11 @@ func (c *KMS) CreateGrantRequest(input *CreateGrantInput) (req *request.Request, return } -// Adds a grant to a key to specify who can use the key and under what conditions. -// Grants are alternate permission mechanisms to key policies. -// -// For more information about grants, see Grants (http://docs.aws.amazon.com/kms/latest/developerguide/grants.html) -// in the AWS Key Management Service Developer Guide. +// Adds a grant to a key to specify who can access the key and under what conditions. +// Grants are alternate permission mechanisms to key policies. For more information +// about grants, see Grants (http://docs.aws.amazon.com/kms/latest/developerguide/grants.html) +// in the developer guide. If a grant is absent, access to the key is evaluated +// based on IAM policies attached to the user. ListGrants RetireGrant RevokeGrant func (c *KMS) CreateGrant(input *CreateGrantInput) (*CreateGrantOutput, error) { req, out := c.CreateGrantRequest(input) err := req.Send() @@ -136,17 +99,10 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out return } -// Creates a customer master key (CMK). -// -// You can use a CMK to encrypt small amounts of data (4 KiB or less) directly, -// but CMKs are more commonly used to encrypt data encryption keys (DEKs), which -// are used to encrypt raw data. For more information about DEKs and the difference -// between CMKs and DEKs, see the following: -// -// The GenerateDataKey operation -// -// AWS Key Management Service Concepts (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) -// in the AWS Key Management Service Developer Guide +// Creates a customer master key. Customer master keys can be used to encrypt +// small amounts of data (less than 4K) directly, but they are most commonly +// used to encrypt or envelope data keys that are then used to encrypt customer +// data. For more information about data keys, see GenerateDataKey and GenerateDataKeyWithoutPlaintext. func (c *KMS) CreateKey(input *CreateKeyInput) (*CreateKeyOutput, error) { req, out := c.CreateKeyRequest(input) err := req.Send() @@ -174,22 +130,17 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output } // Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted -// by using any of the following functions: -// -// GenerateDataKey +// by using any of the following functions: GenerateDataKey GenerateDataKeyWithoutPlaintext +// Encrypt // -// GenerateDataKeyWithoutPlaintext -// -// Encrypt -// -// Note that if a caller has been granted access permissions to all keys -// (through, for example, IAM user policies that grant Decrypt permission on -// all resources), then ciphertext encrypted by using keys in other accounts -// where the key grants access to the caller can be decrypted. To remedy this, -// we recommend that you do not grant Decrypt access in an IAM user policy. -// Instead grant Decrypt access only in key policies. If you must grant Decrypt -// access in an IAM user policy, you should scope the resource to specific keys -// or to specific trusted accounts. +// Note that if a caller has been granted access permissions to all keys (through, +// for example, IAM user policies that grant Decrypt permission on all resources), +// then ciphertext encrypted by using keys in other accounts where the key grants +// access to the caller can be decrypted. To remedy this, we recommend that +// you do not grant Decrypt access in an IAM user policy. Instead grant Decrypt +// access only in key policies. If you must grant Decrypt access in an IAM user +// policy, you should scope the resource to specific keys or to specific trusted +// accounts. func (c *KMS) Decrypt(input *DecryptInput) (*DecryptOutput, error) { req, out := c.DecryptRequest(input) err := req.Send() @@ -211,14 +162,13 @@ func (c *KMS) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteAliasOutput{} req.Data = output return } -// Deletes the specified alias. To map an alias to a different key, call UpdateAlias. +// Deletes the specified alias. To associate an alias with a different key, +// call UpdateAlias. func (c *KMS) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) err := req.Send() @@ -267,18 +217,12 @@ func (c *KMS) DisableKeyRequest(input *DisableKeyInput) (req *request.Request, o } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DisableKeyOutput{} req.Data = output return } -// Sets the state of a customer master key (CMK) to disabled, thereby preventing -// its use for cryptographic operations. For more information about how key -// state affects the use of a CMK, see How Key State Affects the 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. +// Marks a key as disabled, thereby preventing its use. func (c *KMS) DisableKey(input *DisableKeyInput) (*DisableKeyOutput, error) { req, out := c.DisableKeyRequest(input) err := req.Send() @@ -300,8 +244,6 @@ func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DisableKeyRotationOutput{} req.Data = output return @@ -329,14 +271,13 @@ func (c *KMS) EnableKeyRequest(input *EnableKeyInput) (req *request.Request, out } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &EnableKeyOutput{} req.Data = output return } -// Marks a key as enabled, thereby permitting its use. +// Marks a key as enabled, thereby permitting its use. You can have up to 25 +// enabled keys at one time. func (c *KMS) EnableKey(input *EnableKeyInput) (*EnableKeyOutput, error) { req, out := c.EnableKeyRequest(input) err := req.Send() @@ -358,8 +299,6 @@ func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &EnableKeyRotationOutput{} req.Data = output return @@ -393,18 +332,15 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output } // Encrypts plaintext into ciphertext by using a customer master key. The Encrypt -// function has two primary use cases: -// -// You can encrypt up to 4 KB of arbitrary data such as an RSA key, a database -// password, or other sensitive customer information. -// -// If you are moving encrypted data from one region to another, you can use -// this API to encrypt in the new region the plaintext data key that was used -// to encrypt the data in the original region. This provides you with an encrypted -// copy of the data key that can be decrypted in the new region and used there -// to decrypt the encrypted data. +// function has two primary use cases: You can encrypt up to 4 KB of arbitrary +// data such as an RSA key, a database password, or other sensitive customer +// information. If you are moving encrypted data from one region to another, +// you can use this API to encrypt in the new region the plaintext data key +// that was used to encrypt the data in the original region. This provides you +// with an encrypted copy of the data key that can be decrypted in the new region +// and used there to decrypt the encrypted data. // -// Unless you are moving encrypted data from one region to another, you don't +// Unless you are moving encrypted data from one region to another, you don't // use this function to encrypt a generated data key within a region. You retrieve // data keys already encrypted by calling the GenerateDataKey or GenerateDataKeyWithoutPlaintext // function. Data keys don't need to be encrypted again by calling Encrypt. @@ -450,18 +386,16 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. // memory. Store the encrypted data key (contained in the CiphertextBlob field) // alongside of the locally encrypted data. // -// You should not call the Encrypt function to re-encrypt your data keys within +// You should not call the Encrypt function to re-encrypt your data keys within // a region. GenerateDataKey always returns the data key encrypted and tied // to the customer master key that will be used to decrypt it. There is no need -// to decrypt it twice. -// -// If you decide to use the optional EncryptionContext parameter, you must -// also store the context in full or at least store enough information along -// with the encrypted data to be able to reconstruct the context when submitting -// the ciphertext to the Decrypt API. It is a good practice to choose a context -// that you can reconstruct on the fly to better secure the ciphertext. For -// more information about how this parameter is used, see Encryption Context -// (http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html). +// to decrypt it twice. If you decide to use the optional EncryptionContext +// parameter, you must also store the context in full or at least store enough +// information along with the encrypted data to be able to reconstruct the context +// when submitting the ciphertext to the Decrypt API. It is a good practice +// to choose a context that you can reconstruct on the fly to better secure +// the ciphertext. For more information about how this parameter is used, see +// Encryption Context (http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html). // // To decrypt data, pass the encrypted data key to the Decrypt API. Decrypt // uses the associated master key to decrypt the encrypted data key and returns @@ -624,7 +558,6 @@ func (c *KMS) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { func (c *KMS) ListAliasesPages(input *ListAliasesInput, fn func(p *ListAliasesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListAliasesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListAliasesOutput), lastPage) }) @@ -633,7 +566,7 @@ func (c *KMS) ListAliasesPages(input *ListAliasesInput, fn func(p *ListAliasesOu const opListGrants = "ListGrants" // ListGrantsRequest generates a request for the ListGrants operation. -func (c *KMS) ListGrantsRequest(input *ListGrantsInput) (req *request.Request, output *ListGrantsResponse) { +func (c *KMS) ListGrantsRequest(input *ListGrantsInput) (req *request.Request, output *ListGrantsOutput) { op := &request.Operation{ Name: opListGrants, HTTPMethod: "POST", @@ -651,23 +584,22 @@ func (c *KMS) ListGrantsRequest(input *ListGrantsInput) (req *request.Request, o } req = c.newRequest(op, input, output) - output = &ListGrantsResponse{} + output = &ListGrantsOutput{} req.Data = output return } // List the grants for a specified key. -func (c *KMS) ListGrants(input *ListGrantsInput) (*ListGrantsResponse, error) { +func (c *KMS) ListGrants(input *ListGrantsInput) (*ListGrantsOutput, error) { req, out := c.ListGrantsRequest(input) err := req.Send() return out, err } -func (c *KMS) ListGrantsPages(input *ListGrantsInput, fn func(p *ListGrantsResponse, lastPage bool) (shouldContinue bool)) error { +func (c *KMS) ListGrantsPages(input *ListGrantsInput, fn func(p *ListGrantsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListGrantsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListGrantsResponse), lastPage) + return fn(p.(*ListGrantsOutput), lastPage) }) } @@ -706,7 +638,6 @@ func (c *KMS) ListKeyPolicies(input *ListKeyPoliciesInput) (*ListKeyPoliciesOutp func (c *KMS) ListKeyPoliciesPages(input *ListKeyPoliciesInput, fn func(p *ListKeyPoliciesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListKeyPoliciesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListKeyPoliciesOutput), lastPage) }) @@ -747,43 +678,11 @@ func (c *KMS) ListKeys(input *ListKeysInput) (*ListKeysOutput, error) { func (c *KMS) ListKeysPages(input *ListKeysInput, fn func(p *ListKeysOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListKeysRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListKeysOutput), lastPage) }) } -const opListRetirableGrants = "ListRetirableGrants" - -// ListRetirableGrantsRequest generates a request for the ListRetirableGrants operation. -func (c *KMS) ListRetirableGrantsRequest(input *ListRetirableGrantsInput) (req *request.Request, output *ListGrantsResponse) { - op := &request.Operation{ - Name: opListRetirableGrants, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListRetirableGrantsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListGrantsResponse{} - req.Data = output - return -} - -// Returns a list of all grants for which the grant's RetiringPrincipal matches -// the one specified. -// -// A typical use is to list all grants that you are able to retire. To retire -// a grant, use RetireGrant. -func (c *KMS) ListRetirableGrants(input *ListRetirableGrantsInput) (*ListGrantsResponse, error) { - req, out := c.ListRetirableGrantsRequest(input) - err := req.Send() - return out, err -} - const opPutKeyPolicy = "PutKeyPolicy" // PutKeyPolicyRequest generates a request for the PutKeyPolicy operation. @@ -799,17 +698,12 @@ func (c *KMS) PutKeyPolicyRequest(input *PutKeyPolicyInput) (req *request.Reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutKeyPolicyOutput{} req.Data = output return } -// Attaches a key policy to the specified customer master key (CMK). -// -// For more information about key policies, see Key Policies (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) -// in the AWS Key Management Service Developer Guide. +// Attaches a policy to the specified key. func (c *KMS) PutKeyPolicy(input *PutKeyPolicyInput) (*PutKeyPolicyOutput, error) { req, out := c.PutKeyPolicyRequest(input) err := req.Send() @@ -869,8 +763,6 @@ func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RetireGrantOutput{} req.Data = output return @@ -878,18 +770,13 @@ func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, // Retires a grant. You can retire a grant when you're done using it to clean // up. You should revoke a grant when you intend to actively deny operations -// that depend on it. The following are permitted to call this API: -// -// The account that created the grant -// -// The RetiringPrincipal, if present -// -// The GranteePrincipal, if RetireGrant is a grantee operation -// -// The grant to retire must be identified by its grant token or by a combination -// of the key ARN and the grant ID. A grant token is a unique variable-length -// base64-encoded string. A grant ID is a 64 character unique identifier of -// a grant. Both are returned by the CreateGrant function. +// that depend on it. The following are permitted to call this API: The account +// that created the grant The RetiringPrincipal, if present The GranteePrincipal, +// if RetireGrant is a grantee operation The grant to retire must be identified +// by its grant token or by a combination of the key ARN and the grant ID. A +// grant token is a unique variable-length base64-encoded string. A grant ID +// is a 64 character unique identifier of a grant. Both are returned by the +// CreateGrant function. func (c *KMS) RetireGrant(input *RetireGrantInput) (*RetireGrantOutput, error) { req, out := c.RetireGrantRequest(input) err := req.Send() @@ -911,8 +798,6 @@ func (c *KMS) RevokeGrantRequest(input *RevokeGrantInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RevokeGrantOutput{} req.Data = output return @@ -926,48 +811,6 @@ func (c *KMS) RevokeGrant(input *RevokeGrantInput) (*RevokeGrantOutput, error) { return out, err } -const opScheduleKeyDeletion = "ScheduleKeyDeletion" - -// ScheduleKeyDeletionRequest generates a request for the ScheduleKeyDeletion operation. -func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req *request.Request, output *ScheduleKeyDeletionOutput) { - op := &request.Operation{ - Name: opScheduleKeyDeletion, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ScheduleKeyDeletionInput{} - } - - req = c.newRequest(op, input, output) - output = &ScheduleKeyDeletionOutput{} - req.Data = output - return -} - -// Schedules the deletion of a customer master key (CMK). You may provide a -// waiting period, specified in days, before deletion occurs. If you do not -// provide a waiting period, the default period of 30 days is used. When this -// operation is successful, the state of the CMK changes to PendingDeletion. -// Before the waiting period ends, you can use CancelKeyDeletion to cancel the -// deletion of the CMK. After the waiting period ends, AWS KMS deletes the CMK -// and all AWS KMS data associated with it, including all aliases that point -// to it. -// -// Deleting a CMK is a destructive and potentially dangerous operation. When -// a CMK is deleted, all data that was encrypted under the CMK is rendered unrecoverable. -// To restrict the use of a CMK without deleting it, use DisableKey. -// -// For more information about scheduling a CMK for deletion, see Deleting -// Customer Master Keys (http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html) -// in the AWS Key Management Service Developer Guide. -func (c *KMS) ScheduleKeyDeletion(input *ScheduleKeyDeletionInput) (*ScheduleKeyDeletionOutput, error) { - req, out := c.ScheduleKeyDeletionRequest(input) - err := req.Send() - return out, err -} - const opUpdateAlias = "UpdateAlias" // UpdateAliasRequest generates a request for the UpdateAlias operation. @@ -983,26 +826,24 @@ func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateAliasOutput{} req.Data = output return } -// Updates an alias to map it to a different key. -// -// An alias is not a property of a key. Therefore, an alias can be mapped to -// and unmapped from an existing key without changing the properties of the -// key. +// Updates an alias to associate it with a different key. // // An alias name can contain only alphanumeric characters, forward slashes // (/), underscores (_), and dashes (-). An alias must start with the word "alias" // followed by a forward slash (alias/). An alias that begins with "aws" after // the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS). // -// The alias and the key it is mapped to must be in the same AWS account and -// the same region. +// An alias is not a property of a key. Therefore, an alias can be associated +// with and disassociated from an existing key without changing the properties +// of the key. +// +// Note that you cannot create or update an alias that represents a key in +// another account. func (c *KMS) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error) { req, out := c.UpdateAliasRequest(input) err := req.Send() @@ -1024,8 +865,6 @@ func (c *KMS) UpdateKeyDescriptionRequest(input *UpdateKeyDescriptionInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateKeyDescriptionOutput{} req.Data = output return @@ -1040,105 +879,49 @@ func (c *KMS) UpdateKeyDescription(input *UpdateKeyDescriptionInput) (*UpdateKey // Contains information about an alias. type AliasListEntry struct { - _ struct{} `type:"structure"` - // String that contains the key ARN. - AliasArn *string `min:"20" type:"string"` + AliasArn *string `type:"string"` // String that contains the alias. - AliasName *string `min:"1" type:"string"` + AliasName *string `type:"string"` // String that contains the key identifier pointed to by the alias. - TargetKeyId *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s AliasListEntry) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AliasListEntry) GoString() string { - return s.String() -} - -type CancelKeyDeletionInput struct { - _ struct{} `type:"structure"` - - // The unique identifier for the customer master key (CMK) for which to cancel - // deletion. - // - // To specify this value, use the unique key ID or the Amazon Resource Name - // (ARN) of the CMK. Examples: - // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - // - // To obtain the unique key ID and key ARN for a given CMK, use ListKeys - // or DescribeKey. - KeyId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CancelKeyDeletionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CancelKeyDeletionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelKeyDeletionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelKeyDeletionInput"} - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } + TargetKeyId *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataAliasListEntry `json:"-" xml:"-"` } -type CancelKeyDeletionOutput struct { - _ struct{} `type:"structure"` - - // The unique identifier of the master key for which deletion is canceled. - KeyId *string `min:"1" type:"string"` +type metadataAliasListEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CancelKeyDeletionOutput) String() string { +func (s AliasListEntry) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CancelKeyDeletionOutput) GoString() string { +func (s AliasListEntry) GoString() string { return s.String() } type CreateAliasInput struct { - _ struct{} `type:"structure"` - // String that contains the display name. The name must start with the word // "alias" followed by a forward slash (alias/). Aliases that begin with "alias/AWS" // are reserved. - AliasName *string `min:"1" type:"string" required:"true"` + AliasName *string `type:"string" required:"true"` // An identifier of the key for which you are creating the alias. This value // cannot be another alias but can be a globally unique identifier or a fully - // specified ARN to a key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - TargetKeyId *string `min:"1" type:"string" required:"true"` + // specified ARN to a key. Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + TargetKeyId *string `type:"string" required:"true"` + + metadataCreateAliasInput `json:"-" xml:"-"` +} + +type metadataCreateAliasInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1151,30 +934,12 @@ func (s CreateAliasInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAliasInput"} - if s.AliasName == nil { - invalidParams.Add(request.NewErrParamRequired("AliasName")) - } - if s.AliasName != nil && len(*s.AliasName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AliasName", 1)) - } - if s.TargetKeyId == nil { - invalidParams.Add(request.NewErrParamRequired("TargetKeyId")) - } - if s.TargetKeyId != nil && len(*s.TargetKeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetKeyId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateAliasOutput struct { + metadataCreateAliasOutput `json:"-" xml:"-"` } -type CreateAliasOutput struct { - _ struct{} `type:"structure"` +type metadataCreateAliasOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1188,90 +953,37 @@ func (s CreateAliasOutput) GoString() string { } type CreateGrantInput struct { - _ struct{} `type:"structure"` - - // The conditions under which the operations permitted by the grant are allowed. - // - // You can use this value to allow the operations permitted by the grant only - // when a specified encryption context is present. For more information, see - // Encryption Context (http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html) - // in the AWS Key Management Service Developer Guide. + // Specifies the conditions under which the actions specified by the Operations + // parameter are allowed. Constraints *GrantConstraints `type:"structure"` - // A list of grant tokens. - // - // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) - // in the AWS Key Management Service Developer Guide. + // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token). GrantTokens []*string `type:"list"` - // The principal that is given permission to perform the operations that the - // grant permits. - // - // To specify the principal, use the Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // of an AWS principal. Valid AWS principals include AWS accounts (root), IAM - // users, federated users, and assumed role users. For examples of the ARN syntax - // to use for specifying a principal, see AWS Identity and Access Management - // (IAM) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam) - // in the Example ARNs section of the AWS General Reference. - GranteePrincipal *string `min:"1" type:"string" required:"true"` - - // The unique identifier for the customer master key (CMK) that the grant applies - // to. - // - // To specify this value, use the globally unique key ID or the Amazon Resource - // Name (ARN) of the key. Examples: - // - // Globally unique key ID: 12345678-1234-1234-1234-123456789012 - // - // Key ARN: arn:aws:kms:us-west-2:123456789012:key/12345678-1234-1234-1234-123456789012 - KeyId *string `min:"1" type:"string" required:"true"` + // Principal given permission by the grant to use the key identified by the + // keyId parameter. + GranteePrincipal *string `type:"string" required:"true"` - // A friendly name for identifying the grant. Use this value to prevent unintended - // creation of duplicate grants when retrying this request. - // - // When this value is absent, all CreateGrant requests result in a new grant - // with a unique GrantId even if all the supplied parameters are identical. - // This can result in unintended duplicates when you retry the CreateGrant request. - // - // When this value is present, you can retry a CreateGrant request with identical - // parameters; if the grant already exists, the original GrantId is returned - // without creating a new grant. Note that the returned grant token is unique - // with every CreateGrant request, even when a duplicate GrantId is returned. - // All grant tokens obtained in this way can be used interchangeably. - Name *string `min:"1" type:"string"` - - // A list of operations that the grant permits. The list can contain any combination - // of one or more of the following values: - // - // Decrypt - // - // Encrypt - // - // GenerateDataKey - // - // GenerateDataKeyWithoutPlaintext - // - // ReEncryptFrom (http://docs.aws.amazon.com/kms/latest/APIReference/API_ReEncrypt.html) - // - // ReEncryptTo (http://docs.aws.amazon.com/kms/latest/APIReference/API_ReEncrypt.html) - // - // CreateGrant - // - // RetireGrant - // - // DescribeKey + // A unique identifier for the customer master key. This value can be a globally + // unique identifier or the fully specified ARN to a key. Key ARN Example - + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` + + // List of operations permitted by the grant. This can be any combination of + // one or more of the following values: Decrypt Encrypt GenerateDataKey GenerateDataKeyWithoutPlaintext + // ReEncryptFrom ReEncryptTo CreateGrant RetireGrant Operations []*string `type:"list"` - // The principal that is given permission to retire the grant by using RetireGrant - // operation. - // - // To specify the principal, use the Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // of an AWS principal. Valid AWS principals include AWS accounts (root), IAM - // users, federated users, and assumed role users. For examples of the ARN syntax - // to use for specifying a principal, see AWS Identity and Access Management - // (IAM) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam) - // in the Example ARNs section of the AWS General Reference. - RetiringPrincipal *string `min:"1" type:"string"` + // Principal given permission to retire the grant. For more information, see + // RetireGrant. + RetiringPrincipal *string `type:"string"` + + metadataCreateGrantInput `json:"-" xml:"-"` +} + +type metadataCreateGrantInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1284,47 +996,18 @@ func (s CreateGrantInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateGrantInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateGrantInput"} - if s.GranteePrincipal == nil { - invalidParams.Add(request.NewErrParamRequired("GranteePrincipal")) - } - if s.GranteePrincipal != nil && len(*s.GranteePrincipal) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GranteePrincipal", 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 s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.RetiringPrincipal != nil && len(*s.RetiringPrincipal) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RetiringPrincipal", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateGrantOutput struct { - _ struct{} `type:"structure"` + // Unique grant identifier. You can use the GrantId value to revoke a grant. + GrantId *string `type:"string"` - // The unique identifier for the grant. - // - // You can use the GrantId in a subsequent RetireGrant or RevokeGrant operation. - GrantId *string `min:"1" type:"string"` + // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token). + GrantToken *string `type:"string"` - // The grant token. - // - // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) - // in the AWS Key Management Service Developer Guide. - GrantToken *string `min:"1" type:"string"` + metadataCreateGrantOutput `json:"-" xml:"-"` +} + +type metadataCreateGrantOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1338,58 +1021,23 @@ func (s CreateGrantOutput) GoString() string { } type CreateKeyInput struct { - _ struct{} `type:"structure"` - - // A flag to indicate whether to bypass the key policy lockout safety check. - // - // Setting this value to true increases the likelihood that the CMK becomes - // unmanageable. Do not set this value to true indiscriminately. - // - // For more information, refer to the scenario in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) - // section in the AWS Key Management Service Developer Guide. - // - // Use this parameter only when you include a policy in the request and you - // intend to prevent the principal making the request from making a subsequent - // PutKeyPolicy request on the CMK. - // - // The default value is false. - BypassPolicyLockoutSafetyCheck *bool `type:"boolean"` - - // A description of the CMK. - // - // Use a description that helps you decide whether the CMK is appropriate for - // a task. + // Description of the key. We recommend that you choose a description that helps + // your customer decide whether the key is appropriate for a task. Description *string `type:"string"` - // The intended use of the CMK. - // - // You can use CMKs only for symmetric encryption and decryption. + // Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, + // and only symmetric encryption and decryption are supported. KeyUsage *string `type:"string" enum:"KeyUsageType"` - // The key policy to attach to the CMK. - // - // If you specify a key policy, it must meet the following criteria: - // - // It must allow the principal making the CreateKey request to make a subsequent - // PutKeyPolicy request on the CMK. This reduces the likelihood that the CMK - // becomes unmanageable. For more information, refer to the scenario in the - // Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) - // section in the AWS Key Management Service Developer Guide. - // - // The principal(s) specified in the key policy must exist and be visible - // to AWS KMS. When you create a new AWS principal (for example, an IAM user - // or role), you might need to enforce a delay before specifying the new principal - // in a key policy because the new principal might not immediately be visible - // to AWS KMS. For more information, see Changes that I make are not always - // immediately visible (http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) - // in the IAM User Guide. - // - // If you do not specify a policy, AWS KMS attaches a default key policy - // to the CMK. For more information, see Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) - // in the AWS Key Management Service Developer Guide. - // - // The policy size limit is 32 KiB (32768 bytes). - Policy *string `min:"1" type:"string"` + // Policy to be attached to the key. This is required and delegates back to + // the account. The key is the root of trust. + Policy *string `type:"string"` + + metadataCreateKeyInput `json:"-" xml:"-"` +} + +type metadataCreateKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1402,24 +1050,15 @@ func (s CreateKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateKeyInput"} - if s.Policy != nil && len(*s.Policy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) - } +type CreateKeyOutput struct { + // Metadata associated with the key. + KeyMetadata *KeyMetadata `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateKeyOutput `json:"-" xml:"-"` } -type CreateKeyOutput struct { - _ struct{} `type:"structure"` - - // Metadata associated with the CMK. - KeyMetadata *KeyMetadata `type:"structure"` +type metadataCreateKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1433,23 +1072,22 @@ func (s CreateKeyOutput) GoString() string { } type DecryptInput struct { - _ struct{} `type:"structure"` - // Ciphertext to be decrypted. The blob includes metadata. - // - // CiphertextBlob is automatically base64 encoded/decoded by the SDK. - CiphertextBlob []byte `min:"1" type:"blob" required:"true"` + CiphertextBlob []byte `type:"blob" required:"true"` // The encryption context. If this was specified in the Encrypt function, it // must be specified here or the decryption operation will fail. For more information, // see Encryption Context (http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html). EncryptionContext map[string]*string `type:"map"` - // A list of grant tokens. - // - // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) - // in the AWS Key Management Service Developer Guide. + // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token). GrantTokens []*string `type:"list"` + + metadataDecryptInput `json:"-" xml:"-"` +} + +type metadataDecryptInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1462,34 +1100,20 @@ func (s DecryptInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DecryptInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DecryptInput"} - if s.CiphertextBlob == nil { - invalidParams.Add(request.NewErrParamRequired("CiphertextBlob")) - } - if s.CiphertextBlob != nil && len(s.CiphertextBlob) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CiphertextBlob", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DecryptOutput struct { - _ struct{} `type:"structure"` - // ARN of the key used to perform the decryption. This value is returned if // no errors are encountered during the operation. - KeyId *string `min:"1" type:"string"` + KeyId *string `type:"string"` // Decrypted plaintext data. This value may not be returned if the customer // master key is not available or if you didn't have permission to use it. - // - // Plaintext is automatically base64 encoded/decoded by the SDK. - Plaintext []byte `min:"1" type:"blob"` + Plaintext []byte `type:"blob"` + + metadataDecryptOutput `json:"-" xml:"-"` +} + +type metadataDecryptOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1503,11 +1127,15 @@ func (s DecryptOutput) GoString() string { } type DeleteAliasInput struct { - _ struct{} `type:"structure"` - // The alias to be deleted. The name must start with the word "alias" followed // by a forward slash (alias/). Aliases that begin with "alias/AWS" are reserved. - AliasName *string `min:"1" type:"string" required:"true"` + AliasName *string `type:"string" required:"true"` + + metadataDeleteAliasInput `json:"-" xml:"-"` +} + +type metadataDeleteAliasInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1520,24 +1148,12 @@ func (s DeleteAliasInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAliasInput"} - if s.AliasName == nil { - invalidParams.Add(request.NewErrParamRequired("AliasName")) - } - if s.AliasName != nil && len(*s.AliasName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AliasName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteAliasOutput struct { + metadataDeleteAliasOutput `json:"-" xml:"-"` } -type DeleteAliasOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteAliasOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1551,26 +1167,19 @@ func (s DeleteAliasOutput) GoString() string { } type DescribeKeyInput struct { - _ struct{} `type:"structure"` - - // A list of grant tokens. - // - // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) - // in the AWS Key Management Service Developer Guide. - GrantTokens []*string `type:"list"` - // A unique identifier for the customer master key. This value can be a globally // unique identifier, a fully specified ARN to either an alias or a key, or - // an alias name prefixed by "alias/". - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - // - // Alias Name Example - alias/MyAliasName - KeyId *string `min:"1" type:"string" required:"true"` + // an alias name prefixed by "alias/". Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 Alias + // Name Example - alias/MyAliasName + KeyId *string `type:"string" required:"true"` + + metadataDescribeKeyInput `json:"-" xml:"-"` +} + +type metadataDescribeKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1583,27 +1192,15 @@ func (s DescribeKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeKeyInput"} - 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 -} - type DescribeKeyOutput struct { - _ struct{} `type:"structure"` - // Metadata associated with the key. KeyMetadata *KeyMetadata `type:"structure"` + + metadataDescribeKeyOutput `json:"-" xml:"-"` +} + +type metadataDescribeKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1617,16 +1214,17 @@ func (s DescribeKeyOutput) GoString() string { } type DisableKeyInput struct { - _ struct{} `type:"structure"` + // A unique identifier for the customer master key. This value can be a globally + // unique identifier or the fully specified ARN to a key. Key ARN Example - + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` - // A unique identifier for the CMK. - // - // Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example: - // - // Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab - // - // ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - KeyId *string `min:"1" type:"string" required:"true"` + metadataDisableKeyInput `json:"-" xml:"-"` +} + +type metadataDisableKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1639,24 +1237,12 @@ func (s DisableKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableKeyInput"} - 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 +type DisableKeyOutput struct { + metadataDisableKeyOutput `json:"-" xml:"-"` } -type DisableKeyOutput struct { - _ struct{} `type:"structure"` +type metadataDisableKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1670,15 +1256,17 @@ func (s DisableKeyOutput) GoString() string { } type DisableKeyRotationInput struct { - _ struct{} `type:"structure"` - // A unique identifier for the customer master key. This value can be a globally - // unique identifier or the fully specified ARN to a key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - KeyId *string `min:"1" type:"string" required:"true"` + // unique identifier or the fully specified ARN to a key. Key ARN Example - + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` + + metadataDisableKeyRotationInput `json:"-" xml:"-"` +} + +type metadataDisableKeyRotationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1691,24 +1279,12 @@ func (s DisableKeyRotationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableKeyRotationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableKeyRotationInput"} - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } +type DisableKeyRotationOutput struct { + metadataDisableKeyRotationOutput `json:"-" xml:"-"` +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DisableKeyRotationOutput struct { - _ struct{} `type:"structure"` +type metadataDisableKeyRotationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1722,15 +1298,17 @@ func (s DisableKeyRotationOutput) GoString() string { } type EnableKeyInput struct { - _ struct{} `type:"structure"` - // A unique identifier for the customer master key. This value can be a globally - // unique identifier or the fully specified ARN to a key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - KeyId *string `min:"1" type:"string" required:"true"` + // unique identifier or the fully specified ARN to a key. Key ARN Example - + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` + + metadataEnableKeyInput `json:"-" xml:"-"` +} + +type metadataEnableKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1743,24 +1321,12 @@ func (s EnableKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableKeyInput"} - 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 +type EnableKeyOutput struct { + metadataEnableKeyOutput `json:"-" xml:"-"` } -type EnableKeyOutput struct { - _ struct{} `type:"structure"` +type metadataEnableKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1774,15 +1340,17 @@ func (s EnableKeyOutput) GoString() string { } type EnableKeyRotationInput struct { - _ struct{} `type:"structure"` - // A unique identifier for the customer master key. This value can be a globally - // unique identifier or the fully specified ARN to a key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - KeyId *string `min:"1" type:"string" required:"true"` + // unique identifier or the fully specified ARN to a key. Key ARN Example - + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` + + metadataEnableKeyRotationInput `json:"-" xml:"-"` +} + +type metadataEnableKeyRotationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1795,24 +1363,12 @@ func (s EnableKeyRotationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableKeyRotationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableKeyRotationInput"} - 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 +type EnableKeyRotationOutput struct { + metadataEnableKeyRotationOutput `json:"-" xml:"-"` } -type EnableKeyRotationOutput struct { - _ struct{} `type:"structure"` +type metadataEnableKeyRotationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1826,37 +1382,31 @@ func (s EnableKeyRotationOutput) GoString() string { } type EncryptInput struct { - _ struct{} `type:"structure"` - // Name/value pair that specifies the encryption context to be used for authenticated // encryption. If used here, the same value must be supplied to the Decrypt // API or decryption will fail. For more information, see Encryption Context // (http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html). EncryptionContext map[string]*string `type:"map"` - // A list of grant tokens. - // - // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) - // in the AWS Key Management Service Developer Guide. + // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token). GrantTokens []*string `type:"list"` // A unique identifier for the customer master key. This value can be a globally // unique identifier, a fully specified ARN to either an alias or a key, or - // an alias name prefixed by "alias/". - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - // - // Alias Name Example - alias/MyAliasName - KeyId *string `min:"1" type:"string" required:"true"` + // an alias name prefixed by "alias/". Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 Alias + // Name Example - alias/MyAliasName + KeyId *string `type:"string" required:"true"` // Data to be encrypted. - // - // Plaintext is automatically base64 encoded/decoded by the SDK. - Plaintext []byte `min:"1" type:"blob" required:"true"` + Plaintext []byte `type:"blob" required:"true"` + + metadataEncryptInput `json:"-" xml:"-"` +} + +type metadataEncryptInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1869,39 +1419,19 @@ func (s EncryptInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EncryptInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EncryptInput"} - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } - if s.Plaintext == nil { - invalidParams.Add(request.NewErrParamRequired("Plaintext")) - } - if s.Plaintext != nil && len(s.Plaintext) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Plaintext", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type EncryptOutput struct { - _ struct{} `type:"structure"` - // The encrypted plaintext. If you are using the CLI, the value is Base64 encoded. // Otherwise, it is not encoded. - // - // CiphertextBlob is automatically base64 encoded/decoded by the SDK. - CiphertextBlob []byte `min:"1" type:"blob"` + CiphertextBlob []byte `type:"blob"` // The ID of the key used during encryption. - KeyId *string `min:"1" type:"string"` + KeyId *string `type:"string"` + + metadataEncryptOutput `json:"-" xml:"-"` +} + +type metadataEncryptOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1915,31 +1445,21 @@ func (s EncryptOutput) GoString() string { } type GenerateDataKeyInput struct { - _ struct{} `type:"structure"` - // Name/value pair that contains additional data to be authenticated during // the encryption and decryption processes that use the key. This value is logged // by AWS CloudTrail to provide context around the data encrypted by the key. EncryptionContext map[string]*string `type:"map"` - // A list of grant tokens. - // - // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) - // in the AWS Key Management Service Developer Guide. + // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token). GrantTokens []*string `type:"list"` // A unique identifier for the customer master key. This value can be a globally // unique identifier, a fully specified ARN to either an alias or a key, or - // an alias name prefixed by "alias/". - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - // - // Alias Name Example - alias/MyAliasName - KeyId *string `min:"1" type:"string" required:"true"` + // an alias name prefixed by "alias/". Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 Alias + // Name Example - alias/MyAliasName + KeyId *string `type:"string" required:"true"` // Value that identifies the encryption algorithm and key size to generate a // data key for. Currently this can be AES_128 or AES_256. @@ -1948,7 +1468,13 @@ type GenerateDataKeyInput struct { // Integer that contains the number of bytes to generate. Common values are // 128, 256, 512, and 1024. 1024 is the current limit. We recommend that you // use the KeySpec parameter instead. - NumberOfBytes *int64 `min:"1" type:"integer"` + NumberOfBytes *int64 `type:"integer"` + + metadataGenerateDataKeyInput `json:"-" xml:"-"` +} + +type metadataGenerateDataKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1961,28 +1487,7 @@ func (s GenerateDataKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GenerateDataKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GenerateDataKeyInput"} - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } - if s.NumberOfBytes != nil && *s.NumberOfBytes < 1 { - invalidParams.Add(request.NewErrParamMinValue("NumberOfBytes", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GenerateDataKeyOutput struct { - _ struct{} `type:"structure"` - // Ciphertext that contains the encrypted data key. You must store the blob // and enough information to reconstruct the encryption context so that the // data encrypted by using the key can later be decrypted. You must provide @@ -1991,19 +1496,21 @@ type GenerateDataKeyOutput struct { // // If you are using the CLI, the value is Base64 encoded. Otherwise, it is // not encoded. - // - // CiphertextBlob is automatically base64 encoded/decoded by the SDK. - CiphertextBlob []byte `min:"1" type:"blob"` + CiphertextBlob []byte `type:"blob"` // System generated unique identifier of the key to be used to decrypt the encrypted // copy of the data key. - KeyId *string `min:"1" type:"string"` + KeyId *string `type:"string"` // Plaintext that contains the data key. Use this for encryption and decryption // and then remove it from memory as soon as possible. - // - // Plaintext is automatically base64 encoded/decoded by the SDK. - Plaintext []byte `min:"1" type:"blob"` + Plaintext []byte `type:"blob"` + + metadataGenerateDataKeyOutput `json:"-" xml:"-"` +} + +type metadataGenerateDataKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2017,30 +1524,20 @@ func (s GenerateDataKeyOutput) GoString() string { } type GenerateDataKeyWithoutPlaintextInput struct { - _ struct{} `type:"structure"` - // Name:value pair that contains additional data to be authenticated during // the encryption and decryption processes. EncryptionContext map[string]*string `type:"map"` - // A list of grant tokens. - // - // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) - // in the AWS Key Management Service Developer Guide. + // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token). GrantTokens []*string `type:"list"` // A unique identifier for the customer master key. This value can be a globally // unique identifier, a fully specified ARN to either an alias or a key, or - // an alias name prefixed by "alias/". - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - // - // Alias Name Example - alias/MyAliasName - KeyId *string `min:"1" type:"string" required:"true"` + // an alias name prefixed by "alias/". Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 Alias + // Name Example - alias/MyAliasName + KeyId *string `type:"string" required:"true"` // Value that identifies the encryption algorithm and key size. Currently this // can be AES_128 or AES_256. @@ -2049,7 +1546,13 @@ type GenerateDataKeyWithoutPlaintextInput struct { // Integer that contains the number of bytes to generate. Common values are // 128, 256, 512, 1024 and so on. We recommend that you use the KeySpec parameter // instead. - NumberOfBytes *int64 `min:"1" type:"integer"` + NumberOfBytes *int64 `type:"integer"` + + metadataGenerateDataKeyWithoutPlaintextInput `json:"-" xml:"-"` +} + +type metadataGenerateDataKeyWithoutPlaintextInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2062,40 +1565,23 @@ func (s GenerateDataKeyWithoutPlaintextInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GenerateDataKeyWithoutPlaintextInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GenerateDataKeyWithoutPlaintextInput"} - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } - if s.NumberOfBytes != nil && *s.NumberOfBytes < 1 { - invalidParams.Add(request.NewErrParamMinValue("NumberOfBytes", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GenerateDataKeyWithoutPlaintextOutput struct { - _ struct{} `type:"structure"` - // Ciphertext that contains the wrapped data key. You must store the blob and // encryption context so that the key can be used in a future decrypt operation. // // If you are using the CLI, the value is Base64 encoded. Otherwise, it is // not encoded. - // - // CiphertextBlob is automatically base64 encoded/decoded by the SDK. - CiphertextBlob []byte `min:"1" type:"blob"` + CiphertextBlob []byte `type:"blob"` // System generated unique identifier of the key to be used to decrypt the encrypted // copy of the data key. - KeyId *string `min:"1" type:"string"` + KeyId *string `type:"string"` + + metadataGenerateDataKeyWithoutPlaintextOutput `json:"-" xml:"-"` +} + +type metadataGenerateDataKeyWithoutPlaintextOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2109,11 +1595,15 @@ func (s GenerateDataKeyWithoutPlaintextOutput) GoString() string { } type GenerateRandomInput struct { - _ struct{} `type:"structure"` - // Integer that contains the number of bytes to generate. Common values are // 128, 256, 512, 1024 and so on. The current limit is 1024 bytes. - NumberOfBytes *int64 `min:"1" type:"integer"` + NumberOfBytes *int64 `type:"integer"` + + metadataGenerateRandomInput `json:"-" xml:"-"` +} + +type metadataGenerateRandomInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2126,26 +1616,15 @@ func (s GenerateRandomInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GenerateRandomInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GenerateRandomInput"} - if s.NumberOfBytes != nil && *s.NumberOfBytes < 1 { - invalidParams.Add(request.NewErrParamMinValue("NumberOfBytes", 1)) - } +type GenerateRandomOutput struct { + // Plaintext that contains the unpredictable byte string. + Plaintext []byte `type:"blob"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGenerateRandomOutput `json:"-" xml:"-"` } -type GenerateRandomOutput struct { - _ struct{} `type:"structure"` - - // Plaintext that contains the unpredictable byte string. - // - // Plaintext is automatically base64 encoded/decoded by the SDK. - Plaintext []byte `min:"1" type:"blob"` +type metadataGenerateRandomOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2159,19 +1638,21 @@ func (s GenerateRandomOutput) GoString() string { } type GetKeyPolicyInput struct { - _ struct{} `type:"structure"` - // A unique identifier for the customer master key. This value can be a globally - // unique identifier or the fully specified ARN to a key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - KeyId *string `min:"1" type:"string" required:"true"` + // unique identifier or the fully specified ARN to a key. Key ARN Example - + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` // String that contains the name of the policy. Currently, this must be "default". // Policy names can be discovered by calling ListKeyPolicies. - PolicyName *string `min:"1" type:"string" required:"true"` + PolicyName *string `type:"string" required:"true"` + + metadataGetKeyPolicyInput `json:"-" xml:"-"` +} + +type metadataGetKeyPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2184,33 +1665,15 @@ func (s GetKeyPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetKeyPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetKeyPolicyInput"} - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } +type GetKeyPolicyOutput struct { + // A policy document in JSON format. + Policy *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetKeyPolicyOutput `json:"-" xml:"-"` } -type GetKeyPolicyOutput struct { - _ struct{} `type:"structure"` - - // A policy document in JSON format. - Policy *string `min:"1" type:"string"` +type metadataGetKeyPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2224,15 +1687,17 @@ func (s GetKeyPolicyOutput) GoString() string { } type GetKeyRotationStatusInput struct { - _ struct{} `type:"structure"` - // A unique identifier for the customer master key. This value can be a globally - // unique identifier or the fully specified ARN to a key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - KeyId *string `min:"1" type:"string" required:"true"` + // unique identifier or the fully specified ARN to a key. Key ARN Example - + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` + + metadataGetKeyRotationStatusInput `json:"-" xml:"-"` +} + +type metadataGetKeyRotationStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2245,27 +1710,15 @@ func (s GetKeyRotationStatusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetKeyRotationStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetKeyRotationStatusInput"} - 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 -} - type GetKeyRotationStatusOutput struct { - _ struct{} `type:"structure"` - // A Boolean value that specifies whether key rotation is enabled. KeyRotationEnabled *bool `type:"boolean"` + + metadataGetKeyRotationStatusOutput `json:"-" xml:"-"` +} + +type metadataGetKeyRotationStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2278,29 +1731,20 @@ func (s GetKeyRotationStatusOutput) GoString() string { return s.String() } -// A structure for specifying the conditions under which the operations permitted -// by the grant are allowed. -// -// You can use this structure to allow the operations permitted by the grant -// only when a specified encryption context is present. For more information -// about encryption context, see Encryption Context (http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html) -// in the AWS Key Management Service Developer Guide. +// Contains constraints on the grant. type GrantConstraints struct { - _ struct{} `type:"structure"` - - // Contains a list of key-value pairs that must be present in the encryption - // context of a subsequent operation permitted by the grant. When a subsequent - // operation permitted by the grant includes an encryption context that matches - // this list, the grant allows the operation. Otherwise, the operation is not - // allowed. + // The constraint contains additional key/value pairs that serve to further + // limit the grant. EncryptionContextEquals map[string]*string `type:"map"` - // Contains a list of key-value pairs, a subset of which must be present in - // the encryption context of a subsequent operation permitted by the grant. - // When a subsequent operation permitted by the grant includes an encryption - // context that matches this list or is a subset of this list, the grant allows - // the operation. Otherwise, the operation is not allowed. + // The constraint equals the full encryption context. EncryptionContextSubset map[string]*string `type:"map"` + + metadataGrantConstraints `json:"-" xml:"-"` +} + +type metadataGrantConstraints struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2313,38 +1757,34 @@ func (s GrantConstraints) GoString() string { return s.String() } -// Contains information about an entry in a list of grants. +// Contains information about each entry in the grant list. type GrantListEntry struct { - _ struct{} `type:"structure"` - - // The conditions under which the grant's operations are allowed. + // Specifies the conditions under which the actions specified by the Operations + // parameter are allowed. Constraints *GrantConstraints `type:"structure"` - // The date and time when the grant was created. - CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The unique identifier for the grant. - GrantId *string `min:"1" type:"string"` + // Unique grant identifier. + GrantId *string `type:"string"` - // The principal that receives the grant's permissions. - GranteePrincipal *string `min:"1" type:"string"` + // The principal that receives the grant permission. + GranteePrincipal *string `type:"string"` - // The AWS account under which the grant was issued. - IssuingAccount *string `min:"1" type:"string"` + // The account under which the grant was issued. + IssuingAccount *string `type:"string"` - // The unique identifier for the customer master key (CMK) to which the grant - // applies. - KeyId *string `min:"1" type:"string"` + // List of operations permitted by the grant. This can be any combination of + // one or more of the following values: Decrypt Encrypt GenerateDataKey GenerateDataKeyWithoutPlaintext + // ReEncryptFrom ReEncryptTo CreateGrant + Operations []*string `type:"list"` - // The friendly name that identifies the grant. If a name was provided in the - // CreateGrant request, that name is returned. Otherwise this value is null. - Name *string `min:"1" type:"string"` + // The principal that can retire the account. + RetiringPrincipal *string `type:"string"` - // The list of operations permitted by the grant. - Operations []*string `type:"list"` + metadataGrantListEntry `json:"-" xml:"-"` +} - // The principal that can retire the grant. - RetiringPrincipal *string `min:"1" type:"string"` +type metadataGrantListEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2359,13 +1799,17 @@ func (s GrantListEntry) GoString() string { // Contains information about each entry in the key list. type KeyListEntry struct { - _ struct{} `type:"structure"` - // ARN of the key. - KeyArn *string `min:"20" type:"string"` + KeyArn *string `type:"string"` // Unique identifier of the key. - KeyId *string `min:"1" type:"string"` + KeyId *string `type:"string"` + + metadataKeyListEntry `json:"-" xml:"-"` +} + +type metadataKeyListEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2378,50 +1822,34 @@ func (s KeyListEntry) GoString() string { return s.String() } -// Contains metadata about a customer master key (CMK). -// -// This data type is used as a response element for the CreateKey and DescribeKey -// operations. +// Contains metadata associated with a specific key. type KeyMetadata struct { - _ struct{} `type:"structure"` - - // The twelve-digit account ID of the AWS account that owns the key. + // Account ID number. AWSAccountId *string `type:"string"` - // The Amazon Resource Name (ARN) of the key. For examples, see AWS Key Management - // Service (AWS KMS) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms) - // in the Example ARNs section of the AWS General Reference. - Arn *string `min:"20" type:"string"` + // Key ARN (Amazon Resource Name). + Arn *string `type:"string"` - // The date and time when the key was created. + // Date the key was created. CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"` - // The date and time after which AWS KMS deletes the customer master key (CMK). - // This value is present only when KeyState is PendingDeletion, otherwise this - // value is null. - DeletionDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The friendly description of the key. + // The description of the key. Description *string `type:"string"` - // Specifies whether the key is enabled. When KeyState is Enabled this value - // is true, otherwise it is false. + // Value that specifies whether the key is enabled. Enabled *bool `type:"boolean"` - // The globally unique identifier for the key. - KeyId *string `min:"1" type:"string" required:"true"` + // Unique identifier for the key. + KeyId *string `type:"string" required:"true"` - // The state of the customer master key (CMK). - // - // For more information about how key state affects the use of a CMK, see How - // Key State Affects the 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. - KeyState *string `type:"string" enum:"KeyState"` - - // The cryptographic operations for which you can use the key. Currently the - // only allowed value is ENCRYPT_DECRYPT, which means you can use the key for - // the Encrypt and Decrypt operations. + // A value that specifies what operation(s) the key can perform. KeyUsage *string `type:"string" enum:"KeyUsageType"` + + metadataKeyMetadata `json:"-" xml:"-"` +} + +type metadataKeyMetadata struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2435,20 +1863,21 @@ func (s KeyMetadata) GoString() string { } type ListAliasesInput struct { - _ struct{} `type:"structure"` + // Specify this parameter when paginating results to indicate the maximum number + // of aliases you want in each response. If there are additional aliases beyond + // the maximum you specify, the Truncated response element will be set to true. + Limit *int64 `type:"integer"` - // When paginating results, specify the maximum number of items to return in - // the response. If additional items exist beyond the number you specify, the - // Truncated element in the response is set to true. - // - // This value is optional. If you include a value, it must be between 1 and - // 100, inclusive. If you do not include a value, it defaults to 50. - Limit *int64 `min:"1" type:"integer"` + // Use this parameter when paginating results, and only in a subsequent request + // after you've received a response where the results are truncated. Set it + // to the value of the NextMarker element in the response you just received. + Marker *string `type:"string"` + + metadataListAliasesInput `json:"-" xml:"-"` +} - // Use this parameter only when paginating results and only in a subsequent - // request after you receive a response with truncated results. Set it to the - // value of NextMarker from the response you just received. - Marker *string `min:"1" type:"string"` +type metadataListAliasesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2461,36 +1890,24 @@ func (s ListAliasesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAliasesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAliasesInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListAliasesOutput struct { - _ struct{} `type:"structure"` - // A list of key aliases in the user's account. Aliases []*AliasListEntry `type:"list"` - // When Truncated is true, this value is present and contains the value to use - // for the Marker parameter in a subsequent pagination request. - NextMarker *string `min:"1" type:"string"` + // If Truncated is true, this value is present and contains the value to use + // for the Marker request parameter in a subsequent pagination request. + NextMarker *string `type:"string"` // A flag that indicates whether there are more items in the list. If your results - // were truncated, you can use the Marker parameter to make a subsequent pagination - // request to retrieve more items in the list. + // were truncated, you can make a subsequent pagination request using the Marker + // request parameter to retrieve more aliases in the list. Truncated *bool `type:"boolean"` + + metadataListAliasesOutput `json:"-" xml:"-"` +} + +type metadataListAliasesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2504,28 +1921,28 @@ func (s ListAliasesOutput) GoString() string { } type ListGrantsInput struct { - _ struct{} `type:"structure"` - // A unique identifier for the customer master key. This value can be a globally - // unique identifier or the fully specified ARN to a key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - KeyId *string `min:"1" type:"string" required:"true"` + // unique identifier or the fully specified ARN to a key. Key ARN Example - + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` - // When paginating results, specify the maximum number of items to return in - // the response. If additional items exist beyond the number you specify, the - // Truncated element in the response is set to true. - // - // This value is optional. If you include a value, it must be between 1 and - // 100, inclusive. If you do not include a value, it defaults to 50. - Limit *int64 `min:"1" type:"integer"` + // Specify this parameter only when paginating results to indicate the maximum + // number of grants you want listed in the response. If there are additional + // grants beyond the maximum you specify, the Truncated response element will + // be set to true. + Limit *int64 `type:"integer"` - // Use this parameter only when paginating results and only in a subsequent - // request after you receive a response with truncated results. Set it to the - // value of NextMarker from the response you just received. - Marker *string `min:"1" type:"string"` + // Use this parameter only when paginating results, and only in a subsequent + // request after you've received a response where the results are truncated. + // Set it to the value of the NextMarker in the response you just received. + Marker *string `type:"string"` + + metadataListGrantsInput `json:"-" xml:"-"` +} + +type metadataListGrantsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2538,84 +1955,61 @@ func (s ListGrantsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListGrantsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGrantsInput"} - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListGrantsResponse struct { - _ struct{} `type:"structure"` - +type ListGrantsOutput struct { // A list of grants. Grants []*GrantListEntry `type:"list"` - // When Truncated is true, this value is present and contains the value to use - // for the Marker parameter in a subsequent pagination request. - NextMarker *string `min:"1" type:"string"` + // If Truncated is true, this value is present and contains the value to use + // for the Marker request parameter in a subsequent pagination request. + NextMarker *string `type:"string"` // A flag that indicates whether there are more items in the list. If your results - // were truncated, you can use the Marker parameter to make a subsequent pagination - // request to retrieve more items in the list. + // were truncated, you can make a subsequent pagination request using the Marker + // request parameter to retrieve more grants in the list. Truncated *bool `type:"boolean"` + + metadataListGrantsOutput `json:"-" xml:"-"` +} + +type metadataListGrantsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListGrantsResponse) String() string { +func (s ListGrantsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListGrantsResponse) GoString() string { +func (s ListGrantsOutput) GoString() string { return s.String() } type ListKeyPoliciesInput struct { - _ struct{} `type:"structure"` - // A unique identifier for the customer master key. This value can be a globally // unique identifier, a fully specified ARN to either an alias or a key, or - // an alias name prefixed by "alias/". - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - // - // Alias Name Example - alias/MyAliasName - KeyId *string `min:"1" type:"string" required:"true"` + // an alias name prefixed by "alias/". Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 Alias + // Name Example - alias/MyAliasName + KeyId *string `type:"string" required:"true"` - // When paginating results, specify the maximum number of items to return in - // the response. If additional items exist beyond the number you specify, the - // Truncated element in the response is set to true. - // - // This value is optional. If you include a value, it must be between 1 and - // 1000, inclusive. If you do not include a value, it defaults to 100. - // - // Currently only 1 policy can be attached to a key. - Limit *int64 `min:"1" type:"integer"` + // Specify this parameter only when paginating results to indicate the maximum + // number of policies you want listed in the response. If there are additional + // policies beyond the maximum you specify, the Truncated response element will + // be set to true. + Limit *int64 `type:"integer"` + + // Use this parameter only when paginating results, and only in a subsequent + // request after you've received a response where the results are truncated. + // Set it to the value of the NextMarker in the response you just received. + Marker *string `type:"string"` + + metadataListKeyPoliciesInput `json:"-" xml:"-"` +} - // Use this parameter only when paginating results and only in a subsequent - // request after you receive a response with truncated results. Set it to the - // value of NextMarker from the response you just received. - Marker *string `min:"1" type:"string"` +type metadataListKeyPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2628,43 +2022,25 @@ func (s ListKeyPoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListKeyPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListKeyPoliciesInput"} - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListKeyPoliciesOutput struct { - _ struct{} `type:"structure"` - - // When Truncated is true, this value is present and contains the value to use - // for the Marker parameter in a subsequent pagination request. - NextMarker *string `min:"1" type:"string"` + // If Truncated is true, this value is present and contains the value to use + // for the Marker request parameter in a subsequent pagination request. + NextMarker *string `type:"string"` // A list of policy names. Currently, there is only one policy and it is named // "Default". PolicyNames []*string `type:"list"` // A flag that indicates whether there are more items in the list. If your results - // were truncated, you can use the Marker parameter to make a subsequent pagination - // request to retrieve more items in the list. + // were truncated, you can make a subsequent pagination request using the Marker + // request parameter to retrieve more policies in the list. Truncated *bool `type:"boolean"` + + metadataListKeyPoliciesOutput `json:"-" xml:"-"` +} + +type metadataListKeyPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2678,20 +2054,22 @@ func (s ListKeyPoliciesOutput) GoString() string { } type ListKeysInput struct { - _ struct{} `type:"structure"` + // Specify this parameter only when paginating results to indicate the maximum + // number of keys you want listed in the response. If there are additional keys + // beyond the maximum you specify, the Truncated response element will be set + // to true. + Limit *int64 `type:"integer"` - // When paginating results, specify the maximum number of items to return in - // the response. If additional items exist beyond the number you specify, the - // Truncated element in the response is set to true. - // - // This value is optional. If you include a value, it must be between 1 and - // 1000, inclusive. If you do not include a value, it defaults to 100. - Limit *int64 `min:"1" type:"integer"` + // Use this parameter only when paginating results, and only in a subsequent + // request after you've received a response where the results are truncated. + // Set it to the value of the NextMarker in the response you just received. + Marker *string `type:"string"` + + metadataListKeysInput `json:"-" xml:"-"` +} - // Use this parameter only when paginating results and only in a subsequent - // request after you receive a response with truncated results. Set it to the - // value of NextMarker from the response you just received. - Marker *string `min:"1" type:"string"` +type metadataListKeysInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2704,158 +2082,55 @@ func (s ListKeysInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListKeysInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListKeysInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListKeysOutput struct { - _ struct{} `type:"structure"` - // A list of keys. Keys []*KeyListEntry `type:"list"` - // When Truncated is true, this value is present and contains the value to use - // for the Marker parameter in a subsequent pagination request. - NextMarker *string `min:"1" type:"string"` + // If Truncated is true, this value is present and contains the value to use + // for the Marker request parameter in a subsequent pagination request. + NextMarker *string `type:"string"` // A flag that indicates whether there are more items in the list. If your results - // were truncated, you can use the Marker parameter to make a subsequent pagination - // request to retrieve more items in the list. + // were truncated, you can make a subsequent pagination request using the Marker + // request parameter to retrieve more keys in the list. Truncated *bool `type:"boolean"` -} - -// String returns the string representation -func (s ListKeysOutput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s ListKeysOutput) GoString() string { - return s.String() + metadataListKeysOutput `json:"-" xml:"-"` } -type ListRetirableGrantsInput struct { - _ struct{} `type:"structure"` - - // When paginating results, specify the maximum number of items to return in - // the response. If additional items exist beyond the number you specify, the - // Truncated element in the response is set to true. - // - // This value is optional. If you include a value, it must be between 1 and - // 100, inclusive. If you do not include a value, it defaults to 50. - Limit *int64 `min:"1" type:"integer"` - - // Use this parameter only when paginating results and only in a subsequent - // request after you receive a response with truncated results. Set it to the - // value of NextMarker from the response you just received. - Marker *string `min:"1" type:"string"` - - // The retiring principal for which to list grants. - // - // To specify the retiring principal, use the Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // of an AWS principal. Valid AWS principals include AWS accounts (root), IAM - // users, federated users, and assumed role users. For examples of the ARN syntax - // for specifying a principal, see AWS Identity and Access Management (IAM) - // (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam) - // in the Example ARNs section of the Amazon Web Services General Reference. - RetiringPrincipal *string `min:"1" type:"string" required:"true"` +type metadataListKeysOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListRetirableGrantsInput) String() string { +func (s ListKeysOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRetirableGrantsInput) GoString() string { +func (s ListKeysOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRetirableGrantsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRetirableGrantsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.RetiringPrincipal == nil { - invalidParams.Add(request.NewErrParamRequired("RetiringPrincipal")) - } - if s.RetiringPrincipal != nil && len(*s.RetiringPrincipal) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RetiringPrincipal", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PutKeyPolicyInput struct { - _ struct{} `type:"structure"` + // A unique identifier for the customer master key. This value can be a globally + // unique identifier or the fully specified ARN to a key. Key ARN Example - + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` - // A flag to indicate whether to bypass the key policy lockout safety check. - // - // Setting this value to true increases the likelihood that the CMK becomes - // unmanageable. Do not set this value to true indiscriminately. - // - // For more information, refer to the scenario in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) - // section in the AWS Key Management Service Developer Guide. - // - // Use this parameter only when you intend to prevent the principal making - // the request from making a subsequent PutKeyPolicy request on the CMK. - // - // The default value is false. - BypassPolicyLockoutSafetyCheck *bool `type:"boolean"` + // The policy, in JSON format, to be attached to the key. + Policy *string `type:"string" required:"true"` - // A unique identifier for the CMK. - // - // Use the CMK's unique identifier or its Amazon Resource Name (ARN). For example: - // - // Unique ID: 1234abcd-12ab-34cd-56ef-1234567890ab - // - // ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - KeyId *string `min:"1" type:"string" required:"true"` + // Name of the policy to be attached. Currently, the only supported name is + // "default". + PolicyName *string `type:"string" required:"true"` - // The key policy to attach to the CMK. - // - // The key policy must meet the following criteria: - // - // It must allow the principal making the PutKeyPolicy request to make a - // subsequent PutKeyPolicy request on the CMK. This reduces the likelihood that - // the CMK becomes unmanageable. For more information, refer to the scenario - // in the Default Key Policy (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) - // section in the AWS Key Management Service Developer Guide. - // - // The principal(s) specified in the key policy must exist and be visible - // to AWS KMS. When you create a new AWS principal (for example, an IAM user - // or role), you might need to enforce a delay before specifying the new principal - // in a key policy because the new principal might not immediately be visible - // to AWS KMS. For more information, see Changes that I make are not always - // immediately visible (http://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) - // in the IAM User Guide. - // - // The policy size limit is 32 KiB (32768 bytes). - Policy *string `min:"1" type:"string" required:"true"` + metadataPutKeyPolicyInput `json:"-" xml:"-"` +} - // The name of the key policy. - // - // This value must be default. - PolicyName *string `min:"1" type:"string" required:"true"` +type metadataPutKeyPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2868,36 +2143,12 @@ func (s PutKeyPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutKeyPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutKeyPolicyInput"} - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } - if s.Policy == nil { - invalidParams.Add(request.NewErrParamRequired("Policy")) - } - if s.Policy != nil && len(*s.Policy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutKeyPolicyOutput struct { + metadataPutKeyPolicyOutput `json:"-" xml:"-"` } -type PutKeyPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataPutKeyPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2911,38 +2162,33 @@ func (s PutKeyPolicyOutput) GoString() string { } type ReEncryptInput struct { - _ struct{} `type:"structure"` - // Ciphertext of the data to re-encrypt. - // - // CiphertextBlob is automatically base64 encoded/decoded by the SDK. - CiphertextBlob []byte `min:"1" type:"blob" required:"true"` + CiphertextBlob []byte `type:"blob" required:"true"` // Encryption context to be used when the data is re-encrypted. DestinationEncryptionContext map[string]*string `type:"map"` // A unique identifier for the customer master key used to re-encrypt the data. // This value can be a globally unique identifier, a fully specified ARN to - // either an alias or a key, or an alias name prefixed by "alias/". - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - // - // Alias Name Example - alias/MyAliasName - DestinationKeyId *string `min:"1" type:"string" required:"true"` - - // A list of grant tokens. - // - // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) - // in the AWS Key Management Service Developer Guide. + // either an alias or a key, or an alias name prefixed by "alias/". Key ARN + // Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 Alias + // Name Example - alias/MyAliasName + DestinationKeyId *string `type:"string" required:"true"` + + // For more information, see Grant Tokens (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token). GrantTokens []*string `type:"list"` // Encryption context used to encrypt and decrypt the data specified in the // CiphertextBlob parameter. SourceEncryptionContext map[string]*string `type:"map"` + + metadataReEncryptInput `json:"-" xml:"-"` +} + +type metadataReEncryptInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2955,42 +2201,22 @@ func (s ReEncryptInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReEncryptInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReEncryptInput"} - if s.CiphertextBlob == nil { - invalidParams.Add(request.NewErrParamRequired("CiphertextBlob")) - } - if s.CiphertextBlob != nil && len(s.CiphertextBlob) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CiphertextBlob", 1)) - } - if s.DestinationKeyId == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationKeyId")) - } - if s.DestinationKeyId != nil && len(*s.DestinationKeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DestinationKeyId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ReEncryptOutput struct { - _ struct{} `type:"structure"` - // The re-encrypted data. If you are using the CLI, the value is Base64 encoded. // Otherwise, it is not encoded. - // - // CiphertextBlob is automatically base64 encoded/decoded by the SDK. - CiphertextBlob []byte `min:"1" type:"blob"` + CiphertextBlob []byte `type:"blob"` // Unique identifier of the key used to re-encrypt the data. - KeyId *string `min:"1" type:"string"` + KeyId *string `type:"string"` // Unique identifier of the key used to originally encrypt the data. - SourceKeyId *string `min:"1" type:"string"` + SourceKeyId *string `type:"string"` + + metadataReEncryptOutput `json:"-" xml:"-"` +} + +type metadataReEncryptOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3004,25 +2230,24 @@ func (s ReEncryptOutput) GoString() string { } type RetireGrantInput struct { - _ struct{} `type:"structure"` - // Unique identifier of the grant to be retired. The grant ID is returned by - // the CreateGrant function. - // - // Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123 - GrantId *string `min:"1" type:"string"` + // the CreateGrant function. Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123 + GrantId *string `type:"string"` // Token that identifies the grant to be retired. - GrantToken *string `min:"1" type:"string"` + GrantToken *string `type:"string"` // A unique identifier for the customer master key associated with the grant. // This value can be a globally unique identifier or a fully specified ARN of - // the key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - KeyId *string `min:"1" type:"string"` + // the key. Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string"` + + metadataRetireGrantInput `json:"-" xml:"-"` +} + +type metadataRetireGrantInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3035,27 +2260,12 @@ func (s RetireGrantInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RetireGrantInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RetireGrantInput"} - if s.GrantId != nil && len(*s.GrantId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GrantId", 1)) - } - if s.GrantToken != nil && len(*s.GrantToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GrantToken", 1)) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RetireGrantOutput struct { + metadataRetireGrantOutput `json:"-" xml:"-"` } -type RetireGrantOutput struct { - _ struct{} `type:"structure"` +type metadataRetireGrantOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3069,19 +2279,20 @@ func (s RetireGrantOutput) GoString() string { } type RevokeGrantInput struct { - _ struct{} `type:"structure"` - // Identifier of the grant to be revoked. - GrantId *string `min:"1" type:"string" required:"true"` + GrantId *string `type:"string" required:"true"` // A unique identifier for the customer master key associated with the grant. // This value can be a globally unique identifier or the fully specified ARN - // to a key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - KeyId *string `min:"1" type:"string" required:"true"` + // to a key. Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` + + metadataRevokeGrantInput `json:"-" xml:"-"` +} + +type metadataRevokeGrantInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3094,30 +2305,12 @@ func (s RevokeGrantInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RevokeGrantInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RevokeGrantInput"} - if s.GrantId == nil { - invalidParams.Add(request.NewErrParamRequired("GrantId")) - } - if s.GrantId != nil && len(*s.GrantId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GrantId", 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 +type RevokeGrantOutput struct { + metadataRevokeGrantOutput `json:"-" xml:"-"` } -type RevokeGrantOutput struct { - _ struct{} `type:"structure"` +type metadataRevokeGrantOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3130,99 +2323,23 @@ func (s RevokeGrantOutput) GoString() string { return s.String() } -type ScheduleKeyDeletionInput struct { - _ struct{} `type:"structure"` - - // The unique identifier for the customer master key (CMK) to delete. - // - // To specify this value, use the unique key ID or the Amazon Resource Name - // (ARN) of the CMK. Examples: - // - // Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab - // - // Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - // - // To obtain the unique key ID and key ARN for a given CMK, use ListKeys - // or DescribeKey. - KeyId *string `min:"1" type:"string" required:"true"` - - // The waiting period, specified in number of days. After the waiting period - // ends, AWS KMS deletes the customer master key (CMK). - // - // This value is optional. If you include a value, it must be between 7 and - // 30, inclusive. If you do not include a value, it defaults to 30. - PendingWindowInDays *int64 `min:"1" type:"integer"` -} - -// String returns the string representation -func (s ScheduleKeyDeletionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ScheduleKeyDeletionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ScheduleKeyDeletionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ScheduleKeyDeletionInput"} - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) - } - if s.PendingWindowInDays != nil && *s.PendingWindowInDays < 1 { - invalidParams.Add(request.NewErrParamMinValue("PendingWindowInDays", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ScheduleKeyDeletionOutput struct { - _ struct{} `type:"structure"` - - // The date and time after which AWS KMS deletes the customer master key (CMK). - DeletionDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The unique identifier of the customer master key (CMK) for which deletion - // is scheduled. - KeyId *string `min:"1" type:"string"` -} +type UpdateAliasInput struct { + // String that contains the name of the alias to be modifed. The name must start + // with the word "alias" followed by a forward slash (alias/). Aliases that + // begin with "alias/AWS" are reserved. + AliasName *string `type:"string" required:"true"` -// String returns the string representation -func (s ScheduleKeyDeletionOutput) String() string { - return awsutil.Prettify(s) -} + // Unique identifier of the customer master key to be associated with the alias. + // This value can be a globally unique identifier or the fully specified ARN + // of a key. Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + TargetKeyId *string `type:"string" required:"true"` -// GoString returns the string representation -func (s ScheduleKeyDeletionOutput) GoString() string { - return s.String() + metadataUpdateAliasInput `json:"-" xml:"-"` } -type UpdateAliasInput struct { - _ struct{} `type:"structure"` - - // String that contains the name of the alias to be modified. The name must - // start with the word "alias" followed by a forward slash (alias/). Aliases - // that begin with "alias/aws" are reserved. - AliasName *string `min:"1" type:"string" required:"true"` - - // Unique identifier of the customer master key to be mapped to the alias. This - // value can be a globally unique identifier or the fully specified ARN of a - // key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - // - // You can call ListAliases to verify that the alias is mapped to the correct - // TargetKeyId. - TargetKeyId *string `min:"1" type:"string" required:"true"` +type metadataUpdateAliasInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3235,30 +2352,12 @@ func (s UpdateAliasInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAliasInput"} - if s.AliasName == nil { - invalidParams.Add(request.NewErrParamRequired("AliasName")) - } - if s.AliasName != nil && len(*s.AliasName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AliasName", 1)) - } - if s.TargetKeyId == nil { - invalidParams.Add(request.NewErrParamRequired("TargetKeyId")) - } - if s.TargetKeyId != nil && len(*s.TargetKeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetKeyId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateAliasOutput struct { + metadataUpdateAliasOutput `json:"-" xml:"-"` } -type UpdateAliasOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateAliasOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3272,18 +2371,20 @@ func (s UpdateAliasOutput) GoString() string { } type UpdateKeyDescriptionInput struct { - _ struct{} `type:"structure"` - // New description for the key. Description *string `type:"string" required:"true"` // A unique identifier for the customer master key. This value can be a globally - // unique identifier or the fully specified ARN to a key. - // - // Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 - // - // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 - KeyId *string `min:"1" type:"string" required:"true"` + // unique identifier or the fully specified ARN to a key. Key ARN Example - + // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 + KeyId *string `type:"string" required:"true"` + + metadataUpdateKeyDescriptionInput `json:"-" xml:"-"` +} + +type metadataUpdateKeyDescriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3296,27 +2397,12 @@ func (s UpdateKeyDescriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateKeyDescriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateKeyDescriptionInput"} - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } - 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 +type UpdateKeyDescriptionOutput struct { + metadataUpdateKeyDescriptionOutput `json:"-" xml:"-"` } -type UpdateKeyDescriptionOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateKeyDescriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3353,17 +2439,6 @@ const ( GrantOperationCreateGrant = "CreateGrant" // @enum GrantOperation GrantOperationRetireGrant = "RetireGrant" - // @enum GrantOperation - GrantOperationDescribeKey = "DescribeKey" -) - -const ( - // @enum KeyState - KeyStateEnabled = "Enabled" - // @enum KeyState - KeyStateDisabled = "Disabled" - // @enum KeyState - KeyStatePendingDeletion = "PendingDeletion" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go index 7c2470602..a7f8d879f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/examples_test.go @@ -8,34 +8,14 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kms" ) var _ time.Duration var _ bytes.Buffer -func ExampleKMS_CancelKeyDeletion() { - svc := kms.New(session.New()) - - params := &kms.CancelKeyDeletionInput{ - KeyId: aws.String("KeyIdType"), // Required - } - resp, err := svc.CancelKeyDeletion(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleKMS_CreateAlias() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.CreateAliasInput{ AliasName: aws.String("AliasNameType"), // Required @@ -55,7 +35,7 @@ func ExampleKMS_CreateAlias() { } func ExampleKMS_CreateGrant() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.CreateGrantInput{ GranteePrincipal: aws.String("PrincipalIdType"), // Required @@ -74,7 +54,6 @@ func ExampleKMS_CreateGrant() { aws.String("GrantTokenType"), // Required // More values... }, - Name: aws.String("GrantNameType"), Operations: []*string{ aws.String("GrantOperation"), // Required // More values... @@ -95,13 +74,12 @@ func ExampleKMS_CreateGrant() { } func ExampleKMS_CreateKey() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.CreateKeyInput{ - BypassPolicyLockoutSafetyCheck: aws.Bool(true), - Description: aws.String("DescriptionType"), - KeyUsage: aws.String("KeyUsageType"), - Policy: aws.String("PolicyType"), + Description: aws.String("DescriptionType"), + KeyUsage: aws.String("KeyUsageType"), + Policy: aws.String("PolicyType"), } resp, err := svc.CreateKey(params) @@ -117,7 +95,7 @@ func ExampleKMS_CreateKey() { } func ExampleKMS_Decrypt() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.DecryptInput{ CiphertextBlob: []byte("PAYLOAD"), // Required @@ -144,7 +122,7 @@ func ExampleKMS_Decrypt() { } func ExampleKMS_DeleteAlias() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.DeleteAliasInput{ AliasName: aws.String("AliasNameType"), // Required @@ -163,14 +141,10 @@ func ExampleKMS_DeleteAlias() { } func ExampleKMS_DescribeKey() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.DescribeKeyInput{ KeyId: aws.String("KeyIdType"), // Required - GrantTokens: []*string{ - aws.String("GrantTokenType"), // Required - // More values... - }, } resp, err := svc.DescribeKey(params) @@ -186,7 +160,7 @@ func ExampleKMS_DescribeKey() { } func ExampleKMS_DisableKey() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.DisableKeyInput{ KeyId: aws.String("KeyIdType"), // Required @@ -205,7 +179,7 @@ func ExampleKMS_DisableKey() { } func ExampleKMS_DisableKeyRotation() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.DisableKeyRotationInput{ KeyId: aws.String("KeyIdType"), // Required @@ -224,7 +198,7 @@ func ExampleKMS_DisableKeyRotation() { } func ExampleKMS_EnableKey() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.EnableKeyInput{ KeyId: aws.String("KeyIdType"), // Required @@ -243,7 +217,7 @@ func ExampleKMS_EnableKey() { } func ExampleKMS_EnableKeyRotation() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.EnableKeyRotationInput{ KeyId: aws.String("KeyIdType"), // Required @@ -262,7 +236,7 @@ func ExampleKMS_EnableKeyRotation() { } func ExampleKMS_Encrypt() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.EncryptInput{ KeyId: aws.String("KeyIdType"), // Required @@ -290,7 +264,7 @@ func ExampleKMS_Encrypt() { } func ExampleKMS_GenerateDataKey() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.GenerateDataKeyInput{ KeyId: aws.String("KeyIdType"), // Required @@ -319,7 +293,7 @@ func ExampleKMS_GenerateDataKey() { } func ExampleKMS_GenerateDataKeyWithoutPlaintext() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.GenerateDataKeyWithoutPlaintextInput{ KeyId: aws.String("KeyIdType"), // Required @@ -348,7 +322,7 @@ func ExampleKMS_GenerateDataKeyWithoutPlaintext() { } func ExampleKMS_GenerateRandom() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.GenerateRandomInput{ NumberOfBytes: aws.Int64(1), @@ -367,7 +341,7 @@ func ExampleKMS_GenerateRandom() { } func ExampleKMS_GetKeyPolicy() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.GetKeyPolicyInput{ KeyId: aws.String("KeyIdType"), // Required @@ -387,7 +361,7 @@ func ExampleKMS_GetKeyPolicy() { } func ExampleKMS_GetKeyRotationStatus() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.GetKeyRotationStatusInput{ KeyId: aws.String("KeyIdType"), // Required @@ -406,7 +380,7 @@ func ExampleKMS_GetKeyRotationStatus() { } func ExampleKMS_ListAliases() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.ListAliasesInput{ Limit: aws.Int64(1), @@ -426,7 +400,7 @@ func ExampleKMS_ListAliases() { } func ExampleKMS_ListGrants() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.ListGrantsInput{ KeyId: aws.String("KeyIdType"), // Required @@ -447,7 +421,7 @@ func ExampleKMS_ListGrants() { } func ExampleKMS_ListKeyPolicies() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.ListKeyPoliciesInput{ KeyId: aws.String("KeyIdType"), // Required @@ -468,7 +442,7 @@ func ExampleKMS_ListKeyPolicies() { } func ExampleKMS_ListKeys() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.ListKeysInput{ Limit: aws.Int64(1), @@ -487,35 +461,13 @@ func ExampleKMS_ListKeys() { fmt.Println(resp) } -func ExampleKMS_ListRetirableGrants() { - svc := kms.New(session.New()) - - params := &kms.ListRetirableGrantsInput{ - RetiringPrincipal: aws.String("PrincipalIdType"), // Required - Limit: aws.Int64(1), - Marker: aws.String("MarkerType"), - } - resp, err := svc.ListRetirableGrants(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleKMS_PutKeyPolicy() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.PutKeyPolicyInput{ - KeyId: aws.String("KeyIdType"), // Required - Policy: aws.String("PolicyType"), // Required - PolicyName: aws.String("PolicyNameType"), // Required - BypassPolicyLockoutSafetyCheck: aws.Bool(true), + KeyId: aws.String("KeyIdType"), // Required + Policy: aws.String("PolicyType"), // Required + PolicyName: aws.String("PolicyNameType"), // Required } resp, err := svc.PutKeyPolicy(params) @@ -531,7 +483,7 @@ func ExampleKMS_PutKeyPolicy() { } func ExampleKMS_ReEncrypt() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.ReEncryptInput{ CiphertextBlob: []byte("PAYLOAD"), // Required @@ -563,7 +515,7 @@ func ExampleKMS_ReEncrypt() { } func ExampleKMS_RetireGrant() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.RetireGrantInput{ GrantId: aws.String("GrantIdType"), @@ -584,7 +536,7 @@ func ExampleKMS_RetireGrant() { } func ExampleKMS_RevokeGrant() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.RevokeGrantInput{ GrantId: aws.String("GrantIdType"), // Required @@ -603,28 +555,8 @@ func ExampleKMS_RevokeGrant() { fmt.Println(resp) } -func ExampleKMS_ScheduleKeyDeletion() { - svc := kms.New(session.New()) - - params := &kms.ScheduleKeyDeletionInput{ - KeyId: aws.String("KeyIdType"), // Required - PendingWindowInDays: aws.Int64(1), - } - resp, err := svc.ScheduleKeyDeletion(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleKMS_UpdateAlias() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.UpdateAliasInput{ AliasName: aws.String("AliasNameType"), // Required @@ -644,7 +576,7 @@ func ExampleKMS_UpdateAlias() { } func ExampleKMS_UpdateKeyDescription() { - svc := kms.New(session.New()) + svc := kms.New(nil) params := &kms.UpdateKeyDescriptionInput{ Description: aws.String("DescriptionType"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go index 34628c02b..aca1a3cf0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface.go @@ -10,10 +10,6 @@ import ( // KMSAPI is the interface type for kms.KMS. type KMSAPI interface { - CancelKeyDeletionRequest(*kms.CancelKeyDeletionInput) (*request.Request, *kms.CancelKeyDeletionOutput) - - CancelKeyDeletion(*kms.CancelKeyDeletionInput) (*kms.CancelKeyDeletionOutput, error) - CreateAliasRequest(*kms.CreateAliasInput) (*request.Request, *kms.CreateAliasOutput) CreateAlias(*kms.CreateAliasInput) (*kms.CreateAliasOutput, error) @@ -84,11 +80,11 @@ type KMSAPI interface { ListAliasesPages(*kms.ListAliasesInput, func(*kms.ListAliasesOutput, bool) bool) error - ListGrantsRequest(*kms.ListGrantsInput) (*request.Request, *kms.ListGrantsResponse) + ListGrantsRequest(*kms.ListGrantsInput) (*request.Request, *kms.ListGrantsOutput) - ListGrants(*kms.ListGrantsInput) (*kms.ListGrantsResponse, error) + ListGrants(*kms.ListGrantsInput) (*kms.ListGrantsOutput, error) - ListGrantsPages(*kms.ListGrantsInput, func(*kms.ListGrantsResponse, bool) bool) error + ListGrantsPages(*kms.ListGrantsInput, func(*kms.ListGrantsOutput, bool) bool) error ListKeyPoliciesRequest(*kms.ListKeyPoliciesInput) (*request.Request, *kms.ListKeyPoliciesOutput) @@ -102,10 +98,6 @@ type KMSAPI interface { ListKeysPages(*kms.ListKeysInput, func(*kms.ListKeysOutput, bool) bool) error - ListRetirableGrantsRequest(*kms.ListRetirableGrantsInput) (*request.Request, *kms.ListGrantsResponse) - - ListRetirableGrants(*kms.ListRetirableGrantsInput) (*kms.ListGrantsResponse, error) - PutKeyPolicyRequest(*kms.PutKeyPolicyInput) (*request.Request, *kms.PutKeyPolicyOutput) PutKeyPolicy(*kms.PutKeyPolicyInput) (*kms.PutKeyPolicyOutput, error) @@ -122,10 +114,6 @@ type KMSAPI interface { RevokeGrant(*kms.RevokeGrantInput) (*kms.RevokeGrantOutput, error) - ScheduleKeyDeletionRequest(*kms.ScheduleKeyDeletionInput) (*request.Request, *kms.ScheduleKeyDeletionOutput) - - ScheduleKeyDeletion(*kms.ScheduleKeyDeletionInput) (*kms.ScheduleKeyDeletionOutput, error) - UpdateAliasRequest(*kms.UpdateAliasInput) (*request.Request, *kms.UpdateAliasOutput) UpdateAlias(*kms.UpdateAliasInput) (*kms.UpdateAliasOutput, error) @@ -134,5 +122,3 @@ type KMSAPI interface { UpdateKeyDescription(*kms.UpdateKeyDescriptionInput) (*kms.UpdateKeyDescriptionOutput, error) } - -var _ KMSAPI = (*kms.KMS)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface_test.go new file mode 100644 index 000000000..cfda40521 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package kmsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/kms" + "github.com/aws/aws-sdk-go/service/kms/kmsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*kmsiface.KMSAPI)(nil), kms.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/service.go b/vendor/github.com/aws/aws-sdk-go/service/kms/service.go index b6cc6322f..46f893683 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/service.go @@ -4,28 +4,27 @@ package kms import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -// AWS Key Management Service (AWS KMS) is an encryption and key management -// web service. This guide describes the AWS KMS operations that you can call -// programmatically. For general information about AWS KMS, see the AWS Key -// Management Service Developer Guide (http://docs.aws.amazon.com/kms/latest/developerguide/). +// AWS Key Management Service (KMS) is an encryption and key management web +// service. This guide describes the KMS actions that you can call programmatically. +// For general information about KMS, see the AWS Key Management Service Developer +// Guide (http://docs.aws.amazon.com/kms/latest/developerguide/overview.html) // // AWS provides SDKs that consist of libraries and sample code for various // programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). -// The SDKs provide a convenient way to create programmatic access to AWS KMS -// and other AWS services. For example, the SDKs take care of tasks such as -// signing requests (see below), managing errors, and retrying requests automatically. -// For more information about the AWS SDKs, including how to download and install -// them, see Tools for Amazon Web Services (http://aws.amazon.com/tools/). -// -// We recommend that you use the AWS SDKs to make programmatic API calls to -// AWS KMS. +// The SDKs provide a convenient way to create programmatic access to KMS and +// AWS. For example, the SDKs take care of tasks such as signing requests (see +// below), managing errors, and retrying requests automatically. For more information +// about the AWS SDKs, including how to download and install them, see Tools +// for Amazon Web Services (http://aws.amazon.com/tools/). We recommend that +// you use the AWS SDKs to make programmatic API calls to KMS. // // Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS // 1.2. Clients must also support cipher suites with Perfect Forward Secrecy @@ -33,115 +32,78 @@ import ( // Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support // these modes. // -// Signing Requests +// Signing Requests // -// Requests must be signed by using an access key ID and a secret access key. -// We strongly recommend that you do not use your AWS account (root) access -// key ID and secret key for everyday work with AWS KMS. Instead, use the access -// key ID and secret access key for an IAM user, or you can use the AWS Security -// Token Service to generate temporary security credentials that you can use -// to sign requests. +// Requests must be signed by using an access key ID and a secret access key. +// We strongly recommend that you do not use your AWS account access key ID +// and secret key for everyday work with KMS. Instead, use the access key ID +// and secret access key for an IAM user, or you can use the AWS Security Token +// Service to generate temporary security credentials that you can use to sign +// requests. // -// All AWS KMS operations require Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// All KMS operations require Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). // -// Logging API Requests +// Recording API Requests // -// AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and related +// KMS supports AWS CloudTrail, a service that records AWS API calls and related // events for your AWS account and delivers them to an Amazon S3 bucket that // you specify. By using the information collected by CloudTrail, you can determine -// what requests were made to AWS KMS, who made the request, when it was made, -// and so on. To learn more about CloudTrail, including how to turn it on and -// find your log files, see the AWS CloudTrail User Guide (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/). +// what requests were made to KMS, who made the request, when it was made, and +// so on. To learn more about CloudTrail, including how to turn it on and find +// your log files, see the AWS CloudTrail User Guide (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/whatiscloudtrail.html) // -// Additional Resources +// Additional Resources // // For more information about credentials and request signing, see the following: // -// AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html) -// - This topic provides general information about the types of credentials -// used for accessing AWS. -// -// Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html) -// - This section of the IAM User Guide describes how to create and use temporary -// security credentials. -// -// Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) -// - This set of topics walks you through the process of signing a request using -// an access key ID and a secret access key. -// -// Commonly Used APIs -// -// Of the APIs discussed in this guide, the following will prove the most useful -// for most applications. You will likely perform actions other than these, -// such as creating keys and assigning policies, by using the console. -// -// Encrypt -// -// Decrypt -// -// GenerateDataKey -// -// GenerateDataKeyWithoutPlaintext -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). +// This topic provides general information about the types of credentials used +// for accessing AWS. AWS Security Token Service (http://docs.aws.amazon.com/STS/latest/UsingSTS/). +// This guide describes how to create and use temporary security credentials. +// Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html). +// This set of topics walks you through the process of signing a request using +// an access key ID and a secret access key. Commonly Used APIs +// +// Of the APIs discussed in this guide, the following will prove the most +// useful for most applications. You will likely perform actions other than +// these, such as creating keys and assigning policies, by using the console. +// Encrypt Decrypt GenerateDataKey GenerateDataKeyWithoutPlaintext type KMS struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "kms" - -// New creates a new instance of the KMS client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a KMS client from just a session. -// svc := kms.New(mySession) -// -// // Create a KMS client with additional configuration -// svc := kms.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *KMS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *KMS { - svc := &KMS{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-11-01", - JSONVersion: "1.1", - TargetPrefix: "TrentService", - }, - handlers, - ), +// New returns a new KMS client. +func New(config *aws.Config) *KMS { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "kms", + APIVersion: "2014-11-01", + JSONVersion: "1.1", + TargetPrefix: "TrentService", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &KMS{service} } // newRequest creates a new request for a KMS operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go index bc9375293..ffe322b0e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/api.go @@ -9,8 +9,6 @@ import ( "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/private/protocol/restjson" ) const opAddPermission = "AddPermission" @@ -20,7 +18,7 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R op := &request.Operation{ Name: opAddPermission, HTTPMethod: "POST", - HTTPPath: "/2015-03-31/functions/{FunctionName}/policy", + HTTPPath: "/2015-03-31/functions/{FunctionName}/versions/HEAD/policy", } if input == nil { @@ -33,19 +31,14 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R return } -// Adds a permission to the resource policy associated with the specified AWS -// Lambda function. You use resource policies to grant permissions to event -// sources that use push model. In a push model, event sources (such as Amazon -// S3 and custom applications) invoke your Lambda function. Each permission -// you add to the resource policy allows an event source, permission to invoke -// the Lambda function. -// -// For information about the push model, see AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html). -// -// If you are using versioning, the permissions you add are specific to the -// Lambda function version or alias you specify in the AddPermission request -// via the Qualifier parameter. For more information about versioning, see AWS -// Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// Adds a permission to the access policy associated with the specified AWS +// Lambda function. In a "push event" model, the access policy attached to the +// Lambda function grants Amazon S3 or a user application permission for the +// Lambda lambda:Invoke action. For information about the push model, see AWS +// Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html). +// Each Lambda function has one access policy associated with it. You can use +// the AddPermission API to add a permission to the policy. You have one access +// policy but it can have multiple permission statements. // // This operation requires permission for the lambda:AddPermission action. func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { @@ -54,37 +47,6 @@ func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, return out, err } -const opCreateAlias = "CreateAlias" - -// CreateAliasRequest generates a request for the CreateAlias operation. -func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *AliasConfiguration) { - op := &request.Operation{ - Name: opCreateAlias, - HTTPMethod: "POST", - HTTPPath: "/2015-03-31/functions/{FunctionName}/aliases", - } - - if input == nil { - input = &CreateAliasInput{} - } - - req = c.newRequest(op, input, output) - output = &AliasConfiguration{} - req.Data = output - return -} - -// Creates an alias that points to the specified Lambda function version. For -// more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). -// -// Alias names are unique for a given function. This requires permission for -// the lambda:CreateAlias action. -func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error) { - req, out := c.CreateAliasRequest(input) - err := req.Send() - return out, err -} - const opCreateEventSourceMapping = "CreateEventSourceMapping" // CreateEventSourceMappingRequest generates a request for the CreateEventSourceMapping operation. @@ -109,25 +71,20 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // an Amazon Kinesis stream or an Amazon DynamoDB stream. AWS Lambda invokes // the specified function when records are posted to the stream. // -// This association between a stream source and a Lambda function is called -// the event source mapping. +// This is the pull model, where AWS Lambda invokes the function. For more +// information, go to AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) +// in the AWS Lambda Developer Guide. // -// This event source mapping is relevant only in the AWS Lambda pull model, -// where AWS Lambda invokes the function. For more information, go to AWS Lambda: -// How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) -// in the AWS Lambda Developer Guide. You provide mapping information (for -// example, which stream to read from and which Lambda function to invoke) in -// the request body. +// This association between an Amazon Kinesis stream and a Lambda function +// is called the event source mapping. You provide the configuration information +// (for example, which stream to read from and which Lambda function to invoke) +// for the event source mapping in the request body. // // Each event source, such as an Amazon Kinesis or a DynamoDB stream, can // be associated with multiple AWS Lambda function. A given Lambda function // can be associated with multiple AWS event sources. // -// If you are using versioning, you can specify a specific function version -// or an alias via the function name parameter. For more information about versioning, -// see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// -// This operation requires permission for the lambda:CreateEventSourceMapping +// This operation requires permission for the lambda:CreateEventSourceMapping // action. func (c *Lambda) CreateEventSourceMapping(input *CreateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.CreateEventSourceMappingRequest(input) @@ -160,10 +117,6 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request // in the request body. If the function name already exists, the operation will // fail. Note that the function name is case-sensitive. // -// If you are using versioning, you can also publish a version of the Lambda -// function you are creating using the Publish parameter. For more information -// about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// // This operation requires permission for the lambda:CreateFunction action. func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error) { req, out := c.CreateFunctionRequest(input) @@ -171,38 +124,6 @@ func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfigurat return out, err } -const opDeleteAlias = "DeleteAlias" - -// DeleteAliasRequest generates a request for the DeleteAlias operation. -func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput) { - op := &request.Operation{ - Name: opDeleteAlias, - HTTPMethod: "DELETE", - HTTPPath: "/2015-03-31/functions/{FunctionName}/aliases/{Name}", - } - - if input == nil { - input = &DeleteAliasInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAliasOutput{} - req.Data = output - return -} - -// Deletes the specified Lambda function alias. For more information, see Introduction -// to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). -// -// This requires permission for the lambda:DeleteAlias action. -func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { - req, out := c.DeleteAliasRequest(input) - err := req.Send() - return out, err -} - const opDeleteEventSourceMapping = "DeleteEventSourceMapping" // DeleteEventSourceMappingRequest generates a request for the DeleteEventSourceMapping operation. @@ -249,8 +170,6 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteFunctionOutput{} req.Data = output return @@ -258,14 +177,7 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request // Deletes the specified Lambda function code and configuration. // -// If you are using the versioning feature and you don't specify a function -// version in your DeleteFunction request, AWS Lambda will delete the function, -// including all its versions, and any aliases pointing to the function versions. -// To delete a specific function version, you must provide the function version -// via the Qualifier parameter. For information about function versioning, see -// AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// -// When you delete a function the associated resource policy is also deleted. +// When you delete a function the associated access policy is also deleted. // You will need to delete the event source mappings explicitly. // // This operation requires permission for the lambda:DeleteFunction action. @@ -275,37 +187,6 @@ func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutp return out, err } -const opGetAlias = "GetAlias" - -// GetAliasRequest generates a request for the GetAlias operation. -func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, output *AliasConfiguration) { - op := &request.Operation{ - Name: opGetAlias, - HTTPMethod: "GET", - HTTPPath: "/2015-03-31/functions/{FunctionName}/aliases/{Name}", - } - - if input == nil { - input = &GetAliasInput{} - } - - req = c.newRequest(op, input, output) - output = &AliasConfiguration{} - req.Data = output - return -} - -// Returns the specified alias information such as the alias ARN, description, -// and function version it is pointing to. For more information, see Introduction -// to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). -// -// This requires permission for the lambda:GetAlias action. -func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error) { - req, out := c.GetAliasRequest(input) - err := req.Send() - return out, err -} - const opGetEventSourceMapping = "GetEventSourceMapping" // GetEventSourceMappingRequest generates a request for the GetEventSourceMapping operation. @@ -344,7 +225,7 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque op := &request.Operation{ Name: opGetFunction, HTTPMethod: "GET", - HTTPPath: "/2015-03-31/functions/{FunctionName}", + HTTPPath: "/2015-03-31/functions/{FunctionName}/versions/HEAD", } if input == nil { @@ -363,12 +244,6 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque // information is the same information you provided as parameters when uploading // the function. // -// Using the optional Qualifier parameter, you can specify a specific function -// version for which you want this information. If you don't specify this parameter, -// the API uses unqualified function ARN which return information about the -// $LATEST version of the Lambda function. For more information, see AWS Lambda -// Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// // This operation requires permission for the lambda:GetFunction action. func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error) { req, out := c.GetFunctionRequest(input) @@ -383,7 +258,7 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration op := &request.Operation{ Name: opGetFunctionConfiguration, HTTPMethod: "GET", - HTTPPath: "/2015-03-31/functions/{FunctionName}/configuration", + HTTPPath: "/2015-03-31/functions/{FunctionName}/versions/HEAD/configuration", } if input == nil { @@ -400,13 +275,6 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration // information you provided as parameters when uploading the function by using // CreateFunction. // -// If you are using the versioning feature, you can retrieve this information -// for a specific function version by using the optional Qualifier parameter -// and specifying the function version or alias that points to it. If you don't -// provide it, the API returns information about the $LATEST version of the -// function. For more information about versioning, see AWS Lambda Function -// Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// // This operation requires permission for the lambda:GetFunctionConfiguration // operation. func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error) { @@ -422,7 +290,7 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, op := &request.Operation{ Name: opGetPolicy, HTTPMethod: "GET", - HTTPPath: "/2015-03-31/functions/{FunctionName}/policy", + HTTPPath: "/2015-03-31/functions/{FunctionName}/versions/HEAD/policy", } if input == nil { @@ -435,14 +303,8 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, return } -// Returns the resource policy associated with the specified Lambda function. -// -// If you are using the versioning feature, you can get the resource policy -// associated with the specific Lambda function version or alias by specifying -// the version or alias name using the Qualifier parameter. For more information -// about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// -// For information about adding permissions, see AddPermission. +// Returns the access policy, containing a list of permissions granted via the +// AddPermission API, associated with the specified bucket. // // You need permission for the lambda:GetPolicy action. func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { @@ -471,14 +333,7 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output return } -// Invokes a specific Lambda function. -// -// If you are using the versioning feature, you can invoke the specific function -// version by providing function version or alias name that is pointing to the -// function version using the Qualifier parameter in the request. If you don't -// provide the Qualifier parameter, the $LATEST version of the Lambda function -// is invoked. For information about the versioning feature, see AWS Lambda -// Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// Invokes a specified Lambda function. // // This operation requires permission for the lambda:InvokeFunction action. func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error) { @@ -491,9 +346,6 @@ const opInvokeAsync = "InvokeAsync" // InvokeAsyncRequest generates a request for the InvokeAsync operation. func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Request, output *InvokeAsyncOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, InvokeAsync, has been deprecated") - } op := &request.Operation{ Name: opInvokeAsync, HTTPMethod: "POST", @@ -513,7 +365,7 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque // This API is deprecated. We recommend you use Invoke API (see Invoke). Submits // an invocation request to AWS Lambda. Upon receiving the request, Lambda executes // the specified function asynchronously. To see the logs generated by the Lambda -// function execution, see the CloudWatch Logs console. +// function execution, see the CloudWatch logs console. // // This operation requires permission for the lambda:InvokeFunction action. func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error) { @@ -522,38 +374,6 @@ func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error return out, err } -const opListAliases = "ListAliases" - -// ListAliasesRequest generates a request for the ListAliases operation. -func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput) { - op := &request.Operation{ - Name: opListAliases, - HTTPMethod: "GET", - HTTPPath: "/2015-03-31/functions/{FunctionName}/aliases", - } - - if input == nil { - input = &ListAliasesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListAliasesOutput{} - req.Data = output - return -} - -// Returns list of aliases created for a Lambda function. For each alias, the -// response includes information such as the alias ARN, description, alias name, -// and the function version to which it points. For more information, see Introduction -// to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). -// -// This requires permission for the lambda:ListAliases action. -func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { - req, out := c.ListAliasesRequest(input) - err := req.Send() - return out, err -} - const opListEventSourceMappings = "ListEventSourceMappings" // ListEventSourceMappingsRequest generates a request for the ListEventSourceMappings operation. @@ -581,16 +401,12 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn } // Returns a list of event source mappings you created using the CreateEventSourceMapping -// (see CreateEventSourceMapping). +// (see CreateEventSourceMapping), where you identify a stream as an event source. +// This list does not include Amazon S3 event sources. // // For each mapping, the API returns configuration information. You can optionally // specify filters to retrieve specific event source mappings. // -// If you are using the versioning feature, you can get list of event source -// mappings for a specific Lambda function version or an alias as described -// in the FunctionName parameter. For information about the versioning feature, -// see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// // This operation requires permission for the lambda:ListEventSourceMappings // action. func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error) { @@ -601,7 +417,6 @@ func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (* func (c *Lambda) ListEventSourceMappingsPages(input *ListEventSourceMappingsInput, fn func(p *ListEventSourceMappingsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListEventSourceMappingsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListEventSourceMappingsOutput), lastPage) }) @@ -638,10 +453,6 @@ func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.R // to retrieve the code for your function. // // This operation requires permission for the lambda:ListFunctions action. -// -// If you are using versioning feature, the response returns list of $LATEST -// versions of your functions. For information about the versioning feature, -// see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) { req, out := c.ListFunctionsRequest(input) err := req.Send() @@ -650,71 +461,11 @@ func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, func (c *Lambda) ListFunctionsPages(input *ListFunctionsInput, fn func(p *ListFunctionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListFunctionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListFunctionsOutput), lastPage) }) } -const opListVersionsByFunction = "ListVersionsByFunction" - -// ListVersionsByFunctionRequest generates a request for the ListVersionsByFunction operation. -func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) (req *request.Request, output *ListVersionsByFunctionOutput) { - op := &request.Operation{ - Name: opListVersionsByFunction, - HTTPMethod: "GET", - HTTPPath: "/2015-03-31/functions/{FunctionName}/versions", - } - - if input == nil { - input = &ListVersionsByFunctionInput{} - } - - req = c.newRequest(op, input, output) - output = &ListVersionsByFunctionOutput{} - req.Data = output - return -} - -// List all versions of a function. For information about the versioning feature, -// see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error) { - req, out := c.ListVersionsByFunctionRequest(input) - err := req.Send() - return out, err -} - -const opPublishVersion = "PublishVersion" - -// PublishVersionRequest generates a request for the PublishVersion operation. -func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request.Request, output *FunctionConfiguration) { - op := &request.Operation{ - Name: opPublishVersion, - HTTPMethod: "POST", - HTTPPath: "/2015-03-31/functions/{FunctionName}/versions", - } - - if input == nil { - input = &PublishVersionInput{} - } - - req = c.newRequest(op, input, output) - output = &FunctionConfiguration{} - req.Data = output - return -} - -// Publishes a version of your function from the current snapshot of $LATEST. -// That is, AWS Lambda takes a snapshot of the function code and configuration -// information from $LATEST and publishes a new version. The code and configuration -// cannot be modified after publication. For information about the versioning -// feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error) { - req, out := c.PublishVersionRequest(input) - err := req.Send() - return out, err -} - const opRemovePermission = "RemovePermission" // RemovePermissionRequest generates a request for the RemovePermission operation. @@ -722,7 +473,7 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req op := &request.Operation{ Name: opRemovePermission, HTTPMethod: "DELETE", - HTTPPath: "/2015-03-31/functions/{FunctionName}/policy/{StatementId}", + HTTPPath: "/2015-03-31/functions/{FunctionName}/versions/HEAD/policy/{StatementId}", } if input == nil { @@ -730,21 +481,13 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RemovePermissionOutput{} req.Data = output return } -// You can remove individual permissions from an resource policy associated -// with a Lambda function by providing a statement ID that you provided when -// you added the permission. -// -// If you are using versioning, the permissions you remove are specific to -// the Lambda function version or alias you specify in the AddPermission request -// via the Qualifier parameter. For more information about versioning, see AWS -// Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// You can remove individual permissions from an access policy associated with +// a Lambda function by providing a Statement ID. // // Note that removal of a permission will cause an active event source to lose // permission to the function. @@ -756,37 +499,6 @@ func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissi return out, err } -const opUpdateAlias = "UpdateAlias" - -// UpdateAliasRequest generates a request for the UpdateAlias operation. -func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *AliasConfiguration) { - op := &request.Operation{ - Name: opUpdateAlias, - HTTPMethod: "PUT", - HTTPPath: "/2015-03-31/functions/{FunctionName}/aliases/{Name}", - } - - if input == nil { - input = &UpdateAliasInput{} - } - - req = c.newRequest(op, input, output) - output = &AliasConfiguration{} - req.Data = output - return -} - -// Using this API you can update the function version to which the alias points -// and the alias description. For more information, see Introduction to AWS -// Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). -// -// This requires permission for the lambda:UpdateAlias action. -func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error) { - req, out := c.UpdateAliasRequest(input) - err := req.Send() - return out, err -} - const opUpdateEventSourceMapping = "UpdateEventSourceMapping" // UpdateEventSourceMappingRequest generates a request for the UpdateEventSourceMapping operation. @@ -812,16 +524,6 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping // stream. You can change which function will receive the stream records, but // to change the stream itself, you must create a new mapping. // -// If you are using the versioning feature, you can update the event source -// mapping to map to a specific Lambda function version or alias as described -// in the FunctionName parameter. For information about the versioning feature, -// see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// -// If you disable the event source mapping, AWS Lambda stops polling. If you -// enable again, it will resume polling from the time it had stopped polling, -// so you don't lose processing of any records. However, if you delete event -// source mapping and create it again, it will reset. -// // This operation requires permission for the lambda:UpdateEventSourceMapping // action. func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { @@ -837,7 +539,7 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req op := &request.Operation{ Name: opUpdateFunctionCode, HTTPMethod: "PUT", - HTTPPath: "/2015-03-31/functions/{FunctionName}/code", + HTTPPath: "/2015-03-31/functions/{FunctionName}/versions/HEAD/code", } if input == nil { @@ -854,10 +556,6 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req // be used on an existing Lambda function and cannot be used to update the function // configuration. // -// If you are using the versioning feature, note this API will always update -// the $LATEST version of your Lambda function. For information about the versioning -// feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// // This operation requires permission for the lambda:UpdateFunctionCode action. func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error) { req, out := c.UpdateFunctionCodeRequest(input) @@ -872,7 +570,7 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu op := &request.Operation{ Name: opUpdateFunctionConfiguration, HTTPMethod: "PUT", - HTTPPath: "/2015-03-31/functions/{FunctionName}/configuration", + HTTPPath: "/2015-03-31/functions/{FunctionName}/versions/HEAD/configuration", } if input == nil { @@ -890,10 +588,6 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu // you want to change. This operation must only be used on an existing Lambda // function and cannot be used to update the function's code. // -// If you are using the versioning feature, note this API will always update -// the $LATEST version of your Lambda function. For information about the versioning -// feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// // This operation requires permission for the lambda:UpdateFunctionConfiguration // action. func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationInput) (*FunctionConfiguration, error) { @@ -903,53 +597,31 @@ func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationI } type AddPermissionInput struct { - _ struct{} `type:"structure"` - // The AWS Lambda action you want to allow in this statement. Each Lambda action - // is a string starting with lambda: followed by the API name (see Operations). - // For example, lambda:CreateFunction. You can use wildcard (lambda:*) to grant - // permission for all AWS Lambda actions. + // is a string starting with "lambda:" followed by the API name (see Operations). + // For example, "lambda:CreateFunction". You can use wildcard ("lambda:*") to + // grant permission for all AWS Lambda actions. Action *string `type:"string" required:"true"` - EventSourceToken *string `type:"string"` - - // Name of the Lambda function whose resource policy you are updating by adding + // Name of the Lambda function whose access policy you are updating by adding // a new permission. // - // You can specify a function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // AWS Lambda also allows you to specify partial ARN (for example, account-id:Thumbnail). + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). // Note that the length constraint applies only to the ARN. If you specify only // the function name, it is limited to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + FunctionName *string `location:"uri" locationName:"FunctionName" type:"string" required:"true"` // The principal who is getting this permission. It can be Amazon S3 service - // Principal (s3.amazonaws.com) if you want Amazon S3 to invoke the function, + // Principal ("s3.amazonaws.com") if you want Amazon S3 to invoke the function, // an AWS account ID if you are granting cross-account permission, or any valid - // AWS service principal such as sns.amazonaws.com. For example, you might want - // to allow a custom application in another AWS account to push events to AWS - // Lambda by invoking your function. + // AWS service principal such as "sns.amazonaws.com". For example, you might + // want to allow a custom application in another AWS account to push events + // to AWS Lambda by invoking your function. Principal *string `type:"string" required:"true"` - // You can use this optional query parameter to describe a qualified ARN using - // a function version or an alias name. The permission will then apply to the - // specific qualified ARN. For example, if you specify function version 2 as - // the qualifier, then permission applies only when request is made using qualified - // function ARN: - // - // arn:aws:lambda:aws-region:acct-id:function:function-name:2 - // - // If you specify an alias name, for example PROD, then the permission is valid - // only for requests made using the alias ARN: - // - // arn:aws:lambda:aws-region:acct-id:function:function-name:PROD - // - // If the qualifier is not specified, the permission is valid only when requests - // is made using unqualified function ARN. - // - // arn:aws:lambda:aws-region:acct-id:function:function-name - Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` - // The AWS account ID (without a hyphen) of the source owner. For example, if // the SourceArn identifies a bucket, then this is the bucket owner's account // ID. You can use this additional condition to ensure the bucket you specify @@ -970,7 +642,13 @@ type AddPermissionInput struct { SourceArn *string `type:"string"` // A unique statement identifier. - StatementId *string `min:"1" type:"string" required:"true"` + StatementId *string `type:"string" required:"true"` + + metadataAddPermissionInput `json:"-" xml:"-"` +} + +type metadataAddPermissionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -983,149 +661,36 @@ func (s AddPermissionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddPermissionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddPermissionInput"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - 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.Principal == nil { - invalidParams.Add(request.NewErrParamRequired("Principal")) - } - 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 -} - type AddPermissionOutput struct { - _ struct{} `type:"structure"` - // The permission statement you specified in the request. The response returns - // the same as a string using a backslash ("\") as an escape character in the - // JSON. + // the same as a string using "\" as an escape character in the JSON. Statement *string `type:"string"` -} - -// String returns the string representation -func (s AddPermissionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddPermissionOutput) GoString() string { - return s.String() -} - -// Provides configuration information about a Lambda function version alias. -type AliasConfiguration struct { - _ struct{} `type:"structure"` - - // Lambda function ARN that is qualified using the alias name as the suffix. - // For example, if you create an alias called BETA that points to a helloworld - // function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA. - AliasArn *string `type:"string"` - - // Alias description. - Description *string `type:"string"` - // Function version to which the alias points. - FunctionVersion *string `min:"1" type:"string"` - - // Alias name. - Name *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s AliasConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AliasConfiguration) GoString() string { - return s.String() + metadataAddPermissionOutput `json:"-" xml:"-"` } -type CreateAliasInput struct { - _ struct{} `type:"structure"` - - // Description of the alias. - Description *string `type:"string"` - - // Name of the Lambda function for which you want to create an alias. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // Lambda function version for which you are creating the alias. - FunctionVersion *string `min:"1" type:"string" required:"true"` - - // Name for the alias you are creating. - Name *string `min:"1" type:"string" required:"true"` +type metadataAddPermissionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateAliasInput) String() string { +func (s AddPermissionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAliasInput) GoString() string { +func (s AddPermissionOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAliasInput"} - 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.FunctionVersion == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionVersion")) - } - if s.FunctionVersion != nil && len(*s.FunctionVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionVersion", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateEventSourceMappingInput struct { - _ struct{} `type:"structure"` - // The largest number of records that AWS Lambda will retrieve from your event // source at the time of invoking your function. Your function receives an event // with all the retrieved records. The default is 100 records. - BatchSize *int64 `min:"1" type:"integer"` + BatchSize *int64 `type:"integer"` - // Indicates whether AWS Lambda should begin polling the event source. By default, - // Enabled is true. + // Indicates whether AWS Lambda should begin polling the event source, the default + // is not enabled. Enabled *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB @@ -1137,25 +702,24 @@ type CreateEventSourceMappingInput struct { // The Lambda function to invoke when AWS Lambda detects an event on the stream. // - // You can specify the function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // - // If you are using versioning, you can also provide a qualified function - // ARN (ARN that is qualified with function version or alias name as suffix). - // For more information about versioning, see AWS Lambda Function Versioning - // and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) - // - // AWS Lambda also allows you to specify only the function name with the account - // ID qualifier (for example, account-id:Thumbnail). - // - // Note that the length constraint applies only to the ARN. If you specify - // only the function name, it is limited to 64 character in length. - FunctionName *string `min:"1" type:"string" required:"true"` + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). + // Note that the length constraint applies only to the ARN. If you specify only + // the function name, it is limited to 64 character in length. + FunctionName *string `type:"string" required:"true"` // The position in the stream where AWS Lambda should start reading. For more // information, go to ShardIteratorType (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType) // in the Amazon Kinesis API Reference. StartingPosition *string `type:"string" required:"true" enum:"EventSourcePosition"` + + metadataCreateEventSourceMappingInput `json:"-" xml:"-"` +} + +type metadataCreateEventSourceMappingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1168,34 +732,7 @@ func (s CreateEventSourceMappingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEventSourceMappingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEventSourceMappingInput"} - if s.BatchSize != nil && *s.BatchSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("BatchSize", 1)) - } - if s.EventSourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("EventSourceArn")) - } - 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.StartingPosition == nil { - invalidParams.Add(request.NewErrParamRequired("StartingPosition")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateFunctionInput struct { - _ struct{} `type:"structure"` - // The code for the Lambda function. Code *FunctionCode `type:"structure" required:"true"` @@ -1203,10 +740,16 @@ type CreateFunctionInput struct { // Assign a meaningful description as you see fit. Description *string `type:"string"` - // The name you want to assign to the function you are uploading. The function - // names appear in the console and are returned in the ListFunctions API. Function - // names are used to specify functions to other AWS Lambda APIs, such as Invoke. - FunctionName *string `min:"1" type:"string" required:"true"` + // The name you want to assign to the function you are uploading. You can specify + // an unqualified function name (for example, "Thumbnail") or you can specify + // Amazon Resource Name (ARN) of the function (for example, "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). + // AWS Lambda also allows you to specify only the account ID qualifier (for + // example, "account-id:Thumbnail"). Note that the length constraint applies + // only to the ARN. If you specify only the function name, it is limited to + // 64 character in length. The function names appear in the console and are + // returned in the ListFunctions API. Function names are used to specify functions + // to other AWS Lambda APIs, such as Invoke. + FunctionName *string `type:"string" required:"true"` // The function within your code that Lambda calls to begin execution. For Node.js, // it is the module-name.export value in your function. For Java, it can be @@ -1220,30 +763,27 @@ type CreateFunctionInput struct { // a database operation might need less memory compared to an image processing // function. The default value is 128 MB. The value must be a multiple of 64 // MB. - MemorySize *int64 `min:"128" type:"integer"` - - // This boolean parameter can be used to request AWS Lambda to create the Lambda - // function and publish a version as an atomic operation. - Publish *bool `type:"boolean"` + MemorySize *int64 `type:"integer"` // The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it // executes your function to access any other Amazon Web Services (AWS) resources. - // For more information, see AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html). + // For more information, see AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) Role *string `type:"string" required:"true"` - // The runtime environment for the Lambda function you are uploading. + // The runtime environment for the Lambda function you are uploading. Currently, + // Lambda supports "java" and "nodejs" as the runtime. Runtime *string `type:"string" required:"true" enum:"Runtime"` // The function execution time at which Lambda should terminate the function. // Because the execution time has cost implications, we recommend you set this // value based on your expected execution time. The default is 3 seconds. - Timeout *int64 `min:"1" type:"integer"` + Timeout *int64 `type:"integer"` + + metadataCreateFunctionInput `json:"-" xml:"-"` +} - // If your Lambda function accesses resources in a VPC, you provide this parameter - // identifying the list of security group IDs and subnet IDs. These must belong - // to the same VPC. You must provide at least one security group and one subnet - // ID. - VpcConfig *VpcConfig `type:"structure"` +type metadataCreateFunctionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1256,161 +796,43 @@ func (s CreateFunctionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateFunctionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateFunctionInput"} - if s.Code == nil { - invalidParams.Add(request.NewErrParamRequired("Code")) - } - 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.Handler == nil { - invalidParams.Add(request.NewErrParamRequired("Handler")) - } - if s.MemorySize != nil && *s.MemorySize < 128 { - invalidParams.Add(request.NewErrParamMinValue("MemorySize", 128)) - } - if s.Role == nil { - invalidParams.Add(request.NewErrParamRequired("Role")) - } - if s.Runtime == nil { - invalidParams.Add(request.NewErrParamRequired("Runtime")) - } - if s.Timeout != nil && *s.Timeout < 1 { - invalidParams.Add(request.NewErrParamMinValue("Timeout", 1)) - } - if s.Code != nil { - if err := s.Code.Validate(); err != nil { - invalidParams.AddNested("Code", err.(request.ErrInvalidParams)) - } - } +type DeleteEventSourceMappingInput struct { + // The event source mapping ID. + UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeleteEventSourceMappingInput `json:"-" xml:"-"` } -type DeleteAliasInput struct { - _ struct{} `type:"structure"` - - // The Lambda function name for which the alias is created. Deleting an alias - // does not delete the function version to which it is pointing. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // Name of the alias to delete. - Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` +type metadataDeleteEventSourceMappingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteAliasInput) String() string { +func (s DeleteEventSourceMappingInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteAliasInput) GoString() string { +func (s DeleteEventSourceMappingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAliasInput"} - 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.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteAliasOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteAliasOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAliasOutput) GoString() string { - return s.String() -} - -type DeleteEventSourceMappingInput struct { - _ struct{} `type:"structure"` - - // The event source mapping ID. - UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteEventSourceMappingInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteEventSourceMappingInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEventSourceMappingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEventSourceMappingInput"} - if s.UUID == nil { - invalidParams.Add(request.NewErrParamRequired("UUID")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteFunctionInput struct { - _ struct{} `type:"structure"` - // The Lambda function to delete. // - // You can specify the function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // If you are using versioning, you can also provide a qualified function ARN - // (ARN that is qualified with function version or alias name as suffix). AWS - // Lambda also allows you to specify only the function name with the account - // ID qualifier (for example, account-id:Thumbnail). Note that the length constraint - // applies only to the ARN. If you specify only the function name, it is limited - // to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // Using this optional parameter you can specify a function version (but not - // the $LATEST version) to direct AWS Lambda to delete a specific function version. - // If the function version has one or more aliases pointing to it, you will - // get an error because you cannot have aliases pointing to it. You can delete - // any function version but not the $LATEST, that is, you cannot specify $LATEST - // as the value of this parameter. The $LATEST version can be deleted only when - // you want to delete all the function versions and aliases. - // - // You can only specify a function version, not an alias name, using this parameter. - // You cannot delete a function version using its alias. - // - // If you don't specify this parameter, AWS Lambda will delete the function, - // including all of its versions and aliases. - Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). + // Note that the length constraint applies only to the ARN. If you specify only + // the function name, it is limited to 64 character in length. + FunctionName *string `location:"uri" locationName:"FunctionName" type:"string" required:"true"` + + metadataDeleteFunctionInput `json:"-" xml:"-"` +} + +type metadataDeleteFunctionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1423,27 +845,12 @@ func (s DeleteFunctionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteFunctionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteFunctionInput"} - 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 invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteFunctionOutput struct { + metadataDeleteFunctionOutput `json:"-" xml:"-"` } -type DeleteFunctionOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteFunctionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1458,12 +865,10 @@ func (s DeleteFunctionOutput) GoString() string { // Describes mapping between an Amazon Kinesis stream and a Lambda function. type EventSourceMappingConfiguration struct { - _ struct{} `type:"structure"` - // The largest number of records that AWS Lambda will retrieve from your event // source at the time of invoking your function. Your function receives an event // with all the retrieved records. - BatchSize *int64 `min:"1" type:"integer"` + BatchSize *int64 `type:"integer"` // The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the source // of events. @@ -1478,8 +883,8 @@ type EventSourceMappingConfiguration struct { // The result of the last AWS Lambda invocation of your Lambda function. LastProcessingResult *string `type:"string"` - // The state of the event source mapping. It can be Creating, Enabled, Disabled, - // Enabling, Disabling, Updating, or Deleting. + // The state of the event source mapping. It can be "Creating", "Enabled", "Disabled", + // "Enabling", "Disabling", "Updating", or "Deleting". State *string `type:"string"` // The reason the event source mapping is in its current state. It is either @@ -1488,6 +893,12 @@ type EventSourceMappingConfiguration struct { // The AWS Lambda assigned opaque identifier for the mapping. UUID *string `type:"string"` + + metadataEventSourceMappingConfiguration `json:"-" xml:"-"` +} + +type metadataEventSourceMappingConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1502,27 +913,27 @@ func (s EventSourceMappingConfiguration) GoString() string { // The code for the Lambda function. type FunctionCode struct { - _ struct{} `type:"structure"` - // Amazon S3 bucket name where the .zip file containing your deployment package // is stored. This bucket must reside in the same AWS region where you are creating // the Lambda function. - S3Bucket *string `min:"3" type:"string"` + S3Bucket *string `type:"string"` // The Amazon S3 object (the deployment package) key name you want to upload. - S3Key *string `min:"1" type:"string"` + S3Key *string `type:"string"` // The Amazon S3 object (the deployment package) version you want to upload. - S3ObjectVersion *string `min:"1" type:"string"` + S3ObjectVersion *string `type:"string"` - // A zip file containing your deployment package. If you are using the API directly, - // the zip file must be base64-encoded (if you are using the AWS SDKs or the - // AWS CLI, the SDKs or CLI will do the encoding for you). For more information + // A base64-encoded .zip file containing your deployment package. For more information // about creating a .zip file, go to Execution Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html) // in the AWS Lambda Developer Guide. - // - // ZipFile is automatically base64 encoded/decoded by the SDK. ZipFile []byte `type:"blob"` + + metadataFunctionCode `json:"-" xml:"-"` +} + +type metadataFunctionCode struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1535,35 +946,20 @@ func (s FunctionCode) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *FunctionCode) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FunctionCode"} - if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { - invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) - } - if s.S3Key != nil && len(*s.S3Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("S3Key", 1)) - } - if s.S3ObjectVersion != nil && len(*s.S3ObjectVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("S3ObjectVersion", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The object for the Lambda function location. type FunctionCodeLocation struct { - _ struct{} `type:"structure"` - // The presigned URL you can use to download the function's .zip file that you // previously uploaded. The URL is valid for up to 10 minutes. Location *string `type:"string"` // The repository from which you can download the function. RepositoryType *string `type:"string"` + + metadataFunctionCodeLocation `json:"-" xml:"-"` +} + +type metadataFunctionCodeLocation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1578,11 +974,6 @@ func (s FunctionCodeLocation) GoString() string { // A complex type that describes function metadata. type FunctionConfiguration struct { - _ struct{} `type:"structure"` - - // It is the SHA256 hash of your function deployment package. - CodeSha256 *string `type:"string"` - // The size, in bytes, of the function .zip file you uploaded. CodeSize *int64 `type:"long"` @@ -1593,17 +984,17 @@ type FunctionConfiguration struct { FunctionArn *string `type:"string"` // The name of the function. - FunctionName *string `min:"1" type:"string"` + FunctionName *string `type:"string"` // The function Lambda calls to begin executing your function. Handler *string `type:"string"` - // The time stamp of the last time you updated the function. + // The timestamp of the last time you updated the function. LastModified *string `type:"string"` // The memory size, in MB, you configured for the function. Must be a multiple // of 64 MB. - MemorySize *int64 `min:"128" type:"integer"` + MemorySize *int64 `type:"integer"` // The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it // executes your function to access any other Amazon Web Services (AWS) resources. @@ -1615,13 +1006,13 @@ type FunctionConfiguration struct { // The function execution time at which Lambda should terminate the function. // Because the execution time has cost implications, we recommend you set this // value based on your expected execution time. The default is 3 seconds. - Timeout *int64 `min:"1" type:"integer"` + Timeout *int64 `type:"integer"` - // The version of the Lambda function. - Version *string `min:"1" type:"string"` + metadataFunctionConfiguration `json:"-" xml:"-"` +} - // VPC configuration associated with your Lambda function. - VpcConfig *VpcConfigResponse `type:"structure"` +type metadataFunctionConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1634,55 +1025,15 @@ func (s FunctionConfiguration) GoString() string { return s.String() } -type GetAliasInput struct { - _ struct{} `type:"structure"` - - // Function name for which the alias is created. An alias is a subresource that - // exists only in the context of an existing Lambda function so you must specify - // the function name. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // Name of the alias for which you want to retrieve information. - Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetAliasInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetAliasInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAliasInput"} - 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.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetEventSourceMappingInput struct { - _ struct{} `type:"structure"` - // The AWS Lambda assigned ID of the event source mapping. UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` + + metadataGetEventSourceMappingInput `json:"-" xml:"-"` +} + +type metadataGetEventSourceMappingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1695,41 +1046,23 @@ func (s GetEventSourceMappingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetEventSourceMappingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetEventSourceMappingInput"} - if s.UUID == nil { - invalidParams.Add(request.NewErrParamRequired("UUID")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetFunctionConfigurationInput struct { - _ struct{} `type:"structure"` - // The name of the Lambda function for which you want to retrieve the configuration // information. // - // You can specify a function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). // Note that the length constraint applies only to the ARN. If you specify only // the function name, it is limited to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + FunctionName *string `location:"uri" locationName:"FunctionName" type:"string" required:"true"` - // Using this optional parameter you can specify a function version or an alias - // name. If you specify function version, the API uses qualified function ARN - // and returns information about the specific function version. If you specify - // an alias name, the API uses the alias ARN and returns information about the - // function version to which the alias points. - // - // If you don't specify this parameter, the API uses unqualified function ARN, - // and returns information about the $LATEST function version. - Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` + metadataGetFunctionConfigurationInput `json:"-" xml:"-"` +} + +type metadataGetFunctionConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1742,45 +1075,22 @@ func (s GetFunctionConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetFunctionConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetFunctionConfigurationInput"} - 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 invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetFunctionInput struct { - _ struct{} `type:"structure"` - // The Lambda function name. // - // You can specify a function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). // Note that the length constraint applies only to the ARN. If you specify only // the function name, it is limited to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + FunctionName *string `location:"uri" locationName:"FunctionName" type:"string" required:"true"` - // Using this optional parameter to specify a function version or an alias name. - // If you specify function version, the API uses qualified function ARN for - // the request and returns information about the specific Lambda function version. - // If you specify an alias name, the API uses the alias ARN and returns information - // about the function version to which the alias points. If you don't provide - // this parameter, the API uses unqualified function ARN and returns information - // about the $LATEST version of the Lambda function. - Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` + metadataGetFunctionInput `json:"-" xml:"-"` +} + +type metadataGetFunctionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1793,34 +1103,19 @@ func (s GetFunctionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetFunctionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetFunctionInput"} - 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 invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// This response contains the object for the Lambda function location (see API_FunctionCodeLocation. +// This response contains the object for the Lambda function location (see API_FunctionCodeLocation type GetFunctionOutput struct { - _ struct{} `type:"structure"` - // The object for the Lambda function location. Code *FunctionCodeLocation `type:"structure"` // A complex type that describes function metadata. Configuration *FunctionConfiguration `type:"structure"` + + metadataGetFunctionOutput `json:"-" xml:"-"` +} + +type metadataGetFunctionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1834,25 +1129,21 @@ func (s GetFunctionOutput) GoString() string { } type GetPolicyInput struct { - _ struct{} `type:"structure"` - - // Function name whose resource policy you want to retrieve. + // Function name whose access policy you want to retrieve. // - // You can specify the function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // If you are using versioning, you can also provide a qualified function ARN - // (ARN that is qualified with function version or alias name as suffix). AWS - // Lambda also allows you to specify only the function name with the account - // ID qualifier (for example, account-id:Thumbnail). Note that the length constraint - // applies only to the ARN. If you specify only the function name, it is limited - // to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // You can specify this optional query parameter to specify a function version - // or an alias name in which case this API will return all permissions associated - // with the specific qualified ARN. If you don't provide this parameter, the - // API will return permissions that apply to the unqualified function ARN. - Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). + // Note that the length constraint applies only to the ARN. If you specify only + // the function name, it is limited to 64 character in length. + FunctionName *string `location:"uri" locationName:"FunctionName" type:"string" required:"true"` + + metadataGetPolicyInput `json:"-" xml:"-"` +} + +type metadataGetPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1865,32 +1156,16 @@ func (s GetPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPolicyInput"} - 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)) - } +type GetPolicyOutput struct { + // The access policy associated with the specified function. The response returns + // the same as a string using "\" as an escape character in the JSON. + Policy *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetPolicyOutput `json:"-" xml:"-"` } -type GetPolicyOutput struct { - _ struct{} `type:"structure"` - - // The resource policy associated with the specified function. The response - // returns the same as a string using a backslash ("\") as an escape character - // in the JSON. - Policy *string `type:"string"` +type metadataGetPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1904,13 +1179,17 @@ func (s GetPolicyOutput) GoString() string { } type InvokeAsyncInput struct { - _ struct{} `deprecated:"true" type:"structure" payload:"InvokeArgs"` - // The Lambda function name. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + FunctionName *string `location:"uri" locationName:"FunctionName" type:"string" required:"true"` // JSON that you want to provide to your Lambda function as input. InvokeArgs io.ReadSeeker `type:"blob" required:"true"` + + metadataInvokeAsyncInput `json:"-" xml:"-"` +} + +type metadataInvokeAsyncInput struct { + SDKShapeTraits bool `type:"structure" payload:"InvokeArgs"` } // String returns the string representation @@ -1923,31 +1202,16 @@ 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 -} - // Upon success, it returns empty response. Otherwise, throws an exception. type InvokeAsyncOutput struct { - _ struct{} `deprecated:"true" type:"structure"` - // It will be 202 upon success. Status *int64 `location:"statusCode" type:"integer"` + + metadataInvokeAsyncOutput `json:"-" xml:"-"` +} + +type metadataInvokeAsyncOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1961,12 +1225,10 @@ func (s InvokeAsyncOutput) GoString() string { } type InvokeInput struct { - _ struct{} `type:"structure" payload:"Payload"` - // Using the ClientContext you can pass client-specific information to the Lambda // function you are invoking. You can then process the client information in // your Lambda function as you choose through the context variable. For an example - // of a ClientContext JSON, see PutEvents (http://docs.aws.amazon.com/mobileanalytics/latest/ug/PutEvents.html) + // of a ClientContext JSON, go to PutEvents (http://docs.aws.amazon.com/mobileanalytics/latest/ug/PutEvents.html) // in the Amazon Mobile Analytics API Reference and User Guide. // // The ClientContext JSON must be base64-encoded. @@ -1974,40 +1236,37 @@ type InvokeInput struct { // The Lambda function name. // - // You can specify a function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). // Note that the length constraint applies only to the ARN. If you specify only // the function name, it is limited to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // By default, the Invoke API assumes RequestResponse invocation type. You can - // optionally request asynchronous execution by specifying Event as the InvocationType. - // You can also use this parameter to request AWS Lambda to not execute the - // function but do some verification, such as if the caller is authorized to - // invoke the function and if the inputs are valid. You request this by specifying - // DryRun as the InvocationType. This is useful in a cross-account scenario - // when you want to verify access to a function without running it. + FunctionName *string `location:"uri" locationName:"FunctionName" type:"string" required:"true"` + + // By default, the Invoke API assumes "RequestResponse" invocation type. You + // can optionally request asynchronous execution by specifying "Event" as the + // InvocationType. You can also use this parameter to request AWS Lambda to + // not execute the function but do some verification, such as if the caller + // is authorized to invoke the function and if the inputs are valid. You request + // this by specifying "DryRun" as the InvocationType. This is useful in a cross-account + // scenario when you want to verify access to a function without running it. InvocationType *string `location:"header" locationName:"X-Amz-Invocation-Type" type:"string" enum:"InvocationType"` - // You can set this optional parameter to Tail in the request only if you specify - // the InvocationType parameter with value RequestResponse. In this case, AWS - // Lambda returns the base64-encoded last 4 KB of log data produced by your - // Lambda function in the x-amz-log-results header. + // You can set this optional parameter to "Tail" in the request only if you + // specify the InvocationType parameter with value "RequestResponse". In this + // case, AWS Lambda returns the base64-encoded last 4 KB of log data produced + // by your Lambda function in the x-amz-log-results header. LogType *string `location:"header" locationName:"X-Amz-Log-Type" type:"string" enum:"LogType"` // JSON that you want to provide to your Lambda function as input. Payload []byte `type:"blob"` - // You can use this optional parameter to specify a Lambda function version - // or alias name. If you specify a function version, the API uses the qualified - // function ARN to invoke a specific Lambda function. If you specify an alias - // name, the API uses the alias ARN to invoke the Lambda function version to - // which the alias points. - // - // If you don't provide this parameter, then the API uses unqualified function - // ARN which results in invocation of the $LATEST version. - Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` + metadataInvokeInput `json:"-" xml:"-"` +} + +type metadataInvokeInput struct { + SDKShapeTraits bool `type:"structure" payload:"Payload"` } // String returns the string representation @@ -2020,29 +1279,8 @@ func (s InvokeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InvokeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InvokeInput"} - 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 invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Upon success, returns an empty response. Otherwise, throws an exception. type InvokeOutput struct { - _ struct{} `type:"structure" payload:"Payload"` - // Indicates whether an error occurred while executing the Lambda function. // If an error occurred this field will have one of two values; Handled or Unhandled. // Handled errors are errors that are reported by the function while the Unhandled @@ -2052,12 +1290,12 @@ type InvokeOutput struct { FunctionError *string `location:"header" locationName:"X-Amz-Function-Error" type:"string"` // It is the base64-encoded logs for the Lambda function invocation. This is - // present only if the invocation type is RequestResponse and the logs were + // present only if the invocation type is "RequestResponse" and the logs were // requested. LogResult *string `location:"header" locationName:"X-Amz-Log-Result" type:"string"` // It is the JSON representation of the object returned by the Lambda function. - // In This is present only if the invocation type is RequestResponse. + // In This is present only if the invocation type is "RequestResponse". // // In the event of a function error this field contains a message describing // the error. For the Handled errors the Lambda function will report this message. @@ -2065,111 +1303,41 @@ type InvokeOutput struct { Payload []byte `type:"blob"` // The HTTP status code will be in the 200 range for successful request. For - // the RequestResonse invocation type this status code will be 200. For the - // Event invocation type this status code will be 202. For the DryRun invocation + // the "RequestResonse" invocation type this status code will be 200. For the + // "Event" invocation type this status code will be 202. For the "DryRun" invocation // type the status code will be 204. StatusCode *int64 `location:"statusCode" type:"integer"` -} - -// String returns the string representation -func (s InvokeOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s InvokeOutput) GoString() string { - return s.String() -} - -type ListAliasesInput struct { - _ struct{} `type:"structure"` - - // Lambda function name for which the alias is created. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // If you specify this optional parameter, the API returns only the aliases - // that are pointing to the specific Lambda function version, otherwise the - // API returns all of the aliases created for the Lambda function. - FunctionVersion *string `location:"querystring" locationName:"FunctionVersion" min:"1" type:"string"` - - // Optional string. An opaque pagination token returned from a previous ListAliases - // operation. If present, indicates where to continue the listing. - Marker *string `location:"querystring" locationName:"Marker" type:"string"` - - // Optional integer. Specifies the maximum number of aliases to return in response. - // This parameter value must be greater than 0. - MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` -} - -// String returns the string representation -func (s ListAliasesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListAliasesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAliasesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAliasesInput"} - 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.FunctionVersion != nil && len(*s.FunctionVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionVersion", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataInvokeOutput `json:"-" xml:"-"` } -type ListAliasesOutput struct { - _ struct{} `type:"structure"` - - // A list of aliases. - Aliases []*AliasConfiguration `type:"list"` - - // A string, present if there are more aliases. - NextMarker *string `type:"string"` +type metadataInvokeOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Payload"` } // String returns the string representation -func (s ListAliasesOutput) String() string { +func (s InvokeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAliasesOutput) GoString() string { +func (s InvokeOutput) GoString() string { return s.String() } type ListEventSourceMappingsInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Amazon Kinesis stream. EventSourceArn *string `location:"querystring" locationName:"EventSourceArn" type:"string"` // The name of the Lambda function. // - // You can specify the function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // If you are using versioning, you can also provide a qualified function ARN - // (ARN that is qualified with function version or alias name as suffix). AWS - // Lambda also allows you to specify only the function name with the account - // ID qualifier (for example, account-id:Thumbnail). Note that the length constraint - // applies only to the ARN. If you specify only the function name, it is limited - // to 64 character in length. - FunctionName *string `location:"querystring" locationName:"FunctionName" min:"1" type:"string"` + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). + // Note that the length constraint applies only to the ARN. If you specify only + // the function name, it is limited to 64 character in length. + FunctionName *string `location:"querystring" locationName:"FunctionName" type:"string"` // Optional string. An opaque pagination token returned from a previous ListEventSourceMappings // operation. If present, specifies to continue the list from where the returning @@ -2178,7 +1346,13 @@ type ListEventSourceMappingsInput struct { // Optional integer. Specifies the maximum number of event sources to return // in response. This value must be greater than 0. - MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` + MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` + + metadataListEventSourceMappingsInput `json:"-" xml:"-"` +} + +type metadataListEventSourceMappingsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2191,31 +1365,19 @@ func (s ListEventSourceMappingsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListEventSourceMappingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEventSourceMappingsInput"} - if s.FunctionName != nil && len(*s.FunctionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains a list of event sources (see API_EventSourceMappingConfiguration) type ListEventSourceMappingsOutput struct { - _ struct{} `type:"structure"` - // An array of EventSourceMappingConfiguration objects. EventSourceMappings []*EventSourceMappingConfiguration `type:"list"` // A string, present if there are more event source mappings. NextMarker *string `type:"string"` + + metadataListEventSourceMappingsOutput `json:"-" xml:"-"` +} + +type metadataListEventSourceMappingsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2229,15 +1391,19 @@ func (s ListEventSourceMappingsOutput) GoString() string { } type ListFunctionsInput struct { - _ struct{} `type:"structure"` - // Optional string. An opaque pagination token returned from a previous ListFunctions // operation. If present, indicates where to continue the listing. Marker *string `location:"querystring" locationName:"Marker" type:"string"` // Optional integer. Specifies the maximum number of AWS Lambda functions to // return in response. This parameter value must be greater than 0. - MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` + MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` + + metadataListFunctionsInput `json:"-" xml:"-"` +} + +type metadataListFunctionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2250,177 +1416,50 @@ func (s ListFunctionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListFunctionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListFunctionsInput"} - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains a list of AWS Lambda function configurations (see FunctionConfiguration. type ListFunctionsOutput struct { - _ struct{} `type:"structure"` - // A list of Lambda functions. Functions []*FunctionConfiguration `type:"list"` // A string, present if there are more functions. NextMarker *string `type:"string"` -} - -// String returns the string representation -func (s ListFunctionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListFunctionsOutput) GoString() string { - return s.String() -} - -type ListVersionsByFunctionInput struct { - _ struct{} `type:"structure"` - - // Function name whose versions to list. You can specify a function name (for - // example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the - // function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). - // Note that the length constraint applies only to the ARN. If you specify only - // the function name, it is limited to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // Optional string. An opaque pagination token returned from a previous ListVersionsByFunction - // operation. If present, indicates where to continue the listing. - Marker *string `location:"querystring" locationName:"Marker" type:"string"` - // Optional integer. Specifies the maximum number of AWS Lambda function versions - // to return in response. This parameter value must be greater than 0. - MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` + metadataListFunctionsOutput `json:"-" xml:"-"` } -// String returns the string representation -func (s ListVersionsByFunctionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListVersionsByFunctionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListVersionsByFunctionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVersionsByFunctionInput"} - 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.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListVersionsByFunctionOutput struct { - _ struct{} `type:"structure"` - - // A string, present if there are more function versions. - NextMarker *string `type:"string"` - - // A list of Lambda function versions. - Versions []*FunctionConfiguration `type:"list"` +type metadataListFunctionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListVersionsByFunctionOutput) String() string { +func (s ListFunctionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListVersionsByFunctionOutput) GoString() string { +func (s ListFunctionsOutput) GoString() string { return s.String() } -type PublishVersionInput struct { - _ struct{} `type:"structure"` - - // The SHA256 hash of the deployment package you want to publish. This provides - // validation on the code you are publishing. If you provide this parameter - // value must match the SHA256 of the $LATEST version for the publication to - // succeed. - CodeSha256 *string `type:"string"` - - // The description for the version you are publishing. If not provided, AWS - // Lambda copies the description from the $LATEST version. - Description *string `type:"string"` - - // The Lambda function name. You can specify a function name (for example, Thumbnail) +type RemovePermissionInput struct { + // Lambda function whose access policy you want to remove a permission from. + // + // You can specify an unqualified function name (for example, "Thumbnail") // or you can specify Amazon Resource Name (ARN) of the function (for example, - // arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also - // allows you to specify a partial ARN (for example, account-id:Thumbnail). + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). // Note that the length constraint applies only to the ARN. If you specify only // the function name, it is limited to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` -} + FunctionName *string `location:"uri" locationName:"FunctionName" type:"string" required:"true"` -// String returns the string representation -func (s PublishVersionInput) String() string { - return awsutil.Prettify(s) -} + // Statement ID of the permission to remove. + StatementId *string `location:"uri" locationName:"StatementId" type:"string" required:"true"` -// GoString returns the string representation -func (s PublishVersionInput) GoString() string { - return s.String() + metadataRemovePermissionInput `json:"-" xml:"-"` } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PublishVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PublishVersionInput"} - if s.FunctionName == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionName")) - } - if s.FunctionName != nil && len(*s.FunctionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type RemovePermissionInput struct { - _ struct{} `type:"structure"` - - // Lambda function whose resource policy you want to remove a permission from. - // - // You can specify a function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). - // Note that the length constraint applies only to the ARN. If you specify only - // the function name, it is limited to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // You can specify this optional parameter to remove permission associated with - // a specific function version or function alias. If you don't specify this - // parameter, the API removes permission associated with the unqualified function - // ARN. - Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` - - // Statement ID of the permission to remove. - StatementId *string `location:"uri" locationName:"StatementId" min:"1" type:"string" required:"true"` +type metadataRemovePermissionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2433,33 +1472,12 @@ 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 +type RemovePermissionOutput struct { + metadataRemovePermissionOutput `json:"-" xml:"-"` } -type RemovePermissionOutput struct { - _ struct{} `type:"structure"` +type metadataRemovePermissionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2472,64 +1490,10 @@ func (s RemovePermissionOutput) GoString() string { return s.String() } -type UpdateAliasInput struct { - _ struct{} `type:"structure"` - - // You can change the description of the alias using this parameter. - Description *string `type:"string"` - - // The function name for which the alias is created. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // Using this parameter you can change the Lambda function version to which - // the alias points. - FunctionVersion *string `min:"1" type:"string"` - - // The alias name. - Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateAliasInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateAliasInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAliasInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAliasInput"} - 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.FunctionVersion != nil && len(*s.FunctionVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionVersion", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type UpdateEventSourceMappingInput struct { - _ struct{} `type:"structure"` - // The maximum number of stream records that can be sent to your Lambda function // for a single invocation. - BatchSize *int64 `min:"1" type:"integer"` + BatchSize *int64 `type:"integer"` // Specifies whether AWS Lambda should actively poll the stream or not. If disabled, // AWS Lambda will not poll the stream. @@ -2537,21 +1501,22 @@ type UpdateEventSourceMappingInput struct { // The Lambda function to which you want the stream records sent. // - // You can specify a function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). - // - // If you are using versioning, you can also provide a qualified function ARN - // (ARN that is qualified with function version or alias name as suffix). For - // more information about versioning, see AWS Lambda Function Versioning and - // Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) - // - // Note that the length constraint applies only to the ARN. If you specify - // only the function name, it is limited to 64 character in length. - FunctionName *string `min:"1" type:"string"` + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). + // Note that the length constraint applies only to the ARN. If you specify only + // the function name, it is limited to 64 character in length. + FunctionName *string `type:"string"` // The event source mapping identifier. UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` + + metadataUpdateEventSourceMappingInput `json:"-" xml:"-"` +} + +type metadataUpdateEventSourceMappingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2564,56 +1529,36 @@ func (s UpdateEventSourceMappingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateEventSourceMappingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateEventSourceMappingInput"} - if s.BatchSize != nil && *s.BatchSize < 1 { - invalidParams.Add(request.NewErrParamMinValue("BatchSize", 1)) - } - if s.FunctionName != nil && len(*s.FunctionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) - } - if s.UUID == nil { - invalidParams.Add(request.NewErrParamRequired("UUID")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type UpdateFunctionCodeInput struct { - _ struct{} `type:"structure"` - // The existing Lambda function name whose code you want to replace. // - // You can specify a function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). // Note that the length constraint applies only to the ARN. If you specify only // the function name, it is limited to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // This boolean parameter can be used to request AWS Lambda to update the Lambda - // function and publish a version as an atomic operation. - Publish *bool `type:"boolean"` + FunctionName *string `location:"uri" locationName:"FunctionName" type:"string" required:"true"` // Amazon S3 bucket name where the .zip file containing your deployment package // is stored. This bucket must reside in the same AWS region where you are creating // the Lambda function. - S3Bucket *string `min:"3" type:"string"` + S3Bucket *string `type:"string"` // The Amazon S3 object (the deployment package) key name you want to upload. - S3Key *string `min:"1" type:"string"` + S3Key *string `type:"string"` // The Amazon S3 object (the deployment package) version you want to upload. - S3ObjectVersion *string `min:"1" type:"string"` + S3ObjectVersion *string `type:"string"` // Based64-encoded .zip file containing your packaged source code. - // - // ZipFile is automatically base64 encoded/decoded by the SDK. ZipFile []byte `type:"blob"` + + metadataUpdateFunctionCodeInput `json:"-" xml:"-"` +} + +type metadataUpdateFunctionCodeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2626,46 +1571,20 @@ func (s UpdateFunctionCodeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateFunctionCodeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateFunctionCodeInput"} - 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.S3Bucket != nil && len(*s.S3Bucket) < 3 { - invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) - } - if s.S3Key != nil && len(*s.S3Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("S3Key", 1)) - } - if s.S3ObjectVersion != nil && len(*s.S3ObjectVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("S3ObjectVersion", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type UpdateFunctionConfigurationInput struct { - _ struct{} `type:"structure"` - // A short user-defined function description. AWS Lambda does not use this value. // Assign a meaningful description as you see fit. Description *string `type:"string"` // The name of the Lambda function. // - // You can specify a function name (for example, Thumbnail) or you can specify - // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). - // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). + // You can specify an unqualified function name (for example, "Thumbnail") + // or you can specify Amazon Resource Name (ARN) of the function (for example, + // "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also + // allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). // Note that the length constraint applies only to the ARN. If you specify only // the function name, it is limited to 64 character in length. - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + FunctionName *string `location:"uri" locationName:"FunctionName" type:"string" required:"true"` // The function that Lambda calls to begin executing your function. For Node.js, // it is the module-name.export value in your function. @@ -2677,103 +1596,31 @@ type UpdateFunctionConfigurationInput struct { // a database operation might need less memory compared to an image processing // function. The default value is 128 MB. The value must be a multiple of 64 // MB. - MemorySize *int64 `min:"128" type:"integer"` + MemorySize *int64 `type:"integer"` // The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when // it executes your function. Role *string `type:"string"` - Runtime *string `type:"string" enum:"Runtime"` - // The function execution time at which AWS Lambda should terminate the function. // Because the execution time has cost implications, we recommend you set this // value based on your expected execution time. The default is 3 seconds. - Timeout *int64 `min:"1" type:"integer"` + Timeout *int64 `type:"integer"` - // If your Lambda function accesses resources in a VPC, you provide this parameter - // identifying the list of security group IDs and subnet IDs. These must belong - // to the same VPC. You must provide at least one security group and one subnet - // ID. - VpcConfig *VpcConfig `type:"structure"` + metadataUpdateFunctionConfigurationInput `json:"-" xml:"-"` } -// String returns the string representation -func (s UpdateFunctionConfigurationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateFunctionConfigurationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateFunctionConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateFunctionConfigurationInput"} - 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.MemorySize != nil && *s.MemorySize < 128 { - invalidParams.Add(request.NewErrParamMinValue("MemorySize", 128)) - } - if s.Timeout != nil && *s.Timeout < 1 { - invalidParams.Add(request.NewErrParamMinValue("Timeout", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// If your Lambda function accesses resources in a VPC, you provide this parameter -// identifying the list of security group IDs and subnet IDs. These must belong -// to the same VPC. You must provide at least one security group and one subnet -// ID. -type VpcConfig struct { - _ struct{} `type:"structure"` - - // A list of one or more security groups IDs in your VPC. - SecurityGroupIds []*string `type:"list"` - - // A list of one or more subnet IDs in your VPC. - SubnetIds []*string `type:"list"` +type metadataUpdateFunctionConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s VpcConfig) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s VpcConfig) GoString() string { - return s.String() -} - -// VPC configuration associated with your Lambda function. -type VpcConfigResponse struct { - _ struct{} `type:"structure"` - - // A list of security group IDs associated with the Lambda function. - SecurityGroupIds []*string `type:"list"` - - // A list of subnet IDs associated with the Lambda function. - SubnetIds []*string `type:"list"` - - // The VPC ID associated with you Lambda function. - VpcId *string `type:"string"` -} - -// String returns the string representation -func (s VpcConfigResponse) String() string { +func (s UpdateFunctionConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s VpcConfigResponse) GoString() string { +func (s UpdateFunctionConfigurationInput) GoString() string { return s.String() } @@ -2804,9 +1651,5 @@ const ( // @enum Runtime RuntimeNodejs = "nodejs" // @enum Runtime - RuntimeNodejs43 = "nodejs4.3" - // @enum Runtime RuntimeJava8 = "java8" - // @enum Runtime - RuntimePython27 = "python2.7" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go index c5d9e2960..ca3fa90bf 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) @@ -16,17 +15,15 @@ var _ time.Duration var _ bytes.Buffer func ExampleLambda_AddPermission() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.AddPermissionInput{ - Action: aws.String("Action"), // Required - FunctionName: aws.String("FunctionName"), // Required - Principal: aws.String("Principal"), // Required - StatementId: aws.String("StatementId"), // Required - EventSourceToken: aws.String("EventSourceToken"), - Qualifier: aws.String("Qualifier"), - SourceAccount: aws.String("SourceOwner"), - SourceArn: aws.String("Arn"), + Action: aws.String("Action"), // Required + FunctionName: aws.String("FunctionName"), // Required + Principal: aws.String("Principal"), // Required + StatementId: aws.String("StatementId"), // Required + SourceAccount: aws.String("SourceOwner"), + SourceArn: aws.String("Arn"), } resp, err := svc.AddPermission(params) @@ -41,30 +38,8 @@ func ExampleLambda_AddPermission() { fmt.Println(resp) } -func ExampleLambda_CreateAlias() { - svc := lambda.New(session.New()) - - params := &lambda.CreateAliasInput{ - FunctionName: aws.String("FunctionName"), // Required - FunctionVersion: aws.String("Version"), // Required - Name: aws.String("Alias"), // Required - Description: aws.String("Description"), - } - resp, err := svc.CreateAlias(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleLambda_CreateEventSourceMapping() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.CreateEventSourceMappingInput{ EventSourceArn: aws.String("Arn"), // Required @@ -87,7 +62,7 @@ func ExampleLambda_CreateEventSourceMapping() { } func ExampleLambda_CreateFunction() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.CreateFunctionInput{ Code: &lambda.FunctionCode{ // Required @@ -102,18 +77,7 @@ func ExampleLambda_CreateFunction() { Runtime: aws.String("Runtime"), // Required Description: aws.String("Description"), MemorySize: aws.Int64(1), - Publish: aws.Bool(true), Timeout: aws.Int64(1), - VpcConfig: &lambda.VpcConfig{ - SecurityGroupIds: []*string{ - aws.String("SecurityGroupId"), // Required - // More values... - }, - SubnetIds: []*string{ - aws.String("SubnetId"), // Required - // More values... - }, - }, } resp, err := svc.CreateFunction(params) @@ -128,28 +92,8 @@ func ExampleLambda_CreateFunction() { fmt.Println(resp) } -func ExampleLambda_DeleteAlias() { - svc := lambda.New(session.New()) - - params := &lambda.DeleteAliasInput{ - FunctionName: aws.String("FunctionName"), // Required - Name: aws.String("Alias"), // Required - } - resp, err := svc.DeleteAlias(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleLambda_DeleteEventSourceMapping() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.DeleteEventSourceMappingInput{ UUID: aws.String("String"), // Required @@ -168,11 +112,10 @@ func ExampleLambda_DeleteEventSourceMapping() { } func ExampleLambda_DeleteFunction() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.DeleteFunctionInput{ FunctionName: aws.String("FunctionName"), // Required - Qualifier: aws.String("Qualifier"), } resp, err := svc.DeleteFunction(params) @@ -187,28 +130,8 @@ func ExampleLambda_DeleteFunction() { fmt.Println(resp) } -func ExampleLambda_GetAlias() { - svc := lambda.New(session.New()) - - params := &lambda.GetAliasInput{ - FunctionName: aws.String("FunctionName"), // Required - Name: aws.String("Alias"), // Required - } - resp, err := svc.GetAlias(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleLambda_GetEventSourceMapping() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.GetEventSourceMappingInput{ UUID: aws.String("String"), // Required @@ -227,11 +150,10 @@ func ExampleLambda_GetEventSourceMapping() { } func ExampleLambda_GetFunction() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.GetFunctionInput{ FunctionName: aws.String("FunctionName"), // Required - Qualifier: aws.String("Qualifier"), } resp, err := svc.GetFunction(params) @@ -247,11 +169,10 @@ func ExampleLambda_GetFunction() { } func ExampleLambda_GetFunctionConfiguration() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.GetFunctionConfigurationInput{ FunctionName: aws.String("FunctionName"), // Required - Qualifier: aws.String("Qualifier"), } resp, err := svc.GetFunctionConfiguration(params) @@ -267,11 +188,10 @@ func ExampleLambda_GetFunctionConfiguration() { } func ExampleLambda_GetPolicy() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.GetPolicyInput{ FunctionName: aws.String("FunctionName"), // Required - Qualifier: aws.String("Qualifier"), } resp, err := svc.GetPolicy(params) @@ -287,7 +207,7 @@ func ExampleLambda_GetPolicy() { } func ExampleLambda_Invoke() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.InvokeInput{ FunctionName: aws.String("FunctionName"), // Required @@ -295,7 +215,6 @@ func ExampleLambda_Invoke() { InvocationType: aws.String("InvocationType"), LogType: aws.String("LogType"), Payload: []byte("PAYLOAD"), - Qualifier: aws.String("Qualifier"), } resp, err := svc.Invoke(params) @@ -311,7 +230,7 @@ func ExampleLambda_Invoke() { } func ExampleLambda_InvokeAsync() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.InvokeAsyncInput{ FunctionName: aws.String("FunctionName"), // Required @@ -330,30 +249,8 @@ func ExampleLambda_InvokeAsync() { fmt.Println(resp) } -func ExampleLambda_ListAliases() { - svc := lambda.New(session.New()) - - params := &lambda.ListAliasesInput{ - FunctionName: aws.String("FunctionName"), // Required - FunctionVersion: aws.String("Version"), - Marker: aws.String("String"), - MaxItems: aws.Int64(1), - } - resp, err := svc.ListAliases(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleLambda_ListEventSourceMappings() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.ListEventSourceMappingsInput{ EventSourceArn: aws.String("Arn"), @@ -375,7 +272,7 @@ func ExampleLambda_ListEventSourceMappings() { } func ExampleLambda_ListFunctions() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.ListFunctionsInput{ Marker: aws.String("String"), @@ -394,55 +291,12 @@ func ExampleLambda_ListFunctions() { fmt.Println(resp) } -func ExampleLambda_ListVersionsByFunction() { - svc := lambda.New(session.New()) - - params := &lambda.ListVersionsByFunctionInput{ - FunctionName: aws.String("FunctionName"), // Required - Marker: aws.String("String"), - MaxItems: aws.Int64(1), - } - resp, err := svc.ListVersionsByFunction(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleLambda_PublishVersion() { - svc := lambda.New(session.New()) - - params := &lambda.PublishVersionInput{ - FunctionName: aws.String("FunctionName"), // Required - CodeSha256: aws.String("String"), - Description: aws.String("Description"), - } - resp, err := svc.PublishVersion(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleLambda_RemovePermission() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.RemovePermissionInput{ FunctionName: aws.String("FunctionName"), // Required StatementId: aws.String("StatementId"), // Required - Qualifier: aws.String("Qualifier"), } resp, err := svc.RemovePermission(params) @@ -457,30 +311,8 @@ func ExampleLambda_RemovePermission() { fmt.Println(resp) } -func ExampleLambda_UpdateAlias() { - svc := lambda.New(session.New()) - - params := &lambda.UpdateAliasInput{ - FunctionName: aws.String("FunctionName"), // Required - Name: aws.String("Alias"), // Required - Description: aws.String("Description"), - FunctionVersion: aws.String("Version"), - } - resp, err := svc.UpdateAlias(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleLambda_UpdateEventSourceMapping() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.UpdateEventSourceMappingInput{ UUID: aws.String("String"), // Required @@ -502,11 +334,10 @@ func ExampleLambda_UpdateEventSourceMapping() { } func ExampleLambda_UpdateFunctionCode() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.UpdateFunctionCodeInput{ FunctionName: aws.String("FunctionName"), // Required - Publish: aws.Bool(true), S3Bucket: aws.String("S3Bucket"), S3Key: aws.String("S3Key"), S3ObjectVersion: aws.String("S3ObjectVersion"), @@ -526,7 +357,7 @@ func ExampleLambda_UpdateFunctionCode() { } func ExampleLambda_UpdateFunctionConfiguration() { - svc := lambda.New(session.New()) + svc := lambda.New(nil) params := &lambda.UpdateFunctionConfigurationInput{ FunctionName: aws.String("FunctionName"), // Required @@ -534,18 +365,7 @@ func ExampleLambda_UpdateFunctionConfiguration() { Handler: aws.String("Handler"), MemorySize: aws.Int64(1), Role: aws.String("RoleArn"), - Runtime: aws.String("Runtime"), Timeout: aws.Int64(1), - VpcConfig: &lambda.VpcConfig{ - SecurityGroupIds: []*string{ - aws.String("SecurityGroupId"), // Required - // More values... - }, - SubnetIds: []*string{ - aws.String("SubnetId"), // Required - // More values... - }, - }, } resp, err := svc.UpdateFunctionConfiguration(params) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go index 03c2a40d9..8be52c71f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface.go @@ -14,10 +14,6 @@ type LambdaAPI interface { AddPermission(*lambda.AddPermissionInput) (*lambda.AddPermissionOutput, error) - CreateAliasRequest(*lambda.CreateAliasInput) (*request.Request, *lambda.AliasConfiguration) - - CreateAlias(*lambda.CreateAliasInput) (*lambda.AliasConfiguration, error) - CreateEventSourceMappingRequest(*lambda.CreateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) CreateEventSourceMapping(*lambda.CreateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) @@ -26,10 +22,6 @@ type LambdaAPI interface { CreateFunction(*lambda.CreateFunctionInput) (*lambda.FunctionConfiguration, error) - DeleteAliasRequest(*lambda.DeleteAliasInput) (*request.Request, *lambda.DeleteAliasOutput) - - DeleteAlias(*lambda.DeleteAliasInput) (*lambda.DeleteAliasOutput, error) - DeleteEventSourceMappingRequest(*lambda.DeleteEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) DeleteEventSourceMapping(*lambda.DeleteEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) @@ -38,10 +30,6 @@ type LambdaAPI interface { DeleteFunction(*lambda.DeleteFunctionInput) (*lambda.DeleteFunctionOutput, error) - GetAliasRequest(*lambda.GetAliasInput) (*request.Request, *lambda.AliasConfiguration) - - GetAlias(*lambda.GetAliasInput) (*lambda.AliasConfiguration, error) - GetEventSourceMappingRequest(*lambda.GetEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) GetEventSourceMapping(*lambda.GetEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) @@ -66,10 +54,6 @@ type LambdaAPI interface { InvokeAsync(*lambda.InvokeAsyncInput) (*lambda.InvokeAsyncOutput, error) - ListAliasesRequest(*lambda.ListAliasesInput) (*request.Request, *lambda.ListAliasesOutput) - - ListAliases(*lambda.ListAliasesInput) (*lambda.ListAliasesOutput, error) - ListEventSourceMappingsRequest(*lambda.ListEventSourceMappingsInput) (*request.Request, *lambda.ListEventSourceMappingsOutput) ListEventSourceMappings(*lambda.ListEventSourceMappingsInput) (*lambda.ListEventSourceMappingsOutput, error) @@ -82,22 +66,10 @@ type LambdaAPI interface { ListFunctionsPages(*lambda.ListFunctionsInput, func(*lambda.ListFunctionsOutput, bool) bool) error - ListVersionsByFunctionRequest(*lambda.ListVersionsByFunctionInput) (*request.Request, *lambda.ListVersionsByFunctionOutput) - - ListVersionsByFunction(*lambda.ListVersionsByFunctionInput) (*lambda.ListVersionsByFunctionOutput, error) - - PublishVersionRequest(*lambda.PublishVersionInput) (*request.Request, *lambda.FunctionConfiguration) - - PublishVersion(*lambda.PublishVersionInput) (*lambda.FunctionConfiguration, error) - RemovePermissionRequest(*lambda.RemovePermissionInput) (*request.Request, *lambda.RemovePermissionOutput) RemovePermission(*lambda.RemovePermissionInput) (*lambda.RemovePermissionOutput, error) - UpdateAliasRequest(*lambda.UpdateAliasInput) (*request.Request, *lambda.AliasConfiguration) - - UpdateAlias(*lambda.UpdateAliasInput) (*lambda.AliasConfiguration, error) - UpdateEventSourceMappingRequest(*lambda.UpdateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) UpdateEventSourceMapping(*lambda.UpdateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) @@ -110,5 +82,3 @@ type LambdaAPI interface { UpdateFunctionConfiguration(*lambda.UpdateFunctionConfigurationInput) (*lambda.FunctionConfiguration, error) } - -var _ LambdaAPI = (*lambda.Lambda)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface_test.go new file mode 100644 index 000000000..c5d2f00cf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package lambdaiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/lambda" + "github.com/aws/aws-sdk-go/service/lambda/lambdaiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*lambdaiface.LambdaAPI)(nil), lambda.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go index 0ccde6c02..328661ff7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/service.go @@ -4,11 +4,12 @@ package lambda import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restjson" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Overview @@ -18,64 +19,40 @@ import ( // (http://docs.aws.amazon.com/lambda/latest/dg/welcome.html), and for information // about how the service works, go to AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) // in the AWS Lambda Developer Guide. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type Lambda struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "lambda" - -// New creates a new instance of the Lambda client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a Lambda client from just a session. -// svc := lambda.New(mySession) -// -// // Create a Lambda client with additional configuration -// svc := lambda.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *Lambda { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Lambda { - svc := &Lambda{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-03-31", - }, - handlers, - ), +// New returns a new Lambda client. +func New(config *aws.Config) *Lambda { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "lambda", + APIVersion: "2015-03-31", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &Lambda{service} } // newRequest creates a new request for a Lambda operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/api.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/api.go index 5e06188a7..cc792f5a4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/api.go @@ -341,7 +341,7 @@ func (c *MachineLearning) DeleteBatchPredictionRequest(input *DeleteBatchPredict // After using the DeleteBatchPrediction operation, you can use the GetBatchPrediction // operation to verify that the status of the BatchPrediction changed to DELETED. // -// Caution: The result of the DeleteBatchPrediction operation is irreversible. +// Caution The result of the DeleteBatchPrediction operation is irreversible. func (c *MachineLearning) DeleteBatchPrediction(input *DeleteBatchPredictionInput) (*DeleteBatchPredictionOutput, error) { req, out := c.DeleteBatchPredictionRequest(input) err := req.Send() @@ -373,7 +373,7 @@ func (c *MachineLearning) DeleteDataSourceRequest(input *DeleteDataSourceInput) // After using the DeleteDataSource operation, you can use the GetDataSource // operation to verify that the status of the DataSource changed to DELETED. // -// Caution: The results of the DeleteDataSource operation are irreversible. +// Caution The results of the DeleteDataSource operation are irreversible. func (c *MachineLearning) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) { req, out := c.DeleteDataSourceRequest(input) err := req.Send() @@ -405,7 +405,7 @@ func (c *MachineLearning) DeleteEvaluationRequest(input *DeleteEvaluationInput) // After invoking the DeleteEvaluation operation, you can use the GetEvaluation // operation to verify that the status of the Evaluation changed to DELETED. // -// Caution: The results of the DeleteEvaluation operation are irreversible. +// Caution The results of the DeleteEvaluation operation are irreversible. func (c *MachineLearning) DeleteEvaluation(input *DeleteEvaluationInput) (*DeleteEvaluationOutput, error) { req, out := c.DeleteEvaluationRequest(input) err := req.Send() @@ -437,7 +437,7 @@ func (c *MachineLearning) DeleteMLModelRequest(input *DeleteMLModelInput) (req * // After using the DeleteMLModel operation, you can use the GetMLModel operation // to verify that the status of the MLModel changed to DELETED. // -// Caution: The result of the DeleteMLModel operation is irreversible. +// Caution The result of the DeleteMLModel operation is irreversible. func (c *MachineLearning) DeleteMLModel(input *DeleteMLModelInput) (*DeleteMLModelOutput, error) { req, out := c.DeleteMLModelRequest(input) err := req.Send() @@ -507,7 +507,6 @@ func (c *MachineLearning) DescribeBatchPredictions(input *DescribeBatchPredictio func (c *MachineLearning) DescribeBatchPredictionsPages(input *DescribeBatchPredictionsInput, fn func(p *DescribeBatchPredictionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeBatchPredictionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeBatchPredictionsOutput), lastPage) }) @@ -548,7 +547,6 @@ func (c *MachineLearning) DescribeDataSources(input *DescribeDataSourcesInput) ( func (c *MachineLearning) DescribeDataSourcesPages(input *DescribeDataSourcesInput, fn func(p *DescribeDataSourcesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDataSourcesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDataSourcesOutput), lastPage) }) @@ -590,7 +588,6 @@ func (c *MachineLearning) DescribeEvaluations(input *DescribeEvaluationsInput) ( func (c *MachineLearning) DescribeEvaluationsPages(input *DescribeEvaluationsInput, fn func(p *DescribeEvaluationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeEvaluationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeEvaluationsOutput), lastPage) }) @@ -631,7 +628,6 @@ func (c *MachineLearning) DescribeMLModels(input *DescribeMLModelsInput) (*Descr func (c *MachineLearning) DescribeMLModelsPages(input *DescribeMLModelsInput, fn func(p *DescribeMLModelsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeMLModelsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeMLModelsOutput), lastPage) }) @@ -775,10 +771,10 @@ func (c *MachineLearning) PredictRequest(input *PredictInput) (req *request.Requ return } -// Generates a prediction for the observation using the specified ML Model. +// Generates a prediction for the observation using the specified MLModel. // -// Note Not all response parameters will be populated. Whether a response parameter -// is populated depends on the type of model requested. +// Note Not all response parameters will be populated because this is dependent +// on the type of requested model. func (c *MachineLearning) Predict(input *PredictInput) (*PredictOutput, error) { req, out := c.PredictRequest(input) err := req.Send() @@ -910,14 +906,12 @@ func (c *MachineLearning) UpdateMLModel(input *UpdateMLModelInput) (*UpdateMLMod // The content consists of the detailed metadata, the status, and the data // file information of a Batch Prediction. type BatchPrediction struct { - _ struct{} `type:"structure"` - // The ID of the DataSource that points to the group of observations to predict. - BatchPredictionDataSourceId *string `min:"1" type:"string"` + BatchPredictionDataSourceId *string `type:"string"` // The ID assigned to the BatchPrediction at creation. This value should be // identical to the value of the BatchPredictionID in the request. - BatchPredictionId *string `min:"1" type:"string"` + BatchPredictionId *string `type:"string"` // The time that the BatchPrediction was created. The time is expressed in epoch // time. @@ -938,7 +932,7 @@ type BatchPrediction struct { // The ID of the MLModel that generated predictions for the BatchPrediction // request. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` // A description of the most recent details about processing the batch prediction // request. @@ -961,6 +955,12 @@ type BatchPrediction struct { // It is not usable. COMPLETED - The batch prediction process completed successfully. // DELETED - The BatchPrediction is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` + + metadataBatchPrediction `json:"-" xml:"-"` +} + +type metadataBatchPrediction struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -974,20 +974,18 @@ func (s BatchPrediction) GoString() string { } type CreateBatchPredictionInput struct { - _ struct{} `type:"structure"` - // The ID of the DataSource that points to the group of observations to predict. - BatchPredictionDataSourceId *string `min:"1" type:"string" required:"true"` + BatchPredictionDataSourceId *string `type:"string" required:"true"` // A user-supplied ID that uniquely identifies the BatchPrediction. - BatchPredictionId *string `min:"1" type:"string" required:"true"` + BatchPredictionId *string `type:"string" required:"true"` // A user-supplied name or description of the BatchPrediction. BatchPredictionName // can only use the UTF-8 character set. BatchPredictionName *string `type:"string"` // The ID of the MLModel that will generate predictions for the group of observations. - MLModelId *string `min:"1" type:"string" required:"true"` + MLModelId *string `type:"string" required:"true"` // The location of an Amazon Simple Storage Service (Amazon S3) bucket or directory // to store the batch prediction results. The following substrings are not allowed @@ -997,6 +995,12 @@ type CreateBatchPredictionInput struct { // For information about how to set permissions, see the Amazon Machine Learning // Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg). OutputUri *string `type:"string" required:"true"` + + metadataCreateBatchPredictionInput `json:"-" xml:"-"` +} + +type metadataCreateBatchPredictionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1009,37 +1013,6 @@ func (s CreateBatchPredictionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateBatchPredictionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateBatchPredictionInput"} - if s.BatchPredictionDataSourceId == nil { - invalidParams.Add(request.NewErrParamRequired("BatchPredictionDataSourceId")) - } - if s.BatchPredictionDataSourceId != nil && len(*s.BatchPredictionDataSourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BatchPredictionDataSourceId", 1)) - } - if s.BatchPredictionId == nil { - invalidParams.Add(request.NewErrParamRequired("BatchPredictionId")) - } - if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1)) - } - if s.MLModelId == nil { - invalidParams.Add(request.NewErrParamRequired("MLModelId")) - } - if s.MLModelId != nil && len(*s.MLModelId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) - } - if s.OutputUri == nil { - invalidParams.Add(request.NewErrParamRequired("OutputUri")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a CreateBatchPrediction operation, and is an acknowledgement // that Amazon ML received the request. // @@ -1047,11 +1020,15 @@ func (s *CreateBatchPredictionInput) Validate() error { // updates by using the GetBatchPrediction operation and checking the Status // parameter of the result. type CreateBatchPredictionOutput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the BatchPrediction. This value // is identical to the value of the BatchPredictionId in the request. - BatchPredictionId *string `min:"1" type:"string"` + BatchPredictionId *string `type:"string"` + + metadataCreateBatchPredictionOutput `json:"-" xml:"-"` +} + +type metadataCreateBatchPredictionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1065,8 +1042,6 @@ func (s CreateBatchPredictionOutput) GoString() string { } type CreateDataSourceFromRDSInput struct { - _ struct{} `type:"structure"` - // The compute statistics for a DataSource. The statistics are generated from // the observation data referenced by a DataSource. Amazon ML uses the statistics // internally during an MLModel training. This parameter must be set to true @@ -1075,7 +1050,7 @@ type CreateDataSourceFromRDSInput struct { // A user-supplied ID that uniquely identifies the DataSource. Typically, an // Amazon Resource Number (ARN) becomes the ID for a DataSource. - DataSourceId *string `min:"1" type:"string" required:"true"` + DataSourceId *string `type:"string" required:"true"` // A user-supplied name or description of the DataSource. DataSourceName *string `type:"string"` @@ -1118,13 +1093,19 @@ type CreateDataSourceFromRDSInput struct { // DataRearrangement - A JSON string representing the splitting requirement // of a Datasource. // - // Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" + // Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" RDSData *RDSDataSpec `type:"structure" required:"true"` // The role that Amazon ML assumes on behalf of the user to create and activate // a data pipeline in the user’s account and copy data (using the SelectSqlQuery) // query from Amazon RDS to Amazon S3. - RoleARN *string `min:"1" type:"string" required:"true"` + RoleARN *string `type:"string" required:"true"` + + metadataCreateDataSourceFromRDSInput `json:"-" xml:"-"` +} + +type metadataCreateDataSourceFromRDSInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1137,36 +1118,6 @@ func (s CreateDataSourceFromRDSInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDataSourceFromRDSInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceFromRDSInput"} - if s.DataSourceId == nil { - invalidParams.Add(request.NewErrParamRequired("DataSourceId")) - } - if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) - } - if s.RDSData == nil { - invalidParams.Add(request.NewErrParamRequired("RDSData")) - } - if s.RoleARN == nil { - invalidParams.Add(request.NewErrParamRequired("RoleARN")) - } - if s.RoleARN != nil && len(*s.RoleARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) - } - if s.RDSData != nil { - if err := s.RDSData.Validate(); err != nil { - invalidParams.AddNested("RDSData", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a CreateDataSourceFromRDS operation, and is an acknowledgement // that Amazon ML received the request. // @@ -1177,11 +1128,15 @@ func (s *CreateDataSourceFromRDSInput) Validate() error { // console and looking up the pipeline using the pipelineId from the describe // call. type CreateDataSourceFromRDSOutput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the datasource. This value should // be identical to the value of the DataSourceID in the request. - DataSourceId *string `min:"1" type:"string"` + DataSourceId *string `type:"string"` + + metadataCreateDataSourceFromRDSOutput `json:"-" xml:"-"` +} + +type metadataCreateDataSourceFromRDSOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1195,8 +1150,6 @@ func (s CreateDataSourceFromRDSOutput) GoString() string { } type CreateDataSourceFromRedshiftInput struct { - _ struct{} `type:"structure"` - // The compute statistics for a DataSource. The statistics are generated from // the observation data referenced by a DataSource. Amazon ML uses the statistics // internally during MLModel training. This parameter must be set to true if @@ -1204,7 +1157,7 @@ type CreateDataSourceFromRedshiftInput struct { ComputeStatistics *bool `type:"boolean"` // A user-supplied ID that uniquely identifies the DataSource. - DataSourceId *string `min:"1" type:"string" required:"true"` + DataSourceId *string `type:"string" required:"true"` // A user-supplied name or description of the DataSource. DataSourceName *string `type:"string"` @@ -1232,7 +1185,7 @@ type CreateDataSourceFromRedshiftInput struct { // DataRearrangement - A JSON string representing the splitting requirement // of a Datasource. // - // Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" + // Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" DataSpec *RedshiftDataSpec `type:"structure" required:"true"` // A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the @@ -1243,7 +1196,13 @@ type CreateDataSourceFromRedshiftInput struct { // // An Amazon S3 bucket policy to grant Amazon ML read/write permissions on // the S3StagingLocation - RoleARN *string `min:"1" type:"string" required:"true"` + RoleARN *string `type:"string" required:"true"` + + metadataCreateDataSourceFromRedshiftInput `json:"-" xml:"-"` +} + +type metadataCreateDataSourceFromRedshiftInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1256,36 +1215,6 @@ func (s CreateDataSourceFromRedshiftInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDataSourceFromRedshiftInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceFromRedshiftInput"} - if s.DataSourceId == nil { - invalidParams.Add(request.NewErrParamRequired("DataSourceId")) - } - if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) - } - if s.DataSpec == nil { - invalidParams.Add(request.NewErrParamRequired("DataSpec")) - } - if s.RoleARN == nil { - invalidParams.Add(request.NewErrParamRequired("RoleARN")) - } - if s.RoleARN != nil && len(*s.RoleARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1)) - } - if s.DataSpec != nil { - if err := s.DataSpec.Validate(); err != nil { - invalidParams.AddNested("DataSpec", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a CreateDataSourceFromRedshift operation, and is // an acknowledgement that Amazon ML received the request. // @@ -1293,11 +1222,15 @@ func (s *CreateDataSourceFromRedshiftInput) Validate() error { // for updates by using the GetBatchPrediction operation and checking the Status // parameter. type CreateDataSourceFromRedshiftOutput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the datasource. This value should // be identical to the value of the DataSourceID in the request. - DataSourceId *string `min:"1" type:"string"` + DataSourceId *string `type:"string"` + + metadataCreateDataSourceFromRedshiftOutput `json:"-" xml:"-"` +} + +type metadataCreateDataSourceFromRedshiftOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1311,8 +1244,6 @@ func (s CreateDataSourceFromRedshiftOutput) GoString() string { } type CreateDataSourceFromS3Input struct { - _ struct{} `type:"structure"` - // The compute statistics for a DataSource. The statistics are generated from // the observation data referenced by a DataSource. Amazon ML uses the statistics // internally during an MLModel training. This parameter must be set to true @@ -1320,7 +1251,7 @@ type CreateDataSourceFromS3Input struct { ComputeStatistics *bool `type:"boolean"` // A user-supplied identifier that uniquely identifies the DataSource. - DataSourceId *string `min:"1" type:"string" required:"true"` + DataSourceId *string `type:"string" required:"true"` // A user-supplied name or description of the DataSource. DataSourceName *string `type:"string"` @@ -1338,8 +1269,14 @@ type CreateDataSourceFromS3Input struct { // DataRearrangement - A JSON string representing the splitting requirement // of a Datasource. // - // Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" + // Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" DataSpec *S3DataSpec `type:"structure" required:"true"` + + metadataCreateDataSourceFromS3Input `json:"-" xml:"-"` +} + +type metadataCreateDataSourceFromS3Input struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1352,41 +1289,21 @@ func (s CreateDataSourceFromS3Input) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDataSourceFromS3Input) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceFromS3Input"} - if s.DataSourceId == nil { - invalidParams.Add(request.NewErrParamRequired("DataSourceId")) - } - if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) - } - if s.DataSpec == nil { - invalidParams.Add(request.NewErrParamRequired("DataSpec")) - } - if s.DataSpec != nil { - if err := s.DataSpec.Validate(); err != nil { - invalidParams.AddNested("DataSpec", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a CreateDataSourceFromS3 operation, and is an acknowledgement // that Amazon ML received the request. // // The CreateDataSourceFromS3 operation is asynchronous. You can poll for updates // by using the GetBatchPrediction operation and checking the Status parameter. type CreateDataSourceFromS3Output struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the datasource. This value should // be identical to the value of the DataSourceID in the request. - DataSourceId *string `min:"1" type:"string"` + DataSourceId *string `type:"string"` + + metadataCreateDataSourceFromS3Output `json:"-" xml:"-"` +} + +type metadataCreateDataSourceFromS3Output struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1400,14 +1317,12 @@ func (s CreateDataSourceFromS3Output) GoString() string { } type CreateEvaluationInput struct { - _ struct{} `type:"structure"` - // The ID of the DataSource for the evaluation. The schema of the DataSource // must match the schema used to create the MLModel. - EvaluationDataSourceId *string `min:"1" type:"string" required:"true"` + EvaluationDataSourceId *string `type:"string" required:"true"` // A user-supplied ID that uniquely identifies the Evaluation. - EvaluationId *string `min:"1" type:"string" required:"true"` + EvaluationId *string `type:"string" required:"true"` // A user-supplied name or description of the Evaluation. EvaluationName *string `type:"string"` @@ -1416,7 +1331,13 @@ type CreateEvaluationInput struct { // // The schema used in creating the MLModel must match the schema of the DataSource // used in the Evaluation. - MLModelId *string `min:"1" type:"string" required:"true"` + MLModelId *string `type:"string" required:"true"` + + metadataCreateEvaluationInput `json:"-" xml:"-"` +} + +type metadataCreateEvaluationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1429,45 +1350,21 @@ func (s CreateEvaluationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEvaluationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEvaluationInput"} - if s.EvaluationDataSourceId == nil { - invalidParams.Add(request.NewErrParamRequired("EvaluationDataSourceId")) - } - if s.EvaluationDataSourceId != nil && len(*s.EvaluationDataSourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EvaluationDataSourceId", 1)) - } - if s.EvaluationId == nil { - invalidParams.Add(request.NewErrParamRequired("EvaluationId")) - } - if s.EvaluationId != nil && len(*s.EvaluationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1)) - } - if s.MLModelId == nil { - invalidParams.Add(request.NewErrParamRequired("MLModelId")) - } - if s.MLModelId != nil && len(*s.MLModelId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a CreateEvaluation operation, and is an acknowledgement // that Amazon ML received the request. // // CreateEvaluation operation is asynchronous. You can poll for status updates // by using the GetEvaluation operation and checking the Status parameter. type CreateEvaluationOutput struct { - _ struct{} `type:"structure"` - // The user-supplied ID that uniquely identifies the Evaluation. This value // should be identical to the value of the EvaluationId in the request. - EvaluationId *string `min:"1" type:"string"` + EvaluationId *string `type:"string"` + + metadataCreateEvaluationOutput `json:"-" xml:"-"` +} + +type metadataCreateEvaluationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1481,10 +1378,8 @@ func (s CreateEvaluationOutput) GoString() string { } type CreateMLModelInput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the MLModel. - MLModelId *string `min:"1" type:"string" required:"true"` + MLModelId *string `type:"string" required:"true"` // A user-supplied name or description of the MLModel. MLModelName *string `type:"string"` @@ -1543,7 +1438,13 @@ type CreateMLModelInput struct { RecipeUri *string `type:"string"` // The DataSource that points to the training data. - TrainingDataSourceId *string `min:"1" type:"string" required:"true"` + TrainingDataSourceId *string `type:"string" required:"true"` + + metadataCreateMLModelInput `json:"-" xml:"-"` +} + +type metadataCreateMLModelInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1556,42 +1457,21 @@ func (s CreateMLModelInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMLModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMLModelInput"} - if s.MLModelId == nil { - invalidParams.Add(request.NewErrParamRequired("MLModelId")) - } - if s.MLModelId != nil && len(*s.MLModelId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) - } - if s.MLModelType == nil { - invalidParams.Add(request.NewErrParamRequired("MLModelType")) - } - if s.TrainingDataSourceId == nil { - invalidParams.Add(request.NewErrParamRequired("TrainingDataSourceId")) - } - if s.TrainingDataSourceId != nil && len(*s.TrainingDataSourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TrainingDataSourceId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a CreateMLModel operation, and is an acknowledgement // that Amazon ML received the request. // // The CreateMLModel operation is asynchronous. You can poll for status updates // by using the GetMLModel operation and checking the Status parameter. type CreateMLModelOutput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the MLModel. This value should // be identical to the value of the MLModelId in the request. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` + + metadataCreateMLModelOutput `json:"-" xml:"-"` +} + +type metadataCreateMLModelOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1605,10 +1485,14 @@ func (s CreateMLModelOutput) GoString() string { } type CreateRealtimeEndpointInput struct { - _ struct{} `type:"structure"` - // The ID assigned to the MLModel during creation. - MLModelId *string `min:"1" type:"string" required:"true"` + MLModelId *string `type:"string" required:"true"` + + metadataCreateRealtimeEndpointInput `json:"-" xml:"-"` +} + +type metadataCreateRealtimeEndpointInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1621,22 +1505,6 @@ func (s CreateRealtimeEndpointInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRealtimeEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRealtimeEndpointInput"} - if s.MLModelId == nil { - invalidParams.Add(request.NewErrParamRequired("MLModelId")) - } - if s.MLModelId != nil && len(*s.MLModelId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an CreateRealtimeEndpoint operation. // // The result contains the MLModelId and the endpoint information for the MLModel. @@ -1644,14 +1512,18 @@ func (s *CreateRealtimeEndpointInput) Validate() error { // The endpoint information includes the URI of the MLModel; that is, the // location to send online prediction requests for the specified MLModel. type CreateRealtimeEndpointOutput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the MLModel. This value should // be identical to the value of the MLModelId in the request. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` // The endpoint information of the MLModel RealtimeEndpointInfo *RealtimeEndpointInfo `type:"structure"` + + metadataCreateRealtimeEndpointOutput `json:"-" xml:"-"` +} + +type metadataCreateRealtimeEndpointOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1669,8 +1541,6 @@ func (s CreateRealtimeEndpointOutput) GoString() string { // The content consists of the detailed metadata and data file information // and the current status of the DataSource. type DataSource struct { - _ struct{} `type:"structure"` - // The parameter is true if statistics need to be generated from the observation // data. ComputeStatistics *bool `type:"boolean"` @@ -1696,7 +1566,7 @@ type DataSource struct { DataSizeInBytes *int64 `type:"long"` // The ID that is assigned to the DataSource during creation. - DataSourceId *string `min:"1" type:"string"` + DataSourceId *string `type:"string"` // The time of the most recent edit to the BatchPrediction. The time is expressed // in epoch time. @@ -1719,7 +1589,7 @@ type DataSource struct { // The Amazon Resource Name (ARN) of an AWS IAM Role (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html#roles-about-termsandconcepts) // such as the following: arn:aws:iam::account:role/rolename. - RoleARN *string `min:"1" type:"string"` + RoleARN *string `type:"string"` // The current status of the DataSource. This element can have one of the following // values: @@ -1730,6 +1600,12 @@ type DataSource struct { // COMPLETED - The creation process completed successfully. DELETED - The DataSource // is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` + + metadataDataSource `json:"-" xml:"-"` +} + +type metadataDataSource struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1743,10 +1619,14 @@ func (s DataSource) GoString() string { } type DeleteBatchPredictionInput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the BatchPrediction. - BatchPredictionId *string `min:"1" type:"string" required:"true"` + BatchPredictionId *string `type:"string" required:"true"` + + metadataDeleteBatchPredictionInput `json:"-" xml:"-"` +} + +type metadataDeleteBatchPredictionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1759,32 +1639,20 @@ func (s DeleteBatchPredictionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBatchPredictionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBatchPredictionInput"} - if s.BatchPredictionId == nil { - invalidParams.Add(request.NewErrParamRequired("BatchPredictionId")) - } - if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DeleteBatchPrediction operation. // // You can use the GetBatchPrediction operation and check the value of the // Status parameter to see whether a BatchPrediction is marked as DELETED. type DeleteBatchPredictionOutput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the BatchPrediction. This value // should be identical to the value of the BatchPredictionID in the request. - BatchPredictionId *string `min:"1" type:"string"` + BatchPredictionId *string `type:"string"` + + metadataDeleteBatchPredictionOutput `json:"-" xml:"-"` +} + +type metadataDeleteBatchPredictionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1798,10 +1666,14 @@ func (s DeleteBatchPredictionOutput) GoString() string { } type DeleteDataSourceInput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the DataSource. - DataSourceId *string `min:"1" type:"string" required:"true"` + DataSourceId *string `type:"string" required:"true"` + + metadataDeleteDataSourceInput `json:"-" xml:"-"` +} + +type metadataDeleteDataSourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1814,29 +1686,17 @@ func (s DeleteDataSourceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDataSourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDataSourceInput"} - if s.DataSourceId == nil { - invalidParams.Add(request.NewErrParamRequired("DataSourceId")) - } - if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DeleteDataSource operation. type DeleteDataSourceOutput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the DataSource. This value should // be identical to the value of the DataSourceID in the request. - DataSourceId *string `min:"1" type:"string"` + DataSourceId *string `type:"string"` + + metadataDeleteDataSourceOutput `json:"-" xml:"-"` +} + +type metadataDeleteDataSourceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1850,10 +1710,14 @@ func (s DeleteDataSourceOutput) GoString() string { } type DeleteEvaluationInput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the Evaluation to delete. - EvaluationId *string `min:"1" type:"string" required:"true"` + EvaluationId *string `type:"string" required:"true"` + + metadataDeleteEvaluationInput `json:"-" xml:"-"` +} + +type metadataDeleteEvaluationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1866,33 +1730,21 @@ func (s DeleteEvaluationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEvaluationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEvaluationInput"} - if s.EvaluationId == nil { - invalidParams.Add(request.NewErrParamRequired("EvaluationId")) - } - if s.EvaluationId != nil && len(*s.EvaluationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DeleteEvaluation operation. The output indicates // that Amazon Machine Learning (Amazon ML) received the request. // // You can use the GetEvaluation operation and check the value of the Status // parameter to see whether an Evaluation is marked as DELETED. type DeleteEvaluationOutput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the Evaluation. This value should // be identical to the value of the EvaluationId in the request. - EvaluationId *string `min:"1" type:"string"` + EvaluationId *string `type:"string"` + + metadataDeleteEvaluationOutput `json:"-" xml:"-"` +} + +type metadataDeleteEvaluationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1906,10 +1758,14 @@ func (s DeleteEvaluationOutput) GoString() string { } type DeleteMLModelInput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the MLModel. - MLModelId *string `min:"1" type:"string" required:"true"` + MLModelId *string `type:"string" required:"true"` + + metadataDeleteMLModelInput `json:"-" xml:"-"` +} + +type metadataDeleteMLModelInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1922,32 +1778,20 @@ func (s DeleteMLModelInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMLModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMLModelInput"} - if s.MLModelId == nil { - invalidParams.Add(request.NewErrParamRequired("MLModelId")) - } - if s.MLModelId != nil && len(*s.MLModelId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DeleteMLModel operation. // // You can use the GetMLModel operation and check the value of the Status parameter // to see whether an MLModel is marked as DELETED. type DeleteMLModelOutput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the MLModel. This value should // be identical to the value of the MLModelID in the request. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` + + metadataDeleteMLModelOutput `json:"-" xml:"-"` +} + +type metadataDeleteMLModelOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1961,10 +1805,14 @@ func (s DeleteMLModelOutput) GoString() string { } type DeleteRealtimeEndpointInput struct { - _ struct{} `type:"structure"` - // The ID assigned to the MLModel during creation. - MLModelId *string `min:"1" type:"string" required:"true"` + MLModelId *string `type:"string" required:"true"` + + metadataDeleteRealtimeEndpointInput `json:"-" xml:"-"` +} + +type metadataDeleteRealtimeEndpointInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1977,34 +1825,22 @@ func (s DeleteRealtimeEndpointInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRealtimeEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRealtimeEndpointInput"} - if s.MLModelId == nil { - invalidParams.Add(request.NewErrParamRequired("MLModelId")) - } - if s.MLModelId != nil && len(*s.MLModelId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an DeleteRealtimeEndpoint operation. // // The result contains the MLModelId and the endpoint information for the MLModel. type DeleteRealtimeEndpointOutput struct { - _ struct{} `type:"structure"` - // A user-supplied ID that uniquely identifies the MLModel. This value should // be identical to the value of the MLModelId in the request. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` // The endpoint information of the MLModel RealtimeEndpointInfo *RealtimeEndpointInfo `type:"structure"` + + metadataDeleteRealtimeEndpointOutput `json:"-" xml:"-"` +} + +type metadataDeleteRealtimeEndpointOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2018,8 +1854,6 @@ func (s DeleteRealtimeEndpointOutput) GoString() string { } type DescribeBatchPredictionsInput struct { - _ struct{} `type:"structure"` - // The equal to operator. The BatchPrediction results will have FilterVariable // values that exactly match the value specified with EQ. EQ *string `type:"string"` @@ -2057,7 +1891,7 @@ type DescribeBatchPredictionsInput struct { // The number of pages of information to include in the result. The range of // acceptable values is 1 through 100. The default value is 100. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // The not equal to operator. The BatchPrediction results will have FilterVariable // values not equal to the value specified with NE. @@ -2085,6 +1919,12 @@ type DescribeBatchPredictionsInput struct { // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. SortOrder *string `type:"string" enum:"SortOrder"` + + metadataDescribeBatchPredictionsInput `json:"-" xml:"-"` +} + +type metadataDescribeBatchPredictionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2097,30 +1937,21 @@ func (s DescribeBatchPredictionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeBatchPredictionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeBatchPredictionsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DescribeBatchPredictions operation. The content // is essentially a list of BatchPredictions. type DescribeBatchPredictionsOutput struct { - _ struct{} `type:"structure"` - // The ID of the next page in the paginated results that indicates at least // one more page follows. NextToken *string `type:"string"` // A list of BatchPrediction objects that meet the search criteria. Results []*BatchPrediction `type:"list"` + + metadataDescribeBatchPredictionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeBatchPredictionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2134,8 +1965,6 @@ func (s DescribeBatchPredictionsOutput) GoString() string { } type DescribeDataSourcesInput struct { - _ struct{} `type:"structure"` - // The equal to operator. The DataSource results will have FilterVariable values // that exactly match the value specified with EQ. EQ *string `type:"string"` @@ -2168,7 +1997,7 @@ type DescribeDataSourcesInput struct { LT *string `type:"string"` // The maximum number of DataSource to include in the result. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // The not equal to operator. The DataSource results will have FilterVariable // values not equal to the value specified with NE. @@ -2196,6 +2025,12 @@ type DescribeDataSourcesInput struct { // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. SortOrder *string `type:"string" enum:"SortOrder"` + + metadataDescribeDataSourcesInput `json:"-" xml:"-"` +} + +type metadataDescribeDataSourcesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2208,30 +2043,21 @@ func (s DescribeDataSourcesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDataSourcesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDataSourcesInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the query results from a DescribeDataSources operation. The content // is essentially a list of DataSource. type DescribeDataSourcesOutput struct { - _ struct{} `type:"structure"` - // An ID of the next page in the paginated results that indicates at least one // more page follows. NextToken *string `type:"string"` // A list of DataSource that meet the search criteria. Results []*DataSource `type:"list"` + + metadataDescribeDataSourcesOutput `json:"-" xml:"-"` +} + +type metadataDescribeDataSourcesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2245,8 +2071,6 @@ func (s DescribeDataSourcesOutput) GoString() string { } type DescribeEvaluationsInput struct { - _ struct{} `type:"structure"` - // The equal to operator. The Evaluation results will have FilterVariable values // that exactly match the value specified with EQ. EQ *string `type:"string"` @@ -2281,7 +2105,7 @@ type DescribeEvaluationsInput struct { LT *string `type:"string"` // The maximum number of Evaluation to include in the result. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // The not equal to operator. The Evaluation results will have FilterVariable // values not equal to the value specified with NE. @@ -2309,6 +2133,12 @@ type DescribeEvaluationsInput struct { // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. SortOrder *string `type:"string" enum:"SortOrder"` + + metadataDescribeEvaluationsInput `json:"-" xml:"-"` +} + +type metadataDescribeEvaluationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2321,30 +2151,21 @@ func (s DescribeEvaluationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEvaluationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEvaluationsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the query results from a DescribeEvaluations operation. The content // is essentially a list of Evaluation. type DescribeEvaluationsOutput struct { - _ struct{} `type:"structure"` - // The ID of the next page in the paginated results that indicates at least // one more page follows. NextToken *string `type:"string"` // A list of Evaluation that meet the search criteria. Results []*Evaluation `type:"list"` + + metadataDescribeEvaluationsOutput `json:"-" xml:"-"` +} + +type metadataDescribeEvaluationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2358,8 +2179,6 @@ func (s DescribeEvaluationsOutput) GoString() string { } type DescribeMLModelsInput struct { - _ struct{} `type:"structure"` - // The equal to operator. The MLModel results will have FilterVariable values // that exactly match the value specified with EQ. EQ *string `type:"string"` @@ -2397,7 +2216,7 @@ type DescribeMLModelsInput struct { // The number of pages of information to include in the result. The range of // acceptable values is 1 through 100. The default value is 100. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // The not equal to operator. The MLModel results will have FilterVariable values // not equal to the value specified with NE. @@ -2425,6 +2244,12 @@ type DescribeMLModelsInput struct { // asc - Arranges the list in ascending order (A-Z, 0-9). dsc - Arranges // the list in descending order (Z-A, 9-0). Results are sorted by FilterVariable. SortOrder *string `type:"string" enum:"SortOrder"` + + metadataDescribeMLModelsInput `json:"-" xml:"-"` +} + +type metadataDescribeMLModelsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2437,30 +2262,21 @@ func (s DescribeMLModelsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeMLModelsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeMLModelsInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a DescribeMLModels operation. The content is essentially // a list of MLModel. type DescribeMLModelsOutput struct { - _ struct{} `type:"structure"` - // The ID of the next page in the paginated results that indicates at least // one more page follows. NextToken *string `type:"string"` // A list of MLModel that meet the search criteria. Results []*MLModel `type:"list"` + + metadataDescribeMLModelsOutput `json:"-" xml:"-"` +} + +type metadataDescribeMLModelsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2478,8 +2294,6 @@ func (s DescribeMLModelsOutput) GoString() string { // The content consists of the detailed metadata and data file information // and the current status of the Evaluation. type Evaluation struct { - _ struct{} `type:"structure"` - // The time that the Evaluation was created. The time is expressed in epoch // time. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -2490,10 +2304,10 @@ type Evaluation struct { CreatedByIamUser *string `type:"string"` // The ID of the DataSource that is used to evaluate the MLModel. - EvaluationDataSourceId *string `min:"1" type:"string"` + EvaluationDataSourceId *string `type:"string"` // The ID that is assigned to the Evaluation at creation. - EvaluationId *string `min:"1" type:"string"` + EvaluationId *string `type:"string"` // The location and name of the data in Amazon Simple Storage Server (Amazon // S3) that is used in the evaluation. @@ -2504,7 +2318,7 @@ type Evaluation struct { LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` // The ID of the MLModel that is the focus of the evaluation. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` // A description of the most recent details about evaluating the MLModel. Message *string `type:"string"` @@ -2539,6 +2353,12 @@ type Evaluation struct { // - The evaluation process completed successfully. DELETED - The Evaluation // is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` + + metadataEvaluation `json:"-" xml:"-"` +} + +type metadataEvaluation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2552,10 +2372,14 @@ func (s Evaluation) GoString() string { } type GetBatchPredictionInput struct { - _ struct{} `type:"structure"` - // An ID assigned to the BatchPrediction at creation. - BatchPredictionId *string `min:"1" type:"string" required:"true"` + BatchPredictionId *string `type:"string" required:"true"` + + metadataGetBatchPredictionInput `json:"-" xml:"-"` +} + +type metadataGetBatchPredictionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2568,32 +2392,14 @@ func (s GetBatchPredictionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBatchPredictionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBatchPredictionInput"} - if s.BatchPredictionId == nil { - invalidParams.Add(request.NewErrParamRequired("BatchPredictionId")) - } - if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a GetBatchPrediction operation and describes a BatchPrediction. type GetBatchPredictionOutput struct { - _ struct{} `type:"structure"` - // The ID of the DataSource that was used to create the BatchPrediction. - BatchPredictionDataSourceId *string `min:"1" type:"string"` + BatchPredictionDataSourceId *string `type:"string"` // An ID assigned to the BatchPrediction at creation. This value should be identical // to the value of the BatchPredictionID in the request. - BatchPredictionId *string `min:"1" type:"string"` + BatchPredictionId *string `type:"string"` // The time when the BatchPrediction was created. The time is expressed in epoch // time. @@ -2617,7 +2423,7 @@ type GetBatchPredictionOutput struct { // The ID of the MLModel that generated predictions for the BatchPrediction // request. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` // A description of the most recent details about processing the batch prediction // request. @@ -2638,6 +2444,12 @@ type GetBatchPredictionOutput struct { // It is not usable. COMPLETED - The batch prediction process completed successfully. // DELETED - The BatchPrediction is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` + + metadataGetBatchPredictionOutput `json:"-" xml:"-"` +} + +type metadataGetBatchPredictionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2651,10 +2463,8 @@ func (s GetBatchPredictionOutput) GoString() string { } type GetDataSourceInput struct { - _ struct{} `type:"structure"` - // The ID assigned to the DataSource at creation. - DataSourceId *string `min:"1" type:"string" required:"true"` + DataSourceId *string `type:"string" required:"true"` // Specifies whether the GetDataSource operation should return DataSourceSchema. // @@ -2662,6 +2472,12 @@ type GetDataSourceInput struct { // // If false, DataSourceSchema is not returned. Verbose *bool `type:"boolean"` + + metadataGetDataSourceInput `json:"-" xml:"-"` +} + +type metadataGetDataSourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2674,26 +2490,8 @@ func (s GetDataSourceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDataSourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDataSourceInput"} - if s.DataSourceId == nil { - invalidParams.Add(request.NewErrParamRequired("DataSourceId")) - } - if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a GetDataSource operation and describes a DataSource. type GetDataSourceOutput struct { - _ struct{} `type:"structure"` - // The parameter is true if statistics need to be generated from the observation // data. ComputeStatistics *bool `type:"boolean"` @@ -2720,7 +2518,7 @@ type GetDataSourceOutput struct { // The ID assigned to the DataSource at creation. This value should be identical // to the value of the DataSourceId in the request. - DataSourceId *string `min:"1" type:"string"` + DataSourceId *string `type:"string"` // The schema used by all of the data files of this DataSource. // @@ -2751,7 +2549,7 @@ type GetDataSourceOutput struct { // The Amazon Resource Name (ARN) of an AWS IAM Role (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html#roles-about-termsandconcepts) // such as the following: arn:aws:iam::account:role/rolename. - RoleARN *string `min:"1" type:"string"` + RoleARN *string `type:"string"` // The current status of the DataSource. This element can have one of the following // values: @@ -2762,6 +2560,12 @@ type GetDataSourceOutput struct { // COMPLETED - The creation process completed successfully. DELETED - The // DataSource is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` + + metadataGetDataSourceOutput `json:"-" xml:"-"` +} + +type metadataGetDataSourceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2775,11 +2579,15 @@ func (s GetDataSourceOutput) GoString() string { } type GetEvaluationInput struct { - _ struct{} `type:"structure"` - // The ID of the Evaluation to retrieve. The evaluation of each MLModel is recorded // and cataloged. The ID provides the means to access the information. - EvaluationId *string `min:"1" type:"string" required:"true"` + EvaluationId *string `type:"string" required:"true"` + + metadataGetEvaluationInput `json:"-" xml:"-"` +} + +type metadataGetEvaluationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2792,26 +2600,8 @@ func (s GetEvaluationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetEvaluationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetEvaluationInput"} - if s.EvaluationId == nil { - invalidParams.Add(request.NewErrParamRequired("EvaluationId")) - } - if s.EvaluationId != nil && len(*s.EvaluationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a GetEvaluation operation and describes an Evaluation. type GetEvaluationOutput struct { - _ struct{} `type:"structure"` - // The time that the Evaluation was created. The time is expressed in epoch // time. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -2822,10 +2612,10 @@ type GetEvaluationOutput struct { CreatedByIamUser *string `type:"string"` // The DataSource used for this evaluation. - EvaluationDataSourceId *string `min:"1" type:"string"` + EvaluationDataSourceId *string `type:"string"` // The evaluation ID which is same as the EvaluationId in the request. - EvaluationId *string `min:"1" type:"string"` + EvaluationId *string `type:"string"` // The location of the data file or directory in Amazon Simple Storage Service // (Amazon S3). @@ -2839,7 +2629,7 @@ type GetEvaluationOutput struct { LogUri *string `type:"string"` // The ID of the MLModel that was the focus of the evaluation. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` // A description of the most recent details about evaluating the MLModel. Message *string `type:"string"` @@ -2874,6 +2664,12 @@ type GetEvaluationOutput struct { // - The evaluation process completed successfully. DELETED - The Evaluation // is marked as deleted. It is not usable. Status *string `type:"string" enum:"EntityStatus"` + + metadataGetEvaluationOutput `json:"-" xml:"-"` +} + +type metadataGetEvaluationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2887,10 +2683,8 @@ func (s GetEvaluationOutput) GoString() string { } type GetMLModelInput struct { - _ struct{} `type:"structure"` - // The ID assigned to the MLModel at creation. - MLModelId *string `min:"1" type:"string" required:"true"` + MLModelId *string `type:"string" required:"true"` // Specifies whether the GetMLModel operation should return Recipe. // @@ -2898,6 +2692,12 @@ type GetMLModelInput struct { // // If false, Recipe is not returned. Verbose *bool `type:"boolean"` + + metadataGetMLModelInput `json:"-" xml:"-"` +} + +type metadataGetMLModelInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2910,27 +2710,9 @@ func (s GetMLModelInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetMLModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMLModelInput"} - if s.MLModelId == nil { - invalidParams.Add(request.NewErrParamRequired("MLModelId")) - } - if s.MLModelId != nil && len(*s.MLModelId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of a GetMLModel operation, and provides detailed information // about a MLModel. type GetMLModelOutput struct { - _ struct{} `type:"structure"` - // The time that the MLModel was created. The time is expressed in epoch time. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -2954,7 +2736,7 @@ type GetMLModelOutput struct { LogUri *string `type:"string"` // The MLModel ID which is same as the MLModelId in the request. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` // Identifies the MLModel category. The following are the available types: // @@ -3007,7 +2789,7 @@ type GetMLModelOutput struct { Status *string `type:"string" enum:"EntityStatus"` // The ID of the training DataSource. - TrainingDataSourceId *string `min:"1" type:"string"` + TrainingDataSourceId *string `type:"string"` // A list of the training parameters in the MLModel. The list is implemented // as a map of key/value pairs. @@ -3042,6 +2824,12 @@ type GetMLModelOutput struct { // The value is an integer that ranges from 100000 to 2147483648. The default // value is 33554432. TrainingParameters map[string]*string `type:"map"` + + metadataGetMLModelOutput `json:"-" xml:"-"` +} + +type metadataGetMLModelOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3059,8 +2847,6 @@ func (s GetMLModelOutput) GoString() string { // The content consists of the detailed metadata and the current status of // the MLModel. type MLModel struct { - _ struct{} `type:"structure"` - // The algorithm used to train the MLModel. The following algorithm is supported: // // SGD -- Stochastic gradient descent. The goal of SGD is to minimize the @@ -3087,7 +2873,7 @@ type MLModel struct { LastUpdatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` // The ID assigned to the MLModel at creation. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` // Identifies the MLModel category. The following are the available types: // @@ -3124,7 +2910,7 @@ type MLModel struct { Status *string `type:"string" enum:"EntityStatus"` // The ID of the training DataSource. The CreateMLModel operation uses the TrainingDataSourceId. - TrainingDataSourceId *string `min:"1" type:"string"` + TrainingDataSourceId *string `type:"string"` // A list of the training parameters in the MLModel. The list is implemented // as a map of key/value pairs. @@ -3159,6 +2945,12 @@ type MLModel struct { // The value is an integer that ranges from 100000 to 2147483648. The default // value is 33554432. TrainingParameters map[string]*string `type:"map"` + + metadataMLModel `json:"-" xml:"-"` +} + +type metadataMLModel struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3187,9 +2979,13 @@ func (s MLModel) GoString() string { // For more information about performance metrics, please see the Amazon // Machine Learning Developer Guide (http://docs.aws.amazon.com/machine-learning/latest/dg). type PerformanceMetrics struct { - _ struct{} `type:"structure"` - Properties map[string]*string `type:"map"` + + metadataPerformanceMetrics `json:"-" xml:"-"` +} + +type metadataPerformanceMetrics struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3203,15 +2999,19 @@ func (s PerformanceMetrics) GoString() string { } type PredictInput struct { - _ struct{} `type:"structure"` - // A unique identifier of the MLModel. - MLModelId *string `min:"1" type:"string" required:"true"` + MLModelId *string `type:"string" required:"true"` PredictEndpoint *string `type:"string" required:"true"` // A map of variable name-value pairs that represent an observation. Record map[string]*string `type:"map" required:"true"` + + metadataPredictInput `json:"-" xml:"-"` +} + +type metadataPredictInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3224,31 +3024,7 @@ func (s PredictInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PredictInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PredictInput"} - if s.MLModelId == nil { - invalidParams.Add(request.NewErrParamRequired("MLModelId")) - } - if s.MLModelId != nil && len(*s.MLModelId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) - } - if s.PredictEndpoint == nil { - invalidParams.Add(request.NewErrParamRequired("PredictEndpoint")) - } - if s.Record == nil { - invalidParams.Add(request.NewErrParamRequired("Record")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PredictOutput struct { - _ struct{} `type:"structure"` - // The output from a Predict operation: // // Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE @@ -3261,6 +3037,12 @@ type PredictOutput struct { // // PredictedValue - Present for a REGRESSION MLModel request. Prediction *Prediction `type:"structure"` + + metadataPredictOutput `json:"-" xml:"-"` +} + +type metadataPredictOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3285,19 +3067,23 @@ func (s PredictOutput) GoString() string { // // PredictedValue - Present for a REGRESSION MLModel request. type Prediction struct { - _ struct{} `type:"structure"` - // Provides any additional details regarding the prediction. Details map[string]*string `locationName:"details" type:"map"` // The prediction label for either a BINARY or MULTICLASS MLModel. - PredictedLabel *string `locationName:"predictedLabel" min:"1" type:"string"` + PredictedLabel *string `locationName:"predictedLabel" type:"string"` // Provides the raw classification score corresponding to each label. PredictedScores map[string]*float64 `locationName:"predictedScores" type:"map"` // The prediction value for REGRESSION MLModel. PredictedValue *float64 `locationName:"predictedValue" type:"float"` + + metadataPrediction `json:"-" xml:"-"` +} + +type metadataPrediction struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3313,46 +3099,14 @@ func (s Prediction) GoString() string { // The data specification of an Amazon Relational Database Service (Amazon RDS) // DataSource. type RDSDataSpec struct { - _ struct{} `type:"structure"` - // DataRearrangement - A JSON string that represents the splitting requirement // of a DataSource. // - // Sample - "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" + // Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}" DataRearrangement *string `type:"string"` - // A JSON string that represents the schema for an Amazon RDS DataSource. The - // DataSchema defines the structure of the observation data in the data file(s) - // referenced in the DataSource. - // - // A DataSchema is not required if you specify a DataSchemaUri - // - // Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames - // have an array of key-value pairs for their value. Use the following format - // to define your DataSchema. - // - // { "version": "1.0", - // - // "recordAnnotationFieldName": "F1", - // - // "recordWeightFieldName": "F2", - // - // "targetFieldName": "F3", - // - // "dataFormat": "CSV", - // - // "dataFileContainsHeader": true, - // - // "attributes": [ - // - // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": - // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": - // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" - // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": - // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" - // } ], - // - // "excludedVariableNames": [ "F6" ] } + // A JSON string that represents the schema. This is not required if DataSchemaUri + // is specified. DataSchema *string `type:"string"` // The Amazon S3 location of the DataSchema. @@ -3369,7 +3123,7 @@ type RDSDataSpec struct { // Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS // to an Amazon S3 task. For more information, see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) // for data pipelines. - ResourceRole *string `min:"1" type:"string" required:"true"` + ResourceRole *string `type:"string" required:"true"` // The Amazon S3 location for staging Amazon RDS data. The data retrieved from // Amazon RDS using SelectSqlQuery is stored in this location. @@ -3382,18 +3136,24 @@ type RDSDataSpec struct { SecurityGroupIds []*string `type:"list" required:"true"` // The query that is used to retrieve the observation data for the DataSource. - SelectSqlQuery *string `min:"1" type:"string" required:"true"` + SelectSqlQuery *string `type:"string" required:"true"` // The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to // monitor the progress of the copy task from Amazon RDS to Amazon S3. For more // information, see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) // for data pipelines. - ServiceRole *string `min:"1" type:"string" required:"true"` + ServiceRole *string `type:"string" required:"true"` // The subnet ID to be used to access a VPC-based RDS DB instance. This attribute // is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon // S3. - SubnetId *string `min:"1" type:"string" required:"true"` + SubnetId *string `type:"string" required:"true"` + + metadataRDSDataSpec `json:"-" xml:"-"` +} + +type metadataRDSDataSpec struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3406,71 +3166,19 @@ func (s RDSDataSpec) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RDSDataSpec) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RDSDataSpec"} - if s.DatabaseCredentials == nil { - invalidParams.Add(request.NewErrParamRequired("DatabaseCredentials")) - } - if s.DatabaseInformation == nil { - invalidParams.Add(request.NewErrParamRequired("DatabaseInformation")) - } - if s.ResourceRole == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceRole")) - } - if s.ResourceRole != nil && len(*s.ResourceRole) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceRole", 1)) - } - if s.S3StagingLocation == nil { - invalidParams.Add(request.NewErrParamRequired("S3StagingLocation")) - } - if s.SecurityGroupIds == nil { - invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds")) - } - if s.SelectSqlQuery == nil { - invalidParams.Add(request.NewErrParamRequired("SelectSqlQuery")) - } - if s.SelectSqlQuery != nil && len(*s.SelectSqlQuery) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SelectSqlQuery", 1)) - } - if s.ServiceRole == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceRole")) - } - if s.ServiceRole != nil && len(*s.ServiceRole) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServiceRole", 1)) - } - if s.SubnetId == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetId")) - } - if s.SubnetId != nil && len(*s.SubnetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SubnetId", 1)) - } - if s.DatabaseCredentials != nil { - if err := s.DatabaseCredentials.Validate(); err != nil { - invalidParams.AddNested("DatabaseCredentials", err.(request.ErrInvalidParams)) - } - } - if s.DatabaseInformation != nil { - if err := s.DatabaseInformation.Validate(); err != nil { - invalidParams.AddNested("DatabaseInformation", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The database details of an Amazon RDS database. type RDSDatabase struct { - _ struct{} `type:"structure"` - // The name of a database hosted on an RDS DB instance. - DatabaseName *string `min:"1" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` // The ID of an RDS DB instance. - InstanceIdentifier *string `min:"1" type:"string" required:"true"` + InstanceIdentifier *string `type:"string" required:"true"` + + metadataRDSDatabase `json:"-" xml:"-"` +} + +type metadataRDSDatabase struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3483,41 +3191,23 @@ func (s RDSDatabase) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RDSDatabase) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RDSDatabase"} - if s.DatabaseName == nil { - invalidParams.Add(request.NewErrParamRequired("DatabaseName")) - } - if s.DatabaseName != nil && len(*s.DatabaseName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1)) - } - if s.InstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIdentifier")) - } - if s.InstanceIdentifier != nil && len(*s.InstanceIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceIdentifier", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The database credentials to connect to a database on an RDS DB instance. type RDSDatabaseCredentials struct { - _ struct{} `type:"structure"` - // The password to be used by Amazon ML to connect to a database on an RDS DB // instance. The password should have sufficient permissions to execute the // RDSSelectQuery query. - Password *string `min:"8" type:"string" required:"true"` + Password *string `type:"string" required:"true"` // The username to be used by Amazon ML to connect to database on an Amazon // RDS instance. The username should have sufficient permissions to execute // an RDSSelectSqlQuery query. - Username *string `min:"1" type:"string" required:"true"` + Username *string `type:"string" required:"true"` + + metadataRDSDatabaseCredentials `json:"-" xml:"-"` +} + +type metadataRDSDatabaseCredentials struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3530,36 +3220,12 @@ func (s RDSDatabaseCredentials) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RDSDatabaseCredentials) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RDSDatabaseCredentials"} - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Password != nil && len(*s.Password) < 8 { - invalidParams.Add(request.NewErrParamMinLen("Password", 8)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The datasource details that are specific to Amazon RDS. type RDSMetadata struct { - _ struct{} `type:"structure"` - // The ID of the Data Pipeline instance that is used to carry to copy data from // Amazon RDS to Amazon S3. You can use the ID to find details about the instance // in the Data Pipeline console. - DataPipelineId *string `min:"1" type:"string"` + DataPipelineId *string `type:"string"` // The database details required to connect to an Amazon RDS. Database *RDSDatabase `type:"structure"` @@ -3567,23 +3233,29 @@ type RDSMetadata struct { // The username to be used by Amazon ML to connect to database on an Amazon // RDS instance. The username should have sufficient permissions to execute // an RDSSelectSqlQuery query. - DatabaseUserName *string `min:"1" type:"string"` + DatabaseUserName *string `type:"string"` // The role (DataPipelineDefaultResourceRole) assumed by an Amazon EC2 instance // to carry out the copy task from Amazon RDS to Amazon S3. For more information, // see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) // for data pipelines. - ResourceRole *string `min:"1" type:"string"` + ResourceRole *string `type:"string"` // The SQL query that is supplied during CreateDataSourceFromRDS. Returns only // if Verbose is true in GetDataSourceInput. - SelectSqlQuery *string `min:"1" type:"string"` + SelectSqlQuery *string `type:"string"` // The role (DataPipelineDefaultRole) assumed by the Data Pipeline service to // monitor the progress of the copy task from Amazon RDS to Amazon S3. For more // information, see Role templates (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-iam-roles.html) // for data pipelines. - ServiceRole *string `min:"1" type:"string"` + ServiceRole *string `type:"string"` + + metadataRDSMetadata `json:"-" xml:"-"` +} + +type metadataRDSMetadata struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3598,8 +3270,6 @@ func (s RDSMetadata) GoString() string { // Describes the real-time endpoint information for an MLModel. type RealtimeEndpointInfo struct { - _ struct{} `type:"structure"` - // The time that the request to create the real-time endpoint for the MLModel // was received. The time is expressed in epoch time. CreatedAt *time.Time `type:"timestamp" timestampFormat:"unix"` @@ -3622,6 +3292,12 @@ type RealtimeEndpointInfo struct { // The maximum processing rate for the real-time endpoint for MLModel, measured // in incoming requests per second. PeakRequestsPerSecond *int64 `type:"integer"` + + metadataRealtimeEndpointInfo `json:"-" xml:"-"` +} + +type metadataRealtimeEndpointInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3636,43 +3312,10 @@ func (s RealtimeEndpointInfo) GoString() string { // Describes the data specification of an Amazon Redshift DataSource. type RedshiftDataSpec struct { - _ struct{} `type:"structure"` - // Describes the splitting specifications for a DataSource. DataRearrangement *string `type:"string"` - // A JSON string that represents the schema for an Amazon Redshift DataSource. - // The DataSchema defines the structure of the observation data in the data - // file(s) referenced in the DataSource. - // - // A DataSchema is not required if you specify a DataSchemaUri. - // - // Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames - // have an array of key-value pairs for their value. Use the following format - // to define your DataSchema. - // - // { "version": "1.0", - // - // "recordAnnotationFieldName": "F1", - // - // "recordWeightFieldName": "F2", - // - // "targetFieldName": "F3", - // - // "dataFormat": "CSV", - // - // "dataFileContainsHeader": true, - // - // "attributes": [ - // - // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": - // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": - // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" - // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": - // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" - // } ], - // - // "excludedVariableNames": [ "F6" ] } + // Describes the schema for an Amazon Redshift DataSource. DataSchema *string `type:"string"` // Describes the schema location for an Amazon Redshift DataSource. @@ -3691,7 +3334,13 @@ type RedshiftDataSpec struct { // Describes the SQL Query to execute on an Amazon Redshift database for an // Amazon Redshift DataSource. - SelectSqlQuery *string `min:"1" type:"string" required:"true"` + SelectSqlQuery *string `type:"string" required:"true"` + + metadataRedshiftDataSpec `json:"-" xml:"-"` +} + +type metadataRedshiftDataSpec struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3704,51 +3353,20 @@ func (s RedshiftDataSpec) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RedshiftDataSpec) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RedshiftDataSpec"} - if s.DatabaseCredentials == nil { - invalidParams.Add(request.NewErrParamRequired("DatabaseCredentials")) - } - if s.DatabaseInformation == nil { - invalidParams.Add(request.NewErrParamRequired("DatabaseInformation")) - } - if s.S3StagingLocation == nil { - invalidParams.Add(request.NewErrParamRequired("S3StagingLocation")) - } - if s.SelectSqlQuery == nil { - invalidParams.Add(request.NewErrParamRequired("SelectSqlQuery")) - } - if s.SelectSqlQuery != nil && len(*s.SelectSqlQuery) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SelectSqlQuery", 1)) - } - if s.DatabaseCredentials != nil { - if err := s.DatabaseCredentials.Validate(); err != nil { - invalidParams.AddNested("DatabaseCredentials", err.(request.ErrInvalidParams)) - } - } - if s.DatabaseInformation != nil { - if err := s.DatabaseInformation.Validate(); err != nil { - invalidParams.AddNested("DatabaseInformation", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes the database details required to connect to an Amazon Redshift // database. type RedshiftDatabase struct { - _ struct{} `type:"structure"` - // The ID of an Amazon Redshift cluster. - ClusterIdentifier *string `min:"1" type:"string" required:"true"` + ClusterIdentifier *string `type:"string" required:"true"` // The name of a database hosted on an Amazon Redshift cluster. - DatabaseName *string `min:"1" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` + + metadataRedshiftDatabase `json:"-" xml:"-"` +} + +type metadataRedshiftDatabase struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3761,44 +3379,26 @@ func (s RedshiftDatabase) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RedshiftDatabase) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RedshiftDatabase"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - if s.ClusterIdentifier != nil && len(*s.ClusterIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClusterIdentifier", 1)) - } - if s.DatabaseName == nil { - invalidParams.Add(request.NewErrParamRequired("DatabaseName")) - } - if s.DatabaseName != nil && len(*s.DatabaseName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes the database credentials for connecting to a database on an Amazon // Redshift cluster. type RedshiftDatabaseCredentials struct { - _ struct{} `type:"structure"` - // A password to be used by Amazon ML to connect to a database on an Amazon // Redshift cluster. The password should have sufficient permissions to execute // a RedshiftSelectSqlQuery query. The password should be valid for an Amazon // Redshift USER (http://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html). - Password *string `min:"8" type:"string" required:"true"` + Password *string `type:"string" required:"true"` // A username to be used by Amazon Machine Learning (Amazon ML)to connect to // a database on an Amazon Redshift cluster. The username should have sufficient // permissions to execute the RedshiftSelectSqlQuery query. The username should // be valid for an Amazon Redshift USER (http://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html). - Username *string `min:"1" type:"string" required:"true"` + Username *string `type:"string" required:"true"` + + metadataRedshiftDatabaseCredentials `json:"-" xml:"-"` +} + +type metadataRedshiftDatabaseCredentials struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3811,37 +3411,13 @@ func (s RedshiftDatabaseCredentials) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RedshiftDatabaseCredentials) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RedshiftDatabaseCredentials"} - if s.Password == nil { - invalidParams.Add(request.NewErrParamRequired("Password")) - } - if s.Password != nil && len(*s.Password) < 8 { - invalidParams.Add(request.NewErrParamMinLen("Password", 8)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes the DataSource details specific to Amazon Redshift. type RedshiftMetadata struct { - _ struct{} `type:"structure"` - // A username to be used by Amazon Machine Learning (Amazon ML)to connect to // a database on an Amazon Redshift cluster. The username should have sufficient // permissions to execute the RedshiftSelectSqlQuery query. The username should // be valid for an Amazon Redshift USER (http://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html). - DatabaseUserName *string `min:"1" type:"string"` + DatabaseUserName *string `type:"string"` // Describes the database details required to connect to an Amazon Redshift // database. @@ -3849,7 +3425,13 @@ type RedshiftMetadata struct { // The SQL query that is specified during CreateDataSourceFromRedshift. Returns // only if Verbose is true in GetDataSourceInput. - SelectSqlQuery *string `min:"1" type:"string"` + SelectSqlQuery *string `type:"string"` + + metadataRedshiftMetadata `json:"-" xml:"-"` +} + +type metadataRedshiftMetadata struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3864,8 +3446,6 @@ func (s RedshiftMetadata) GoString() string { // Describes the data specification of a DataSource. type S3DataSpec struct { - _ struct{} `type:"structure"` - // The location of the data file(s) used by a DataSource. The URI specifies // a data file or an Amazon Simple Storage Service (Amazon S3) directory or // bucket containing data files. @@ -3874,40 +3454,17 @@ type S3DataSpec struct { // Describes the splitting requirement of a Datasource. DataRearrangement *string `type:"string"` - // A JSON string that represents the schema for an Amazon S3 DataSource. The - // DataSchema defines the structure of the observation data in the data file(s) - // referenced in the DataSource. - // - // Define your DataSchema as a series of key-value pairs. attributes and excludedVariableNames - // have an array of key-value pairs for their value. Use the following format - // to define your DataSchema. - // - // { "version": "1.0", - // - // "recordAnnotationFieldName": "F1", - // - // "recordWeightFieldName": "F2", - // - // "targetFieldName": "F3", - // - // "dataFormat": "CSV", - // - // "dataFileContainsHeader": true, - // - // "attributes": [ - // - // { "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": - // "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": - // "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" - // }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": - // "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" - // } ], - // - // "excludedVariableNames": [ "F6" ] } + // Describes the schema for an Amazon S3 DataSource. DataSchema *string `type:"string"` // Describes the schema Location in Amazon S3. DataSchemaLocationS3 *string `type:"string"` + + metadataS3DataSpec `json:"-" xml:"-"` +} + +type metadataS3DataSpec struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3920,27 +3477,18 @@ func (s S3DataSpec) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *S3DataSpec) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3DataSpec"} - if s.DataLocationS3 == nil { - invalidParams.Add(request.NewErrParamRequired("DataLocationS3")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type UpdateBatchPredictionInput struct { - _ struct{} `type:"structure"` - // The ID assigned to the BatchPrediction during creation. - BatchPredictionId *string `min:"1" type:"string" required:"true"` + BatchPredictionId *string `type:"string" required:"true"` // A new user-supplied name or description of the BatchPrediction. BatchPredictionName *string `type:"string" required:"true"` + + metadataUpdateBatchPredictionInput `json:"-" xml:"-"` +} + +type metadataUpdateBatchPredictionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3953,34 +3501,19 @@ func (s UpdateBatchPredictionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateBatchPredictionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateBatchPredictionInput"} - if s.BatchPredictionId == nil { - invalidParams.Add(request.NewErrParamRequired("BatchPredictionId")) - } - if s.BatchPredictionId != nil && len(*s.BatchPredictionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BatchPredictionId", 1)) - } - if s.BatchPredictionName == nil { - invalidParams.Add(request.NewErrParamRequired("BatchPredictionName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an UpdateBatchPrediction operation. // // You can see the updated content by using the GetBatchPrediction operation. type UpdateBatchPredictionOutput struct { - _ struct{} `type:"structure"` - // The ID assigned to the BatchPrediction during creation. This value should // be identical to the value of the BatchPredictionId in the request. - BatchPredictionId *string `min:"1" type:"string"` + BatchPredictionId *string `type:"string"` + + metadataUpdateBatchPredictionOutput `json:"-" xml:"-"` +} + +type metadataUpdateBatchPredictionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3994,14 +3527,18 @@ func (s UpdateBatchPredictionOutput) GoString() string { } type UpdateDataSourceInput struct { - _ struct{} `type:"structure"` - // The ID assigned to the DataSource during creation. - DataSourceId *string `min:"1" type:"string" required:"true"` + DataSourceId *string `type:"string" required:"true"` // A new user-supplied name or description of the DataSource that will replace // the current description. DataSourceName *string `type:"string" required:"true"` + + metadataUpdateDataSourceInput `json:"-" xml:"-"` +} + +type metadataUpdateDataSourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4014,34 +3551,19 @@ func (s UpdateDataSourceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDataSourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDataSourceInput"} - if s.DataSourceId == nil { - invalidParams.Add(request.NewErrParamRequired("DataSourceId")) - } - if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) - } - if s.DataSourceName == nil { - invalidParams.Add(request.NewErrParamRequired("DataSourceName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an UpdateDataSource operation. // // You can see the updated content by using the GetBatchPrediction operation. type UpdateDataSourceOutput struct { - _ struct{} `type:"structure"` - // The ID assigned to the DataSource during creation. This value should be identical // to the value of the DataSourceID in the request. - DataSourceId *string `min:"1" type:"string"` + DataSourceId *string `type:"string"` + + metadataUpdateDataSourceOutput `json:"-" xml:"-"` +} + +type metadataUpdateDataSourceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4055,14 +3577,18 @@ func (s UpdateDataSourceOutput) GoString() string { } type UpdateEvaluationInput struct { - _ struct{} `type:"structure"` - // The ID assigned to the Evaluation during creation. - EvaluationId *string `min:"1" type:"string" required:"true"` + EvaluationId *string `type:"string" required:"true"` // A new user-supplied name or description of the Evaluation that will replace // the current content. EvaluationName *string `type:"string" required:"true"` + + metadataUpdateEvaluationInput `json:"-" xml:"-"` +} + +type metadataUpdateEvaluationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4075,34 +3601,19 @@ func (s UpdateEvaluationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateEvaluationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateEvaluationInput"} - if s.EvaluationId == nil { - invalidParams.Add(request.NewErrParamRequired("EvaluationId")) - } - if s.EvaluationId != nil && len(*s.EvaluationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EvaluationId", 1)) - } - if s.EvaluationName == nil { - invalidParams.Add(request.NewErrParamRequired("EvaluationName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an UpdateEvaluation operation. // // You can see the updated content by using the GetEvaluation operation. type UpdateEvaluationOutput struct { - _ struct{} `type:"structure"` - // The ID assigned to the Evaluation during creation. This value should be identical // to the value of the Evaluation in the request. - EvaluationId *string `min:"1" type:"string"` + EvaluationId *string `type:"string"` + + metadataUpdateEvaluationOutput `json:"-" xml:"-"` +} + +type metadataUpdateEvaluationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4116,10 +3627,8 @@ func (s UpdateEvaluationOutput) GoString() string { } type UpdateMLModelInput struct { - _ struct{} `type:"structure"` - // The ID assigned to the MLModel during creation. - MLModelId *string `min:"1" type:"string" required:"true"` + MLModelId *string `type:"string" required:"true"` // A user-supplied name or description of the MLModel. MLModelName *string `type:"string"` @@ -4131,6 +3640,12 @@ type UpdateMLModelInput struct { // result from the MLModel, such as true. Output values less than the ScoreThreshold // receive a negative response from the MLModel, such as false. ScoreThreshold *float64 `type:"float"` + + metadataUpdateMLModelInput `json:"-" xml:"-"` +} + +type metadataUpdateMLModelInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4143,31 +3658,19 @@ func (s UpdateMLModelInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateMLModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateMLModelInput"} - if s.MLModelId == nil { - invalidParams.Add(request.NewErrParamRequired("MLModelId")) - } - if s.MLModelId != nil && len(*s.MLModelId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MLModelId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the output of an UpdateMLModel operation. // // You can see the updated content by using the GetMLModel operation. type UpdateMLModelOutput struct { - _ struct{} `type:"structure"` - // The ID assigned to the MLModel during creation. This value should be identical // to the value of the MLModelID in the request. - MLModelId *string `min:"1" type:"string"` + MLModelId *string `type:"string"` + + metadataUpdateMLModelOutput `json:"-" xml:"-"` +} + +type metadataUpdateMLModelOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/customizations.go index 9a6a45666..f093724a7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/customizations.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/customizations.go @@ -22,9 +22,9 @@ func updatePredictEndpoint(r *request.Request) { return } - r.ClientInfo.Endpoint = *r.Params.(*PredictInput).PredictEndpoint + r.Service.Endpoint = *r.Params.(*PredictInput).PredictEndpoint - uri, err := url.Parse(r.ClientInfo.Endpoint) + uri, err := url.Parse(r.Service.Endpoint) if err != nil { r.Error = err return diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/customizations_test.go index 734de65ef..abca06192 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/customizations_test.go @@ -6,16 +6,17 @@ import ( "net/http" "testing" - "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/machinelearning" + "github.com/stretchr/testify/assert" ) +var _ = unit.Imported + func TestPredictEndpoint(t *testing.T) { - ml := machinelearning.New(unit.Session) + ml := machinelearning.New(nil) ml.Handlers.Send.Clear() ml.Handlers.Send.PushBack(func(r *request.Request) { r.HTTPResponse = &http.Response{ diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go index 9f5e71ae4..3c32bfadf 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/machinelearning" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleMachineLearning_CreateBatchPrediction() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.CreateBatchPredictionInput{ BatchPredictionDataSourceId: aws.String("EntityId"), // Required @@ -39,7 +38,7 @@ func ExampleMachineLearning_CreateBatchPrediction() { } func ExampleMachineLearning_CreateDataSourceFromRDS() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.CreateDataSourceFromRDSInput{ DataSourceId: aws.String("EntityId"), // Required @@ -83,7 +82,7 @@ func ExampleMachineLearning_CreateDataSourceFromRDS() { } func ExampleMachineLearning_CreateDataSourceFromRedshift() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.CreateDataSourceFromRedshiftInput{ DataSourceId: aws.String("EntityId"), // Required @@ -120,7 +119,7 @@ func ExampleMachineLearning_CreateDataSourceFromRedshift() { } func ExampleMachineLearning_CreateDataSourceFromS3() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.CreateDataSourceFromS3Input{ DataSourceId: aws.String("EntityId"), // Required @@ -147,7 +146,7 @@ func ExampleMachineLearning_CreateDataSourceFromS3() { } func ExampleMachineLearning_CreateEvaluation() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.CreateEvaluationInput{ EvaluationDataSourceId: aws.String("EntityId"), // Required @@ -169,7 +168,7 @@ func ExampleMachineLearning_CreateEvaluation() { } func ExampleMachineLearning_CreateMLModel() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.CreateMLModelInput{ MLModelId: aws.String("EntityId"), // Required @@ -197,7 +196,7 @@ func ExampleMachineLearning_CreateMLModel() { } func ExampleMachineLearning_CreateRealtimeEndpoint() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.CreateRealtimeEndpointInput{ MLModelId: aws.String("EntityId"), // Required @@ -216,7 +215,7 @@ func ExampleMachineLearning_CreateRealtimeEndpoint() { } func ExampleMachineLearning_DeleteBatchPrediction() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.DeleteBatchPredictionInput{ BatchPredictionId: aws.String("EntityId"), // Required @@ -235,7 +234,7 @@ func ExampleMachineLearning_DeleteBatchPrediction() { } func ExampleMachineLearning_DeleteDataSource() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.DeleteDataSourceInput{ DataSourceId: aws.String("EntityId"), // Required @@ -254,7 +253,7 @@ func ExampleMachineLearning_DeleteDataSource() { } func ExampleMachineLearning_DeleteEvaluation() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.DeleteEvaluationInput{ EvaluationId: aws.String("EntityId"), // Required @@ -273,7 +272,7 @@ func ExampleMachineLearning_DeleteEvaluation() { } func ExampleMachineLearning_DeleteMLModel() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.DeleteMLModelInput{ MLModelId: aws.String("EntityId"), // Required @@ -292,7 +291,7 @@ func ExampleMachineLearning_DeleteMLModel() { } func ExampleMachineLearning_DeleteRealtimeEndpoint() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.DeleteRealtimeEndpointInput{ MLModelId: aws.String("EntityId"), // Required @@ -311,7 +310,7 @@ func ExampleMachineLearning_DeleteRealtimeEndpoint() { } func ExampleMachineLearning_DescribeBatchPredictions() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.DescribeBatchPredictionsInput{ EQ: aws.String("ComparatorValue"), @@ -340,7 +339,7 @@ func ExampleMachineLearning_DescribeBatchPredictions() { } func ExampleMachineLearning_DescribeDataSources() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.DescribeDataSourcesInput{ EQ: aws.String("ComparatorValue"), @@ -369,7 +368,7 @@ func ExampleMachineLearning_DescribeDataSources() { } func ExampleMachineLearning_DescribeEvaluations() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.DescribeEvaluationsInput{ EQ: aws.String("ComparatorValue"), @@ -398,7 +397,7 @@ func ExampleMachineLearning_DescribeEvaluations() { } func ExampleMachineLearning_DescribeMLModels() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.DescribeMLModelsInput{ EQ: aws.String("ComparatorValue"), @@ -427,7 +426,7 @@ func ExampleMachineLearning_DescribeMLModels() { } func ExampleMachineLearning_GetBatchPrediction() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.GetBatchPredictionInput{ BatchPredictionId: aws.String("EntityId"), // Required @@ -446,7 +445,7 @@ func ExampleMachineLearning_GetBatchPrediction() { } func ExampleMachineLearning_GetDataSource() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.GetDataSourceInput{ DataSourceId: aws.String("EntityId"), // Required @@ -466,7 +465,7 @@ func ExampleMachineLearning_GetDataSource() { } func ExampleMachineLearning_GetEvaluation() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.GetEvaluationInput{ EvaluationId: aws.String("EntityId"), // Required @@ -485,7 +484,7 @@ func ExampleMachineLearning_GetEvaluation() { } func ExampleMachineLearning_GetMLModel() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.GetMLModelInput{ MLModelId: aws.String("EntityId"), // Required @@ -505,7 +504,7 @@ func ExampleMachineLearning_GetMLModel() { } func ExampleMachineLearning_Predict() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.PredictInput{ MLModelId: aws.String("EntityId"), // Required @@ -529,7 +528,7 @@ func ExampleMachineLearning_Predict() { } func ExampleMachineLearning_UpdateBatchPrediction() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.UpdateBatchPredictionInput{ BatchPredictionId: aws.String("EntityId"), // Required @@ -549,7 +548,7 @@ func ExampleMachineLearning_UpdateBatchPrediction() { } func ExampleMachineLearning_UpdateDataSource() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.UpdateDataSourceInput{ DataSourceId: aws.String("EntityId"), // Required @@ -569,7 +568,7 @@ func ExampleMachineLearning_UpdateDataSource() { } func ExampleMachineLearning_UpdateEvaluation() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.UpdateEvaluationInput{ EvaluationId: aws.String("EntityId"), // Required @@ -589,7 +588,7 @@ func ExampleMachineLearning_UpdateEvaluation() { } func ExampleMachineLearning_UpdateMLModel() { - svc := machinelearning.New(session.New()) + svc := machinelearning.New(nil) params := &machinelearning.UpdateMLModelInput{ MLModelId: aws.String("EntityId"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go index bb53313be..5ea449f54 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface.go @@ -118,5 +118,3 @@ type MachineLearningAPI interface { UpdateMLModel(*machinelearning.UpdateMLModelInput) (*machinelearning.UpdateMLModelOutput, error) } - -var _ MachineLearningAPI = (*machinelearning.MachineLearning)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface_test.go new file mode 100644 index 000000000..cb62a9621 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package machinelearningiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/machinelearning" + "github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*machinelearningiface.MachineLearningAPI)(nil), machinelearning.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/service.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/service.go index d0021a894..52e31f5af 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/service.go @@ -4,74 +4,51 @@ package machinelearning import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Definition of the public APIs exposed by Amazon Machine Learning -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type MachineLearning struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "machinelearning" - -// New creates a new instance of the MachineLearning client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a MachineLearning client from just a session. -// svc := machinelearning.New(mySession) -// -// // Create a MachineLearning client with additional configuration -// svc := machinelearning.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *MachineLearning { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *MachineLearning { - svc := &MachineLearning{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-12-12", - JSONVersion: "1.1", - TargetPrefix: "AmazonML_20141212", - }, - handlers, - ), +// New returns a new MachineLearning client. +func New(config *aws.Config) *MachineLearning { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "machinelearning", + APIVersion: "2014-12-12", + JSONVersion: "1.1", + TargetPrefix: "AmazonML_20141212", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &MachineLearning{service} } // newRequest creates a new request for a MachineLearning operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/machinelearning/waiters.go deleted file mode 100644 index 924767f9e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/machinelearning/waiters.go +++ /dev/null @@ -1,123 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package machinelearning - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *MachineLearning) WaitUntilBatchPredictionAvailable(input *DescribeBatchPredictionsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeBatchPredictions", - Delay: 30, - MaxAttempts: 60, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Results[].Status", - Expected: "COMPLETED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Results[].Status", - Expected: "FAILED", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *MachineLearning) WaitUntilDataSourceAvailable(input *DescribeDataSourcesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeDataSources", - Delay: 30, - MaxAttempts: 60, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Results[].Status", - Expected: "COMPLETED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Results[].Status", - Expected: "FAILED", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *MachineLearning) WaitUntilEvaluationAvailable(input *DescribeEvaluationsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeEvaluations", - Delay: 30, - MaxAttempts: 60, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Results[].Status", - Expected: "COMPLETED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Results[].Status", - Expected: "FAILED", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *MachineLearning) WaitUntilMLModelAvailable(input *DescribeMLModelsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeMLModels", - Delay: 30, - MaxAttempts: 60, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Results[].Status", - Expected: "COMPLETED", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Results[].Status", - Expected: "FAILED", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/api.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/api.go deleted file mode 100644 index 2b8f9564e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/api.go +++ /dev/null @@ -1,220 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package marketplacecommerceanalytics provides a client for AWS Marketplace Commerce Analytics. -package marketplacecommerceanalytics - -import ( - "time" - - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" -) - -const opGenerateDataSet = "GenerateDataSet" - -// GenerateDataSetRequest generates a request for the GenerateDataSet operation. -func (c *MarketplaceCommerceAnalytics) GenerateDataSetRequest(input *GenerateDataSetInput) (req *request.Request, output *GenerateDataSetOutput) { - op := &request.Operation{ - Name: opGenerateDataSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GenerateDataSetInput{} - } - - req = c.newRequest(op, input, output) - output = &GenerateDataSetOutput{} - req.Data = output - return -} - -// Given a data set type and data set publication date, asynchronously publishes -// the requested data set to the specified S3 bucket and notifies the specified -// SNS topic once the data is available. Returns a unique request identifier -// that can be used to correlate requests with notifications from the SNS topic. -// Data sets will be published in comma-separated values (CSV) format with the -// file name {data_set_type}_YYYY-MM-DD.csv. If a file with the same name already -// exists (e.g. if the same data set is requested twice), the original file -// will be overwritten by the new file. Requires a Role with an attached permissions -// policy providing Allow permissions for the following actions: s3:PutObject, -// s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy. -func (c *MarketplaceCommerceAnalytics) GenerateDataSet(input *GenerateDataSetInput) (*GenerateDataSetOutput, error) { - req, out := c.GenerateDataSetRequest(input) - err := req.Send() - return out, err -} - -// Container for the parameters to the GenerateDataSet operation. -type GenerateDataSetInput struct { - _ struct{} `type:"structure"` - - // (Optional) Key-value pairs which will be returned, unmodified, in the Amazon - // SNS notification message and the data set metadata file. These key-value - // pairs can be used to correlated responses with tracking information from - // other systems. - CustomerDefinedValues map[string]*string `locationName:"customerDefinedValues" min:"1" type:"map"` - - // The date a data set was published. For daily data sets, provide a date with - // day-level granularity for the desired day. For weekly data sets, provide - // a date with day-level granularity within the desired week (the day value - // will be ignored). For monthly data sets, provide a date with month-level - // granularity for the desired month (the day value will be ignored). - DataSetPublicationDate *time.Time `locationName:"dataSetPublicationDate" type:"timestamp" timestampFormat:"unix" required:"true"` - - // The desired data set type. - // - // customer_subscriber_hourly_monthly_subscriptions - Available daily by - // 5:00 PM Pacific Time since 2014-07-21. customer_subscriber_annual_subscriptions - // - Available daily by 5:00 PM Pacific Time since 2014-07-21. daily_business_usage_by_instance_type - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. daily_business_fees - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. daily_business_free_trial_conversions - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. daily_business_new_instances - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. daily_business_new_product_subscribers - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. daily_business_canceled_product_subscribers - // - Available daily by 5:00 PM Pacific Time since 2015-01-26. monthly_revenue_billing_and_revenue_data - // - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since - // 2015-02. monthly_revenue_annual_subscriptions - Available monthly on the - // 4th day of the month by 5:00 PM Pacific Time since 2015-02. disbursed_amount_by_product - // - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26. disbursed_amount_by_product_with_uncollected_funds - // -This data set is only available from 2012-04-19 until 2015-01-25. After - // 2015-01-25, this data set was split into three data sets: disbursed_amount_by_product, - // disbursed_amount_by_age_of_uncollected_funds, and disbursed_amount_by_age_of_disbursed_funds. - // disbursed_amount_by_customer_geo - Available every 30 days by 5:00 PM Pacific - // Time since 2012-04-19. disbursed_amount_by_age_of_uncollected_funds - Available - // every 30 days by 5:00 PM Pacific Time since 2015-01-26. disbursed_amount_by_age_of_disbursed_funds - // - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26. customer_profile_by_industry - // - Available daily by 5:00 PM Pacific Time since 2015-10-01. customer_profile_by_revenue - // - Available daily by 5:00 PM Pacific Time since 2015-10-01. customer_profile_by_geography - // - Available daily by 5:00 PM Pacific Time since 2015-10-01. - DataSetType *string `locationName:"dataSetType" min:"1" type:"string" required:"true" enum:"DataSetType"` - - // The name (friendly name, not ARN) of the destination S3 bucket. - DestinationS3BucketName *string `locationName:"destinationS3BucketName" min:"1" type:"string" required:"true"` - - // (Optional) The desired S3 prefix for the published data set, similar to a - // directory path in standard file systems. For example, if given the bucket - // name "mybucket" and the prefix "myprefix/mydatasets", the output file "outputfile" - // would be published to "s3://mybucket/myprefix/mydatasets/outputfile". If - // the prefix directory structure does not exist, it will be created. If no - // prefix is provided, the data set will be published to the S3 bucket root. - DestinationS3Prefix *string `locationName:"destinationS3Prefix" type:"string"` - - // The Amazon Resource Name (ARN) of the Role with an attached permissions policy - // to interact with the provided AWS services. - RoleNameArn *string `locationName:"roleNameArn" min:"1" type:"string" required:"true"` - - // Amazon Resource Name (ARN) for the SNS Topic that will be notified when the - // data set has been published or if an error has occurred. - SnsTopicArn *string `locationName:"snsTopicArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GenerateDataSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GenerateDataSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GenerateDataSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GenerateDataSetInput"} - if s.CustomerDefinedValues != nil && len(s.CustomerDefinedValues) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CustomerDefinedValues", 1)) - } - if s.DataSetPublicationDate == nil { - invalidParams.Add(request.NewErrParamRequired("DataSetPublicationDate")) - } - if s.DataSetType == nil { - invalidParams.Add(request.NewErrParamRequired("DataSetType")) - } - if s.DataSetType != nil && len(*s.DataSetType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataSetType", 1)) - } - if s.DestinationS3BucketName == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationS3BucketName")) - } - if s.DestinationS3BucketName != nil && len(*s.DestinationS3BucketName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DestinationS3BucketName", 1)) - } - if s.RoleNameArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleNameArn")) - } - if s.RoleNameArn != nil && len(*s.RoleNameArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleNameArn", 1)) - } - if s.SnsTopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("SnsTopicArn")) - } - if s.SnsTopicArn != nil && len(*s.SnsTopicArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SnsTopicArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Container for the result of the GenerateDataSet operation. -type GenerateDataSetOutput struct { - _ struct{} `type:"structure"` - - // A unique identifier representing a specific request to the GenerateDataSet - // operation. This identifier can be used to correlate a request with notifications - // from the SNS topic. - DataSetRequestId *string `locationName:"dataSetRequestId" type:"string"` -} - -// String returns the string representation -func (s GenerateDataSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GenerateDataSetOutput) GoString() string { - return s.String() -} - -const ( - // @enum DataSetType - DataSetTypeCustomerSubscriberHourlyMonthlySubscriptions = "customer_subscriber_hourly_monthly_subscriptions" - // @enum DataSetType - DataSetTypeCustomerSubscriberAnnualSubscriptions = "customer_subscriber_annual_subscriptions" - // @enum DataSetType - DataSetTypeDailyBusinessUsageByInstanceType = "daily_business_usage_by_instance_type" - // @enum DataSetType - DataSetTypeDailyBusinessFees = "daily_business_fees" - // @enum DataSetType - DataSetTypeDailyBusinessFreeTrialConversions = "daily_business_free_trial_conversions" - // @enum DataSetType - DataSetTypeDailyBusinessNewInstances = "daily_business_new_instances" - // @enum DataSetType - DataSetTypeDailyBusinessNewProductSubscribers = "daily_business_new_product_subscribers" - // @enum DataSetType - DataSetTypeDailyBusinessCanceledProductSubscribers = "daily_business_canceled_product_subscribers" - // @enum DataSetType - DataSetTypeMonthlyRevenueBillingAndRevenueData = "monthly_revenue_billing_and_revenue_data" - // @enum DataSetType - DataSetTypeMonthlyRevenueAnnualSubscriptions = "monthly_revenue_annual_subscriptions" - // @enum DataSetType - DataSetTypeDisbursedAmountByProduct = "disbursed_amount_by_product" - // @enum DataSetType - DataSetTypeDisbursedAmountByProductWithUncollectedFunds = "disbursed_amount_by_product_with_uncollected_funds" - // @enum DataSetType - DataSetTypeDisbursedAmountByCustomerGeo = "disbursed_amount_by_customer_geo" - // @enum DataSetType - DataSetTypeDisbursedAmountByAgeOfUncollectedFunds = "disbursed_amount_by_age_of_uncollected_funds" - // @enum DataSetType - DataSetTypeDisbursedAmountByAgeOfDisbursedFunds = "disbursed_amount_by_age_of_disbursed_funds" - // @enum DataSetType - DataSetTypeCustomerProfileByIndustry = "customer_profile_by_industry" - // @enum DataSetType - DataSetTypeCustomerProfileByRevenue = "customer_profile_by_revenue" - // @enum DataSetType - DataSetTypeCustomerProfileByGeography = "customer_profile_by_geography" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go deleted file mode 100644 index 319af8552..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/examples_test.go +++ /dev/null @@ -1,44 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package marketplacecommerceanalytics_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleMarketplaceCommerceAnalytics_GenerateDataSet() { - svc := marketplacecommerceanalytics.New(session.New()) - - params := &marketplacecommerceanalytics.GenerateDataSetInput{ - DataSetPublicationDate: aws.Time(time.Now()), // Required - DataSetType: aws.String("DataSetType"), // Required - DestinationS3BucketName: aws.String("DestinationS3BucketName"), // Required - RoleNameArn: aws.String("RoleNameArn"), // Required - SnsTopicArn: aws.String("SnsTopicArn"), // Required - CustomerDefinedValues: map[string]*string{ - "Key": aws.String("OptionalValue"), // Required - // More values... - }, - DestinationS3Prefix: aws.String("DestinationS3Prefix"), - } - resp, err := svc.GenerateDataSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go deleted file mode 100644 index 825d62f59..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package marketplacecommerceanalyticsiface provides an interface for the AWS Marketplace Commerce Analytics. -package marketplacecommerceanalyticsiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics" -) - -// MarketplaceCommerceAnalyticsAPI is the interface type for marketplacecommerceanalytics.MarketplaceCommerceAnalytics. -type MarketplaceCommerceAnalyticsAPI interface { - GenerateDataSetRequest(*marketplacecommerceanalytics.GenerateDataSetInput) (*request.Request, *marketplacecommerceanalytics.GenerateDataSetOutput) - - GenerateDataSet(*marketplacecommerceanalytics.GenerateDataSetInput) (*marketplacecommerceanalytics.GenerateDataSetOutput, error) -} - -var _ MarketplaceCommerceAnalyticsAPI = (*marketplacecommerceanalytics.MarketplaceCommerceAnalytics)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/service.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/service.go deleted file mode 100644 index 42c041877..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/service.go +++ /dev/null @@ -1,89 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package marketplacecommerceanalytics - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// Provides AWS Marketplace business intelligence data on-demand. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type MarketplaceCommerceAnalytics struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "marketplacecommerceanalytics" - -// New creates a new instance of the MarketplaceCommerceAnalytics client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a MarketplaceCommerceAnalytics client from just a session. -// svc := marketplacecommerceanalytics.New(mySession) -// -// // Create a MarketplaceCommerceAnalytics client with additional configuration -// svc := marketplacecommerceanalytics.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *MarketplaceCommerceAnalytics { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *MarketplaceCommerceAnalytics { - svc := &MarketplaceCommerceAnalytics{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningName: "marketplacecommerceanalytics", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-07-01", - JSONVersion: "1.1", - TargetPrefix: "MarketplaceCommerceAnalytics20150701", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a MarketplaceCommerceAnalytics operation and runs any -// custom request initialization. -func (c *MarketplaceCommerceAnalytics) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/api.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/api.go deleted file mode 100644 index 36f30814e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/api.go +++ /dev/null @@ -1,121 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package marketplacemetering provides a client for AWSMarketplace Metering. -package marketplacemetering - -import ( - "time" - - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" -) - -const opMeterUsage = "MeterUsage" - -// MeterUsageRequest generates a request for the MeterUsage operation. -func (c *MarketplaceMetering) MeterUsageRequest(input *MeterUsageInput) (req *request.Request, output *MeterUsageOutput) { - op := &request.Operation{ - Name: opMeterUsage, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &MeterUsageInput{} - } - - req = c.newRequest(op, input, output) - output = &MeterUsageOutput{} - req.Data = output - return -} - -// API to emit metering records. For identical requests, the API is idempotent. -// It simply returns the metering record ID. -func (c *MarketplaceMetering) MeterUsage(input *MeterUsageInput) (*MeterUsageOutput, error) { - req, out := c.MeterUsageRequest(input) - err := req.Send() - return out, err -} - -type MeterUsageInput struct { - _ struct{} `type:"structure"` - - // Checks whether you have the permissions required for the action, but does - // not make the request. If you have the permissions, the request returns DryRunOperation; - // otherwise, it returns UnauthorizedException. - DryRun *bool `type:"boolean" required:"true"` - - // Product code is used to uniquely identify a product in AWS Marketplace. The - // product code should be the same as the one used during the publishing of - // a new product. - ProductCode *string `min:"1" type:"string" required:"true"` - - // Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions - // of the timestamp will be ignored. - Timestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - - // It will be one of the 'fcp dimension name' provided during the publishing - // of the product. - UsageDimension *string `min:"1" type:"string" required:"true"` - - // Consumption value for the hour. - UsageQuantity *int64 `type:"integer" required:"true"` -} - -// String returns the string representation -func (s MeterUsageInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MeterUsageInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *MeterUsageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MeterUsageInput"} - if s.DryRun == nil { - invalidParams.Add(request.NewErrParamRequired("DryRun")) - } - if s.ProductCode == nil { - invalidParams.Add(request.NewErrParamRequired("ProductCode")) - } - if s.ProductCode != nil && len(*s.ProductCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProductCode", 1)) - } - if s.Timestamp == nil { - invalidParams.Add(request.NewErrParamRequired("Timestamp")) - } - if s.UsageDimension == nil { - invalidParams.Add(request.NewErrParamRequired("UsageDimension")) - } - if s.UsageDimension != nil && len(*s.UsageDimension) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UsageDimension", 1)) - } - if s.UsageQuantity == nil { - invalidParams.Add(request.NewErrParamRequired("UsageQuantity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type MeterUsageOutput struct { - _ struct{} `type:"structure"` - - MeteringRecordId *string `type:"string"` -} - -// String returns the string representation -func (s MeterUsageOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MeterUsageOutput) GoString() string { - return s.String() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go deleted file mode 100644 index c608eb476..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/examples_test.go +++ /dev/null @@ -1,39 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package marketplacemetering_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/marketplacemetering" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleMarketplaceMetering_MeterUsage() { - svc := marketplacemetering.New(session.New()) - - params := &marketplacemetering.MeterUsageInput{ - DryRun: aws.Bool(true), // Required - ProductCode: aws.String("ProductCode"), // Required - Timestamp: aws.Time(time.Now()), // Required - UsageDimension: aws.String("UsageDimension"), // Required - UsageQuantity: aws.Int64(1), // Required - } - resp, err := svc.MeterUsage(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go deleted file mode 100644 index f4957bf85..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface/interface.go +++ /dev/null @@ -1,18 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package marketplacemeteringiface provides an interface for the AWSMarketplace Metering. -package marketplacemeteringiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/marketplacemetering" -) - -// MarketplaceMeteringAPI is the interface type for marketplacemetering.MarketplaceMetering. -type MarketplaceMeteringAPI interface { - MeterUsageRequest(*marketplacemetering.MeterUsageInput) (*request.Request, *marketplacemetering.MeterUsageOutput) - - MeterUsage(*marketplacemetering.MeterUsageInput) (*marketplacemetering.MeterUsageOutput, error) -} - -var _ MarketplaceMeteringAPI = (*marketplacemetering.MarketplaceMetering)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/service.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/service.go deleted file mode 100644 index 9dafec86c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/service.go +++ /dev/null @@ -1,97 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package marketplacemetering - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// This reference provides descriptions of the low-level AWS Marketplace Metering -// Service API. -// -// AWS Marketplace sellers can use this API to submit usage data for custom -// usage dimensions. -// -// Submitting Metering Records -// -// MeterUsage- Submits the metering record for a Marketplace product. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type MarketplaceMetering struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "metering.marketplace" - -// New creates a new instance of the MarketplaceMetering client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a MarketplaceMetering client from just a session. -// svc := marketplacemetering.New(mySession) -// -// // Create a MarketplaceMetering client with additional configuration -// svc := marketplacemetering.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *MarketplaceMetering { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *MarketplaceMetering { - svc := &MarketplaceMetering{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningName: "aws-marketplace", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2016-01-14", - JSONVersion: "1.1", - TargetPrefix: "AWSMPMeteringService", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a MarketplaceMetering operation and runs any -// custom request initialization. -func (c *MarketplaceMetering) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/api.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/api.go index d4244b6f1..8f340a9e0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/api.go @@ -4,12 +4,8 @@ package mobileanalytics import ( - "fmt" - "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/private/protocol/restjson" ) const opPutEvents = "PutEvents" @@ -27,8 +23,6 @@ func (c *MobileAnalytics) PutEventsRequest(input *PutEventsInput) (req *request. } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutEventsOutput{} req.Data = output return @@ -45,8 +39,6 @@ func (c *MobileAnalytics) PutEvents(input *PutEventsInput) (*PutEventsOutput, er // A JSON object representing a batch of unique event occurrences in your app. type Event struct { - _ struct{} `type:"structure"` - // A collection of key-value pairs that give additional context to the event. // The key-value pairs are specified by the developer. // @@ -55,7 +47,7 @@ type Event struct { // A name signifying an event that occurred in your app. This is used for grouping // and aggregating like events together for reporting purposes. - EventType *string `locationName:"eventType" min:"1" type:"string" required:"true"` + EventType *string `locationName:"eventType" type:"string" required:"true"` // A collection of key-value pairs that gives additional, measurable context // to the event. The key-value pairs are specified by the developer. @@ -71,7 +63,13 @@ type Event struct { Timestamp *string `locationName:"timestamp" type:"string" required:"true"` // The version of the event. - Version *string `locationName:"version" min:"1" type:"string"` + Version *string `locationName:"version" type:"string"` + + metadataEvent `json:"-" xml:"-"` +} + +type metadataEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -84,37 +82,8 @@ func (s Event) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Event) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Event"} - if s.EventType == nil { - invalidParams.Add(request.NewErrParamRequired("EventType")) - } - if s.EventType != nil && len(*s.EventType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EventType", 1)) - } - if s.Timestamp == nil { - invalidParams.Add(request.NewErrParamRequired("Timestamp")) - } - if s.Version != nil && len(*s.Version) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Version", 1)) - } - if s.Session != nil { - if err := s.Session.Validate(); err != nil { - invalidParams.AddNested("Session", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A container for the data needed for a PutEvent operation type PutEventsInput struct { - _ struct{} `type:"structure"` - // The client context including the client ID, app title, app version and package // name. ClientContext *string `location:"header" locationName:"x-amz-Client-Context" type:"string" required:"true"` @@ -124,6 +93,12 @@ type PutEventsInput struct { // An array of Event JSON objects Events []*Event `locationName:"events" type:"list" required:"true"` + + metadataPutEventsInput `json:"-" xml:"-"` +} + +type metadataPutEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -136,34 +111,12 @@ func (s PutEventsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutEventsInput"} - if s.ClientContext == nil { - invalidParams.Add(request.NewErrParamRequired("ClientContext")) - } - if s.Events == nil { - invalidParams.Add(request.NewErrParamRequired("Events")) - } - if s.Events != nil { - for i, v := range s.Events { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Events", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutEventsOutput struct { + metadataPutEventsOutput `json:"-" xml:"-"` } -type PutEventsOutput struct { - _ struct{} `type:"structure"` +type metadataPutEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -178,13 +131,11 @@ func (s PutEventsOutput) GoString() string { // Describes the session. Session information is required on ALL events. type Session struct { - _ struct{} `type:"structure"` - // The duration of the session. Duration *int64 `locationName:"duration" type:"long"` // A unique identifier for the session - Id *string `locationName:"id" min:"1" type:"string"` + Id *string `locationName:"id" type:"string"` // The time the event started in ISO 8601 standard date time format. For example, // 2014-06-30T19:07:47.885Z @@ -193,6 +144,12 @@ type Session struct { // The time the event terminated in ISO 8601 standard date time format. For // example, 2014-06-30T19:07:47.885Z StopTimestamp *string `locationName:"stopTimestamp" type:"string"` + + metadataSession `json:"-" xml:"-"` +} + +type metadataSession struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -204,16 +161,3 @@ func (s Session) String() string { func (s Session) GoString() string { return s.String() } - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Session) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Session"} - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go index 38cd3ebb5..b4f27aea2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mobileanalytics" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleMobileAnalytics_PutEvents() { - svc := mobileanalytics.New(session.New()) + svc := mobileanalytics.New(nil) params := &mobileanalytics.PutEventsInput{ ClientContext: aws.String("String"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go index 524635c56..9e5afebec 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go @@ -14,5 +14,3 @@ type MobileAnalyticsAPI interface { PutEvents(*mobileanalytics.PutEventsInput) (*mobileanalytics.PutEventsOutput, error) } - -var _ MobileAnalyticsAPI = (*mobileanalytics.MobileAnalytics)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface_test.go new file mode 100644 index 000000000..d3bab8bc8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package mobileanalyticsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/mobileanalytics" + "github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*mobileanalyticsiface.MobileAnalyticsAPI)(nil), mobileanalytics.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/service.go b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/service.go index c12cf9c00..cdaa87173 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/service.go @@ -4,73 +4,50 @@ package mobileanalytics import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restjson" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restjson" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Amazon Mobile Analytics is a service for collecting, visualizing, and understanding // app usage data at scale. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type MobileAnalytics struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "mobileanalytics" - -// New creates a new instance of the MobileAnalytics client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a MobileAnalytics client from just a session. -// svc := mobileanalytics.New(mySession) -// -// // Create a MobileAnalytics client with additional configuration -// svc := mobileanalytics.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *MobileAnalytics { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *MobileAnalytics { - svc := &MobileAnalytics{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-06-05", - }, - handlers, - ), +// New returns a new MobileAnalytics client. +func New(config *aws.Config) *MobileAnalytics { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "mobileanalytics", + APIVersion: "2014-06-05", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restjson.Build) + service.Handlers.Unmarshal.PushBack(restjson.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restjson.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restjson.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &MobileAnalytics{service} } // newRequest creates a new request for a MobileAnalytics operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go index ec5fcdbe2..f00e9ada4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/api.go @@ -4,12 +4,8 @@ package opsworks import ( - "fmt" - "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/private/protocol/jsonrpc" ) const opAssignInstance = "AssignInstance" @@ -27,8 +23,6 @@ func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AssignInstanceOutput{} req.Data = output return @@ -64,8 +58,6 @@ func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.R } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AssignVolumeOutput{} req.Data = output return @@ -102,8 +94,6 @@ func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AssociateElasticIpOutput{} req.Data = output return @@ -138,8 +128,6 @@ func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBala } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AttachElasticLoadBalancerOutput{} req.Data = output return @@ -411,8 +399,6 @@ func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteAppOutput{} req.Data = output return @@ -445,8 +431,6 @@ func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteInstanceOutput{} req.Data = output return @@ -482,8 +466,6 @@ func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteLayerOutput{} req.Data = output return @@ -518,8 +500,6 @@ func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteStackOutput{} req.Data = output return @@ -554,8 +534,6 @@ func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteUserProfileOutput{} req.Data = output return @@ -587,8 +565,6 @@ func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeregisterEcsClusterOutput{} req.Data = output return @@ -621,8 +597,6 @@ func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) ( } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeregisterElasticIpOutput{} req.Data = output return @@ -656,8 +630,6 @@ func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeregisterInstanceOutput{} req.Data = output return @@ -692,8 +664,6 @@ func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstance } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeregisterRdsDbInstanceOutput{} req.Data = output return @@ -726,8 +696,6 @@ func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeregisterVolumeOutput{} req.Data = output return @@ -920,7 +888,6 @@ func (c *OpsWorks) DescribeEcsClusters(input *DescribeEcsClustersInput) (*Descri func (c *OpsWorks) DescribeEcsClustersPages(input *DescribeEcsClustersInput, fn func(p *DescribeEcsClustersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeEcsClustersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeEcsClustersOutput), lastPage) }) @@ -1468,8 +1435,6 @@ func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBala } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DetachElasticLoadBalancerOutput{} req.Data = output return @@ -1502,8 +1467,6 @@ func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInpu } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DisassociateElasticIpOutput{} req.Data = output return @@ -1599,8 +1562,6 @@ func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RebootInstanceOutput{} req.Data = output return @@ -1742,8 +1703,6 @@ func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInpu } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RegisterRdsDbInstanceOutput{} req.Data = output return @@ -1811,8 +1770,6 @@ func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScaling } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetLoadBasedAutoScalingOutput{} req.Data = output return @@ -1852,8 +1809,6 @@ func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetPermissionOutput{} req.Data = output return @@ -1887,8 +1842,6 @@ func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScaling } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetTimeBasedAutoScalingOutput{} req.Data = output return @@ -1923,8 +1876,6 @@ func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &StartInstanceOutput{} req.Data = output return @@ -1958,8 +1909,6 @@ func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &StartStackOutput{} req.Data = output return @@ -1992,8 +1941,6 @@ func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.R } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &StopInstanceOutput{} req.Data = output return @@ -2029,8 +1976,6 @@ func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &StopStackOutput{} req.Data = output return @@ -2063,8 +2008,6 @@ func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UnassignInstanceOutput{} req.Data = output return @@ -2100,8 +2043,6 @@ func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UnassignVolumeOutput{} req.Data = output return @@ -2135,8 +2076,6 @@ func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateAppOutput{} req.Data = output return @@ -2169,8 +2108,6 @@ func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateElasticIpOutput{} req.Data = output return @@ -2204,8 +2141,6 @@ func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateInstanceOutput{} req.Data = output return @@ -2238,8 +2173,6 @@ func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateLayerOutput{} req.Data = output return @@ -2272,8 +2205,6 @@ func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) ( } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateMyUserProfileOutput{} req.Data = output return @@ -2305,8 +2236,6 @@ func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) ( } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateRdsDbInstanceOutput{} req.Data = output return @@ -2339,8 +2268,6 @@ func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateStackOutput{} req.Data = output return @@ -2373,8 +2300,6 @@ func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateUserProfileOutput{} req.Data = output return @@ -2406,8 +2331,6 @@ func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.R } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UpdateVolumeOutput{} req.Data = output return @@ -2428,13 +2351,17 @@ func (c *OpsWorks) UpdateVolume(input *UpdateVolumeInput) (*UpdateVolumeOutput, // Describes an agent version. type AgentVersion struct { - _ struct{} `type:"structure"` - // The configuration manager. ConfigurationManager *StackConfigurationManager `type:"structure"` // The agent version. Version *string `type:"string"` + + metadataAgentVersion `json:"-" xml:"-"` +} + +type metadataAgentVersion struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2449,8 +2376,6 @@ func (s AgentVersion) GoString() string { // A description of the app. type App struct { - _ struct{} `type:"structure"` - // The app ID. AppId *string `type:"string"` @@ -2503,6 +2428,12 @@ type App struct { // The app type. Type *string `type:"string" enum:"AppType"` + + metadataApp `json:"-" xml:"-"` +} + +type metadataApp struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2516,14 +2447,18 @@ func (s App) GoString() string { } type AssignInstanceInput struct { - _ struct{} `type:"structure"` - // The instance ID. InstanceId *string `type:"string" required:"true"` // The layer ID, which must correspond to a custom layer. You cannot assign // a registered instance to a built-in layer. LayerIds []*string `type:"list" required:"true"` + + metadataAssignInstanceInput `json:"-" xml:"-"` +} + +type metadataAssignInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2536,24 +2471,12 @@ func (s AssignInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssignInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssignInstanceInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.LayerIds == nil { - invalidParams.Add(request.NewErrParamRequired("LayerIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AssignInstanceOutput struct { + metadataAssignInstanceOutput `json:"-" xml:"-"` } -type AssignInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataAssignInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2567,13 +2490,17 @@ func (s AssignInstanceOutput) GoString() string { } type AssignVolumeInput struct { - _ struct{} `type:"structure"` - // The instance ID. InstanceId *string `type:"string"` // The volume ID. VolumeId *string `type:"string" required:"true"` + + metadataAssignVolumeInput `json:"-" xml:"-"` +} + +type metadataAssignVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2586,21 +2513,12 @@ func (s AssignVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssignVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssignVolumeInput"} - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AssignVolumeOutput struct { + metadataAssignVolumeOutput `json:"-" xml:"-"` } -type AssignVolumeOutput struct { - _ struct{} `type:"structure"` +type metadataAssignVolumeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2614,13 +2532,17 @@ func (s AssignVolumeOutput) GoString() string { } type AssociateElasticIpInput struct { - _ struct{} `type:"structure"` - // The Elastic IP address. ElasticIp *string `type:"string" required:"true"` // The instance ID. InstanceId *string `type:"string"` + + metadataAssociateElasticIpInput `json:"-" xml:"-"` +} + +type metadataAssociateElasticIpInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2633,21 +2555,12 @@ func (s AssociateElasticIpInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateElasticIpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateElasticIpInput"} - if s.ElasticIp == nil { - invalidParams.Add(request.NewErrParamRequired("ElasticIp")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AssociateElasticIpOutput struct { + metadataAssociateElasticIpOutput `json:"-" xml:"-"` } -type AssociateElasticIpOutput struct { - _ struct{} `type:"structure"` +type metadataAssociateElasticIpOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2661,14 +2574,18 @@ func (s AssociateElasticIpOutput) GoString() string { } type AttachElasticLoadBalancerInput struct { - _ struct{} `type:"structure"` - // The Elastic Load Balancing instance's name. ElasticLoadBalancerName *string `type:"string" required:"true"` // The ID of the layer that the Elastic Load Balancing instance is to be attached // to. LayerId *string `type:"string" required:"true"` + + metadataAttachElasticLoadBalancerInput `json:"-" xml:"-"` +} + +type metadataAttachElasticLoadBalancerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2681,24 +2598,12 @@ func (s AttachElasticLoadBalancerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AttachElasticLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachElasticLoadBalancerInput"} - if s.ElasticLoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("ElasticLoadBalancerName")) - } - if s.LayerId == nil { - invalidParams.Add(request.NewErrParamRequired("LayerId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AttachElasticLoadBalancerOutput struct { + metadataAttachElasticLoadBalancerOutput `json:"-" xml:"-"` } -type AttachElasticLoadBalancerOutput struct { - _ struct{} `type:"structure"` +type metadataAttachElasticLoadBalancerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2714,8 +2619,6 @@ func (s AttachElasticLoadBalancerOutput) GoString() string { // Describes a load-based auto scaling upscaling or downscaling threshold configuration, // which specifies when AWS OpsWorks starts or stops load-based instances. type AutoScalingThresholds struct { - _ struct{} `type:"structure"` - // Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter // takes a list of up to five alarm names, which are case sensitive and must // be in the same region as the stack. @@ -2726,8 +2629,7 @@ type AutoScalingThresholds struct { // Allowing AWS OpsWorks to Act on Your Behalf (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-servicerole.html). Alarms []*string `type:"list"` - // The CPU utilization threshold, as a percent of the available CPU. A value - // of -1 disables the threshold. + // The CPU utilization threshold, as a percent of the available CPU. CpuThreshold *float64 `type:"double"` // The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks @@ -2738,22 +2640,27 @@ type AutoScalingThresholds struct { // which typically takes several minutes. IgnoreMetricsTime allows you to direct // AWS OpsWorks to suppress scaling events long enough to get the new instances // online. - IgnoreMetricsTime *int64 `min:"1" type:"integer"` + IgnoreMetricsTime *int64 `type:"integer"` // The number of instances to add or remove when the load exceeds a threshold. InstanceCount *int64 `type:"integer"` - // The load threshold. A value of -1 disables the threshold. For more information - // about how load is computed, see Load (computing) (http://en.wikipedia.org/wiki/Load_%28computing%29). + // The load threshold. For more information about how load is computed, see + // Load (computing) (http://en.wikipedia.org/wiki/Load_%28computing%29). LoadThreshold *float64 `type:"double"` - // The memory utilization threshold, as a percent of the available memory. A - // value of -1 disables the threshold. + // The memory utilization threshold, as a percent of the available memory. MemoryThreshold *float64 `type:"double"` // The amount of time, in minutes, that the load must exceed a threshold before // more instances are added or removed. - ThresholdsWaitTime *int64 `min:"1" type:"integer"` + ThresholdsWaitTime *int64 `type:"integer"` + + metadataAutoScalingThresholds `json:"-" xml:"-"` +} + +type metadataAutoScalingThresholds struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2766,28 +2673,10 @@ func (s AutoScalingThresholds) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AutoScalingThresholds) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AutoScalingThresholds"} - if s.IgnoreMetricsTime != nil && *s.IgnoreMetricsTime < 1 { - invalidParams.Add(request.NewErrParamMinValue("IgnoreMetricsTime", 1)) - } - if s.ThresholdsWaitTime != nil && *s.ThresholdsWaitTime < 1 { - invalidParams.Add(request.NewErrParamMinValue("ThresholdsWaitTime", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a block device mapping. This data type maps directly to the Amazon // EC2 BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html) // data type. type BlockDeviceMapping struct { - _ struct{} `type:"structure"` - // The device name that is exposed to the instance, such as /dev/sdh. For the // root device, you can use the explicit device name or you can set this parameter // to ROOT_DEVICE and AWS OpsWorks will provide the correct device name. @@ -2802,6 +2691,12 @@ type BlockDeviceMapping struct { // The virtual device name. For more information, see BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html). VirtualName *string `type:"string"` + + metadataBlockDeviceMapping `json:"-" xml:"-"` +} + +type metadataBlockDeviceMapping struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2816,13 +2711,17 @@ func (s BlockDeviceMapping) GoString() string { // Describes the Chef configuration. type ChefConfiguration struct { - _ struct{} `type:"structure"` - // The Berkshelf version. BerkshelfVersion *string `type:"string"` // Whether to enable Berkshelf. ManageBerkshelf *bool `type:"boolean"` + + metadataChefConfiguration `json:"-" xml:"-"` +} + +type metadataChefConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2836,8 +2735,6 @@ func (s ChefConfiguration) GoString() string { } type CloneStackInput struct { - _ struct{} `type:"structure"` - // The default AWS OpsWorks agent version. You have the following options: // // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically @@ -2868,10 +2765,9 @@ type CloneStackInput struct { // Whether to clone the source stack's permissions. ClonePermissions *bool `type:"boolean"` - // The configuration manager. When you clone a stack we recommend that you use - // the configuration manager to specify the Chef version: 12, 11.10, or 11.4 - // for Linux stacks, or 12.2 for Windows stacks. The default value for Linux - // stacks is currently 11.4. + // The configuration manager. When you clone a Linux stack we recommend that + // you use the configuration manager to specify the Chef version: 0.9, 11.4, + // or 11.10. The default value is currently 11.10. ConfigurationManager *StackConfigurationManager `type:"structure"` // Contains the information required to retrieve an app or cookbook from a repository. @@ -2904,7 +2800,7 @@ type CloneStackInput struct { // // A supported Linux operating system: An Amazon Linux version, such as Amazon // Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 - // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. You specify + // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. You specify // the custom AMI you want to use when you create instances. For more information // on how to use custom AMIs with OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // The default option is the parent stack's operating system. For more information @@ -3013,6 +2909,12 @@ type CloneStackInput struct { // For more information on default VPC and EC2 Classic, see Supported Platforms // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html). VpcId *string `type:"string"` + + metadataCloneStackInput `json:"-" xml:"-"` +} + +type metadataCloneStackInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3025,28 +2927,16 @@ func (s CloneStackInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CloneStackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CloneStackInput"} - if s.ServiceRoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn")) - } - if s.SourceStackId == nil { - invalidParams.Add(request.NewErrParamRequired("SourceStackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a CloneStack request. type CloneStackOutput struct { - _ struct{} `type:"structure"` - // The cloned stack ID. StackId *string `type:"string"` + + metadataCloneStackOutput `json:"-" xml:"-"` +} + +type metadataCloneStackOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3061,8 +2951,6 @@ func (s CloneStackOutput) GoString() string { // Describes a command. type Command struct { - _ struct{} `type:"structure"` - // Date and time when the command was acknowledged. AcknowledgedAt *string `type:"string"` @@ -3097,6 +2985,12 @@ type Command struct { // deploy rollback start stop restart undeploy update_dependencies // install_dependencies update_custom_cookbooks execute_recipes Type *string `type:"string"` + + metadataCommand `json:"-" xml:"-"` +} + +type metadataCommand struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3110,8 +3004,6 @@ func (s Command) GoString() string { } type CreateAppInput struct { - _ struct{} `type:"structure"` - // A Source object that specifies the app repository. AppSource *Source `type:"structure"` @@ -3165,6 +3057,12 @@ type CreateAppInput struct { // layer. If your app isn't one of the standard types, or you prefer to implement // your own Deploy recipes, specify other. Type *string `type:"string" required:"true" enum:"AppType"` + + metadataCreateAppInput `json:"-" xml:"-"` +} + +type metadataCreateAppInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3177,46 +3075,16 @@ func (s CreateAppInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAppInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAppInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.Environment != nil { - for i, v := range s.Environment { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Environment", i), err.(request.ErrInvalidParams)) - } - } - } - if s.SslConfiguration != nil { - if err := s.SslConfiguration.Validate(); err != nil { - invalidParams.AddNested("SslConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a CreateApp request. type CreateAppOutput struct { - _ struct{} `type:"structure"` - // The app ID. AppId *string `type:"string"` + + metadataCreateAppOutput `json:"-" xml:"-"` +} + +type metadataCreateAppOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3230,8 +3098,6 @@ func (s CreateAppOutput) GoString() string { } type CreateDeploymentInput struct { - _ struct{} `type:"structure"` - // The app ID. This parameter is required for app deployments, but not for other // deployment commands. AppId *string `type:"string"` @@ -3256,11 +3122,14 @@ type CreateDeploymentInput struct { // The instance IDs for the deployment targets. InstanceIds []*string `type:"list"` - // The layer IDs for the deployment targets. - LayerIds []*string `type:"list"` - // The stack ID. StackId *string `type:"string" required:"true"` + + metadataCreateDeploymentInput `json:"-" xml:"-"` +} + +type metadataCreateDeploymentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3273,34 +3142,17 @@ func (s CreateDeploymentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"} - if s.Command == nil { - invalidParams.Add(request.NewErrParamRequired("Command")) - } - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - if s.Command != nil { - if err := s.Command.Validate(); err != nil { - invalidParams.AddNested("Command", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a CreateDeployment request. type CreateDeploymentOutput struct { - _ struct{} `type:"structure"` - // The deployment ID, which can be used with other requests to identify the // deployment. DeploymentId *string `type:"string"` + + metadataCreateDeploymentOutput `json:"-" xml:"-"` +} + +type metadataCreateDeploymentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3314,11 +3166,9 @@ func (s CreateDeploymentOutput) GoString() string { } type CreateInstanceInput struct { - _ struct{} `type:"structure"` - // The default AWS OpsWorks agent version. You have the following options: // - // INHERIT - Use the stack's default agent version setting. version_number + // INHERIT - Use the stack's default agent version setting. version_number // - Use the specified agent version. This value overrides the stack's default // setting. To update the agent version, edit the instance configuration and // specify a new version. AWS OpsWorks then automatically installs that version @@ -3350,7 +3200,6 @@ type CreateInstanceInput struct { // An array of BlockDeviceMapping objects that specify the instance's block // devices. For more information, see Block Device Mapping (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html). - // Note that block device mappings are not supported for custom AMIs. BlockDeviceMappings []*BlockDeviceMapping `type:"list"` // Whether to create an Amazon EBS-optimized instance. @@ -3384,15 +3233,14 @@ type CreateInstanceInput struct { // // A supported Linux operating system: An Amazon Linux version, such as Amazon // Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 - // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. For more + // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. For more // information on the supported operating systems, see AWS OpsWorks Operating // Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). // // The default option is the current Amazon Linux version. If you set this // parameter to Custom, you must use the CreateInstance action's AmiId parameter - // to specify the custom AMI that you want to use. Block device mappings are - // not supported if the value is Custom. For more information on the supported - // operating systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html)For + // to specify the custom AMI that you want to use. For more information on the + // supported operating systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html)For // more information on how to use custom AMIs with AWS OpsWorks, see Using Custom // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). Os *string `type:"string"` @@ -3412,20 +3260,14 @@ type CreateInstanceInput struct { // AWS OpsWorks to launch the instance in a different subnet. SubnetId *string `type:"string"` - // The instance's tenancy option. The default option is no tenancy, or if the - // instance is running in a VPC, inherit tenancy settings from the VPC. The - // following are valid values for this parameter: dedicated, default, or host. - // Because there are costs associated with changes in tenancy options, we recommend - // that you research tenancy options before choosing them for your instances. - // For more information about dedicated hosts, see Dedicated Hosts Overview - // (https://aws.amazon.com/ec2/dedicated-hosts/) and Amazon EC2 Dedicated Hosts - // (https://aws.amazon.com/ec2/dedicated-hosts/). For more information about - // dedicated instances, see Dedicated Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/dedicated-instance.html) - // and Amazon EC2 Dedicated Instances (https://aws.amazon.com/ec2/purchasing-options/dedicated-instances/). - Tenancy *string `type:"string"` - // The instance's virtualization type, paravirtual or hvm. VirtualizationType *string `type:"string"` + + metadataCreateInstanceInput `json:"-" xml:"-"` +} + +type metadataCreateInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3438,31 +3280,16 @@ func (s CreateInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateInstanceInput"} - if s.InstanceType == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceType")) - } - if s.LayerIds == nil { - invalidParams.Add(request.NewErrParamRequired("LayerIds")) - } - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a CreateInstance request. type CreateInstanceOutput struct { - _ struct{} `type:"structure"` - // The instance ID. InstanceId *string `type:"string"` + + metadataCreateInstanceOutput `json:"-" xml:"-"` +} + +type metadataCreateInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3476,8 +3303,6 @@ func (s CreateInstanceOutput) GoString() string { } type CreateLayerInput struct { - _ struct{} `type:"structure"` - // One or more user-defined key-value pairs to be added to the stack attributes. // // To create a cluster layer, set the EcsClusterArn attribute to the cluster's @@ -3500,7 +3325,6 @@ type CreateLayerInput struct { // A JSON-formatted string containing custom stack configuration and deployment // attributes to be installed on the layer's instances. For more information, // see Using Custom JSON (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html). - // This feature is supported as of version 1.7.42 of the AWS CLI. CustomJson *string `type:"string"` // A LayerCustomRecipes object that specifies the layer custom recipes. @@ -3555,6 +3379,12 @@ type CreateLayerInput struct { // A VolumeConfigurations object that describes the layer's Amazon EBS volumes. VolumeConfigurations []*VolumeConfiguration `type:"list"` + + metadataCreateLayerInput `json:"-" xml:"-"` +} + +type metadataCreateLayerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3567,44 +3397,16 @@ func (s CreateLayerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLayerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLayerInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Shortname == nil { - invalidParams.Add(request.NewErrParamRequired("Shortname")) - } - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.VolumeConfigurations != nil { - for i, v := range s.VolumeConfigurations { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VolumeConfigurations", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a CreateLayer request. type CreateLayerOutput struct { - _ struct{} `type:"structure"` - // The layer ID. LayerId *string `type:"string"` + + metadataCreateLayerOutput `json:"-" xml:"-"` +} + +type metadataCreateLayerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3618,8 +3420,6 @@ func (s CreateLayerOutput) GoString() string { } type CreateStackInput struct { - _ struct{} `type:"structure"` - // The default AWS OpsWorks agent version. You have the following options: // // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically @@ -3627,10 +3427,9 @@ type CreateStackInput struct { // available. Fixed version - Set this parameter to your preferred agent version. // To update the agent version, you must edit the stack configuration and specify // a new version. AWS OpsWorks then automatically installs that version on the - // stack's instances. The default setting is the most recent release of the - // agent. To specify an agent version, you must use the complete version number, - // not the abbreviated number shown on the console. For a list of available - // agent version numbers, call DescribeAgentVersions. + // stack's instances. The default setting is LATEST. To specify an agent version, + // you must use the complete version number, not the abbreviated number shown + // on the console. For a list of available agent version numbers, call DescribeAgentVersions. // // You can also specify an agent version when you create or update an instance, // which overrides the stack's default setting. @@ -3644,10 +3443,9 @@ type CreateStackInput struct { // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). ChefConfiguration *ChefConfiguration `type:"structure"` - // The configuration manager. When you create a stack we recommend that you - // use the configuration manager to specify the Chef version: 12, 11.10, or - // 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for - // Linux stacks is currently 11.4. + // The configuration manager. When you clone a stack we recommend that you use + // the configuration manager to specify the Chef version: 0.9, 11.4, or 11.10. + // The default value is currently 11.4. ConfigurationManager *StackConfigurationManager `type:"structure"` // Contains the information required to retrieve an app or cookbook from a repository. @@ -3683,7 +3481,7 @@ type CreateStackInput struct { // // A supported Linux operating system: An Amazon Linux version, such as Amazon // Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 - // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. You specify + // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. You specify // the custom AMI you want to use when you create instances. For more information, // see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // The default option is the current Amazon Linux version. For more information @@ -3780,6 +3578,12 @@ type CreateStackInput struct { // For more information on default VPC and EC2-Classic, see Supported Platforms // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html). VpcId *string `type:"string"` + + metadataCreateStackInput `json:"-" xml:"-"` +} + +type metadataCreateStackInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3792,35 +3596,17 @@ func (s CreateStackInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateStackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateStackInput"} - if s.DefaultInstanceProfileArn == nil { - invalidParams.Add(request.NewErrParamRequired("DefaultInstanceProfileArn")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Region == nil { - invalidParams.Add(request.NewErrParamRequired("Region")) - } - if s.ServiceRoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a CreateStack request. type CreateStackOutput struct { - _ struct{} `type:"structure"` - // The stack ID, which is an opaque string that you use to identify the stack // when performing actions such as DescribeStacks. StackId *string `type:"string"` + + metadataCreateStackOutput `json:"-" xml:"-"` +} + +type metadataCreateStackOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3834,8 +3620,6 @@ func (s CreateStackOutput) GoString() string { } type CreateUserProfileInput struct { - _ struct{} `type:"structure"` - // Whether users can specify their own SSH public key through the My Settings // page. For more information, see Setting an IAM User's Public SSH Key (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html). AllowSelfManagement *bool `type:"boolean"` @@ -3852,6 +3636,12 @@ type CreateUserProfileInput struct { // you do not specify an SSH user name, AWS OpsWorks generates one from the // IAM user name. SshUsername *string `type:"string"` + + metadataCreateUserProfileInput `json:"-" xml:"-"` +} + +type metadataCreateUserProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3864,25 +3654,16 @@ func (s CreateUserProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUserProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUserProfileInput"} - if s.IamUserArn == nil { - invalidParams.Add(request.NewErrParamRequired("IamUserArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a CreateUserProfile request. type CreateUserProfileOutput struct { - _ struct{} `type:"structure"` - // The user's IAM ARN. IamUserArn *string `type:"string"` + + metadataCreateUserProfileOutput `json:"-" xml:"-"` +} + +type metadataCreateUserProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3897,8 +3678,6 @@ func (s CreateUserProfileOutput) GoString() string { // Describes an app's data source. type DataSource struct { - _ struct{} `type:"structure"` - // The data source's ARN. Arn *string `type:"string"` @@ -3908,6 +3687,12 @@ type DataSource struct { // The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, // or RdsDbInstance. Type *string `type:"string"` + + metadataDataSource `json:"-" xml:"-"` +} + +type metadataDataSource struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3921,10 +3706,14 @@ func (s DataSource) GoString() string { } type DeleteAppInput struct { - _ struct{} `type:"structure"` - // The app ID. AppId *string `type:"string" required:"true"` + + metadataDeleteAppInput `json:"-" xml:"-"` +} + +type metadataDeleteAppInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3937,21 +3726,12 @@ func (s DeleteAppInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAppInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAppInput"} - if s.AppId == nil { - invalidParams.Add(request.NewErrParamRequired("AppId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteAppOutput struct { + metadataDeleteAppOutput `json:"-" xml:"-"` } -type DeleteAppOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteAppOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3965,8 +3745,6 @@ func (s DeleteAppOutput) GoString() string { } type DeleteInstanceInput struct { - _ struct{} `type:"structure"` - // Whether to delete the instance Elastic IP address. DeleteElasticIp *bool `type:"boolean"` @@ -3975,6 +3753,12 @@ type DeleteInstanceInput struct { // The instance ID. InstanceId *string `type:"string" required:"true"` + + metadataDeleteInstanceInput `json:"-" xml:"-"` +} + +type metadataDeleteInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3987,21 +3771,12 @@ func (s DeleteInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteInstanceInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteInstanceOutput struct { + metadataDeleteInstanceOutput `json:"-" xml:"-"` } -type DeleteInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4015,10 +3790,14 @@ func (s DeleteInstanceOutput) GoString() string { } type DeleteLayerInput struct { - _ struct{} `type:"structure"` - // The layer ID. LayerId *string `type:"string" required:"true"` + + metadataDeleteLayerInput `json:"-" xml:"-"` +} + +type metadataDeleteLayerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4031,21 +3810,12 @@ func (s DeleteLayerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLayerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLayerInput"} - if s.LayerId == nil { - invalidParams.Add(request.NewErrParamRequired("LayerId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteLayerOutput struct { + metadataDeleteLayerOutput `json:"-" xml:"-"` } -type DeleteLayerOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteLayerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4059,10 +3829,14 @@ func (s DeleteLayerOutput) GoString() string { } type DeleteStackInput struct { - _ struct{} `type:"structure"` - // The stack ID. StackId *string `type:"string" required:"true"` + + metadataDeleteStackInput `json:"-" xml:"-"` +} + +type metadataDeleteStackInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4075,21 +3849,12 @@ func (s DeleteStackInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteStackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteStackInput"} - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteStackOutput struct { + metadataDeleteStackOutput `json:"-" xml:"-"` } -type DeleteStackOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteStackOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4103,10 +3868,14 @@ func (s DeleteStackOutput) GoString() string { } type DeleteUserProfileInput struct { - _ struct{} `type:"structure"` - // The user's IAM ARN. IamUserArn *string `type:"string" required:"true"` + + metadataDeleteUserProfileInput `json:"-" xml:"-"` +} + +type metadataDeleteUserProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4119,21 +3888,12 @@ func (s DeleteUserProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserProfileInput"} - if s.IamUserArn == nil { - invalidParams.Add(request.NewErrParamRequired("IamUserArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteUserProfileOutput struct { + metadataDeleteUserProfileOutput `json:"-" xml:"-"` } -type DeleteUserProfileOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteUserProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4148,8 +3908,6 @@ func (s DeleteUserProfileOutput) GoString() string { // Describes a deployment of a stack or app. type Deployment struct { - _ struct{} `type:"structure"` - // The app ID. AppId *string `type:"string"` @@ -4195,6 +3953,12 @@ type Deployment struct { // // running successful failed Status *string `type:"string"` + + metadataDeployment `json:"-" xml:"-"` +} + +type metadataDeployment struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4209,8 +3973,6 @@ func (s Deployment) GoString() string { // Used to specify a stack or deployment command. type DeploymentCommand struct { - _ struct{} `type:"structure"` - // The arguments of those commands that take arguments. It should be set to // a JSON object with the following format: // @@ -4219,10 +3981,10 @@ type DeploymentCommand struct { // // The update_dependencies command takes two arguments: // - // upgrade_os_to - Specifies the desired Amazon Linux version for instances + // upgrade_os_to - Specifies the desired Amazon Linux version for instances // whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also - // set the allow_reboot argument to true. allow_reboot - Specifies whether to - // allow AWS OpsWorks to reboot the instances if necessary, after installing + // set the allow_reboot argument to true. allow_reboot - Specifies whether + // to allow AWS OpsWorks to reboot the instances if necessary, after installing // the updates. This argument can be set to either true or false. The default // value is false. For example, to upgrade an instance to Amazon Linux 2014.09, // set Args to the following. @@ -4234,25 +3996,32 @@ type DeploymentCommand struct { // // For stacks, the following commands are available: // - // execute_recipes: Execute one or more recipes. To specify the recipes, set - // an Args parameter named recipes to the list of recipes to be executed. For - // example, to execute phpapp::appsetup, set Args to {"recipes":["phpapp::appsetup"]}. - // install_dependencies: Install the stack's dependencies. update_custom_cookbooks: - // Update the stack's custom cookbooks. update_dependencies: Update the stack's + // execute_recipes: Execute one or more recipes. To specify the recipes, + // set an Args parameter named recipes to the list of recipes to be executed. + // For example, to execute phpapp::appsetup, set Args to {"recipes":["phpapp::appsetup"]}. + // install_dependencies: Install the stack's dependencies. update_custom_cookbooks: + // Update the stack's custom cookbooks. update_dependencies: Update the stack's // dependencies. The update_dependencies and install_dependencies commands // are supported only for Linux instances. You can run the commands successfully // on Windows instances, but they do nothing. For apps, the following commands // are available: // - // deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter + // deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter // named migrate. Set Args to {"migrate":["true"]} to migrate the database. - // The default setting is {"migrate":["false"]}. rollback Roll the app back + // The default setting is {"migrate":["false"]}. rollback Roll the app back // to the previous version. When you update an app, AWS OpsWorks stores the // previous version, up to a maximum of five versions. You can use this command - // to roll an app back as many as four versions. start: Start the app's web - // or application server. stop: Stop the app's web or application server. restart: - // Restart the app's web or application server. undeploy: Undeploy the app. + // to roll an app back as many as four versions. start: Start the app's web + // or application server. stop: Stop the app's web or application server. + // restart: Restart the app's web or application server. undeploy: Undeploy + // the app. Name *string `type:"string" required:"true" enum:"DeploymentCommandName"` + + metadataDeploymentCommand `json:"-" xml:"-"` +} + +type metadataDeploymentCommand struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4265,24 +4034,15 @@ func (s DeploymentCommand) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeploymentCommand) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeploymentCommand"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeregisterEcsClusterInput struct { - _ struct{} `type:"structure"` - // The cluster's ARN. EcsClusterArn *string `type:"string" required:"true"` + + metadataDeregisterEcsClusterInput `json:"-" xml:"-"` +} + +type metadataDeregisterEcsClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4295,21 +4055,12 @@ func (s DeregisterEcsClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterEcsClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterEcsClusterInput"} - if s.EcsClusterArn == nil { - invalidParams.Add(request.NewErrParamRequired("EcsClusterArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeregisterEcsClusterOutput struct { + metadataDeregisterEcsClusterOutput `json:"-" xml:"-"` } -type DeregisterEcsClusterOutput struct { - _ struct{} `type:"structure"` +type metadataDeregisterEcsClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4323,10 +4074,14 @@ func (s DeregisterEcsClusterOutput) GoString() string { } type DeregisterElasticIpInput struct { - _ struct{} `type:"structure"` - // The Elastic IP address. ElasticIp *string `type:"string" required:"true"` + + metadataDeregisterElasticIpInput `json:"-" xml:"-"` +} + +type metadataDeregisterElasticIpInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4339,21 +4094,12 @@ func (s DeregisterElasticIpInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterElasticIpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterElasticIpInput"} - if s.ElasticIp == nil { - invalidParams.Add(request.NewErrParamRequired("ElasticIp")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeregisterElasticIpOutput struct { + metadataDeregisterElasticIpOutput `json:"-" xml:"-"` } -type DeregisterElasticIpOutput struct { - _ struct{} `type:"structure"` +type metadataDeregisterElasticIpOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4367,10 +4113,14 @@ func (s DeregisterElasticIpOutput) GoString() string { } type DeregisterInstanceInput struct { - _ struct{} `type:"structure"` - // The instance ID. InstanceId *string `type:"string" required:"true"` + + metadataDeregisterInstanceInput `json:"-" xml:"-"` +} + +type metadataDeregisterInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4383,21 +4133,12 @@ func (s DeregisterInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterInstanceInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeregisterInstanceOutput struct { + metadataDeregisterInstanceOutput `json:"-" xml:"-"` } -type DeregisterInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataDeregisterInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4411,10 +4152,14 @@ func (s DeregisterInstanceOutput) GoString() string { } type DeregisterRdsDbInstanceInput struct { - _ struct{} `type:"structure"` - // The Amazon RDS instance's ARN. RdsDbInstanceArn *string `type:"string" required:"true"` + + metadataDeregisterRdsDbInstanceInput `json:"-" xml:"-"` +} + +type metadataDeregisterRdsDbInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4427,21 +4172,12 @@ func (s DeregisterRdsDbInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterRdsDbInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterRdsDbInstanceInput"} - if s.RdsDbInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("RdsDbInstanceArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeregisterRdsDbInstanceOutput struct { + metadataDeregisterRdsDbInstanceOutput `json:"-" xml:"-"` } -type DeregisterRdsDbInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataDeregisterRdsDbInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4455,12 +4191,16 @@ func (s DeregisterRdsDbInstanceOutput) GoString() string { } type DeregisterVolumeInput struct { - _ struct{} `type:"structure"` - // The AWS OpsWorks volume ID, which is the GUID that AWS OpsWorks assigned // to the instance when you registered the volume with the stack, not the Amazon // EC2 volume ID. VolumeId *string `type:"string" required:"true"` + + metadataDeregisterVolumeInput `json:"-" xml:"-"` +} + +type metadataDeregisterVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4473,21 +4213,12 @@ func (s DeregisterVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterVolumeInput"} - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeregisterVolumeOutput struct { + metadataDeregisterVolumeOutput `json:"-" xml:"-"` } -type DeregisterVolumeOutput struct { - _ struct{} `type:"structure"` +type metadataDeregisterVolumeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4501,13 +4232,17 @@ func (s DeregisterVolumeOutput) GoString() string { } type DescribeAgentVersionsInput struct { - _ struct{} `type:"structure"` - // The configuration manager. ConfigurationManager *StackConfigurationManager `type:"structure"` // The stack ID. StackId *string `type:"string"` + + metadataDescribeAgentVersionsInput `json:"-" xml:"-"` +} + +type metadataDescribeAgentVersionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4522,12 +4257,16 @@ func (s DescribeAgentVersionsInput) GoString() string { // Contains the response to a DescribeAgentVersions request. type DescribeAgentVersionsOutput struct { - _ struct{} `type:"structure"` - // The agent versions for the specified stack or configuration manager. Note // that this value is the complete version number, not the abbreviated number // used by the console. AgentVersions []*AgentVersion `type:"list"` + + metadataDescribeAgentVersionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeAgentVersionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4541,8 +4280,6 @@ func (s DescribeAgentVersionsOutput) GoString() string { } type DescribeAppsInput struct { - _ struct{} `type:"structure"` - // An array of app IDs for the apps to be described. If you use this parameter, // DescribeApps returns a description of the specified apps. Otherwise, it returns // a description of every app. @@ -4551,6 +4288,12 @@ type DescribeAppsInput struct { // The app stack ID. If you use this parameter, DescribeApps returns a description // of the apps in the specified stack. StackId *string `type:"string"` + + metadataDescribeAppsInput `json:"-" xml:"-"` +} + +type metadataDescribeAppsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4565,10 +4308,14 @@ func (s DescribeAppsInput) GoString() string { // Contains the response to a DescribeApps request. type DescribeAppsOutput struct { - _ struct{} `type:"structure"` - // An array of App objects that describe the specified apps. Apps []*App `type:"list"` + + metadataDescribeAppsOutput `json:"-" xml:"-"` +} + +type metadataDescribeAppsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4582,8 +4329,6 @@ func (s DescribeAppsOutput) GoString() string { } type DescribeCommandsInput struct { - _ struct{} `type:"structure"` - // An array of command IDs. If you include this parameter, DescribeCommands // returns a description of the specified commands. Otherwise, it returns a // description of every command. @@ -4596,6 +4341,12 @@ type DescribeCommandsInput struct { // The instance ID. If you include this parameter, DescribeCommands returns // a description of the commands associated with the specified instance. InstanceId *string `type:"string"` + + metadataDescribeCommandsInput `json:"-" xml:"-"` +} + +type metadataDescribeCommandsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4610,10 +4361,14 @@ func (s DescribeCommandsInput) GoString() string { // Contains the response to a DescribeCommands request. type DescribeCommandsOutput struct { - _ struct{} `type:"structure"` - // An array of Command objects that describe each of the specified commands. Commands []*Command `type:"list"` + + metadataDescribeCommandsOutput `json:"-" xml:"-"` +} + +type metadataDescribeCommandsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4627,8 +4382,6 @@ func (s DescribeCommandsOutput) GoString() string { } type DescribeDeploymentsInput struct { - _ struct{} `type:"structure"` - // The app ID. If you include this parameter, DescribeDeployments returns a // description of the commands associated with the specified app. AppId *string `type:"string"` @@ -4641,6 +4394,12 @@ type DescribeDeploymentsInput struct { // The stack ID. If you include this parameter, DescribeDeployments returns // a description of the commands associated with the specified stack. StackId *string `type:"string"` + + metadataDescribeDeploymentsInput `json:"-" xml:"-"` +} + +type metadataDescribeDeploymentsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4655,10 +4414,14 @@ func (s DescribeDeploymentsInput) GoString() string { // Contains the response to a DescribeDeployments request. type DescribeDeploymentsOutput struct { - _ struct{} `type:"structure"` - // An array of Deployment objects that describe the deployments. Deployments []*Deployment `type:"list"` + + metadataDescribeDeploymentsOutput `json:"-" xml:"-"` +} + +type metadataDescribeDeploymentsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4672,8 +4435,6 @@ func (s DescribeDeploymentsOutput) GoString() string { } type DescribeEcsClustersInput struct { - _ struct{} `type:"structure"` - // A list of ARNs, one for each cluster to be described. EcsClusterArns []*string `type:"list"` @@ -4694,6 +4455,12 @@ type DescribeEcsClustersInput struct { // A stack ID. DescribeEcsClusters returns a description of the cluster that // is registered with the stack. StackId *string `type:"string"` + + metadataDescribeEcsClustersInput `json:"-" xml:"-"` +} + +type metadataDescribeEcsClustersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4708,8 +4475,6 @@ func (s DescribeEcsClustersInput) GoString() string { // Contains the response to a DescribeEcsClusters request. type DescribeEcsClustersOutput struct { - _ struct{} `type:"structure"` - // A list of EcsCluster objects containing the cluster descriptions. EcsClusters []*EcsCluster `type:"list"` @@ -4718,6 +4483,12 @@ type DescribeEcsClustersOutput struct { // parameter to retrieve the next set of results. If the previous paginated // request returned all of the remaining results, this parameter is set to null. NextToken *string `type:"string"` + + metadataDescribeEcsClustersOutput `json:"-" xml:"-"` +} + +type metadataDescribeEcsClustersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4731,8 +4502,6 @@ func (s DescribeEcsClustersOutput) GoString() string { } type DescribeElasticIpsInput struct { - _ struct{} `type:"structure"` - // The instance ID. If you include this parameter, DescribeElasticIps returns // a description of the Elastic IP addresses associated with the specified instance. InstanceId *string `type:"string"` @@ -4745,6 +4514,12 @@ type DescribeElasticIpsInput struct { // A stack ID. If you include this parameter, DescribeElasticIps returns a description // of the Elastic IP addresses that are registered with the specified stack. StackId *string `type:"string"` + + metadataDescribeElasticIpsInput `json:"-" xml:"-"` +} + +type metadataDescribeElasticIpsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4759,10 +4534,14 @@ func (s DescribeElasticIpsInput) GoString() string { // Contains the response to a DescribeElasticIps request. type DescribeElasticIpsOutput struct { - _ struct{} `type:"structure"` - // An ElasticIps object that describes the specified Elastic IP addresses. ElasticIps []*ElasticIp `type:"list"` + + metadataDescribeElasticIpsOutput `json:"-" xml:"-"` +} + +type metadataDescribeElasticIpsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4776,14 +4555,18 @@ func (s DescribeElasticIpsOutput) GoString() string { } type DescribeElasticLoadBalancersInput struct { - _ struct{} `type:"structure"` - // A list of layer IDs. The action describes the Elastic Load Balancing instances // for the specified layers. LayerIds []*string `type:"list"` // A stack ID. The action describes the stack's Elastic Load Balancing instances. StackId *string `type:"string"` + + metadataDescribeElasticLoadBalancersInput `json:"-" xml:"-"` +} + +type metadataDescribeElasticLoadBalancersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4798,11 +4581,15 @@ func (s DescribeElasticLoadBalancersInput) GoString() string { // Contains the response to a DescribeElasticLoadBalancers request. type DescribeElasticLoadBalancersOutput struct { - _ struct{} `type:"structure"` - // A list of ElasticLoadBalancer objects that describe the specified Elastic // Load Balancing instances. ElasticLoadBalancers []*ElasticLoadBalancer `type:"list"` + + metadataDescribeElasticLoadBalancersOutput `json:"-" xml:"-"` +} + +type metadataDescribeElasticLoadBalancersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4816,8 +4603,6 @@ func (s DescribeElasticLoadBalancersOutput) GoString() string { } type DescribeInstancesInput struct { - _ struct{} `type:"structure"` - // An array of instance IDs to be described. If you use this parameter, DescribeInstances // returns a description of the specified instances. Otherwise, it returns a // description of every instance. @@ -4830,6 +4615,12 @@ type DescribeInstancesInput struct { // A stack ID. If you use this parameter, DescribeInstances returns descriptions // of the instances associated with the specified stack. StackId *string `type:"string"` + + metadataDescribeInstancesInput `json:"-" xml:"-"` +} + +type metadataDescribeInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4844,10 +4635,14 @@ func (s DescribeInstancesInput) GoString() string { // Contains the response to a DescribeInstances request. type DescribeInstancesOutput struct { - _ struct{} `type:"structure"` - // An array of Instance objects that describe the instances. Instances []*Instance `type:"list"` + + metadataDescribeInstancesOutput `json:"-" xml:"-"` +} + +type metadataDescribeInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4861,8 +4656,6 @@ func (s DescribeInstancesOutput) GoString() string { } type DescribeLayersInput struct { - _ struct{} `type:"structure"` - // An array of layer IDs that specify the layers to be described. If you omit // this parameter, DescribeLayers returns a description of every layer in the // specified stack. @@ -4870,6 +4663,12 @@ type DescribeLayersInput struct { // The stack ID. StackId *string `type:"string"` + + metadataDescribeLayersInput `json:"-" xml:"-"` +} + +type metadataDescribeLayersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4884,10 +4683,14 @@ func (s DescribeLayersInput) GoString() string { // Contains the response to a DescribeLayers request. type DescribeLayersOutput struct { - _ struct{} `type:"structure"` - // An array of Layer objects that describe the layers. Layers []*Layer `type:"list"` + + metadataDescribeLayersOutput `json:"-" xml:"-"` +} + +type metadataDescribeLayersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4901,10 +4704,14 @@ func (s DescribeLayersOutput) GoString() string { } type DescribeLoadBasedAutoScalingInput struct { - _ struct{} `type:"structure"` - // An array of layer IDs. LayerIds []*string `type:"list" required:"true"` + + metadataDescribeLoadBasedAutoScalingInput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBasedAutoScalingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4917,26 +4724,17 @@ func (s DescribeLoadBasedAutoScalingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeLoadBasedAutoScalingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBasedAutoScalingInput"} - if s.LayerIds == nil { - invalidParams.Add(request.NewErrParamRequired("LayerIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a DescribeLoadBasedAutoScaling request. type DescribeLoadBasedAutoScalingOutput struct { - _ struct{} `type:"structure"` - // An array of LoadBasedAutoScalingConfiguration objects that describe each // layer's configuration. LoadBasedAutoScalingConfigurations []*LoadBasedAutoScalingConfiguration `type:"list"` + + metadataDescribeLoadBasedAutoScalingOutput `json:"-" xml:"-"` +} + +type metadataDescribeLoadBasedAutoScalingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4950,7 +4748,11 @@ func (s DescribeLoadBasedAutoScalingOutput) GoString() string { } type DescribeMyUserProfileInput struct { - _ struct{} `type:"structure"` + metadataDescribeMyUserProfileInput `json:"-" xml:"-"` +} + +type metadataDescribeMyUserProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4965,10 +4767,14 @@ func (s DescribeMyUserProfileInput) GoString() string { // Contains the response to a DescribeMyUserProfile request. type DescribeMyUserProfileOutput struct { - _ struct{} `type:"structure"` - // A UserProfile object that describes the user's SSH information. UserProfile *SelfUserProfile `type:"structure"` + + metadataDescribeMyUserProfileOutput `json:"-" xml:"-"` +} + +type metadataDescribeMyUserProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4982,14 +4788,18 @@ func (s DescribeMyUserProfileOutput) GoString() string { } type DescribePermissionsInput struct { - _ struct{} `type:"structure"` - // The user's IAM ARN. For more information about IAM ARNs, see Using Identifiers // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html). IamUserArn *string `type:"string"` // The stack ID. StackId *string `type:"string"` + + metadataDescribePermissionsInput `json:"-" xml:"-"` +} + +type metadataDescribePermissionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5004,8 +4814,6 @@ func (s DescribePermissionsInput) GoString() string { // Contains the response to a DescribePermissions request. type DescribePermissionsOutput struct { - _ struct{} `type:"structure"` - // An array of Permission objects that describe the stack permissions. // // If the request object contains only a stack ID, the array contains a Permission @@ -5015,6 +4823,12 @@ type DescribePermissionsOutput struct { // an IAM ARN, the array contains a single Permission object with permissions // for the specified stack and IAM ARN. Permissions []*Permission `type:"list"` + + metadataDescribePermissionsOutput `json:"-" xml:"-"` +} + +type metadataDescribePermissionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5028,8 +4842,6 @@ func (s DescribePermissionsOutput) GoString() string { } type DescribeRaidArraysInput struct { - _ struct{} `type:"structure"` - // The instance ID. If you use this parameter, DescribeRaidArrays returns descriptions // of the RAID arrays associated with the specified instance. InstanceId *string `type:"string"` @@ -5041,6 +4853,12 @@ type DescribeRaidArraysInput struct { // The stack ID. StackId *string `type:"string"` + + metadataDescribeRaidArraysInput `json:"-" xml:"-"` +} + +type metadataDescribeRaidArraysInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5055,10 +4873,14 @@ func (s DescribeRaidArraysInput) GoString() string { // Contains the response to a DescribeRaidArrays request. type DescribeRaidArraysOutput struct { - _ struct{} `type:"structure"` - // A RaidArrays object that describes the specified RAID arrays. RaidArrays []*RaidArray `type:"list"` + + metadataDescribeRaidArraysOutput `json:"-" xml:"-"` +} + +type metadataDescribeRaidArraysOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5072,14 +4894,18 @@ func (s DescribeRaidArraysOutput) GoString() string { } type DescribeRdsDbInstancesInput struct { - _ struct{} `type:"structure"` - // An array containing the ARNs of the instances to be described. RdsDbInstanceArns []*string `type:"list"` // The stack ID that the instances are registered with. The operation returns // descriptions of all registered Amazon RDS instances. StackId *string `type:"string" required:"true"` + + metadataDescribeRdsDbInstancesInput `json:"-" xml:"-"` +} + +type metadataDescribeRdsDbInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5092,25 +4918,16 @@ func (s DescribeRdsDbInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeRdsDbInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeRdsDbInstancesInput"} - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a DescribeRdsDbInstances request. type DescribeRdsDbInstancesOutput struct { - _ struct{} `type:"structure"` - // An a array of RdsDbInstance objects that describe the instances. RdsDbInstances []*RdsDbInstance `type:"list"` + + metadataDescribeRdsDbInstancesOutput `json:"-" xml:"-"` +} + +type metadataDescribeRdsDbInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5124,8 +4941,6 @@ func (s DescribeRdsDbInstancesOutput) GoString() string { } type DescribeServiceErrorsInput struct { - _ struct{} `type:"structure"` - // The instance ID. If you use this parameter, DescribeServiceErrors returns // descriptions of the errors associated with the specified instance. InstanceId *string `type:"string"` @@ -5138,6 +4953,12 @@ type DescribeServiceErrorsInput struct { // The stack ID. If you use this parameter, DescribeServiceErrors returns descriptions // of the errors associated with the specified stack. StackId *string `type:"string"` + + metadataDescribeServiceErrorsInput `json:"-" xml:"-"` +} + +type metadataDescribeServiceErrorsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5152,10 +4973,14 @@ func (s DescribeServiceErrorsInput) GoString() string { // Contains the response to a DescribeServiceErrors request. type DescribeServiceErrorsOutput struct { - _ struct{} `type:"structure"` - // An array of ServiceError objects that describe the specified service errors. ServiceErrors []*ServiceError `type:"list"` + + metadataDescribeServiceErrorsOutput `json:"-" xml:"-"` +} + +type metadataDescribeServiceErrorsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5169,10 +4994,14 @@ func (s DescribeServiceErrorsOutput) GoString() string { } type DescribeStackProvisioningParametersInput struct { - _ struct{} `type:"structure"` - // The stack ID StackId *string `type:"string" required:"true"` + + metadataDescribeStackProvisioningParametersInput `json:"-" xml:"-"` +} + +type metadataDescribeStackProvisioningParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5185,28 +5014,19 @@ func (s DescribeStackProvisioningParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStackProvisioningParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStackProvisioningParametersInput"} - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a DescribeStackProvisioningParameters request. type DescribeStackProvisioningParametersOutput struct { - _ struct{} `type:"structure"` - // The AWS OpsWorks agent installer's URL. AgentInstallerUrl *string `type:"string"` // An embedded object that contains the provisioning parameters. Parameters map[string]*string `type:"map"` + + metadataDescribeStackProvisioningParametersOutput `json:"-" xml:"-"` +} + +type metadataDescribeStackProvisioningParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5220,10 +5040,14 @@ func (s DescribeStackProvisioningParametersOutput) GoString() string { } type DescribeStackSummaryInput struct { - _ struct{} `type:"structure"` - // The stack ID. StackId *string `type:"string" required:"true"` + + metadataDescribeStackSummaryInput `json:"-" xml:"-"` +} + +type metadataDescribeStackSummaryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5236,25 +5060,16 @@ func (s DescribeStackSummaryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStackSummaryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStackSummaryInput"} - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a DescribeStackSummary request. type DescribeStackSummaryOutput struct { - _ struct{} `type:"structure"` - // A StackSummary object that contains the results. StackSummary *StackSummary `type:"structure"` + + metadataDescribeStackSummaryOutput `json:"-" xml:"-"` +} + +type metadataDescribeStackSummaryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5268,11 +5083,15 @@ func (s DescribeStackSummaryOutput) GoString() string { } type DescribeStacksInput struct { - _ struct{} `type:"structure"` - // An array of stack IDs that specify the stacks to be described. If you omit // this parameter, DescribeStacks returns a description of every stack. StackIds []*string `type:"list"` + + metadataDescribeStacksInput `json:"-" xml:"-"` +} + +type metadataDescribeStacksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5287,10 +5106,14 @@ func (s DescribeStacksInput) GoString() string { // Contains the response to a DescribeStacks request. type DescribeStacksOutput struct { - _ struct{} `type:"structure"` - // An array of Stack objects that describe the stacks. Stacks []*Stack `type:"list"` + + metadataDescribeStacksOutput `json:"-" xml:"-"` +} + +type metadataDescribeStacksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5304,10 +5127,14 @@ func (s DescribeStacksOutput) GoString() string { } type DescribeTimeBasedAutoScalingInput struct { - _ struct{} `type:"structure"` - // An array of instance IDs. InstanceIds []*string `type:"list" required:"true"` + + metadataDescribeTimeBasedAutoScalingInput `json:"-" xml:"-"` +} + +type metadataDescribeTimeBasedAutoScalingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5320,26 +5147,17 @@ func (s DescribeTimeBasedAutoScalingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTimeBasedAutoScalingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTimeBasedAutoScalingInput"} - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a DescribeTimeBasedAutoScaling request. type DescribeTimeBasedAutoScalingOutput struct { - _ struct{} `type:"structure"` - // An array of TimeBasedAutoScalingConfiguration objects that describe the configuration // for the specified instances. TimeBasedAutoScalingConfigurations []*TimeBasedAutoScalingConfiguration `type:"list"` + + metadataDescribeTimeBasedAutoScalingOutput `json:"-" xml:"-"` +} + +type metadataDescribeTimeBasedAutoScalingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5353,10 +5171,14 @@ func (s DescribeTimeBasedAutoScalingOutput) GoString() string { } type DescribeUserProfilesInput struct { - _ struct{} `type:"structure"` - // An array of IAM user ARNs that identify the users to be described. IamUserArns []*string `type:"list"` + + metadataDescribeUserProfilesInput `json:"-" xml:"-"` +} + +type metadataDescribeUserProfilesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5371,10 +5193,14 @@ func (s DescribeUserProfilesInput) GoString() string { // Contains the response to a DescribeUserProfiles request. type DescribeUserProfilesOutput struct { - _ struct{} `type:"structure"` - // A Users object that describes the specified users. UserProfiles []*UserProfile `type:"list"` + + metadataDescribeUserProfilesOutput `json:"-" xml:"-"` +} + +type metadataDescribeUserProfilesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5388,8 +5214,6 @@ func (s DescribeUserProfilesOutput) GoString() string { } type DescribeVolumesInput struct { - _ struct{} `type:"structure"` - // The instance ID. If you use this parameter, DescribeVolumes returns descriptions // of the volumes associated with the specified instance. InstanceId *string `type:"string"` @@ -5405,6 +5229,12 @@ type DescribeVolumesInput struct { // descriptions of the specified volumes. Otherwise, it returns a description // of every volume. VolumeIds []*string `type:"list"` + + metadataDescribeVolumesInput `json:"-" xml:"-"` +} + +type metadataDescribeVolumesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5419,10 +5249,14 @@ func (s DescribeVolumesInput) GoString() string { // Contains the response to a DescribeVolumes request. type DescribeVolumesOutput struct { - _ struct{} `type:"structure"` - // An array of volume IDs. Volumes []*Volume `type:"list"` + + metadataDescribeVolumesOutput `json:"-" xml:"-"` +} + +type metadataDescribeVolumesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5436,14 +5270,18 @@ func (s DescribeVolumesOutput) GoString() string { } type DetachElasticLoadBalancerInput struct { - _ struct{} `type:"structure"` - // The Elastic Load Balancing instance's name. ElasticLoadBalancerName *string `type:"string" required:"true"` // The ID of the layer that the Elastic Load Balancing instance is attached // to. LayerId *string `type:"string" required:"true"` + + metadataDetachElasticLoadBalancerInput `json:"-" xml:"-"` +} + +type metadataDetachElasticLoadBalancerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5456,24 +5294,12 @@ func (s DetachElasticLoadBalancerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachElasticLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachElasticLoadBalancerInput"} - if s.ElasticLoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("ElasticLoadBalancerName")) - } - if s.LayerId == nil { - invalidParams.Add(request.NewErrParamRequired("LayerId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DetachElasticLoadBalancerOutput struct { + metadataDetachElasticLoadBalancerOutput `json:"-" xml:"-"` } -type DetachElasticLoadBalancerOutput struct { - _ struct{} `type:"structure"` +type metadataDetachElasticLoadBalancerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5487,10 +5313,14 @@ func (s DetachElasticLoadBalancerOutput) GoString() string { } type DisassociateElasticIpInput struct { - _ struct{} `type:"structure"` - // The Elastic IP address. ElasticIp *string `type:"string" required:"true"` + + metadataDisassociateElasticIpInput `json:"-" xml:"-"` +} + +type metadataDisassociateElasticIpInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5503,21 +5333,12 @@ func (s DisassociateElasticIpInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateElasticIpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateElasticIpInput"} - if s.ElasticIp == nil { - invalidParams.Add(request.NewErrParamRequired("ElasticIp")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DisassociateElasticIpOutput struct { + metadataDisassociateElasticIpOutput `json:"-" xml:"-"` } -type DisassociateElasticIpOutput struct { - _ struct{} `type:"structure"` +type metadataDisassociateElasticIpOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5534,8 +5355,6 @@ func (s DisassociateElasticIpOutput) GoString() string { // EC2 EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html) // data type. type EbsBlockDevice struct { - _ struct{} `type:"structure"` - // Whether the volume is deleted on instance termination. DeleteOnTermination *bool `type:"boolean"` @@ -5552,6 +5371,12 @@ type EbsBlockDevice struct { // The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned // IOPS (SSD) volumes, and standard for Magnetic volumes. VolumeType *string `type:"string" enum:"VolumeType"` + + metadataEbsBlockDevice `json:"-" xml:"-"` +} + +type metadataEbsBlockDevice struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5566,8 +5391,6 @@ func (s EbsBlockDevice) GoString() string { // Describes a registered Amazon ECS cluster. type EcsCluster struct { - _ struct{} `type:"structure"` - // The cluster's ARN. EcsClusterArn *string `type:"string"` @@ -5579,6 +5402,12 @@ type EcsCluster struct { // The stack ID. StackId *string `type:"string"` + + metadataEcsCluster `json:"-" xml:"-"` +} + +type metadataEcsCluster struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5593,8 +5422,6 @@ func (s EcsCluster) GoString() string { // Describes an Elastic IP address. type ElasticIp struct { - _ struct{} `type:"structure"` - // The domain. Domain *string `type:"string"` @@ -5609,6 +5436,12 @@ type ElasticIp struct { // The AWS region. For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html). Region *string `type:"string"` + + metadataElasticIp `json:"-" xml:"-"` +} + +type metadataElasticIp struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5623,8 +5456,6 @@ func (s ElasticIp) GoString() string { // Describes an Elastic Load Balancing instance. type ElasticLoadBalancer struct { - _ struct{} `type:"structure"` - // A list of Availability Zones. AvailabilityZones []*string `type:"list"` @@ -5652,6 +5483,12 @@ type ElasticLoadBalancer struct { // The VPC ID. VpcId *string `type:"string"` + + metadataElasticLoadBalancer `json:"-" xml:"-"` +} + +type metadataElasticLoadBalancer struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5666,8 +5503,6 @@ func (s ElasticLoadBalancer) GoString() string { // Represents an app's environment variable. type EnvironmentVariable struct { - _ struct{} `type:"structure"` - // (Required) The environment variable's name, which can consist of up to 64 // characters and must be specified. The name can contain upper- and lowercase // letters, numbers, and underscores (_), but it must start with a letter or @@ -5684,6 +5519,12 @@ type EnvironmentVariable struct { // you specify a value, it can contain up to 256 characters, which must all // be printable. Value *string `type:"string" required:"true"` + + metadataEnvironmentVariable `json:"-" xml:"-"` +} + +type metadataEnvironmentVariable struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5696,27 +5537,15 @@ func (s EnvironmentVariable) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnvironmentVariable) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnvironmentVariable"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetHostnameSuggestionInput struct { - _ struct{} `type:"structure"` - // The layer ID. LayerId *string `type:"string" required:"true"` + + metadataGetHostnameSuggestionInput `json:"-" xml:"-"` +} + +type metadataGetHostnameSuggestionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5729,28 +5558,19 @@ func (s GetHostnameSuggestionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetHostnameSuggestionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetHostnameSuggestionInput"} - if s.LayerId == nil { - invalidParams.Add(request.NewErrParamRequired("LayerId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a GetHostnameSuggestion request. type GetHostnameSuggestionOutput struct { - _ struct{} `type:"structure"` - // The generated host name. Hostname *string `type:"string"` // The layer ID. LayerId *string `type:"string"` + + metadataGetHostnameSuggestionOutput `json:"-" xml:"-"` +} + +type metadataGetHostnameSuggestionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5764,8 +5584,6 @@ func (s GetHostnameSuggestionOutput) GoString() string { } type GrantAccessInput struct { - _ struct{} `type:"structure"` - // The instance's AWS OpsWorks ID. InstanceId *string `type:"string" required:"true"` @@ -5773,7 +5591,13 @@ type GrantAccessInput struct { // at the end of this period, the user will no longer be able to use the credentials // to log in. If the user is logged in at the time, he or she automatically // will be logged out. - ValidForInMinutes *int64 `min:"60" type:"integer"` + ValidForInMinutes *int64 `type:"integer"` + + metadataGrantAccessInput `json:"-" xml:"-"` +} + +type metadataGrantAccessInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5786,29 +5610,17 @@ func (s GrantAccessInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GrantAccessInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GrantAccessInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.ValidForInMinutes != nil && *s.ValidForInMinutes < 60 { - invalidParams.Add(request.NewErrParamMinValue("ValidForInMinutes", 60)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a GrantAccess request. type GrantAccessOutput struct { - _ struct{} `type:"structure"` - // A TemporaryCredential object that contains the data needed to log in to the // instance by RDP clients, such as the Microsoft Remote Desktop Connection. TemporaryCredential *TemporaryCredential `type:"structure"` + + metadataGrantAccessOutput `json:"-" xml:"-"` +} + +type metadataGrantAccessOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5823,8 +5635,6 @@ func (s GrantAccessOutput) GoString() string { // Describes an instance. type Instance struct { - _ struct{} `type:"structure"` - // The agent version. This parameter is set to INHERIT if the instance inherits // the default stack setting or to a a version number for a fixed agent version. AgentVersion *string `type:"string"` @@ -5956,11 +5766,14 @@ type Instance struct { // The instance's subnet ID; applicable only if the stack is running in a VPC. SubnetId *string `type:"string"` - // The instance's tenancy option, such as dedicated or host. - Tenancy *string `type:"string"` - // The instance's virtualization type: paravirtual or hvm. VirtualizationType *string `type:"string" enum:"VirtualizationType"` + + metadataInstance `json:"-" xml:"-"` +} + +type metadataInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5976,13 +5789,17 @@ func (s Instance) GoString() string { // Contains a description of an Amazon EC2 instance from the Amazon EC2 metadata // service. For more information, see Instance Metadata and User Data (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/Index.html). type InstanceIdentity struct { - _ struct{} `type:"structure"` - // A JSON document that contains the metadata. Document *string `type:"string"` // A signature that can be used to verify the document's accuracy and authenticity. Signature *string `type:"string"` + + metadataInstanceIdentity `json:"-" xml:"-"` +} + +type metadataInstanceIdentity struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5997,8 +5814,6 @@ func (s InstanceIdentity) GoString() string { // Describes how many instances a stack has for each status. type InstancesCount struct { - _ struct{} `type:"structure"` - // The number of instances in the Assigning state. Assigning *int64 `type:"integer"` @@ -6055,6 +5870,12 @@ type InstancesCount struct { // The number of instances in the Unassigning state. Unassigning *int64 `type:"integer"` + + metadataInstancesCount `json:"-" xml:"-"` +} + +type metadataInstancesCount struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6069,8 +5890,6 @@ func (s InstancesCount) GoString() string { // Describes a layer. type Layer struct { - _ struct{} `type:"structure"` - // The layer attributes. // // For the HaproxyStatsPassword, MysqlRootPassword, and GangliaPassword attributes, @@ -6161,6 +5980,12 @@ type Layer struct { // A VolumeConfigurations object that describes the layer's Amazon EBS volumes. VolumeConfigurations []*VolumeConfiguration `type:"list"` + + metadataLayer `json:"-" xml:"-"` +} + +type metadataLayer struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6175,10 +6000,14 @@ func (s Layer) GoString() string { // Specifies the lifecycle event configuration type LifecycleEventConfiguration struct { - _ struct{} `type:"structure"` - // A ShutdownEventConfiguration object that specifies the Shutdown event configuration. Shutdown *ShutdownEventConfiguration `type:"structure"` + + metadataLifecycleEventConfiguration `json:"-" xml:"-"` +} + +type metadataLifecycleEventConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6193,8 +6022,6 @@ func (s LifecycleEventConfiguration) GoString() string { // Describes a layer's load-based auto scaling configuration. type LoadBasedAutoScalingConfiguration struct { - _ struct{} `type:"structure"` - // An AutoScalingThresholds object that describes the downscaling configuration, // which defines how and when AWS OpsWorks reduces the number of instances. DownScaling *AutoScalingThresholds `type:"structure"` @@ -6208,6 +6035,12 @@ type LoadBasedAutoScalingConfiguration struct { // An AutoScalingThresholds object that describes the upscaling configuration, // which defines how and when AWS OpsWorks increases the number of instances. UpScaling *AutoScalingThresholds `type:"structure"` + + metadataLoadBasedAutoScalingConfiguration `json:"-" xml:"-"` +} + +type metadataLoadBasedAutoScalingConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6222,8 +6055,6 @@ func (s LoadBasedAutoScalingConfiguration) GoString() string { // Describes stack or user permissions. type Permission struct { - _ struct{} `type:"structure"` - // Whether the user can use SSH. AllowSsh *bool `type:"boolean"` @@ -6242,6 +6073,12 @@ type Permission struct { // A stack ID. StackId *string `type:"string"` + + metadataPermission `json:"-" xml:"-"` +} + +type metadataPermission struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6256,8 +6093,6 @@ func (s Permission) GoString() string { // Describes an instance's RAID array. type RaidArray struct { - _ struct{} `type:"structure"` - // The array's Availability Zone. For more information, see Regions and Endpoints // (http://docs.aws.amazon.com/general/latest/gr/rande.html). AvailabilityZone *string `type:"string"` @@ -6297,6 +6132,12 @@ type RaidArray struct { // The volume type, standard or PIOPS. VolumeType *string `type:"string"` + + metadataRaidArray `json:"-" xml:"-"` +} + +type metadataRaidArray struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6311,8 +6152,6 @@ func (s RaidArray) GoString() string { // Describes an Amazon RDS instance. type RdsDbInstance struct { - _ struct{} `type:"structure"` - // The instance's address. Address *string `type:"string"` @@ -6341,6 +6180,12 @@ type RdsDbInstance struct { // The ID of the stack that the instance is registered with. StackId *string `type:"string"` + + metadataRdsDbInstance `json:"-" xml:"-"` +} + +type metadataRdsDbInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6354,10 +6199,14 @@ func (s RdsDbInstance) GoString() string { } type RebootInstanceInput struct { - _ struct{} `type:"structure"` - // The instance ID. InstanceId *string `type:"string" required:"true"` + + metadataRebootInstanceInput `json:"-" xml:"-"` +} + +type metadataRebootInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6370,21 +6219,12 @@ func (s RebootInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RebootInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RebootInstanceInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RebootInstanceOutput struct { + metadataRebootInstanceOutput `json:"-" xml:"-"` } -type RebootInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataRebootInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6409,8 +6249,6 @@ func (s RebootInstanceOutput) GoString() string { // without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb // recipe in the repository's phpapp2 folder. type Recipes struct { - _ struct{} `type:"structure"` - // An array of custom recipe names to be run following a configure event. Configure []*string `type:"list"` @@ -6425,6 +6263,12 @@ type Recipes struct { // An array of custom recipe names to be run following a undeploy event. Undeploy []*string `type:"list"` + + metadataRecipes `json:"-" xml:"-"` +} + +type metadataRecipes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6438,13 +6282,17 @@ func (s Recipes) GoString() string { } type RegisterEcsClusterInput struct { - _ struct{} `type:"structure"` - // The cluster's ARN. EcsClusterArn *string `type:"string" required:"true"` // The stack ID. StackId *string `type:"string" required:"true"` + + metadataRegisterEcsClusterInput `json:"-" xml:"-"` +} + +type metadataRegisterEcsClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6457,28 +6305,16 @@ func (s RegisterEcsClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterEcsClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterEcsClusterInput"} - if s.EcsClusterArn == nil { - invalidParams.Add(request.NewErrParamRequired("EcsClusterArn")) - } - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a RegisterEcsCluster request. type RegisterEcsClusterOutput struct { - _ struct{} `type:"structure"` - // The cluster's ARN. EcsClusterArn *string `type:"string"` + + metadataRegisterEcsClusterOutput `json:"-" xml:"-"` +} + +type metadataRegisterEcsClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6492,13 +6328,17 @@ func (s RegisterEcsClusterOutput) GoString() string { } type RegisterElasticIpInput struct { - _ struct{} `type:"structure"` - // The Elastic IP address. ElasticIp *string `type:"string" required:"true"` // The stack ID. StackId *string `type:"string" required:"true"` + + metadataRegisterElasticIpInput `json:"-" xml:"-"` +} + +type metadataRegisterElasticIpInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6511,28 +6351,16 @@ func (s RegisterElasticIpInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterElasticIpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterElasticIpInput"} - if s.ElasticIp == nil { - invalidParams.Add(request.NewErrParamRequired("ElasticIp")) - } - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a RegisterElasticIp request. type RegisterElasticIpOutput struct { - _ struct{} `type:"structure"` - // The Elastic IP address. ElasticIp *string `type:"string"` + + metadataRegisterElasticIpOutput `json:"-" xml:"-"` +} + +type metadataRegisterElasticIpOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6546,8 +6374,6 @@ func (s RegisterElasticIpOutput) GoString() string { } type RegisterInstanceInput struct { - _ struct{} `type:"structure"` - // The instance's hostname. Hostname *string `type:"string"` @@ -6569,6 +6395,12 @@ type RegisterInstanceInput struct { // The ID of the stack that the instance is to be registered with. StackId *string `type:"string" required:"true"` + + metadataRegisterInstanceInput `json:"-" xml:"-"` +} + +type metadataRegisterInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6581,25 +6413,16 @@ func (s RegisterInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterInstanceInput"} - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a RegisterInstanceResult request. type RegisterInstanceOutput struct { - _ struct{} `type:"structure"` - // The registered instance's AWS OpsWorks ID. InstanceId *string `type:"string"` + + metadataRegisterInstanceOutput `json:"-" xml:"-"` +} + +type metadataRegisterInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6613,8 +6436,6 @@ func (s RegisterInstanceOutput) GoString() string { } type RegisterRdsDbInstanceInput struct { - _ struct{} `type:"structure"` - // The database password. DbPassword *string `type:"string" required:"true"` @@ -6626,6 +6447,12 @@ type RegisterRdsDbInstanceInput struct { // The stack ID. StackId *string `type:"string" required:"true"` + + metadataRegisterRdsDbInstanceInput `json:"-" xml:"-"` +} + +type metadataRegisterRdsDbInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6634,34 +6461,16 @@ func (s RegisterRdsDbInstanceInput) String() string { } // GoString returns the string representation -func (s RegisterRdsDbInstanceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterRdsDbInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterRdsDbInstanceInput"} - if s.DbPassword == nil { - invalidParams.Add(request.NewErrParamRequired("DbPassword")) - } - if s.DbUser == nil { - invalidParams.Add(request.NewErrParamRequired("DbUser")) - } - if s.RdsDbInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("RdsDbInstanceArn")) - } - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +func (s RegisterRdsDbInstanceInput) GoString() string { + return s.String() } type RegisterRdsDbInstanceOutput struct { - _ struct{} `type:"structure"` + metadataRegisterRdsDbInstanceOutput `json:"-" xml:"-"` +} + +type metadataRegisterRdsDbInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6675,13 +6484,17 @@ func (s RegisterRdsDbInstanceOutput) GoString() string { } type RegisterVolumeInput struct { - _ struct{} `type:"structure"` - // The Amazon EBS volume ID. Ec2VolumeId *string `type:"string"` // The stack ID. StackId *string `type:"string" required:"true"` + + metadataRegisterVolumeInput `json:"-" xml:"-"` +} + +type metadataRegisterVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6694,25 +6507,16 @@ func (s RegisterVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterVolumeInput"} - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a RegisterVolume request. type RegisterVolumeOutput struct { - _ struct{} `type:"structure"` - // The volume ID. VolumeId *string `type:"string"` + + metadataRegisterVolumeOutput `json:"-" xml:"-"` +} + +type metadataRegisterVolumeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6727,8 +6531,6 @@ func (s RegisterVolumeOutput) GoString() string { // A registered instance's reported operating system. type ReportedOs struct { - _ struct{} `type:"structure"` - // The operating system family. Family *string `type:"string"` @@ -6737,6 +6539,12 @@ type ReportedOs struct { // The operating system version. Version *string `type:"string"` + + metadataReportedOs `json:"-" xml:"-"` +} + +type metadataReportedOs struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6751,8 +6559,6 @@ func (s ReportedOs) GoString() string { // Describes a user's SSH information. type SelfUserProfile struct { - _ struct{} `type:"structure"` - // The user's IAM ARN. IamUserArn *string `type:"string"` @@ -6764,6 +6570,12 @@ type SelfUserProfile struct { // The user's SSH user name. SshUsername *string `type:"string"` + + metadataSelfUserProfile `json:"-" xml:"-"` +} + +type metadataSelfUserProfile struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6778,8 +6590,6 @@ func (s SelfUserProfile) GoString() string { // Describes an AWS OpsWorks service error. type ServiceError struct { - _ struct{} `type:"structure"` - // When the error occurred. CreatedAt *string `type:"string"` @@ -6797,6 +6607,12 @@ type ServiceError struct { // The error type. Type *string `type:"string"` + + metadataServiceError `json:"-" xml:"-"` +} + +type metadataServiceError struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6810,8 +6626,6 @@ func (s ServiceError) GoString() string { } type SetLoadBasedAutoScalingInput struct { - _ struct{} `type:"structure"` - // An AutoScalingThresholds object with the downscaling threshold configuration. // If the load falls below these thresholds for a specified amount of time, // AWS OpsWorks stops a specified number of instances. @@ -6827,6 +6641,12 @@ type SetLoadBasedAutoScalingInput struct { // If the load exceeds these thresholds for a specified amount of time, AWS // OpsWorks starts a specified number of instances. UpScaling *AutoScalingThresholds `type:"structure"` + + metadataSetLoadBasedAutoScalingInput `json:"-" xml:"-"` +} + +type metadataSetLoadBasedAutoScalingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6839,31 +6659,12 @@ func (s SetLoadBasedAutoScalingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetLoadBasedAutoScalingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetLoadBasedAutoScalingInput"} - if s.LayerId == nil { - invalidParams.Add(request.NewErrParamRequired("LayerId")) - } - if s.DownScaling != nil { - if err := s.DownScaling.Validate(); err != nil { - invalidParams.AddNested("DownScaling", err.(request.ErrInvalidParams)) - } - } - if s.UpScaling != nil { - if err := s.UpScaling.Validate(); err != nil { - invalidParams.AddNested("UpScaling", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetLoadBasedAutoScalingOutput struct { + metadataSetLoadBasedAutoScalingOutput `json:"-" xml:"-"` } -type SetLoadBasedAutoScalingOutput struct { - _ struct{} `type:"structure"` +type metadataSetLoadBasedAutoScalingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6877,8 +6678,6 @@ func (s SetLoadBasedAutoScalingOutput) GoString() string { } type SetPermissionInput struct { - _ struct{} `type:"structure"` - // The user is allowed to use SSH to communicate with the instance. AllowSsh *bool `type:"boolean"` @@ -6897,6 +6696,12 @@ type SetPermissionInput struct { // The stack ID. StackId *string `type:"string" required:"true"` + + metadataSetPermissionInput `json:"-" xml:"-"` +} + +type metadataSetPermissionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6909,24 +6714,12 @@ func (s SetPermissionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetPermissionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetPermissionInput"} - if s.IamUserArn == nil { - invalidParams.Add(request.NewErrParamRequired("IamUserArn")) - } - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetPermissionOutput struct { + metadataSetPermissionOutput `json:"-" xml:"-"` } -type SetPermissionOutput struct { - _ struct{} `type:"structure"` +type metadataSetPermissionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6940,13 +6733,17 @@ func (s SetPermissionOutput) GoString() string { } type SetTimeBasedAutoScalingInput struct { - _ struct{} `type:"structure"` - // An AutoScalingSchedule with the instance schedule. AutoScalingSchedule *WeeklyAutoScalingSchedule `type:"structure"` // The instance ID. InstanceId *string `type:"string" required:"true"` + + metadataSetTimeBasedAutoScalingInput `json:"-" xml:"-"` +} + +type metadataSetTimeBasedAutoScalingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6959,21 +6756,12 @@ func (s SetTimeBasedAutoScalingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetTimeBasedAutoScalingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetTimeBasedAutoScalingInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetTimeBasedAutoScalingOutput struct { + metadataSetTimeBasedAutoScalingOutput `json:"-" xml:"-"` } -type SetTimeBasedAutoScalingOutput struct { - _ struct{} `type:"structure"` +type metadataSetTimeBasedAutoScalingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6988,8 +6776,6 @@ func (s SetTimeBasedAutoScalingOutput) GoString() string { // The Shutdown event configuration. type ShutdownEventConfiguration struct { - _ struct{} `type:"structure"` - // Whether to enable Elastic Load Balancing connection draining. For more information, // see Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#conn-drain) DelayUntilElbConnectionsDrained *bool `type:"boolean"` @@ -6997,6 +6783,12 @@ type ShutdownEventConfiguration struct { // The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown // event before shutting down an instance. ExecutionTimeout *int64 `type:"integer"` + + metadataShutdownEventConfiguration `json:"-" xml:"-"` +} + +type metadataShutdownEventConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7013,8 +6805,6 @@ func (s ShutdownEventConfiguration) GoString() string { // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html) // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html). type Source struct { - _ struct{} `type:"structure"` - // When included in a request, the parameter depends on the repository type. // // For Amazon S3 bundles, set Password to the appropriate IAM secret access @@ -7049,6 +6839,12 @@ type Source struct { // For HTTP bundles, Git repositories, and Subversion repositories, set Username // to the user name. Username *string `type:"string"` + + metadataSource `json:"-" xml:"-"` +} + +type metadataSource struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7063,8 +6859,6 @@ func (s Source) GoString() string { // Describes an app's SSL configuration. type SslConfiguration struct { - _ struct{} `type:"structure"` - // The contents of the certificate's domain.crt file. Certificate *string `type:"string" required:"true"` @@ -7074,6 +6868,12 @@ type SslConfiguration struct { // The private key; the contents of the certificate's domain.kex file. PrivateKey *string `type:"string" required:"true"` + + metadataSslConfiguration `json:"-" xml:"-"` +} + +type metadataSslConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7086,26 +6886,8 @@ func (s SslConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SslConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SslConfiguration"} - if s.Certificate == nil { - invalidParams.Add(request.NewErrParamRequired("Certificate")) - } - if s.PrivateKey == nil { - invalidParams.Add(request.NewErrParamRequired("PrivateKey")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a stack. type Stack struct { - _ struct{} `type:"structure"` - // The agent version. This parameter is set to LATEST for auto-update. or a // version number for a fixed agent version. AgentVersion *string `type:"string"` @@ -7192,6 +6974,12 @@ type Stack struct { // The VPC ID; applicable only if the stack is running in a VPC. VpcId *string `type:"string"` + + metadataStack `json:"-" xml:"-"` +} + +type metadataStack struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7206,15 +6994,18 @@ func (s Stack) GoString() string { // Describes the configuration manager. type StackConfigurationManager struct { - _ struct{} `type:"structure"` - // The name. This parameter must be set to "Chef". Name *string `type:"string"` - // The Chef version. This parameter must be set to 12, 11.10, or 11.4 for Linux - // stacks, and to 12.2 for Windows stacks. The default value for Linux stacks - // is 11.4. + // The Chef version. This parameter must be set to 0.9, 11.4, or 11.10. The + // default value is 11.4. Version *string `type:"string"` + + metadataStackConfigurationManager `json:"-" xml:"-"` +} + +type metadataStackConfigurationManager struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7229,8 +7020,6 @@ func (s StackConfigurationManager) GoString() string { // Summarizes the number of layers, instances, and apps in a stack. type StackSummary struct { - _ struct{} `type:"structure"` - // The number of apps. AppsCount *int64 `type:"integer"` @@ -7248,6 +7037,12 @@ type StackSummary struct { // The stack ID. StackId *string `type:"string"` + + metadataStackSummary `json:"-" xml:"-"` +} + +type metadataStackSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7261,10 +7056,14 @@ func (s StackSummary) GoString() string { } type StartInstanceInput struct { - _ struct{} `type:"structure"` - // The instance ID. InstanceId *string `type:"string" required:"true"` + + metadataStartInstanceInput `json:"-" xml:"-"` +} + +type metadataStartInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7277,21 +7076,12 @@ func (s StartInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartInstanceInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type StartInstanceOutput struct { + metadataStartInstanceOutput `json:"-" xml:"-"` } -type StartInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataStartInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7305,10 +7095,14 @@ func (s StartInstanceOutput) GoString() string { } type StartStackInput struct { - _ struct{} `type:"structure"` - // The stack ID. StackId *string `type:"string" required:"true"` + + metadataStartStackInput `json:"-" xml:"-"` +} + +type metadataStartStackInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7321,21 +7115,12 @@ func (s StartStackInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartStackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartStackInput"} - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type StartStackOutput struct { + metadataStartStackOutput `json:"-" xml:"-"` } -type StartStackOutput struct { - _ struct{} `type:"structure"` +type metadataStartStackOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7349,10 +7134,14 @@ func (s StartStackOutput) GoString() string { } type StopInstanceInput struct { - _ struct{} `type:"structure"` - // The instance ID. InstanceId *string `type:"string" required:"true"` + + metadataStopInstanceInput `json:"-" xml:"-"` +} + +type metadataStopInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7365,21 +7154,12 @@ func (s StopInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopInstanceInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type StopInstanceOutput struct { + metadataStopInstanceOutput `json:"-" xml:"-"` } -type StopInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataStopInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7393,10 +7173,14 @@ func (s StopInstanceOutput) GoString() string { } type StopStackInput struct { - _ struct{} `type:"structure"` - // The stack ID. StackId *string `type:"string" required:"true"` + + metadataStopStackInput `json:"-" xml:"-"` +} + +type metadataStopStackInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7409,21 +7193,12 @@ func (s StopStackInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopStackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopStackInput"} - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type StopStackOutput struct { + metadataStopStackOutput `json:"-" xml:"-"` } -type StopStackOutput struct { - _ struct{} `type:"structure"` +type metadataStopStackOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7439,8 +7214,6 @@ func (s StopStackOutput) GoString() string { // Contains the data needed by RDP clients such as the Microsoft Remote Desktop // Connection to log in to the instance. type TemporaryCredential struct { - _ struct{} `type:"structure"` - // The instance's AWS OpsWorks ID. InstanceId *string `type:"string"` @@ -7455,6 +7228,12 @@ type TemporaryCredential struct { // to log in. If they are logged in at the time, they will be automatically // logged out. ValidForInMinutes *int64 `type:"integer"` + + metadataTemporaryCredential `json:"-" xml:"-"` +} + +type metadataTemporaryCredential struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7469,13 +7248,17 @@ func (s TemporaryCredential) GoString() string { // Describes an instance's time-based auto scaling configuration. type TimeBasedAutoScalingConfiguration struct { - _ struct{} `type:"structure"` - // A WeeklyAutoScalingSchedule object with the instance schedule. AutoScalingSchedule *WeeklyAutoScalingSchedule `type:"structure"` // The instance ID. InstanceId *string `type:"string"` + + metadataTimeBasedAutoScalingConfiguration `json:"-" xml:"-"` +} + +type metadataTimeBasedAutoScalingConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7489,10 +7272,14 @@ func (s TimeBasedAutoScalingConfiguration) GoString() string { } type UnassignInstanceInput struct { - _ struct{} `type:"structure"` - // The instance ID. InstanceId *string `type:"string" required:"true"` + + metadataUnassignInstanceInput `json:"-" xml:"-"` +} + +type metadataUnassignInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7505,21 +7292,12 @@ func (s UnassignInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UnassignInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UnassignInstanceInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UnassignInstanceOutput struct { + metadataUnassignInstanceOutput `json:"-" xml:"-"` } -type UnassignInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataUnassignInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7533,10 +7311,14 @@ func (s UnassignInstanceOutput) GoString() string { } type UnassignVolumeInput struct { - _ struct{} `type:"structure"` - // The volume ID. VolumeId *string `type:"string" required:"true"` + + metadataUnassignVolumeInput `json:"-" xml:"-"` +} + +type metadataUnassignVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7549,21 +7331,12 @@ func (s UnassignVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UnassignVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UnassignVolumeInput"} - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UnassignVolumeOutput struct { + metadataUnassignVolumeOutput `json:"-" xml:"-"` } -type UnassignVolumeOutput struct { - _ struct{} `type:"structure"` +type metadataUnassignVolumeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7577,8 +7350,6 @@ func (s UnassignVolumeOutput) GoString() string { } type UpdateAppInput struct { - _ struct{} `type:"structure"` - // The app ID. AppId *string `type:"string" required:"true"` @@ -7625,6 +7396,12 @@ type UpdateAppInput struct { // The app type. Type *string `type:"string" enum:"AppType"` + + metadataUpdateAppInput `json:"-" xml:"-"` +} + +type metadataUpdateAppInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7637,36 +7414,12 @@ func (s UpdateAppInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAppInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAppInput"} - if s.AppId == nil { - invalidParams.Add(request.NewErrParamRequired("AppId")) - } - if s.Environment != nil { - for i, v := range s.Environment { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Environment", i), err.(request.ErrInvalidParams)) - } - } - } - if s.SslConfiguration != nil { - if err := s.SslConfiguration.Validate(); err != nil { - invalidParams.AddNested("SslConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateAppOutput struct { + metadataUpdateAppOutput `json:"-" xml:"-"` } -type UpdateAppOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateAppOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7680,13 +7433,17 @@ func (s UpdateAppOutput) GoString() string { } type UpdateElasticIpInput struct { - _ struct{} `type:"structure"` - // The address. ElasticIp *string `type:"string" required:"true"` // The new name. Name *string `type:"string"` + + metadataUpdateElasticIpInput `json:"-" xml:"-"` +} + +type metadataUpdateElasticIpInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7699,21 +7456,12 @@ func (s UpdateElasticIpInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateElasticIpInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateElasticIpInput"} - if s.ElasticIp == nil { - invalidParams.Add(request.NewErrParamRequired("ElasticIp")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateElasticIpOutput struct { + metadataUpdateElasticIpOutput `json:"-" xml:"-"` } -type UpdateElasticIpOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateElasticIpOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7727,11 +7475,9 @@ func (s UpdateElasticIpOutput) GoString() string { } type UpdateInstanceInput struct { - _ struct{} `type:"structure"` - // The default AWS OpsWorks agent version. You have the following options: // - // INHERIT - Use the stack's default agent version setting. version_number + // INHERIT - Use the stack's default agent version setting. version_number // - Use the specified agent version. This value overrides the stack's default // setting. To update the agent version, you must edit the instance configuration // and specify a new version. AWS OpsWorks then automatically installs that @@ -7791,7 +7537,7 @@ type UpdateInstanceInput struct { // // A supported Linux operating system: An Amazon Linux version, such as Amazon // Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 - // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. For more + // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. For more // information on the supported operating systems, see AWS OpsWorks Operating // Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html). // @@ -7808,6 +7554,12 @@ type UpdateInstanceInput struct { // The instance's Amazon EC2 key name. SshKeyName *string `type:"string"` + + metadataUpdateInstanceInput `json:"-" xml:"-"` +} + +type metadataUpdateInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7820,21 +7572,12 @@ func (s UpdateInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateInstanceInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateInstanceOutput struct { + metadataUpdateInstanceOutput `json:"-" xml:"-"` } -type UpdateInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7848,8 +7591,6 @@ func (s UpdateInstanceOutput) GoString() string { } type UpdateLayerInput struct { - _ struct{} `type:"structure"` - // One or more user-defined key/value pairs to be added to the stack attributes. Attributes map[string]*string `type:"map"` @@ -7916,6 +7657,12 @@ type UpdateLayerInput struct { // A VolumeConfigurations object that describes the layer's Amazon EBS volumes. VolumeConfigurations []*VolumeConfiguration `type:"list"` + + metadataUpdateLayerInput `json:"-" xml:"-"` +} + +type metadataUpdateLayerInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7928,31 +7675,12 @@ func (s UpdateLayerInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateLayerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateLayerInput"} - if s.LayerId == nil { - invalidParams.Add(request.NewErrParamRequired("LayerId")) - } - if s.VolumeConfigurations != nil { - for i, v := range s.VolumeConfigurations { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VolumeConfigurations", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateLayerOutput struct { + metadataUpdateLayerOutput `json:"-" xml:"-"` } -type UpdateLayerOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateLayerOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7966,10 +7694,14 @@ func (s UpdateLayerOutput) GoString() string { } type UpdateMyUserProfileInput struct { - _ struct{} `type:"structure"` - // The user's SSH public key. SshPublicKey *string `type:"string"` + + metadataUpdateMyUserProfileInput `json:"-" xml:"-"` +} + +type metadataUpdateMyUserProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7983,7 +7715,11 @@ func (s UpdateMyUserProfileInput) GoString() string { } type UpdateMyUserProfileOutput struct { - _ struct{} `type:"structure"` + metadataUpdateMyUserProfileOutput `json:"-" xml:"-"` +} + +type metadataUpdateMyUserProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7997,8 +7733,6 @@ func (s UpdateMyUserProfileOutput) GoString() string { } type UpdateRdsDbInstanceInput struct { - _ struct{} `type:"structure"` - // The database password. DbPassword *string `type:"string"` @@ -8007,6 +7741,12 @@ type UpdateRdsDbInstanceInput struct { // The Amazon RDS instance's ARN. RdsDbInstanceArn *string `type:"string" required:"true"` + + metadataUpdateRdsDbInstanceInput `json:"-" xml:"-"` +} + +type metadataUpdateRdsDbInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8019,21 +7759,12 @@ func (s UpdateRdsDbInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateRdsDbInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateRdsDbInstanceInput"} - if s.RdsDbInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("RdsDbInstanceArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateRdsDbInstanceOutput struct { + metadataUpdateRdsDbInstanceOutput `json:"-" xml:"-"` } -type UpdateRdsDbInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateRdsDbInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8047,8 +7778,6 @@ func (s UpdateRdsDbInstanceOutput) GoString() string { } type UpdateStackInput struct { - _ struct{} `type:"structure"` - // The default AWS OpsWorks agent version. You have the following options: // // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically @@ -8072,10 +7801,9 @@ type UpdateStackInput struct { // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). ChefConfiguration *ChefConfiguration `type:"structure"` - // The configuration manager. When you update a stack, we recommend that you - // use the configuration manager to specify the Chef version: 12, 11.10, or - // 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for - // Linux stacks is currently 11.4. + // The configuration manager. When you clone a stack, we recommend that you + // use the configuration manager to specify the Chef version: 0.9, 11.4, or + // 11.10. The default value is currently 11.4. ConfigurationManager *StackConfigurationManager `type:"structure"` // Contains the information required to retrieve an app or cookbook from a repository. @@ -8109,7 +7837,7 @@ type UpdateStackInput struct { // // A supported Linux operating system: An Amazon Linux version, such as Amazon // Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04 - // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. You specify + // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. You specify // the custom AMI you want to use when you create instances. For more information // on how to use custom AMIs with OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html). // The default option is the stack's current operating system. For more information @@ -8179,6 +7907,12 @@ type UpdateStackInput struct { // groups are required only for those layers that need custom settings. For // more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html). UseOpsworksSecurityGroups *bool `type:"boolean"` + + metadataUpdateStackInput `json:"-" xml:"-"` +} + +type metadataUpdateStackInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8191,21 +7925,12 @@ func (s UpdateStackInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateStackInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateStackInput"} - if s.StackId == nil { - invalidParams.Add(request.NewErrParamRequired("StackId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateStackOutput struct { + metadataUpdateStackOutput `json:"-" xml:"-"` } -type UpdateStackOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateStackOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8219,8 +7944,6 @@ func (s UpdateStackOutput) GoString() string { } type UpdateUserProfileInput struct { - _ struct{} `type:"structure"` - // Whether users can specify their own SSH public key through the My Settings // page. For more information, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html). AllowSelfManagement *bool `type:"boolean"` @@ -8237,6 +7960,12 @@ type UpdateUserProfileInput struct { // you do not specify an SSH user name, AWS OpsWorks generates one from the // IAM user name. SshUsername *string `type:"string"` + + metadataUpdateUserProfileInput `json:"-" xml:"-"` +} + +type metadataUpdateUserProfileInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8249,21 +7978,12 @@ func (s UpdateUserProfileInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateUserProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateUserProfileInput"} - if s.IamUserArn == nil { - invalidParams.Add(request.NewErrParamRequired("IamUserArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateUserProfileOutput struct { + metadataUpdateUserProfileOutput `json:"-" xml:"-"` } -type UpdateUserProfileOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateUserProfileOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8277,8 +7997,6 @@ func (s UpdateUserProfileOutput) GoString() string { } type UpdateVolumeInput struct { - _ struct{} `type:"structure"` - // The new mount point. MountPoint *string `type:"string"` @@ -8287,6 +8005,12 @@ type UpdateVolumeInput struct { // The volume ID. VolumeId *string `type:"string" required:"true"` + + metadataUpdateVolumeInput `json:"-" xml:"-"` +} + +type metadataUpdateVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8299,21 +8023,12 @@ func (s UpdateVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateVolumeInput"} - if s.VolumeId == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateVolumeOutput struct { + metadataUpdateVolumeOutput `json:"-" xml:"-"` } -type UpdateVolumeOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateVolumeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8328,8 +8043,6 @@ func (s UpdateVolumeOutput) GoString() string { // Describes a user's SSH information. type UserProfile struct { - _ struct{} `type:"structure"` - // Whether users can specify their own SSH public key through the My Settings // page. For more information, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html). AllowSelfManagement *bool `type:"boolean"` @@ -8345,6 +8058,12 @@ type UserProfile struct { // The user's SSH user name. SshUsername *string `type:"string"` + + metadataUserProfile `json:"-" xml:"-"` +} + +type metadataUserProfile struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8359,8 +8078,6 @@ func (s UserProfile) GoString() string { // Describes an instance's Amazon EBS volume. type Volume struct { - _ struct{} `type:"structure"` - // The volume Availability Zone. For more information, see Regions and Endpoints // (http://docs.aws.amazon.com/general/latest/gr/rande.html). AvailabilityZone *string `type:"string"` @@ -8377,7 +8094,7 @@ type Volume struct { // For PIOPS volumes, the IOPS per disk. Iops *int64 `type:"integer"` - // The volume mount point. For example, "/mnt/disk1". + // The volume mount point. For example "/dev/sdh". MountPoint *string `type:"string"` // The volume name. @@ -8401,6 +8118,12 @@ type Volume struct { // The volume type, standard or PIOPS. VolumeType *string `type:"string"` + + metadataVolume `json:"-" xml:"-"` +} + +type metadataVolume struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8415,8 +8138,6 @@ func (s Volume) GoString() string { // Describes an Amazon EBS volume configuration. type VolumeConfiguration struct { - _ struct{} `type:"structure"` - // For PIOPS volumes, the IOPS per disk. Iops *int64 `type:"integer"` @@ -8434,9 +8155,15 @@ type VolumeConfiguration struct { // The volume type: // - // standard - Magnetic io1 - Provisioned IOPS (SSD) gp2 - General Purpose + // standard - Magnetic io1 - Provisioned IOPS (SSD) gp2 - General Purpose // (SSD) VolumeType *string `type:"string"` + + metadataVolumeConfiguration `json:"-" xml:"-"` +} + +type metadataVolumeConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8449,25 +8176,6 @@ func (s VolumeConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *VolumeConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VolumeConfiguration"} - if s.MountPoint == nil { - invalidParams.Add(request.NewErrParamRequired("MountPoint")) - } - if s.NumberOfDisks == nil { - invalidParams.Add(request.NewErrParamRequired("NumberOfDisks")) - } - if s.Size == nil { - invalidParams.Add(request.NewErrParamRequired("Size")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a time-based instance's auto scaling schedule. The schedule consists // of a set of key-value pairs. // @@ -8483,8 +8191,6 @@ func (s *VolumeConfiguration) Validate() error { // // { "12":"on", "13":"on", "14":"on", "15":"on" } type WeeklyAutoScalingSchedule struct { - _ struct{} `type:"structure"` - // The schedule for Friday. Friday map[string]*string `type:"map"` @@ -8505,6 +8211,12 @@ type WeeklyAutoScalingSchedule struct { // The schedule for Wednesday. Wednesday map[string]*string `type:"map"` + + metadataWeeklyAutoScalingSchedule `json:"-" xml:"-"` +} + +type metadataWeeklyAutoScalingSchedule struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go index 913e5d22c..fa7b34729 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/opsworks" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleOpsWorks_AssignInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.AssignInstanceInput{ InstanceId: aws.String("String"), // Required @@ -39,7 +38,7 @@ func ExampleOpsWorks_AssignInstance() { } func ExampleOpsWorks_AssignVolume() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.AssignVolumeInput{ VolumeId: aws.String("String"), // Required @@ -59,7 +58,7 @@ func ExampleOpsWorks_AssignVolume() { } func ExampleOpsWorks_AssociateElasticIp() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.AssociateElasticIpInput{ ElasticIp: aws.String("String"), // Required @@ -79,7 +78,7 @@ func ExampleOpsWorks_AssociateElasticIp() { } func ExampleOpsWorks_AttachElasticLoadBalancer() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.AttachElasticLoadBalancerInput{ ElasticLoadBalancerName: aws.String("String"), // Required @@ -99,7 +98,7 @@ func ExampleOpsWorks_AttachElasticLoadBalancer() { } func ExampleOpsWorks_CloneStack() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.CloneStackInput{ ServiceRoleArn: aws.String("String"), // Required @@ -158,7 +157,7 @@ func ExampleOpsWorks_CloneStack() { } func ExampleOpsWorks_CreateApp() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.CreateAppInput{ Name: aws.String("String"), // Required @@ -219,7 +218,7 @@ func ExampleOpsWorks_CreateApp() { } func ExampleOpsWorks_CreateDeployment() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.CreateDeploymentInput{ Command: &opsworks.DeploymentCommand{ // Required @@ -240,10 +239,6 @@ func ExampleOpsWorks_CreateDeployment() { aws.String("String"), // Required // More values... }, - LayerIds: []*string{ - aws.String("String"), // Required - // More values... - }, } resp, err := svc.CreateDeployment(params) @@ -259,7 +254,7 @@ func ExampleOpsWorks_CreateDeployment() { } func ExampleOpsWorks_CreateInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.CreateInstanceInput{ InstanceType: aws.String("String"), // Required @@ -295,7 +290,6 @@ func ExampleOpsWorks_CreateInstance() { RootDeviceType: aws.String("RootDeviceType"), SshKeyName: aws.String("String"), SubnetId: aws.String("String"), - Tenancy: aws.String("String"), VirtualizationType: aws.String("String"), } resp, err := svc.CreateInstance(params) @@ -312,7 +306,7 @@ func ExampleOpsWorks_CreateInstance() { } func ExampleOpsWorks_CreateLayer() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.CreateLayerInput{ Name: aws.String("String"), // Required @@ -392,7 +386,7 @@ func ExampleOpsWorks_CreateLayer() { } func ExampleOpsWorks_CreateStack() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.CreateStackInput{ DefaultInstanceProfileArn: aws.String("String"), // Required @@ -445,7 +439,7 @@ func ExampleOpsWorks_CreateStack() { } func ExampleOpsWorks_CreateUserProfile() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.CreateUserProfileInput{ IamUserArn: aws.String("String"), // Required @@ -467,7 +461,7 @@ func ExampleOpsWorks_CreateUserProfile() { } func ExampleOpsWorks_DeleteApp() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DeleteAppInput{ AppId: aws.String("String"), // Required @@ -486,7 +480,7 @@ func ExampleOpsWorks_DeleteApp() { } func ExampleOpsWorks_DeleteInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DeleteInstanceInput{ InstanceId: aws.String("String"), // Required @@ -507,7 +501,7 @@ func ExampleOpsWorks_DeleteInstance() { } func ExampleOpsWorks_DeleteLayer() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DeleteLayerInput{ LayerId: aws.String("String"), // Required @@ -526,7 +520,7 @@ func ExampleOpsWorks_DeleteLayer() { } func ExampleOpsWorks_DeleteStack() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DeleteStackInput{ StackId: aws.String("String"), // Required @@ -545,7 +539,7 @@ func ExampleOpsWorks_DeleteStack() { } func ExampleOpsWorks_DeleteUserProfile() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DeleteUserProfileInput{ IamUserArn: aws.String("String"), // Required @@ -564,7 +558,7 @@ func ExampleOpsWorks_DeleteUserProfile() { } func ExampleOpsWorks_DeregisterEcsCluster() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DeregisterEcsClusterInput{ EcsClusterArn: aws.String("String"), // Required @@ -583,7 +577,7 @@ func ExampleOpsWorks_DeregisterEcsCluster() { } func ExampleOpsWorks_DeregisterElasticIp() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DeregisterElasticIpInput{ ElasticIp: aws.String("String"), // Required @@ -602,7 +596,7 @@ func ExampleOpsWorks_DeregisterElasticIp() { } func ExampleOpsWorks_DeregisterInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DeregisterInstanceInput{ InstanceId: aws.String("String"), // Required @@ -621,7 +615,7 @@ func ExampleOpsWorks_DeregisterInstance() { } func ExampleOpsWorks_DeregisterRdsDbInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DeregisterRdsDbInstanceInput{ RdsDbInstanceArn: aws.String("String"), // Required @@ -640,7 +634,7 @@ func ExampleOpsWorks_DeregisterRdsDbInstance() { } func ExampleOpsWorks_DeregisterVolume() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DeregisterVolumeInput{ VolumeId: aws.String("String"), // Required @@ -659,7 +653,7 @@ func ExampleOpsWorks_DeregisterVolume() { } func ExampleOpsWorks_DescribeAgentVersions() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeAgentVersionsInput{ ConfigurationManager: &opsworks.StackConfigurationManager{ @@ -682,7 +676,7 @@ func ExampleOpsWorks_DescribeAgentVersions() { } func ExampleOpsWorks_DescribeApps() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeAppsInput{ AppIds: []*string{ @@ -705,7 +699,7 @@ func ExampleOpsWorks_DescribeApps() { } func ExampleOpsWorks_DescribeCommands() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeCommandsInput{ CommandIds: []*string{ @@ -729,7 +723,7 @@ func ExampleOpsWorks_DescribeCommands() { } func ExampleOpsWorks_DescribeDeployments() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeDeploymentsInput{ AppId: aws.String("String"), @@ -753,7 +747,7 @@ func ExampleOpsWorks_DescribeDeployments() { } func ExampleOpsWorks_DescribeEcsClusters() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeEcsClustersInput{ EcsClusterArns: []*string{ @@ -778,7 +772,7 @@ func ExampleOpsWorks_DescribeEcsClusters() { } func ExampleOpsWorks_DescribeElasticIps() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeElasticIpsInput{ InstanceId: aws.String("String"), @@ -802,7 +796,7 @@ func ExampleOpsWorks_DescribeElasticIps() { } func ExampleOpsWorks_DescribeElasticLoadBalancers() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeElasticLoadBalancersInput{ LayerIds: []*string{ @@ -825,7 +819,7 @@ func ExampleOpsWorks_DescribeElasticLoadBalancers() { } func ExampleOpsWorks_DescribeInstances() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeInstancesInput{ InstanceIds: []*string{ @@ -849,7 +843,7 @@ func ExampleOpsWorks_DescribeInstances() { } func ExampleOpsWorks_DescribeLayers() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeLayersInput{ LayerIds: []*string{ @@ -872,7 +866,7 @@ func ExampleOpsWorks_DescribeLayers() { } func ExampleOpsWorks_DescribeLoadBasedAutoScaling() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeLoadBasedAutoScalingInput{ LayerIds: []*string{ // Required @@ -894,7 +888,7 @@ func ExampleOpsWorks_DescribeLoadBasedAutoScaling() { } func ExampleOpsWorks_DescribeMyUserProfile() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) var params *opsworks.DescribeMyUserProfileInput resp, err := svc.DescribeMyUserProfile(params) @@ -911,7 +905,7 @@ func ExampleOpsWorks_DescribeMyUserProfile() { } func ExampleOpsWorks_DescribePermissions() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribePermissionsInput{ IamUserArn: aws.String("String"), @@ -931,7 +925,7 @@ func ExampleOpsWorks_DescribePermissions() { } func ExampleOpsWorks_DescribeRaidArrays() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeRaidArraysInput{ InstanceId: aws.String("String"), @@ -955,7 +949,7 @@ func ExampleOpsWorks_DescribeRaidArrays() { } func ExampleOpsWorks_DescribeRdsDbInstances() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeRdsDbInstancesInput{ StackId: aws.String("String"), // Required @@ -978,7 +972,7 @@ func ExampleOpsWorks_DescribeRdsDbInstances() { } func ExampleOpsWorks_DescribeServiceErrors() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeServiceErrorsInput{ InstanceId: aws.String("String"), @@ -1002,7 +996,7 @@ func ExampleOpsWorks_DescribeServiceErrors() { } func ExampleOpsWorks_DescribeStackProvisioningParameters() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeStackProvisioningParametersInput{ StackId: aws.String("String"), // Required @@ -1021,7 +1015,7 @@ func ExampleOpsWorks_DescribeStackProvisioningParameters() { } func ExampleOpsWorks_DescribeStackSummary() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeStackSummaryInput{ StackId: aws.String("String"), // Required @@ -1040,7 +1034,7 @@ func ExampleOpsWorks_DescribeStackSummary() { } func ExampleOpsWorks_DescribeStacks() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeStacksInput{ StackIds: []*string{ @@ -1062,7 +1056,7 @@ func ExampleOpsWorks_DescribeStacks() { } func ExampleOpsWorks_DescribeTimeBasedAutoScaling() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeTimeBasedAutoScalingInput{ InstanceIds: []*string{ // Required @@ -1084,7 +1078,7 @@ func ExampleOpsWorks_DescribeTimeBasedAutoScaling() { } func ExampleOpsWorks_DescribeUserProfiles() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeUserProfilesInput{ IamUserArns: []*string{ @@ -1106,7 +1100,7 @@ func ExampleOpsWorks_DescribeUserProfiles() { } func ExampleOpsWorks_DescribeVolumes() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DescribeVolumesInput{ InstanceId: aws.String("String"), @@ -1131,7 +1125,7 @@ func ExampleOpsWorks_DescribeVolumes() { } func ExampleOpsWorks_DetachElasticLoadBalancer() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DetachElasticLoadBalancerInput{ ElasticLoadBalancerName: aws.String("String"), // Required @@ -1151,7 +1145,7 @@ func ExampleOpsWorks_DetachElasticLoadBalancer() { } func ExampleOpsWorks_DisassociateElasticIp() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.DisassociateElasticIpInput{ ElasticIp: aws.String("String"), // Required @@ -1170,7 +1164,7 @@ func ExampleOpsWorks_DisassociateElasticIp() { } func ExampleOpsWorks_GetHostnameSuggestion() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.GetHostnameSuggestionInput{ LayerId: aws.String("String"), // Required @@ -1189,7 +1183,7 @@ func ExampleOpsWorks_GetHostnameSuggestion() { } func ExampleOpsWorks_GrantAccess() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.GrantAccessInput{ InstanceId: aws.String("String"), // Required @@ -1209,7 +1203,7 @@ func ExampleOpsWorks_GrantAccess() { } func ExampleOpsWorks_RebootInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.RebootInstanceInput{ InstanceId: aws.String("String"), // Required @@ -1228,7 +1222,7 @@ func ExampleOpsWorks_RebootInstance() { } func ExampleOpsWorks_RegisterEcsCluster() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.RegisterEcsClusterInput{ EcsClusterArn: aws.String("String"), // Required @@ -1248,7 +1242,7 @@ func ExampleOpsWorks_RegisterEcsCluster() { } func ExampleOpsWorks_RegisterElasticIp() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.RegisterElasticIpInput{ ElasticIp: aws.String("String"), // Required @@ -1268,7 +1262,7 @@ func ExampleOpsWorks_RegisterElasticIp() { } func ExampleOpsWorks_RegisterInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.RegisterInstanceInput{ StackId: aws.String("String"), // Required @@ -1296,7 +1290,7 @@ func ExampleOpsWorks_RegisterInstance() { } func ExampleOpsWorks_RegisterRdsDbInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.RegisterRdsDbInstanceInput{ DbPassword: aws.String("String"), // Required @@ -1318,7 +1312,7 @@ func ExampleOpsWorks_RegisterRdsDbInstance() { } func ExampleOpsWorks_RegisterVolume() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.RegisterVolumeInput{ StackId: aws.String("String"), // Required @@ -1338,7 +1332,7 @@ func ExampleOpsWorks_RegisterVolume() { } func ExampleOpsWorks_SetLoadBasedAutoScaling() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.SetLoadBasedAutoScalingInput{ LayerId: aws.String("String"), // Required @@ -1382,7 +1376,7 @@ func ExampleOpsWorks_SetLoadBasedAutoScaling() { } func ExampleOpsWorks_SetPermission() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.SetPermissionInput{ IamUserArn: aws.String("String"), // Required @@ -1405,7 +1399,7 @@ func ExampleOpsWorks_SetPermission() { } func ExampleOpsWorks_SetTimeBasedAutoScaling() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.SetTimeBasedAutoScalingInput{ InstanceId: aws.String("String"), // Required @@ -1454,7 +1448,7 @@ func ExampleOpsWorks_SetTimeBasedAutoScaling() { } func ExampleOpsWorks_StartInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.StartInstanceInput{ InstanceId: aws.String("String"), // Required @@ -1473,7 +1467,7 @@ func ExampleOpsWorks_StartInstance() { } func ExampleOpsWorks_StartStack() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.StartStackInput{ StackId: aws.String("String"), // Required @@ -1492,7 +1486,7 @@ func ExampleOpsWorks_StartStack() { } func ExampleOpsWorks_StopInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.StopInstanceInput{ InstanceId: aws.String("String"), // Required @@ -1511,7 +1505,7 @@ func ExampleOpsWorks_StopInstance() { } func ExampleOpsWorks_StopStack() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.StopStackInput{ StackId: aws.String("String"), // Required @@ -1530,7 +1524,7 @@ func ExampleOpsWorks_StopStack() { } func ExampleOpsWorks_UnassignInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UnassignInstanceInput{ InstanceId: aws.String("String"), // Required @@ -1549,7 +1543,7 @@ func ExampleOpsWorks_UnassignInstance() { } func ExampleOpsWorks_UnassignVolume() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UnassignVolumeInput{ VolumeId: aws.String("String"), // Required @@ -1568,7 +1562,7 @@ func ExampleOpsWorks_UnassignVolume() { } func ExampleOpsWorks_UpdateApp() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UpdateAppInput{ AppId: aws.String("String"), // Required @@ -1628,7 +1622,7 @@ func ExampleOpsWorks_UpdateApp() { } func ExampleOpsWorks_UpdateElasticIp() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UpdateElasticIpInput{ ElasticIp: aws.String("String"), // Required @@ -1648,7 +1642,7 @@ func ExampleOpsWorks_UpdateElasticIp() { } func ExampleOpsWorks_UpdateInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UpdateInstanceInput{ InstanceId: aws.String("String"), // Required @@ -1681,7 +1675,7 @@ func ExampleOpsWorks_UpdateInstance() { } func ExampleOpsWorks_UpdateLayer() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UpdateLayerInput{ LayerId: aws.String("String"), // Required @@ -1760,7 +1754,7 @@ func ExampleOpsWorks_UpdateLayer() { } func ExampleOpsWorks_UpdateMyUserProfile() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UpdateMyUserProfileInput{ SshPublicKey: aws.String("String"), @@ -1779,7 +1773,7 @@ func ExampleOpsWorks_UpdateMyUserProfile() { } func ExampleOpsWorks_UpdateRdsDbInstance() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UpdateRdsDbInstanceInput{ RdsDbInstanceArn: aws.String("String"), // Required @@ -1800,7 +1794,7 @@ func ExampleOpsWorks_UpdateRdsDbInstance() { } func ExampleOpsWorks_UpdateStack() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UpdateStackInput{ StackId: aws.String("String"), // Required @@ -1852,7 +1846,7 @@ func ExampleOpsWorks_UpdateStack() { } func ExampleOpsWorks_UpdateUserProfile() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UpdateUserProfileInput{ IamUserArn: aws.String("String"), // Required @@ -1874,7 +1868,7 @@ func ExampleOpsWorks_UpdateUserProfile() { } func ExampleOpsWorks_UpdateVolume() { - svc := opsworks.New(session.New()) + svc := opsworks.New(nil) params := &opsworks.UpdateVolumeInput{ VolumeId: aws.String("String"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go index 9e477674a..acc9e62ed 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface.go @@ -292,5 +292,3 @@ type OpsWorksAPI interface { UpdateVolume(*opsworks.UpdateVolumeInput) (*opsworks.UpdateVolumeOutput, error) } - -var _ OpsWorksAPI = (*opsworks.OpsWorks)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface_test.go new file mode 100644 index 000000000..13a316b4c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package opsworksiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/opsworks" + "github.com/aws/aws-sdk-go/service/opsworks/opsworksiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*opsworksiface.OpsWorksAPI)(nil), opsworks.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go index 9b8500d12..808e8c163 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/service.go @@ -4,11 +4,12 @@ package opsworks import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Welcome to the AWS OpsWorks API Reference. This guide provides descriptions, @@ -43,71 +44,49 @@ import ( // // When you call CreateStack, CloneStack, or UpdateStack we recommend you use // the ConfigurationManager parameter to specify the Chef version. The recommended -// value for Linux stacks is currently 12 (the default is 11.4). Windows stacks -// use Chef 12.2. For more information, see Chef Versions (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-chef11.html). +// value for Linux stacks, which is also the default value, is currently 11.10. +// Windows stacks use Chef 12.2. For more information, see Chef Versions (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-chef11.html). // -// You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend -// migrating your existing Linux stacks to Chef 12 as soon as possible. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// You can also specify Chef 11.4 or Chef 0.9 for your Linux stack. However, +// Chef 0.9 has been deprecated. We do not recommend using Chef 0.9 for new +// stacks, and we recommend migrating your existing Chef 0.9 stacks to Chef +// 11.10 as soon as possible. type OpsWorks struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "opsworks" - -// New creates a new instance of the OpsWorks client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a OpsWorks client from just a session. -// svc := opsworks.New(mySession) -// -// // Create a OpsWorks client with additional configuration -// svc := opsworks.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *OpsWorks { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *OpsWorks { - svc := &OpsWorks{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2013-02-18", - JSONVersion: "1.1", - TargetPrefix: "OpsWorks_20130218", - }, - handlers, - ), +// New returns a new OpsWorks client. +func New(config *aws.Config) *OpsWorks { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "opsworks", + APIVersion: "2013-02-18", + JSONVersion: "1.1", + TargetPrefix: "OpsWorks_20130218", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &OpsWorks{service} } // newRequest creates a new request for a OpsWorks operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/waiters.go deleted file mode 100644 index 8d07ac87e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworks/waiters.go +++ /dev/null @@ -1,290 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package opsworks - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *OpsWorks) WaitUntilAppExists(input *DescribeAppsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeApps", - Delay: 1, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 200, - }, - { - State: "failure", - Matcher: "status", - Argument: "", - Expected: 400, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *OpsWorks) WaitUntilDeploymentSuccessful(input *DescribeDeploymentsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeDeployments", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Deployments[].Status", - Expected: "successful", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Deployments[].Status", - Expected: "failed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *OpsWorks) WaitUntilInstanceOnline(input *DescribeInstancesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstances", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Instances[].Status", - Expected: "online", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "setup_failed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "shutting_down", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "start_failed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "stopped", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "stopping", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "terminating", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "terminated", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "stop_failed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *OpsWorks) WaitUntilInstanceStopped(input *DescribeInstancesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstances", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Instances[].Status", - Expected: "stopped", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "booting", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "online", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "pending", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "rebooting", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "requested", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "running_setup", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "setup_failed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "start_failed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "stop_failed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *OpsWorks) WaitUntilInstanceTerminated(input *DescribeInstancesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeInstances", - Delay: 15, - MaxAttempts: 40, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Instances[].Status", - Expected: "terminated", - }, - { - State: "success", - Matcher: "error", - Argument: "", - Expected: "ResourceNotFoundException", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "booting", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "online", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "pending", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "rebooting", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "requested", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "running_setup", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "setup_failed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Instances[].Status", - Expected: "start_failed", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go index a35d5ab43..b1c75e4aa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go @@ -4,13 +4,10 @@ package rds import ( - "fmt" "time" "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/private/protocol/query" ) const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription" @@ -55,8 +52,6 @@ func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AddTagsToResourceOutput{} req.Data = output return @@ -132,9 +127,8 @@ func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityG // // You cannot authorize ingress from an EC2 security group in one region to // an Amazon RDS DB instance in another. You cannot authorize ingress from a -// VPC security group in one VPC to an Amazon RDS DB instance in another. -// -// For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// VPC security group in one VPC to an Amazon RDS DB instance in another. For +// an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). func (c *RDS) AuthorizeDBSecurityGroupIngress(input *AuthorizeDBSecurityGroupIngressInput) (*AuthorizeDBSecurityGroupIngressOutput, error) { req, out := c.AuthorizeDBSecurityGroupIngressRequest(input) err := req.Send() @@ -217,11 +211,8 @@ func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Re return } -// Copies the specified DB snapshot. The source DB snapshot must be in the "available" +// Copies the specified DBSnapshot. The source DBSnapshot must be in the "available" // state. -// -// If you are copying from a shared manual DB snapshot, the SourceDBSnapshotIdentifier -// must be the ARN of the shared DB snapshot. func (c *RDS) CopyDBSnapshot(input *CopyDBSnapshotInput) (*CopyDBSnapshotOutput, error) { req, out := c.CopyDBSnapshotRequest(input) err := req.Send() @@ -275,12 +266,8 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. return } -// Creates a new Amazon Aurora DB cluster. -// -// You can use the ReplicationSourceIdentifier parameter to create the DB cluster -// as a Read Replica of another DB cluster. -// -// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) +// Creates a new Amazon Aurora DB cluster. For more information on Amazon Aurora, +// see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. func (c *RDS) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) { req, out := c.CreateDBClusterRequest(input) @@ -310,7 +297,7 @@ func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParamet // Creates a new DB cluster parameter group. // -// Parameters in a DB cluster parameter group apply to all of the instances +// Parameters in a DB cluster parameter group apply to all of the instances // in a DB cluster. // // A DB cluster parameter group is initially created with the default parameters @@ -418,15 +405,15 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl return } -// Creates a DB instance for a DB instance running MySQL, MariaDB, or PostgreSQL -// that acts as a Read Replica of a source DB instance. +// Creates a DB instance for a DB instance running MySQL or PostgreSQL that +// acts as a Read Replica of a source DB instance. // -// All Read Replica DB instances are created as Single-AZ deployments with +// All Read Replica DB instances are created as Single-AZ deployments with // backups disabled. All other DB instance attributes (including DB security // groups and DB parameter groups) are inherited from the source DB instance, // except as specified below. // -// The source DB instance must have backup retention enabled. +// The source DB instance must have backup retention enabled. func (c *RDS) CreateDBInstanceReadReplica(input *CreateDBInstanceReadReplicaInput) (*CreateDBInstanceReadReplicaOutput, error) { req, out := c.CreateDBInstanceReadReplicaRequest(input) err := req.Send() @@ -655,12 +642,13 @@ func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request. return } -// The DeleteDBCluster action deletes a previously provisioned DB cluster. When -// you delete a DB cluster, all automated backups for that DB cluster are deleted -// and cannot be recovered. Manual DB cluster snapshots of the specified DB -// cluster are not deleted. +// The DeleteDBCluster action deletes a previously provisioned DB cluster. A +// successful response from the web service indicates the request was received +// correctly. When you delete a DB cluster, all automated backups for that DB +// cluster are deleted and cannot be recovered. Manual DB cluster snapshots +// of the DB cluster to be deleted are not deleted. // -// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) +// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. func (c *RDS) DeleteDBCluster(input *DeleteDBClusterInput) (*DeleteDBClusterOutput, error) { req, out := c.DeleteDBClusterRequest(input) @@ -683,8 +671,6 @@ func (c *RDS) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParamet } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteDBClusterParameterGroupOutput{} req.Data = output return @@ -724,9 +710,8 @@ func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput // Deletes a DB cluster snapshot. If the snapshot is being copied, the copy // operation is terminated. // -// The DB cluster snapshot must be in the available state to be deleted. -// -// For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) +// The DB cluster snapshot must be in the available state to be deleted. For +// more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. func (c *RDS) DeleteDBClusterSnapshot(input *DeleteDBClusterSnapshotInput) (*DeleteDBClusterSnapshotOutput, error) { req, out := c.DeleteDBClusterSnapshotRequest(input) @@ -755,18 +740,19 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques } // The DeleteDBInstance action deletes a previously provisioned DB instance. -// When you delete a DB instance, all automated backups for that instance are -// deleted and cannot be recovered. Manual DB snapshots of the DB instance to -// be deleted are not deleted. +// A successful response from the web service indicates the request was received +// correctly. When you delete a DB instance, all automated backups for that +// instance are deleted and cannot be recovered. Manual DB snapshots of the +// DB instance to be deleted are not deleted. // // If a final DB snapshot is requested the status of the RDS instance will -// be deleting until the DB snapshot is created. The API action DescribeDBInstance +// be "deleting" until the DB snapshot is created. The API action DescribeDBInstance // is used to monitor the status of this operation. The action cannot be canceled // or reverted once submitted. // -// Note that when a DB instance is in a failure state and has a status of failed, -// incompatible-restore, or incompatible-network, it can only be deleted when -// the SkipFinalSnapshot parameter is set to true. +// Note that when a DB instance is in a failure state and has a status of 'failed', +// 'incompatible-restore', or 'incompatible-network', it can only be deleted +// when the SkipFinalSnapshot parameter is set to "true". func (c *RDS) DeleteDBInstance(input *DeleteDBInstanceInput) (*DeleteDBInstanceOutput, error) { req, out := c.DeleteDBInstanceRequest(input) err := req.Send() @@ -788,8 +774,6 @@ func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteDBParameterGroupOutput{} req.Data = output return @@ -818,8 +802,6 @@ func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteDBSecurityGroupOutput{} req.Data = output return @@ -827,7 +809,7 @@ func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (r // Deletes a DB security group. // -// The specified DB security group must not be associated with any DB instances. +// The specified DB security group must not be associated with any DB instances. func (c *RDS) DeleteDBSecurityGroup(input *DeleteDBSecurityGroupInput) (*DeleteDBSecurityGroupOutput, error) { req, out := c.DeleteDBSecurityGroupRequest(input) err := req.Send() @@ -857,7 +839,7 @@ func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *reques // Deletes a DBSnapshot. If the snapshot is being copied, the copy operation // is terminated. // -// The DBSnapshot must be in the available state to be deleted. +// The DBSnapshot must be in the available state to be deleted. func (c *RDS) DeleteDBSnapshot(input *DeleteDBSnapshotInput) (*DeleteDBSnapshotOutput, error) { req, out := c.DeleteDBSnapshotRequest(input) err := req.Send() @@ -879,8 +861,6 @@ func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req * } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteDBSubnetGroupOutput{} req.Data = output return @@ -888,8 +868,7 @@ func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req * // Deletes a DB subnet group. // -// The specified database subnet group must not be associated with any DB -// instances. +// The specified database subnet group must not be associated with any DB instances. func (c *RDS) DeleteDBSubnetGroup(input *DeleteDBSubnetGroupInput) (*DeleteDBSubnetGroupOutput, error) { req, out := c.DeleteDBSubnetGroupRequest(input) err := req.Send() @@ -938,8 +917,6 @@ func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteOptionGroupOutput{} req.Data = output return @@ -1074,44 +1051,6 @@ func (c *RDS) DescribeDBClusterParameters(input *DescribeDBClusterParametersInpu return out, err } -const opDescribeDBClusterSnapshotAttributes = "DescribeDBClusterSnapshotAttributes" - -// DescribeDBClusterSnapshotAttributesRequest generates a request for the DescribeDBClusterSnapshotAttributes operation. -func (c *RDS) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBClusterSnapshotAttributesInput) (req *request.Request, output *DescribeDBClusterSnapshotAttributesOutput) { - op := &request.Operation{ - Name: opDescribeDBClusterSnapshotAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeDBClusterSnapshotAttributesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeDBClusterSnapshotAttributesOutput{} - req.Data = output - return -} - -// Returns a list of DB cluster snapshot attribute names and values for a manual -// DB cluster snapshot. -// -// When sharing snapshots with other AWS accounts, DescribeDBClusterSnapshotAttributes -// returns the restore attribute and a list of IDs for the AWS accounts that -// are authorized to copy or restore the manual DB cluster snapshot. If all -// is included in the list of values for the restore attribute, then the manual -// DB cluster snapshot is public and can be copied or restored by all AWS accounts. -// -// To add or remove access for an AWS account to copy or restore a manual DB -// cluster snapshot, or to make the manual DB cluster snapshot public or private, -// use the ModifyDBClusterSnapshotAttribute API action. -func (c *RDS) DescribeDBClusterSnapshotAttributes(input *DescribeDBClusterSnapshotAttributesInput) (*DescribeDBClusterSnapshotAttributesOutput, error) { - req, out := c.DescribeDBClusterSnapshotAttributesRequest(input) - err := req.Send() - return out, err -} - const opDescribeDBClusterSnapshots = "DescribeDBClusterSnapshots" // DescribeDBClusterSnapshotsRequest generates a request for the DescribeDBClusterSnapshots operation. @@ -1132,8 +1071,7 @@ func (c *RDS) DescribeDBClusterSnapshotsRequest(input *DescribeDBClusterSnapshot return } -// Returns information about DB cluster snapshots. This API action supports -// pagination. +// Returns information about DB cluster snapshots. This API supports pagination. // // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. @@ -1209,7 +1147,6 @@ func (c *RDS) DescribeDBEngineVersions(input *DescribeDBEngineVersionsInput) (*D func (c *RDS) DescribeDBEngineVersionsPages(input *DescribeDBEngineVersionsInput, fn func(p *DescribeDBEngineVersionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDBEngineVersionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDBEngineVersionsOutput), lastPage) }) @@ -1250,7 +1187,6 @@ func (c *RDS) DescribeDBInstances(input *DescribeDBInstancesInput) (*DescribeDBI func (c *RDS) DescribeDBInstancesPages(input *DescribeDBInstancesInput, fn func(p *DescribeDBInstancesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDBInstancesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDBInstancesOutput), lastPage) }) @@ -1291,7 +1227,6 @@ func (c *RDS) DescribeDBLogFiles(input *DescribeDBLogFilesInput) (*DescribeDBLog func (c *RDS) DescribeDBLogFilesPages(input *DescribeDBLogFilesInput, fn func(p *DescribeDBLogFilesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDBLogFilesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDBLogFilesOutput), lastPage) }) @@ -1334,7 +1269,6 @@ func (c *RDS) DescribeDBParameterGroups(input *DescribeDBParameterGroupsInput) ( func (c *RDS) DescribeDBParameterGroupsPages(input *DescribeDBParameterGroupsInput, fn func(p *DescribeDBParameterGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDBParameterGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDBParameterGroupsOutput), lastPage) }) @@ -1375,7 +1309,6 @@ func (c *RDS) DescribeDBParameters(input *DescribeDBParametersInput) (*DescribeD func (c *RDS) DescribeDBParametersPages(input *DescribeDBParametersInput, fn func(p *DescribeDBParametersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDBParametersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDBParametersOutput), lastPage) }) @@ -1418,50 +1351,11 @@ func (c *RDS) DescribeDBSecurityGroups(input *DescribeDBSecurityGroupsInput) (*D func (c *RDS) DescribeDBSecurityGroupsPages(input *DescribeDBSecurityGroupsInput, fn func(p *DescribeDBSecurityGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDBSecurityGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDBSecurityGroupsOutput), lastPage) }) } -const opDescribeDBSnapshotAttributes = "DescribeDBSnapshotAttributes" - -// DescribeDBSnapshotAttributesRequest generates a request for the DescribeDBSnapshotAttributes operation. -func (c *RDS) DescribeDBSnapshotAttributesRequest(input *DescribeDBSnapshotAttributesInput) (req *request.Request, output *DescribeDBSnapshotAttributesOutput) { - op := &request.Operation{ - Name: opDescribeDBSnapshotAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeDBSnapshotAttributesInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeDBSnapshotAttributesOutput{} - req.Data = output - return -} - -// Returns a list of DB snapshot attribute names and values for a manual DB -// snapshot. -// -// When sharing snapshots with other AWS accounts, DescribeDBSnapshotAttributes -// returns the restore attribute and a list of IDs for the AWS accounts that -// are authorized to copy or restore the manual DB snapshot. If all is included -// in the list of values for the restore attribute, then the manual DB snapshot -// is public and can be copied or restored by all AWS accounts. -// -// To add or remove access for an AWS account to copy or restore a manual DB -// snapshot, or to make the manual DB snapshot public or private, use the ModifyDBSnapshotAttribute -// API action. -func (c *RDS) DescribeDBSnapshotAttributes(input *DescribeDBSnapshotAttributesInput) (*DescribeDBSnapshotAttributesOutput, error) { - req, out := c.DescribeDBSnapshotAttributesRequest(input) - err := req.Send() - return out, err -} - const opDescribeDBSnapshots = "DescribeDBSnapshots" // DescribeDBSnapshotsRequest generates a request for the DescribeDBSnapshots operation. @@ -1488,7 +1382,7 @@ func (c *RDS) DescribeDBSnapshotsRequest(input *DescribeDBSnapshotsInput) (req * return } -// Returns information about DB snapshots. This API action supports pagination. +// Returns information about DB snapshots. This API supports pagination. func (c *RDS) DescribeDBSnapshots(input *DescribeDBSnapshotsInput) (*DescribeDBSnapshotsOutput, error) { req, out := c.DescribeDBSnapshotsRequest(input) err := req.Send() @@ -1497,7 +1391,6 @@ func (c *RDS) DescribeDBSnapshots(input *DescribeDBSnapshotsInput) (*DescribeDBS func (c *RDS) DescribeDBSnapshotsPages(input *DescribeDBSnapshotsInput, fn func(p *DescribeDBSnapshotsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDBSnapshotsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDBSnapshotsOutput), lastPage) }) @@ -1541,7 +1434,6 @@ func (c *RDS) DescribeDBSubnetGroups(input *DescribeDBSubnetGroupsInput) (*Descr func (c *RDS) DescribeDBSubnetGroupsPages(input *DescribeDBSubnetGroupsInput, fn func(p *DescribeDBSubnetGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDBSubnetGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDBSubnetGroupsOutput), lastPage) }) @@ -1614,7 +1506,6 @@ func (c *RDS) DescribeEngineDefaultParameters(input *DescribeEngineDefaultParame func (c *RDS) DescribeEngineDefaultParametersPages(input *DescribeEngineDefaultParametersInput, fn func(p *DescribeEngineDefaultParametersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeEngineDefaultParametersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeEngineDefaultParametersOutput), lastPage) }) @@ -1689,7 +1580,6 @@ func (c *RDS) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) func (c *RDS) DescribeEventSubscriptionsPages(input *DescribeEventSubscriptionsInput, fn func(p *DescribeEventSubscriptionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeEventSubscriptionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeEventSubscriptionsOutput), lastPage) }) @@ -1734,7 +1624,6 @@ func (c *RDS) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, func (c *RDS) DescribeEventsPages(input *DescribeEventsInput, fn func(p *DescribeEventsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeEventsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeEventsOutput), lastPage) }) @@ -1775,7 +1664,6 @@ func (c *RDS) DescribeOptionGroupOptions(input *DescribeOptionGroupOptionsInput) func (c *RDS) DescribeOptionGroupOptionsPages(input *DescribeOptionGroupOptionsInput, fn func(p *DescribeOptionGroupOptionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeOptionGroupOptionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeOptionGroupOptionsOutput), lastPage) }) @@ -1816,7 +1704,6 @@ func (c *RDS) DescribeOptionGroups(input *DescribeOptionGroupsInput) (*DescribeO func (c *RDS) DescribeOptionGroupsPages(input *DescribeOptionGroupsInput, fn func(p *DescribeOptionGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeOptionGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeOptionGroupsOutput), lastPage) }) @@ -1857,7 +1744,6 @@ func (c *RDS) DescribeOrderableDBInstanceOptions(input *DescribeOrderableDBInsta func (c *RDS) DescribeOrderableDBInstanceOptionsPages(input *DescribeOrderableDBInstanceOptionsInput, fn func(p *DescribeOrderableDBInstanceOptionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeOrderableDBInstanceOptionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeOrderableDBInstanceOptionsOutput), lastPage) }) @@ -1927,7 +1813,6 @@ func (c *RDS) DescribeReservedDBInstances(input *DescribeReservedDBInstancesInpu func (c *RDS) DescribeReservedDBInstancesPages(input *DescribeReservedDBInstancesInput, fn func(p *DescribeReservedDBInstancesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeReservedDBInstancesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeReservedDBInstancesOutput), lastPage) }) @@ -1968,7 +1853,6 @@ func (c *RDS) DescribeReservedDBInstancesOfferings(input *DescribeReservedDBInst func (c *RDS) DescribeReservedDBInstancesOfferingsPages(input *DescribeReservedDBInstancesOfferingsInput, fn func(p *DescribeReservedDBInstancesOfferingsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeReservedDBInstancesOfferingsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeReservedDBInstancesOfferingsOutput), lastPage) }) @@ -2009,7 +1893,6 @@ func (c *RDS) DownloadDBLogFilePortion(input *DownloadDBLogFilePortionInput) (*D func (c *RDS) DownloadDBLogFilePortionPages(input *DownloadDBLogFilePortionInput, fn func(p *DownloadDBLogFilePortionOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DownloadDBLogFilePortionRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DownloadDBLogFilePortionOutput), lastPage) }) @@ -2144,7 +2027,7 @@ func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParamet // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html) // in the Amazon RDS User Guide. // -// Changes to dynamic parameters are applied immediately. Changes to static +// Changes to dynamic parameters are applied immediately. Changes to static // parameters require a reboot without failover to the DB cluster associated // with the parameter group before the change can take effect. // @@ -2165,48 +2048,6 @@ func (c *RDS) ModifyDBClusterParameterGroup(input *ModifyDBClusterParameterGroup return out, err } -const opModifyDBClusterSnapshotAttribute = "ModifyDBClusterSnapshotAttribute" - -// ModifyDBClusterSnapshotAttributeRequest generates a request for the ModifyDBClusterSnapshotAttribute operation. -func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnapshotAttributeInput) (req *request.Request, output *ModifyDBClusterSnapshotAttributeOutput) { - op := &request.Operation{ - Name: opModifyDBClusterSnapshotAttribute, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyDBClusterSnapshotAttributeInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifyDBClusterSnapshotAttributeOutput{} - req.Data = output - return -} - -// Adds an attribute and values to, or removes an attribute and values from, -// a manual DB cluster snapshot. -// -// To share a manual DB cluster snapshot with other AWS accounts, specify restore -// as the AttributeName and use the ValuesToAdd parameter to add a list of IDs -// of the AWS accounts that are authorized to restore the manual DB cluster -// snapshot. Use the value all to make the manual DB cluster snapshot public, -// which means that it can be copied or restored by all AWS accounts. Do not -// add the all value for any manual DB cluster snapshots that contain private -// information that you don't want available to all AWS accounts. -// -// To view which AWS accounts have access to copy or restore a manual DB cluster -// snapshot, or whether a manual DB cluster snapshot public or private, use -// the DescribeDBClusterSnapshotAttributes API action. -// -// If a manual DB cluster snapshot is encrypted, it cannot be shared. -func (c *RDS) ModifyDBClusterSnapshotAttribute(input *ModifyDBClusterSnapshotAttributeInput) (*ModifyDBClusterSnapshotAttributeOutput, error) { - req, out := c.ModifyDBClusterSnapshotAttributeRequest(input) - err := req.Send() - return out, err -} - const opModifyDBInstance = "ModifyDBInstance" // ModifyDBInstanceRequest generates a request for the ModifyDBInstance operation. @@ -2259,7 +2100,7 @@ func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) // parameter, submit a list of the following: ParameterName, ParameterValue, // and ApplyMethod. A maximum of 20 parameters can be modified in a single request. // -// Changes to dynamic parameters are applied immediately. Changes to static +// Changes to dynamic parameters are applied immediately. Changes to static // parameters require a reboot without failover to the DB instance associated // with the parameter group before the change can take effect. // @@ -2279,48 +2120,6 @@ func (c *RDS) ModifyDBParameterGroup(input *ModifyDBParameterGroupInput) (*DBPar return out, err } -const opModifyDBSnapshotAttribute = "ModifyDBSnapshotAttribute" - -// ModifyDBSnapshotAttributeRequest generates a request for the ModifyDBSnapshotAttribute operation. -func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeInput) (req *request.Request, output *ModifyDBSnapshotAttributeOutput) { - op := &request.Operation{ - Name: opModifyDBSnapshotAttribute, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyDBSnapshotAttributeInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifyDBSnapshotAttributeOutput{} - req.Data = output - return -} - -// Adds an attribute and values to, or removes an attribute and values from, -// a manual DB snapshot. -// -// To share a manual DB snapshot with other AWS accounts, specify restore as -// the AttributeName and use the ValuesToAdd parameter to add a list of IDs -// of the AWS accounts that are authorized to restore the manual DB snapshot. -// Uses the value all to make the manual DB snapshot public, which means it -// can be copied or restored by all AWS accounts. Do not add the all value for -// any manual DB snapshots that contain private information that you don't want -// available to all AWS accounts. -// -// To view which AWS accounts have access to copy or restore a manual DB snapshot, -// or whether a manual DB snapshot public or private, use the DescribeDBSnapshotAttributes -// API action. -// -// If the manual DB snapshot is encrypted, it cannot be shared. -func (c *RDS) ModifyDBSnapshotAttribute(input *ModifyDBSnapshotAttributeInput) (*ModifyDBSnapshotAttributeOutput, error) { - req, out := c.ModifyDBSnapshotAttributeRequest(input) - err := req.Send() - return out, err -} - const opModifyDBSubnetGroup = "ModifyDBSubnetGroup" // ModifyDBSubnetGroupRequest generates a request for the ModifyDBSubnetGroup operation. @@ -2498,12 +2297,12 @@ func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *reques // will be conducted through a failover. An Amazon RDS event is created when // the reboot is completed. // -// If your DB instance is deployed in multiple Availability Zones, you can +// If your DB instance is deployed in multiple Availability Zones, you can // force a failover from one AZ to the other during the reboot. You might force // a failover to test the availability of your DB instance deployment or to // restore operations to the original AZ after a failover occurs. // -// The time required to reboot is a function of the specific database engine's +// The time required to reboot is a function of the specific database engine's // crash recovery process. To improve the reboot time, we recommend that you // reduce database activities as much as possible during the reboot process // to reduce rollback activity for in-transit transactions. @@ -2555,8 +2354,6 @@ func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RemoveTagsFromResourceOutput{} req.Data = output return @@ -2732,8 +2529,9 @@ func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFro } // Creates a new DB instance from a DB snapshot. The target database is created -// from the source database restore point with the most of original configuration -// with the default security group and the default DB parameter group. By default, +// from the source database restore point with the most of original configuration, +// but in a system chosen availability zone with the default security group, +// the default subnet group, and the default DB parameter group. By default, // the new DB instance is created as a single-AZ deployment except when the // instance is a SQL Server instance that has an option group that is associated // with mirroring; in this case, the instance becomes a mirrored AZ deployment @@ -2747,9 +2545,6 @@ func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFro // in the call to the RestoreDBInstanceFromDBSnapshot action. The result is // that you will replace the original DB instance with the DB instance created // from the snapshot. -// -// If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier -// must be the ARN of the shared DB snapshot. func (c *RDS) RestoreDBInstanceFromDBSnapshot(input *RestoreDBInstanceFromDBSnapshotInput) (*RestoreDBInstanceFromDBSnapshotOutput, error) { req, out := c.RestoreDBInstanceFromDBSnapshotRequest(input) err := req.Send() @@ -2776,13 +2571,10 @@ func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPo return } -// Restores a DB instance to an arbitrary point in time. You can restore to -// any point in time before the time identified by the LatestRestorableTime -// property. You can restore to a point up to the number of days specified by -// the BackupRetentionPeriod property. -// -// The target database is created with most of the original configuration, -// but in a system-selected availability zone, with the default security group, +// Restores a DB instance to an arbitrary point-in-time. Users can restore to +// any point in time before the LatestRestorableTime for up to BackupRetentionPeriod +// days. The target database is created with the most of original configuration, +// but in a system chosen availability zone with the default security group, // the default subnet group, and the default DB parameter group. By default, // the new DB instance is created as a single-AZ deployment except when the // instance is a SQL Server instance that has an option group that is associated @@ -2827,8 +2619,6 @@ func (c *RDS) RevokeDBSecurityGroupIngress(input *RevokeDBSecurityGroupIngressIn // Describes a quota for an AWS account, for example, the number of DB instances // allowed. type AccountQuota struct { - _ struct{} `type:"structure"` - // The name of the Amazon RDS quota for this AWS account. AccountQuotaName *string `type:"string"` @@ -2837,6 +2627,12 @@ type AccountQuota struct { // The amount currently used toward the quota maximum. Used *int64 `type:"long"` + + metadataAccountQuota `json:"-" xml:"-"` +} + +type metadataAccountQuota struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2850,29 +2646,28 @@ func (s AccountQuota) GoString() string { } type AddSourceIdentifierToSubscriptionInput struct { - _ struct{} `type:"structure"` - // The identifier of the event source to be added. An identifier must begin // with a letter and must contain only ASCII letters, digits, and hyphens; it // cannot end with a hyphen or contain two consecutive hyphens. // // Constraints: // - // If the source type is a DB instance, then a DBInstanceIdentifier must - // be supplied. - // - // If the source type is a DB security group, a DBSecurityGroupName must - // be supplied. - // - // If the source type is a DB parameter group, a DBParameterGroupName must - // be supplied. - // - // If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied. + // If the source type is a DB instance, then a DBInstanceIdentifier must be + // supplied. If the source type is a DB security group, a DBSecurityGroupName + // must be supplied. If the source type is a DB parameter group, a DBParameterGroupName + // must be supplied. If the source type is a DB snapshot, a DBSnapshotIdentifier + // must be supplied. SourceIdentifier *string `type:"string" required:"true"` // The name of the RDS event notification subscription you want to add a source // identifier to. SubscriptionName *string `type:"string" required:"true"` + + metadataAddSourceIdentifierToSubscriptionInput `json:"-" xml:"-"` +} + +type metadataAddSourceIdentifierToSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2885,28 +2680,16 @@ func (s AddSourceIdentifierToSubscriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddSourceIdentifierToSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddSourceIdentifierToSubscriptionInput"} - if s.SourceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceIdentifier")) - } - if s.SubscriptionName == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type AddSourceIdentifierToSubscriptionOutput struct { - _ struct{} `type:"structure"` - // Contains the results of a successful invocation of the DescribeEventSubscriptions // action. EventSubscription *EventSubscription `type:"structure"` + + metadataAddSourceIdentifierToSubscriptionOutput `json:"-" xml:"-"` +} + +type metadataAddSourceIdentifierToSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2920,8 +2703,6 @@ func (s AddSourceIdentifierToSubscriptionOutput) GoString() string { } type AddTagsToResourceInput struct { - _ struct{} `type:"structure"` - // The Amazon RDS resource the tags will be added to. This value is an Amazon // Resource Name (ARN). For information about creating an ARN, see Constructing // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN). @@ -2929,6 +2710,12 @@ type AddTagsToResourceInput struct { // The tags to be assigned to the Amazon RDS resource. Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"` + + metadataAddTagsToResourceInput `json:"-" xml:"-"` +} + +type metadataAddTagsToResourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2941,24 +2728,12 @@ func (s AddTagsToResourceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AddTagsToResourceOutput struct { + metadataAddTagsToResourceOutput `json:"-" xml:"-"` } -type AddTagsToResourceOutput struct { - _ struct{} `type:"structure"` +type metadataAddTagsToResourceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2972,11 +2747,7 @@ func (s AddTagsToResourceOutput) GoString() string { } type ApplyPendingMaintenanceActionInput struct { - _ struct{} `type:"structure"` - // The pending maintenance action to apply to this resource. - // - // Valid values: system-update, db-upgrade ApplyAction *string `type:"string" required:"true"` // A value that specifies the type of opt-in request, or undoes an opt-in request. @@ -2984,18 +2755,21 @@ type ApplyPendingMaintenanceActionInput struct { // // Valid values: // - // immediate - Apply the maintenance action immediately. - // - // next-maintenance - Apply the maintenance action during the next maintenance - // window for the resource. - // - // undo-opt-in - Cancel any existing next-maintenance opt-in requests. + // immediate - Apply the maintenance action immediately. next-maintenance + // - Apply the maintenance action during the next maintenance window for the + // resource. undo-opt-in - Cancel any existing next-maintenance opt-in requests. OptInType *string `type:"string" required:"true"` // The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance // action applies to. For information about creating an ARN, see Constructing // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN). ResourceIdentifier *string `type:"string" required:"true"` + + metadataApplyPendingMaintenanceActionInput `json:"-" xml:"-"` +} + +type metadataApplyPendingMaintenanceActionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3008,30 +2782,15 @@ func (s ApplyPendingMaintenanceActionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ApplyPendingMaintenanceActionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ApplyPendingMaintenanceActionInput"} - if s.ApplyAction == nil { - invalidParams.Add(request.NewErrParamRequired("ApplyAction")) - } - if s.OptInType == nil { - invalidParams.Add(request.NewErrParamRequired("OptInType")) - } - if s.ResourceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ApplyPendingMaintenanceActionOutput struct { - _ struct{} `type:"structure"` - // Describes the pending maintenance actions for a resource. ResourcePendingMaintenanceActions *ResourcePendingMaintenanceActions `type:"structure"` + + metadataApplyPendingMaintenanceActionOutput `json:"-" xml:"-"` +} + +type metadataApplyPendingMaintenanceActionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3045,8 +2804,6 @@ func (s ApplyPendingMaintenanceActionOutput) GoString() string { } type AuthorizeDBSecurityGroupIngressInput struct { - _ struct{} `type:"structure"` - // The IP range to authorize. CIDRIP *string `type:"string"` @@ -3069,6 +2826,12 @@ type AuthorizeDBSecurityGroupIngressInput struct { // EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId // must be provided. EC2SecurityGroupOwnerId *string `type:"string"` + + metadataAuthorizeDBSecurityGroupIngressInput `json:"-" xml:"-"` +} + +type metadataAuthorizeDBSecurityGroupIngressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3081,35 +2844,19 @@ func (s AuthorizeDBSecurityGroupIngressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AuthorizeDBSecurityGroupIngressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AuthorizeDBSecurityGroupIngressInput"} - if s.DBSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type AuthorizeDBSecurityGroupIngressOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // DescribeDBSecurityGroups - // - // AuthorizeDBSecurityGroupIngress - // - // CreateDBSecurityGroup - // - // RevokeDBSecurityGroupIngress - // - // This data type is used as a response element in the DescribeDBSecurityGroups - // action. + // DescribeDBSecurityGroups AuthorizeDBSecurityGroupIngress CreateDBSecurityGroup + // RevokeDBSecurityGroupIngress This data type is used as a response element + // in the DescribeDBSecurityGroups action. DBSecurityGroup *DBSecurityGroup `type:"structure"` + + metadataAuthorizeDBSecurityGroupIngressOutput `json:"-" xml:"-"` +} + +type metadataAuthorizeDBSecurityGroupIngressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3124,14 +2871,16 @@ func (s AuthorizeDBSecurityGroupIngressOutput) GoString() string { // Contains Availability Zone information. // -// This data type is used as an element in the following data type: -// -// OrderableDBInstanceOption +// This data type is used as an element in the following data type: OrderableDBInstanceOption type AvailabilityZone struct { - _ struct{} `type:"structure"` - // The name of the availability zone. Name *string `type:"string"` + + metadataAvailabilityZone `json:"-" xml:"-"` +} + +type metadataAvailabilityZone struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3146,8 +2895,6 @@ func (s AvailabilityZone) GoString() string { // A CA certificate for an AWS account. type Certificate struct { - _ struct{} `type:"structure"` - // The unique key that identifies a certificate. CertificateIdentifier *string `type:"string"` @@ -3162,6 +2909,12 @@ type Certificate struct { // The final date that the certificate continues to be valid. ValidTill *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataCertificate `json:"-" xml:"-"` +} + +type metadataCertificate struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3176,13 +2929,17 @@ func (s Certificate) GoString() string { // This data type is used as a response element in the action DescribeDBEngineVersions. type CharacterSet struct { - _ struct{} `type:"structure"` - // The description of the character set. CharacterSetDescription *string `type:"string"` // The name of the character set. CharacterSetName *string `type:"string"` + + metadataCharacterSet `json:"-" xml:"-"` +} + +type metadataCharacterSet struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3196,20 +2953,14 @@ func (s CharacterSet) GoString() string { } type CopyDBClusterSnapshotInput struct { - _ struct{} `type:"structure"` - // The identifier of the DB cluster snapshot to copy. This parameter is not // case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. - // - // First character must be a letter. - // - // Cannot end with a hyphen or contain two consecutive hyphens. - // - // Example: my-cluster-snapshot1 + // Must contain from 1 to 63 alphanumeric characters or hyphens. First character + // must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. + // Example: my-cluster-snapshot1 SourceDBClusterSnapshotIdentifier *string `type:"string" required:"true"` // A list of tags. @@ -3220,14 +2971,16 @@ type CopyDBClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. - // - // First character must be a letter. - // - // Cannot end with a hyphen or contain two consecutive hyphens. - // - // Example: my-cluster-snapshot2 + // Must contain from 1 to 63 alphanumeric characters or hyphens. First character + // must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. + // Example: my-cluster-snapshot2 TargetDBClusterSnapshotIdentifier *string `type:"string" required:"true"` + + metadataCopyDBClusterSnapshotInput `json:"-" xml:"-"` +} + +type metadataCopyDBClusterSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3240,34 +2993,18 @@ func (s CopyDBClusterSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CopyDBClusterSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CopyDBClusterSnapshotInput"} - if s.SourceDBClusterSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceDBClusterSnapshotIdentifier")) - } - if s.TargetDBClusterSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("TargetDBClusterSnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CopyDBClusterSnapshotOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBClusterSnapshot - // - // DeleteDBClusterSnapshot - // - // This data type is used as a response element in the DescribeDBClusterSnapshots - // action. + // CreateDBClusterSnapshot DeleteDBClusterSnapshot This data type is + // used as a response element in the DescribeDBClusterSnapshots action. DBClusterSnapshot *DBClusterSnapshot `type:"structure"` + + metadataCopyDBClusterSnapshotOutput `json:"-" xml:"-"` +} + +type metadataCopyDBClusterSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3281,22 +3018,17 @@ func (s CopyDBClusterSnapshotOutput) GoString() string { } type CopyDBParameterGroupInput struct { - _ struct{} `type:"structure"` - // The identifier or ARN for the source DB parameter group. For information // about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN) // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN). // // Constraints: // - // Must specify a valid DB parameter group. - // - // If the source DB parameter group is in the same region as the copy, specify - // a valid DB parameter group identifier, for example my-db-param-group, or - // a valid ARN. - // - // If the source DB parameter group is in a different region than the copy, - // specify a valid DB parameter group ARN, for example arn:aws:rds:us-west-2:123456789012:pg:special-parameters. + // Must specify a valid DB parameter group. If the source DB parameter group + // is in the same region as the copy, specify a valid DB parameter group identifier, + // for example my-db-param-group, or a valid ARN. If the source DB parameter + // group is in a different region than the copy, specify a valid DB parameter + // group ARN, for example arn:aws:rds:us-west-2:123456789012:pg:special-parameters. SourceDBParameterGroupIdentifier *string `type:"string" required:"true"` // A list of tags. @@ -3309,16 +3041,16 @@ type CopyDBParameterGroupInput struct { // // Constraints: // - // Cannot be null, empty, or blank - // - // Must contain from 1 to 255 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // Example: my-db-parameter-group + // Cannot be null, empty, or blank Must contain from 1 to 255 alphanumeric + // characters or hyphens First character must be a letter Cannot end with a + // hyphen or contain two consecutive hyphens Example: my-db-parameter-group TargetDBParameterGroupIdentifier *string `type:"string" required:"true"` + + metadataCopyDBParameterGroupInput `json:"-" xml:"-"` +} + +type metadataCopyDBParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3331,34 +3063,19 @@ func (s CopyDBParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CopyDBParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CopyDBParameterGroupInput"} - if s.SourceDBParameterGroupIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceDBParameterGroupIdentifier")) - } - if s.TargetDBParameterGroupDescription == nil { - invalidParams.Add(request.NewErrParamRequired("TargetDBParameterGroupDescription")) - } - if s.TargetDBParameterGroupIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("TargetDBParameterGroupIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CopyDBParameterGroupOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the CreateDBParameterGroup // action. // // This data type is used as a request parameter in the DeleteDBParameterGroup // action, and as a response element in the DescribeDBParameterGroups action. DBParameterGroup *DBParameterGroup `type:"structure"` + + metadataCopyDBParameterGroupOutput `json:"-" xml:"-"` +} + +type metadataCopyDBParameterGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3372,46 +3089,16 @@ func (s CopyDBParameterGroupOutput) GoString() string { } type CopyDBSnapshotInput struct { - _ struct{} `type:"structure"` - - // True to copy all tags from the source DB snapshot to the target DB snapshot; - // otherwise false. The default is false. - CopyTags *bool `type:"boolean"` - - // The AWS Key Management Service (AWS KMS) key identifier for an encrypted - // DB snapshot. The KMS key identifier is the Amazon Resource Name (ARN) or - // the KMS key alias for the KMS encryption key. - // - // If you copy an unencrypted DB snapshot and specify a value for the KmsKeyId - // parameter, Amazon RDS encrypts the target DB snapshot using the specified - // KMS encryption key. - // - // If you copy an encrypted DB snapshot from your AWS account, you can specify - // a value for KmsKeyId to encrypt the copy with a new KMS encryption key. If - // you don't specify a value for KmsKeyId then the copy of the DB snapshot is - // encrypted with the same KMS key as the source DB snapshot. - // - // If you copy an encrypted DB snapshot that is shared from another AWS account, - // then you must specify a value for KmsKeyId. - KmsKeyId *string `type:"string"` - // The identifier for the source DB snapshot. // - // If you are copying from a shared manual DB snapshot, this must be the ARN - // of the shared DB snapshot. - // // Constraints: // - // Must specify a valid system snapshot in the "available" state. - // - // If the source snapshot is in the same region as the copy, specify a valid - // DB snapshot identifier. - // - // If the source snapshot is in a different region than the copy, specify - // a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot + // Must specify a valid system snapshot in the "available" state. If the source + // snapshot is in the same region as the copy, specify a valid DB snapshot identifier. + // If the source snapshot is in a different region than the copy, specify a + // valid DB snapshot ARN. For more information, go to Copying a DB Snapshot // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html). - // - // Example: rds:mydb-2012-04-02-00-01 + // Example: rds:mydb-2012-04-02-00-01 // // Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805 SourceDBSnapshotIdentifier *string `type:"string" required:"true"` @@ -3423,16 +3110,16 @@ type CopyDBSnapshotInput struct { // // Constraints: // - // Cannot be null, empty, or blank - // - // Must contain from 1 to 255 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // Example: my-db-snapshot + // Cannot be null, empty, or blank Must contain from 1 to 255 alphanumeric + // characters or hyphens First character must be a letter Cannot end with a + // hyphen or contain two consecutive hyphens Example: my-db-snapshot TargetDBSnapshotIdentifier *string `type:"string" required:"true"` + + metadataCopyDBSnapshotInput `json:"-" xml:"-"` +} + +type metadataCopyDBSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3445,34 +3132,18 @@ func (s CopyDBSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CopyDBSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CopyDBSnapshotInput"} - if s.SourceDBSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceDBSnapshotIdentifier")) - } - if s.TargetDBSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("TargetDBSnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CopyDBSnapshotOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBSnapshot - // - // DeleteDBSnapshot - // - // This data type is used as a response element in the DescribeDBSnapshots - // action. + // CreateDBSnapshot DeleteDBSnapshot This data type is used as a response + // element in the DescribeDBSnapshots action. DBSnapshot *DBSnapshot `type:"structure"` + + metadataCopyDBSnapshotOutput `json:"-" xml:"-"` +} + +type metadataCopyDBSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3486,21 +3157,15 @@ func (s CopyDBSnapshotOutput) GoString() string { } type CopyOptionGroupInput struct { - _ struct{} `type:"structure"` - // The identifier or ARN for the source option group. For information about // creating an ARN, see Constructing an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN). // // Constraints: // - // Must specify a valid option group. - // - // If the source option group is in the same region as the copy, specify - // a valid option group identifier, for example my-option-group, or a valid - // ARN. - // - // If the source option group is in a different region than the copy, specify - // a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options. + // Must specify a valid option group. If the source option group is in the + // same region as the copy, specify a valid option group identifier, for example + // my-option-group, or a valid ARN. If the source option group is in a different + // region than the copy, specify a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options. SourceOptionGroupIdentifier *string `type:"string" required:"true"` // A list of tags. @@ -3513,16 +3178,16 @@ type CopyOptionGroupInput struct { // // Constraints: // - // Cannot be null, empty, or blank - // - // Must contain from 1 to 255 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // Example: my-option-group + // Cannot be null, empty, or blank Must contain from 1 to 255 alphanumeric + // characters or hyphens First character must be a letter Cannot end with a + // hyphen or contain two consecutive hyphens Example: my-option-group TargetOptionGroupIdentifier *string `type:"string" required:"true"` + + metadataCopyOptionGroupInput `json:"-" xml:"-"` +} + +type metadataCopyOptionGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3535,29 +3200,14 @@ func (s CopyOptionGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CopyOptionGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CopyOptionGroupInput"} - if s.SourceOptionGroupIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceOptionGroupIdentifier")) - } - if s.TargetOptionGroupDescription == nil { - invalidParams.Add(request.NewErrParamRequired("TargetOptionGroupDescription")) - } - if s.TargetOptionGroupIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("TargetOptionGroupIdentifier")) - } +type CopyOptionGroupOutput struct { + OptionGroup *OptionGroup `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCopyOptionGroupOutput `json:"-" xml:"-"` } -type CopyOptionGroupOutput struct { - _ struct{} `type:"structure"` - - OptionGroup *OptionGroup `type:"structure"` +type metadataCopyOptionGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3571,21 +3221,20 @@ func (s CopyOptionGroupOutput) GoString() string { } type CreateDBClusterInput struct { - _ struct{} `type:"structure"` - // A list of EC2 Availability Zones that instances in the DB cluster can be // created in. For information on regions and Availability Zones, see Regions // and Availability Zones (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html). AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"` - // The number of days for which automated backups are retained. You must specify - // a minimum value of 1. + // The number of days for which automated backups are retained. Setting this + // parameter to a positive number enables backups. Setting this parameter to + // 0 disables automated backups. // // Default: 1 // // Constraints: // - // Must be a value from 1 to 35 + // Must be a value from 0 to 35 BackupRetentionPeriod *int64 `type:"integer"` // A value that indicates that the DB cluster should be associated with the @@ -3596,34 +3245,22 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. - // - // First character must be a letter. - // - // Cannot end with a hyphen or contain two consecutive hyphens. - // - // Example: my-cluster1 - DBClusterIdentifier *string `type:"string" required:"true"` + // Must contain from 1 to 63 alphanumeric characters or hyphens. First character + // must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. + // Example: my-cluster1 + DBClusterIdentifier *string `type:"string"` // The name of the DB cluster parameter group to associate with this DB cluster. // If this argument is omitted, default.aurora5.6 for the specified engine will // be used. // - // Constraints: - // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter + // Constraints: // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBClusterParameterGroupName *string `type:"string"` // A DB subnet group to associate with this DB cluster. - // - // Constraints: Must contain no more than 255 alphanumeric characters, periods, - // underscores, spaces, or hyphens. Must not be default. - // - // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` // The name for your database of up to 8 alpha-numeric characters. If you do @@ -3633,45 +3270,29 @@ type CreateDBClusterInput struct { // The name of the database engine to be used for this DB cluster. // - // Valid Values: aurora - Engine *string `type:"string" required:"true"` + // Valid Values: MySQL + Engine *string `type:"string"` // The version number of the database engine to use. // // Aurora // - // Example: 5.6.10a + // Example: 5.6.0 EngineVersion *string `type:"string"` - // The KMS key identifier for an encrypted DB cluster. - // - // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption - // key. If you are creating a DB cluster with the same AWS account that owns - // the KMS encryption key used to encrypt the new DB cluster, then you can use - // the KMS key alias instead of the ARN for the KM encryption key. - // - // If the StorageEncrypted parameter is true, and you do not specify a value - // for the KmsKeyId parameter, then Amazon RDS will use your default encryption - // key. AWS KMS creates the default encryption key for your AWS account. Your - // AWS account has a different default encryption key for each AWS region. - KmsKeyId *string `type:"string"` - // The password for the master database user. This password can contain any // printable ASCII character except "/", """, or "@". // // Constraints: Must contain from 8 to 41 characters. - MasterUserPassword *string `type:"string" required:"true"` + MasterUserPassword *string `type:"string"` // The name of the master user for the client DB cluster. // // Constraints: // - // Must be 1 to 16 alphanumeric characters. - // - // First character must be a letter. - // - // Cannot be a reserved word for the chosen database engine. - MasterUsername *string `type:"string" required:"true"` + // Must be 1 to 16 alphanumeric characters. First character must be a letter. + // Cannot be a reserved word for the chosen database engine. + MasterUsername *string `type:"string"` // A value that indicates that the DB cluster should be associated with the // specified option group. @@ -3695,13 +3316,9 @@ type CreateDBClusterInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. - // - // Times should be in Universal Coordinated Time (UTC). - // - // Must not conflict with the preferred maintenance window. - // - // Must be at least 30 minutes. + // Must be in the format hh24:mi-hh24:mi. Times should be in Universal Coordinated + // Time (UTC). Must not conflict with the preferred maintenance window. Must + // be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal @@ -3719,18 +3336,17 @@ type CreateDBClusterInput struct { // Constraints: Minimum 30-minute window. PreferredMaintenanceWindow *string `type:"string"` - // The Amazon Resource Name (ARN) of the source DB cluster if this DB cluster - // is created as a Read Replica. - ReplicationSourceIdentifier *string `type:"string"` - - // Specifies whether the DB cluster is encrypted. - StorageEncrypted *bool `type:"boolean"` - // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` // A list of EC2 VPC security groups to associate with this DB cluster. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` + + metadataCreateDBClusterInput `json:"-" xml:"-"` +} + +type metadataCreateDBClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3743,48 +3359,19 @@ func (s CreateDBClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDBClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterInput"} - if s.DBClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) - } - if s.Engine == nil { - invalidParams.Add(request.NewErrParamRequired("Engine")) - } - if s.MasterUserPassword == nil { - invalidParams.Add(request.NewErrParamRequired("MasterUserPassword")) - } - if s.MasterUsername == nil { - invalidParams.Add(request.NewErrParamRequired("MasterUsername")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateDBClusterOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster - // - // DeleteDBCluster - // - // FailoverDBCluster - // - // ModifyDBCluster - // - // RestoreDBClusterFromSnapshot - // - // RestoreDBClusterToPointInTime - // - // This data type is used as a response element in the DescribeDBClusters - // action. + // CreateDBCluster DeleteDBCluster FailoverDBCluster ModifyDBCluster + // RestoreDBClusterFromSnapshot This data type is used as a response element + // in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` + + metadataCreateDBClusterOutput `json:"-" xml:"-"` +} + +type metadataCreateDBClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3798,19 +3385,13 @@ func (s CreateDBClusterOutput) GoString() string { } type CreateDBClusterParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the DB cluster parameter group. // - // Constraints: - // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Constraints: // - // This value is stored as a lowercase string. + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens This value is + // stored as a lowercase string. DBClusterParameterGroupName *string `type:"string" required:"true"` // The DB cluster parameter group family name. A DB cluster parameter group @@ -3824,6 +3405,12 @@ type CreateDBClusterParameterGroupInput struct { // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateDBClusterParameterGroupInput `json:"-" xml:"-"` +} + +type metadataCreateDBClusterParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3836,28 +3423,7 @@ func (s CreateDBClusterParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDBClusterParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterParameterGroupInput"} - if s.DBClusterParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName")) - } - if s.DBParameterGroupFamily == nil { - invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily")) - } - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateDBClusterParameterGroupOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the CreateDBClusterParameterGroup // action. // @@ -3865,6 +3431,12 @@ type CreateDBClusterParameterGroupOutput struct { // action, and as a response element in the DescribeDBClusterParameterGroups // action. DBClusterParameterGroup *DBClusterParameterGroup `type:"structure"` + + metadataCreateDBClusterParameterGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateDBClusterParameterGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3878,20 +3450,14 @@ func (s CreateDBClusterParameterGroupOutput) GoString() string { } type CreateDBClusterSnapshotInput struct { - _ struct{} `type:"structure"` - // The identifier of the DB cluster to create a snapshot for. This parameter // is not case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. - // - // First character must be a letter. - // - // Cannot end with a hyphen or contain two consecutive hyphens. - // - // Example: my-cluster1 + // Must contain from 1 to 63 alphanumeric characters or hyphens. First character + // must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. + // Example: my-cluster1 DBClusterIdentifier *string `type:"string" required:"true"` // The identifier of the DB cluster snapshot. This parameter is stored as a @@ -3899,17 +3465,19 @@ type CreateDBClusterSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens. - // - // First character must be a letter. - // - // Cannot end with a hyphen or contain two consecutive hyphens. - // - // Example: my-cluster1-snapshot1 + // Must contain from 1 to 63 alphanumeric characters or hyphens. First character + // must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. + // Example: my-cluster1-snapshot1 DBClusterSnapshotIdentifier *string `type:"string" required:"true"` // The tags to be assigned to the DB cluster snapshot. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateDBClusterSnapshotInput `json:"-" xml:"-"` +} + +type metadataCreateDBClusterSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3922,34 +3490,18 @@ func (s CreateDBClusterSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDBClusterSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterSnapshotInput"} - if s.DBClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) - } - if s.DBClusterSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateDBClusterSnapshotOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBClusterSnapshot - // - // DeleteDBClusterSnapshot - // - // This data type is used as a response element in the DescribeDBClusterSnapshots - // action. + // CreateDBClusterSnapshot DeleteDBClusterSnapshot This data type is + // used as a response element in the DescribeDBClusterSnapshots action. DBClusterSnapshot *DBClusterSnapshot `type:"structure"` + + metadataCreateDBClusterSnapshotOutput `json:"-" xml:"-"` +} + +type metadataCreateDBClusterSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3963,33 +3515,27 @@ func (s CreateDBClusterSnapshotOutput) GoString() string { } type CreateDBInstanceInput struct { - _ struct{} `type:"structure"` - // The amount of storage (in gigabytes) to be initially allocated for the database // instance. // - // Type: Integer + // Type: Integer // // MySQL // - // Constraints: Must be an integer from 5 to 6144. - // - // MariaDB - // - // Constraints: Must be an integer from 5 to 6144. + // Constraints: Must be an integer from 5 to 6144. // // PostgreSQL // - // Constraints: Must be an integer from 5 to 6144. + // Constraints: Must be an integer from 5 to 6144. // // Oracle // - // Constraints: Must be an integer from 10 to 6144. + // Constraints: Must be an integer from 10 to 6144. // // SQL Server // - // Constraints: Must be an integer from 200 to 4096 (Standard Edition and Enterprise - // Edition) or from 20 to 4096 (Express Edition and Web Edition) + // Constraints: Must be an integer from 200 to 4096 (Standard Edition and + // Enterprise Edition) or from 20 to 4096 (Express Edition and Web Edition) AllocatedStorage *int64 `type:"integer"` // Indicates that minor engine upgrades will be applied automatically to the @@ -4002,7 +3548,7 @@ type CreateDBInstanceInput struct { // For information on regions and Availability Zones, see Regions and Availability // Zones (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html). // - // Default: A random, system-chosen Availability Zone in the endpoint's region. + // Default: A random, system-chosen Availability Zone in the endpoint's region. // // Example: us-east-1d // @@ -4015,23 +3561,18 @@ type CreateDBInstanceInput struct { // parameter to a positive number enables backups. Setting this parameter to // 0 disables automated backups. // - // Default: 1 + // Default: 1 // // Constraints: // - // Must be a value from 0 to 35 - // - // Cannot be set to 0 if the DB instance is a source to Read Replicas + // Must be a value from 0 to 35 Cannot be set to 0 if the DB instance is a + // source to Read Replicas BackupRetentionPeriod *int64 `type:"integer"` // For supported engines, indicates that the DB instance should be associated // with the specified CharacterSet. CharacterSetName *string `type:"string"` - // True to copy all tags from the DB instance to snapshots of the DB instance; - // otherwise false. The default is false. - CopyTagsToSnapshot *bool `type:"boolean"` - // The identifier of the DB cluster that the instance will belong to. // // For information on creating a DB cluster, see CreateDBCluster. @@ -4043,24 +3584,18 @@ type CreateDBInstanceInput struct { // // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | // db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium - // | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge - // | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge + // | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge // | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small - // | db.t2.medium | db.t2.large + // | db.t2.medium DBInstanceClass *string `type:"string" required:"true"` // The DB instance identifier. This parameter is stored as a lowercase string. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 - // for SQL Server). - // - // First character must be a letter. - // - // Cannot end with a hyphen or contain two consecutive hyphens. - // - // Example: mydbinstance + // Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 for + // SQL Server). First character must be a letter. Cannot end with a hyphen or + // contain two consecutive hyphens. Example: mydbinstance DBInstanceIdentifier *string `type:"string" required:"true"` // The meaning of this parameter differs according to the database engine you @@ -4075,22 +3610,8 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must contain 1 to 64 alphanumeric characters - // - // Cannot be a word reserved by the specified database engine - // - // MariaDB - // - // The name of the database to create when the DB instance is created. If this - // parameter is not specified, no database is created in the DB instance. - // - // Constraints: - // - // Must contain 1 to 64 alphanumeric characters - // - // Cannot be a word reserved by the specified database engine - // - // PostgreSQL + // Must contain 1 to 64 alphanumeric characters Cannot be a word reserved + // by the specified database engine PostgreSQL // // The name of the database to create when the DB instance is created. If this // parameter is not specified, the default "postgres" database is created in @@ -4098,260 +3619,211 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must contain 1 to 63 alphanumeric characters + // Must contain 1 to 63 alphanumeric characters Must begin with a letter or + // an underscore. Subsequent characters can be letters, underscores, or digits + // (0-9). Cannot be a word reserved by the specified database engine Oracle // - // Must begin with a letter or an underscore. Subsequent characters can be - // letters, underscores, or digits (0-9). - // - // Cannot be a word reserved by the specified database engine - // - // Oracle - // - // The Oracle System ID (SID) of the created DB instance. + // The Oracle System ID (SID) of the created DB instance. // // Default: ORCL // // Constraints: // - // Cannot be longer than 8 characters - // - // SQL Server + // Cannot be longer than 8 characters SQL Server // // Not applicable. Must be null. - // - // Amazon Aurora - // - // The name of the database to create when the primary instance of the DB cluster - // is created. If this parameter is not specified, no database is created in - // the DB instance. - // - // Constraints: - // - // Must contain 1 to 64 alphanumeric characters - // - // Cannot be a word reserved by the specified database engine DBName *string `type:"string"` // The name of the DB parameter group to associate with this DB instance. If // this argument is omitted, the default DBParameterGroup for the specified // engine will be used. // - // Constraints: - // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter + // Constraints: // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupName *string `type:"string"` // A list of DB security groups to associate with this DB instance. // - // Default: The default DB security group for the database engine. + // Default: The default DB security group for the database engine. DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"` // A DB subnet group to associate with this DB instance. // - // If there is no DB subnet group, then it is a non-VPC DB instance. + // If there is no DB subnet group, then it is a non-VPC DB instance. DBSubnetGroupName *string `type:"string"` - // Specify the Active Directory Domain to create the instance in. - Domain *string `type:"string"` - - // Specify the name of the IAM role to be used when making API calls to the - // Directory Service. - DomainIAMRoleName *string `type:"string"` - // The name of the database engine to be used for this instance. // - // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee - // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora + // Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee + // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres // - // Not every database engine is available for every AWS region. + // Not every database engine is available for every AWS region. Engine *string `type:"string" required:"true"` // The version number of the database engine to use. // - // The following are the database engines and major and minor versions that + // The following are the database engines and major and minor versions that // are available with Amazon RDS. Not every database engine is available for // every AWS region. // - // Amazon Aurora - // - // Version 5.6 (only available in AWS regions ap-northeast-1, ap-northeast-2, - // ap-southeast-2, eu-west-1, us-east-1, us-west-2): 5.6.10a - // - // MariaDB - // - // Version 10.0 (available in all AWS regions): 10.0.17 | 10.0.24 - // - // Microsoft SQL Server Enterprise Edition (sqlserver-ee) - // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 - // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 - // - // Microsoft SQL Server Express Edition (sqlserver-ex) - // - // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 - // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 - // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 - // - // Microsoft SQL Server Standard Edition (sqlserver-se) - // - // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 - // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 - // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 - // - // Microsoft SQL Server Web Edition (sqlserver-web) - // - // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1 - // - // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1 - // | 11.00.6020.0.v1 - // - // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1 - // | 10.50.6529.0.v1 - // - // MySQL - // - // Version 5.7 (available in all AWS regions): 5.7.10 | 5.7.11 - // - // Version 5.6 (available in all AWS regions except ap-northeast-2): 5.6.19a - // | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 - // - // Version 5.6 (available in all AWS regions): 5.6.23 | 5.6.27 | 5.6.29 - // - // Version 5.5 (available in all AWS regions except eu-central-1, ap-northeast-2): - // 5.5.40 | 5.5.40a - // - // Version 5.5 (available in all AWS regions except ap-northeast-2): 5.5.40b - // | 5.5.41 - // - // Version 5.5 (available in all AWS regions): 5.5.42 | 5.5.46 - // - // Version 5.1 (available in all AWS regions except eu-central-1, ap-northeast-2): - // 5.1.73a | 5.1.73b - // - // Oracle Database Enterprise Edition (oracle-ee) - // - // Version 12.1 (available in all AWS regions except ap-northeast-2): 12.1.0.1.v1 - // | 12.1.0.1.v2 - // - // Version 12.1 (available in all AWS regions except ap-northeast-2, us-gov-west-1): - // 12.1.0.1.v3 | 12.1.0.1.v4 - // - // Version 12.1 (available in all AWS regions): 12.1.0.2.v1 - // - // Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 - // | 12.1.0.2.v3 - // - // Version 11.2 (available in all AWS regions except eu-central-1, ap-northeast-2): - // 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 - // - // Version 11.2 (available in all AWS regions except ap-northeast-2): 11.2.0.3.v1 - // | 11.2.0.3.v2 | 11.2.0.3.v3 - // - // Version 11.2 (available in all AWS regions except ap-northeast-2, us-gov-west-1): - // 11.2.0.3.v4 - // - // Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 - // | 11.2.0.4.v4 - // - // Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 - // | 11.2.0.4.v6 | 11.2.0.4.v7 - // - // Oracle Database Standard Edition (oracle-se) - // - // Version 12.1 (available in all AWS regions except ap-northeast-2): 12.1.0.1.v1 - // | 12.1.0.1.v2 - // - // Version 12.1 (available in all AWS regions except ap-northeast-2, us-gov-west-1): - // 12.1.0.1.v3 | 12.1.0.1.v4 - // - // Version 11.2 (available in all AWS regions except eu-central-1, ap-northeast-2): - // 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 - // - // Version 11.2 (available in all AWS regions except ap-northeast-2): 11.2.0.3.v1 - // | 11.2.0.3.v2 | 11.2.0.3.v3 - // - // Version 11.2 (available in all AWS regions except ap-northeast-2, us-gov-west-1): - // 11.2.0.3.v4 - // - // Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 - // | 11.2.0.4.v4 - // - // Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 - // | 11.2.0.4.v6 | 11.2.0.4.v7 - // - // Oracle Database Standard Edition One (oracle-se1) - // - // Version 12.1 (available in all AWS regions except ap-northeast-2): 12.1.0.1.v1 - // | 12.1.0.1.v2 - // - // Version 12.1 (available in all AWS regions except ap-northeast-2, us-gov-west-1): - // 12.1.0.1.v3 | 12.1.0.1.v4 - // - // Version 11.2 (available in all AWS regions except eu-central-1, ap-northeast-2): - // 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 - // - // Version 11.2 (available in all AWS regions except ap-northeast-2): 11.2.0.3.v1 - // | 11.2.0.3.v2 | 11.2.0.3.v3 - // - // Version 11.2 (available in all AWS regions except ap-northeast-2, us-gov-west-1): - // 11.2.0.3.v4 - // - // Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3 - // | 11.2.0.4.v4 - // - // Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5 - // | 11.2.0.4.v6 | 11.2.0.4.v7 - // - // Oracle Database Standard Edition Two (oracle-se2) - // - // Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2 - // | 12.1.0.2.v3 - // - // PostgreSQL - // - // Version 9.5 (available in all AWS regions except us-gov-west-1): 9.5.2 - // - // Version 9.4 (available in all AWS regions): 9.4.1 | 9.4.4 | 9.4.5 - // - // Version 9.4 (available in all AWS regions except us-gov-west-1): 9.4.7 - // - // Version 9.3 (available in all AWS regions except eu-central-1, ap-northeast-2): - // 9.3.1 | 9.3.2 - // - // Version 9.3 (available in all AWS regions except ap-northeast-2): 9.3.10 - // | 9.3.3 | 9.3.5 | 9.3.6 | 9.3.9 - // - // Version 9.3 (available in all AWS regions except ap-northeast-2, us-gov-west-1): - // 9.3.12 + // MySQL + // + // Version 5.1 (Only available in the following regions: ap-northeast-1, + // ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): + // 5.1.73a | 5.1.73b Version 5.5 (Only available in the following regions: + // ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, + // us-west-2): 5.5.40 | 5.5.40a Version 5.5 (Available in all regions): + // 5.5.40b | 5.5.41 | 5.5.42 Version 5.6 (Available in all regions): 5.6.19a + // | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 | 5.6.23 MySQL + // + // Version 5.1 (Only available in the following regions: ap-northeast-1, + // ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): + // 5.1.73a | 5.1.73b Version 5.5 (Only available in the following regions: + // ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, + // us-west-2): 5.5.40 | 5.5.40a Version 5.5 (Available in all regions): + // 5.5.40b | 5.5.41 | 5.5.42 Version 5.6 (Available in all regions): 5.6.19a + // | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 | 5.6.23 MySQL + // + // Version 5.1 (Only available in the following regions: ap-northeast-1, + // ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): + // 5.1.73a | 5.1.73b Version 5.5 (Only available in the following regions: + // ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, + // us-west-2): 5.5.40 | 5.5.40a Version 5.5 (Available in all regions): + // 5.5.40b | 5.5.41 | 5.5.42 Version 5.6 (Available in all regions): 5.6.19a + // | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 | 5.6.23 MySQL + // + // Version 5.1 (Only available in the following regions: ap-northeast-1, + // ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): + // 5.1.73a | 5.1.73b Version 5.5 (Only available in the following regions: + // ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, + // us-west-2): 5.5.40 | 5.5.40a Version 5.5 (Available in all regions): + // 5.5.40b | 5.5.41 | 5.5.42 Version 5.6 (Available in all regions): 5.6.19a + // | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22 | 5.6.23 Oracle Database Enterprise + // Edition (oracle-ee) + // + // Version 11.2 (Only available in the following regions: ap-northeast-1, + // ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): + // 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 Version + // 11.2 (Available in all regions): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 + // | 11.2.0.4.v3 Version 12.1 (Available in all regions): 12.1.0.1.v1 Oracle + // Database Enterprise Edition (oracle-ee) + // + // Version 11.2 (Only available in the following regions: ap-northeast-1, + // ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): + // 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 Version + // 11.2 (Available in all regions): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 + // | 11.2.0.4.v3 Version 12.1 (Available in all regions): 12.1.0.1.v1 Oracle + // Database Enterprise Edition (oracle-ee) + // + // Version 11.2 (Only available in the following regions: ap-northeast-1, + // ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): + // 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 Version + // 11.2 (Available in all regions): 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.4.v1 + // | 11.2.0.4.v3 Version 12.1 (Available in all regions): 12.1.0.1.v1 Oracle + // Database Standard Edition (oracle-se) + // + // Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 + // | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 Version 11.2 (Only + // available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 + // | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3 Version 12.1 (Only available + // in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1 Oracle + // Database Standard Edition (oracle-se) + // + // Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 + // | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 Version 11.2 (Only + // available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 + // | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3 Version 12.1 (Only available + // in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1 Oracle + // Database Standard Edition (oracle-se) + // + // Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 + // | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 Version 11.2 (Only + // available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 + // | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3 Version 12.1 (Only available + // in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1 Oracle + // Database Standard Edition One (oracle-se1) + // + // Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 + // | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 Version 11.2 (Only + // available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 + // | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3 Version 12.1 (Only available + // in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1 Oracle + // Database Standard Edition One (oracle-se1) + // + // Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 + // | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 Version 11.2 (Only + // available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 + // | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3 Version 12.1 (Only available + // in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1 Oracle + // Database Standard Edition One (oracle-se1) + // + // Version 11.2 (Only available in the following regions: us-west-1): 11.2.0.2.v3 + // | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7 Version 11.2 (Only + // available in the following regions: eu-central-1, us-west-1): 11.2.0.3.v1 + // | 11.2.0.3.v2 | 11.2.0.4.v1 | 11.2.0.4.v3 Version 12.1 (Only available + // in the following regions: eu-central-1, us-west-1): 12.1.0.1.v1 PostgreSQL + // + // Version 9.3 (Only available in the following regions: ap-northeast-1, + // ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): + // 9.3.1 | 9.3.2 Version 9.3 (Available in all regions): 9.3.3 | 9.3.5 | + // 9.3.6 Version 9.4 (Available in all regions): 9.4.1 PostgreSQL + // + // Version 9.3 (Only available in the following regions: ap-northeast-1, + // ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): + // 9.3.1 | 9.3.2 Version 9.3 (Available in all regions): 9.3.3 | 9.3.5 | + // 9.3.6 Version 9.4 (Available in all regions): 9.4.1 PostgreSQL + // + // Version 9.3 (Only available in the following regions: ap-northeast-1, + // ap-southeast-1, ap-southeast-2, eu-west-1, sa-east-1, us-west-1, us-west-2): + // 9.3.1 | 9.3.2 Version 9.3 (Available in all regions): 9.3.3 | 9.3.5 | + // 9.3.6 Version 9.4 (Available in all regions): 9.4.1 Microsoft SQL Server + // Enterprise Edition (sqlserver-ee) + // + // Version 10.50 (Only available in the following regions: eu-central-1, + // us-west-1): 10.50.2789.0.v1 Version 11.00 (Only available in the following + // regions: eu-central-1, us-west-1): 11.00.2100.60.v1 Microsoft SQL Server + // Enterprise Edition (sqlserver-ee) + // + // Version 10.50 (Only available in the following regions: eu-central-1, + // us-west-1): 10.50.2789.0.v1 Version 11.00 (Only available in the following + // regions: eu-central-1, us-west-1): 11.00.2100.60.v1 Microsoft SQL Server + // Express Edition (sqlserver-ex) + // + // Version 10.50 (Available in all regions): 10.50.2789.0.v1 Version 11.00 + // (Available in all regions): 11.00.2100.60.v1 Microsoft SQL Server Express + // Edition (sqlserver-ex) + // + // Version 10.50 (Available in all regions): 10.50.2789.0.v1 Version 11.00 + // (Available in all regions): 11.00.2100.60.v1 Microsoft SQL Server Standard + // Edition (sqlserver-se) + // + // Version 10.50 (Available in all regions): 10.50.2789.0.v1 Version 11.00 + // (Available in all regions): 11.00.2100.60.v1 Microsoft SQL Server Standard + // Edition (sqlserver-se) + // + // Version 10.50 (Available in all regions): 10.50.2789.0.v1 Version 11.00 + // (Available in all regions): 11.00.2100.60.v1 Microsoft SQL Server Web + // Edition (sqlserver-web) + // + // Version 10.50 (Available in all regions): 10.50.2789.0.v1 Version 11.00 + // (Available in all regions): 11.00.2100.60.v1 Microsoft SQL Server Web + // Edition (sqlserver-web) + // + // Version 10.50 (Available in all regions): 10.50.2789.0.v1 Version 11.00 + // (Available in all regions): 11.00.2100.60.v1 EngineVersion *string `type:"string"` // The amount of Provisioned IOPS (input/output operations per second) to be // initially allocated for the DB instance. // - // Constraints: Must be a multiple between 3 and 10 of the storage amount for - // the DB instance. Must also be an integer multiple of 1000. For example, if - // the size of your DB instance is 500 GB, then your Iops value can be 2000, - // 3000, 4000, or 5000. + // Constraints: To use PIOPS, this value must be an integer greater than 1000. Iops *int64 `type:"integer"` // The KMS key identifier for an encrypted DB instance. // - // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption + // The KMS key identifier is the Amazon Resoure Name (ARN) for the KMS encryption // key. If you are creating a DB instance with the same AWS account that owns // the KMS encryption key used to encrypt the new DB instance, then you can // use the KMS key alias instead of the ARN for the KM encryption key. @@ -4374,27 +3846,19 @@ type CreateDBInstanceInput struct { // // MySQL // - // Constraints: Must contain from 8 to 41 characters. - // - // MariaDB - // - // Constraints: Must contain from 8 to 41 characters. + // Constraints: Must contain from 8 to 41 characters. // // Oracle // - // Constraints: Must contain from 8 to 30 characters. + // Constraints: Must contain from 8 to 30 characters. // // SQL Server // - // Constraints: Must contain from 8 to 128 characters. + // Constraints: Must contain from 8 to 128 characters. // // PostgreSQL // - // Constraints: Must contain from 8 to 128 characters. - // - // Amazon Aurora - // - // Constraints: Must contain from 8 to 41 characters. + // Constraints: Must contain from 8 to 128 characters. MasterUserPassword *string `type:"string"` // The name of master user for the client DB instance. @@ -4403,72 +3867,27 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must be 1 to 16 alphanumeric characters. - // - // First character must be a letter. - // - // Cannot be a reserved word for the chosen database engine. - // - // MariaDB - // - // Constraints: - // - // Must be 1 to 16 alphanumeric characters. - // - // Cannot be a reserved word for the chosen database engine. - // - // Type: String + // Must be 1 to 16 alphanumeric characters. First character must be a letter. + // Cannot be a reserved word for the chosen database engine. Type: String // // Oracle // // Constraints: // - // Must be 1 to 30 alphanumeric characters. - // - // First character must be a letter. - // - // Cannot be a reserved word for the chosen database engine. - // - // SQL Server + // Must be 1 to 30 alphanumeric characters. First character must be a letter. + // Cannot be a reserved word for the chosen database engine. SQL Server // // Constraints: // - // Must be 1 to 128 alphanumeric characters. - // - // First character must be a letter. - // - // Cannot be a reserved word for the chosen database engine. - // - // PostgreSQL + // Must be 1 to 128 alphanumeric characters. First character must be a letter. + // Cannot be a reserved word for the chosen database engine. PostgreSQL // // Constraints: // - // Must be 1 to 63 alphanumeric characters. - // - // First character must be a letter. - // - // Cannot be a reserved word for the chosen database engine. + // Must be 1 to 63 alphanumeric characters. First character must be a letter. + // Cannot be a reserved word for the chosen database engine. MasterUsername *string `type:"string"` - // The interval, in seconds, between points when Enhanced Monitoring metrics - // are collected for the DB instance. To disable collecting Enhanced Monitoring - // metrics, specify 0. The default is 0. - // - // If MonitoringRoleArn is specified, then you must also set MonitoringInterval - // to a value other than 0. - // - // Valid Values: 0, 1, 5, 10, 15, 30, 60 - MonitoringInterval *int64 `type:"integer"` - - // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics - // to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess. - // For information on creating a monitoring role, go to To create an IAM role - // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole). - // - // If MonitoringInterval is set to a value other than 0, then you must supply - // a MonitoringRoleArn value. - MonitoringRoleArn *string `type:"string"` - // Specifies if the DB instance is a Multi-AZ deployment. You cannot set the // AvailabilityZone parameter if the MultiAZ parameter is set to true. Do not // set this value if you want a Multi-AZ deployment for a SQL Server DB instance. @@ -4478,9 +3897,9 @@ type CreateDBInstanceInput struct { // Indicates that the DB instance should be associated with the specified option // group. // - // Permanent options, such as the TDE option for Oracle Advanced Security TDE, - // cannot be removed from an option group, and that option group cannot be removed - // from a DB instance once it is associated with a DB instance + // Permanent options, such as the TDE option for Oracle Advanced Security + // TDE, cannot be removed from an option group, and that option group cannot + // be removed from a DB instance once it is associated with a DB instance OptionGroupName *string `type:"string"` // The port number on which the database accepts connections. @@ -4493,14 +3912,6 @@ type CreateDBInstanceInput struct { // // Type: Integer // - // MariaDB - // - // Default: 3306 - // - // Valid Values: 1150-65535 - // - // Type: Integer - // // PostgreSQL // // Default: 5432 @@ -4521,14 +3932,6 @@ type CreateDBInstanceInput struct { // // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 // through 49156. - // - // Amazon Aurora - // - // Default: 3306 - // - // Valid Values: 1150-65535 - // - // Type: Integer Port *int64 `type:"integer"` // The daily time range during which automated backups are created if automated @@ -4542,13 +3945,9 @@ type CreateDBInstanceInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. - // - // Times should be in Universal Coordinated Time (UTC). - // - // Must not conflict with the preferred maintenance window. - // - // Must be at least 30 minutes. + // Must be in the format hh24:mi-hh24:mi. Times should be in Universal Coordinated + // Time (UTC). Must not conflict with the preferred maintenance window. Must + // be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal @@ -4567,37 +3966,24 @@ type CreateDBInstanceInput struct { // Constraints: Minimum 30-minute window. PreferredMaintenanceWindow *string `type:"string"` - // A value that specifies the order in which an Aurora Replica is promoted to - // the primary instance after a failure of the existing primary instance. For - // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance). - // - // Default: 1 - // - // Valid Values: 0 - 15 - PromotionTier *int64 `type:"integer"` - // Specifies the accessibility options for the DB instance. A value of true // specifies an Internet-facing instance with a publicly resolvable DNS name, // which resolves to a public IP address. A value of false specifies an internal // instance with a DNS name that resolves to a private IP address. // - // Default: The default behavior varies depending on whether a VPC has been + // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC: true - // - // VPC: false - // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // Default VPC: true VPC: false If no DB subnet group has been specified + // as part of the request and the PubliclyAccessible value has not been set, + // the DB instance will be publicly accessible. If a specific DB subnet group + // has been specified as part of the request and the PubliclyAccessible value + // has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // Specifies whether the DB instance is encrypted. // - // Default: false + // Default: false StorageEncrypted *bool `type:"boolean"` // Specifies the storage type to be associated with the DB instance. @@ -4621,8 +4007,14 @@ type CreateDBInstanceInput struct { // A list of EC2 VPC security groups to associate with this DB instance. // - // Default: The default EC2 VPC security group for the DB subnet group's VPC. + // Default: The default EC2 VPC security group for the DB subnet group's VPC. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` + + metadataCreateDBInstanceInput `json:"-" xml:"-"` +} + +type metadataCreateDBInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4635,39 +4027,18 @@ func (s CreateDBInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDBInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDBInstanceInput"} - if s.DBInstanceClass == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceClass")) - } - if s.DBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier")) - } - if s.Engine == nil { - invalidParams.Add(request.NewErrParamRequired("Engine")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateDBInstanceOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance - // - // DeleteDBInstance - // - // ModifyDBInstance - // - // This data type is used as a response element in the DescribeDBInstances - // action. + // CreateDBInstance DeleteDBInstance ModifyDBInstance This data type + // is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` + + metadataCreateDBInstanceOutput `json:"-" xml:"-"` +} + +type metadataCreateDBInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4681,8 +4052,6 @@ func (s CreateDBInstanceOutput) GoString() string { } type CreateDBInstanceReadReplicaInput struct { - _ struct{} `type:"structure"` - // Indicates that minor engine upgrades will be applied automatically to the // Read Replica during the maintenance window. // @@ -4691,23 +4060,17 @@ type CreateDBInstanceReadReplicaInput struct { // The Amazon EC2 Availability Zone that the Read Replica will be created in. // - // Default: A random, system-chosen Availability Zone in the endpoint's region. + // Default: A random, system-chosen Availability Zone in the endpoint's region. // // Example: us-east-1d AvailabilityZone *string `type:"string"` - // True to copy all tags from the Read Replica to snapshots of the Read Replica; - // otherwise false. The default is false. - CopyTagsToSnapshot *bool `type:"boolean"` - // The compute and memory capacity of the Read Replica. // // Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | // db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large - // | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge - // | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge + // | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge // | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium - // | db.t2.large // // Default: Inherits from the source DB instance. DBInstanceClass *string `type:"string"` @@ -4723,50 +4086,19 @@ type CreateDBInstanceReadReplicaInput struct { // // Constraints: // - // Can only be specified if the source DB instance identifier specifies a - // DB instance in another region. - // - // The specified DB subnet group must be in the same region in which the - // operation is running. - // - // All Read Replicas in one region that are created from the same source - // DB instance must either:> - // - // Specify DB subnet groups from the same VPC. All these Read Replicas will - // be created in the same VPC. - // - // Not specify a DB subnet group. All these Read Replicas will be created - // outside of any VPC. - // - // Constraints: Must contain no more than 255 alphanumeric characters, - // periods, underscores, spaces, or hyphens. Must not be default. - // - // Example: mySubnetgroup + // Can only be specified if the source DB instance identifier specifies a + // DB instance in another region. The specified DB subnet group must be in the + // same region in which the operation is running. All Read Replicas in one + // region that are created from the same source DB instance must either: Specify + // DB subnet groups from the same VPC. All these Read Replicas will be created + // in the same VPC. Not specify a DB subnet group. All these Read Replicas will + // be created outside of any VPC. DBSubnetGroupName *string `type:"string"` // The amount of Provisioned IOPS (input/output operations per second) to be // initially allocated for the DB instance. Iops *int64 `type:"integer"` - // The interval, in seconds, between points when Enhanced Monitoring metrics - // are collected for the Read Replica. To disable collecting Enhanced Monitoring - // metrics, specify 0. The default is 0. - // - // If MonitoringRoleArn is specified, then you must also set MonitoringInterval - // to a value other than 0. - // - // Valid Values: 0, 1, 5, 10, 15, 30, 60 - MonitoringInterval *int64 `type:"integer"` - - // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics - // to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess. - // For information on creating a monitoring role, go to To create an IAM role - // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole). - // - // If MonitoringInterval is set to a value other than 0, then you must supply - // a MonitoringRoleArn value. - MonitoringRoleArn *string `type:"string"` - // The option group the DB instance will be associated with. If omitted, the // default option group for the engine specified will be used. OptionGroupName *string `type:"string"` @@ -4783,18 +4115,14 @@ type CreateDBInstanceReadReplicaInput struct { // which resolves to a public IP address. A value of false specifies an internal // instance with a DNS name that resolves to a private IP address. // - // Default: The default behavior varies depending on whether a VPC has been + // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC:true - // - // VPC:false - // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // Default VPC:true VPC:false If no DB subnet group has been specified + // as part of the request and the PubliclyAccessible value has not been set, + // the DB instance will be publicly accessible. If a specific DB subnet group + // has been specified as part of the request and the PubliclyAccessible value + // has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // The identifier of the DB instance that will act as the source for the Read @@ -4802,24 +4130,15 @@ type CreateDBInstanceReadReplicaInput struct { // // Constraints: // - // Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL DB - // instance. - // - // Can specify a DB instance that is a MySQL Read Replica only if the source - // is running MySQL 5.6. - // - // Can specify a DB instance that is a PostgreSQL Read Replica only if the - // source is running PostgreSQL 9.3.5. - // - // The specified DB instance must have automatic backups enabled, its backup - // retention period must be greater than 0. - // - // If the source DB instance is in the same region as the Read Replica, specify - // a valid DB instance identifier. - // - // If the source DB instance is in a different region than the Read Replica, - // specify a valid DB instance ARN. For more information, go to Constructing - // a Amazon RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN). + // Must be the identifier of an existing DB instance. Can specify a DB instance + // that is a MySQL Read Replica only if the source is running MySQL 5.6. Can + // specify a DB instance that is a PostgreSQL Read Replica only if the source + // is running PostgreSQL 9.3.5. The specified DB instance must have automatic + // backups enabled, its backup retention period must be greater than 0. If the + // source DB instance is in the same region as the Read Replica, specify a valid + // DB instance identifier. If the source DB instance is in a different region + // than the Read Replica, specify a valid DB instance ARN. For more information, + // go to Constructing a Amazon RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN). SourceDBInstanceIdentifier *string `type:"string" required:"true"` // Specifies the storage type to be associated with the Read Replica. @@ -4833,6 +4152,12 @@ type CreateDBInstanceReadReplicaInput struct { // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateDBInstanceReadReplicaInput `json:"-" xml:"-"` +} + +type metadataCreateDBInstanceReadReplicaInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4845,36 +4170,18 @@ func (s CreateDBInstanceReadReplicaInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDBInstanceReadReplicaInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDBInstanceReadReplicaInput"} - if s.DBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier")) - } - if s.SourceDBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceDBInstanceIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateDBInstanceReadReplicaOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance - // - // DeleteDBInstance - // - // ModifyDBInstance - // - // This data type is used as a response element in the DescribeDBInstances - // action. + // CreateDBInstance DeleteDBInstance ModifyDBInstance This data type + // is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` + + metadataCreateDBInstanceReadReplicaOutput `json:"-" xml:"-"` +} + +type metadataCreateDBInstanceReadReplicaOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4888,8 +4195,6 @@ func (s CreateDBInstanceReadReplicaOutput) GoString() string { } type CreateDBParameterGroupInput struct { - _ struct{} `type:"structure"` - // The DB parameter group family name. A DB parameter group can be associated // with one and only one DB parameter group family, and can be applied only // to a DB instance running a database engine and engine version compatible @@ -4898,15 +4203,11 @@ type CreateDBParameterGroupInput struct { // The name of the DB parameter group. // - // Constraints: - // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Constraints: // - // This value is stored as a lowercase string. + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens This value is + // stored as a lowercase string. DBParameterGroupName *string `type:"string" required:"true"` // The description for the DB parameter group. @@ -4914,6 +4215,12 @@ type CreateDBParameterGroupInput struct { // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateDBParameterGroupInput `json:"-" xml:"-"` +} + +type metadataCreateDBParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4926,34 +4233,19 @@ func (s CreateDBParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDBParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDBParameterGroupInput"} - if s.DBParameterGroupFamily == nil { - invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily")) - } - if s.DBParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName")) - } - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateDBParameterGroupOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the CreateDBParameterGroup // action. // // This data type is used as a request parameter in the DeleteDBParameterGroup // action, and as a response element in the DescribeDBParameterGroups action. DBParameterGroup *DBParameterGroup `type:"structure"` + + metadataCreateDBParameterGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateDBParameterGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4967,8 +4259,6 @@ func (s CreateDBParameterGroupOutput) GoString() string { } type CreateDBSecurityGroupInput struct { - _ struct{} `type:"structure"` - // The description for the DB security group. DBSecurityGroupDescription *string `type:"string" required:"true"` @@ -4976,21 +4266,19 @@ type CreateDBSecurityGroupInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // Must not be "Default" - // - // Cannot contain spaces - // - // Example: mysecuritygroup + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens Must not be "Default" + // Cannot contain spaces Example: mysecuritygroup DBSecurityGroupName *string `type:"string" required:"true"` // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateDBSecurityGroupInput `json:"-" xml:"-"` +} + +type metadataCreateDBSecurityGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5003,38 +4291,19 @@ func (s CreateDBSecurityGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDBSecurityGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDBSecurityGroupInput"} - if s.DBSecurityGroupDescription == nil { - invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupDescription")) - } - if s.DBSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateDBSecurityGroupOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // DescribeDBSecurityGroups - // - // AuthorizeDBSecurityGroupIngress - // - // CreateDBSecurityGroup - // - // RevokeDBSecurityGroupIngress - // - // This data type is used as a response element in the DescribeDBSecurityGroups - // action. + // DescribeDBSecurityGroups AuthorizeDBSecurityGroupIngress CreateDBSecurityGroup + // RevokeDBSecurityGroupIngress This data type is used as a response element + // in the DescribeDBSecurityGroups action. DBSecurityGroup *DBSecurityGroup `type:"structure"` + + metadataCreateDBSecurityGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateDBSecurityGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5048,36 +4317,31 @@ func (s CreateDBSecurityGroupOutput) GoString() string { } type CreateDBSnapshotInput struct { - _ struct{} `type:"structure"` - // The DB instance identifier. This is the unique key that identifies a DB instance. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string" required:"true"` // The identifier for the DB snapshot. // // Constraints: // - // Cannot be null, empty, or blank - // - // Must contain from 1 to 255 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // Example: my-snapshot-id + // Cannot be null, empty, or blank Must contain from 1 to 255 alphanumeric + // characters or hyphens First character must be a letter Cannot end with a + // hyphen or contain two consecutive hyphens Example: my-snapshot-id DBSnapshotIdentifier *string `type:"string" required:"true"` // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateDBSnapshotInput `json:"-" xml:"-"` +} + +type metadataCreateDBSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5090,34 +4354,18 @@ func (s CreateDBSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDBSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDBSnapshotInput"} - if s.DBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier")) - } - if s.DBSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateDBSnapshotOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBSnapshot - // - // DeleteDBSnapshot - // - // This data type is used as a response element in the DescribeDBSnapshots - // action. + // CreateDBSnapshot DeleteDBSnapshot This data type is used as a response + // element in the DescribeDBSnapshots action. DBSnapshot *DBSnapshot `type:"structure"` + + metadataCreateDBSnapshotOutput `json:"-" xml:"-"` +} + +type metadataCreateDBSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5131,15 +4379,13 @@ func (s CreateDBSnapshotOutput) GoString() string { } type CreateDBSubnetGroupInput struct { - _ struct{} `type:"structure"` - // The description for the DB subnet group. DBSubnetGroupDescription *string `type:"string" required:"true"` // The name for the DB subnet group. This value is stored as a lowercase string. // - // Constraints: Must contain no more than 255 alphanumeric characters, periods, - // underscores, spaces, or hyphens. Must not be default. + // Constraints: Must contain no more than 255 alphanumeric characters or hyphens. + // Must not be "Default". // // Example: mySubnetgroup DBSubnetGroupName *string `type:"string" required:"true"` @@ -5149,6 +4395,12 @@ type CreateDBSubnetGroupInput struct { // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateDBSubnetGroupInput `json:"-" xml:"-"` +} + +type metadataCreateDBSubnetGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5161,41 +4413,19 @@ func (s CreateDBSubnetGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDBSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDBSubnetGroupInput"} - if s.DBSubnetGroupDescription == nil { - invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupDescription")) - } - if s.DBSubnetGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName")) - } - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateDBSubnetGroupOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBSubnetGroup - // - // ModifyDBSubnetGroup - // - // DescribeDBSubnetGroups - // - // DeleteDBSubnetGroup - // + // CreateDBSubnetGroup ModifyDBSubnetGroup DescribeDBSubnetGroups DeleteDBSubnetGroup // This data type is used as a response element in the DescribeDBSubnetGroups // action. DBSubnetGroup *DBSubnetGroup `type:"structure"` + + metadataCreateDBSubnetGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateDBSubnetGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5209,8 +4439,6 @@ func (s CreateDBSubnetGroupOutput) GoString() string { } type CreateEventSubscriptionInput struct { - _ struct{} `type:"structure"` - // A Boolean value; set to true to activate the subscription, set to false to // create the subscription but not active it. Enabled *bool `type:"boolean"` @@ -5234,18 +4462,12 @@ type CreateEventSubscriptionInput struct { // // Constraints: // - // If SourceIds are supplied, SourceType must also be provided. - // - // If the source type is a DB instance, then a DBInstanceIdentifier must + // If SourceIds are supplied, SourceType must also be provided. If the source + // type is a DB instance, then a DBInstanceIdentifier must be supplied. If the + // source type is a DB security group, a DBSecurityGroupName must be supplied. + // If the source type is a DB parameter group, a DBParameterGroupName must be + // supplied. If the source type is a DB snapshot, a DBSnapshotIdentifier must // be supplied. - // - // If the source type is a DB security group, a DBSecurityGroupName must - // be supplied. - // - // If the source type is a DB parameter group, a DBParameterGroupName must - // be supplied. - // - // If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied. SourceIds []*string `locationNameList:"SourceId" type:"list"` // The type of source that will be generating the events. For example, if you @@ -5263,6 +4485,12 @@ type CreateEventSubscriptionInput struct { // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateEventSubscriptionInput `json:"-" xml:"-"` +} + +type metadataCreateEventSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5275,28 +4503,16 @@ func (s CreateEventSubscriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEventSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEventSubscriptionInput"} - if s.SnsTopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("SnsTopicArn")) - } - if s.SubscriptionName == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateEventSubscriptionOutput struct { - _ struct{} `type:"structure"` - // Contains the results of a successful invocation of the DescribeEventSubscriptions // action. EventSubscription *EventSubscription `type:"structure"` + + metadataCreateEventSubscriptionOutput `json:"-" xml:"-"` +} + +type metadataCreateEventSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5310,8 +4526,6 @@ func (s CreateEventSubscriptionOutput) GoString() string { } type CreateOptionGroupInput struct { - _ struct{} `type:"structure"` - // Specifies the name of the engine that this option group should be associated // with. EngineName *string `type:"string" required:"true"` @@ -5325,19 +4539,21 @@ type CreateOptionGroupInput struct { // Specifies the name of the option group to be created. // - // Constraints: - // - // Must be 1 to 255 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Constraints: // - // Example: myoptiongroup + // Must be 1 to 255 alphanumeric characters or hyphens First character must + // be a letter Cannot end with a hyphen or contain two consecutive hyphens + // Example: myoptiongroup OptionGroupName *string `type:"string" required:"true"` // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateOptionGroupInput `json:"-" xml:"-"` +} + +type metadataCreateOptionGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5350,32 +4566,14 @@ func (s CreateOptionGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateOptionGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateOptionGroupInput"} - if s.EngineName == nil { - invalidParams.Add(request.NewErrParamRequired("EngineName")) - } - if s.MajorEngineVersion == nil { - invalidParams.Add(request.NewErrParamRequired("MajorEngineVersion")) - } - if s.OptionGroupDescription == nil { - invalidParams.Add(request.NewErrParamRequired("OptionGroupDescription")) - } - if s.OptionGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("OptionGroupName")) - } +type CreateOptionGroupOutput struct { + OptionGroup *OptionGroup `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateOptionGroupOutput `json:"-" xml:"-"` } -type CreateOptionGroupOutput struct { - _ struct{} `type:"structure"` - - OptionGroup *OptionGroup `type:"structure"` +type metadataCreateOptionGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5387,26 +4585,13 @@ func (s CreateOptionGroupOutput) String() string { func (s CreateOptionGroupOutput) GoString() string { return s.String() } - -// Contains the result of a successful invocation of the following actions: -// -// CreateDBCluster -// -// DeleteDBCluster -// -// FailoverDBCluster -// -// ModifyDBCluster -// -// RestoreDBClusterFromSnapshot -// -// RestoreDBClusterToPointInTime + +// Contains the result of a successful invocation of the following actions: // -// This data type is used as a response element in the DescribeDBClusters -// action. +// CreateDBCluster DeleteDBCluster FailoverDBCluster ModifyDBCluster +// RestoreDBClusterFromSnapshot This data type is used as a response element +// in the DescribeDBClusters action. type DBCluster struct { - _ struct{} `type:"structure"` - // Specifies the allocated storage size in gigabytes (GB). AllocatedStorage *int64 `type:"integer"` @@ -5443,11 +4628,6 @@ type DBCluster struct { // same name is returned for the life of the DB cluster. DatabaseName *string `type:"string"` - // The region-unique, immutable identifier for the DB cluster. This identifier - // is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster - // is accessed. - DbClusterResourceId *string `type:"string"` - // Specifies the earliest time to which a database can be restored with point-in-time // restore. EarliestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -5461,13 +4641,6 @@ type DBCluster struct { // Indicates the database engine version. EngineVersion *string `type:"string"` - // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone. - HostedZoneId *string `type:"string"` - - // If StorageEncrypted is true, the KMS key identifier for the encrypted DB - // cluster. - KmsKeyId *string `type:"string"` - // Specifies the latest time to which a database can be restored with point-in-time // restore. LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -5492,11 +4665,14 @@ type DBCluster struct { // Specifies the current state of this DB cluster. Status *string `type:"string"` - // Specifies whether the DB cluster is encrypted. - StorageEncrypted *bool `type:"boolean"` - // Provides a list of VPC security groups that the DB cluster belongs to. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"` + + metadataDBCluster `json:"-" xml:"-"` +} + +type metadataDBCluster struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5511,8 +4687,6 @@ func (s DBCluster) GoString() string { // Contains information about an instance that is part of a DB cluster. type DBClusterMember struct { - _ struct{} `type:"structure"` - // Specifies the status of the DB cluster parameter group for this member of // the DB cluster. DBClusterParameterGroupStatus *string `type:"string"` @@ -5524,10 +4698,11 @@ type DBClusterMember struct { // DB cluster and false otherwise. IsClusterWriter *bool `type:"boolean"` - // A value that specifies the order in which an Aurora Replica is promoted to - // the primary instance after a failure of the existing primary instance. For - // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance). - PromotionTier *int64 `type:"integer"` + metadataDBClusterMember `json:"-" xml:"-"` +} + +type metadataDBClusterMember struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5542,13 +4717,17 @@ func (s DBClusterMember) GoString() string { // Contains status information for a DB cluster option group. type DBClusterOptionGroupStatus struct { - _ struct{} `type:"structure"` - // Specifies the name of the DB cluster option group. DBClusterOptionGroupName *string `type:"string"` // Specifies the status of the DB cluster option group. Status *string `type:"string"` + + metadataDBClusterOptionGroupStatus `json:"-" xml:"-"` +} + +type metadataDBClusterOptionGroupStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5568,8 +4747,6 @@ func (s DBClusterOptionGroupStatus) GoString() string { // action, and as a response element in the DescribeDBClusterParameterGroups // action. type DBClusterParameterGroup struct { - _ struct{} `type:"structure"` - // Provides the name of the DB cluster parameter group. DBClusterParameterGroupName *string `type:"string"` @@ -5580,6 +4757,12 @@ type DBClusterParameterGroup struct { // Provides the customer-specified description for this DB cluster parameter // group. Description *string `type:"string"` + + metadataDBClusterParameterGroup `json:"-" xml:"-"` +} + +type metadataDBClusterParameterGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5593,20 +4776,20 @@ func (s DBClusterParameterGroup) GoString() string { } type DBClusterParameterGroupNameMessage struct { - _ struct{} `type:"structure"` - // The name of the DB cluster parameter group. // - // Constraints: - // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Constraints: // - // This value is stored as a lowercase string. + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens This value is + // stored as a lowercase string. DBClusterParameterGroupName *string `type:"string"` + + metadataDBClusterParameterGroupNameMessage `json:"-" xml:"-"` +} + +type metadataDBClusterParameterGroupNameMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5621,15 +4804,9 @@ func (s DBClusterParameterGroupNameMessage) GoString() string { // Contains the result of a successful invocation of the following actions: // -// CreateDBClusterSnapshot -// -// DeleteDBClusterSnapshot -// -// This data type is used as a response element in the DescribeDBClusterSnapshots -// action. +// CreateDBClusterSnapshot DeleteDBClusterSnapshot This data type is +// used as a response element in the DescribeDBClusterSnapshots action. type DBClusterSnapshot struct { - _ struct{} `type:"structure"` - // Specifies the allocated storage size in gigabytes (GB). AllocatedStorage *int64 `type:"integer"` @@ -5654,10 +4831,6 @@ type DBClusterSnapshot struct { // Provides the version of the database engine for this DB cluster snapshot. EngineVersion *string `type:"string"` - // If StorageEncrypted is true, the KMS key identifier for the encrypted DB - // cluster snapshot. - KmsKeyId *string `type:"string"` - // Provides the license model information for this DB cluster snapshot. LicenseModel *string `type:"string"` @@ -5681,89 +4854,28 @@ type DBClusterSnapshot struct { // Specifies the status of this DB cluster snapshot. Status *string `type:"string"` - // Specifies whether the DB cluster snapshot is encrypted. - StorageEncrypted *bool `type:"boolean"` - // Provides the VPC ID associated with the DB cluster snapshot. VpcId *string `type:"string"` -} - -// String returns the string representation -func (s DBClusterSnapshot) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DBClusterSnapshot) GoString() string { - return s.String() -} - -// Contains the name and values of a manual DB cluster snapshot attribute. -// -// Manual DB cluster snapshot attributes are used to authorize other AWS accounts -// to restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute -// API action. -type DBClusterSnapshotAttribute struct { - _ struct{} `type:"structure"` - - // The name of the manual DB cluster snapshot attribute. - // - // The attribute named restore refers to the list of AWS accounts that have - // permission to copy or restore the manual DB cluster snapshot. For more information, - // see the ModifyDBClusterSnapshotAttribute API action. - AttributeName *string `type:"string"` - - // The value(s) for the manual DB cluster snapshot attribute. - // - // If the AttributeName field is set to restore, then this element returns - // a list of IDs of the AWS accounts that are authorized to copy or restore - // the manual DB cluster snapshot. If a value of all is in the list, then the - // manual DB cluster snapshot is public and available for any AWS account to - // copy or restore. - AttributeValues []*string `locationNameList:"AttributeValue" type:"list"` -} - -// String returns the string representation -func (s DBClusterSnapshotAttribute) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DBClusterSnapshotAttribute) GoString() string { - return s.String() + metadataDBClusterSnapshot `json:"-" xml:"-"` } -// Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes -// API action. -// -// Manual DB cluster snapshot attributes are used to authorize other AWS accounts -// to copy or restore a manual DB cluster snapshot. For more information, see -// the ModifyDBClusterSnapshotAttribute API action. -type DBClusterSnapshotAttributesResult struct { - _ struct{} `type:"structure"` - - // The list of attributes and values for the manual DB cluster snapshot. - DBClusterSnapshotAttributes []*DBClusterSnapshotAttribute `locationNameList:"DBClusterSnapshotAttribute" type:"list"` - - // The identifier of the manual DB cluster snapshot that the attributes apply - // to. - DBClusterSnapshotIdentifier *string `type:"string"` +type metadataDBClusterSnapshot struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DBClusterSnapshotAttributesResult) String() string { +func (s DBClusterSnapshot) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DBClusterSnapshotAttributesResult) GoString() string { +func (s DBClusterSnapshot) GoString() string { return s.String() } // This data type is used as a response element in the action DescribeDBEngineVersions. type DBEngineVersion struct { - _ struct{} `type:"structure"` - // The description of the database engine. DBEngineDescription *string `type:"string"` @@ -5787,9 +4899,11 @@ type DBEngineVersion struct { // parameter of the CreateDBInstance API. SupportedCharacterSets []*CharacterSet `locationNameList:"CharacterSet" type:"list"` - // A list of engine versions that this database engine version can be upgraded - // to. - ValidUpgradeTarget []*UpgradeTarget `locationNameList:"UpgradeTarget" type:"list"` + metadataDBEngineVersion `json:"-" xml:"-"` +} + +type metadataDBEngineVersion struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5804,17 +4918,9 @@ func (s DBEngineVersion) GoString() string { // Contains the result of a successful invocation of the following actions: // -// CreateDBInstance -// -// DeleteDBInstance -// -// ModifyDBInstance -// -// This data type is used as a response element in the DescribeDBInstances -// action. +// CreateDBInstance DeleteDBInstance ModifyDBInstance This data type +// is used as a response element in the DescribeDBInstances action. type DBInstance struct { - _ struct{} `type:"structure"` - // Specifies the allocated storage size specified in gigabytes. AllocatedStorage *int64 `type:"integer"` @@ -5834,10 +4940,6 @@ type DBInstance struct { // associated with. CharacterSetName *string `type:"string"` - // Specifies whether tags are copied from the DB instance to snapshots of the - // DB instance. - CopyTagsToSnapshot *bool `type:"boolean"` - // If the DB instance is a member of a DB cluster, contains the name of the // DB cluster that the DB instance is a member of. DBClusterIdentifier *string `type:"string"` @@ -5853,13 +4955,13 @@ type DBInstance struct { DBInstanceStatus *string `type:"string"` // The meaning of this parameter differs according to the database engine you - // use. For example, this value returns MySQL, MariaDB, or PostgreSQL information + // use. For example, this value returns either MySQL or PostgreSQL information // when returning values from CreateDBInstanceReadReplica since Read Replicas - // are only supported for these engines. + // are only supported for MySQL and PostgreSQL. // - // MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora + // MySQL, SQL Server, PostgreSQL // - // Contains the name of the initial database of this instance that was provided + // Contains the name of the initial database of this instance that was provided // at create time, if one was specified when the DB instance was created. This // same name is returned for the life of the DB instance. // @@ -5867,7 +4969,7 @@ type DBInstance struct { // // Oracle // - // Contains the Oracle System ID (SID) of the created DB instance. Not shown + // Contains the Oracle System ID (SID) of the created DB instance. Not shown // when the returned parameters do not apply to an Oracle DB instance. DBName *string `type:"string"` @@ -5886,14 +4988,11 @@ type DBInstance struct { // part of a DB cluster, this can be a different port than the DB cluster port. DbInstancePort *int64 `type:"integer"` - // The region-unique, immutable identifier for the DB instance. This identifier - // is found in AWS CloudTrail log entries whenever the KMS key for the DB instance - // is accessed. + // If StorageEncrypted is true, the region-unique, immutable identifier for + // the encrypted DB instance. This identifier is found in AWS CloudTrail log + // entries whenever the KMS key for the DB instance is accessed. DbiResourceId *string `type:"string"` - // The Active Directory Domain membership records associated with the DB instance. - DomainMemberships []*DomainMembership `locationNameList:"DomainMembership" type:"list"` - // Specifies the connection endpoint. Endpoint *Endpoint `type:"structure"` @@ -5903,10 +5002,6 @@ type DBInstance struct { // Indicates the database engine version. EngineVersion *string `type:"string"` - // The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that - // receives the Enhanced Monitoring metrics data for the DB instance. - EnhancedMonitoringResourceArn *string `type:"string"` - // Provides the date and time the DB instance was created. InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -5927,14 +5022,6 @@ type DBInstance struct { // Contains the master username for the DB instance. MasterUsername *string `type:"string"` - // The interval, in seconds, between points when Enhanced Monitoring metrics - // are collected for the DB instance. - MonitoringInterval *int64 `type:"integer"` - - // The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics - // to CloudWatch Logs. - MonitoringRoleArn *string `type:"string"` - // Specifies if the DB instance is a Multi-AZ deployment. MultiAZ *bool `type:"boolean"` @@ -5953,28 +5040,19 @@ type DBInstance struct { // in Universal Coordinated Time (UTC). PreferredMaintenanceWindow *string `type:"string"` - // A value that specifies the order in which an Aurora Replica is promoted to - // the primary instance after a failure of the existing primary instance. For - // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance). - PromotionTier *int64 `type:"integer"` - // Specifies the accessibility options for the DB instance. A value of true // specifies an Internet-facing instance with a publicly resolvable DNS name, // which resolves to a public IP address. A value of false specifies an internal // instance with a DNS name that resolves to a private IP address. // - // Default: The default behavior varies depending on whether a VPC has been + // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC:true - // - // VPC:false - // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // Default VPC:true VPC:false If no DB subnet group has been specified + // as part of the request and the PubliclyAccessible value has not been set, + // the DB instance will be publicly accessible. If a specific DB subnet group + // has been specified as part of the request and the PubliclyAccessible value + // has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // Contains one or more identifiers of the Read Replicas associated with this @@ -6006,6 +5084,12 @@ type DBInstance struct { // Provides List of VPC security group elements that the DB instance belongs // to. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"` + + metadataDBInstance `json:"-" xml:"-"` +} + +type metadataDBInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6020,8 +5104,6 @@ func (s DBInstance) GoString() string { // Provides a list of status information for a DB instance. type DBInstanceStatusInfo struct { - _ struct{} `type:"structure"` - // Details of the error if there is an error for the instance. If the instance // is not in an error state, this value is blank. Message *string `type:"string"` @@ -6036,6 +5118,12 @@ type DBInstanceStatusInfo struct { // This value is currently "read replication." StatusType *string `type:"string"` + + metadataDBInstanceStatusInfo `json:"-" xml:"-"` +} + +type metadataDBInstanceStatusInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6054,8 +5142,6 @@ func (s DBInstanceStatusInfo) GoString() string { // This data type is used as a request parameter in the DeleteDBParameterGroup // action, and as a response element in the DescribeDBParameterGroups action. type DBParameterGroup struct { - _ struct{} `type:"structure"` - // Provides the name of the DB parameter group family that this DB parameter // group is compatible with. DBParameterGroupFamily *string `type:"string"` @@ -6065,6 +5151,12 @@ type DBParameterGroup struct { // Provides the customer-specified description for this DB parameter group. Description *string `type:"string"` + + metadataDBParameterGroup `json:"-" xml:"-"` +} + +type metadataDBParameterGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6080,10 +5172,14 @@ func (s DBParameterGroup) GoString() string { // Contains the result of a successful invocation of the ModifyDBParameterGroup // or ResetDBParameterGroup action. type DBParameterGroupNameMessage struct { - _ struct{} `type:"structure"` - // Provides the name of the DB parameter group. DBParameterGroupName *string `type:"string"` + + metadataDBParameterGroupNameMessage `json:"-" xml:"-"` +} + +type metadataDBParameterGroupNameMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6100,25 +5196,20 @@ func (s DBParameterGroupNameMessage) GoString() string { // // This data type is used as a response element in the following actions: // -// CreateDBInstance -// -// CreateDBInstanceReadReplica -// -// DeleteDBInstance -// -// ModifyDBInstance -// -// RebootDBInstance -// -// RestoreDBInstanceFromDBSnapshot +// CreateDBInstance CreateDBInstanceReadReplica DeleteDBInstance ModifyDBInstance +// RebootDBInstance RestoreDBInstanceFromDBSnapshot type DBParameterGroupStatus struct { - _ struct{} `type:"structure"` - // The name of the DP parameter group. DBParameterGroupName *string `type:"string"` // The status of parameter updates. ParameterApplyStatus *string `type:"string"` + + metadataDBParameterGroupStatus `json:"-" xml:"-"` +} + +type metadataDBParameterGroupStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6133,19 +5224,10 @@ func (s DBParameterGroupStatus) GoString() string { // Contains the result of a successful invocation of the following actions: // -// DescribeDBSecurityGroups -// -// AuthorizeDBSecurityGroupIngress -// -// CreateDBSecurityGroup -// -// RevokeDBSecurityGroupIngress -// -// This data type is used as a response element in the DescribeDBSecurityGroups -// action. +// DescribeDBSecurityGroups AuthorizeDBSecurityGroupIngress CreateDBSecurityGroup +// RevokeDBSecurityGroupIngress This data type is used as a response element +// in the DescribeDBSecurityGroups action. type DBSecurityGroup struct { - _ struct{} `type:"structure"` - // Provides the description of the DB security group. DBSecurityGroupDescription *string `type:"string"` @@ -6163,6 +5245,12 @@ type DBSecurityGroup struct { // Provides the VpcId of the DB security group. VpcId *string `type:"string"` + + metadataDBSecurityGroup `json:"-" xml:"-"` +} + +type metadataDBSecurityGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6177,21 +5265,20 @@ func (s DBSecurityGroup) GoString() string { // This data type is used as a response element in the following actions: // -// ModifyDBInstance -// -// RebootDBInstance -// -// RestoreDBInstanceFromDBSnapshot -// -// RestoreDBInstanceToPointInTime +// ModifyDBInstance RebootDBInstance RestoreDBInstanceFromDBSnapshot +// RestoreDBInstanceToPointInTime type DBSecurityGroupMembership struct { - _ struct{} `type:"structure"` - // The name of the DB security group. DBSecurityGroupName *string `type:"string"` // The status of the DB security group. Status *string `type:"string"` + + metadataDBSecurityGroupMembership `json:"-" xml:"-"` +} + +type metadataDBSecurityGroupMembership struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6206,15 +5293,9 @@ func (s DBSecurityGroupMembership) GoString() string { // Contains the result of a successful invocation of the following actions: // -// CreateDBSnapshot -// -// DeleteDBSnapshot -// -// This data type is used as a response element in the DescribeDBSnapshots -// action. +// CreateDBSnapshot DeleteDBSnapshot This data type is used as a response +// element in the DescribeDBSnapshots action. type DBSnapshot struct { - _ struct{} `type:"structure"` - // Specifies the allocated storage size in gigabytes (GB). AllocatedStorage *int64 `type:"integer"` @@ -6290,97 +5371,34 @@ type DBSnapshot struct { // Provides the VPC ID associated with the DB snapshot. VpcId *string `type:"string"` -} - -// String returns the string representation -func (s DBSnapshot) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DBSnapshot) GoString() string { - return s.String() -} - -// Contains the name and values of a manual DB snapshot attribute -// -// Manual DB snapshot attributes are used to authorize other AWS accounts to -// restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute -// API. -type DBSnapshotAttribute struct { - _ struct{} `type:"structure"` - - // The name of the manual DB snapshot attribute. - // - // The attribute named restore refers to the list of AWS accounts that have - // permission to copy or restore the manual DB cluster snapshot. For more information, - // see the ModifyDBSnapshotAttribute API action. - AttributeName *string `type:"string"` - - // The value or values for the manual DB snapshot attribute. - // - // If the AttributeName field is set to restore, then this element returns - // a list of IDs of the AWS accounts that are authorized to copy or restore - // the manual DB snapshot. If a value of all is in the list, then the manual - // DB snapshot is public and available for any AWS account to copy or restore. - AttributeValues []*string `locationNameList:"AttributeValue" type:"list"` -} - -// String returns the string representation -func (s DBSnapshotAttribute) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DBSnapshotAttribute) GoString() string { - return s.String() + metadataDBSnapshot `json:"-" xml:"-"` } -// Contains the results of a successful call to the DescribeDBSnapshotAttributes -// API action. -// -// Manual DB snapshot attributes are used to authorize other AWS accounts to -// copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute -// API action. -type DBSnapshotAttributesResult struct { - _ struct{} `type:"structure"` - - // The list of attributes and values for the manual DB snapshot. - DBSnapshotAttributes []*DBSnapshotAttribute `locationNameList:"DBSnapshotAttribute" type:"list"` - - // The identifier of the manual DB snapshot that the attributes apply to. - DBSnapshotIdentifier *string `type:"string"` +type metadataDBSnapshot struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DBSnapshotAttributesResult) String() string { +func (s DBSnapshot) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DBSnapshotAttributesResult) GoString() string { +func (s DBSnapshot) GoString() string { return s.String() } // Contains the result of a successful invocation of the following actions: // -// CreateDBSubnetGroup -// -// ModifyDBSubnetGroup -// -// DescribeDBSubnetGroups -// -// DeleteDBSubnetGroup -// +// CreateDBSubnetGroup ModifyDBSubnetGroup DescribeDBSubnetGroups DeleteDBSubnetGroup // This data type is used as a response element in the DescribeDBSubnetGroups // action. type DBSubnetGroup struct { - _ struct{} `type:"structure"` - // Provides the description of the DB subnet group. DBSubnetGroupDescription *string `type:"string"` - // The name of the DB subnet group. + // Specifies the name of the DB subnet group. DBSubnetGroupName *string `type:"string"` // Provides the status of the DB subnet group. @@ -6391,6 +5409,12 @@ type DBSubnetGroup struct { // Provides the VpcId of the DB subnet group. VpcId *string `type:"string"` + + metadataDBSubnetGroup `json:"-" xml:"-"` +} + +type metadataDBSubnetGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6404,44 +5428,38 @@ func (s DBSubnetGroup) GoString() string { } type DeleteDBClusterInput struct { - _ struct{} `type:"structure"` - // The DB cluster identifier for the DB cluster to be deleted. This parameter // isn't case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - DBClusterIdentifier *string `type:"string" required:"true"` + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens + DBClusterIdentifier *string `type:"string"` // The DB cluster snapshot identifier of the new DB cluster snapshot created // when SkipFinalSnapshot is set to false. // - // Specifying this parameter and also setting the SkipFinalShapshot parameter - // to true results in an error. - // - // Constraints: - // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter + // Specifying this parameter and also setting the SkipFinalShapshot parameter + // to true results in an error. Constraints: // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens FinalDBSnapshotIdentifier *string `type:"string"` // Determines whether a final DB cluster snapshot is created before the DB cluster // is deleted. If true is specified, no DB cluster snapshot is created. If false // is specified, a DB cluster snapshot is created before the DB cluster is deleted. // - // You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot - // is false. - // - // Default: false + // You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot + // is false. Default: false SkipFinalSnapshot *bool `type:"boolean"` + + metadataDeleteDBClusterInput `json:"-" xml:"-"` +} + +type metadataDeleteDBClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6454,39 +5472,19 @@ func (s DeleteDBClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDBClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterInput"} - if s.DBClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteDBClusterOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster - // - // DeleteDBCluster - // - // FailoverDBCluster - // - // ModifyDBCluster - // - // RestoreDBClusterFromSnapshot - // - // RestoreDBClusterToPointInTime - // - // This data type is used as a response element in the DescribeDBClusters - // action. + // CreateDBCluster DeleteDBCluster FailoverDBCluster ModifyDBCluster + // RestoreDBClusterFromSnapshot This data type is used as a response element + // in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` + + metadataDeleteDBClusterOutput `json:"-" xml:"-"` +} + +type metadataDeleteDBClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6500,18 +5498,20 @@ func (s DeleteDBClusterOutput) GoString() string { } type DeleteDBClusterParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the DB cluster parameter group. // // Constraints: // - // Must be the name of an existing DB cluster parameter group. - // - // You cannot delete a default DB cluster parameter group. - // - // Cannot be associated with any DB clusters. + // Must be the name of an existing DB cluster parameter group. You cannot + // delete a default DB cluster parameter group. Cannot be associated with any + // DB clusters. DBClusterParameterGroupName *string `type:"string" required:"true"` + + metadataDeleteDBClusterParameterGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteDBClusterParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6524,21 +5524,12 @@ func (s DeleteDBClusterParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDBClusterParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterParameterGroupInput"} - if s.DBClusterParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteDBClusterParameterGroupOutput struct { + metadataDeleteDBClusterParameterGroupOutput `json:"-" xml:"-"` } -type DeleteDBClusterParameterGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteDBClusterParameterGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6552,13 +5543,17 @@ func (s DeleteDBClusterParameterGroupOutput) GoString() string { } type DeleteDBClusterSnapshotInput struct { - _ struct{} `type:"structure"` - // The identifier of the DB cluster snapshot to delete. // // Constraints: Must be the name of an existing DB cluster snapshot in the // available state. DBClusterSnapshotIdentifier *string `type:"string" required:"true"` + + metadataDeleteDBClusterSnapshotInput `json:"-" xml:"-"` +} + +type metadataDeleteDBClusterSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6571,31 +5566,18 @@ func (s DeleteDBClusterSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDBClusterSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterSnapshotInput"} - if s.DBClusterSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteDBClusterSnapshotOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBClusterSnapshot - // - // DeleteDBClusterSnapshot - // - // This data type is used as a response element in the DescribeDBClusterSnapshots - // action. + // CreateDBClusterSnapshot DeleteDBClusterSnapshot This data type is + // used as a response element in the DescribeDBClusterSnapshots action. DBClusterSnapshot *DBClusterSnapshot `type:"structure"` + + metadataDeleteDBClusterSnapshotOutput `json:"-" xml:"-"` +} + +type metadataDeleteDBClusterSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6609,35 +5591,24 @@ func (s DeleteDBClusterSnapshotOutput) GoString() string { } type DeleteDBInstanceInput struct { - _ struct{} `type:"structure"` - // The DB instance identifier for the DB instance to be deleted. This parameter // isn't case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string" required:"true"` // The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot // is set to false. // // Specifying this parameter and also setting the SkipFinalShapshot parameter - // to true results in an error. - // - // Constraints: - // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // to true results in an error. Constraints: // - // Cannot be specified when deleting a Read Replica. + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens Cannot be specified + // when deleting a Read Replica. FinalDBSnapshotIdentifier *string `type:"string"` // Determines whether a final DB snapshot is created before the DB instance @@ -6650,11 +5621,15 @@ type DeleteDBInstanceInput struct { // // Specify true when deleting a Read Replica. // - // The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot - // is false. - // - // Default: false + // The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot + // is false. Default: false SkipFinalSnapshot *bool `type:"boolean"` + + metadataDeleteDBInstanceInput `json:"-" xml:"-"` +} + +type metadataDeleteDBInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6667,33 +5642,18 @@ func (s DeleteDBInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDBInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDBInstanceInput"} - if s.DBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteDBInstanceOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance - // - // DeleteDBInstance - // - // ModifyDBInstance - // - // This data type is used as a response element in the DescribeDBInstances - // action. + // CreateDBInstance DeleteDBInstance ModifyDBInstance This data type + // is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` + + metadataDeleteDBInstanceOutput `json:"-" xml:"-"` +} + +type metadataDeleteDBInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6707,18 +5667,19 @@ func (s DeleteDBInstanceOutput) GoString() string { } type DeleteDBParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the DB parameter group. // // Constraints: // - // Must be the name of an existing DB parameter group - // - // You cannot delete a default DB parameter group - // - // Cannot be associated with any DB instances + // Must be the name of an existing DB parameter group You cannot delete a + // default DB parameter group Cannot be associated with any DB instances DBParameterGroupName *string `type:"string" required:"true"` + + metadataDeleteDBParameterGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteDBParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6731,21 +5692,12 @@ func (s DeleteDBParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDBParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDBParameterGroupInput"} - if s.DBParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteDBParameterGroupOutput struct { + metadataDeleteDBParameterGroupOutput `json:"-" xml:"-"` } -type DeleteDBParameterGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteDBParameterGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6759,24 +5711,20 @@ func (s DeleteDBParameterGroupOutput) GoString() string { } type DeleteDBSecurityGroupInput struct { - _ struct{} `type:"structure"` - // The name of the DB security group to delete. // - // You cannot delete the default DB security group. - // - // Constraints: - // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // Must not be "Default" + // You cannot delete the default DB security group. Constraints: // - // Cannot contain spaces + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens Must not be "Default" + // Cannot contain spaces DBSecurityGroupName *string `type:"string" required:"true"` + + metadataDeleteDBSecurityGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteDBSecurityGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6789,21 +5737,12 @@ func (s DeleteDBSecurityGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDBSecurityGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDBSecurityGroupInput"} - if s.DBSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteDBSecurityGroupOutput struct { + metadataDeleteDBSecurityGroupOutput `json:"-" xml:"-"` } -type DeleteDBSecurityGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteDBSecurityGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6817,13 +5756,17 @@ func (s DeleteDBSecurityGroupOutput) GoString() string { } type DeleteDBSnapshotInput struct { - _ struct{} `type:"structure"` - // The DBSnapshot identifier. // // Constraints: Must be the name of an existing DB snapshot in the available // state. DBSnapshotIdentifier *string `type:"string" required:"true"` + + metadataDeleteDBSnapshotInput `json:"-" xml:"-"` +} + +type metadataDeleteDBSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6836,31 +5779,18 @@ func (s DeleteDBSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDBSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDBSnapshotInput"} - if s.DBSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteDBSnapshotOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBSnapshot - // - // DeleteDBSnapshot - // - // This data type is used as a response element in the DescribeDBSnapshots - // action. + // CreateDBSnapshot DeleteDBSnapshot This data type is used as a response + // element in the DescribeDBSnapshots action. DBSnapshot *DBSnapshot `type:"structure"` + + metadataDeleteDBSnapshotOutput `json:"-" xml:"-"` +} + +type metadataDeleteDBSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6874,19 +5804,19 @@ func (s DeleteDBSnapshotOutput) GoString() string { } type DeleteDBSubnetGroupInput struct { - _ struct{} `type:"structure"` - // The name of the database subnet group to delete. // - // You cannot delete the default subnet group. - // - // Constraints: - // - // Constraints: Must contain no more than 255 alphanumeric characters, periods, - // underscores, spaces, or hyphens. Must not be default. + // You cannot delete the default subnet group. Constraints: // - // Example: mySubnetgroup + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBSubnetGroupName *string `type:"string" required:"true"` + + metadataDeleteDBSubnetGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteDBSubnetGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6899,21 +5829,12 @@ func (s DeleteDBSubnetGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDBSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDBSubnetGroupInput"} - if s.DBSubnetGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteDBSubnetGroupOutput struct { + metadataDeleteDBSubnetGroupOutput `json:"-" xml:"-"` } -type DeleteDBSubnetGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteDBSubnetGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6927,10 +5848,14 @@ func (s DeleteDBSubnetGroupOutput) GoString() string { } type DeleteEventSubscriptionInput struct { - _ struct{} `type:"structure"` - // The name of the RDS event notification subscription you want to delete. SubscriptionName *string `type:"string" required:"true"` + + metadataDeleteEventSubscriptionInput `json:"-" xml:"-"` +} + +type metadataDeleteEventSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6943,25 +5868,16 @@ func (s DeleteEventSubscriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEventSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEventSubscriptionInput"} - if s.SubscriptionName == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteEventSubscriptionOutput struct { - _ struct{} `type:"structure"` - // Contains the results of a successful invocation of the DescribeEventSubscriptions // action. EventSubscription *EventSubscription `type:"structure"` + + metadataDeleteEventSubscriptionOutput `json:"-" xml:"-"` +} + +type metadataDeleteEventSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6975,12 +5891,16 @@ func (s DeleteEventSubscriptionOutput) GoString() string { } type DeleteOptionGroupInput struct { - _ struct{} `type:"structure"` - // The name of the option group to be deleted. // - // You cannot delete default option groups. + // You cannot delete default option groups. OptionGroupName *string `type:"string" required:"true"` + + metadataDeleteOptionGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteOptionGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6993,21 +5913,12 @@ func (s DeleteOptionGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteOptionGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteOptionGroupInput"} - if s.OptionGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("OptionGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteOptionGroupOutput struct { + metadataDeleteOptionGroupOutput `json:"-" xml:"-"` } -type DeleteOptionGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteOptionGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7021,7 +5932,11 @@ func (s DeleteOptionGroupOutput) GoString() string { } type DescribeAccountAttributesInput struct { - _ struct{} `type:"structure"` + metadataDescribeAccountAttributesInput `json:"-" xml:"-"` +} + +type metadataDescribeAccountAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7036,11 +5951,15 @@ func (s DescribeAccountAttributesInput) GoString() string { // Data returned by the DescribeAccountAttributes action. type DescribeAccountAttributesOutput struct { - _ struct{} `type:"structure"` - // A list of AccountQuota objects. Within this list, each quota has a name, // a count of usage toward the quota maximum, and a maximum value for the quota. AccountQuotas []*AccountQuota `locationNameList:"AccountQuota" type:"list"` + + metadataDescribeAccountAttributesOutput `json:"-" xml:"-"` +} + +type metadataDescribeAccountAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7054,19 +5973,14 @@ func (s DescribeAccountAttributesOutput) GoString() string { } type DescribeCertificatesInput struct { - _ struct{} `type:"structure"` - // The user-supplied certificate identifier. If this parameter is specified, // information for only the identified certificate is returned. This parameter // isn't case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens CertificateIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -7085,6 +5999,12 @@ type DescribeCertificatesInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeCertificatesInput `json:"-" xml:"-"` +} + +type metadataDescribeCertificatesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7097,30 +6017,8 @@ func (s DescribeCertificatesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeCertificatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeCertificatesInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Data returned by the DescribeCertificates action. type DescribeCertificatesOutput struct { - _ struct{} `type:"structure"` - // The list of Certificate objects for the AWS account. Certificates []*Certificate `locationNameList:"Certificate" type:"list"` @@ -7128,6 +6026,12 @@ type DescribeCertificatesOutput struct { // request. If this parameter is specified, the response includes only records // beyond the marker, up to the value specified by MaxRecords . Marker *string `type:"string"` + + metadataDescribeCertificatesOutput `json:"-" xml:"-"` +} + +type metadataDescribeCertificatesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7141,17 +6045,12 @@ func (s DescribeCertificatesOutput) GoString() string { } type DescribeDBClusterParameterGroupsInput struct { - _ struct{} `type:"structure"` - // The name of a specific DB cluster parameter group to return details for. // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBClusterParameterGroupName *string `type:"string"` // This parameter is not currently supported. @@ -7170,6 +6069,12 @@ type DescribeDBClusterParameterGroupsInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeDBClusterParameterGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeDBClusterParameterGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7182,29 +6087,7 @@ func (s DescribeDBClusterParameterGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBClusterParameterGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterParameterGroupsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeDBClusterParameterGroupsOutput struct { - _ struct{} `type:"structure"` - // A list of DB cluster parameter groups. DBClusterParameterGroups []*DBClusterParameterGroup `locationNameList:"DBClusterParameterGroup" type:"list"` @@ -7212,6 +6095,12 @@ type DescribeDBClusterParameterGroupsOutput struct { // request. If this parameter is specified, the response includes only records // beyond the marker, up to the value specified by MaxRecords. Marker *string `type:"string"` + + metadataDescribeDBClusterParameterGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeDBClusterParameterGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7225,18 +6114,13 @@ func (s DescribeDBClusterParameterGroupsOutput) GoString() string { } type DescribeDBClusterParametersInput struct { - _ struct{} `type:"structure"` - // The name of a specific DB cluster parameter group to return parameter details // for. // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBClusterParameterGroupName *string `type:"string" required:"true"` // This parameter is not currently supported. @@ -7259,6 +6143,12 @@ type DescribeDBClusterParametersInput struct { // A value that indicates to return only parameters for a specific source. Parameter // sources can be engine, service, or customer. Source *string `type:"string"` + + metadataDescribeDBClusterParametersInput `json:"-" xml:"-"` +} + +type metadataDescribeDBClusterParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7271,34 +6161,9 @@ func (s DescribeDBClusterParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBClusterParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterParametersInput"} - if s.DBClusterParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName")) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details about a DB cluster parameter group including the parameters // in the DB cluster parameter group. type DescribeDBClusterParametersOutput struct { - _ struct{} `type:"structure"` - // An optional pagination token provided by a previous DescribeDBClusterParameters // request. If this parameter is specified, the response includes only records // beyond the marker, up to the value specified by MaxRecords . @@ -7306,84 +6171,33 @@ type DescribeDBClusterParametersOutput struct { // Provides a list of parameters for the DB cluster parameter group. Parameters []*Parameter `locationNameList:"Parameter" type:"list"` -} - -// String returns the string representation -func (s DescribeDBClusterParametersOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDBClusterParametersOutput) GoString() string { - return s.String() -} - -type DescribeDBClusterSnapshotAttributesInput struct { - _ struct{} `type:"structure"` - - // The identifier for the DB cluster snapshot to describe the attributes for. - DBClusterSnapshotIdentifier *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeDBClusterSnapshotAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDBClusterSnapshotAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBClusterSnapshotAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterSnapshotAttributesInput"} - if s.DBClusterSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDescribeDBClusterParametersOutput `json:"-" xml:"-"` } -type DescribeDBClusterSnapshotAttributesOutput struct { - _ struct{} `type:"structure"` - - // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes - // API action. - // - // Manual DB cluster snapshot attributes are used to authorize other AWS accounts - // to copy or restore a manual DB cluster snapshot. For more information, see - // the ModifyDBClusterSnapshotAttribute API action. - DBClusterSnapshotAttributesResult *DBClusterSnapshotAttributesResult `type:"structure"` +type metadataDescribeDBClusterParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeDBClusterSnapshotAttributesOutput) String() string { +func (s DescribeDBClusterParametersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeDBClusterSnapshotAttributesOutput) GoString() string { +func (s DescribeDBClusterParametersOutput) GoString() string { return s.String() } type DescribeDBClusterSnapshotsInput struct { - _ struct{} `type:"structure"` - - // The ID of the DB cluster to retrieve the list of DB cluster snapshots for. + // A DB cluster identifier to retrieve the list of DB cluster snapshots for. // This parameter cannot be used in conjunction with the DBClusterSnapshotIdentifier // parameter. This parameter is not case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBClusterIdentifier *string `type:"string"` // A specific DB cluster snapshot identifier to describe. This parameter cannot @@ -7392,35 +6206,15 @@ type DescribeDBClusterSnapshotsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // If this identifier is for an automated snapshot, the SnapshotType parameter - // must also be specified. + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens If this is the + // identifier of an automated snapshot, the SnapshotType parameter must also + // be specified. DBClusterSnapshotIdentifier *string `type:"string"` // This parameter is not currently supported. Filters []*Filter `locationNameList:"Filter" type:"list"` - // Set this value to true to include manual DB cluster snapshots that are public - // and can be copied or restored by any AWS account, otherwise set this value - // to false. The default is false. The default is false. - // - // You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute - // API action. - IncludePublic *bool `type:"boolean"` - - // Set this value to true to include shared manual DB cluster snapshots from - // other AWS accounts that this AWS account has been given permission to copy - // or restore, otherwise set this value to false. The default is false. - // - // You can give an AWS account permission to restore a manual DB cluster snapshot - // from another AWS account by the ModifyDBClusterSnapshotAttribute API action. - IncludeShared *bool `type:"boolean"` - // An optional pagination token provided by a previous DescribeDBClusterSnapshots // request. If this parameter is specified, the response includes only records // beyond the marker, up to the value specified by MaxRecords. @@ -7435,31 +6229,16 @@ type DescribeDBClusterSnapshotsInput struct { // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` - // The type of DB cluster snapshots to be returned. You can specify one of the - // following values: - // - // automated - Return all DB cluster snapshots that have been automatically - // taken by Amazon RDS for my AWS account. - // - // manual - Return all DB cluster snapshots that have been taken by my AWS - // account. - // - // shared - Return all manual DB cluster snapshots that have been shared - // to my AWS account. - // - // public - Return all DB cluster snapshots that have been marked as public. - // - // If you don't specify a SnapshotType value, then both automated and manual - // DB cluster snapshots are returned. You can include shared DB cluster snapshots - // with these results by setting the IncludeShared parameter to true. You can - // include public DB cluster snapshots with these results by setting the IncludePublic - // parameter to true. - // - // The IncludeShared and IncludePublic parameters don't apply for SnapshotType - // values of manual or automated. The IncludePublic parameter doesn't apply - // when SnapshotType is set to shared. The IncludeShared parameter doesn't apply - // when SnapshotType is set to public. + // The type of DB cluster snapshots that will be returned. Values can be automated + // or manual. If this parameter is not specified, the returned results will + // include all snapshot types. SnapshotType *string `type:"string"` + + metadataDescribeDBClusterSnapshotsInput `json:"-" xml:"-"` +} + +type metadataDescribeDBClusterSnapshotsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7472,31 +6251,9 @@ func (s DescribeDBClusterSnapshotsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBClusterSnapshotsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterSnapshotsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides a list of DB cluster snapshots for the user as the result of a call // to the DescribeDBClusterSnapshots action. type DescribeDBClusterSnapshotsOutput struct { - _ struct{} `type:"structure"` - // Provides a list of DB cluster snapshots for the user. DBClusterSnapshots []*DBClusterSnapshot `locationNameList:"DBClusterSnapshot" type:"list"` @@ -7504,6 +6261,12 @@ type DescribeDBClusterSnapshotsOutput struct { // request. If this parameter is specified, the response includes only records // beyond the marker, up to the value specified by MaxRecords. Marker *string `type:"string"` + + metadataDescribeDBClusterSnapshotsOutput `json:"-" xml:"-"` +} + +type metadataDescribeDBClusterSnapshotsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7517,19 +6280,14 @@ func (s DescribeDBClusterSnapshotsOutput) GoString() string { } type DescribeDBClustersInput struct { - _ struct{} `type:"structure"` - // The user-supplied DB cluster identifier. If this parameter is specified, // information from only the specific DB cluster is returned. This parameter // isn't case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBClusterIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -7548,6 +6306,12 @@ type DescribeDBClustersInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeDBClustersInput `json:"-" xml:"-"` +} + +type metadataDescribeDBClustersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7560,36 +6324,20 @@ func (s DescribeDBClustersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBClustersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBClustersInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of a successful invocation of the DescribeDBClusters // action. type DescribeDBClustersOutput struct { - _ struct{} `type:"structure"` - // Contains a list of DB clusters for the user. DBClusters []*DBCluster `locationNameList:"DBCluster" type:"list"` // A pagination token that can be used in a subsequent DescribeDBClusters request. Marker *string `type:"string"` + + metadataDescribeDBClustersOutput `json:"-" xml:"-"` +} + +type metadataDescribeDBClustersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7603,17 +6351,12 @@ func (s DescribeDBClustersOutput) GoString() string { } type DescribeDBEngineVersionsInput struct { - _ struct{} `type:"structure"` - // The name of a specific DB parameter group family to return details for. // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupFamily *string `type:"string"` // Indicates that only the default version of the specified engine or engine @@ -7649,6 +6392,12 @@ type DescribeDBEngineVersionsInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeDBEngineVersionsInput `json:"-" xml:"-"` +} + +type metadataDescribeDBEngineVersionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7661,31 +6410,9 @@ func (s DescribeDBEngineVersionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBEngineVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBEngineVersionsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of a successful invocation of the DescribeDBEngineVersions // action. type DescribeDBEngineVersionsOutput struct { - _ struct{} `type:"structure"` - // A list of DBEngineVersion elements. DBEngineVersions []*DBEngineVersion `locationNameList:"DBEngineVersion" type:"list"` @@ -7693,6 +6420,12 @@ type DescribeDBEngineVersionsOutput struct { // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords. Marker *string `type:"string"` + + metadataDescribeDBEngineVersionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeDBEngineVersionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7706,18 +6439,13 @@ func (s DescribeDBEngineVersionsOutput) GoString() string { } type DescribeDBInstancesInput struct { - _ struct{} `type:"structure"` - // The user-supplied instance identifier. If this parameter is specified, information // from only the specific DB instance is returned. This parameter isn't case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string"` // This parameter is not currently supported. @@ -7736,6 +6464,12 @@ type DescribeDBInstancesInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeDBInstancesInput `json:"-" xml:"-"` +} + +type metadataDescribeDBInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7748,31 +6482,9 @@ func (s DescribeDBInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBInstancesInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of a successful invocation of the DescribeDBInstances // action. type DescribeDBInstancesOutput struct { - _ struct{} `type:"structure"` - // A list of DBInstance instances. DBInstances []*DBInstance `locationNameList:"DBInstance" type:"list"` @@ -7780,6 +6492,12 @@ type DescribeDBInstancesOutput struct { // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords . Marker *string `type:"string"` + + metadataDescribeDBInstancesOutput `json:"-" xml:"-"` +} + +type metadataDescribeDBInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7794,8 +6512,6 @@ func (s DescribeDBInstancesOutput) GoString() string { // This data type is used as a response element to DescribeDBLogFiles. type DescribeDBLogFilesDetails struct { - _ struct{} `type:"structure"` - // A POSIX timestamp when the last log entry was written. LastWritten *int64 `type:"long"` @@ -7804,6 +6520,12 @@ type DescribeDBLogFilesDetails struct { // The size, in bytes, of the log file for the specified DB instance. Size *int64 `type:"long"` + + metadataDescribeDBLogFilesDetails `json:"-" xml:"-"` +} + +type metadataDescribeDBLogFilesDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7817,18 +6539,13 @@ func (s DescribeDBLogFilesDetails) GoString() string { } type DescribeDBLogFilesInput struct { - _ struct{} `type:"structure"` - // The customer-assigned name of the DB instance that contains the log files // you want to list. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string" required:"true"` // Filters the available log files for files written since the specified date, @@ -7854,6 +6571,12 @@ type DescribeDBLogFilesInput struct { // exist than the specified MaxRecords value, a pagination token called a marker // is included in the response so that the remaining results can be retrieved. MaxRecords *int64 `type:"integer"` + + metadataDescribeDBLogFilesInput `json:"-" xml:"-"` +} + +type metadataDescribeDBLogFilesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7866,38 +6589,19 @@ func (s DescribeDBLogFilesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBLogFilesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBLogFilesInput"} - if s.DBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier")) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The response from a call to DescribeDBLogFiles. type DescribeDBLogFilesOutput struct { - _ struct{} `type:"structure"` - // The DB log files returned. DescribeDBLogFiles []*DescribeDBLogFilesDetails `locationNameList:"DescribeDBLogFilesDetails" type:"list"` // A pagination token that can be used in a subsequent DescribeDBLogFiles request. Marker *string `type:"string"` + + metadataDescribeDBLogFilesOutput `json:"-" xml:"-"` +} + +type metadataDescribeDBLogFilesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7911,17 +6615,12 @@ func (s DescribeDBLogFilesOutput) GoString() string { } type DescribeDBParameterGroupsInput struct { - _ struct{} `type:"structure"` - // The name of a specific DB parameter group to return details for. // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupName *string `type:"string"` // This parameter is not currently supported. @@ -7940,6 +6639,12 @@ type DescribeDBParameterGroupsInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeDBParameterGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeDBParameterGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7952,31 +6657,9 @@ func (s DescribeDBParameterGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBParameterGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBParameterGroupsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of a successful invocation of the DescribeDBParameterGroups // action. type DescribeDBParameterGroupsOutput struct { - _ struct{} `type:"structure"` - // A list of DBParameterGroup instances. DBParameterGroups []*DBParameterGroup `locationNameList:"DBParameterGroup" type:"list"` @@ -7984,6 +6667,12 @@ type DescribeDBParameterGroupsOutput struct { // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords. Marker *string `type:"string"` + + metadataDescribeDBParameterGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeDBParameterGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7997,17 +6686,12 @@ func (s DescribeDBParameterGroupsOutput) GoString() string { } type DescribeDBParametersInput struct { - _ struct{} `type:"structure"` - // The name of a specific DB parameter group to return details for. // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupName *string `type:"string" required:"true"` // This parameter is not currently supported. @@ -8033,6 +6717,12 @@ type DescribeDBParametersInput struct { // // Valid Values: user | system | engine-default Source *string `type:"string"` + + metadataDescribeDBParametersInput `json:"-" xml:"-"` +} + +type metadataDescribeDBParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8045,34 +6735,9 @@ func (s DescribeDBParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBParametersInput"} - if s.DBParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName")) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of a successful invocation of the DescribeDBParameters // action. type DescribeDBParametersOutput struct { - _ struct{} `type:"structure"` - // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords. @@ -8080,6 +6745,12 @@ type DescribeDBParametersOutput struct { // A list of Parameter values. Parameters []*Parameter `locationNameList:"Parameter" type:"list"` + + metadataDescribeDBParametersOutput `json:"-" xml:"-"` +} + +type metadataDescribeDBParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8093,8 +6764,6 @@ func (s DescribeDBParametersOutput) GoString() string { } type DescribeDBSecurityGroupsInput struct { - _ struct{} `type:"structure"` - // The name of the DB security group to return details for. DBSecurityGroupName *string `type:"string"` @@ -8114,6 +6783,12 @@ type DescribeDBSecurityGroupsInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeDBSecurityGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeDBSecurityGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8126,31 +6801,9 @@ func (s DescribeDBSecurityGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBSecurityGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBSecurityGroupsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of a successful invocation of the DescribeDBSecurityGroups // action. type DescribeDBSecurityGroupsOutput struct { - _ struct{} `type:"structure"` - // A list of DBSecurityGroup instances. DBSecurityGroups []*DBSecurityGroup `locationNameList:"DBSecurityGroup" type:"list"` @@ -8158,84 +6811,33 @@ type DescribeDBSecurityGroupsOutput struct { // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords. Marker *string `type:"string"` -} - -// String returns the string representation -func (s DescribeDBSecurityGroupsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDBSecurityGroupsOutput) GoString() string { - return s.String() -} -type DescribeDBSnapshotAttributesInput struct { - _ struct{} `type:"structure"` - - // The identifier for the DB snapshot to describe the attributes for. - DBSnapshotIdentifier *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeDBSnapshotAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDBSnapshotAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBSnapshotAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBSnapshotAttributesInput"} - if s.DBSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDescribeDBSecurityGroupsOutput `json:"-" xml:"-"` } -type DescribeDBSnapshotAttributesOutput struct { - _ struct{} `type:"structure"` - - // Contains the results of a successful call to the DescribeDBSnapshotAttributes - // API action. - // - // Manual DB snapshot attributes are used to authorize other AWS accounts to - // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute - // API action. - DBSnapshotAttributesResult *DBSnapshotAttributesResult `type:"structure"` +type metadataDescribeDBSecurityGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeDBSnapshotAttributesOutput) String() string { +func (s DescribeDBSecurityGroupsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeDBSnapshotAttributesOutput) GoString() string { +func (s DescribeDBSecurityGroupsOutput) GoString() string { return s.String() } type DescribeDBSnapshotsInput struct { - _ struct{} `type:"structure"` - - // The ID of the DB instance to retrieve the list of DB snapshots for. This - // parameter cannot be used in conjunction with DBSnapshotIdentifier. This parameter - // is not case-sensitive. + // A DB instance identifier to retrieve the list of DB snapshots for. This parameter + // cannot be used in conjunction with DBSnapshotIdentifier. This parameter is + // not case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string"` // A specific DB snapshot identifier to describe. This parameter cannot be used @@ -8244,35 +6846,15 @@ type DescribeDBSnapshotsInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters. - // - // First character must be a letter. - // - // Cannot end with a hyphen or contain two consecutive hyphens. - // - // If this identifier is for an automated snapshot, the SnapshotType parameter - // must also be specified. + // Must be 1 to 255 alphanumeric characters. First character must be a letter. + // Cannot end with a hyphen or contain two consecutive hyphens. If this is the + // identifier of an automated snapshot, the SnapshotType parameter must also + // be specified. DBSnapshotIdentifier *string `type:"string"` // This parameter is not currently supported. Filters []*Filter `locationNameList:"Filter" type:"list"` - // Set this value to true to include manual DB snapshots that are public and - // can be copied or restored by any AWS account, otherwise set this value to - // false. The default is false. - // - // You can share a manual DB snapshot as public by using the ModifyDBSnapshotAttribute - // API. - IncludePublic *bool `type:"boolean"` - - // Set this value to true to include shared manual DB snapshots from other AWS - // accounts that this AWS account has been given permission to copy or restore, - // otherwise set this value to false. The default is false. - // - // You can give an AWS account permission to restore a manual DB snapshot from - // another AWS account by using the ModifyDBSnapshotAttribute API action. - IncludeShared *bool `type:"boolean"` - // An optional pagination token provided by a previous DescribeDBSnapshots request. // If this parameter is specified, the response includes only records beyond // the marker, up to the value specified by MaxRecords. @@ -8287,29 +6869,16 @@ type DescribeDBSnapshotsInput struct { // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` - // The type of snapshots to be returned. You can specify one of the following - // values: - // - // automated - Return all DB snapshots that have been automatically taken - // by Amazon RDS for my AWS account. - // - // manual - Return all DB snapshots that have been taken by my AWS account. - // - // shared - Return all manual DB snapshots that have been shared to my AWS - // account. - // - // public - Return all DB snapshots that have been marked as public. - // - // If you don't specify a SnapshotType value, then both automated and manual - // snapshots are returned. You can include shared snapshots with these results - // by setting the IncludeShared parameter to true. You can include public snapshots - // with these results by setting the IncludePublic parameter to true. - // - // The IncludeShared and IncludePublic parameters don't apply for SnapshotType - // values of manual or automated. The IncludePublic parameter doesn't apply - // when SnapshotType is set to shared. The IncludeShared parameter doesn't apply - // when SnapshotType is set to public. + // The type of snapshots that will be returned. Values can be "automated" or + // "manual." If not specified, the returned results will include all snapshots + // types. SnapshotType *string `type:"string"` + + metadataDescribeDBSnapshotsInput `json:"-" xml:"-"` +} + +type metadataDescribeDBSnapshotsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8322,31 +6891,9 @@ func (s DescribeDBSnapshotsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBSnapshotsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBSnapshotsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of a successful invocation of the DescribeDBSnapshots // action. type DescribeDBSnapshotsOutput struct { - _ struct{} `type:"structure"` - // A list of DBSnapshot instances. DBSnapshots []*DBSnapshot `locationNameList:"DBSnapshot" type:"list"` @@ -8354,6 +6901,12 @@ type DescribeDBSnapshotsOutput struct { // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords. Marker *string `type:"string"` + + metadataDescribeDBSnapshotsOutput `json:"-" xml:"-"` +} + +type metadataDescribeDBSnapshotsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8367,8 +6920,6 @@ func (s DescribeDBSnapshotsOutput) GoString() string { } type DescribeDBSubnetGroupsInput struct { - _ struct{} `type:"structure"` - // The name of the DB subnet group to return details for. DBSubnetGroupName *string `type:"string"` @@ -8388,6 +6939,12 @@ type DescribeDBSubnetGroupsInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeDBSubnetGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeDBSubnetGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8400,31 +6957,9 @@ func (s DescribeDBSubnetGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDBSubnetGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDBSubnetGroupsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of a successful invocation of the DescribeDBSubnetGroups // action. type DescribeDBSubnetGroupsOutput struct { - _ struct{} `type:"structure"` - // A list of DBSubnetGroup instances. DBSubnetGroups []*DBSubnetGroup `locationNameList:"DBSubnetGroup" type:"list"` @@ -8432,6 +6967,12 @@ type DescribeDBSubnetGroupsOutput struct { // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords. Marker *string `type:"string"` + + metadataDescribeDBSubnetGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeDBSubnetGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8445,8 +6986,6 @@ func (s DescribeDBSubnetGroupsOutput) GoString() string { } type DescribeEngineDefaultClusterParametersInput struct { - _ struct{} `type:"structure"` - // The name of the DB cluster parameter group family to return engine parameter // information for. DBParameterGroupFamily *string `type:"string" required:"true"` @@ -8467,6 +7006,12 @@ type DescribeEngineDefaultClusterParametersInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeEngineDefaultClusterParametersInput `json:"-" xml:"-"` +} + +type metadataDescribeEngineDefaultClusterParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8479,35 +7024,16 @@ func (s DescribeEngineDefaultClusterParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEngineDefaultClusterParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultClusterParametersInput"} - if s.DBParameterGroupFamily == nil { - invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily")) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeEngineDefaultClusterParametersOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the DescribeEngineDefaultParameters // action. EngineDefaults *EngineDefaults `type:"structure"` + + metadataDescribeEngineDefaultClusterParametersOutput `json:"-" xml:"-"` +} + +type metadataDescribeEngineDefaultClusterParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8521,8 +7047,6 @@ func (s DescribeEngineDefaultClusterParametersOutput) GoString() string { } type DescribeEngineDefaultParametersInput struct { - _ struct{} `type:"structure"` - // The name of the DB parameter group family. DBParameterGroupFamily *string `type:"string" required:"true"` @@ -8542,6 +7066,12 @@ type DescribeEngineDefaultParametersInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeEngineDefaultParametersInput `json:"-" xml:"-"` +} + +type metadataDescribeEngineDefaultParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8554,35 +7084,16 @@ func (s DescribeEngineDefaultParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEngineDefaultParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultParametersInput"} - if s.DBParameterGroupFamily == nil { - invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily")) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeEngineDefaultParametersOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the DescribeEngineDefaultParameters // action. EngineDefaults *EngineDefaults `type:"structure"` + + metadataDescribeEngineDefaultParametersOutput `json:"-" xml:"-"` +} + +type metadataDescribeEngineDefaultParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8596,8 +7107,6 @@ func (s DescribeEngineDefaultParametersOutput) GoString() string { } type DescribeEventCategoriesInput struct { - _ struct{} `type:"structure"` - // This parameter is not currently supported. Filters []*Filter `locationNameList:"Filter" type:"list"` @@ -8605,6 +7114,12 @@ type DescribeEventCategoriesInput struct { // // Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot SourceType *string `type:"string"` + + metadataDescribeEventCategoriesInput `json:"-" xml:"-"` +} + +type metadataDescribeEventCategoriesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8617,32 +7132,16 @@ func (s DescribeEventCategoriesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEventCategoriesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEventCategoriesInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Data returned from the DescribeEventCategories action. type DescribeEventCategoriesOutput struct { - _ struct{} `type:"structure"` - // A list of EventCategoriesMap data types. EventCategoriesMapList []*EventCategoriesMap `locationNameList:"EventCategoriesMap" type:"list"` + + metadataDescribeEventCategoriesOutput `json:"-" xml:"-"` +} + +type metadataDescribeEventCategoriesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8656,8 +7155,6 @@ func (s DescribeEventCategoriesOutput) GoString() string { } type DescribeEventSubscriptionsInput struct { - _ struct{} `type:"structure"` - // This parameter is not currently supported. Filters []*Filter `locationNameList:"Filter" type:"list"` @@ -8677,6 +7174,12 @@ type DescribeEventSubscriptionsInput struct { // The name of the RDS event notification subscription you want to describe. SubscriptionName *string `type:"string"` + + metadataDescribeEventSubscriptionsInput `json:"-" xml:"-"` +} + +type metadataDescribeEventSubscriptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8689,30 +7192,8 @@ func (s DescribeEventSubscriptionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEventSubscriptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEventSubscriptionsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Data returned by the DescribeEventSubscriptions action. type DescribeEventSubscriptionsOutput struct { - _ struct{} `type:"structure"` - // A list of EventSubscriptions data types. EventSubscriptionsList []*EventSubscription `locationNameList:"EventSubscription" type:"list"` @@ -8720,6 +7201,12 @@ type DescribeEventSubscriptionsOutput struct { // request. If this parameter is specified, the response includes only records // beyond the marker, up to the value specified by MaxRecords. Marker *string `type:"string"` + + metadataDescribeEventSubscriptionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeEventSubscriptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8733,8 +7220,6 @@ func (s DescribeEventSubscriptionsOutput) GoString() string { } type DescribeEventsInput struct { - _ struct{} `type:"structure"` - // The number of minutes to retrieve events for. // // Default: 60 @@ -8773,19 +7258,12 @@ type DescribeEventsInput struct { // // Constraints: // - // If SourceIdentifier is supplied, SourceType must also be provided. - // - // If the source type is DBInstance, then a DBInstanceIdentifier must be - // supplied. - // - // If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied. - // - // If the source type is DBParameterGroup, a DBParameterGroupName must be - // supplied. - // - // If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied. - // - // Cannot end with a hyphen or contain two consecutive hyphens. + // If SourceIdentifier is supplied, SourceType must also be provided. If the + // source type is DBInstance, then a DBInstanceIdentifier must be supplied. + // If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied. + // If the source type is DBParameterGroup, a DBParameterGroupName must be supplied. + // If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied. + // Cannot end with a hyphen or contain two consecutive hyphens. SourceIdentifier *string `type:"string"` // The event source to retrieve events for. If no value is specified, all events @@ -8798,6 +7276,12 @@ type DescribeEventsInput struct { // // Example: 2009-07-08T18:00Z StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataDescribeEventsInput `json:"-" xml:"-"` +} + +type metadataDescribeEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8810,30 +7294,8 @@ func (s DescribeEventsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of a successful invocation of the DescribeEvents action. type DescribeEventsOutput struct { - _ struct{} `type:"structure"` - // A list of Event instances. Events []*Event `locationNameList:"Event" type:"list"` @@ -8841,6 +7303,12 @@ type DescribeEventsOutput struct { // parameter is specified, the response includes only records beyond the marker, // up to the value specified by MaxRecords . Marker *string `type:"string"` + + metadataDescribeEventsOutput `json:"-" xml:"-"` +} + +type metadataDescribeEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8854,8 +7322,6 @@ func (s DescribeEventsOutput) GoString() string { } type DescribeOptionGroupOptionsInput struct { - _ struct{} `type:"structure"` - // A required parameter. Options available for the given engine name will be // described. EngineName *string `type:"string" required:"true"` @@ -8880,6 +7346,12 @@ type DescribeOptionGroupOptionsInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeOptionGroupOptionsInput `json:"-" xml:"-"` +} + +type metadataDescribeOptionGroupOptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8892,32 +7364,7 @@ func (s DescribeOptionGroupOptionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeOptionGroupOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeOptionGroupOptionsInput"} - if s.EngineName == nil { - invalidParams.Add(request.NewErrParamRequired("EngineName")) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeOptionGroupOptionsOutput struct { - _ struct{} `type:"structure"` - // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords. @@ -8925,6 +7372,12 @@ type DescribeOptionGroupOptionsOutput struct { // List of available option group options. OptionGroupOptions []*OptionGroupOption `locationNameList:"OptionGroupOption" type:"list"` + + metadataDescribeOptionGroupOptionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeOptionGroupOptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8938,8 +7391,6 @@ func (s DescribeOptionGroupOptionsOutput) GoString() string { } type DescribeOptionGroupsInput struct { - _ struct{} `type:"structure"` - // Filters the list of option groups to only include groups associated with // a specific database engine. EngineName *string `type:"string"` @@ -8969,6 +7420,12 @@ type DescribeOptionGroupsInput struct { // The name of the option group to describe. Cannot be supplied together with // EngineName or MajorEngineVersion. OptionGroupName *string `type:"string"` + + metadataDescribeOptionGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeOptionGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8981,30 +7438,8 @@ func (s DescribeOptionGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeOptionGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeOptionGroupsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // List of option groups. type DescribeOptionGroupsOutput struct { - _ struct{} `type:"structure"` - // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords. @@ -9012,6 +7447,12 @@ type DescribeOptionGroupsOutput struct { // List of option groups. OptionGroupsList []*OptionGroup `locationNameList:"OptionGroup" type:"list"` + + metadataDescribeOptionGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeOptionGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9025,8 +7466,6 @@ func (s DescribeOptionGroupsOutput) GoString() string { } type DescribeOrderableDBInstanceOptionsInput struct { - _ struct{} `type:"structure"` - // The DB instance class filter value. Specify this parameter to show only the // available offerings matching the specified DB instance class. DBInstanceClass *string `type:"string"` @@ -9062,6 +7501,12 @@ type DescribeOrderableDBInstanceOptionsInput struct { // The VPC filter value. Specify this parameter to show only the available VPC // or non-VPC offerings. Vpc *bool `type:"boolean"` + + metadataDescribeOrderableDBInstanceOptionsInput `json:"-" xml:"-"` +} + +type metadataDescribeOrderableDBInstanceOptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9074,34 +7519,9 @@ func (s DescribeOrderableDBInstanceOptionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeOrderableDBInstanceOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeOrderableDBInstanceOptionsInput"} - if s.Engine == nil { - invalidParams.Add(request.NewErrParamRequired("Engine")) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions // action. type DescribeOrderableDBInstanceOptionsOutput struct { - _ struct{} `type:"structure"` - // An optional pagination token provided by a previous OrderableDBInstanceOptions // request. If this parameter is specified, the response includes only records // beyond the marker, up to the value specified by MaxRecords . @@ -9110,6 +7530,12 @@ type DescribeOrderableDBInstanceOptionsOutput struct { // An OrderableDBInstanceOption structure containing information about orderable // options for the DB instance. OrderableDBInstanceOptions []*OrderableDBInstanceOption `locationNameList:"OrderableDBInstanceOption" type:"list"` + + metadataDescribeOrderableDBInstanceOptionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeOrderableDBInstanceOptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9123,14 +7549,12 @@ func (s DescribeOrderableDBInstanceOptionsOutput) GoString() string { } type DescribePendingMaintenanceActionsInput struct { - _ struct{} `type:"structure"` - // A filter that specifies one or more resources to return pending maintenance // actions for. // // Supported filters: // - // db-instance-id - Accepts DB instance identifiers and DB instance Amazon + // db-instance-id - Accepts DB instance identifiers and DB instance Amazon // Resource Names (ARNs). The results list will only include pending maintenance // actions for the DB instances identified by these ARNs. Filters []*Filter `locationNameList:"Filter" type:"list"` @@ -9151,6 +7575,12 @@ type DescribePendingMaintenanceActionsInput struct { // The ARN of a resource to return pending maintenance actions for. ResourceIdentifier *string `type:"string"` + + metadataDescribePendingMaintenanceActionsInput `json:"-" xml:"-"` +} + +type metadataDescribePendingMaintenanceActionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9163,30 +7593,8 @@ func (s DescribePendingMaintenanceActionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribePendingMaintenanceActionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribePendingMaintenanceActionsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Data returned from the DescribePendingMaintenanceActions action. type DescribePendingMaintenanceActionsOutput struct { - _ struct{} `type:"structure"` - // An optional pagination token provided by a previous DescribePendingMaintenanceActions // request. If this parameter is specified, the response includes only records // beyond the marker, up to a number of records specified by MaxRecords. @@ -9194,6 +7602,12 @@ type DescribePendingMaintenanceActionsOutput struct { // A list of the pending maintenance actions for the resource. PendingMaintenanceActions []*ResourcePendingMaintenanceActions `locationNameList:"ResourcePendingMaintenanceActions" type:"list"` + + metadataDescribePendingMaintenanceActionsOutput `json:"-" xml:"-"` +} + +type metadataDescribePendingMaintenanceActionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9207,8 +7621,6 @@ func (s DescribePendingMaintenanceActionsOutput) GoString() string { } type DescribeReservedDBInstancesInput struct { - _ struct{} `type:"structure"` - // The DB instance class filter value. Specify this parameter to show only those // reservations matching the specified DB instances class. DBInstanceClass *string `type:"string"` @@ -9257,6 +7669,12 @@ type DescribeReservedDBInstancesInput struct { // The offering identifier filter value. Specify this parameter to show only // purchased reservations matching the specified offering identifier. ReservedDBInstancesOfferingId *string `type:"string"` + + metadataDescribeReservedDBInstancesInput `json:"-" xml:"-"` +} + +type metadataDescribeReservedDBInstancesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9269,29 +7687,7 @@ func (s DescribeReservedDBInstancesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeReservedDBInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeReservedDBInstancesInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeReservedDBInstancesOfferingsInput struct { - _ struct{} `type:"structure"` - // The DB instance class filter value. Specify this parameter to show only the // available offerings matching the specified DB instance class. DBInstanceClass *string `type:"string"` @@ -9338,6 +7734,12 @@ type DescribeReservedDBInstancesOfferingsInput struct { // // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706 ReservedDBInstancesOfferingId *string `type:"string"` + + metadataDescribeReservedDBInstancesOfferingsInput `json:"-" xml:"-"` +} + +type metadataDescribeReservedDBInstancesOfferingsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9346,35 +7748,13 @@ func (s DescribeReservedDBInstancesOfferingsInput) String() string { } // GoString returns the string representation -func (s DescribeReservedDBInstancesOfferingsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeReservedDBInstancesOfferingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeReservedDBInstancesOfferingsInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +func (s DescribeReservedDBInstancesOfferingsInput) GoString() string { + return s.String() } // Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings // action. type DescribeReservedDBInstancesOfferingsOutput struct { - _ struct{} `type:"structure"` - // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords. @@ -9382,6 +7762,12 @@ type DescribeReservedDBInstancesOfferingsOutput struct { // A list of reserved DB instance offerings. ReservedDBInstancesOfferings []*ReservedDBInstancesOffering `locationNameList:"ReservedDBInstancesOffering" type:"list"` + + metadataDescribeReservedDBInstancesOfferingsOutput `json:"-" xml:"-"` +} + +type metadataDescribeReservedDBInstancesOfferingsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9397,8 +7783,6 @@ func (s DescribeReservedDBInstancesOfferingsOutput) GoString() string { // Contains the result of a successful invocation of the DescribeReservedDBInstances // action. type DescribeReservedDBInstancesOutput struct { - _ struct{} `type:"structure"` - // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to // the value specified by MaxRecords. @@ -9406,60 +7790,32 @@ type DescribeReservedDBInstancesOutput struct { // A list of reserved DB instances. ReservedDBInstances []*ReservedDBInstance `locationNameList:"ReservedDBInstance" type:"list"` -} -// String returns the string representation -func (s DescribeReservedDBInstancesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReservedDBInstancesOutput) GoString() string { - return s.String() + metadataDescribeReservedDBInstancesOutput `json:"-" xml:"-"` } -// An Active Directory Domain membership record associated with the DB instance. -type DomainMembership struct { - _ struct{} `type:"structure"` - - // The identifier of the Active Directory Domain. - Domain *string `type:"string"` - - // The fully qualified domain name of the Active Directory Domain. - FQDN *string `type:"string"` - - // The name of the IAM role to be used when making API calls to the Directory - // Service. - IAMRoleName *string `type:"string"` - - // The status of the DB instance's Active Directory Domain membership, such - // as joined, pending-join, failed etc). - Status *string `type:"string"` +type metadataDescribeReservedDBInstancesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DomainMembership) String() string { +func (s DescribeReservedDBInstancesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DomainMembership) GoString() string { +func (s DescribeReservedDBInstancesOutput) GoString() string { return s.String() } type DownloadDBLogFilePortionInput struct { - _ struct{} `type:"structure"` - // The customer-assigned name of the DB instance that contains the log files // you want to list. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string" required:"true"` // The name of the log file to be downloaded. @@ -9475,24 +7831,27 @@ type DownloadDBLogFilePortionInput struct { // // If the NumberOfLines parameter is specified, then the block of lines returned // can be from the beginning or the end of the log file, depending on the value - // of the Marker parameter. + // of the Marker parameter. If neither Marker or NumberOfLines are specified, + // the entire log file is returned. // - // If neither Marker or NumberOfLines are specified, the entire log file - // is returned up to a maximum of 10000 lines, starting with the most recent - // log entries first. - // - // If NumberOfLines is specified and Marker is not specified, then the most + // If NumberOfLines is specified and Marker is not specified, then the most // recent lines from the end of the log file are returned. // - // If Marker is specified as "0", then the specified number of lines from - // the beginning of the log file are returned. + // If Marker is specified as "0", then the specified number of lines from the + // beginning of the log file are returned. // - // You can download the log file in blocks of lines by specifying the size + // You can download the log file in blocks of lines by specifying the size // of the block using the NumberOfLines parameter, and by specifying a value // of "0" for the Marker parameter in your first request. Include the Marker // value returned in the response as the Marker value for the next request, // continuing until the AdditionalDataPending response element returns false. NumberOfLines *int64 `type:"integer"` + + metadataDownloadDBLogFilePortionInput `json:"-" xml:"-"` +} + +type metadataDownloadDBLogFilePortionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9505,26 +7864,8 @@ func (s DownloadDBLogFilePortionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DownloadDBLogFilePortionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DownloadDBLogFilePortionInput"} - if s.DBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier")) - } - if s.LogFileName == nil { - invalidParams.Add(request.NewErrParamRequired("LogFileName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This data type is used as a response element to DownloadDBLogFilePortion. type DownloadDBLogFilePortionOutput struct { - _ struct{} `type:"structure"` - // Boolean value that if true, indicates there is more data to be downloaded. AdditionalDataPending *bool `type:"boolean"` @@ -9534,6 +7875,12 @@ type DownloadDBLogFilePortionOutput struct { // A pagination token that can be used in a subsequent DownloadDBLogFilePortion // request. Marker *string `type:"string"` + + metadataDownloadDBLogFilePortionOutput `json:"-" xml:"-"` +} + +type metadataDownloadDBLogFilePortionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9548,14 +7895,8 @@ func (s DownloadDBLogFilePortionOutput) GoString() string { // This data type is used as a response element in the following actions: // -// AuthorizeDBSecurityGroupIngress -// -// DescribeDBSecurityGroups -// -// RevokeDBSecurityGroupIngress +// AuthorizeDBSecurityGroupIngress DescribeDBSecurityGroups RevokeDBSecurityGroupIngress type EC2SecurityGroup struct { - _ struct{} `type:"structure"` - // Specifies the id of the EC2 security group. EC2SecurityGroupId *string `type:"string"` @@ -9569,6 +7910,12 @@ type EC2SecurityGroup struct { // Provides the status of the EC2 security group. Status can be "authorizing", // "authorized", "revoking", and "revoked". Status *string `type:"string"` + + metadataEC2SecurityGroup `json:"-" xml:"-"` +} + +type metadataEC2SecurityGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9583,22 +7930,19 @@ func (s EC2SecurityGroup) GoString() string { // This data type is used as a response element in the following actions: // -// CreateDBInstance -// -// DescribeDBInstances -// -// DeleteDBInstance +// CreateDBInstance DescribeDBInstances DeleteDBInstance type Endpoint struct { - _ struct{} `type:"structure"` - // Specifies the DNS address of the DB instance. Address *string `type:"string"` - // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone. - HostedZoneId *string `type:"string"` - // Specifies the port that the database engine is listening on. Port *int64 `type:"integer"` + + metadataEndpoint `json:"-" xml:"-"` +} + +type metadataEndpoint struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9614,8 +7958,6 @@ func (s Endpoint) GoString() string { // Contains the result of a successful invocation of the DescribeEngineDefaultParameters // action. type EngineDefaults struct { - _ struct{} `type:"structure"` - // Specifies the name of the DB parameter group family that the engine default // parameters apply to. DBParameterGroupFamily *string `type:"string"` @@ -9627,6 +7969,12 @@ type EngineDefaults struct { // Contains a list of engine default parameters. Parameters []*Parameter `locationNameList:"Parameter" type:"list"` + + metadataEngineDefaults `json:"-" xml:"-"` +} + +type metadataEngineDefaults struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9641,8 +7989,6 @@ func (s EngineDefaults) GoString() string { // This data type is used as a response element in the DescribeEvents action. type Event struct { - _ struct{} `type:"structure"` - // Specifies the date and time of the event. Date *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -9657,6 +8003,12 @@ type Event struct { // Specifies the source type for this event. SourceType *string `type:"string" enum:"SourceType"` + + metadataEvent `json:"-" xml:"-"` +} + +type metadataEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9672,13 +8024,17 @@ func (s Event) GoString() string { // Contains the results of a successful invocation of the DescribeEventCategories // action. type EventCategoriesMap struct { - _ struct{} `type:"structure"` - // The event categories for the specified source type EventCategories []*string `locationNameList:"EventCategory" type:"list"` // The source type that the returned categories belong to SourceType *string `type:"string"` + + metadataEventCategoriesMap `json:"-" xml:"-"` +} + +type metadataEventCategoriesMap struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9694,8 +8050,6 @@ func (s EventCategoriesMap) GoString() string { // Contains the results of a successful invocation of the DescribeEventSubscriptions // action. type EventSubscription struct { - _ struct{} `type:"structure"` - // The RDS event notification subscription Id. CustSubscriptionId *string `type:"string"` @@ -9732,6 +8086,12 @@ type EventSubscription struct { // The time the RDS event notification subscription was created. SubscriptionCreationTime *string `type:"string"` + + metadataEventSubscription `json:"-" xml:"-"` +} + +type metadataEventSubscription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9745,18 +8105,19 @@ func (s EventSubscription) GoString() string { } type FailoverDBClusterInput struct { - _ struct{} `type:"structure"` - // A DB cluster identifier to force a failover for. This parameter is not case-sensitive. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBClusterIdentifier *string `type:"string"` + + metadataFailoverDBClusterInput `json:"-" xml:"-"` +} + +type metadataFailoverDBClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9770,25 +8131,18 @@ func (s FailoverDBClusterInput) GoString() string { } type FailoverDBClusterOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster - // - // DeleteDBCluster - // - // FailoverDBCluster - // - // ModifyDBCluster - // - // RestoreDBClusterFromSnapshot - // - // RestoreDBClusterToPointInTime - // - // This data type is used as a response element in the DescribeDBClusters - // action. + // CreateDBCluster DeleteDBCluster FailoverDBCluster ModifyDBCluster + // RestoreDBClusterFromSnapshot This data type is used as a response element + // in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` + + metadataFailoverDBClusterOutput `json:"-" xml:"-"` +} + +type metadataFailoverDBClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9801,15 +8155,18 @@ func (s FailoverDBClusterOutput) GoString() string { return s.String() } -// This type is not currently supported. type Filter struct { - _ struct{} `type:"structure"` - // This parameter is not currently supported. Name *string `type:"string" required:"true"` // This parameter is not currently supported. Values []*string `locationNameList:"Value" type:"list" required:"true"` + + metadataFilter `json:"-" xml:"-"` +} + +type metadataFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9822,33 +8179,21 @@ func (s Filter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Filter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Filter"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Values == nil { - invalidParams.Add(request.NewErrParamRequired("Values")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // This data type is used as a response element in the DescribeDBSecurityGroups // action. type IPRange struct { - _ struct{} `type:"structure"` - // Specifies the IP range. CIDRIP *string `type:"string"` // Specifies the status of the IP range. Status can be "authorizing", "authorized", // "revoking", and "revoked". Status *string `type:"string"` + + metadataIPRange `json:"-" xml:"-"` +} + +type metadataIPRange struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9862,8 +8207,6 @@ func (s IPRange) GoString() string { } type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` - // This parameter is not currently supported. Filters []*Filter `locationNameList:"Filter" type:"list"` @@ -9871,6 +8214,12 @@ type ListTagsForResourceInput struct { // Name (ARN). For information about creating an ARN, see Constructing an RDS // Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN). ResourceName *string `type:"string" required:"true"` + + metadataListTagsForResourceInput `json:"-" xml:"-"` +} + +type metadataListTagsForResourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9883,34 +8232,15 @@ 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.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - // List of tags returned by the ListTagsForResource operation. TagList []*Tag `locationNameList:"Tag" type:"list"` + + metadataListTagsForResourceOutput `json:"-" xml:"-"` +} + +type metadataListTagsForResourceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -9924,32 +8254,25 @@ func (s ListTagsForResourceOutput) GoString() string { } type ModifyDBClusterInput struct { - _ struct{} `type:"structure"` - // A value that specifies whether the modifications in this request and any // pending modifications are asynchronously applied as soon as possible, regardless - // of the PreferredMaintenanceWindow setting for the DB cluster. If this parameter - // is set to false, changes to the DB cluster are applied during the next maintenance - // window. + // of the PreferredMaintenanceWindow setting for the DB cluster. // - // The ApplyImmediately parameter only affects the NewDBClusterIdentifier and - // MasterUserPassword values. If you set the ApplyImmediately parameter value - // to false, then changes to the NewDBClusterIdentifier and MasterUserPassword - // values are applied during the next maintenance window. All other changes - // are applied immediately, regardless of the value of the ApplyImmediately - // parameter. + // If this parameter is set to false, changes to the DB cluster are applied + // during the next maintenance window. // // Default: false ApplyImmediately *bool `type:"boolean"` - // The number of days for which automated backups are retained. You must specify - // a minimum value of 1. + // The number of days for which automated backups are retained. Setting this + // parameter to a positive number enables backups. Setting this parameter to + // 0 disables automated backups. // // Default: 1 // // Constraints: // - // Must be a value from 1 to 35 + // Must be a value from 0 to 35 BackupRetentionPeriod *int64 `type:"integer"` // The DB cluster identifier for the cluster being modified. This parameter @@ -9957,14 +8280,10 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must be the identifier for an existing DB cluster. - // - // Must contain from 1 to 63 alphanumeric characters or hyphens. - // - // First character must be a letter. - // - // Cannot end with a hyphen or contain two consecutive hyphens. - DBClusterIdentifier *string `type:"string" required:"true"` + // Must be the identifier for an existing DB cluster. Must contain from 1 + // to 63 alphanumeric characters or hyphens. First character must be a letter. + // Cannot end with a hyphen or contain two consecutive hyphens. + DBClusterIdentifier *string `type:"string"` // The name of the DB cluster parameter group to use for the DB cluster. DBClusterParameterGroupName *string `type:"string"` @@ -9980,13 +8299,9 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // Example: my-cluster2 + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens + // Example: my-cluster2 NewDBClusterIdentifier *string `type:"string"` // A value that indicates that the DB cluster should be associated with the @@ -10018,13 +8333,9 @@ type ModifyDBClusterInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. - // - // Times should be in Universal Coordinated Time (UTC). - // - // Must not conflict with the preferred maintenance window. - // - // Must be at least 30 minutes. + // Must be in the format hh24:mi-hh24:mi. Times should be in Universal Coordinated + // Time (UTC). Must not conflict with the preferred maintenance window. Must + // be at least 30 minutes. PreferredBackupWindow *string `type:"string"` // The weekly time range during which system maintenance can occur, in Universal @@ -10044,6 +8355,12 @@ type ModifyDBClusterInput struct { // A lst of VPC security groups that the DB cluster will belong to. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` + + metadataModifyDBClusterInput `json:"-" xml:"-"` +} + +type metadataModifyDBClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10056,39 +8373,19 @@ func (s ModifyDBClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyDBClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterInput"} - if s.DBClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyDBClusterOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster - // - // DeleteDBCluster - // - // FailoverDBCluster - // - // ModifyDBCluster - // - // RestoreDBClusterFromSnapshot - // - // RestoreDBClusterToPointInTime - // - // This data type is used as a response element in the DescribeDBClusters - // action. + // CreateDBCluster DeleteDBCluster FailoverDBCluster ModifyDBCluster + // RestoreDBClusterFromSnapshot This data type is used as a response element + // in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` + + metadataModifyDBClusterOutput `json:"-" xml:"-"` +} + +type metadataModifyDBClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10102,126 +8399,30 @@ func (s ModifyDBClusterOutput) GoString() string { } type ModifyDBClusterParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the DB cluster parameter group to modify. DBClusterParameterGroupName *string `type:"string" required:"true"` // A list of parameters in the DB cluster parameter group to modify. Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"` -} - -// String returns the string representation -func (s ModifyDBClusterParameterGroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyDBClusterParameterGroupInput) GoString() string { - return s.String() -} -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyDBClusterParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterParameterGroupInput"} - if s.DBClusterParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName")) - } - if s.Parameters == nil { - invalidParams.Add(request.NewErrParamRequired("Parameters")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ModifyDBClusterSnapshotAttributeInput struct { - _ struct{} `type:"structure"` - - // The name of the DB cluster snapshot attribute to modify. - // - // To manage authorization for other AWS accounts to copy or restore a manual - // DB cluster snapshot, set this value to restore. - AttributeName *string `type:"string" required:"true"` - - // The identifier for the DB cluster snapshot to modify the attributes for. - DBClusterSnapshotIdentifier *string `type:"string" required:"true"` - - // A list of DB cluster snapshot attributes to add to the attribute specified - // by AttributeName. - // - // To authorize other AWS accounts to copy or restore a manual DB cluster snapshot, - // set this list to include one or more AWS account IDs, or all to make the - // manual DB cluster snapshot restorable by any AWS account. Do not add the - // all value for any manual DB cluster snapshots that contain private information - // that you don't want available to all AWS accounts. - ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"` - - // A list of DB cluster snapshot attributes to remove from the attribute specified - // by AttributeName. - // - // To remove authorization for other AWS accounts to copy or restore a manual - // DB cluster snapshot, set this list to include one or more AWS account identifiers, - // or all to remove authorization for any AWS account to copy or restore the - // DB cluster snapshot. If you specify all, an AWS account whose account ID - // is explicitly added to the restore attribute can still copy or restore a - // manual DB cluster snapshot. - ValuesToRemove []*string `locationNameList:"AttributeValue" type:"list"` -} - -// String returns the string representation -func (s ModifyDBClusterSnapshotAttributeInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyDBClusterSnapshotAttributeInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyDBClusterSnapshotAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterSnapshotAttributeInput"} - if s.AttributeName == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeName")) - } - if s.DBClusterSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataModifyDBClusterParameterGroupInput `json:"-" xml:"-"` } -type ModifyDBClusterSnapshotAttributeOutput struct { - _ struct{} `type:"structure"` - - // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes - // API action. - // - // Manual DB cluster snapshot attributes are used to authorize other AWS accounts - // to copy or restore a manual DB cluster snapshot. For more information, see - // the ModifyDBClusterSnapshotAttribute API action. - DBClusterSnapshotAttributesResult *DBClusterSnapshotAttributesResult `type:"structure"` +type metadataModifyDBClusterParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ModifyDBClusterSnapshotAttributeOutput) String() string { +func (s ModifyDBClusterParameterGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyDBClusterSnapshotAttributeOutput) GoString() string { +func (s ModifyDBClusterParameterGroupInput) GoString() string { return s.String() } type ModifyDBInstanceInput struct { - _ struct{} `type:"structure"` - // The new storage capacity of the RDS instance. Changing this setting does // not result in an outage and the change is applied during the next maintenance // window unless ApplyImmediately is set to true for this request. @@ -10238,18 +8439,6 @@ type ModifyDBInstanceInput struct { // // Type: Integer // - // MariaDB - // - // Default: Uses existing setting - // - // Valid Values: 5-6144 - // - // Constraints: Value supplied must be at least 10% greater than the current - // value. Values that are not at least 10% greater than the existing value are - // rounded up so that they are 10% greater than the current value. - // - // Type: Integer - // // PostgreSQL // // Default: Uses existing setting @@ -10276,7 +8465,7 @@ type ModifyDBInstanceInput struct { // // Cannot be modified. // - // If you choose to migrate your DB instance from using standard storage to + // If you choose to migrate your DB instance from using standard storage to // using Provisioned IOPS, or from using Provisioned IOPS to using standard // storage, the process can take time. The duration of the migration depends // on several factors such as database load, storage size, storage type (standard @@ -10308,7 +8497,7 @@ type ModifyDBInstanceInput struct { // during the next maintenance window. Some parameter changes can cause an outage // and will be applied on the next call to RebootDBInstance, or the next failure // reboot. Review the table of parameters in Modifying a DB Instance and Using - // the Apply Immediately Parameter (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html) + // the Apply Immediately Parameter (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.html#Overview.DBInstance.Modifying) // to see the impact that setting ApplyImmediately to true or false has for // each modified parameter and to determine when the changes will be applied. // @@ -10338,24 +8527,15 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be a value from 0 to 35 - // - // Can be specified for a MySQL Read Replica only if the source is running - // MySQL 5.6 - // - // Can be specified for a PostgreSQL Read Replica only if the source is running - // PostgreSQL 9.3.5 - // - // Cannot be set to 0 if the DB instance is a source to Read Replicas + // Must be a value from 0 to 35 Can be specified for a MySQL Read Replica + // only if the source is running MySQL 5.6 Can be specified for a PostgreSQL + // Read Replica only if the source is running PostgreSQL 9.3.5 Cannot be set + // to 0 if the DB instance is a source to Read Replicas BackupRetentionPeriod *int64 `type:"integer"` // Indicates the certificate that needs to be associated with the instance. CACertificateIdentifier *string `type:"string"` - // True to copy all tags from the DB instance to snapshots of the DB instance; - // otherwise false. The default is false. - CopyTagsToSnapshot *bool `type:"boolean"` - // The new compute and memory capacity of the DB instance. To determine the // instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions // action. @@ -10368,85 +8548,31 @@ type ModifyDBInstanceInput struct { // // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge // | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large - // | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge - // | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge + // | db.m3.xlarge | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge // | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium - // | db.t2.large DBInstanceClass *string `type:"string"` // The DB instance identifier. This value is stored as a lowercase string. // // Constraints: // - // Must be the identifier for an existing DB instance - // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be the identifier for an existing DB instance Must contain from 1 + // to 63 alphanumeric characters or hyphens First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string" required:"true"` // The name of the DB parameter group to apply to the DB instance. Changing // this setting does not result in an outage. The parameter group name itself // is changed immediately, but the actual parameter changes are not applied // until you reboot the instance without failover. The db instance will NOT - // be rebooted automatically and the parameter changes will NOT be applied during - // the next maintenance window. - // - // Default: Uses existing setting - // - // Constraints: The DB parameter group must be in the same DB parameter group - // family as this DB instance. - DBParameterGroupName *string `type:"string"` - - // The port number on which the database accepts connections. - // - // The value of the DBPortNumber parameter must not match any of the port values - // specified for options in the option group for the DB instance. - // - // Your database will restart when you change the DBPortNumber value regardless - // of the value of the ApplyImmediately parameter. - // - // MySQL - // - // Default: 3306 - // - // Valid Values: 1150-65535 - // - // MariaDB - // - // Default: 3306 - // - // Valid Values: 1150-65535 - // - // PostgreSQL - // - // Default: 5432 - // - // Valid Values: 1150-65535 - // - // Type: Integer - // - // Oracle - // - // Default: 1521 - // - // Valid Values: 1150-65535 - // - // SQL Server - // - // Default: 1433 - // - // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 - // through 49156. - // - // Amazon Aurora + // be rebooted automatically and the parameter changes will NOT be applied during + // the next maintenance window. // - // Default: 3306 + // Default: Uses existing setting // - // Valid Values: 1150-65535 - DBPortNumber *int64 `type:"integer"` + // Constraints: The DB parameter group must be in the same DB parameter group + // family as this DB instance. + DBParameterGroupName *string `type:"string"` // A list of DB security groups to authorize on this DB instance. Changing this // setting does not result in an outage and the change is asynchronously applied @@ -10454,29 +8580,15 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"` - // Specify the Active Directory Domain to move the instance to. - // - // The specified Active Directory Domain must be created prior to this operation. - // Currently only a SQL Server instance can be created in a Active Directory - // Domain. - Domain *string `type:"string"` - - // Specify the name of the IAM role to be used when making API calls to the - // Directory Service. - DomainIAMRoleName *string `type:"string"` - // The version number of the database engine to upgrade to. Changing this parameter // results in an outage and the change is applied during the next maintenance // window unless the ApplyImmediately parameter is set to true for this request. // - // For major version upgrades, if a non-default DB parameter group is currently + // For major version upgrades, if a non-default DB parameter group is currently // in use, a new DB parameter group in the DB parameter group family for the // new engine version must be specified. The new DB parameter group can be the // default for that DB parameter group family. @@ -10504,7 +8616,7 @@ type ModifyDBInstanceInput struct { // // Type: Integer // - // If you choose to migrate your DB instance from using standard storage to + // If you choose to migrate your DB instance from using standard storage to // using Provisioned IOPS, or from using Provisioned IOPS to using standard // storage, the process can take time. The duration of the migration depends // on several factors such as database load, storage size, storage type (standard @@ -10529,34 +8641,14 @@ type ModifyDBInstanceInput struct { // // Default: Uses existing setting // - // Constraints: Must be 8 to 41 alphanumeric characters (MySQL, MariaDB, and - // Amazon Aurora), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric - // characters (SQL Server). + // Constraints: Must be 8 to 41 alphanumeric characters (MySQL), 8 to 30 alphanumeric + // characters (Oracle), or 8 to 128 alphanumeric characters (SQL Server). // // Amazon RDS API actions never return the password, so this action provides // a way to regain access to a primary instance user if the password is lost. // This includes restoring privileges that might have been accidentally revoked. MasterUserPassword *string `type:"string"` - // The interval, in seconds, between points when Enhanced Monitoring metrics - // are collected for the DB instance. To disable collecting Enhanced Monitoring - // metrics, specify 0. The default is 0. - // - // If MonitoringRoleArn is specified, then you must also set MonitoringInterval - // to a value other than 0. - // - // Valid Values: 0, 1, 5, 10, 15, 30, 60 - MonitoringInterval *int64 `type:"integer"` - - // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics - // to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess. - // For information on creating a monitoring role, go to To create an IAM role - // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole). - // - // If MonitoringInterval is set to a value other than 0, then you must supply - // a MonitoringRoleArn value. - MonitoringRoleArn *string `type:"string"` - // Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter // does not result in an outage and the change is applied during the next maintenance // window unless the ApplyImmediately parameter is set to true for this request. @@ -10575,11 +8667,8 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens NewDBInstanceIdentifier *string `type:"string"` // Indicates that the DB instance should be associated with the specified option @@ -10590,9 +8679,9 @@ type ModifyDBInstanceInput struct { // can cause a brief (sub-second) period during which new connections are rejected // but existing connections are not interrupted. // - // Permanent options, such as the TDE option for Oracle Advanced Security TDE, - // cannot be removed from an option group, and that option group cannot be removed - // from a DB instance once it is associated with a DB instance + // Permanent options, such as the TDE option for Oracle Advanced Security + // TDE, cannot be removed from an option group, and that option group cannot + // be removed from a DB instance once it is associated with a DB instance OptionGroupName *string `type:"string"` // The daily time range during which automated backups are created if automated @@ -10602,13 +8691,9 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi - // - // Times should be in Universal Time Coordinated (UTC) - // - // Must not conflict with the preferred maintenance window - // - // Must be at least 30 minutes + // Must be in the format hh24:mi-hh24:mi Times should be in Universal Time + // Coordinated (UTC) Must not conflict with the preferred maintenance window + // Must be at least 30 minutes PreferredBackupWindow *string `type:"string"` // The weekly time range (in UTC) during which system maintenance can occur, @@ -10629,31 +8714,6 @@ type ModifyDBInstanceInput struct { // Constraints: Must be at least 30 minutes PreferredMaintenanceWindow *string `type:"string"` - // A value that specifies the order in which an Aurora Replica is promoted to - // the primary instance after a failure of the existing primary instance. For - // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance). - // - // Default: 1 - // - // Valid Values: 0 - 15 - PromotionTier *int64 `type:"integer"` - - // Boolean value that indicates if the DB instance has a publicly resolvable - // DNS name. Set to True to make the DB instance Internet-facing with a publicly - // resolvable DNS name, which resolves to a public IP address. Set to False - // to make the DB instance internal with a DNS name that resolves to a private - // IP address. - // - // PubliclyAccessible only applies to DB instances in a VPC. The DB instance - // must be part of a public subnet and PubliclyAccessible must be true in order - // for it to be publicly accessible. - // - // Changes to the PubliclyAccessible parameter are applied immediately regardless - // of the value of the ApplyImmediately parameter. - // - // Default: false - PubliclyAccessible *bool `type:"boolean"` - // Specifies the storage type to be associated with the DB instance. // // Valid values: standard | gp2 | io1 @@ -10675,12 +8735,15 @@ type ModifyDBInstanceInput struct { // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` + + metadataModifyDBInstanceInput `json:"-" xml:"-"` +} + +type metadataModifyDBInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10693,33 +8756,18 @@ func (s ModifyDBInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyDBInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyDBInstanceInput"} - if s.DBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyDBInstanceOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance - // - // DeleteDBInstance - // - // ModifyDBInstance - // - // This data type is used as a response element in the DescribeDBInstances - // action. + // CreateDBInstance DeleteDBInstance ModifyDBInstance This data type + // is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` + + metadataModifyDBInstanceOutput `json:"-" xml:"-"` +} + +type metadataModifyDBInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10733,19 +8781,13 @@ func (s ModifyDBInstanceOutput) GoString() string { } type ModifyDBParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the DB parameter group. // // Constraints: // - // Must be the name of an existing DB parameter group - // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be the name of an existing DB parameter group Must be 1 to 255 alphanumeric + // characters First character must be a letter Cannot end with a hyphen or contain + // two consecutive hyphens DBParameterGroupName *string `type:"string" required:"true"` // An array of parameter names, values, and the apply method for the parameter @@ -10755,134 +8797,48 @@ type ModifyDBParameterGroupInput struct { // // Valid Values (for the application method): immediate | pending-reboot // - // You can use the immediate value with dynamic parameters only. You can use + // You can use the immediate value with dynamic parameters only. You can use // the pending-reboot value for both dynamic and static parameters, and changes // are applied when you reboot the DB instance without failover. Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"` -} - -// String returns the string representation -func (s ModifyDBParameterGroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyDBParameterGroupInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyDBParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyDBParameterGroupInput"} - if s.DBParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName")) - } - if s.Parameters == nil { - invalidParams.Add(request.NewErrParamRequired("Parameters")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ModifyDBSnapshotAttributeInput struct { - _ struct{} `type:"structure"` - - // The name of the DB snapshot attribute to modify. - // - // To manage authorization for other AWS accounts to copy or restore a manual - // DB snapshot, set this value to restore. - AttributeName *string `type:"string" required:"true"` - - // The identifier for the DB snapshot to modify the attributes for. - DBSnapshotIdentifier *string `type:"string" required:"true"` - - // A list of DB snapshot attributes to add to the attribute specified by AttributeName. - // - // To authorize other AWS accounts to copy or restore a manual snapshot, set - // this list to include one or more AWS account IDs, or all to make the manual - // DB snapshot restorable by any AWS account. Do not add the all value for any - // manual DB snapshots that contain private information that you don't want - // available to all AWS accounts. - ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"` - - // A list of DB snapshot attributes to remove from the attribute specified by - // AttributeName. - // - // To remove authorization for other AWS accounts to copy or restore a manual - // snapshot, set this list to include one or more AWS account identifiers, or - // all to remove authorization for any AWS account to copy or restore the DB - // snapshot. If you specify all, an AWS account whose account ID is explicitly - // added to the restore attribute can still copy or restore the manual DB snapshot. - ValuesToRemove []*string `locationNameList:"AttributeValue" type:"list"` -} - -// String returns the string representation -func (s ModifyDBSnapshotAttributeInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyDBSnapshotAttributeInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyDBSnapshotAttributeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyDBSnapshotAttributeInput"} - if s.AttributeName == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeName")) - } - if s.DBSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataModifyDBParameterGroupInput `json:"-" xml:"-"` } -type ModifyDBSnapshotAttributeOutput struct { - _ struct{} `type:"structure"` - - // Contains the results of a successful call to the DescribeDBSnapshotAttributes - // API action. - // - // Manual DB snapshot attributes are used to authorize other AWS accounts to - // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute - // API action. - DBSnapshotAttributesResult *DBSnapshotAttributesResult `type:"structure"` +type metadataModifyDBParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ModifyDBSnapshotAttributeOutput) String() string { +func (s ModifyDBParameterGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyDBSnapshotAttributeOutput) GoString() string { +func (s ModifyDBParameterGroupInput) GoString() string { return s.String() } type ModifyDBSubnetGroupInput struct { - _ struct{} `type:"structure"` - // The description for the DB subnet group. DBSubnetGroupDescription *string `type:"string"` // The name for the DB subnet group. This value is stored as a lowercase string. // - // Constraints: Must contain no more than 255 alphanumeric characters, periods, - // underscores, spaces, or hyphens. Must not be default. + // Constraints: Must contain no more than 255 alphanumeric characters or hyphens. + // Must not be "Default". // // Example: mySubnetgroup DBSubnetGroupName *string `type:"string" required:"true"` // The EC2 subnet IDs for the DB subnet group. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"` + + metadataModifyDBSubnetGroupInput `json:"-" xml:"-"` +} + +type metadataModifyDBSubnetGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10895,38 +8851,19 @@ func (s ModifyDBSubnetGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyDBSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyDBSubnetGroupInput"} - if s.DBSubnetGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName")) - } - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyDBSubnetGroupOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBSubnetGroup - // - // ModifyDBSubnetGroup - // - // DescribeDBSubnetGroups - // - // DeleteDBSubnetGroup - // + // CreateDBSubnetGroup ModifyDBSubnetGroup DescribeDBSubnetGroups DeleteDBSubnetGroup // This data type is used as a response element in the DescribeDBSubnetGroups // action. DBSubnetGroup *DBSubnetGroup `type:"structure"` + + metadataModifyDBSubnetGroupOutput `json:"-" xml:"-"` +} + +type metadataModifyDBSubnetGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10940,8 +8877,6 @@ func (s ModifyDBSubnetGroupOutput) GoString() string { } type ModifyEventSubscriptionInput struct { - _ struct{} `type:"structure"` - // A Boolean value; set to true to activate the subscription. Enabled *bool `type:"boolean"` @@ -10967,6 +8902,12 @@ type ModifyEventSubscriptionInput struct { // The name of the RDS event notification subscription. SubscriptionName *string `type:"string" required:"true"` + + metadataModifyEventSubscriptionInput `json:"-" xml:"-"` +} + +type metadataModifyEventSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -10979,25 +8920,16 @@ func (s ModifyEventSubscriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyEventSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyEventSubscriptionInput"} - if s.SubscriptionName == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyEventSubscriptionOutput struct { - _ struct{} `type:"structure"` - // Contains the results of a successful invocation of the DescribeEventSubscriptions // action. EventSubscription *EventSubscription `type:"structure"` + + metadataModifyEventSubscriptionOutput `json:"-" xml:"-"` +} + +type metadataModifyEventSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11011,17 +8943,15 @@ func (s ModifyEventSubscriptionOutput) GoString() string { } type ModifyOptionGroupInput struct { - _ struct{} `type:"structure"` - // Indicates whether the changes should be applied immediately, or during the // next maintenance window for each instance associated with the option group. ApplyImmediately *bool `type:"boolean"` // The name of the option group to be modified. // - // Permanent options, such as the TDE option for Oracle Advanced Security TDE, - // cannot be removed from an option group, and that option group cannot be removed - // from a DB instance once it is associated with a DB instance + // Permanent options, such as the TDE option for Oracle Advanced Security + // TDE, cannot be removed from an option group, and that option group cannot + // be removed from a DB instance once it is associated with a DB instance OptionGroupName *string `type:"string" required:"true"` // Options in this list are added to the option group or, if already present, @@ -11030,6 +8960,12 @@ type ModifyOptionGroupInput struct { // Options in this list are removed from the option group. OptionsToRemove []*string `type:"list"` + + metadataModifyOptionGroupInput `json:"-" xml:"-"` +} + +type metadataModifyOptionGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11042,33 +8978,14 @@ func (s ModifyOptionGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyOptionGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyOptionGroupInput"} - if s.OptionGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("OptionGroupName")) - } - if s.OptionsToInclude != nil { - for i, v := range s.OptionsToInclude { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionsToInclude", i), err.(request.ErrInvalidParams)) - } - } - } +type ModifyOptionGroupOutput struct { + OptionGroup *OptionGroup `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataModifyOptionGroupOutput `json:"-" xml:"-"` } -type ModifyOptionGroupOutput struct { - _ struct{} `type:"structure"` - - OptionGroup *OptionGroup `type:"structure"` +type metadataModifyOptionGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11083,8 +9000,6 @@ func (s ModifyOptionGroupOutput) GoString() string { // Option details. type Option struct { - _ struct{} `type:"structure"` - // If the option requires access to a port, then this DB security group allows // access to the port. DBSecurityGroupMemberships []*DBSecurityGroupMembership `locationNameList:"DBSecurityGroup" type:"list"` @@ -11110,6 +9025,12 @@ type Option struct { // If the option requires access to a port, then this VPC security group allows // access to the port. VpcSecurityGroupMemberships []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"` + + metadataOption `json:"-" xml:"-"` +} + +type metadataOption struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11124,8 +9045,6 @@ func (s Option) GoString() string { // A list of all available options type OptionConfiguration struct { - _ struct{} `type:"structure"` - // A list of DBSecurityGroupMemebrship name strings used for this option. DBSecurityGroupMemberships []*string `locationNameList:"DBSecurityGroupName" type:"list"` @@ -11140,6 +9059,12 @@ type OptionConfiguration struct { // A list of VpcSecurityGroupMemebrship name strings used for this option. VpcSecurityGroupMemberships []*string `locationNameList:"VpcSecurityGroupId" type:"list"` + + metadataOptionConfiguration `json:"-" xml:"-"` +} + +type metadataOptionConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11152,22 +9077,7 @@ func (s OptionConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *OptionConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OptionConfiguration"} - if s.OptionName == nil { - invalidParams.Add(request.NewErrParamRequired("OptionName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type OptionGroup struct { - _ struct{} `type:"structure"` - // Indicates whether this option group can be applied to both VPC and non-VPC // instances. The value true indicates the option group can be applied to both // VPC and non-VPC instances. @@ -11194,6 +9104,12 @@ type OptionGroup struct { // field contains a value, then this option group can only be applied to instances // that are in the VPC indicated by this field. VpcId *string `type:"string"` + + metadataOptionGroup `json:"-" xml:"-"` +} + +type metadataOptionGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11208,15 +9124,18 @@ func (s OptionGroup) GoString() string { // Provides information on the option groups the DB instance is a member of. type OptionGroupMembership struct { - _ struct{} `type:"structure"` - // The name of the option group that the instance belongs to. OptionGroupName *string `type:"string"` - // The status of the DB instance's option group membership. Valid values are: - // in-sync, pending-apply, pending-removal, pending-maintenance-apply, pending-maintenance-removal, - // applying, removing, and failed. + // The status of the DB instance's option group membership (e.g. in-sync, pending, + // pending-maintenance, applying). Status *string `type:"string"` + + metadataOptionGroupMembership `json:"-" xml:"-"` +} + +type metadataOptionGroupMembership struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11231,8 +9150,6 @@ func (s OptionGroupMembership) GoString() string { // Available option. type OptionGroupOption struct { - _ struct{} `type:"structure"` - // If the option requires a port, specifies the default port for the option. DefaultPort *int64 `type:"integer"` @@ -11271,6 +9188,12 @@ type OptionGroupOption struct { // Specifies whether the option requires a port. PortRequired *bool `type:"boolean"` + + metadataOptionGroupOption `json:"-" xml:"-"` +} + +type metadataOptionGroupOption struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11287,8 +9210,6 @@ func (s OptionGroupOption) GoString() string { // option with their default values and other information. These values are // used with the DescribeOptionGroupOptions action. type OptionGroupOptionSetting struct { - _ struct{} `type:"structure"` - // Indicates the acceptable values for the option group option. AllowedValues *string `type:"string"` @@ -11307,6 +9228,12 @@ type OptionGroupOptionSetting struct { // The name of the option group option. SettingName *string `type:"string"` + + metadataOptionGroupOptionSetting `json:"-" xml:"-"` +} + +type metadataOptionGroupOptionSetting struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11324,8 +9251,6 @@ func (s OptionGroupOptionSetting) GoString() string { // For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER // that can have several different values. type OptionSetting struct { - _ struct{} `type:"structure"` - // The allowed values of the option setting. AllowedValues *string `type:"string"` @@ -11353,6 +9278,12 @@ type OptionSetting struct { // The current value of the option setting. Value *string `type:"string"` + + metadataOptionSetting `json:"-" xml:"-"` +} + +type metadataOptionSetting struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11370,8 +9301,6 @@ func (s OptionSetting) GoString() string { // This data type is used as a response element in the DescribeOrderableDBInstanceOptions // action. type OrderableDBInstanceOption struct { - _ struct{} `type:"structure"` - // A list of Availability Zones for the orderable DB instance. AvailabilityZones []*AvailabilityZone `locationNameList:"AvailabilityZone" type:"list"` @@ -11396,10 +9325,6 @@ type OrderableDBInstanceOption struct { // Indicates the storage type for this orderable DB instance. StorageType *string `type:"string"` - // Indicates whether the DB instance supports enhanced monitoring at intervals - // from 1 to 60 seconds. - SupportsEnhancedMonitoring *bool `type:"boolean"` - // Indicates whether this orderable DB instance supports provisioned IOPS. SupportsIops *bool `type:"boolean"` @@ -11408,6 +9333,12 @@ type OrderableDBInstanceOption struct { // Indicates whether this is a VPC orderable DB instance. Vpc *bool `type:"boolean"` + + metadataOrderableDBInstanceOption `json:"-" xml:"-"` +} + +type metadataOrderableDBInstanceOption struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11426,8 +9357,6 @@ func (s OrderableDBInstanceOption) GoString() string { // This data type is used as a response element in the DescribeEngineDefaultParameters // and DescribeDBParameters actions. type Parameter struct { - _ struct{} `type:"structure"` - // Specifies the valid range of values for the parameter. AllowedValues *string `type:"string"` @@ -11459,6 +9388,12 @@ type Parameter struct { // Indicates the source of the parameter value. Source *string `type:"string"` + + metadataParameter `json:"-" xml:"-"` +} + +type metadataParameter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11473,8 +9408,6 @@ func (s Parameter) GoString() string { // Provides information about a pending maintenance action for a resource. type PendingMaintenanceAction struct { - _ struct{} `type:"structure"` - // The type of pending maintenance action that is available for the resource. Action *string `type:"string"` @@ -11502,6 +9435,12 @@ type PendingMaintenanceAction struct { // Indicates the type of opt-in request that has been received for the resource. OptInStatus *string `type:"string"` + + metadataPendingMaintenanceAction `json:"-" xml:"-"` +} + +type metadataPendingMaintenanceAction struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11516,8 +9455,6 @@ func (s PendingMaintenanceAction) GoString() string { // This data type is used as a response element in the ModifyDBInstance action. type PendingModifiedValues struct { - _ struct{} `type:"structure"` - // Contains the new AllocatedStorage size for the DB instance that will be applied // or is in progress. AllocatedStorage *int64 `type:"integer"` @@ -11555,6 +9492,12 @@ type PendingModifiedValues struct { // Specifies the storage type to be associated with the DB instance. StorageType *string `type:"string"` + + metadataPendingModifiedValues `json:"-" xml:"-"` +} + +type metadataPendingModifiedValues struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11568,32 +9511,25 @@ func (s PendingModifiedValues) GoString() string { } type PromoteReadReplicaInput struct { - _ struct{} `type:"structure"` - // The number of days to retain automated backups. Setting this parameter to // a positive number enables backups. Setting this parameter to 0 disables automated // backups. // - // Default: 1 + // Default: 1 // // Constraints: // - // Must be a value from 0 to 8 + // Must be a value from 0 to 8 BackupRetentionPeriod *int64 `type:"integer"` // The DB instance identifier. This value is stored as a lowercase string. // // Constraints: // - // Must be the identifier for an existing Read Replica DB instance - // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // Example: mydbinstance + // Must be the identifier for an existing Read Replica DB instance Must contain + // from 1 to 63 alphanumeric characters or hyphens First character must be a + // letter Cannot end with a hyphen or contain two consecutive hyphens Example: + // mydbinstance DBInstanceIdentifier *string `type:"string" required:"true"` // The daily time range during which automated backups are created if automated @@ -11606,14 +9542,16 @@ type PromoteReadReplicaInput struct { // // Constraints: // - // Must be in the format hh24:mi-hh24:mi. - // - // Times should be in Universal Coordinated Time (UTC). - // - // Must not conflict with the preferred maintenance window. - // - // Must be at least 30 minutes. + // Must be in the format hh24:mi-hh24:mi. Times should be in Universal Coordinated + // Time (UTC). Must not conflict with the preferred maintenance window. Must + // be at least 30 minutes. PreferredBackupWindow *string `type:"string"` + + metadataPromoteReadReplicaInput `json:"-" xml:"-"` +} + +type metadataPromoteReadReplicaInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11626,33 +9564,18 @@ func (s PromoteReadReplicaInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PromoteReadReplicaInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PromoteReadReplicaInput"} - if s.DBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PromoteReadReplicaOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance - // - // DeleteDBInstance - // - // ModifyDBInstance - // - // This data type is used as a response element in the DescribeDBInstances - // action. + // CreateDBInstance DeleteDBInstance ModifyDBInstance This data type + // is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` + + metadataPromoteReadReplicaOutput `json:"-" xml:"-"` +} + +type metadataPromoteReadReplicaOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11666,8 +9589,6 @@ func (s PromoteReadReplicaOutput) GoString() string { } type PurchaseReservedDBInstancesOfferingInput struct { - _ struct{} `type:"structure"` - // The number of instances to reserve. // // Default: 1 @@ -11685,6 +9606,12 @@ type PurchaseReservedDBInstancesOfferingInput struct { // A list of tags. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataPurchaseReservedDBInstancesOfferingInput `json:"-" xml:"-"` +} + +type metadataPurchaseReservedDBInstancesOfferingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11697,25 +9624,16 @@ func (s PurchaseReservedDBInstancesOfferingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PurchaseReservedDBInstancesOfferingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedDBInstancesOfferingInput"} - if s.ReservedDBInstancesOfferingId == nil { - invalidParams.Add(request.NewErrParamRequired("ReservedDBInstancesOfferingId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PurchaseReservedDBInstancesOfferingOutput struct { - _ struct{} `type:"structure"` - // This data type is used as a response element in the DescribeReservedDBInstances // and PurchaseReservedDBInstancesOffering actions. ReservedDBInstance *ReservedDBInstance `type:"structure"` + + metadataPurchaseReservedDBInstancesOfferingOutput `json:"-" xml:"-"` +} + +type metadataPurchaseReservedDBInstancesOfferingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11729,17 +9647,12 @@ func (s PurchaseReservedDBInstancesOfferingOutput) GoString() string { } type RebootDBInstanceInput struct { - _ struct{} `type:"structure"` - // The DB instance identifier. This parameter is stored as a lowercase string. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBInstanceIdentifier *string `type:"string" required:"true"` // When true, the reboot will be conducted through a MultiAZ failover. @@ -11747,6 +9660,12 @@ type RebootDBInstanceInput struct { // Constraint: You cannot specify true if the instance is not configured for // MultiAZ. ForceFailover *bool `type:"boolean"` + + metadataRebootDBInstanceInput `json:"-" xml:"-"` +} + +type metadataRebootDBInstanceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11759,33 +9678,18 @@ func (s RebootDBInstanceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RebootDBInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RebootDBInstanceInput"} - if s.DBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RebootDBInstanceOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance - // - // DeleteDBInstance - // - // ModifyDBInstance - // - // This data type is used as a response element in the DescribeDBInstances - // action. + // CreateDBInstance DeleteDBInstance ModifyDBInstance This data type + // is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` + + metadataRebootDBInstanceOutput `json:"-" xml:"-"` +} + +type metadataRebootDBInstanceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11801,13 +9705,17 @@ func (s RebootDBInstanceOutput) GoString() string { // This data type is used as a response element in the DescribeReservedDBInstances // and DescribeReservedDBInstancesOfferings actions. type RecurringCharge struct { - _ struct{} `type:"structure"` - // The amount of the recurring charge. RecurringChargeAmount *float64 `type:"double"` // The frequency of the recurring charge. RecurringChargeFrequency *string `type:"string"` + + metadataRecurringCharge `json:"-" xml:"-"` +} + +type metadataRecurringCharge struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11821,8 +9729,6 @@ func (s RecurringCharge) GoString() string { } type RemoveSourceIdentifierFromSubscriptionInput struct { - _ struct{} `type:"structure"` - // The source identifier to be removed from the subscription, such as the DB // instance identifier for a DB instance or the name of a security group. SourceIdentifier *string `type:"string" required:"true"` @@ -11830,6 +9736,12 @@ type RemoveSourceIdentifierFromSubscriptionInput struct { // The name of the RDS event notification subscription you want to remove a // source identifier from. SubscriptionName *string `type:"string" required:"true"` + + metadataRemoveSourceIdentifierFromSubscriptionInput `json:"-" xml:"-"` +} + +type metadataRemoveSourceIdentifierFromSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11842,28 +9754,16 @@ func (s RemoveSourceIdentifierFromSubscriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveSourceIdentifierFromSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveSourceIdentifierFromSubscriptionInput"} - if s.SourceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceIdentifier")) - } - if s.SubscriptionName == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RemoveSourceIdentifierFromSubscriptionOutput struct { - _ struct{} `type:"structure"` - // Contains the results of a successful invocation of the DescribeEventSubscriptions // action. EventSubscription *EventSubscription `type:"structure"` + + metadataRemoveSourceIdentifierFromSubscriptionOutput `json:"-" xml:"-"` +} + +type metadataRemoveSourceIdentifierFromSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11877,8 +9777,6 @@ func (s RemoveSourceIdentifierFromSubscriptionOutput) GoString() string { } type RemoveTagsFromResourceInput struct { - _ struct{} `type:"structure"` - // The Amazon RDS resource the tags will be removed from. This value is an Amazon // Resource Name (ARN). For information about creating an ARN, see Constructing // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN). @@ -11886,6 +9784,12 @@ type RemoveTagsFromResourceInput struct { // The tag key (name) of the tag to be removed. TagKeys []*string `type:"list" required:"true"` + + metadataRemoveTagsFromResourceInput `json:"-" xml:"-"` +} + +type metadataRemoveTagsFromResourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11898,24 +9802,12 @@ func (s RemoveTagsFromResourceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsFromResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RemoveTagsFromResourceOutput struct { + metadataRemoveTagsFromResourceOutput `json:"-" xml:"-"` } -type RemoveTagsFromResourceOutput struct { - _ struct{} `type:"structure"` +type metadataRemoveTagsFromResourceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11931,8 +9823,6 @@ func (s RemoveTagsFromResourceOutput) GoString() string { // This data type is used as a response element in the DescribeReservedDBInstances // and PurchaseReservedDBInstancesOffering actions. type ReservedDBInstance struct { - _ struct{} `type:"structure"` - // The currency code for the reserved DB instance. CurrencyCode *string `type:"string"` @@ -11974,6 +9864,12 @@ type ReservedDBInstance struct { // The hourly price charged for this reserved DB instance. UsagePrice *float64 `type:"double"` + + metadataReservedDBInstance `json:"-" xml:"-"` +} + +type metadataReservedDBInstance struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -11989,8 +9885,6 @@ func (s ReservedDBInstance) GoString() string { // This data type is used as a response element in the DescribeReservedDBInstancesOfferings // action. type ReservedDBInstancesOffering struct { - _ struct{} `type:"structure"` - // The currency code for the reserved DB instance offering. CurrencyCode *string `type:"string"` @@ -12020,6 +9914,12 @@ type ReservedDBInstancesOffering struct { // The hourly price charged for this offering. UsagePrice *float64 `type:"double"` + + metadataReservedDBInstancesOffering `json:"-" xml:"-"` +} + +type metadataReservedDBInstancesOffering struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12033,8 +9933,6 @@ func (s ReservedDBInstancesOffering) GoString() string { } type ResetDBClusterParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the DB cluster parameter group to reset. DBClusterParameterGroupName *string `type:"string" required:"true"` @@ -12047,6 +9945,12 @@ type ResetDBClusterParameterGroupInput struct { // group to their default values, and false otherwise. You cannot use this parameter // if there is a list of parameter names specified for the Parameters parameter. ResetAllParameters *bool `type:"boolean"` + + metadataResetDBClusterParameterGroupInput `json:"-" xml:"-"` +} + +type metadataResetDBClusterParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12059,31 +9963,13 @@ func (s ResetDBClusterParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResetDBClusterParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetDBClusterParameterGroupInput"} - if s.DBClusterParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ResetDBParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the DB parameter group. // // Constraints: // - // Must be 1 to 255 alphanumeric characters - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be 1 to 255 alphanumeric characters First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens DBParameterGroupName *string `type:"string" required:"true"` // An array of parameter names, values, and the apply method for the parameter @@ -12099,14 +9985,6 @@ type ResetDBParameterGroupInput struct { // the pending-reboot value for both dynamic and static parameters, and changes // are applied when DB instance reboots. // - // MariaDB - // - // Valid Values (for Apply method): immediate | pending-reboot - // - // You can use the immediate value with dynamic parameters only. You can use - // the pending-reboot value for both dynamic and static parameters, and changes - // are applied when DB instance reboots. - // // Oracle // // Valid Values (for Apply method): pending-reboot @@ -12117,6 +9995,12 @@ type ResetDBParameterGroupInput struct { // // Default: true ResetAllParameters *bool `type:"boolean"` + + metadataResetDBParameterGroupInput `json:"-" xml:"-"` +} + +type metadataResetDBParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12129,29 +10013,20 @@ func (s ResetDBParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResetDBParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetDBParameterGroupInput"} - if s.DBParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes the pending maintenance actions for a resource. type ResourcePendingMaintenanceActions struct { - _ struct{} `type:"structure"` - // A list that provides details about the pending maintenance actions for the // resource. PendingMaintenanceActionDetails []*PendingMaintenanceAction `locationNameList:"PendingMaintenanceAction" type:"list"` // The ARN of the resource that has pending maintenance actions. ResourceIdentifier *string `type:"string"` + + metadataResourcePendingMaintenanceActions `json:"-" xml:"-"` +} + +type metadataResourcePendingMaintenanceActions struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12165,8 +10040,6 @@ func (s ResourcePendingMaintenanceActions) GoString() string { } type RestoreDBClusterFromSnapshotInput struct { - _ struct{} `type:"structure"` - // Provides the list of EC2 Availability Zones that instances in the restored // DB cluster can be created in. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"` @@ -12176,21 +10049,12 @@ type RestoreDBClusterFromSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 255 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // Example: my-snapshot-id + // Must contain from 1 to 255 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens + // Example: my-snapshot-id DBClusterIdentifier *string `type:"string" required:"true"` // The name of the DB subnet group to use for the new DB cluster. - // - // Constraints: Must contain no more than 255 alphanumeric characters, periods, - // underscores, spaces, or hyphens. Must not be default. - // - // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` // The database name for the restored DB cluster. @@ -12206,28 +10070,6 @@ type RestoreDBClusterFromSnapshotInput struct { // The version of the database engine to use for the new DB cluster. EngineVersion *string `type:"string"` - // The KMS key identifier to use when restoring an encrypted DB cluster from - // an encrypted DB cluster snapshot. - // - // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption - // key. If you are restoring a DB cluster with the same AWS account that owns - // the KMS encryption key used to encrypt the new DB cluster, then you can use - // the KMS key alias instead of the ARN for the KMS encryption key. - // - // If you do not specify a value for the KmsKeyId parameter, then the following - // will occur: - // - // If the DB cluster snapshot is encrypted, then the restored DB cluster - // is encrypted using the KMS key that was used to encrypt the DB cluster snapshot. - // - // If the DB cluster snapshot is not encrypted, then the restored DB cluster - // is not encrypted. - // - // If SnapshotIdentifier refers to a DB cluster snapshot that is not encrypted, - // and you specify a value for the KmsKeyId parameter, then the restore request - // is rejected. - KmsKeyId *string `type:"string"` - // The name of the option group to use for the restored DB cluster. OptionGroupName *string `type:"string"` @@ -12242,11 +10084,8 @@ type RestoreDBClusterFromSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens SnapshotIdentifier *string `type:"string" required:"true"` // The tags to be assigned to the restored DB cluster. @@ -12254,6 +10093,12 @@ type RestoreDBClusterFromSnapshotInput struct { // A list of VPC security groups that the new DB cluster will belong to. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` + + metadataRestoreDBClusterFromSnapshotInput `json:"-" xml:"-"` +} + +type metadataRestoreDBClusterFromSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12266,45 +10111,19 @@ func (s RestoreDBClusterFromSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreDBClusterFromSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterFromSnapshotInput"} - if s.DBClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) - } - if s.Engine == nil { - invalidParams.Add(request.NewErrParamRequired("Engine")) - } - if s.SnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RestoreDBClusterFromSnapshotOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster - // - // DeleteDBCluster - // - // FailoverDBCluster - // - // ModifyDBCluster - // - // RestoreDBClusterFromSnapshot - // - // RestoreDBClusterToPointInTime - // - // This data type is used as a response element in the DescribeDBClusters - // action. + // CreateDBCluster DeleteDBCluster FailoverDBCluster ModifyDBCluster + // RestoreDBClusterFromSnapshot This data type is used as a response element + // in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` + + metadataRestoreDBClusterFromSnapshotOutput `json:"-" xml:"-"` +} + +type metadataRestoreDBClusterFromSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12318,53 +10137,17 @@ func (s RestoreDBClusterFromSnapshotOutput) GoString() string { } type RestoreDBClusterToPointInTimeInput struct { - _ struct{} `type:"structure"` - // The name of the new DB cluster to be created. // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBClusterIdentifier *string `type:"string" required:"true"` // The DB subnet group name to use for the new DB cluster. - // - // Constraints: Must contain no more than 255 alphanumeric characters, periods, - // underscores, spaces, or hyphens. Must not be default. - // - // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` - // The KMS key identifier to use when restoring an encrypted DB cluster from - // an encrypted DB cluster. - // - // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption - // key. If you are restoring a DB cluster with the same AWS account that owns - // the KMS encryption key used to encrypt the new DB cluster, then you can use - // the KMS key alias instead of the ARN for the KMS encryption key. - // - // You can restore to a new DB cluster and encrypt the new DB cluster with - // a KMS key that is different than the KMS key used to encrypt the source DB - // cluster. The new DB cluster will be encrypted with the KMS key identified - // by the KmsKeyId parameter. - // - // If you do not specify a value for the KmsKeyId parameter, then the following - // will occur: - // - // If the DB cluster is encrypted, then the restored DB cluster is encrypted - // using the KMS key that was used to encrypt the source DB cluster. - // - // If the DB cluster is not encrypted, then the restored DB cluster is not - // encrypted. - // - // If DBClusterIdentifier refers to a DB cluster that is note encrypted, - // then the restore request is rejected. - KmsKeyId *string `type:"string"` - // The name of the option group for the new DB cluster. OptionGroupName *string `type:"string"` @@ -12381,24 +10164,17 @@ type RestoreDBClusterToPointInTimeInput struct { // // Constraints: // - // Must be before the latest restorable time for the DB instance - // - // Cannot be specified if UseLatestRestorableTime parameter is true - // - // Example: 2015-03-07T23:45:00Z + // Must be before the latest restorable time for the DB instance Cannot be + // specified if UseLatestRestorableTime parameter is true Example: 2015-03-07T23:45:00Z RestoreToTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The identifier of the source DB cluster from which to restore. // // Constraints: // - // Must be the identifier of an existing database instance - // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be the identifier of an existing database instance Must contain from + // 1 to 63 alphanumeric characters or hyphens First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens SourceDBClusterIdentifier *string `type:"string" required:"true"` // A list of tags. @@ -12414,6 +10190,12 @@ type RestoreDBClusterToPointInTimeInput struct { // A lst of VPC security groups that the new DB cluster belongs to. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` + + metadataRestoreDBClusterToPointInTimeInput `json:"-" xml:"-"` +} + +type metadataRestoreDBClusterToPointInTimeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12426,42 +10208,19 @@ func (s RestoreDBClusterToPointInTimeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreDBClusterToPointInTimeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterToPointInTimeInput"} - if s.DBClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) - } - if s.SourceDBClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceDBClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RestoreDBClusterToPointInTimeOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBCluster - // - // DeleteDBCluster - // - // FailoverDBCluster - // - // ModifyDBCluster - // - // RestoreDBClusterFromSnapshot - // - // RestoreDBClusterToPointInTime - // - // This data type is used as a response element in the DescribeDBClusters - // action. + // CreateDBCluster DeleteDBCluster FailoverDBCluster ModifyDBCluster + // RestoreDBClusterFromSnapshot This data type is used as a response element + // in the DescribeDBClusters action. DBCluster *DBCluster `type:"structure"` + + metadataRestoreDBClusterToPointInTimeOutput `json:"-" xml:"-"` +} + +type metadataRestoreDBClusterToPointInTimeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12475,8 +10234,6 @@ func (s RestoreDBClusterToPointInTimeOutput) GoString() string { } type RestoreDBInstanceFromDBSnapshotInput struct { - _ struct{} `type:"structure"` - // Indicates that minor version upgrades will be applied automatically to the // DB instance during the maintenance window. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -12491,17 +10248,12 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // Example: us-east-1a AvailabilityZone *string `type:"string"` - // True to copy all tags from the restored DB instance to snapshots of the DB - // instance; otherwise false. The default is false. - CopyTagsToSnapshot *bool `type:"boolean"` - // The compute and memory capacity of the Amazon RDS DB instance. // // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge // | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge - // | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge - // | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge - // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large + // | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge + // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium DBInstanceClass *string `type:"string"` // Name of the DB instance to create from the DB snapshot. This parameter isn't @@ -12509,58 +10261,35 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15 - // for SQL Server) - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // Example: my-snapshot-id + // Must contain from 1 to 255 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens + // Example: my-snapshot-id DBInstanceIdentifier *string `type:"string" required:"true"` // The database name for the restored DB instance. // - // This parameter doesn't apply to the MySQL or MariaDB engines. + // This parameter doesn't apply to the MySQL engine. DBName *string `type:"string"` // The identifier for the DB snapshot to restore from. // // Constraints: // - // Must contain from 1 to 255 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens - // - // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier - // must be the ARN of the shared DB snapshot. + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens DBSnapshotIdentifier *string `type:"string" required:"true"` // The DB subnet group name to use for the new instance. - // - // Constraints: Must contain no more than 255 alphanumeric characters, periods, - // underscores, spaces, or hyphens. Must not be default. - // - // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` - // Specify the Active Directory Domain to restore the instance in. - Domain *string `type:"string"` - - // Specify the name of the IAM role to be used when making API calls to the - // Directory Service. - DomainIAMRoleName *string `type:"string"` - // The database engine to use for the new instance. // // Default: The same as source // // Constraint: Must be compatible with the engine of the source // - // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee - // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora + // Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee + // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres Engine *string `type:"string"` // Specifies the amount of provisioned IOPS for the DB instance, expressed in @@ -12570,7 +10299,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // though your DB instance will be available for connections before the conversion // starts. // - // Constraints: Must be an integer greater than 1000. + // Constraints: Must be an integer greater than 1000. // // SQL Server // @@ -12579,7 +10308,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // License model information for the restored DB instance. // - // Default: Same as source. + // Default: Same as source. // // Valid values: license-included | bring-your-own-license | general-public-license LicenseModel *string `type:"string"` @@ -12609,18 +10338,14 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // which resolves to a public IP address. A value of false specifies an internal // instance with a DNS name that resolves to a private IP address. // - // Default: The default behavior varies depending on whether a VPC has been + // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC: true - // - // VPC: false - // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // Default VPC: true VPC: false If no DB subnet group has been specified + // as part of the request and the PubliclyAccessible value has not been set, + // the DB instance will be publicly accessible. If a specific DB subnet group + // has been specified as part of the request and the PubliclyAccessible value + // has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // Specifies the storage type to be associated with the DB instance. @@ -12641,6 +10366,12 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // The password for the given ARN from the Key Store in order to access the // device. TdeCredentialPassword *string `type:"string"` + + metadataRestoreDBInstanceFromDBSnapshotInput `json:"-" xml:"-"` +} + +type metadataRestoreDBInstanceFromDBSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12653,36 +10384,18 @@ func (s RestoreDBInstanceFromDBSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreDBInstanceFromDBSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreDBInstanceFromDBSnapshotInput"} - if s.DBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier")) - } - if s.DBSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RestoreDBInstanceFromDBSnapshotOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance - // - // DeleteDBInstance - // - // ModifyDBInstance - // - // This data type is used as a response element in the DescribeDBInstances - // action. + // CreateDBInstance DeleteDBInstance ModifyDBInstance This data type + // is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` + + metadataRestoreDBInstanceFromDBSnapshotOutput `json:"-" xml:"-"` +} + +type metadataRestoreDBInstanceFromDBSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12696,8 +10409,6 @@ func (s RestoreDBInstanceFromDBSnapshotOutput) GoString() string { } type RestoreDBInstanceToPointInTimeInput struct { - _ struct{} `type:"structure"` - // Indicates that minor version upgrades will be applied automatically to the // DB instance during the maintenance window. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -12712,55 +10423,38 @@ type RestoreDBInstanceToPointInTimeInput struct { // Example: us-east-1a AvailabilityZone *string `type:"string"` - // True to copy all tags from the restored DB instance to snapshots of the DB - // instance; otherwise false. The default is false. - CopyTagsToSnapshot *bool `type:"boolean"` - // The compute and memory capacity of the Amazon RDS DB instance. // // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge // | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge - // | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge - // | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge - // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large + // | db.m3.2xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge + // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium // // Default: The same DBInstanceClass as the original DB instance. DBInstanceClass *string `type:"string"` // The database name for the restored DB instance. // - // This parameter is not used for the MySQL or MariaDB engines. + // This parameter is not used for the MySQL engine. DBName *string `type:"string"` // The DB subnet group name to use for the new instance. - // - // Constraints: Must contain no more than 255 alphanumeric characters, periods, - // underscores, spaces, or hyphens. Must not be default. - // - // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` - // Specify the Active Directory Domain to restore the instance in. - Domain *string `type:"string"` - - // Specify the name of the IAM role to be used when making API calls to the - // Directory Service. - DomainIAMRoleName *string `type:"string"` - // The database engine to use for the new instance. // // Default: The same as source // // Constraint: Must be compatible with the engine of the source // - // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee - // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora + // Valid Values: MySQL | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee + // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres Engine *string `type:"string"` // The amount of Provisioned IOPS (input/output operations per second) to be // initially allocated for the DB instance. // - // Constraints: Must be an integer greater than 1000. + // Constraints: Must be an integer greater than 1000. // // SQL Server // @@ -12769,7 +10463,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // License model information for the restored DB instance. // - // Default: Same as source. + // Default: Same as source. // // Valid values: license-included | bring-your-own-license | general-public-license LicenseModel *string `type:"string"` @@ -12799,18 +10493,14 @@ type RestoreDBInstanceToPointInTimeInput struct { // which resolves to a public IP address. A value of false specifies an internal // instance with a DNS name that resolves to a private IP address. // - // Default: The default behavior varies depending on whether a VPC has been + // Default: The default behavior varies depending on whether a VPC has been // requested or not. The following list shows the default behavior in each case. // - // Default VPC:true - // - // VPC:false - // - // If no DB subnet group has been specified as part of the request and the - // PubliclyAccessible value has not been set, the DB instance will be publicly - // accessible. If a specific DB subnet group has been specified as part of the - // request and the PubliclyAccessible value has not been set, the DB instance - // will be private. + // Default VPC:true VPC:false If no DB subnet group has been specified + // as part of the request and the PubliclyAccessible value has not been set, + // the DB instance will be publicly accessible. If a specific DB subnet group + // has been specified as part of the request and the PubliclyAccessible value + // has not been set, the DB instance will be private. PubliclyAccessible *bool `type:"boolean"` // The date and time to restore from. @@ -12819,24 +10509,17 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraints: // - // Must be before the latest restorable time for the DB instance - // - // Cannot be specified if UseLatestRestorableTime parameter is true - // - // Example: 2009-09-07T23:45:00Z + // Must be before the latest restorable time for the DB instance Cannot be + // specified if UseLatestRestorableTime parameter is true Example: 2009-09-07T23:45:00Z RestoreTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The identifier of the source DB instance from which to restore. // // Constraints: // - // Must be the identifier of an existing database instance - // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must be the identifier of an existing database instance Must contain from + // 1 to 63 alphanumeric characters or hyphens First character must be a letter + // Cannot end with a hyphen or contain two consecutive hyphens SourceDBInstanceIdentifier *string `type:"string" required:"true"` // Specifies the storage type to be associated with the DB instance. @@ -12855,11 +10538,8 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraints: // - // Must contain from 1 to 63 alphanumeric characters or hyphens - // - // First character must be a letter - // - // Cannot end with a hyphen or contain two consecutive hyphens + // Must contain from 1 to 63 alphanumeric characters or hyphens First character + // must be a letter Cannot end with a hyphen or contain two consecutive hyphens TargetDBInstanceIdentifier *string `type:"string" required:"true"` // The ARN from the Key Store with which to associate the instance for TDE encryption. @@ -12876,6 +10556,12 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Constraints: Cannot be specified if RestoreTime parameter is provided. UseLatestRestorableTime *bool `type:"boolean"` + + metadataRestoreDBInstanceToPointInTimeInput `json:"-" xml:"-"` +} + +type metadataRestoreDBInstanceToPointInTimeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12888,36 +10574,18 @@ func (s RestoreDBInstanceToPointInTimeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreDBInstanceToPointInTimeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreDBInstanceToPointInTimeInput"} - if s.SourceDBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceDBInstanceIdentifier")) - } - if s.TargetDBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("TargetDBInstanceIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RestoreDBInstanceToPointInTimeOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // CreateDBInstance - // - // DeleteDBInstance - // - // ModifyDBInstance - // - // This data type is used as a response element in the DescribeDBInstances - // action. + // CreateDBInstance DeleteDBInstance ModifyDBInstance This data type + // is used as a response element in the DescribeDBInstances action. DBInstance *DBInstance `type:"structure"` + + metadataRestoreDBInstanceToPointInTimeOutput `json:"-" xml:"-"` +} + +type metadataRestoreDBInstanceToPointInTimeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12931,8 +10599,6 @@ func (s RestoreDBInstanceToPointInTimeOutput) GoString() string { } type RevokeDBSecurityGroupIngressInput struct { - _ struct{} `type:"structure"` - // The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP // is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId // cannot be provided. @@ -12957,6 +10623,12 @@ type RevokeDBSecurityGroupIngressInput struct { // EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId // must be provided. EC2SecurityGroupOwnerId *string `type:"string"` + + metadataRevokeDBSecurityGroupIngressInput `json:"-" xml:"-"` +} + +type metadataRevokeDBSecurityGroupIngressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -12969,35 +10641,19 @@ func (s RevokeDBSecurityGroupIngressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RevokeDBSecurityGroupIngressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RevokeDBSecurityGroupIngressInput"} - if s.DBSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RevokeDBSecurityGroupIngressOutput struct { - _ struct{} `type:"structure"` - // Contains the result of a successful invocation of the following actions: // - // DescribeDBSecurityGroups - // - // AuthorizeDBSecurityGroupIngress - // - // CreateDBSecurityGroup - // - // RevokeDBSecurityGroupIngress - // - // This data type is used as a response element in the DescribeDBSecurityGroups - // action. + // DescribeDBSecurityGroups AuthorizeDBSecurityGroupIngress CreateDBSecurityGroup + // RevokeDBSecurityGroupIngress This data type is used as a response element + // in the DescribeDBSecurityGroups action. DBSecurityGroup *DBSecurityGroup `type:"structure"` + + metadataRevokeDBSecurityGroupIngressOutput `json:"-" xml:"-"` +} + +type metadataRevokeDBSecurityGroupIngressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13013,13 +10669,9 @@ func (s RevokeDBSecurityGroupIngressOutput) GoString() string { // This data type is used as a response element in the DescribeDBSubnetGroups // action. type Subnet struct { - _ struct{} `type:"structure"` - // Contains Availability Zone information. // - // This data type is used as an element in the following data type: - // - // OrderableDBInstanceOption + // This data type is used as an element in the following data type: OrderableDBInstanceOption SubnetAvailabilityZone *AvailabilityZone `type:"structure"` // Specifies the identifier of the subnet. @@ -13027,6 +10679,12 @@ type Subnet struct { // Specifies the status of the subnet. SubnetStatus *string `type:"string"` + + metadataSubnet `json:"-" xml:"-"` +} + +type metadataSubnet struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13041,8 +10699,6 @@ func (s Subnet) GoString() string { // Metadata assigned to an Amazon RDS resource consisting of a key-value pair. type Tag struct { - _ struct{} `type:"structure"` - // A key is the required name of the tag. The string value can be from 1 to // 128 Unicode characters in length and cannot be prefixed with "aws:" or "rds:". // The string can only contain only the set of Unicode letters, digits, white-space, @@ -13054,60 +10710,38 @@ type Tag struct { // "rds:". The string can only contain only the set of Unicode letters, digits, // white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$"). Value *string `type:"string"` -} -// String returns the string representation -func (s Tag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Tag) GoString() string { - return s.String() + metadataTag `json:"-" xml:"-"` } -// The version of the database engine that a DB instance can be upgraded to. -type UpgradeTarget struct { - _ struct{} `type:"structure"` - - // A value that indicates whether the target version will be applied to any - // source DB instances that have AutoMinorVersionUpgrade set to true. - AutoUpgrade *bool `type:"boolean"` - - // The version of the database engine that a DB instance can be upgraded to. - Description *string `type:"string"` - - // The name of the upgrade target database engine. - Engine *string `type:"string"` - - // The version number of the upgrade target database engine. - EngineVersion *string `type:"string"` - - // A value that indicates whether a database engine will be upgraded to a major - // version. - IsMajorVersionUpgrade *bool `type:"boolean"` +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s UpgradeTarget) String() string { +func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpgradeTarget) GoString() string { +func (s Tag) GoString() string { return s.String() } // This data type is used as a response element for queries on VPC security // group membership. type VpcSecurityGroupMembership struct { - _ struct{} `type:"structure"` - // The status of the VPC security group. Status *string `type:"string"` // The name of the VPC security group. VpcSecurityGroupId *string `type:"string"` + + metadataVpcSecurityGroupMembership `json:"-" xml:"-"` +} + +type metadataVpcSecurityGroupMembership struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -13136,8 +10770,4 @@ const ( SourceTypeDbSecurityGroup = "db-security-group" // @enum SourceType SourceTypeDbSnapshot = "db-snapshot" - // @enum SourceType - SourceTypeDbCluster = "db-cluster" - // @enum SourceType - SourceTypeDbClusterSnapshot = "db-cluster-snapshot" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go index 21fd02e5b..e4f26bb9b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rds" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRDS_AddSourceIdentifierToSubscription() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.AddSourceIdentifierToSubscriptionInput{ SourceIdentifier: aws.String("String"), // Required @@ -36,7 +35,7 @@ func ExampleRDS_AddSourceIdentifierToSubscription() { } func ExampleRDS_AddTagsToResource() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.AddTagsToResourceInput{ ResourceName: aws.String("String"), // Required @@ -62,7 +61,7 @@ func ExampleRDS_AddTagsToResource() { } func ExampleRDS_ApplyPendingMaintenanceAction() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ApplyPendingMaintenanceActionInput{ ApplyAction: aws.String("String"), // Required @@ -83,7 +82,7 @@ func ExampleRDS_ApplyPendingMaintenanceAction() { } func ExampleRDS_AuthorizeDBSecurityGroupIngress() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.AuthorizeDBSecurityGroupIngressInput{ DBSecurityGroupName: aws.String("String"), // Required @@ -106,7 +105,7 @@ func ExampleRDS_AuthorizeDBSecurityGroupIngress() { } func ExampleRDS_CopyDBClusterSnapshot() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CopyDBClusterSnapshotInput{ SourceDBClusterSnapshotIdentifier: aws.String("String"), // Required @@ -133,7 +132,7 @@ func ExampleRDS_CopyDBClusterSnapshot() { } func ExampleRDS_CopyDBParameterGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CopyDBParameterGroupInput{ SourceDBParameterGroupIdentifier: aws.String("String"), // Required @@ -161,13 +160,11 @@ func ExampleRDS_CopyDBParameterGroup() { } func ExampleRDS_CopyDBSnapshot() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CopyDBSnapshotInput{ SourceDBSnapshotIdentifier: aws.String("String"), // Required TargetDBSnapshotIdentifier: aws.String("String"), // Required - CopyTags: aws.Bool(true), - KmsKeyId: aws.String("String"), Tags: []*rds.Tag{ { // Required Key: aws.String("String"), @@ -190,7 +187,7 @@ func ExampleRDS_CopyDBSnapshot() { } func ExampleRDS_CopyOptionGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CopyOptionGroupInput{ SourceOptionGroupIdentifier: aws.String("String"), // Required @@ -218,30 +215,27 @@ func ExampleRDS_CopyOptionGroup() { } func ExampleRDS_CreateDBCluster() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateDBClusterInput{ - DBClusterIdentifier: aws.String("String"), // Required - Engine: aws.String("String"), // Required - MasterUserPassword: aws.String("String"), // Required - MasterUsername: aws.String("String"), // Required AvailabilityZones: []*string{ aws.String("String"), // Required // More values... }, BackupRetentionPeriod: aws.Int64(1), CharacterSetName: aws.String("String"), + DBClusterIdentifier: aws.String("String"), DBClusterParameterGroupName: aws.String("String"), DBSubnetGroupName: aws.String("String"), DatabaseName: aws.String("String"), + Engine: aws.String("String"), EngineVersion: aws.String("String"), - KmsKeyId: aws.String("String"), + MasterUserPassword: aws.String("String"), + MasterUsername: aws.String("String"), OptionGroupName: aws.String("String"), Port: aws.Int64(1), - PreferredBackupWindow: aws.String("String"), - PreferredMaintenanceWindow: aws.String("String"), - ReplicationSourceIdentifier: aws.String("String"), - StorageEncrypted: aws.Bool(true), + PreferredBackupWindow: aws.String("String"), + PreferredMaintenanceWindow: aws.String("String"), Tags: []*rds.Tag{ { // Required Key: aws.String("String"), @@ -268,7 +262,7 @@ func ExampleRDS_CreateDBCluster() { } func ExampleRDS_CreateDBClusterParameterGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateDBClusterParameterGroupInput{ DBClusterParameterGroupName: aws.String("String"), // Required @@ -296,7 +290,7 @@ func ExampleRDS_CreateDBClusterParameterGroup() { } func ExampleRDS_CreateDBClusterSnapshot() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateDBClusterSnapshotInput{ DBClusterIdentifier: aws.String("String"), // Required @@ -323,7 +317,7 @@ func ExampleRDS_CreateDBClusterSnapshot() { } func ExampleRDS_CreateDBInstance() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateDBInstanceInput{ DBInstanceClass: aws.String("String"), // Required @@ -334,7 +328,6 @@ func ExampleRDS_CreateDBInstance() { AvailabilityZone: aws.String("String"), BackupRetentionPeriod: aws.Int64(1), CharacterSetName: aws.String("String"), - CopyTagsToSnapshot: aws.Bool(true), DBClusterIdentifier: aws.String("String"), DBName: aws.String("String"), DBParameterGroupName: aws.String("String"), @@ -343,22 +336,17 @@ func ExampleRDS_CreateDBInstance() { // More values... }, DBSubnetGroupName: aws.String("String"), - Domain: aws.String("String"), - DomainIAMRoleName: aws.String("String"), EngineVersion: aws.String("String"), Iops: aws.Int64(1), KmsKeyId: aws.String("String"), LicenseModel: aws.String("String"), MasterUserPassword: aws.String("String"), MasterUsername: aws.String("String"), - MonitoringInterval: aws.Int64(1), - MonitoringRoleArn: aws.String("String"), MultiAZ: aws.Bool(true), OptionGroupName: aws.String("String"), Port: aws.Int64(1), PreferredBackupWindow: aws.String("String"), PreferredMaintenanceWindow: aws.String("String"), - PromotionTier: aws.Int64(1), PubliclyAccessible: aws.Bool(true), StorageEncrypted: aws.Bool(true), StorageType: aws.String("String"), @@ -390,19 +378,16 @@ func ExampleRDS_CreateDBInstance() { } func ExampleRDS_CreateDBInstanceReadReplica() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateDBInstanceReadReplicaInput{ DBInstanceIdentifier: aws.String("String"), // Required SourceDBInstanceIdentifier: aws.String("String"), // Required AutoMinorVersionUpgrade: aws.Bool(true), AvailabilityZone: aws.String("String"), - CopyTagsToSnapshot: aws.Bool(true), DBInstanceClass: aws.String("String"), DBSubnetGroupName: aws.String("String"), Iops: aws.Int64(1), - MonitoringInterval: aws.Int64(1), - MonitoringRoleArn: aws.String("String"), OptionGroupName: aws.String("String"), Port: aws.Int64(1), PubliclyAccessible: aws.Bool(true), @@ -429,7 +414,7 @@ func ExampleRDS_CreateDBInstanceReadReplica() { } func ExampleRDS_CreateDBParameterGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateDBParameterGroupInput{ DBParameterGroupFamily: aws.String("String"), // Required @@ -457,7 +442,7 @@ func ExampleRDS_CreateDBParameterGroup() { } func ExampleRDS_CreateDBSecurityGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateDBSecurityGroupInput{ DBSecurityGroupDescription: aws.String("String"), // Required @@ -484,7 +469,7 @@ func ExampleRDS_CreateDBSecurityGroup() { } func ExampleRDS_CreateDBSnapshot() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateDBSnapshotInput{ DBInstanceIdentifier: aws.String("String"), // Required @@ -511,7 +496,7 @@ func ExampleRDS_CreateDBSnapshot() { } func ExampleRDS_CreateDBSubnetGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateDBSubnetGroupInput{ DBSubnetGroupDescription: aws.String("String"), // Required @@ -542,7 +527,7 @@ func ExampleRDS_CreateDBSubnetGroup() { } func ExampleRDS_CreateEventSubscription() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateEventSubscriptionInput{ SnsTopicArn: aws.String("String"), // Required @@ -579,7 +564,7 @@ func ExampleRDS_CreateEventSubscription() { } func ExampleRDS_CreateOptionGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.CreateOptionGroupInput{ EngineName: aws.String("String"), // Required @@ -608,10 +593,10 @@ func ExampleRDS_CreateOptionGroup() { } func ExampleRDS_DeleteDBCluster() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DeleteDBClusterInput{ - DBClusterIdentifier: aws.String("String"), // Required + DBClusterIdentifier: aws.String("String"), FinalDBSnapshotIdentifier: aws.String("String"), SkipFinalSnapshot: aws.Bool(true), } @@ -629,7 +614,7 @@ func ExampleRDS_DeleteDBCluster() { } func ExampleRDS_DeleteDBClusterParameterGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DeleteDBClusterParameterGroupInput{ DBClusterParameterGroupName: aws.String("String"), // Required @@ -648,7 +633,7 @@ func ExampleRDS_DeleteDBClusterParameterGroup() { } func ExampleRDS_DeleteDBClusterSnapshot() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DeleteDBClusterSnapshotInput{ DBClusterSnapshotIdentifier: aws.String("String"), // Required @@ -667,7 +652,7 @@ func ExampleRDS_DeleteDBClusterSnapshot() { } func ExampleRDS_DeleteDBInstance() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DeleteDBInstanceInput{ DBInstanceIdentifier: aws.String("String"), // Required @@ -688,7 +673,7 @@ func ExampleRDS_DeleteDBInstance() { } func ExampleRDS_DeleteDBParameterGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DeleteDBParameterGroupInput{ DBParameterGroupName: aws.String("String"), // Required @@ -707,7 +692,7 @@ func ExampleRDS_DeleteDBParameterGroup() { } func ExampleRDS_DeleteDBSecurityGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DeleteDBSecurityGroupInput{ DBSecurityGroupName: aws.String("String"), // Required @@ -726,7 +711,7 @@ func ExampleRDS_DeleteDBSecurityGroup() { } func ExampleRDS_DeleteDBSnapshot() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DeleteDBSnapshotInput{ DBSnapshotIdentifier: aws.String("String"), // Required @@ -745,7 +730,7 @@ func ExampleRDS_DeleteDBSnapshot() { } func ExampleRDS_DeleteDBSubnetGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DeleteDBSubnetGroupInput{ DBSubnetGroupName: aws.String("String"), // Required @@ -764,7 +749,7 @@ func ExampleRDS_DeleteDBSubnetGroup() { } func ExampleRDS_DeleteEventSubscription() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DeleteEventSubscriptionInput{ SubscriptionName: aws.String("String"), // Required @@ -783,7 +768,7 @@ func ExampleRDS_DeleteEventSubscription() { } func ExampleRDS_DeleteOptionGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DeleteOptionGroupInput{ OptionGroupName: aws.String("String"), // Required @@ -802,7 +787,7 @@ func ExampleRDS_DeleteOptionGroup() { } func ExampleRDS_DescribeAccountAttributes() { - svc := rds.New(session.New()) + svc := rds.New(nil) var params *rds.DescribeAccountAttributesInput resp, err := svc.DescribeAccountAttributes(params) @@ -819,7 +804,7 @@ func ExampleRDS_DescribeAccountAttributes() { } func ExampleRDS_DescribeCertificates() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeCertificatesInput{ CertificateIdentifier: aws.String("String"), @@ -850,7 +835,7 @@ func ExampleRDS_DescribeCertificates() { } func ExampleRDS_DescribeDBClusterParameterGroups() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBClusterParameterGroupsInput{ DBClusterParameterGroupName: aws.String("String"), @@ -881,7 +866,7 @@ func ExampleRDS_DescribeDBClusterParameterGroups() { } func ExampleRDS_DescribeDBClusterParameters() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBClusterParametersInput{ DBClusterParameterGroupName: aws.String("String"), // Required @@ -912,27 +897,8 @@ func ExampleRDS_DescribeDBClusterParameters() { fmt.Println(resp) } -func ExampleRDS_DescribeDBClusterSnapshotAttributes() { - svc := rds.New(session.New()) - - params := &rds.DescribeDBClusterSnapshotAttributesInput{ - DBClusterSnapshotIdentifier: aws.String("String"), // Required - } - resp, err := svc.DescribeDBClusterSnapshotAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRDS_DescribeDBClusterSnapshots() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBClusterSnapshotsInput{ DBClusterIdentifier: aws.String("String"), @@ -947,11 +913,9 @@ func ExampleRDS_DescribeDBClusterSnapshots() { }, // More values... }, - IncludePublic: aws.Bool(true), - IncludeShared: aws.Bool(true), - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - SnapshotType: aws.String("String"), + Marker: aws.String("String"), + MaxRecords: aws.Int64(1), + SnapshotType: aws.String("String"), } resp, err := svc.DescribeDBClusterSnapshots(params) @@ -967,7 +931,7 @@ func ExampleRDS_DescribeDBClusterSnapshots() { } func ExampleRDS_DescribeDBClusters() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBClustersInput{ DBClusterIdentifier: aws.String("String"), @@ -998,7 +962,7 @@ func ExampleRDS_DescribeDBClusters() { } func ExampleRDS_DescribeDBEngineVersions() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBEngineVersionsInput{ DBParameterGroupFamily: aws.String("String"), @@ -1033,7 +997,7 @@ func ExampleRDS_DescribeDBEngineVersions() { } func ExampleRDS_DescribeDBInstances() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBInstancesInput{ DBInstanceIdentifier: aws.String("String"), @@ -1064,7 +1028,7 @@ func ExampleRDS_DescribeDBInstances() { } func ExampleRDS_DescribeDBLogFiles() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBLogFilesInput{ DBInstanceIdentifier: aws.String("String"), // Required @@ -1098,7 +1062,7 @@ func ExampleRDS_DescribeDBLogFiles() { } func ExampleRDS_DescribeDBParameterGroups() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBParameterGroupsInput{ DBParameterGroupName: aws.String("String"), @@ -1129,7 +1093,7 @@ func ExampleRDS_DescribeDBParameterGroups() { } func ExampleRDS_DescribeDBParameters() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBParametersInput{ DBParameterGroupName: aws.String("String"), // Required @@ -1161,7 +1125,7 @@ func ExampleRDS_DescribeDBParameters() { } func ExampleRDS_DescribeDBSecurityGroups() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBSecurityGroupsInput{ DBSecurityGroupName: aws.String("String"), @@ -1191,27 +1155,8 @@ func ExampleRDS_DescribeDBSecurityGroups() { fmt.Println(resp) } -func ExampleRDS_DescribeDBSnapshotAttributes() { - svc := rds.New(session.New()) - - params := &rds.DescribeDBSnapshotAttributesInput{ - DBSnapshotIdentifier: aws.String("String"), // Required - } - resp, err := svc.DescribeDBSnapshotAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRDS_DescribeDBSnapshots() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBSnapshotsInput{ DBInstanceIdentifier: aws.String("String"), @@ -1226,11 +1171,9 @@ func ExampleRDS_DescribeDBSnapshots() { }, // More values... }, - IncludePublic: aws.Bool(true), - IncludeShared: aws.Bool(true), - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - SnapshotType: aws.String("String"), + Marker: aws.String("String"), + MaxRecords: aws.Int64(1), + SnapshotType: aws.String("String"), } resp, err := svc.DescribeDBSnapshots(params) @@ -1246,7 +1189,7 @@ func ExampleRDS_DescribeDBSnapshots() { } func ExampleRDS_DescribeDBSubnetGroups() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeDBSubnetGroupsInput{ DBSubnetGroupName: aws.String("String"), @@ -1277,7 +1220,7 @@ func ExampleRDS_DescribeDBSubnetGroups() { } func ExampleRDS_DescribeEngineDefaultClusterParameters() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeEngineDefaultClusterParametersInput{ DBParameterGroupFamily: aws.String("String"), // Required @@ -1308,7 +1251,7 @@ func ExampleRDS_DescribeEngineDefaultClusterParameters() { } func ExampleRDS_DescribeEngineDefaultParameters() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeEngineDefaultParametersInput{ DBParameterGroupFamily: aws.String("String"), // Required @@ -1339,7 +1282,7 @@ func ExampleRDS_DescribeEngineDefaultParameters() { } func ExampleRDS_DescribeEventCategories() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeEventCategoriesInput{ Filters: []*rds.Filter{ @@ -1368,7 +1311,7 @@ func ExampleRDS_DescribeEventCategories() { } func ExampleRDS_DescribeEventSubscriptions() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeEventSubscriptionsInput{ Filters: []*rds.Filter{ @@ -1399,7 +1342,7 @@ func ExampleRDS_DescribeEventSubscriptions() { } func ExampleRDS_DescribeEvents() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeEventsInput{ Duration: aws.Int64(1), @@ -1438,7 +1381,7 @@ func ExampleRDS_DescribeEvents() { } func ExampleRDS_DescribeOptionGroupOptions() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeOptionGroupOptionsInput{ EngineName: aws.String("String"), // Required @@ -1470,7 +1413,7 @@ func ExampleRDS_DescribeOptionGroupOptions() { } func ExampleRDS_DescribeOptionGroups() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeOptionGroupsInput{ EngineName: aws.String("String"), @@ -1503,7 +1446,7 @@ func ExampleRDS_DescribeOptionGroups() { } func ExampleRDS_DescribeOrderableDBInstanceOptions() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeOrderableDBInstanceOptionsInput{ Engine: aws.String("String"), // Required @@ -1538,7 +1481,7 @@ func ExampleRDS_DescribeOrderableDBInstanceOptions() { } func ExampleRDS_DescribePendingMaintenanceActions() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribePendingMaintenanceActionsInput{ Filters: []*rds.Filter{ @@ -1569,7 +1512,7 @@ func ExampleRDS_DescribePendingMaintenanceActions() { } func ExampleRDS_DescribeReservedDBInstances() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeReservedDBInstancesInput{ DBInstanceClass: aws.String("String"), @@ -1606,7 +1549,7 @@ func ExampleRDS_DescribeReservedDBInstances() { } func ExampleRDS_DescribeReservedDBInstancesOfferings() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DescribeReservedDBInstancesOfferingsInput{ DBInstanceClass: aws.String("String"), @@ -1642,7 +1585,7 @@ func ExampleRDS_DescribeReservedDBInstancesOfferings() { } func ExampleRDS_DownloadDBLogFilePortion() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.DownloadDBLogFilePortionInput{ DBInstanceIdentifier: aws.String("String"), // Required @@ -1664,7 +1607,7 @@ func ExampleRDS_DownloadDBLogFilePortion() { } func ExampleRDS_FailoverDBCluster() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.FailoverDBClusterInput{ DBClusterIdentifier: aws.String("String"), @@ -1683,7 +1626,7 @@ func ExampleRDS_FailoverDBCluster() { } func ExampleRDS_ListTagsForResource() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ListTagsForResourceInput{ ResourceName: aws.String("String"), // Required @@ -1712,12 +1655,12 @@ func ExampleRDS_ListTagsForResource() { } func ExampleRDS_ModifyDBCluster() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ModifyDBClusterInput{ - DBClusterIdentifier: aws.String("String"), // Required ApplyImmediately: aws.Bool(true), BackupRetentionPeriod: aws.Int64(1), + DBClusterIdentifier: aws.String("String"), DBClusterParameterGroupName: aws.String("String"), MasterUserPassword: aws.String("String"), NewDBClusterIdentifier: aws.String("String"), @@ -1744,7 +1687,7 @@ func ExampleRDS_ModifyDBCluster() { } func ExampleRDS_ModifyDBClusterParameterGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ModifyDBClusterParameterGroupInput{ DBClusterParameterGroupName: aws.String("String"), // Required @@ -1777,36 +1720,8 @@ func ExampleRDS_ModifyDBClusterParameterGroup() { fmt.Println(resp) } -func ExampleRDS_ModifyDBClusterSnapshotAttribute() { - svc := rds.New(session.New()) - - params := &rds.ModifyDBClusterSnapshotAttributeInput{ - AttributeName: aws.String("String"), // Required - DBClusterSnapshotIdentifier: aws.String("String"), // Required - ValuesToAdd: []*string{ - aws.String("String"), // Required - // More values... - }, - ValuesToRemove: []*string{ - aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.ModifyDBClusterSnapshotAttribute(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRDS_ModifyDBInstance() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ModifyDBInstanceInput{ DBInstanceIdentifier: aws.String("String"), // Required @@ -1816,28 +1731,20 @@ func ExampleRDS_ModifyDBInstance() { AutoMinorVersionUpgrade: aws.Bool(true), BackupRetentionPeriod: aws.Int64(1), CACertificateIdentifier: aws.String("String"), - CopyTagsToSnapshot: aws.Bool(true), DBInstanceClass: aws.String("String"), DBParameterGroupName: aws.String("String"), - DBPortNumber: aws.Int64(1), DBSecurityGroups: []*string{ aws.String("String"), // Required // More values... }, - Domain: aws.String("String"), - DomainIAMRoleName: aws.String("String"), EngineVersion: aws.String("String"), Iops: aws.Int64(1), MasterUserPassword: aws.String("String"), - MonitoringInterval: aws.Int64(1), - MonitoringRoleArn: aws.String("String"), MultiAZ: aws.Bool(true), NewDBInstanceIdentifier: aws.String("String"), OptionGroupName: aws.String("String"), PreferredBackupWindow: aws.String("String"), PreferredMaintenanceWindow: aws.String("String"), - PromotionTier: aws.Int64(1), - PubliclyAccessible: aws.Bool(true), StorageType: aws.String("String"), TdeCredentialArn: aws.String("String"), TdeCredentialPassword: aws.String("String"), @@ -1860,7 +1767,7 @@ func ExampleRDS_ModifyDBInstance() { } func ExampleRDS_ModifyDBParameterGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ModifyDBParameterGroupInput{ DBParameterGroupName: aws.String("String"), // Required @@ -1893,36 +1800,8 @@ func ExampleRDS_ModifyDBParameterGroup() { fmt.Println(resp) } -func ExampleRDS_ModifyDBSnapshotAttribute() { - svc := rds.New(session.New()) - - params := &rds.ModifyDBSnapshotAttributeInput{ - AttributeName: aws.String("String"), // Required - DBSnapshotIdentifier: aws.String("String"), // Required - ValuesToAdd: []*string{ - aws.String("String"), // Required - // More values... - }, - ValuesToRemove: []*string{ - aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.ModifyDBSnapshotAttribute(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRDS_ModifyDBSubnetGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ModifyDBSubnetGroupInput{ DBSubnetGroupName: aws.String("String"), // Required @@ -1946,7 +1825,7 @@ func ExampleRDS_ModifyDBSubnetGroup() { } func ExampleRDS_ModifyEventSubscription() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ModifyEventSubscriptionInput{ SubscriptionName: aws.String("String"), // Required @@ -1972,7 +1851,7 @@ func ExampleRDS_ModifyEventSubscription() { } func ExampleRDS_ModifyOptionGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ModifyOptionGroupInput{ OptionGroupName: aws.String("String"), // Required @@ -2025,7 +1904,7 @@ func ExampleRDS_ModifyOptionGroup() { } func ExampleRDS_PromoteReadReplica() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.PromoteReadReplicaInput{ DBInstanceIdentifier: aws.String("String"), // Required @@ -2046,7 +1925,7 @@ func ExampleRDS_PromoteReadReplica() { } func ExampleRDS_PurchaseReservedDBInstancesOffering() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.PurchaseReservedDBInstancesOfferingInput{ ReservedDBInstancesOfferingId: aws.String("String"), // Required @@ -2074,7 +1953,7 @@ func ExampleRDS_PurchaseReservedDBInstancesOffering() { } func ExampleRDS_RebootDBInstance() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.RebootDBInstanceInput{ DBInstanceIdentifier: aws.String("String"), // Required @@ -2094,7 +1973,7 @@ func ExampleRDS_RebootDBInstance() { } func ExampleRDS_RemoveSourceIdentifierFromSubscription() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.RemoveSourceIdentifierFromSubscriptionInput{ SourceIdentifier: aws.String("String"), // Required @@ -2114,7 +1993,7 @@ func ExampleRDS_RemoveSourceIdentifierFromSubscription() { } func ExampleRDS_RemoveTagsFromResource() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.RemoveTagsFromResourceInput{ ResourceName: aws.String("String"), // Required @@ -2137,7 +2016,7 @@ func ExampleRDS_RemoveTagsFromResource() { } func ExampleRDS_ResetDBClusterParameterGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ResetDBClusterParameterGroupInput{ DBClusterParameterGroupName: aws.String("String"), // Required @@ -2172,7 +2051,7 @@ func ExampleRDS_ResetDBClusterParameterGroup() { } func ExampleRDS_ResetDBParameterGroup() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.ResetDBParameterGroupInput{ DBParameterGroupName: aws.String("String"), // Required @@ -2207,7 +2086,7 @@ func ExampleRDS_ResetDBParameterGroup() { } func ExampleRDS_RestoreDBClusterFromSnapshot() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.RestoreDBClusterFromSnapshotInput{ DBClusterIdentifier: aws.String("String"), // Required @@ -2220,7 +2099,6 @@ func ExampleRDS_RestoreDBClusterFromSnapshot() { DBSubnetGroupName: aws.String("String"), DatabaseName: aws.String("String"), EngineVersion: aws.String("String"), - KmsKeyId: aws.String("String"), OptionGroupName: aws.String("String"), Port: aws.Int64(1), Tags: []*rds.Tag{ @@ -2249,13 +2127,12 @@ func ExampleRDS_RestoreDBClusterFromSnapshot() { } func ExampleRDS_RestoreDBClusterToPointInTime() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.RestoreDBClusterToPointInTimeInput{ DBClusterIdentifier: aws.String("String"), // Required SourceDBClusterIdentifier: aws.String("String"), // Required DBSubnetGroupName: aws.String("String"), - KmsKeyId: aws.String("String"), OptionGroupName: aws.String("String"), Port: aws.Int64(1), RestoreToTime: aws.Time(time.Now()), @@ -2286,19 +2163,16 @@ func ExampleRDS_RestoreDBClusterToPointInTime() { } func ExampleRDS_RestoreDBInstanceFromDBSnapshot() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.RestoreDBInstanceFromDBSnapshotInput{ DBInstanceIdentifier: aws.String("String"), // Required DBSnapshotIdentifier: aws.String("String"), // Required AutoMinorVersionUpgrade: aws.Bool(true), AvailabilityZone: aws.String("String"), - CopyTagsToSnapshot: aws.Bool(true), DBInstanceClass: aws.String("String"), DBName: aws.String("String"), DBSubnetGroupName: aws.String("String"), - Domain: aws.String("String"), - DomainIAMRoleName: aws.String("String"), Engine: aws.String("String"), Iops: aws.Int64(1), LicenseModel: aws.String("String"), @@ -2331,19 +2205,16 @@ func ExampleRDS_RestoreDBInstanceFromDBSnapshot() { } func ExampleRDS_RestoreDBInstanceToPointInTime() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.RestoreDBInstanceToPointInTimeInput{ SourceDBInstanceIdentifier: aws.String("String"), // Required TargetDBInstanceIdentifier: aws.String("String"), // Required AutoMinorVersionUpgrade: aws.Bool(true), AvailabilityZone: aws.String("String"), - CopyTagsToSnapshot: aws.Bool(true), DBInstanceClass: aws.String("String"), DBName: aws.String("String"), DBSubnetGroupName: aws.String("String"), - Domain: aws.String("String"), - DomainIAMRoleName: aws.String("String"), Engine: aws.String("String"), Iops: aws.Int64(1), LicenseModel: aws.String("String"), @@ -2378,7 +2249,7 @@ func ExampleRDS_RestoreDBInstanceToPointInTime() { } func ExampleRDS_RevokeDBSecurityGroupIngress() { - svc := rds.New(session.New()) + svc := rds.New(nil) params := &rds.RevokeDBSecurityGroupIngressInput{ DBSecurityGroupName: aws.String("String"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go index cfd7e639a..1f11ad39c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface.go @@ -142,10 +142,6 @@ type RDSAPI interface { DescribeDBClusterParameters(*rds.DescribeDBClusterParametersInput) (*rds.DescribeDBClusterParametersOutput, error) - DescribeDBClusterSnapshotAttributesRequest(*rds.DescribeDBClusterSnapshotAttributesInput) (*request.Request, *rds.DescribeDBClusterSnapshotAttributesOutput) - - DescribeDBClusterSnapshotAttributes(*rds.DescribeDBClusterSnapshotAttributesInput) (*rds.DescribeDBClusterSnapshotAttributesOutput, error) - DescribeDBClusterSnapshotsRequest(*rds.DescribeDBClusterSnapshotsInput) (*request.Request, *rds.DescribeDBClusterSnapshotsOutput) DescribeDBClusterSnapshots(*rds.DescribeDBClusterSnapshotsInput) (*rds.DescribeDBClusterSnapshotsOutput, error) @@ -190,10 +186,6 @@ type RDSAPI interface { DescribeDBSecurityGroupsPages(*rds.DescribeDBSecurityGroupsInput, func(*rds.DescribeDBSecurityGroupsOutput, bool) bool) error - DescribeDBSnapshotAttributesRequest(*rds.DescribeDBSnapshotAttributesInput) (*request.Request, *rds.DescribeDBSnapshotAttributesOutput) - - DescribeDBSnapshotAttributes(*rds.DescribeDBSnapshotAttributesInput) (*rds.DescribeDBSnapshotAttributesOutput, error) - DescribeDBSnapshotsRequest(*rds.DescribeDBSnapshotsInput) (*request.Request, *rds.DescribeDBSnapshotsOutput) DescribeDBSnapshots(*rds.DescribeDBSnapshotsInput) (*rds.DescribeDBSnapshotsOutput, error) @@ -288,10 +280,6 @@ type RDSAPI interface { ModifyDBClusterParameterGroup(*rds.ModifyDBClusterParameterGroupInput) (*rds.DBClusterParameterGroupNameMessage, error) - ModifyDBClusterSnapshotAttributeRequest(*rds.ModifyDBClusterSnapshotAttributeInput) (*request.Request, *rds.ModifyDBClusterSnapshotAttributeOutput) - - ModifyDBClusterSnapshotAttribute(*rds.ModifyDBClusterSnapshotAttributeInput) (*rds.ModifyDBClusterSnapshotAttributeOutput, error) - ModifyDBInstanceRequest(*rds.ModifyDBInstanceInput) (*request.Request, *rds.ModifyDBInstanceOutput) ModifyDBInstance(*rds.ModifyDBInstanceInput) (*rds.ModifyDBInstanceOutput, error) @@ -300,10 +288,6 @@ type RDSAPI interface { ModifyDBParameterGroup(*rds.ModifyDBParameterGroupInput) (*rds.DBParameterGroupNameMessage, error) - ModifyDBSnapshotAttributeRequest(*rds.ModifyDBSnapshotAttributeInput) (*request.Request, *rds.ModifyDBSnapshotAttributeOutput) - - ModifyDBSnapshotAttribute(*rds.ModifyDBSnapshotAttributeInput) (*rds.ModifyDBSnapshotAttributeOutput, error) - ModifyDBSubnetGroupRequest(*rds.ModifyDBSubnetGroupInput) (*request.Request, *rds.ModifyDBSubnetGroupOutput) ModifyDBSubnetGroup(*rds.ModifyDBSubnetGroupInput) (*rds.ModifyDBSubnetGroupOutput, error) @@ -364,5 +348,3 @@ type RDSAPI interface { RevokeDBSecurityGroupIngress(*rds.RevokeDBSecurityGroupIngressInput) (*rds.RevokeDBSecurityGroupIngressOutput, error) } - -var _ RDSAPI = (*rds.RDS)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface_test.go new file mode 100644 index 000000000..30987e4d2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package rdsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/rds" + "github.com/aws/aws-sdk-go/service/rds/rdsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*rdsiface.RDSAPI)(nil), rds.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/service.go b/vendor/github.com/aws/aws-sdk-go/service/rds/service.go index 43920b5f6..30e16d233 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/service.go @@ -4,11 +4,12 @@ package rds import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Amazon Relational Database Service (Amazon RDS) is a web service that makes @@ -17,100 +18,58 @@ import ( // relational database and manages common database administration tasks, freeing // up developers to focus on what makes their applications and businesses unique. // -// Amazon RDS gives you access to the capabilities of a MySQL, MariaDB, PostgreSQL, -// Microsoft SQL Server, Oracle, or Amazon Aurora database server. These capabilities -// mean that the code, applications, and tools you already use today with your -// existing databases work with Amazon RDS without modification. Amazon RDS -// automatically backs up your database and maintains the database software -// that powers your DB instance. Amazon RDS is flexible: you can scale your -// database instance's compute resources and storage capacity to meet your application's -// demand. As with all Amazon Web Services, there are no up-front investments, -// and you pay only for the resources you use. +// Amazon RDS gives you access to the capabilities of a MySQL, PostgreSQL, +// Microsoft SQL Server, Oracle, or Aurora database server. This means the code, +// applications, and tools you already use today with your existing databases +// work with Amazon RDS without modification. Amazon RDS automatically backs +// up your database and maintains the database software that powers your DB +// instance. Amazon RDS is flexible: you can scale your database instance's +// compute resources and storage capacity to meet your application's demand. +// As with all Amazon Web Services, there are no up-front investments, and you +// pay only for the resources you use. // -// This interface reference for Amazon RDS contains documentation for a programming -// or command line interface you can use to manage Amazon RDS. Note that Amazon -// RDS is asynchronous, which means that some interfaces might require techniques -// such as polling or callback functions to determine when a command has been -// applied. In this reference, the parameter descriptions indicate whether a -// command is applied immediately, on the next instance reboot, or during the -// maintenance window. The reference structure is as follows, and we list following -// some related topics from the user guide. -// -// Amazon RDS API Reference -// -// For the alphabetical list of API actions, see API Actions (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Operations.html). -// -// For the alphabetical list of data types, see Data Types (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Types.html). -// -// For a list of common query parameters, see Common Parameters (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonParameters.html). -// -// For descriptions of the error codes, see Common Errors (http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/CommonErrors.html). -// -// Amazon RDS User Guide -// -// For a summary of the Amazon RDS interfaces, see Available RDS Interfaces -// (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html#Welcome.Interfaces). -// -// For more information about how to use the Query API, see Using the Query -// API (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Using_the_Query_API.html). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// This is an interface reference for Amazon RDS. It contains documentation +// for a programming or command line interface you can use to manage Amazon +// RDS. Note that Amazon RDS is asynchronous, which means that some interfaces +// might require techniques such as polling or callback functions to determine +// when a command has been applied. In this reference, the parameter descriptions +// indicate whether a command is applied immediately, on the next instance reboot, +// or during the maintenance window. For a summary of the Amazon RDS interfaces, +// go to Available RDS Interfaces (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html#Welcome.Interfaces). type RDS struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "rds" - -// New creates a new instance of the RDS client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a RDS client from just a session. -// svc := rds.New(mySession) -// -// // Create a RDS client with additional configuration -// svc := rds.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *RDS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *RDS { - svc := &RDS{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-10-31", - }, - handlers, - ), +// New returns a new RDS client. +func New(config *aws.Config) *RDS { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "rds", + APIVersion: "2014-10-31", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &RDS{service} } // newRequest creates a new request for a RDS operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/rds/waiters.go deleted file mode 100644 index b73b51bda..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/waiters.go +++ /dev/null @@ -1,125 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package rds - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *RDS) WaitUntilDBInstanceAvailable(input *DescribeDBInstancesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeDBInstances", - Delay: 30, - MaxAttempts: 60, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "deleted", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "deleting", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "failed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "incompatible-restore", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "incompatible-parameters", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "incompatible-parameters", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "incompatible-restore", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *RDS) WaitUntilDBInstanceDeleted(input *DescribeDBInstancesInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeDBInstances", - Delay: 30, - MaxAttempts: 60, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "deleted", - }, - { - State: "success", - Matcher: "error", - Argument: "", - Expected: "DBInstanceNotFound", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "creating", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "modifying", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "rebooting", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "DBInstances[].DBInstanceStatus", - Expected: "resetting-master-credentials", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go index 97ff5ecfe..0c6364b6f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go @@ -8,8 +8,6 @@ import ( "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/private/protocol/query" ) const opAuthorizeClusterSecurityGroupIngress = "AuthorizeClusterSecurityGroupIngress" @@ -34,18 +32,13 @@ func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeC // Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending // on whether the application accessing your cluster is running on the Internet -// or an Amazon EC2 instance, you can authorize inbound access to either a Classless -// Interdomain Routing (CIDR)/Internet Protocol (IP) range or to an Amazon EC2 -// security group. You can add as many as 20 ingress rules to an Amazon Redshift -// security group. +// or an EC2 instance, you can authorize inbound access to either a Classless +// Interdomain Routing (CIDR) IP address range or an EC2 security group. You +// can add as many as 20 ingress rules to an Amazon Redshift security group. // -// If you authorize access to an Amazon EC2 security group, specify EC2SecurityGroupName -// and EC2SecurityGroupOwnerId. The Amazon EC2 security group and Amazon Redshift -// cluster must be in the same AWS region. -// -// If you authorize access to a CIDR/IP address range, specify CIDRIP. For -// an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain -// Routing (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// The EC2 security group must be defined in the AWS region where the cluster +// resides. For an overview of CIDR blocks, see the Wikipedia article on Classless +// Inter-Domain Routing (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). // // You must also associate the security group with a cluster so that clients // running on these IP addresses or the EC2 instance are authorized to connect @@ -462,8 +455,6 @@ func (c *Redshift) CreateTagsRequest(input *CreateTagsInput) (req *request.Reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &CreateTagsOutput{} req.Data = output return @@ -540,8 +531,6 @@ func (c *Redshift) DeleteClusterParameterGroupRequest(input *DeleteClusterParame } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteClusterParameterGroupOutput{} req.Data = output return @@ -570,8 +559,6 @@ func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurit } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteClusterSecurityGroupOutput{} req.Data = output return @@ -638,8 +625,6 @@ func (c *Redshift) DeleteClusterSubnetGroupRequest(input *DeleteClusterSubnetGro } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteClusterSubnetGroupOutput{} req.Data = output return @@ -667,8 +652,6 @@ func (c *Redshift) DeleteEventSubscriptionRequest(input *DeleteEventSubscription } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteEventSubscriptionOutput{} req.Data = output return @@ -696,8 +679,6 @@ func (c *Redshift) DeleteHsmClientCertificateRequest(input *DeleteHsmClientCerti } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteHsmClientCertificateOutput{} req.Data = output return @@ -725,8 +706,6 @@ func (c *Redshift) DeleteHsmConfigurationRequest(input *DeleteHsmConfigurationIn } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteHsmConfigurationOutput{} req.Data = output return @@ -754,8 +733,6 @@ func (c *Redshift) DeleteSnapshotCopyGrantRequest(input *DeleteSnapshotCopyGrant } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteSnapshotCopyGrantOutput{} req.Data = output return @@ -783,8 +760,6 @@ func (c *Redshift) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteTagsOutput{} req.Data = output return @@ -851,7 +826,6 @@ func (c *Redshift) DescribeClusterParameterGroups(input *DescribeClusterParamete func (c *Redshift) DescribeClusterParameterGroupsPages(input *DescribeClusterParameterGroupsInput, fn func(p *DescribeClusterParameterGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeClusterParameterGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeClusterParameterGroupsOutput), lastPage) }) @@ -903,7 +877,6 @@ func (c *Redshift) DescribeClusterParameters(input *DescribeClusterParametersInp func (c *Redshift) DescribeClusterParametersPages(input *DescribeClusterParametersInput, fn func(p *DescribeClusterParametersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeClusterParametersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeClusterParametersOutput), lastPage) }) @@ -960,7 +933,6 @@ func (c *Redshift) DescribeClusterSecurityGroups(input *DescribeClusterSecurityG func (c *Redshift) DescribeClusterSecurityGroupsPages(input *DescribeClusterSecurityGroupsInput, fn func(p *DescribeClusterSecurityGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeClusterSecurityGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeClusterSecurityGroupsOutput), lastPage) }) @@ -1016,7 +988,6 @@ func (c *Redshift) DescribeClusterSnapshots(input *DescribeClusterSnapshotsInput func (c *Redshift) DescribeClusterSnapshotsPages(input *DescribeClusterSnapshotsInput, fn func(p *DescribeClusterSnapshotsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeClusterSnapshotsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeClusterSnapshotsOutput), lastPage) }) @@ -1069,7 +1040,6 @@ func (c *Redshift) DescribeClusterSubnetGroups(input *DescribeClusterSubnetGroup func (c *Redshift) DescribeClusterSubnetGroupsPages(input *DescribeClusterSubnetGroupsInput, fn func(p *DescribeClusterSubnetGroupsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeClusterSubnetGroupsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeClusterSubnetGroupsOutput), lastPage) }) @@ -1114,7 +1084,6 @@ func (c *Redshift) DescribeClusterVersions(input *DescribeClusterVersionsInput) func (c *Redshift) DescribeClusterVersionsPages(input *DescribeClusterVersionsInput, fn func(p *DescribeClusterVersionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeClusterVersionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeClusterVersionsOutput), lastPage) }) @@ -1168,7 +1137,6 @@ func (c *Redshift) DescribeClusters(input *DescribeClustersInput) (*DescribeClus func (c *Redshift) DescribeClustersPages(input *DescribeClustersInput, fn func(p *DescribeClustersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeClustersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeClustersOutput), lastPage) }) @@ -1213,7 +1181,6 @@ func (c *Redshift) DescribeDefaultClusterParameters(input *DescribeDefaultCluste func (c *Redshift) DescribeDefaultClusterParametersPages(input *DescribeDefaultClusterParametersInput, fn func(p *DescribeDefaultClusterParametersOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeDefaultClusterParametersRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeDefaultClusterParametersOutput), lastPage) }) @@ -1285,7 +1252,6 @@ func (c *Redshift) DescribeEventSubscriptions(input *DescribeEventSubscriptionsI func (c *Redshift) DescribeEventSubscriptionsPages(input *DescribeEventSubscriptionsInput, fn func(p *DescribeEventSubscriptionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeEventSubscriptionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeEventSubscriptionsOutput), lastPage) }) @@ -1329,7 +1295,6 @@ func (c *Redshift) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOu func (c *Redshift) DescribeEventsPages(input *DescribeEventsInput, fn func(p *DescribeEventsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeEventsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeEventsOutput), lastPage) }) @@ -1382,7 +1347,6 @@ func (c *Redshift) DescribeHsmClientCertificates(input *DescribeHsmClientCertifi func (c *Redshift) DescribeHsmClientCertificatesPages(input *DescribeHsmClientCertificatesInput, fn func(p *DescribeHsmClientCertificatesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeHsmClientCertificatesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeHsmClientCertificatesOutput), lastPage) }) @@ -1435,7 +1399,6 @@ func (c *Redshift) DescribeHsmConfigurations(input *DescribeHsmConfigurationsInp func (c *Redshift) DescribeHsmConfigurationsPages(input *DescribeHsmConfigurationsInput, fn func(p *DescribeHsmConfigurationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeHsmConfigurationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeHsmConfigurationsOutput), lastPage) }) @@ -1512,7 +1475,6 @@ func (c *Redshift) DescribeOrderableClusterOptions(input *DescribeOrderableClust func (c *Redshift) DescribeOrderableClusterOptionsPages(input *DescribeOrderableClusterOptionsInput, fn func(p *DescribeOrderableClusterOptionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeOrderableClusterOptionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeOrderableClusterOptionsOutput), lastPage) }) @@ -1562,7 +1524,6 @@ func (c *Redshift) DescribeReservedNodeOfferings(input *DescribeReservedNodeOffe func (c *Redshift) DescribeReservedNodeOfferingsPages(input *DescribeReservedNodeOfferingsInput, fn func(p *DescribeReservedNodeOfferingsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeReservedNodeOfferingsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeReservedNodeOfferingsOutput), lastPage) }) @@ -1603,7 +1564,6 @@ func (c *Redshift) DescribeReservedNodes(input *DescribeReservedNodesInput) (*De func (c *Redshift) DescribeReservedNodesPages(input *DescribeReservedNodesInput, fn func(p *DescribeReservedNodesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeReservedNodesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeReservedNodesOutput), lastPage) }) @@ -1674,37 +1634,6 @@ func (c *Redshift) DescribeSnapshotCopyGrants(input *DescribeSnapshotCopyGrantsI return out, err } -const opDescribeTableRestoreStatus = "DescribeTableRestoreStatus" - -// DescribeTableRestoreStatusRequest generates a request for the DescribeTableRestoreStatus operation. -func (c *Redshift) DescribeTableRestoreStatusRequest(input *DescribeTableRestoreStatusInput) (req *request.Request, output *DescribeTableRestoreStatusOutput) { - op := &request.Operation{ - Name: opDescribeTableRestoreStatus, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeTableRestoreStatusInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeTableRestoreStatusOutput{} - req.Data = output - return -} - -// Lists the status of one or more table restore requests made using the RestoreTableFromClusterSnapshot -// API action. If you don't specify a value for the TableRestoreRequestId parameter, -// then DescribeTableRestoreStatus returns the status of all table restore requests -// ordered by the date and time of the request in ascending order. Otherwise -// DescribeTableRestoreStatus returns the status of the table specified by TableRestoreRequestId. -func (c *Redshift) DescribeTableRestoreStatus(input *DescribeTableRestoreStatusInput) (*DescribeTableRestoreStatusOutput, error) { - req, out := c.DescribeTableRestoreStatusRequest(input) - err := req.Send() - return out, err -} - const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a request for the DescribeTags operation. @@ -1903,36 +1832,6 @@ func (c *Redshift) ModifyCluster(input *ModifyClusterInput) (*ModifyClusterOutpu return out, err } -const opModifyClusterIamRoles = "ModifyClusterIamRoles" - -// ModifyClusterIamRolesRequest generates a request for the ModifyClusterIamRoles operation. -func (c *Redshift) ModifyClusterIamRolesRequest(input *ModifyClusterIamRolesInput) (req *request.Request, output *ModifyClusterIamRolesOutput) { - op := &request.Operation{ - Name: opModifyClusterIamRoles, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyClusterIamRolesInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifyClusterIamRolesOutput{} - req.Data = output - return -} - -// Modifies the list of AWS Identity and Access Management (IAM) roles that -// can be used by the cluster to access other AWS services. -// -// A cluster can have up to 10 IAM roles associated at any time. -func (c *Redshift) ModifyClusterIamRoles(input *ModifyClusterIamRolesInput) (*ModifyClusterIamRolesOutput, error) { - req, out := c.ModifyClusterIamRolesRequest(input) - err := req.Send() - return out, err -} - const opModifyClusterParameterGroup = "ModifyClusterParameterGroup" // ModifyClusterParameterGroupRequest generates a request for the ModifyClusterParameterGroup operation. @@ -2187,45 +2086,6 @@ func (c *Redshift) RestoreFromClusterSnapshot(input *RestoreFromClusterSnapshotI return out, err } -const opRestoreTableFromClusterSnapshot = "RestoreTableFromClusterSnapshot" - -// RestoreTableFromClusterSnapshotRequest generates a request for the RestoreTableFromClusterSnapshot operation. -func (c *Redshift) RestoreTableFromClusterSnapshotRequest(input *RestoreTableFromClusterSnapshotInput) (req *request.Request, output *RestoreTableFromClusterSnapshotOutput) { - op := &request.Operation{ - Name: opRestoreTableFromClusterSnapshot, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RestoreTableFromClusterSnapshotInput{} - } - - req = c.newRequest(op, input, output) - output = &RestoreTableFromClusterSnapshotOutput{} - req.Data = output - return -} - -// Creates a new table from a table in an Amazon Redshift cluster snapshot. -// You must create the new table within the Amazon Redshift cluster that the -// snapshot was taken from. -// -// You cannot use RestoreTableFromClusterSnapshot to restore a table with the -// same name as an existing table in an Amazon Redshift cluster. That is, you -// cannot overwrite an existing table in a cluster with a restored table. If -// you want to replace your original table with a new, restored table, then -// rename or drop your original table before you call RestoreTableFromClusterSnapshot. -// When you have renamed your original table, then you can pass the original -// name of the table as the NewTableName parameter value in the call to RestoreTableFromClusterSnapshot. -// This way, you can replace the original table with the table created from -// the snapshot. -func (c *Redshift) RestoreTableFromClusterSnapshot(input *RestoreTableFromClusterSnapshotInput) (*RestoreTableFromClusterSnapshotOutput, error) { - req, out := c.RestoreTableFromClusterSnapshotRequest(input) - err := req.Send() - return out, err -} - const opRevokeClusterSecurityGroupIngress = "RevokeClusterSecurityGroupIngress" // RevokeClusterSecurityGroupIngressRequest generates a request for the RevokeClusterSecurityGroupIngress operation. @@ -2319,10 +2179,14 @@ func (c *Redshift) RotateEncryptionKey(input *RotateEncryptionKeyInput) (*Rotate // Describes an AWS customer account authorized to restore a snapshot. type AccountWithRestoreAccess struct { - _ struct{} `type:"structure"` - // The identifier of an AWS customer account authorized to restore a snapshot. AccountId *string `type:"string"` + + metadataAccountWithRestoreAccess `json:"-" xml:"-"` +} + +type metadataAccountWithRestoreAccess struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2335,9 +2199,8 @@ func (s AccountWithRestoreAccess) GoString() string { return s.String() } +// ??? type AuthorizeClusterSecurityGroupIngressInput struct { - _ struct{} `type:"structure"` - // The IP range to be added the Amazon Redshift security group. CIDRIP *string `type:"string"` @@ -2353,6 +2216,12 @@ type AuthorizeClusterSecurityGroupIngressInput struct { // // Example: 111122223333 EC2SecurityGroupOwnerId *string `type:"string"` + + metadataAuthorizeClusterSecurityGroupIngressInput `json:"-" xml:"-"` +} + +type metadataAuthorizeClusterSecurityGroupIngressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2365,24 +2234,15 @@ func (s AuthorizeClusterSecurityGroupIngressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AuthorizeClusterSecurityGroupIngressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AuthorizeClusterSecurityGroupIngressInput"} - if s.ClusterSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterSecurityGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type AuthorizeClusterSecurityGroupIngressOutput struct { - _ struct{} `type:"structure"` - // Describes a security group. ClusterSecurityGroup *ClusterSecurityGroup `type:"structure"` + + metadataAuthorizeClusterSecurityGroupIngressOutput `json:"-" xml:"-"` +} + +type metadataAuthorizeClusterSecurityGroupIngressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2396,8 +2256,6 @@ func (s AuthorizeClusterSecurityGroupIngressOutput) GoString() string { } type AuthorizeSnapshotAccessInput struct { - _ struct{} `type:"structure"` - // The identifier of the AWS customer account authorized to restore the specified // snapshot. AccountWithRestoreAccess *string `type:"string" required:"true"` @@ -2409,6 +2267,12 @@ type AuthorizeSnapshotAccessInput struct { // The identifier of the snapshot the account is authorized to restore. SnapshotIdentifier *string `type:"string" required:"true"` + + metadataAuthorizeSnapshotAccessInput `json:"-" xml:"-"` +} + +type metadataAuthorizeSnapshotAccessInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2421,27 +2285,15 @@ func (s AuthorizeSnapshotAccessInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AuthorizeSnapshotAccessInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AuthorizeSnapshotAccessInput"} - if s.AccountWithRestoreAccess == nil { - invalidParams.Add(request.NewErrParamRequired("AccountWithRestoreAccess")) - } - if s.SnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type AuthorizeSnapshotAccessOutput struct { - _ struct{} `type:"structure"` - // Describes a snapshot. Snapshot *Snapshot `type:"structure"` + + metadataAuthorizeSnapshotAccessOutput `json:"-" xml:"-"` +} + +type metadataAuthorizeSnapshotAccessOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2456,10 +2308,14 @@ func (s AuthorizeSnapshotAccessOutput) GoString() string { // Describes an availability zone. type AvailabilityZone struct { - _ struct{} `type:"structure"` - // The name of the availability zone. Name *string `type:"string"` + + metadataAvailabilityZone `json:"-" xml:"-"` +} + +type metadataAvailabilityZone struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2474,8 +2330,6 @@ func (s AvailabilityZone) GoString() string { // Describes a cluster. type Cluster struct { - _ struct{} `type:"structure"` - // If true, major version upgrades will be applied automatically to the cluster // during the maintenance window. AllowVersionUpgrade *bool `type:"boolean"` @@ -2518,10 +2372,8 @@ type Cluster struct { // cross-region snapshot copy. ClusterSnapshotCopyStatus *ClusterSnapshotCopyStatus `type:"structure"` - // The current state of the cluster. Possible values are: available creating - // deleting final-snapshot hardware-failure incompatible-hsm incompatible-network - // incompatible-parameters incompatible-restore modifying rebooting renaming - // resizing rotating-keys storage-full updating-hsm + // The current state of this cluster. Possible values include available, creating, + // deleting, rebooting, renaming, and resizing. ClusterStatus *string `type:"string"` // The name of the subnet group that is associated with the cluster. This parameter @@ -2536,7 +2388,7 @@ type Cluster struct { // was not specified, a database named "dev" was created by default. DBName *string `type:"string"` - // The status of the elastic IP (EIP) address. + // Describes the status of the elastic IP (EIP) address. ElasticIpStatus *ElasticIpStatus `type:"structure"` // If true, data in the cluster is encrypted at rest. @@ -2551,10 +2403,6 @@ type Cluster struct { // Values: active, applying HsmStatus *HsmStatus `type:"structure"` - // A list of AWS Identity and Access Management (IAM) roles that can be used - // by the cluster to access other AWS services. - IamRoles []*ClusterIamRole `locationNameList:"ClusterIamRole" type:"list"` - // The AWS Key Management Service (KMS) key ID of the encryption key used to // encrypt data in the cluster. KmsKeyId *string `type:"string"` @@ -2596,50 +2444,26 @@ type Cluster struct { // with the cluster. This parameter is returned only if the cluster is in a // VPC. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroup" type:"list"` -} - -// String returns the string representation -func (s Cluster) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s Cluster) GoString() string { - return s.String() + metadataCluster `json:"-" xml:"-"` } -// An AWS Identity and Access Management (IAM) role that can be used by the -// associated Amazon Redshift cluster to access other AWS services. -type ClusterIamRole struct { - _ struct{} `type:"structure"` - - // Describes the status of the IAM role's association with an Amazon Redshift - // cluster. - // - // The following are possible statuses and descriptions. in-sync: The role - // is available for use by the cluster. adding: The role is in the process of - // being associated with the cluster. removing: The role is in the process of - // being disassociated with the cluster. - ApplyStatus *string `type:"string"` - - // The Amazon Resource Name (ARN) of the IAM role. For example, arn:aws:iam::123456789012:role/RedshiftCopyUnload. - IamRoleArn *string `type:"string"` +type metadataCluster struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ClusterIamRole) String() string { +func (s Cluster) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ClusterIamRole) GoString() string { +func (s Cluster) GoString() string { return s.String() } // The identifier of a node in a cluster. type ClusterNode struct { - _ struct{} `type:"structure"` - // Whether the node is a leader node or a compute node. NodeRole *string `type:"string"` @@ -2648,6 +2472,12 @@ type ClusterNode struct { // The public IP address of a node within a cluster. PublicIPAddress *string `type:"string"` + + metadataClusterNode `json:"-" xml:"-"` +} + +type metadataClusterNode struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2662,8 +2492,6 @@ func (s ClusterNode) GoString() string { // Describes a parameter group. type ClusterParameterGroup struct { - _ struct{} `type:"structure"` - // The description of the parameter group. Description *string `type:"string"` @@ -2676,6 +2504,12 @@ type ClusterParameterGroup struct { // The list of tags for the cluster parameter group. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataClusterParameterGroup `json:"-" xml:"-"` +} + +type metadataClusterParameterGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2688,9 +2522,10 @@ func (s ClusterParameterGroup) GoString() string { return s.String() } +// Contains the output from the ModifyClusterParameterGroup and ResetClusterParameterGroup +// actions and indicate the parameter group involved and the status of the operation +// on the parameter group. type ClusterParameterGroupNameMessage struct { - _ struct{} `type:"structure"` - // The name of the cluster parameter group. ParameterGroupName *string `type:"string"` @@ -2698,6 +2533,12 @@ type ClusterParameterGroupNameMessage struct { // parameter group name-value pair, then the change could be pending a reboot // of an associated cluster. ParameterGroupStatus *string `type:"string"` + + metadataClusterParameterGroupNameMessage `json:"-" xml:"-"` +} + +type metadataClusterParameterGroupNameMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2712,8 +2553,6 @@ func (s ClusterParameterGroupNameMessage) GoString() string { // Describes the status of a parameter group. type ClusterParameterGroupStatus struct { - _ struct{} `type:"structure"` - // The list of parameter statuses. // // For more information about parameters and parameter groups, go to Amazon @@ -2726,6 +2565,12 @@ type ClusterParameterGroupStatus struct { // The name of the cluster parameter group. ParameterGroupName *string `type:"string"` + + metadataClusterParameterGroupStatus `json:"-" xml:"-"` +} + +type metadataClusterParameterGroupStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2740,8 +2585,6 @@ func (s ClusterParameterGroupStatus) GoString() string { // Describes the status of a parameter group. type ClusterParameterStatus struct { - _ struct{} `type:"structure"` - // The error that prevented the parameter from being applied to the database. ParameterApplyErrorDescription *string `type:"string"` @@ -2749,20 +2592,26 @@ type ClusterParameterStatus struct { // with the database, waiting for a cluster reboot, or encountered an error // when being applied. // - // The following are possible statuses and descriptions. in-sync: The parameter - // value is in sync with the database. pending-reboot: The parameter value will - // be applied after the cluster reboots. applying: The parameter value is being - // applied to the database. invalid-parameter: Cannot apply the parameter value - // because it has an invalid value or syntax. apply-deferred: The parameter + // The following are possible statuses and descriptions. in-sync: The parameter + // value is in sync with the database. pending-reboot: The parameter value + // will be applied after the cluster reboots. applying: The parameter value + // is being applied to the database. invalid-parameter: Cannot apply the parameter + // value because it has an invalid value or syntax. apply-deferred: The parameter // contains static property changes. The changes are deferred until the cluster - // reboots. apply-error: Cannot connect to the cluster. The parameter change - // will be applied after the cluster reboots. unknown-error: Cannot apply the + // reboots. apply-error: Cannot connect to the cluster. The parameter change + // will be applied after the cluster reboots. unknown-error: Cannot apply the // parameter change right now. The change will be applied after the cluster // reboots. ParameterApplyStatus *string `type:"string"` // The name of the parameter. ParameterName *string `type:"string"` + + metadataClusterParameterStatus `json:"-" xml:"-"` +} + +type metadataClusterParameterStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2777,8 +2626,6 @@ func (s ClusterParameterStatus) GoString() string { // Describes a security group. type ClusterSecurityGroup struct { - _ struct{} `type:"structure"` - // The name of the cluster security group to which the operation was applied. ClusterSecurityGroupName *string `type:"string"` @@ -2795,6 +2642,12 @@ type ClusterSecurityGroup struct { // The list of tags for the cluster security group. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataClusterSecurityGroup `json:"-" xml:"-"` +} + +type metadataClusterSecurityGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2807,15 +2660,19 @@ func (s ClusterSecurityGroup) GoString() string { return s.String() } -// Describes a cluster security group. +// Describes a security group. type ClusterSecurityGroupMembership struct { - _ struct{} `type:"structure"` - // The name of the cluster security group. ClusterSecurityGroupName *string `type:"string"` // The status of the cluster security group. Status *string `type:"string"` + + metadataClusterSecurityGroupMembership `json:"-" xml:"-"` +} + +type metadataClusterSecurityGroupMembership struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2831,8 +2688,6 @@ func (s ClusterSecurityGroupMembership) GoString() string { // Returns the destination region and retention period that are configured for // cross-region snapshot copy. type ClusterSnapshotCopyStatus struct { - _ struct{} `type:"structure"` - // The destination region that snapshots are automatically copied to when cross-region // snapshot copy is enabled. DestinationRegion *string `type:"string"` @@ -2843,6 +2698,12 @@ type ClusterSnapshotCopyStatus struct { // The name of the snapshot copy grant. SnapshotCopyGrantName *string `type:"string"` + + metadataClusterSnapshotCopyStatus `json:"-" xml:"-"` +} + +type metadataClusterSnapshotCopyStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2857,8 +2718,6 @@ func (s ClusterSnapshotCopyStatus) GoString() string { // Describes a subnet group. type ClusterSubnetGroup struct { - _ struct{} `type:"structure"` - // The name of the cluster subnet group. ClusterSubnetGroupName *string `type:"string"` @@ -2877,6 +2736,12 @@ type ClusterSubnetGroup struct { // The VPC ID of the cluster subnet group. VpcId *string `type:"string"` + + metadataClusterSubnetGroup `json:"-" xml:"-"` +} + +type metadataClusterSubnetGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2892,8 +2757,6 @@ func (s ClusterSubnetGroup) GoString() string { // Describes a cluster version, including the parameter group family and description // of the version. type ClusterVersion struct { - _ struct{} `type:"structure"` - // The name of the cluster parameter group family for the cluster. ClusterParameterGroupFamily *string `type:"string"` @@ -2902,6 +2765,12 @@ type ClusterVersion struct { // The description of the cluster version. Description *string `type:"string"` + + metadataClusterVersion `json:"-" xml:"-"` +} + +type metadataClusterVersion struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2915,8 +2784,6 @@ func (s ClusterVersion) GoString() string { } type CopyClusterSnapshotInput struct { - _ struct{} `type:"structure"` - // The identifier of the cluster the source snapshot was created from. This // parameter is required if your IAM user has a policy containing a snapshot // resource element that specifies anything other than * for the cluster name. @@ -2942,6 +2809,12 @@ type CopyClusterSnapshotInput struct { // a hyphen or contain two consecutive hyphens. Must be unique for the AWS account // that is making the request. TargetSnapshotIdentifier *string `type:"string" required:"true"` + + metadataCopyClusterSnapshotInput `json:"-" xml:"-"` +} + +type metadataCopyClusterSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2954,27 +2827,15 @@ func (s CopyClusterSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CopyClusterSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CopyClusterSnapshotInput"} - if s.SourceSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceSnapshotIdentifier")) - } - if s.TargetSnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("TargetSnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CopyClusterSnapshotOutput struct { - _ struct{} `type:"structure"` - // Describes a snapshot. Snapshot *Snapshot `type:"structure"` + + metadataCopyClusterSnapshotOutput `json:"-" xml:"-"` +} + +type metadataCopyClusterSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2988,11 +2849,6 @@ func (s CopyClusterSnapshotOutput) GoString() string { } type CreateClusterInput struct { - _ struct{} `type:"structure"` - - // Reserved. - AdditionalInfo *string `type:"string"` - // If true, major version upgrades can be applied during the maintenance window // to the Amazon Redshift engine that is running on the cluster. // @@ -3061,8 +2917,8 @@ type CreateClusterInput struct { // outside virtual private cloud (VPC). ClusterSubnetGroupName *string `type:"string"` - // The type of the cluster. When cluster type is specified as single-node, - // the NumberOfNodes parameter is not required. multi-node, the NumberOfNodes + // The type of the cluster. When cluster type is specified as single-node, + // the NumberOfNodes parameter is not required. multi-node, the NumberOfNodes // parameter is required. // // Valid Values: multi-node | single-node @@ -3118,14 +2974,6 @@ type CreateClusterInput struct { // the Amazon Redshift cluster can use to retrieve and store keys in an HSM. HsmConfigurationIdentifier *string `type:"string"` - // A list of AWS Identity and Access Management (IAM) roles that can be used - // by the cluster to access other AWS services. You must supply the IAM roles - // in their Amazon Resource Name (ARN) format. You can supply up to 10 IAM roles - // in a single request. - // - // A cluster can have up to 10 IAM roles associated at any time. - IamRoles []*string `locationNameList:"IamRoleArn" type:"list"` - // The AWS Key Management Service (KMS) key ID of the encryption key that you // want to use to encrypt data in the cluster. KmsKeyId *string `type:"string"` @@ -3213,6 +3061,12 @@ type CreateClusterInput struct { // // Default: The default VPC security group is associated with the cluster. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` + + metadataCreateClusterInput `json:"-" xml:"-"` +} + +type metadataCreateClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3225,33 +3079,15 @@ func (s CreateClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateClusterInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - if s.MasterUserPassword == nil { - invalidParams.Add(request.NewErrParamRequired("MasterUserPassword")) - } - if s.MasterUsername == nil { - invalidParams.Add(request.NewErrParamRequired("MasterUsername")) - } - if s.NodeType == nil { - invalidParams.Add(request.NewErrParamRequired("NodeType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateClusterOutput struct { - _ struct{} `type:"structure"` - // Describes a cluster. Cluster *Cluster `type:"structure"` + + metadataCreateClusterOutput `json:"-" xml:"-"` +} + +type metadataCreateClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3265,8 +3101,6 @@ func (s CreateClusterOutput) GoString() string { } type CreateClusterParameterGroupInput struct { - _ struct{} `type:"structure"` - // A description of the parameter group. Description *string `type:"string" required:"true"` @@ -3293,6 +3127,12 @@ type CreateClusterParameterGroupInput struct { // A list of tag instances. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateClusterParameterGroupInput `json:"-" xml:"-"` +} + +type metadataCreateClusterParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3305,30 +3145,15 @@ func (s CreateClusterParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateClusterParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateClusterParameterGroupInput"} - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } - if s.ParameterGroupFamily == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterGroupFamily")) - } - if s.ParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateClusterParameterGroupOutput struct { - _ struct{} `type:"structure"` - // Describes a parameter group. ClusterParameterGroup *ClusterParameterGroup `type:"structure"` + + metadataCreateClusterParameterGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateClusterParameterGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3341,9 +3166,8 @@ func (s CreateClusterParameterGroupOutput) GoString() string { return s.String() } +// ??? type CreateClusterSecurityGroupInput struct { - _ struct{} `type:"structure"` - // The name for the security group. Amazon Redshift stores the value as a lowercase // string. // @@ -3359,6 +3183,12 @@ type CreateClusterSecurityGroupInput struct { // A list of tag instances. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateClusterSecurityGroupInput `json:"-" xml:"-"` +} + +type metadataCreateClusterSecurityGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3371,27 +3201,15 @@ func (s CreateClusterSecurityGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateClusterSecurityGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateClusterSecurityGroupInput"} - if s.ClusterSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterSecurityGroupName")) - } - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateClusterSecurityGroupOutput struct { - _ struct{} `type:"structure"` - // Describes a security group. ClusterSecurityGroup *ClusterSecurityGroup `type:"structure"` + + metadataCreateClusterSecurityGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateClusterSecurityGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3405,8 +3223,6 @@ func (s CreateClusterSecurityGroupOutput) GoString() string { } type CreateClusterSnapshotInput struct { - _ struct{} `type:"structure"` - // The cluster identifier for which you want a snapshot. ClusterIdentifier *string `type:"string" required:"true"` @@ -3422,6 +3238,12 @@ type CreateClusterSnapshotInput struct { // A list of tag instances. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateClusterSnapshotInput `json:"-" xml:"-"` +} + +type metadataCreateClusterSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3434,27 +3256,15 @@ func (s CreateClusterSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateClusterSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateClusterSnapshotInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - if s.SnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateClusterSnapshotOutput struct { - _ struct{} `type:"structure"` - // Describes a snapshot. Snapshot *Snapshot `type:"structure"` + + metadataCreateClusterSnapshotOutput `json:"-" xml:"-"` +} + +type metadataCreateClusterSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3468,8 +3278,6 @@ func (s CreateClusterSnapshotOutput) GoString() string { } type CreateClusterSubnetGroupInput struct { - _ struct{} `type:"structure"` - // The name for the subnet group. Amazon Redshift stores the value as a lowercase // string. // @@ -3489,6 +3297,12 @@ type CreateClusterSubnetGroupInput struct { // A list of tag instances. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateClusterSubnetGroupInput `json:"-" xml:"-"` +} + +type metadataCreateClusterSubnetGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3501,30 +3315,15 @@ func (s CreateClusterSubnetGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateClusterSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateClusterSubnetGroupInput"} - if s.ClusterSubnetGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterSubnetGroupName")) - } - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateClusterSubnetGroupOutput struct { - _ struct{} `type:"structure"` - // Describes a subnet group. ClusterSubnetGroup *ClusterSubnetGroup `type:"structure"` + + metadataCreateClusterSubnetGroupOutput `json:"-" xml:"-"` +} + +type metadataCreateClusterSubnetGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3538,8 +3337,6 @@ func (s CreateClusterSubnetGroupOutput) GoString() string { } type CreateEventSubscriptionInput struct { - _ struct{} `type:"structure"` - // A Boolean value; set to true to activate the subscription, set to false to // create the subscription but not active it. Enabled *bool `type:"boolean"` @@ -3593,6 +3390,12 @@ type CreateEventSubscriptionInput struct { // A list of tag instances. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateEventSubscriptionInput `json:"-" xml:"-"` +} + +type metadataCreateEventSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3605,27 +3408,14 @@ func (s CreateEventSubscriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEventSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEventSubscriptionInput"} - if s.SnsTopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("SnsTopicArn")) - } - if s.SubscriptionName == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) - } +type CreateEventSubscriptionOutput struct { + EventSubscription *EventSubscription `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateEventSubscriptionOutput `json:"-" xml:"-"` } -type CreateEventSubscriptionOutput struct { - _ struct{} `type:"structure"` - - // Describes event subscriptions. - EventSubscription *EventSubscription `type:"structure"` +type metadataCreateEventSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3639,14 +3429,18 @@ func (s CreateEventSubscriptionOutput) GoString() string { } type CreateHsmClientCertificateInput struct { - _ struct{} `type:"structure"` - // The identifier to be assigned to the new HSM client certificate that the // cluster will use to connect to the HSM to use the database encryption keys. HsmClientCertificateIdentifier *string `type:"string" required:"true"` // A list of tag instances. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateHsmClientCertificateInput `json:"-" xml:"-"` +} + +type metadataCreateHsmClientCertificateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3659,26 +3453,17 @@ func (s CreateHsmClientCertificateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateHsmClientCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateHsmClientCertificateInput"} - if s.HsmClientCertificateIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("HsmClientCertificateIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateHsmClientCertificateOutput struct { - _ struct{} `type:"structure"` - // Returns information about an HSM client certificate. The certificate is stored // in a secure Hardware Storage Module (HSM), and used by the Amazon Redshift // cluster to encrypt data files. HsmClientCertificate *HsmClientCertificate `type:"structure"` + + metadataCreateHsmClientCertificateOutput `json:"-" xml:"-"` +} + +type metadataCreateHsmClientCertificateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3692,8 +3477,6 @@ func (s CreateHsmClientCertificateOutput) GoString() string { } type CreateHsmConfigurationInput struct { - _ struct{} `type:"structure"` - // A text description of the HSM configuration to be created. Description *string `type:"string" required:"true"` @@ -3716,6 +3499,12 @@ type CreateHsmConfigurationInput struct { // A list of tag instances. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateHsmConfigurationInput `json:"-" xml:"-"` +} + +type metadataCreateHsmConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3728,41 +3517,17 @@ func (s CreateHsmConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateHsmConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateHsmConfigurationInput"} - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } - if s.HsmConfigurationIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("HsmConfigurationIdentifier")) - } - if s.HsmIpAddress == nil { - invalidParams.Add(request.NewErrParamRequired("HsmIpAddress")) - } - if s.HsmPartitionName == nil { - invalidParams.Add(request.NewErrParamRequired("HsmPartitionName")) - } - if s.HsmPartitionPassword == nil { - invalidParams.Add(request.NewErrParamRequired("HsmPartitionPassword")) - } - if s.HsmServerPublicCertificate == nil { - invalidParams.Add(request.NewErrParamRequired("HsmServerPublicCertificate")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateHsmConfigurationOutput struct { - _ struct{} `type:"structure"` - // Returns information about an HSM configuration, which is an object that describes // to Amazon Redshift clusters the information they require to connect to an // HSM where they can store database encryption keys. HsmConfiguration *HsmConfiguration `type:"structure"` + + metadataCreateHsmConfigurationOutput `json:"-" xml:"-"` +} + +type metadataCreateHsmConfigurationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3777,8 +3542,6 @@ func (s CreateHsmConfigurationOutput) GoString() string { // The result of the CreateSnapshotCopyGrant action. type CreateSnapshotCopyGrantInput struct { - _ struct{} `type:"structure"` - // The unique identifier of the customer master key (CMK) to which to grant // Amazon Redshift permission. If no key is specified, the default key is used. KmsKeyId *string `type:"string"` @@ -3796,6 +3559,12 @@ type CreateSnapshotCopyGrantInput struct { // A list of tag instances. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataCreateSnapshotCopyGrantInput `json:"-" xml:"-"` +} + +type metadataCreateSnapshotCopyGrantInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3808,22 +3577,7 @@ func (s CreateSnapshotCopyGrantInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSnapshotCopyGrantInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotCopyGrantInput"} - if s.SnapshotCopyGrantName == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotCopyGrantName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateSnapshotCopyGrantOutput struct { - _ struct{} `type:"structure"` - // The snapshot copy grant that grants Amazon Redshift permission to encrypt // copied snapshots with the specified customer master key (CMK) from AWS KMS // in the destination region. @@ -3832,6 +3586,12 @@ type CreateSnapshotCopyGrantOutput struct { // Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. SnapshotCopyGrant *SnapshotCopyGrant `type:"structure"` + + metadataCreateSnapshotCopyGrantOutput `json:"-" xml:"-"` +} + +type metadataCreateSnapshotCopyGrantOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3846,8 +3606,6 @@ func (s CreateSnapshotCopyGrantOutput) GoString() string { // Contains the output from the CreateTags action. type CreateTagsInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) to which you want to add the tag or tags. // For example, arn:aws:redshift:us-east-1:123456789:cluster:t1. ResourceName *string `type:"string" required:"true"` @@ -3858,6 +3616,12 @@ type CreateTagsInput struct { // by a comma (,). Separate multiple tags with a space. For example, --tags // "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0". Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"` + + metadataCreateTagsInput `json:"-" xml:"-"` +} + +type metadataCreateTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3870,24 +3634,12 @@ func (s CreateTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type CreateTagsOutput struct { + metadataCreateTagsOutput `json:"-" xml:"-"` } -type CreateTagsOutput struct { - _ struct{} `type:"structure"` +type metadataCreateTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3902,8 +3654,6 @@ func (s CreateTagsOutput) GoString() string { // Describes the default cluster parameters for a parameter group family. type DefaultClusterParameters struct { - _ struct{} `type:"structure"` - // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve // the next set of records by providing this returned marker value in the Marker @@ -3917,6 +3667,12 @@ type DefaultClusterParameters struct { // The list of cluster default parameters. Parameters []*Parameter `locationNameList:"Parameter" type:"list"` + + metadataDefaultClusterParameters `json:"-" xml:"-"` +} + +type metadataDefaultClusterParameters struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3930,8 +3686,6 @@ func (s DefaultClusterParameters) GoString() string { } type DeleteClusterInput struct { - _ struct{} `type:"structure"` - // The identifier of the cluster to be deleted. // // Constraints: @@ -3958,6 +3712,12 @@ type DeleteClusterInput struct { // The FinalClusterSnapshotIdentifier parameter must be specified if SkipFinalClusterSnapshot // is false. Default: false SkipFinalClusterSnapshot *bool `type:"boolean"` + + metadataDeleteClusterInput `json:"-" xml:"-"` +} + +type metadataDeleteClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3970,24 +3730,15 @@ func (s DeleteClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteClusterInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteClusterOutput struct { - _ struct{} `type:"structure"` - // Describes a cluster. Cluster *Cluster `type:"structure"` + + metadataDeleteClusterOutput `json:"-" xml:"-"` +} + +type metadataDeleteClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4001,8 +3752,6 @@ func (s DeleteClusterOutput) GoString() string { } type DeleteClusterParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the parameter group to be deleted. // // Constraints: @@ -4010,6 +3759,12 @@ type DeleteClusterParameterGroupInput struct { // Must be the name of an existing cluster parameter group. Cannot delete // a default cluster parameter group. ParameterGroupName *string `type:"string" required:"true"` + + metadataDeleteClusterParameterGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteClusterParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4022,21 +3777,12 @@ func (s DeleteClusterParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteClusterParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteClusterParameterGroupInput"} - if s.ParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteClusterParameterGroupOutput struct { + metadataDeleteClusterParameterGroupOutput `json:"-" xml:"-"` } -type DeleteClusterParameterGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteClusterParameterGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4050,10 +3796,14 @@ func (s DeleteClusterParameterGroupOutput) GoString() string { } type DeleteClusterSecurityGroupInput struct { - _ struct{} `type:"structure"` - // The name of the cluster security group to be deleted. ClusterSecurityGroupName *string `type:"string" required:"true"` + + metadataDeleteClusterSecurityGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteClusterSecurityGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4066,21 +3816,12 @@ func (s DeleteClusterSecurityGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteClusterSecurityGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteClusterSecurityGroupInput"} - if s.ClusterSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterSecurityGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteClusterSecurityGroupOutput struct { + metadataDeleteClusterSecurityGroupOutput `json:"-" xml:"-"` } -type DeleteClusterSecurityGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteClusterSecurityGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4094,8 +3835,6 @@ func (s DeleteClusterSecurityGroupOutput) GoString() string { } type DeleteClusterSnapshotInput struct { - _ struct{} `type:"structure"` - // The unique identifier of the cluster the snapshot was created from. This // parameter is required if your IAM user has a policy containing a snapshot // resource element that specifies anything other than * for the cluster name. @@ -4108,6 +3847,12 @@ type DeleteClusterSnapshotInput struct { // Constraints: Must be the name of an existing snapshot that is in the available // state. SnapshotIdentifier *string `type:"string" required:"true"` + + metadataDeleteClusterSnapshotInput `json:"-" xml:"-"` +} + +type metadataDeleteClusterSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4120,24 +3865,15 @@ func (s DeleteClusterSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteClusterSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteClusterSnapshotInput"} - if s.SnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteClusterSnapshotOutput struct { - _ struct{} `type:"structure"` - // Describes a snapshot. Snapshot *Snapshot `type:"structure"` + + metadataDeleteClusterSnapshotOutput `json:"-" xml:"-"` +} + +type metadataDeleteClusterSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4151,10 +3887,14 @@ func (s DeleteClusterSnapshotOutput) GoString() string { } type DeleteClusterSubnetGroupInput struct { - _ struct{} `type:"structure"` - // The name of the cluster subnet group name to be deleted. ClusterSubnetGroupName *string `type:"string" required:"true"` + + metadataDeleteClusterSubnetGroupInput `json:"-" xml:"-"` +} + +type metadataDeleteClusterSubnetGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4167,21 +3907,12 @@ func (s DeleteClusterSubnetGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteClusterSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteClusterSubnetGroupInput"} - if s.ClusterSubnetGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterSubnetGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteClusterSubnetGroupOutput struct { + metadataDeleteClusterSubnetGroupOutput `json:"-" xml:"-"` } -type DeleteClusterSubnetGroupOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteClusterSubnetGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4195,10 +3926,14 @@ func (s DeleteClusterSubnetGroupOutput) GoString() string { } type DeleteEventSubscriptionInput struct { - _ struct{} `type:"structure"` - // The name of the Amazon Redshift event notification subscription to be deleted. SubscriptionName *string `type:"string" required:"true"` + + metadataDeleteEventSubscriptionInput `json:"-" xml:"-"` +} + +type metadataDeleteEventSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4211,21 +3946,12 @@ func (s DeleteEventSubscriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEventSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEventSubscriptionInput"} - if s.SubscriptionName == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteEventSubscriptionOutput struct { + metadataDeleteEventSubscriptionOutput `json:"-" xml:"-"` } -type DeleteEventSubscriptionOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteEventSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4239,10 +3965,14 @@ func (s DeleteEventSubscriptionOutput) GoString() string { } type DeleteHsmClientCertificateInput struct { - _ struct{} `type:"structure"` - // The identifier of the HSM client certificate to be deleted. HsmClientCertificateIdentifier *string `type:"string" required:"true"` + + metadataDeleteHsmClientCertificateInput `json:"-" xml:"-"` +} + +type metadataDeleteHsmClientCertificateInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4255,21 +3985,12 @@ func (s DeleteHsmClientCertificateInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteHsmClientCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteHsmClientCertificateInput"} - if s.HsmClientCertificateIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("HsmClientCertificateIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteHsmClientCertificateOutput struct { + metadataDeleteHsmClientCertificateOutput `json:"-" xml:"-"` } -type DeleteHsmClientCertificateOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteHsmClientCertificateOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4283,10 +4004,14 @@ func (s DeleteHsmClientCertificateOutput) GoString() string { } type DeleteHsmConfigurationInput struct { - _ struct{} `type:"structure"` - // The identifier of the Amazon Redshift HSM configuration to be deleted. HsmConfigurationIdentifier *string `type:"string" required:"true"` + + metadataDeleteHsmConfigurationInput `json:"-" xml:"-"` +} + +type metadataDeleteHsmConfigurationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4299,21 +4024,12 @@ func (s DeleteHsmConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteHsmConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteHsmConfigurationInput"} - if s.HsmConfigurationIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("HsmConfigurationIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteHsmConfigurationOutput struct { + metadataDeleteHsmConfigurationOutput `json:"-" xml:"-"` } -type DeleteHsmConfigurationOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteHsmConfigurationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4328,10 +4044,14 @@ func (s DeleteHsmConfigurationOutput) GoString() string { // The result of the DeleteSnapshotCopyGrant action. type DeleteSnapshotCopyGrantInput struct { - _ struct{} `type:"structure"` - // The name of the snapshot copy grant to delete. SnapshotCopyGrantName *string `type:"string" required:"true"` + + metadataDeleteSnapshotCopyGrantInput `json:"-" xml:"-"` +} + +type metadataDeleteSnapshotCopyGrantInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4344,21 +4064,12 @@ func (s DeleteSnapshotCopyGrantInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSnapshotCopyGrantInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotCopyGrantInput"} - if s.SnapshotCopyGrantName == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotCopyGrantName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteSnapshotCopyGrantOutput struct { + metadataDeleteSnapshotCopyGrantOutput `json:"-" xml:"-"` } -type DeleteSnapshotCopyGrantOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteSnapshotCopyGrantOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4373,14 +4084,18 @@ func (s DeleteSnapshotCopyGrantOutput) GoString() string { // Contains the output from the DeleteTags action. type DeleteTagsInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) from which you want to remove the tag or tags. // For example, arn:aws:redshift:us-east-1:123456789:cluster:t1. ResourceName *string `type:"string" required:"true"` // The tag key that you want to delete. TagKeys []*string `locationNameList:"TagKey" type:"list" required:"true"` + + metadataDeleteTagsInput `json:"-" xml:"-"` +} + +type metadataDeleteTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4393,24 +4108,12 @@ func (s DeleteTagsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteTagsOutput struct { + metadataDeleteTagsOutput `json:"-" xml:"-"` } -type DeleteTagsOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4424,8 +4127,6 @@ func (s DeleteTagsOutput) GoString() string { } type DescribeClusterParameterGroupsInput struct { - _ struct{} `type:"structure"` - // An optional parameter that specifies the starting point to return a set of // response records. When the results of a DescribeClusterParameterGroups request // exceed the value specified in MaxRecords, AWS returns a value in the Marker @@ -4463,6 +4164,12 @@ type DescribeClusterParameterGroupsInput struct { // Redshift returns a response with the parameter groups that have either or // both of these tag values associated with them. TagValues []*string `locationNameList:"TagValue" type:"list"` + + metadataDescribeClusterParameterGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeClusterParameterGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4477,8 +4184,6 @@ func (s DescribeClusterParameterGroupsInput) GoString() string { // Contains the output from the DescribeClusterParameterGroups action. type DescribeClusterParameterGroupsOutput struct { - _ struct{} `type:"structure"` - // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve // the next set of records by providing this returned marker value in the Marker @@ -4489,6 +4194,12 @@ type DescribeClusterParameterGroupsOutput struct { // A list of ClusterParameterGroup instances. Each instance describes one cluster // parameter group. ParameterGroups []*ClusterParameterGroup `locationNameList:"ClusterParameterGroup" type:"list"` + + metadataDescribeClusterParameterGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeClusterParameterGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4502,8 +4213,6 @@ func (s DescribeClusterParameterGroupsOutput) GoString() string { } type DescribeClusterParametersInput struct { - _ struct{} `type:"structure"` - // An optional parameter that specifies the starting point to return a set of // response records. When the results of a DescribeClusterParameters request // exceed the value specified in MaxRecords, AWS returns a value in the Marker @@ -4533,6 +4242,12 @@ type DescribeClusterParametersInput struct { // // Valid Values: user | engine-default Source *string `type:"string"` + + metadataDescribeClusterParametersInput `json:"-" xml:"-"` +} + +type metadataDescribeClusterParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4545,23 +4260,8 @@ func (s DescribeClusterParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeClusterParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeClusterParametersInput"} - if s.ParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the output from the DescribeClusterParameters action. type DescribeClusterParametersOutput struct { - _ struct{} `type:"structure"` - // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve // the next set of records by providing this returned marker value in the Marker @@ -4572,6 +4272,12 @@ type DescribeClusterParametersOutput struct { // A list of Parameter instances. Each instance lists the parameters of one // cluster parameter group. Parameters []*Parameter `locationNameList:"Parameter" type:"list"` + + metadataDescribeClusterParametersOutput `json:"-" xml:"-"` +} + +type metadataDescribeClusterParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4584,9 +4290,8 @@ func (s DescribeClusterParametersOutput) GoString() string { return s.String() } +// ??? type DescribeClusterSecurityGroupsInput struct { - _ struct{} `type:"structure"` - // The name of a cluster security group for which you are requesting details. // You can specify either the Marker parameter or a ClusterSecurityGroupName // parameter, but not both. @@ -4630,6 +4335,12 @@ type DescribeClusterSecurityGroupsInput struct { // Redshift returns a response with the security groups that have either or // both of these tag values associated with them. TagValues []*string `locationNameList:"TagValue" type:"list"` + + metadataDescribeClusterSecurityGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeClusterSecurityGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4642,9 +4353,8 @@ func (s DescribeClusterSecurityGroupsInput) GoString() string { return s.String() } +// Contains the output from the DescribeClusterSecurityGroups action. type DescribeClusterSecurityGroupsOutput struct { - _ struct{} `type:"structure"` - // A list of ClusterSecurityGroup instances. ClusterSecurityGroups []*ClusterSecurityGroup `locationNameList:"ClusterSecurityGroup" type:"list"` @@ -4654,6 +4364,12 @@ type DescribeClusterSecurityGroupsOutput struct { // parameter and retrying the command. If the Marker field is empty, all response // records have been retrieved for the request. Marker *string `type:"string"` + + metadataDescribeClusterSecurityGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeClusterSecurityGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4667,8 +4383,6 @@ func (s DescribeClusterSecurityGroupsOutput) GoString() string { } type DescribeClusterSnapshotsInput struct { - _ struct{} `type:"structure"` - // The identifier of the cluster for which information about snapshots is requested. ClusterIdentifier *string `type:"string"` @@ -4734,6 +4448,12 @@ type DescribeClusterSnapshotsInput struct { // Redshift returns a response with the snapshots that have either or both of // these tag values associated with them. TagValues []*string `locationNameList:"TagValue" type:"list"` + + metadataDescribeClusterSnapshotsInput `json:"-" xml:"-"` +} + +type metadataDescribeClusterSnapshotsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4748,8 +4468,6 @@ func (s DescribeClusterSnapshotsInput) GoString() string { // Contains the output from the DescribeClusterSnapshots action. type DescribeClusterSnapshotsOutput struct { - _ struct{} `type:"structure"` - // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve // the next set of records by providing this returned marker value in the Marker @@ -4759,6 +4477,12 @@ type DescribeClusterSnapshotsOutput struct { // A list of Snapshot instances. Snapshots []*Snapshot `locationNameList:"Snapshot" type:"list"` + + metadataDescribeClusterSnapshotsOutput `json:"-" xml:"-"` +} + +type metadataDescribeClusterSnapshotsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4772,8 +4496,6 @@ func (s DescribeClusterSnapshotsOutput) GoString() string { } type DescribeClusterSubnetGroupsInput struct { - _ struct{} `type:"structure"` - // The name of the cluster subnet group for which information is requested. ClusterSubnetGroupName *string `type:"string"` @@ -4810,6 +4532,12 @@ type DescribeClusterSubnetGroupsInput struct { // Redshift returns a response with the subnet groups that have either or both // of these tag values associated with them. TagValues []*string `locationNameList:"TagValue" type:"list"` + + metadataDescribeClusterSubnetGroupsInput `json:"-" xml:"-"` +} + +type metadataDescribeClusterSubnetGroupsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4824,8 +4552,6 @@ func (s DescribeClusterSubnetGroupsInput) GoString() string { // Contains the output from the DescribeClusterSubnetGroups action. type DescribeClusterSubnetGroupsOutput struct { - _ struct{} `type:"structure"` - // A list of ClusterSubnetGroup instances. ClusterSubnetGroups []*ClusterSubnetGroup `locationNameList:"ClusterSubnetGroup" type:"list"` @@ -4835,6 +4561,12 @@ type DescribeClusterSubnetGroupsOutput struct { // parameter and retrying the command. If the Marker field is empty, all response // records have been retrieved for the request. Marker *string `type:"string"` + + metadataDescribeClusterSubnetGroupsOutput `json:"-" xml:"-"` +} + +type metadataDescribeClusterSubnetGroupsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4848,8 +4580,6 @@ func (s DescribeClusterSubnetGroupsOutput) GoString() string { } type DescribeClusterVersionsInput struct { - _ struct{} `type:"structure"` - // The name of a specific cluster parameter group family to return details for. // // Constraints: @@ -4879,6 +4609,12 @@ type DescribeClusterVersionsInput struct { // // Constraints: minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + metadataDescribeClusterVersionsInput `json:"-" xml:"-"` +} + +type metadataDescribeClusterVersionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4893,8 +4629,6 @@ func (s DescribeClusterVersionsInput) GoString() string { // Contains the output from the DescribeClusterVersions action. type DescribeClusterVersionsOutput struct { - _ struct{} `type:"structure"` - // A list of Version elements. ClusterVersions []*ClusterVersion `locationNameList:"ClusterVersion" type:"list"` @@ -4904,6 +4638,12 @@ type DescribeClusterVersionsOutput struct { // parameter and retrying the command. If the Marker field is empty, all response // records have been retrieved for the request. Marker *string `type:"string"` + + metadataDescribeClusterVersionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeClusterVersionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4917,8 +4657,6 @@ func (s DescribeClusterVersionsOutput) GoString() string { } type DescribeClustersInput struct { - _ struct{} `type:"structure"` - // The unique identifier of a cluster whose properties you are requesting. This // parameter is case sensitive. // @@ -4960,6 +4698,12 @@ type DescribeClustersInput struct { // returns a response with the clusters that have either or both of these tag // values associated with them. TagValues []*string `locationNameList:"TagValue" type:"list"` + + metadataDescribeClustersInput `json:"-" xml:"-"` +} + +type metadataDescribeClustersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4974,8 +4718,6 @@ func (s DescribeClustersInput) GoString() string { // Contains the output from the DescribeClusters action. type DescribeClustersOutput struct { - _ struct{} `type:"structure"` - // A list of Cluster objects, where each object describes one cluster. Clusters []*Cluster `locationNameList:"Cluster" type:"list"` @@ -4985,6 +4727,12 @@ type DescribeClustersOutput struct { // parameter and retrying the command. If the Marker field is empty, all response // records have been retrieved for the request. Marker *string `type:"string"` + + metadataDescribeClustersOutput `json:"-" xml:"-"` +} + +type metadataDescribeClustersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4998,8 +4746,6 @@ func (s DescribeClustersOutput) GoString() string { } type DescribeDefaultClusterParametersInput struct { - _ struct{} `type:"structure"` - // An optional parameter that specifies the starting point to return a set of // response records. When the results of a DescribeDefaultClusterParameters // request exceed the value specified in MaxRecords, AWS returns a value in @@ -5020,6 +4766,12 @@ type DescribeDefaultClusterParametersInput struct { // The name of the cluster parameter group family. ParameterGroupFamily *string `type:"string" required:"true"` + + metadataDescribeDefaultClusterParametersInput `json:"-" xml:"-"` +} + +type metadataDescribeDefaultClusterParametersInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5032,24 +4784,15 @@ func (s DescribeDefaultClusterParametersInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDefaultClusterParametersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDefaultClusterParametersInput"} - if s.ParameterGroupFamily == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterGroupFamily")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeDefaultClusterParametersOutput struct { - _ struct{} `type:"structure"` - // Describes the default cluster parameters for a parameter group family. DefaultClusterParameters *DefaultClusterParameters `type:"structure"` + + metadataDescribeDefaultClusterParametersOutput `json:"-" xml:"-"` +} + +type metadataDescribeDefaultClusterParametersOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5063,13 +4806,17 @@ func (s DescribeDefaultClusterParametersOutput) GoString() string { } type DescribeEventCategoriesInput struct { - _ struct{} `type:"structure"` - // The source type, such as cluster or parameter group, to which the described // event categories apply. // - // Valid values: cluster, cluster-snapshot, cluster-parameter-group, and cluster-security-group. + // Valid values: cluster, snapshot, parameter group, and security group. SourceType *string `type:"string"` + + metadataDescribeEventCategoriesInput `json:"-" xml:"-"` +} + +type metadataDescribeEventCategoriesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5083,10 +4830,14 @@ func (s DescribeEventCategoriesInput) GoString() string { } type DescribeEventCategoriesOutput struct { - _ struct{} `type:"structure"` - // A list of event categories descriptions. EventCategoriesMapList []*EventCategoriesMap `locationNameList:"EventCategoriesMap" type:"list"` + + metadataDescribeEventCategoriesOutput `json:"-" xml:"-"` +} + +type metadataDescribeEventCategoriesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5100,8 +4851,6 @@ func (s DescribeEventCategoriesOutput) GoString() string { } type DescribeEventSubscriptionsInput struct { - _ struct{} `type:"structure"` - // An optional parameter that specifies the starting point to return a set of // response records. When the results of a DescribeEventSubscriptions request // exceed the value specified in MaxRecords, AWS returns a value in the Marker @@ -5122,6 +4871,12 @@ type DescribeEventSubscriptionsInput struct { // The name of the Amazon Redshift event notification subscription to be described. SubscriptionName *string `type:"string"` + + metadataDescribeEventSubscriptionsInput `json:"-" xml:"-"` +} + +type metadataDescribeEventSubscriptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5135,8 +4890,6 @@ func (s DescribeEventSubscriptionsInput) GoString() string { } type DescribeEventSubscriptionsOutput struct { - _ struct{} `type:"structure"` - // A list of event subscriptions. EventSubscriptionsList []*EventSubscription `locationNameList:"EventSubscription" type:"list"` @@ -5146,6 +4899,12 @@ type DescribeEventSubscriptionsOutput struct { // parameter and retrying the command. If the Marker field is empty, all response // records have been retrieved for the request. Marker *string `type:"string"` + + metadataDescribeEventSubscriptionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeEventSubscriptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5159,8 +4918,6 @@ func (s DescribeEventSubscriptionsOutput) GoString() string { } type DescribeEventsInput struct { - _ struct{} `type:"structure"` - // The number of minutes prior to the time of the request for which to retrieve // events. For example, if the request is sent at 18:00 and you specify a duration // of 60, then only events which have occurred after 17:00 will be returned. @@ -5225,6 +4982,12 @@ type DescribeEventsInput struct { // // Example: 2009-07-08T18:00Z StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataDescribeEventsInput `json:"-" xml:"-"` +} + +type metadataDescribeEventsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5237,9 +5000,8 @@ func (s DescribeEventsInput) GoString() string { return s.String() } +// Contains the output from the DescribeEvents action. type DescribeEventsOutput struct { - _ struct{} `type:"structure"` - // A list of Event instances. Events []*Event `locationNameList:"Event" type:"list"` @@ -5249,6 +5011,12 @@ type DescribeEventsOutput struct { // parameter and retrying the command. If the Marker field is empty, all response // records have been retrieved for the request. Marker *string `type:"string"` + + metadataDescribeEventsOutput `json:"-" xml:"-"` +} + +type metadataDescribeEventsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5262,8 +5030,6 @@ func (s DescribeEventsOutput) GoString() string { } type DescribeHsmClientCertificatesInput struct { - _ struct{} `type:"structure"` - // The identifier of a specific HSM client certificate for which you want information. // If no identifier is specified, information is returned for all HSM client // certificates owned by your AWS customer account. @@ -5302,6 +5068,12 @@ type DescribeHsmClientCertificatesInput struct { // in the request, Amazon Redshift returns a response with the HSM client certificates // that have either or both of these tag values associated with them. TagValues []*string `locationNameList:"TagValue" type:"list"` + + metadataDescribeHsmClientCertificatesInput `json:"-" xml:"-"` +} + +type metadataDescribeHsmClientCertificatesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5315,8 +5087,6 @@ func (s DescribeHsmClientCertificatesInput) GoString() string { } type DescribeHsmClientCertificatesOutput struct { - _ struct{} `type:"structure"` - // A list of the identifiers for one or more HSM client certificates used by // Amazon Redshift clusters to store and retrieve database encryption keys in // an HSM. @@ -5328,6 +5098,12 @@ type DescribeHsmClientCertificatesOutput struct { // parameter and retrying the command. If the Marker field is empty, all response // records have been retrieved for the request. Marker *string `type:"string"` + + metadataDescribeHsmClientCertificatesOutput `json:"-" xml:"-"` +} + +type metadataDescribeHsmClientCertificatesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5341,8 +5117,6 @@ func (s DescribeHsmClientCertificatesOutput) GoString() string { } type DescribeHsmConfigurationsInput struct { - _ struct{} `type:"structure"` - // The identifier of a specific Amazon Redshift HSM configuration to be described. // If no identifier is specified, information is returned for all HSM configurations // owned by your AWS customer account. @@ -5381,6 +5155,12 @@ type DescribeHsmConfigurationsInput struct { // Redshift returns a response with the HSM configurations that have either // or both of these tag values associated with them. TagValues []*string `locationNameList:"TagValue" type:"list"` + + metadataDescribeHsmConfigurationsInput `json:"-" xml:"-"` +} + +type metadataDescribeHsmConfigurationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5394,9 +5174,7 @@ func (s DescribeHsmConfigurationsInput) GoString() string { } type DescribeHsmConfigurationsOutput struct { - _ struct{} `type:"structure"` - - // A list of HsmConfiguration objects. + // A list of Amazon Redshift HSM configurations. HsmConfigurations []*HsmConfiguration `locationNameList:"HsmConfiguration" type:"list"` // A value that indicates the starting point for the next set of response records @@ -5405,6 +5183,12 @@ type DescribeHsmConfigurationsOutput struct { // parameter and retrying the command. If the Marker field is empty, all response // records have been retrieved for the request. Marker *string `type:"string"` + + metadataDescribeHsmConfigurationsOutput `json:"-" xml:"-"` +} + +type metadataDescribeHsmConfigurationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5418,12 +5202,16 @@ func (s DescribeHsmConfigurationsOutput) GoString() string { } type DescribeLoggingStatusInput struct { - _ struct{} `type:"structure"` - - // The identifier of the cluster from which to get the logging status. + // The identifier of the cluster to get the logging status from. // // Example: examplecluster ClusterIdentifier *string `type:"string" required:"true"` + + metadataDescribeLoggingStatusInput `json:"-" xml:"-"` +} + +type metadataDescribeLoggingStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5436,22 +5224,7 @@ func (s DescribeLoggingStatusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeLoggingStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeLoggingStatusInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeOrderableClusterOptionsInput struct { - _ struct{} `type:"structure"` - // The version filter value. Specify this parameter to show only the available // offerings matching the specified version. // @@ -5481,6 +5254,12 @@ type DescribeOrderableClusterOptionsInput struct { // The node type filter value. Specify this parameter to show only the available // offerings matching the specified node type. NodeType *string `type:"string"` + + metadataDescribeOrderableClusterOptionsInput `json:"-" xml:"-"` +} + +type metadataDescribeOrderableClusterOptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5495,8 +5274,6 @@ func (s DescribeOrderableClusterOptionsInput) GoString() string { // Contains the output from the DescribeOrderableClusterOptions action. type DescribeOrderableClusterOptionsOutput struct { - _ struct{} `type:"structure"` - // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve // the next set of records by providing this returned marker value in the Marker @@ -5505,8 +5282,14 @@ type DescribeOrderableClusterOptionsOutput struct { Marker *string `type:"string"` // An OrderableClusterOption structure containing information about orderable - // options for the cluster. + // options for the Cluster. OrderableClusterOptions []*OrderableClusterOption `locationNameList:"OrderableClusterOption" type:"list"` + + metadataDescribeOrderableClusterOptionsOutput `json:"-" xml:"-"` +} + +type metadataDescribeOrderableClusterOptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5520,8 +5303,6 @@ func (s DescribeOrderableClusterOptionsOutput) GoString() string { } type DescribeReservedNodeOfferingsInput struct { - _ struct{} `type:"structure"` - // An optional parameter that specifies the starting point to return a set of // response records. When the results of a DescribeReservedNodeOfferings request // exceed the value specified in MaxRecords, AWS returns a value in the Marker @@ -5542,6 +5323,12 @@ type DescribeReservedNodeOfferingsInput struct { // The unique identifier for the offering. ReservedNodeOfferingId *string `type:"string"` + + metadataDescribeReservedNodeOfferingsInput `json:"-" xml:"-"` +} + +type metadataDescribeReservedNodeOfferingsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5554,9 +5341,8 @@ func (s DescribeReservedNodeOfferingsInput) GoString() string { return s.String() } +// Contains the output from the DescribeReservedNodeOfferings action. type DescribeReservedNodeOfferingsOutput struct { - _ struct{} `type:"structure"` - // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve // the next set of records by providing this returned marker value in the Marker @@ -5564,8 +5350,14 @@ type DescribeReservedNodeOfferingsOutput struct { // records have been retrieved for the request. Marker *string `type:"string"` - // A list of ReservedNodeOffering objects. + // A list of reserved node offerings. ReservedNodeOfferings []*ReservedNodeOffering `locationNameList:"ReservedNodeOffering" type:"list"` + + metadataDescribeReservedNodeOfferingsOutput `json:"-" xml:"-"` +} + +type metadataDescribeReservedNodeOfferingsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5579,8 +5371,6 @@ func (s DescribeReservedNodeOfferingsOutput) GoString() string { } type DescribeReservedNodesInput struct { - _ struct{} `type:"structure"` - // An optional parameter that specifies the starting point to return a set of // response records. When the results of a DescribeReservedNodes request exceed // the value specified in MaxRecords, AWS returns a value in the Marker field @@ -5600,6 +5390,12 @@ type DescribeReservedNodesInput struct { // Identifier for the node reservation. ReservedNodeId *string `type:"string"` + + metadataDescribeReservedNodesInput `json:"-" xml:"-"` +} + +type metadataDescribeReservedNodesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5612,9 +5408,8 @@ func (s DescribeReservedNodesInput) GoString() string { return s.String() } +// Contains the output from the DescribeReservedNodes action. type DescribeReservedNodesOutput struct { - _ struct{} `type:"structure"` - // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve // the next set of records by providing this returned marker value in the Marker @@ -5622,8 +5417,14 @@ type DescribeReservedNodesOutput struct { // records have been retrieved for the request. Marker *string `type:"string"` - // The list of ReservedNode objects. + // The list of reserved nodes. ReservedNodes []*ReservedNode `locationNameList:"ReservedNode" type:"list"` + + metadataDescribeReservedNodesOutput `json:"-" xml:"-"` +} + +type metadataDescribeReservedNodesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5637,14 +5438,18 @@ func (s DescribeReservedNodesOutput) GoString() string { } type DescribeResizeInput struct { - _ struct{} `type:"structure"` - // The unique identifier of a cluster whose resize progress you are requesting. // This parameter is case-sensitive. // // By default, resize operations for all clusters defined for an AWS account // are returned. ClusterIdentifier *string `type:"string" required:"true"` + + metadataDescribeResizeInput `json:"-" xml:"-"` +} + +type metadataDescribeResizeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5657,23 +5462,8 @@ func (s DescribeResizeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeResizeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeResizeInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes the result of a cluster resize operation. type DescribeResizeOutput struct { - _ struct{} `type:"structure"` - // The average rate of the resize operation over the last few minutes, measured // in megabytes per second. After the resize operation completes, this value // shows the average rate of the entire resize operation. @@ -5732,6 +5522,12 @@ type DescribeResizeOutput struct { // The estimated total amount of data, in megabytes, on the cluster before the // resize operation began. TotalResizeDataInMegaBytes *int64 `type:"long"` + + metadataDescribeResizeOutput `json:"-" xml:"-"` +} + +type metadataDescribeResizeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5746,8 +5542,6 @@ func (s DescribeResizeOutput) GoString() string { // The result of the DescribeSnapshotCopyGrants action. type DescribeSnapshotCopyGrantsInput struct { - _ struct{} `type:"structure"` - // An optional parameter that specifies the starting point to return a set of // response records. When the results of a DescribeSnapshotCopyGrant request // exceed the value specified in MaxRecords, AWS returns a value in the Marker @@ -5787,6 +5581,12 @@ type DescribeSnapshotCopyGrantsInput struct { // a response with all resources that have either or both of these tag values // associated with them. TagValues []*string `locationNameList:"TagValue" type:"list"` + + metadataDescribeSnapshotCopyGrantsInput `json:"-" xml:"-"` +} + +type metadataDescribeSnapshotCopyGrantsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5799,9 +5599,8 @@ func (s DescribeSnapshotCopyGrantsInput) GoString() string { return s.String() } +// The result of the snapshot copy grant. type DescribeSnapshotCopyGrantsOutput struct { - _ struct{} `type:"structure"` - // An optional parameter that specifies the starting point to return a set of // response records. When the results of a DescribeSnapshotCopyGrant request // exceed the value specified in MaxRecords, AWS returns a value in the Marker @@ -5813,76 +5612,28 @@ type DescribeSnapshotCopyGrantsOutput struct { // or the Marker parameter, but not both. Marker *string `type:"string"` - // The list of SnapshotCopyGrant objects. + // The list of snapshot copy grants. SnapshotCopyGrants []*SnapshotCopyGrant `locationNameList:"SnapshotCopyGrant" type:"list"` -} - -// String returns the string representation -func (s DescribeSnapshotCopyGrantsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeSnapshotCopyGrantsOutput) GoString() string { - return s.String() -} - -type DescribeTableRestoreStatusInput struct { - _ struct{} `type:"structure"` - - // The Amazon Redshift cluster that the table is being restored to. - ClusterIdentifier *string `type:"string"` - - // An optional pagination token provided by a previous DescribeTableRestoreStatus - // request. If this parameter is specified, the response includes only records - // beyond the marker, up to the value specified by the MaxRecords parameter. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - MaxRecords *int64 `type:"integer"` - // The identifier of the table restore request to return status for. If you - // don't specify a TableRestoreRequestId value, then DescribeTableRestoreStatus - // returns the status of all in-progress table restore requests. - TableRestoreRequestId *string `type:"string"` + metadataDescribeSnapshotCopyGrantsOutput `json:"-" xml:"-"` } -// String returns the string representation -func (s DescribeTableRestoreStatusInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeTableRestoreStatusInput) GoString() string { - return s.String() -} - -type DescribeTableRestoreStatusOutput struct { - _ struct{} `type:"structure"` - - // A pagination token that can be used in a subsequent DescribeTableRestoreStatus - // request. - Marker *string `type:"string"` - - // A list of status details for one or more table restore requests. - TableRestoreStatusDetails []*TableRestoreStatus `locationNameList:"TableRestoreStatus" type:"list"` +type metadataDescribeSnapshotCopyGrantsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeTableRestoreStatusOutput) String() string { +func (s DescribeSnapshotCopyGrantsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeTableRestoreStatusOutput) GoString() string { +func (s DescribeSnapshotCopyGrantsOutput) GoString() string { return s.String() } +// Contains the output from the DescribeTags action. type DescribeTagsInput struct { - _ struct{} `type:"structure"` - // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve // the next set of records by providing this returned marker value in the marker @@ -5925,6 +5676,12 @@ type DescribeTagsInput struct { // a response with all resources that have either or both of these tag values // associated with them. TagValues []*string `locationNameList:"TagValue" type:"list"` + + metadataDescribeTagsInput `json:"-" xml:"-"` +} + +type metadataDescribeTagsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5937,9 +5694,8 @@ func (s DescribeTagsInput) GoString() string { return s.String() } +// Contains the output from the DescribeTags action. type DescribeTagsOutput struct { - _ struct{} `type:"structure"` - // A value that indicates the starting point for the next set of response records // in a subsequent request. If a value is returned in a response, you can retrieve // the next set of records by providing this returned marker value in the Marker @@ -5949,6 +5705,12 @@ type DescribeTagsOutput struct { // A list of tags with their associated resources. TaggedResources []*TaggedResource `locationNameList:"TaggedResource" type:"list"` + + metadataDescribeTagsOutput `json:"-" xml:"-"` +} + +type metadataDescribeTagsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5962,12 +5724,16 @@ func (s DescribeTagsOutput) GoString() string { } type DisableLoggingInput struct { - _ struct{} `type:"structure"` - // The identifier of the cluster on which logging is to be stopped. // // Example: examplecluster ClusterIdentifier *string `type:"string" required:"true"` + + metadataDisableLoggingInput `json:"-" xml:"-"` +} + +type metadataDisableLoggingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5980,28 +5746,19 @@ func (s DisableLoggingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableLoggingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableLoggingInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DisableSnapshotCopyInput struct { - _ struct{} `type:"structure"` - // The unique identifier of the source cluster that you want to disable copying // of snapshots to a destination region. // // Constraints: Must be the valid name of an existing cluster that has cross-region // snapshot copy enabled. ClusterIdentifier *string `type:"string" required:"true"` + + metadataDisableSnapshotCopyInput `json:"-" xml:"-"` +} + +type metadataDisableSnapshotCopyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6014,24 +5771,15 @@ func (s DisableSnapshotCopyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableSnapshotCopyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableSnapshotCopyInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DisableSnapshotCopyOutput struct { - _ struct{} `type:"structure"` - // Describes a cluster. Cluster *Cluster `type:"structure"` + + metadataDisableSnapshotCopyOutput `json:"-" xml:"-"` +} + +type metadataDisableSnapshotCopyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6046,8 +5794,6 @@ func (s DisableSnapshotCopyOutput) GoString() string { // Describes an Amazon EC2 security group. type EC2SecurityGroup struct { - _ struct{} `type:"structure"` - // The name of the EC2 Security Group. EC2SecurityGroupName *string `type:"string"` @@ -6060,6 +5806,12 @@ type EC2SecurityGroup struct { // The list of tags for the EC2 security group. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataEC2SecurityGroup `json:"-" xml:"-"` +} + +type metadataEC2SecurityGroup struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6074,13 +5826,17 @@ func (s EC2SecurityGroup) GoString() string { // Describes the status of the elastic IP (EIP) address. type ElasticIpStatus struct { - _ struct{} `type:"structure"` - // The elastic IP (EIP) address for the cluster. ElasticIp *string `type:"string"` - // The status of the elastic IP (EIP) address. + // Describes the status of the elastic IP (EIP) address. Status *string `type:"string"` + + metadataElasticIpStatus `json:"-" xml:"-"` +} + +type metadataElasticIpStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6094,8 +5850,6 @@ func (s ElasticIpStatus) GoString() string { } type EnableLoggingInput struct { - _ struct{} `type:"structure"` - // The name of an existing S3 bucket where the log files are to be stored. // // Constraints: @@ -6117,6 +5871,12 @@ type EnableLoggingInput struct { // single quotes ('), a backslash (\), or control characters. The hexadecimal // codes for invalid characters are: x00 to x20 x22 x27 x5c x7f or larger S3KeyPrefix *string `type:"string"` + + metadataEnableLoggingInput `json:"-" xml:"-"` +} + +type metadataEnableLoggingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6129,25 +5889,7 @@ func (s EnableLoggingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableLoggingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableLoggingInput"} - if s.BucketName == nil { - invalidParams.Add(request.NewErrParamRequired("BucketName")) - } - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type EnableSnapshotCopyInput struct { - _ struct{} `type:"structure"` - // The unique identifier of the source cluster to copy snapshots from. // // Constraints: Must be the valid name of an existing cluster that does not @@ -6172,6 +5914,12 @@ type EnableSnapshotCopyInput struct { // The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted // cluster are copied to the destination region. SnapshotCopyGrantName *string `type:"string"` + + metadataEnableSnapshotCopyInput `json:"-" xml:"-"` +} + +type metadataEnableSnapshotCopyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6184,27 +5932,15 @@ func (s EnableSnapshotCopyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableSnapshotCopyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableSnapshotCopyInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - if s.DestinationRegion == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationRegion")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type EnableSnapshotCopyOutput struct { - _ struct{} `type:"structure"` - // Describes a cluster. Cluster *Cluster `type:"structure"` + + metadataEnableSnapshotCopyOutput `json:"-" xml:"-"` +} + +type metadataEnableSnapshotCopyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6219,13 +5955,17 @@ func (s EnableSnapshotCopyOutput) GoString() string { // Describes a connection endpoint. type Endpoint struct { - _ struct{} `type:"structure"` - // The DNS address of the Cluster. Address *string `type:"string"` // The port that the database engine is listening on. Port *int64 `type:"integer"` + + metadataEndpoint `json:"-" xml:"-"` +} + +type metadataEndpoint struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6240,8 +5980,6 @@ func (s Endpoint) GoString() string { // Describes an event. type Event struct { - _ struct{} `type:"structure"` - // The date and time of the event. Date *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -6266,6 +6004,12 @@ type Event struct { // The source type for this event. SourceType *string `type:"string" enum:"SourceType"` + + metadataEvent `json:"-" xml:"-"` +} + +type metadataEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6278,16 +6022,19 @@ func (s Event) GoString() string { return s.String() } -// Describes event categories. type EventCategoriesMap struct { - _ struct{} `type:"structure"` - // The events in the event category. Events []*EventInfoMap `locationNameList:"EventInfoMap" type:"list"` - // The source type, such as cluster or cluster-snapshot, that the returned categories - // belong to. + // The Amazon Redshift source type, such as cluster or cluster-snapshot, that + // the returned categories belong to. SourceType *string `type:"string"` + + metadataEventCategoriesMap `json:"-" xml:"-"` +} + +type metadataEventCategoriesMap struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6300,10 +6047,7 @@ func (s EventCategoriesMap) GoString() string { return s.String() } -// Describes event information. type EventInfoMap struct { - _ struct{} `type:"structure"` - // The category of an Amazon Redshift event. EventCategories []*string `locationNameList:"EventCategory" type:"list"` @@ -6317,6 +6061,12 @@ type EventInfoMap struct { // // Values: ERROR, INFO Severity *string `type:"string"` + + metadataEventInfoMap `json:"-" xml:"-"` +} + +type metadataEventInfoMap struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6329,10 +6079,7 @@ func (s EventInfoMap) GoString() string { return s.String() } -// Describes event subscriptions. type EventSubscription struct { - _ struct{} `type:"structure"` - // The name of the Amazon Redshift event notification subscription. CustSubscriptionId *string `type:"string"` @@ -6383,6 +6130,12 @@ type EventSubscription struct { // The list of tags for the event subscription. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataEventSubscription `json:"-" xml:"-"` +} + +type metadataEventSubscription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6399,8 +6152,6 @@ func (s EventSubscription) GoString() string { // in a secure Hardware Storage Module (HSM), and used by the Amazon Redshift // cluster to encrypt data files. type HsmClientCertificate struct { - _ struct{} `type:"structure"` - // The identifier of the HSM client certificate. HsmClientCertificateIdentifier *string `type:"string"` @@ -6410,6 +6161,12 @@ type HsmClientCertificate struct { // The list of tags for the HSM client certificate. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataHsmClientCertificate `json:"-" xml:"-"` +} + +type metadataHsmClientCertificate struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6426,8 +6183,6 @@ func (s HsmClientCertificate) GoString() string { // to Amazon Redshift clusters the information they require to connect to an // HSM where they can store database encryption keys. type HsmConfiguration struct { - _ struct{} `type:"structure"` - // A text description of the HSM configuration. Description *string `type:"string"` @@ -6443,6 +6198,12 @@ type HsmConfiguration struct { // The list of tags for the HSM configuration. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataHsmConfiguration `json:"-" xml:"-"` +} + +type metadataHsmConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6455,10 +6216,7 @@ func (s HsmConfiguration) GoString() string { return s.String() } -// Describes the status of changes to HSM settings. type HsmStatus struct { - _ struct{} `type:"structure"` - // Specifies the name of the HSM client certificate the Amazon Redshift cluster // uses to retrieve the data encryption keys stored in an HSM. HsmClientCertificateIdentifier *string `type:"string"` @@ -6472,6 +6230,12 @@ type HsmStatus struct { // // Values: active, applying Status *string `type:"string"` + + metadataHsmStatus `json:"-" xml:"-"` +} + +type metadataHsmStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6486,8 +6250,6 @@ func (s HsmStatus) GoString() string { // Describes an IP range used in a security group. type IPRange struct { - _ struct{} `type:"structure"` - // The IP range in Classless Inter-Domain Routing (CIDR) notation. CIDRIP *string `type:"string"` @@ -6496,6 +6258,12 @@ type IPRange struct { // The list of tags for the IP range. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataIPRange `json:"-" xml:"-"` +} + +type metadataIPRange struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6510,8 +6278,6 @@ func (s IPRange) GoString() string { // Describes the status of logging for a cluster. type LoggingStatus struct { - _ struct{} `type:"structure"` - // The name of the S3 bucket where the log files are stored. BucketName *string `type:"string"` @@ -6521,7 +6287,7 @@ type LoggingStatus struct { // The last time when logs failed to be delivered. LastFailureTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The last time that logs were delivered. + // The last time when logs were delivered. LastSuccessfulDeliveryTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // true if logging is on, false if logging is off. @@ -6529,78 +6295,25 @@ type LoggingStatus struct { // The prefix applied to the log file names. S3KeyPrefix *string `type:"string"` -} - -// String returns the string representation -func (s LoggingStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s LoggingStatus) GoString() string { - return s.String() -} - -type ModifyClusterIamRolesInput struct { - _ struct{} `type:"structure"` - - // Zero or more IAM roles (in their ARN format) to associate with the cluster. - // You can associate up to 10 IAM roles with a single cluster in a single request. - AddIamRoles []*string `locationNameList:"IamRoleArn" type:"list"` - - // The unique identifier of the cluster for which you want to associate or disassociate - // IAM roles. - ClusterIdentifier *string `type:"string" required:"true"` - - // Zero or more IAM roles (in their ARN format) to disassociate from the cluster. - // You can disassociate up to 10 IAM roles from a single cluster in a single - // request. - RemoveIamRoles []*string `locationNameList:"IamRoleArn" type:"list"` -} - -// String returns the string representation -func (s ModifyClusterIamRolesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ModifyClusterIamRolesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyClusterIamRolesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyClusterIamRolesInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataLoggingStatus `json:"-" xml:"-"` } -type ModifyClusterIamRolesOutput struct { - _ struct{} `type:"structure"` - - // Describes a cluster. - Cluster *Cluster `type:"structure"` +type metadataLoggingStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ModifyClusterIamRolesOutput) String() string { +func (s LoggingStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyClusterIamRolesOutput) GoString() string { +func (s LoggingStatus) GoString() string { return s.String() } type ModifyClusterInput struct { - _ struct{} `type:"structure"` - // If true, major version upgrades will be applied automatically to the cluster // during the maintenance window. // @@ -6670,14 +6383,6 @@ type ModifyClusterInput struct { // Example: 1.0 ClusterVersion *string `type:"string"` - // The Elastic IP (EIP) address for the cluster. - // - // Constraints: The cluster must be provisioned in EC2-VPC and publicly-accessible - // through an Internet gateway. For more information about provisioning clusters - // in EC2-VPC, go to Supported Platforms to Launch Your Cluster (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#cluster-platforms) - // in the Amazon Redshift Cluster Management Guide. - ElasticIp *string `type:"string"` - // Specifies the name of the HSM client certificate the Amazon Redshift cluster // uses to retrieve the data encryption keys stored in an HSM. HsmClientCertificateIdentifier *string `type:"string"` @@ -6760,13 +6465,15 @@ type ModifyClusterInput struct { // Constraints: Must be at least 30 minutes. PreferredMaintenanceWindow *string `type:"string"` - // If true, the cluster can be accessed from a public network. Only clusters - // in VPCs can be set to be publicly available. - PubliclyAccessible *bool `type:"boolean"` - // A list of virtual private cloud (VPC) security groups to be associated with // the cluster. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` + + metadataModifyClusterInput `json:"-" xml:"-"` +} + +type metadataModifyClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6779,24 +6486,15 @@ func (s ModifyClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyClusterInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyClusterOutput struct { - _ struct{} `type:"structure"` - // Describes a cluster. Cluster *Cluster `type:"structure"` + + metadataModifyClusterOutput `json:"-" xml:"-"` +} + +type metadataModifyClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6810,8 +6508,6 @@ func (s ModifyClusterOutput) GoString() string { } type ModifyClusterParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the parameter group to be modified. ParameterGroupName *string `type:"string" required:"true"` @@ -6824,6 +6520,12 @@ type ModifyClusterParameterGroupInput struct { // For the workload management (WLM) configuration, you must supply all the // name-value pairs in the wlm_json_configuration parameter. Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"` + + metadataModifyClusterParameterGroupInput `json:"-" xml:"-"` +} + +type metadataModifyClusterParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6836,25 +6538,7 @@ func (s ModifyClusterParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyClusterParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyClusterParameterGroupInput"} - if s.ParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterGroupName")) - } - if s.Parameters == nil { - invalidParams.Add(request.NewErrParamRequired("Parameters")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyClusterSubnetGroupInput struct { - _ struct{} `type:"structure"` - // The name of the subnet group to be modified. ClusterSubnetGroupName *string `type:"string" required:"true"` @@ -6864,6 +6548,12 @@ type ModifyClusterSubnetGroupInput struct { // An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a // single request. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"` + + metadataModifyClusterSubnetGroupInput `json:"-" xml:"-"` +} + +type metadataModifyClusterSubnetGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6876,27 +6566,15 @@ func (s ModifyClusterSubnetGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyClusterSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyClusterSubnetGroupInput"} - if s.ClusterSubnetGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterSubnetGroupName")) - } - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifyClusterSubnetGroupOutput struct { - _ struct{} `type:"structure"` - // Describes a subnet group. ClusterSubnetGroup *ClusterSubnetGroup `type:"structure"` + + metadataModifyClusterSubnetGroupOutput `json:"-" xml:"-"` +} + +type metadataModifyClusterSubnetGroupOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6910,8 +6588,6 @@ func (s ModifyClusterSubnetGroupOutput) GoString() string { } type ModifyEventSubscriptionInput struct { - _ struct{} `type:"structure"` - // A Boolean value indicating if the subscription is enabled. true indicates // the subscription is enabled Enabled *bool `type:"boolean"` @@ -6955,6 +6631,12 @@ type ModifyEventSubscriptionInput struct { // The name of the modified Amazon Redshift event notification subscription. SubscriptionName *string `type:"string" required:"true"` + + metadataModifyEventSubscriptionInput `json:"-" xml:"-"` +} + +type metadataModifyEventSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6967,24 +6649,14 @@ func (s ModifyEventSubscriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyEventSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyEventSubscriptionInput"} - if s.SubscriptionName == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) - } +type ModifyEventSubscriptionOutput struct { + EventSubscription *EventSubscription `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataModifyEventSubscriptionOutput `json:"-" xml:"-"` } -type ModifyEventSubscriptionOutput struct { - _ struct{} `type:"structure"` - - // Describes event subscriptions. - EventSubscription *EventSubscription `type:"structure"` +type metadataModifyEventSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6998,8 +6670,6 @@ func (s ModifyEventSubscriptionOutput) GoString() string { } type ModifySnapshotCopyRetentionPeriodInput struct { - _ struct{} `type:"structure"` - // The unique identifier of the cluster for which you want to change the retention // period for automated snapshots that are copied to a destination region. // @@ -7017,6 +6687,12 @@ type ModifySnapshotCopyRetentionPeriodInput struct { // // Constraints: Must be at least 1 and no more than 35. RetentionPeriod *int64 `type:"integer" required:"true"` + + metadataModifySnapshotCopyRetentionPeriodInput `json:"-" xml:"-"` +} + +type metadataModifySnapshotCopyRetentionPeriodInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7029,27 +6705,15 @@ func (s ModifySnapshotCopyRetentionPeriodInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifySnapshotCopyRetentionPeriodInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotCopyRetentionPeriodInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - if s.RetentionPeriod == nil { - invalidParams.Add(request.NewErrParamRequired("RetentionPeriod")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ModifySnapshotCopyRetentionPeriodOutput struct { - _ struct{} `type:"structure"` - // Describes a cluster. Cluster *Cluster `type:"structure"` + + metadataModifySnapshotCopyRetentionPeriodOutput `json:"-" xml:"-"` +} + +type metadataModifySnapshotCopyRetentionPeriodOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7064,8 +6728,6 @@ func (s ModifySnapshotCopyRetentionPeriodOutput) GoString() string { // Describes an orderable cluster option. type OrderableClusterOption struct { - _ struct{} `type:"structure"` - // A list of availability zones for the orderable cluster. AvailabilityZones []*AvailabilityZone `locationNameList:"AvailabilityZone" type:"list"` @@ -7077,6 +6739,12 @@ type OrderableClusterOption struct { // The node type for the orderable cluster. NodeType *string `type:"string"` + + metadataOrderableClusterOption `json:"-" xml:"-"` +} + +type metadataOrderableClusterOption struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7091,17 +6759,10 @@ func (s OrderableClusterOption) GoString() string { // Describes a parameter in a cluster parameter group. type Parameter struct { - _ struct{} `type:"structure"` - // The valid range of values for the parameter. AllowedValues *string `type:"string"` - // Specifies how to apply the WLM configuration parameter. Some properties can - // be applied dynamically, while other properties require that any associated - // clusters be rebooted for the configuration changes to be applied. For more - // information about parameters and parameter groups, go to Amazon Redshift - // Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) - // in the Amazon Redshift Cluster Management Guide. + // Specifies how to apply the parameter. Supported value: static. ApplyType *string `type:"string" enum:"ParameterApplyType"` // The data type of the parameter. @@ -7125,6 +6786,12 @@ type Parameter struct { // The source of the parameter value, such as "engine-default" or "user". Source *string `type:"string"` + + metadataParameter `json:"-" xml:"-"` +} + +type metadataParameter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7140,8 +6807,6 @@ func (s Parameter) GoString() string { // Describes cluster attributes that are in a pending state. A change to one // or more the attributes was requested and is in progress or will be applied. type PendingModifiedValues struct { - _ struct{} `type:"structure"` - // The pending or in-progress change of the automated snapshot retention period. AutomatedSnapshotRetentionPeriod *int64 `type:"integer"` @@ -7163,9 +6828,11 @@ type PendingModifiedValues struct { // The pending or in-progress change of the number of nodes in the cluster. NumberOfNodes *int64 `type:"integer"` - // The pending or in-progress change of the ability to connect to the cluster - // from the public network. - PubliclyAccessible *bool `type:"boolean"` + metadataPendingModifiedValues `json:"-" xml:"-"` +} + +type metadataPendingModifiedValues struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7179,15 +6846,19 @@ func (s PendingModifiedValues) GoString() string { } type PurchaseReservedNodeOfferingInput struct { - _ struct{} `type:"structure"` - - // The number of reserved nodes that you want to purchase. + // The number of reserved nodes you want to purchase. // // Default: 1 NodeCount *int64 `type:"integer"` // The unique identifier of the reserved node offering you want to purchase. ReservedNodeOfferingId *string `type:"string" required:"true"` + + metadataPurchaseReservedNodeOfferingInput `json:"-" xml:"-"` +} + +type metadataPurchaseReservedNodeOfferingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7200,25 +6871,16 @@ func (s PurchaseReservedNodeOfferingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PurchaseReservedNodeOfferingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedNodeOfferingInput"} - if s.ReservedNodeOfferingId == nil { - invalidParams.Add(request.NewErrParamRequired("ReservedNodeOfferingId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PurchaseReservedNodeOfferingOutput struct { - _ struct{} `type:"structure"` - // Describes a reserved node. You can call the DescribeReservedNodeOfferings // API to obtain the available reserved node offerings. ReservedNode *ReservedNode `type:"structure"` + + metadataPurchaseReservedNodeOfferingOutput `json:"-" xml:"-"` +} + +type metadataPurchaseReservedNodeOfferingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7232,10 +6894,14 @@ func (s PurchaseReservedNodeOfferingOutput) GoString() string { } type RebootClusterInput struct { - _ struct{} `type:"structure"` - // The cluster identifier. ClusterIdentifier *string `type:"string" required:"true"` + + metadataRebootClusterInput `json:"-" xml:"-"` +} + +type metadataRebootClusterInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7248,24 +6914,15 @@ func (s RebootClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RebootClusterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RebootClusterInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RebootClusterOutput struct { - _ struct{} `type:"structure"` - // Describes a cluster. Cluster *Cluster `type:"structure"` + + metadataRebootClusterOutput `json:"-" xml:"-"` +} + +type metadataRebootClusterOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7280,14 +6937,18 @@ func (s RebootClusterOutput) GoString() string { // Describes a recurring charge. type RecurringCharge struct { - _ struct{} `type:"structure"` - // The amount charged per the period of time specified by the recurring charge // frequency. RecurringChargeAmount *float64 `type:"double"` // The frequency at which the recurring charge amount is applied. RecurringChargeFrequency *string `type:"string"` + + metadataRecurringCharge `json:"-" xml:"-"` +} + +type metadataRecurringCharge struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7303,8 +6964,6 @@ func (s RecurringCharge) GoString() string { // Describes a reserved node. You can call the DescribeReservedNodeOfferings // API to obtain the available reserved node offerings. type ReservedNode struct { - _ struct{} `type:"structure"` - // The currency code for the reserved cluster. CurrencyCode *string `type:"string"` @@ -7349,6 +7008,12 @@ type ReservedNode struct { // The hourly rate Amazon Redshift charges you for this reserved node. UsagePrice *float64 `type:"double"` + + metadataReservedNode `json:"-" xml:"-"` +} + +type metadataReservedNode struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7363,8 +7028,6 @@ func (s ReservedNode) GoString() string { // Describes a reserved node offering. type ReservedNodeOffering struct { - _ struct{} `type:"structure"` - // The currency code for the compute nodes offering. CurrencyCode *string `type:"string"` @@ -7393,6 +7056,12 @@ type ReservedNodeOffering struct { // The rate you are charged for each hour the cluster that is using the offering // is running. UsagePrice *float64 `type:"double"` + + metadataReservedNodeOffering `json:"-" xml:"-"` +} + +type metadataReservedNodeOffering struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7406,8 +7075,6 @@ func (s ReservedNodeOffering) GoString() string { } type ResetClusterParameterGroupInput struct { - _ struct{} `type:"structure"` - // The name of the cluster parameter group to be reset. ParameterGroupName *string `type:"string" required:"true"` @@ -7422,6 +7089,12 @@ type ResetClusterParameterGroupInput struct { // // Default: true ResetAllParameters *bool `type:"boolean"` + + metadataResetClusterParameterGroupInput `json:"-" xml:"-"` +} + +type metadataResetClusterParameterGroupInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7434,25 +7107,7 @@ func (s ResetClusterParameterGroupInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResetClusterParameterGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetClusterParameterGroupInput"} - if s.ParameterGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RestoreFromClusterSnapshotInput struct { - _ struct{} `type:"structure"` - - // Reserved. - AdditionalInfo *string `type:"string"` - // If true, major version upgrades can be applied during the maintenance window // to the Amazon Redshift engine that is running on the cluster. // @@ -7522,14 +7177,6 @@ type RestoreFromClusterSnapshotInput struct { // the Amazon Redshift cluster can use to retrieve and store keys in an HSM. HsmConfigurationIdentifier *string `type:"string"` - // A list of AWS Identity and Access Management (IAM) roles that can be used - // by the cluster to access other AWS services. You must supply the IAM roles - // in their Amazon Resource Name (ARN) format. You can supply up to 10 IAM roles - // in a single request. - // - // A cluster can have up to 10 IAM roles associated at any time. - IamRoles []*string `locationNameList:"IamRoleArn" type:"list"` - // The AWS Key Management Service (KMS) key ID of the encryption key that you // want to use to encrypt data in the cluster that you restore from a shared // snapshot. @@ -7595,6 +7242,12 @@ type RestoreFromClusterSnapshotInput struct { // // VPC security groups only apply to clusters in VPCs. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` + + metadataRestoreFromClusterSnapshotInput `json:"-" xml:"-"` +} + +type metadataRestoreFromClusterSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7607,27 +7260,15 @@ func (s RestoreFromClusterSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreFromClusterSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreFromClusterSnapshotInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - if s.SnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RestoreFromClusterSnapshotOutput struct { - _ struct{} `type:"structure"` - // Describes a cluster. Cluster *Cluster `type:"structure"` + + metadataRestoreFromClusterSnapshotOutput `json:"-" xml:"-"` +} + +type metadataRestoreFromClusterSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7643,8 +7284,6 @@ func (s RestoreFromClusterSnapshotOutput) GoString() string { // Describes the status of a cluster restore action. Returns null if the cluster // was not created by restoring a snapshot. type RestoreStatus struct { - _ struct{} `type:"structure"` - // The number of megabytes per second being transferred from the backup storage. // Returns the average rate for a completed backup. CurrentRestoreRateInMegaBytesPerSecond *float64 `type:"double"` @@ -7666,104 +7305,26 @@ type RestoreStatus struct { // The status of the restore action. Returns starting, restoring, completed, // or failed. Status *string `type:"string"` -} - -// String returns the string representation -func (s RestoreStatus) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RestoreStatus) GoString() string { - return s.String() -} - -type RestoreTableFromClusterSnapshotInput struct { - _ struct{} `type:"structure"` - - // The identifier of the Amazon Redshift cluster to restore the table to. - ClusterIdentifier *string `type:"string" required:"true"` - - // The name of the table to create as a result of the current request. - NewTableName *string `type:"string" required:"true"` - - // The identifier of the snapshot to restore the table from. This snapshot must - // have been created from the Amazon Redshift cluster specified by the ClusterIdentifier - // parameter. - SnapshotIdentifier *string `type:"string" required:"true"` - - // The name of the source database that contains the table to restore from. - SourceDatabaseName *string `type:"string" required:"true"` - - // The name of the source schema that contains the table to restore from. If - // you do not specify a SourceSchemaName value, the default is public. - SourceSchemaName *string `type:"string"` - - // The name of the source table to restore from. - SourceTableName *string `type:"string" required:"true"` - - // The name of the database to restore the table to. - TargetDatabaseName *string `type:"string"` - - // The name of the schema to restore the table to. - TargetSchemaName *string `type:"string"` -} -// String returns the string representation -func (s RestoreTableFromClusterSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RestoreTableFromClusterSnapshotInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreTableFromClusterSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreTableFromClusterSnapshotInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - if s.NewTableName == nil { - invalidParams.Add(request.NewErrParamRequired("NewTableName")) - } - if s.SnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier")) - } - if s.SourceDatabaseName == nil { - invalidParams.Add(request.NewErrParamRequired("SourceDatabaseName")) - } - if s.SourceTableName == nil { - invalidParams.Add(request.NewErrParamRequired("SourceTableName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataRestoreStatus `json:"-" xml:"-"` } -type RestoreTableFromClusterSnapshotOutput struct { - _ struct{} `type:"structure"` - - // Describes the status of a RestoreTableFromClusterSnapshot operation. - TableRestoreStatus *TableRestoreStatus `type:"structure"` +type metadataRestoreStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s RestoreTableFromClusterSnapshotOutput) String() string { +func (s RestoreStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RestoreTableFromClusterSnapshotOutput) GoString() string { +func (s RestoreStatus) GoString() string { return s.String() } +// ??? type RevokeClusterSecurityGroupIngressInput struct { - _ struct{} `type:"structure"` - // The IP range for which to revoke access. This range must be a valid Classless // Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is specified, // EC2SecurityGroupName and EC2SecurityGroupOwnerId cannot be provided. @@ -7784,6 +7345,12 @@ type RevokeClusterSecurityGroupIngressInput struct { // // Example: 111122223333 EC2SecurityGroupOwnerId *string `type:"string"` + + metadataRevokeClusterSecurityGroupIngressInput `json:"-" xml:"-"` +} + +type metadataRevokeClusterSecurityGroupIngressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7796,24 +7363,15 @@ func (s RevokeClusterSecurityGroupIngressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RevokeClusterSecurityGroupIngressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RevokeClusterSecurityGroupIngressInput"} - if s.ClusterSecurityGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterSecurityGroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RevokeClusterSecurityGroupIngressOutput struct { - _ struct{} `type:"structure"` - // Describes a security group. ClusterSecurityGroup *ClusterSecurityGroup `type:"structure"` + + metadataRevokeClusterSecurityGroupIngressOutput `json:"-" xml:"-"` +} + +type metadataRevokeClusterSecurityGroupIngressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7827,8 +7385,6 @@ func (s RevokeClusterSecurityGroupIngressOutput) GoString() string { } type RevokeSnapshotAccessInput struct { - _ struct{} `type:"structure"` - // The identifier of the AWS customer account that can no longer restore the // specified snapshot. AccountWithRestoreAccess *string `type:"string" required:"true"` @@ -7840,6 +7396,12 @@ type RevokeSnapshotAccessInput struct { // The identifier of the snapshot that the account can no longer access. SnapshotIdentifier *string `type:"string" required:"true"` + + metadataRevokeSnapshotAccessInput `json:"-" xml:"-"` +} + +type metadataRevokeSnapshotAccessInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7852,27 +7414,15 @@ func (s RevokeSnapshotAccessInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RevokeSnapshotAccessInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RevokeSnapshotAccessInput"} - if s.AccountWithRestoreAccess == nil { - invalidParams.Add(request.NewErrParamRequired("AccountWithRestoreAccess")) - } - if s.SnapshotIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RevokeSnapshotAccessOutput struct { - _ struct{} `type:"structure"` - // Describes a snapshot. Snapshot *Snapshot `type:"structure"` + + metadataRevokeSnapshotAccessOutput `json:"-" xml:"-"` +} + +type metadataRevokeSnapshotAccessOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7886,13 +7436,17 @@ func (s RevokeSnapshotAccessOutput) GoString() string { } type RotateEncryptionKeyInput struct { - _ struct{} `type:"structure"` - // The unique identifier of the cluster that you want to rotate the encryption // keys for. // // Constraints: Must be the name of valid cluster that has encryption enabled. ClusterIdentifier *string `type:"string" required:"true"` + + metadataRotateEncryptionKeyInput `json:"-" xml:"-"` +} + +type metadataRotateEncryptionKeyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7905,24 +7459,15 @@ func (s RotateEncryptionKeyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RotateEncryptionKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RotateEncryptionKeyInput"} - if s.ClusterIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RotateEncryptionKeyOutput struct { - _ struct{} `type:"structure"` - // Describes a cluster. Cluster *Cluster `type:"structure"` + + metadataRotateEncryptionKeyOutput `json:"-" xml:"-"` +} + +type metadataRotateEncryptionKeyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7937,8 +7482,6 @@ func (s RotateEncryptionKeyOutput) GoString() string { // Describes a snapshot. type Snapshot struct { - _ struct{} `type:"structure"` - // A list of the AWS customer accounts authorized to restore the snapshot. Returns // null if no accounts are authorized. Visible only to the snapshot owner. AccountsWithRestoreAccess []*AccountWithRestoreAccess `locationNameList:"AccountWithRestoreAccess" type:"list"` @@ -8023,9 +7566,9 @@ type Snapshot struct { SourceRegion *string `type:"string"` // The snapshot status. The value of the status depends on the API operation - // used. CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating". - // DescribeClusterSnapshots returns status as "creating", "available", "final - // snapshot", or "failed". DeleteClusterSnapshot returns status as "deleted". + // used. CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating". + // DescribeClusterSnapshots returns status as "creating", "available", "final + // snapshot", or "failed". DeleteClusterSnapshot returns status as "deleted". Status *string `type:"string"` // The list of tags for the cluster snapshot. @@ -8038,6 +7581,12 @@ type Snapshot struct { // The VPC identifier of the cluster if the snapshot is from a cluster in a // VPC. Otherwise, this field is not in the output. VpcId *string `type:"string"` + + metadataSnapshot `json:"-" xml:"-"` +} + +type metadataSnapshot struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8058,8 +7607,6 @@ func (s Snapshot) GoString() string { // Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. type SnapshotCopyGrant struct { - _ struct{} `type:"structure"` - // The unique identifier of the customer master key (CMK) in AWS KMS to which // Amazon Redshift is granted permission. KmsKeyId *string `type:"string"` @@ -8069,6 +7616,12 @@ type SnapshotCopyGrant struct { // A list of tag instances. Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataSnapshotCopyGrant `json:"-" xml:"-"` +} + +type metadataSnapshotCopyGrant struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8083,8 +7636,6 @@ func (s SnapshotCopyGrant) GoString() string { // Describes a subnet. type Subnet struct { - _ struct{} `type:"structure"` - // Describes an availability zone. SubnetAvailabilityZone *AvailabilityZone `type:"structure"` @@ -8093,89 +7644,37 @@ type Subnet struct { // The status of the subnet. SubnetStatus *string `type:"string"` -} - -// String returns the string representation -func (s Subnet) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s Subnet) GoString() string { - return s.String() + metadataSubnet `json:"-" xml:"-"` } -// Describes the status of a RestoreTableFromClusterSnapshot operation. -type TableRestoreStatus struct { - _ struct{} `type:"structure"` - - // The identifier of the Amazon Redshift cluster that the table is being restored - // to. - ClusterIdentifier *string `type:"string"` - - // A description of the status of the table restore request. Status values include - // SUCCEEDED, FAILED, CANCELED, PENDING, IN_PROGRESS. - Message *string `type:"string"` - - // The name of the table to create as a result of the table restore request. - NewTableName *string `type:"string"` - - // The amount of data restored to the new table so far, in megabytes (MB). - ProgressInMegaBytes *int64 `type:"long"` - - // The time that the table restore request was made, in Universal Coordinated - // Time (UTC). - RequestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The identifier of the snapshot that the table is being restored from. - SnapshotIdentifier *string `type:"string"` - - // The name of the source database that contains the table being restored. - SourceDatabaseName *string `type:"string"` - - // The name of the source schema that contains the table being restored. - SourceSchemaName *string `type:"string"` - - // The name of the source table being restored. - SourceTableName *string `type:"string"` - - // A value that describes the current state of the table restore request. - // - // Valid Values: SUCCEEDED, FAILED, CANCELED, PENDING, IN_PROGRESS - Status *string `type:"string" enum:"TableRestoreStatusType"` - - // The unique identifier for the table restore request. - TableRestoreRequestId *string `type:"string"` - - // The name of the database to restore the table to. - TargetDatabaseName *string `type:"string"` - - // The name of the schema to restore the table to. - TargetSchemaName *string `type:"string"` - - // The total amount of data to restore to the new table, in megabytes (MB). - TotalDataInMegaBytes *int64 `type:"long"` +type metadataSubnet struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s TableRestoreStatus) String() string { +func (s Subnet) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TableRestoreStatus) GoString() string { +func (s Subnet) GoString() string { return s.String() } // A tag consisting of a name/value pair for a resource. type Tag struct { - _ struct{} `type:"structure"` - // The key, or name, for the resource tag. Key *string `type:"string"` // The value for the resource tag. Value *string `type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8190,8 +7689,6 @@ func (s Tag) GoString() string { // A tag and its associated resource. type TaggedResource struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) with which the tag is associated. For example, // arn:aws:redshift:us-east-1:123456789:cluster:t1. ResourceName *string `type:"string"` @@ -8207,6 +7704,12 @@ type TaggedResource struct { // The tag for the resource. Tag *Tag `type:"structure"` + + metadataTaggedResource `json:"-" xml:"-"` +} + +type metadataTaggedResource struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8221,13 +7724,15 @@ func (s TaggedResource) GoString() string { // Describes the members of a VPC security group. type VpcSecurityGroupMembership struct { - _ struct{} `type:"structure"` - - // The status of the VPC security group. Status *string `type:"string"` - // The identifier of the VPC security group. VpcSecurityGroupId *string `type:"string"` + + metadataVpcSecurityGroupMembership `json:"-" xml:"-"` +} + +type metadataVpcSecurityGroupMembership struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8257,16 +7762,3 @@ const ( // @enum SourceType SourceTypeClusterSnapshot = "cluster-snapshot" ) - -const ( - // @enum TableRestoreStatusType - TableRestoreStatusTypePending = "PENDING" - // @enum TableRestoreStatusType - TableRestoreStatusTypeInProgress = "IN_PROGRESS" - // @enum TableRestoreStatusType - TableRestoreStatusTypeSucceeded = "SUCCEEDED" - // @enum TableRestoreStatusType - TableRestoreStatusTypeFailed = "FAILED" - // @enum TableRestoreStatusType - TableRestoreStatusTypeCanceled = "CANCELED" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go index c18210f23..97d95e0a2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/redshift" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRedshift_AuthorizeClusterSecurityGroupIngress() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.AuthorizeClusterSecurityGroupIngressInput{ ClusterSecurityGroupName: aws.String("String"), // Required @@ -38,7 +37,7 @@ func ExampleRedshift_AuthorizeClusterSecurityGroupIngress() { } func ExampleRedshift_AuthorizeSnapshotAccess() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.AuthorizeSnapshotAccessInput{ AccountWithRestoreAccess: aws.String("String"), // Required @@ -59,7 +58,7 @@ func ExampleRedshift_AuthorizeSnapshotAccess() { } func ExampleRedshift_CopyClusterSnapshot() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CopyClusterSnapshotInput{ SourceSnapshotIdentifier: aws.String("String"), // Required @@ -80,14 +79,13 @@ func ExampleRedshift_CopyClusterSnapshot() { } func ExampleRedshift_CreateCluster() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CreateClusterInput{ ClusterIdentifier: aws.String("String"), // Required MasterUserPassword: aws.String("String"), // Required MasterUsername: aws.String("String"), // Required NodeType: aws.String("String"), // Required - AdditionalInfo: aws.String("String"), AllowVersionUpgrade: aws.Bool(true), AutomatedSnapshotRetentionPeriod: aws.Int64(1), AvailabilityZone: aws.String("String"), @@ -104,13 +102,9 @@ func ExampleRedshift_CreateCluster() { Encrypted: aws.Bool(true), HsmClientCertificateIdentifier: aws.String("String"), HsmConfigurationIdentifier: aws.String("String"), - IamRoles: []*string{ - aws.String("String"), // Required - // More values... - }, - KmsKeyId: aws.String("String"), - NumberOfNodes: aws.Int64(1), - Port: aws.Int64(1), + KmsKeyId: aws.String("String"), + NumberOfNodes: aws.Int64(1), + Port: aws.Int64(1), PreferredMaintenanceWindow: aws.String("String"), PubliclyAccessible: aws.Bool(true), Tags: []*redshift.Tag{ @@ -139,7 +133,7 @@ func ExampleRedshift_CreateCluster() { } func ExampleRedshift_CreateClusterParameterGroup() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CreateClusterParameterGroupInput{ Description: aws.String("String"), // Required @@ -167,7 +161,7 @@ func ExampleRedshift_CreateClusterParameterGroup() { } func ExampleRedshift_CreateClusterSecurityGroup() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CreateClusterSecurityGroupInput{ ClusterSecurityGroupName: aws.String("String"), // Required @@ -194,7 +188,7 @@ func ExampleRedshift_CreateClusterSecurityGroup() { } func ExampleRedshift_CreateClusterSnapshot() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CreateClusterSnapshotInput{ ClusterIdentifier: aws.String("String"), // Required @@ -221,7 +215,7 @@ func ExampleRedshift_CreateClusterSnapshot() { } func ExampleRedshift_CreateClusterSubnetGroup() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CreateClusterSubnetGroupInput{ ClusterSubnetGroupName: aws.String("String"), // Required @@ -252,7 +246,7 @@ func ExampleRedshift_CreateClusterSubnetGroup() { } func ExampleRedshift_CreateEventSubscription() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CreateEventSubscriptionInput{ SnsTopicArn: aws.String("String"), // Required @@ -290,7 +284,7 @@ func ExampleRedshift_CreateEventSubscription() { } func ExampleRedshift_CreateHsmClientCertificate() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CreateHsmClientCertificateInput{ HsmClientCertificateIdentifier: aws.String("String"), // Required @@ -316,7 +310,7 @@ func ExampleRedshift_CreateHsmClientCertificate() { } func ExampleRedshift_CreateHsmConfiguration() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CreateHsmConfigurationInput{ Description: aws.String("String"), // Required @@ -347,7 +341,7 @@ func ExampleRedshift_CreateHsmConfiguration() { } func ExampleRedshift_CreateSnapshotCopyGrant() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CreateSnapshotCopyGrantInput{ SnapshotCopyGrantName: aws.String("String"), // Required @@ -374,7 +368,7 @@ func ExampleRedshift_CreateSnapshotCopyGrant() { } func ExampleRedshift_CreateTags() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.CreateTagsInput{ ResourceName: aws.String("String"), // Required @@ -400,7 +394,7 @@ func ExampleRedshift_CreateTags() { } func ExampleRedshift_DeleteCluster() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DeleteClusterInput{ ClusterIdentifier: aws.String("String"), // Required @@ -421,7 +415,7 @@ func ExampleRedshift_DeleteCluster() { } func ExampleRedshift_DeleteClusterParameterGroup() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DeleteClusterParameterGroupInput{ ParameterGroupName: aws.String("String"), // Required @@ -440,7 +434,7 @@ func ExampleRedshift_DeleteClusterParameterGroup() { } func ExampleRedshift_DeleteClusterSecurityGroup() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DeleteClusterSecurityGroupInput{ ClusterSecurityGroupName: aws.String("String"), // Required @@ -459,7 +453,7 @@ func ExampleRedshift_DeleteClusterSecurityGroup() { } func ExampleRedshift_DeleteClusterSnapshot() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DeleteClusterSnapshotInput{ SnapshotIdentifier: aws.String("String"), // Required @@ -479,7 +473,7 @@ func ExampleRedshift_DeleteClusterSnapshot() { } func ExampleRedshift_DeleteClusterSubnetGroup() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DeleteClusterSubnetGroupInput{ ClusterSubnetGroupName: aws.String("String"), // Required @@ -498,7 +492,7 @@ func ExampleRedshift_DeleteClusterSubnetGroup() { } func ExampleRedshift_DeleteEventSubscription() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DeleteEventSubscriptionInput{ SubscriptionName: aws.String("String"), // Required @@ -517,7 +511,7 @@ func ExampleRedshift_DeleteEventSubscription() { } func ExampleRedshift_DeleteHsmClientCertificate() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DeleteHsmClientCertificateInput{ HsmClientCertificateIdentifier: aws.String("String"), // Required @@ -536,7 +530,7 @@ func ExampleRedshift_DeleteHsmClientCertificate() { } func ExampleRedshift_DeleteHsmConfiguration() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DeleteHsmConfigurationInput{ HsmConfigurationIdentifier: aws.String("String"), // Required @@ -555,7 +549,7 @@ func ExampleRedshift_DeleteHsmConfiguration() { } func ExampleRedshift_DeleteSnapshotCopyGrant() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DeleteSnapshotCopyGrantInput{ SnapshotCopyGrantName: aws.String("String"), // Required @@ -574,7 +568,7 @@ func ExampleRedshift_DeleteSnapshotCopyGrant() { } func ExampleRedshift_DeleteTags() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DeleteTagsInput{ ResourceName: aws.String("String"), // Required @@ -597,7 +591,7 @@ func ExampleRedshift_DeleteTags() { } func ExampleRedshift_DescribeClusterParameterGroups() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeClusterParameterGroupsInput{ Marker: aws.String("String"), @@ -626,7 +620,7 @@ func ExampleRedshift_DescribeClusterParameterGroups() { } func ExampleRedshift_DescribeClusterParameters() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeClusterParametersInput{ ParameterGroupName: aws.String("String"), // Required @@ -648,7 +642,7 @@ func ExampleRedshift_DescribeClusterParameters() { } func ExampleRedshift_DescribeClusterSecurityGroups() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeClusterSecurityGroupsInput{ ClusterSecurityGroupName: aws.String("String"), @@ -677,7 +671,7 @@ func ExampleRedshift_DescribeClusterSecurityGroups() { } func ExampleRedshift_DescribeClusterSnapshots() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeClusterSnapshotsInput{ ClusterIdentifier: aws.String("String"), @@ -711,7 +705,7 @@ func ExampleRedshift_DescribeClusterSnapshots() { } func ExampleRedshift_DescribeClusterSubnetGroups() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeClusterSubnetGroupsInput{ ClusterSubnetGroupName: aws.String("String"), @@ -740,7 +734,7 @@ func ExampleRedshift_DescribeClusterSubnetGroups() { } func ExampleRedshift_DescribeClusterVersions() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeClusterVersionsInput{ ClusterParameterGroupFamily: aws.String("String"), @@ -762,7 +756,7 @@ func ExampleRedshift_DescribeClusterVersions() { } func ExampleRedshift_DescribeClusters() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeClustersInput{ ClusterIdentifier: aws.String("String"), @@ -791,7 +785,7 @@ func ExampleRedshift_DescribeClusters() { } func ExampleRedshift_DescribeDefaultClusterParameters() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeDefaultClusterParametersInput{ ParameterGroupFamily: aws.String("String"), // Required @@ -812,7 +806,7 @@ func ExampleRedshift_DescribeDefaultClusterParameters() { } func ExampleRedshift_DescribeEventCategories() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeEventCategoriesInput{ SourceType: aws.String("String"), @@ -831,7 +825,7 @@ func ExampleRedshift_DescribeEventCategories() { } func ExampleRedshift_DescribeEventSubscriptions() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeEventSubscriptionsInput{ Marker: aws.String("String"), @@ -852,7 +846,7 @@ func ExampleRedshift_DescribeEventSubscriptions() { } func ExampleRedshift_DescribeEvents() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeEventsInput{ Duration: aws.Int64(1), @@ -877,7 +871,7 @@ func ExampleRedshift_DescribeEvents() { } func ExampleRedshift_DescribeHsmClientCertificates() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeHsmClientCertificatesInput{ HsmClientCertificateIdentifier: aws.String("String"), @@ -906,7 +900,7 @@ func ExampleRedshift_DescribeHsmClientCertificates() { } func ExampleRedshift_DescribeHsmConfigurations() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeHsmConfigurationsInput{ HsmConfigurationIdentifier: aws.String("String"), @@ -935,7 +929,7 @@ func ExampleRedshift_DescribeHsmConfigurations() { } func ExampleRedshift_DescribeLoggingStatus() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeLoggingStatusInput{ ClusterIdentifier: aws.String("String"), // Required @@ -954,7 +948,7 @@ func ExampleRedshift_DescribeLoggingStatus() { } func ExampleRedshift_DescribeOrderableClusterOptions() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeOrderableClusterOptionsInput{ ClusterVersion: aws.String("String"), @@ -976,7 +970,7 @@ func ExampleRedshift_DescribeOrderableClusterOptions() { } func ExampleRedshift_DescribeReservedNodeOfferings() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeReservedNodeOfferingsInput{ Marker: aws.String("String"), @@ -997,7 +991,7 @@ func ExampleRedshift_DescribeReservedNodeOfferings() { } func ExampleRedshift_DescribeReservedNodes() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeReservedNodesInput{ Marker: aws.String("String"), @@ -1018,7 +1012,7 @@ func ExampleRedshift_DescribeReservedNodes() { } func ExampleRedshift_DescribeResize() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeResizeInput{ ClusterIdentifier: aws.String("String"), // Required @@ -1037,7 +1031,7 @@ func ExampleRedshift_DescribeResize() { } func ExampleRedshift_DescribeSnapshotCopyGrants() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeSnapshotCopyGrantsInput{ Marker: aws.String("String"), @@ -1065,30 +1059,8 @@ func ExampleRedshift_DescribeSnapshotCopyGrants() { fmt.Println(resp) } -func ExampleRedshift_DescribeTableRestoreStatus() { - svc := redshift.New(session.New()) - - params := &redshift.DescribeTableRestoreStatusInput{ - ClusterIdentifier: aws.String("String"), - Marker: aws.String("String"), - MaxRecords: aws.Int64(1), - TableRestoreRequestId: aws.String("String"), - } - resp, err := svc.DescribeTableRestoreStatus(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRedshift_DescribeTags() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DescribeTagsInput{ Marker: aws.String("String"), @@ -1118,7 +1090,7 @@ func ExampleRedshift_DescribeTags() { } func ExampleRedshift_DisableLogging() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DisableLoggingInput{ ClusterIdentifier: aws.String("String"), // Required @@ -1137,7 +1109,7 @@ func ExampleRedshift_DisableLogging() { } func ExampleRedshift_DisableSnapshotCopy() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.DisableSnapshotCopyInput{ ClusterIdentifier: aws.String("String"), // Required @@ -1156,7 +1128,7 @@ func ExampleRedshift_DisableSnapshotCopy() { } func ExampleRedshift_EnableLogging() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.EnableLoggingInput{ BucketName: aws.String("String"), // Required @@ -1177,7 +1149,7 @@ func ExampleRedshift_EnableLogging() { } func ExampleRedshift_EnableSnapshotCopy() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.EnableSnapshotCopyInput{ ClusterIdentifier: aws.String("String"), // Required @@ -1199,7 +1171,7 @@ func ExampleRedshift_EnableSnapshotCopy() { } func ExampleRedshift_ModifyCluster() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.ModifyClusterInput{ ClusterIdentifier: aws.String("String"), // Required @@ -1212,7 +1184,6 @@ func ExampleRedshift_ModifyCluster() { }, ClusterType: aws.String("String"), ClusterVersion: aws.String("String"), - ElasticIp: aws.String("String"), HsmClientCertificateIdentifier: aws.String("String"), HsmConfigurationIdentifier: aws.String("String"), MasterUserPassword: aws.String("String"), @@ -1220,7 +1191,6 @@ func ExampleRedshift_ModifyCluster() { NodeType: aws.String("String"), NumberOfNodes: aws.Int64(1), PreferredMaintenanceWindow: aws.String("String"), - PubliclyAccessible: aws.Bool(true), VpcSecurityGroupIds: []*string{ aws.String("String"), // Required // More values... @@ -1239,35 +1209,8 @@ func ExampleRedshift_ModifyCluster() { fmt.Println(resp) } -func ExampleRedshift_ModifyClusterIamRoles() { - svc := redshift.New(session.New()) - - params := &redshift.ModifyClusterIamRolesInput{ - ClusterIdentifier: aws.String("String"), // Required - AddIamRoles: []*string{ - aws.String("String"), // Required - // More values... - }, - RemoveIamRoles: []*string{ - aws.String("String"), // Required - // More values... - }, - } - resp, err := svc.ModifyClusterIamRoles(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRedshift_ModifyClusterParameterGroup() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.ModifyClusterParameterGroupInput{ ParameterGroupName: aws.String("String"), // Required @@ -1300,7 +1243,7 @@ func ExampleRedshift_ModifyClusterParameterGroup() { } func ExampleRedshift_ModifyClusterSubnetGroup() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.ModifyClusterSubnetGroupInput{ ClusterSubnetGroupName: aws.String("String"), // Required @@ -1324,7 +1267,7 @@ func ExampleRedshift_ModifyClusterSubnetGroup() { } func ExampleRedshift_ModifyEventSubscription() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.ModifyEventSubscriptionInput{ SubscriptionName: aws.String("String"), // Required @@ -1355,7 +1298,7 @@ func ExampleRedshift_ModifyEventSubscription() { } func ExampleRedshift_ModifySnapshotCopyRetentionPeriod() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.ModifySnapshotCopyRetentionPeriodInput{ ClusterIdentifier: aws.String("String"), // Required @@ -1375,7 +1318,7 @@ func ExampleRedshift_ModifySnapshotCopyRetentionPeriod() { } func ExampleRedshift_PurchaseReservedNodeOffering() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.PurchaseReservedNodeOfferingInput{ ReservedNodeOfferingId: aws.String("String"), // Required @@ -1395,7 +1338,7 @@ func ExampleRedshift_PurchaseReservedNodeOffering() { } func ExampleRedshift_RebootCluster() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.RebootClusterInput{ ClusterIdentifier: aws.String("String"), // Required @@ -1414,7 +1357,7 @@ func ExampleRedshift_RebootCluster() { } func ExampleRedshift_ResetClusterParameterGroup() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.ResetClusterParameterGroupInput{ ParameterGroupName: aws.String("String"), // Required @@ -1448,12 +1391,11 @@ func ExampleRedshift_ResetClusterParameterGroup() { } func ExampleRedshift_RestoreFromClusterSnapshot() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.RestoreFromClusterSnapshotInput{ ClusterIdentifier: aws.String("String"), // Required SnapshotIdentifier: aws.String("String"), // Required - AdditionalInfo: aws.String("String"), AllowVersionUpgrade: aws.Bool(true), AutomatedSnapshotRetentionPeriod: aws.Int64(1), AvailabilityZone: aws.String("String"), @@ -1466,14 +1408,10 @@ func ExampleRedshift_RestoreFromClusterSnapshot() { ElasticIp: aws.String("String"), HsmClientCertificateIdentifier: aws.String("String"), HsmConfigurationIdentifier: aws.String("String"), - IamRoles: []*string{ - aws.String("String"), // Required - // More values... - }, - KmsKeyId: aws.String("String"), - NodeType: aws.String("String"), - OwnerAccount: aws.String("String"), - Port: aws.Int64(1), + KmsKeyId: aws.String("String"), + NodeType: aws.String("String"), + OwnerAccount: aws.String("String"), + Port: aws.Int64(1), PreferredMaintenanceWindow: aws.String("String"), PubliclyAccessible: aws.Bool(true), SnapshotClusterIdentifier: aws.String("String"), @@ -1495,34 +1433,8 @@ func ExampleRedshift_RestoreFromClusterSnapshot() { fmt.Println(resp) } -func ExampleRedshift_RestoreTableFromClusterSnapshot() { - svc := redshift.New(session.New()) - - params := &redshift.RestoreTableFromClusterSnapshotInput{ - ClusterIdentifier: aws.String("String"), // Required - NewTableName: aws.String("String"), // Required - SnapshotIdentifier: aws.String("String"), // Required - SourceDatabaseName: aws.String("String"), // Required - SourceTableName: aws.String("String"), // Required - SourceSchemaName: aws.String("String"), - TargetDatabaseName: aws.String("String"), - TargetSchemaName: aws.String("String"), - } - resp, err := svc.RestoreTableFromClusterSnapshot(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRedshift_RevokeClusterSecurityGroupIngress() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.RevokeClusterSecurityGroupIngressInput{ ClusterSecurityGroupName: aws.String("String"), // Required @@ -1544,7 +1456,7 @@ func ExampleRedshift_RevokeClusterSecurityGroupIngress() { } func ExampleRedshift_RevokeSnapshotAccess() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.RevokeSnapshotAccessInput{ AccountWithRestoreAccess: aws.String("String"), // Required @@ -1565,7 +1477,7 @@ func ExampleRedshift_RevokeSnapshotAccess() { } func ExampleRedshift_RotateEncryptionKey() { - svc := redshift.New(session.New()) + svc := redshift.New(nil) params := &redshift.RotateEncryptionKeyInput{ ClusterIdentifier: aws.String("String"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go index 158a6ef12..c615834fd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface.go @@ -208,10 +208,6 @@ type RedshiftAPI interface { DescribeSnapshotCopyGrants(*redshift.DescribeSnapshotCopyGrantsInput) (*redshift.DescribeSnapshotCopyGrantsOutput, error) - DescribeTableRestoreStatusRequest(*redshift.DescribeTableRestoreStatusInput) (*request.Request, *redshift.DescribeTableRestoreStatusOutput) - - DescribeTableRestoreStatus(*redshift.DescribeTableRestoreStatusInput) (*redshift.DescribeTableRestoreStatusOutput, error) - DescribeTagsRequest(*redshift.DescribeTagsInput) (*request.Request, *redshift.DescribeTagsOutput) DescribeTags(*redshift.DescribeTagsInput) (*redshift.DescribeTagsOutput, error) @@ -236,10 +232,6 @@ type RedshiftAPI interface { ModifyCluster(*redshift.ModifyClusterInput) (*redshift.ModifyClusterOutput, error) - ModifyClusterIamRolesRequest(*redshift.ModifyClusterIamRolesInput) (*request.Request, *redshift.ModifyClusterIamRolesOutput) - - ModifyClusterIamRoles(*redshift.ModifyClusterIamRolesInput) (*redshift.ModifyClusterIamRolesOutput, error) - ModifyClusterParameterGroupRequest(*redshift.ModifyClusterParameterGroupInput) (*request.Request, *redshift.ClusterParameterGroupNameMessage) ModifyClusterParameterGroup(*redshift.ModifyClusterParameterGroupInput) (*redshift.ClusterParameterGroupNameMessage, error) @@ -272,10 +264,6 @@ type RedshiftAPI interface { RestoreFromClusterSnapshot(*redshift.RestoreFromClusterSnapshotInput) (*redshift.RestoreFromClusterSnapshotOutput, error) - RestoreTableFromClusterSnapshotRequest(*redshift.RestoreTableFromClusterSnapshotInput) (*request.Request, *redshift.RestoreTableFromClusterSnapshotOutput) - - RestoreTableFromClusterSnapshot(*redshift.RestoreTableFromClusterSnapshotInput) (*redshift.RestoreTableFromClusterSnapshotOutput, error) - RevokeClusterSecurityGroupIngressRequest(*redshift.RevokeClusterSecurityGroupIngressInput) (*request.Request, *redshift.RevokeClusterSecurityGroupIngressOutput) RevokeClusterSecurityGroupIngress(*redshift.RevokeClusterSecurityGroupIngressInput) (*redshift.RevokeClusterSecurityGroupIngressOutput, error) @@ -288,5 +276,3 @@ type RedshiftAPI interface { RotateEncryptionKey(*redshift.RotateEncryptionKeyInput) (*redshift.RotateEncryptionKeyOutput, error) } - -var _ RedshiftAPI = (*redshift.Redshift)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface_test.go new file mode 100644 index 000000000..11a0ccee5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package redshiftiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/redshift" + "github.com/aws/aws-sdk-go/service/redshift/redshiftiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*redshiftiface.RedshiftAPI)(nil), redshift.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go index c25dff23b..0c01cd5cb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/service.go @@ -4,11 +4,12 @@ package redshift import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Overview This is an interface reference for Amazon Redshift. It contains @@ -33,64 +34,40 @@ import ( // Guide (http://docs.aws.amazon.com/redshift/latest/dg/welcome.html) explains // how to design, build, query, and maintain the databases that make up your // data warehouse. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type Redshift struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "redshift" - -// New creates a new instance of the Redshift client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a Redshift client from just a session. -// svc := redshift.New(mySession) -// -// // Create a Redshift client with additional configuration -// svc := redshift.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *Redshift { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Redshift { - svc := &Redshift{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2012-12-01", - }, - handlers, - ), +// New returns a new Redshift client. +func New(config *aws.Config) *Redshift { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "redshift", + APIVersion: "2012-12-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &Redshift{service} } // newRequest creates a new request for a Redshift operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/waiters.go deleted file mode 100644 index 7fe00bc4e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/waiters.go +++ /dev/null @@ -1,141 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package redshift - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *Redshift) WaitUntilClusterAvailable(input *DescribeClustersInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeClusters", - Delay: 60, - MaxAttempts: 30, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Clusters[].ClusterStatus", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Clusters[].ClusterStatus", - Expected: "deleting", - }, - { - State: "retry", - Matcher: "error", - Argument: "", - Expected: "ClusterNotFound", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *Redshift) WaitUntilClusterDeleted(input *DescribeClustersInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeClusters", - Delay: 60, - MaxAttempts: 30, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "error", - Argument: "", - Expected: "ClusterNotFound", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Clusters[].ClusterStatus", - Expected: "creating", - }, - { - State: "failure", - Matcher: "pathList", - Argument: "Clusters[].ClusterStatus", - Expected: "pathAny", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *Redshift) WaitUntilClusterRestored(input *DescribeClustersInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeClusters", - Delay: 60, - MaxAttempts: 30, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Clusters[].RestoreStatus.Status", - Expected: "completed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Clusters[].ClusterStatus", - Expected: "deleting", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *Redshift) WaitUntilSnapshotAvailable(input *DescribeClusterSnapshotsInput) error { - waiterCfg := waiter.Config{ - Operation: "DescribeClusterSnapshots", - Delay: 15, - MaxAttempts: 20, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "Snapshots[].Status", - Expected: "available", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Snapshots[].Status", - Expected: "failed", - }, - { - State: "failure", - Matcher: "pathAny", - Argument: "Snapshots[].Status", - Expected: "deleted", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/api.go b/vendor/github.com/aws/aws-sdk-go/service/route53/api.go index f0c313329..31249e865 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/api.go @@ -4,7 +4,6 @@ package route53 import ( - "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -33,12 +32,12 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste // This action associates a VPC with an hosted zone. // -// To associate a VPC with an hosted zone, send a POST request to the /Route -// 53 API version/hostedzone/hosted zone ID/associatevpc resource. The request -// body must include a document with a AssociateVPCWithHostedZoneRequest element. -// The response returns the AssociateVPCWithHostedZoneResponse element that -// contains ChangeInfo for you to track the progress of the AssociateVPCWithHostedZoneRequest -// you made. See GetChange operation for how to track the progress of your change. +// To associate a VPC with an hosted zone, send a POST request to the 2013-04-01/hostedzone/hosted +// zone ID/associatevpc resource. The request body must include an XML document +// with a AssociateVPCWithHostedZoneRequest element. The response returns the +// AssociateVPCWithHostedZoneResponse element that contains ChangeInfo for you +// to track the progress of the AssociateVPCWithHostedZoneRequest you made. +// See GetChange operation for how to track the progress of your change. func (c *Route53) AssociateVPCWithHostedZone(input *AssociateVPCWithHostedZoneInput) (*AssociateVPCWithHostedZoneOutput, error) { req, out := c.AssociateVPCWithHostedZoneRequest(input) err := req.Send() @@ -66,30 +65,33 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet } // Use this action to create or change your authoritative DNS information. To -// use this action, send a POST request to the /Route 53 API version/hostedzone/hosted -// Zone ID/rrset resource. The request body must include a document with a ChangeResourceRecordSetsRequest -// element. +// use this action, send a POST request to the 2013-04-01/hostedzone/hosted +// Zone ID/rrset resource. The request body must include an XML document with +// a ChangeResourceRecordSetsRequest element. // // Changes are a list of change items and are considered transactional. For // more information on transactional changes, also known as change batches, -// see POST ChangeResourceRecordSets (http://docs.aws.amazon.com/Route53/latest/APIReference/API_ChangeResourceRecordSets.html) -// in the Amazon Route 53 API Reference. +// see Creating, Changing, and Deleting Resource Record Sets Using the Route +// 53 API (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/RRSchanges.html#RRSchanges_API) +// in the Amazon Route 53 Developer Guide. // // Due to the nature of transactional changes, you cannot delete the same resource // record set more than once in a single change batch. If you attempt to delete -// the same change batch more than once, Amazon Route 53 returns an InvalidChangeBatch +// the same change batch more than once, Route 53 returns an InvalidChangeBatch // error. In response to a ChangeResourceRecordSets request, your DNS data is -// changed on all Amazon Route 53 DNS servers. Initially, the status of a change -// is PENDING. This means the change has not yet propagated to all the authoritative -// Amazon Route 53 DNS servers. When the change is propagated to all hosts, -// the change returns a status of INSYNC. +// changed on all Route 53 DNS servers. Initially, the status of a change is +// PENDING. This means the change has not yet propagated to all the authoritative +// Route 53 DNS servers. When the change is propagated to all hosts, the change +// returns a status of INSYNC. // // Note the following limitations on a ChangeResourceRecordSets request: // -// A request cannot contain more than 100 Change elements. A request cannot -// contain more than 1000 ResourceRecord elements. The sum of the number of -// characters (including spaces) in all Value elements in a request cannot exceed -// 32,000 characters. +// - A request cannot contain more than 100 Change elements. +// +// - A request cannot contain more than 1000 ResourceRecord elements. +// +// The sum of the number of characters (including spaces) in all Value elements +// in a request cannot exceed 32,000 characters. func (c *Route53) ChangeResourceRecordSets(input *ChangeResourceRecordSetsInput) (*ChangeResourceRecordSetsOutput, error) { req, out := c.ChangeResourceRecordSetsRequest(input) err := req.Send() @@ -144,8 +146,8 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * // This action creates a new health check. // -// To create a new health check, send a POST request to the /Route 53 API version/healthcheck -// resource. The request body must include a document with a CreateHealthCheckRequest +// To create a new health check, send a POST request to the 2013-04-01/healthcheck +// resource. The request body must include an XML document with a CreateHealthCheckRequest // element. The response returns the CreateHealthCheckResponse element that // contains metadata about the health check. func (c *Route53) CreateHealthCheck(input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error) { @@ -176,22 +178,21 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re // This action creates a new hosted zone. // -// To create a new hosted zone, send a POST request to the /Route 53 API version/hostedzone -// resource. The request body must include a document with a CreateHostedZoneRequest +// To create a new hosted zone, send a POST request to the 2013-04-01/hostedzone +// resource. The request body must include an XML document with a CreateHostedZoneRequest // element. The response returns the CreateHostedZoneResponse element that contains // metadata about the hosted zone. // -// Amazon Route 53 automatically creates a default SOA record and four NS records +// Route 53 automatically creates a default SOA record and four NS records // for the zone. The NS records in the hosted zone are the name servers you // give your registrar to delegate your domain to. For more information about -// SOA and NS records, see NS and SOA Records that Amazon Route 53 Creates for -// a Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html) +// SOA and NS records, see NS and SOA Records that Route 53 Creates for a Hosted +// Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html) // in the Amazon Route 53 Developer Guide. // // When you create a zone, its initial status is PENDING. This means that it // is not yet available on all DNS servers. The status of the zone changes to -// INSYNC when the NS and SOA records are available on all Amazon Route 53 DNS -// servers. +// INSYNC when the NS and SOA records are available on all Route 53 DNS servers. // // When trying to create a hosted zone using a reusable delegation set, you // could specify an optional DelegationSetId, and Route53 would assign those @@ -224,13 +225,12 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega // This action creates a reusable delegationSet. // -// To create a new reusable delegationSet, send a POST request to the /Route -// 53 API version/delegationset resource. The request body must include a document -// with a CreateReusableDelegationSetRequest element. The response returns the -// CreateReusableDelegationSetResponse element that contains metadata about -// the delegationSet. +// To create a new reusable delegationSet, send a POST request to the 2013-04-01/delegationset +// resource. The request body must include an XML document with a CreateReusableDelegationSetRequest +// element. The response returns the CreateReusableDelegationSetResponse element +// that contains metadata about the delegationSet. // -// If the optional parameter HostedZoneId is specified, it marks the delegationSet +// If the optional parameter HostedZoneId is specified, it marks the delegationSet // associated with that particular hosted zone as reusable. func (c *Route53) CreateReusableDelegationSet(input *CreateReusableDelegationSetInput) (*CreateReusableDelegationSetOutput, error) { req, out := c.CreateReusableDelegationSetRequest(input) @@ -238,115 +238,6 @@ func (c *Route53) CreateReusableDelegationSet(input *CreateReusableDelegationSet return out, err } -const opCreateTrafficPolicy = "CreateTrafficPolicy" - -// CreateTrafficPolicyRequest generates a request for the CreateTrafficPolicy operation. -func (c *Route53) CreateTrafficPolicyRequest(input *CreateTrafficPolicyInput) (req *request.Request, output *CreateTrafficPolicyOutput) { - op := &request.Operation{ - Name: opCreateTrafficPolicy, - HTTPMethod: "POST", - HTTPPath: "/2013-04-01/trafficpolicy", - } - - if input == nil { - input = &CreateTrafficPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateTrafficPolicyOutput{} - req.Data = output - return -} - -// Creates a traffic policy, which you use to create multiple DNS resource record -// sets for one domain name (such as example.com) or one subdomain name (such -// as www.example.com). -// -// To create a traffic policy, send a POST request to the /Route 53 API version/trafficpolicy -// resource. The request body must include a document with a CreateTrafficPolicyRequest -// element. The response includes the CreateTrafficPolicyResponse element, which -// contains information about the new traffic policy. -func (c *Route53) CreateTrafficPolicy(input *CreateTrafficPolicyInput) (*CreateTrafficPolicyOutput, error) { - req, out := c.CreateTrafficPolicyRequest(input) - err := req.Send() - return out, err -} - -const opCreateTrafficPolicyInstance = "CreateTrafficPolicyInstance" - -// CreateTrafficPolicyInstanceRequest generates a request for the CreateTrafficPolicyInstance operation. -func (c *Route53) CreateTrafficPolicyInstanceRequest(input *CreateTrafficPolicyInstanceInput) (req *request.Request, output *CreateTrafficPolicyInstanceOutput) { - op := &request.Operation{ - Name: opCreateTrafficPolicyInstance, - HTTPMethod: "POST", - HTTPPath: "/2013-04-01/trafficpolicyinstance", - } - - if input == nil { - input = &CreateTrafficPolicyInstanceInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateTrafficPolicyInstanceOutput{} - req.Data = output - return -} - -// Creates resource record sets in a specified hosted zone based on the settings -// in a specified traffic policy version. In addition, CreateTrafficPolicyInstance -// associates the resource record sets with a specified domain name (such as -// example.com) or subdomain name (such as www.example.com). Amazon Route 53 -// responds to DNS queries for the domain or subdomain name by using the resource -// record sets that CreateTrafficPolicyInstance created. -// -// To create a traffic policy instance, send a POST request to the /Route 53 -// API version/trafficpolicyinstance resource. The request body must include -// a document with a CreateTrafficPolicyRequest element. The response returns -// the CreateTrafficPolicyInstanceResponse element, which contains information -// about the traffic policy instance. -func (c *Route53) CreateTrafficPolicyInstance(input *CreateTrafficPolicyInstanceInput) (*CreateTrafficPolicyInstanceOutput, error) { - req, out := c.CreateTrafficPolicyInstanceRequest(input) - err := req.Send() - return out, err -} - -const opCreateTrafficPolicyVersion = "CreateTrafficPolicyVersion" - -// CreateTrafficPolicyVersionRequest generates a request for the CreateTrafficPolicyVersion operation. -func (c *Route53) CreateTrafficPolicyVersionRequest(input *CreateTrafficPolicyVersionInput) (req *request.Request, output *CreateTrafficPolicyVersionOutput) { - op := &request.Operation{ - Name: opCreateTrafficPolicyVersion, - HTTPMethod: "POST", - HTTPPath: "/2013-04-01/trafficpolicy/{Id}", - } - - if input == nil { - input = &CreateTrafficPolicyVersionInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateTrafficPolicyVersionOutput{} - req.Data = output - return -} - -// Creates a new version of an existing traffic policy. When you create a new -// version of a traffic policy, you specify the ID of the traffic policy that -// you want to update and a JSON-formatted document that describes the new version. -// -// You use traffic policies to create multiple DNS resource record sets for -// one domain name (such as example.com) or one subdomain name (such as www.example.com). -// -// To create a new version, send a POST request to the /Route 53 API version/trafficpolicy/ -// resource. The request body includes a document with a CreateTrafficPolicyVersionRequest -// element. The response returns the CreateTrafficPolicyVersionResponse element, -// which contains information about the new version of the traffic policy. -func (c *Route53) CreateTrafficPolicyVersion(input *CreateTrafficPolicyVersionInput) (*CreateTrafficPolicyVersionOutput, error) { - req, out := c.CreateTrafficPolicyVersionRequest(input) - err := req.Send() - return out, err -} - const opDeleteHealthCheck = "DeleteHealthCheck" // DeleteHealthCheckRequest generates a request for the DeleteHealthCheck operation. @@ -368,15 +259,15 @@ func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req * } // This action deletes a health check. To delete a health check, send a DELETE -// request to the /Route 53 API version/healthcheck/health check ID resource. +// request to the 2013-04-01/healthcheck/health check ID resource. // // You can delete a health check only if there are no resource record sets // associated with this health check. If resource record sets are associated // with this health check, you must disassociate them before you can delete // your health check. If you try to delete a health check that is associated -// with resource record sets, Amazon Route 53 will deny your request with a -// HealthCheckInUse error. For information about disassociating the records -// from your health check, see ChangeResourceRecordSets. +// with resource record sets, Route 53 will deny your request with a HealthCheckInUse +// error. For information about disassociating the records from your health +// check, see ChangeResourceRecordSets. func (c *Route53) DeleteHealthCheck(input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error) { req, out := c.DeleteHealthCheckRequest(input) err := req.Send() @@ -404,7 +295,7 @@ func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *re } // This action deletes a hosted zone. To delete a hosted zone, send a DELETE -// request to the /Route 53 API version/hostedzone/hosted zone ID resource. +// request to the 2013-04-01/hostedzone/hosted zone ID resource. // // For more information about deleting a hosted zone, see Deleting a Hosted // Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DeleteHostedZone.html) @@ -414,9 +305,9 @@ func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *re // other than the default SOA record and NS resource record sets. If your hosted // zone contains other resource record sets, you must delete them before you // can delete your hosted zone. If you try to delete a hosted zone that contains -// other resource record sets, Amazon Route 53 will deny your request with a -// HostedZoneNotEmpty error. For information about deleting records from your -// hosted zone, see ChangeResourceRecordSets. +// other resource record sets, Route 53 will deny your request with a HostedZoneNotEmpty +// error. For information about deleting records from your hosted zone, see +// ChangeResourceRecordSets. func (c *Route53) DeleteHostedZone(input *DeleteHostedZoneInput) (*DeleteHostedZoneOutput, error) { req, out := c.DeleteHostedZoneRequest(input) err := req.Send() @@ -444,84 +335,20 @@ func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelega } // This action deletes a reusable delegation set. To delete a reusable delegation -// set, send a DELETE request to the /Route 53 API version/delegationset/delegation -// set ID resource. +// set, send a DELETE request to the 2013-04-01/delegationset/delegation set +// ID resource. // // You can delete a reusable delegation set only if there are no associated // hosted zones. If your reusable delegation set contains associated hosted // zones, you must delete them before you can delete your reusable delegation // set. If you try to delete a reusable delegation set that contains associated -// hosted zones, Amazon Route 53 will deny your request with a DelegationSetInUse -// error. +// hosted zones, Route 53 will deny your request with a DelegationSetInUse error. func (c *Route53) DeleteReusableDelegationSet(input *DeleteReusableDelegationSetInput) (*DeleteReusableDelegationSetOutput, error) { req, out := c.DeleteReusableDelegationSetRequest(input) err := req.Send() return out, err } -const opDeleteTrafficPolicy = "DeleteTrafficPolicy" - -// DeleteTrafficPolicyRequest generates a request for the DeleteTrafficPolicy operation. -func (c *Route53) DeleteTrafficPolicyRequest(input *DeleteTrafficPolicyInput) (req *request.Request, output *DeleteTrafficPolicyOutput) { - op := &request.Operation{ - Name: opDeleteTrafficPolicy, - HTTPMethod: "DELETE", - HTTPPath: "/2013-04-01/trafficpolicy/{Id}/{Version}", - } - - if input == nil { - input = &DeleteTrafficPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteTrafficPolicyOutput{} - req.Data = output - return -} - -// Deletes a traffic policy. To delete a traffic policy, send a DELETE request -// to the /Route 53 API version/trafficpolicy resource. -func (c *Route53) DeleteTrafficPolicy(input *DeleteTrafficPolicyInput) (*DeleteTrafficPolicyOutput, error) { - req, out := c.DeleteTrafficPolicyRequest(input) - err := req.Send() - return out, err -} - -const opDeleteTrafficPolicyInstance = "DeleteTrafficPolicyInstance" - -// DeleteTrafficPolicyInstanceRequest generates a request for the DeleteTrafficPolicyInstance operation. -func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyInstanceInput) (req *request.Request, output *DeleteTrafficPolicyInstanceOutput) { - op := &request.Operation{ - Name: opDeleteTrafficPolicyInstance, - HTTPMethod: "DELETE", - HTTPPath: "/2013-04-01/trafficpolicyinstance/{Id}", - } - - if input == nil { - input = &DeleteTrafficPolicyInstanceInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteTrafficPolicyInstanceOutput{} - req.Data = output - return -} - -// Deletes a traffic policy instance and all of the resource record sets that -// Amazon Route 53 created when you created the instance. -// -// To delete a traffic policy instance, send a DELETE request to the /Route -// 53 API version/trafficpolicy/traffic policy instance ID resource. -// -// When you delete a traffic policy instance, Amazon Route 53 also deletes -// all of the resource record sets that were created when you created the traffic -// policy instance. -func (c *Route53) DeleteTrafficPolicyInstance(input *DeleteTrafficPolicyInstanceInput) (*DeleteTrafficPolicyInstanceOutput, error) { - req, out := c.DeleteTrafficPolicyInstanceRequest(input) - err := req.Send() - return out, err -} - const opDisassociateVPCFromHostedZone = "DisassociateVPCFromHostedZone" // DisassociateVPCFromHostedZoneRequest generates a request for the DisassociateVPCFromHostedZone operation. @@ -544,11 +371,11 @@ func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFro // This action disassociates a VPC from an hosted zone. // -// To disassociate a VPC to a hosted zone, send a POST request to the /Route -// 53 API version/hostedzone/hosted zone ID/disassociatevpc resource. The request -// body must include a document with a DisassociateVPCFromHostedZoneRequest -// element. The response returns the DisassociateVPCFromHostedZoneResponse element -// that contains ChangeInfo for you to track the progress of the DisassociateVPCFromHostedZoneRequest +// To disassociate a VPC to a hosted zone, send a POST request to the 2013-04-01/hostedzone/hosted +// zone ID/disassociatevpc resource. The request body must include an XML document +// with a DisassociateVPCFromHostedZoneRequest element. The response returns +// the DisassociateVPCFromHostedZoneResponse element that contains ChangeInfo +// for you to track the progress of the DisassociateVPCFromHostedZoneRequest // you made. See GetChange operation for how to track the progress of your change. func (c *Route53) DisassociateVPCFromHostedZone(input *DisassociateVPCFromHostedZoneInput) (*DisassociateVPCFromHostedZoneOutput, error) { req, out := c.DisassociateVPCFromHostedZoneRequest(input) @@ -580,8 +407,8 @@ func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, // is one of the following values: // // - PENDING indicates that the changes in this request have not replicated -// to all Amazon Route 53 DNS servers. This is the initial status of all change -// batch requests. +// to all Route 53 DNS servers. This is the initial status of all change batch +// requests. // // - INSYNC indicates that the changes have replicated to all Amazon Route // 53 DNS servers. @@ -591,36 +418,6 @@ func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error) { return out, err } -const opGetChangeDetails = "GetChangeDetails" - -// GetChangeDetailsRequest generates a request for the GetChangeDetails operation. -func (c *Route53) GetChangeDetailsRequest(input *GetChangeDetailsInput) (req *request.Request, output *GetChangeDetailsOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, GetChangeDetails, has been deprecated") - } - op := &request.Operation{ - Name: opGetChangeDetails, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/changedetails/{Id}", - } - - if input == nil { - input = &GetChangeDetailsInput{} - } - - req = c.newRequest(op, input, output) - output = &GetChangeDetailsOutput{} - req.Data = output - return -} - -// This action returns the status and changes of a change batch request. -func (c *Route53) GetChangeDetails(input *GetChangeDetailsInput) (*GetChangeDetailsOutput, error) { - req, out := c.GetChangeDetailsRequest(input) - err := req.Send() - return out, err -} - const opGetCheckerIpRanges = "GetCheckerIpRanges" // GetCheckerIpRangesRequest generates a request for the GetCheckerIpRanges operation. @@ -642,10 +439,9 @@ func (c *Route53) GetCheckerIpRangesRequest(input *GetCheckerIpRangesInput) (req } // To retrieve a list of the IP ranges used by Amazon Route 53 health checkers -// to check the health of your resources, send a GET request to the /Route 53 -// API version/checkeripranges resource. You can use these IP addresses to configure -// router and firewall rules to allow health checkers to check the health of -// your resources. +// to check the health of your resources, send a GET request to the 2013-04-01/checkeripranges +// resource. You can use these IP addresses to configure router and firewall +// rules to allow health checkers to check the health of your resources. func (c *Route53) GetCheckerIpRanges(input *GetCheckerIpRangesInput) (*GetCheckerIpRangesOutput, error) { req, out := c.GetCheckerIpRangesRequest(input) err := req.Send() @@ -672,9 +468,9 @@ func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *reques return } -// To retrieve a single geo location, send a GET request to the /Route 53 API -// version/geolocation resource with one of these options: continentcode | countrycode -// | countrycode and subdivisioncode. +// To retrieve a single geo location, send a GET request to the 2013-04-01/geolocation +// resource with one of these options: continentcode | countrycode | countrycode +// and subdivisioncode. func (c *Route53) GetGeoLocation(input *GetGeoLocationInput) (*GetGeoLocationOutput, error) { req, out := c.GetGeoLocationRequest(input) err := req.Send() @@ -701,7 +497,7 @@ func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *reques return } -// To retrieve the health check, send a GET request to the /Route 53 API version/healthcheck/health +// To retrieve the health check, send a GET request to the 2013-04-01/healthcheck/health // check ID resource. func (c *Route53) GetHealthCheck(input *GetHealthCheckInput) (*GetHealthCheckOutput, error) { req, out := c.GetHealthCheckRequest(input) @@ -730,7 +526,7 @@ func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (r } // To retrieve a count of all your health checks, send a GET request to the -// /Route 53 API version/healthcheckcount resource. +// 2013-04-01/healthcheckcount resource. func (c *Route53) GetHealthCheckCount(input *GetHealthCheckCountInput) (*GetHealthCheckCountOutput, error) { req, out := c.GetHealthCheckCountRequest(input) err := req.Send() @@ -759,8 +555,8 @@ func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLa // If you want to learn why a health check is currently failing or why it failed // most recently (if at all), you can get the failure reason for the most recent -// failure. Send a GET request to the /Route 53 API version/healthcheck/health -// check ID/lastfailurereason resource. +// failure. Send a GET request to the 2013-04-01/healthcheck/health check ID/lastfailurereason +// resource. func (c *Route53) GetHealthCheckLastFailureReason(input *GetHealthCheckLastFailureReasonInput) (*GetHealthCheckLastFailureReasonOutput, error) { req, out := c.GetHealthCheckLastFailureReasonRequest(input) err := req.Send() @@ -787,9 +583,9 @@ func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) return } -// To retrieve the health check status, send a GET request to the /Route 53 -// API version/healthcheck/health check ID/status resource. You can use this -// call to get a health check's current status. +// To retrieve the health check status, send a GET request to the 2013-04-01/healthcheck/health +// check ID/status resource. You can use this call to get a health check's current +// status. func (c *Route53) GetHealthCheckStatus(input *GetHealthCheckStatusInput) (*GetHealthCheckStatusOutput, error) { req, out := c.GetHealthCheckStatusRequest(input) err := req.Send() @@ -817,9 +613,9 @@ func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *request. } // To retrieve the delegation set for a hosted zone, send a GET request to the -// /Route 53 API version/hostedzone/hosted zone ID resource. The delegation -// set is the four Amazon Route 53 name servers that were assigned to the hosted -// zone when you created it. +// 2013-04-01/hostedzone/hosted zone ID resource. The delegation set is the +// four Route 53 name servers that were assigned to the hosted zone when you +// created it. func (c *Route53) GetHostedZone(input *GetHostedZoneInput) (*GetHostedZoneOutput, error) { req, out := c.GetHostedZoneRequest(input) err := req.Send() @@ -846,8 +642,8 @@ func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req return } -// To retrieve a count of all your hosted zones, send a GET request to the /Route -// 53 API version/hostedzonecount resource. +// To retrieve a count of all your hosted zones, send a GET request to the 2013-04-01/hostedzonecount +// resource. func (c *Route53) GetHostedZoneCount(input *GetHostedZoneCountInput) (*GetHostedZoneCountOutput, error) { req, out := c.GetHostedZoneCountRequest(input) err := req.Send() @@ -874,170 +670,14 @@ func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSe return } -// To retrieve the reusable delegation set, send a GET request to the /Route -// 53 API version/delegationset/delegation set ID resource. +// To retrieve the reusable delegation set, send a GET request to the 2013-04-01/delegationset/delegation +// set ID resource. func (c *Route53) GetReusableDelegationSet(input *GetReusableDelegationSetInput) (*GetReusableDelegationSetOutput, error) { req, out := c.GetReusableDelegationSetRequest(input) err := req.Send() return out, err } -const opGetTrafficPolicy = "GetTrafficPolicy" - -// GetTrafficPolicyRequest generates a request for the GetTrafficPolicy operation. -func (c *Route53) GetTrafficPolicyRequest(input *GetTrafficPolicyInput) (req *request.Request, output *GetTrafficPolicyOutput) { - op := &request.Operation{ - Name: opGetTrafficPolicy, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/trafficpolicy/{Id}/{Version}", - } - - if input == nil { - input = &GetTrafficPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &GetTrafficPolicyOutput{} - req.Data = output - return -} - -// Gets information about a specific traffic policy version. To get the information, -// send a GET request to the /Route 53 API version/trafficpolicy resource. -func (c *Route53) GetTrafficPolicy(input *GetTrafficPolicyInput) (*GetTrafficPolicyOutput, error) { - req, out := c.GetTrafficPolicyRequest(input) - err := req.Send() - return out, err -} - -const opGetTrafficPolicyInstance = "GetTrafficPolicyInstance" - -// GetTrafficPolicyInstanceRequest generates a request for the GetTrafficPolicyInstance operation. -func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanceInput) (req *request.Request, output *GetTrafficPolicyInstanceOutput) { - op := &request.Operation{ - Name: opGetTrafficPolicyInstance, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/trafficpolicyinstance/{Id}", - } - - if input == nil { - input = &GetTrafficPolicyInstanceInput{} - } - - req = c.newRequest(op, input, output) - output = &GetTrafficPolicyInstanceOutput{} - req.Data = output - return -} - -// Gets information about a specified traffic policy instance. -// -// To get information about the traffic policy instance, send a GET request -// to the /Route 53 API version/trafficpolicyinstance resource. -// -// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance -// request, there's a brief delay while Amazon Route 53 creates the resource -// record sets that are specified in the traffic policy definition. For more -// information, see the State response element. -func (c *Route53) GetTrafficPolicyInstance(input *GetTrafficPolicyInstanceInput) (*GetTrafficPolicyInstanceOutput, error) { - req, out := c.GetTrafficPolicyInstanceRequest(input) - err := req.Send() - return out, err -} - -const opGetTrafficPolicyInstanceCount = "GetTrafficPolicyInstanceCount" - -// GetTrafficPolicyInstanceCountRequest generates a request for the GetTrafficPolicyInstanceCount operation. -func (c *Route53) GetTrafficPolicyInstanceCountRequest(input *GetTrafficPolicyInstanceCountInput) (req *request.Request, output *GetTrafficPolicyInstanceCountOutput) { - op := &request.Operation{ - Name: opGetTrafficPolicyInstanceCount, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/trafficpolicyinstancecount", - } - - if input == nil { - input = &GetTrafficPolicyInstanceCountInput{} - } - - req = c.newRequest(op, input, output) - output = &GetTrafficPolicyInstanceCountOutput{} - req.Data = output - return -} - -// Gets the number of traffic policy instances that are associated with the -// current AWS account. -// -// To get the number of traffic policy instances, send a GET request to the -// /Route 53 API version/trafficpolicyinstancecount resource. -func (c *Route53) GetTrafficPolicyInstanceCount(input *GetTrafficPolicyInstanceCountInput) (*GetTrafficPolicyInstanceCountOutput, error) { - req, out := c.GetTrafficPolicyInstanceCountRequest(input) - err := req.Send() - return out, err -} - -const opListChangeBatchesByHostedZone = "ListChangeBatchesByHostedZone" - -// ListChangeBatchesByHostedZoneRequest generates a request for the ListChangeBatchesByHostedZone operation. -func (c *Route53) ListChangeBatchesByHostedZoneRequest(input *ListChangeBatchesByHostedZoneInput) (req *request.Request, output *ListChangeBatchesByHostedZoneOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, ListChangeBatchesByHostedZone, has been deprecated") - } - op := &request.Operation{ - Name: opListChangeBatchesByHostedZone, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/hostedzone/{Id}/changes", - } - - if input == nil { - input = &ListChangeBatchesByHostedZoneInput{} - } - - req = c.newRequest(op, input, output) - output = &ListChangeBatchesByHostedZoneOutput{} - req.Data = output - return -} - -// This action gets the list of ChangeBatches in a given time period for a given -// hosted zone. -func (c *Route53) ListChangeBatchesByHostedZone(input *ListChangeBatchesByHostedZoneInput) (*ListChangeBatchesByHostedZoneOutput, error) { - req, out := c.ListChangeBatchesByHostedZoneRequest(input) - err := req.Send() - return out, err -} - -const opListChangeBatchesByRRSet = "ListChangeBatchesByRRSet" - -// ListChangeBatchesByRRSetRequest generates a request for the ListChangeBatchesByRRSet operation. -func (c *Route53) ListChangeBatchesByRRSetRequest(input *ListChangeBatchesByRRSetInput) (req *request.Request, output *ListChangeBatchesByRRSetOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, ListChangeBatchesByRRSet, has been deprecated") - } - op := &request.Operation{ - Name: opListChangeBatchesByRRSet, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/hostedzone/{Id}/rrsChanges", - } - - if input == nil { - input = &ListChangeBatchesByRRSetInput{} - } - - req = c.newRequest(op, input, output) - output = &ListChangeBatchesByRRSetOutput{} - req.Data = output - return -} - -// This action gets the list of ChangeBatches in a given time period for a given -// hosted zone and RRSet. -func (c *Route53) ListChangeBatchesByRRSet(input *ListChangeBatchesByRRSetInput) (*ListChangeBatchesByRRSetOutput, error) { - req, out := c.ListChangeBatchesByRRSetRequest(input) - err := req.Send() - return out, err -} - const opListGeoLocations = "ListGeoLocations" // ListGeoLocationsRequest generates a request for the ListGeoLocations operation. @@ -1059,12 +699,12 @@ func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *re } // To retrieve a list of supported geo locations, send a GET request to the -// /Route 53 API version/geolocations resource. The response to this request -// includes a GeoLocationDetailsList element with zero, one, or multiple GeoLocationDetails +// 2013-04-01/geolocations resource. The response to this request includes a +// GeoLocationDetailsList element with zero, one, or multiple GeoLocationDetails // child elements. The list is sorted by country code, and then subdivision // code, followed by continents at the end of the list. // -// By default, the list of geo locations is displayed on a single page. You +// By default, the list of geo locations is displayed on a single page. You // can control the length of the page that is displayed by using the MaxItems // parameter. If the list is truncated, IsTruncated will be set to true and // a combination of NextContinentCode, NextCountryCode, NextSubdivisionCode @@ -1103,13 +743,12 @@ func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *re return } -// To retrieve a list of your health checks, send a GET request to the /Route -// 53 API version/healthcheck resource. The response to this request includes -// a HealthChecks element with zero, one, or multiple HealthCheck child elements. -// By default, the list of health checks is displayed on a single page. You -// can control the length of the page that is displayed by using the MaxItems -// parameter. You can use the Marker parameter to control the health check that -// the list begins with. +// To retrieve a list of your health checks, send a GET request to the 2013-04-01/healthcheck +// resource. The response to this request includes a HealthChecks element with +// zero, one, or multiple HealthCheck child elements. By default, the list of +// health checks is displayed on a single page. You can control the length of +// the page that is displayed by using the MaxItems parameter. You can use the +// Marker parameter to control the health check that the list begins with. // // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to // a value greater than 100, Amazon Route 53 returns only the first 100. @@ -1121,7 +760,6 @@ func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChe func (c *Route53) ListHealthChecksPages(input *ListHealthChecksInput, fn func(p *ListHealthChecksOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListHealthChecksRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListHealthChecksOutput), lastPage) }) @@ -1153,13 +791,12 @@ func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *requ return } -// To retrieve a list of your hosted zones, send a GET request to the /Route -// 53 API version/hostedzone resource. The response to this request includes -// a HostedZones element with zero, one, or multiple HostedZone child elements. -// By default, the list of hosted zones is displayed on a single page. You can -// control the length of the page that is displayed by using the MaxItems parameter. -// You can use the Marker parameter to control the hosted zone that the list -// begins with. +// To retrieve a list of your hosted zones, send a GET request to the 2013-04-01/hostedzone +// resource. The response to this request includes a HostedZones element with +// zero, one, or multiple HostedZone child elements. By default, the list of +// hosted zones is displayed on a single page. You can control the length of +// the page that is displayed by using the MaxItems parameter. You can use the +// Marker parameter to control the hosted zone that the list begins with. // // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to // a value greater than 100, Amazon Route 53 returns only the first 100. @@ -1171,7 +808,6 @@ func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZones func (c *Route53) ListHostedZonesPages(input *ListHostedZonesInput, fn func(p *ListHostedZonesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListHostedZonesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListHostedZonesOutput), lastPage) }) @@ -1198,13 +834,13 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput } // To retrieve a list of your hosted zones in lexicographic order, send a GET -// request to the /Route 53 API version/hostedzonesbyname resource. The response -// to this request includes a HostedZones element with zero or more HostedZone -// child elements lexicographically ordered by DNS name. By default, the list -// of hosted zones is displayed on a single page. You can control the length -// of the page that is displayed by using the MaxItems parameter. You can use -// the DNSName and HostedZoneId parameters to control the hosted zone that the -// list begins with. +// request to the 2013-04-01/hostedzonesbyname resource. The response to this +// request includes a HostedZones element with zero or more HostedZone child +// elements lexicographically ordered by DNS name. By default, the list of hosted +// zones is displayed on a single page. You can control the length of the page +// that is displayed by using the MaxItems parameter. You can use the DNSName +// and HostedZoneId parameters to control the hosted zone that the list begins +// with. // // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to // a value greater than 100, Amazon Route 53 returns only the first 100. @@ -1286,7 +922,6 @@ func (c *Route53) ListResourceRecordSets(input *ListResourceRecordSetsInput) (*L func (c *Route53) ListResourceRecordSetsPages(input *ListResourceRecordSetsInput, fn func(p *ListResourceRecordSetsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListResourceRecordSetsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListResourceRecordSetsOutput), lastPage) }) @@ -1313,12 +948,12 @@ func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegatio } // To retrieve a list of your reusable delegation sets, send a GET request to -// the /Route 53 API version/delegationset resource. The response to this request -// includes a DelegationSets element with zero, one, or multiple DelegationSet -// child elements. By default, the list of delegation sets is displayed on a -// single page. You can control the length of the page that is displayed by -// using the MaxItems parameter. You can use the Marker parameter to control -// the delegation set that the list begins with. +// the 2013-04-01/delegationset resource. The response to this request includes +// a DelegationSets element with zero, one, or multiple DelegationSet child +// elements. By default, the list of delegation sets is displayed on a single +// page. You can control the length of the page that is displayed by using the +// MaxItems parameter. You can use the Marker parameter to control the delegation +// set that the list begins with. // // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to // a value greater than 100, Amazon Route 53 returns only the first 100. @@ -1380,603 +1015,114 @@ func (c *Route53) ListTagsForResources(input *ListTagsForResourcesInput) (*ListT return out, err } -const opListTrafficPolicies = "ListTrafficPolicies" +const opUpdateHealthCheck = "UpdateHealthCheck" -// ListTrafficPoliciesRequest generates a request for the ListTrafficPolicies operation. -func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (req *request.Request, output *ListTrafficPoliciesOutput) { +// UpdateHealthCheckRequest generates a request for the UpdateHealthCheck operation. +func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req *request.Request, output *UpdateHealthCheckOutput) { op := &request.Operation{ - Name: opListTrafficPolicies, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/trafficpolicies", + Name: opUpdateHealthCheck, + HTTPMethod: "POST", + HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}", } if input == nil { - input = &ListTrafficPoliciesInput{} + input = &UpdateHealthCheckInput{} } req = c.newRequest(op, input, output) - output = &ListTrafficPoliciesOutput{} + output = &UpdateHealthCheckOutput{} req.Data = output return } -// Gets information about the latest version for every traffic policy that is -// associated with the current AWS account. To get the information, send a GET -// request to the /Route 53 API version/trafficpolicy resource. -// -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policies, you can use the maxitems parameter to list -// them in groups of up to 100. -// -// The response includes three values that help you navigate from one group -// of maxitems traffic policies to the next: -// -// IsTruncated If the value of IsTruncated in the response is true, there -// are more traffic policies associated with the current AWS account. -// -// If IsTruncated is false, this response includes the last traffic policy -// that is associated with the current account. -// -// TrafficPolicyIdMarker If IsTruncated is true, TrafficPolicyIdMarker is the -// ID of the first traffic policy in the next group of MaxItems traffic policies. -// If you want to list more traffic policies, make another call to ListTrafficPolicies, -// and specify the value of the TrafficPolicyIdMarker element from the response -// in the TrafficPolicyIdMarker request parameter. -// -// If IsTruncated is false, the TrafficPolicyIdMarker element is omitted from -// the response. +// This action updates an existing health check. // -// MaxItems The value that you specified for the MaxItems parameter in the -// request that produced the current response. -func (c *Route53) ListTrafficPolicies(input *ListTrafficPoliciesInput) (*ListTrafficPoliciesOutput, error) { - req, out := c.ListTrafficPoliciesRequest(input) +// To update a health check, send a POST request to the 2013-04-01/healthcheck/health +// check ID resource. The request body must include an XML document with an +// UpdateHealthCheckRequest element. The response returns an UpdateHealthCheckResponse +// element, which contains metadata about the health check. +func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error) { + req, out := c.UpdateHealthCheckRequest(input) err := req.Send() return out, err } -const opListTrafficPolicyInstances = "ListTrafficPolicyInstances" +const opUpdateHostedZoneComment = "UpdateHostedZoneComment" -// ListTrafficPolicyInstancesRequest generates a request for the ListTrafficPolicyInstances operation. -func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInstancesInput) (req *request.Request, output *ListTrafficPolicyInstancesOutput) { +// UpdateHostedZoneCommentRequest generates a request for the UpdateHostedZoneComment operation. +func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentInput) (req *request.Request, output *UpdateHostedZoneCommentOutput) { op := &request.Operation{ - Name: opListTrafficPolicyInstances, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/trafficpolicyinstances", + Name: opUpdateHostedZoneComment, + HTTPMethod: "POST", + HTTPPath: "/2013-04-01/hostedzone/{Id}", } if input == nil { - input = &ListTrafficPolicyInstancesInput{} + input = &UpdateHostedZoneCommentInput{} } req = c.newRequest(op, input, output) - output = &ListTrafficPolicyInstancesOutput{} + output = &UpdateHostedZoneCommentOutput{} req.Data = output return } -// Gets information about the traffic policy instances that you created by using -// the current AWS account. -// -// After you submit an UpdateTrafficPolicyInstance request, there's a brief -// delay while Amazon Route 53 creates the resource record sets that are specified -// in the traffic policy definition. For more information, see the State response -// element. To get information about the traffic policy instances that are associated -// with the current AWS account, send a GET request to the /Route 53 API version/trafficpolicyinstance -// resource. -// -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policy instances, you can use the MaxItems parameter -// to list them in groups of up to 100. -// -// The response includes five values that help you navigate from one group -// of MaxItems traffic policy instances to the next: -// -// IsTruncated If the value of IsTruncated in the response is true, there -// are more traffic policy instances associated with the current AWS account. -// -// If IsTruncated is false, this response includes the last traffic policy -// instance that is associated with the current account. -// -// MaxItems The value that you specified for the MaxItems parameter in the -// request that produced the current response. +// To update the hosted zone comment, send a POST request to the 2013-04-01/hostedzone/hosted +// zone ID resource. The request body must include an XML document with a UpdateHostedZoneCommentRequest +// element. The response to this request includes the modified HostedZone element. // -// HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker -// If IsTruncated is true, these three values in the response represent the -// first traffic policy instance in the next group of MaxItems traffic policy -// instances. To list more traffic policy instances, make another call to ListTrafficPolicyInstances, -// and specify these values in the corresponding request parameters. -// -// If IsTruncated is false, all three elements are omitted from the response. -func (c *Route53) ListTrafficPolicyInstances(input *ListTrafficPolicyInstancesInput) (*ListTrafficPolicyInstancesOutput, error) { - req, out := c.ListTrafficPolicyInstancesRequest(input) +// The comment can have a maximum length of 256 characters. +func (c *Route53) UpdateHostedZoneComment(input *UpdateHostedZoneCommentInput) (*UpdateHostedZoneCommentOutput, error) { + req, out := c.UpdateHostedZoneCommentRequest(input) err := req.Send() return out, err } -const opListTrafficPolicyInstancesByHostedZone = "ListTrafficPolicyInstancesByHostedZone" - -// ListTrafficPolicyInstancesByHostedZoneRequest generates a request for the ListTrafficPolicyInstancesByHostedZone operation. -func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTrafficPolicyInstancesByHostedZoneInput) (req *request.Request, output *ListTrafficPolicyInstancesByHostedZoneOutput) { - op := &request.Operation{ - Name: opListTrafficPolicyInstancesByHostedZone, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/trafficpolicyinstances/hostedzone", - } - - if input == nil { - input = &ListTrafficPolicyInstancesByHostedZoneInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTrafficPolicyInstancesByHostedZoneOutput{} - req.Data = output - return -} - -// Gets information about the traffic policy instances that you created in a -// specified hosted zone. -// -// After you submit an UpdateTrafficPolicyInstance request, there's a brief -// delay while Amazon Route 53 creates the resource record sets that are specified -// in the traffic policy definition. For more information, see the State response -// element. To get information about the traffic policy instances that you created -// in a specified hosted zone, send a GET request to the /Route 53 API version/trafficpolicyinstance -// resource and include the ID of the hosted zone. -// -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policy instances, you can use the MaxItems parameter -// to list them in groups of up to 100. -// -// The response includes four values that help you navigate from one group -// of MaxItems traffic policy instances to the next: -// -// IsTruncated If the value of IsTruncated in the response is true, there -// are more traffic policy instances associated with the current AWS account. -// -// If IsTruncated is false, this response includes the last traffic policy -// instance that is associated with the current account. -// -// MaxItems The value that you specified for the MaxItems parameter in the -// request that produced the current response. -// -// TrafficPolicyInstanceNameMarker and TrafficPolicyInstanceTypeMarker If IsTruncated -// is true, these two values in the response represent the first traffic policy -// instance in the next group of MaxItems traffic policy instances. To list -// more traffic policy instances, make another call to ListTrafficPolicyInstancesByHostedZone, -// and specify these values in the corresponding request parameters. -// -// If IsTruncated is false, all three elements are omitted from the response. -func (c *Route53) ListTrafficPolicyInstancesByHostedZone(input *ListTrafficPolicyInstancesByHostedZoneInput) (*ListTrafficPolicyInstancesByHostedZoneOutput, error) { - req, out := c.ListTrafficPolicyInstancesByHostedZoneRequest(input) - err := req.Send() - return out, err -} - -const opListTrafficPolicyInstancesByPolicy = "ListTrafficPolicyInstancesByPolicy" - -// ListTrafficPolicyInstancesByPolicyRequest generates a request for the ListTrafficPolicyInstancesByPolicy operation. -func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPolicyInstancesByPolicyInput) (req *request.Request, output *ListTrafficPolicyInstancesByPolicyOutput) { - op := &request.Operation{ - Name: opListTrafficPolicyInstancesByPolicy, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/trafficpolicyinstances/trafficpolicy", - } - - if input == nil { - input = &ListTrafficPolicyInstancesByPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTrafficPolicyInstancesByPolicyOutput{} - req.Data = output - return -} - -// Gets information about the traffic policy instances that you created by using -// a specify traffic policy version. -// -// After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance -// request, there's a brief delay while Amazon Route 53 creates the resource -// record sets that are specified in the traffic policy definition. For more -// information, see the State response element. To get information about the -// traffic policy instances that you created by using a specify traffic policy -// version, send a GET request to the /Route 53 API version/trafficpolicyinstance -// resource and include the ID and version of the traffic policy. -// -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policy instances, you can use the MaxItems parameter -// to list them in groups of up to 100. -// -// The response includes five values that help you navigate from one group -// of MaxItems traffic policy instances to the next: -// -// IsTruncated If the value of IsTruncated in the response is true, there -// are more traffic policy instances associated with the specified traffic policy. -// -// If IsTruncated is false, this response includes the last traffic policy -// instance that is associated with the specified traffic policy. -// -// MaxItems The value that you specified for the MaxItems parameter in the -// request that produced the current response. -// -// HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker -// If IsTruncated is true, these values in the response represent the first -// traffic policy instance in the next group of MaxItems traffic policy instances. -// To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByPolicy, -// and specify these values in the corresponding request parameters. -// -// If IsTruncated is false, all three elements are omitted from the response. -func (c *Route53) ListTrafficPolicyInstancesByPolicy(input *ListTrafficPolicyInstancesByPolicyInput) (*ListTrafficPolicyInstancesByPolicyOutput, error) { - req, out := c.ListTrafficPolicyInstancesByPolicyRequest(input) - err := req.Send() - return out, err -} - -const opListTrafficPolicyVersions = "ListTrafficPolicyVersions" - -// ListTrafficPolicyVersionsRequest generates a request for the ListTrafficPolicyVersions operation. -func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersionsInput) (req *request.Request, output *ListTrafficPolicyVersionsOutput) { - op := &request.Operation{ - Name: opListTrafficPolicyVersions, - HTTPMethod: "GET", - HTTPPath: "/2013-04-01/trafficpolicies/{Id}/versions", - } - - if input == nil { - input = &ListTrafficPolicyVersionsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTrafficPolicyVersionsOutput{} - req.Data = output - return -} - -// Gets information about all of the versions for a specified traffic policy. -// ListTrafficPolicyVersions lists only versions that have not been deleted. -// -// Amazon Route 53 returns a maximum of 100 items in each response. If you -// have a lot of traffic policies, you can use the maxitems parameter to list -// them in groups of up to 100. -// -// The response includes three values that help you navigate from one group -// of maxitemsmaxitems traffic policies to the next: -// -// IsTruncated If the value of IsTruncated in the response is true, there -// are more traffic policy versions associated with the specified traffic policy. -// -// If IsTruncated is false, this response includes the last traffic policy -// version that is associated with the specified traffic policy. -// -// TrafficPolicyVersionMarker The ID of the next traffic policy version that -// is associated with the current AWS account. If you want to list more traffic -// policies, make another call to ListTrafficPolicyVersions, and specify the -// value of the TrafficPolicyVersionMarker element in the TrafficPolicyVersionMarker -// request parameter. -// -// If IsTruncated is false, Amazon Route 53 omits the TrafficPolicyVersionMarker -// element from the response. -// -// MaxItems The value that you specified for the MaxItems parameter in the -// request that produced the current response. -func (c *Route53) ListTrafficPolicyVersions(input *ListTrafficPolicyVersionsInput) (*ListTrafficPolicyVersionsOutput, error) { - req, out := c.ListTrafficPolicyVersionsRequest(input) - err := req.Send() - return out, err -} - -const opUpdateHealthCheck = "UpdateHealthCheck" - -// UpdateHealthCheckRequest generates a request for the UpdateHealthCheck operation. -func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req *request.Request, output *UpdateHealthCheckOutput) { - op := &request.Operation{ - Name: opUpdateHealthCheck, - HTTPMethod: "POST", - HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}", - } - - if input == nil { - input = &UpdateHealthCheckInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateHealthCheckOutput{} - req.Data = output - return -} - -// This action updates an existing health check. -// -// To update a health check, send a POST request to the /Route 53 API version/healthcheck/health -// check ID resource. The request body must include a document with an UpdateHealthCheckRequest -// element. The response returns an UpdateHealthCheckResponse element, which -// contains metadata about the health check. -func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error) { - req, out := c.UpdateHealthCheckRequest(input) - err := req.Send() - return out, err -} - -const opUpdateHostedZoneComment = "UpdateHostedZoneComment" - -// UpdateHostedZoneCommentRequest generates a request for the UpdateHostedZoneComment operation. -func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentInput) (req *request.Request, output *UpdateHostedZoneCommentOutput) { - op := &request.Operation{ - Name: opUpdateHostedZoneComment, - HTTPMethod: "POST", - HTTPPath: "/2013-04-01/hostedzone/{Id}", - } - - if input == nil { - input = &UpdateHostedZoneCommentInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateHostedZoneCommentOutput{} - req.Data = output - return -} - -// To update the hosted zone comment, send a POST request to the /Route 53 API -// version/hostedzone/hosted zone ID resource. The request body must include -// a document with a UpdateHostedZoneCommentRequest element. The response to -// this request includes the modified HostedZone element. -// -// The comment can have a maximum length of 256 characters. -func (c *Route53) UpdateHostedZoneComment(input *UpdateHostedZoneCommentInput) (*UpdateHostedZoneCommentOutput, error) { - req, out := c.UpdateHostedZoneCommentRequest(input) - err := req.Send() - return out, err -} - -const opUpdateTrafficPolicyComment = "UpdateTrafficPolicyComment" - -// UpdateTrafficPolicyCommentRequest generates a request for the UpdateTrafficPolicyComment operation. -func (c *Route53) UpdateTrafficPolicyCommentRequest(input *UpdateTrafficPolicyCommentInput) (req *request.Request, output *UpdateTrafficPolicyCommentOutput) { - op := &request.Operation{ - Name: opUpdateTrafficPolicyComment, - HTTPMethod: "POST", - HTTPPath: "/2013-04-01/trafficpolicy/{Id}/{Version}", - } - - if input == nil { - input = &UpdateTrafficPolicyCommentInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateTrafficPolicyCommentOutput{} - req.Data = output - return -} - -// Updates the comment for a specified traffic policy version. -// -// To update the comment, send a POST request to the /Route 53 API version/trafficpolicy/ -// resource. -// -// The request body must include a document with an UpdateTrafficPolicyCommentRequest -// element. -func (c *Route53) UpdateTrafficPolicyComment(input *UpdateTrafficPolicyCommentInput) (*UpdateTrafficPolicyCommentOutput, error) { - req, out := c.UpdateTrafficPolicyCommentRequest(input) - err := req.Send() - return out, err -} - -const opUpdateTrafficPolicyInstance = "UpdateTrafficPolicyInstance" - -// UpdateTrafficPolicyInstanceRequest generates a request for the UpdateTrafficPolicyInstance operation. -func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyInstanceInput) (req *request.Request, output *UpdateTrafficPolicyInstanceOutput) { - op := &request.Operation{ - Name: opUpdateTrafficPolicyInstance, - HTTPMethod: "POST", - HTTPPath: "/2013-04-01/trafficpolicyinstance/{Id}", - } - - if input == nil { - input = &UpdateTrafficPolicyInstanceInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateTrafficPolicyInstanceOutput{} - req.Data = output - return -} - -// Updates the resource record sets in a specified hosted zone that were created -// based on the settings in a specified traffic policy version. +// Alias resource record sets only: Information about the domain to which you +// are redirecting traffic. // -// The DNS type of the resource record sets that you're updating must match -// the DNS type in the JSON document that is associated with the traffic policy -// version that you're using to update the traffic policy instance. When you -// update a traffic policy instance, Amazon Route 53 continues to respond to -// DNS queries for the root resource record set name (such as example.com) while -// it replaces one group of resource record sets with another. Amazon Route -// 53 performs the following operations: +// For more information and an example, see Creating Alias Resource Record +// Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html) +// in the Amazon Route 53 Developer Guide // -// Amazon Route 53 creates a new group of resource record sets based on the -// specified traffic policy. This is true regardless of how substantial the -// differences are between the existing resource record sets and the new resource -// record sets. When all of the new resource record sets have been created, -// Amazon Route 53 starts to respond to DNS queries for the root resource record -// set name (such as example.com) by using the new resource record sets. Amazon -// Route 53 deletes the old group of resource record sets that are associated -// with the root resource record set name. To update a traffic policy instance, -// send a POST request to the /Route 53 API version/trafficpolicyinstance/traffic -// policy ID resource. The request body must include a document with an UpdateTrafficPolicyInstanceRequest -// element. -func (c *Route53) UpdateTrafficPolicyInstance(input *UpdateTrafficPolicyInstanceInput) (*UpdateTrafficPolicyInstanceOutput, error) { - req, out := c.UpdateTrafficPolicyInstanceRequest(input) - err := req.Send() - return out, err -} - -// A complex type that contains information to uniquely identify the CloudWatch -// alarm that you're associating with a Route 53 health check. -type AlarmIdentifier struct { - _ struct{} `type:"structure"` - - // The name of the CloudWatch alarm. - Name *string `min:"1" type:"string" required:"true"` - - // The CloudWatchRegion that the CloudWatch alarm was created in. - Region *string `min:"1" type:"string" required:"true" enum:"CloudWatchRegion"` -} - -// String returns the string representation -func (s AlarmIdentifier) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AlarmIdentifier) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AlarmIdentifier) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AlarmIdentifier"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Region == nil { - invalidParams.Add(request.NewErrParamRequired("Region")) - } - if s.Region != nil && len(*s.Region) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Region", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Alias resource record sets only: Information about the CloudFront distribution, -// ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set -// to which you are routing traffic. -// -// If you're creating resource record sets for a private hosted zone, note -// the following: -// -// You can create alias resource record sets only for Amazon Route 53 resource -// record sets in the same private hosted zone. Creating alias resource record -// sets for CloudFront distributions, ELB load balancers, and Amazon S3 buckets -// is not supported. You can't create alias resource record sets for failover, -// geolocation, or latency resource record sets in a private hosted zone. For -// more information and an example, see Example: Creating Alias Resource Record -// Sets (http://docs.aws.amazon.com/Route53/latest/APIReference/CreateAliasRRSAPI.html) -// in the Amazon Route 53 API Reference. +// . type AliasTarget struct { - _ struct{} `type:"structure"` - // Alias resource record sets only: The external DNS name associated with the - // AWS Resource. The value that you specify depends on where you want to route - // queries: + // AWS Resource. + // + // For more information and an example, see Creating Alias Resource Record + // Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html) + // in the Amazon Route 53 Developer Guide // - // A CloudFront distribution: Specify the domain name that CloudFront assigned - // when you created your distribution. Your CloudFront distribution must include - // an alternate domain name that matches the name of the resource record set. - // For example, if the name of the resource record set is acme.example.com, - // your CloudFront distribution must include acme.example.com as one of the - // alternate domain names. For more information, see Using Alternate Domain - // Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html) - // in the Amazon CloudFront Developer Guide. An ELB load balancer: Specify the - // DNS name associated with the load balancer. You can get the DNS name by using - // the AWS Management Console, the ELB API, or the AWS CLI. Use the same method - // to get values for HostedZoneId and DNSName. If you get one value from the - // console and the other value from the API or the CLI, creating the resource - // record set will fail. An Elastic Beanstalk environment: Specify the CNAME - // attribute for the environment. (The environment must have a regionalized - // domain name.) An Amazon S3 bucket that is configured as a static website: - // Specify the domain name of the Amazon S3 website endpoint in which you created - // the bucket; for example, s3-website-us-east-1.amazonaws.com. For more information - // about valid values, see the table Amazon Simple Storage Service (S3) Website - // Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) - // in the Amazon Web Services General Reference. For more information about - // using Amazon S3 buckets for websites, see Hosting a Static Website on Amazon - // S3 (http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) in - // the Amazon Simple Storage Service Developer Guide. Another Amazon Route 53 - // resource record set: Specify the value of the Name element for a resource - // record set in the current hosted zone. For more information and an example, - // see Example: Creating Alias Resource Record Sets (http://docs.aws.amazon.com/Route53/latest/APIReference/CreateAliasRRSAPI.html) - // in the Amazon Route 53 API Reference. + // . DNSName *string `type:"string" required:"true"` - // Alias resource record sets only: If you set the value of EvaluateTargetHealth - // to true for the resource record set or sets in an alias, weighted alias, - // latency alias, or failover alias resource record set, and if you specify - // a value for HealthCheckId for every resource record set that is referenced - // by these alias resource record sets, the alias resource record sets inherit - // the health of the referenced resource record sets. - // - // In this configuration, when Amazon Route 53 receives a DNS query for an - // alias resource record set: + // Alias resource record sets only: A boolean value that indicates whether this + // Resource Record Set should respect the health status of any health checks + // associated with the ALIAS target record which it is linked to. // - // Amazon Route 53 looks at the resource record sets that are referenced by - // the alias resource record sets to determine which health checks they're using. - // Amazon Route 53 checks the current status of each health check. (Amazon Route - // 53 periodically checks the health of the endpoint that is specified in a - // health check; it doesn't perform the health check when the DNS query arrives.) - // Based on the status of the health checks, Amazon Route 53 determines which - // resource record sets are healthy. Unhealthy resource record sets are immediately - // removed from consideration. In addition, if all of the resource record sets - // that are referenced by an alias resource record set are unhealthy, that alias - // resource record set also is immediately removed from consideration. Based - // on the configuration of the alias resource record sets (weighted alias or - // latency alias, for example) and the configuration of the resource record - // sets that they reference, Amazon Route 53 chooses a resource record set from - // the healthy resource record sets, and responds to the query. Note the following: - // - // You cannot set EvaluateTargetHealth to true when the alias target is a CloudFront - // distribution. If the AWS resource that you specify in AliasTarget is a resource - // record set or a group of resource record sets (for example, a group of weighted - // resource record sets), but it is not another alias resource record set, we - // recommend that you associate a health check with all of the resource record - // sets in the alias target. For more information, see What Happens When You - // Omit Health Checks? (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html#dns-failover-complex-configs-hc-omitting) - // in the Amazon Route 53 Developer Guide. If you specify an ELB load balancer - // in AliasTarget, Elastic Load Balancing routes queries only to the healthy - // Amazon EC2 instances that are registered with the load balancer. If no Amazon - // EC2 instances are healthy or if the load balancer itself is unhealthy, and - // if EvaluateTargetHealth is true for the corresponding alias resource record - // set, Amazon Route 53 routes queries to other resources. When you create a - // load balancer, you configure settings for Elastic Load Balancing health checks; - // they're not Amazon Route 53 health checks, but they perform a similar function. - // Do not create Amazon Route 53 health checks for the Amazon EC2 instances - // that you register with an ELB load balancer. For more information, see How - // Health Checks Work in More Complex Amazon Route 53 Configurations (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html) - // in the Amazon Route 53 Developer Guide. We recommend that you set EvaluateTargetHealth - // to true only when you have enough idle capacity to handle the failure of - // one or more endpoints. + // For more information and an example, see Creating Alias Resource Record + // Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html) + // in the Amazon Route 53 Developer Guide // - // For more information and examples, see Amazon Route 53 Health Checks and - // DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) - // in the Amazon Route 53 Developer Guide. + // . EvaluateTargetHealth *bool `type:"boolean" required:"true"` - // Alias resource record sets only: The value you use depends on where you want - // to route queries: + // Alias resource record sets only: The value of the hosted zone ID for the + // AWS resource. // - // A CloudFront distribution: Specify Z2FDTNDATAQYW2. An ELB load balancer: - // Specify the value of the hosted zone ID for the load balancer. You can get - // the hosted zone ID by using the AWS Management Console, the ELB API, or the - // AWS CLI. Use the same method to get values for HostedZoneId and DNSName. - // If you get one value from the console and the other value from the API or - // the CLI, creating the resource record set will fail. An Amazon S3 bucket - // that is configured as a static website: Specify the hosted zone ID for the - // Amazon S3 website endpoint in which you created the bucket. For more information - // about valid values, see the table Amazon Simple Storage Service (S3) Website - // Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) - // in the Amazon Web Services General Reference. Another Amazon Route 53 resource - // record set in your hosted zone: Specify the hosted zone ID of your hosted - // zone. (An alias resource record set cannot reference a resource record set - // in a different hosted zone.) For more information and an example, see Example: - // Creating Alias Resource Record Sets (http://docs.aws.amazon.com/Route53/latest/APIReference/CreateAliasRRSAPI.html) - // in the Amazon Route 53 API Reference. + // For more information and an example, see Creating Alias Resource Record + // Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html) + // in the Amazon Route 53 Developer Guide + // + // . HostedZoneId *string `type:"string" required:"true"` + + metadataAliasTarget `json:"-" xml:"-"` +} + +type metadataAliasTarget struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1989,30 +1135,9 @@ func (s AliasTarget) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AliasTarget) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AliasTarget"} - if s.DNSName == nil { - invalidParams.Add(request.NewErrParamRequired("DNSName")) - } - if s.EvaluateTargetHealth == nil { - invalidParams.Add(request.NewErrParamRequired("EvaluateTargetHealth")) - } - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains information about the request to associate a // VPC with an hosted zone. type AssociateVPCWithHostedZoneInput struct { - _ struct{} `locationName:"AssociateVPCWithHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - // Optional: Any comments you want to include about a AssociateVPCWithHostedZoneRequest. Comment *string `type:"string"` @@ -2024,6 +1149,12 @@ type AssociateVPCWithHostedZoneInput struct { // The VPC that you want your hosted zone to be associated with. VPC *VPC `type:"structure" required:"true"` + + metadataAssociateVPCWithHostedZoneInput `json:"-" xml:"-"` +} + +type metadataAssociateVPCWithHostedZoneInput struct { + SDKShapeTraits bool `locationName:"AssociateVPCWithHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` } // String returns the string representation @@ -2036,34 +1167,17 @@ func (s AssociateVPCWithHostedZoneInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateVPCWithHostedZoneInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateVPCWithHostedZoneInput"} - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.VPC == nil { - invalidParams.Add(request.NewErrParamRequired("VPC")) - } - if s.VPC != nil { - if err := s.VPC.Validate(); err != nil { - invalidParams.AddNested("VPC", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type containing the response information for the request. type AssociateVPCWithHostedZoneOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains the ID, the status, and the date and time of // your AssociateVPCWithHostedZoneRequest. ChangeInfo *ChangeInfo `type:"structure" required:"true"` + + metadataAssociateVPCWithHostedZoneOutput `json:"-" xml:"-"` +} + +type metadataAssociateVPCWithHostedZoneOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2079,25 +1193,19 @@ func (s AssociateVPCWithHostedZoneOutput) GoString() string { // A complex type that contains the information for each change in a change // batch request. type Change struct { - _ struct{} `type:"structure"` - - // The action to perform: + // The action to perform. // - // CREATE: Creates a resource record set that has the specified values. DELETE: - // Deletes a existing resource record set that has the specified values for - // Name, Type, SetIdentifier (for latency, weighted, geolocation, and failover - // resource record sets), and TTL (except alias resource record sets, for which - // the TTL is determined by the AWS resource that you're routing DNS queries - // to). UPSERT: If a resource record set does not already exist, Amazon Route - // 53 creates it. If a resource record set does exist, Amazon Route 53 updates - // it with the values in the request. Amazon Route 53 can update an existing - // resource record set only when all of the following values match: Name, Type, - // and SetIdentifier (for weighted, latency, geolocation, and failover resource - // record sets). + // Valid values: CREATE | DELETE | UPSERT Action *string `type:"string" required:"true" enum:"ChangeAction"` // Information about the resource record set to create or delete. ResourceRecordSet *ResourceRecordSet `type:"structure" required:"true"` + + metadataChange `json:"-" xml:"-"` +} + +type metadataChange struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2110,38 +1218,21 @@ func (s Change) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Change) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Change"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - if s.ResourceRecordSet == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceRecordSet")) - } - if s.ResourceRecordSet != nil { - if err := s.ResourceRecordSet.Validate(); err != nil { - invalidParams.AddNested("ResourceRecordSet", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains an optional comment and the changes that you // want to make with a change batch request. type ChangeBatch struct { - _ struct{} `type:"structure"` - // A complex type that contains one Change element for each resource record // set that you want to create or delete. - Changes []*Change `locationNameList:"Change" min:"1" type:"list" required:"true"` + Changes []*Change `locationNameList:"Change" type:"list" required:"true"` // Optional: Any comments you want to include about a change batch request. Comment *string `type:"string"` + + metadataChangeBatch `json:"-" xml:"-"` +} + +type metadataChangeBatch struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2154,39 +1245,12 @@ func (s ChangeBatch) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ChangeBatch) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangeBatch"} - if s.Changes == nil { - invalidParams.Add(request.NewErrParamRequired("Changes")) - } - if s.Changes != nil && len(s.Changes) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Changes", 1)) - } - if s.Changes != nil { - for i, v := range s.Changes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Changes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that lists the changes and information for a ChangeBatch. -type ChangeBatchRecord struct { - _ struct{} `deprecated:"true" type:"structure"` - - // A list of changes made in the ChangeBatch. - Changes []*Change `locationNameList:"Change" min:"1" type:"list"` - +// A complex type that describes change information about changes made to your +// hosted zone. +// +// This element contains an ID that you use when performing a GetChange action +// to get detailed information about the change. +type ChangeInfo struct { // A complex type that describes change information about changes made to your // hosted zone. // @@ -2207,75 +1271,40 @@ type ChangeBatchRecord struct { // The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). // The Z after the time indicates that the time is listed in Coordinated Universal - // Time (UTC). - SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // Time (UTC), which is synonymous with Greenwich Mean Time in this context. + SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + metadataChangeInfo `json:"-" xml:"-"` +} - // The AWS account ID attached to the changes. - Submitter *string `type:"string"` +type metadataChangeInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ChangeBatchRecord) String() string { +func (s ChangeInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ChangeBatchRecord) GoString() string { - return s.String() -} - -// A complex type that describes change information about changes made to your -// hosted zone. -// -// This element contains an ID that you use when performing a GetChange action -// to get detailed information about the change. -type ChangeInfo struct { - _ struct{} `type:"structure"` - - // A complex type that describes change information about changes made to your - // hosted zone. - // - // This element contains an ID that you use when performing a GetChange action - // to get detailed information about the change. - Comment *string `type:"string"` - - // The ID of the request. Use this ID to track when the change has completed - // across all Amazon Route 53 DNS servers. - Id *string `type:"string" required:"true"` - - // The current state of the request. PENDING indicates that this request has - // not yet been applied to all Amazon Route 53 DNS servers. - // - // Valid Values: PENDING | INSYNC - Status *string `type:"string" required:"true" enum:"ChangeStatus"` - - // The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ, - // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). - // The Z after the time indicates that the time is listed in Coordinated Universal - // Time (UTC). - SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` -} - -// String returns the string representation -func (s ChangeInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ChangeInfo) GoString() string { +func (s ChangeInfo) GoString() string { return s.String() } // A complex type that contains a change batch. type ChangeResourceRecordSetsInput struct { - _ struct{} `locationName:"ChangeResourceRecordSetsRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - // A complex type that contains an optional comment and the Changes element. ChangeBatch *ChangeBatch `type:"structure" required:"true"` // The ID of the hosted zone that contains the resource record sets that you // want to change. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataChangeResourceRecordSetsInput `json:"-" xml:"-"` +} + +type metadataChangeResourceRecordSetsInput struct { + SDKShapeTraits bool `locationName:"ChangeResourceRecordSetsRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` } // String returns the string representation @@ -2288,37 +1317,20 @@ func (s ChangeResourceRecordSetsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ChangeResourceRecordSetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangeResourceRecordSetsInput"} - if s.ChangeBatch == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeBatch")) - } - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.ChangeBatch != nil { - if err := s.ChangeBatch.Validate(); err != nil { - invalidParams.AddNested("ChangeBatch", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type containing the response for the request. type ChangeResourceRecordSetsOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains information about changes made to your hosted // zone. // // This element contains an ID that you use when performing a GetChange action // to get detailed information about the change. ChangeInfo *ChangeInfo `type:"structure" required:"true"` + + metadataChangeResourceRecordSetsOutput `json:"-" xml:"-"` +} + +type metadataChangeResourceRecordSetsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2334,14 +1346,12 @@ func (s ChangeResourceRecordSetsOutput) GoString() string { // A complex type containing information about a request to add, change, or // delete the tags that are associated with a resource. type ChangeTagsForResourceInput struct { - _ struct{} `locationName:"ChangeTagsForResourceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - // A complex type that contains a list of Tag elements. Each Tag element identifies // a tag that you want to add or update for the specified resource. - AddTags []*Tag `locationNameList:"Tag" min:"1" type:"list"` + AddTags []*Tag `locationNameList:"Tag" type:"list"` // A list of Tag keys that you want to remove from the specified resource. - RemoveTagKeys []*string `locationNameList:"Key" min:"1" type:"list"` + RemoveTagKeys []*string `locationNameList:"Key" type:"list"` // The ID of the resource for which you want to add, change, or delete tags. ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"` @@ -2352,6 +1362,12 @@ type ChangeTagsForResourceInput struct { // // - The resource type for hosted zones is hostedzone. ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` + + metadataChangeTagsForResourceInput `json:"-" xml:"-"` +} + +type metadataChangeTagsForResourceInput struct { + SDKShapeTraits bool `locationName:"ChangeTagsForResourceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` } // String returns the string representation @@ -2364,104 +1380,28 @@ func (s ChangeTagsForResourceInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ChangeTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangeTagsForResourceInput"} - if s.AddTags != nil && len(s.AddTags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AddTags", 1)) - } - if s.RemoveTagKeys != nil && len(s.RemoveTagKeys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RemoveTagKeys", 1)) - } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Empty response for the request. type ChangeTagsForResourceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ChangeTagsForResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ChangeTagsForResourceOutput) GoString() string { - return s.String() + metadataChangeTagsForResourceOutput `json:"-" xml:"-"` } -// For CLOUDWATCH_METRIC health checks, a complex type that contains information -// about the CloudWatch alarm that you're associating with the health check. -type CloudWatchAlarmConfiguration struct { - _ struct{} `type:"structure"` - - // The arithmetic operation to use when comparing the specified Statistic and - // Threshold. - // - // Valid Values are GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold - // and LessThanOrEqualToThreshold - ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` - - // A list of Dimension elements for the CloudWatch metric that is associated - // with the CloudWatch alarm. For information about the metrics and dimensions - // that CloudWatch supports, see Amazon CloudWatch Namespaces, Dimensions, and - // Metrics Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html). - Dimensions []*Dimension `locationNameList:"Dimension" type:"list"` - - // The number of periods over which data is compared to the specified threshold. - EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"` - - // The name of the CloudWatch metric that is associated with the CloudWatch - // alarm. - MetricName *string `min:"1" type:"string" required:"true"` - - // The namespace of the CloudWatch metric that is associated with the CloudWatch - // alarm. - Namespace *string `min:"1" type:"string" required:"true"` - - // An integer that represents the period in seconds over which the statistic - // is applied. - Period *int64 `min:"60" type:"integer" required:"true"` - - // The statistic to apply to the CloudWatch metric that is associated with the - // CloudWatch alarm. - // - // Valid Values are SampleCount, Average, Sum, Minimum and Maximum - Statistic *string `type:"string" required:"true" enum:"Statistic"` - - // The value that the metric is compared with to determine the state of the - // alarm. For example, if you want the health check to fail if the average TCP - // connection time is greater than 500 milliseconds for more than 60 seconds, - // the threshold is 500. - Threshold *float64 `type:"double" required:"true"` +type metadataChangeTagsForResourceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CloudWatchAlarmConfiguration) String() string { +func (s ChangeTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CloudWatchAlarmConfiguration) GoString() string { +func (s ChangeTagsForResourceOutput) GoString() string { return s.String() } // >A complex type that contains information about the request to create a health // check. type CreateHealthCheckInput struct { - _ struct{} `locationName:"CreateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - // A unique string that identifies the request and that allows failed CreateHealthCheck // requests to be retried without the risk of executing the operation twice. // You must use a unique CallerReference string every time you create a health @@ -2470,10 +1410,16 @@ type CreateHealthCheckInput struct { // // Valid characters are any Unicode code points that are legal in an XML 1.0 // document. The UTF-8 encoding of the value must be less than 128 bytes. - CallerReference *string `min:"1" type:"string" required:"true"` + CallerReference *string `type:"string" required:"true"` // A complex type that contains health check configuration. HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"` + + metadataCreateHealthCheckInput `json:"-" xml:"-"` +} + +type metadataCreateHealthCheckInput struct { + SDKShapeTraits bool `locationName:"CreateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` } // String returns the string representation @@ -2486,39 +1432,19 @@ func (s CreateHealthCheckInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateHealthCheckInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateHealthCheckInput"} - if s.CallerReference == nil { - invalidParams.Add(request.NewErrParamRequired("CallerReference")) - } - if s.CallerReference != nil && len(*s.CallerReference) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CallerReference", 1)) - } - if s.HealthCheckConfig == nil { - invalidParams.Add(request.NewErrParamRequired("HealthCheckConfig")) - } - if s.HealthCheckConfig != nil { - if err := s.HealthCheckConfig.Validate(); err != nil { - invalidParams.AddNested("HealthCheckConfig", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type containing the response information for the new health check. type CreateHealthCheckOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains identifying information about the health check. HealthCheck *HealthCheck `type:"structure" required:"true"` // The unique URL representing the new health check. Location *string `location:"header" locationName:"Location" type:"string" required:"true"` + + metadataCreateHealthCheckOutput `json:"-" xml:"-"` +} + +type metadataCreateHealthCheckOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2534,8 +1460,6 @@ func (s CreateHealthCheckOutput) GoString() string { // A complex type that contains information about the request to create a hosted // zone. type CreateHostedZoneInput struct { - _ struct{} `locationName:"CreateHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - // A unique string that identifies the request and that allows failed CreateHostedZone // requests to be retried without the risk of executing the operation twice. // You must use a unique CallerReference string every time you create a hosted @@ -2544,7 +1468,7 @@ type CreateHostedZoneInput struct { // // Valid characters are any Unicode code points that are legal in an XML 1.0 // document. The UTF-8 encoding of the value must be less than 128 bytes. - CallerReference *string `min:"1" type:"string" required:"true"` + CallerReference *string `type:"string" required:"true"` // The delegation set id of the reusable delgation set whose NS records you // want to assign to the new hosted zone. @@ -2554,10 +1478,9 @@ type CreateHostedZoneInput struct { HostedZoneConfig *HostedZoneConfig `type:"structure"` // The name of the domain. This must be a fully-specified domain, for example, - // www.example.com. The trailing dot is optional; Amazon Route 53 assumes that - // the domain name is fully qualified. This means that Amazon Route 53 treats - // www.example.com (without a trailing dot) and www.example.com. (with a trailing - // dot) as identical. + // www.example.com. The trailing dot is optional; Route 53 assumes that the + // domain name is fully qualified. This means that Route 53 treats www.example.com + // (without a trailing dot) and www.example.com. (with a trailing dot) as identical. // // This is the name you have registered with your DNS registrar. You should // ask your registrar to change the authoritative name servers for your domain @@ -2568,6 +1491,12 @@ type CreateHostedZoneInput struct { // this parameter, your newly created hosted cannot be resolved anywhere other // than the given VPC. VPC *VPC `type:"structure"` + + metadataCreateHostedZoneInput `json:"-" xml:"-"` +} + +type metadataCreateHostedZoneInput struct { + SDKShapeTraits bool `locationName:"CreateHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` } // String returns the string representation @@ -2580,34 +1509,8 @@ func (s CreateHostedZoneInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateHostedZoneInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateHostedZoneInput"} - if s.CallerReference == nil { - invalidParams.Add(request.NewErrParamRequired("CallerReference")) - } - if s.CallerReference != nil && len(*s.CallerReference) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CallerReference", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.VPC != nil { - if err := s.VPC.Validate(); err != nil { - invalidParams.AddNested("VPC", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type containing the response information for the new hosted zone. type CreateHostedZoneOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains information about the request to create a hosted // zone. This includes an ID that you use when you call the GetChange action // to get the current status of the change request. @@ -2623,6 +1526,12 @@ type CreateHostedZoneOutput struct { Location *string `location:"header" locationName:"Location" type:"string" required:"true"` VPC *VPC `type:"structure"` + + metadataCreateHostedZoneOutput `json:"-" xml:"-"` +} + +type metadataCreateHostedZoneOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2636,8 +1545,6 @@ func (s CreateHostedZoneOutput) GoString() string { } type CreateReusableDelegationSetInput struct { - _ struct{} `locationName:"CreateReusableDelegationSetRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - // A unique string that identifies the request and that allows failed CreateReusableDelegationSet // requests to be retried without the risk of executing the operation twice. // You must use a unique CallerReference string every time you create a reusable @@ -2646,11 +1553,17 @@ type CreateReusableDelegationSetInput struct { // // Valid characters are any Unicode code points that are legal in an XML 1.0 // document. The UTF-8 encoding of the value must be less than 128 bytes. - CallerReference *string `min:"1" type:"string" required:"true"` + CallerReference *string `type:"string" required:"true"` // The ID of the hosted zone whose delegation set you want to mark as reusable. // It is an optional parameter. HostedZoneId *string `type:"string"` + + metadataCreateReusableDelegationSetInput `json:"-" xml:"-"` +} + +type metadataCreateReusableDelegationSetInput struct { + SDKShapeTraits bool `locationName:"CreateReusableDelegationSetRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` } // String returns the string representation @@ -2663,30 +1576,18 @@ func (s CreateReusableDelegationSetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReusableDelegationSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReusableDelegationSetInput"} - if s.CallerReference == nil { - invalidParams.Add(request.NewErrParamRequired("CallerReference")) - } - if s.CallerReference != nil && len(*s.CallerReference) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CallerReference", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateReusableDelegationSetOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains name server information. DelegationSet *DelegationSet `type:"structure" required:"true"` // The unique URL representing the new reusbale delegation set. Location *string `location:"header" locationName:"Location" type:"string" required:"true"` + + metadataCreateReusableDelegationSetOutput `json:"-" xml:"-"` +} + +type metadataCreateReusableDelegationSetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2699,585 +1600,396 @@ func (s CreateReusableDelegationSetOutput) GoString() string { return s.String() } -// A complex type that contains information about the traffic policy that you -// want to create. -type CreateTrafficPolicyInput struct { - _ struct{} `locationName:"CreateTrafficPolicyRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` +// A complex type that contains name server information. +type DelegationSet struct { + CallerReference *string `type:"string"` - // Any comments that you want to include about the traffic policy. - Comment *string `type:"string"` + Id *string `type:"string"` + + // A complex type that contains the authoritative name servers for the hosted + // zone. Use the method provided by your domain registrar to add an NS record + // to your domain for each NameServer that is assigned to your hosted zone. + NameServers []*string `locationNameList:"NameServer" type:"list" required:"true"` - // The definition of this traffic policy in JSON format. - Document *string `type:"string" required:"true"` + metadataDelegationSet `json:"-" xml:"-"` +} - // The name of the traffic policy. - Name *string `type:"string" required:"true"` +type metadataDelegationSet struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateTrafficPolicyInput) String() string { +func (s DelegationSet) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTrafficPolicyInput) GoString() string { +func (s DelegationSet) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTrafficPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTrafficPolicyInput"} - if s.Document == nil { - invalidParams.Add(request.NewErrParamRequired("Document")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } +// A complex type containing the request information for delete health check. +type DeleteHealthCheckInput struct { + // The ID of the health check to delete. + HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeleteHealthCheckInput `json:"-" xml:"-"` } -// A complex type that contains information about the resource record sets that -// you want to create based on a specified traffic policy. -type CreateTrafficPolicyInstanceInput struct { - _ struct{} `locationName:"CreateTrafficPolicyInstanceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - - // The ID of the hosted zone in which you want Amazon Route 53 to create resource - // record sets by using the configuration in a traffic policy. - HostedZoneId *string `type:"string" required:"true"` - - // The domain name (such as example.com) or subdomain name (such as www.example.com) - // for which Amazon Route 53 responds to DNS queries by using the resource record - // sets that Amazon Route 53 creates for this traffic policy instance. - Name *string `type:"string" required:"true"` - - // The TTL that you want Amazon Route 53 to assign to all of the resource record - // sets that it creates in the specified hosted zone. - TTL *int64 `type:"long" required:"true"` - - // The ID of the traffic policy that you want to use to create resource record - // sets in the specified hosted zone. - TrafficPolicyId *string `type:"string" required:"true"` - - // The version of the traffic policy that you want to use to create resource - // record sets in the specified hosted zone. - TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"` +type metadataDeleteHealthCheckInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateTrafficPolicyInstanceInput) String() string { +func (s DeleteHealthCheckInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTrafficPolicyInstanceInput) GoString() string { +func (s DeleteHealthCheckInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTrafficPolicyInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTrafficPolicyInstanceInput"} - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.TTL == nil { - invalidParams.Add(request.NewErrParamRequired("TTL")) - } - if s.TrafficPolicyId == nil { - invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId")) - } - if s.TrafficPolicyVersion == nil { - invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion")) - } - if s.TrafficPolicyVersion != nil && *s.TrafficPolicyVersion < 1 { - invalidParams.Add(request.NewErrParamMinValue("TrafficPolicyVersion", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Empty response for the request. +type DeleteHealthCheckOutput struct { + metadataDeleteHealthCheckOutput `json:"-" xml:"-"` } -// A complex type that contains the response information for the CreateTrafficPolicyInstance -// request. -type CreateTrafficPolicyInstanceOutput struct { - _ struct{} `type:"structure"` - - // A unique URL that represents a new traffic policy instance. - Location *string `location:"header" locationName:"Location" type:"string" required:"true"` - - // A complex type that contains settings for the new traffic policy instance. - TrafficPolicyInstance *TrafficPolicyInstance `type:"structure" required:"true"` +type metadataDeleteHealthCheckOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateTrafficPolicyInstanceOutput) String() string { +func (s DeleteHealthCheckOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTrafficPolicyInstanceOutput) GoString() string { +func (s DeleteHealthCheckOutput) GoString() string { return s.String() } -// A complex type that contains the response information for the CreateTrafficPolicy -// request. -type CreateTrafficPolicyOutput struct { - _ struct{} `type:"structure"` +// A complex type that contains information about the hosted zone that you want +// to delete. +type DeleteHostedZoneInput struct { + // The ID of the hosted zone you want to delete. + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - Location *string `location:"header" locationName:"Location" type:"string" required:"true"` + metadataDeleteHostedZoneInput `json:"-" xml:"-"` +} - // A complex type that contains settings for the new traffic policy. - TrafficPolicy *TrafficPolicy `type:"structure" required:"true"` +type metadataDeleteHostedZoneInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateTrafficPolicyOutput) String() string { +func (s DeleteHostedZoneInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTrafficPolicyOutput) GoString() string { +func (s DeleteHostedZoneInput) GoString() string { return s.String() } -// A complex type that contains information about the traffic policy for which -// you want to create a new version. -type CreateTrafficPolicyVersionInput struct { - _ struct{} `locationName:"CreateTrafficPolicyVersionRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - - // Any comments that you want to include about the new traffic policy version. - Comment *string `type:"string"` +// A complex type containing the response information for the request. +type DeleteHostedZoneOutput struct { + // A complex type that contains the ID, the status, and the date and time of + // your delete request. + ChangeInfo *ChangeInfo `type:"structure" required:"true"` - // The definition of a new traffic policy version, in JSON format. You must - // specify the full definition of the new traffic policy. You cannot specify - // just the differences between the new version and a previous version. - Document *string `type:"string" required:"true"` + metadataDeleteHostedZoneOutput `json:"-" xml:"-"` +} - // The ID of the traffic policy for which you want to create a new version. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` +type metadataDeleteHostedZoneOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateTrafficPolicyVersionInput) String() string { +func (s DeleteHostedZoneOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTrafficPolicyVersionInput) GoString() string { +func (s DeleteHostedZoneOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTrafficPolicyVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTrafficPolicyVersionInput"} - if s.Document == nil { - invalidParams.Add(request.NewErrParamRequired("Document")) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } +// A complex type containing the information for the delete request. +type DeleteReusableDelegationSetInput struct { + // The ID of the reusable delegation set you want to delete. + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeleteReusableDelegationSetInput `json:"-" xml:"-"` } -// A complex type that contains the response information for the CreateTrafficPolicyVersion -// request. -type CreateTrafficPolicyVersionOutput struct { - _ struct{} `type:"structure"` - - Location *string `location:"header" locationName:"Location" type:"string" required:"true"` - - // A complex type that contains settings for the new version of the traffic - // policy. - TrafficPolicy *TrafficPolicy `type:"structure" required:"true"` +type metadataDeleteReusableDelegationSetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateTrafficPolicyVersionOutput) String() string { +func (s DeleteReusableDelegationSetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTrafficPolicyVersionOutput) GoString() string { +func (s DeleteReusableDelegationSetInput) GoString() string { return s.String() } -// A complex type that contains name server information. -type DelegationSet struct { - _ struct{} `type:"structure"` - - CallerReference *string `min:"1" type:"string"` - - Id *string `type:"string"` +// Empty response for the request. +type DeleteReusableDelegationSetOutput struct { + metadataDeleteReusableDelegationSetOutput `json:"-" xml:"-"` +} - // A complex type that contains the authoritative name servers for the hosted - // zone. Use the method provided by your domain registrar to add an NS record - // to your domain for each NameServer that is assigned to your hosted zone. - NameServers []*string `locationNameList:"NameServer" min:"1" type:"list" required:"true"` +type metadataDeleteReusableDelegationSetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DelegationSet) String() string { +func (s DeleteReusableDelegationSetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DelegationSet) GoString() string { +func (s DeleteReusableDelegationSetOutput) GoString() string { return s.String() } -// A complex type containing the request information for delete health check. -type DeleteHealthCheckInput struct { - _ struct{} `type:"structure"` +// A complex type that contains information about the request to disassociate +// a VPC from an hosted zone. +type DisassociateVPCFromHostedZoneInput struct { + // Optional: Any comments you want to include about a DisassociateVPCFromHostedZoneRequest. + Comment *string `type:"string"` - // The ID of the health check to delete. - HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` + // The ID of the hosted zone you want to disassociate your VPC from. + // + // Note that you cannot disassociate the last VPC from a hosted zone. + HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The VPC that you want your hosted zone to be disassociated from. + VPC *VPC `type:"structure" required:"true"` + + metadataDisassociateVPCFromHostedZoneInput `json:"-" xml:"-"` +} + +type metadataDisassociateVPCFromHostedZoneInput struct { + SDKShapeTraits bool `locationName:"DisassociateVPCFromHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` } // String returns the string representation -func (s DeleteHealthCheckInput) String() string { +func (s DisassociateVPCFromHostedZoneInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteHealthCheckInput) GoString() string { +func (s DisassociateVPCFromHostedZoneInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteHealthCheckInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteHealthCheckInput"} - if s.HealthCheckId == nil { - invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) - } +// A complex type containing the response information for the request. +type DisassociateVPCFromHostedZoneOutput struct { + // A complex type that contains the ID, the status, and the date and time of + // your DisassociateVPCFromHostedZoneRequest. + ChangeInfo *ChangeInfo `type:"structure" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDisassociateVPCFromHostedZoneOutput `json:"-" xml:"-"` } -// Empty response for the request. -type DeleteHealthCheckOutput struct { - _ struct{} `type:"structure"` +type metadataDisassociateVPCFromHostedZoneOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteHealthCheckOutput) String() string { +func (s DisassociateVPCFromHostedZoneOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteHealthCheckOutput) GoString() string { +func (s DisassociateVPCFromHostedZoneOutput) GoString() string { return s.String() } -// A complex type that contains information about the hosted zone that you want -// to delete. -type DeleteHostedZoneInput struct { - _ struct{} `type:"structure"` - - // The ID of the hosted zone you want to delete. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteHostedZoneInput) String() string { - return awsutil.Prettify(s) -} +// A complex type that contains information about a geo location. +type GeoLocation struct { + // The code for a continent geo location. Note: only continent locations have + // a continent code. + // + // Valid values: AF | AN | AS | EU | OC | NA | SA + // + // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode + // returns an InvalidInput error. + ContinentCode *string `type:"string"` -// GoString returns the string representation -func (s DeleteHostedZoneInput) GoString() string { - return s.String() -} + // The code for a country geo location. The default location uses '*' for the + // country code and will match all locations that are not matched by a geo location. + // + // The default geo location uses a * for the country code. All other country + // codes follow the ISO 3166 two-character code. + CountryCode *string `type:"string"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteHostedZoneInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteHostedZoneInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } + // The code for a country's subdivision (e.g., a province of Canada). A subdivision + // code is only valid with the appropriate country code. + // + // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput + // error. + SubdivisionCode *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGeoLocation `json:"-" xml:"-"` } -// A complex type containing the response information for the request. -type DeleteHostedZoneOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains the ID, the status, and the date and time of - // your delete request. - ChangeInfo *ChangeInfo `type:"structure" required:"true"` +type metadataGeoLocation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteHostedZoneOutput) String() string { +func (s GeoLocation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteHostedZoneOutput) GoString() string { +func (s GeoLocation) GoString() string { return s.String() } -// A complex type containing the information for the delete request. -type DeleteReusableDelegationSetInput struct { - _ struct{} `type:"structure"` - - // The ID of the reusable delegation set you want to delete. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteReusableDelegationSetInput) String() string { - return awsutil.Prettify(s) -} +// A complex type that contains information about a GeoLocation. +type GeoLocationDetails struct { + // The code for a continent geo location. Note: only continent locations have + // a continent code. + ContinentCode *string `type:"string"` -// GoString returns the string representation -func (s DeleteReusableDelegationSetInput) GoString() string { - return s.String() -} + // The name of the continent. This element is only present if ContinentCode + // is also present. + ContinentName *string `type:"string"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReusableDelegationSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReusableDelegationSetInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } + // The code for a country geo location. The default location uses '*' for the + // country code and will match all locations that are not matched by a geo location. + // + // The default geo location uses a * for the country code. All other country + // codes follow the ISO 3166 two-character code. + CountryCode *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The name of the country. This element is only present if CountryCode is also + // present. + CountryName *string `type:"string"` -// Empty response for the request. -type DeleteReusableDelegationSetOutput struct { - _ struct{} `type:"structure"` -} + // The code for a country's subdivision (e.g., a province of Canada). A subdivision + // code is only valid with the appropriate country code. + SubdivisionCode *string `type:"string"` -// String returns the string representation -func (s DeleteReusableDelegationSetOutput) String() string { - return awsutil.Prettify(s) -} + // The name of the subdivision. This element is only present if SubdivisionCode + // is also present. + SubdivisionName *string `type:"string"` -// GoString returns the string representation -func (s DeleteReusableDelegationSetOutput) GoString() string { - return s.String() + metadataGeoLocationDetails `json:"-" xml:"-"` } -// A request to delete a specified traffic policy version. -type DeleteTrafficPolicyInput struct { - _ struct{} `type:"structure"` - - // The ID of the traffic policy that you want to delete. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The version number of the traffic policy that you want to delete. - Version *int64 `location:"uri" locationName:"Version" min:"1" type:"integer" required:"true"` +type metadataGeoLocationDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteTrafficPolicyInput) String() string { +func (s GeoLocationDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteTrafficPolicyInput) GoString() string { +func (s GeoLocationDetails) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTrafficPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTrafficPolicyInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Version == nil { - invalidParams.Add(request.NewErrParamRequired("Version")) - } - if s.Version != nil && *s.Version < 1 { - invalidParams.Add(request.NewErrParamMinValue("Version", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains information about the traffic policy instance -// that you want to delete. -type DeleteTrafficPolicyInstanceInput struct { - _ struct{} `type:"structure"` - - // The ID of the traffic policy instance that you want to delete. - // - // When you delete a traffic policy instance, Amazon Route 53 also deletes - // all of the resource record sets that were created when you created the traffic - // policy instance. +// The input for a GetChange request. +type GetChangeInput struct { + // The ID of the change batch request. The value that you specify here is the + // value that ChangeResourceRecordSets returned in the Id element when you submitted + // the request. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteTrafficPolicyInstanceInput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DeleteTrafficPolicyInstanceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTrafficPolicyInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTrafficPolicyInstanceInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetChangeInput `json:"-" xml:"-"` } -// An empty element. -type DeleteTrafficPolicyInstanceOutput struct { - _ struct{} `type:"structure"` +type metadataGetChangeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteTrafficPolicyInstanceOutput) String() string { +func (s GetChangeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteTrafficPolicyInstanceOutput) GoString() string { +func (s GetChangeInput) GoString() string { return s.String() } -// An empty element. -type DeleteTrafficPolicyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteTrafficPolicyOutput) String() string { - return awsutil.Prettify(s) -} +// A complex type that contains the ChangeInfo element. +type GetChangeOutput struct { + // A complex type that contains information about the specified change batch, + // including the change batch ID, the status of the change, and the date and + // time of the request. + ChangeInfo *ChangeInfo `type:"structure" required:"true"` -// GoString returns the string representation -func (s DeleteTrafficPolicyOutput) GoString() string { - return s.String() + metadataGetChangeOutput `json:"-" xml:"-"` } -// The name and value of a dimension for a CloudWatch metric. -type Dimension struct { - _ struct{} `type:"structure"` - - // The name of the dimension. - Name *string `min:"1" type:"string" required:"true"` - - // The value of the dimension. - Value *string `min:"1" type:"string" required:"true"` +type metadataGetChangeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Dimension) String() string { +func (s GetChangeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Dimension) GoString() string { +func (s GetChangeOutput) GoString() string { return s.String() } -// A complex type that contains information about the request to disassociate -// a VPC from an hosted zone. -type DisassociateVPCFromHostedZoneInput struct { - _ struct{} `locationName:"DisassociateVPCFromHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - - // Optional: Any comments you want to include about a DisassociateVPCFromHostedZoneRequest. - Comment *string `type:"string"` - - // The ID of the hosted zone you want to disassociate your VPC from. - // - // Note that you cannot disassociate the last VPC from a hosted zone. - HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` +// Empty request. +type GetCheckerIpRangesInput struct { + metadataGetCheckerIpRangesInput `json:"-" xml:"-"` +} - // The VPC that you want your hosted zone to be disassociated from. - VPC *VPC `type:"structure" required:"true"` +type metadataGetCheckerIpRangesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DisassociateVPCFromHostedZoneInput) String() string { +func (s GetCheckerIpRangesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateVPCFromHostedZoneInput) GoString() string { +func (s GetCheckerIpRangesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateVPCFromHostedZoneInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateVPCFromHostedZoneInput"} - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.VPC == nil { - invalidParams.Add(request.NewErrParamRequired("VPC")) - } - if s.VPC != nil { - if err := s.VPC.Validate(); err != nil { - invalidParams.AddNested("VPC", err.(request.ErrInvalidParams)) - } - } +// A complex type that contains the CheckerIpRanges element. +type GetCheckerIpRangesOutput struct { + // A complex type that contains sorted list of IP ranges in CIDR format for + // Amazon Route 53 health checkers. + CheckerIpRanges []*string `type:"list" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetCheckerIpRangesOutput `json:"-" xml:"-"` } -// A complex type containing the response information for the request. -type DisassociateVPCFromHostedZoneOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains the ID, the status, and the date and time of - // your DisassociateVPCFromHostedZoneRequest. - ChangeInfo *ChangeInfo `type:"structure" required:"true"` +type metadataGetCheckerIpRangesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DisassociateVPCFromHostedZoneOutput) String() string { +func (s GetCheckerIpRangesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateVPCFromHostedZoneOutput) GoString() string { +func (s GetCheckerIpRangesOutput) GoString() string { return s.String() } -// A complex type that contains information about a geo location. -type GeoLocation struct { - _ struct{} `type:"structure"` - +// A complex type that contains information about the request to get a geo location. +type GetGeoLocationInput struct { // The code for a continent geo location. Note: only continent locations have // a continent code. // @@ -3285,351 +1997,115 @@ type GeoLocation struct { // // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode // returns an InvalidInput error. - ContinentCode *string `min:"2" type:"string"` + ContinentCode *string `location:"querystring" locationName:"continentcode" type:"string"` // The code for a country geo location. The default location uses '*' for the // country code and will match all locations that are not matched by a geo location. // // The default geo location uses a * for the country code. All other country // codes follow the ISO 3166 two-character code. - CountryCode *string `min:"1" type:"string"` + CountryCode *string `location:"querystring" locationName:"countrycode" type:"string"` // The code for a country's subdivision (e.g., a province of Canada). A subdivision // code is only valid with the appropriate country code. // // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput // error. - SubdivisionCode *string `min:"1" type:"string"` + SubdivisionCode *string `location:"querystring" locationName:"subdivisioncode" type:"string"` + + metadataGetGeoLocationInput `json:"-" xml:"-"` +} + +type metadataGetGeoLocationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GeoLocation) String() string { +func (s GetGeoLocationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GeoLocation) GoString() string { +func (s GetGeoLocationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GeoLocation) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GeoLocation"} - if s.ContinentCode != nil && len(*s.ContinentCode) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ContinentCode", 2)) - } - if s.CountryCode != nil && len(*s.CountryCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CountryCode", 1)) - } - if s.SubdivisionCode != nil && len(*s.SubdivisionCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SubdivisionCode", 1)) - } +// A complex type containing information about the specified geo location. +type GetGeoLocationOutput struct { + // A complex type that contains the information about the specified geo location. + GeoLocationDetails *GeoLocationDetails `type:"structure" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetGeoLocationOutput `json:"-" xml:"-"` } -// A complex type that contains information about a GeoLocation. -type GeoLocationDetails struct { - _ struct{} `type:"structure"` - - // The code for a continent geo location. Note: only continent locations have - // a continent code. - ContinentCode *string `min:"2" type:"string"` - - // The name of the continent. This element is only present if ContinentCode - // is also present. - ContinentName *string `min:"1" type:"string"` - - // The code for a country geo location. The default location uses '*' for the - // country code and will match all locations that are not matched by a geo location. - // - // The default geo location uses a * for the country code. All other country - // codes follow the ISO 3166 two-character code. - CountryCode *string `min:"1" type:"string"` - - // The name of the country. This element is only present if CountryCode is also - // present. - CountryName *string `min:"1" type:"string"` - - // The code for a country's subdivision (e.g., a province of Canada). A subdivision - // code is only valid with the appropriate country code. - SubdivisionCode *string `min:"1" type:"string"` - - // The name of the subdivision. This element is only present if SubdivisionCode - // is also present. - SubdivisionName *string `min:"1" type:"string"` +type metadataGetGeoLocationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GeoLocationDetails) String() string { +func (s GetGeoLocationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GeoLocationDetails) GoString() string { +func (s GetGeoLocationOutput) GoString() string { return s.String() } -// The input for a GetChangeDetails request. -type GetChangeDetailsInput struct { - _ struct{} `deprecated:"true" type:"structure"` +// To retrieve a count of all your health checks, send a GET request to the +// 2013-04-01/healthcheckcount resource. +type GetHealthCheckCountInput struct { + metadataGetHealthCheckCountInput `json:"-" xml:"-"` +} - // The ID of the change batch request. The value that you specify here is the - // value that ChangeResourceRecordSets returned in the Id element when you submitted - // the request. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` +type metadataGetHealthCheckCountInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetChangeDetailsInput) String() string { +func (s GetHealthCheckCountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetChangeDetailsInput) GoString() string { +func (s GetHealthCheckCountInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetChangeDetailsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetChangeDetailsInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } +// A complex type that contains the count of health checks associated with the +// current AWS account. +type GetHealthCheckCountOutput struct { + // The number of health checks associated with the current AWS account. + HealthCheckCount *int64 `type:"long" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetHealthCheckCountOutput `json:"-" xml:"-"` } -// A complex type that contains the ChangeBatchRecord element. -type GetChangeDetailsOutput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // A complex type that contains information about the specified change batch, - // including the change batch ID, the status of the change, and the contained - // changes. - ChangeBatchRecord *ChangeBatchRecord `deprecated:"true" type:"structure" required:"true"` +type metadataGetHealthCheckCountOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetChangeDetailsOutput) String() string { +func (s GetHealthCheckCountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetChangeDetailsOutput) GoString() string { - return s.String() -} - -// The input for a GetChange request. -type GetChangeInput struct { - _ struct{} `type:"structure"` - - // The ID of the change batch request. The value that you specify here is the - // value that ChangeResourceRecordSets returned in the Id element when you submitted - // the request. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetChangeInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetChangeInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetChangeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetChangeInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains the ChangeInfo element. -type GetChangeOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains information about the specified change batch, - // including the change batch ID, the status of the change, and the date and - // time of the request. - ChangeInfo *ChangeInfo `type:"structure" required:"true"` -} - -// String returns the string representation -func (s GetChangeOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetChangeOutput) GoString() string { - return s.String() -} - -// Empty request. -type GetCheckerIpRangesInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s GetCheckerIpRangesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetCheckerIpRangesInput) GoString() string { - return s.String() -} - -// A complex type that contains the CheckerIpRanges element. -type GetCheckerIpRangesOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains sorted list of IP ranges in CIDR format for - // Amazon Route 53 health checkers. - CheckerIpRanges []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s GetCheckerIpRangesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetCheckerIpRangesOutput) GoString() string { - return s.String() -} - -// A complex type that contains information about the request to get a geo location. -type GetGeoLocationInput struct { - _ struct{} `type:"structure"` - - // The code for a continent geo location. Note: only continent locations have - // a continent code. - // - // Valid values: AF | AN | AS | EU | OC | NA | SA - // - // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode - // returns an InvalidInput error. - ContinentCode *string `location:"querystring" locationName:"continentcode" min:"2" type:"string"` - - // The code for a country geo location. The default location uses '*' for the - // country code and will match all locations that are not matched by a geo location. - // - // The default geo location uses a * for the country code. All other country - // codes follow the ISO 3166 two-character code. - CountryCode *string `location:"querystring" locationName:"countrycode" min:"1" type:"string"` - - // The code for a country's subdivision (e.g., a province of Canada). A subdivision - // code is only valid with the appropriate country code. - // - // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput - // error. - SubdivisionCode *string `location:"querystring" locationName:"subdivisioncode" min:"1" type:"string"` -} - -// String returns the string representation -func (s GetGeoLocationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetGeoLocationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetGeoLocationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetGeoLocationInput"} - if s.ContinentCode != nil && len(*s.ContinentCode) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ContinentCode", 2)) - } - if s.CountryCode != nil && len(*s.CountryCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CountryCode", 1)) - } - if s.SubdivisionCode != nil && len(*s.SubdivisionCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SubdivisionCode", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type containing information about the specified geo location. -type GetGeoLocationOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains the information about the specified geo location. - GeoLocationDetails *GeoLocationDetails `type:"structure" required:"true"` -} - -// String returns the string representation -func (s GetGeoLocationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetGeoLocationOutput) GoString() string { - return s.String() -} - -// To retrieve a count of all your health checks, send a GET request to the -// /Route 53 API version/healthcheckcount resource. -type GetHealthCheckCountInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s GetHealthCheckCountInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetHealthCheckCountInput) GoString() string { - return s.String() -} - -// A complex type that contains the count of health checks associated with the -// current AWS account. -type GetHealthCheckCountOutput struct { - _ struct{} `type:"structure"` - - // The number of health checks associated with the current AWS account. - HealthCheckCount *int64 `type:"long" required:"true"` -} - -// String returns the string representation -func (s GetHealthCheckCountOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetHealthCheckCountOutput) GoString() string { +func (s GetHealthCheckCountOutput) GoString() string { return s.String() } // A complex type that contains information about the request to get a health // check. type GetHealthCheckInput struct { - _ struct{} `type:"structure"` - // The ID of the health check to retrieve. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` + + metadataGetHealthCheckInput `json:"-" xml:"-"` +} + +type metadataGetHealthCheckInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3642,27 +2118,18 @@ func (s GetHealthCheckInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetHealthCheckInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetHealthCheckInput"} - if s.HealthCheckId == nil { - invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains information about the request to get the most // recent failure reason for a health check. type GetHealthCheckLastFailureReasonInput struct { - _ struct{} `type:"structure"` - // The ID of the health check for which you want to retrieve the reason for // the most recent failure. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` + + metadataGetHealthCheckLastFailureReasonInput `json:"-" xml:"-"` +} + +type metadataGetHealthCheckLastFailureReasonInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3675,27 +2142,18 @@ func (s GetHealthCheckLastFailureReasonInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetHealthCheckLastFailureReasonInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetHealthCheckLastFailureReasonInput"} - if s.HealthCheckId == nil { - invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains information about the most recent failure for // the specified health check. type GetHealthCheckLastFailureReasonOutput struct { - _ struct{} `type:"structure"` - - // A list that contains one HealthCheckObservation element for each Amazon Route - // 53 health checker. + // A list that contains one HealthCheckObservation element for each Route 53 + // health checker. HealthCheckObservations []*HealthCheckObservation `locationNameList:"HealthCheckObservation" type:"list" required:"true"` + + metadataGetHealthCheckLastFailureReasonOutput `json:"-" xml:"-"` +} + +type metadataGetHealthCheckLastFailureReasonOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3710,10 +2168,14 @@ func (s GetHealthCheckLastFailureReasonOutput) GoString() string { // A complex type containing information about the specified health check. type GetHealthCheckOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains the information about the specified health check. HealthCheck *HealthCheck `type:"structure" required:"true"` + + metadataGetHealthCheckOutput `json:"-" xml:"-"` +} + +type metadataGetHealthCheckOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3729,64 +2191,15 @@ func (s GetHealthCheckOutput) GoString() string { // A complex type that contains information about the request to get health // check status for a health check. type GetHealthCheckStatusInput struct { - _ struct{} `type:"structure"` - - // If you want Amazon Route 53 to return this resource record set in response - // to a DNS query only when a health check is passing, include the HealthCheckId - // element and specify the ID of the applicable health check. - // - // Amazon Route 53 determines whether a resource record set is healthy by periodically - // sending a request to the endpoint that is specified in the health check. - // If that endpoint returns an HTTP status code of 2xx or 3xx, the endpoint - // is healthy. If the endpoint returns an HTTP status code of 400 or greater, - // or if the endpoint doesn't respond for a certain amount of time, Amazon Route - // 53 considers the endpoint unhealthy and also considers the resource record - // set unhealthy. - // - // The HealthCheckId element is only useful when Amazon Route 53 is choosing - // between two or more resource record sets to respond to a DNS query, and you - // want Amazon Route 53 to base the choice in part on the status of a health - // check. Configuring health checks only makes sense in the following configurations: - // - // You're checking the health of the resource record sets in a weighted, latency, - // geolocation, or failover resource record set, and you specify health check - // IDs for all of the resource record sets. If the health check for one resource - // record set specifies an endpoint that is not healthy, Amazon Route 53 stops - // responding to queries using the value for that resource record set. You set - // EvaluateTargetHealth to true for the resource record sets in an alias, weighted - // alias, latency alias, geolocation alias, or failover alias resource record - // set, and you specify health check IDs for all of the resource record sets - // that are referenced by the alias resource record sets. For more information - // about this configuration, see EvaluateTargetHealth. - // - // Amazon Route 53 doesn't check the health of the endpoint specified in the - // resource record set, for example, the endpoint specified by the IP address - // in the Value element. When you add a HealthCheckId element to a resource - // record set, Amazon Route 53 checks the health of the endpoint that you specified - // in the health check. - // - // For geolocation resource record sets, if an endpoint is unhealthy, Amazon - // Route 53 looks for a resource record set for the larger, associated geographic - // region. For example, suppose you have resource record sets for a state in - // the United States, for the United States, for North America, and for all - // locations. If the endpoint for the state resource record set is unhealthy, - // Amazon Route 53 checks the resource record sets for the United States, for - // North America, and for all locations (a resource record set for which the - // value of CountryCode is *), in that order, until it finds a resource record - // set for which the endpoint is healthy. - // - // If your health checks specify the endpoint only by domain name, we recommend - // that you create a separate health check for each endpoint. For example, create - // a health check for each HTTP server that is serving content for www.example.com. - // For the value of FullyQualifiedDomainName, specify the domain name of the - // server (such as us-east-1-www.example.com), not the name of the resource - // record sets (example.com). - // - // In this configuration, if you create a health check for which the value - // of FullyQualifiedDomainName matches the name of the resource record sets - // and then associate the health check with those resource record sets, health - // check results will be unpredictable. + // The ID of the health check for which you want to retrieve the most recent + // status. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` + + metadataGetHealthCheckStatusInput `json:"-" xml:"-"` +} + +type metadataGetHealthCheckStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3799,27 +2212,18 @@ func (s GetHealthCheckStatusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetHealthCheckStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetHealthCheckStatusInput"} - if s.HealthCheckId == nil { - invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains information about the status of the specified // health check. type GetHealthCheckStatusOutput struct { - _ struct{} `type:"structure"` - - // A list that contains one HealthCheckObservation element for each Amazon Route - // 53 health checker. + // A list that contains one HealthCheckObservation element for each Route 53 + // health checker. HealthCheckObservations []*HealthCheckObservation `locationNameList:"HealthCheckObservation" type:"list" required:"true"` + + metadataGetHealthCheckStatusOutput `json:"-" xml:"-"` +} + +type metadataGetHealthCheckStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3832,10 +2236,14 @@ func (s GetHealthCheckStatusOutput) GoString() string { return s.String() } -// To retrieve a count of all your hosted zones, send a GET request to the /Route -// 53 API version/hostedzonecount resource. +// To retrieve a count of all your hosted zones, send a GET request to the 2013-04-01/hostedzonecount +// resource. type GetHostedZoneCountInput struct { - _ struct{} `type:"structure"` + metadataGetHostedZoneCountInput `json:"-" xml:"-"` +} + +type metadataGetHostedZoneCountInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3851,10 +2259,14 @@ func (s GetHostedZoneCountInput) GoString() string { // A complex type that contains the count of hosted zones associated with the // current AWS account. type GetHostedZoneCountOutput struct { - _ struct{} `type:"structure"` - // The number of hosted zones associated with the current AWS account. HostedZoneCount *int64 `type:"long" required:"true"` + + metadataGetHostedZoneCountOutput `json:"-" xml:"-"` +} + +type metadataGetHostedZoneCountOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3869,11 +2281,15 @@ func (s GetHostedZoneCountOutput) GoString() string { // The input for a GetHostedZone request. type GetHostedZoneInput struct { - _ struct{} `type:"structure"` - // The ID of the hosted zone for which you want to get a list of the name servers // in the delegation set. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataGetHostedZoneInput `json:"-" xml:"-"` +} + +type metadataGetHostedZoneInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3886,23 +2302,8 @@ func (s GetHostedZoneInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetHostedZoneInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetHostedZoneInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type containing information about the specified hosted zone. type GetHostedZoneOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains information about the name servers for the specified // hosted zone. DelegationSet *DelegationSet `type:"structure"` @@ -3912,7 +2313,13 @@ type GetHostedZoneOutput struct { // A complex type that contains information about VPCs associated with the specified // hosted zone. - VPCs []*VPC `locationNameList:"VPC" min:"1" type:"list"` + VPCs []*VPC `locationNameList:"VPC" type:"list"` + + metadataGetHostedZoneOutput `json:"-" xml:"-"` +} + +type metadataGetHostedZoneOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3927,11 +2334,15 @@ func (s GetHostedZoneOutput) GoString() string { // The input for a GetReusableDelegationSet request. type GetReusableDelegationSetInput struct { - _ struct{} `type:"structure"` - // The ID of the reusable delegation set for which you want to get a list of // the name server. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataGetReusableDelegationSetInput `json:"-" xml:"-"` +} + +type metadataGetReusableDelegationSetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3944,27 +2355,18 @@ func (s GetReusableDelegationSetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetReusableDelegationSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetReusableDelegationSetInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type containing information about the specified reusable delegation // set. type GetReusableDelegationSetOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains the information about the nameservers for the // specified delegation set ID. DelegationSet *DelegationSet `type:"structure" required:"true"` + + metadataGetReusableDelegationSetOutput `json:"-" xml:"-"` +} + +type metadataGetReusableDelegationSetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3977,181 +2379,31 @@ func (s GetReusableDelegationSetOutput) GoString() string { return s.String() } -// Gets information about a specific traffic policy version. To get the information, -// send a GET request to the /Route 53 API version/trafficpolicy resource, and -// specify the ID and the version of the traffic policy. -type GetTrafficPolicyInput struct { - _ struct{} `type:"structure"` +// A complex type that contains identifying information about the health check. +type HealthCheck struct { + // A unique string that identifies the request to create the health check. + CallerReference *string `type:"string" required:"true"` - // The ID of the traffic policy that you want to get information about. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // A complex type that contains the health check configuration. + HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"` + + // The version of the health check. You can optionally pass this value in a + // call to UpdateHealthCheck to prevent overwriting another change to the health + // check. + HealthCheckVersion *int64 `type:"long" required:"true"` + + // The ID of the specified health check. + Id *string `type:"string" required:"true"` + + metadataHealthCheck `json:"-" xml:"-"` +} - // The version number of the traffic policy that you want to get information - // about. - Version *int64 `location:"uri" locationName:"Version" min:"1" type:"integer" required:"true"` +type metadataHealthCheck struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetTrafficPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTrafficPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTrafficPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTrafficPolicyInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Version == nil { - invalidParams.Add(request.NewErrParamRequired("Version")) - } - if s.Version != nil && *s.Version < 1 { - invalidParams.Add(request.NewErrParamMinValue("Version", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// To retrieve a count of all your traffic policy instances, send a GET request -// to the /Route 53 API version/trafficpolicyinstancecount resource. -type GetTrafficPolicyInstanceCountInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s GetTrafficPolicyInstanceCountInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTrafficPolicyInstanceCountInput) GoString() string { - return s.String() -} - -// A complex type that contains information about the number of traffic policy -// instances that are associated with the current AWS account. -type GetTrafficPolicyInstanceCountOutput struct { - _ struct{} `type:"structure"` - - // The number of traffic policy instances that are associated with the current - // AWS account. - TrafficPolicyInstanceCount *int64 `type:"integer" required:"true"` -} - -// String returns the string representation -func (s GetTrafficPolicyInstanceCountOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTrafficPolicyInstanceCountOutput) GoString() string { - return s.String() -} - -// Gets information about a specified traffic policy instance. -// -// To get information about a traffic policy instance, send a GET request to -// the /Route 53 API version/trafficpolicyinstance/Id resource. -type GetTrafficPolicyInstanceInput struct { - _ struct{} `type:"structure"` - - // The ID of the traffic policy instance that you want to get information about. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetTrafficPolicyInstanceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTrafficPolicyInstanceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTrafficPolicyInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTrafficPolicyInstanceInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains information about the resource record sets that -// Amazon Route 53 created based on a specified traffic policy. -type GetTrafficPolicyInstanceOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains settings for the traffic policy instance. - TrafficPolicyInstance *TrafficPolicyInstance `type:"structure" required:"true"` -} - -// String returns the string representation -func (s GetTrafficPolicyInstanceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTrafficPolicyInstanceOutput) GoString() string { - return s.String() -} - -// A complex type that contains the response information for the request. -type GetTrafficPolicyOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains settings for the specified traffic policy. - TrafficPolicy *TrafficPolicy `type:"structure" required:"true"` -} - -// String returns the string representation -func (s GetTrafficPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetTrafficPolicyOutput) GoString() string { - return s.String() -} - -// A complex type that contains identifying information about the health check. -type HealthCheck struct { - _ struct{} `type:"structure"` - - // A unique string that identifies the request to create the health check. - CallerReference *string `min:"1" type:"string" required:"true"` - - // For CLOUDWATCH_METRIC health checks, a complex type that contains information - // about the CloudWatch alarm that you're associating with the health check. - CloudWatchAlarmConfiguration *CloudWatchAlarmConfiguration `type:"structure"` - - // A complex type that contains the health check configuration. - HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"` - - // The version of the health check. You can optionally pass this value in a - // call to UpdateHealthCheck to prevent overwriting another change to the health - // check. - HealthCheckVersion *int64 `min:"1" type:"long" required:"true"` - - // The ID of the specified health check. - Id *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s HealthCheck) String() string { +func (s HealthCheck) String() string { return awsutil.Prettify(s) } @@ -4162,87 +2414,51 @@ func (s HealthCheck) GoString() string { // A complex type that contains the health check configuration. type HealthCheckConfig struct { - _ struct{} `type:"structure"` - - // A complex type that contains information to uniquely identify the CloudWatch - // alarm that you're associating with a Route 53 health check. - AlarmIdentifier *AlarmIdentifier `type:"structure"` - - // For a specified parent health check, a list of HealthCheckId values for the - // associated child health checks. - ChildHealthChecks []*string `locationNameList:"ChildHealthCheck" type:"list"` - - // Specify whether you want Amazon Route 53 to send the value of FullyQualifiedDomainName - // to the endpoint in the client_hello message during TLS negotiation. If you - // don't specify a value for EnableSNI, Amazon Route 53 defaults to true when - // Type is HTTPS or HTTPS_STR_MATCH and defaults to false when Type is any other - // value. - EnableSNI *bool `type:"boolean"` - // The number of consecutive health checks that an endpoint must pass or fail - // for Amazon Route 53 to change the current status of the endpoint from unhealthy + // for Route 53 to change the current status of the endpoint from unhealthy // to healthy or vice versa. // // Valid values are integers between 1 and 10. For more information, see "How // Amazon Route 53 Determines Whether an Endpoint Is Healthy" in the Amazon // Route 53 Developer Guide. - FailureThreshold *int64 `min:"1" type:"integer"` + FailureThreshold *int64 `type:"integer"` // Fully qualified domain name of the instance to be health checked. FullyQualifiedDomainName *string `type:"string"` - // The minimum number of child health checks that must be healthy for Amazon - // Route 53 to consider the parent health check to be healthy. Valid values - // are integers between 0 and 256, inclusive. - HealthThreshold *int64 `type:"integer"` - // IP Address of the instance being checked. IPAddress *string `type:"string"` - // The status of the health check when CloudWatch has insufficient data about - // the state of associated alarm. Valid values are Healthy, Unhealthy and LastKnownStatus. - InsufficientDataHealthStatus *string `type:"string" enum:"InsufficientDataHealthStatus"` - - // A boolean value that indicates whether the status of health check should - // be inverted. For example, if a health check is healthy but Inverted is True, - // then Amazon Route 53 considers the health check to be unhealthy. - Inverted *bool `type:"boolean"` - - // A Boolean value that indicates whether you want Amazon Route 53 to measure - // the latency between health checkers in multiple AWS regions and your endpoint - // and to display CloudWatch latency graphs in the Amazon Route 53 console. - MeasureLatency *bool `type:"boolean"` - // Port on which connection will be opened to the instance to health check. // For HTTP and HTTP_STR_MATCH this defaults to 80 if the port is not specified. // For HTTPS and HTTPS_STR_MATCH this defaults to 443 if the port is not specified. - Port *int64 `min:"1" type:"integer"` - - // A list of HealthCheckRegion values that you want Amazon Route 53 to use to - // perform health checks for the specified endpoint. You must specify at least - // three regions. - Regions []*string `locationNameList:"Region" min:"1" type:"list"` + Port *int64 `type:"integer"` - // The number of seconds between the time that Amazon Route 53 gets a response - // from your endpoint and the time that it sends the next health-check request. + // The number of seconds between the time that Route 53 gets a response from + // your endpoint and the time that it sends the next health-check request. // - // Each Amazon Route 53 health checker makes requests at this interval. Valid - // values are 10 and 30. The default value is 30. - RequestInterval *int64 `min:"10" type:"integer"` + // Each Route 53 health checker makes requests at this interval. Valid values + // are 10 and 30. The default value is 30. + RequestInterval *int64 `type:"integer"` // Path to ping on the instance to check the health. Required for HTTP, HTTPS, - // HTTP_STR_MATCH, and HTTPS_STR_MATCH health checks. The HTTP request is issued + // HTTP_STR_MATCH, and HTTPS_STR_MATCH health checks, HTTP request is issued // to the instance on the given port and path. ResourcePath *string `type:"string"` // A string to search for in the body of a health check response. Required for - // HTTP_STR_MATCH and HTTPS_STR_MATCH health checks. Amazon Route 53 considers - // case when searching for SearchString in the response body. + // HTTP_STR_MATCH and HTTPS_STR_MATCH health checks. SearchString *string `type:"string"` // The type of health check to be performed. Currently supported types are TCP, - // HTTP, HTTPS, HTTP_STR_MATCH, HTTPS_STR_MATCH, CALCULATED and CLOUDWATCH_METRIC. + // HTTP, HTTPS, HTTP_STR_MATCH, and HTTPS_STR_MATCH. Type *string `type:"string" required:"true" enum:"HealthCheckType"` + + metadataHealthCheckConfig `json:"-" xml:"-"` +} + +type metadataHealthCheckConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4255,52 +2471,21 @@ func (s HealthCheckConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *HealthCheckConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HealthCheckConfig"} - if s.FailureThreshold != nil && *s.FailureThreshold < 1 { - invalidParams.Add(request.NewErrParamMinValue("FailureThreshold", 1)) - } - if s.Port != nil && *s.Port < 1 { - invalidParams.Add(request.NewErrParamMinValue("Port", 1)) - } - if s.Regions != nil && len(s.Regions) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Regions", 1)) - } - if s.RequestInterval != nil && *s.RequestInterval < 10 { - invalidParams.Add(request.NewErrParamMinValue("RequestInterval", 10)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.AlarmIdentifier != nil { - if err := s.AlarmIdentifier.Validate(); err != nil { - invalidParams.AddNested("AlarmIdentifier", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains the IP address of a Amazon Route 53 health checker +// A complex type that contains the IP address of a Route 53 health checker // and the reason for the health check status. type HealthCheckObservation struct { - _ struct{} `type:"structure"` - - // The IP address of the Amazon Route 53 health checker that performed this - // health check. + // The IP address of the Route 53 health checker that performed the health check. IPAddress *string `type:"string"` - // The HealthCheckRegion of the Amazon Route 53 health checker that performed - // this health check. - Region *string `min:"1" type:"string" enum:"HealthCheckRegion"` - // A complex type that contains information about the health check status for // the current observation. StatusReport *StatusReport `type:"structure"` + + metadataHealthCheckObservation `json:"-" xml:"-"` +} + +type metadataHealthCheckObservation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4315,10 +2500,8 @@ func (s HealthCheckObservation) GoString() string { // A complex type that contain information about the specified hosted zone. type HostedZone struct { - _ struct{} `type:"structure"` - // A unique string that identifies the request to create the hosted zone. - CallerReference *string `min:"1" type:"string" required:"true"` + CallerReference *string `type:"string" required:"true"` // A complex type that contains the Comment element. Config *HostedZoneConfig `type:"structure"` @@ -4327,10 +2510,9 @@ type HostedZone struct { Id *string `type:"string" required:"true"` // The name of the domain. This must be a fully-specified domain, for example, - // www.example.com. The trailing dot is optional; Amazon Route 53 assumes that - // the domain name is fully qualified. This means that Amazon Route 53 treats - // www.example.com (without a trailing dot) and www.example.com. (with a trailing - // dot) as identical. + // www.example.com. The trailing dot is optional; Route 53 assumes that the + // domain name is fully qualified. This means that Route 53 treats www.example.com + // (without a trailing dot) and www.example.com. (with a trailing dot) as identical. // // This is the name you have registered with your DNS registrar. You should // ask your registrar to change the authoritative name servers for your domain @@ -4339,6 +2521,12 @@ type HostedZone struct { // Total number of resource record sets in the hosted zone. ResourceRecordSetCount *int64 `type:"long"` + + metadataHostedZone `json:"-" xml:"-"` +} + +type metadataHostedZone struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4355,206 +2543,34 @@ func (s HostedZone) GoString() string { // If you don't want to specify a comment, you can omit the HostedZoneConfig // and Comment elements from the XML document. type HostedZoneConfig struct { - _ struct{} `type:"structure"` - // An optional comment about your hosted zone. If you don't want to specify // a comment, you can omit the HostedZoneConfig and Comment elements from the // XML document. Comment *string `type:"string"` + // A value that indicates whether this is a private hosted zone. The value is + // returned in the response; do not specify it in the request. PrivateZone *bool `type:"boolean"` -} -// String returns the string representation -func (s HostedZoneConfig) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HostedZoneConfig) GoString() string { - return s.String() -} - -// The input for a ListChangeBatchesByHostedZone request. -type ListChangeBatchesByHostedZoneInput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The end of the time period you want to see changes for. - EndDate *string `location:"querystring" locationName:"endDate" deprecated:"true" type:"string" required:"true"` - - // The ID of the hosted zone that you want to see changes for. - HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The page marker. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The maximum number of items on a page. - MaxItems *string `location:"querystring" locationName:"maxItems" type:"string"` - - // The start of the time period you want to see changes for. - StartDate *string `location:"querystring" locationName:"startDate" deprecated:"true" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListChangeBatchesByHostedZoneInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListChangeBatchesByHostedZoneInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListChangeBatchesByHostedZoneInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListChangeBatchesByHostedZoneInput"} - if s.EndDate == nil { - invalidParams.Add(request.NewErrParamRequired("EndDate")) - } - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.StartDate == nil { - invalidParams.Add(request.NewErrParamRequired("StartDate")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The input for a ListChangeBatchesByHostedZone request. -type ListChangeBatchesByHostedZoneOutput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The change batches within the given hosted zone and time period. - ChangeBatchRecords []*ChangeBatchRecord `locationNameList:"ChangeBatchRecord" min:"1" deprecated:"true" type:"list" required:"true"` - - // A flag that indicates if there are more change batches to list. - IsTruncated *bool `type:"boolean"` - - // The page marker. - Marker *string `type:"string" required:"true"` - - // The maximum number of items on a page. - MaxItems *string `type:"string" required:"true"` - - // The next page marker. - NextMarker *string `type:"string"` -} - -// String returns the string representation -func (s ListChangeBatchesByHostedZoneOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListChangeBatchesByHostedZoneOutput) GoString() string { - return s.String() -} - -// The input for a ListChangeBatchesByRRSet request. -type ListChangeBatchesByRRSetInput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The end of the time period you want to see changes for. - EndDate *string `location:"querystring" locationName:"endDate" deprecated:"true" type:"string" required:"true"` - - // The ID of the hosted zone that you want to see changes for. - HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The page marker. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // The maximum number of items on a page. - MaxItems *string `location:"querystring" locationName:"maxItems" type:"string"` - - // The name of the RRSet that you want to see changes for. - Name *string `location:"querystring" locationName:"rrSet_name" type:"string" required:"true"` - - // The identifier of the RRSet that you want to see changes for. - SetIdentifier *string `location:"querystring" locationName:"identifier" min:"1" type:"string"` - - // The start of the time period you want to see changes for. - StartDate *string `location:"querystring" locationName:"startDate" deprecated:"true" type:"string" required:"true"` - - // The type of the RRSet that you want to see changes for. - Type *string `location:"querystring" locationName:"type" type:"string" required:"true" enum:"RRType"` -} - -// String returns the string representation -func (s ListChangeBatchesByRRSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListChangeBatchesByRRSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListChangeBatchesByRRSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListChangeBatchesByRRSetInput"} - if s.EndDate == nil { - invalidParams.Add(request.NewErrParamRequired("EndDate")) - } - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.SetIdentifier != nil && len(*s.SetIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SetIdentifier", 1)) - } - if s.StartDate == nil { - invalidParams.Add(request.NewErrParamRequired("StartDate")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataHostedZoneConfig `json:"-" xml:"-"` } -// The input for a ListChangeBatchesByRRSet request. -type ListChangeBatchesByRRSetOutput struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The change batches within the given hosted zone and time period. - ChangeBatchRecords []*ChangeBatchRecord `locationNameList:"ChangeBatchRecord" min:"1" deprecated:"true" type:"list" required:"true"` - - // A flag that indicates if there are more change batches to list. - IsTruncated *bool `type:"boolean"` - - // The page marker. - Marker *string `type:"string" required:"true"` - - // The maximum number of items on a page. - MaxItems *string `type:"string" required:"true"` - - // The next page marker. - NextMarker *string `type:"string"` +type metadataHostedZoneConfig struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListChangeBatchesByRRSetOutput) String() string { +func (s HostedZoneConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListChangeBatchesByRRSetOutput) GoString() string { +func (s HostedZoneConfig) GoString() string { return s.String() } // The input for a ListGeoLocations request. type ListGeoLocationsInput struct { - _ struct{} `type:"structure"` - // The maximum number of geo locations you want in the response body. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` @@ -4566,21 +2582,27 @@ type ListGeoLocationsInput struct { // // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode // returns an InvalidInput error. - StartContinentCode *string `location:"querystring" locationName:"startcontinentcode" min:"2" type:"string"` + StartContinentCode *string `location:"querystring" locationName:"startcontinentcode" type:"string"` // The first country code in the lexicographic ordering of geo locations that // you want the ListGeoLocations request to list. // // The default geo location uses a * for the country code. All other country // codes follow the ISO 3166 two-character code. - StartCountryCode *string `location:"querystring" locationName:"startcountrycode" min:"1" type:"string"` + StartCountryCode *string `location:"querystring" locationName:"startcountrycode" type:"string"` // The first subdivision code in the lexicographic ordering of geo locations // that you want the ListGeoLocations request to list. // // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput // error. - StartSubdivisionCode *string `location:"querystring" locationName:"startsubdivisioncode" min:"1" type:"string"` + StartSubdivisionCode *string `location:"querystring" locationName:"startsubdivisioncode" type:"string"` + + metadataListGeoLocationsInput `json:"-" xml:"-"` +} + +type metadataListGeoLocationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4593,30 +2615,9 @@ func (s ListGeoLocationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListGeoLocationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGeoLocationsInput"} - if s.StartContinentCode != nil && len(*s.StartContinentCode) < 2 { - invalidParams.Add(request.NewErrParamMinLen("StartContinentCode", 2)) - } - if s.StartCountryCode != nil && len(*s.StartCountryCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StartCountryCode", 1)) - } - if s.StartSubdivisionCode != nil && len(*s.StartSubdivisionCode) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StartSubdivisionCode", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type that contains information about the geo locations that are // returned by the request and information about the response. type ListGeoLocationsOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains information about the geo locations that are // returned by the request. GeoLocationDetailsList []*GeoLocationDetails `locationNameList:"GeoLocationDetails" type:"list" required:"true"` @@ -4637,17 +2638,23 @@ type ListGeoLocationsOutput struct { // If the results were truncated, the continent code of the next geo location // in the list. This element is present only if ListGeoLocationsResponse$IsTruncated // is true and the next geo location to list is a continent location. - NextContinentCode *string `min:"2" type:"string"` + NextContinentCode *string `type:"string"` // If the results were truncated, the country code of the next geo location // in the list. This element is present only if ListGeoLocationsResponse$IsTruncated // is true and the next geo location to list is not a continent location. - NextCountryCode *string `min:"1" type:"string"` + NextCountryCode *string `type:"string"` // If the results were truncated, the subdivision code of the next geo location // in the list. This element is present only if ListGeoLocationsResponse$IsTruncated // is true and the next geo location has a subdivision. - NextSubdivisionCode *string `min:"1" type:"string"` + NextSubdivisionCode *string `type:"string"` + + metadataListGeoLocationsOutput `json:"-" xml:"-"` +} + +type metadataListGeoLocationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4660,19 +2667,16 @@ func (s ListGeoLocationsOutput) GoString() string { return s.String() } -// To retrieve a list of your health checks, send a GET request to the /Route -// 53 API version/healthcheck resource. The response to this request includes -// a HealthChecks element with zero or more HealthCheck child elements. By default, -// the list of health checks is displayed on a single page. You can control -// the length of the page that is displayed by using the MaxItems parameter. -// You can use the Marker parameter to control the health check that the list -// begins with. +// To retrieve a list of your health checks, send a GET request to the 2013-04-01/healthcheck +// resource. The response to this request includes a HealthChecks element with +// zero or more HealthCheck child elements. By default, the list of health checks +// is displayed on a single page. You can control the length of the page that +// is displayed by using the MaxItems parameter. You can use the Marker parameter +// to control the health check that the list begins with. // -// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to -// a value greater than 100, Amazon Route 53 returns only the first 100. +// Route 53 returns a maximum of 100 items. If you set MaxItems to a value +// greater than 100, Route 53 returns only the first 100. type ListHealthChecksInput struct { - _ struct{} `type:"structure"` - // If the request returned more than one page of results, submit another request // and specify the value of NextMarker from the last response in the marker // parameter to get the next page of results. @@ -4680,6 +2684,12 @@ type ListHealthChecksInput struct { // Specify the maximum number of health checks to return per page of results. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` + + metadataListHealthChecksInput `json:"-" xml:"-"` +} + +type metadataListHealthChecksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4694,8 +2704,6 @@ func (s ListHealthChecksInput) GoString() string { // A complex type that contains the response for the request. type ListHealthChecksOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains information about the health checks associated // with the current AWS account. HealthChecks []*HealthCheck `locationNameList:"HealthCheck" type:"list" required:"true"` @@ -4723,6 +2731,12 @@ type ListHealthChecksOutput struct { // is true, make another request to ListHealthChecks and include the value of // the NextMarker element in the Marker element to get the next page of results. NextMarker *string `type:"string"` + + metadataListHealthChecksOutput `json:"-" xml:"-"` +} + +type metadataListHealthChecksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4736,20 +2750,18 @@ func (s ListHealthChecksOutput) GoString() string { } // To retrieve a list of your hosted zones in lexicographic order, send a GET -// request to the /Route 53 API version/hostedzonesbyname resource. The response -// to this request includes a HostedZones element with zero or more HostedZone -// child elements lexicographically ordered by DNS name. By default, the list -// of hosted zones is displayed on a single page. You can control the length -// of the page that is displayed by using the MaxItems parameter. You can use -// the DNSName and HostedZoneId parameters to control the hosted zone that the -// list begins with. +// request to the 2013-04-01/hostedzonesbyname resource. The response to this +// request includes a HostedZones element with zero or more HostedZone child +// elements lexicographically ordered by DNS name. By default, the list of hosted +// zones is displayed on a single page. You can control the length of the page +// that is displayed by using the MaxItems parameter. You can use the DNSName +// and HostedZoneId parameters to control the hosted zone that the list begins +// with. // // For more information about listing hosted zones, see Listing the Hosted -// Zones for an AWS Account (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ListInfoOnHostedZone.html) +// Zones for an AWS Account (http://docs.amazonwebservices.com/Route53/latest/DeveloperGuide/ListInfoOnHostedZone.html) // in the Amazon Route 53 Developer Guide. type ListHostedZonesByNameInput struct { - _ struct{} `type:"structure"` - // The first name in the lexicographic ordering of domain names that you want // the ListHostedZonesByNameRequest request to list. // @@ -4765,6 +2777,12 @@ type ListHostedZonesByNameInput struct { // Specify the maximum number of hosted zones to return per page of results. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` + + metadataListHostedZonesByNameInput `json:"-" xml:"-"` +} + +type metadataListHostedZonesByNameInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4779,8 +2797,6 @@ func (s ListHostedZonesByNameInput) GoString() string { // A complex type that contains the response for the request. type ListHostedZonesByNameOutput struct { - _ struct{} `type:"structure"` - // The DNSName value sent in the request. DNSName *string `type:"string"` @@ -4819,932 +2835,414 @@ type ListHostedZonesByNameOutput struct { // in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId // in the ListHostedZonesByNameRequest$HostedZoneId element. NextHostedZoneId *string `type:"string"` -} - -// String returns the string representation -func (s ListHostedZonesByNameOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListHostedZonesByNameOutput) GoString() string { - return s.String() -} - -// To retrieve a list of your hosted zones, send a GET request to the /Route -// 53 API version/hostedzone resource. The response to this request includes -// a HostedZones element with zero or more HostedZone child elements. By default, -// the list of hosted zones is displayed on a single page. You can control the -// length of the page that is displayed by using the MaxItems parameter. You -// can use the Marker parameter to control the hosted zone that the list begins -// with. For more information about listing hosted zones, see Listing the Hosted -// Zones for an AWS Account (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ListInfoOnHostedZone.html) -// in the Amazon Route 53 Developer Guide. -// -// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to -// a value greater than 100, Amazon Route 53 returns only the first 100. -type ListHostedZonesInput struct { - _ struct{} `type:"structure"` - - DelegationSetId *string `location:"querystring" locationName:"delegationsetid" type:"string"` - - // If the request returned more than one page of results, submit another request - // and specify the value of NextMarker from the last response in the marker - // parameter to get the next page of results. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // Specify the maximum number of hosted zones to return per page of results. - MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` -} - -// String returns the string representation -func (s ListHostedZonesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListHostedZonesInput) GoString() string { - return s.String() -} - -// A complex type that contains the response for the request. -type ListHostedZonesOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains information about the hosted zones associated - // with the current AWS account. - HostedZones []*HostedZone `locationNameList:"HostedZone" type:"list" required:"true"` - - // A flag indicating whether there are more hosted zones to be listed. If your - // results were truncated, you can make a follow-up request for the next page - // of results by using the Marker element. - // - // Valid Values: true | false - IsTruncated *bool `type:"boolean" required:"true"` - - // If the request returned more than one page of results, submit another request - // and specify the value of NextMarker from the last response in the marker - // parameter to get the next page of results. - Marker *string `type:"string" required:"true"` - - // The maximum number of hosted zones to be included in the response body. If - // the number of hosted zones associated with this AWS account exceeds MaxItems, - // the value of ListHostedZonesResponse$IsTruncated in the response is true. - // Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker - // in the ListHostedZonesRequest$Marker element to get the next page of results. - MaxItems *string `type:"string" required:"true"` - - // Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated - // is true, make another request to ListHostedZones and include the value of - // the NextMarker element in the Marker element to get the next page of results. - NextMarker *string `type:"string"` -} - -// String returns the string representation -func (s ListHostedZonesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListHostedZonesOutput) GoString() string { - return s.String() -} - -// The input for a ListResourceRecordSets request. -type ListResourceRecordSetsInput struct { - _ struct{} `type:"structure"` - - // The ID of the hosted zone that contains the resource record sets that you - // want to get. - HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The maximum number of records you want in the response body. - MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` - - // Weighted resource record sets only: If results were truncated for a given - // DNS name and type, specify the value of ListResourceRecordSetsResponse$NextRecordIdentifier - // from the previous response to get the next resource record set that has the - // current DNS name and type. - StartRecordIdentifier *string `location:"querystring" locationName:"identifier" min:"1" type:"string"` - - // The first name in the lexicographic ordering of domain names that you want - // the ListResourceRecordSets request to list. - StartRecordName *string `location:"querystring" locationName:"name" type:"string"` - - // The DNS type at which to begin the listing of resource record sets. - // - // Valid values: A | AAAA | CNAME | MX | NS | PTR | SOA | SPF | SRV | TXT - // - // Values for Weighted Resource Record Sets: A | AAAA | CNAME | TXT - // - // Values for Regional Resource Record Sets: A | AAAA | CNAME | TXT - // - // Values for Alias Resource Record Sets: A | AAAA - // - // Constraint: Specifying type without specifying name returns an InvalidInput - // error. - StartRecordType *string `location:"querystring" locationName:"type" type:"string" enum:"RRType"` -} - -// String returns the string representation -func (s ListResourceRecordSetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListResourceRecordSetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListResourceRecordSetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListResourceRecordSetsInput"} - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - if s.StartRecordIdentifier != nil && len(*s.StartRecordIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StartRecordIdentifier", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains information about the resource record sets that -// are returned by the request and information about the response. -type ListResourceRecordSetsOutput struct { - _ struct{} `type:"structure"` - - // A flag that indicates whether there are more resource record sets to be listed. - // If your results were truncated, you can make a follow-up request for the - // next page of results by using the ListResourceRecordSetsResponse$NextRecordName - // element. - // - // Valid Values: true | false - IsTruncated *bool `type:"boolean" required:"true"` - - // The maximum number of records you requested. The maximum value of MaxItems - // is 100. - MaxItems *string `type:"string" required:"true"` - - // Weighted resource record sets only: If results were truncated for a given - // DNS name and type, the value of SetIdentifier for the next resource record - // set that has the current DNS name and type. - NextRecordIdentifier *string `min:"1" type:"string"` - - // If the results were truncated, the name of the next record in the list. This - // element is present only if ListResourceRecordSetsResponse$IsTruncated is - // true. - NextRecordName *string `type:"string"` - - // If the results were truncated, the type of the next record in the list. This - // element is present only if ListResourceRecordSetsResponse$IsTruncated is - // true. - NextRecordType *string `type:"string" enum:"RRType"` - - // A complex type that contains information about the resource record sets that - // are returned by the request. - ResourceRecordSets []*ResourceRecordSet `locationNameList:"ResourceRecordSet" type:"list" required:"true"` -} - -// String returns the string representation -func (s ListResourceRecordSetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListResourceRecordSetsOutput) GoString() string { - return s.String() -} - -// To retrieve a list of your reusable delegation sets, send a GET request to -// the /Route 53 API version/delegationset resource. The response to this request -// includes a DelegationSets element with zero or more DelegationSet child elements. -// By default, the list of reusable delegation sets is displayed on a single -// page. You can control the length of the page that is displayed by using the -// MaxItems parameter. You can use the Marker parameter to control the delegation -// set that the list begins with. -// -// Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to -// a value greater than 100, Amazon Route 53 returns only the first 100. -type ListReusableDelegationSetsInput struct { - _ struct{} `type:"structure"` - - // If the request returned more than one page of results, submit another request - // and specify the value of NextMarker from the last response in the marker - // parameter to get the next page of results. - Marker *string `location:"querystring" locationName:"marker" type:"string"` - - // Specify the maximum number of reusable delegation sets to return per page - // of results. - MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` -} - -// String returns the string representation -func (s ListReusableDelegationSetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListReusableDelegationSetsInput) GoString() string { - return s.String() -} - -// A complex type that contains the response for the request. -type ListReusableDelegationSetsOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains information about the reusable delegation sets - // associated with the current AWS account. - DelegationSets []*DelegationSet `locationNameList:"DelegationSet" type:"list" required:"true"` - - // A flag indicating whether there are more reusable delegation sets to be listed. - // If your results were truncated, you can make a follow-up request for the - // next page of results by using the Marker element. - // - // Valid Values: true | false - IsTruncated *bool `type:"boolean" required:"true"` - - // If the request returned more than one page of results, submit another request - // and specify the value of NextMarker from the last response in the marker - // parameter to get the next page of results. - Marker *string `type:"string" required:"true"` - - // The maximum number of reusable delegation sets to be included in the response - // body. If the number of reusable delegation sets associated with this AWS - // account exceeds MaxItems, the value of ListReusablDelegationSetsResponse$IsTruncated - // in the response is true. Call ListReusableDelegationSets again and specify - // the value of ListReusableDelegationSetsResponse$NextMarker in the ListReusableDelegationSetsRequest$Marker - // element to get the next page of results. - MaxItems *string `type:"string" required:"true"` - - // Indicates where to continue listing reusable delegation sets. If ListReusableDelegationSetsResponse$IsTruncated - // is true, make another request to ListReusableDelegationSets and include the - // value of the NextMarker element in the Marker element to get the next page - // of results. - NextMarker *string `type:"string"` -} - -// String returns the string representation -func (s ListReusableDelegationSetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListReusableDelegationSetsOutput) GoString() string { - return s.String() -} - -// A complex type containing information about a request for a list of the tags -// that are associated with an individual resource. -type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` - - // The ID of the resource for which you want to retrieve tags. - ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"` - - // The type of the resource. - // - // - The resource type for health checks is healthcheck. - // - // - The resource type for hosted zones is hostedzone. - ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` -} - -// 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.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type containing tags for the specified resource. -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - - // A ResourceTagSet containing tags associated with the specified resource. - ResourceTagSet *ResourceTagSet `type:"structure" required:"true"` -} - -// 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() -} - -// A complex type containing information about a request for a list of the tags -// that are associated with up to 10 specified resources. -type ListTagsForResourcesInput struct { - _ struct{} `locationName:"ListTagsForResourcesRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - - // A complex type that contains the ResourceId element for each resource for - // which you want to get a list of tags. - ResourceIds []*string `locationNameList:"ResourceId" min:"1" type:"list" required:"true"` - - // The type of the resources. - // - // - The resource type for health checks is healthcheck. - // - // - The resource type for hosted zones is hostedzone. - ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` -} - -// String returns the string representation -func (s ListTagsForResourcesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListTagsForResourcesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourcesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourcesInput"} - if s.ResourceIds == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceIds")) - } - if s.ResourceIds != nil && len(s.ResourceIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceIds", 1)) - } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataListHostedZonesByNameOutput `json:"-" xml:"-"` } -// A complex type containing tags for the specified resources. -type ListTagsForResourcesOutput struct { - _ struct{} `type:"structure"` - - // A list of ResourceTagSets containing tags associated with the specified resources. - ResourceTagSets []*ResourceTagSet `locationNameList:"ResourceTagSet" type:"list" required:"true"` +type metadataListHostedZonesByNameOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTagsForResourcesOutput) String() string { +func (s ListHostedZonesByNameOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourcesOutput) GoString() string { +func (s ListHostedZonesByNameOutput) GoString() string { return s.String() } -// A complex type that contains the information about the request to list the -// traffic policies that are associated with the current AWS account. -type ListTrafficPoliciesInput struct { - _ struct{} `type:"structure"` +// To retrieve a list of your hosted zones, send a GET request to the 2013-04-01/hostedzone +// resource. The response to this request includes a HostedZones element with +// zero or more HostedZone child elements. By default, the list of hosted zones +// is displayed on a single page. You can control the length of the page that +// is displayed by using the MaxItems parameter. You can use the Marker parameter +// to control the hosted zone that the list begins with. For more information +// about listing hosted zones, see Listing the Hosted Zones for an AWS Account +// (http://docs.amazonwebservices.com/Route53/latest/DeveloperGuide/ListInfoOnHostedZone.html) +// in the Amazon Route 53 Developer Guide. +// +// Route 53 returns a maximum of 100 items. If you set MaxItems to a value +// greater than 100, Route 53 returns only the first 100. +type ListHostedZonesInput struct { + DelegationSetId *string `location:"querystring" locationName:"delegationsetid" type:"string"` + + // If the request returned more than one page of results, submit another request + // and specify the value of NextMarker from the last response in the marker + // parameter to get the next page of results. + Marker *string `location:"querystring" locationName:"marker" type:"string"` - // The maximum number of traffic policies to be included in the response body - // for this request. If you have more than MaxItems traffic policies, the value - // of the IsTruncated element in the response is true, and the value of the - // TrafficPolicyIdMarker element is the ID of the first traffic policy in the - // next group of MaxItems traffic policies. + // Specify the maximum number of hosted zones to return per page of results. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` - // For your first request to ListTrafficPolicies, do not include the TrafficPolicyIdMarker - // parameter. - // - // If you have more traffic policies than the value of MaxItems, ListTrafficPolicies - // returns only the first MaxItems traffic policies. To get the next group of - // MaxItems policies, submit another request to ListTrafficPolicies. For the - // value of TrafficPolicyIdMarker, specify the value of the TrafficPolicyIdMarker - // element that was returned in the previous response. - // - // Policies are listed in the order in which they were created. - TrafficPolicyIdMarker *string `location:"querystring" locationName:"trafficpolicyid" type:"string"` + metadataListHostedZonesInput `json:"-" xml:"-"` +} + +type metadataListHostedZonesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTrafficPoliciesInput) String() string { +func (s ListHostedZonesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPoliciesInput) GoString() string { +func (s ListHostedZonesInput) GoString() string { return s.String() } -// A complex type that contains the response information for the request. -type ListTrafficPoliciesOutput struct { - _ struct{} `type:"structure"` +// A complex type that contains the response for the request. +type ListHostedZonesOutput struct { + // A complex type that contains information about the hosted zones associated + // with the current AWS account. + HostedZones []*HostedZone `locationNameList:"HostedZone" type:"list" required:"true"` - // A flag that indicates whether there are more traffic policies to be listed. - // If the response was truncated, you can get the next group of MaxItems traffic - // policies by calling ListTrafficPolicies again and specifying the value of - // the TrafficPolicyIdMarker element in the TrafficPolicyIdMarker request parameter. + // A flag indicating whether there are more hosted zones to be listed. If your + // results were truncated, you can make a follow-up request for the next page + // of results by using the Marker element. // // Valid Values: true | false IsTruncated *bool `type:"boolean" required:"true"` - // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicies - // that produced the current response. + // If the request returned more than one page of results, submit another request + // and specify the value of NextMarker from the last response in the marker + // parameter to get the next page of results. + Marker *string `type:"string" required:"true"` + + // The maximum number of hosted zones to be included in the response body. If + // the number of hosted zones associated with this AWS account exceeds MaxItems, + // the value of ListHostedZonesResponse$IsTruncated in the response is true. + // Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker + // in the ListHostedZonesRequest$Marker element to get the next page of results. MaxItems *string `type:"string" required:"true"` - // If the value of IsTruncated is true, TrafficPolicyIdMarker is the ID of the - // first traffic policy in the next group of MaxItems traffic policies. - TrafficPolicyIdMarker *string `type:"string" required:"true"` + // Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated + // is true, make another request to ListHostedZones and include the value of + // the NextMarker element in the Marker element to get the next page of results. + NextMarker *string `type:"string"` + + metadataListHostedZonesOutput `json:"-" xml:"-"` +} - // A list that contains one TrafficPolicySummary element for each traffic policy - // that was created by the current AWS account. - TrafficPolicySummaries []*TrafficPolicySummary `locationNameList:"TrafficPolicySummary" type:"list" required:"true"` +type metadataListHostedZonesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTrafficPoliciesOutput) String() string { +func (s ListHostedZonesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPoliciesOutput) GoString() string { +func (s ListHostedZonesOutput) GoString() string { return s.String() } -// A request for the traffic policy instances that you created in a specified -// hosted zone. -type ListTrafficPolicyInstancesByHostedZoneInput struct { - _ struct{} `type:"structure"` - - // The ID of the hosted zone for which you want to list traffic policy instances. - HostedZoneId *string `location:"querystring" locationName:"id" type:"string" required:"true"` - - // The maximum number of traffic policy instances to be included in the response - // body for this request. If you have more than MaxItems traffic policy instances, - // the value of the IsTruncated element in the response is true, and the values - // of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker - // represent the first traffic policy instance in the next group of MaxItems - // traffic policy instances. +// The input for a ListResourceRecordSets request. +type ListResourceRecordSetsInput struct { + // The ID of the hosted zone that contains the resource record sets that you + // want to get. + HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The maximum number of records you want in the response body. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` - // For the first request to ListTrafficPolicyInstancesByHostedZone, omit this - // value. + // Weighted resource record sets only: If results were truncated for a given + // DNS name and type, specify the value of ListResourceRecordSetsResponse$NextRecordIdentifier + // from the previous response to get the next resource record set that has the + // current DNS name and type. + StartRecordIdentifier *string `location:"querystring" locationName:"identifier" type:"string"` + + // The first name in the lexicographic ordering of domain names that you want + // the ListResourceRecordSets request to list. + StartRecordName *string `location:"querystring" locationName:"name" type:"string"` + + // The DNS type at which to begin the listing of resource record sets. // - // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker - // is the name of the first traffic policy instance in the next group of MaxItems - // traffic policy instances. + // Valid values: A | AAAA | CNAME | MX | NS | PTR | SOA | SPF | SRV | TXT // - // If the value of IsTruncated in the previous response was false, there are - // no more traffic policy instances to get for this hosted zone. + // Values for Weighted Resource Record Sets: A | AAAA | CNAME | TXT // - // If the value of IsTruncated in the previous response was false, omit this - // value. - TrafficPolicyInstanceNameMarker *string `location:"querystring" locationName:"trafficpolicyinstancename" type:"string"` - - // For the first request to ListTrafficPolicyInstancesByHostedZone, omit this - // value. + // Values for Regional Resource Record Sets: A | AAAA | CNAME | TXT // - // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker - // is the DNS type of the first traffic policy instance in the next group of - // MaxItems traffic policy instances. + // Values for Alias Resource Record Sets: A | AAAA // - // If the value of IsTruncated in the previous response was false, there are - // no more traffic policy instances to get for this hosted zone. - TrafficPolicyInstanceTypeMarker *string `location:"querystring" locationName:"trafficpolicyinstancetype" type:"string" enum:"RRType"` + // Constraint: Specifying type without specifying name returns an InvalidInput + // error. + StartRecordType *string `location:"querystring" locationName:"type" type:"string" enum:"RRType"` + + metadataListResourceRecordSetsInput `json:"-" xml:"-"` +} + +type metadataListResourceRecordSetsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTrafficPolicyInstancesByHostedZoneInput) String() string { +func (s ListResourceRecordSetsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPolicyInstancesByHostedZoneInput) GoString() string { +func (s ListResourceRecordSetsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTrafficPolicyInstancesByHostedZoneInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyInstancesByHostedZoneInput"} - if s.HostedZoneId == nil { - invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains the response information for the request. -type ListTrafficPolicyInstancesByHostedZoneOutput struct { - _ struct{} `type:"structure"` - - // A flag that indicates whether there are more traffic policy instances to - // be listed. If the response was truncated, you can get the next group of MaxItems - // traffic policy instances by calling ListTrafficPolicyInstancesByHostedZone - // again and specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, - // and TrafficPolicyInstanceTypeMarker elements in the corresponding request - // parameters. +// A complex type that contains information about the resource record sets that +// are returned by the request and information about the response. +type ListResourceRecordSetsOutput struct { + // A flag that indicates whether there are more resource record sets to be listed. + // If your results were truncated, you can make a follow-up request for the + // next page of results by using the ListResourceRecordSetsResponse$NextRecordName + // element. // // Valid Values: true | false IsTruncated *bool `type:"boolean" required:"true"` - // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstancesByHostedZone - // that produced the current response. + // The maximum number of records you requested. The maximum value of MaxItems + // is 100. MaxItems *string `type:"string" required:"true"` - // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the - // first traffic policy instance in the next group of MaxItems traffic policy - // instances. - TrafficPolicyInstanceNameMarker *string `type:"string"` + // Weighted resource record sets only: If results were truncated for a given + // DNS name and type, the value of SetIdentifier for the next resource record + // set that has the current DNS name and type. + NextRecordIdentifier *string `type:"string"` + + // If the results were truncated, the name of the next record in the list. This + // element is present only if ListResourceRecordSetsResponse$IsTruncated is + // true. + NextRecordName *string `type:"string"` + + // If the results were truncated, the type of the next record in the list. This + // element is present only if ListResourceRecordSetsResponse$IsTruncated is + // true. + NextRecordType *string `type:"string" enum:"RRType"` + + // A complex type that contains information about the resource record sets that + // are returned by the request. + ResourceRecordSets []*ResourceRecordSet `locationNameList:"ResourceRecordSet" type:"list" required:"true"` - // If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of - // the resource record sets that are associated with the first traffic policy - // instance in the next group of MaxItems traffic policy instances. - TrafficPolicyInstanceTypeMarker *string `type:"string" enum:"RRType"` + metadataListResourceRecordSetsOutput `json:"-" xml:"-"` +} - // A list that contains one TrafficPolicyInstance element for each traffic policy - // instance that matches the elements in the request. - TrafficPolicyInstances []*TrafficPolicyInstance `locationNameList:"TrafficPolicyInstance" type:"list" required:"true"` +type metadataListResourceRecordSetsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTrafficPolicyInstancesByHostedZoneOutput) String() string { +func (s ListResourceRecordSetsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPolicyInstancesByHostedZoneOutput) GoString() string { +func (s ListResourceRecordSetsOutput) GoString() string { return s.String() } -// A complex type that contains the information about the request to list your -// traffic policy instances. -type ListTrafficPolicyInstancesByPolicyInput struct { - _ struct{} `type:"structure"` +// To retrieve a list of your reusable delegation sets, send a GET request to +// the 2013-04-01/delegationset resource. The response to this request includes +// a DelegationSets element with zero or more DelegationSet child elements. +// By default, the list of reusable delegation sets is displayed on a single +// page. You can control the length of the page that is displayed by using the +// MaxItems parameter. You can use the Marker parameter to control the delegation +// set that the list begins with. +// +// Route 53 returns a maximum of 100 items. If you set MaxItems to a value +// greater than 100, Route 53 returns only the first 100. +type ListReusableDelegationSetsInput struct { + // If the request returned more than one page of results, submit another request + // and specify the value of NextMarker from the last response in the marker + // parameter to get the next page of results. + Marker *string `location:"querystring" locationName:"marker" type:"string"` - // For the first request to ListTrafficPolicyInstancesByPolicy, omit this value. - // - // If the value of IsTruncated in the previous response was true, HostedZoneIdMarker - // is the ID of the hosted zone for the first traffic policy instance in the - // next group of MaxItems traffic policy instances. - // - // If the value of IsTruncated in the previous response was false, there are - // no more traffic policy instances to get for this hosted zone. - // - // If the value of IsTruncated in the previous response was false, omit this - // value. - HostedZoneIdMarker *string `location:"querystring" locationName:"hostedzoneid" type:"string"` - - // The maximum number of traffic policy instances to be included in the response - // body for this request. If you have more than MaxItems traffic policy instances, - // the value of the IsTruncated element in the response is true, and the values - // of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker - // represent the first traffic policy instance in the next group of MaxItems - // traffic policy instances. + // Specify the maximum number of reusable delegation sets to return per page + // of results. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` - // The ID of the traffic policy for which you want to list traffic policy instances. - TrafficPolicyId *string `location:"querystring" locationName:"id" type:"string" required:"true"` - - // For the first request to ListTrafficPolicyInstancesByPolicy, omit this value. - // - // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker - // is the name of the first traffic policy instance in the next group of MaxItems - // traffic policy instances. - // - // If the value of IsTruncated in the previous response was false, there are - // no more traffic policy instances to get for this hosted zone. - // - // If the value of IsTruncated in the previous response was false, omit this - // value. - TrafficPolicyInstanceNameMarker *string `location:"querystring" locationName:"trafficpolicyinstancename" type:"string"` - - // For the first request to ListTrafficPolicyInstancesByPolicy, omit this value. - // - // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker - // is the DNS type of the first traffic policy instance in the next group of - // MaxItems traffic policy instances. - // - // If the value of IsTruncated in the previous response was false, there are - // no more traffic policy instances to get for this hosted zone. - TrafficPolicyInstanceTypeMarker *string `location:"querystring" locationName:"trafficpolicyinstancetype" type:"string" enum:"RRType"` + metadataListReusableDelegationSetsInput `json:"-" xml:"-"` +} - // The version of the traffic policy for which you want to list traffic policy - // instances. The version must be associated with the traffic policy that is - // specified by TrafficPolicyId. - TrafficPolicyVersion *int64 `location:"querystring" locationName:"version" min:"1" type:"integer" required:"true"` +type metadataListReusableDelegationSetsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTrafficPolicyInstancesByPolicyInput) String() string { +func (s ListReusableDelegationSetsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPolicyInstancesByPolicyInput) GoString() string { +func (s ListReusableDelegationSetsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTrafficPolicyInstancesByPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyInstancesByPolicyInput"} - if s.TrafficPolicyId == nil { - invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId")) - } - if s.TrafficPolicyVersion == nil { - invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion")) - } - if s.TrafficPolicyVersion != nil && *s.TrafficPolicyVersion < 1 { - invalidParams.Add(request.NewErrParamMinValue("TrafficPolicyVersion", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains the response information for the request. -type ListTrafficPolicyInstancesByPolicyOutput struct { - _ struct{} `type:"structure"` - - // If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of - // the first traffic policy instance in the next group of MaxItems traffic policy - // instances. - HostedZoneIdMarker *string `type:"string"` +// A complex type that contains the response for the request. +type ListReusableDelegationSetsOutput struct { + // A complex type that contains information about the reusable delegation sets + // associated with the current AWS account. + DelegationSets []*DelegationSet `locationNameList:"DelegationSet" type:"list" required:"true"` - // A flag that indicates whether there are more traffic policy instances to - // be listed. If the response was truncated, you can get the next group of MaxItems - // traffic policy instances by calling ListTrafficPolicyInstancesByPolicy again - // and specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, - // and TrafficPolicyInstanceTypeMarker elements in the corresponding request - // parameters. + // A flag indicating whether there are more reusable delegation sets to be listed. + // If your results were truncated, you can make a follow-up request for the + // next page of results by using the Marker element. // // Valid Values: true | false IsTruncated *bool `type:"boolean" required:"true"` - // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstancesByPolicy - // that produced the current response. + // If the request returned more than one page of results, submit another request + // and specify the value of NextMarker from the last response in the marker + // parameter to get the next page of results. + Marker *string `type:"string" required:"true"` + + // The maximum number of reusable delegation sets to be included in the response + // body. If the number of reusable delegation sets associated with this AWS + // account exceeds MaxItems, the value of ListReusablDelegationSetsResponse$IsTruncated + // in the response is true. Call ListReusableDelegationSets again and specify + // the value of ListReusableDelegationSetsResponse$NextMarker in the ListReusableDelegationSetsRequest$Marker + // element to get the next page of results. MaxItems *string `type:"string" required:"true"` - // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the - // first traffic policy instance in the next group of MaxItems traffic policy - // instances. - TrafficPolicyInstanceNameMarker *string `type:"string"` + // Indicates where to continue listing reusable delegation sets. If ListReusableDelegationSetsResponse$IsTruncated + // is true, make another request to ListReusableDelegationSets and include the + // value of the NextMarker element in the Marker element to get the next page + // of results. + NextMarker *string `type:"string"` - // If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of - // the resource record sets that are associated with the first traffic policy - // instance in the next group of MaxItems traffic policy instances. - TrafficPolicyInstanceTypeMarker *string `type:"string" enum:"RRType"` + metadataListReusableDelegationSetsOutput `json:"-" xml:"-"` +} - // A list that contains one TrafficPolicyInstance element for each traffic policy - // instance that matches the elements in the request. - TrafficPolicyInstances []*TrafficPolicyInstance `locationNameList:"TrafficPolicyInstance" type:"list" required:"true"` +type metadataListReusableDelegationSetsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTrafficPolicyInstancesByPolicyOutput) String() string { +func (s ListReusableDelegationSetsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPolicyInstancesByPolicyOutput) GoString() string { +func (s ListReusableDelegationSetsOutput) GoString() string { return s.String() } -// A complex type that contains the information about the request to list your -// traffic policy instances. -type ListTrafficPolicyInstancesInput struct { - _ struct{} `type:"structure"` +// A complex type containing information about a request for a list of the tags +// that are associated with an individual resource. +type ListTagsForResourceInput struct { + // The ID of the resource for which you want to retrieve tags. + ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"` - // For the first request to ListTrafficPolicyInstances, omit this value. + // The type of the resource. // - // If the value of IsTruncated in the previous response was true, you have - // more traffic policy instances. To get the next group of MaxItems traffic - // policy instances, submit another ListTrafficPolicyInstances request. For - // the value of HostedZoneIdMarker, specify the value of HostedZoneIdMarker - // from the previous response, which is the hosted zone ID of the first traffic - // policy instance in the next group of MaxItems traffic policy instances. + // - The resource type for health checks is healthcheck. // - // If the value of IsTruncated in the previous response was false, there are - // no more traffic policy instances to get. - HostedZoneIdMarker *string `location:"querystring" locationName:"hostedzoneid" type:"string"` - - // The maximum number of traffic policy instances to be included in the response - // body for this request. If you have more than MaxItems traffic policy instances, - // the value of the IsTruncated element in the response is true, and the values - // of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker - // represent the first traffic policy instance in the next group of MaxItems - // traffic policy instances. - MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` + // - The resource type for hosted zones is hostedzone. + ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` - // For the first request to ListTrafficPolicyInstances, omit this value. - // - // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker - // is the name of the first traffic policy instance in the next group of MaxItems - // traffic policy instances. - // - // If the value of IsTruncated in the previous response was false, there are - // no more traffic policy instances to get. - TrafficPolicyInstanceNameMarker *string `location:"querystring" locationName:"trafficpolicyinstancename" type:"string"` + metadataListTagsForResourceInput `json:"-" xml:"-"` +} - // For the first request to ListTrafficPolicyInstances, omit this value. - // - // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker - // is the DNS type of the first traffic policy instance in the next group of - // MaxItems traffic policy instances. - // - // If the value of IsTruncated in the previous response was false, there are - // no more traffic policy instances to get. - TrafficPolicyInstanceTypeMarker *string `location:"querystring" locationName:"trafficpolicyinstancetype" type:"string" enum:"RRType"` +type metadataListTagsForResourceInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTrafficPolicyInstancesInput) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPolicyInstancesInput) GoString() string { +func (s ListTagsForResourceInput) GoString() string { return s.String() } -// A complex type that contains the response information for the request. -type ListTrafficPolicyInstancesOutput struct { - _ struct{} `type:"structure"` - - // If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of - // the first traffic policy instance in the next group of MaxItems traffic policy - // instances. - HostedZoneIdMarker *string `type:"string"` - - // A flag that indicates whether there are more traffic policy instances to - // be listed. If the response was truncated, you can get the next group of MaxItems - // traffic policy instances by calling ListTrafficPolicyInstances again and - // specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, - // and TrafficPolicyInstanceTypeMarker elements in the corresponding request - // parameters. - // - // Valid Values: true | false - IsTruncated *bool `type:"boolean" required:"true"` - - // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstances - // that produced the current response. - MaxItems *string `type:"string" required:"true"` - - // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the - // first traffic policy instance in the next group of MaxItems traffic policy - // instances. - TrafficPolicyInstanceNameMarker *string `type:"string"` +// A complex type containing tags for the specified resource. +type ListTagsForResourceOutput struct { + // A ResourceTagSet containing tags associated with the specified resource. + ResourceTagSet *ResourceTagSet `type:"structure" required:"true"` - // If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of - // the resource record sets that are associated with the first traffic policy - // instance in the next group of MaxItems traffic policy instances. - TrafficPolicyInstanceTypeMarker *string `type:"string" enum:"RRType"` + metadataListTagsForResourceOutput `json:"-" xml:"-"` +} - // A list that contains one TrafficPolicyInstance element for each traffic policy - // instance that matches the elements in the request. - TrafficPolicyInstances []*TrafficPolicyInstance `locationNameList:"TrafficPolicyInstance" type:"list" required:"true"` +type metadataListTagsForResourceOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTrafficPolicyInstancesOutput) String() string { +func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPolicyInstancesOutput) GoString() string { +func (s ListTagsForResourceOutput) GoString() string { return s.String() } -// A complex type that contains the information about the request to list your -// traffic policies. -type ListTrafficPolicyVersionsInput struct { - _ struct{} `type:"structure"` - - // Specify the value of Id of the traffic policy for which you want to list - // all versions. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The maximum number of traffic policy versions that you want Amazon Route - // 53 to include in the response body for this request. If the specified traffic - // policy has more than MaxItems versions, the value of the IsTruncated element - // in the response is true, and the value of the TrafficPolicyVersionMarker - // element is the ID of the first version in the next group of MaxItems traffic - // policy versions. - MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` +// A complex type containing information about a request for a list of the tags +// that are associated with up to 10 specified resources. +type ListTagsForResourcesInput struct { + // A complex type that contains the ResourceId element for each resource for + // which you want to get a list of tags. + ResourceIds []*string `locationNameList:"ResourceId" type:"list" required:"true"` - // For your first request to ListTrafficPolicyVersions, do not include the TrafficPolicyVersionMarker - // parameter. + // The type of the resources. // - // If you have more traffic policy versions than the value of MaxItems, ListTrafficPolicyVersions - // returns only the first group of MaxItems versions. To get the next group - // of MaxItems traffic policy versions, submit another request to ListTrafficPolicyVersions. - // For the value of TrafficPolicyVersionMarker, specify the value of the TrafficPolicyVersionMarker - // element that was returned in the previous response. + // - The resource type for health checks is healthcheck. // - // Traffic policy versions are listed in sequential order. - TrafficPolicyVersionMarker *string `location:"querystring" locationName:"trafficpolicyversion" type:"string"` + // - The resource type for hosted zones is hostedzone. + ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` + + metadataListTagsForResourcesInput `json:"-" xml:"-"` +} + +type metadataListTagsForResourcesInput struct { + SDKShapeTraits bool `locationName:"ListTagsForResourcesRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` } // String returns the string representation -func (s ListTrafficPolicyVersionsInput) String() string { +func (s ListTagsForResourcesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPolicyVersionsInput) GoString() string { +func (s ListTagsForResourcesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTrafficPolicyVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyVersionsInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } +// A complex type containing tags for the specified resources. +type ListTagsForResourcesOutput struct { + // A list of ResourceTagSets containing tags associated with the specified resources. + ResourceTagSets []*ResourceTagSet `locationNameList:"ResourceTagSet" type:"list" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataListTagsForResourcesOutput `json:"-" xml:"-"` } -// A complex type that contains the response information for the request. -type ListTrafficPolicyVersionsOutput struct { - _ struct{} `type:"structure"` - - // A flag that indicates whether there are more traffic policies to be listed. - // If the response was truncated, you can get the next group of maxitems traffic - // policies by calling ListTrafficPolicyVersions again and specifying the value - // of the NextMarker element in the marker parameter. - // - // Valid Values: true | false - IsTruncated *bool `type:"boolean" required:"true"` - - // The value that you specified for the maxitems parameter in the call to ListTrafficPolicyVersions - // that produced the current response. - MaxItems *string `type:"string" required:"true"` - - // A list that contains one TrafficPolicy element for each traffic policy version - // that is associated with the specified traffic policy. - TrafficPolicies []*TrafficPolicy `locationNameList:"TrafficPolicy" type:"list" required:"true"` - - // If IsTruncated is true, the value of TrafficPolicyVersionMarker identifies - // the first traffic policy in the next group of MaxItems traffic policies. - // Call ListTrafficPolicyVersions again and specify the value of TrafficPolicyVersionMarker - // in the TrafficPolicyVersionMarker request parameter. - // - // This element is present only if IsTruncated is true. - TrafficPolicyVersionMarker *string `type:"string" required:"true"` +type metadataListTagsForResourcesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListTrafficPolicyVersionsOutput) String() string { +func (s ListTagsForResourcesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrafficPolicyVersionsOutput) GoString() string { +func (s ListTagsForResourcesOutput) GoString() string { return s.String() } // A complex type that contains the value of the Value element for the current // resource record set. type ResourceRecord struct { - _ struct{} `type:"structure"` - - // The current or new DNS record value, not to exceed 4,000 characters. In the - // case of a DELETE action, if the current value does not match the actual value, - // an error is returned. For descriptions about how to format Value for different - // record types, see Supported DNS Resource Record Types (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html) - // in the Amazon Route 53 Developer Guide. - // - // You can specify more than one value for all record types except CNAME and - // SOA. + // The value of the Value element for the current resource record set. Value *string `type:"string" required:"true"` + + metadataResourceRecord `json:"-" xml:"-"` +} + +type metadataResourceRecord struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5754,101 +3252,37 @@ func (s ResourceRecord) String() string { // GoString returns the string representation func (s ResourceRecord) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResourceRecord) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResourceRecord"} - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + return s.String() } // A complex type that contains information about the current resource record // set. type ResourceRecordSet struct { - _ struct{} `type:"structure"` - // Alias resource record sets only: Information about the AWS resource to which // you are redirecting traffic. AliasTarget *AliasTarget `type:"structure"` - // Failover resource record sets only: To configure failover, you add the Failover - // element to two resource record sets. For one resource record set, you specify - // PRIMARY as the value for Failover; for the other resource record set, you - // specify SECONDARY. In addition, you include the HealthCheckId element and - // specify the health check that you want Amazon Route 53 to perform for each - // resource record set. - // - // You can create failover and failover alias resource record sets only in - // public hosted zones. Except where noted, the following failover behaviors - // assume that you have included the HealthCheckId element in both resource - // record sets: - // - // When the primary resource record set is healthy, Amazon Route 53 responds - // to DNS queries with the applicable value from the primary resource record - // set regardless of the health of the secondary resource record set. When the - // primary resource record set is unhealthy and the secondary resource record - // set is healthy, Amazon Route 53 responds to DNS queries with the applicable - // value from the secondary resource record set. When the secondary resource - // record set is unhealthy, Amazon Route 53 responds to DNS queries with the - // applicable value from the primary resource record set regardless of the health - // of the primary resource record set. If you omit the HealthCheckId element - // for the secondary resource record set, and if the primary resource record - // set is unhealthy, Amazon Route 53 always responds to DNS queries with the - // applicable value from the secondary resource record set. This is true regardless - // of the health of the associated endpoint. You cannot create non-failover - // resource record sets that have the same values for the Name and Type elements - // as failover resource record sets. - // - // For failover alias resource record sets, you must also include the EvaluateTargetHealth - // element and set the value to true. - // - // For more information about configuring failover for Amazon Route 53, see - // Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) - // in the Amazon Route 53 Developer Guide. + // Failover resource record sets only: Among resource record sets that have + // the same combination of DNS name and type, a value that indicates whether + // the current resource record set is a primary or secondary resource record + // set. A failover set may contain at most one resource record set marked as + // primary and one resource record set marked as secondary. A resource record + // set marked as primary will be returned if any of the following are true: + // (1) an associated health check is passing, (2) if the resource record set + // is an alias with the evaluate target health and at least one target resource + // record set is healthy, (3) both the primary and secondary resource record + // set are failing health checks or (4) there is no secondary resource record + // set. A secondary resource record set will be returned if: (1) the primary + // is failing a health check and either the secondary is passing a health check + // or has no associated health check, or (2) there is no primary resource record + // set. // // Valid values: PRIMARY | SECONDARY Failover *string `type:"string" enum:"ResourceRecordSetFailover"` - // Geo location resource record sets only: A complex type that lets you control - // how Amazon Route 53 responds to DNS queries based on the geographic origin - // of the query. For example, if you want all queries from Africa to be routed - // to a web server with an IP address of 192.0.2.111, create a resource record - // set with a Type of A and a ContinentCode of AF. - // - // You can create geolocation and geolocation alias resource record sets only - // in public hosted zones. If you create separate resource record sets for overlapping - // geographic regions (for example, one resource record set for a continent - // and one for a country on the same continent), priority goes to the smallest - // geographic region. This allows you to route most queries for a continent - // to one resource and to route queries for a country on that continent to a - // different resource. - // - // You cannot create two geolocation resource record sets that specify the - // same geographic location. - // - // The value * in the CountryCode element matches all geographic locations - // that aren't specified in other geolocation resource record sets that have - // the same values for the Name and Type elements. - // - // Geolocation works by mapping IP addresses to locations. However, some IP - // addresses aren't mapped to geographic locations, so even if you create geolocation - // resource record sets that cover all seven continents, Amazon Route 53 will - // receive some DNS queries from locations that it can't identify. We recommend - // that you create a resource record set for which the value of CountryCode - // is *, which handles both queries that come from locations for which you haven't - // created geolocation resource record sets and queries from IP addresses that - // aren't mapped to a location. If you don't create a * resource record set, - // Amazon Route 53 returns a "no answer" response for queries from those locations. - // You cannot create non-geolocation resource record sets that have the same - // values for the Name and Type elements as geolocation resource record sets. + // Geo location resource record sets only: Among resource record sets that have + // the same combination of DNS name and type, a value that specifies the geo + // location for the current resource record set. GeoLocation *GeoLocation `type:"structure"` // Health Check resource record sets only, not required for alias resource record @@ -5856,137 +3290,40 @@ type ResourceRecordSet struct { // the resource record set. HealthCheckId *string `type:"string"` - // The name of the domain you want to perform the action on. - // - // Enter a fully qualified domain name, for example, www.example.com. You can - // optionally include a trailing dot. If you omit the trailing dot, Amazon Route - // 53 still assumes that the domain name that you specify is fully qualified. - // This means that Amazon Route 53 treats www.example.com (without a trailing - // dot) and www.example.com. (with a trailing dot) as identical. - // - // For information about how to specify characters other than a-z, 0-9, and - // - (hyphen) and how to specify internationalized domain names, see DNS Domain - // Name Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html) - // in the Amazon Route 53 Developer Guide. - // - // You can use an asterisk (*) character in the name. DNS treats the * character - // either as a wildcard or as the * character (ASCII 42), depending on where - // it appears in the name. For more information, see Using an Asterisk (*) in - // the Names of Hosted Zones and Resource Record Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-asterisk) - // in the Amazon Route 53 Developer Guide - // - // You can't use the * wildcard for resource records sets that have a type - // of NS. + // The domain name of the current resource record set. Name *string `type:"string" required:"true"` - // Latency-based resource record sets only: The Amazon EC2 region where the - // resource that is specified in this resource record set resides. The resource - // typically is an AWS resource, such as an Amazon EC2 instance or an ELB load - // balancer, and is referred to by an IP address or a DNS domain name, depending - // on the record type. - // - // You can create latency and latency alias resource record sets only in public - // hosted zones. When Amazon Route 53 receives a DNS query for a domain name - // and type for which you have created latency resource record sets, Amazon - // Route 53 selects the latency resource record set that has the lowest latency - // between the end user and the associated Amazon EC2 region. Amazon Route 53 - // then returns the value that is associated with the selected resource record - // set. - // - // Note the following: - // - // You can only specify one ResourceRecord per latency resource record set. - // You can only create one latency resource record set for each Amazon EC2 region. - // You are not required to create latency resource record sets for all Amazon - // EC2 regions. Amazon Route 53 will choose the region with the best latency - // from among the regions for which you create latency resource record sets. - // You cannot create non-latency resource record sets that have the same values - // for the Name and Type elements as latency resource record sets. - Region *string `min:"1" type:"string" enum:"ResourceRecordSetRegion"` + // Latency-based resource record sets only: Among resource record sets that + // have the same combination of DNS name and type, a value that specifies the + // AWS region for the current resource record set. + Region *string `type:"string" enum:"ResourceRecordSetRegion"` // A complex type that contains the resource records for the current resource // record set. - ResourceRecords []*ResourceRecord `locationNameList:"ResourceRecord" min:"1" type:"list"` + ResourceRecords []*ResourceRecord `locationNameList:"ResourceRecord" type:"list"` // Weighted, Latency, Geo, and Failover resource record sets only: An identifier // that differentiates among multiple resource record sets that have the same - // combination of DNS name and type. The value of SetIdentifier must be unique - // for each resource record set that has the same combination of DNS name and - // type. - SetIdentifier *string `min:"1" type:"string"` + // combination of DNS name and type. + SetIdentifier *string `type:"string"` - // The cache time to live for the current resource record set. Note the following: - // - // If you're creating an alias resource record set, omit TTL. Amazon Route - // 53 uses the value of TTL for the alias target. If you're associating this - // resource record set with a health check (if you're adding a HealthCheckId - // element), we recommend that you specify a TTL of 60 seconds or less so clients - // respond quickly to changes in health status. All of the resource record sets - // in a group of weighted, latency, geolocation, or failover resource record - // sets must have the same value for TTL. If a group of weighted resource record - // sets includes one or more weighted alias resource record sets for which the - // alias target is an ELB load balancer, we recommend that you specify a TTL - // of 60 seconds for all of the non-alias weighted resource record sets that - // have the same name and type. Values other than 60 seconds (the TTL for load - // balancers) will change the effect of the values that you specify for Weight. + // The cache time to live for the current resource record set. TTL *int64 `type:"long"` - TrafficPolicyInstanceId *string `type:"string"` - - // The DNS record type. For information about different record types and how - // data is encoded for them, see Supported DNS Resource Record Types (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html) - // in the Amazon Route 53 Developer Guide. - // - // Valid values for basic resource record sets: A | AAAA | CNAME | MX | NS - // | PTR | SOA | SPF | SRV | TXT - // - // Values for weighted, latency, geolocation, and failover resource record - // sets: A | AAAA | CNAME | MX | PTR | SPF | SRV | TXT. When creating a group - // of weighted, latency, geolocation, or failover resource record sets, specify - // the same value for all of the resource record sets in the group. - // - // SPF records were formerly used to verify the identity of the sender of email - // messages. However, we no longer recommend that you create resource record - // sets for which the value of Type is SPF. RFC 7208, Sender Policy Framework - // (SPF) for Authorizing Use of Domains in Email, Version 1, has been updated - // to say, "...[I]ts existence and mechanism defined in [RFC4408] have led to - // some interoperability issues. Accordingly, its use is no longer appropriate - // for SPF version 1; implementations are not to use it." In RFC 7208, see section - // 14.1, The SPF DNS Record Type (http://tools.ietf.org/html/rfc7208#section-14.1). - // Values for alias resource record sets: - // - // CloudFront distributions: A ELB load balancers: A | AAAA Amazon S3 buckets: - // A Another resource record set in this hosted zone: Specify the type of the - // resource record set for which you're creating the alias. Specify any value - // except NS or SOA. + // The type of the current resource record set. Type *string `type:"string" required:"true" enum:"RRType"` // Weighted resource record sets only: Among resource record sets that have - // the same combination of DNS name and type, a value that determines the proportion - // of DNS queries that Amazon Route 53 responds to using the current resource - // record set. Amazon Route 53 calculates the sum of the weights for the resource - // record sets that have the same combination of DNS name and type. Amazon Route - // 53 then responds to queries based on the ratio of a resource's weight to - // the total. Note the following: - // - // You must specify a value for the Weight element for every weighted resource - // record set. You can only specify one ResourceRecord per weighted resource - // record set. You cannot create latency, failover, or geolocation resource - // record sets that have the same values for the Name and Type elements as weighted - // resource record sets. You can create a maximum of 100 weighted resource record - // sets that have the same values for the Name and Type elements. For weighted - // (but not weighted alias) resource record sets, if you set Weight to 0 for - // a resource record set, Amazon Route 53 never responds to queries with the - // applicable value for that resource record set. However, if you set Weight - // to 0 for all resource record sets that have the same combination of DNS name - // and type, traffic is routed to all resources with equal probability. - // - // The effect of setting Weight to 0 is different when you associate health - // checks with weighted resource record sets. For more information, see Options - // for Configuring Amazon Route 53 Active-Active and Active-Passive Failover - // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html) - // in the Amazon Route 53 Developer Guide. + // the same combination of DNS name and type, a value that determines what portion + // of traffic for the current resource record set is routed to the associated + // location. Weight *int64 `type:"long"` + + metadataResourceRecordSet `json:"-" xml:"-"` +} + +type metadataResourceRecordSet struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5999,55 +3336,8 @@ func (s ResourceRecordSet) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResourceRecordSet) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResourceRecordSet"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Region != nil && len(*s.Region) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Region", 1)) - } - if s.ResourceRecords != nil && len(s.ResourceRecords) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceRecords", 1)) - } - if s.SetIdentifier != nil && len(*s.SetIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SetIdentifier", 1)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.AliasTarget != nil { - if err := s.AliasTarget.Validate(); err != nil { - invalidParams.AddNested("AliasTarget", err.(request.ErrInvalidParams)) - } - } - if s.GeoLocation != nil { - if err := s.GeoLocation.Validate(); err != nil { - invalidParams.AddNested("GeoLocation", err.(request.ErrInvalidParams)) - } - } - if s.ResourceRecords != nil { - for i, v := range s.ResourceRecords { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ResourceRecords", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type containing a resource and its associated tags. type ResourceTagSet struct { - _ struct{} `type:"structure"` - // The ID for the specified resource. ResourceId *string `type:"string"` @@ -6059,7 +3349,13 @@ type ResourceTagSet struct { ResourceType *string `type:"string" enum:"TagResourceType"` // The tags associated with the specified resource. - Tags []*Tag `locationNameList:"Tag" min:"1" type:"list"` + Tags []*Tag `locationNameList:"Tag" type:"list"` + + metadataResourceTagSet `json:"-" xml:"-"` +} + +type metadataResourceTagSet struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6075,16 +3371,20 @@ func (s ResourceTagSet) GoString() string { // A complex type that contains information about the health check status for // the current observation. type StatusReport struct { - _ struct{} `type:"structure"` - // The date and time the health check status was observed, in the format YYYY-MM-DDThh:mm:ssZ, // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). // The Z after the time indicates that the time is listed in Coordinated Universal - // Time (UTC). + // Time (UTC), which is synonymous with Greenwich Mean Time in this context. CheckedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The observed health check status. Status *string `type:"string"` + + metadataStatusReport `json:"-" xml:"-"` +} + +type metadataStatusReport struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6099,133 +3399,34 @@ func (s StatusReport) GoString() string { // A single tag containing a key and value. type Tag struct { - _ struct{} `type:"structure"` - // The key for a Tag. Key *string `type:"string"` // The value for a Tag. Value *string `type:"string"` -} - -// String returns the string representation -func (s Tag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Tag) GoString() string { - return s.String() -} - -type TrafficPolicy struct { - _ struct{} `type:"structure"` - Comment *string `type:"string"` - - Document *string `type:"string" required:"true"` - - Id *string `type:"string" required:"true"` - - Name *string `type:"string" required:"true"` - - Type *string `type:"string" required:"true" enum:"RRType"` - - Version *int64 `min:"1" type:"integer" required:"true"` -} - -// String returns the string representation -func (s TrafficPolicy) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TrafficPolicy) GoString() string { - return s.String() -} - -type TrafficPolicyInstance struct { - _ struct{} `type:"structure"` - - HostedZoneId *string `type:"string" required:"true"` - - Id *string `type:"string" required:"true"` - - Message *string `type:"string" required:"true"` - - Name *string `type:"string" required:"true"` - - State *string `type:"string" required:"true"` - - TTL *int64 `type:"long" required:"true"` - - TrafficPolicyId *string `type:"string" required:"true"` - - TrafficPolicyType *string `type:"string" required:"true" enum:"RRType"` - - TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"` -} - -// String returns the string representation -func (s TrafficPolicyInstance) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TrafficPolicyInstance) GoString() string { - return s.String() + metadataTag `json:"-" xml:"-"` } -type TrafficPolicySummary struct { - _ struct{} `type:"structure"` - - Id *string `type:"string" required:"true"` - - LatestVersion *int64 `min:"1" type:"integer" required:"true"` - - Name *string `type:"string" required:"true"` - - TrafficPolicyCount *int64 `min:"1" type:"integer" required:"true"` - - Type *string `type:"string" required:"true" enum:"RRType"` +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s TrafficPolicySummary) String() string { +func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TrafficPolicySummary) GoString() string { +func (s Tag) GoString() string { return s.String() } // >A complex type that contains information about the request to update a health // check. type UpdateHealthCheckInput struct { - _ struct{} `locationName:"UpdateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - - // A complex type that contains information to uniquely identify the CloudWatch - // alarm that you're associating with a Route 53 health check. - AlarmIdentifier *AlarmIdentifier `type:"structure"` - - // For a specified parent health check, a list of HealthCheckId values for the - // associated child health checks. - // - // Specify this value only if you want to change it. - ChildHealthChecks []*string `locationNameList:"ChildHealthCheck" type:"list"` - - // Specify whether you want Amazon Route 53 to send the value of FullyQualifiedDomainName - // to the endpoint in the client_hello message during TLS negotiation. If you - // don't specify a value for EnableSNI, Amazon Route 53 defaults to true when - // Type is HTTPS or HTTPS_STR_MATCH and defaults to false when Type is any other - // value. - // - // Specify this value only if you want to change it. - EnableSNI *bool `type:"boolean"` - // The number of consecutive health checks that an endpoint must pass or fail - // for Amazon Route 53 to change the current status of the endpoint from unhealthy + // for Route 53 to change the current status of the endpoint from unhealthy // to healthy or vice versa. // // Valid values are integers between 1 and 10. For more information, see "How @@ -6233,7 +3434,7 @@ type UpdateHealthCheckInput struct { // Route 53 Developer Guide. // // Specify this value only if you want to change it. - FailureThreshold *int64 `min:"1" type:"integer"` + FailureThreshold *int64 `type:"integer"` // Fully qualified domain name of the instance to be health checked. // @@ -6243,47 +3444,22 @@ type UpdateHealthCheckInput struct { // The ID of the health check to update. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"` - // Optional. When you specify a health check version, Amazon Route 53 compares - // this value with the current value in the health check, which prevents you - // from updating the health check when the versions don't match. Using HealthCheckVersion + // Optional. When you specify a health check version, Route 53 compares this + // value with the current value in the health check, which prevents you from + // updating the health check when the versions don't match. Using HealthCheckVersion // lets you prevent overwriting another change to the health check. - HealthCheckVersion *int64 `min:"1" type:"long"` - - // The minimum number of child health checks that must be healthy for Amazon - // Route 53 to consider the parent health check to be healthy. Valid values - // are integers between 0 and 256, inclusive. - // - // Specify this value only if you want to change it. - HealthThreshold *int64 `type:"integer"` + HealthCheckVersion *int64 `type:"long"` // The IP address of the resource that you want to check. // // Specify this value only if you want to change it. IPAddress *string `type:"string"` - InsufficientDataHealthStatus *string `type:"string" enum:"InsufficientDataHealthStatus"` - - // A boolean value that indicates whether the status of health check should - // be inverted. For example, if a health check is healthy but Inverted is True, - // then Amazon Route 53 considers the health check to be unhealthy. - // - // Specify this value only if you want to change it. - Inverted *bool `type:"boolean"` - - // The port on which you want Amazon Route 53 to open a connection to perform - // health checks. + // The port on which you want Route 53 to open a connection to perform health + // checks. // // Specify this value only if you want to change it. - Port *int64 `min:"1" type:"integer"` - - // A list of HealthCheckRegion values that specify the Amazon EC2 regions that - // you want Amazon Route 53 to use to perform health checks. You must specify - // at least three regions. - // - // When you remove a region from the list, Amazon Route 53 will briefly continue - // to check your endpoint from that region. Specify this value only if you want - // to change it. - Regions []*string `locationNameList:"Region" min:"1" type:"list"` + Port *int64 `type:"integer"` // The path that you want Amazon Route 53 to request when performing health // checks. The path can be any value for which your endpoint will return an @@ -6294,13 +3470,18 @@ type UpdateHealthCheckInput struct { ResourcePath *string `type:"string"` // If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that - // you want Amazon Route 53 to search for in the response body from the specified - // resource. If the string appears in the response body, Amazon Route 53 considers - // the resource healthy. Amazon Route 53 considers case when searching for SearchString - // in the response body. + // you want Route 53 to search for in the response body from the specified resource. + // If the string appears in the response body, Route 53 considers the resource + // healthy. // // Specify this value only if you want to change it. SearchString *string `type:"string"` + + metadataUpdateHealthCheckInput `json:"-" xml:"-"` +} + +type metadataUpdateHealthCheckInput struct { + SDKShapeTraits bool `locationName:"UpdateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` } // String returns the string representation @@ -6313,41 +3494,15 @@ func (s UpdateHealthCheckInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateHealthCheckInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateHealthCheckInput"} - if s.FailureThreshold != nil && *s.FailureThreshold < 1 { - invalidParams.Add(request.NewErrParamMinValue("FailureThreshold", 1)) - } - if s.HealthCheckId == nil { - invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) - } - if s.HealthCheckVersion != nil && *s.HealthCheckVersion < 1 { - invalidParams.Add(request.NewErrParamMinValue("HealthCheckVersion", 1)) - } - if s.Port != nil && *s.Port < 1 { - invalidParams.Add(request.NewErrParamMinValue("Port", 1)) - } - if s.Regions != nil && len(s.Regions) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Regions", 1)) - } - if s.AlarmIdentifier != nil { - if err := s.AlarmIdentifier.Validate(); err != nil { - invalidParams.AddNested("AlarmIdentifier", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type UpdateHealthCheckOutput struct { - _ struct{} `type:"structure"` - // A complex type that contains identifying information about the health check. HealthCheck *HealthCheck `type:"structure" required:"true"` + + metadataUpdateHealthCheckOutput `json:"-" xml:"-"` +} + +type metadataUpdateHealthCheckOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6363,13 +3518,17 @@ func (s UpdateHealthCheckOutput) GoString() string { // A complex type that contains information about the request to update a hosted // zone comment. type UpdateHostedZoneCommentInput struct { - _ struct{} `locationName:"UpdateHostedZoneCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - // A comment about your hosted zone. Comment *string `type:"string"` // The ID of the hosted zone you want to update. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + metadataUpdateHostedZoneCommentInput `json:"-" xml:"-"` +} + +type metadataUpdateHostedZoneCommentInput struct { + SDKShapeTraits bool `locationName:"UpdateHostedZoneCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` } // String returns the string representation @@ -6382,186 +3541,40 @@ func (s UpdateHostedZoneCommentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateHostedZoneCommentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateHostedZoneCommentInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A complex type containing information about the specified hosted zone after // the update. type UpdateHostedZoneCommentOutput struct { - _ struct{} `type:"structure"` - // A complex type that contain information about the specified hosted zone. HostedZone *HostedZone `type:"structure" required:"true"` -} - -// String returns the string representation -func (s UpdateHostedZoneCommentOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateHostedZoneCommentOutput) GoString() string { - return s.String() -} - -// A complex type that contains information about the traffic policy for which -// you want to update the comment. -type UpdateTrafficPolicyCommentInput struct { - _ struct{} `locationName:"UpdateTrafficPolicyCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - - // The new comment for the specified traffic policy and version. - Comment *string `type:"string" required:"true"` - - // The value of Id for the traffic policy for which you want to update the comment. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The value of Version for the traffic policy for which you want to update - // the comment. - Version *int64 `location:"uri" locationName:"Version" min:"1" type:"integer" required:"true"` -} - -// String returns the string representation -func (s UpdateTrafficPolicyCommentInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateTrafficPolicyCommentInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateTrafficPolicyCommentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateTrafficPolicyCommentInput"} - if s.Comment == nil { - invalidParams.Add(request.NewErrParamRequired("Comment")) - } - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Version == nil { - invalidParams.Add(request.NewErrParamRequired("Version")) - } - if s.Version != nil && *s.Version < 1 { - invalidParams.Add(request.NewErrParamMinValue("Version", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains the response information for the traffic policy. -type UpdateTrafficPolicyCommentOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains settings for the specified traffic policy. - TrafficPolicy *TrafficPolicy `type:"structure" required:"true"` -} - -// String returns the string representation -func (s UpdateTrafficPolicyCommentOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateTrafficPolicyCommentOutput) GoString() string { - return s.String() -} - -// A complex type that contains information about the resource record sets that -// you want to update based on a specified traffic policy instance. -type UpdateTrafficPolicyInstanceInput struct { - _ struct{} `locationName:"UpdateTrafficPolicyInstanceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - - // The ID of the traffic policy instance that you want to update. - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The TTL that you want Amazon Route 53 to assign to all of the updated resource - // record sets. - TTL *int64 `type:"long" required:"true"` - - // The ID of the traffic policy that you want Amazon Route 53 to use to update - // resource record sets for the specified traffic policy instance. - TrafficPolicyId *string `type:"string" required:"true"` - - // The version of the traffic policy that you want Amazon Route 53 to use to - // update resource record sets for the specified traffic policy instance. - TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"` -} - -// String returns the string representation -func (s UpdateTrafficPolicyInstanceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateTrafficPolicyInstanceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateTrafficPolicyInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateTrafficPolicyInstanceInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.TTL == nil { - invalidParams.Add(request.NewErrParamRequired("TTL")) - } - if s.TrafficPolicyId == nil { - invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId")) - } - if s.TrafficPolicyVersion == nil { - invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion")) - } - if s.TrafficPolicyVersion != nil && *s.TrafficPolicyVersion < 1 { - invalidParams.Add(request.NewErrParamMinValue("TrafficPolicyVersion", 1)) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataUpdateHostedZoneCommentOutput `json:"-" xml:"-"` } -// A complex type that contains information about the resource record sets that -// Amazon Route 53 created based on a specified traffic policy. -type UpdateTrafficPolicyInstanceOutput struct { - _ struct{} `type:"structure"` - - // A complex type that contains settings for the updated traffic policy instance. - TrafficPolicyInstance *TrafficPolicyInstance `type:"structure" required:"true"` +type metadataUpdateHostedZoneCommentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s UpdateTrafficPolicyInstanceOutput) String() string { +func (s UpdateHostedZoneCommentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateTrafficPolicyInstanceOutput) GoString() string { +func (s UpdateHostedZoneCommentOutput) GoString() string { return s.String() } type VPC struct { - _ struct{} `type:"structure"` - // A VPC ID VPCId *string `type:"string"` - VPCRegion *string `min:"1" type:"string" enum:"VPCRegion"` + VPCRegion *string `type:"string" enum:"VPCRegion"` + + metadataVPC `json:"-" xml:"-"` +} + +type metadataVPC struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6574,19 +3587,6 @@ func (s VPC) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *VPC) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VPC"} - if s.VPCRegion != nil && len(*s.VPCRegion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VPCRegion", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - const ( // @enum ChangeAction ChangeActionCreate = "CREATE" @@ -6603,61 +3603,6 @@ const ( ChangeStatusInsync = "INSYNC" ) -const ( - // @enum CloudWatchRegion - CloudWatchRegionUsEast1 = "us-east-1" - // @enum CloudWatchRegion - CloudWatchRegionUsWest1 = "us-west-1" - // @enum CloudWatchRegion - CloudWatchRegionUsWest2 = "us-west-2" - // @enum CloudWatchRegion - CloudWatchRegionEuCentral1 = "eu-central-1" - // @enum CloudWatchRegion - CloudWatchRegionEuWest1 = "eu-west-1" - // @enum CloudWatchRegion - CloudWatchRegionApSoutheast1 = "ap-southeast-1" - // @enum CloudWatchRegion - CloudWatchRegionApSoutheast2 = "ap-southeast-2" - // @enum CloudWatchRegion - CloudWatchRegionApNortheast1 = "ap-northeast-1" - // @enum CloudWatchRegion - CloudWatchRegionApNortheast2 = "ap-northeast-2" - // @enum CloudWatchRegion - CloudWatchRegionSaEast1 = "sa-east-1" -) - -const ( - // @enum ComparisonOperator - ComparisonOperatorGreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold" - // @enum ComparisonOperator - ComparisonOperatorGreaterThanThreshold = "GreaterThanThreshold" - // @enum ComparisonOperator - ComparisonOperatorLessThanThreshold = "LessThanThreshold" - // @enum ComparisonOperator - ComparisonOperatorLessThanOrEqualToThreshold = "LessThanOrEqualToThreshold" -) - -// An Amazon EC2 region that you want Amazon Route 53 to use to perform health -// checks. -const ( - // @enum HealthCheckRegion - HealthCheckRegionUsEast1 = "us-east-1" - // @enum HealthCheckRegion - HealthCheckRegionUsWest1 = "us-west-1" - // @enum HealthCheckRegion - HealthCheckRegionUsWest2 = "us-west-2" - // @enum HealthCheckRegion - HealthCheckRegionEuWest1 = "eu-west-1" - // @enum HealthCheckRegion - HealthCheckRegionApSoutheast1 = "ap-southeast-1" - // @enum HealthCheckRegion - HealthCheckRegionApSoutheast2 = "ap-southeast-2" - // @enum HealthCheckRegion - HealthCheckRegionApNortheast1 = "ap-northeast-1" - // @enum HealthCheckRegion - HealthCheckRegionSaEast1 = "sa-east-1" -) - const ( // @enum HealthCheckType HealthCheckTypeHttp = "HTTP" @@ -6669,19 +3614,6 @@ const ( HealthCheckTypeHttpsStrMatch = "HTTPS_STR_MATCH" // @enum HealthCheckType HealthCheckTypeTcp = "TCP" - // @enum HealthCheckType - HealthCheckTypeCalculated = "CALCULATED" - // @enum HealthCheckType - HealthCheckTypeCloudwatchMetric = "CLOUDWATCH_METRIC" -) - -const ( - // @enum InsufficientDataHealthStatus - InsufficientDataHealthStatusHealthy = "Healthy" - // @enum InsufficientDataHealthStatus - InsufficientDataHealthStatusUnhealthy = "Unhealthy" - // @enum InsufficientDataHealthStatus - InsufficientDataHealthStatusLastKnownStatus = "LastKnownStatus" ) const ( @@ -6732,26 +3664,11 @@ const ( // @enum ResourceRecordSetRegion ResourceRecordSetRegionApNortheast1 = "ap-northeast-1" // @enum ResourceRecordSetRegion - ResourceRecordSetRegionApNortheast2 = "ap-northeast-2" - // @enum ResourceRecordSetRegion ResourceRecordSetRegionSaEast1 = "sa-east-1" // @enum ResourceRecordSetRegion ResourceRecordSetRegionCnNorth1 = "cn-north-1" ) -const ( - // @enum Statistic - StatisticAverage = "Average" - // @enum Statistic - StatisticSum = "Sum" - // @enum Statistic - StatisticSampleCount = "SampleCount" - // @enum Statistic - StatisticMaximum = "Maximum" - // @enum Statistic - StatisticMinimum = "Minimum" -) - const ( // @enum TagResourceType TagResourceTypeHealthcheck = "healthcheck" @@ -6777,8 +3694,6 @@ const ( // @enum VPCRegion VPCRegionApNortheast1 = "ap-northeast-1" // @enum VPCRegion - VPCRegionApNortheast2 = "ap-northeast-2" - // @enum VPCRegion VPCRegionSaEast1 = "sa-east-1" // @enum VPCRegion VPCRegionCnNorth1 = "cn-north-1" diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/route53/customizations.go index 91af196e2..b4cd8c83f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/customizations.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/customizations.go @@ -3,22 +3,13 @@ package route53 import ( "regexp" - "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restxml" + "github.com/aws/aws-sdk-go/aws/service" ) func init() { - initClient = func(c *client.Client) { - c.Handlers.Build.PushBack(sanitizeURL) - } - - initRequest = func(r *request.Request) { - switch r.Operation.Name { - case opChangeResourceRecordSets: - r.Handlers.UnmarshalError.Remove(restxml.UnmarshalErrorHandler) - r.Handlers.UnmarshalError.PushBack(unmarshalChangeResourceRecordSetsError) - } + initService = func(s *service.Service) { + s.Handlers.Build.PushBack(sanitizeURL) } } diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53/customizations_test.go index 518790a24..c2dc3f1e8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/customizations_test.go @@ -4,13 +4,12 @@ import ( "testing" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting" - "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/util/utilassert" "github.com/aws/aws-sdk-go/service/route53" ) func TestBuildCorrectURI(t *testing.T) { - svc := route53.New(unit.Session) + svc := route53.New(nil) svc.Handlers.Validate.Clear() req, _ := svc.GetHostedZoneRequest(&route53.GetHostedZoneInput{ Id: aws.String("/hostedzone/ABCDEFG"), @@ -18,5 +17,5 @@ func TestBuildCorrectURI(t *testing.T) { req.Build() - awstesting.Match(t, `\/hostedzone\/ABCDEFG$`, req.HTTPRequest.URL.String()) + utilassert.Match(t, `\/hostedzone\/ABCDEFG$`, req.HTTPRequest.URL.String()) } diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go index cdbfea1fb..0faa2a1ae 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRoute53_AssociateVPCWithHostedZone() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.AssociateVPCWithHostedZoneInput{ HostedZoneId: aws.String("ResourceId"), // Required @@ -40,7 +39,7 @@ func ExampleRoute53_AssociateVPCWithHostedZone() { } func ExampleRoute53_ChangeResourceRecordSets() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.ChangeResourceRecordSetsInput{ ChangeBatch: &route53.ChangeBatch{ // Required @@ -71,8 +70,7 @@ func ExampleRoute53_ChangeResourceRecordSets() { }, SetIdentifier: aws.String("ResourceRecordSetIdentifier"), TTL: aws.Int64(1), - TrafficPolicyInstanceId: aws.String("TrafficPolicyInstanceId"), - Weight: aws.Int64(1), + Weight: aws.Int64(1), }, }, // More values... @@ -95,7 +93,7 @@ func ExampleRoute53_ChangeResourceRecordSets() { } func ExampleRoute53_ChangeTagsForResource() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.ChangeTagsForResourceInput{ ResourceId: aws.String("TagResourceId"), // Required @@ -126,36 +124,19 @@ func ExampleRoute53_ChangeTagsForResource() { } func ExampleRoute53_CreateHealthCheck() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.CreateHealthCheckInput{ CallerReference: aws.String("HealthCheckNonce"), // Required HealthCheckConfig: &route53.HealthCheckConfig{ // Required - Type: aws.String("HealthCheckType"), // Required - AlarmIdentifier: &route53.AlarmIdentifier{ - Name: aws.String("AlarmName"), // Required - Region: aws.String("CloudWatchRegion"), // Required - }, - ChildHealthChecks: []*string{ - aws.String("HealthCheckId"), // Required - // More values... - }, - EnableSNI: aws.Bool(true), - FailureThreshold: aws.Int64(1), - FullyQualifiedDomainName: aws.String("FullyQualifiedDomainName"), - HealthThreshold: aws.Int64(1), - IPAddress: aws.String("IPAddress"), - InsufficientDataHealthStatus: aws.String("InsufficientDataHealthStatus"), - Inverted: aws.Bool(true), - MeasureLatency: aws.Bool(true), - Port: aws.Int64(1), - Regions: []*string{ - aws.String("HealthCheckRegion"), // Required - // More values... - }, - RequestInterval: aws.Int64(1), - ResourcePath: aws.String("ResourcePath"), - SearchString: aws.String("SearchString"), + Type: aws.String("HealthCheckType"), // Required + FailureThreshold: aws.Int64(1), + FullyQualifiedDomainName: aws.String("FullyQualifiedDomainName"), + IPAddress: aws.String("IPAddress"), + Port: aws.Int64(1), + RequestInterval: aws.Int64(1), + ResourcePath: aws.String("ResourcePath"), + SearchString: aws.String("SearchString"), }, } resp, err := svc.CreateHealthCheck(params) @@ -172,7 +153,7 @@ func ExampleRoute53_CreateHealthCheck() { } func ExampleRoute53_CreateHostedZone() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.CreateHostedZoneInput{ CallerReference: aws.String("Nonce"), // Required @@ -201,7 +182,7 @@ func ExampleRoute53_CreateHostedZone() { } func ExampleRoute53_CreateReusableDelegationSet() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.CreateReusableDelegationSetInput{ CallerReference: aws.String("Nonce"), // Required @@ -220,73 +201,8 @@ func ExampleRoute53_CreateReusableDelegationSet() { fmt.Println(resp) } -func ExampleRoute53_CreateTrafficPolicy() { - svc := route53.New(session.New()) - - params := &route53.CreateTrafficPolicyInput{ - Document: aws.String("TrafficPolicyDocument"), // Required - Name: aws.String("TrafficPolicyName"), // Required - Comment: aws.String("TrafficPolicyComment"), - } - resp, err := svc.CreateTrafficPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_CreateTrafficPolicyInstance() { - svc := route53.New(session.New()) - - params := &route53.CreateTrafficPolicyInstanceInput{ - HostedZoneId: aws.String("ResourceId"), // Required - Name: aws.String("DNSName"), // Required - TTL: aws.Int64(1), // Required - TrafficPolicyId: aws.String("TrafficPolicyId"), // Required - TrafficPolicyVersion: aws.Int64(1), // Required - } - resp, err := svc.CreateTrafficPolicyInstance(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_CreateTrafficPolicyVersion() { - svc := route53.New(session.New()) - - params := &route53.CreateTrafficPolicyVersionInput{ - Document: aws.String("TrafficPolicyDocument"), // Required - Id: aws.String("TrafficPolicyId"), // Required - Comment: aws.String("TrafficPolicyComment"), - } - resp, err := svc.CreateTrafficPolicyVersion(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRoute53_DeleteHealthCheck() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.DeleteHealthCheckInput{ HealthCheckId: aws.String("HealthCheckId"), // Required @@ -305,7 +221,7 @@ func ExampleRoute53_DeleteHealthCheck() { } func ExampleRoute53_DeleteHostedZone() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.DeleteHostedZoneInput{ Id: aws.String("ResourceId"), // Required @@ -324,7 +240,7 @@ func ExampleRoute53_DeleteHostedZone() { } func ExampleRoute53_DeleteReusableDelegationSet() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.DeleteReusableDelegationSetInput{ Id: aws.String("ResourceId"), // Required @@ -342,47 +258,8 @@ func ExampleRoute53_DeleteReusableDelegationSet() { fmt.Println(resp) } -func ExampleRoute53_DeleteTrafficPolicy() { - svc := route53.New(session.New()) - - params := &route53.DeleteTrafficPolicyInput{ - Id: aws.String("TrafficPolicyId"), // Required - Version: aws.Int64(1), // Required - } - resp, err := svc.DeleteTrafficPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_DeleteTrafficPolicyInstance() { - svc := route53.New(session.New()) - - params := &route53.DeleteTrafficPolicyInstanceInput{ - Id: aws.String("TrafficPolicyInstanceId"), // Required - } - resp, err := svc.DeleteTrafficPolicyInstance(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRoute53_DisassociateVPCFromHostedZone() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.DisassociateVPCFromHostedZoneInput{ HostedZoneId: aws.String("ResourceId"), // Required @@ -406,7 +283,7 @@ func ExampleRoute53_DisassociateVPCFromHostedZone() { } func ExampleRoute53_GetChange() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.GetChangeInput{ Id: aws.String("ResourceId"), // Required @@ -424,27 +301,8 @@ func ExampleRoute53_GetChange() { fmt.Println(resp) } -func ExampleRoute53_GetChangeDetails() { - svc := route53.New(session.New()) - - params := &route53.GetChangeDetailsInput{ - Id: aws.String("ResourceId"), // Required - } - resp, err := svc.GetChangeDetails(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRoute53_GetCheckerIpRanges() { - svc := route53.New(session.New()) + svc := route53.New(nil) var params *route53.GetCheckerIpRangesInput resp, err := svc.GetCheckerIpRanges(params) @@ -461,7 +319,7 @@ func ExampleRoute53_GetCheckerIpRanges() { } func ExampleRoute53_GetGeoLocation() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.GetGeoLocationInput{ ContinentCode: aws.String("GeoLocationContinentCode"), @@ -482,7 +340,7 @@ func ExampleRoute53_GetGeoLocation() { } func ExampleRoute53_GetHealthCheck() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.GetHealthCheckInput{ HealthCheckId: aws.String("HealthCheckId"), // Required @@ -501,7 +359,7 @@ func ExampleRoute53_GetHealthCheck() { } func ExampleRoute53_GetHealthCheckCount() { - svc := route53.New(session.New()) + svc := route53.New(nil) var params *route53.GetHealthCheckCountInput resp, err := svc.GetHealthCheckCount(params) @@ -518,7 +376,7 @@ func ExampleRoute53_GetHealthCheckCount() { } func ExampleRoute53_GetHealthCheckLastFailureReason() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.GetHealthCheckLastFailureReasonInput{ HealthCheckId: aws.String("HealthCheckId"), // Required @@ -537,7 +395,7 @@ func ExampleRoute53_GetHealthCheckLastFailureReason() { } func ExampleRoute53_GetHealthCheckStatus() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.GetHealthCheckStatusInput{ HealthCheckId: aws.String("HealthCheckId"), // Required @@ -556,7 +414,7 @@ func ExampleRoute53_GetHealthCheckStatus() { } func ExampleRoute53_GetHostedZone() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.GetHostedZoneInput{ Id: aws.String("ResourceId"), // Required @@ -575,7 +433,7 @@ func ExampleRoute53_GetHostedZone() { } func ExampleRoute53_GetHostedZoneCount() { - svc := route53.New(session.New()) + svc := route53.New(nil) var params *route53.GetHostedZoneCountInput resp, err := svc.GetHostedZoneCount(params) @@ -592,7 +450,7 @@ func ExampleRoute53_GetHostedZoneCount() { } func ExampleRoute53_GetReusableDelegationSet() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.GetReusableDelegationSetInput{ Id: aws.String("ResourceId"), // Required @@ -610,113 +468,8 @@ func ExampleRoute53_GetReusableDelegationSet() { fmt.Println(resp) } -func ExampleRoute53_GetTrafficPolicy() { - svc := route53.New(session.New()) - - params := &route53.GetTrafficPolicyInput{ - Id: aws.String("TrafficPolicyId"), // Required - Version: aws.Int64(1), // Required - } - resp, err := svc.GetTrafficPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_GetTrafficPolicyInstance() { - svc := route53.New(session.New()) - - params := &route53.GetTrafficPolicyInstanceInput{ - Id: aws.String("TrafficPolicyInstanceId"), // Required - } - resp, err := svc.GetTrafficPolicyInstance(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_GetTrafficPolicyInstanceCount() { - svc := route53.New(session.New()) - - var params *route53.GetTrafficPolicyInstanceCountInput - resp, err := svc.GetTrafficPolicyInstanceCount(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_ListChangeBatchesByHostedZone() { - svc := route53.New(session.New()) - - params := &route53.ListChangeBatchesByHostedZoneInput{ - EndDate: aws.String("Date"), // Required - HostedZoneId: aws.String("ResourceId"), // Required - StartDate: aws.String("Date"), // Required - Marker: aws.String("PageMarker"), - MaxItems: aws.String("PageMaxItems"), - } - resp, err := svc.ListChangeBatchesByHostedZone(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_ListChangeBatchesByRRSet() { - svc := route53.New(session.New()) - - params := &route53.ListChangeBatchesByRRSetInput{ - EndDate: aws.String("Date"), // Required - HostedZoneId: aws.String("ResourceId"), // Required - Name: aws.String("DNSName"), // Required - StartDate: aws.String("Date"), // Required - Type: aws.String("RRType"), // Required - Marker: aws.String("PageMarker"), - MaxItems: aws.String("PageMaxItems"), - SetIdentifier: aws.String("ResourceRecordSetIdentifier"), - } - resp, err := svc.ListChangeBatchesByRRSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRoute53_ListGeoLocations() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.ListGeoLocationsInput{ MaxItems: aws.String("PageMaxItems"), @@ -738,7 +491,7 @@ func ExampleRoute53_ListGeoLocations() { } func ExampleRoute53_ListHealthChecks() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.ListHealthChecksInput{ Marker: aws.String("PageMarker"), @@ -758,7 +511,7 @@ func ExampleRoute53_ListHealthChecks() { } func ExampleRoute53_ListHostedZones() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.ListHostedZonesInput{ DelegationSetId: aws.String("ResourceId"), @@ -779,7 +532,7 @@ func ExampleRoute53_ListHostedZones() { } func ExampleRoute53_ListHostedZonesByName() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.ListHostedZonesByNameInput{ DNSName: aws.String("DNSName"), @@ -800,7 +553,7 @@ func ExampleRoute53_ListHostedZonesByName() { } func ExampleRoute53_ListResourceRecordSets() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.ListResourceRecordSetsInput{ HostedZoneId: aws.String("ResourceId"), // Required @@ -823,7 +576,7 @@ func ExampleRoute53_ListResourceRecordSets() { } func ExampleRoute53_ListReusableDelegationSets() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.ListReusableDelegationSetsInput{ Marker: aws.String("PageMarker"), @@ -843,7 +596,7 @@ func ExampleRoute53_ListReusableDelegationSets() { } func ExampleRoute53_ListTagsForResource() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.ListTagsForResourceInput{ ResourceId: aws.String("TagResourceId"), // Required @@ -863,7 +616,7 @@ func ExampleRoute53_ListTagsForResource() { } func ExampleRoute53_ListTagsForResources() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.ListTagsForResourcesInput{ ResourceIds: []*string{ // Required @@ -885,143 +638,18 @@ func ExampleRoute53_ListTagsForResources() { fmt.Println(resp) } -func ExampleRoute53_ListTrafficPolicies() { - svc := route53.New(session.New()) - - params := &route53.ListTrafficPoliciesInput{ - MaxItems: aws.String("PageMaxItems"), - TrafficPolicyIdMarker: aws.String("TrafficPolicyId"), - } - resp, err := svc.ListTrafficPolicies(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_ListTrafficPolicyInstances() { - svc := route53.New(session.New()) - - params := &route53.ListTrafficPolicyInstancesInput{ - HostedZoneIdMarker: aws.String("ResourceId"), - MaxItems: aws.String("PageMaxItems"), - TrafficPolicyInstanceNameMarker: aws.String("DNSName"), - TrafficPolicyInstanceTypeMarker: aws.String("RRType"), - } - resp, err := svc.ListTrafficPolicyInstances(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_ListTrafficPolicyInstancesByHostedZone() { - svc := route53.New(session.New()) - - params := &route53.ListTrafficPolicyInstancesByHostedZoneInput{ - HostedZoneId: aws.String("ResourceId"), // Required - MaxItems: aws.String("PageMaxItems"), - TrafficPolicyInstanceNameMarker: aws.String("DNSName"), - TrafficPolicyInstanceTypeMarker: aws.String("RRType"), - } - resp, err := svc.ListTrafficPolicyInstancesByHostedZone(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_ListTrafficPolicyInstancesByPolicy() { - svc := route53.New(session.New()) - - params := &route53.ListTrafficPolicyInstancesByPolicyInput{ - TrafficPolicyId: aws.String("TrafficPolicyId"), // Required - TrafficPolicyVersion: aws.Int64(1), // Required - HostedZoneIdMarker: aws.String("ResourceId"), - MaxItems: aws.String("PageMaxItems"), - TrafficPolicyInstanceNameMarker: aws.String("DNSName"), - TrafficPolicyInstanceTypeMarker: aws.String("RRType"), - } - resp, err := svc.ListTrafficPolicyInstancesByPolicy(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_ListTrafficPolicyVersions() { - svc := route53.New(session.New()) - - params := &route53.ListTrafficPolicyVersionsInput{ - Id: aws.String("TrafficPolicyId"), // Required - MaxItems: aws.String("PageMaxItems"), - TrafficPolicyVersionMarker: aws.String("TrafficPolicyVersionMarker"), - } - resp, err := svc.ListTrafficPolicyVersions(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRoute53_UpdateHealthCheck() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.UpdateHealthCheckInput{ - HealthCheckId: aws.String("HealthCheckId"), // Required - AlarmIdentifier: &route53.AlarmIdentifier{ - Name: aws.String("AlarmName"), // Required - Region: aws.String("CloudWatchRegion"), // Required - }, - ChildHealthChecks: []*string{ - aws.String("HealthCheckId"), // Required - // More values... - }, - EnableSNI: aws.Bool(true), - FailureThreshold: aws.Int64(1), - FullyQualifiedDomainName: aws.String("FullyQualifiedDomainName"), - HealthCheckVersion: aws.Int64(1), - HealthThreshold: aws.Int64(1), - IPAddress: aws.String("IPAddress"), - InsufficientDataHealthStatus: aws.String("InsufficientDataHealthStatus"), - Inverted: aws.Bool(true), - Port: aws.Int64(1), - Regions: []*string{ - aws.String("HealthCheckRegion"), // Required - // More values... - }, - ResourcePath: aws.String("ResourcePath"), - SearchString: aws.String("SearchString"), + HealthCheckId: aws.String("HealthCheckId"), // Required + FailureThreshold: aws.Int64(1), + FullyQualifiedDomainName: aws.String("FullyQualifiedDomainName"), + HealthCheckVersion: aws.Int64(1), + IPAddress: aws.String("IPAddress"), + Port: aws.Int64(1), + ResourcePath: aws.String("ResourcePath"), + SearchString: aws.String("SearchString"), } resp, err := svc.UpdateHealthCheck(params) @@ -1037,7 +665,7 @@ func ExampleRoute53_UpdateHealthCheck() { } func ExampleRoute53_UpdateHostedZoneComment() { - svc := route53.New(session.New()) + svc := route53.New(nil) params := &route53.UpdateHostedZoneCommentInput{ Id: aws.String("ResourceId"), // Required @@ -1055,46 +683,3 @@ func ExampleRoute53_UpdateHostedZoneComment() { // Pretty-print the response data. fmt.Println(resp) } - -func ExampleRoute53_UpdateTrafficPolicyComment() { - svc := route53.New(session.New()) - - params := &route53.UpdateTrafficPolicyCommentInput{ - Comment: aws.String("TrafficPolicyComment"), // Required - Id: aws.String("TrafficPolicyId"), // Required - Version: aws.Int64(1), // Required - } - resp, err := svc.UpdateTrafficPolicyComment(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleRoute53_UpdateTrafficPolicyInstance() { - svc := route53.New(session.New()) - - params := &route53.UpdateTrafficPolicyInstanceInput{ - Id: aws.String("TrafficPolicyInstanceId"), // Required - TTL: aws.Int64(1), // Required - TrafficPolicyId: aws.String("TrafficPolicyId"), // Required - TrafficPolicyVersion: aws.Int64(1), // Required - } - resp, err := svc.UpdateTrafficPolicyInstance(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go index a2baa130e..2695b8b3d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface.go @@ -34,18 +34,6 @@ type Route53API interface { CreateReusableDelegationSet(*route53.CreateReusableDelegationSetInput) (*route53.CreateReusableDelegationSetOutput, error) - CreateTrafficPolicyRequest(*route53.CreateTrafficPolicyInput) (*request.Request, *route53.CreateTrafficPolicyOutput) - - CreateTrafficPolicy(*route53.CreateTrafficPolicyInput) (*route53.CreateTrafficPolicyOutput, error) - - CreateTrafficPolicyInstanceRequest(*route53.CreateTrafficPolicyInstanceInput) (*request.Request, *route53.CreateTrafficPolicyInstanceOutput) - - CreateTrafficPolicyInstance(*route53.CreateTrafficPolicyInstanceInput) (*route53.CreateTrafficPolicyInstanceOutput, error) - - CreateTrafficPolicyVersionRequest(*route53.CreateTrafficPolicyVersionInput) (*request.Request, *route53.CreateTrafficPolicyVersionOutput) - - CreateTrafficPolicyVersion(*route53.CreateTrafficPolicyVersionInput) (*route53.CreateTrafficPolicyVersionOutput, error) - DeleteHealthCheckRequest(*route53.DeleteHealthCheckInput) (*request.Request, *route53.DeleteHealthCheckOutput) DeleteHealthCheck(*route53.DeleteHealthCheckInput) (*route53.DeleteHealthCheckOutput, error) @@ -58,14 +46,6 @@ type Route53API interface { DeleteReusableDelegationSet(*route53.DeleteReusableDelegationSetInput) (*route53.DeleteReusableDelegationSetOutput, error) - DeleteTrafficPolicyRequest(*route53.DeleteTrafficPolicyInput) (*request.Request, *route53.DeleteTrafficPolicyOutput) - - DeleteTrafficPolicy(*route53.DeleteTrafficPolicyInput) (*route53.DeleteTrafficPolicyOutput, error) - - DeleteTrafficPolicyInstanceRequest(*route53.DeleteTrafficPolicyInstanceInput) (*request.Request, *route53.DeleteTrafficPolicyInstanceOutput) - - DeleteTrafficPolicyInstance(*route53.DeleteTrafficPolicyInstanceInput) (*route53.DeleteTrafficPolicyInstanceOutput, error) - DisassociateVPCFromHostedZoneRequest(*route53.DisassociateVPCFromHostedZoneInput) (*request.Request, *route53.DisassociateVPCFromHostedZoneOutput) DisassociateVPCFromHostedZone(*route53.DisassociateVPCFromHostedZoneInput) (*route53.DisassociateVPCFromHostedZoneOutput, error) @@ -74,10 +54,6 @@ type Route53API interface { GetChange(*route53.GetChangeInput) (*route53.GetChangeOutput, error) - GetChangeDetailsRequest(*route53.GetChangeDetailsInput) (*request.Request, *route53.GetChangeDetailsOutput) - - GetChangeDetails(*route53.GetChangeDetailsInput) (*route53.GetChangeDetailsOutput, error) - GetCheckerIpRangesRequest(*route53.GetCheckerIpRangesInput) (*request.Request, *route53.GetCheckerIpRangesOutput) GetCheckerIpRanges(*route53.GetCheckerIpRangesInput) (*route53.GetCheckerIpRangesOutput, error) @@ -114,26 +90,6 @@ type Route53API interface { GetReusableDelegationSet(*route53.GetReusableDelegationSetInput) (*route53.GetReusableDelegationSetOutput, error) - GetTrafficPolicyRequest(*route53.GetTrafficPolicyInput) (*request.Request, *route53.GetTrafficPolicyOutput) - - GetTrafficPolicy(*route53.GetTrafficPolicyInput) (*route53.GetTrafficPolicyOutput, error) - - GetTrafficPolicyInstanceRequest(*route53.GetTrafficPolicyInstanceInput) (*request.Request, *route53.GetTrafficPolicyInstanceOutput) - - GetTrafficPolicyInstance(*route53.GetTrafficPolicyInstanceInput) (*route53.GetTrafficPolicyInstanceOutput, error) - - GetTrafficPolicyInstanceCountRequest(*route53.GetTrafficPolicyInstanceCountInput) (*request.Request, *route53.GetTrafficPolicyInstanceCountOutput) - - GetTrafficPolicyInstanceCount(*route53.GetTrafficPolicyInstanceCountInput) (*route53.GetTrafficPolicyInstanceCountOutput, error) - - ListChangeBatchesByHostedZoneRequest(*route53.ListChangeBatchesByHostedZoneInput) (*request.Request, *route53.ListChangeBatchesByHostedZoneOutput) - - ListChangeBatchesByHostedZone(*route53.ListChangeBatchesByHostedZoneInput) (*route53.ListChangeBatchesByHostedZoneOutput, error) - - ListChangeBatchesByRRSetRequest(*route53.ListChangeBatchesByRRSetInput) (*request.Request, *route53.ListChangeBatchesByRRSetOutput) - - ListChangeBatchesByRRSet(*route53.ListChangeBatchesByRRSetInput) (*route53.ListChangeBatchesByRRSetOutput, error) - ListGeoLocationsRequest(*route53.ListGeoLocationsInput) (*request.Request, *route53.ListGeoLocationsOutput) ListGeoLocations(*route53.ListGeoLocationsInput) (*route53.ListGeoLocationsOutput, error) @@ -172,26 +128,6 @@ type Route53API interface { ListTagsForResources(*route53.ListTagsForResourcesInput) (*route53.ListTagsForResourcesOutput, error) - ListTrafficPoliciesRequest(*route53.ListTrafficPoliciesInput) (*request.Request, *route53.ListTrafficPoliciesOutput) - - ListTrafficPolicies(*route53.ListTrafficPoliciesInput) (*route53.ListTrafficPoliciesOutput, error) - - ListTrafficPolicyInstancesRequest(*route53.ListTrafficPolicyInstancesInput) (*request.Request, *route53.ListTrafficPolicyInstancesOutput) - - ListTrafficPolicyInstances(*route53.ListTrafficPolicyInstancesInput) (*route53.ListTrafficPolicyInstancesOutput, error) - - ListTrafficPolicyInstancesByHostedZoneRequest(*route53.ListTrafficPolicyInstancesByHostedZoneInput) (*request.Request, *route53.ListTrafficPolicyInstancesByHostedZoneOutput) - - ListTrafficPolicyInstancesByHostedZone(*route53.ListTrafficPolicyInstancesByHostedZoneInput) (*route53.ListTrafficPolicyInstancesByHostedZoneOutput, error) - - ListTrafficPolicyInstancesByPolicyRequest(*route53.ListTrafficPolicyInstancesByPolicyInput) (*request.Request, *route53.ListTrafficPolicyInstancesByPolicyOutput) - - ListTrafficPolicyInstancesByPolicy(*route53.ListTrafficPolicyInstancesByPolicyInput) (*route53.ListTrafficPolicyInstancesByPolicyOutput, error) - - ListTrafficPolicyVersionsRequest(*route53.ListTrafficPolicyVersionsInput) (*request.Request, *route53.ListTrafficPolicyVersionsOutput) - - ListTrafficPolicyVersions(*route53.ListTrafficPolicyVersionsInput) (*route53.ListTrafficPolicyVersionsOutput, error) - UpdateHealthCheckRequest(*route53.UpdateHealthCheckInput) (*request.Request, *route53.UpdateHealthCheckOutput) UpdateHealthCheck(*route53.UpdateHealthCheckInput) (*route53.UpdateHealthCheckOutput, error) @@ -199,14 +135,4 @@ type Route53API interface { UpdateHostedZoneCommentRequest(*route53.UpdateHostedZoneCommentInput) (*request.Request, *route53.UpdateHostedZoneCommentOutput) UpdateHostedZoneComment(*route53.UpdateHostedZoneCommentInput) (*route53.UpdateHostedZoneCommentOutput, error) - - UpdateTrafficPolicyCommentRequest(*route53.UpdateTrafficPolicyCommentInput) (*request.Request, *route53.UpdateTrafficPolicyCommentOutput) - - UpdateTrafficPolicyComment(*route53.UpdateTrafficPolicyCommentInput) (*route53.UpdateTrafficPolicyCommentOutput, error) - - UpdateTrafficPolicyInstanceRequest(*route53.UpdateTrafficPolicyInstanceInput) (*request.Request, *route53.UpdateTrafficPolicyInstanceOutput) - - UpdateTrafficPolicyInstance(*route53.UpdateTrafficPolicyInstanceInput) (*route53.UpdateTrafficPolicyInstanceOutput, error) } - -var _ Route53API = (*route53.Route53)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface_test.go new file mode 100644 index 000000000..4544c66f9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package route53iface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/route53" + "github.com/aws/aws-sdk-go/service/route53/route53iface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*route53iface.Route53API)(nil), route53.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/service.go b/vendor/github.com/aws/aws-sdk-go/service/route53/service.go index f4a82bde5..be77fe811 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/service.go @@ -4,72 +4,49 @@ package route53 import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restxml" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restxml" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Route53 is a client for Route 53. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type Route53 struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "route53" - -// New creates a new instance of the Route53 client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a Route53 client from just a session. -// svc := route53.New(mySession) -// -// // Create a Route53 client with additional configuration -// svc := route53.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *Route53 { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Route53 { - svc := &Route53{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2013-04-01", - }, - handlers, - ), +// New returns a new Route53 client. +func New(config *aws.Config) *Route53 { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "route53", + APIVersion: "2013-04-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &Route53{service} } // newRequest creates a new request for a Route53 operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error.go deleted file mode 100644 index e91375dc4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error.go +++ /dev/null @@ -1,77 +0,0 @@ -package route53 - -import ( - "bytes" - "encoding/xml" - "io/ioutil" - - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restxml" -) - -type baseXMLErrorResponse struct { - XMLName xml.Name -} - -type standardXMLErrorResponse struct { - XMLName xml.Name `xml:"ErrorResponse"` - Code string `xml:"Error>Code"` - Message string `xml:"Error>Message"` - RequestID string `xml:"RequestId"` -} - -type invalidChangeBatchXMLErrorResponse struct { - XMLName xml.Name `xml:"InvalidChangeBatch"` - Messages []string `xml:"Messages>Message"` -} - -func unmarshalChangeResourceRecordSetsError(r *request.Request) { - defer r.HTTPResponse.Body.Close() - - responseBody, err := ioutil.ReadAll(r.HTTPResponse.Body) - - if err != nil { - r.Error = awserr.New("SerializationError", "failed to read Route53 XML error response", err) - return - } - - baseError := &baseXMLErrorResponse{} - - if err := xml.Unmarshal(responseBody, baseError); err != nil { - r.Error = awserr.New("SerializationError", "failed to decode Route53 XML error response", err) - return - } - - switch baseError.XMLName.Local { - case "InvalidChangeBatch": - unmarshalInvalidChangeBatchError(r, responseBody) - default: - r.HTTPResponse.Body = ioutil.NopCloser(bytes.NewReader(responseBody)) - restxml.UnmarshalError(r) - } -} - -func unmarshalInvalidChangeBatchError(r *request.Request, requestBody []byte) { - resp := &invalidChangeBatchXMLErrorResponse{} - err := xml.Unmarshal(requestBody, resp) - - if err != nil { - r.Error = awserr.New("SerializationError", "failed to decode query XML error response", err) - return - } - - const errorCode = "InvalidChangeBatch" - errors := []error{} - - for _, msg := range resp.Messages { - errors = append(errors, awserr.New(errorCode, msg, nil)) - } - - r.Error = awserr.NewRequestFailure( - awserr.NewBatchError(errorCode, "ChangeBatch errors occured", errors), - r.HTTPResponse.StatusCode, - r.RequestID, - ) - -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error_leak_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error_leak_test.go deleted file mode 100644 index 2d6d86d89..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error_leak_test.go +++ /dev/null @@ -1,37 +0,0 @@ -package route53 - -import ( - "net/http" - "testing" - - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" -) - -func TestUnmarhsalErrorLeak(t *testing.T) { - req := &request.Request{ - Operation: &request.Operation{ - Name: opChangeResourceRecordSets, - }, - HTTPRequest: &http.Request{ - Header: make(http.Header), - Body: &awstesting.ReadCloser{Size: 2048}, - }, - } - req.HTTPResponse = &http.Response{ - Body: &awstesting.ReadCloser{Size: 2048}, - Header: http.Header{ - "X-Amzn-Requestid": []string{"1"}, - }, - StatusCode: http.StatusOK, - } - - reader := req.HTTPResponse.Body.(*awstesting.ReadCloser) - unmarshalChangeResourceRecordSetsError(req) - - assert.NotNil(t, req.Error) - assert.Equal(t, reader.Closed, true) - assert.Equal(t, reader.Size, 0) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error_test.go deleted file mode 100644 index 7d5aa90c2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/unmarshal_error_test.go +++ /dev/null @@ -1,111 +0,0 @@ -package route53_test - -import ( - "bytes" - "io/ioutil" - "net/http" - "testing" - - "github.com/stretchr/testify/assert" - - "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/awstesting/unit" - "github.com/aws/aws-sdk-go/service/route53" -) - -func makeClientWithResponse(response string) *route53.Route53 { - r := route53.New(unit.Session) - r.Handlers.Send.Clear() - r.Handlers.Send.PushBack(func(r *request.Request) { - body := ioutil.NopCloser(bytes.NewReader([]byte(response))) - r.HTTPResponse = &http.Response{ - ContentLength: int64(len(response)), - StatusCode: 400, - Status: "Bad Request", - Body: body, - } - }) - - return r -} - -func TestUnmarshalStandardError(t *testing.T) { - const errorResponse = ` - - - InvalidDomainName - The domain name is invalid - - 12345 - -` - - r := makeClientWithResponse(errorResponse) - - _, err := r.CreateHostedZone(&route53.CreateHostedZoneInput{ - CallerReference: aws.String("test"), - Name: aws.String("test_zone"), - }) - - assert.Error(t, err) - assert.Equal(t, "InvalidDomainName", err.(awserr.Error).Code()) - assert.Equal(t, "The domain name is invalid", err.(awserr.Error).Message()) -} - -func TestUnmarshalInvalidChangeBatch(t *testing.T) { - const errorMessage = ` -Tried to create resource record set duplicate.example.com. type A, -but it already exists -` - const errorResponse = ` - - - ` + errorMessage + ` - - -` - - r := makeClientWithResponse(errorResponse) - - req := &route53.ChangeResourceRecordSetsInput{ - HostedZoneId: aws.String("zoneId"), - ChangeBatch: &route53.ChangeBatch{ - Changes: []*route53.Change{ - { - Action: aws.String("CREATE"), - ResourceRecordSet: &route53.ResourceRecordSet{ - Name: aws.String("domain"), - Type: aws.String("CNAME"), - TTL: aws.Int64(120), - ResourceRecords: []*route53.ResourceRecord{ - { - Value: aws.String("cname"), - }, - }, - }, - }, - }, - }, - } - - _, err := r.ChangeResourceRecordSets(req) - assert.Error(t, err) - - if reqErr, ok := err.(awserr.RequestFailure); ok { - assert.Error(t, reqErr) - assert.Equal(t, 400, reqErr.StatusCode()) - } else { - assert.Fail(t, "returned error is not a RequestFailure") - } - - if batchErr, ok := err.(awserr.BatchedErrors); ok { - errs := batchErr.OrigErrs() - assert.Len(t, errs, 1) - assert.Equal(t, "InvalidChangeBatch", errs[0].(awserr.Error).Code()) - assert.Equal(t, errorMessage, errs[0].(awserr.Error).Message()) - } else { - assert.Fail(t, "returned error is not a BatchedErrors") - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/route53/waiters.go deleted file mode 100644 index 04786169e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/waiters.go +++ /dev/null @@ -1,30 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package route53 - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *Route53) WaitUntilResourceRecordSetsChanged(input *GetChangeInput) error { - waiterCfg := waiter.Config{ - Operation: "GetChange", - Delay: 30, - MaxAttempts: 60, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "path", - Argument: "ChangeInfo.Status", - Expected: "INSYNC", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go index 1a64aad8c..e5d64ea8a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/api.go @@ -4,7 +4,6 @@ package route53domains import ( - "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -31,9 +30,10 @@ func (c *Route53Domains) CheckDomainAvailabilityRequest(input *CheckDomainAvaila return } -// This operation checks the availability of one domain name. Note that if the -// availability status of a domain is pending, you must submit another request -// to determine the availability of the domain name. +// This operation checks the availability of one domain name. You can access +// this API without authenticating. Note that if the availability status of +// a domain is pending, you must submit another request to determine the availability +// of the domain name. func (c *Route53Domains) CheckDomainAvailability(input *CheckDomainAvailabilityInput) (*CheckDomainAvailabilityOutput, error) { req, out := c.CheckDomainAvailabilityRequest(input) err := req.Send() @@ -203,38 +203,6 @@ func (c *Route53Domains) EnableDomainTransferLock(input *EnableDomainTransferLoc return out, err } -const opGetContactReachabilityStatus = "GetContactReachabilityStatus" - -// GetContactReachabilityStatusRequest generates a request for the GetContactReachabilityStatus operation. -func (c *Route53Domains) GetContactReachabilityStatusRequest(input *GetContactReachabilityStatusInput) (req *request.Request, output *GetContactReachabilityStatusOutput) { - op := &request.Operation{ - Name: opGetContactReachabilityStatus, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetContactReachabilityStatusInput{} - } - - req = c.newRequest(op, input, output) - output = &GetContactReachabilityStatusOutput{} - req.Data = output - return -} - -// For operations that require confirmation that the email address for the registrant -// contact is valid, such as registering a new domain, this operation returns -// information about whether the registrant contact has responded. -// -// If you want us to resend the email, use the ResendContactReachabilityEmail -// operation. -func (c *Route53Domains) GetContactReachabilityStatus(input *GetContactReachabilityStatusInput) (*GetContactReachabilityStatusOutput, error) { - req, out := c.GetContactReachabilityStatusRequest(input) - err := req.Send() - return out, err -} - const opGetDomainDetail = "GetDomainDetail" // GetDomainDetailRequest generates a request for the GetDomainDetail operation. @@ -326,7 +294,6 @@ func (c *Route53Domains) ListDomains(input *ListDomainsInput) (*ListDomainsOutpu func (c *Route53Domains) ListDomainsPages(input *ListDomainsInput, fn func(p *ListDomainsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListDomainsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListDomainsOutput), lastPage) }) @@ -367,7 +334,6 @@ func (c *Route53Domains) ListOperations(input *ListOperationsInput) (*ListOperat func (c *Route53Domains) ListOperationsPages(input *ListOperationsInput, fn func(p *ListOperationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListOperationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListOperationsOutput), lastPage) }) @@ -449,35 +415,6 @@ func (c *Route53Domains) RegisterDomain(input *RegisterDomainInput) (*RegisterDo return out, err } -const opResendContactReachabilityEmail = "ResendContactReachabilityEmail" - -// ResendContactReachabilityEmailRequest generates a request for the ResendContactReachabilityEmail operation. -func (c *Route53Domains) ResendContactReachabilityEmailRequest(input *ResendContactReachabilityEmailInput) (req *request.Request, output *ResendContactReachabilityEmailOutput) { - op := &request.Operation{ - Name: opResendContactReachabilityEmail, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ResendContactReachabilityEmailInput{} - } - - req = c.newRequest(op, input, output) - output = &ResendContactReachabilityEmailOutput{} - req.Data = output - return -} - -// For operations that require confirmation that the email address for the registrant -// contact is valid, such as registering a new domain, this operation resends -// the confirmation email to the current email address for the registrant contact. -func (c *Route53Domains) ResendContactReachabilityEmail(input *ResendContactReachabilityEmailInput) (*ResendContactReachabilityEmailOutput, error) { - req, out := c.ResendContactReachabilityEmailRequest(input) - err := req.Send() - return out, err -} - const opRetrieveDomainAuthCode = "RetrieveDomainAuthCode" // RetrieveDomainAuthCodeRequest generates a request for the RetrieveDomainAuthCode operation. @@ -693,8 +630,6 @@ func (c *Route53Domains) UpdateTagsForDomain(input *UpdateTagsForDomainInput) (* // The CheckDomainAvailability request contains the following elements. type CheckDomainAvailabilityInput struct { - _ struct{} `type:"structure"` - // The name of a domain. // // Type: String @@ -710,6 +645,12 @@ type CheckDomainAvailabilityInput struct { // Reserved for future use. IdnLangCode *string `type:"string"` + + metadataCheckDomainAvailabilityInput `json:"-" xml:"-"` +} + +type metadataCheckDomainAvailabilityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -722,23 +663,8 @@ func (s CheckDomainAvailabilityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CheckDomainAvailabilityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CheckDomainAvailabilityInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The CheckDomainAvailability response includes the following elements. type CheckDomainAvailabilityOutput struct { - _ struct{} `type:"structure"` - // Whether the domain name is available for registering. // // You can only register domains designated as AVAILABLE. @@ -747,16 +673,23 @@ type CheckDomainAvailabilityOutput struct { // // Valid values: // - // AVAILABLE – The domain name is available. AVAILABLE_RESERVED – The domain - // name is reserved under specific conditions. AVAILABLE_PREORDER – The domain - // name is available and can be preordered. UNAVAILABLE – The domain name is - // not available. UNAVAILABLE_PREMIUM – The domain name is not available. UNAVAILABLE_RESTRICTED - // – The domain name is forbidden. RESERVED – The domain name has been reserved - // for another person or organization. DONT_KNOW – The TLD registry didn't reply - // with a definitive answer about whether the domain name is available. Amazon - // Route 53 can return this response for a variety of reasons, for example, - // the registry is performing maintenance. Try again later. + // AVAILABLE – The domain name is available. AVAILABLE_RESERVED – The domain + // name is reserved under specific conditions. AVAILABLE_PREORDER – The domain + // name is available and can be preordered. UNAVAILABLE – The domain name is + // not available. UNAVAILABLE_PREMIUM – The domain name is not available. + // UNAVAILABLE_RESTRICTED – The domain name is forbidden. RESERVED – The domain + // name has been reserved for another person or organization. DONT_KNOW – The + // TLD registry didn't reply with a definitive answer about whether the domain + // name is available. Amazon Route 53 can return this response for a variety + // of reasons, for example, the registry is performing maintenance. Try again + // later. Availability *string `type:"string" required:"true" enum:"DomainAvailability"` + + metadataCheckDomainAvailabilityOutput `json:"-" xml:"-"` +} + +type metadataCheckDomainAvailabilityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -771,8 +704,6 @@ func (s CheckDomainAvailabilityOutput) GoString() string { // ContactDetail includes the following elements. type ContactDetail struct { - _ struct{} `type:"structure"` - // First line of the contact's address. // // Type: String @@ -962,6 +893,12 @@ type ContactDetail struct { // // Required: No ZipCode *string `type:"string"` + + metadataContactDetail `json:"-" xml:"-"` +} + +type metadataContactDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -974,30 +911,8 @@ func (s ContactDetail) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ContactDetail) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContactDetail"} - if s.ExtraParams != nil { - for i, v := range s.ExtraParams { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ExtraParams", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The DeleteTagsForDomainRequest includes the following elements. type DeleteTagsForDomainInput struct { - _ struct{} `type:"structure"` - // The domain for which you want to delete one or more tags. // // The name of a domain. @@ -1007,10 +922,10 @@ type DeleteTagsForDomainInput struct { // Default: None // // Constraints: The domain name can contain only the letters a through z, the - // numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're - // surrounded by letters, numbers, or other hyphens. You can't specify a hyphen - // at the beginning or end of a label. To specify an Internationalized Domain - // Name, you must convert the name to Punycode. + // numbers 0 through 9, and hyphen (-). Hyphens are allowed only when theyaposre + // surrounded by letters, numbers, or other hyphens. You canapost specify a + // hyphen at the beginning or end of a label. To specify an Internationalized + // Domain Name, you must convert the name to Punycode. // // Required: Yes DomainName *string `type:"string" required:"true"` @@ -1025,6 +940,12 @@ type DeleteTagsForDomainInput struct { // // '> TagsToDelete []*string `type:"list" required:"true"` + + metadataDeleteTagsForDomainInput `json:"-" xml:"-"` +} + +type metadataDeleteTagsForDomainInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1037,24 +958,12 @@ func (s DeleteTagsForDomainInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTagsForDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTagsForDomainInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.TagsToDelete == nil { - invalidParams.Add(request.NewErrParamRequired("TagsToDelete")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteTagsForDomainOutput struct { + metadataDeleteTagsForDomainOutput `json:"-" xml:"-"` } -type DeleteTagsForDomainOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteTagsForDomainOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1068,9 +977,13 @@ func (s DeleteTagsForDomainOutput) GoString() string { } type DisableDomainAutoRenewInput struct { - _ struct{} `type:"structure"` - DomainName *string `type:"string" required:"true"` + + metadataDisableDomainAutoRenewInput `json:"-" xml:"-"` +} + +type metadataDisableDomainAutoRenewInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1083,21 +996,12 @@ func (s DisableDomainAutoRenewInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableDomainAutoRenewInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableDomainAutoRenewInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DisableDomainAutoRenewOutput struct { + metadataDisableDomainAutoRenewOutput `json:"-" xml:"-"` } -type DisableDomainAutoRenewOutput struct { - _ struct{} `type:"structure"` +type metadataDisableDomainAutoRenewOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1112,8 +1016,6 @@ func (s DisableDomainAutoRenewOutput) GoString() string { // The DisableDomainTransferLock request includes the following element. type DisableDomainTransferLockInput struct { - _ struct{} `type:"structure"` - // The name of a domain. // // Type: String @@ -1126,6 +1028,12 @@ type DisableDomainTransferLockInput struct { // // Required: Yes DomainName *string `type:"string" required:"true"` + + metadataDisableDomainTransferLockInput `json:"-" xml:"-"` +} + +type metadataDisableDomainTransferLockInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1138,23 +1046,8 @@ func (s DisableDomainTransferLockInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableDomainTransferLockInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableDomainTransferLockInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The DisableDomainTransferLock response includes the following element. type DisableDomainTransferLockOutput struct { - _ struct{} `type:"structure"` - // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // @@ -1164,6 +1057,12 @@ type DisableDomainTransferLockOutput struct { // // Constraints: Maximum 255 characters. OperationId *string `type:"string" required:"true"` + + metadataDisableDomainTransferLockOutput `json:"-" xml:"-"` +} + +type metadataDisableDomainTransferLockOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1177,8 +1076,6 @@ func (s DisableDomainTransferLockOutput) GoString() string { } type DomainSummary struct { - _ struct{} `type:"structure"` - // Indicates whether the domain is automatically renewed upon expiration. // // Type: Boolean @@ -1203,6 +1100,12 @@ type DomainSummary struct { // // Valid values: True | False TransferLock *bool `type:"boolean"` + + metadataDomainSummary `json:"-" xml:"-"` +} + +type metadataDomainSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1216,9 +1119,13 @@ func (s DomainSummary) GoString() string { } type EnableDomainAutoRenewInput struct { - _ struct{} `type:"structure"` - DomainName *string `type:"string" required:"true"` + + metadataEnableDomainAutoRenewInput `json:"-" xml:"-"` +} + +type metadataEnableDomainAutoRenewInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1231,21 +1138,12 @@ func (s EnableDomainAutoRenewInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableDomainAutoRenewInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableDomainAutoRenewInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type EnableDomainAutoRenewOutput struct { + metadataEnableDomainAutoRenewOutput `json:"-" xml:"-"` } -type EnableDomainAutoRenewOutput struct { - _ struct{} `type:"structure"` +type metadataEnableDomainAutoRenewOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1260,8 +1158,6 @@ func (s EnableDomainAutoRenewOutput) GoString() string { // The EnableDomainTransferLock request includes the following element. type EnableDomainTransferLockInput struct { - _ struct{} `type:"structure"` - // The name of a domain. // // Type: String @@ -1274,6 +1170,12 @@ type EnableDomainTransferLockInput struct { // // Required: Yes DomainName *string `type:"string" required:"true"` + + metadataEnableDomainTransferLockInput `json:"-" xml:"-"` +} + +type metadataEnableDomainTransferLockInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1286,23 +1188,8 @@ func (s EnableDomainTransferLockInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EnableDomainTransferLockInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnableDomainTransferLockInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The EnableDomainTransferLock response includes the following elements. type EnableDomainTransferLockOutput struct { - _ struct{} `type:"structure"` - // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // @@ -1312,6 +1199,12 @@ type EnableDomainTransferLockOutput struct { // // Constraints: Maximum 255 characters. OperationId *string `type:"string" required:"true"` + + metadataEnableDomainTransferLockOutput `json:"-" xml:"-"` +} + +type metadataEnableDomainTransferLockOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1326,8 +1219,6 @@ func (s EnableDomainTransferLockOutput) GoString() string { // ExtraParam includes the following elements. type ExtraParam struct { - _ struct{} `type:"structure"` - // Name of the additional parameter required by the top-level domain. // // Type: String @@ -1336,9 +1227,9 @@ type ExtraParam struct { // // Valid values: DUNS_NUMBER | BRAND_NUMBER | BIRTH_DEPARTMENT | BIRTH_DATE_IN_YYYY_MM_DD // | BIRTH_COUNTRY | BIRTH_CITY | DOCUMENT_NUMBER | AU_ID_NUMBER | AU_ID_TYPE - // | CA_LEGAL_TYPE | CA_BUSINESS_ENTITY_TYPE |ES_IDENTIFICATION | ES_IDENTIFICATION_TYPE - // | ES_LEGAL_FORM | FI_BUSINESS_NUMBER | FI_ID_NUMBER | IT_PIN | RU_PASSPORT_DATA - // | SE_ID_NUMBER | SG_ID_NUMBER | VAT_NUMBER + // | CA_LEGAL_TYPE | ES_IDENTIFICATION | ES_IDENTIFICATION_TYPE | ES_LEGAL_FORM + // | FI_BUSINESS_NUMBER | FI_ID_NUMBER | IT_PIN | RU_PASSPORT_DATA | SE_ID_NUMBER + // | SG_ID_NUMBER | VAT_NUMBER // // Parent: ExtraParams // @@ -1358,90 +1249,26 @@ type ExtraParam struct { // // Required: Yes Value *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s ExtraParam) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ExtraParam) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ExtraParam) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ExtraParam"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetContactReachabilityStatusInput struct { - _ struct{} `type:"structure"` - - // The name of the domain for which you want to know whether the registrant - // contact has confirmed that the email address is valid. - // - // Type: String - // - // Default: None - // - // Required: Yes - DomainName *string `locationName:"domainName" type:"string"` -} -// String returns the string representation -func (s GetContactReachabilityStatusInput) String() string { - return awsutil.Prettify(s) + metadataExtraParam `json:"-" xml:"-"` } -// GoString returns the string representation -func (s GetContactReachabilityStatusInput) GoString() string { - return s.String() -} - -type GetContactReachabilityStatusOutput struct { - _ struct{} `type:"structure"` - - // The domain name for which you requested the reachability status. - DomainName *string `locationName:"domainName" type:"string"` - - // Whether the registrant contact has responded. PENDING indicates that we sent - // the confirmation email and haven't received a response yet, DONE indicates - // that we sent the email and got confirmation from the registrant contact, - // and EXPIRED indicates that the time limit expired before the registrant contact - // responded. - // - // Type: String - // - // Valid values: PENDING, DONE, EXPIRED - Status *string `locationName:"status" type:"string" enum:"ReachabilityStatus"` +type metadataExtraParam struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetContactReachabilityStatusOutput) String() string { +func (s ExtraParam) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetContactReachabilityStatusOutput) GoString() string { +func (s ExtraParam) GoString() string { return s.String() } // The GetDomainDetail request includes the following element. type GetDomainDetailInput struct { - _ struct{} `type:"structure"` - // The name of a domain. // // Type: String @@ -1454,6 +1281,12 @@ type GetDomainDetailInput struct { // // Required: Yes DomainName *string `type:"string" required:"true"` + + metadataGetDomainDetailInput `json:"-" xml:"-"` +} + +type metadataGetDomainDetailInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1466,23 +1299,8 @@ func (s GetDomainDetailInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDomainDetailInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDomainDetailInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The GetDomainDetail response includes the following elements. type GetDomainDetailOutput struct { - _ struct{} `type:"structure"` - // Email address to contact to report incorrect contact information for a domain, // to report that the domain is being used to send spam, to report that someone // is cybersquatting on a domain name, or report some other type of abuse. @@ -1619,6 +1437,12 @@ type GetDomainDetailOutput struct { // // Type: String WhoIsServer *string `type:"string"` + + metadataGetDomainDetailOutput `json:"-" xml:"-"` +} + +type metadataGetDomainDetailOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1633,8 +1457,6 @@ func (s GetDomainDetailOutput) GoString() string { // The GetOperationDetail request includes the following element. type GetOperationDetailInput struct { - _ struct{} `type:"structure"` - // The identifier for the operation for which you want to get the status. Amazon // Route 53 returned the identifier in the response to the original request. // @@ -1644,6 +1466,12 @@ type GetOperationDetailInput struct { // // Required: Yes OperationId *string `type:"string" required:"true"` + + metadataGetOperationDetailInput `json:"-" xml:"-"` +} + +type metadataGetOperationDetailInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1656,23 +1484,8 @@ func (s GetOperationDetailInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetOperationDetailInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetOperationDetailInput"} - if s.OperationId == nil { - invalidParams.Add(request.NewErrParamRequired("OperationId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The GetOperationDetail response includes the following elements. type GetOperationDetailOutput struct { - _ struct{} `type:"structure"` - // The name of a domain. // // Type: String @@ -1700,6 +1513,12 @@ type GetOperationDetailOutput struct { // // Type: String Type *string `type:"string" enum:"OperationType"` + + metadataGetOperationDetailOutput `json:"-" xml:"-"` +} + +type metadataGetOperationDetailOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1714,8 +1533,6 @@ func (s GetOperationDetailOutput) GoString() string { // The ListDomains request includes the following elements. type ListDomainsInput struct { - _ struct{} `type:"structure"` - // For an initial request for a list of domains, omit this element. If the number // of domains that are associated with the current AWS account is greater than // the value that you specified for MaxItems, you can use Marker to return additional @@ -1742,6 +1559,12 @@ type ListDomainsInput struct { // // Required: No MaxItems *int64 `type:"integer"` + + metadataListDomainsInput `json:"-" xml:"-"` +} + +type metadataListDomainsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1756,8 +1579,6 @@ func (s ListDomainsInput) GoString() string { // The ListDomains response includes the following elements. type ListDomainsOutput struct { - _ struct{} `type:"structure"` - // A summary of domains. // // Type: Complex type containing a list of domain summaries. @@ -1773,6 +1594,12 @@ type ListDomainsOutput struct { // // Parent: Operations NextPageMarker *string `type:"string"` + + metadataListDomainsOutput `json:"-" xml:"-"` +} + +type metadataListDomainsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1787,8 +1614,6 @@ func (s ListDomainsOutput) GoString() string { // The ListOperations request includes the following elements. type ListOperationsInput struct { - _ struct{} `type:"structure"` - // For an initial request for a list of operations, omit this element. If the // number of operations that are not yet complete is greater than the value // that you specified for MaxItems, you can use Marker to return additional @@ -1813,6 +1638,12 @@ type ListOperationsInput struct { // // Required: No MaxItems *int64 `type:"integer"` + + metadataListOperationsInput `json:"-" xml:"-"` +} + +type metadataListOperationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1827,8 +1658,6 @@ func (s ListOperationsInput) GoString() string { // The ListOperations response includes the following elements. type ListOperationsOutput struct { - _ struct{} `type:"structure"` - // If there are more operations than you specified for MaxItems in the request, // submit another request and include the value of NextPageMarker in the value // of Marker. @@ -1844,6 +1673,12 @@ type ListOperationsOutput struct { // // Children: OperationId, Status, SubmittedDate, Type Operations []*OperationSummary `type:"list" required:"true"` + + metadataListOperationsOutput `json:"-" xml:"-"` +} + +type metadataListOperationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1858,10 +1693,14 @@ func (s ListOperationsOutput) GoString() string { // The ListTagsForDomainRequest includes the following elements. type ListTagsForDomainInput struct { - _ struct{} `type:"structure"` - // The domain for which you want to get a list of tags. DomainName *string `type:"string" required:"true"` + + metadataListTagsForDomainInput `json:"-" xml:"-"` +} + +type metadataListTagsForDomainInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1874,41 +1713,32 @@ func (s ListTagsForDomainInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForDomainInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The ListTagsForDomain response includes the following elements. type ListTagsForDomainOutput struct { - _ struct{} `type:"structure"` - // A list of the tags that are associated with the specified domain. // // Type: A complex type containing a list of tags // // Each tag includes the following elements. // - // Key + // Key // // The key (name) of a tag. // // Type: String // - // Value + // Value // // The value of a tag. // // Type: String TagList []*Tag `type:"list" required:"true"` + + metadataListTagsForDomainOutput `json:"-" xml:"-"` +} + +type metadataListTagsForDomainOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1923,8 +1753,6 @@ func (s ListTagsForDomainOutput) GoString() string { // Nameserver includes the following elements. type Nameserver struct { - _ struct{} `type:"structure"` - // Glue IP address of a name server entry. Glue IP addresses are required only // when the name of the name server is a subdomain of the domain. For example, // if your domain is example.com and the name server for the domain is ns.example.com, @@ -1945,6 +1773,12 @@ type Nameserver struct { // // Parent: Nameservers Name *string `type:"string" required:"true"` + + metadataNameserver `json:"-" xml:"-"` +} + +type metadataNameserver struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1957,23 +1791,8 @@ func (s Nameserver) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Nameserver) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Nameserver"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // OperationSummary includes the following elements. type OperationSummary struct { - _ struct{} `type:"structure"` - // Identifier returned to track the requested action. // // Type: String @@ -1994,6 +1813,12 @@ type OperationSummary struct { // Valid values: REGISTER_DOMAIN | DELETE_DOMAIN | TRANSFER_IN_DOMAIN | UPDATE_DOMAIN_CONTACT // | UPDATE_NAMESERVER | CHANGE_PRIVACY_PROTECTION | DOMAIN_LOCK Type *string `type:"string" required:"true" enum:"OperationType"` + + metadataOperationSummary `json:"-" xml:"-"` +} + +type metadataOperationSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2008,8 +1833,6 @@ func (s OperationSummary) GoString() string { // The RegisterDomain request includes the following elements. type RegisterDomainInput struct { - _ struct{} `type:"structure"` - // Provides detailed contact information. // // Type: Complex @@ -2056,7 +1879,7 @@ type RegisterDomainInput struct { // Valid values: Integer from 1 to 10 // // Required: Yes - DurationInYears *int64 `min:"1" type:"integer" required:"true"` + DurationInYears *int64 `type:"integer" required:"true"` // Reserved for future use. IdnLangCode *string `type:"string"` @@ -2124,6 +1947,12 @@ type RegisterDomainInput struct { // // Required: Yes TechContact *ContactDetail `type:"structure" required:"true"` + + metadataRegisterDomainInput `json:"-" xml:"-"` +} + +type metadataRegisterDomainInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2136,53 +1965,8 @@ func (s RegisterDomainInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterDomainInput"} - if s.AdminContact == nil { - invalidParams.Add(request.NewErrParamRequired("AdminContact")) - } - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DurationInYears == nil { - invalidParams.Add(request.NewErrParamRequired("DurationInYears")) - } - if s.DurationInYears != nil && *s.DurationInYears < 1 { - invalidParams.Add(request.NewErrParamMinValue("DurationInYears", 1)) - } - if s.RegistrantContact == nil { - invalidParams.Add(request.NewErrParamRequired("RegistrantContact")) - } - if s.TechContact == nil { - invalidParams.Add(request.NewErrParamRequired("TechContact")) - } - if s.AdminContact != nil { - if err := s.AdminContact.Validate(); err != nil { - invalidParams.AddNested("AdminContact", err.(request.ErrInvalidParams)) - } - } - if s.RegistrantContact != nil { - if err := s.RegistrantContact.Validate(); err != nil { - invalidParams.AddNested("RegistrantContact", err.(request.ErrInvalidParams)) - } - } - if s.TechContact != nil { - if err := s.TechContact.Validate(); err != nil { - invalidParams.AddNested("TechContact", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The RegisterDomain response includes the following element. type RegisterDomainOutput struct { - _ struct{} `type:"structure"` - // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // @@ -2192,72 +1976,26 @@ type RegisterDomainOutput struct { // // Constraints: Maximum 255 characters. OperationId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s RegisterDomainOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegisterDomainOutput) GoString() string { - return s.String() -} - -type ResendContactReachabilityEmailInput struct { - _ struct{} `type:"structure"` - // The name of the domain for which you want Amazon Route 53 to resend a confirmation - // email to the registrant contact. - // - // Type: String - // - // Default: None - // - // Required: Yes - DomainName *string `locationName:"domainName" type:"string"` + metadataRegisterDomainOutput `json:"-" xml:"-"` } -// String returns the string representation -func (s ResendContactReachabilityEmailInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ResendContactReachabilityEmailInput) GoString() string { - return s.String() -} - -type ResendContactReachabilityEmailOutput struct { - _ struct{} `type:"structure"` - - // The domain name for which you requested a confirmation email. - DomainName *string `locationName:"domainName" type:"string"` - - // The email address for the registrant contact at the time that we sent the - // verification email. - EmailAddress *string `locationName:"emailAddress" type:"string"` - - // True if the email address for the registrant contact has already been verified, - // and false otherwise. If the email address has already been verified, we don't - // send another confirmation email. - IsAlreadyVerified *bool `locationName:"isAlreadyVerified" type:"boolean"` +type metadataRegisterDomainOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ResendContactReachabilityEmailOutput) String() string { +func (s RegisterDomainOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResendContactReachabilityEmailOutput) GoString() string { +func (s RegisterDomainOutput) GoString() string { return s.String() } // The RetrieveDomainAuthCode request includes the following element. type RetrieveDomainAuthCodeInput struct { - _ struct{} `type:"structure"` - // The name of a domain. // // Type: String @@ -2270,6 +2008,12 @@ type RetrieveDomainAuthCodeInput struct { // // Required: Yes DomainName *string `type:"string" required:"true"` + + metadataRetrieveDomainAuthCodeInput `json:"-" xml:"-"` +} + +type metadataRetrieveDomainAuthCodeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2282,27 +2026,18 @@ func (s RetrieveDomainAuthCodeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RetrieveDomainAuthCodeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RetrieveDomainAuthCodeInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The RetrieveDomainAuthCode response includes the following element. type RetrieveDomainAuthCodeOutput struct { - _ struct{} `type:"structure"` - // The authorization code for the domain. // // Type: String AuthCode *string `type:"string" required:"true"` + + metadataRetrieveDomainAuthCodeOutput `json:"-" xml:"-"` +} + +type metadataRetrieveDomainAuthCodeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2317,8 +2052,6 @@ func (s RetrieveDomainAuthCodeOutput) GoString() string { // Each tag includes the following elements. type Tag struct { - _ struct{} `type:"structure"` - // The key (name) of a tag. // // Type: String @@ -2344,6 +2077,12 @@ type Tag struct { // // Required: Yes Value *string `type:"string"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2358,8 +2097,6 @@ func (s Tag) GoString() string { // The TransferDomain request includes the following elements. type TransferDomainInput struct { - _ struct{} `type:"structure"` - // Provides detailed contact information. // // Type: Complex @@ -2414,7 +2151,7 @@ type TransferDomainInput struct { // Valid values: Integer from 1 to 10 // // Required: Yes - DurationInYears *int64 `min:"1" type:"integer" required:"true"` + DurationInYears *int64 `type:"integer" required:"true"` // Reserved for future use. IdnLangCode *string `type:"string"` @@ -2491,6 +2228,12 @@ type TransferDomainInput struct { // // Required: Yes TechContact *ContactDetail `type:"structure" required:"true"` + + metadataTransferDomainInput `json:"-" xml:"-"` +} + +type metadataTransferDomainInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2503,63 +2246,8 @@ func (s TransferDomainInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TransferDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TransferDomainInput"} - if s.AdminContact == nil { - invalidParams.Add(request.NewErrParamRequired("AdminContact")) - } - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.DurationInYears == nil { - invalidParams.Add(request.NewErrParamRequired("DurationInYears")) - } - if s.DurationInYears != nil && *s.DurationInYears < 1 { - invalidParams.Add(request.NewErrParamMinValue("DurationInYears", 1)) - } - if s.RegistrantContact == nil { - invalidParams.Add(request.NewErrParamRequired("RegistrantContact")) - } - if s.TechContact == nil { - invalidParams.Add(request.NewErrParamRequired("TechContact")) - } - if s.AdminContact != nil { - if err := s.AdminContact.Validate(); err != nil { - invalidParams.AddNested("AdminContact", err.(request.ErrInvalidParams)) - } - } - if s.Nameservers != nil { - for i, v := range s.Nameservers { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Nameservers", i), err.(request.ErrInvalidParams)) - } - } - } - if s.RegistrantContact != nil { - if err := s.RegistrantContact.Validate(); err != nil { - invalidParams.AddNested("RegistrantContact", err.(request.ErrInvalidParams)) - } - } - if s.TechContact != nil { - if err := s.TechContact.Validate(); err != nil { - invalidParams.AddNested("TechContact", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The TranserDomain response includes the following element. type TransferDomainOutput struct { - _ struct{} `type:"structure"` - // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // @@ -2569,6 +2257,12 @@ type TransferDomainOutput struct { // // Constraints: Maximum 255 characters. OperationId *string `type:"string" required:"true"` + + metadataTransferDomainOutput `json:"-" xml:"-"` +} + +type metadataTransferDomainOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2583,8 +2277,6 @@ func (s TransferDomainOutput) GoString() string { // The UpdateDomainContact request includes the following elements. type UpdateDomainContactInput struct { - _ struct{} `type:"structure"` - // Provides detailed contact information. // // Type: Complex @@ -2630,6 +2322,12 @@ type UpdateDomainContactInput struct { // // Required: Yes TechContact *ContactDetail `type:"structure"` + + metadataUpdateDomainContactInput `json:"-" xml:"-"` +} + +type metadataUpdateDomainContactInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2642,38 +2340,8 @@ func (s UpdateDomainContactInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDomainContactInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDomainContactInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.AdminContact != nil { - if err := s.AdminContact.Validate(); err != nil { - invalidParams.AddNested("AdminContact", err.(request.ErrInvalidParams)) - } - } - if s.RegistrantContact != nil { - if err := s.RegistrantContact.Validate(); err != nil { - invalidParams.AddNested("RegistrantContact", err.(request.ErrInvalidParams)) - } - } - if s.TechContact != nil { - if err := s.TechContact.Validate(); err != nil { - invalidParams.AddNested("TechContact", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The UpdateDomainContact response includes the following element. type UpdateDomainContactOutput struct { - _ struct{} `type:"structure"` - // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // @@ -2683,6 +2351,12 @@ type UpdateDomainContactOutput struct { // // Constraints: Maximum 255 characters. OperationId *string `type:"string" required:"true"` + + metadataUpdateDomainContactOutput `json:"-" xml:"-"` +} + +type metadataUpdateDomainContactOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2697,8 +2371,6 @@ func (s UpdateDomainContactOutput) GoString() string { // The UpdateDomainContactPrivacy request includes the following elements. type UpdateDomainContactPrivacyInput struct { - _ struct{} `type:"structure"` - // Whether you want to conceal contact information from WHOIS queries. If you // specify true, WHOIS ("who is") queries will return contact information for // our registrar partner, Gandi, instead of the contact information that you @@ -2753,6 +2425,12 @@ type UpdateDomainContactPrivacyInput struct { // // Required: No TechPrivacy *bool `type:"boolean"` + + metadataUpdateDomainContactPrivacyInput `json:"-" xml:"-"` +} + +type metadataUpdateDomainContactPrivacyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2765,23 +2443,8 @@ func (s UpdateDomainContactPrivacyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDomainContactPrivacyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDomainContactPrivacyInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The UpdateDomainContactPrivacy response includes the following element. type UpdateDomainContactPrivacyOutput struct { - _ struct{} `type:"structure"` - // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // @@ -2791,6 +2454,12 @@ type UpdateDomainContactPrivacyOutput struct { // // Constraints: Maximum 255 characters. OperationId *string `type:"string" required:"true"` + + metadataUpdateDomainContactPrivacyOutput `json:"-" xml:"-"` +} + +type metadataUpdateDomainContactPrivacyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2805,8 +2474,6 @@ func (s UpdateDomainContactPrivacyOutput) GoString() string { // The UpdateDomainNameserver request includes the following elements. type UpdateDomainNameserversInput struct { - _ struct{} `type:"structure"` - // The name of a domain. // // Type: String @@ -2831,6 +2498,12 @@ type UpdateDomainNameserversInput struct { // // Required: Yes Nameservers []*Nameserver `type:"list" required:"true"` + + metadataUpdateDomainNameserversInput `json:"-" xml:"-"` +} + +type metadataUpdateDomainNameserversInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2843,36 +2516,8 @@ func (s UpdateDomainNameserversInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateDomainNameserversInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateDomainNameserversInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.Nameservers == nil { - invalidParams.Add(request.NewErrParamRequired("Nameservers")) - } - if s.Nameservers != nil { - for i, v := range s.Nameservers { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Nameservers", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The UpdateDomainNameservers response includes the following element. type UpdateDomainNameserversOutput struct { - _ struct{} `type:"structure"` - // Identifier for tracking the progress of the request. To use this ID to query // the operation status, use GetOperationDetail. // @@ -2882,6 +2527,12 @@ type UpdateDomainNameserversOutput struct { // // Constraints: Maximum 255 characters. OperationId *string `type:"string" required:"true"` + + metadataUpdateDomainNameserversOutput `json:"-" xml:"-"` +} + +type metadataUpdateDomainNameserversOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2896,8 +2547,6 @@ func (s UpdateDomainNameserversOutput) GoString() string { // The UpdateTagsForDomainRequest includes the following elements. type UpdateTagsForDomainInput struct { - _ struct{} `type:"structure"` - // The domain for which you want to add or update tags. // // The name of a domain. @@ -2907,10 +2556,10 @@ type UpdateTagsForDomainInput struct { // Default: None // // Constraints: The domain name can contain only the letters a through z, the - // numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're - // surrounded by letters, numbers, or other hyphens. You can't specify a hyphen - // at the beginning or end of a label. To specify an Internationalized Domain - // Name, you must convert the name to Punycode. + // numbers 0 through 9, and hyphen (-). Hyphens are allowed only when theyaposre + // surrounded by letters, numbers, or other hyphens. You canapost specify a + // hyphen at the beginning or end of a label. To specify an Internationalized + // Domain Name, you must convert the name to Punycode. // // Required: Yes DomainName *string `type:"string" required:"true"` @@ -2926,7 +2575,7 @@ type UpdateTagsForDomainInput struct { // // '> Each tag includes the following elements: // - // Key + // Key // // The key (name) of a tag. // @@ -2940,7 +2589,7 @@ type UpdateTagsForDomainInput struct { // // Required: Yes // - // Value + // Value // // The value of a tag. // @@ -2954,6 +2603,12 @@ type UpdateTagsForDomainInput struct { // // Required: Yes TagsToUpdate []*Tag `type:"list"` + + metadataUpdateTagsForDomainInput `json:"-" xml:"-"` +} + +type metadataUpdateTagsForDomainInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2966,21 +2621,12 @@ func (s UpdateTagsForDomainInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateTagsForDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateTagsForDomainInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UpdateTagsForDomainOutput struct { + metadataUpdateTagsForDomainOutput `json:"-" xml:"-"` } -type UpdateTagsForDomainOutput struct { - _ struct{} `type:"structure"` +type metadataUpdateTagsForDomainOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3508,8 +3154,6 @@ const ( // @enum ExtraParamName ExtraParamNameCaLegalType = "CA_LEGAL_TYPE" // @enum ExtraParamName - ExtraParamNameCaBusinessEntityType = "CA_BUSINESS_ENTITY_TYPE" - // @enum ExtraParamName ExtraParamNameEsIdentification = "ES_IDENTIFICATION" // @enum ExtraParamName ExtraParamNameEsIdentificationType = "ES_IDENTIFICATION_TYPE" @@ -3560,12 +3204,3 @@ const ( // @enum OperationType OperationTypeDomainLock = "DOMAIN_LOCK" ) - -const ( - // @enum ReachabilityStatus - ReachabilityStatusPending = "PENDING" - // @enum ReachabilityStatus - ReachabilityStatusDone = "DONE" - // @enum ReachabilityStatus - ReachabilityStatusExpired = "EXPIRED" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go index 5e8459103..3565ed0ee 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53domains" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleRoute53Domains_CheckDomainAvailability() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.CheckDomainAvailabilityInput{ DomainName: aws.String("DomainName"), // Required @@ -36,7 +35,7 @@ func ExampleRoute53Domains_CheckDomainAvailability() { } func ExampleRoute53Domains_DeleteTagsForDomain() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.DeleteTagsForDomainInput{ DomainName: aws.String("DomainName"), // Required @@ -59,7 +58,7 @@ func ExampleRoute53Domains_DeleteTagsForDomain() { } func ExampleRoute53Domains_DisableDomainAutoRenew() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.DisableDomainAutoRenewInput{ DomainName: aws.String("DomainName"), // Required @@ -78,7 +77,7 @@ func ExampleRoute53Domains_DisableDomainAutoRenew() { } func ExampleRoute53Domains_DisableDomainTransferLock() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.DisableDomainTransferLockInput{ DomainName: aws.String("DomainName"), // Required @@ -97,7 +96,7 @@ func ExampleRoute53Domains_DisableDomainTransferLock() { } func ExampleRoute53Domains_EnableDomainAutoRenew() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.EnableDomainAutoRenewInput{ DomainName: aws.String("DomainName"), // Required @@ -116,7 +115,7 @@ func ExampleRoute53Domains_EnableDomainAutoRenew() { } func ExampleRoute53Domains_EnableDomainTransferLock() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.EnableDomainTransferLockInput{ DomainName: aws.String("DomainName"), // Required @@ -134,27 +133,8 @@ func ExampleRoute53Domains_EnableDomainTransferLock() { fmt.Println(resp) } -func ExampleRoute53Domains_GetContactReachabilityStatus() { - svc := route53domains.New(session.New()) - - params := &route53domains.GetContactReachabilityStatusInput{ - DomainName: aws.String("DomainName"), - } - resp, err := svc.GetContactReachabilityStatus(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRoute53Domains_GetDomainDetail() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.GetDomainDetailInput{ DomainName: aws.String("DomainName"), // Required @@ -173,7 +153,7 @@ func ExampleRoute53Domains_GetDomainDetail() { } func ExampleRoute53Domains_GetOperationDetail() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.GetOperationDetailInput{ OperationId: aws.String("OperationId"), // Required @@ -192,7 +172,7 @@ func ExampleRoute53Domains_GetOperationDetail() { } func ExampleRoute53Domains_ListDomains() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.ListDomainsInput{ Marker: aws.String("PageMarker"), @@ -212,7 +192,7 @@ func ExampleRoute53Domains_ListDomains() { } func ExampleRoute53Domains_ListOperations() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.ListOperationsInput{ Marker: aws.String("PageMarker"), @@ -232,7 +212,7 @@ func ExampleRoute53Domains_ListOperations() { } func ExampleRoute53Domains_ListTagsForDomain() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.ListTagsForDomainInput{ DomainName: aws.String("DomainName"), // Required @@ -251,7 +231,7 @@ func ExampleRoute53Domains_ListTagsForDomain() { } func ExampleRoute53Domains_RegisterDomain() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.RegisterDomainInput{ AdminContact: &route53domains.ContactDetail{ // Required @@ -341,27 +321,8 @@ func ExampleRoute53Domains_RegisterDomain() { fmt.Println(resp) } -func ExampleRoute53Domains_ResendContactReachabilityEmail() { - svc := route53domains.New(session.New()) - - params := &route53domains.ResendContactReachabilityEmailInput{ - DomainName: aws.String("DomainName"), - } - resp, err := svc.ResendContactReachabilityEmail(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleRoute53Domains_RetrieveDomainAuthCode() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.RetrieveDomainAuthCodeInput{ DomainName: aws.String("DomainName"), // Required @@ -380,7 +341,7 @@ func ExampleRoute53Domains_RetrieveDomainAuthCode() { } func ExampleRoute53Domains_TransferDomain() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.TransferDomainInput{ AdminContact: &route53domains.ContactDetail{ // Required @@ -482,7 +443,7 @@ func ExampleRoute53Domains_TransferDomain() { } func ExampleRoute53Domains_UpdateDomainContact() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.UpdateDomainContactInput{ DomainName: aws.String("DomainName"), // Required @@ -567,7 +528,7 @@ func ExampleRoute53Domains_UpdateDomainContact() { } func ExampleRoute53Domains_UpdateDomainContactPrivacy() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.UpdateDomainContactPrivacyInput{ DomainName: aws.String("DomainName"), // Required @@ -589,7 +550,7 @@ func ExampleRoute53Domains_UpdateDomainContactPrivacy() { } func ExampleRoute53Domains_UpdateDomainNameservers() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.UpdateDomainNameserversInput{ DomainName: aws.String("DomainName"), // Required @@ -619,7 +580,7 @@ func ExampleRoute53Domains_UpdateDomainNameservers() { } func ExampleRoute53Domains_UpdateTagsForDomain() { - svc := route53domains.New(session.New()) + svc := route53domains.New(nil) params := &route53domains.UpdateTagsForDomainInput{ DomainName: aws.String("DomainName"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go index 11792aa14..dc78c9ced 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface.go @@ -34,10 +34,6 @@ type Route53DomainsAPI interface { EnableDomainTransferLock(*route53domains.EnableDomainTransferLockInput) (*route53domains.EnableDomainTransferLockOutput, error) - GetContactReachabilityStatusRequest(*route53domains.GetContactReachabilityStatusInput) (*request.Request, *route53domains.GetContactReachabilityStatusOutput) - - GetContactReachabilityStatus(*route53domains.GetContactReachabilityStatusInput) (*route53domains.GetContactReachabilityStatusOutput, error) - GetDomainDetailRequest(*route53domains.GetDomainDetailInput) (*request.Request, *route53domains.GetDomainDetailOutput) GetDomainDetail(*route53domains.GetDomainDetailInput) (*route53domains.GetDomainDetailOutput, error) @@ -66,10 +62,6 @@ type Route53DomainsAPI interface { RegisterDomain(*route53domains.RegisterDomainInput) (*route53domains.RegisterDomainOutput, error) - ResendContactReachabilityEmailRequest(*route53domains.ResendContactReachabilityEmailInput) (*request.Request, *route53domains.ResendContactReachabilityEmailOutput) - - ResendContactReachabilityEmail(*route53domains.ResendContactReachabilityEmailInput) (*route53domains.ResendContactReachabilityEmailOutput, error) - RetrieveDomainAuthCodeRequest(*route53domains.RetrieveDomainAuthCodeInput) (*request.Request, *route53domains.RetrieveDomainAuthCodeOutput) RetrieveDomainAuthCode(*route53domains.RetrieveDomainAuthCodeInput) (*route53domains.RetrieveDomainAuthCodeOutput, error) @@ -94,5 +86,3 @@ type Route53DomainsAPI interface { UpdateTagsForDomain(*route53domains.UpdateTagsForDomainInput) (*route53domains.UpdateTagsForDomainOutput, error) } - -var _ Route53DomainsAPI = (*route53domains.Route53Domains)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface_test.go new file mode 100644 index 000000000..2f75a7f45 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package route53domainsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/route53domains" + "github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*route53domainsiface.Route53DomainsAPI)(nil), route53domains.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go b/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go index 14517baeb..09d7e5301 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53domains/service.go @@ -4,74 +4,51 @@ package route53domains import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Route53Domains is a client for Amazon Route 53 Domains. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type Route53Domains struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "route53domains" - -// New creates a new instance of the Route53Domains client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a Route53Domains client from just a session. -// svc := route53domains.New(mySession) -// -// // Create a Route53Domains client with additional configuration -// svc := route53domains.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *Route53Domains { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Route53Domains { - svc := &Route53Domains{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-05-15", - JSONVersion: "1.1", - TargetPrefix: "Route53Domains_v20140515", - }, - handlers, - ), +// New returns a new Route53Domains client. +func New(config *aws.Config) *Route53Domains { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "route53domains", + APIVersion: "2014-05-15", + JSONVersion: "1.1", + TargetPrefix: "Route53Domains_v20140515", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &Route53Domains{service} } // newRequest creates a new request for a Route53Domains operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/api.go b/vendor/github.com/aws/aws-sdk-go/service/s3/api.go index f1f608694..67ebf8a57 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/api.go @@ -4,14 +4,11 @@ package s3 import ( - "fmt" "io" "time" "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/private/protocol/restxml" ) const opAbortMultipartUpload = "AbortMultipartUpload" @@ -148,11 +145,11 @@ func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (re // Initiates a multipart upload and returns an upload ID. // -// Note: After you initiate multipart upload and upload one or more parts, you -// must either complete or abort multipart upload in order to stop getting charged -// for storage of the uploaded parts. Only after you either complete or abort -// multipart upload, Amazon S3 frees up the parts storage and stops charging -// you for the parts storage. +// Note: After you initiate multipart upload and upload one or more parts, +// you must either complete or abort multipart upload in order to stop getting +// charged for storage of the uploaded parts. Only after you either complete +// or abort multipart upload, Amazon S3 frees up the parts storage and stops +// charging you for the parts storage. func (c *S3) CreateMultipartUpload(input *CreateMultipartUploadInput) (*CreateMultipartUploadOutput, error) { req, out := c.CreateMultipartUploadRequest(input) err := req.Send() @@ -174,8 +171,6 @@ func (c *S3) DeleteBucketRequest(input *DeleteBucketInput) (req *request.Request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteBucketOutput{} req.Data = output return @@ -204,8 +199,6 @@ func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteBucketCorsOutput{} req.Data = output return @@ -233,8 +226,6 @@ func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteBucketLifecycleOutput{} req.Data = output return @@ -262,8 +253,6 @@ func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteBucketPolicyOutput{} req.Data = output return @@ -291,14 +280,11 @@ func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteBucketReplicationOutput{} req.Data = output return } -// Deletes the replication configuration from the bucket. func (c *S3) DeleteBucketReplication(input *DeleteBucketReplicationInput) (*DeleteBucketReplicationOutput, error) { req, out := c.DeleteBucketReplicationRequest(input) err := req.Send() @@ -320,8 +306,6 @@ func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteBucketTaggingOutput{} req.Data = output return @@ -349,8 +333,6 @@ func (c *S3) DeleteBucketWebsiteRequest(input *DeleteBucketWebsiteInput) (req *r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteBucketWebsiteOutput{} req.Data = output return @@ -420,33 +402,6 @@ func (c *S3) DeleteObjects(input *DeleteObjectsInput) (*DeleteObjectsOutput, err return out, err } -const opGetBucketAccelerateConfiguration = "GetBucketAccelerateConfiguration" - -// GetBucketAccelerateConfigurationRequest generates a request for the GetBucketAccelerateConfiguration operation. -func (c *S3) GetBucketAccelerateConfigurationRequest(input *GetBucketAccelerateConfigurationInput) (req *request.Request, output *GetBucketAccelerateConfigurationOutput) { - op := &request.Operation{ - Name: opGetBucketAccelerateConfiguration, - HTTPMethod: "GET", - HTTPPath: "/{Bucket}?accelerate", - } - - if input == nil { - input = &GetBucketAccelerateConfigurationInput{} - } - - req = c.newRequest(op, input, output) - output = &GetBucketAccelerateConfigurationOutput{} - req.Data = output - return -} - -// Returns the accelerate configuration of a bucket. -func (c *S3) GetBucketAccelerateConfiguration(input *GetBucketAccelerateConfigurationInput) (*GetBucketAccelerateConfigurationOutput, error) { - req, out := c.GetBucketAccelerateConfigurationRequest(input) - err := req.Send() - return out, err -} - const opGetBucketAcl = "GetBucketAcl" // GetBucketAclRequest generates a request for the GetBucketAcl operation. @@ -505,9 +460,6 @@ const opGetBucketLifecycle = "GetBucketLifecycle" // GetBucketLifecycleRequest generates a request for the GetBucketLifecycle operation. func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *request.Request, output *GetBucketLifecycleOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, GetBucketLifecycle, has been deprecated") - } op := &request.Operation{ Name: opGetBucketLifecycle, HTTPMethod: "GET", @@ -524,40 +476,13 @@ func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *req return } -// Deprecated, see the GetBucketLifecycleConfiguration operation. +// Returns the lifecycle configuration information set on the bucket. func (c *S3) GetBucketLifecycle(input *GetBucketLifecycleInput) (*GetBucketLifecycleOutput, error) { req, out := c.GetBucketLifecycleRequest(input) err := req.Send() return out, err } -const opGetBucketLifecycleConfiguration = "GetBucketLifecycleConfiguration" - -// GetBucketLifecycleConfigurationRequest generates a request for the GetBucketLifecycleConfiguration operation. -func (c *S3) GetBucketLifecycleConfigurationRequest(input *GetBucketLifecycleConfigurationInput) (req *request.Request, output *GetBucketLifecycleConfigurationOutput) { - op := &request.Operation{ - Name: opGetBucketLifecycleConfiguration, - HTTPMethod: "GET", - HTTPPath: "/{Bucket}?lifecycle", - } - - if input == nil { - input = &GetBucketLifecycleConfigurationInput{} - } - - req = c.newRequest(op, input, output) - output = &GetBucketLifecycleConfigurationOutput{} - req.Data = output - return -} - -// Returns the lifecycle configuration information set on the bucket. -func (c *S3) GetBucketLifecycleConfiguration(input *GetBucketLifecycleConfigurationInput) (*GetBucketLifecycleConfigurationOutput, error) { - req, out := c.GetBucketLifecycleConfigurationRequest(input) - err := req.Send() - return out, err -} - const opGetBucketLocation = "GetBucketLocation" // GetBucketLocationRequest generates a request for the GetBucketLocation operation. @@ -617,9 +542,6 @@ const opGetBucketNotification = "GetBucketNotification" // GetBucketNotificationRequest generates a request for the GetBucketNotification operation. func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurationRequest) (req *request.Request, output *NotificationConfigurationDeprecated) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, GetBucketNotification, has been deprecated") - } op := &request.Operation{ Name: opGetBucketNotification, HTTPMethod: "GET", @@ -717,7 +639,6 @@ func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (req return } -// Deprecated, see the GetBucketReplicationConfiguration operation. func (c *S3) GetBucketReplication(input *GetBucketReplicationInput) (*GetBucketReplicationOutput, error) { req, out := c.GetBucketReplicationRequest(input) err := req.Send() @@ -928,8 +849,6 @@ func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, ou } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &HeadBucketOutput{} req.Data = output return @@ -1034,7 +953,6 @@ func (c *S3) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultip func (c *S3) ListMultipartUploadsPages(input *ListMultipartUploadsInput, fn func(p *ListMultipartUploadsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListMultipartUploadsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListMultipartUploadsOutput), lastPage) }) @@ -1075,7 +993,6 @@ func (c *S3) ListObjectVersions(input *ListObjectVersionsInput) (*ListObjectVers func (c *S3) ListObjectVersionsPages(input *ListObjectVersionsInput, fn func(p *ListObjectVersionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListObjectVersionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListObjectVersionsOutput), lastPage) }) @@ -1118,42 +1035,11 @@ func (c *S3) ListObjects(input *ListObjectsInput) (*ListObjectsOutput, error) { func (c *S3) ListObjectsPages(input *ListObjectsInput, fn func(p *ListObjectsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListObjectsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListObjectsOutput), lastPage) }) } -const opListObjectsV2 = "ListObjectsV2" - -// ListObjectsV2Request generates a request for the ListObjectsV2 operation. -func (c *S3) ListObjectsV2Request(input *ListObjectsV2Input) (req *request.Request, output *ListObjectsV2Output) { - op := &request.Operation{ - Name: opListObjectsV2, - HTTPMethod: "GET", - HTTPPath: "/{Bucket}?list-type=2", - } - - if input == nil { - input = &ListObjectsV2Input{} - } - - req = c.newRequest(op, input, output) - output = &ListObjectsV2Output{} - req.Data = output - return -} - -// Returns some or all (up to 1000) of the objects in a bucket. You can use -// the request parameters as selection criteria to return a subset of the objects -// in a bucket. Note: ListObjectsV2 is the revised List Objects API and we recommend -// you use this revised API for new application development. -func (c *S3) ListObjectsV2(input *ListObjectsV2Input) (*ListObjectsV2Output, error) { - req, out := c.ListObjectsV2Request(input) - err := req.Send() - return out, err -} - const opListParts = "ListParts" // ListPartsRequest generates a request for the ListParts operation. @@ -1189,41 +1075,11 @@ func (c *S3) ListParts(input *ListPartsInput) (*ListPartsOutput, error) { func (c *S3) ListPartsPages(input *ListPartsInput, fn func(p *ListPartsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListPartsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListPartsOutput), lastPage) }) } -const opPutBucketAccelerateConfiguration = "PutBucketAccelerateConfiguration" - -// PutBucketAccelerateConfigurationRequest generates a request for the PutBucketAccelerateConfiguration operation. -func (c *S3) PutBucketAccelerateConfigurationRequest(input *PutBucketAccelerateConfigurationInput) (req *request.Request, output *PutBucketAccelerateConfigurationOutput) { - op := &request.Operation{ - Name: opPutBucketAccelerateConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/{Bucket}?accelerate", - } - - if input == nil { - input = &PutBucketAccelerateConfigurationInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketAccelerateConfigurationOutput{} - req.Data = output - return -} - -// Sets the accelerate configuration of an existing bucket. -func (c *S3) PutBucketAccelerateConfiguration(input *PutBucketAccelerateConfigurationInput) (*PutBucketAccelerateConfigurationOutput, error) { - req, out := c.PutBucketAccelerateConfigurationRequest(input) - err := req.Send() - return out, err -} - const opPutBucketAcl = "PutBucketAcl" // PutBucketAclRequest generates a request for the PutBucketAcl operation. @@ -1239,8 +1095,6 @@ func (c *S3) PutBucketAclRequest(input *PutBucketAclInput) (req *request.Request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketAclOutput{} req.Data = output return @@ -1268,8 +1122,6 @@ func (c *S3) PutBucketCorsRequest(input *PutBucketCorsInput) (req *request.Reque } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketCorsOutput{} req.Data = output return @@ -1286,9 +1138,6 @@ const opPutBucketLifecycle = "PutBucketLifecycle" // PutBucketLifecycleRequest generates a request for the PutBucketLifecycle operation. func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *request.Request, output *PutBucketLifecycleOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, PutBucketLifecycle, has been deprecated") - } op := &request.Operation{ Name: opPutBucketLifecycle, HTTPMethod: "PUT", @@ -1300,46 +1149,15 @@ func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketLifecycleOutput{} req.Data = output return } -// Deprecated, see the PutBucketLifecycleConfiguration operation. -func (c *S3) PutBucketLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error) { - req, out := c.PutBucketLifecycleRequest(input) - err := req.Send() - return out, err -} - -const opPutBucketLifecycleConfiguration = "PutBucketLifecycleConfiguration" - -// PutBucketLifecycleConfigurationRequest generates a request for the PutBucketLifecycleConfiguration operation. -func (c *S3) PutBucketLifecycleConfigurationRequest(input *PutBucketLifecycleConfigurationInput) (req *request.Request, output *PutBucketLifecycleConfigurationOutput) { - op := &request.Operation{ - Name: opPutBucketLifecycleConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/{Bucket}?lifecycle", - } - - if input == nil { - input = &PutBucketLifecycleConfigurationInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutBucketLifecycleConfigurationOutput{} - req.Data = output - return -} - // Sets lifecycle configuration for your bucket. If a lifecycle configuration // exists, it replaces it. -func (c *S3) PutBucketLifecycleConfiguration(input *PutBucketLifecycleConfigurationInput) (*PutBucketLifecycleConfigurationOutput, error) { - req, out := c.PutBucketLifecycleConfigurationRequest(input) +func (c *S3) PutBucketLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error) { + req, out := c.PutBucketLifecycleRequest(input) err := req.Send() return out, err } @@ -1359,8 +1177,6 @@ func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketLoggingOutput{} req.Data = output return @@ -1379,9 +1195,6 @@ const opPutBucketNotification = "PutBucketNotification" // PutBucketNotificationRequest generates a request for the PutBucketNotification operation. func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (req *request.Request, output *PutBucketNotificationOutput) { - if c.Client.Config.Logger != nil { - c.Client.Config.Logger.Log("This operation, PutBucketNotification, has been deprecated") - } op := &request.Operation{ Name: opPutBucketNotification, HTTPMethod: "PUT", @@ -1393,8 +1206,6 @@ func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketNotificationOutput{} req.Data = output return @@ -1422,8 +1233,6 @@ func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificat } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketNotificationConfigurationOutput{} req.Data = output return @@ -1451,8 +1260,6 @@ func (c *S3) PutBucketPolicyRequest(input *PutBucketPolicyInput) (req *request.R } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketPolicyOutput{} req.Data = output return @@ -1481,8 +1288,6 @@ func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketReplicationOutput{} req.Data = output return @@ -1511,8 +1316,6 @@ func (c *S3) PutBucketRequestPaymentRequest(input *PutBucketRequestPaymentInput) } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketRequestPaymentOutput{} req.Data = output return @@ -1544,8 +1347,6 @@ func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketTaggingOutput{} req.Data = output return @@ -1573,8 +1374,6 @@ func (c *S3) PutBucketVersioningRequest(input *PutBucketVersioningInput) (req *r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketVersioningOutput{} req.Data = output return @@ -1603,8 +1402,6 @@ func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *request } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PutBucketWebsiteOutput{} req.Data = output return @@ -1721,11 +1518,11 @@ func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, ou // Uploads a part in a multipart upload. // -// Note: After you initiate multipart upload and upload one or more parts, you -// must either complete or abort multipart upload in order to stop getting charged -// for storage of the uploaded parts. Only after you either complete or abort -// multipart upload, Amazon S3 frees up the parts storage and stops charging -// you for the parts storage. +// Note: After you initiate multipart upload and upload one or more parts, +// you must either complete or abort multipart upload in order to stop getting +// charged for storage of the uploaded parts. Only after you either complete +// or abort multipart upload, Amazon S3 frees up the parts storage and stops +// charging you for the parts storage. func (c *S3) UploadPart(input *UploadPartInput) (*UploadPartOutput, error) { req, out := c.UploadPartRequest(input) err := req.Send() @@ -1759,32 +1556,10 @@ func (c *S3) UploadPartCopy(input *UploadPartCopyInput) (*UploadPartCopyOutput, return out, err } -// Specifies the days since the initiation of an Incomplete Multipart Upload -// that Lifecycle will wait before permanently removing all parts of the upload. -type AbortIncompleteMultipartUpload struct { - _ struct{} `type:"structure"` - - // Indicates the number of days that must pass since initiation for Lifecycle - // to abort an Incomplete Multipart Upload. - DaysAfterInitiation *int64 `type:"integer"` -} - -// String returns the string representation -func (s AbortIncompleteMultipartUpload) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AbortIncompleteMultipartUpload) GoString() string { - return s.String() -} - type AbortMultipartUploadInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. @@ -1793,6 +1568,12 @@ type AbortMultipartUploadInput struct { RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"` + + metadataAbortMultipartUploadInput `json:"-" xml:"-"` +} + +type metadataAbortMultipartUploadInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1805,70 +1586,39 @@ func (s AbortMultipartUploadInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AbortMultipartUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AbortMultipartUploadInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - 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.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type AbortMultipartUploadOutput struct { - _ struct{} `type:"structure"` - // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` -} - -// String returns the string representation -func (s AbortMultipartUploadOutput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s AbortMultipartUploadOutput) GoString() string { - return s.String() + metadataAbortMultipartUploadOutput `json:"-" xml:"-"` } -type AccelerateConfiguration struct { - _ struct{} `type:"structure"` - - // The accelerate configuration of the bucket. - Status *string `type:"string" enum:"BucketAccelerateStatus"` +type metadataAbortMultipartUploadOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s AccelerateConfiguration) String() string { +func (s AbortMultipartUploadOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AccelerateConfiguration) GoString() string { +func (s AbortMultipartUploadOutput) GoString() string { return s.String() } type AccessControlPolicy struct { - _ struct{} `type:"structure"` - // A list of grants. Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"` Owner *Owner `type:"structure"` + + metadataAccessControlPolicy `json:"-" xml:"-"` +} + +type metadataAccessControlPolicy struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1881,89 +1631,38 @@ func (s AccessControlPolicy) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AccessControlPolicy) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AccessControlPolicy"} - if s.Grants != nil { - for i, v := range s.Grants { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Grants", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type Bucket struct { - _ struct{} `type:"structure"` - // Date the bucket was created. CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` // The name of the bucket. Name *string `type:"string"` -} - -// String returns the string representation -func (s Bucket) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s Bucket) GoString() string { - return s.String() + metadataBucket `json:"-" xml:"-"` } -type BucketLifecycleConfiguration struct { - _ struct{} `type:"structure"` - - Rules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true" required:"true"` +type metadataBucket struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s BucketLifecycleConfiguration) String() string { +func (s Bucket) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BucketLifecycleConfiguration) GoString() string { +func (s Bucket) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BucketLifecycleConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BucketLifecycleConfiguration"} - if s.Rules == nil { - invalidParams.Add(request.NewErrParamRequired("Rules")) - } - if s.Rules != nil { - for i, v := range s.Rules { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) - } - } - } +type BucketLoggingStatus struct { + LoggingEnabled *LoggingEnabled `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataBucketLoggingStatus `json:"-" xml:"-"` } -type BucketLoggingStatus struct { - _ struct{} `type:"structure"` - - LoggingEnabled *LoggingEnabled `type:"structure"` +type metadataBucketLoggingStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1976,25 +1675,14 @@ func (s BucketLoggingStatus) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BucketLoggingStatus) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BucketLoggingStatus"} - if s.LoggingEnabled != nil { - if err := s.LoggingEnabled.Validate(); err != nil { - invalidParams.AddNested("LoggingEnabled", err.(request.ErrInvalidParams)) - } - } +type CORSConfiguration struct { + CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCORSConfiguration `json:"-" xml:"-"` } -type CORSConfiguration struct { - _ struct{} `type:"structure"` - - CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true" required:"true"` +type metadataCORSConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2007,41 +1695,16 @@ func (s CORSConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CORSConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CORSConfiguration"} - if s.CORSRules == nil { - invalidParams.Add(request.NewErrParamRequired("CORSRules")) - } - if s.CORSRules != nil { - for i, v := range s.CORSRules { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CORSRules", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CORSRule struct { - _ struct{} `type:"structure"` - // Specifies which headers are allowed in a pre-flight OPTIONS request. AllowedHeaders []*string `locationName:"AllowedHeader" type:"list" flattened:"true"` // Identifies HTTP methods that the domain/origin specified in the rule is allowed // to execute. - AllowedMethods []*string `locationName:"AllowedMethod" type:"list" flattened:"true" required:"true"` + AllowedMethods []*string `locationName:"AllowedMethod" type:"list" flattened:"true"` // One or more origins you want customers to be able to access the bucket from. - AllowedOrigins []*string `locationName:"AllowedOrigin" type:"list" flattened:"true" required:"true"` + AllowedOrigins []*string `locationName:"AllowedOrigin" type:"list" flattened:"true"` // One or more headers in the response that you want customers to be able to // access from their applications (for example, from a JavaScript XMLHttpRequest @@ -2051,6 +1714,12 @@ type CORSRule struct { // The time in seconds that your browser is to cache the preflight response // for the specified resource. MaxAgeSeconds *int64 `type:"integer"` + + metadataCORSRule `json:"-" xml:"-"` +} + +type metadataCORSRule struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2063,29 +1732,11 @@ func (s CORSRule) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CORSRule) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CORSRule"} - if s.AllowedMethods == nil { - invalidParams.Add(request.NewErrParamRequired("AllowedMethods")) - } - if s.AllowedOrigins == nil { - invalidParams.Add(request.NewErrParamRequired("AllowedOrigins")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CloudFunctionConfiguration struct { - _ struct{} `type:"structure"` - CloudFunction *string `type:"string"` // Bucket event for which to send notifications. - Event *string `deprecated:"true" type:"string" enum:"Event"` + Event *string `type:"string" enum:"Event"` Events []*string `locationName:"Event" type:"list" flattened:"true"` @@ -2094,6 +1745,12 @@ type CloudFunctionConfiguration struct { Id *string `type:"string"` InvocationRole *string `type:"string"` + + metadataCloudFunctionConfiguration `json:"-" xml:"-"` +} + +type metadataCloudFunctionConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2107,9 +1764,13 @@ func (s CloudFunctionConfiguration) GoString() string { } type CommonPrefix struct { - _ struct{} `type:"structure"` - Prefix *string `type:"string"` + + metadataCommonPrefix `json:"-" xml:"-"` +} + +type metadataCommonPrefix struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2123,11 +1784,9 @@ func (s CommonPrefix) GoString() string { } type CompleteMultipartUploadInput struct { - _ struct{} `type:"structure" payload:"MultipartUpload"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` MultipartUpload *CompletedMultipartUpload `locationName:"CompleteMultipartUpload" type:"structure"` @@ -2138,6 +1797,12 @@ type CompleteMultipartUploadInput struct { RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"` + + metadataCompleteMultipartUploadInput `json:"-" xml:"-"` +} + +type metadataCompleteMultipartUploadInput struct { + SDKShapeTraits bool `type:"structure" payload:"MultipartUpload"` } // String returns the string representation @@ -2150,31 +1815,7 @@ func (s CompleteMultipartUploadInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CompleteMultipartUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CompleteMultipartUploadInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - 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.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CompleteMultipartUploadOutput struct { - _ struct{} `type:"structure"` - Bucket *string `type:"string"` // Entity tag of the object. @@ -2184,7 +1825,7 @@ type CompleteMultipartUploadOutput struct { // date (expiry-date) and rule ID (rule-id). The value of rule-id is URL encoded. Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"` - Key *string `min:"1" type:"string"` + Key *string `type:"string"` Location *string `type:"string"` @@ -2202,6 +1843,12 @@ type CompleteMultipartUploadOutput struct { // Version of the object. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` + + metadataCompleteMultipartUploadOutput `json:"-" xml:"-"` +} + +type metadataCompleteMultipartUploadOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2215,9 +1862,13 @@ func (s CompleteMultipartUploadOutput) GoString() string { } type CompletedMultipartUpload struct { - _ struct{} `type:"structure"` - Parts []*CompletedPart `locationName:"Part" type:"list" flattened:"true"` + + metadataCompletedMultipartUpload `json:"-" xml:"-"` +} + +type metadataCompletedMultipartUpload struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2231,14 +1882,18 @@ func (s CompletedMultipartUpload) GoString() string { } type CompletedPart struct { - _ struct{} `type:"structure"` - // Entity tag returned when the part was uploaded. ETag *string `type:"string"` // Part number that identifies the part. This is a positive integer between // 1 and 10,000. PartNumber *int64 `type:"integer"` + + metadataCompletedPart `json:"-" xml:"-"` +} + +type metadataCompletedPart struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2252,8 +1907,6 @@ func (s CompletedPart) GoString() string { } type Condition struct { - _ struct{} `type:"structure"` - // The HTTP error code when the redirect is applied. In the event of an error, // if the error code equals this value, then the specified redirect is applied. // Required when parent element Condition is specified and sibling KeyPrefixEquals @@ -2269,6 +1922,12 @@ type Condition struct { // is not specified. If both conditions are specified, both must be true for // the redirect to be applied. KeyPrefixEquals *string `type:"string"` + + metadataCondition `json:"-" xml:"-"` +} + +type metadataCondition struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2282,8 +1941,6 @@ func (s Condition) GoString() string { } type CopyObjectInput struct { - _ struct{} `type:"structure"` - // The canned ACL to apply to the object. ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"` @@ -2351,7 +2008,7 @@ type CopyObjectInput struct { // Allows grantee to write the ACL for the applicable object. GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // A map of metadata to store with the object in S3. Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` @@ -2398,6 +2055,12 @@ type CopyObjectInput struct { // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` + + metadataCopyObjectInput `json:"-" xml:"-"` +} + +type metadataCopyObjectInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2410,31 +2073,7 @@ func (s CopyObjectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CopyObjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CopyObjectInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.CopySource == nil { - invalidParams.Add(request.NewErrParamRequired("CopySource")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CopyObjectOutput struct { - _ struct{} `type:"structure" payload:"CopyObjectResult"` - CopyObjectResult *CopyObjectResult `type:"structure"` CopySourceVersionId *string `location:"header" locationName:"x-amz-copy-source-version-id" type:"string"` @@ -2464,8 +2103,11 @@ type CopyObjectOutput struct { // (e.g., AES256, aws:kms). ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` - // Version ID of the newly created copy. - VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` + metadataCopyObjectOutput `json:"-" xml:"-"` +} + +type metadataCopyObjectOutput struct { + SDKShapeTraits bool `type:"structure" payload:"CopyObjectResult"` } // String returns the string representation @@ -2479,11 +2121,15 @@ func (s CopyObjectOutput) GoString() string { } type CopyObjectResult struct { - _ struct{} `type:"structure"` - ETag *string `type:"string"` LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataCopyObjectResult `json:"-" xml:"-"` +} + +type metadataCopyObjectResult struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2497,13 +2143,17 @@ func (s CopyObjectResult) GoString() string { } type CopyPartResult struct { - _ struct{} `type:"structure"` - // Entity tag of the object. ETag *string `type:"string"` // Date and time at which the object was uploaded. LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataCopyPartResult `json:"-" xml:"-"` +} + +type metadataCopyPartResult struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2517,11 +2167,15 @@ func (s CopyPartResult) GoString() string { } type CreateBucketConfiguration struct { - _ struct{} `type:"structure"` - // Specifies the region where the bucket will be created. If you don't specify // a region, the bucket will be created in US Standard. LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"` + + metadataCreateBucketConfiguration `json:"-" xml:"-"` +} + +type metadataCreateBucketConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2535,8 +2189,6 @@ func (s CreateBucketConfiguration) GoString() string { } type CreateBucketInput struct { - _ struct{} `type:"structure" payload:"CreateBucketConfiguration"` - // The canned ACL to apply to the bucket. ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"` @@ -2559,6 +2211,12 @@ type CreateBucketInput struct { // Allows grantee to write the ACL for the applicable bucket. GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` + + metadataCreateBucketInput `json:"-" xml:"-"` +} + +type metadataCreateBucketInput struct { + SDKShapeTraits bool `type:"structure" payload:"CreateBucketConfiguration"` } // String returns the string representation @@ -2571,23 +2229,14 @@ func (s CreateBucketInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateBucketInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateBucketInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } +type CreateBucketOutput struct { + Location *string `location:"header" locationName:"Location" type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateBucketOutput `json:"-" xml:"-"` } -type CreateBucketOutput struct { - _ struct{} `type:"structure"` - - Location *string `location:"header" locationName:"Location" type:"string"` +type metadataCreateBucketOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2601,8 +2250,6 @@ func (s CreateBucketOutput) GoString() string { } type CreateMultipartUploadInput struct { - _ struct{} `type:"structure"` - // The canned ACL to apply to the object. ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"` @@ -2640,7 +2287,7 @@ type CreateMultipartUploadInput struct { // Allows grantee to write the ACL for the applicable object. GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // A map of metadata to store with the object in S3. Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` @@ -2683,6 +2330,12 @@ type CreateMultipartUploadInput struct { // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` + + metadataCreateMultipartUploadInput `json:"-" xml:"-"` +} + +type metadataCreateMultipartUploadInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2695,40 +2348,12 @@ func (s CreateMultipartUploadInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMultipartUploadInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMultipartUploadInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateMultipartUploadOutput struct { - _ struct{} `type:"structure"` - - // Date when multipart upload will become eligible for abort operation by lifecycle. - AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp" timestampFormat:"rfc822"` - - // Id of the lifecycle rule that makes a multipart upload eligible for abort - // operation. - AbortRuleId *string `location:"header" locationName:"x-amz-abort-rule-id" type:"string"` - // Name of the bucket to which the multipart upload was initiated. Bucket *string `locationName:"Bucket" type:"string"` // Object key for which the multipart upload was initiated. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // If present, indicates that the requester was successfully charged for the // request. @@ -2754,6 +2379,12 @@ type CreateMultipartUploadOutput struct { // ID for the initiated multipart upload. UploadId *string `type:"string"` + + metadataCreateMultipartUploadOutput `json:"-" xml:"-"` +} + +type metadataCreateMultipartUploadOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2767,13 +2398,17 @@ func (s CreateMultipartUploadOutput) GoString() string { } type Delete struct { - _ struct{} `type:"structure"` - Objects []*ObjectIdentifier `locationName:"Object" type:"list" flattened:"true" required:"true"` // Element to enable quiet mode for the request. When you add this element, // you must set its value to true. Quiet *bool `type:"boolean"` + + metadataDelete `json:"-" xml:"-"` +} + +type metadataDelete struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2786,33 +2421,14 @@ func (s Delete) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Delete) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Delete"} - if s.Objects == nil { - invalidParams.Add(request.NewErrParamRequired("Objects")) - } - if s.Objects != nil { - for i, v := range s.Objects { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Objects", i), err.(request.ErrInvalidParams)) - } - } - } +type DeleteBucketCorsInput struct { + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeleteBucketCorsInput `json:"-" xml:"-"` } -type DeleteBucketCorsInput struct { - _ struct{} `type:"structure"` - - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +type metadataDeleteBucketCorsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2825,21 +2441,12 @@ func (s DeleteBucketCorsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBucketCorsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBucketCorsInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteBucketCorsOutput struct { + metadataDeleteBucketCorsOutput `json:"-" xml:"-"` } -type DeleteBucketCorsOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteBucketCorsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2853,9 +2460,13 @@ func (s DeleteBucketCorsOutput) GoString() string { } type DeleteBucketInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataDeleteBucketInput `json:"-" xml:"-"` +} + +type metadataDeleteBucketInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2868,23 +2479,14 @@ func (s DeleteBucketInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBucketInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBucketInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } +type DeleteBucketLifecycleInput struct { + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeleteBucketLifecycleInput `json:"-" xml:"-"` } -type DeleteBucketLifecycleInput struct { - _ struct{} `type:"structure"` - - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +type metadataDeleteBucketLifecycleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2897,21 +2499,12 @@ func (s DeleteBucketLifecycleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBucketLifecycleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBucketLifecycleInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteBucketLifecycleOutput struct { + metadataDeleteBucketLifecycleOutput `json:"-" xml:"-"` } -type DeleteBucketLifecycleOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteBucketLifecycleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2925,7 +2518,11 @@ func (s DeleteBucketLifecycleOutput) GoString() string { } type DeleteBucketOutput struct { - _ struct{} `type:"structure"` + metadataDeleteBucketOutput `json:"-" xml:"-"` +} + +type metadataDeleteBucketOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2939,9 +2536,13 @@ func (s DeleteBucketOutput) GoString() string { } type DeleteBucketPolicyInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataDeleteBucketPolicyInput `json:"-" xml:"-"` +} + +type metadataDeleteBucketPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2954,21 +2555,12 @@ func (s DeleteBucketPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBucketPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBucketPolicyInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteBucketPolicyOutput struct { + metadataDeleteBucketPolicyOutput `json:"-" xml:"-"` } -type DeleteBucketPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteBucketPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2982,9 +2574,13 @@ func (s DeleteBucketPolicyOutput) GoString() string { } type DeleteBucketReplicationInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataDeleteBucketReplicationInput `json:"-" xml:"-"` +} + +type metadataDeleteBucketReplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2997,21 +2593,12 @@ func (s DeleteBucketReplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBucketReplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBucketReplicationInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteBucketReplicationOutput struct { + metadataDeleteBucketReplicationOutput `json:"-" xml:"-"` } -type DeleteBucketReplicationOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteBucketReplicationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3025,9 +2612,13 @@ func (s DeleteBucketReplicationOutput) GoString() string { } type DeleteBucketTaggingInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataDeleteBucketTaggingInput `json:"-" xml:"-"` +} + +type metadataDeleteBucketTaggingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3040,21 +2631,12 @@ func (s DeleteBucketTaggingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBucketTaggingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBucketTaggingInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteBucketTaggingOutput struct { + metadataDeleteBucketTaggingOutput `json:"-" xml:"-"` } -type DeleteBucketTaggingOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteBucketTaggingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3068,9 +2650,13 @@ func (s DeleteBucketTaggingOutput) GoString() string { } type DeleteBucketWebsiteInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataDeleteBucketWebsiteInput `json:"-" xml:"-"` +} + +type metadataDeleteBucketWebsiteInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3083,21 +2669,12 @@ func (s DeleteBucketWebsiteInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBucketWebsiteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBucketWebsiteInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteBucketWebsiteOutput struct { + metadataDeleteBucketWebsiteOutput `json:"-" xml:"-"` } -type DeleteBucketWebsiteOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteBucketWebsiteOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3111,14 +2688,12 @@ func (s DeleteBucketWebsiteOutput) GoString() string { } type DeleteMarkerEntry struct { - _ struct{} `type:"structure"` - // Specifies whether the object is (true) or is not (false) the latest version // of an object. IsLatest *bool `type:"boolean"` // The object key. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // Date and time the object was last modified. LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -3127,6 +2702,12 @@ type DeleteMarkerEntry struct { // Version ID of an object. VersionId *string `type:"string"` + + metadataDeleteMarkerEntry `json:"-" xml:"-"` +} + +type metadataDeleteMarkerEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3140,11 +2721,9 @@ func (s DeleteMarkerEntry) GoString() string { } type DeleteObjectInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // The concatenation of the authentication device's serial number, a space, // and the value that is displayed on your authentication device. @@ -3158,6 +2737,12 @@ type DeleteObjectInput struct { // VersionId used to reference a specific version of the object. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` + + metadataDeleteObjectInput `json:"-" xml:"-"` +} + +type metadataDeleteObjectInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3170,28 +2755,7 @@ func (s DeleteObjectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteObjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteObjectInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteObjectOutput struct { - _ struct{} `type:"structure"` - // Specifies whether the versioned object that was permanently deleted was (true) // or was not (false) a delete marker. DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"` @@ -3203,6 +2767,12 @@ type DeleteObjectOutput struct { // Returns the version ID of the delete marker created as a result of the DELETE // operation. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` + + metadataDeleteObjectOutput `json:"-" xml:"-"` +} + +type metadataDeleteObjectOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3216,8 +2786,6 @@ func (s DeleteObjectOutput) GoString() string { } type DeleteObjectsInput struct { - _ struct{} `type:"structure" payload:"Delete"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` Delete *Delete `locationName:"Delete" type:"structure" required:"true"` @@ -3231,6 +2799,12 @@ type DeleteObjectsInput struct { // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` + + metadataDeleteObjectsInput `json:"-" xml:"-"` +} + +type metadataDeleteObjectsInput struct { + SDKShapeTraits bool `type:"structure" payload:"Delete"` } // String returns the string representation @@ -3243,30 +2817,7 @@ func (s DeleteObjectsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteObjectsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteObjectsInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Delete == nil { - invalidParams.Add(request.NewErrParamRequired("Delete")) - } - if s.Delete != nil { - if err := s.Delete.Validate(); err != nil { - invalidParams.AddNested("Delete", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DeleteObjectsOutput struct { - _ struct{} `type:"structure"` - Deleted []*DeletedObject `type:"list" flattened:"true"` Errors []*Error `locationName:"Error" type:"list" flattened:"true"` @@ -3274,6 +2825,12 @@ type DeleteObjectsOutput struct { // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` + + metadataDeleteObjectsOutput `json:"-" xml:"-"` +} + +type metadataDeleteObjectsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3287,15 +2844,19 @@ func (s DeleteObjectsOutput) GoString() string { } type DeletedObject struct { - _ struct{} `type:"structure"` - DeleteMarker *bool `type:"boolean"` DeleteMarkerVersionId *string `type:"string"` - Key *string `min:"1" type:"string"` + Key *string `type:"string"` VersionId *string `type:"string"` + + metadataDeletedObject `json:"-" xml:"-"` +} + +type metadataDeletedObject struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3309,14 +2870,15 @@ func (s DeletedObject) GoString() string { } type Destination struct { - _ struct{} `type:"structure"` - // Amazon resource name (ARN) of the bucket where you want Amazon S3 to store // replicas of the object identified by the rule. Bucket *string `type:"string" required:"true"` - // The class of storage used to store the object. - StorageClass *string `type:"string" enum:"StorageClass"` + metadataDestination `json:"-" xml:"-"` +} + +type metadataDestination struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3329,29 +2891,20 @@ func (s Destination) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Destination) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Destination"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type Error struct { - _ struct{} `type:"structure"` - Code *string `type:"string"` - Key *string `min:"1" type:"string"` + Key *string `type:"string"` Message *string `type:"string"` VersionId *string `type:"string"` + + metadataError `json:"-" xml:"-"` +} + +type metadataError struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3365,10 +2918,14 @@ func (s Error) GoString() string { } type ErrorDocument struct { - _ struct{} `type:"structure"` - // The object key name to use when a 4XX class error occurs. - Key *string `min:"1" type:"string" required:"true"` + Key *string `type:"string" required:"true"` + + metadataErrorDocument `json:"-" xml:"-"` +} + +type metadataErrorDocument struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3381,26 +2938,8 @@ func (s ErrorDocument) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ErrorDocument) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ErrorDocument"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for key value pair that defines the criteria for the filter rule. type FilterRule struct { - _ struct{} `type:"structure"` - // Object key name prefix or suffix identifying one or more objects to which // the filtering rule applies. Maximum prefix length can be up to 1,024 characters. // Overlapping prefixes and suffixes are not supported. For more information, @@ -3409,69 +2948,32 @@ type FilterRule struct { Name *string `type:"string" enum:"FilterRuleName"` Value *string `type:"string"` -} -// String returns the string representation -func (s FilterRule) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FilterRule) GoString() string { - return s.String() + metadataFilterRule `json:"-" xml:"-"` } -type GetBucketAccelerateConfigurationInput struct { - _ struct{} `type:"structure"` - - // Name of the bucket for which the accelerate configuration is retrieved. - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +type metadataFilterRule struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetBucketAccelerateConfigurationInput) String() string { +func (s FilterRule) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBucketAccelerateConfigurationInput) GoString() string { +func (s FilterRule) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketAccelerateConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketAccelerateConfigurationInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetBucketAccelerateConfigurationOutput struct { - _ struct{} `type:"structure"` - - // The accelerate configuration of the bucket. - Status *string `type:"string" enum:"BucketAccelerateStatus"` -} - -// String returns the string representation -func (s GetBucketAccelerateConfigurationOutput) String() string { - return awsutil.Prettify(s) -} +type GetBucketAclInput struct { + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` -// GoString returns the string representation -func (s GetBucketAccelerateConfigurationOutput) GoString() string { - return s.String() + metadataGetBucketAclInput `json:"-" xml:"-"` } -type GetBucketAclInput struct { - _ struct{} `type:"structure"` - - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +type metadataGetBucketAclInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3484,26 +2986,17 @@ func (s GetBucketAclInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketAclInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketAclInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetBucketAclOutput struct { - _ struct{} `type:"structure"` - // A list of grants. Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"` Owner *Owner `type:"structure"` + + metadataGetBucketAclOutput `json:"-" xml:"-"` +} + +type metadataGetBucketAclOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3517,9 +3010,13 @@ func (s GetBucketAclOutput) GoString() string { } type GetBucketCorsInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataGetBucketCorsInput `json:"-" xml:"-"` +} + +type metadataGetBucketCorsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3532,23 +3029,14 @@ func (s GetBucketCorsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketCorsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketCorsInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } +type GetBucketCorsOutput struct { + CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetBucketCorsOutput `json:"-" xml:"-"` } -type GetBucketCorsOutput struct { - _ struct{} `type:"structure"` - - CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true"` +type metadataGetBucketCorsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3561,55 +3049,14 @@ func (s GetBucketCorsOutput) GoString() string { return s.String() } -type GetBucketLifecycleConfigurationInput struct { - _ struct{} `type:"structure"` - +type GetBucketLifecycleInput struct { Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetBucketLifecycleConfigurationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetBucketLifecycleConfigurationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketLifecycleConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketLifecycleConfigurationInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetBucketLifecycleConfigurationOutput struct { - _ struct{} `type:"structure"` - - Rules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true"` -} - -// String returns the string representation -func (s GetBucketLifecycleConfigurationOutput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s GetBucketLifecycleConfigurationOutput) GoString() string { - return s.String() + metadataGetBucketLifecycleInput `json:"-" xml:"-"` } -type GetBucketLifecycleInput struct { - _ struct{} `type:"structure"` - - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +type metadataGetBucketLifecycleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3622,23 +3069,14 @@ func (s GetBucketLifecycleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketLifecycleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketLifecycleInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } +type GetBucketLifecycleOutput struct { + Rules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetBucketLifecycleOutput `json:"-" xml:"-"` } -type GetBucketLifecycleOutput struct { - _ struct{} `type:"structure"` - - Rules []*Rule `locationName:"Rule" type:"list" flattened:"true"` +type metadataGetBucketLifecycleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3652,9 +3090,13 @@ func (s GetBucketLifecycleOutput) GoString() string { } type GetBucketLocationInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataGetBucketLocationInput `json:"-" xml:"-"` +} + +type metadataGetBucketLocationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3667,23 +3109,14 @@ func (s GetBucketLocationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketLocationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketLocationInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } +type GetBucketLocationOutput struct { + LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetBucketLocationOutput `json:"-" xml:"-"` } -type GetBucketLocationOutput struct { - _ struct{} `type:"structure"` - - LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"` +type metadataGetBucketLocationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3697,9 +3130,13 @@ func (s GetBucketLocationOutput) GoString() string { } type GetBucketLoggingInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataGetBucketLoggingInput `json:"-" xml:"-"` +} + +type metadataGetBucketLoggingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3712,23 +3149,14 @@ func (s GetBucketLoggingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketLoggingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketLoggingInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } +type GetBucketLoggingOutput struct { + LoggingEnabled *LoggingEnabled `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetBucketLoggingOutput `json:"-" xml:"-"` } -type GetBucketLoggingOutput struct { - _ struct{} `type:"structure"` - - LoggingEnabled *LoggingEnabled `type:"structure"` +type metadataGetBucketLoggingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3742,10 +3170,14 @@ func (s GetBucketLoggingOutput) GoString() string { } type GetBucketNotificationConfigurationRequest struct { - _ struct{} `type:"structure"` - - // Name of the bucket to get the notification configuration for. + // Name of the buket to get the notification configuration for. Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataGetBucketNotificationConfigurationRequest `json:"-" xml:"-"` +} + +type metadataGetBucketNotificationConfigurationRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3758,23 +3190,14 @@ func (s GetBucketNotificationConfigurationRequest) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketNotificationConfigurationRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketNotificationConfigurationRequest"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } +type GetBucketPolicyInput struct { + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetBucketPolicyInput `json:"-" xml:"-"` } -type GetBucketPolicyInput struct { - _ struct{} `type:"structure"` - - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +type metadataGetBucketPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3787,24 +3210,15 @@ func (s GetBucketPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketPolicyInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetBucketPolicyOutput struct { - _ struct{} `type:"structure" payload:"Policy"` - // The bucket policy as a JSON document. Policy *string `type:"string"` + + metadataGetBucketPolicyOutput `json:"-" xml:"-"` +} + +type metadataGetBucketPolicyOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Policy"` } // String returns the string representation @@ -3818,9 +3232,13 @@ func (s GetBucketPolicyOutput) GoString() string { } type GetBucketReplicationInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataGetBucketReplicationInput `json:"-" xml:"-"` +} + +type metadataGetBucketReplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3833,25 +3251,16 @@ func (s GetBucketReplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketReplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketReplicationInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetBucketReplicationOutput struct { - _ struct{} `type:"structure" payload:"ReplicationConfiguration"` - // Container for replication rules. You can add as many as 1,000 rules. Total // replication configuration size can be up to 2 MB. ReplicationConfiguration *ReplicationConfiguration `type:"structure"` + + metadataGetBucketReplicationOutput `json:"-" xml:"-"` +} + +type metadataGetBucketReplicationOutput struct { + SDKShapeTraits bool `type:"structure" payload:"ReplicationConfiguration"` } // String returns the string representation @@ -3865,9 +3274,13 @@ func (s GetBucketReplicationOutput) GoString() string { } type GetBucketRequestPaymentInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataGetBucketRequestPaymentInput `json:"-" xml:"-"` +} + +type metadataGetBucketRequestPaymentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3880,24 +3293,15 @@ func (s GetBucketRequestPaymentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketRequestPaymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketRequestPaymentInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetBucketRequestPaymentOutput struct { - _ struct{} `type:"structure"` - // Specifies who pays for the download and request fees. Payer *string `type:"string" enum:"Payer"` + + metadataGetBucketRequestPaymentOutput `json:"-" xml:"-"` +} + +type metadataGetBucketRequestPaymentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3911,9 +3315,13 @@ func (s GetBucketRequestPaymentOutput) GoString() string { } type GetBucketTaggingInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataGetBucketTaggingInput `json:"-" xml:"-"` +} + +type metadataGetBucketTaggingInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3926,23 +3334,14 @@ func (s GetBucketTaggingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketTaggingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketTaggingInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } +type GetBucketTaggingOutput struct { + TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetBucketTaggingOutput `json:"-" xml:"-"` } -type GetBucketTaggingOutput struct { - _ struct{} `type:"structure"` - - TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"` +type metadataGetBucketTaggingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3956,9 +3355,13 @@ func (s GetBucketTaggingOutput) GoString() string { } type GetBucketVersioningInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataGetBucketVersioningInput `json:"-" xml:"-"` +} + +type metadataGetBucketVersioningInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3971,22 +3374,7 @@ func (s GetBucketVersioningInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketVersioningInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketVersioningInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetBucketVersioningOutput struct { - _ struct{} `type:"structure"` - // Specifies whether MFA delete is enabled in the bucket versioning configuration. // This element is only returned if the bucket has been configured with MFA // delete. If the bucket has never been so configured, this element is not returned. @@ -3994,6 +3382,12 @@ type GetBucketVersioningOutput struct { // The versioning state of the bucket. Status *string `type:"string" enum:"BucketVersioningStatus"` + + metadataGetBucketVersioningOutput `json:"-" xml:"-"` +} + +type metadataGetBucketVersioningOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4007,9 +3401,13 @@ func (s GetBucketVersioningOutput) GoString() string { } type GetBucketWebsiteInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + metadataGetBucketWebsiteInput `json:"-" xml:"-"` +} + +type metadataGetBucketWebsiteInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4022,22 +3420,7 @@ func (s GetBucketWebsiteInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketWebsiteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketWebsiteInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetBucketWebsiteOutput struct { - _ struct{} `type:"structure"` - ErrorDocument *ErrorDocument `type:"structure"` IndexDocument *IndexDocument `type:"structure"` @@ -4045,6 +3428,12 @@ type GetBucketWebsiteOutput struct { RedirectAllRequestsTo *RedirectAllRequestsTo `type:"structure"` RoutingRules []*RoutingRule `locationNameList:"RoutingRule" type:"list"` + + metadataGetBucketWebsiteOutput `json:"-" xml:"-"` +} + +type metadataGetBucketWebsiteOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4058,11 +3447,9 @@ func (s GetBucketWebsiteOutput) GoString() string { } type GetObjectAclInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. @@ -4072,6 +3459,12 @@ type GetObjectAclInput struct { // VersionId used to reference a specific version of the object. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` + + metadataGetObjectAclInput `json:"-" xml:"-"` +} + +type metadataGetObjectAclInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4084,28 +3477,7 @@ func (s GetObjectAclInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetObjectAclInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetObjectAclInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetObjectAclOutput struct { - _ struct{} `type:"structure"` - // A list of grants. Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"` @@ -4114,6 +3486,12 @@ type GetObjectAclOutput struct { // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` + + metadataGetObjectAclOutput `json:"-" xml:"-"` +} + +type metadataGetObjectAclOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4127,8 +3505,6 @@ func (s GetObjectAclOutput) GoString() string { } type GetObjectInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Return the object only if its entity tag (ETag) is the same as the one specified, @@ -4147,7 +3523,7 @@ type GetObjectInput struct { // otherwise return a 412 (precondition failed). IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp" timestampFormat:"rfc822"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // Downloads the specified range bytes of an object. For more information about // the HTTP Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35. @@ -4194,6 +3570,12 @@ type GetObjectInput struct { // VersionId used to reference a specific version of the object. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` + + metadataGetObjectInput `json:"-" xml:"-"` +} + +type metadataGetObjectInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4206,28 +3588,7 @@ func (s GetObjectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetObjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetObjectInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetObjectOutput struct { - _ struct{} `type:"structure" payload:"Body"` - AcceptRanges *string `location:"header" locationName:"accept-ranges" type:"string"` // Object data. @@ -4322,6 +3683,12 @@ type GetObjectOutput struct { // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` + + metadataGetObjectOutput `json:"-" xml:"-"` +} + +type metadataGetObjectOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Body"` } // String returns the string representation @@ -4335,17 +3702,21 @@ func (s GetObjectOutput) GoString() string { } type GetObjectTorrentInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` + + metadataGetObjectTorrentInput `json:"-" xml:"-"` +} + +type metadataGetObjectTorrentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4358,33 +3729,18 @@ func (s GetObjectTorrentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetObjectTorrentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetObjectTorrentInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type GetObjectTorrentOutput struct { - _ struct{} `type:"structure" payload:"Body"` - Body io.ReadCloser `type:"blob"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` + + metadataGetObjectTorrentOutput `json:"-" xml:"-"` +} + +type metadataGetObjectTorrentOutput struct { + SDKShapeTraits bool `type:"structure" payload:"Body"` } // String returns the string representation @@ -4398,12 +3754,16 @@ func (s GetObjectTorrentOutput) GoString() string { } type Grant struct { - _ struct{} `type:"structure"` - Grantee *Grantee `type:"structure"` // Specifies the permission given to the grantee. Permission *string `type:"string" enum:"Permission"` + + metadataGrant `json:"-" xml:"-"` +} + +type metadataGrant struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4416,24 +3776,7 @@ func (s Grant) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Grant) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Grant"} - if s.Grantee != nil { - if err := s.Grantee.Validate(); err != nil { - invalidParams.AddNested("Grantee", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type Grantee struct { - _ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"` - // Screen name of the grantee. DisplayName *string `type:"string"` @@ -4448,6 +3791,12 @@ type Grantee struct { // URI of the grantee group. URI *string `type:"string"` + + metadataGrantee `json:"-" xml:"-"` +} + +type metadataGrantee struct { + SDKShapeTraits bool `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"` } // String returns the string representation @@ -4460,23 +3809,14 @@ func (s Grantee) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Grantee) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Grantee"} - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } +type HeadBucketInput struct { + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataHeadBucketInput `json:"-" xml:"-"` } -type HeadBucketInput struct { - _ struct{} `type:"structure"` - - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +type metadataHeadBucketInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4489,21 +3829,12 @@ func (s HeadBucketInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *HeadBucketInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HeadBucketInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type HeadBucketOutput struct { + metadataHeadBucketOutput `json:"-" xml:"-"` } -type HeadBucketOutput struct { - _ struct{} `type:"structure"` +type metadataHeadBucketOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4517,8 +3848,6 @@ func (s HeadBucketOutput) GoString() string { } type HeadObjectInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Return the object only if its entity tag (ETag) is the same as the one specified, @@ -4537,7 +3866,7 @@ type HeadObjectInput struct { // otherwise return a 412 (precondition failed). IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp" timestampFormat:"rfc822"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // Downloads the specified range bytes of an object. For more information about // the HTTP Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35. @@ -4566,6 +3895,12 @@ type HeadObjectInput struct { // VersionId used to reference a specific version of the object. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` + + metadataHeadObjectInput `json:"-" xml:"-"` +} + +type metadataHeadObjectInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4578,28 +3913,7 @@ func (s HeadObjectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *HeadObjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HeadObjectInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type HeadObjectOutput struct { - _ struct{} `type:"structure"` - AcceptRanges *string `location:"header" locationName:"accept-ranges" type:"string"` // Specifies caching behavior along the request/reply chain. @@ -4688,6 +4002,12 @@ type HeadObjectOutput struct { // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` + + metadataHeadObjectOutput `json:"-" xml:"-"` +} + +type metadataHeadObjectOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4701,13 +4021,17 @@ func (s HeadObjectOutput) GoString() string { } type IndexDocument struct { - _ struct{} `type:"structure"` - // A suffix that is appended to a request that is for a directory on the website // endpoint (e.g. if the suffix is index.html and you make a request to samplebucket/images/ // the data that is returned will be for the object with the key name images/index.html) // The suffix must not be empty and must not include a slash character. Suffix *string `type:"string" required:"true"` + + metadataIndexDocument `json:"-" xml:"-"` +} + +type metadataIndexDocument struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4720,28 +4044,19 @@ func (s IndexDocument) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *IndexDocument) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IndexDocument"} - if s.Suffix == nil { - invalidParams.Add(request.NewErrParamRequired("Suffix")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type Initiator struct { - _ struct{} `type:"structure"` - // Name of the Principal. DisplayName *string `type:"string"` // If the principal is an AWS account, it provides the Canonical User ID. If // the principal is an IAM User, it provides a user ARN value. ID *string `type:"string"` + + metadataInitiator `json:"-" xml:"-"` +} + +type metadataInitiator struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4756,11 +4071,15 @@ func (s Initiator) GoString() string { // Container for object key name prefix and suffix filtering rules. type KeyFilter struct { - _ struct{} `type:"structure"` - // A list of containers for key value pair that defines the criteria for the // filter rule. FilterRules []*FilterRule `locationName:"FilterRule" type:"list" flattened:"true"` + + metadataKeyFilter `json:"-" xml:"-"` +} + +type metadataKeyFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4775,8 +4094,6 @@ func (s KeyFilter) GoString() string { // Container for specifying the AWS Lambda notification configuration. type LambdaFunctionConfiguration struct { - _ struct{} `type:"structure"` - Events []*string `locationName:"Event" type:"list" flattened:"true" required:"true"` // Container for object key name filtering rules. For information about key @@ -4791,6 +4108,12 @@ type LambdaFunctionConfiguration struct { // Lambda cloud function ARN that Amazon S3 can invoke when it detects events // of the specified type. LambdaFunctionArn *string `locationName:"CloudFunction" type:"string" required:"true"` + + metadataLambdaFunctionConfiguration `json:"-" xml:"-"` +} + +type metadataLambdaFunctionConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4803,26 +4126,14 @@ func (s LambdaFunctionConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LambdaFunctionConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LambdaFunctionConfiguration"} - if s.Events == nil { - invalidParams.Add(request.NewErrParamRequired("Events")) - } - if s.LambdaFunctionArn == nil { - invalidParams.Add(request.NewErrParamRequired("LambdaFunctionArn")) - } +type LifecycleConfiguration struct { + Rules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataLifecycleConfiguration `json:"-" xml:"-"` } -type LifecycleConfiguration struct { - _ struct{} `type:"structure"` - - Rules []*Rule `locationName:"Rule" type:"list" flattened:"true" required:"true"` +type metadataLifecycleConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4835,32 +4146,7 @@ func (s LifecycleConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LifecycleConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LifecycleConfiguration"} - if s.Rules == nil { - invalidParams.Add(request.NewErrParamRequired("Rules")) - } - if s.Rules != nil { - for i, v := range s.Rules { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type LifecycleExpiration struct { - _ struct{} `type:"structure"` - // Indicates at what date the object is to be moved or deleted. Should be in // GMT ISO 8601 Format. Date *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -4869,11 +4155,11 @@ type LifecycleExpiration struct { // The value must be a non-zero positive integer. Days *int64 `type:"integer"` - // Indicates whether Amazon S3 will remove a delete marker with no noncurrent - // versions. If set to true, the delete marker will be expired; if set to false - // the policy takes no action. This cannot be specified with Days or Date in - // a Lifecycle Expiration Policy. - ExpiredObjectDeleteMarker *bool `type:"boolean"` + metadataLifecycleExpiration `json:"-" xml:"-"` +} + +type metadataLifecycleExpiration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4887,12 +4173,6 @@ func (s LifecycleExpiration) GoString() string { } type LifecycleRule struct { - _ struct{} `type:"structure"` - - // Specifies the days since the initiation of an Incomplete Multipart Upload - // that Lifecycle will wait before permanently removing all parts of the upload. - AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"` - Expiration *LifecycleExpiration `type:"structure"` // Unique identifier for the rule. The value cannot be longer than 255 characters. @@ -4905,7 +4185,12 @@ type LifecycleRule struct { // period in the object's lifetime. NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"` - NoncurrentVersionTransitions []*NoncurrentVersionTransition `locationName:"NoncurrentVersionTransition" type:"list" flattened:"true"` + // Container for the transition rule that describes when noncurrent objects + // transition to the GLACIER storage class. If your bucket is versioning-enabled + // (or versioning is suspended), you can set this action to request that Amazon + // S3 transition noncurrent object versions to the GLACIER storage class at + // a specific period in the object's lifetime. + NoncurrentVersionTransition *NoncurrentVersionTransition `type:"structure"` // Prefix identifying one or more objects to which the rule applies. Prefix *string `type:"string" required:"true"` @@ -4914,7 +4199,13 @@ type LifecycleRule struct { // is not currently being applied. Status *string `type:"string" required:"true" enum:"ExpirationStatus"` - Transitions []*Transition `locationName:"Transition" type:"list" flattened:"true"` + Transition *Transition `type:"structure"` + + metadataLifecycleRule `json:"-" xml:"-"` +} + +type metadataLifecycleRule struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4927,24 +4218,12 @@ func (s LifecycleRule) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LifecycleRule) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LifecycleRule"} - if s.Prefix == nil { - invalidParams.Add(request.NewErrParamRequired("Prefix")) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ListBucketsInput struct { + metadataListBucketsInput `json:"-" xml:"-"` } -type ListBucketsInput struct { - _ struct{} `type:"structure"` +type metadataListBucketsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4958,11 +4237,15 @@ func (s ListBucketsInput) GoString() string { } type ListBucketsOutput struct { - _ struct{} `type:"structure"` - Buckets []*Bucket `locationNameList:"Bucket" type:"list"` Owner *Owner `type:"structure"` + + metadataListBucketsOutput `json:"-" xml:"-"` +} + +type metadataListBucketsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4976,8 +4259,6 @@ func (s ListBucketsOutput) GoString() string { } type ListMultipartUploadsInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Character you use to group keys. @@ -5008,6 +4289,12 @@ type ListMultipartUploadsInput struct { // should begin. If key-marker is not specified, the upload-id-marker parameter // is ignored. UploadIdMarker *string `location:"querystring" locationName:"upload-id-marker" type:"string"` + + metadataListMultipartUploadsInput `json:"-" xml:"-"` +} + +type metadataListMultipartUploadsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5020,22 +4307,7 @@ func (s ListMultipartUploadsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListMultipartUploadsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMultipartUploadsInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListMultipartUploadsOutput struct { - _ struct{} `type:"structure"` - // Name of the bucket to which the multipart upload was initiated. Bucket *string `type:"string"` @@ -5075,6 +4347,12 @@ type ListMultipartUploadsOutput struct { UploadIdMarker *string `type:"string"` Uploads []*MultipartUpload `locationName:"Upload" type:"list" flattened:"true"` + + metadataListMultipartUploadsOutput `json:"-" xml:"-"` +} + +type metadataListMultipartUploadsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5088,8 +4366,6 @@ func (s ListMultipartUploadsOutput) GoString() string { } type ListObjectVersionsInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // A delimiter is a character you use to group keys. @@ -5115,6 +4391,12 @@ type ListObjectVersionsInput struct { // Specifies the object version you want to start listing from. VersionIdMarker *string `location:"querystring" locationName:"version-id-marker" type:"string"` + + metadataListObjectVersionsInput `json:"-" xml:"-"` +} + +type metadataListObjectVersionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5127,22 +4409,7 @@ func (s ListObjectVersionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListObjectVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListObjectVersionsInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListObjectVersionsOutput struct { - _ struct{} `type:"structure"` - CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"` DeleteMarkers []*DeleteMarkerEntry `locationName:"DeleteMarker" type:"list" flattened:"true"` @@ -5177,6 +4444,12 @@ type ListObjectVersionsOutput struct { VersionIdMarker *string `type:"string"` Versions []*ObjectVersion `locationName:"Version" type:"list" flattened:"true"` + + metadataListObjectVersionsOutput `json:"-" xml:"-"` +} + +type metadataListObjectVersionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5190,8 +4463,6 @@ func (s ListObjectVersionsOutput) GoString() string { } type ListObjectsInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // A delimiter is a character you use to group keys. @@ -5214,6 +4485,12 @@ type ListObjectsInput struct { // Limits the response to keys that begin with the specified prefix. Prefix *string `location:"querystring" locationName:"prefix" type:"string"` + + metadataListObjectsInput `json:"-" xml:"-"` +} + +type metadataListObjectsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5226,22 +4503,7 @@ func (s ListObjectsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListObjectsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListObjectsInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListObjectsOutput struct { - _ struct{} `type:"structure"` - CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"` Contents []*Object `type:"list" flattened:"true"` @@ -5271,142 +4533,28 @@ type ListObjectsOutput struct { NextMarker *string `type:"string"` Prefix *string `type:"string"` -} - -// String returns the string representation -func (s ListObjectsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListObjectsOutput) GoString() string { - return s.String() -} - -type ListObjectsV2Input struct { - _ struct{} `type:"structure"` - - // Name of the bucket to list. - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - - // ContinuationToken indicates Amazon S3 that the list is being continued on - // this bucket with a token. ContinuationToken is obfuscated and is not a real - // key - ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"` - - // A delimiter is a character you use to group keys. - Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"` - - // Encoding type used by Amazon S3 to encode object keys in the response. - EncodingType *string `location:"querystring" locationName:"encoding-type" type:"string" enum:"EncodingType"` - - // The owner field is not present in listV2 by default, if you want to return - // owner field with each key in the result then set the fetch owner field to - // true - FetchOwner *bool `location:"querystring" locationName:"fetch-owner" type:"boolean"` - - // Sets the maximum number of keys returned in the response. The response might - // contain fewer keys but will never contain more. - MaxKeys *int64 `location:"querystring" locationName:"max-keys" type:"integer"` - - // Limits the response to keys that begin with the specified prefix. - Prefix *string `location:"querystring" locationName:"prefix" type:"string"` - - // StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts - // listing after this specified key. StartAfter can be any key in the bucket - StartAfter *string `location:"querystring" locationName:"start-key" type:"string"` -} - -// String returns the string representation -func (s ListObjectsV2Input) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListObjectsV2Input) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListObjectsV2Input) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListObjectsV2Input"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataListObjectsOutput `json:"-" xml:"-"` } -type ListObjectsV2Output struct { - _ struct{} `type:"structure"` - - // CommonPrefixes contains all (if there are any) keys between Prefix and the - // next occurrence of the string specified by delimiter - CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"` - - // Metadata about each object returned. - Contents []*Object `type:"list" flattened:"true"` - - // ContinuationToken indicates Amazon S3 that the list is being continued on - // this bucket with a token. ContinuationToken is obfuscated and is not a real - // key - ContinuationToken *string `type:"string"` - - // A delimiter is a character you use to group keys. - Delimiter *string `type:"string"` - - // Encoding type used by Amazon S3 to encode object keys in the response. - EncodingType *string `type:"string" enum:"EncodingType"` - - // A flag that indicates whether or not Amazon S3 returned all of the results - // that satisfied the search criteria. - IsTruncated *bool `type:"boolean"` - - // KeyCount is the number of keys returned with this request. KeyCount will - // always be less than equals to MaxKeys field. Say you ask for 50 keys, your - // result will include less than equals 50 keys - KeyCount *int64 `type:"integer"` - - // Sets the maximum number of keys returned in the response. The response might - // contain fewer keys but will never contain more. - MaxKeys *int64 `type:"integer"` - - // Name of the bucket to list. - Name *string `type:"string"` - - // NextContinuationToken is sent when isTruncated is true which means there - // are more keys in the bucket that can be listed. The next list requests to - // Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken - // is obfuscated and is not a real key - NextContinuationToken *string `type:"string"` - - // Limits the response to keys that begin with the specified prefix. - Prefix *string `type:"string"` - - // StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts - // listing after this specified key. StartAfter can be any key in the bucket - StartAfter *string `type:"string"` +type metadataListObjectsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListObjectsV2Output) String() string { +func (s ListObjectsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListObjectsV2Output) GoString() string { +func (s ListObjectsOutput) GoString() string { return s.String() } type ListPartsInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // Sets the maximum number of parts to return. MaxParts *int64 `location:"querystring" locationName:"max-parts" type:"integer"` @@ -5423,6 +4571,12 @@ type ListPartsInput struct { // Upload ID identifying the multipart upload whose parts are being listed. UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"` + + metadataListPartsInput `json:"-" xml:"-"` +} + +type metadataListPartsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5435,38 +4589,7 @@ func (s ListPartsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPartsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPartsInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - 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.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListPartsOutput struct { - _ struct{} `type:"structure"` - - // Date when multipart upload will become eligible for abort operation by lifecycle. - AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp" timestampFormat:"rfc822"` - - // Id of the lifecycle rule that makes a multipart upload eligible for abort - // operation. - AbortRuleId *string `location:"header" locationName:"x-amz-abort-rule-id" type:"string"` - // Name of the bucket to which the multipart upload was initiated. Bucket *string `type:"string"` @@ -5477,7 +4600,7 @@ type ListPartsOutput struct { IsTruncated *bool `type:"boolean"` // Object key for which the multipart upload was initiated. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // Maximum number of parts that were allowed in the response. MaxParts *int64 `type:"integer"` @@ -5503,6 +4626,12 @@ type ListPartsOutput struct { // Upload ID identifying the multipart upload whose parts are being listed. UploadId *string `type:"string"` + + metadataListPartsOutput `json:"-" xml:"-"` +} + +type metadataListPartsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5516,8 +4645,6 @@ func (s ListPartsOutput) GoString() string { } type LoggingEnabled struct { - _ struct{} `type:"structure"` - // Specifies the bucket where you want Amazon S3 to store server access logs. // You can have your logs delivered to any bucket that you own, including the // same bucket that is being logged. You can also configure multiple buckets @@ -5531,6 +4658,12 @@ type LoggingEnabled struct { // This element lets you specify a prefix for the keys that the log files will // be stored under. TargetPrefix *string `type:"string"` + + metadataLoggingEnabled `json:"-" xml:"-"` +} + +type metadataLoggingEnabled struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5543,29 +4676,7 @@ func (s LoggingEnabled) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LoggingEnabled) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LoggingEnabled"} - if s.TargetGrants != nil { - for i, v := range s.TargetGrants { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetGrants", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type MultipartUpload struct { - _ struct{} `type:"structure"` - // Date and time at which the multipart upload was initiated. Initiated *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -5573,7 +4684,7 @@ type MultipartUpload struct { Initiator *Initiator `type:"structure"` // Key of the object for which the multipart upload was initiated. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` Owner *Owner `type:"structure"` @@ -5582,6 +4693,12 @@ type MultipartUpload struct { // Upload ID that identifies the multipart upload. UploadId *string `type:"string"` + + metadataMultipartUpload `json:"-" xml:"-"` +} + +type metadataMultipartUpload struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5600,14 +4717,18 @@ func (s MultipartUpload) GoString() string { // to request that Amazon S3 delete noncurrent object versions at a specific // period in the object's lifetime. type NoncurrentVersionExpiration struct { - _ struct{} `type:"structure"` - // Specifies the number of days an object is noncurrent before Amazon S3 can // perform the associated action. For information about the noncurrent days // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent // (/AmazonS3/latest/dev/s3-access-control.html) in the Amazon Simple Storage // Service Developer Guide. NoncurrentDays *int64 `type:"integer"` + + metadataNoncurrentVersionExpiration `json:"-" xml:"-"` +} + +type metadataNoncurrentVersionExpiration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5621,13 +4742,11 @@ func (s NoncurrentVersionExpiration) GoString() string { } // Container for the transition rule that describes when noncurrent objects -// transition to the STANDARD_IA or GLACIER storage class. If your bucket is -// versioning-enabled (or versioning is suspended), you can set this action -// to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA -// or GLACIER storage class at a specific period in the object's lifetime. +// transition to the GLACIER storage class. If your bucket is versioning-enabled +// (or versioning is suspended), you can set this action to request that Amazon +// S3 transition noncurrent object versions to the GLACIER storage class at +// a specific period in the object's lifetime. type NoncurrentVersionTransition struct { - _ struct{} `type:"structure"` - // Specifies the number of days an object is noncurrent before Amazon S3 can // perform the associated action. For information about the noncurrent days // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent @@ -5637,6 +4756,12 @@ type NoncurrentVersionTransition struct { // The class of storage used to store the object. StorageClass *string `type:"string" enum:"TransitionStorageClass"` + + metadataNoncurrentVersionTransition `json:"-" xml:"-"` +} + +type metadataNoncurrentVersionTransition struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5652,13 +4777,17 @@ func (s NoncurrentVersionTransition) GoString() string { // Container for specifying the notification configuration of the bucket. If // this element is empty, notifications are turned off on the bucket. type NotificationConfiguration struct { - _ struct{} `type:"structure"` - LambdaFunctionConfigurations []*LambdaFunctionConfiguration `locationName:"CloudFunctionConfiguration" type:"list" flattened:"true"` QueueConfigurations []*QueueConfiguration `locationName:"QueueConfiguration" type:"list" flattened:"true"` TopicConfigurations []*TopicConfiguration `locationName:"TopicConfiguration" type:"list" flattened:"true"` + + metadataNotificationConfiguration `json:"-" xml:"-"` +} + +type metadataNotificationConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5671,54 +4800,18 @@ func (s NotificationConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *NotificationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "NotificationConfiguration"} - if s.LambdaFunctionConfigurations != nil { - for i, v := range s.LambdaFunctionConfigurations { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LambdaFunctionConfigurations", i), err.(request.ErrInvalidParams)) - } - } - } - if s.QueueConfigurations != nil { - for i, v := range s.QueueConfigurations { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QueueConfigurations", i), err.(request.ErrInvalidParams)) - } - } - } - if s.TopicConfigurations != nil { - for i, v := range s.TopicConfigurations { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TopicConfigurations", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type NotificationConfigurationDeprecated struct { - _ struct{} `type:"structure"` - CloudFunctionConfiguration *CloudFunctionConfiguration `type:"structure"` QueueConfiguration *QueueConfigurationDeprecated `type:"structure"` TopicConfiguration *TopicConfigurationDeprecated `type:"structure"` + + metadataNotificationConfigurationDeprecated `json:"-" xml:"-"` +} + +type metadataNotificationConfigurationDeprecated struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5735,10 +4828,14 @@ func (s NotificationConfigurationDeprecated) GoString() string { // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) // in the Amazon Simple Storage Service Developer Guide. type NotificationConfigurationFilter struct { - _ struct{} `type:"structure"` - // Container for object key name prefix and suffix filtering rules. Key *KeyFilter `locationName:"S3Key" type:"structure"` + + metadataNotificationConfigurationFilter `json:"-" xml:"-"` +} + +type metadataNotificationConfigurationFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5752,11 +4849,9 @@ func (s NotificationConfigurationFilter) GoString() string { } type Object struct { - _ struct{} `type:"structure"` - ETag *string `type:"string"` - Key *string `min:"1" type:"string"` + Key *string `type:"string"` LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -5766,6 +4861,12 @@ type Object struct { // The class of storage used to store the object. StorageClass *string `type:"string" enum:"ObjectStorageClass"` + + metadataObject `json:"-" xml:"-"` +} + +type metadataObject struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5779,13 +4880,17 @@ func (s Object) GoString() string { } type ObjectIdentifier struct { - _ struct{} `type:"structure"` - // Key name of the object to delete. - Key *string `min:"1" type:"string" required:"true"` + Key *string `type:"string" required:"true"` // VersionId for the specific version of the object to delete. VersionId *string `type:"string"` + + metadataObjectIdentifier `json:"-" xml:"-"` +} + +type metadataObjectIdentifier struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5798,25 +4903,7 @@ func (s ObjectIdentifier) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ObjectIdentifier) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ObjectIdentifier"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ObjectVersion struct { - _ struct{} `type:"structure"` - ETag *string `type:"string"` // Specifies whether the object is (true) or is not (false) the latest version @@ -5824,7 +4911,7 @@ type ObjectVersion struct { IsLatest *bool `type:"boolean"` // The object key. - Key *string `min:"1" type:"string"` + Key *string `type:"string"` // Date and time the object was last modified. LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -5839,6 +4926,12 @@ type ObjectVersion struct { // Version ID of an object. VersionId *string `type:"string"` + + metadataObjectVersion `json:"-" xml:"-"` +} + +type metadataObjectVersion struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5852,11 +4945,15 @@ func (s ObjectVersion) GoString() string { } type Owner struct { - _ struct{} `type:"structure"` - DisplayName *string `type:"string"` ID *string `type:"string"` + + metadataOwner `json:"-" xml:"-"` +} + +type metadataOwner struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5870,8 +4967,6 @@ func (s Owner) GoString() string { } type Part struct { - _ struct{} `type:"structure"` - // Entity tag returned when the part was uploaded. ETag *string `type:"string"` @@ -5884,71 +4979,25 @@ type Part struct { // Size of the uploaded part data. Size *int64 `type:"integer"` -} - -// String returns the string representation -func (s Part) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s Part) GoString() string { - return s.String() + metadataPart `json:"-" xml:"-"` } -type PutBucketAccelerateConfigurationInput struct { - _ struct{} `type:"structure" payload:"AccelerateConfiguration"` - - // Specifies the Accelerate Configuration you want to set for the bucket. - AccelerateConfiguration *AccelerateConfiguration `locationName:"AccelerateConfiguration" type:"structure" required:"true"` - - // Name of the bucket for which the accelerate configuration is set. - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +type metadataPart struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s PutBucketAccelerateConfigurationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutBucketAccelerateConfigurationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketAccelerateConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketAccelerateConfigurationInput"} - if s.AccelerateConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("AccelerateConfiguration")) - } - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type PutBucketAccelerateConfigurationOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s PutBucketAccelerateConfigurationOutput) String() string { +func (s Part) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutBucketAccelerateConfigurationOutput) GoString() string { +func (s Part) GoString() string { return s.String() } type PutBucketAclInput struct { - _ struct{} `type:"structure" payload:"AccessControlPolicy"` - // The canned ACL to apply to the bucket. ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"` @@ -5971,6 +5020,12 @@ type PutBucketAclInput struct { // Allows grantee to write the ACL for the applicable bucket. GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` + + metadataPutBucketAclInput `json:"-" xml:"-"` +} + +type metadataPutBucketAclInput struct { + SDKShapeTraits bool `type:"structure" payload:"AccessControlPolicy"` } // String returns the string representation @@ -5983,26 +5038,12 @@ func (s PutBucketAclInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketAclInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketAclInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.AccessControlPolicy != nil { - if err := s.AccessControlPolicy.Validate(); err != nil { - invalidParams.AddNested("AccessControlPolicy", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketAclOutput struct { + metadataPutBucketAclOutput `json:"-" xml:"-"` } -type PutBucketAclOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketAclOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6016,11 +5057,15 @@ func (s PutBucketAclOutput) GoString() string { } type PutBucketCorsInput struct { - _ struct{} `type:"structure" payload:"CORSConfiguration"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - CORSConfiguration *CORSConfiguration `locationName:"CORSConfiguration" type:"structure" required:"true"` + CORSConfiguration *CORSConfiguration `locationName:"CORSConfiguration" type:"structure"` + + metadataPutBucketCorsInput `json:"-" xml:"-"` +} + +type metadataPutBucketCorsInput struct { + SDKShapeTraits bool `type:"structure" payload:"CORSConfiguration"` } // String returns the string representation @@ -6033,29 +5078,12 @@ func (s PutBucketCorsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketCorsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketCorsInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.CORSConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("CORSConfiguration")) - } - if s.CORSConfiguration != nil { - if err := s.CORSConfiguration.Validate(); err != nil { - invalidParams.AddNested("CORSConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketCorsOutput struct { + metadataPutBucketCorsOutput `json:"-" xml:"-"` } -type PutBucketCorsOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketCorsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6068,62 +5096,16 @@ func (s PutBucketCorsOutput) GoString() string { return s.String() } -type PutBucketLifecycleConfigurationInput struct { - _ struct{} `type:"structure" payload:"LifecycleConfiguration"` - +type PutBucketLifecycleInput struct { Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - LifecycleConfiguration *BucketLifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure"` -} - -// String returns the string representation -func (s PutBucketLifecycleConfigurationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutBucketLifecycleConfigurationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketLifecycleConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketLifecycleConfigurationInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.LifecycleConfiguration != nil { - if err := s.LifecycleConfiguration.Validate(); err != nil { - invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type PutBucketLifecycleConfigurationOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s PutBucketLifecycleConfigurationOutput) String() string { - return awsutil.Prettify(s) -} + LifecycleConfiguration *LifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure"` -// GoString returns the string representation -func (s PutBucketLifecycleConfigurationOutput) GoString() string { - return s.String() + metadataPutBucketLifecycleInput `json:"-" xml:"-"` } -type PutBucketLifecycleInput struct { - _ struct{} `type:"structure" payload:"LifecycleConfiguration"` - - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - - LifecycleConfiguration *LifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure"` +type metadataPutBucketLifecycleInput struct { + SDKShapeTraits bool `type:"structure" payload:"LifecycleConfiguration"` } // String returns the string representation @@ -6136,26 +5118,12 @@ func (s PutBucketLifecycleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketLifecycleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketLifecycleInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.LifecycleConfiguration != nil { - if err := s.LifecycleConfiguration.Validate(); err != nil { - invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketLifecycleOutput struct { + metadataPutBucketLifecycleOutput `json:"-" xml:"-"` } -type PutBucketLifecycleOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketLifecycleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6169,11 +5137,15 @@ func (s PutBucketLifecycleOutput) GoString() string { } type PutBucketLoggingInput struct { - _ struct{} `type:"structure" payload:"BucketLoggingStatus"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` BucketLoggingStatus *BucketLoggingStatus `locationName:"BucketLoggingStatus" type:"structure" required:"true"` + + metadataPutBucketLoggingInput `json:"-" xml:"-"` +} + +type metadataPutBucketLoggingInput struct { + SDKShapeTraits bool `type:"structure" payload:"BucketLoggingStatus"` } // String returns the string representation @@ -6186,29 +5158,12 @@ func (s PutBucketLoggingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketLoggingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketLoggingInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.BucketLoggingStatus == nil { - invalidParams.Add(request.NewErrParamRequired("BucketLoggingStatus")) - } - if s.BucketLoggingStatus != nil { - if err := s.BucketLoggingStatus.Validate(); err != nil { - invalidParams.AddNested("BucketLoggingStatus", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketLoggingOutput struct { + metadataPutBucketLoggingOutput `json:"-" xml:"-"` } -type PutBucketLoggingOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketLoggingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6222,13 +5177,17 @@ func (s PutBucketLoggingOutput) GoString() string { } type PutBucketNotificationConfigurationInput struct { - _ struct{} `type:"structure" payload:"NotificationConfiguration"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Container for specifying the notification configuration of the bucket. If // this element is empty, notifications are turned off on the bucket. NotificationConfiguration *NotificationConfiguration `locationName:"NotificationConfiguration" type:"structure" required:"true"` + + metadataPutBucketNotificationConfigurationInput `json:"-" xml:"-"` +} + +type metadataPutBucketNotificationConfigurationInput struct { + SDKShapeTraits bool `type:"structure" payload:"NotificationConfiguration"` } // String returns the string representation @@ -6241,29 +5200,12 @@ func (s PutBucketNotificationConfigurationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketNotificationConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketNotificationConfigurationInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.NotificationConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration")) - } - if s.NotificationConfiguration != nil { - if err := s.NotificationConfiguration.Validate(); err != nil { - invalidParams.AddNested("NotificationConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketNotificationConfigurationOutput struct { + metadataPutBucketNotificationConfigurationOutput `json:"-" xml:"-"` } -type PutBucketNotificationConfigurationOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketNotificationConfigurationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6277,11 +5219,15 @@ func (s PutBucketNotificationConfigurationOutput) GoString() string { } type PutBucketNotificationInput struct { - _ struct{} `type:"structure" payload:"NotificationConfiguration"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` NotificationConfiguration *NotificationConfigurationDeprecated `locationName:"NotificationConfiguration" type:"structure" required:"true"` + + metadataPutBucketNotificationInput `json:"-" xml:"-"` +} + +type metadataPutBucketNotificationInput struct { + SDKShapeTraits bool `type:"structure" payload:"NotificationConfiguration"` } // String returns the string representation @@ -6294,24 +5240,12 @@ func (s PutBucketNotificationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketNotificationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketNotificationInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.NotificationConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketNotificationOutput struct { + metadataPutBucketNotificationOutput `json:"-" xml:"-"` } -type PutBucketNotificationOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketNotificationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6325,12 +5259,16 @@ func (s PutBucketNotificationOutput) GoString() string { } type PutBucketPolicyInput struct { - _ struct{} `type:"structure" payload:"Policy"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The bucket policy as a JSON document. Policy *string `type:"string" required:"true"` + + metadataPutBucketPolicyInput `json:"-" xml:"-"` +} + +type metadataPutBucketPolicyInput struct { + SDKShapeTraits bool `type:"structure" payload:"Policy"` } // String returns the string representation @@ -6343,24 +5281,12 @@ func (s PutBucketPolicyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketPolicyInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Policy == nil { - invalidParams.Add(request.NewErrParamRequired("Policy")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketPolicyOutput struct { + metadataPutBucketPolicyOutput `json:"-" xml:"-"` } -type PutBucketPolicyOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6374,13 +5300,17 @@ func (s PutBucketPolicyOutput) GoString() string { } type PutBucketReplicationInput struct { - _ struct{} `type:"structure" payload:"ReplicationConfiguration"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Container for replication rules. You can add as many as 1,000 rules. Total // replication configuration size can be up to 2 MB. ReplicationConfiguration *ReplicationConfiguration `locationName:"ReplicationConfiguration" type:"structure" required:"true"` + + metadataPutBucketReplicationInput `json:"-" xml:"-"` +} + +type metadataPutBucketReplicationInput struct { + SDKShapeTraits bool `type:"structure" payload:"ReplicationConfiguration"` } // String returns the string representation @@ -6393,29 +5323,12 @@ func (s PutBucketReplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketReplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketReplicationInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.ReplicationConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationConfiguration")) - } - if s.ReplicationConfiguration != nil { - if err := s.ReplicationConfiguration.Validate(); err != nil { - invalidParams.AddNested("ReplicationConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketReplicationOutput struct { + metadataPutBucketReplicationOutput `json:"-" xml:"-"` } -type PutBucketReplicationOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketReplicationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6429,11 +5342,15 @@ func (s PutBucketReplicationOutput) GoString() string { } type PutBucketRequestPaymentInput struct { - _ struct{} `type:"structure" payload:"RequestPaymentConfiguration"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` RequestPaymentConfiguration *RequestPaymentConfiguration `locationName:"RequestPaymentConfiguration" type:"structure" required:"true"` + + metadataPutBucketRequestPaymentInput `json:"-" xml:"-"` +} + +type metadataPutBucketRequestPaymentInput struct { + SDKShapeTraits bool `type:"structure" payload:"RequestPaymentConfiguration"` } // String returns the string representation @@ -6446,29 +5363,12 @@ func (s PutBucketRequestPaymentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketRequestPaymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketRequestPaymentInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.RequestPaymentConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("RequestPaymentConfiguration")) - } - if s.RequestPaymentConfiguration != nil { - if err := s.RequestPaymentConfiguration.Validate(); err != nil { - invalidParams.AddNested("RequestPaymentConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketRequestPaymentOutput struct { + metadataPutBucketRequestPaymentOutput `json:"-" xml:"-"` } -type PutBucketRequestPaymentOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketRequestPaymentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6482,11 +5382,15 @@ func (s PutBucketRequestPaymentOutput) GoString() string { } type PutBucketTaggingInput struct { - _ struct{} `type:"structure" payload:"Tagging"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` Tagging *Tagging `locationName:"Tagging" type:"structure" required:"true"` + + metadataPutBucketTaggingInput `json:"-" xml:"-"` +} + +type metadataPutBucketTaggingInput struct { + SDKShapeTraits bool `type:"structure" payload:"Tagging"` } // String returns the string representation @@ -6499,29 +5403,12 @@ func (s PutBucketTaggingInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketTaggingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketTaggingInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Tagging == nil { - invalidParams.Add(request.NewErrParamRequired("Tagging")) - } - if s.Tagging != nil { - if err := s.Tagging.Validate(); err != nil { - invalidParams.AddNested("Tagging", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketTaggingOutput struct { + metadataPutBucketTaggingOutput `json:"-" xml:"-"` } -type PutBucketTaggingOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketTaggingOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6535,8 +5422,6 @@ func (s PutBucketTaggingOutput) GoString() string { } type PutBucketVersioningInput struct { - _ struct{} `type:"structure" payload:"VersioningConfiguration"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The concatenation of the authentication device's serial number, a space, @@ -6544,6 +5429,12 @@ type PutBucketVersioningInput struct { MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"` VersioningConfiguration *VersioningConfiguration `locationName:"VersioningConfiguration" type:"structure" required:"true"` + + metadataPutBucketVersioningInput `json:"-" xml:"-"` +} + +type metadataPutBucketVersioningInput struct { + SDKShapeTraits bool `type:"structure" payload:"VersioningConfiguration"` } // String returns the string representation @@ -6556,24 +5447,12 @@ func (s PutBucketVersioningInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketVersioningInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketVersioningInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.VersioningConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("VersioningConfiguration")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketVersioningOutput struct { + metadataPutBucketVersioningOutput `json:"-" xml:"-"` } -type PutBucketVersioningOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketVersioningOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6587,11 +5466,15 @@ func (s PutBucketVersioningOutput) GoString() string { } type PutBucketWebsiteInput struct { - _ struct{} `type:"structure" payload:"WebsiteConfiguration"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` WebsiteConfiguration *WebsiteConfiguration `locationName:"WebsiteConfiguration" type:"structure" required:"true"` + + metadataPutBucketWebsiteInput `json:"-" xml:"-"` +} + +type metadataPutBucketWebsiteInput struct { + SDKShapeTraits bool `type:"structure" payload:"WebsiteConfiguration"` } // String returns the string representation @@ -6604,29 +5487,12 @@ func (s PutBucketWebsiteInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutBucketWebsiteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutBucketWebsiteInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.WebsiteConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("WebsiteConfiguration")) - } - if s.WebsiteConfiguration != nil { - if err := s.WebsiteConfiguration.Validate(); err != nil { - invalidParams.AddNested("WebsiteConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PutBucketWebsiteOutput struct { + metadataPutBucketWebsiteOutput `json:"-" xml:"-"` } -type PutBucketWebsiteOutput struct { - _ struct{} `type:"structure"` +type metadataPutBucketWebsiteOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6640,8 +5506,6 @@ func (s PutBucketWebsiteOutput) GoString() string { } type PutObjectAclInput struct { - _ struct{} `type:"structure" payload:"AccessControlPolicy"` - // The canned ACL to apply to the object. ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"` @@ -6665,7 +5529,7 @@ type PutObjectAclInput struct { // Allows grantee to write the ACL for the applicable bucket. GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. @@ -6673,8 +5537,11 @@ type PutObjectAclInput struct { // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` - // VersionId used to reference a specific version of the object. - VersionId *string `location:"querystring" locationName:"versionId" type:"string"` + metadataPutObjectAclInput `json:"-" xml:"-"` +} + +type metadataPutObjectAclInput struct { + SDKShapeTraits bool `type:"structure" payload:"AccessControlPolicy"` } // String returns the string representation @@ -6687,36 +5554,16 @@ func (s PutObjectAclInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutObjectAclInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutObjectAclInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - 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.AccessControlPolicy != nil { - if err := s.AccessControlPolicy.Validate(); err != nil { - invalidParams.AddNested("AccessControlPolicy", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PutObjectAclOutput struct { - _ struct{} `type:"structure"` - // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` + + metadataPutObjectAclOutput `json:"-" xml:"-"` +} + +type metadataPutObjectAclOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6730,15 +5577,12 @@ func (s PutObjectAclOutput) GoString() string { } type PutObjectInput struct { - _ struct{} `type:"structure" payload:"Body"` - // The canned ACL to apply to the object. ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"` // Object data. Body io.ReadSeeker `type:"blob"` - // Name of the bucket to which the PUT operation was initiated. Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Specifies caching behavior along the request/reply chain. @@ -6777,8 +5621,7 @@ type PutObjectInput struct { // Allows grantee to write the ACL for the applicable object. GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` - // Object key for which the PUT operation was initiated. - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // A map of metadata to store with the object in S3. Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` @@ -6821,6 +5664,12 @@ type PutObjectInput struct { // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` + + metadataPutObjectInput `json:"-" xml:"-"` +} + +type metadataPutObjectInput struct { + SDKShapeTraits bool `type:"structure" payload:"Body"` } // String returns the string representation @@ -6833,28 +5682,7 @@ func (s PutObjectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutObjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutObjectInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PutObjectOutput struct { - _ struct{} `type:"structure"` - // Entity tag for the uploaded object. ETag *string `location:"header" locationName:"ETag" type:"string"` @@ -6886,6 +5714,12 @@ type PutObjectOutput struct { // Version of the object. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` + + metadataPutObjectOutput `json:"-" xml:"-"` +} + +type metadataPutObjectOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6901,8 +5735,6 @@ func (s PutObjectOutput) GoString() string { // Container for specifying an configuration when you want Amazon S3 to publish // events to an Amazon Simple Queue Service (Amazon SQS) queue. type QueueConfiguration struct { - _ struct{} `type:"structure"` - Events []*string `locationName:"Event" type:"list" flattened:"true" required:"true"` // Container for object key name filtering rules. For information about key @@ -6917,6 +5749,12 @@ type QueueConfiguration struct { // Amazon SQS queue ARN to which Amazon S3 will publish a message when it detects // events of specified type. QueueArn *string `locationName:"Queue" type:"string" required:"true"` + + metadataQueueConfiguration `json:"-" xml:"-"` +} + +type metadataQueueConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6929,27 +5767,9 @@ func (s QueueConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *QueueConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "QueueConfiguration"} - if s.Events == nil { - invalidParams.Add(request.NewErrParamRequired("Events")) - } - if s.QueueArn == nil { - invalidParams.Add(request.NewErrParamRequired("QueueArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type QueueConfigurationDeprecated struct { - _ struct{} `type:"structure"` - // Bucket event for which to send notifications. - Event *string `deprecated:"true" type:"string" enum:"Event"` + Event *string `type:"string" enum:"Event"` Events []*string `locationName:"Event" type:"list" flattened:"true"` @@ -6958,6 +5778,12 @@ type QueueConfigurationDeprecated struct { Id *string `type:"string"` Queue *string `type:"string"` + + metadataQueueConfigurationDeprecated `json:"-" xml:"-"` +} + +type metadataQueueConfigurationDeprecated struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6971,8 +5797,6 @@ func (s QueueConfigurationDeprecated) GoString() string { } type Redirect struct { - _ struct{} `type:"structure"` - // The host name to use in the redirect request. HostName *string `type:"string"` @@ -6996,6 +5820,12 @@ type Redirect struct { // request to error.html. Not required if one of the sibling is present. Can // be present only if ReplaceKeyPrefixWith is not provided. ReplaceKeyWith *string `type:"string"` + + metadataRedirect `json:"-" xml:"-"` +} + +type metadataRedirect struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7009,14 +5839,18 @@ func (s Redirect) GoString() string { } type RedirectAllRequestsTo struct { - _ struct{} `type:"structure"` - // Name of the host where requests will be redirected. HostName *string `type:"string" required:"true"` // Protocol to use (http, https) when redirecting requests. The default is the // protocol that is used in the original request. Protocol *string `type:"string" enum:"Protocol"` + + metadataRedirectAllRequestsTo `json:"-" xml:"-"` +} + +type metadataRedirectAllRequestsTo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7029,24 +5863,9 @@ func (s RedirectAllRequestsTo) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RedirectAllRequestsTo) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RedirectAllRequestsTo"} - if s.HostName == nil { - invalidParams.Add(request.NewErrParamRequired("HostName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for replication rules. You can add as many as 1,000 rules. Total // replication configuration size can be up to 2 MB. type ReplicationConfiguration struct { - _ struct{} `type:"structure"` - // Amazon Resource Name (ARN) of an IAM role for Amazon S3 to assume when replicating // the objects. Role *string `type:"string" required:"true"` @@ -7054,6 +5873,12 @@ type ReplicationConfiguration struct { // Container for information about a particular replication rule. Replication // configuration must have at least one rule and can contain up to 1,000 rules. Rules []*ReplicationRule `locationName:"Rule" type:"list" flattened:"true" required:"true"` + + metadataReplicationConfiguration `json:"-" xml:"-"` +} + +type metadataReplicationConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7066,35 +5891,7 @@ func (s ReplicationConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplicationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplicationConfiguration"} - if s.Role == nil { - invalidParams.Add(request.NewErrParamRequired("Role")) - } - if s.Rules == nil { - invalidParams.Add(request.NewErrParamRequired("Rules")) - } - if s.Rules != nil { - for i, v := range s.Rules { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ReplicationRule struct { - _ struct{} `type:"structure"` - Destination *Destination `type:"structure" required:"true"` // Unique identifier for the rule. The value cannot be longer than 255 characters. @@ -7107,6 +5904,12 @@ type ReplicationRule struct { // The rule is ignored if status is not Enabled. Status *string `type:"string" required:"true" enum:"ReplicationRuleStatus"` + + metadataReplicationRule `json:"-" xml:"-"` +} + +type metadataReplicationRule struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7119,35 +5922,15 @@ func (s ReplicationRule) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplicationRule) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplicationRule"} - if s.Destination == nil { - invalidParams.Add(request.NewErrParamRequired("Destination")) - } - if s.Prefix == nil { - invalidParams.Add(request.NewErrParamRequired("Prefix")) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - if s.Destination != nil { - if err := s.Destination.Validate(); err != nil { - invalidParams.AddNested("Destination", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RequestPaymentConfiguration struct { - _ struct{} `type:"structure"` - // Specifies who pays for the download and request fees. Payer *string `type:"string" required:"true" enum:"Payer"` + + metadataRequestPaymentConfiguration `json:"-" xml:"-"` +} + +type metadataRequestPaymentConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7160,25 +5943,10 @@ func (s RequestPaymentConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RequestPaymentConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RequestPaymentConfiguration"} - if s.Payer == nil { - invalidParams.Add(request.NewErrParamRequired("Payer")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RestoreObjectInput struct { - _ struct{} `type:"structure" payload:"RestoreRequest"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. @@ -7189,6 +5957,12 @@ type RestoreObjectInput struct { RestoreRequest *RestoreRequest `locationName:"RestoreRequest" type:"structure"` VersionId *string `location:"querystring" locationName:"versionId" type:"string"` + + metadataRestoreObjectInput `json:"-" xml:"-"` +} + +type metadataRestoreObjectInput struct { + SDKShapeTraits bool `type:"structure" payload:"RestoreRequest"` } // String returns the string representation @@ -7201,36 +5975,16 @@ func (s RestoreObjectInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreObjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreObjectInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - 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.RestoreRequest != nil { - if err := s.RestoreRequest.Validate(); err != nil { - invalidParams.AddNested("RestoreRequest", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RestoreObjectOutput struct { - _ struct{} `type:"structure"` - // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` + + metadataRestoreObjectOutput `json:"-" xml:"-"` +} + +type metadataRestoreObjectOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7244,10 +5998,14 @@ func (s RestoreObjectOutput) GoString() string { } type RestoreRequest struct { - _ struct{} `type:"structure"` - // Lifetime of the active copy in days Days *int64 `type:"integer" required:"true"` + + metadataRestoreRequest `json:"-" xml:"-"` +} + +type metadataRestoreRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7260,22 +6018,7 @@ func (s RestoreRequest) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreRequest"} - if s.Days == nil { - invalidParams.Add(request.NewErrParamRequired("Days")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type RoutingRule struct { - _ struct{} `type:"structure"` - // A container for describing a condition that must be met for the specified // redirect to apply. For example, 1. If request is for pages in the /docs folder, // redirect to the /documents folder. 2. If request results in HTTP error 4xx, @@ -7286,101 +6029,36 @@ type RoutingRule struct { // host, to another page, or with another protocol. In the event of an error, // you can can specify a different error code to return. Redirect *Redirect `type:"structure" required:"true"` -} - -// String returns the string representation -func (s RoutingRule) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RoutingRule) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RoutingRule) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RoutingRule"} - if s.Redirect == nil { - invalidParams.Add(request.NewErrParamRequired("Redirect")) - } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataRoutingRule `json:"-" xml:"-"` } -type Rule struct { - _ struct{} `type:"structure"` - - // Specifies the days since the initiation of an Incomplete Multipart Upload - // that Lifecycle will wait before permanently removing all parts of the upload. - AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"` - - Expiration *LifecycleExpiration `type:"structure"` - - // Unique identifier for the rule. The value cannot be longer than 255 characters. - ID *string `type:"string"` - - // Specifies when noncurrent object versions expire. Upon expiration, Amazon - // S3 permanently deletes the noncurrent object versions. You set this lifecycle - // configuration action on a bucket that has versioning enabled (or suspended) - // to request that Amazon S3 delete noncurrent object versions at a specific - // period in the object's lifetime. - NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"` - - // Container for the transition rule that describes when noncurrent objects - // transition to the STANDARD_IA or GLACIER storage class. If your bucket is - // versioning-enabled (or versioning is suspended), you can set this action - // to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA - // or GLACIER storage class at a specific period in the object's lifetime. - NoncurrentVersionTransition *NoncurrentVersionTransition `type:"structure"` - - // Prefix identifying one or more objects to which the rule applies. - Prefix *string `type:"string" required:"true"` - - // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule - // is not currently being applied. - Status *string `type:"string" required:"true" enum:"ExpirationStatus"` - - Transition *Transition `type:"structure"` +type metadataRoutingRule struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Rule) String() string { +func (s RoutingRule) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Rule) GoString() string { +func (s RoutingRule) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Rule) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Rule"} - if s.Prefix == nil { - invalidParams.Add(request.NewErrParamRequired("Prefix")) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type Tag struct { - _ struct{} `type:"structure"` - // Name of the tag. - Key *string `min:"1" type:"string" required:"true"` + Key *string `type:"string" required:"true"` // Value of the tag. Value *string `type:"string" required:"true"` + + metadataTag `json:"-" xml:"-"` +} + +type metadataTag struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7393,29 +6071,14 @@ func (s Tag) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - 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.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } +type Tagging struct { + TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataTagging `json:"-" xml:"-"` } -type Tagging struct { - _ struct{} `type:"structure"` - - TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"` +type metadataTagging struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7428,36 +6091,17 @@ func (s Tagging) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tagging) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tagging"} - if s.TagSet == nil { - invalidParams.Add(request.NewErrParamRequired("TagSet")) - } - if s.TagSet != nil { - for i, v := range s.TagSet { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagSet", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type TargetGrant struct { - _ struct{} `type:"structure"` - Grantee *Grantee `type:"structure"` // Logging permissions assigned to the Grantee for the bucket. Permission *string `type:"string" enum:"BucketLogsPermission"` + + metadataTargetGrant `json:"-" xml:"-"` +} + +type metadataTargetGrant struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7470,26 +6114,9 @@ func (s TargetGrant) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TargetGrant) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TargetGrant"} - if s.Grantee != nil { - if err := s.Grantee.Validate(); err != nil { - invalidParams.AddNested("Grantee", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Container for specifying the configuration when you want Amazon S3 to publish // events to an Amazon Simple Notification Service (Amazon SNS) topic. type TopicConfiguration struct { - _ struct{} `type:"structure"` - Events []*string `locationName:"Event" type:"list" flattened:"true" required:"true"` // Container for object key name filtering rules. For information about key @@ -7504,6 +6131,12 @@ type TopicConfiguration struct { // Amazon SNS topic ARN to which Amazon S3 will publish a message when it detects // events of specified type. TopicArn *string `locationName:"Topic" type:"string" required:"true"` + + metadataTopicConfiguration `json:"-" xml:"-"` +} + +type metadataTopicConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7516,27 +6149,9 @@ func (s TopicConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TopicConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TopicConfiguration"} - if s.Events == nil { - invalidParams.Add(request.NewErrParamRequired("Events")) - } - if s.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type TopicConfigurationDeprecated struct { - _ struct{} `type:"structure"` - // Bucket event for which to send notifications. - Event *string `deprecated:"true" type:"string" enum:"Event"` + Event *string `type:"string" enum:"Event"` Events []*string `locationName:"Event" type:"list" flattened:"true"` @@ -7547,6 +6162,12 @@ type TopicConfigurationDeprecated struct { // Amazon SNS topic to which Amazon S3 will publish a message to report the // specified events for the bucket. Topic *string `type:"string"` + + metadataTopicConfigurationDeprecated `json:"-" xml:"-"` +} + +type metadataTopicConfigurationDeprecated struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7560,8 +6181,6 @@ func (s TopicConfigurationDeprecated) GoString() string { } type Transition struct { - _ struct{} `type:"structure"` - // Indicates at what date the object is to be moved or deleted. Should be in // GMT ISO 8601 Format. Date *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -7572,6 +6191,12 @@ type Transition struct { // The class of storage used to store the object. StorageClass *string `type:"string" enum:"TransitionStorageClass"` + + metadataTransition `json:"-" xml:"-"` +} + +type metadataTransition struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7585,8 +6210,6 @@ func (s Transition) GoString() string { } type UploadPartCopyInput struct { - _ struct{} `type:"structure"` - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The name of the source bucket and key name of the source object, separated @@ -7626,7 +6249,7 @@ type UploadPartCopyInput struct { // key was transmitted without error. CopySourceSSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5" type:"string"` - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // Part number of part being copied. This is a positive integer between 1 and // 10,000. @@ -7656,6 +6279,12 @@ type UploadPartCopyInput struct { // Upload ID identifying the multipart upload whose part is being copied. UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"` + + metadataUploadPartCopyInput `json:"-" xml:"-"` +} + +type metadataUploadPartCopyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7668,37 +6297,7 @@ func (s UploadPartCopyInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UploadPartCopyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UploadPartCopyInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - if s.CopySource == nil { - invalidParams.Add(request.NewErrParamRequired("CopySource")) - } - 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.PartNumber == nil { - invalidParams.Add(request.NewErrParamRequired("PartNumber")) - } - if s.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type UploadPartCopyOutput struct { - _ struct{} `type:"structure" payload:"CopyPartResult"` - CopyPartResult *CopyPartResult `type:"structure"` // The version of the source object that was copied, if you have enabled versioning @@ -7726,6 +6325,12 @@ type UploadPartCopyOutput struct { // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` + + metadataUploadPartCopyOutput `json:"-" xml:"-"` +} + +type metadataUploadPartCopyOutput struct { + SDKShapeTraits bool `type:"structure" payload:"CopyPartResult"` } // String returns the string representation @@ -7739,20 +6344,15 @@ func (s UploadPartCopyOutput) GoString() string { } type UploadPartInput struct { - _ struct{} `type:"structure" payload:"Body"` - - // Object data. Body io.ReadSeeker `type:"blob"` - // Name of the bucket to which the multipart upload was initiated. Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Size of the body in bytes. This parameter is useful when the size of the // body cannot be determined automatically. ContentLength *int64 `location:"header" locationName:"Content-Length" type:"integer"` - // Object key for which the multipart upload was initiated. - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` // Part number of part being uploaded. This is a positive integer between 1 // and 10,000. @@ -7782,6 +6382,12 @@ type UploadPartInput struct { // Upload ID identifying the multipart upload whose part is being uploaded. UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"` + + metadataUploadPartInput `json:"-" xml:"-"` +} + +type metadataUploadPartInput struct { + SDKShapeTraits bool `type:"structure" payload:"Body"` } // String returns the string representation @@ -7794,34 +6400,7 @@ func (s UploadPartInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UploadPartInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UploadPartInput"} - if s.Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("Bucket")) - } - 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.PartNumber == nil { - invalidParams.Add(request.NewErrParamRequired("PartNumber")) - } - if s.UploadId == nil { - invalidParams.Add(request.NewErrParamRequired("UploadId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type UploadPartOutput struct { - _ struct{} `type:"structure"` - // Entity tag for the uploaded object. ETag *string `location:"header" locationName:"ETag" type:"string"` @@ -7846,6 +6425,12 @@ type UploadPartOutput struct { // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` + + metadataUploadPartOutput `json:"-" xml:"-"` +} + +type metadataUploadPartOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7859,8 +6444,6 @@ func (s UploadPartOutput) GoString() string { } type VersioningConfiguration struct { - _ struct{} `type:"structure"` - // Specifies whether MFA delete is enabled in the bucket versioning configuration. // This element is only returned if the bucket has been configured with MFA // delete. If the bucket has never been so configured, this element is not returned. @@ -7868,6 +6451,12 @@ type VersioningConfiguration struct { // The versioning state of the bucket. Status *string `type:"string" enum:"BucketVersioningStatus"` + + metadataVersioningConfiguration `json:"-" xml:"-"` +} + +type metadataVersioningConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7881,8 +6470,6 @@ func (s VersioningConfiguration) GoString() string { } type WebsiteConfiguration struct { - _ struct{} `type:"structure"` - ErrorDocument *ErrorDocument `type:"structure"` IndexDocument *IndexDocument `type:"structure"` @@ -7890,6 +6477,12 @@ type WebsiteConfiguration struct { RedirectAllRequestsTo *RedirectAllRequestsTo `type:"structure"` RoutingRules []*RoutingRule `locationNameList:"RoutingRule" type:"list"` + + metadataWebsiteConfiguration `json:"-" xml:"-"` +} + +type metadataWebsiteConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7902,48 +6495,6 @@ func (s WebsiteConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *WebsiteConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "WebsiteConfiguration"} - if s.ErrorDocument != nil { - if err := s.ErrorDocument.Validate(); err != nil { - invalidParams.AddNested("ErrorDocument", err.(request.ErrInvalidParams)) - } - } - if s.IndexDocument != nil { - if err := s.IndexDocument.Validate(); err != nil { - invalidParams.AddNested("IndexDocument", err.(request.ErrInvalidParams)) - } - } - if s.RedirectAllRequestsTo != nil { - if err := s.RedirectAllRequestsTo.Validate(); err != nil { - invalidParams.AddNested("RedirectAllRequestsTo", err.(request.ErrInvalidParams)) - } - } - if s.RoutingRules != nil { - for i, v := range s.RoutingRules { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RoutingRules", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -const ( - // @enum BucketAccelerateStatus - BucketAccelerateStatusEnabled = "Enabled" - // @enum BucketAccelerateStatus - BucketAccelerateStatusSuspended = "Suspended" -) - const ( // @enum BucketCannedACL BucketCannedACLPrivate = "private" @@ -8072,8 +6623,6 @@ const ( // @enum ObjectCannedACL ObjectCannedACLAuthenticatedRead = "authenticated-read" // @enum ObjectCannedACL - ObjectCannedACLAwsExecRead = "aws-exec-read" - // @enum ObjectCannedACL ObjectCannedACLBucketOwnerRead = "bucket-owner-read" // @enum ObjectCannedACL ObjectCannedACLBucketOwnerFullControl = "bucket-owner-full-control" @@ -8166,15 +6715,11 @@ const ( StorageClassStandard = "STANDARD" // @enum StorageClass StorageClassReducedRedundancy = "REDUCED_REDUNDANCY" - // @enum StorageClass - StorageClassStandardIa = "STANDARD_IA" ) const ( // @enum TransitionStorageClass TransitionStorageClassGlacier = "GLACIER" - // @enum TransitionStorageClass - TransitionStorageClassStandardIa = "STANDARD_IA" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location.go b/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location.go index c3a2702da..0feec1ce7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location.go @@ -30,13 +30,13 @@ func buildGetBucketLocation(r *request.Request) { } func populateLocationConstraint(r *request.Request) { - if r.ParamsFilled() && aws.StringValue(r.Config.Region) != "us-east-1" { + if r.ParamsFilled() && aws.StringValue(r.Service.Config.Region) != "us-east-1" { in := r.Params.(*CreateBucketInput) if in.CreateBucketConfiguration == nil { r.Params = awsutil.CopyOf(r.Params) in = r.Params.(*CreateBucketInput) in.CreateBucketConfiguration = &CreateBucketConfiguration{ - LocationConstraint: r.Config.Region, + LocationConstraint: r.Service.Config.Region, } } } diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location_test.go index 8ef61b0e5..5791be1ec 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location_test.go @@ -9,11 +9,12 @@ 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/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/s3" "github.com/stretchr/testify/assert" ) +var _ = unit.Imported var s3LocationTests = []struct { body string loc string @@ -24,7 +25,7 @@ var s3LocationTests = []struct { func TestGetBucketLocation(t *testing.T) { for _, test := range s3LocationTests { - s := s3.New(unit.Session) + s := s3.New(nil) s.Handlers.Send.Clear() s.Handlers.Send.PushBack(func(r *request.Request) { reader := ioutil.NopCloser(bytes.NewReader([]byte(test.body))) @@ -42,37 +43,34 @@ func TestGetBucketLocation(t *testing.T) { } func TestPopulateLocationConstraint(t *testing.T) { - s := s3.New(unit.Session) + s := s3.New(nil) in := &s3.CreateBucketInput{ Bucket: aws.String("bucket"), } req, _ := s.CreateBucketRequest(in) err := req.Build() assert.NoError(t, err) - v, _ := awsutil.ValuesAtPath(req.Params, "CreateBucketConfiguration.LocationConstraint") - assert.Equal(t, "mock-region", *(v[0].(*string))) + assert.Equal(t, "mock-region", awsutil.ValuesAtPath(req.Params, "CreateBucketConfiguration.LocationConstraint")[0]) assert.Nil(t, in.CreateBucketConfiguration) // don't modify original params } func TestNoPopulateLocationConstraintIfProvided(t *testing.T) { - s := s3.New(unit.Session) + s := s3.New(nil) req, _ := s.CreateBucketRequest(&s3.CreateBucketInput{ Bucket: aws.String("bucket"), CreateBucketConfiguration: &s3.CreateBucketConfiguration{}, }) err := req.Build() assert.NoError(t, err) - v, _ := awsutil.ValuesAtPath(req.Params, "CreateBucketConfiguration.LocationConstraint") - assert.Equal(t, 0, len(v)) + assert.Equal(t, 0, len(awsutil.ValuesAtPath(req.Params, "CreateBucketConfiguration.LocationConstraint"))) } func TestNoPopulateLocationConstraintIfClassic(t *testing.T) { - s := s3.New(unit.Session, &aws.Config{Region: aws.String("us-east-1")}) + s := s3.New(&aws.Config{Region: aws.String("us-east-1")}) req, _ := s.CreateBucketRequest(&s3.CreateBucketInput{ Bucket: aws.String("bucket"), }) err := req.Build() assert.NoError(t, err) - v, _ := awsutil.ValuesAtPath(req.Params, "CreateBucketConfiguration.LocationConstraint") - assert.Equal(t, 0, len(v)) + assert.Equal(t, 0, len(awsutil.ValuesAtPath(req.Params, "CreateBucketConfiguration.LocationConstraint"))) } diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go index 846334723..344e72d57 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go @@ -1,46 +1,35 @@ package s3 import ( - "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/service" ) func init() { - initClient = defaultInitClientFn - initRequest = defaultInitRequestFn -} - -func defaultInitClientFn(c *client.Client) { - // Support building custom endpoints based on config - c.Handlers.Build.PushFront(updateEndpointForS3Config) + initService = func(s *service.Service) { + // Support building custom host-style bucket endpoints + s.Handlers.Build.PushFront(updateHostWithBucket) - // Require SSL when using SSE keys - c.Handlers.Validate.PushBack(validateSSERequiresSSL) - c.Handlers.Build.PushBack(computeSSEKeys) + // Require SSL when using SSE keys + s.Handlers.Validate.PushBack(validateSSERequiresSSL) + s.Handlers.Build.PushBack(computeSSEKeys) - // S3 uses custom error unmarshaling logic - c.Handlers.UnmarshalError.Clear() - c.Handlers.UnmarshalError.PushBack(unmarshalError) -} - -func defaultInitRequestFn(r *request.Request) { - // Add reuest handlers for specific platforms. - // e.g. 100-continue support for PUT requests using Go 1.6 - platformRequestHandlers(r) + // S3 uses custom error unmarshaling logic + s.Handlers.UnmarshalError.Clear() + s.Handlers.UnmarshalError.PushBack(unmarshalError) + } - switch r.Operation.Name { - case opPutBucketCors, opPutBucketLifecycle, opPutBucketPolicy, - opPutBucketTagging, opDeleteObjects, opPutBucketLifecycleConfiguration, - opPutBucketReplication: - // These S3 operations require Content-MD5 to be set - r.Handlers.Build.PushBack(contentMD5) - case opGetBucketLocation: - // GetBucketLocation has custom parsing logic - r.Handlers.Unmarshal.PushFront(buildGetBucketLocation) - case opCreateBucket: - // Auto-populate LocationConstraint with current region - r.Handlers.Validate.PushFront(populateLocationConstraint) - case opCopyObject, opUploadPartCopy, opCompleteMultipartUpload: - r.Handlers.Unmarshal.PushFront(copyMultipartStatusOKUnmarhsalError) + initRequest = func(r *request.Request) { + switch r.Operation.Name { + case opPutBucketCors, opPutBucketLifecycle, opPutBucketPolicy, opPutBucketTagging, opDeleteObjects: + // These S3 operations require Content-MD5 to be set + r.Handlers.Build.PushBack(contentMD5) + case opGetBucketLocation: + // GetBucketLocation has custom parsing logic + r.Handlers.Unmarshal.PushFront(buildGetBucketLocation) + case opCreateBucket: + // Auto-populate LocationConstraint with current region + r.Handlers.Validate.PushFront(populateLocationConstraint) + } } } diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations_test.go index 20a62d7ac..462b5372a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations_test.go @@ -8,11 +8,13 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/s3" "github.com/stretchr/testify/assert" ) +var _ = unit.Imported + func assertMD5(t *testing.T, req *request.Request) { err := req.Build() assert.NoError(t, err) @@ -24,15 +26,12 @@ func assertMD5(t *testing.T, req *request.Request) { } func TestMD5InPutBucketCors(t *testing.T) { - svc := s3.New(unit.Session) + svc := s3.New(nil) req, _ := svc.PutBucketCorsRequest(&s3.PutBucketCorsInput{ Bucket: aws.String("bucketname"), CORSConfiguration: &s3.CORSConfiguration{ CORSRules: []*s3.CORSRule{ - { - AllowedMethods: []*string{aws.String("GET")}, - AllowedOrigins: []*string{aws.String("*")}, - }, + {AllowedMethods: []*string{aws.String("GET")}}, }, }, }) @@ -40,11 +39,11 @@ func TestMD5InPutBucketCors(t *testing.T) { } func TestMD5InPutBucketLifecycle(t *testing.T) { - svc := s3.New(unit.Session) + svc := s3.New(nil) req, _ := svc.PutBucketLifecycleRequest(&s3.PutBucketLifecycleInput{ Bucket: aws.String("bucketname"), LifecycleConfiguration: &s3.LifecycleConfiguration{ - Rules: []*s3.Rule{ + Rules: []*s3.LifecycleRule{ { ID: aws.String("ID"), Prefix: aws.String("Prefix"), @@ -57,7 +56,7 @@ func TestMD5InPutBucketLifecycle(t *testing.T) { } func TestMD5InPutBucketPolicy(t *testing.T) { - svc := s3.New(unit.Session) + svc := s3.New(nil) req, _ := svc.PutBucketPolicyRequest(&s3.PutBucketPolicyInput{ Bucket: aws.String("bucketname"), Policy: aws.String("{}"), @@ -66,7 +65,7 @@ func TestMD5InPutBucketPolicy(t *testing.T) { } func TestMD5InPutBucketTagging(t *testing.T) { - svc := s3.New(unit.Session) + svc := s3.New(nil) req, _ := svc.PutBucketTaggingRequest(&s3.PutBucketTaggingInput{ Bucket: aws.String("bucketname"), Tagging: &s3.Tagging{ @@ -79,7 +78,7 @@ func TestMD5InPutBucketTagging(t *testing.T) { } func TestMD5InDeleteObjects(t *testing.T) { - svc := s3.New(unit.Session) + svc := s3.New(nil) req, _ := svc.DeleteObjectsRequest(&s3.DeleteObjectsInput{ Bucket: aws.String("bucketname"), Delete: &s3.Delete{ @@ -90,16 +89,3 @@ func TestMD5InDeleteObjects(t *testing.T) { }) assertMD5(t, req) } - -func TestMD5InPutBucketLifecycleConfiguration(t *testing.T) { - svc := s3.New(unit.Session) - req, _ := svc.PutBucketLifecycleConfigurationRequest(&s3.PutBucketLifecycleConfigurationInput{ - Bucket: aws.String("bucketname"), - LifecycleConfiguration: &s3.BucketLifecycleConfiguration{ - Rules: []*s3.LifecycleRule{ - {Prefix: aws.String("prefix"), Status: aws.String(s3.ExpirationStatusEnabled)}, - }, - }, - }) - assertMD5(t, req) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go index 1f613f575..0bda116d4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleS3_AbortMultipartUpload() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.AbortMultipartUploadInput{ Bucket: aws.String("BucketName"), // Required @@ -38,7 +37,7 @@ func ExampleS3_AbortMultipartUpload() { } func ExampleS3_CompleteMultipartUpload() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.CompleteMultipartUploadInput{ Bucket: aws.String("BucketName"), // Required @@ -69,7 +68,7 @@ func ExampleS3_CompleteMultipartUpload() { } func ExampleS3_CopyObject() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.CopyObjectInput{ Bucket: aws.String("BucketName"), // Required @@ -121,7 +120,7 @@ func ExampleS3_CopyObject() { } func ExampleS3_CreateBucket() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.CreateBucketInput{ Bucket: aws.String("BucketName"), // Required @@ -149,7 +148,7 @@ func ExampleS3_CreateBucket() { } func ExampleS3_CreateMultipartUpload() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.CreateMultipartUploadInput{ Bucket: aws.String("BucketName"), // Required @@ -192,7 +191,7 @@ func ExampleS3_CreateMultipartUpload() { } func ExampleS3_DeleteBucket() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.DeleteBucketInput{ Bucket: aws.String("BucketName"), // Required @@ -211,7 +210,7 @@ func ExampleS3_DeleteBucket() { } func ExampleS3_DeleteBucketCors() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.DeleteBucketCorsInput{ Bucket: aws.String("BucketName"), // Required @@ -230,7 +229,7 @@ func ExampleS3_DeleteBucketCors() { } func ExampleS3_DeleteBucketLifecycle() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.DeleteBucketLifecycleInput{ Bucket: aws.String("BucketName"), // Required @@ -249,7 +248,7 @@ func ExampleS3_DeleteBucketLifecycle() { } func ExampleS3_DeleteBucketPolicy() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.DeleteBucketPolicyInput{ Bucket: aws.String("BucketName"), // Required @@ -268,7 +267,7 @@ func ExampleS3_DeleteBucketPolicy() { } func ExampleS3_DeleteBucketReplication() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.DeleteBucketReplicationInput{ Bucket: aws.String("BucketName"), // Required @@ -287,7 +286,7 @@ func ExampleS3_DeleteBucketReplication() { } func ExampleS3_DeleteBucketTagging() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.DeleteBucketTaggingInput{ Bucket: aws.String("BucketName"), // Required @@ -306,7 +305,7 @@ func ExampleS3_DeleteBucketTagging() { } func ExampleS3_DeleteBucketWebsite() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.DeleteBucketWebsiteInput{ Bucket: aws.String("BucketName"), // Required @@ -325,7 +324,7 @@ func ExampleS3_DeleteBucketWebsite() { } func ExampleS3_DeleteObject() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.DeleteObjectInput{ Bucket: aws.String("BucketName"), // Required @@ -348,7 +347,7 @@ func ExampleS3_DeleteObject() { } func ExampleS3_DeleteObjects() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.DeleteObjectsInput{ Bucket: aws.String("BucketName"), // Required @@ -378,27 +377,8 @@ func ExampleS3_DeleteObjects() { fmt.Println(resp) } -func ExampleS3_GetBucketAccelerateConfiguration() { - svc := s3.New(session.New()) - - params := &s3.GetBucketAccelerateConfigurationInput{ - Bucket: aws.String("BucketName"), // Required - } - resp, err := svc.GetBucketAccelerateConfiguration(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleS3_GetBucketAcl() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketAclInput{ Bucket: aws.String("BucketName"), // Required @@ -417,7 +397,7 @@ func ExampleS3_GetBucketAcl() { } func ExampleS3_GetBucketCors() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketCorsInput{ Bucket: aws.String("BucketName"), // Required @@ -436,7 +416,7 @@ func ExampleS3_GetBucketCors() { } func ExampleS3_GetBucketLifecycle() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketLifecycleInput{ Bucket: aws.String("BucketName"), // Required @@ -454,27 +434,8 @@ func ExampleS3_GetBucketLifecycle() { fmt.Println(resp) } -func ExampleS3_GetBucketLifecycleConfiguration() { - svc := s3.New(session.New()) - - params := &s3.GetBucketLifecycleConfigurationInput{ - Bucket: aws.String("BucketName"), // Required - } - resp, err := svc.GetBucketLifecycleConfiguration(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleS3_GetBucketLocation() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketLocationInput{ Bucket: aws.String("BucketName"), // Required @@ -493,7 +454,7 @@ func ExampleS3_GetBucketLocation() { } func ExampleS3_GetBucketLogging() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketLoggingInput{ Bucket: aws.String("BucketName"), // Required @@ -512,7 +473,7 @@ func ExampleS3_GetBucketLogging() { } func ExampleS3_GetBucketNotification() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketNotificationConfigurationRequest{ Bucket: aws.String("BucketName"), // Required @@ -531,7 +492,7 @@ func ExampleS3_GetBucketNotification() { } func ExampleS3_GetBucketNotificationConfiguration() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketNotificationConfigurationRequest{ Bucket: aws.String("BucketName"), // Required @@ -550,7 +511,7 @@ func ExampleS3_GetBucketNotificationConfiguration() { } func ExampleS3_GetBucketPolicy() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketPolicyInput{ Bucket: aws.String("BucketName"), // Required @@ -569,7 +530,7 @@ func ExampleS3_GetBucketPolicy() { } func ExampleS3_GetBucketReplication() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketReplicationInput{ Bucket: aws.String("BucketName"), // Required @@ -588,7 +549,7 @@ func ExampleS3_GetBucketReplication() { } func ExampleS3_GetBucketRequestPayment() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketRequestPaymentInput{ Bucket: aws.String("BucketName"), // Required @@ -607,7 +568,7 @@ func ExampleS3_GetBucketRequestPayment() { } func ExampleS3_GetBucketTagging() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketTaggingInput{ Bucket: aws.String("BucketName"), // Required @@ -626,7 +587,7 @@ func ExampleS3_GetBucketTagging() { } func ExampleS3_GetBucketVersioning() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketVersioningInput{ Bucket: aws.String("BucketName"), // Required @@ -645,7 +606,7 @@ func ExampleS3_GetBucketVersioning() { } func ExampleS3_GetBucketWebsite() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetBucketWebsiteInput{ Bucket: aws.String("BucketName"), // Required @@ -664,7 +625,7 @@ func ExampleS3_GetBucketWebsite() { } func ExampleS3_GetObject() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetObjectInput{ Bucket: aws.String("BucketName"), // Required @@ -700,7 +661,7 @@ func ExampleS3_GetObject() { } func ExampleS3_GetObjectAcl() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetObjectAclInput{ Bucket: aws.String("BucketName"), // Required @@ -722,7 +683,7 @@ func ExampleS3_GetObjectAcl() { } func ExampleS3_GetObjectTorrent() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.GetObjectTorrentInput{ Bucket: aws.String("BucketName"), // Required @@ -743,7 +704,7 @@ func ExampleS3_GetObjectTorrent() { } func ExampleS3_HeadBucket() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.HeadBucketInput{ Bucket: aws.String("BucketName"), // Required @@ -762,7 +723,7 @@ func ExampleS3_HeadBucket() { } func ExampleS3_HeadObject() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.HeadObjectInput{ Bucket: aws.String("BucketName"), // Required @@ -792,7 +753,7 @@ func ExampleS3_HeadObject() { } func ExampleS3_ListBuckets() { - svc := s3.New(session.New()) + svc := s3.New(nil) var params *s3.ListBucketsInput resp, err := svc.ListBuckets(params) @@ -809,7 +770,7 @@ func ExampleS3_ListBuckets() { } func ExampleS3_ListMultipartUploads() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.ListMultipartUploadsInput{ Bucket: aws.String("BucketName"), // Required @@ -834,7 +795,7 @@ func ExampleS3_ListMultipartUploads() { } func ExampleS3_ListObjectVersions() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.ListObjectVersionsInput{ Bucket: aws.String("BucketName"), // Required @@ -859,7 +820,7 @@ func ExampleS3_ListObjectVersions() { } func ExampleS3_ListObjects() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.ListObjectsInput{ Bucket: aws.String("BucketName"), // Required @@ -882,34 +843,8 @@ func ExampleS3_ListObjects() { fmt.Println(resp) } -func ExampleS3_ListObjectsV2() { - svc := s3.New(session.New()) - - params := &s3.ListObjectsV2Input{ - Bucket: aws.String("BucketName"), // Required - ContinuationToken: aws.String("Token"), - Delimiter: aws.String("Delimiter"), - EncodingType: aws.String("EncodingType"), - FetchOwner: aws.Bool(true), - MaxKeys: aws.Int64(1), - Prefix: aws.String("Prefix"), - StartAfter: aws.String("StartAfter"), - } - resp, err := svc.ListObjectsV2(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleS3_ListParts() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.ListPartsInput{ Bucket: aws.String("BucketName"), // Required @@ -932,30 +867,8 @@ func ExampleS3_ListParts() { fmt.Println(resp) } -func ExampleS3_PutBucketAccelerateConfiguration() { - svc := s3.New(session.New()) - - params := &s3.PutBucketAccelerateConfigurationInput{ - AccelerateConfiguration: &s3.AccelerateConfiguration{ // Required - Status: aws.String("BucketAccelerateStatus"), - }, - Bucket: aws.String("BucketName"), // Required - } - resp, err := svc.PutBucketAccelerateConfiguration(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleS3_PutBucketAcl() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketAclInput{ Bucket: aws.String("BucketName"), // Required @@ -999,23 +912,23 @@ func ExampleS3_PutBucketAcl() { } func ExampleS3_PutBucketCors() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketCorsInput{ Bucket: aws.String("BucketName"), // Required - CORSConfiguration: &s3.CORSConfiguration{ // Required - CORSRules: []*s3.CORSRule{ // Required + CORSConfiguration: &s3.CORSConfiguration{ + CORSRules: []*s3.CORSRule{ { // Required - AllowedMethods: []*string{ // Required - aws.String("AllowedMethod"), // Required + AllowedHeaders: []*string{ + aws.String("AllowedHeader"), // Required // More values... }, - AllowedOrigins: []*string{ // Required - aws.String("AllowedOrigin"), // Required + AllowedMethods: []*string{ + aws.String("AllowedMethod"), // Required // More values... }, - AllowedHeaders: []*string{ - aws.String("AllowedHeader"), // Required + AllowedOrigins: []*string{ + aws.String("AllowedOrigin"), // Required // More values... }, ExposeHeaders: []*string{ @@ -1042,22 +955,18 @@ func ExampleS3_PutBucketCors() { } func ExampleS3_PutBucketLifecycle() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketLifecycleInput{ Bucket: aws.String("BucketName"), // Required LifecycleConfiguration: &s3.LifecycleConfiguration{ - Rules: []*s3.Rule{ // Required + Rules: []*s3.LifecycleRule{ // Required { // Required Prefix: aws.String("Prefix"), // Required Status: aws.String("ExpirationStatus"), // Required - AbortIncompleteMultipartUpload: &s3.AbortIncompleteMultipartUpload{ - DaysAfterInitiation: aws.Int64(1), - }, Expiration: &s3.LifecycleExpiration{ Date: aws.Time(time.Now()), Days: aws.Int64(1), - ExpiredObjectDeleteMarker: aws.Bool(true), }, ID: aws.String("ID"), NoncurrentVersionExpiration: &s3.NoncurrentVersionExpiration{ @@ -1090,63 +999,8 @@ func ExampleS3_PutBucketLifecycle() { fmt.Println(resp) } -func ExampleS3_PutBucketLifecycleConfiguration() { - svc := s3.New(session.New()) - - params := &s3.PutBucketLifecycleConfigurationInput{ - Bucket: aws.String("BucketName"), // Required - LifecycleConfiguration: &s3.BucketLifecycleConfiguration{ - Rules: []*s3.LifecycleRule{ // Required - { // Required - Prefix: aws.String("Prefix"), // Required - Status: aws.String("ExpirationStatus"), // Required - AbortIncompleteMultipartUpload: &s3.AbortIncompleteMultipartUpload{ - DaysAfterInitiation: aws.Int64(1), - }, - Expiration: &s3.LifecycleExpiration{ - Date: aws.Time(time.Now()), - Days: aws.Int64(1), - ExpiredObjectDeleteMarker: aws.Bool(true), - }, - ID: aws.String("ID"), - NoncurrentVersionExpiration: &s3.NoncurrentVersionExpiration{ - NoncurrentDays: aws.Int64(1), - }, - NoncurrentVersionTransitions: []*s3.NoncurrentVersionTransition{ - { // Required - NoncurrentDays: aws.Int64(1), - StorageClass: aws.String("TransitionStorageClass"), - }, - // More values... - }, - Transitions: []*s3.Transition{ - { // Required - Date: aws.Time(time.Now()), - Days: aws.Int64(1), - StorageClass: aws.String("TransitionStorageClass"), - }, - // More values... - }, - }, - // More values... - }, - }, - } - resp, err := svc.PutBucketLifecycleConfiguration(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleS3_PutBucketLogging() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketLoggingInput{ Bucket: aws.String("BucketName"), // Required @@ -1184,7 +1038,7 @@ func ExampleS3_PutBucketLogging() { } func ExampleS3_PutBucketNotification() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketNotificationInput{ Bucket: aws.String("BucketName"), // Required @@ -1233,7 +1087,7 @@ func ExampleS3_PutBucketNotification() { } func ExampleS3_PutBucketNotificationConfiguration() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketNotificationConfigurationInput{ Bucket: aws.String("BucketName"), // Required @@ -1320,7 +1174,7 @@ func ExampleS3_PutBucketNotificationConfiguration() { } func ExampleS3_PutBucketPolicy() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketPolicyInput{ Bucket: aws.String("BucketName"), // Required @@ -1340,7 +1194,7 @@ func ExampleS3_PutBucketPolicy() { } func ExampleS3_PutBucketReplication() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketReplicationInput{ Bucket: aws.String("BucketName"), // Required @@ -1349,8 +1203,7 @@ func ExampleS3_PutBucketReplication() { Rules: []*s3.ReplicationRule{ // Required { // Required Destination: &s3.Destination{ // Required - Bucket: aws.String("BucketName"), // Required - StorageClass: aws.String("StorageClass"), + Bucket: aws.String("BucketName"), // Required }, Prefix: aws.String("Prefix"), // Required Status: aws.String("ReplicationRuleStatus"), // Required @@ -1374,7 +1227,7 @@ func ExampleS3_PutBucketReplication() { } func ExampleS3_PutBucketRequestPayment() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketRequestPaymentInput{ Bucket: aws.String("BucketName"), // Required @@ -1396,7 +1249,7 @@ func ExampleS3_PutBucketRequestPayment() { } func ExampleS3_PutBucketTagging() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketTaggingInput{ Bucket: aws.String("BucketName"), // Required @@ -1424,7 +1277,7 @@ func ExampleS3_PutBucketTagging() { } func ExampleS3_PutBucketVersioning() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketVersioningInput{ Bucket: aws.String("BucketName"), // Required @@ -1448,7 +1301,7 @@ func ExampleS3_PutBucketVersioning() { } func ExampleS3_PutBucketWebsite() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutBucketWebsiteInput{ Bucket: aws.String("BucketName"), // Required @@ -1495,7 +1348,7 @@ func ExampleS3_PutBucketWebsite() { } func ExampleS3_PutObject() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutObjectInput{ Bucket: aws.String("BucketName"), // Required @@ -1540,7 +1393,7 @@ func ExampleS3_PutObject() { } func ExampleS3_PutObjectAcl() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.PutObjectAclInput{ Bucket: aws.String("BucketName"), // Required @@ -1571,7 +1424,6 @@ func ExampleS3_PutObjectAcl() { GrantWrite: aws.String("GrantWrite"), GrantWriteACP: aws.String("GrantWriteACP"), RequestPayer: aws.String("RequestPayer"), - VersionId: aws.String("ObjectVersionId"), } resp, err := svc.PutObjectAcl(params) @@ -1587,7 +1439,7 @@ func ExampleS3_PutObjectAcl() { } func ExampleS3_RestoreObject() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.RestoreObjectInput{ Bucket: aws.String("BucketName"), // Required @@ -1612,7 +1464,7 @@ func ExampleS3_RestoreObject() { } func ExampleS3_UploadPart() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.UploadPartInput{ Bucket: aws.String("BucketName"), // Required @@ -1640,7 +1492,7 @@ func ExampleS3_UploadPart() { } func ExampleS3_UploadPartCopy() { - svc := s3.New(session.New()) + svc := s3.New(nil) params := &s3.UploadPartCopyInput{ Bucket: aws.String("BucketName"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go index 517292903..82ced88b3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket.go @@ -1,124 +1,14 @@ package s3 import ( - "fmt" - "net/url" "regexp" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" ) -// an operationBlacklist is a list of operation names that should a -// request handler should not be executed with. -type operationBlacklist []string - -// Continue will return true of the Request's operation name is not -// in the blacklist. False otherwise. -func (b operationBlacklist) Continue(r *request.Request) bool { - for i := 0; i < len(b); i++ { - if b[i] == r.Operation.Name { - return false - } - } - return true -} - -var accelerateOpBlacklist = operationBlacklist{ - opListBuckets, opCreateBucket, opDeleteBucket, -} - -// Request handler to automatically add the bucket name to the endpoint domain -// if possible. This style of bucket is valid for all bucket names which are -// DNS compatible and do not contain "." -func updateEndpointForS3Config(r *request.Request) { - forceHostStyle := aws.BoolValue(r.Config.S3ForcePathStyle) - accelerate := aws.BoolValue(r.Config.S3UseAccelerate) - - if accelerate && accelerateOpBlacklist.Continue(r) { - if forceHostStyle { - if r.Config.Logger != nil { - r.Config.Logger.Log("ERROR: aws.Config.S3UseAccelerate is not compatible with aws.Config.S3ForcePathStyle, ignoring S3ForcePathStyle.") - } - } - updateEndpointForAccelerate(r) - } else if !forceHostStyle && r.Operation.Name != opGetBucketLocation { - updateEndpointForHostStyle(r) - } -} - -func updateEndpointForHostStyle(r *request.Request) { - bucket, ok := bucketNameFromReqParams(r.Params) - if !ok { - // Ignore operation requests if the bucketname was not provided - // if this is an input validation error the validation handler - // will report it. - return - } - - if !hostCompatibleBucketName(r.HTTPRequest.URL, bucket) { - // bucket name must be valid to put into the host - return - } - - moveBucketToHost(r.HTTPRequest.URL, bucket) -} - -func updateEndpointForAccelerate(r *request.Request) { - bucket, ok := bucketNameFromReqParams(r.Params) - if !ok { - // Ignore operation requests if the bucketname was not provided - // if this is an input validation error the validation handler - // will report it. - return - } - - if !hostCompatibleBucketName(r.HTTPRequest.URL, bucket) { - r.Error = awserr.New("InvalidParameterException", - fmt.Sprintf("bucket name %s is not compatibile with S3 Accelerate", bucket), - nil) - return - } - - // Change endpoint from s3(-[a-z0-1-])?.amazonaws.com to s3-accelerate.amazonaws.com - r.HTTPRequest.URL.Host = replaceHostRegion(r.HTTPRequest.URL.Host, "accelerate") - moveBucketToHost(r.HTTPRequest.URL, bucket) -} - -// Attempts to retrieve the bucket name from the request input parameters. -// If no bucket is found, or the field is empty "", false will be returned. -func bucketNameFromReqParams(params interface{}) (string, bool) { - b, _ := awsutil.ValuesAtPath(params, "Bucket") - if len(b) == 0 { - return "", false - } - - if bucket, ok := b[0].(*string); ok { - if bucketStr := aws.StringValue(bucket); bucketStr != "" { - return bucketStr, true - } - } - - return "", false -} - -// hostCompatibleBucketName returns true if the request should -// put the bucket in the host. This is false if S3ForcePathStyle is -// explicitly set or if the bucket is not DNS compatible. -func hostCompatibleBucketName(u *url.URL, bucket string) bool { - // Bucket might be DNS compatible but dots in the hostname will fail - // certificate validation, so do not use host-style. - if u.Scheme == "https" && strings.Contains(bucket, ".") { - return false - } - - // if the bucket is DNS compatible - return dnsCompatibleBucketName(bucket) -} - var reDomain = regexp.MustCompile(`^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$`) var reIPAddress = regexp.MustCompile(`^(\d+\.){3}\d+$`) @@ -130,36 +20,35 @@ func dnsCompatibleBucketName(bucket string) bool { !strings.Contains(bucket, "..") } -// moveBucketToHost moves the bucket name from the URI path to URL host. -func moveBucketToHost(u *url.URL, bucket string) { - u.Host = bucket + "." + u.Host - u.Path = strings.Replace(u.Path, "/{Bucket}", "", -1) - if u.Path == "" { - u.Path = "/" +// hostStyleBucketName returns true if the request should put the bucket in +// the host. This is false if S3ForcePathStyle is explicitly set or if the +// bucket is not DNS compatible. +func hostStyleBucketName(r *request.Request, bucket string) bool { + if aws.BoolValue(r.Service.Config.S3ForcePathStyle) { + return false } -} -const s3HostPrefix = "s3" - -// replaceHostRegion replaces the S3 region string in the host with the -// value provided. If v is empty the host prefix returned will be s3. -func replaceHostRegion(host, v string) string { - if !strings.HasPrefix(host, s3HostPrefix) { - return host + // Bucket might be DNS compatible but dots in the hostname will fail + // certificate validation, so do not use host-style. + if r.HTTPRequest.URL.Scheme == "https" && strings.Contains(bucket, ".") { + return false } - suffix := host[len(s3HostPrefix):] - for i := len(s3HostPrefix); i < len(host); i++ { - if host[i] == '.' { - // Trim until '.' leave the it in place. - suffix = host[i:] - break - } - } + // Use host-style if the bucket is DNS compatible + return dnsCompatibleBucketName(bucket) +} - if len(v) == 0 { - return fmt.Sprintf("s3%s", suffix) +func updateHostWithBucket(r *request.Request) { + b := awsutil.ValuesAtPath(r.Params, "Bucket") + if len(b) == 0 { + return } - return fmt.Sprintf("s3-%s%s", v, suffix) + if bucket := b[0].(string); bucket != "" && hostStyleBucketName(r, bucket) { + r.HTTPRequest.URL.Host = bucket + "." + r.HTTPRequest.URL.Host + r.HTTPRequest.URL.Path = strings.Replace(r.HTTPRequest.URL.Path, "/{Bucket}", "", -1) + if r.HTTPRequest.URL.Path == "" { + r.HTTPRequest.URL.Path = "/" + } + } } diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket_test.go index faf0a9edc..c4347d44b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/host_style_bucket_test.go @@ -1,103 +1,61 @@ package s3_test import ( - "net/url" "testing" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/s3" + "github.com/stretchr/testify/assert" ) type s3BucketTest struct { - bucket string - url string - errCode string + bucket string + url string } var ( + _ = unit.Imported + sslTests = []s3BucketTest{ - {"abc", "https://abc.s3-mock-region.amazonaws.com/", ""}, - {"a$b$c", "https://s3-mock-region.amazonaws.com/a%24b%24c", ""}, - {"a.b.c", "https://s3-mock-region.amazonaws.com/a.b.c", ""}, - {"a..bc", "https://s3-mock-region.amazonaws.com/a..bc", ""}, + {"abc", "https://abc.s3.mock-region.amazonaws.com/"}, + {"a$b$c", "https://s3.mock-region.amazonaws.com/a%24b%24c"}, + {"a.b.c", "https://s3.mock-region.amazonaws.com/a.b.c"}, + {"a..bc", "https://s3.mock-region.amazonaws.com/a..bc"}, } nosslTests = []s3BucketTest{ - {"a.b.c", "http://a.b.c.s3-mock-region.amazonaws.com/", ""}, - {"a..bc", "http://s3-mock-region.amazonaws.com/a..bc", ""}, + {"a.b.c", "http://a.b.c.s3.mock-region.amazonaws.com/"}, + {"a..bc", "http://s3.mock-region.amazonaws.com/a..bc"}, } forcepathTests = []s3BucketTest{ - {"abc", "https://s3-mock-region.amazonaws.com/abc", ""}, - {"a$b$c", "https://s3-mock-region.amazonaws.com/a%24b%24c", ""}, - {"a.b.c", "https://s3-mock-region.amazonaws.com/a.b.c", ""}, - {"a..bc", "https://s3-mock-region.amazonaws.com/a..bc", ""}, - } - - accelerateTests = []s3BucketTest{ - {"abc", "https://abc.s3-accelerate.amazonaws.com/", ""}, - {"a.b.c", "https://s3-mock-region.amazonaws.com/%7BBucket%7D", "InvalidParameterException"}, - {"a$b$c", "https://s3-mock-region.amazonaws.com/%7BBucket%7D", "InvalidParameterException"}, - } - - accelerateNoSSLTests = []s3BucketTest{ - {"abc", "http://abc.s3-accelerate.amazonaws.com/", ""}, - {"a.b.c", "http://a.b.c.s3-accelerate.amazonaws.com/", ""}, - {"a$b$c", "http://s3-mock-region.amazonaws.com/%7BBucket%7D", "InvalidParameterException"}, + {"abc", "https://s3.mock-region.amazonaws.com/abc"}, + {"a$b$c", "https://s3.mock-region.amazonaws.com/a%24b%24c"}, + {"a.b.c", "https://s3.mock-region.amazonaws.com/a.b.c"}, + {"a..bc", "https://s3.mock-region.amazonaws.com/a..bc"}, } ) func runTests(t *testing.T, svc *s3.S3, tests []s3BucketTest) { - for i, test := range tests { + for _, test := range tests { req, _ := svc.ListObjectsRequest(&s3.ListObjectsInput{Bucket: &test.bucket}) req.Build() - assert.Equal(t, test.url, req.HTTPRequest.URL.String(), "test case %d", i) - if test.errCode != "" { - require.Error(t, req.Error, "test case %d", i) - assert.Contains(t, req.Error.(awserr.Error).Code(), test.errCode, "test case %d", i) - } + assert.Equal(t, test.url, req.HTTPRequest.URL.String()) } } -func TestAccelerateBucketBuild(t *testing.T) { - s := s3.New(unit.Session, &aws.Config{S3UseAccelerate: aws.Bool(true)}) - runTests(t, s, accelerateTests) -} - -func TestAccelerateNoSSLBucketBuild(t *testing.T) { - s := s3.New(unit.Session, &aws.Config{S3UseAccelerate: aws.Bool(true), DisableSSL: aws.Bool(true)}) - runTests(t, s, accelerateNoSSLTests) -} - func TestHostStyleBucketBuild(t *testing.T) { - s := s3.New(unit.Session) + s := s3.New(nil) runTests(t, s, sslTests) } func TestHostStyleBucketBuildNoSSL(t *testing.T) { - s := s3.New(unit.Session, &aws.Config{DisableSSL: aws.Bool(true)}) + s := s3.New(&aws.Config{DisableSSL: aws.Bool(true)}) runTests(t, s, nosslTests) } func TestPathStyleBucketBuild(t *testing.T) { - s := s3.New(unit.Session, &aws.Config{S3ForcePathStyle: aws.Bool(true)}) + s := s3.New(&aws.Config{S3ForcePathStyle: aws.Bool(true)}) runTests(t, s, forcepathTests) } - -func TestHostStyleBucketGetBucketLocation(t *testing.T) { - s := s3.New(unit.Session) - req, _ := s.GetBucketLocationRequest(&s3.GetBucketLocationInput{ - Bucket: aws.String("bucket"), - }) - - req.Build() - require.NoError(t, req.Error) - u, _ := url.Parse(req.HTTPRequest.URL.String()) - assert.NotContains(t, u.Host, "bucket") - assert.Contains(t, u.Path, "bucket") -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go b/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go deleted file mode 100644 index 8e6f3307d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go +++ /dev/null @@ -1,8 +0,0 @@ -// +build !go1.6 - -package s3 - -import "github.com/aws/aws-sdk-go/aws/request" - -func platformRequestHandlers(r *request.Request) { -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.go b/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.go deleted file mode 100644 index 14d05f7b7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.go +++ /dev/null @@ -1,28 +0,0 @@ -// +build go1.6 - -package s3 - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/request" -) - -func platformRequestHandlers(r *request.Request) { - if r.Operation.HTTPMethod == "PUT" { - // 100-Continue should only be used on put requests. - r.Handlers.Sign.PushBack(add100Continue) - } -} - -func add100Continue(r *request.Request) { - if aws.BoolValue(r.Config.S3Disable100Continue) { - return - } - if r.HTTPRequest.ContentLength < 1024*1024*2 { - // Ignore requests smaller than 2MB. This helps prevent delaying - // requests unnecessarily. - return - } - - r.HTTPRequest.Header.Set("Expect", "100-Continue") -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6_test.go deleted file mode 100644 index b119ce8bb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6_test.go +++ /dev/null @@ -1,68 +0,0 @@ -// +build go1.6 - -package s3_test - -import ( - "bytes" - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/unit" - "github.com/aws/aws-sdk-go/service/s3" - "github.com/stretchr/testify/assert" -) - -func TestAdd100Continue_Added(t *testing.T) { - svc := s3.New(unit.Session) - r, _ := svc.PutObjectRequest(&s3.PutObjectInput{ - Bucket: aws.String("bucket"), - Key: aws.String("dest"), - Body: bytes.NewReader(make([]byte, 1024*1024*5)), - }) - - err := r.Sign() - - assert.NoError(t, err) - assert.Equal(t, "100-Continue", r.HTTPRequest.Header.Get("Expect")) -} - -func TestAdd100Continue_SkipDisabled(t *testing.T) { - svc := s3.New(unit.Session, aws.NewConfig().WithS3Disable100Continue(true)) - r, _ := svc.PutObjectRequest(&s3.PutObjectInput{ - Bucket: aws.String("bucket"), - Key: aws.String("dest"), - Body: bytes.NewReader(make([]byte, 1024*1024*5)), - }) - - err := r.Sign() - - assert.NoError(t, err) - assert.Empty(t, r.HTTPRequest.Header.Get("Expect")) -} - -func TestAdd100Continue_SkipNonPUT(t *testing.T) { - svc := s3.New(unit.Session) - r, _ := svc.GetObjectRequest(&s3.GetObjectInput{ - Bucket: aws.String("bucket"), - Key: aws.String("dest"), - }) - - err := r.Sign() - - assert.NoError(t, err) - assert.Empty(t, r.HTTPRequest.Header.Get("Expect")) -} - -func TestAdd100Continue_SkipTooSmall(t *testing.T) { - svc := s3.New(unit.Session) - r, _ := svc.PutObjectRequest(&s3.PutObjectInput{ - Bucket: aws.String("bucket"), - Key: aws.String("dest"), - Body: bytes.NewReader(make([]byte, 1024*1024*1)), - }) - - err := r.Sign() - - assert.NoError(t, err) - assert.Empty(t, r.HTTPRequest.Header.Get("Expect")) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go index 437f13103..3904ad79c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface.go @@ -66,10 +66,6 @@ type S3API interface { DeleteObjects(*s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error) - GetBucketAccelerateConfigurationRequest(*s3.GetBucketAccelerateConfigurationInput) (*request.Request, *s3.GetBucketAccelerateConfigurationOutput) - - GetBucketAccelerateConfiguration(*s3.GetBucketAccelerateConfigurationInput) (*s3.GetBucketAccelerateConfigurationOutput, error) - GetBucketAclRequest(*s3.GetBucketAclInput) (*request.Request, *s3.GetBucketAclOutput) GetBucketAcl(*s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error) @@ -82,10 +78,6 @@ type S3API interface { GetBucketLifecycle(*s3.GetBucketLifecycleInput) (*s3.GetBucketLifecycleOutput, error) - GetBucketLifecycleConfigurationRequest(*s3.GetBucketLifecycleConfigurationInput) (*request.Request, *s3.GetBucketLifecycleConfigurationOutput) - - GetBucketLifecycleConfiguration(*s3.GetBucketLifecycleConfigurationInput) (*s3.GetBucketLifecycleConfigurationOutput, error) - GetBucketLocationRequest(*s3.GetBucketLocationInput) (*request.Request, *s3.GetBucketLocationOutput) GetBucketLocation(*s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error) @@ -168,20 +160,12 @@ type S3API interface { ListObjectsPages(*s3.ListObjectsInput, func(*s3.ListObjectsOutput, bool) bool) error - ListObjectsV2Request(*s3.ListObjectsV2Input) (*request.Request, *s3.ListObjectsV2Output) - - ListObjectsV2(*s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error) - ListPartsRequest(*s3.ListPartsInput) (*request.Request, *s3.ListPartsOutput) ListParts(*s3.ListPartsInput) (*s3.ListPartsOutput, error) ListPartsPages(*s3.ListPartsInput, func(*s3.ListPartsOutput, bool) bool) error - PutBucketAccelerateConfigurationRequest(*s3.PutBucketAccelerateConfigurationInput) (*request.Request, *s3.PutBucketAccelerateConfigurationOutput) - - PutBucketAccelerateConfiguration(*s3.PutBucketAccelerateConfigurationInput) (*s3.PutBucketAccelerateConfigurationOutput, error) - PutBucketAclRequest(*s3.PutBucketAclInput) (*request.Request, *s3.PutBucketAclOutput) PutBucketAcl(*s3.PutBucketAclInput) (*s3.PutBucketAclOutput, error) @@ -194,10 +178,6 @@ type S3API interface { PutBucketLifecycle(*s3.PutBucketLifecycleInput) (*s3.PutBucketLifecycleOutput, error) - PutBucketLifecycleConfigurationRequest(*s3.PutBucketLifecycleConfigurationInput) (*request.Request, *s3.PutBucketLifecycleConfigurationOutput) - - PutBucketLifecycleConfiguration(*s3.PutBucketLifecycleConfigurationInput) (*s3.PutBucketLifecycleConfigurationOutput, error) - PutBucketLoggingRequest(*s3.PutBucketLoggingInput) (*request.Request, *s3.PutBucketLoggingOutput) PutBucketLogging(*s3.PutBucketLoggingInput) (*s3.PutBucketLoggingOutput, error) @@ -254,5 +234,3 @@ type S3API interface { UploadPartCopy(*s3.UploadPartCopyInput) (*s3.UploadPartCopyOutput, error) } - -var _ S3API = (*s3.S3)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface_test.go new file mode 100644 index 000000000..cd672155a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package s3iface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/s3" + "github.com/aws/aws-sdk-go/service/s3/s3iface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*s3iface.S3API)(nil), s3.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/doc.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/doc.go deleted file mode 100644 index 229c0d63b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/doc.go +++ /dev/null @@ -1,3 +0,0 @@ -// Package s3manager provides utilities to upload and download objects from -// S3 concurrently. Helpful for when working with large objects. -package s3manager diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go index 6c123fc63..1711791e9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go @@ -3,130 +3,77 @@ package s3manager import ( "fmt" "io" - "net/http" "strconv" "strings" "sync" + "time" - "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/s3" - "github.com/aws/aws-sdk-go/service/s3/s3iface" ) -// DefaultDownloadPartSize is the default range of bytes to get at a time when -// using Download(). -const DefaultDownloadPartSize = 1024 * 1024 * 5 +// The default range of bytes to get at a time when using Download(). +var DefaultDownloadPartSize int64 = 1024 * 1024 * 5 -// DefaultDownloadConcurrency is the default number of goroutines to spin up -// when using Download(). -const DefaultDownloadConcurrency = 5 +// The default number of goroutines to spin up when using Download(). +var DefaultDownloadConcurrency = 5 -// The Downloader structure that calls Download(). It is safe to call Download() -// on this structure for multiple objects and across concurrent goroutines. -// Mutating the Downloader's properties is not safe to be done concurrently. -type Downloader struct { +// The default set of options used when opts is nil in Download(). +var DefaultDownloadOptions = &DownloadOptions{ + PartSize: DefaultDownloadPartSize, + Concurrency: DefaultDownloadConcurrency, +} + +// DownloadOptions keeps tracks of extra options to pass to an Download() call. +type DownloadOptions struct { // The buffer size (in bytes) to use when buffering data into chunks and // sending them as parts to S3. The minimum allowed part size is 5MB, and // if this value is set to zero, the DefaultPartSize value will be used. PartSize int64 // The number of goroutines to spin up in parallel when sending parts. - // If this is set to zero, the DefaultDownloadConcurrency value will be used. + // If this is set to zero, the DefaultConcurrency value will be used. Concurrency int - // An S3 client to use when performing downloads. - S3 s3iface.S3API + // An S3 client to use when performing downloads. Leave this as nil to use + // a default client. + S3 *s3.S3 } -// NewDownloader creates a new Downloader instance to downloads objects from -// S3 in concurrent chunks. Pass in additional functional options to customize -// the downloader behavior. Requires a client.ConfigProvider in order to create -// a S3 service client. The session.Session satisfies the client.ConfigProvider -// interface. -// -// Example: -// // The session the S3 Downloader will use -// sess := session.New() -// -// // Create a downloader with the session and default options -// downloader := s3manager.NewDownloader(sess) -// -// // Create a downloader with the session and custom options -// downloader := s3manager.NewDownloader(sess, func(d *s3manager.Uploader) { -// d.PartSize = 64 * 1024 * 1024 // 64MB per part -// }) -func NewDownloader(c client.ConfigProvider, options ...func(*Downloader)) *Downloader { - d := &Downloader{ - S3: s3.New(c), - PartSize: DefaultDownloadPartSize, - Concurrency: DefaultDownloadConcurrency, - } - for _, option := range options { - option(d) +// NewDownloader creates a new Downloader structure that downloads an object +// from S3 in concurrent chunks. Pass in an optional DownloadOptions struct +// to customize the downloader behavior. +func NewDownloader(opts *DownloadOptions) *Downloader { + if opts == nil { + opts = DefaultDownloadOptions } - - return d + return &Downloader{opts: opts} } -// NewDownloaderWithClient creates a new Downloader instance to downloads -// objects from S3 in concurrent chunks. Pass in additional functional -// options to customize the downloader behavior. Requires a S3 service client -// to make S3 API calls. -// -// Example: -// // The S3 client the S3 Downloader will use -// s3Svc := s3.new(session.New()) -// -// // Create a downloader with the s3 client and default options -// downloader := s3manager.NewDownloaderWithClient(s3Svc) -// -// // Create a downloader with the s3 client and custom options -// downloader := s3manager.NewDownloaderWithClient(s3Svc, func(d *s3manager.Uploader) { -// d.PartSize = 64 * 1024 * 1024 // 64MB per part -// }) -func NewDownloaderWithClient(svc s3iface.S3API, options ...func(*Downloader)) *Downloader { - d := &Downloader{ - S3: svc, - PartSize: DefaultDownloadPartSize, - Concurrency: DefaultDownloadConcurrency, - } - for _, option := range options { - option(d) - } - - return d +// The Downloader structure that calls Download(). It is safe to call Download() +// on this structure for multiple objects and across concurrent goroutines. +type Downloader struct { + opts *DownloadOptions } // Download downloads an object in S3 and writes the payload into w using // concurrent GET requests. // -// Additional functional options can be provided to configure the individual -// upload. These options are copies of the Uploader instance Upload is called from. -// Modifying the options will not impact the original Uploader instance. -// -// It is safe to call this method concurrently across goroutines. +// It is safe to call this method for multiple objects and across concurrent +// goroutines. // // The w io.WriterAt can be satisfied by an os.File to do multipart concurrent // downloads, or in memory []byte wrapper using aws.WriteAtBuffer. -func (d Downloader) Download(w io.WriterAt, input *s3.GetObjectInput, options ...func(*Downloader)) (n int64, err error) { - impl := downloader{w: w, in: input, ctx: d} - - for _, option := range options { - option(&impl.ctx) - } - +func (d *Downloader) Download(w io.WriterAt, input *s3.GetObjectInput) (n int64, err error) { + impl := downloader{w: w, in: input, opts: *d.opts} return impl.download() } // downloader is the implementation structure used internally by Downloader. type downloader struct { - ctx Downloader - - in *s3.GetObjectInput - w io.WriterAt + opts DownloadOptions + in *s3.GetObjectInput + w io.WriterAt wg sync.WaitGroup m sync.Mutex @@ -141,12 +88,16 @@ type downloader struct { func (d *downloader) init() { d.totalBytes = -1 - if d.ctx.Concurrency == 0 { - d.ctx.Concurrency = DefaultDownloadConcurrency + if d.opts.Concurrency == 0 { + d.opts.Concurrency = DefaultDownloadConcurrency } - if d.ctx.PartSize == 0 { - d.ctx.PartSize = DefaultDownloadPartSize + if d.opts.PartSize == 0 { + d.opts.PartSize = DefaultDownloadPartSize + } + + if d.opts.S3 == nil { + d.opts.S3 = s3.New(nil) } } @@ -155,49 +106,40 @@ func (d *downloader) init() { func (d *downloader) download() (n int64, err error) { d.init() - // Spin off first worker to check additional header information - d.getChunk() - - if total := d.getTotalBytes(); total >= 0 { - // Spin up workers - ch := make(chan dlchunk, d.ctx.Concurrency) - - for i := 0; i < d.ctx.Concurrency; i++ { - d.wg.Add(1) - go d.downloadPart(ch) - } + // Spin up workers + ch := make(chan dlchunk, d.opts.Concurrency) + for i := 0; i < d.opts.Concurrency; i++ { + d.wg.Add(1) + go d.downloadPart(ch) + } - // Assign work - for d.getErr() == nil { - if d.pos >= total { + // Assign work + for d.geterr() == nil { + if d.pos != 0 { + // This is not the first chunk, let's wait until we know the total + // size of the payload so we can see if we have read the entire + // object. + total := d.getTotalBytes() + + if total < 0 { + // Total has not yet been set, so sleep and loop around while + // waiting for our first worker to resolve this value. + time.Sleep(10 * time.Millisecond) + continue + } else if d.pos >= total { break // We're finished queueing chunks } - - // Queue the next range of bytes to read. - ch <- dlchunk{w: d.w, start: d.pos, size: d.ctx.PartSize} - d.pos += d.ctx.PartSize } - // Wait for completion - close(ch) - d.wg.Wait() - } else { - // Checking if we read anything new - for d.err == nil { - d.getChunk() - } - - // We expect a 416 error letting us know we are done downloading the - // total bytes. Since we do not know the content's length, this will - // keep grabbing chunks of data until the range of bytes specified in - // the request is out of range of the content. Once, this happens, a - // 416 should occur. - e, ok := d.err.(awserr.RequestFailure) - if ok && e.StatusCode() == http.StatusRequestedRangeNotSatisfiable { - d.err = nil - } + // Queue the next range of bytes to read. + ch <- dlchunk{w: d.w, start: d.pos, size: d.opts.PartSize} + d.pos += d.opts.PartSize } + // Wait for completion + close(ch) + d.wg.Wait() + // Return error return d.written, d.err } @@ -209,51 +151,37 @@ func (d *downloader) download() (n int64, err error) { // of bytes to be read so that the worker manager knows when it is finished. func (d *downloader) downloadPart(ch chan dlchunk) { defer d.wg.Done() + for { chunk, ok := <-ch + if !ok { break } - d.downloadChunk(chunk) - } -} -// getChunk grabs a chunk of data from the body. -// Not thread safe. Should only used when grabbing data on a single thread. -func (d *downloader) getChunk() { - chunk := dlchunk{w: d.w, start: d.pos, size: d.ctx.PartSize} - d.pos += d.ctx.PartSize - d.downloadChunk(chunk) -} + if d.geterr() == nil { + // Get the next byte range of data + in := &s3.GetObjectInput{} + awsutil.Copy(in, d.in) + rng := fmt.Sprintf("bytes=%d-%d", + chunk.start, chunk.start+chunk.size-1) + in.Range = &rng -// downloadChunk downloads the chunk froom s3 -func (d *downloader) downloadChunk(chunk dlchunk) { - if d.getErr() != nil { - return - } - // Get the next byte range of data - in := &s3.GetObjectInput{} - awsutil.Copy(in, d.in) - rng := fmt.Sprintf("bytes=%d-%d", - chunk.start, chunk.start+chunk.size-1) - in.Range = &rng - - req, resp := d.ctx.S3.GetObjectRequest(in) - req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("S3Manager")) - err := req.Send() - - if err != nil { - d.setErr(err) - } else { - d.setTotalBytes(resp) // Set total if not yet set. + resp, err := d.opts.S3.GetObject(in) + if err != nil { + d.seterr(err) + } else { + d.setTotalBytes(resp) // Set total if not yet set. - n, err := io.Copy(&chunk, resp.Body) - resp.Body.Close() + n, err := io.Copy(&chunk, resp.Body) + resp.Body.Close() - if err != nil { - d.setErr(err) + if err != nil { + d.seterr(err) + } + d.incrwritten(n) + } } - d.incrWritten(n) } } @@ -265,11 +193,7 @@ func (d *downloader) getTotalBytes() int64 { return d.totalBytes } -// setTotalBytes is a thread-safe setter for setting the total byte status. -// Will extract the object's total bytes from the Content-Range if the file -// will be chunked, or Content-Length. Content-Length is used when the response -// does not include a Content-Range. Meaning the object was not chunked. This -// occurs when the full file fits within the PartSize directive. +// getTotalBytes is a thread-safe setter for setting the total byte status. func (d *downloader) setTotalBytes(resp *s3.GetObjectOutput) { d.m.Lock() defer d.m.Unlock() @@ -278,51 +202,33 @@ func (d *downloader) setTotalBytes(resp *s3.GetObjectOutput) { return } - if resp.ContentRange == nil { - // ContentRange is nil when the full file contents is provied, and - // is not chunked. Use ContentLength instead. - if resp.ContentLength != nil { - d.totalBytes = *resp.ContentLength - return - } - } else { - parts := strings.Split(*resp.ContentRange, "/") - - total := int64(-1) - var err error - // Checking for whether or not a numbered total exists - // If one does not exist, we will assume the total to be -1, undefined, - // and sequentially download each chunk until hitting a 416 error - totalStr := parts[len(parts)-1] - if totalStr != "*" { - total, err = strconv.ParseInt(totalStr, 10, 64) - if err != nil { - d.err = err - return - } - } - - d.totalBytes = total + parts := strings.Split(*resp.ContentRange, "/") + total, err := strconv.ParseInt(parts[len(parts)-1], 10, 64) + if err != nil { + d.err = err + return } + + d.totalBytes = total } -func (d *downloader) incrWritten(n int64) { +func (d *downloader) incrwritten(n int64) { d.m.Lock() defer d.m.Unlock() d.written += n } -// getErr is a thread-safe getter for the error object -func (d *downloader) getErr() error { +// geterr is a thread-safe getter for the error object +func (d *downloader) geterr() error { d.m.Lock() defer d.m.Unlock() return d.err } -// setErr is a thread-safe setter for the error object -func (d *downloader) setErr(e error) { +// seterr is a thread-safe setter for the error object +func (d *downloader) seterr(e error) { d.m.Lock() defer d.m.Unlock() diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download_test.go index af57e17fc..95b61e5fb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download_test.go @@ -10,21 +10,22 @@ import ( "sync" "testing" - "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3/s3manager" + "github.com/stretchr/testify/assert" ) +var _ = unit.Imported + func dlLoggingSvc(data []byte) (*s3.S3, *[]string, *[]string) { var m sync.Mutex names := []string{} ranges := []string{} - svc := s3.New(unit.Session) + svc := s3.New(nil) svc.Handlers.Send.Clear() svc.Handlers.Send.PushBack(func(r *request.Request) { m.Lock() @@ -43,120 +44,23 @@ func dlLoggingSvc(data []byte) (*s3.S3, *[]string, *[]string) { fin = int64(len(data)) } - bodyBytes := data[start:fin] r.HTTPResponse = &http.Response{ StatusCode: 200, - Body: ioutil.NopCloser(bytes.NewReader(bodyBytes)), + Body: ioutil.NopCloser(bytes.NewReader(data[start:fin])), Header: http.Header{}, } r.HTTPResponse.Header.Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", - start, fin-1, len(data))) - r.HTTPResponse.Header.Set("Content-Length", fmt.Sprintf("%d", len(bodyBytes))) + start, fin, len(data))) }) return svc, &names, &ranges } -func dlLoggingSvcNoChunk(data []byte) (*s3.S3, *[]string) { - var m sync.Mutex - names := []string{} - - svc := s3.New(unit.Session) - svc.Handlers.Send.Clear() - svc.Handlers.Send.PushBack(func(r *request.Request) { - m.Lock() - defer m.Unlock() - - names = append(names, r.Operation.Name) - - r.HTTPResponse = &http.Response{ - StatusCode: 200, - Body: ioutil.NopCloser(bytes.NewReader(data[:])), - Header: http.Header{}, - } - r.HTTPResponse.Header.Set("Content-Length", fmt.Sprintf("%d", len(data))) - }) - - return svc, &names -} - -func dlLoggingSvcNoContentRangeLength(data []byte, states []int) (*s3.S3, *[]string) { - var m sync.Mutex - names := []string{} - var index int = 0 - - svc := s3.New(unit.Session) - svc.Handlers.Send.Clear() - svc.Handlers.Send.PushBack(func(r *request.Request) { - m.Lock() - defer m.Unlock() - - names = append(names, r.Operation.Name) - - r.HTTPResponse = &http.Response{ - StatusCode: states[index], - Body: ioutil.NopCloser(bytes.NewReader(data[:])), - Header: http.Header{}, - } - index++ - }) - - return svc, &names -} - -func dlLoggingSvcContentRangeTotalAny(data []byte, states []int) (*s3.S3, *[]string) { - var m sync.Mutex - names := []string{} - ranges := []string{} - var index int = 0 - - svc := s3.New(unit.Session) - svc.Handlers.Send.Clear() - svc.Handlers.Send.PushBack(func(r *request.Request) { - m.Lock() - defer m.Unlock() - - names = append(names, r.Operation.Name) - ranges = append(ranges, *r.Params.(*s3.GetObjectInput).Range) - - rerng := regexp.MustCompile(`bytes=(\d+)-(\d+)`) - rng := rerng.FindStringSubmatch(r.HTTPRequest.Header.Get("Range")) - start, _ := strconv.ParseInt(rng[1], 10, 64) - fin, _ := strconv.ParseInt(rng[2], 10, 64) - fin++ - - if fin >= int64(len(data)) { - fin = int64(len(data)) - } - - // Setting start and finish to 0 because this state of 1 is suppose to - // be an error state of 416 - if index == len(states)-1 { - start = 0 - fin = 0 - } - - bodyBytes := data[start:fin] - - r.HTTPResponse = &http.Response{ - StatusCode: states[index], - Body: ioutil.NopCloser(bytes.NewReader(bodyBytes)), - Header: http.Header{}, - } - r.HTTPResponse.Header.Set("Content-Range", fmt.Sprintf("bytes %d-%d/*", - start, fin-1)) - index++ - }) - - return svc, &names -} - func TestDownloadOrder(t *testing.T) { s, names, ranges := dlLoggingSvc(buf12MB) - d := s3manager.NewDownloaderWithClient(s, func(d *s3manager.Downloader) { - d.Concurrency = 1 - }) + opts := &s3manager.DownloadOptions{S3: s, Concurrency: 1} + d := s3manager.NewDownloader(opts) w := &aws.WriteAtBuffer{} n, err := d.Download(w, &s3.GetObjectInput{ Bucket: aws.String("bucket"), @@ -178,7 +82,8 @@ func TestDownloadOrder(t *testing.T) { func TestDownloadZero(t *testing.T) { s, names, ranges := dlLoggingSvc([]byte{}) - d := s3manager.NewDownloaderWithClient(s) + opts := &s3manager.DownloadOptions{S3: s} + d := s3manager.NewDownloader(opts) w := &aws.WriteAtBuffer{} n, err := d.Download(w, &s3.GetObjectInput{ Bucket: aws.String("bucket"), @@ -194,10 +99,8 @@ func TestDownloadZero(t *testing.T) { func TestDownloadSetPartSize(t *testing.T) { s, names, ranges := dlLoggingSvc([]byte{1, 2, 3}) - d := s3manager.NewDownloaderWithClient(s, func(d *s3manager.Downloader) { - d.Concurrency = 1 - d.PartSize = 1 - }) + opts := &s3manager.DownloadOptions{S3: s, PartSize: 1, Concurrency: 1} + d := s3manager.NewDownloader(opts) w := &aws.WriteAtBuffer{} n, err := d.Download(w, &s3.GetObjectInput{ Bucket: aws.String("bucket"), @@ -213,6 +116,7 @@ func TestDownloadSetPartSize(t *testing.T) { func TestDownloadError(t *testing.T) { s, names, _ := dlLoggingSvc([]byte{1, 2, 3}) + opts := &s3manager.DownloadOptions{S3: s, PartSize: 1, Concurrency: 1} num := 0 s.Handlers.Send.PushBack(func(r *request.Request) { @@ -223,10 +127,7 @@ func TestDownloadError(t *testing.T) { } }) - d := s3manager.NewDownloaderWithClient(s, func(d *s3manager.Downloader) { - d.Concurrency = 1 - d.PartSize = 1 - }) + d := s3manager.NewDownloader(opts) w := &aws.WriteAtBuffer{} n, err := d.Download(w, &s3.GetObjectInput{ Bucket: aws.String("bucket"), @@ -238,72 +139,3 @@ func TestDownloadError(t *testing.T) { assert.Equal(t, []string{"GetObject", "GetObject"}, *names) assert.Equal(t, []byte{1}, w.Bytes()) } - -func TestDownloadNonChunk(t *testing.T) { - s, names := dlLoggingSvcNoChunk(buf2MB) - - d := s3manager.NewDownloaderWithClient(s, func(d *s3manager.Downloader) { - d.Concurrency = 1 - }) - w := &aws.WriteAtBuffer{} - n, err := d.Download(w, &s3.GetObjectInput{ - Bucket: aws.String("bucket"), - Key: aws.String("key"), - }) - - assert.Nil(t, err) - assert.Equal(t, int64(len(buf2MB)), n) - assert.Equal(t, []string{"GetObject"}, *names) - - count := 0 - for _, b := range w.Bytes() { - count += int(b) - } - assert.Equal(t, 0, count) -} - -func TestDownloadNoContentRangeLength(t *testing.T) { - s, names := dlLoggingSvcNoContentRangeLength(buf2MB, []int{200, 416}) - - d := s3manager.NewDownloaderWithClient(s, func(d *s3manager.Downloader) { - d.Concurrency = 1 - }) - w := &aws.WriteAtBuffer{} - n, err := d.Download(w, &s3.GetObjectInput{ - Bucket: aws.String("bucket"), - Key: aws.String("key"), - }) - - assert.Nil(t, err) - assert.Equal(t, int64(len(buf2MB)), n) - assert.Equal(t, []string{"GetObject", "GetObject"}, *names) - - count := 0 - for _, b := range w.Bytes() { - count += int(b) - } - assert.Equal(t, 0, count) -} - -func TestDownloadContentRangeTotalAny(t *testing.T) { - s, names := dlLoggingSvcContentRangeTotalAny(buf2MB, []int{200, 416}) - - d := s3manager.NewDownloaderWithClient(s, func(d *s3manager.Downloader) { - d.Concurrency = 1 - }) - w := &aws.WriteAtBuffer{} - n, err := d.Download(w, &s3.GetObjectInput{ - Bucket: aws.String("bucket"), - Key: aws.String("key"), - }) - - assert.Nil(t, err) - assert.Equal(t, int64(len(buf2MB)), n) - assert.Equal(t, []string{"GetObject", "GetObject"}, *names) - - count := 0 - for _, b := range w.Bytes() { - count += int(b) - } - assert.Equal(t, 0, count) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/s3manageriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/s3manageriface/interface.go deleted file mode 100644 index b7d0a1256..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/s3manageriface/interface.go +++ /dev/null @@ -1,23 +0,0 @@ -// Package s3manageriface provides an interface for the s3manager package -package s3manageriface - -import ( - "io" - - "github.com/aws/aws-sdk-go/service/s3" - "github.com/aws/aws-sdk-go/service/s3/s3manager" -) - -// DownloaderAPI is the interface type for s3manager.Downloader. -type DownloaderAPI interface { - Download(io.WriterAt, *s3.GetObjectInput, ...func(*s3manager.Downloader)) (int64, error) -} - -var _ DownloaderAPI = (*s3manager.Downloader)(nil) - -// UploaderAPI is the interface type for s3manager.Uploader. -type UploaderAPI interface { - Upload(*s3manager.UploadInput, ...func(*s3manager.Uploader)) (*s3manager.UploadOutput, error) -} - -var _ UploaderAPI = (*s3manager.Uploader)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/shared_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/shared_test.go deleted file mode 100644 index b5b613143..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/shared_test.go +++ /dev/null @@ -1,4 +0,0 @@ -package s3manager_test - -var buf12MB = make([]byte, 1024*1024*12) -var buf2MB = make([]byte, 1024*1024*2) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go index b2d1afd48..65846c30d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload.go @@ -8,30 +8,30 @@ import ( "sync" "time" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/s3" - "github.com/aws/aws-sdk-go/service/s3/s3iface" ) -// MaxUploadParts is the maximum allowed number of parts in a multi-part upload -// on Amazon S3. -const MaxUploadParts = 10000 +// The maximum allowed number of parts in a multi-part upload on Amazon S3. +var MaxUploadParts = 10000 -// MinUploadPartSize is the minimum allowed part size when uploading a part to -// Amazon S3. -const MinUploadPartSize int64 = 1024 * 1024 * 5 +// The minimum allowed part size when uploading a part to Amazon S3. +var MinUploadPartSize int64 = 1024 * 1024 * 5 -// DefaultUploadPartSize is the default part size to buffer chunks of a -// payload into. -const DefaultUploadPartSize = MinUploadPartSize +// The default part size to buffer chunks of a payload into. +var DefaultUploadPartSize = MinUploadPartSize -// DefaultUploadConcurrency is the default number of goroutines to spin up when -// using Upload(). -const DefaultUploadConcurrency = 5 +// The default number of goroutines to spin up when using Upload(). +var DefaultUploadConcurrency = 5 + +// The default set of options used when opts is nil in Upload(). +var DefaultUploadOptions = &UploadOptions{ + PartSize: DefaultUploadPartSize, + Concurrency: DefaultUploadConcurrency, + LeavePartsOnError: false, + S3: nil, +} // A MultiUploadFailure wraps a failed S3 multipart upload. An error returned // will satisfy this interface when a multi part upload failed to upload all @@ -43,7 +43,7 @@ const DefaultUploadConcurrency = 5 // u := s3manager.NewUploader(opts) // output, err := u.upload(input) // if err != nil { -// if multierr, ok := err.(s3manager.MultiUploadFailure); ok { +// if multierr, ok := err.(MultiUploadFailure); ok { // // Process error and its associated uploadID // fmt.Println("Error:", multierr.Code(), multierr.Message(), multierr.UploadID()) // } else { @@ -166,7 +166,7 @@ type UploadInput struct { // requests for an object protected by AWS KMS will fail if not made via SSL // or using SigV4. Documentation on configuring any of the officially supported // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyID *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -189,27 +189,20 @@ type UploadOutput struct { // The URL where the object was uploaded to. Location string - // The version of the object that was uploaded. Will only be populated if - // the S3 Bucket is versioned. If the bucket is not versioned this field - // will not be set. - VersionID *string - // The ID for a multipart upload to S3. In the case of an error the error // can be cast to the MultiUploadFailure interface to extract the upload ID. UploadID string } -// The Uploader structure that calls Upload(). It is safe to call Upload() -// on this structure for multiple objects and across concurrent goroutines. -// Mutating the Uploader's properties is not safe to be done concurrently. -type Uploader struct { +// UploadOptions keeps tracks of extra options to pass to an Upload() call. +type UploadOptions struct { // The buffer size (in bytes) to use when buffering data into chunks and // sending them as parts to S3. The minimum allowed part size is 5MB, and // if this value is set to zero, the DefaultPartSize value will be used. PartSize int64 // The number of goroutines to spin up in parallel when sending parts. - // If this is set to zero, the DefaultUploadConcurrency value will be used. + // If this is set to zero, the DefaultConcurrency value will be used. Concurrency int // Setting this value to true will cause the SDK to avoid calling @@ -220,121 +213,43 @@ type Uploader struct { // space usage on S3 and will add additional costs if not cleaned up. LeavePartsOnError bool - // MaxUploadParts is the max number of parts which will be uploaded to S3. - // Will be used to calculate the partsize of the object to be uploaded. - // E.g: 5GB file, with MaxUploadParts set to 100, will upload the file - // as 100, 50MB parts. - // With a limited of s3.MaxUploadParts (10,000 parts). - MaxUploadParts int - - // The client to use when uploading to S3. - S3 s3iface.S3API + // The client to use when uploading to S3. Leave this as nil to use the + // default S3 client. + S3 *s3.S3 } -// NewUploader creates a new Uploader instance to upload objects to S3. Pass In -// additional functional options to customize the uploader's behavior. Requires a -// client.ConfigProvider in order to create a S3 service client. The session.Session -// satisfies the client.ConfigProvider interface. -// -// Example: -// // The session the S3 Uploader will use -// sess := session.New() -// -// // Create an uploader with the session and default options -// uploader := s3manager.NewUploader(sess) -// -// // Create an uploader with the session and custom options -// uploader := s3manager.NewUploader(session, func(u *s3manager.Uploader) { -// u.PartSize = 64 * 1024 * 1024 // 64MB per part -// }) -func NewUploader(c client.ConfigProvider, options ...func(*Uploader)) *Uploader { - u := &Uploader{ - S3: s3.New(c), - PartSize: DefaultUploadPartSize, - Concurrency: DefaultUploadConcurrency, - LeavePartsOnError: false, - MaxUploadParts: MaxUploadParts, +// NewUploader creates a new Uploader object to upload data to S3. Pass in +// an optional opts structure to customize the uploader behavior. +func NewUploader(opts *UploadOptions) *Uploader { + if opts == nil { + opts = DefaultUploadOptions } - - for _, option := range options { - option(u) - } - - return u + return &Uploader{opts: opts} } -// NewUploaderWithClient creates a new Uploader instance to upload objects to S3. Pass in -// additional functional options to customize the uploader's behavior. Requires -// a S3 service client to make S3 API calls. -// -// Example: -// // S3 service client the Upload manager will use. -// s3Svc := s3.New(session.New()) -// -// // Create an uploader with S3 client and default options -// uploader := s3manager.NewUploaderWithClient(s3Svc) -// -// // Create an uploader with S3 client and custom options -// uploader := s3manager.NewUploaderWithClient(s3Svc, func(u *s3manager.Uploader) { -// u.PartSize = 64 * 1024 * 1024 // 64MB per part -// }) -func NewUploaderWithClient(svc s3iface.S3API, options ...func(*Uploader)) *Uploader { - u := &Uploader{ - S3: svc, - PartSize: DefaultUploadPartSize, - Concurrency: DefaultUploadConcurrency, - LeavePartsOnError: false, - MaxUploadParts: MaxUploadParts, - } - - for _, option := range options { - option(u) - } - - return u +// The Uploader structure that calls Upload(). It is safe to call Upload() +// on this structure for multiple objects and across concurrent goroutines. +type Uploader struct { + opts *UploadOptions } // Upload uploads an object to S3, intelligently buffering large files into // smaller chunks and sending them in parallel across multiple goroutines. You -// can configure the buffer size and concurrency through the Uploader's parameters. -// -// Additional functional options can be provided to configure the individual -// upload. These options are copies of the Uploader instance Upload is called from. -// Modifying the options will not impact the original Uploader instance. +// can configure the buffer size and concurrency through the opts parameter. // -// It is safe to call this method concurrently across goroutines. -// -// Example: -// // Upload input parameters -// upParams := &s3manager.UploadInput{ -// Bucket: &bucketName, -// Key: &keyName, -// Body: file, -// } +// If opts is set to nil, DefaultUploadOptions will be used. // -// // Perform an upload. -// result, err := uploader.Upload(upParams) -// -// // Perform upload with options different than the those in the Uploader. -// result, err := uploader.Upload(upParams, func(u *s3manager.Uploader) { -// u.PartSize = 10 * 1024 * 1024 // 10MB part size -// u.LeavePartsOnError = true // Dont delete the parts if the upload fails. -// }) -func (u Uploader) Upload(input *UploadInput, options ...func(*Uploader)) (*UploadOutput, error) { - i := uploader{in: input, ctx: u} - - for _, option := range options { - option(&i.ctx) - } - +// It is safe to call this method for multiple objects and across concurrent +// goroutines. +func (u *Uploader) Upload(input *UploadInput) (*UploadOutput, error) { + i := uploader{in: input, opts: *u.opts} return i.upload() } // internal structure to manage an upload to S3. type uploader struct { - ctx Uploader - - in *UploadInput + in *UploadInput + opts UploadOptions readerPos int64 // current reader position totalSize int64 // set to -1 if the size is not known @@ -345,7 +260,7 @@ type uploader struct { func (u *uploader) upload() (*UploadOutput, error) { u.init() - if u.ctx.PartSize < MinUploadPartSize { + if u.opts.PartSize < MinUploadPartSize { msg := fmt.Sprintf("part size must be at least %d bytes", MinUploadPartSize) return nil, awserr.New("ConfigError", msg, nil) } @@ -364,11 +279,14 @@ func (u *uploader) upload() (*UploadOutput, error) { // init will initialize all default options. func (u *uploader) init() { - if u.ctx.Concurrency == 0 { - u.ctx.Concurrency = DefaultUploadConcurrency + if u.opts.S3 == nil { + u.opts.S3 = s3.New(nil) + } + if u.opts.Concurrency == 0 { + u.opts.Concurrency = DefaultUploadConcurrency } - if u.ctx.PartSize == 0 { - u.ctx.PartSize = DefaultUploadPartSize + if u.opts.PartSize == 0 { + u.opts.PartSize = DefaultUploadPartSize } // Try to get the total size for some optimizations @@ -391,12 +309,9 @@ func (u *uploader) initSize() { } u.totalSize = n - // Try to adjust partSize if it is too small and account for - // integer division truncation. - if u.totalSize/u.ctx.PartSize >= int64(u.ctx.MaxUploadParts) { - // Add one to the part size to account for remainders - // during the size calculation. e.g odd number of bytes. - u.ctx.PartSize = (u.totalSize / int64(u.ctx.MaxUploadParts)) + 1 + // try to adjust partSize if it is too small + if u.totalSize/u.opts.PartSize >= int64(MaxUploadParts) { + u.opts.PartSize = u.totalSize / int64(MaxUploadParts) } } } @@ -410,14 +325,14 @@ func (u *uploader) nextReader() (io.ReadSeeker, error) { case io.ReaderAt: var err error - n := u.ctx.PartSize + n := u.opts.PartSize if u.totalSize >= 0 { bytesLeft := u.totalSize - u.readerPos if bytesLeft == 0 { err = io.EOF n = bytesLeft - } else if bytesLeft <= u.ctx.PartSize { + } else if bytesLeft <= u.opts.PartSize { err = io.ErrUnexpectedEOF n = bytesLeft } @@ -429,7 +344,7 @@ func (u *uploader) nextReader() (io.ReadSeeker, error) { return buf, err default: - packet := make([]byte, u.ctx.PartSize) + packet := make([]byte, u.opts.PartSize) n, err := io.ReadFull(u.in.Body, packet) u.readerPos += int64(n) @@ -445,17 +360,13 @@ func (u *uploader) singlePart(buf io.ReadSeeker) (*UploadOutput, error) { awsutil.Copy(params, u.in) params.Body = buf - req, out := u.ctx.S3.PutObjectRequest(params) - req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("S3Manager")) + req, _ := u.opts.S3.PutObjectRequest(params) if err := req.Send(); err != nil { return nil, err } url := req.HTTPRequest.URL.String() - return &UploadOutput{ - Location: url, - VersionID: out.VersionId, - }, nil + return &UploadOutput{Location: url}, nil } // internal structure to manage a specific multipart upload to S3. @@ -489,16 +400,15 @@ func (u *multiuploader) upload(firstBuf io.ReadSeeker) (*UploadOutput, error) { awsutil.Copy(params, u.in) // Create the multipart - req, resp := u.ctx.S3.CreateMultipartUploadRequest(params) - req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("S3Manager")) - if err := req.Send(); err != nil { + resp, err := u.opts.S3.CreateMultipartUpload(params) + if err != nil { return nil, err } u.uploadID = *resp.UploadId // Create the workers - ch := make(chan chunk, u.ctx.Concurrency) - for i := 0; i < u.ctx.Concurrency; i++ { + ch := make(chan chunk, u.opts.Concurrency) + for i := 0; i < u.opts.Concurrency; i++ { u.wg.Add(1) go u.readChunk(ch) } @@ -509,21 +419,16 @@ func (u *multiuploader) upload(firstBuf io.ReadSeeker) (*UploadOutput, error) { // Read and queue the rest of the parts for u.geterr() == nil { - num++ // This upload exceeded maximum number of supported parts, error now. - if num > int64(u.ctx.MaxUploadParts) || num > int64(MaxUploadParts) { - var msg string - if num > int64(u.ctx.MaxUploadParts) { - msg = fmt.Sprintf("exceeded total allowed configured MaxUploadParts (%d). Adjust PartSize to fit in this limit", - u.ctx.MaxUploadParts) - } else { - msg = fmt.Sprintf("exceeded total allowed S3 limit MaxUploadParts (%d). Adjust PartSize to fit in this limit", - MaxUploadParts) - } + if num > int64(MaxUploadParts) { + msg := fmt.Sprintf("exceeded total allowed parts (%d). "+ + "Adjust PartSize to fit in this limit", MaxUploadParts) u.seterr(awserr.New("TotalPartsExceeded", msg, nil)) break } + num++ + buf, err := u.nextReader() if err == io.EOF { break @@ -531,9 +436,7 @@ func (u *multiuploader) upload(firstBuf io.ReadSeeker) (*UploadOutput, error) { ch <- chunk{buf: buf, num: num} - if err == io.ErrUnexpectedEOF { - break - } else if err != nil { + if err != nil && err != io.ErrUnexpectedEOF { u.seterr(awserr.New( "ReadRequestBody", "read multipart upload data failed", @@ -557,9 +460,8 @@ func (u *multiuploader) upload(firstBuf io.ReadSeeker) (*UploadOutput, error) { } } return &UploadOutput{ - Location: aws.StringValue(complete.Location), - VersionID: complete.VersionId, - UploadID: u.uploadID, + Location: *complete.Location, + UploadID: u.uploadID, }, nil } @@ -585,15 +487,15 @@ func (u *multiuploader) readChunk(ch chan chunk) { // send performs an UploadPart request and keeps track of the completed // part information. func (u *multiuploader) send(c chunk) error { - req, resp := u.ctx.S3.UploadPartRequest(&s3.UploadPartInput{ + resp, err := u.opts.S3.UploadPart(&s3.UploadPartInput{ Bucket: u.in.Bucket, Key: u.in.Key, Body: c.buf, UploadId: &u.uploadID, PartNumber: &c.num, }) - req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("S3Manager")) - if err := req.Send(); err != nil { + + if err != nil { return err } @@ -625,17 +527,15 @@ func (u *multiuploader) seterr(e error) { // fail will abort the multipart unless LeavePartsOnError is set to true. func (u *multiuploader) fail() { - if u.ctx.LeavePartsOnError { + if u.opts.LeavePartsOnError { return } - req, _ := u.ctx.S3.AbortMultipartUploadRequest(&s3.AbortMultipartUploadInput{ + u.opts.S3.AbortMultipartUpload(&s3.AbortMultipartUploadInput{ Bucket: u.in.Bucket, Key: u.in.Key, UploadId: &u.uploadID, }) - req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("S3Manager")) - req.Send() } // complete successfully completes a multipart upload and returns the response. @@ -648,14 +548,13 @@ func (u *multiuploader) complete() *s3.CompleteMultipartUploadOutput { // Parts must be sorted in PartNumber order. sort.Sort(u.parts) - req, resp := u.ctx.S3.CompleteMultipartUploadRequest(&s3.CompleteMultipartUploadInput{ + resp, err := u.opts.S3.CompleteMultipartUpload(&s3.CompleteMultipartUploadInput{ Bucket: u.in.Bucket, Key: u.in.Key, UploadId: &u.uploadID, MultipartUpload: &s3.CompletedMultipartUpload{Parts: u.parts}, }) - req.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("S3Manager")) - if err := req.Send(); err != nil { + if err != nil { u.seterr(err) u.fail() } diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go index 9b408dabb..a303ac7c5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_test.go @@ -7,7 +7,6 @@ import ( "io/ioutil" "net/http" "net/http/httptest" - "reflect" "sort" "strings" "sync" @@ -17,28 +16,20 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3/s3manager" "github.com/stretchr/testify/assert" ) +var _ = unit.Imported +var buf12MB = make([]byte, 1024*1024*12) +var buf2MB = make([]byte, 1024*1024*2) + var emptyList = []string{} func val(i interface{}, s string) interface{} { - v, err := awsutil.ValuesAtPath(i, s) - if err != nil || len(v) == 0 { - return nil - } - if _, ok := v[0].(io.Reader); ok { - return v[0] - } - - if rv := reflect.ValueOf(v[0]); rv.Kind() == reflect.Ptr { - return rv.Elem().Interface() - } - - return v[0] + return awsutil.ValuesAtPath(i, s)[0] } func contains(src []string, s string) bool { @@ -55,7 +46,7 @@ func loggingSvc(ignoreOps []string) (*s3.S3, *[]string, *[]interface{}) { partNum := 0 names := []string{} params := []interface{}{} - svc := s3.New(unit.Session) + svc := s3.New(nil) svc.Handlers.Unmarshal.Clear() svc.Handlers.UnmarshalMeta.Clear() svc.Handlers.UnmarshalError.Clear() @@ -82,9 +73,6 @@ func loggingSvc(ignoreOps []string) (*s3.S3, *[]string, *[]interface{}) { data.ETag = aws.String(fmt.Sprintf("ETAG%d", partNum)) case *s3.CompleteMultipartUploadOutput: data.Location = aws.String("https://location") - data.VersionId = aws.String("VERSION-ID") - case *s3.PutObjectOutput: - data.VersionId = aws.String("VERSION-ID") } }) @@ -99,14 +87,12 @@ func buflen(i interface{}) int { func TestUploadOrderMulti(t *testing.T) { s, ops, args := loggingSvc(emptyList) - u := s3manager.NewUploaderWithClient(s) - - resp, err := u.Upload(&s3manager.UploadInput{ + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s}) + resp, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), Body: bytes.NewReader(buf12MB), - ServerSideEncryption: aws.String("aws:kms"), - SSEKMSKeyId: aws.String("KmsId"), + ServerSideEncryption: aws.String("AES256"), ContentType: aws.String("content/type"), }) @@ -114,7 +100,6 @@ func TestUploadOrderMulti(t *testing.T) { assert.Equal(t, []string{"CreateMultipartUpload", "UploadPart", "UploadPart", "UploadPart", "CompleteMultipartUpload"}, *ops) assert.Equal(t, "https://location", resp.Location) assert.Equal(t, "UPLOAD-ID", resp.UploadID) - assert.Equal(t, aws.String("VERSION-ID"), resp.VersionID) // Validate input values @@ -133,16 +118,16 @@ func TestUploadOrderMulti(t *testing.T) { assert.Regexp(t, `^ETAG\d+$`, val((*args)[4], "MultipartUpload.Parts[2].ETag")) // Custom headers - assert.Equal(t, "aws:kms", val((*args)[0], "ServerSideEncryption")) - assert.Equal(t, "KmsId", val((*args)[0], "SSEKMSKeyId")) + assert.Equal(t, "AES256", val((*args)[0], "ServerSideEncryption")) assert.Equal(t, "content/type", val((*args)[0], "ContentType")) } func TestUploadOrderMultiDifferentPartSize(t *testing.T) { s, ops, args := loggingSvc(emptyList) - mgr := s3manager.NewUploaderWithClient(s, func(u *s3manager.Uploader) { - u.PartSize = 1024 * 1024 * 7 - u.Concurrency = 1 + mgr := s3manager.NewUploader(&s3manager.UploadOptions{ + S3: s, + PartSize: 1024 * 1024 * 7, + Concurrency: 1, }) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), @@ -159,11 +144,12 @@ func TestUploadOrderMultiDifferentPartSize(t *testing.T) { } func TestUploadIncreasePartSize(t *testing.T) { + s3manager.MaxUploadParts = 2 + defer func() { s3manager.MaxUploadParts = 10000 }() + s, ops, args := loggingSvc(emptyList) - mgr := s3manager.NewUploaderWithClient(s, func(u *s3manager.Uploader) { - u.Concurrency = 1 - u.MaxUploadParts = 2 - }) + opts := &s3manager.UploadOptions{S3: s, Concurrency: 1} + mgr := s3manager.NewUploader(opts) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -171,18 +157,17 @@ func TestUploadIncreasePartSize(t *testing.T) { }) assert.NoError(t, err) - assert.Equal(t, int64(s3manager.DefaultDownloadPartSize), mgr.PartSize) + assert.Equal(t, int64(0), opts.PartSize) // don't modify orig options assert.Equal(t, []string{"CreateMultipartUpload", "UploadPart", "UploadPart", "CompleteMultipartUpload"}, *ops) // Part lengths - assert.Equal(t, (1024*1024*6)+1, buflen(val((*args)[1], "Body"))) - assert.Equal(t, (1024*1024*6)-1, buflen(val((*args)[2], "Body"))) + assert.Equal(t, 1024*1024*6, buflen(val((*args)[1], "Body"))) + assert.Equal(t, 1024*1024*6, buflen(val((*args)[2], "Body"))) } func TestUploadFailIfPartSizeTooSmall(t *testing.T) { - mgr := s3manager.NewUploader(unit.Session, func(u *s3manager.Uploader) { - u.PartSize = 5 - }) + opts := &s3manager.UploadOptions{PartSize: 5} + mgr := s3manager.NewUploader(opts) resp, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -199,23 +184,20 @@ func TestUploadFailIfPartSizeTooSmall(t *testing.T) { func TestUploadOrderSingle(t *testing.T) { s, ops, args := loggingSvc(emptyList) - mgr := s3manager.NewUploaderWithClient(s) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s}) resp, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), Body: bytes.NewReader(buf2MB), - ServerSideEncryption: aws.String("aws:kms"), - SSEKMSKeyId: aws.String("KmsId"), + ServerSideEncryption: aws.String("AES256"), ContentType: aws.String("content/type"), }) assert.NoError(t, err) assert.Equal(t, []string{"PutObject"}, *ops) assert.NotEqual(t, "", resp.Location) - assert.Equal(t, aws.String("VERSION-ID"), resp.VersionID) assert.Equal(t, "", resp.UploadID) - assert.Equal(t, "aws:kms", val((*args)[0], "ServerSideEncryption")) - assert.Equal(t, "KmsId", val((*args)[0], "SSEKMSKeyId")) + assert.Equal(t, "AES256", val((*args)[0], "ServerSideEncryption")) assert.Equal(t, "content/type", val((*args)[0], "ContentType")) } @@ -224,7 +206,7 @@ func TestUploadOrderSingleFailure(t *testing.T) { s.Handlers.Send.PushBack(func(r *request.Request) { r.HTTPResponse.StatusCode = 400 }) - mgr := s3manager.NewUploaderWithClient(s) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s}) resp, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -238,7 +220,7 @@ func TestUploadOrderSingleFailure(t *testing.T) { func TestUploadOrderZero(t *testing.T) { s, ops, args := loggingSvc(emptyList) - mgr := s3manager.NewUploaderWithClient(s) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s}) resp, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -263,9 +245,7 @@ func TestUploadOrderMultiFailure(t *testing.T) { } }) - mgr := s3manager.NewUploaderWithClient(s, func(u *s3manager.Uploader) { - u.Concurrency = 1 - }) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s, Concurrency: 1}) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -285,9 +265,7 @@ func TestUploadOrderMultiFailureOnComplete(t *testing.T) { } }) - mgr := s3manager.NewUploaderWithClient(s, func(u *s3manager.Uploader) { - u.Concurrency = 1 - }) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s, Concurrency: 1}) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -308,7 +286,7 @@ func TestUploadOrderMultiFailureOnCreate(t *testing.T) { } }) - mgr := s3manager.NewUploaderWithClient(s) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s}) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -330,9 +308,10 @@ func TestUploadOrderMultiFailureLeaveParts(t *testing.T) { } }) - mgr := s3manager.NewUploaderWithClient(s, func(u *s3manager.Uploader) { - u.Concurrency = 1 - u.LeavePartsOnError = true + mgr := s3manager.NewUploader(&s3manager.UploadOptions{ + S3: s, + Concurrency: 1, + LeavePartsOnError: true, }) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), @@ -359,7 +338,7 @@ func (f *failreader) Read(b []byte) (int, error) { func TestUploadOrderReadFail1(t *testing.T) { s, ops, _ := loggingSvc(emptyList) - mgr := s3manager.NewUploaderWithClient(s) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s}) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -373,33 +352,26 @@ func TestUploadOrderReadFail1(t *testing.T) { func TestUploadOrderReadFail2(t *testing.T) { s, ops, _ := loggingSvc([]string{"UploadPart"}) - mgr := s3manager.NewUploaderWithClient(s, func(u *s3manager.Uploader) { - u.Concurrency = 1 - }) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s, Concurrency: 1}) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), Body: &failreader{times: 2}, }) - assert.Equal(t, "MultipartUpload", err.(awserr.Error).Code()) - assert.Equal(t, "ReadRequestBody", err.(awserr.Error).OrigErr().(awserr.Error).Code()) - assert.Contains(t, err.(awserr.Error).OrigErr().Error(), "random failure") + assert.Equal(t, "ReadRequestBody", err.(awserr.Error).Code()) + assert.EqualError(t, err.(awserr.Error).OrigErr(), "random failure") assert.Equal(t, []string{"CreateMultipartUpload", "AbortMultipartUpload"}, *ops) } type sizedReader struct { size int cur int - err error } func (s *sizedReader) Read(p []byte) (n int, err error) { if s.cur >= s.size { - if s.err == nil { - s.err = io.EOF - } - return 0, s.err + return 0, io.EOF } n = len(p) @@ -413,7 +385,7 @@ func (s *sizedReader) Read(p []byte) (n int, err error) { func TestUploadOrderMultiBufferedReader(t *testing.T) { s, ops, args := loggingSvc(emptyList) - mgr := s3manager.NewUploaderWithClient(s) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s}) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -433,58 +405,11 @@ func TestUploadOrderMultiBufferedReader(t *testing.T) { assert.Equal(t, []int{1024 * 1024 * 2, 1024 * 1024 * 5, 1024 * 1024 * 5}, parts) } -func TestUploadOrderMultiBufferedReaderUnexpectedEOF(t *testing.T) { - s, ops, args := loggingSvc(emptyList) - mgr := s3manager.NewUploaderWithClient(s) - _, err := mgr.Upload(&s3manager.UploadInput{ - Bucket: aws.String("Bucket"), - Key: aws.String("Key"), - Body: &sizedReader{size: 1024 * 1024 * 12, err: io.ErrUnexpectedEOF}, - }) - - assert.NoError(t, err) - assert.Equal(t, []string{"CreateMultipartUpload", "UploadPart", "UploadPart", "UploadPart", "CompleteMultipartUpload"}, *ops) - - // Part lengths - parts := []int{ - buflen(val((*args)[1], "Body")), - buflen(val((*args)[2], "Body")), - buflen(val((*args)[3], "Body")), - } - sort.Ints(parts) - assert.Equal(t, []int{1024 * 1024 * 2, 1024 * 1024 * 5, 1024 * 1024 * 5}, parts) -} - -// TestUploadOrderMultiBufferedReaderEOF tests the edge case where the -// file size is the same as part size, which means nextReader will -// return io.EOF rather than io.ErrUnexpectedEOF -func TestUploadOrderMultiBufferedReaderEOF(t *testing.T) { - s, ops, args := loggingSvc(emptyList) - mgr := s3manager.NewUploaderWithClient(s) - _, err := mgr.Upload(&s3manager.UploadInput{ - Bucket: aws.String("Bucket"), - Key: aws.String("Key"), - Body: &sizedReader{size: 1024 * 1024 * 10, err: io.EOF}, - }) - - assert.NoError(t, err) - assert.Equal(t, []string{"CreateMultipartUpload", "UploadPart", "UploadPart", "CompleteMultipartUpload"}, *ops) - - // Part lengths - parts := []int{ - buflen(val((*args)[1], "Body")), - buflen(val((*args)[2], "Body")), - } - sort.Ints(parts) - assert.Equal(t, []int{1024 * 1024 * 5, 1024 * 1024 * 5}, parts) -} - func TestUploadOrderMultiBufferedReaderExceedTotalParts(t *testing.T) { + s3manager.MaxUploadParts = 2 + defer func() { s3manager.MaxUploadParts = 10000 }() s, ops, _ := loggingSvc([]string{"UploadPart"}) - mgr := s3manager.NewUploaderWithClient(s, func(u *s3manager.Uploader) { - u.Concurrency = 1 - u.MaxUploadParts = 2 - }) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s, Concurrency: 1}) resp, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -496,14 +421,13 @@ func TestUploadOrderMultiBufferedReaderExceedTotalParts(t *testing.T) { assert.Equal(t, []string{"CreateMultipartUpload", "AbortMultipartUpload"}, *ops) aerr := err.(awserr.Error) - assert.Equal(t, "MultipartUpload", aerr.Code()) - assert.Equal(t, "TotalPartsExceeded", aerr.OrigErr().(awserr.Error).Code()) - assert.Contains(t, aerr.Error(), "configured MaxUploadParts (2)") + assert.Equal(t, "TotalPartsExceeded", aerr.Code()) + assert.Contains(t, aerr.Message(), "exceeded total allowed parts (2)") } func TestUploadOrderSingleBufferedReader(t *testing.T) { s, ops, _ := loggingSvc(emptyList) - mgr := s3manager.NewUploaderWithClient(s) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: s}) resp, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -522,9 +446,10 @@ func TestUploadZeroLenObject(t *testing.T) { requestMade = true w.WriteHeader(http.StatusOK) })) - mgr := s3manager.NewUploaderWithClient(s3.New(unit.Session, &aws.Config{ + svc := s3.New(&aws.Config{ Endpoint: aws.String(server.URL), - })) + }) + mgr := s3manager.NewUploader(&s3manager.UploadOptions{S3: svc}) resp, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), @@ -536,60 +461,3 @@ func TestUploadZeroLenObject(t *testing.T) { assert.NotEqual(t, "", resp.Location) assert.Equal(t, "", resp.UploadID) } - -func TestUploadInputS3PutObjectInputPairity(t *testing.T) { - matchings := compareStructType(reflect.TypeOf(s3.PutObjectInput{}), - reflect.TypeOf(s3manager.UploadInput{})) - aOnly := []string{} - bOnly := []string{} - - for k, c := range matchings { - if c == 1 && k != "ContentLength" { - aOnly = append(aOnly, k) - } else if c == 2 { - bOnly = append(bOnly, k) - } - } - assert.Empty(t, aOnly, "s3.PutObjectInput") - assert.Empty(t, bOnly, "s3Manager.UploadInput") -} -func compareStructType(a, b reflect.Type) map[string]int { - if a.Kind() != reflect.Struct || b.Kind() != reflect.Struct { - panic(fmt.Sprintf("types must both be structs, got %v and %v", a.Kind(), b.Kind())) - } - - aFields := enumFields(a) - bFields := enumFields(b) - - matchings := map[string]int{} - - for i := 0; i < len(aFields) || i < len(bFields); i++ { - if i < len(aFields) { - c := matchings[aFields[i].Name] - matchings[aFields[i].Name] = c + 1 - } - if i < len(bFields) { - c := matchings[bFields[i].Name] - matchings[bFields[i].Name] = c + 2 - } - } - - return matchings -} - -func enumFields(v reflect.Type) []reflect.StructField { - fields := []reflect.StructField{} - - for i := 0; i < v.NumField(); i++ { - field := v.Field(i) - // Ignoreing anon fields - if field.PkgPath != "" { - // Ignore unexported fields - continue - } - - fields = append(fields, field) - } - - return fields -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go b/vendor/github.com/aws/aws-sdk-go/service/s3/service.go index cf01da535..daeca34c2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/service.go @@ -4,72 +4,49 @@ package s3 import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/restxml" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/restxml" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // S3 is a client for Amazon S3. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type S3 struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "s3" - -// New creates a new instance of the S3 client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a S3 client from just a session. -// svc := s3.New(mySession) -// -// // Create a S3 client with additional configuration -// svc := s3.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *S3 { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *S3 { - svc := &S3{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2006-03-01", - }, - handlers, - ), +// New returns a new S3 client. +func New(config *aws.Config) *S3 { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "s3", + APIVersion: "2006-03-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(restxml.Build) + service.Handlers.Unmarshal.PushBack(restxml.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(restxml.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(restxml.UnmarshalError) + + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &S3{service} } // newRequest creates a new request for a S3 operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/sse.go b/vendor/github.com/aws/aws-sdk-go/service/s3/sse.go index 268ea2fb4..5ab9ca2a7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/sse.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/sse.go @@ -13,7 +13,7 @@ var errSSERequiresSSL = awserr.New("ConfigError", "cannot send SSE keys over HTT func validateSSERequiresSSL(r *request.Request) { if r.HTTPRequest.URL.Scheme != "https" { - p, _ := awsutil.ValuesAtPath(r.Params, "SSECustomerKey||CopySourceSSECustomerKey") + p := awsutil.ValuesAtPath(r.Params, "SSECustomerKey||CopySourceSSECustomerKey") if len(p) > 0 { r.Error = errSSERequiresSSL } diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/sse_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/sse_test.go index 5f1ca64bf..4e6ecdce3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/sse_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/sse_test.go @@ -5,13 +5,15 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/s3" "github.com/stretchr/testify/assert" ) +var _ = unit.Imported + func TestSSECustomerKeyOverHTTPError(t *testing.T) { - s := s3.New(unit.Session, &aws.Config{DisableSSL: aws.Bool(true)}) + s := s3.New(&aws.Config{DisableSSL: aws.Bool(true)}) req, _ := s.CopyObjectRequest(&s3.CopyObjectInput{ Bucket: aws.String("bucket"), CopySource: aws.String("bucket/source"), @@ -26,7 +28,7 @@ func TestSSECustomerKeyOverHTTPError(t *testing.T) { } func TestCopySourceSSECustomerKeyOverHTTPError(t *testing.T) { - s := s3.New(unit.Session, &aws.Config{DisableSSL: aws.Bool(true)}) + s := s3.New(&aws.Config{DisableSSL: aws.Bool(true)}) req, _ := s.CopyObjectRequest(&s3.CopyObjectInput{ Bucket: aws.String("bucket"), CopySource: aws.String("bucket/source"), @@ -41,7 +43,7 @@ func TestCopySourceSSECustomerKeyOverHTTPError(t *testing.T) { } func TestComputeSSEKeys(t *testing.T) { - s := s3.New(unit.Session) + s := s3.New(nil) req, _ := s.CopyObjectRequest(&s3.CopyObjectInput{ Bucket: aws.String("bucket"), CopySource: aws.String("bucket/source"), @@ -59,7 +61,7 @@ func TestComputeSSEKeys(t *testing.T) { } func TestComputeSSEKeysShortcircuit(t *testing.T) { - s := s3.New(unit.Session) + s := s3.New(nil) req, _ := s.CopyObjectRequest(&s3.CopyObjectInput{ Bucket: aws.String("bucket"), CopySource: aws.String("bucket/source"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go b/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go deleted file mode 100644 index ce65fcdaf..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go +++ /dev/null @@ -1,36 +0,0 @@ -package s3 - -import ( - "bytes" - "io/ioutil" - "net/http" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/request" -) - -func copyMultipartStatusOKUnmarhsalError(r *request.Request) { - b, err := ioutil.ReadAll(r.HTTPResponse.Body) - if err != nil { - r.Error = awserr.New("SerializationError", "unable to read response body", err) - return - } - body := bytes.NewReader(b) - r.HTTPResponse.Body = aws.ReadSeekCloser(body) - defer r.HTTPResponse.Body.(aws.ReaderSeekerCloser).Seek(0, 0) - - if body.Len() == 0 { - // If there is no body don't attempt to parse the body. - return - } - - unmarshalError(r) - if err, ok := r.Error.(awserr.Error); ok && err != nil { - if err.Code() == "SerializationError" { - r.Error = nil - return - } - r.HTTPResponse.StatusCode = http.StatusServiceUnavailable - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error_test.go deleted file mode 100644 index f508cd153..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error_test.go +++ /dev/null @@ -1,130 +0,0 @@ -package s3_test - -import ( - "fmt" - "net/http" - "net/http/httptest" - "testing" - "time" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/awstesting/unit" - "github.com/aws/aws-sdk-go/service/s3" -) - -const errMsg = `ErrorCodemessage bodyrequestIDhostID=` - -var lastModifiedTime = time.Date(2009, 11, 23, 0, 0, 0, 0, time.UTC) - -func TestCopyObjectNoError(t *testing.T) { - const successMsg = ` - -2009-11-23T0:00:00Z"1da64c7f13d1e8dbeaea40b905fd586c"` - - res, err := newCopyTestSvc(successMsg).CopyObject(&s3.CopyObjectInput{ - Bucket: aws.String("bucketname"), - CopySource: aws.String("bucketname/exists.txt"), - Key: aws.String("destination.txt"), - }) - - require.NoError(t, err) - - assert.Equal(t, fmt.Sprintf(`%q`, "1da64c7f13d1e8dbeaea40b905fd586c"), *res.CopyObjectResult.ETag) - assert.Equal(t, lastModifiedTime, *res.CopyObjectResult.LastModified) -} - -func TestCopyObjectError(t *testing.T) { - _, err := newCopyTestSvc(errMsg).CopyObject(&s3.CopyObjectInput{ - Bucket: aws.String("bucketname"), - CopySource: aws.String("bucketname/doesnotexist.txt"), - Key: aws.String("destination.txt"), - }) - - require.Error(t, err) - e := err.(awserr.Error) - - assert.Equal(t, "ErrorCode", e.Code()) - assert.Equal(t, "message body", e.Message()) -} - -func TestUploadPartCopySuccess(t *testing.T) { - const successMsg = ` - -2009-11-23T0:00:00Z"1da64c7f13d1e8dbeaea40b905fd586c"` - - res, err := newCopyTestSvc(successMsg).UploadPartCopy(&s3.UploadPartCopyInput{ - Bucket: aws.String("bucketname"), - CopySource: aws.String("bucketname/doesnotexist.txt"), - Key: aws.String("destination.txt"), - PartNumber: aws.Int64(0), - UploadId: aws.String("uploadID"), - }) - - require.NoError(t, err) - - assert.Equal(t, fmt.Sprintf(`%q`, "1da64c7f13d1e8dbeaea40b905fd586c"), *res.CopyPartResult.ETag) - assert.Equal(t, lastModifiedTime, *res.CopyPartResult.LastModified) -} - -func TestUploadPartCopyError(t *testing.T) { - _, err := newCopyTestSvc(errMsg).UploadPartCopy(&s3.UploadPartCopyInput{ - Bucket: aws.String("bucketname"), - CopySource: aws.String("bucketname/doesnotexist.txt"), - Key: aws.String("destination.txt"), - PartNumber: aws.Int64(0), - UploadId: aws.String("uploadID"), - }) - - require.Error(t, err) - e := err.(awserr.Error) - - assert.Equal(t, "ErrorCode", e.Code()) - assert.Equal(t, "message body", e.Message()) -} - -func TestCompleteMultipartUploadSuccess(t *testing.T) { - const successMsg = ` - -locationNamebucketNamekeyName"etagVal"` - res, err := newCopyTestSvc(successMsg).CompleteMultipartUpload(&s3.CompleteMultipartUploadInput{ - Bucket: aws.String("bucketname"), - Key: aws.String("key"), - UploadId: aws.String("uploadID"), - }) - - require.NoError(t, err) - - assert.Equal(t, `"etagVal"`, *res.ETag) - assert.Equal(t, "bucketName", *res.Bucket) - assert.Equal(t, "keyName", *res.Key) - assert.Equal(t, "locationName", *res.Location) -} - -func TestCompleteMultipartUploadError(t *testing.T) { - _, err := newCopyTestSvc(errMsg).CompleteMultipartUpload(&s3.CompleteMultipartUploadInput{ - Bucket: aws.String("bucketname"), - Key: aws.String("key"), - UploadId: aws.String("uploadID"), - }) - - require.Error(t, err) - e := err.(awserr.Error) - - assert.Equal(t, "ErrorCode", e.Code()) - assert.Equal(t, "message body", e.Message()) -} - -func newCopyTestSvc(errMsg string) *s3.S3 { - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - http.Error(w, errMsg, http.StatusOK) - })) - return s3.New(unit.Session, aws.NewConfig(). - WithEndpoint(server.URL). - WithDisableSSL(true). - WithMaxRetries(0). - WithS3ForcePathStyle(true)) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go index 59e4950b8..ed4505bf3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go @@ -4,7 +4,6 @@ import ( "encoding/xml" "fmt" "io" - "io/ioutil" "net/http" "strings" @@ -21,26 +20,19 @@ type xmlErrorResponse struct { func unmarshalError(r *request.Request) { defer r.HTTPResponse.Body.Close() - defer io.Copy(ioutil.Discard, r.HTTPResponse.Body) if r.HTTPResponse.StatusCode == http.StatusMovedPermanently { - r.Error = awserr.NewRequestFailure( - awserr.New("BucketRegionError", - fmt.Sprintf("incorrect region, the bucket is not in '%s' region", - aws.StringValue(r.Config.Region)), - nil), - r.HTTPResponse.StatusCode, - r.RequestID, - ) + r.Error = awserr.New("BucketRegionError", + fmt.Sprintf("incorrect region, the bucket is not in '%s' region", aws.StringValue(r.Service.Config.Region)), nil) return } - if r.HTTPResponse.ContentLength == 0 { + if r.HTTPResponse.ContentLength == int64(0) { // No body, use status code to generate an awserr.Error r.Error = awserr.NewRequestFailure( awserr.New(strings.Replace(r.HTTPResponse.Status, " ", "", -1), r.HTTPResponse.Status, nil), r.HTTPResponse.StatusCode, - r.RequestID, + "", ) return } @@ -53,7 +45,7 @@ func unmarshalError(r *request.Request) { r.Error = awserr.NewRequestFailure( awserr.New(resp.Code, resp.Message, nil), r.HTTPResponse.StatusCode, - r.RequestID, + "", ) } } diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error_leak_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error_leak_test.go deleted file mode 100644 index 449637144..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error_leak_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package s3 - -import ( - "github.com/stretchr/testify/assert" - "net/http" - "testing" - - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" -) - -func TestUnmarhsalErrorLeak(t *testing.T) { - req := &request.Request{ - HTTPRequest: &http.Request{ - Header: make(http.Header), - Body: &awstesting.ReadCloser{Size: 2048}, - }, - } - req.HTTPResponse = &http.Response{ - Body: &awstesting.ReadCloser{Size: 2048}, - Header: http.Header{ - "X-Amzn-Requestid": []string{"1"}, - }, - StatusCode: http.StatusOK, - } - - reader := req.HTTPResponse.Body.(*awstesting.ReadCloser) - unmarshalError(req) - - assert.NotNil(t, req.Error) - assert.Equal(t, reader.Closed, true) - assert.Equal(t, reader.Size, 0) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error_test.go index deddc702f..bc1c4fec9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error_test.go @@ -4,163 +4,51 @@ import ( "bytes" "io/ioutil" "net/http" - "strings" "testing" - "github.com/stretchr/testify/assert" - "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/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/s3" + "github.com/stretchr/testify/assert" ) -type testErrorCase struct { - RespFn func() *http.Response - ReqID string - Code, Msg string +var _ = unit.Imported + +var s3StatusCodeErrorTests = []struct { + scode int + status string + body string + code string + message string +}{ + {301, "Moved Permanently", "", "BucketRegionError", "incorrect region, the bucket is not in 'mock-region' region"}, + {403, "Forbidden", "", "Forbidden", "Forbidden"}, + {400, "Bad Request", "", "BadRequest", "Bad Request"}, + {404, "Not Found", "", "NotFound", "Not Found"}, + {500, "Internal Error", "", "InternalError", "Internal Error"}, } -var testUnmarshalCases = []testErrorCase{ - { - RespFn: func() *http.Response { - return &http.Response{ - StatusCode: 301, - Header: http.Header{"X-Amz-Request-Id": []string{"abc123"}}, - Body: ioutil.NopCloser(bytes.NewReader(nil)), - ContentLength: -1, - } - }, - ReqID: "abc123", - Code: "BucketRegionError", Msg: "incorrect region, the bucket is not in 'mock-region' region", - }, - { - RespFn: func() *http.Response { - return &http.Response{ - StatusCode: 403, - Header: http.Header{"X-Amz-Request-Id": []string{"abc123"}}, - Body: ioutil.NopCloser(bytes.NewReader(nil)), - ContentLength: 0, - } - }, - ReqID: "abc123", - Code: "Forbidden", Msg: "Forbidden", - }, - { - RespFn: func() *http.Response { - return &http.Response{ - StatusCode: 400, - Header: http.Header{"X-Amz-Request-Id": []string{"abc123"}}, - Body: ioutil.NopCloser(bytes.NewReader(nil)), - ContentLength: 0, - } - }, - ReqID: "abc123", - Code: "BadRequest", Msg: "Bad Request", - }, - { - RespFn: func() *http.Response { - return &http.Response{ - StatusCode: 404, - Header: http.Header{"X-Amz-Request-Id": []string{"abc123"}}, - Body: ioutil.NopCloser(bytes.NewReader(nil)), - ContentLength: 0, - } - }, - ReqID: "abc123", - Code: "NotFound", Msg: "Not Found", - }, - { - RespFn: func() *http.Response { - body := `SomeExceptionException message` - return &http.Response{ - StatusCode: 500, - Header: http.Header{"X-Amz-Request-Id": []string{"abc123"}}, - Body: ioutil.NopCloser(strings.NewReader(body)), - ContentLength: int64(len(body)), - } - }, - ReqID: "abc123", - Code: "SomeException", Msg: "Exception message", - }, -} - -func TestUnmarshalError(t *testing.T) { - for _, c := range testUnmarshalCases { - s := s3.New(unit.Session) +func TestStatusCodeError(t *testing.T) { + for _, test := range s3StatusCodeErrorTests { + s := s3.New(nil) s.Handlers.Send.Clear() s.Handlers.Send.PushBack(func(r *request.Request) { - r.HTTPResponse = c.RespFn() - r.HTTPResponse.Status = http.StatusText(r.HTTPResponse.StatusCode) + body := ioutil.NopCloser(bytes.NewReader([]byte(test.body))) + r.HTTPResponse = &http.Response{ + ContentLength: int64(len(test.body)), + StatusCode: test.scode, + Status: test.status, + Body: body, + } }) _, err := s.PutBucketAcl(&s3.PutBucketAclInput{ Bucket: aws.String("bucket"), ACL: aws.String("public-read"), }) assert.Error(t, err) - assert.Equal(t, c.Code, err.(awserr.Error).Code()) - assert.Equal(t, c.Msg, err.(awserr.Error).Message()) - assert.Equal(t, c.ReqID, err.(awserr.RequestFailure).RequestID()) + assert.Equal(t, test.code, err.(awserr.Error).Code()) + assert.Equal(t, test.message, err.(awserr.Error).Message()) } } - -const completeMultiResp = ` -163 - - -https://bucket.s3-us-west-2.amazonaws.com/keybucketkey"a7d414b9133d6483d9a1c4e04e856e3b-2" -0 -` - -func Test200NoErrorUnmarshalError(t *testing.T) { - s := s3.New(unit.Session) - s.Handlers.Send.Clear() - s.Handlers.Send.PushBack(func(r *request.Request) { - r.HTTPResponse = &http.Response{ - StatusCode: 200, - Header: http.Header{"X-Amz-Request-Id": []string{"abc123"}}, - Body: ioutil.NopCloser(strings.NewReader(completeMultiResp)), - ContentLength: -1, - } - r.HTTPResponse.Status = http.StatusText(r.HTTPResponse.StatusCode) - }) - _, err := s.CompleteMultipartUpload(&s3.CompleteMultipartUploadInput{ - Bucket: aws.String("bucket"), Key: aws.String("key"), - UploadId: aws.String("id"), - MultipartUpload: &s3.CompletedMultipartUpload{Parts: []*s3.CompletedPart{ - {ETag: aws.String("etag"), PartNumber: aws.Int64(1)}, - }}, - }) - - assert.NoError(t, err) -} - -const completeMultiErrResp = `SomeExceptionException message` - -func Test200WithErrorUnmarshalError(t *testing.T) { - s := s3.New(unit.Session) - s.Handlers.Send.Clear() - s.Handlers.Send.PushBack(func(r *request.Request) { - r.HTTPResponse = &http.Response{ - StatusCode: 200, - Header: http.Header{"X-Amz-Request-Id": []string{"abc123"}}, - Body: ioutil.NopCloser(strings.NewReader(completeMultiErrResp)), - ContentLength: -1, - } - r.HTTPResponse.Status = http.StatusText(r.HTTPResponse.StatusCode) - }) - _, err := s.CompleteMultipartUpload(&s3.CompleteMultipartUploadInput{ - Bucket: aws.String("bucket"), Key: aws.String("key"), - UploadId: aws.String("id"), - MultipartUpload: &s3.CompletedMultipartUpload{Parts: []*s3.CompletedPart{ - {ETag: aws.String("etag"), PartNumber: aws.Int64(1)}, - }}, - }) - - assert.Error(t, err) - - assert.Equal(t, "SomeException", err.(awserr.Error).Code()) - assert.Equal(t, "Exception message", err.(awserr.Error).Message()) - assert.Equal(t, "abc123", err.(awserr.RequestFailure).RequestID()) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/s3/waiters.go deleted file mode 100644 index cbd3d3116..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/waiters.go +++ /dev/null @@ -1,123 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package s3 - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *S3) WaitUntilBucketExists(input *HeadBucketInput) error { - waiterCfg := waiter.Config{ - Operation: "HeadBucket", - Delay: 5, - MaxAttempts: 20, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 200, - }, - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 301, - }, - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 403, - }, - { - State: "retry", - Matcher: "status", - Argument: "", - Expected: 404, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *S3) WaitUntilBucketNotExists(input *HeadBucketInput) error { - waiterCfg := waiter.Config{ - Operation: "HeadBucket", - Delay: 5, - MaxAttempts: 20, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 404, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *S3) WaitUntilObjectExists(input *HeadObjectInput) error { - waiterCfg := waiter.Config{ - Operation: "HeadObject", - Delay: 5, - MaxAttempts: 20, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 200, - }, - { - State: "retry", - Matcher: "status", - Argument: "", - Expected: 404, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} - -func (c *S3) WaitUntilObjectNotExists(input *HeadObjectInput) error { - waiterCfg := waiter.Config{ - Operation: "HeadObject", - Delay: 5, - MaxAttempts: 20, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "status", - Argument: "", - Expected: 404, - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/api.go b/vendor/github.com/aws/aws-sdk-go/service/ses/api.go index a260453d8..e8f63b87b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/api.go @@ -4,145 +4,12 @@ package ses import ( - "fmt" "time" "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/private/protocol/query" ) -const opCloneReceiptRuleSet = "CloneReceiptRuleSet" - -// CloneReceiptRuleSetRequest generates a request for the CloneReceiptRuleSet operation. -func (c *SES) CloneReceiptRuleSetRequest(input *CloneReceiptRuleSetInput) (req *request.Request, output *CloneReceiptRuleSetOutput) { - op := &request.Operation{ - Name: opCloneReceiptRuleSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CloneReceiptRuleSetInput{} - } - - req = c.newRequest(op, input, output) - output = &CloneReceiptRuleSetOutput{} - req.Data = output - return -} - -// Creates a receipt rule set by cloning an existing one. All receipt rules -// and configurations are copied to the new receipt rule set and are completely -// independent of the source rule set. -// -// For information about setting up rule sets, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html). -// -// This action is throttled at one request per second. -func (c *SES) CloneReceiptRuleSet(input *CloneReceiptRuleSetInput) (*CloneReceiptRuleSetOutput, error) { - req, out := c.CloneReceiptRuleSetRequest(input) - err := req.Send() - return out, err -} - -const opCreateReceiptFilter = "CreateReceiptFilter" - -// CreateReceiptFilterRequest generates a request for the CreateReceiptFilter operation. -func (c *SES) CreateReceiptFilterRequest(input *CreateReceiptFilterInput) (req *request.Request, output *CreateReceiptFilterOutput) { - op := &request.Operation{ - Name: opCreateReceiptFilter, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateReceiptFilterInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateReceiptFilterOutput{} - req.Data = output - return -} - -// Creates a new IP address filter. -// -// For information about setting up IP address filters, see the Amazon SES -// Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). -// -// This action is throttled at one request per second. -func (c *SES) CreateReceiptFilter(input *CreateReceiptFilterInput) (*CreateReceiptFilterOutput, error) { - req, out := c.CreateReceiptFilterRequest(input) - err := req.Send() - return out, err -} - -const opCreateReceiptRule = "CreateReceiptRule" - -// CreateReceiptRuleRequest generates a request for the CreateReceiptRule operation. -func (c *SES) CreateReceiptRuleRequest(input *CreateReceiptRuleInput) (req *request.Request, output *CreateReceiptRuleOutput) { - op := &request.Operation{ - Name: opCreateReceiptRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateReceiptRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateReceiptRuleOutput{} - req.Data = output - return -} - -// Creates a receipt rule. -// -// For information about setting up receipt rules, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html). -// -// This action is throttled at one request per second. -func (c *SES) CreateReceiptRule(input *CreateReceiptRuleInput) (*CreateReceiptRuleOutput, error) { - req, out := c.CreateReceiptRuleRequest(input) - err := req.Send() - return out, err -} - -const opCreateReceiptRuleSet = "CreateReceiptRuleSet" - -// CreateReceiptRuleSetRequest generates a request for the CreateReceiptRuleSet operation. -func (c *SES) CreateReceiptRuleSetRequest(input *CreateReceiptRuleSetInput) (req *request.Request, output *CreateReceiptRuleSetOutput) { - op := &request.Operation{ - Name: opCreateReceiptRuleSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateReceiptRuleSetInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateReceiptRuleSetOutput{} - req.Data = output - return -} - -// Creates an empty receipt rule set. -// -// For information about setting up receipt rule sets, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html). -// -// This action is throttled at one request per second. -func (c *SES) CreateReceiptRuleSet(input *CreateReceiptRuleSetInput) (*CreateReceiptRuleSetOutput, error) { - req, out := c.CreateReceiptRuleSetRequest(input) - err := req.Send() - return out, err -} - const opDeleteIdentity = "DeleteIdentity" // DeleteIdentityRequest generates a request for the DeleteIdentity operation. @@ -209,102 +76,6 @@ func (c *SES) DeleteIdentityPolicy(input *DeleteIdentityPolicyInput) (*DeleteIde return out, err } -const opDeleteReceiptFilter = "DeleteReceiptFilter" - -// DeleteReceiptFilterRequest generates a request for the DeleteReceiptFilter operation. -func (c *SES) DeleteReceiptFilterRequest(input *DeleteReceiptFilterInput) (req *request.Request, output *DeleteReceiptFilterOutput) { - op := &request.Operation{ - Name: opDeleteReceiptFilter, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteReceiptFilterInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteReceiptFilterOutput{} - req.Data = output - return -} - -// Deletes the specified IP address filter. -// -// For information about managing IP address filters, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-ip-filters.html). -// -// This action is throttled at one request per second. -func (c *SES) DeleteReceiptFilter(input *DeleteReceiptFilterInput) (*DeleteReceiptFilterOutput, error) { - req, out := c.DeleteReceiptFilterRequest(input) - err := req.Send() - return out, err -} - -const opDeleteReceiptRule = "DeleteReceiptRule" - -// DeleteReceiptRuleRequest generates a request for the DeleteReceiptRule operation. -func (c *SES) DeleteReceiptRuleRequest(input *DeleteReceiptRuleInput) (req *request.Request, output *DeleteReceiptRuleOutput) { - op := &request.Operation{ - Name: opDeleteReceiptRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteReceiptRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteReceiptRuleOutput{} - req.Data = output - return -} - -// Deletes the specified receipt rule. -// -// For information about managing receipt rules, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html). -// -// This action is throttled at one request per second. -func (c *SES) DeleteReceiptRule(input *DeleteReceiptRuleInput) (*DeleteReceiptRuleOutput, error) { - req, out := c.DeleteReceiptRuleRequest(input) - err := req.Send() - return out, err -} - -const opDeleteReceiptRuleSet = "DeleteReceiptRuleSet" - -// DeleteReceiptRuleSetRequest generates a request for the DeleteReceiptRuleSet operation. -func (c *SES) DeleteReceiptRuleSetRequest(input *DeleteReceiptRuleSetInput) (req *request.Request, output *DeleteReceiptRuleSetOutput) { - op := &request.Operation{ - Name: opDeleteReceiptRuleSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteReceiptRuleSetInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteReceiptRuleSetOutput{} - req.Data = output - return -} - -// Deletes the specified receipt rule set and all of the receipt rules it contains. -// -// The currently active rule set cannot be deleted. For information about managing -// receipt rule sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). -// -// This action is throttled at one request per second. -func (c *SES) DeleteReceiptRuleSet(input *DeleteReceiptRuleSetInput) (*DeleteReceiptRuleSetOutput, error) { - req, out := c.DeleteReceiptRuleSetRequest(input) - err := req.Send() - return out, err -} - const opDeleteVerifiedEmailAddress = "DeleteVerifiedEmailAddress" // DeleteVerifiedEmailAddressRequest generates a request for the DeleteVerifiedEmailAddress operation. @@ -320,8 +91,6 @@ func (c *SES) DeleteVerifiedEmailAddressRequest(input *DeleteVerifiedEmailAddres } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteVerifiedEmailAddressOutput{} req.Data = output return @@ -338,103 +107,6 @@ func (c *SES) DeleteVerifiedEmailAddress(input *DeleteVerifiedEmailAddressInput) return out, err } -const opDescribeActiveReceiptRuleSet = "DescribeActiveReceiptRuleSet" - -// DescribeActiveReceiptRuleSetRequest generates a request for the DescribeActiveReceiptRuleSet operation. -func (c *SES) DescribeActiveReceiptRuleSetRequest(input *DescribeActiveReceiptRuleSetInput) (req *request.Request, output *DescribeActiveReceiptRuleSetOutput) { - op := &request.Operation{ - Name: opDescribeActiveReceiptRuleSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeActiveReceiptRuleSetInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeActiveReceiptRuleSetOutput{} - req.Data = output - return -} - -// Returns the metadata and receipt rules for the receipt rule set that is currently -// active. -// -// For information about setting up receipt rule sets, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html). -// -// This action is throttled at one request per second. -func (c *SES) DescribeActiveReceiptRuleSet(input *DescribeActiveReceiptRuleSetInput) (*DescribeActiveReceiptRuleSetOutput, error) { - req, out := c.DescribeActiveReceiptRuleSetRequest(input) - err := req.Send() - return out, err -} - -const opDescribeReceiptRule = "DescribeReceiptRule" - -// DescribeReceiptRuleRequest generates a request for the DescribeReceiptRule operation. -func (c *SES) DescribeReceiptRuleRequest(input *DescribeReceiptRuleInput) (req *request.Request, output *DescribeReceiptRuleOutput) { - op := &request.Operation{ - Name: opDescribeReceiptRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeReceiptRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeReceiptRuleOutput{} - req.Data = output - return -} - -// Returns the details of the specified receipt rule. -// -// For information about setting up receipt rules, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html). -// -// This action is throttled at one request per second. -func (c *SES) DescribeReceiptRule(input *DescribeReceiptRuleInput) (*DescribeReceiptRuleOutput, error) { - req, out := c.DescribeReceiptRuleRequest(input) - err := req.Send() - return out, err -} - -const opDescribeReceiptRuleSet = "DescribeReceiptRuleSet" - -// DescribeReceiptRuleSetRequest generates a request for the DescribeReceiptRuleSet operation. -func (c *SES) DescribeReceiptRuleSetRequest(input *DescribeReceiptRuleSetInput) (req *request.Request, output *DescribeReceiptRuleSetOutput) { - op := &request.Operation{ - Name: opDescribeReceiptRuleSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeReceiptRuleSetInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeReceiptRuleSetOutput{} - req.Data = output - return -} - -// Returns the details of the specified receipt rule set. -// -// For information about managing receipt rule sets, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). -// -// This action is throttled at one request per second. -func (c *SES) DescribeReceiptRuleSet(input *DescribeReceiptRuleSetInput) (*DescribeReceiptRuleSetOutput, error) { - req, out := c.DescribeReceiptRuleSetRequest(input) - err := req.Send() - return out, err -} - const opGetIdentityDkimAttributes = "GetIdentityDkimAttributes" // GetIdentityDkimAttributesRequest generates a request for the GetIdentityDkimAttributes operation. @@ -479,37 +151,6 @@ func (c *SES) GetIdentityDkimAttributes(input *GetIdentityDkimAttributesInput) ( return out, err } -const opGetIdentityMailFromDomainAttributes = "GetIdentityMailFromDomainAttributes" - -// GetIdentityMailFromDomainAttributesRequest generates a request for the GetIdentityMailFromDomainAttributes operation. -func (c *SES) GetIdentityMailFromDomainAttributesRequest(input *GetIdentityMailFromDomainAttributesInput) (req *request.Request, output *GetIdentityMailFromDomainAttributesOutput) { - op := &request.Operation{ - Name: opGetIdentityMailFromDomainAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetIdentityMailFromDomainAttributesInput{} - } - - req = c.newRequest(op, input, output) - output = &GetIdentityMailFromDomainAttributesOutput{} - req.Data = output - return -} - -// Returns the custom MAIL FROM attributes for a list of identities (email addresses -// and/or domains). -// -// This action is throttled at one request per second and can only get custom -// MAIL FROM attributes for up to 100 identities at a time. -func (c *SES) GetIdentityMailFromDomainAttributes(input *GetIdentityMailFromDomainAttributesInput) (*GetIdentityMailFromDomainAttributesOutput, error) { - req, out := c.GetIdentityMailFromDomainAttributesRequest(input) - err := req.Send() - return out, err -} - const opGetIdentityNotificationAttributes = "GetIdentityNotificationAttributes" // GetIdentityNotificationAttributesRequest generates a request for the GetIdentityNotificationAttributes operation. @@ -711,7 +352,6 @@ func (c *SES) ListIdentities(input *ListIdentitiesInput) (*ListIdentitiesOutput, func (c *SES) ListIdentitiesPages(input *ListIdentitiesInput, fn func(p *ListIdentitiesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListIdentitiesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListIdentitiesOutput), lastPage) }) @@ -753,204 +393,68 @@ func (c *SES) ListIdentityPolicies(input *ListIdentityPoliciesInput) (*ListIdent return out, err } -const opListReceiptFilters = "ListReceiptFilters" +const opListVerifiedEmailAddresses = "ListVerifiedEmailAddresses" -// ListReceiptFiltersRequest generates a request for the ListReceiptFilters operation. -func (c *SES) ListReceiptFiltersRequest(input *ListReceiptFiltersInput) (req *request.Request, output *ListReceiptFiltersOutput) { +// ListVerifiedEmailAddressesRequest generates a request for the ListVerifiedEmailAddresses operation. +func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddressesInput) (req *request.Request, output *ListVerifiedEmailAddressesOutput) { op := &request.Operation{ - Name: opListReceiptFilters, + Name: opListVerifiedEmailAddresses, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ListReceiptFiltersInput{} + input = &ListVerifiedEmailAddressesInput{} } req = c.newRequest(op, input, output) - output = &ListReceiptFiltersOutput{} + output = &ListVerifiedEmailAddressesOutput{} req.Data = output return } -// Lists the IP address filters associated with your account. -// -// For information about managing IP address filters, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-ip-filters.html). +// Returns a list containing all of the email addresses that have been verified. // +// The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 +// release of Domain Verification. The ListIdentities action is now preferred. // This action is throttled at one request per second. -func (c *SES) ListReceiptFilters(input *ListReceiptFiltersInput) (*ListReceiptFiltersOutput, error) { - req, out := c.ListReceiptFiltersRequest(input) +func (c *SES) ListVerifiedEmailAddresses(input *ListVerifiedEmailAddressesInput) (*ListVerifiedEmailAddressesOutput, error) { + req, out := c.ListVerifiedEmailAddressesRequest(input) err := req.Send() return out, err } -const opListReceiptRuleSets = "ListReceiptRuleSets" +const opPutIdentityPolicy = "PutIdentityPolicy" -// ListReceiptRuleSetsRequest generates a request for the ListReceiptRuleSets operation. -func (c *SES) ListReceiptRuleSetsRequest(input *ListReceiptRuleSetsInput) (req *request.Request, output *ListReceiptRuleSetsOutput) { +// PutIdentityPolicyRequest generates a request for the PutIdentityPolicy operation. +func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *request.Request, output *PutIdentityPolicyOutput) { op := &request.Operation{ - Name: opListReceiptRuleSets, + Name: opPutIdentityPolicy, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ListReceiptRuleSetsInput{} + input = &PutIdentityPolicyInput{} } req = c.newRequest(op, input, output) - output = &ListReceiptRuleSetsOutput{} + output = &PutIdentityPolicyOutput{} req.Data = output return } -// Lists the receipt rule sets that exist under your AWS account. If there are -// additional receipt rule sets to be retrieved, you will receive a NextToken -// that you can provide to the next call to ListReceiptRuleSets to retrieve -// the additional entries. +// Adds or updates a sending authorization policy for the specified identity +// (email address or domain). // -// For information about managing receipt rule sets, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). +// This API is for the identity owner only. If you have not verified the identity, +// this API will return an error. Sending authorization is a feature that enables +// an identity owner to authorize other senders to use its identities. For information +// about using sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // // This action is throttled at one request per second. -func (c *SES) ListReceiptRuleSets(input *ListReceiptRuleSetsInput) (*ListReceiptRuleSetsOutput, error) { - req, out := c.ListReceiptRuleSetsRequest(input) - err := req.Send() - return out, err -} - -const opListVerifiedEmailAddresses = "ListVerifiedEmailAddresses" - -// ListVerifiedEmailAddressesRequest generates a request for the ListVerifiedEmailAddresses operation. -func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddressesInput) (req *request.Request, output *ListVerifiedEmailAddressesOutput) { - op := &request.Operation{ - Name: opListVerifiedEmailAddresses, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListVerifiedEmailAddressesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListVerifiedEmailAddressesOutput{} - req.Data = output - return -} - -// Returns a list containing all of the email addresses that have been verified. -// -// The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 -// release of Domain Verification. The ListIdentities action is now preferred. -// This action is throttled at one request per second. -func (c *SES) ListVerifiedEmailAddresses(input *ListVerifiedEmailAddressesInput) (*ListVerifiedEmailAddressesOutput, error) { - req, out := c.ListVerifiedEmailAddressesRequest(input) - err := req.Send() - return out, err -} - -const opPutIdentityPolicy = "PutIdentityPolicy" - -// PutIdentityPolicyRequest generates a request for the PutIdentityPolicy operation. -func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *request.Request, output *PutIdentityPolicyOutput) { - op := &request.Operation{ - Name: opPutIdentityPolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutIdentityPolicyInput{} - } - - req = c.newRequest(op, input, output) - output = &PutIdentityPolicyOutput{} - req.Data = output - return -} - -// Adds or updates a sending authorization policy for the specified identity -// (email address or domain). -// -// This API is for the identity owner only. If you have not verified the identity, -// this API will return an error. Sending authorization is a feature that enables -// an identity owner to authorize other senders to use its identities. For information -// about using sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). -// -// This action is throttled at one request per second. -func (c *SES) PutIdentityPolicy(input *PutIdentityPolicyInput) (*PutIdentityPolicyOutput, error) { - req, out := c.PutIdentityPolicyRequest(input) - err := req.Send() - return out, err -} - -const opReorderReceiptRuleSet = "ReorderReceiptRuleSet" - -// ReorderReceiptRuleSetRequest generates a request for the ReorderReceiptRuleSet operation. -func (c *SES) ReorderReceiptRuleSetRequest(input *ReorderReceiptRuleSetInput) (req *request.Request, output *ReorderReceiptRuleSetOutput) { - op := &request.Operation{ - Name: opReorderReceiptRuleSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ReorderReceiptRuleSetInput{} - } - - req = c.newRequest(op, input, output) - output = &ReorderReceiptRuleSetOutput{} - req.Data = output - return -} - -// Reorders the receipt rules within a receipt rule set. -// -// All of the rules in the rule set must be represented in this request. That -// is, this API will return an error if the reorder request doesn't explicitly -// position all of the rules. For information about managing receipt rule sets, -// see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). -// -// This action is throttled at one request per second. -func (c *SES) ReorderReceiptRuleSet(input *ReorderReceiptRuleSetInput) (*ReorderReceiptRuleSetOutput, error) { - req, out := c.ReorderReceiptRuleSetRequest(input) - err := req.Send() - return out, err -} - -const opSendBounce = "SendBounce" - -// SendBounceRequest generates a request for the SendBounce operation. -func (c *SES) SendBounceRequest(input *SendBounceInput) (req *request.Request, output *SendBounceOutput) { - op := &request.Operation{ - Name: opSendBounce, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SendBounceInput{} - } - - req = c.newRequest(op, input, output) - output = &SendBounceOutput{} - req.Data = output - return -} - -// Generates and sends a bounce message to the sender of an email you received -// through Amazon SES. You can only use this API on an email up to 24 hours -// after you receive it. -// -// You cannot use this API to send generic bounces for mail that was not received -// by Amazon SES. For information about receiving email through Amazon SES, -// see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). -// -// This action is throttled at one request per second. -func (c *SES) SendBounce(input *SendBounceInput) (*SendBounceOutput, error) { - req, out := c.SendBounceRequest(input) +func (c *SES) PutIdentityPolicy(input *PutIdentityPolicyInput) (*PutIdentityPolicyOutput, error) { + req, out := c.PutIdentityPolicyRequest(input) err := req.Send() return out, err } @@ -1065,39 +569,6 @@ func (c *SES) SendRawEmail(input *SendRawEmailInput) (*SendRawEmailOutput, error return out, err } -const opSetActiveReceiptRuleSet = "SetActiveReceiptRuleSet" - -// SetActiveReceiptRuleSetRequest generates a request for the SetActiveReceiptRuleSet operation. -func (c *SES) SetActiveReceiptRuleSetRequest(input *SetActiveReceiptRuleSetInput) (req *request.Request, output *SetActiveReceiptRuleSetOutput) { - op := &request.Operation{ - Name: opSetActiveReceiptRuleSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SetActiveReceiptRuleSetInput{} - } - - req = c.newRequest(op, input, output) - output = &SetActiveReceiptRuleSetOutput{} - req.Data = output - return -} - -// Sets the specified receipt rule set as the active receipt rule set. -// -// To disable your email-receiving through Amazon SES completely, you can call -// this API with RuleSetName set to null. For information about managing receipt -// rule sets, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). -// -// This action is throttled at one request per second. -func (c *SES) SetActiveReceiptRuleSet(input *SetActiveReceiptRuleSetInput) (*SetActiveReceiptRuleSetOutput, error) { - req, out := c.SetActiveReceiptRuleSetRequest(input) - err := req.Send() - return out, err -} - const opSetIdentityDkimEnabled = "SetIdentityDkimEnabled" // SetIdentityDkimEnabledRequest generates a request for the SetIdentityDkimEnabled operation. @@ -1175,40 +646,6 @@ func (c *SES) SetIdentityFeedbackForwardingEnabled(input *SetIdentityFeedbackFor return out, err } -const opSetIdentityMailFromDomain = "SetIdentityMailFromDomain" - -// SetIdentityMailFromDomainRequest generates a request for the SetIdentityMailFromDomain operation. -func (c *SES) SetIdentityMailFromDomainRequest(input *SetIdentityMailFromDomainInput) (req *request.Request, output *SetIdentityMailFromDomainOutput) { - op := &request.Operation{ - Name: opSetIdentityMailFromDomain, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SetIdentityMailFromDomainInput{} - } - - req = c.newRequest(op, input, output) - output = &SetIdentityMailFromDomainOutput{} - req.Data = output - return -} - -// Enables or disables the custom MAIL FROM domain setup for a verified identity -// (email address or domain). -// -// To send emails using the specified MAIL FROM domain, you must add an MX -// record to your MAIL FROM domain's DNS settings. If you want your emails to -// pass Sender Policy Framework (SPF) checks, you must also add or update an -// SPF record. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-set.html). -// This action is throttled at one request per second. -func (c *SES) SetIdentityMailFromDomain(input *SetIdentityMailFromDomainInput) (*SetIdentityMailFromDomainOutput, error) { - req, out := c.SetIdentityMailFromDomainRequest(input) - err := req.Send() - return out, err -} - const opSetIdentityNotificationTopic = "SetIdentityNotificationTopic" // SetIdentityNotificationTopicRequest generates a request for the SetIdentityNotificationTopic operation. @@ -1245,70 +682,6 @@ func (c *SES) SetIdentityNotificationTopic(input *SetIdentityNotificationTopicIn return out, err } -const opSetReceiptRulePosition = "SetReceiptRulePosition" - -// SetReceiptRulePositionRequest generates a request for the SetReceiptRulePosition operation. -func (c *SES) SetReceiptRulePositionRequest(input *SetReceiptRulePositionInput) (req *request.Request, output *SetReceiptRulePositionOutput) { - op := &request.Operation{ - Name: opSetReceiptRulePosition, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SetReceiptRulePositionInput{} - } - - req = c.newRequest(op, input, output) - output = &SetReceiptRulePositionOutput{} - req.Data = output - return -} - -// Sets the position of the specified receipt rule in the receipt rule set. -// -// For information about managing receipt rules, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html). -// -// This action is throttled at one request per second. -func (c *SES) SetReceiptRulePosition(input *SetReceiptRulePositionInput) (*SetReceiptRulePositionOutput, error) { - req, out := c.SetReceiptRulePositionRequest(input) - err := req.Send() - return out, err -} - -const opUpdateReceiptRule = "UpdateReceiptRule" - -// UpdateReceiptRuleRequest generates a request for the UpdateReceiptRule operation. -func (c *SES) UpdateReceiptRuleRequest(input *UpdateReceiptRuleInput) (req *request.Request, output *UpdateReceiptRuleOutput) { - op := &request.Operation{ - Name: opUpdateReceiptRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateReceiptRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateReceiptRuleOutput{} - req.Data = output - return -} - -// Updates a receipt rule. -// -// For information about managing receipt rules, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html). -// -// This action is throttled at one request per second. -func (c *SES) UpdateReceiptRule(input *UpdateReceiptRuleInput) (*UpdateReceiptRuleOutput, error) { - req, out := c.UpdateReceiptRuleRequest(input) - err := req.Send() - return out, err -} - const opVerifyDomainDkim = "VerifyDomainDkim" // VerifyDomainDkimRequest generates a request for the VerifyDomainDkim operation. @@ -1394,8 +767,6 @@ func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &VerifyEmailAddressOutput{} req.Data = output return @@ -1443,55 +814,10 @@ func (c *SES) VerifyEmailIdentity(input *VerifyEmailIdentityInput) (*VerifyEmail return out, err } -// When included in a receipt rule, this action adds a header to the received -// email. -// -// For information about adding a header using a receipt rule, see the Amazon -// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-add-header.html). -type AddHeaderAction struct { - _ struct{} `type:"structure"` - - // The name of the header to add. Must be between 1 and 50 characters, inclusive, - // and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only. - HeaderName *string `type:"string" required:"true"` - - // Must be less than 2048 characters, and must not contain newline characters - // ("\r" or "\n"). - HeaderValue *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s AddHeaderAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddHeaderAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddHeaderAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddHeaderAction"} - if s.HeaderName == nil { - invalidParams.Add(request.NewErrParamRequired("HeaderName")) - } - if s.HeaderValue == nil { - invalidParams.Add(request.NewErrParamRequired("HeaderValue")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents the body of the message. You can specify text, HTML, or both. // If you use both, then the message should display correctly in the widest // variety of email clients. type Body struct { - _ struct{} `type:"structure"` - // The content of the message, in HTML format. Use this for email clients that // can process HTML. You can include clickable links, formatted text, and much // more in an HTML message. @@ -1500,6 +826,12 @@ type Body struct { // The content of the message, in text format. Use this for text-based email // clients, or clients on high-latency networks (such as mobile devices). Text *Content `type:"structure"` + + metadataBody `json:"-" xml:"-"` +} + +type metadataBody struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1512,2483 +844,869 @@ func (s Body) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Body) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Body"} - if s.Html != nil { - if err := s.Html.Validate(); err != nil { - invalidParams.AddNested("Html", err.(request.ErrInvalidParams)) - } - } - if s.Text != nil { - if err := s.Text.Validate(); err != nil { - invalidParams.AddNested("Text", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// When included in a receipt rule, this action rejects the received email by -// returning a bounce response to the sender and, optionally, publishes a notification -// to Amazon Simple Notification Service (Amazon SNS). +// Represents textual data, plus an optional character set specification. // -// For information about sending a bounce message in response to a received -// email, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-bounce.html). -type BounceAction struct { - _ struct{} `type:"structure"` - - // Human-readable text to include in the bounce message. - Message *string `type:"string" required:"true"` - - // The email address of the sender of the bounced email. This is the address - // from which the bounce message will be sent. - Sender *string `type:"string" required:"true"` +// By default, the text must be 7-bit ASCII, due to the constraints of the +// SMTP protocol. If the text must contain any other characters, then you must +// also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS. +type Content struct { + // The character set of the content. + Charset *string `type:"string"` - // The SMTP reply code, as defined by RFC 5321 (https://tools.ietf.org/html/rfc5321). - SmtpReplyCode *string `type:"string" required:"true"` + // The textual data of the content. + Data *string `type:"string" required:"true"` - // The SMTP enhanced status code, as defined by RFC 3463 (https://tools.ietf.org/html/rfc3463). - StatusCode *string `type:"string"` + metadataContent `json:"-" xml:"-"` +} - // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the - // bounce action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. - // For more information about Amazon SNS topics, see the Amazon SNS Developer - // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html). - TopicArn *string `type:"string"` +type metadataContent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s BounceAction) String() string { +func (s Content) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BounceAction) GoString() string { +func (s Content) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BounceAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BounceAction"} - if s.Message == nil { - invalidParams.Add(request.NewErrParamRequired("Message")) - } - if s.Sender == nil { - invalidParams.Add(request.NewErrParamRequired("Sender")) - } - if s.SmtpReplyCode == nil { - invalidParams.Add(request.NewErrParamRequired("SmtpReplyCode")) - } +// Represents a request instructing the service to delete an identity from the +// list of identities for the AWS Account. +type DeleteIdentityInput struct { + // The identity to be removed from the list of identities for the AWS Account. + Identity *string `type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeleteIdentityInput `json:"-" xml:"-"` } -// Recipient-related information to include in the Delivery Status Notification -// (DSN) when an email that Amazon SES receives on your behalf bounces. -// -// For information about receiving email through Amazon SES, see the Amazon -// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). -type BouncedRecipientInfo struct { - _ struct{} `type:"structure"` - - // The reason for the bounce. You must provide either this parameter or RecipientDsnFields. - BounceType *string `type:"string" enum:"BounceType"` - - // The email address of the recipient of the bounced email. - Recipient *string `type:"string" required:"true"` - - // This parameter is used only for sending authorization. It is the ARN of the - // identity that is associated with the sending authorization policy that permits - // you to receive email for the recipient of the bounced email. For more information - // about sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). - RecipientArn *string `type:"string"` - - // Recipient-related DSN fields, most of which would normally be filled in automatically - // when provided with a BounceType. You must provide either this parameter or - // BounceType. - RecipientDsnFields *RecipientDsnFields `type:"structure"` +type metadataDeleteIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s BouncedRecipientInfo) String() string { +func (s DeleteIdentityInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BouncedRecipientInfo) GoString() string { +func (s DeleteIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BouncedRecipientInfo) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BouncedRecipientInfo"} - if s.Recipient == nil { - invalidParams.Add(request.NewErrParamRequired("Recipient")) - } - if s.RecipientDsnFields != nil { - if err := s.RecipientDsnFields.Validate(); err != nil { - invalidParams.AddNested("RecipientDsnFields", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// An empty element. Receiving this element indicates that the request completed +// successfully. +type DeleteIdentityOutput struct { + metadataDeleteIdentityOutput `json:"-" xml:"-"` } -type CloneReceiptRuleSetInput struct { - _ struct{} `type:"structure"` - - // The name of the rule set to clone. - OriginalRuleSetName *string `type:"string" required:"true"` - - // The name of the rule set to create. The name must: - // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). Start and end with a letter or number. Contain less than - // 64 characters. - RuleSetName *string `type:"string" required:"true"` -} +type metadataDeleteIdentityOutput struct { + SDKShapeTraits bool `type:"structure"` +} // String returns the string representation -func (s CloneReceiptRuleSetInput) String() string { +func (s DeleteIdentityOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CloneReceiptRuleSetInput) GoString() string { +func (s DeleteIdentityOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CloneReceiptRuleSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CloneReceiptRuleSetInput"} - if s.OriginalRuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("OriginalRuleSetName")) - } - if s.RuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleSetName")) - } +// Represents a request instructing the service to delete an authorization policy +// applying to an identity. +// +// This request succeeds regardless of whether the specified policy exists. +type DeleteIdentityPolicyInput struct { + // The identity that is associated with the policy that you want to delete. + // You can specify the identity by using its name or by using its Amazon Resource + // Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. + // + // To successfully call this API, you must own the identity. + Identity *string `type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + // The name of the policy to be deleted. + PolicyName *string `type:"string" required:"true"` + + metadataDeleteIdentityPolicyInput `json:"-" xml:"-"` } -type CloneReceiptRuleSetOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteIdentityPolicyInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CloneReceiptRuleSetOutput) String() string { +func (s DeleteIdentityPolicyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CloneReceiptRuleSetOutput) GoString() string { +func (s DeleteIdentityPolicyInput) GoString() string { return s.String() } -// Represents textual data, plus an optional character set specification. -// -// By default, the text must be 7-bit ASCII, due to the constraints of the -// SMTP protocol. If the text must contain any other characters, then you must -// also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS. -type Content struct { - _ struct{} `type:"structure"` - - // The character set of the content. - Charset *string `type:"string"` +// An empty element. Receiving this element indicates that the request completed +// successfully. +type DeleteIdentityPolicyOutput struct { + metadataDeleteIdentityPolicyOutput `json:"-" xml:"-"` +} - // The textual data of the content. - Data *string `type:"string" required:"true"` +type metadataDeleteIdentityPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Content) String() string { +func (s DeleteIdentityPolicyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Content) GoString() string { +func (s DeleteIdentityPolicyOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Content) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Content"} - if s.Data == nil { - invalidParams.Add(request.NewErrParamRequired("Data")) - } +// Represents a request instructing the service to delete an address from the +// list of verified email addresses. +type DeleteVerifiedEmailAddressInput struct { + // An email address to be removed from the list of verified addresses. + EmailAddress *string `type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeleteVerifiedEmailAddressInput `json:"-" xml:"-"` } -type CreateReceiptFilterInput struct { - _ struct{} `type:"structure"` - - // A data structure that describes the IP address filter to create, which consists - // of a name, an IP address range, and whether to allow or block mail from it. - Filter *ReceiptFilter `type:"structure" required:"true"` +type metadataDeleteVerifiedEmailAddressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateReceiptFilterInput) String() string { +func (s DeleteVerifiedEmailAddressInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateReceiptFilterInput) GoString() string { +func (s DeleteVerifiedEmailAddressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReceiptFilterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReceiptFilterInput"} - if s.Filter == nil { - invalidParams.Add(request.NewErrParamRequired("Filter")) - } - if s.Filter != nil { - if err := s.Filter.Validate(); err != nil { - invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteVerifiedEmailAddressOutput struct { + metadataDeleteVerifiedEmailAddressOutput `json:"-" xml:"-"` } -type CreateReceiptFilterOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteVerifiedEmailAddressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateReceiptFilterOutput) String() string { +func (s DeleteVerifiedEmailAddressOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateReceiptFilterOutput) GoString() string { +func (s DeleteVerifiedEmailAddressOutput) GoString() string { return s.String() } -type CreateReceiptRuleInput struct { - _ struct{} `type:"structure"` - - // The name of an existing rule after which the new rule will be placed. If - // this parameter is null, the new rule will be inserted at the beginning of - // the rule list. - After *string `type:"string"` - - // A data structure that contains the specified rule's name, actions, recipients, - // domains, enabled status, scan status, and TLS policy. - Rule *ReceiptRule `type:"structure" required:"true"` - - // The name of the rule set to which to add the rule. - RuleSetName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateReceiptRuleInput) String() string { - return awsutil.Prettify(s) -} +// Represents the destination of the message, consisting of To:, CC:, and BCC: +// fields. +// +// By default, the string must be 7-bit ASCII. If the text must contain any +// other characters, then you must use MIME encoded-word syntax (RFC 2047) instead +// of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. +// For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047). +type Destination struct { + // The BCC: field(s) of the message. + BccAddresses []*string `type:"list"` -// GoString returns the string representation -func (s CreateReceiptRuleInput) GoString() string { - return s.String() -} + // The CC: field(s) of the message. + CcAddresses []*string `type:"list"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReceiptRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReceiptRuleInput"} - if s.Rule == nil { - invalidParams.Add(request.NewErrParamRequired("Rule")) - } - if s.RuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleSetName")) - } - if s.Rule != nil { - if err := s.Rule.Validate(); err != nil { - invalidParams.AddNested("Rule", err.(request.ErrInvalidParams)) - } - } + // The To: field(s) of the message. + ToAddresses []*string `type:"list"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDestination `json:"-" xml:"-"` } -type CreateReceiptRuleOutput struct { - _ struct{} `type:"structure"` +type metadataDestination struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateReceiptRuleOutput) String() string { +func (s Destination) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateReceiptRuleOutput) GoString() string { +func (s Destination) GoString() string { return s.String() } -type CreateReceiptRuleSetInput struct { - _ struct{} `type:"structure"` +// Given a list of verified identities, describes their DKIM attributes. The +// DKIM attributes of an email address identity includes whether DKIM signing +// is individually enabled or disabled for that address. The DKIM attributes +// of a domain name identity includes whether DKIM signing is enabled, as well +// as the DNS records (tokens) that must remain published in the domain name's +// DNS. +type GetIdentityDkimAttributesInput struct { + // A list of one or more verified identities - email addresses, domains, or + // both. + Identities []*string `type:"list" required:"true"` + + metadataGetIdentityDkimAttributesInput `json:"-" xml:"-"` +} - // The name of the rule set to create. The name must: - // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). Start and end with a letter or number. Contain less than - // 64 characters. - RuleSetName *string `type:"string" required:"true"` +type metadataGetIdentityDkimAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateReceiptRuleSetInput) String() string { +func (s GetIdentityDkimAttributesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateReceiptRuleSetInput) GoString() string { +func (s GetIdentityDkimAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReceiptRuleSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReceiptRuleSetInput"} - if s.RuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleSetName")) - } +// Represents a list of all the DKIM attributes for the specified identity. +type GetIdentityDkimAttributesOutput struct { + // The DKIM attributes for an email address or a domain. + DkimAttributes map[string]*IdentityDkimAttributes `type:"map" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetIdentityDkimAttributesOutput `json:"-" xml:"-"` } -type CreateReceiptRuleSetOutput struct { - _ struct{} `type:"structure"` +type metadataGetIdentityDkimAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateReceiptRuleSetOutput) String() string { +func (s GetIdentityDkimAttributesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateReceiptRuleSetOutput) GoString() string { +func (s GetIdentityDkimAttributesOutput) GoString() string { return s.String() } -type DeleteIdentityInput struct { - _ struct{} `type:"structure"` +type GetIdentityNotificationAttributesInput struct { + // A list of one or more identities. You can specify an identity by using its + // name or by using its Amazon Resource Name (ARN). Examples: user@example.com, + // example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. + Identities []*string `type:"list" required:"true"` - // The identity to be removed from the list of identities for the AWS Account. - Identity *string `type:"string" required:"true"` + metadataGetIdentityNotificationAttributesInput `json:"-" xml:"-"` +} + +type metadataGetIdentityNotificationAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteIdentityInput) String() string { +func (s GetIdentityNotificationAttributesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteIdentityInput) GoString() string { +func (s GetIdentityNotificationAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteIdentityInput"} - if s.Identity == nil { - invalidParams.Add(request.NewErrParamRequired("Identity")) - } +// Describes whether an identity has Amazon Simple Notification Service (Amazon +// SNS) topics set for bounce, complaint, and/or delivery notifications, and +// specifies whether feedback forwarding is enabled for bounce and complaint +// notifications. +type GetIdentityNotificationAttributesOutput struct { + // A map of Identity to IdentityNotificationAttributes. + NotificationAttributes map[string]*IdentityNotificationAttributes `type:"map" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetIdentityNotificationAttributesOutput `json:"-" xml:"-"` } -type DeleteIdentityOutput struct { - _ struct{} `type:"structure"` +type metadataGetIdentityNotificationAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteIdentityOutput) String() string { +func (s GetIdentityNotificationAttributesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteIdentityOutput) GoString() string { +func (s GetIdentityNotificationAttributesOutput) GoString() string { return s.String() } -type DeleteIdentityPolicyInput struct { - _ struct{} `type:"structure"` - - // The identity that is associated with the policy that you want to delete. - // You can specify the identity by using its name or by using its Amazon Resource - // Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. +// Represents a request instructing the service to retrieve the text of a list +// of authorization policies applying to an identity. +type GetIdentityPoliciesInput struct { + // The identity for which the policies will be retrieved. You can specify an + // identity by using its name or by using its Amazon Resource Name (ARN). Examples: + // user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. // // To successfully call this API, you must own the identity. Identity *string `type:"string" required:"true"` - // The name of the policy to be deleted. - PolicyName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteIdentityPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteIdentityPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteIdentityPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteIdentityPolicyInput"} - if s.Identity == nil { - invalidParams.Add(request.NewErrParamRequired("Identity")) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteIdentityPolicyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteIdentityPolicyOutput) String() string { - return awsutil.Prettify(s) -} + // A list of the names of policies to be retrieved. You can retrieve a maximum + // of 20 policies at a time. If you do not know the names of the policies that + // are attached to the identity, you can use ListIdentityPolicies. + PolicyNames []*string `type:"list" required:"true"` -// GoString returns the string representation -func (s DeleteIdentityPolicyOutput) GoString() string { - return s.String() + metadataGetIdentityPoliciesInput `json:"-" xml:"-"` } -type DeleteReceiptFilterInput struct { - _ struct{} `type:"structure"` - - // The name of the IP address filter to delete. - FilterName *string `type:"string" required:"true"` +type metadataGetIdentityPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteReceiptFilterInput) String() string { +func (s GetIdentityPoliciesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteReceiptFilterInput) GoString() string { +func (s GetIdentityPoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReceiptFilterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReceiptFilterInput"} - if s.FilterName == nil { - invalidParams.Add(request.NewErrParamRequired("FilterName")) - } +// Represents a map of policy names to policies returned from a successful GetIdentityPolicies +// request. +type GetIdentityPoliciesOutput struct { + // A map of policy names to policies. + Policies map[string]*string `type:"map" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetIdentityPoliciesOutput `json:"-" xml:"-"` } -type DeleteReceiptFilterOutput struct { - _ struct{} `type:"structure"` +type metadataGetIdentityPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteReceiptFilterOutput) String() string { +func (s GetIdentityPoliciesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteReceiptFilterOutput) GoString() string { +func (s GetIdentityPoliciesOutput) GoString() string { return s.String() } -type DeleteReceiptRuleInput struct { - _ struct{} `type:"structure"` +// Represents a request instructing the service to provide the verification +// attributes for a list of identities. +type GetIdentityVerificationAttributesInput struct { + // A list of identities. + Identities []*string `type:"list" required:"true"` - // The name of the receipt rule to delete. - RuleName *string `type:"string" required:"true"` + metadataGetIdentityVerificationAttributesInput `json:"-" xml:"-"` +} - // The name of the receipt rule set that contains the receipt rule to delete. - RuleSetName *string `type:"string" required:"true"` +type metadataGetIdentityVerificationAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteReceiptRuleInput) String() string { +func (s GetIdentityVerificationAttributesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteReceiptRuleInput) GoString() string { +func (s GetIdentityVerificationAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReceiptRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReceiptRuleInput"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleSetName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteReceiptRuleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteReceiptRuleOutput) String() string { - return awsutil.Prettify(s) -} +// Represents the verification attributes for a list of identities. +type GetIdentityVerificationAttributesOutput struct { + // A map of Identities to IdentityVerificationAttributes objects. + VerificationAttributes map[string]*IdentityVerificationAttributes `type:"map" required:"true"` -// GoString returns the string representation -func (s DeleteReceiptRuleOutput) GoString() string { - return s.String() + metadataGetIdentityVerificationAttributesOutput `json:"-" xml:"-"` } -type DeleteReceiptRuleSetInput struct { - _ struct{} `type:"structure"` - - // The name of the receipt rule set to delete. - RuleSetName *string `type:"string" required:"true"` +type metadataGetIdentityVerificationAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteReceiptRuleSetInput) String() string { +func (s GetIdentityVerificationAttributesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteReceiptRuleSetInput) GoString() string { +func (s GetIdentityVerificationAttributesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReceiptRuleSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReceiptRuleSetInput"} - if s.RuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleSetName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type GetSendQuotaInput struct { + metadataGetSendQuotaInput `json:"-" xml:"-"` } -type DeleteReceiptRuleSetOutput struct { - _ struct{} `type:"structure"` +type metadataGetSendQuotaInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteReceiptRuleSetOutput) String() string { +func (s GetSendQuotaInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteReceiptRuleSetOutput) GoString() string { +func (s GetSendQuotaInput) GoString() string { return s.String() } -type DeleteVerifiedEmailAddressInput struct { - _ struct{} `type:"structure"` - - // An email address to be removed from the list of verified addresses. - EmailAddress *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteVerifiedEmailAddressInput) String() string { - return awsutil.Prettify(s) -} +// Represents the user's current activity limits returned from a successful +// GetSendQuota request. +type GetSendQuotaOutput struct { + // The maximum number of emails the user is allowed to send in a 24-hour interval. + // A value of -1 signifies an unlimited quota. + Max24HourSend *float64 `type:"double"` -// GoString returns the string representation -func (s DeleteVerifiedEmailAddressInput) GoString() string { - return s.String() -} + // The maximum number of emails that Amazon SES can accept from the user's account + // per second. + // + // The rate at which Amazon SES accepts the user's messages might be less than + // the maximum send rate. + MaxSendRate *float64 `type:"double"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVerifiedEmailAddressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVerifiedEmailAddressInput"} - if s.EmailAddress == nil { - invalidParams.Add(request.NewErrParamRequired("EmailAddress")) - } + // The number of emails sent during the previous 24 hours. + SentLast24Hours *float64 `type:"double"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataGetSendQuotaOutput `json:"-" xml:"-"` } -type DeleteVerifiedEmailAddressOutput struct { - _ struct{} `type:"structure"` +type metadataGetSendQuotaOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteVerifiedEmailAddressOutput) String() string { +func (s GetSendQuotaOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVerifiedEmailAddressOutput) GoString() string { +func (s GetSendQuotaOutput) GoString() string { return s.String() } -type DescribeActiveReceiptRuleSetInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DescribeActiveReceiptRuleSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeActiveReceiptRuleSetInput) GoString() string { - return s.String() +type GetSendStatisticsInput struct { + metadataGetSendStatisticsInput `json:"-" xml:"-"` } -type DescribeActiveReceiptRuleSetOutput struct { - _ struct{} `type:"structure"` - - // The metadata for the currently active receipt rule set. The metadata consists - // of the rule set name and a timestamp of when the rule set was created. - Metadata *ReceiptRuleSetMetadata `type:"structure"` - - // The receipt rules that belong to the active rule set. - Rules []*ReceiptRule `type:"list"` +type metadataGetSendStatisticsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DescribeActiveReceiptRuleSetOutput) String() string { +func (s GetSendStatisticsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeActiveReceiptRuleSetOutput) GoString() string { +func (s GetSendStatisticsInput) GoString() string { return s.String() } -type DescribeReceiptRuleInput struct { - _ struct{} `type:"structure"` - - // The name of the receipt rule. - RuleName *string `type:"string" required:"true"` - - // The name of the receipt rule set to which the receipt rule belongs. - RuleSetName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeReceiptRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReceiptRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeReceiptRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeReceiptRuleInput"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleSetName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeReceiptRuleOutput struct { - _ struct{} `type:"structure"` - - // A data structure that contains the specified receipt rule's name, actions, - // recipients, domains, enabled status, scan status, and Transport Layer Security - // (TLS) policy. - Rule *ReceiptRule `type:"structure"` -} - -// String returns the string representation -func (s DescribeReceiptRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReceiptRuleOutput) GoString() string { - return s.String() -} - -type DescribeReceiptRuleSetInput struct { - _ struct{} `type:"structure"` - - // The name of the receipt rule set to describe. - RuleSetName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeReceiptRuleSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReceiptRuleSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeReceiptRuleSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeReceiptRuleSetInput"} - if s.RuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleSetName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeReceiptRuleSetOutput struct { - _ struct{} `type:"structure"` - - // The metadata for the receipt rule set, which consists of the rule set name - // and the timestamp of when the rule set was created. - Metadata *ReceiptRuleSetMetadata `type:"structure"` - - // A list of the receipt rules that belong to the specified receipt rule set. - Rules []*ReceiptRule `type:"list"` -} - -// String returns the string representation -func (s DescribeReceiptRuleSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeReceiptRuleSetOutput) GoString() string { - return s.String() -} - -// Represents the destination of the message, consisting of To:, CC:, and BCC: -// fields. -// -// By default, the string must be 7-bit ASCII. If the text must contain any -// other characters, then you must use MIME encoded-word syntax (RFC 2047) instead -// of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=. -// For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047). -type Destination struct { - _ struct{} `type:"structure"` - - // The BCC: field(s) of the message. - BccAddresses []*string `type:"list"` - - // The CC: field(s) of the message. - CcAddresses []*string `type:"list"` - - // The To: field(s) of the message. - ToAddresses []*string `type:"list"` -} - -// String returns the string representation -func (s Destination) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Destination) GoString() string { - return s.String() -} - -// Additional X-headers to include in the Delivery Status Notification (DSN) -// when an email that Amazon SES receives on your behalf bounces. -// -// For information about receiving email through Amazon SES, see the Amazon -// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). -type ExtensionField struct { - _ struct{} `type:"structure"` - - // The name of the header to add. Must be between 1 and 50 characters, inclusive, - // and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only. - Name *string `type:"string" required:"true"` - - // The value of the header to add. Must be less than 2048 characters, and must - // not contain newline characters ("\r" or "\n"). - Value *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s ExtensionField) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ExtensionField) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ExtensionField) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ExtensionField"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetIdentityDkimAttributesInput struct { - _ struct{} `type:"structure"` - - // A list of one or more verified identities - email addresses, domains, or - // both. - Identities []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s GetIdentityDkimAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIdentityDkimAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIdentityDkimAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIdentityDkimAttributesInput"} - if s.Identities == nil { - invalidParams.Add(request.NewErrParamRequired("Identities")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetIdentityDkimAttributesOutput struct { - _ struct{} `type:"structure"` - - // The DKIM attributes for an email address or a domain. - DkimAttributes map[string]*IdentityDkimAttributes `type:"map" required:"true"` -} - -// String returns the string representation -func (s GetIdentityDkimAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIdentityDkimAttributesOutput) GoString() string { - return s.String() -} - -type GetIdentityMailFromDomainAttributesInput struct { - _ struct{} `type:"structure"` - - // A list of one or more identities. - Identities []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s GetIdentityMailFromDomainAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIdentityMailFromDomainAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIdentityMailFromDomainAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIdentityMailFromDomainAttributesInput"} - if s.Identities == nil { - invalidParams.Add(request.NewErrParamRequired("Identities")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetIdentityMailFromDomainAttributesOutput struct { - _ struct{} `type:"structure"` - - // A map of identities to custom MAIL FROM attributes. - MailFromDomainAttributes map[string]*IdentityMailFromDomainAttributes `type:"map" required:"true"` -} - -// String returns the string representation -func (s GetIdentityMailFromDomainAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIdentityMailFromDomainAttributesOutput) GoString() string { - return s.String() -} - -type GetIdentityNotificationAttributesInput struct { - _ struct{} `type:"structure"` - - // A list of one or more identities. You can specify an identity by using its - // name or by using its Amazon Resource Name (ARN). Examples: user@example.com, - // example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. - Identities []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s GetIdentityNotificationAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIdentityNotificationAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIdentityNotificationAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIdentityNotificationAttributesInput"} - if s.Identities == nil { - invalidParams.Add(request.NewErrParamRequired("Identities")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetIdentityNotificationAttributesOutput struct { - _ struct{} `type:"structure"` - - // A map of Identity to IdentityNotificationAttributes. - NotificationAttributes map[string]*IdentityNotificationAttributes `type:"map" required:"true"` -} - -// String returns the string representation -func (s GetIdentityNotificationAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIdentityNotificationAttributesOutput) GoString() string { - return s.String() -} - -type GetIdentityPoliciesInput struct { - _ struct{} `type:"structure"` - - // The identity for which the policies will be retrieved. You can specify an - // identity by using its name or by using its Amazon Resource Name (ARN). Examples: - // user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. - // - // To successfully call this API, you must own the identity. - Identity *string `type:"string" required:"true"` - - // A list of the names of policies to be retrieved. You can retrieve a maximum - // of 20 policies at a time. If you do not know the names of the policies that - // are attached to the identity, you can use ListIdentityPolicies. - PolicyNames []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s GetIdentityPoliciesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIdentityPoliciesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIdentityPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIdentityPoliciesInput"} - if s.Identity == nil { - invalidParams.Add(request.NewErrParamRequired("Identity")) - } - if s.PolicyNames == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyNames")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetIdentityPoliciesOutput struct { - _ struct{} `type:"structure"` - - // A map of policy names to policies. - Policies map[string]*string `type:"map" required:"true"` -} - -// String returns the string representation -func (s GetIdentityPoliciesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIdentityPoliciesOutput) GoString() string { - return s.String() -} - -type GetIdentityVerificationAttributesInput struct { - _ struct{} `type:"structure"` - - // A list of identities. - Identities []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s GetIdentityVerificationAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIdentityVerificationAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIdentityVerificationAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIdentityVerificationAttributesInput"} - if s.Identities == nil { - invalidParams.Add(request.NewErrParamRequired("Identities")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetIdentityVerificationAttributesOutput struct { - _ struct{} `type:"structure"` - - // A map of Identities to IdentityVerificationAttributes objects. - VerificationAttributes map[string]*IdentityVerificationAttributes `type:"map" required:"true"` -} - -// String returns the string representation -func (s GetIdentityVerificationAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIdentityVerificationAttributesOutput) GoString() string { - return s.String() -} - -type GetSendQuotaInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s GetSendQuotaInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSendQuotaInput) GoString() string { - return s.String() -} - -type GetSendQuotaOutput struct { - _ struct{} `type:"structure"` - - // The maximum number of emails the user is allowed to send in a 24-hour interval. - // A value of -1 signifies an unlimited quota. - Max24HourSend *float64 `type:"double"` - - // The maximum number of emails that Amazon SES can accept from the user's account - // per second. - // - // The rate at which Amazon SES accepts the user's messages might be less than - // the maximum send rate. - MaxSendRate *float64 `type:"double"` - - // The number of emails sent during the previous 24 hours. - SentLast24Hours *float64 `type:"double"` -} - -// String returns the string representation -func (s GetSendQuotaOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSendQuotaOutput) GoString() string { - return s.String() -} - -type GetSendStatisticsInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s GetSendStatisticsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSendStatisticsInput) GoString() string { - return s.String() -} - -type GetSendStatisticsOutput struct { - _ struct{} `type:"structure"` - - // A list of data points, each of which represents 15 minutes of activity. - SendDataPoints []*SendDataPoint `type:"list"` -} - -// String returns the string representation -func (s GetSendStatisticsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSendStatisticsOutput) GoString() string { - return s.String() -} - -// Represents the DKIM attributes of a verified email address or a domain. -type IdentityDkimAttributes struct { - _ struct{} `type:"structure"` - - // True if DKIM signing is enabled for email sent from the identity; false otherwise. - DkimEnabled *bool `type:"boolean" required:"true"` - - // A set of character strings that represent the domain's identity. Using these - // tokens, you will need to create DNS CNAME records that point to DKIM public - // keys hosted by Amazon SES. Amazon Web Services will eventually detect that - // you have updated your DNS records; this detection process may take up to - // 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign - // email originating from that domain. (This only applies to domain identities, - // not email address identities.) - // - // For more information about creating DNS records using DKIM tokens, go to - // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html). - DkimTokens []*string `type:"list"` - - // Describes whether Amazon SES has successfully verified the DKIM DNS records - // (tokens) published in the domain name's DNS. (This only applies to domain - // identities, not email address identities.) - DkimVerificationStatus *string `type:"string" required:"true" enum:"VerificationStatus"` -} - -// String returns the string representation -func (s IdentityDkimAttributes) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IdentityDkimAttributes) GoString() string { - return s.String() -} - -// Represents the custom MAIL FROM domain attributes of a verified identity -// (email address or domain). -type IdentityMailFromDomainAttributes struct { - _ struct{} `type:"structure"` - - // The action that Amazon SES takes if it cannot successfully read the required - // MX record when you send an email. A value of UseDefaultValue indicates that - // if Amazon SES cannot read the required MX record, it uses amazonses.com (or - // a subdomain of that) as the MAIL FROM domain. A value of RejectMessage indicates - // that if Amazon SES cannot read the required MX record, Amazon SES returns - // a MailFromDomainNotVerified error and does not send the email. - // - // The custom MAIL FROM setup states that result in this behavior are Pending, - // Failed, and TemporaryFailure. - BehaviorOnMXFailure *string `type:"string" required:"true" enum:"BehaviorOnMXFailure"` - - // The custom MAIL FROM domain that the identity is configured to use. - MailFromDomain *string `type:"string" required:"true"` - - // The state that indicates whether Amazon SES has successfully read the MX - // record required for custom MAIL FROM domain setup. If the state is Success, - // Amazon SES uses the specified custom MAIL FROM domain when the verified identity - // sends an email. All other states indicate that Amazon SES takes the action - // described by BehaviorOnMXFailure. - MailFromDomainStatus *string `type:"string" required:"true" enum:"CustomMailFromStatus"` -} - -// String returns the string representation -func (s IdentityMailFromDomainAttributes) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IdentityMailFromDomainAttributes) GoString() string { - return s.String() -} - -// Represents the notification attributes of an identity, including whether -// an identity has Amazon Simple Notification Service (Amazon SNS) topics set -// for bounce, complaint, and/or delivery notifications, and whether feedback -// forwarding is enabled for bounce and complaint notifications. -type IdentityNotificationAttributes struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will - // publish bounce notifications. - BounceTopic *string `type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will - // publish complaint notifications. - ComplaintTopic *string `type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will - // publish delivery notifications. - DeliveryTopic *string `type:"string" required:"true"` - - // Describes whether Amazon SES will forward bounce and complaint notifications - // as email. true indicates that Amazon SES will forward bounce and complaint - // notifications as email, while false indicates that bounce and complaint notifications - // will be published only to the specified bounce and complaint Amazon SNS topics. - ForwardingEnabled *bool `type:"boolean" required:"true"` -} - -// String returns the string representation -func (s IdentityNotificationAttributes) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IdentityNotificationAttributes) GoString() string { - return s.String() -} - -// Represents the verification attributes of a single identity. -type IdentityVerificationAttributes struct { - _ struct{} `type:"structure"` - - // The verification status of the identity: "Pending", "Success", "Failed", - // or "TemporaryFailure". - VerificationStatus *string `type:"string" required:"true" enum:"VerificationStatus"` - - // The verification token for a domain identity. Null for email address identities. - VerificationToken *string `type:"string"` -} - -// String returns the string representation -func (s IdentityVerificationAttributes) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IdentityVerificationAttributes) GoString() string { - return s.String() -} - -// When included in a receipt rule, this action calls an AWS Lambda function -// and, optionally, publishes a notification to Amazon Simple Notification Service -// (Amazon SNS). -// -// To enable Amazon SES to call your AWS Lambda function or to publish to an -// Amazon SNS topic of another account, Amazon SES must have permission to access -// those resources. For information about giving permissions, see the Amazon -// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). -// -// For information about using AWS Lambda actions in receipt rules, see the -// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-lambda.html). -type LambdaAction struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the AWS Lambda function. An example of - // an AWS Lambda function ARN is arn:aws:lambda:us-west-2:account-id:function:MyFunction. - // For more information about AWS Lambda, see the AWS Lambda Developer Guide - // (http://docs.aws.amazon.com/lambda/latest/dg/welcome.html). - FunctionArn *string `type:"string" required:"true"` - - // The invocation type of the AWS Lambda function. An invocation type of RequestResponse - // means that the execution of the function will immediately result in a response, - // and a value of Event means that the function will be invoked asynchronously. - // The default value is Event. For information about AWS Lambda invocation types, - // see the AWS Lambda Developer Guide (http://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html). - // - // There is a 30-second timeout on RequestResponse invocations. You should - // use Event invocation in most cases. Use RequestResponse only when you want - // to make a mail flow decision, such as whether to stop the receipt rule or - // the receipt rule set. - InvocationType *string `type:"string" enum:"InvocationType"` - - // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the - // Lambda action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. - // For more information about Amazon SNS topics, see the Amazon SNS Developer - // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html). - TopicArn *string `type:"string"` -} - -// String returns the string representation -func (s LambdaAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s LambdaAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *LambdaAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LambdaAction"} - if s.FunctionArn == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListIdentitiesInput struct { - _ struct{} `type:"structure"` - - // The type of the identities to list. Possible values are "EmailAddress" and - // "Domain". If this parameter is omitted, then all identities will be listed. - IdentityType *string `type:"string" enum:"IdentityType"` - - // The maximum number of identities per page. Possible values are 1-1000 inclusive. - MaxItems *int64 `type:"integer"` - - // The token to use for pagination. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s ListIdentitiesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListIdentitiesInput) GoString() string { - return s.String() -} - -type ListIdentitiesOutput struct { - _ struct{} `type:"structure"` - - // A list of identities. - Identities []*string `type:"list" required:"true"` - - // The token used for pagination. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s ListIdentitiesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListIdentitiesOutput) GoString() string { - return s.String() -} - -type ListIdentityPoliciesInput struct { - _ struct{} `type:"structure"` - - // The identity that is associated with the policy for which the policies will - // be listed. You can specify an identity by using its name or by using its - // Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. - // - // To successfully call this API, you must own the identity. - Identity *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s ListIdentityPoliciesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListIdentityPoliciesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListIdentityPoliciesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListIdentityPoliciesInput"} - if s.Identity == nil { - invalidParams.Add(request.NewErrParamRequired("Identity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListIdentityPoliciesOutput struct { - _ struct{} `type:"structure"` - - // A list of names of policies that apply to the specified identity. - PolicyNames []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s ListIdentityPoliciesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListIdentityPoliciesOutput) GoString() string { - return s.String() -} - -type ListReceiptFiltersInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ListReceiptFiltersInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListReceiptFiltersInput) GoString() string { - return s.String() -} - -type ListReceiptFiltersOutput struct { - _ struct{} `type:"structure"` - - // A list of IP address filter data structures, which each consist of a name, - // an IP address range, and whether to allow or block mail from it. - Filters []*ReceiptFilter `type:"list"` -} - -// String returns the string representation -func (s ListReceiptFiltersOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListReceiptFiltersOutput) GoString() string { - return s.String() -} - -type ListReceiptRuleSetsInput struct { - _ struct{} `type:"structure"` - - // A token returned from a previous call to ListReceiptRuleSets to indicate - // the position in the receipt rule set list. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s ListReceiptRuleSetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListReceiptRuleSetsInput) GoString() string { - return s.String() -} - -type ListReceiptRuleSetsOutput struct { - _ struct{} `type:"structure"` - - // A token indicating that there are additional receipt rule sets available - // to be listed. Pass this token to successive calls of ListReceiptRuleSets - // to retrieve up to 100 receipt rule sets at a time. - NextToken *string `type:"string"` - - // The metadata for the currently active receipt rule set. The metadata consists - // of the rule set name and the timestamp of when the rule set was created. - RuleSets []*ReceiptRuleSetMetadata `type:"list"` -} - -// String returns the string representation -func (s ListReceiptRuleSetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListReceiptRuleSetsOutput) GoString() string { - return s.String() -} - -type ListVerifiedEmailAddressesInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ListVerifiedEmailAddressesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListVerifiedEmailAddressesInput) GoString() string { - return s.String() -} - -type ListVerifiedEmailAddressesOutput struct { - _ struct{} `type:"structure"` - - // A list of email addresses that have been verified. - VerifiedEmailAddresses []*string `type:"list"` -} - -// String returns the string representation -func (s ListVerifiedEmailAddressesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListVerifiedEmailAddressesOutput) GoString() string { - return s.String() -} - -// Represents the message to be sent, composed of a subject and a body. -type Message struct { - _ struct{} `type:"structure"` - - // The message body. - Body *Body `type:"structure" required:"true"` - - // The subject of the message: A short summary of the content, which will appear - // in the recipient's inbox. - Subject *Content `type:"structure" required:"true"` -} - -// String returns the string representation -func (s Message) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Message) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Message) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Message"} - if s.Body == nil { - invalidParams.Add(request.NewErrParamRequired("Body")) - } - if s.Subject == nil { - invalidParams.Add(request.NewErrParamRequired("Subject")) - } - if s.Body != nil { - if err := s.Body.Validate(); err != nil { - invalidParams.AddNested("Body", err.(request.ErrInvalidParams)) - } - } - if s.Subject != nil { - if err := s.Subject.Validate(); err != nil { - invalidParams.AddNested("Subject", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Message-related information to include in the Delivery Status Notification -// (DSN) when an email that Amazon SES receives on your behalf bounces. -// -// For information about receiving email through Amazon SES, see the Amazon -// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). -type MessageDsn struct { - _ struct{} `type:"structure"` - - // When the message was received by the reporting mail transfer agent (MTA), - // in RFC 822 (https://www.ietf.org/rfc/rfc0822.txt) date-time format. - ArrivalDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // Additional X-headers to include in the DSN. - ExtensionFields []*ExtensionField `type:"list"` - - // The reporting MTA that attempted to deliver the message, formatted as specified - // in RFC 3464 (https://tools.ietf.org/html/rfc3464) (mta-name-type; mta-name). - // The default value is dns; inbound-smtp.[region].amazonaws.com. - ReportingMta *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s MessageDsn) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MessageDsn) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *MessageDsn) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MessageDsn"} - if s.ReportingMta == nil { - invalidParams.Add(request.NewErrParamRequired("ReportingMta")) - } - if s.ExtensionFields != nil { - for i, v := range s.ExtensionFields { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ExtensionFields", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type PutIdentityPolicyInput struct { - _ struct{} `type:"structure"` - - // The identity to which the policy will apply. You can specify an identity - // by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, - // example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. - // - // To successfully call this API, you must own the identity. - Identity *string `type:"string" required:"true"` - - // The text of the policy in JSON format. The policy cannot exceed 4 KB. - // - // For information about the syntax of sending authorization policies, see - // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html). - Policy *string `min:"1" type:"string" required:"true"` - - // The name of the policy. - // - // The policy name cannot exceed 64 characters and can only include alphanumeric - // characters, dashes, and underscores. - PolicyName *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s PutIdentityPolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutIdentityPolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutIdentityPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutIdentityPolicyInput"} - if s.Identity == nil { - invalidParams.Add(request.NewErrParamRequired("Identity")) - } - if s.Policy == nil { - invalidParams.Add(request.NewErrParamRequired("Policy")) - } - if s.Policy != nil && len(*s.Policy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) - } - if s.PolicyName == nil { - invalidParams.Add(request.NewErrParamRequired("PolicyName")) - } - if s.PolicyName != nil && len(*s.PolicyName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type PutIdentityPolicyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s PutIdentityPolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutIdentityPolicyOutput) GoString() string { - return s.String() -} - -// Represents the raw data of the message. -type RawMessage struct { - _ struct{} `type:"structure"` - - // The raw data of the message. The client must ensure that the message format - // complies with Internet email standards regarding email header fields, MIME - // types, MIME encoding, and base64 encoding (if necessary). - // - // The To:, CC:, and BCC: headers in the raw message can contain a group list. - // - // If you are using SendRawEmail with sending authorization, you can include - // X-headers in the raw message to specify the "Source," "From," and "Return-Path" - // addresses. For more information, see the documentation for SendRawEmail. - // - // Do not include these X-headers in the DKIM signature, because they are removed - // by Amazon SES before sending the email. For more information, go to the Amazon - // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html). - // - // Data is automatically base64 encoded/decoded by the SDK. - Data []byte `type:"blob" required:"true"` -} - -// String returns the string representation -func (s RawMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RawMessage) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RawMessage) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RawMessage"} - if s.Data == nil { - invalidParams.Add(request.NewErrParamRequired("Data")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// An action that Amazon SES can take when it receives an email on behalf of -// one or more email addresses or domains that you own. An instance of this -// data type can represent only one action. -// -// For information about setting up receipt rules, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html). -type ReceiptAction struct { - _ struct{} `type:"structure"` - - // Adds a header to the received email. - AddHeaderAction *AddHeaderAction `type:"structure"` - - // Rejects the received email by returning a bounce response to the sender and, - // optionally, publishes a notification to Amazon Simple Notification Service - // (Amazon SNS). - BounceAction *BounceAction `type:"structure"` - - // Calls an AWS Lambda function, and optionally, publishes a notification to - // Amazon SNS. - LambdaAction *LambdaAction `type:"structure"` - - // Saves the received message to an Amazon Simple Storage Service (Amazon S3) - // bucket and, optionally, publishes a notification to Amazon SNS. - S3Action *S3Action `type:"structure"` - - // Publishes the email content within a notification to Amazon SNS. - SNSAction *SNSAction `type:"structure"` +// Represents a list of SendDataPoint items returned from a successful GetSendStatistics +// request. This list contains aggregated data from the previous two weeks of +// sending activity. +type GetSendStatisticsOutput struct { + // A list of data points, each of which represents 15 minutes of activity. + SendDataPoints []*SendDataPoint `type:"list"` - // Terminates the evaluation of the receipt rule set and optionally publishes - // a notification to Amazon SNS. - StopAction *StopAction `type:"structure"` + metadataGetSendStatisticsOutput `json:"-" xml:"-"` +} - // Calls Amazon WorkMail and, optionally, publishes a notification to Amazon - // SNS. - WorkmailAction *WorkmailAction `type:"structure"` +type metadataGetSendStatisticsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ReceiptAction) String() string { +func (s GetSendStatisticsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReceiptAction) GoString() string { +func (s GetSendStatisticsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReceiptAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReceiptAction"} - if s.AddHeaderAction != nil { - if err := s.AddHeaderAction.Validate(); err != nil { - invalidParams.AddNested("AddHeaderAction", err.(request.ErrInvalidParams)) - } - } - if s.BounceAction != nil { - if err := s.BounceAction.Validate(); err != nil { - invalidParams.AddNested("BounceAction", err.(request.ErrInvalidParams)) - } - } - if s.LambdaAction != nil { - if err := s.LambdaAction.Validate(); err != nil { - invalidParams.AddNested("LambdaAction", err.(request.ErrInvalidParams)) - } - } - if s.S3Action != nil { - if err := s.S3Action.Validate(); err != nil { - invalidParams.AddNested("S3Action", err.(request.ErrInvalidParams)) - } - } - if s.SNSAction != nil { - if err := s.SNSAction.Validate(); err != nil { - invalidParams.AddNested("SNSAction", err.(request.ErrInvalidParams)) - } - } - if s.StopAction != nil { - if err := s.StopAction.Validate(); err != nil { - invalidParams.AddNested("StopAction", err.(request.ErrInvalidParams)) - } - } - if s.WorkmailAction != nil { - if err := s.WorkmailAction.Validate(); err != nil { - invalidParams.AddNested("WorkmailAction", err.(request.ErrInvalidParams)) - } - } +// Represents the DKIM attributes of a verified email address or a domain. +type IdentityDkimAttributes struct { + // True if DKIM signing is enabled for email sent from the identity; false otherwise. + DkimEnabled *bool `type:"boolean" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // A set of character strings that represent the domain's identity. Using these + // tokens, you will need to create DNS CNAME records that point to DKIM public + // keys hosted by Amazon SES. Amazon Web Services will eventually detect that + // you have updated your DNS records; this detection process may take up to + // 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign + // email originating from that domain. (This only applies to domain identities, + // not email address identities.) + // + // For more information about creating DNS records using DKIM tokens, go to + // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html). + DkimTokens []*string `type:"list"` -// A receipt IP address filter enables you to specify whether to accept or reject -// mail originating from an IP address or range of IP addresses. -// -// For information about setting up IP address filters, see the Amazon SES -// Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). -type ReceiptFilter struct { - _ struct{} `type:"structure"` + // Describes whether Amazon SES has successfully verified the DKIM DNS records + // (tokens) published in the domain name's DNS. (This only applies to domain + // identities, not email address identities.) + DkimVerificationStatus *string `type:"string" required:"true" enum:"VerificationStatus"` - // A structure that provides the IP addresses to block or allow, and whether - // to block or allow incoming mail from them. - IpFilter *ReceiptIpFilter `type:"structure" required:"true"` + metadataIdentityDkimAttributes `json:"-" xml:"-"` +} - // The name of the IP address filter. The name must: - // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). Start and end with a letter or number. Contain less than - // 64 characters. - Name *string `type:"string" required:"true"` +type metadataIdentityDkimAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ReceiptFilter) String() string { +func (s IdentityDkimAttributes) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReceiptFilter) GoString() string { +func (s IdentityDkimAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReceiptFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReceiptFilter"} - if s.IpFilter == nil { - invalidParams.Add(request.NewErrParamRequired("IpFilter")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.IpFilter != nil { - if err := s.IpFilter.Validate(); err != nil { - invalidParams.AddNested("IpFilter", err.(request.ErrInvalidParams)) - } - } +// Represents the notification attributes of an identity, including whether +// an identity has Amazon Simple Notification Service (Amazon SNS) topics set +// for bounce, complaint, and/or delivery notifications, and whether feedback +// forwarding is enabled for bounce and complaint notifications. +type IdentityNotificationAttributes struct { + // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will + // publish bounce notifications. + BounceTopic *string `type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will + // publish complaint notifications. + ComplaintTopic *string `type:"string" required:"true"` -// A receipt IP address filter enables you to specify whether to accept or reject -// mail originating from an IP address or range of IP addresses. -// -// For information about setting up IP address filters, see the Amazon SES -// Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). -type ReceiptIpFilter struct { - _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will + // publish delivery notifications. + DeliveryTopic *string `type:"string" required:"true"` + + // Describes whether Amazon SES will forward bounce and complaint notifications + // as email. true indicates that Amazon SES will forward bounce and complaint + // notifications as email, while false indicates that bounce and complaint notifications + // will be published only to the specified bounce and complaint Amazon SNS topics. + ForwardingEnabled *bool `type:"boolean" required:"true"` - // A single IP address or a range of IP addresses that you want to block or - // allow, specified in Classless Inter-Domain Routing (CIDR) notation. An example - // of a single email address is 10.0.0.1. An example of a range of IP addresses - // is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317 (https://tools.ietf.org/html/rfc2317). - Cidr *string `type:"string" required:"true"` + metadataIdentityNotificationAttributes `json:"-" xml:"-"` +} - // Indicates whether to block or allow incoming mail from the specified IP addresses. - Policy *string `type:"string" required:"true" enum:"ReceiptFilterPolicy"` +type metadataIdentityNotificationAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ReceiptIpFilter) String() string { +func (s IdentityNotificationAttributes) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReceiptIpFilter) GoString() string { +func (s IdentityNotificationAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReceiptIpFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReceiptIpFilter"} - if s.Cidr == nil { - invalidParams.Add(request.NewErrParamRequired("Cidr")) - } - if s.Policy == nil { - invalidParams.Add(request.NewErrParamRequired("Policy")) - } +// Represents the verification attributes of a single identity. +type IdentityVerificationAttributes struct { + // The verification status of the identity: "Pending", "Success", "Failed", + // or "TemporaryFailure". + VerificationStatus *string `type:"string" required:"true" enum:"VerificationStatus"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + // The verification token for a domain identity. Null for email address identities. + VerificationToken *string `type:"string"` + + metadataIdentityVerificationAttributes `json:"-" xml:"-"` } -// Receipt rules enable you to specify which actions Amazon SES should take -// when it receives mail on behalf of one or more email addresses or domains -// that you own. -// -// Each receipt rule defines a set of email addresses or domains to which it -// applies. If the email addresses or domains match at least one recipient address -// of the message, Amazon SES executes all of the receipt rule's actions on -// the message. -// -// For information about setting up receipt rules, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html). -type ReceiptRule struct { - _ struct{} `type:"structure"` +type metadataIdentityVerificationAttributes struct { + SDKShapeTraits bool `type:"structure"` +} + +// String returns the string representation +func (s IdentityVerificationAttributes) String() string { + return awsutil.Prettify(s) +} - // An ordered list of actions to perform on messages that match at least one - // of the recipient email addresses or domains specified in the receipt rule. - Actions []*ReceiptAction `type:"list"` +// GoString returns the string representation +func (s IdentityVerificationAttributes) GoString() string { + return s.String() +} - // If true, the receipt rule is active. The default value is false. - Enabled *bool `type:"boolean"` +// Represents a request instructing the service to list all identities for the +// AWS Account. +type ListIdentitiesInput struct { + // The type of the identities to list. Possible values are "EmailAddress" and + // "Domain". If this parameter is omitted, then all identities will be listed. + IdentityType *string `type:"string" enum:"IdentityType"` - // The name of the receipt rule. The name must: - // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). Start and end with a letter or number. Contain less than - // 64 characters. - Name *string `type:"string" required:"true"` + // The maximum number of identities per page. Possible values are 1-1000 inclusive. + MaxItems *int64 `type:"integer"` - // The recipient domains and email addresses to which the receipt rule applies. - // If this field is not specified, this rule will match all recipients under - // all verified domains. - Recipients []*string `type:"list"` + // The token to use for pagination. + NextToken *string `type:"string"` - // If true, then messages to which this receipt rule applies are scanned for - // spam and viruses. The default value is false. - ScanEnabled *bool `type:"boolean"` + metadataListIdentitiesInput `json:"-" xml:"-"` +} - // Specifies whether Amazon SES should require that incoming email is delivered - // over a connection encrypted with Transport Layer Security (TLS). If this - // parameter is set to Require, Amazon SES will bounce emails that are not received - // over TLS. The default is Optional. - TlsPolicy *string `type:"string" enum:"TlsPolicy"` +type metadataListIdentitiesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ReceiptRule) String() string { +func (s ListIdentitiesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReceiptRule) GoString() string { +func (s ListIdentitiesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReceiptRule) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReceiptRule"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Actions != nil { - for i, v := range s.Actions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} +// Represents a list of all verified identities for the AWS Account. +type ListIdentitiesOutput struct { + // A list of identities. + Identities []*string `type:"list" required:"true"` -// Information about a receipt rule set. -// -// A receipt rule set is a collection of rules that specify what Amazon SES -// should do with mail it receives on behalf of your account's verified domains. -// -// For information about setting up receipt rule sets, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html). -type ReceiptRuleSetMetadata struct { - _ struct{} `type:"structure"` + // The token used for pagination. + NextToken *string `type:"string"` - // The date and time the receipt rule set was created. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + metadataListIdentitiesOutput `json:"-" xml:"-"` +} - // The name of the receipt rule set. The name must: - // - // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores - // (_), or dashes (-). Start and end with a letter or number. Contain less than - // 64 characters. - Name *string `type:"string"` +type metadataListIdentitiesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ReceiptRuleSetMetadata) String() string { +func (s ListIdentitiesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReceiptRuleSetMetadata) GoString() string { +func (s ListIdentitiesOutput) GoString() string { return s.String() } -// Recipient-related information to include in the Delivery Status Notification -// (DSN) when an email that Amazon SES receives on your behalf bounces. -// -// For information about receiving email through Amazon SES, see the Amazon -// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). -type RecipientDsnFields struct { - _ struct{} `type:"structure"` - - // The action performed by the reporting mail transfer agent (MTA) as a result - // of its attempt to deliver the message to the recipient address. This is required - // by RFC 3464 (https://tools.ietf.org/html/rfc3464). - Action *string `type:"string" required:"true" enum:"DsnAction"` - - // An extended explanation of what went wrong; this is usually an SMTP response. - // See RFC 3463 (https://tools.ietf.org/html/rfc3463) for the correct formatting - // of this parameter. - DiagnosticCode *string `type:"string"` - - // Additional X-headers to include in the DSN. - ExtensionFields []*ExtensionField `type:"list"` - - // The email address to which the message was ultimately delivered. This corresponds - // to the Final-Recipient in the DSN. If not specified, FinalRecipient will - // be set to the Recipient specified in the BouncedRecipientInfo structure. - // Either FinalRecipient or the recipient in BouncedRecipientInfo must be a - // recipient of the original bounced message. +// Represents a request instructing the service to list all authorization policies, +// by name, applying to an identity. +type ListIdentityPoliciesInput struct { + // The identity that is associated with the policy for which the policies will + // be listed. You can specify an identity by using its name or by using its + // Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. // - // Do not prepend the FinalRecipient email address with rfc 822;, as described - // in RFC 3798 (https://tools.ietf.org/html/rfc3798). - FinalRecipient *string `type:"string"` - - // The time the final delivery attempt was made, in RFC 822 (https://www.ietf.org/rfc/rfc0822.txt) - // date-time format. - LastAttemptDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // To successfully call this API, you must own the identity. + Identity *string `type:"string" required:"true"` - // The MTA to which the remote MTA attempted to deliver the message, formatted - // as specified in RFC 3464 (https://tools.ietf.org/html/rfc3464) (mta-name-type; - // mta-name). This parameter typically applies only to propagating synchronous - // bounces. - RemoteMta *string `type:"string"` + metadataListIdentityPoliciesInput `json:"-" xml:"-"` +} - // The status code that indicates what went wrong. This is required by RFC 3464 - // (https://tools.ietf.org/html/rfc3464). - Status *string `type:"string" required:"true"` +type metadataListIdentityPoliciesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s RecipientDsnFields) String() string { +func (s ListIdentityPoliciesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RecipientDsnFields) GoString() string { +func (s ListIdentityPoliciesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RecipientDsnFields) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RecipientDsnFields"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - if s.ExtensionFields != nil { - for i, v := range s.ExtensionFields { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ExtensionFields", i), err.(request.ErrInvalidParams)) - } - } - } +// Represents a list of policy names returned from a successful ListIdentityPolicies +// request. +type ListIdentityPoliciesOutput struct { + // A list of names of policies that apply to the specified identity. + PolicyNames []*string `type:"list" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataListIdentityPoliciesOutput `json:"-" xml:"-"` } -type ReorderReceiptRuleSetInput struct { - _ struct{} `type:"structure"` - - // A list of the specified receipt rule set's receipt rules in the order that - // you want to put them. - RuleNames []*string `type:"list" required:"true"` - - // The name of the receipt rule set to reorder. - RuleSetName *string `type:"string" required:"true"` +type metadataListIdentityPoliciesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ReorderReceiptRuleSetInput) String() string { +func (s ListIdentityPoliciesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReorderReceiptRuleSetInput) GoString() string { +func (s ListIdentityPoliciesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReorderReceiptRuleSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReorderReceiptRuleSetInput"} - if s.RuleNames == nil { - invalidParams.Add(request.NewErrParamRequired("RuleNames")) - } - if s.RuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleSetName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ListVerifiedEmailAddressesInput struct { + metadataListVerifiedEmailAddressesInput `json:"-" xml:"-"` } -type ReorderReceiptRuleSetOutput struct { - _ struct{} `type:"structure"` +type metadataListVerifiedEmailAddressesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ReorderReceiptRuleSetOutput) String() string { +func (s ListVerifiedEmailAddressesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReorderReceiptRuleSetOutput) GoString() string { +func (s ListVerifiedEmailAddressesInput) GoString() string { return s.String() } -// When included in a receipt rule, this action saves the received message to -// an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes -// a notification to Amazon Simple Notification Service (Amazon SNS). -// -// To enable Amazon SES to write emails to your Amazon S3 bucket, use an AWS -// KMS key to encrypt your emails, or publish to an Amazon SNS topic of another -// account, Amazon SES must have permission to access those resources. For information -// about giving permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). -// -// When you save your emails to an Amazon S3 bucket, the maximum email size -// (including headers) is 30 MB. Emails larger than that will bounce. For information -// about specifying Amazon S3 actions in receipt rules, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-s3.html). -type S3Action struct { - _ struct{} `type:"structure"` - - // The name of the Amazon S3 bucket to which to save the received email. - BucketName *string `type:"string" required:"true"` - - // The customer master key that Amazon SES should use to encrypt your emails - // before saving them to the Amazon S3 bucket. You can use the default master - // key or a custom master key you created in AWS KMS as follows: - // - // To use the default master key, provide an ARN in the form of arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses. - // For example, if your AWS account ID is 123456789012 and you want to use the - // default master key in the US West (Oregon) region, the ARN of the default - // master key would be arn:aws:kms:us-west-2:123456789012:alias/aws/ses. If - // you use the default master key, you don't need to perform any extra steps - // to give Amazon SES permission to use the key. To use a custom master key - // you created in AWS KMS, provide the ARN of the master key and ensure that - // you add a statement to your key's policy to give Amazon SES permission to - // use it. For more information about giving permissions, see the Amazon SES - // Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). - // For more information about key policies, see the AWS KMS Developer Guide - // (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html). If - // you do not specify a master key, Amazon SES will not encrypt your emails. - // - // Your mail is encrypted by Amazon SES using the Amazon S3 encryption client - // before the mail is submitted to Amazon S3 for storage. It is not encrypted - // using Amazon S3 server-side encryption. This means that you must use the - // Amazon S3 encryption client to decrypt the email after retrieving it from - // Amazon S3, as the service has no access to use your AWS KMS keys for decryption. - // This encryption client is currently available with the AWS Java SDK (https://aws.amazon.com/sdk-for-java/) - // and AWS Ruby SDK (https://aws.amazon.com/sdk-for-ruby/) only. For more information - // about client-side encryption using AWS KMS master keys, see the Amazon S3 - // Developer Guide (http://alpha-docs-aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html). - KmsKeyArn *string `type:"string"` - - // The key prefix of the Amazon S3 bucket. The key prefix is similar to a directory - // name that enables you to store similar data under the same directory in a - // bucket. - ObjectKeyPrefix *string `type:"string"` - - // The ARN of the Amazon SNS topic to notify when the message is saved to the - // Amazon S3 bucket. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. - // For more information about Amazon SNS topics, see the Amazon SNS Developer - // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html). - TopicArn *string `type:"string"` +// Represents a list of all the email addresses verified for the current user. +type ListVerifiedEmailAddressesOutput struct { + // A list of email addresses that have been verified. + VerifiedEmailAddresses []*string `type:"list"` + + metadataListVerifiedEmailAddressesOutput `json:"-" xml:"-"` +} + +type metadataListVerifiedEmailAddressesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s S3Action) String() string { +func (s ListVerifiedEmailAddressesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s S3Action) GoString() string { +func (s ListVerifiedEmailAddressesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *S3Action) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3Action"} - if s.BucketName == nil { - invalidParams.Add(request.NewErrParamRequired("BucketName")) - } +// Represents the message to be sent, composed of a subject and a body. +type Message struct { + // The message body. + Body *Body `type:"structure" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + // The subject of the message: A short summary of the content, which will appear + // in the recipient's inbox. + Subject *Content `type:"structure" required:"true"` + + metadataMessage `json:"-" xml:"-"` } -// When included in a receipt rule, this action publishes a notification to -// Amazon Simple Notification Service (Amazon SNS). This action includes a complete -// copy of the email content in the Amazon SNS notifications. Amazon SNS notifications -// for all other actions simply provide information about the email. They do -// not include the email content itself. -// -// If you own the Amazon SNS topic, you don't need to do anything to give Amazon -// SES permission to publish emails to it. However, if you don't own the Amazon -// SNS topic, you need to attach a policy to the topic to give Amazon SES permissions -// to access it. For information about giving permissions, see the Amazon SES -// Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). -// -// You can only publish emails that are 150 KB or less (including the header) -// to Amazon SNS. Larger emails will bounce. If you anticipate emails larger -// than 150 KB, use the S3 action instead. For information about using a receipt -// rule to publish an Amazon SNS notification, see the Amazon SES Developer -// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-sns.html). -type SNSAction struct { - _ struct{} `type:"structure"` - - // The encoding to use for the email within the Amazon SNS notification. UTF-8 - // is easier to use, but may not preserve all special characters when a message - // was encoded with a different encoding format. Base64 preserves all special - // characters. The default value is UTF-8. - Encoding *string `type:"string" enum:"SNSActionEncoding"` - - // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. An example - // of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. - // For more information about Amazon SNS topics, see the Amazon SNS Developer - // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html). - TopicArn *string `type:"string" required:"true"` +type metadataMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s SNSAction) String() string { +func (s Message) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SNSAction) GoString() string { +func (s Message) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SNSAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SNSAction"} - if s.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } +// Represents a request instructing the service to apply an authorization policy +// to an identity. +type PutIdentityPolicyInput struct { + // The identity to which the policy will apply. You can specify an identity + // by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, + // example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. + // + // To successfully call this API, you must own the identity. + Identity *string `type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The text of the policy in JSON format. The policy cannot exceed 4 KB. + // + // For information about the syntax of sending authorization policies, see + // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html). + Policy *string `type:"string" required:"true"` -type SendBounceInput struct { - _ struct{} `type:"structure"` + // The name of the policy. + // + // The policy name cannot exceed 64 characters and can only include alphanumeric + // characters, dashes, and underscores. + PolicyName *string `type:"string" required:"true"` - // The address to use in the "From" header of the bounce message. This must - // be an identity that you have verified with Amazon SES. - BounceSender *string `type:"string" required:"true"` + metadataPutIdentityPolicyInput `json:"-" xml:"-"` +} - // This parameter is used only for sending authorization. It is the ARN of the - // identity that is associated with the sending authorization policy that permits - // you to use the address in the "From" header of the bounce. For more information - // about sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). - BounceSenderArn *string `type:"string"` +type metadataPutIdentityPolicyInput struct { + SDKShapeTraits bool `type:"structure"` +} - // A list of recipients of the bounced message, including the information required - // to create the Delivery Status Notifications (DSNs) for the recipients. You - // must specify at least one BouncedRecipientInfo in the list. - BouncedRecipientInfoList []*BouncedRecipientInfo `type:"list" required:"true"` +// String returns the string representation +func (s PutIdentityPolicyInput) String() string { + return awsutil.Prettify(s) +} - // Human-readable text for the bounce message to explain the failure. If not - // specified, the text will be auto-generated based on the bounced recipient - // information. - Explanation *string `type:"string"` +// GoString returns the string representation +func (s PutIdentityPolicyInput) GoString() string { + return s.String() +} - // Message-related DSN fields. If not specified, Amazon SES will choose the - // values. - MessageDsn *MessageDsn `type:"structure"` +// An empty element. Receiving this element indicates that the request completed +// successfully. +type PutIdentityPolicyOutput struct { + metadataPutIdentityPolicyOutput `json:"-" xml:"-"` +} - // The message ID of the message to be bounced. - OriginalMessageId *string `type:"string" required:"true"` +type metadataPutIdentityPolicyOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s SendBounceInput) String() string { +func (s PutIdentityPolicyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SendBounceInput) GoString() string { +func (s PutIdentityPolicyOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SendBounceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SendBounceInput"} - if s.BounceSender == nil { - invalidParams.Add(request.NewErrParamRequired("BounceSender")) - } - if s.BouncedRecipientInfoList == nil { - invalidParams.Add(request.NewErrParamRequired("BouncedRecipientInfoList")) - } - if s.OriginalMessageId == nil { - invalidParams.Add(request.NewErrParamRequired("OriginalMessageId")) - } - if s.BouncedRecipientInfoList != nil { - for i, v := range s.BouncedRecipientInfoList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "BouncedRecipientInfoList", i), err.(request.ErrInvalidParams)) - } - } - } - if s.MessageDsn != nil { - if err := s.MessageDsn.Validate(); err != nil { - invalidParams.AddNested("MessageDsn", err.(request.ErrInvalidParams)) - } - } +// Represents the raw data of the message. +type RawMessage struct { + // The raw data of the message. The client must ensure that the message format + // complies with Internet email standards regarding email header fields, MIME + // types, MIME encoding, and base64 encoding (if necessary). + // + // The To:, CC:, and BCC: headers in the raw message can contain a group list. + // + // If you are using SendRawEmail with sending authorization, you can include + // X-headers in the raw message to specify the "Source," "From," and "Return-Path" + // addresses. For more information, see the documentation for SendRawEmail. + // + // Do not include these X-headers in the DKIM signature, because they are removed + // by Amazon SES before sending the email. For more information, go to the Amazon + // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html). + Data []byte `type:"blob" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataRawMessage `json:"-" xml:"-"` } -type SendBounceOutput struct { - _ struct{} `type:"structure"` - - // The message ID of the bounce message. - MessageId *string `type:"string"` +type metadataRawMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s SendBounceOutput) String() string { +func (s RawMessage) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SendBounceOutput) GoString() string { +func (s RawMessage) GoString() string { return s.String() } // Represents sending statistics data. Each SendDataPoint contains statistics // for a 15-minute period of sending activity. type SendDataPoint struct { - _ struct{} `type:"structure"` - // Number of emails that have bounced. Bounces *int64 `type:"long"` @@ -4003,6 +1721,12 @@ type SendDataPoint struct { // Time of the data point. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + metadataSendDataPoint `json:"-" xml:"-"` +} + +type metadataSendDataPoint struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4015,9 +1739,12 @@ func (s SendDataPoint) GoString() string { return s.String() } +// Represents a request instructing the service to send a single email message. +// +// This datatype can be used in application code to compose a message consisting +// of source, destination, message, reply-to, and return-path parts. This object +// can then be sent using the SendEmail action. type SendEmailInput struct { - _ struct{} `type:"structure"` - // The destination for this email, composed of To:, CC:, and BCC: fields. Destination *Destination `type:"structure" required:"true"` @@ -4079,6 +1806,12 @@ type SendEmailInput struct { // For more information about sending authorization, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). SourceArn *string `type:"string"` + + metadataSendEmailInput `json:"-" xml:"-"` +} + +type metadataSendEmailInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4091,35 +1824,16 @@ func (s SendEmailInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SendEmailInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SendEmailInput"} - if s.Destination == nil { - invalidParams.Add(request.NewErrParamRequired("Destination")) - } - if s.Message == nil { - invalidParams.Add(request.NewErrParamRequired("Message")) - } - if s.Source == nil { - invalidParams.Add(request.NewErrParamRequired("Source")) - } - if s.Message != nil { - if err := s.Message.Validate(); err != nil { - invalidParams.AddNested("Message", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - +// Represents a unique message ID returned from a successful SendEmail request. type SendEmailOutput struct { - _ struct{} `type:"structure"` - // The unique message identifier returned from the SendEmail action. MessageId *string `type:"string" required:"true"` + + metadataSendEmailOutput `json:"-" xml:"-"` +} + +type metadataSendEmailOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4132,9 +1846,12 @@ func (s SendEmailOutput) GoString() string { return s.String() } +// Represents a request instructing the service to send a raw email message. +// +// This datatype can be used in application code to compose a message consisting +// of source, destination, and raw message text. This object can then be sent +// using the SendRawEmail action. type SendRawEmailInput struct { - _ struct{} `type:"structure"` - // A list of destinations for the message, consisting of To:, CC:, and BCC: // addresses. Destinations []*string `type:"list"` @@ -4211,6 +1928,12 @@ type SendRawEmailInput struct { // For information about when to use this parameter, see the description of // SendRawEmail in this guide, or see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html). SourceArn *string `type:"string"` + + metadataSendRawEmailInput `json:"-" xml:"-"` +} + +type metadataSendRawEmailInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4223,82 +1946,43 @@ func (s SendRawEmailInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SendRawEmailInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SendRawEmailInput"} - if s.RawMessage == nil { - invalidParams.Add(request.NewErrParamRequired("RawMessage")) - } - if s.RawMessage != nil { - if err := s.RawMessage.Validate(); err != nil { - invalidParams.AddNested("RawMessage", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - +// Represents a unique message ID returned from a successful SendRawEmail request. type SendRawEmailOutput struct { - _ struct{} `type:"structure"` - // The unique message identifier returned from the SendRawEmail action. MessageId *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s SendRawEmailOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SendRawEmailOutput) GoString() string { - return s.String() -} - -type SetActiveReceiptRuleSetInput struct { - _ struct{} `type:"structure"` - - // The name of the receipt rule set to make active. Setting this value to null - // disables all email receiving. - RuleSetName *string `type:"string"` -} - -// String returns the string representation -func (s SetActiveReceiptRuleSetInput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s SetActiveReceiptRuleSetInput) GoString() string { - return s.String() + metadataSendRawEmailOutput `json:"-" xml:"-"` } -type SetActiveReceiptRuleSetOutput struct { - _ struct{} `type:"structure"` +type metadataSendRawEmailOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s SetActiveReceiptRuleSetOutput) String() string { +func (s SendRawEmailOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SetActiveReceiptRuleSetOutput) GoString() string { +func (s SendRawEmailOutput) GoString() string { return s.String() } +// Represents a request instructing the service to enable or disable DKIM signing +// for an identity. type SetIdentityDkimEnabledInput struct { - _ struct{} `type:"structure"` - // Sets whether DKIM signing is enabled for an identity. Set to true to enable // DKIM signing for this identity; false to disable it. DkimEnabled *bool `type:"boolean" required:"true"` // The identity for which DKIM signing should be enabled or disabled. Identity *string `type:"string" required:"true"` + + metadataSetIdentityDkimEnabledInput `json:"-" xml:"-"` +} + +type metadataSetIdentityDkimEnabledInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4311,24 +1995,14 @@ func (s SetIdentityDkimEnabledInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetIdentityDkimEnabledInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetIdentityDkimEnabledInput"} - if s.DkimEnabled == nil { - invalidParams.Add(request.NewErrParamRequired("DkimEnabled")) - } - if s.Identity == nil { - invalidParams.Add(request.NewErrParamRequired("Identity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// An empty element. Receiving this element indicates that the request completed +// successfully. +type SetIdentityDkimEnabledOutput struct { + metadataSetIdentityDkimEnabledOutput `json:"-" xml:"-"` } -type SetIdentityDkimEnabledOutput struct { - _ struct{} `type:"structure"` +type metadataSetIdentityDkimEnabledOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4342,8 +2016,6 @@ func (s SetIdentityDkimEnabledOutput) GoString() string { } type SetIdentityFeedbackForwardingEnabledInput struct { - _ struct{} `type:"structure"` - // Sets whether Amazon SES will forward bounce and complaint notifications as // email. true specifies that Amazon SES will forward bounce and complaint notifications // as email, in addition to any Amazon SNS topic publishing otherwise specified. @@ -4355,6 +2027,12 @@ type SetIdentityFeedbackForwardingEnabledInput struct { // The identity for which to set bounce and complaint notification forwarding. // Examples: user@example.com, example.com. Identity *string `type:"string" required:"true"` + + metadataSetIdentityFeedbackForwardingEnabledInput `json:"-" xml:"-"` +} + +type metadataSetIdentityFeedbackForwardingEnabledInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4367,24 +2045,14 @@ func (s SetIdentityFeedbackForwardingEnabledInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetIdentityFeedbackForwardingEnabledInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetIdentityFeedbackForwardingEnabledInput"} - if s.ForwardingEnabled == nil { - invalidParams.Add(request.NewErrParamRequired("ForwardingEnabled")) - } - if s.Identity == nil { - invalidParams.Add(request.NewErrParamRequired("Identity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// An empty element. Receiving this element indicates that the request completed +// successfully. +type SetIdentityFeedbackForwardingEnabledOutput struct { + metadataSetIdentityFeedbackForwardingEnabledOutput `json:"-" xml:"-"` } -type SetIdentityFeedbackForwardingEnabledOutput struct { - _ struct{} `type:"structure"` +type metadataSetIdentityFeedbackForwardingEnabledOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4397,73 +2065,8 @@ func (s SetIdentityFeedbackForwardingEnabledOutput) GoString() string { return s.String() } -type SetIdentityMailFromDomainInput struct { - _ struct{} `type:"structure"` - - // The action that you want Amazon SES to take if it cannot successfully read - // the required MX record when you send an email. If you choose UseDefaultValue, - // Amazon SES will use amazonses.com (or a subdomain of that) as the MAIL FROM - // domain. If you choose RejectMessage, Amazon SES will return a MailFromDomainNotVerified - // error and not send the email. - // - // The action specified in BehaviorOnMXFailure is taken when the custom MAIL - // FROM domain setup is in the Pending, Failed, and TemporaryFailure states. - BehaviorOnMXFailure *string `type:"string" enum:"BehaviorOnMXFailure"` - - // The verified identity for which you want to enable or disable the specified - // custom MAIL FROM domain. - Identity *string `type:"string" required:"true"` - - // The custom MAIL FROM domain that you want the verified identity to use. The - // MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not - // be used in a "From" address if the MAIL FROM domain is the destination of - // email feedback forwarding (for more information, see the Amazon SES Developer - // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html)), - // and 3) not be used to receive emails. A value of null disables the custom - // MAIL FROM setting for the identity. - MailFromDomain *string `type:"string"` -} - -// String returns the string representation -func (s SetIdentityMailFromDomainInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetIdentityMailFromDomainInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetIdentityMailFromDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetIdentityMailFromDomainInput"} - if s.Identity == nil { - invalidParams.Add(request.NewErrParamRequired("Identity")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type SetIdentityMailFromDomainOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s SetIdentityMailFromDomainOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetIdentityMailFromDomainOutput) GoString() string { - return s.String() -} - +// Represents a request to set or clear an identity's notification topic. type SetIdentityNotificationTopicInput struct { - _ struct{} `type:"structure"` - // The identity for which the Amazon SNS topic will be set. You can specify // an identity by using its name or by using its Amazon Resource Name (ARN). // Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. @@ -4477,6 +2080,12 @@ type SetIdentityNotificationTopicInput struct { // is omitted from the request or a null value is passed, SnsTopic is cleared // and publishing is disabled. SnsTopic *string `type:"string"` + + metadataSetIdentityNotificationTopicInput `json:"-" xml:"-"` +} + +type metadataSetIdentityNotificationTopicInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4489,24 +2098,14 @@ func (s SetIdentityNotificationTopicInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetIdentityNotificationTopicInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetIdentityNotificationTopicInput"} - if s.Identity == nil { - invalidParams.Add(request.NewErrParamRequired("Identity")) - } - if s.NotificationType == nil { - invalidParams.Add(request.NewErrParamRequired("NotificationType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// An empty element. Receiving this element indicates that the request completed +// successfully. +type SetIdentityNotificationTopicOutput struct { + metadataSetIdentityNotificationTopicOutput `json:"-" xml:"-"` } -type SetIdentityNotificationTopicOutput struct { - _ struct{} `type:"structure"` +type metadataSetIdentityNotificationTopicOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4519,161 +2118,17 @@ func (s SetIdentityNotificationTopicOutput) GoString() string { return s.String() } -type SetReceiptRulePositionInput struct { - _ struct{} `type:"structure"` - - // The name of the receipt rule after which to place the specified receipt rule. - After *string `type:"string"` - - // The name of the receipt rule to reposition. - RuleName *string `type:"string" required:"true"` - - // The name of the receipt rule set that contains the receipt rule to reposition. - RuleSetName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s SetReceiptRulePositionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetReceiptRulePositionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetReceiptRulePositionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetReceiptRulePositionInput"} - if s.RuleName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleName")) - } - if s.RuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleSetName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type SetReceiptRulePositionOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s SetReceiptRulePositionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SetReceiptRulePositionOutput) GoString() string { - return s.String() -} - -// When included in a receipt rule, this action terminates the evaluation of -// the receipt rule set and, optionally, publishes a notification to Amazon -// Simple Notification Service (Amazon SNS). -// -// For information about setting a stop action in a receipt rule, see the Amazon -// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-stop.html). -type StopAction struct { - _ struct{} `type:"structure"` - - // The scope to which the Stop action applies. That is, what is being stopped. - Scope *string `type:"string" required:"true" enum:"StopScope"` - - // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the - // stop action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. - // For more information about Amazon SNS topics, see the Amazon SNS Developer - // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html). - TopicArn *string `type:"string"` -} - -// String returns the string representation -func (s StopAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StopAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopAction"} - if s.Scope == nil { - invalidParams.Add(request.NewErrParamRequired("Scope")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateReceiptRuleInput struct { - _ struct{} `type:"structure"` - - // A data structure that contains the updated receipt rule information. - Rule *ReceiptRule `type:"structure" required:"true"` - - // The name of the receipt rule set to which the receipt rule belongs. - RuleSetName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateReceiptRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateReceiptRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateReceiptRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateReceiptRuleInput"} - if s.Rule == nil { - invalidParams.Add(request.NewErrParamRequired("Rule")) - } - if s.RuleSetName == nil { - invalidParams.Add(request.NewErrParamRequired("RuleSetName")) - } - if s.Rule != nil { - if err := s.Rule.Validate(); err != nil { - invalidParams.AddNested("Rule", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateReceiptRuleOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UpdateReceiptRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateReceiptRuleOutput) GoString() string { - return s.String() -} - +// Represents a request instructing the service to begin DKIM verification for +// a domain. type VerifyDomainDkimInput struct { - _ struct{} `type:"structure"` - // The name of the domain to be verified for Easy DKIM signing. Domain *string `type:"string" required:"true"` + + metadataVerifyDomainDkimInput `json:"-" xml:"-"` +} + +type metadataVerifyDomainDkimInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4686,22 +2141,9 @@ func (s VerifyDomainDkimInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *VerifyDomainDkimInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VerifyDomainDkimInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - +// Represents the DNS records that must be published in the domain name's DNS +// to complete DKIM setup. type VerifyDomainDkimOutput struct { - _ struct{} `type:"structure"` - // A set of character strings that represent the domain's identity. If the identity // is an email address, the tokens represent the domain of that address. // @@ -4714,6 +2156,12 @@ type VerifyDomainDkimOutput struct { // For more information about creating DNS records using DKIM tokens, go to // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html). DkimTokens []*string `type:"list" required:"true"` + + metadataVerifyDomainDkimOutput `json:"-" xml:"-"` +} + +type metadataVerifyDomainDkimOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4726,11 +2174,16 @@ func (s VerifyDomainDkimOutput) GoString() string { return s.String() } +// Represents a request instructing the service to begin domain verification. type VerifyDomainIdentityInput struct { - _ struct{} `type:"structure"` - // The domain to be verified. Domain *string `type:"string" required:"true"` + + metadataVerifyDomainIdentityInput `json:"-" xml:"-"` +} + +type metadataVerifyDomainIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4743,25 +2196,17 @@ func (s VerifyDomainIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *VerifyDomainIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VerifyDomainIdentityInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - +// Represents a token used for domain ownership verification. type VerifyDomainIdentityOutput struct { - _ struct{} `type:"structure"` - // A TXT record that must be placed in the DNS settings for the domain, in order // to complete domain verification. VerificationToken *string `type:"string" required:"true"` + + metadataVerifyDomainIdentityOutput `json:"-" xml:"-"` +} + +type metadataVerifyDomainIdentityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4774,11 +2219,16 @@ func (s VerifyDomainIdentityOutput) GoString() string { return s.String() } +// Represents a request instructing the service to begin email address verification. type VerifyEmailAddressInput struct { - _ struct{} `type:"structure"` - // The email address to be verified. EmailAddress *string `type:"string" required:"true"` + + metadataVerifyEmailAddressInput `json:"-" xml:"-"` +} + +type metadataVerifyEmailAddressInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4791,21 +2241,12 @@ func (s VerifyEmailAddressInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *VerifyEmailAddressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VerifyEmailAddressInput"} - if s.EmailAddress == nil { - invalidParams.Add(request.NewErrParamRequired("EmailAddress")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type VerifyEmailAddressOutput struct { + metadataVerifyEmailAddressOutput `json:"-" xml:"-"` } -type VerifyEmailAddressOutput struct { - _ struct{} `type:"structure"` +type metadataVerifyEmailAddressOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4818,11 +2259,16 @@ func (s VerifyEmailAddressOutput) GoString() string { return s.String() } +// Represents a request instructing the service to begin email address verification. type VerifyEmailIdentityInput struct { - _ struct{} `type:"structure"` - // The email address to be verified. EmailAddress *string `type:"string" required:"true"` + + metadataVerifyEmailIdentityInput `json:"-" xml:"-"` +} + +type metadataVerifyEmailIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4835,21 +2281,14 @@ func (s VerifyEmailIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *VerifyEmailIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "VerifyEmailIdentityInput"} - if s.EmailAddress == nil { - invalidParams.Add(request.NewErrParamRequired("EmailAddress")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// An empty element. Receiving this element indicates that the request completed +// successfully. +type VerifyEmailIdentityOutput struct { + metadataVerifyEmailIdentityOutput `json:"-" xml:"-"` } -type VerifyEmailIdentityOutput struct { - _ struct{} `type:"structure"` +type metadataVerifyEmailIdentityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4862,98 +2301,6 @@ func (s VerifyEmailIdentityOutput) GoString() string { return s.String() } -// When included in a receipt rule, this action calls Amazon WorkMail and, optionally, -// publishes a notification to Amazon Simple Notification Service (Amazon SNS). -// You will typically not use this action directly because Amazon WorkMail adds -// the rule automatically during its setup procedure. -// -// For information using a receipt rule to call Amazon WorkMail, see the Amazon -// SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-workmail.html). -type WorkmailAction struct { - _ struct{} `type:"structure"` - - // The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail - // organization ARN is arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7. - // For information about Amazon WorkMail organizations, see the Amazon WorkMail - // Administrator Guide (http://docs.aws.amazon.com/workmail/latest/adminguide/organizations_overview.html). - OrganizationArn *string `type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the - // WorkMail action is called. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. - // For more information about Amazon SNS topics, see the Amazon SNS Developer - // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html). - TopicArn *string `type:"string"` -} - -// String returns the string representation -func (s WorkmailAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s WorkmailAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *WorkmailAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "WorkmailAction"} - if s.OrganizationArn == nil { - invalidParams.Add(request.NewErrParamRequired("OrganizationArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -const ( - // @enum BehaviorOnMXFailure - BehaviorOnMXFailureUseDefaultValue = "UseDefaultValue" - // @enum BehaviorOnMXFailure - BehaviorOnMXFailureRejectMessage = "RejectMessage" -) - -const ( - // @enum BounceType - BounceTypeDoesNotExist = "DoesNotExist" - // @enum BounceType - BounceTypeMessageTooLarge = "MessageTooLarge" - // @enum BounceType - BounceTypeExceededQuota = "ExceededQuota" - // @enum BounceType - BounceTypeContentRejected = "ContentRejected" - // @enum BounceType - BounceTypeUndefined = "Undefined" - // @enum BounceType - BounceTypeTemporaryFailure = "TemporaryFailure" -) - -const ( - // @enum CustomMailFromStatus - CustomMailFromStatusPending = "Pending" - // @enum CustomMailFromStatus - CustomMailFromStatusSuccess = "Success" - // @enum CustomMailFromStatus - CustomMailFromStatusFailed = "Failed" - // @enum CustomMailFromStatus - CustomMailFromStatusTemporaryFailure = "TemporaryFailure" -) - -const ( - // @enum DsnAction - DsnActionFailed = "failed" - // @enum DsnAction - DsnActionDelayed = "delayed" - // @enum DsnAction - DsnActionDelivered = "delivered" - // @enum DsnAction - DsnActionRelayed = "relayed" - // @enum DsnAction - DsnActionExpanded = "expanded" -) - const ( // @enum IdentityType IdentityTypeEmailAddress = "EmailAddress" @@ -4961,13 +2308,6 @@ const ( IdentityTypeDomain = "Domain" ) -const ( - // @enum InvocationType - InvocationTypeEvent = "Event" - // @enum InvocationType - InvocationTypeRequestResponse = "RequestResponse" -) - const ( // @enum NotificationType NotificationTypeBounce = "Bounce" @@ -4977,32 +2317,6 @@ const ( NotificationTypeDelivery = "Delivery" ) -const ( - // @enum ReceiptFilterPolicy - ReceiptFilterPolicyBlock = "Block" - // @enum ReceiptFilterPolicy - ReceiptFilterPolicyAllow = "Allow" -) - -const ( - // @enum SNSActionEncoding - SNSActionEncodingUtf8 = "UTF-8" - // @enum SNSActionEncoding - SNSActionEncodingBase64 = "Base64" -) - -const ( - // @enum StopScope - StopScopeRuleSet = "RuleSet" -) - -const ( - // @enum TlsPolicy - TlsPolicyRequire = "Require" - // @enum TlsPolicy - TlsPolicyOptional = "Optional" -) - const ( // @enum VerificationStatus VerificationStatusPending = "Pending" diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go index 71446a994..5ea3d5e87 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/examples_test.go @@ -8,148 +8,14 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ses" ) var _ time.Duration var _ bytes.Buffer -func ExampleSES_CloneReceiptRuleSet() { - svc := ses.New(session.New()) - - params := &ses.CloneReceiptRuleSetInput{ - OriginalRuleSetName: aws.String("ReceiptRuleSetName"), // Required - RuleSetName: aws.String("ReceiptRuleSetName"), // Required - } - resp, err := svc.CloneReceiptRuleSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSES_CreateReceiptFilter() { - svc := ses.New(session.New()) - - params := &ses.CreateReceiptFilterInput{ - Filter: &ses.ReceiptFilter{ // Required - IpFilter: &ses.ReceiptIpFilter{ // Required - Cidr: aws.String("Cidr"), // Required - Policy: aws.String("ReceiptFilterPolicy"), // Required - }, - Name: aws.String("ReceiptFilterName"), // Required - }, - } - resp, err := svc.CreateReceiptFilter(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSES_CreateReceiptRule() { - svc := ses.New(session.New()) - - params := &ses.CreateReceiptRuleInput{ - Rule: &ses.ReceiptRule{ // Required - Name: aws.String("ReceiptRuleName"), // Required - Actions: []*ses.ReceiptAction{ - { // Required - AddHeaderAction: &ses.AddHeaderAction{ - HeaderName: aws.String("HeaderName"), // Required - HeaderValue: aws.String("HeaderValue"), // Required - }, - BounceAction: &ses.BounceAction{ - Message: aws.String("BounceMessage"), // Required - Sender: aws.String("Address"), // Required - SmtpReplyCode: aws.String("BounceSmtpReplyCode"), // Required - StatusCode: aws.String("BounceStatusCode"), - TopicArn: aws.String("AmazonResourceName"), - }, - LambdaAction: &ses.LambdaAction{ - FunctionArn: aws.String("AmazonResourceName"), // Required - InvocationType: aws.String("InvocationType"), - TopicArn: aws.String("AmazonResourceName"), - }, - S3Action: &ses.S3Action{ - BucketName: aws.String("S3BucketName"), // Required - KmsKeyArn: aws.String("AmazonResourceName"), - ObjectKeyPrefix: aws.String("S3KeyPrefix"), - TopicArn: aws.String("AmazonResourceName"), - }, - SNSAction: &ses.SNSAction{ - TopicArn: aws.String("AmazonResourceName"), // Required - Encoding: aws.String("SNSActionEncoding"), - }, - StopAction: &ses.StopAction{ - Scope: aws.String("StopScope"), // Required - TopicArn: aws.String("AmazonResourceName"), - }, - WorkmailAction: &ses.WorkmailAction{ - OrganizationArn: aws.String("AmazonResourceName"), // Required - TopicArn: aws.String("AmazonResourceName"), - }, - }, - // More values... - }, - Enabled: aws.Bool(true), - Recipients: []*string{ - aws.String("Recipient"), // Required - // More values... - }, - ScanEnabled: aws.Bool(true), - TlsPolicy: aws.String("TlsPolicy"), - }, - RuleSetName: aws.String("ReceiptRuleSetName"), // Required - After: aws.String("ReceiptRuleName"), - } - resp, err := svc.CreateReceiptRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSES_CreateReceiptRuleSet() { - svc := ses.New(session.New()) - - params := &ses.CreateReceiptRuleSetInput{ - RuleSetName: aws.String("ReceiptRuleSetName"), // Required - } - resp, err := svc.CreateReceiptRuleSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSES_DeleteIdentity() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.DeleteIdentityInput{ Identity: aws.String("Identity"), // Required @@ -168,7 +34,7 @@ func ExampleSES_DeleteIdentity() { } func ExampleSES_DeleteIdentityPolicy() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.DeleteIdentityPolicyInput{ Identity: aws.String("Identity"), // Required @@ -187,66 +53,8 @@ func ExampleSES_DeleteIdentityPolicy() { fmt.Println(resp) } -func ExampleSES_DeleteReceiptFilter() { - svc := ses.New(session.New()) - - params := &ses.DeleteReceiptFilterInput{ - FilterName: aws.String("ReceiptFilterName"), // Required - } - resp, err := svc.DeleteReceiptFilter(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSES_DeleteReceiptRule() { - svc := ses.New(session.New()) - - params := &ses.DeleteReceiptRuleInput{ - RuleName: aws.String("ReceiptRuleName"), // Required - RuleSetName: aws.String("ReceiptRuleSetName"), // Required - } - resp, err := svc.DeleteReceiptRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSES_DeleteReceiptRuleSet() { - svc := ses.New(session.New()) - - params := &ses.DeleteReceiptRuleSetInput{ - RuleSetName: aws.String("ReceiptRuleSetName"), // Required - } - resp, err := svc.DeleteReceiptRuleSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSES_DeleteVerifiedEmailAddress() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.DeleteVerifiedEmailAddressInput{ EmailAddress: aws.String("Address"), // Required @@ -264,64 +72,8 @@ func ExampleSES_DeleteVerifiedEmailAddress() { fmt.Println(resp) } -func ExampleSES_DescribeActiveReceiptRuleSet() { - svc := ses.New(session.New()) - - var params *ses.DescribeActiveReceiptRuleSetInput - resp, err := svc.DescribeActiveReceiptRuleSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSES_DescribeReceiptRule() { - svc := ses.New(session.New()) - - params := &ses.DescribeReceiptRuleInput{ - RuleName: aws.String("ReceiptRuleName"), // Required - RuleSetName: aws.String("ReceiptRuleSetName"), // Required - } - resp, err := svc.DescribeReceiptRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSES_DescribeReceiptRuleSet() { - svc := ses.New(session.New()) - - params := &ses.DescribeReceiptRuleSetInput{ - RuleSetName: aws.String("ReceiptRuleSetName"), // Required - } - resp, err := svc.DescribeReceiptRuleSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSES_GetIdentityDkimAttributes() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.GetIdentityDkimAttributesInput{ Identities: []*string{ // Required @@ -342,30 +94,8 @@ func ExampleSES_GetIdentityDkimAttributes() { fmt.Println(resp) } -func ExampleSES_GetIdentityMailFromDomainAttributes() { - svc := ses.New(session.New()) - - params := &ses.GetIdentityMailFromDomainAttributesInput{ - Identities: []*string{ // Required - aws.String("Identity"), // Required - // More values... - }, - } - resp, err := svc.GetIdentityMailFromDomainAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSES_GetIdentityNotificationAttributes() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.GetIdentityNotificationAttributesInput{ Identities: []*string{ // Required @@ -387,7 +117,7 @@ func ExampleSES_GetIdentityNotificationAttributes() { } func ExampleSES_GetIdentityPolicies() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.GetIdentityPoliciesInput{ Identity: aws.String("Identity"), // Required @@ -410,7 +140,7 @@ func ExampleSES_GetIdentityPolicies() { } func ExampleSES_GetIdentityVerificationAttributes() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.GetIdentityVerificationAttributesInput{ Identities: []*string{ // Required @@ -432,7 +162,7 @@ func ExampleSES_GetIdentityVerificationAttributes() { } func ExampleSES_GetSendQuota() { - svc := ses.New(session.New()) + svc := ses.New(nil) var params *ses.GetSendQuotaInput resp, err := svc.GetSendQuota(params) @@ -449,7 +179,7 @@ func ExampleSES_GetSendQuota() { } func ExampleSES_GetSendStatistics() { - svc := ses.New(session.New()) + svc := ses.New(nil) var params *ses.GetSendStatisticsInput resp, err := svc.GetSendStatistics(params) @@ -466,7 +196,7 @@ func ExampleSES_GetSendStatistics() { } func ExampleSES_ListIdentities() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.ListIdentitiesInput{ IdentityType: aws.String("IdentityType"), @@ -487,7 +217,7 @@ func ExampleSES_ListIdentities() { } func ExampleSES_ListIdentityPolicies() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.ListIdentityPoliciesInput{ Identity: aws.String("Identity"), // Required @@ -505,44 +235,8 @@ func ExampleSES_ListIdentityPolicies() { fmt.Println(resp) } -func ExampleSES_ListReceiptFilters() { - svc := ses.New(session.New()) - - var params *ses.ListReceiptFiltersInput - resp, err := svc.ListReceiptFilters(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSES_ListReceiptRuleSets() { - svc := ses.New(session.New()) - - params := &ses.ListReceiptRuleSetsInput{ - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListReceiptRuleSets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSES_ListVerifiedEmailAddresses() { - svc := ses.New(session.New()) + svc := ses.New(nil) var params *ses.ListVerifiedEmailAddressesInput resp, err := svc.ListVerifiedEmailAddresses(params) @@ -559,7 +253,7 @@ func ExampleSES_ListVerifiedEmailAddresses() { } func ExampleSES_PutIdentityPolicy() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.PutIdentityPolicyInput{ Identity: aws.String("Identity"), // Required @@ -579,87 +273,8 @@ func ExampleSES_PutIdentityPolicy() { fmt.Println(resp) } -func ExampleSES_ReorderReceiptRuleSet() { - svc := ses.New(session.New()) - - params := &ses.ReorderReceiptRuleSetInput{ - RuleNames: []*string{ // Required - aws.String("ReceiptRuleName"), // Required - // More values... - }, - RuleSetName: aws.String("ReceiptRuleSetName"), // Required - } - resp, err := svc.ReorderReceiptRuleSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSES_SendBounce() { - svc := ses.New(session.New()) - - params := &ses.SendBounceInput{ - BounceSender: aws.String("Address"), // Required - BouncedRecipientInfoList: []*ses.BouncedRecipientInfo{ // Required - { // Required - Recipient: aws.String("Address"), // Required - BounceType: aws.String("BounceType"), - RecipientArn: aws.String("AmazonResourceName"), - RecipientDsnFields: &ses.RecipientDsnFields{ - Action: aws.String("DsnAction"), // Required - Status: aws.String("DsnStatus"), // Required - DiagnosticCode: aws.String("DiagnosticCode"), - ExtensionFields: []*ses.ExtensionField{ - { // Required - Name: aws.String("ExtensionFieldName"), // Required - Value: aws.String("ExtensionFieldValue"), // Required - }, - // More values... - }, - FinalRecipient: aws.String("Address"), - LastAttemptDate: aws.Time(time.Now()), - RemoteMta: aws.String("RemoteMta"), - }, - }, - // More values... - }, - OriginalMessageId: aws.String("MessageId"), // Required - BounceSenderArn: aws.String("AmazonResourceName"), - Explanation: aws.String("Explanation"), - MessageDsn: &ses.MessageDsn{ - ReportingMta: aws.String("ReportingMta"), // Required - ArrivalDate: aws.Time(time.Now()), - ExtensionFields: []*ses.ExtensionField{ - { // Required - Name: aws.String("ExtensionFieldName"), // Required - Value: aws.String("ExtensionFieldValue"), // Required - }, - // More values... - }, - }, - } - resp, err := svc.SendBounce(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSES_SendEmail() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.SendEmailInput{ Destination: &ses.Destination{ // Required @@ -715,7 +330,7 @@ func ExampleSES_SendEmail() { } func ExampleSES_SendRawEmail() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.SendRawEmailInput{ RawMessage: &ses.RawMessage{ // Required @@ -743,27 +358,8 @@ func ExampleSES_SendRawEmail() { fmt.Println(resp) } -func ExampleSES_SetActiveReceiptRuleSet() { - svc := ses.New(session.New()) - - params := &ses.SetActiveReceiptRuleSetInput{ - RuleSetName: aws.String("ReceiptRuleSetName"), - } - resp, err := svc.SetActiveReceiptRuleSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSES_SetIdentityDkimEnabled() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.SetIdentityDkimEnabledInput{ DkimEnabled: aws.Bool(true), // Required @@ -783,7 +379,7 @@ func ExampleSES_SetIdentityDkimEnabled() { } func ExampleSES_SetIdentityFeedbackForwardingEnabled() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.SetIdentityFeedbackForwardingEnabledInput{ ForwardingEnabled: aws.Bool(true), // Required @@ -802,29 +398,8 @@ func ExampleSES_SetIdentityFeedbackForwardingEnabled() { fmt.Println(resp) } -func ExampleSES_SetIdentityMailFromDomain() { - svc := ses.New(session.New()) - - params := &ses.SetIdentityMailFromDomainInput{ - Identity: aws.String("Identity"), // Required - BehaviorOnMXFailure: aws.String("BehaviorOnMXFailure"), - MailFromDomain: aws.String("MailFromDomainName"), - } - resp, err := svc.SetIdentityMailFromDomain(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSES_SetIdentityNotificationTopic() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.SetIdentityNotificationTopicInput{ Identity: aws.String("Identity"), // Required @@ -844,97 +419,8 @@ func ExampleSES_SetIdentityNotificationTopic() { fmt.Println(resp) } -func ExampleSES_SetReceiptRulePosition() { - svc := ses.New(session.New()) - - params := &ses.SetReceiptRulePositionInput{ - RuleName: aws.String("ReceiptRuleName"), // Required - RuleSetName: aws.String("ReceiptRuleSetName"), // Required - After: aws.String("ReceiptRuleName"), - } - resp, err := svc.SetReceiptRulePosition(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSES_UpdateReceiptRule() { - svc := ses.New(session.New()) - - params := &ses.UpdateReceiptRuleInput{ - Rule: &ses.ReceiptRule{ // Required - Name: aws.String("ReceiptRuleName"), // Required - Actions: []*ses.ReceiptAction{ - { // Required - AddHeaderAction: &ses.AddHeaderAction{ - HeaderName: aws.String("HeaderName"), // Required - HeaderValue: aws.String("HeaderValue"), // Required - }, - BounceAction: &ses.BounceAction{ - Message: aws.String("BounceMessage"), // Required - Sender: aws.String("Address"), // Required - SmtpReplyCode: aws.String("BounceSmtpReplyCode"), // Required - StatusCode: aws.String("BounceStatusCode"), - TopicArn: aws.String("AmazonResourceName"), - }, - LambdaAction: &ses.LambdaAction{ - FunctionArn: aws.String("AmazonResourceName"), // Required - InvocationType: aws.String("InvocationType"), - TopicArn: aws.String("AmazonResourceName"), - }, - S3Action: &ses.S3Action{ - BucketName: aws.String("S3BucketName"), // Required - KmsKeyArn: aws.String("AmazonResourceName"), - ObjectKeyPrefix: aws.String("S3KeyPrefix"), - TopicArn: aws.String("AmazonResourceName"), - }, - SNSAction: &ses.SNSAction{ - TopicArn: aws.String("AmazonResourceName"), // Required - Encoding: aws.String("SNSActionEncoding"), - }, - StopAction: &ses.StopAction{ - Scope: aws.String("StopScope"), // Required - TopicArn: aws.String("AmazonResourceName"), - }, - WorkmailAction: &ses.WorkmailAction{ - OrganizationArn: aws.String("AmazonResourceName"), // Required - TopicArn: aws.String("AmazonResourceName"), - }, - }, - // More values... - }, - Enabled: aws.Bool(true), - Recipients: []*string{ - aws.String("Recipient"), // Required - // More values... - }, - ScanEnabled: aws.Bool(true), - TlsPolicy: aws.String("TlsPolicy"), - }, - RuleSetName: aws.String("ReceiptRuleSetName"), // Required - } - resp, err := svc.UpdateReceiptRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSES_VerifyDomainDkim() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.VerifyDomainDkimInput{ Domain: aws.String("Domain"), // Required @@ -953,7 +439,7 @@ func ExampleSES_VerifyDomainDkim() { } func ExampleSES_VerifyDomainIdentity() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.VerifyDomainIdentityInput{ Domain: aws.String("Domain"), // Required @@ -972,7 +458,7 @@ func ExampleSES_VerifyDomainIdentity() { } func ExampleSES_VerifyEmailAddress() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.VerifyEmailAddressInput{ EmailAddress: aws.String("Address"), // Required @@ -991,7 +477,7 @@ func ExampleSES_VerifyEmailAddress() { } func ExampleSES_VerifyEmailIdentity() { - svc := ses.New(session.New()) + svc := ses.New(nil) params := &ses.VerifyEmailIdentityInput{ EmailAddress: aws.String("Address"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/service.go b/vendor/github.com/aws/aws-sdk-go/service/ses/service.go index 8f721db6d..53c353509 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/service.go @@ -4,11 +4,12 @@ package ses import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // This is the API Reference for Amazon Simple Email Service (Amazon SES). This @@ -18,65 +19,41 @@ import ( // For a list of Amazon SES endpoints to use in service requests, see Regions // and Amazon SES (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/regions.html) // in the Amazon SES Developer Guide. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type SES struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "email" - -// New creates a new instance of the SES client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a SES client from just a session. -// svc := ses.New(mySession) -// -// // Create a SES client with additional configuration -// svc := ses.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *SES { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SES { - svc := &SES{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningName: "ses", - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2010-12-01", - }, - handlers, - ), +// New returns a new SES client. +func New(config *aws.Config) *SES { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "email", + SigningName: "ses", + APIVersion: "2010-12-01", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &SES{service} } // newRequest creates a new request for a SES operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go index b802103db..e40ea5a00 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface.go @@ -10,22 +10,6 @@ import ( // SESAPI is the interface type for ses.SES. type SESAPI interface { - CloneReceiptRuleSetRequest(*ses.CloneReceiptRuleSetInput) (*request.Request, *ses.CloneReceiptRuleSetOutput) - - CloneReceiptRuleSet(*ses.CloneReceiptRuleSetInput) (*ses.CloneReceiptRuleSetOutput, error) - - CreateReceiptFilterRequest(*ses.CreateReceiptFilterInput) (*request.Request, *ses.CreateReceiptFilterOutput) - - CreateReceiptFilter(*ses.CreateReceiptFilterInput) (*ses.CreateReceiptFilterOutput, error) - - CreateReceiptRuleRequest(*ses.CreateReceiptRuleInput) (*request.Request, *ses.CreateReceiptRuleOutput) - - CreateReceiptRule(*ses.CreateReceiptRuleInput) (*ses.CreateReceiptRuleOutput, error) - - CreateReceiptRuleSetRequest(*ses.CreateReceiptRuleSetInput) (*request.Request, *ses.CreateReceiptRuleSetOutput) - - CreateReceiptRuleSet(*ses.CreateReceiptRuleSetInput) (*ses.CreateReceiptRuleSetOutput, error) - DeleteIdentityRequest(*ses.DeleteIdentityInput) (*request.Request, *ses.DeleteIdentityOutput) DeleteIdentity(*ses.DeleteIdentityInput) (*ses.DeleteIdentityOutput, error) @@ -34,42 +18,14 @@ type SESAPI interface { DeleteIdentityPolicy(*ses.DeleteIdentityPolicyInput) (*ses.DeleteIdentityPolicyOutput, error) - DeleteReceiptFilterRequest(*ses.DeleteReceiptFilterInput) (*request.Request, *ses.DeleteReceiptFilterOutput) - - DeleteReceiptFilter(*ses.DeleteReceiptFilterInput) (*ses.DeleteReceiptFilterOutput, error) - - DeleteReceiptRuleRequest(*ses.DeleteReceiptRuleInput) (*request.Request, *ses.DeleteReceiptRuleOutput) - - DeleteReceiptRule(*ses.DeleteReceiptRuleInput) (*ses.DeleteReceiptRuleOutput, error) - - DeleteReceiptRuleSetRequest(*ses.DeleteReceiptRuleSetInput) (*request.Request, *ses.DeleteReceiptRuleSetOutput) - - DeleteReceiptRuleSet(*ses.DeleteReceiptRuleSetInput) (*ses.DeleteReceiptRuleSetOutput, error) - DeleteVerifiedEmailAddressRequest(*ses.DeleteVerifiedEmailAddressInput) (*request.Request, *ses.DeleteVerifiedEmailAddressOutput) DeleteVerifiedEmailAddress(*ses.DeleteVerifiedEmailAddressInput) (*ses.DeleteVerifiedEmailAddressOutput, error) - DescribeActiveReceiptRuleSetRequest(*ses.DescribeActiveReceiptRuleSetInput) (*request.Request, *ses.DescribeActiveReceiptRuleSetOutput) - - DescribeActiveReceiptRuleSet(*ses.DescribeActiveReceiptRuleSetInput) (*ses.DescribeActiveReceiptRuleSetOutput, error) - - DescribeReceiptRuleRequest(*ses.DescribeReceiptRuleInput) (*request.Request, *ses.DescribeReceiptRuleOutput) - - DescribeReceiptRule(*ses.DescribeReceiptRuleInput) (*ses.DescribeReceiptRuleOutput, error) - - DescribeReceiptRuleSetRequest(*ses.DescribeReceiptRuleSetInput) (*request.Request, *ses.DescribeReceiptRuleSetOutput) - - DescribeReceiptRuleSet(*ses.DescribeReceiptRuleSetInput) (*ses.DescribeReceiptRuleSetOutput, error) - GetIdentityDkimAttributesRequest(*ses.GetIdentityDkimAttributesInput) (*request.Request, *ses.GetIdentityDkimAttributesOutput) GetIdentityDkimAttributes(*ses.GetIdentityDkimAttributesInput) (*ses.GetIdentityDkimAttributesOutput, error) - GetIdentityMailFromDomainAttributesRequest(*ses.GetIdentityMailFromDomainAttributesInput) (*request.Request, *ses.GetIdentityMailFromDomainAttributesOutput) - - GetIdentityMailFromDomainAttributes(*ses.GetIdentityMailFromDomainAttributesInput) (*ses.GetIdentityMailFromDomainAttributesOutput, error) - GetIdentityNotificationAttributesRequest(*ses.GetIdentityNotificationAttributesInput) (*request.Request, *ses.GetIdentityNotificationAttributesOutput) GetIdentityNotificationAttributes(*ses.GetIdentityNotificationAttributesInput) (*ses.GetIdentityNotificationAttributesOutput, error) @@ -100,14 +56,6 @@ type SESAPI interface { ListIdentityPolicies(*ses.ListIdentityPoliciesInput) (*ses.ListIdentityPoliciesOutput, error) - ListReceiptFiltersRequest(*ses.ListReceiptFiltersInput) (*request.Request, *ses.ListReceiptFiltersOutput) - - ListReceiptFilters(*ses.ListReceiptFiltersInput) (*ses.ListReceiptFiltersOutput, error) - - ListReceiptRuleSetsRequest(*ses.ListReceiptRuleSetsInput) (*request.Request, *ses.ListReceiptRuleSetsOutput) - - ListReceiptRuleSets(*ses.ListReceiptRuleSetsInput) (*ses.ListReceiptRuleSetsOutput, error) - ListVerifiedEmailAddressesRequest(*ses.ListVerifiedEmailAddressesInput) (*request.Request, *ses.ListVerifiedEmailAddressesOutput) ListVerifiedEmailAddresses(*ses.ListVerifiedEmailAddressesInput) (*ses.ListVerifiedEmailAddressesOutput, error) @@ -116,14 +64,6 @@ type SESAPI interface { PutIdentityPolicy(*ses.PutIdentityPolicyInput) (*ses.PutIdentityPolicyOutput, error) - ReorderReceiptRuleSetRequest(*ses.ReorderReceiptRuleSetInput) (*request.Request, *ses.ReorderReceiptRuleSetOutput) - - ReorderReceiptRuleSet(*ses.ReorderReceiptRuleSetInput) (*ses.ReorderReceiptRuleSetOutput, error) - - SendBounceRequest(*ses.SendBounceInput) (*request.Request, *ses.SendBounceOutput) - - SendBounce(*ses.SendBounceInput) (*ses.SendBounceOutput, error) - SendEmailRequest(*ses.SendEmailInput) (*request.Request, *ses.SendEmailOutput) SendEmail(*ses.SendEmailInput) (*ses.SendEmailOutput, error) @@ -132,10 +72,6 @@ type SESAPI interface { SendRawEmail(*ses.SendRawEmailInput) (*ses.SendRawEmailOutput, error) - SetActiveReceiptRuleSetRequest(*ses.SetActiveReceiptRuleSetInput) (*request.Request, *ses.SetActiveReceiptRuleSetOutput) - - SetActiveReceiptRuleSet(*ses.SetActiveReceiptRuleSetInput) (*ses.SetActiveReceiptRuleSetOutput, error) - SetIdentityDkimEnabledRequest(*ses.SetIdentityDkimEnabledInput) (*request.Request, *ses.SetIdentityDkimEnabledOutput) SetIdentityDkimEnabled(*ses.SetIdentityDkimEnabledInput) (*ses.SetIdentityDkimEnabledOutput, error) @@ -144,22 +80,10 @@ type SESAPI interface { SetIdentityFeedbackForwardingEnabled(*ses.SetIdentityFeedbackForwardingEnabledInput) (*ses.SetIdentityFeedbackForwardingEnabledOutput, error) - SetIdentityMailFromDomainRequest(*ses.SetIdentityMailFromDomainInput) (*request.Request, *ses.SetIdentityMailFromDomainOutput) - - SetIdentityMailFromDomain(*ses.SetIdentityMailFromDomainInput) (*ses.SetIdentityMailFromDomainOutput, error) - SetIdentityNotificationTopicRequest(*ses.SetIdentityNotificationTopicInput) (*request.Request, *ses.SetIdentityNotificationTopicOutput) SetIdentityNotificationTopic(*ses.SetIdentityNotificationTopicInput) (*ses.SetIdentityNotificationTopicOutput, error) - SetReceiptRulePositionRequest(*ses.SetReceiptRulePositionInput) (*request.Request, *ses.SetReceiptRulePositionOutput) - - SetReceiptRulePosition(*ses.SetReceiptRulePositionInput) (*ses.SetReceiptRulePositionOutput, error) - - UpdateReceiptRuleRequest(*ses.UpdateReceiptRuleInput) (*request.Request, *ses.UpdateReceiptRuleOutput) - - UpdateReceiptRule(*ses.UpdateReceiptRuleInput) (*ses.UpdateReceiptRuleOutput, error) - VerifyDomainDkimRequest(*ses.VerifyDomainDkimInput) (*request.Request, *ses.VerifyDomainDkimOutput) VerifyDomainDkim(*ses.VerifyDomainDkimInput) (*ses.VerifyDomainDkimOutput, error) @@ -176,5 +100,3 @@ type SESAPI interface { VerifyEmailIdentity(*ses.VerifyEmailIdentityInput) (*ses.VerifyEmailIdentityOutput, error) } - -var _ SESAPI = (*ses.SES)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface_test.go new file mode 100644 index 000000000..dc2ac58c2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sesiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/ses" + "github.com/aws/aws-sdk-go/service/ses/sesiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*sesiface.SESAPI)(nil), ses.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/ses/waiters.go deleted file mode 100644 index 8156c0fc0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/ses/waiters.go +++ /dev/null @@ -1,30 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package ses - -import ( - "github.com/aws/aws-sdk-go/private/waiter" -) - -func (c *SES) WaitUntilIdentityExists(input *GetIdentityVerificationAttributesInput) error { - waiterCfg := waiter.Config{ - Operation: "GetIdentityVerificationAttributes", - Delay: 3, - MaxAttempts: 20, - Acceptors: []waiter.WaitAcceptor{ - { - State: "success", - Matcher: "pathAll", - Argument: "VerificationAttributes.*.VerificationStatus", - Expected: "Success", - }, - }, - } - - w := waiter.Waiter{ - Client: c, - Input: input, - Config: waiterCfg, - } - return w.Wait() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go deleted file mode 100644 index 7d6ee80e3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/api.go +++ /dev/null @@ -1,1284 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package simpledb provides a client for Amazon SimpleDB. -package simpledb - -import ( - "fmt" - - "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/private/protocol/query" -) - -const opBatchDeleteAttributes = "BatchDeleteAttributes" - -// BatchDeleteAttributesRequest generates a request for the BatchDeleteAttributes operation. -func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInput) (req *request.Request, output *BatchDeleteAttributesOutput) { - op := &request.Operation{ - Name: opBatchDeleteAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &BatchDeleteAttributesInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &BatchDeleteAttributesOutput{} - req.Data = output - return -} - -// Performs multiple DeleteAttributes operations in a single call, which reduces -// round trips and latencies. This enables Amazon SimpleDB to optimize requests, -// which generally yields better throughput. -// -// If you specify BatchDeleteAttributes without attributes or values, all -// the attributes for the item are deleted. -// -// BatchDeleteAttributes is an idempotent operation; running it multiple times -// on the same item or attribute doesn't result in an error. -// -// The BatchDeleteAttributes operation succeeds or fails in its entirety. -// There are no partial deletes. You can execute multiple BatchDeleteAttributes -// operations and other operations in parallel. However, large numbers of concurrent -// BatchDeleteAttributes calls can result in Service Unavailable (503) responses. -// -// This operation is vulnerable to exceeding the maximum URL size when making -// a REST request using the HTTP GET method. -// -// This operation does not support conditions using Expected.X.Name, Expected.X.Value, -// or Expected.X.Exists. -// -// The following limitations are enforced for this operation: 1 MB request -// size 25 item limit per BatchDeleteAttributes operation -func (c *SimpleDB) BatchDeleteAttributes(input *BatchDeleteAttributesInput) (*BatchDeleteAttributesOutput, error) { - req, out := c.BatchDeleteAttributesRequest(input) - err := req.Send() - return out, err -} - -const opBatchPutAttributes = "BatchPutAttributes" - -// BatchPutAttributesRequest generates a request for the BatchPutAttributes operation. -func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (req *request.Request, output *BatchPutAttributesOutput) { - op := &request.Operation{ - Name: opBatchPutAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &BatchPutAttributesInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &BatchPutAttributesOutput{} - req.Data = output - return -} - -// The BatchPutAttributes operation creates or replaces attributes within one -// or more items. By using this operation, the client can perform multiple PutAttribute -// operation with a single call. This helps yield savings in round trips and -// latencies, enabling Amazon SimpleDB to optimize requests and generally produce -// better throughput. -// -// The client may specify the item name with the Item.X.ItemName parameter. -// The client may specify new attributes using a combination of the Item.X.Attribute.Y.Name -// and Item.X.Attribute.Y.Value parameters. The client may specify the first -// attribute for the first item using the parameters Item.0.Attribute.0.Name -// and Item.0.Attribute.0.Value, and for the second attribute for the first -// item by the parameters Item.0.Attribute.1.Name and Item.0.Attribute.1.Value, -// and so on. -// -// Attributes are uniquely identified within an item by their name/value combination. -// For example, a single item can have the attributes { "first_name", "first_value" -// } and { "first_name", "second_value" }. However, it cannot have two attribute -// instances where both the Item.X.Attribute.Y.Name and Item.X.Attribute.Y.Value -// are the same. -// -// Optionally, the requester can supply the Replace parameter for each individual -// value. Setting this value to true will cause the new attribute values to -// replace the existing attribute values. For example, if an item I has the -// attributes { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requester does -// a BatchPutAttributes of {'I', 'b', '4' } with the Replace parameter set to -// true, the final attributes of the item will be { 'a', '1' } and { 'b', '4' -// }, replacing the previous values of the 'b' attribute with the new value. -// -// You cannot specify an empty string as an item or as an attribute name. -// The BatchPutAttributes operation succeeds or fails in its entirety. There -// are no partial puts. This operation is vulnerable to exceeding the maximum -// URL size when making a REST request using the HTTP GET method. This operation -// does not support conditions using Expected.X.Name, Expected.X.Value, or Expected.X.Exists. -// You can execute multiple BatchPutAttributes operations and other operations -// in parallel. However, large numbers of concurrent BatchPutAttributes calls -// can result in Service Unavailable (503) responses. -// -// The following limitations are enforced for this operation: 256 attribute -// name-value pairs per item 1 MB request size 1 billion attributes per domain -// 10 GB of total user data storage per domain 25 item limit per BatchPutAttributes -// operation -func (c *SimpleDB) BatchPutAttributes(input *BatchPutAttributesInput) (*BatchPutAttributesOutput, error) { - req, out := c.BatchPutAttributesRequest(input) - err := req.Send() - return out, err -} - -const opCreateDomain = "CreateDomain" - -// CreateDomainRequest generates a request for the CreateDomain operation. -func (c *SimpleDB) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) { - op := &request.Operation{ - Name: opCreateDomain, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateDomainInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &CreateDomainOutput{} - req.Data = output - return -} - -// The CreateDomain operation creates a new domain. The domain name should be -// unique among the domains associated with the Access Key ID provided in the -// request. The CreateDomain operation may take 10 or more seconds to complete. -// -// CreateDomain is an idempotent operation; running it multiple times using -// the same domain name will not result in an error response. The client can -// create up to 100 domains per account. -// -// If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/ -// (http://aws.amazon.com/contact-us/simpledb-limit-request/). -func (c *SimpleDB) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) { - req, out := c.CreateDomainRequest(input) - err := req.Send() - return out, err -} - -const opDeleteAttributes = "DeleteAttributes" - -// DeleteAttributesRequest generates a request for the DeleteAttributes operation. -func (c *SimpleDB) DeleteAttributesRequest(input *DeleteAttributesInput) (req *request.Request, output *DeleteAttributesOutput) { - op := &request.Operation{ - Name: opDeleteAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteAttributesInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteAttributesOutput{} - req.Data = output - return -} - -// Deletes one or more attributes associated with an item. If all attributes -// of the item are deleted, the item is deleted. -// -// If DeleteAttributes is called without being passed any attributes or values -// specified, all the attributes for the item are deleted. DeleteAttributes -// is an idempotent operation; running it multiple times on the same item or -// attribute does not result in an error response. -// -// Because Amazon SimpleDB makes multiple copies of item data and uses an -// eventual consistency update model, performing a GetAttributes or Select operation -// (read) immediately after a DeleteAttributes or PutAttributes operation (write) -// might not return updated item data. -func (c *SimpleDB) DeleteAttributes(input *DeleteAttributesInput) (*DeleteAttributesOutput, error) { - req, out := c.DeleteAttributesRequest(input) - err := req.Send() - return out, err -} - -const opDeleteDomain = "DeleteDomain" - -// DeleteDomainRequest generates a request for the DeleteDomain operation. -func (c *SimpleDB) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) { - op := &request.Operation{ - Name: opDeleteDomain, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteDomainInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &DeleteDomainOutput{} - req.Data = output - return -} - -// The DeleteDomain operation deletes a domain. Any items (and their attributes) -// in the domain are deleted as well. The DeleteDomain operation might take -// 10 or more seconds to complete. -// -// Running DeleteDomain on a domain that does not exist or running the function -// multiple times using the same domain name will not result in an error response. -func (c *SimpleDB) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) { - req, out := c.DeleteDomainRequest(input) - err := req.Send() - return out, err -} - -const opDomainMetadata = "DomainMetadata" - -// DomainMetadataRequest generates a request for the DomainMetadata operation. -func (c *SimpleDB) DomainMetadataRequest(input *DomainMetadataInput) (req *request.Request, output *DomainMetadataOutput) { - op := &request.Operation{ - Name: opDomainMetadata, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DomainMetadataInput{} - } - - req = c.newRequest(op, input, output) - output = &DomainMetadataOutput{} - req.Data = output - return -} - -// Returns information about the domain, including when the domain was created, -// the number of items and attributes in the domain, and the size of the attribute -// names and values. -func (c *SimpleDB) DomainMetadata(input *DomainMetadataInput) (*DomainMetadataOutput, error) { - req, out := c.DomainMetadataRequest(input) - err := req.Send() - return out, err -} - -const opGetAttributes = "GetAttributes" - -// GetAttributesRequest generates a request for the GetAttributes operation. -func (c *SimpleDB) GetAttributesRequest(input *GetAttributesInput) (req *request.Request, output *GetAttributesOutput) { - op := &request.Operation{ - Name: opGetAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetAttributesInput{} - } - - req = c.newRequest(op, input, output) - output = &GetAttributesOutput{} - req.Data = output - return -} - -// Returns all of the attributes associated with the specified item. Optionally, -// the attributes returned can be limited to one or more attributes by specifying -// an attribute name parameter. -// -// If the item does not exist on the replica that was accessed for this operation, -// an empty set is returned. The system does not return an error as it cannot -// guarantee the item does not exist on other replicas. -// -// If GetAttributes is called without being passed any attribute names, all -// the attributes for the item are returned. -func (c *SimpleDB) GetAttributes(input *GetAttributesInput) (*GetAttributesOutput, error) { - req, out := c.GetAttributesRequest(input) - err := req.Send() - return out, err -} - -const opListDomains = "ListDomains" - -// ListDomainsRequest generates a request for the ListDomains operation. -func (c *SimpleDB) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) { - op := &request.Operation{ - Name: opListDomains, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxNumberOfDomains", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListDomainsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListDomainsOutput{} - req.Data = output - return -} - -// The ListDomains operation lists all domains associated with the Access Key -// ID. It returns domain names up to the limit set by MaxNumberOfDomains (#MaxNumberOfDomains). -// A NextToken (#NextToken) is returned if there are more than MaxNumberOfDomains -// domains. Calling ListDomains successive times with the NextToken provided -// by the operation returns up to MaxNumberOfDomains more domain names with -// each successive operation call. -func (c *SimpleDB) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { - req, out := c.ListDomainsRequest(input) - err := req.Send() - return out, err -} - -func (c *SimpleDB) ListDomainsPages(input *ListDomainsInput, fn func(p *ListDomainsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListDomainsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListDomainsOutput), lastPage) - }) -} - -const opPutAttributes = "PutAttributes" - -// PutAttributesRequest generates a request for the PutAttributes operation. -func (c *SimpleDB) PutAttributesRequest(input *PutAttributesInput) (req *request.Request, output *PutAttributesOutput) { - op := &request.Operation{ - Name: opPutAttributes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutAttributesInput{} - } - - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) - output = &PutAttributesOutput{} - req.Data = output - return -} - -// The PutAttributes operation creates or replaces attributes in an item. The -// client may specify new attributes using a combination of the Attribute.X.Name -// and Attribute.X.Value parameters. The client specifies the first attribute -// by the parameters Attribute.0.Name and Attribute.0.Value, the second attribute -// by the parameters Attribute.1.Name and Attribute.1.Value, and so on. -// -// Attributes are uniquely identified in an item by their name/value combination. -// For example, a single item can have the attributes { "first_name", "first_value" -// } and { "first_name", second_value" }. However, it cannot have two attribute -// instances where both the Attribute.X.Name and Attribute.X.Value are the same. -// -// Optionally, the requestor can supply the Replace parameter for each individual -// attribute. Setting this value to true causes the new attribute value to replace -// the existing attribute value(s). For example, if an item has the attributes -// { 'a', '1' }, { 'b', '2'} and { 'b', '3' } and the requestor calls PutAttributes -// using the attributes { 'b', '4' } with the Replace parameter set to true, -// the final attributes of the item are changed to { 'a', '1' } and { 'b', '4' -// }, which replaces the previous values of the 'b' attribute with the new value. -// -// Using PutAttributes to replace attribute values that do not exist will -// not result in an error response. You cannot specify an empty string as -// an attribute name. -// -// Because Amazon SimpleDB makes multiple copies of client data and uses an -// eventual consistency update model, an immediate GetAttributes or Select operation -// (read) immediately after a PutAttributes or DeleteAttributes operation (write) -// might not return the updated data. -// -// The following limitations are enforced for this operation: 256 total attribute -// name-value pairs per item One billion attributes per domain 10 GB of total -// user data storage per domain -func (c *SimpleDB) PutAttributes(input *PutAttributesInput) (*PutAttributesOutput, error) { - req, out := c.PutAttributesRequest(input) - err := req.Send() - return out, err -} - -const opSelect = "Select" - -// SelectRequest generates a request for the Select operation. -func (c *SimpleDB) SelectRequest(input *SelectInput) (req *request.Request, output *SelectOutput) { - op := &request.Operation{ - Name: opSelect, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "", - TruncationToken: "", - }, - } - - if input == nil { - input = &SelectInput{} - } - - req = c.newRequest(op, input, output) - output = &SelectOutput{} - req.Data = output - return -} - -// The Select operation returns a set of attributes for ItemNames that match -// the select expression. Select is similar to the standard SQL SELECT statement. -// -// The total size of the response cannot exceed 1 MB in total size. Amazon -// SimpleDB automatically adjusts the number of items returned per page to enforce -// this limit. For example, if the client asks to retrieve 2500 items, but each -// individual item is 10 kB in size, the system returns 100 items and an appropriate -// NextToken so the client can access the next page of results. -// -// For information on how to construct select expressions, see Using Select -// to Create Amazon SimpleDB Queries in the Developer Guide. -func (c *SimpleDB) Select(input *SelectInput) (*SelectOutput, error) { - req, out := c.SelectRequest(input) - err := req.Send() - return out, err -} - -func (c *SimpleDB) SelectPages(input *SelectInput, fn func(p *SelectOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.SelectRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*SelectOutput), lastPage) - }) -} - -type Attribute struct { - _ struct{} `type:"structure"` - - AlternateNameEncoding *string `type:"string"` - - AlternateValueEncoding *string `type:"string"` - - // The name of the attribute. - Name *string `type:"string" required:"true"` - - // The value of the attribute. - Value *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s Attribute) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Attribute) GoString() string { - return s.String() -} - -type BatchDeleteAttributesInput struct { - _ struct{} `type:"structure"` - - // The name of the domain in which the attributes are being deleted. - DomainName *string `type:"string" required:"true"` - - // A list of items on which to perform the operation. - Items []*DeletableItem `locationNameList:"Item" type:"list" flattened:"true" required:"true"` -} - -// String returns the string representation -func (s BatchDeleteAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchDeleteAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchDeleteAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchDeleteAttributesInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.Items == nil { - invalidParams.Add(request.NewErrParamRequired("Items")) - } - if s.Items != nil { - for i, v := range s.Items { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Items", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type BatchDeleteAttributesOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s BatchDeleteAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchDeleteAttributesOutput) GoString() string { - return s.String() -} - -type BatchPutAttributesInput struct { - _ struct{} `type:"structure"` - - // The name of the domain in which the attributes are being stored. - DomainName *string `type:"string" required:"true"` - - // A list of items on which to perform the operation. - Items []*ReplaceableItem `locationNameList:"Item" type:"list" flattened:"true" required:"true"` -} - -// String returns the string representation -func (s BatchPutAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchPutAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchPutAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchPutAttributesInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.Items == nil { - invalidParams.Add(request.NewErrParamRequired("Items")) - } - if s.Items != nil { - for i, v := range s.Items { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Items", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type BatchPutAttributesOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s BatchPutAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchPutAttributesOutput) GoString() string { - return s.String() -} - -type CreateDomainInput struct { - _ struct{} `type:"structure"` - - // The name of the domain to create. The name can range between 3 and 255 characters - // and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'. - DomainName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateDomainInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateDomainInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateDomainOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s CreateDomainOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateDomainOutput) GoString() string { - return s.String() -} - -type DeletableAttribute struct { - _ struct{} `type:"structure"` - - // The name of the attribute. - Name *string `type:"string" required:"true"` - - // The value of the attribute. - Value *string `type:"string"` -} - -// String returns the string representation -func (s DeletableAttribute) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeletableAttribute) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletableAttribute) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletableAttribute"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeletableItem struct { - _ struct{} `type:"structure"` - - Attributes []*DeletableAttribute `locationNameList:"Attribute" type:"list" flattened:"true"` - - Name *string `locationName:"ItemName" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeletableItem) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeletableItem) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletableItem) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletableItem"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Attributes != nil { - for i, v := range s.Attributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteAttributesInput struct { - _ struct{} `type:"structure"` - - // A list of Attributes. Similar to columns on a spreadsheet, attributes represent - // categories of data that can be assigned to items. - Attributes []*DeletableAttribute `locationNameList:"Attribute" type:"list" flattened:"true"` - - // The name of the domain in which to perform the operation. - DomainName *string `type:"string" required:"true"` - - // The update condition which, if specified, determines whether the specified - // attributes will be deleted or not. The update condition must be satisfied - // in order for this request to be processed and the attributes to be deleted. - Expected *UpdateCondition `type:"structure"` - - // The name of the item. Similar to rows on a spreadsheet, items represent individual - // objects that contain one or more value-attribute pairs. - ItemName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAttributesInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.ItemName == nil { - invalidParams.Add(request.NewErrParamRequired("ItemName")) - } - if s.Attributes != nil { - for i, v := range s.Attributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteAttributesOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteAttributesOutput) GoString() string { - return s.String() -} - -type DeleteDomainInput struct { - _ struct{} `type:"structure"` - - // The name of the domain to delete. - DomainName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteDomainInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteDomainInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteDomainOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteDomainOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteDomainOutput) GoString() string { - return s.String() -} - -type DomainMetadataInput struct { - _ struct{} `type:"structure"` - - // The name of the domain for which to display the metadata of. - DomainName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DomainMetadataInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DomainMetadataInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DomainMetadataInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DomainMetadataInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DomainMetadataOutput struct { - _ struct{} `type:"structure"` - - // The number of unique attribute names in the domain. - AttributeNameCount *int64 `type:"integer"` - - // The total size of all unique attribute names in the domain, in bytes. - AttributeNamesSizeBytes *int64 `type:"long"` - - // The number of all attribute name/value pairs in the domain. - AttributeValueCount *int64 `type:"integer"` - - // The total size of all attribute values in the domain, in bytes. - AttributeValuesSizeBytes *int64 `type:"long"` - - // The number of all items in the domain. - ItemCount *int64 `type:"integer"` - - // The total size of all item names in the domain, in bytes. - ItemNamesSizeBytes *int64 `type:"long"` - - // The data and time when metadata was calculated, in Epoch (UNIX) seconds. - Timestamp *int64 `type:"integer"` -} - -// String returns the string representation -func (s DomainMetadataOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DomainMetadataOutput) GoString() string { - return s.String() -} - -type GetAttributesInput struct { - _ struct{} `type:"structure"` - - // The names of the attributes. - AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"` - - // Determines whether or not strong consistency should be enforced when data - // is read from SimpleDB. If true, any data previously written to SimpleDB will - // be returned. Otherwise, results will be consistent eventually, and the client - // may not see data that was written immediately before your read. - ConsistentRead *bool `type:"boolean"` - - // The name of the domain in which to perform the operation. - DomainName *string `type:"string" required:"true"` - - // The name of the item. - ItemName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s GetAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAttributesInput"} - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.ItemName == nil { - invalidParams.Add(request.NewErrParamRequired("ItemName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetAttributesOutput struct { - _ struct{} `type:"structure"` - - // The list of attributes returned by the operation. - Attributes []*Attribute `locationNameList:"Attribute" type:"list" flattened:"true"` -} - -// String returns the string representation -func (s GetAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetAttributesOutput) GoString() string { - return s.String() -} - -type Item struct { - _ struct{} `type:"structure"` - - AlternateNameEncoding *string `type:"string"` - - // A list of attributes. - Attributes []*Attribute `locationNameList:"Attribute" type:"list" flattened:"true" required:"true"` - - // The name of the item. - Name *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s Item) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Item) GoString() string { - return s.String() -} - -type ListDomainsInput struct { - _ struct{} `type:"structure"` - - // The maximum number of domain names you want returned. The range is 1 to 100. - // The default setting is 100. - MaxNumberOfDomains *int64 `type:"integer"` - - // A string informing Amazon SimpleDB where to start the next list of domain - // names. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s ListDomainsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListDomainsInput) GoString() string { - return s.String() -} - -type ListDomainsOutput struct { - _ struct{} `type:"structure"` - - // A list of domain names that match the expression. - DomainNames []*string `locationNameList:"DomainName" type:"list" flattened:"true"` - - // An opaque token indicating that there are more domains than the specified - // MaxNumberOfDomains still available. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s ListDomainsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListDomainsOutput) GoString() string { - return s.String() -} - -type PutAttributesInput struct { - _ struct{} `type:"structure"` - - // The list of attributes. - Attributes []*ReplaceableAttribute `locationNameList:"Attribute" type:"list" flattened:"true" required:"true"` - - // The name of the domain in which to perform the operation. - DomainName *string `type:"string" required:"true"` - - // The update condition which, if specified, determines whether the specified - // attributes will be updated or not. The update condition must be satisfied - // in order for this request to be processed and the attributes to be updated. - Expected *UpdateCondition `type:"structure"` - - // The name of the item. - ItemName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s PutAttributesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutAttributesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutAttributesInput"} - if s.Attributes == nil { - invalidParams.Add(request.NewErrParamRequired("Attributes")) - } - if s.DomainName == nil { - invalidParams.Add(request.NewErrParamRequired("DomainName")) - } - if s.ItemName == nil { - invalidParams.Add(request.NewErrParamRequired("ItemName")) - } - if s.Attributes != nil { - for i, v := range s.Attributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type PutAttributesOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s PutAttributesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PutAttributesOutput) GoString() string { - return s.String() -} - -type ReplaceableAttribute struct { - _ struct{} `type:"structure"` - - // The name of the replaceable attribute. - Name *string `type:"string" required:"true"` - - // A flag specifying whether or not to replace the attribute/value pair or to - // add a new attribute/value pair. The default setting is false. - Replace *bool `type:"boolean"` - - // The value of the replaceable attribute. - Value *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s ReplaceableAttribute) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ReplaceableAttribute) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplaceableAttribute) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplaceableAttribute"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ReplaceableItem struct { - _ struct{} `type:"structure"` - - // The list of attributes for a replaceable item. - Attributes []*ReplaceableAttribute `locationNameList:"Attribute" type:"list" flattened:"true" required:"true"` - - // The name of the replaceable item. - Name *string `locationName:"ItemName" type:"string" required:"true"` -} - -// String returns the string representation -func (s ReplaceableItem) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ReplaceableItem) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplaceableItem) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplaceableItem"} - if s.Attributes == nil { - invalidParams.Add(request.NewErrParamRequired("Attributes")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Attributes != nil { - for i, v := range s.Attributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type SelectInput struct { - _ struct{} `type:"structure"` - - // Determines whether or not strong consistency should be enforced when data - // is read from SimpleDB. If true, any data previously written to SimpleDB will - // be returned. Otherwise, results will be consistent eventually, and the client - // may not see data that was written immediately before your read. - ConsistentRead *bool `type:"boolean"` - - // A string informing Amazon SimpleDB where to start the next list of ItemNames. - NextToken *string `type:"string"` - - // The expression used to query the domain. - SelectExpression *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s SelectInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SelectInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SelectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SelectInput"} - if s.SelectExpression == nil { - invalidParams.Add(request.NewErrParamRequired("SelectExpression")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type SelectOutput struct { - _ struct{} `type:"structure"` - - // A list of items that match the select expression. - Items []*Item `locationNameList:"Item" type:"list" flattened:"true"` - - // An opaque token indicating that more items than MaxNumberOfItems were matched, - // the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s SelectOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SelectOutput) GoString() string { - return s.String() -} - -// Specifies the conditions under which data should be updated. If an update -// condition is specified for a request, the data will only be updated if the -// condition is satisfied. For example, if an attribute with a specific name -// and value exists, or if a specific attribute doesn't exist. -type UpdateCondition struct { - _ struct{} `type:"structure"` - - // A value specifying whether or not the specified attribute must exist with - // the specified value in order for the update condition to be satisfied. Specify - // true if the attribute must exist for the update condition to be satisfied. - // Specify false if the attribute should not exist in order for the update condition - // to be satisfied. - Exists *bool `type:"boolean"` - - // The name of the attribute involved in the condition. - Name *string `type:"string"` - - // The value of an attribute. This value can only be specified when the Exists - // parameter is equal to true. - Value *string `type:"string"` -} - -// String returns the string representation -func (s UpdateCondition) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateCondition) GoString() string { - return s.String() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/customizations.go deleted file mode 100644 index a0dcce54b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/customizations.go +++ /dev/null @@ -1,11 +0,0 @@ -package simpledb - -import "github.com/aws/aws-sdk-go/aws/client" - -func init() { - initClient = func(c *client.Client) { - // SimpleDB uses custom error unmarshaling logic - c.Handlers.UnmarshalError.Clear() - c.Handlers.UnmarshalError.PushBack(unmarshalError) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go deleted file mode 100644 index 3cc39cc35..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/examples_test.go +++ /dev/null @@ -1,269 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package simpledb_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/simpledb" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleSimpleDB_BatchDeleteAttributes() { - svc := simpledb.New(session.New()) - - params := &simpledb.BatchDeleteAttributesInput{ - DomainName: aws.String("String"), // Required - Items: []*simpledb.DeletableItem{ // Required - { // Required - Name: aws.String("String"), // Required - Attributes: []*simpledb.DeletableAttribute{ - { // Required - Name: aws.String("String"), // Required - Value: aws.String("String"), - }, - // More values... - }, - }, - // More values... - }, - } - resp, err := svc.BatchDeleteAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSimpleDB_BatchPutAttributes() { - svc := simpledb.New(session.New()) - - params := &simpledb.BatchPutAttributesInput{ - DomainName: aws.String("String"), // Required - Items: []*simpledb.ReplaceableItem{ // Required - { // Required - Attributes: []*simpledb.ReplaceableAttribute{ // Required - { // Required - Name: aws.String("String"), // Required - Value: aws.String("String"), // Required - Replace: aws.Bool(true), - }, - // More values... - }, - Name: aws.String("String"), // Required - }, - // More values... - }, - } - resp, err := svc.BatchPutAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSimpleDB_CreateDomain() { - svc := simpledb.New(session.New()) - - params := &simpledb.CreateDomainInput{ - DomainName: aws.String("String"), // Required - } - resp, err := svc.CreateDomain(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSimpleDB_DeleteAttributes() { - svc := simpledb.New(session.New()) - - params := &simpledb.DeleteAttributesInput{ - DomainName: aws.String("String"), // Required - ItemName: aws.String("String"), // Required - Attributes: []*simpledb.DeletableAttribute{ - { // Required - Name: aws.String("String"), // Required - Value: aws.String("String"), - }, - // More values... - }, - Expected: &simpledb.UpdateCondition{ - Exists: aws.Bool(true), - Name: aws.String("String"), - Value: aws.String("String"), - }, - } - resp, err := svc.DeleteAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSimpleDB_DeleteDomain() { - svc := simpledb.New(session.New()) - - params := &simpledb.DeleteDomainInput{ - DomainName: aws.String("String"), // Required - } - resp, err := svc.DeleteDomain(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSimpleDB_DomainMetadata() { - svc := simpledb.New(session.New()) - - params := &simpledb.DomainMetadataInput{ - DomainName: aws.String("String"), // Required - } - resp, err := svc.DomainMetadata(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSimpleDB_GetAttributes() { - svc := simpledb.New(session.New()) - - params := &simpledb.GetAttributesInput{ - DomainName: aws.String("String"), // Required - ItemName: aws.String("String"), // Required - AttributeNames: []*string{ - aws.String("String"), // Required - // More values... - }, - ConsistentRead: aws.Bool(true), - } - resp, err := svc.GetAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSimpleDB_ListDomains() { - svc := simpledb.New(session.New()) - - params := &simpledb.ListDomainsInput{ - MaxNumberOfDomains: aws.Int64(1), - NextToken: aws.String("String"), - } - resp, err := svc.ListDomains(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSimpleDB_PutAttributes() { - svc := simpledb.New(session.New()) - - params := &simpledb.PutAttributesInput{ - Attributes: []*simpledb.ReplaceableAttribute{ // Required - { // Required - Name: aws.String("String"), // Required - Value: aws.String("String"), // Required - Replace: aws.Bool(true), - }, - // More values... - }, - DomainName: aws.String("String"), // Required - ItemName: aws.String("String"), // Required - Expected: &simpledb.UpdateCondition{ - Exists: aws.Bool(true), - Name: aws.String("String"), - Value: aws.String("String"), - }, - } - resp, err := svc.PutAttributes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSimpleDB_Select() { - svc := simpledb.New(session.New()) - - params := &simpledb.SelectInput{ - SelectExpression: aws.String("String"), // Required - ConsistentRead: aws.Bool(true), - NextToken: aws.String("String"), - } - resp, err := svc.Select(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go deleted file mode 100644 index 1dfe87752..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/service.go +++ /dev/null @@ -1,102 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package simpledb - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/corehandlers" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v2" -) - -// Amazon SimpleDB is a web service providing the core database functions of -// data indexing and querying in the cloud. By offloading the time and effort -// associated with building and operating a web-scale database, SimpleDB provides -// developers the freedom to focus on application development. A traditional, -// clustered relational database requires a sizable upfront capital outlay, -// is complex to design, and often requires extensive and repetitive database -// administration. Amazon SimpleDB is dramatically simpler, requiring no schema, -// automatically indexing your data and providing a simple API for storage and -// access. This approach eliminates the administrative burden of data modeling, -// index maintenance, and performance tuning. Developers gain access to this -// functionality within Amazon's proven computing environment, are able to scale -// instantly, and pay only for what they use. -// -// Visit http://aws.amazon.com/simpledb/ (http://aws.amazon.com/simpledb/) -// for more information. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type SimpleDB struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "sdb" - -// New creates a new instance of the SimpleDB client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a SimpleDB client from just a session. -// svc := simpledb.New(mySession) -// -// // Create a SimpleDB client with additional configuration -// svc := simpledb.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *SimpleDB { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SimpleDB { - svc := &SimpleDB{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2009-04-15", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v2.Sign) - svc.Handlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a SimpleDB operation and runs any -// custom request initialization. -func (c *SimpleDB) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go deleted file mode 100644 index ec20c016c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface.go +++ /dev/null @@ -1,58 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package simpledbiface provides an interface for the Amazon SimpleDB. -package simpledbiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/simpledb" -) - -// SimpleDBAPI is the interface type for simpledb.SimpleDB. -type SimpleDBAPI interface { - BatchDeleteAttributesRequest(*simpledb.BatchDeleteAttributesInput) (*request.Request, *simpledb.BatchDeleteAttributesOutput) - - BatchDeleteAttributes(*simpledb.BatchDeleteAttributesInput) (*simpledb.BatchDeleteAttributesOutput, error) - - BatchPutAttributesRequest(*simpledb.BatchPutAttributesInput) (*request.Request, *simpledb.BatchPutAttributesOutput) - - BatchPutAttributes(*simpledb.BatchPutAttributesInput) (*simpledb.BatchPutAttributesOutput, error) - - CreateDomainRequest(*simpledb.CreateDomainInput) (*request.Request, *simpledb.CreateDomainOutput) - - CreateDomain(*simpledb.CreateDomainInput) (*simpledb.CreateDomainOutput, error) - - DeleteAttributesRequest(*simpledb.DeleteAttributesInput) (*request.Request, *simpledb.DeleteAttributesOutput) - - DeleteAttributes(*simpledb.DeleteAttributesInput) (*simpledb.DeleteAttributesOutput, error) - - DeleteDomainRequest(*simpledb.DeleteDomainInput) (*request.Request, *simpledb.DeleteDomainOutput) - - DeleteDomain(*simpledb.DeleteDomainInput) (*simpledb.DeleteDomainOutput, error) - - DomainMetadataRequest(*simpledb.DomainMetadataInput) (*request.Request, *simpledb.DomainMetadataOutput) - - DomainMetadata(*simpledb.DomainMetadataInput) (*simpledb.DomainMetadataOutput, error) - - GetAttributesRequest(*simpledb.GetAttributesInput) (*request.Request, *simpledb.GetAttributesOutput) - - GetAttributes(*simpledb.GetAttributesInput) (*simpledb.GetAttributesOutput, error) - - ListDomainsRequest(*simpledb.ListDomainsInput) (*request.Request, *simpledb.ListDomainsOutput) - - ListDomains(*simpledb.ListDomainsInput) (*simpledb.ListDomainsOutput, error) - - ListDomainsPages(*simpledb.ListDomainsInput, func(*simpledb.ListDomainsOutput, bool) bool) error - - PutAttributesRequest(*simpledb.PutAttributesInput) (*request.Request, *simpledb.PutAttributesOutput) - - PutAttributes(*simpledb.PutAttributesInput) (*simpledb.PutAttributesOutput, error) - - SelectRequest(*simpledb.SelectInput) (*request.Request, *simpledb.SelectOutput) - - Select(*simpledb.SelectInput) (*simpledb.SelectOutput, error) - - SelectPages(*simpledb.SelectInput, func(*simpledb.SelectOutput, bool) bool) error -} - -var _ SimpleDBAPI = (*simpledb.SimpleDB)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshal_error_leak_test.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshal_error_leak_test.go deleted file mode 100644 index 340791db1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshal_error_leak_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package simpledb - -import ( - "github.com/stretchr/testify/assert" - "net/http" - "testing" - - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting" -) - -func TestUnmarhsalErrorLeak(t *testing.T) { - req := &request.Request{ - HTTPRequest: &http.Request{ - Header: make(http.Header), - Body: &awstesting.ReadCloser{Size: 2048}, - }, - } - req.HTTPResponse = &http.Response{ - Body: &awstesting.ReadCloser{Size: 2048}, - Header: http.Header{ - "X-Amzn-Requestid": []string{"1"}, - }, - StatusCode: http.StatusOK, - } - - reader := req.HTTPResponse.Body.(*awstesting.ReadCloser) - unmarshalError(req) - - assert.NotNil(t, req.Error) - assert.Equal(t, reader.Closed, true) - assert.Equal(t, reader.Size, 0) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshall_error.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshall_error.go deleted file mode 100644 index acc8a86eb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshall_error.go +++ /dev/null @@ -1,53 +0,0 @@ -package simpledb - -import ( - "encoding/xml" - "io" - "io/ioutil" - "strings" - - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/request" -) - -type xmlErrorDetail struct { - Code string `xml:"Code"` - Message string `xml:"Message"` -} - -type xmlErrorResponse struct { - XMLName xml.Name `xml:"Response"` - Errors []xmlErrorDetail `xml:"Errors>Error"` - RequestID string `xml:"RequestID"` -} - -func unmarshalError(r *request.Request) { - defer r.HTTPResponse.Body.Close() - defer io.Copy(ioutil.Discard, r.HTTPResponse.Body) - - if r.HTTPResponse.ContentLength == int64(0) { - // No body, use status code to generate an awserr.Error - r.Error = awserr.NewRequestFailure( - awserr.New(strings.Replace(r.HTTPResponse.Status, " ", "", -1), r.HTTPResponse.Status, nil), - r.HTTPResponse.StatusCode, - "", - ) - return - } - - resp := &xmlErrorResponse{} - err := xml.NewDecoder(r.HTTPResponse.Body).Decode(resp) - if err != nil && err != io.EOF { - r.Error = awserr.New("SerializationError", "failed to decode SimpleDB XML error response", nil) - } else if len(resp.Errors) == 0 { - r.Error = awserr.New("MissingError", "missing error code in SimpleDB XML error response", nil) - } else { - // If there are multiple error codes, return only the first as the aws.Error interface only supports - // one error code. - r.Error = awserr.NewRequestFailure( - awserr.New(resp.Errors[0].Code, resp.Errors[0].Message, nil), - r.HTTPResponse.StatusCode, - resp.RequestID, - ) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshall_error_test.go b/vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshall_error_test.go deleted file mode 100644 index 53f35a2d5..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/simpledb/unmarshall_error_test.go +++ /dev/null @@ -1,139 +0,0 @@ -package simpledb_test - -import ( - "bytes" - "io/ioutil" - "net/http" - "testing" - - "github.com/stretchr/testify/assert" - - "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/awstesting/unit" - "github.com/aws/aws-sdk-go/service/simpledb" -) - -var statusCodeErrorTests = []struct { - scode int - status string - code string - message string -}{ - {301, "Moved Permanently", "MovedPermanently", "Moved Permanently"}, - {403, "Forbidden", "Forbidden", "Forbidden"}, - {400, "Bad Request", "BadRequest", "Bad Request"}, - {404, "Not Found", "NotFound", "Not Found"}, - {500, "Internal Error", "InternalError", "Internal Error"}, -} - -func TestStatusCodeError(t *testing.T) { - for _, test := range statusCodeErrorTests { - s := simpledb.New(unit.Session) - s.Handlers.Send.Clear() - s.Handlers.Send.PushBack(func(r *request.Request) { - body := ioutil.NopCloser(bytes.NewReader([]byte{})) - r.HTTPResponse = &http.Response{ - ContentLength: 0, - StatusCode: test.scode, - Status: test.status, - Body: body, - } - }) - _, err := s.CreateDomain(&simpledb.CreateDomainInput{ - DomainName: aws.String("test-domain"), - }) - - assert.Error(t, err) - assert.Equal(t, test.code, err.(awserr.Error).Code()) - assert.Equal(t, test.message, err.(awserr.Error).Message()) - } -} - -var responseErrorTests = []struct { - scode int - status string - code string - message string - requestID string - errors []struct { - code string - message string - } -}{ - { - scode: 400, - status: "Bad Request", - code: "MissingError", - message: "missing error code in SimpleDB XML error response", - requestID: "101", - errors: []struct{ code, message string }{}, - }, - { - scode: 403, - status: "Forbidden", - code: "AuthFailure", - message: "AWS was not able to validate the provided access keys.", - requestID: "1111", - errors: []struct{ code, message string }{ - {"AuthFailure", "AWS was not able to validate the provided access keys."}, - }, - }, - { - scode: 500, - status: "Internal Error", - code: "MissingParameter", - message: "Message #1", - requestID: "8756", - errors: []struct{ code, message string }{ - {"MissingParameter", "Message #1"}, - {"InternalError", "Message #2"}, - }, - }, -} - -func TestResponseError(t *testing.T) { - for _, test := range responseErrorTests { - s := simpledb.New(unit.Session) - s.Handlers.Send.Clear() - s.Handlers.Send.PushBack(func(r *request.Request) { - xml := createXMLResponse(test.requestID, test.errors) - body := ioutil.NopCloser(bytes.NewReader([]byte(xml))) - r.HTTPResponse = &http.Response{ - ContentLength: int64(len(xml)), - StatusCode: test.scode, - Status: test.status, - Body: body, - } - }) - _, err := s.CreateDomain(&simpledb.CreateDomainInput{ - DomainName: aws.String("test-domain"), - }) - - assert.Error(t, err) - assert.Equal(t, test.code, err.(awserr.Error).Code()) - assert.Equal(t, test.message, err.(awserr.Error).Message()) - if len(test.errors) > 0 { - assert.Equal(t, test.requestID, err.(awserr.RequestFailure).RequestID()) - assert.Equal(t, test.scode, err.(awserr.RequestFailure).StatusCode()) - } - } -} - -// createXMLResponse constructs an XML string that has one or more error messages in it. -func createXMLResponse(requestID string, errors []struct{ code, message string }) []byte { - var buf bytes.Buffer - buf.WriteString(``) - for _, e := range errors { - buf.WriteString(``) - buf.WriteString(e.code) - buf.WriteString(``) - buf.WriteString(e.message) - buf.WriteString(``) - } - buf.WriteString(``) - buf.WriteString(requestID) - buf.WriteString(``) - return buf.Bytes() -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/api.go b/vendor/github.com/aws/aws-sdk-go/service/sns/api.go index 51f2f35cb..375153692 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/api.go @@ -4,12 +4,8 @@ package sns import ( - "fmt" - "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/private/protocol/query" ) const opAddPermission = "AddPermission" @@ -27,8 +23,6 @@ func (c *SNS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AddPermissionOutput{} req.Data = output return @@ -198,8 +192,6 @@ func (c *SNS) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteEndpointOutput{} req.Data = output return @@ -228,8 +220,6 @@ func (c *SNS) DeletePlatformApplicationRequest(input *DeletePlatformApplicationI } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeletePlatformApplicationOutput{} req.Data = output return @@ -259,8 +249,6 @@ func (c *SNS) DeleteTopicRequest(input *DeleteTopicInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteTopicOutput{} req.Data = output return @@ -431,7 +419,6 @@ func (c *SNS) ListEndpointsByPlatformApplication(input *ListEndpointsByPlatformA func (c *SNS) ListEndpointsByPlatformApplicationPages(input *ListEndpointsByPlatformApplicationInput, fn func(p *ListEndpointsByPlatformApplicationOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListEndpointsByPlatformApplicationRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListEndpointsByPlatformApplicationOutput), lastPage) }) @@ -479,7 +466,6 @@ func (c *SNS) ListPlatformApplications(input *ListPlatformApplicationsInput) (*L func (c *SNS) ListPlatformApplicationsPages(input *ListPlatformApplicationsInput, fn func(p *ListPlatformApplicationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListPlatformApplicationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListPlatformApplicationsOutput), lastPage) }) @@ -523,7 +509,6 @@ func (c *SNS) ListSubscriptions(input *ListSubscriptionsInput) (*ListSubscriptio func (c *SNS) ListSubscriptionsPages(input *ListSubscriptionsInput, fn func(p *ListSubscriptionsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListSubscriptionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListSubscriptionsOutput), lastPage) }) @@ -567,7 +552,6 @@ func (c *SNS) ListSubscriptionsByTopic(input *ListSubscriptionsByTopicInput) (*L func (c *SNS) ListSubscriptionsByTopicPages(input *ListSubscriptionsByTopicInput, fn func(p *ListSubscriptionsByTopicOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListSubscriptionsByTopicRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListSubscriptionsByTopicOutput), lastPage) }) @@ -610,7 +594,6 @@ func (c *SNS) ListTopics(input *ListTopicsInput) (*ListTopicsOutput, error) { func (c *SNS) ListTopicsPages(input *ListTopicsInput, fn func(p *ListTopicsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListTopicsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListTopicsOutput), lastPage) }) @@ -667,8 +650,6 @@ func (c *SNS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RemovePermissionOutput{} req.Data = output return @@ -696,8 +677,6 @@ func (c *SNS) SetEndpointAttributesRequest(input *SetEndpointAttributesInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetEndpointAttributesOutput{} req.Data = output return @@ -727,8 +706,6 @@ func (c *SNS) SetPlatformApplicationAttributesRequest(input *SetPlatformApplicat } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetPlatformApplicationAttributesOutput{} req.Data = output return @@ -758,8 +735,6 @@ func (c *SNS) SetSubscriptionAttributesRequest(input *SetSubscriptionAttributesI } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetSubscriptionAttributesOutput{} req.Data = output return @@ -787,8 +762,6 @@ func (c *SNS) SetTopicAttributesRequest(input *SetTopicAttributesInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetTopicAttributesOutput{} req.Data = output return @@ -846,8 +819,6 @@ func (c *SNS) UnsubscribeRequest(input *UnsubscribeInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &UnsubscribeOutput{} req.Data = output return @@ -866,8 +837,6 @@ func (c *SNS) Unsubscribe(input *UnsubscribeInput) (*UnsubscribeOutput, error) { } type AddPermissionInput struct { - _ struct{} `type:"structure"` - // The AWS account IDs of the users (principals) who will be given access to // the specified actions. The users must have AWS accounts, but do not need // to be signed up for this service. @@ -883,6 +852,12 @@ type AddPermissionInput struct { // The ARN of the topic whose access control policy you wish to modify. TopicArn *string `type:"string" required:"true"` + + metadataAddPermissionInput `json:"-" xml:"-"` +} + +type metadataAddPermissionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -895,30 +870,12 @@ func (s AddPermissionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddPermissionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddPermissionInput"} - if s.AWSAccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AWSAccountId")) - } - if s.ActionName == nil { - invalidParams.Add(request.NewErrParamRequired("ActionName")) - } - if s.Label == nil { - invalidParams.Add(request.NewErrParamRequired("Label")) - } - if s.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AddPermissionOutput struct { + metadataAddPermissionOutput `json:"-" xml:"-"` } -type AddPermissionOutput struct { - _ struct{} `type:"structure"` +type metadataAddPermissionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -933,8 +890,6 @@ func (s AddPermissionOutput) GoString() string { // Input for ConfirmSubscription action. type ConfirmSubscriptionInput struct { - _ struct{} `type:"structure"` - // Disallows unauthenticated unsubscribes of the subscription. If the value // of this parameter is true and the request has an AWS signature, then only // the topic owner and the subscription owner can unsubscribe the endpoint. @@ -946,6 +901,12 @@ type ConfirmSubscriptionInput struct { // The ARN of the topic for which you wish to confirm a subscription. TopicArn *string `type:"string" required:"true"` + + metadataConfirmSubscriptionInput `json:"-" xml:"-"` +} + +type metadataConfirmSubscriptionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -958,28 +919,16 @@ func (s ConfirmSubscriptionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConfirmSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConfirmSubscriptionInput"} - if s.Token == nil { - invalidParams.Add(request.NewErrParamRequired("Token")) - } - if s.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response for ConfirmSubscriptions action. type ConfirmSubscriptionOutput struct { - _ struct{} `type:"structure"` - // The ARN of the created subscription. SubscriptionArn *string `type:"string"` + + metadataConfirmSubscriptionOutput `json:"-" xml:"-"` +} + +type metadataConfirmSubscriptionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -994,8 +943,6 @@ func (s ConfirmSubscriptionOutput) GoString() string { // Input for CreatePlatformApplication action. type CreatePlatformApplicationInput struct { - _ struct{} `type:"structure"` - // For a list of attributes, see SetPlatformApplicationAttributes (http://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html) Attributes map[string]*string `type:"map" required:"true"` @@ -1007,6 +954,12 @@ type CreatePlatformApplicationInput struct { // The following platforms are supported: ADM (Amazon Device Messaging), APNS // (Apple Push Notification Service), APNS_SANDBOX, and GCM (Google Cloud Messaging). Platform *string `type:"string" required:"true"` + + metadataCreatePlatformApplicationInput `json:"-" xml:"-"` +} + +type metadataCreatePlatformApplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1019,31 +972,16 @@ func (s CreatePlatformApplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePlatformApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePlatformApplicationInput"} - if s.Attributes == nil { - invalidParams.Add(request.NewErrParamRequired("Attributes")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Platform == nil { - invalidParams.Add(request.NewErrParamRequired("Platform")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response from CreatePlatformApplication action. type CreatePlatformApplicationOutput struct { - _ struct{} `type:"structure"` - // PlatformApplicationArn is returned. PlatformApplicationArn *string `type:"string"` + + metadataCreatePlatformApplicationOutput `json:"-" xml:"-"` +} + +type metadataCreatePlatformApplicationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1058,8 +996,6 @@ func (s CreatePlatformApplicationOutput) GoString() string { // Input for CreatePlatformEndpoint action. type CreatePlatformEndpointInput struct { - _ struct{} `type:"structure"` - // For a list of attributes, see SetEndpointAttributes (http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html). Attributes map[string]*string `type:"map"` @@ -1077,6 +1013,12 @@ type CreatePlatformEndpointInput struct { // you need the device token. Alternatively, when using GCM or ADM, the device // token equivalent is called the registration ID. Token *string `type:"string" required:"true"` + + metadataCreatePlatformEndpointInput `json:"-" xml:"-"` +} + +type metadataCreatePlatformEndpointInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1089,28 +1031,16 @@ func (s CreatePlatformEndpointInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePlatformEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePlatformEndpointInput"} - if s.PlatformApplicationArn == nil { - invalidParams.Add(request.NewErrParamRequired("PlatformApplicationArn")) - } - if s.Token == nil { - invalidParams.Add(request.NewErrParamRequired("Token")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response from CreateEndpoint action. type CreatePlatformEndpointOutput struct { - _ struct{} `type:"structure"` - // EndpointArn returned from CreateEndpoint action. EndpointArn *string `type:"string"` + + metadataCreatePlatformEndpointOutput `json:"-" xml:"-"` +} + +type metadataCreatePlatformEndpointOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1125,14 +1055,18 @@ func (s CreatePlatformEndpointOutput) GoString() string { // Input for CreateTopic action. type CreateTopicInput struct { - _ struct{} `type:"structure"` - // The name of the topic you want to create. // // Constraints: Topic names must be made up of only uppercase and lowercase // ASCII letters, numbers, underscores, and hyphens, and must be between 1 and // 256 characters long. Name *string `type:"string" required:"true"` + + metadataCreateTopicInput `json:"-" xml:"-"` +} + +type metadataCreateTopicInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1145,25 +1079,16 @@ func (s CreateTopicInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTopicInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTopicInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response from CreateTopic action. type CreateTopicOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) assigned to the created topic. TopicArn *string `type:"string"` + + metadataCreateTopicOutput `json:"-" xml:"-"` +} + +type metadataCreateTopicOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1178,10 +1103,14 @@ func (s CreateTopicOutput) GoString() string { // Input for DeleteEndpoint action. type DeleteEndpointInput struct { - _ struct{} `type:"structure"` - // EndpointArn of endpoint to delete. EndpointArn *string `type:"string" required:"true"` + + metadataDeleteEndpointInput `json:"-" xml:"-"` +} + +type metadataDeleteEndpointInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1194,21 +1123,12 @@ func (s DeleteEndpointInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"} - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteEndpointOutput struct { + metadataDeleteEndpointOutput `json:"-" xml:"-"` } -type DeleteEndpointOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteEndpointOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1223,10 +1143,14 @@ func (s DeleteEndpointOutput) GoString() string { // Input for DeletePlatformApplication action. type DeletePlatformApplicationInput struct { - _ struct{} `type:"structure"` - // PlatformApplicationArn of platform application object to delete. PlatformApplicationArn *string `type:"string" required:"true"` + + metadataDeletePlatformApplicationInput `json:"-" xml:"-"` +} + +type metadataDeletePlatformApplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1239,21 +1163,12 @@ func (s DeletePlatformApplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePlatformApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePlatformApplicationInput"} - if s.PlatformApplicationArn == nil { - invalidParams.Add(request.NewErrParamRequired("PlatformApplicationArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeletePlatformApplicationOutput struct { + metadataDeletePlatformApplicationOutput `json:"-" xml:"-"` } -type DeletePlatformApplicationOutput struct { - _ struct{} `type:"structure"` +type metadataDeletePlatformApplicationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1267,10 +1182,14 @@ func (s DeletePlatformApplicationOutput) GoString() string { } type DeleteTopicInput struct { - _ struct{} `type:"structure"` - // The ARN of the topic you want to delete. TopicArn *string `type:"string" required:"true"` + + metadataDeleteTopicInput `json:"-" xml:"-"` +} + +type metadataDeleteTopicInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1283,21 +1202,12 @@ func (s DeleteTopicInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTopicInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTopicInput"} - if s.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteTopicOutput struct { + metadataDeleteTopicOutput `json:"-" xml:"-"` } -type DeleteTopicOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteTopicOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1312,13 +1222,17 @@ func (s DeleteTopicOutput) GoString() string { // Endpoint for mobile app and device. type Endpoint struct { - _ struct{} `type:"structure"` - // Attributes for endpoint. Attributes map[string]*string `type:"map"` // EndpointArn for mobile app and device. EndpointArn *string `type:"string"` + + metadataEndpoint `json:"-" xml:"-"` +} + +type metadataEndpoint struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1333,10 +1247,14 @@ func (s Endpoint) GoString() string { // Input for GetEndpointAttributes action. type GetEndpointAttributesInput struct { - _ struct{} `type:"structure"` - // EndpointArn for GetEndpointAttributes input. EndpointArn *string `type:"string" required:"true"` + + metadataGetEndpointAttributesInput `json:"-" xml:"-"` +} + +type metadataGetEndpointAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1349,23 +1267,8 @@ func (s GetEndpointAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetEndpointAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetEndpointAttributesInput"} - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response from GetEndpointAttributes of the EndpointArn. type GetEndpointAttributesOutput struct { - _ struct{} `type:"structure"` - // Attributes include the following: // // CustomUserData -- arbitrary user data to associate with the endpoint. @@ -1378,6 +1281,12 @@ type GetEndpointAttributesOutput struct { // service when an app and mobile device are registered with the notification // service. Attributes map[string]*string `type:"map"` + + metadataGetEndpointAttributesOutput `json:"-" xml:"-"` +} + +type metadataGetEndpointAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1392,10 +1301,14 @@ func (s GetEndpointAttributesOutput) GoString() string { // Input for GetPlatformApplicationAttributes action. type GetPlatformApplicationAttributesInput struct { - _ struct{} `type:"structure"` - // PlatformApplicationArn for GetPlatformApplicationAttributesInput. PlatformApplicationArn *string `type:"string" required:"true"` + + metadataGetPlatformApplicationAttributesInput `json:"-" xml:"-"` +} + +type metadataGetPlatformApplicationAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1408,23 +1321,8 @@ func (s GetPlatformApplicationAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPlatformApplicationAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPlatformApplicationAttributesInput"} - if s.PlatformApplicationArn == nil { - invalidParams.Add(request.NewErrParamRequired("PlatformApplicationArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response for GetPlatformApplicationAttributes action. type GetPlatformApplicationAttributesOutput struct { - _ struct{} `type:"structure"` - // Attributes include the following: // // EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications @@ -1435,6 +1333,12 @@ type GetPlatformApplicationAttributesOutput struct { // upon Direct Publish delivery failure (permanent) to one of the application's // endpoints. Attributes map[string]*string `type:"map"` + + metadataGetPlatformApplicationAttributesOutput `json:"-" xml:"-"` +} + +type metadataGetPlatformApplicationAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1449,10 +1353,14 @@ func (s GetPlatformApplicationAttributesOutput) GoString() string { // Input for GetSubscriptionAttributes. type GetSubscriptionAttributesInput struct { - _ struct{} `type:"structure"` - // The ARN of the subscription whose properties you want to get. SubscriptionArn *string `type:"string" required:"true"` + + metadataGetSubscriptionAttributesInput `json:"-" xml:"-"` +} + +type metadataGetSubscriptionAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1465,23 +1373,8 @@ func (s GetSubscriptionAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSubscriptionAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSubscriptionAttributesInput"} - if s.SubscriptionArn == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response for GetSubscriptionAttributes action. type GetSubscriptionAttributesOutput struct { - _ struct{} `type:"structure"` - // A map of the subscription's attributes. Attributes in this map include the // following: // @@ -1493,6 +1386,12 @@ type GetSubscriptionAttributesOutput struct { // of the effective delivery policy that takes into account the topic delivery // policy and account system defaults Attributes map[string]*string `type:"map"` + + metadataGetSubscriptionAttributesOutput `json:"-" xml:"-"` +} + +type metadataGetSubscriptionAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1507,10 +1406,14 @@ func (s GetSubscriptionAttributesOutput) GoString() string { // Input for GetTopicAttributes action. type GetTopicAttributesInput struct { - _ struct{} `type:"structure"` - // The ARN of the topic whose properties you want to get. TopicArn *string `type:"string" required:"true"` + + metadataGetTopicAttributesInput `json:"-" xml:"-"` +} + +type metadataGetTopicAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1523,23 +1426,8 @@ func (s GetTopicAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTopicAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTopicAttributesInput"} - if s.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response for GetTopicAttributes action. type GetTopicAttributesOutput struct { - _ struct{} `type:"structure"` - // A map of the topic's attributes. Attributes in this map include the following: // // TopicArn -- the topic's ARN Owner -- the AWS account ID of the topic's @@ -1553,6 +1441,12 @@ type GetTopicAttributesOutput struct { // -- the JSON serialization of the effective delivery policy that takes into // account system defaults Attributes map[string]*string `type:"map"` + + metadataGetTopicAttributesOutput `json:"-" xml:"-"` +} + +type metadataGetTopicAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1567,8 +1461,6 @@ func (s GetTopicAttributesOutput) GoString() string { // Input for ListEndpointsByPlatformApplication action. type ListEndpointsByPlatformApplicationInput struct { - _ struct{} `type:"structure"` - // NextToken string is used when calling ListEndpointsByPlatformApplication // action to retrieve additional records that are available after the first // page results. @@ -1576,6 +1468,12 @@ type ListEndpointsByPlatformApplicationInput struct { // PlatformApplicationArn for ListEndpointsByPlatformApplicationInput action. PlatformApplicationArn *string `type:"string" required:"true"` + + metadataListEndpointsByPlatformApplicationInput `json:"-" xml:"-"` +} + +type metadataListEndpointsByPlatformApplicationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1588,29 +1486,20 @@ func (s ListEndpointsByPlatformApplicationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListEndpointsByPlatformApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEndpointsByPlatformApplicationInput"} - if s.PlatformApplicationArn == nil { - invalidParams.Add(request.NewErrParamRequired("PlatformApplicationArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response for ListEndpointsByPlatformApplication action. type ListEndpointsByPlatformApplicationOutput struct { - _ struct{} `type:"structure"` - // Endpoints returned for ListEndpointsByPlatformApplication action. Endpoints []*Endpoint `type:"list"` // NextToken string is returned when calling ListEndpointsByPlatformApplication // action if additional records are available after the first page results. NextToken *string `type:"string"` + + metadataListEndpointsByPlatformApplicationOutput `json:"-" xml:"-"` +} + +type metadataListEndpointsByPlatformApplicationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1625,11 +1514,15 @@ func (s ListEndpointsByPlatformApplicationOutput) GoString() string { // Input for ListPlatformApplications action. type ListPlatformApplicationsInput struct { - _ struct{} `type:"structure"` - // NextToken string is used when calling ListPlatformApplications action to // retrieve additional records that are available after the first page results. NextToken *string `type:"string"` + + metadataListPlatformApplicationsInput `json:"-" xml:"-"` +} + +type metadataListPlatformApplicationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1644,14 +1537,18 @@ func (s ListPlatformApplicationsInput) GoString() string { // Response for ListPlatformApplications action. type ListPlatformApplicationsOutput struct { - _ struct{} `type:"structure"` - // NextToken string is returned when calling ListPlatformApplications action // if additional records are available after the first page results. NextToken *string `type:"string"` // Platform applications returned when calling ListPlatformApplications action. PlatformApplications []*PlatformApplication `type:"list"` + + metadataListPlatformApplicationsOutput `json:"-" xml:"-"` +} + +type metadataListPlatformApplicationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1666,13 +1563,17 @@ func (s ListPlatformApplicationsOutput) GoString() string { // Input for ListSubscriptionsByTopic action. type ListSubscriptionsByTopicInput struct { - _ struct{} `type:"structure"` - // Token returned by the previous ListSubscriptionsByTopic request. NextToken *string `type:"string"` // The ARN of the topic for which you wish to find subscriptions. TopicArn *string `type:"string" required:"true"` + + metadataListSubscriptionsByTopicInput `json:"-" xml:"-"` +} + +type metadataListSubscriptionsByTopicInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1685,29 +1586,20 @@ func (s ListSubscriptionsByTopicInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSubscriptionsByTopicInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSubscriptionsByTopicInput"} - if s.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response for ListSubscriptionsByTopic action. type ListSubscriptionsByTopicOutput struct { - _ struct{} `type:"structure"` - // Token to pass along to the next ListSubscriptionsByTopic request. This element // is returned if there are more subscriptions to retrieve. NextToken *string `type:"string"` // A list of subscriptions. Subscriptions []*Subscription `type:"list"` + + metadataListSubscriptionsByTopicOutput `json:"-" xml:"-"` +} + +type metadataListSubscriptionsByTopicOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1722,10 +1614,14 @@ func (s ListSubscriptionsByTopicOutput) GoString() string { // Input for ListSubscriptions action. type ListSubscriptionsInput struct { - _ struct{} `type:"structure"` - // Token returned by the previous ListSubscriptions request. NextToken *string `type:"string"` + + metadataListSubscriptionsInput `json:"-" xml:"-"` +} + +type metadataListSubscriptionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1740,14 +1636,18 @@ func (s ListSubscriptionsInput) GoString() string { // Response for ListSubscriptions action type ListSubscriptionsOutput struct { - _ struct{} `type:"structure"` - // Token to pass along to the next ListSubscriptions request. This element is // returned if there are more subscriptions to retrieve. NextToken *string `type:"string"` // A list of subscriptions. Subscriptions []*Subscription `type:"list"` + + metadataListSubscriptionsOutput `json:"-" xml:"-"` +} + +type metadataListSubscriptionsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1761,10 +1661,14 @@ func (s ListSubscriptionsOutput) GoString() string { } type ListTopicsInput struct { - _ struct{} `type:"structure"` - // Token returned by the previous ListTopics request. NextToken *string `type:"string"` + + metadataListTopicsInput `json:"-" xml:"-"` +} + +type metadataListTopicsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1779,14 +1683,18 @@ func (s ListTopicsInput) GoString() string { // Response for ListTopics action. type ListTopicsOutput struct { - _ struct{} `type:"structure"` - // Token to pass along to the next ListTopics request. This element is returned // if there are additional topics to retrieve. NextToken *string `type:"string"` // A list of topic ARNs. Topics []*Topic `type:"list"` + + metadataListTopicsOutput `json:"-" xml:"-"` +} + +type metadataListTopicsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1809,12 +1717,8 @@ func (s ListTopicsOutput) GoString() string { // is currently 256 KB (262,144 bytes). For more information, see Using Amazon // SNS Message Attributes (http://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html). type MessageAttributeValue struct { - _ struct{} `type:"structure"` - // Binary type attributes can store any binary data, for example, compressed // data, encrypted data, or images. - // - // BinaryValue is automatically base64 encoded/decoded by the SDK. BinaryValue []byte `type:"blob"` // Amazon SNS supports the following logical data types: String, Number, and @@ -1824,6 +1728,12 @@ type MessageAttributeValue struct { // Strings are Unicode with UTF8 binary encoding. For a list of code values, // see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). StringValue *string `type:"string"` + + metadataMessageAttributeValue `json:"-" xml:"-"` +} + +type metadataMessageAttributeValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1836,28 +1746,19 @@ func (s MessageAttributeValue) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MessageAttributeValue) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MessageAttributeValue"} - if s.DataType == nil { - invalidParams.Add(request.NewErrParamRequired("DataType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Platform application object. type PlatformApplication struct { - _ struct{} `type:"structure"` - // Attributes for platform application object. Attributes map[string]*string `type:"map"` // PlatformApplicationArn for platform application object. PlatformApplicationArn *string `type:"string"` + + metadataPlatformApplication `json:"-" xml:"-"` +} + +type metadataPlatformApplication struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1872,8 +1773,6 @@ func (s PlatformApplication) GoString() string { // Input for Publish action. type PublishInput struct { - _ struct{} `type:"structure"` - // The message you want to send to the topic. // // If you want to send the same message to all transport protocols, include @@ -1935,6 +1834,12 @@ type PublishInput struct { // The topic you want to publish to. TopicArn *string `type:"string"` + + metadataPublishInput `json:"-" xml:"-"` +} + +type metadataPublishInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1947,37 +1852,18 @@ func (s PublishInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PublishInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PublishInput"} - if s.Message == nil { - invalidParams.Add(request.NewErrParamRequired("Message")) - } - if s.MessageAttributes != nil { - for i, v := range s.MessageAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MessageAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response for Publish action. type PublishOutput struct { - _ struct{} `type:"structure"` - // Unique identifier assigned to the published message. // // Length Constraint: Maximum 100 characters MessageId *string `type:"string"` + + metadataPublishOutput `json:"-" xml:"-"` +} + +type metadataPublishOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1992,13 +1878,17 @@ func (s PublishOutput) GoString() string { // Input for RemovePermission action. type RemovePermissionInput struct { - _ struct{} `type:"structure"` - // The unique label of the statement you want to remove. Label *string `type:"string" required:"true"` // The ARN of the topic whose access control policy you wish to modify. TopicArn *string `type:"string" required:"true"` + + metadataRemovePermissionInput `json:"-" xml:"-"` +} + +type metadataRemovePermissionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2011,24 +1901,12 @@ 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.Label == nil { - invalidParams.Add(request.NewErrParamRequired("Label")) - } - if s.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RemovePermissionOutput struct { + metadataRemovePermissionOutput `json:"-" xml:"-"` } -type RemovePermissionOutput struct { - _ struct{} `type:"structure"` +type metadataRemovePermissionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2043,8 +1921,6 @@ func (s RemovePermissionOutput) GoString() string { // Input for SetEndpointAttributes action. type SetEndpointAttributesInput struct { - _ struct{} `type:"structure"` - // A map of the endpoint attributes. Attributes in this map include the following: // // CustomUserData -- arbitrary user data to associate with the endpoint. @@ -2060,6 +1936,12 @@ type SetEndpointAttributesInput struct { // EndpointArn used for SetEndpointAttributes action. EndpointArn *string `type:"string" required:"true"` + + metadataSetEndpointAttributesInput `json:"-" xml:"-"` +} + +type metadataSetEndpointAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2072,24 +1954,12 @@ func (s SetEndpointAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetEndpointAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetEndpointAttributesInput"} - if s.Attributes == nil { - invalidParams.Add(request.NewErrParamRequired("Attributes")) - } - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetEndpointAttributesOutput struct { + metadataSetEndpointAttributesOutput `json:"-" xml:"-"` } -type SetEndpointAttributesOutput struct { - _ struct{} `type:"structure"` +type metadataSetEndpointAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2104,8 +1974,6 @@ func (s SetEndpointAttributesOutput) GoString() string { // Input for SetPlatformApplicationAttributes action. type SetPlatformApplicationAttributesInput struct { - _ struct{} `type:"structure"` - // A map of the platform application attributes. Attributes in this map include // the following: // @@ -2125,6 +1993,12 @@ type SetPlatformApplicationAttributesInput struct { // PlatformApplicationArn for SetPlatformApplicationAttributes action. PlatformApplicationArn *string `type:"string" required:"true"` + + metadataSetPlatformApplicationAttributesInput `json:"-" xml:"-"` +} + +type metadataSetPlatformApplicationAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2137,24 +2011,12 @@ func (s SetPlatformApplicationAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetPlatformApplicationAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetPlatformApplicationAttributesInput"} - if s.Attributes == nil { - invalidParams.Add(request.NewErrParamRequired("Attributes")) - } - if s.PlatformApplicationArn == nil { - invalidParams.Add(request.NewErrParamRequired("PlatformApplicationArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetPlatformApplicationAttributesOutput struct { + metadataSetPlatformApplicationAttributesOutput `json:"-" xml:"-"` } -type SetPlatformApplicationAttributesOutput struct { - _ struct{} `type:"structure"` +type metadataSetPlatformApplicationAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2169,8 +2031,6 @@ func (s SetPlatformApplicationAttributesOutput) GoString() string { // Input for SetSubscriptionAttributes action. type SetSubscriptionAttributesInput struct { - _ struct{} `type:"structure"` - // The name of the attribute you want to set. Only a subset of the subscriptions // attributes are mutable. // @@ -2182,6 +2042,12 @@ type SetSubscriptionAttributesInput struct { // The ARN of the subscription to modify. SubscriptionArn *string `type:"string" required:"true"` + + metadataSetSubscriptionAttributesInput `json:"-" xml:"-"` +} + +type metadataSetSubscriptionAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2194,24 +2060,12 @@ func (s SetSubscriptionAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetSubscriptionAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetSubscriptionAttributesInput"} - if s.AttributeName == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeName")) - } - if s.SubscriptionArn == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetSubscriptionAttributesOutput struct { + metadataSetSubscriptionAttributesOutput `json:"-" xml:"-"` } -type SetSubscriptionAttributesOutput struct { - _ struct{} `type:"structure"` +type metadataSetSubscriptionAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2226,8 +2080,6 @@ func (s SetSubscriptionAttributesOutput) GoString() string { // Input for SetTopicAttributes action. type SetTopicAttributesInput struct { - _ struct{} `type:"structure"` - // The name of the attribute you want to set. Only a subset of the topic's attributes // are mutable. // @@ -2239,6 +2091,12 @@ type SetTopicAttributesInput struct { // The ARN of the topic to modify. TopicArn *string `type:"string" required:"true"` + + metadataSetTopicAttributesInput `json:"-" xml:"-"` +} + +type metadataSetTopicAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2251,24 +2109,12 @@ func (s SetTopicAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetTopicAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetTopicAttributesInput"} - if s.AttributeName == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeName")) - } - if s.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetTopicAttributesOutput struct { + metadataSetTopicAttributesOutput `json:"-" xml:"-"` } -type SetTopicAttributesOutput struct { - _ struct{} `type:"structure"` +type metadataSetTopicAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2283,8 +2129,6 @@ func (s SetTopicAttributesOutput) GoString() string { // Input for Subscribe action. type SubscribeInput struct { - _ struct{} `type:"structure"` - // The endpoint that you want to receive notifications. Endpoints vary by protocol: // // For the http protocol, the endpoint is an URL beginning with "http://" @@ -2308,6 +2152,12 @@ type SubscribeInput struct { // The ARN of the topic you want to subscribe to. TopicArn *string `type:"string" required:"true"` + + metadataSubscribeInput `json:"-" xml:"-"` +} + +type metadataSubscribeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2320,29 +2170,17 @@ func (s SubscribeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SubscribeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SubscribeInput"} - if s.Protocol == nil { - invalidParams.Add(request.NewErrParamRequired("Protocol")) - } - if s.TopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("TopicArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Response for Subscribe action. type SubscribeOutput struct { - _ struct{} `type:"structure"` - // The ARN of the subscription, if the service was able to create a subscription // immediately (without requiring endpoint owner confirmation). SubscriptionArn *string `type:"string"` + + metadataSubscribeOutput `json:"-" xml:"-"` +} + +type metadataSubscribeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2357,8 +2195,6 @@ func (s SubscribeOutput) GoString() string { // A wrapper type for the attributes of an Amazon SNS subscription. type Subscription struct { - _ struct{} `type:"structure"` - // The subscription's endpoint (format depends on the protocol). Endpoint *string `type:"string"` @@ -2373,6 +2209,12 @@ type Subscription struct { // The ARN of the subscription's topic. TopicArn *string `type:"string"` + + metadataSubscription `json:"-" xml:"-"` +} + +type metadataSubscription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2388,10 +2230,14 @@ func (s Subscription) GoString() string { // A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a // topic's attributes, use GetTopicAttributes. type Topic struct { - _ struct{} `type:"structure"` - // The topic's ARN. TopicArn *string `type:"string"` + + metadataTopic `json:"-" xml:"-"` +} + +type metadataTopic struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2406,10 +2252,14 @@ func (s Topic) GoString() string { // Input for Unsubscribe action. type UnsubscribeInput struct { - _ struct{} `type:"structure"` - // The ARN of the subscription to be deleted. SubscriptionArn *string `type:"string" required:"true"` + + metadataUnsubscribeInput `json:"-" xml:"-"` +} + +type metadataUnsubscribeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2422,21 +2272,12 @@ func (s UnsubscribeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UnsubscribeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UnsubscribeInput"} - if s.SubscriptionArn == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type UnsubscribeOutput struct { + metadataUnsubscribeOutput `json:"-" xml:"-"` } -type UnsubscribeOutput struct { - _ struct{} `type:"structure"` +type metadataUnsubscribeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go index 4578ed6e7..20671b66c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sns" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSNS_AddPermission() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.AddPermissionInput{ AWSAccountId: []*string{ // Required @@ -44,7 +43,7 @@ func ExampleSNS_AddPermission() { } func ExampleSNS_ConfirmSubscription() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.ConfirmSubscriptionInput{ Token: aws.String("token"), // Required @@ -65,7 +64,7 @@ func ExampleSNS_ConfirmSubscription() { } func ExampleSNS_CreatePlatformApplication() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.CreatePlatformApplicationInput{ Attributes: map[string]*string{ // Required @@ -89,7 +88,7 @@ func ExampleSNS_CreatePlatformApplication() { } func ExampleSNS_CreatePlatformEndpoint() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.CreatePlatformEndpointInput{ PlatformApplicationArn: aws.String("String"), // Required @@ -114,7 +113,7 @@ func ExampleSNS_CreatePlatformEndpoint() { } func ExampleSNS_CreateTopic() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.CreateTopicInput{ Name: aws.String("topicName"), // Required @@ -133,7 +132,7 @@ func ExampleSNS_CreateTopic() { } func ExampleSNS_DeleteEndpoint() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.DeleteEndpointInput{ EndpointArn: aws.String("String"), // Required @@ -152,7 +151,7 @@ func ExampleSNS_DeleteEndpoint() { } func ExampleSNS_DeletePlatformApplication() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.DeletePlatformApplicationInput{ PlatformApplicationArn: aws.String("String"), // Required @@ -171,7 +170,7 @@ func ExampleSNS_DeletePlatformApplication() { } func ExampleSNS_DeleteTopic() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.DeleteTopicInput{ TopicArn: aws.String("topicARN"), // Required @@ -190,7 +189,7 @@ func ExampleSNS_DeleteTopic() { } func ExampleSNS_GetEndpointAttributes() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.GetEndpointAttributesInput{ EndpointArn: aws.String("String"), // Required @@ -209,7 +208,7 @@ func ExampleSNS_GetEndpointAttributes() { } func ExampleSNS_GetPlatformApplicationAttributes() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.GetPlatformApplicationAttributesInput{ PlatformApplicationArn: aws.String("String"), // Required @@ -228,7 +227,7 @@ func ExampleSNS_GetPlatformApplicationAttributes() { } func ExampleSNS_GetSubscriptionAttributes() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.GetSubscriptionAttributesInput{ SubscriptionArn: aws.String("subscriptionARN"), // Required @@ -247,7 +246,7 @@ func ExampleSNS_GetSubscriptionAttributes() { } func ExampleSNS_GetTopicAttributes() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.GetTopicAttributesInput{ TopicArn: aws.String("topicARN"), // Required @@ -266,7 +265,7 @@ func ExampleSNS_GetTopicAttributes() { } func ExampleSNS_ListEndpointsByPlatformApplication() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.ListEndpointsByPlatformApplicationInput{ PlatformApplicationArn: aws.String("String"), // Required @@ -286,7 +285,7 @@ func ExampleSNS_ListEndpointsByPlatformApplication() { } func ExampleSNS_ListPlatformApplications() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.ListPlatformApplicationsInput{ NextToken: aws.String("String"), @@ -305,7 +304,7 @@ func ExampleSNS_ListPlatformApplications() { } func ExampleSNS_ListSubscriptions() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.ListSubscriptionsInput{ NextToken: aws.String("nextToken"), @@ -324,7 +323,7 @@ func ExampleSNS_ListSubscriptions() { } func ExampleSNS_ListSubscriptionsByTopic() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.ListSubscriptionsByTopicInput{ TopicArn: aws.String("topicARN"), // Required @@ -344,7 +343,7 @@ func ExampleSNS_ListSubscriptionsByTopic() { } func ExampleSNS_ListTopics() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.ListTopicsInput{ NextToken: aws.String("nextToken"), @@ -363,7 +362,7 @@ func ExampleSNS_ListTopics() { } func ExampleSNS_Publish() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.PublishInput{ Message: aws.String("message"), // Required @@ -394,7 +393,7 @@ func ExampleSNS_Publish() { } func ExampleSNS_RemovePermission() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.RemovePermissionInput{ Label: aws.String("label"), // Required @@ -414,7 +413,7 @@ func ExampleSNS_RemovePermission() { } func ExampleSNS_SetEndpointAttributes() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.SetEndpointAttributesInput{ Attributes: map[string]*string{ // Required @@ -437,7 +436,7 @@ func ExampleSNS_SetEndpointAttributes() { } func ExampleSNS_SetPlatformApplicationAttributes() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.SetPlatformApplicationAttributesInput{ Attributes: map[string]*string{ // Required @@ -460,7 +459,7 @@ func ExampleSNS_SetPlatformApplicationAttributes() { } func ExampleSNS_SetSubscriptionAttributes() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.SetSubscriptionAttributesInput{ AttributeName: aws.String("attributeName"), // Required @@ -481,7 +480,7 @@ func ExampleSNS_SetSubscriptionAttributes() { } func ExampleSNS_SetTopicAttributes() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.SetTopicAttributesInput{ AttributeName: aws.String("attributeName"), // Required @@ -502,7 +501,7 @@ func ExampleSNS_SetTopicAttributes() { } func ExampleSNS_Subscribe() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.SubscribeInput{ Protocol: aws.String("protocol"), // Required @@ -523,7 +522,7 @@ func ExampleSNS_Subscribe() { } func ExampleSNS_Unsubscribe() { - svc := sns.New(session.New()) + svc := sns.New(nil) params := &sns.UnsubscribeInput{ SubscriptionArn: aws.String("subscriptionARN"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/service.go b/vendor/github.com/aws/aws-sdk-go/service/sns/service.go index 7d87839b3..5eee919ab 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/service.go @@ -4,11 +4,12 @@ package sns import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Amazon Simple Notification Service (Amazon SNS) is a web service that enables @@ -24,64 +25,40 @@ import ( // care of tasks such as: cryptographically signing your service requests, retrying // requests, and handling error responses. For a list of available SDKs, go // to Tools for Amazon Web Services (http://aws.amazon.com/tools/). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type SNS struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "sns" - -// New creates a new instance of the SNS client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a SNS client from just a session. -// svc := sns.New(mySession) -// -// // Create a SNS client with additional configuration -// svc := sns.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *SNS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SNS { - svc := &SNS{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2010-03-31", - }, - handlers, - ), +// New returns a new SNS client. +func New(config *aws.Config) *SNS { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "sns", + APIVersion: "2010-03-31", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &SNS{service} } // newRequest creates a new request for a SNS operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go index 0df9e5024..0e3d98b68 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface.go @@ -120,5 +120,3 @@ type SNSAPI interface { Unsubscribe(*sns.UnsubscribeInput) (*sns.UnsubscribeOutput, error) } - -var _ SNSAPI = (*sns.SNS)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface_test.go new file mode 100644 index 000000000..051665708 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package snsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/sns" + "github.com/aws/aws-sdk-go/service/sns/snsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*snsiface.SNSAPI)(nil), sns.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go index fd153ba1b..ab47f0998 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/api.go @@ -4,12 +4,8 @@ package sqs import ( - "fmt" - "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/private/protocol/query" ) const opAddPermission = "AddPermission" @@ -27,8 +23,6 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &AddPermissionOutput{} req.Data = output return @@ -49,7 +43,9 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ // // Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, -// a parameter list with two elements looks like this: +// a parameter list with two elements looks like this: &Attribute.1=this +// +// &Attribute.2=that func (c *SQS) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) err := req.Send() @@ -71,8 +67,6 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &ChangeMessageVisibilityOutput{} req.Data = output return @@ -86,12 +80,11 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput // in the Amazon SQS Developer Guide.) // // For example, let's say you have a message and its default message visibility -// timeout is 5 minutes. After 3 minutes, you call ChangeMessageVisiblity with -// a timeout of 10 minutes. At that time, the timeout for the message would -// be extended by 10 minutes beyond the time of the ChangeMessageVisibility -// call. This results in a total visibility timeout of 13 minutes. You can continue -// to call ChangeMessageVisibility to extend the visibility timeout to a maximum -// of 12 hours. If you try to extend beyond 12 hours, the request will be rejected. +// timeout is 30 minutes. You could call ChangeMessageVisiblity with a value +// of two hours and the effective timeout would be two hours and 30 minutes. +// When that time comes near you could again extend the time out by calling +// ChangeMessageVisiblity, but this time the maximum allowed timeout would be +// 9 hours and 30 minutes. // // There is a 120,000 limit for the number of inflight messages per queue. // Messages are inflight after they have been received from the queue by a consuming @@ -103,14 +96,12 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput // // If you attempt to set the VisibilityTimeout to an amount more than the maximum // time left, Amazon SQS returns an error. It will not automatically recalculate -// and increase the timeout to the maximum time remaining. -// -// Unlike with a queue, when you change the visibility timeout for a specific -// message, that timeout value is applied immediately but is not saved in memory -// for that message. If you don't delete a message after it is received, the -// visibility timeout for the message the next time it is received reverts to -// the original timeout value, not the value you set with the ChangeMessageVisibility -// action. +// and increase the timeout to the maximum time remaining. Unlike with a queue, +// when you change the visibility timeout for a specific message, that timeout +// value is applied immediately but is not saved in memory for that message. +// If you don't delete a message after it is received, the visibility timeout +// for the message the next time it is received reverts to the original timeout +// value, not the value you set with the ChangeMessageVisibility action. func (c *SQS) ChangeMessageVisibility(input *ChangeMessageVisibilityInput) (*ChangeMessageVisibilityOutput, error) { req, out := c.ChangeMessageVisibilityRequest(input) err := req.Send() @@ -144,11 +135,12 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility // // Because the batch request can result in a combination of successful and // unsuccessful actions, you should check for batch errors even when the call -// returns an HTTP status code of 200. +// returns an HTTP status code of 200. Some API actions take lists of parameters. +// These lists are specified using the param.n notation. Values of n are integers +// starting from 1. For example, a parameter list with two elements looks like +// this: &Attribute.1=this // -// Some API actions take lists of parameters. These lists are specified using -// the param.n notation. Values of n are integers starting from 1. For example, -// a parameter list with two elements looks like this: +// &Attribute.2=that func (c *SQS) ChangeMessageVisibilityBatch(input *ChangeMessageVisibilityBatchInput) (*ChangeMessageVisibilityBatchOutput, error) { req, out := c.ChangeMessageVisibilityBatchRequest(input) err := req.Send() @@ -185,7 +177,7 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, // // You may pass one or more attributes in the request. If you do not provide // a value for any attribute, the queue will have the default value for that -// attribute. +// attribute. Permitted attributes are the same that can be set using SetQueueAttributes. // // Use GetQueueUrl to get a queue's URL. GetQueueUrl requires only the QueueName // parameter. @@ -197,7 +189,9 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, // // Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, -// a parameter list with two elements looks like this: +// a parameter list with two elements looks like this: &Attribute.1=this +// +// &Attribute.2=that func (c *SQS) CreateQueue(input *CreateQueueInput) (*CreateQueueOutput, error) { req, out := c.CreateQueueRequest(input) err := req.Send() @@ -219,8 +213,6 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteMessageOutput{} req.Data = output return @@ -282,7 +274,9 @@ func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *re // // Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, -// a parameter list with two elements looks like this: +// a parameter list with two elements looks like this: &Attribute.1=this +// +// &Attribute.2=that func (c *SQS) DeleteMessageBatch(input *DeleteMessageBatchInput) (*DeleteMessageBatchOutput, error) { req, out := c.DeleteMessageBatchRequest(input) err := req.Send() @@ -304,8 +298,6 @@ func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeleteQueueOutput{} req.Data = output return @@ -354,11 +346,41 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re return } -// Gets attributes for the specified queue. +// Gets attributes for the specified queue. The following attributes are supported: +// All - returns all values. ApproximateNumberOfMessages - returns the approximate +// number of visible messages in a queue. For more information, see Resources +// Required to Process Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html) +// in the Amazon SQS Developer Guide. ApproximateNumberOfMessagesNotVisible +// - returns the approximate number of messages that are not timed-out and not +// deleted. For more information, see Resources Required to Process Messages +// (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html) +// in the Amazon SQS Developer Guide. VisibilityTimeout - returns the visibility +// timeout for the queue. For more information about visibility timeout, see +// Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) +// in the Amazon SQS Developer Guide. CreatedTimestamp - returns the time when +// the queue was created (epoch time in seconds). LastModifiedTimestamp - returns +// the time when the queue was last changed (epoch time in seconds). Policy +// - returns the queue's policy. MaximumMessageSize - returns the limit of +// how many bytes a message can contain before Amazon SQS rejects it. MessageRetentionPeriod +// - returns the number of seconds Amazon SQS retains a message. QueueArn - +// returns the queue's Amazon resource name (ARN). ApproximateNumberOfMessagesDelayed +// - returns the approximate number of messages that are pending to be added +// to the queue. DelaySeconds - returns the default delay on the queue in seconds. +// ReceiveMessageWaitTimeSeconds - returns the time for which a ReceiveMessage +// call will wait for a message to arrive. RedrivePolicy - returns the parameters +// for dead letter queue functionality of the source queue. For more information +// about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter +// Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) +// in the Amazon SQS Developer Guide. // -// Some API actions take lists of parameters. These lists are specified using -// the param.n notation. Values of n are integers starting from 1. For example, -// a parameter list with two elements looks like this: +// Going forward, new attributes might be added. If you are writing code that +// calls this action, we recommend that you structure your code so that it can +// handle new attributes gracefully. Some API actions take lists of parameters. +// These lists are specified using the param.n notation. Values of n are integers +// starting from 1. For example, a parameter list with two elements looks like +// this: &Attribute.1=this +// +// &Attribute.2=that func (c *SQS) GetQueueAttributes(input *GetQueueAttributesInput) (*GetQueueAttributesOutput, error) { req, out := c.GetQueueAttributesRequest(input) err := req.Send() @@ -474,8 +496,6 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &PurgeQueueOutput{} req.Data = output return @@ -484,13 +504,12 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o // Deletes the messages in a queue specified by the queue URL. // // When you use the PurgeQueue API, the deleted messages in the queue cannot -// be retrieved. -// -// When you purge a queue, the message deletion process takes up to 60 seconds. -// All messages sent to the queue before calling PurgeQueue will be deleted; -// messages sent to the queue while it is being purged may be deleted. While -// the queue is being purged, messages sent to the queue before PurgeQueue was -// called may be received, but will be deleted within the next minute. +// be retrieved. When you purge a queue, the message deletion process takes +// up to 60 seconds. All messages sent to the queue before calling PurgeQueue +// will be deleted; messages sent to the queue while it is being purged may +// be deleted. While the queue is being purged, messages sent to the queue before +// PurgeQueue was called may be received, but will be deleted within the next +// minute. func (c *SQS) PurgeQueue(input *PurgeQueueInput) (*PurgeQueueOutput, error) { req, out := c.PurgeQueueRequest(input) err := req.Send() @@ -580,8 +599,6 @@ func (c *SQS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RemovePermissionOutput{} req.Data = output return @@ -668,17 +685,17 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques // your message, according to the W3C XML specification. For more information, // go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html). // If you send any characters that are not included in the list, your request -// will be rejected. -// -// #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF] +// will be rejected. #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] +// | [#x10000 to #x10FFFF] // // Because the batch request can result in a combination of successful and // unsuccessful actions, you should check for batch errors even when the call -// returns an HTTP status code of 200. +// returns an HTTP status code of 200. Some API actions take lists of parameters. +// These lists are specified using the param.n notation. Values of n are integers +// starting from 1. For example, a parameter list with two elements looks like +// this: &Attribute.1=this // -// Some API actions take lists of parameters. These lists are specified using -// the param.n notation. Values of n are integers starting from 1. For example, -// a parameter list with two elements looks like this: +// &Attribute.2=that func (c *SQS) SendMessageBatch(input *SendMessageBatchInput) (*SendMessageBatchOutput, error) { req, out := c.SendMessageBatchRequest(input) err := req.Send() @@ -700,8 +717,6 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SetQueueAttributesOutput{} req.Data = output return @@ -722,8 +737,6 @@ func (c *SQS) SetQueueAttributes(input *SetQueueAttributesInput) (*SetQueueAttri } type AddPermissionInput struct { - _ struct{} `type:"structure"` - // The AWS account number of the principal (http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P) // who will be given permission. The principal must have an AWS account, but // does not need to be signed up for Amazon SQS. For information about locating @@ -748,9 +761,13 @@ type AddPermissionInput struct { Label *string `type:"string" required:"true"` // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataAddPermissionInput `json:"-" xml:"-"` +} + +type metadataAddPermissionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -763,30 +780,12 @@ func (s AddPermissionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddPermissionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddPermissionInput"} - if s.AWSAccountIds == nil { - invalidParams.Add(request.NewErrParamRequired("AWSAccountIds")) - } - if s.Actions == nil { - invalidParams.Add(request.NewErrParamRequired("Actions")) - } - if s.Label == nil { - invalidParams.Add(request.NewErrParamRequired("Label")) - } - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type AddPermissionOutput struct { + metadataAddPermissionOutput `json:"-" xml:"-"` } -type AddPermissionOutput struct { - _ struct{} `type:"structure"` +type metadataAddPermissionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -802,8 +801,6 @@ func (s AddPermissionOutput) GoString() string { // This is used in the responses of batch API to give a detailed description // of the result of an action on each entry in the request. type BatchResultErrorEntry struct { - _ struct{} `type:"structure"` - // An error code representing why the action failed on this entry. Code *string `type:"string" required:"true"` @@ -815,6 +812,12 @@ type BatchResultErrorEntry struct { // Whether the error happened due to the sender's fault. SenderFault *bool `type:"boolean" required:"true"` + + metadataBatchResultErrorEntry `json:"-" xml:"-"` +} + +type metadataBatchResultErrorEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -828,16 +831,18 @@ func (s BatchResultErrorEntry) GoString() string { } type ChangeMessageVisibilityBatchInput struct { - _ struct{} `type:"structure"` - // A list of receipt handles of the messages for which the visibility timeout // must be changed. Entries []*ChangeMessageVisibilityBatchRequestEntry `locationNameList:"ChangeMessageVisibilityBatchRequestEntry" type:"list" flattened:"true" required:"true"` // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataChangeMessageVisibilityBatchInput `json:"-" xml:"-"` +} + +type metadataChangeMessageVisibilityBatchInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -850,43 +855,21 @@ func (s ChangeMessageVisibilityBatchInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ChangeMessageVisibilityBatchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangeMessageVisibilityBatchInput"} - if s.Entries == nil { - invalidParams.Add(request.NewErrParamRequired("Entries")) - } - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - if s.Entries != nil { - for i, v := range s.Entries { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry // tag if the message succeeds or a BatchResultErrorEntry tag if the message // fails. type ChangeMessageVisibilityBatchOutput struct { - _ struct{} `type:"structure"` - // A list of BatchResultErrorEntry items. Failed []*BatchResultErrorEntry `locationNameList:"BatchResultErrorEntry" type:"list" flattened:"true" required:"true"` // A list of ChangeMessageVisibilityBatchResultEntry items. Successful []*ChangeMessageVisibilityBatchResultEntry `locationNameList:"ChangeMessageVisibilityBatchResultEntry" type:"list" flattened:"true" required:"true"` + + metadataChangeMessageVisibilityBatchOutput `json:"-" xml:"-"` +} + +type metadataChangeMessageVisibilityBatchOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -906,12 +889,12 @@ func (s ChangeMessageVisibilityBatchOutput) GoString() string { // starting with 1. For example, a parameter list for this action might look // like this: // +// &ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2 // +// &ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=Your_Receipt_Handle // -// Your_Receipt_Handle]]> +// &ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45 type ChangeMessageVisibilityBatchRequestEntry struct { - _ struct{} `type:"structure"` - // An identifier for this particular receipt handle. This is used to communicate // the result. Note that the Ids of a batch request need to be unique within // the request. @@ -922,6 +905,12 @@ type ChangeMessageVisibilityBatchRequestEntry struct { // The new value (in seconds) for the message's visibility timeout. VisibilityTimeout *int64 `type:"integer"` + + metadataChangeMessageVisibilityBatchRequestEntry `json:"-" xml:"-"` +} + +type metadataChangeMessageVisibilityBatchRequestEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -934,28 +923,16 @@ func (s ChangeMessageVisibilityBatchRequestEntry) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ChangeMessageVisibilityBatchRequestEntry) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangeMessageVisibilityBatchRequestEntry"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.ReceiptHandle == nil { - invalidParams.Add(request.NewErrParamRequired("ReceiptHandle")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Encloses the id of an entry in ChangeMessageVisibilityBatch. type ChangeMessageVisibilityBatchResultEntry struct { - _ struct{} `type:"structure"` - // Represents a message whose visibility timeout has been changed successfully. Id *string `type:"string" required:"true"` + + metadataChangeMessageVisibilityBatchResultEntry `json:"-" xml:"-"` +} + +type metadataChangeMessageVisibilityBatchResultEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -969,11 +946,7 @@ func (s ChangeMessageVisibilityBatchResultEntry) GoString() string { } type ChangeMessageVisibilityInput struct { - _ struct{} `type:"structure"` - // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` // The receipt handle associated with the message whose visibility timeout should @@ -983,6 +956,12 @@ type ChangeMessageVisibilityInput struct { // The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's // visibility timeout. VisibilityTimeout *int64 `type:"integer" required:"true"` + + metadataChangeMessageVisibilityInput `json:"-" xml:"-"` +} + +type metadataChangeMessageVisibilityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -995,27 +974,12 @@ func (s ChangeMessageVisibilityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ChangeMessageVisibilityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangeMessageVisibilityInput"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - if s.ReceiptHandle == nil { - invalidParams.Add(request.NewErrParamRequired("ReceiptHandle")) - } - if s.VisibilityTimeout == nil { - invalidParams.Add(request.NewErrParamRequired("VisibilityTimeout")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type ChangeMessageVisibilityOutput struct { + metadataChangeMessageVisibilityOutput `json:"-" xml:"-"` } -type ChangeMessageVisibilityOutput struct { - _ struct{} `type:"structure"` +type metadataChangeMessageVisibilityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1029,52 +993,38 @@ func (s ChangeMessageVisibilityOutput) GoString() string { } type CreateQueueInput struct { - _ struct{} `type:"structure"` - // A map of attributes with their corresponding values. // // The following lists the names, descriptions, and values of the special request // parameters the CreateQueue action uses: // - // DelaySeconds - The time in seconds that the delivery of all messages in - // the queue will be delayed. An integer from 0 to 900 (15 minutes). The default - // for this attribute is 0 (zero). - // - // MaximumMessageSize - The limit of how many bytes a message can contain before - // Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes - // (256 KiB). The default for this attribute is 262144 (256 KiB). - // - // MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. - // Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The - // default for this attribute is 345600 (4 days). - // - // Policy - The queue's policy. A valid AWS policy. For more information about + // DelaySeconds - The time in seconds that the delivery of all messages + // in the queue will be delayed. An integer from 0 to 900 (15 minutes). The + // default for this attribute is 0 (zero). MaximumMessageSize - The limit of + // how many bytes a message can contain before Amazon SQS rejects it. An integer + // from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this + // attribute is 262144 (256 KiB). MessageRetentionPeriod - The number of seconds + // Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) + // to 1209600 (14 days). The default for this attribute is 345600 (4 days). + // Policy - The queue's policy. A valid AWS policy. For more information about // policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) - // in the Amazon IAM User Guide. - // - // ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call - // will wait for a message to arrive. An integer from 0 to 20 (seconds). The - // default for this attribute is 0. - // - // RedrivePolicy - The parameters for dead letter queue functionality of the - // source queue. For more information about RedrivePolicy and dead letter queues, - // see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) - // in the Amazon SQS Developer Guide. - // - // VisibilityTimeout - The visibility timeout for the queue. An integer from - // 0 to 43200 (12 hours). The default for this attribute is 30. For more information - // about visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) + // in the Amazon IAM User Guide. ReceiveMessageWaitTimeSeconds - The time for + // which a ReceiveMessage call will wait for a message to arrive. An integer + // from 0 to 20 (seconds). The default for this attribute is 0. VisibilityTimeout + // - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). + // The default for this attribute is 30. For more information about visibility + // timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) // in the Amazon SQS Developer Guide. - // - // Any other valid special request parameters that are specified (such as - // ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, - // CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored. Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` // The name for the queue to be created. - // - // Queue names are case-sensitive. QueueName *string `type:"string" required:"true"` + + metadataCreateQueueInput `json:"-" xml:"-"` +} + +type metadataCreateQueueInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1087,25 +1037,16 @@ func (s CreateQueueInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateQueueInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateQueueInput"} - if s.QueueName == nil { - invalidParams.Add(request.NewErrParamRequired("QueueName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returns the QueueUrl element of the created queue. type CreateQueueOutput struct { - _ struct{} `type:"structure"` - // The URL for the created Amazon SQS queue. QueueUrl *string `type:"string"` + + metadataCreateQueueOutput `json:"-" xml:"-"` +} + +type metadataCreateQueueOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1119,15 +1060,17 @@ func (s CreateQueueOutput) GoString() string { } type DeleteMessageBatchInput struct { - _ struct{} `type:"structure"` - // A list of receipt handles for the messages to be deleted. Entries []*DeleteMessageBatchRequestEntry `locationNameList:"DeleteMessageBatchRequestEntry" type:"list" flattened:"true" required:"true"` // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataDeleteMessageBatchInput `json:"-" xml:"-"` +} + +type metadataDeleteMessageBatchInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1140,43 +1083,21 @@ func (s DeleteMessageBatchInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMessageBatchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMessageBatchInput"} - if s.Entries == nil { - invalidParams.Add(request.NewErrParamRequired("Entries")) - } - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - if s.Entries != nil { - for i, v := range s.Entries { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // For each message in the batch, the response contains a DeleteMessageBatchResultEntry // tag if the message is deleted or a BatchResultErrorEntry tag if the message // cannot be deleted. type DeleteMessageBatchOutput struct { - _ struct{} `type:"structure"` - // A list of BatchResultErrorEntry items. Failed []*BatchResultErrorEntry `locationNameList:"BatchResultErrorEntry" type:"list" flattened:"true" required:"true"` // A list of DeleteMessageBatchResultEntry items. Successful []*DeleteMessageBatchResultEntry `locationNameList:"DeleteMessageBatchResultEntry" type:"list" flattened:"true" required:"true"` + + metadataDeleteMessageBatchOutput `json:"-" xml:"-"` +} + +type metadataDeleteMessageBatchOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1191,8 +1112,6 @@ func (s DeleteMessageBatchOutput) GoString() string { // Encloses a receipt handle and an identifier for it. type DeleteMessageBatchRequestEntry struct { - _ struct{} `type:"structure"` - // An identifier for this particular receipt handle. This is used to communicate // the result. Note that the Ids of a batch request need to be unique within // the request. @@ -1200,6 +1119,12 @@ type DeleteMessageBatchRequestEntry struct { // A receipt handle. ReceiptHandle *string `type:"string" required:"true"` + + metadataDeleteMessageBatchRequestEntry `json:"-" xml:"-"` +} + +type metadataDeleteMessageBatchRequestEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1212,28 +1137,16 @@ func (s DeleteMessageBatchRequestEntry) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMessageBatchRequestEntry) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMessageBatchRequestEntry"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.ReceiptHandle == nil { - invalidParams.Add(request.NewErrParamRequired("ReceiptHandle")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Encloses the id an entry in DeleteMessageBatch. type DeleteMessageBatchResultEntry struct { - _ struct{} `type:"structure"` - // Represents a successfully deleted message. Id *string `type:"string" required:"true"` + + metadataDeleteMessageBatchResultEntry `json:"-" xml:"-"` +} + +type metadataDeleteMessageBatchResultEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1247,15 +1160,17 @@ func (s DeleteMessageBatchResultEntry) GoString() string { } type DeleteMessageInput struct { - _ struct{} `type:"structure"` - // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` // The receipt handle associated with the message to delete. ReceiptHandle *string `type:"string" required:"true"` + + metadataDeleteMessageInput `json:"-" xml:"-"` +} + +type metadataDeleteMessageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1268,24 +1183,12 @@ func (s DeleteMessageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMessageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMessageInput"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - if s.ReceiptHandle == nil { - invalidParams.Add(request.NewErrParamRequired("ReceiptHandle")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteMessageOutput struct { + metadataDeleteMessageOutput `json:"-" xml:"-"` } -type DeleteMessageOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteMessageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1299,12 +1202,14 @@ func (s DeleteMessageOutput) GoString() string { } type DeleteQueueInput struct { - _ struct{} `type:"structure"` - // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataDeleteQueueInput `json:"-" xml:"-"` +} + +type metadataDeleteQueueInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1317,21 +1222,12 @@ func (s DeleteQueueInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteQueueInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteQueueInput"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteQueueOutput struct { + metadataDeleteQueueOutput `json:"-" xml:"-"` } -type DeleteQueueOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteQueueOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1345,65 +1241,17 @@ func (s DeleteQueueOutput) GoString() string { } type GetQueueAttributesInput struct { - _ struct{} `type:"structure"` - - // A list of attributes to retrieve information for. The following attributes - // are supported: - // - // All - returns all values. - // - // ApproximateNumberOfMessages - returns the approximate number of visible - // messages in a queue. For more information, see Resources Required to Process - // Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html) - // in the Amazon SQS Developer Guide. - // - // ApproximateNumberOfMessagesNotVisible - returns the approximate number of - // messages that are not timed-out and not deleted. For more information, see - // Resources Required to Process Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html) - // in the Amazon SQS Developer Guide. - // - // VisibilityTimeout - returns the visibility timeout for the queue. For more - // information about visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html) - // in the Amazon SQS Developer Guide. - // - // CreatedTimestamp - returns the time when the queue was created (epoch time - // in seconds). - // - // LastModifiedTimestamp - returns the time when the queue was last changed - // (epoch time in seconds). - // - // Policy - returns the queue's policy. - // - // MaximumMessageSize - returns the limit of how many bytes a message can contain - // before Amazon SQS rejects it. - // - // MessageRetentionPeriod - returns the number of seconds Amazon SQS retains - // a message. - // - // QueueArn - returns the queue's Amazon resource name (ARN). - // - // ApproximateNumberOfMessagesDelayed - returns the approximate number of messages - // that are pending to be added to the queue. - // - // DelaySeconds - returns the default delay on the queue in seconds. - // - // ReceiveMessageWaitTimeSeconds - returns the time for which a ReceiveMessage - // call will wait for a message to arrive. - // - // RedrivePolicy - returns the parameters for dead letter queue functionality - // of the source queue. For more information about RedrivePolicy and dead letter - // queues, see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) - // in the Amazon SQS Developer Guide. - // - // Going forward, new attributes might be added. If you are writing code that - // calls this action, we recommend that you structure your code so that it can - // handle new attributes gracefully. + // A list of attributes to retrieve information for. AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"` // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataGetQueueAttributesInput `json:"-" xml:"-"` +} + +type metadataGetQueueAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1416,25 +1264,16 @@ func (s GetQueueAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetQueueAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetQueueAttributesInput"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A list of returned queue attributes. type GetQueueAttributesOutput struct { - _ struct{} `type:"structure"` - // A map of attributes to the respective values. Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` + + metadataGetQueueAttributesOutput `json:"-" xml:"-"` +} + +type metadataGetQueueAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1448,16 +1287,18 @@ func (s GetQueueAttributesOutput) GoString() string { } type GetQueueUrlInput struct { - _ struct{} `type:"structure"` - // The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric // characters, hyphens (-), and underscores (_) are allowed. - // - // Queue names are case-sensitive. QueueName *string `type:"string" required:"true"` // The AWS account ID of the account that created the queue. QueueOwnerAWSAccountId *string `type:"string"` + + metadataGetQueueUrlInput `json:"-" xml:"-"` +} + +type metadataGetQueueUrlInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1470,26 +1311,17 @@ func (s GetQueueUrlInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetQueueUrlInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetQueueUrlInput"} - if s.QueueName == nil { - invalidParams.Add(request.NewErrParamRequired("QueueName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // For more information, see Responses (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/UnderstandingResponses.html) // in the Amazon SQS Developer Guide. type GetQueueUrlOutput struct { - _ struct{} `type:"structure"` - // The URL for the queue. QueueUrl *string `type:"string"` + + metadataGetQueueUrlOutput `json:"-" xml:"-"` +} + +type metadataGetQueueUrlOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1503,12 +1335,14 @@ func (s GetQueueUrlOutput) GoString() string { } type ListDeadLetterSourceQueuesInput struct { - _ struct{} `type:"structure"` - // The queue URL of a dead letter queue. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataListDeadLetterSourceQueuesInput `json:"-" xml:"-"` +} + +type metadataListDeadLetterSourceQueuesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1521,26 +1355,17 @@ func (s ListDeadLetterSourceQueuesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDeadLetterSourceQueuesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDeadLetterSourceQueuesInput"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A list of your dead letter source queues. type ListDeadLetterSourceQueuesOutput struct { - _ struct{} `type:"structure"` - // A list of source queue URLs that have the RedrivePolicy queue attribute configured // with a dead letter queue. QueueUrls []*string `locationName:"queueUrls" locationNameList:"QueueUrl" type:"list" flattened:"true" required:"true"` + + metadataListDeadLetterSourceQueuesOutput `json:"-" xml:"-"` +} + +type metadataListDeadLetterSourceQueuesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1554,13 +1379,15 @@ func (s ListDeadLetterSourceQueuesOutput) GoString() string { } type ListQueuesInput struct { - _ struct{} `type:"structure"` - // A string to use for filtering the list results. Only those queues whose name // begins with the specified string are returned. - // - // Queue names are case-sensitive. QueueNamePrefix *string `type:"string"` + + metadataListQueuesInput `json:"-" xml:"-"` +} + +type metadataListQueuesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1575,10 +1402,14 @@ func (s ListQueuesInput) GoString() string { // A list of your queues. type ListQueuesOutput struct { - _ struct{} `type:"structure"` - // A list of queue URLs, up to 1000 entries. QueueUrls []*string `locationNameList:"QueueUrl" type:"list" flattened:"true"` + + metadataListQueuesOutput `json:"-" xml:"-"` +} + +type metadataListQueuesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1593,8 +1424,6 @@ func (s ListQueuesOutput) GoString() string { // An Amazon SQS message. type Message struct { - _ struct{} `type:"structure"` - // SenderId, SentTimestamp, ApproximateReceiveCount, and/or ApproximateFirstReceiveTimestamp. // SentTimestamp and ApproximateFirstReceiveTimestamp are each returned as an // integer representing the epoch time (http://en.wikipedia.org/wiki/Unix_time) @@ -1625,6 +1454,12 @@ type Message struct { // handle is returned every time you receive a message. When deleting a message, // you provide the last received receipt handle to delete the message. ReceiptHandle *string `type:"string"` + + metadataMessage `json:"-" xml:"-"` +} + +type metadataMessage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1646,22 +1481,16 @@ func (s Message) GoString() string { // name, type, and value, are included in the message size restriction, which // is currently 256 KB (262,144 bytes). type MessageAttributeValue struct { - _ struct{} `type:"structure"` - // Not implemented. Reserved for future use. BinaryListValues [][]byte `locationName:"BinaryListValue" locationNameList:"BinaryListValue" type:"list" flattened:"true"` // Binary type attributes can store any binary data, for example, compressed // data, encrypted data, or images. - // - // BinaryValue is automatically base64 encoded/decoded by the SDK. BinaryValue []byte `type:"blob"` // Amazon SQS supports the following logical data types: String, Number, and - // Binary. For the Number data type, you must use StringValue. - // - // You can also append custom labels. For more information, see Message Attribute - // Data Types (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributes.DataTypes). + // Binary. In addition, you can append your own custom labels. For more information, + // see Message Attribute Data Types (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributes.DataTypes). DataType *string `type:"string" required:"true"` // Not implemented. Reserved for future use. @@ -1670,6 +1499,12 @@ type MessageAttributeValue struct { // Strings are Unicode with UTF8 binary encoding. For a list of code values, // see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). StringValue *string `type:"string"` + + metadataMessageAttributeValue `json:"-" xml:"-"` +} + +type metadataMessageAttributeValue struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1682,27 +1517,16 @@ func (s MessageAttributeValue) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MessageAttributeValue) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MessageAttributeValue"} - if s.DataType == nil { - invalidParams.Add(request.NewErrParamRequired("DataType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type PurgeQueueInput struct { - _ struct{} `type:"structure"` - // The queue URL of the queue to delete the messages from when using the PurgeQueue // API. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataPurgeQueueInput `json:"-" xml:"-"` +} + +type metadataPurgeQueueInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1715,21 +1539,12 @@ func (s PurgeQueueInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PurgeQueueInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PurgeQueueInput"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type PurgeQueueOutput struct { + metadataPurgeQueueOutput `json:"-" xml:"-"` } -type PurgeQueueOutput struct { - _ struct{} `type:"structure"` +type metadataPurgeQueueOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1743,30 +1558,18 @@ func (s PurgeQueueOutput) GoString() string { } type ReceiveMessageInput struct { - _ struct{} `type:"structure"` - - // A list of attributes that need to be returned along with each message. These - // attributes include: - // - // All - returns all values. - // - // ApproximateFirstReceiveTimestamp - returns the time when the message was - // first received from the queue (epoch time in milliseconds). - // - // ApproximateReceiveCount - returns the number of times a message has been - // received from the queue but not deleted. + // A list of attributes that need to be returned along with each message. // - // SenderId - returns the AWS account number (or the IP address, if anonymous - // access is allowed) of the sender. + // The following lists the names and descriptions of the attributes that can + // be returned: // - // SentTimestamp - returns the time when the message was sent to the queue - // (epoch time in milliseconds). - // - // Any other valid special request parameters that are specified (such as - // ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, - // CreatedTimestamp, DelaySeconds, LastModifiedTimestamp, MaximumMessageSize, - // MessageRetentionPeriod, Policy, QueueArn, ReceiveMessageWaitTimeSeconds, - // RedrivePolicy, and VisibilityTimeout) will be ignored. + // All - returns all values. ApproximateFirstReceiveTimestamp - returns + // the time when the message was first received from the queue (epoch time in + // milliseconds). ApproximateReceiveCount - returns the number of times a message + // has been received from the queue but not deleted. SenderId - returns the + // AWS account number (or the IP address, if anonymous access is allowed) of + // the sender. SentTimestamp - returns the time when the message was sent to + // the queue (epoch time in milliseconds). AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"` // The maximum number of messages to return. Amazon SQS never returns more messages @@ -1787,13 +1590,11 @@ type ReceiveMessageInput struct { // // When using ReceiveMessage, you can send a list of attribute names to receive, // or you can return all of the attributes by specifying "All" or ".*" in your - // request. You can also use "bar.*" to return all message attributes starting - // with the "bar" prefix. + // request. You can also use "foo.*" to return all message attributes starting + // with the "foo" prefix. MessageAttributeNames []*string `locationNameList:"MessageAttributeName" type:"list" flattened:"true"` // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` // The duration (in seconds) that the received messages are hidden from subsequent @@ -1804,6 +1605,12 @@ type ReceiveMessageInput struct { // in the queue before returning. If a message is available, the call will return // sooner than WaitTimeSeconds. WaitTimeSeconds *int64 `type:"integer"` + + metadataReceiveMessageInput `json:"-" xml:"-"` +} + +type metadataReceiveMessageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1816,25 +1623,16 @@ func (s ReceiveMessageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReceiveMessageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReceiveMessageInput"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A list of received messages. type ReceiveMessageOutput struct { - _ struct{} `type:"structure"` - // A list of messages. Messages []*Message `locationNameList:"Message" type:"list" flattened:"true"` + + metadataReceiveMessageOutput `json:"-" xml:"-"` +} + +type metadataReceiveMessageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1848,16 +1646,18 @@ func (s ReceiveMessageOutput) GoString() string { } type RemovePermissionInput struct { - _ struct{} `type:"structure"` - // The identification of the permission to remove. This is the label added with // the AddPermission action. Label *string `type:"string" required:"true"` // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataRemovePermissionInput `json:"-" xml:"-"` +} + +type metadataRemovePermissionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1870,24 +1670,12 @@ 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.Label == nil { - invalidParams.Add(request.NewErrParamRequired("Label")) - } - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RemovePermissionOutput struct { + metadataRemovePermissionOutput `json:"-" xml:"-"` } -type RemovePermissionOutput struct { - _ struct{} `type:"structure"` +type metadataRemovePermissionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1901,15 +1689,17 @@ func (s RemovePermissionOutput) GoString() string { } type SendMessageBatchInput struct { - _ struct{} `type:"structure"` - // A list of SendMessageBatchRequestEntry items. Entries []*SendMessageBatchRequestEntry `locationNameList:"SendMessageBatchRequestEntry" type:"list" flattened:"true" required:"true"` // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataSendMessageBatchInput `json:"-" xml:"-"` +} + +type metadataSendMessageBatchInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1922,44 +1712,22 @@ func (s SendMessageBatchInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SendMessageBatchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SendMessageBatchInput"} - if s.Entries == nil { - invalidParams.Add(request.NewErrParamRequired("Entries")) - } - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - if s.Entries != nil { - for i, v := range s.Entries { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // For each message in the batch, the response contains a SendMessageBatchResultEntry // tag if the message succeeds or a BatchResultErrorEntry tag if the message // fails. type SendMessageBatchOutput struct { - _ struct{} `type:"structure"` - // A list of BatchResultErrorEntry items with the error detail about each message // that could not be enqueued. Failed []*BatchResultErrorEntry `locationNameList:"BatchResultErrorEntry" type:"list" flattened:"true" required:"true"` // A list of SendMessageBatchResultEntry items. Successful []*SendMessageBatchResultEntry `locationNameList:"SendMessageBatchResultEntry" type:"list" flattened:"true" required:"true"` + + metadataSendMessageBatchOutput `json:"-" xml:"-"` +} + +type metadataSendMessageBatchOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1974,8 +1742,6 @@ func (s SendMessageBatchOutput) GoString() string { // Contains the details of a single Amazon SQS message along with a Id. type SendMessageBatchRequestEntry struct { - _ struct{} `type:"structure"` - // The number of seconds for which the message has to be delayed. DelaySeconds *int64 `type:"integer"` @@ -1990,6 +1756,12 @@ type SendMessageBatchRequestEntry struct { // Body of the message. MessageBody *string `type:"string" required:"true"` + + metadataSendMessageBatchRequestEntry `json:"-" xml:"-"` +} + +type metadataSendMessageBatchRequestEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2002,36 +1774,8 @@ func (s SendMessageBatchRequestEntry) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SendMessageBatchRequestEntry) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SendMessageBatchRequestEntry"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.MessageBody == nil { - invalidParams.Add(request.NewErrParamRequired("MessageBody")) - } - if s.MessageAttributes != nil { - for i, v := range s.MessageAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MessageAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Encloses a message ID for successfully enqueued message of a SendMessageBatch. type SendMessageBatchResultEntry struct { - _ struct{} `type:"structure"` - // An identifier for the message in this batch. Id *string `type:"string" required:"true"` @@ -2049,6 +1793,12 @@ type SendMessageBatchResultEntry struct { // An identifier for the message. MessageId *string `type:"string" required:"true"` + + metadataSendMessageBatchResultEntry `json:"-" xml:"-"` +} + +type metadataSendMessageBatchResultEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2062,8 +1812,6 @@ func (s SendMessageBatchResultEntry) GoString() string { } type SendMessageInput struct { - _ struct{} `type:"structure"` - // The number of seconds (0 to 900 - 15 minutes) to delay a specific message. // Messages with a positive DelaySeconds value become available for processing // after the delay time is finished. If you don't specify a value, the default @@ -2079,9 +1827,13 @@ type SendMessageInput struct { MessageBody *string `type:"string" required:"true"` // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataSendMessageInput `json:"-" xml:"-"` +} + +type metadataSendMessageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2094,36 +1846,8 @@ func (s SendMessageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SendMessageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SendMessageInput"} - if s.MessageBody == nil { - invalidParams.Add(request.NewErrParamRequired("MessageBody")) - } - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - if s.MessageAttributes != nil { - for i, v := range s.MessageAttributes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MessageAttributes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The MD5OfMessageBody and MessageId elements. type SendMessageOutput struct { - _ struct{} `type:"structure"` - // An MD5 digest of the non-URL-encoded message attribute string. This can be // used to verify that Amazon SQS received the message correctly. Amazon SQS // first URL decodes the message before creating the MD5 digest. For information @@ -2140,6 +1864,12 @@ type SendMessageOutput struct { // more information, see Queue and Message Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html) // in the Amazon SQS Developer Guide. MessageId *string `type:"string"` + + metadataSendMessageOutput `json:"-" xml:"-"` +} + +type metadataSendMessageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2153,51 +1883,40 @@ func (s SendMessageOutput) GoString() string { } type SetQueueAttributesInput struct { - _ struct{} `type:"structure"` - // A map of attributes to set. // // The following lists the names, descriptions, and values of the special request // parameters the SetQueueAttributes action uses: // - // DelaySeconds - The time in seconds that the delivery of all messages in - // the queue will be delayed. An integer from 0 to 900 (15 minutes). The default - // for this attribute is 0 (zero). - // - // MaximumMessageSize - The limit of how many bytes a message can contain before - // Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes - // (256 KiB). The default for this attribute is 262144 (256 KiB). - // - // MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. - // Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The - // default for this attribute is 345600 (4 days). - // - // Policy - The queue's policy. A valid AWS policy. For more information about + // DelaySeconds - The time in seconds that the delivery of all messages + // in the queue will be delayed. An integer from 0 to 900 (15 minutes). The + // default for this attribute is 0 (zero). MaximumMessageSize - The limit of + // how many bytes a message can contain before Amazon SQS rejects it. An integer + // from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this + // attribute is 262144 (256 KiB). MessageRetentionPeriod - The number of seconds + // Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) + // to 1209600 (14 days). The default for this attribute is 345600 (4 days). + // Policy - The queue's policy. A valid AWS policy. For more information about // policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) - // in the Amazon IAM User Guide. - // - // ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call - // will wait for a message to arrive. An integer from 0 to 20 (seconds). The - // default for this attribute is 0. - // - // VisibilityTimeout - The visibility timeout for the queue. An integer from - // 0 to 43200 (12 hours). The default for this attribute is 30. For more information - // about visibility timeout, see Visibility Timeout in the Amazon SQS Developer - // Guide. - // - // RedrivePolicy - The parameters for dead letter queue functionality of the - // source queue. For more information about RedrivePolicy and dead letter queues, - // see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide. - // - // Any other valid special request parameters that are specified (such as - // ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible, - // CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored. + // in the Amazon IAM User Guide. ReceiveMessageWaitTimeSeconds - The time for + // which a ReceiveMessage call will wait for a message to arrive. An integer + // from 0 to 20 (seconds). The default for this attribute is 0. VisibilityTimeout + // - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). + // The default for this attribute is 30. For more information about visibility + // timeout, see Visibility Timeout in the Amazon SQS Developer Guide. RedrivePolicy + // - The parameters for dead letter queue functionality of the source queue. + // For more information about RedrivePolicy and dead letter queues, see Using + // Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide. Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true" required:"true"` // The URL of the Amazon SQS queue to take action on. - // - // Queue URLs are case-sensitive. QueueUrl *string `type:"string" required:"true"` + + metadataSetQueueAttributesInput `json:"-" xml:"-"` +} + +type metadataSetQueueAttributesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2210,24 +1929,12 @@ func (s SetQueueAttributesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetQueueAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetQueueAttributesInput"} - if s.Attributes == nil { - invalidParams.Add(request.NewErrParamRequired("Attributes")) - } - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SetQueueAttributesOutput struct { + metadataSetQueueAttributesOutput `json:"-" xml:"-"` } -type SetQueueAttributesOutput struct { - _ struct{} `type:"structure"` +type metadataSetQueueAttributesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/api_test.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/api_test.go index 3f5517e60..a64f5a4cd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/api_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/api_test.go @@ -5,15 +5,13 @@ package sqs_test import ( "testing" - "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sqs" + "github.com/stretchr/testify/assert" ) func TestFlattenedTraits(t *testing.T) { - s := sqs.New(session.New()) + s := sqs.New(nil) _, err := s.DeleteMessageBatch(&sqs.DeleteMessageBatchInput{ QueueURL: aws.String("QUEUE"), Entries: []*sqs.DeleteMessageBatchRequestEntry{ diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums.go index ef0c3d014..8135ca2b3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums.go @@ -17,7 +17,7 @@ var ( ) func setupChecksumValidation(r *request.Request) { - if aws.BoolValue(r.Config.DisableComputeChecksums) { + if aws.BoolValue(r.Service.Config.DisableComputeChecksums) { return } diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums_test.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums_test.go index b6a2a0a2e..169e8e229 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums_test.go @@ -6,17 +6,18 @@ import ( "net/http" "testing" - "github.com/stretchr/testify/assert" - "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/awstesting/unit" + "github.com/aws/aws-sdk-go/internal/test/unit" "github.com/aws/aws-sdk-go/service/sqs" + "github.com/stretchr/testify/assert" ) +var _ = unit.Imported + var svc = func() *sqs.SQS { - s := sqs.New(unit.Session, &aws.Config{ + s := sqs.New(&aws.Config{ DisableParamValidation: aws.Bool(true), }) s.Handlers.Send.Clear() @@ -59,7 +60,7 @@ func TestSendMessageChecksumInvalid(t *testing.T) { } func TestSendMessageChecksumInvalidNoValidation(t *testing.T) { - s := sqs.New(unit.Session, &aws.Config{ + s := sqs.New(&aws.Config{ DisableParamValidation: aws.Bool(true), DisableComputeChecksums: aws.Bool(true), }) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go index 2b8626773..eb502c3f3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sqs" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSQS_AddPermission() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.AddPermissionInput{ AWSAccountIds: []*string{ // Required @@ -44,7 +43,7 @@ func ExampleSQS_AddPermission() { } func ExampleSQS_ChangeMessageVisibility() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.ChangeMessageVisibilityInput{ QueueUrl: aws.String("String"), // Required @@ -65,7 +64,7 @@ func ExampleSQS_ChangeMessageVisibility() { } func ExampleSQS_ChangeMessageVisibilityBatch() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.ChangeMessageVisibilityBatchInput{ Entries: []*sqs.ChangeMessageVisibilityBatchRequestEntry{ // Required @@ -92,7 +91,7 @@ func ExampleSQS_ChangeMessageVisibilityBatch() { } func ExampleSQS_CreateQueue() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.CreateQueueInput{ QueueName: aws.String("String"), // Required @@ -115,7 +114,7 @@ func ExampleSQS_CreateQueue() { } func ExampleSQS_DeleteMessage() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.DeleteMessageInput{ QueueUrl: aws.String("String"), // Required @@ -135,7 +134,7 @@ func ExampleSQS_DeleteMessage() { } func ExampleSQS_DeleteMessageBatch() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.DeleteMessageBatchInput{ Entries: []*sqs.DeleteMessageBatchRequestEntry{ // Required @@ -161,7 +160,7 @@ func ExampleSQS_DeleteMessageBatch() { } func ExampleSQS_DeleteQueue() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.DeleteQueueInput{ QueueUrl: aws.String("String"), // Required @@ -180,7 +179,7 @@ func ExampleSQS_DeleteQueue() { } func ExampleSQS_GetQueueAttributes() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.GetQueueAttributesInput{ QueueUrl: aws.String("String"), // Required @@ -203,7 +202,7 @@ func ExampleSQS_GetQueueAttributes() { } func ExampleSQS_GetQueueUrl() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.GetQueueUrlInput{ QueueName: aws.String("String"), // Required @@ -223,7 +222,7 @@ func ExampleSQS_GetQueueUrl() { } func ExampleSQS_ListDeadLetterSourceQueues() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.ListDeadLetterSourceQueuesInput{ QueueUrl: aws.String("String"), // Required @@ -242,7 +241,7 @@ func ExampleSQS_ListDeadLetterSourceQueues() { } func ExampleSQS_ListQueues() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.ListQueuesInput{ QueueNamePrefix: aws.String("String"), @@ -261,7 +260,7 @@ func ExampleSQS_ListQueues() { } func ExampleSQS_PurgeQueue() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.PurgeQueueInput{ QueueUrl: aws.String("String"), // Required @@ -280,7 +279,7 @@ func ExampleSQS_PurgeQueue() { } func ExampleSQS_ReceiveMessage() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.ReceiveMessageInput{ QueueUrl: aws.String("String"), // Required @@ -310,7 +309,7 @@ func ExampleSQS_ReceiveMessage() { } func ExampleSQS_RemovePermission() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.RemovePermissionInput{ Label: aws.String("String"), // Required @@ -330,7 +329,7 @@ func ExampleSQS_RemovePermission() { } func ExampleSQS_SendMessage() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.SendMessageInput{ MessageBody: aws.String("String"), // Required @@ -367,7 +366,7 @@ func ExampleSQS_SendMessage() { } func ExampleSQS_SendMessageBatch() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.SendMessageBatchInput{ Entries: []*sqs.SendMessageBatchRequestEntry{ // Required @@ -410,7 +409,7 @@ func ExampleSQS_SendMessageBatch() { } func ExampleSQS_SetQueueAttributes() { - svc := sqs.New(session.New()) + svc := sqs.New(nil) params := &sqs.SetQueueAttributesInput{ Attributes: map[string]*string{ // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go index 7418ab42b..fb19bcbef 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/service.go @@ -4,11 +4,12 @@ package sqs import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // Welcome to the Amazon Simple Queue Service API Reference. This section describes @@ -20,89 +21,56 @@ import ( // between distributed components of your applications that perform different // tasks without losing messages or requiring each component to be always available. // -// Helpful Links: -// -// Current WSDL (2012-11-05) (http://queue.amazonaws.com/doc/2012-11-05/QueueService.wsdl) -// +// Helpful Links: Current WSDL (2012-11-05) (http://queue.amazonaws.com/doc/2012-11-05/QueueService.wsdl) // Making API Requests (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html) -// -// Amazon SQS product page (http://aws.amazon.com/sqs/) -// -// Using Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html) -// +// Amazon SQS product page (http://aws.amazon.com/sqs/) Using Amazon SQS Message +// Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html) // Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html) -// // Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region) // -// We also provide SDKs that enable you to access Amazon SQS from your preferred +// +// We also provide SDKs that enable you to access Amazon SQS from your preferred // programming language. The SDKs contain functionality that automatically takes // care of tasks such as: // -// Cryptographically signing your service requests +// Cryptographically signing your service requests Retrying requests Handling +// error responses // -// Retrying requests -// -// Handling error responses -// -// For a list of available SDKs, go to Tools for Amazon Web Services (http://aws.amazon.com/tools/). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// For a list of available SDKs, go to Tools for Amazon Web Services (http://aws.amazon.com/tools/). type SQS struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "sqs" - -// New creates a new instance of the SQS client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a SQS client from just a session. -// svc := sqs.New(mySession) -// -// // Create a SQS client with additional configuration -// svc := sqs.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *SQS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SQS { - svc := &SQS{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2012-11-05", - }, - handlers, - ), +// New returns a new SQS client. +func New(config *aws.Config) *SQS { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "sqs", + APIVersion: "2012-11-05", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &SQS{service} } // newRequest creates a new request for a SQS operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go index 55647fa17..fbc3ed3ad 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface.go @@ -78,5 +78,3 @@ type SQSAPI interface { SetQueueAttributes(*sqs.SetQueueAttributesInput) (*sqs.SetQueueAttributesOutput, error) } - -var _ SQSAPI = (*sqs.SQS)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface_test.go new file mode 100644 index 000000000..e7e696f76 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package sqsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/sqs" + "github.com/aws/aws-sdk-go/service/sqs/sqsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*sqsiface.SQSAPI)(nil), sqs.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go index ea82d253d..1a9112d58 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go @@ -4,41 +4,12 @@ package ssm import ( - "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" ) -const opCancelCommand = "CancelCommand" - -// CancelCommandRequest generates a request for the CancelCommand operation. -func (c *SSM) CancelCommandRequest(input *CancelCommandInput) (req *request.Request, output *CancelCommandOutput) { - op := &request.Operation{ - Name: opCancelCommand, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CancelCommandInput{} - } - - req = c.newRequest(op, input, output) - output = &CancelCommandOutput{} - req.Data = output - return -} - -// Attempts to cancel the command specified by the Command ID. There is no guarantee -// that the command will be terminated and the underlying process stopped. -func (c *SSM) CancelCommand(input *CancelCommandInput) (*CancelCommandOutput, error) { - req, out := c.CancelCommandRequest(input) - err := req.Send() - return out, err -} - const opCreateAssociation = "CreateAssociation" // CreateAssociationRequest generates a request for the CreateAssociation operation. @@ -59,13 +30,15 @@ func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *requ return } -// Associates the specified SSM document with the specified instance. +// Associates the specified configuration document with the specified instance. // -// When you associate an SSM document with an instance, the configuration agent -// on the instance processes the document and configures the instance as specified. +// When you associate a configuration document with an instance, the configuration +// agent on the instance processes the configuration document and configures +// the instance as specified. // -// If you associate a document with an instance that already has an associated -// document, the system throws the AssociationAlreadyExists exception. +// If you associate a configuration document with an instance that already +// has an associated configuration document, we replace the current configuration +// document with the new configuration document. func (c *SSM) CreateAssociation(input *CreateAssociationInput) (*CreateAssociationOutput, error) { req, out := c.CreateAssociationRequest(input) err := req.Send() @@ -92,13 +65,15 @@ func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) return } -// Associates the specified SSM document with the specified instances. +// Associates the specified configuration documents with the specified instances. // -// When you associate an SSM document with an instance, the configuration agent -// on the instance processes the document and configures the instance as specified. +// When you associate a configuration document with an instance, the configuration +// agent on the instance processes the configuration document and configures +// the instance as specified. // -// If you associate a document with an instance that already has an associated -// document, the system throws the AssociationAlreadyExists exception. +// If you associate a configuration document with an instance that already +// has an associated configuration document, we replace the current configuration +// document with the new configuration document. func (c *SSM) CreateAssociationBatch(input *CreateAssociationBatchInput) (*CreateAssociationBatchOutput, error) { req, out := c.CreateAssociationBatchRequest(input) err := req.Send() @@ -125,10 +100,10 @@ func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Re return } -// Creates an SSM document. +// Creates a configuration document. // -// After you create an SSM document, you can use CreateAssociation to associate -// it with one or more running instances. +// After you create a configuration document, you can use CreateAssociation +// to associate it with one or more running instances. func (c *SSM) CreateDocument(input *CreateDocumentInput) (*CreateDocumentOutput, error) { req, out := c.CreateDocumentRequest(input) err := req.Send() @@ -155,12 +130,13 @@ func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *requ return } -// Disassociates the specified SSM document from the specified instance. +// Disassociates the specified configuration document from the specified instance. // -// When you disassociate an SSM document from an instance, it does not change -// the configuration of the instance. To change the configuration state of an -// instance after you disassociate a document, you must create a new document -// with the desired configuration and associate it with the instance. +// When you disassociate a configuration document from an instance, it does +// not change the configuration of the instance. To change the configuration +// state of an instance after you disassociate a configuration document, you +// must create a new configuration document with the desired configuration and +// associate it with the instance. func (c *SSM) DeleteAssociation(input *DeleteAssociationInput) (*DeleteAssociationOutput, error) { req, out := c.DeleteAssociationRequest(input) err := req.Send() @@ -187,10 +163,10 @@ func (c *SSM) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Re return } -// Deletes the SSM document and all instance associations to the document. +// Deletes the specified configuration document. // -// Before you delete the SSM document, we recommend that you use DeleteAssociation -// to disassociate all instances that are associated with the document. +// You must use DeleteAssociation to disassociate all instances that are associated +// with the configuration document before you can delete it. func (c *SSM) DeleteDocument(input *DeleteDocumentInput) (*DeleteDocumentOutput, error) { req, out := c.DeleteDocumentRequest(input) err := req.Send() @@ -217,7 +193,7 @@ func (c *SSM) DescribeAssociationRequest(input *DescribeAssociationInput) (req * return } -// Describes the associations for the specified SSM document or instance. +// Describes the associations for the specified configuration document or instance. func (c *SSM) DescribeAssociation(input *DescribeAssociationInput) (*DescribeAssociationOutput, error) { req, out := c.DescribeAssociationRequest(input) err := req.Send() @@ -244,74 +220,13 @@ func (c *SSM) DescribeDocumentRequest(input *DescribeDocumentInput) (req *reques return } -// Describes the specified SSM document. +// Describes the specified configuration document. func (c *SSM) DescribeDocument(input *DescribeDocumentInput) (*DescribeDocumentOutput, error) { req, out := c.DescribeDocumentRequest(input) err := req.Send() return out, err } -const opDescribeDocumentPermission = "DescribeDocumentPermission" - -// DescribeDocumentPermissionRequest generates a request for the DescribeDocumentPermission operation. -func (c *SSM) DescribeDocumentPermissionRequest(input *DescribeDocumentPermissionInput) (req *request.Request, output *DescribeDocumentPermissionOutput) { - op := &request.Operation{ - Name: opDescribeDocumentPermission, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeDocumentPermissionInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeDocumentPermissionOutput{} - req.Data = output - return -} - -// Describes the permissions for an SSM document. If you created the document, -// you are the owner. If a document is shared, it can either be shared privately -// (by specifying a user’s AWS account ID) or publicly (All). -func (c *SSM) DescribeDocumentPermission(input *DescribeDocumentPermissionInput) (*DescribeDocumentPermissionOutput, error) { - req, out := c.DescribeDocumentPermissionRequest(input) - err := req.Send() - return out, err -} - -const opDescribeInstanceInformation = "DescribeInstanceInformation" - -// DescribeInstanceInformationRequest generates a request for the DescribeInstanceInformation operation. -func (c *SSM) DescribeInstanceInformationRequest(input *DescribeInstanceInformationInput) (req *request.Request, output *DescribeInstanceInformationOutput) { - op := &request.Operation{ - Name: opDescribeInstanceInformation, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeInstanceInformationInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeInstanceInformationOutput{} - req.Data = output - return -} - -// Describes one or more of your instances. You can use this to get information -// about instances like the operating system platform, the SSM agent version, -// status etc. If you specify one or more instance IDs, it returns information -// for those instances. If you do not specify instance IDs, it returns information -// for all your instances. If you specify an instance ID that is not valid or -// an instance that you do not own, you receive an error. -func (c *SSM) DescribeInstanceInformation(input *DescribeInstanceInformationInput) (*DescribeInstanceInformationOutput, error) { - req, out := c.DescribeInstanceInformationRequest(input) - err := req.Send() - return out, err -} - const opGetDocument = "GetDocument" // GetDocumentRequest generates a request for the GetDocument operation. @@ -332,7 +247,7 @@ func (c *SSM) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, return } -// Gets the contents of the specified SSM document. +// Gets the contents of the specified configuration document. func (c *SSM) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error) { req, out := c.GetDocumentRequest(input) err := req.Send() @@ -347,12 +262,6 @@ func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *reques Name: opListAssociations, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { @@ -365,107 +274,13 @@ func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *reques return } -// Lists the associations for the specified SSM document or instance. +// Lists the associations for the specified configuration document or instance. func (c *SSM) ListAssociations(input *ListAssociationsInput) (*ListAssociationsOutput, error) { req, out := c.ListAssociationsRequest(input) err := req.Send() return out, err } -func (c *SSM) ListAssociationsPages(input *ListAssociationsInput, fn func(p *ListAssociationsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListAssociationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListAssociationsOutput), lastPage) - }) -} - -const opListCommandInvocations = "ListCommandInvocations" - -// ListCommandInvocationsRequest generates a request for the ListCommandInvocations operation. -func (c *SSM) ListCommandInvocationsRequest(input *ListCommandInvocationsInput) (req *request.Request, output *ListCommandInvocationsOutput) { - op := &request.Operation{ - Name: opListCommandInvocations, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListCommandInvocationsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListCommandInvocationsOutput{} - req.Data = output - return -} - -// An invocation is copy of a command sent to a specific instance. A command -// can apply to one or more instances. A command invocation applies to one instance. -// For example, if a user executes SendCommand against three instances, then -// a command invocation is created for each requested instance ID. ListCommandInvocations -// provide status about command execution. -func (c *SSM) ListCommandInvocations(input *ListCommandInvocationsInput) (*ListCommandInvocationsOutput, error) { - req, out := c.ListCommandInvocationsRequest(input) - err := req.Send() - return out, err -} - -func (c *SSM) ListCommandInvocationsPages(input *ListCommandInvocationsInput, fn func(p *ListCommandInvocationsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListCommandInvocationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListCommandInvocationsOutput), lastPage) - }) -} - -const opListCommands = "ListCommands" - -// ListCommandsRequest generates a request for the ListCommands operation. -func (c *SSM) ListCommandsRequest(input *ListCommandsInput) (req *request.Request, output *ListCommandsOutput) { - op := &request.Operation{ - Name: opListCommands, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListCommandsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListCommandsOutput{} - req.Data = output - return -} - -// Lists the commands requested by users of the AWS account. -func (c *SSM) ListCommands(input *ListCommandsInput) (*ListCommandsOutput, error) { - req, out := c.ListCommandsRequest(input) - err := req.Send() - return out, err -} - -func (c *SSM) ListCommandsPages(input *ListCommandsInput, fn func(p *ListCommandsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListCommandsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListCommandsOutput), lastPage) - }) -} - const opListDocuments = "ListDocuments" // ListDocumentsRequest generates a request for the ListDocuments operation. @@ -474,12 +289,6 @@ func (c *SSM) ListDocumentsRequest(input *ListDocumentsInput) (req *request.Requ Name: opListDocuments, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { @@ -492,78 +301,13 @@ func (c *SSM) ListDocumentsRequest(input *ListDocumentsInput) (req *request.Requ return } -// Describes one or more of your SSM documents. +// Describes one or more of your configuration documents. func (c *SSM) ListDocuments(input *ListDocumentsInput) (*ListDocumentsOutput, error) { req, out := c.ListDocumentsRequest(input) err := req.Send() return out, err } -func (c *SSM) ListDocumentsPages(input *ListDocumentsInput, fn func(p *ListDocumentsOutput, lastPage bool) (shouldContinue bool)) error { - page, _ := c.ListDocumentsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) - return page.EachPage(func(p interface{}, lastPage bool) bool { - return fn(p.(*ListDocumentsOutput), lastPage) - }) -} - -const opModifyDocumentPermission = "ModifyDocumentPermission" - -// ModifyDocumentPermissionRequest generates a request for the ModifyDocumentPermission operation. -func (c *SSM) ModifyDocumentPermissionRequest(input *ModifyDocumentPermissionInput) (req *request.Request, output *ModifyDocumentPermissionOutput) { - op := &request.Operation{ - Name: opModifyDocumentPermission, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ModifyDocumentPermissionInput{} - } - - req = c.newRequest(op, input, output) - output = &ModifyDocumentPermissionOutput{} - req.Data = output - return -} - -// Share a document publicly or privately. If you share a document privately, -// you must specify the AWS user account IDs for those people who can use the -// document. If you share a document publicly, you must specify All as the account -// ID. -func (c *SSM) ModifyDocumentPermission(input *ModifyDocumentPermissionInput) (*ModifyDocumentPermissionOutput, error) { - req, out := c.ModifyDocumentPermissionRequest(input) - err := req.Send() - return out, err -} - -const opSendCommand = "SendCommand" - -// SendCommandRequest generates a request for the SendCommand operation. -func (c *SSM) SendCommandRequest(input *SendCommandInput) (req *request.Request, output *SendCommandOutput) { - op := &request.Operation{ - Name: opSendCommand, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SendCommandInput{} - } - - req = c.newRequest(op, input, output) - output = &SendCommandOutput{} - req.Data = output - return -} - -// Executes commands on one or more remote instances. -func (c *SSM) SendCommand(input *SendCommandInput) (*SendCommandOutput, error) { - req, out := c.SendCommandRequest(input) - err := req.Send() - return out, err -} - const opUpdateAssociationStatus = "UpdateAssociationStatus" // UpdateAssociationStatusRequest generates a request for the UpdateAssociationStatus operation. @@ -584,22 +328,27 @@ func (c *SSM) UpdateAssociationStatusRequest(input *UpdateAssociationStatusInput return } -// Updates the status of the SSM document associated with the specified instance. +// Updates the status of the configuration document associated with the specified +// instance. func (c *SSM) UpdateAssociationStatus(input *UpdateAssociationStatusInput) (*UpdateAssociationStatusOutput, error) { req, out := c.UpdateAssociationStatusRequest(input) err := req.Send() return out, err } -// Describes an association of an SSM document and an instance. +// Describes an association of a configuration document and an instance. type Association struct { - _ struct{} `type:"structure"` - // The ID of the instance. InstanceId *string `type:"string"` - // The name of the SSM document. + // The name of the configuration document. Name *string `type:"string"` + + metadataAssociation `json:"-" xml:"-"` +} + +type metadataAssociation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -612,24 +361,25 @@ func (s Association) GoString() string { return s.String() } -// Describes the parameters for a document. +// Describes an association. type AssociationDescription struct { - _ struct{} `type:"structure"` - // The date when the association was made. Date *time.Time `type:"timestamp" timestampFormat:"unix"` // The ID of the instance. InstanceId *string `type:"string"` - // The name of the SSM document. + // The name of the configuration document. Name *string `type:"string"` - // A description of the parameters for a document. - Parameters map[string][]*string `type:"map"` - // The association status. Status *AssociationStatus `type:"structure"` + + metadataAssociationDescription `json:"-" xml:"-"` +} + +type metadataAssociationDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -644,13 +394,17 @@ func (s AssociationDescription) GoString() string { // Describes a filter. type AssociationFilter struct { - _ struct{} `type:"structure"` - // The name of the filter. Key *string `locationName:"key" type:"string" required:"true" enum:"AssociationFilterKey"` // The filter value. - Value *string `locationName:"value" min:"1" type:"string" required:"true"` + Value *string `locationName:"value" type:"string" required:"true"` + + metadataAssociationFilter `json:"-" xml:"-"` +} + +type metadataAssociationFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -663,29 +417,8 @@ func (s AssociationFilter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociationFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociationFilter"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes an association status. type AssociationStatus struct { - _ struct{} `type:"structure"` - // A user-defined string. AdditionalInfo *string `type:"string"` @@ -697,6 +430,12 @@ type AssociationStatus struct { // The status. Name *string `type:"string" required:"true" enum:"AssociationStatusName"` + + metadataAssociationStatus `json:"-" xml:"-"` +} + +type metadataAssociationStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -709,455 +448,180 @@ func (s AssociationStatus) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociationStatus) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociationStatus"} - if s.Date == nil { - invalidParams.Add(request.NewErrParamRequired("Date")) - } - if s.Message == nil { - invalidParams.Add(request.NewErrParamRequired("Message")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } +type CreateAssociationBatchInput struct { + // One or more associations. + Entries []*CreateAssociationBatchRequestEntry `locationNameList:"entries" type:"list" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateAssociationBatchInput `json:"-" xml:"-"` } -type CancelCommandInput struct { - _ struct{} `type:"structure"` - - // The ID of the command you want to cancel. - CommandId *string `min:"36" type:"string" required:"true"` - - // (Optional) A list of instance IDs on which you want to cancel the command. - // If not provided, the command is canceled on every instance on which it was - // requested. - InstanceIds []*string `min:"1" type:"list"` +type metadataCreateAssociationBatchInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CancelCommandInput) String() string { +func (s CreateAssociationBatchInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CancelCommandInput) GoString() string { +func (s CreateAssociationBatchInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelCommandInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelCommandInput"} - if s.CommandId == nil { - invalidParams.Add(request.NewErrParamRequired("CommandId")) - } - if s.CommandId != nil && len(*s.CommandId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("CommandId", 36)) - } - if s.InstanceIds != nil && len(s.InstanceIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceIds", 1)) - } +type CreateAssociationBatchOutput struct { + // Information about the associations that failed. + Failed []*FailedCreateAssociation `locationNameList:"FailedCreateAssociationEntry" type:"list"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + // Information about the associations that succeeded. + Successful []*AssociationDescription `locationNameList:"AssociationDescription" type:"list"` + + metadataCreateAssociationBatchOutput `json:"-" xml:"-"` } -// Whether or not the command was successfully canceled. There is no guarantee -// that a request can be canceled. -type CancelCommandOutput struct { - _ struct{} `type:"structure"` +type metadataCreateAssociationBatchOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CancelCommandOutput) String() string { +func (s CreateAssociationBatchOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CancelCommandOutput) GoString() string { +func (s CreateAssociationBatchOutput) GoString() string { return s.String() } -// Describes a command request. -type Command struct { - _ struct{} `type:"structure"` - - // A unique identifier for this command. - CommandId *string `min:"36" type:"string"` - - // User-specified information about the command, such as a brief description - // of what the command should do. - Comment *string `type:"string"` - - // The name of the SSM document requested for execution. - DocumentName *string `type:"string"` - - // If this time is reached and the command has not already started executing, - // it will not execute. Calculated based on the ExpiresAfter user input provided - // as part of the SendCommand API. - ExpiresAfter *time.Time `type:"timestamp" timestampFormat:"unix"` - - // The instance IDs against which this command was requested. - InstanceIds []*string `min:"1" type:"list"` - - // The S3 bucket where the responses to the command executions should be stored. - // This was requested when issuing the command. - OutputS3BucketName *string `min:"3" type:"string"` - - // The S3 directory path inside the bucket where the responses to the command - // executions should be stored. This was requested when issuing the command. - OutputS3KeyPrefix *string `type:"string"` +// Describes the association of a configuration document and an instance. +type CreateAssociationBatchRequestEntry struct { + // The ID of the instance. + InstanceId *string `type:"string"` - // The parameter values to be inserted in the SSM document when executing the - // command. - Parameters map[string][]*string `type:"map"` + // The name of the configuration document. + Name *string `type:"string"` - // The date and time the command was requested. - RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + metadataCreateAssociationBatchRequestEntry `json:"-" xml:"-"` +} - // The status of the command. - Status *string `type:"string" enum:"CommandStatus"` +type metadataCreateAssociationBatchRequestEntry struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Command) String() string { +func (s CreateAssociationBatchRequestEntry) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Command) GoString() string { +func (s CreateAssociationBatchRequestEntry) GoString() string { return s.String() } -// Describes a command filter. -type CommandFilter struct { - _ struct{} `type:"structure"` +type CreateAssociationInput struct { + // The ID of the instance. + InstanceId *string `type:"string" required:"true"` + + // The name of the configuration document. + Name *string `type:"string" required:"true"` - // The name of the filter. For example, requested date and time. - Key *string `locationName:"key" type:"string" required:"true" enum:"CommandFilterKey"` + metadataCreateAssociationInput `json:"-" xml:"-"` +} - // The filter value. For example: June 30, 2015. - Value *string `locationName:"value" min:"1" type:"string" required:"true"` +type metadataCreateAssociationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CommandFilter) String() string { +func (s CreateAssociationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CommandFilter) GoString() string { +func (s CreateAssociationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CommandFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CommandFilter"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } +type CreateAssociationOutput struct { + // Information about the association. + AssociationDescription *AssociationDescription `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateAssociationOutput `json:"-" xml:"-"` } -// An invocation is copy of a command sent to a specific instance. A command -// can apply to one or more instances. A command invocation applies to one instance. -// For example, if a user executes SendCommand against three instances, then -// a command invocation is created for each requested instance ID. A command -// invocation returns status and detail information about a command you executed. -type CommandInvocation struct { - _ struct{} `type:"structure"` - - // The command against which this invocation was requested. - CommandId *string `min:"36" type:"string"` - - CommandPlugins []*CommandPlugin `type:"list"` - - // User-specified information about the command, such as a brief description - // of what the command should do. - Comment *string `type:"string"` - - // The document name that was requested for execution. - DocumentName *string `type:"string"` - - // The instance ID in which this invocation was requested. - InstanceId *string `type:"string"` - - // The time and date the request was sent to this instance. - RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` - - // Whether or not the invocation succeeded, failed, or is pending. - Status *string `type:"string" enum:"CommandInvocationStatus"` - - // Gets the trace output sent by the agent. - TraceOutput *string `type:"string"` +type metadataCreateAssociationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CommandInvocation) String() string { +func (s CreateAssociationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CommandInvocation) GoString() string { +func (s CreateAssociationOutput) GoString() string { return s.String() } -// Describes plugin details. -type CommandPlugin struct { - _ struct{} `type:"structure"` - - // The name of the plugin. Must be one of the following: aws:updateAgent, aws:domainjoin, - // aws:applications, aws:runPowerShellScript, aws:psmodule, aws:cloudWatch, - // aws:runShellScript, or aws:updateSSMAgent. - Name *string `min:"4" type:"string"` - - // Output of the plugin execution. - Output *string `type:"string"` - - // The S3 bucket where the responses to the command executions should be stored. - // This was requested when issuing the command. - OutputS3BucketName *string `min:"3" type:"string"` - - // The S3 directory path inside the bucket where the responses to the command - // executions should be stored. This was requested when issuing the command. - OutputS3KeyPrefix *string `type:"string"` - - // A numeric response code generated after executing the plugin. - ResponseCode *int64 `type:"integer"` +type CreateDocumentInput struct { + // A valid JSON file. For more information about the contents of this file, + // see Configuration Document (http://docs.aws.amazon.com/ssm/latest/APIReference/aws-ssm-document.html). + Content *string `type:"string" required:"true"` - // The time the plugin stopped executing. Could stop prematurely if, for example, - // a cancel command was sent. - ResponseFinishDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + // A name for the configuration document. + Name *string `type:"string" required:"true"` - // The time the plugin started executing. - ResponseStartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + metadataCreateDocumentInput `json:"-" xml:"-"` +} - // The status of this plugin. You can execute a document with multiple plugins. - Status *string `type:"string" enum:"CommandPluginStatus"` +type metadataCreateDocumentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CommandPlugin) String() string { +func (s CreateDocumentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CommandPlugin) GoString() string { +func (s CreateDocumentInput) GoString() string { return s.String() } -type CreateAssociationBatchInput struct { - _ struct{} `type:"structure"` +type CreateDocumentOutput struct { + // Information about the configuration document. + DocumentDescription *DocumentDescription `type:"structure"` - // One or more associations. - Entries []*CreateAssociationBatchRequestEntry `locationNameList:"entries" type:"list" required:"true"` + metadataCreateDocumentOutput `json:"-" xml:"-"` +} + +type metadataCreateDocumentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateAssociationBatchInput) String() string { +func (s CreateDocumentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAssociationBatchInput) GoString() string { +func (s CreateDocumentOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAssociationBatchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAssociationBatchInput"} - if s.Entries == nil { - invalidParams.Add(request.NewErrParamRequired("Entries")) - } +type DeleteAssociationInput struct { + // The ID of the instance. + InstanceId *string `type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + // The name of the configuration document. + Name *string `type:"string" required:"true"` + + metadataDeleteAssociationInput `json:"-" xml:"-"` } -type CreateAssociationBatchOutput struct { - _ struct{} `type:"structure"` - - // Information about the associations that failed. - Failed []*FailedCreateAssociation `locationNameList:"FailedCreateAssociationEntry" type:"list"` - - // Information about the associations that succeeded. - Successful []*AssociationDescription `locationNameList:"AssociationDescription" type:"list"` -} - -// String returns the string representation -func (s CreateAssociationBatchOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAssociationBatchOutput) GoString() string { - return s.String() -} - -// Describes the association of an SSM document and an instance. -type CreateAssociationBatchRequestEntry struct { - _ struct{} `type:"structure"` - - // The ID of the instance. - InstanceId *string `type:"string"` - - // The name of the configuration document. - Name *string `type:"string"` - - // A description of the parameters for a document. - Parameters map[string][]*string `type:"map"` -} - -// String returns the string representation -func (s CreateAssociationBatchRequestEntry) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAssociationBatchRequestEntry) GoString() string { - return s.String() -} - -type CreateAssociationInput struct { - _ struct{} `type:"structure"` - - // The instance ID. - InstanceId *string `type:"string" required:"true"` - - // The name of the SSM document. - Name *string `type:"string" required:"true"` - - // The parameters for the documents runtime configuration. - Parameters map[string][]*string `type:"map"` -} - -// String returns the string representation -func (s CreateAssociationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAssociationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAssociationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAssociationInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateAssociationOutput struct { - _ struct{} `type:"structure"` - - // Information about the association. - AssociationDescription *AssociationDescription `type:"structure"` -} - -// String returns the string representation -func (s CreateAssociationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateAssociationOutput) GoString() string { - return s.String() -} - -type CreateDocumentInput struct { - _ struct{} `type:"structure"` - - // A valid JSON string. - Content *string `min:"1" type:"string" required:"true"` - - // A name for the SSM document. - Name *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateDocumentInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateDocumentInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDocumentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDocumentInput"} - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) - } - if s.Content != nil && len(*s.Content) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Content", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateDocumentOutput struct { - _ struct{} `type:"structure"` - - // Information about the SSM document. - DocumentDescription *DocumentDescription `type:"structure"` -} - -// String returns the string representation -func (s CreateDocumentOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateDocumentOutput) GoString() string { - return s.String() -} - -type DeleteAssociationInput struct { - _ struct{} `type:"structure"` - - // The ID of the instance. - InstanceId *string `type:"string" required:"true"` - - // The name of the SSM document. - Name *string `type:"string" required:"true"` -} +type metadataDeleteAssociationInput struct { + SDKShapeTraits bool `type:"structure"` +} // String returns the string representation func (s DeleteAssociationInput) String() string { @@ -1169,24 +633,12 @@ func (s DeleteAssociationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAssociationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAssociationInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteAssociationOutput struct { + metadataDeleteAssociationOutput `json:"-" xml:"-"` } -type DeleteAssociationOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteAssociationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1200,10 +652,14 @@ func (s DeleteAssociationOutput) GoString() string { } type DeleteDocumentInput struct { - _ struct{} `type:"structure"` - - // The name of the SSM document. + // The name of the configuration document. Name *string `type:"string" required:"true"` + + metadataDeleteDocumentInput `json:"-" xml:"-"` +} + +type metadataDeleteDocumentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1216,21 +672,12 @@ func (s DeleteDocumentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDocumentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDocumentInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeleteDocumentOutput struct { + metadataDeleteDocumentOutput `json:"-" xml:"-"` } -type DeleteDocumentOutput struct { - _ struct{} `type:"structure"` +type metadataDeleteDocumentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1240,1015 +687,372 @@ func (s DeleteDocumentOutput) String() string { // GoString returns the string representation func (s DeleteDocumentOutput) GoString() string { - return s.String() -} - -type DescribeAssociationInput struct { - _ struct{} `type:"structure"` - - // The instance ID. - InstanceId *string `type:"string" required:"true"` - - // The name of the SSM document. - Name *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeAssociationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAssociationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAssociationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAssociationInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeAssociationOutput struct { - _ struct{} `type:"structure"` - - // Information about the association. - AssociationDescription *AssociationDescription `type:"structure"` -} - -// String returns the string representation -func (s DescribeAssociationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeAssociationOutput) GoString() string { - return s.String() -} - -type DescribeDocumentInput struct { - _ struct{} `type:"structure"` - - // The name of the SSM document. - Name *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeDocumentInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDocumentInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDocumentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeDocumentOutput struct { - _ struct{} `type:"structure"` - - // Information about the SSM document. - Document *DocumentDescription `type:"structure"` -} - -// String returns the string representation -func (s DescribeDocumentOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDocumentOutput) GoString() string { - return s.String() -} - -type DescribeDocumentPermissionInput struct { - _ struct{} `type:"structure"` - - // The name of the document for which you are the owner. - Name *string `type:"string" required:"true"` - - // The permission type for the document. The permission type can be Share. - PermissionType *string `type:"string" required:"true" enum:"DocumentPermissionType"` -} - -// String returns the string representation -func (s DescribeDocumentPermissionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDocumentPermissionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDocumentPermissionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentPermissionInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.PermissionType == nil { - invalidParams.Add(request.NewErrParamRequired("PermissionType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeDocumentPermissionOutput struct { - _ struct{} `type:"structure"` - - // The account IDs that have permission to use this document. The ID can be - // either an AWS account or All. - AccountIds []*string `locationNameList:"AccountId" type:"list"` -} - -// String returns the string representation -func (s DescribeDocumentPermissionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeDocumentPermissionOutput) GoString() string { - return s.String() -} - -type DescribeInstanceInformationInput struct { - _ struct{} `type:"structure"` - - // One or more filters. Use a filter to return a more specific list of instances. - InstanceInformationFilterList []*InstanceInformationFilter `locationNameList:"InstanceInformationFilter" min:"1" type:"list"` - - // The maximum number of items to return for this call. The call also returns - // a token that you can specify in a subsequent call to get the next set of - // results. - MaxResults *int64 `min:"5" type:"integer"` - - // The token for the next set of items to return. (You received this token from - // a previous call.) - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s DescribeInstanceInformationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeInstanceInformationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeInstanceInformationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceInformationInput"} - if s.InstanceInformationFilterList != nil && len(s.InstanceInformationFilterList) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceInformationFilterList", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 5 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) - } - if s.InstanceInformationFilterList != nil { - for i, v := range s.InstanceInformationFilterList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceInformationFilterList", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DescribeInstanceInformationOutput struct { - _ struct{} `type:"structure"` - - // The instance information list. - InstanceInformationList []*InstanceInformation `locationNameList:"InstanceInformation" type:"list"` - - // The token to use when requesting the next set of items. If there are no additional - // items to return, the string is empty. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s DescribeInstanceInformationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeInstanceInformationOutput) GoString() string { - return s.String() -} - -// Describes an SSM document. -type DocumentDescription struct { - _ struct{} `type:"structure"` - - // The date when the SSM document was created. - CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - - // A description of the document. - Description *string `type:"string"` - - // The Sha256 or Sha1 hash created by the system when the document was created. - // - // Sha1 hashes have been deprecated. - Hash *string `type:"string"` - - // Sha256 or Sha1. - // - // Sha1 hashes have been deprecated. - HashType *string `type:"string" enum:"DocumentHashType"` - - // The name of the SSM document. - Name *string `type:"string"` - - // The AWS user account of the person who created the document. - Owner *string `type:"string"` - - // A description of the parameters for a document. - Parameters []*DocumentParameter `locationNameList:"DocumentParameter" type:"list"` - - // The list of OS platforms compatible with this SSM document. - PlatformTypes []*string `locationNameList:"PlatformType" type:"list"` - - // The SHA1 hash of the document, which you can use for verification purposes. - Sha1 *string `type:"string"` - - // The status of the SSM document. - Status *string `type:"string" enum:"DocumentStatus"` -} - -// String returns the string representation -func (s DocumentDescription) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DocumentDescription) GoString() string { - return s.String() -} - -// Describes a filter. -type DocumentFilter struct { - _ struct{} `type:"structure"` - - // The name of the filter. - Key *string `locationName:"key" type:"string" required:"true" enum:"DocumentFilterKey"` - - // The value of the filter. - Value *string `locationName:"value" min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DocumentFilter) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DocumentFilter) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DocumentFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DocumentFilter"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Describes the name of an SSM document. -type DocumentIdentifier struct { - _ struct{} `type:"structure"` - - // The name of the SSM document. - Name *string `type:"string"` - - // The AWS user account of the person who created the document. - Owner *string `type:"string"` - - // The operating system platform. - PlatformTypes []*string `locationNameList:"PlatformType" type:"list"` -} - -// String returns the string representation -func (s DocumentIdentifier) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DocumentIdentifier) GoString() string { - return s.String() -} - -// Parameters specified in the SSM document that execute on the server when -// the command is run. -type DocumentParameter struct { - _ struct{} `type:"structure"` - - // If specified, the default values for the parameters. Parameters without a - // default value are required. Parameters with a default value are optional. - DefaultValue *string `type:"string"` - - // A description of what the parameter does, how to use it, the default value, - // and whether or not the parameter is optional. - Description *string `type:"string"` - - // The name of the parameter. - Name *string `type:"string"` - - // The type of parameter. The type can be either “String” or “StringList”. - Type *string `type:"string" enum:"DocumentParameterType"` -} - -// String returns the string representation -func (s DocumentParameter) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DocumentParameter) GoString() string { - return s.String() -} - -// Describes a failed association. -type FailedCreateAssociation struct { - _ struct{} `type:"structure"` - - // The association. - Entry *CreateAssociationBatchRequestEntry `type:"structure"` - - // The source of the failure. - Fault *string `type:"string" enum:"Fault"` - - // A description of the failure. - Message *string `type:"string"` -} - -// String returns the string representation -func (s FailedCreateAssociation) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FailedCreateAssociation) GoString() string { - return s.String() -} - -type GetDocumentInput struct { - _ struct{} `type:"structure"` - - // The name of the SSM document. - Name *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s GetDocumentInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetDocumentInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDocumentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDocumentInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetDocumentOutput struct { - _ struct{} `type:"structure"` - - // The contents of the SSM document. - Content *string `min:"1" type:"string"` - - // The name of the SSM document. - Name *string `type:"string"` -} - -// String returns the string representation -func (s GetDocumentOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetDocumentOutput) GoString() string { - return s.String() -} - -// Describes a filter for a specific list of instances. -type InstanceInformation struct { - _ struct{} `type:"structure"` - - // The version of the SSM agent running on your instance. - AgentVersion *string `type:"string"` - - // The instance ID. - InstanceId *string `type:"string"` - - // Indicates whether latest version of the SSM agent is running on your instance. - IsLatestVersion *bool `type:"boolean"` - - // The date and time when agent last pinged SSM service. - LastPingDateTime *time.Time `type:"timestamp" timestampFormat:"unix"` + return s.String() +} - // Connection status of the SSM agent. - PingStatus *string `type:"string" enum:"PingStatus"` +type DescribeAssociationInput struct { + // The ID of the instance. + InstanceId *string `type:"string" required:"true"` - // The name of the operating system platform running on your instance. - PlatformName *string `type:"string"` + // The name of the configuration document. + Name *string `type:"string" required:"true"` - // The operating system platform type. - PlatformType *string `type:"string" enum:"PlatformType"` + metadataDescribeAssociationInput `json:"-" xml:"-"` +} - // The version of the OS platform running on your instance. - PlatformVersion *string `type:"string"` +type metadataDescribeAssociationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s InstanceInformation) String() string { +func (s DescribeAssociationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceInformation) GoString() string { +func (s DescribeAssociationInput) GoString() string { return s.String() } -// Describes a filter for a specific list of instances. -type InstanceInformationFilter struct { - _ struct{} `type:"structure"` +type DescribeAssociationOutput struct { + // Information about the association. + AssociationDescription *AssociationDescription `type:"structure"` - // The name of the filter. - Key *string `locationName:"key" type:"string" required:"true" enum:"InstanceInformationFilterKey"` + metadataDescribeAssociationOutput `json:"-" xml:"-"` +} - // The filter values. - ValueSet []*string `locationName:"valueSet" locationNameList:"InstanceInformationFilterValue" min:"1" type:"list" required:"true"` +type metadataDescribeAssociationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s InstanceInformationFilter) String() string { +func (s DescribeAssociationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceInformationFilter) GoString() string { +func (s DescribeAssociationOutput) 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)) - } +type DescribeDocumentInput struct { + // The name of the configuration document. + Name *string `type:"string" required:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDescribeDocumentInput `json:"-" xml:"-"` } -type ListAssociationsInput struct { - _ struct{} `type:"structure"` - - // One or more filters. Use a filter to return a more specific list of results. - AssociationFilterList []*AssociationFilter `locationNameList:"AssociationFilter" min:"1" type:"list" required:"true"` - - // The maximum number of items to return for this call. The call also returns - // a token that you can specify in a subsequent call to get the next set of - // results. - MaxResults *int64 `min:"1" type:"integer"` - - // The token for the next set of items to return. (You received this token from - // a previous call.) - NextToken *string `type:"string"` +type metadataDescribeDocumentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListAssociationsInput) String() string { +func (s DescribeDocumentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAssociationsInput) GoString() string { +func (s DescribeDocumentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAssociationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAssociationsInput"} - if s.AssociationFilterList == nil { - invalidParams.Add(request.NewErrParamRequired("AssociationFilterList")) - } - if s.AssociationFilterList != nil && len(s.AssociationFilterList) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AssociationFilterList", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.AssociationFilterList != nil { - for i, v := range s.AssociationFilterList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AssociationFilterList", i), err.(request.ErrInvalidParams)) - } - } - } +type DescribeDocumentOutput struct { + // Information about the configuration document. + Document *DocumentDescription `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDescribeDocumentOutput `json:"-" xml:"-"` } -type ListAssociationsOutput struct { - _ struct{} `type:"structure"` - - // The associations. - Associations []*Association `locationNameList:"Association" type:"list"` - - // The token to use when requesting the next set of items. If there are no additional - // items to return, the string is empty. - NextToken *string `type:"string"` +type metadataDescribeDocumentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListAssociationsOutput) String() string { +func (s DescribeDocumentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAssociationsOutput) GoString() string { +func (s DescribeDocumentOutput) GoString() string { return s.String() } -type ListCommandInvocationsInput struct { - _ struct{} `type:"structure"` - - // (Optional) The invocations for a specific command ID. - CommandId *string `min:"36" type:"string"` +// Describes a configuration document. +type DocumentDescription struct { + // The date when the configuration document was created. + CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"` - // (Optional) If set this returns the response of the command executions and - // any command output. By default this is set to False. - Details *bool `type:"boolean"` + // The name of the configuration document. + Name *string `type:"string"` - // (Optional) One or more filters. Use a filter to return a more specific list - // of results. - Filters []*CommandFilter `min:"1" type:"list"` + // The SHA1 hash of the document, which you can use for verification purposes. + Sha1 *string `type:"string"` - // (Optional) The command execution details for a specific instance ID. - InstanceId *string `type:"string"` + // The status of the configuration document. + Status *string `type:"string" enum:"DocumentStatus"` - // (Optional) The maximum number of items to return for this call. The call - // also returns a token that you can specify in a subsequent call to get the - // next set of results. - MaxResults *int64 `min:"1" type:"integer"` + metadataDocumentDescription `json:"-" xml:"-"` +} - // (Optional) The token for the next set of items to return. (You received this - // token from a previous call.) - NextToken *string `type:"string"` +type metadataDocumentDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListCommandInvocationsInput) String() string { +func (s DocumentDescription) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListCommandInvocationsInput) GoString() string { +func (s DocumentDescription) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListCommandInvocationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListCommandInvocationsInput"} - if s.CommandId != nil && len(*s.CommandId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("CommandId", 36)) - } - if s.Filters != nil && len(s.Filters) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} +// Describes a filter. +type DocumentFilter struct { + // The name of the filter. + Key *string `locationName:"key" type:"string" required:"true" enum:"DocumentFilterKey"` -type ListCommandInvocationsOutput struct { - _ struct{} `type:"structure"` + // The value of the filter. + Value *string `locationName:"value" type:"string" required:"true"` - // (Optional) A list of all invocations. - CommandInvocations []*CommandInvocation `type:"list"` + metadataDocumentFilter `json:"-" xml:"-"` +} - // (Optional) The token for the next set of items to return. (You received this - // token from a previous call.) - NextToken *string `type:"string"` +type metadataDocumentFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListCommandInvocationsOutput) String() string { +func (s DocumentFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListCommandInvocationsOutput) GoString() string { +func (s DocumentFilter) GoString() string { return s.String() } -type ListCommandsInput struct { - _ struct{} `type:"structure"` - - // (Optional) If provided, lists only the specified command. - CommandId *string `min:"36" type:"string"` - - // (Optional) One or more filters. Use a filter to return a more specific list - // of results. - Filters []*CommandFilter `min:"1" type:"list"` - - // (Optional) Lists commands issued against this instance ID. - InstanceId *string `type:"string"` +// Describes the name of a configuration document. +type DocumentIdentifier struct { + // The name of the configuration document. + Name *string `type:"string"` - // (Optional) The maximum number of items to return for this call. The call - // also returns a token that you can specify in a subsequent call to get the - // next set of results. - MaxResults *int64 `min:"1" type:"integer"` + metadataDocumentIdentifier `json:"-" xml:"-"` +} - // (Optional) The token for the next set of items to return. (You received this - // token from a previous call.) - NextToken *string `type:"string"` +type metadataDocumentIdentifier struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListCommandsInput) String() string { +func (s DocumentIdentifier) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListCommandsInput) GoString() string { +func (s DocumentIdentifier) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListCommandsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListCommandsInput"} - if s.CommandId != nil && len(*s.CommandId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("CommandId", 36)) - } - if s.Filters != nil && len(s.Filters) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } +// Describes a failed association. +type FailedCreateAssociation struct { + // The association. + Entry *CreateAssociationBatchRequestEntry `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The source of the failure. + Fault *string `type:"string" enum:"Fault"` -type ListCommandsOutput struct { - _ struct{} `type:"structure"` + // A description of the failure. + Message *string `type:"string"` - // (Optional) The list of commands requested by the user. - Commands []*Command `type:"list"` + metadataFailedCreateAssociation `json:"-" xml:"-"` +} - // (Optional) The token for the next set of items to return. (You received this - // token from a previous call.) - NextToken *string `type:"string"` +type metadataFailedCreateAssociation struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListCommandsOutput) String() string { +func (s FailedCreateAssociation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListCommandsOutput) GoString() string { +func (s FailedCreateAssociation) GoString() string { return s.String() } -type ListDocumentsInput struct { - _ struct{} `type:"structure"` - - // One or more filters. Use a filter to return a more specific list of results. - DocumentFilterList []*DocumentFilter `locationNameList:"DocumentFilter" min:"1" type:"list"` +type GetDocumentInput struct { + // The name of the configuration document. + Name *string `type:"string" required:"true"` - // The maximum number of items to return for this call. The call also returns - // a token that you can specify in a subsequent call to get the next set of - // results. - MaxResults *int64 `min:"1" type:"integer"` + metadataGetDocumentInput `json:"-" xml:"-"` +} - // The token for the next set of items to return. (You received this token from - // a previous call.) - NextToken *string `type:"string"` +type metadataGetDocumentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListDocumentsInput) String() string { +func (s GetDocumentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDocumentsInput) GoString() string { +func (s GetDocumentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDocumentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDocumentsInput"} - if s.DocumentFilterList != nil && len(s.DocumentFilterList) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DocumentFilterList", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.DocumentFilterList != nil { - for i, v := range s.DocumentFilterList { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DocumentFilterList", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} +type GetDocumentOutput struct { + // The contents of the configuration document. + Content *string `type:"string"` -type ListDocumentsOutput struct { - _ struct{} `type:"structure"` + // The name of the configuration document. + Name *string `type:"string"` - // The names of the SSM documents. - DocumentIdentifiers []*DocumentIdentifier `locationNameList:"DocumentIdentifier" type:"list"` + metadataGetDocumentOutput `json:"-" xml:"-"` +} - // The token to use when requesting the next set of items. If there are no additional - // items to return, the string is empty. - NextToken *string `type:"string"` +type metadataGetDocumentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ListDocumentsOutput) String() string { +func (s GetDocumentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDocumentsOutput) GoString() string { +func (s GetDocumentOutput) GoString() string { return s.String() } -type ModifyDocumentPermissionInput struct { - _ struct{} `type:"structure"` +type ListAssociationsInput struct { + // One or more filters. Use a filter to return a more specific list of results. + AssociationFilterList []*AssociationFilter `locationNameList:"AssociationFilter" type:"list" required:"true"` - // The AWS user accounts that should have access to the document. The account - // IDs can either be a group of account IDs or All. - AccountIdsToAdd []*string `locationNameList:"AccountId" type:"list"` + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `type:"integer"` - // The AWS user accounts that should no longer have access to the document. - // The AWS user account can either be a group of account IDs or All. This action - // has a higher priority than AccountIdsToAdd. If you specify an account ID - // to add and the same ID to remove, the system removes access to the document. - AccountIdsToRemove []*string `locationNameList:"AccountId" type:"list"` + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` - // The name of the document that you want to share. - Name *string `type:"string" required:"true"` + metadataListAssociationsInput `json:"-" xml:"-"` +} - // The permission type for the document. The permission type can be Share. - PermissionType *string `type:"string" required:"true" enum:"DocumentPermissionType"` +type metadataListAssociationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ModifyDocumentPermissionInput) String() string { +func (s ListAssociationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyDocumentPermissionInput) GoString() string { +func (s ListAssociationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyDocumentPermissionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyDocumentPermissionInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.PermissionType == nil { - invalidParams.Add(request.NewErrParamRequired("PermissionType")) - } +type ListAssociationsOutput struct { + // The associations. + Associations []*Association `locationNameList:"Association" type:"list"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` + + metadataListAssociationsOutput `json:"-" xml:"-"` } -type ModifyDocumentPermissionOutput struct { - _ struct{} `type:"structure"` +type metadataListAssociationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s ModifyDocumentPermissionOutput) String() string { +func (s ListAssociationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyDocumentPermissionOutput) GoString() string { +func (s ListAssociationsOutput) GoString() string { return s.String() } -type SendCommandInput struct { - _ struct{} `type:"structure"` - - // User-specified information about the command, such as a brief description - // of what the command should do. - Comment *string `type:"string"` - - // The Sha256 or Sha1 hash created by the system when the document was created. - // - // Sha1 hashes have been deprecated. - DocumentHash *string `type:"string"` - - // Sha256 or Sha1. - // - // Sha1 hashes have been deprecated. - DocumentHashType *string `type:"string" enum:"DocumentHashType"` - - // Required. The name of the SSM document to execute. This can be an SSM public - // document or a custom document. - DocumentName *string `type:"string" required:"true"` - - // Required. The instance IDs where the command should execute. - InstanceIds []*string `min:"1" type:"list" required:"true"` +type ListDocumentsInput struct { + // One or more filters. Use a filter to return a more specific list of results. + DocumentFilterList []*DocumentFilter `locationNameList:"DocumentFilter" type:"list"` - // The name of the S3 bucket where command execution responses should be stored. - OutputS3BucketName *string `min:"3" type:"string"` + // The maximum number of items to return for this call. The call also returns + // a token that you can specify in a subsequent call to get the next set of + // results. + MaxResults *int64 `type:"integer"` - // The directory structure within the S3 bucket where the responses should be - // stored. - OutputS3KeyPrefix *string `type:"string"` + // The token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` - // The required and optional parameters specified in the SSM document being - // executed. - Parameters map[string][]*string `type:"map"` + metadataListDocumentsInput `json:"-" xml:"-"` +} - // If this time is reached and the command has not already started executing, - // it will not execute. - TimeoutSeconds *int64 `min:"30" type:"integer"` +type metadataListDocumentsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s SendCommandInput) String() string { +func (s ListDocumentsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SendCommandInput) GoString() string { +func (s ListDocumentsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SendCommandInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SendCommandInput"} - if s.DocumentName == nil { - invalidParams.Add(request.NewErrParamRequired("DocumentName")) - } - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } - if s.InstanceIds != nil && len(s.InstanceIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceIds", 1)) - } - if s.OutputS3BucketName != nil && len(*s.OutputS3BucketName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("OutputS3BucketName", 3)) - } - if s.TimeoutSeconds != nil && *s.TimeoutSeconds < 30 { - invalidParams.Add(request.NewErrParamMinValue("TimeoutSeconds", 30)) - } +type ListDocumentsOutput struct { + // The names of the configuration documents. + DocumentIdentifiers []*DocumentIdentifier `locationNameList:"DocumentIdentifier" type:"list"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The token to use when requesting the next set of items. If there are no additional + // items to return, the string is empty. + NextToken *string `type:"string"` -type SendCommandOutput struct { - _ struct{} `type:"structure"` + metadataListDocumentsOutput `json:"-" xml:"-"` +} - // The request as it was received by SSM. Also provides the command ID which - // can be used future references to this request. - Command *Command `type:"structure"` +type metadataListDocumentsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s SendCommandOutput) String() string { +func (s ListDocumentsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SendCommandOutput) GoString() string { +func (s ListDocumentsOutput) GoString() string { return s.String() } type UpdateAssociationStatusInput struct { - _ struct{} `type:"structure"` - // The association status. AssociationStatus *AssociationStatus `type:"structure" required:"true"` // The ID of the instance. InstanceId *string `type:"string" required:"true"` - // The name of the SSM document. + // The name of the configuration document. Name *string `type:"string" required:"true"` + + metadataUpdateAssociationStatusInput `json:"-" xml:"-"` +} + +type metadataUpdateAssociationStatusInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2261,35 +1065,15 @@ func (s UpdateAssociationStatusInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAssociationStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAssociationStatusInput"} - if s.AssociationStatus == nil { - invalidParams.Add(request.NewErrParamRequired("AssociationStatus")) - } - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.AssociationStatus != nil { - if err := s.AssociationStatus.Validate(); err != nil { - invalidParams.AddNested("AssociationStatus", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type UpdateAssociationStatusOutput struct { - _ struct{} `type:"structure"` - // Information about the association. AssociationDescription *AssociationDescription `type:"structure"` + + metadataUpdateAssociationStatusOutput `json:"-" xml:"-"` +} + +type metadataUpdateAssociationStatusOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2318,90 +1102,9 @@ const ( AssociationStatusNameFailed = "Failed" ) -const ( - // @enum CommandFilterKey - CommandFilterKeyInvokedAfter = "InvokedAfter" - // @enum CommandFilterKey - CommandFilterKeyInvokedBefore = "InvokedBefore" - // @enum CommandFilterKey - CommandFilterKeyStatus = "Status" -) - -const ( - // @enum CommandInvocationStatus - CommandInvocationStatusPending = "Pending" - // @enum CommandInvocationStatus - CommandInvocationStatusInProgress = "InProgress" - // @enum CommandInvocationStatus - CommandInvocationStatusCancelling = "Cancelling" - // @enum CommandInvocationStatus - CommandInvocationStatusSuccess = "Success" - // @enum CommandInvocationStatus - CommandInvocationStatusTimedOut = "TimedOut" - // @enum CommandInvocationStatus - CommandInvocationStatusCancelled = "Cancelled" - // @enum CommandInvocationStatus - CommandInvocationStatusFailed = "Failed" -) - -const ( - // @enum CommandPluginStatus - CommandPluginStatusPending = "Pending" - // @enum CommandPluginStatus - CommandPluginStatusInProgress = "InProgress" - // @enum CommandPluginStatus - CommandPluginStatusSuccess = "Success" - // @enum CommandPluginStatus - CommandPluginStatusTimedOut = "TimedOut" - // @enum CommandPluginStatus - CommandPluginStatusCancelled = "Cancelled" - // @enum CommandPluginStatus - CommandPluginStatusFailed = "Failed" -) - -const ( - // @enum CommandStatus - CommandStatusPending = "Pending" - // @enum CommandStatus - CommandStatusInProgress = "InProgress" - // @enum CommandStatus - CommandStatusCancelling = "Cancelling" - // @enum CommandStatus - CommandStatusSuccess = "Success" - // @enum CommandStatus - CommandStatusTimedOut = "TimedOut" - // @enum CommandStatus - CommandStatusCancelled = "Cancelled" - // @enum CommandStatus - CommandStatusFailed = "Failed" -) - const ( // @enum DocumentFilterKey DocumentFilterKeyName = "Name" - // @enum DocumentFilterKey - DocumentFilterKeyOwner = "Owner" - // @enum DocumentFilterKey - DocumentFilterKeyPlatformTypes = "PlatformTypes" -) - -const ( - // @enum DocumentHashType - DocumentHashTypeSha256 = "Sha256" - // @enum DocumentHashType - DocumentHashTypeSha1 = "Sha1" -) - -const ( - // @enum DocumentParameterType - DocumentParameterTypeString = "String" - // @enum DocumentParameterType - DocumentParameterTypeStringList = "StringList" -) - -const ( - // @enum DocumentPermissionType - DocumentPermissionTypeShare = "Share" ) const ( @@ -2421,30 +1124,3 @@ const ( // @enum Fault FaultUnknown = "Unknown" ) - -const ( - // @enum InstanceInformationFilterKey - InstanceInformationFilterKeyInstanceIds = "InstanceIds" - // @enum InstanceInformationFilterKey - InstanceInformationFilterKeyAgentVersion = "AgentVersion" - // @enum InstanceInformationFilterKey - InstanceInformationFilterKeyPingStatus = "PingStatus" - // @enum InstanceInformationFilterKey - InstanceInformationFilterKeyPlatformTypes = "PlatformTypes" -) - -const ( - // @enum PingStatus - PingStatusOnline = "Online" - // @enum PingStatus - PingStatusConnectionLost = "ConnectionLost" - // @enum PingStatus - PingStatusInactive = "Inactive" -) - -const ( - // @enum PlatformType - PlatformTypeWindows = "Windows" - // @enum PlatformType - PlatformTypeLinux = "Linux" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go index 9ab62a5cb..7e25aaea2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/examples_test.go @@ -8,49 +8,18 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ssm" ) var _ time.Duration var _ bytes.Buffer -func ExampleSSM_CancelCommand() { - svc := ssm.New(session.New()) - - params := &ssm.CancelCommandInput{ - CommandId: aws.String("CommandId"), // Required - InstanceIds: []*string{ - aws.String("InstanceId"), // Required - // More values... - }, - } - resp, err := svc.CancelCommand(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSSM_CreateAssociation() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.CreateAssociationInput{ InstanceId: aws.String("InstanceId"), // Required Name: aws.String("DocumentName"), // Required - Parameters: map[string][]*string{ - "Key": { // Required - aws.String("ParameterValue"), // Required - // More values... - }, - // More values... - }, } resp, err := svc.CreateAssociation(params) @@ -66,20 +35,13 @@ func ExampleSSM_CreateAssociation() { } func ExampleSSM_CreateAssociationBatch() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.CreateAssociationBatchInput{ Entries: []*ssm.CreateAssociationBatchRequestEntry{ // Required { // Required InstanceId: aws.String("InstanceId"), Name: aws.String("DocumentName"), - Parameters: map[string][]*string{ - "Key": { // Required - aws.String("ParameterValue"), // Required - // More values... - }, - // More values... - }, }, // More values... }, @@ -98,7 +60,7 @@ func ExampleSSM_CreateAssociationBatch() { } func ExampleSSM_CreateDocument() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.CreateDocumentInput{ Content: aws.String("DocumentContent"), // Required @@ -118,7 +80,7 @@ func ExampleSSM_CreateDocument() { } func ExampleSSM_DeleteAssociation() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.DeleteAssociationInput{ InstanceId: aws.String("InstanceId"), // Required @@ -138,7 +100,7 @@ func ExampleSSM_DeleteAssociation() { } func ExampleSSM_DeleteDocument() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.DeleteDocumentInput{ Name: aws.String("DocumentName"), // Required @@ -157,7 +119,7 @@ func ExampleSSM_DeleteDocument() { } func ExampleSSM_DescribeAssociation() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.DescribeAssociationInput{ InstanceId: aws.String("InstanceId"), // Required @@ -177,10 +139,10 @@ func ExampleSSM_DescribeAssociation() { } func ExampleSSM_DescribeDocument() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.DescribeDocumentInput{ - Name: aws.String("DocumentARN"), // Required + Name: aws.String("DocumentName"), // Required } resp, err := svc.DescribeDocument(params) @@ -195,61 +157,11 @@ func ExampleSSM_DescribeDocument() { fmt.Println(resp) } -func ExampleSSM_DescribeDocumentPermission() { - svc := ssm.New(session.New()) - - params := &ssm.DescribeDocumentPermissionInput{ - Name: aws.String("DocumentName"), // Required - PermissionType: aws.String("DocumentPermissionType"), // Required - } - resp, err := svc.DescribeDocumentPermission(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSSM_DescribeInstanceInformation() { - svc := ssm.New(session.New()) - - params := &ssm.DescribeInstanceInformationInput{ - InstanceInformationFilterList: []*ssm.InstanceInformationFilter{ - { // Required - Key: aws.String("InstanceInformationFilterKey"), // Required - ValueSet: []*string{ // Required - aws.String("InstanceInformationFilterValue"), // Required - // More values... - }, - }, - // More values... - }, - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.DescribeInstanceInformation(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSSM_GetDocument() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.GetDocumentInput{ - Name: aws.String("DocumentARN"), // Required + Name: aws.String("DocumentName"), // Required } resp, err := svc.GetDocument(params) @@ -265,7 +177,7 @@ func ExampleSSM_GetDocument() { } func ExampleSSM_ListAssociations() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.ListAssociationsInput{ AssociationFilterList: []*ssm.AssociationFilter{ // Required @@ -291,67 +203,8 @@ func ExampleSSM_ListAssociations() { fmt.Println(resp) } -func ExampleSSM_ListCommandInvocations() { - svc := ssm.New(session.New()) - - params := &ssm.ListCommandInvocationsInput{ - CommandId: aws.String("CommandId"), - Details: aws.Bool(true), - Filters: []*ssm.CommandFilter{ - { // Required - Key: aws.String("CommandFilterKey"), // Required - Value: aws.String("CommandFilterValue"), // Required - }, - // More values... - }, - InstanceId: aws.String("InstanceId"), - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListCommandInvocations(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSSM_ListCommands() { - svc := ssm.New(session.New()) - - params := &ssm.ListCommandsInput{ - CommandId: aws.String("CommandId"), - Filters: []*ssm.CommandFilter{ - { // Required - Key: aws.String("CommandFilterKey"), // Required - Value: aws.String("CommandFilterValue"), // Required - }, - // More values... - }, - InstanceId: aws.String("InstanceId"), - MaxResults: aws.Int64(1), - NextToken: aws.String("NextToken"), - } - resp, err := svc.ListCommands(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSSM_ListDocuments() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.ListDocumentsInput{ DocumentFilterList: []*ssm.DocumentFilter{ @@ -377,72 +230,8 @@ func ExampleSSM_ListDocuments() { fmt.Println(resp) } -func ExampleSSM_ModifyDocumentPermission() { - svc := ssm.New(session.New()) - - params := &ssm.ModifyDocumentPermissionInput{ - Name: aws.String("DocumentName"), // Required - PermissionType: aws.String("DocumentPermissionType"), // Required - AccountIdsToAdd: []*string{ - aws.String("AccountId"), // Required - // More values... - }, - AccountIdsToRemove: []*string{ - aws.String("AccountId"), // Required - // More values... - }, - } - resp, err := svc.ModifyDocumentPermission(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleSSM_SendCommand() { - svc := ssm.New(session.New()) - - params := &ssm.SendCommandInput{ - DocumentName: aws.String("DocumentARN"), // Required - InstanceIds: []*string{ // Required - aws.String("InstanceId"), // Required - // More values... - }, - Comment: aws.String("Comment"), - DocumentHash: aws.String("DocumentHash"), - DocumentHashType: aws.String("DocumentHashType"), - OutputS3BucketName: aws.String("S3BucketName"), - OutputS3KeyPrefix: aws.String("S3KeyPrefix"), - Parameters: map[string][]*string{ - "Key": { // Required - aws.String("ParameterValue"), // Required - // More values... - }, - // More values... - }, - TimeoutSeconds: aws.Int64(1), - } - resp, err := svc.SendCommand(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSSM_UpdateAssociationStatus() { - svc := ssm.New(session.New()) + svc := ssm.New(nil) params := &ssm.UpdateAssociationStatusInput{ AssociationStatus: &ssm.AssociationStatus{ // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go index 9c6717053..8bd85fa96 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/service.go @@ -4,181 +4,66 @@ package ssm import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) -// This is the Amazon Simple Systems Manager (SSM) API Reference. SSM enables -// you to remotely manage the configuration of your Amazon EC2 instance using -// scripts or commands with either an on-demand solution called SSM Run Command -// or a lightweight instance configuration solution called SSM Config. +// Amazon EC2 Simple Systems Manager (SSM) enables you to configure and manage +// your EC2 instances. You can create a configuration document and then associate +// it with one or more running instances. // -// This references is intended to be used with the SSM User Guide for Linux -// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/execute-remote-commands.html) -// or Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/execute-remote-commands.html). +// You can use a configuration document to automate the following tasks for +// your Windows instances: // -// Run Command +// Join an AWS Directory // -// Run Command provides an on-demand experience for executing commands. You -// can use pre-defined Amazon SSM documents to perform the actions listed later -// in this section, or you can create your own documents. With these documents, -// you can remotely configure your instances by sending commands using the Commands -// page in the Amazon EC2 console (http://console.aws.amazon.com/ec2/), AWS -// Tools for Windows PowerShell (http://docs.aws.amazon.com/powershell/latest/reference/items/Amazon_Simple_Systems_Management_cmdlets.html), -// the AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/ssm/index.html), -// or AWS SDKs. +// Install, repair, or uninstall software using an MSI package // -// Run Command reports the status of the command execution for each instance -// targeted by a command. You can also audit the command execution to understand -// who executed commands, when, and what changes were made. By switching between -// different SSM documents, you can quickly configure your instances with different -// types of commands. To get started with Run Command, verify that your environment -// meets the prerequisites for remotely running commands on EC2 instances (Linux -// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/remote-commands-prereq.html) -// or Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/remote-commands-prereq.html)). +// Run PowerShell scripts // -// SSM Config +// Configure CloudWatch Logs to monitor applications and systems // -// SSM Config is a lightweight instance configuration solution. SSM Config -// is currently only available for Windows instances. With SSM Config, you can -// specify a setup configuration for your instances. SSM Config is similar to -// EC2 User Data, which is another way of running one-time scripts or applying -// settings during instance launch. SSM Config is an extension of this capability. -// Using SSM documents, you can specify which actions the system should perform -// on your instances, including which applications to install, which AWS Directory -// Service directory to join, which Microsoft PowerShell modules to install, -// etc. If an instance is missing one or more of these configurations, the system -// makes those changes. By default, the system checks every five minutes to -// see if there is a new configuration to apply as defined in a new SSM document. -// If so, the system updates the instances accordingly. In this way, you can -// remotely maintain a consistent configuration baseline on your instances. -// SSM Config is available using the AWS CLI or the AWS Tools for Windows PowerShell. -// For more information, see Managing Windows Instance Configuration (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-configuration-manage.html). -// -// SSM Config and SSM Run Command include the following pre-defined documents. -// -// Linux -// -// AWS-RunShellScript to run shell scripts -// -// AWS-UpdateSSMAgent to update the Amazon SSM agent -// -// Windows -// -// AWS-JoinDirectoryServiceDomain to join an AWS Directory -// -// AWS-RunPowerShellScript to run PowerShell commands or scripts -// -// AWS-UpdateEC2Config to update the EC2Config service -// -// AWS-ConfigureWindowsUpdate to configure Windows Update settings -// -// AWS-InstallApplication to install, repair, or uninstall software using -// an MSI package -// -// AWS-InstallPowerShellModule to install PowerShell modules -// -// AWS-ConfigureCloudWatch to configure Amazon CloudWatch Logs to monitor -// applications and systems -// -// AWS-ListWindowsInventory to collect information about an EC2 instance -// running in Windows. -// -// AWS-FindWindowsUpdates to scan an instance and determines which updates -// are missing. -// -// AWS-InstallMissingWindowsUpdates to install missing updates on your EC2 -// instance. -// -// AWS-InstallSpecificWindowsUpdates to install one or more specific updates. -// -// The commands or scripts specified in SSM documents run with administrative -// privilege on your instances because the Amazon SSM agent runs as root on -// Linux and the EC2Config service runs in the Local System account on Windows. -// If a user has permission to execute any of the pre-defined SSM documents -// (any document that begins with AWS-*) then that user also has administrator -// access to the instance. Delegate access to SSM and Run Command judiciously. -// This becomes extremely important if you create your own SSM documents. Amazon -// Web Services does not provide guidance about how to create secure SSM documents. -// You create SSM documents and delegate access to Run Command at your own risk. -// As a security best practice, we recommend that you assign access to "AWS-*" -// documents, especially the AWS-RunShellScript document on Linux and the AWS-RunPowerShellScript -// document on Windows, to trusted administrators only. You can create SSM documents -// for specific tasks and delegate access to non-administrators. -// -// For information about creating and sharing SSM documents, see the following -// topics in the SSM User Guide: -// -// Creating SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-ssm-doc.html) -// and Sharing SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssm-sharing.html) -// (Linux) -// -// Creating SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/create-ssm-doc.html) -// and Sharing SSM Documents (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ssm-sharing.html) -// (Windows) -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// Note that configuration documents are not supported on Linux instances. type SSM struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "ssm" - -// New creates a new instance of the SSM client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a SSM client from just a session. -// svc := ssm.New(mySession) -// -// // Create a SSM client with additional configuration -// svc := ssm.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *SSM { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SSM { - svc := &SSM{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2014-11-06", - JSONVersion: "1.1", - TargetPrefix: "AmazonSSM", - }, - handlers, - ), +// New returns a new SSM client. +func New(config *aws.Config) *SSM { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "ssm", + APIVersion: "2014-11-06", + JSONVersion: "1.1", + TargetPrefix: "AmazonSSM", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &SSM{service} } // newRequest creates a new request for a SSM operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go index 5d7dd2f70..4bf27836c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface.go @@ -10,10 +10,6 @@ import ( // SSMAPI is the interface type for ssm.SSM. type SSMAPI interface { - CancelCommandRequest(*ssm.CancelCommandInput) (*request.Request, *ssm.CancelCommandOutput) - - CancelCommand(*ssm.CancelCommandInput) (*ssm.CancelCommandOutput, error) - CreateAssociationRequest(*ssm.CreateAssociationInput) (*request.Request, *ssm.CreateAssociationOutput) CreateAssociation(*ssm.CreateAssociationInput) (*ssm.CreateAssociationOutput, error) @@ -42,14 +38,6 @@ type SSMAPI interface { DescribeDocument(*ssm.DescribeDocumentInput) (*ssm.DescribeDocumentOutput, error) - DescribeDocumentPermissionRequest(*ssm.DescribeDocumentPermissionInput) (*request.Request, *ssm.DescribeDocumentPermissionOutput) - - DescribeDocumentPermission(*ssm.DescribeDocumentPermissionInput) (*ssm.DescribeDocumentPermissionOutput, error) - - DescribeInstanceInformationRequest(*ssm.DescribeInstanceInformationInput) (*request.Request, *ssm.DescribeInstanceInformationOutput) - - DescribeInstanceInformation(*ssm.DescribeInstanceInformationInput) (*ssm.DescribeInstanceInformationOutput, error) - GetDocumentRequest(*ssm.GetDocumentInput) (*request.Request, *ssm.GetDocumentOutput) GetDocument(*ssm.GetDocumentInput) (*ssm.GetDocumentOutput, error) @@ -58,37 +46,11 @@ type SSMAPI interface { ListAssociations(*ssm.ListAssociationsInput) (*ssm.ListAssociationsOutput, error) - ListAssociationsPages(*ssm.ListAssociationsInput, func(*ssm.ListAssociationsOutput, bool) bool) error - - ListCommandInvocationsRequest(*ssm.ListCommandInvocationsInput) (*request.Request, *ssm.ListCommandInvocationsOutput) - - ListCommandInvocations(*ssm.ListCommandInvocationsInput) (*ssm.ListCommandInvocationsOutput, error) - - ListCommandInvocationsPages(*ssm.ListCommandInvocationsInput, func(*ssm.ListCommandInvocationsOutput, bool) bool) error - - ListCommandsRequest(*ssm.ListCommandsInput) (*request.Request, *ssm.ListCommandsOutput) - - ListCommands(*ssm.ListCommandsInput) (*ssm.ListCommandsOutput, error) - - ListCommandsPages(*ssm.ListCommandsInput, func(*ssm.ListCommandsOutput, bool) bool) error - ListDocumentsRequest(*ssm.ListDocumentsInput) (*request.Request, *ssm.ListDocumentsOutput) ListDocuments(*ssm.ListDocumentsInput) (*ssm.ListDocumentsOutput, error) - ListDocumentsPages(*ssm.ListDocumentsInput, func(*ssm.ListDocumentsOutput, bool) bool) error - - ModifyDocumentPermissionRequest(*ssm.ModifyDocumentPermissionInput) (*request.Request, *ssm.ModifyDocumentPermissionOutput) - - ModifyDocumentPermission(*ssm.ModifyDocumentPermissionInput) (*ssm.ModifyDocumentPermissionOutput, error) - - SendCommandRequest(*ssm.SendCommandInput) (*request.Request, *ssm.SendCommandOutput) - - SendCommand(*ssm.SendCommandInput) (*ssm.SendCommandOutput, error) - UpdateAssociationStatusRequest(*ssm.UpdateAssociationStatusInput) (*request.Request, *ssm.UpdateAssociationStatusOutput) UpdateAssociationStatus(*ssm.UpdateAssociationStatusInput) (*ssm.UpdateAssociationStatusOutput, error) } - -var _ SSMAPI = (*ssm.SSM)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface_test.go new file mode 100644 index 000000000..2fdd2fe2f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package ssmiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/ssm" + "github.com/aws/aws-sdk-go/service/ssm/ssmiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*ssmiface.SSMAPI)(nil), ssm.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go index fc39179d3..38d125dab 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/api.go @@ -4,7 +4,6 @@ package storagegateway import ( - "fmt" "time" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -31,13 +30,13 @@ func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (re return } -// Activates the gateway you previously deployed on your host. For more information, -// see Activate the AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/GettingStartedActivateGateway-common.html). -// In the activation process, you specify information such as the you want to -// use for storing snapshots, the time zone for scheduled snapshots the gateway -// snapshot schedule window, an activation key, and a name for your gateway. -// The activation process also associates your gateway with your account; for -// more information, see UpdateGatewayInformation. +// This operation activates the gateway you previously deployed on your host. +// For more information, see Activate the AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/GettingStartedActivateGateway-common.html). +// In the activation process, you specify information such as the region you +// want to use for storing snapshots, the time zone for scheduled snapshots +// the gateway snapshot schedule window, an activation key, and a name for your +// gateway. The activation process also associates your gateway with your account; +// for more information, see UpdateGatewayInformation. // // You must turn on the gateway VM before you can activate your gateway. func (c *StorageGateway) ActivateGateway(input *ActivateGatewayInput) (*ActivateGatewayOutput, error) { @@ -66,9 +65,9 @@ func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Req return } -// Configures one or more gateway local disks as cache for a cached-volume gateway. -// This operation is supported only for the gateway-cached volume architecture -// (see Storage Gateway Concepts (http://docs.aws.amazon.com/storagegateway/latest/userguide/StorageGatewayConcepts.html)). +// This operation configures one or more gateway local disks as cache for a +// cached-volume gateway. This operation is supported only for the gateway-cached +// volume architecture (see Storage Gateway Concepts (http://docs.aws.amazon.com/storagegateway/latest/userguide/StorageGatewayConcepts.html)). // // In the request, you specify the gateway Amazon Resource Name (ARN) to which // you want to add cache, and one or more disk IDs that you want to configure @@ -79,46 +78,6 @@ func (c *StorageGateway) AddCache(input *AddCacheInput) (*AddCacheOutput, error) return out, err } -const opAddTagsToResource = "AddTagsToResource" - -// AddTagsToResourceRequest generates a request for the AddTagsToResource operation. -func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) { - op := &request.Operation{ - Name: opAddTagsToResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &AddTagsToResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &AddTagsToResourceOutput{} - req.Data = output - return -} - -// Adds one or more tags to the specified resource. You use tags to add metadata -// to resources, which you can use to categorize these resources. For example, -// you can categorize resources by purpose, owner, environment, or team. Each -// tag consists of a key and a value, which you define. You can add tags to -// the following AWS Storage Gateway resources: -// -// Storage gateways of all types -// -// Storage Volumes -// -// Virtual Tapes -// -// You can create a maximum of 10 tags for each resource. Virtual tapes and -// storage volumes that are recovered to a new gateway maintain their tags. -func (c *StorageGateway) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { - req, out := c.AddTagsToResourceRequest(input) - err := req.Send() - return out, err -} - const opAddUploadBuffer = "AddUploadBuffer" // AddUploadBufferRequest generates a request for the AddUploadBuffer operation. @@ -139,11 +98,11 @@ func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (re return } -// Configures one or more gateway local disks as upload buffer for a specified -// gateway. This operation is supported for both the gateway-stored and gateway-cached -// volume architectures. +// This operation configures one or more gateway local disks as upload buffer +// for a specified gateway. This operation is supported for both the gateway-stored +// and gateway-cached volume architectures. // -// In the request, you specify the gateway Amazon Resource Name (ARN) to which +// In the request, you specify the gateway Amazon Resource Name (ARN) to which // you want to add upload buffer, and one or more disk IDs that you want to // configure as upload buffer. func (c *StorageGateway) AddUploadBuffer(input *AddUploadBufferInput) (*AddUploadBufferOutput, error) { @@ -172,15 +131,15 @@ func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) return } -// Configures one or more gateway local disks as working storage for a gateway. -// This operation is supported only for the gateway-stored volume architecture. -// This operation is deprecated in cached-volumes API version 20120630. Use -// AddUploadBuffer instead. +// This operation configures one or more gateway local disks as working storage +// for a gateway. This operation is supported only for the gateway-stored volume +// architecture. This operation is deprecated method in cached-volumes API version +// (20120630). Use AddUploadBuffer instead. // -// Working storage is also referred to as upload buffer. You can also use -// the AddUploadBuffer operation to add upload buffer to a stored-volume gateway. +// Working storage is also referred to as upload buffer. You can also use the +// AddUploadBuffer operation to add upload buffer to a stored-volume gateway. // -// In the request, you specify the gateway Amazon Resource Name (ARN) to which +// In the request, you specify the gateway Amazon Resource Name (ARN) to which // you want to add working storage, and one or more disk IDs that you want to // configure as working storage. func (c *StorageGateway) AddWorkingStorage(input *AddWorkingStorageInput) (*AddWorkingStorageOutput, error) { @@ -266,18 +225,17 @@ func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSI return } -// Creates a cached volume on a specified cached gateway. This operation is -// supported only for the gateway-cached volume architecture. +// This operation creates a cached volume on a specified cached gateway. This +// operation is supported only for the gateway-cached volume architecture. // // Cache storage must be allocated to the gateway before you can create a cached -// volume. Use the AddCache operation to add cache storage to a gateway. -// -// In the request, you must specify the gateway, size of the volume in bytes, -// the iSCSI target name, an IP address on which to expose the target, and a -// unique client token. In response, AWS Storage Gateway creates the volume -// and returns information about it such as the volume Amazon Resource Name -// (ARN), its size, and the iSCSI target ARN that initiators can use to connect -// to the volume target. +// volume. Use the AddCache operation to add cache storage to a gateway. In +// the request, you must specify the gateway, size of the volume in bytes, the +// iSCSI target name, an IP address on which to expose the target, and a unique +// client token. In response, AWS Storage Gateway creates the volume and returns +// information about it such as the volume Amazon Resource Name (ARN), its size, +// and the iSCSI target ARN that initiators can use to connect to the volume +// target. func (c *StorageGateway) CreateCachediSCSIVolume(input *CreateCachediSCSIVolumeInput) (*CreateCachediSCSIVolumeOutput, error) { req, out := c.CreateCachediSCSIVolumeRequest(input) err := req.Send() @@ -304,7 +262,7 @@ func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req return } -// Initiates a snapshot of a volume. +// This operation initiates a snapshot of a volume. // // AWS Storage Gateway provides the ability to back up point-in-time snapshots // of your data to Amazon Simple Storage (S3) for durable off-site recovery, @@ -325,10 +283,6 @@ func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req // To list or delete a snapshot, you must use the Amazon EC2 API. For more // information, see DescribeSnapshots or DeleteSnapshot in the EC2 API reference // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Operations.html). -// -// Volume and snapshot IDs are changing to a longer length ID format. For -// more information, see the important note on the Welcome (http://docs.aws.amazon.com/storagegateway/latest/APIReference/Welcome.html) -// page. func (c *StorageGateway) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -355,8 +309,9 @@ func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *Cre return } -// Initiates a snapshot of a gateway from a volume recovery point. This operation -// is supported only for the gateway-cached volume architecture. +// This operation initiates a snapshot of a gateway from a volume recovery point. +// This operation is supported only for the gateway-cached volume architecture +// (see ). // // A volume recovery point is a point in time at which all data of the volume // is consistent and from which you can create a snapshot. To get a list of @@ -398,8 +353,8 @@ func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSI return } -// Creates a volume on a specified gateway. This operation is supported only -// for the gateway-stored volume architecture. +// This operation creates a volume on a specified gateway. This operation is +// supported only for the gateway-stored volume architecture. // // The size of the volume to create is inferred from the disk size. You can // choose to preserve existing data on the disk, create volume from an existing @@ -417,37 +372,6 @@ func (c *StorageGateway) CreateStorediSCSIVolume(input *CreateStorediSCSIVolumeI return out, err } -const opCreateTapeWithBarcode = "CreateTapeWithBarcode" - -// CreateTapeWithBarcodeRequest generates a request for the CreateTapeWithBarcode operation. -func (c *StorageGateway) CreateTapeWithBarcodeRequest(input *CreateTapeWithBarcodeInput) (req *request.Request, output *CreateTapeWithBarcodeOutput) { - op := &request.Operation{ - Name: opCreateTapeWithBarcode, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateTapeWithBarcodeInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateTapeWithBarcodeOutput{} - req.Data = output - return -} - -// Creates a virtual tape by using your own barcode. You write data to the virtual -// tape and then archive the tape. -// -// Cache storage must be allocated to the gateway before you can create a virtual -// tape. Use the AddCache operation to add cache storage to a gateway. -func (c *StorageGateway) CreateTapeWithBarcode(input *CreateTapeWithBarcodeInput) (*CreateTapeWithBarcodeOutput, error) { - req, out := c.CreateTapeWithBarcodeRequest(input) - err := req.Send() - return out, err -} - const opCreateTapes = "CreateTapes" // CreateTapesRequest generates a request for the CreateTapes operation. @@ -499,11 +423,11 @@ func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthR return } -// Deletes the bandwidth rate limits of a gateway. You can delete either the -// upload and download bandwidth rate limit, or you can delete both. If you -// delete only one of the limits, the other limit remains unchanged. To specify -// which gateway to work with, use the Amazon Resource Name (ARN) of the gateway -// in your request. +// This operation deletes the bandwidth rate limits of a gateway. You can delete +// either the upload and download bandwidth rate limit, or you can delete both. +// If you delete only one of the limits, the other limit remains unchanged. +// To specify which gateway to work with, use the Amazon Resource Name (ARN) +// of the gateway in your request. func (c *StorageGateway) DeleteBandwidthRateLimit(input *DeleteBandwidthRateLimitInput) (*DeleteBandwidthRateLimitOutput, error) { req, out := c.DeleteBandwidthRateLimitRequest(input) err := req.Send() @@ -530,8 +454,8 @@ func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentia return } -// Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for -// a specified iSCSI target and initiator pair. +// This operation deletes Challenge-Handshake Authentication Protocol (CHAP) +// credentials for a specified iSCSI target and initiator pair. func (c *StorageGateway) DeleteChapCredentials(input *DeleteChapCredentialsInput) (*DeleteChapCredentialsOutput, error) { req, out := c.DeleteChapCredentialsRequest(input) err := req.Send() @@ -558,10 +482,10 @@ func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *r return } -// Deletes a gateway. To specify which gateway to delete, use the Amazon Resource -// Name (ARN) of the gateway in your request. The operation deletes the gateway; -// however, it does not delete the gateway virtual machine (VM) from your host -// computer. +// This operation deletes a gateway. To specify which gateway to delete, use +// the Amazon Resource Name (ARN) of the gateway in your request. The operation +// deletes the gateway; however, it does not delete the gateway virtual machine +// (VM) from your host computer. // // After you delete a gateway, you cannot reactivate it. Completed snapshots // of the gateway volumes are not deleted upon deleting the gateway, however, @@ -600,11 +524,11 @@ func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotSche return } -// Deletes a snapshot of a volume. +// This operation deletes a snapshot of a volume. // -// You can take snapshots of your gateway volumes on a scheduled or ad hoc -// basis. This API action enables you to delete a snapshot schedule for a volume. -// For more information, see Working with Snapshots (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html). +// You can take snapshots of your gateway volumes on a scheduled or ad-hoc +// basis. This API enables you to delete a snapshot schedule for a volume. For +// more information, see Working with Snapshots (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html). // In the DeleteSnapshotSchedule request, you identify the volume by providing // its Amazon Resource Name (ARN). // @@ -690,10 +614,10 @@ func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *req return } -// Deletes the specified gateway volume that you previously created using the -// CreateCachediSCSIVolume or CreateStorediSCSIVolume API. For gateway-stored -// volumes, the local disk that was configured as the storage volume is not -// deleted. You can reuse the local disk to create another storage volume. +// This operation delete the specified gateway volume that you previously created +// using the CreateStorediSCSIVolume API. For gateway-stored volumes, the local +// disk that was configured as the storage volume is not deleted. You can reuse +// the local disk to create another storage volume. // // Before you delete a gateway volume, make sure there are no iSCSI connections // to the volume you are deleting. You should also make sure there is no snapshot @@ -730,8 +654,8 @@ func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwi return } -// Returns the bandwidth rate limits of a gateway. By default, these limits -// are not set, which means no bandwidth rate limiting is in effect. +// This operation returns the bandwidth rate limits of a gateway. By default, +// these limits are not set, which means no bandwidth rate limiting is in effect. // // This operation only returns a value for a bandwidth rate limit only if the // limit is set. If no limits are set for the gateway, then this operation returns @@ -763,10 +687,10 @@ func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *r return } -// Returns information about the cache of a gateway. This operation is supported -// only for the gateway-cached volume architecture. +// This operation returns information about the cache of a gateway. This operation +// is supported only for the gateway-cached volume architecture. // -// The response includes disk IDs that are configured as cache, and it includes +// The response includes disk IDs that are configured as cache, and it includes // the amount of cache allocated and used. func (c *StorageGateway) DescribeCache(input *DescribeCacheInput) (*DescribeCacheOutput, error) { req, out := c.DescribeCacheRequest(input) @@ -794,10 +718,11 @@ func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCached return } -// Returns a description of the gateway volumes specified in the request. This -// operation is supported only for the gateway-cached volume architecture. +// This operation returns a description of the gateway volumes specified in +// the request. This operation is supported only for the gateway-cached volume +// architecture. // -// The list of gateway volumes in the request must be from one gateway. In +// The list of gateway volumes in the request must be from one gateway. In // the response Amazon Storage Gateway returns volume information sorted by // volume Amazon Resource Name (ARN). func (c *StorageGateway) DescribeCachediSCSIVolumes(input *DescribeCachediSCSIVolumesInput) (*DescribeCachediSCSIVolumesOutput, error) { @@ -826,8 +751,9 @@ func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCrede return } -// Returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials -// information for a specified iSCSI target, one for each target-initiator pair. +// This operation returns an array of Challenge-Handshake Authentication Protocol +// (CHAP) credentials information for a specified iSCSI target, one for each +// target-initiator pair. func (c *StorageGateway) DescribeChapCredentials(input *DescribeChapCredentialsInput) (*DescribeChapCredentialsOutput, error) { req, out := c.DescribeChapCredentialsRequest(input) err := req.Send() @@ -854,10 +780,10 @@ func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewa return } -// Returns metadata about a gateway such as its name, network interfaces, configured -// time zone, and the state (whether the gateway is running or not). To specify -// which gateway to describe, use the Amazon Resource Name (ARN) of the gateway -// in your request. +// This operation returns metadata about a gateway such as its name, network +// interfaces, configured time zone, and the state (whether the gateway is running +// or not). To specify which gateway to describe, use the Amazon Resource Name +// (ARN) of the gateway in your request. func (c *StorageGateway) DescribeGatewayInformation(input *DescribeGatewayInformationInput) (*DescribeGatewayInformationOutput, error) { req, out := c.DescribeGatewayInformationRequest(input) err := req.Send() @@ -884,8 +810,9 @@ func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMain return } -// Returns your gateway's weekly maintenance start time including the day and -// time of the week. Note that values are in terms of the gateway's time zone. +// This operation returns your gateway's weekly maintenance start time including +// the day and time of the week. Note that values are in terms of the gateway's +// time zone. func (c *StorageGateway) DescribeMaintenanceStartTime(input *DescribeMaintenanceStartTimeInput) (*DescribeMaintenanceStartTimeOutput, error) { req, out := c.DescribeMaintenanceStartTimeRequest(input) err := req.Send() @@ -912,9 +839,9 @@ func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshot return } -// Describes the snapshot schedule for the specified gateway volume. The snapshot -// schedule information includes intervals at which snapshots are automatically -// initiated on the volume. +// This operation describes the snapshot schedule for the specified gateway +// volume. The snapshot schedule information includes intervals at which snapshots +// are automatically initiated on the volume. func (c *StorageGateway) DescribeSnapshotSchedule(input *DescribeSnapshotScheduleInput) (*DescribeSnapshotScheduleOutput, error) { req, out := c.DescribeSnapshotScheduleRequest(input) err := req.Send() @@ -941,10 +868,10 @@ func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStored return } -// Returns the description of the gateway volumes specified in the request. -// The list of gateway volumes in the request must be from one gateway. In the -// response Amazon Storage Gateway returns volume information sorted by volume -// ARNs. +// This operation returns the description of the gateway volumes specified in +// the request. The list of gateway volumes in the request must be from one +// gateway. In the response Amazon Storage Gateway returns volume information +// sorted by volume ARNs. func (c *StorageGateway) DescribeStorediSCSIVolumes(input *DescribeStorediSCSIVolumesInput) (*DescribeStorediSCSIVolumesOutput, error) { req, out := c.DescribeStorediSCSIVolumesRequest(input) err := req.Send() @@ -990,7 +917,6 @@ func (c *StorageGateway) DescribeTapeArchives(input *DescribeTapeArchivesInput) func (c *StorageGateway) DescribeTapeArchivesPages(input *DescribeTapeArchivesInput, fn func(p *DescribeTapeArchivesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeTapeArchivesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeTapeArchivesOutput), lastPage) }) @@ -1025,7 +951,7 @@ func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRe // Returns a list of virtual tape recovery points that are available for the // specified gateway-VTL. // -// A recovery point is a point-in-time view of a virtual tape at which all +// A recovery point is a point in time view of a virtual tape at which all // the data on the virtual tape is consistent. If your gateway crashes, virtual // tapes that have recovery points can be recovered to a new gateway. func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryPointsInput) (*DescribeTapeRecoveryPointsOutput, error) { @@ -1036,7 +962,6 @@ func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryP func (c *StorageGateway) DescribeTapeRecoveryPointsPages(input *DescribeTapeRecoveryPointsInput, fn func(p *DescribeTapeRecoveryPointsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeTapeRecoveryPointsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeTapeRecoveryPointsOutput), lastPage) }) @@ -1079,7 +1004,6 @@ func (c *StorageGateway) DescribeTapes(input *DescribeTapesInput) (*DescribeTape func (c *StorageGateway) DescribeTapesPages(input *DescribeTapesInput, fn func(p *DescribeTapesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeTapesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeTapesOutput), lastPage) }) @@ -1105,10 +1029,11 @@ func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBuffer return } -// Returns information about the upload buffer of a gateway. This operation -// is supported for both the gateway-stored and gateway-cached volume architectures. +// This operation returns information about the upload buffer of a gateway. +// This operation is supported for both the gateway-stored and gateway-cached +// volume architectures. // -// The response includes disk IDs that are configured as upload buffer space, +// The response includes disk IDs that are configured as upload buffer space, // and it includes the amount of upload buffer space allocated and used. func (c *StorageGateway) DescribeUploadBuffer(input *DescribeUploadBufferInput) (*DescribeUploadBufferOutput, error) { req, out := c.DescribeUploadBufferRequest(input) @@ -1154,7 +1079,6 @@ func (c *StorageGateway) DescribeVTLDevices(input *DescribeVTLDevicesInput) (*De func (c *StorageGateway) DescribeVTLDevicesPages(input *DescribeVTLDevicesInput, fn func(p *DescribeVTLDevicesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeVTLDevicesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeVTLDevicesOutput), lastPage) }) @@ -1180,17 +1104,16 @@ func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingSto return } -// Returns information about the working storage of a gateway. This operation -// is supported only for the gateway-stored volume architecture. This operation -// is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer -// instead. +// This operation returns information about the working storage of a gateway. +// This operation is supported only for the gateway-stored volume architecture. +// This operation is deprecated in cached-volumes API version (20120630). Use +// DescribeUploadBuffer instead. // -// Working storage is also referred to as upload buffer. You can also use -// the DescribeUploadBuffer operation to add upload buffer to a stored-volume -// gateway. +// Working storage is also referred to as upload buffer. You can also use the +// DescribeUploadBuffer operation to add upload buffer to a stored-volume gateway. // -// The response includes disk IDs that are configured as working storage, -// and it includes the amount of working storage allocated and used. +// The response includes disk IDs that are configured as working storage, and +// it includes the amount of working storage allocated and used. func (c *StorageGateway) DescribeWorkingStorage(input *DescribeWorkingStorageInput) (*DescribeWorkingStorageOutput, error) { req, out := c.DescribeWorkingStorageRequest(input) err := req.Send() @@ -1256,17 +1179,17 @@ func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *req return } -// Lists gateways owned by an AWS account in a region specified in the request. -// The returned list is ordered by gateway Amazon Resource Name (ARN). +// This operation lists gateways owned by an AWS account in a region specified +// in the request. The returned list is ordered by gateway Amazon Resource Name +// (ARN). // // By default, the operation returns a maximum of 100 gateways. This operation // supports pagination that allows you to optionally reduce the number of gateways // returned in a response. // -// If you have more gateways than are returned in a response (that is, the -// response returns only a truncated list of your gateways), the response contains -// a marker that you can specify in your next request to fetch the next page -// of gateways. +// If you have more gateways than are returned in a response-that is, the response +// returns only a truncated list of your gateways-the response contains a marker +// that you can specify in your next request to fetch the next page of gateways. func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error) { req, out := c.ListGatewaysRequest(input) err := req.Send() @@ -1275,7 +1198,6 @@ func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOu func (c *StorageGateway) ListGatewaysPages(input *ListGatewaysInput, fn func(p *ListGatewaysOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListGatewaysRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListGatewaysOutput), lastPage) }) @@ -1301,9 +1223,9 @@ func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req return } -// Returns a list of the gateway's local disks. To specify which gateway to -// describe, you use the Amazon Resource Name (ARN) of the gateway in the body -// of the request. +// This operation returns a list of the gateway's local disks. To specify which +// gateway to describe, you use the Amazon Resource Name (ARN) of the gateway +// in the body of the request. // // The request returns a list of all disks, specifying which are configured // as working storage, cache storage, or stored volume or not configured at @@ -1317,70 +1239,6 @@ func (c *StorageGateway) ListLocalDisks(input *ListLocalDisksInput) (*ListLocalD return out, err } -const opListTagsForResource = "ListTagsForResource" - -// ListTagsForResourceRequest generates a request for the ListTagsForResource operation. -func (c *StorageGateway) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { - op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListTagsForResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTagsForResourceOutput{} - req.Data = output - return -} - -// Lists the tags that have been added to the specified resource. -func (c *StorageGateway) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) - err := req.Send() - return out, err -} - -const opListTapes = "ListTapes" - -// ListTapesRequest generates a request for the ListTapes operation. -func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.Request, output *ListTapesOutput) { - op := &request.Operation{ - Name: opListTapes, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListTapesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListTapesOutput{} - req.Data = output - return -} - -// Lists virtual tapes in your virtual tape library (VTL) and your virtual tape -// shelf (VTS). You specify the tapes to list by specifying one or more tape -// Amazon Resource Names (ARNs). If you don't specify a tape ARN, the operation -// lists all virtual tapes in both your VTL and VTS. -// -// This operation supports pagination. By default, the operation returns a -// maximum of up to 100 tapes. You can optionally specify the Limit parameter -// in the body to limit the number of tapes in the response. If the number of -// tapes returned in the response is truncated, the response includes a Marker -// element that you can use in your subsequent request to retrieve the next -// set of tapes. -func (c *StorageGateway) ListTapes(input *ListTapesInput) (*ListTapesOutput, error) { - req, out := c.ListTapesRequest(input) - err := req.Send() - return out, err -} - const opListVolumeInitiators = "ListVolumeInitiators" // ListVolumeInitiatorsRequest generates a request for the ListVolumeInitiators operation. @@ -1401,8 +1259,8 @@ func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiators return } -// Lists iSCSI initiators that are connected to a volume. You can use this operation -// to determine whether a volume is being used or not. +// This operation lists iSCSI initiators that are connected to a volume. You +// can use this operation to determine whether a volume is being used or not. func (c *StorageGateway) ListVolumeInitiators(input *ListVolumeInitiatorsInput) (*ListVolumeInitiatorsOutput, error) { req, out := c.ListVolumeInitiatorsRequest(input) err := req.Send() @@ -1429,8 +1287,8 @@ func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecove return } -// Lists the recovery points for a specified gateway. This operation is supported -// only for the gateway-cached volume architecture. +// This operation lists the recovery points for a specified gateway. This operation +// is supported only for the gateway-cached volume architecture. // // Each gateway-cached volume has one recovery point. A volume recovery point // is a point in time at which all data of the volume is consistent and from @@ -1468,9 +1326,9 @@ func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *reque return } -// Lists the iSCSI stored volumes of a gateway. Results are sorted by volume -// ARN. The response includes only the volume ARNs. If you want additional volume -// information, use the DescribeStorediSCSIVolumes API. +// This operation lists the iSCSI stored volumes of a gateway. Results are sorted +// by volume ARN. The response includes only the volume ARNs. If you want additional +// volume information, use the DescribeStorediSCSIVolumes API. // // The operation supports pagination. By default, the operation returns a maximum // of up to 100 volumes. You can optionally specify the Limit field in the body @@ -1486,39 +1344,11 @@ func (c *StorageGateway) ListVolumes(input *ListVolumesInput) (*ListVolumesOutpu func (c *StorageGateway) ListVolumesPages(input *ListVolumesInput, fn func(p *ListVolumesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListVolumesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListVolumesOutput), lastPage) }) } -const opRemoveTagsFromResource = "RemoveTagsFromResource" - -// RemoveTagsFromResourceRequest generates a request for the RemoveTagsFromResource operation. -func (c *StorageGateway) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { - op := &request.Operation{ - Name: opRemoveTagsFromResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RemoveTagsFromResourceInput{} - } - - req = c.newRequest(op, input, output) - output = &RemoveTagsFromResourceOutput{} - req.Data = output - return -} - -// Removes one or more tags from the specified resource. -func (c *StorageGateway) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { - req, out := c.RemoveTagsFromResourceRequest(input) - err := req.Send() - return out, err -} - const opResetCache = "ResetCache" // ResetCacheRequest generates a request for the ResetCache operation. @@ -1539,10 +1369,10 @@ func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request return } -// Resets all cache disks that have encountered a error and makes the disks -// available for reconfiguration as cache storage. If your cache disk encounters -// a error, the gateway prevents read and write operations on virtual tapes -// in the gateway. For example, an error can occur when a disk is corrupted +// This operation resets all cache disks that have encountered a error and makes +// the disks available for reconfiguration as cache storage. If your cache disk +// encounters a error, the gateway prevents read and write operations on virtual +// tapes in the gateway. For example, an error can occur when a disk is corrupted // or removed from the gateway. When a cache is reset, the gateway loses its // cache storage. At this point you can reconfigure the disks as cache disks. // @@ -1625,36 +1455,6 @@ func (c *StorageGateway) RetrieveTapeRecoveryPoint(input *RetrieveTapeRecoveryPo return out, err } -const opSetLocalConsolePassword = "SetLocalConsolePassword" - -// SetLocalConsolePasswordRequest generates a request for the SetLocalConsolePassword operation. -func (c *StorageGateway) SetLocalConsolePasswordRequest(input *SetLocalConsolePasswordInput) (req *request.Request, output *SetLocalConsolePasswordOutput) { - op := &request.Operation{ - Name: opSetLocalConsolePassword, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &SetLocalConsolePasswordInput{} - } - - req = c.newRequest(op, input, output) - output = &SetLocalConsolePasswordOutput{} - req.Data = output - return -} - -// Sets the password for your VM local console. When you log in to the local -// console for the first time, you log in to the VM with the default credentials. -// We recommend that you set a new password. You don't need to know the default -// password to set a new password. -func (c *StorageGateway) SetLocalConsolePassword(input *SetLocalConsolePasswordInput) (*SetLocalConsolePasswordOutput, error) { - req, out := c.SetLocalConsolePasswordRequest(input) - err := req.Send() - return out, err -} - const opShutdownGateway = "ShutdownGateway" // ShutdownGatewayRequest generates a request for the ShutdownGateway operation. @@ -1675,16 +1475,15 @@ func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (re return } -// Shuts down a gateway. To specify which gateway to shut down, use the Amazon -// Resource Name (ARN) of the gateway in the body of your request. +// This operation shuts down a gateway. To specify which gateway to shut down, +// use the Amazon Resource Name (ARN) of the gateway in the body of your request. // // The operation shuts down the gateway service component running in the storage // gateway's virtual machine (VM) and not the VM. // // If you want to shut down the VM, it is recommended that you first shut down -// the gateway component in the VM to avoid unpredictable conditions. -// -// After the gateway is shutdown, you cannot call any other API except StartGateway, +// the gateway component in the VM to avoid unpredictable conditions. After +// the gateway is shutdown, you cannot call any other API except StartGateway, // DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway. // Your applications cannot read from or write to the gateway's storage volumes, // and there are no snapshots taken. @@ -1692,11 +1491,9 @@ func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (re // When you make a shutdown request, you will get a 200 OK success response // immediately. However, it might take some time for the gateway to shut down. // You can call the DescribeGatewayInformation API to check the status. For -// more information, see ActivateGateway. -// -// If do not intend to use the gateway again, you must delete the gateway -// (using DeleteGateway) to no longer pay software charges associated with the -// gateway. +// more information, see ActivateGateway. If do not intend to use the gateway +// again, you must delete the gateway (using DeleteGateway) to no longer pay +// software charges associated with the gateway. func (c *StorageGateway) ShutdownGateway(input *ShutdownGatewayInput) (*ShutdownGatewayOutput, error) { req, out := c.ShutdownGatewayRequest(input) err := req.Send() @@ -1723,18 +1520,16 @@ func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *req return } -// Starts a gateway that you previously shut down (see ShutdownGateway). After -// the gateway starts, you can then make other API calls, your applications +// This operation starts a gateway that you previously shut down (see ShutdownGateway). +// After the gateway starts, you can then make other API calls, your applications // can read from or write to the gateway's storage volumes and you will be able // to take snapshot backups. // // When you make a request, you will get a 200 OK success response immediately. // However, it might take some time for the gateway to be ready. You should // call DescribeGatewayInformation and check the status before making any additional -// API calls. For more information, see ActivateGateway. -// -// To specify which gateway to start, use the Amazon Resource Name (ARN) of -// the gateway in your request. +// API calls. For more information, see ActivateGateway. To specify which gateway +// to start, use the Amazon Resource Name (ARN) of the gateway in your request. func (c *StorageGateway) StartGateway(input *StartGatewayInput) (*StartGatewayOutput, error) { req, out := c.StartGatewayRequest(input) err := req.Send() @@ -1761,9 +1556,10 @@ func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthR return } -// Updates the bandwidth rate limits of a gateway. You can update both the upload -// and download bandwidth rate limit or specify only one of the two. If you -// don't set a bandwidth rate limit, the existing rate limit remains. +// This operation updates the bandwidth rate limits of a gateway. You can update +// both the upload and download bandwidth rate limit or specify only one of +// the two. If you don't set a bandwidth rate limit, the existing rate limit +// remains. // // By default, a gateway's bandwidth rate limits are not set. If you don't // set any limit, the gateway does not have any limitations on its bandwidth @@ -1797,9 +1593,9 @@ func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentia return } -// Updates the Challenge-Handshake Authentication Protocol (CHAP) credentials -// for a specified iSCSI target. By default, a gateway does not have CHAP enabled; -// however, for added security, you might use it. +// This operation updates the Challenge-Handshake Authentication Protocol (CHAP) +// credentials for a specified iSCSI target. By default, a gateway does not +// have CHAP enabled; however, for added security, you might use it. // // When you update CHAP credentials, all existing connections on the target // are closed and initiators must reconnect with the new credentials. @@ -1829,13 +1625,9 @@ func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInf return } -// Updates a gateway's metadata, which includes the gateway's name and time -// zone. To specify which gateway to update, use the Amazon Resource Name (ARN) -// of the gateway in your request. -// -// For Gateways activated after September 2, 2015, the gateway's ARN contains -// the gateway ID rather than the gateway name. However, changing the name of -// the gateway has no effect on the gateway's ARN. +// This operation updates a gateway's metadata, which includes the gateway's +// name and time zone. To specify which gateway to update, use the Amazon Resource +// Name (ARN) of the gateway in your request. func (c *StorageGateway) UpdateGatewayInformation(input *UpdateGatewayInformationInput) (*UpdateGatewayInformationOutput, error) { req, out := c.UpdateGatewayInformationRequest(input) err := req.Send() @@ -1862,19 +1654,17 @@ func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySof return } -// Updates the gateway virtual machine (VM) software. The request immediately -// triggers the software update. +// This operation updates the gateway virtual machine (VM) software. The request +// immediately triggers the software update. // // When you make this request, you get a 200 OK success response immediately. // However, it might take some time for the update to complete. You can call // DescribeGatewayInformation to verify the gateway is in the STATE_RUNNING -// state. -// -// A software update forces a system restart of your gateway. You can minimize -// the chance of any disruption to your applications by increasing your iSCSI -// Initiators' timeouts. For more information about increasing iSCSI Initiator -// timeouts for Windows and Linux, see Customizing Your Windows iSCSI Settings -// (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorWindowsClient.html#CustomizeWindowsiSCSISettings) +// state. A software update forces a system restart of your gateway. You can +// minimize the chance of any disruption to your applications by increasing +// your iSCSI Initiators' timeouts. For more information about increasing iSCSI +// Initiator timeouts for Windows and Linux, see Customizing Your Windows iSCSI +// Settings (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorWindowsClient.html#CustomizeWindowsiSCSISettings) // and Customizing Your Linux iSCSI Settings (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorRedHatClient.html#CustomizeLinuxiSCSISettings), // respectively. func (c *StorageGateway) UpdateGatewaySoftwareNow(input *UpdateGatewaySoftwareNowInput) (*UpdateGatewaySoftwareNowOutput, error) { @@ -1903,9 +1693,9 @@ func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintena return } -// Updates a gateway's weekly maintenance start time information, including -// day and time of the week. The maintenance time is the time in your gateway's -// time zone. +// This operation updates a gateway's weekly maintenance start time information, +// including day and time of the week. The maintenance time is the time in your +// gateway's time zone. func (c *StorageGateway) UpdateMaintenanceStartTime(input *UpdateMaintenanceStartTimeInput) (*UpdateMaintenanceStartTimeOutput, error) { req, out := c.UpdateMaintenanceStartTimeRequest(input) err := req.Send() @@ -1932,7 +1722,7 @@ func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotSche return } -// Updates a snapshot schedule configured for a gateway volume. +// This operation updates a snapshot schedule configured for a gateway volume. // // The default snapshot schedule for volume is once every 24 hours, starting // at the creation time of the volume. You can use this API to change the snapshot @@ -1967,10 +1757,10 @@ func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeIn return } -// Updates the type of medium changer in a gateway-VTL. When you activate a -// gateway-VTL, you select a medium changer type for the gateway-VTL. This operation -// enables you to select a different type of medium changer after a gateway-VTL -// is activated. +// This operation updates the type of medium changer in a gateway-VTL. When +// you activate a gateway-VTL, you select a medium changer type for the gateway-VTL. +// This operation enables you to select a different type of medium changer after +// a gateway-VTL is activated. func (c *StorageGateway) UpdateVTLDeviceType(input *UpdateVTLDeviceTypeInput) (*UpdateVTLDeviceTypeOutput, error) { req, out := c.UpdateVTLDeviceTypeRequest(input) err := req.Send() @@ -1979,22 +1769,10 @@ func (c *StorageGateway) UpdateVTLDeviceType(input *UpdateVTLDeviceTypeInput) (* // A JSON object containing one or more of the following fields: // -// ActivateGatewayInput$ActivationKey -// -// ActivateGatewayInput$GatewayName -// -// ActivateGatewayInput$GatewayRegion -// -// ActivateGatewayInput$GatewayTimezone -// -// ActivateGatewayInput$GatewayType -// -// ActivateGatewayInput$TapeDriveType -// -// ActivateGatewayInput$MediumChangerType +// ActivateGatewayInput$ActivationKey GatewayName ActivateGatewayInput$GatewayRegion +// ActivateGatewayInput$GatewayTimezone ActivateGatewayInput$GatewayType +// ActivateGatewayInput$TapeDriveType ActivateGatewayInput$MediumChangerType type ActivateGatewayInput struct { - _ struct{} `type:"structure"` - // Your gateway activation key. You can obtain the activation key by sending // an HTTP GET request with redirects enabled to the gateway IP address (port // 80). The redirect URL returned in the response provides you the activation @@ -2002,42 +1780,50 @@ type ActivateGatewayInput struct { // also include other activation-related parameters, however, these are merely // defaults -- the arguments you pass to the ActivateGateway API call determine // the actual configuration of your gateway. - ActivationKey *string `min:"1" type:"string" required:"true"` - - // The name you configured for your gateway. - GatewayName *string `min:"2" type:"string" required:"true"` - - // A value that indicates the region where you want to store the snapshot backups. - // The gateway region specified must be the same region as the region in your - // Host header in the request. For more information about available regions - // and endpoints for AWS Storage Gateway, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region) - // in the Amazon Web Services Glossary. + ActivationKey *string `type:"string" required:"true"` + + // A unique identifier for your gateway. This name becomes part of the gateway + // Amazon Resources Name (ARN) which is what you use as an input to other operations. + GatewayName *string `type:"string" required:"true"` + + // One of the values that indicates the region where you want to store the snapshot + // backups. The gateway region specified must be the same region as the region + // in your Host header in the request. For more information about available + // regions and endpoints for AWS Storage Gateway, see Regions and Endpoints + // (http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region) in the + // Amazon Web Services Glossary. // - // Valid Values: "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", - // "ap-northeast-1", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "sa-east-1" - GatewayRegion *string `min:"1" type:"string" required:"true"` + // Valid Values: "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", + // "ap-northeast-1", "ap-southeast-1", "ap-southeast-2", "sa-east-1" + GatewayRegion *string `type:"string" required:"true"` - // A value that indicates the time zone you want to set for the gateway. The - // time zone is used, for example, for scheduling snapshots and your gateway's + // One of the values that indicates the time zone you want to set for the gateway. + // The time zone is used, for example, for scheduling snapshots and your gateway's // maintenance schedule. - GatewayTimezone *string `min:"3" type:"string" required:"true"` + GatewayTimezone *string `type:"string" required:"true"` - // A value that defines the type of gateway to activate. The type specified - // is critical to all later functions of the gateway and cannot be changed after - // activation. The default value is STORED. - GatewayType *string `min:"2" type:"string"` + // One of the values that defines the type of gateway to activate. The type + // specified is critical to all later functions of the gateway and cannot be + // changed after activation. The default value is STORED. + GatewayType *string `type:"string"` // The value that indicates the type of medium changer to use for gateway-VTL. // This field is optional. // - // Valid Values: "STK-L700", "AWS-Gateway-VTL" - MediumChangerType *string `min:"2" type:"string"` + // Valid Values: "STK-L700", "AWS-Gateway-VTL" + MediumChangerType *string `type:"string"` // The value that indicates the type of tape drive to use for gateway-VTL. This // field is optional. // - // Valid Values: "IBM-ULT3580-TD5" - TapeDriveType *string `min:"2" type:"string"` + // Valid Values: "IBM-ULT3580-TD5" + TapeDriveType *string `type:"string"` + + metadataActivateGatewayInput `json:"-" xml:"-"` +} + +type metadataActivateGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2050,63 +1836,20 @@ func (s ActivateGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ActivateGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ActivateGatewayInput"} - if s.ActivationKey == nil { - invalidParams.Add(request.NewErrParamRequired("ActivationKey")) - } - if s.ActivationKey != nil && len(*s.ActivationKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ActivationKey", 1)) - } - if s.GatewayName == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayName")) - } - if s.GatewayName != nil && len(*s.GatewayName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("GatewayName", 2)) - } - if s.GatewayRegion == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayRegion")) - } - if s.GatewayRegion != nil && len(*s.GatewayRegion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GatewayRegion", 1)) - } - if s.GatewayTimezone == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayTimezone")) - } - if s.GatewayTimezone != nil && len(*s.GatewayTimezone) < 3 { - invalidParams.Add(request.NewErrParamMinLen("GatewayTimezone", 3)) - } - if s.GatewayType != nil && len(*s.GatewayType) < 2 { - invalidParams.Add(request.NewErrParamMinLen("GatewayType", 2)) - } - if s.MediumChangerType != nil && len(*s.MediumChangerType) < 2 { - invalidParams.Add(request.NewErrParamMinLen("MediumChangerType", 2)) - } - if s.TapeDriveType != nil && len(*s.TapeDriveType) < 2 { - invalidParams.Add(request.NewErrParamMinLen("TapeDriveType", 2)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // AWS Storage Gateway returns the Amazon Resource Name (ARN) of the activated // gateway. It is a string made of information such as your account, gateway // name, and region. This ARN is used to reference the gateway in other API // operations as well as resource-based authorization. -// -// For gateways activated prior to September 02, 2015 the gateway ARN contains -// the gateway name rather than the gateway id. Changing the name of the gateway -// has no effect on the gateway ARN. type ActivateGatewayOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataActivateGatewayOutput `json:"-" xml:"-"` +} + +type metadataActivateGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2120,13 +1863,17 @@ func (s ActivateGatewayOutput) GoString() string { } type AddCacheInput struct { - _ struct{} `type:"structure"` - DiskIds []*string `type:"list" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataAddCacheInput `json:"-" xml:"-"` +} + +type metadataAddCacheInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2139,123 +1886,40 @@ func (s AddCacheInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddCacheInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddCacheInput"} - if s.DiskIds == nil { - invalidParams.Add(request.NewErrParamRequired("DiskIds")) - } - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type AddCacheOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` -} - -// String returns the string representation -func (s AddCacheOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddCacheOutput) GoString() string { - return s.String() -} - -// AddTagsToResourceInput -type AddTagsToResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource you want to add tags to. - ResourceARN *string `min:"50" type:"string" required:"true"` - - // The key-value pair that represents the tag you want to add to the resource. - // The value can be an empty string. - // - // Valid characters for key and value are letters, spaces, and numbers representable - // in UTF-8 format, and the following special characters: + - = . _ : / @. - Tags []*Tag `type:"list" required:"true"` -} - -// String returns the string representation -func (s AddTagsToResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsToResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"} - if s.ResourceARN == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceARN")) - } - if s.ResourceARN != nil && len(*s.ResourceARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 50)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } + GatewayARN *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataAddCacheOutput `json:"-" xml:"-"` } -// AddTagsToResourceOutput -type AddTagsToResourceOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource you want to add tags to. - ResourceARN *string `min:"50" type:"string"` +type metadataAddCacheOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s AddTagsToResourceOutput) String() string { +func (s AddCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AddTagsToResourceOutput) GoString() string { +func (s AddCacheOutput) GoString() string { return s.String() } type AddUploadBufferInput struct { - _ struct{} `type:"structure"` - DiskIds []*string `type:"list" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataAddUploadBufferInput `json:"-" xml:"-"` +} + +type metadataAddUploadBufferInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2268,31 +1932,16 @@ func (s AddUploadBufferInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddUploadBufferInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddUploadBufferInput"} - if s.DiskIds == nil { - invalidParams.Add(request.NewErrParamRequired("DiskIds")) - } - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type AddUploadBufferOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataAddUploadBufferOutput `json:"-" xml:"-"` +} + +type metadataAddUploadBufferOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2307,10 +1956,8 @@ func (s AddUploadBufferOutput) GoString() string { // A JSON object containing one or more of the following fields: // -// AddWorkingStorageInput$DiskIds +// AddWorkingStorageInput$DiskIds type AddWorkingStorageInput struct { - _ struct{} `type:"structure"` - // An array of strings that identify disks that are to be configured as working // storage. Each string have a minimum length of 1 and maximum length of 300. // You can get the disk IDs from the ListLocalDisks API. @@ -2318,7 +1965,13 @@ type AddWorkingStorageInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataAddWorkingStorageInput `json:"-" xml:"-"` +} + +type metadataAddWorkingStorageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2331,33 +1984,18 @@ func (s AddWorkingStorageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddWorkingStorageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddWorkingStorageInput"} - if s.DiskIds == nil { - invalidParams.Add(request.NewErrParamRequired("DiskIds")) - } - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the of the gateway for which working storage was // configured. type AddWorkingStorageOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataAddWorkingStorageOutput `json:"-" xml:"-"` +} + +type metadataAddWorkingStorageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2371,24 +2009,28 @@ func (s AddWorkingStorageOutput) GoString() string { } type CachediSCSIVolume struct { - _ struct{} `type:"structure"` - SourceSnapshotId *string `type:"string"` - VolumeARN *string `min:"50" type:"string"` + VolumeARN *string `type:"string"` - VolumeId *string `min:"12" type:"string"` + VolumeId *string `type:"string"` VolumeProgress *float64 `type:"double"` VolumeSizeInBytes *int64 `type:"long"` - VolumeStatus *string `min:"3" type:"string"` + VolumeStatus *string `type:"string"` - VolumeType *string `min:"3" type:"string"` + VolumeType *string `type:"string"` // Lists iSCSI information about a volume. VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"` + + metadataCachediSCSIVolume `json:"-" xml:"-"` +} + +type metadataCachediSCSIVolume struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2403,15 +2045,19 @@ func (s CachediSCSIVolume) GoString() string { // CancelArchivalInput type CancelArchivalInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the virtual tape you want to cancel archiving // for. - TapeARN *string `min:"50" type:"string" required:"true"` + TapeARN *string `type:"string" required:"true"` + + metadataCancelArchivalInput `json:"-" xml:"-"` +} + +type metadataCancelArchivalInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2424,35 +2070,17 @@ func (s CancelArchivalInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelArchivalInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelArchivalInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.TapeARN == nil { - invalidParams.Add(request.NewErrParamRequired("TapeARN")) - } - if s.TapeARN != nil && len(*s.TapeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // CancelArchivalOutput type CancelArchivalOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the virtual tape for which archiving was // canceled. - TapeARN *string `min:"50" type:"string"` + TapeARN *string `type:"string"` + + metadataCancelArchivalOutput `json:"-" xml:"-"` +} + +type metadataCancelArchivalOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2467,15 +2095,19 @@ func (s CancelArchivalOutput) GoString() string { // CancelRetrievalInput type CancelRetrievalInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the virtual tape you want to cancel retrieval // for. - TapeARN *string `min:"50" type:"string" required:"true"` + TapeARN *string `type:"string" required:"true"` + + metadataCancelRetrievalInput `json:"-" xml:"-"` +} + +type metadataCancelRetrievalInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2488,35 +2120,17 @@ func (s CancelRetrievalInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelRetrievalInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelRetrievalInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.TapeARN == nil { - invalidParams.Add(request.NewErrParamRequired("TapeARN")) - } - if s.TapeARN != nil && len(*s.TapeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // CancelRetrievalOutput type CancelRetrievalOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the virtual tape for which retrieval was // canceled. - TapeARN *string `min:"50" type:"string"` + TapeARN *string `type:"string"` + + metadataCancelRetrievalOutput `json:"-" xml:"-"` +} + +type metadataCancelRetrievalOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2532,24 +2146,28 @@ func (s CancelRetrievalOutput) GoString() string { // Describes Challenge-Handshake Authentication Protocol (CHAP) information // that supports authentication between your gateway and iSCSI initiators. type ChapInfo struct { - _ struct{} `type:"structure"` - // The iSCSI initiator that connects to the target. - InitiatorName *string `min:"1" type:"string"` + InitiatorName *string `type:"string"` // The secret key that the initiator (for example, the Windows client) must // provide to participate in mutual CHAP with the target. - SecretToAuthenticateInitiator *string `min:"1" type:"string"` + SecretToAuthenticateInitiator *string `type:"string"` // The secret key that the target must provide to participate in mutual CHAP // with the initiator (e.g. Windows client). - SecretToAuthenticateTarget *string `min:"1" type:"string"` + SecretToAuthenticateTarget *string `type:"string"` // The Amazon Resource Name (ARN) of the volume. // - // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens + // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens // (-). - TargetARN *string `min:"50" type:"string"` + TargetARN *string `type:"string"` + + metadataChapInfo `json:"-" xml:"-"` +} + +type metadataChapInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2563,21 +2181,25 @@ func (s ChapInfo) GoString() string { } type CreateCachediSCSIVolumeInput struct { - _ struct{} `type:"structure"` - - ClientToken *string `min:"5" type:"string" required:"true"` + ClientToken *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` NetworkInterfaceId *string `type:"string" required:"true"` SnapshotId *string `type:"string"` - TargetName *string `min:"1" type:"string" required:"true"` + TargetName *string `type:"string" required:"true"` VolumeSizeInBytes *int64 `type:"long" required:"true"` + + metadataCreateCachediSCSIVolumeInput `json:"-" xml:"-"` +} + +type metadataCreateCachediSCSIVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2590,46 +2212,16 @@ func (s CreateCachediSCSIVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCachediSCSIVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCachediSCSIVolumeInput"} - if s.ClientToken == nil { - invalidParams.Add(request.NewErrParamRequired("ClientToken")) - } - if s.ClientToken != nil && len(*s.ClientToken) < 5 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 5)) - } - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.NetworkInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) - } - if s.TargetName == nil { - invalidParams.Add(request.NewErrParamRequired("TargetName")) - } - if s.TargetName != nil && len(*s.TargetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetName", 1)) - } - if s.VolumeSizeInBytes == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeSizeInBytes")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateCachediSCSIVolumeOutput struct { - _ struct{} `type:"structure"` + TargetARN *string `type:"string"` + + VolumeARN *string `type:"string"` - TargetARN *string `min:"50" type:"string"` + metadataCreateCachediSCSIVolumeOutput `json:"-" xml:"-"` +} - VolumeARN *string `min:"50" type:"string"` +type metadataCreateCachediSCSIVolumeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2643,11 +2235,15 @@ func (s CreateCachediSCSIVolumeOutput) GoString() string { } type CreateSnapshotFromVolumeRecoveryPointInput struct { - _ struct{} `type:"structure"` + SnapshotDescription *string `type:"string" required:"true"` + + VolumeARN *string `type:"string" required:"true"` - SnapshotDescription *string `min:"1" type:"string" required:"true"` + metadataCreateSnapshotFromVolumeRecoveryPointInput `json:"-" xml:"-"` +} - VolumeARN *string `min:"50" type:"string" required:"true"` +type metadataCreateSnapshotFromVolumeRecoveryPointInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2660,36 +2256,18 @@ func (s CreateSnapshotFromVolumeRecoveryPointInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSnapshotFromVolumeRecoveryPointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotFromVolumeRecoveryPointInput"} - if s.SnapshotDescription == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotDescription")) - } - if s.SnapshotDescription != nil && len(*s.SnapshotDescription) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SnapshotDescription", 1)) - } - if s.VolumeARN == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeARN")) - } - if s.VolumeARN != nil && len(*s.VolumeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CreateSnapshotFromVolumeRecoveryPointOutput struct { - _ struct{} `type:"structure"` - SnapshotId *string `type:"string"` - VolumeARN *string `min:"50" type:"string"` + VolumeARN *string `type:"string"` VolumeRecoveryPointTime *string `type:"string"` + + metadataCreateSnapshotFromVolumeRecoveryPointOutput `json:"-" xml:"-"` +} + +type metadataCreateSnapshotFromVolumeRecoveryPointOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2704,20 +2282,22 @@ func (s CreateSnapshotFromVolumeRecoveryPointOutput) GoString() string { // A JSON object containing one or more of the following fields: // -// CreateSnapshotInput$SnapshotDescription -// -// CreateSnapshotInput$VolumeARN +// CreateSnapshotInput$SnapshotDescription CreateSnapshotInput$VolumeARN type CreateSnapshotInput struct { - _ struct{} `type:"structure"` - // Textual description of the snapshot that appears in the Amazon EC2 console, // Elastic Block Store snapshots panel in the Description field, and in the // AWS Storage Gateway snapshot Details pane, Description field - SnapshotDescription *string `min:"1" type:"string" required:"true"` + SnapshotDescription *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes. - VolumeARN *string `min:"50" type:"string" required:"true"` + VolumeARN *string `type:"string" required:"true"` + + metadataCreateSnapshotInput `json:"-" xml:"-"` +} + +type metadataCreateSnapshotInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2730,39 +2310,21 @@ func (s CreateSnapshotInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"} - if s.SnapshotDescription == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotDescription")) - } - if s.SnapshotDescription != nil && len(*s.SnapshotDescription) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SnapshotDescription", 1)) - } - if s.VolumeARN == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeARN")) - } - if s.VolumeARN != nil && len(*s.VolumeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the following fields: type CreateSnapshotOutput struct { - _ struct{} `type:"structure"` - // The snapshot ID that is used to refer to the snapshot in future operations // such as describing snapshots (Amazon Elastic Compute Cloud API DescribeSnapshots) // or creating a volume from a snapshot (CreateStorediSCSIVolume). SnapshotId *string `type:"string"` // The Amazon Resource Name (ARN) of the volume of which the snapshot was taken. - VolumeARN *string `min:"50" type:"string"` + VolumeARN *string `type:"string"` + + metadataCreateSnapshotOutput `json:"-" xml:"-"` +} + +type metadataCreateSnapshotOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2777,38 +2339,30 @@ func (s CreateSnapshotOutput) GoString() string { // A JSON object containing one or more of the following fields: // -// CreateStorediSCSIVolumeInput$DiskId -// -// CreateStorediSCSIVolumeInput$NetworkInterfaceId -// -// CreateStorediSCSIVolumeInput$PreserveExistingData -// -// CreateStorediSCSIVolumeInput$SnapshotId -// -// CreateStorediSCSIVolumeInput$TargetName +// CreateStorediSCSIVolumeInput$DiskId CreateStorediSCSIVolumeInput$NetworkInterfaceId +// CreateStorediSCSIVolumeInput$PreserveExistingData CreateStorediSCSIVolumeInput$SnapshotId +// CreateStorediSCSIVolumeInput$TargetName type CreateStorediSCSIVolumeInput struct { - _ struct{} `type:"structure"` - // The unique identifier for the gateway local disk that is configured as a // stored volume. Use ListLocalDisks (http://docs.aws.amazon.com/storagegateway/latest/userguide/API_ListLocalDisks.html) // to list disk IDs for a gateway. - DiskId *string `min:"1" type:"string" required:"true"` + DiskId *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` // The network interface of the gateway on which to expose the iSCSI target. // Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a // list of the network interfaces available on a gateway. // - // Valid Values: A valid IP address. + // Valid Values: A valid IP address. NetworkInterfaceId *string `type:"string" required:"true"` // Specify this field as true if you want to preserve the data on the local // disk. Otherwise, specifying this field as false creates an empty volume. // - // Valid Values: true, false + // Valid Values: true, false PreserveExistingData *bool `type:"boolean" required:"true"` // The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the @@ -2820,9 +2374,15 @@ type CreateStorediSCSIVolumeInput struct { // The name of the iSCSI target used by initiators to connect to the target // and as a suffix for the target ARN. For example, specifying TargetName as - // myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume. + // myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway/mygateway/target/iqn.1997-05.com.amazon:myvolume. // The target name must be unique across all volumes of a gateway. - TargetName *string `min:"1" type:"string" required:"true"` + TargetName *string `type:"string" required:"true"` + + metadataCreateStorediSCSIVolumeInput `json:"-" xml:"-"` +} + +type metadataCreateStorediSCSIVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2835,166 +2395,68 @@ func (s CreateStorediSCSIVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateStorediSCSIVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateStorediSCSIVolumeInput"} - if s.DiskId == nil { - invalidParams.Add(request.NewErrParamRequired("DiskId")) - } - if s.DiskId != nil && len(*s.DiskId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DiskId", 1)) - } - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.NetworkInterfaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId")) - } - if s.PreserveExistingData == nil { - invalidParams.Add(request.NewErrParamRequired("PreserveExistingData")) - } - if s.TargetName == nil { - invalidParams.Add(request.NewErrParamRequired("TargetName")) - } - if s.TargetName != nil && len(*s.TargetName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the following fields: type CreateStorediSCSIVolumeOutput struct { - _ struct{} `type:"structure"` - // he Amazon Resource Name (ARN) of the volume target that includes the iSCSI // name that initiators can use to connect to the target. - TargetARN *string `min:"50" type:"string"` + TargetARN *string `type:"string"` // The Amazon Resource Name (ARN) of the configured volume. - VolumeARN *string `min:"50" type:"string"` + VolumeARN *string `type:"string"` // The size of the volume in bytes. VolumeSizeInBytes *int64 `type:"long"` -} - -// String returns the string representation -func (s CreateStorediSCSIVolumeOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateStorediSCSIVolumeOutput) GoString() string { - return s.String() -} - -// CreateTapeWithBarcodeInput -type CreateTapeWithBarcodeInput struct { - _ struct{} `type:"structure"` - - // The unique Amazon Resource Name (ARN) that represents the gateway to associate - // the virtual tape with. Use the ListGateways operation to return a list of - // gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` - - // The barcode that you want to assign to the tape. - TapeBarcode *string `min:"7" type:"string" required:"true"` - - // The size, in bytes, of the virtual tape that you want to create. - // - // The size must be aligned by gigabyte (1024*1024*1024 byte). - TapeSizeInBytes *int64 `type:"long" required:"true"` -} - -// String returns the string representation -func (s CreateTapeWithBarcodeInput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s CreateTapeWithBarcodeInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTapeWithBarcodeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTapeWithBarcodeInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.TapeBarcode == nil { - invalidParams.Add(request.NewErrParamRequired("TapeBarcode")) - } - if s.TapeBarcode != nil && len(*s.TapeBarcode) < 7 { - invalidParams.Add(request.NewErrParamMinLen("TapeBarcode", 7)) - } - if s.TapeSizeInBytes == nil { - invalidParams.Add(request.NewErrParamRequired("TapeSizeInBytes")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataCreateStorediSCSIVolumeOutput `json:"-" xml:"-"` } -// CreateTapeOutput -type CreateTapeWithBarcodeOutput struct { - _ struct{} `type:"structure"` - - // A unique Amazon Resource Name (ARN) that represents the virtual tape that - // was created. - TapeARN *string `min:"50" type:"string"` +type metadataCreateStorediSCSIVolumeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateTapeWithBarcodeOutput) String() string { +func (s CreateStorediSCSIVolumeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTapeWithBarcodeOutput) GoString() string { +func (s CreateStorediSCSIVolumeOutput) GoString() string { return s.String() } // CreateTapesInput type CreateTapesInput struct { - _ struct{} `type:"structure"` - // A unique identifier that you use to retry a request. If you retry a request, // use the same ClientToken you specified in the initial request. // // Using the same ClientToken prevents creating the tape multiple times. - ClientToken *string `min:"5" type:"string" required:"true"` + ClientToken *string `type:"string" required:"true"` - // The unique Amazon Resource Name (ARN) that represents the gateway to associate + // The unique Amazon Resource Name(ARN) that represents the gateway to associate // the virtual tapes with. Use the ListGateways operation to return a list of // gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` - // The number of virtual tapes that you want to create. - NumTapesToCreate *int64 `min:"1" type:"integer" required:"true"` + // The number of virtual tapes you want to create. + NumTapesToCreate *int64 `type:"integer" required:"true"` - // A prefix that you append to the barcode of the virtual tape you are creating. - // This prefix makes the barcode unique. + // A prefix you append to the barcode of the virtual tape you are creating. + // This makes a barcode unique. // - // The prefix must be 1 to 4 characters in length and must be one of the uppercase - // letters from A to Z. - TapeBarcodePrefix *string `min:"1" type:"string" required:"true"` + // The prefix must be 1 to 4 characters in length and must be upper-case letters + // A-Z. + TapeBarcodePrefix *string `type:"string" required:"true"` - // The size, in bytes, of the virtual tapes that you want to create. + // The size, in bytes, of the virtual tapes you want to create. // - // The size must be aligned by gigabyte (1024*1024*1024 byte). + // The size must be gigabyte (1024*1024*1024 byte) aligned. TapeSizeInBytes *int64 `type:"long" required:"true"` + + metadataCreateTapesInput `json:"-" xml:"-"` +} + +type metadataCreateTapesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3007,50 +2469,17 @@ func (s CreateTapesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTapesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTapesInput"} - if s.ClientToken == nil { - invalidParams.Add(request.NewErrParamRequired("ClientToken")) - } - if s.ClientToken != nil && len(*s.ClientToken) < 5 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 5)) - } - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.NumTapesToCreate == nil { - invalidParams.Add(request.NewErrParamRequired("NumTapesToCreate")) - } - if s.NumTapesToCreate != nil && *s.NumTapesToCreate < 1 { - invalidParams.Add(request.NewErrParamMinValue("NumTapesToCreate", 1)) - } - if s.TapeBarcodePrefix == nil { - invalidParams.Add(request.NewErrParamRequired("TapeBarcodePrefix")) - } - if s.TapeBarcodePrefix != nil && len(*s.TapeBarcodePrefix) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TapeBarcodePrefix", 1)) - } - if s.TapeSizeInBytes == nil { - invalidParams.Add(request.NewErrParamRequired("TapeSizeInBytes")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // CreateTapeOutput type CreateTapesOutput struct { - _ struct{} `type:"structure"` - - // A list of unique Amazon Resource Names (ARNs) that represents the virtual - // tapes that were created. + // A list of unique Amazon Resource Named (ARN) the represents the virtual tapes + // that were created. TapeARNs []*string `type:"list"` + + metadataCreateTapesOutput `json:"-" xml:"-"` +} + +type metadataCreateTapesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3064,13 +2493,17 @@ func (s CreateTapesOutput) GoString() string { } type DeleteBandwidthRateLimitInput struct { - _ struct{} `type:"structure"` - - BandwidthType *string `min:"3" type:"string" required:"true"` + BandwidthType *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataDeleteBandwidthRateLimitInput `json:"-" xml:"-"` +} + +type metadataDeleteBandwidthRateLimitInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3083,36 +2516,18 @@ func (s DeleteBandwidthRateLimitInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBandwidthRateLimitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBandwidthRateLimitInput"} - if s.BandwidthType == nil { - invalidParams.Add(request.NewErrParamRequired("BandwidthType")) - } - if s.BandwidthType != nil && len(*s.BandwidthType) < 3 { - invalidParams.Add(request.NewErrParamMinLen("BandwidthType", 3)) - } - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the of the gateway whose bandwidth rate information // was deleted. type DeleteBandwidthRateLimitOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataDeleteBandwidthRateLimitOutput `json:"-" xml:"-"` +} + +type metadataDeleteBandwidthRateLimitOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3127,18 +2542,20 @@ func (s DeleteBandwidthRateLimitOutput) GoString() string { // A JSON object containing one or more of the following fields: // -// DeleteChapCredentialsInput$InitiatorName -// -// DeleteChapCredentialsInput$TargetARN +// DeleteChapCredentialsInput$InitiatorName DeleteChapCredentialsInput$TargetARN type DeleteChapCredentialsInput struct { - _ struct{} `type:"structure"` - // The iSCSI initiator that connects to the target. - InitiatorName *string `min:"1" type:"string" required:"true"` + InitiatorName *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes // operation to return to retrieve the TargetARN for specified VolumeARN. - TargetARN *string `min:"50" type:"string" required:"true"` + TargetARN *string `type:"string" required:"true"` + + metadataDeleteChapCredentialsInput `json:"-" xml:"-"` +} + +type metadataDeleteChapCredentialsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3151,37 +2568,19 @@ func (s DeleteChapCredentialsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteChapCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteChapCredentialsInput"} - if s.InitiatorName == nil { - invalidParams.Add(request.NewErrParamRequired("InitiatorName")) - } - if s.InitiatorName != nil && len(*s.InitiatorName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InitiatorName", 1)) - } - if s.TargetARN == nil { - invalidParams.Add(request.NewErrParamRequired("TargetARN")) - } - if s.TargetARN != nil && len(*s.TargetARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("TargetARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the following fields: type DeleteChapCredentialsOutput struct { - _ struct{} `type:"structure"` - // The iSCSI initiator that connects to the target. - InitiatorName *string `min:"1" type:"string"` + InitiatorName *string `type:"string"` // The Amazon Resource Name (ARN) of the target. - TargetARN *string `min:"50" type:"string"` + TargetARN *string `type:"string"` + + metadataDeleteChapCredentialsOutput `json:"-" xml:"-"` +} + +type metadataDeleteChapCredentialsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3196,11 +2595,15 @@ func (s DeleteChapCredentialsOutput) GoString() string { // A JSON object containing the id of the gateway to delete. type DeleteGatewayInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataDeleteGatewayInput `json:"-" xml:"-"` +} + +type metadataDeleteGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3213,29 +2616,17 @@ func (s DeleteGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteGatewayInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the id of the deleted gateway. type DeleteGatewayOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataDeleteGatewayOutput `json:"-" xml:"-"` +} + +type metadataDeleteGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3249,9 +2640,13 @@ func (s DeleteGatewayOutput) GoString() string { } type DeleteSnapshotScheduleInput struct { - _ struct{} `type:"structure"` + VolumeARN *string `type:"string" required:"true"` + + metadataDeleteSnapshotScheduleInput `json:"-" xml:"-"` +} - VolumeARN *string `min:"50" type:"string" required:"true"` +type metadataDeleteSnapshotScheduleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3264,26 +2659,14 @@ func (s DeleteSnapshotScheduleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSnapshotScheduleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotScheduleInput"} - if s.VolumeARN == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeARN")) - } - if s.VolumeARN != nil && len(*s.VolumeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50)) - } +type DeleteSnapshotScheduleOutput struct { + VolumeARN *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDeleteSnapshotScheduleOutput `json:"-" xml:"-"` } -type DeleteSnapshotScheduleOutput struct { - _ struct{} `type:"structure"` - - VolumeARN *string `min:"50" type:"string"` +type metadataDeleteSnapshotScheduleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3298,11 +2681,15 @@ func (s DeleteSnapshotScheduleOutput) GoString() string { // DeleteTapeArchiveInput type DeleteTapeArchiveInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual // tape shelf (VTS). - TapeARN *string `min:"50" type:"string" required:"true"` + TapeARN *string `type:"string" required:"true"` + + metadataDeleteTapeArchiveInput `json:"-" xml:"-"` +} + +type metadataDeleteTapeArchiveInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3315,29 +2702,17 @@ func (s DeleteTapeArchiveInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTapeArchiveInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTapeArchiveInput"} - if s.TapeARN == nil { - invalidParams.Add(request.NewErrParamRequired("TapeARN")) - } - if s.TapeARN != nil && len(*s.TapeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // DeleteTapeArchiveOutput type DeleteTapeArchiveOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the virtual tape that was deleted from // the virtual tape shelf (VTS). - TapeARN *string `min:"50" type:"string"` + TapeARN *string `type:"string"` + + metadataDeleteTapeArchiveOutput `json:"-" xml:"-"` +} + +type metadataDeleteTapeArchiveOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3352,15 +2727,19 @@ func (s DeleteTapeArchiveOutput) GoString() string { // DeleteTapeInput type DeleteTapeInput struct { - _ struct{} `type:"structure"` - // The unique Amazon Resource Name (ARN) of the gateway that the virtual tape // to delete is associated with. Use the ListGateways operation to return a // list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the virtual tape to delete. - TapeARN *string `min:"50" type:"string" required:"true"` + TapeARN *string `type:"string" required:"true"` + + metadataDeleteTapeInput `json:"-" xml:"-"` +} + +type metadataDeleteTapeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3373,34 +2752,16 @@ func (s DeleteTapeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTapeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTapeInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.TapeARN == nil { - invalidParams.Add(request.NewErrParamRequired("TapeARN")) - } - if s.TapeARN != nil && len(*s.TapeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // DeleteTapeOutput type DeleteTapeOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the deleted virtual tape. - TapeARN *string `min:"50" type:"string"` + TapeARN *string `type:"string"` + + metadataDeleteTapeOutput `json:"-" xml:"-"` +} + +type metadataDeleteTapeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3415,11 +2776,15 @@ func (s DeleteTapeOutput) GoString() string { // A JSON object containing the DeleteVolumeInput$VolumeARN to delete. type DeleteVolumeInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes. - VolumeARN *string `min:"50" type:"string" required:"true"` + VolumeARN *string `type:"string" required:"true"` + + metadataDeleteVolumeInput `json:"-" xml:"-"` +} + +type metadataDeleteVolumeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3432,29 +2797,17 @@ func (s DeleteVolumeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVolumeInput"} - if s.VolumeARN == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeARN")) - } - if s.VolumeARN != nil && len(*s.VolumeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the of the storage volume that was deleted type DeleteVolumeOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the storage volume that was deleted. It // is the same ARN you provided in the request. - VolumeARN *string `min:"50" type:"string"` + VolumeARN *string `type:"string"` + + metadataDeleteVolumeOutput `json:"-" xml:"-"` +} + +type metadataDeleteVolumeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3469,11 +2822,15 @@ func (s DeleteVolumeOutput) GoString() string { // A JSON object containing the of the gateway. type DescribeBandwidthRateLimitInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataDescribeBandwidthRateLimitInput `json:"-" xml:"-"` +} + +type metadataDescribeBandwidthRateLimitInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3486,37 +2843,25 @@ func (s DescribeBandwidthRateLimitInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeBandwidthRateLimitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeBandwidthRateLimitInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the following fields: type DescribeBandwidthRateLimitOutput struct { - _ struct{} `type:"structure"` - // The average download bandwidth rate limit in bits per second. This field // does not appear in the response if the download rate limit is not set. - AverageDownloadRateLimitInBitsPerSec *int64 `min:"102400" type:"long"` + AverageDownloadRateLimitInBitsPerSec *int64 `type:"long"` // The average upload bandwidth rate limit in bits per second. This field does // not appear in the response if the upload rate limit is not set. - AverageUploadRateLimitInBitsPerSec *int64 `min:"51200" type:"long"` + AverageUploadRateLimitInBitsPerSec *int64 `type:"long"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataDescribeBandwidthRateLimitOutput `json:"-" xml:"-"` +} + +type metadataDescribeBandwidthRateLimitOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3530,11 +2875,15 @@ func (s DescribeBandwidthRateLimitOutput) GoString() string { } type DescribeCacheInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataDescribeCacheInput `json:"-" xml:"-"` +} + +type metadataDescribeCacheInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3547,25 +2896,7 @@ func (s DescribeCacheInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeCacheInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeCacheInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeCacheOutput struct { - _ struct{} `type:"structure"` - CacheAllocatedInBytes *int64 `type:"long"` CacheDirtyPercentage *float64 `type:"double"` @@ -3580,7 +2911,13 @@ type DescribeCacheOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataDescribeCacheOutput `json:"-" xml:"-"` +} + +type metadataDescribeCacheOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3594,9 +2931,13 @@ func (s DescribeCacheOutput) GoString() string { } type DescribeCachediSCSIVolumesInput struct { - _ struct{} `type:"structure"` - VolumeARNs []*string `type:"list" required:"true"` + + metadataDescribeCachediSCSIVolumesInput `json:"-" xml:"-"` +} + +type metadataDescribeCachediSCSIVolumesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3609,26 +2950,17 @@ func (s DescribeCachediSCSIVolumesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeCachediSCSIVolumesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeCachediSCSIVolumesInput"} - if s.VolumeARNs == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeARNs")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the following fields: type DescribeCachediSCSIVolumesOutput struct { - _ struct{} `type:"structure"` - // An array of objects where each object contains metadata about one cached // volume. CachediSCSIVolumes []*CachediSCSIVolume `type:"list"` + + metadataDescribeCachediSCSIVolumesOutput `json:"-" xml:"-"` +} + +type metadataDescribeCachediSCSIVolumesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3644,11 +2976,15 @@ func (s DescribeCachediSCSIVolumesOutput) GoString() string { // A JSON object containing the Amazon Resource Name (ARN) of the iSCSI volume // target. type DescribeChapCredentialsInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes // operation to return to retrieve the TargetARN for specified VolumeARN. - TargetARN *string `min:"50" type:"string" required:"true"` + TargetARN *string `type:"string" required:"true"` + + metadataDescribeChapCredentialsInput `json:"-" xml:"-"` +} + +type metadataDescribeChapCredentialsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3661,42 +2997,30 @@ func (s DescribeChapCredentialsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeChapCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeChapCredentialsInput"} - if s.TargetARN == nil { - invalidParams.Add(request.NewErrParamRequired("TargetARN")) - } - if s.TargetARN != nil && len(*s.TargetARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("TargetARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing a . type DescribeChapCredentialsOutput struct { - _ struct{} `type:"structure"` - // An array of ChapInfo objects that represent CHAP credentials. Each object // in the array contains CHAP credential information for one target-initiator // pair. If no CHAP credentials are set, an empty array is returned. CHAP credential // information is provided in a JSON object with the following fields: // - // InitiatorName: The iSCSI initiator that connects to the target. + // InitiatorName: The iSCSI initiator that connects to the target. // - // SecretToAuthenticateInitiator: The secret key that the initiator (for + // SecretToAuthenticateInitiator: The secret key that the initiator (for // example, the Windows client) must provide to participate in mutual CHAP with // the target. // - // SecretToAuthenticateTarget: The secret key that the target must provide + // SecretToAuthenticateTarget: The secret key that the target must provide // to participate in mutual CHAP with the initiator (e.g. Windows client). // - // TargetARN: The Amazon Resource Name (ARN) of the storage volume. + // TargetARN: The Amazon Resource Name (ARN) of the storage volume. ChapCredentials []*ChapInfo `type:"list"` + + metadataDescribeChapCredentialsOutput `json:"-" xml:"-"` +} + +type metadataDescribeChapCredentialsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3711,11 +3035,15 @@ func (s DescribeChapCredentialsOutput) GoString() string { // A JSON object containing the id of the gateway. type DescribeGatewayInformationInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataDescribeGatewayInformationInput `json:"-" xml:"-"` +} + +type metadataDescribeGatewayInformationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3728,60 +3056,43 @@ func (s DescribeGatewayInformationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeGatewayInformationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeGatewayInformationInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the following fields: type DescribeGatewayInformationOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` - - // The unique identifier assigned to your gateway during activation. This ID - // becomes part of the gateway Amazon Resource Name (ARN), which you use as - // input for other operations. - GatewayId *string `min:"12" type:"string"` + GatewayARN *string `type:"string"` - // The name you configured for your gateway. - GatewayName *string `type:"string"` + // The gateway ID. + GatewayId *string `type:"string"` // A NetworkInterface array that contains descriptions of the gateway network // interfaces. GatewayNetworkInterfaces []*NetworkInterface `type:"list"` - // A value that indicates the operating state of the gateway. - GatewayState *string `min:"2" type:"string"` + // One of the values that indicates the operating state of the gateway. + GatewayState *string `type:"string"` - // A value that indicates the time zone configured for the gateway. - GatewayTimezone *string `min:"3" type:"string"` + // One of the values that indicates the time zone configured for the gateway. + GatewayTimezone *string `type:"string"` // The type of the gateway. - GatewayType *string `min:"2" type:"string"` + GatewayType *string `type:"string"` // The date on which the last software update was applied to the gateway. If // the gateway has never been updated, this field does not return a value in // the response. - LastSoftwareUpdate *string `min:"1" type:"string"` + LastSoftwareUpdate *string `type:"string"` // The date on which an update to the gateway is available. This date is in // the time zone of the gateway. If the gateway is not available for an update // this field is not returned in the response. - NextUpdateAvailabilityDate *string `min:"1" type:"string"` + NextUpdateAvailabilityDate *string `type:"string"` + + metadataDescribeGatewayInformationOutput `json:"-" xml:"-"` +} + +type metadataDescribeGatewayInformationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3796,11 +3107,15 @@ func (s DescribeGatewayInformationOutput) GoString() string { // A JSON object containing the of the gateway. type DescribeMaintenanceStartTimeInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataDescribeMaintenanceStartTimeInput `json:"-" xml:"-"` +} + +type metadataDescribeMaintenanceStartTimeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3813,36 +3128,24 @@ func (s DescribeMaintenanceStartTimeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeMaintenanceStartTimeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceStartTimeInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeMaintenanceStartTimeOutput struct { - _ struct{} `type:"structure"` - DayOfWeek *int64 `type:"integer"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` HourOfDay *int64 `type:"integer"` MinuteOfHour *int64 `type:"integer"` - Timezone *string `min:"3" type:"string"` + Timezone *string `type:"string"` + + metadataDescribeMaintenanceStartTimeOutput `json:"-" xml:"-"` +} + +type metadataDescribeMaintenanceStartTimeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3858,11 +3161,15 @@ func (s DescribeMaintenanceStartTimeOutput) GoString() string { // A JSON object containing the DescribeSnapshotScheduleInput$VolumeARN of the // volume. type DescribeSnapshotScheduleInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes. - VolumeARN *string `min:"50" type:"string" required:"true"` + VolumeARN *string `type:"string" required:"true"` + + metadataDescribeSnapshotScheduleInput `json:"-" xml:"-"` +} + +type metadataDescribeSnapshotScheduleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3875,34 +3182,22 @@ func (s DescribeSnapshotScheduleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeSnapshotScheduleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeSnapshotScheduleInput"} - if s.VolumeARN == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeARN")) - } - if s.VolumeARN != nil && len(*s.VolumeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeSnapshotScheduleOutput struct { - _ struct{} `type:"structure"` - - Description *string `min:"1" type:"string"` + Description *string `type:"string"` - RecurrenceInHours *int64 `min:"1" type:"integer"` + RecurrenceInHours *int64 `type:"integer"` StartAt *int64 `type:"integer"` - Timezone *string `min:"3" type:"string"` + Timezone *string `type:"string"` - VolumeARN *string `min:"50" type:"string"` + VolumeARN *string `type:"string"` + + metadataDescribeSnapshotScheduleOutput `json:"-" xml:"-"` +} + +type metadataDescribeSnapshotScheduleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3915,14 +3210,18 @@ func (s DescribeSnapshotScheduleOutput) GoString() string { return s.String() } -// A JSON object containing a list of DescribeStorediSCSIVolumesInput$VolumeARNs. +// A JSON Object containing a list of DescribeStorediSCSIVolumesInput$VolumeARNs. type DescribeStorediSCSIVolumesInput struct { - _ struct{} `type:"structure"` - // An array of strings where each string represents the Amazon Resource Name // (ARN) of a stored volume. All of the specified stored volumes must from the // same gateway. Use ListVolumes to get volume ARNs for a gateway. VolumeARNs []*string `type:"list" required:"true"` + + metadataDescribeStorediSCSIVolumesInput `json:"-" xml:"-"` +} + +type metadataDescribeStorediSCSIVolumesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3935,23 +3234,14 @@ func (s DescribeStorediSCSIVolumesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStorediSCSIVolumesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStorediSCSIVolumesInput"} - if s.VolumeARNs == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeARNs")) - } +type DescribeStorediSCSIVolumesOutput struct { + StorediSCSIVolumes []*StorediSCSIVolume `type:"list"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataDescribeStorediSCSIVolumesOutput `json:"-" xml:"-"` } -type DescribeStorediSCSIVolumesOutput struct { - _ struct{} `type:"structure"` - - StorediSCSIVolumes []*StorediSCSIVolume `type:"list"` +type metadataDescribeStorediSCSIVolumesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3966,19 +3256,23 @@ func (s DescribeStorediSCSIVolumesOutput) GoString() string { // DescribeTapeArchivesInput type DescribeTapeArchivesInput struct { - _ struct{} `type:"structure"` - // Specifies that the number of virtual tapes descried be limited to the specified // number. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // An opaque string that indicates the position at which to begin describing // virtual tapes. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // Specifies one or more unique Amazon Resource Names (ARNs) that represent // the virtual tapes you want to describe. TapeARNs []*string `type:"list"` + + metadataDescribeTapeArchivesInput `json:"-" xml:"-"` +} + +type metadataDescribeTapeArchivesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3991,38 +3285,26 @@ func (s DescribeTapeArchivesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTapeArchivesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTapeArchivesInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // DescribeTapeArchivesOutput type DescribeTapeArchivesOutput struct { - _ struct{} `type:"structure"` - // An opaque string that indicates the position at which the virtual tapes that // were fetched for description ended. Use this marker in your next request // to fetch the next set of virtual tapes in the virtual tape shelf (VTS). If // there are no more virtual tapes to describe, this field does not appear in // the response. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // An array of virtual tape objects in the virtual tape shelf (VTS). The description // includes of the Amazon Resource Name(ARN) of the virtual tapes. The information // returned includes the Amazon Resource Names (ARNs) of the tapes, size of // the tapes, status of the tapes, progress of the description and tape barcode. TapeArchives []*TapeArchive `type:"list"` + + metadataDescribeTapeArchivesOutput `json:"-" xml:"-"` +} + +type metadataDescribeTapeArchivesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4037,19 +3319,23 @@ func (s DescribeTapeArchivesOutput) GoString() string { // DescribeTapeRecoveryPointsInput type DescribeTapeRecoveryPointsInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` // Specifies that the number of virtual tape recovery points that are described // be limited to the specified number. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // An opaque string that indicates the position at which to begin describing // the virtual tape recovery points. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataDescribeTapeRecoveryPointsInput `json:"-" xml:"-"` +} + +type metadataDescribeTapeRecoveryPointsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4062,35 +3348,11 @@ func (s DescribeTapeRecoveryPointsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTapeRecoveryPointsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTapeRecoveryPointsInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // DescribeTapeRecoveryPointsOutput type DescribeTapeRecoveryPointsOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` // An opaque string that indicates the position at which the virtual tape recovery // points that were listed for description ended. @@ -4098,10 +3360,16 @@ type DescribeTapeRecoveryPointsOutput struct { // Use this marker in your next request to list the next set of virtual tape // recovery points in the list. If there are no more recovery points to describe, // this field does not appear in the response. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // An array of TapeRecoveryPointInfos that are available for the specified gateway. TapeRecoveryPointInfos []*TapeRecoveryPointInfo `type:"list"` + + metadataDescribeTapeRecoveryPointsOutput `json:"-" xml:"-"` +} + +type metadataDescribeTapeRecoveryPointsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4116,29 +3384,33 @@ func (s DescribeTapeRecoveryPointsOutput) GoString() string { // DescribeTapesInput type DescribeTapesInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` // Specifies that the number of virtual tapes described be limited to the specified // number. // // Amazon Web Services may impose its own limit, if this field is not set. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // A marker value, obtained in a previous call to DescribeTapes. This marker // indicates which page of results to retrieve. // // If not specified, the first page of results is retrieved. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // Specifies one or more unique Amazon Resource Names (ARNs) that represent // the virtual tapes you want to describe. If this parameter is not specified, // AWS Storage Gateway returns a description of all virtual tapes associated // with the specified gateway. TapeARNs []*string `type:"list"` + + metadataDescribeTapesInput `json:"-" xml:"-"` +} + +type metadataDescribeTapesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4151,41 +3423,23 @@ func (s DescribeTapesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTapesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTapesInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // DescribeTapesOutput type DescribeTapesOutput struct { - _ struct{} `type:"structure"` - // An opaque string which can be used as part of a subsequent DescribeTapes // call to retrieve the next page of results. // // If a response does not contain a marker, then there are no more results // to be retrieved. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // An array of virtual tape descriptions. Tapes []*Tape `type:"list"` + + metadataDescribeTapesOutput `json:"-" xml:"-"` +} + +type metadataDescribeTapesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4199,11 +3453,15 @@ func (s DescribeTapesOutput) GoString() string { } type DescribeUploadBufferInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataDescribeUploadBufferInput `json:"-" xml:"-"` +} + +type metadataDescribeUploadBufferInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4216,34 +3474,22 @@ func (s DescribeUploadBufferInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeUploadBufferInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUploadBufferInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type DescribeUploadBufferOutput struct { - _ struct{} `type:"structure"` - DiskIds []*string `type:"list"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` UploadBufferAllocatedInBytes *int64 `type:"long"` UploadBufferUsedInBytes *int64 `type:"long"` + + metadataDescribeUploadBufferOutput `json:"-" xml:"-"` +} + +type metadataDescribeUploadBufferOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4258,19 +3504,17 @@ func (s DescribeUploadBufferOutput) GoString() string { // DescribeVTLDevicesInput type DescribeVTLDevicesInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` // Specifies that the number of VTL devices described be limited to the specified // number. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // An opaque string that indicates the position at which to begin describing // the VTL devices. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // An array of strings, where each string represents the Amazon Resource Name // (ARN) of a VTL device. @@ -4279,6 +3523,12 @@ type DescribeVTLDevicesInput struct { // devices are specified, the result will contain all devices on the specified // gateway. VTLDeviceARNs []*string `type:"list"` + + metadataDescribeVTLDevicesInput `json:"-" xml:"-"` +} + +type metadataDescribeVTLDevicesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4291,45 +3541,27 @@ func (s DescribeVTLDevicesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeVTLDevicesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeVTLDevicesInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // DescribeVTLDevicesOutput type DescribeVTLDevicesOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` // An opaque string that indicates the position at which the VTL devices that // were fetched for description ended. Use the marker in your next request to // fetch the next set of VTL devices in the list. If there are no more VTL devices // to describe, this field does not appear in the response. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` // An array of VTL device objects composed of the Amazon Resource Name(ARN) // of the VTL devices. VTLDevices []*VTLDevice `type:"list"` + + metadataDescribeVTLDevicesOutput `json:"-" xml:"-"` +} + +type metadataDescribeVTLDevicesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4344,11 +3576,15 @@ func (s DescribeVTLDevicesOutput) GoString() string { // A JSON object containing the of the gateway. type DescribeWorkingStorageInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataDescribeWorkingStorageInput `json:"-" xml:"-"` +} + +type metadataDescribeWorkingStorageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4361,26 +3597,8 @@ func (s DescribeWorkingStorageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeWorkingStorageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeWorkingStorageInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the following fields: type DescribeWorkingStorageOutput struct { - _ struct{} `type:"structure"` - // An array of the gateway's local disk IDs that are configured as working storage. // Each local disk ID is specified as a string (minimum length of 1 and maximum // length of 300). If no local disks are configured as working storage, then @@ -4389,7 +3607,7 @@ type DescribeWorkingStorageOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` // The total working storage in bytes allocated for the gateway. If no working // storage is configured for the gateway, this field returns 0. @@ -4398,6 +3616,12 @@ type DescribeWorkingStorageOutput struct { // The total working storage in bytes in use by the gateway. If no working storage // is configured for the gateway, this field returns 0. WorkingStorageUsedInBytes *int64 `type:"long"` + + metadataDescribeWorkingStorageOutput `json:"-" xml:"-"` +} + +type metadataDescribeWorkingStorageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4412,8 +3636,6 @@ func (s DescribeWorkingStorageOutput) GoString() string { // Lists iSCSI information about a VTL device. type DeviceiSCSIAttributes struct { - _ struct{} `type:"structure"` - // Indicates whether mutual CHAP is enabled for the iSCSI target. ChapEnabled *bool `type:"boolean"` @@ -4425,7 +3647,13 @@ type DeviceiSCSIAttributes struct { // Specifies the unique Amazon Resource Name(ARN) that encodes the iSCSI qualified // name(iqn) of a tape drive or media changer target. - TargetARN *string `min:"50" type:"string"` + TargetARN *string `type:"string"` + + metadataDeviceiSCSIAttributes `json:"-" xml:"-"` +} + +type metadataDeviceiSCSIAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4440,11 +3668,15 @@ func (s DeviceiSCSIAttributes) GoString() string { // DisableGatewayInput type DisableGatewayInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataDisableGatewayInput `json:"-" xml:"-"` +} + +type metadataDisableGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4457,28 +3689,16 @@ func (s DisableGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisableGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisableGatewayInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // DisableGatewayOutput type DisableGatewayOutput struct { - _ struct{} `type:"structure"` - // The unique Amazon Resource Name of the disabled gateway. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataDisableGatewayOutput `json:"-" xml:"-"` +} + +type metadataDisableGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4492,13 +3712,11 @@ func (s DisableGatewayOutput) GoString() string { } type Disk struct { - _ struct{} `type:"structure"` - DiskAllocationResource *string `type:"string"` - DiskAllocationType *string `min:"3" type:"string"` + DiskAllocationType *string `type:"string"` - DiskId *string `min:"1" type:"string"` + DiskId *string `type:"string"` DiskNode *string `type:"string"` @@ -4507,6 +3725,12 @@ type Disk struct { DiskSizeInBytes *int64 `type:"long"` DiskStatus *string `type:"string"` + + metadataDisk `json:"-" xml:"-"` +} + +type metadataDisk struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4523,13 +3747,17 @@ func (s Disk) GoString() string { // as an or. See the errorCode and errorDetails members for more information // about the error. type Error struct { - _ struct{} `type:"structure"` - // Additional information about the error. ErrorCode *string `locationName:"errorCode" type:"string" enum:"ErrorCode"` // Human-readable text that provides detail about the error that occurred. ErrorDetails map[string]*string `locationName:"errorDetails" type:"map"` + + metadataError `json:"-" xml:"-"` +} + +type metadataError struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4542,29 +3770,20 @@ func (s Error) GoString() string { return s.String() } -// Describes a gateway object. type GatewayInfo struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` - // The unique identifier assigned to your gateway during activation. This ID - // becomes part of the gateway Amazon Resource Name (ARN), which you use as - // input for other operations. - GatewayId *string `min:"12" type:"string"` + GatewayOperationalState *string `type:"string"` - // The name of the gateway. - GatewayName *string `type:"string"` + GatewayType *string `type:"string"` - // The state of the gateway. - // - // Valid Values: DISABLED or ACTIVE - GatewayOperationalState *string `min:"2" type:"string"` + metadataGatewayInfo `json:"-" xml:"-"` +} - // The type of the gateway. - GatewayType *string `min:"2" type:"string"` +type metadataGatewayInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4579,19 +3798,21 @@ func (s GatewayInfo) GoString() string { // A JSON object containing zero or more of the following fields: // -// ListGatewaysInput$Limit -// -// ListGatewaysInput$Marker +// ListGatewaysInput$Limit ListGatewaysInput$Marker type ListGatewaysInput struct { - _ struct{} `type:"structure"` - // Specifies that the list of gateways returned be limited to the specified // number of items. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // An opaque string that indicates the position at which to begin the returned // list of gateways. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListGatewaysInput `json:"-" xml:"-"` +} + +type metadataListGatewaysInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4604,28 +3825,16 @@ func (s ListGatewaysInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListGatewaysInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGatewaysInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListGatewaysOutput struct { - _ struct{} `type:"structure"` - Gateways []*GatewayInfo `type:"list"` - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListGatewaysOutput `json:"-" xml:"-"` +} + +type metadataListGatewaysOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4640,11 +3849,15 @@ func (s ListGatewaysOutput) GoString() string { // A JSON object containing the of the gateway. type ListLocalDisksInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataListLocalDisksInput `json:"-" xml:"-"` +} + +type metadataListLocalDisksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4657,203 +3870,41 @@ func (s ListLocalDisksInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListLocalDisksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListLocalDisksInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListLocalDisksOutput struct { - _ struct{} `type:"structure"` - Disks []*Disk `type:"list"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` -} - -// String returns the string representation -func (s ListLocalDisksOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListLocalDisksOutput) GoString() string { - return s.String() -} - -// ListTagsForResourceInput -type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` + GatewayARN *string `type:"string"` - // Specifies that the list of tags returned be limited to the specified number - // of items. - Limit *int64 `min:"1" type:"integer"` - - // An opaque string that indicates the position at which to begin returning - // the list of tags. - Marker *string `min:"1" type:"string"` - - // The Amazon Resource Name (ARN) of the resource for which you want to list - // tags. - ResourceARN *string `min:"50" type:"string" required:"true"` -} - -// String returns the string representation -func (s ListTagsForResourceInput) String() string { - return awsutil.Prettify(s) + metadataListLocalDisksOutput `json:"-" xml:"-"` } -// 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.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - if s.ResourceARN == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceARN")) - } - if s.ResourceARN != nil && len(*s.ResourceARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// ListTagsForResourceOutput -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - - // An opaque string that indicates the position at which to stop returning the - // list of tags. - Marker *string `min:"1" type:"string"` - - // he Amazon Resource Name (ARN) of the resource for which you want to list - // tags. - ResourceARN *string `min:"50" type:"string"` - - // An array that contains the tags for the specified resource. - Tags []*Tag `type:"list"` +type metadataListLocalDisksOutput struct { + SDKShapeTraits bool `type:"structure"` } // 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() -} - -// A JSON object that contains one or more of the following fields: -// -// ListTapesInput$Limit -// -// ListTapesInput$Marker -// -// ListTapesInput$TapeARNs -type ListTapesInput struct { - _ struct{} `type:"structure"` - - // An optional number limit for the tapes in the list returned by this call. - Limit *int64 `min:"1" type:"integer"` - - // A string that indicates the position at which to begin the returned list - // of tapes. - Marker *string `min:"1" type:"string"` - - // The Amazon Resource Name (ARN) of each of the tapes you want to list. If - // you don't specify a tape ARN, the response lists all tapes in both your VTL - // and VTS. - TapeARNs []*string `type:"list"` -} - -// String returns the string representation -func (s ListTapesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListTapesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTapesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTapesInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A JSON object containing the following fields: -// -// ListTapesOutput$Marker -// -// ListTapesOutput$VolumeInfos -type ListTapesOutput struct { - _ struct{} `type:"structure"` - - // A string that indicates the position at which to begin returning the next - // list of tapes. Use the marker in your next request to continue pagination - // of tapes. If there are no more tapes to list, this element does not appear - // in the response body. - Marker *string `min:"1" type:"string"` - - // An array of TapeInfo objects, where each object describes an a single tape. - // If there not tapes in the tape library or VTS, then the TapeInfos is an empty - // array. - TapeInfos []*TapeInfo `type:"list"` -} - -// String returns the string representation -func (s ListTapesOutput) String() string { +func (s ListLocalDisksOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTapesOutput) GoString() string { +func (s ListLocalDisksOutput) GoString() string { return s.String() } // ListVolumeInitiatorsInput type ListVolumeInitiatorsInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes for the gateway. - VolumeARN *string `min:"50" type:"string" required:"true"` + VolumeARN *string `type:"string" required:"true"` + + metadataListVolumeInitiatorsInput `json:"-" xml:"-"` +} + +type metadataListVolumeInitiatorsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4866,29 +3917,17 @@ func (s ListVolumeInitiatorsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListVolumeInitiatorsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVolumeInitiatorsInput"} - if s.VolumeARN == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeARN")) - } - if s.VolumeARN != nil && len(*s.VolumeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // ListVolumeInitiatorsOutput type ListVolumeInitiatorsOutput struct { - _ struct{} `type:"structure"` - // The host names and port numbers of all iSCSI initiators that are connected // to the gateway. Initiators []*string `type:"list"` + + metadataListVolumeInitiatorsOutput `json:"-" xml:"-"` +} + +type metadataListVolumeInitiatorsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4902,11 +3941,15 @@ func (s ListVolumeInitiatorsOutput) GoString() string { } type ListVolumeRecoveryPointsInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataListVolumeRecoveryPointsInput `json:"-" xml:"-"` +} + +type metadataListVolumeRecoveryPointsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4919,30 +3962,18 @@ func (s ListVolumeRecoveryPointsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListVolumeRecoveryPointsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVolumeRecoveryPointsInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListVolumeRecoveryPointsOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` VolumeRecoveryPointInfos []*VolumeRecoveryPointInfo `type:"list"` + + metadataListVolumeRecoveryPointsOutput `json:"-" xml:"-"` +} + +type metadataListVolumeRecoveryPointsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4957,24 +3988,26 @@ func (s ListVolumeRecoveryPointsOutput) GoString() string { // A JSON object that contains one or more of the following fields: // -// ListVolumesInput$Limit -// -// ListVolumesInput$Marker +// ListVolumesInput$Limit ListVolumesInput$Marker type ListVolumesInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string" required:"true"` // Specifies that the list of volumes returned be limited to the specified number // of items. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // A string that indicates the position at which to begin the returned list // of volumes. Obtain the marker from the response of a previous List iSCSI // Volumes request. - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` + + metadataListVolumesInput `json:"-" xml:"-"` +} + +type metadataListVolumesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4987,35 +4020,20 @@ func (s ListVolumesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListVolumesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVolumesInput"} - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListVolumesOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` - Marker *string `min:"1" type:"string"` + Marker *string `type:"string"` VolumeInfos []*VolumeInfo `type:"list"` + + metadataListVolumesOutput `json:"-" xml:"-"` +} + +type metadataListVolumesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5030,8 +4048,6 @@ func (s ListVolumesOutput) GoString() string { // Describes a gateway's network interface. type NetworkInterface struct { - _ struct{} `type:"structure"` - // The Internet Protocol version 4 (IPv4) address of the interface. Ipv4Address *string `type:"string"` @@ -5043,85 +4059,34 @@ type NetworkInterface struct { // // This is currently unsupported and will not be returned in output. MacAddress *string `type:"string"` -} -// String returns the string representation -func (s NetworkInterface) String() string { - return awsutil.Prettify(s) + metadataNetworkInterface `json:"-" xml:"-"` } -// GoString returns the string representation -func (s NetworkInterface) GoString() string { - return s.String() -} - -// RemoveTagsFromResourceInput -type RemoveTagsFromResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource you want to remove the tags - // from. - ResourceARN *string `min:"50" type:"string" required:"true"` - - // The keys of the tags you want to remove from the specified resource. A tag - // is composed of a key/value pair. - TagKeys []*string `type:"list" required:"true"` +type metadataNetworkInterface struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s RemoveTagsFromResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RemoveTagsFromResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsFromResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"} - if s.ResourceARN == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceARN")) - } - if s.ResourceARN != nil && len(*s.ResourceARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 50)) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// RemoveTagsFromResourceOutput -type RemoveTagsFromResourceOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource that the tags were removed - // from. - ResourceARN *string `min:"50" type:"string"` -} - -// String returns the string representation -func (s RemoveTagsFromResourceOutput) String() string { +func (s NetworkInterface) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RemoveTagsFromResourceOutput) GoString() string { +func (s NetworkInterface) GoString() string { return s.String() } type ResetCacheInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataResetCacheInput `json:"-" xml:"-"` +} + +type metadataResetCacheInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5134,28 +4099,16 @@ func (s ResetCacheInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResetCacheInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetCacheInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ResetCacheOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataResetCacheOutput `json:"-" xml:"-"` +} + +type metadataResetCacheOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5170,19 +4123,23 @@ func (s ResetCacheOutput) GoString() string { // RetrieveTapeArchiveInput type RetrieveTapeArchiveInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual // tape to. Use the ListGateways operation to return a list of gateways for // your account and region. // // You retrieve archived virtual tapes to only one gateway and the gateway // must be a gateway-VTL. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from // the virtual tape shelf (VTS). - TapeARN *string `min:"50" type:"string" required:"true"` + TapeARN *string `type:"string" required:"true"` + + metadataRetrieveTapeArchiveInput `json:"-" xml:"-"` +} + +type metadataRetrieveTapeArchiveInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5195,179 +4152,89 @@ func (s RetrieveTapeArchiveInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RetrieveTapeArchiveInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RetrieveTapeArchiveInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.TapeARN == nil { - invalidParams.Add(request.NewErrParamRequired("TapeARN")) - } - if s.TapeARN != nil && len(*s.TapeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // RetrieveTapeArchiveOutput type RetrieveTapeArchiveOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the retrieved virtual tape. - TapeARN *string `min:"50" type:"string"` -} + TapeARN *string `type:"string"` -// String returns the string representation -func (s RetrieveTapeArchiveOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RetrieveTapeArchiveOutput) GoString() string { - return s.String() + metadataRetrieveTapeArchiveOutput `json:"-" xml:"-"` } -// RetrieveTapeRecoveryPointInput -type RetrieveTapeRecoveryPointInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation - // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the virtual tape for which you want to - // retrieve the recovery point. - TapeARN *string `min:"50" type:"string" required:"true"` +type metadataRetrieveTapeArchiveOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s RetrieveTapeRecoveryPointInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RetrieveTapeRecoveryPointInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RetrieveTapeRecoveryPointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RetrieveTapeRecoveryPointInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.TapeARN == nil { - invalidParams.Add(request.NewErrParamRequired("TapeARN")) - } - if s.TapeARN != nil && len(*s.TapeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// RetrieveTapeRecoveryPointOutput -type RetrieveTapeRecoveryPointOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the virtual tape for which the recovery - // point was retrieved. - TapeARN *string `min:"50" type:"string"` -} - -// String returns the string representation -func (s RetrieveTapeRecoveryPointOutput) String() string { +func (s RetrieveTapeArchiveOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RetrieveTapeRecoveryPointOutput) GoString() string { +func (s RetrieveTapeArchiveOutput) GoString() string { return s.String() } -// SetLocalConsolePasswordInput -type SetLocalConsolePasswordInput struct { - _ struct{} `type:"structure"` - +// RetrieveTapeRecoveryPointInput +type RetrieveTapeRecoveryPointInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the virtual tape for which you want to + // retrieve the recovery point. + TapeARN *string `type:"string" required:"true"` + + metadataRetrieveTapeRecoveryPointInput `json:"-" xml:"-"` +} - // The password you want to set for your VM local console. - LocalConsolePassword *string `min:"6" type:"string" required:"true"` +type metadataRetrieveTapeRecoveryPointInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s SetLocalConsolePasswordInput) String() string { +func (s RetrieveTapeRecoveryPointInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SetLocalConsolePasswordInput) GoString() string { +func (s RetrieveTapeRecoveryPointInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SetLocalConsolePasswordInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SetLocalConsolePasswordInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.LocalConsolePassword == nil { - invalidParams.Add(request.NewErrParamRequired("LocalConsolePassword")) - } - if s.LocalConsolePassword != nil && len(*s.LocalConsolePassword) < 6 { - invalidParams.Add(request.NewErrParamMinLen("LocalConsolePassword", 6)) - } +// RetrieveTapeRecoveryPointOutput +type RetrieveTapeRecoveryPointOutput struct { + // The Amazon Resource Name (ARN) of the virtual tape for which the recovery + // point was retrieved. + TapeARN *string `type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + metadataRetrieveTapeRecoveryPointOutput `json:"-" xml:"-"` } -type SetLocalConsolePasswordOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation - // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` +type metadataRetrieveTapeRecoveryPointOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s SetLocalConsolePasswordOutput) String() string { +func (s RetrieveTapeRecoveryPointOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SetLocalConsolePasswordOutput) GoString() string { +func (s RetrieveTapeRecoveryPointOutput) GoString() string { return s.String() } // A JSON object containing the of the gateway to shut down. type ShutdownGatewayInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataShutdownGatewayInput `json:"-" xml:"-"` +} + +type metadataShutdownGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5380,29 +4247,17 @@ func (s ShutdownGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ShutdownGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ShutdownGatewayInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the of the gateway that was shut down. type ShutdownGatewayOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataShutdownGatewayOutput `json:"-" xml:"-"` +} + +type metadataShutdownGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5417,11 +4272,15 @@ func (s ShutdownGatewayOutput) GoString() string { // A JSON object containing the of the gateway to start. type StartGatewayInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataStartGatewayInput `json:"-" xml:"-"` +} + +type metadataStartGatewayInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5434,29 +4293,17 @@ func (s StartGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartGatewayInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the of the gateway that was restarted. type StartGatewayOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataStartGatewayOutput `json:"-" xml:"-"` +} + +type metadataStartGatewayOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5470,81 +4317,46 @@ func (s StartGatewayOutput) GoString() string { } type StorediSCSIVolume struct { - _ struct{} `type:"structure"` - PreservedExistingData *bool `type:"boolean"` SourceSnapshotId *string `type:"string"` - VolumeARN *string `min:"50" type:"string"` + VolumeARN *string `type:"string"` - VolumeDiskId *string `min:"1" type:"string"` + VolumeDiskId *string `type:"string"` - VolumeId *string `min:"12" type:"string"` + VolumeId *string `type:"string"` VolumeProgress *float64 `type:"double"` VolumeSizeInBytes *int64 `type:"long"` - VolumeStatus *string `min:"3" type:"string"` + VolumeStatus *string `type:"string"` - VolumeType *string `min:"3" type:"string"` + VolumeType *string `type:"string"` // Lists iSCSI information about a volume. VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"` -} - -// String returns the string representation -func (s StorediSCSIVolume) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s StorediSCSIVolume) GoString() string { - return s.String() + metadataStorediSCSIVolume `json:"-" xml:"-"` } -type Tag struct { - _ struct{} `type:"structure"` - - Key *string `min:"1" type:"string" required:"true"` - - Value *string `type:"string" required:"true"` +type metadataStorediSCSIVolume struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Tag) String() string { +func (s StorediSCSIVolume) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Tag) GoString() string { +func (s StorediSCSIVolume) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - 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.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Describes a virtual tape object. type Tape struct { - _ struct{} `type:"structure"` - // For archiving virtual tapes, indicates how much data remains to be uploaded // before archiving is complete. // @@ -5552,10 +4364,10 @@ type Tape struct { Progress *float64 `type:"double"` // The Amazon Resource Name (ARN) of the virtual tape. - TapeARN *string `min:"50" type:"string"` + TapeARN *string `type:"string"` // The barcode that identifies a specific virtual tape. - TapeBarcode *string `min:"7" type:"string"` + TapeBarcode *string `type:"string"` // The size, in bytes, of the virtual tape. TapeSizeInBytes *int64 `type:"long"` @@ -5565,7 +4377,13 @@ type Tape struct { // The virtual tape library (VTL) device that the virtual tape is associated // with. - VTLDevice *string `min:"50" type:"string"` + VTLDevice *string `type:"string"` + + metadataTape `json:"-" xml:"-"` +} + +type metadataTape struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5580,8 +4398,6 @@ func (s Tape) GoString() string { // Represents a virtual tape that is archived in the virtual tape shelf (VTS). type TapeArchive struct { - _ struct{} `type:"structure"` - // The time that the archiving of the virtual tape was completed. // // The string format of the completion time is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' @@ -5592,68 +4408,41 @@ type TapeArchive struct { // being retrieved to. // // The virtual tape is retrieved from the virtual tape shelf (VTS). - RetrievedTo *string `min:"50" type:"string"` + RetrievedTo *string `type:"string"` // The Amazon Resource Name (ARN) of an archived virtual tape. - TapeARN *string `min:"50" type:"string"` + TapeARN *string `type:"string"` // The barcode that identifies the archived virtual tape. - TapeBarcode *string `min:"7" type:"string"` + TapeBarcode *string `type:"string"` // The size, in bytes, of the archived virtual tape. TapeSizeInBytes *int64 `type:"long"` // The current state of the archived virtual tape. TapeStatus *string `type:"string"` -} - -// String returns the string representation -func (s TapeArchive) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s TapeArchive) GoString() string { - return s.String() + metadataTapeArchive `json:"-" xml:"-"` } -// Describes a virtual tape. -type TapeInfo struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation - // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` - - // The Amazon Resource Name (ARN) of a virtual tape. - TapeARN *string `min:"50" type:"string"` - - // The barcode that identifies a specific virtual tape. - TapeBarcode *string `min:"7" type:"string"` - - // The size, in bytes, of a virtual tape. - TapeSizeInBytes *int64 `type:"long"` - - // The status of the tape. - TapeStatus *string `type:"string"` +type metadataTapeArchive struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s TapeInfo) String() string { +func (s TapeArchive) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TapeInfo) GoString() string { +func (s TapeArchive) GoString() string { return s.String() } // Describes a recovery point. type TapeRecoveryPointInfo struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the virtual tape. - TapeARN *string `min:"50" type:"string"` + TapeARN *string `type:"string"` // The time when the point-in-time view of the virtual tape was replicated for // later recovery. @@ -5666,6 +4455,12 @@ type TapeRecoveryPointInfo struct { TapeSizeInBytes *int64 `type:"long"` TapeStatus *string `type:"string"` + + metadataTapeRecoveryPointInfo `json:"-" xml:"-"` +} + +type metadataTapeRecoveryPointInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5680,21 +4475,23 @@ func (s TapeRecoveryPointInfo) GoString() string { // A JSON object containing one or more of the following fields: // -// UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec -// -// UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec +// UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec type UpdateBandwidthRateLimitInput struct { - _ struct{} `type:"structure"` - // The average download bandwidth rate limit in bits per second. - AverageDownloadRateLimitInBitsPerSec *int64 `min:"102400" type:"long"` + AverageDownloadRateLimitInBitsPerSec *int64 `type:"long"` // The average upload bandwidth rate limit in bits per second. - AverageUploadRateLimitInBitsPerSec *int64 `min:"51200" type:"long"` + AverageUploadRateLimitInBitsPerSec *int64 `type:"long"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataUpdateBandwidthRateLimitInput `json:"-" xml:"-"` +} + +type metadataUpdateBandwidthRateLimitInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5707,36 +4504,18 @@ func (s UpdateBandwidthRateLimitInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateBandwidthRateLimitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateBandwidthRateLimitInput"} - if s.AverageDownloadRateLimitInBitsPerSec != nil && *s.AverageDownloadRateLimitInBitsPerSec < 102400 { - invalidParams.Add(request.NewErrParamMinValue("AverageDownloadRateLimitInBitsPerSec", 102400)) - } - if s.AverageUploadRateLimitInBitsPerSec != nil && *s.AverageUploadRateLimitInBitsPerSec < 51200 { - invalidParams.Add(request.NewErrParamMinValue("AverageUploadRateLimitInBitsPerSec", 51200)) - } - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the of the gateway whose throttle information was // updated. type UpdateBandwidthRateLimitOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataUpdateBandwidthRateLimitOutput `json:"-" xml:"-"` +} + +type metadataUpdateBandwidthRateLimitOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5751,24 +4530,17 @@ func (s UpdateBandwidthRateLimitOutput) GoString() string { // A JSON object containing one or more of the following fields: // -// UpdateChapCredentialsInput$InitiatorName -// -// UpdateChapCredentialsInput$SecretToAuthenticateInitiator -// -// UpdateChapCredentialsInput$SecretToAuthenticateTarget -// -// UpdateChapCredentialsInput$TargetARN +// UpdateChapCredentialsInput$InitiatorName UpdateChapCredentialsInput$SecretToAuthenticateInitiator +// UpdateChapCredentialsInput$SecretToAuthenticateTarget UpdateChapCredentialsInput$TargetARN type UpdateChapCredentialsInput struct { - _ struct{} `type:"structure"` - // The iSCSI initiator that connects to the target. - InitiatorName *string `min:"1" type:"string" required:"true"` + InitiatorName *string `type:"string" required:"true"` // The secret key that the initiator (for example, the Windows client) must // provide to participate in mutual CHAP with the target. // // The secret key must be between 12 and 16 bytes when encoded in UTF-8. - SecretToAuthenticateInitiator *string `min:"1" type:"string" required:"true"` + SecretToAuthenticateInitiator *string `type:"string" required:"true"` // The secret key that the target must provide to participate in mutual CHAP // with the initiator (e.g. Windows client). @@ -5776,11 +4548,17 @@ type UpdateChapCredentialsInput struct { // Byte constraints: Minimum bytes of 12. Maximum bytes of 16. // // The secret key must be between 12 and 16 bytes when encoded in UTF-8. - SecretToAuthenticateTarget *string `min:"1" type:"string"` + SecretToAuthenticateTarget *string `type:"string"` // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes // operation to return the TargetARN for specified VolumeARN. - TargetARN *string `min:"50" type:"string" required:"true"` + TargetARN *string `type:"string" required:"true"` + + metadataUpdateChapCredentialsInput `json:"-" xml:"-"` +} + +type metadataUpdateChapCredentialsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5793,48 +4571,21 @@ func (s UpdateChapCredentialsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateChapCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateChapCredentialsInput"} - if s.InitiatorName == nil { - invalidParams.Add(request.NewErrParamRequired("InitiatorName")) - } - if s.InitiatorName != nil && len(*s.InitiatorName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InitiatorName", 1)) - } - if s.SecretToAuthenticateInitiator == nil { - invalidParams.Add(request.NewErrParamRequired("SecretToAuthenticateInitiator")) - } - if s.SecretToAuthenticateInitiator != nil && len(*s.SecretToAuthenticateInitiator) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretToAuthenticateInitiator", 1)) - } - if s.SecretToAuthenticateTarget != nil && len(*s.SecretToAuthenticateTarget) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecretToAuthenticateTarget", 1)) - } - if s.TargetARN == nil { - invalidParams.Add(request.NewErrParamRequired("TargetARN")) - } - if s.TargetARN != nil && len(*s.TargetARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("TargetARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the following fields: type UpdateChapCredentialsOutput struct { - _ struct{} `type:"structure"` - // The iSCSI initiator that connects to the target. This is the same initiator // name specified in the request. - InitiatorName *string `min:"1" type:"string"` + InitiatorName *string `type:"string"` // The Amazon Resource Name (ARN) of the target. This is the same target specified // in the request. - TargetARN *string `min:"50" type:"string"` + TargetARN *string `type:"string"` + + metadataUpdateChapCredentialsOutput `json:"-" xml:"-"` +} + +type metadataUpdateChapCredentialsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5848,16 +4599,21 @@ func (s UpdateChapCredentialsOutput) GoString() string { } type UpdateGatewayInformationInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + // A unique identifier for your gateway. This name becomes part of the gateway + // Amazon Resources Name (ARN) which is what you use as an input to other operations. + GatewayName *string `type:"string"` - // The name you configured for your gateway. - GatewayName *string `min:"2" type:"string"` + GatewayTimezone *string `type:"string"` - GatewayTimezone *string `min:"3" type:"string"` + metadataUpdateGatewayInformationInput `json:"-" xml:"-"` +} + +type metadataUpdateGatewayInformationInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5870,37 +4626,17 @@ func (s UpdateGatewayInformationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateGatewayInformationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateGatewayInformationInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.GatewayName != nil && len(*s.GatewayName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("GatewayName", 2)) - } - if s.GatewayTimezone != nil && len(*s.GatewayTimezone) < 3 { - invalidParams.Add(request.NewErrParamMinLen("GatewayTimezone", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A JSON object containing the ARN of the gateway that was updated. +// A JSON object containing the of the gateway that was updated. type UpdateGatewayInformationOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` - GatewayName *string `type:"string"` + metadataUpdateGatewayInformationOutput `json:"-" xml:"-"` +} + +type metadataUpdateGatewayInformationOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5915,11 +4651,15 @@ func (s UpdateGatewayInformationOutput) GoString() string { // A JSON object containing the of the gateway to update. type UpdateGatewaySoftwareNowInput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` + + metadataUpdateGatewaySoftwareNowInput `json:"-" xml:"-"` +} + +type metadataUpdateGatewaySoftwareNowInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5932,29 +4672,17 @@ func (s UpdateGatewaySoftwareNowInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateGatewaySoftwareNowInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateGatewaySoftwareNowInput"} - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the of the gateway that was updated. type UpdateGatewaySoftwareNowOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataUpdateGatewaySoftwareNowOutput `json:"-" xml:"-"` +} + +type metadataUpdateGatewaySoftwareNowOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5969,20 +4697,15 @@ func (s UpdateGatewaySoftwareNowOutput) GoString() string { // A JSON object containing the following fields: // -// UpdateMaintenanceStartTimeInput$DayOfWeek -// -// UpdateMaintenanceStartTimeInput$HourOfDay -// -// UpdateMaintenanceStartTimeInput$MinuteOfHour +// UpdateMaintenanceStartTimeInput$DayOfWeek UpdateMaintenanceStartTimeInput$HourOfDay +// UpdateMaintenanceStartTimeInput$MinuteOfHour type UpdateMaintenanceStartTimeInput struct { - _ struct{} `type:"structure"` - // The maintenance start time day of the week. DayOfWeek *int64 `type:"integer" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string" required:"true"` + GatewayARN *string `type:"string" required:"true"` // The hour component of the maintenance start time represented as hh, where // hh is the hour (00 to 23). The hour of the day is in the time zone of the @@ -5993,6 +4716,12 @@ type UpdateMaintenanceStartTimeInput struct { // mm is the minute (00 to 59). The minute of the hour is in the time zone of // the gateway. MinuteOfHour *int64 `type:"integer" required:"true"` + + metadataUpdateMaintenanceStartTimeInput `json:"-" xml:"-"` +} + +type metadataUpdateMaintenanceStartTimeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6005,39 +4734,18 @@ func (s UpdateMaintenanceStartTimeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateMaintenanceStartTimeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateMaintenanceStartTimeInput"} - if s.DayOfWeek == nil { - invalidParams.Add(request.NewErrParamRequired("DayOfWeek")) - } - if s.GatewayARN == nil { - invalidParams.Add(request.NewErrParamRequired("GatewayARN")) - } - if s.GatewayARN != nil && len(*s.GatewayARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50)) - } - if s.HourOfDay == nil { - invalidParams.Add(request.NewErrParamRequired("HourOfDay")) - } - if s.MinuteOfHour == nil { - invalidParams.Add(request.NewErrParamRequired("MinuteOfHour")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the of the gateway whose maintenance start time // is updated. type UpdateMaintenanceStartTimeOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` + GatewayARN *string `type:"string"` + + metadataUpdateMaintenanceStartTimeOutput `json:"-" xml:"-"` +} + +type metadataUpdateMaintenanceStartTimeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6052,21 +4760,14 @@ func (s UpdateMaintenanceStartTimeOutput) GoString() string { // A JSON object containing one or more of the following fields: // -// UpdateSnapshotScheduleInput$Description -// -// UpdateSnapshotScheduleInput$RecurrenceInHours -// -// UpdateSnapshotScheduleInput$StartAt -// -// UpdateSnapshotScheduleInput$VolumeARN +// UpdateSnapshotScheduleInput$Description UpdateSnapshotScheduleInput$RecurrenceInHours +// UpdateSnapshotScheduleInput$StartAt UpdateSnapshotScheduleInput$VolumeARN type UpdateSnapshotScheduleInput struct { - _ struct{} `type:"structure"` - // Optional description of the snapshot that overwrites the existing description. - Description *string `min:"1" type:"string"` + Description *string `type:"string"` // Frequency of snapshots. Specify the number of hours between snapshots. - RecurrenceInHours *int64 `min:"1" type:"integer" required:"true"` + RecurrenceInHours *int64 `type:"integer" required:"true"` // The hour of the day at which the snapshot schedule begins represented as // hh, where hh is the hour (0 to 23). The hour of the day is in the time zone @@ -6075,7 +4776,13 @@ type UpdateSnapshotScheduleInput struct { // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes. - VolumeARN *string `min:"50" type:"string" required:"true"` + VolumeARN *string `type:"string" required:"true"` + + metadataUpdateSnapshotScheduleInput `json:"-" xml:"-"` +} + +type metadataUpdateSnapshotScheduleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6088,39 +4795,15 @@ func (s UpdateSnapshotScheduleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSnapshotScheduleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSnapshotScheduleInput"} - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.RecurrenceInHours == nil { - invalidParams.Add(request.NewErrParamRequired("RecurrenceInHours")) - } - if s.RecurrenceInHours != nil && *s.RecurrenceInHours < 1 { - invalidParams.Add(request.NewErrParamMinValue("RecurrenceInHours", 1)) - } - if s.StartAt == nil { - invalidParams.Add(request.NewErrParamRequired("StartAt")) - } - if s.VolumeARN == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeARN")) - } - if s.VolumeARN != nil && len(*s.VolumeARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A JSON object containing the of the updated storage volume. type UpdateSnapshotScheduleOutput struct { - _ struct{} `type:"structure"` + VolumeARN *string `type:"string"` + + metadataUpdateSnapshotScheduleOutput `json:"-" xml:"-"` +} - VolumeARN *string `min:"50" type:"string"` +type metadataUpdateSnapshotScheduleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6133,16 +4816,21 @@ func (s UpdateSnapshotScheduleOutput) GoString() string { return s.String() } +// UpdateVTLDeviceTypeInput type UpdateVTLDeviceTypeInput struct { - _ struct{} `type:"structure"` - // The type of medium changer you want to select. // - // Valid Values: "STK-L700", "AWS-Gateway-VTL" - DeviceType *string `min:"2" type:"string" required:"true"` + // Valid Values: "STK-L700", "AWS-Gateway-VTL" + DeviceType *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the medium changer you want to select. - VTLDeviceARN *string `min:"50" type:"string" required:"true"` + VTLDeviceARN *string `type:"string" required:"true"` + + metadataUpdateVTLDeviceTypeInput `json:"-" xml:"-"` +} + +type metadataUpdateVTLDeviceTypeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6155,34 +4843,16 @@ func (s UpdateVTLDeviceTypeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateVTLDeviceTypeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateVTLDeviceTypeInput"} - if s.DeviceType == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceType")) - } - if s.DeviceType != nil && len(*s.DeviceType) < 2 { - invalidParams.Add(request.NewErrParamMinLen("DeviceType", 2)) - } - if s.VTLDeviceARN == nil { - invalidParams.Add(request.NewErrParamRequired("VTLDeviceARN")) - } - if s.VTLDeviceARN != nil && len(*s.VTLDeviceARN) < 50 { - invalidParams.Add(request.NewErrParamMinLen("VTLDeviceARN", 50)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // UpdateVTLDeviceTypeOutput type UpdateVTLDeviceTypeOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the medium changer you have selected. - VTLDeviceARN *string `min:"50" type:"string"` + VTLDeviceARN *string `type:"string"` + + metadataUpdateVTLDeviceTypeOutput `json:"-" xml:"-"` +} + +type metadataUpdateVTLDeviceTypeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6197,20 +4867,24 @@ func (s UpdateVTLDeviceTypeOutput) GoString() string { // Represents a device object associated with a gateway-VTL. type VTLDevice struct { - _ struct{} `type:"structure"` - // A list of iSCSI information about a VTL device. DeviceiSCSIAttributes *DeviceiSCSIAttributes `type:"structure"` // Specifies the unique Amazon Resource Name (ARN) of the device (tape drive // or media changer). - VTLDeviceARN *string `min:"50" type:"string"` + VTLDeviceARN *string `type:"string"` VTLDeviceProductIdentifier *string `type:"string"` VTLDeviceType *string `type:"string"` VTLDeviceVendor *string `type:"string"` + + metadataVTLDevice `json:"-" xml:"-"` +} + +type metadataVTLDevice struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6223,45 +4897,16 @@ func (s VTLDevice) GoString() string { return s.String() } -// Describes a storage volume object. type VolumeInfo struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation - // to return a list of gateways for your account and region. - GatewayARN *string `min:"50" type:"string"` - - // The unique identifier assigned to your gateway during activation. This ID - // becomes part of the gateway Amazon Resource Name (ARN), which you use as - // input for other operations. - // - // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens - // (-). - GatewayId *string `min:"12" type:"string"` - - // The Amazon Resource Name (ARN) for the storage volume. For example, the following - // is a valid ARN: - // - // arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB - // - // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens - // (-). - VolumeARN *string `min:"50" type:"string"` + VolumeARN *string `type:"string"` - // The unique identifier assigned to the volume. This ID becomes part of the - // volume Amazon Resource Name (ARN), which you use as input for other operations. - // - // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens - // (-). - VolumeId *string `min:"12" type:"string"` + VolumeType *string `type:"string"` - // The size, in bytes, of the volume. - // - // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens - // (-). - VolumeSizeInBytes *int64 `type:"long"` + metadataVolumeInfo `json:"-" xml:"-"` +} - VolumeType *string `min:"3" type:"string"` +type metadataVolumeInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6275,15 +4920,19 @@ func (s VolumeInfo) GoString() string { } type VolumeRecoveryPointInfo struct { - _ struct{} `type:"structure"` - - VolumeARN *string `min:"50" type:"string"` + VolumeARN *string `type:"string"` VolumeRecoveryPointTime *string `type:"string"` VolumeSizeInBytes *int64 `type:"long"` VolumeUsageInBytes *int64 `type:"long"` + + metadataVolumeRecoveryPointInfo `json:"-" xml:"-"` +} + +type metadataVolumeRecoveryPointInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6298,13 +4947,11 @@ func (s VolumeRecoveryPointInfo) GoString() string { // Lists iSCSI information about a volume. type VolumeiSCSIAttributes struct { - _ struct{} `type:"structure"` - // Indicates whether mutual CHAP is enabled for the iSCSI target. ChapEnabled *bool `type:"boolean"` // The logical disk number. - LunNumber *int64 `min:"1" type:"integer"` + LunNumber *int64 `type:"integer"` // The network interface identifier. NetworkInterfaceId *string `type:"string"` @@ -6313,7 +4960,13 @@ type VolumeiSCSIAttributes struct { NetworkInterfacePort *int64 `type:"integer"` // The Amazon Resource Name (ARN) of the volume target. - TargetARN *string `min:"50" type:"string"` + TargetARN *string `type:"string"` + + metadataVolumeiSCSIAttributes `json:"-" xml:"-"` +} + +type metadataVolumeiSCSIAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go index 5f03167fa..18ed2f11b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/storagegateway" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleStorageGateway_ActivateGateway() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.ActivateGatewayInput{ ActivationKey: aws.String("ActivationKey"), // Required @@ -41,7 +40,7 @@ func ExampleStorageGateway_ActivateGateway() { } func ExampleStorageGateway_AddCache() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.AddCacheInput{ DiskIds: []*string{ // Required @@ -63,34 +62,8 @@ func ExampleStorageGateway_AddCache() { fmt.Println(resp) } -func ExampleStorageGateway_AddTagsToResource() { - svc := storagegateway.New(session.New()) - - params := &storagegateway.AddTagsToResourceInput{ - ResourceARN: aws.String("ResourceARN"), // Required - Tags: []*storagegateway.Tag{ // Required - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), // Required - }, - // More values... - }, - } - resp, err := svc.AddTagsToResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleStorageGateway_AddUploadBuffer() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.AddUploadBufferInput{ DiskIds: []*string{ // Required @@ -113,7 +86,7 @@ func ExampleStorageGateway_AddUploadBuffer() { } func ExampleStorageGateway_AddWorkingStorage() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.AddWorkingStorageInput{ DiskIds: []*string{ // Required @@ -136,7 +109,7 @@ func ExampleStorageGateway_AddWorkingStorage() { } func ExampleStorageGateway_CancelArchival() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.CancelArchivalInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -156,7 +129,7 @@ func ExampleStorageGateway_CancelArchival() { } func ExampleStorageGateway_CancelRetrieval() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.CancelRetrievalInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -176,7 +149,7 @@ func ExampleStorageGateway_CancelRetrieval() { } func ExampleStorageGateway_CreateCachediSCSIVolume() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.CreateCachediSCSIVolumeInput{ ClientToken: aws.String("ClientToken"), // Required @@ -200,7 +173,7 @@ func ExampleStorageGateway_CreateCachediSCSIVolume() { } func ExampleStorageGateway_CreateSnapshot() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.CreateSnapshotInput{ SnapshotDescription: aws.String("SnapshotDescription"), // Required @@ -220,7 +193,7 @@ func ExampleStorageGateway_CreateSnapshot() { } func ExampleStorageGateway_CreateSnapshotFromVolumeRecoveryPoint() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.CreateSnapshotFromVolumeRecoveryPointInput{ SnapshotDescription: aws.String("SnapshotDescription"), // Required @@ -240,7 +213,7 @@ func ExampleStorageGateway_CreateSnapshotFromVolumeRecoveryPoint() { } func ExampleStorageGateway_CreateStorediSCSIVolume() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.CreateStorediSCSIVolumeInput{ DiskId: aws.String("DiskId"), // Required @@ -263,29 +236,8 @@ func ExampleStorageGateway_CreateStorediSCSIVolume() { fmt.Println(resp) } -func ExampleStorageGateway_CreateTapeWithBarcode() { - svc := storagegateway.New(session.New()) - - params := &storagegateway.CreateTapeWithBarcodeInput{ - GatewayARN: aws.String("GatewayARN"), // Required - TapeBarcode: aws.String("TapeBarcode"), // Required - TapeSizeInBytes: aws.Int64(1), // Required - } - resp, err := svc.CreateTapeWithBarcode(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleStorageGateway_CreateTapes() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.CreateTapesInput{ ClientToken: aws.String("ClientToken"), // Required @@ -308,7 +260,7 @@ func ExampleStorageGateway_CreateTapes() { } func ExampleStorageGateway_DeleteBandwidthRateLimit() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DeleteBandwidthRateLimitInput{ BandwidthType: aws.String("BandwidthType"), // Required @@ -328,7 +280,7 @@ func ExampleStorageGateway_DeleteBandwidthRateLimit() { } func ExampleStorageGateway_DeleteChapCredentials() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DeleteChapCredentialsInput{ InitiatorName: aws.String("IqnName"), // Required @@ -348,7 +300,7 @@ func ExampleStorageGateway_DeleteChapCredentials() { } func ExampleStorageGateway_DeleteGateway() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DeleteGatewayInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -367,7 +319,7 @@ func ExampleStorageGateway_DeleteGateway() { } func ExampleStorageGateway_DeleteSnapshotSchedule() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DeleteSnapshotScheduleInput{ VolumeARN: aws.String("VolumeARN"), // Required @@ -386,7 +338,7 @@ func ExampleStorageGateway_DeleteSnapshotSchedule() { } func ExampleStorageGateway_DeleteTape() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DeleteTapeInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -406,7 +358,7 @@ func ExampleStorageGateway_DeleteTape() { } func ExampleStorageGateway_DeleteTapeArchive() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DeleteTapeArchiveInput{ TapeARN: aws.String("TapeARN"), // Required @@ -425,7 +377,7 @@ func ExampleStorageGateway_DeleteTapeArchive() { } func ExampleStorageGateway_DeleteVolume() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DeleteVolumeInput{ VolumeARN: aws.String("VolumeARN"), // Required @@ -444,7 +396,7 @@ func ExampleStorageGateway_DeleteVolume() { } func ExampleStorageGateway_DescribeBandwidthRateLimit() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeBandwidthRateLimitInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -463,7 +415,7 @@ func ExampleStorageGateway_DescribeBandwidthRateLimit() { } func ExampleStorageGateway_DescribeCache() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeCacheInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -482,7 +434,7 @@ func ExampleStorageGateway_DescribeCache() { } func ExampleStorageGateway_DescribeCachediSCSIVolumes() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeCachediSCSIVolumesInput{ VolumeARNs: []*string{ // Required @@ -504,7 +456,7 @@ func ExampleStorageGateway_DescribeCachediSCSIVolumes() { } func ExampleStorageGateway_DescribeChapCredentials() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeChapCredentialsInput{ TargetARN: aws.String("TargetARN"), // Required @@ -523,7 +475,7 @@ func ExampleStorageGateway_DescribeChapCredentials() { } func ExampleStorageGateway_DescribeGatewayInformation() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeGatewayInformationInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -542,7 +494,7 @@ func ExampleStorageGateway_DescribeGatewayInformation() { } func ExampleStorageGateway_DescribeMaintenanceStartTime() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeMaintenanceStartTimeInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -561,7 +513,7 @@ func ExampleStorageGateway_DescribeMaintenanceStartTime() { } func ExampleStorageGateway_DescribeSnapshotSchedule() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeSnapshotScheduleInput{ VolumeARN: aws.String("VolumeARN"), // Required @@ -580,7 +532,7 @@ func ExampleStorageGateway_DescribeSnapshotSchedule() { } func ExampleStorageGateway_DescribeStorediSCSIVolumes() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeStorediSCSIVolumesInput{ VolumeARNs: []*string{ // Required @@ -602,7 +554,7 @@ func ExampleStorageGateway_DescribeStorediSCSIVolumes() { } func ExampleStorageGateway_DescribeTapeArchives() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeTapeArchivesInput{ Limit: aws.Int64(1), @@ -626,7 +578,7 @@ func ExampleStorageGateway_DescribeTapeArchives() { } func ExampleStorageGateway_DescribeTapeRecoveryPoints() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeTapeRecoveryPointsInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -647,7 +599,7 @@ func ExampleStorageGateway_DescribeTapeRecoveryPoints() { } func ExampleStorageGateway_DescribeTapes() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeTapesInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -672,7 +624,7 @@ func ExampleStorageGateway_DescribeTapes() { } func ExampleStorageGateway_DescribeUploadBuffer() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeUploadBufferInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -691,7 +643,7 @@ func ExampleStorageGateway_DescribeUploadBuffer() { } func ExampleStorageGateway_DescribeVTLDevices() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeVTLDevicesInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -716,7 +668,7 @@ func ExampleStorageGateway_DescribeVTLDevices() { } func ExampleStorageGateway_DescribeWorkingStorage() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DescribeWorkingStorageInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -735,7 +687,7 @@ func ExampleStorageGateway_DescribeWorkingStorage() { } func ExampleStorageGateway_DisableGateway() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.DisableGatewayInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -754,7 +706,7 @@ func ExampleStorageGateway_DisableGateway() { } func ExampleStorageGateway_ListGateways() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.ListGatewaysInput{ Limit: aws.Int64(1), @@ -774,7 +726,7 @@ func ExampleStorageGateway_ListGateways() { } func ExampleStorageGateway_ListLocalDisks() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.ListLocalDisksInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -792,53 +744,8 @@ func ExampleStorageGateway_ListLocalDisks() { fmt.Println(resp) } -func ExampleStorageGateway_ListTagsForResource() { - svc := storagegateway.New(session.New()) - - params := &storagegateway.ListTagsForResourceInput{ - ResourceARN: aws.String("ResourceARN"), // Required - Limit: aws.Int64(1), - Marker: aws.String("Marker"), - } - resp, err := svc.ListTagsForResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleStorageGateway_ListTapes() { - svc := storagegateway.New(session.New()) - - params := &storagegateway.ListTapesInput{ - Limit: aws.Int64(1), - Marker: aws.String("Marker"), - TapeARNs: []*string{ - aws.String("TapeARN"), // Required - // More values... - }, - } - resp, err := svc.ListTapes(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleStorageGateway_ListVolumeInitiators() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.ListVolumeInitiatorsInput{ VolumeARN: aws.String("VolumeARN"), // Required @@ -857,7 +764,7 @@ func ExampleStorageGateway_ListVolumeInitiators() { } func ExampleStorageGateway_ListVolumeRecoveryPoints() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.ListVolumeRecoveryPointsInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -876,10 +783,10 @@ func ExampleStorageGateway_ListVolumeRecoveryPoints() { } func ExampleStorageGateway_ListVolumes() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.ListVolumesInput{ - GatewayARN: aws.String("GatewayARN"), + GatewayARN: aws.String("GatewayARN"), // Required Limit: aws.Int64(1), Marker: aws.String("Marker"), } @@ -896,31 +803,8 @@ func ExampleStorageGateway_ListVolumes() { fmt.Println(resp) } -func ExampleStorageGateway_RemoveTagsFromResource() { - svc := storagegateway.New(session.New()) - - params := &storagegateway.RemoveTagsFromResourceInput{ - ResourceARN: aws.String("ResourceARN"), // Required - TagKeys: []*string{ // Required - aws.String("TagKey"), // Required - // More values... - }, - } - resp, err := svc.RemoveTagsFromResource(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleStorageGateway_ResetCache() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.ResetCacheInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -939,7 +823,7 @@ func ExampleStorageGateway_ResetCache() { } func ExampleStorageGateway_RetrieveTapeArchive() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.RetrieveTapeArchiveInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -959,7 +843,7 @@ func ExampleStorageGateway_RetrieveTapeArchive() { } func ExampleStorageGateway_RetrieveTapeRecoveryPoint() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.RetrieveTapeRecoveryPointInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -978,28 +862,8 @@ func ExampleStorageGateway_RetrieveTapeRecoveryPoint() { fmt.Println(resp) } -func ExampleStorageGateway_SetLocalConsolePassword() { - svc := storagegateway.New(session.New()) - - params := &storagegateway.SetLocalConsolePasswordInput{ - GatewayARN: aws.String("GatewayARN"), // Required - LocalConsolePassword: aws.String("LocalConsolePassword"), // Required - } - resp, err := svc.SetLocalConsolePassword(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleStorageGateway_ShutdownGateway() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.ShutdownGatewayInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -1018,7 +882,7 @@ func ExampleStorageGateway_ShutdownGateway() { } func ExampleStorageGateway_StartGateway() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.StartGatewayInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -1037,7 +901,7 @@ func ExampleStorageGateway_StartGateway() { } func ExampleStorageGateway_UpdateBandwidthRateLimit() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.UpdateBandwidthRateLimitInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -1058,7 +922,7 @@ func ExampleStorageGateway_UpdateBandwidthRateLimit() { } func ExampleStorageGateway_UpdateChapCredentials() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.UpdateChapCredentialsInput{ InitiatorName: aws.String("IqnName"), // Required @@ -1080,7 +944,7 @@ func ExampleStorageGateway_UpdateChapCredentials() { } func ExampleStorageGateway_UpdateGatewayInformation() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.UpdateGatewayInformationInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -1101,7 +965,7 @@ func ExampleStorageGateway_UpdateGatewayInformation() { } func ExampleStorageGateway_UpdateGatewaySoftwareNow() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.UpdateGatewaySoftwareNowInput{ GatewayARN: aws.String("GatewayARN"), // Required @@ -1120,7 +984,7 @@ func ExampleStorageGateway_UpdateGatewaySoftwareNow() { } func ExampleStorageGateway_UpdateMaintenanceStartTime() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.UpdateMaintenanceStartTimeInput{ DayOfWeek: aws.Int64(1), // Required @@ -1142,7 +1006,7 @@ func ExampleStorageGateway_UpdateMaintenanceStartTime() { } func ExampleStorageGateway_UpdateSnapshotSchedule() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.UpdateSnapshotScheduleInput{ RecurrenceInHours: aws.Int64(1), // Required @@ -1164,7 +1028,7 @@ func ExampleStorageGateway_UpdateSnapshotSchedule() { } func ExampleStorageGateway_UpdateVTLDeviceType() { - svc := storagegateway.New(session.New()) + svc := storagegateway.New(nil) params := &storagegateway.UpdateVTLDeviceTypeInput{ DeviceType: aws.String("DeviceType"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/service.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/service.go index eea7b49f7..927ce186a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/service.go @@ -4,11 +4,12 @@ package storagegateway import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // AWS Storage Gateway is the service that connects an on-premises software @@ -20,109 +21,54 @@ import ( // Use the following links to get started using the AWS Storage Gateway Service // API Reference: // -// AWS Storage Gateway Required Request Headers (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayHTTPRequestsHeaders.html): +// AWS Storage Gateway Required Request Headers (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayHTTPRequestsHeaders.html): // Describes the required headers that you must send with every POST request -// to AWS Storage Gateway. -// -// Signing Requests (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewaySigningRequests.html): +// to AWS Storage Gateway. Signing Requests (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewaySigningRequests.html): // AWS Storage Gateway requires that you authenticate every request you send; -// this topic describes how sign such a request. -// -// Error Responses (http://docs.aws.amazon.com/storagegateway/latest/userguide/APIErrorResponses.html): -// Provides reference information about AWS Storage Gateway errors. -// -// Operations in AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPIOperations.html): +// this topic describes how sign such a request. Error Responses (http://docs.aws.amazon.com/storagegateway/latest/userguide/APIErrorResponses.html): +// Provides reference information about AWS Storage Gateway errors. Operations +// in AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPIOperations.html): // Contains detailed descriptions of all AWS Storage Gateway operations, their // request parameters, response elements, possible errors, and examples of requests -// and responses. -// -// AWS Storage Gateway Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/index.html?rande.html): -// Provides a list of each of the s and endpoints available for use with AWS -// Storage Gateway. -// -// AWS Storage Gateway resource IDs are in uppercase. When you use these -// resource IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. -// You must change your resource ID to lowercase to use it with the EC2 API. -// For example, in Storage Gateway the ID for a volume might be vol-1122AABB. -// When you use this ID with the EC2 API, you must change it to vol-1122aabb. -// Otherwise, the EC2 API might not behave as expected. -// -// IDs for Storage Gateway volumes and Amazon EBS snapshots created from -// gateway volumes are changing to a longer format. Starting in December 2016, -// all new volumes and snapshots will be created with a 17-character string. -// Starting in April 2016, you will be able to use these longer IDs so you can -// test your systems with the new format. For more information, see Longer EC2 -// and EBS Resource IDs (https://aws.amazon.com/ec2/faqs/#longer-ids). -// -// For example, a volume ARN with the longer volume ID format will look like -// this: -// -// arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG. -// -// A snapshot ID with the longer ID format will look like this: snap-78e226633445566ee. -// -// For more information, see Announcement: Heads-up – Longer AWS Storage Gateway -// volume and snapshot IDs coming in 2016 (https://forums.aws.amazon.com/ann.jspa?annID=3557). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. +// and responses. AWS Storage Gateway Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/index.html?rande.html): +// Provides a list of each of the regions and endpoints available for use with +// AWS Storage Gateway. type StorageGateway struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "storagegateway" - -// New creates a new instance of the StorageGateway client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a StorageGateway client from just a session. -// svc := storagegateway.New(mySession) -// -// // Create a StorageGateway client with additional configuration -// svc := storagegateway.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *StorageGateway { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *StorageGateway { - svc := &StorageGateway{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2013-06-30", - JSONVersion: "1.1", - TargetPrefix: "StorageGateway_20130630", - }, - handlers, - ), +// New returns a new StorageGateway client. +func New(config *aws.Config) *StorageGateway { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "storagegateway", + APIVersion: "2013-06-30", + JSONVersion: "1.1", + TargetPrefix: "StorageGateway_20130630", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &StorageGateway{service} } // newRequest creates a new request for a StorageGateway operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go index c9b2680ac..c81d3c822 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface.go @@ -18,10 +18,6 @@ type StorageGatewayAPI interface { AddCache(*storagegateway.AddCacheInput) (*storagegateway.AddCacheOutput, error) - AddTagsToResourceRequest(*storagegateway.AddTagsToResourceInput) (*request.Request, *storagegateway.AddTagsToResourceOutput) - - AddTagsToResource(*storagegateway.AddTagsToResourceInput) (*storagegateway.AddTagsToResourceOutput, error) - AddUploadBufferRequest(*storagegateway.AddUploadBufferInput) (*request.Request, *storagegateway.AddUploadBufferOutput) AddUploadBuffer(*storagegateway.AddUploadBufferInput) (*storagegateway.AddUploadBufferOutput, error) @@ -54,10 +50,6 @@ type StorageGatewayAPI interface { CreateStorediSCSIVolume(*storagegateway.CreateStorediSCSIVolumeInput) (*storagegateway.CreateStorediSCSIVolumeOutput, error) - CreateTapeWithBarcodeRequest(*storagegateway.CreateTapeWithBarcodeInput) (*request.Request, *storagegateway.CreateTapeWithBarcodeOutput) - - CreateTapeWithBarcode(*storagegateway.CreateTapeWithBarcodeInput) (*storagegateway.CreateTapeWithBarcodeOutput, error) - CreateTapesRequest(*storagegateway.CreateTapesInput) (*request.Request, *storagegateway.CreateTapesOutput) CreateTapes(*storagegateway.CreateTapesInput) (*storagegateway.CreateTapesOutput, error) @@ -168,14 +160,6 @@ type StorageGatewayAPI interface { ListLocalDisks(*storagegateway.ListLocalDisksInput) (*storagegateway.ListLocalDisksOutput, error) - ListTagsForResourceRequest(*storagegateway.ListTagsForResourceInput) (*request.Request, *storagegateway.ListTagsForResourceOutput) - - ListTagsForResource(*storagegateway.ListTagsForResourceInput) (*storagegateway.ListTagsForResourceOutput, error) - - ListTapesRequest(*storagegateway.ListTapesInput) (*request.Request, *storagegateway.ListTapesOutput) - - ListTapes(*storagegateway.ListTapesInput) (*storagegateway.ListTapesOutput, error) - ListVolumeInitiatorsRequest(*storagegateway.ListVolumeInitiatorsInput) (*request.Request, *storagegateway.ListVolumeInitiatorsOutput) ListVolumeInitiators(*storagegateway.ListVolumeInitiatorsInput) (*storagegateway.ListVolumeInitiatorsOutput, error) @@ -190,10 +174,6 @@ type StorageGatewayAPI interface { ListVolumesPages(*storagegateway.ListVolumesInput, func(*storagegateway.ListVolumesOutput, bool) bool) error - RemoveTagsFromResourceRequest(*storagegateway.RemoveTagsFromResourceInput) (*request.Request, *storagegateway.RemoveTagsFromResourceOutput) - - RemoveTagsFromResource(*storagegateway.RemoveTagsFromResourceInput) (*storagegateway.RemoveTagsFromResourceOutput, error) - ResetCacheRequest(*storagegateway.ResetCacheInput) (*request.Request, *storagegateway.ResetCacheOutput) ResetCache(*storagegateway.ResetCacheInput) (*storagegateway.ResetCacheOutput, error) @@ -206,10 +186,6 @@ type StorageGatewayAPI interface { RetrieveTapeRecoveryPoint(*storagegateway.RetrieveTapeRecoveryPointInput) (*storagegateway.RetrieveTapeRecoveryPointOutput, error) - SetLocalConsolePasswordRequest(*storagegateway.SetLocalConsolePasswordInput) (*request.Request, *storagegateway.SetLocalConsolePasswordOutput) - - SetLocalConsolePassword(*storagegateway.SetLocalConsolePasswordInput) (*storagegateway.SetLocalConsolePasswordOutput, error) - ShutdownGatewayRequest(*storagegateway.ShutdownGatewayInput) (*request.Request, *storagegateway.ShutdownGatewayOutput) ShutdownGateway(*storagegateway.ShutdownGatewayInput) (*storagegateway.ShutdownGatewayOutput, error) @@ -246,5 +222,3 @@ type StorageGatewayAPI interface { UpdateVTLDeviceType(*storagegateway.UpdateVTLDeviceTypeInput) (*storagegateway.UpdateVTLDeviceTypeOutput, error) } - -var _ StorageGatewayAPI = (*storagegateway.StorageGateway)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface_test.go new file mode 100644 index 000000000..ef3dd5db8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package storagegatewayiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/storagegateway" + "github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*storagegatewayiface.StorageGatewayAPI)(nil), storagegateway.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go index 4d4a6bb95..fc96ab973 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/api.go @@ -33,15 +33,11 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // Returns a set of temporary security credentials (consisting of an access // key ID, a secret access key, and a security token) that you can use to access // AWS resources that you might not normally have access to. Typically, you -// use AssumeRole for cross-account access or federation. For a comparison of -// AssumeRole with the other APIs that produce temporary credentials, see Requesting -// Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html) -// and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison) -// in the IAM User Guide. +// use AssumeRole for cross-account access or federation. // -// Important: You cannot call AssumeRole by using AWS root account credentials; -// access is denied. You must use credentials for an IAM user or an IAM role -// to call AssumeRole. +// Important: You cannot call AssumeRole by using AWS account credentials; +// access will be denied. You must use IAM user credentials or temporary security +// credentials to call AssumeRole. // // For cross-account access, imagine that you own multiple accounts and need // to access resources in each account. You could create long-term credentials @@ -51,7 +47,7 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // then use temporary security credentials to access all the other accounts // by assuming roles in those accounts. For more information about roles, see // IAM Roles (Delegation and Federation) (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html) -// in the IAM User Guide. +// in Using IAM. // // For federation, you can, for example, grant single sign-on access to the // AWS Management Console. If you already have an identity and authentication @@ -60,17 +56,13 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // a user has been authenticated, you call AssumeRole (and specify the role // with the appropriate permissions) to get temporary security credentials for // that user. With those temporary security credentials, you construct a sign-in -// URL that users can use to access the console. For more information, see Common -// Scenarios for Temporary Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html#sts-introduction) -// in the IAM User Guide. +// URL that users can use to access the console. For more information, see Scenarios +// for Granting Temporary Access (http://docs.aws.amazon.com/STS/latest/UsingSTS/STSUseCases.html) +// in Using Temporary Security Credentials. // // The temporary security credentials are valid for the duration that you specified -// when calling AssumeRole, which can be from 900 seconds (15 minutes) to a -// maximum of 3600 seconds (1 hour). The default is 1 hour. -// -// The temporary security credentials created by AssumeRole can be used to -// make API calls to any AWS service with the following exception: you cannot -// call the STS service's GetFederationToken or GetSessionToken APIs. +// when calling AssumeRole, which can be from 900 seconds (15 minutes) to 3600 +// seconds (1 hour). The default is 1 hour. // // Optionally, you can pass an IAM access policy to this operation. If you // choose not to pass a policy, the temporary security credentials that are @@ -78,26 +70,17 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // policy of the role that is being assumed. If you pass a policy to this operation, // the temporary security credentials that are returned by the operation have // the permissions that are allowed by both the access policy of the role that -// is being assumed, and the policy that you pass. This gives you a way to -// further restrict the permissions for the resulting temporary security credentials. +// is being assumed, and the policy that you pass. This gives you a way to further +// restrict the permissions for the resulting temporary security credentials. // You cannot use the passed policy to grant permissions that are in excess // of those allowed by the access policy of the role that is being assumed. // For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, -// and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html) -// in the IAM User Guide. +// and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/STS/latest/UsingSTS/permissions-assume-role.html) +// in Using Temporary Security Credentials. // // To assume a role, your AWS account must be trusted by the role. The trust // relationship is defined in the role's trust policy when the role is created. -// That trust policy states which accounts are allowed to delegate access to -// this account's role. -// -// The user who wants to access the role must also have permissions delegated -// from the role's administrator. If the user is in a different account than -// the role, then the user's administrator must attach a policy that allows -// the user to call AssumeRole on the ARN of the role in the other account. -// If the user is in the same account as the role, then you can either attach -// a policy to the user (identical to the previous different account user), -// or you can add the user as a principal directly in the role's trust policy +// You must also have a policy that allows you to call sts:AssumeRole. // // Using MFA with AssumeRole // @@ -113,7 +96,7 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // "Condition": {"Bool": {"aws:MultiFactorAuthPresent": true}} // // For more information, see Configuring MFA-Protected API Access (http://docs.aws.amazon.com/IAM/latest/UserGuide/MFAProtectedAPI.html) -// in the IAM User Guide guide. +// in Using IAM guide. // // To use MFA with AssumeRole, you pass values for the SerialNumber and TokenCode // parameters. The SerialNumber value identifies the user's hardware or virtual @@ -148,39 +131,30 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // Returns a set of temporary security credentials for users who have been authenticated // via a SAML authentication response. This operation provides a mechanism for // tying an enterprise identity store or directory to role-based AWS access -// without user-specific credentials or configuration. For a comparison of AssumeRoleWithSAML -// with the other APIs that produce temporary credentials, see Requesting Temporary -// Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html) -// and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison) -// in the IAM User Guide. +// without user-specific credentials or configuration. // // The temporary security credentials returned by this operation consist of // an access key ID, a secret access key, and a security token. Applications // can use these temporary security credentials to sign calls to AWS services. -// -// The temporary security credentials are valid for the duration that you specified -// when calling AssumeRole, or until the time specified in the SAML authentication -// response's SessionNotOnOrAfter value, whichever is shorter. The duration -// can be from 900 seconds (15 minutes) to a maximum of 3600 seconds (1 hour). -// The default is 1 hour. -// -// The temporary security credentials created by AssumeRoleWithSAML can be -// used to make API calls to any AWS service with the following exception: you -// cannot call the STS service's GetFederationToken or GetSessionToken APIs. -// -// Optionally, you can pass an IAM access policy to this operation. If you -// choose not to pass a policy, the temporary security credentials that are -// returned by the operation have the permissions that are defined in the access -// policy of the role that is being assumed. If you pass a policy to this operation, -// the temporary security credentials that are returned by the operation have -// the permissions that are allowed by both the access policy of the role that -// is being assumed, and the policy that you pass. This gives you a way to -// further restrict the permissions for the resulting temporary security credentials. -// You cannot use the passed policy to grant permissions that are in excess -// of those allowed by the access policy of the role that is being assumed. -// For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, -// and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html) -// in the IAM User Guide. +// The credentials are valid for the duration that you specified when calling +// AssumeRoleWithSAML, which can be up to 3600 seconds (1 hour) or until the +// time specified in the SAML authentication response's SessionNotOnOrAfter +// value, whichever is shorter. +// +// The maximum duration for a session is 1 hour, and the minimum duration is +// 15 minutes, even if values outside this range are specified. Optionally, +// you can pass an IAM access policy to this operation. If you choose not to +// pass a policy, the temporary security credentials that are returned by the +// operation have the permissions that are defined in the access policy of the +// role that is being assumed. If you pass a policy to this operation, the temporary +// security credentials that are returned by the operation have the permissions +// that are allowed by both the access policy of the role that is being assumed, +// and the policy that you pass. This gives you a way to further restrict the +// permissions for the resulting temporary security credentials. You cannot +// use the passed policy to grant permissions that are in excess of those allowed +// by the access policy of the role that is being assumed. For more information, +// see Permissions for AssumeRoleWithSAML (http://docs.aws.amazon.com/STS/latest/UsingSTS/permissions-assume-role.html) +// in Using Temporary Security Credentials. // // Before your application can call AssumeRoleWithSAML, you must configure // your SAML identity provider (IdP) to issue the claims required by AWS. Additionally, @@ -192,25 +166,13 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // The identity of the caller is validated by using keys in the metadata document // that is uploaded for the SAML provider entity for your identity provider. // -// Calling AssumeRoleWithSAML can result in an entry in your AWS CloudTrail -// logs. The entry includes the value in the NameID element of the SAML assertion. -// We recommend that you use a NameIDType that is not associated with any personally -// identifiable information (PII). For example, you could instead use the Persistent -// Identifier (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent). -// -// For more information, see the following resources: -// -// About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) -// in the IAM User Guide. +// For more information, see the following resources: // -// Creating SAML Identity Providers (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html) -// in the IAM User Guide. -// -// Configuring a Relying Party and Claims (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_relying-party.html) -// in the IAM User Guide. -// -// Creating a Role for SAML 2.0 Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html) -// in the IAM User Guide. +// Creating Temporary Security Credentials for SAML Federation (http://docs.aws.amazon.com/STS/latest/UsingSTS/CreatingSAML.html). +// SAML Providers (http://docs.aws.amazon.com/IAM/latest/UserGuide/idp-managing-identityproviders.html) +// in Using IAM. Configuring a Relying Party and Claims (http://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html) +// in Using IAM. Creating a Role for SAML-Based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml.html) +// in Using IAM. func (c *STS) AssumeRoleWithSAML(input *AssumeRoleWithSAMLInput) (*AssumeRoleWithSAMLOutput, error) { req, out := c.AssumeRoleWithSAMLRequest(input) err := req.Send() @@ -259,22 +221,13 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // long-term AWS credentials in the application, and without deploying server-based // proxy services that use long-term AWS credentials. Instead, the identity // of the caller is validated by using a token from the web identity provider. -// For a comparison of AssumeRoleWithWebIdentity with the other APIs that produce -// temporary credentials, see Requesting Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html) -// and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison) -// in the IAM User Guide. // // The temporary security credentials returned by this API consist of an access // key ID, a secret access key, and a security token. Applications can use these -// temporary security credentials to sign calls to AWS service APIs. -// -// The credentials are valid for the duration that you specified when calling -// AssumeRoleWithWebIdentity, which can be from 900 seconds (15 minutes) to -// a maximum of 3600 seconds (1 hour). The default is 1 hour. -// -// The temporary security credentials created by AssumeRoleWithWebIdentity -// can be used to make API calls to any AWS service with the following exception: -// you cannot call the STS service's GetFederationToken or GetSessionToken APIs. +// temporary security credentials to sign calls to AWS service APIs. The credentials +// are valid for the duration that you specified when calling AssumeRoleWithWebIdentity, +// which can be from 900 seconds (15 minutes) to 3600 seconds (1 hour). By default, +// the temporary security credentials are valid for 1 hour. // // Optionally, you can pass an IAM access policy to this operation. If you // choose not to pass a policy, the temporary security credentials that are @@ -282,13 +235,11 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // policy of the role that is being assumed. If you pass a policy to this operation, // the temporary security credentials that are returned by the operation have // the permissions that are allowed by both the access policy of the role that -// is being assumed, and the policy that you pass. This gives you a way to -// further restrict the permissions for the resulting temporary security credentials. +// is being assumed, and the policy that you pass. This gives you a way to further +// restrict the permissions for the resulting temporary security credentials. // You cannot use the passed policy to grant permissions that are in excess // of those allowed by the access policy of the role that is being assumed. -// For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, -// and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html) -// in the IAM User Guide. +// For more information, see Permissions for AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/STS/latest/UsingSTS/permissions-assume-role.html). // // Before your application can call AssumeRoleWithWebIdentity, you must have // an identity token from a supported identity provider and create a role that @@ -296,32 +247,23 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // the identity provider that is associated with the identity token. In other // words, the identity provider must be specified in the role's trust policy. // -// Calling AssumeRoleWithWebIdentity can result in an entry in your AWS CloudTrail -// logs. The entry includes the Subject (http://openid.net/specs/openid-connect-core-1_0.html#Claims) -// of the provided Web Identity Token. We recommend that you avoid using any -// personally identifiable information (PII) in this field. For example, you -// could instead use a GUID or a pairwise identifier, as suggested in the OIDC -// specification (http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes). -// -// For more information about how to use web identity federation and the AssumeRoleWithWebIdentity +// For more information about how to use web identity federation and the AssumeRoleWithWebIdentity // API, see the following resources: // -// Using Web Identity Federation APIs for Mobile Apps (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual) -// and Federation Through a Web-based Identity Provider (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity). -// -// Web Identity Federation Playground (https://web-identity-federation-playground.s3.amazonaws.com/index.html). +// Creating a Mobile Application with Third-Party Sign-In (http://docs.aws.amazon.com/STS/latest/UsingSTS/STSUseCases.html#MobileApplication-KnownProvider) +// and Creating Temporary Security Credentials for Mobile Apps Using Third-Party +// Identity Providers (http://docs.aws.amazon.com/STS/latest/UsingSTS/CreatingWIF.html). +// Web Identity Federation Playground (https://web-identity-federation-playground.s3.amazonaws.com/index.html). // This interactive website lets you walk through the process of authenticating // via Login with Amazon, Facebook, or Google, getting temporary security credentials, -// and then using those credentials to make a request to AWS. -// -// AWS SDK for iOS (http://aws.amazon.com/sdkforios/) and AWS SDK for Android -// (http://aws.amazon.com/sdkforandroid/). These toolkits contain sample apps -// that show how to invoke the identity providers, and then how to use the information -// from these providers to get and use temporary security credentials. -// -// Web Identity Federation with Mobile Applications (http://aws.amazon.com/articles/4617974389850313). -// This article discusses web identity federation and shows an example of how -// to use web identity federation to get access to content in Amazon S3. +// and then using those credentials to make a request to AWS. AWS SDK for +// iOS (http://aws.amazon.com/sdkforios/) and AWS SDK for Android (http://aws.amazon.com/sdkforandroid/). +// These toolkits contain sample apps that show how to invoke the identity providers, +// and then how to use the information from these providers to get and use temporary +// security credentials. Web Identity Federation with Mobile Applications +// (http://aws.amazon.com/articles/4617974389850313). This article discusses +// web identity federation and shows an example of how to use web identity federation +// to get access to content in Amazon S3. func (c *STS) AssumeRoleWithWebIdentity(input *AssumeRoleWithWebIdentityInput) (*AssumeRoleWithWebIdentityOutput, error) { req, out := c.AssumeRoleWithWebIdentityRequest(input) err := req.Send() @@ -358,62 +300,26 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag // // Only certain AWS actions return an encoded authorization message. The documentation // for an individual action indicates whether that action returns an encoded -// message in addition to returning an HTTP code. -// -// The message is encoded because the details of the authorization status -// can constitute privileged information that the user who requested the action -// should not see. To decode an authorization status message, a user must be -// granted permissions via an IAM policy to request the DecodeAuthorizationMessage -// (sts:DecodeAuthorizationMessage) action. +// message in addition to returning an HTTP code. The message is encoded because +// the details of the authorization status can constitute privileged information +// that the user who requested the action should not see. To decode an authorization +// status message, a user must be granted permissions via an IAM policy to request +// the DecodeAuthorizationMessage (sts:DecodeAuthorizationMessage) action. // // The decoded message includes the following type of information: // -// Whether the request was denied due to an explicit deny or due to the absence +// Whether the request was denied due to an explicit deny or due to the absence // of an explicit allow. For more information, see Determining Whether a Request -// is Allowed or Denied (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html#policy-eval-denyallow) -// in the IAM User Guide. -// -// The principal who made the request. -// -// The requested action. -// -// The requested resource. -// -// The values of condition keys in the context of the user's request. +// is Allowed or Denied (http://docs.aws.amazon.com/IAM/latest/UserGuide/AccessPolicyLanguage_EvaluationLogic.html#policy-eval-denyallow) +// in Using IAM. The principal who made the request. The requested action. +// The requested resource. The values of condition keys in the context of the +// user's request. func (c *STS) DecodeAuthorizationMessage(input *DecodeAuthorizationMessageInput) (*DecodeAuthorizationMessageOutput, error) { req, out := c.DecodeAuthorizationMessageRequest(input) err := req.Send() return out, err } -const opGetCallerIdentity = "GetCallerIdentity" - -// GetCallerIdentityRequest generates a request for the GetCallerIdentity operation. -func (c *STS) GetCallerIdentityRequest(input *GetCallerIdentityInput) (req *request.Request, output *GetCallerIdentityOutput) { - op := &request.Operation{ - Name: opGetCallerIdentity, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetCallerIdentityInput{} - } - - req = c.newRequest(op, input, output) - output = &GetCallerIdentityOutput{} - req.Data = output - return -} - -// Returns details about the IAM identity whose credentials are used to call -// the API. -func (c *STS) GetCallerIdentity(input *GetCallerIdentityInput) (*GetCallerIdentityOutput, error) { - req, out := c.GetCallerIdentityRequest(input) - err := req.Send() - return out, err -} - const opGetFederationToken = "GetFederationToken" // GetFederationTokenRequest generates a request for the GetFederationToken operation. @@ -441,59 +347,45 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re // you must call the GetFederationToken action using the long-term security // credentials of an IAM user, this call is appropriate in contexts where those // credentials can be safely stored, usually in a server-based application. -// For a comparison of GetFederationToken with the other APIs that produce temporary -// credentials, see Requesting Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html) -// and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison) -// in the IAM User Guide. // // If you are creating a mobile-based or browser-based app that can authenticate // users using a web identity provider like Login with Amazon, Facebook, Google, // or an OpenID Connect-compatible identity provider, we recommend that you // use Amazon Cognito (http://aws.amazon.com/cognito/) or AssumeRoleWithWebIdentity. -// For more information, see Federation Through a Web-based Identity Provider -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity). +// For more information, see Creating Temporary Security Credentials for Mobile +// Apps Using Identity Providers (http://docs.aws.amazon.com/STS/latest/UsingSTS/CreatingWIF.html). // // The GetFederationToken action must be called by using the long-term AWS // security credentials of an IAM user. You can also call GetFederationToken -// using the security credentials of an AWS root account, but we do not recommended -// it. Instead, we recommend that you create an IAM user for the purpose of -// the proxy application and then attach a policy to the IAM user that limits -// federated users to only the actions and resources that they need access to. -// For more information, see IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html) -// in the IAM User Guide. +// using the security credentials of an AWS account (root), but this is not +// recommended. Instead, we recommend that you create an IAM user for the purpose +// of the proxy application and then attach a policy to the IAM user that limits +// federated users to only the actions and resources they need access to. For +// more information, see IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html) +// in Using IAM. // // The temporary security credentials that are obtained by using the long-term -// credentials of an IAM user are valid for the specified duration, from 900 -// seconds (15 minutes) up to a maximium of 129600 seconds (36 hours). The default -// is 43200 seconds (12 hours). Temporary credentials that are obtained by using -// AWS root account credentials have a maximum duration of 3600 seconds (1 hour). -// -// The temporary security credentials created by GetFederationToken can be -// used to make API calls to any AWS service with the following exceptions: -// -// You cannot use these credentials to call any IAM APIs. +// credentials of an IAM user are valid for the specified duration, between +// 900 seconds (15 minutes) and 129600 seconds (36 hours). Temporary credentials +// that are obtained by using AWS account (root) credentials have a maximum +// duration of 3600 seconds (1 hour) // -// You cannot call any STS APIs. -// -// Permissions +// Permissions // // The permissions for the temporary security credentials returned by GetFederationToken // are determined by a combination of the following: // -// The policy or policies that are attached to the IAM user whose credentials -// are used to call GetFederationToken. -// -// The policy that is passed as a parameter in the call. -// -// The passed policy is attached to the temporary security credentials that -// result from the GetFederationToken API call--that is, to the federated user. -// When the federated user makes an AWS request, AWS evaluates the policy attached -// to the federated user in combination with the policy or policies attached -// to the IAM user whose credentials were used to call GetFederationToken. AWS -// allows the federated user's request only when both the federated user and -// the IAM user are explicitly allowed to perform the requested action. The -// passed policy cannot grant more permissions than those that are defined in -// the IAM user policy. +// The policy or policies that are attached to the IAM user whose credentials +// are used to call GetFederationToken. The policy that is passed as a parameter +// in the call. The passed policy is attached to the temporary security credentials +// that result from the GetFederationToken API call--that is, to the federated +// user. When the federated user makes an AWS request, AWS evaluates the policy +// attached to the federated user in combination with the policy or policies +// attached to the IAM user whose credentials were used to call GetFederationToken. +// AWS allows the federated user's request only when both the federated user +// and the IAM user are explicitly allowed to perform the requested action. +// The passed policy cannot grant more permissions than those that are defined +// in the IAM user policy. // // A typical use case is that the permissions of the IAM user whose credentials // are used to call GetFederationToken are designed to allow access to all the @@ -508,10 +400,10 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re // that specifically allows the federated user to access the resource. // // For more information about how permissions work, see Permissions for GetFederationToken -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getfederationtoken.html). +// (http://docs.aws.amazon.com/STS/latest/UsingSTS/permissions-get-federation-token.html). // For information about using GetFederationToken to create temporary security -// credentials, see GetFederationToken—Federation Through a Custom Identity -// Broker (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getfederationtoken). +// credentials, see Creating Temporary Credentials to Enable Access for Federated +// Users (http://docs.aws.amazon.com/STS/latest/UsingSTS/CreatingFedTokens.html). func (c *STS) GetFederationToken(input *GetFederationTokenInput) (*GetFederationTokenOutput, error) { req, out := c.GetFederationTokenRequest(input) err := req.Send() @@ -545,31 +437,16 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request. // IAM users would need to call GetSessionToken and submit an MFA code that // is associated with their MFA device. Using the temporary security credentials // that are returned from the call, IAM users can then make programmatic calls -// to APIs that require MFA authentication. If you do not supply a correct MFA -// code, then the API returns an access denied error. For a comparison of GetSessionToken -// with the other APIs that produce temporary credentials, see Requesting Temporary -// Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html) -// and Comparing the AWS STS APIs (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison) -// in the IAM User Guide. +// to APIs that require MFA authentication. // // The GetSessionToken action must be called by using the long-term AWS security // credentials of the AWS account or an IAM user. Credentials that are created -// by IAM users are valid for the duration that you specify, from 900 seconds -// (15 minutes) up to a maximum of 129600 seconds (36 hours), with a default -// of 43200 seconds (12 hours); credentials that are created by using account -// credentials can range from 900 seconds (15 minutes) up to a maximum of 3600 -// seconds (1 hour), with a default of 1 hour. +// by IAM users are valid for the duration that you specify, between 900 seconds +// (15 minutes) and 129600 seconds (36 hours); credentials that are created +// by using account credentials have a maximum duration of 3600 seconds (1 hour). // -// The temporary security credentials created by GetSessionToken can be used -// to make API calls to any AWS service with the following exceptions: -// -// You cannot call any IAM APIs unless MFA authentication information is -// included in the request. -// -// You cannot call any STS API except AssumeRole. -// -// We recommend that you do not call GetSessionToken with root account credentials. -// Instead, follow our best practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#create-iam-users) +// We recommend that you do not call GetSessionToken with root account credentials. +// Instead, follow our best practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html#create-iam-users) // by creating one or more IAM users, giving them the necessary permissions, // and using IAM users for everyday interaction with AWS. // @@ -582,8 +459,8 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request. // as the IAM user. // // For more information about using GetSessionToken to create temporary credentials, -// go to Temporary Credentials for Users in Untrusted Environments (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getsessiontoken) -// in the IAM User Guide. +// go to Creating Temporary Credentials to Enable Access for IAM Users (http://docs.aws.amazon.com/STS/latest/UsingSTS/CreatingSessionTokens.html" +// target="_blank). func (c *STS) GetSessionToken(input *GetSessionTokenInput) (*GetSessionTokenOutput, error) { req, out := c.GetSessionTokenRequest(input) err := req.Send() @@ -591,12 +468,10 @@ func (c *STS) GetSessionToken(input *GetSessionTokenInput) (*GetSessionTokenOutp } type AssumeRoleInput struct { - _ struct{} `type:"structure"` - // The duration, in seconds, of the role session. The value can range from 900 // seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set // to 3600 seconds. - DurationSeconds *int64 `min:"900" type:"integer"` + DurationSeconds *int64 `type:"integer"` // A unique identifier that is used by third parties when assuming roles in // their customers' accounts. For each role that the third party can assume, @@ -604,14 +479,10 @@ type AssumeRoleInput struct { // for the external ID that the third party generated. Each time the third party // assumes the role, they should pass the customer's external ID. The external // ID is useful in order to help third parties bind a role to the customer who - // created it. For more information about the external ID, see How to Use an - // External ID When Granting Access to Your AWS Resources to a Third Party (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) - // in the IAM User Guide. - // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@:\/- - ExternalId *string `min:"2" type:"string"` + // created it. For more information about the external ID, see How to Use External + // ID When Granting Access to Your AWS Resources (http://docs.aws.amazon.com/STS/latest/UsingSTS/sts-delegating-externalid.html) + // in Using Temporary Security Credentials. + ExternalId *string `type:"string"` // An IAM policy in JSON format. // @@ -623,59 +494,48 @@ type AssumeRoleInput struct { // You cannot use the passed policy to grant permissions that are in excess // of those allowed by the access policy of the role that is being assumed. // For more information, see Permissions for AssumeRole, AssumeRoleWithSAML, - // and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html) - // in the IAM User Guide. - // - // The format for this parameter, as described by its regex pattern, is a string - // of characters up to 2048 characters in length. The characters can be any - // ASCII character from the space character to the end of the valid character - // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), - // and carriage return (\u000D) characters. + // and AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/STS/latest/UsingSTS/permissions-assume-role.html) + // in Using Temporary Security Credentials. // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed // size. - Policy *string `min:"1" type:"string"` + Policy *string `type:"string"` // The Amazon Resource Name (ARN) of the role to assume. - RoleArn *string `min:"20" type:"string" required:"true"` + RoleArn *string `type:"string" required:"true"` // An identifier for the assumed role session. // - // Use the role session name to uniquely identify a session when the same role + // Use the role session name to uniquely identity a session when the same role // is assumed by different principals or for different reasons. In cross-account // scenarios, the role session name is visible to, and can be logged by the // account that owns the role. The role session name is also used in the ARN // of the assumed role principal. This means that subsequent cross-account API // requests using the temporary security credentials will expose the role session // name to the external account in their CloudTrail logs. - // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleSessionName *string `min:"2" type:"string" required:"true"` + RoleSessionName *string `type:"string" required:"true"` // The identification number of the MFA device that is associated with the user // who is making the AssumeRole call. Specify this value if the trust policy // of the role being assumed includes a condition that requires MFA authentication. // The value is either the serial number for a hardware device (such as GAHT12345678) // or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user). - // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - SerialNumber *string `min:"9" type:"string"` + SerialNumber *string `type:"string"` // The value provided by the MFA device, if the trust policy of the role being // assumed requires MFA (that is, if the policy includes a condition that tests // for MFA). If the role being assumed requires MFA and if the TokenCode value // is missing or expired, the AssumeRole call returns an "access denied" error. - // - // The format for this parameter, as described by its regex pattern, is a sequence - // of six numeric digits. - TokenCode *string `min:"6" type:"string"` + TokenCode *string `type:"string"` + + metadataAssumeRoleInput `json:"-" xml:"-"` +} + +type metadataAssumeRoleInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -688,48 +548,9 @@ func (s AssumeRoleInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssumeRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssumeRoleInput"} - if s.DurationSeconds != nil && *s.DurationSeconds < 900 { - invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900)) - } - if s.ExternalId != nil && len(*s.ExternalId) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ExternalId", 2)) - } - if s.Policy != nil && len(*s.Policy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.RoleArn != nil && len(*s.RoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) - } - if s.RoleSessionName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleSessionName")) - } - if s.RoleSessionName != nil && len(*s.RoleSessionName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RoleSessionName", 2)) - } - if s.SerialNumber != nil && len(*s.SerialNumber) < 9 { - invalidParams.Add(request.NewErrParamMinLen("SerialNumber", 9)) - } - if s.TokenCode != nil && len(*s.TokenCode) < 6 { - invalidParams.Add(request.NewErrParamMinLen("TokenCode", 6)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful AssumeRole request, including temporary // AWS credentials that can be used to make AWS requests. type AssumeRoleOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers // that you can use to refer to the resulting temporary security credentials. // For example, you can reference these credentials as a principal in a resource-based @@ -739,17 +560,18 @@ type AssumeRoleOutput struct { // The temporary security credentials, which include an access key ID, a secret // access key, and a security (or session) token. - // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` // A percentage value that indicates the size of the policy in packed form. // The service rejects any policy with a packed size greater than 100 percent, // which means the policy exceeded the allowed space. PackedPolicySize *int64 `type:"integer"` + + metadataAssumeRoleOutput `json:"-" xml:"-"` +} + +type metadataAssumeRoleOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -763,57 +585,54 @@ func (s AssumeRoleOutput) GoString() string { } type AssumeRoleWithSAMLInput struct { - _ struct{} `type:"structure"` - // The duration, in seconds, of the role session. The value can range from 900 // seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set // to 3600 seconds. An expiration can also be specified in the SAML authentication // response's SessionNotOnOrAfter value. The actual expiration time is whichever // value is shorter. // - // The maximum duration for a session is 1 hour, and the minimum duration - // is 15 minutes, even if values outside this range are specified. - DurationSeconds *int64 `min:"900" type:"integer"` + // The maximum duration for a session is 1 hour, and the minimum duration is + // 15 minutes, even if values outside this range are specified. + DurationSeconds *int64 `type:"integer"` // An IAM policy in JSON format. // // The policy parameter is optional. If you pass a policy, the temporary security // credentials that are returned by the operation have the permissions that // are allowed by both the access policy of the role that is being assumed, - // and the policy that you pass. This gives you a way to further restrict - // the permissions for the resulting temporary security credentials. You cannot + // and the policy that you pass. This gives you a way to further restrict the + // permissions for the resulting temporary security credentials. You cannot // use the passed policy to grant permissions that are in excess of those allowed // by the access policy of the role that is being assumed. For more information, - // Permissions for AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity - // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html) - // in the IAM User Guide. - // - // The format for this parameter, as described by its regex pattern, is a string - // of characters up to 2048 characters in length. The characters can be any - // ASCII character from the space character to the end of the valid character - // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), - // and carriage return (\u000D) characters. + // see Permissions for AssumeRoleWithSAML (http://docs.aws.amazon.com/STS/latest/UsingSTS/permissions-assume-role.html) + // in Using Temporary Security Credentials. // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed // size. - Policy *string `min:"1" type:"string"` + Policy *string `type:"string"` // The Amazon Resource Name (ARN) of the SAML provider in IAM that describes // the IdP. - PrincipalArn *string `min:"20" type:"string" required:"true"` + PrincipalArn *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the role that the caller is assuming. - RoleArn *string `min:"20" type:"string" required:"true"` + RoleArn *string `type:"string" required:"true"` // The base-64 encoded SAML authentication response provided by the IdP. // // For more information, see Configuring a Relying Party and Adding Claims // (http://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html) // in the Using IAM guide. - SAMLAssertion *string `min:"4" type:"string" required:"true"` + SAMLAssertion *string `type:"string" required:"true"` + + metadataAssumeRoleWithSAMLInput `json:"-" xml:"-"` +} + +type metadataAssumeRoleWithSAMLInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -826,45 +645,9 @@ func (s AssumeRoleWithSAMLInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssumeRoleWithSAMLInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssumeRoleWithSAMLInput"} - if s.DurationSeconds != nil && *s.DurationSeconds < 900 { - invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900)) - } - if s.Policy != nil && len(*s.Policy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) - } - if s.PrincipalArn == nil { - invalidParams.Add(request.NewErrParamRequired("PrincipalArn")) - } - if s.PrincipalArn != nil && len(*s.PrincipalArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PrincipalArn", 20)) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.RoleArn != nil && len(*s.RoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) - } - if s.SAMLAssertion == nil { - invalidParams.Add(request.NewErrParamRequired("SAMLAssertion")) - } - if s.SAMLAssertion != nil && len(*s.SAMLAssertion) < 4 { - invalidParams.Add(request.NewErrParamMinLen("SAMLAssertion", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful AssumeRoleWithSAML request, including // temporary AWS credentials that can be used to make AWS requests. type AssumeRoleWithSAMLOutput struct { - _ struct{} `type:"structure"` - // The identifiers for the temporary security credentials that the operation // returns. AssumedRoleUser *AssumedRoleUser `type:"structure"` @@ -873,13 +656,7 @@ type AssumeRoleWithSAMLOutput struct { // of the SAML assertion. Audience *string `type:"string"` - // The temporary security credentials, which include an access key ID, a secret - // access key, and a security (or session) token. - // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // AWS credentials for API authentication. Credentials *Credentials `type:"structure"` // The value of the Issuer element of the SAML assertion. @@ -913,6 +690,12 @@ type AssumeRoleWithSAMLOutput struct { // is returned as transient. If the format includes any other prefix, the format // is returned with no modifications. SubjectType *string `type:"string"` + + metadataAssumeRoleWithSAMLOutput `json:"-" xml:"-"` +} + +type metadataAssumeRoleWithSAMLOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -926,37 +709,28 @@ func (s AssumeRoleWithSAMLOutput) GoString() string { } type AssumeRoleWithWebIdentityInput struct { - _ struct{} `type:"structure"` - // The duration, in seconds, of the role session. The value can range from 900 // seconds (15 minutes) to 3600 seconds (1 hour). By default, the value is set // to 3600 seconds. - DurationSeconds *int64 `min:"900" type:"integer"` + DurationSeconds *int64 `type:"integer"` // An IAM policy in JSON format. // // The policy parameter is optional. If you pass a policy, the temporary security // credentials that are returned by the operation have the permissions that // are allowed by both the access policy of the role that is being assumed, - // and the policy that you pass. This gives you a way to further restrict - // the permissions for the resulting temporary security credentials. You cannot + // and the policy that you pass. This gives you a way to further restrict the + // permissions for the resulting temporary security credentials. You cannot // use the passed policy to grant permissions that are in excess of those allowed // by the access policy of the role that is being assumed. For more information, - // see Permissions for AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_assumerole.html) - // in the IAM User Guide. - // - // The format for this parameter, as described by its regex pattern, is a string - // of characters up to 2048 characters in length. The characters can be any - // ASCII character from the space character to the end of the valid character - // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), - // and carriage return (\u000D) characters. + // see Permissions for AssumeRoleWithWebIdentity (http://docs.aws.amazon.com/STS/latest/UsingSTS/permissions-assume-role.html). // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed // size. - Policy *string `min:"1" type:"string"` + Policy *string `type:"string"` // The fully qualified host component of the domain name of the identity provider. // @@ -965,27 +739,29 @@ type AssumeRoleWithWebIdentityInput struct { // 2.0 access tokens. Do not include URL schemes and port numbers. // // Do not specify this value for OpenID Connect ID tokens. - ProviderId *string `min:"4" type:"string"` + ProviderId *string `type:"string"` // The Amazon Resource Name (ARN) of the role that the caller is assuming. - RoleArn *string `min:"20" type:"string" required:"true"` + RoleArn *string `type:"string" required:"true"` // An identifier for the assumed role session. Typically, you pass the name // or identifier that is associated with the user who is using your application. // That way, the temporary security credentials that your application will use // are associated with that user. This session name is included as part of the // ARN and assumed role ID in the AssumedRoleUser response element. - // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - RoleSessionName *string `min:"2" type:"string" required:"true"` + RoleSessionName *string `type:"string" required:"true"` // The OAuth 2.0 access token or OpenID Connect ID token that is provided by // the identity provider. Your application must get this token by authenticating // the user who is using your application with a web identity provider before // the application makes an AssumeRoleWithWebIdentity call. - WebIdentityToken *string `min:"4" type:"string" required:"true"` + WebIdentityToken *string `type:"string" required:"true"` + + metadataAssumeRoleWithWebIdentityInput `json:"-" xml:"-"` +} + +type metadataAssumeRoleWithWebIdentityInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -998,48 +774,9 @@ func (s AssumeRoleWithWebIdentityInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssumeRoleWithWebIdentityInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssumeRoleWithWebIdentityInput"} - if s.DurationSeconds != nil && *s.DurationSeconds < 900 { - invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900)) - } - if s.Policy != nil && len(*s.Policy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) - } - if s.ProviderId != nil && len(*s.ProviderId) < 4 { - invalidParams.Add(request.NewErrParamMinLen("ProviderId", 4)) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.RoleArn != nil && len(*s.RoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) - } - if s.RoleSessionName == nil { - invalidParams.Add(request.NewErrParamRequired("RoleSessionName")) - } - if s.RoleSessionName != nil && len(*s.RoleSessionName) < 2 { - invalidParams.Add(request.NewErrParamMinLen("RoleSessionName", 2)) - } - if s.WebIdentityToken == nil { - invalidParams.Add(request.NewErrParamRequired("WebIdentityToken")) - } - if s.WebIdentityToken != nil && len(*s.WebIdentityToken) < 4 { - invalidParams.Add(request.NewErrParamMinLen("WebIdentityToken", 4)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful AssumeRoleWithWebIdentity request, // including temporary AWS credentials that can be used to make AWS requests. type AssumeRoleWithWebIdentityOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers // that you can use to refer to the resulting temporary security credentials. // For example, you can reference these credentials as a principal in a resource-based @@ -1054,11 +791,6 @@ type AssumeRoleWithWebIdentityOutput struct { // The temporary security credentials, which include an access key ID, a secret // access key, and a security token. - // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. Credentials *Credentials `type:"structure"` // A percentage value that indicates the size of the policy in packed form. @@ -1078,7 +810,13 @@ type AssumeRoleWithWebIdentityOutput struct { // the user and the application that acquired the WebIdentityToken (pairwise // identifier). For OpenID Connect ID tokens, this field contains the value // returned by the identity provider as the token's sub (Subject) claim. - SubjectFromWebIdentityToken *string `min:"6" type:"string"` + SubjectFromWebIdentityToken *string `type:"string"` + + metadataAssumeRoleWithWebIdentityOutput `json:"-" xml:"-"` +} + +type metadataAssumeRoleWithWebIdentityOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1094,18 +832,22 @@ func (s AssumeRoleWithWebIdentityOutput) GoString() string { // The identifiers for the temporary security credentials that the operation // returns. type AssumedRoleUser struct { - _ struct{} `type:"structure"` - // The ARN of the temporary security credentials that are returned from the // AssumeRole action. For more information about ARNs and how to use them in // policies, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) // in Using IAM. - Arn *string `min:"20" type:"string" required:"true"` + Arn *string `type:"string" required:"true"` // A unique identifier that contains the role ID and the role session name of // the role that is being assumed. The role ID is generated by AWS when the // role is created. - AssumedRoleId *string `min:"2" type:"string" required:"true"` + AssumedRoleId *string `type:"string" required:"true"` + + metadataAssumedRoleUser `json:"-" xml:"-"` +} + +type metadataAssumedRoleUser struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1120,10 +862,8 @@ func (s AssumedRoleUser) GoString() string { // AWS credentials for API authentication. type Credentials struct { - _ struct{} `type:"structure"` - // The access key ID that identifies the temporary security credentials. - AccessKeyId *string `min:"16" type:"string" required:"true"` + AccessKeyId *string `type:"string" required:"true"` // The date on which the current credentials expire. Expiration *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` @@ -1133,6 +873,12 @@ type Credentials struct { // The token that users must pass to the service API to use the temporary credentials. SessionToken *string `type:"string" required:"true"` + + metadataCredentials `json:"-" xml:"-"` +} + +type metadataCredentials struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1146,10 +892,14 @@ func (s Credentials) GoString() string { } type DecodeAuthorizationMessageInput struct { - _ struct{} `type:"structure"` - // The encoded message that was returned with the response. - EncodedMessage *string `min:"1" type:"string" required:"true"` + EncodedMessage *string `type:"string" required:"true"` + + metadataDecodeAuthorizationMessageInput `json:"-" xml:"-"` +} + +type metadataDecodeAuthorizationMessageInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1162,30 +912,19 @@ func (s DecodeAuthorizationMessageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DecodeAuthorizationMessageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DecodeAuthorizationMessageInput"} - if s.EncodedMessage == nil { - invalidParams.Add(request.NewErrParamRequired("EncodedMessage")) - } - if s.EncodedMessage != nil && len(*s.EncodedMessage) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EncodedMessage", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A document that contains additional information about the authorization status // of a request from an encoded message that is returned in response to an AWS // request. type DecodeAuthorizationMessageOutput struct { - _ struct{} `type:"structure"` - - // An XML document that contains the decoded message. + // An XML document that contains the decoded message. For more information, + // see DecodeAuthorizationMessage. DecodedMessage *string `type:"string"` + + metadataDecodeAuthorizationMessageOutput `json:"-" xml:"-"` +} + +type metadataDecodeAuthorizationMessageOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1200,75 +939,34 @@ func (s DecodeAuthorizationMessageOutput) GoString() string { // Identifiers for the federated user that is associated with the credentials. type FederatedUser struct { - _ struct{} `type:"structure"` - // The ARN that specifies the federated user that is associated with the credentials. // For more information about ARNs and how to use them in policies, see IAM // Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) // in Using IAM. - Arn *string `min:"20" type:"string" required:"true"` + Arn *string `type:"string" required:"true"` // The string that identifies the federated user associated with the credentials, // similar to the unique ID of an IAM user. - FederatedUserId *string `min:"2" type:"string" required:"true"` -} - -// String returns the string representation -func (s FederatedUser) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FederatedUser) GoString() string { - return s.String() -} + FederatedUserId *string `type:"string" required:"true"` -type GetCallerIdentityInput struct { - _ struct{} `type:"structure"` + metadataFederatedUser `json:"-" xml:"-"` } -// String returns the string representation -func (s GetCallerIdentityInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetCallerIdentityInput) GoString() string { - return s.String() -} - -// Contains the response to a successful GetCallerIdentity request, including -// information about the entity making the request. -type GetCallerIdentityOutput struct { - _ struct{} `type:"structure"` - - // The AWS account ID number of the account that owns or contains the calling - // entity. - Account *string `type:"string"` - - // The AWS ARN associated with the calling entity. - Arn *string `min:"20" type:"string"` - - // The unique identifier of the calling entity. The exact value depends on the - // type of entity making the call. The values returned are those listed in the - // aws:userid column in the Principal table (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable) - // found on the Policy Variables reference page in the IAM User Guide. - UserId *string `type:"string"` +type metadataFederatedUser struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s GetCallerIdentityOutput) String() string { +func (s FederatedUser) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCallerIdentityOutput) GoString() string { +func (s FederatedUser) GoString() string { return s.String() } type GetFederationTokenInput struct { - _ struct{} `type:"structure"` - // The duration, in seconds, that the session should last. Acceptable durations // for federation sessions range from 900 seconds (15 minutes) to 129600 seconds // (36 hours), with 43200 seconds (12 hours) as the default. Sessions obtained @@ -1276,17 +974,13 @@ type GetFederationTokenInput struct { // seconds (one hour). If the specified duration is longer than one hour, the // session obtained by using AWS account (root) credentials defaults to one // hour. - DurationSeconds *int64 `min:"900" type:"integer"` + DurationSeconds *int64 `type:"integer"` // The name of the federated user. The name is used as an identifier for the // temporary security credentials (such as Bob). For example, you can reference // the federated user name in a resource-based policy, such as in an Amazon // S3 bucket policy. - // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - Name *string `min:"2" type:"string" required:"true"` + Name *string `type:"string" required:"true"` // An IAM policy in JSON format that is passed with the GetFederationToken call // and evaluated along with the policy or policies that are attached to the @@ -1303,21 +997,19 @@ type GetFederationTokenInput struct { // credentials are used to access a resource that has a resource-based policy // that specifically allows the federated user to access the resource. // - // The format for this parameter, as described by its regex pattern, is a string - // of characters up to 2048 characters in length. The characters can be any - // ASCII character from the space character to the end of the valid character - // list (\u0020-\u00FF). It can also include the tab (\u0009), linefeed (\u000A), - // and carriage return (\u000D) characters. - // - // The policy plain text must be 2048 bytes or shorter. However, an internal + // The policy plain text must be 2048 bytes or shorter. However, an internal // conversion compresses it into a packed binary format with a separate limit. // The PackedPolicySize response element indicates by percentage how close to // the upper size limit the policy is, with 100% equaling the maximum allowed - // size. - // - // For more information about how permissions work, see Permissions for GetFederationToken - // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_getfederationtoken.html). - Policy *string `min:"1" type:"string"` + // size. For more information about how permissions work, see Permissions for + // GetFederationToken (http://docs.aws.amazon.com/STS/latest/UsingSTS/permissions-get-federation-token.html). + Policy *string `type:"string"` + + metadataGetFederationTokenInput `json:"-" xml:"-"` +} + +type metadataGetFederationTokenInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1330,40 +1022,10 @@ func (s GetFederationTokenInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetFederationTokenInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetFederationTokenInput"} - if s.DurationSeconds != nil && *s.DurationSeconds < 900 { - invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 2 { - invalidParams.Add(request.NewErrParamMinLen("Name", 2)) - } - if s.Policy != nil && len(*s.Policy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetFederationToken request, including // temporary AWS credentials that can be used to make AWS requests. type GetFederationTokenOutput struct { - _ struct{} `type:"structure"` - - // The temporary security credentials, which include an access key ID, a secret - // access key, and a security (or session) token. - // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // Credentials for the service API authentication. Credentials *Credentials `type:"structure"` // Identifiers for the federated user associated with the credentials (such @@ -1376,6 +1038,12 @@ type GetFederationTokenOutput struct { // service rejects policies for which the packed size is greater than 100 percent // of the allowed value. PackedPolicySize *int64 `type:"integer"` + + metadataGetFederationTokenOutput `json:"-" xml:"-"` +} + +type metadataGetFederationTokenOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1389,15 +1057,13 @@ func (s GetFederationTokenOutput) GoString() string { } type GetSessionTokenInput struct { - _ struct{} `type:"structure"` - // The duration, in seconds, that the credentials should remain valid. Acceptable // durations for IAM user sessions range from 900 seconds (15 minutes) to 129600 // seconds (36 hours), with 43200 seconds (12 hours) as the default. Sessions // for AWS account owners are restricted to a maximum of 3600 seconds (one hour). // If the duration is longer than one hour, the session for AWS account owners // defaults to one hour. - DurationSeconds *int64 `min:"900" type:"integer"` + DurationSeconds *int64 `type:"integer"` // The identification number of the MFA device that is associated with the IAM // user who is making the GetSessionToken call. Specify this value if the IAM @@ -1406,21 +1072,20 @@ type GetSessionTokenInput struct { // Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user). // You can find the device for an IAM user by going to the AWS Management Console // and viewing the user's security credentials. - // - // The format for this parameter, as described by its regex pattern, is a string - // of characters consisting of upper- and lower-case alphanumeric characters - // with no spaces. You can also include any of the following characters: =,.@- - SerialNumber *string `min:"9" type:"string"` + SerialNumber *string `type:"string"` // The value provided by the MFA device, if MFA is required. If any policy requires // the IAM user to submit an MFA code, specify this value. If MFA authentication // is required, and the user does not provide a code when requesting a set of // temporary security credentials, the user will receive an "access denied" // response when requesting resources that require MFA authentication. - // - // The format for this parameter, as described by its regex pattern, is a sequence - // of six numeric digits. - TokenCode *string `min:"6" type:"string"` + TokenCode *string `type:"string"` + + metadataGetSessionTokenInput `json:"-" xml:"-"` +} + +type metadataGetSessionTokenInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1433,38 +1098,17 @@ func (s GetSessionTokenInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSessionTokenInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSessionTokenInput"} - if s.DurationSeconds != nil && *s.DurationSeconds < 900 { - invalidParams.Add(request.NewErrParamMinValue("DurationSeconds", 900)) - } - if s.SerialNumber != nil && len(*s.SerialNumber) < 9 { - invalidParams.Add(request.NewErrParamMinLen("SerialNumber", 9)) - } - if s.TokenCode != nil && len(*s.TokenCode) < 6 { - invalidParams.Add(request.NewErrParamMinLen("TokenCode", 6)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the response to a successful GetSessionToken request, including // temporary AWS credentials that can be used to make AWS requests. type GetSessionTokenOutput struct { - _ struct{} `type:"structure"` - - // The temporary security credentials, which include an access key ID, a secret - // access key, and a security (or session) token. - // - // Note: The size of the security token that STS APIs return is not fixed. - // We strongly recommend that you make no assumptions about the maximum size. - // As of this writing, the typical size is less than 4096 bytes, but that can - // vary. Also, future updates to AWS might require larger sizes. + // The session credentials for API authentication. Credentials *Credentials `type:"structure"` + + metadataGetSessionTokenOutput `json:"-" xml:"-"` +} + +type metadataGetSessionTokenOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/sts/customizations_test.go index 6f870d35e..928725081 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/customizations_test.go @@ -3,21 +3,19 @@ package sts_test import ( "testing" - "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/unit" "github.com/aws/aws-sdk-go/service/sts" + "github.com/stretchr/testify/assert" ) -var svc = sts.New(unit.Session, &aws.Config{ +var svc = sts.New(&aws.Config{ Region: aws.String("mock-region"), }) func TestUnsignedRequest_AssumeRoleWithSAML(t *testing.T) { req, _ := svc.AssumeRoleWithSAMLRequest(&sts.AssumeRoleWithSAMLInput{ - PrincipalArn: aws.String("ARN01234567890123456789"), - RoleArn: aws.String("ARN01234567890123456789"), + PrincipalArn: aws.String("ARN"), + RoleArn: aws.String("ARN"), SAMLAssertion: aws.String("ASSERT"), }) @@ -28,7 +26,7 @@ func TestUnsignedRequest_AssumeRoleWithSAML(t *testing.T) { func TestUnsignedRequest_AssumeRoleWithWebIdentity(t *testing.T) { req, _ := svc.AssumeRoleWithWebIdentityRequest(&sts.AssumeRoleWithWebIdentityInput{ - RoleArn: aws.String("ARN01234567890123456789"), + RoleArn: aws.String("ARN"), RoleSessionName: aws.String("SESSION"), WebIdentityToken: aws.String("TOKEN"), }) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go index c77c93d7e..5b5e46dba 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sts" ) @@ -16,11 +15,11 @@ var _ time.Duration var _ bytes.Buffer func ExampleSTS_AssumeRole() { - svc := sts.New(session.New()) + svc := sts.New(nil) params := &sts.AssumeRoleInput{ - RoleArn: aws.String("arnType"), // Required - RoleSessionName: aws.String("roleSessionNameType"), // Required + RoleArn: aws.String("arnType"), // Required + RoleSessionName: aws.String("userNameType"), // Required DurationSeconds: aws.Int64(1), ExternalId: aws.String("externalIdType"), Policy: aws.String("sessionPolicyDocumentType"), @@ -41,7 +40,7 @@ func ExampleSTS_AssumeRole() { } func ExampleSTS_AssumeRoleWithSAML() { - svc := sts.New(session.New()) + svc := sts.New(nil) params := &sts.AssumeRoleWithSAMLInput{ PrincipalArn: aws.String("arnType"), // Required @@ -64,12 +63,12 @@ func ExampleSTS_AssumeRoleWithSAML() { } func ExampleSTS_AssumeRoleWithWebIdentity() { - svc := sts.New(session.New()) + svc := sts.New(nil) params := &sts.AssumeRoleWithWebIdentityInput{ - RoleArn: aws.String("arnType"), // Required - RoleSessionName: aws.String("roleSessionNameType"), // Required - WebIdentityToken: aws.String("clientTokenType"), // Required + RoleArn: aws.String("arnType"), // Required + RoleSessionName: aws.String("userNameType"), // Required + WebIdentityToken: aws.String("clientTokenType"), // Required DurationSeconds: aws.Int64(1), Policy: aws.String("sessionPolicyDocumentType"), ProviderId: aws.String("urlType"), @@ -88,7 +87,7 @@ func ExampleSTS_AssumeRoleWithWebIdentity() { } func ExampleSTS_DecodeAuthorizationMessage() { - svc := sts.New(session.New()) + svc := sts.New(nil) params := &sts.DecodeAuthorizationMessageInput{ EncodedMessage: aws.String("encodedMessageType"), // Required @@ -106,25 +105,8 @@ func ExampleSTS_DecodeAuthorizationMessage() { fmt.Println(resp) } -func ExampleSTS_GetCallerIdentity() { - svc := sts.New(session.New()) - - var params *sts.GetCallerIdentityInput - resp, err := svc.GetCallerIdentity(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleSTS_GetFederationToken() { - svc := sts.New(session.New()) + svc := sts.New(nil) params := &sts.GetFederationTokenInput{ Name: aws.String("userNameType"), // Required @@ -145,7 +127,7 @@ func ExampleSTS_GetFederationToken() { } func ExampleSTS_GetSessionToken() { - svc := sts.New(session.New()) + svc := sts.New(nil) params := &sts.GetSessionTokenInput{ DurationSeconds: aws.Int64(1), diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go b/vendor/github.com/aws/aws-sdk-go/service/sts/service.go index fbe3cff33..58804e092 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/service.go @@ -4,46 +4,49 @@ package sts import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/query" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/query" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // The AWS Security Token Service (STS) is a web service that enables you to // request temporary, limited-privilege credentials for AWS Identity and Access // Management (IAM) users or for users that you authenticate (federated users). // This guide provides descriptions of the STS API. For more detailed information -// about using this service, go to Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html). +// about using this service, go to Using Temporary Security Credentials (http://docs.aws.amazon.com/STS/latest/UsingSTS/Welcome.html" +// target="_blank). // -// As an alternative to using the API, you can use one of the AWS SDKs, which +// As an alternative to using the API, you can use one of the AWS SDKs, which // consist of libraries and sample code for various programming languages and // platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient // way to create programmatic access to STS. For example, the SDKs take care // of cryptographically signing requests, managing errors, and retrying requests // automatically. For information about the AWS SDKs, including how to download // and install them, see the Tools for Amazon Web Services page (http://aws.amazon.com/tools/). -// // For information about setting up signatures and authorization through the -// API, go to Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) -// in the AWS General Reference. For general information about the Query API, -// go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) -// in Using IAM. For information about using security tokens with other AWS -// products, go to AWS Services That Work with IAM (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html) -// in the IAM User Guide. +// API, go to Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html" +// target="_blank) in the AWS General Reference. For general information about +// the Query API, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html" +// target="_blank) in Using IAM. For information about using security tokens +// with other AWS products, go to Using Temporary Security Credentials to Access +// AWS (http://docs.aws.amazon.com/STS/latest/UsingSTS/UsingTokens.html) in +// Using Temporary Security Credentials. // // If you're new to AWS and need additional technical information about a specific // AWS product, you can find the product's technical documentation at http://aws.amazon.com/documentation/ -// (http://aws.amazon.com/documentation/). +// (http://aws.amazon.com/documentation/" target="_blank). // // Endpoints // // The AWS Security Token Service (STS) has a default endpoint of https://sts.amazonaws.com -// that maps to the US East (N. Virginia) region. Additional regions are available -// and are activated by default. For more information, see Activating and Deactivating -// AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) -// in the IAM User Guide. +// that maps to the US East (N. Virginia) region. Additional regions are available, +// but must first be activated in the AWS Management Console before you can +// use a different region's endpoint. For more information about activating +// a region for STS see Activating STS in a New Region (http://docs.aws.amazon.com/STS/latest/UsingSTS/sts-enableregions.html) +// in the Using Temporary Security Credentials guide. // // For information about STS endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sts_region) // in the AWS General Reference. @@ -56,64 +59,40 @@ import ( // successfully made to STS, who made the request, when it was made, and so // on. To learn more about CloudTrail, including how to turn it on and find // your log files, see the AWS CloudTrail User Guide (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type STS struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "sts" - -// New creates a new instance of the STS client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a STS client from just a session. -// svc := sts.New(mySession) -// -// // Create a STS client with additional configuration -// svc := sts.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *STS { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *STS { - svc := &STS{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2011-06-15", - }, - handlers, - ), +// New returns a new STS client. +func New(config *aws.Config) *STS { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "sts", + APIVersion: "2011-06-15", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(query.Build) + service.Handlers.Unmarshal.PushBack(query.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(query.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(query.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &STS{service} } // newRequest creates a new request for a STS operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go index 22301ca98..1a755dc2d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface.go @@ -26,10 +26,6 @@ type STSAPI interface { DecodeAuthorizationMessage(*sts.DecodeAuthorizationMessageInput) (*sts.DecodeAuthorizationMessageOutput, error) - GetCallerIdentityRequest(*sts.GetCallerIdentityInput) (*request.Request, *sts.GetCallerIdentityOutput) - - GetCallerIdentity(*sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error) - GetFederationTokenRequest(*sts.GetFederationTokenInput) (*request.Request, *sts.GetFederationTokenOutput) GetFederationToken(*sts.GetFederationTokenInput) (*sts.GetFederationTokenOutput, error) @@ -38,5 +34,3 @@ type STSAPI interface { GetSessionToken(*sts.GetSessionTokenInput) (*sts.GetSessionTokenOutput, error) } - -var _ STSAPI = (*sts.STS)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface_test.go new file mode 100644 index 000000000..ab8774d63 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package stsiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/sts" + "github.com/aws/aws-sdk-go/service/sts/stsiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*stsiface.STSAPI)(nil), sts.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/api.go b/vendor/github.com/aws/aws-sdk-go/service/support/api.go index 471589e40..a07bafb1a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/support/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/support/api.go @@ -212,7 +212,6 @@ func (c *Support) DescribeCases(input *DescribeCasesInput) (*DescribeCasesOutput func (c *Support) DescribeCasesPages(input *DescribeCasesInput, fn func(p *DescribeCasesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeCasesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeCasesOutput), lastPage) }) @@ -262,7 +261,6 @@ func (c *Support) DescribeCommunications(input *DescribeCommunicationsInput) (*D func (c *Support) DescribeCommunicationsPages(input *DescribeCommunicationsInput, fn func(p *DescribeCommunicationsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeCommunicationsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeCommunicationsOutput), lastPage) }) @@ -525,8 +523,6 @@ func (c *Support) ResolveCase(input *ResolveCaseInput) (*ResolveCaseOutput, erro } type AddAttachmentsToSetInput struct { - _ struct{} `type:"structure"` - // The ID of the attachment set. If an AttachmentSetId is not specified, a new // attachment set is created, and the ID of the set is returned in the response. // If an AttachmentSetId is specified, the attachments are added to the specified @@ -536,6 +532,12 @@ type AddAttachmentsToSetInput struct { // One or more attachments to add to the set. The limit is 3 attachments per // set, and the size limit is 5 MB per attachment. Attachments []*Attachment `locationName:"attachments" type:"list" required:"true"` + + metadataAddAttachmentsToSetInput `json:"-" xml:"-"` +} + +type metadataAddAttachmentsToSetInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -548,24 +550,9 @@ func (s AddAttachmentsToSetInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddAttachmentsToSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddAttachmentsToSetInput"} - if s.Attachments == nil { - invalidParams.Add(request.NewErrParamRequired("Attachments")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The ID and expiry time of the attachment set returned by the AddAttachmentsToSet // operation. type AddAttachmentsToSetOutput struct { - _ struct{} `type:"structure"` - // The ID of the attachment set. If an AttachmentSetId was not specified, a // new attachment set is created, and the ID of the set is returned in the response. // If an AttachmentSetId was specified, the attachments are added to the specified @@ -574,6 +561,12 @@ type AddAttachmentsToSetOutput struct { // The time and date when the attachment set expires. ExpiryTime *string `locationName:"expiryTime" type:"string"` + + metadataAddAttachmentsToSetOutput `json:"-" xml:"-"` +} + +type metadataAddAttachmentsToSetOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -588,8 +581,6 @@ func (s AddAttachmentsToSetOutput) GoString() string { // To be written. type AddCommunicationToCaseInput struct { - _ struct{} `type:"structure"` - // The ID of a set of one or more attachments for the communication to add to // the case. Create the set by calling AddAttachmentsToSet AttachmentSetId *string `locationName:"attachmentSetId" type:"string"` @@ -604,6 +595,12 @@ type AddCommunicationToCaseInput struct { // The body of an email communication to add to the support case. CommunicationBody *string `locationName:"communicationBody" type:"string" required:"true"` + + metadataAddCommunicationToCaseInput `json:"-" xml:"-"` +} + +type metadataAddCommunicationToCaseInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -616,25 +613,16 @@ func (s AddCommunicationToCaseInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddCommunicationToCaseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddCommunicationToCaseInput"} - if s.CommunicationBody == nil { - invalidParams.Add(request.NewErrParamRequired("CommunicationBody")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of the AddCommunicationToCase operation. type AddCommunicationToCaseOutput struct { - _ struct{} `type:"structure"` - // True if AddCommunicationToCase succeeds. Otherwise, returns an error. Result *bool `locationName:"result" type:"boolean"` + + metadataAddCommunicationToCaseOutput `json:"-" xml:"-"` +} + +type metadataAddCommunicationToCaseOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -650,15 +638,17 @@ func (s AddCommunicationToCaseOutput) GoString() string { // An attachment to a case communication. The attachment consists of the file // name and the content of the file. type Attachment struct { - _ struct{} `type:"structure"` - // The content of the attachment file. - // - // Data is automatically base64 encoded/decoded by the SDK. Data []byte `locationName:"data" type:"blob"` // The name of the attachment file. FileName *string `locationName:"fileName" type:"string"` + + metadataAttachment `json:"-" xml:"-"` +} + +type metadataAttachment struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -674,13 +664,17 @@ func (s Attachment) GoString() string { // The file name and ID of an attachment to a case communication. You can use // the ID to retrieve the attachment with the DescribeAttachment operation. type AttachmentDetails struct { - _ struct{} `type:"structure"` - // The ID of the attachment. AttachmentId *string `locationName:"attachmentId" type:"string"` // The file name of the attachment. FileName *string `locationName:"fileName" type:"string"` + + metadataAttachmentDetails `json:"-" xml:"-"` +} + +type metadataAttachmentDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -715,8 +709,6 @@ func (s AttachmentDetails) GoString() string { // The email address of the account that submitted the case. TimeCreated. The // time the case was created, in ISO-8601 format. type CaseDetails struct { - _ struct{} `type:"structure"` - // The AWS Support case ID requested or returned in the call. The case ID is // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 CaseId *string `locationName:"caseId" type:"string"` @@ -758,6 +750,12 @@ type CaseDetails struct { // The time that the case was case created in the AWS Support Center. TimeCreated *string `locationName:"timeCreated" type:"string"` + + metadataCaseDetails `json:"-" xml:"-"` +} + +type metadataCaseDetails struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -774,13 +772,17 @@ func (s CaseDetails) GoString() string { // code of the problem, selected from the DescribeServices response for each // AWS service. type Category struct { - _ struct{} `type:"structure"` - // The category code for the support case. Code *string `locationName:"code" type:"string"` // The category name for the support case. Name *string `locationName:"name" type:"string"` + + metadataCategory `json:"-" xml:"-"` +} + +type metadataCategory struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -797,8 +799,6 @@ func (s Category) GoString() string { // of the case ID, the message body, attachment information, the account email // address, and the date and time of the communication. type Communication struct { - _ struct{} `type:"structure"` - // Information about the attachments to the case communication. AttachmentSet []*AttachmentDetails `locationName:"attachmentSet" type:"list"` @@ -814,6 +814,12 @@ type Communication struct { // The time the communication was created. TimeCreated *string `locationName:"timeCreated" type:"string"` + + metadataCommunication `json:"-" xml:"-"` +} + +type metadataCommunication struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -827,8 +833,6 @@ func (s Communication) GoString() string { } type CreateCaseInput struct { - _ struct{} `type:"structure"` - // The ID of a set of one or more attachments for the case. Create the set by // using AddAttachmentsToSet. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"` @@ -864,6 +868,12 @@ type CreateCaseInput struct { // The title of the AWS Support case. Subject *string `locationName:"subject" type:"string" required:"true"` + + metadataCreateCaseInput `json:"-" xml:"-"` +} + +type metadataCreateCaseInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -876,30 +886,18 @@ func (s CreateCaseInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCaseInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCaseInput"} - if s.CommunicationBody == nil { - invalidParams.Add(request.NewErrParamRequired("CommunicationBody")) - } - if s.Subject == nil { - invalidParams.Add(request.NewErrParamRequired("Subject")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The AWS Support case ID returned by a successful completion of the CreateCase // operation. type CreateCaseOutput struct { - _ struct{} `type:"structure"` - // The AWS Support case ID requested or returned in the call. The case ID is // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 CaseId *string `locationName:"caseId" type:"string"` + + metadataCreateCaseOutput `json:"-" xml:"-"` +} + +type metadataCreateCaseOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -913,11 +911,15 @@ func (s CreateCaseOutput) GoString() string { } type DescribeAttachmentInput struct { - _ struct{} `type:"structure"` - // The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications // operation. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"` + + metadataDescribeAttachmentInput `json:"-" xml:"-"` +} + +type metadataDescribeAttachmentInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -930,26 +932,17 @@ func (s DescribeAttachmentInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeAttachmentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeAttachmentInput"} - if s.AttachmentId == nil { - invalidParams.Add(request.NewErrParamRequired("AttachmentId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The content and file name of the attachment returned by the DescribeAttachment // operation. type DescribeAttachmentOutput struct { - _ struct{} `type:"structure"` - // The attachment content and file name. Attachment *Attachment `locationName:"attachment" type:"structure"` + + metadataDescribeAttachmentOutput `json:"-" xml:"-"` +} + +type metadataDescribeAttachmentOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -963,8 +956,6 @@ func (s DescribeAttachmentOutput) GoString() string { } type DescribeCasesInput struct { - _ struct{} `type:"structure"` - // The start date for a filtered date search on support case communications. // Case communications are available for 12 months after creation. AfterTime *string `locationName:"afterTime" type:"string"` @@ -994,10 +985,16 @@ type DescribeCasesInput struct { Language *string `locationName:"language" type:"string"` // The maximum number of results to return before paginating. - MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"` + MaxResults *int64 `locationName:"maxResults" type:"integer"` // A resumption point for pagination. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeCasesInput `json:"-" xml:"-"` +} + +type metadataDescribeCasesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1010,29 +1007,20 @@ func (s DescribeCasesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeCasesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeCasesInput"} - if s.MaxResults != nil && *s.MaxResults < 10 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Returns an array of CaseDetails objects and a NextToken that defines a point // for pagination in the result set. type DescribeCasesOutput struct { - _ struct{} `type:"structure"` - // The details for the cases that match the request. Cases []*CaseDetails `locationName:"cases" type:"list"` // A resumption point for pagination. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeCasesOutput `json:"-" xml:"-"` +} + +type metadataDescribeCasesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1046,8 +1034,6 @@ func (s DescribeCasesOutput) GoString() string { } type DescribeCommunicationsInput struct { - _ struct{} `type:"structure"` - // The start date for a filtered date search on support case communications. // Case communications are available for 12 months after creation. AfterTime *string `locationName:"afterTime" type:"string"` @@ -1061,10 +1047,16 @@ type DescribeCommunicationsInput struct { CaseId *string `locationName:"caseId" type:"string" required:"true"` // The maximum number of results to return before paginating. - MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"` + MaxResults *int64 `locationName:"maxResults" type:"integer"` // A resumption point for pagination. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeCommunicationsInput `json:"-" xml:"-"` +} + +type metadataDescribeCommunicationsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1077,31 +1069,19 @@ func (s DescribeCommunicationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeCommunicationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeCommunicationsInput"} - if s.CaseId == nil { - invalidParams.Add(request.NewErrParamRequired("CaseId")) - } - if s.MaxResults != nil && *s.MaxResults < 10 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The communications returned by the DescribeCommunications operation. type DescribeCommunicationsOutput struct { - _ struct{} `type:"structure"` - // The communications for the case. Communications []*Communication `locationName:"communications" type:"list"` // A resumption point for pagination. NextToken *string `locationName:"nextToken" type:"string"` + + metadataDescribeCommunicationsOutput `json:"-" xml:"-"` +} + +type metadataDescribeCommunicationsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1115,8 +1095,6 @@ func (s DescribeCommunicationsOutput) GoString() string { } type DescribeServicesInput struct { - _ struct{} `type:"structure"` - // The ISO 639-1 code for the language in which AWS provides support. AWS Support // currently supports English ("en") and Japanese ("ja"). Language parameters // must be passed explicitly for operations that take them. @@ -1124,6 +1102,12 @@ type DescribeServicesInput struct { // A JSON-formatted list of service codes available for AWS services. ServiceCodeList []*string `locationName:"serviceCodeList" type:"list"` + + metadataDescribeServicesInput `json:"-" xml:"-"` +} + +type metadataDescribeServicesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1138,10 +1122,14 @@ func (s DescribeServicesInput) GoString() string { // The list of AWS services returned by the DescribeServices operation. type DescribeServicesOutput struct { - _ struct{} `type:"structure"` - // A JSON-formatted list of AWS services. Services []*Service `locationName:"services" type:"list"` + + metadataDescribeServicesOutput `json:"-" xml:"-"` +} + +type metadataDescribeServicesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1155,12 +1143,16 @@ func (s DescribeServicesOutput) GoString() string { } type DescribeSeverityLevelsInput struct { - _ struct{} `type:"structure"` - // The ISO 639-1 code for the language in which AWS provides support. AWS Support // currently supports English ("en") and Japanese ("ja"). Language parameters // must be passed explicitly for operations that take them. Language *string `locationName:"language" type:"string"` + + metadataDescribeSeverityLevelsInput `json:"-" xml:"-"` +} + +type metadataDescribeSeverityLevelsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1175,11 +1167,15 @@ func (s DescribeSeverityLevelsInput) GoString() string { // The list of severity levels returned by the DescribeSeverityLevels operation. type DescribeSeverityLevelsOutput struct { - _ struct{} `type:"structure"` - // The available severity levels for the support case. Available severity levels // are defined by your service level agreement with AWS. SeverityLevels []*SeverityLevel `locationName:"severityLevels" type:"list"` + + metadataDescribeSeverityLevelsOutput `json:"-" xml:"-"` +} + +type metadataDescribeSeverityLevelsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1193,10 +1189,14 @@ func (s DescribeSeverityLevelsOutput) GoString() string { } type DescribeTrustedAdvisorCheckRefreshStatusesInput struct { - _ struct{} `type:"structure"` - // The IDs of the Trusted Advisor checks. CheckIds []*string `locationName:"checkIds" type:"list" required:"true"` + + metadataDescribeTrustedAdvisorCheckRefreshStatusesInput `json:"-" xml:"-"` +} + +type metadataDescribeTrustedAdvisorCheckRefreshStatusesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1209,26 +1209,17 @@ func (s DescribeTrustedAdvisorCheckRefreshStatusesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTrustedAdvisorCheckRefreshStatusesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckRefreshStatusesInput"} - if s.CheckIds == nil { - invalidParams.Add(request.NewErrParamRequired("CheckIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The statuses of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckRefreshStatuses // operation. type DescribeTrustedAdvisorCheckRefreshStatusesOutput struct { - _ struct{} `type:"structure"` - // The refresh status of the specified Trusted Advisor checks. Statuses []*TrustedAdvisorCheckRefreshStatus `locationName:"statuses" type:"list" required:"true"` + + metadataDescribeTrustedAdvisorCheckRefreshStatusesOutput `json:"-" xml:"-"` +} + +type metadataDescribeTrustedAdvisorCheckRefreshStatusesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1242,8 +1233,6 @@ func (s DescribeTrustedAdvisorCheckRefreshStatusesOutput) GoString() string { } type DescribeTrustedAdvisorCheckResultInput struct { - _ struct{} `type:"structure"` - // The unique identifier for the Trusted Advisor check. CheckId *string `locationName:"checkId" type:"string" required:"true"` @@ -1251,6 +1240,12 @@ type DescribeTrustedAdvisorCheckResultInput struct { // currently supports English ("en") and Japanese ("ja"). Language parameters // must be passed explicitly for operations that take them. Language *string `locationName:"language" type:"string"` + + metadataDescribeTrustedAdvisorCheckResultInput `json:"-" xml:"-"` +} + +type metadataDescribeTrustedAdvisorCheckResultInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1263,26 +1258,17 @@ func (s DescribeTrustedAdvisorCheckResultInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTrustedAdvisorCheckResultInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckResultInput"} - if s.CheckId == nil { - invalidParams.Add(request.NewErrParamRequired("CheckId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The result of the Trusted Advisor check returned by the DescribeTrustedAdvisorCheckResult // operation. type DescribeTrustedAdvisorCheckResultOutput struct { - _ struct{} `type:"structure"` - // The detailed results of the Trusted Advisor check. Result *TrustedAdvisorCheckResult `locationName:"result" type:"structure"` + + metadataDescribeTrustedAdvisorCheckResultOutput `json:"-" xml:"-"` +} + +type metadataDescribeTrustedAdvisorCheckResultOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1296,10 +1282,14 @@ func (s DescribeTrustedAdvisorCheckResultOutput) GoString() string { } type DescribeTrustedAdvisorCheckSummariesInput struct { - _ struct{} `type:"structure"` - // The IDs of the Trusted Advisor checks. CheckIds []*string `locationName:"checkIds" type:"list" required:"true"` + + metadataDescribeTrustedAdvisorCheckSummariesInput `json:"-" xml:"-"` +} + +type metadataDescribeTrustedAdvisorCheckSummariesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1312,26 +1302,17 @@ func (s DescribeTrustedAdvisorCheckSummariesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTrustedAdvisorCheckSummariesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckSummariesInput"} - if s.CheckIds == nil { - invalidParams.Add(request.NewErrParamRequired("CheckIds")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The summaries of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckSummaries // operation. type DescribeTrustedAdvisorCheckSummariesOutput struct { - _ struct{} `type:"structure"` - // The summary information for the requested Trusted Advisor checks. Summaries []*TrustedAdvisorCheckSummary `locationName:"summaries" type:"list" required:"true"` + + metadataDescribeTrustedAdvisorCheckSummariesOutput `json:"-" xml:"-"` +} + +type metadataDescribeTrustedAdvisorCheckSummariesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1345,12 +1326,16 @@ func (s DescribeTrustedAdvisorCheckSummariesOutput) GoString() string { } type DescribeTrustedAdvisorChecksInput struct { - _ struct{} `type:"structure"` - // The ISO 639-1 code for the language in which AWS provides support. AWS Support // currently supports English ("en") and Japanese ("ja"). Language parameters // must be passed explicitly for operations that take them. Language *string `locationName:"language" type:"string" required:"true"` + + metadataDescribeTrustedAdvisorChecksInput `json:"-" xml:"-"` +} + +type metadataDescribeTrustedAdvisorChecksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1363,26 +1348,17 @@ func (s DescribeTrustedAdvisorChecksInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTrustedAdvisorChecksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorChecksInput"} - if s.Language == nil { - invalidParams.Add(request.NewErrParamRequired("Language")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Information about the Trusted Advisor checks returned by the DescribeTrustedAdvisorChecks // operation. type DescribeTrustedAdvisorChecksOutput struct { - _ struct{} `type:"structure"` - // Information about all available Trusted Advisor checks. Checks []*TrustedAdvisorCheckDescription `locationName:"checks" type:"list" required:"true"` + + metadataDescribeTrustedAdvisorChecksOutput `json:"-" xml:"-"` +} + +type metadataDescribeTrustedAdvisorChecksOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1397,13 +1373,17 @@ func (s DescribeTrustedAdvisorChecksOutput) GoString() string { // The five most recent communications associated with the case. type RecentCaseCommunications struct { - _ struct{} `type:"structure"` - // The five most recent communications associated with the case. Communications []*Communication `locationName:"communications" type:"list"` // A resumption point for pagination. NextToken *string `locationName:"nextToken" type:"string"` + + metadataRecentCaseCommunications `json:"-" xml:"-"` +} + +type metadataRecentCaseCommunications struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1417,10 +1397,14 @@ func (s RecentCaseCommunications) GoString() string { } type RefreshTrustedAdvisorCheckInput struct { - _ struct{} `type:"structure"` - // The unique identifier for the Trusted Advisor check. CheckId *string `locationName:"checkId" type:"string" required:"true"` + + metadataRefreshTrustedAdvisorCheckInput `json:"-" xml:"-"` +} + +type metadataRefreshTrustedAdvisorCheckInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1433,26 +1417,17 @@ func (s RefreshTrustedAdvisorCheckInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RefreshTrustedAdvisorCheckInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RefreshTrustedAdvisorCheckInput"} - if s.CheckId == nil { - invalidParams.Add(request.NewErrParamRequired("CheckId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The current refresh status of a Trusted Advisor check. type RefreshTrustedAdvisorCheckOutput struct { - _ struct{} `type:"structure"` - // The current refresh status for a check, including the amount of time until // the check is eligible for refresh. Status *TrustedAdvisorCheckRefreshStatus `locationName:"status" type:"structure" required:"true"` + + metadataRefreshTrustedAdvisorCheckOutput `json:"-" xml:"-"` +} + +type metadataRefreshTrustedAdvisorCheckOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1466,11 +1441,15 @@ func (s RefreshTrustedAdvisorCheckOutput) GoString() string { } type ResolveCaseInput struct { - _ struct{} `type:"structure"` - // The AWS Support case ID requested or returned in the call. The case ID is // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 CaseId *string `locationName:"caseId" type:"string"` + + metadataResolveCaseInput `json:"-" xml:"-"` +} + +type metadataResolveCaseInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1485,13 +1464,17 @@ func (s ResolveCaseInput) GoString() string { // The status of the case returned by the ResolveCase operation. type ResolveCaseOutput struct { - _ struct{} `type:"structure"` - // The status of the case after the ResolveCase request was processed. FinalCaseStatus *string `locationName:"finalCaseStatus" type:"string"` // The status of the case when the ResolveCase request was sent. InitialCaseStatus *string `locationName:"initialCaseStatus" type:"string"` + + metadataResolveCaseOutput `json:"-" xml:"-"` +} + +type metadataResolveCaseOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1506,8 +1489,6 @@ func (s ResolveCaseOutput) GoString() string { // Information about an AWS service returned by the DescribeServices operation. type Service struct { - _ struct{} `type:"structure"` - // A list of categories that describe the type of support issue a case describes. // Categories consist of a category name and a category code. Category names // and codes are passed to AWS Support when you call CreateCase. @@ -1520,6 +1501,12 @@ type Service struct { // The friendly name for an AWS service. The Code element contains the corresponding // code. Name *string `locationName:"name" type:"string"` + + metadataService `json:"-" xml:"-"` +} + +type metadataService struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1535,14 +1522,18 @@ func (s Service) GoString() string { // A code and name pair that represent a severity level that can be applied // to a support case. type SeverityLevel struct { - _ struct{} `type:"structure"` - // One of four values: "low," "medium," "high," and "urgent". These values correspond // to response times returned to the caller in SeverityLevel.name. Code *string `locationName:"code" type:"string"` // The name of the severity level that corresponds to the severity level code. Name *string `locationName:"name" type:"string"` + + metadataSeverityLevel `json:"-" xml:"-"` +} + +type metadataSeverityLevel struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1558,11 +1549,15 @@ func (s SeverityLevel) GoString() string { // The container for summary information that relates to the category of the // Trusted Advisor check. type TrustedAdvisorCategorySpecificSummary struct { - _ struct{} `type:"structure"` - // The summary information about cost savings for a Trusted Advisor check that // is in the Cost Optimizing category. CostOptimizing *TrustedAdvisorCostOptimizingSummary `locationName:"costOptimizing" type:"structure"` + + metadataTrustedAdvisorCategorySpecificSummary `json:"-" xml:"-"` +} + +type metadataTrustedAdvisorCategorySpecificSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1577,8 +1572,6 @@ func (s TrustedAdvisorCategorySpecificSummary) GoString() string { // The description and metadata for a Trusted Advisor check. type TrustedAdvisorCheckDescription struct { - _ struct{} `type:"structure"` - // The category of the Trusted Advisor check. Category *string `locationName:"category" type:"string" required:"true"` @@ -1598,6 +1591,12 @@ type TrustedAdvisorCheckDescription struct { // The display name for the Trusted Advisor check. Name *string `locationName:"name" type:"string" required:"true"` + + metadataTrustedAdvisorCheckDescription `json:"-" xml:"-"` +} + +type metadataTrustedAdvisorCheckDescription struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1612,8 +1611,6 @@ func (s TrustedAdvisorCheckDescription) GoString() string { // The refresh status of a Trusted Advisor check. type TrustedAdvisorCheckRefreshStatus struct { - _ struct{} `type:"structure"` - // The unique identifier for the Trusted Advisor check. CheckId *string `locationName:"checkId" type:"string" required:"true"` @@ -1624,6 +1621,12 @@ type TrustedAdvisorCheckRefreshStatus struct { // The status of the Trusted Advisor check for which a refresh has been requested: // "none", "enqueued", "processing", "success", or "abandoned". Status *string `locationName:"status" type:"string" required:"true"` + + metadataTrustedAdvisorCheckRefreshStatus `json:"-" xml:"-"` +} + +type metadataTrustedAdvisorCheckRefreshStatus struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1638,8 +1641,6 @@ func (s TrustedAdvisorCheckRefreshStatus) GoString() string { // The results of a Trusted Advisor check returned by DescribeTrustedAdvisorCheckResult. type TrustedAdvisorCheckResult struct { - _ struct{} `type:"structure"` - // Summary information that relates to the category of the check. Cost Optimizing // is the only category that is currently supported. CategorySpecificSummary *TrustedAdvisorCategorySpecificSummary `locationName:"categorySpecificSummary" type:"structure" required:"true"` @@ -1660,6 +1661,12 @@ type TrustedAdvisorCheckResult struct { // The time of the last refresh of the check. Timestamp *string `locationName:"timestamp" type:"string" required:"true"` + + metadataTrustedAdvisorCheckResult `json:"-" xml:"-"` +} + +type metadataTrustedAdvisorCheckResult struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1675,8 +1682,6 @@ func (s TrustedAdvisorCheckResult) GoString() string { // A summary of a Trusted Advisor check result, including the alert status, // last refresh, and number of resources examined. type TrustedAdvisorCheckSummary struct { - _ struct{} `type:"structure"` - // Summary information that relates to the category of the check. Cost Optimizing // is the only category that is currently supported. CategorySpecificSummary *TrustedAdvisorCategorySpecificSummary `locationName:"categorySpecificSummary" type:"structure" required:"true"` @@ -1697,6 +1702,12 @@ type TrustedAdvisorCheckSummary struct { // The time of the last refresh of the check. Timestamp *string `locationName:"timestamp" type:"string" required:"true"` + + metadataTrustedAdvisorCheckSummary `json:"-" xml:"-"` +} + +type metadataTrustedAdvisorCheckSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1712,8 +1723,6 @@ func (s TrustedAdvisorCheckSummary) GoString() string { // The estimated cost savings that might be realized if the recommended actions // are taken. type TrustedAdvisorCostOptimizingSummary struct { - _ struct{} `type:"structure"` - // The estimated monthly savings that might be realized if the recommended actions // are taken. EstimatedMonthlySavings *float64 `locationName:"estimatedMonthlySavings" type:"double" required:"true"` @@ -1721,6 +1730,12 @@ type TrustedAdvisorCostOptimizingSummary struct { // The estimated percentage of savings that might be realized if the recommended // actions are taken. EstimatedPercentMonthlySavings *float64 `locationName:"estimatedPercentMonthlySavings" type:"double" required:"true"` + + metadataTrustedAdvisorCostOptimizingSummary `json:"-" xml:"-"` +} + +type metadataTrustedAdvisorCostOptimizingSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1735,8 +1750,6 @@ func (s TrustedAdvisorCostOptimizingSummary) GoString() string { // Contains information about a resource identified by a Trusted Advisor check. type TrustedAdvisorResourceDetail struct { - _ struct{} `type:"structure"` - // Specifies whether the AWS resource was ignored by Trusted Advisor because // it was marked as suppressed by the user. IsSuppressed *bool `locationName:"isSuppressed" type:"boolean"` @@ -1756,6 +1769,12 @@ type TrustedAdvisorResourceDetail struct { // The status code for the resource identified in the Trusted Advisor check. Status *string `locationName:"status" type:"string" required:"true"` + + metadataTrustedAdvisorResourceDetail `json:"-" xml:"-"` +} + +type metadataTrustedAdvisorResourceDetail struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1771,8 +1790,6 @@ func (s TrustedAdvisorResourceDetail) GoString() string { // Details about AWS resources that were analyzed in a call to Trusted Advisor // DescribeTrustedAdvisorCheckSummaries. type TrustedAdvisorResourcesSummary struct { - _ struct{} `type:"structure"` - // The number of AWS resources that were flagged (listed) by the Trusted Advisor // check. ResourcesFlagged *int64 `locationName:"resourcesFlagged" type:"long" required:"true"` @@ -1787,6 +1804,12 @@ type TrustedAdvisorResourcesSummary struct { // The number of AWS resources ignored by Trusted Advisor because they were // marked as suppressed by the user. ResourcesSuppressed *int64 `locationName:"resourcesSuppressed" type:"long" required:"true"` + + metadataTrustedAdvisorResourcesSummary `json:"-" xml:"-"` +} + +type metadataTrustedAdvisorResourcesSummary struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go index b67d41b8b..7a4e8cd6d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/support/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/support" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSupport_AddAttachmentsToSet() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.AddAttachmentsToSetInput{ Attachments: []*support.Attachment{ // Required @@ -42,7 +41,7 @@ func ExampleSupport_AddAttachmentsToSet() { } func ExampleSupport_AddCommunicationToCase() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.AddCommunicationToCaseInput{ CommunicationBody: aws.String("CommunicationBody"), // Required @@ -67,7 +66,7 @@ func ExampleSupport_AddCommunicationToCase() { } func ExampleSupport_CreateCase() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.CreateCaseInput{ CommunicationBody: aws.String("CommunicationBody"), // Required @@ -97,7 +96,7 @@ func ExampleSupport_CreateCase() { } func ExampleSupport_DescribeAttachment() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.DescribeAttachmentInput{ AttachmentId: aws.String("AttachmentId"), // Required @@ -116,7 +115,7 @@ func ExampleSupport_DescribeAttachment() { } func ExampleSupport_DescribeCases() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.DescribeCasesInput{ AfterTime: aws.String("AfterTime"), @@ -146,7 +145,7 @@ func ExampleSupport_DescribeCases() { } func ExampleSupport_DescribeCommunications() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.DescribeCommunicationsInput{ CaseId: aws.String("CaseId"), // Required @@ -169,7 +168,7 @@ func ExampleSupport_DescribeCommunications() { } func ExampleSupport_DescribeServices() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.DescribeServicesInput{ Language: aws.String("Language"), @@ -192,7 +191,7 @@ func ExampleSupport_DescribeServices() { } func ExampleSupport_DescribeSeverityLevels() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.DescribeSeverityLevelsInput{ Language: aws.String("Language"), @@ -211,7 +210,7 @@ func ExampleSupport_DescribeSeverityLevels() { } func ExampleSupport_DescribeTrustedAdvisorCheckRefreshStatuses() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.DescribeTrustedAdvisorCheckRefreshStatusesInput{ CheckIds: []*string{ // Required @@ -233,7 +232,7 @@ func ExampleSupport_DescribeTrustedAdvisorCheckRefreshStatuses() { } func ExampleSupport_DescribeTrustedAdvisorCheckResult() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.DescribeTrustedAdvisorCheckResultInput{ CheckId: aws.String("String"), // Required @@ -253,7 +252,7 @@ func ExampleSupport_DescribeTrustedAdvisorCheckResult() { } func ExampleSupport_DescribeTrustedAdvisorCheckSummaries() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.DescribeTrustedAdvisorCheckSummariesInput{ CheckIds: []*string{ // Required @@ -275,7 +274,7 @@ func ExampleSupport_DescribeTrustedAdvisorCheckSummaries() { } func ExampleSupport_DescribeTrustedAdvisorChecks() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.DescribeTrustedAdvisorChecksInput{ Language: aws.String("String"), // Required @@ -294,7 +293,7 @@ func ExampleSupport_DescribeTrustedAdvisorChecks() { } func ExampleSupport_RefreshTrustedAdvisorCheck() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.RefreshTrustedAdvisorCheckInput{ CheckId: aws.String("String"), // Required @@ -313,7 +312,7 @@ func ExampleSupport_RefreshTrustedAdvisorCheck() { } func ExampleSupport_ResolveCase() { - svc := support.New(session.New()) + svc := support.New(nil) params := &support.ResolveCaseInput{ CaseId: aws.String("CaseId"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/service.go b/vendor/github.com/aws/aws-sdk-go/service/support/service.go index a6ef18cca..30c638d81 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/support/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/support/service.go @@ -4,11 +4,12 @@ package support import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // The AWS Support API reference is intended for programmers who need detailed @@ -46,66 +47,42 @@ import ( // in the AWS Support User Guide for information about how to use this service // to create and manage your support cases, and how to call Trusted Advisor // for results of checks on your resources. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type Support struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "support" - -// New creates a new instance of the Support client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a Support client from just a session. -// svc := support.New(mySession) -// -// // Create a Support client with additional configuration -// svc := support.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *Support { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *Support { - svc := &Support{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2013-04-15", - JSONVersion: "1.1", - TargetPrefix: "AWSSupport_20130415", - }, - handlers, - ), +// New returns a new Support client. +func New(config *aws.Config) *Support { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "support", + APIVersion: "2013-04-15", + JSONVersion: "1.1", + TargetPrefix: "AWSSupport_20130415", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &Support{service} } // newRequest creates a new request for a Support operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go index 21c3b19c1..9f5c6d6ae 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface.go @@ -70,5 +70,3 @@ type SupportAPI interface { ResolveCase(*support.ResolveCaseInput) (*support.ResolveCaseOutput, error) } - -var _ SupportAPI = (*support.Support)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface_test.go new file mode 100644 index 000000000..e6ee22c6a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package supportiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/support" + "github.com/aws/aws-sdk-go/service/support/supportiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*supportiface.SupportAPI)(nil), support.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/api.go b/vendor/github.com/aws/aws-sdk-go/service/swf/api.go index 899de8909..f4ec7ec96 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/swf/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/api.go @@ -4,13 +4,10 @@ package swf import ( - "fmt" "time" "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/private/protocol/jsonrpc" ) const opCountClosedWorkflowExecutions = "CountClosedWorkflowExecutions" @@ -210,8 +207,6 @@ func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeprecateActivityTypeOutput{} req.Data = output return @@ -258,8 +253,6 @@ func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request. } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeprecateDomainOutput{} req.Data = output return @@ -307,8 +300,6 @@ func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (r } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &DeprecateWorkflowTypeOutput{} req.Data = output return @@ -568,7 +559,6 @@ func (c *SWF) GetWorkflowExecutionHistory(input *GetWorkflowExecutionHistoryInpu func (c *SWF) GetWorkflowExecutionHistoryPages(input *GetWorkflowExecutionHistoryInput, fn func(p *GetWorkflowExecutionHistoryOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.GetWorkflowExecutionHistoryRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*GetWorkflowExecutionHistoryOutput), lastPage) }) @@ -627,7 +617,6 @@ func (c *SWF) ListActivityTypes(input *ListActivityTypesInput) (*ListActivityTyp func (c *SWF) ListActivityTypesPages(input *ListActivityTypesInput, fn func(p *ListActivityTypesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListActivityTypesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListActivityTypesOutput), lastPage) }) @@ -689,7 +678,6 @@ func (c *SWF) ListClosedWorkflowExecutions(input *ListClosedWorkflowExecutionsIn func (c *SWF) ListClosedWorkflowExecutionsPages(input *ListClosedWorkflowExecutionsInput, fn func(p *WorkflowExecutionInfos, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListClosedWorkflowExecutionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*WorkflowExecutionInfos), lastPage) }) @@ -748,7 +736,6 @@ func (c *SWF) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { func (c *SWF) ListDomainsPages(input *ListDomainsInput, fn func(p *ListDomainsOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListDomainsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListDomainsOutput), lastPage) }) @@ -810,7 +797,6 @@ func (c *SWF) ListOpenWorkflowExecutions(input *ListOpenWorkflowExecutionsInput) func (c *SWF) ListOpenWorkflowExecutionsPages(input *ListOpenWorkflowExecutionsInput, fn func(p *WorkflowExecutionInfos, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListOpenWorkflowExecutionsRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*WorkflowExecutionInfos), lastPage) }) @@ -867,7 +853,6 @@ func (c *SWF) ListWorkflowTypes(input *ListWorkflowTypesInput) (*ListWorkflowTyp func (c *SWF) ListWorkflowTypesPages(input *ListWorkflowTypesInput, fn func(p *ListWorkflowTypesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.ListWorkflowTypesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*ListWorkflowTypesOutput), lastPage) }) @@ -991,7 +976,6 @@ func (c *SWF) PollForDecisionTask(input *PollForDecisionTaskInput) (*PollForDeci func (c *SWF) PollForDecisionTaskPages(input *PollForDecisionTaskInput, fn func(p *PollForDecisionTaskOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.PollForDecisionTaskRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*PollForDecisionTaskOutput), lastPage) }) @@ -1074,8 +1058,6 @@ func (c *SWF) RegisterActivityTypeRequest(input *RegisterActivityTypeInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RegisterActivityTypeOutput{} req.Data = output return @@ -1123,8 +1105,6 @@ func (c *SWF) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Re } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RegisterDomainOutput{} req.Data = output return @@ -1167,8 +1147,6 @@ func (c *SWF) RegisterWorkflowTypeRequest(input *RegisterWorkflowTypeInput) (req } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RegisterWorkflowTypeOutput{} req.Data = output return @@ -1219,8 +1197,6 @@ func (c *SWF) RequestCancelWorkflowExecutionRequest(input *RequestCancelWorkflow } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RequestCancelWorkflowExecutionOutput{} req.Data = output return @@ -1270,8 +1246,6 @@ func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCance } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RespondActivityTaskCanceledOutput{} req.Data = output return @@ -1326,8 +1300,6 @@ func (c *SWF) RespondActivityTaskCompletedRequest(input *RespondActivityTaskComp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RespondActivityTaskCompletedOutput{} req.Data = output return @@ -1380,8 +1352,6 @@ func (c *SWF) RespondActivityTaskFailedRequest(input *RespondActivityTaskFailedI } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RespondActivityTaskFailedOutput{} req.Data = output return @@ -1431,8 +1401,6 @@ func (c *SWF) RespondDecisionTaskCompletedRequest(input *RespondDecisionTaskComp } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &RespondDecisionTaskCompletedOutput{} req.Data = output return @@ -1475,8 +1443,6 @@ func (c *SWF) SignalWorkflowExecutionRequest(input *SignalWorkflowExecutionInput } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &SignalWorkflowExecutionOutput{} req.Data = output return @@ -1574,8 +1540,6 @@ func (c *SWF) TerminateWorkflowExecutionRequest(input *TerminateWorkflowExecutio } req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) output = &TerminateWorkflowExecutionOutput{} req.Data = output return @@ -1613,16 +1577,20 @@ func (c *SWF) TerminateWorkflowExecution(input *TerminateWorkflowExecutionInput) // Provides details of the ActivityTaskCancelRequested event. type ActivityTaskCancelRequestedEventAttributes struct { - _ struct{} `type:"structure"` - // The unique ID of the task. - ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"` + ActivityId *string `locationName:"activityId" type:"string" required:"true"` // The ID of the DecisionTaskCompleted event corresponding to the decision task // that resulted in the RequestCancelActivityTask decision for this cancellation // request. This information can be useful for diagnosing problems by tracing // back the chain of events leading up to this event. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` + + metadataActivityTaskCancelRequestedEventAttributes `json:"-" xml:"-"` +} + +type metadataActivityTaskCancelRequestedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1637,8 +1605,6 @@ func (s ActivityTaskCancelRequestedEventAttributes) GoString() string { // Provides details of the ActivityTaskCanceled event. type ActivityTaskCanceledEventAttributes struct { - _ struct{} `type:"structure"` - // Details of the cancellation (if any). Details *string `locationName:"details" type:"string"` @@ -1656,6 +1622,12 @@ type ActivityTaskCanceledEventAttributes struct { // was started. This information can be useful for diagnosing problems by tracing // back the chain of events leading up to this event. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"` + + metadataActivityTaskCanceledEventAttributes `json:"-" xml:"-"` +} + +type metadataActivityTaskCanceledEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1670,8 +1642,6 @@ func (s ActivityTaskCanceledEventAttributes) GoString() string { // Provides details of the ActivityTaskCompleted event. type ActivityTaskCompletedEventAttributes struct { - _ struct{} `type:"structure"` - // The results of the activity task (if any). Result *string `locationName:"result" type:"string"` @@ -1684,6 +1654,12 @@ type ActivityTaskCompletedEventAttributes struct { // was started. This information can be useful for diagnosing problems by tracing // back the chain of events leading up to this event. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"` + + metadataActivityTaskCompletedEventAttributes `json:"-" xml:"-"` +} + +type metadataActivityTaskCompletedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1698,8 +1674,6 @@ func (s ActivityTaskCompletedEventAttributes) GoString() string { // Provides details of the ActivityTaskFailed event. type ActivityTaskFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The details of the failure (if any). Details *string `locationName:"details" type:"string"` @@ -1715,6 +1689,12 @@ type ActivityTaskFailedEventAttributes struct { // was started. This information can be useful for diagnosing problems by tracing // back the chain of events leading up to this event. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"` + + metadataActivityTaskFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataActivityTaskFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1729,10 +1709,8 @@ func (s ActivityTaskFailedEventAttributes) GoString() string { // Provides details of the ActivityTaskScheduled event. type ActivityTaskScheduledEventAttributes struct { - _ struct{} `type:"structure"` - // The unique ID of the activity task. - ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"` + ActivityId *string `locationName:"activityId" type:"string" required:"true"` // The type of the activity task. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"` @@ -1780,6 +1758,12 @@ type ActivityTaskScheduledEventAttributes struct { // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html) // in the Amazon Simple Workflow Developer Guide. TaskPriority *string `locationName:"taskPriority" type:"string"` + + metadataActivityTaskScheduledEventAttributes `json:"-" xml:"-"` +} + +type metadataActivityTaskScheduledEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1794,8 +1778,6 @@ func (s ActivityTaskScheduledEventAttributes) GoString() string { // Provides details of the ActivityTaskStarted event. type ActivityTaskStartedEventAttributes struct { - _ struct{} `type:"structure"` - // Identity of the worker that was assigned this task. This aids diagnostics // when problems arise. The form of this identity is user defined. Identity *string `locationName:"identity" type:"string"` @@ -1804,6 +1786,12 @@ type ActivityTaskStartedEventAttributes struct { // task was scheduled. This information can be useful for diagnosing problems // by tracing back the chain of events leading up to this event. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"` + + metadataActivityTaskStartedEventAttributes `json:"-" xml:"-"` +} + +type metadataActivityTaskStartedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1818,8 +1806,6 @@ func (s ActivityTaskStartedEventAttributes) GoString() string { // Provides details of the ActivityTaskTimedOut event. type ActivityTaskTimedOutEventAttributes struct { - _ struct{} `type:"structure"` - // Contains the content of the details parameter for the last call made by the // activity to RecordActivityTaskHeartbeat. Details *string `locationName:"details" type:"string"` @@ -1836,6 +1822,12 @@ type ActivityTaskTimedOutEventAttributes struct { // The type of the timeout that caused this event. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"ActivityTaskTimeoutType"` + + metadataActivityTaskTimedOutEventAttributes `json:"-" xml:"-"` +} + +type metadataActivityTaskTimedOutEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1850,19 +1842,23 @@ func (s ActivityTaskTimedOutEventAttributes) GoString() string { // Represents an activity type. type ActivityType struct { - _ struct{} `type:"structure"` - // The name of this activity. // // The combination of activity type name and version must be unique within // a domain. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // The version of this activity. // // The combination of activity type name and version must be unique with in // a domain. - Version *string `locationName:"version" min:"1" type:"string" required:"true"` + Version *string `locationName:"version" type:"string" required:"true"` + + metadataActivityType `json:"-" xml:"-"` +} + +type metadataActivityType struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1875,32 +1871,8 @@ func (s ActivityType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ActivityType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ActivityType"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Version == nil { - invalidParams.Add(request.NewErrParamRequired("Version")) - } - if s.Version != nil && len(*s.Version) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Version", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Configuration settings registered with the activity type. type ActivityTypeConfiguration struct { - _ struct{} `type:"structure"` - // Optional. The default maximum time, in seconds, before which a worker processing // a task must report progress by calling RecordActivityTaskHeartbeat. // @@ -1957,6 +1929,12 @@ type ActivityTypeConfiguration struct { // The duration is specified in seconds; an integer greater than or equal to // 0. The value "NONE" can be used to specify unlimited duration. DefaultTaskStartToCloseTimeout *string `locationName:"defaultTaskStartToCloseTimeout" type:"string"` + + metadataActivityTypeConfiguration `json:"-" xml:"-"` +} + +type metadataActivityTypeConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1971,8 +1949,6 @@ func (s ActivityTypeConfiguration) GoString() string { // Detailed information about an activity type. type ActivityTypeInfo struct { - _ struct{} `type:"structure"` - // The ActivityType type structure representing the activity type. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"` @@ -1987,6 +1963,12 @@ type ActivityTypeInfo struct { // The current status of the activity type. Status *string `locationName:"status" type:"string" required:"true" enum:"RegistrationStatus"` + + metadataActivityTypeInfo `json:"-" xml:"-"` +} + +type metadataActivityTypeInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2015,10 +1997,14 @@ func (s ActivityTypeInfo) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type CancelTimerDecisionAttributes struct { - _ struct{} `type:"structure"` - // Required. The unique ID of the timer to cancel. - TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"` + TimerId *string `locationName:"timerId" type:"string" required:"true"` + + metadataCancelTimerDecisionAttributes `json:"-" xml:"-"` +} + +type metadataCancelTimerDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2031,26 +2017,8 @@ func (s CancelTimerDecisionAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelTimerDecisionAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelTimerDecisionAttributes"} - if s.TimerId == nil { - invalidParams.Add(request.NewErrParamRequired("TimerId")) - } - if s.TimerId != nil && len(*s.TimerId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TimerId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the CancelTimerFailed event. type CancelTimerFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -2066,7 +2034,13 @@ type CancelTimerFailedEventAttributes struct { DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` // The timerId provided in the CancelTimer decision that failed. - TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"` + TimerId *string `locationName:"timerId" type:"string" required:"true"` + + metadataCancelTimerFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataCancelTimerFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2095,10 +2069,14 @@ func (s CancelTimerFailedEventAttributes) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type CancelWorkflowExecutionDecisionAttributes struct { - _ struct{} `type:"structure"` - // Optional. details of the cancellation. Details *string `locationName:"details" type:"string"` + + metadataCancelWorkflowExecutionDecisionAttributes `json:"-" xml:"-"` +} + +type metadataCancelWorkflowExecutionDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2113,8 +2091,6 @@ func (s CancelWorkflowExecutionDecisionAttributes) GoString() string { // Provides details of the CancelWorkflowExecutionFailed event. type CancelWorkflowExecutionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -2128,6 +2104,12 @@ type CancelWorkflowExecutionFailedEventAttributes struct { // request. This information can be useful for diagnosing problems by tracing // back the chain of events leading up to this event. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` + + metadataCancelWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataCancelWorkflowExecutionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2142,8 +2124,6 @@ func (s CancelWorkflowExecutionFailedEventAttributes) GoString() string { // Provide details of the ChildWorkflowExecutionCanceled event. type ChildWorkflowExecutionCanceledEventAttributes struct { - _ struct{} `type:"structure"` - // Details of the cancellation (if provided). Details *string `locationName:"details" type:"string"` @@ -2163,6 +2143,12 @@ type ChildWorkflowExecutionCanceledEventAttributes struct { // The type of the child workflow execution. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataChildWorkflowExecutionCanceledEventAttributes `json:"-" xml:"-"` +} + +type metadataChildWorkflowExecutionCanceledEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2177,8 +2163,6 @@ func (s ChildWorkflowExecutionCanceledEventAttributes) GoString() string { // Provides details of the ChildWorkflowExecutionCompleted event. type ChildWorkflowExecutionCompletedEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the StartChildWorkflowExecutionInitiated event corresponding to // the StartChildWorkflowExecution decision to start this child workflow execution. // This information can be useful for diagnosing problems by tracing back the @@ -2198,6 +2182,12 @@ type ChildWorkflowExecutionCompletedEventAttributes struct { // The type of the child workflow execution. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataChildWorkflowExecutionCompletedEventAttributes `json:"-" xml:"-"` +} + +type metadataChildWorkflowExecutionCompletedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2212,8 +2202,6 @@ func (s ChildWorkflowExecutionCompletedEventAttributes) GoString() string { // Provides details of the ChildWorkflowExecutionFailed event. type ChildWorkflowExecutionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The details of the failure (if provided). Details *string `locationName:"details" type:"string"` @@ -2236,6 +2224,12 @@ type ChildWorkflowExecutionFailedEventAttributes struct { // The type of the child workflow execution. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataChildWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataChildWorkflowExecutionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2250,8 +2244,6 @@ func (s ChildWorkflowExecutionFailedEventAttributes) GoString() string { // Provides details of the ChildWorkflowExecutionStarted event. type ChildWorkflowExecutionStartedEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the StartChildWorkflowExecutionInitiated event corresponding to // the StartChildWorkflowExecution decision to start this child workflow execution. // This information can be useful for diagnosing problems by tracing back the @@ -2263,6 +2255,12 @@ type ChildWorkflowExecutionStartedEventAttributes struct { // The type of the child workflow execution. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataChildWorkflowExecutionStartedEventAttributes `json:"-" xml:"-"` +} + +type metadataChildWorkflowExecutionStartedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2277,8 +2275,6 @@ func (s ChildWorkflowExecutionStartedEventAttributes) GoString() string { // Provides details of the ChildWorkflowExecutionTerminated event. type ChildWorkflowExecutionTerminatedEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the StartChildWorkflowExecutionInitiated event corresponding to // the StartChildWorkflowExecution decision to start this child workflow execution. // This information can be useful for diagnosing problems by tracing back the @@ -2295,6 +2291,12 @@ type ChildWorkflowExecutionTerminatedEventAttributes struct { // The type of the child workflow execution. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataChildWorkflowExecutionTerminatedEventAttributes `json:"-" xml:"-"` +} + +type metadataChildWorkflowExecutionTerminatedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2309,8 +2311,6 @@ func (s ChildWorkflowExecutionTerminatedEventAttributes) GoString() string { // Provides details of the ChildWorkflowExecutionTimedOut event. type ChildWorkflowExecutionTimedOutEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the StartChildWorkflowExecutionInitiated event corresponding to // the StartChildWorkflowExecution decision to start this child workflow execution. // This information can be useful for diagnosing problems by tracing back the @@ -2331,6 +2331,12 @@ type ChildWorkflowExecutionTimedOutEventAttributes struct { // The type of the child workflow execution. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataChildWorkflowExecutionTimedOutEventAttributes `json:"-" xml:"-"` +} + +type metadataChildWorkflowExecutionTimedOutEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2346,11 +2352,15 @@ func (s ChildWorkflowExecutionTimedOutEventAttributes) GoString() string { // Used to filter the closed workflow executions in visibility APIs by their // close status. type CloseStatusFilter struct { - _ struct{} `type:"structure"` - // Required. The close status that must match the close status of an execution // for it to meet the criteria of this filter. Status *string `locationName:"status" type:"string" required:"true" enum:"CloseStatus"` + + metadataCloseStatusFilter `json:"-" xml:"-"` +} + +type metadataCloseStatusFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2363,19 +2373,6 @@ func (s CloseStatusFilter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CloseStatusFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CloseStatusFilter"} - if s.Status == nil { - invalidParams.Add(request.NewErrParamRequired("Status")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the CompleteWorkflowExecution decision. // // Access Control @@ -2392,11 +2389,15 @@ func (s *CloseStatusFilter) Validate() error { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type CompleteWorkflowExecutionDecisionAttributes struct { - _ struct{} `type:"structure"` - // The result of the workflow execution. The form of the result is implementation // defined. Result *string `locationName:"result" type:"string"` + + metadataCompleteWorkflowExecutionDecisionAttributes `json:"-" xml:"-"` +} + +type metadataCompleteWorkflowExecutionDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2411,8 +2412,6 @@ func (s CompleteWorkflowExecutionDecisionAttributes) GoString() string { // Provides details of the CompleteWorkflowExecutionFailed event. type CompleteWorkflowExecutionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -2426,6 +2425,12 @@ type CompleteWorkflowExecutionFailedEventAttributes struct { // execution. This information can be useful for diagnosing problems by tracing // back the chain of events leading up to this event. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` + + metadataCompleteWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataCompleteWorkflowExecutionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2457,8 +2462,6 @@ func (s CompleteWorkflowExecutionFailedEventAttributes) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type ContinueAsNewWorkflowExecutionDecisionAttributes struct { - _ struct{} `type:"structure"` - // If set, specifies the policy to use for the child workflow executions of // the new execution if it is terminated by calling the TerminateWorkflowExecution // action explicitly or due to an expired timeout. This policy overrides the @@ -2498,7 +2501,7 @@ type ContinueAsNewWorkflowExecutionDecisionAttributes struct { // In order for this workflow execution to invoke AWS Lambda functions, an // appropriate IAM role must be specified either as a default for the workflow // type or through this field. - LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"` + LambdaRole *string `locationName:"lambdaRole" type:"string"` // The list of tags to associate with the new workflow execution. A maximum // of 5 tags can be specified. You can list workflow executions with a specific @@ -2533,7 +2536,13 @@ type ContinueAsNewWorkflowExecutionDecisionAttributes struct { // at registration time then a fault will be returned. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"` - WorkflowTypeVersion *string `locationName:"workflowTypeVersion" min:"1" type:"string"` + WorkflowTypeVersion *string `locationName:"workflowTypeVersion" type:"string"` + + metadataContinueAsNewWorkflowExecutionDecisionAttributes `json:"-" xml:"-"` +} + +type metadataContinueAsNewWorkflowExecutionDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2546,31 +2555,8 @@ func (s ContinueAsNewWorkflowExecutionDecisionAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContinueAsNewWorkflowExecutionDecisionAttributes"} - if s.LambdaRole != nil && len(*s.LambdaRole) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LambdaRole", 1)) - } - if s.WorkflowTypeVersion != nil && len(*s.WorkflowTypeVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowTypeVersion", 1)) - } - if s.TaskList != nil { - if err := s.TaskList.Validate(); err != nil { - invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the ContinueAsNewWorkflowExecutionFailed event. type ContinueAsNewWorkflowExecutionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -2584,6 +2570,12 @@ type ContinueAsNewWorkflowExecutionFailedEventAttributes struct { // this execution. This information can be useful for diagnosing problems by // tracing back the chain of events leading up to this event. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` + + metadataContinueAsNewWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataContinueAsNewWorkflowExecutionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2597,8 +2589,6 @@ func (s ContinueAsNewWorkflowExecutionFailedEventAttributes) GoString() string { } type CountClosedWorkflowExecutionsInput struct { - _ struct{} `type:"structure"` - // If specified, only workflow executions that match this close status are counted. // This filter has an affect only if executionStatus is specified as CLOSED. // @@ -2614,7 +2604,7 @@ type CountClosedWorkflowExecutionsInput struct { CloseTimeFilter *ExecutionTimeFilter `locationName:"closeTimeFilter" type:"structure"` // The name of the domain containing the workflow executions to count. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // If specified, only workflow executions matching the WorkflowId in the filter // are counted. @@ -2642,6 +2632,12 @@ type CountClosedWorkflowExecutionsInput struct { // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually // exclusive. You can specify at most one of these in a request. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"` + + metadataCountClosedWorkflowExecutionsInput `json:"-" xml:"-"` +} + +type metadataCountClosedWorkflowExecutionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2654,57 +2650,9 @@ func (s CountClosedWorkflowExecutionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CountClosedWorkflowExecutionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CountClosedWorkflowExecutionsInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.CloseStatusFilter != nil { - if err := s.CloseStatusFilter.Validate(); err != nil { - invalidParams.AddNested("CloseStatusFilter", err.(request.ErrInvalidParams)) - } - } - if s.CloseTimeFilter != nil { - if err := s.CloseTimeFilter.Validate(); err != nil { - invalidParams.AddNested("CloseTimeFilter", err.(request.ErrInvalidParams)) - } - } - if s.ExecutionFilter != nil { - if err := s.ExecutionFilter.Validate(); err != nil { - invalidParams.AddNested("ExecutionFilter", err.(request.ErrInvalidParams)) - } - } - if s.StartTimeFilter != nil { - if err := s.StartTimeFilter.Validate(); err != nil { - invalidParams.AddNested("StartTimeFilter", err.(request.ErrInvalidParams)) - } - } - if s.TagFilter != nil { - if err := s.TagFilter.Validate(); err != nil { - invalidParams.AddNested("TagFilter", err.(request.ErrInvalidParams)) - } - } - if s.TypeFilter != nil { - if err := s.TypeFilter.Validate(); err != nil { - invalidParams.AddNested("TypeFilter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CountOpenWorkflowExecutionsInput struct { - _ struct{} `type:"structure"` - // The name of the domain containing the workflow executions to count. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // If specified, only workflow executions matching the WorkflowId in the filter // are counted. @@ -2729,6 +2677,12 @@ type CountOpenWorkflowExecutionsInput struct { // executionFilter, typeFilter and tagFilter are mutually exclusive. You can // specify at most one of these in a request. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"` + + metadataCountOpenWorkflowExecutionsInput `json:"-" xml:"-"` +} + +type metadataCountOpenWorkflowExecutionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2741,53 +2695,18 @@ func (s CountOpenWorkflowExecutionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CountOpenWorkflowExecutionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CountOpenWorkflowExecutionsInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.StartTimeFilter == nil { - invalidParams.Add(request.NewErrParamRequired("StartTimeFilter")) - } - if s.ExecutionFilter != nil { - if err := s.ExecutionFilter.Validate(); err != nil { - invalidParams.AddNested("ExecutionFilter", err.(request.ErrInvalidParams)) - } - } - if s.StartTimeFilter != nil { - if err := s.StartTimeFilter.Validate(); err != nil { - invalidParams.AddNested("StartTimeFilter", err.(request.ErrInvalidParams)) - } - } - if s.TagFilter != nil { - if err := s.TagFilter.Validate(); err != nil { - invalidParams.AddNested("TagFilter", err.(request.ErrInvalidParams)) - } - } - if s.TypeFilter != nil { - if err := s.TypeFilter.Validate(); err != nil { - invalidParams.AddNested("TypeFilter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CountPendingActivityTasksInput struct { - _ struct{} `type:"structure"` - // The name of the domain that contains the task list. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The name of the task list. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"` + + metadataCountPendingActivityTasksInput `json:"-" xml:"-"` +} + +type metadataCountPendingActivityTasksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2800,38 +2719,18 @@ func (s CountPendingActivityTasksInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CountPendingActivityTasksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CountPendingActivityTasksInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.TaskList == nil { - invalidParams.Add(request.NewErrParamRequired("TaskList")) - } - if s.TaskList != nil { - if err := s.TaskList.Validate(); err != nil { - invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type CountPendingDecisionTasksInput struct { - _ struct{} `type:"structure"` - // The name of the domain that contains the task list. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The name of the task list. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"` + + metadataCountPendingDecisionTasksInput `json:"-" xml:"-"` +} + +type metadataCountPendingDecisionTasksInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -2844,30 +2743,6 @@ func (s CountPendingDecisionTasksInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CountPendingDecisionTasksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CountPendingDecisionTasksInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.TaskList == nil { - invalidParams.Add(request.NewErrParamRequired("TaskList")) - } - if s.TaskList != nil { - if err := s.TaskList.Validate(); err != nil { - invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Specifies a decision made by the decider. A decision can be one of these // types: // @@ -2976,8 +2851,6 @@ func (s *CountPendingDecisionTasksInput) Validate() error { // StartTimerDecisionAttributes CancelTimerDecisionAttributes SignalExternalWorkflowExecutionDecisionAttributes // RequestCancelExternalWorkflowExecutionDecisionAttributes StartChildWorkflowExecutionDecisionAttributes type Decision struct { - _ struct{} `type:"structure"` - // Provides details of the CancelTimer decision. It is not set for other decision // types. CancelTimerDecisionAttributes *CancelTimerDecisionAttributes `locationName:"cancelTimerDecisionAttributes" type:"structure"` @@ -3048,6 +2921,12 @@ type Decision struct { // Provides details of the StartTimer decision. It is not set for other decision // types. StartTimerDecisionAttributes *StartTimerDecisionAttributes `locationName:"startTimerDecisionAttributes" type:"structure"` + + metadataDecision `json:"-" xml:"-"` +} + +type metadataDecision struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3060,73 +2939,8 @@ func (s Decision) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Decision) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Decision"} - if s.DecisionType == nil { - invalidParams.Add(request.NewErrParamRequired("DecisionType")) - } - if s.CancelTimerDecisionAttributes != nil { - if err := s.CancelTimerDecisionAttributes.Validate(); err != nil { - invalidParams.AddNested("CancelTimerDecisionAttributes", err.(request.ErrInvalidParams)) - } - } - if s.ContinueAsNewWorkflowExecutionDecisionAttributes != nil { - if err := s.ContinueAsNewWorkflowExecutionDecisionAttributes.Validate(); err != nil { - invalidParams.AddNested("ContinueAsNewWorkflowExecutionDecisionAttributes", err.(request.ErrInvalidParams)) - } - } - if s.RecordMarkerDecisionAttributes != nil { - if err := s.RecordMarkerDecisionAttributes.Validate(); err != nil { - invalidParams.AddNested("RecordMarkerDecisionAttributes", err.(request.ErrInvalidParams)) - } - } - if s.RequestCancelActivityTaskDecisionAttributes != nil { - if err := s.RequestCancelActivityTaskDecisionAttributes.Validate(); err != nil { - invalidParams.AddNested("RequestCancelActivityTaskDecisionAttributes", err.(request.ErrInvalidParams)) - } - } - if s.RequestCancelExternalWorkflowExecutionDecisionAttributes != nil { - if err := s.RequestCancelExternalWorkflowExecutionDecisionAttributes.Validate(); err != nil { - invalidParams.AddNested("RequestCancelExternalWorkflowExecutionDecisionAttributes", err.(request.ErrInvalidParams)) - } - } - if s.ScheduleActivityTaskDecisionAttributes != nil { - if err := s.ScheduleActivityTaskDecisionAttributes.Validate(); err != nil { - invalidParams.AddNested("ScheduleActivityTaskDecisionAttributes", err.(request.ErrInvalidParams)) - } - } - if s.ScheduleLambdaFunctionDecisionAttributes != nil { - if err := s.ScheduleLambdaFunctionDecisionAttributes.Validate(); err != nil { - invalidParams.AddNested("ScheduleLambdaFunctionDecisionAttributes", err.(request.ErrInvalidParams)) - } - } - if s.SignalExternalWorkflowExecutionDecisionAttributes != nil { - if err := s.SignalExternalWorkflowExecutionDecisionAttributes.Validate(); err != nil { - invalidParams.AddNested("SignalExternalWorkflowExecutionDecisionAttributes", err.(request.ErrInvalidParams)) - } - } - if s.StartChildWorkflowExecutionDecisionAttributes != nil { - if err := s.StartChildWorkflowExecutionDecisionAttributes.Validate(); err != nil { - invalidParams.AddNested("StartChildWorkflowExecutionDecisionAttributes", err.(request.ErrInvalidParams)) - } - } - if s.StartTimerDecisionAttributes != nil { - if err := s.StartTimerDecisionAttributes.Validate(); err != nil { - invalidParams.AddNested("StartTimerDecisionAttributes", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the DecisionTaskCompleted event. type DecisionTaskCompletedEventAttributes struct { - _ struct{} `type:"structure"` - // User defined context for the workflow execution. ExecutionContext *string `locationName:"executionContext" type:"string"` @@ -3139,6 +2953,12 @@ type DecisionTaskCompletedEventAttributes struct { // was started. This information can be useful for diagnosing problems by tracing // back the chain of events leading up to this event. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"` + + metadataDecisionTaskCompletedEventAttributes `json:"-" xml:"-"` +} + +type metadataDecisionTaskCompletedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3153,8 +2973,6 @@ func (s DecisionTaskCompletedEventAttributes) GoString() string { // Provides details about the DecisionTaskScheduled event. type DecisionTaskScheduledEventAttributes struct { - _ struct{} `type:"structure"` - // The maximum duration for this decision task. The task is considered timed // out if it does not completed within this duration. // @@ -3174,6 +2992,12 @@ type DecisionTaskScheduledEventAttributes struct { // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html) // in the Amazon Simple Workflow Developer Guide. TaskPriority *string `locationName:"taskPriority" type:"string"` + + metadataDecisionTaskScheduledEventAttributes `json:"-" xml:"-"` +} + +type metadataDecisionTaskScheduledEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3188,8 +3012,6 @@ func (s DecisionTaskScheduledEventAttributes) GoString() string { // Provides details of the DecisionTaskStarted event. type DecisionTaskStartedEventAttributes struct { - _ struct{} `type:"structure"` - // Identity of the decider making the request. This enables diagnostic tracing // when problems arise. The form of this identity is user defined. Identity *string `locationName:"identity" type:"string"` @@ -3198,6 +3020,12 @@ type DecisionTaskStartedEventAttributes struct { // task was scheduled. This information can be useful for diagnosing problems // by tracing back the chain of events leading up to this event. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"` + + metadataDecisionTaskStartedEventAttributes `json:"-" xml:"-"` +} + +type metadataDecisionTaskStartedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3212,8 +3040,6 @@ func (s DecisionTaskStartedEventAttributes) GoString() string { // Provides details of the DecisionTaskTimedOut event. type DecisionTaskTimedOutEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the DecisionTaskScheduled event that was recorded when this decision // task was scheduled. This information can be useful for diagnosing problems // by tracing back the chain of events leading up to this event. @@ -3226,6 +3052,12 @@ type DecisionTaskTimedOutEventAttributes struct { // The type of timeout that expired before the decision task could be completed. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"DecisionTaskTimeoutType"` + + metadataDecisionTaskTimedOutEventAttributes `json:"-" xml:"-"` +} + +type metadataDecisionTaskTimedOutEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3239,13 +3071,17 @@ func (s DecisionTaskTimedOutEventAttributes) GoString() string { } type DeprecateActivityTypeInput struct { - _ struct{} `type:"structure"` - // The activity type to deprecate. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"` // The name of the domain in which the activity type is registered. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` + + metadataDeprecateActivityTypeInput `json:"-" xml:"-"` +} + +type metadataDeprecateActivityTypeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3258,32 +3094,12 @@ func (s DeprecateActivityTypeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeprecateActivityTypeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeprecateActivityTypeInput"} - if s.ActivityType == nil { - invalidParams.Add(request.NewErrParamRequired("ActivityType")) - } - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.ActivityType != nil { - if err := s.ActivityType.Validate(); err != nil { - invalidParams.AddNested("ActivityType", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeprecateActivityTypeOutput struct { + metadataDeprecateActivityTypeOutput `json:"-" xml:"-"` } -type DeprecateActivityTypeOutput struct { - _ struct{} `type:"structure"` +type metadataDeprecateActivityTypeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3297,10 +3113,14 @@ func (s DeprecateActivityTypeOutput) GoString() string { } type DeprecateDomainInput struct { - _ struct{} `type:"structure"` - // The name of the domain to deprecate. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataDeprecateDomainInput `json:"-" xml:"-"` +} + +type metadataDeprecateDomainInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3313,24 +3133,12 @@ func (s DeprecateDomainInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeprecateDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeprecateDomainInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeprecateDomainOutput struct { + metadataDeprecateDomainOutput `json:"-" xml:"-"` } -type DeprecateDomainOutput struct { - _ struct{} `type:"structure"` +type metadataDeprecateDomainOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3344,13 +3152,17 @@ func (s DeprecateDomainOutput) GoString() string { } type DeprecateWorkflowTypeInput struct { - _ struct{} `type:"structure"` - // The name of the domain in which the workflow type is registered. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The workflow type to deprecate. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataDeprecateWorkflowTypeInput `json:"-" xml:"-"` +} + +type metadataDeprecateWorkflowTypeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3363,32 +3175,12 @@ func (s DeprecateWorkflowTypeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeprecateWorkflowTypeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeprecateWorkflowTypeInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.WorkflowType == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowType")) - } - if s.WorkflowType != nil { - if err := s.WorkflowType.Validate(); err != nil { - invalidParams.AddNested("WorkflowType", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type DeprecateWorkflowTypeOutput struct { + metadataDeprecateWorkflowTypeOutput `json:"-" xml:"-"` } -type DeprecateWorkflowTypeOutput struct { - _ struct{} `type:"structure"` +type metadataDeprecateWorkflowTypeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3402,14 +3194,18 @@ func (s DeprecateWorkflowTypeOutput) GoString() string { } type DescribeActivityTypeInput struct { - _ struct{} `type:"structure"` - // The activity type to get information about. Activity types are identified // by the name and version that were supplied when the activity was registered. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"` // The name of the domain in which the activity type is registered. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` + + metadataDescribeActivityTypeInput `json:"-" xml:"-"` +} + +type metadataDescribeActivityTypeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3422,34 +3218,8 @@ func (s DescribeActivityTypeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeActivityTypeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeActivityTypeInput"} - if s.ActivityType == nil { - invalidParams.Add(request.NewErrParamRequired("ActivityType")) - } - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.ActivityType != nil { - if err := s.ActivityType.Validate(); err != nil { - invalidParams.AddNested("ActivityType", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Detailed information about an activity type. type DescribeActivityTypeOutput struct { - _ struct{} `type:"structure"` - // The configuration settings registered with the activity type. Configuration *ActivityTypeConfiguration `locationName:"configuration" type:"structure" required:"true"` @@ -3463,6 +3233,12 @@ type DescribeActivityTypeOutput struct { // but is still in use. You should keep workers supporting this type running. // You cannot create new tasks of this type. TypeInfo *ActivityTypeInfo `locationName:"typeInfo" type:"structure" required:"true"` + + metadataDescribeActivityTypeOutput `json:"-" xml:"-"` +} + +type metadataDescribeActivityTypeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3476,10 +3252,14 @@ func (s DescribeActivityTypeOutput) GoString() string { } type DescribeDomainInput struct { - _ struct{} `type:"structure"` - // The name of the domain to describe. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataDescribeDomainInput `json:"-" xml:"-"` +} + +type metadataDescribeDomainInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3492,31 +3272,19 @@ func (s DescribeDomainInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDomainInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains details of a domain. type DescribeDomainOutput struct { - _ struct{} `type:"structure"` - // Contains the configuration settings of a domain. Configuration *DomainConfiguration `locationName:"configuration" type:"structure" required:"true"` // Contains general information about a domain. DomainInfo *DomainInfo `locationName:"domainInfo" type:"structure" required:"true"` + + metadataDescribeDomainOutput `json:"-" xml:"-"` +} + +type metadataDescribeDomainOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3530,13 +3298,17 @@ func (s DescribeDomainOutput) GoString() string { } type DescribeWorkflowExecutionInput struct { - _ struct{} `type:"structure"` - // The name of the domain containing the workflow execution. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The workflow execution to describe. Execution *WorkflowExecution `locationName:"execution" type:"structure" required:"true"` + + metadataDescribeWorkflowExecutionInput `json:"-" xml:"-"` +} + +type metadataDescribeWorkflowExecutionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3549,34 +3321,8 @@ func (s DescribeWorkflowExecutionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeWorkflowExecutionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeWorkflowExecutionInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.Execution == nil { - invalidParams.Add(request.NewErrParamRequired("Execution")) - } - if s.Execution != nil { - if err := s.Execution.Validate(); err != nil { - invalidParams.AddNested("Execution", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains details about a workflow execution. type DescribeWorkflowExecutionOutput struct { - _ struct{} `type:"structure"` - // The configuration settings for this workflow execution including timeout // values, tasklist etc. ExecutionConfiguration *WorkflowExecutionConfiguration `locationName:"executionConfiguration" type:"structure" required:"true"` @@ -3597,6 +3343,12 @@ type DescribeWorkflowExecutionOutput struct { // The number of tasks for this workflow execution. This includes open and closed // tasks of all types. OpenCounts *WorkflowExecutionOpenCounts `locationName:"openCounts" type:"structure" required:"true"` + + metadataDescribeWorkflowExecutionOutput `json:"-" xml:"-"` +} + +type metadataDescribeWorkflowExecutionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3610,13 +3362,17 @@ func (s DescribeWorkflowExecutionOutput) GoString() string { } type DescribeWorkflowTypeInput struct { - _ struct{} `type:"structure"` - // The name of the domain in which this workflow type is registered. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The workflow type to describe. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataDescribeWorkflowTypeInput `json:"-" xml:"-"` +} + +type metadataDescribeWorkflowTypeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3629,34 +3385,8 @@ func (s DescribeWorkflowTypeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeWorkflowTypeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeWorkflowTypeInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.WorkflowType == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowType")) - } - if s.WorkflowType != nil { - if err := s.WorkflowType.Validate(); err != nil { - invalidParams.AddNested("WorkflowType", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains details about a workflow type. type DescribeWorkflowTypeOutput struct { - _ struct{} `type:"structure"` - // Configuration settings of the workflow type registered through RegisterWorkflowType Configuration *WorkflowTypeConfiguration `locationName:"configuration" type:"structure" required:"true"` @@ -3670,6 +3400,12 @@ type DescribeWorkflowTypeOutput struct { // but is still in use. You should keep workers supporting this type running. // You cannot create new workflow executions of this type. TypeInfo *WorkflowTypeInfo `locationName:"typeInfo" type:"structure" required:"true"` + + metadataDescribeWorkflowTypeOutput `json:"-" xml:"-"` +} + +type metadataDescribeWorkflowTypeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3684,10 +3420,14 @@ func (s DescribeWorkflowTypeOutput) GoString() string { // Contains the configuration settings of a domain. type DomainConfiguration struct { - _ struct{} `type:"structure"` - // The retention period for workflow executions in this domain. - WorkflowExecutionRetentionPeriodInDays *string `locationName:"workflowExecutionRetentionPeriodInDays" min:"1" type:"string" required:"true"` + WorkflowExecutionRetentionPeriodInDays *string `locationName:"workflowExecutionRetentionPeriodInDays" type:"string" required:"true"` + + metadataDomainConfiguration `json:"-" xml:"-"` +} + +type metadataDomainConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3702,13 +3442,11 @@ func (s DomainConfiguration) GoString() string { // Contains general information about a domain. type DomainInfo struct { - _ struct{} `type:"structure"` - // The description of the domain provided through RegisterDomain. Description *string `locationName:"description" type:"string"` // The name of the domain. This name is unique within the account. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // The status of the domain: // @@ -3717,6 +3455,12 @@ type DomainInfo struct { // DEPRECATED: The domain was deprecated using DeprecateDomain, but is still // in use. You should not create new workflow executions in this domain. Status *string `locationName:"status" type:"string" required:"true" enum:"RegistrationStatus"` + + metadataDomainInfo `json:"-" xml:"-"` +} + +type metadataDomainInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3735,13 +3479,17 @@ func (s DomainInfo) GoString() string { // format (https://en.wikipedia.org/wiki/Unix_time). For example: "oldestDate": // 1325376070. type ExecutionTimeFilter struct { - _ struct{} `type:"structure"` - // Specifies the latest start or close date and time to return. LatestDate *time.Time `locationName:"latestDate" type:"timestamp" timestampFormat:"unix"` // Specifies the oldest start or close date and time to return. OldestDate *time.Time `locationName:"oldestDate" type:"timestamp" timestampFormat:"unix" required:"true"` + + metadataExecutionTimeFilter `json:"-" xml:"-"` +} + +type metadataExecutionTimeFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3754,23 +3502,8 @@ func (s ExecutionTimeFilter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ExecutionTimeFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ExecutionTimeFilter"} - if s.OldestDate == nil { - invalidParams.Add(request.NewErrParamRequired("OldestDate")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the ExternalWorkflowExecutionCancelRequested event. type ExternalWorkflowExecutionCancelRequestedEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding // to the RequestCancelExternalWorkflowExecution decision to cancel this external // workflow execution. This information can be useful for diagnosing problems @@ -3779,6 +3512,12 @@ type ExternalWorkflowExecutionCancelRequestedEventAttributes struct { // The external workflow execution to which the cancellation request was delivered. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"` + + metadataExternalWorkflowExecutionCancelRequestedEventAttributes `json:"-" xml:"-"` +} + +type metadataExternalWorkflowExecutionCancelRequestedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3793,8 +3532,6 @@ func (s ExternalWorkflowExecutionCancelRequestedEventAttributes) GoString() stri // Provides details of the ExternalWorkflowExecutionSignaled event. type ExternalWorkflowExecutionSignaledEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the SignalExternalWorkflowExecutionInitiated event corresponding // to the SignalExternalWorkflowExecution decision to request this signal. This // information can be useful for diagnosing problems by tracing back the chain @@ -3803,6 +3540,12 @@ type ExternalWorkflowExecutionSignaledEventAttributes struct { // The external workflow execution that the signal was delivered to. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"` + + metadataExternalWorkflowExecutionSignaledEventAttributes `json:"-" xml:"-"` +} + +type metadataExternalWorkflowExecutionSignaledEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3831,13 +3574,17 @@ func (s ExternalWorkflowExecutionSignaledEventAttributes) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type FailWorkflowExecutionDecisionAttributes struct { - _ struct{} `type:"structure"` - // Optional. Details of the failure. Details *string `locationName:"details" type:"string"` // A descriptive reason for the failure that may help in diagnostics. Reason *string `locationName:"reason" type:"string"` + + metadataFailWorkflowExecutionDecisionAttributes `json:"-" xml:"-"` +} + +type metadataFailWorkflowExecutionDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3852,8 +3599,6 @@ func (s FailWorkflowExecutionDecisionAttributes) GoString() string { // Provides details of the FailWorkflowExecutionFailed event. type FailWorkflowExecutionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -3867,6 +3612,12 @@ type FailWorkflowExecutionFailedEventAttributes struct { // This information can be useful for diagnosing problems by tracing back the // chain of events leading up to this event. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` + + metadataFailWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataFailWorkflowExecutionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3880,10 +3631,8 @@ func (s FailWorkflowExecutionFailedEventAttributes) GoString() string { } type GetWorkflowExecutionHistoryInput struct { - _ struct{} `type:"structure"` - // The name of the domain containing the workflow execution. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // Specifies the workflow execution for which to return the history. Execution *WorkflowExecution `locationName:"execution" type:"structure" required:"true"` @@ -3908,6 +3657,12 @@ type GetWorkflowExecutionHistoryInput struct { // When set to true, returns the events in reverse order. By default the results // are returned in ascending order of the eventTimeStamp of the events. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"` + + metadataGetWorkflowExecutionHistoryInput `json:"-" xml:"-"` +} + +type metadataGetWorkflowExecutionHistoryInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -3920,36 +3675,10 @@ func (s GetWorkflowExecutionHistoryInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetWorkflowExecutionHistoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWorkflowExecutionHistoryInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.Execution == nil { - invalidParams.Add(request.NewErrParamRequired("Execution")) - } - if s.Execution != nil { - if err := s.Execution.Validate(); err != nil { - invalidParams.AddNested("Execution", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Paginated representation of a workflow history for a workflow execution. // This is the up to date, complete and authoritative record of the events related // to all tasks and events in the life of the workflow execution. type GetWorkflowExecutionHistoryOutput struct { - _ struct{} `type:"structure"` - // The list of history events. Events []*HistoryEvent `locationName:"events" type:"list" required:"true"` @@ -3960,6 +3689,12 @@ type GetWorkflowExecutionHistoryOutput struct { // The configured maximumPageSize determines how many results can be returned // in a single call. NextPageToken *string `locationName:"nextPageToken" type:"string"` + + metadataGetWorkflowExecutionHistoryOutput `json:"-" xml:"-"` +} + +type metadataGetWorkflowExecutionHistoryOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4042,8 +3777,6 @@ func (s GetWorkflowExecutionHistoryOutput) GoString() string { // AWS Lambda service. This happens when the AWS Lambda service is not available // in the current region, or received too many requests. type HistoryEvent struct { - _ struct{} `type:"structure"` - // If the event is of type ActivityTaskcancelRequested then this member is set // and provides detailed information about the event. It is not set for other // event types. @@ -4299,6 +4032,12 @@ type HistoryEvent struct { // and provides detailed information about the event. It is not set for other // event types. WorkflowExecutionTimedOutEventAttributes *WorkflowExecutionTimedOutEventAttributes `locationName:"workflowExecutionTimedOutEventAttributes" type:"structure"` + + metadataHistoryEvent `json:"-" xml:"-"` +} + +type metadataHistoryEvent struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4313,8 +4052,6 @@ func (s HistoryEvent) GoString() string { // Provides details for the LambdaFunctionCompleted event. type LambdaFunctionCompletedEventAttributes struct { - _ struct{} `type:"structure"` - // The result of the function execution (if any). Result *string `locationName:"result" type:"string"` @@ -4325,6 +4062,12 @@ type LambdaFunctionCompletedEventAttributes struct { // The ID of the LambdaFunctionStarted event recorded in the history. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"` + + metadataLambdaFunctionCompletedEventAttributes `json:"-" xml:"-"` +} + +type metadataLambdaFunctionCompletedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4339,8 +4082,6 @@ func (s LambdaFunctionCompletedEventAttributes) GoString() string { // Provides details for the LambdaFunctionFailed event. type LambdaFunctionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The details of the failure (if any). Details *string `locationName:"details" type:"string"` @@ -4354,6 +4095,12 @@ type LambdaFunctionFailedEventAttributes struct { // The ID of the LambdaFunctionStarted event recorded in the history. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"` + + metadataLambdaFunctionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataLambdaFunctionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4368,8 +4115,6 @@ func (s LambdaFunctionFailedEventAttributes) GoString() string { // Provides details for the LambdaFunctionScheduled event. type LambdaFunctionScheduledEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the DecisionTaskCompleted event for the decision that resulted // in the scheduling of this AWS Lambda function. This information can be useful // for diagnosing problems by tracing back the chain of events leading up to @@ -4377,17 +4122,23 @@ type LambdaFunctionScheduledEventAttributes struct { DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` // The unique Amazon SWF ID for the AWS Lambda task. - Id *string `locationName:"id" min:"1" type:"string" required:"true"` + Id *string `locationName:"id" type:"string" required:"true"` // Input provided to the AWS Lambda function. - Input *string `locationName:"input" min:"1" type:"string"` + Input *string `locationName:"input" type:"string"` // The name of the scheduled AWS Lambda function. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // The maximum time, in seconds, that the AWS Lambda function can take to execute // from start to close before it is marked as failed. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"` + + metadataLambdaFunctionScheduledEventAttributes `json:"-" xml:"-"` +} + +type metadataLambdaFunctionScheduledEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4402,12 +4153,16 @@ func (s LambdaFunctionScheduledEventAttributes) GoString() string { // Provides details for the LambdaFunctionStarted event. type LambdaFunctionStartedEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the LambdaFunctionScheduled event that was recorded when this AWS // Lambda function was scheduled. This information can be useful for diagnosing // problems by tracing back the chain of events leading up to this event. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"` + + metadataLambdaFunctionStartedEventAttributes `json:"-" xml:"-"` +} + +type metadataLambdaFunctionStartedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4422,8 +4177,6 @@ func (s LambdaFunctionStartedEventAttributes) GoString() string { // Provides details for the LambdaFunctionTimedOut event. type LambdaFunctionTimedOutEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the LambdaFunctionScheduled event that was recorded when this AWS // Lambda function was scheduled. This information can be useful for diagnosing // problems by tracing back the chain of events leading up to this event. @@ -4434,6 +4187,12 @@ type LambdaFunctionTimedOutEventAttributes struct { // The type of the timeout that caused this event. TimeoutType *string `locationName:"timeoutType" type:"string" enum:"LambdaFunctionTimeoutType"` + + metadataLambdaFunctionTimedOutEventAttributes `json:"-" xml:"-"` +} + +type metadataLambdaFunctionTimedOutEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4447,10 +4206,8 @@ func (s LambdaFunctionTimedOutEventAttributes) GoString() string { } type ListActivityTypesInput struct { - _ struct{} `type:"structure"` - // The name of the domain in which the activity types have been registered. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The maximum number of results that will be returned per call. nextPageToken // can be used to obtain futher pages of results. The default is 1000, which @@ -4462,7 +4219,7 @@ type ListActivityTypesInput struct { MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"` // If specified, only lists the activity types that have this name. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" type:"string"` // If a NextPageToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using @@ -4478,6 +4235,12 @@ type ListActivityTypesInput struct { // When set to true, returns the results in reverse order. By default, the results // are returned in ascending alphabetical order by name of the activity types. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"` + + metadataListActivityTypesInput `json:"-" xml:"-"` +} + +type metadataListActivityTypesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4490,32 +4253,8 @@ func (s ListActivityTypesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListActivityTypesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListActivityTypesInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.RegistrationStatus == nil { - invalidParams.Add(request.NewErrParamRequired("RegistrationStatus")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains a paginated list of activity type information structures. type ListActivityTypesOutput struct { - _ struct{} `type:"structure"` - // If a NextPageToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using // the returned token in nextPageToken. Keep all other arguments unchanged. @@ -4526,6 +4265,12 @@ type ListActivityTypesOutput struct { // List of activity type information. TypeInfos []*ActivityTypeInfo `locationName:"typeInfos" type:"list" required:"true"` + + metadataListActivityTypesOutput `json:"-" xml:"-"` +} + +type metadataListActivityTypesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4539,8 +4284,6 @@ func (s ListActivityTypesOutput) GoString() string { } type ListClosedWorkflowExecutionsInput struct { - _ struct{} `type:"structure"` - // If specified, only workflow executions that match this close status are listed. // For example, if TERMINATED is specified, then only TERMINATED workflow executions // are listed. @@ -4559,7 +4302,7 @@ type ListClosedWorkflowExecutionsInput struct { CloseTimeFilter *ExecutionTimeFilter `locationName:"closeTimeFilter" type:"structure"` // The name of the domain that contains the workflow executions to list. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // If specified, only workflow executions matching the workflow ID specified // in the filter are returned. @@ -4609,6 +4352,12 @@ type ListClosedWorkflowExecutionsInput struct { // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually // exclusive. You can specify at most one of these in a request. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"` + + metadataListClosedWorkflowExecutionsInput `json:"-" xml:"-"` +} + +type metadataListClosedWorkflowExecutionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4621,55 +4370,7 @@ func (s ListClosedWorkflowExecutionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListClosedWorkflowExecutionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListClosedWorkflowExecutionsInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.CloseStatusFilter != nil { - if err := s.CloseStatusFilter.Validate(); err != nil { - invalidParams.AddNested("CloseStatusFilter", err.(request.ErrInvalidParams)) - } - } - if s.CloseTimeFilter != nil { - if err := s.CloseTimeFilter.Validate(); err != nil { - invalidParams.AddNested("CloseTimeFilter", err.(request.ErrInvalidParams)) - } - } - if s.ExecutionFilter != nil { - if err := s.ExecutionFilter.Validate(); err != nil { - invalidParams.AddNested("ExecutionFilter", err.(request.ErrInvalidParams)) - } - } - if s.StartTimeFilter != nil { - if err := s.StartTimeFilter.Validate(); err != nil { - invalidParams.AddNested("StartTimeFilter", err.(request.ErrInvalidParams)) - } - } - if s.TagFilter != nil { - if err := s.TagFilter.Validate(); err != nil { - invalidParams.AddNested("TagFilter", err.(request.ErrInvalidParams)) - } - } - if s.TypeFilter != nil { - if err := s.TypeFilter.Validate(); err != nil { - invalidParams.AddNested("TypeFilter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListDomainsInput struct { - _ struct{} `type:"structure"` - // The maximum number of results that will be returned per call. nextPageToken // can be used to obtain futher pages of results. The default is 1000, which // is the maximum allowed page size. You can, however, specify a page size smaller @@ -4693,6 +4394,12 @@ type ListDomainsInput struct { // When set to true, returns the results in reverse order. By default, the results // are returned in ascending alphabetical order by name of the domains. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"` + + metadataListDomainsInput `json:"-" xml:"-"` +} + +type metadataListDomainsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4705,23 +4412,8 @@ func (s ListDomainsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDomainsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDomainsInput"} - if s.RegistrationStatus == nil { - invalidParams.Add(request.NewErrParamRequired("RegistrationStatus")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains a paginated collection of DomainInfo structures. type ListDomainsOutput struct { - _ struct{} `type:"structure"` - // A list of DomainInfo structures. DomainInfos []*DomainInfo `locationName:"domainInfos" type:"list" required:"true"` @@ -4732,6 +4424,12 @@ type ListDomainsOutput struct { // The configured maximumPageSize determines how many results can be returned // in a single call. NextPageToken *string `locationName:"nextPageToken" type:"string"` + + metadataListDomainsOutput `json:"-" xml:"-"` +} + +type metadataListDomainsOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4745,10 +4443,8 @@ func (s ListDomainsOutput) GoString() string { } type ListOpenWorkflowExecutionsInput struct { - _ struct{} `type:"structure"` - // The name of the domain that contains the workflow executions to list. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // If specified, only workflow executions matching the workflow ID specified // in the filter are returned. @@ -4793,6 +4489,12 @@ type ListOpenWorkflowExecutionsInput struct { // executionFilter, typeFilter and tagFilter are mutually exclusive. You can // specify at most one of these in a request. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"` + + metadataListOpenWorkflowExecutionsInput `json:"-" xml:"-"` +} + +type metadataListOpenWorkflowExecutionsInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4805,50 +4507,9 @@ func (s ListOpenWorkflowExecutionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListOpenWorkflowExecutionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListOpenWorkflowExecutionsInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.StartTimeFilter == nil { - invalidParams.Add(request.NewErrParamRequired("StartTimeFilter")) - } - if s.ExecutionFilter != nil { - if err := s.ExecutionFilter.Validate(); err != nil { - invalidParams.AddNested("ExecutionFilter", err.(request.ErrInvalidParams)) - } - } - if s.StartTimeFilter != nil { - if err := s.StartTimeFilter.Validate(); err != nil { - invalidParams.AddNested("StartTimeFilter", err.(request.ErrInvalidParams)) - } - } - if s.TagFilter != nil { - if err := s.TagFilter.Validate(); err != nil { - invalidParams.AddNested("TagFilter", err.(request.ErrInvalidParams)) - } - } - if s.TypeFilter != nil { - if err := s.TypeFilter.Validate(); err != nil { - invalidParams.AddNested("TypeFilter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type ListWorkflowTypesInput struct { - _ struct{} `type:"structure"` - // The name of the domain in which the workflow types have been registered. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The maximum number of results that will be returned per call. nextPageToken // can be used to obtain futher pages of results. The default is 1000, which @@ -4860,7 +4521,7 @@ type ListWorkflowTypesInput struct { MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"` // If specified, lists the workflow type with this name. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" type:"string"` // If a NextPageToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using @@ -4877,6 +4538,12 @@ type ListWorkflowTypesInput struct { // are returned in ascending alphabetical order of the name of the workflow // types. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"` + + metadataListWorkflowTypesInput `json:"-" xml:"-"` +} + +type metadataListWorkflowTypesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4889,32 +4556,8 @@ func (s ListWorkflowTypesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListWorkflowTypesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListWorkflowTypesInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.RegistrationStatus == nil { - invalidParams.Add(request.NewErrParamRequired("RegistrationStatus")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains a paginated list of information structures about workflow types. type ListWorkflowTypesOutput struct { - _ struct{} `type:"structure"` - // If a NextPageToken was returned by a previous call, there are more results // available. To retrieve the next page of results, make the call again using // the returned token in nextPageToken. Keep all other arguments unchanged. @@ -4925,6 +4568,12 @@ type ListWorkflowTypesOutput struct { // The list of workflow type information. TypeInfos []*WorkflowTypeInfo `locationName:"typeInfos" type:"list" required:"true"` + + metadataListWorkflowTypesOutput `json:"-" xml:"-"` +} + +type metadataListWorkflowTypesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4939,8 +4588,6 @@ func (s ListWorkflowTypesOutput) GoString() string { // Provides details of the MarkerRecorded event. type MarkerRecordedEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the DecisionTaskCompleted event corresponding to the decision task // that resulted in the RecordMarker decision that requested this marker. This // information can be useful for diagnosing problems by tracing back the chain @@ -4951,7 +4598,13 @@ type MarkerRecordedEventAttributes struct { Details *string `locationName:"details" type:"string"` // The name of the marker. - MarkerName *string `locationName:"markerName" min:"1" type:"string" required:"true"` + MarkerName *string `locationName:"markerName" type:"string" required:"true"` + + metadataMarkerRecordedEventAttributes `json:"-" xml:"-"` +} + +type metadataMarkerRecordedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4966,14 +4619,18 @@ func (s MarkerRecordedEventAttributes) GoString() string { // Contains the count of tasks in a task list. type PendingTaskCount struct { - _ struct{} `type:"structure"` - // The number of tasks in the task list. Count *int64 `locationName:"count" type:"integer" required:"true"` // If set to true, indicates that the actual count was more than the maximum // supported by this API and the count returned is the truncated value. Truncated *bool `locationName:"truncated" type:"boolean"` + + metadataPendingTaskCount `json:"-" xml:"-"` +} + +type metadataPendingTaskCount struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -4987,10 +4644,8 @@ func (s PendingTaskCount) GoString() string { } type PollForActivityTaskInput struct { - _ struct{} `type:"structure"` - // The name of the domain that contains the task lists being polled. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // Identity of the worker making the request, recorded in the ActivityTaskStarted // event in the workflow history. This enables diagnostic tracing when problems @@ -5004,6 +4659,12 @@ type PollForActivityTaskInput struct { // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal // string quotarnquot. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"` + + metadataPollForActivityTaskInput `json:"-" xml:"-"` +} + +type metadataPollForActivityTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5016,36 +4677,10 @@ func (s PollForActivityTaskInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PollForActivityTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PollForActivityTaskInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.TaskList == nil { - invalidParams.Add(request.NewErrParamRequired("TaskList")) - } - if s.TaskList != nil { - if err := s.TaskList.Validate(); err != nil { - invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Unit of work sent to an activity worker. type PollForActivityTaskOutput struct { - _ struct{} `type:"structure"` - // The unique ID of the task. - ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"` + ActivityId *string `locationName:"activityId" type:"string" required:"true"` // The type of this activity task. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"` @@ -5060,10 +4695,16 @@ type PollForActivityTaskOutput struct { // The opaque string used as a handle on the task. This token is used by workers // to communicate progress and response information back to the system about // the task. - TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` + TaskToken *string `locationName:"taskToken" type:"string" required:"true"` // The workflow execution that started this activity task. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"` + + metadataPollForActivityTaskOutput `json:"-" xml:"-"` +} + +type metadataPollForActivityTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5077,10 +4718,8 @@ func (s PollForActivityTaskOutput) GoString() string { } type PollForDecisionTaskInput struct { - _ struct{} `type:"structure"` - // The name of the domain containing the task lists to poll. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // Identity of the decider making the request, which is recorded in the DecisionTaskStarted // event in the workflow history. This enables diagnostic tracing when problems @@ -5120,6 +4759,12 @@ type PollForDecisionTaskInput struct { // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal // string quotarnquot. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"` + + metadataPollForDecisionTaskInput `json:"-" xml:"-"` +} + +type metadataPollForDecisionTaskInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5132,35 +4777,9 @@ func (s PollForDecisionTaskInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PollForDecisionTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PollForDecisionTaskInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.TaskList == nil { - invalidParams.Add(request.NewErrParamRequired("TaskList")) - } - if s.TaskList != nil { - if err := s.TaskList.Validate(); err != nil { - invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // A structure that represents a decision task. Decision tasks are sent to deciders // in order for them to make decisions. type PollForDecisionTaskOutput struct { - _ struct{} `type:"structure"` - // A paginated list of history events of the workflow execution. The decider // uses this during the processing of the decision task. Events []*HistoryEvent `locationName:"events" type:"list" required:"true"` @@ -5185,13 +4804,19 @@ type PollForDecisionTaskOutput struct { // The opaque string used as a handle on the task. This token is used by workers // to communicate progress and response information back to the system about // the task. - TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` + TaskToken *string `locationName:"taskToken" type:"string" required:"true"` // The workflow execution for which this decision task was created. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"` // The type of the workflow execution for which this decision task was created. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataPollForDecisionTaskOutput `json:"-" xml:"-"` +} + +type metadataPollForDecisionTaskOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5205,8 +4830,6 @@ func (s PollForDecisionTaskOutput) GoString() string { } type RecordActivityTaskHeartbeatInput struct { - _ struct{} `type:"structure"` - // If specified, contains details about the progress of the task. Details *string `locationName:"details" type:"string"` @@ -5215,7 +4838,13 @@ type RecordActivityTaskHeartbeatInput struct { // taskToken is generated by the service and should be treated as an opaque // value. If the task is passed to another process, its taskToken must also // be passed. This enables it to provide its progress and respond with results. - TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` + TaskToken *string `locationName:"taskToken" type:"string" required:"true"` + + metadataRecordActivityTaskHeartbeatInput `json:"-" xml:"-"` +} + +type metadataRecordActivityTaskHeartbeatInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5228,28 +4857,16 @@ func (s RecordActivityTaskHeartbeatInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RecordActivityTaskHeartbeatInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RecordActivityTaskHeartbeatInput"} - if s.TaskToken == nil { - invalidParams.Add(request.NewErrParamRequired("TaskToken")) - } - if s.TaskToken != nil && len(*s.TaskToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Status information about an activity task. type RecordActivityTaskHeartbeatOutput struct { - _ struct{} `type:"structure"` - // Set to true if cancellation of the task is requested. CancelRequested *bool `locationName:"cancelRequested" type:"boolean" required:"true"` + + metadataRecordActivityTaskHeartbeatOutput `json:"-" xml:"-"` +} + +type metadataRecordActivityTaskHeartbeatOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5278,13 +4895,17 @@ func (s RecordActivityTaskHeartbeatOutput) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type RecordMarkerDecisionAttributes struct { - _ struct{} `type:"structure"` - // Optional. details of the marker. Details *string `locationName:"details" type:"string"` // Required. The name of the marker. - MarkerName *string `locationName:"markerName" min:"1" type:"string" required:"true"` + MarkerName *string `locationName:"markerName" type:"string" required:"true"` + + metadataRecordMarkerDecisionAttributes `json:"-" xml:"-"` +} + +type metadataRecordMarkerDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5297,26 +4918,8 @@ func (s RecordMarkerDecisionAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RecordMarkerDecisionAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RecordMarkerDecisionAttributes"} - if s.MarkerName == nil { - invalidParams.Add(request.NewErrParamRequired("MarkerName")) - } - if s.MarkerName != nil && len(*s.MarkerName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MarkerName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the RecordMarkerFailed event. type RecordMarkerFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -5332,7 +4935,13 @@ type RecordMarkerFailedEventAttributes struct { DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` // The marker's name. - MarkerName *string `locationName:"markerName" min:"1" type:"string" required:"true"` + MarkerName *string `locationName:"markerName" type:"string" required:"true"` + + metadataRecordMarkerFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataRecordMarkerFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5346,8 +4955,6 @@ func (s RecordMarkerFailedEventAttributes) GoString() string { } type RegisterActivityTypeInput struct { - _ struct{} `type:"structure"` - // If set, specifies the default maximum time before which a worker processing // a task of this type must report progress by calling RecordActivityTaskHeartbeat. // If the timeout is exceeded, the activity task is automatically timed out. @@ -5404,7 +5011,7 @@ type RegisterActivityTypeInput struct { Description *string `locationName:"description" type:"string"` // The name of the domain in which this activity is to be registered. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The name of the activity type within the domain. // @@ -5412,7 +5019,7 @@ type RegisterActivityTypeInput struct { // contain a : (colon), / (slash), | (vertical bar), or any control characters // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal // string quotarnquot. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // The version of the activity type. // @@ -5421,7 +5028,13 @@ type RegisterActivityTypeInput struct { // end with whitespace. It must not contain a : (colon), / (slash), | (vertical // bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, // it must not contain the literal string quotarnquot. - Version *string `locationName:"version" min:"1" type:"string" required:"true"` + Version *string `locationName:"version" type:"string" required:"true"` + + metadataRegisterActivityTypeInput `json:"-" xml:"-"` +} + +type metadataRegisterActivityTypeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5434,41 +5047,12 @@ func (s RegisterActivityTypeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterActivityTypeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterActivityTypeInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Version == nil { - invalidParams.Add(request.NewErrParamRequired("Version")) - } - if s.Version != nil && len(*s.Version) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Version", 1)) - } - if s.DefaultTaskList != nil { - if err := s.DefaultTaskList.Validate(); err != nil { - invalidParams.AddNested("DefaultTaskList", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RegisterActivityTypeOutput struct { + metadataRegisterActivityTypeOutput `json:"-" xml:"-"` } -type RegisterActivityTypeOutput struct { - _ struct{} `type:"structure"` +type metadataRegisterActivityTypeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5482,8 +5066,6 @@ func (s RegisterActivityTypeOutput) GoString() string { } type RegisterDomainInput struct { - _ struct{} `type:"structure"` - // A text description of the domain. Description *string `locationName:"description" type:"string"` @@ -5494,7 +5076,7 @@ type RegisterDomainInput struct { // contain a : (colon), / (slash), | (vertical bar), or any control characters // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal // string quotarnquot. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // The duration (in days) that records and histories of workflow executions // on the domain should be kept by the service. After the retention period, @@ -5507,7 +5089,13 @@ type RegisterDomainInput struct { // The maximum workflow execution retention period is 90 days. For more information // about Amazon SWF service limits, see: Amazon SWF Service Limits (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html) // in the Amazon SWF Developer Guide. - WorkflowExecutionRetentionPeriodInDays *string `locationName:"workflowExecutionRetentionPeriodInDays" min:"1" type:"string" required:"true"` + WorkflowExecutionRetentionPeriodInDays *string `locationName:"workflowExecutionRetentionPeriodInDays" type:"string" required:"true"` + + metadataRegisterDomainInput `json:"-" xml:"-"` +} + +type metadataRegisterDomainInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5520,30 +5108,12 @@ func (s RegisterDomainInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterDomainInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.WorkflowExecutionRetentionPeriodInDays == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowExecutionRetentionPeriodInDays")) - } - if s.WorkflowExecutionRetentionPeriodInDays != nil && len(*s.WorkflowExecutionRetentionPeriodInDays) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowExecutionRetentionPeriodInDays", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RegisterDomainOutput struct { + metadataRegisterDomainOutput `json:"-" xml:"-"` } -type RegisterDomainOutput struct { - _ struct{} `type:"structure"` +type metadataRegisterDomainOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5557,8 +5127,6 @@ func (s RegisterDomainOutput) GoString() string { } type RegisterWorkflowTypeInput struct { - _ struct{} `type:"structure"` - // If set, specifies the default policy to use for the child workflow executions // when a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution // action explicitly or due to an expired timeout. This default can be overridden @@ -5591,7 +5159,7 @@ type RegisterWorkflowTypeInput struct { // This default can be overridden when starting a workflow execution using // the StartWorkflowExecution action or the StartChildWorkflowExecution and // ContinueAsNewWorkflowExecution decision. - DefaultLambdaRole *string `locationName:"defaultLambdaRole" min:"1" type:"string"` + DefaultLambdaRole *string `locationName:"defaultLambdaRole" type:"string"` // If set, specifies the default task list to use for scheduling decision tasks // for executions of this workflow type. This default is used only if a task @@ -5622,7 +5190,7 @@ type RegisterWorkflowTypeInput struct { Description *string `locationName:"description" type:"string"` // The name of the domain in which to register the workflow type. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The name of the workflow type. // @@ -5630,7 +5198,7 @@ type RegisterWorkflowTypeInput struct { // contain a : (colon), / (slash), | (vertical bar), or any control characters // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal // string quotarnquot. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // The version of the workflow type. // @@ -5640,7 +5208,13 @@ type RegisterWorkflowTypeInput struct { // not start or end with whitespace. It must not contain a : (colon), / (slash), // | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). // Also, it must not contain the literal string quotarnquot. - Version *string `locationName:"version" min:"1" type:"string" required:"true"` + Version *string `locationName:"version" type:"string" required:"true"` + + metadataRegisterWorkflowTypeInput `json:"-" xml:"-"` +} + +type metadataRegisterWorkflowTypeInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5653,44 +5227,12 @@ func (s RegisterWorkflowTypeInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RegisterWorkflowTypeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegisterWorkflowTypeInput"} - if s.DefaultLambdaRole != nil && len(*s.DefaultLambdaRole) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DefaultLambdaRole", 1)) - } - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Version == nil { - invalidParams.Add(request.NewErrParamRequired("Version")) - } - if s.Version != nil && len(*s.Version) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Version", 1)) - } - if s.DefaultTaskList != nil { - if err := s.DefaultTaskList.Validate(); err != nil { - invalidParams.AddNested("DefaultTaskList", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RegisterWorkflowTypeOutput struct { + metadataRegisterWorkflowTypeOutput `json:"-" xml:"-"` } -type RegisterWorkflowTypeOutput struct { - _ struct{} `type:"structure"` +type metadataRegisterWorkflowTypeOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5719,10 +5261,14 @@ func (s RegisterWorkflowTypeOutput) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type RequestCancelActivityTaskDecisionAttributes struct { - _ struct{} `type:"structure"` - // The activityId of the activity task to be canceled. - ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"` + ActivityId *string `locationName:"activityId" type:"string" required:"true"` + + metadataRequestCancelActivityTaskDecisionAttributes `json:"-" xml:"-"` +} + +type metadataRequestCancelActivityTaskDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5735,28 +5281,10 @@ func (s RequestCancelActivityTaskDecisionAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RequestCancelActivityTaskDecisionAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RequestCancelActivityTaskDecisionAttributes"} - if s.ActivityId == nil { - invalidParams.Add(request.NewErrParamRequired("ActivityId")) - } - if s.ActivityId != nil && len(*s.ActivityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ActivityId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the RequestCancelActivityTaskFailed event. type RequestCancelActivityTaskFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The activityId provided in the RequestCancelActivityTask decision that failed. - ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"` + ActivityId *string `locationName:"activityId" type:"string" required:"true"` // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. @@ -5771,6 +5299,12 @@ type RequestCancelActivityTaskFailedEventAttributes struct { // request. This information can be useful for diagnosing problems by tracing // back the chain of events leading up to this event. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` + + metadataRequestCancelActivityTaskFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataRequestCancelActivityTaskFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5799,8 +5333,6 @@ func (s RequestCancelActivityTaskFailedEventAttributes) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type RequestCancelExternalWorkflowExecutionDecisionAttributes struct { - _ struct{} `type:"structure"` - // Optional. Data attached to the event that can be used by the decider in subsequent // workflow tasks. Control *string `locationName:"control" type:"string"` @@ -5809,7 +5341,13 @@ type RequestCancelExternalWorkflowExecutionDecisionAttributes struct { RunId *string `locationName:"runId" type:"string"` // Required. The workflowId of the external workflow execution to cancel. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataRequestCancelExternalWorkflowExecutionDecisionAttributes `json:"-" xml:"-"` +} + +type metadataRequestCancelExternalWorkflowExecutionDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5822,26 +5360,8 @@ func (s RequestCancelExternalWorkflowExecutionDecisionAttributes) GoString() str return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RequestCancelExternalWorkflowExecutionDecisionAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RequestCancelExternalWorkflowExecutionDecisionAttributes"} - if s.WorkflowId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowId")) - } - if s.WorkflowId != nil && len(*s.WorkflowId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the RequestCancelExternalWorkflowExecutionFailed event. type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -5869,7 +5389,13 @@ type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct { // The workflowId of the external workflow to which the cancel request was to // be delivered. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataRequestCancelExternalWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataRequestCancelExternalWorkflowExecutionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5884,8 +5410,6 @@ func (s RequestCancelExternalWorkflowExecutionFailedEventAttributes) GoString() // Provides details of the RequestCancelExternalWorkflowExecutionInitiated event. type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { - _ struct{} `type:"structure"` - // Optional. Data attached to the event that can be used by the decider in subsequent // workflow tasks. Control *string `locationName:"control" type:"string"` @@ -5900,7 +5424,13 @@ type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { RunId *string `locationName:"runId" type:"string"` // The workflowId of the external workflow execution to be canceled. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataRequestCancelExternalWorkflowExecutionInitiatedEventAttributes `json:"-" xml:"-"` +} + +type metadataRequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5914,16 +5444,20 @@ func (s RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GoString } type RequestCancelWorkflowExecutionInput struct { - _ struct{} `type:"structure"` - // The name of the domain containing the workflow execution to cancel. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The runId of the workflow execution to cancel. RunId *string `locationName:"runId" type:"string"` // The workflowId of the workflow execution to cancel. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataRequestCancelWorkflowExecutionInput `json:"-" xml:"-"` +} + +type metadataRequestCancelWorkflowExecutionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5936,30 +5470,12 @@ func (s RequestCancelWorkflowExecutionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RequestCancelWorkflowExecutionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RequestCancelWorkflowExecutionInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.WorkflowId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowId")) - } - if s.WorkflowId != nil && len(*s.WorkflowId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RequestCancelWorkflowExecutionOutput struct { + metadataRequestCancelWorkflowExecutionOutput `json:"-" xml:"-"` } -type RequestCancelWorkflowExecutionOutput struct { - _ struct{} `type:"structure"` +type metadataRequestCancelWorkflowExecutionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5973,8 +5489,6 @@ func (s RequestCancelWorkflowExecutionOutput) GoString() string { } type RespondActivityTaskCanceledInput struct { - _ struct{} `type:"structure"` - // Optional. Information about the cancellation. Details *string `locationName:"details" type:"string"` @@ -5983,7 +5497,13 @@ type RespondActivityTaskCanceledInput struct { // taskToken is generated by the service and should be treated as an opaque // value. If the task is passed to another process, its taskToken must also // be passed. This enables it to provide its progress and respond with results. - TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` + TaskToken *string `locationName:"taskToken" type:"string" required:"true"` + + metadataRespondActivityTaskCanceledInput `json:"-" xml:"-"` +} + +type metadataRespondActivityTaskCanceledInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -5996,24 +5516,12 @@ func (s RespondActivityTaskCanceledInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RespondActivityTaskCanceledInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RespondActivityTaskCanceledInput"} - if s.TaskToken == nil { - invalidParams.Add(request.NewErrParamRequired("TaskToken")) - } - if s.TaskToken != nil && len(*s.TaskToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RespondActivityTaskCanceledOutput struct { + metadataRespondActivityTaskCanceledOutput `json:"-" xml:"-"` } -type RespondActivityTaskCanceledOutput struct { - _ struct{} `type:"structure"` +type metadataRespondActivityTaskCanceledOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6027,8 +5535,6 @@ func (s RespondActivityTaskCanceledOutput) GoString() string { } type RespondActivityTaskCompletedInput struct { - _ struct{} `type:"structure"` - // The result of the activity task. It is a free form string that is implementation // specific. Result *string `locationName:"result" type:"string"` @@ -6038,7 +5544,13 @@ type RespondActivityTaskCompletedInput struct { // taskToken is generated by the service and should be treated as an opaque // value. If the task is passed to another process, its taskToken must also // be passed. This enables it to provide its progress and respond with results. - TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` + TaskToken *string `locationName:"taskToken" type:"string" required:"true"` + + metadataRespondActivityTaskCompletedInput `json:"-" xml:"-"` +} + +type metadataRespondActivityTaskCompletedInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6051,24 +5563,12 @@ func (s RespondActivityTaskCompletedInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RespondActivityTaskCompletedInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RespondActivityTaskCompletedInput"} - if s.TaskToken == nil { - invalidParams.Add(request.NewErrParamRequired("TaskToken")) - } - if s.TaskToken != nil && len(*s.TaskToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RespondActivityTaskCompletedOutput struct { + metadataRespondActivityTaskCompletedOutput `json:"-" xml:"-"` } -type RespondActivityTaskCompletedOutput struct { - _ struct{} `type:"structure"` +type metadataRespondActivityTaskCompletedOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6082,8 +5582,6 @@ func (s RespondActivityTaskCompletedOutput) GoString() string { } type RespondActivityTaskFailedInput struct { - _ struct{} `type:"structure"` - // Optional. Detailed information about the failure. Details *string `locationName:"details" type:"string"` @@ -6095,7 +5593,13 @@ type RespondActivityTaskFailedInput struct { // taskToken is generated by the service and should be treated as an opaque // value. If the task is passed to another process, its taskToken must also // be passed. This enables it to provide its progress and respond with results. - TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` + TaskToken *string `locationName:"taskToken" type:"string" required:"true"` + + metadataRespondActivityTaskFailedInput `json:"-" xml:"-"` +} + +type metadataRespondActivityTaskFailedInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6108,24 +5612,12 @@ func (s RespondActivityTaskFailedInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RespondActivityTaskFailedInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RespondActivityTaskFailedInput"} - if s.TaskToken == nil { - invalidParams.Add(request.NewErrParamRequired("TaskToken")) - } - if s.TaskToken != nil && len(*s.TaskToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RespondActivityTaskFailedOutput struct { + metadataRespondActivityTaskFailedOutput `json:"-" xml:"-"` } -type RespondActivityTaskFailedOutput struct { - _ struct{} `type:"structure"` +type metadataRespondActivityTaskFailedOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6139,8 +5631,6 @@ func (s RespondActivityTaskFailedOutput) GoString() string { } type RespondDecisionTaskCompletedInput struct { - _ struct{} `type:"structure"` - // The list of decisions (possibly empty) made by the decider while processing // this decision task. See the docs for the decision structure for details. Decisions []*Decision `locationName:"decisions" type:"list"` @@ -6153,7 +5643,13 @@ type RespondDecisionTaskCompletedInput struct { // taskToken is generated by the service and should be treated as an opaque // value. If the task is passed to another process, its taskToken must also // be passed. This enables it to provide its progress and respond with results. - TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` + TaskToken *string `locationName:"taskToken" type:"string" required:"true"` + + metadataRespondDecisionTaskCompletedInput `json:"-" xml:"-"` +} + +type metadataRespondDecisionTaskCompletedInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6166,34 +5662,12 @@ func (s RespondDecisionTaskCompletedInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RespondDecisionTaskCompletedInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RespondDecisionTaskCompletedInput"} - if s.TaskToken == nil { - invalidParams.Add(request.NewErrParamRequired("TaskToken")) - } - if s.TaskToken != nil && len(*s.TaskToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) - } - if s.Decisions != nil { - for i, v := range s.Decisions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Decisions", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type RespondDecisionTaskCompletedOutput struct { + metadataRespondDecisionTaskCompletedOutput `json:"-" xml:"-"` } -type RespondDecisionTaskCompletedOutput struct { - _ struct{} `type:"structure"` +type metadataRespondDecisionTaskCompletedOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6225,15 +5699,13 @@ func (s RespondDecisionTaskCompletedOutput) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type ScheduleActivityTaskDecisionAttributes struct { - _ struct{} `type:"structure"` - // Required. The activityId of the activity task. // // The specified string must not start or end with whitespace. It must not // contain a : (colon), / (slash), | (vertical bar), or any control characters // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal // string quotarnquot. - ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"` + ActivityId *string `locationName:"activityId" type:"string" required:"true"` // Required. The type of the activity task to schedule. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"` @@ -6316,6 +5788,12 @@ type ScheduleActivityTaskDecisionAttributes struct { // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html) // in the Amazon Simple Workflow Developer Guide. TaskPriority *string `locationName:"taskPriority" type:"string"` + + metadataScheduleActivityTaskDecisionAttributes `json:"-" xml:"-"` +} + +type metadataScheduleActivityTaskDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6328,41 +5806,10 @@ func (s ScheduleActivityTaskDecisionAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ScheduleActivityTaskDecisionAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ScheduleActivityTaskDecisionAttributes"} - if s.ActivityId == nil { - invalidParams.Add(request.NewErrParamRequired("ActivityId")) - } - if s.ActivityId != nil && len(*s.ActivityId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ActivityId", 1)) - } - if s.ActivityType == nil { - invalidParams.Add(request.NewErrParamRequired("ActivityType")) - } - if s.ActivityType != nil { - if err := s.ActivityType.Validate(); err != nil { - invalidParams.AddNested("ActivityType", err.(request.ErrInvalidParams)) - } - } - if s.TaskList != nil { - if err := s.TaskList.Validate(); err != nil { - invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the ScheduleActivityTaskFailed event. type ScheduleActivityTaskFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The activityId provided in the ScheduleActivityTask decision that failed. - ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"` + ActivityId *string `locationName:"activityId" type:"string" required:"true"` // The activity type provided in the ScheduleActivityTask decision that failed. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"` @@ -6380,6 +5827,12 @@ type ScheduleActivityTaskFailedEventAttributes struct { // useful for diagnosing problems by tracing back the chain of events leading // up to this event. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` + + metadataScheduleActivityTaskFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataScheduleActivityTaskFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6411,24 +5864,28 @@ func (s ScheduleActivityTaskFailedEventAttributes) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type ScheduleLambdaFunctionDecisionAttributes struct { - _ struct{} `type:"structure"` - // Required. The SWF id of the AWS Lambda task. // // The specified string must not start or end with whitespace. It must not // contain a : (colon), / (slash), | (vertical bar), or any control characters // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal // string quotarnquot. - Id *string `locationName:"id" min:"1" type:"string" required:"true"` + Id *string `locationName:"id" type:"string" required:"true"` // The input provided to the AWS Lambda function. - Input *string `locationName:"input" min:"1" type:"string"` + Input *string `locationName:"input" type:"string"` // Required. The name of the AWS Lambda function to invoke. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // If set, specifies the maximum duration the function may take to execute. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"` + + metadataScheduleLambdaFunctionDecisionAttributes `json:"-" xml:"-"` +} + +type metadataScheduleLambdaFunctionDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6436,40 +5893,13 @@ func (s ScheduleLambdaFunctionDecisionAttributes) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s ScheduleLambdaFunctionDecisionAttributes) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ScheduleLambdaFunctionDecisionAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ScheduleLambdaFunctionDecisionAttributes"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } - if s.Input != nil && len(*s.Input) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Input", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// GoString returns the string representation +func (s ScheduleLambdaFunctionDecisionAttributes) GoString() string { + return s.String() } // Provides details for the ScheduleLambdaFunctionFailed event. type ScheduleLambdaFunctionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -6485,10 +5915,16 @@ type ScheduleLambdaFunctionFailedEventAttributes struct { DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` // The unique Amazon SWF ID of the AWS Lambda task. - Id *string `locationName:"id" min:"1" type:"string" required:"true"` + Id *string `locationName:"id" type:"string" required:"true"` // The name of the scheduled AWS Lambda function. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataScheduleLambdaFunctionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataScheduleLambdaFunctionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6517,8 +5953,6 @@ func (s ScheduleLambdaFunctionFailedEventAttributes) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type SignalExternalWorkflowExecutionDecisionAttributes struct { - _ struct{} `type:"structure"` - // Optional. Data attached to the event that can be used by the decider in subsequent // decision tasks. Control *string `locationName:"control" type:"string"` @@ -6532,10 +5966,16 @@ type SignalExternalWorkflowExecutionDecisionAttributes struct { // Required. The name of the signal.The target workflow execution will use the // signal name and input to process the signal. - SignalName *string `locationName:"signalName" min:"1" type:"string" required:"true"` + SignalName *string `locationName:"signalName" type:"string" required:"true"` // Required. The workflowId of the workflow execution to be signaled. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataSignalExternalWorkflowExecutionDecisionAttributes `json:"-" xml:"-"` +} + +type metadataSignalExternalWorkflowExecutionDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6548,32 +5988,8 @@ func (s SignalExternalWorkflowExecutionDecisionAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SignalExternalWorkflowExecutionDecisionAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SignalExternalWorkflowExecutionDecisionAttributes"} - if s.SignalName == nil { - invalidParams.Add(request.NewErrParamRequired("SignalName")) - } - if s.SignalName != nil && len(*s.SignalName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SignalName", 1)) - } - if s.WorkflowId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowId")) - } - if s.WorkflowId != nil && len(*s.WorkflowId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the SignalExternalWorkflowExecutionFailed event. type SignalExternalWorkflowExecutionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -6602,7 +6018,13 @@ type SignalExternalWorkflowExecutionFailedEventAttributes struct { // The workflowId of the external workflow execution that the signal was being // delivered to. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataSignalExternalWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataSignalExternalWorkflowExecutionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6617,8 +6039,6 @@ func (s SignalExternalWorkflowExecutionFailedEventAttributes) GoString() string // Provides details of the SignalExternalWorkflowExecutionInitiated event. type SignalExternalWorkflowExecutionInitiatedEventAttributes struct { - _ struct{} `type:"structure"` - // Optional. data attached to the event that can be used by the decider in subsequent // decision tasks. Control *string `locationName:"control" type:"string"` @@ -6636,10 +6056,16 @@ type SignalExternalWorkflowExecutionInitiatedEventAttributes struct { RunId *string `locationName:"runId" type:"string"` // The name of the signal. - SignalName *string `locationName:"signalName" min:"1" type:"string" required:"true"` + SignalName *string `locationName:"signalName" type:"string" required:"true"` // The workflowId of the external workflow execution. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataSignalExternalWorkflowExecutionInitiatedEventAttributes `json:"-" xml:"-"` +} + +type metadataSignalExternalWorkflowExecutionInitiatedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6653,10 +6079,8 @@ func (s SignalExternalWorkflowExecutionInitiatedEventAttributes) GoString() stri } type SignalWorkflowExecutionInput struct { - _ struct{} `type:"structure"` - // The name of the domain containing the workflow execution to signal. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // Data to attach to the WorkflowExecutionSignaled event in the target workflow // execution's history. @@ -6666,10 +6090,16 @@ type SignalWorkflowExecutionInput struct { RunId *string `locationName:"runId" type:"string"` // The name of the signal. This name must be meaningful to the target workflow. - SignalName *string `locationName:"signalName" min:"1" type:"string" required:"true"` + SignalName *string `locationName:"signalName" type:"string" required:"true"` // The workflowId of the workflow execution to signal. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataSignalWorkflowExecutionInput `json:"-" xml:"-"` +} + +type metadataSignalWorkflowExecutionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6682,36 +6112,12 @@ func (s SignalWorkflowExecutionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SignalWorkflowExecutionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SignalWorkflowExecutionInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.SignalName == nil { - invalidParams.Add(request.NewErrParamRequired("SignalName")) - } - if s.SignalName != nil && len(*s.SignalName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SignalName", 1)) - } - if s.WorkflowId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowId")) - } - if s.WorkflowId != nil && len(*s.WorkflowId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type SignalWorkflowExecutionOutput struct { + metadataSignalWorkflowExecutionOutput `json:"-" xml:"-"` } -type SignalWorkflowExecutionOutput struct { - _ struct{} `type:"structure"` +type metadataSignalWorkflowExecutionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6744,8 +6150,6 @@ func (s SignalWorkflowExecutionOutput) GoString() string { // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type StartChildWorkflowExecutionDecisionAttributes struct { - _ struct{} `type:"structure"` - // Optional. If set, specifies the policy to use for the child workflow executions // if the workflow execution being started is terminated by calling the TerminateWorkflowExecution // action explicitly or due to an expired timeout. This policy overrides the @@ -6788,7 +6192,7 @@ type StartChildWorkflowExecutionDecisionAttributes struct { // In order for this workflow execution to invoke AWS Lambda functions, an // appropriate IAM role must be specified either as a default for the workflow // type or through this field. - LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"` + LambdaRole *string `locationName:"lambdaRole" type:"string"` // The list of tags to associate with the child workflow execution. A maximum // of 5 tags can be specified. You can list workflow executions with a specific @@ -6838,10 +6242,16 @@ type StartChildWorkflowExecutionDecisionAttributes struct { // contain a : (colon), / (slash), | (vertical bar), or any control characters // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal // string quotarnquot. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` // Required. The type of the workflow execution to be started. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataStartChildWorkflowExecutionDecisionAttributes `json:"-" xml:"-"` +} + +type metadataStartChildWorkflowExecutionDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6854,42 +6264,8 @@ func (s StartChildWorkflowExecutionDecisionAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartChildWorkflowExecutionDecisionAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartChildWorkflowExecutionDecisionAttributes"} - if s.LambdaRole != nil && len(*s.LambdaRole) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LambdaRole", 1)) - } - if s.WorkflowId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowId")) - } - if s.WorkflowId != nil && len(*s.WorkflowId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1)) - } - if s.WorkflowType == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowType")) - } - if s.TaskList != nil { - if err := s.TaskList.Validate(); err != nil { - invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams)) - } - } - if s.WorkflowType != nil { - if err := s.WorkflowType.Validate(); err != nil { - invalidParams.AddNested("WorkflowType", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the StartChildWorkflowExecutionFailed event. type StartChildWorkflowExecutionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -6913,11 +6289,17 @@ type StartChildWorkflowExecutionFailedEventAttributes struct { InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"` // The workflowId of the child workflow execution. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` // The workflow type provided in the StartChildWorkflowExecution decision that // failed. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataStartChildWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataStartChildWorkflowExecutionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -6932,8 +6314,6 @@ func (s StartChildWorkflowExecutionFailedEventAttributes) GoString() string { // Provides details of the StartChildWorkflowExecutionInitiated event. type StartChildWorkflowExecutionInitiatedEventAttributes struct { - _ struct{} `type:"structure"` - // The policy to use for the child workflow executions if this execution gets // terminated by explicitly calling the TerminateWorkflowExecution action or // due to an expired timeout. @@ -6969,7 +6349,7 @@ type StartChildWorkflowExecutionInitiatedEventAttributes struct { // The IAM role attached to this workflow execution to use when invoking AWS // Lambda functions. - LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"` + LambdaRole *string `locationName:"lambdaRole" type:"string"` // The list of tags to associated with the child workflow execution. TagList []*string `locationName:"tagList" type:"list"` @@ -6995,10 +6375,16 @@ type StartChildWorkflowExecutionInitiatedEventAttributes struct { TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"` // The workflowId of the child workflow execution. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` // The type of the child workflow execution. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataStartChildWorkflowExecutionInitiatedEventAttributes `json:"-" xml:"-"` +} + +type metadataStartChildWorkflowExecutionInitiatedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7013,8 +6399,6 @@ func (s StartChildWorkflowExecutionInitiatedEventAttributes) GoString() string { // Provides details for the StartLambdaFunctionFailed event. type StartLambdaFunctionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -7030,6 +6414,12 @@ type StartLambdaFunctionFailedEventAttributes struct { // Lambda function was scheduled. This information can be useful for diagnosing // problems by tracing back the chain of events leading up to this event. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long"` + + metadataStartLambdaFunctionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataStartLambdaFunctionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7058,8 +6448,6 @@ func (s StartLambdaFunctionFailedEventAttributes) GoString() string { // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). type StartTimerDecisionAttributes struct { - _ struct{} `type:"structure"` - // Optional. Data attached to the event that can be used by the decider in subsequent // workflow tasks. Control *string `locationName:"control" type:"string"` @@ -7068,7 +6456,7 @@ type StartTimerDecisionAttributes struct { // // The duration is specified in seconds; an integer greater than or equal to // 0. - StartToFireTimeout *string `locationName:"startToFireTimeout" min:"1" type:"string" required:"true"` + StartToFireTimeout *string `locationName:"startToFireTimeout" type:"string" required:"true"` // Required. The unique ID of the timer. // @@ -7076,7 +6464,13 @@ type StartTimerDecisionAttributes struct { // contain a : (colon), / (slash), | (vertical bar), or any control characters // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal // string quotarnquot. - TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"` + TimerId *string `locationName:"timerId" type:"string" required:"true"` + + metadataStartTimerDecisionAttributes `json:"-" xml:"-"` +} + +type metadataStartTimerDecisionAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7089,32 +6483,8 @@ func (s StartTimerDecisionAttributes) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartTimerDecisionAttributes) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartTimerDecisionAttributes"} - if s.StartToFireTimeout == nil { - invalidParams.Add(request.NewErrParamRequired("StartToFireTimeout")) - } - if s.StartToFireTimeout != nil && len(*s.StartToFireTimeout) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StartToFireTimeout", 1)) - } - if s.TimerId == nil { - invalidParams.Add(request.NewErrParamRequired("TimerId")) - } - if s.TimerId != nil && len(*s.TimerId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TimerId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the StartTimerFailed event. type StartTimerFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The cause of the failure. This information is generated by the system and // can be useful for diagnostic purposes. // @@ -7130,7 +6500,13 @@ type StartTimerFailedEventAttributes struct { DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"` // The timerId provided in the StartTimer decision that failed. - TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"` + TimerId *string `locationName:"timerId" type:"string" required:"true"` + + metadataStartTimerFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataStartTimerFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7144,8 +6520,6 @@ func (s StartTimerFailedEventAttributes) GoString() string { } type StartWorkflowExecutionInput struct { - _ struct{} `type:"structure"` - // If set, specifies the policy to use for the child workflow executions of // this workflow execution if it is terminated, by calling the TerminateWorkflowExecution // action explicitly or due to an expired timeout. This policy overrides the @@ -7165,7 +6539,7 @@ type StartWorkflowExecutionInput struct { ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"` // The name of the domain in which the workflow execution is created. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout // specified when registering the workflow type. @@ -7192,7 +6566,7 @@ type StartWorkflowExecutionInput struct { // In order for this workflow execution to invoke AWS Lambda functions, an // appropriate IAM role must be specified either as a default for the workflow // type or through this field. - LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"` + LambdaRole *string `locationName:"lambdaRole" type:"string"` // The list of tags to associate with the workflow execution. You can specify // a maximum of 5 tags. You can list workflow executions with a specific tag @@ -7248,10 +6622,16 @@ type StartWorkflowExecutionInput struct { // contain a : (colon), / (slash), | (vertical bar), or any control characters // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal // string quotarnquot. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` // The type of the workflow to start. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataStartWorkflowExecutionInput `json:"-" xml:"-"` +} + +type metadataStartWorkflowExecutionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7264,51 +6644,17 @@ func (s StartWorkflowExecutionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StartWorkflowExecutionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartWorkflowExecutionInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.LambdaRole != nil && len(*s.LambdaRole) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LambdaRole", 1)) - } - if s.WorkflowId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowId")) - } - if s.WorkflowId != nil && len(*s.WorkflowId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1)) - } - if s.WorkflowType == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowType")) - } - if s.TaskList != nil { - if err := s.TaskList.Validate(); err != nil { - invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams)) - } - } - if s.WorkflowType != nil { - if err := s.WorkflowType.Validate(); err != nil { - invalidParams.AddNested("WorkflowType", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Specifies the runId of a workflow execution. type StartWorkflowExecutionOutput struct { - _ struct{} `type:"structure"` - // The runId of a workflow execution. This ID is generated by the service and // can be used to uniquely identify the workflow execution within a domain. - RunId *string `locationName:"runId" min:"1" type:"string"` + RunId *string `locationName:"runId" type:"string"` + + metadataStartWorkflowExecutionOutput `json:"-" xml:"-"` +} + +type metadataStartWorkflowExecutionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7323,11 +6669,15 @@ func (s StartWorkflowExecutionOutput) GoString() string { // Used to filter the workflow executions in visibility APIs based on a tag. type TagFilter struct { - _ struct{} `type:"structure"` - // Required. Specifies the tag that must be associated with the execution for // it to meet the filter criteria. - Tag *string `locationName:"tag" min:"1" type:"string" required:"true"` + Tag *string `locationName:"tag" type:"string" required:"true"` + + metadataTagFilter `json:"-" xml:"-"` +} + +type metadataTagFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7340,28 +6690,16 @@ func (s TagFilter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TagFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagFilter"} - if s.Tag == nil { - invalidParams.Add(request.NewErrParamRequired("Tag")) - } - if s.Tag != nil && len(*s.Tag) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tag", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Represents a task list. type TaskList struct { - _ struct{} `type:"structure"` - // The name of the task list. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` + + metadataTaskList `json:"-" xml:"-"` +} + +type metadataTaskList struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7374,25 +6712,7 @@ func (s TaskList) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TaskList) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TaskList"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - type TerminateWorkflowExecutionInput struct { - _ struct{} `type:"structure"` - // If set, specifies the policy to use for the child workflow executions of // the workflow execution being terminated. This policy overrides the child // policy specified for the workflow execution at registration time or when @@ -7415,7 +6735,7 @@ type TerminateWorkflowExecutionInput struct { Details *string `locationName:"details" type:"string"` // The domain of the workflow execution to terminate. - Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + Domain *string `locationName:"domain" type:"string" required:"true"` // Optional. A descriptive reason for terminating the workflow execution. Reason *string `locationName:"reason" type:"string"` @@ -7424,7 +6744,13 @@ type TerminateWorkflowExecutionInput struct { RunId *string `locationName:"runId" type:"string"` // The workflowId of the workflow execution to terminate. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataTerminateWorkflowExecutionInput `json:"-" xml:"-"` +} + +type metadataTerminateWorkflowExecutionInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7437,30 +6763,12 @@ func (s TerminateWorkflowExecutionInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TerminateWorkflowExecutionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TerminateWorkflowExecutionInput"} - if s.Domain == nil { - invalidParams.Add(request.NewErrParamRequired("Domain")) - } - if s.Domain != nil && len(*s.Domain) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) - } - if s.WorkflowId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowId")) - } - if s.WorkflowId != nil && len(*s.WorkflowId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +type TerminateWorkflowExecutionOutput struct { + metadataTerminateWorkflowExecutionOutput `json:"-" xml:"-"` } -type TerminateWorkflowExecutionOutput struct { - _ struct{} `type:"structure"` +type metadataTerminateWorkflowExecutionOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7475,8 +6783,6 @@ func (s TerminateWorkflowExecutionOutput) GoString() string { // Provides details of the TimerCanceled event. type TimerCanceledEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the DecisionTaskCompleted event corresponding to the decision task // that resulted in the CancelTimer decision to cancel this timer. This information // can be useful for diagnosing problems by tracing back the chain of events @@ -7489,7 +6795,13 @@ type TimerCanceledEventAttributes struct { StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"` // The unique ID of the timer that was canceled. - TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"` + TimerId *string `locationName:"timerId" type:"string" required:"true"` + + metadataTimerCanceledEventAttributes `json:"-" xml:"-"` +} + +type metadataTimerCanceledEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7504,15 +6816,19 @@ func (s TimerCanceledEventAttributes) GoString() string { // Provides details of the TimerFired event. type TimerFiredEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the TimerStarted event that was recorded when this timer was started. // This information can be useful for diagnosing problems by tracing back the // chain of events leading up to this event. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"` // The unique ID of the timer that fired. - TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"` + TimerId *string `locationName:"timerId" type:"string" required:"true"` + + metadataTimerFiredEventAttributes `json:"-" xml:"-"` +} + +type metadataTimerFiredEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7527,8 +6843,6 @@ func (s TimerFiredEventAttributes) GoString() string { // Provides details of the TimerStarted event. type TimerStartedEventAttributes struct { - _ struct{} `type:"structure"` - // Optional. Data attached to the event that can be used by the decider in subsequent // workflow tasks. Control *string `locationName:"control" type:"string"` @@ -7543,10 +6857,16 @@ type TimerStartedEventAttributes struct { // // The duration is specified in seconds; an integer greater than or equal to // 0. - StartToFireTimeout *string `locationName:"startToFireTimeout" min:"1" type:"string" required:"true"` + StartToFireTimeout *string `locationName:"startToFireTimeout" type:"string" required:"true"` // The unique ID of the timer that was started. - TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"` + TimerId *string `locationName:"timerId" type:"string" required:"true"` + + metadataTimerStartedEventAttributes `json:"-" xml:"-"` +} + +type metadataTimerStartedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7561,13 +6881,17 @@ func (s TimerStartedEventAttributes) GoString() string { // Represents a workflow execution. type WorkflowExecution struct { - _ struct{} `type:"structure"` - // A system-generated unique identifier for the workflow execution. - RunId *string `locationName:"runId" min:"1" type:"string" required:"true"` + RunId *string `locationName:"runId" type:"string" required:"true"` // The user defined identifier associated with the workflow execution. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataWorkflowExecution `json:"-" xml:"-"` +} + +type metadataWorkflowExecution struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7580,32 +6904,8 @@ func (s WorkflowExecution) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *WorkflowExecution) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "WorkflowExecution"} - if s.RunId == nil { - invalidParams.Add(request.NewErrParamRequired("RunId")) - } - if s.RunId != nil && len(*s.RunId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RunId", 1)) - } - if s.WorkflowId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowId")) - } - if s.WorkflowId != nil && len(*s.WorkflowId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Provides details of the WorkflowExecutionCancelRequested event. type WorkflowExecutionCancelRequestedEventAttributes struct { - _ struct{} `type:"structure"` - // If set, indicates that the request to cancel the workflow execution was automatically // generated, and specifies the cause. This happens if the parent workflow execution // times out or is terminated, and the child policy is set to cancel child executions. @@ -7620,6 +6920,12 @@ type WorkflowExecutionCancelRequestedEventAttributes struct { // The external workflow execution for which the cancellation was requested. ExternalWorkflowExecution *WorkflowExecution `locationName:"externalWorkflowExecution" type:"structure"` + + metadataWorkflowExecutionCancelRequestedEventAttributes `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionCancelRequestedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7634,8 +6940,6 @@ func (s WorkflowExecutionCancelRequestedEventAttributes) GoString() string { // Provides details of the WorkflowExecutionCanceled event. type WorkflowExecutionCanceledEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the DecisionTaskCompleted event corresponding to the decision task // that resulted in the CancelWorkflowExecution decision for this cancellation // request. This information can be useful for diagnosing problems by tracing @@ -7644,6 +6948,12 @@ type WorkflowExecutionCanceledEventAttributes struct { // Details for the cancellation (if any). Details *string `locationName:"details" type:"string"` + + metadataWorkflowExecutionCanceledEventAttributes `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionCanceledEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7658,8 +6968,6 @@ func (s WorkflowExecutionCanceledEventAttributes) GoString() string { // Provides details of the WorkflowExecutionCompleted event. type WorkflowExecutionCompletedEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the DecisionTaskCompleted event corresponding to the decision task // that resulted in the CompleteWorkflowExecution decision to complete this // execution. This information can be useful for diagnosing problems by tracing @@ -7668,6 +6976,12 @@ type WorkflowExecutionCompletedEventAttributes struct { // The result produced by the workflow execution upon successful completion. Result *string `locationName:"result" type:"string"` + + metadataWorkflowExecutionCompletedEventAttributes `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionCompletedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7685,8 +6999,6 @@ func (s WorkflowExecutionCompletedEventAttributes) GoString() string { // specified when registering the workflow type and those specified when starting // the workflow execution. type WorkflowExecutionConfiguration struct { - _ struct{} `type:"structure"` - // The policy to use for the child workflow executions if this workflow execution // is terminated, by calling the TerminateWorkflowExecution action explicitly // or due to an expired timeout. @@ -7704,10 +7016,10 @@ type WorkflowExecutionConfiguration struct { // // The duration is specified in seconds; an integer greater than or equal to // 0. The value "NONE" can be used to specify unlimited duration. - ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" min:"1" type:"string" required:"true"` + ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string" required:"true"` // The IAM role used by this workflow execution when invoking AWS Lambda functions. - LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"` + LambdaRole *string `locationName:"lambdaRole" type:"string"` // The task list used for the decision tasks generated for this workflow execution. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"` @@ -7725,7 +7037,13 @@ type WorkflowExecutionConfiguration struct { // // The duration is specified in seconds; an integer greater than or equal to // 0. The value "NONE" can be used to specify unlimited duration. - TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" min:"1" type:"string" required:"true"` + TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string" required:"true"` + + metadataWorkflowExecutionConfiguration `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7740,8 +7058,6 @@ func (s WorkflowExecutionConfiguration) GoString() string { // Provides details of the WorkflowExecutionContinuedAsNew event. type WorkflowExecutionContinuedAsNewEventAttributes struct { - _ struct{} `type:"structure"` - // The policy to use for the child workflow executions of the new execution // if it is terminated by calling the TerminateWorkflowExecution action explicitly // or due to an expired timeout. @@ -7772,10 +7088,10 @@ type WorkflowExecutionContinuedAsNewEventAttributes struct { // The IAM role attached to this workflow execution to use when invoking AWS // Lambda functions. - LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"` + LambdaRole *string `locationName:"lambdaRole" type:"string"` // The runId of the new workflow execution. - NewExecutionRunId *string `locationName:"newExecutionRunId" min:"1" type:"string" required:"true"` + NewExecutionRunId *string `locationName:"newExecutionRunId" type:"string" required:"true"` // The list of tags associated with the new workflow execution. TagList []*string `locationName:"tagList" type:"list"` @@ -7793,6 +7109,12 @@ type WorkflowExecutionContinuedAsNewEventAttributes struct { // Represents a workflow type. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataWorkflowExecutionContinuedAsNewEventAttributes `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionContinuedAsNewEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7808,14 +7130,18 @@ func (s WorkflowExecutionContinuedAsNewEventAttributes) GoString() string { // Contains the count of workflow executions returned from CountOpenWorkflowExecutions // or CountClosedWorkflowExecutions type WorkflowExecutionCount struct { - _ struct{} `type:"structure"` - // The number of workflow executions. Count *int64 `locationName:"count" type:"integer" required:"true"` // If set to true, indicates that the actual count was more than the maximum // supported by this API and the count returned is the truncated value. Truncated *bool `locationName:"truncated" type:"boolean"` + + metadataWorkflowExecutionCount `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionCount struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7830,8 +7156,6 @@ func (s WorkflowExecutionCount) GoString() string { // Provides details of the WorkflowExecutionFailed event. type WorkflowExecutionFailedEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the DecisionTaskCompleted event corresponding to the decision task // that resulted in the FailWorkflowExecution decision to fail this execution. // This information can be useful for diagnosing problems by tracing back the @@ -7843,6 +7167,12 @@ type WorkflowExecutionFailedEventAttributes struct { // The descriptive reason provided for the failure (if any). Reason *string `locationName:"reason" type:"string"` + + metadataWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionFailedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7857,10 +7187,14 @@ func (s WorkflowExecutionFailedEventAttributes) GoString() string { // Used to filter the workflow executions in visibility APIs by their workflowId. type WorkflowExecutionFilter struct { - _ struct{} `type:"structure"` - // The workflowId to pass of match the criteria of this filter. - WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"` + WorkflowId *string `locationName:"workflowId" type:"string" required:"true"` + + metadataWorkflowExecutionFilter `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7873,26 +7207,8 @@ func (s WorkflowExecutionFilter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *WorkflowExecutionFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "WorkflowExecutionFilter"} - if s.WorkflowId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkflowId")) - } - if s.WorkflowId != nil && len(*s.WorkflowId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains information about a workflow execution. type WorkflowExecutionInfo struct { - _ struct{} `type:"structure"` - // Set to true if a cancellation is requested for this workflow execution. CancelRequested *bool `locationName:"cancelRequested" type:"boolean"` @@ -7932,6 +7248,12 @@ type WorkflowExecutionInfo struct { // The type of the workflow execution. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataWorkflowExecutionInfo `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7946,8 +7268,6 @@ func (s WorkflowExecutionInfo) GoString() string { // Contains a paginated list of information about workflow executions. type WorkflowExecutionInfos struct { - _ struct{} `type:"structure"` - // The list of workflow information structures. ExecutionInfos []*WorkflowExecutionInfo `locationName:"executionInfos" type:"list" required:"true"` @@ -7958,6 +7278,12 @@ type WorkflowExecutionInfos struct { // The configured maximumPageSize determines how many results can be returned // in a single call. NextPageToken *string `locationName:"nextPageToken" type:"string"` + + metadataWorkflowExecutionInfos `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionInfos struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -7973,8 +7299,6 @@ func (s WorkflowExecutionInfos) GoString() string { // Contains the counts of open tasks, child workflow executions and timers for // a workflow execution. type WorkflowExecutionOpenCounts struct { - _ struct{} `type:"structure"` - // The count of activity tasks whose status is OPEN. OpenActivityTasks *int64 `locationName:"openActivityTasks" type:"integer" required:"true"` @@ -7991,6 +7315,12 @@ type WorkflowExecutionOpenCounts struct { // The count of timers started by this workflow execution that have not fired // yet. OpenTimers *int64 `locationName:"openTimers" type:"integer" required:"true"` + + metadataWorkflowExecutionOpenCounts `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionOpenCounts struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8005,8 +7335,6 @@ func (s WorkflowExecutionOpenCounts) GoString() string { // Provides details of the WorkflowExecutionSignaled event. type WorkflowExecutionSignaledEventAttributes struct { - _ struct{} `type:"structure"` - // The ID of the SignalExternalWorkflowExecutionInitiated event corresponding // to the SignalExternalWorkflow decision to signal this workflow execution.The // source event with this ID can be found in the history of the source workflow @@ -8025,7 +7353,13 @@ type WorkflowExecutionSignaledEventAttributes struct { // The name of the signal received. The decider can use the signal name and // inputs to determine how to the process the signal. - SignalName *string `locationName:"signalName" min:"1" type:"string" required:"true"` + SignalName *string `locationName:"signalName" type:"string" required:"true"` + + metadataWorkflowExecutionSignaledEventAttributes `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionSignaledEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8040,8 +7374,6 @@ func (s WorkflowExecutionSignaledEventAttributes) GoString() string { // Provides details of WorkflowExecutionStarted event. type WorkflowExecutionStartedEventAttributes struct { - _ struct{} `type:"structure"` - // The policy to use for the child workflow executions if this workflow execution // is terminated, by calling the TerminateWorkflowExecution action explicitly // or due to an expired timeout. @@ -8071,7 +7403,7 @@ type WorkflowExecutionStartedEventAttributes struct { // The IAM role attached to this workflow execution to use when invoking AWS // Lambda functions. - LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"` + LambdaRole *string `locationName:"lambdaRole" type:"string"` // The ID of the StartChildWorkflowExecutionInitiated event corresponding to // the StartChildWorkflowExecution decision to start this workflow execution. @@ -8102,6 +7434,12 @@ type WorkflowExecutionStartedEventAttributes struct { // The workflow type of this execution. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataWorkflowExecutionStartedEventAttributes `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionStartedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8116,8 +7454,6 @@ func (s WorkflowExecutionStartedEventAttributes) GoString() string { // Provides details of the WorkflowExecutionTerminated event. type WorkflowExecutionTerminatedEventAttributes struct { - _ struct{} `type:"structure"` - // If set, indicates that the workflow execution was automatically terminated, // and specifies the cause. This happens if the parent workflow execution times // out or is terminated and the child policy is set to terminate child executions. @@ -8139,6 +7475,12 @@ type WorkflowExecutionTerminatedEventAttributes struct { // The reason provided for the termination (if any). Reason *string `locationName:"reason" type:"string"` + + metadataWorkflowExecutionTerminatedEventAttributes `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionTerminatedEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8153,8 +7495,6 @@ func (s WorkflowExecutionTerminatedEventAttributes) GoString() string { // Provides details of the WorkflowExecutionTimedOut event. type WorkflowExecutionTimedOutEventAttributes struct { - _ struct{} `type:"structure"` - // The policy used for the child workflow executions of this workflow execution. // // The supported child policies are: @@ -8168,6 +7508,12 @@ type WorkflowExecutionTimedOutEventAttributes struct { // The type of timeout that caused this event. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"WorkflowExecutionTimeoutType"` + + metadataWorkflowExecutionTimedOutEventAttributes `json:"-" xml:"-"` +} + +type metadataWorkflowExecutionTimedOutEventAttributes struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8182,19 +7528,23 @@ func (s WorkflowExecutionTimedOutEventAttributes) GoString() string { // Represents a workflow type. type WorkflowType struct { - _ struct{} `type:"structure"` - // Required. The name of the workflow type. // // The combination of workflow type name and version must be unique with in // a domain. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // Required. The version of the workflow type. // // The combination of workflow type name and version must be unique with in // a domain. - Version *string `locationName:"version" min:"1" type:"string" required:"true"` + Version *string `locationName:"version" type:"string" required:"true"` + + metadataWorkflowType `json:"-" xml:"-"` +} + +type metadataWorkflowType struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8207,32 +7557,8 @@ func (s WorkflowType) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *WorkflowType) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "WorkflowType"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Version == nil { - invalidParams.Add(request.NewErrParamRequired("Version")) - } - if s.Version != nil && len(*s.Version) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Version", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // The configuration settings of a workflow type. type WorkflowTypeConfiguration struct { - _ struct{} `type:"structure"` - // Optional. The default policy to use for the child workflow executions when // a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution // action explicitly or due to an expired timeout. This default can be overridden @@ -8259,7 +7585,7 @@ type WorkflowTypeConfiguration struct { // The default IAM role to use when a workflow execution invokes a AWS Lambda // function. - DefaultLambdaRole *string `locationName:"defaultLambdaRole" min:"1" type:"string"` + DefaultLambdaRole *string `locationName:"defaultLambdaRole" type:"string"` // Optional. The default task list, specified when registering the workflow // type, for decisions tasks scheduled for workflow executions of this type. @@ -8291,6 +7617,12 @@ type WorkflowTypeConfiguration struct { // The duration is specified in seconds; an integer greater than or equal to // 0. The value "NONE" can be used to specify unlimited duration. DefaultTaskStartToCloseTimeout *string `locationName:"defaultTaskStartToCloseTimeout" type:"string"` + + metadataWorkflowTypeConfiguration `json:"-" xml:"-"` +} + +type metadataWorkflowTypeConfiguration struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8306,13 +7638,17 @@ func (s WorkflowTypeConfiguration) GoString() string { // Used to filter workflow execution query results by type. Each parameter, // if specified, defines a rule that must be satisfied by each returned result. type WorkflowTypeFilter struct { - _ struct{} `type:"structure"` - // Required. Name of the workflow type. - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" type:"string" required:"true"` // Version of the workflow type. Version *string `locationName:"version" type:"string"` + + metadataWorkflowTypeFilter `json:"-" xml:"-"` +} + +type metadataWorkflowTypeFilter struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -8325,26 +7661,8 @@ func (s WorkflowTypeFilter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *WorkflowTypeFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "WorkflowTypeFilter"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains information about a workflow type. type WorkflowTypeInfo struct { - _ struct{} `type:"structure"` - // The date when this type was registered. CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"` @@ -8360,6 +7678,12 @@ type WorkflowTypeInfo struct { // The workflow type this information is about. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"` + + metadataWorkflowTypeInfo `json:"-" xml:"-"` +} + +type metadataWorkflowTypeInfo struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go index 7c993fbaf..1f2ac7f08 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/examples_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/swf" ) @@ -16,7 +15,7 @@ var _ time.Duration var _ bytes.Buffer func ExampleSWF_CountClosedWorkflowExecutions() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.CountClosedWorkflowExecutionsInput{ Domain: aws.String("DomainName"), // Required @@ -56,7 +55,7 @@ func ExampleSWF_CountClosedWorkflowExecutions() { } func ExampleSWF_CountOpenWorkflowExecutions() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.CountOpenWorkflowExecutionsInput{ Domain: aws.String("DomainName"), // Required @@ -89,7 +88,7 @@ func ExampleSWF_CountOpenWorkflowExecutions() { } func ExampleSWF_CountPendingActivityTasks() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.CountPendingActivityTasksInput{ Domain: aws.String("DomainName"), // Required @@ -111,7 +110,7 @@ func ExampleSWF_CountPendingActivityTasks() { } func ExampleSWF_CountPendingDecisionTasks() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.CountPendingDecisionTasksInput{ Domain: aws.String("DomainName"), // Required @@ -133,7 +132,7 @@ func ExampleSWF_CountPendingDecisionTasks() { } func ExampleSWF_DeprecateActivityType() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.DeprecateActivityTypeInput{ ActivityType: &swf.ActivityType{ // Required @@ -156,7 +155,7 @@ func ExampleSWF_DeprecateActivityType() { } func ExampleSWF_DeprecateDomain() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.DeprecateDomainInput{ Name: aws.String("DomainName"), // Required @@ -175,7 +174,7 @@ func ExampleSWF_DeprecateDomain() { } func ExampleSWF_DeprecateWorkflowType() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.DeprecateWorkflowTypeInput{ Domain: aws.String("DomainName"), // Required @@ -198,7 +197,7 @@ func ExampleSWF_DeprecateWorkflowType() { } func ExampleSWF_DescribeActivityType() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.DescribeActivityTypeInput{ ActivityType: &swf.ActivityType{ // Required @@ -221,7 +220,7 @@ func ExampleSWF_DescribeActivityType() { } func ExampleSWF_DescribeDomain() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.DescribeDomainInput{ Name: aws.String("DomainName"), // Required @@ -240,7 +239,7 @@ func ExampleSWF_DescribeDomain() { } func ExampleSWF_DescribeWorkflowExecution() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.DescribeWorkflowExecutionInput{ Domain: aws.String("DomainName"), // Required @@ -263,7 +262,7 @@ func ExampleSWF_DescribeWorkflowExecution() { } func ExampleSWF_DescribeWorkflowType() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.DescribeWorkflowTypeInput{ Domain: aws.String("DomainName"), // Required @@ -286,7 +285,7 @@ func ExampleSWF_DescribeWorkflowType() { } func ExampleSWF_GetWorkflowExecutionHistory() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.GetWorkflowExecutionHistoryInput{ Domain: aws.String("DomainName"), // Required @@ -312,7 +311,7 @@ func ExampleSWF_GetWorkflowExecutionHistory() { } func ExampleSWF_ListActivityTypes() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.ListActivityTypesInput{ Domain: aws.String("DomainName"), // Required @@ -336,7 +335,7 @@ func ExampleSWF_ListActivityTypes() { } func ExampleSWF_ListClosedWorkflowExecutions() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.ListClosedWorkflowExecutionsInput{ Domain: aws.String("DomainName"), // Required @@ -379,7 +378,7 @@ func ExampleSWF_ListClosedWorkflowExecutions() { } func ExampleSWF_ListDomains() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.ListDomainsInput{ RegistrationStatus: aws.String("RegistrationStatus"), // Required @@ -401,7 +400,7 @@ func ExampleSWF_ListDomains() { } func ExampleSWF_ListOpenWorkflowExecutions() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.ListOpenWorkflowExecutionsInput{ Domain: aws.String("DomainName"), // Required @@ -437,7 +436,7 @@ func ExampleSWF_ListOpenWorkflowExecutions() { } func ExampleSWF_ListWorkflowTypes() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.ListWorkflowTypesInput{ Domain: aws.String("DomainName"), // Required @@ -461,7 +460,7 @@ func ExampleSWF_ListWorkflowTypes() { } func ExampleSWF_PollForActivityTask() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.PollForActivityTaskInput{ Domain: aws.String("DomainName"), // Required @@ -484,7 +483,7 @@ func ExampleSWF_PollForActivityTask() { } func ExampleSWF_PollForDecisionTask() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.PollForDecisionTaskInput{ Domain: aws.String("DomainName"), // Required @@ -510,7 +509,7 @@ func ExampleSWF_PollForDecisionTask() { } func ExampleSWF_RecordActivityTaskHeartbeat() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.RecordActivityTaskHeartbeatInput{ TaskToken: aws.String("TaskToken"), // Required @@ -530,7 +529,7 @@ func ExampleSWF_RecordActivityTaskHeartbeat() { } func ExampleSWF_RegisterActivityType() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.RegisterActivityTypeInput{ Domain: aws.String("DomainName"), // Required @@ -560,7 +559,7 @@ func ExampleSWF_RegisterActivityType() { } func ExampleSWF_RegisterDomain() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.RegisterDomainInput{ Name: aws.String("DomainName"), // Required @@ -581,7 +580,7 @@ func ExampleSWF_RegisterDomain() { } func ExampleSWF_RegisterWorkflowType() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.RegisterWorkflowTypeInput{ Domain: aws.String("DomainName"), // Required @@ -611,7 +610,7 @@ func ExampleSWF_RegisterWorkflowType() { } func ExampleSWF_RequestCancelWorkflowExecution() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.RequestCancelWorkflowExecutionInput{ Domain: aws.String("DomainName"), // Required @@ -632,7 +631,7 @@ func ExampleSWF_RequestCancelWorkflowExecution() { } func ExampleSWF_RespondActivityTaskCanceled() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.RespondActivityTaskCanceledInput{ TaskToken: aws.String("TaskToken"), // Required @@ -652,7 +651,7 @@ func ExampleSWF_RespondActivityTaskCanceled() { } func ExampleSWF_RespondActivityTaskCompleted() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.RespondActivityTaskCompletedInput{ TaskToken: aws.String("TaskToken"), // Required @@ -672,7 +671,7 @@ func ExampleSWF_RespondActivityTaskCompleted() { } func ExampleSWF_RespondActivityTaskFailed() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.RespondActivityTaskFailedInput{ TaskToken: aws.String("TaskToken"), // Required @@ -693,7 +692,7 @@ func ExampleSWF_RespondActivityTaskFailed() { } func ExampleSWF_RespondDecisionTaskCompleted() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.RespondDecisionTaskCompletedInput{ TaskToken: aws.String("TaskToken"), // Required @@ -816,7 +815,7 @@ func ExampleSWF_RespondDecisionTaskCompleted() { } func ExampleSWF_SignalWorkflowExecution() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.SignalWorkflowExecutionInput{ Domain: aws.String("DomainName"), // Required @@ -839,7 +838,7 @@ func ExampleSWF_SignalWorkflowExecution() { } func ExampleSWF_StartWorkflowExecution() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.StartWorkflowExecutionInput{ Domain: aws.String("DomainName"), // Required @@ -876,7 +875,7 @@ func ExampleSWF_StartWorkflowExecution() { } func ExampleSWF_TerminateWorkflowExecution() { - svc := swf.New(session.New()) + svc := swf.New(nil) params := &swf.TerminateWorkflowExecutionInput{ Domain: aws.String("DomainName"), // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/service.go b/vendor/github.com/aws/aws-sdk-go/service/swf/service.go index 438815546..6205870f5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/swf/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/service.go @@ -4,11 +4,12 @@ package swf import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build applications @@ -24,66 +25,42 @@ import ( // // This documentation serves as reference only. For a broader overview of the // Amazon SWF programming model, see the Amazon SWF Developer Guide (http://docs.aws.amazon.com/amazonswf/latest/developerguide/). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type SWF struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "swf" - -// New creates a new instance of the SWF client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a SWF client from just a session. -// svc := swf.New(mySession) -// -// // Create a SWF client with additional configuration -// svc := swf.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *SWF { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *SWF { - svc := &SWF{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2012-01-25", - JSONVersion: "1.0", - TargetPrefix: "SimpleWorkflowService", - }, - handlers, - ), +// New returns a new SWF client. +func New(config *aws.Config) *SWF { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "swf", + APIVersion: "2012-01-25", + JSONVersion: "1.0", + TargetPrefix: "SimpleWorkflowService", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &SWF{service} } // newRequest creates a new request for a SWF operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go index 5c3d51f2d..ec17347f9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface.go @@ -148,5 +148,3 @@ type SWFAPI interface { TerminateWorkflowExecution(*swf.TerminateWorkflowExecutionInput) (*swf.TerminateWorkflowExecutionOutput, error) } - -var _ SWFAPI = (*swf.SWF)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface_test.go new file mode 100644 index 000000000..f249959d8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package swfiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/swf" + "github.com/aws/aws-sdk-go/service/swf/swfiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*swfiface.SWFAPI)(nil), swf.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/api.go b/vendor/github.com/aws/aws-sdk-go/service/waf/api.go deleted file mode 100644 index 4f908e544..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/api.go +++ /dev/null @@ -1,5781 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package waf provides a client for AWS WAF. -package waf - -import ( - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" -) - -const opCreateByteMatchSet = "CreateByteMatchSet" - -// CreateByteMatchSetRequest generates a request for the CreateByteMatchSet operation. -func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *request.Request, output *CreateByteMatchSetOutput) { - op := &request.Operation{ - Name: opCreateByteMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateByteMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateByteMatchSetOutput{} - req.Data = output - return -} - -// Creates a ByteMatchSet. You then use UpdateByteMatchSet to identify the part -// of a web request that you want AWS WAF to inspect, such as the values of -// the User-Agent header or the query string. For example, you can create a -// ByteMatchSet that matches any requests with User-Agent headers that contain -// the string BadBot. You can then configure AWS WAF to reject those requests. -// -// To create and configure a ByteMatchSet, perform the following steps: -// -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of a CreateByteMatchSet request. Submit a CreateByteMatchSet request. -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of an UpdateByteMatchSet request. Submit an UpdateByteMatchSet -// request to specify the part of the request that you want AWS WAF to inspect -// (for example, the header or the URI) and the value that you want AWS WAF -// to watch for. For more information about how to use the AWS WAF API to allow -// or block HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) CreateByteMatchSet(input *CreateByteMatchSetInput) (*CreateByteMatchSetOutput, error) { - req, out := c.CreateByteMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opCreateIPSet = "CreateIPSet" - -// CreateIPSetRequest generates a request for the CreateIPSet operation. -func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, output *CreateIPSetOutput) { - op := &request.Operation{ - Name: opCreateIPSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateIPSetInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateIPSetOutput{} - req.Data = output - return -} - -// Creates an IPSet, which you use to specify which web requests you want to -// allow or block based on the IP addresses that the requests originate from. -// For example, if you're receiving a lot of requests from one or more individual -// IP addresses or one or more ranges of IP addresses and you want to block -// the requests, you can create an IPSet that contains those IP addresses and -// then configure AWS WAF to block the requests. -// -// To create and configure an IPSet, perform the following steps: -// -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of a CreateIPSet request. Submit a CreateIPSet request. Use GetChangeToken -// to get the change token that you provide in the ChangeToken parameter of -// an UpdateIPSet request. Submit an UpdateIPSet request to specify the IP addresses -// that you want AWS WAF to watch for. For more information about how to use -// the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer -// Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) CreateIPSet(input *CreateIPSetInput) (*CreateIPSetOutput, error) { - req, out := c.CreateIPSetRequest(input) - err := req.Send() - return out, err -} - -const opCreateRule = "CreateRule" - -// CreateRuleRequest generates a request for the CreateRule operation. -func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, output *CreateRuleOutput) { - op := &request.Operation{ - Name: opCreateRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateRuleOutput{} - req.Data = output - return -} - -// Creates a Rule, which contains the IPSet objects, ByteMatchSet objects, and -// other predicates that identify the requests that you want to block. If you -// add more than one predicate to a Rule, a request must match all of the specifications -// to be allowed or blocked. For example, suppose you add the following to a -// Rule: -// -// An IPSet that matches the IP address 192.0.2.44/32 A ByteMatchSet that -// matches BadBot in the User-Agent header You then add the Rule to a WebACL -// and specify that you want to blocks requests that satisfy the Rule. For a -// request to be blocked, it must come from the IP address 192.0.2.44 and the -// User-Agent header in the request must contain the value BadBot. -// -// To create and configure a Rule, perform the following steps: -// -// Create and update the predicates that you want to include in the Rule. -// For more information, see CreateByteMatchSet, CreateIPSet, and CreateSqlInjectionMatchSet. -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of a CreateRule request. Submit a CreateRule request. Use GetChangeToken -// to get the change token that you provide in the ChangeToken parameter of -// an UpdateRule request. Submit an UpdateRule request to specify the predicates -// that you want to include in the Rule. Create and update a WebACL that contains -// the Rule. For more information, see CreateWebACL. For more information about -// how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF -// Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) { - req, out := c.CreateRuleRequest(input) - err := req.Send() - return out, err -} - -const opCreateSizeConstraintSet = "CreateSizeConstraintSet" - -// CreateSizeConstraintSetRequest generates a request for the CreateSizeConstraintSet operation. -func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput) (req *request.Request, output *CreateSizeConstraintSetOutput) { - op := &request.Operation{ - Name: opCreateSizeConstraintSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateSizeConstraintSetInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateSizeConstraintSetOutput{} - req.Data = output - return -} - -// Creates a SizeConstraintSet. You then use UpdateSizeConstraintSet to identify -// the part of a web request that you want AWS WAF to check for length, such -// as the length of the User-Agent header or the length of the query string. -// For example, you can create a SizeConstraintSet that matches any requests -// that have a query string that is longer than 100 bytes. You can then configure -// AWS WAF to reject those requests. -// -// To create and configure a SizeConstraintSet, perform the following steps: -// -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of a CreateSizeConstraintSet request. Submit a CreateSizeConstraintSet -// request. Use GetChangeToken to get the change token that you provide in the -// ChangeToken parameter of an UpdateSizeConstraintSet request. Submit an UpdateSizeConstraintSet -// request to specify the part of the request that you want AWS WAF to inspect -// (for example, the header or the URI) and the value that you want AWS WAF -// to watch for. For more information about how to use the AWS WAF API to allow -// or block HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) CreateSizeConstraintSet(input *CreateSizeConstraintSetInput) (*CreateSizeConstraintSetOutput, error) { - req, out := c.CreateSizeConstraintSetRequest(input) - err := req.Send() - return out, err -} - -const opCreateSqlInjectionMatchSet = "CreateSqlInjectionMatchSet" - -// CreateSqlInjectionMatchSetRequest generates a request for the CreateSqlInjectionMatchSet operation. -func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSetInput) (req *request.Request, output *CreateSqlInjectionMatchSetOutput) { - op := &request.Operation{ - Name: opCreateSqlInjectionMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateSqlInjectionMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateSqlInjectionMatchSetOutput{} - req.Data = output - return -} - -// Creates a SqlInjectionMatchSet, which you use to allow, block, or count requests -// that contain snippets of SQL code in a specified part of web requests. AWS -// WAF searches for character sequences that are likely to be malicious strings. -// -// To create and configure a SqlInjectionMatchSet, perform the following steps: -// -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of a CreateSqlInjectionMatchSet request. Submit a CreateSqlInjectionMatchSet -// request. Use GetChangeToken to get the change token that you provide in the -// ChangeToken parameter of an UpdateSqlInjectionMatchSet request. Submit an -// UpdateSqlInjectionMatchSet request to specify the parts of web requests in -// which you want to allow, block, or count malicious SQL code. For more information -// about how to use the AWS WAF API to allow or block HTTP requests, see the -// AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) CreateSqlInjectionMatchSet(input *CreateSqlInjectionMatchSetInput) (*CreateSqlInjectionMatchSetOutput, error) { - req, out := c.CreateSqlInjectionMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opCreateWebACL = "CreateWebACL" - -// CreateWebACLRequest generates a request for the CreateWebACL operation. -func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Request, output *CreateWebACLOutput) { - op := &request.Operation{ - Name: opCreateWebACL, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateWebACLInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateWebACLOutput{} - req.Data = output - return -} - -// Creates a WebACL, which contains the Rules that identify the CloudFront web -// requests that you want to allow, block, or count. AWS WAF evaluates Rules -// in order based on the value of Priority for each Rule. -// -// You also specify a default action, either ALLOW or BLOCK. If a web request -// doesn't match any of the Rules in a WebACL, AWS WAF responds to the request -// with the default action. -// -// To create and configure a WebACL, perform the following steps: -// -// Create and update the ByteMatchSet objects and other predicates that you -// want to include in Rules. For more information, see CreateByteMatchSet, UpdateByteMatchSet, -// CreateIPSet, UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet. -// Create and update the Rules that you want to include in the WebACL. For more -// information, see CreateRule and UpdateRule. Use GetChangeToken to get the -// change token that you provide in the ChangeToken parameter of a CreateWebACL -// request. Submit a CreateWebACL request. Use GetChangeToken to get the change -// token that you provide in the ChangeToken parameter of an UpdateWebACL request. -// Submit an UpdateWebACL request to specify the Rules that you want to include -// in the WebACL, to specify the default action, and to associate the WebACL -// with a CloudFront distribution. For more information about how to use the -// AWS WAF API, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) CreateWebACL(input *CreateWebACLInput) (*CreateWebACLOutput, error) { - req, out := c.CreateWebACLRequest(input) - err := req.Send() - return out, err -} - -const opCreateXssMatchSet = "CreateXssMatchSet" - -// CreateXssMatchSetRequest generates a request for the CreateXssMatchSet operation. -func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *request.Request, output *CreateXssMatchSetOutput) { - op := &request.Operation{ - Name: opCreateXssMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateXssMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateXssMatchSetOutput{} - req.Data = output - return -} - -// Creates an XssMatchSet, which you use to allow, block, or count requests -// that contain cross-site scripting attacks in the specified part of web requests. -// AWS WAF searches for character sequences that are likely to be malicious -// strings. -// -// To create and configure an XssMatchSet, perform the following steps: -// -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of a CreateXssMatchSet request. Submit a CreateXssMatchSet request. -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of an UpdateXssMatchSet request. Submit an UpdateXssMatchSet request -// to specify the parts of web requests in which you want to allow, block, or -// count cross-site scripting attacks. For more information about how to use -// the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer -// Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) CreateXssMatchSet(input *CreateXssMatchSetInput) (*CreateXssMatchSetOutput, error) { - req, out := c.CreateXssMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opDeleteByteMatchSet = "DeleteByteMatchSet" - -// DeleteByteMatchSetRequest generates a request for the DeleteByteMatchSet operation. -func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *request.Request, output *DeleteByteMatchSetOutput) { - op := &request.Operation{ - Name: opDeleteByteMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteByteMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteByteMatchSetOutput{} - req.Data = output - return -} - -// Permanently deletes a ByteMatchSet. You can't delete a ByteMatchSet if it's -// still used in any Rules or if it still includes any ByteMatchTuple objects -// (any filters). -// -// If you just want to remove a ByteMatchSet from a Rule, use UpdateRule. -// -// To permanently delete a ByteMatchSet, perform the following steps: -// -// Update the ByteMatchSet to remove filters, if any. For more information, -// see UpdateByteMatchSet. Use GetChangeToken to get the change token that you -// provide in the ChangeToken parameter of a DeleteByteMatchSet request. Submit -// a DeleteByteMatchSet request. -func (c *WAF) DeleteByteMatchSet(input *DeleteByteMatchSetInput) (*DeleteByteMatchSetOutput, error) { - req, out := c.DeleteByteMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opDeleteIPSet = "DeleteIPSet" - -// DeleteIPSetRequest generates a request for the DeleteIPSet operation. -func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, output *DeleteIPSetOutput) { - op := &request.Operation{ - Name: opDeleteIPSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteIPSetInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteIPSetOutput{} - req.Data = output - return -} - -// Permanently deletes an IPSet. You can't delete an IPSet if it's still used -// in any Rules or if it still includes any IP addresses. -// -// If you just want to remove an IPSet from a Rule, use UpdateRule. -// -// To permanently delete an IPSet from AWS WAF, perform the following steps: -// -// Update the IPSet to remove IP address ranges, if any. For more information, -// see UpdateIPSet. Use GetChangeToken to get the change token that you provide -// in the ChangeToken parameter of a DeleteIPSet request. Submit a DeleteIPSet -// request. -func (c *WAF) DeleteIPSet(input *DeleteIPSetInput) (*DeleteIPSetOutput, error) { - req, out := c.DeleteIPSetRequest(input) - err := req.Send() - return out, err -} - -const opDeleteRule = "DeleteRule" - -// DeleteRuleRequest generates a request for the DeleteRule operation. -func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) { - op := &request.Operation{ - Name: opDeleteRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteRuleOutput{} - req.Data = output - return -} - -// Permanently deletes a Rule. You can't delete a Rule if it's still used in -// any WebACL objects or if it still includes any predicates, such as ByteMatchSet -// objects. -// -// If you just want to remove a Rule from a WebACL, use UpdateWebACL. -// -// To permanently delete a Rule from AWS WAF, perform the following steps: -// -// Update the Rule to remove predicates, if any. For more information, see -// UpdateRule. Use GetChangeToken to get the change token that you provide in -// the ChangeToken parameter of a DeleteRule request. Submit a DeleteRule request. -func (c *WAF) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { - req, out := c.DeleteRuleRequest(input) - err := req.Send() - return out, err -} - -const opDeleteSizeConstraintSet = "DeleteSizeConstraintSet" - -// DeleteSizeConstraintSetRequest generates a request for the DeleteSizeConstraintSet operation. -func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput) (req *request.Request, output *DeleteSizeConstraintSetOutput) { - op := &request.Operation{ - Name: opDeleteSizeConstraintSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteSizeConstraintSetInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteSizeConstraintSetOutput{} - req.Data = output - return -} - -// Permanently deletes a SizeConstraintSet. You can't delete a SizeConstraintSet -// if it's still used in any Rules or if it still includes any SizeConstraint -// objects (any filters). -// -// If you just want to remove a SizeConstraintSet from a Rule, use UpdateRule. -// -// To permanently delete a SizeConstraintSet, perform the following steps: -// -// Update the SizeConstraintSet to remove filters, if any. For more information, -// see UpdateSizeConstraintSet. Use GetChangeToken to get the change token that -// you provide in the ChangeToken parameter of a DeleteSizeConstraintSet request. -// Submit a DeleteSizeConstraintSet request. -func (c *WAF) DeleteSizeConstraintSet(input *DeleteSizeConstraintSetInput) (*DeleteSizeConstraintSetOutput, error) { - req, out := c.DeleteSizeConstraintSetRequest(input) - err := req.Send() - return out, err -} - -const opDeleteSqlInjectionMatchSet = "DeleteSqlInjectionMatchSet" - -// DeleteSqlInjectionMatchSetRequest generates a request for the DeleteSqlInjectionMatchSet operation. -func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSetInput) (req *request.Request, output *DeleteSqlInjectionMatchSetOutput) { - op := &request.Operation{ - Name: opDeleteSqlInjectionMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteSqlInjectionMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteSqlInjectionMatchSetOutput{} - req.Data = output - return -} - -// Permanently deletes a SqlInjectionMatchSet. You can't delete a SqlInjectionMatchSet -// if it's still used in any Rules or if it still contains any SqlInjectionMatchTuple -// objects. -// -// If you just want to remove a SqlInjectionMatchSet from a Rule, use UpdateRule. -// -// To permanently delete a SqlInjectionMatchSet from AWS WAF, perform the following -// steps: -// -// Update the SqlInjectionMatchSet to remove filters, if any. For more information, -// see UpdateSqlInjectionMatchSet. Use GetChangeToken to get the change token -// that you provide in the ChangeToken parameter of a DeleteSqlInjectionMatchSet -// request. Submit a DeleteSqlInjectionMatchSet request. -func (c *WAF) DeleteSqlInjectionMatchSet(input *DeleteSqlInjectionMatchSetInput) (*DeleteSqlInjectionMatchSetOutput, error) { - req, out := c.DeleteSqlInjectionMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opDeleteWebACL = "DeleteWebACL" - -// DeleteWebACLRequest generates a request for the DeleteWebACL operation. -func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Request, output *DeleteWebACLOutput) { - op := &request.Operation{ - Name: opDeleteWebACL, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteWebACLInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteWebACLOutput{} - req.Data = output - return -} - -// Permanently deletes a WebACL. You can't delete a WebACL if it still contains -// any Rules. -// -// To delete a WebACL, perform the following steps: -// -// Update the WebACL to remove Rules, if any. For more information, see UpdateWebACL. -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of a DeleteWebACL request. Submit a DeleteWebACL request. -func (c *WAF) DeleteWebACL(input *DeleteWebACLInput) (*DeleteWebACLOutput, error) { - req, out := c.DeleteWebACLRequest(input) - err := req.Send() - return out, err -} - -const opDeleteXssMatchSet = "DeleteXssMatchSet" - -// DeleteXssMatchSetRequest generates a request for the DeleteXssMatchSet operation. -func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *request.Request, output *DeleteXssMatchSetOutput) { - op := &request.Operation{ - Name: opDeleteXssMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteXssMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteXssMatchSetOutput{} - req.Data = output - return -} - -// Permanently deletes an XssMatchSet. You can't delete an XssMatchSet if it's -// still used in any Rules or if it still contains any XssMatchTuple objects. -// -// If you just want to remove an XssMatchSet from a Rule, use UpdateRule. -// -// To permanently delete an XssMatchSet from AWS WAF, perform the following -// steps: -// -// Update the XssMatchSet to remove filters, if any. For more information, -// see UpdateXssMatchSet. Use GetChangeToken to get the change token that you -// provide in the ChangeToken parameter of a DeleteXssMatchSet request. Submit -// a DeleteXssMatchSet request. -func (c *WAF) DeleteXssMatchSet(input *DeleteXssMatchSetInput) (*DeleteXssMatchSetOutput, error) { - req, out := c.DeleteXssMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opGetByteMatchSet = "GetByteMatchSet" - -// GetByteMatchSetRequest generates a request for the GetByteMatchSet operation. -func (c *WAF) GetByteMatchSetRequest(input *GetByteMatchSetInput) (req *request.Request, output *GetByteMatchSetOutput) { - op := &request.Operation{ - Name: opGetByteMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetByteMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &GetByteMatchSetOutput{} - req.Data = output - return -} - -// Returns the ByteMatchSet specified by ByteMatchSetId. -func (c *WAF) GetByteMatchSet(input *GetByteMatchSetInput) (*GetByteMatchSetOutput, error) { - req, out := c.GetByteMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opGetChangeToken = "GetChangeToken" - -// GetChangeTokenRequest generates a request for the GetChangeToken operation. -func (c *WAF) GetChangeTokenRequest(input *GetChangeTokenInput) (req *request.Request, output *GetChangeTokenOutput) { - op := &request.Operation{ - Name: opGetChangeToken, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetChangeTokenInput{} - } - - req = c.newRequest(op, input, output) - output = &GetChangeTokenOutput{} - req.Data = output - return -} - -// When you want to create, update, or delete AWS WAF objects, get a change -// token and include the change token in the create, update, or delete request. -// Change tokens ensure that your application doesn't submit conflicting requests -// to AWS WAF. -// -// Each create, update, or delete request must use a unique change token. If -// your application submits a GetChangeToken request and then submits a second -// GetChangeToken request before submitting a create, update, or delete request, -// the second GetChangeToken request returns the same value as the first GetChangeToken -// request. -// -// When you use a change token in a create, update, or delete request, the -// status of the change token changes to PENDING, which indicates that AWS WAF -// is propagating the change to all AWS WAF servers. Use GetChangeTokenStatus -// to determine the status of your change token. -func (c *WAF) GetChangeToken(input *GetChangeTokenInput) (*GetChangeTokenOutput, error) { - req, out := c.GetChangeTokenRequest(input) - err := req.Send() - return out, err -} - -const opGetChangeTokenStatus = "GetChangeTokenStatus" - -// GetChangeTokenStatusRequest generates a request for the GetChangeTokenStatus operation. -func (c *WAF) GetChangeTokenStatusRequest(input *GetChangeTokenStatusInput) (req *request.Request, output *GetChangeTokenStatusOutput) { - op := &request.Operation{ - Name: opGetChangeTokenStatus, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetChangeTokenStatusInput{} - } - - req = c.newRequest(op, input, output) - output = &GetChangeTokenStatusOutput{} - req.Data = output - return -} - -// Returns the status of a ChangeToken that you got by calling GetChangeToken. -// ChangeTokenStatus is one of the following values: -// -// PROVISIONED: You requested the change token by calling GetChangeToken, -// but you haven't used it yet in a call to create, update, or delete an AWS -// WAF object. PENDING: AWS WAF is propagating the create, update, or delete -// request to all AWS WAF servers. IN_SYNC: Propagation is complete. -func (c *WAF) GetChangeTokenStatus(input *GetChangeTokenStatusInput) (*GetChangeTokenStatusOutput, error) { - req, out := c.GetChangeTokenStatusRequest(input) - err := req.Send() - return out, err -} - -const opGetIPSet = "GetIPSet" - -// GetIPSetRequest generates a request for the GetIPSet operation. -func (c *WAF) GetIPSetRequest(input *GetIPSetInput) (req *request.Request, output *GetIPSetOutput) { - op := &request.Operation{ - Name: opGetIPSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetIPSetInput{} - } - - req = c.newRequest(op, input, output) - output = &GetIPSetOutput{} - req.Data = output - return -} - -// Returns the IPSet that is specified by IPSetId. -func (c *WAF) GetIPSet(input *GetIPSetInput) (*GetIPSetOutput, error) { - req, out := c.GetIPSetRequest(input) - err := req.Send() - return out, err -} - -const opGetRule = "GetRule" - -// GetRuleRequest generates a request for the GetRule operation. -func (c *WAF) GetRuleRequest(input *GetRuleInput) (req *request.Request, output *GetRuleOutput) { - op := &request.Operation{ - Name: opGetRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &GetRuleOutput{} - req.Data = output - return -} - -// Returns the Rule that is specified by the RuleId that you included in the -// GetRule request. -func (c *WAF) GetRule(input *GetRuleInput) (*GetRuleOutput, error) { - req, out := c.GetRuleRequest(input) - err := req.Send() - return out, err -} - -const opGetSampledRequests = "GetSampledRequests" - -// GetSampledRequestsRequest generates a request for the GetSampledRequests operation. -func (c *WAF) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req *request.Request, output *GetSampledRequestsOutput) { - op := &request.Operation{ - Name: opGetSampledRequests, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetSampledRequestsInput{} - } - - req = c.newRequest(op, input, output) - output = &GetSampledRequestsOutput{} - req.Data = output - return -} - -// Gets detailed information about a specified number of requests--a sample--that -// AWS WAF randomly selects from among the first 5,000 requests that your AWS -// resource received during a time range that you choose. You can specify a -// sample size of up to 100 requests, and you can specify any time range in -// the previous three hours. -// -// GetSampledRequests returns a time range, which is usually the time range -// that you specified. However, if your resource (such as a CloudFront distribution) -// received 5,000 requests before the specified time range elapsed, GetSampledRequests -// returns an updated time range. This new time range indicates the actual period -// during which AWS WAF selected the requests in the sample. -func (c *WAF) GetSampledRequests(input *GetSampledRequestsInput) (*GetSampledRequestsOutput, error) { - req, out := c.GetSampledRequestsRequest(input) - err := req.Send() - return out, err -} - -const opGetSizeConstraintSet = "GetSizeConstraintSet" - -// GetSizeConstraintSetRequest generates a request for the GetSizeConstraintSet operation. -func (c *WAF) GetSizeConstraintSetRequest(input *GetSizeConstraintSetInput) (req *request.Request, output *GetSizeConstraintSetOutput) { - op := &request.Operation{ - Name: opGetSizeConstraintSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetSizeConstraintSetInput{} - } - - req = c.newRequest(op, input, output) - output = &GetSizeConstraintSetOutput{} - req.Data = output - return -} - -// Returns the SizeConstraintSet specified by SizeConstraintSetId. -func (c *WAF) GetSizeConstraintSet(input *GetSizeConstraintSetInput) (*GetSizeConstraintSetOutput, error) { - req, out := c.GetSizeConstraintSetRequest(input) - err := req.Send() - return out, err -} - -const opGetSqlInjectionMatchSet = "GetSqlInjectionMatchSet" - -// GetSqlInjectionMatchSetRequest generates a request for the GetSqlInjectionMatchSet operation. -func (c *WAF) GetSqlInjectionMatchSetRequest(input *GetSqlInjectionMatchSetInput) (req *request.Request, output *GetSqlInjectionMatchSetOutput) { - op := &request.Operation{ - Name: opGetSqlInjectionMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetSqlInjectionMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &GetSqlInjectionMatchSetOutput{} - req.Data = output - return -} - -// Returns the SqlInjectionMatchSet that is specified by SqlInjectionMatchSetId. -func (c *WAF) GetSqlInjectionMatchSet(input *GetSqlInjectionMatchSetInput) (*GetSqlInjectionMatchSetOutput, error) { - req, out := c.GetSqlInjectionMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opGetWebACL = "GetWebACL" - -// GetWebACLRequest generates a request for the GetWebACL operation. -func (c *WAF) GetWebACLRequest(input *GetWebACLInput) (req *request.Request, output *GetWebACLOutput) { - op := &request.Operation{ - Name: opGetWebACL, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetWebACLInput{} - } - - req = c.newRequest(op, input, output) - output = &GetWebACLOutput{} - req.Data = output - return -} - -// Returns the WebACL that is specified by WebACLId. -func (c *WAF) GetWebACL(input *GetWebACLInput) (*GetWebACLOutput, error) { - req, out := c.GetWebACLRequest(input) - err := req.Send() - return out, err -} - -const opGetXssMatchSet = "GetXssMatchSet" - -// GetXssMatchSetRequest generates a request for the GetXssMatchSet operation. -func (c *WAF) GetXssMatchSetRequest(input *GetXssMatchSetInput) (req *request.Request, output *GetXssMatchSetOutput) { - op := &request.Operation{ - Name: opGetXssMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetXssMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &GetXssMatchSetOutput{} - req.Data = output - return -} - -// Returns the XssMatchSet that is specified by XssMatchSetId. -func (c *WAF) GetXssMatchSet(input *GetXssMatchSetInput) (*GetXssMatchSetOutput, error) { - req, out := c.GetXssMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opListByteMatchSets = "ListByteMatchSets" - -// ListByteMatchSetsRequest generates a request for the ListByteMatchSets operation. -func (c *WAF) ListByteMatchSetsRequest(input *ListByteMatchSetsInput) (req *request.Request, output *ListByteMatchSetsOutput) { - op := &request.Operation{ - Name: opListByteMatchSets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListByteMatchSetsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListByteMatchSetsOutput{} - req.Data = output - return -} - -// Returns an array of ByteMatchSetSummary objects. -func (c *WAF) ListByteMatchSets(input *ListByteMatchSetsInput) (*ListByteMatchSetsOutput, error) { - req, out := c.ListByteMatchSetsRequest(input) - err := req.Send() - return out, err -} - -const opListIPSets = "ListIPSets" - -// ListIPSetsRequest generates a request for the ListIPSets operation. -func (c *WAF) ListIPSetsRequest(input *ListIPSetsInput) (req *request.Request, output *ListIPSetsOutput) { - op := &request.Operation{ - Name: opListIPSets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListIPSetsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListIPSetsOutput{} - req.Data = output - return -} - -// Returns an array of IPSetSummary objects in the response. -func (c *WAF) ListIPSets(input *ListIPSetsInput) (*ListIPSetsOutput, error) { - req, out := c.ListIPSetsRequest(input) - err := req.Send() - return out, err -} - -const opListRules = "ListRules" - -// ListRulesRequest generates a request for the ListRules operation. -func (c *WAF) ListRulesRequest(input *ListRulesInput) (req *request.Request, output *ListRulesOutput) { - op := &request.Operation{ - Name: opListRules, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListRulesInput{} - } - - req = c.newRequest(op, input, output) - output = &ListRulesOutput{} - req.Data = output - return -} - -// Returns an array of RuleSummary objects. -func (c *WAF) ListRules(input *ListRulesInput) (*ListRulesOutput, error) { - req, out := c.ListRulesRequest(input) - err := req.Send() - return out, err -} - -const opListSizeConstraintSets = "ListSizeConstraintSets" - -// ListSizeConstraintSetsRequest generates a request for the ListSizeConstraintSets operation. -func (c *WAF) ListSizeConstraintSetsRequest(input *ListSizeConstraintSetsInput) (req *request.Request, output *ListSizeConstraintSetsOutput) { - op := &request.Operation{ - Name: opListSizeConstraintSets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListSizeConstraintSetsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListSizeConstraintSetsOutput{} - req.Data = output - return -} - -// Returns an array of SizeConstraintSetSummary objects. -func (c *WAF) ListSizeConstraintSets(input *ListSizeConstraintSetsInput) (*ListSizeConstraintSetsOutput, error) { - req, out := c.ListSizeConstraintSetsRequest(input) - err := req.Send() - return out, err -} - -const opListSqlInjectionMatchSets = "ListSqlInjectionMatchSets" - -// ListSqlInjectionMatchSetsRequest generates a request for the ListSqlInjectionMatchSets operation. -func (c *WAF) ListSqlInjectionMatchSetsRequest(input *ListSqlInjectionMatchSetsInput) (req *request.Request, output *ListSqlInjectionMatchSetsOutput) { - op := &request.Operation{ - Name: opListSqlInjectionMatchSets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListSqlInjectionMatchSetsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListSqlInjectionMatchSetsOutput{} - req.Data = output - return -} - -// Returns an array of SqlInjectionMatchSet objects. -func (c *WAF) ListSqlInjectionMatchSets(input *ListSqlInjectionMatchSetsInput) (*ListSqlInjectionMatchSetsOutput, error) { - req, out := c.ListSqlInjectionMatchSetsRequest(input) - err := req.Send() - return out, err -} - -const opListWebACLs = "ListWebACLs" - -// ListWebACLsRequest generates a request for the ListWebACLs operation. -func (c *WAF) ListWebACLsRequest(input *ListWebACLsInput) (req *request.Request, output *ListWebACLsOutput) { - op := &request.Operation{ - Name: opListWebACLs, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListWebACLsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListWebACLsOutput{} - req.Data = output - return -} - -// Returns an array of WebACLSummary objects in the response. -func (c *WAF) ListWebACLs(input *ListWebACLsInput) (*ListWebACLsOutput, error) { - req, out := c.ListWebACLsRequest(input) - err := req.Send() - return out, err -} - -const opListXssMatchSets = "ListXssMatchSets" - -// ListXssMatchSetsRequest generates a request for the ListXssMatchSets operation. -func (c *WAF) ListXssMatchSetsRequest(input *ListXssMatchSetsInput) (req *request.Request, output *ListXssMatchSetsOutput) { - op := &request.Operation{ - Name: opListXssMatchSets, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListXssMatchSetsInput{} - } - - req = c.newRequest(op, input, output) - output = &ListXssMatchSetsOutput{} - req.Data = output - return -} - -// Returns an array of XssMatchSet objects. -func (c *WAF) ListXssMatchSets(input *ListXssMatchSetsInput) (*ListXssMatchSetsOutput, error) { - req, out := c.ListXssMatchSetsRequest(input) - err := req.Send() - return out, err -} - -const opUpdateByteMatchSet = "UpdateByteMatchSet" - -// UpdateByteMatchSetRequest generates a request for the UpdateByteMatchSet operation. -func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *request.Request, output *UpdateByteMatchSetOutput) { - op := &request.Operation{ - Name: opUpdateByteMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateByteMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateByteMatchSetOutput{} - req.Data = output - return -} - -// Inserts or deletes ByteMatchTuple objects (filters) in a ByteMatchSet. For -// each ByteMatchTuple object, you specify the following values: -// -// Whether to insert or delete the object from the array. If you want to change -// a ByteMatchSetUpdate object, you delete the existing object and add a new -// one. The part of a web request that you want AWS WAF to inspect, such as -// a query string or the value of the User-Agent header. The bytes (typically -// a string that corresponds with ASCII characters) that you want AWS WAF to -// look for. For more information, including how you specify the values for -// the AWS WAF API and the AWS CLI or SDKs, see TargetString in the ByteMatchTuple -// data type. Where to look, such as at the beginning or the end of a query -// string. Whether to perform any conversions on the request, such as converting -// it to lowercase, before inspecting it for the specified string. For example, -// you can add a ByteMatchSetUpdate object that matches web requests in which -// User-Agent headers contain the string BadBot. You can then configure AWS -// WAF to block those requests. -// -// To create and configure a ByteMatchSet, perform the following steps: -// -// Create a ByteMatchSet. For more information, see CreateByteMatchSet. Use -// GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of an UpdateByteMatchSet request. Submit an UpdateByteMatchSet -// request to specify the part of the request that you want AWS WAF to inspect -// (for example, the header or the URI) and the value that you want AWS WAF -// to watch for. For more information about how to use the AWS WAF API to allow -// or block HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) UpdateByteMatchSet(input *UpdateByteMatchSetInput) (*UpdateByteMatchSetOutput, error) { - req, out := c.UpdateByteMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opUpdateIPSet = "UpdateIPSet" - -// UpdateIPSetRequest generates a request for the UpdateIPSet operation. -func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, output *UpdateIPSetOutput) { - op := &request.Operation{ - Name: opUpdateIPSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateIPSetInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateIPSetOutput{} - req.Data = output - return -} - -// Inserts or deletes IPSetDescriptor objects in an IPSet. For each IPSetDescriptor -// object, you specify the following values: -// -// Whether to insert or delete the object from the array. If you want to change -// an IPSetDescriptor object, you delete the existing object and add a new one. -// The IP address version, IPv4. The IP address in CIDR notation, for example, -// 192.0.2.0/24 (for the range of IP addresses from 192.0.2.0 to 192.0.2.255) -// or 192.0.2.44/32 (for the individual IP address 192.0.2.44). AWS WAF supports -// /8, /16, /24, and /32 IP address ranges. For more information about CIDR -// notation, see the Wikipedia entry Classless Inter-Domain Routing (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). -// -// You use an IPSet to specify which web requests you want to allow or block -// based on the IP addresses that the requests originated from. For example, -// if you're receiving a lot of requests from one or a small number of IP addresses -// and you want to block the requests, you can create an IPSet that specifies -// those IP addresses, and then configure AWS WAF to block the requests. -// -// To create and configure an IPSet, perform the following steps: -// -// Submit a CreateIPSet request. Use GetChangeToken to get the change token -// that you provide in the ChangeToken parameter of an UpdateIPSet request. -// Submit an UpdateIPSet request to specify the IP addresses that you want AWS -// WAF to watch for. When you update an IPSet, you specify the IP addresses -// that you want to add and/or the IP addresses that you want to delete. If -// you want to change an IP address, you delete the existing IP address and -// add the new one. -// -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) UpdateIPSet(input *UpdateIPSetInput) (*UpdateIPSetOutput, error) { - req, out := c.UpdateIPSetRequest(input) - err := req.Send() - return out, err -} - -const opUpdateRule = "UpdateRule" - -// UpdateRuleRequest generates a request for the UpdateRule operation. -func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, output *UpdateRuleOutput) { - op := &request.Operation{ - Name: opUpdateRule, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateRuleInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateRuleOutput{} - req.Data = output - return -} - -// Inserts or deletes Predicate objects in a Rule. Each Predicate object identifies -// a predicate, such as a ByteMatchSet or an IPSet, that specifies the web requests -// that you want to allow, block, or count. If you add more than one predicate -// to a Rule, a request must match all of the specifications to be allowed, -// blocked, or counted. For example, suppose you add the following to a Rule: -// -// A ByteMatchSet that matches the value BadBot in the User-Agent header An -// IPSet that matches the IP address 192.0.2.44 You then add the Rule to a -// WebACL and specify that you want to block requests that satisfy the Rule. -// For a request to be blocked, the User-Agent header in the request must contain -// the value BadBot and the request must originate from the IP address 192.0.2.44. -// -// To create and configure a Rule, perform the following steps: -// -// Create and update the predicates that you want to include in the Rule. -// Create the Rule. See CreateRule. Use GetChangeToken to get the change token -// that you provide in the ChangeToken parameter of an UpdateRule request. Submit -// an UpdateRule request to add predicates to the Rule. Create and update a -// WebACL that contains the Rule. See CreateWebACL. If you want to replace -// one ByteMatchSet or IPSet with another, you delete the existing one and add -// the new one. -// -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) UpdateRule(input *UpdateRuleInput) (*UpdateRuleOutput, error) { - req, out := c.UpdateRuleRequest(input) - err := req.Send() - return out, err -} - -const opUpdateSizeConstraintSet = "UpdateSizeConstraintSet" - -// UpdateSizeConstraintSetRequest generates a request for the UpdateSizeConstraintSet operation. -func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput) (req *request.Request, output *UpdateSizeConstraintSetOutput) { - op := &request.Operation{ - Name: opUpdateSizeConstraintSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateSizeConstraintSetInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateSizeConstraintSetOutput{} - req.Data = output - return -} - -// Inserts or deletes SizeConstraint objects (filters) in a SizeConstraintSet. -// For each SizeConstraint object, you specify the following values: -// -// Whether to insert or delete the object from the array. If you want to change -// a SizeConstraintSetUpdate object, you delete the existing object and add -// a new one. The part of a web request that you want AWS WAF to evaluate, such -// as the length of a query string or the length of the User-Agent header. Whether -// to perform any transformations on the request, such as converting it to lowercase, -// before checking its length. Note that transformations of the request body -// are not supported because the AWS resource forwards only the first 8192 bytes -// of your request to AWS WAF. A ComparisonOperator used for evaluating the -// selected part of the request against the specified Size, such as equals, -// greater than, less than, and so on. The length, in bytes, that you want AWS -// WAF to watch for in selected part of the request. The length is computed -// after applying the transformation. For example, you can add a SizeConstraintSetUpdate -// object that matches web requests in which the length of the User-Agent header -// is greater than 100 bytes. You can then configure AWS WAF to block those -// requests. -// -// To create and configure a SizeConstraintSet, perform the following steps: -// -// Create a SizeConstraintSet. For more information, see CreateSizeConstraintSet. -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of an UpdateSizeConstraintSet request. Submit an UpdateSizeConstraintSet -// request to specify the part of the request that you want AWS WAF to inspect -// (for example, the header or the URI) and the value that you want AWS WAF -// to watch for. For more information about how to use the AWS WAF API to allow -// or block HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) UpdateSizeConstraintSet(input *UpdateSizeConstraintSetInput) (*UpdateSizeConstraintSetOutput, error) { - req, out := c.UpdateSizeConstraintSetRequest(input) - err := req.Send() - return out, err -} - -const opUpdateSqlInjectionMatchSet = "UpdateSqlInjectionMatchSet" - -// UpdateSqlInjectionMatchSetRequest generates a request for the UpdateSqlInjectionMatchSet operation. -func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSetInput) (req *request.Request, output *UpdateSqlInjectionMatchSetOutput) { - op := &request.Operation{ - Name: opUpdateSqlInjectionMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateSqlInjectionMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateSqlInjectionMatchSetOutput{} - req.Data = output - return -} - -// Inserts or deletes SqlInjectionMatchTuple objects (filters) in a SqlInjectionMatchSet. -// For each SqlInjectionMatchTuple object, you specify the following values: -// -// Action: Whether to insert the object into or delete the object from the -// array. To change a SqlInjectionMatchTuple, you delete the existing object -// and add a new one. FieldToMatch: The part of web requests that you want AWS -// WAF to inspect and, if you want AWS WAF to inspect a header, the name of -// the header. TextTransformation: Which text transformation, if any, to perform -// on the web request before inspecting the request for snippets of malicious -// SQL code. You use SqlInjectionMatchSet objects to specify which CloudFront -// requests you want to allow, block, or count. For example, if you're receiving -// requests that contain snippets of SQL code in the query string and you want -// to block the requests, you can create a SqlInjectionMatchSet with the applicable -// settings, and then configure AWS WAF to block the requests. -// -// To create and configure a SqlInjectionMatchSet, perform the following steps: -// -// Submit a CreateSqlInjectionMatchSet request. Use GetChangeToken to get -// the change token that you provide in the ChangeToken parameter of an UpdateIPSet -// request. Submit an UpdateSqlInjectionMatchSet request to specify the parts -// of web requests that you want AWS WAF to inspect for snippets of SQL code. -// For more information about how to use the AWS WAF API to allow or block -// HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) UpdateSqlInjectionMatchSet(input *UpdateSqlInjectionMatchSetInput) (*UpdateSqlInjectionMatchSetOutput, error) { - req, out := c.UpdateSqlInjectionMatchSetRequest(input) - err := req.Send() - return out, err -} - -const opUpdateWebACL = "UpdateWebACL" - -// UpdateWebACLRequest generates a request for the UpdateWebACL operation. -func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Request, output *UpdateWebACLOutput) { - op := &request.Operation{ - Name: opUpdateWebACL, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateWebACLInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateWebACLOutput{} - req.Data = output - return -} - -// Inserts or deletes ActivatedRule objects in a WebACL. Each Rule identifies -// web requests that you want to allow, block, or count. When you update a WebACL, -// you specify the following values: -// -// A default action for the WebACL, either ALLOW or BLOCK. AWS WAF performs -// the default action if a request doesn't match the criteria in any of the -// Rules in a WebACL. The Rules that you want to add and/or delete. If you want -// to replace one Rule with another, you delete the existing Rule and add the -// new one. For each Rule, whether you want AWS WAF to allow requests, block -// requests, or count requests that match the conditions in the Rule. The order -// in which you want AWS WAF to evaluate the Rules in a WebACL. If you add more -// than one Rule to a WebACL, AWS WAF evaluates each request against the Rules -// in order based on the value of Priority. (The Rule that has the lowest value -// for Priority is evaluated first.) When a web request matches all of the predicates -// (such as ByteMatchSets and IPSets) in a Rule, AWS WAF immediately takes the -// corresponding action, allow or block, and doesn't evaluate the request against -// the remaining Rules in the WebACL, if any. The CloudFront distribution that -// you want to associate with the WebACL. To create and configure a WebACL, -// perform the following steps: -// -// Create and update the predicates that you want to include in Rules. For -// more information, see CreateByteMatchSet, UpdateByteMatchSet, CreateIPSet, -// UpdateIPSet, CreateSqlInjectionMatchSet, and UpdateSqlInjectionMatchSet. -// Create and update the Rules that you want to include in the WebACL. For more -// information, see CreateRule and UpdateRule. Create a WebACL. See CreateWebACL. -// Use GetChangeToken to get the change token that you provide in the ChangeToken -// parameter of an UpdateWebACL request. Submit an UpdateWebACL request to specify -// the Rules that you want to include in the WebACL, to specify the default -// action, and to associate the WebACL with a CloudFront distribution. For -// more information about how to use the AWS WAF API to allow or block HTTP -// requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) UpdateWebACL(input *UpdateWebACLInput) (*UpdateWebACLOutput, error) { - req, out := c.UpdateWebACLRequest(input) - err := req.Send() - return out, err -} - -const opUpdateXssMatchSet = "UpdateXssMatchSet" - -// UpdateXssMatchSetRequest generates a request for the UpdateXssMatchSet operation. -func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *request.Request, output *UpdateXssMatchSetOutput) { - op := &request.Operation{ - Name: opUpdateXssMatchSet, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateXssMatchSetInput{} - } - - req = c.newRequest(op, input, output) - output = &UpdateXssMatchSetOutput{} - req.Data = output - return -} - -// Inserts or deletes XssMatchTuple objects (filters) in an XssMatchSet. For -// each XssMatchTuple object, you specify the following values: -// -// Action: Whether to insert the object into or delete the object from the -// array. To change a XssMatchTuple, you delete the existing object and add -// a new one. FieldToMatch: The part of web requests that you want AWS WAF to -// inspect and, if you want AWS WAF to inspect a header, the name of the header. -// TextTransformation: Which text transformation, if any, to perform on the -// web request before inspecting the request for cross-site scripting attacks. -// You use XssMatchSet objects to specify which CloudFront requests you want -// to allow, block, or count. For example, if you're receiving requests that -// contain cross-site scripting attacks in the request body and you want to -// block the requests, you can create an XssMatchSet with the applicable settings, -// and then configure AWS WAF to block the requests. -// -// To create and configure an XssMatchSet, perform the following steps: -// -// Submit a CreateXssMatchSet request. Use GetChangeToken to get the change -// token that you provide in the ChangeToken parameter of an UpdateIPSet request. -// Submit an UpdateXssMatchSet request to specify the parts of web requests -// that you want AWS WAF to inspect for cross-site scripting attacks. For more -// information about how to use the AWS WAF API to allow or block HTTP requests, -// see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -func (c *WAF) UpdateXssMatchSet(input *UpdateXssMatchSetInput) (*UpdateXssMatchSetOutput, error) { - req, out := c.UpdateXssMatchSetRequest(input) - err := req.Send() - return out, err -} - -// The ActivatedRule object in an UpdateWebACL request specifies a Rule that -// you want to insert or delete, the priority of the Rule in the WebACL, and -// the action that you want AWS WAF to take when a web request matches the Rule -// (ALLOW, BLOCK, or COUNT). -// -// To specify whether to insert or delete a Rule, use the Action parameter -// in the WebACLUpdate data type. -type ActivatedRule struct { - _ struct{} `type:"structure"` - - // Specifies the action that CloudFront or AWS WAF takes when a web request - // matches the conditions in the Rule. Valid values for Action include the following: - // - // ALLOW: CloudFront responds with the requested object. BLOCK: CloudFront - // responds with an HTTP 403 (Forbidden) status code. COUNT: AWS WAF increments - // a counter of requests that match the conditions in the rule and then continues - // to inspect the web request based on the remaining rules in the web ACL. - Action *WafAction `type:"structure" required:"true"` - - // Specifies the order in which the Rules in a WebACL are evaluated. Rules with - // a lower value for Priority are evaluated before Rules with a higher value. - // The value must be a unique integer. If you add multiple Rules to a WebACL, - // the values don't need to be consecutive. - Priority *int64 `type:"integer" required:"true"` - - // The RuleId for a Rule. You use RuleId to get more information about a Rule - // (see GetRule), update a Rule (see UpdateRule), insert a Rule into a WebACL - // or delete a one from a WebACL (see UpdateWebACL), or delete a Rule from AWS - // WAF (see DeleteRule). - // - // RuleId is returned by CreateRule and by ListRules. - RuleId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ActivatedRule) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ActivatedRule) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ActivatedRule) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ActivatedRule"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - if s.Priority == nil { - invalidParams.Add(request.NewErrParamRequired("Priority")) - } - if s.RuleId == nil { - invalidParams.Add(request.NewErrParamRequired("RuleId")) - } - if s.RuleId != nil && len(*s.RuleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleId", 1)) - } - if s.Action != nil { - if err := s.Action.Validate(); err != nil { - invalidParams.AddNested("Action", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// 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. -// -// A complex type that contains ByteMatchTuple objects, which specify the parts -// of web requests that you want AWS WAF to inspect and the values that you -// want AWS WAF to search for. If a ByteMatchSet contains more than one ByteMatchTuple -// object, a request needs to match the settings in only one ByteMatchTuple -// to be considered a match. -type ByteMatchSet struct { - _ struct{} `type:"structure"` - - // The ByteMatchSetId for a ByteMatchSet. You use ByteMatchSetId to get information - // about a ByteMatchSet (see GetByteMatchSet), update a ByteMatchSet (see UpdateByteMatchSet), - // insert a ByteMatchSet into a Rule or delete one from a Rule (see UpdateRule), - // and delete a ByteMatchSet from AWS WAF (see DeleteByteMatchSet). - // - // ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. - ByteMatchSetId *string `min:"1" type:"string" required:"true"` - - // Specifies the bytes (typically a string that corresponds with ASCII characters) - // that you want AWS WAF to search for in web requests, the location in requests - // that you want AWS WAF to search, and other settings. - ByteMatchTuples []*ByteMatchTuple `type:"list" required:"true"` - - // A friendly name or description of the ByteMatchSet. You can't change Name - // after you create a ByteMatchSet. - Name *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ByteMatchSet) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ByteMatchSet) GoString() string { - return s.String() -} - -// Returned by ListByteMatchSets. Each ByteMatchSetSummary object includes the -// Name and ByteMatchSetId for one ByteMatchSet. -type ByteMatchSetSummary struct { - _ struct{} `type:"structure"` - - // The ByteMatchSetId for a ByteMatchSet. You use ByteMatchSetId to get information - // about a ByteMatchSet, update a ByteMatchSet, remove a ByteMatchSet from a - // Rule, and delete a ByteMatchSet from AWS WAF. - // - // ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets. - ByteMatchSetId *string `min:"1" type:"string" required:"true"` - - // A friendly name or description of the ByteMatchSet. You can't change Name - // after you create a ByteMatchSet. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s ByteMatchSetSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ByteMatchSetSummary) GoString() string { - return s.String() -} - -// In an UpdateByteMatchSet request, ByteMatchSetUpdate specifies whether to -// insert or delete a ByteMatchTuple and includes the settings for the ByteMatchTuple. -type ByteMatchSetUpdate struct { - _ struct{} `type:"structure"` - - // Specifies whether to insert or delete a ByteMatchTuple. - Action *string `type:"string" required:"true" enum:"ChangeAction"` - - // Information about the part of a web request that you want AWS WAF to inspect - // and the value that you want AWS WAF to search for. If you specify DELETE - // for the value of Action, the ByteMatchTuple values must exactly match the - // values in the ByteMatchTuple that you want to delete from the ByteMatchSet. - ByteMatchTuple *ByteMatchTuple `type:"structure" required:"true"` -} - -// String returns the string representation -func (s ByteMatchSetUpdate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ByteMatchSetUpdate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ByteMatchSetUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ByteMatchSetUpdate"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - if s.ByteMatchTuple == nil { - invalidParams.Add(request.NewErrParamRequired("ByteMatchTuple")) - } - if s.ByteMatchTuple != nil { - if err := s.ByteMatchTuple.Validate(); err != nil { - invalidParams.AddNested("ByteMatchTuple", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The bytes (typically a string that corresponds with ASCII characters) that -// you want AWS WAF to search for in web requests, the location in requests -// that you want AWS WAF to search, and other settings. -type ByteMatchTuple struct { - _ struct{} `type:"structure"` - - // The part of a web request that you want AWS WAF to search, such as a specified - // header or a query string. For more information, see FieldToMatch. - FieldToMatch *FieldToMatch `type:"structure" required:"true"` - - // Within the portion of a web request that you want to search (for example, - // in the query string, if any), specify where you want AWS WAF to search. Valid - // values include the following: - // - // CONTAINS - // - // The specified part of the web request must include the value of TargetString, - // but the location doesn't matter. - // - // CONTAINS_WORD - // - // The specified part of the web request must include the value of TargetString, - // and TargetString must contain only alphanumeric characters or underscore - // (A-Z, a-z, 0-9, or _). In addition, TargetString must be a word, which means - // one of the following: - // - // TargetString exactly matches the value of the specified part of the web - // request, such as the value of a header. TargetString is at the beginning - // of the specified part of the web request and is followed by a character other - // than an alphanumeric character or underscore (_), for example, BadBot;. TargetString - // is at the end of the specified part of the web request and is preceded by - // a character other than an alphanumeric character or underscore (_), for example, - // ;BadBot. TargetString is in the middle of the specified part of the web request - // and is preceded and followed by characters other than alphanumeric characters - // or underscore (_), for example, -BadBot;. EXACTLY - // - // The value of the specified part of the web request must exactly match the - // value of TargetString. - // - // STARTS_WITH - // - // The value of TargetString must appear at the beginning of the specified - // part of the web request. - // - // ENDS_WITH - // - // The value of TargetString must appear at the end of the specified part of - // the web request. - PositionalConstraint *string `type:"string" required:"true" enum:"PositionalConstraint"` - - // The value that you want AWS WAF to search for. AWS WAF searches for the specified - // string in the part of web requests that you specified in FieldToMatch. The - // maximum length of the value is 50 bytes. - // - // Valid values depend on the values that you specified for FieldToMatch: - // - // HEADER: The value that you want AWS WAF to search for in the request header - // that you specified in FieldToMatch, for example, the value of the User-Agent - // or Referer header. METHOD: The HTTP method, which indicates the type of operation - // specified in the request. CloudFront supports the following methods: DELETE, - // GET, HEAD, OPTIONS, PATCH, POST, and PUT. QUERY_STRING: The value that you - // want AWS WAF to search for in the query string, which is the part of a URL - // that appears after a ? character. URI: The value that you want AWS WAF to - // search for in the part of a URL that identifies a resource, for example, - // /images/daily-ad.jpg. BODY: The part of a request that contains any additional - // data that you want to send to your web server as the HTTP request body, such - // as data from a form. The request body immediately follows the request headers. - // Note that only the first 8192 bytes of the request body are forwarded to - // AWS WAF for inspection. To allow or block requests based on the length of - // the body, you can create a size constraint set. For more information, see - // CreateSizeConstraintSet. If TargetString includes alphabetic characters - // A-Z and a-z, note that the value is case sensitive. - // - // If you're using the AWS WAF API - // - // Specify a base64-encoded version of the value. The maximum length of the - // value before you base64-encode it is 50 bytes. - // - // For example, suppose the value of Type is HEADER and the value of Data is - // User-Agent. If you want to search the User-Agent header for the value BadBot, - // you base64-encode BadBot using MIME base64 encoding and include the resulting - // value, QmFkQm90, in the value of TargetString. - // - // If you're using the AWS CLI or one of the AWS SDKs - // - // The value that you want AWS WAF to search for. The SDK automatically base64 - // encodes the value. - // - // TargetString is automatically base64 encoded/decoded by the SDK. - TargetString []byte `type:"blob" required:"true"` - - // Text transformations eliminate some of the unusual formatting that attackers - // use in web requests in an effort to bypass AWS WAF. If you specify a transformation, - // AWS WAF performs the transformation on TargetString before inspecting a request - // for a match. - // - // CMD_LINE - // - // When you're concerned that attackers are injecting an operating system commandline - // command and using unusual formatting to disguise some or all of the command, - // use this option to perform the following transformations: - // - // Delete the following characters: \ " ' ^ Delete spaces before the following - // characters: / ( Replace the following characters with a space: , ; Replace - // multiple spaces with one space Convert uppercase letters (A-Z) to lowercase - // (a-z) COMPRESS_WHITE_SPACE - // - // Use this option to replace the following characters with a space character - // (decimal 32): - // - // \f, formfeed, decimal 12 \t, tab, decimal 9 \n, newline, decimal 10 \r, - // carriage return, decimal 13 \v, vertical tab, decimal 11 non-breaking space, - // decimal 160 COMPRESS_WHITE_SPACE also replaces multiple spaces with one - // space. - // - // HTML_ENTITY_DECODE - // - // Use this option to replace HTML-encoded characters with unencoded characters. - // HTML_ENTITY_DECODE performs the following operations: - // - // Replaces (ampersand)quot; with " Replaces (ampersand)nbsp; with a non-breaking - // space, decimal 160 Replaces (ampersand)lt; with a "less than" symbol Replaces - // (ampersand)gt; with > Replaces characters that are represented in hexadecimal - // format, (ampersand)#xhhhh;, with the corresponding characters Replaces characters - // that are represented in decimal format, (ampersand)#nnnn;, with the corresponding - // characters LOWERCASE - // - // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). - // - // URL_DECODE - // - // Use this option to decode a URL-encoded value. - // - // NONE - // - // Specify NONE if you don't want to perform any text transformations. - TextTransformation *string `type:"string" required:"true" enum:"TextTransformation"` -} - -// String returns the string representation -func (s ByteMatchTuple) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ByteMatchTuple) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ByteMatchTuple) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ByteMatchTuple"} - if s.FieldToMatch == nil { - invalidParams.Add(request.NewErrParamRequired("FieldToMatch")) - } - if s.PositionalConstraint == nil { - invalidParams.Add(request.NewErrParamRequired("PositionalConstraint")) - } - if s.TargetString == nil { - invalidParams.Add(request.NewErrParamRequired("TargetString")) - } - if s.TextTransformation == nil { - invalidParams.Add(request.NewErrParamRequired("TextTransformation")) - } - if s.FieldToMatch != nil { - if err := s.FieldToMatch.Validate(); err != nil { - invalidParams.AddNested("FieldToMatch", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateByteMatchSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // A friendly name or description of the ByteMatchSet. You can't change Name - // after you create a ByteMatchSet. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateByteMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateByteMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateByteMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateByteMatchSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateByteMatchSetOutput struct { - _ struct{} `type:"structure"` - - // A ByteMatchSet that contains no ByteMatchTuple objects. - ByteMatchSet *ByteMatchSet `type:"structure"` - - // The ChangeToken that you used to submit the CreateByteMatchSet request. You - // can also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s CreateByteMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateByteMatchSetOutput) GoString() string { - return s.String() -} - -type CreateIPSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // A friendly name or description of the IPSet. You can't change Name after - // you create the IPSet. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateIPSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateIPSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateIPSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateIPSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateIPSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the CreateIPSet request. You can - // also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` - - // The IPSet returned in the CreateIPSet response. - IPSet *IPSet `type:"structure"` -} - -// String returns the string representation -func (s CreateIPSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateIPSetOutput) GoString() string { - return s.String() -} - -type CreateRuleInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // A friendly name or description for the metrics for this Rule. The name can - // contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain - // whitespace. You can't change the name of the metric after you create the - // Rule. - MetricName *string `type:"string" required:"true"` - - // A friendly name or description of the Rule. You can't change the name of - // a Rule after you create it. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRuleInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateRuleOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the CreateRule request. You can also - // use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` - - // The Rule returned in the CreateRule response. - Rule *Rule `type:"structure"` -} - -// String returns the string representation -func (s CreateRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateRuleOutput) GoString() string { - return s.String() -} - -type CreateSizeConstraintSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // A friendly name or description of the SizeConstraintSet. You can't change - // Name after you create a SizeConstraintSet. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateSizeConstraintSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateSizeConstraintSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSizeConstraintSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSizeConstraintSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateSizeConstraintSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the CreateSizeConstraintSet request. - // You can also use this value to query the status of the request. For more - // information, see GetChangeTokenStatus. - ChangeToken *string `type:"string"` - - // A SizeConstraintSet that contains no SizeConstraint objects. - SizeConstraintSet *SizeConstraintSet `type:"structure"` -} - -// String returns the string representation -func (s CreateSizeConstraintSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateSizeConstraintSetOutput) GoString() string { - return s.String() -} - -// A request to create a SqlInjectionMatchSet. -type CreateSqlInjectionMatchSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // A friendly name or description for the SqlInjectionMatchSet that you're creating. - // You can't change Name after you create the SqlInjectionMatchSet. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateSqlInjectionMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateSqlInjectionMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSqlInjectionMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSqlInjectionMatchSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to a CreateSqlInjectionMatchSet request. -type CreateSqlInjectionMatchSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the CreateSqlInjectionMatchSet request. - // You can also use this value to query the status of the request. For more - // information, see GetChangeTokenStatus. - ChangeToken *string `type:"string"` - - // A SqlInjectionMatchSet. - SqlInjectionMatchSet *SqlInjectionMatchSet `type:"structure"` -} - -// String returns the string representation -func (s CreateSqlInjectionMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateSqlInjectionMatchSetOutput) GoString() string { - return s.String() -} - -type CreateWebACLInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The action that you want AWS WAF to take when a request doesn't match the - // criteria specified in any of the Rule objects that are associated with the - // WebACL. - DefaultAction *WafAction `type:"structure" required:"true"` - - // A friendly name or description for the metrics for this WebACL. The name - // can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't - // contain whitespace. You can't change MetricName after you create the WebACL. - MetricName *string `type:"string" required:"true"` - - // A friendly name or description of the WebACL. You can't change Name after - // you create the WebACL. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateWebACLInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateWebACLInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateWebACLInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateWebACLInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.DefaultAction == nil { - invalidParams.Add(request.NewErrParamRequired("DefaultAction")) - } - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.DefaultAction != nil { - if err := s.DefaultAction.Validate(); err != nil { - invalidParams.AddNested("DefaultAction", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type CreateWebACLOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the CreateWebACL request. You can - // also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` - - // The WebACL returned in the CreateWebACL response. - WebACL *WebACL `type:"structure"` -} - -// String returns the string representation -func (s CreateWebACLOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateWebACLOutput) GoString() string { - return s.String() -} - -// A request to create an XssMatchSet. -type CreateXssMatchSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // A friendly name or description for the XssMatchSet that you're creating. - // You can't change Name after you create the XssMatchSet. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateXssMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateXssMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateXssMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateXssMatchSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to a CreateXssMatchSet request. -type CreateXssMatchSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the CreateXssMatchSet request. You - // can also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` - - // An XssMatchSet. - XssMatchSet *XssMatchSet `type:"structure"` -} - -// String returns the string representation -func (s CreateXssMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateXssMatchSetOutput) GoString() string { - return s.String() -} - -type DeleteByteMatchSetInput struct { - _ struct{} `type:"structure"` - - // The ByteMatchSetId of the ByteMatchSet that you want to delete. ByteMatchSetId - // is returned by CreateByteMatchSet and by ListByteMatchSets. - ByteMatchSetId *string `min:"1" type:"string" required:"true"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteByteMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteByteMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteByteMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteByteMatchSetInput"} - if s.ByteMatchSetId == nil { - invalidParams.Add(request.NewErrParamRequired("ByteMatchSetId")) - } - if s.ByteMatchSetId != nil && len(*s.ByteMatchSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ByteMatchSetId", 1)) - } - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteByteMatchSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the DeleteByteMatchSet request. You - // can also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s DeleteByteMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteByteMatchSetOutput) GoString() string { - return s.String() -} - -type DeleteIPSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The IPSetId of the IPSet that you want to delete. IPSetId is returned by - // CreateIPSet and by ListIPSets. - IPSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteIPSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteIPSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteIPSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteIPSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.IPSetId == nil { - invalidParams.Add(request.NewErrParamRequired("IPSetId")) - } - if s.IPSetId != nil && len(*s.IPSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IPSetId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteIPSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the DeleteIPSet request. You can - // also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s DeleteIPSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteIPSetOutput) GoString() string { - return s.String() -} - -type DeleteRuleInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The RuleId of the Rule that you want to delete. RuleId is returned by CreateRule - // and by ListRules. - RuleId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRuleInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.RuleId == nil { - invalidParams.Add(request.NewErrParamRequired("RuleId")) - } - if s.RuleId != nil && len(*s.RuleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteRuleOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the DeleteRule request. You can also - // use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s DeleteRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRuleOutput) GoString() string { - return s.String() -} - -type DeleteSizeConstraintSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The SizeConstraintSetId of the SizeConstraintSet that you want to delete. - // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. - SizeConstraintSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteSizeConstraintSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteSizeConstraintSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSizeConstraintSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSizeConstraintSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.SizeConstraintSetId == nil { - invalidParams.Add(request.NewErrParamRequired("SizeConstraintSetId")) - } - if s.SizeConstraintSetId != nil && len(*s.SizeConstraintSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SizeConstraintSetId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteSizeConstraintSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the DeleteSizeConstraintSet request. - // You can also use this value to query the status of the request. For more - // information, see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s DeleteSizeConstraintSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteSizeConstraintSetOutput) GoString() string { - return s.String() -} - -// A request to delete a SqlInjectionMatchSet from AWS WAF. -type DeleteSqlInjectionMatchSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to delete. - // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets. - SqlInjectionMatchSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteSqlInjectionMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteSqlInjectionMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSqlInjectionMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSqlInjectionMatchSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.SqlInjectionMatchSetId == nil { - invalidParams.Add(request.NewErrParamRequired("SqlInjectionMatchSetId")) - } - if s.SqlInjectionMatchSetId != nil && len(*s.SqlInjectionMatchSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SqlInjectionMatchSetId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to a request to delete a SqlInjectionMatchSet from AWS WAF. -type DeleteSqlInjectionMatchSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the DeleteSqlInjectionMatchSet request. - // You can also use this value to query the status of the request. For more - // information, see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s DeleteSqlInjectionMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteSqlInjectionMatchSetOutput) GoString() string { - return s.String() -} - -type DeleteWebACLInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The WebACLId of the WebACL that you want to delete. WebACLId is returned - // by CreateWebACL and by ListWebACLs. - WebACLId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteWebACLInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteWebACLInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteWebACLInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteWebACLInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.WebACLId == nil { - invalidParams.Add(request.NewErrParamRequired("WebACLId")) - } - if s.WebACLId != nil && len(*s.WebACLId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WebACLId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type DeleteWebACLOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the DeleteWebACL request. You can - // also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s DeleteWebACLOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteWebACLOutput) GoString() string { - return s.String() -} - -// A request to delete an XssMatchSet from AWS WAF. -type DeleteXssMatchSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The XssMatchSetId of the XssMatchSet that you want to delete. XssMatchSetId - // is returned by CreateXssMatchSet and by ListXssMatchSets. - XssMatchSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DeleteXssMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteXssMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteXssMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteXssMatchSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.XssMatchSetId == nil { - invalidParams.Add(request.NewErrParamRequired("XssMatchSetId")) - } - if s.XssMatchSetId != nil && len(*s.XssMatchSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("XssMatchSetId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to a request to delete an XssMatchSet from AWS WAF. -type DeleteXssMatchSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the DeleteXssMatchSet request. You - // can also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s DeleteXssMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteXssMatchSetOutput) GoString() string { - return s.String() -} - -// Specifies where in a web request to look for TargetString. -type FieldToMatch struct { - _ struct{} `type:"structure"` - - // When the value of Type is HEADER, enter the name of the header that you want - // AWS WAF to search, for example, User-Agent or Referer. If the value of Type - // is any other value, omit Data. - // - // The name of the header is not case sensitive. - Data *string `type:"string"` - - // The part of the web request that you want AWS WAF to search for a specified - // string. Parts of a request that you can search include the following: - // - // HEADER: A specified request header, for example, the value of the User-Agent - // or Referer header. If you choose HEADER for the type, specify the name of - // the header in Data. METHOD: The HTTP method, which indicated the type of - // operation that the request is asking the origin to perform. Amazon CloudFront - // supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, - // and PUT. QUERY_STRING: A query string, which is the part of a URL that appears - // after a ? character, if any. URI: The part of a web request that identifies - // a resource, for example, /images/daily-ad.jpg. BODY: The part of a request - // that contains any additional data that you want to send to your web server - // as the HTTP request body, such as data from a form. The request body immediately - // follows the request headers. Note that only the first 8192 bytes of the request - // body are forwarded to AWS WAF for inspection. To allow or block requests - // based on the length of the body, you can create a size constraint set. For - // more information, see CreateSizeConstraintSet. - Type *string `type:"string" required:"true" enum:"MatchFieldType"` -} - -// String returns the string representation -func (s FieldToMatch) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FieldToMatch) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *FieldToMatch) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "FieldToMatch"} - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetByteMatchSetInput struct { - _ struct{} `type:"structure"` - - // The ByteMatchSetId of the ByteMatchSet that you want to get. ByteMatchSetId - // is returned by CreateByteMatchSet and by ListByteMatchSets. - ByteMatchSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetByteMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetByteMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetByteMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetByteMatchSetInput"} - if s.ByteMatchSetId == nil { - invalidParams.Add(request.NewErrParamRequired("ByteMatchSetId")) - } - if s.ByteMatchSetId != nil && len(*s.ByteMatchSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ByteMatchSetId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetByteMatchSetOutput struct { - _ struct{} `type:"structure"` - - // Information about the ByteMatchSet that you specified in the GetByteMatchSet - // request. For more information, see the following topics: - // - // ByteMatchSet: Contains ByteMatchSetId, ByteMatchTuples, and Name ByteMatchTuples: - // Contains an array of ByteMatchTuple objects. Each ByteMatchTuple object contains - // FieldToMatch, PositionalConstraint, TargetString, and TextTransformation - // FieldToMatch: Contains Data and Type - ByteMatchSet *ByteMatchSet `type:"structure"` -} - -// String returns the string representation -func (s GetByteMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetByteMatchSetOutput) GoString() string { - return s.String() -} - -type GetChangeTokenInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s GetChangeTokenInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetChangeTokenInput) GoString() string { - return s.String() -} - -type GetChangeTokenOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used in the request. Use this value in a GetChangeTokenStatus - // request to get the current status of the request. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s GetChangeTokenOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetChangeTokenOutput) GoString() string { - return s.String() -} - -type GetChangeTokenStatusInput struct { - _ struct{} `type:"structure"` - - // The change token for which you want to get the status. This change token - // was previously returned in the GetChangeToken response. - ChangeToken *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s GetChangeTokenStatusInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetChangeTokenStatusInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetChangeTokenStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetChangeTokenStatusInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetChangeTokenStatusOutput struct { - _ struct{} `type:"structure"` - - // The status of the change token. - ChangeTokenStatus *string `type:"string" enum:"ChangeTokenStatus"` -} - -// String returns the string representation -func (s GetChangeTokenStatusOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetChangeTokenStatusOutput) GoString() string { - return s.String() -} - -type GetIPSetInput struct { - _ struct{} `type:"structure"` - - // The IPSetId of the IPSet that you want to get. IPSetId is returned by CreateIPSet - // and by ListIPSets. - IPSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetIPSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIPSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetIPSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetIPSetInput"} - if s.IPSetId == nil { - invalidParams.Add(request.NewErrParamRequired("IPSetId")) - } - if s.IPSetId != nil && len(*s.IPSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IPSetId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetIPSetOutput struct { - _ struct{} `type:"structure"` - - // Information about the IPSet that you specified in the GetIPSet request. For - // more information, see the following topics: - // - // IPSet: Contains IPSetDescriptors, IPSetId, and Name IPSetDescriptors: Contains - // an array of IPSetDescriptor objects. Each IPSetDescriptor object contains - // Type and Value - IPSet *IPSet `type:"structure"` -} - -// String returns the string representation -func (s GetIPSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetIPSetOutput) GoString() string { - return s.String() -} - -type GetRuleInput struct { - _ struct{} `type:"structure"` - - // The RuleId of the Rule that you want to get. RuleId is returned by CreateRule - // and by ListRules. - RuleId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRuleInput"} - if s.RuleId == nil { - invalidParams.Add(request.NewErrParamRequired("RuleId")) - } - if s.RuleId != nil && len(*s.RuleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetRuleOutput struct { - _ struct{} `type:"structure"` - - // Information about the Rule that you specified in the GetRule request. For - // more information, see the following topics: - // - // Rule: Contains MetricName, Name, an array of Predicate objects, and RuleId - // Predicate: Each Predicate object contains DataId, Negated, and Type - Rule *Rule `type:"structure"` -} - -// String returns the string representation -func (s GetRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetRuleOutput) GoString() string { - return s.String() -} - -type GetSampledRequestsInput struct { - _ struct{} `type:"structure"` - - // The number of requests that you want AWS WAF to return from among the first - // 5,000 requests that your AWS resource received during the time range. If - // your resource received fewer requests than the value of MaxItems, GetSampledRequests - // returns information about all of them. - MaxItems *int64 `min:"1" type:"long" required:"true"` - - // RuleId is one of two values: - // - // The RuleId of the Rule for which you want GetSampledRequests to return - // a sample of requests. Default_Action, which causes GetSampledRequests to - // return a sample of the requests that didn't match any of the rules in the - // specified WebACL. - RuleId *string `min:"1" type:"string" required:"true"` - - // The start date and time and the end date and time of the range for which - // you want GetSampledRequests to return a sample of requests. Specify the date - // and time in Unix time format (in seconds). You can specify any time range - // in the previous three hours. - TimeWindow *TimeWindow `type:"structure" required:"true"` - - // The WebACLId of the WebACL for which you want GetSampledRequests to return - // a sample of requests. - WebAclId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetSampledRequestsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSampledRequestsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSampledRequestsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSampledRequestsInput"} - if s.MaxItems == nil { - invalidParams.Add(request.NewErrParamRequired("MaxItems")) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - if s.RuleId == nil { - invalidParams.Add(request.NewErrParamRequired("RuleId")) - } - if s.RuleId != nil && len(*s.RuleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleId", 1)) - } - if s.TimeWindow == nil { - invalidParams.Add(request.NewErrParamRequired("TimeWindow")) - } - if s.WebAclId == nil { - invalidParams.Add(request.NewErrParamRequired("WebAclId")) - } - if s.WebAclId != nil && len(*s.WebAclId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WebAclId", 1)) - } - if s.TimeWindow != nil { - if err := s.TimeWindow.Validate(); err != nil { - invalidParams.AddNested("TimeWindow", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetSampledRequestsOutput struct { - _ struct{} `type:"structure"` - - // The total number of requests from which GetSampledRequests got a sample of - // MaxItems requests. If PopulationSize is less than MaxItems, the sample includes - // every request that your AWS resource received during the specified time range. - PopulationSize *int64 `type:"long"` - - // A complex type that contains detailed information about each of the requests - // in the sample. - SampledRequests []*SampledHTTPRequest `type:"list"` - - // Usually, TimeWindow is the time range that you specified in the GetSampledRequests - // request. However, if your AWS resource received more than 5,000 requests - // during the time range that you specified in the request, GetSampledRequests - // returns the time range for the first 5,000 requests. - TimeWindow *TimeWindow `type:"structure"` -} - -// String returns the string representation -func (s GetSampledRequestsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSampledRequestsOutput) GoString() string { - return s.String() -} - -type GetSizeConstraintSetInput struct { - _ struct{} `type:"structure"` - - // The SizeConstraintSetId of the SizeConstraintSet that you want to get. SizeConstraintSetId - // is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. - SizeConstraintSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetSizeConstraintSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSizeConstraintSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSizeConstraintSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSizeConstraintSetInput"} - if s.SizeConstraintSetId == nil { - invalidParams.Add(request.NewErrParamRequired("SizeConstraintSetId")) - } - if s.SizeConstraintSetId != nil && len(*s.SizeConstraintSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SizeConstraintSetId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetSizeConstraintSetOutput struct { - _ struct{} `type:"structure"` - - // Information about the SizeConstraintSet that you specified in the GetSizeConstraintSet - // request. For more information, see the following topics: - // - // SizeConstraintSet: Contains SizeConstraintSetId, SizeConstraints, and Name - // SizeConstraints: Contains an array of SizeConstraint objects. Each SizeConstraint - // object contains FieldToMatch, TextTransformation, ComparisonOperator, and - // Size FieldToMatch: Contains Data and Type - SizeConstraintSet *SizeConstraintSet `type:"structure"` -} - -// String returns the string representation -func (s GetSizeConstraintSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSizeConstraintSetOutput) GoString() string { - return s.String() -} - -// A request to get a SqlInjectionMatchSet. -type GetSqlInjectionMatchSetInput struct { - _ struct{} `type:"structure"` - - // The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to get. - // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets. - SqlInjectionMatchSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetSqlInjectionMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSqlInjectionMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSqlInjectionMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSqlInjectionMatchSetInput"} - if s.SqlInjectionMatchSetId == nil { - invalidParams.Add(request.NewErrParamRequired("SqlInjectionMatchSetId")) - } - if s.SqlInjectionMatchSetId != nil && len(*s.SqlInjectionMatchSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SqlInjectionMatchSetId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to a GetSqlInjectionMatchSet request. -type GetSqlInjectionMatchSetOutput struct { - _ struct{} `type:"structure"` - - // Information about the SqlInjectionMatchSet that you specified in the GetSqlInjectionMatchSet - // request. For more information, see the following topics: - // - // SqlInjectionMatchSet: Contains Name, SqlInjectionMatchSetId, and an array - // of SqlInjectionMatchTuple objects SqlInjectionMatchTuple: Each SqlInjectionMatchTuple - // object contains FieldToMatch and TextTransformation FieldToMatch: Contains - // Data and Type - SqlInjectionMatchSet *SqlInjectionMatchSet `type:"structure"` -} - -// String returns the string representation -func (s GetSqlInjectionMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSqlInjectionMatchSetOutput) GoString() string { - return s.String() -} - -type GetWebACLInput struct { - _ struct{} `type:"structure"` - - // The WebACLId of the WebACL that you want to get. WebACLId is returned by - // CreateWebACL and by ListWebACLs. - WebACLId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetWebACLInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetWebACLInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetWebACLInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWebACLInput"} - if s.WebACLId == nil { - invalidParams.Add(request.NewErrParamRequired("WebACLId")) - } - if s.WebACLId != nil && len(*s.WebACLId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WebACLId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type GetWebACLOutput struct { - _ struct{} `type:"structure"` - - // Information about the WebACL that you specified in the GetWebACL request. - // For more information, see the following topics: - // - // WebACL: Contains DefaultAction, MetricName, Name, an array of Rule objects, - // and WebACLId DefaultAction (Data type is WafAction): Contains Type Rules: - // Contains an array of ActivatedRule objects, which contain Action, Priority, - // and RuleId Action: Contains Type - WebACL *WebACL `type:"structure"` -} - -// String returns the string representation -func (s GetWebACLOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetWebACLOutput) GoString() string { - return s.String() -} - -// A request to get an XssMatchSet. -type GetXssMatchSetInput struct { - _ struct{} `type:"structure"` - - // The XssMatchSetId of the XssMatchSet that you want to get. XssMatchSetId - // is returned by CreateXssMatchSet and by ListXssMatchSets. - XssMatchSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s GetXssMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetXssMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetXssMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetXssMatchSetInput"} - if s.XssMatchSetId == nil { - invalidParams.Add(request.NewErrParamRequired("XssMatchSetId")) - } - if s.XssMatchSetId != nil && len(*s.XssMatchSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("XssMatchSetId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to a GetXssMatchSet request. -type GetXssMatchSetOutput struct { - _ struct{} `type:"structure"` - - // Information about the XssMatchSet that you specified in the GetXssMatchSet - // request. For more information, see the following topics: - // - // XssMatchSet: Contains Name, XssMatchSetId, and an array of XssMatchTuple - // objects XssMatchTuple: Each XssMatchTuple object contains FieldToMatch and - // TextTransformation FieldToMatch: Contains Data and Type - XssMatchSet *XssMatchSet `type:"structure"` -} - -// String returns the string representation -func (s GetXssMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetXssMatchSetOutput) GoString() string { - return s.String() -} - -// The response from a GetSampledRequests request includes an HTTPHeader complex -// type that appears as Headers in the response syntax. HTTPHeader contains -// the names and values of all of the headers that appear in one of the web -// requests that were returned by GetSampledRequests. -type HTTPHeader struct { - _ struct{} `type:"structure"` - - // The name of one of the headers in the sampled web request. - Name *string `type:"string"` - - // The value of one of the headers in the sampled web request. - Value *string `type:"string"` -} - -// String returns the string representation -func (s HTTPHeader) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HTTPHeader) GoString() string { - return s.String() -} - -// The response from a GetSampledRequests request includes an HTTPRequest complex -// type that appears as Request in the response syntax. HTTPRequest contains -// information about one of the web requests that were returned by GetSampledRequests. -type HTTPRequest struct { - _ struct{} `type:"structure"` - - // The IP address that the request originated from. If the WebACL is associated - // with a CloudFront distribution, this is the value of one of the following - // fields in CloudFront access logs: - // - // c-ip, if the viewer did not use an HTTP proxy or a load balancer to send - // the request x-forwarded-for, if the viewer did use an HTTP proxy or a load - // balancer to send the request - ClientIP *string `type:"string"` - - // The two-letter country code for the country that the request originated from. - // For a current list of country codes, see the Wikipedia entry ISO 3166-1 alpha-2 - // (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). - Country *string `type:"string"` - - // The HTTP version specified in the sampled web request, for example, HTTP/1.1. - HTTPVersion *string `type:"string"` - - // A complex type that contains two values for each header in the sampled web - // request: the name of the header and the value of the header. - Headers []*HTTPHeader `type:"list"` - - // The HTTP method specified in the sampled web request. CloudFront supports - // the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. - Method *string `type:"string"` - - // The part of a web request that identifies the resource, for example, /images/daily-ad.jpg. - URI *string `type:"string"` -} - -// String returns the string representation -func (s HTTPRequest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HTTPRequest) GoString() string { - return s.String() -} - -// Contains one or more IP addresses or blocks of IP addresses specified in -// Classless Inter-Domain Routing (CIDR) notation. To specify an individual -// IP address, you specify the four-part IP address followed by a /32, for example, -// 192.0.2.0/31. To block a range of IP addresses, you can specify a /24, a -// /16, or a /8 CIDR. For more information about CIDR notation, perform an Internet -// search on cidr notation. -type IPSet struct { - _ struct{} `type:"structure"` - - // The IP address type (IPV4) and the IP address range (in CIDR notation) that - // web requests originate from. If the WebACL is associated with a CloudFront - // distribution, this is the value of one of the following fields in CloudFront - // access logs: - // - // c-ip, if the viewer did not use an HTTP proxy or a load balancer to send - // the request x-forwarded-for, if the viewer did use an HTTP proxy or a load - // balancer to send the request - IPSetDescriptors []*IPSetDescriptor `type:"list" required:"true"` - - // The IPSetId for an IPSet. You use IPSetId to get information about an IPSet - // (see GetIPSet), update an IPSet (see UpdateIPSet), insert an IPSet into a - // Rule or delete one from a Rule (see UpdateRule), and delete an IPSet from - // AWS WAF (see DeleteIPSet). - // - // IPSetId is returned by CreateIPSet and by ListIPSets. - IPSetId *string `min:"1" type:"string" required:"true"` - - // A friendly name or description of the IPSet. You can't change the name of - // an IPSet after you create it. - Name *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s IPSet) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IPSet) GoString() string { - return s.String() -} - -// Specifies the IP address type (IPV4) and the IP address range (in CIDR format) -// that web requests originate from. -type IPSetDescriptor struct { - _ struct{} `type:"structure"` - - // Specify IPV4. - Type *string `type:"string" required:"true" enum:"IPSetDescriptorType"` - - // Specify an IPv4 address by using CIDR notation. For example: - // - // To configure AWS WAF to allow, block, or count requests that originated - // from the IP address 192.0.2.44, specify 192.0.2.44/32. To configure AWS WAF - // to allow, block, or count requests that originated from IP addresses from - // 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24. AWS WAF supports only /8, - // /16, /24, and /32 IP addresses. - // - // For more information about CIDR notation, see the Wikipedia entry Classless - // Inter-Domain Routing (https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). - Value *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s IPSetDescriptor) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IPSetDescriptor) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *IPSetDescriptor) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IPSetDescriptor"} - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the identifier and the name of the IPSet. -type IPSetSummary struct { - _ struct{} `type:"structure"` - - // The IPSetId for an IPSet. You can use IPSetId in a GetIPSet request to get - // detailed information about an IPSet. - IPSetId *string `min:"1" type:"string" required:"true"` - - // A friendly name or description of the IPSet. You can't change the name of - // an IPSet after you create it. - Name *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s IPSetSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IPSetSummary) GoString() string { - return s.String() -} - -// Specifies the type of update to perform to an IPSet with UpdateIPSet. -type IPSetUpdate struct { - _ struct{} `type:"structure"` - - // Specifies whether to insert or delete an IP address with UpdateIPSet. - Action *string `type:"string" required:"true" enum:"ChangeAction"` - - // The IP address type (IPV4) and the IP address range (in CIDR notation) that - // web requests originate from. - IPSetDescriptor *IPSetDescriptor `type:"structure" required:"true"` -} - -// String returns the string representation -func (s IPSetUpdate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IPSetUpdate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *IPSetUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IPSetUpdate"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - if s.IPSetDescriptor == nil { - invalidParams.Add(request.NewErrParamRequired("IPSetDescriptor")) - } - if s.IPSetDescriptor != nil { - if err := s.IPSetDescriptor.Validate(); err != nil { - invalidParams.AddNested("IPSetDescriptor", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -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 `min:"1" type:"integer" required:"true"` - - // 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.Limit == nil { - invalidParams.Add(request.NewErrParamRequired("Limit")) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextMarker != nil && len(*s.NextMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -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() -} - -type ListIPSetsInput struct { - _ struct{} `type:"structure"` - - // Specifies the number of IPSet objects that you want AWS WAF to return for - // this request. If you have more IPSet objects than the number you specify - // for Limit, the response includes a NextMarker value that you can use to get - // another batch of IPSet objects. - Limit *int64 `min:"1" type:"integer" required:"true"` - - // If you specify a value for Limit and you have more IPSets than the value - // of Limit, AWS WAF returns a NextMarker value in the response that allows - // you to list another group of IPSets. For the second and subsequent ListIPSets - // 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 ListIPSetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListIPSetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListIPSetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListIPSetsInput"} - if s.Limit == nil { - invalidParams.Add(request.NewErrParamRequired("Limit")) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextMarker != nil && len(*s.NextMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListIPSetsOutput struct { - _ struct{} `type:"structure"` - - // An array of IPSetSummary objects. - IPSets []*IPSetSummary `type:"list"` - - // If you have more IPSet objects than the number that you specified for Limit - // in the request, the response includes a NextMarker value. To list more IPSet - // objects, submit another ListIPSets 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 ListIPSetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListIPSetsOutput) GoString() string { - return s.String() -} - -type ListRulesInput struct { - _ struct{} `type:"structure"` - - // Specifies the number of Rules that you want AWS WAF to return for this request. - // If you have more Rules than the number that you specify for Limit, the response - // includes a NextMarker value that you can use to get another batch of Rules. - Limit *int64 `min:"1" type:"integer" required:"true"` - - // If you specify a value for Limit and you have more Rules than the value of - // Limit, AWS WAF returns a NextMarker value in the response that allows you - // to list another group of Rules. For the second and subsequent ListRules requests, - // specify the value of NextMarker from the previous response to get information - // about another batch of Rules. - NextMarker *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListRulesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListRulesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRulesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRulesInput"} - if s.Limit == nil { - invalidParams.Add(request.NewErrParamRequired("Limit")) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextMarker != nil && len(*s.NextMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListRulesOutput struct { - _ struct{} `type:"structure"` - - // If you have more Rules than the number that you specified for Limit in the - // request, the response includes a NextMarker value. To list more Rules, submit - // another ListRules request, and specify the NextMarker value from the response - // in the NextMarker value in the next request. - NextMarker *string `min:"1" type:"string"` - - // An array of RuleSummary objects. - Rules []*RuleSummary `type:"list"` -} - -// String returns the string representation -func (s ListRulesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListRulesOutput) GoString() string { - return s.String() -} - -type ListSizeConstraintSetsInput struct { - _ struct{} `type:"structure"` - - // Specifies the number of SizeConstraintSet objects that you want AWS WAF to - // return for this request. If you have more SizeConstraintSets objects than - // the number you specify for Limit, the response includes a NextMarker value - // that you can use to get another batch of SizeConstraintSet objects. - Limit *int64 `min:"1" type:"integer" required:"true"` - - // If you specify a value for Limit and you have more SizeConstraintSets than - // the value of Limit, AWS WAF returns a NextMarker value in the response that - // allows you to list another group of SizeConstraintSets. For the second and - // subsequent ListSizeConstraintSets requests, specify the value of NextMarker - // from the previous response to get information about another batch of SizeConstraintSets. - NextMarker *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListSizeConstraintSetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListSizeConstraintSetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSizeConstraintSetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSizeConstraintSetsInput"} - if s.Limit == nil { - invalidParams.Add(request.NewErrParamRequired("Limit")) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextMarker != nil && len(*s.NextMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListSizeConstraintSetsOutput struct { - _ struct{} `type:"structure"` - - // If you have more SizeConstraintSet objects than the number that you specified - // for Limit in the request, the response includes a NextMarker value. To list - // more SizeConstraintSet objects, submit another ListSizeConstraintSets request, - // and specify the NextMarker value from the response in the NextMarker value - // in the next request. - NextMarker *string `min:"1" type:"string"` - - // An array of SizeConstraintSetSummary objects. - SizeConstraintSets []*SizeConstraintSetSummary `type:"list"` -} - -// String returns the string representation -func (s ListSizeConstraintSetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListSizeConstraintSetsOutput) GoString() string { - return s.String() -} - -// A request to list the SqlInjectionMatchSet objects created by the current -// AWS account. -type ListSqlInjectionMatchSetsInput struct { - _ struct{} `type:"structure"` - - // Specifies the number of SqlInjectionMatchSet objects that you want AWS WAF - // to return for this request. If you have more SqlInjectionMatchSet objects - // than the number you specify for Limit, the response includes a NextMarker - // value that you can use to get another batch of Rules. - Limit *int64 `min:"1" type:"integer" required:"true"` - - // If you specify a value for Limit and you have more SqlInjectionMatchSet objects - // than the value of Limit, AWS WAF returns a NextMarker value in the response - // that allows you to list another group of SqlInjectionMatchSets. For the second - // and subsequent ListSqlInjectionMatchSets requests, specify the value of NextMarker - // from the previous response to get information about another batch of SqlInjectionMatchSets. - NextMarker *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListSqlInjectionMatchSetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListSqlInjectionMatchSetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSqlInjectionMatchSetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSqlInjectionMatchSetsInput"} - if s.Limit == nil { - invalidParams.Add(request.NewErrParamRequired("Limit")) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextMarker != nil && len(*s.NextMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to a ListSqlInjectionMatchSets request. -type ListSqlInjectionMatchSetsOutput struct { - _ struct{} `type:"structure"` - - // If you have more SqlInjectionMatchSet objects than the number that you specified - // for Limit in the request, the response includes a NextMarker value. To list - // more SqlInjectionMatchSet objects, submit another ListSqlInjectionMatchSets - // request, and specify the NextMarker value from the response in the NextMarker - // value in the next request. - NextMarker *string `min:"1" type:"string"` - - // An array of SqlInjectionMatchSetSummary objects. - SqlInjectionMatchSets []*SqlInjectionMatchSetSummary `type:"list"` -} - -// String returns the string representation -func (s ListSqlInjectionMatchSetsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListSqlInjectionMatchSetsOutput) GoString() string { - return s.String() -} - -type ListWebACLsInput struct { - _ struct{} `type:"structure"` - - // Specifies the number of WebACL objects that you want AWS WAF to return for - // this request. If you have more WebACL objects than the number that you specify - // for Limit, the response includes a NextMarker value that you can use to get - // another batch of WebACL objects. - Limit *int64 `min:"1" type:"integer" required:"true"` - - // If you specify a value for Limit and you have more WebACL objects than the - // number that you specify for Limit, AWS WAF returns a NextMarker value in - // the response that allows you to list another group of WebACL objects. For - // the second and subsequent ListWebACLs requests, specify the value of NextMarker - // from the previous response to get information about another batch of WebACL - // objects. - NextMarker *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListWebACLsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListWebACLsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListWebACLsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListWebACLsInput"} - if s.Limit == nil { - invalidParams.Add(request.NewErrParamRequired("Limit")) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextMarker != nil && len(*s.NextMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type ListWebACLsOutput struct { - _ struct{} `type:"structure"` - - // If you have more WebACL objects than the number that you specified for Limit - // in the request, the response includes a NextMarker value. To list more WebACL - // objects, submit another ListWebACLs request, and specify the NextMarker value - // from the response in the NextMarker value in the next request. - NextMarker *string `min:"1" type:"string"` - - // An array of WebACLSummary objects. - WebACLs []*WebACLSummary `type:"list"` -} - -// String returns the string representation -func (s ListWebACLsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListWebACLsOutput) GoString() string { - return s.String() -} - -// A request to list the XssMatchSet objects created by the current AWS account. -type ListXssMatchSetsInput struct { - _ struct{} `type:"structure"` - - // Specifies the number of XssMatchSet objects that you want AWS WAF to return - // for this request. If you have more XssMatchSet objects than the number you - // specify for Limit, the response includes a NextMarker value that you can - // use to get another batch of Rules. - Limit *int64 `min:"1" type:"integer" required:"true"` - - // If you specify a value for Limit and you have more XssMatchSet objects than - // the value of Limit, AWS WAF returns a NextMarker value in the response that - // allows you to list another group of XssMatchSets. For the second and subsequent - // ListXssMatchSets requests, specify the value of NextMarker from the previous - // response to get information about another batch of XssMatchSets. - NextMarker *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s ListXssMatchSetsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListXssMatchSetsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListXssMatchSetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListXssMatchSetsInput"} - if s.Limit == nil { - invalidParams.Add(request.NewErrParamRequired("Limit")) - } - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextMarker != nil && len(*s.NextMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to a ListXssMatchSets request. -type ListXssMatchSetsOutput struct { - _ struct{} `type:"structure"` - - // If you have more XssMatchSet objects than the number that you specified for - // Limit in the request, the response includes a NextMarker value. To list more - // XssMatchSet objects, submit another ListXssMatchSets request, and specify - // the NextMarker value from the response in the NextMarker value in the next - // request. - NextMarker *string `min:"1" type:"string"` - - // 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() -} - -// Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, and -// SizeConstraintSet objects that you want to add to a Rule and, for each object, -// indicates whether you want to negate the settings, for example, requests -// that do NOT originate from the IP address 192.0.2.44. -type Predicate struct { - _ struct{} `type:"structure"` - - // A unique identifier for a predicate in a Rule, such as ByteMatchSetId or - // IPSetId. The ID is returned by the corresponding Create or List command. - DataId *string `min:"1" type:"string" required:"true"` - - // Set Negated to False if you want AWS WAF to allow, block, or count requests - // based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, - // XssMatchSet, or SizeConstraintSet. For example, if an IPSet includes the - // IP address 192.0.2.44, AWS WAF will allow or block requests based on that - // IP address. - // - // Set Negated to True if you want AWS WAF to allow or block a request based - // on the negation of the settings in the ByteMatchSet, IPSet, SqlInjectionMatchSet, - // XssMatchSet, or SizeConstraintSet. For example, if an IPSet includes the - // IP address 192.0.2.44, AWS WAF will allow, block, or count requests based - // on all IP addresses except 192.0.2.44. - Negated *bool `type:"boolean" required:"true"` - - // The type of predicate in a Rule, such as ByteMatchSet or IPSet. - Type *string `type:"string" required:"true" enum:"PredicateType"` -} - -// String returns the string representation -func (s Predicate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Predicate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Predicate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Predicate"} - if s.DataId == nil { - invalidParams.Add(request.NewErrParamRequired("DataId")) - } - if s.DataId != nil && len(*s.DataId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DataId", 1)) - } - if s.Negated == nil { - invalidParams.Add(request.NewErrParamRequired("Negated")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A combination of ByteMatchSet, IPSet, and/or SqlInjectionMatchSet objects -// that identify the web requests that you want to allow, block, or count. For -// example, you might create a Rule that includes the following predicates: -// -// An IPSet that causes AWS WAF to search for web requests that originate -// from the IP address 192.0.2.44 A ByteMatchSet that causes AWS WAF to search -// for web requests for which the value of the User-Agent header is BadBot. -// To match the settings in this Rule, a request must originate from 192.0.2.44 -// AND include a User-Agent header for which the value is BadBot. -type Rule struct { - _ struct{} `type:"structure"` - - MetricName *string `type:"string"` - - // The friendly name or description for the Rule. You can't change the name - // of a Rule after you create it. - Name *string `min:"1" type:"string"` - - // The Predicates object contains one Predicate element for each ByteMatchSet, - // IPSet, or SqlInjectionMatchSet object that you want to include in a Rule. - Predicates []*Predicate `type:"list" required:"true"` - - // A unique identifier for a Rule. You use RuleId to get more information about - // a Rule (see GetRule), update a Rule (see UpdateRule), insert a Rule into - // a WebACL or delete a one from a WebACL (see UpdateWebACL), or delete a Rule - // from AWS WAF (see DeleteRule). - // - // RuleId is returned by CreateRule and by ListRules. - RuleId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s Rule) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Rule) GoString() string { - return s.String() -} - -// Contains the identifier and the friendly name or description of the Rule. -type RuleSummary struct { - _ struct{} `type:"structure"` - - // A friendly name or description of the Rule. You can't change the name of - // a Rule after you create it. - Name *string `min:"1" type:"string" required:"true"` - - // A unique identifier for a Rule. You use RuleId to get more information about - // a Rule (see GetRule), update a Rule (see UpdateRule), insert a Rule into - // a WebACL or delete one from a WebACL (see UpdateWebACL), or delete a Rule - // from AWS WAF (see DeleteRule). - // - // RuleId is returned by CreateRule and by ListRules. - RuleId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s RuleSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RuleSummary) GoString() string { - return s.String() -} - -// Specifies a Predicate (such as an IPSet) and indicates whether you want to -// add it to a Rule or delete it from a Rule. -type RuleUpdate struct { - _ struct{} `type:"structure"` - - // Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate - // from a Rule. - Action *string `type:"string" required:"true" enum:"ChangeAction"` - - // The ID of the Predicate (such as an IPSet) that you want to add to a Rule. - Predicate *Predicate `type:"structure" required:"true"` -} - -// String returns the string representation -func (s RuleUpdate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RuleUpdate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RuleUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RuleUpdate"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - if s.Predicate == nil { - invalidParams.Add(request.NewErrParamRequired("Predicate")) - } - if s.Predicate != nil { - if err := s.Predicate.Validate(); err != nil { - invalidParams.AddNested("Predicate", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response from a GetSampledRequests request includes a SampledHTTPRequests -// complex type that appears as SampledRequests in the response syntax. SampledHTTPRequests -// contains one SampledHTTPRequest object for each web request that is returned -// by GetSampledRequests. -type SampledHTTPRequest struct { - _ struct{} `type:"structure"` - - // The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT. - Action *string `type:"string"` - - // A complex type that contains detailed information about the request. - Request *HTTPRequest `type:"structure" required:"true"` - - // The time at which AWS WAF received the request from your AWS resource, in - // Unix time format (in seconds). - Timestamp *time.Time `type:"timestamp" timestampFormat:"unix"` - - // A value that indicates how one result in the response relates proportionally - // to other results in the response. A result that has a weight of 2 represents - // roughly twice as many CloudFront web requests as a result that has a weight - // of 1. - Weight *int64 `type:"long" required:"true"` -} - -// String returns the string representation -func (s SampledHTTPRequest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SampledHTTPRequest) GoString() string { - return s.String() -} - -// 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 -// that expression is true, the SizeConstraint is considered to match. -type SizeConstraint struct { - _ struct{} `type:"structure"` - - // The type of comparison you want AWS WAF to perform. AWS WAF uses this in - // combination with the provided Size and FieldToMatch to build an expression - // in the form of "Size ComparisonOperator size in bytes of FieldToMatch". If - // that expression is true, the SizeConstraint is considered to match. - // - // EQ: Used to test if the Size is equal to the size of the FieldToMatch - // - // NE: Used to test if the Size is not equal to the size of the FieldToMatch - // - // LE: Used to test if the Size is less than or equal to the size of the FieldToMatch - // - // LT: Used to test if the Size is strictly less than the size of the FieldToMatch - // - // GE: Used to test if the Size is greater than or equal to the size of the - // FieldToMatch - // - // GT: Used to test if the Size is strictly greater than the size of the FieldToMatch - ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` - - // Specifies where in a web request to look for TargetString. - FieldToMatch *FieldToMatch `type:"structure" required:"true"` - - // The size in bytes that you want AWS WAF to compare against the size of the - // specified FieldToMatch. AWS WAF uses this in combination with ComparisonOperator - // and FieldToMatch to build an expression in the form of "Size ComparisonOperator - // size in bytes of FieldToMatch". If that expression is true, the SizeConstraint - // is considered to match. - // - // Valid values for size are 0 - 21474836480 bytes (0 - 20 GB). - // - // If you specify URI for the value of Type, the / in the URI counts as one - // character. For example, the URI /logo.jpg is nine characters long. - Size *int64 `type:"long" required:"true"` - - // Text transformations eliminate some of the unusual formatting that attackers - // use in web requests in an effort to bypass AWS WAF. If you specify a transformation, - // AWS WAF performs the transformation on FieldToMatch before inspecting a request - // for a match. - // - // Note that if you choose BODY for the value of Type, you must choose NONE - // for TextTransformation because CloudFront forwards only the first 8192 bytes - // for inspection. - // - // NONE - // - // Specify NONE if you don't want to perform any text transformations. - // - // CMD_LINE - // - // When you're concerned that attackers are injecting an operating system command - // line command and using unusual formatting to disguise some or all of the - // command, use this option to perform the following transformations: - // - // Delete the following characters: \ " ' ^ Delete spaces before the following - // characters: / ( Replace the following characters with a space: , ; Replace - // multiple spaces with one space Convert uppercase letters (A-Z) to lowercase - // (a-z) COMPRESS_WHITE_SPACE - // - // Use this option to replace the following characters with a space character - // (decimal 32): - // - // \f, formfeed, decimal 12 \t, tab, decimal 9 \n, newline, decimal 10 \r, - // carriage return, decimal 13 \v, vertical tab, decimal 11 non-breaking space, - // decimal 160 COMPRESS_WHITE_SPACE also replaces multiple spaces with one - // space. - // - // HTML_ENTITY_DECODE - // - // Use this option to replace HTML-encoded characters with unencoded characters. - // HTML_ENTITY_DECODE performs the following operations: - // - // Replaces (ampersand)quot; with " Replaces (ampersand)nbsp; with a non-breaking - // space, decimal 160 Replaces (ampersand)lt; with a "less than" symbol Replaces - // (ampersand)gt; with > Replaces characters that are represented in hexadecimal - // format, (ampersand)#xhhhh;, with the corresponding characters Replaces characters - // that are represented in decimal format, (ampersand)#nnnn;, with the corresponding - // characters LOWERCASE - // - // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). - // - // URL_DECODE - // - // Use this option to decode a URL-encoded value. - TextTransformation *string `type:"string" required:"true" enum:"TextTransformation"` -} - -// String returns the string representation -func (s SizeConstraint) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SizeConstraint) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SizeConstraint) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SizeConstraint"} - if s.ComparisonOperator == nil { - invalidParams.Add(request.NewErrParamRequired("ComparisonOperator")) - } - if s.FieldToMatch == nil { - invalidParams.Add(request.NewErrParamRequired("FieldToMatch")) - } - if s.Size == nil { - invalidParams.Add(request.NewErrParamRequired("Size")) - } - if s.TextTransformation == nil { - invalidParams.Add(request.NewErrParamRequired("TextTransformation")) - } - if s.FieldToMatch != nil { - if err := s.FieldToMatch.Validate(); err != nil { - invalidParams.AddNested("FieldToMatch", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains SizeConstraint objects, which specify the parts -// of web requests that you want AWS WAF to inspect the size of. If a SizeConstraintSet -// contains more than one SizeConstraint object, a request only needs to match -// one constraint to be considered a match. -type SizeConstraintSet struct { - _ struct{} `type:"structure"` - - // The name, if any, of the SizeConstraintSet. - Name *string `min:"1" type:"string"` - - // A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId - // to get information about a SizeConstraintSet (see GetSizeConstraintSet), - // update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet - // into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet - // from AWS WAF (see DeleteSizeConstraintSet). - // - // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. - SizeConstraintSetId *string `min:"1" type:"string" required:"true"` - - // Specifies the parts of web requests that you want to inspect the size of. - SizeConstraints []*SizeConstraint `type:"list" required:"true"` -} - -// String returns the string representation -func (s SizeConstraintSet) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SizeConstraintSet) GoString() string { - return s.String() -} - -// The Id and Name of a SizeConstraintSet. -type SizeConstraintSetSummary struct { - _ struct{} `type:"structure"` - - // The name of the SizeConstraintSet, if any. - Name *string `min:"1" type:"string" required:"true"` - - // A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId - // to get information about a SizeConstraintSet (see GetSizeConstraintSet), - // update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet - // into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet - // from AWS WAF (see DeleteSizeConstraintSet). - // - // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. - SizeConstraintSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s SizeConstraintSetSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SizeConstraintSetSummary) GoString() string { - return s.String() -} - -// Specifies the part of a web request that you want to inspect the size of -// and indicates whether you want to add the specification to a SizeConstraintSet -// or delete it from a SizeConstraintSet. -type SizeConstraintSetUpdate struct { - _ struct{} `type:"structure"` - - // Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use - // DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet. - Action *string `type:"string" required:"true" enum:"ChangeAction"` - - // 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 - // that expression is true, the SizeConstraint is considered to match. - SizeConstraint *SizeConstraint `type:"structure" required:"true"` -} - -// String returns the string representation -func (s SizeConstraintSetUpdate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SizeConstraintSetUpdate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SizeConstraintSetUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SizeConstraintSetUpdate"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - if s.SizeConstraint == nil { - invalidParams.Add(request.NewErrParamRequired("SizeConstraint")) - } - if s.SizeConstraint != nil { - if err := s.SizeConstraint.Validate(); err != nil { - invalidParams.AddNested("SizeConstraint", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains SqlInjectionMatchTuple objects, which specify -// the parts of web requests that you want AWS WAF to inspect for snippets of -// malicious SQL code and, if you want AWS WAF to inspect a header, the name -// of the header. If a SqlInjectionMatchSet contains more than one SqlInjectionMatchTuple -// object, a request needs to include snippets of SQL code in only one of the -// specified parts of the request to be considered a match. -type SqlInjectionMatchSet struct { - _ struct{} `type:"structure"` - - // The name, if any, of the SqlInjectionMatchSet. - Name *string `min:"1" type:"string"` - - // A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId - // to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), - // update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a - // SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), - // and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet). - // - // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by - // ListSqlInjectionMatchSets. - SqlInjectionMatchSetId *string `min:"1" type:"string" required:"true"` - - // Specifies the parts of web requests that you want to inspect for snippets - // of malicious SQL code. - SqlInjectionMatchTuples []*SqlInjectionMatchTuple `type:"list" required:"true"` -} - -// String returns the string representation -func (s SqlInjectionMatchSet) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SqlInjectionMatchSet) GoString() string { - return s.String() -} - -// The Id and Name of a SqlInjectionMatchSet. -type SqlInjectionMatchSetSummary struct { - _ struct{} `type:"structure"` - - // The name of the SqlInjectionMatchSet, if any, specified by Id. - Name *string `min:"1" type:"string" required:"true"` - - // A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId - // to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), - // update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a - // SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), - // and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet). - // - // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by - // ListSqlInjectionMatchSets. - SqlInjectionMatchSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s SqlInjectionMatchSetSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SqlInjectionMatchSetSummary) GoString() string { - return s.String() -} - -// Specifies the part of a web request that you want to inspect for snippets -// of malicious SQL code and indicates whether you want to add the specification -// to a SqlInjectionMatchSet or delete it from a SqlInjectionMatchSet. -type SqlInjectionMatchSetUpdate struct { - _ struct{} `type:"structure"` - - // Specify INSERT to add a SqlInjectionMatchSetUpdate to a SqlInjectionMatchSet. - // Use DELETE to remove a SqlInjectionMatchSetUpdate from a SqlInjectionMatchSet. - Action *string `type:"string" required:"true" enum:"ChangeAction"` - - // Specifies the part of a web request that you want AWS WAF to inspect for - // snippets of malicious SQL code and, if you want AWS WAF to inspect a header, - // the name of the header. - SqlInjectionMatchTuple *SqlInjectionMatchTuple `type:"structure" required:"true"` -} - -// String returns the string representation -func (s SqlInjectionMatchSetUpdate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SqlInjectionMatchSetUpdate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SqlInjectionMatchSetUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SqlInjectionMatchSetUpdate"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - if s.SqlInjectionMatchTuple == nil { - invalidParams.Add(request.NewErrParamRequired("SqlInjectionMatchTuple")) - } - if s.SqlInjectionMatchTuple != nil { - if err := s.SqlInjectionMatchTuple.Validate(); err != nil { - invalidParams.AddNested("SqlInjectionMatchTuple", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Specifies the part of a web request that you want AWS WAF to inspect for -// snippets of malicious SQL code and, if you want AWS WAF to inspect a header, -// the name of the header. -type SqlInjectionMatchTuple struct { - _ struct{} `type:"structure"` - - // Specifies where in a web request to look for TargetString. - FieldToMatch *FieldToMatch `type:"structure" required:"true"` - - // Text transformations eliminate some of the unusual formatting that attackers - // use in web requests in an effort to bypass AWS WAF. If you specify a transformation, - // AWS WAF performs the transformation on FieldToMatch before inspecting a request - // for a match. - // - // CMD_LINE - // - // When you're concerned that attackers are injecting an operating system commandline - // command and using unusual formatting to disguise some or all of the command, - // use this option to perform the following transformations: - // - // Delete the following characters: \ " ' ^ Delete spaces before the following - // characters: / ( Replace the following characters with a space: , ; Replace - // multiple spaces with one space Convert uppercase letters (A-Z) to lowercase - // (a-z) COMPRESS_WHITE_SPACE - // - // Use this option to replace the following characters with a space character - // (decimal 32): - // - // \f, formfeed, decimal 12 \t, tab, decimal 9 \n, newline, decimal 10 \r, - // carriage return, decimal 13 \v, vertical tab, decimal 11 non-breaking space, - // decimal 160 COMPRESS_WHITE_SPACE also replaces multiple spaces with one - // space. - // - // HTML_ENTITY_DECODE - // - // Use this option to replace HTML-encoded characters with unencoded characters. - // HTML_ENTITY_DECODE performs the following operations: - // - // Replaces (ampersand)quot; with " Replaces (ampersand)nbsp; with a non-breaking - // space, decimal 160 Replaces (ampersand)lt; with a "less than" symbol Replaces - // (ampersand)gt; with > Replaces characters that are represented in hexadecimal - // format, (ampersand)#xhhhh;, with the corresponding characters Replaces characters - // that are represented in decimal format, (ampersand)#nnnn;, with the corresponding - // characters LOWERCASE - // - // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). - // - // URL_DECODE - // - // Use this option to decode a URL-encoded value. - // - // NONE - // - // Specify NONE if you don't want to perform any text transformations. - TextTransformation *string `type:"string" required:"true" enum:"TextTransformation"` -} - -// String returns the string representation -func (s SqlInjectionMatchTuple) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SqlInjectionMatchTuple) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *SqlInjectionMatchTuple) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SqlInjectionMatchTuple"} - if s.FieldToMatch == nil { - invalidParams.Add(request.NewErrParamRequired("FieldToMatch")) - } - if s.TextTransformation == nil { - invalidParams.Add(request.NewErrParamRequired("TextTransformation")) - } - if s.FieldToMatch != nil { - if err := s.FieldToMatch.Validate(); err != nil { - invalidParams.AddNested("FieldToMatch", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// In a GetSampledRequests request, the StartTime and EndTime objects specify -// the time range for which you want AWS WAF to return a sample of web requests. -// -// In a GetSampledRequests response, the StartTime and EndTime objects specify -// the time range for which AWS WAF actually returned a sample of web requests. -// AWS WAF gets the specified number of requests from among the first 5,000 -// requests that your AWS resource receives during the specified time period. -// If your resource receives more than 5,000 requests during that period, AWS -// WAF stops sampling after the 5,000th request. In that case, EndTime is the -// time that AWS WAF received the 5,000th request. -type TimeWindow struct { - _ struct{} `type:"structure"` - - // The end of the time range from which you want GetSampledRequests to return - // a sample of the requests that your AWS resource received. You can specify - // any time range in the previous three hours. - EndTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` - - // The beginning of the time range from which you want GetSampledRequests to - // return a sample of the requests that your AWS resource received. You can - // specify any time range in the previous three hours. - StartTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` -} - -// String returns the string representation -func (s TimeWindow) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TimeWindow) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TimeWindow) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TimeWindow"} - if s.EndTime == nil { - invalidParams.Add(request.NewErrParamRequired("EndTime")) - } - if s.StartTime == nil { - invalidParams.Add(request.NewErrParamRequired("StartTime")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateByteMatchSetInput struct { - _ struct{} `type:"structure"` - - // The ByteMatchSetId of the ByteMatchSet that you want to update. ByteMatchSetId - // is returned by CreateByteMatchSet and by ListByteMatchSets. - ByteMatchSetId *string `min:"1" type:"string" required:"true"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // An array of ByteMatchSetUpdate objects that you want to insert into or delete - // from a ByteMatchSet. For more information, see the applicable data types: - // - // ByteMatchSetUpdate: Contains Action and ByteMatchTuple ByteMatchTuple: - // Contains FieldToMatch, PositionalConstraint, TargetString, and TextTransformation - // FieldToMatch: Contains Data and Type - Updates []*ByteMatchSetUpdate `type:"list" required:"true"` -} - -// String returns the string representation -func (s UpdateByteMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateByteMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateByteMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateByteMatchSetInput"} - if s.ByteMatchSetId == nil { - invalidParams.Add(request.NewErrParamRequired("ByteMatchSetId")) - } - if s.ByteMatchSetId != nil && len(*s.ByteMatchSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ByteMatchSetId", 1)) - } - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.Updates == nil { - invalidParams.Add(request.NewErrParamRequired("Updates")) - } - if s.Updates != nil { - for i, v := range s.Updates { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Updates", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateByteMatchSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the UpdateByteMatchSet request. You - // can also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s UpdateByteMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateByteMatchSetOutput) GoString() string { - return s.String() -} - -type UpdateIPSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The IPSetId of the IPSet that you want to update. IPSetId is returned by - // CreateIPSet and by ListIPSets. - IPSetId *string `min:"1" type:"string" required:"true"` - - // An array of IPSetUpdate objects that you want to insert into or delete from - // an IPSet. For more information, see the applicable data types: - // - // IPSetUpdate: Contains Action and IPSetDescriptor IPSetDescriptor: Contains - // Type and Value - Updates []*IPSetUpdate `type:"list" required:"true"` -} - -// String returns the string representation -func (s UpdateIPSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateIPSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateIPSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateIPSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.IPSetId == nil { - invalidParams.Add(request.NewErrParamRequired("IPSetId")) - } - if s.IPSetId != nil && len(*s.IPSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IPSetId", 1)) - } - if s.Updates == nil { - invalidParams.Add(request.NewErrParamRequired("Updates")) - } - if s.Updates != nil { - for i, v := range s.Updates { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Updates", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateIPSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the UpdateIPSet request. You can - // also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s UpdateIPSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateIPSetOutput) GoString() string { - return s.String() -} - -type UpdateRuleInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The RuleId of the Rule that you want to update. RuleId is returned by CreateRule - // and by ListRules. - RuleId *string `min:"1" type:"string" required:"true"` - - // An array of RuleUpdate objects that you want to insert into or delete from - // a Rule. For more information, see the applicable data types: - // - // RuleUpdate: Contains Action and Predicate Predicate: Contains DataId, Negated, - // and Type FieldToMatch: Contains Data and Type - Updates []*RuleUpdate `type:"list" required:"true"` -} - -// String returns the string representation -func (s UpdateRuleInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateRuleInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateRuleInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.RuleId == nil { - invalidParams.Add(request.NewErrParamRequired("RuleId")) - } - if s.RuleId != nil && len(*s.RuleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleId", 1)) - } - if s.Updates == nil { - invalidParams.Add(request.NewErrParamRequired("Updates")) - } - if s.Updates != nil { - for i, v := range s.Updates { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Updates", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateRuleOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the UpdateRule request. You can also - // use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s UpdateRuleOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateRuleOutput) GoString() string { - return s.String() -} - -type UpdateSizeConstraintSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The SizeConstraintSetId of the SizeConstraintSet that you want to update. - // SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets. - SizeConstraintSetId *string `min:"1" type:"string" required:"true"` - - // An array of SizeConstraintSetUpdate objects that you want to insert into - // or delete from a SizeConstraintSet. For more information, see the applicable - // data types: - // - // SizeConstraintSetUpdate: Contains Action and SizeConstraint SizeConstraint: - // Contains FieldToMatch, TextTransformation, ComparisonOperator, and Size FieldToMatch: - // Contains Data and Type - Updates []*SizeConstraintSetUpdate `type:"list" required:"true"` -} - -// String returns the string representation -func (s UpdateSizeConstraintSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateSizeConstraintSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSizeConstraintSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSizeConstraintSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.SizeConstraintSetId == nil { - invalidParams.Add(request.NewErrParamRequired("SizeConstraintSetId")) - } - if s.SizeConstraintSetId != nil && len(*s.SizeConstraintSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SizeConstraintSetId", 1)) - } - if s.Updates == nil { - invalidParams.Add(request.NewErrParamRequired("Updates")) - } - if s.Updates != nil { - for i, v := range s.Updates { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Updates", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateSizeConstraintSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the UpdateSizeConstraintSet request. - // You can also use this value to query the status of the request. For more - // information, see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s UpdateSizeConstraintSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateSizeConstraintSetOutput) GoString() string { - return s.String() -} - -// A request to update a SqlInjectionMatchSet. -type UpdateSqlInjectionMatchSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to update. - // SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets. - SqlInjectionMatchSetId *string `min:"1" type:"string" required:"true"` - - // An array of SqlInjectionMatchSetUpdate objects that you want to insert into - // or delete from a SqlInjectionMatchSet. For more information, see the applicable - // data types: - // - // SqlInjectionMatchSetUpdate: Contains Action and SqlInjectionMatchTuple - // SqlInjectionMatchTuple: Contains FieldToMatch and TextTransformation FieldToMatch: - // Contains Data and Type - Updates []*SqlInjectionMatchSetUpdate `type:"list" required:"true"` -} - -// String returns the string representation -func (s UpdateSqlInjectionMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateSqlInjectionMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSqlInjectionMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSqlInjectionMatchSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.SqlInjectionMatchSetId == nil { - invalidParams.Add(request.NewErrParamRequired("SqlInjectionMatchSetId")) - } - if s.SqlInjectionMatchSetId != nil && len(*s.SqlInjectionMatchSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SqlInjectionMatchSetId", 1)) - } - if s.Updates == nil { - invalidParams.Add(request.NewErrParamRequired("Updates")) - } - if s.Updates != nil { - for i, v := range s.Updates { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Updates", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to an UpdateSqlInjectionMatchSets request. -type UpdateSqlInjectionMatchSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the UpdateSqlInjectionMatchSet request. - // You can also use this value to query the status of the request. For more - // information, see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s UpdateSqlInjectionMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateSqlInjectionMatchSetOutput) GoString() string { - return s.String() -} - -type UpdateWebACLInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // For the action that is associated with a rule in a WebACL, specifies the - // action that you want AWS WAF to perform when a web request matches all of - // the conditions in a rule. For the default action in a WebACL, specifies the - // action that you want AWS WAF to take when a web request doesn't match all - // of the conditions in any of the rules in a WebACL. - DefaultAction *WafAction `type:"structure"` - - // An array of updates to make to the WebACL. - // - // An array of WebACLUpdate objects that you want to insert into or delete - // from a WebACL. For more information, see the applicable data types: - // - // WebACLUpdate: Contains Action and ActivatedRule ActivatedRule: Contains - // Action, Priority, and RuleId WafAction: Contains Type - Updates []*WebACLUpdate `type:"list"` - - // The WebACLId of the WebACL that you want to update. WebACLId is returned - // by CreateWebACL and by ListWebACLs. - WebACLId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateWebACLInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateWebACLInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateWebACLInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateWebACLInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.WebACLId == nil { - invalidParams.Add(request.NewErrParamRequired("WebACLId")) - } - if s.WebACLId != nil && len(*s.WebACLId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WebACLId", 1)) - } - if s.DefaultAction != nil { - if err := s.DefaultAction.Validate(); err != nil { - invalidParams.AddNested("DefaultAction", err.(request.ErrInvalidParams)) - } - } - if s.Updates != nil { - for i, v := range s.Updates { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Updates", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -type UpdateWebACLOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the UpdateWebACL request. You can - // also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s UpdateWebACLOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateWebACLOutput) GoString() string { - return s.String() -} - -// A request to update an XssMatchSet. -type UpdateXssMatchSetInput struct { - _ struct{} `type:"structure"` - - // The value returned by the most recent call to GetChangeToken. - ChangeToken *string `type:"string" required:"true"` - - // An array of XssMatchSetUpdate objects that you want to insert into or delete - // from a XssMatchSet. For more information, see the applicable data types: - // - // XssMatchSetUpdate: Contains Action and XssMatchTuple XssMatchTuple: Contains - // FieldToMatch and TextTransformation FieldToMatch: Contains Data and Type - Updates []*XssMatchSetUpdate `type:"list" required:"true"` - - // The XssMatchSetId of the XssMatchSet that you want to update. XssMatchSetId - // is returned by CreateXssMatchSet and by ListXssMatchSets. - XssMatchSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s UpdateXssMatchSetInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateXssMatchSetInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateXssMatchSetInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateXssMatchSetInput"} - if s.ChangeToken == nil { - invalidParams.Add(request.NewErrParamRequired("ChangeToken")) - } - if s.Updates == nil { - invalidParams.Add(request.NewErrParamRequired("Updates")) - } - if s.XssMatchSetId == nil { - invalidParams.Add(request.NewErrParamRequired("XssMatchSetId")) - } - if s.XssMatchSetId != nil && len(*s.XssMatchSetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("XssMatchSetId", 1)) - } - if s.Updates != nil { - for i, v := range s.Updates { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Updates", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The response to an UpdateXssMatchSets request. -type UpdateXssMatchSetOutput struct { - _ struct{} `type:"structure"` - - // The ChangeToken that you used to submit the UpdateXssMatchSet request. You - // can also use this value to query the status of the request. For more information, - // see GetChangeTokenStatus. - ChangeToken *string `type:"string"` -} - -// String returns the string representation -func (s UpdateXssMatchSetOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateXssMatchSetOutput) GoString() string { - return s.String() -} - -// For the action that is associated with a rule in a WebACL, specifies the -// action that you want AWS WAF to perform when a web request matches all of -// the conditions in a rule. For the default action in a WebACL, specifies the -// action that you want AWS WAF to take when a web request doesn't match all -// of the conditions in any of the rules in a WebACL. -type WafAction struct { - _ struct{} `type:"structure"` - - // Specifies how you want AWS WAF to respond to requests that match the settings - // in a Rule. Valid settings include the following: - // - // ALLOW: AWS WAF allows requests BLOCK: AWS WAF blocks requests COUNT: AWS - // WAF increments a counter of the requests that match all of the conditions - // in the rule. AWS WAF then continues to inspect the web request based on the - // remaining rules in the web ACL. You can't specify COUNT for the default action - // for a WebACL. - Type *string `type:"string" required:"true" enum:"WafActionType"` -} - -// String returns the string representation -func (s WafAction) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s WafAction) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *WafAction) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "WafAction"} - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Contains the Rules that identify the requests that you want to allow, block, -// or count. In a WebACL, you also specify a default action (ALLOW or BLOCK), -// and the action for each Rule that you add to a WebACL, for example, block -// requests from specified IP addresses or block requests from specified referrers. -// You also associate the WebACL with a CloudFront distribution to identify -// the requests that you want AWS WAF to filter. If you add more than one Rule -// to a WebACL, a request needs to match only one of the specifications to be -// allowed, blocked, or counted. For more information, see UpdateWebACL. -type WebACL struct { - _ struct{} `type:"structure"` - - // The action to perform if none of the Rules contained in the WebACL match. - // The action is specified by the WafAction object. - DefaultAction *WafAction `type:"structure" required:"true"` - - MetricName *string `type:"string"` - - // A friendly name or description of the WebACL. You can't change the name of - // a WebACL after you create it. - Name *string `min:"1" type:"string"` - - // An array that contains the action for each Rule in a WebACL, the priority - // of the Rule, and the ID of the Rule. - Rules []*ActivatedRule `type:"list" required:"true"` - - // A unique identifier for a WebACL. You use WebACLId to get information about - // a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete - // a WebACL from AWS WAF (see DeleteWebACL). - // - // WebACLId is returned by CreateWebACL and by ListWebACLs. - WebACLId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s WebACL) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s WebACL) GoString() string { - return s.String() -} - -// Contains the identifier and the name or description of the WebACL. -type WebACLSummary struct { - _ struct{} `type:"structure"` - - // A friendly name or description of the WebACL. You can't change the name of - // a WebACL after you create it. - Name *string `min:"1" type:"string" required:"true"` - - // A unique identifier for a WebACL. You use WebACLId to get information about - // a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete - // a WebACL from AWS WAF (see DeleteWebACL). - // - // WebACLId is returned by CreateWebACL and by ListWebACLs. - WebACLId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s WebACLSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s WebACLSummary) GoString() string { - return s.String() -} - -// Specifies whether to insert a Rule into or delete a Rule from a WebACL. -type WebACLUpdate struct { - _ struct{} `type:"structure"` - - // Specifies whether to insert a Rule into or delete a Rule from a WebACL. - Action *string `type:"string" required:"true" enum:"ChangeAction"` - - // The ActivatedRule object in an UpdateWebACL request specifies a Rule that - // you want to insert or delete, the priority of the Rule in the WebACL, and - // the action that you want AWS WAF to take when a web request matches the Rule - // (ALLOW, BLOCK, or COUNT). - // - // To specify whether to insert or delete a Rule, use the Action parameter - // in the WebACLUpdate data type. - ActivatedRule *ActivatedRule `type:"structure" required:"true"` -} - -// String returns the string representation -func (s WebACLUpdate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s WebACLUpdate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *WebACLUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "WebACLUpdate"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - if s.ActivatedRule == nil { - invalidParams.Add(request.NewErrParamRequired("ActivatedRule")) - } - if s.ActivatedRule != nil { - if err := s.ActivatedRule.Validate(); err != nil { - invalidParams.AddNested("ActivatedRule", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// A complex type that contains XssMatchTuple objects, which specify the parts -// of web requests that you want AWS WAF to inspect for cross-site scripting -// attacks and, if you want AWS WAF to inspect a header, the name of the header. -// If a XssMatchSet contains more than one XssMatchTuple object, a request needs -// to include cross-site scripting attacks in only one of the specified parts -// of the request to be considered a match. -type XssMatchSet struct { - _ struct{} `type:"structure"` - - // The name, if any, of the XssMatchSet. - Name *string `min:"1" type:"string"` - - // A unique identifier for an XssMatchSet. You use XssMatchSetId to get information - // about an XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), - // insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), - // and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet). - // - // XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. - XssMatchSetId *string `min:"1" type:"string" required:"true"` - - // Specifies the parts of web requests that you want to inspect for cross-site - // scripting attacks. - XssMatchTuples []*XssMatchTuple `type:"list" required:"true"` -} - -// String returns the string representation -func (s XssMatchSet) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s XssMatchSet) GoString() string { - return s.String() -} - -// The Id and Name of an XssMatchSet. -type XssMatchSetSummary struct { - _ struct{} `type:"structure"` - - // The name of the XssMatchSet, if any, specified by Id. - Name *string `min:"1" type:"string" required:"true"` - - // A unique identifier for an XssMatchSet. You use XssMatchSetId to get information - // about a XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), - // insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), - // and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet). - // - // XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets. - XssMatchSetId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s XssMatchSetSummary) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s XssMatchSetSummary) GoString() string { - return s.String() -} - -// Specifies the part of a web request that you want to inspect for cross-site -// scripting attacks and indicates whether you want to add the specification -// to an XssMatchSet or delete it from an XssMatchSet. -type XssMatchSetUpdate struct { - _ struct{} `type:"structure"` - - // Specify INSERT to add a XssMatchSetUpdate to an XssMatchSet. Use DELETE to - // remove a XssMatchSetUpdate from an XssMatchSet. - Action *string `type:"string" required:"true" enum:"ChangeAction"` - - // Specifies the part of a web request that you want AWS WAF to inspect for - // cross-site scripting attacks and, if you want AWS WAF to inspect a header, - // the name of the header. - XssMatchTuple *XssMatchTuple `type:"structure" required:"true"` -} - -// String returns the string representation -func (s XssMatchSetUpdate) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s XssMatchSetUpdate) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *XssMatchSetUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "XssMatchSetUpdate"} - if s.Action == nil { - invalidParams.Add(request.NewErrParamRequired("Action")) - } - if s.XssMatchTuple == nil { - invalidParams.Add(request.NewErrParamRequired("XssMatchTuple")) - } - if s.XssMatchTuple != nil { - if err := s.XssMatchTuple.Validate(); err != nil { - invalidParams.AddNested("XssMatchTuple", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// Specifies the part of a web request that you want AWS WAF to inspect for -// cross-site scripting attacks and, if you want AWS WAF to inspect a header, -// the name of the header. -type XssMatchTuple struct { - _ struct{} `type:"structure"` - - // Specifies where in a web request to look for TargetString. - FieldToMatch *FieldToMatch `type:"structure" required:"true"` - - // Text transformations eliminate some of the unusual formatting that attackers - // use in web requests in an effort to bypass AWS WAF. If you specify a transformation, - // AWS WAF performs the transformation on FieldToMatch before inspecting a request - // for a match. - // - // CMD_LINE - // - // When you're concerned that attackers are injecting an operating system commandline - // command and using unusual formatting to disguise some or all of the command, - // use this option to perform the following transformations: - // - // Delete the following characters: \ " ' ^ Delete spaces before the following - // characters: / ( Replace the following characters with a space: , ; Replace - // multiple spaces with one space Convert uppercase letters (A-Z) to lowercase - // (a-z) COMPRESS_WHITE_SPACE - // - // Use this option to replace the following characters with a space character - // (decimal 32): - // - // \f, formfeed, decimal 12 \t, tab, decimal 9 \n, newline, decimal 10 \r, - // carriage return, decimal 13 \v, vertical tab, decimal 11 non-breaking space, - // decimal 160 COMPRESS_WHITE_SPACE also replaces multiple spaces with one - // space. - // - // HTML_ENTITY_DECODE - // - // Use this option to replace HTML-encoded characters with unencoded characters. - // HTML_ENTITY_DECODE performs the following operations: - // - // Replaces (ampersand)quot; with " Replaces (ampersand)nbsp; with a non-breaking - // space, decimal 160 Replaces (ampersand)lt; with a "less than" symbol Replaces - // (ampersand)gt; with > Replaces characters that are represented in hexadecimal - // format, (ampersand)#xhhhh;, with the corresponding characters Replaces characters - // that are represented in decimal format, (ampersand)#nnnn;, with the corresponding - // characters LOWERCASE - // - // Use this option to convert uppercase letters (A-Z) to lowercase (a-z). - // - // URL_DECODE - // - // Use this option to decode a URL-encoded value. - // - // NONE - // - // Specify NONE if you don't want to perform any text transformations. - TextTransformation *string `type:"string" required:"true" enum:"TextTransformation"` -} - -// String returns the string representation -func (s XssMatchTuple) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s XssMatchTuple) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *XssMatchTuple) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "XssMatchTuple"} - if s.FieldToMatch == nil { - invalidParams.Add(request.NewErrParamRequired("FieldToMatch")) - } - if s.TextTransformation == nil { - invalidParams.Add(request.NewErrParamRequired("TextTransformation")) - } - if s.FieldToMatch != nil { - if err := s.FieldToMatch.Validate(); err != nil { - invalidParams.AddNested("FieldToMatch", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -const ( - // @enum ChangeAction - ChangeActionInsert = "INSERT" - // @enum ChangeAction - ChangeActionDelete = "DELETE" -) - -const ( - // @enum ChangeTokenStatus - ChangeTokenStatusProvisioned = "PROVISIONED" - // @enum ChangeTokenStatus - ChangeTokenStatusPending = "PENDING" - // @enum ChangeTokenStatus - ChangeTokenStatusInsync = "INSYNC" -) - -const ( - // @enum ComparisonOperator - ComparisonOperatorEq = "EQ" - // @enum ComparisonOperator - ComparisonOperatorNe = "NE" - // @enum ComparisonOperator - ComparisonOperatorLe = "LE" - // @enum ComparisonOperator - ComparisonOperatorLt = "LT" - // @enum ComparisonOperator - ComparisonOperatorGe = "GE" - // @enum ComparisonOperator - ComparisonOperatorGt = "GT" -) - -const ( - // @enum IPSetDescriptorType - IPSetDescriptorTypeIpv4 = "IPV4" -) - -const ( - // @enum MatchFieldType - MatchFieldTypeUri = "URI" - // @enum MatchFieldType - MatchFieldTypeQueryString = "QUERY_STRING" - // @enum MatchFieldType - MatchFieldTypeHeader = "HEADER" - // @enum MatchFieldType - MatchFieldTypeMethod = "METHOD" - // @enum MatchFieldType - MatchFieldTypeBody = "BODY" -) - -const ( - // @enum ParameterExceptionField - ParameterExceptionFieldChangeAction = "CHANGE_ACTION" - // @enum ParameterExceptionField - ParameterExceptionFieldWafAction = "WAF_ACTION" - // @enum ParameterExceptionField - ParameterExceptionFieldPredicateType = "PREDICATE_TYPE" - // @enum ParameterExceptionField - ParameterExceptionFieldIpsetType = "IPSET_TYPE" - // @enum ParameterExceptionField - ParameterExceptionFieldByteMatchFieldType = "BYTE_MATCH_FIELD_TYPE" - // @enum ParameterExceptionField - ParameterExceptionFieldSqlInjectionMatchFieldType = "SQL_INJECTION_MATCH_FIELD_TYPE" - // @enum ParameterExceptionField - ParameterExceptionFieldByteMatchTextTransformation = "BYTE_MATCH_TEXT_TRANSFORMATION" - // @enum ParameterExceptionField - ParameterExceptionFieldByteMatchPositionalConstraint = "BYTE_MATCH_POSITIONAL_CONSTRAINT" - // @enum ParameterExceptionField - ParameterExceptionFieldSizeConstraintComparisonOperator = "SIZE_CONSTRAINT_COMPARISON_OPERATOR" -) - -const ( - // @enum ParameterExceptionReason - ParameterExceptionReasonInvalidOption = "INVALID_OPTION" - // @enum ParameterExceptionReason - ParameterExceptionReasonIllegalCombination = "ILLEGAL_COMBINATION" -) - -const ( - // @enum PositionalConstraint - PositionalConstraintExactly = "EXACTLY" - // @enum PositionalConstraint - PositionalConstraintStartsWith = "STARTS_WITH" - // @enum PositionalConstraint - PositionalConstraintEndsWith = "ENDS_WITH" - // @enum PositionalConstraint - PositionalConstraintContains = "CONTAINS" - // @enum PositionalConstraint - PositionalConstraintContainsWord = "CONTAINS_WORD" -) - -const ( - // @enum PredicateType - PredicateTypeIpmatch = "IPMatch" - // @enum PredicateType - PredicateTypeByteMatch = "ByteMatch" - // @enum PredicateType - PredicateTypeSqlInjectionMatch = "SqlInjectionMatch" - // @enum PredicateType - PredicateTypeSizeConstraint = "SizeConstraint" - // @enum PredicateType - PredicateTypeXssMatch = "XssMatch" -) - -const ( - // @enum TextTransformation - TextTransformationNone = "NONE" - // @enum TextTransformation - TextTransformationCompressWhiteSpace = "COMPRESS_WHITE_SPACE" - // @enum TextTransformation - TextTransformationHtmlEntityDecode = "HTML_ENTITY_DECODE" - // @enum TextTransformation - TextTransformationLowercase = "LOWERCASE" - // @enum TextTransformation - TextTransformationCmdLine = "CMD_LINE" - // @enum TextTransformation - TextTransformationUrlDecode = "URL_DECODE" -) - -const ( - // @enum WafActionType - WafActionTypeBlock = "BLOCK" - // @enum WafActionType - WafActionTypeAllow = "ALLOW" - // @enum WafActionType - WafActionTypeCount = "COUNT" -) diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go deleted file mode 100644 index d5aed3d0c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/examples_test.go +++ /dev/null @@ -1,868 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package waf_test - -import ( - "bytes" - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/waf" -) - -var _ time.Duration -var _ bytes.Buffer - -func ExampleWAF_CreateByteMatchSet() { - svc := waf.New(session.New()) - - params := &waf.CreateByteMatchSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - Name: aws.String("ResourceName"), // Required - } - resp, err := svc.CreateByteMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_CreateIPSet() { - svc := waf.New(session.New()) - - params := &waf.CreateIPSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - Name: aws.String("ResourceName"), // Required - } - resp, err := svc.CreateIPSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_CreateRule() { - svc := waf.New(session.New()) - - params := &waf.CreateRuleInput{ - ChangeToken: aws.String("ChangeToken"), // Required - MetricName: aws.String("MetricName"), // Required - Name: aws.String("ResourceName"), // Required - } - resp, err := svc.CreateRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_CreateSizeConstraintSet() { - svc := waf.New(session.New()) - - params := &waf.CreateSizeConstraintSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - Name: aws.String("ResourceName"), // Required - } - resp, err := svc.CreateSizeConstraintSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_CreateSqlInjectionMatchSet() { - svc := waf.New(session.New()) - - params := &waf.CreateSqlInjectionMatchSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - Name: aws.String("ResourceName"), // Required - } - resp, err := svc.CreateSqlInjectionMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_CreateWebACL() { - svc := waf.New(session.New()) - - params := &waf.CreateWebACLInput{ - ChangeToken: aws.String("ChangeToken"), // Required - DefaultAction: &waf.WafAction{ // Required - Type: aws.String("WafActionType"), // Required - }, - MetricName: aws.String("MetricName"), // Required - Name: aws.String("ResourceName"), // Required - } - resp, err := svc.CreateWebACL(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_CreateXssMatchSet() { - svc := waf.New(session.New()) - - params := &waf.CreateXssMatchSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - Name: aws.String("ResourceName"), // Required - } - resp, err := svc.CreateXssMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_DeleteByteMatchSet() { - svc := waf.New(session.New()) - - params := &waf.DeleteByteMatchSetInput{ - ByteMatchSetId: aws.String("ResourceId"), // Required - ChangeToken: aws.String("ChangeToken"), // Required - } - resp, err := svc.DeleteByteMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_DeleteIPSet() { - svc := waf.New(session.New()) - - params := &waf.DeleteIPSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - IPSetId: aws.String("ResourceId"), // Required - } - resp, err := svc.DeleteIPSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_DeleteRule() { - svc := waf.New(session.New()) - - params := &waf.DeleteRuleInput{ - ChangeToken: aws.String("ChangeToken"), // Required - RuleId: aws.String("ResourceId"), // Required - } - resp, err := svc.DeleteRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_DeleteSizeConstraintSet() { - svc := waf.New(session.New()) - - params := &waf.DeleteSizeConstraintSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - SizeConstraintSetId: aws.String("ResourceId"), // Required - } - resp, err := svc.DeleteSizeConstraintSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_DeleteSqlInjectionMatchSet() { - svc := waf.New(session.New()) - - params := &waf.DeleteSqlInjectionMatchSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - SqlInjectionMatchSetId: aws.String("ResourceId"), // Required - } - resp, err := svc.DeleteSqlInjectionMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_DeleteWebACL() { - svc := waf.New(session.New()) - - params := &waf.DeleteWebACLInput{ - ChangeToken: aws.String("ChangeToken"), // Required - WebACLId: aws.String("ResourceId"), // Required - } - resp, err := svc.DeleteWebACL(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_DeleteXssMatchSet() { - svc := waf.New(session.New()) - - params := &waf.DeleteXssMatchSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - XssMatchSetId: aws.String("ResourceId"), // Required - } - resp, err := svc.DeleteXssMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_GetByteMatchSet() { - svc := waf.New(session.New()) - - params := &waf.GetByteMatchSetInput{ - ByteMatchSetId: aws.String("ResourceId"), // Required - } - resp, err := svc.GetByteMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_GetChangeToken() { - svc := waf.New(session.New()) - - var params *waf.GetChangeTokenInput - resp, err := svc.GetChangeToken(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_GetChangeTokenStatus() { - svc := waf.New(session.New()) - - params := &waf.GetChangeTokenStatusInput{ - ChangeToken: aws.String("ChangeToken"), // Required - } - resp, err := svc.GetChangeTokenStatus(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_GetIPSet() { - svc := waf.New(session.New()) - - params := &waf.GetIPSetInput{ - IPSetId: aws.String("ResourceId"), // Required - } - resp, err := svc.GetIPSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_GetRule() { - svc := waf.New(session.New()) - - params := &waf.GetRuleInput{ - RuleId: aws.String("ResourceId"), // Required - } - resp, err := svc.GetRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_GetSampledRequests() { - svc := waf.New(session.New()) - - params := &waf.GetSampledRequestsInput{ - MaxItems: aws.Int64(1), // Required - RuleId: aws.String("ResourceId"), // Required - TimeWindow: &waf.TimeWindow{ // Required - EndTime: aws.Time(time.Now()), // Required - StartTime: aws.Time(time.Now()), // Required - }, - WebAclId: aws.String("ResourceId"), // Required - } - resp, err := svc.GetSampledRequests(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_GetSizeConstraintSet() { - svc := waf.New(session.New()) - - params := &waf.GetSizeConstraintSetInput{ - SizeConstraintSetId: aws.String("ResourceId"), // Required - } - resp, err := svc.GetSizeConstraintSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_GetSqlInjectionMatchSet() { - svc := waf.New(session.New()) - - params := &waf.GetSqlInjectionMatchSetInput{ - SqlInjectionMatchSetId: aws.String("ResourceId"), // Required - } - resp, err := svc.GetSqlInjectionMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_GetWebACL() { - svc := waf.New(session.New()) - - params := &waf.GetWebACLInput{ - WebACLId: aws.String("ResourceId"), // Required - } - resp, err := svc.GetWebACL(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_GetXssMatchSet() { - svc := waf.New(session.New()) - - params := &waf.GetXssMatchSetInput{ - XssMatchSetId: aws.String("ResourceId"), // Required - } - resp, err := svc.GetXssMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_ListByteMatchSets() { - svc := waf.New(session.New()) - - params := &waf.ListByteMatchSetsInput{ - Limit: aws.Int64(1), // Required - NextMarker: aws.String("NextMarker"), - } - resp, err := svc.ListByteMatchSets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_ListIPSets() { - svc := waf.New(session.New()) - - params := &waf.ListIPSetsInput{ - Limit: aws.Int64(1), // Required - NextMarker: aws.String("NextMarker"), - } - resp, err := svc.ListIPSets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_ListRules() { - svc := waf.New(session.New()) - - params := &waf.ListRulesInput{ - Limit: aws.Int64(1), // Required - NextMarker: aws.String("NextMarker"), - } - resp, err := svc.ListRules(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_ListSizeConstraintSets() { - svc := waf.New(session.New()) - - params := &waf.ListSizeConstraintSetsInput{ - Limit: aws.Int64(1), // Required - NextMarker: aws.String("NextMarker"), - } - resp, err := svc.ListSizeConstraintSets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_ListSqlInjectionMatchSets() { - svc := waf.New(session.New()) - - params := &waf.ListSqlInjectionMatchSetsInput{ - Limit: aws.Int64(1), // Required - NextMarker: aws.String("NextMarker"), - } - resp, err := svc.ListSqlInjectionMatchSets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_ListWebACLs() { - svc := waf.New(session.New()) - - params := &waf.ListWebACLsInput{ - Limit: aws.Int64(1), // Required - NextMarker: aws.String("NextMarker"), - } - resp, err := svc.ListWebACLs(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_ListXssMatchSets() { - svc := waf.New(session.New()) - - params := &waf.ListXssMatchSetsInput{ - Limit: aws.Int64(1), // Required - NextMarker: aws.String("NextMarker"), - } - resp, err := svc.ListXssMatchSets(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_UpdateByteMatchSet() { - svc := waf.New(session.New()) - - params := &waf.UpdateByteMatchSetInput{ - ByteMatchSetId: aws.String("ResourceId"), // Required - ChangeToken: aws.String("ChangeToken"), // Required - Updates: []*waf.ByteMatchSetUpdate{ // Required - { // Required - Action: aws.String("ChangeAction"), // Required - ByteMatchTuple: &waf.ByteMatchTuple{ // Required - FieldToMatch: &waf.FieldToMatch{ // Required - Type: aws.String("MatchFieldType"), // Required - Data: aws.String("MatchFieldData"), - }, - PositionalConstraint: aws.String("PositionalConstraint"), // Required - TargetString: []byte("PAYLOAD"), // Required - TextTransformation: aws.String("TextTransformation"), // Required - }, - }, - // More values... - }, - } - resp, err := svc.UpdateByteMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_UpdateIPSet() { - svc := waf.New(session.New()) - - params := &waf.UpdateIPSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - IPSetId: aws.String("ResourceId"), // Required - Updates: []*waf.IPSetUpdate{ // Required - { // Required - Action: aws.String("ChangeAction"), // Required - IPSetDescriptor: &waf.IPSetDescriptor{ // Required - Type: aws.String("IPSetDescriptorType"), // Required - Value: aws.String("IPSetDescriptorValue"), // Required - }, - }, - // More values... - }, - } - resp, err := svc.UpdateIPSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_UpdateRule() { - svc := waf.New(session.New()) - - params := &waf.UpdateRuleInput{ - ChangeToken: aws.String("ChangeToken"), // Required - RuleId: aws.String("ResourceId"), // Required - Updates: []*waf.RuleUpdate{ // Required - { // Required - Action: aws.String("ChangeAction"), // Required - Predicate: &waf.Predicate{ // Required - DataId: aws.String("ResourceId"), // Required - Negated: aws.Bool(true), // Required - Type: aws.String("PredicateType"), // Required - }, - }, - // More values... - }, - } - resp, err := svc.UpdateRule(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_UpdateSizeConstraintSet() { - svc := waf.New(session.New()) - - params := &waf.UpdateSizeConstraintSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - SizeConstraintSetId: aws.String("ResourceId"), // Required - Updates: []*waf.SizeConstraintSetUpdate{ // Required - { // Required - Action: aws.String("ChangeAction"), // Required - SizeConstraint: &waf.SizeConstraint{ // Required - ComparisonOperator: aws.String("ComparisonOperator"), // Required - FieldToMatch: &waf.FieldToMatch{ // Required - Type: aws.String("MatchFieldType"), // Required - Data: aws.String("MatchFieldData"), - }, - Size: aws.Int64(1), // Required - TextTransformation: aws.String("TextTransformation"), // Required - }, - }, - // More values... - }, - } - resp, err := svc.UpdateSizeConstraintSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_UpdateSqlInjectionMatchSet() { - svc := waf.New(session.New()) - - params := &waf.UpdateSqlInjectionMatchSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - SqlInjectionMatchSetId: aws.String("ResourceId"), // Required - Updates: []*waf.SqlInjectionMatchSetUpdate{ // Required - { // Required - Action: aws.String("ChangeAction"), // Required - SqlInjectionMatchTuple: &waf.SqlInjectionMatchTuple{ // Required - FieldToMatch: &waf.FieldToMatch{ // Required - Type: aws.String("MatchFieldType"), // Required - Data: aws.String("MatchFieldData"), - }, - TextTransformation: aws.String("TextTransformation"), // Required - }, - }, - // More values... - }, - } - resp, err := svc.UpdateSqlInjectionMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_UpdateWebACL() { - svc := waf.New(session.New()) - - params := &waf.UpdateWebACLInput{ - ChangeToken: aws.String("ChangeToken"), // Required - WebACLId: aws.String("ResourceId"), // Required - DefaultAction: &waf.WafAction{ - Type: aws.String("WafActionType"), // Required - }, - Updates: []*waf.WebACLUpdate{ - { // Required - Action: aws.String("ChangeAction"), // Required - ActivatedRule: &waf.ActivatedRule{ // Required - Action: &waf.WafAction{ // Required - Type: aws.String("WafActionType"), // Required - }, - Priority: aws.Int64(1), // Required - RuleId: aws.String("ResourceId"), // Required - }, - }, - // More values... - }, - } - resp, err := svc.UpdateWebACL(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWAF_UpdateXssMatchSet() { - svc := waf.New(session.New()) - - params := &waf.UpdateXssMatchSetInput{ - ChangeToken: aws.String("ChangeToken"), // Required - Updates: []*waf.XssMatchSetUpdate{ // Required - { // Required - Action: aws.String("ChangeAction"), // Required - XssMatchTuple: &waf.XssMatchTuple{ // Required - FieldToMatch: &waf.FieldToMatch{ // Required - Type: aws.String("MatchFieldType"), // Required - Data: aws.String("MatchFieldData"), - }, - TextTransformation: aws.String("TextTransformation"), // Required - }, - }, - // More values... - }, - XssMatchSetId: aws.String("ResourceId"), // Required - } - resp, err := svc.UpdateXssMatchSet(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/service.go b/vendor/github.com/aws/aws-sdk-go/service/waf/service.go deleted file mode 100644 index d6e980b2e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/service.go +++ /dev/null @@ -1,91 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -package waf - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" -) - -// This is the AWS WAF API Reference. This guide is for developers who need -// detailed information about the AWS WAF API actions, data types, and errors. -// For detailed information about AWS WAF features and an overview of how to -// use the AWS WAF API, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. -type WAF struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "waf" - -// New creates a new instance of the WAF client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a WAF client from just a session. -// svc := waf.New(mySession) -// -// // Create a WAF client with additional configuration -// svc := waf.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *WAF { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *WAF { - svc := &WAF{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-08-24", - JSONVersion: "1.1", - TargetPrefix: "AWSWAF_20150824", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a WAF operation and runs any -// custom request initialization. -func (c *WAF) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go deleted file mode 100644 index 071b191ef..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface.go +++ /dev/null @@ -1,166 +0,0 @@ -// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. - -// Package wafiface provides an interface for the AWS WAF. -package wafiface - -import ( - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/waf" -) - -// WAFAPI is the interface type for waf.WAF. -type WAFAPI interface { - CreateByteMatchSetRequest(*waf.CreateByteMatchSetInput) (*request.Request, *waf.CreateByteMatchSetOutput) - - CreateByteMatchSet(*waf.CreateByteMatchSetInput) (*waf.CreateByteMatchSetOutput, error) - - CreateIPSetRequest(*waf.CreateIPSetInput) (*request.Request, *waf.CreateIPSetOutput) - - CreateIPSet(*waf.CreateIPSetInput) (*waf.CreateIPSetOutput, error) - - CreateRuleRequest(*waf.CreateRuleInput) (*request.Request, *waf.CreateRuleOutput) - - CreateRule(*waf.CreateRuleInput) (*waf.CreateRuleOutput, error) - - CreateSizeConstraintSetRequest(*waf.CreateSizeConstraintSetInput) (*request.Request, *waf.CreateSizeConstraintSetOutput) - - CreateSizeConstraintSet(*waf.CreateSizeConstraintSetInput) (*waf.CreateSizeConstraintSetOutput, error) - - CreateSqlInjectionMatchSetRequest(*waf.CreateSqlInjectionMatchSetInput) (*request.Request, *waf.CreateSqlInjectionMatchSetOutput) - - CreateSqlInjectionMatchSet(*waf.CreateSqlInjectionMatchSetInput) (*waf.CreateSqlInjectionMatchSetOutput, error) - - CreateWebACLRequest(*waf.CreateWebACLInput) (*request.Request, *waf.CreateWebACLOutput) - - CreateWebACL(*waf.CreateWebACLInput) (*waf.CreateWebACLOutput, error) - - CreateXssMatchSetRequest(*waf.CreateXssMatchSetInput) (*request.Request, *waf.CreateXssMatchSetOutput) - - CreateXssMatchSet(*waf.CreateXssMatchSetInput) (*waf.CreateXssMatchSetOutput, error) - - DeleteByteMatchSetRequest(*waf.DeleteByteMatchSetInput) (*request.Request, *waf.DeleteByteMatchSetOutput) - - DeleteByteMatchSet(*waf.DeleteByteMatchSetInput) (*waf.DeleteByteMatchSetOutput, error) - - DeleteIPSetRequest(*waf.DeleteIPSetInput) (*request.Request, *waf.DeleteIPSetOutput) - - DeleteIPSet(*waf.DeleteIPSetInput) (*waf.DeleteIPSetOutput, error) - - DeleteRuleRequest(*waf.DeleteRuleInput) (*request.Request, *waf.DeleteRuleOutput) - - DeleteRule(*waf.DeleteRuleInput) (*waf.DeleteRuleOutput, error) - - DeleteSizeConstraintSetRequest(*waf.DeleteSizeConstraintSetInput) (*request.Request, *waf.DeleteSizeConstraintSetOutput) - - DeleteSizeConstraintSet(*waf.DeleteSizeConstraintSetInput) (*waf.DeleteSizeConstraintSetOutput, error) - - DeleteSqlInjectionMatchSetRequest(*waf.DeleteSqlInjectionMatchSetInput) (*request.Request, *waf.DeleteSqlInjectionMatchSetOutput) - - DeleteSqlInjectionMatchSet(*waf.DeleteSqlInjectionMatchSetInput) (*waf.DeleteSqlInjectionMatchSetOutput, error) - - DeleteWebACLRequest(*waf.DeleteWebACLInput) (*request.Request, *waf.DeleteWebACLOutput) - - DeleteWebACL(*waf.DeleteWebACLInput) (*waf.DeleteWebACLOutput, error) - - DeleteXssMatchSetRequest(*waf.DeleteXssMatchSetInput) (*request.Request, *waf.DeleteXssMatchSetOutput) - - DeleteXssMatchSet(*waf.DeleteXssMatchSetInput) (*waf.DeleteXssMatchSetOutput, error) - - GetByteMatchSetRequest(*waf.GetByteMatchSetInput) (*request.Request, *waf.GetByteMatchSetOutput) - - GetByteMatchSet(*waf.GetByteMatchSetInput) (*waf.GetByteMatchSetOutput, error) - - GetChangeTokenRequest(*waf.GetChangeTokenInput) (*request.Request, *waf.GetChangeTokenOutput) - - GetChangeToken(*waf.GetChangeTokenInput) (*waf.GetChangeTokenOutput, error) - - GetChangeTokenStatusRequest(*waf.GetChangeTokenStatusInput) (*request.Request, *waf.GetChangeTokenStatusOutput) - - GetChangeTokenStatus(*waf.GetChangeTokenStatusInput) (*waf.GetChangeTokenStatusOutput, error) - - GetIPSetRequest(*waf.GetIPSetInput) (*request.Request, *waf.GetIPSetOutput) - - GetIPSet(*waf.GetIPSetInput) (*waf.GetIPSetOutput, error) - - GetRuleRequest(*waf.GetRuleInput) (*request.Request, *waf.GetRuleOutput) - - GetRule(*waf.GetRuleInput) (*waf.GetRuleOutput, error) - - GetSampledRequestsRequest(*waf.GetSampledRequestsInput) (*request.Request, *waf.GetSampledRequestsOutput) - - GetSampledRequests(*waf.GetSampledRequestsInput) (*waf.GetSampledRequestsOutput, error) - - GetSizeConstraintSetRequest(*waf.GetSizeConstraintSetInput) (*request.Request, *waf.GetSizeConstraintSetOutput) - - GetSizeConstraintSet(*waf.GetSizeConstraintSetInput) (*waf.GetSizeConstraintSetOutput, error) - - GetSqlInjectionMatchSetRequest(*waf.GetSqlInjectionMatchSetInput) (*request.Request, *waf.GetSqlInjectionMatchSetOutput) - - GetSqlInjectionMatchSet(*waf.GetSqlInjectionMatchSetInput) (*waf.GetSqlInjectionMatchSetOutput, error) - - GetWebACLRequest(*waf.GetWebACLInput) (*request.Request, *waf.GetWebACLOutput) - - GetWebACL(*waf.GetWebACLInput) (*waf.GetWebACLOutput, error) - - GetXssMatchSetRequest(*waf.GetXssMatchSetInput) (*request.Request, *waf.GetXssMatchSetOutput) - - GetXssMatchSet(*waf.GetXssMatchSetInput) (*waf.GetXssMatchSetOutput, error) - - ListByteMatchSetsRequest(*waf.ListByteMatchSetsInput) (*request.Request, *waf.ListByteMatchSetsOutput) - - ListByteMatchSets(*waf.ListByteMatchSetsInput) (*waf.ListByteMatchSetsOutput, error) - - ListIPSetsRequest(*waf.ListIPSetsInput) (*request.Request, *waf.ListIPSetsOutput) - - ListIPSets(*waf.ListIPSetsInput) (*waf.ListIPSetsOutput, error) - - ListRulesRequest(*waf.ListRulesInput) (*request.Request, *waf.ListRulesOutput) - - ListRules(*waf.ListRulesInput) (*waf.ListRulesOutput, error) - - ListSizeConstraintSetsRequest(*waf.ListSizeConstraintSetsInput) (*request.Request, *waf.ListSizeConstraintSetsOutput) - - ListSizeConstraintSets(*waf.ListSizeConstraintSetsInput) (*waf.ListSizeConstraintSetsOutput, error) - - ListSqlInjectionMatchSetsRequest(*waf.ListSqlInjectionMatchSetsInput) (*request.Request, *waf.ListSqlInjectionMatchSetsOutput) - - ListSqlInjectionMatchSets(*waf.ListSqlInjectionMatchSetsInput) (*waf.ListSqlInjectionMatchSetsOutput, error) - - ListWebACLsRequest(*waf.ListWebACLsInput) (*request.Request, *waf.ListWebACLsOutput) - - ListWebACLs(*waf.ListWebACLsInput) (*waf.ListWebACLsOutput, error) - - ListXssMatchSetsRequest(*waf.ListXssMatchSetsInput) (*request.Request, *waf.ListXssMatchSetsOutput) - - ListXssMatchSets(*waf.ListXssMatchSetsInput) (*waf.ListXssMatchSetsOutput, error) - - UpdateByteMatchSetRequest(*waf.UpdateByteMatchSetInput) (*request.Request, *waf.UpdateByteMatchSetOutput) - - UpdateByteMatchSet(*waf.UpdateByteMatchSetInput) (*waf.UpdateByteMatchSetOutput, error) - - UpdateIPSetRequest(*waf.UpdateIPSetInput) (*request.Request, *waf.UpdateIPSetOutput) - - UpdateIPSet(*waf.UpdateIPSetInput) (*waf.UpdateIPSetOutput, error) - - UpdateRuleRequest(*waf.UpdateRuleInput) (*request.Request, *waf.UpdateRuleOutput) - - UpdateRule(*waf.UpdateRuleInput) (*waf.UpdateRuleOutput, error) - - UpdateSizeConstraintSetRequest(*waf.UpdateSizeConstraintSetInput) (*request.Request, *waf.UpdateSizeConstraintSetOutput) - - UpdateSizeConstraintSet(*waf.UpdateSizeConstraintSetInput) (*waf.UpdateSizeConstraintSetOutput, error) - - UpdateSqlInjectionMatchSetRequest(*waf.UpdateSqlInjectionMatchSetInput) (*request.Request, *waf.UpdateSqlInjectionMatchSetOutput) - - UpdateSqlInjectionMatchSet(*waf.UpdateSqlInjectionMatchSetInput) (*waf.UpdateSqlInjectionMatchSetOutput, error) - - UpdateWebACLRequest(*waf.UpdateWebACLInput) (*request.Request, *waf.UpdateWebACLOutput) - - UpdateWebACL(*waf.UpdateWebACLInput) (*waf.UpdateWebACLOutput, error) - - UpdateXssMatchSetRequest(*waf.UpdateXssMatchSetInput) (*request.Request, *waf.UpdateXssMatchSetOutput) - - UpdateXssMatchSet(*waf.UpdateXssMatchSetInput) (*waf.UpdateXssMatchSetOutput, error) -} - -var _ WAFAPI = (*waf.WAF)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go index 0ca4c35fa..3e28690dd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go @@ -4,39 +4,10 @@ package workspaces import ( - "fmt" - "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" ) -const opCreateTags = "CreateTags" - -// CreateTagsRequest generates a request for the CreateTags operation. -func (c *WorkSpaces) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) { - op := &request.Operation{ - Name: opCreateTags, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateTagsInput{} - } - - req = c.newRequest(op, input, output) - output = &CreateTagsOutput{} - req.Data = output - return -} - -// Creates tags for a WorkSpace. -func (c *WorkSpaces) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { - req, out := c.CreateTagsRequest(input) - err := req.Send() - return out, err -} - const opCreateWorkspaces = "CreateWorkspaces" // CreateWorkspacesRequest generates a request for the CreateWorkspaces operation. @@ -66,60 +37,6 @@ func (c *WorkSpaces) CreateWorkspaces(input *CreateWorkspacesInput) (*CreateWork return out, err } -const opDeleteTags = "DeleteTags" - -// DeleteTagsRequest generates a request for the DeleteTags operation. -func (c *WorkSpaces) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { - op := &request.Operation{ - Name: opDeleteTags, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteTagsInput{} - } - - req = c.newRequest(op, input, output) - output = &DeleteTagsOutput{} - req.Data = output - return -} - -// Deletes tags from a WorkSpace. -func (c *WorkSpaces) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { - req, out := c.DeleteTagsRequest(input) - err := req.Send() - return out, err -} - -const opDescribeTags = "DescribeTags" - -// DescribeTagsRequest generates a request for the DescribeTags operation. -func (c *WorkSpaces) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { - op := &request.Operation{ - Name: opDescribeTags, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DescribeTagsInput{} - } - - req = c.newRequest(op, input, output) - output = &DescribeTagsOutput{} - req.Data = output - return -} - -// Describes tags for a WorkSpace. -func (c *WorkSpaces) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { - req, out := c.DescribeTagsRequest(input) - err := req.Send() - return out, err -} - const opDescribeWorkspaceBundles = "DescribeWorkspaceBundles" // DescribeWorkspaceBundlesRequest generates a request for the DescribeWorkspaceBundles operation. @@ -164,7 +81,6 @@ func (c *WorkSpaces) DescribeWorkspaceBundles(input *DescribeWorkspaceBundlesInp func (c *WorkSpaces) DescribeWorkspaceBundlesPages(input *DescribeWorkspaceBundlesInput, fn func(p *DescribeWorkspaceBundlesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeWorkspaceBundlesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeWorkspaceBundlesOutput), lastPage) }) @@ -212,7 +128,6 @@ func (c *WorkSpaces) DescribeWorkspaceDirectories(input *DescribeWorkspaceDirect func (c *WorkSpaces) DescribeWorkspaceDirectoriesPages(input *DescribeWorkspaceDirectoriesInput, fn func(p *DescribeWorkspaceDirectoriesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeWorkspaceDirectoriesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeWorkspaceDirectoriesOutput), lastPage) }) @@ -261,7 +176,6 @@ func (c *WorkSpaces) DescribeWorkspaces(input *DescribeWorkspacesInput) (*Descri func (c *WorkSpaces) DescribeWorkspacesPages(input *DescribeWorkspacesInput, fn func(p *DescribeWorkspacesOutput, lastPage bool) (shouldContinue bool)) error { page, _ := c.DescribeWorkspacesRequest(input) - page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator")) return page.EachPage(func(p interface{}, lastPage bool) bool { return fn(p.(*DescribeWorkspacesOutput), lastPage) }) @@ -380,93 +294,36 @@ func (c *WorkSpaces) TerminateWorkspaces(input *TerminateWorkspacesInput) (*Term // Contains information about the compute type of a WorkSpace bundle. type ComputeType struct { - _ struct{} `type:"structure"` - // The name of the compute type for the bundle. Name *string `type:"string" enum:"Compute"` -} - -// String returns the string representation -func (s ComputeType) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s ComputeType) GoString() string { - return s.String() + metadataComputeType `json:"-" xml:"-"` } -// The request of the create tags action. -type CreateTagsInput struct { - _ struct{} `type:"structure"` - - // The resource ID of the request. - ResourceId *string `min:"1" type:"string" required:"true"` - - // The tags of the request. - Tags []*Tag `type:"list" required:"true"` +type metadataComputeType struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s CreateTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateTagsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the create tags action. -type CreateTagsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s CreateTagsOutput) String() string { +func (s ComputeType) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTagsOutput) GoString() string { +func (s ComputeType) GoString() string { return s.String() } // Contains the inputs for the CreateWorkspaces operation. type CreateWorkspacesInput struct { - _ struct{} `type:"structure"` - // An array of structures that specify the WorkSpaces to create. - Workspaces []*WorkspaceRequest `min:"1" type:"list" required:"true"` + Workspaces []*WorkspaceRequest `type:"list" required:"true"` + + metadataCreateWorkspacesInput `json:"-" xml:"-"` +} + +type metadataCreateWorkspacesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -479,36 +336,8 @@ func (s CreateWorkspacesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateWorkspacesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateWorkspacesInput"} - if s.Workspaces == nil { - invalidParams.Add(request.NewErrParamRequired("Workspaces")) - } - if s.Workspaces != nil && len(s.Workspaces) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Workspaces", 1)) - } - if s.Workspaces != nil { - for i, v := range s.Workspaces { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Workspaces", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the result of the CreateWorkspaces operation. type CreateWorkspacesOutput struct { - _ struct{} `type:"structure"` - // An array of structures that represent the WorkSpaces that could not be created. FailedRequests []*FailedCreateWorkspaceRequest `type:"list"` @@ -518,6 +347,12 @@ type CreateWorkspacesOutput struct { // not immediately available. If you immediately call DescribeWorkspaces with // this identifier, no information will be returned. PendingRequests []*Workspace `type:"list"` + + metadataCreateWorkspacesOutput `json:"-" xml:"-"` +} + +type metadataCreateWorkspacesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -532,8 +367,6 @@ func (s CreateWorkspacesOutput) GoString() string { // Contains default WorkSpace creation information. type DefaultWorkspaceCreationProperties struct { - _ struct{} `type:"structure"` - // The identifier of any custom security groups that are applied to the WorkSpaces // when they are created. CustomSecurityGroupId *string `type:"string"` @@ -551,136 +384,33 @@ type DefaultWorkspaceCreationProperties struct { // The WorkSpace user is an administrator on the WorkSpace. UserEnabledAsLocalAdministrator *bool `type:"boolean"` -} - -// String returns the string representation -func (s DefaultWorkspaceCreationProperties) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DefaultWorkspaceCreationProperties) GoString() string { - return s.String() + metadataDefaultWorkspaceCreationProperties `json:"-" xml:"-"` } -// The request of the delete tags action. -type DeleteTagsInput struct { - _ struct{} `type:"structure"` - - // The resource ID of the request. - ResourceId *string `min:"1" type:"string" required:"true"` - - // The tag keys of the request. - TagKeys []*string `type:"list" required:"true"` +type metadataDefaultWorkspaceCreationProperties struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s DeleteTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteTagsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the delete tags action. -type DeleteTagsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteTagsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteTagsOutput) GoString() string { - return s.String() -} - -// The request of the describe tags action. -type DescribeTagsInput struct { - _ struct{} `type:"structure"` - - // The resource ID of the request. - ResourceId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeTagsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// The result of the describe tags action. -type DescribeTagsOutput struct { - _ struct{} `type:"structure"` - - // The list of tags. - TagList []*Tag `type:"list"` -} - -// String returns the string representation -func (s DescribeTagsOutput) String() string { +func (s DefaultWorkspaceCreationProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeTagsOutput) GoString() string { +func (s DefaultWorkspaceCreationProperties) GoString() string { return s.String() } // Contains the inputs for the DescribeWorkspaceBundles operation. type DescribeWorkspaceBundlesInput struct { - _ struct{} `type:"structure"` - // An array of strings that contains the identifiers of the bundles to retrieve. // This parameter cannot be combined with any other filter parameter. - BundleIds []*string `min:"1" type:"list"` + BundleIds []*string `type:"list"` // The NextToken value from a previous call to this operation. Pass null if // this is the first call. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` // The owner of the bundles to retrieve. This parameter cannot be combined with // any other filter parameter. @@ -688,8 +418,14 @@ type DescribeWorkspaceBundlesInput struct { // This contains one of the following values: // // null - Retrieves the bundles that belong to the account making the call. - // AMAZON - Retrieves the bundles that are provided by AWS. + // AMAZON - Retrieves the bundles that are provided by AWS. Owner *string `type:"string"` + + metadataDescribeWorkspaceBundlesInput `json:"-" xml:"-"` +} + +type metadataDescribeWorkspaceBundlesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -702,33 +438,21 @@ func (s DescribeWorkspaceBundlesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeWorkspaceBundlesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspaceBundlesInput"} - if s.BundleIds != nil && len(s.BundleIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BundleIds", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the DescribeWorkspaceBundles operation. type DescribeWorkspaceBundlesOutput struct { - _ struct{} `type:"structure"` - // An array of structures that contain information about the bundles. Bundles []*WorkspaceBundle `type:"list"` // If not null, more results are available. Pass this value for the NextToken // parameter in a subsequent call to this operation to retrieve the next set // of items. This token is valid for one day and must be used within that timeframe. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` + + metadataDescribeWorkspaceBundlesOutput `json:"-" xml:"-"` +} + +type metadataDescribeWorkspaceBundlesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -743,15 +467,19 @@ func (s DescribeWorkspaceBundlesOutput) GoString() string { // Contains the inputs for the DescribeWorkspaceDirectories operation. type DescribeWorkspaceDirectoriesInput struct { - _ struct{} `type:"structure"` - // An array of strings that contains the directory identifiers to retrieve information // for. If this member is null, all directories are retrieved. - DirectoryIds []*string `min:"1" type:"list"` + DirectoryIds []*string `type:"list"` // The NextToken value from a previous call to this operation. Pass null if // this is the first call. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` + + metadataDescribeWorkspaceDirectoriesInput `json:"-" xml:"-"` +} + +type metadataDescribeWorkspaceDirectoriesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -764,33 +492,21 @@ func (s DescribeWorkspaceDirectoriesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeWorkspaceDirectoriesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspaceDirectoriesInput"} - if s.DirectoryIds != nil && len(s.DirectoryIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DirectoryIds", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the DescribeWorkspaceDirectories operation. type DescribeWorkspaceDirectoriesOutput struct { - _ struct{} `type:"structure"` - // An array of structures that contain information about the directories. Directories []*WorkspaceDirectory `type:"list"` // If not null, more results are available. Pass this value for the NextToken // parameter in a subsequent call to this operation to retrieve the next set // of items. This token is valid for one day and must be used within that timeframe. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` + + metadataDescribeWorkspaceDirectoriesOutput `json:"-" xml:"-"` +} + +type metadataDescribeWorkspaceDirectoriesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -805,8 +521,6 @@ func (s DescribeWorkspaceDirectoriesOutput) GoString() string { // Contains the inputs for the DescribeWorkspaces operation. type DescribeWorkspacesInput struct { - _ struct{} `type:"structure"` - // The identifier of a bundle to obtain the WorkSpaces for. All WorkSpaces that // are created from this bundle will be retrieved. This parameter cannot be // combined with any other filter parameter. @@ -818,15 +532,15 @@ type DescribeWorkspacesInput struct { DirectoryId *string `type:"string"` // The maximum number of items to return. - Limit *int64 `min:"1" type:"integer"` + Limit *int64 `type:"integer"` // The NextToken value from a previous call to this operation. Pass null if // this is the first call. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` // Used with the DirectoryId parameter to specify the directory user for which // to obtain the WorkSpace. - UserName *string `min:"1" type:"string"` + UserName *string `type:"string"` // An array of strings that contain the identifiers of the WorkSpaces for which // to retrieve information. This parameter cannot be combined with any other @@ -835,7 +549,13 @@ type DescribeWorkspacesInput struct { // Because the CreateWorkspaces operation is asynchronous, the identifier returned // by CreateWorkspaces is not immediately available. If you immediately call // DescribeWorkspaces with this identifier, no information will be returned. - WorkspaceIds []*string `min:"1" type:"list"` + WorkspaceIds []*string `type:"list"` + + metadataDescribeWorkspacesInput `json:"-" xml:"-"` +} + +type metadataDescribeWorkspacesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -848,42 +568,24 @@ func (s DescribeWorkspacesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeWorkspacesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspacesInput"} - if s.Limit != nil && *s.Limit < 1 { - invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - if s.WorkspaceIds != nil && len(s.WorkspaceIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkspaceIds", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results for the DescribeWorkspaces operation. type DescribeWorkspacesOutput struct { - _ struct{} `type:"structure"` - // If not null, more results are available. Pass this value for the NextToken // parameter in a subsequent call to this operation to retrieve the next set // of items. This token is valid for one day and must be used within that timeframe. - NextToken *string `min:"1" type:"string"` + NextToken *string `type:"string"` // An array of structures that contain the information about the WorkSpaces. // // Because the CreateWorkspaces operation is asynchronous, some of this information // may be incomplete for a newly-created WorkSpace. Workspaces []*Workspace `type:"list"` + + metadataDescribeWorkspacesOutput `json:"-" xml:"-"` +} + +type metadataDescribeWorkspacesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -898,8 +600,6 @@ func (s DescribeWorkspacesOutput) GoString() string { // Contains information about a WorkSpace that could not be created. type FailedCreateWorkspaceRequest struct { - _ struct{} `type:"structure"` - // The error code. ErrorCode *string `type:"string"` @@ -909,6 +609,12 @@ type FailedCreateWorkspaceRequest struct { // A WorkspaceRequest object that contains the information about the WorkSpace // that could not be created. WorkspaceRequest *WorkspaceRequest `type:"structure"` + + metadataFailedCreateWorkspaceRequest `json:"-" xml:"-"` +} + +type metadataFailedCreateWorkspaceRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -924,8 +630,6 @@ func (s FailedCreateWorkspaceRequest) GoString() string { // Contains information about a WorkSpace that could not be rebooted (RebootWorkspaces), // rebuilt (RebuildWorkspaces), or terminated (TerminateWorkspaces). type FailedWorkspaceChangeRequest struct { - _ struct{} `type:"structure"` - // The error code. ErrorCode *string `type:"string"` @@ -934,6 +638,12 @@ type FailedWorkspaceChangeRequest struct { // The identifier of the WorkSpace. WorkspaceId *string `type:"string"` + + metadataFailedWorkspaceChangeRequest `json:"-" xml:"-"` +} + +type metadataFailedWorkspaceChangeRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -949,10 +659,14 @@ func (s FailedWorkspaceChangeRequest) GoString() string { // Contains information used with the RebootWorkspaces operation to reboot a // WorkSpace. type RebootRequest struct { - _ struct{} `type:"structure"` - // The identifier of the WorkSpace to reboot. WorkspaceId *string `type:"string" required:"true"` + + metadataRebootRequest `json:"-" xml:"-"` +} + +type metadataRebootRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -965,25 +679,16 @@ func (s RebootRequest) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RebootRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RebootRequest"} - if s.WorkspaceId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkspaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the inputs for the RebootWorkspaces operation. type RebootWorkspacesInput struct { - _ struct{} `type:"structure"` - // An array of structures that specify the WorkSpaces to reboot. - RebootWorkspaceRequests []*RebootRequest `min:"1" type:"list" required:"true"` + RebootWorkspaceRequests []*RebootRequest `type:"list" required:"true"` + + metadataRebootWorkspacesInput `json:"-" xml:"-"` +} + +type metadataRebootWorkspacesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -996,38 +701,16 @@ func (s RebootWorkspacesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RebootWorkspacesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RebootWorkspacesInput"} - if s.RebootWorkspaceRequests == nil { - invalidParams.Add(request.NewErrParamRequired("RebootWorkspaceRequests")) - } - if s.RebootWorkspaceRequests != nil && len(s.RebootWorkspaceRequests) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RebootWorkspaceRequests", 1)) - } - if s.RebootWorkspaceRequests != nil { - for i, v := range s.RebootWorkspaceRequests { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RebootWorkspaceRequests", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the RebootWorkspaces operation. type RebootWorkspacesOutput struct { - _ struct{} `type:"structure"` - // An array of structures that represent any WorkSpaces that could not be rebooted. FailedRequests []*FailedWorkspaceChangeRequest `type:"list"` + + metadataRebootWorkspacesOutput `json:"-" xml:"-"` +} + +type metadataRebootWorkspacesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1043,10 +726,14 @@ func (s RebootWorkspacesOutput) GoString() string { // Contains information used with the RebuildWorkspaces operation to rebuild // a WorkSpace. type RebuildRequest struct { - _ struct{} `type:"structure"` - // The identifier of the WorkSpace to rebuild. WorkspaceId *string `type:"string" required:"true"` + + metadataRebuildRequest `json:"-" xml:"-"` +} + +type metadataRebuildRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1059,25 +746,16 @@ func (s RebuildRequest) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RebuildRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RebuildRequest"} - if s.WorkspaceId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkspaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the inputs for the RebuildWorkspaces operation. type RebuildWorkspacesInput struct { - _ struct{} `type:"structure"` - // An array of structures that specify the WorkSpaces to rebuild. - RebuildWorkspaceRequests []*RebuildRequest `min:"1" type:"list" required:"true"` + RebuildWorkspaceRequests []*RebuildRequest `type:"list" required:"true"` + + metadataRebuildWorkspacesInput `json:"-" xml:"-"` +} + +type metadataRebuildWorkspacesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1090,94 +768,39 @@ func (s RebuildWorkspacesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RebuildWorkspacesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RebuildWorkspacesInput"} - if s.RebuildWorkspaceRequests == nil { - invalidParams.Add(request.NewErrParamRequired("RebuildWorkspaceRequests")) - } - if s.RebuildWorkspaceRequests != nil && len(s.RebuildWorkspaceRequests) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RebuildWorkspaceRequests", 1)) - } - if s.RebuildWorkspaceRequests != nil { - for i, v := range s.RebuildWorkspaceRequests { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RebuildWorkspaceRequests", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the RebuildWorkspaces operation. type RebuildWorkspacesOutput struct { - _ struct{} `type:"structure"` - // An array of structures that represent any WorkSpaces that could not be rebuilt. FailedRequests []*FailedWorkspaceChangeRequest `type:"list"` -} -// String returns the string representation -func (s RebuildWorkspacesOutput) String() string { - return awsutil.Prettify(s) + metadataRebuildWorkspacesOutput `json:"-" xml:"-"` } -// GoString returns the string representation -func (s RebuildWorkspacesOutput) GoString() string { - return s.String() -} - -// Describes the tag of the WorkSpace. -type Tag struct { - _ struct{} `type:"structure"` - - // The key of the tag. - Key *string `min:"1" type:"string" required:"true"` - - // The value of the tag. - Value *string `type:"string"` +type metadataRebuildWorkspacesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation -func (s Tag) String() string { +func (s RebuildWorkspacesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Tag) GoString() string { +func (s RebuildWorkspacesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains information used with the TerminateWorkspaces operation to terminate // a WorkSpace. type TerminateRequest struct { - _ struct{} `type:"structure"` - // The identifier of the WorkSpace to terminate. WorkspaceId *string `type:"string" required:"true"` + + metadataTerminateRequest `json:"-" xml:"-"` +} + +type metadataTerminateRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1190,25 +813,16 @@ func (s TerminateRequest) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TerminateRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TerminateRequest"} - if s.WorkspaceId == nil { - invalidParams.Add(request.NewErrParamRequired("WorkspaceId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the inputs for the TerminateWorkspaces operation. type TerminateWorkspacesInput struct { - _ struct{} `type:"structure"` - // An array of structures that specify the WorkSpaces to terminate. - TerminateWorkspaceRequests []*TerminateRequest `min:"1" type:"list" required:"true"` + TerminateWorkspaceRequests []*TerminateRequest `type:"list" required:"true"` + + metadataTerminateWorkspacesInput `json:"-" xml:"-"` +} + +type metadataTerminateWorkspacesInput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1221,38 +835,16 @@ func (s TerminateWorkspacesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TerminateWorkspacesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TerminateWorkspacesInput"} - if s.TerminateWorkspaceRequests == nil { - invalidParams.Add(request.NewErrParamRequired("TerminateWorkspaceRequests")) - } - if s.TerminateWorkspaceRequests != nil && len(s.TerminateWorkspaceRequests) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TerminateWorkspaceRequests", 1)) - } - if s.TerminateWorkspaceRequests != nil { - for i, v := range s.TerminateWorkspaceRequests { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TerminateWorkspaceRequests", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // Contains the results of the TerminateWorkspaces operation. type TerminateWorkspacesOutput struct { - _ struct{} `type:"structure"` - // An array of structures that represent any WorkSpaces that could not be terminated. FailedRequests []*FailedWorkspaceChangeRequest `type:"list"` + + metadataTerminateWorkspacesOutput `json:"-" xml:"-"` +} + +type metadataTerminateWorkspacesOutput struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1267,10 +859,14 @@ func (s TerminateWorkspacesOutput) GoString() string { // Contains information about the user storage for a WorkSpace bundle. type UserStorage struct { - _ struct{} `type:"structure"` - // The amount of user storage for the bundle. - Capacity *string `min:"1" type:"string"` + Capacity *string `type:"string"` + + metadataUserStorage `json:"-" xml:"-"` +} + +type metadataUserStorage struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1285,14 +881,9 @@ func (s UserStorage) GoString() string { // Contains information about a WorkSpace. type Workspace struct { - _ struct{} `type:"structure"` - // The identifier of the bundle that the WorkSpace was created from. BundleId *string `type:"string"` - // The name of the WorkSpace as seen by the operating system. - ComputerName *string `type:"string"` - // The identifier of the AWS Directory Service directory that the WorkSpace // belongs to. DirectoryId *string `type:"string"` @@ -1307,9 +898,6 @@ type Workspace struct { // The IP address of the WorkSpace. IpAddress *string `type:"string"` - // Specifies whether the data stored on the root volume, or C: drive, is encrypted. - RootVolumeEncryptionEnabled *bool `type:"boolean"` - // The operational state of the WorkSpace. State *string `type:"string" enum:"WorkspaceState"` @@ -1317,16 +905,16 @@ type Workspace struct { SubnetId *string `type:"string"` // The user that the WorkSpace is assigned to. - UserName *string `min:"1" type:"string"` - - // Specifies whether the data stored on the user volume, or D: drive, is encrypted. - UserVolumeEncryptionEnabled *bool `type:"boolean"` - - // The KMS key used to encrypt data stored on your WorkSpace. - VolumeEncryptionKey *string `type:"string"` + UserName *string `type:"string"` // The identifier of the WorkSpace. WorkspaceId *string `type:"string"` + + metadataWorkspace `json:"-" xml:"-"` +} + +type metadataWorkspace struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1341,8 +929,6 @@ func (s Workspace) GoString() string { // Contains information about a WorkSpace bundle. type WorkspaceBundle struct { - _ struct{} `type:"structure"` - // The bundle identifier. BundleId *string `type:"string"` @@ -1353,7 +939,7 @@ type WorkspaceBundle struct { Description *string `type:"string"` // The name of the bundle. - Name *string `min:"1" type:"string"` + Name *string `type:"string"` // The owner of the bundle. This contains the owner's account identifier, or // AMAZON if the bundle is provided by AWS. @@ -1362,6 +948,12 @@ type WorkspaceBundle struct { // A UserStorage object that specifies the amount of user storage that the bundle // contains. UserStorage *UserStorage `type:"structure"` + + metadataWorkspaceBundle `json:"-" xml:"-"` +} + +type metadataWorkspaceBundle struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1377,13 +969,11 @@ func (s WorkspaceBundle) GoString() string { // Contains information about an AWS Directory Service directory for use with // Amazon WorkSpaces. type WorkspaceDirectory struct { - _ struct{} `type:"structure"` - // The directory alias. Alias *string `type:"string"` // The user name for the service account. - CustomerUserName *string `min:"1" type:"string"` + CustomerUserName *string `type:"string"` // The directory identifier. DirectoryId *string `type:"string"` @@ -1404,7 +994,7 @@ type WorkspaceDirectory struct { // The registration code for the directory. This is the code that users enter // in their Amazon WorkSpaces client application to connect to the directory. - RegistrationCode *string `min:"1" type:"string"` + RegistrationCode *string `type:"string"` // The state of the directory's registration with Amazon WorkSpaces State *string `type:"string" enum:"WorkspaceDirectoryState"` @@ -1419,6 +1009,12 @@ type WorkspaceDirectory struct { // The identifier of the security group that is assigned to new WorkSpaces. WorkspaceSecurityGroupId *string `type:"string"` + + metadataWorkspaceDirectory `json:"-" xml:"-"` +} + +type metadataWorkspaceDirectory struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1433,8 +1029,6 @@ func (s WorkspaceDirectory) GoString() string { // Contains information about a WorkSpace creation request. type WorkspaceRequest struct { - _ struct{} `type:"structure"` - // The identifier of the bundle to create the WorkSpace from. You can use the // DescribeWorkspaceBundles operation to obtain a list of the bundles that are // available. @@ -1445,21 +1039,15 @@ type WorkspaceRequest struct { // of the directories that are available. DirectoryId *string `type:"string" required:"true"` - // Specifies whether the data stored on the root volume, or C: drive, is encrypted. - RootVolumeEncryptionEnabled *bool `type:"boolean"` - - // The tags of the WorkSpace request. - Tags []*Tag `type:"list"` - // The username that the WorkSpace is assigned to. This username must exist // in the AWS Directory Service directory specified by the DirectoryId member. - UserName *string `min:"1" type:"string" required:"true"` + UserName *string `type:"string" required:"true"` - // Specifies whether the data stored on the user volume, or D: drive, is encrypted. - UserVolumeEncryptionEnabled *bool `type:"boolean"` + metadataWorkspaceRequest `json:"-" xml:"-"` +} - // The KMS key used to encrypt data stored on your WorkSpace. - VolumeEncryptionKey *string `type:"string"` +type metadataWorkspaceRequest struct { + SDKShapeTraits bool `type:"structure"` } // String returns the string representation @@ -1472,38 +1060,6 @@ func (s WorkspaceRequest) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *WorkspaceRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "WorkspaceRequest"} - if s.BundleId == nil { - invalidParams.Add(request.NewErrParamRequired("BundleId")) - } - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) - } - if s.UserName == nil { - invalidParams.Add(request.NewErrParamRequired("UserName")) - } - if s.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - const ( // @enum Compute ComputeValue = "VALUE" diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go index 17bbc877e..020890e11 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/examples_test.go @@ -8,58 +8,21 @@ import ( "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/workspaces" ) var _ time.Duration var _ bytes.Buffer -func ExampleWorkSpaces_CreateTags() { - svc := workspaces.New(session.New()) - - params := &workspaces.CreateTagsInput{ - ResourceId: aws.String("NonEmptyString"), // Required - Tags: []*workspaces.Tag{ // Required - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), - }, - // More values... - }, - } - resp, err := svc.CreateTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleWorkSpaces_CreateWorkspaces() { - svc := workspaces.New(session.New()) + svc := workspaces.New(nil) params := &workspaces.CreateWorkspacesInput{ Workspaces: []*workspaces.WorkspaceRequest{ // Required { // Required - BundleId: aws.String("BundleId"), // Required - DirectoryId: aws.String("DirectoryId"), // Required - UserName: aws.String("UserName"), // Required - RootVolumeEncryptionEnabled: aws.Bool(true), - Tags: []*workspaces.Tag{ - { // Required - Key: aws.String("TagKey"), // Required - Value: aws.String("TagValue"), - }, - // More values... - }, - UserVolumeEncryptionEnabled: aws.Bool(true), - VolumeEncryptionKey: aws.String("VolumeEncryptionKey"), + BundleId: aws.String("BundleId"), // Required + DirectoryId: aws.String("DirectoryId"), // Required + UserName: aws.String("UserName"), // Required }, // More values... }, @@ -77,50 +40,8 @@ func ExampleWorkSpaces_CreateWorkspaces() { fmt.Println(resp) } -func ExampleWorkSpaces_DeleteTags() { - svc := workspaces.New(session.New()) - - params := &workspaces.DeleteTagsInput{ - ResourceId: aws.String("NonEmptyString"), // Required - TagKeys: []*string{ // Required - aws.String("NonEmptyString"), // Required - // More values... - }, - } - resp, err := svc.DeleteTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - -func ExampleWorkSpaces_DescribeTags() { - svc := workspaces.New(session.New()) - - params := &workspaces.DescribeTagsInput{ - ResourceId: aws.String("NonEmptyString"), // Required - } - resp, err := svc.DescribeTags(params) - - if err != nil { - // Print the error, cast err to awserr.Error to get the Code and - // Message from an error. - fmt.Println(err.Error()) - return - } - - // Pretty-print the response data. - fmt.Println(resp) -} - func ExampleWorkSpaces_DescribeWorkspaceBundles() { - svc := workspaces.New(session.New()) + svc := workspaces.New(nil) params := &workspaces.DescribeWorkspaceBundlesInput{ BundleIds: []*string{ @@ -144,7 +65,7 @@ func ExampleWorkSpaces_DescribeWorkspaceBundles() { } func ExampleWorkSpaces_DescribeWorkspaceDirectories() { - svc := workspaces.New(session.New()) + svc := workspaces.New(nil) params := &workspaces.DescribeWorkspaceDirectoriesInput{ DirectoryIds: []*string{ @@ -167,7 +88,7 @@ func ExampleWorkSpaces_DescribeWorkspaceDirectories() { } func ExampleWorkSpaces_DescribeWorkspaces() { - svc := workspaces.New(session.New()) + svc := workspaces.New(nil) params := &workspaces.DescribeWorkspacesInput{ BundleId: aws.String("BundleId"), @@ -194,7 +115,7 @@ func ExampleWorkSpaces_DescribeWorkspaces() { } func ExampleWorkSpaces_RebootWorkspaces() { - svc := workspaces.New(session.New()) + svc := workspaces.New(nil) params := &workspaces.RebootWorkspacesInput{ RebootWorkspaceRequests: []*workspaces.RebootRequest{ // Required @@ -218,7 +139,7 @@ func ExampleWorkSpaces_RebootWorkspaces() { } func ExampleWorkSpaces_RebuildWorkspaces() { - svc := workspaces.New(session.New()) + svc := workspaces.New(nil) params := &workspaces.RebuildWorkspacesInput{ RebuildWorkspaceRequests: []*workspaces.RebuildRequest{ // Required @@ -242,7 +163,7 @@ func ExampleWorkSpaces_RebuildWorkspaces() { } func ExampleWorkSpaces_TerminateWorkspaces() { - svc := workspaces.New(session.New()) + svc := workspaces.New(nil) params := &workspaces.TerminateWorkspacesInput{ TerminateWorkspaceRequests: []*workspaces.TerminateRequest{ // Required diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/service.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/service.go index 59998437e..44b6bd2b4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/service.go @@ -4,76 +4,53 @@ package workspaces import ( "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/private/signer/v4" + "github.com/aws/aws-sdk-go/aws/service" + "github.com/aws/aws-sdk-go/aws/service/serviceinfo" + "github.com/aws/aws-sdk-go/internal/protocol/jsonrpc" + "github.com/aws/aws-sdk-go/internal/signer/v4" ) // This is the Amazon WorkSpaces API Reference. This guide provides detailed // information about Amazon WorkSpaces operations, data types, parameters, and // errors. -//The service client's operations are safe to be used concurrently. -// It is not safe to mutate any of the client's properties though. type WorkSpaces struct { - *client.Client + *service.Service } -// Used for custom client initialization logic -var initClient func(*client.Client) +// Used for custom service initialization logic +var initService func(*service.Service) // Used for custom request initialization logic var initRequest func(*request.Request) -// A ServiceName is the name of the service the client will make API calls to. -const ServiceName = "workspaces" - -// New creates a new instance of the WorkSpaces client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// // Create a WorkSpaces client from just a session. -// svc := workspaces.New(mySession) -// -// // Create a WorkSpaces client with additional configuration -// svc := workspaces.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *WorkSpaces { - c := p.ClientConfig(ServiceName, cfgs...) - return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *WorkSpaces { - svc := &WorkSpaces{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - SigningRegion: signingRegion, - Endpoint: endpoint, - APIVersion: "2015-04-08", - JSONVersion: "1.1", - TargetPrefix: "WorkspacesService", - }, - handlers, - ), +// New returns a new WorkSpaces client. +func New(config *aws.Config) *WorkSpaces { + service := &service.Service{ + ServiceInfo: serviceinfo.ServiceInfo{ + Config: defaults.DefaultConfig.Merge(config), + ServiceName: "workspaces", + APIVersion: "2015-04-08", + JSONVersion: "1.1", + TargetPrefix: "WorkspacesService", + }, } + service.Initialize() // Handlers - svc.Handlers.Sign.PushBack(v4.Sign) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + service.Handlers.Sign.PushBack(v4.Sign) + service.Handlers.Build.PushBack(jsonrpc.Build) + service.Handlers.Unmarshal.PushBack(jsonrpc.Unmarshal) + service.Handlers.UnmarshalMeta.PushBack(jsonrpc.UnmarshalMeta) + service.Handlers.UnmarshalError.PushBack(jsonrpc.UnmarshalError) - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) + // Run custom service initialization if present + if initService != nil { + initService(service) } - return svc + return &WorkSpaces{service} } // newRequest creates a new request for a WorkSpaces operation and runs any diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go index 16d8395e2..440cd9512 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface.go @@ -10,22 +10,10 @@ import ( // WorkSpacesAPI is the interface type for workspaces.WorkSpaces. type WorkSpacesAPI interface { - CreateTagsRequest(*workspaces.CreateTagsInput) (*request.Request, *workspaces.CreateTagsOutput) - - CreateTags(*workspaces.CreateTagsInput) (*workspaces.CreateTagsOutput, error) - CreateWorkspacesRequest(*workspaces.CreateWorkspacesInput) (*request.Request, *workspaces.CreateWorkspacesOutput) CreateWorkspaces(*workspaces.CreateWorkspacesInput) (*workspaces.CreateWorkspacesOutput, error) - DeleteTagsRequest(*workspaces.DeleteTagsInput) (*request.Request, *workspaces.DeleteTagsOutput) - - DeleteTags(*workspaces.DeleteTagsInput) (*workspaces.DeleteTagsOutput, error) - - DescribeTagsRequest(*workspaces.DescribeTagsInput) (*request.Request, *workspaces.DescribeTagsOutput) - - DescribeTags(*workspaces.DescribeTagsInput) (*workspaces.DescribeTagsOutput, error) - DescribeWorkspaceBundlesRequest(*workspaces.DescribeWorkspaceBundlesInput) (*request.Request, *workspaces.DescribeWorkspaceBundlesOutput) DescribeWorkspaceBundles(*workspaces.DescribeWorkspaceBundlesInput) (*workspaces.DescribeWorkspaceBundlesOutput, error) @@ -56,5 +44,3 @@ type WorkSpacesAPI interface { TerminateWorkspaces(*workspaces.TerminateWorkspacesInput) (*workspaces.TerminateWorkspacesOutput, error) } - -var _ WorkSpacesAPI = (*workspaces.WorkSpaces)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface_test.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface_test.go new file mode 100644 index 000000000..871c466db --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface_test.go @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. + +package workspacesiface_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/workspaces" + "github.com/aws/aws-sdk-go/service/workspaces/workspacesiface" + "github.com/stretchr/testify/assert" +) + +func TestInterface(t *testing.T) { + assert.Implements(t, (*workspacesiface.WorkSpacesAPI)(nil), workspaces.New(nil)) +} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/.gitignore b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/.gitignore deleted file mode 100644 index 7adca9439..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -testdata/conf_out.ini -ini.sublime-project -ini.sublime-workspace -testdata/conf_reflect.ini diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/LICENSE b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/LICENSE deleted file mode 100644 index 37ec93a14..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/LICENSE +++ /dev/null @@ -1,191 +0,0 @@ -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright -owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities -that control, are controlled by, or are under common control with that entity. -For the purposes of this definition, "control" means (i) the power, direct or -indirect, to cause the direction or management of such entity, whether by -contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including -but not limited to software source code, documentation source, and configuration -files. - -"Object" form shall mean any form resulting from mechanical transformation or -translation of a Source form, including but not limited to compiled object code, -generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made -available under the License, as indicated by a copyright notice that is included -in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that -is based on (or derived from) the Work and for which the editorial revisions, -annotations, elaborations, or other modifications represent, as a whole, an -original work of authorship. For the purposes of this License, Derivative Works -shall not include works that remain separable from, or merely link (or bind by -name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version -of the Work and any modifications or additions to that Work or Derivative Works -thereof, that is intentionally submitted to Licensor for inclusion in the Work -by the copyright owner or by an individual or Legal Entity authorized to submit -on behalf of the copyright owner. For the purposes of this definition, -"submitted" means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, and -issue tracking systems that are managed by, or on behalf of, the Licensor for -the purpose of discussing and improving the Work, but excluding communication -that is conspicuously marked or otherwise designated in writing by the copyright -owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf -of whom a Contribution has been received by Licensor and subsequently -incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable (except as stated in this section) patent license to make, have -made, use, offer to sell, sell, import, and otherwise transfer the Work, where -such license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by combination -of their Contribution(s) with the Work to which such Contribution(s) was -submitted. If You institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work or a -Contribution incorporated within the Work constitutes direct or contributory -patent infringement, then any patent licenses granted to You under this License -for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof -in any medium, with or without modifications, and in Source or Object form, -provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of -this License; and -You must cause any modified files to carry prominent notices stating that You -changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, -all copyright, patent, trademark, and attribution notices from the Source form -of the Work, excluding those notices that do not pertain to any part of the -Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any -Derivative Works that You distribute must include a readable copy of the -attribution notices contained within such NOTICE file, excluding those notices -that do not pertain to any part of the Derivative Works, in at least one of the -following places: within a NOTICE text file distributed as part of the -Derivative Works; within the Source form or documentation, if provided along -with the Derivative Works; or, within a display generated by the Derivative -Works, if and wherever such third-party notices normally appear. The contents of -the NOTICE file are for informational purposes only and do not modify the -License. You may add Your own attribution notices within Derivative Works that -You distribute, alongside or as an addendum to the NOTICE text from the Work, -provided that such additional attribution notices cannot be construed as -modifying the License. -You may add Your own copyright statement to Your modifications and may provide -additional or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a whole, -provided Your use, reproduction, and distribution of the Work otherwise complies -with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted -for inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the terms of -any separate license agreement you may have executed with Licensor regarding -such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, -service marks, or product names of the Licensor, except as required for -reasonable and customary use in describing the origin of the Work and -reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the -Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are -solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise of -permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), -contract, or otherwise, unless required by applicable law (such as deliberate -and grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, incidental, -or consequential damages of any character arising as a result of this License or -out of the use or inability to use the Work (including but not limited to -damages for loss of goodwill, work stoppage, computer failure or malfunction, or -any and all other commercial damages or losses), even if such Contributor has -been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to -offer, and charge a fee for, acceptance of support, warranty, indemnity, or -other liability obligations and/or rights consistent with this License. However, -in accepting such obligations, You may act only on Your own behalf and on Your -sole responsibility, not on behalf of any other Contributor, and only if You -agree to indemnify, defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason of your -accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work - -To apply the Apache License to your work, attach the following boilerplate -notice, with the fields enclosed by brackets "[]" replaced with your own -identifying information. (Don't include the brackets!) The text should be -enclosed in the appropriate comment syntax for the file format. We also -recommend that a file or class name and description of purpose be included on -the same "printed page" as the copyright notice for easier identification within -third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README.md b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README.md deleted file mode 100644 index 1272038a9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README.md +++ /dev/null @@ -1,560 +0,0 @@ -ini [![Build Status](https://drone.io/github.com/go-ini/ini/status.png)](https://drone.io/github.com/go-ini/ini/latest) [![](http://gocover.io/_badge/github.com/go-ini/ini)](http://gocover.io/github.com/go-ini/ini) -=== - -![](https://avatars0.githubusercontent.com/u/10216035?v=3&s=200) - -Package ini provides INI file read and write functionality in Go. - -[简体中文](README_ZH.md) - -## Feature - -- Load multiple data sources(`[]byte` or file) with overwrites. -- Read with recursion values. -- Read with parent-child sections. -- Read with auto-increment key names. -- Read with multiple-line values. -- Read with tons of helper methods. -- Read and convert values to Go types. -- Read and **WRITE** comments of sections and keys. -- Manipulate sections, keys and comments with ease. -- Keep sections and keys in order as you parse and save. - -## Installation - - go get gopkg.in/ini.v1 - -## Getting Started - -### Loading from data sources - -A **Data Source** is either raw data in type `[]byte` or a file name with type `string` and you can load **as many as** data sources you want. Passing other types will simply return an error. - -```go -cfg, err := ini.Load([]byte("raw data"), "filename") -``` - -Or start with an empty object: - -```go -cfg := ini.Empty() -``` - -When you cannot decide how many data sources to load at the beginning, you still able to **Append()** them later. - -```go -err := cfg.Append("other file", []byte("other raw data")) -``` - -### Working with sections - -To get a section, you would need to: - -```go -section, err := cfg.GetSection("section name") -``` - -For a shortcut for default section, just give an empty string as name: - -```go -section, err := cfg.GetSection("") -``` - -When you're pretty sure the section exists, following code could make your life easier: - -```go -section := cfg.Section("") -``` - -What happens when the section somehow does not exist? Don't panic, it automatically creates and returns a new section to you. - -To create a new section: - -```go -err := cfg.NewSection("new section") -``` - -To get a list of sections or section names: - -```go -sections := cfg.Sections() -names := cfg.SectionStrings() -``` - -### Working with keys - -To get a key under a section: - -```go -key, err := cfg.Section("").GetKey("key name") -``` - -Same rule applies to key operations: - -```go -key := cfg.Section("").Key("key name") -``` - -To create a new key: - -```go -err := cfg.Section("").NewKey("name", "value") -``` - -To get a list of keys or key names: - -```go -keys := cfg.Section("").Keys() -names := cfg.Section("").KeyStrings() -``` - -To get a clone hash of keys and corresponding values: - -```go -hash := cfg.GetSection("").KeysHash() -``` - -### Working with values - -To get a string value: - -```go -val := cfg.Section("").Key("key name").String() -``` - -To validate key value on the fly: - -```go -val := cfg.Section("").Key("key name").Validate(func(in string) string { - if len(in) == 0 { - return "default" - } - return in -}) -``` - -To get value with types: - -```go -// For boolean values: -// true when value is: 1, t, T, TRUE, true, True, YES, yes, Yes, ON, on, On -// false when value is: 0, f, F, FALSE, false, False, NO, no, No, OFF, off, Off -v, err = cfg.Section("").Key("BOOL").Bool() -v, err = cfg.Section("").Key("FLOAT64").Float64() -v, err = cfg.Section("").Key("INT").Int() -v, err = cfg.Section("").Key("INT64").Int64() -v, err = cfg.Section("").Key("UINT").Uint() -v, err = cfg.Section("").Key("UINT64").Uint64() -v, err = cfg.Section("").Key("TIME").TimeFormat(time.RFC3339) -v, err = cfg.Section("").Key("TIME").Time() // RFC3339 - -v = cfg.Section("").Key("BOOL").MustBool() -v = cfg.Section("").Key("FLOAT64").MustFloat64() -v = cfg.Section("").Key("INT").MustInt() -v = cfg.Section("").Key("INT64").MustInt64() -v = cfg.Section("").Key("UINT").MustUint() -v = cfg.Section("").Key("UINT64").MustUint64() -v = cfg.Section("").Key("TIME").MustTimeFormat(time.RFC3339) -v = cfg.Section("").Key("TIME").MustTime() // RFC3339 - -// Methods start with Must also accept one argument for default value -// when key not found or fail to parse value to given type. -// Except method MustString, which you have to pass a default value. - -v = cfg.Section("").Key("String").MustString("default") -v = cfg.Section("").Key("BOOL").MustBool(true) -v = cfg.Section("").Key("FLOAT64").MustFloat64(1.25) -v = cfg.Section("").Key("INT").MustInt(10) -v = cfg.Section("").Key("INT64").MustInt64(99) -v = cfg.Section("").Key("UINT").MustUint(3) -v = cfg.Section("").Key("UINT64").MustUint64(6) -v = cfg.Section("").Key("TIME").MustTimeFormat(time.RFC3339, time.Now()) -v = cfg.Section("").Key("TIME").MustTime(time.Now()) // RFC3339 -``` - -What if my value is three-line long? - -```ini -[advance] -ADDRESS = """404 road, -NotFound, State, 5000 -Earth""" -``` - -Not a problem! - -```go -cfg.Section("advance").Key("ADDRESS").String() - -/* --- start --- -404 road, -NotFound, State, 5000 -Earth ------- end --- */ -``` - -That's cool, how about continuation lines? - -```ini -[advance] -two_lines = how about \ - continuation lines? -lots_of_lines = 1 \ - 2 \ - 3 \ - 4 -``` - -Piece of cake! - -```go -cfg.Section("advance").Key("two_lines").String() // how about continuation lines? -cfg.Section("advance").Key("lots_of_lines").String() // 1 2 3 4 -``` - -Note that single quotes around values will be stripped: - -```ini -foo = "some value" // foo: some value -bar = 'some value' // bar: some value -``` - -That's all? Hmm, no. - -#### Helper methods of working with values - -To get value with given candidates: - -```go -v = cfg.Section("").Key("STRING").In("default", []string{"str", "arr", "types"}) -v = cfg.Section("").Key("FLOAT64").InFloat64(1.1, []float64{1.25, 2.5, 3.75}) -v = cfg.Section("").Key("INT").InInt(5, []int{10, 20, 30}) -v = cfg.Section("").Key("INT64").InInt64(10, []int64{10, 20, 30}) -v = cfg.Section("").Key("UINT").InUint(4, []int{3, 6, 9}) -v = cfg.Section("").Key("UINT64").InUint64(8, []int64{3, 6, 9}) -v = cfg.Section("").Key("TIME").InTimeFormat(time.RFC3339, time.Now(), []time.Time{time1, time2, time3}) -v = cfg.Section("").Key("TIME").InTime(time.Now(), []time.Time{time1, time2, time3}) // RFC3339 -``` - -Default value will be presented if value of key is not in candidates you given, and default value does not need be one of candidates. - -To validate value in a given range: - -```go -vals = cfg.Section("").Key("FLOAT64").RangeFloat64(0.0, 1.1, 2.2) -vals = cfg.Section("").Key("INT").RangeInt(0, 10, 20) -vals = cfg.Section("").Key("INT64").RangeInt64(0, 10, 20) -vals = cfg.Section("").Key("UINT").RangeUint(0, 3, 9) -vals = cfg.Section("").Key("UINT64").RangeUint64(0, 3, 9) -vals = cfg.Section("").Key("TIME").RangeTimeFormat(time.RFC3339, time.Now(), minTime, maxTime) -vals = cfg.Section("").Key("TIME").RangeTime(time.Now(), minTime, maxTime) // RFC3339 -``` - -To auto-split value into slice: - -```go -vals = cfg.Section("").Key("STRINGS").Strings(",") -vals = cfg.Section("").Key("FLOAT64S").Float64s(",") -vals = cfg.Section("").Key("INTS").Ints(",") -vals = cfg.Section("").Key("INT64S").Int64s(",") -vals = cfg.Section("").Key("UINTS").Uints(",") -vals = cfg.Section("").Key("UINT64S").Uint64s(",") -vals = cfg.Section("").Key("TIMES").Times(",") -``` - -### Save your configuration - -Finally, it's time to save your configuration to somewhere. - -A typical way to save configuration is writing it to a file: - -```go -// ... -err = cfg.SaveTo("my.ini") -err = cfg.SaveToIndent("my.ini", "\t") -``` - -Another way to save is writing to a `io.Writer` interface: - -```go -// ... -cfg.WriteTo(writer) -cfg.WriteToIndent(writer, "\t") -``` - -## Advanced Usage - -### Recursive Values - -For all value of keys, there is a special syntax `%()s`, where `` is the key name in same section or default section, and `%()s` will be replaced by corresponding value(empty string if key not found). You can use this syntax at most 99 level of recursions. - -```ini -NAME = ini - -[author] -NAME = Unknwon -GITHUB = https://github.com/%(NAME)s - -[package] -FULL_NAME = github.com/go-ini/%(NAME)s -``` - -```go -cfg.Section("author").Key("GITHUB").String() // https://github.com/Unknwon -cfg.Section("package").Key("FULL_NAME").String() // github.com/go-ini/ini -``` - -### Parent-child Sections - -You can use `.` in section name to indicate parent-child relationship between two or more sections. If the key not found in the child section, library will try again on its parent section until there is no parent section. - -```ini -NAME = ini -VERSION = v1 -IMPORT_PATH = gopkg.in/%(NAME)s.%(VERSION)s - -[package] -CLONE_URL = https://%(IMPORT_PATH)s - -[package.sub] -``` - -```go -cfg.Section("package.sub").Key("CLONE_URL").String() // https://gopkg.in/ini.v1 -``` - -### Auto-increment Key Names - -If key name is `-` in data source, then it would be seen as special syntax for auto-increment key name start from 1, and every section is independent on counter. - -```ini -[features] --: Support read/write comments of keys and sections --: Support auto-increment of key names --: Support load multiple files to overwrite key values -``` - -```go -cfg.Section("features").KeyStrings() // []{"#1", "#2", "#3"} -``` - -### Map To Struct - -Want more objective way to play with INI? Cool. - -```ini -Name = Unknwon -age = 21 -Male = true -Born = 1993-01-01T20:17:05Z - -[Note] -Content = Hi is a good man! -Cities = HangZhou, Boston -``` - -```go -type Note struct { - Content string - Cities []string -} - -type Person struct { - Name string - Age int `ini:"age"` - Male bool - Born time.Time - Note - Created time.Time `ini:"-"` -} - -func main() { - cfg, err := ini.Load("path/to/ini") - // ... - p := new(Person) - err = cfg.MapTo(p) - // ... - - // Things can be simpler. - err = ini.MapTo(p, "path/to/ini") - // ... - - // Just map a section? Fine. - n := new(Note) - err = cfg.Section("Note").MapTo(n) - // ... -} -``` - -Can I have default value for field? Absolutely. - -Assign it before you map to struct. It will keep the value as it is if the key is not presented or got wrong type. - -```go -// ... -p := &Person{ - Name: "Joe", -} -// ... -``` - -It's really cool, but what's the point if you can't give me my file back from struct? - -### Reflect From Struct - -Why not? - -```go -type Embeded struct { - Dates []time.Time `delim:"|"` - Places []string - None []int -} - -type Author struct { - Name string `ini:"NAME"` - Male bool - Age int - GPA float64 - NeverMind string `ini:"-"` - *Embeded -} - -func main() { - a := &Author{"Unknwon", true, 21, 2.8, "", - &Embeded{ - []time.Time{time.Now(), time.Now()}, - []string{"HangZhou", "Boston"}, - []int{}, - }} - cfg := ini.Empty() - err = ini.ReflectFrom(cfg, a) - // ... -} -``` - -So, what do I get? - -```ini -NAME = Unknwon -Male = true -Age = 21 -GPA = 2.8 - -[Embeded] -Dates = 2015-08-07T22:14:22+08:00|2015-08-07T22:14:22+08:00 -Places = HangZhou,Boston -None = -``` - -#### Name Mapper - -To save your time and make your code cleaner, this library supports [`NameMapper`](https://gowalker.org/gopkg.in/ini.v1#NameMapper) between struct field and actual section and key name. - -There are 2 built-in name mappers: - -- `AllCapsUnderscore`: it converts to format `ALL_CAPS_UNDERSCORE` then match section or key. -- `TitleUnderscore`: it converts to format `title_underscore` then match section or key. - -To use them: - -```go -type Info struct { - PackageName string -} - -func main() { - err = ini.MapToWithMapper(&Info{}, ini.TitleUnderscore, []byte("packag_name=ini")) - // ... - - cfg, err := ini.Load([]byte("PACKAGE_NAME=ini")) - // ... - info := new(Info) - cfg.NameMapper = ini.AllCapsUnderscore - err = cfg.MapTo(info) - // ... -} -``` - -Same rules of name mapper apply to `ini.ReflectFromWithMapper` function. - -#### Other Notes On Map/Reflect - -Any embedded struct is treated as a section by default, and there is no automatic parent-child relations in map/reflect feature: - -```go -type Child struct { - Age string -} - -type Parent struct { - Name string - Child -} - -type Config struct { - City string - Parent -} -``` - -Example configuration: - -```ini -City = Boston - -[Parent] -Name = Unknwon - -[Child] -Age = 21 -``` - -What if, yes, I'm paranoid, I want embedded struct to be in the same section. Well, all roads lead to Rome. - -```go -type Child struct { - Age string -} - -type Parent struct { - Name string - Child `ini:"Parent"` -} - -type Config struct { - City string - Parent -} -``` - -Example configuration: - -```ini -City = Boston - -[Parent] -Name = Unknwon -Age = 21 -``` - -## Getting Help - -- [API Documentation](https://gowalker.org/gopkg.in/ini.v1) -- [File An Issue](https://github.com/go-ini/ini/issues/new) - -## FAQs - -### What does `BlockMode` field do? - -By default, library lets you read and write values so we need a locker to make sure your data is safe. But in cases that you are very sure about only reading data through the library, you can set `cfg.BlockMode = false` to speed up read operations about **50-70%** faster. - -### Why another INI library? - -Many people are using my another INI library [goconfig](https://github.com/Unknwon/goconfig), so the reason for this one is I would like to make more Go style code. Also when you set `cfg.BlockMode = false`, this one is about **10-30%** faster. - -To make those changes I have to confirm API broken, so it's safer to keep it in another place and start using `gopkg.in` to version my package at this time.(PS: shorter import path) - -## License - -This project is under Apache v2 License. See the [LICENSE](LICENSE) file for the full license text. diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README_ZH.md b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README_ZH.md deleted file mode 100644 index 45e19eddd..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README_ZH.md +++ /dev/null @@ -1,547 +0,0 @@ -本包提供了 Go 语言中读写 INI 文件的功能。 - -## 功能特性 - -- 支持覆盖加载多个数据源(`[]byte` 或文件) -- 支持递归读取键值 -- 支持读取父子分区 -- 支持读取自增键名 -- 支持读取多行的键值 -- 支持大量辅助方法 -- 支持在读取时直接转换为 Go 语言类型 -- 支持读取和 **写入** 分区和键的注释 -- 轻松操作分区、键值和注释 -- 在保存文件时分区和键值会保持原有的顺序 - -## 下载安装 - - go get gopkg.in/ini.v1 - -## 开始使用 - -### 从数据源加载 - -一个 **数据源** 可以是 `[]byte` 类型的原始数据,或 `string` 类型的文件路径。您可以加载 **任意多个** 数据源。如果您传递其它类型的数据源,则会直接返回错误。 - -```go -cfg, err := ini.Load([]byte("raw data"), "filename") -``` - -或者从一个空白的文件开始: - -```go -cfg := ini.Empty() -``` - -当您在一开始无法决定需要加载哪些数据源时,仍可以使用 **Append()** 在需要的时候加载它们。 - -```go -err := cfg.Append("other file", []byte("other raw data")) -``` - -### 操作分区(Section) - -获取指定分区: - -```go -section, err := cfg.GetSection("section name") -``` - -如果您想要获取默认分区,则可以用空字符串代替分区名: - -```go -section, err := cfg.GetSection("") -``` - -当您非常确定某个分区是存在的,可以使用以下简便方法: - -```go -section := cfg.Section("") -``` - -如果不小心判断错了,要获取的分区其实是不存在的,那会发生什么呢?没事的,它会自动创建并返回一个对应的分区对象给您。 - -创建一个分区: - -```go -err := cfg.NewSection("new section") -``` - -获取所有分区对象或名称: - -```go -sections := cfg.Sections() -names := cfg.SectionStrings() -``` - -### 操作键(Key) - -获取某个分区下的键: - -```go -key, err := cfg.Section("").GetKey("key name") -``` - -和分区一样,您也可以直接获取键而忽略错误处理: - -```go -key := cfg.Section("").Key("key name") -``` - -创建一个新的键: - -```go -err := cfg.Section("").NewKey("name", "value") -``` - -获取分区下的所有键或键名: - -```go -keys := cfg.Section("").Keys() -names := cfg.Section("").KeyStrings() -``` - -获取分区下的所有键值对的克隆: - -```go -hash := cfg.GetSection("").KeysHash() -``` - -### 操作键值(Value) - -获取一个类型为字符串(string)的值: - -```go -val := cfg.Section("").Key("key name").String() -``` - -获取值的同时通过自定义函数进行处理验证: - -```go -val := cfg.Section("").Key("key name").Validate(func(in string) string { - if len(in) == 0 { - return "default" - } - return in -}) -``` - -获取其它类型的值: - -```go -// 布尔值的规则: -// true 当值为:1, t, T, TRUE, true, True, YES, yes, Yes, ON, on, On -// false 当值为:0, f, F, FALSE, false, False, NO, no, No, OFF, off, Off -v, err = cfg.Section("").Key("BOOL").Bool() -v, err = cfg.Section("").Key("FLOAT64").Float64() -v, err = cfg.Section("").Key("INT").Int() -v, err = cfg.Section("").Key("INT64").Int64() -v, err = cfg.Section("").Key("UINT").Uint() -v, err = cfg.Section("").Key("UINT64").Uint64() -v, err = cfg.Section("").Key("TIME").TimeFormat(time.RFC3339) -v, err = cfg.Section("").Key("TIME").Time() // RFC3339 - -v = cfg.Section("").Key("BOOL").MustBool() -v = cfg.Section("").Key("FLOAT64").MustFloat64() -v = cfg.Section("").Key("INT").MustInt() -v = cfg.Section("").Key("INT64").MustInt64() -v = cfg.Section("").Key("UINT").MustUint() -v = cfg.Section("").Key("UINT64").MustUint64() -v = cfg.Section("").Key("TIME").MustTimeFormat(time.RFC3339) -v = cfg.Section("").Key("TIME").MustTime() // RFC3339 - -// 由 Must 开头的方法名允许接收一个相同类型的参数来作为默认值, -// 当键不存在或者转换失败时,则会直接返回该默认值。 -// 但是,MustString 方法必须传递一个默认值。 - -v = cfg.Seciont("").Key("String").MustString("default") -v = cfg.Section("").Key("BOOL").MustBool(true) -v = cfg.Section("").Key("FLOAT64").MustFloat64(1.25) -v = cfg.Section("").Key("INT").MustInt(10) -v = cfg.Section("").Key("INT64").MustInt64(99) -v = cfg.Section("").Key("UINT").MustUint(3) -v = cfg.Section("").Key("UINT64").MustUint64(6) -v = cfg.Section("").Key("TIME").MustTimeFormat(time.RFC3339, time.Now()) -v = cfg.Section("").Key("TIME").MustTime(time.Now()) // RFC3339 -``` - -如果我的值有好多行怎么办? - -```ini -[advance] -ADDRESS = """404 road, -NotFound, State, 5000 -Earth""" -``` - -嗯哼?小 case! - -```go -cfg.Section("advance").Key("ADDRESS").String() - -/* --- start --- -404 road, -NotFound, State, 5000 -Earth ------- end --- */ -``` - -赞爆了!那要是我属于一行的内容写不下想要写到第二行怎么办? - -```ini -[advance] -two_lines = how about \ - continuation lines? -lots_of_lines = 1 \ - 2 \ - 3 \ - 4 -``` - -简直是小菜一碟! - -```go -cfg.Section("advance").Key("two_lines").String() // how about continuation lines? -cfg.Section("advance").Key("lots_of_lines").String() // 1 2 3 4 -``` - -需要注意的是,值两侧的单引号会被自动剔除: - -```ini -foo = "some value" // foo: some value -bar = 'some value' // bar: some value -``` - -这就是全部了?哈哈,当然不是。 - -#### 操作键值的辅助方法 - -获取键值时设定候选值: - -```go -v = cfg.Section("").Key("STRING").In("default", []string{"str", "arr", "types"}) -v = cfg.Section("").Key("FLOAT64").InFloat64(1.1, []float64{1.25, 2.5, 3.75}) -v = cfg.Section("").Key("INT").InInt(5, []int{10, 20, 30}) -v = cfg.Section("").Key("INT64").InInt64(10, []int64{10, 20, 30}) -v = cfg.Section("").Key("UINT").InUint(4, []int{3, 6, 9}) -v = cfg.Section("").Key("UINT64").InUint64(8, []int64{3, 6, 9}) -v = cfg.Section("").Key("TIME").InTimeFormat(time.RFC3339, time.Now(), []time.Time{time1, time2, time3}) -v = cfg.Section("").Key("TIME").InTime(time.Now(), []time.Time{time1, time2, time3}) // RFC3339 -``` - -如果获取到的值不是候选值的任意一个,则会返回默认值,而默认值不需要是候选值中的一员。 - -验证获取的值是否在指定范围内: - -```go -vals = cfg.Section("").Key("FLOAT64").RangeFloat64(0.0, 1.1, 2.2) -vals = cfg.Section("").Key("INT").RangeInt(0, 10, 20) -vals = cfg.Section("").Key("INT64").RangeInt64(0, 10, 20) -vals = cfg.Section("").Key("UINT").RangeUint(0, 3, 9) -vals = cfg.Section("").Key("UINT64").RangeUint64(0, 3, 9) -vals = cfg.Section("").Key("TIME").RangeTimeFormat(time.RFC3339, time.Now(), minTime, maxTime) -vals = cfg.Section("").Key("TIME").RangeTime(time.Now(), minTime, maxTime) // RFC3339 -``` - -自动分割键值为切片(slice): - -```go -vals = cfg.Section("").Key("STRINGS").Strings(",") -vals = cfg.Section("").Key("FLOAT64S").Float64s(",") -vals = cfg.Section("").Key("INTS").Ints(",") -vals = cfg.Section("").Key("INT64S").Int64s(",") -vals = cfg.Section("").Key("UINTS").Uints(",") -vals = cfg.Section("").Key("UINT64S").Uint64s(",") -vals = cfg.Section("").Key("TIMES").Times(",") -``` - -### 保存配置 - -终于到了这个时刻,是时候保存一下配置了。 - -比较原始的做法是输出配置到某个文件: - -```go -// ... -err = cfg.SaveTo("my.ini") -err = cfg.SaveToIndent("my.ini", "\t") -``` - -另一个比较高级的做法是写入到任何实现 `io.Writer` 接口的对象中: - -```go -// ... -cfg.WriteTo(writer) -cfg.WriteToIndent(writer, "\t") -``` - -### 高级用法 - -#### 递归读取键值 - -在获取所有键值的过程中,特殊语法 `%()s` 会被应用,其中 `` 可以是相同分区或者默认分区下的键名。字符串 `%()s` 会被相应的键值所替代,如果指定的键不存在,则会用空字符串替代。您可以最多使用 99 层的递归嵌套。 - -```ini -NAME = ini - -[author] -NAME = Unknwon -GITHUB = https://github.com/%(NAME)s - -[package] -FULL_NAME = github.com/go-ini/%(NAME)s -``` - -```go -cfg.Section("author").Key("GITHUB").String() // https://github.com/Unknwon -cfg.Section("package").Key("FULL_NAME").String() // github.com/go-ini/ini -``` - -#### 读取父子分区 - -您可以在分区名称中使用 `.` 来表示两个或多个分区之间的父子关系。如果某个键在子分区中不存在,则会去它的父分区中再次寻找,直到没有父分区为止。 - -```ini -NAME = ini -VERSION = v1 -IMPORT_PATH = gopkg.in/%(NAME)s.%(VERSION)s - -[package] -CLONE_URL = https://%(IMPORT_PATH)s - -[package.sub] -``` - -```go -cfg.Section("package.sub").Key("CLONE_URL").String() // https://gopkg.in/ini.v1 -``` - -#### 读取自增键名 - -如果数据源中的键名为 `-`,则认为该键使用了自增键名的特殊语法。计数器从 1 开始,并且分区之间是相互独立的。 - -```ini -[features] --: Support read/write comments of keys and sections --: Support auto-increment of key names --: Support load multiple files to overwrite key values -``` - -```go -cfg.Section("features").KeyStrings() // []{"#1", "#2", "#3"} -``` - -### 映射到结构 - -想要使用更加面向对象的方式玩转 INI 吗?好主意。 - -```ini -Name = Unknwon -age = 21 -Male = true -Born = 1993-01-01T20:17:05Z - -[Note] -Content = Hi is a good man! -Cities = HangZhou, Boston -``` - -```go -type Note struct { - Content string - Cities []string -} - -type Person struct { - Name string - Age int `ini:"age"` - Male bool - Born time.Time - Note - Created time.Time `ini:"-"` -} - -func main() { - cfg, err := ini.Load("path/to/ini") - // ... - p := new(Person) - err = cfg.MapTo(p) - // ... - - // 一切竟可以如此的简单。 - err = ini.MapTo(p, "path/to/ini") - // ... - - // 嗯哼?只需要映射一个分区吗? - n := new(Note) - err = cfg.Section("Note").MapTo(n) - // ... -} -``` - -结构的字段怎么设置默认值呢?很简单,只要在映射之前对指定字段进行赋值就可以了。如果键未找到或者类型错误,该值不会发生改变。 - -```go -// ... -p := &Person{ - Name: "Joe", -} -// ... -``` - -这样玩 INI 真的好酷啊!然而,如果不能还给我原来的配置文件,有什么卵用? - -### 从结构反射 - -可是,我有说不能吗? - -```go -type Embeded struct { - Dates []time.Time `delim:"|"` - Places []string - None []int -} - -type Author struct { - Name string `ini:"NAME"` - Male bool - Age int - GPA float64 - NeverMind string `ini:"-"` - *Embeded -} - -func main() { - a := &Author{"Unknwon", true, 21, 2.8, "", - &Embeded{ - []time.Time{time.Now(), time.Now()}, - []string{"HangZhou", "Boston"}, - []int{}, - }} - cfg := ini.Empty() - err = ini.ReflectFrom(cfg, a) - // ... -} -``` - -瞧瞧,奇迹发生了。 - -```ini -NAME = Unknwon -Male = true -Age = 21 -GPA = 2.8 - -[Embeded] -Dates = 2015-08-07T22:14:22+08:00|2015-08-07T22:14:22+08:00 -Places = HangZhou,Boston -None = -``` - -#### 名称映射器(Name Mapper) - -为了节省您的时间并简化代码,本库支持类型为 [`NameMapper`](https://gowalker.org/gopkg.in/ini.v1#NameMapper) 的名称映射器,该映射器负责结构字段名与分区名和键名之间的映射。 - -目前有 2 款内置的映射器: - -- `AllCapsUnderscore`:该映射器将字段名转换至格式 `ALL_CAPS_UNDERSCORE` 后再去匹配分区名和键名。 -- `TitleUnderscore`:该映射器将字段名转换至格式 `title_underscore` 后再去匹配分区名和键名。 - -使用方法: - -```go -type Info struct{ - PackageName string -} - -func main() { - err = ini.MapToWithMapper(&Info{}, ini.TitleUnderscore, []byte("packag_name=ini")) - // ... - - cfg, err := ini.Load([]byte("PACKAGE_NAME=ini")) - // ... - info := new(Info) - cfg.NameMapper = ini.AllCapsUnderscore - err = cfg.MapTo(info) - // ... -} -``` - -使用函数 `ini.ReflectFromWithMapper` 时也可应用相同的规则。 - -#### 映射/反射的其它说明 - -任何嵌入的结构都会被默认认作一个不同的分区,并且不会自动产生所谓的父子分区关联: - -```go -type Child struct { - Age string -} - -type Parent struct { - Name string - Child -} - -type Config struct { - City string - Parent -} -``` - -示例配置文件: - -```ini -City = Boston - -[Parent] -Name = Unknwon - -[Child] -Age = 21 -``` - -很好,但是,我就是要嵌入结构也在同一个分区。好吧,你爹是李刚! - -```go -type Child struct { - Age string -} - -type Parent struct { - Name string - Child `ini:"Parent"` -} - -type Config struct { - City string - Parent -} -``` - -示例配置文件: - -```ini -City = Boston - -[Parent] -Name = Unknwon -Age = 21 -``` - -## 获取帮助 - -- [API 文档](https://gowalker.org/gopkg.in/ini.v1) -- [创建工单](https://github.com/go-ini/ini/issues/new) - -## 常见问题 - -### 字段 `BlockMode` 是什么? - -默认情况下,本库会在您进行读写操作时采用锁机制来确保数据时间。但在某些情况下,您非常确定只进行读操作。此时,您可以通过设置 `cfg.BlockMode = false` 来将读操作提升大约 **50-70%** 的性能。 - -### 为什么要写另一个 INI 解析库? - -许多人都在使用我的 [goconfig](https://github.com/Unknwon/goconfig) 来完成对 INI 文件的操作,但我希望使用更加 Go 风格的代码。并且当您设置 `cfg.BlockMode = false` 时,会有大约 **10-30%** 的性能提升。 - -为了做出这些改变,我必须对 API 进行破坏,所以新开一个仓库是最安全的做法。除此之外,本库直接使用 `gopkg.in` 来进行版本化发布。(其实真相是导入路径更短了) diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini.go deleted file mode 100644 index 1fee789a1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini.go +++ /dev/null @@ -1,1226 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -// Package ini provides INI file read and write functionality in Go. -package ini - -import ( - "bufio" - "bytes" - "errors" - "fmt" - "io" - "os" - "regexp" - "runtime" - "strconv" - "strings" - "sync" - "time" -) - -const ( - DEFAULT_SECTION = "DEFAULT" - // Maximum allowed depth when recursively substituing variable names. - _DEPTH_VALUES = 99 - - _VERSION = "1.6.0" -) - -func Version() string { - return _VERSION -} - -var ( - LineBreak = "\n" - - // Variable regexp pattern: %(variable)s - varPattern = regexp.MustCompile(`%\(([^\)]+)\)s`) - - // Write spaces around "=" to look better. - PrettyFormat = true -) - -func init() { - if runtime.GOOS == "windows" { - LineBreak = "\r\n" - } -} - -func inSlice(str string, s []string) bool { - for _, v := range s { - if str == v { - return true - } - } - return false -} - -// dataSource is a interface that returns file content. -type dataSource interface { - ReadCloser() (io.ReadCloser, error) -} - -type sourceFile struct { - name string -} - -func (s sourceFile) ReadCloser() (_ io.ReadCloser, err error) { - return os.Open(s.name) -} - -type bytesReadCloser struct { - reader io.Reader -} - -func (rc *bytesReadCloser) Read(p []byte) (n int, err error) { - return rc.reader.Read(p) -} - -func (rc *bytesReadCloser) Close() error { - return nil -} - -type sourceData struct { - data []byte -} - -func (s *sourceData) ReadCloser() (io.ReadCloser, error) { - return &bytesReadCloser{bytes.NewReader(s.data)}, nil -} - -// ____ __. -// | |/ _|____ ___.__. -// | <_/ __ < | | -// | | \ ___/\___ | -// |____|__ \___ > ____| -// \/ \/\/ - -// Key represents a key under a section. -type Key struct { - s *Section - Comment string - name string - value string - isAutoIncr bool -} - -// Name returns name of key. -func (k *Key) Name() string { - return k.name -} - -// Value returns raw value of key for performance purpose. -func (k *Key) Value() string { - return k.value -} - -// String returns string representation of value. -func (k *Key) String() string { - val := k.value - if strings.Index(val, "%") == -1 { - return val - } - - for i := 0; i < _DEPTH_VALUES; i++ { - vr := varPattern.FindString(val) - if len(vr) == 0 { - break - } - - // Take off leading '%(' and trailing ')s'. - noption := strings.TrimLeft(vr, "%(") - noption = strings.TrimRight(noption, ")s") - - // Search in the same section. - nk, err := k.s.GetKey(noption) - if err != nil { - // Search again in default section. - nk, _ = k.s.f.Section("").GetKey(noption) - } - - // Substitute by new value and take off leading '%(' and trailing ')s'. - val = strings.Replace(val, vr, nk.value, -1) - } - return val -} - -// Validate accepts a validate function which can -// return modifed result as key value. -func (k *Key) Validate(fn func(string) string) string { - return fn(k.String()) -} - -// parseBool returns the boolean value represented by the string. -// -// It accepts 1, t, T, TRUE, true, True, YES, yes, Yes, ON, on, On, -// 0, f, F, FALSE, false, False, NO, no, No, OFF, off, Off. -// Any other value returns an error. -func parseBool(str string) (value bool, err error) { - switch str { - case "1", "t", "T", "true", "TRUE", "True", "YES", "yes", "Yes", "ON", "on", "On": - return true, nil - case "0", "f", "F", "false", "FALSE", "False", "NO", "no", "No", "OFF", "off", "Off": - return false, nil - } - return false, fmt.Errorf("parsing \"%s\": invalid syntax", str) -} - -// Bool returns bool type value. -func (k *Key) Bool() (bool, error) { - return parseBool(k.String()) -} - -// Float64 returns float64 type value. -func (k *Key) Float64() (float64, error) { - return strconv.ParseFloat(k.String(), 64) -} - -// Int returns int type value. -func (k *Key) Int() (int, error) { - return strconv.Atoi(k.String()) -} - -// Int64 returns int64 type value. -func (k *Key) Int64() (int64, error) { - return strconv.ParseInt(k.String(), 10, 64) -} - -// Uint returns uint type valued. -func (k *Key) Uint() (uint, error) { - u, e := strconv.ParseUint(k.String(), 10, 64) - return uint(u), e -} - -// Uint64 returns uint64 type value. -func (k *Key) Uint64() (uint64, error) { - return strconv.ParseUint(k.String(), 10, 64) -} - -// Duration returns time.Duration type value. -func (k *Key) Duration() (time.Duration, error) { - return time.ParseDuration(k.String()) -} - -// TimeFormat parses with given format and returns time.Time type value. -func (k *Key) TimeFormat(format string) (time.Time, error) { - return time.Parse(format, k.String()) -} - -// Time parses with RFC3339 format and returns time.Time type value. -func (k *Key) Time() (time.Time, error) { - return k.TimeFormat(time.RFC3339) -} - -// MustString returns default value if key value is empty. -func (k *Key) MustString(defaultVal string) string { - val := k.String() - if len(val) == 0 { - return defaultVal - } - return val -} - -// MustBool always returns value without error, -// it returns false if error occurs. -func (k *Key) MustBool(defaultVal ...bool) bool { - val, err := k.Bool() - if len(defaultVal) > 0 && err != nil { - return defaultVal[0] - } - return val -} - -// MustFloat64 always returns value without error, -// it returns 0.0 if error occurs. -func (k *Key) MustFloat64(defaultVal ...float64) float64 { - val, err := k.Float64() - if len(defaultVal) > 0 && err != nil { - return defaultVal[0] - } - return val -} - -// MustInt always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustInt(defaultVal ...int) int { - val, err := k.Int() - if len(defaultVal) > 0 && err != nil { - return defaultVal[0] - } - return val -} - -// MustInt64 always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustInt64(defaultVal ...int64) int64 { - val, err := k.Int64() - if len(defaultVal) > 0 && err != nil { - return defaultVal[0] - } - return val -} - -// MustUint always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustUint(defaultVal ...uint) uint { - val, err := k.Uint() - if len(defaultVal) > 0 && err != nil { - return defaultVal[0] - } - return val -} - -// MustUint64 always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustUint64(defaultVal ...uint64) uint64 { - val, err := k.Uint64() - if len(defaultVal) > 0 && err != nil { - return defaultVal[0] - } - return val -} - -// MustDuration always returns value without error, -// it returns zero value if error occurs. -func (k *Key) MustDuration(defaultVal ...time.Duration) time.Duration { - val, err := k.Duration() - if len(defaultVal) > 0 && err != nil { - return defaultVal[0] - } - return val -} - -// MustTimeFormat always parses with given format and returns value without error, -// it returns zero value if error occurs. -func (k *Key) MustTimeFormat(format string, defaultVal ...time.Time) time.Time { - val, err := k.TimeFormat(format) - if len(defaultVal) > 0 && err != nil { - return defaultVal[0] - } - return val -} - -// MustTime always parses with RFC3339 format and returns value without error, -// it returns zero value if error occurs. -func (k *Key) MustTime(defaultVal ...time.Time) time.Time { - return k.MustTimeFormat(time.RFC3339, defaultVal...) -} - -// In always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) In(defaultVal string, candidates []string) string { - val := k.String() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InFloat64 always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InFloat64(defaultVal float64, candidates []float64) float64 { - val := k.MustFloat64() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InInt always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InInt(defaultVal int, candidates []int) int { - val := k.MustInt() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InInt64 always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InInt64(defaultVal int64, candidates []int64) int64 { - val := k.MustInt64() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InUint always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InUint(defaultVal uint, candidates []uint) uint { - val := k.MustUint() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InUint64 always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InUint64(defaultVal uint64, candidates []uint64) uint64 { - val := k.MustUint64() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InTimeFormat always parses with given format and returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InTimeFormat(format string, defaultVal time.Time, candidates []time.Time) time.Time { - val := k.MustTimeFormat(format) - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InTime always parses with RFC3339 format and returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InTime(defaultVal time.Time, candidates []time.Time) time.Time { - return k.InTimeFormat(time.RFC3339, defaultVal, candidates) -} - -// RangeFloat64 checks if value is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeFloat64(defaultVal, min, max float64) float64 { - val := k.MustFloat64() - if val < min || val > max { - return defaultVal - } - return val -} - -// RangeInt checks if value is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeInt(defaultVal, min, max int) int { - val := k.MustInt() - if val < min || val > max { - return defaultVal - } - return val -} - -// RangeInt64 checks if value is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeInt64(defaultVal, min, max int64) int64 { - val := k.MustInt64() - if val < min || val > max { - return defaultVal - } - return val -} - -// RangeTimeFormat checks if value with given format is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeTimeFormat(format string, defaultVal, min, max time.Time) time.Time { - val := k.MustTimeFormat(format) - if val.Unix() < min.Unix() || val.Unix() > max.Unix() { - return defaultVal - } - return val -} - -// RangeTime checks if value with RFC3339 format is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeTime(defaultVal, min, max time.Time) time.Time { - return k.RangeTimeFormat(time.RFC3339, defaultVal, min, max) -} - -// Strings returns list of string devide by given delimiter. -func (k *Key) Strings(delim string) []string { - str := k.String() - if len(str) == 0 { - return []string{} - } - - vals := strings.Split(str, delim) - for i := range vals { - vals[i] = strings.TrimSpace(vals[i]) - } - return vals -} - -// Float64s returns list of float64 devide by given delimiter. -func (k *Key) Float64s(delim string) []float64 { - strs := k.Strings(delim) - vals := make([]float64, len(strs)) - for i := range strs { - vals[i], _ = strconv.ParseFloat(strs[i], 64) - } - return vals -} - -// Ints returns list of int devide by given delimiter. -func (k *Key) Ints(delim string) []int { - strs := k.Strings(delim) - vals := make([]int, len(strs)) - for i := range strs { - vals[i], _ = strconv.Atoi(strs[i]) - } - return vals -} - -// Int64s returns list of int64 devide by given delimiter. -func (k *Key) Int64s(delim string) []int64 { - strs := k.Strings(delim) - vals := make([]int64, len(strs)) - for i := range strs { - vals[i], _ = strconv.ParseInt(strs[i], 10, 64) - } - return vals -} - -// Uints returns list of uint devide by given delimiter. -func (k *Key) Uints(delim string) []uint { - strs := k.Strings(delim) - vals := make([]uint, len(strs)) - for i := range strs { - u, _ := strconv.ParseUint(strs[i], 10, 64) - vals[i] = uint(u) - } - return vals -} - -// Uint64s returns list of uint64 devide by given delimiter. -func (k *Key) Uint64s(delim string) []uint64 { - strs := k.Strings(delim) - vals := make([]uint64, len(strs)) - for i := range strs { - vals[i], _ = strconv.ParseUint(strs[i], 10, 64) - } - return vals -} - -// TimesFormat parses with given format and returns list of time.Time devide by given delimiter. -func (k *Key) TimesFormat(format, delim string) []time.Time { - strs := k.Strings(delim) - vals := make([]time.Time, len(strs)) - for i := range strs { - vals[i], _ = time.Parse(format, strs[i]) - } - return vals -} - -// Times parses with RFC3339 format and returns list of time.Time devide by given delimiter. -func (k *Key) Times(delim string) []time.Time { - return k.TimesFormat(time.RFC3339, delim) -} - -// SetValue changes key value. -func (k *Key) SetValue(v string) { - k.value = v -} - -// _________ __ .__ -// / _____/ ____ _____/ |_|__| ____ ____ -// \_____ \_/ __ \_/ ___\ __\ |/ _ \ / \ -// / \ ___/\ \___| | | ( <_> ) | \ -// /_______ /\___ >\___ >__| |__|\____/|___| / -// \/ \/ \/ \/ - -// Section represents a config section. -type Section struct { - f *File - Comment string - name string - keys map[string]*Key - keyList []string - keysHash map[string]string -} - -func newSection(f *File, name string) *Section { - return &Section{f, "", name, make(map[string]*Key), make([]string, 0, 10), make(map[string]string)} -} - -// Name returns name of Section. -func (s *Section) Name() string { - return s.name -} - -// NewKey creates a new key to given section. -func (s *Section) NewKey(name, val string) (*Key, error) { - if len(name) == 0 { - return nil, errors.New("error creating new key: empty key name") - } - - if s.f.BlockMode { - s.f.lock.Lock() - defer s.f.lock.Unlock() - } - - if inSlice(name, s.keyList) { - s.keys[name].value = val - return s.keys[name], nil - } - - s.keyList = append(s.keyList, name) - s.keys[name] = &Key{s, "", name, val, false} - s.keysHash[name] = val - return s.keys[name], nil -} - -// GetKey returns key in section by given name. -func (s *Section) GetKey(name string) (*Key, error) { - // FIXME: change to section level lock? - if s.f.BlockMode { - s.f.lock.RLock() - } - key := s.keys[name] - if s.f.BlockMode { - s.f.lock.RUnlock() - } - - if key == nil { - // Check if it is a child-section. - sname := s.name - for { - if i := strings.LastIndex(sname, "."); i > -1 { - sname = sname[:i] - sec, err := s.f.GetSection(sname) - if err != nil { - continue - } - return sec.GetKey(name) - } else { - break - } - } - return nil, fmt.Errorf("error when getting key of section '%s': key '%s' not exists", s.name, name) - } - return key, nil -} - -// Key assumes named Key exists in section and returns a zero-value when not. -func (s *Section) Key(name string) *Key { - key, err := s.GetKey(name) - if err != nil { - // It's OK here because the only possible error is empty key name, - // but if it's empty, this piece of code won't be executed. - key, _ = s.NewKey(name, "") - return key - } - return key -} - -// Keys returns list of keys of section. -func (s *Section) Keys() []*Key { - keys := make([]*Key, len(s.keyList)) - for i := range s.keyList { - keys[i] = s.Key(s.keyList[i]) - } - return keys -} - -// KeyStrings returns list of key names of section. -func (s *Section) KeyStrings() []string { - list := make([]string, len(s.keyList)) - copy(list, s.keyList) - return list -} - -// KeysHash returns keys hash consisting of names and values. -func (s *Section) KeysHash() map[string]string { - if s.f.BlockMode { - s.f.lock.RLock() - defer s.f.lock.RUnlock() - } - - hash := map[string]string{} - for key, value := range s.keysHash { - hash[key] = value - } - return hash -} - -// DeleteKey deletes a key from section. -func (s *Section) DeleteKey(name string) { - if s.f.BlockMode { - s.f.lock.Lock() - defer s.f.lock.Unlock() - } - - for i, k := range s.keyList { - if k == name { - s.keyList = append(s.keyList[:i], s.keyList[i+1:]...) - delete(s.keys, name) - return - } - } -} - -// ___________.__.__ -// \_ _____/|__| | ____ -// | __) | | | _/ __ \ -// | \ | | |_\ ___/ -// \___ / |__|____/\___ > -// \/ \/ - -// File represents a combination of a or more INI file(s) in memory. -type File struct { - // Should make things safe, but sometimes doesn't matter. - BlockMode bool - // Make sure data is safe in multiple goroutines. - lock sync.RWMutex - - // Allow combination of multiple data sources. - dataSources []dataSource - // Actual data is stored here. - sections map[string]*Section - - // To keep data in order. - sectionList []string - - NameMapper -} - -// newFile initializes File object with given data sources. -func newFile(dataSources []dataSource) *File { - return &File{ - BlockMode: true, - dataSources: dataSources, - sections: make(map[string]*Section), - sectionList: make([]string, 0, 10), - } -} - -func parseDataSource(source interface{}) (dataSource, error) { - switch s := source.(type) { - case string: - return sourceFile{s}, nil - case []byte: - return &sourceData{s}, nil - default: - return nil, fmt.Errorf("error parsing data source: unknown type '%s'", s) - } -} - -// Load loads and parses from INI data sources. -// Arguments can be mixed of file name with string type, or raw data in []byte. -func Load(source interface{}, others ...interface{}) (_ *File, err error) { - sources := make([]dataSource, len(others)+1) - sources[0], err = parseDataSource(source) - if err != nil { - return nil, err - } - for i := range others { - sources[i+1], err = parseDataSource(others[i]) - if err != nil { - return nil, err - } - } - f := newFile(sources) - return f, f.Reload() -} - -// Empty returns an empty file object. -func Empty() *File { - // Ignore error here, we sure our data is good. - f, _ := Load([]byte("")) - return f -} - -// NewSection creates a new section. -func (f *File) NewSection(name string) (*Section, error) { - if len(name) == 0 { - return nil, errors.New("error creating new section: empty section name") - } - - if f.BlockMode { - f.lock.Lock() - defer f.lock.Unlock() - } - - if inSlice(name, f.sectionList) { - return f.sections[name], nil - } - - f.sectionList = append(f.sectionList, name) - f.sections[name] = newSection(f, name) - return f.sections[name], nil -} - -// NewSections creates a list of sections. -func (f *File) NewSections(names ...string) (err error) { - for _, name := range names { - if _, err = f.NewSection(name); err != nil { - return err - } - } - return nil -} - -// GetSection returns section by given name. -func (f *File) GetSection(name string) (*Section, error) { - if len(name) == 0 { - name = DEFAULT_SECTION - } - - if f.BlockMode { - f.lock.RLock() - defer f.lock.RUnlock() - } - - sec := f.sections[name] - if sec == nil { - return nil, fmt.Errorf("error when getting section: section '%s' not exists", name) - } - return sec, nil -} - -// Section assumes named section exists and returns a zero-value when not. -func (f *File) Section(name string) *Section { - sec, err := f.GetSection(name) - if err != nil { - // Note: It's OK here because the only possible error is empty section name, - // but if it's empty, this piece of code won't be executed. - sec, _ = f.NewSection(name) - return sec - } - return sec -} - -// Section returns list of Section. -func (f *File) Sections() []*Section { - sections := make([]*Section, len(f.sectionList)) - for i := range f.sectionList { - sections[i] = f.Section(f.sectionList[i]) - } - return sections -} - -// SectionStrings returns list of section names. -func (f *File) SectionStrings() []string { - list := make([]string, len(f.sectionList)) - copy(list, f.sectionList) - return list -} - -// DeleteSection deletes a section. -func (f *File) DeleteSection(name string) { - if f.BlockMode { - f.lock.Lock() - defer f.lock.Unlock() - } - - if len(name) == 0 { - name = DEFAULT_SECTION - } - - for i, s := range f.sectionList { - if s == name { - f.sectionList = append(f.sectionList[:i], f.sectionList[i+1:]...) - delete(f.sections, name) - return - } - } -} - -func cutComment(str string) string { - i := strings.Index(str, "#") - if i == -1 { - return str - } - return str[:i] -} - -func checkMultipleLines(buf *bufio.Reader, line, val, valQuote string) (string, error) { - isEnd := false - for { - next, err := buf.ReadString('\n') - if err != nil { - if err != io.EOF { - return "", err - } - isEnd = true - } - pos := strings.LastIndex(next, valQuote) - if pos > -1 { - val += next[:pos] - break - } - val += next - if isEnd { - return "", fmt.Errorf("error parsing line: missing closing key quote from '%s' to '%s'", line, next) - } - } - return val, nil -} - -func checkContinuationLines(buf *bufio.Reader, val string) (string, bool, error) { - isEnd := false - for { - valLen := len(val) - if valLen == 0 || val[valLen-1] != '\\' { - break - } - val = val[:valLen-1] - - next, err := buf.ReadString('\n') - if err != nil { - if err != io.EOF { - return "", isEnd, err - } - isEnd = true - } - - next = strings.TrimSpace(next) - if len(next) == 0 { - break - } - val += next - } - return val, isEnd, nil -} - -// parse parses data through an io.Reader. -func (f *File) parse(reader io.Reader) error { - buf := bufio.NewReader(reader) - - // Handle BOM-UTF8. - // http://en.wikipedia.org/wiki/Byte_order_mark#Representations_of_byte_order_marks_by_encoding - mask, err := buf.Peek(3) - if err == nil && len(mask) >= 3 && mask[0] == 239 && mask[1] == 187 && mask[2] == 191 { - buf.Read(mask) - } - - count := 1 - comments := "" - isEnd := false - - section, err := f.NewSection(DEFAULT_SECTION) - if err != nil { - return err - } - - for { - line, err := buf.ReadString('\n') - line = strings.TrimSpace(line) - length := len(line) - - // Check error and ignore io.EOF just for a moment. - if err != nil { - if err != io.EOF { - return fmt.Errorf("error reading next line: %v", err) - } - // The last line of file could be an empty line. - if length == 0 { - break - } - isEnd = true - } - - // Skip empty lines. - if length == 0 { - continue - } - - switch { - case line[0] == '#' || line[0] == ';': // Comments. - if len(comments) == 0 { - comments = line - } else { - comments += LineBreak + line - } - continue - case line[0] == '[' && line[length-1] == ']': // New sction. - section, err = f.NewSection(strings.TrimSpace(line[1 : length-1])) - if err != nil { - return err - } - - if len(comments) > 0 { - section.Comment = comments - comments = "" - } - // Reset counter. - count = 1 - continue - } - - // Other possibilities. - var ( - i int - keyQuote string - kname string - valQuote string - val string - ) - - // Key name surrounded by quotes. - if line[0] == '"' { - if length > 6 && line[0:3] == `"""` { - keyQuote = `"""` - } else { - keyQuote = `"` - } - } else if line[0] == '`' { - keyQuote = "`" - } - if len(keyQuote) > 0 { - qLen := len(keyQuote) - pos := strings.Index(line[qLen:], keyQuote) - if pos == -1 { - return fmt.Errorf("error parsing line: missing closing key quote: %s", line) - } - pos = pos + qLen - i = strings.IndexAny(line[pos:], "=:") - if i < 0 { - return fmt.Errorf("error parsing line: key-value delimiter not found: %s", line) - } else if i == pos { - return fmt.Errorf("error parsing line: key is empty: %s", line) - } - i = i + pos - kname = line[qLen:pos] // Just keep spaces inside quotes. - } else { - i = strings.IndexAny(line, "=:") - if i < 0 { - return fmt.Errorf("error parsing line: key-value delimiter not found: %s", line) - } else if i == 0 { - return fmt.Errorf("error parsing line: key is empty: %s", line) - } - kname = strings.TrimSpace(line[0:i]) - } - - isAutoIncr := false - // Auto increment. - if kname == "-" { - isAutoIncr = true - kname = "#" + fmt.Sprint(count) - count++ - } - - lineRight := strings.TrimSpace(line[i+1:]) - lineRightLength := len(lineRight) - firstChar := "" - if lineRightLength >= 2 { - firstChar = lineRight[0:1] - } - if firstChar == "`" { - valQuote = "`" - } else if firstChar == `"` { - if lineRightLength >= 3 && lineRight[0:3] == `"""` { - valQuote = `"""` - } else { - valQuote = `"` - } - } else if firstChar == `'` { - valQuote = `'` - } - - if len(valQuote) > 0 { - qLen := len(valQuote) - pos := strings.LastIndex(lineRight[qLen:], valQuote) - // For multiple-line value check. - if pos == -1 { - if valQuote == `"` || valQuote == `'` { - return fmt.Errorf("error parsing line: single quote does not allow multiple-line value: %s", line) - } - - val = lineRight[qLen:] + "\n" - val, err = checkMultipleLines(buf, line, val, valQuote) - if err != nil { - return err - } - } else { - val = lineRight[qLen : pos+qLen] - } - } else { - val = strings.TrimSpace(cutComment(lineRight)) - val, isEnd, err = checkContinuationLines(buf, val) - if err != nil { - return err - } - } - - k, err := section.NewKey(kname, val) - if err != nil { - return err - } - k.isAutoIncr = isAutoIncr - if len(comments) > 0 { - k.Comment = comments - comments = "" - } - - if isEnd { - break - } - } - return nil -} - -func (f *File) reload(s dataSource) error { - r, err := s.ReadCloser() - if err != nil { - return err - } - defer r.Close() - - return f.parse(r) -} - -// Reload reloads and parses all data sources. -func (f *File) Reload() (err error) { - for _, s := range f.dataSources { - if err = f.reload(s); err != nil { - return err - } - } - return nil -} - -// Append appends one or more data sources and reloads automatically. -func (f *File) Append(source interface{}, others ...interface{}) error { - ds, err := parseDataSource(source) - if err != nil { - return err - } - f.dataSources = append(f.dataSources, ds) - for _, s := range others { - ds, err = parseDataSource(s) - if err != nil { - return err - } - f.dataSources = append(f.dataSources, ds) - } - return f.Reload() -} - -// WriteToIndent writes file content into io.Writer with given value indention. -func (f *File) WriteToIndent(w io.Writer, indent string) (n int64, err error) { - equalSign := "=" - if PrettyFormat { - equalSign = " = " - } - - // Use buffer to make sure target is safe until finish encoding. - buf := bytes.NewBuffer(nil) - for i, sname := range f.sectionList { - sec := f.Section(sname) - if len(sec.Comment) > 0 { - if sec.Comment[0] != '#' && sec.Comment[0] != ';' { - sec.Comment = "; " + sec.Comment - } - if _, err = buf.WriteString(sec.Comment + LineBreak); err != nil { - return 0, err - } - } - - if i > 0 { - if _, err = buf.WriteString("[" + sname + "]" + LineBreak); err != nil { - return 0, err - } - } else { - // Write nothing if default section is empty. - if len(sec.keyList) == 0 { - continue - } - } - - for _, kname := range sec.keyList { - key := sec.Key(kname) - if len(key.Comment) > 0 { - if len(indent) > 0 && sname != DEFAULT_SECTION { - buf.WriteString(indent) - } - if key.Comment[0] != '#' && key.Comment[0] != ';' { - key.Comment = "; " + key.Comment - } - if _, err = buf.WriteString(key.Comment + LineBreak); err != nil { - return 0, err - } - } - - if len(indent) > 0 && sname != DEFAULT_SECTION { - buf.WriteString(indent) - } - - switch { - case key.isAutoIncr: - kname = "-" - case strings.Contains(kname, "`") || strings.Contains(kname, `"`): - kname = `"""` + kname + `"""` - case strings.Contains(kname, `=`) || strings.Contains(kname, `:`): - kname = "`" + kname + "`" - } - - val := key.value - // In case key value contains "\n", "`" or "\"". - if strings.Contains(val, "\n") || strings.Contains(val, "`") || strings.Contains(val, `"`) || - strings.Contains(val, "#") { - val = `"""` + val + `"""` - } - if _, err = buf.WriteString(kname + equalSign + val + LineBreak); err != nil { - return 0, err - } - } - - // Put a line between sections. - if _, err = buf.WriteString(LineBreak); err != nil { - return 0, err - } - } - - return buf.WriteTo(w) -} - -// WriteTo writes file content into io.Writer. -func (f *File) WriteTo(w io.Writer) (int64, error) { - return f.WriteToIndent(w, "") -} - -// SaveToIndent writes content to file system with given value indention. -func (f *File) SaveToIndent(filename, indent string) error { - // Note: Because we are truncating with os.Create, - // so it's safer to save to a temporary file location and rename afte done. - tmpPath := filename + "." + strconv.Itoa(time.Now().Nanosecond()) + ".tmp" - defer os.Remove(tmpPath) - - fw, err := os.Create(tmpPath) - if err != nil { - return err - } - - if _, err = f.WriteToIndent(fw, indent); err != nil { - fw.Close() - return err - } - fw.Close() - - // Remove old file and rename the new one. - os.Remove(filename) - return os.Rename(tmpPath, filename) -} - -// SaveTo writes content to file system. -func (f *File) SaveTo(filename string) error { - return f.SaveToIndent(filename, "") -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini_test.go deleted file mode 100644 index 82ff36dd2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini_test.go +++ /dev/null @@ -1,512 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "fmt" - "strings" - "testing" - "time" - - . "github.com/smartystreets/goconvey/convey" -) - -func Test_Version(t *testing.T) { - Convey("Get version", t, func() { - So(Version(), ShouldEqual, _VERSION) - }) -} - -const _CONF_DATA = ` -; Package name -NAME = ini -; Package version -VERSION = v1 -; Package import path -IMPORT_PATH = gopkg.in/%(NAME)s.%(VERSION)s - -# Information about package author -# Bio can be written in multiple lines. -[author] -NAME = Unknwon # Succeeding comment -E-MAIL = fake@localhost -GITHUB = https://github.com/%(NAME)s -BIO = """Gopher. -Coding addict. -Good man. -""" # Succeeding comment - -[package] -CLONE_URL = https://%(IMPORT_PATH)s - -[package.sub] -UNUSED_KEY = should be deleted - -[features] --: Support read/write comments of keys and sections --: Support auto-increment of key names --: Support load multiple files to overwrite key values - -[types] -STRING = str -BOOL = true -BOOL_FALSE = false -FLOAT64 = 1.25 -INT = 10 -TIME = 2015-01-01T20:17:05Z -DURATION = 2h45m -UINT = 3 - -[array] -STRINGS = en, zh, de -FLOAT64S = 1.1, 2.2, 3.3 -INTS = 1, 2, 3 -UINTS = 1, 2, 3 -TIMES = 2015-01-01T20:17:05Z,2015-01-01T20:17:05Z,2015-01-01T20:17:05Z - -[note] -empty_lines = next line is empty\ - -[advance] -value with quotes = "some value" -value quote2 again = 'some value' -true = """"2+3=5"""" -"1+1=2" = true -"""6+1=7""" = true -"""` + "`" + `5+5` + "`" + `""" = 10 -""""6+6"""" = 12 -` + "`" + `7-2=4` + "`" + ` = false -ADDRESS = ` + "`" + `404 road, -NotFound, State, 50000` + "`" + ` - -two_lines = how about \ - continuation lines? -lots_of_lines = 1 \ - 2 \ - 3 \ - 4 \ -` - -func Test_Load(t *testing.T) { - Convey("Load from data sources", t, func() { - - Convey("Load with empty data", func() { - So(Empty(), ShouldNotBeNil) - }) - - Convey("Load with multiple data sources", func() { - cfg, err := Load([]byte(_CONF_DATA), "testdata/conf.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - }) - }) - - Convey("Bad load process", t, func() { - - Convey("Load from invalid data sources", func() { - _, err := Load(_CONF_DATA) - So(err, ShouldNotBeNil) - - _, err = Load("testdata/404.ini") - So(err, ShouldNotBeNil) - - _, err = Load(1) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(""), 1) - So(err, ShouldNotBeNil) - }) - - Convey("Load with empty section name", func() { - _, err := Load([]byte("[]")) - So(err, ShouldNotBeNil) - }) - - Convey("Load with bad keys", func() { - _, err := Load([]byte(`"""name`)) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(`"""name"""`)) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(`""=1`)) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(`=`)) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(`name`)) - So(err, ShouldNotBeNil) - }) - - Convey("Load with bad values", func() { - _, err := Load([]byte(`name="""Unknwon`)) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(`key = "value`)) - So(err, ShouldNotBeNil) - }) - }) -} - -func Test_Values(t *testing.T) { - Convey("Test getting and setting values", t, func() { - cfg, err := Load([]byte(_CONF_DATA), "testdata/conf.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - Convey("Get values in default section", func() { - sec := cfg.Section("") - So(sec, ShouldNotBeNil) - So(sec.Key("NAME").Value(), ShouldEqual, "ini") - So(sec.Key("NAME").String(), ShouldEqual, "ini") - So(sec.Key("NAME").Validate(func(in string) string { - return in - }), ShouldEqual, "ini") - So(sec.Key("NAME").Comment, ShouldEqual, "; Package name") - So(sec.Key("IMPORT_PATH").String(), ShouldEqual, "gopkg.in/ini.v1") - }) - - Convey("Get values in non-default section", func() { - sec := cfg.Section("author") - So(sec, ShouldNotBeNil) - So(sec.Key("NAME").String(), ShouldEqual, "Unknwon") - So(sec.Key("GITHUB").String(), ShouldEqual, "https://github.com/Unknwon") - - sec = cfg.Section("package") - So(sec, ShouldNotBeNil) - So(sec.Key("CLONE_URL").String(), ShouldEqual, "https://gopkg.in/ini.v1") - }) - - Convey("Get auto-increment key names", func() { - keys := cfg.Section("features").Keys() - for i, k := range keys { - So(k.Name(), ShouldEqual, fmt.Sprintf("#%d", i+1)) - } - }) - - Convey("Get overwrite value", func() { - So(cfg.Section("author").Key("E-MAIL").String(), ShouldEqual, "u@gogs.io") - }) - - Convey("Get sections", func() { - sections := cfg.Sections() - for i, name := range []string{DEFAULT_SECTION, "author", "package", "package.sub", "features", "types", "array", "note", "advance"} { - So(sections[i].Name(), ShouldEqual, name) - } - }) - - Convey("Get parent section value", func() { - So(cfg.Section("package.sub").Key("CLONE_URL").String(), ShouldEqual, "https://gopkg.in/ini.v1") - }) - - Convey("Get multiple line value", func() { - So(cfg.Section("author").Key("BIO").String(), ShouldEqual, "Gopher.\nCoding addict.\nGood man.\n") - }) - - Convey("Get values with type", func() { - sec := cfg.Section("types") - v1, err := sec.Key("BOOL").Bool() - So(err, ShouldBeNil) - So(v1, ShouldBeTrue) - - v1, err = sec.Key("BOOL_FALSE").Bool() - So(err, ShouldBeNil) - So(v1, ShouldBeFalse) - - v2, err := sec.Key("FLOAT64").Float64() - So(err, ShouldBeNil) - So(v2, ShouldEqual, 1.25) - - v3, err := sec.Key("INT").Int() - So(err, ShouldBeNil) - So(v3, ShouldEqual, 10) - - v4, err := sec.Key("INT").Int64() - So(err, ShouldBeNil) - So(v4, ShouldEqual, 10) - - v5, err := sec.Key("UINT").Uint() - So(err, ShouldBeNil) - So(v5, ShouldEqual, 3) - - v6, err := sec.Key("UINT").Uint64() - So(err, ShouldBeNil) - So(v6, ShouldEqual, 3) - - t, err := time.Parse(time.RFC3339, "2015-01-01T20:17:05Z") - So(err, ShouldBeNil) - v7, err := sec.Key("TIME").Time() - So(err, ShouldBeNil) - So(v7.String(), ShouldEqual, t.String()) - - Convey("Must get values with type", func() { - So(sec.Key("STRING").MustString("404"), ShouldEqual, "str") - So(sec.Key("BOOL").MustBool(), ShouldBeTrue) - So(sec.Key("FLOAT64").MustFloat64(), ShouldEqual, 1.25) - So(sec.Key("INT").MustInt(), ShouldEqual, 10) - So(sec.Key("INT").MustInt64(), ShouldEqual, 10) - So(sec.Key("UINT").MustUint(), ShouldEqual, 3) - So(sec.Key("UINT").MustUint64(), ShouldEqual, 3) - So(sec.Key("TIME").MustTime().String(), ShouldEqual, t.String()) - - dur, err := time.ParseDuration("2h45m") - So(err, ShouldBeNil) - So(sec.Key("DURATION").MustDuration().Seconds(), ShouldEqual, dur.Seconds()) - - Convey("Must get values with default value", func() { - So(sec.Key("STRING_404").MustString("404"), ShouldEqual, "404") - So(sec.Key("BOOL_404").MustBool(true), ShouldBeTrue) - So(sec.Key("FLOAT64_404").MustFloat64(2.5), ShouldEqual, 2.5) - So(sec.Key("INT_404").MustInt(15), ShouldEqual, 15) - So(sec.Key("INT_404").MustInt64(15), ShouldEqual, 15) - So(sec.Key("UINT_404").MustUint(6), ShouldEqual, 6) - So(sec.Key("UINT_404").MustUint64(6), ShouldEqual, 6) - - t, err := time.Parse(time.RFC3339, "2014-01-01T20:17:05Z") - So(err, ShouldBeNil) - So(sec.Key("TIME_404").MustTime(t).String(), ShouldEqual, t.String()) - - So(sec.Key("DURATION_404").MustDuration(dur).Seconds(), ShouldEqual, dur.Seconds()) - }) - }) - }) - - Convey("Get value with candidates", func() { - sec := cfg.Section("types") - So(sec.Key("STRING").In("", []string{"str", "arr", "types"}), ShouldEqual, "str") - So(sec.Key("FLOAT64").InFloat64(0, []float64{1.25, 2.5, 3.75}), ShouldEqual, 1.25) - So(sec.Key("INT").InInt(0, []int{10, 20, 30}), ShouldEqual, 10) - So(sec.Key("INT").InInt64(0, []int64{10, 20, 30}), ShouldEqual, 10) - So(sec.Key("UINT").InUint(0, []uint{3, 6, 9}), ShouldEqual, 3) - So(sec.Key("UINT").InUint64(0, []uint64{3, 6, 9}), ShouldEqual, 3) - - zt, err := time.Parse(time.RFC3339, "0001-01-01T01:00:00Z") - So(err, ShouldBeNil) - t, err := time.Parse(time.RFC3339, "2015-01-01T20:17:05Z") - So(err, ShouldBeNil) - So(sec.Key("TIME").InTime(zt, []time.Time{t, time.Now(), time.Now().Add(1 * time.Second)}).String(), ShouldEqual, t.String()) - - Convey("Get value with candidates and default value", func() { - So(sec.Key("STRING_404").In("str", []string{"str", "arr", "types"}), ShouldEqual, "str") - So(sec.Key("FLOAT64_404").InFloat64(1.25, []float64{1.25, 2.5, 3.75}), ShouldEqual, 1.25) - So(sec.Key("INT_404").InInt(10, []int{10, 20, 30}), ShouldEqual, 10) - So(sec.Key("INT64_404").InInt64(10, []int64{10, 20, 30}), ShouldEqual, 10) - So(sec.Key("UINT_404").InUint(3, []uint{3, 6, 9}), ShouldEqual, 3) - So(sec.Key("UINT_404").InUint64(3, []uint64{3, 6, 9}), ShouldEqual, 3) - So(sec.Key("TIME_404").InTime(t, []time.Time{time.Now(), time.Now(), time.Now().Add(1 * time.Second)}).String(), ShouldEqual, t.String()) - }) - }) - - Convey("Get values in range", func() { - sec := cfg.Section("types") - So(sec.Key("FLOAT64").RangeFloat64(0, 1, 2), ShouldEqual, 1.25) - So(sec.Key("INT").RangeInt(0, 10, 20), ShouldEqual, 10) - So(sec.Key("INT").RangeInt64(0, 10, 20), ShouldEqual, 10) - - minT, err := time.Parse(time.RFC3339, "0001-01-01T01:00:00Z") - So(err, ShouldBeNil) - midT, err := time.Parse(time.RFC3339, "2013-01-01T01:00:00Z") - So(err, ShouldBeNil) - maxT, err := time.Parse(time.RFC3339, "9999-01-01T01:00:00Z") - So(err, ShouldBeNil) - t, err := time.Parse(time.RFC3339, "2015-01-01T20:17:05Z") - So(err, ShouldBeNil) - So(sec.Key("TIME").RangeTime(t, minT, maxT).String(), ShouldEqual, t.String()) - - Convey("Get value in range with default value", func() { - So(sec.Key("FLOAT64").RangeFloat64(5, 0, 1), ShouldEqual, 5) - So(sec.Key("INT").RangeInt(7, 0, 5), ShouldEqual, 7) - So(sec.Key("INT").RangeInt64(7, 0, 5), ShouldEqual, 7) - So(sec.Key("TIME").RangeTime(t, minT, midT).String(), ShouldEqual, t.String()) - }) - }) - - Convey("Get values into slice", func() { - sec := cfg.Section("array") - So(strings.Join(sec.Key("STRINGS").Strings(","), ","), ShouldEqual, "en,zh,de") - So(len(sec.Key("STRINGS_404").Strings(",")), ShouldEqual, 0) - - vals1 := sec.Key("FLOAT64S").Float64s(",") - for i, v := range []float64{1.1, 2.2, 3.3} { - So(vals1[i], ShouldEqual, v) - } - - vals2 := sec.Key("INTS").Ints(",") - for i, v := range []int{1, 2, 3} { - So(vals2[i], ShouldEqual, v) - } - - vals3 := sec.Key("INTS").Int64s(",") - for i, v := range []int64{1, 2, 3} { - So(vals3[i], ShouldEqual, v) - } - - vals4 := sec.Key("UINTS").Uints(",") - for i, v := range []uint{1, 2, 3} { - So(vals4[i], ShouldEqual, v) - } - - vals5 := sec.Key("UINTS").Uint64s(",") - for i, v := range []uint64{1, 2, 3} { - So(vals5[i], ShouldEqual, v) - } - - t, err := time.Parse(time.RFC3339, "2015-01-01T20:17:05Z") - So(err, ShouldBeNil) - vals6 := sec.Key("TIMES").Times(",") - for i, v := range []time.Time{t, t, t} { - So(vals6[i].String(), ShouldEqual, v.String()) - } - }) - - Convey("Get key hash", func() { - cfg.Section("").KeysHash() - }) - - Convey("Set key value", func() { - k := cfg.Section("author").Key("NAME") - k.SetValue("无闻") - So(k.String(), ShouldEqual, "无闻") - }) - - Convey("Get key strings", func() { - So(strings.Join(cfg.Section("types").KeyStrings(), ","), ShouldEqual, "STRING,BOOL,BOOL_FALSE,FLOAT64,INT,TIME,DURATION,UINT") - }) - - Convey("Delete a key", func() { - cfg.Section("package.sub").DeleteKey("UNUSED_KEY") - _, err := cfg.Section("package.sub").GetKey("UNUSED_KEY") - So(err, ShouldNotBeNil) - }) - - Convey("Get section strings", func() { - So(strings.Join(cfg.SectionStrings(), ","), ShouldEqual, "DEFAULT,author,package,package.sub,features,types,array,note,advance") - }) - - Convey("Delete a section", func() { - cfg.DeleteSection("") - So(cfg.SectionStrings()[0], ShouldNotEqual, DEFAULT_SECTION) - }) - - Convey("Create new sections", func() { - cfg.NewSections("test", "test2") - _, err := cfg.GetSection("test") - So(err, ShouldBeNil) - _, err = cfg.GetSection("test2") - So(err, ShouldBeNil) - }) - }) - - Convey("Test getting and setting bad values", t, func() { - cfg, err := Load([]byte(_CONF_DATA), "testdata/conf.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - Convey("Create new key with empty name", func() { - k, err := cfg.Section("").NewKey("", "") - So(err, ShouldNotBeNil) - So(k, ShouldBeNil) - }) - - Convey("Create new section with empty name", func() { - s, err := cfg.NewSection("") - So(err, ShouldNotBeNil) - So(s, ShouldBeNil) - }) - - Convey("Create new sections with empty name", func() { - So(cfg.NewSections(""), ShouldNotBeNil) - }) - - Convey("Get section that not exists", func() { - s, err := cfg.GetSection("404") - So(err, ShouldNotBeNil) - So(s, ShouldBeNil) - - s = cfg.Section("404") - So(s, ShouldNotBeNil) - }) - }) -} - -func Test_File_Append(t *testing.T) { - Convey("Append data sources", t, func() { - cfg, err := Load([]byte("")) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - So(cfg.Append([]byte(""), []byte("")), ShouldBeNil) - - Convey("Append bad data sources", func() { - So(cfg.Append(1), ShouldNotBeNil) - So(cfg.Append([]byte(""), 1), ShouldNotBeNil) - }) - }) -} - -func Test_File_SaveTo(t *testing.T) { - Convey("Save file", t, func() { - cfg, err := Load([]byte(_CONF_DATA), "testdata/conf.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - cfg.Section("").Key("NAME").Comment = "Package name" - cfg.Section("author").Comment = `Information about package author -# Bio can be written in multiple lines.` - cfg.Section("advanced").Key("val w/ pound").SetValue("my#password") - So(cfg.SaveTo("testdata/conf_out.ini"), ShouldBeNil) - - cfg.Section("author").Key("NAME").Comment = "This is author name" - So(cfg.SaveToIndent("testdata/conf_out.ini", "\t"), ShouldBeNil) - }) -} - -func Benchmark_Key_Value(b *testing.B) { - c, _ := Load([]byte(_CONF_DATA)) - for i := 0; i < b.N; i++ { - c.Section("").Key("NAME").Value() - } -} - -func Benchmark_Key_String(b *testing.B) { - c, _ := Load([]byte(_CONF_DATA)) - for i := 0; i < b.N; i++ { - c.Section("").Key("NAME").String() - } -} - -func Benchmark_Key_Value_NonBlock(b *testing.B) { - c, _ := Load([]byte(_CONF_DATA)) - c.BlockMode = false - for i := 0; i < b.N; i++ { - c.Section("").Key("NAME").Value() - } -} - -func Benchmark_Key_String_NonBlock(b *testing.B) { - c, _ := Load([]byte(_CONF_DATA)) - c.BlockMode = false - for i := 0; i < b.N; i++ { - c.Section("").Key("NAME").String() - } -} - -func Benchmark_Key_SetValue(b *testing.B) { - c, _ := Load([]byte(_CONF_DATA)) - for i := 0; i < b.N; i++ { - c.Section("").Key("NAME").SetValue("10") - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct.go deleted file mode 100644 index c11843710..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct.go +++ /dev/null @@ -1,350 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "bytes" - "errors" - "fmt" - "reflect" - "time" - "unicode" -) - -// NameMapper represents a ini tag name mapper. -type NameMapper func(string) string - -// Built-in name getters. -var ( - // AllCapsUnderscore converts to format ALL_CAPS_UNDERSCORE. - AllCapsUnderscore NameMapper = func(raw string) string { - newstr := make([]rune, 0, len(raw)) - for i, chr := range raw { - if isUpper := 'A' <= chr && chr <= 'Z'; isUpper { - if i > 0 { - newstr = append(newstr, '_') - } - } - newstr = append(newstr, unicode.ToUpper(chr)) - } - return string(newstr) - } - // TitleUnderscore converts to format title_underscore. - TitleUnderscore NameMapper = func(raw string) string { - newstr := make([]rune, 0, len(raw)) - for i, chr := range raw { - if isUpper := 'A' <= chr && chr <= 'Z'; isUpper { - if i > 0 { - newstr = append(newstr, '_') - } - chr -= ('A' - 'a') - } - newstr = append(newstr, chr) - } - return string(newstr) - } -) - -func (s *Section) parseFieldName(raw, actual string) string { - if len(actual) > 0 { - return actual - } - if s.f.NameMapper != nil { - return s.f.NameMapper(raw) - } - return raw -} - -func parseDelim(actual string) string { - if len(actual) > 0 { - return actual - } - return "," -} - -var reflectTime = reflect.TypeOf(time.Now()).Kind() - -// setWithProperType sets proper value to field based on its type, -// but it does not return error for failing parsing, -// because we want to use default value that is already assigned to strcut. -func setWithProperType(t reflect.Type, key *Key, field reflect.Value, delim string) error { - switch t.Kind() { - case reflect.String: - if len(key.String()) == 0 { - return nil - } - field.SetString(key.String()) - case reflect.Bool: - boolVal, err := key.Bool() - if err != nil { - return nil - } - field.SetBool(boolVal) - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - durationVal, err := key.Duration() - if err == nil { - field.Set(reflect.ValueOf(durationVal)) - return nil - } - - intVal, err := key.Int64() - if err != nil { - return nil - } - field.SetInt(intVal) - // byte is an alias for uint8, so supporting uint8 breaks support for byte - case reflect.Uint, reflect.Uint16, reflect.Uint32, reflect.Uint64: - durationVal, err := key.Duration() - if err == nil { - field.Set(reflect.ValueOf(durationVal)) - return nil - } - - uintVal, err := key.Uint64() - if err != nil { - return nil - } - field.SetUint(uintVal) - - case reflect.Float64: - floatVal, err := key.Float64() - if err != nil { - return nil - } - field.SetFloat(floatVal) - case reflectTime: - timeVal, err := key.Time() - if err != nil { - return nil - } - field.Set(reflect.ValueOf(timeVal)) - case reflect.Slice: - vals := key.Strings(delim) - numVals := len(vals) - if numVals == 0 { - return nil - } - - sliceOf := field.Type().Elem().Kind() - - var times []time.Time - if sliceOf == reflectTime { - times = key.Times(delim) - } - - slice := reflect.MakeSlice(field.Type(), numVals, numVals) - for i := 0; i < numVals; i++ { - switch sliceOf { - case reflectTime: - slice.Index(i).Set(reflect.ValueOf(times[i])) - default: - slice.Index(i).Set(reflect.ValueOf(vals[i])) - } - } - field.Set(slice) - default: - return fmt.Errorf("unsupported type '%s'", t) - } - return nil -} - -func (s *Section) mapTo(val reflect.Value) error { - if val.Kind() == reflect.Ptr { - val = val.Elem() - } - typ := val.Type() - - for i := 0; i < typ.NumField(); i++ { - field := val.Field(i) - tpField := typ.Field(i) - - tag := tpField.Tag.Get("ini") - if tag == "-" { - continue - } - - fieldName := s.parseFieldName(tpField.Name, tag) - if len(fieldName) == 0 || !field.CanSet() { - continue - } - - isAnonymous := tpField.Type.Kind() == reflect.Ptr && tpField.Anonymous - isStruct := tpField.Type.Kind() == reflect.Struct - if isAnonymous { - field.Set(reflect.New(tpField.Type.Elem())) - } - - if isAnonymous || isStruct { - if sec, err := s.f.GetSection(fieldName); err == nil { - if err = sec.mapTo(field); err != nil { - return fmt.Errorf("error mapping field(%s): %v", fieldName, err) - } - continue - } - } - - if key, err := s.GetKey(fieldName); err == nil { - if err = setWithProperType(tpField.Type, key, field, parseDelim(tpField.Tag.Get("delim"))); err != nil { - return fmt.Errorf("error mapping field(%s): %v", fieldName, err) - } - } - } - return nil -} - -// MapTo maps section to given struct. -func (s *Section) MapTo(v interface{}) error { - typ := reflect.TypeOf(v) - val := reflect.ValueOf(v) - if typ.Kind() == reflect.Ptr { - typ = typ.Elem() - val = val.Elem() - } else { - return errors.New("cannot map to non-pointer struct") - } - - return s.mapTo(val) -} - -// MapTo maps file to given struct. -func (f *File) MapTo(v interface{}) error { - return f.Section("").MapTo(v) -} - -// MapTo maps data sources to given struct with name mapper. -func MapToWithMapper(v interface{}, mapper NameMapper, source interface{}, others ...interface{}) error { - cfg, err := Load(source, others...) - if err != nil { - return err - } - cfg.NameMapper = mapper - return cfg.MapTo(v) -} - -// MapTo maps data sources to given struct. -func MapTo(v, source interface{}, others ...interface{}) error { - return MapToWithMapper(v, nil, source, others...) -} - -// reflectWithProperType does the opposite thing with setWithProperType. -func reflectWithProperType(t reflect.Type, key *Key, field reflect.Value, delim string) error { - switch t.Kind() { - case reflect.String: - key.SetValue(field.String()) - case reflect.Bool, - reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, - reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, - reflect.Float64, - reflectTime: - key.SetValue(fmt.Sprint(field)) - case reflect.Slice: - vals := field.Slice(0, field.Len()) - if field.Len() == 0 { - return nil - } - - var buf bytes.Buffer - isTime := fmt.Sprint(field.Type()) == "[]time.Time" - for i := 0; i < field.Len(); i++ { - if isTime { - buf.WriteString(vals.Index(i).Interface().(time.Time).Format(time.RFC3339)) - } else { - buf.WriteString(fmt.Sprint(vals.Index(i))) - } - buf.WriteString(delim) - } - key.SetValue(buf.String()[:buf.Len()-1]) - default: - return fmt.Errorf("unsupported type '%s'", t) - } - return nil -} - -func (s *Section) reflectFrom(val reflect.Value) error { - if val.Kind() == reflect.Ptr { - val = val.Elem() - } - typ := val.Type() - - for i := 0; i < typ.NumField(); i++ { - field := val.Field(i) - tpField := typ.Field(i) - - tag := tpField.Tag.Get("ini") - if tag == "-" { - continue - } - - fieldName := s.parseFieldName(tpField.Name, tag) - if len(fieldName) == 0 || !field.CanSet() { - continue - } - - if (tpField.Type.Kind() == reflect.Ptr && tpField.Anonymous) || - (tpField.Type.Kind() == reflect.Struct) { - // Note: The only error here is section doesn't exist. - sec, err := s.f.GetSection(fieldName) - if err != nil { - // Note: fieldName can never be empty here, ignore error. - sec, _ = s.f.NewSection(fieldName) - } - if err = sec.reflectFrom(field); err != nil { - return fmt.Errorf("error reflecting field(%s): %v", fieldName, err) - } - continue - } - - // Note: Same reason as secion. - key, err := s.GetKey(fieldName) - if err != nil { - key, _ = s.NewKey(fieldName, "") - } - if err = reflectWithProperType(tpField.Type, key, field, parseDelim(tpField.Tag.Get("delim"))); err != nil { - return fmt.Errorf("error reflecting field(%s): %v", fieldName, err) - } - - } - return nil -} - -// ReflectFrom reflects secion from given struct. -func (s *Section) ReflectFrom(v interface{}) error { - typ := reflect.TypeOf(v) - val := reflect.ValueOf(v) - if typ.Kind() == reflect.Ptr { - typ = typ.Elem() - val = val.Elem() - } else { - return errors.New("cannot reflect from non-pointer struct") - } - - return s.reflectFrom(val) -} - -// ReflectFrom reflects file from given struct. -func (f *File) ReflectFrom(v interface{}) error { - return f.Section("").ReflectFrom(v) -} - -// ReflectFrom reflects data sources from given struct with name mapper. -func ReflectFromWithMapper(cfg *File, v interface{}, mapper NameMapper) error { - cfg.NameMapper = mapper - return cfg.ReflectFrom(v) -} - -// ReflectFrom reflects data sources from given struct. -func ReflectFrom(cfg *File, v interface{}) error { - return ReflectFromWithMapper(cfg, v, nil) -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct_test.go deleted file mode 100644 index d865ad78e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct_test.go +++ /dev/null @@ -1,239 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "strings" - "testing" - "time" - - . "github.com/smartystreets/goconvey/convey" -) - -type testNested struct { - Cities []string `delim:"|"` - Visits []time.Time - Note string - Unused int `ini:"-"` -} - -type testEmbeded struct { - GPA float64 -} - -type testStruct struct { - Name string `ini:"NAME"` - Age int - Male bool - Money float64 - Born time.Time - Time time.Duration `ini:"Duration"` - Others testNested - *testEmbeded `ini:"grade"` - Unused int `ini:"-"` - Unsigned uint -} - -const _CONF_DATA_STRUCT = ` -NAME = Unknwon -Age = 21 -Male = true -Money = 1.25 -Born = 1993-10-07T20:17:05Z -Duration = 2h45m -Unsigned = 3 - -[Others] -Cities = HangZhou|Boston -Visits = 1993-10-07T20:17:05Z, 1993-10-07T20:17:05Z -Note = Hello world! - -[grade] -GPA = 2.8 - -[foo.bar] -Here = there -When = then -` - -type unsupport struct { - Byte byte -} - -type unsupport2 struct { - Others struct { - Cities byte - } -} - -type unsupport3 struct { - Cities byte -} - -type unsupport4 struct { - *unsupport3 `ini:"Others"` -} - -type defaultValue struct { - Name string - Age int - Male bool - Money float64 - Born time.Time - Cities []string -} - -type fooBar struct { - Here, When string -} - -const _INVALID_DATA_CONF_STRUCT = ` -Name = -Age = age -Male = 123 -Money = money -Born = nil -Cities = -` - -func Test_Struct(t *testing.T) { - Convey("Map to struct", t, func() { - Convey("Map file to struct", func() { - ts := new(testStruct) - So(MapTo(ts, []byte(_CONF_DATA_STRUCT)), ShouldBeNil) - - So(ts.Name, ShouldEqual, "Unknwon") - So(ts.Age, ShouldEqual, 21) - So(ts.Male, ShouldBeTrue) - So(ts.Money, ShouldEqual, 1.25) - So(ts.Unsigned, ShouldEqual, 3) - - t, err := time.Parse(time.RFC3339, "1993-10-07T20:17:05Z") - So(err, ShouldBeNil) - So(ts.Born.String(), ShouldEqual, t.String()) - - dur, err := time.ParseDuration("2h45m") - So(err, ShouldBeNil) - So(ts.Time.Seconds(), ShouldEqual, dur.Seconds()) - - So(strings.Join(ts.Others.Cities, ","), ShouldEqual, "HangZhou,Boston") - So(ts.Others.Visits[0].String(), ShouldEqual, t.String()) - So(ts.Others.Note, ShouldEqual, "Hello world!") - So(ts.testEmbeded.GPA, ShouldEqual, 2.8) - }) - - Convey("Map section to struct", func() { - foobar := new(fooBar) - f, err := Load([]byte(_CONF_DATA_STRUCT)) - So(err, ShouldBeNil) - - So(f.Section("foo.bar").MapTo(foobar), ShouldBeNil) - So(foobar.Here, ShouldEqual, "there") - So(foobar.When, ShouldEqual, "then") - }) - - Convey("Map to non-pointer struct", func() { - cfg, err := Load([]byte(_CONF_DATA_STRUCT)) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - So(cfg.MapTo(testStruct{}), ShouldNotBeNil) - }) - - Convey("Map to unsupported type", func() { - cfg, err := Load([]byte(_CONF_DATA_STRUCT)) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - cfg.NameMapper = func(raw string) string { - if raw == "Byte" { - return "NAME" - } - return raw - } - So(cfg.MapTo(&unsupport{}), ShouldNotBeNil) - So(cfg.MapTo(&unsupport2{}), ShouldNotBeNil) - So(cfg.MapTo(&unsupport4{}), ShouldNotBeNil) - }) - - Convey("Map from invalid data source", func() { - So(MapTo(&testStruct{}, "hi"), ShouldNotBeNil) - }) - - Convey("Map to wrong types and gain default values", func() { - cfg, err := Load([]byte(_INVALID_DATA_CONF_STRUCT)) - So(err, ShouldBeNil) - - t, err := time.Parse(time.RFC3339, "1993-10-07T20:17:05Z") - So(err, ShouldBeNil) - dv := &defaultValue{"Joe", 10, true, 1.25, t, []string{"HangZhou", "Boston"}} - So(cfg.MapTo(dv), ShouldBeNil) - So(dv.Name, ShouldEqual, "Joe") - So(dv.Age, ShouldEqual, 10) - So(dv.Male, ShouldBeTrue) - So(dv.Money, ShouldEqual, 1.25) - So(dv.Born.String(), ShouldEqual, t.String()) - So(strings.Join(dv.Cities, ","), ShouldEqual, "HangZhou,Boston") - }) - }) - - Convey("Reflect from struct", t, func() { - type Embeded struct { - Dates []time.Time `delim:"|"` - Places []string - None []int - } - type Author struct { - Name string `ini:"NAME"` - Male bool - Age int - GPA float64 - NeverMind string `ini:"-"` - *Embeded `ini:"infos"` - } - a := &Author{"Unknwon", true, 21, 2.8, "", - &Embeded{ - []time.Time{time.Now(), time.Now()}, - []string{"HangZhou", "Boston"}, - []int{}, - }} - cfg := Empty() - So(ReflectFrom(cfg, a), ShouldBeNil) - cfg.SaveTo("testdata/conf_reflect.ini") - - Convey("Reflect from non-point struct", func() { - So(ReflectFrom(cfg, Author{}), ShouldNotBeNil) - }) - }) -} - -type testMapper struct { - PackageName string -} - -func Test_NameGetter(t *testing.T) { - Convey("Test name mappers", t, func() { - So(MapToWithMapper(&testMapper{}, TitleUnderscore, []byte("packag_name=ini")), ShouldBeNil) - - cfg, err := Load([]byte("PACKAGE_NAME=ini")) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - cfg.NameMapper = AllCapsUnderscore - tg := new(testMapper) - So(cfg.MapTo(tg), ShouldBeNil) - So(tg.PackageName, ShouldEqual, "ini") - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/conf.ini b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/conf.ini deleted file mode 100644 index 2ed0ac1d3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/conf.ini +++ /dev/null @@ -1,2 +0,0 @@ -[author] -E-MAIL = u@gogs.io \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/.gitignore b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/.gitignore deleted file mode 100644 index 531fcc11c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -jpgo -jmespath-fuzz.zip -cpu.out -go-jmespath.test diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/.travis.yml b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/.travis.yml deleted file mode 100644 index 1f9807757..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: go - -sudo: false - -go: - - 1.4 - -install: go get -v -t ./... -script: make test diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/LICENSE b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/LICENSE deleted file mode 100644 index b03310a91..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2015 James Saryerwinnie - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/Makefile b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/Makefile deleted file mode 100644 index a828d2848..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/Makefile +++ /dev/null @@ -1,44 +0,0 @@ - -CMD = jpgo - -help: - @echo "Please use \`make ' where is one of" - @echo " test to run all the tests" - @echo " build to build the library and jp executable" - @echo " generate to run codegen" - - -generate: - go generate ./... - -build: - rm -f $(CMD) - go build ./... - rm -f cmd/$(CMD)/$(CMD) && cd cmd/$(CMD)/ && go build ./... - mv cmd/$(CMD)/$(CMD) . - -test: - go test -v ./... - -check: - go vet ./... - @echo "golint ./..." - @lint=`golint ./...`; \ - lint=`echo "$$lint" | grep -v "astnodetype_string.go" | grep -v "toktype_string.go"`; \ - echo "$$lint"; \ - if [ "$$lint" != "" ]; then exit 1; fi - -htmlc: - go test -coverprofile="/tmp/jpcov" && go tool cover -html="/tmp/jpcov" && unlink /tmp/jpcov - -buildfuzz: - go-fuzz-build github.com/jmespath/go-jmespath/fuzz - -fuzz: buildfuzz - go-fuzz -bin=./jmespath-fuzz.zip -workdir=fuzz/testdata - -bench: - go test -bench . -cpuprofile cpu.out - -pprof-cpu: - go tool pprof ./go-jmespath.test ./cpu.out diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/README.md b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/README.md deleted file mode 100644 index 187ef676d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# go-jmespath - A JMESPath implementation in Go - -[![Build Status](https://img.shields.io/travis/jmespath/go-jmespath.svg)](https://travis-ci.org/jmespath/go-jmespath) - - - -See http://jmespath.org for more info. diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/api.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/api.go deleted file mode 100644 index 9cfa988bc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/api.go +++ /dev/null @@ -1,49 +0,0 @@ -package jmespath - -import "strconv" - -// JmesPath is the epresentation of a compiled JMES path query. A JmesPath is -// safe for concurrent use by multiple goroutines. -type JMESPath struct { - ast ASTNode - intr *treeInterpreter -} - -// Compile parses a JMESPath expression and returns, if successful, a JMESPath -// object that can be used to match against data. -func Compile(expression string) (*JMESPath, error) { - parser := NewParser() - ast, err := parser.Parse(expression) - if err != nil { - return nil, err - } - jmespath := &JMESPath{ast: ast, intr: newInterpreter()} - return jmespath, nil -} - -// MustCompile is like Compile but panics if the expression cannot be parsed. -// It simplifies safe initialization of global variables holding compiled -// JMESPaths. -func MustCompile(expression string) *JMESPath { - jmespath, err := Compile(expression) - if err != nil { - panic(`jmespath: Compile(` + strconv.Quote(expression) + `): ` + err.Error()) - } - return jmespath -} - -// Search evaluates a JMESPath expression against input data and returns the result. -func (jp *JMESPath) Search(data interface{}) (interface{}, error) { - return jp.intr.Execute(jp.ast, data) -} - -// Search evaluates a JMESPath expression against input data and returns the result. -func Search(expression string, data interface{}) (interface{}, error) { - intr := newInterpreter() - parser := NewParser() - ast, err := parser.Parse(expression) - if err != nil { - return nil, err - } - return intr.Execute(ast, data) -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/api_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/api_test.go deleted file mode 100644 index b0b106d3d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/api_test.go +++ /dev/null @@ -1,32 +0,0 @@ -package jmespath - -import ( - "testing" - - "github.com/stretchr/testify/assert" -) - -func TestValidPrecompiledExpressionSearches(t *testing.T) { - assert := assert.New(t) - data := make(map[string]interface{}) - data["foo"] = "bar" - precompiled, err := Compile("foo") - assert.Nil(err) - result, err := precompiled.Search(data) - assert.Nil(err) - assert.Equal("bar", result) -} - -func TestInvalidPrecompileErrors(t *testing.T) { - assert := assert.New(t) - _, err := Compile("not a valid expression") - assert.NotNil(err) -} - -func TestInvalidMustCompilePanics(t *testing.T) { - defer func() { - r := recover() - assert.NotNil(t, r) - }() - MustCompile("not a valid expression") -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/astnodetype_string.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/astnodetype_string.go deleted file mode 100644 index 1cd2d239c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/astnodetype_string.go +++ /dev/null @@ -1,16 +0,0 @@ -// generated by stringer -type astNodeType; DO NOT EDIT - -package jmespath - -import "fmt" - -const _astNodeType_name = "ASTEmptyASTComparatorASTCurrentNodeASTExpRefASTFunctionExpressionASTFieldASTFilterProjectionASTFlattenASTIdentityASTIndexASTIndexExpressionASTKeyValPairASTLiteralASTMultiSelectHashASTMultiSelectListASTOrExpressionASTAndExpressionASTNotExpressionASTPipeASTProjectionASTSubexpressionASTSliceASTValueProjection" - -var _astNodeType_index = [...]uint16{0, 8, 21, 35, 44, 65, 73, 92, 102, 113, 121, 139, 152, 162, 180, 198, 213, 229, 245, 252, 265, 281, 289, 307} - -func (i astNodeType) String() string { - if i < 0 || i >= astNodeType(len(_astNodeType_index)-1) { - return fmt.Sprintf("astNodeType(%d)", i) - } - return _astNodeType_name[_astNodeType_index[i]:_astNodeType_index[i+1]] -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/basic.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/basic.json deleted file mode 100644 index d550e9695..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/basic.json +++ /dev/null @@ -1,96 +0,0 @@ -[{ - "given": - {"foo": {"bar": {"baz": "correct"}}}, - "cases": [ - { - "expression": "foo", - "result": {"bar": {"baz": "correct"}} - }, - { - "expression": "foo.bar", - "result": {"baz": "correct"} - }, - { - "expression": "foo.bar.baz", - "result": "correct" - }, - { - "expression": "foo\n.\nbar\n.baz", - "result": "correct" - }, - { - "expression": "foo.bar.baz.bad", - "result": null - }, - { - "expression": "foo.bar.bad", - "result": null - }, - { - "expression": "foo.bad", - "result": null - }, - { - "expression": "bad", - "result": null - }, - { - "expression": "bad.morebad.morebad", - "result": null - } - ] -}, -{ - "given": - {"foo": {"bar": ["one", "two", "three"]}}, - "cases": [ - { - "expression": "foo", - "result": {"bar": ["one", "two", "three"]} - }, - { - "expression": "foo.bar", - "result": ["one", "two", "three"] - } - ] -}, -{ - "given": ["one", "two", "three"], - "cases": [ - { - "expression": "one", - "result": null - }, - { - "expression": "two", - "result": null - }, - { - "expression": "three", - "result": null - }, - { - "expression": "one.two", - "result": null - } - ] -}, -{ - "given": - {"foo": {"1": ["one", "two", "three"], "-1": "bar"}}, - "cases": [ - { - "expression": "foo.\"1\"", - "result": ["one", "two", "three"] - }, - { - "expression": "foo.\"1\"[0]", - "result": "one" - }, - { - "expression": "foo.\"-1\"", - "result": "bar" - } - ] -} -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/boolean.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/boolean.json deleted file mode 100644 index e3fa196b1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/boolean.json +++ /dev/null @@ -1,257 +0,0 @@ -[ - { - "given": { - "outer": { - "foo": "foo", - "bar": "bar", - "baz": "baz" - } - }, - "cases": [ - { - "expression": "outer.foo || outer.bar", - "result": "foo" - }, - { - "expression": "outer.foo||outer.bar", - "result": "foo" - }, - { - "expression": "outer.bar || outer.baz", - "result": "bar" - }, - { - "expression": "outer.bar||outer.baz", - "result": "bar" - }, - { - "expression": "outer.bad || outer.foo", - "result": "foo" - }, - { - "expression": "outer.bad||outer.foo", - "result": "foo" - }, - { - "expression": "outer.foo || outer.bad", - "result": "foo" - }, - { - "expression": "outer.foo||outer.bad", - "result": "foo" - }, - { - "expression": "outer.bad || outer.alsobad", - "result": null - }, - { - "expression": "outer.bad||outer.alsobad", - "result": null - } - ] - }, - { - "given": { - "outer": { - "foo": "foo", - "bool": false, - "empty_list": [], - "empty_string": "" - } - }, - "cases": [ - { - "expression": "outer.empty_string || outer.foo", - "result": "foo" - }, - { - "expression": "outer.nokey || outer.bool || outer.empty_list || outer.empty_string || outer.foo", - "result": "foo" - } - ] - }, - { - "given": { - "True": true, - "False": false, - "Number": 5, - "EmptyList": [], - "Zero": 0 - }, - "cases": [ - { - "expression": "True && False", - "result": false - }, - { - "expression": "False && True", - "result": false - }, - { - "expression": "True && True", - "result": true - }, - { - "expression": "False && False", - "result": false - }, - { - "expression": "True && Number", - "result": 5 - }, - { - "expression": "Number && True", - "result": true - }, - { - "expression": "Number && False", - "result": false - }, - { - "expression": "Number && EmptyList", - "result": [] - }, - { - "expression": "Number && True", - "result": true - }, - { - "expression": "EmptyList && True", - "result": [] - }, - { - "expression": "EmptyList && False", - "result": [] - }, - { - "expression": "True || False", - "result": true - }, - { - "expression": "True || True", - "result": true - }, - { - "expression": "False || True", - "result": true - }, - { - "expression": "False || False", - "result": false - }, - { - "expression": "Number || EmptyList", - "result": 5 - }, - { - "expression": "Number || True", - "result": 5 - }, - { - "expression": "Number || True && False", - "result": 5 - }, - { - "expression": "(Number || True) && False", - "result": false - }, - { - "expression": "Number || (True && False)", - "result": 5 - }, - { - "expression": "!True", - "result": false - }, - { - "expression": "!False", - "result": true - }, - { - "expression": "!Number", - "result": false - }, - { - "expression": "!EmptyList", - "result": true - }, - { - "expression": "True && !False", - "result": true - }, - { - "expression": "True && !EmptyList", - "result": true - }, - { - "expression": "!False && !EmptyList", - "result": true - }, - { - "expression": "!(True && False)", - "result": true - }, - { - "expression": "!Zero", - "result": false - }, - { - "expression": "!!Zero", - "result": true - } - ] - }, - { - "given": { - "one": 1, - "two": 2, - "three": 3 - }, - "cases": [ - { - "expression": "one < two", - "result": true - }, - { - "expression": "one <= two", - "result": true - }, - { - "expression": "one == one", - "result": true - }, - { - "expression": "one == two", - "result": false - }, - { - "expression": "one > two", - "result": false - }, - { - "expression": "one >= two", - "result": false - }, - { - "expression": "one != two", - "result": true - }, - { - "expression": "one < two && three > one", - "result": true - }, - { - "expression": "one < two || three > one", - "result": true - }, - { - "expression": "one < two || three < one", - "result": true - }, - { - "expression": "two < one || three < one", - "result": false - } - ] - } -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/current.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/current.json deleted file mode 100644 index 0c26248d0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/current.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "given": { - "foo": [{"name": "a"}, {"name": "b"}], - "bar": {"baz": "qux"} - }, - "cases": [ - { - "expression": "@", - "result": { - "foo": [{"name": "a"}, {"name": "b"}], - "bar": {"baz": "qux"} - } - }, - { - "expression": "@.bar", - "result": {"baz": "qux"} - }, - { - "expression": "@.foo[0]", - "result": {"name": "a"} - } - ] - } -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/escape.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/escape.json deleted file mode 100644 index 4a62d951a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/escape.json +++ /dev/null @@ -1,46 +0,0 @@ -[{ - "given": { - "foo.bar": "dot", - "foo bar": "space", - "foo\nbar": "newline", - "foo\"bar": "doublequote", - "c:\\\\windows\\path": "windows", - "/unix/path": "unix", - "\"\"\"": "threequotes", - "bar": {"baz": "qux"} - }, - "cases": [ - { - "expression": "\"foo.bar\"", - "result": "dot" - }, - { - "expression": "\"foo bar\"", - "result": "space" - }, - { - "expression": "\"foo\\nbar\"", - "result": "newline" - }, - { - "expression": "\"foo\\\"bar\"", - "result": "doublequote" - }, - { - "expression": "\"c:\\\\\\\\windows\\\\path\"", - "result": "windows" - }, - { - "expression": "\"/unix/path\"", - "result": "unix" - }, - { - "expression": "\"\\\"\\\"\\\"\"", - "result": "threequotes" - }, - { - "expression": "\"bar\".\"baz\"", - "result": "qux" - } - ] -}] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/filters.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/filters.json deleted file mode 100644 index 5b9f52b11..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/filters.json +++ /dev/null @@ -1,468 +0,0 @@ -[ - { - "given": {"foo": [{"name": "a"}, {"name": "b"}]}, - "cases": [ - { - "comment": "Matching a literal", - "expression": "foo[?name == 'a']", - "result": [{"name": "a"}] - } - ] - }, - { - "given": {"foo": [0, 1], "bar": [2, 3]}, - "cases": [ - { - "comment": "Matching a literal", - "expression": "*[?[0] == `0`]", - "result": [[], []] - } - ] - }, - { - "given": {"foo": [{"first": "foo", "last": "bar"}, - {"first": "foo", "last": "foo"}, - {"first": "foo", "last": "baz"}]}, - "cases": [ - { - "comment": "Matching an expression", - "expression": "foo[?first == last]", - "result": [{"first": "foo", "last": "foo"}] - }, - { - "comment": "Verify projection created from filter", - "expression": "foo[?first == last].first", - "result": ["foo"] - } - ] - }, - { - "given": {"foo": [{"age": 20}, - {"age": 25}, - {"age": 30}]}, - "cases": [ - { - "comment": "Greater than with a number", - "expression": "foo[?age > `25`]", - "result": [{"age": 30}] - }, - { - "expression": "foo[?age >= `25`]", - "result": [{"age": 25}, {"age": 30}] - }, - { - "comment": "Greater than with a number", - "expression": "foo[?age > `30`]", - "result": [] - }, - { - "comment": "Greater than with a number", - "expression": "foo[?age < `25`]", - "result": [{"age": 20}] - }, - { - "comment": "Greater than with a number", - "expression": "foo[?age <= `25`]", - "result": [{"age": 20}, {"age": 25}] - }, - { - "comment": "Greater than with a number", - "expression": "foo[?age < `20`]", - "result": [] - }, - { - "expression": "foo[?age == `20`]", - "result": [{"age": 20}] - }, - { - "expression": "foo[?age != `20`]", - "result": [{"age": 25}, {"age": 30}] - } - ] - }, - { - "given": {"foo": [{"top": {"name": "a"}}, - {"top": {"name": "b"}}]}, - "cases": [ - { - "comment": "Filter with subexpression", - "expression": "foo[?top.name == 'a']", - "result": [{"top": {"name": "a"}}] - } - ] - }, - { - "given": {"foo": [{"top": {"first": "foo", "last": "bar"}}, - {"top": {"first": "foo", "last": "foo"}}, - {"top": {"first": "foo", "last": "baz"}}]}, - "cases": [ - { - "comment": "Matching an expression", - "expression": "foo[?top.first == top.last]", - "result": [{"top": {"first": "foo", "last": "foo"}}] - }, - { - "comment": "Matching a JSON array", - "expression": "foo[?top == `{\"first\": \"foo\", \"last\": \"bar\"}`]", - "result": [{"top": {"first": "foo", "last": "bar"}}] - } - ] - }, - { - "given": {"foo": [ - {"key": true}, - {"key": false}, - {"key": 0}, - {"key": 1}, - {"key": [0]}, - {"key": {"bar": [0]}}, - {"key": null}, - {"key": [1]}, - {"key": {"a":2}} - ]}, - "cases": [ - { - "expression": "foo[?key == `true`]", - "result": [{"key": true}] - }, - { - "expression": "foo[?key == `false`]", - "result": [{"key": false}] - }, - { - "expression": "foo[?key == `0`]", - "result": [{"key": 0}] - }, - { - "expression": "foo[?key == `1`]", - "result": [{"key": 1}] - }, - { - "expression": "foo[?key == `[0]`]", - "result": [{"key": [0]}] - }, - { - "expression": "foo[?key == `{\"bar\": [0]}`]", - "result": [{"key": {"bar": [0]}}] - }, - { - "expression": "foo[?key == `null`]", - "result": [{"key": null}] - }, - { - "expression": "foo[?key == `[1]`]", - "result": [{"key": [1]}] - }, - { - "expression": "foo[?key == `{\"a\":2}`]", - "result": [{"key": {"a":2}}] - }, - { - "expression": "foo[?`true` == key]", - "result": [{"key": true}] - }, - { - "expression": "foo[?`false` == key]", - "result": [{"key": false}] - }, - { - "expression": "foo[?`0` == key]", - "result": [{"key": 0}] - }, - { - "expression": "foo[?`1` == key]", - "result": [{"key": 1}] - }, - { - "expression": "foo[?`[0]` == key]", - "result": [{"key": [0]}] - }, - { - "expression": "foo[?`{\"bar\": [0]}` == key]", - "result": [{"key": {"bar": [0]}}] - }, - { - "expression": "foo[?`null` == key]", - "result": [{"key": null}] - }, - { - "expression": "foo[?`[1]` == key]", - "result": [{"key": [1]}] - }, - { - "expression": "foo[?`{\"a\":2}` == key]", - "result": [{"key": {"a":2}}] - }, - { - "expression": "foo[?key != `true`]", - "result": [{"key": false}, {"key": 0}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": [1]}, {"key": {"a":2}}] - }, - { - "expression": "foo[?key != `false`]", - "result": [{"key": true}, {"key": 0}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": [1]}, {"key": {"a":2}}] - }, - { - "expression": "foo[?key != `0`]", - "result": [{"key": true}, {"key": false}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": [1]}, {"key": {"a":2}}] - }, - { - "expression": "foo[?key != `1`]", - "result": [{"key": true}, {"key": false}, {"key": 0}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": [1]}, {"key": {"a":2}}] - }, - { - "expression": "foo[?key != `null`]", - "result": [{"key": true}, {"key": false}, {"key": 0}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": [1]}, {"key": {"a":2}}] - }, - { - "expression": "foo[?key != `[1]`]", - "result": [{"key": true}, {"key": false}, {"key": 0}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": {"a":2}}] - }, - { - "expression": "foo[?key != `{\"a\":2}`]", - "result": [{"key": true}, {"key": false}, {"key": 0}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": [1]}] - }, - { - "expression": "foo[?`true` != key]", - "result": [{"key": false}, {"key": 0}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": [1]}, {"key": {"a":2}}] - }, - { - "expression": "foo[?`false` != key]", - "result": [{"key": true}, {"key": 0}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": [1]}, {"key": {"a":2}}] - }, - { - "expression": "foo[?`0` != key]", - "result": [{"key": true}, {"key": false}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": [1]}, {"key": {"a":2}}] - }, - { - "expression": "foo[?`1` != key]", - "result": [{"key": true}, {"key": false}, {"key": 0}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": [1]}, {"key": {"a":2}}] - }, - { - "expression": "foo[?`null` != key]", - "result": [{"key": true}, {"key": false}, {"key": 0}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": [1]}, {"key": {"a":2}}] - }, - { - "expression": "foo[?`[1]` != key]", - "result": [{"key": true}, {"key": false}, {"key": 0}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": {"a":2}}] - }, - { - "expression": "foo[?`{\"a\":2}` != key]", - "result": [{"key": true}, {"key": false}, {"key": 0}, {"key": 1}, {"key": [0]}, - {"key": {"bar": [0]}}, {"key": null}, {"key": [1]}] - } - ] - }, - { - "given": {"reservations": [ - {"instances": [ - {"foo": 1, "bar": 2}, {"foo": 1, "bar": 3}, - {"foo": 1, "bar": 2}, {"foo": 2, "bar": 1}]}]}, - "cases": [ - { - "expression": "reservations[].instances[?bar==`1`]", - "result": [[{"foo": 2, "bar": 1}]] - }, - { - "expression": "reservations[*].instances[?bar==`1`]", - "result": [[{"foo": 2, "bar": 1}]] - }, - { - "expression": "reservations[].instances[?bar==`1`][]", - "result": [{"foo": 2, "bar": 1}] - } - ] - }, - { - "given": { - "baz": "other", - "foo": [ - {"bar": 1}, {"bar": 2}, {"bar": 3}, {"bar": 4}, {"bar": 1, "baz": 2} - ] - }, - "cases": [ - { - "expression": "foo[?bar==`1`].bar[0]", - "result": [] - } - ] - }, - { - "given": { - "foo": [ - {"a": 1, "b": {"c": "x"}}, - {"a": 1, "b": {"c": "y"}}, - {"a": 1, "b": {"c": "z"}}, - {"a": 2, "b": {"c": "z"}}, - {"a": 1, "baz": 2} - ] - }, - "cases": [ - { - "expression": "foo[?a==`1`].b.c", - "result": ["x", "y", "z"] - } - ] - }, - { - "given": {"foo": [{"name": "a"}, {"name": "b"}, {"name": "c"}]}, - "cases": [ - { - "comment": "Filter with or expression", - "expression": "foo[?name == 'a' || name == 'b']", - "result": [{"name": "a"}, {"name": "b"}] - }, - { - "expression": "foo[?name == 'a' || name == 'e']", - "result": [{"name": "a"}] - }, - { - "expression": "foo[?name == 'a' || name == 'b' || name == 'c']", - "result": [{"name": "a"}, {"name": "b"}, {"name": "c"}] - } - ] - }, - { - "given": {"foo": [{"a": 1, "b": 2}, {"a": 1, "b": 3}]}, - "cases": [ - { - "comment": "Filter with and expression", - "expression": "foo[?a == `1` && b == `2`]", - "result": [{"a": 1, "b": 2}] - }, - { - "expression": "foo[?a == `1` && b == `4`]", - "result": [] - } - ] - }, - { - "given": {"foo": [{"a": 1, "b": 2, "c": 3}, {"a": 3, "b": 4}]}, - "cases": [ - { - "comment": "Filter with Or and And expressions", - "expression": "foo[?c == `3` || a == `1` && b == `4`]", - "result": [{"a": 1, "b": 2, "c": 3}] - }, - { - "expression": "foo[?b == `2` || a == `3` && b == `4`]", - "result": [{"a": 1, "b": 2, "c": 3}, {"a": 3, "b": 4}] - }, - { - "expression": "foo[?a == `3` && b == `4` || b == `2`]", - "result": [{"a": 1, "b": 2, "c": 3}, {"a": 3, "b": 4}] - }, - { - "expression": "foo[?(a == `3` && b == `4`) || b == `2`]", - "result": [{"a": 1, "b": 2, "c": 3}, {"a": 3, "b": 4}] - }, - { - "expression": "foo[?((a == `3` && b == `4`)) || b == `2`]", - "result": [{"a": 1, "b": 2, "c": 3}, {"a": 3, "b": 4}] - }, - { - "expression": "foo[?a == `3` && (b == `4` || b == `2`)]", - "result": [{"a": 3, "b": 4}] - }, - { - "expression": "foo[?a == `3` && ((b == `4` || b == `2`))]", - "result": [{"a": 3, "b": 4}] - } - ] - }, - { - "given": {"foo": [{"a": 1, "b": 2, "c": 3}, {"a": 3, "b": 4}]}, - "cases": [ - { - "comment": "Verify precedence of or/and expressions", - "expression": "foo[?a == `1` || b ==`2` && c == `5`]", - "result": [{"a": 1, "b": 2, "c": 3}] - }, - { - "comment": "Parentheses can alter precedence", - "expression": "foo[?(a == `1` || b ==`2`) && c == `5`]", - "result": [] - }, - { - "comment": "Not expressions combined with and/or", - "expression": "foo[?!(a == `1` || b ==`2`)]", - "result": [{"a": 3, "b": 4}] - } - ] - }, - { - "given": { - "foo": [ - {"key": true}, - {"key": false}, - {"key": []}, - {"key": {}}, - {"key": [0]}, - {"key": {"a": "b"}}, - {"key": 0}, - {"key": 1}, - {"key": null}, - {"notkey": true} - ] - }, - "cases": [ - { - "comment": "Unary filter expression", - "expression": "foo[?key]", - "result": [ - {"key": true}, {"key": [0]}, {"key": {"a": "b"}}, - {"key": 0}, {"key": 1} - ] - }, - { - "comment": "Unary not filter expression", - "expression": "foo[?!key]", - "result": [ - {"key": false}, {"key": []}, {"key": {}}, - {"key": null}, {"notkey": true} - ] - }, - { - "comment": "Equality with null RHS", - "expression": "foo[?key == `null`]", - "result": [ - {"key": null}, {"notkey": true} - ] - } - ] - }, - { - "given": { - "foo": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - "cases": [ - { - "comment": "Using @ in a filter expression", - "expression": "foo[?@ < `5`]", - "result": [0, 1, 2, 3, 4] - }, - { - "comment": "Using @ in a filter expression", - "expression": "foo[?`5` > @]", - "result": [0, 1, 2, 3, 4] - }, - { - "comment": "Using @ in a filter expression", - "expression": "foo[?@ == @]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - } - ] - } -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/functions.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/functions.json deleted file mode 100644 index 8b8db363a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/functions.json +++ /dev/null @@ -1,825 +0,0 @@ -[{ - "given": - { - "foo": -1, - "zero": 0, - "numbers": [-1, 3, 4, 5], - "array": [-1, 3, 4, 5, "a", "100"], - "strings": ["a", "b", "c"], - "decimals": [1.01, 1.2, -1.5], - "str": "Str", - "false": false, - "empty_list": [], - "empty_hash": {}, - "objects": {"foo": "bar", "bar": "baz"}, - "null_key": null - }, - "cases": [ - { - "expression": "abs(foo)", - "result": 1 - }, - { - "expression": "abs(foo)", - "result": 1 - }, - { - "expression": "abs(str)", - "error": "invalid-type" - }, - { - "expression": "abs(array[1])", - "result": 3 - }, - { - "expression": "abs(array[1])", - "result": 3 - }, - { - "expression": "abs(`false`)", - "error": "invalid-type" - }, - { - "expression": "abs(`-24`)", - "result": 24 - }, - { - "expression": "abs(`-24`)", - "result": 24 - }, - { - "expression": "abs(`1`, `2`)", - "error": "invalid-arity" - }, - { - "expression": "abs()", - "error": "invalid-arity" - }, - { - "expression": "unknown_function(`1`, `2`)", - "error": "unknown-function" - }, - { - "expression": "avg(numbers)", - "result": 2.75 - }, - { - "expression": "avg(array)", - "error": "invalid-type" - }, - { - "expression": "avg('abc')", - "error": "invalid-type" - }, - { - "expression": "avg(foo)", - "error": "invalid-type" - }, - { - "expression": "avg(@)", - "error": "invalid-type" - }, - { - "expression": "avg(strings)", - "error": "invalid-type" - }, - { - "expression": "ceil(`1.2`)", - "result": 2 - }, - { - "expression": "ceil(decimals[0])", - "result": 2 - }, - { - "expression": "ceil(decimals[1])", - "result": 2 - }, - { - "expression": "ceil(decimals[2])", - "result": -1 - }, - { - "expression": "ceil('string')", - "error": "invalid-type" - }, - { - "expression": "contains('abc', 'a')", - "result": true - }, - { - "expression": "contains('abc', 'd')", - "result": false - }, - { - "expression": "contains(`false`, 'd')", - "error": "invalid-type" - }, - { - "expression": "contains(strings, 'a')", - "result": true - }, - { - "expression": "contains(decimals, `1.2`)", - "result": true - }, - { - "expression": "contains(decimals, `false`)", - "result": false - }, - { - "expression": "ends_with(str, 'r')", - "result": true - }, - { - "expression": "ends_with(str, 'tr')", - "result": true - }, - { - "expression": "ends_with(str, 'Str')", - "result": true - }, - { - "expression": "ends_with(str, 'SStr')", - "result": false - }, - { - "expression": "ends_with(str, 'foo')", - "result": false - }, - { - "expression": "ends_with(str, `0`)", - "error": "invalid-type" - }, - { - "expression": "floor(`1.2`)", - "result": 1 - }, - { - "expression": "floor('string')", - "error": "invalid-type" - }, - { - "expression": "floor(decimals[0])", - "result": 1 - }, - { - "expression": "floor(foo)", - "result": -1 - }, - { - "expression": "floor(str)", - "error": "invalid-type" - }, - { - "expression": "length('abc')", - "result": 3 - }, - { - "expression": "length('✓foo')", - "result": 4 - }, - { - "expression": "length('')", - "result": 0 - }, - { - "expression": "length(@)", - "result": 12 - }, - { - "expression": "length(strings[0])", - "result": 1 - }, - { - "expression": "length(str)", - "result": 3 - }, - { - "expression": "length(array)", - "result": 6 - }, - { - "expression": "length(objects)", - "result": 2 - }, - { - "expression": "length(`false`)", - "error": "invalid-type" - }, - { - "expression": "length(foo)", - "error": "invalid-type" - }, - { - "expression": "length(strings[0])", - "result": 1 - }, - { - "expression": "max(numbers)", - "result": 5 - }, - { - "expression": "max(decimals)", - "result": 1.2 - }, - { - "expression": "max(strings)", - "result": "c" - }, - { - "expression": "max(abc)", - "error": "invalid-type" - }, - { - "expression": "max(array)", - "error": "invalid-type" - }, - { - "expression": "max(decimals)", - "result": 1.2 - }, - { - "expression": "max(empty_list)", - "result": null - }, - { - "expression": "merge(`{}`)", - "result": {} - }, - { - "expression": "merge(`{}`, `{}`)", - "result": {} - }, - { - "expression": "merge(`{\"a\": 1}`, `{\"b\": 2}`)", - "result": {"a": 1, "b": 2} - }, - { - "expression": "merge(`{\"a\": 1}`, `{\"a\": 2}`)", - "result": {"a": 2} - }, - { - "expression": "merge(`{\"a\": 1, \"b\": 2}`, `{\"a\": 2, \"c\": 3}`, `{\"d\": 4}`)", - "result": {"a": 2, "b": 2, "c": 3, "d": 4} - }, - { - "expression": "min(numbers)", - "result": -1 - }, - { - "expression": "min(decimals)", - "result": -1.5 - }, - { - "expression": "min(abc)", - "error": "invalid-type" - }, - { - "expression": "min(array)", - "error": "invalid-type" - }, - { - "expression": "min(empty_list)", - "result": null - }, - { - "expression": "min(decimals)", - "result": -1.5 - }, - { - "expression": "min(strings)", - "result": "a" - }, - { - "expression": "type('abc')", - "result": "string" - }, - { - "expression": "type(`1.0`)", - "result": "number" - }, - { - "expression": "type(`2`)", - "result": "number" - }, - { - "expression": "type(`true`)", - "result": "boolean" - }, - { - "expression": "type(`false`)", - "result": "boolean" - }, - { - "expression": "type(`null`)", - "result": "null" - }, - { - "expression": "type(`[0]`)", - "result": "array" - }, - { - "expression": "type(`{\"a\": \"b\"}`)", - "result": "object" - }, - { - "expression": "type(@)", - "result": "object" - }, - { - "expression": "sort(keys(objects))", - "result": ["bar", "foo"] - }, - { - "expression": "keys(foo)", - "error": "invalid-type" - }, - { - "expression": "keys(strings)", - "error": "invalid-type" - }, - { - "expression": "keys(`false`)", - "error": "invalid-type" - }, - { - "expression": "sort(values(objects))", - "result": ["bar", "baz"] - }, - { - "expression": "keys(empty_hash)", - "result": [] - }, - { - "expression": "values(foo)", - "error": "invalid-type" - }, - { - "expression": "join(', ', strings)", - "result": "a, b, c" - }, - { - "expression": "join(', ', strings)", - "result": "a, b, c" - }, - { - "expression": "join(',', `[\"a\", \"b\"]`)", - "result": "a,b" - }, - { - "expression": "join(',', `[\"a\", 0]`)", - "error": "invalid-type" - }, - { - "expression": "join(', ', str)", - "error": "invalid-type" - }, - { - "expression": "join('|', strings)", - "result": "a|b|c" - }, - { - "expression": "join(`2`, strings)", - "error": "invalid-type" - }, - { - "expression": "join('|', decimals)", - "error": "invalid-type" - }, - { - "expression": "join('|', decimals[].to_string(@))", - "result": "1.01|1.2|-1.5" - }, - { - "expression": "join('|', empty_list)", - "result": "" - }, - { - "expression": "reverse(numbers)", - "result": [5, 4, 3, -1] - }, - { - "expression": "reverse(array)", - "result": ["100", "a", 5, 4, 3, -1] - }, - { - "expression": "reverse(`[]`)", - "result": [] - }, - { - "expression": "reverse('')", - "result": "" - }, - { - "expression": "reverse('hello world')", - "result": "dlrow olleh" - }, - { - "expression": "starts_with(str, 'S')", - "result": true - }, - { - "expression": "starts_with(str, 'St')", - "result": true - }, - { - "expression": "starts_with(str, 'Str')", - "result": true - }, - { - "expression": "starts_with(str, 'String')", - "result": false - }, - { - "expression": "starts_with(str, `0`)", - "error": "invalid-type" - }, - { - "expression": "sum(numbers)", - "result": 11 - }, - { - "expression": "sum(decimals)", - "result": 0.71 - }, - { - "expression": "sum(array)", - "error": "invalid-type" - }, - { - "expression": "sum(array[].to_number(@))", - "result": 111 - }, - { - "expression": "sum(`[]`)", - "result": 0 - }, - { - "expression": "to_array('foo')", - "result": ["foo"] - }, - { - "expression": "to_array(`0`)", - "result": [0] - }, - { - "expression": "to_array(objects)", - "result": [{"foo": "bar", "bar": "baz"}] - }, - { - "expression": "to_array(`[1, 2, 3]`)", - "result": [1, 2, 3] - }, - { - "expression": "to_array(false)", - "result": [false] - }, - { - "expression": "to_string('foo')", - "result": "foo" - }, - { - "expression": "to_string(`1.2`)", - "result": "1.2" - }, - { - "expression": "to_string(`[0, 1]`)", - "result": "[0,1]" - }, - { - "expression": "to_number('1.0')", - "result": 1.0 - }, - { - "expression": "to_number('1.1')", - "result": 1.1 - }, - { - "expression": "to_number('4')", - "result": 4 - }, - { - "expression": "to_number('notanumber')", - "result": null - }, - { - "expression": "to_number(`false`)", - "result": null - }, - { - "expression": "to_number(`null`)", - "result": null - }, - { - "expression": "to_number(`[0]`)", - "result": null - }, - { - "expression": "to_number(`{\"foo\": 0}`)", - "result": null - }, - { - "expression": "\"to_string\"(`1.0`)", - "error": "syntax" - }, - { - "expression": "sort(numbers)", - "result": [-1, 3, 4, 5] - }, - { - "expression": "sort(strings)", - "result": ["a", "b", "c"] - }, - { - "expression": "sort(decimals)", - "result": [-1.5, 1.01, 1.2] - }, - { - "expression": "sort(array)", - "error": "invalid-type" - }, - { - "expression": "sort(abc)", - "error": "invalid-type" - }, - { - "expression": "sort(empty_list)", - "result": [] - }, - { - "expression": "sort(@)", - "error": "invalid-type" - }, - { - "expression": "not_null(unknown_key, str)", - "result": "Str" - }, - { - "expression": "not_null(unknown_key, foo.bar, empty_list, str)", - "result": [] - }, - { - "expression": "not_null(unknown_key, null_key, empty_list, str)", - "result": [] - }, - { - "expression": "not_null(all, expressions, are_null)", - "result": null - }, - { - "expression": "not_null()", - "error": "invalid-arity" - }, - { - "description": "function projection on single arg function", - "expression": "numbers[].to_string(@)", - "result": ["-1", "3", "4", "5"] - }, - { - "description": "function projection on single arg function", - "expression": "array[].to_number(@)", - "result": [-1, 3, 4, 5, 100] - } - ] -}, { - "given": - { - "foo": [ - {"b": "b", "a": "a"}, - {"c": "c", "b": "b"}, - {"d": "d", "c": "c"}, - {"e": "e", "d": "d"}, - {"f": "f", "e": "e"} - ] - }, - "cases": [ - { - "description": "function projection on variadic function", - "expression": "foo[].not_null(f, e, d, c, b, a)", - "result": ["b", "c", "d", "e", "f"] - } - ] -}, { - "given": - { - "people": [ - {"age": 20, "age_str": "20", "bool": true, "name": "a", "extra": "foo"}, - {"age": 40, "age_str": "40", "bool": false, "name": "b", "extra": "bar"}, - {"age": 30, "age_str": "30", "bool": true, "name": "c"}, - {"age": 50, "age_str": "50", "bool": false, "name": "d"}, - {"age": 10, "age_str": "10", "bool": true, "name": 3} - ] - }, - "cases": [ - { - "description": "sort by field expression", - "expression": "sort_by(people, &age)", - "result": [ - {"age": 10, "age_str": "10", "bool": true, "name": 3}, - {"age": 20, "age_str": "20", "bool": true, "name": "a", "extra": "foo"}, - {"age": 30, "age_str": "30", "bool": true, "name": "c"}, - {"age": 40, "age_str": "40", "bool": false, "name": "b", "extra": "bar"}, - {"age": 50, "age_str": "50", "bool": false, "name": "d"} - ] - }, - { - "expression": "sort_by(people, &age_str)", - "result": [ - {"age": 10, "age_str": "10", "bool": true, "name": 3}, - {"age": 20, "age_str": "20", "bool": true, "name": "a", "extra": "foo"}, - {"age": 30, "age_str": "30", "bool": true, "name": "c"}, - {"age": 40, "age_str": "40", "bool": false, "name": "b", "extra": "bar"}, - {"age": 50, "age_str": "50", "bool": false, "name": "d"} - ] - }, - { - "description": "sort by function expression", - "expression": "sort_by(people, &to_number(age_str))", - "result": [ - {"age": 10, "age_str": "10", "bool": true, "name": 3}, - {"age": 20, "age_str": "20", "bool": true, "name": "a", "extra": "foo"}, - {"age": 30, "age_str": "30", "bool": true, "name": "c"}, - {"age": 40, "age_str": "40", "bool": false, "name": "b", "extra": "bar"}, - {"age": 50, "age_str": "50", "bool": false, "name": "d"} - ] - }, - { - "description": "function projection on sort_by function", - "expression": "sort_by(people, &age)[].name", - "result": [3, "a", "c", "b", "d"] - }, - { - "expression": "sort_by(people, &extra)", - "error": "invalid-type" - }, - { - "expression": "sort_by(people, &bool)", - "error": "invalid-type" - }, - { - "expression": "sort_by(people, &name)", - "error": "invalid-type" - }, - { - "expression": "sort_by(people, name)", - "error": "invalid-type" - }, - { - "expression": "sort_by(people, &age)[].extra", - "result": ["foo", "bar"] - }, - { - "expression": "sort_by(`[]`, &age)", - "result": [] - }, - { - "expression": "max_by(people, &age)", - "result": {"age": 50, "age_str": "50", "bool": false, "name": "d"} - }, - { - "expression": "max_by(people, &age_str)", - "result": {"age": 50, "age_str": "50", "bool": false, "name": "d"} - }, - { - "expression": "max_by(people, &bool)", - "error": "invalid-type" - }, - { - "expression": "max_by(people, &extra)", - "error": "invalid-type" - }, - { - "expression": "max_by(people, &to_number(age_str))", - "result": {"age": 50, "age_str": "50", "bool": false, "name": "d"} - }, - { - "expression": "min_by(people, &age)", - "result": {"age": 10, "age_str": "10", "bool": true, "name": 3} - }, - { - "expression": "min_by(people, &age_str)", - "result": {"age": 10, "age_str": "10", "bool": true, "name": 3} - }, - { - "expression": "min_by(people, &bool)", - "error": "invalid-type" - }, - { - "expression": "min_by(people, &extra)", - "error": "invalid-type" - }, - { - "expression": "min_by(people, &to_number(age_str))", - "result": {"age": 10, "age_str": "10", "bool": true, "name": 3} - } - ] -}, { - "given": - { - "people": [ - {"age": 10, "order": "1"}, - {"age": 10, "order": "2"}, - {"age": 10, "order": "3"}, - {"age": 10, "order": "4"}, - {"age": 10, "order": "5"}, - {"age": 10, "order": "6"}, - {"age": 10, "order": "7"}, - {"age": 10, "order": "8"}, - {"age": 10, "order": "9"}, - {"age": 10, "order": "10"}, - {"age": 10, "order": "11"} - ] - }, - "cases": [ - { - "description": "stable sort order", - "expression": "sort_by(people, &age)", - "result": [ - {"age": 10, "order": "1"}, - {"age": 10, "order": "2"}, - {"age": 10, "order": "3"}, - {"age": 10, "order": "4"}, - {"age": 10, "order": "5"}, - {"age": 10, "order": "6"}, - {"age": 10, "order": "7"}, - {"age": 10, "order": "8"}, - {"age": 10, "order": "9"}, - {"age": 10, "order": "10"}, - {"age": 10, "order": "11"} - ] - } - ] -}, { - "given": - { - "people": [ - {"a": 10, "b": 1, "c": "z"}, - {"a": 10, "b": 2, "c": null}, - {"a": 10, "b": 3}, - {"a": 10, "b": 4, "c": "z"}, - {"a": 10, "b": 5, "c": null}, - {"a": 10, "b": 6}, - {"a": 10, "b": 7, "c": "z"}, - {"a": 10, "b": 8, "c": null}, - {"a": 10, "b": 9} - ], - "empty": [] - }, - "cases": [ - { - "expression": "map(&a, people)", - "result": [10, 10, 10, 10, 10, 10, 10, 10, 10] - }, - { - "expression": "map(&c, people)", - "result": ["z", null, null, "z", null, null, "z", null, null] - }, - { - "expression": "map(&a, badkey)", - "error": "invalid-type" - }, - { - "expression": "map(&foo, empty)", - "result": [] - } - ] -}, { - "given": { - "array": [ - { - "foo": {"bar": "yes1"} - }, - { - "foo": {"bar": "yes2"} - }, - { - "foo1": {"bar": "no"} - } - ]}, - "cases": [ - { - "expression": "map(&foo.bar, array)", - "result": ["yes1", "yes2", null] - }, - { - "expression": "map(&foo1.bar, array)", - "result": [null, null, "no"] - }, - { - "expression": "map(&foo.bar.baz, array)", - "result": [null, null, null] - } - ] -}, { - "given": { - "array": [[1, 2, 3, [4]], [5, 6, 7, [8, 9]]] - }, - "cases": [ - { - "expression": "map(&[], array)", - "result": [[1, 2, 3, 4], [5, 6, 7, 8, 9]] - } - ] -} -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/identifiers.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/identifiers.json deleted file mode 100644 index 7998a41ac..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/identifiers.json +++ /dev/null @@ -1,1377 +0,0 @@ -[ - { - "given": { - "__L": true - }, - "cases": [ - { - "expression": "__L", - "result": true - } - ] - }, - { - "given": { - "!\r": true - }, - "cases": [ - { - "expression": "\"!\\r\"", - "result": true - } - ] - }, - { - "given": { - "Y_1623": true - }, - "cases": [ - { - "expression": "Y_1623", - "result": true - } - ] - }, - { - "given": { - "x": true - }, - "cases": [ - { - "expression": "x", - "result": true - } - ] - }, - { - "given": { - "\tF\uCebb": true - }, - "cases": [ - { - "expression": "\"\\tF\\uCebb\"", - "result": true - } - ] - }, - { - "given": { - " \t": true - }, - "cases": [ - { - "expression": "\" \\t\"", - "result": true - } - ] - }, - { - "given": { - " ": true - }, - "cases": [ - { - "expression": "\" \"", - "result": true - } - ] - }, - { - "given": { - "v2": true - }, - "cases": [ - { - "expression": "v2", - "result": true - } - ] - }, - { - "given": { - "\t": true - }, - "cases": [ - { - "expression": "\"\\t\"", - "result": true - } - ] - }, - { - "given": { - "_X": true - }, - "cases": [ - { - "expression": "_X", - "result": true - } - ] - }, - { - "given": { - "\t4\ud9da\udd15": true - }, - "cases": [ - { - "expression": "\"\\t4\\ud9da\\udd15\"", - "result": true - } - ] - }, - { - "given": { - "v24_W": true - }, - "cases": [ - { - "expression": "v24_W", - "result": true - } - ] - }, - { - "given": { - "H": true - }, - "cases": [ - { - "expression": "\"H\"", - "result": true - } - ] - }, - { - "given": { - "\f": true - }, - "cases": [ - { - "expression": "\"\\f\"", - "result": true - } - ] - }, - { - "given": { - "E4": true - }, - "cases": [ - { - "expression": "\"E4\"", - "result": true - } - ] - }, - { - "given": { - "!": true - }, - "cases": [ - { - "expression": "\"!\"", - "result": true - } - ] - }, - { - "given": { - "tM": true - }, - "cases": [ - { - "expression": "tM", - "result": true - } - ] - }, - { - "given": { - " [": true - }, - "cases": [ - { - "expression": "\" [\"", - "result": true - } - ] - }, - { - "given": { - "R!": true - }, - "cases": [ - { - "expression": "\"R!\"", - "result": true - } - ] - }, - { - "given": { - "_6W": true - }, - "cases": [ - { - "expression": "_6W", - "result": true - } - ] - }, - { - "given": { - "\uaBA1\r": true - }, - "cases": [ - { - "expression": "\"\\uaBA1\\r\"", - "result": true - } - ] - }, - { - "given": { - "tL7": true - }, - "cases": [ - { - "expression": "tL7", - "result": true - } - ] - }, - { - "given": { - "<": true - }, - "cases": [ - { - "expression": "\">\"", - "result": true - } - ] - }, - { - "given": { - "hvu": true - }, - "cases": [ - { - "expression": "hvu", - "result": true - } - ] - }, - { - "given": { - "; !": true - }, - "cases": [ - { - "expression": "\"; !\"", - "result": true - } - ] - }, - { - "given": { - "hU": true - }, - "cases": [ - { - "expression": "hU", - "result": true - } - ] - }, - { - "given": { - "!I\n\/": true - }, - "cases": [ - { - "expression": "\"!I\\n\\/\"", - "result": true - } - ] - }, - { - "given": { - "\uEEbF": true - }, - "cases": [ - { - "expression": "\"\\uEEbF\"", - "result": true - } - ] - }, - { - "given": { - "U)\t": true - }, - "cases": [ - { - "expression": "\"U)\\t\"", - "result": true - } - ] - }, - { - "given": { - "fa0_9": true - }, - "cases": [ - { - "expression": "fa0_9", - "result": true - } - ] - }, - { - "given": { - "/": true - }, - "cases": [ - { - "expression": "\"/\"", - "result": true - } - ] - }, - { - "given": { - "Gy": true - }, - "cases": [ - { - "expression": "Gy", - "result": true - } - ] - }, - { - "given": { - "\b": true - }, - "cases": [ - { - "expression": "\"\\b\"", - "result": true - } - ] - }, - { - "given": { - "<": true - }, - "cases": [ - { - "expression": "\"<\"", - "result": true - } - ] - }, - { - "given": { - "\t": true - }, - "cases": [ - { - "expression": "\"\\t\"", - "result": true - } - ] - }, - { - "given": { - "\t&\\\r": true - }, - "cases": [ - { - "expression": "\"\\t&\\\\\\r\"", - "result": true - } - ] - }, - { - "given": { - "#": true - }, - "cases": [ - { - "expression": "\"#\"", - "result": true - } - ] - }, - { - "given": { - "B__": true - }, - "cases": [ - { - "expression": "B__", - "result": true - } - ] - }, - { - "given": { - "\nS \n": true - }, - "cases": [ - { - "expression": "\"\\nS \\n\"", - "result": true - } - ] - }, - { - "given": { - "Bp": true - }, - "cases": [ - { - "expression": "Bp", - "result": true - } - ] - }, - { - "given": { - ",\t;": true - }, - "cases": [ - { - "expression": "\",\\t;\"", - "result": true - } - ] - }, - { - "given": { - "B_q": true - }, - "cases": [ - { - "expression": "B_q", - "result": true - } - ] - }, - { - "given": { - "\/+\t\n\b!Z": true - }, - "cases": [ - { - "expression": "\"\\/+\\t\\n\\b!Z\"", - "result": true - } - ] - }, - { - "given": { - "\udadd\udfc7\\ueFAc": true - }, - "cases": [ - { - "expression": "\"\udadd\udfc7\\\\ueFAc\"", - "result": true - } - ] - }, - { - "given": { - ":\f": true - }, - "cases": [ - { - "expression": "\":\\f\"", - "result": true - } - ] - }, - { - "given": { - "\/": true - }, - "cases": [ - { - "expression": "\"\\/\"", - "result": true - } - ] - }, - { - "given": { - "_BW_6Hg_Gl": true - }, - "cases": [ - { - "expression": "_BW_6Hg_Gl", - "result": true - } - ] - }, - { - "given": { - "\udbcf\udc02": true - }, - "cases": [ - { - "expression": "\"\udbcf\udc02\"", - "result": true - } - ] - }, - { - "given": { - "zs1DC": true - }, - "cases": [ - { - "expression": "zs1DC", - "result": true - } - ] - }, - { - "given": { - "__434": true - }, - "cases": [ - { - "expression": "__434", - "result": true - } - ] - }, - { - "given": { - "\udb94\udd41": true - }, - "cases": [ - { - "expression": "\"\udb94\udd41\"", - "result": true - } - ] - }, - { - "given": { - "Z_5": true - }, - "cases": [ - { - "expression": "Z_5", - "result": true - } - ] - }, - { - "given": { - "z_M_": true - }, - "cases": [ - { - "expression": "z_M_", - "result": true - } - ] - }, - { - "given": { - "YU_2": true - }, - "cases": [ - { - "expression": "YU_2", - "result": true - } - ] - }, - { - "given": { - "_0": true - }, - "cases": [ - { - "expression": "_0", - "result": true - } - ] - }, - { - "given": { - "\b+": true - }, - "cases": [ - { - "expression": "\"\\b+\"", - "result": true - } - ] - }, - { - "given": { - "\"": true - }, - "cases": [ - { - "expression": "\"\\\"\"", - "result": true - } - ] - }, - { - "given": { - "D7": true - }, - "cases": [ - { - "expression": "D7", - "result": true - } - ] - }, - { - "given": { - "_62L": true - }, - "cases": [ - { - "expression": "_62L", - "result": true - } - ] - }, - { - "given": { - "\tK\t": true - }, - "cases": [ - { - "expression": "\"\\tK\\t\"", - "result": true - } - ] - }, - { - "given": { - "\n\\\f": true - }, - "cases": [ - { - "expression": "\"\\n\\\\\\f\"", - "result": true - } - ] - }, - { - "given": { - "I_": true - }, - "cases": [ - { - "expression": "I_", - "result": true - } - ] - }, - { - "given": { - "W_a0_": true - }, - "cases": [ - { - "expression": "W_a0_", - "result": true - } - ] - }, - { - "given": { - "BQ": true - }, - "cases": [ - { - "expression": "BQ", - "result": true - } - ] - }, - { - "given": { - "\tX$\uABBb": true - }, - "cases": [ - { - "expression": "\"\\tX$\\uABBb\"", - "result": true - } - ] - }, - { - "given": { - "Z9": true - }, - "cases": [ - { - "expression": "Z9", - "result": true - } - ] - }, - { - "given": { - "\b%\"\uda38\udd0f": true - }, - "cases": [ - { - "expression": "\"\\b%\\\"\uda38\udd0f\"", - "result": true - } - ] - }, - { - "given": { - "_F": true - }, - "cases": [ - { - "expression": "_F", - "result": true - } - ] - }, - { - "given": { - "!,": true - }, - "cases": [ - { - "expression": "\"!,\"", - "result": true - } - ] - }, - { - "given": { - "\"!": true - }, - "cases": [ - { - "expression": "\"\\\"!\"", - "result": true - } - ] - }, - { - "given": { - "Hh": true - }, - "cases": [ - { - "expression": "Hh", - "result": true - } - ] - }, - { - "given": { - "&": true - }, - "cases": [ - { - "expression": "\"&\"", - "result": true - } - ] - }, - { - "given": { - "9\r\\R": true - }, - "cases": [ - { - "expression": "\"9\\r\\\\R\"", - "result": true - } - ] - }, - { - "given": { - "M_k": true - }, - "cases": [ - { - "expression": "M_k", - "result": true - } - ] - }, - { - "given": { - "!\b\n\udb06\ude52\"\"": true - }, - "cases": [ - { - "expression": "\"!\\b\\n\udb06\ude52\\\"\\\"\"", - "result": true - } - ] - }, - { - "given": { - "6": true - }, - "cases": [ - { - "expression": "\"6\"", - "result": true - } - ] - }, - { - "given": { - "_7": true - }, - "cases": [ - { - "expression": "_7", - "result": true - } - ] - }, - { - "given": { - "0": true - }, - "cases": [ - { - "expression": "\"0\"", - "result": true - } - ] - }, - { - "given": { - "\\8\\": true - }, - "cases": [ - { - "expression": "\"\\\\8\\\\\"", - "result": true - } - ] - }, - { - "given": { - "b7eo": true - }, - "cases": [ - { - "expression": "b7eo", - "result": true - } - ] - }, - { - "given": { - "xIUo9": true - }, - "cases": [ - { - "expression": "xIUo9", - "result": true - } - ] - }, - { - "given": { - "5": true - }, - "cases": [ - { - "expression": "\"5\"", - "result": true - } - ] - }, - { - "given": { - "?": true - }, - "cases": [ - { - "expression": "\"?\"", - "result": true - } - ] - }, - { - "given": { - "sU": true - }, - "cases": [ - { - "expression": "sU", - "result": true - } - ] - }, - { - "given": { - "VH2&H\\\/": true - }, - "cases": [ - { - "expression": "\"VH2&H\\\\\\/\"", - "result": true - } - ] - }, - { - "given": { - "_C": true - }, - "cases": [ - { - "expression": "_C", - "result": true - } - ] - }, - { - "given": { - "_": true - }, - "cases": [ - { - "expression": "_", - "result": true - } - ] - }, - { - "given": { - "<\t": true - }, - "cases": [ - { - "expression": "\"<\\t\"", - "result": true - } - ] - }, - { - "given": { - "\uD834\uDD1E": true - }, - "cases": [ - { - "expression": "\"\\uD834\\uDD1E\"", - "result": true - } - ] - } -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/indices.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/indices.json deleted file mode 100644 index aa03b35dd..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/indices.json +++ /dev/null @@ -1,346 +0,0 @@ -[{ - "given": - {"foo": {"bar": ["zero", "one", "two"]}}, - "cases": [ - { - "expression": "foo.bar[0]", - "result": "zero" - }, - { - "expression": "foo.bar[1]", - "result": "one" - }, - { - "expression": "foo.bar[2]", - "result": "two" - }, - { - "expression": "foo.bar[3]", - "result": null - }, - { - "expression": "foo.bar[-1]", - "result": "two" - }, - { - "expression": "foo.bar[-2]", - "result": "one" - }, - { - "expression": "foo.bar[-3]", - "result": "zero" - }, - { - "expression": "foo.bar[-4]", - "result": null - } - ] -}, -{ - "given": - {"foo": [{"bar": "one"}, {"bar": "two"}, {"bar": "three"}, {"notbar": "four"}]}, - "cases": [ - { - "expression": "foo.bar", - "result": null - }, - { - "expression": "foo[0].bar", - "result": "one" - }, - { - "expression": "foo[1].bar", - "result": "two" - }, - { - "expression": "foo[2].bar", - "result": "three" - }, - { - "expression": "foo[3].notbar", - "result": "four" - }, - { - "expression": "foo[3].bar", - "result": null - }, - { - "expression": "foo[0]", - "result": {"bar": "one"} - }, - { - "expression": "foo[1]", - "result": {"bar": "two"} - }, - { - "expression": "foo[2]", - "result": {"bar": "three"} - }, - { - "expression": "foo[3]", - "result": {"notbar": "four"} - }, - { - "expression": "foo[4]", - "result": null - } - ] -}, -{ - "given": [ - "one", "two", "three" - ], - "cases": [ - { - "expression": "[0]", - "result": "one" - }, - { - "expression": "[1]", - "result": "two" - }, - { - "expression": "[2]", - "result": "three" - }, - { - "expression": "[-1]", - "result": "three" - }, - { - "expression": "[-2]", - "result": "two" - }, - { - "expression": "[-3]", - "result": "one" - } - ] -}, -{ - "given": {"reservations": [ - {"instances": [{"foo": 1}, {"foo": 2}]} - ]}, - "cases": [ - { - "expression": "reservations[].instances[].foo", - "result": [1, 2] - }, - { - "expression": "reservations[].instances[].bar", - "result": [] - }, - { - "expression": "reservations[].notinstances[].foo", - "result": [] - }, - { - "expression": "reservations[].notinstances[].foo", - "result": [] - } - ] -}, -{ - "given": {"reservations": [{ - "instances": [ - {"foo": [{"bar": 1}, {"bar": 2}, {"notbar": 3}, {"bar": 4}]}, - {"foo": [{"bar": 5}, {"bar": 6}, {"notbar": [7]}, {"bar": 8}]}, - {"foo": "bar"}, - {"notfoo": [{"bar": 20}, {"bar": 21}, {"notbar": [7]}, {"bar": 22}]}, - {"bar": [{"baz": [1]}, {"baz": [2]}, {"baz": [3]}, {"baz": [4]}]}, - {"baz": [{"baz": [1, 2]}, {"baz": []}, {"baz": []}, {"baz": [3, 4]}]}, - {"qux": [{"baz": []}, {"baz": [1, 2, 3]}, {"baz": [4]}, {"baz": []}]} - ], - "otherkey": {"foo": [{"bar": 1}, {"bar": 2}, {"notbar": 3}, {"bar": 4}]} - }, { - "instances": [ - {"a": [{"bar": 1}, {"bar": 2}, {"notbar": 3}, {"bar": 4}]}, - {"b": [{"bar": 5}, {"bar": 6}, {"notbar": [7]}, {"bar": 8}]}, - {"c": "bar"}, - {"notfoo": [{"bar": 23}, {"bar": 24}, {"notbar": [7]}, {"bar": 25}]}, - {"qux": [{"baz": []}, {"baz": [1, 2, 3]}, {"baz": [4]}, {"baz": []}]} - ], - "otherkey": {"foo": [{"bar": 1}, {"bar": 2}, {"notbar": 3}, {"bar": 4}]} - } - ]}, - "cases": [ - { - "expression": "reservations[].instances[].foo[].bar", - "result": [1, 2, 4, 5, 6, 8] - }, - { - "expression": "reservations[].instances[].foo[].baz", - "result": [] - }, - { - "expression": "reservations[].instances[].notfoo[].bar", - "result": [20, 21, 22, 23, 24, 25] - }, - { - "expression": "reservations[].instances[].notfoo[].notbar", - "result": [[7], [7]] - }, - { - "expression": "reservations[].notinstances[].foo", - "result": [] - }, - { - "expression": "reservations[].instances[].foo[].notbar", - "result": [3, [7]] - }, - { - "expression": "reservations[].instances[].bar[].baz", - "result": [[1], [2], [3], [4]] - }, - { - "expression": "reservations[].instances[].baz[].baz", - "result": [[1, 2], [], [], [3, 4]] - }, - { - "expression": "reservations[].instances[].qux[].baz", - "result": [[], [1, 2, 3], [4], [], [], [1, 2, 3], [4], []] - }, - { - "expression": "reservations[].instances[].qux[].baz[]", - "result": [1, 2, 3, 4, 1, 2, 3, 4] - } - ] -}, -{ - "given": { - "foo": [ - [["one", "two"], ["three", "four"]], - [["five", "six"], ["seven", "eight"]], - [["nine"], ["ten"]] - ] - }, - "cases": [ - { - "expression": "foo[]", - "result": [["one", "two"], ["three", "four"], ["five", "six"], - ["seven", "eight"], ["nine"], ["ten"]] - }, - { - "expression": "foo[][0]", - "result": ["one", "three", "five", "seven", "nine", "ten"] - }, - { - "expression": "foo[][1]", - "result": ["two", "four", "six", "eight"] - }, - { - "expression": "foo[][0][0]", - "result": [] - }, - { - "expression": "foo[][2][2]", - "result": [] - }, - { - "expression": "foo[][0][0][100]", - "result": [] - } - ] -}, -{ - "given": { - "foo": [{ - "bar": [ - { - "qux": 2, - "baz": 1 - }, - { - "qux": 4, - "baz": 3 - } - ] - }, - { - "bar": [ - { - "qux": 6, - "baz": 5 - }, - { - "qux": 8, - "baz": 7 - } - ] - } - ] - }, - "cases": [ - { - "expression": "foo", - "result": [{"bar": [{"qux": 2, "baz": 1}, {"qux": 4, "baz": 3}]}, - {"bar": [{"qux": 6, "baz": 5}, {"qux": 8, "baz": 7}]}] - }, - { - "expression": "foo[]", - "result": [{"bar": [{"qux": 2, "baz": 1}, {"qux": 4, "baz": 3}]}, - {"bar": [{"qux": 6, "baz": 5}, {"qux": 8, "baz": 7}]}] - }, - { - "expression": "foo[].bar", - "result": [[{"qux": 2, "baz": 1}, {"qux": 4, "baz": 3}], - [{"qux": 6, "baz": 5}, {"qux": 8, "baz": 7}]] - }, - { - "expression": "foo[].bar[]", - "result": [{"qux": 2, "baz": 1}, {"qux": 4, "baz": 3}, - {"qux": 6, "baz": 5}, {"qux": 8, "baz": 7}] - }, - { - "expression": "foo[].bar[].baz", - "result": [1, 3, 5, 7] - } - ] -}, -{ - "given": { - "string": "string", - "hash": {"foo": "bar", "bar": "baz"}, - "number": 23, - "nullvalue": null - }, - "cases": [ - { - "expression": "string[]", - "result": null - }, - { - "expression": "hash[]", - "result": null - }, - { - "expression": "number[]", - "result": null - }, - { - "expression": "nullvalue[]", - "result": null - }, - { - "expression": "string[].foo", - "result": null - }, - { - "expression": "hash[].foo", - "result": null - }, - { - "expression": "number[].foo", - "result": null - }, - { - "expression": "nullvalue[].foo", - "result": null - }, - { - "expression": "nullvalue[].foo[].bar", - "result": null - } - ] -} -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/literal.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/literal.json deleted file mode 100644 index c6706b971..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/literal.json +++ /dev/null @@ -1,185 +0,0 @@ -[ - { - "given": { - "foo": [{"name": "a"}, {"name": "b"}], - "bar": {"baz": "qux"} - }, - "cases": [ - { - "expression": "`\"foo\"`", - "result": "foo" - }, - { - "comment": "Interpret escaped unicode.", - "expression": "`\"\\u03a6\"`", - "result": "Φ" - }, - { - "expression": "`\"✓\"`", - "result": "✓" - }, - { - "expression": "`[1, 2, 3]`", - "result": [1, 2, 3] - }, - { - "expression": "`{\"a\": \"b\"}`", - "result": {"a": "b"} - }, - { - "expression": "`true`", - "result": true - }, - { - "expression": "`false`", - "result": false - }, - { - "expression": "`null`", - "result": null - }, - { - "expression": "`0`", - "result": 0 - }, - { - "expression": "`1`", - "result": 1 - }, - { - "expression": "`2`", - "result": 2 - }, - { - "expression": "`3`", - "result": 3 - }, - { - "expression": "`4`", - "result": 4 - }, - { - "expression": "`5`", - "result": 5 - }, - { - "expression": "`6`", - "result": 6 - }, - { - "expression": "`7`", - "result": 7 - }, - { - "expression": "`8`", - "result": 8 - }, - { - "expression": "`9`", - "result": 9 - }, - { - "comment": "Escaping a backtick in quotes", - "expression": "`\"foo\\`bar\"`", - "result": "foo`bar" - }, - { - "comment": "Double quote in literal", - "expression": "`\"foo\\\"bar\"`", - "result": "foo\"bar" - }, - { - "expression": "`\"1\\`\"`", - "result": "1`" - }, - { - "comment": "Multiple literal expressions with escapes", - "expression": "`\"\\\\\"`.{a:`\"b\"`}", - "result": {"a": "b"} - }, - { - "comment": "literal . identifier", - "expression": "`{\"a\": \"b\"}`.a", - "result": "b" - }, - { - "comment": "literal . identifier . identifier", - "expression": "`{\"a\": {\"b\": \"c\"}}`.a.b", - "result": "c" - }, - { - "comment": "literal . identifier bracket-expr", - "expression": "`[0, 1, 2]`[1]", - "result": 1 - } - ] - }, - { - "comment": "Literals", - "given": {"type": "object"}, - "cases": [ - { - "comment": "Literal with leading whitespace", - "expression": "` {\"foo\": true}`", - "result": {"foo": true} - }, - { - "comment": "Literal with trailing whitespace", - "expression": "`{\"foo\": true} `", - "result": {"foo": true} - }, - { - "comment": "Literal on RHS of subexpr not allowed", - "expression": "foo.`\"bar\"`", - "error": "syntax" - } - ] - }, - { - "comment": "Raw String Literals", - "given": {}, - "cases": [ - { - "expression": "'foo'", - "result": "foo" - }, - { - "expression": "' foo '", - "result": " foo " - }, - { - "expression": "'0'", - "result": "0" - }, - { - "expression": "'newline\n'", - "result": "newline\n" - }, - { - "expression": "'\n'", - "result": "\n" - }, - { - "expression": "'✓'", - "result": "✓" - }, - { - "expression": "'𝄞'", - "result": "𝄞" - }, - { - "expression": "' [foo] '", - "result": " [foo] " - }, - { - "expression": "'[foo]'", - "result": "[foo]" - }, - { - "comment": "Do not interpret escaped unicode.", - "expression": "'\\u03a6'", - "result": "\\u03a6" - } - ] - } -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/multiselect.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/multiselect.json deleted file mode 100644 index 8f2a481ed..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/multiselect.json +++ /dev/null @@ -1,393 +0,0 @@ -[{ - "given": { - "foo": { - "bar": "bar", - "baz": "baz", - "qux": "qux", - "nested": { - "one": { - "a": "first", - "b": "second", - "c": "third" - }, - "two": { - "a": "first", - "b": "second", - "c": "third" - }, - "three": { - "a": "first", - "b": "second", - "c": {"inner": "third"} - } - } - }, - "bar": 1, - "baz": 2, - "qux\"": 3 - }, - "cases": [ - { - "expression": "foo.{bar: bar}", - "result": {"bar": "bar"} - }, - { - "expression": "foo.{\"bar\": bar}", - "result": {"bar": "bar"} - }, - { - "expression": "foo.{\"foo.bar\": bar}", - "result": {"foo.bar": "bar"} - }, - { - "expression": "foo.{bar: bar, baz: baz}", - "result": {"bar": "bar", "baz": "baz"} - }, - { - "expression": "foo.{\"bar\": bar, \"baz\": baz}", - "result": {"bar": "bar", "baz": "baz"} - }, - { - "expression": "{\"baz\": baz, \"qux\\\"\": \"qux\\\"\"}", - "result": {"baz": 2, "qux\"": 3} - }, - { - "expression": "foo.{bar:bar,baz:baz}", - "result": {"bar": "bar", "baz": "baz"} - }, - { - "expression": "foo.{bar: bar,qux: qux}", - "result": {"bar": "bar", "qux": "qux"} - }, - { - "expression": "foo.{bar: bar, noexist: noexist}", - "result": {"bar": "bar", "noexist": null} - }, - { - "expression": "foo.{noexist: noexist, alsonoexist: alsonoexist}", - "result": {"noexist": null, "alsonoexist": null} - }, - { - "expression": "foo.badkey.{nokey: nokey, alsonokey: alsonokey}", - "result": null - }, - { - "expression": "foo.nested.*.{a: a,b: b}", - "result": [{"a": "first", "b": "second"}, - {"a": "first", "b": "second"}, - {"a": "first", "b": "second"}] - }, - { - "expression": "foo.nested.three.{a: a, cinner: c.inner}", - "result": {"a": "first", "cinner": "third"} - }, - { - "expression": "foo.nested.three.{a: a, c: c.inner.bad.key}", - "result": {"a": "first", "c": null} - }, - { - "expression": "foo.{a: nested.one.a, b: nested.two.b}", - "result": {"a": "first", "b": "second"} - }, - { - "expression": "{bar: bar, baz: baz}", - "result": {"bar": 1, "baz": 2} - }, - { - "expression": "{bar: bar}", - "result": {"bar": 1} - }, - { - "expression": "{otherkey: bar}", - "result": {"otherkey": 1} - }, - { - "expression": "{no: no, exist: exist}", - "result": {"no": null, "exist": null} - }, - { - "expression": "foo.[bar]", - "result": ["bar"] - }, - { - "expression": "foo.[bar,baz]", - "result": ["bar", "baz"] - }, - { - "expression": "foo.[bar,qux]", - "result": ["bar", "qux"] - }, - { - "expression": "foo.[bar,noexist]", - "result": ["bar", null] - }, - { - "expression": "foo.[noexist,alsonoexist]", - "result": [null, null] - } - ] -}, { - "given": { - "foo": {"bar": 1, "baz": [2, 3, 4]} - }, - "cases": [ - { - "expression": "foo.{bar:bar,baz:baz}", - "result": {"bar": 1, "baz": [2, 3, 4]} - }, - { - "expression": "foo.[bar,baz[0]]", - "result": [1, 2] - }, - { - "expression": "foo.[bar,baz[1]]", - "result": [1, 3] - }, - { - "expression": "foo.[bar,baz[2]]", - "result": [1, 4] - }, - { - "expression": "foo.[bar,baz[3]]", - "result": [1, null] - }, - { - "expression": "foo.[bar[0],baz[3]]", - "result": [null, null] - } - ] -}, { - "given": { - "foo": {"bar": 1, "baz": 2} - }, - "cases": [ - { - "expression": "foo.{bar: bar, baz: baz}", - "result": {"bar": 1, "baz": 2} - }, - { - "expression": "foo.[bar,baz]", - "result": [1, 2] - } - ] -}, { - "given": { - "foo": { - "bar": {"baz": [{"common": "first", "one": 1}, - {"common": "second", "two": 2}]}, - "ignoreme": 1, - "includeme": true - } - }, - "cases": [ - { - "expression": "foo.{bar: bar.baz[1],includeme: includeme}", - "result": {"bar": {"common": "second", "two": 2}, "includeme": true} - }, - { - "expression": "foo.{\"bar.baz.two\": bar.baz[1].two, includeme: includeme}", - "result": {"bar.baz.two": 2, "includeme": true} - }, - { - "expression": "foo.[includeme, bar.baz[*].common]", - "result": [true, ["first", "second"]] - }, - { - "expression": "foo.[includeme, bar.baz[*].none]", - "result": [true, []] - }, - { - "expression": "foo.[includeme, bar.baz[].common]", - "result": [true, ["first", "second"]] - } - ] -}, { - "given": { - "reservations": [{ - "instances": [ - {"id": "id1", - "name": "first"}, - {"id": "id2", - "name": "second"} - ]}, { - "instances": [ - {"id": "id3", - "name": "third"}, - {"id": "id4", - "name": "fourth"} - ]} - ]}, - "cases": [ - { - "expression": "reservations[*].instances[*].{id: id, name: name}", - "result": [[{"id": "id1", "name": "first"}, {"id": "id2", "name": "second"}], - [{"id": "id3", "name": "third"}, {"id": "id4", "name": "fourth"}]] - }, - { - "expression": "reservations[].instances[].{id: id, name: name}", - "result": [{"id": "id1", "name": "first"}, - {"id": "id2", "name": "second"}, - {"id": "id3", "name": "third"}, - {"id": "id4", "name": "fourth"}] - }, - { - "expression": "reservations[].instances[].[id, name]", - "result": [["id1", "first"], - ["id2", "second"], - ["id3", "third"], - ["id4", "fourth"]] - } - ] -}, -{ - "given": { - "foo": [{ - "bar": [ - { - "qux": 2, - "baz": 1 - }, - { - "qux": 4, - "baz": 3 - } - ] - }, - { - "bar": [ - { - "qux": 6, - "baz": 5 - }, - { - "qux": 8, - "baz": 7 - } - ] - } - ] - }, - "cases": [ - { - "expression": "foo", - "result": [{"bar": [{"qux": 2, "baz": 1}, {"qux": 4, "baz": 3}]}, - {"bar": [{"qux": 6, "baz": 5}, {"qux": 8, "baz": 7}]}] - }, - { - "expression": "foo[]", - "result": [{"bar": [{"qux": 2, "baz": 1}, {"qux": 4, "baz": 3}]}, - {"bar": [{"qux": 6, "baz": 5}, {"qux": 8, "baz": 7}]}] - }, - { - "expression": "foo[].bar", - "result": [[{"qux": 2, "baz": 1}, {"qux": 4, "baz": 3}], - [{"qux": 6, "baz": 5}, {"qux": 8, "baz": 7}]] - }, - { - "expression": "foo[].bar[]", - "result": [{"qux": 2, "baz": 1}, {"qux": 4, "baz": 3}, - {"qux": 6, "baz": 5}, {"qux": 8, "baz": 7}] - }, - { - "expression": "foo[].bar[].[baz, qux]", - "result": [[1, 2], [3, 4], [5, 6], [7, 8]] - }, - { - "expression": "foo[].bar[].[baz]", - "result": [[1], [3], [5], [7]] - }, - { - "expression": "foo[].bar[].[baz, qux][]", - "result": [1, 2, 3, 4, 5, 6, 7, 8] - } - ] -}, -{ - "given": { - "foo": { - "baz": [ - { - "bar": "abc" - }, { - "bar": "def" - } - ], - "qux": ["zero"] - } - }, - "cases": [ - { - "expression": "foo.[baz[*].bar, qux[0]]", - "result": [["abc", "def"], "zero"] - } - ] -}, -{ - "given": { - "foo": { - "baz": [ - { - "bar": "a", - "bam": "b", - "boo": "c" - }, { - "bar": "d", - "bam": "e", - "boo": "f" - } - ], - "qux": ["zero"] - } - }, - "cases": [ - { - "expression": "foo.[baz[*].[bar, boo], qux[0]]", - "result": [[["a", "c" ], ["d", "f" ]], "zero"] - } - ] -}, -{ - "given": { - "foo": { - "baz": [ - { - "bar": "a", - "bam": "b", - "boo": "c" - }, { - "bar": "d", - "bam": "e", - "boo": "f" - } - ], - "qux": ["zero"] - } - }, - "cases": [ - { - "expression": "foo.[baz[*].not_there || baz[*].bar, qux[0]]", - "result": [["a", "d"], "zero"] - } - ] -}, -{ - "given": {"type": "object"}, - "cases": [ - { - "comment": "Nested multiselect", - "expression": "[[*],*]", - "result": [null, ["object"]] - } - ] -}, -{ - "given": [], - "cases": [ - { - "comment": "Nested multiselect", - "expression": "[[*]]", - "result": [[]] - } - ] -} -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/ormatch.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/ormatch.json deleted file mode 100644 index 2127cf441..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/ormatch.json +++ /dev/null @@ -1,59 +0,0 @@ -[{ - "given": - {"outer": {"foo": "foo", "bar": "bar", "baz": "baz"}}, - "cases": [ - { - "expression": "outer.foo || outer.bar", - "result": "foo" - }, - { - "expression": "outer.foo||outer.bar", - "result": "foo" - }, - { - "expression": "outer.bar || outer.baz", - "result": "bar" - }, - { - "expression": "outer.bar||outer.baz", - "result": "bar" - }, - { - "expression": "outer.bad || outer.foo", - "result": "foo" - }, - { - "expression": "outer.bad||outer.foo", - "result": "foo" - }, - { - "expression": "outer.foo || outer.bad", - "result": "foo" - }, - { - "expression": "outer.foo||outer.bad", - "result": "foo" - }, - { - "expression": "outer.bad || outer.alsobad", - "result": null - }, - { - "expression": "outer.bad||outer.alsobad", - "result": null - } - ] -}, { - "given": - {"outer": {"foo": "foo", "bool": false, "empty_list": [], "empty_string": ""}}, - "cases": [ - { - "expression": "outer.empty_string || outer.foo", - "result": "foo" - }, - { - "expression": "outer.nokey || outer.bool || outer.empty_list || outer.empty_string || outer.foo", - "result": "foo" - } - ] -}] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/pipe.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/pipe.json deleted file mode 100644 index b10c0a496..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/pipe.json +++ /dev/null @@ -1,131 +0,0 @@ -[{ - "given": { - "foo": { - "bar": { - "baz": "subkey" - }, - "other": { - "baz": "subkey" - }, - "other2": { - "baz": "subkey" - }, - "other3": { - "notbaz": ["a", "b", "c"] - }, - "other4": { - "notbaz": ["a", "b", "c"] - } - } - }, - "cases": [ - { - "expression": "foo.*.baz | [0]", - "result": "subkey" - }, - { - "expression": "foo.*.baz | [1]", - "result": "subkey" - }, - { - "expression": "foo.*.baz | [2]", - "result": "subkey" - }, - { - "expression": "foo.bar.* | [0]", - "result": "subkey" - }, - { - "expression": "foo.*.notbaz | [*]", - "result": [["a", "b", "c"], ["a", "b", "c"]] - }, - { - "expression": "{\"a\": foo.bar, \"b\": foo.other} | *.baz", - "result": ["subkey", "subkey"] - } - ] -}, { - "given": { - "foo": { - "bar": { - "baz": "one" - }, - "other": { - "baz": "two" - }, - "other2": { - "baz": "three" - }, - "other3": { - "notbaz": ["a", "b", "c"] - }, - "other4": { - "notbaz": ["d", "e", "f"] - } - } - }, - "cases": [ - { - "expression": "foo | bar", - "result": {"baz": "one"} - }, - { - "expression": "foo | bar | baz", - "result": "one" - }, - { - "expression": "foo|bar| baz", - "result": "one" - }, - { - "expression": "not_there | [0]", - "result": null - }, - { - "expression": "not_there | [0]", - "result": null - }, - { - "expression": "[foo.bar, foo.other] | [0]", - "result": {"baz": "one"} - }, - { - "expression": "{\"a\": foo.bar, \"b\": foo.other} | a", - "result": {"baz": "one"} - }, - { - "expression": "{\"a\": foo.bar, \"b\": foo.other} | b", - "result": {"baz": "two"} - }, - { - "expression": "foo.bam || foo.bar | baz", - "result": "one" - }, - { - "expression": "foo | not_there || bar", - "result": {"baz": "one"} - } - ] -}, { - "given": { - "foo": [{ - "bar": [{ - "baz": "one" - }, { - "baz": "two" - }] - }, { - "bar": [{ - "baz": "three" - }, { - "baz": "four" - }] - }] - }, - "cases": [ - { - "expression": "foo[*].bar[*] | [0][0]", - "result": {"baz": "one"} - } - ] -}] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/slice.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/slice.json deleted file mode 100644 index 359477278..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/slice.json +++ /dev/null @@ -1,187 +0,0 @@ -[{ - "given": { - "foo": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], - "bar": { - "baz": 1 - } - }, - "cases": [ - { - "expression": "bar[0:10]", - "result": null - }, - { - "expression": "foo[0:10:1]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[0:10]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[0:10:]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[0::1]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[0::]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[0:]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[:10:1]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[::1]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[:10:]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[::]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[:]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[1:9]", - "result": [1, 2, 3, 4, 5, 6, 7, 8] - }, - { - "expression": "foo[0:10:2]", - "result": [0, 2, 4, 6, 8] - }, - { - "expression": "foo[5:]", - "result": [5, 6, 7, 8, 9] - }, - { - "expression": "foo[5::2]", - "result": [5, 7, 9] - }, - { - "expression": "foo[::2]", - "result": [0, 2, 4, 6, 8] - }, - { - "expression": "foo[::-1]", - "result": [9, 8, 7, 6, 5, 4, 3, 2, 1, 0] - }, - { - "expression": "foo[1::2]", - "result": [1, 3, 5, 7, 9] - }, - { - "expression": "foo[10:0:-1]", - "result": [9, 8, 7, 6, 5, 4, 3, 2, 1] - }, - { - "expression": "foo[10:5:-1]", - "result": [9, 8, 7, 6] - }, - { - "expression": "foo[8:2:-2]", - "result": [8, 6, 4] - }, - { - "expression": "foo[0:20]", - "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - }, - { - "expression": "foo[10:-20:-1]", - "result": [9, 8, 7, 6, 5, 4, 3, 2, 1, 0] - }, - { - "expression": "foo[10:-20]", - "result": [] - }, - { - "expression": "foo[-4:-1]", - "result": [6, 7, 8] - }, - { - "expression": "foo[:-5:-1]", - "result": [9, 8, 7, 6] - }, - { - "expression": "foo[8:2:0]", - "error": "invalid-value" - }, - { - "expression": "foo[8:2:0:1]", - "error": "syntax" - }, - { - "expression": "foo[8:2&]", - "error": "syntax" - }, - { - "expression": "foo[2:a:3]", - "error": "syntax" - } - ] -}, { - "given": { - "foo": [{"a": 1}, {"a": 2}, {"a": 3}], - "bar": [{"a": {"b": 1}}, {"a": {"b": 2}}, - {"a": {"b": 3}}], - "baz": 50 - }, - "cases": [ - { - "expression": "foo[:2].a", - "result": [1, 2] - }, - { - "expression": "foo[:2].b", - "result": [] - }, - { - "expression": "foo[:2].a.b", - "result": [] - }, - { - "expression": "bar[::-1].a.b", - "result": [3, 2, 1] - }, - { - "expression": "bar[:2].a.b", - "result": [1, 2] - }, - { - "expression": "baz[:2].a", - "result": null - } - ] -}, { - "given": [{"a": 1}, {"a": 2}, {"a": 3}], - "cases": [ - { - "expression": "[:]", - "result": [{"a": 1}, {"a": 2}, {"a": 3}] - }, - { - "expression": "[:2].a", - "result": [1, 2] - }, - { - "expression": "[::-1].a", - "result": [3, 2, 1] - }, - { - "expression": "[:2].b", - "result": [] - } - ] -}] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/syntax.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/syntax.json deleted file mode 100644 index 003c29458..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/syntax.json +++ /dev/null @@ -1,616 +0,0 @@ -[{ - "comment": "Dot syntax", - "given": {"type": "object"}, - "cases": [ - { - "expression": "foo.bar", - "result": null - }, - { - "expression": "foo.1", - "error": "syntax" - }, - { - "expression": "foo.-11", - "error": "syntax" - }, - { - "expression": "foo", - "result": null - }, - { - "expression": "foo.", - "error": "syntax" - }, - { - "expression": "foo.", - "error": "syntax" - }, - { - "expression": ".foo", - "error": "syntax" - }, - { - "expression": "foo..bar", - "error": "syntax" - }, - { - "expression": "foo.bar.", - "error": "syntax" - }, - { - "expression": "foo[.]", - "error": "syntax" - } - ] -}, - { - "comment": "Simple token errors", - "given": {"type": "object"}, - "cases": [ - { - "expression": ".", - "error": "syntax" - }, - { - "expression": ":", - "error": "syntax" - }, - { - "expression": ",", - "error": "syntax" - }, - { - "expression": "]", - "error": "syntax" - }, - { - "expression": "[", - "error": "syntax" - }, - { - "expression": "}", - "error": "syntax" - }, - { - "expression": "{", - "error": "syntax" - }, - { - "expression": ")", - "error": "syntax" - }, - { - "expression": "(", - "error": "syntax" - }, - { - "expression": "((&", - "error": "syntax" - }, - { - "expression": "a[", - "error": "syntax" - }, - { - "expression": "a]", - "error": "syntax" - }, - { - "expression": "a][", - "error": "syntax" - }, - { - "expression": "!", - "error": "syntax" - } - ] - }, - { - "comment": "Boolean syntax errors", - "given": {"type": "object"}, - "cases": [ - { - "expression": "![!(!", - "error": "syntax" - } - ] - }, - { - "comment": "Wildcard syntax", - "given": {"type": "object"}, - "cases": [ - { - "expression": "*", - "result": ["object"] - }, - { - "expression": "*.*", - "result": [] - }, - { - "expression": "*.foo", - "result": [] - }, - { - "expression": "*[0]", - "result": [] - }, - { - "expression": ".*", - "error": "syntax" - }, - { - "expression": "*foo", - "error": "syntax" - }, - { - "expression": "*0", - "error": "syntax" - }, - { - "expression": "foo[*]bar", - "error": "syntax" - }, - { - "expression": "foo[*]*", - "error": "syntax" - } - ] - }, - { - "comment": "Flatten syntax", - "given": {"type": "object"}, - "cases": [ - { - "expression": "[]", - "result": null - } - ] - }, - { - "comment": "Simple bracket syntax", - "given": {"type": "object"}, - "cases": [ - { - "expression": "[0]", - "result": null - }, - { - "expression": "[*]", - "result": null - }, - { - "expression": "*.[0]", - "error": "syntax" - }, - { - "expression": "*.[\"0\"]", - "result": [[null]] - }, - { - "expression": "[*].bar", - "result": null - }, - { - "expression": "[*][0]", - "result": null - }, - { - "expression": "foo[#]", - "error": "syntax" - } - ] - }, - { - "comment": "Multi-select list syntax", - "given": {"type": "object"}, - "cases": [ - { - "expression": "foo[0]", - "result": null - }, - { - "comment": "Valid multi-select of a list", - "expression": "foo[0, 1]", - "error": "syntax" - }, - { - "expression": "foo.[0]", - "error": "syntax" - }, - { - "expression": "foo.[*]", - "result": null - }, - { - "comment": "Multi-select of a list with trailing comma", - "expression": "foo[0, ]", - "error": "syntax" - }, - { - "comment": "Multi-select of a list with trailing comma and no close", - "expression": "foo[0,", - "error": "syntax" - }, - { - "comment": "Multi-select of a list with trailing comma and no close", - "expression": "foo.[a", - "error": "syntax" - }, - { - "comment": "Multi-select of a list with extra comma", - "expression": "foo[0,, 1]", - "error": "syntax" - }, - { - "comment": "Multi-select of a list using an identifier index", - "expression": "foo[abc]", - "error": "syntax" - }, - { - "comment": "Multi-select of a list using identifier indices", - "expression": "foo[abc, def]", - "error": "syntax" - }, - { - "comment": "Multi-select of a list using an identifier index", - "expression": "foo[abc, 1]", - "error": "syntax" - }, - { - "comment": "Multi-select of a list using an identifier index with trailing comma", - "expression": "foo[abc, ]", - "error": "syntax" - }, - { - "comment": "Valid multi-select of a hash using an identifier index", - "expression": "foo.[abc]", - "result": null - }, - { - "comment": "Valid multi-select of a hash", - "expression": "foo.[abc, def]", - "result": null - }, - { - "comment": "Multi-select of a hash using a numeric index", - "expression": "foo.[abc, 1]", - "error": "syntax" - }, - { - "comment": "Multi-select of a hash with a trailing comma", - "expression": "foo.[abc, ]", - "error": "syntax" - }, - { - "comment": "Multi-select of a hash with extra commas", - "expression": "foo.[abc,, def]", - "error": "syntax" - }, - { - "comment": "Multi-select of a hash using number indices", - "expression": "foo.[0, 1]", - "error": "syntax" - } - ] - }, - { - "comment": "Multi-select hash syntax", - "given": {"type": "object"}, - "cases": [ - { - "comment": "No key or value", - "expression": "a{}", - "error": "syntax" - }, - { - "comment": "No closing token", - "expression": "a{", - "error": "syntax" - }, - { - "comment": "Not a key value pair", - "expression": "a{foo}", - "error": "syntax" - }, - { - "comment": "Missing value and closing character", - "expression": "a{foo:", - "error": "syntax" - }, - { - "comment": "Missing closing character", - "expression": "a{foo: 0", - "error": "syntax" - }, - { - "comment": "Missing value", - "expression": "a{foo:}", - "error": "syntax" - }, - { - "comment": "Trailing comma and no closing character", - "expression": "a{foo: 0, ", - "error": "syntax" - }, - { - "comment": "Missing value with trailing comma", - "expression": "a{foo: ,}", - "error": "syntax" - }, - { - "comment": "Accessing Array using an identifier", - "expression": "a{foo: bar}", - "error": "syntax" - }, - { - "expression": "a{foo: 0}", - "error": "syntax" - }, - { - "comment": "Missing key-value pair", - "expression": "a.{}", - "error": "syntax" - }, - { - "comment": "Not a key-value pair", - "expression": "a.{foo}", - "error": "syntax" - }, - { - "comment": "Missing value", - "expression": "a.{foo:}", - "error": "syntax" - }, - { - "comment": "Missing value with trailing comma", - "expression": "a.{foo: ,}", - "error": "syntax" - }, - { - "comment": "Valid multi-select hash extraction", - "expression": "a.{foo: bar}", - "result": null - }, - { - "comment": "Valid multi-select hash extraction", - "expression": "a.{foo: bar, baz: bam}", - "result": null - }, - { - "comment": "Trailing comma", - "expression": "a.{foo: bar, }", - "error": "syntax" - }, - { - "comment": "Missing key in second key-value pair", - "expression": "a.{foo: bar, baz}", - "error": "syntax" - }, - { - "comment": "Missing value in second key-value pair", - "expression": "a.{foo: bar, baz:}", - "error": "syntax" - }, - { - "comment": "Trailing comma", - "expression": "a.{foo: bar, baz: bam, }", - "error": "syntax" - }, - { - "comment": "Nested multi select", - "expression": "{\"\\\\\":{\" \":*}}", - "result": {"\\": {" ": ["object"]}} - } - ] - }, - { - "comment": "Or expressions", - "given": {"type": "object"}, - "cases": [ - { - "expression": "foo || bar", - "result": null - }, - { - "expression": "foo ||", - "error": "syntax" - }, - { - "expression": "foo.|| bar", - "error": "syntax" - }, - { - "expression": " || foo", - "error": "syntax" - }, - { - "expression": "foo || || foo", - "error": "syntax" - }, - { - "expression": "foo.[a || b]", - "result": null - }, - { - "expression": "foo.[a ||]", - "error": "syntax" - }, - { - "expression": "\"foo", - "error": "syntax" - } - ] - }, - { - "comment": "Filter expressions", - "given": {"type": "object"}, - "cases": [ - { - "expression": "foo[?bar==`\"baz\"`]", - "result": null - }, - { - "expression": "foo[? bar == `\"baz\"` ]", - "result": null - }, - { - "expression": "foo[ ?bar==`\"baz\"`]", - "error": "syntax" - }, - { - "expression": "foo[?bar==]", - "error": "syntax" - }, - { - "expression": "foo[?==]", - "error": "syntax" - }, - { - "expression": "foo[?==bar]", - "error": "syntax" - }, - { - "expression": "foo[?bar==baz?]", - "error": "syntax" - }, - { - "expression": "foo[?a.b.c==d.e.f]", - "result": null - }, - { - "expression": "foo[?bar==`[0, 1, 2]`]", - "result": null - }, - { - "expression": "foo[?bar==`[\"a\", \"b\", \"c\"]`]", - "result": null - }, - { - "comment": "Literal char not escaped", - "expression": "foo[?bar==`[\"foo`bar\"]`]", - "error": "syntax" - }, - { - "comment": "Literal char escaped", - "expression": "foo[?bar==`[\"foo\\`bar\"]`]", - "result": null - }, - { - "comment": "Unknown comparator", - "expression": "foo[?bar<>baz]", - "error": "syntax" - }, - { - "comment": "Unknown comparator", - "expression": "foo[?bar^baz]", - "error": "syntax" - }, - { - "expression": "foo[bar==baz]", - "error": "syntax" - }, - { - "comment": "Quoted identifier in filter expression no spaces", - "expression": "[?\"\\\\\">`\"foo\"`]", - "result": null - }, - { - "comment": "Quoted identifier in filter expression with spaces", - "expression": "[?\"\\\\\" > `\"foo\"`]", - "result": null - } - ] - }, - { - "comment": "Filter expression errors", - "given": {"type": "object"}, - "cases": [ - { - "expression": "bar.`\"anything\"`", - "error": "syntax" - }, - { - "expression": "bar.baz.noexists.`\"literal\"`", - "error": "syntax" - }, - { - "comment": "Literal wildcard projection", - "expression": "foo[*].`\"literal\"`", - "error": "syntax" - }, - { - "expression": "foo[*].name.`\"literal\"`", - "error": "syntax" - }, - { - "expression": "foo[].name.`\"literal\"`", - "error": "syntax" - }, - { - "expression": "foo[].name.`\"literal\"`.`\"subliteral\"`", - "error": "syntax" - }, - { - "comment": "Projecting a literal onto an empty list", - "expression": "foo[*].name.noexist.`\"literal\"`", - "error": "syntax" - }, - { - "expression": "foo[].name.noexist.`\"literal\"`", - "error": "syntax" - }, - { - "expression": "twolen[*].`\"foo\"`", - "error": "syntax" - }, - { - "comment": "Two level projection of a literal", - "expression": "twolen[*].threelen[*].`\"bar\"`", - "error": "syntax" - }, - { - "comment": "Two level flattened projection of a literal", - "expression": "twolen[].threelen[].`\"bar\"`", - "error": "syntax" - } - ] - }, - { - "comment": "Identifiers", - "given": {"type": "object"}, - "cases": [ - { - "expression": "foo", - "result": null - }, - { - "expression": "\"foo\"", - "result": null - }, - { - "expression": "\"\\\\\"", - "result": null - } - ] - }, - { - "comment": "Combined syntax", - "given": [], - "cases": [ - { - "expression": "*||*|*|*", - "result": null - }, - { - "expression": "*[]||[*]", - "result": [] - }, - { - "expression": "[*.*]", - "result": [null] - } - ] - } -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/unicode.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/unicode.json deleted file mode 100644 index 6b07b0b6d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/unicode.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "given": {"foo": [{"✓": "✓"}, {"✓": "✗"}]}, - "cases": [ - { - "expression": "foo[].\"✓\"", - "result": ["✓", "✗"] - } - ] - }, - { - "given": {"☯": true}, - "cases": [ - { - "expression": "\"☯\"", - "result": true - } - ] - }, - { - "given": {"♪♫•*¨*•.¸¸❤¸¸.•*¨*•♫♪": true}, - "cases": [ - { - "expression": "\"♪♫•*¨*•.¸¸❤¸¸.•*¨*•♫♪\"", - "result": true - } - ] - }, - { - "given": {"☃": true}, - "cases": [ - { - "expression": "\"☃\"", - "result": true - } - ] - } -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/wildcard.json b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/wildcard.json deleted file mode 100644 index 3bcec3028..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance/wildcard.json +++ /dev/null @@ -1,460 +0,0 @@ -[{ - "given": { - "foo": { - "bar": { - "baz": "val" - }, - "other": { - "baz": "val" - }, - "other2": { - "baz": "val" - }, - "other3": { - "notbaz": ["a", "b", "c"] - }, - "other4": { - "notbaz": ["a", "b", "c"] - }, - "other5": { - "other": { - "a": 1, - "b": 1, - "c": 1 - } - } - } - }, - "cases": [ - { - "expression": "foo.*.baz", - "result": ["val", "val", "val"] - }, - { - "expression": "foo.bar.*", - "result": ["val"] - }, - { - "expression": "foo.*.notbaz", - "result": [["a", "b", "c"], ["a", "b", "c"]] - }, - { - "expression": "foo.*.notbaz[0]", - "result": ["a", "a"] - }, - { - "expression": "foo.*.notbaz[-1]", - "result": ["c", "c"] - } - ] -}, { - "given": { - "foo": { - "first-1": { - "second-1": "val" - }, - "first-2": { - "second-1": "val" - }, - "first-3": { - "second-1": "val" - } - } - }, - "cases": [ - { - "expression": "foo.*", - "result": [{"second-1": "val"}, {"second-1": "val"}, - {"second-1": "val"}] - }, - { - "expression": "foo.*.*", - "result": [["val"], ["val"], ["val"]] - }, - { - "expression": "foo.*.*.*", - "result": [[], [], []] - }, - { - "expression": "foo.*.*.*.*", - "result": [[], [], []] - } - ] -}, { - "given": { - "foo": { - "bar": "one" - }, - "other": { - "bar": "one" - }, - "nomatch": { - "notbar": "three" - } - }, - "cases": [ - { - "expression": "*.bar", - "result": ["one", "one"] - } - ] -}, { - "given": { - "top1": { - "sub1": {"foo": "one"} - }, - "top2": { - "sub1": {"foo": "one"} - } - }, - "cases": [ - { - "expression": "*", - "result": [{"sub1": {"foo": "one"}}, - {"sub1": {"foo": "one"}}] - }, - { - "expression": "*.sub1", - "result": [{"foo": "one"}, - {"foo": "one"}] - }, - { - "expression": "*.*", - "result": [[{"foo": "one"}], - [{"foo": "one"}]] - }, - { - "expression": "*.*.foo[]", - "result": ["one", "one"] - }, - { - "expression": "*.sub1.foo", - "result": ["one", "one"] - } - ] -}, -{ - "given": - {"foo": [{"bar": "one"}, {"bar": "two"}, {"bar": "three"}, {"notbar": "four"}]}, - "cases": [ - { - "expression": "foo[*].bar", - "result": ["one", "two", "three"] - }, - { - "expression": "foo[*].notbar", - "result": ["four"] - } - ] -}, -{ - "given": - [{"bar": "one"}, {"bar": "two"}, {"bar": "three"}, {"notbar": "four"}], - "cases": [ - { - "expression": "[*]", - "result": [{"bar": "one"}, {"bar": "two"}, {"bar": "three"}, {"notbar": "four"}] - }, - { - "expression": "[*].bar", - "result": ["one", "two", "three"] - }, - { - "expression": "[*].notbar", - "result": ["four"] - } - ] -}, -{ - "given": { - "foo": { - "bar": [ - {"baz": ["one", "two", "three"]}, - {"baz": ["four", "five", "six"]}, - {"baz": ["seven", "eight", "nine"]} - ] - } - }, - "cases": [ - { - "expression": "foo.bar[*].baz", - "result": [["one", "two", "three"], ["four", "five", "six"], ["seven", "eight", "nine"]] - }, - { - "expression": "foo.bar[*].baz[0]", - "result": ["one", "four", "seven"] - }, - { - "expression": "foo.bar[*].baz[1]", - "result": ["two", "five", "eight"] - }, - { - "expression": "foo.bar[*].baz[2]", - "result": ["three", "six", "nine"] - }, - { - "expression": "foo.bar[*].baz[3]", - "result": [] - } - ] -}, -{ - "given": { - "foo": { - "bar": [["one", "two"], ["three", "four"]] - } - }, - "cases": [ - { - "expression": "foo.bar[*]", - "result": [["one", "two"], ["three", "four"]] - }, - { - "expression": "foo.bar[0]", - "result": ["one", "two"] - }, - { - "expression": "foo.bar[0][0]", - "result": "one" - }, - { - "expression": "foo.bar[0][0][0]", - "result": null - }, - { - "expression": "foo.bar[0][0][0][0]", - "result": null - }, - { - "expression": "foo[0][0]", - "result": null - } - ] -}, -{ - "given": { - "foo": [ - {"bar": [{"kind": "basic"}, {"kind": "intermediate"}]}, - {"bar": [{"kind": "advanced"}, {"kind": "expert"}]}, - {"bar": "string"} - ] - - }, - "cases": [ - { - "expression": "foo[*].bar[*].kind", - "result": [["basic", "intermediate"], ["advanced", "expert"]] - }, - { - "expression": "foo[*].bar[0].kind", - "result": ["basic", "advanced"] - } - ] -}, -{ - "given": { - "foo": [ - {"bar": {"kind": "basic"}}, - {"bar": {"kind": "intermediate"}}, - {"bar": {"kind": "advanced"}}, - {"bar": {"kind": "expert"}}, - {"bar": "string"} - ] - }, - "cases": [ - { - "expression": "foo[*].bar.kind", - "result": ["basic", "intermediate", "advanced", "expert"] - } - ] -}, -{ - "given": { - "foo": [{"bar": ["one", "two"]}, {"bar": ["three", "four"]}, {"bar": ["five"]}] - }, - "cases": [ - { - "expression": "foo[*].bar[0]", - "result": ["one", "three", "five"] - }, - { - "expression": "foo[*].bar[1]", - "result": ["two", "four"] - }, - { - "expression": "foo[*].bar[2]", - "result": [] - } - ] -}, -{ - "given": { - "foo": [{"bar": []}, {"bar": []}, {"bar": []}] - }, - "cases": [ - { - "expression": "foo[*].bar[0]", - "result": [] - } - ] -}, -{ - "given": { - "foo": [["one", "two"], ["three", "four"], ["five"]] - }, - "cases": [ - { - "expression": "foo[*][0]", - "result": ["one", "three", "five"] - }, - { - "expression": "foo[*][1]", - "result": ["two", "four"] - } - ] -}, -{ - "given": { - "foo": [ - [ - ["one", "two"], ["three", "four"] - ], [ - ["five", "six"], ["seven", "eight"] - ], [ - ["nine"], ["ten"] - ] - ] - }, - "cases": [ - { - "expression": "foo[*][0]", - "result": [["one", "two"], ["five", "six"], ["nine"]] - }, - { - "expression": "foo[*][1]", - "result": [["three", "four"], ["seven", "eight"], ["ten"]] - }, - { - "expression": "foo[*][0][0]", - "result": ["one", "five", "nine"] - }, - { - "expression": "foo[*][1][0]", - "result": ["three", "seven", "ten"] - }, - { - "expression": "foo[*][0][1]", - "result": ["two", "six"] - }, - { - "expression": "foo[*][1][1]", - "result": ["four", "eight"] - }, - { - "expression": "foo[*][2]", - "result": [] - }, - { - "expression": "foo[*][2][2]", - "result": [] - }, - { - "expression": "bar[*]", - "result": null - }, - { - "expression": "bar[*].baz[*]", - "result": null - } - ] -}, -{ - "given": { - "string": "string", - "hash": {"foo": "bar", "bar": "baz"}, - "number": 23, - "nullvalue": null - }, - "cases": [ - { - "expression": "string[*]", - "result": null - }, - { - "expression": "hash[*]", - "result": null - }, - { - "expression": "number[*]", - "result": null - }, - { - "expression": "nullvalue[*]", - "result": null - }, - { - "expression": "string[*].foo", - "result": null - }, - { - "expression": "hash[*].foo", - "result": null - }, - { - "expression": "number[*].foo", - "result": null - }, - { - "expression": "nullvalue[*].foo", - "result": null - }, - { - "expression": "nullvalue[*].foo[*].bar", - "result": null - } - ] -}, -{ - "given": { - "string": "string", - "hash": {"foo": "val", "bar": "val"}, - "number": 23, - "array": [1, 2, 3], - "nullvalue": null - }, - "cases": [ - { - "expression": "string.*", - "result": null - }, - { - "expression": "hash.*", - "result": ["val", "val"] - }, - { - "expression": "number.*", - "result": null - }, - { - "expression": "array.*", - "result": null - }, - { - "expression": "nullvalue.*", - "result": null - } - ] -}, -{ - "given": { - "a": [0, 1, 2], - "b": [0, 1, 2] - }, - "cases": [ - { - "expression": "*[0]", - "result": [0, 0] - } - ] -} -] diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance_test.go deleted file mode 100644 index 4ee9c959d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/compliance_test.go +++ /dev/null @@ -1,123 +0,0 @@ -package jmespath - -import ( - "encoding/json" - "fmt" - "io/ioutil" - "os" - "path/filepath" - "testing" - - "github.com/stretchr/testify/assert" -) - -type TestSuite struct { - Given interface{} - TestCases []TestCase `json:"cases"` - Comment string -} -type TestCase struct { - Comment string - Expression string - Result interface{} - Error string -} - -var whiteListed = []string{ - "compliance/basic.json", - "compliance/current.json", - "compliance/escape.json", - "compliance/filters.json", - "compliance/functions.json", - "compliance/identifiers.json", - "compliance/indices.json", - "compliance/literal.json", - "compliance/multiselect.json", - "compliance/ormatch.json", - "compliance/pipe.json", - "compliance/slice.json", - "compliance/syntax.json", - "compliance/unicode.json", - "compliance/wildcard.json", - "compliance/boolean.json", -} - -func allowed(path string) bool { - for _, el := range whiteListed { - if el == path { - return true - } - } - return false -} - -func TestCompliance(t *testing.T) { - assert := assert.New(t) - - var complianceFiles []string - err := filepath.Walk("compliance", func(path string, _ os.FileInfo, _ error) error { - //if strings.HasSuffix(path, ".json") { - if allowed(path) { - complianceFiles = append(complianceFiles, path) - } - return nil - }) - if assert.Nil(err) { - for _, filename := range complianceFiles { - runComplianceTest(assert, filename) - } - } -} - -func runComplianceTest(assert *assert.Assertions, filename string) { - var testSuites []TestSuite - data, err := ioutil.ReadFile(filename) - if assert.Nil(err) { - err := json.Unmarshal(data, &testSuites) - if assert.Nil(err) { - for _, testsuite := range testSuites { - runTestSuite(assert, testsuite, filename) - } - } - } -} - -func runTestSuite(assert *assert.Assertions, testsuite TestSuite, filename string) { - for _, testcase := range testsuite.TestCases { - if testcase.Error != "" { - // This is a test case that verifies we error out properly. - runSyntaxTestCase(assert, testsuite.Given, testcase, filename) - } else { - runTestCase(assert, testsuite.Given, testcase, filename) - } - } -} - -func runSyntaxTestCase(assert *assert.Assertions, given interface{}, testcase TestCase, filename string) { - // Anything with an .Error means that we expect that JMESPath should return - // an error when we try to evaluate the expression. - _, err := Search(testcase.Expression, given) - assert.NotNil(err, fmt.Sprintf("Expression: %s", testcase.Expression)) -} - -func runTestCase(assert *assert.Assertions, given interface{}, testcase TestCase, filename string) { - lexer := NewLexer() - var err error - _, err = lexer.tokenize(testcase.Expression) - if err != nil { - errMsg := fmt.Sprintf("(%s) Could not lex expression: %s -- %s", filename, testcase.Expression, err.Error()) - assert.Fail(errMsg) - return - } - parser := NewParser() - _, err = parser.Parse(testcase.Expression) - if err != nil { - errMsg := fmt.Sprintf("(%s) Could not parse expression: %s -- %s", filename, testcase.Expression, err.Error()) - assert.Fail(errMsg) - return - } - actual, err := Search(testcase.Expression, given) - if assert.Nil(err, fmt.Sprintf("Expression: %s", testcase.Expression)) { - assert.Equal(testcase.Result, actual, fmt.Sprintf("Expression: %s", testcase.Expression)) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/functions.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/functions.go deleted file mode 100644 index 9b7cd89b4..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/functions.go +++ /dev/null @@ -1,842 +0,0 @@ -package jmespath - -import ( - "encoding/json" - "errors" - "fmt" - "math" - "reflect" - "sort" - "strconv" - "strings" - "unicode/utf8" -) - -type jpFunction func(arguments []interface{}) (interface{}, error) - -type jpType string - -const ( - jpUnknown jpType = "unknown" - jpNumber jpType = "number" - jpString jpType = "string" - jpArray jpType = "array" - jpObject jpType = "object" - jpArrayNumber jpType = "array[number]" - jpArrayString jpType = "array[string]" - jpExpref jpType = "expref" - jpAny jpType = "any" -) - -type functionEntry struct { - name string - arguments []argSpec - handler jpFunction - hasExpRef bool -} - -type argSpec struct { - types []jpType - variadic bool -} - -type byExprString struct { - intr *treeInterpreter - node ASTNode - items []interface{} - hasError bool -} - -func (a *byExprString) Len() int { - return len(a.items) -} -func (a *byExprString) Swap(i, j int) { - a.items[i], a.items[j] = a.items[j], a.items[i] -} -func (a *byExprString) Less(i, j int) bool { - first, err := a.intr.Execute(a.node, a.items[i]) - if err != nil { - a.hasError = true - // Return a dummy value. - return true - } - ith, ok := first.(string) - if !ok { - a.hasError = true - return true - } - second, err := a.intr.Execute(a.node, a.items[j]) - if err != nil { - a.hasError = true - // Return a dummy value. - return true - } - jth, ok := second.(string) - if !ok { - a.hasError = true - return true - } - return ith < jth -} - -type byExprFloat struct { - intr *treeInterpreter - node ASTNode - items []interface{} - hasError bool -} - -func (a *byExprFloat) Len() int { - return len(a.items) -} -func (a *byExprFloat) Swap(i, j int) { - a.items[i], a.items[j] = a.items[j], a.items[i] -} -func (a *byExprFloat) Less(i, j int) bool { - first, err := a.intr.Execute(a.node, a.items[i]) - if err != nil { - a.hasError = true - // Return a dummy value. - return true - } - ith, ok := first.(float64) - if !ok { - a.hasError = true - return true - } - second, err := a.intr.Execute(a.node, a.items[j]) - if err != nil { - a.hasError = true - // Return a dummy value. - return true - } - jth, ok := second.(float64) - if !ok { - a.hasError = true - return true - } - return ith < jth -} - -type functionCaller struct { - functionTable map[string]functionEntry -} - -func newFunctionCaller() *functionCaller { - caller := &functionCaller{} - caller.functionTable = map[string]functionEntry{ - "length": { - name: "length", - arguments: []argSpec{ - {types: []jpType{jpString, jpArray, jpObject}}, - }, - handler: jpfLength, - }, - "starts_with": { - name: "starts_with", - arguments: []argSpec{ - {types: []jpType{jpString}}, - {types: []jpType{jpString}}, - }, - handler: jpfStartsWith, - }, - "abs": { - name: "abs", - arguments: []argSpec{ - {types: []jpType{jpNumber}}, - }, - handler: jpfAbs, - }, - "avg": { - name: "avg", - arguments: []argSpec{ - {types: []jpType{jpArrayNumber}}, - }, - handler: jpfAvg, - }, - "ceil": { - name: "ceil", - arguments: []argSpec{ - {types: []jpType{jpNumber}}, - }, - handler: jpfCeil, - }, - "contains": { - name: "contains", - arguments: []argSpec{ - {types: []jpType{jpArray, jpString}}, - {types: []jpType{jpAny}}, - }, - handler: jpfContains, - }, - "ends_with": { - name: "ends_with", - arguments: []argSpec{ - {types: []jpType{jpString}}, - {types: []jpType{jpString}}, - }, - handler: jpfEndsWith, - }, - "floor": { - name: "floor", - arguments: []argSpec{ - {types: []jpType{jpNumber}}, - }, - handler: jpfFloor, - }, - "map": { - name: "amp", - arguments: []argSpec{ - {types: []jpType{jpExpref}}, - {types: []jpType{jpArray}}, - }, - handler: jpfMap, - hasExpRef: true, - }, - "max": { - name: "max", - arguments: []argSpec{ - {types: []jpType{jpArrayNumber, jpArrayString}}, - }, - handler: jpfMax, - }, - "merge": { - name: "merge", - arguments: []argSpec{ - {types: []jpType{jpObject}, variadic: true}, - }, - handler: jpfMerge, - }, - "max_by": { - name: "max_by", - arguments: []argSpec{ - {types: []jpType{jpArray}}, - {types: []jpType{jpExpref}}, - }, - handler: jpfMaxBy, - hasExpRef: true, - }, - "sum": { - name: "sum", - arguments: []argSpec{ - {types: []jpType{jpArrayNumber}}, - }, - handler: jpfSum, - }, - "min": { - name: "min", - arguments: []argSpec{ - {types: []jpType{jpArrayNumber, jpArrayString}}, - }, - handler: jpfMin, - }, - "min_by": { - name: "min_by", - arguments: []argSpec{ - {types: []jpType{jpArray}}, - {types: []jpType{jpExpref}}, - }, - handler: jpfMinBy, - hasExpRef: true, - }, - "type": { - name: "type", - arguments: []argSpec{ - {types: []jpType{jpAny}}, - }, - handler: jpfType, - }, - "keys": { - name: "keys", - arguments: []argSpec{ - {types: []jpType{jpObject}}, - }, - handler: jpfKeys, - }, - "values": { - name: "values", - arguments: []argSpec{ - {types: []jpType{jpObject}}, - }, - handler: jpfValues, - }, - "sort": { - name: "sort", - arguments: []argSpec{ - {types: []jpType{jpArrayString, jpArrayNumber}}, - }, - handler: jpfSort, - }, - "sort_by": { - name: "sort_by", - arguments: []argSpec{ - {types: []jpType{jpArray}}, - {types: []jpType{jpExpref}}, - }, - handler: jpfSortBy, - hasExpRef: true, - }, - "join": { - name: "join", - arguments: []argSpec{ - {types: []jpType{jpString}}, - {types: []jpType{jpArrayString}}, - }, - handler: jpfJoin, - }, - "reverse": { - name: "reverse", - arguments: []argSpec{ - {types: []jpType{jpArray, jpString}}, - }, - handler: jpfReverse, - }, - "to_array": { - name: "to_array", - arguments: []argSpec{ - {types: []jpType{jpAny}}, - }, - handler: jpfToArray, - }, - "to_string": { - name: "to_string", - arguments: []argSpec{ - {types: []jpType{jpAny}}, - }, - handler: jpfToString, - }, - "to_number": { - name: "to_number", - arguments: []argSpec{ - {types: []jpType{jpAny}}, - }, - handler: jpfToNumber, - }, - "not_null": { - name: "not_null", - arguments: []argSpec{ - {types: []jpType{jpAny}, variadic: true}, - }, - handler: jpfNotNull, - }, - } - return caller -} - -func (e *functionEntry) resolveArgs(arguments []interface{}) ([]interface{}, error) { - if len(e.arguments) == 0 { - return arguments, nil - } - if !e.arguments[len(e.arguments)-1].variadic { - if len(e.arguments) != len(arguments) { - return nil, errors.New("incorrect number of args") - } - for i, spec := range e.arguments { - userArg := arguments[i] - err := spec.typeCheck(userArg) - if err != nil { - return nil, err - } - } - return arguments, nil - } - if len(arguments) < len(e.arguments) { - return nil, errors.New("Invalid arity.") - } - return arguments, nil -} - -func (a *argSpec) typeCheck(arg interface{}) error { - for _, t := range a.types { - switch t { - case jpNumber: - if _, ok := arg.(float64); ok { - return nil - } - case jpString: - if _, ok := arg.(string); ok { - return nil - } - case jpArray: - if isSliceType(arg) { - return nil - } - case jpObject: - if _, ok := arg.(map[string]interface{}); ok { - return nil - } - case jpArrayNumber: - if _, ok := toArrayNum(arg); ok { - return nil - } - case jpArrayString: - if _, ok := toArrayStr(arg); ok { - return nil - } - case jpAny: - return nil - case jpExpref: - if _, ok := arg.(expRef); ok { - return nil - } - } - } - return fmt.Errorf("Invalid type for: %v, expected: %#v", arg, a.types) -} - -func (f *functionCaller) CallFunction(name string, arguments []interface{}, intr *treeInterpreter) (interface{}, error) { - entry, ok := f.functionTable[name] - if !ok { - return nil, errors.New("unknown function: " + name) - } - resolvedArgs, err := entry.resolveArgs(arguments) - if err != nil { - return nil, err - } - if entry.hasExpRef { - var extra []interface{} - extra = append(extra, intr) - resolvedArgs = append(extra, resolvedArgs...) - } - return entry.handler(resolvedArgs) -} - -func jpfAbs(arguments []interface{}) (interface{}, error) { - num := arguments[0].(float64) - return math.Abs(num), nil -} - -func jpfLength(arguments []interface{}) (interface{}, error) { - arg := arguments[0] - if c, ok := arg.(string); ok { - return float64(utf8.RuneCountInString(c)), nil - } else if isSliceType(arg) { - v := reflect.ValueOf(arg) - return float64(v.Len()), nil - } else if c, ok := arg.(map[string]interface{}); ok { - return float64(len(c)), nil - } - return nil, errors.New("could not compute length()") -} - -func jpfStartsWith(arguments []interface{}) (interface{}, error) { - search := arguments[0].(string) - prefix := arguments[1].(string) - return strings.HasPrefix(search, prefix), nil -} - -func jpfAvg(arguments []interface{}) (interface{}, error) { - // We've already type checked the value so we can safely use - // type assertions. - args := arguments[0].([]interface{}) - length := float64(len(args)) - numerator := 0.0 - for _, n := range args { - numerator += n.(float64) - } - return numerator / length, nil -} -func jpfCeil(arguments []interface{}) (interface{}, error) { - val := arguments[0].(float64) - return math.Ceil(val), nil -} -func jpfContains(arguments []interface{}) (interface{}, error) { - search := arguments[0] - el := arguments[1] - if searchStr, ok := search.(string); ok { - if elStr, ok := el.(string); ok { - return strings.Index(searchStr, elStr) != -1, nil - } - return false, nil - } - // Otherwise this is a generic contains for []interface{} - general := search.([]interface{}) - for _, item := range general { - if item == el { - return true, nil - } - } - return false, nil -} -func jpfEndsWith(arguments []interface{}) (interface{}, error) { - search := arguments[0].(string) - suffix := arguments[1].(string) - return strings.HasSuffix(search, suffix), nil -} -func jpfFloor(arguments []interface{}) (interface{}, error) { - val := arguments[0].(float64) - return math.Floor(val), nil -} -func jpfMap(arguments []interface{}) (interface{}, error) { - intr := arguments[0].(*treeInterpreter) - exp := arguments[1].(expRef) - node := exp.ref - arr := arguments[2].([]interface{}) - mapped := make([]interface{}, 0, len(arr)) - for _, value := range arr { - current, err := intr.Execute(node, value) - if err != nil { - return nil, err - } - mapped = append(mapped, current) - } - return mapped, nil -} -func jpfMax(arguments []interface{}) (interface{}, error) { - if items, ok := toArrayNum(arguments[0]); ok { - if len(items) == 0 { - return nil, nil - } - if len(items) == 1 { - return items[0], nil - } - best := items[0] - for _, item := range items[1:] { - if item > best { - best = item - } - } - return best, nil - } - // Otherwise we're dealing with a max() of strings. - items, _ := toArrayStr(arguments[0]) - if len(items) == 0 { - return nil, nil - } - if len(items) == 1 { - return items[0], nil - } - best := items[0] - for _, item := range items[1:] { - if item > best { - best = item - } - } - return best, nil -} -func jpfMerge(arguments []interface{}) (interface{}, error) { - final := make(map[string]interface{}) - for _, m := range arguments { - mapped := m.(map[string]interface{}) - for key, value := range mapped { - final[key] = value - } - } - return final, nil -} -func jpfMaxBy(arguments []interface{}) (interface{}, error) { - intr := arguments[0].(*treeInterpreter) - arr := arguments[1].([]interface{}) - exp := arguments[2].(expRef) - node := exp.ref - if len(arr) == 0 { - return nil, nil - } else if len(arr) == 1 { - return arr[0], nil - } - start, err := intr.Execute(node, arr[0]) - if err != nil { - return nil, err - } - switch t := start.(type) { - case float64: - bestVal := t - bestItem := arr[0] - for _, item := range arr[1:] { - result, err := intr.Execute(node, item) - if err != nil { - return nil, err - } - current, ok := result.(float64) - if !ok { - return nil, errors.New("invalid type, must be number") - } - if current > bestVal { - bestVal = current - bestItem = item - } - } - return bestItem, nil - case string: - bestVal := t - bestItem := arr[0] - for _, item := range arr[1:] { - result, err := intr.Execute(node, item) - if err != nil { - return nil, err - } - current, ok := result.(string) - if !ok { - return nil, errors.New("invalid type, must be string") - } - if current > bestVal { - bestVal = current - bestItem = item - } - } - return bestItem, nil - default: - return nil, errors.New("invalid type, must be number of string") - } -} -func jpfSum(arguments []interface{}) (interface{}, error) { - items, _ := toArrayNum(arguments[0]) - sum := 0.0 - for _, item := range items { - sum += item - } - return sum, nil -} - -func jpfMin(arguments []interface{}) (interface{}, error) { - if items, ok := toArrayNum(arguments[0]); ok { - if len(items) == 0 { - return nil, nil - } - if len(items) == 1 { - return items[0], nil - } - best := items[0] - for _, item := range items[1:] { - if item < best { - best = item - } - } - return best, nil - } - items, _ := toArrayStr(arguments[0]) - if len(items) == 0 { - return nil, nil - } - if len(items) == 1 { - return items[0], nil - } - best := items[0] - for _, item := range items[1:] { - if item < best { - best = item - } - } - return best, nil -} - -func jpfMinBy(arguments []interface{}) (interface{}, error) { - intr := arguments[0].(*treeInterpreter) - arr := arguments[1].([]interface{}) - exp := arguments[2].(expRef) - node := exp.ref - if len(arr) == 0 { - return nil, nil - } else if len(arr) == 1 { - return arr[0], nil - } - start, err := intr.Execute(node, arr[0]) - if err != nil { - return nil, err - } - if t, ok := start.(float64); ok { - bestVal := t - bestItem := arr[0] - for _, item := range arr[1:] { - result, err := intr.Execute(node, item) - if err != nil { - return nil, err - } - current, ok := result.(float64) - if !ok { - return nil, errors.New("invalid type, must be number") - } - if current < bestVal { - bestVal = current - bestItem = item - } - } - return bestItem, nil - } else if t, ok := start.(string); ok { - bestVal := t - bestItem := arr[0] - for _, item := range arr[1:] { - result, err := intr.Execute(node, item) - if err != nil { - return nil, err - } - current, ok := result.(string) - if !ok { - return nil, errors.New("invalid type, must be string") - } - if current < bestVal { - bestVal = current - bestItem = item - } - } - return bestItem, nil - } else { - return nil, errors.New("invalid type, must be number of string") - } -} -func jpfType(arguments []interface{}) (interface{}, error) { - arg := arguments[0] - if _, ok := arg.(float64); ok { - return "number", nil - } - if _, ok := arg.(string); ok { - return "string", nil - } - if _, ok := arg.([]interface{}); ok { - return "array", nil - } - if _, ok := arg.(map[string]interface{}); ok { - return "object", nil - } - if arg == nil { - return "null", nil - } - if arg == true || arg == false { - return "boolean", nil - } - return nil, errors.New("unknown type") -} -func jpfKeys(arguments []interface{}) (interface{}, error) { - arg := arguments[0].(map[string]interface{}) - collected := make([]interface{}, 0, len(arg)) - for key := range arg { - collected = append(collected, key) - } - return collected, nil -} -func jpfValues(arguments []interface{}) (interface{}, error) { - arg := arguments[0].(map[string]interface{}) - collected := make([]interface{}, 0, len(arg)) - for _, value := range arg { - collected = append(collected, value) - } - return collected, nil -} -func jpfSort(arguments []interface{}) (interface{}, error) { - if items, ok := toArrayNum(arguments[0]); ok { - d := sort.Float64Slice(items) - sort.Stable(d) - final := make([]interface{}, len(d)) - for i, val := range d { - final[i] = val - } - return final, nil - } - // Otherwise we're dealing with sort()'ing strings. - items, _ := toArrayStr(arguments[0]) - d := sort.StringSlice(items) - sort.Stable(d) - final := make([]interface{}, len(d)) - for i, val := range d { - final[i] = val - } - return final, nil -} -func jpfSortBy(arguments []interface{}) (interface{}, error) { - intr := arguments[0].(*treeInterpreter) - arr := arguments[1].([]interface{}) - exp := arguments[2].(expRef) - node := exp.ref - if len(arr) == 0 { - return arr, nil - } else if len(arr) == 1 { - return arr, nil - } - start, err := intr.Execute(node, arr[0]) - if err != nil { - return nil, err - } - if _, ok := start.(float64); ok { - sortable := &byExprFloat{intr, node, arr, false} - sort.Stable(sortable) - if sortable.hasError { - return nil, errors.New("error in sort_by comparison") - } - return arr, nil - } else if _, ok := start.(string); ok { - sortable := &byExprString{intr, node, arr, false} - sort.Stable(sortable) - if sortable.hasError { - return nil, errors.New("error in sort_by comparison") - } - return arr, nil - } else { - return nil, errors.New("invalid type, must be number of string") - } -} -func jpfJoin(arguments []interface{}) (interface{}, error) { - sep := arguments[0].(string) - // We can't just do arguments[1].([]string), we have to - // manually convert each item to a string. - arrayStr := []string{} - for _, item := range arguments[1].([]interface{}) { - arrayStr = append(arrayStr, item.(string)) - } - return strings.Join(arrayStr, sep), nil -} -func jpfReverse(arguments []interface{}) (interface{}, error) { - if s, ok := arguments[0].(string); ok { - r := []rune(s) - for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 { - r[i], r[j] = r[j], r[i] - } - return string(r), nil - } - items := arguments[0].([]interface{}) - length := len(items) - reversed := make([]interface{}, length) - for i, item := range items { - reversed[length-(i+1)] = item - } - return reversed, nil -} -func jpfToArray(arguments []interface{}) (interface{}, error) { - if _, ok := arguments[0].([]interface{}); ok { - return arguments[0], nil - } - return arguments[:1:1], nil -} -func jpfToString(arguments []interface{}) (interface{}, error) { - if v, ok := arguments[0].(string); ok { - return v, nil - } - result, err := json.Marshal(arguments[0]) - if err != nil { - return nil, err - } - return string(result), nil -} -func jpfToNumber(arguments []interface{}) (interface{}, error) { - arg := arguments[0] - if v, ok := arg.(float64); ok { - return v, nil - } - if v, ok := arg.(string); ok { - conv, err := strconv.ParseFloat(v, 64) - if err != nil { - return nil, nil - } - return conv, nil - } - if _, ok := arg.([]interface{}); ok { - return nil, nil - } - if _, ok := arg.(map[string]interface{}); ok { - return nil, nil - } - if arg == nil { - return nil, nil - } - if arg == true || arg == false { - return nil, nil - } - return nil, errors.New("unknown type") -} -func jpfNotNull(arguments []interface{}) (interface{}, error) { - for _, arg := range arguments { - if arg != nil { - return arg, nil - } - } - return nil, nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/fuzz/jmespath.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/fuzz/jmespath.go deleted file mode 100644 index c7df08782..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/fuzz/jmespath.go +++ /dev/null @@ -1,13 +0,0 @@ -package jmespath - -import "github.com/jmespath/go-jmespath" - -// Fuzz will fuzz test the JMESPath parser. -func Fuzz(data []byte) int { - p := jmespath.NewParser() - _, err := p.Parse(string(data)) - if err != nil { - return 1 - } - return 0 -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/interpreter.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/interpreter.go deleted file mode 100644 index 13c74604c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/interpreter.go +++ /dev/null @@ -1,418 +0,0 @@ -package jmespath - -import ( - "errors" - "reflect" - "unicode" - "unicode/utf8" -) - -/* This is a tree based interpreter. It walks the AST and directly - interprets the AST to search through a JSON document. -*/ - -type treeInterpreter struct { - fCall *functionCaller -} - -func newInterpreter() *treeInterpreter { - interpreter := treeInterpreter{} - interpreter.fCall = newFunctionCaller() - return &interpreter -} - -type expRef struct { - ref ASTNode -} - -// Execute takes an ASTNode and input data and interprets the AST directly. -// It will produce the result of applying the JMESPath expression associated -// with the ASTNode to the input data "value". -func (intr *treeInterpreter) Execute(node ASTNode, value interface{}) (interface{}, error) { - switch node.nodeType { - case ASTComparator: - left, err := intr.Execute(node.children[0], value) - if err != nil { - return nil, err - } - right, err := intr.Execute(node.children[1], value) - if err != nil { - return nil, err - } - switch node.value { - case tEQ: - return objsEqual(left, right), nil - case tNE: - return !objsEqual(left, right), nil - } - leftNum, ok := left.(float64) - if !ok { - return nil, nil - } - rightNum, ok := right.(float64) - if !ok { - return nil, nil - } - switch node.value { - case tGT: - return leftNum > rightNum, nil - case tGTE: - return leftNum >= rightNum, nil - case tLT: - return leftNum < rightNum, nil - case tLTE: - return leftNum <= rightNum, nil - } - case ASTExpRef: - return expRef{ref: node.children[0]}, nil - case ASTFunctionExpression: - resolvedArgs := []interface{}{} - for _, arg := range node.children { - current, err := intr.Execute(arg, value) - if err != nil { - return nil, err - } - resolvedArgs = append(resolvedArgs, current) - } - return intr.fCall.CallFunction(node.value.(string), resolvedArgs, intr) - case ASTField: - if m, ok := value.(map[string]interface{}); ok { - key := node.value.(string) - return m[key], nil - } - return intr.fieldFromStruct(node.value.(string), value) - case ASTFilterProjection: - left, err := intr.Execute(node.children[0], value) - if err != nil { - return nil, nil - } - sliceType, ok := left.([]interface{}) - if !ok { - if isSliceType(left) { - return intr.filterProjectionWithReflection(node, left) - } - return nil, nil - } - compareNode := node.children[2] - collected := []interface{}{} - for _, element := range sliceType { - result, err := intr.Execute(compareNode, element) - if err != nil { - return nil, err - } - if !isFalse(result) { - current, err := intr.Execute(node.children[1], element) - if err != nil { - return nil, err - } - if current != nil { - collected = append(collected, current) - } - } - } - return collected, nil - case ASTFlatten: - left, err := intr.Execute(node.children[0], value) - if err != nil { - return nil, nil - } - sliceType, ok := left.([]interface{}) - if !ok { - // If we can't type convert to []interface{}, there's - // a chance this could still work via reflection if we're - // dealing with user provided types. - if isSliceType(left) { - return intr.flattenWithReflection(left) - } - return nil, nil - } - flattened := []interface{}{} - for _, element := range sliceType { - if elementSlice, ok := element.([]interface{}); ok { - flattened = append(flattened, elementSlice...) - } else if isSliceType(element) { - reflectFlat := []interface{}{} - v := reflect.ValueOf(element) - for i := 0; i < v.Len(); i++ { - reflectFlat = append(reflectFlat, v.Index(i).Interface()) - } - flattened = append(flattened, reflectFlat...) - } else { - flattened = append(flattened, element) - } - } - return flattened, nil - case ASTIdentity, ASTCurrentNode: - return value, nil - case ASTIndex: - if sliceType, ok := value.([]interface{}); ok { - index := node.value.(int) - if index < 0 { - index += len(sliceType) - } - if index < len(sliceType) && index >= 0 { - return sliceType[index], nil - } - return nil, nil - } - // Otherwise try via reflection. - rv := reflect.ValueOf(value) - if rv.Kind() == reflect.Slice { - index := node.value.(int) - if index < 0 { - index += rv.Len() - } - if index < rv.Len() && index >= 0 { - v := rv.Index(index) - return v.Interface(), nil - } - } - return nil, nil - case ASTKeyValPair: - return intr.Execute(node.children[0], value) - case ASTLiteral: - return node.value, nil - case ASTMultiSelectHash: - if value == nil { - return nil, nil - } - collected := make(map[string]interface{}) - for _, child := range node.children { - current, err := intr.Execute(child, value) - if err != nil { - return nil, err - } - key := child.value.(string) - collected[key] = current - } - return collected, nil - case ASTMultiSelectList: - if value == nil { - return nil, nil - } - collected := []interface{}{} - for _, child := range node.children { - current, err := intr.Execute(child, value) - if err != nil { - return nil, err - } - collected = append(collected, current) - } - return collected, nil - case ASTOrExpression: - matched, err := intr.Execute(node.children[0], value) - if err != nil { - return nil, err - } - if isFalse(matched) { - matched, err = intr.Execute(node.children[1], value) - if err != nil { - return nil, err - } - } - return matched, nil - case ASTAndExpression: - matched, err := intr.Execute(node.children[0], value) - if err != nil { - return nil, err - } - if isFalse(matched) { - return matched, nil - } - return intr.Execute(node.children[1], value) - case ASTNotExpression: - matched, err := intr.Execute(node.children[0], value) - if err != nil { - return nil, err - } - if isFalse(matched) { - return true, nil - } - return false, nil - case ASTPipe: - result := value - var err error - for _, child := range node.children { - result, err = intr.Execute(child, result) - if err != nil { - return nil, err - } - } - return result, nil - case ASTProjection: - left, err := intr.Execute(node.children[0], value) - if err != nil { - return nil, err - } - sliceType, ok := left.([]interface{}) - if !ok { - if isSliceType(left) { - return intr.projectWithReflection(node, left) - } - return nil, nil - } - collected := []interface{}{} - var current interface{} - for _, element := range sliceType { - current, err = intr.Execute(node.children[1], element) - if err != nil { - return nil, err - } - if current != nil { - collected = append(collected, current) - } - } - return collected, nil - case ASTSubexpression, ASTIndexExpression: - left, err := intr.Execute(node.children[0], value) - if err != nil { - return nil, err - } - return intr.Execute(node.children[1], left) - case ASTSlice: - sliceType, ok := value.([]interface{}) - if !ok { - if isSliceType(value) { - return intr.sliceWithReflection(node, value) - } - return nil, nil - } - parts := node.value.([]*int) - sliceParams := make([]sliceParam, 3) - for i, part := range parts { - if part != nil { - sliceParams[i].Specified = true - sliceParams[i].N = *part - } - } - return slice(sliceType, sliceParams) - case ASTValueProjection: - left, err := intr.Execute(node.children[0], value) - if err != nil { - return nil, nil - } - mapType, ok := left.(map[string]interface{}) - if !ok { - return nil, nil - } - values := make([]interface{}, len(mapType)) - for _, value := range mapType { - values = append(values, value) - } - collected := []interface{}{} - for _, element := range values { - current, err := intr.Execute(node.children[1], element) - if err != nil { - return nil, err - } - if current != nil { - collected = append(collected, current) - } - } - return collected, nil - } - return nil, errors.New("Unknown AST node: " + node.nodeType.String()) -} - -func (intr *treeInterpreter) fieldFromStruct(key string, value interface{}) (interface{}, error) { - rv := reflect.ValueOf(value) - first, n := utf8.DecodeRuneInString(key) - fieldName := string(unicode.ToUpper(first)) + key[n:] - if rv.Kind() == reflect.Struct { - v := rv.FieldByName(fieldName) - if !v.IsValid() { - return nil, nil - } - return v.Interface(), nil - } else if rv.Kind() == reflect.Ptr { - // Handle multiple levels of indirection? - if rv.IsNil() { - return nil, nil - } - rv = rv.Elem() - v := rv.FieldByName(fieldName) - if !v.IsValid() { - return nil, nil - } - return v.Interface(), nil - } - return nil, nil -} - -func (intr *treeInterpreter) flattenWithReflection(value interface{}) (interface{}, error) { - v := reflect.ValueOf(value) - flattened := []interface{}{} - for i := 0; i < v.Len(); i++ { - element := v.Index(i).Interface() - if reflect.TypeOf(element).Kind() == reflect.Slice { - // Then insert the contents of the element - // slice into the flattened slice, - // i.e flattened = append(flattened, mySlice...) - elementV := reflect.ValueOf(element) - for j := 0; j < elementV.Len(); j++ { - flattened = append( - flattened, elementV.Index(j).Interface()) - } - } else { - flattened = append(flattened, element) - } - } - return flattened, nil -} - -func (intr *treeInterpreter) sliceWithReflection(node ASTNode, value interface{}) (interface{}, error) { - v := reflect.ValueOf(value) - parts := node.value.([]*int) - sliceParams := make([]sliceParam, 3) - for i, part := range parts { - if part != nil { - sliceParams[i].Specified = true - sliceParams[i].N = *part - } - } - final := []interface{}{} - for i := 0; i < v.Len(); i++ { - element := v.Index(i).Interface() - final = append(final, element) - } - return slice(final, sliceParams) -} - -func (intr *treeInterpreter) filterProjectionWithReflection(node ASTNode, value interface{}) (interface{}, error) { - compareNode := node.children[2] - collected := []interface{}{} - v := reflect.ValueOf(value) - for i := 0; i < v.Len(); i++ { - element := v.Index(i).Interface() - result, err := intr.Execute(compareNode, element) - if err != nil { - return nil, err - } - if !isFalse(result) { - current, err := intr.Execute(node.children[1], element) - if err != nil { - return nil, err - } - if current != nil { - collected = append(collected, current) - } - } - } - return collected, nil -} - -func (intr *treeInterpreter) projectWithReflection(node ASTNode, value interface{}) (interface{}, error) { - collected := []interface{}{} - v := reflect.ValueOf(value) - for i := 0; i < v.Len(); i++ { - element := v.Index(i).Interface() - result, err := intr.Execute(node.children[1], element) - if err != nil { - return nil, err - } - if result != nil { - collected = append(collected, result) - } - } - return collected, nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/interpreter_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/interpreter_test.go deleted file mode 100644 index 11c6d0aa0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/interpreter_test.go +++ /dev/null @@ -1,221 +0,0 @@ -package jmespath - -import ( - "encoding/json" - "testing" - - "github.com/stretchr/testify/assert" -) - -type scalars struct { - Foo string - Bar string -} - -type sliceType struct { - A string - B []scalars - C []*scalars -} - -type benchmarkStruct struct { - Fooasdfasdfasdfasdf string -} - -type benchmarkNested struct { - Fooasdfasdfasdfasdf nestedA -} - -type nestedA struct { - Fooasdfasdfasdfasdf nestedB -} - -type nestedB struct { - Fooasdfasdfasdfasdf nestedC -} - -type nestedC struct { - Fooasdfasdfasdfasdf string -} - -type nestedSlice struct { - A []sliceType -} - -func TestCanSupportEmptyInterface(t *testing.T) { - assert := assert.New(t) - data := make(map[string]interface{}) - data["foo"] = "bar" - result, err := Search("foo", data) - assert.Nil(err) - assert.Equal("bar", result) -} - -func TestCanSupportUserDefinedStructsValue(t *testing.T) { - assert := assert.New(t) - s := scalars{Foo: "one", Bar: "bar"} - result, err := Search("Foo", s) - assert.Nil(err) - assert.Equal("one", result) -} - -func TestCanSupportUserDefinedStructsRef(t *testing.T) { - assert := assert.New(t) - s := scalars{Foo: "one", Bar: "bar"} - result, err := Search("Foo", &s) - assert.Nil(err) - assert.Equal("one", result) -} - -func TestCanSupportStructWithSliceAll(t *testing.T) { - assert := assert.New(t) - data := sliceType{A: "foo", B: []scalars{{"f1", "b1"}, {"correct", "b2"}}} - result, err := Search("B[].Foo", data) - assert.Nil(err) - assert.Equal([]interface{}{"f1", "correct"}, result) -} - -func TestCanSupportStructWithSlicingExpression(t *testing.T) { - assert := assert.New(t) - data := sliceType{A: "foo", B: []scalars{{"f1", "b1"}, {"correct", "b2"}}} - result, err := Search("B[:].Foo", data) - assert.Nil(err) - assert.Equal([]interface{}{"f1", "correct"}, result) -} - -func TestCanSupportStructWithFilterProjection(t *testing.T) { - assert := assert.New(t) - data := sliceType{A: "foo", B: []scalars{{"f1", "b1"}, {"correct", "b2"}}} - result, err := Search("B[? `true` ].Foo", data) - assert.Nil(err) - assert.Equal([]interface{}{"f1", "correct"}, result) -} - -func TestCanSupportStructWithSlice(t *testing.T) { - assert := assert.New(t) - data := sliceType{A: "foo", B: []scalars{{"f1", "b1"}, {"correct", "b2"}}} - result, err := Search("B[-1].Foo", data) - assert.Nil(err) - assert.Equal("correct", result) -} - -func TestCanSupportStructWithOrExpressions(t *testing.T) { - assert := assert.New(t) - data := sliceType{A: "foo", C: nil} - result, err := Search("C || A", data) - assert.Nil(err) - assert.Equal("foo", result) -} - -func TestCanSupportStructWithSlicePointer(t *testing.T) { - assert := assert.New(t) - data := sliceType{A: "foo", C: []*scalars{{"f1", "b1"}, {"correct", "b2"}}} - result, err := Search("C[-1].Foo", data) - assert.Nil(err) - assert.Equal("correct", result) -} - -func TestWillAutomaticallyCapitalizeFieldNames(t *testing.T) { - assert := assert.New(t) - s := scalars{Foo: "one", Bar: "bar"} - // Note that there's a lower cased "foo" instead of "Foo", - // but it should still correspond to the Foo field in the - // scalars struct - result, err := Search("foo", &s) - assert.Nil(err) - assert.Equal("one", result) -} - -func TestCanSupportStructWithSliceLowerCased(t *testing.T) { - assert := assert.New(t) - data := sliceType{A: "foo", B: []scalars{{"f1", "b1"}, {"correct", "b2"}}} - result, err := Search("b[-1].foo", data) - assert.Nil(err) - assert.Equal("correct", result) -} - -func TestCanSupportStructWithNestedPointers(t *testing.T) { - assert := assert.New(t) - data := struct{ A *struct{ B int } }{} - result, err := Search("A.B", data) - assert.Nil(err) - assert.Nil(result) -} - -func TestCanSupportFlattenNestedSlice(t *testing.T) { - assert := assert.New(t) - data := nestedSlice{A: []sliceType{ - {B: []scalars{{Foo: "f1a"}, {Foo: "f1b"}}}, - {B: []scalars{{Foo: "f2a"}, {Foo: "f2b"}}}, - }} - result, err := Search("A[].B[].Foo", data) - assert.Nil(err) - assert.Equal([]interface{}{"f1a", "f1b", "f2a", "f2b"}, result) -} - -func TestCanSupportFlattenNestedEmptySlice(t *testing.T) { - assert := assert.New(t) - data := nestedSlice{A: []sliceType{ - {}, {B: []scalars{{Foo: "a"}}}, - }} - result, err := Search("A[].B[].Foo", data) - assert.Nil(err) - assert.Equal([]interface{}{"a"}, result) -} - -func TestCanSupportProjectionsWithStructs(t *testing.T) { - assert := assert.New(t) - data := nestedSlice{A: []sliceType{ - {A: "first"}, {A: "second"}, {A: "third"}, - }} - result, err := Search("A[*].A", data) - assert.Nil(err) - assert.Equal([]interface{}{"first", "second", "third"}, result) -} - -func TestCanSupportSliceOfStructsWithFunctions(t *testing.T) { - assert := assert.New(t) - data := []scalars{scalars{"a1", "b1"}, scalars{"a2", "b2"}} - result, err := Search("length(@)", data) - assert.Nil(err) - assert.Equal(result.(float64), 2.0) -} - -func BenchmarkInterpretSingleFieldStruct(b *testing.B) { - intr := newInterpreter() - parser := NewParser() - ast, _ := parser.Parse("fooasdfasdfasdfasdf") - data := benchmarkStruct{"foobarbazqux"} - for i := 0; i < b.N; i++ { - intr.Execute(ast, &data) - } -} - -func BenchmarkInterpretNestedStruct(b *testing.B) { - intr := newInterpreter() - parser := NewParser() - ast, _ := parser.Parse("fooasdfasdfasdfasdf.fooasdfasdfasdfasdf.fooasdfasdfasdfasdf.fooasdfasdfasdfasdf") - data := benchmarkNested{ - nestedA{ - nestedB{ - nestedC{"foobarbazqux"}, - }, - }, - } - for i := 0; i < b.N; i++ { - intr.Execute(ast, &data) - } -} - -func BenchmarkInterpretNestedMaps(b *testing.B) { - jsonData := []byte(`{"fooasdfasdfasdfasdf": {"fooasdfasdfasdfasdf": {"fooasdfasdfasdfasdf": {"fooasdfasdfasdfasdf": "foobarbazqux"}}}}`) - var data interface{} - json.Unmarshal(jsonData, &data) - - intr := newInterpreter() - parser := NewParser() - ast, _ := parser.Parse("fooasdfasdfasdfasdf.fooasdfasdfasdfasdf.fooasdfasdfasdfasdf.fooasdfasdfasdfasdf") - for i := 0; i < b.N; i++ { - intr.Execute(ast, data) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/lexer.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/lexer.go deleted file mode 100644 index 817900c8f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/lexer.go +++ /dev/null @@ -1,420 +0,0 @@ -package jmespath - -import ( - "bytes" - "encoding/json" - "fmt" - "strconv" - "strings" - "unicode/utf8" -) - -type token struct { - tokenType tokType - value string - position int - length int -} - -type tokType int - -const eof = -1 - -// Lexer contains information about the expression being tokenized. -type Lexer struct { - expression string // The expression provided by the user. - currentPos int // The current position in the string. - lastWidth int // The width of the current rune. This - buf bytes.Buffer // Internal buffer used for building up values. -} - -// SyntaxError is the main error used whenever a lexing or parsing error occurs. -type SyntaxError struct { - msg string // Error message displayed to user - Expression string // Expression that generated a SyntaxError - Offset int // The location in the string where the error occurred -} - -func (e SyntaxError) Error() string { - // In the future, it would be good to underline the specific - // location where the error occurred. - return "SyntaxError: " + e.msg -} - -// HighlightLocation will show where the syntax error occurred. -// It will place a "^" character on a line below the expression -// at the point where the syntax error occurred. -func (e SyntaxError) HighlightLocation() string { - return e.Expression + "\n" + strings.Repeat(" ", e.Offset) + "^" -} - -//go:generate stringer -type=tokType -const ( - tUnknown tokType = iota - tStar - tDot - tFilter - tFlatten - tLparen - tRparen - tLbracket - tRbracket - tLbrace - tRbrace - tOr - tPipe - tNumber - tUnquotedIdentifier - tQuotedIdentifier - tComma - tColon - tLT - tLTE - tGT - tGTE - tEQ - tNE - tJSONLiteral - tStringLiteral - tCurrent - tExpref - tAnd - tNot - tEOF -) - -var basicTokens = map[rune]tokType{ - '.': tDot, - '*': tStar, - ',': tComma, - ':': tColon, - '{': tLbrace, - '}': tRbrace, - ']': tRbracket, // tLbracket not included because it could be "[]" - '(': tLparen, - ')': tRparen, - '@': tCurrent, -} - -// Bit mask for [a-zA-Z_] shifted down 64 bits to fit in a single uint64. -// When using this bitmask just be sure to shift the rune down 64 bits -// before checking against identifierStartBits. -const identifierStartBits uint64 = 576460745995190270 - -// Bit mask for [a-zA-Z0-9], 128 bits -> 2 uint64s. -var identifierTrailingBits = [2]uint64{287948901175001088, 576460745995190270} - -var whiteSpace = map[rune]bool{ - ' ': true, '\t': true, '\n': true, '\r': true, -} - -func (t token) String() string { - return fmt.Sprintf("Token{%+v, %s, %d, %d}", - t.tokenType, t.value, t.position, t.length) -} - -// NewLexer creates a new JMESPath lexer. -func NewLexer() *Lexer { - lexer := Lexer{} - return &lexer -} - -func (lexer *Lexer) next() rune { - if lexer.currentPos >= len(lexer.expression) { - lexer.lastWidth = 0 - return eof - } - r, w := utf8.DecodeRuneInString(lexer.expression[lexer.currentPos:]) - lexer.lastWidth = w - lexer.currentPos += w - return r -} - -func (lexer *Lexer) back() { - lexer.currentPos -= lexer.lastWidth -} - -func (lexer *Lexer) peek() rune { - t := lexer.next() - lexer.back() - return t -} - -// tokenize takes an expression and returns corresponding tokens. -func (lexer *Lexer) tokenize(expression string) ([]token, error) { - var tokens []token - lexer.expression = expression - lexer.currentPos = 0 - lexer.lastWidth = 0 -loop: - for { - r := lexer.next() - if identifierStartBits&(1<<(uint64(r)-64)) > 0 { - t := lexer.consumeUnquotedIdentifier() - tokens = append(tokens, t) - } else if val, ok := basicTokens[r]; ok { - // Basic single char token. - t := token{ - tokenType: val, - value: string(r), - position: lexer.currentPos - lexer.lastWidth, - length: 1, - } - tokens = append(tokens, t) - } else if r == '-' || (r >= '0' && r <= '9') { - t := lexer.consumeNumber() - tokens = append(tokens, t) - } else if r == '[' { - t := lexer.consumeLBracket() - tokens = append(tokens, t) - } else if r == '"' { - t, err := lexer.consumeQuotedIdentifier() - if err != nil { - return tokens, err - } - tokens = append(tokens, t) - } else if r == '\'' { - t, err := lexer.consumeRawStringLiteral() - if err != nil { - return tokens, err - } - tokens = append(tokens, t) - } else if r == '`' { - t, err := lexer.consumeLiteral() - if err != nil { - return tokens, err - } - tokens = append(tokens, t) - } else if r == '|' { - t := lexer.matchOrElse(r, '|', tOr, tPipe) - tokens = append(tokens, t) - } else if r == '<' { - t := lexer.matchOrElse(r, '=', tLTE, tLT) - tokens = append(tokens, t) - } else if r == '>' { - t := lexer.matchOrElse(r, '=', tGTE, tGT) - tokens = append(tokens, t) - } else if r == '!' { - t := lexer.matchOrElse(r, '=', tNE, tNot) - tokens = append(tokens, t) - } else if r == '=' { - t := lexer.matchOrElse(r, '=', tEQ, tUnknown) - tokens = append(tokens, t) - } else if r == '&' { - t := lexer.matchOrElse(r, '&', tAnd, tExpref) - tokens = append(tokens, t) - } else if r == eof { - break loop - } else if _, ok := whiteSpace[r]; ok { - // Ignore whitespace - } else { - return tokens, lexer.syntaxError(fmt.Sprintf("Unknown char: %s", strconv.QuoteRuneToASCII(r))) - } - } - tokens = append(tokens, token{tEOF, "", len(lexer.expression), 0}) - return tokens, nil -} - -// Consume characters until the ending rune "r" is reached. -// If the end of the expression is reached before seeing the -// terminating rune "r", then an error is returned. -// If no error occurs then the matching substring is returned. -// The returned string will not include the ending rune. -func (lexer *Lexer) consumeUntil(end rune) (string, error) { - start := lexer.currentPos - current := lexer.next() - for current != end && current != eof { - if current == '\\' && lexer.peek() != eof { - lexer.next() - } - current = lexer.next() - } - if lexer.lastWidth == 0 { - // Then we hit an EOF so we never reached the closing - // delimiter. - return "", SyntaxError{ - msg: "Unclosed delimiter: " + string(end), - Expression: lexer.expression, - Offset: len(lexer.expression), - } - } - return lexer.expression[start : lexer.currentPos-lexer.lastWidth], nil -} - -func (lexer *Lexer) consumeLiteral() (token, error) { - start := lexer.currentPos - value, err := lexer.consumeUntil('`') - if err != nil { - return token{}, err - } - value = strings.Replace(value, "\\`", "`", -1) - return token{ - tokenType: tJSONLiteral, - value: value, - position: start, - length: len(value), - }, nil -} - -func (lexer *Lexer) consumeRawStringLiteral() (token, error) { - start := lexer.currentPos - currentIndex := start - current := lexer.next() - for current != '\'' && lexer.peek() != eof { - if current == '\\' && lexer.peek() == '\'' { - chunk := lexer.expression[currentIndex : lexer.currentPos-1] - lexer.buf.WriteString(chunk) - lexer.buf.WriteString("'") - lexer.next() - currentIndex = lexer.currentPos - } - current = lexer.next() - } - if lexer.lastWidth == 0 { - // Then we hit an EOF so we never reached the closing - // delimiter. - return token{}, SyntaxError{ - msg: "Unclosed delimiter: '", - Expression: lexer.expression, - Offset: len(lexer.expression), - } - } - if currentIndex < lexer.currentPos { - lexer.buf.WriteString(lexer.expression[currentIndex : lexer.currentPos-1]) - } - value := lexer.buf.String() - // Reset the buffer so it can reused again. - lexer.buf.Reset() - return token{ - tokenType: tStringLiteral, - value: value, - position: start, - length: len(value), - }, nil -} - -func (lexer *Lexer) syntaxError(msg string) SyntaxError { - return SyntaxError{ - msg: msg, - Expression: lexer.expression, - Offset: lexer.currentPos - 1, - } -} - -// Checks for a two char token, otherwise matches a single character -// token. This is used whenever a two char token overlaps a single -// char token, e.g. "||" -> tPipe, "|" -> tOr. -func (lexer *Lexer) matchOrElse(first rune, second rune, matchedType tokType, singleCharType tokType) token { - start := lexer.currentPos - lexer.lastWidth - nextRune := lexer.next() - var t token - if nextRune == second { - t = token{ - tokenType: matchedType, - value: string(first) + string(second), - position: start, - length: 2, - } - } else { - lexer.back() - t = token{ - tokenType: singleCharType, - value: string(first), - position: start, - length: 1, - } - } - return t -} - -func (lexer *Lexer) consumeLBracket() token { - // There's three options here: - // 1. A filter expression "[?" - // 2. A flatten operator "[]" - // 3. A bare rbracket "[" - start := lexer.currentPos - lexer.lastWidth - nextRune := lexer.next() - var t token - if nextRune == '?' { - t = token{ - tokenType: tFilter, - value: "[?", - position: start, - length: 2, - } - } else if nextRune == ']' { - t = token{ - tokenType: tFlatten, - value: "[]", - position: start, - length: 2, - } - } else { - t = token{ - tokenType: tLbracket, - value: "[", - position: start, - length: 1, - } - lexer.back() - } - return t -} - -func (lexer *Lexer) consumeQuotedIdentifier() (token, error) { - start := lexer.currentPos - value, err := lexer.consumeUntil('"') - if err != nil { - return token{}, err - } - var decoded string - asJSON := []byte("\"" + value + "\"") - if err := json.Unmarshal([]byte(asJSON), &decoded); err != nil { - return token{}, err - } - return token{ - tokenType: tQuotedIdentifier, - value: decoded, - position: start - 1, - length: len(decoded), - }, nil -} - -func (lexer *Lexer) consumeUnquotedIdentifier() token { - // Consume runes until we reach the end of an unquoted - // identifier. - start := lexer.currentPos - lexer.lastWidth - for { - r := lexer.next() - if r < 0 || r > 128 || identifierTrailingBits[uint64(r)/64]&(1<<(uint64(r)%64)) == 0 { - lexer.back() - break - } - } - value := lexer.expression[start:lexer.currentPos] - return token{ - tokenType: tUnquotedIdentifier, - value: value, - position: start, - length: lexer.currentPos - start, - } -} - -func (lexer *Lexer) consumeNumber() token { - // Consume runes until we reach something that's not a number. - start := lexer.currentPos - lexer.lastWidth - for { - r := lexer.next() - if r < '0' || r > '9' { - lexer.back() - break - } - } - value := lexer.expression[start:lexer.currentPos] - return token{ - tokenType: tNumber, - value: value, - position: start, - length: lexer.currentPos - start, - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/lexer_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/lexer_test.go deleted file mode 100644 index d13a042da..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/lexer_test.go +++ /dev/null @@ -1,161 +0,0 @@ -package jmespath - -import ( - "fmt" - "testing" - - "github.com/stretchr/testify/assert" -) - -var lexingTests = []struct { - expression string - expected []token -}{ - {"*", []token{{tStar, "*", 0, 1}}}, - {".", []token{{tDot, ".", 0, 1}}}, - {"[?", []token{{tFilter, "[?", 0, 2}}}, - {"[]", []token{{tFlatten, "[]", 0, 2}}}, - {"(", []token{{tLparen, "(", 0, 1}}}, - {")", []token{{tRparen, ")", 0, 1}}}, - {"[", []token{{tLbracket, "[", 0, 1}}}, - {"]", []token{{tRbracket, "]", 0, 1}}}, - {"{", []token{{tLbrace, "{", 0, 1}}}, - {"}", []token{{tRbrace, "}", 0, 1}}}, - {"||", []token{{tOr, "||", 0, 2}}}, - {"|", []token{{tPipe, "|", 0, 1}}}, - {"29", []token{{tNumber, "29", 0, 2}}}, - {"2", []token{{tNumber, "2", 0, 1}}}, - {"0", []token{{tNumber, "0", 0, 1}}}, - {"-20", []token{{tNumber, "-20", 0, 3}}}, - {"foo", []token{{tUnquotedIdentifier, "foo", 0, 3}}}, - {`"bar"`, []token{{tQuotedIdentifier, "bar", 0, 3}}}, - // Escaping the delimiter - {`"bar\"baz"`, []token{{tQuotedIdentifier, `bar"baz`, 0, 7}}}, - {",", []token{{tComma, ",", 0, 1}}}, - {":", []token{{tColon, ":", 0, 1}}}, - {"<", []token{{tLT, "<", 0, 1}}}, - {"<=", []token{{tLTE, "<=", 0, 2}}}, - {">", []token{{tGT, ">", 0, 1}}}, - {">=", []token{{tGTE, ">=", 0, 2}}}, - {"==", []token{{tEQ, "==", 0, 2}}}, - {"!=", []token{{tNE, "!=", 0, 2}}}, - {"`[0, 1, 2]`", []token{{tJSONLiteral, "[0, 1, 2]", 1, 9}}}, - {"'foo'", []token{{tStringLiteral, "foo", 1, 3}}}, - {"'a'", []token{{tStringLiteral, "a", 1, 1}}}, - {`'foo\'bar'`, []token{{tStringLiteral, "foo'bar", 1, 7}}}, - {"@", []token{{tCurrent, "@", 0, 1}}}, - {"&", []token{{tExpref, "&", 0, 1}}}, - // Quoted identifier unicode escape sequences - {`"\u2713"`, []token{{tQuotedIdentifier, "✓", 0, 3}}}, - {`"\\"`, []token{{tQuotedIdentifier, `\`, 0, 1}}}, - {"`\"foo\"`", []token{{tJSONLiteral, "\"foo\"", 1, 5}}}, - // Combinations of tokens. - {"foo.bar", []token{ - {tUnquotedIdentifier, "foo", 0, 3}, - {tDot, ".", 3, 1}, - {tUnquotedIdentifier, "bar", 4, 3}, - }}, - {"foo[0]", []token{ - {tUnquotedIdentifier, "foo", 0, 3}, - {tLbracket, "[", 3, 1}, - {tNumber, "0", 4, 1}, - {tRbracket, "]", 5, 1}, - }}, - {"foo[?a 0 { - output += fmt.Sprintf("%schildren: {\n", strings.Repeat(" ", nextIndent)) - childIndent := nextIndent + 2 - for _, elem := range node.children { - output += elem.PrettyPrint(childIndent) - } - } - output += fmt.Sprintf("%s}\n", spaces) - return output -} - -var bindingPowers = map[tokType]int{ - tEOF: 0, - tUnquotedIdentifier: 0, - tQuotedIdentifier: 0, - tRbracket: 0, - tRparen: 0, - tComma: 0, - tRbrace: 0, - tNumber: 0, - tCurrent: 0, - tExpref: 0, - tColon: 0, - tPipe: 1, - tOr: 2, - tAnd: 3, - tEQ: 5, - tLT: 5, - tLTE: 5, - tGT: 5, - tGTE: 5, - tNE: 5, - tFlatten: 9, - tStar: 20, - tFilter: 21, - tDot: 40, - tNot: 45, - tLbrace: 50, - tLbracket: 55, - tLparen: 60, -} - -// Parser holds state about the current expression being parsed. -type Parser struct { - expression string - tokens []token - index int -} - -// NewParser creates a new JMESPath parser. -func NewParser() *Parser { - p := Parser{} - return &p -} - -// Parse will compile a JMESPath expression. -func (p *Parser) Parse(expression string) (ASTNode, error) { - lexer := NewLexer() - p.expression = expression - p.index = 0 - tokens, err := lexer.tokenize(expression) - if err != nil { - return ASTNode{}, err - } - p.tokens = tokens - parsed, err := p.parseExpression(0) - if err != nil { - return ASTNode{}, err - } - if p.current() != tEOF { - return ASTNode{}, p.syntaxError(fmt.Sprintf( - "Unexpected token at the end of the expresssion: %s", p.current())) - } - return parsed, nil -} - -func (p *Parser) parseExpression(bindingPower int) (ASTNode, error) { - var err error - leftToken := p.lookaheadToken(0) - p.advance() - leftNode, err := p.nud(leftToken) - if err != nil { - return ASTNode{}, err - } - currentToken := p.current() - for bindingPower < bindingPowers[currentToken] { - p.advance() - leftNode, err = p.led(currentToken, leftNode) - if err != nil { - return ASTNode{}, err - } - currentToken = p.current() - } - return leftNode, nil -} - -func (p *Parser) parseIndexExpression() (ASTNode, error) { - if p.lookahead(0) == tColon || p.lookahead(1) == tColon { - return p.parseSliceExpression() - } - indexStr := p.lookaheadToken(0).value - parsedInt, err := strconv.Atoi(indexStr) - if err != nil { - return ASTNode{}, err - } - indexNode := ASTNode{nodeType: ASTIndex, value: parsedInt} - p.advance() - if err := p.match(tRbracket); err != nil { - return ASTNode{}, err - } - return indexNode, nil -} - -func (p *Parser) parseSliceExpression() (ASTNode, error) { - parts := []*int{nil, nil, nil} - index := 0 - current := p.current() - for current != tRbracket && index < 3 { - if current == tColon { - index++ - p.advance() - } else if current == tNumber { - parsedInt, err := strconv.Atoi(p.lookaheadToken(0).value) - if err != nil { - return ASTNode{}, err - } - parts[index] = &parsedInt - p.advance() - } else { - return ASTNode{}, p.syntaxError( - "Expected tColon or tNumber" + ", received: " + p.current().String()) - } - current = p.current() - } - if err := p.match(tRbracket); err != nil { - return ASTNode{}, err - } - return ASTNode{ - nodeType: ASTSlice, - value: parts, - }, nil -} - -func (p *Parser) match(tokenType tokType) error { - if p.current() == tokenType { - p.advance() - return nil - } - return p.syntaxError("Expected " + tokenType.String() + ", received: " + p.current().String()) -} - -func (p *Parser) led(tokenType tokType, node ASTNode) (ASTNode, error) { - switch tokenType { - case tDot: - if p.current() != tStar { - right, err := p.parseDotRHS(bindingPowers[tDot]) - return ASTNode{ - nodeType: ASTSubexpression, - children: []ASTNode{node, right}, - }, err - } - p.advance() - right, err := p.parseProjectionRHS(bindingPowers[tDot]) - return ASTNode{ - nodeType: ASTValueProjection, - children: []ASTNode{node, right}, - }, err - case tPipe: - right, err := p.parseExpression(bindingPowers[tPipe]) - return ASTNode{nodeType: ASTPipe, children: []ASTNode{node, right}}, err - case tOr: - right, err := p.parseExpression(bindingPowers[tOr]) - return ASTNode{nodeType: ASTOrExpression, children: []ASTNode{node, right}}, err - case tAnd: - right, err := p.parseExpression(bindingPowers[tAnd]) - return ASTNode{nodeType: ASTAndExpression, children: []ASTNode{node, right}}, err - case tLparen: - name := node.value - var args []ASTNode - for p.current() != tRparen { - expression, err := p.parseExpression(0) - if err != nil { - return ASTNode{}, err - } - if p.current() == tComma { - if err := p.match(tComma); err != nil { - return ASTNode{}, err - } - } - args = append(args, expression) - } - if err := p.match(tRparen); err != nil { - return ASTNode{}, err - } - return ASTNode{ - nodeType: ASTFunctionExpression, - value: name, - children: args, - }, nil - case tFilter: - return p.parseFilter(node) - case tFlatten: - left := ASTNode{nodeType: ASTFlatten, children: []ASTNode{node}} - right, err := p.parseProjectionRHS(bindingPowers[tFlatten]) - return ASTNode{ - nodeType: ASTProjection, - children: []ASTNode{left, right}, - }, err - case tEQ, tNE, tGT, tGTE, tLT, tLTE: - right, err := p.parseExpression(bindingPowers[tokenType]) - if err != nil { - return ASTNode{}, err - } - return ASTNode{ - nodeType: ASTComparator, - value: tokenType, - children: []ASTNode{node, right}, - }, nil - case tLbracket: - tokenType := p.current() - var right ASTNode - var err error - if tokenType == tNumber || tokenType == tColon { - right, err = p.parseIndexExpression() - if err != nil { - return ASTNode{}, err - } - return p.projectIfSlice(node, right) - } - // Otherwise this is a projection. - if err := p.match(tStar); err != nil { - return ASTNode{}, err - } - if err := p.match(tRbracket); err != nil { - return ASTNode{}, err - } - right, err = p.parseProjectionRHS(bindingPowers[tStar]) - if err != nil { - return ASTNode{}, err - } - return ASTNode{ - nodeType: ASTProjection, - children: []ASTNode{node, right}, - }, nil - } - return ASTNode{}, p.syntaxError("Unexpected token: " + tokenType.String()) -} - -func (p *Parser) nud(token token) (ASTNode, error) { - switch token.tokenType { - case tJSONLiteral: - var parsed interface{} - err := json.Unmarshal([]byte(token.value), &parsed) - if err != nil { - return ASTNode{}, err - } - return ASTNode{nodeType: ASTLiteral, value: parsed}, nil - case tStringLiteral: - return ASTNode{nodeType: ASTLiteral, value: token.value}, nil - case tUnquotedIdentifier: - return ASTNode{ - nodeType: ASTField, - value: token.value, - }, nil - case tQuotedIdentifier: - node := ASTNode{nodeType: ASTField, value: token.value} - if p.current() == tLparen { - return ASTNode{}, p.syntaxErrorToken("Can't have quoted identifier as function name.", token) - } - return node, nil - case tStar: - left := ASTNode{nodeType: ASTIdentity} - var right ASTNode - var err error - if p.current() == tRbracket { - right = ASTNode{nodeType: ASTIdentity} - } else { - right, err = p.parseProjectionRHS(bindingPowers[tStar]) - } - return ASTNode{nodeType: ASTValueProjection, children: []ASTNode{left, right}}, err - case tFilter: - return p.parseFilter(ASTNode{nodeType: ASTIdentity}) - case tLbrace: - return p.parseMultiSelectHash() - case tFlatten: - left := ASTNode{ - nodeType: ASTFlatten, - children: []ASTNode{{nodeType: ASTIdentity}}, - } - right, err := p.parseProjectionRHS(bindingPowers[tFlatten]) - if err != nil { - return ASTNode{}, err - } - return ASTNode{nodeType: ASTProjection, children: []ASTNode{left, right}}, nil - case tLbracket: - tokenType := p.current() - //var right ASTNode - if tokenType == tNumber || tokenType == tColon { - right, err := p.parseIndexExpression() - if err != nil { - return ASTNode{}, nil - } - return p.projectIfSlice(ASTNode{nodeType: ASTIdentity}, right) - } else if tokenType == tStar && p.lookahead(1) == tRbracket { - p.advance() - p.advance() - right, err := p.parseProjectionRHS(bindingPowers[tStar]) - if err != nil { - return ASTNode{}, err - } - return ASTNode{ - nodeType: ASTProjection, - children: []ASTNode{{nodeType: ASTIdentity}, right}, - }, nil - } else { - return p.parseMultiSelectList() - } - case tCurrent: - return ASTNode{nodeType: ASTCurrentNode}, nil - case tExpref: - expression, err := p.parseExpression(bindingPowers[tExpref]) - if err != nil { - return ASTNode{}, err - } - return ASTNode{nodeType: ASTExpRef, children: []ASTNode{expression}}, nil - case tNot: - expression, err := p.parseExpression(bindingPowers[tNot]) - if err != nil { - return ASTNode{}, err - } - return ASTNode{nodeType: ASTNotExpression, children: []ASTNode{expression}}, nil - case tLparen: - expression, err := p.parseExpression(0) - if err != nil { - return ASTNode{}, err - } - if err := p.match(tRparen); err != nil { - return ASTNode{}, err - } - return expression, nil - case tEOF: - return ASTNode{}, p.syntaxErrorToken("Incomplete expression", token) - } - - return ASTNode{}, p.syntaxErrorToken("Invalid token: "+token.tokenType.String(), token) -} - -func (p *Parser) parseMultiSelectList() (ASTNode, error) { - var expressions []ASTNode - for { - expression, err := p.parseExpression(0) - if err != nil { - return ASTNode{}, err - } - expressions = append(expressions, expression) - if p.current() == tRbracket { - break - } - err = p.match(tComma) - if err != nil { - return ASTNode{}, err - } - } - err := p.match(tRbracket) - if err != nil { - return ASTNode{}, err - } - return ASTNode{ - nodeType: ASTMultiSelectList, - children: expressions, - }, nil -} - -func (p *Parser) parseMultiSelectHash() (ASTNode, error) { - var children []ASTNode - for { - keyToken := p.lookaheadToken(0) - if err := p.match(tUnquotedIdentifier); err != nil { - if err := p.match(tQuotedIdentifier); err != nil { - return ASTNode{}, p.syntaxError("Expected tQuotedIdentifier or tUnquotedIdentifier") - } - } - keyName := keyToken.value - err := p.match(tColon) - if err != nil { - return ASTNode{}, err - } - value, err := p.parseExpression(0) - if err != nil { - return ASTNode{}, err - } - node := ASTNode{ - nodeType: ASTKeyValPair, - value: keyName, - children: []ASTNode{value}, - } - children = append(children, node) - if p.current() == tComma { - err := p.match(tComma) - if err != nil { - return ASTNode{}, nil - } - } else if p.current() == tRbrace { - err := p.match(tRbrace) - if err != nil { - return ASTNode{}, nil - } - break - } - } - return ASTNode{ - nodeType: ASTMultiSelectHash, - children: children, - }, nil -} - -func (p *Parser) projectIfSlice(left ASTNode, right ASTNode) (ASTNode, error) { - indexExpr := ASTNode{ - nodeType: ASTIndexExpression, - children: []ASTNode{left, right}, - } - if right.nodeType == ASTSlice { - right, err := p.parseProjectionRHS(bindingPowers[tStar]) - return ASTNode{ - nodeType: ASTProjection, - children: []ASTNode{indexExpr, right}, - }, err - } - return indexExpr, nil -} -func (p *Parser) parseFilter(node ASTNode) (ASTNode, error) { - var right, condition ASTNode - var err error - condition, err = p.parseExpression(0) - if err != nil { - return ASTNode{}, err - } - if err := p.match(tRbracket); err != nil { - return ASTNode{}, err - } - if p.current() == tFlatten { - right = ASTNode{nodeType: ASTIdentity} - } else { - right, err = p.parseProjectionRHS(bindingPowers[tFilter]) - if err != nil { - return ASTNode{}, err - } - } - - return ASTNode{ - nodeType: ASTFilterProjection, - children: []ASTNode{node, right, condition}, - }, nil -} - -func (p *Parser) parseDotRHS(bindingPower int) (ASTNode, error) { - lookahead := p.current() - if tokensOneOf([]tokType{tQuotedIdentifier, tUnquotedIdentifier, tStar}, lookahead) { - return p.parseExpression(bindingPower) - } else if lookahead == tLbracket { - if err := p.match(tLbracket); err != nil { - return ASTNode{}, err - } - return p.parseMultiSelectList() - } else if lookahead == tLbrace { - if err := p.match(tLbrace); err != nil { - return ASTNode{}, err - } - return p.parseMultiSelectHash() - } - return ASTNode{}, p.syntaxError("Expected identifier, lbracket, or lbrace") -} - -func (p *Parser) parseProjectionRHS(bindingPower int) (ASTNode, error) { - current := p.current() - if bindingPowers[current] < 10 { - return ASTNode{nodeType: ASTIdentity}, nil - } else if current == tLbracket { - return p.parseExpression(bindingPower) - } else if current == tFilter { - return p.parseExpression(bindingPower) - } else if current == tDot { - err := p.match(tDot) - if err != nil { - return ASTNode{}, err - } - return p.parseDotRHS(bindingPower) - } else { - return ASTNode{}, p.syntaxError("Error") - } -} - -func (p *Parser) lookahead(number int) tokType { - return p.lookaheadToken(number).tokenType -} - -func (p *Parser) current() tokType { - return p.lookahead(0) -} - -func (p *Parser) lookaheadToken(number int) token { - return p.tokens[p.index+number] -} - -func (p *Parser) advance() { - p.index++ -} - -func tokensOneOf(elements []tokType, token tokType) bool { - for _, elem := range elements { - if elem == token { - return true - } - } - return false -} - -func (p *Parser) syntaxError(msg string) SyntaxError { - return SyntaxError{ - msg: msg, - Expression: p.expression, - Offset: p.lookaheadToken(0).position, - } -} - -// Create a SyntaxError based on the provided token. -// This differs from syntaxError() which creates a SyntaxError -// based on the current lookahead token. -func (p *Parser) syntaxErrorToken(msg string, t token) SyntaxError { - return SyntaxError{ - msg: msg, - Expression: p.expression, - Offset: t.position, - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/parser_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/parser_test.go deleted file mode 100644 index 997a0f4d7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/parser_test.go +++ /dev/null @@ -1,136 +0,0 @@ -package jmespath - -import ( - "fmt" - "testing" - - "github.com/stretchr/testify/assert" -) - -var parsingErrorTests = []struct { - expression string - msg string -}{ - {"foo.", "Incopmlete expression"}, - {"[foo", "Incopmlete expression"}, - {"]", "Invalid"}, - {")", "Invalid"}, - {"}", "Invalid"}, - {"foo..bar", "Invalid"}, - {`foo."bar`, "Forwards lexer errors"}, - {`{foo: bar`, "Incomplete expression"}, - {`{foo bar}`, "Invalid"}, - {`[foo bar]`, "Invalid"}, - {`foo@`, "Invalid"}, - {`&&&&&&&&&&&&t(`, "Invalid"}, - {`[*][`, "Invalid"}, -} - -func TestParsingErrors(t *testing.T) { - assert := assert.New(t) - parser := NewParser() - for _, tt := range parsingErrorTests { - _, err := parser.Parse(tt.expression) - assert.NotNil(err, fmt.Sprintf("Expected parsing error: %s, for expression: %s", tt.msg, tt.expression)) - } -} - -var prettyPrinted = `ASTProjection { - children: { - ASTField { - value: "foo" - } - ASTSubexpression { - children: { - ASTSubexpression { - children: { - ASTField { - value: "bar" - } - ASTField { - value: "baz" - } - } - ASTField { - value: "qux" - } - } -} -` - -var prettyPrintedCompNode = `ASTFilterProjection { - children: { - ASTField { - value: "a" - } - ASTIdentity { - } - ASTComparator { - value: tLTE - children: { - ASTField { - value: "b" - } - ASTField { - value: "c" - } - } -} -` - -func TestPrettyPrintedAST(t *testing.T) { - assert := assert.New(t) - parser := NewParser() - parsed, _ := parser.Parse("foo[*].bar.baz.qux") - assert.Equal(parsed.PrettyPrint(0), prettyPrinted) -} - -func TestPrettyPrintedCompNode(t *testing.T) { - assert := assert.New(t) - parser := NewParser() - parsed, _ := parser.Parse("a[?b<=c]") - assert.Equal(parsed.PrettyPrint(0), prettyPrintedCompNode) -} - -func BenchmarkParseIdentifier(b *testing.B) { - runParseBenchmark(b, exprIdentifier) -} - -func BenchmarkParseSubexpression(b *testing.B) { - runParseBenchmark(b, exprSubexpr) -} - -func BenchmarkParseDeeplyNested50(b *testing.B) { - runParseBenchmark(b, deeplyNested50) -} - -func BenchmarkParseDeepNested50Pipe(b *testing.B) { - runParseBenchmark(b, deeplyNested50Pipe) -} - -func BenchmarkParseDeepNested50Index(b *testing.B) { - runParseBenchmark(b, deeplyNested50Index) -} - -func BenchmarkParseQuotedIdentifier(b *testing.B) { - runParseBenchmark(b, exprQuotedIdentifier) -} - -func BenchmarkParseQuotedIdentifierEscapes(b *testing.B) { - runParseBenchmark(b, quotedIdentifierEscapes) -} - -func BenchmarkParseRawStringLiteral(b *testing.B) { - runParseBenchmark(b, rawStringLiteral) -} - -func BenchmarkParseDeepProjection104(b *testing.B) { - runParseBenchmark(b, deepProjection104) -} - -func runParseBenchmark(b *testing.B, expression string) { - parser := NewParser() - for i := 0; i < b.N; i++ { - parser.Parse(expression) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/toktype_string.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/toktype_string.go deleted file mode 100644 index dae79cbdf..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/toktype_string.go +++ /dev/null @@ -1,16 +0,0 @@ -// generated by stringer -type=tokType; DO NOT EDIT - -package jmespath - -import "fmt" - -const _tokType_name = "tUnknowntStartDottFiltertFlattentLparentRparentLbrackettRbrackettLbracetRbracetOrtPipetNumbertUnquotedIdentifiertQuotedIdentifiertCommatColontLTtLTEtGTtGTEtEQtNEtJSONLiteraltStringLiteraltCurrenttExpreftAndtNottEOF" - -var _tokType_index = [...]uint8{0, 8, 13, 17, 24, 32, 39, 46, 55, 64, 71, 78, 81, 86, 93, 112, 129, 135, 141, 144, 148, 151, 155, 158, 161, 173, 187, 195, 202, 206, 210, 214} - -func (i tokType) String() string { - if i < 0 || i >= tokType(len(_tokType_index)-1) { - return fmt.Sprintf("tokType(%d)", i) - } - return _tokType_name[_tokType_index[i]:_tokType_index[i+1]] -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/util.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/util.go deleted file mode 100644 index ddc1b7d7d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/util.go +++ /dev/null @@ -1,185 +0,0 @@ -package jmespath - -import ( - "errors" - "reflect" -) - -// IsFalse determines if an object is false based on the JMESPath spec. -// JMESPath defines false values to be any of: -// - An empty string array, or hash. -// - The boolean value false. -// - nil -func isFalse(value interface{}) bool { - switch v := value.(type) { - case bool: - return !v - case []interface{}: - return len(v) == 0 - case map[string]interface{}: - return len(v) == 0 - case string: - return len(v) == 0 - case nil: - return true - } - // Try the reflection cases before returning false. - rv := reflect.ValueOf(value) - switch rv.Kind() { - case reflect.Struct: - // A struct type will never be false, even if - // all of its values are the zero type. - return false - case reflect.Slice, reflect.Map: - return rv.Len() == 0 - case reflect.Ptr: - if rv.IsNil() { - return true - } - // If it's a pointer type, we'll try to deref the pointer - // and evaluate the pointer value for isFalse. - element := rv.Elem() - return isFalse(element.Interface()) - } - return false -} - -// ObjsEqual is a generic object equality check. -// It will take two arbitrary objects and recursively determine -// if they are equal. -func objsEqual(left interface{}, right interface{}) bool { - return reflect.DeepEqual(left, right) -} - -// SliceParam refers to a single part of a slice. -// A slice consists of a start, a stop, and a step, similar to -// python slices. -type sliceParam struct { - N int - Specified bool -} - -// Slice supports [start:stop:step] style slicing that's supported in JMESPath. -func slice(slice []interface{}, parts []sliceParam) ([]interface{}, error) { - computed, err := computeSliceParams(len(slice), parts) - if err != nil { - return nil, err - } - start, stop, step := computed[0], computed[1], computed[2] - result := []interface{}{} - if step > 0 { - for i := start; i < stop; i += step { - result = append(result, slice[i]) - } - } else { - for i := start; i > stop; i += step { - result = append(result, slice[i]) - } - } - return result, nil -} - -func computeSliceParams(length int, parts []sliceParam) ([]int, error) { - var start, stop, step int - if !parts[2].Specified { - step = 1 - } else if parts[2].N == 0 { - return nil, errors.New("Invalid slice, step cannot be 0") - } else { - step = parts[2].N - } - var stepValueNegative bool - if step < 0 { - stepValueNegative = true - } else { - stepValueNegative = false - } - - if !parts[0].Specified { - if stepValueNegative { - start = length - 1 - } else { - start = 0 - } - } else { - start = capSlice(length, parts[0].N, step) - } - - if !parts[1].Specified { - if stepValueNegative { - stop = -1 - } else { - stop = length - } - } else { - stop = capSlice(length, parts[1].N, step) - } - return []int{start, stop, step}, nil -} - -func capSlice(length int, actual int, step int) int { - if actual < 0 { - actual += length - if actual < 0 { - if step < 0 { - actual = -1 - } else { - actual = 0 - } - } - } else if actual >= length { - if step < 0 { - actual = length - 1 - } else { - actual = length - } - } - return actual -} - -// ToArrayNum converts an empty interface type to a slice of float64. -// If any element in the array cannot be converted, then nil is returned -// along with a second value of false. -func toArrayNum(data interface{}) ([]float64, bool) { - // Is there a better way to do this with reflect? - if d, ok := data.([]interface{}); ok { - result := make([]float64, len(d)) - for i, el := range d { - item, ok := el.(float64) - if !ok { - return nil, false - } - result[i] = item - } - return result, true - } - return nil, false -} - -// ToArrayStr converts an empty interface type to a slice of strings. -// If any element in the array cannot be converted, then nil is returned -// along with a second value of false. If the input data could be entirely -// converted, then the converted data, along with a second value of true, -// will be returned. -func toArrayStr(data interface{}) ([]string, bool) { - // Is there a better way to do this with reflect? - if d, ok := data.([]interface{}); ok { - result := make([]string, len(d)) - for i, el := range d { - item, ok := el.(string) - if !ok { - return nil, false - } - result[i] = item - } - return result, true - } - return nil, false -} - -func isSliceType(v interface{}) bool { - if v == nil { - return false - } - return reflect.TypeOf(v).Kind() == reflect.Slice -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/util_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/util_test.go deleted file mode 100644 index 1754b5d3f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath/util_test.go +++ /dev/null @@ -1,73 +0,0 @@ -package jmespath - -import ( - "github.com/stretchr/testify/assert" - "testing" -) - -func TestSlicePositiveStep(t *testing.T) { - assert := assert.New(t) - input := make([]interface{}, 5) - input[0] = 0 - input[1] = 1 - input[2] = 2 - input[3] = 3 - input[4] = 4 - result, err := slice(input, []sliceParam{{0, true}, {3, true}, {1, true}}) - assert.Nil(err) - assert.Equal(input[:3], result) -} - -func TestIsFalseJSONTypes(t *testing.T) { - assert := assert.New(t) - assert.True(isFalse(false)) - assert.True(isFalse("")) - var empty []interface{} - assert.True(isFalse(empty)) - m := make(map[string]interface{}) - assert.True(isFalse(m)) - assert.True(isFalse(nil)) - -} - -func TestIsFalseWithUserDefinedStructs(t *testing.T) { - assert := assert.New(t) - type nilStructType struct { - SliceOfPointers []*string - } - nilStruct := nilStructType{SliceOfPointers: nil} - assert.True(isFalse(nilStruct.SliceOfPointers)) - - // A user defined struct will never be false though, - // even if it's fields are the zero type. - assert.False(isFalse(nilStruct)) -} - -func TestIsFalseWithNilInterface(t *testing.T) { - assert := assert.New(t) - var a *int = nil - var nilInterface interface{} - nilInterface = a - assert.True(isFalse(nilInterface)) -} - -func TestIsFalseWithMapOfUserStructs(t *testing.T) { - assert := assert.New(t) - type foo struct { - Bar string - Baz string - } - m := make(map[int]foo) - assert.True(isFalse(m)) -} - -func TestObjsEqual(t *testing.T) { - assert := assert.New(t) - assert.True(objsEqual("foo", "foo")) - assert.True(objsEqual(20, 20)) - assert.True(objsEqual([]int{1, 2, 3}, []int{1, 2, 3})) - assert.True(objsEqual(nil, nil)) - assert.True(!objsEqual(nil, "foo")) - assert.True(objsEqual([]int{}, []int{})) - assert.True(!objsEqual([]int{}, nil)) -} diff --git a/vendor/github.com/skratchdot/open-golang/open/exec_windows.go b/vendor/github.com/skratchdot/open-golang/open/exec_windows.go index 2d9361777..3ad667dfd 100644 --- a/vendor/github.com/skratchdot/open-golang/open/exec_windows.go +++ b/vendor/github.com/skratchdot/open-golang/open/exec_windows.go @@ -20,7 +20,7 @@ func cleaninput(input string) string { } func open(input string) *exec.Cmd { - return exec.Command(runDll32, cmd, input) + return exec.Command(runDll32, cmd, cleaninput(input)) } func openWith(input string, appName string) *exec.Cmd { diff --git a/vendor/gopkg.in/alecthomas/kingpin.v2 b/vendor/gopkg.in/alecthomas/kingpin.v2 index 8cccfa8eb..639879d61 160000 --- a/vendor/gopkg.in/alecthomas/kingpin.v2 +++ b/vendor/gopkg.in/alecthomas/kingpin.v2 @@ -1 +1 @@ -Subproject commit 8cccfa8eb2e3183254457fb1749b2667fbc364c7 +Subproject commit 639879d6110b1b0409410c7b737ef0bb18325038